@univerjs-pro/collaboration-client 1.0.0-alpha.5 → 1.0.0-alpha.7
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2b93(_0x453626,_0x42080f){_0x453626=_0x453626-0xc3;const _0x184503=_0x1845();let _0x2b935f=_0x184503[_0x453626];return _0x2b935f;}(function(_0x518ed7,_0x4d7e7a){const _0x212e04=_0x2b93,_0x56a473=_0x518ed7();while(!![]){try{const _0x5dcf11=parseInt(_0x212e04(0x2c4))/0x1+parseInt(_0x212e04(0x262))/0x2+parseInt(_0x212e04(0x27b))/0x3+-parseInt(_0x212e04(0x3bc))/0x4+parseInt(_0x212e04(0x3bb))/0x5*(-parseInt(_0x212e04(0x16d))/0x6)+-parseInt(_0x212e04(0x309))/0x7+parseInt(_0x212e04(0x35a))/0x8*(parseInt(_0x212e04(0x258))/0x9);if(_0x5dcf11===_0x4d7e7a)break;else _0x56a473['push'](_0x56a473['shift']());}catch(_0x2f29e0){_0x56a473['push'](_0x56a473['shift']());}}}(_0x1845,0xb4faf),function(_0x11a0db,_0x1c65fe){const _0xedd403=_0x2b93;typeof exports=='object'&&typeof module<'u'?_0x1c65fe(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0xedd403(0x259)&&define[_0xedd403(0x13e)]?define(['exports','@univerjs-pro/collaboration',_0xedd403(0x35f),_0xedd403(0x16c),_0xedd403(0x302),_0xedd403(0x25a),_0xedd403(0x39e),'@univerjs/telemetry',_0xedd403(0x100),_0xedd403(0x202),_0xedd403(0x2d4),_0xedd403(0x38a),_0xedd403(0xd2)],_0x1c65fe):(_0x11a0db=typeof globalThis<'u'?globalThis:_0x11a0db||self,_0x1c65fe(_0x11a0db[_0xedd403(0x3b7)]={},_0x11a0db[_0xedd403(0x398)],_0x11a0db[_0xedd403(0x1eb)],_0x11a0db['UniverDocs'],_0x11a0db['UniverSheets'],_0x11a0db['rxjs'],_0x11a0db['UniverProtocol'],_0x11a0db['UniverTelemetry'],_0x11a0db[_0xedd403(0x25a)][_0xedd403(0x1e7)],_0x11a0db[_0xedd403(0x216)],_0x11a0db[_0xedd403(0x2d5)],_0x11a0db[_0xedd403(0x260)],_0x11a0db[_0xedd403(0x201)]));}(this,function(_0x15bcea,_0x4c2ece,_0x868841,_0x45a7a0,_0x1d347c,_0x409690,_0x1df2bb,_0x5a2801,_0x4f74e1,_0x5aad88,_0x8bc35f,_0xae8d13,_0x50acd0){const _0x21648f=_0x2b93;Object['defineProperty'](_0x15bcea,Symbol['toStringTag'],{'value':_0x21648f(0x3a2)});let _0x4b92ba='collaboration-client.config',_0x361839={},_0x3838c0=_0x21648f(0x2e8),_0x4067ce=0x4e20;function _0x503d89(_0x1a26fd){const _0x3b3adc=_0x21648f;return JSON[_0x3b3adc(0x102)](_0x1a26fd)['length'];}function _0x1ba9b8(_0x34130b){'@babel/helpers - typeof';const _0x2ea7a0=_0x21648f;return _0x1ba9b8=typeof Symbol==_0x2ea7a0(0x259)&&typeof Symbol[_0x2ea7a0(0x3ef)]=='symbol'?function(_0x52a812){return typeof _0x52a812;}:function(_0x2bd6c4){const _0x3e61fc=_0x2ea7a0;return _0x2bd6c4&&typeof Symbol=='function'&&_0x2bd6c4[_0x3e61fc(0x32e)]===Symbol&&_0x2bd6c4!==Symbol[_0x3e61fc(0x180)]?_0x3e61fc(0x12d):typeof _0x2bd6c4;},_0x1ba9b8(_0x34130b);}function _0xa931ec(_0x57b192,_0x238a0b){const _0x26a046=_0x21648f;if(_0x1ba9b8(_0x57b192)!=_0x26a046(0x2a6)||!_0x57b192)return _0x57b192;var _0xfce670=_0x57b192[Symbol[_0x26a046(0x3fe)]];if(_0xfce670!==void 0x0){var _0x33ce7b=_0xfce670[_0x26a046(0x257)](_0x57b192,_0x238a0b||'default');if(_0x1ba9b8(_0x33ce7b)!=_0x26a046(0x2a6))return _0x33ce7b;throw TypeError(_0x26a046(0x30a));}return(_0x238a0b===_0x26a046(0x353)?String:Number)(_0x57b192);}function _0x493338(_0xdcd2d2){const _0x17cf5d=_0x21648f;var _0x53774d=_0xa931ec(_0xdcd2d2,_0x17cf5d(0x353));return _0x1ba9b8(_0x53774d)==_0x17cf5d(0x12d)?_0x53774d:_0x53774d+'';}function _0x6d65c2(_0x45be95,_0x1a8ec8,_0x140abe){const _0x1c36dd=_0x21648f;return(_0x1a8ec8=_0x493338(_0x1a8ec8))in _0x45be95?Object[_0x1c36dd(0x131)](_0x45be95,_0x1a8ec8,{'value':_0x140abe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45be95[_0x1a8ec8]=_0x140abe,_0x45be95;}let _0x1ca442=function(_0x412781){const _0xd4730d=_0x21648f;return _0x412781[_0xd4730d(0x1aa)]=_0xd4730d(0x1aa),_0x412781['PERMISSION_DENIED']='PERMISSION_DENIED',_0x412781['CONFLICT']=_0xd4730d(0xdf),_0x412781['CLOSE_ROOM']='CLOSE_ROOM',_0x412781[_0xd4730d(0x256)]=_0xd4730d(0x256),_0x412781[_0xd4730d(0x363)]=_0xd4730d(0x363),_0x412781[_0xd4730d(0x1bf)]=_0xd4730d(0x1bf),_0x412781['SUBMIT_CHANGESET_TIMEOUT']=_0xd4730d(0x208),_0x412781;}({});var _0x55b02d=class{constructor(){const _0x2912c4=_0x21648f;_0x6d65c2(this,_0x2912c4(0x397),new _0x409690[(_0x2912c4(0x409))]()),_0x6d65c2(this,_0x2912c4(0x219),this[_0x2912c4(0x397)][_0x2912c4(0x340)]());}['emitEvent'](_0xd7f722){const _0x545918=_0x21648f;this[_0x545918(0x397)][_0x545918(0xdd)](_0xd7f722);}},_0x278d59=class{constructor(){const _0x4bd0a1=_0x21648f;_0x6d65c2(this,'_commentUpdate$',new _0x409690[(_0x4bd0a1(0x409))]()),_0x6d65c2(this,_0x4bd0a1(0x20d),this[_0x4bd0a1(0x22b)]['asObservable']());}['onCommentUpdate'](_0x2967f6){const _0x242c9f=_0x21648f;this[_0x242c9f(0x22b)][_0x242c9f(0xdd)](_0x2967f6);}};function _0x273192(_0x317ef7,_0x1c783b){return function(_0x58a84b,_0x2cf3b0){_0x1c783b(_0x58a84b,_0x2cf3b0,_0x317ef7);};}function _0x3e0941(_0x1c346d,_0xca1e8e,_0x495f91,_0x3f2aa8){const _0x1d4be8=_0x21648f;var _0x210ff9=arguments[_0x1d4be8(0x207)],_0x26f230=_0x210ff9<0x3?_0xca1e8e:_0x3f2aa8===null?_0x3f2aa8=Object[_0x1d4be8(0xee)](_0xca1e8e,_0x495f91):_0x3f2aa8,_0x11ea26;if(typeof Reflect==_0x1d4be8(0x2a6)&&typeof Reflect[_0x1d4be8(0x377)]=='function')_0x26f230=Reflect[_0x1d4be8(0x377)](_0x1c346d,_0xca1e8e,_0x495f91,_0x3f2aa8);else{for(var _0x2ea1e7=_0x1c346d[_0x1d4be8(0x207)]-0x1;_0x2ea1e7>=0x0;_0x2ea1e7--)(_0x11ea26=_0x1c346d[_0x2ea1e7])&&(_0x26f230=(_0x210ff9<0x3?_0x11ea26(_0x26f230):_0x210ff9>0x3?_0x11ea26(_0xca1e8e,_0x495f91,_0x26f230):_0x11ea26(_0xca1e8e,_0x495f91))||_0x26f230);}return _0x210ff9>0x3&&_0x26f230&&Object[_0x1d4be8(0x131)](_0xca1e8e,_0x495f91,_0x26f230),_0x26f230;}let _0x568427=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x37a3b5,_0x337d70){const _0x33c3cf=_0x21648f;super(),this['_univerInstanceService']=_0x37a3b5,this[_0x33c3cf(0x37f)]=_0x337d70,_0x6d65c2(this,_0x33c3cf(0x292),new Map()),_0x6d65c2(this,_0x33c3cf(0x289),new _0x409690[(_0x33c3cf(0x409))]()),this[_0x33c3cf(0xd1)]((0x0,_0x409690[_0x33c3cf(0x382)])(this[_0x33c3cf(0x32f)][_0x33c3cf(0x166)](_0x868841[_0x33c3cf(0x2f8)][_0x33c3cf(0x23b)])[_0x33c3cf(0x320)]((0x0,_0x4f74e1[_0x33c3cf(0x26e)])(_0x1fa643=>_0x1fa643[_0x33c3cf(0x128)]())),this[_0x33c3cf(0x32f)][_0x33c3cf(0x166)](_0x868841['UniverInstanceType'][_0x33c3cf(0x332)])['pipe']((0x0,_0x4f74e1[_0x33c3cf(0x26e)])(_0x5ade4a=>_0x5ade4a[_0x33c3cf(0x128)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x868841['UniverInstanceType'][_0x33c3cf(0x28a)])['pipe']((0x0,_0x4f74e1[_0x33c3cf(0x26e)])(_0x27749a=>_0x27749a[_0x33c3cf(0x128)]())),this['_univerInstanceService'][_0x33c3cf(0x166)](_0x868841[_0x33c3cf(0x2f8)][_0x33c3cf(0x2a9)])['pipe']((0x0,_0x4f74e1['map'])(_0xc5603d=>_0xc5603d[_0x33c3cf(0x128)]())))['subscribe'](_0x361a0c=>this[_0x33c3cf(0x2da)](_0x361a0c)));}[_0x21648f(0x39d)](_0x207b9d){const _0x5a5a40=_0x21648f;return this[_0x5a5a40(0x292)][_0x5a5a40(0x215)](_0x207b9d)?(0x0,_0x409690['of'])(this[_0x5a5a40(0x292)][_0x5a5a40(0x224)](_0x207b9d)):this['_roomCreated$'][_0x5a5a40(0x320)]((0x0,_0x4f74e1[_0x5a5a40(0x26e)])(_0x2633d7=>{const _0x3cc90e=_0x5a5a40;if(_0x2633d7===_0x207b9d)return this[_0x3cc90e(0x292)]['get'](_0x2633d7);}));}[_0x21648f(0x380)](_0x68cc0f){const _0x57901b=_0x21648f;this['_userManagerService'][_0x57901b(0x380)](_0x68cc0f);}[_0x21648f(0x11f)](){const _0x52ba7f=_0x21648f;return this[_0x52ba7f(0x37f)][_0x52ba7f(0x11f)]();}[_0x21648f(0x10e)](_0x58960c,_0x1c8856){const _0x7e42d=_0x21648f;let _0x3298f8=this[_0x7e42d(0x292)][_0x7e42d(0x224)](_0x58960c);_0x3298f8||(_0x3298f8=new _0x3c8861(),this[_0x7e42d(0x292)][_0x7e42d(0x213)](_0x58960c,_0x3298f8),this[_0x7e42d(0x289)][_0x7e42d(0xdd)](_0x58960c)),_0x3298f8[_0x7e42d(0x10e)](_0x1c8856);}[_0x21648f(0x19e)](_0x2c3260,_0x393262){const _0x280e53=_0x21648f;let _0x3e82c0=this[_0x280e53(0x292)]['get'](_0x2c3260);_0x3e82c0&&_0x3e82c0[_0x280e53(0x19e)](_0x393262);}[_0x21648f(0x2ca)](_0x18e50a){const _0x4e3eae=_0x21648f;return this[_0x4e3eae(0x292)][_0x4e3eae(0x224)](_0x18e50a);}['getMember'](_0xa618b0,_0x1adbde){const _0x215de3=_0x21648f;let _0x59153e=this[_0x215de3(0x292)]['get'](_0xa618b0);if(_0x59153e)return _0x59153e[_0x215de3(0x1b0)](_0x1adbde);}[_0x21648f(0x2da)](_0x2bf0fe){const _0x7074d5=_0x21648f;let _0x318d87=this[_0x7074d5(0x292)][_0x7074d5(0x224)](_0x2bf0fe);_0x318d87&&(_0x318d87['dispose'](),this[_0x7074d5(0x292)]['delete'](_0x2bf0fe));}[_0x21648f(0x265)](){const _0x302eb1=_0x21648f;this[_0x302eb1(0x292)][_0x302eb1(0x352)](_0x36e006=>_0x36e006[_0x302eb1(0x265)]()),this[_0x302eb1(0x292)][_0x302eb1(0x13a)](),this[_0x302eb1(0x289)]['complete']();}};_0x568427=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x214)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x297)]))],_0x568427);var _0x3c8861=class extends _0x868841[_0x21648f(0x25b)]{constructor(..._0xf3e333){const _0x4be757=_0x21648f;super(..._0xf3e333),_0x6d65c2(this,_0x4be757(0x2dc),new Map()),_0x6d65c2(this,_0x4be757(0x1cc),new _0x409690[(_0x4be757(0x193))](this[_0x4be757(0x2dc)])),_0x6d65c2(this,'members$',this[_0x4be757(0x1cc)][_0x4be757(0x340)]());}['dispose'](){const _0x586482=_0x21648f;this[_0x586482(0x2dc)][_0x586482(0x13a)](),this['_members$'][_0x586482(0x3f5)]();}[_0x21648f(0x10e)](_0x5344ab){const _0x14a14e=_0x21648f;this[_0x14a14e(0x2dc)][_0x14a14e(0x213)](_0x5344ab[_0x14a14e(0x14c)],_0x5344ab),this[_0x14a14e(0x2e5)]();}[_0x21648f(0x19e)](_0x2a135d){const _0x5ad294=_0x21648f;this[_0x5ad294(0x2dc)][_0x5ad294(0xe0)](_0x2a135d),this[_0x5ad294(0x2e5)]();}['getMember'](_0x56f3fb){const _0x1b95cb=_0x21648f;return this[_0x1b95cb(0x2dc)]['get'](_0x56f3fb);}[_0x21648f(0x140)](){const _0x53a875=_0x21648f;return Array[_0x53a875(0x1a1)](this[_0x53a875(0x2dc)][_0x53a875(0x2d7)]());}[_0x21648f(0x2e5)](){const _0x56ee22=_0x21648f;this['_members$'][_0x56ee22(0xdd)](this[_0x56ee22(0x2dc)]);}};function _0x1d758e(_0x1e0b67,_0x484380){const _0x1e429d=_0x21648f;if(_0xf42fbb(_0x1e0b67))return _0x484380;if(_0x484380[_0x1e429d(0x1d9)]===_0x4c2ece[_0x1e429d(0x343)]['SUBMIT_CHANGESET']){var _0x2f2ebc;let _0x14f98c=_0x155741(_0x1e0b67),_0x5662b2=_0x484380;return{..._0x5662b2,'data':{..._0x5662b2['data'],'unitID':_0x1e0b67['target'][_0x1e429d(0x3b9)],'unitType':(_0x2f2ebc=_0x1e0b67['target'][_0x1e429d(0x172)])==null?_0x5662b2[_0x1e429d(0x29b)][_0x1e429d(0x172)]:_0x2f2ebc,'changeset':_0x14f98c[_0x1e429d(0x3fc)](_0x5662b2[_0x1e429d(0x29b)][_0x1e429d(0x17b)],_0xe428e0(_0x1e0b67))}};}if(_0x484380[_0x1e429d(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x1e429d(0x2f4)]){var _0x1dfe18;let _0x512963=_0x484380;return{..._0x512963,'data':{..._0x512963[_0x1e429d(0x29b)],'unitID':_0x1e0b67[_0x1e429d(0x355)]['unitId'],'unitType':(_0x1dfe18=_0x1e0b67[_0x1e429d(0x355)][_0x1e429d(0x172)])==null?_0x512963[_0x1e429d(0x29b)]['unitType']:_0x1dfe18}};}return _0x484380;}function _0xee3e37(_0xeb5ccf,_0x5c118a){const _0x161465=_0x21648f;if(_0xf42fbb(_0xeb5ccf))return[_0x5c118a];switch(_0x5c118a['eventID']){case _0x4c2ece[_0x161465(0x343)][_0x161465(0x174)]:return[_0x36cfc6(_0xeb5ccf,_0x5c118a)];case _0x4c2ece[_0x161465(0x343)][_0x161465(0x26a)]:return[_0x2140ec(_0xeb5ccf,_0x5c118a)];case _0x4c2ece['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:return[_0x5178e5(_0xeb5ccf,_0x5c118a)];default:return[_0x5c118a];}}function _0xf42fbb(_0x4d1ef2){const _0x22b3e5=_0x21648f;return _0x4d1ef2[_0x22b3e5(0x355)][_0x22b3e5(0x3db)]==null&&_0x4d1ef2[_0x22b3e5(0x355)][_0x22b3e5(0x3b9)]===_0x4d1ef2[_0x22b3e5(0x3bf)]&&!_0x4d1ef2[_0x22b3e5(0x17b)];}function _0x36cfc6(_0x3ce053,_0x5a057f){const _0x38833f=_0x21648f;return{..._0x5a057f,'data':(0x0,_0x4c2ece[_0x38833f(0x383)])(_0x59be3c(_0x3ce053,(0x0,_0x4c2ece[_0x38833f(0x3bd)])(_0x5a057f[_0x38833f(0x29b)])))};}function _0x5178e5(_0x3421ab,_0x521940){const _0x2f7c35=_0x21648f;return{..._0x521940,'data':_0x59be3c(_0x3421ab,_0x521940[_0x2f7c35(0x29b)])};}function _0x2140ec(_0x59d97d,_0x2fb5ee){const _0x4ba596=_0x21648f;let _0x54621f=_0x2fb5ee['data'];return{..._0x2fb5ee,'data':{..._0x54621f,'changesets':_0x54621f['changesets']['map'](_0x23b90b=>(0x0,_0x4c2ece[_0x4ba596(0x383)])(_0x59be3c(_0x59d97d,(0x0,_0x4c2ece['parseProtocolChangeset'])(_0x23b90b))))}};}function _0x59be3c(_0x2fcb2c,_0x2eb16e){const _0x28f6e5=_0x21648f;return _0x155741(_0x2fcb2c)[_0x28f6e5(0x136)](_0x2eb16e,_0xe428e0(_0x2fcb2c));}function _0x155741(_0xf62f0a){const _0x2fcdc3=_0x21648f;if(!_0xf62f0a[_0x2fcdc3(0x17b)])throw Error(_0x2fcdc3(0x223));return _0xf62f0a[_0x2fcdc3(0x17b)];}function _0xe428e0(_0x21d3d3){const _0x2d257d=_0x21648f;return{'localUnitId':_0x21d3d3[_0x2d257d(0x3bf)],'unitType':_0x21d3d3['unitType'],'target':_0x21d3d3[_0x2d257d(0x355)]};}let _0x138ed3=function(_0xc73412){const _0x5dd4fd=_0x21648f;return _0xc73412[_0xc73412[_0x5dd4fd(0x384)]=0x0]=_0x5dd4fd(0x384),_0xc73412[_0xc73412[_0x5dd4fd(0x337)]=0x1]=_0x5dd4fd(0x337),_0xc73412[_0xc73412[_0x5dd4fd(0x33b)]=0x2]=_0x5dd4fd(0x33b),_0xc73412[_0xc73412[_0x5dd4fd(0x2c5)]=0x3]=_0x5dd4fd(0x2c5),_0xc73412;}({}),_0x12cc86={[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0x15e)]]:_0x21648f(0x2b0),[_0x1df2bb[_0x21648f(0x17a)]['JOIN_ROOM_FULL']]:'session.room-full',[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0x27c)]]:_0x21648f(0xea),[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0x3c8)]]:_0x21648f(0x3d7),[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0xcb)]]:_0x21648f(0x1c7)},_0x4d2902=class extends _0x868841['RxDisposable']{get['sessionStatus'](){const _0x1bafdd=_0x21648f;return this[_0x1bafdd(0x147)][_0x1bafdd(0x2eb)]();}constructor(_0x5e1116,_0x22a20e,_0x255952,_0x371f34,_0x4bd640,_0x5b2056,_0x32cf60,_0x37f0dd){const _0x1e5c9=_0x21648f;super(),this[_0x1e5c9(0x1bc)]=_0x5e1116,this['_logService']=_0x255952,this['_configService']=_0x371f34,this[_0x1e5c9(0x132)]=_0x4bd640,this[_0x1e5c9(0x40c)]=_0x5b2056,this['_collaborationUIEventService']=_0x32cf60,this[_0x1e5c9(0x34a)]=_0x37f0dd,_0x6d65c2(this,'_sessionStatus$',new _0x409690[(_0x1e5c9(0x193))](0x0)),_0x6d65c2(this,_0x1e5c9(0x1ce),this[_0x1e5c9(0x147)][_0x1e5c9(0x340)]()),_0x6d65c2(this,_0x1e5c9(0x397),new _0x409690['Subject']()),_0x6d65c2(this,'event$',this[_0x1e5c9(0x397)][_0x1e5c9(0x340)]()),_0x6d65c2(this,'_socket',void 0x0),_0x6d65c2(this,_0x1e5c9(0x167),void 0x0),_0x6d65c2(this,'_collaborationTimeoutTimer',void 0x0),_0x6d65c2(this,_0x1e5c9(0x34d),!0x1),_0x6d65c2(this,_0x1e5c9(0x1fb),null),this[_0x1e5c9(0x34d)]=!!this['_telemetryService'],_0x22a20e[_0x1e5c9(0x320)]((0x0,_0x409690['takeUntil'])(this['dispose$']))[_0x1e5c9(0x3b6)](_0xaa9a5d=>{const _0x19c432=_0x1e5c9;if(_0xaa9a5d!==void 0x0){if(this[_0x19c432(0x1b2)]=_0xaa9a5d,_0xaa9a5d)this[_0x19c432(0x2cf)](_0xaa9a5d),this[_0x19c432(0x167)]=_0xaa9a5d['message$'][_0x19c432(0x3b6)](_0x40a5d8=>{const _0x4c3eb7=_0x19c432;_0x40a5d8['routeKey']===this['_identity']['target'][_0x4c3eb7(0x3b9)]&&this[_0x4c3eb7(0x3f6)](_0x40a5d8);});else{var _0x414b73;this[_0x19c432(0x199)](),this[_0x19c432(0x147)][_0x19c432(0xdd)](0x2),(_0x414b73=this[_0x19c432(0x167)])==null||_0x414b73[_0x19c432(0x157)](),this['_socketMessageSubscription']=null;}}});}['getMemberID'](){const _0x558dc3=_0x21648f;var _0xac5f28,_0x5f345e;return(_0xac5f28=(_0x5f345e=this['_socket'])==null?void 0x0:_0x5f345e[_0x558dc3(0x14c)])==null?null:_0xac5f28;}[_0x21648f(0x265)](){const _0x511529=_0x21648f;super[_0x511529(0x265)](),this[_0x511529(0x3da)](),this['dispose$'][_0x511529(0xdd)](),this[_0x511529(0xf2)][_0x511529(0x3f5)]();}[_0x21648f(0x3da)](){const _0x51a986=_0x21648f;var _0xf65532;this[_0x51a986(0x199)](),(_0xf65532=this['_socket'])==null||_0xf65532[_0x51a986(0x182)]({'cmd':_0x1df2bb[_0x51a986(0x3d6)][_0x51a986(0x168)],'data':{'roomID':this[_0x51a986(0x1bc)]['target'][_0x51a986(0x3b9)]}}),this['_event$'][_0x51a986(0x3f5)](),this[_0x51a986(0x147)][_0x51a986(0x3f5)]();}[_0x21648f(0x3f6)](_0xcb15b4){const _0x3e2e97=_0x21648f;_0xcb15b4[_0x3e2e97(0x26b)]===_0x1df2bb[_0x3e2e97(0x3d6)]['JOIN']?this['_onJoinRoomEvent'](_0xcb15b4):_0xcb15b4[_0x3e2e97(0x26b)]===_0x1df2bb[_0x3e2e97(0x3d6)][_0x3e2e97(0x176)]&&this[_0x3e2e97(0xfb)](_0xcb15b4);}[_0x21648f(0x2cf)](_0xda9612){const _0x104b30=_0x21648f;this[_0x104b30(0x147)][_0x104b30(0xdd)](0x1),_0xda9612[_0x104b30(0x182)]({'cmd':_0x1df2bb[_0x104b30(0x3d6)][_0x104b30(0xf1)],'routeKey':this[_0x104b30(0x1bc)][_0x104b30(0x355)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x104b30(0x1bc)][_0x104b30(0x355)][_0x104b30(0x3b9)]}]}});}['_onJoinRoomEvent'](_0x854478){const _0x28cb23=_0x21648f;var _0xdd002a;if(_0x854478[_0x28cb23(0x2b5)]in _0x12cc86){this[_0x28cb23(0x2bd)]['emitEvent']({'id':_0x28cb23(0x256),'data':_0x12cc86[_0x854478[_0x28cb23(0x2b5)]]}),this['_sessionStatus$']['next'](0x2);return;}this[_0x28cb23(0x147)]['next'](0x3);let _0x530902=(_0xdd002a=_0x854478['data']['roomInfos'][this[_0x28cb23(0x1bc)][_0x28cb23(0x355)][_0x28cb23(0x3b9)]])==null?void 0x0:_0xdd002a['members'];_0x530902&&_0x530902[_0x28cb23(0x352)](_0x481d7b=>this[_0x28cb23(0x132)][_0x28cb23(0x10e)](this[_0x28cb23(0x1bc)][_0x28cb23(0x3bf)],_0x481d7b));}['_onRecvEvent'](_0xd0d8e1){const _0x465be7=_0x21648f;try{let _0x208a42=_0xee3e37(this[_0x465be7(0x1bc)],_0xd0d8e1[_0x465be7(0x29b)]);for(let _0x289be8 of _0x208a42)switch(_0x289be8['eventID']){case _0x4c2ece[_0x465be7(0x343)]['USERS_ENTER']:this[_0x465be7(0x328)](_0x289be8),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece[_0x465be7(0x343)]['USERS_LEAVE']:this[_0x465be7(0x231)](_0x289be8),this['_event$'][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece[_0x465be7(0x343)]['CHANGESET_ACK']:case _0x4c2ece[_0x465be7(0x343)]['CHANGESET_SHOULD_RETRY']:this[_0x465be7(0x304)](),this[_0x465be7(0x1de)](),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece['CollaborationEvent']['MSG_FOR_ERROR']:this['_logService']['error'](_0x465be7(0x3ec)+JSON[_0x465be7(0x102)](_0x289be8)),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece[_0x465be7(0x343)][_0x465be7(0x1a9)]:this[_0x465be7(0x40c)][_0x465be7(0x3cc)](_0x289be8[_0x465be7(0x29b)]),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;default:this[_0x465be7(0x397)]['next'](_0x289be8);}}catch(_0x2ff079){this[_0x465be7(0x2fc)]['error'](_0x2ff079,_0xd0d8e1);}}[_0x21648f(0x328)](_0x1866e3){const _0x4934a1=_0x21648f;this[_0x4934a1(0x132)][_0x4934a1(0x10e)](this[_0x4934a1(0x1bc)][_0x4934a1(0x3bf)],_0x1866e3[_0x4934a1(0x29b)]);}[_0x21648f(0x231)](_0x37e1ef){const _0xa7957=_0x21648f;this[_0xa7957(0x132)][_0xa7957(0x19e)](this[_0xa7957(0x1bc)]['localUnitId'],_0x37e1ef[_0xa7957(0x29b)][_0xa7957(0x14c)]);}async[_0x21648f(0x182)](_0x5a7257,_0x27f270){const _0x160eb6=_0x21648f;if(this[_0x160eb6(0x141)]!==0x3||!this[_0x160eb6(0x1b2)])throw Error(_0x160eb6(0x142));try{let _0x439fad=_0x1d758e(this[_0x160eb6(0x1bc)],_0x5a7257);_0x439fad[_0x160eb6(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x160eb6(0x2a3)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x160eb6(0x36d)](_0x439fad)),this[_0x160eb6(0x1b2)][_0x160eb6(0x182)]({'cmd':_0x1df2bb['CombCmd'][_0x160eb6(0x159)],'routeKey':this[_0x160eb6(0x1bc)]['target']['unitId'],'routeType':'','data':_0x439fad});}catch(_0x54517b){this['_logService'][_0x160eb6(0x29e)](_0x54517b);}}['_scheduleCollaborationTimeoutTimer'](){const _0x20477f=_0x21648f;var _0x4ba5da;this[_0x20477f(0x177)]=setTimeout(()=>{const _0x285bba=_0x20477f;this[_0x285bba(0x177)]=null,this[_0x285bba(0x2bd)][_0x285bba(0x203)]({'id':_0x285bba(0x208)});},(_0x4ba5da=this[_0x20477f(0x23e)][_0x20477f(0x33e)](_0x20477f(0x276)))==null?_0x4067ce:_0x4ba5da);}[_0x21648f(0x1de)](){const _0x636cf0=_0x21648f;this[_0x636cf0(0x177)]&&(clearTimeout(this[_0x636cf0(0x177)]),this[_0x636cf0(0x177)]=null);}[_0x21648f(0x36d)](_0x335738){const _0x349495=_0x21648f;if(!this['_shouldReportTelemetry'])return;let {data:_0xb82da4}=_0x335738,{unitID:_0x43a284,changeset:_0x33e496}=_0xb82da4,{mutations:_0x2c78e7,type:_0xc63af5}=_0x33e496;this[_0x349495(0x1fb)]={'unitId':_0x43a284,'type':_0xc63af5,'startTime':performance[_0x349495(0x1c2)](),'stopTime':0x0,'duration':0x0,'size':_0x503d89(_0x2c78e7)};}[_0x21648f(0x304)](){const _0x11b8e4=_0x21648f;if(this['_shouldReportTelemetry']){if(!this[_0x11b8e4(0x1fb)]){this[_0x11b8e4(0x2fc)][_0x11b8e4(0x29e)]('[CollaborationSession]',_0x11b8e4(0x22e));return;}this[_0x11b8e4(0x1fb)]['stopTime']=performance[_0x11b8e4(0x1c2)](),this[_0x11b8e4(0x1fb)][_0x11b8e4(0xc8)]=this['_telemetryInfo'][_0x11b8e4(0x371)]-this[_0x11b8e4(0x1fb)][_0x11b8e4(0x21b)],this[_0x11b8e4(0x34a)][_0x11b8e4(0x148)](_0x11b8e4(0x225),this[_0x11b8e4(0x1fb)]),this[_0x11b8e4(0x1fb)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x35be7f=_0x21648f;this[_0x35be7f(0x1fb)]=null;}};_0x4d2902=_0x3e0941([_0x273192(0x2,_0x868841[_0x21648f(0x206)]),_0x273192(0x3,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x568427)),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x278d59)),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x238)])(_0x5a2801['ITelemetryService']))],_0x4d2902);let _0x47d8b0=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x36e));function _0x32415a(_0x5e6de9){const _0x14c39d=_0x21648f;return _0x14c39d(0x3d2)+_0x5e6de9;}function _0x305427(_0x5b1839){const _0x3b8ee3=_0x21648f;let {unitID:_0x4888c9,mutations:_0x907cb7}=_0x5b1839;return{'unitId':_0x4888c9,'subUnitId':_0x907cb7[_0x3b8ee3(0x207)]>0x0?_0x907cb7[0x0]['params'][_0x3b8ee3(0x410)]:null};}let _0xd82d96=class{constructor(_0x5bd23b,_0x417081,_0x23d2b6){const _0x2f72f9=_0x21648f;this[_0x2f72f9(0x2d9)]=_0x5bd23b,this['_transformService']=_0x417081,this['_instanceService']=_0x23d2b6;}[_0x21648f(0x3f0)](_0x26f08d){const _0xd4ee2a=_0x21648f;var _0x5709fd,_0x12e4cc;let _0x5529cf=this['_injector'][_0xd4ee2a(0x224)](_0x1d347c['SheetsSelectionsService']),{unitId:_0x30f6e9,subUnitId:_0x3084f6}=_0x305427(_0x26f08d),_0x5ac66a=_0x5529cf==null?void 0x0:_0x5529cf['getWorkbookSelections'](_0x30f6e9)[_0xd4ee2a(0x41c)](),_0x1ad502=(_0x5709fd=this[_0xd4ee2a(0x2b7)][_0xd4ee2a(0x209)](_0x30f6e9))==null||(_0x5709fd=_0x5709fd[_0xd4ee2a(0x3d5)]())==null?void 0x0:_0x5709fd[_0xd4ee2a(0x162)]();if(_0x5ac66a[_0xd4ee2a(0x207)]===0x0||!_0x30f6e9||!_0x3084f6)return;let _0x5a243f=[{'id':_0x1d347c['SetSelectionsOperation']['id'],'params':{'unitId':_0x30f6e9,'subUnitId':_0x1ad502,'selections':_0x868841['Tools']['deepClone'](_0x5ac66a)}}],_0x12421e=this[_0xd4ee2a(0x376)]['transformMutationsWithChangeset'](_0x26f08d,_0x5a243f);if(!(0x0,_0x4c2ece[_0xd4ee2a(0x2fa)])(_0x12421e))throw _0x12421e[_0xd4ee2a(0x29e)];let _0x7baf38=(_0x12e4cc=_0x12421e['m2Prime'][0x0])==null||(_0x12e4cc=_0x12e4cc[_0xd4ee2a(0x2b4)])==null?void 0x0:_0x12e4cc[_0xd4ee2a(0x31d)];if(Array[_0xd4ee2a(0x3af)](_0x7baf38)&&_0x7baf38[_0xd4ee2a(0x207)]){if(_0x7baf38[_0xd4ee2a(0x207)]===_0x5a243f[0x0]['params'][_0xd4ee2a(0x31d)][_0xd4ee2a(0x207)]&&_0x7baf38[_0xd4ee2a(0x27e)]((_0xcca689,_0x145697)=>_0x868841[_0xd4ee2a(0x348)]['equals'](_0xcca689[_0xd4ee2a(0x161)],_0x5a243f[0x0][_0xd4ee2a(0x2b4)]['selections'][_0x145697][_0xd4ee2a(0x161)])))return;this[_0xd4ee2a(0x2d9)][_0xd4ee2a(0x224)](_0x868841[_0xd4ee2a(0x2fd)])['executeCommand'](_0x1d347c['SetSelectionsOperation']['id'],{'unitId':_0x30f6e9,'subUnitId':_0x1ad502,'selections':_0x7baf38});}}};_0xd82d96=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x1,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0x2,_0x868841[_0x21648f(0x214)])],_0xd82d96);let _0x3857c0=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x181)),_0x294d78=function(_0x1f528b){const _0x50e08c=_0x21648f;return _0x1f528b[_0x1f528b[_0x50e08c(0x2d8)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x1f528b[_0x1f528b['OTHER_CLIENTS_EDITING']=0x1]=_0x50e08c(0x111),_0x1f528b;}({});function _0x5eaa92(_0x55a25f){const _0x3347b6=_0x21648f;var _0x109781;return!!((_0x109781=_0x55a25f[_0x3347b6(0x2b4)])!=null&&_0x109781[_0x3347b6(0x13b)]);}let _0x26c3bc=new Set([_0x1d347c['InsertSheetMutation']['id']]),_0x4130ba=new Set([_0x5aad88[_0x21648f(0x1b6)]['id'],_0x5aad88[_0x21648f(0x16e)]['id'],_0x5aad88[_0x21648f(0x317)]['id'],_0x5aad88[_0x21648f(0x2cc)]['id']]);function _0x2414e9(_0x2643cf,_0x43bbc4=_0x26c3bc){const _0x4cfd84=_0x21648f;let _0x5aa50c=[];for(let _0x2730aa of _0x2643cf){if(_0x43bbc4[_0x4cfd84(0x215)](_0x2730aa['id'])){if(_0x5aa50c['length']>0x0)break;_0x5aa50c[_0x4cfd84(0x327)](_0x2730aa);break;}if(_0x5eaa92(_0x2730aa)){if(_0x5aa50c[_0x4cfd84(0x207)]>0x0)break;_0x5aa50c[_0x4cfd84(0x327)](_0x2730aa);break;}_0x5aa50c[_0x4cfd84(0x327)](_0x2730aa);}return _0x5aa50c;}function _0x3782fb(_0x1e8292,_0x5d3203,_0x3ddf10,_0x2f7350,_0x48515f){const _0x1537c4=_0x21648f;var _0x280e80,_0x21c987,_0x5ed6fa,_0x1cdda1;let _0x51a9c3=_0x2414e9(_0x1e8292),_0x5cd162=(_0x280e80=(_0x21c987=_0x48515f[_0x1537c4(0x11f)]())==null?void 0x0:_0x21c987['userID'])==null?'unknown':_0x280e80,_0x3f8694=(_0x5ed6fa=(_0x1cdda1=_0x48515f[_0x1537c4(0x11f)]())==null?void 0x0:_0x1cdda1['memberID'])==null?_0x1537c4(0x20c):_0x5ed6fa;return{'changeset':{'unitID':_0x5d3203,'type':(0x0,_0x4c2ece['mapDocumentTypeToUniverInstanceType'])(_0x3ddf10[_0x1537c4(0x101)](_0x5d3203)),'baseRev':_0x2f7350[_0x1537c4(0x133)](_0x5d3203),'revision':0x0,'userID':_0x5cd162,'memberID':_0x3f8694,'mutations':_0x51a9c3},'pendingMutations':_0x1e8292[_0x1537c4(0x129)](_0x51a9c3['length'])};}function _0x1be665(_0x4ea150,_0x578466,_0x599a10,_0x2d3b74,_0x476cd7){const _0x43a971=_0x21648f;var _0x514152,_0x690bf2,_0x30ed31,_0x23f50b;let _0x4f47ad=_0x2414e9(_0x4ea150,_0x4130ba),_0x2c95c6=(_0x514152=(_0x690bf2=_0x476cd7['getCurrentUser']())==null?void 0x0:_0x690bf2[_0x43a971(0x185)])==null?'unknown':_0x514152,_0xdba0fc=(_0x30ed31=(_0x23f50b=_0x476cd7[_0x43a971(0x11f)]())==null?void 0x0:_0x23f50b['memberID'])==null?'unknown':_0x30ed31;return{'changeset':{'unitID':_0x578466,'type':(0x0,_0x4c2ece['mapDocumentTypeToUniverInstanceType'])(_0x599a10[_0x43a971(0x101)](_0x578466)),'baseRev':_0x2d3b74['getCurrentRevOfUnit'](_0x578466),'revision':0x0,'userID':_0x2c95c6,'memberID':_0xdba0fc,'mutations':_0x4f47ad},'pendingMutations':_0x4ea150['slice'](_0x4f47ad['length'])};}function _0x1a4977(_0xf17977,_0x20bc71,_0x19d9af,_0x1a1535,_0x10796b){const _0x2d2bda=_0x21648f;var _0x654db5,_0xb5c18b,_0x7449c6,_0x250fbb;let _0x5a0af8=_0xf17977[_0x2d2bda(0x25f)]((_0x4a9221,_0x529dac)=>{const _0x270826=_0x2d2bda;let _0x15332f=_0x4a9221[_0x4a9221[_0x270826(0x207)]-0x1],{id:_0x47c4b8}=_0x15332f==null?{}:_0x15332f,{id:_0x4cfd3c,type:_0x174b0a}=_0x529dac,_0x54dd9d=_0x529dac['params'];if(_0x47c4b8&&_0x47c4b8!==_0x4cfd3c)throw Error(_0x270826(0xe2)+_0x47c4b8+_0x270826(0x150)+_0x4cfd3c+'.');if(!_0x15332f)return[{'id':_0x4cfd3c,'type':_0x174b0a,'params':{'unitId':_0x54dd9d['unitId'],'textRanges':_0x54dd9d[_0x270826(0x40d)],'actions':_0x54dd9d[_0x270826(0x130)]}}];let _0x1e9354=_0x15332f[_0x270826(0x2b4)];return _0x23e2e8(_0x1e9354,_0x54dd9d)?[..._0x4a9221[_0x270826(0x129)](0x0,-0x1),{..._0x15332f,'id':_0x4cfd3c,'type':_0x174b0a,'params':{'unitId':_0x54dd9d[_0x270826(0x3b9)],'textRanges':_0x54dd9d['textRanges'],'actions':_0x868841[_0x270826(0x310)][_0x270826(0x268)](_0x1e9354[_0x270826(0x130)],_0x54dd9d[_0x270826(0x130)])}}]:[..._0x4a9221,{'id':_0x4cfd3c,'type':_0x174b0a,'params':{'unitId':_0x54dd9d[_0x270826(0x3b9)],'textRanges':_0x54dd9d['textRanges'],'actions':_0x54dd9d[_0x270826(0x130)]}}];},[]),_0x50a348=(_0x654db5=(_0xb5c18b=_0x10796b[_0x2d2bda(0x11f)]())==null?void 0x0:_0xb5c18b[_0x2d2bda(0x185)])==null?_0x2d2bda(0x20c):_0x654db5,_0x28707a=(_0x7449c6=(_0x250fbb=_0x10796b[_0x2d2bda(0x11f)]())==null?void 0x0:_0x250fbb[_0x2d2bda(0x14c)])==null?_0x2d2bda(0x20c):_0x7449c6;return{'changeset':{'unitID':_0x20bc71,'type':(0x0,_0x4c2ece[_0x2d2bda(0x3ee)])(_0x19d9af['getUnitType'](_0x20bc71)),'baseRev':_0x1a1535[_0x2d2bda(0x133)](_0x20bc71),'revision':0x0,'userID':_0x50a348,'memberID':_0x28707a,'mutations':_0x5a0af8},'pendingMutations':_0xf17977['slice'](_0xf17977[_0x2d2bda(0x207)])};}function _0x23e2e8(_0x322db7,_0x34950e){const _0x1b04ad=_0x21648f;return!_0x4deb3e(_0x322db7)&&!_0x4deb3e(_0x34950e)&&_0xe3dc4(_0x322db7[_0x1b04ad(0x130)],_0x34950e['actions']);}function _0x4deb3e(_0x22b01c){const _0x1e224b=_0x21648f;return _0x22b01c[_0x1e224b(0x3e6)]!==void 0x0;}function _0xe3dc4(_0x17e8e6,_0x4e4268){return _0x235ef7(_0x17e8e6)&&_0x235ef7(_0x4e4268)&&!_0x2c975f(_0x17e8e6)&&!_0x2c975f(_0x4e4268)&&!_0x48609b(_0x17e8e6)&&!_0x48609b(_0x4e4268);}function _0x235ef7(_0x35de33){const _0x10c6c9=_0x21648f;return _0xbdb930(_0x35de33)[_0x10c6c9(0x329)](_0x5426f7=>_0x232392(_0x5426f7)&&_0x5426f7['et']===_0x10c6c9(0x1c4));}function _0x48609b(_0x2a5556){const _0x117583=_0x21648f;return _0xbdb930(_0x2a5556)[_0x117583(0x329)](_0x517adf=>Array[_0x117583(0x3af)](_0x517adf)||typeof _0x517adf==_0x117583(0x353)||typeof _0x517adf==_0x117583(0x373));}function _0x2c975f(_0x46a73e){const _0x3a65c6=_0x21648f;return _0xbdb930(_0x46a73e)[_0x3a65c6(0x329)](_0x541053=>!_0x232392(_0x541053)||_0x541053['et']!=='text-x'||!Array['isArray'](_0x541053['e'])?!0x1:_0x541053['e'][_0x3a65c6(0x329)](_0x35e442=>!_0x232392(_0x35e442)||!_0x232392(_0x35e442['body'])?!0x1:Object[_0x3a65c6(0x180)][_0x3a65c6(0xc4)]['call'](_0x35e442['body'],'tables')||Object['prototype'][_0x3a65c6(0xc4)][_0x3a65c6(0x257)](_0x35e442[_0x3a65c6(0x346)],_0x3a65c6(0x110))||Object['prototype'][_0x3a65c6(0xc4)][_0x3a65c6(0x257)](_0x35e442[_0x3a65c6(0x346)],_0x3a65c6(0x11c))));}function _0xbdb930(_0x13e662){const _0x535ed=_0x21648f;if(!Array[_0x535ed(0x3af)](_0x13e662))return[];let _0x166f08=_0x13e662['includes']('body')?_0x13e662:_0x13e662['find'](_0x149cf3=>Array['isArray'](_0x149cf3)&&_0x149cf3[_0x535ed(0x335)](_0x535ed(0x346)));if(!Array[_0x535ed(0x3af)](_0x166f08))return[];let _0x39adbf=_0x166f08[_0x535ed(0xed)](_0x535ed(0x346));return _0x39adbf===-0x1?[]:_0x166f08[_0x535ed(0x129)](_0x39adbf+0x1);}function _0x232392(_0x259f01){const _0xf3b545=_0x21648f;return typeof _0x259f01=='object'&&!!_0x259f01&&!Array[_0xf3b545(0x3af)](_0x259f01);}function _0x11cbd2(_0x2c5486,_0x26ca69){const _0x650849=_0x21648f;let _0x385b34=new _0x409690[(_0x650849(0x235))](0x1);return setTimeout(()=>_0x385b34[_0x650849(0xdd)](_0x26ca69),_0x2c5486),_0x385b34[_0x650849(0x340)]()['pipe']((0x0,_0x409690['take'])(0x1));}var _0x402be7,_0x22ebf8,_0x4b7fc1;let _0x5c8834=function(_0x3cea28){const _0x19eef1=_0x21648f;return _0x3cea28[_0x19eef1(0x3ba)]='not_collab',_0x3cea28[_0x19eef1(0x286)]=_0x19eef1(0x39f),_0x3cea28[_0x19eef1(0x308)]=_0x19eef1(0x1f2),_0x3cea28['AWAITING']=_0x19eef1(0x359),_0x3cea28[_0x19eef1(0x10f)]='awaiting_with_pending',_0x3cea28[_0x19eef1(0xd7)]='fetch_missing',_0x3cea28[_0x19eef1(0xdf)]=_0x19eef1(0x1c5),_0x3cea28[_0x19eef1(0x33b)]=_0x19eef1(0x250),_0x3cea28;}({}),_0xf1445d=0x4e20,_0x4ff607=0x2bf20;var _0x316f37=class{constructor(_0x16dac4,_0x11bc9d,_0x29aee8,_0x5519aa,_0x15d99c,_0x14b68c,_0x165373,_0x475565,_0x38f642){const _0xb0b8d9=_0x21648f;this[_0xb0b8d9(0xff)]=_0x16dac4,this[_0xb0b8d9(0x350)]=_0x11bc9d,this['_handler']=_0x15d99c,this['_commandService']=_0x14b68c,this[_0xb0b8d9(0x17e)]=_0x165373,this[_0xb0b8d9(0xda)]=_0x475565,this[_0xb0b8d9(0x2c8)]=_0x38f642,_0x6d65c2(this,'_awaitingChangeset',null),_0x6d65c2(this,_0xb0b8d9(0x3c3),[]),this[_0xb0b8d9(0x1ca)]=_0x29aee8,this[_0xb0b8d9(0x3c3)]=_0x5519aa;}[_0x21648f(0x3c0)](_0x12d7e3){const _0x2f4f77=_0x21648f;let _0x3696da=this[_0x2f4f77(0xda)][_0x2f4f77(0x133)](this['unitID']);return _0x12d7e3[_0x2f4f77(0xcf)]>_0x3696da+0x1?(this[_0x2f4f77(0x306)][_0x2f4f77(0x25d)]({'from':_0x3696da,'to':_0x12d7e3[_0x2f4f77(0xcf)]-0x1}),!0x0):!0x1;}[_0x21648f(0x25c)](_0x31170f){const _0x3c367f=_0x21648f;this[_0x3c367f(0x17e)][_0x3c367f(0x3e8)](this[_0x3c367f(0xff)],_0x31170f);}[_0x21648f(0x1fd)](_0x147b73){const _0x22d32a=_0x21648f;var _0x12dbcb,_0x227655;(_0x12dbcb=(_0x227655=this[_0x22d32a(0x306)])[_0x22d32a(0x33c)])==null||_0x12dbcb['call'](_0x227655,_0x147b73);}[_0x21648f(0x400)](_0x10d0ca){const _0x3b2dce=_0x21648f;var _0x20e742,_0x1633c3;return(_0x20e742=(_0x1633c3=this[_0x3b2dce(0x306)])[_0x3b2dce(0x1d5)])==null?void 0x0:_0x20e742[_0x3b2dce(0x257)](_0x1633c3,_0x10d0ca);}[_0x21648f(0x2a7)](_0x13a8af){const _0x3fd7ac=_0x21648f;var _0x1c3b08,_0x1dc3e5;return(_0x1c3b08=(_0x1dc3e5=this['_handler'])[_0x3fd7ac(0x2e0)])==null?void 0x0:_0x1c3b08['call'](_0x1dc3e5,_0x13a8af);}[_0x21648f(0x29a)](_0x2d6f1b){const _0x134c76=_0x21648f;var _0x569785,_0x39c775,_0x5e4780;return(_0x569785=(_0x39c775=(_0x5e4780=this[_0x134c76(0x306)])[_0x134c76(0x19f)])==null?void 0x0:_0x39c775[_0x134c76(0x257)](_0x5e4780,_0x2d6f1b))==null?_0x2d6f1b:_0x569785;}[_0x21648f(0x18c)](_0x234c1b){const _0x4ec5bb=_0x21648f;var _0x3d098d,_0x50be7a,_0x49eeeb;return(_0x3d098d=(_0x50be7a=(_0x49eeeb=this['_handler'])[_0x4ec5bb(0x347)])==null?void 0x0:_0x50be7a['call'](_0x49eeeb,_0x234c1b))==null?_0x234c1b:_0x3d098d;}[_0x21648f(0x164)](_0x6b9721){const _0x3e9833=_0x21648f;if(this[_0x3e9833(0x350)]===_0x868841[_0x3e9833(0x2f8)]['UNIVER_DOC']){let {unitID:_0x4db691,mutations:_0xdb2e4e,memberID:_0x1109f4}=_0x6b9721,_0x6b5a0=_0xdb2e4e[_0x3e9833(0x207)]>0x0?_0xdb2e4e[0x0][_0x3e9833(0x2b4)][_0x3e9833(0x40d)]:[];if(Array[_0x3e9833(0x3af)](_0x6b5a0)&&_0x6b5a0[_0x3e9833(0x207)]>0x0){var _0x567999,_0x10580e;(_0x567999=(_0x10580e=this[_0x3e9833(0x306)])['onSyncEditingCollabCursor'])==null||_0x567999[_0x3e9833(0x257)](_0x10580e,{'unitID':_0x4db691,'memberID':_0x1109f4,'textRanges':_0x6b5a0});}}}[_0x21648f(0xf3)](){const _0x194d19=_0x21648f;var _0x22a023;(_0x22a023=this['_localCacheService'])==null||_0x22a023[_0x194d19(0x2f0)](this[_0x194d19(0xff)],this[_0x194d19(0x350)],this[_0x194d19(0x1ca)],this[_0x194d19(0x3c3)]);}[_0x21648f(0x183)](){const _0x5a7613=_0x21648f;return this[_0x5a7613(0xda)]['getCurrentRevOfUnit'](this['unitID']);}['_incrementRevisionNumber'](){const _0x4770e5=_0x21648f;this[_0x4770e5(0xda)][_0x4770e5(0xe6)](this[_0x4770e5(0xff)]);}[_0x21648f(0x296)](_0xe2d5d1){const _0x68942c=_0x21648f;let _0x427d1f=this[_0x68942c(0x29a)](_0xe2d5d1);_0x427d1f=this['_transformRemoteChangesetByStateCache'](_0x427d1f);let _0x54f59d=(0x0,_0x868841[_0x68942c(0x190)])(_0x427d1f[_0x68942c(0x1bb)],this[_0x68942c(0x155)],{'fromCollab':!0x0});if(!_0x54f59d['result']){var _0xaa9270;throw _0x54f59d[_0x68942c(0x29e)]instanceof Error?_0x54f59d[_0x68942c(0x29e)]:Error((_0xaa9270=_0x54f59d['error'])==null?_0x68942c(0x27d):_0xaa9270);}this[_0x68942c(0x400)](_0x427d1f),this[_0x68942c(0x2a7)](_0x427d1f),this[_0x68942c(0x25c)](_0xe2d5d1),this[_0x68942c(0x1fd)](_0x427d1f),this['_syncEditingCollabCursor'](_0x427d1f),this[_0x68942c(0x3d3)]();}};let _0x1e7b48=class extends _0x316f37{constructor(_0x28596a,_0x1003f0,_0x3902a2,_0x382168,_0x197ee9,_0x28e0fc,_0x338a24,_0x3bbd59,_0x5c8383,_0x31201b){const _0x25fef4=_0x21648f;super(_0x28596a,_0x1003f0,null,[],_0x3902a2,_0x338a24,_0x28e0fc,_0x382168,_0x31201b),this[_0x25fef4(0x2d9)]=_0x197ee9,this[_0x25fef4(0x2fc)]=_0x3bbd59,this[_0x25fef4(0x376)]=_0x5c8383,this[_0x25fef4(0x3f1)]=_0x31201b,_0x6d65c2(this,_0x25fef4(0x341),_0x25fef4(0x39f));}['appendMutation'](_0x369665){const _0x49ab15=_0x21648f;let _0x17476d=this[_0x49ab15(0x2d9)][_0x49ab15(0x3d9)](_0x5f0bc1,this['unitID'],this['type'],[_0x369665],this[_0x49ab15(0x306)]);return _0x17476d[_0x49ab15(0xf4)](),_0x17476d[_0x49ab15(0xf3)](),_0x17476d;}[_0x21648f(0x2ae)](_0x5331a6){const _0x11acc5=_0x21648f;if(this[_0x11acc5(0x3c0)](_0x5331a6))return this[_0x11acc5(0x2d9)][_0x11acc5(0x3d9)](_0x2ef93b,this[_0x11acc5(0xff)],this[_0x11acc5(0x350)],null,[],null,[_0x5331a6],this['_handler']);try{let _0xb74efe=this[_0x11acc5(0x376)]['transformMutationsWithChangeset'](_0x5331a6,[_0x4c2ece[_0x11acc5(0x2bb)]]);if((0x0,_0x4c2ece['isTransformMutationsWithChangesetSuccess'])(_0xb74efe)){let {c1Prime:_0x1f0716}=_0xb74efe;return this[_0x11acc5(0x296)](_0x1f0716),this;}throw _0xb74efe[_0x11acc5(0x29e)];}catch(_0xfc7dc6){return this['_logService']['error'](_0xfc7dc6),this['_onConflict'](!0x1);}}[_0x21648f(0x2b9)](_0x2420bc){const _0x253f96=_0x21648f;return this[_0x253f96(0x2d9)][_0x253f96(0x3d9)](_0x391b2a,this[_0x253f96(0xff)],this[_0x253f96(0x350)],null,[],this[_0x253f96(0x306)],_0x2420bc);}[_0x21648f(0xc9)](_0x50b5bd){const _0x217f01=_0x21648f;if(_0x50b5bd['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x217f01(0x3fa));}[_0x21648f(0x394)](){const _0x11b267=_0x21648f;throw Error(_0x11b267(0x298));}[_0x21648f(0x145)](){return this;}[_0x21648f(0x3b5)](){const _0x198807=_0x21648f;return this['_injector'][_0x198807(0x3d9)](_0x519d9e,this[_0x198807(0xff)],this[_0x198807(0x350)],null,[],this['_handler']);}[_0x21648f(0x29d)](){return this;}['resend'](){const _0x34da07=_0x21648f;throw Error(_0x34da07(0x305));}[_0x21648f(0x175)](){const _0xdddcb0=_0x21648f;let _0x2873fc=this[_0xdddcb0(0xda)][_0xdddcb0(0x133)](this[_0xdddcb0(0xff)]);return this['_handler']['onMissingChangesets']({'from':_0x2873fc,'to':0x0}),this['_injector'][_0xdddcb0(0x3d9)](_0x2ef93b,this[_0xdddcb0(0xff)],this[_0xdddcb0(0x350)],null,[],null,[],this['_handler']);}};_0x1e7b48=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x5,_0x868841['IUndoRedoService']),_0x273192(0x6,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x7,_0x868841['ILogService']),_0x273192(0x8,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0x9,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x1e7b48);let _0x5f0bc1=_0x402be7=class extends _0x316f37{constructor(_0x31790b,_0x3464ac,_0x54bd81,_0x3651d3,_0x561c88,_0x462302,_0x1acb1f,_0xc4512e,_0x3a6fa9,_0x1ab000,_0x3653eb,_0x3aecc7,_0x2accca,_0x2e9cb6){const _0x3634c1=_0x21648f;super(_0x31790b,_0x3464ac,null,_0x54bd81,_0x3651d3,_0x3a6fa9,_0x2accca,_0x462302,_0x2e9cb6),this[_0x3634c1(0x2d9)]=_0x561c88,this[_0x3634c1(0x132)]=_0x1acb1f,this['_logService']=_0xc4512e,this[_0x3634c1(0x23e)]=_0x1ab000,this[_0x3634c1(0x376)]=_0x3653eb,this[_0x3634c1(0x32f)]=_0x3aecc7,_0x6d65c2(this,_0x3634c1(0x341),_0x3634c1(0x1f2)),_0x6d65c2(this,_0x3634c1(0x212),null),_0x6d65c2(this,'_sendingTimer',null);}[_0x21648f(0x20f)](_0x4925a5){const _0x2fe1d6=_0x21648f;return this[_0x2fe1d6(0x3c3)][_0x2fe1d6(0x327)](_0x4925a5),this[_0x2fe1d6(0xf3)](),this;}[_0x21648f(0x2ae)](_0x11c9c6){const _0x340136=_0x21648f;if(this[_0x340136(0x3c0)](_0x11c9c6))return this[_0x340136(0x12b)](),this[_0x340136(0x2d9)]['createInstance'](_0x2ef93b,this[_0x340136(0xff)],this['type'],null,this['_pendingMutations'],null,[_0x11c9c6],this[_0x340136(0x306)]);try{let _0x2a8d55=this[_0x340136(0x376)]['transformMutationsWithChangeset'](_0x11c9c6,this[_0x340136(0x3c3)]);if((0x0,_0x4c2ece[_0x340136(0x2fa)])(_0x2a8d55)){let {c1Prime:_0x11e06d,m2Prime:_0xbdefc2}=_0x2a8d55;this['_executeRemoteChangeset'](_0x11e06d);let _0x27ba2e=this[_0x340136(0x2d9)][_0x340136(0x3d9)](_0x402be7,this[_0x340136(0xff)],this[_0x340136(0x350)],_0xbdefc2,this['_handler']);this['_clearScheduledTask']();let _0x56d743=new Date()[_0x340136(0x21f)](),_0x3c472c=this[_0x340136(0x212)]?Math['max'](this[_0x340136(0x212)]-_0x56d743,0x0):this[_0x340136(0x205)]();return _0x27ba2e[_0x340136(0xf4)](_0x3c472c),_0x27ba2e;}throw _0x2a8d55[_0x340136(0x29e)];}catch(_0x56e3c2){return this[_0x340136(0x2fc)]['error'](_0x56e3c2),this['_onConflict'](!0x1);}}[_0x21648f(0xc9)](_0x194d71){if(_0x194d71['revision']<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x21648f(0x394)](){const _0x351154=_0x21648f;throw Error(_0x351154(0x35b));}[_0x21648f(0x145)](){return this;}[_0x21648f(0x3b5)](){const _0x1325b4=_0x21648f;return this[_0x1325b4(0x12b)](),this[_0x1325b4(0x2d9)][_0x1325b4(0x3d9)](_0x519d9e,this['unitID'],this['type'],null,this[_0x1325b4(0x3c3)],this[_0x1325b4(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0xf4)](_0x4ee875){const _0x3b5429=_0x21648f;let _0x179dc6=_0x4ee875==null?this['_getSendChangesetTimeout']():_0x4ee875;this[_0x3b5429(0x212)]=new Date()[_0x3b5429(0x21f)]()+_0x179dc6,this[_0x3b5429(0x253)]=setTimeout(()=>{const _0x143ff1=_0x3b5429;this[_0x143ff1(0x12b)]();let _0x1768fb=null;switch(this['type']){case _0x868841['UniverInstanceType'][_0x143ff1(0x23b)]:_0x1768fb=_0x3782fb(this[_0x143ff1(0x3c3)],this['unitID'],this[_0x143ff1(0x32f)],this['_revisionService'],this[_0x143ff1(0x132)]);break;case _0x868841[_0x143ff1(0x2f8)]['UNIVER_DOC']:_0x1768fb=this[_0x143ff1(0x3c3)][_0x143ff1(0x27e)](_0xc18059=>_0xc18059['id']===_0x45a7a0[_0x143ff1(0x364)]['id'])?_0x1a4977(this['_pendingMutations'],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this[_0x143ff1(0x132)]):_0x3782fb(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this[_0x143ff1(0x132)]);break;case _0x868841['UniverInstanceType'][_0x143ff1(0x2b1)]:_0x1768fb=_0x1be665(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;case _0x868841[_0x143ff1(0x2f8)][_0x143ff1(0x28a)]:_0x1768fb=_0x3782fb(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this[_0x143ff1(0x132)]);break;case _0x868841[_0x143ff1(0x2f8)]['UNIVER_BASE']:_0x1768fb=_0x3782fb(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x143ff1(0x165));}let {changeset:_0x532721,pendingMutations:_0x43f5d0}=_0x1768fb;this[_0x143ff1(0x306)][_0x143ff1(0x11d)](_0x532721);let _0x160015=_0x43f5d0['length']?this[_0x143ff1(0x2d9)][_0x143ff1(0x3d9)](_0x4c911a,this[_0x143ff1(0xff)],this[_0x143ff1(0x350)],_0x532721,_0x43f5d0,this[_0x143ff1(0x306)],void 0x0):this['_injector'][_0x143ff1(0x3d9)](_0x403ace,this[_0x143ff1(0xff)],this[_0x143ff1(0x350)],_0x532721,this[_0x143ff1(0x306)]);_0x160015[_0x143ff1(0xf3)](),this[_0x143ff1(0x306)][_0x143ff1(0x1ba)](this,_0x160015);},_0x179dc6);}[_0x21648f(0x205)](){const _0x46c01d=_0x21648f;var _0x213287;let _0x28bb7f=this[_0x46c01d(0x23e)][_0x46c01d(0x33e)](_0x4b92ba);return(_0x213287=_0x28bb7f==null?void 0x0:_0x28bb7f[_0x46c01d(0x1da)])==null?0x7d0:_0x213287;}[_0x21648f(0x3ac)](){const _0x4bbf57=_0x21648f;throw Error(_0x4bbf57(0x20e));}[_0x21648f(0x12b)](){const _0x57a910=_0x21648f;this['_sendingTimer']!=null&&(clearTimeout(this[_0x57a910(0x253)]),this[_0x57a910(0x253)]=null);}['_onConflict'](_0xc4569){const _0x269ed9=_0x21648f;return this[_0x269ed9(0x12b)](),this['_injector'][_0x269ed9(0x3d9)](_0x391b2a,this[_0x269ed9(0xff)],this[_0x269ed9(0x350)],null,this[_0x269ed9(0x3c3)],this[_0x269ed9(0x306)],_0xc4569);}};_0x5f0bc1=_0x402be7=_0x3e0941([_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x568427)),_0x273192(0x7,_0x868841[_0x21648f(0x206)]),_0x273192(0x8,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x9,_0x868841[_0x21648f(0x2ba)]),_0x273192(0xa,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0xb,_0x868841[_0x21648f(0x214)]),_0x273192(0xc,_0x868841[_0x21648f(0x351)]),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x5f0bc1);let _0x403ace=_0x22ebf8=class extends _0x316f37{constructor(_0x567123,_0x4fa01e,_0x48d64d,_0x111284,_0x4ab0d2,_0x54e873,_0x319569,_0x3e3796,_0x54ea18,_0x585d98,_0x511833){const _0x1a96b8=_0x21648f;super(_0x567123,_0x4fa01e,_0x48d64d,[],_0x111284,_0x319569,_0x585d98,_0x54e873,_0x511833),this[_0x1a96b8(0x2d9)]=_0x4ab0d2,this[_0x1a96b8(0x2fc)]=_0x3e3796,this['_transformService']=_0x54ea18,_0x6d65c2(this,_0x1a96b8(0x341),_0x1a96b8(0x359)),_0x6d65c2(this,_0x1a96b8(0x3e3),0x0),_0x6d65c2(this,_0x1a96b8(0x415),0x0),_0x6d65c2(this,_0x1a96b8(0x2ff),void 0x0),_0x6d65c2(this,_0x1a96b8(0xf7),void 0x0);}[_0x21648f(0x20f)](_0x4ff127){const _0x327416=_0x21648f;this[_0x327416(0x12b)]();let _0xae963=this[_0x327416(0x2d9)]['createInstance'](_0x4c911a,this[_0x327416(0xff)],this[_0x327416(0x350)],this[_0x327416(0x1ca)],[_0x4ff127],this['_handler'],this[_0x327416(0x2ff)]);return _0xae963[_0x327416(0xf3)](),_0xae963;}[_0x21648f(0x2ae)](_0x22077a){const _0x59eaf0=_0x21648f;if(this[_0x59eaf0(0x3c0)](_0x22077a))return this[_0x59eaf0(0x12b)](),this['_injector'][_0x59eaf0(0x3d9)](_0x2ef93b,this['unitID'],this[_0x59eaf0(0x350)],this[_0x59eaf0(0x1ca)],[],null,[_0x22077a],this[_0x59eaf0(0x306)]);try{let _0xb346a8=this[_0x59eaf0(0x376)][_0x59eaf0(0x419)]([_0x22077a],[this[_0x59eaf0(0x1ca)]],!0x1);if((0x0,_0x4c2ece['isTransformChangesetsSuccess'])(_0xb346a8)){let {c1Prime:_0x3d6eef,c2Prime:_0x542453}=_0xb346a8;this['_executeRemoteChangeset'](_0x3d6eef[0x0]),_0x542453[0x0][_0x59eaf0(0x1d8)]=this[_0x59eaf0(0x183)](),this[_0x59eaf0(0x12b)]();let _0x433757=this[_0x59eaf0(0x2d9)][_0x59eaf0(0x3d9)](_0x22ebf8,this[_0x59eaf0(0xff)],this[_0x59eaf0(0x350)],_0x542453[0x0],this[_0x59eaf0(0x306)]);return _0x433757[_0x59eaf0(0xf3)](),_0x433757;}throw _0xb346a8[_0x59eaf0(0x29e)];}catch(_0x141ab4){return this['_logService']['error'](_0x141ab4),this[_0x59eaf0(0x2b9)](!0x1);}}[_0x21648f(0xc9)](_0x5a526a){const _0x593c43=_0x21648f;this[_0x593c43(0x12b)]();let _0x45eb78=this[_0x593c43(0xda)][_0x593c43(0x133)](this['unitID']);if(_0x5a526a[_0x593c43(0xcf)]<=_0x45eb78)return this;if(this[_0x593c43(0x3c0)](_0x5a526a))return this[_0x593c43(0x2d9)]['createInstance'](_0x2ef93b,this[_0x593c43(0xff)],this[_0x593c43(0x350)],this['_awaitingChangeset'],[],_0x5a526a[_0x593c43(0xcf)],[],this[_0x593c43(0x306)]);this['_incrementRevisionNumber']();let _0x18dc40=this[_0x593c43(0x2d9)]['createInstance'](_0x1e7b48,this['unitID'],this[_0x593c43(0x350)],this[_0x593c43(0x306)]);return _0x18dc40[_0x593c43(0xf3)](),_0x18dc40;}[_0x21648f(0x394)](_0xff5aac){const _0x2fec91=_0x21648f;return this[_0x2fec91(0x2b9)](!!(_0xff5aac!=null&&_0xff5aac['isPermissionRej']));}[_0x21648f(0x145)](_0x155ab8){const _0x3cee16=_0x21648f;return this[_0x3cee16(0x415)]>_0x4ff607?this[_0x3cee16(0x3b5)]():(this[_0x3cee16(0x2ff)]=_0x11cbd2(this[_0x3cee16(0x3e3)],{'timeout':this['_resendTimeout'],'reqId':_0x155ab8[_0x3cee16(0x1ff)]}),this[_0x3cee16(0xf7)]=this[_0x3cee16(0x2ff)][_0x3cee16(0x3b6)](({reqId:_0x2f6a28,timeout:_0x5b2729})=>{this['_resendWithTimeout'](_0x2f6a28,_0x5b2729);}),this);}[_0x21648f(0x3b5)](){const _0x3b1428=_0x21648f;return this[_0x3b1428(0x12b)](),this[_0x3b1428(0x2d9)][_0x3b1428(0x3d9)](_0x519d9e,this[_0x3b1428(0xff)],this[_0x3b1428(0x350)],this['_awaitingChangeset'],[],this[_0x3b1428(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x3ac)](){const _0x2da836=_0x21648f;this[_0x2da836(0x306)][_0x2da836(0x11d)](this['_awaitingChangeset']);}['_onConflict'](_0x3eb075){const _0x28fa34=_0x21648f;return this[_0x28fa34(0x12b)](),this[_0x28fa34(0x2d9)][_0x28fa34(0x3d9)](_0x391b2a,this[_0x28fa34(0xff)],this['type'],this[_0x28fa34(0x1ca)],[],this[_0x28fa34(0x306)],_0x3eb075);}['_resendWithTimeout'](_0x8157da,_0x42b20a){const _0x243966=_0x21648f;var _0x39bd69;_0x8157da===((_0x39bd69=this[_0x243966(0x1ca)])==null?void 0x0:_0x39bd69[_0x243966(0x1ff)])&&(this[_0x243966(0x3ac)](),this['_resendTimeout']=_0x42b20a===0x0?0x3e8:Math[_0x243966(0xdb)](_0x42b20a*0x2,_0xf1445d),this[_0x243966(0x415)]+=this[_0x243966(0x3e3)]);}['_clearScheduledTask'](){const _0x323503=_0x21648f;var _0x5d237c;(_0x5d237c=this[_0x323503(0xf7)])==null||_0x5d237c[_0x323503(0x157)](),this[_0x323503(0x3e3)]=0x0,this[_0x323503(0x415)]=0x0;}};_0x403ace=_0x22ebf8=_0x3e0941([_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x6,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x7,_0x868841[_0x21648f(0x206)]),_0x273192(0x8,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0x9,_0x868841[_0x21648f(0x351)]),_0x273192(0xa,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x403ace);let _0x4c911a=_0x4b7fc1=class extends _0x316f37{constructor(_0x1545f4,_0x326363,_0x3a17ba,_0x2485e4,_0x3d727b,_0x3dbdb9,_0x303364,_0x344a94,_0x4843a7,_0x4fb051,_0x1ed5d9,_0x251732,_0x575a36){const _0x3d4adf=_0x21648f;super(_0x1545f4,_0x326363,_0x3a17ba,_0x2485e4,_0x3d727b,_0x4843a7,_0x251732,_0x344a94,_0x575a36),this['_injector']=_0x303364,this[_0x3d4adf(0x2fc)]=_0x4fb051,this['_transformService']=_0x1ed5d9,this['localCacheService']=_0x575a36,_0x6d65c2(this,_0x3d4adf(0x341),_0x3d4adf(0x3dc)),_0x6d65c2(this,_0x3d4adf(0x3e3),0x0),_0x6d65c2(this,_0x3d4adf(0x415),0x0),_0x6d65c2(this,_0x3d4adf(0x2ff),void 0x0),_0x6d65c2(this,'_sender',void 0x0),_0x3dbdb9&&(this['_resendTimer']=_0x3dbdb9,this[_0x3d4adf(0xf7)]=this['_resendTimer'][_0x3d4adf(0x3b6)](({reqId:_0x1392cc,timeout:_0x5326db})=>{const _0x2247ea=_0x3d4adf;this[_0x2247ea(0x1e3)](_0x1392cc,_0x5326db);}));}['appendMutation'](_0x278e75){const _0x5cc352=_0x21648f;return this[_0x5cc352(0x3c3)]['push'](_0x278e75),this;}[_0x21648f(0x2ae)](_0x5d4c52){const _0x37c736=_0x21648f;if(this['_checkMissing'](_0x5d4c52))return this['_clearScheduledTask'](),this[_0x37c736(0x2d9)]['createInstance'](_0x2ef93b,this['unitID'],this[_0x37c736(0x350)],this[_0x37c736(0x1ca)],this['_pendingMutations'],null,[_0x5d4c52],this['_handler']);try{let _0x1e815a=this[_0x37c736(0x376)][_0x37c736(0x419)]([_0x5d4c52],[this[_0x37c736(0x1ca)]],!0x1);if((0x0,_0x4c2ece['isTransformChangesetsSuccess'])(_0x1e815a)){let {c1Prime:_0x1f3243,c2Prime:_0x21430d}=_0x1e815a,_0xd54dc3=this[_0x37c736(0x376)][_0x37c736(0x3e9)](_0x1f3243[0x0],this[_0x37c736(0x3c3)]);if((0x0,_0x4c2ece[_0x37c736(0x2fa)])(_0xd54dc3)){let {c1Prime:_0x38d4d3,m2Prime:_0x4068d0}=_0xd54dc3;return this[_0x37c736(0x296)](_0x38d4d3),_0x21430d[0x0][_0x37c736(0x1d8)]=this[_0x37c736(0x183)](),this[_0x37c736(0x12b)](),this[_0x37c736(0x2d9)][_0x37c736(0x3d9)](_0x4b7fc1,this[_0x37c736(0xff)],this[_0x37c736(0x350)],_0x21430d[0x0],_0x4068d0,this['_handler'],void 0x0);}throw _0xd54dc3['error'];}throw _0x1e815a[_0x37c736(0x29e)];}catch(_0x5d22c9){return this['_logService'][_0x37c736(0x29e)](_0x5d22c9),this[_0x37c736(0x2b9)](!0x1);}}[_0x21648f(0xc9)](_0x54cca7){const _0x48b5b6=_0x21648f;this[_0x48b5b6(0x12b)]();let _0x2e4a19=this['_getCurrentRevision']();if(_0x54cca7['revision']<=_0x2e4a19)return this;if(this[_0x48b5b6(0x3c0)](_0x54cca7))return this[_0x48b5b6(0x2d9)][_0x48b5b6(0x3d9)](_0x2ef93b,this['unitID'],this[_0x48b5b6(0x350)],this['_awaitingChangeset'],this[_0x48b5b6(0x3c3)],_0x54cca7[_0x48b5b6(0xcf)],[],this['_handler']);this[_0x48b5b6(0x3d3)]();let _0x67c0bd=this[_0x48b5b6(0x2d9)][_0x48b5b6(0x3d9)](_0x5f0bc1,this[_0x48b5b6(0xff)],this[_0x48b5b6(0x350)],this[_0x48b5b6(0x3c3)],this[_0x48b5b6(0x306)]);return _0x67c0bd[_0x48b5b6(0xf4)](),_0x67c0bd['_updateLocalCache'](),_0x67c0bd;}[_0x21648f(0x394)](_0x26ca86){return this['_onConflict'](!!(_0x26ca86!=null&&_0x26ca86['isPermissionRej']));}[_0x21648f(0x145)](_0x36ac7e){const _0x291d59=_0x21648f;return this[_0x291d59(0x415)]>_0x4ff607?this[_0x291d59(0x3b5)]():(this['_resendTimer']=_0x11cbd2(this[_0x291d59(0x3e3)],{'timeout':this[_0x291d59(0x3e3)],'reqId':_0x36ac7e[_0x291d59(0x1ff)]}),this[_0x291d59(0xf7)]=this[_0x291d59(0x2ff)][_0x291d59(0x3b6)](({reqId:_0x203127,timeout:_0x1cbc07})=>{const _0x1f3c5c=_0x291d59;this[_0x1f3c5c(0x1e3)](_0x203127,_0x1cbc07);}),this);}[_0x21648f(0x3b5)](){const _0x59a5da=_0x21648f;return this['_clearScheduledTask'](),this['_injector'][_0x59a5da(0x3d9)](_0x519d9e,this[_0x59a5da(0xff)],this[_0x59a5da(0x350)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x59a5da(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x3ac)](){const _0x192d08=_0x21648f;this[_0x192d08(0x306)][_0x192d08(0x11d)](this['_awaitingChangeset']);}[_0x21648f(0x2b9)](_0x3aa7aa){const _0x52799c=_0x21648f;return this['_clearScheduledTask'](),this[_0x52799c(0x2d9)][_0x52799c(0x3d9)](_0x391b2a,this[_0x52799c(0xff)],this[_0x52799c(0x350)],null,this[_0x52799c(0x3c3)],this[_0x52799c(0x306)],_0x3aa7aa);}['_resendWithTimeout'](_0x438e99,_0x3ec63a){const _0x2eab44=_0x21648f;var _0x1d6ef4;_0x438e99===((_0x1d6ef4=this['_awaitingChangeset'])==null?void 0x0:_0x1d6ef4[_0x2eab44(0x1ff)])&&(this[_0x2eab44(0x3ac)](),this['_resendTimeout']=_0x3ec63a===0x0?0x3e8:Math[_0x2eab44(0xdb)](_0x3ec63a*0x2,_0xf1445d),this[_0x2eab44(0x415)]+=this['_resendTimeout']);}[_0x21648f(0x12b)](){const _0x2cd220=_0x21648f;var _0x7c1f7a;(_0x7c1f7a=this[_0x2cd220(0xf7)])==null||_0x7c1f7a[_0x2cd220(0x157)](),this[_0x2cd220(0x3e3)]=0x0,this[_0x2cd220(0x415)]=0x0;}};_0x4c911a=_0x4b7fc1=_0x3e0941([_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x7,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x8,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0xb,_0x868841[_0x21648f(0x351)]),_0x273192(0xc,(0x0,_0x868841['Optional'])(_0x47d8b0))],_0x4c911a);let _0x391b2a=class extends _0x316f37{constructor(_0x1fa4bb,_0x4fe3af,_0x44d3c6,_0x711e4c,_0x394721,_0x220d1e=!0x1,_0x2f9282,_0x439a53,_0x1dedb6,_0x329cce,_0x42b005,_0x536963,_0x3dddab){const _0x2fdcc2=_0x21648f;super(_0x1fa4bb,_0x4fe3af,_0x44d3c6,_0x711e4c,_0x394721,_0x439a53,_0x1dedb6,_0x329cce,_0x3dddab),this[_0x2fdcc2(0x301)]=_0x220d1e,this[_0x2fdcc2(0x393)]=_0x2f9282,this[_0x2fdcc2(0x178)]=_0x42b005,this['_collaborationUIEventService']=_0x536963,this[_0x2fdcc2(0x3f1)]=_0x3dddab,_0x6d65c2(this,_0x2fdcc2(0x341),_0x2fdcc2(0x1c5)),this[_0x2fdcc2(0x2bf)](),this[_0x2fdcc2(0x1f9)](),this['_disableEditing']();}[_0x21648f(0x20f)](){return this;}['onRemoteChangeset'](){return this;}[_0x21648f(0xc9)](){return this;}[_0x21648f(0x394)](){return this;}[_0x21648f(0x145)](){return this;}['toggleOffline'](){return this;}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x3ac)](){const _0x5813cc=_0x21648f;throw Error(_0x5813cc(0xf5));}[_0x21648f(0x1f9)](){const _0x57d56e=_0x21648f;var _0x2538b1,_0x35e0c5,_0x36783d;(_0x2538b1=this[_0x57d56e(0x2c8)])==null||(_0x35e0c5=_0x2538b1[_0x57d56e(0x379)])==null||(_0x35e0c5=_0x35e0c5[_0x57d56e(0x257)](_0x2538b1,this[_0x57d56e(0xff)],_0x57d56e(0x1c5)))==null||_0x35e0c5[_0x57d56e(0x34b)](()=>void 0x0),(_0x36783d=this[_0x57d56e(0x2c8)])==null||_0x36783d[_0x57d56e(0x2f0)](this[_0x57d56e(0xff)],this['type'],null,[]);}[_0x21648f(0x2bf)](){const _0x12451d=_0x21648f;this[_0x12451d(0x301)]?this[_0x12451d(0x2bd)][_0x12451d(0x203)]({'id':_0x12451d(0xe7)}):this[_0x12451d(0x2bd)][_0x12451d(0x203)]({'id':'CONFLICT'});}[_0x21648f(0x152)](){const _0x26ed4b=_0x21648f;this[_0x26ed4b(0x393)][_0x26ed4b(0x339)](new _0x1d347c[(_0x26ed4b(0x360))](this['unitID'])['id'],!0x1);}};_0x391b2a=_0x3e0941([_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x307)])),_0x273192(0x7,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x8,_0x868841[_0x21648f(0x351)]),_0x273192(0x9,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece['RevisionService'])),_0x273192(0xa,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x290)])),_0x273192(0xb,(0x0,_0x868841['Inject'])(_0x55b02d)),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x391b2a);let _0x519d9e=class extends _0x316f37{constructor(_0x1458d6,_0x316881,_0x34d0d3,_0x25195f,_0x3367d9,_0x7f01f0,_0x2d3633,_0x4c434a,_0x50b797,_0x37cef3){const _0x1e9e7a=_0x21648f;super(_0x1458d6,_0x316881,_0x34d0d3,_0x25195f,_0x3367d9,_0x4c434a,_0x50b797,_0x2d3633,_0x37cef3),this['_injector']=_0x7f01f0,_0x6d65c2(this,'status',_0x1e9e7a(0x250));}[_0x21648f(0x20f)](_0x1d240c){const _0x3ffccf=_0x21648f;return this['_pendingMutations']['push'](_0x1d240c),this[_0x3ffccf(0xf3)](),this;}[_0x21648f(0x2ae)](_0x2f4845){const _0x277f22=_0x21648f;throw Error(_0x277f22(0x295));}[_0x21648f(0xc9)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x2ffd21=_0x21648f;throw Error(_0x2ffd21(0x270));}[_0x21648f(0x145)](){return this;}['toggleOffline'](){return this;}[_0x21648f(0x29d)](){const _0x733b5d=_0x21648f;let {_injector:_0x3720ff,_pendingMutations:_0x25d72f,_awaitingChangeset:_0x9911d3,unitID:_0x2cbedd,_handler:_0x41375d,type:_0x38091e}=this,_0x42e244=_0x1522ce(_0x3720ff,_0x2cbedd,_0x38091e,_0x9911d3,_0x25d72f,_0x41375d);return _0x42e244 instanceof _0x5f0bc1?_0x42e244[_0x733b5d(0xf4)]():(_0x42e244 instanceof _0x4c911a||_0x42e244 instanceof _0x403ace)&&_0x42e244[_0x733b5d(0x3ac)](),_0x42e244;}[_0x21648f(0x3ac)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x519d9e=_0x3e0941([_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x8,_0x868841['IUndoRedoService']),_0x273192(0x9,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x519d9e);let _0x2ef93b=class extends _0x316f37{constructor(_0x2d2fa5,_0x56ef58,_0x5eb312,_0x2cb5ef,_0x51f5f0,_0x3d81db,_0x36701d,_0x3a5a31,_0x451b05,_0x5c5fe7,_0x592ed4,_0x4c4b47,_0x4b71f7,_0x2b2da5){const _0x1cc25b=_0x21648f;super(_0x2d2fa5,_0x56ef58,_0x5eb312,_0x2cb5ef,_0x36701d,_0x592ed4,_0x4c4b47,_0x451b05,_0x2b2da5),this[_0x1cc25b(0x2f7)]=_0x51f5f0,this['_queuedRemoteChangesets']=_0x3d81db,this[_0x1cc25b(0x2d9)]=_0x3a5a31,this[_0x1cc25b(0x2fc)]=_0x5c5fe7,this[_0x1cc25b(0x376)]=_0x4b71f7,this[_0x1cc25b(0x3f1)]=_0x2b2da5,_0x6d65c2(this,_0x1cc25b(0x341),_0x1cc25b(0x402));}[_0x21648f(0xc7)](_0x1aa240){const _0x52b322=_0x21648f;try{if(this[_0x52b322(0x342)](_0x1aa240)[_0x52b322(0x3e2)])throw Error(_0x52b322(0x403));if(this['_handleRemoteChangesets']([...this[_0x52b322(0x3f3)]]['sort']((_0x1a0bb5,_0x17905f)=>_0x1a0bb5[_0x52b322(0xcf)]-_0x17905f[_0x52b322(0xcf)]))[_0x52b322(0x3e2)])return this[_0x52b322(0x3f3)]=[],this[_0x52b322(0xf3)](),this['_handler'][_0x52b322(0x25d)]({'from':this[_0x52b322(0x183)](),'to':0x0}),this;let _0x3ac448=this[_0x52b322(0x1ca)],_0x4bfbd1=this[_0x52b322(0x3c3)],_0x4151ae;if(_0x3ac448&&_0x4bfbd1[_0x52b322(0x207)]!==0x0)_0x4151ae=this['_injector'][_0x52b322(0x3d9)](_0x4c911a,this[_0x52b322(0xff)],this[_0x52b322(0x350)],_0x3ac448,_0x4bfbd1,this[_0x52b322(0x306)],void 0x0);else{if(_0x3ac448&&_0x4bfbd1[_0x52b322(0x207)]===0x0)_0x3ac448[_0x52b322(0x1d8)]=this['_getCurrentRevision'](),_0x4151ae=this[_0x52b322(0x2d9)]['createInstance'](_0x403ace,this['unitID'],this[_0x52b322(0x350)],_0x3ac448,this[_0x52b322(0x306)]);else{if(_0x4bfbd1[_0x52b322(0x207)]!==0x0){let _0x210198=this[_0x52b322(0x2d9)]['createInstance'](_0x5f0bc1,this[_0x52b322(0xff)],this[_0x52b322(0x350)],_0x4bfbd1,this[_0x52b322(0x306)]);_0x210198[_0x52b322(0xf4)](),_0x4151ae=_0x210198;}else _0x4151ae=this[_0x52b322(0x2d9)][_0x52b322(0x3d9)](_0x1e7b48,this[_0x52b322(0xff)],this['type'],this[_0x52b322(0x306)]);}}return _0x4151ae[_0x52b322(0xf3)](),_0x4151ae;}catch(_0x53937f){return this['_logService']['error']('[FetchMissState]',_0x52b322(0x32d),_0x53937f),this[_0x52b322(0x2d9)][_0x52b322(0x3d9)](_0x391b2a,this['unitID'],this[_0x52b322(0x350)],this[_0x52b322(0x1ca)],this[_0x52b322(0x3c3)],this[_0x52b322(0x306)],!0x1);}}[_0x21648f(0x342)](_0x5e0e20){const _0x26ff9d=_0x21648f;this[_0x26ff9d(0x12a)]();for(let _0x3c7968=0x0;_0x3c7968<_0x5e0e20[_0x26ff9d(0x207)];_0x3c7968++){let _0x185664=_0x5e0e20[_0x3c7968],_0x322897=this[_0x26ff9d(0x183)]();if(!(_0x185664[_0x26ff9d(0xcf)]<=_0x322897)){if(_0x185664['revision']>_0x322897+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x185664)){this[_0x26ff9d(0x375)]();continue;}this[_0x26ff9d(0x1f1)](_0x185664),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x21648f(0x1f1)](_0x159b49){const _0x331a9c=_0x21648f;let _0x549fda=_0x159b49,_0x432d78=this[_0x331a9c(0x1ca)];if(_0x432d78){let _0x44abca=this[_0x331a9c(0x376)]['transformChangesets']([_0x159b49],[_0x432d78],!0x1);if(!(0x0,_0x4c2ece[_0x331a9c(0x3a4)])(_0x44abca))throw _0x44abca[_0x331a9c(0x29e)];_0x549fda=_0x44abca[_0x331a9c(0x3ae)][0x0],_0x432d78=_0x44abca[_0x331a9c(0x1dc)][0x0];}let _0x46f055=this[_0x331a9c(0x3c3)];if(_0x46f055[_0x331a9c(0x207)]){let _0x30e93c=this[_0x331a9c(0x376)][_0x331a9c(0x3e9)](_0x549fda,_0x46f055);if(!(0x0,_0x4c2ece[_0x331a9c(0x2fa)])(_0x30e93c))throw _0x30e93c['error'];_0x549fda=_0x30e93c[_0x331a9c(0x3ae)],_0x46f055=_0x30e93c[_0x331a9c(0x188)];}this[_0x331a9c(0x296)](_0x549fda),_0x432d78&&(_0x432d78[_0x331a9c(0x1d8)]=this[_0x331a9c(0x183)]()),this[_0x331a9c(0x1ca)]=_0x432d78,this[_0x331a9c(0x3c3)]=_0x46f055;}[_0x21648f(0x12a)](){const _0x53f3c2=_0x21648f;if(!this[_0x53f3c2(0x1ca)]||this[_0x53f3c2(0x2f7)]==null)return;let _0xe0dc16=this[_0x53f3c2(0x183)]();if(this[_0x53f3c2(0x2f7)]<=_0xe0dc16)throw Error(_0x53f3c2(0x16f)+this[_0x53f3c2(0x2f7)]+'.');this['_acknowledgedAwaitingRevision']===_0xe0dc16+0x1&&this[_0x53f3c2(0x375)]();}[_0x21648f(0x375)](){const _0x34ed63=_0x21648f;this[_0x34ed63(0x3d3)](),this[_0x34ed63(0x1ca)]=null,this[_0x34ed63(0x2f7)]=null;}[_0x21648f(0x12e)](_0x439fd5){const _0x26495b=_0x21648f;let _0x5ddd1f=this['_awaitingChangeset'];return!_0x5ddd1f||!_0x5ddd1f[_0x26495b(0x2d6)]||_0x5ddd1f[_0x26495b(0x1ff)]===null||_0x5ddd1f[_0x26495b(0x1ff)]===void 0x0?!0x1:_0x439fd5['unitID']===_0x5ddd1f['unitID']&&_0x439fd5[_0x26495b(0x2d6)]===_0x5ddd1f[_0x26495b(0x2d6)]&&_0x439fd5[_0x26495b(0x1ff)]===_0x5ddd1f[_0x26495b(0x1ff)];}[_0x21648f(0x3ac)](){const _0xb16caa=_0x21648f;throw Error(_0xb16caa(0x248));}['appendMutation'](_0x4453af){const _0x577b8e=_0x21648f;return this[_0x577b8e(0x3c3)][_0x577b8e(0x327)](_0x4453af),this;}[_0x21648f(0x2ae)](_0x3c99b9){const _0x1187d2=_0x21648f;return this[_0x1187d2(0x3f3)][_0x1187d2(0x327)](_0x3c99b9),this;}[_0x21648f(0xc9)](_0x28bb11){const _0x3a54bd=_0x21648f;if(this[_0x3a54bd(0x1ca)]){let _0x1d842b=this[_0x3a54bd(0x183)]();return _0x28bb11['revision']<=_0x1d842b||(_0x1d842b+0x1===_0x28bb11['revision']?(this['_incrementRevisionNumber'](),this[_0x3a54bd(0x1ca)]=null,this[_0x3a54bd(0x2f7)]=null):this[_0x3a54bd(0x2f7)]=_0x28bb11[_0x3a54bd(0xcf)]),this;}if(_0x28bb11[_0x3a54bd(0xcf)]<=this['_getCurrentRevision']())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x17834b){const _0x42ade0=_0x21648f;return this[_0x42ade0(0x2b9)](!!(_0x17834b!=null&&_0x17834b['isPermissionRej']));}[_0x21648f(0x145)](){return this;}[_0x21648f(0x3b5)](){const _0x197895=_0x21648f;return this[_0x197895(0x2d9)][_0x197895(0x3d9)](_0x519d9e,this[_0x197895(0xff)],this[_0x197895(0x350)],this[_0x197895(0x1ca)],this['_pendingMutations'],this[_0x197895(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x2b9)](_0x5c4b63){const _0x2c4c55=_0x21648f;return this[_0x2c4c55(0x2d9)]['createInstance'](_0x391b2a,this[_0x2c4c55(0xff)],this[_0x2c4c55(0x350)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x2c4c55(0x306)],_0x5c4b63);}};_0x2ef93b=_0x3e0941([_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x8,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x351)]),_0x273192(0xc,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x2ef93b);function _0x1522ce(_0x12f76d,_0x12fbd4,_0x3b33f7,_0x3ccd6d,_0x37e4e9,_0x18bb95){const _0x177e92=_0x21648f;return _0x3ccd6d&&_0x37e4e9['length']?_0x12f76d['createInstance'](_0x4c911a,_0x12fbd4,_0x3b33f7,_0x3ccd6d,_0x37e4e9,_0x18bb95,void 0x0):_0x3ccd6d?_0x12f76d[_0x177e92(0x3d9)](_0x403ace,_0x12fbd4,_0x3b33f7,_0x3ccd6d,_0x18bb95):_0x37e4e9[_0x177e92(0x207)]?_0x12f76d[_0x177e92(0x3d9)](_0x5f0bc1,_0x12fbd4,_0x3b33f7,_0x37e4e9,_0x18bb95):_0x12f76d['createInstance'](_0x1e7b48,_0x12fbd4,_0x3b33f7,_0x18bb95);}let _0x598b2a=class extends _0x868841[_0x21648f(0x112)]{get[_0x21648f(0xcc)](){return this['_state'];}constructor(_0x4be8eb,_0x4fd579,_0x4bc0c1,_0xf5bb5e,_0x3e40c2,_0x5ab8a5,_0x2fd36f,_0x115cce,_0x146ea5,_0x5c5944,_0x2a680a,_0x3cefb3,_0x40014d,_0x234439){const _0x3f8697=_0x21648f;super(),this[_0x3f8697(0xff)]=_0x4be8eb,this['session']=_0x4fd579,this[_0x3f8697(0x321)]=_0x4bc0c1,this[_0x3f8697(0x2d9)]=_0xf5bb5e,this[_0x3f8697(0x2ab)]=_0x3e40c2,this[_0x3f8697(0x178)]=_0x5ab8a5,this[_0x3f8697(0xda)]=_0x2fd36f,this[_0x3f8697(0x11e)]=_0x115cce,this[_0x3f8697(0x32f)]=_0x146ea5,this[_0x3f8697(0x2fc)]=_0x5c5944,this[_0x3f8697(0x155)]=_0x2a680a,this['_permissionService']=_0x3cefb3,this['_singleActiveUnitService']=_0x40014d,this[_0x3f8697(0x2c8)]=_0x234439,_0x6d65c2(this,_0x3f8697(0x18b),new _0x409690['BehaviorSubject'](null)),_0x6d65c2(this,'state$',this['_state$'][_0x3f8697(0x340)]()),_0x6d65c2(this,'_state',void 0x0),_0x6d65c2(this,'_collaborationPaused',!0x1),_0x6d65c2(this,_0x3f8697(0x2e6),''),_0x6d65c2(this,_0x3f8697(0x2d0),0x0),_0x6d65c2(this,_0x3f8697(0x396),this[_0x3f8697(0xfc)][_0x3f8697(0x320)]((0x0,_0x409690[_0x3f8697(0x26e)])(_0x13ec61=>_0x13ec61?_0x13ec61['status']:'offline'),(0x0,_0x409690['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x6d65c2(this,_0x3f8697(0x323),!0x1),_0x6d65c2(this,_0x3f8697(0x2f2),[]);}async[_0x21648f(0x18a)](){const _0x223762=_0x21648f;if(this[_0x223762(0xcc)])throw Error(_0x223762(0x2e4));await this[_0x223762(0x139)]();}[_0x21648f(0x13f)](){const _0x302e80=_0x21648f;return this[_0x302e80(0x28c)]=!0x0,(0x0,_0x868841['toDisposable'])(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x21648f(0x3b1)](_0x4b0caa){const _0x3f6426=_0x21648f;this[_0x3f6426(0x211)](_0x4b0caa);}[_0x21648f(0x3dd)](_0x1b2811){const _0x220302=_0x21648f;this[_0x220302(0x392)]=_0x1b2811,this[_0x220302(0x18b)][_0x220302(0xdd)](_0x1b2811);}async[_0x21648f(0x139)](){const _0x37651c=_0x21648f;if(this[_0x37651c(0x3dd)](await this[_0x37651c(0x1f6)]()),this[_0x37651c(0x1a6)]){var _0x48db3b;(_0x48db3b=this[_0x37651c(0x1a6)])==null||_0x48db3b[_0x37651c(0x1f4)](this['unitID']),this[_0x37651c(0xd1)](this['_singleActiveUnitService'][_0x37651c(0x19b)](this[_0x37651c(0xff)])[_0x37651c(0x3b6)](_0x4c131c=>{const _0x134d99=_0x37651c;this['_logService'][_0x134d99(0x39c)](_0x134d99(0xde),_0x134d99(0x3b0),_0x4c131c),_0x4c131c===0x1?(this[_0x134d99(0x11e)][_0x134d99(0x203)]({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService'][_0x134d99(0x339)](new _0x1d347c[(_0x134d99(0x360))](this[_0x134d99(0xff)])['id'],!0x1),this[_0x134d99(0x393)][_0x134d99(0x2b6)](!0x1)):(this[_0x134d99(0x393)][_0x134d99(0x339)](new _0x1d347c[(_0x134d99(0x360))](this['unitID'])['id'],!0x0),this[_0x134d99(0x393)][_0x134d99(0x2b6)](!0x0));}));}let _0x571e6d=!0x1;return this['disposeWithMe'](this[_0x37651c(0x24d)][_0x37651c(0x1ce)][_0x37651c(0x3b6)](_0x53f712=>{const _0x49bf78=_0x37651c;_0x53f712===0x3?this[_0x49bf78(0x1e2)](_0x571e6d):_0x53f712===0x2&&(_0x571e6d=!0x0,this[_0x49bf78(0x311)]());})),this[_0x37651c(0xd1)](this[_0x37651c(0x24d)]['event$'][_0x37651c(0x3b6)](_0x43bda4=>{const _0x3dfb7c=_0x37651c;try{switch(_0x43bda4[_0x3dfb7c(0x1d9)]){case _0x4c2ece['CollaborationEvent'][_0x3dfb7c(0x174)]:this[_0x3dfb7c(0x221)]((0x0,_0x4c2ece['parseProtocolChangeset'])(_0x43bda4[_0x3dfb7c(0x29b)]));break;case _0x4c2ece['CollaborationEvent'][_0x3dfb7c(0x3c2)]:this[_0x3dfb7c(0x1d2)](_0x43bda4[_0x3dfb7c(0x29b)]);break;case _0x4c2ece[_0x3dfb7c(0x343)]['CHANGESET_REJ']:this[_0x3dfb7c(0x361)]();break;case _0x4c2ece[_0x3dfb7c(0x343)][_0x3dfb7c(0x2be)]:this[_0x3dfb7c(0x12f)](_0x43bda4[_0x3dfb7c(0x29b)]);break;case _0x4c2ece[_0x3dfb7c(0x343)][_0x3dfb7c(0x26a)]:this['_onFetchMissResult'](_0x43bda4[_0x3dfb7c(0x29b)][_0x3dfb7c(0x14b)]['map'](_0x4cc82d=>(0x0,_0x4c2ece['parseProtocolChangeset'])(_0x4cc82d)));break;case _0x4c2ece[_0x3dfb7c(0x343)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x4c2ece['CollaborationEvent'][_0x3dfb7c(0x1cd)]:break;}}catch(_0x347df9){throw console[_0x3dfb7c(0x29e)](_0x3dfb7c(0x29c),_0x347df9),_0x347df9;}})),this[_0x37651c(0x392)];}['_unlockTransition'](){const _0x11e18a=_0x21648f;this[_0x11e18a(0x323)]=!0x1;}[_0x21648f(0x365)](){const _0x56538e=_0x21648f;if(this[_0x56538e(0x323)])throw Error(_0x56538e(0x34e));this['_transitionLocked']=!0x0;}[_0x21648f(0x211)](_0x455eae){const _0x36527c=_0x21648f;this[_0x36527c(0x365)](),this[_0x36527c(0x3dd)](this[_0x36527c(0x392)]['appendMutation'](_0x455eae)),this['_unlockTransition']();}[_0x21648f(0x221)](_0x275215){const _0x1021ec=_0x21648f;if(!(_0x275215['revision']<=this[_0x1021ec(0xda)][_0x1021ec(0x133)](this['unitID']))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x275215);return;}this[_0x1021ec(0x405)](_0x275215);}}[_0x21648f(0x105)](){const _0x1ba669=_0x21648f;this[_0x1ba669(0x2f2)][_0x1ba669(0x352)](_0x593eca=>this[_0x1ba669(0x405)](_0x593eca)),this[_0x1ba669(0x2f2)]=[];}[_0x21648f(0x405)](_0x444928){const _0x5b7c21=_0x21648f;let _0xd8a8fe=this[_0x5b7c21(0x2ab)]['interceptor'][_0x5b7c21(0x3b3)](this[_0x5b7c21(0x2ab)][_0x5b7c21(0x1a2)][_0x5b7c21(0x378)]()[_0x5b7c21(0xc6)])(_0x444928[_0x5b7c21(0x1bb)],null)||_0x444928[_0x5b7c21(0x1bb)],_0xed1f79={..._0x444928,'mutations':_0xd8a8fe};this[_0x5b7c21(0x365)](),this[_0x5b7c21(0x3dd)](this['_state'][_0x5b7c21(0x2ae)](_0xed1f79)),this['_unlockTransition']();}[_0x21648f(0x1d2)](_0x4d6841){const _0x2eebf6=_0x21648f;this['_lockTransition'](),this[_0x2eebf6(0x3dd)](this[_0x2eebf6(0x392)]['onRemoteAck'](_0x4d6841)),this['_unlockTransition']();}['_onRemoteRejected'](_0x1d1939){const _0x372a08=_0x21648f;this['_lockTransition'](),this[_0x372a08(0x3dd)](this['_state'][_0x372a08(0x394)](_0x1d1939)),this[_0x372a08(0x18f)]();}['_onRemoteRetry'](_0x1de9b0){const _0x281e52=_0x21648f;this['_lockTransition'](),this['_updateState'](this[_0x281e52(0x392)]['onRemoteRetry'](_0x1de9b0)),this[_0x281e52(0x18f)]();}['_onFetchMissResult'](_0x18d77b){const _0x3d0fd2=_0x21648f;if(!(this[_0x3d0fd2(0x392)]instanceof _0x2ef93b))throw TypeError(_0x3d0fd2(0x247));let _0x4945b5=_0x18d77b[_0x3d0fd2(0x26e)](_0x1c66aa=>{const _0x2835c8=_0x3d0fd2;let _0x37102b=this['_compressMutationService'][_0x2835c8(0x1a2)][_0x2835c8(0x3b3)](this[_0x2835c8(0x2ab)][_0x2835c8(0x1a2)][_0x2835c8(0x378)]()['COMPRESS_MUTATION_APPLY'])(_0x1c66aa['mutations'],null)||_0x1c66aa['mutations'];return{..._0x1c66aa,'mutations':_0x37102b};});this[_0x3d0fd2(0x365)](),this['_updateState'](this[_0x3d0fd2(0x392)][_0x3d0fd2(0xc7)](_0x4945b5)),this[_0x3d0fd2(0x18f)]();}[_0x21648f(0x311)](){const _0x47b022=_0x21648f;this[_0x47b022(0x365)](),this['_updateState'](this[_0x47b022(0x392)][_0x47b022(0x3b5)]()),this[_0x47b022(0x18f)]();}[_0x21648f(0x1e2)](_0x30fc87=!0x1){const _0x4e7cfa=_0x21648f;this['_lockTransition'](),this[_0x4e7cfa(0x3dd)](this[_0x4e7cfa(0x392)][_0x4e7cfa(0x29d)]()),this['_unlockTransition']();let _0x1b6b57=this[_0x4e7cfa(0x392)];_0x30fc87&&_0x1b6b57 instanceof _0x1e7b48&&(this[_0x4e7cfa(0x365)](),this[_0x4e7cfa(0x3dd)](_0x1b6b57[_0x4e7cfa(0x175)]()),this[_0x4e7cfa(0x18f)]());}async['_createInitialState'](){return new Promise(_0x1d328c=>{const _0x40d769=_0x2b93;this[_0x40d769(0x24d)]['sessionStatus$'][_0x40d769(0x320)]((0x0,_0x409690[_0x40d769(0x2e2)])(0x1))[_0x40d769(0x3b6)](async _0x2017eb=>{const _0x12751f=_0x40d769;_0x1d328c(await this[_0x12751f(0x10b)](_0x2017eb===0x3));});});}['_createHandler'](){const _0x3a4aaf=_0x21648f;let _0x36b61f=this[_0x3a4aaf(0xff)];return{'onStateChange':(_0x275da5,_0xb8b92a)=>{const _0x47799a=_0x3a4aaf;if(_0x275da5!==this[_0x47799a(0x392)])throw Error(_0x47799a(0x26c)+_0x275da5['status']+_0x47799a(0x22f)+_0xb8b92a[_0x47799a(0x341)]+_0x47799a(0x23d)+this['_state']['status']);this[_0x47799a(0x3dd)](_0xb8b92a);},'onSendChangeset':_0x1b84d1=>{const _0x46cec2=_0x3a4aaf;_0x1b84d1[_0x46cec2(0x2d6)]||(_0x1b84d1[_0x46cec2(0x2d6)]=this[_0x46cec2(0x2e6)],_0x1b84d1['reqId']=++this[_0x46cec2(0x2d0)]);let _0xfbecf5={'eventID':_0x4c2ece[_0x46cec2(0x343)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x1b84d1['unitID'],'unitType':this['_type'],'changeset':_0x1b84d1,'memberID':this[_0x46cec2(0x24d)][_0x46cec2(0x372)]()}};this[_0x46cec2(0x24d)][_0x46cec2(0x182)](_0xfbecf5,this[_0x46cec2(0xff)]);},'onMissingChangesets':({from:_0x253d53,to:_0x1baa33})=>{const _0x4c5209=_0x3a4aaf;this[_0x4c5209(0x2fc)][_0x4c5209(0x39c)](_0x4c5209(0xde),_0x4c5209(0x2af)+_0x253d53+_0x4c5209(0x368)+_0x1baa33);let _0x2ebec9={'eventID':_0x4c2ece[_0x4c5209(0x343)][_0x4c5209(0x2f4)],'data':{'unitID':_0x36b61f,'unitType':this[_0x4c5209(0x321)],'from':_0x253d53,'to':_0x1baa33}};this[_0x4c5209(0x24d)]['send'](_0x2ebec9,this[_0x4c5209(0xff)]);}};}async['_createInitialStateImpl'](_0x3bbdb4){const _0x448190=_0x21648f;var _0x1d80bf,_0x6e39e7,_0x4a3a74;let _0x39f77a=await((_0x1d80bf=this[_0x448190(0x2c8)])==null?void 0x0:_0x1d80bf[_0x448190(0x38e)](this[_0x448190(0xff)])),_0x2f9da2=(_0x6e39e7=_0x39f77a==null?void 0x0:_0x39f77a[_0x448190(0x1bb)])==null?[]:_0x6e39e7,_0x3c4431=(_0x4a3a74=_0x39f77a==null?void 0x0:_0x39f77a[_0x448190(0x1ed)])==null?null:_0x4a3a74,_0x361e06=!!(_0x3c4431!=null&&_0x3c4431[_0x448190(0x2d6)])&&!!(_0x3c4431!=null&&_0x3c4431[_0x448190(0x1ff)]);this[_0x448190(0x2e6)]=_0x361e06?_0x3c4431[_0x448190(0x2d6)]:(0x0,_0x4c2ece['uuidv4'])(),this[_0x448190(0x2d0)]=_0x361e06?_0x3c4431['reqId']:0x0;let _0x406679=this['unitID'];try{this['_replayCachedMutations'](_0x3c4431,_0x2f9da2);}catch(_0x2eee9c){this['_logService'][_0x448190(0x29e)](_0x2eee9c);}let _0x2e42ae=this[_0x448190(0x1a7)]();if(_0x3bbdb4){let _0x215a77=_0x1522ce(this[_0x448190(0x2d9)],_0x406679,this[_0x448190(0x321)],_0x3c4431,_0x2f9da2,_0x2e42ae);return _0x215a77 instanceof _0x5f0bc1?_0x215a77[_0x448190(0xf4)]():(_0x215a77 instanceof _0x4c911a||_0x215a77 instanceof _0x403ace)&&_0x215a77[_0x448190(0x3ac)](),_0x215a77;}return this[_0x448190(0x2d9)][_0x448190(0x3d9)](_0x519d9e,_0x406679,this[_0x448190(0x321)],_0x3c4431,_0x2f9da2,_0x2e42ae);}[_0x21648f(0x169)](_0x4eff8d,_0x5ced76){const _0x2b61e4=_0x21648f;var _0x279c86,_0x266434;let _0x52f7fb=this[_0x2b61e4(0x2ab)][_0x2b61e4(0x1a2)][_0x2b61e4(0x3b3)](this['_compressMutationService']['interceptor'][_0x2b61e4(0x378)]()[_0x2b61e4(0xc6)]);(_0x279c86=_0x52f7fb((_0x4eff8d==null?void 0x0:_0x4eff8d['mutations'])||[],null))==null||_0x279c86[_0x2b61e4(0x352)](_0x2067b7=>this[_0x2b61e4(0x155)]['executeCommand'](_0x2067b7['id'],_0x2067b7[_0x2b61e4(0x2b4)])),(_0x266434=_0x52f7fb(_0x5ced76||[],null))==null||_0x266434[_0x2b61e4(0x352)](_0x2e599b=>this['_commandService'][_0x2b61e4(0x1cb)](_0x2e599b['id'],_0x2e599b[_0x2b61e4(0x2b4)]));}};_0x598b2a=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x4,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x290)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x307)]),_0x273192(0xc,(0x0,_0x868841['Optional'])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x598b2a);let _0x148d55=class extends _0x598b2a{constructor(_0x17f7da,_0x3931cc,_0x55f2f2,_0x354dd9,_0x4069fa,_0xfdbccb,_0xb8af4a,_0x37ff4e,_0x2ed815,_0x4ee4ae,_0x4016d5,_0x2dad82,_0x3a9fbf,_0x42a31a,_0x86b865){const _0x22146d=_0x21648f;super(_0x17f7da,_0x55f2f2,_0x3931cc,_0x354dd9,_0x4069fa,_0xfdbccb,_0xb8af4a,_0x37ff4e,_0x2ed815,_0x4ee4ae,_0x4016d5,_0x2dad82,_0x42a31a,_0x86b865),this[_0x22146d(0xff)]=_0x17f7da,this[_0x22146d(0x350)]=_0x3931cc,this[_0x22146d(0x14a)]=_0x3a9fbf,_0x6d65c2(this,_0x22146d(0x3ff),null);}[_0x21648f(0x31c)](_0x2fb48d){const _0x22a0f0=_0x21648f;this[_0x22a0f0(0x3ff)]=_0x2fb48d;}[_0x21648f(0x265)](){this['_handlerCallback']=null,super['dispose']();}[_0x21648f(0x1a7)](){const _0xd159e8=_0x21648f;let _0x22bea2=super['_createHandler']();return _0x22bea2[_0xd159e8(0x1d5)]=_0x218232=>{const _0x5c3e6c=_0xd159e8;var _0xeffb27,_0x5e6a54;return(_0xeffb27=this['_handlerCallback'])==null||(_0x5e6a54=_0xeffb27[_0x5c3e6c(0x1d5)])==null?void 0x0:_0x5e6a54[_0x5c3e6c(0x257)](_0xeffb27,_0x218232);},_0x22bea2[_0xd159e8(0x2e0)]=_0x51597b=>{const _0x34f593=_0xd159e8;var _0x2b536b,_0x4f0d89;return(_0x2b536b=this[_0x34f593(0x3ff)])==null||(_0x4f0d89=_0x2b536b[_0x34f593(0x2e0)])==null?void 0x0:_0x4f0d89[_0x34f593(0x257)](_0x2b536b,_0x51597b);},_0x22bea2[_0xd159e8(0x33c)]=_0x38e5cf=>{const _0x2d2104=_0xd159e8;var _0x294729,_0x310019;return(_0x294729=this[_0x2d2104(0x3ff)])==null||(_0x310019=_0x294729[_0x2d2104(0x33c)])==null?void 0x0:_0x310019[_0x2d2104(0x257)](_0x294729,_0x38e5cf);},_0x22bea2[_0xd159e8(0x2f6)]=_0x5d649e=>{const _0x16c791=_0xd159e8;var _0x1de910,_0x59aaef;return(_0x1de910=this[_0x16c791(0x3ff)])==null||(_0x59aaef=_0x1de910[_0x16c791(0x2f6)])==null?void 0x0:_0x59aaef['call'](_0x1de910,_0x5d649e);},_0x22bea2[_0xd159e8(0x19f)]=_0x48151a=>{const _0x30e389=_0xd159e8;var _0x4c0359,_0x28e2ac,_0x1ba06d;return(_0x4c0359=(_0x28e2ac=this[_0x30e389(0x3ff)])==null||(_0x1ba06d=_0x28e2ac[_0x30e389(0x19f)])==null?void 0x0:_0x1ba06d[_0x30e389(0x257)](_0x28e2ac,_0x48151a))==null?_0x48151a:_0x4c0359;},_0x22bea2[_0xd159e8(0x347)]=_0x4fe4a5=>{const _0x4bfb77=_0xd159e8;var _0x165193,_0x2f83ee,_0xa73929;return(_0x165193=(_0x2f83ee=this[_0x4bfb77(0x3ff)])==null||(_0xa73929=_0x2f83ee[_0x4bfb77(0x347)])==null?void 0x0:_0xa73929[_0x4bfb77(0x257)](_0x2f83ee,_0x4fe4a5))==null?_0x4fe4a5:_0x165193;},_0x22bea2;}async[_0x21648f(0x139)](){const _0x3527c2=_0x21648f;let _0x184730=await super[_0x3527c2(0x139)]();return this[_0x3527c2(0xd1)](this[_0x3527c2(0x14a)]['docStateChange$']['subscribe'](_0x3a8d72=>{const _0xe82aea=_0x3527c2;if(_0x3a8d72==null||_0x3a8d72[_0xe82aea(0x3b9)]!==this[_0xe82aea(0xff)])return;let {commandId:_0xef0038,redoState:_0x41fc93,unitId:_0x8a5b0d}=_0x3a8d72,_0x6c313={'id':_0xef0038,'type':_0x868841[_0xe82aea(0x3a8)][_0xe82aea(0x2f9)],'params':{'unitId':_0x8a5b0d,'actions':_0x41fc93[_0xe82aea(0x130)],'textRanges':null}};this[_0xe82aea(0x211)](_0x6c313);})),this[_0x3527c2(0xd1)](this[_0x3527c2(0x155)][_0x3527c2(0x217)]((_0x243989,_0x593b35)=>{const _0x1a03a3=_0x3527c2;if(_0x243989[_0x1a03a3(0x350)]!==_0x868841[_0x1a03a3(0x3a8)]['MUTATION']||_0x593b35!=null&&_0x593b35[_0x1a03a3(0xd8)]||_0x593b35!=null&&_0x593b35[_0x1a03a3(0x234)]||_0x243989['id']===_0x45a7a0[_0x1a03a3(0x364)]['id'])return;let _0x17fb1d=_0x243989[_0x1a03a3(0x2b4)];if((_0x17fb1d==null?void 0x0:_0x17fb1d[_0x1a03a3(0x3b9)])!==this[_0x1a03a3(0xff)])return;let _0x4641bf=_0x243989,_0x27c2fb=this[_0x1a03a3(0x2ab)][_0x1a03a3(0x1a2)][_0x1a03a3(0x3b3)](this[_0x1a03a3(0x2ab)][_0x1a03a3(0x1a2)][_0x1a03a3(0x378)]()['COMPRESS_MUTATION_SEND'])([_0x4641bf],this['_univerInstanceService'])||[_0x4641bf];this[_0x1a03a3(0x211)](_0x27c2fb[0x0]);})),_0x184730;}};_0x148d55=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService'])),_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841['ILogService']),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x307)]),_0x273192(0xc,(0x0,_0x868841['Inject'])(_0x45a7a0[_0x21648f(0x1a8)])),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xe,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x148d55);let _0x552cde=class extends _0x598b2a{constructor(_0x186d7a,_0x4323e9,_0x30b0da,_0x466a33,_0x2aa647,_0x177394,_0x4d3cd3,_0x1e31c9,_0x3cc2f7,_0x1a8e43,_0x272e9c,_0x2b54ef,_0x4808ec,_0x20c77b){const _0x2c3002=_0x21648f;super(_0x186d7a,_0x30b0da,_0x4323e9,_0x466a33,_0x2aa647,_0x177394,_0x4d3cd3,_0x1e31c9,_0x3cc2f7,_0x1a8e43,_0x272e9c,_0x2b54ef,_0x4808ec,_0x20c77b),this[_0x2c3002(0xff)]=_0x186d7a,this[_0x2c3002(0x350)]=_0x4323e9;}async[_0x21648f(0x139)](){const _0xfe353e=_0x21648f;let _0x3e3a81=await super[_0xfe353e(0x139)]();return this[_0xfe353e(0xd1)](this[_0xfe353e(0x155)][_0xfe353e(0x217)]((_0x2cbd2e,_0x226759)=>{const _0x24c0c0=_0xfe353e;if(_0x2cbd2e[_0x24c0c0(0x350)]!==_0x868841[_0x24c0c0(0x3a8)][_0x24c0c0(0x2f9)]||_0x226759!=null&&_0x226759['fromCollab']||_0x226759!=null&&_0x226759[_0x24c0c0(0x234)])return;let _0x5e04c2=_0x2cbd2e[_0x24c0c0(0x2b4)];if((_0x5e04c2==null?void 0x0:_0x5e04c2[_0x24c0c0(0x3b9)])!==this[_0x24c0c0(0xff)])return;let _0x401639=_0x2cbd2e,_0x3e746a=this[_0x24c0c0(0x2ab)][_0x24c0c0(0x1a2)]['fetchThroughInterceptors'](this[_0x24c0c0(0x2ab)][_0x24c0c0(0x1a2)][_0x24c0c0(0x378)]()[_0x24c0c0(0x232)])([_0x401639],this[_0x24c0c0(0x32f)])||[_0x401639];this['_onLocalMutation'](_0x3e746a[0x0]);})),_0x3e3a81;}};_0x552cde=_0x3e0941([_0x273192(0x3,(0x0,_0x868841['Inject'])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece['CompressMutationService'])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService'])),_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841['ILogService']),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x307)]),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x552cde);let _0x4b3c61=class extends _0x598b2a{constructor(_0x546c45,_0x430960,_0x3dd5ef,_0x46c816,_0x5f3ef5,_0x161c92,_0x45a231,_0x7a50f8,_0x4ab9b2,_0x14a51c,_0x23a81c,_0x3a76e9,_0x69fcf0,_0x1dedca,_0x236483){const _0x55fc0f=_0x21648f;super(_0x546c45,_0x3dd5ef,_0x430960,_0x46c816,_0x5f3ef5,_0x161c92,_0x45a231,_0x4ab9b2,_0x14a51c,_0x23a81c,_0x3a76e9,_0x69fcf0,_0x1dedca,_0x236483),this[_0x55fc0f(0xff)]=_0x546c45,this[_0x55fc0f(0x350)]=_0x430960,this['_sheetTransformSelectionsService']=_0x7a50f8;}[_0x21648f(0x1a7)](){const _0x49c307=_0x21648f;let _0x34d240=super['_createHandler']();return _0x34d240[_0x49c307(0x33c)]=_0x37c2f3=>this[_0x49c307(0x385)][_0x49c307(0x3f0)](_0x37c2f3),_0x34d240;}async['_init'](){const _0x36276c=_0x21648f;let _0x48cb5b=await super['_init']();return this[_0x36276c(0xd1)](this[_0x36276c(0x155)][_0x36276c(0x217)]((_0x108427,_0x15ced0)=>{const _0x4e4e04=_0x36276c;if(_0x108427[_0x4e4e04(0x350)]!==_0x868841['CommandType'][_0x4e4e04(0x2f9)]||_0x15ced0!=null&&_0x15ced0['fromCollab']||_0x15ced0!=null&&_0x15ced0[_0x4e4e04(0x234)])return;let _0x2d3a99=_0x108427[_0x4e4e04(0x2b4)];if((_0x2d3a99==null?void 0x0:_0x2d3a99[_0x4e4e04(0x3b9)])!==this[_0x4e4e04(0xff)])return;let _0x464732=_0x108427,_0x24692f=this[_0x4e4e04(0x2ab)][_0x4e4e04(0x1a2)][_0x4e4e04(0x3b3)](this[_0x4e4e04(0x2ab)][_0x4e4e04(0x1a2)][_0x4e4e04(0x378)]()['COMPRESS_MUTATION_SEND'])([_0x464732],this[_0x4e4e04(0x32f)])||[_0x464732];this[_0x4e4e04(0x211)](_0x24692f[0x0]);})),_0x48cb5b;}};_0x4b3c61=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x290)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece['RevisionService'])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0xd82d96)),_0x273192(0x8,(0x0,_0x868841['Inject'])(_0x55b02d)),_0x273192(0x9,_0x868841[_0x21648f(0x214)]),_0x273192(0xa,_0x868841['ILogService']),_0x273192(0xb,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xc,_0x868841[_0x21648f(0x307)]),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xe,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x4b3c61);let _0x52744e=class extends _0x598b2a{constructor(_0x392e77,_0x27b124,_0x47576f,_0x31b428,_0x29d625,_0x1d19c7,_0x3bcd9f,_0x56db5d,_0x4d9975,_0x1c964d,_0x409e03,_0x107d21,_0x10ac95,_0x3f62e3){const _0x472ca1=_0x21648f;super(_0x392e77,_0x47576f,_0x27b124,_0x31b428,_0x29d625,_0x1d19c7,_0x3bcd9f,_0x56db5d,_0x4d9975,_0x1c964d,_0x409e03,_0x107d21,_0x10ac95,_0x3f62e3),this[_0x472ca1(0xff)]=_0x392e77,this[_0x472ca1(0x350)]=_0x27b124;}async['_init'](){const _0x5b1b3f=_0x21648f;let _0x381b20=await super[_0x5b1b3f(0x139)]();return this[_0x5b1b3f(0xd1)](this[_0x5b1b3f(0x155)][_0x5b1b3f(0x217)]((_0x572392,_0x19095f)=>{const _0x2e8c01=_0x5b1b3f;if(_0x572392['type']!==_0x868841[_0x2e8c01(0x3a8)][_0x2e8c01(0x2f9)]||_0x19095f!=null&&_0x19095f[_0x2e8c01(0xd8)]||_0x19095f!=null&&_0x19095f[_0x2e8c01(0x234)])return;let _0x54b6e7=_0x572392['params'];if((_0x54b6e7==null?void 0x0:_0x54b6e7['unitId'])!==this[_0x2e8c01(0xff)])return;let _0x3bb2f3=_0x572392,_0x3d67c2=this[_0x2e8c01(0x2ab)][_0x2e8c01(0x1a2)][_0x2e8c01(0x3b3)](this['_compressMutationService'][_0x2e8c01(0x1a2)][_0x2e8c01(0x378)]()[_0x2e8c01(0x232)])([_0x3bb2f3],this[_0x2e8c01(0x32f)])||[_0x3bb2f3];this[_0x2e8c01(0x211)](_0x3d67c2[0x0]);})),_0x381b20;}};_0x52744e=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x290)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841['ICommandService']),_0x273192(0xb,_0x868841['IPermissionService']),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841['Optional'])(_0x47d8b0))],_0x52744e);let _0x9a1332=class extends _0x598b2a{constructor(_0x195e8d,_0x1557fb,_0x413977,_0x2b8a6e,_0x23ac6b,_0x5b619a,_0x1007e7,_0x5182f8,_0x6bc01c,_0x2467dc,_0x3c5e30,_0x504c41,_0x38897f,_0x50c7f3){const _0x51c008=_0x21648f;super(_0x195e8d,_0x413977,_0x1557fb,_0x2b8a6e,_0x23ac6b,_0x5b619a,_0x1007e7,_0x5182f8,_0x6bc01c,_0x2467dc,_0x3c5e30,_0x504c41,_0x38897f,_0x50c7f3),this['unitID']=_0x195e8d,this[_0x51c008(0x350)]=_0x1557fb;}async['_init'](){const _0x3ef3c7=_0x21648f;let _0x3bca3c=await super[_0x3ef3c7(0x139)]();return this['disposeWithMe'](this[_0x3ef3c7(0x155)][_0x3ef3c7(0x217)]((_0x588378,_0x5f1753)=>{const _0x4981ce=_0x3ef3c7;if(_0x588378[_0x4981ce(0x350)]!==_0x868841[_0x4981ce(0x3a8)][_0x4981ce(0x2f9)]||_0x5f1753!=null&&_0x5f1753[_0x4981ce(0xd8)]||_0x5f1753!=null&&_0x5f1753['onlyLocal'])return;let _0x42b4ed=_0x588378[_0x4981ce(0x2b4)];if((_0x42b4ed==null?void 0x0:_0x42b4ed['unitId'])!==this['unitID'])return;let _0x4a19e2=_0x588378,_0x58f2ff=this[_0x4981ce(0x2ab)][_0x4981ce(0x1a2)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x4981ce(0x1a2)][_0x4981ce(0x378)]()[_0x4981ce(0x232)])([_0x4a19e2],this[_0x4981ce(0x32f)])||[_0x4a19e2];this['_onLocalMutation'](_0x58f2ff[0x0]);})),_0x3bca3c;}};_0x9a1332=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService'])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841['IPermissionService']),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x9a1332);let _0x161fca=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x31f));function _0x3b8398(_0x46b29e){const _0x4c5da3=_0x21648f;let _0x56a881=_0x46b29e['data'],_0x79cf66=JSON['parse'](_0x56a881);switch(_0x79cf66['cmd']){case _0x1df2bb[_0x4c5da3(0x3d6)][_0x4c5da3(0x1d6)]:case _0x1df2bb[_0x4c5da3(0x3d6)][_0x4c5da3(0x3ed)]:{let _0x27f621=_0x79cf66[_0x4c5da3(0xe9)];return{..._0x79cf66,'data':_0x27f621,'cmd':_0x79cf66[_0x4c5da3(0x26b)]};}case _0x1df2bb['CombCmd'][_0x4c5da3(0xf1)]:{let _0x228e7f=_0x79cf66['joinRsp'];return{..._0x79cf66,'data':_0x228e7f,'cmd':_0x79cf66[_0x4c5da3(0x26b)]};}case _0x1df2bb[_0x4c5da3(0x3d6)][_0x4c5da3(0x176)]:{let _0x557bec=_0x79cf66['collaMsg'];switch(_0x557bec['eventID']){case _0x4c2ece['CollaborationEvent']['PERMISSION_REJ']:var _0x5bc9a2;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x5bc9a2=_0x557bec[_0x4c5da3(0x1ac)])==null?void 0x0:_0x5bc9a2['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)]['CHANGESET_ACK']:var _0x434395;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x434395=_0x557bec[_0x4c5da3(0x273)])==null?void 0x0:_0x434395['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x174)]:var _0x3d30bd;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x3d30bd=_0x557bec['newCsEvent'])==null?void 0x0:_0x3d30bd['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece['CollaborationEvent'][_0x4c5da3(0x13d)]:var _0x4cdaef;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x4cdaef=_0x557bec[_0x4c5da3(0x3c4)])==null?void 0x0:_0x4cdaef['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x2be)]:var _0x422d25;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x422d25=_0x557bec['csShouldRetryEvent'])==null?void 0x0:_0x422d25['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1a3)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec['updateCursorEvent']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x146)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec['joinEvent']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece['CollaborationEvent'][_0x4c5da3(0x27a)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0xd6)]},'cmd':_0x79cf66['cmd']};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1a0)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x106)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x24a)]:case _0x4c2ece[_0x4c5da3(0x343)]['LIVESHARE_OPERATION']:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x2c3)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)]['LIVESHARE_TERMINATE']:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x106)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x3f4)]:return{..._0x79cf66,'data':_0x557bec,'cmd':_0x79cf66['cmd']};case _0x4c2ece[_0x4c5da3(0x343)]['COMMENT_UPDATE']:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x280)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x2ea)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x40e)]},'cmd':_0x79cf66['cmd']};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1fe)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x13c)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1cd)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x255)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};default:return _0x79cf66;}}default:return _0x79cf66;}}function _0x43de64(_0x58f43a){const _0xdaf5e=_0x21648f;switch(_0x58f43a[_0xdaf5e(0x26b)]){case _0x1df2bb[_0xdaf5e(0x3d6)][_0xdaf5e(0x1d6)]:case _0x1df2bb[_0xdaf5e(0x3d6)]['HELLO']:return JSON[_0xdaf5e(0x102)]({'cmd':_0x58f43a[_0xdaf5e(0x26b)],'routeKey':_0x58f43a[_0xdaf5e(0x25e)]});case _0x1df2bb[_0xdaf5e(0x3d6)][_0xdaf5e(0x159)]:{let _0x3f9748;switch(_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x1d9)]){case _0x4c2ece['CollaborationEvent'][_0xdaf5e(0x1a3)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x1a3)],'updateCursorEvent':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x27a)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['USERS_LEAVE'],'leaveEvent':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x146)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x146)],'joinEvent':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece['CollaborationEvent']['LIVESHARE_NEW_HOST']:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x58f43a[_0xdaf5e(0x29b)]['data']};break;case _0x4c2ece['CollaborationEvent'][_0xdaf5e(0x1b7)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x1b7)],'liveShareOperation':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_TERMINATE']:_0x3f9748={'eventID':_0x4c2ece['CollaborationEvent'][_0xdaf5e(0x2ce)],'liveShareTerminate':_0x58f43a['data'][_0xdaf5e(0x29b)]};break;case _0x4c2ece['CollaborationEvent'][_0xdaf5e(0xf9)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_FETCH_OPERATIONS']:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x3f9748={'eventID':_0x58f43a['data'][_0xdaf5e(0x1d9)]};}return JSON['stringify']({'cmd':_0x58f43a[_0xdaf5e(0x26b)],'routeKey':_0x58f43a[_0xdaf5e(0x25e)],'collaMsg':_0x3f9748});}case _0x1df2bb['CombCmd']['JOIN']:return JSON['stringify']({'cmd':_0x58f43a['cmd'],'routeKey':_0x58f43a[_0xdaf5e(0x25e)],'joinReq':_0x58f43a['data']});case _0x1df2bb[_0xdaf5e(0x3d6)]['LEAVE']:return JSON['stringify']({'cmd':_0x58f43a[_0xdaf5e(0x26b)],'routeKey':_0x58f43a[_0xdaf5e(0x25e)],'leaveReq':_0x58f43a[_0xdaf5e(0x29b)]});default:throw Error(_0xdaf5e(0x2d1));}}let _0x4e1025=(0x0,_0x868841['createIdentifier'])(_0x21648f(0x408));function _0x1b6dad(_0x496ffb,_0x18e938,_0x287720){const _0xb5d0c5=_0x21648f;return _0x496ffb+'/'+_0x18e938+_0xb5d0c5(0x19c)+_0x287720+'/new_changes';}let _0x594520=class extends _0x868841['Disposable']{constructor(_0x5bc5c6,_0x449065,_0x31a7ca,_0xda3843,_0x5a4e29){const _0x144229=_0x21648f;super(),this[_0x144229(0x2d9)]=_0x5bc5c6,this['_httpService']=_0x449065,this['_configService']=_0x31a7ca,this[_0x144229(0x2fc)]=_0xda3843,this['_snapshotServerService']=_0x5a4e29;}[_0x21648f(0x370)](_0x24ff96){const _0xd48c30=_0x21648f;let _0x5bc034=this[_0xd48c30(0x2d9)][_0xd48c30(0x224)](_0x8bc35f[_0xd48c30(0x3e0)]);if(!_0x5bc034)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x16203f=_0x5bc034[_0xd48c30(0x113)](_0x24ff96);if(!_0x16203f)throw Error(_0xd48c30(0x357));let _0x16d4ee=new _0x868841['DisposableCollection'](),_0x38f507=new _0x409690[(_0xd48c30(0x409))]();_0x16d4ee[_0xd48c30(0x388)](_0x16203f[_0xd48c30(0x2ef)]['subscribe'](_0x4a655a=>_0x38f507[_0xd48c30(0xdd)](_0x4a655a))),_0x16d4ee[_0xd48c30(0x388)]((0x0,_0x868841[_0xd48c30(0x233)])(()=>_0x38f507['complete']()));let _0x485cf4=new _0x409690[(_0xd48c30(0x409))]();_0x16d4ee[_0xd48c30(0x388)](_0x16203f[_0xd48c30(0x31e)]['subscribe'](_0x44d770=>_0x485cf4['next'](_0x44d770))),_0x16d4ee['add']((0x0,_0x868841[_0xd48c30(0x233)])(()=>_0x485cf4['complete']()));let _0x2e5de5=new _0x409690['Subject']();_0x16d4ee['add'](_0x16203f[_0xd48c30(0x32c)][_0xd48c30(0x3b6)](_0x49c175=>{const _0x4e42c8=_0xd48c30;let _0x3ff90f=_0x3b8398(_0x49c175);_0x2e5de5[_0x4e42c8(0xdd)](_0x3ff90f);})),_0x16d4ee[_0xd48c30(0x388)]((0x0,_0x868841[_0xd48c30(0x233)])(()=>_0x2e5de5[_0xd48c30(0x3f5)]()));let _0x20256e,_0x8af2b0=()=>{const _0x434246=_0xd48c30;_0x485cf4[_0x434246(0xdd)](new Event(_0x434246(0x229))),_0x38f507['next'](new Event(_0x434246(0x229))),_0x20256e[_0x434246(0x3da)]();};return _0x20256e={'memberID':'','close$':_0x38f507['asObservable'](),'error$':_0x485cf4[_0xd48c30(0x340)](),'open$':_0x16203f[_0xd48c30(0x20a)],'message$':_0x2e5de5[_0xd48c30(0x340)](),'send':_0x11cfa8=>{const _0x57dc82=_0xd48c30;if(_0x11cfa8['cmd']===_0x1df2bb['CombCmd'][_0x57dc82(0x159)]){if(_0x11cfa8['data'][_0x57dc82(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x57dc82(0x2a3)]){this[_0x57dc82(0x24e)](_0x20256e,_0x11cfa8[_0x57dc82(0x29b)])[_0x57dc82(0x34b)](_0x2785da=>{const _0x5674da=_0x57dc82;this[_0x5674da(0x2fc)][_0x5674da(0x29e)](_0x2785da),_0x8af2b0();});return;}if(_0x11cfa8['data']['eventID']===_0x4c2ece[_0x57dc82(0x343)][_0x57dc82(0x2f4)]){let _0x38438c=_0x11cfa8['data'];this[_0x57dc82(0x2c7)](_0x38438c)[_0x57dc82(0x2e1)](_0x4d4bbe=>{const _0x2a0635=_0x57dc82;_0x2e5de5['next']({'cmd':_0x1df2bb[_0x2a0635(0x3d6)][_0x2a0635(0x176)],'code':_0x1df2bb[_0x2a0635(0x17a)]['OK'],'routeKey':_0x38438c['data']['unitID'],'routeType':'','data':{'eventID':_0x4c2ece[_0x2a0635(0x343)][_0x2a0635(0x26a)],'data':{'changesets':_0x4d4bbe}}});})[_0x57dc82(0x34b)](_0x23b425=>{const _0x10fba6=_0x57dc82;this[_0x10fba6(0x2fc)]['error'](_0x23b425),_0x8af2b0();});return;}}_0x16203f[_0x57dc82(0x182)](_0x43de64(_0x11cfa8));},'close':()=>{const _0x43db86=_0xd48c30;_0x16203f[_0x43db86(0x3da)](),_0x16d4ee[_0x43db86(0x265)]();}},_0x20256e;}async[_0x21648f(0x24e)](_0x103ac6,_0x4e9d44){const _0xcfd72=_0x21648f;var _0xc4b570;let {unitType:_0x27dc16,unitID:_0x2be19d,changeset:_0x3e728c}=_0x4e9d44['data'],_0x220504={'unitID':_0x2be19d,'memberID':_0x103ac6[_0xcfd72(0x14c)],'type':_0x27dc16,'changeset':(0x0,_0x4c2ece['parseChangesetToProtocol'])(_0x3e728c)},_0x530af0=this['_configService']['getConfig'](_0x4b92ba),_0x5148fe=_0x1b6dad((_0xc4b570=_0x530af0==null?void 0x0:_0x530af0[_0xcfd72(0x124)])==null?_0xcfd72(0x313):_0xc4b570,_0x27dc16,_0x2be19d);try{await this[_0xcfd72(0x3a7)][_0xcfd72(0x18e)](_0x5148fe,{'body':_0x220504});}catch(_0xb09880){throw this[_0xcfd72(0x2fc)][_0xcfd72(0x29e)]('[CollaborationSession]',_0xcfd72(0x26f)),_0xb09880;}}async[_0x21648f(0x2c7)](_0x313966){const _0x50c505=_0x21648f;let {unitID:_0x509d87,from:_0x4721df,to:_0xa4236b,unitType:_0x1640e7}=_0x313966['data'];return(await this[_0x50c505(0x104)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x509d87,'type':_0x1640e7,'from':_0x4721df,'to':_0xa4236b}))[_0x50c505(0x14b)][_0x50c505(0x26e)](_0x317095=>((_0x317095[_0x50c505(0x1bb)]===null||_0x317095[_0x50c505(0x1bb)]===void 0x0)&&(_0x317095[_0x50c505(0x1bb)]=[]),_0x317095));}};_0x594520=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x404)])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)])),_0x273192(0x2,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x3,_0x868841[_0x21648f(0x206)]),_0x273192(0x4,_0x4c2ece[_0x21648f(0x170)])],_0x594520);let _0x2bd49e=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x284));function _0x55fb30(_0x4c23d={}){const _0x164b45=_0x21648f;return _0x4c23d['resolveUnit']?{'resolveUnit':_0x4c23d[_0x164b45(0x160)]}:{'resolveUnit':_0x356226=>({'target':{'unitId':_0x356226[_0x164b45(0x3b9)],'unitType':_0x356226['unitType']}})};}function _0x35cec2(_0x5b4bb9,_0x4b9034,_0xb0160b){const _0x19ed7f=_0x21648f;var _0x50418f;let _0x19f271=_0xb0160b[_0x19ed7f(0x355)]['endpoint'];if(_0x19f271!=null&&_0x19f271[_0x19ed7f(0x3eb)]()==='')throw Error(_0x19ed7f(0x3f7));if(!_0xb0160b[_0x19ed7f(0x355)][_0x19ed7f(0x3b9)])throw Error(_0x19ed7f(0x1b1));return{'localUnitId':_0x5b4bb9,'unitType':_0x4b9034,'target':{'endpoint':_0x19f271,'unitId':_0xb0160b[_0x19ed7f(0x355)][_0x19ed7f(0x3b9)],'unitType':(_0x50418f=_0xb0160b['target'][_0x19ed7f(0x172)])==null?_0x4b9034:_0x50418f},'changeset':_0xb0160b[_0x19ed7f(0x17b)]};}let _0x4bf0aa=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x5f1297,_0x1dea19,_0x30d513,_0x134566,_0x1d34f7,_0x28c940,_0x411751){const _0x44ba7d=_0x21648f;super(),this[_0x44ba7d(0x2d9)]=_0x5f1297,this[_0x44ba7d(0x2fc)]=_0x1dea19,this[_0x44ba7d(0x23e)]=_0x30d513,this[_0x44ba7d(0x3d1)]=_0x134566,this[_0x44ba7d(0x2bd)]=_0x1d34f7,this[_0x44ba7d(0x21a)]=_0x28c940,this['_networkConditionService']=_0x411751,_0x6d65c2(this,_0x44ba7d(0x288),new Map()),_0x6d65c2(this,_0x44ba7d(0x264),new Map()),_0x6d65c2(this,_0x44ba7d(0x204),new Map()),_0x6d65c2(this,_0x44ba7d(0x3c9),new Map()),_0x6d65c2(this,'socket$',this[_0x44ba7d(0x15a)](void 0x0)[_0x44ba7d(0x118)][_0x44ba7d(0x340)]()),_0x6d65c2(this,'_status$',new _0x409690['BehaviorSubject'](0x0)),_0x6d65c2(this,_0x44ba7d(0x396),this[_0x44ba7d(0x107)]['asObservable']()),this[_0x44ba7d(0x303)]();}[_0x21648f(0x303)](){const _0x4fbd3a=_0x21648f;this[_0x4fbd3a(0x3a9)]&&this['disposeWithMe'](this['_networkConditionService']['online$'][_0x4fbd3a(0x3b6)](_0xb3be63=>{const _0x33caed=_0x4fbd3a;_0xb3be63&&this[_0x33caed(0xd0)](),_0xb3be63||this['_socketChannels'][_0x33caed(0x352)](_0x42c973=>this[_0x33caed(0x2dd)](_0x42c973));}));}[_0x21648f(0x265)](){const _0x28565d=_0x21648f;super['dispose'](),this['_socketChannels'][_0x28565d(0x352)](_0x126a3a=>{const _0x352ed5=_0x28565d;var _0x12dbb2,_0x3676d1;(_0x12dbb2=_0x126a3a[_0x352ed5(0x186)])==null||_0x12dbb2['unsubscribe'](),_0x126a3a['socketMessageSubscription']=null,this[_0x352ed5(0x37e)](_0x126a3a),this[_0x352ed5(0x282)](_0x126a3a),this[_0x352ed5(0x1b8)](_0x126a3a),(_0x3676d1=_0x126a3a[_0x352ed5(0x118)][_0x352ed5(0x2eb)]())==null||_0x3676d1[_0x352ed5(0x3da)](),_0x126a3a[_0x352ed5(0x118)][_0x352ed5(0x3f5)]();}),this[_0x28565d(0x3c9)][_0x28565d(0x13a)](),this['_sessions'][_0x28565d(0x352)](_0xff8cf1=>_0xff8cf1['dispose']()),this[_0x28565d(0x288)][_0x28565d(0x13a)](),this['_sessionChannels'][_0x28565d(0x13a)](),this['_status$'][_0x28565d(0x3f5)]();}async[_0x21648f(0x2a4)](_0x42f925,_0x5269c6){const _0x4a85dc=_0x21648f;if(this[_0x4a85dc(0x288)][_0x4a85dc(0x215)](_0x42f925))return this['_sessions'][_0x4a85dc(0x224)](_0x42f925);let _0x37c4ba=this[_0x4a85dc(0x264)][_0x4a85dc(0x224)](_0x42f925);if(_0x37c4ba)return _0x37c4ba;let _0x553cff=this[_0x4a85dc(0x125)](_0x42f925,_0x5269c6);this[_0x4a85dc(0x264)][_0x4a85dc(0x213)](_0x42f925,_0x553cff);try{return await _0x553cff;}finally{this[_0x4a85dc(0x264)]['delete'](_0x42f925);}}async['_createSession'](_0x1ea2e7,_0x379cde){const _0x28b0f7=_0x21648f;let _0x1e471a=await this[_0x28b0f7(0x40a)](_0x1ea2e7,_0x379cde),_0x33f59b=this[_0x28b0f7(0x15a)](_0x1e471a['target'][_0x28b0f7(0x3db)]);this[_0x28b0f7(0x38d)](_0x33f59b);let _0x40bf70=this[_0x28b0f7(0x2d9)][_0x28b0f7(0x3d9)](_0x4d2902,_0x1e471a,_0x33f59b['socket$'][_0x28b0f7(0x340)]());return this[_0x28b0f7(0x288)]['set'](_0x1ea2e7,_0x40bf70),this[_0x28b0f7(0x204)][_0x28b0f7(0x213)](_0x1ea2e7,_0x33f59b[_0x28b0f7(0x2ed)]),_0x40bf70;}[_0x21648f(0x115)](_0x187962){const _0x54bf91=_0x21648f;let _0x40ddb2=this[_0x54bf91(0x288)][_0x54bf91(0x224)](_0x187962),_0x238bb6=this[_0x54bf91(0x204)][_0x54bf91(0x224)](_0x187962);if(_0x40ddb2&&(this[_0x54bf91(0x288)][_0x54bf91(0xe0)](_0x187962),this[_0x54bf91(0x204)]['delete'](_0x187962),_0x40ddb2['close']()),_0x238bb6&&!this[_0x54bf91(0x278)](_0x238bb6)){var _0x3aa571;let _0xdd2fc2=this['_socketChannels'][_0x54bf91(0x224)](_0x238bb6);_0xdd2fc2==null||(_0x3aa571=_0xdd2fc2[_0x54bf91(0x118)][_0x54bf91(0x2eb)]())==null||_0x3aa571[_0x54bf91(0x3da)]();}}[_0x21648f(0xd0)](){const _0x4b4968=_0x21648f;(this[_0x4b4968(0x3c9)][_0x4b4968(0x362)]?[...this[_0x4b4968(0x3c9)][_0x4b4968(0x2d7)]()]:[this[_0x4b4968(0x15a)](void 0x0)])[_0x4b4968(0x352)](_0x31db0b=>{const _0x2577a4=_0x4b4968;_0x31db0b[_0x2577a4(0x243)]=0x0,this[_0x2577a4(0x37e)](_0x31db0b),this[_0x2577a4(0x293)](_0x31db0b);});}[_0x21648f(0x37e)](_0x1ef4a9){const _0x3c8d9f=_0x21648f;_0x1ef4a9['retryConnectingTimer']!=null&&(clearTimeout(_0x1ef4a9['retryConnectingTimer']),_0x1ef4a9[_0x3c8d9f(0x20b)]=null);}async[_0x21648f(0x195)](_0x4a281f){const _0x229bfe=_0x21648f;var _0x110216,_0x19a584;let _0x65793d=this['_configService']['getConfig'](_0x4b92ba),_0x55d615=(_0x110216=(_0x19a584=_0x4a281f['endpoint'])==null?_0x65793d==null?void 0x0:_0x65793d[_0x229bfe(0x277)]:_0x19a584)==null?_0x3838c0:_0x110216,_0x1d5201=await this[_0x229bfe(0x3d1)][_0x229bfe(0x113)](_0x55d615);return _0x4a281f[_0x229bfe(0x3a3)]=_0x1d5201,_0x1d5201;}async[_0x21648f(0x38d)](_0x576f72){const _0x3c36ef=_0x21648f;try{var _0x5bae3a,_0x434353;let _0x104418=(_0x5bae3a=(_0x434353=_0x576f72[_0x3c36ef(0x118)]['getValue']())==null?_0x576f72[_0x3c36ef(0x3a3)]:_0x434353)==null?await this[_0x3c36ef(0x195)](_0x576f72):_0x5bae3a;if(_0x104418){var _0x4e368e;let _0xca14ec=_0x104418[_0x3c36ef(0x182)];_0x104418[_0x3c36ef(0x182)]=_0x5bcd6e=>(_0x5bcd6e[_0x3c36ef(0x26b)]!==_0x1df2bb[_0x3c36ef(0x3d6)][_0x3c36ef(0x168)]&&this[_0x3c36ef(0x2cd)](_0x576f72),_0xca14ec[_0x3c36ef(0x294)](_0x104418,[_0x5bcd6e])),(_0x4e368e=_0x576f72[_0x3c36ef(0x186)])==null||_0x4e368e[_0x3c36ef(0x157)](),_0x576f72[_0x3c36ef(0x186)]=null,_0x576f72[_0x3c36ef(0x186)]=_0x104418['message$'][_0x3c36ef(0x3b6)](_0x16a9cf=>this[_0x3c36ef(0x200)](_0x576f72,_0x104418,_0x16a9cf)),_0x104418[_0x3c36ef(0x31e)][_0x3c36ef(0x320)]((0x0,_0x4f74e1['take'])(0x1))[_0x3c36ef(0x3b6)](_0x4bcb5c=>this['_logService'][_0x3c36ef(0x29e)](_0x3c36ef(0x23a),_0x4bcb5c)),_0x104418[_0x3c36ef(0x20a)][_0x3c36ef(0x320)]((0x0,_0x4f74e1[_0x3c36ef(0x2e2)])(0x1))[_0x3c36ef(0x3b6)](()=>{this['_onConnectionOpen'](_0x576f72,_0x104418);}),_0x104418[_0x3c36ef(0x2ef)][_0x3c36ef(0x320)]((0x0,_0x4f74e1[_0x3c36ef(0x2e2)])(0x1))['subscribe'](_0x10adea=>{const _0x59f0a2=_0x3c36ef;this[_0x59f0a2(0x2fc)][_0x59f0a2(0x39c)](_0x59f0a2(0x406),_0x59f0a2(0x41b),_0x10adea),this['_onConnectionFailed'](_0x576f72);});}}catch(_0x2ee50b){this[_0x3c36ef(0x2fc)][_0x3c36ef(0x29e)](_0x2ee50b),this['_onConnectionFailed'](_0x576f72);}}[_0x21648f(0x35d)](_0x58995a,_0x3ed93d){const _0x2b1032=_0x21648f;this['_logService'][_0x2b1032(0x39c)](_0x2b1032(0x406),'socket\x20open.'),_0x3ed93d[_0x2b1032(0x182)]({'cmd':_0x1df2bb[_0x2b1032(0x3d6)]['HELLO']}),this[_0x2b1032(0x2cd)](_0x58995a);}[_0x21648f(0x2dd)](_0x4a0cbf){const _0x1be033=_0x21648f;_0x4a0cbf[_0x1be033(0xca)]=!0x1,_0x4a0cbf[_0x1be033(0x3a3)]=null,this[_0x1be033(0x107)][_0x1be033(0xdd)](0x2),_0x4a0cbf[_0x1be033(0x118)][_0x1be033(0xdd)](null),this['_clearTimeoutTimer'](_0x4a0cbf),this['_clearHeartbeatTimer'](_0x4a0cbf);}[_0x21648f(0x22a)](_0x4a9aca){const _0x121447=_0x21648f;var _0x31ede3;this[_0x121447(0x2dd)](_0x4a9aca),this[_0x121447(0x278)](_0x4a9aca[_0x121447(0x2ed)])&&(_0x4a9aca[_0x121447(0x243)]<((_0x31ede3=this[_0x121447(0x23e)][_0x121447(0x33e)](_0x121447(0x2d2)))==null?0x3:_0x31ede3)?(this[_0x121447(0x2bd)]['emitEvent']({'id':'SOCKET_FAILED_RETRY'}),this[_0x121447(0x293)](_0x4a9aca)):this[_0x121447(0x2bd)]['emitEvent']({'id':_0x121447(0x1bf)}));}[_0x21648f(0x293)](_0x4b0706){const _0x227848=_0x21648f;var _0x4fb259;let _0x5a5323=_0x4b0706['retryCount'],_0x1b61bb=this[_0x227848(0x23e)][_0x227848(0x33e)](_0x4b92ba),_0x39bdb4=_0x5a5323===0x0?0x0:((_0x4fb259=_0x1b61bb==null?void 0x0:_0x1b61bb[_0x227848(0x14e)])==null?0x4e20:_0x4fb259)*0x2**_0x5a5323;_0x4b0706[_0x227848(0x20b)]=setTimeout(()=>{const _0x4e86de=_0x227848;clearTimeout(_0x4b0706[_0x4e86de(0x20b)]),_0x4b0706[_0x4e86de(0x20b)]=null,this[_0x4e86de(0x38d)](_0x4b0706);},_0x39bdb4),_0x4b0706[_0x227848(0x243)]+=0x1;}async[_0x21648f(0x40a)](_0x3329a3,_0x1c507d){const _0x55b3ab=_0x21648f;return _0x35cec2(_0x3329a3,_0x1c507d,await this['_adapter'][_0x55b3ab(0x160)]({'unitId':_0x3329a3,'unitType':_0x1c507d}));}[_0x21648f(0x200)](_0x27e30d,_0x184449,_0xe86c11){const _0xa91b7d=_0x21648f;let {cmd:_0x721d85}=_0xe86c11;_0x721d85===_0x1df2bb[_0xa91b7d(0x3d6)]['HELLO']&&!_0x27e30d[_0xa91b7d(0xca)]&&(_0x184449[_0xa91b7d(0x14c)]=_0xe86c11[_0xa91b7d(0x29b)][_0xa91b7d(0x14c)],_0x27e30d[_0xa91b7d(0x118)][_0xa91b7d(0xdd)](_0x184449),this[_0xa91b7d(0x107)][_0xa91b7d(0xdd)](0x3),_0x27e30d[_0xa91b7d(0xca)]=!0x0,_0x27e30d[_0xa91b7d(0x3a3)]=null),_0x721d85===_0x1df2bb[_0xa91b7d(0x3d6)]['HEARTBEAT']&&this[_0xa91b7d(0x282)](_0x27e30d),this['_rescheduleHeartbeat'](_0x27e30d);}[_0x21648f(0x278)](_0xd34267){const _0xdbf9c3=_0x21648f;return[...this['_sessionChannels'][_0xdbf9c3(0x2d7)]()][_0xdbf9c3(0x329)](_0x3625c4=>_0x3625c4===_0xd34267);}[_0x21648f(0x15a)](_0x3b55fd){const _0x5a2517=_0x21648f;let _0x15c7bc=_0x3b55fd==null?'':_0x3b55fd,_0x1c6ec7=this['_socketChannels'][_0x5a2517(0x224)](_0x15c7bc);if(_0x1c6ec7)return _0x1c6ec7;let _0x3f22ce={'endpointKey':_0x15c7bc,'endpoint':_0x3b55fd,'socket$':new _0x409690[(_0x5a2517(0x193))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x5a2517(0x3c9)]['set'](_0x15c7bc,_0x3f22ce),_0x3f22ce;}[_0x21648f(0x2cd)](_0x3f045a){const _0x3de94c=_0x21648f;var _0x4c29aa;this[_0x3de94c(0x1b8)](_0x3f045a),_0x3f045a['sendHeartbeatTimer']=setTimeout(()=>this[_0x3de94c(0x1df)](_0x3f045a),(_0x4c29aa=this['_configService'][_0x3de94c(0x33e)](_0x3de94c(0x1ef)))==null?0x7530:_0x4c29aa);}[_0x21648f(0x1df)](_0x4c580e){const _0x43676f=_0x21648f;_0x4c580e['socket$'][_0x43676f(0x2eb)]()[_0x43676f(0x182)]({'cmd':_0x1df2bb[_0x43676f(0x3d6)][_0x43676f(0x1d6)]}),this[_0x43676f(0x1e8)](_0x4c580e);}[_0x21648f(0x1e8)](_0x1a1b46){const _0x5e01fd=_0x21648f;var _0x3c9f44;_0x1a1b46[_0x5e01fd(0x24b)]=setTimeout(()=>this[_0x5e01fd(0x22a)](_0x1a1b46),(_0x3c9f44=this[_0x5e01fd(0x23e)][_0x5e01fd(0x33e)](_0x5e01fd(0x276)))==null?_0x4067ce:_0x3c9f44);}[_0x21648f(0x1b8)](_0x4332af){const _0x34f67d=_0x21648f;_0x4332af[_0x34f67d(0x1b5)]!=null&&(clearTimeout(_0x4332af[_0x34f67d(0x1b5)]),_0x4332af[_0x34f67d(0x1b5)]=null);}[_0x21648f(0x282)](_0x219f27){const _0x40ab2b=_0x21648f;_0x219f27[_0x40ab2b(0x24b)]!=null&&(clearTimeout(_0x219f27[_0x40ab2b(0x24b)]),_0x219f27[_0x40ab2b(0x24b)]=null);}};_0x4bf0aa=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x1,_0x868841[_0x21648f(0x206)]),_0x273192(0x2,_0x868841['IConfigService']),_0x273192(0x3,_0x4e1025),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x5,_0x2bd49e),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x238)])(_0x161fca))],_0x4bf0aa);let _0x5ad10a=class extends _0x868841['RxDisposable']{constructor(_0x1837d3,_0x5b4030,_0x4fa3ac,_0x278ea7){const _0x5ee03a=_0x21648f;var _0x407238;super(),this[_0x5ee03a(0x2d9)]=_0x1837d3,this[_0x5ee03a(0x2ec)]=_0x5b4030,this[_0x5ee03a(0x23e)]=_0x4fa3ac,this[_0x5ee03a(0x32f)]=_0x278ea7,_0x6d65c2(this,'_entities',new Map()),_0x6d65c2(this,_0x5ee03a(0x41d),new _0x409690[(_0x5ee03a(0x409))]()),_0x6d65c2(this,_0x5ee03a(0x230),this[_0x5ee03a(0x41d)][_0x5ee03a(0x340)]()),((_0x407238=this[_0x5ee03a(0x23e)][_0x5ee03a(0x33e)](_0x5ee03a(0x369)))==null?void 0x0:_0x407238[_0x5ee03a(0x153)])!==!0x1&&this[_0x5ee03a(0x139)]();}[_0x21648f(0x265)](){const _0x5687d6=_0x21648f;super[_0x5687d6(0x265)](),this[_0x5687d6(0x143)][_0x5687d6(0x352)](_0x54de69=>_0x54de69[_0x5687d6(0x265)]()),this[_0x5687d6(0x143)][_0x5687d6(0x13a)]();}[_0x21648f(0xdc)](_0x3d597c){const _0x3859cb=_0x21648f;var _0x217308;return(_0x217308=this[_0x3859cb(0x143)][_0x3859cb(0x224)](_0x3d597c))==null?null:_0x217308;}[_0x21648f(0x23f)](_0x4a2756){const _0x2e902b=_0x21648f;let _0x4991d0=this[_0x2e902b(0xdc)](_0x4a2756);return _0x4991d0?(0x0,_0x409690['of'])(_0x4991d0):this['_entityInit$'][_0x2e902b(0x320)]((0x0,_0x4f74e1[_0x2e902b(0x11a)])(_0xd9f1c9=>_0xd9f1c9[_0x2e902b(0xff)]===_0x4a2756));}['readyForCollab'](_0x2f0e9d){const _0x3588f9=_0x21648f;return(0x0,_0x409690[_0x3588f9(0x14f)])(this[_0x3588f9(0x23f)](_0x2f0e9d)[_0x3588f9(0x320)]((0x0,_0x4f74e1[_0x3588f9(0x26e)])(()=>void 0x0)));}[_0x21648f(0x139)](){const _0x367a0a=_0x21648f;this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x23b)])['pipe']((0x0,_0x409690[_0x367a0a(0x374)])(this[_0x367a0a(0xf2)]),(0x0,_0x4f74e1['delay'])(0x10))[_0x367a0a(0x3b6)](async _0x2c800f=>{const _0x17c41a=_0x367a0a;let _0x4418cf=_0x2c800f[_0x17c41a(0x2ee)][_0x17c41a(0x128)](),_0x4451cd=await this[_0x17c41a(0xd3)](_0x4418cf,_0x868841[_0x17c41a(0x2f8)][_0x17c41a(0x23b)]);this[_0x17c41a(0x143)][_0x17c41a(0x213)](_0x4418cf,_0x4451cd);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x332)])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this['dispose$']),(0x0,_0x4f74e1['delay'])(0x10))[_0x367a0a(0x320)]((0x0,_0x4f74e1['filter'])(_0x12b89b=>!_0x12b89b[_0x367a0a(0x2ee)][_0x367a0a(0x128)]()[_0x367a0a(0x3c1)]('__')))[_0x367a0a(0x3b6)](async _0x127909=>{const _0x1a6ff9=_0x367a0a;let _0x87e7e9=_0x127909['unit']['getUnitId'](),_0x522892=await this['_startCollaboration'](_0x87e7e9,_0x868841[_0x1a6ff9(0x2f8)][_0x1a6ff9(0x332)]);this[_0x1a6ff9(0x143)][_0x1a6ff9(0x213)](_0x87e7e9,_0x522892);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841['UniverInstanceType'][_0x367a0a(0x2b1)])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this['dispose$']),(0x0,_0x4f74e1[_0x367a0a(0x184)])(0x10))[_0x367a0a(0x3b6)](async _0x3040d1=>{const _0x4e8b5a=_0x367a0a;let _0x2a539b=_0x3040d1['unit'][_0x4e8b5a(0x128)](),_0x1fe010=await this[_0x4e8b5a(0xd3)](_0x2a539b,_0x868841[_0x4e8b5a(0x2f8)]['UNIVER_SLIDE']);this[_0x4e8b5a(0x143)]['set'](_0x2a539b,_0x1fe010);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841['UniverInstanceType']['UNIVER_BOARD'])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this[_0x367a0a(0xf2)]),(0x0,_0x4f74e1[_0x367a0a(0x184)])(0x10))[_0x367a0a(0x3b6)](async _0x3e3c2d=>{const _0x431c2f=_0x367a0a;let _0x256879=_0x3e3c2d['unit'][_0x431c2f(0x128)](),_0x2c19c9=await this[_0x431c2f(0xd3)](_0x256879,_0x868841[_0x431c2f(0x2f8)]['UNIVER_BOARD']);this['_entities'][_0x431c2f(0x213)](_0x256879,_0x2c19c9);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x2a9)])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this['dispose$']),(0x0,_0x4f74e1[_0x367a0a(0x184)])(0x10))['subscribe'](async _0x5d823c=>{const _0x379037=_0x367a0a;let _0x59d5f4=_0x5d823c[_0x379037(0x2ee)]['getUnitId'](),_0x403bef=await this[_0x379037(0xd3)](_0x59d5f4,_0x868841[_0x379037(0x2f8)][_0x379037(0x2a9)]);this[_0x379037(0x143)][_0x379037(0x213)](_0x59d5f4,_0x403bef);}),(0x0,_0x409690[_0x367a0a(0x382)])(this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x23b)]),this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x332)]),this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841[_0x367a0a(0x2f8)]['UNIVER_SLIDE']),this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841['UniverInstanceType'][_0x367a0a(0x28a)]),this[_0x367a0a(0x32f)]['getTypeOfUnitDisposed$'](_0x868841['UniverInstanceType']['UNIVER_BASE']))['pipe']((0x0,_0x409690[_0x367a0a(0x374)])(this[_0x367a0a(0xf2)]))[_0x367a0a(0x3b6)](_0x140edb=>{const _0x504966=_0x367a0a;let _0x25e208=_0x140edb['getUnitId'](),_0x5e839b=this[_0x504966(0x143)][_0x504966(0x224)](_0x25e208);_0x5e839b&&(_0x5e839b[_0x504966(0x265)](),this['_entities'][_0x504966(0xe0)](_0x25e208));});}async[_0x21648f(0xd3)](_0xa2fe03,_0x138691){const _0x3fcd22=_0x21648f;let _0x339150=await this[_0x3fcd22(0x2ec)][_0x3fcd22(0x2a4)](_0xa2fe03),_0x1c254e=this[_0x3fcd22(0x2d9)][_0x3fcd22(0x3d9)](this[_0x3fcd22(0x390)](_0x138691),_0xa2fe03,_0x138691,_0x339150);return await _0x1c254e[_0x3fcd22(0x18a)](),this['_entityInit$'][_0x3fcd22(0xdd)](_0x1c254e),_0x1c254e;}['_getCtorByUniverInstanceType'](_0x1b25cd){const _0x29b081=_0x21648f;switch(_0x1b25cd){case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x332)]:return _0x148d55;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x23b)]:return _0x4b3c61;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x2b1)]:return _0x52744e;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x28a)]:return _0x9a1332;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x2a9)]:return _0x552cde;default:throw Error(_0x29b081(0x33f)+_0x1b25cd);}}};_0x5ad10a=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x1,(0x0,_0x868841['Inject'])(_0x4bf0aa)),_0x273192(0x2,_0x868841['IConfigService']),_0x273192(0x3,_0x868841['IUniverInstanceService'])],_0x5ad10a);var _0x32f204='@univerjs-pro/collaboration-client',_0x3be6e8=_0x21648f(0x33a);let _0x448220=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x1e8c03,_0x56f4fc){const _0x44e9fc=_0x21648f;super(),this['_univerInstanceService']=_0x1e8c03,this[_0x44e9fc(0x23e)]=_0x56f4fc,this[_0x44e9fc(0x139)]();}[_0x21648f(0x139)](){const _0x36cb7b=_0x21648f;this[_0x36cb7b(0xd1)](this[_0x36cb7b(0x32f)][_0x36cb7b(0x1ec)][_0x36cb7b(0x3b6)](()=>{const _0x52fb5c=_0x36cb7b;var _0xb48104;let _0x619d6e=this['_univerInstanceService'][_0x52fb5c(0x2e3)](),_0x225197=(_0xb48104=this[_0x52fb5c(0x23e)]['getConfig'](_0x52fb5c(0x3ce)))==null?_0x52fb5c(0x30b):_0xb48104;_0x619d6e instanceof _0x868841[_0x52fb5c(0xe1)]&&(_0x225197=_0x619d6e['name']),document[_0x52fb5c(0x3e5)]=_0x225197;}));}};_0x448220=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x214)]),_0x273192(0x1,_0x868841['IConfigService'])],_0x448220);let _0x5ec8e0=function(_0xdc3347){const _0x2b0ff4=_0x21648f;return _0xdc3347[_0x2b0ff4(0x2ac)]=_0x2b0ff4(0x2ac),_0xdc3347[_0x2b0ff4(0x3de)]=_0x2b0ff4(0x3de),_0xdc3347[_0x2b0ff4(0x37b)]='BASE64',_0xdc3347;}({}),_0x3673e6=(0x0,_0x868841[_0x21648f(0x330)])('base-ui.attachment-io.service'),_0x1ba482=class{constructor(_0x54f264,_0x4fedbc,_0x56c886){const _0x2e8cf7=_0x21648f;this[_0x2e8cf7(0x3a7)]=_0x54f264,this['_configService']=_0x4fedbc,this[_0x2e8cf7(0x32f)]=_0x56c886;}[_0x21648f(0x324)](){const _0xdfec2f=_0x21648f;var _0x3bed90;return(_0x3bed90=this[_0xdfec2f(0x156)]()[_0xdfec2f(0x1f5)])==null?{}:_0x3bed90;}async[_0x21648f(0x210)](_0x4db81a){const _0x92f195=_0x21648f;let _0x5939cc=this['getUploadOptions']();if(_0x422f11(_0x4db81a,_0x5939cc),_0x5939cc[_0x92f195(0x261)])return _0x5939cc[_0x92f195(0x261)](_0x4db81a);let _0x4f62ba=await this[_0x92f195(0x287)](_0x4db81a);return{'id':_0x4f62ba,'name':_0x4db81a[_0x92f195(0x414)],'mimeType':_0x4db81a['type'],'size':_0x4db81a[_0x92f195(0x362)],'sourceType':_0x92f195(0x3de),'source':_0x4f62ba};}async[_0x21648f(0x287)](_0x19add9){const _0x27ba42=_0x21648f;let _0x28bfa5=this['_univerInstanceService'][_0x27ba42(0x2e3)](),_0x48d1c3=_0x28bfa5==null?void 0x0:_0x28bfa5['getUnitId']();if(!_0x48d1c3)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0xd185ed=new FormData();_0xd185ed[_0x27ba42(0x407)](_0x27ba42(0xce),_0x19add9);let _0x480e24=this[_0x27ba42(0xfa)]()+_0x27ba42(0x10a)+_0x19add9['size'][_0x27ba42(0x11b)]()+_0x27ba42(0x244)+_0x1df2bb[_0x27ba42(0x2bc)][_0x27ba42(0x108)]+_0x27ba42(0x1bd)+encodeURIComponent(_0x48d1c3),_0x33a0ab=(await this[_0x27ba42(0x3a7)][_0x27ba42(0x18e)](_0x480e24,{'body':_0xd185ed}))[_0x27ba42(0x346)][_0x27ba42(0x3c7)];if(typeof _0x33a0ab!='string'||!_0x33a0ab)throw Error(_0x27ba42(0x271));return _0x33a0ab;}['_getUploadFileURL'](){const _0xb12f7b=_0x21648f;var _0x420ed8;return(_0x420ed8=this['_getConfig']()[_0xb12f7b(0x2a2)])==null?_0xb12f7b(0xeb):_0x420ed8;}['_getConfig'](){const _0x3a5c4e=_0x21648f;var _0x47a83f;return(_0x47a83f=this['_configService'][_0x3a5c4e(0x33e)](_0x3a5c4e(0x369)))==null?{}:_0x47a83f;}};_0x1ba482=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f['HTTPService'])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x2ba)])),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x214)]))],_0x1ba482);function _0x422f11(_0x960d64,_0xb79a1c){const _0x2f2eb4=_0x21648f;var _0x556177;if(_0xb79a1c[_0x2f2eb4(0x227)]!=null&&_0x960d64[_0x2f2eb4(0x362)]>_0xb79a1c['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x556177=_0xb79a1c[_0x2f2eb4(0x413)])!=null&&_0x556177[_0x2f2eb4(0x207)]&&!_0xb79a1c[_0x2f2eb4(0x413)]['some'](_0x39462d=>_0x960d64[_0x2f2eb4(0x350)]===_0x39462d||_0x960d64[_0x2f2eb4(0x414)]['endsWith'](_0x39462d)||_0x39462d[_0x2f2eb4(0x21e)]('/*')&&_0x960d64['type'][_0x2f2eb4(0x3c1)](_0x39462d[_0x2f2eb4(0x129)](0x0,-0x1))))throw Error(_0x2f2eb4(0x31a));}let _0x36e2b4=class{constructor(_0x4d721a,_0x4a1d47,_0x1a38e5){const _0x3730ca=_0x21648f;this[_0x3730ca(0x23e)]=_0x4d721a,this[_0x3730ca(0x3a7)]=_0x4a1d47,this['localeService']=_0x1a38e5,this['init']();}[_0x21648f(0x18a)](){const _0x1c1679=_0x21648f;this[_0x1c1679(0x3a7)][_0x1c1679(0x2a0)]({'priority':0x1,'interceptor':(_0x13ca62,_0x407afb)=>_0x407afb(_0x13ca62)['pipe']((0x0,_0x409690[_0x1c1679(0x3be)])(async _0x406e14=>{const _0x420cdd=_0x1c1679;let _0x2c78cb=_0x406e14;if(_0x2c78cb['status']===0x191){if(typeof window>'u')throw Error(_0x420cdd(0x1a5));if(window['confirm'](this[_0x420cdd(0x27f)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x5d650e=window[_0x420cdd(0x3ad)](window[_0x420cdd(0x241)][_0x420cdd(0x36f)]);window[_0x420cdd(0x241)]['href']=this[_0x420cdd(0x28f)]()+_0x420cdd(0x1ae)+_0x5d650e;}}return _0x2c78cb;}))});}[_0x21648f(0x28f)](){const _0x5b46c5=_0x21648f;var _0x253896;let _0x2f8cdf=this[_0x5b46c5(0x23e)]['getConfig'](_0x4b92ba);return(_0x253896=_0x2f8cdf==null?void 0x0:_0x2f8cdf[_0x5b46c5(0x267)])==null?'/universer-api/oidc/authpage':_0x253896;}};_0x36e2b4=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f['HTTPService'])),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService']))],_0x36e2b4);let _0x37ea91=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x41cfa7,_0x376b3a){const _0x321ab6=_0x21648f;super(),this['_HTTPService']=_0x41cfa7,this['_configService']=_0x376b3a,_0x6d65c2(this,_0x321ab6(0x126),!0x1),this['_initMergeInterceptor']();}[_0x21648f(0xd5)](){const _0x59ecc6=_0x21648f;let _0x58d2a6=this;this[_0x59ecc6(0xd1)](this[_0x59ecc6(0x1ad)][_0x59ecc6(0x2a0)]({'priority':0x3e7,'interceptor':(0x0,_0x8bc35f[_0x59ecc6(0x1c6)])({'isMatch'(_0x272901){const _0x11b1df=_0x59ecc6;var _0x5d2d93;if(_0x272901[_0x11b1df(0x2e9)]===_0x11b1df(0x325)&&(_0x5d2d93=_0x272901[_0x11b1df(0x171)])!=null&&_0x5d2d93[_0x11b1df(0x346)]){let {objectID:_0x262592,objectType:_0x8a5c6}=_0x272901[_0x11b1df(0x171)][_0x11b1df(0x346)]||{};if(!_0x262592||_0x8a5c6===void 0x0)return!0x1;let _0x524cf5=_0x58d2a6[_0x11b1df(0x366)]()+'/'+_0x8a5c6+_0x11b1df(0x349)+_0x262592+'/allowed';if(_0x272901['url']===_0x524cf5)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x18b5f7){const _0x390de0=_0x59ecc6;var _0x25fe24;return(_0x25fe24=_0x18b5f7['requestParams'])==null?void 0x0:_0x25fe24[_0x390de0(0x346)];},'mergeParamsToRequest'(_0x4524e1,_0x408c41){const _0x2990de=_0x59ecc6;let _0x3654aa=_0x58d2a6[_0x2990de(0x366)]()+_0x2990de(0x2f5),_0xdf4b9f=_0x4524e1[_0x2990de(0x25f)]((_0x6a2c39,_0x516442)=>{const _0x2d6f17=_0x2990de;let {unitID:_0x42bc54,objectID:_0x31a020,objectType:_0x3826e3,actions:_0x52b13c}=_0x516442;return _0x6a2c39[_0x42bc54]||(_0x6a2c39[_0x42bc54]={}),_0x6a2c39[_0x42bc54][_0x31a020]||(_0x6a2c39[_0x42bc54][_0x31a020]={'objectID':_0x31a020,'objectType':_0x3826e3,'actions':[]}),_0x6a2c39[_0x42bc54][_0x31a020][_0x2d6f17(0x130)][_0x2d6f17(0x327)](..._0x52b13c),_0x6a2c39;},{}),_0x233a10=[];for(let _0x3d4fd9 in _0xdf4b9f)for(let _0x57c44b in _0xdf4b9f[_0x3d4fd9]){let {actions:_0x22a011,objectType:_0x4f2501}=_0xdf4b9f[_0x3d4fd9][_0x57c44b],_0x3bfee5=[...new Set(_0x22a011)];_0x233a10[_0x2990de(0x327)]({'unitID':_0x3d4fd9,'objectID':_0x57c44b,'objectType':_0x4f2501,'actions':_0x3bfee5});}return new _0x8bc35f['HTTPRequest'](_0x2990de(0x325),_0x3654aa,{'headers':_0x408c41[_0x2990de(0x356)],'withCredentials':_0x408c41['withCredentials'],'responseType':_0x408c41[_0x2990de(0x31b)],'body':{'requests':_0x233a10}});}},{'distributeResult'(_0x51f87b,_0x5005a7){const _0x86fa82=_0x59ecc6;let {objectActions:_0x237ee3}=_0x51f87b;return _0x5005a7[_0x86fa82(0x26e)](_0x97a191=>{const _0x44985a=_0x86fa82;let {unitID:_0x268ded,objectID:_0x5867b7,actions:_0x16acab}=_0x97a191,_0x713033=_0x237ee3[_0x44985a(0x3ab)](_0x32280c=>_0x32280c['unitID']===_0x268ded&&_0x32280c[_0x44985a(0x24f)]===_0x5867b7);return{'config':_0x97a191,'result':{'actions':_0x16acab[_0x44985a(0x26e)](_0xe295ee=>_0x713033==null?void 0x0:_0x713033['actions'][_0x44985a(0x3ab)](_0x23883d=>_0x23883d[_0x44985a(0x12c)]===_0xe295ee))[_0x44985a(0x11a)](_0x2a0690=>!!_0x2a0690),'error':_0x51f87b['error']}};});}})}));}[_0x21648f(0x366)](){const _0x25ec52=_0x21648f;var _0x97093e;let _0x2fc58a=this['_configService'][_0x25ec52(0x33e)](_0x4b92ba);return(_0x97093e=_0x2fc58a==null?void 0x0:_0x2fc58a[_0x25ec52(0x1be)])==null?_0x25ec52(0x1b3):_0x97093e;}async[_0x21648f(0x3c6)](_0x421587){const _0x5973fa=_0x21648f;let _0x29898e=this[_0x5973fa(0x366)]()+'/'+_0x421587[_0x5973fa(0x35e)]+_0x5973fa(0x399);return(await this[_0x5973fa(0x1ad)][_0x5973fa(0x18e)](_0x29898e,{'body':_0x421587}))[_0x5973fa(0x346)][_0x5973fa(0x24f)]||'';}async[_0x21648f(0x417)](_0x36603c){const _0x18b3e2=_0x21648f;let _0x5133a9=this[_0x18b3e2(0x366)]()+_0x18b3e2(0x1c8);return(await this[_0x18b3e2(0x1ad)][_0x18b3e2(0x18e)](_0x5133a9,{'body':_0x36603c}))[_0x18b3e2(0x346)][_0x18b3e2(0x154)];}async[_0x21648f(0x120)](_0x6d1587){const _0x1e9b24=_0x21648f;var _0x2c13a6;let _0x350ac5=this['_getAPIPrefixPath']()+'/'+_0x6d1587[_0x1e9b24(0x35e)]+_0x1e9b24(0x349)+_0x6d1587[_0x1e9b24(0x24f)],_0x1f69b0=await this[_0x1e9b24(0x1ad)]['put'](_0x350ac5,{'body':_0x6d1587});if((_0x1f69b0==null||(_0x2c13a6=_0x1f69b0[_0x1e9b24(0x346)])==null||(_0x2c13a6=_0x2c13a6[_0x1e9b24(0x29e)])==null?void 0x0:_0x2c13a6[_0x1e9b24(0x2b5)])!==0x1)throw Error(_0x1e9b24(0x338));}async[_0x21648f(0x1c0)](_0x527299){const _0x3591fd=_0x21648f;let _0x5603c2=this[_0x3591fd(0x366)]()+'/'+_0x527299['objectType']+'/object/'+_0x527299[_0x3591fd(0x24f)]+'/allowed';return(await this['_HTTPService']['post'](_0x5603c2,{'body':_0x527299}))[_0x3591fd(0x346)][_0x3591fd(0x130)];}async[_0x21648f(0x2c1)](_0x3256db){const _0x30e1a6=_0x21648f;let _0x3360e3=this[_0x30e1a6(0x366)]()+_0x30e1a6(0x2f5);return(await this[_0x30e1a6(0x1ad)][_0x30e1a6(0x18e)](_0x3360e3,{'body':{'requests':_0x3256db}}))['body'][_0x30e1a6(0x36a)];}async[_0x21648f(0x122)](_0x55eb56){const _0x4873a3=_0x21648f;let _0x1d83f3=this[_0x4873a3(0x366)]()+'/'+_0x55eb56[_0x4873a3(0x35e)]+_0x4873a3(0x15d),_0x3ebccf=await this[_0x4873a3(0x1ad)][_0x4873a3(0x18e)](_0x1d83f3,{'body':_0x55eb56});return{'roles':_0x3ebccf[_0x4873a3(0x346)][_0x4873a3(0x137)],'actions':_0x3ebccf[_0x4873a3(0x346)][_0x4873a3(0x130)]};}async[_0x21648f(0x3f2)](_0x27d3e0){const _0x331c0a=_0x21648f;let _0x5c7dc3=this[_0x331c0a(0x366)]()+_0x331c0a(0x10c);await this[_0x331c0a(0x1ad)][_0x331c0a(0xe0)](_0x5c7dc3,{'params':{'collaboratorID':_0x27d3e0['collaboratorID'],'objectID':_0x27d3e0[_0x331c0a(0x24f)],'unitID':_0x27d3e0[_0x331c0a(0xff)]}});}async[_0x21648f(0x1f8)](_0x2e9036){const _0x27b2da=_0x21648f;let _0x4e5966=this['_getAPIPrefixPath']()+_0x27b2da(0x10c);await this[_0x27b2da(0x1ad)][_0x27b2da(0x251)](_0x4e5966,{'body':_0x2e9036});}async[_0x21648f(0x3a6)](_0x58a01f){const _0x193b4b=_0x21648f;let _0x5bec3a=this[_0x193b4b(0x366)]()+_0x193b4b(0x10c);await this[_0x193b4b(0x1ad)][_0x193b4b(0x18e)](_0x5bec3a,{'body':_0x58a01f});}async[_0x21648f(0x35c)](_0x59a9cb){const _0x370642=_0x21648f;var _0x4c71b5;let _0x2a6f1f=this[_0x370642(0x366)]()+_0x370642(0x10c),_0x1e3bf2=await this[_0x370642(0x1ad)]['get'](_0x2a6f1f,{'params':{'objectID':_0x59a9cb[_0x370642(0x24f)],'unitID':_0x59a9cb['unitID']}});return this['setCfgEnableObjInherit']((_0x4c71b5=_0x1e3bf2['body'][_0x370642(0x3a0)])==null?!0x1:_0x4c71b5),_0x1e3bf2[_0x370642(0x346)][_0x370642(0x2a8)];}async[_0x21648f(0xfd)](_0x5775a7){const _0xa961b7=_0x21648f;let _0x5a78f3=this[_0xa961b7(0x366)]()+'/collaborator';await this[_0xa961b7(0x1ad)][_0xa961b7(0x2fe)](_0x5a78f3,{'body':_0x5775a7});}[_0x21648f(0x26d)](_0x12e033){const _0x15601=_0x21648f;this[_0x15601(0x126)]=_0x12e033;}['getCfgEnableObjInherit'](){const _0x29502d=_0x21648f;return this[_0x29502d(0x126)];}};_0x37ea91=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x2ba)]))],_0x37ea91);function _0x1d4a37(_0xb155e7){const _0x4b9058=_0x21648f;return _0xb155e7 instanceof Uint8Array||ArrayBuffer[_0x4b9058(0x269)](_0xb155e7)&&_0xb155e7[_0x4b9058(0x32e)]['name']==='Uint8Array'&&'BYTES_PER_ELEMENT'in _0xb155e7&&_0xb155e7[_0x4b9058(0x1c3)]===0x1;}function _0x508742(_0x2ae40c){const _0x1ccb8c=_0x21648f;if(typeof _0x2ae40c!='number')throw TypeError('number\x20expected,\x20got\x20'+typeof _0x2ae40c);if(!Number[_0x1ccb8c(0x3e7)](_0x2ae40c)||_0x2ae40c<0x0)throw RangeError('positive\x20integer\x20expected,\x20got\x20'+_0x2ae40c);}function _0x4ace98(_0x2b58ad,_0x55152f,_0x19aa12=''){const _0x5b9e96=_0x21648f;let _0x310141=_0x1d4a37(_0x2b58ad),_0x5bae8f=_0x2b58ad==null?void 0x0:_0x2b58ad[_0x5b9e96(0x207)],_0x3d0f08=_0x55152f!==void 0x0;if(!_0x310141||_0x3d0f08&&_0x5bae8f!==_0x55152f){let _0x5c961b=_0x19aa12&&'\x22'+_0x19aa12+'\x22\x20',_0x342cd9=_0x3d0f08?_0x5b9e96(0x17d)+_0x55152f:'',_0x1e59b7=_0x310141?'length='+_0x5bae8f:_0x5b9e96(0x418)+typeof _0x2b58ad,_0x3acf37=_0x5c961b+_0x5b9e96(0x149)+_0x342cd9+_0x5b9e96(0x134)+_0x1e59b7;throw _0x310141?RangeError(_0x3acf37):TypeError(_0x3acf37);}return _0x2b58ad;}function _0x3950d7(_0x97cb30){const _0x21d13e=_0x21648f;return new Uint32Array(_0x97cb30['buffer'],_0x97cb30['byteOffset'],Math[_0x21d13e(0x299)](_0x97cb30['byteLength']/0x4));}function _0xa6a925(..._0x1aea95){const _0x395d51=_0x21648f;for(let _0x1c67b7=0x0;_0x1c67b7<_0x1aea95['length'];_0x1c67b7++)_0x1aea95[_0x1c67b7][_0x395d51(0x344)](0x0);}let _0x5bfac2=new Uint8Array(new Uint32Array([0x11223344])[_0x21648f(0x412)])[0x0]===0x44,_0x29d85e=_0x5c4d10=>_0x5c4d10<<0x18&0xff000000|_0x5c4d10<<0x8&0xff0000|_0x5c4d10>>>0x8&0xff00|_0x5c4d10>>>0x18&0xff,_0x27bf18=_0x5bfac2?_0x1407d2=>_0x1407d2:_0x12bea5=>{for(let _0x2589fd=0x0;_0x2589fd<_0x12bea5['length'];_0x2589fd++)_0x12bea5[_0x2589fd]=_0x29d85e(_0x12bea5[_0x2589fd]);return _0x12bea5;};function _0x51fa95(_0x5a0554){const _0x3c44fd=_0x21648f;if(typeof _0x5a0554!='string')throw TypeError(_0x3c44fd(0x2c6));return new Uint8Array(new TextEncoder()[_0x3c44fd(0x28e)](_0x5a0554));}function _0xfb58bc(_0x46086d,_0x5cabbe){const _0x543dfd=_0x21648f;return!_0x46086d[_0x543dfd(0x249)]||!_0x5cabbe[_0x543dfd(0x249)]?!0x1:_0x46086d[_0x543dfd(0x412)]===_0x5cabbe[_0x543dfd(0x412)]&&_0x46086d[_0x543dfd(0x38b)]<_0x5cabbe['byteOffset']+_0x5cabbe[_0x543dfd(0x249)]&&_0x5cabbe[_0x543dfd(0x38b)]<_0x46086d['byteOffset']+_0x46086d[_0x543dfd(0x249)];}function _0x307ed9(_0x298312,_0x250bd6){const _0x164895=_0x21648f;if(_0xfb58bc(_0x298312,_0x250bd6)&&_0x298312[_0x164895(0x38b)]<_0x250bd6[_0x164895(0x38b)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0xf48190(..._0x2dd8a8){const _0x17ee90=_0x21648f;let _0x1700c4=0x0;for(let _0x34f70f=0x0;_0x34f70f<_0x2dd8a8[_0x17ee90(0x207)];_0x34f70f++){let _0x3cfaa9=_0x2dd8a8[_0x34f70f];_0x4ace98(_0x3cfaa9),_0x1700c4+=_0x3cfaa9[_0x17ee90(0x207)];}let _0x64ca42=new Uint8Array(_0x1700c4);for(let _0x172ac1=0x0,_0x334b78=0x0;_0x172ac1<_0x2dd8a8[_0x17ee90(0x207)];_0x172ac1++){let _0x1a51e8=_0x2dd8a8[_0x172ac1];_0x64ca42[_0x17ee90(0x213)](_0x1a51e8,_0x334b78),_0x334b78+=_0x1a51e8[_0x17ee90(0x207)];}return _0x64ca42;}let _0x4a721e=(_0x1005fd,_0x19538d)=>{function _0x485c21(_0x58c603,..._0x2caf98){const _0x4b5bd1=_0x2b93;if(_0x4ace98(_0x58c603,void 0x0,_0x4b5bd1(0xec)),_0x1005fd[_0x4b5bd1(0x192)]!==void 0x0){let _0x27ff7d=_0x2caf98[0x0];_0x4ace98(_0x27ff7d,_0x1005fd[_0x4b5bd1(0x19d)]?void 0x0:_0x1005fd[_0x4b5bd1(0x192)],_0x4b5bd1(0x3aa));}let _0x30d542=_0x1005fd[_0x4b5bd1(0x334)];_0x30d542&&_0x2caf98[0x1]!==void 0x0&&_0x4ace98(_0x2caf98[0x1],void 0x0,_0x4b5bd1(0x279));let _0x189e9a=_0x19538d(_0x58c603,..._0x2caf98),_0x2f1845=(_0x1b6471,_0x518165)=>{if(_0x518165!==void 0x0){if(_0x1b6471!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x4ace98(_0x518165,void 0x0,'output');}},_0x55132b=!0x1;return{'encrypt'(_0x563ecf,_0x2c8842){const _0x13053c=_0x4b5bd1;if(_0x55132b)throw Error(_0x13053c(0x41e));return _0x55132b=!0x0,_0x4ace98(_0x563ecf),_0x2f1845(_0x189e9a['encrypt'][_0x13053c(0x207)],_0x2c8842),_0x189e9a[_0x13053c(0xc3)](_0x563ecf,_0x2c8842);},'decrypt'(_0x4525a4,_0x14c3ce){const _0x1bb892=_0x4b5bd1;if(_0x4ace98(_0x4525a4),_0x30d542&&_0x4525a4[_0x1bb892(0x207)]<_0x30d542)throw Error(_0x1bb892(0x2a1)+_0x30d542);return _0x2f1845(_0x189e9a[_0x1bb892(0x322)]['length'],_0x14c3ce),_0x189e9a[_0x1bb892(0x322)](_0x4525a4,_0x14c3ce);}};}return Object['assign'](_0x485c21,_0x1005fd),_0x485c21;};function _0x1e24ee(_0x486675,_0x1d2ad1,_0x368aaf=!0x0){const _0x3f0e3c=_0x21648f;if(_0x1d2ad1===void 0x0)return new Uint8Array(_0x486675);if(_0x4ace98(_0x1d2ad1,void 0x0,_0x3f0e3c(0x242)),_0x1d2ad1[_0x3f0e3c(0x207)]!==_0x486675)throw Error(_0x3f0e3c(0x3cb)+_0x486675+_0x3f0e3c(0x228)+_0x1d2ad1[_0x3f0e3c(0x207)]);if(_0x368aaf&&!_0x39f7e5(_0x1d2ad1))throw Error(_0x3f0e3c(0x2a5));return _0x1d2ad1;}function _0x39f7e5(_0x7945ac){const _0x4af272=_0x21648f;return _0x7945ac[_0x4af272(0x38b)]%0x4==0x0;}function _0x1138f9(_0x38a9b6){return Uint8Array['from'](_0x4ace98(_0x38a9b6));}function _0x41fb8b(_0x2a7bd2=0x20){const _0x433425=_0x21648f;_0x508742(_0x2a7bd2);let _0x3635e2=typeof globalThis==_0x433425(0x2a6)?globalThis['crypto']:null;if(typeof(_0x3635e2==null?void 0x0:_0x3635e2[_0x433425(0xf0)])!=_0x433425(0x259))throw Error(_0x433425(0x32a));return _0x3635e2['getRandomValues'](new Uint8Array(_0x2a7bd2));}function _0x418a99(_0xc1aaab){const _0xf62e2b=_0x21648f;if(![0x10,0x18,0x20][_0xf62e2b(0x335)](_0xc1aaab[_0xf62e2b(0x207)]))throw Error(_0xf62e2b(0x1e0)+_0xc1aaab['length']);}function _0x4482e7(_0x19b7dd){return _0x19b7dd<<0x1^0x11b&-(_0x19b7dd>>0x7);}function _0x32cd2d(_0x2a045f,_0x247e5e){let _0x2b8eba=0x0;for(;_0x247e5e>0x0;_0x247e5e>>=0x1)_0x2b8eba^=_0x2a045f&-(_0x247e5e&0x1),_0x2a045f=_0x4482e7(_0x2a045f);return _0x2b8eba;}let _0x13f9b2=((()=>{let _0x11a003=new Uint8Array(0x100);for(let _0x507c85=0x0,_0x59d175=0x1;_0x507c85<0x100;_0x507c85++,_0x59d175^=_0x4482e7(_0x59d175))_0x11a003[_0x507c85]=_0x59d175;let _0x32b077=new Uint8Array(0x100);_0x32b077[0x0]=0x63;for(let _0x1e85d5=0x0;_0x1e85d5<0xff;_0x1e85d5++){let _0x29fcbf=_0x11a003[0xff-_0x1e85d5];_0x29fcbf|=_0x29fcbf<<0x8,_0x32b077[_0x11a003[_0x1e85d5]]=(_0x29fcbf^_0x29fcbf>>0x4^_0x29fcbf>>0x5^_0x29fcbf>>0x6^_0x29fcbf>>0x7^0x63)&0xff;}return _0xa6a925(_0x11a003),_0x32b077;})()),_0x73ad1f=_0x13f9b2[_0x21648f(0x26e)]((_0x4b47e3,_0x357073)=>_0x13f9b2[_0x21648f(0xed)](_0x357073)),_0x3ac031=_0x53a339=>_0x53a339<<0x18|_0x53a339>>>0x8,_0x1ee802=_0x6ce9e7=>_0x6ce9e7<<0x8|_0x6ce9e7>>>0x18;function _0x19bf21(_0x1243c0,_0x3bb26b){const _0xf86b47=_0x21648f;if(_0x1243c0[_0xf86b47(0x207)]!==0x100)throw Error(_0xf86b47(0x29f));let _0x540707=new Uint32Array(0x100)[_0xf86b47(0x26e)]((_0x302bb6,_0x151d74)=>_0x3bb26b(_0x1243c0[_0x151d74])),_0x3a921e=_0x540707[_0xf86b47(0x26e)](_0x1ee802),_0x2710f5=_0x3a921e['map'](_0x1ee802),_0x3cd067=_0x2710f5[_0xf86b47(0x26e)](_0x1ee802),_0x4d016b=new Uint32Array(0x100*0x100),_0x49d710=new Uint32Array(0x100*0x100),_0x12fe1f=new Uint16Array(0x100*0x100);for(let _0xf68ba6=0x0;_0xf68ba6<0x100;_0xf68ba6++)for(let _0x1b4e4d=0x0;_0x1b4e4d<0x100;_0x1b4e4d++){let _0x7fb296=_0xf68ba6*0x100+_0x1b4e4d;_0x4d016b[_0x7fb296]=_0x540707[_0xf68ba6]^_0x3a921e[_0x1b4e4d],_0x49d710[_0x7fb296]=_0x2710f5[_0xf68ba6]^_0x3cd067[_0x1b4e4d],_0x12fe1f[_0x7fb296]=_0x1243c0[_0xf68ba6]<<0x8|_0x1243c0[_0x1b4e4d];}return{'sbox':_0x1243c0,'sbox2':_0x12fe1f,'T0':_0x540707,'T1':_0x3a921e,'T2':_0x2710f5,'T3':_0x3cd067,'T01':_0x4d016b,'T23':_0x49d710};}let _0x23a347=_0x19bf21(_0x13f9b2,_0x196f79=>_0x32cd2d(_0x196f79,0x3)<<0x18|_0x196f79<<0x10|_0x196f79<<0x8|_0x32cd2d(_0x196f79,0x2)),_0x383ebf=_0x19bf21(_0x73ad1f,_0x4eee50=>_0x32cd2d(_0x4eee50,0xb)<<0x18|_0x32cd2d(_0x4eee50,0xd)<<0x10|_0x32cd2d(_0x4eee50,0x9)<<0x8|_0x32cd2d(_0x4eee50,0xe)),_0x4325fc=((()=>{let _0x3099de=new Uint8Array(0x10);for(let _0x3fea12=0x0,_0x3fbf30=0x1;_0x3fea12<0x10;_0x3fea12++,_0x3fbf30=_0x4482e7(_0x3fbf30))_0x3099de[_0x3fea12]=_0x3fbf30;return _0x3099de;})());function _0x217231(_0x32562d){const _0x5e8c7d=_0x21648f;_0x4ace98(_0x32562d);let _0x467745=_0x32562d[_0x5e8c7d(0x207)];_0x418a99(_0x32562d);let {sbox2:_0x253225}=_0x23a347,_0x39927b=[];(!_0x5bfac2||!_0x39f7e5(_0x32562d))&&_0x39927b['push'](_0x32562d=_0x1138f9(_0x32562d));let _0x28fcfb=_0x27bf18(_0x3950d7(_0x32562d)),_0x36d4fb=_0x28fcfb[_0x5e8c7d(0x207)],_0x3d89e2=_0x3842e6=>_0x443ac3(_0x253225,_0x3842e6,_0x3842e6,_0x3842e6,_0x3842e6),_0x310d25=new Uint32Array(_0x467745+0x1c);_0x310d25['set'](_0x28fcfb);for(let _0x373899=_0x36d4fb;_0x373899<_0x310d25['length'];_0x373899++){let _0x368e7a=_0x310d25[_0x373899-0x1];_0x373899%_0x36d4fb===0x0?_0x368e7a=_0x3d89e2(_0x3ac031(_0x368e7a))^_0x4325fc[_0x373899/_0x36d4fb-0x1]:_0x36d4fb>0x6&&_0x373899%_0x36d4fb===0x4&&(_0x368e7a=_0x3d89e2(_0x368e7a)),_0x310d25[_0x373899]=_0x310d25[_0x373899-_0x36d4fb]^_0x368e7a;}return _0xa6a925(..._0x39927b),_0x310d25;}function _0x3f6652(_0x5b4041){let _0x17c195=_0x217231(_0x5b4041),_0xe5978f=_0x17c195['slice'](),_0x191c20=_0x17c195['length'],{sbox2:_0xc4d29e}=_0x23a347,{T0:_0x5a9142,T1:_0x2aecc8,T2:_0x52d860,T3:_0x47592d}=_0x383ebf;for(let _0x5a2291=0x0;_0x5a2291<_0x191c20;_0x5a2291+=0x4)for(let _0x1ca840=0x0;_0x1ca840<0x4;_0x1ca840++)_0xe5978f[_0x5a2291+_0x1ca840]=_0x17c195[_0x191c20-_0x5a2291-0x4+_0x1ca840];_0xa6a925(_0x17c195);for(let _0x7d6016=0x4;_0x7d6016<_0x191c20-0x4;_0x7d6016++){let _0x5f3d3a=_0xe5978f[_0x7d6016],_0x553f7b=_0x443ac3(_0xc4d29e,_0x5f3d3a,_0x5f3d3a,_0x5f3d3a,_0x5f3d3a);_0xe5978f[_0x7d6016]=_0x5a9142[_0x553f7b&0xff]^_0x2aecc8[_0x553f7b>>>0x8&0xff]^_0x52d860[_0x553f7b>>>0x10&0xff]^_0x47592d[_0x553f7b>>>0x18];}return _0xe5978f;}function _0x24ac2b(_0x5c7fb6,_0x193d64,_0x56eb7a,_0x42fd27,_0x5a0e42,_0x41f4cd){return _0x5c7fb6[_0x56eb7a<<0x8&0xff00|_0x42fd27>>>0x8&0xff]^_0x193d64[_0x5a0e42>>>0x8&0xff00|_0x41f4cd>>>0x18&0xff];}function _0x443ac3(_0xa99fa6,_0x4572b7,_0x5985e8,_0x26f05a,_0x365feb){return _0xa99fa6[_0x4572b7&0xff|_0x5985e8&0xff00]|_0xa99fa6[_0x26f05a>>>0x10&0xff|_0x365feb>>>0x10&0xff00]<<0x10;}function _0x5d3c98(_0x4d5239,_0x6e5db1,_0x4a9f7c,_0x3e9a2b,_0x9c789d){const _0x58aa8d=_0x21648f;let {sbox2:_0x314ca6,T01:_0x2c99e2,T23:_0x533658}=_0x23a347,_0x5acefd=0x0;_0x6e5db1^=_0x4d5239[_0x5acefd++],_0x4a9f7c^=_0x4d5239[_0x5acefd++],_0x3e9a2b^=_0x4d5239[_0x5acefd++],_0x9c789d^=_0x4d5239[_0x5acefd++];let _0x4a18f1=_0x4d5239[_0x58aa8d(0x207)]/0x4-0x2;for(let _0x563c93=0x0;_0x563c93<_0x4a18f1;_0x563c93++){let _0x32babc=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x6e5db1,_0x4a9f7c,_0x3e9a2b,_0x9c789d),_0x210dc4=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x4a9f7c,_0x3e9a2b,_0x9c789d,_0x6e5db1),_0xdbb414=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x3e9a2b,_0x9c789d,_0x6e5db1,_0x4a9f7c),_0xa2ec56=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x9c789d,_0x6e5db1,_0x4a9f7c,_0x3e9a2b);_0x6e5db1=_0x32babc,_0x4a9f7c=_0x210dc4,_0x3e9a2b=_0xdbb414,_0x9c789d=_0xa2ec56;}return{'s0':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x6e5db1,_0x4a9f7c,_0x3e9a2b,_0x9c789d),'s1':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x4a9f7c,_0x3e9a2b,_0x9c789d,_0x6e5db1),'s2':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x3e9a2b,_0x9c789d,_0x6e5db1,_0x4a9f7c),'s3':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x9c789d,_0x6e5db1,_0x4a9f7c,_0x3e9a2b)};}function _0x2924f2(_0x3f2b95,_0x4022d7,_0x4df684,_0x394663,_0x7592f5){const _0x36db84=_0x21648f;let {sbox2:_0x241f31,T01:_0x2ae9d0,T23:_0x229cb1}=_0x383ebf,_0x3561be=0x0;_0x4022d7^=_0x3f2b95[_0x3561be++],_0x4df684^=_0x3f2b95[_0x3561be++],_0x394663^=_0x3f2b95[_0x3561be++],_0x7592f5^=_0x3f2b95[_0x3561be++];let _0x3942a8=_0x3f2b95[_0x36db84(0x207)]/0x4-0x2;for(let _0x23200d=0x0;_0x23200d<_0x3942a8;_0x23200d++){let _0x1c1a7e=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x4022d7,_0x7592f5,_0x394663,_0x4df684),_0x419215=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x4df684,_0x4022d7,_0x7592f5,_0x394663),_0x125eb9=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x394663,_0x4df684,_0x4022d7,_0x7592f5),_0x524432=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x7592f5,_0x394663,_0x4df684,_0x4022d7);_0x4022d7=_0x1c1a7e,_0x4df684=_0x419215,_0x394663=_0x125eb9,_0x7592f5=_0x524432;}return{'s0':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x4022d7,_0x7592f5,_0x394663,_0x4df684),'s1':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x4df684,_0x4022d7,_0x7592f5,_0x394663),'s2':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x394663,_0x4df684,_0x4022d7,_0x7592f5),'s3':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x7592f5,_0x394663,_0x4df684,_0x4022d7)};}function _0x3c06fc(_0x2f6d1d){const _0x829ac1=_0x21648f;if(_0x4ace98(_0x2f6d1d),_0x2f6d1d[_0x829ac1(0x207)]%0x10!=0x0)throw Error(_0x829ac1(0x187));}function _0x2341df(_0x155727,_0x29d84c,_0x5aed0b){const _0x222258=_0x21648f;_0x4ace98(_0x155727);let _0x2ee885=_0x155727[_0x222258(0x207)],_0x4a24ef=_0x2ee885%0x10;if(!_0x29d84c&&_0x4a24ef!==0x0)throw Error(_0x222258(0x17f));if(_0x29d84c){let _0x20d6ff=0x10-_0x4a24ef;_0x20d6ff||(_0x20d6ff=0x10),_0x2ee885+=_0x20d6ff;}_0x5aed0b=_0x1e24ee(_0x2ee885,_0x5aed0b),_0x307ed9(_0x155727,_0x5aed0b),(!_0x5bfac2||!_0x39f7e5(_0x155727))&&(_0x155727=_0x1138f9(_0x155727));let _0x183b9d=_0x3950d7(_0x155727);return _0x27bf18(_0x183b9d),{'b':_0x183b9d,'o':_0x3950d7(_0x5aed0b),'out':_0x5aed0b};}function _0x4307d1(_0x29b671,_0x2453df){const _0xe97730=_0x21648f;if(!_0x2453df)return _0x29b671;let _0x52a18f=_0x29b671[_0xe97730(0x207)];if(_0x52a18f===0x0)throw Error(_0xe97730(0x319));let _0x5c1778=_0x29b671[_0x52a18f-0x1],_0x4a2002=0x1;_0x4a2002&=_0x5c1778-0x1>>>0x1f^0x1,_0x4a2002&=0x10-_0x5c1778>>>0x1f^0x1;for(let _0x4affec=0x0;_0x4affec<0x10;_0x4affec++){let _0x3957d5=_0x4affec-_0x5c1778>>>0x1f,_0x5b0003=+((_0x29b671[_0x52a18f-0x1-_0x4affec]^_0x5c1778)===0x0);_0x4a2002&=_0x5b0003|_0x3957d5^0x1;}if(!_0x4a2002)throw Error(_0xe97730(0x2df));return _0x29b671[_0xe97730(0x314)](0x0,_0x52a18f-_0x5c1778);}function _0x398041(_0x5d768f){const _0x4b6e41=_0x21648f;let _0x55cd85=new Uint8Array(0x10),_0x549030=_0x3950d7(_0x55cd85);_0x55cd85[_0x4b6e41(0x213)](_0x5d768f);let _0x953bd5=0x10-_0x5d768f[_0x4b6e41(0x207)];for(let _0x54a493=0x10-_0x953bd5;_0x54a493<0x10;_0x54a493++)_0x55cd85[_0x54a493]=_0x953bd5;return _0x549030;}let _0x22b264=_0x4a721e({'blockSize':0x10,'nonceLength':0x10},function(_0x18989c,_0x2f99bd,_0x3b4170={}){let _0x2179b4=!_0x3b4170['disablePadding'];return{'encrypt'(_0x5da101,_0x4ddc28){const _0x2ba143=_0x2b93;let _0x9da018=_0x217231(_0x18989c),{b:_0x23d981,o:_0x5c8ce7,out:_0x1530ae}=_0x2341df(_0x5da101,_0x2179b4,_0x4ddc28),_0x17fa34=_0x2f99bd,_0x16d08b=[_0x9da018];(!_0x5bfac2||!_0x39f7e5(_0x17fa34))&&_0x16d08b[_0x2ba143(0x327)](_0x17fa34=_0x1138f9(_0x17fa34));let _0x18808d=_0x3950d7(_0x17fa34);_0x27bf18(_0x18808d);let _0x345830=_0x18808d[0x0],_0xa2803a=_0x18808d[0x1],_0x469eb7=_0x18808d[0x2],_0x2182b7=_0x18808d[0x3],_0x3a3640=0x0;for(;_0x3a3640+0x4<=_0x23d981[_0x2ba143(0x207)];)_0x345830^=_0x23d981[_0x3a3640+0x0],_0xa2803a^=_0x23d981[_0x3a3640+0x1],_0x469eb7^=_0x23d981[_0x3a3640+0x2],_0x2182b7^=_0x23d981[_0x3a3640+0x3],{s0:_0x345830,s1:_0xa2803a,s2:_0x469eb7,s3:_0x2182b7}=_0x5d3c98(_0x9da018,_0x345830,_0xa2803a,_0x469eb7,_0x2182b7),_0x5c8ce7[_0x3a3640++]=_0x345830,_0x5c8ce7[_0x3a3640++]=_0xa2803a,_0x5c8ce7[_0x3a3640++]=_0x469eb7,_0x5c8ce7[_0x3a3640++]=_0x2182b7;if(_0x2179b4){let _0x159bb6=_0x398041(_0x5da101[_0x2ba143(0x314)](_0x3a3640*0x4));_0x27bf18(_0x159bb6),_0x345830^=_0x159bb6[0x0],_0xa2803a^=_0x159bb6[0x1],_0x469eb7^=_0x159bb6[0x2],_0x2182b7^=_0x159bb6[0x3],{s0:_0x345830,s1:_0xa2803a,s2:_0x469eb7,s3:_0x2182b7}=_0x5d3c98(_0x9da018,_0x345830,_0xa2803a,_0x469eb7,_0x2182b7),_0x5c8ce7[_0x3a3640++]=_0x345830,_0x5c8ce7[_0x3a3640++]=_0xa2803a,_0x5c8ce7[_0x3a3640++]=_0x469eb7,_0x5c8ce7[_0x3a3640++]=_0x2182b7;}return _0x27bf18(_0x5c8ce7),_0xa6a925(..._0x16d08b),_0x1530ae;},'decrypt'(_0x52b95d,_0x2d0963){const _0x479cbd=_0x2b93;_0x3c06fc(_0x52b95d);let _0x4801c6=_0x3f6652(_0x18989c),_0x16083a=_0x2f99bd,_0x21582a=[_0x4801c6];(!_0x5bfac2||!_0x39f7e5(_0x16083a))&&_0x21582a['push'](_0x16083a=_0x1138f9(_0x16083a));let _0x4121ad=_0x3950d7(_0x16083a);_0x27bf18(_0x4121ad),_0x2d0963=_0x1e24ee(_0x52b95d[_0x479cbd(0x207)],_0x2d0963),_0x307ed9(_0x52b95d,_0x2d0963),(!_0x5bfac2||!_0x39f7e5(_0x52b95d))&&_0x21582a[_0x479cbd(0x327)](_0x52b95d=_0x1138f9(_0x52b95d));let _0x20ff75=_0x3950d7(_0x52b95d),_0x6c9c33=_0x3950d7(_0x2d0963);_0x27bf18(_0x20ff75);let _0x398e05=_0x4121ad[0x0],_0x1ec1a8=_0x4121ad[0x1],_0x32930e=_0x4121ad[0x2],_0x1452e3=_0x4121ad[0x3];for(let _0x1eaaa5=0x0;_0x1eaaa5+0x4<=_0x20ff75[_0x479cbd(0x207)];){let _0x1aecc6=_0x398e05,_0x5896fb=_0x1ec1a8,_0x5a7d34=_0x32930e,_0x335b96=_0x1452e3;_0x398e05=_0x20ff75[_0x1eaaa5+0x0],_0x1ec1a8=_0x20ff75[_0x1eaaa5+0x1],_0x32930e=_0x20ff75[_0x1eaaa5+0x2],_0x1452e3=_0x20ff75[_0x1eaaa5+0x3];let {s0:_0x49e950,s1:_0x4f3409,s2:_0x58f776,s3:_0x12d0f1}=_0x2924f2(_0x4801c6,_0x398e05,_0x1ec1a8,_0x32930e,_0x1452e3);_0x6c9c33[_0x1eaaa5++]=_0x49e950^_0x1aecc6,_0x6c9c33[_0x1eaaa5++]=_0x4f3409^_0x5896fb,_0x6c9c33[_0x1eaaa5++]=_0x58f776^_0x5a7d34,_0x6c9c33[_0x1eaaa5++]=_0x12d0f1^_0x335b96;}return _0x27bf18(_0x6c9c33),_0xa6a925(..._0x21582a),_0x4307d1(_0x2d0963,_0x2179b4);}};});function _0x5d4008(_0x39c832){const _0x264e19=_0x21648f;let _0x4384bb=atob(_0x39c832),_0x2c42ae=new Uint8Array(_0x4384bb[_0x264e19(0x207)]);for(let _0x59549a=0x0;_0x59549a<_0x4384bb[_0x264e19(0x207)];_0x59549a++)_0x2c42ae[_0x59549a]=_0x4384bb['charCodeAt'](_0x59549a);return _0x2c42ae;}function _0xc11ea2(_0x5fda37){const _0x13550a=_0x21648f;let _0x1ea8da='';for(let _0xbd9d56=0x0;_0xbd9d56<_0x5fda37[_0x13550a(0x207)];_0xbd9d56++)_0x1ea8da+=String[_0x13550a(0x3fd)](_0x5fda37[_0xbd9d56]);return btoa(_0x1ea8da);}function _0x54d039(_0x23534d,_0x149f84){const _0x31d1b5=_0x21648f;let _0x74faf5=_0x5d4008(_0x149f84),_0x5bc8f1=_0x41fb8b(0x10);return _0xc11ea2(_0xf48190(_0x5bc8f1,_0x22b264(_0x74faf5,_0x5bc8f1)[_0x31d1b5(0xc3)](_0x51fa95(_0x23534d))));}function _0x101d1c(){const _0xa272b1=_0x21648f;let _0x424da0=(0x0,_0xae8d13[_0xa272b1(0x15b)])()[_0xa272b1(0x239)];if(typeof window<'u'&&window[_0xa272b1(0x241)]!==void 0x0&&_0x424da0){let _0x2d4ecb={'time':Math[_0xa272b1(0x299)](Date[_0xa272b1(0x1c2)]()/0x3e8),'domain':location[_0xa272b1(0x30c)]};return _0x54d039(JSON[_0xa272b1(0x102)](_0x2d4ecb),_0x424da0);}}let _0x2f8f91=class{constructor(_0x37acfa){const _0x2d83a1=_0x21648f;this[_0x2d83a1(0x3a7)]=_0x37acfa,this[_0x2d83a1(0x196)]();}[_0x21648f(0x196)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x2227e1,_0x12fdb)=>{const _0x21ef9f=_0x2b93;let _0x21b5c6=_0x101d1c();return _0x21b5c6&&_0x2227e1['headers'][_0x21ef9f(0x213)]('x-univer-host',_0x21b5c6),_0x12fdb(_0x2227e1);}});}};_0x2f8f91=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f['HTTPService']))],_0x2f8f91);let _0x49a43c=class extends _0x868841['RxDisposable']{constructor(_0xade241,_0x2ea219,_0x471d3e){const _0x49c9ff=_0x21648f;super(),this[_0x49c9ff(0x2fc)]=_0xade241,this[_0x49c9ff(0x179)]=_0x2ea219,this[_0x49c9ff(0x2c8)]=_0x471d3e,_0x6d65c2(this,_0x49c9ff(0x391),new _0x409690[(_0x49c9ff(0x193))](null)),_0x6d65c2(this,_0x49c9ff(0x285),new _0x409690['Subject']()),_0x6d65c2(this,_0x49c9ff(0x245),this['_unitInfo$']['asObservable']()),_0x6d65c2(this,_0x49c9ff(0x1e1),this[_0x49c9ff(0x285)][_0x49c9ff(0x340)]());}[_0x21648f(0x265)](){const _0x5875fd=_0x21648f;super[_0x5875fd(0x265)](),this[_0x5875fd(0x285)][_0x5875fd(0x3f5)](),this[_0x5875fd(0x391)]['complete']();}async[_0x21648f(0x3a1)](_0x1e8825,_0x130e4c,_0x2cec49,_0x3638f3){const _0x339f77=_0x21648f;this[_0x339f77(0x391)][_0x339f77(0xdd)]({'unitId':_0x1e8825,'type':_0x130e4c,'subUnitId':_0x3638f3});let _0x3cc234=null;switch(_0x130e4c){case _0x868841[_0x339f77(0x2f8)][_0x339f77(0x23b)]:_0x3cc234=await this[_0x339f77(0x179)][_0x339f77(0x326)](_0x1e8825,_0x2cec49,void 0x0,{'initialSubUnitId':_0x3638f3});break;case _0x868841['UniverInstanceType']['UNIVER_DOC']:_0x3cc234=await this[_0x339f77(0x179)][_0x339f77(0x34c)](_0x1e8825,_0x2cec49);break;case _0x868841['UniverInstanceType'][_0x339f77(0x2b1)]:_0x3cc234=await this[_0x339f77(0x179)]['loadSlide'](_0x1e8825,_0x2cec49);break;case _0x868841['UniverInstanceType'][_0x339f77(0x28a)]:_0x3cc234=await this[_0x339f77(0x179)][_0x339f77(0x1d3)](_0x1e8825,_0x2cec49);break;case _0x868841[_0x339f77(0x2f8)][_0x339f77(0x2a9)]:_0x3cc234=await this[_0x339f77(0x179)]['loadBase'](_0x1e8825,_0x2cec49);break;default:this[_0x339f77(0x2fc)][_0x339f77(0x29e)](_0x339f77(0x18d),_0x339f77(0x2c2));break;}return _0x3cc234&&this[_0x339f77(0x285)]['next'](_0x3cc234),_0x3cc234;}async[_0x21648f(0x291)](_0x59c6ed,_0xa105d,_0xaf3871){const _0x69003=_0x21648f;var _0x5a9f3f;this[_0x69003(0x391)][_0x69003(0xdd)]({'unitId':_0x59c6ed,'type':_0xa105d,'subUnitId':_0xaf3871});let _0x4b59c4=0x0,_0x5b29d3=await((_0x5a9f3f=this['_localCacheService'])==null?void 0x0:_0x5a9f3f[_0x69003(0x38e)](_0x59c6ed));return _0x5b29d3&&(_0x5b29d3[_0x69003(0x1ed)]||_0x5b29d3[_0x69003(0x1bb)][_0x69003(0x207)]!==0x0)&&(_0x4b59c4=_0x5b29d3['rev']),_0x4b59c4===0x0&&this[_0x69003(0x2fc)][_0x69003(0x39c)](_0x69003(0x18d),_0x69003(0x3b4)),this[_0x69003(0x3a1)](_0x59c6ed,_0xa105d,_0x4b59c4,_0xaf3871);}};_0x49a43c=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x206)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x1e5)])),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x49a43c);let _0x4a2349=class{constructor(_0x375d46,_0x1e86a7,_0xdffc2f){const _0x5a524c=_0x21648f;this[_0x5a524c(0x3a7)]=_0x375d46,this['_configService']=_0x1e86a7,this[_0x5a524c(0x32f)]=_0xdffc2f,_0x6d65c2(this,_0x5a524c(0x1ea),0x0),_0x6d65c2(this,_0x5a524c(0xe3),new _0x409690[(_0x5a524c(0x409))]()),_0x6d65c2(this,_0x5a524c(0x37a),this[_0x5a524c(0xe3)]),_0x6d65c2(this,_0x5a524c(0x158),new Map());}[_0x21648f(0x41a)](_0xc2318a){const _0x174a9d=_0x21648f;this[_0x174a9d(0x1ea)]=_0xc2318a,this[_0x174a9d(0xe3)][_0x174a9d(0xdd)](_0xc2318a);}[_0x21648f(0x3cf)](_0x365fff,_0x2c8dbd){const _0x1f037b=_0x21648f;if(_0x2c8dbd===_0x868841[_0x1f037b(0x1ee)][_0x1f037b(0x37b)]){let _0x1d459e=new Image();return _0x1d459e[_0x1f037b(0x315)]=_0x365fff,_0x1d459e;}return this[_0x1f037b(0x158)][_0x1f037b(0x224)](_0x365fff);}['addImageSourceCache'](_0x3c13a8,_0x4a5ec6,_0x3bf52d){const _0x554153=_0x21648f;_0x4a5ec6===_0x868841['ImageSourceType'][_0x554153(0x37b)]||_0x3bf52d==null||this[_0x554153(0x158)]['set'](_0x3c13a8,_0x3bf52d);}async[_0x21648f(0x123)](_0x3b7279){const _0x1fc2cb=_0x21648f;try{let _0x45185f=this[_0x1fc2cb(0x135)](this['_getSignURL'](),''+_0x3b7279),_0x28084a=(await this['_httpService'][_0x1fc2cb(0x224)](_0x45185f))[_0x1fc2cb(0x346)];if(_0x28084a[_0x1fc2cb(0x29e)]&&_0x28084a[_0x1fc2cb(0x29e)]['code']===_0x1df2bb[_0x1fc2cb(0xf6)]['OK']){let _0x53845f=(0x0,_0x868841[_0x1fc2cb(0x33d)])(_0x28084a['url'],this[_0x1fc2cb(0x189)]());return Promise[_0x1fc2cb(0x103)](_0x53845f);}return Promise[_0x1fc2cb(0x2d3)](_0x28084a[_0x1fc2cb(0x29e)]);}catch(_0xe05115){return Promise[_0x1fc2cb(0x2d3)](_0xe05115);}}async[_0x21648f(0x331)](_0x18030c){const _0x698d35=_0x21648f;let _0x535fb5='';if(!_0x50acd0[_0x698d35(0x2aa)]['includes'](_0x18030c['type']))return this[_0x698d35(0x28d)](),Promise[_0x698d35(0x2d3)](Error(_0x868841[_0x698d35(0x39a)][_0x698d35(0x3b8)]));if(_0x18030c[_0x698d35(0x362)]>(0x0,_0x50acd0['getDrawingImageAllowSize'])())return this[_0x698d35(0x28d)](),Promise['reject'](Error(_0x868841[_0x698d35(0x39a)][_0x698d35(0x316)]));try{let _0x1df78e=new FormData();_0x1df78e[_0x698d35(0x407)]('file',_0x18030c);let _0x314e5f=this[_0x698d35(0x32f)][_0x698d35(0x2e3)](),_0xee9b51=_0x314e5f==null?void 0x0:_0x314e5f['getUnitId']();if(!_0xee9b51)throw Error(_0x698d35(0x3ca));let _0x12e1d5=this[_0x698d35(0xfa)]()+_0x698d35(0x10a)+_0x18030c[_0x698d35(0x362)][_0x698d35(0x11b)]()+'&source='+_0x1df2bb['FileSource']['UnitEmbedded']+'&assign='+encodeURIComponent(_0xee9b51),_0x405ee6={'body':_0x1df78e},_0x2eb1e6=(await this[_0x698d35(0x3a7)]['post'](_0x12e1d5,_0x405ee6))[_0x698d35(0x346)];if(typeof _0x2eb1e6[_0x698d35(0x3c7)]!=_0x698d35(0x353))return this[_0x698d35(0x28d)](),Promise[_0x698d35(0x2d3)](Error(_0x868841[_0x698d35(0x39a)][_0x698d35(0xef)]));_0x535fb5=_0x2eb1e6[_0x698d35(0x3c7)];}catch{return this[_0x698d35(0x28d)](),Promise[_0x698d35(0x2d3)](Error(_0x868841['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x371fa8,_0x284270)=>{const _0xbd7028=_0x698d35;let _0x3ef25e=new FileReader();_0x3ef25e[_0xbd7028(0x40f)](_0x18030c),_0x3ef25e[_0xbd7028(0x281)]=_0xa0e8c1=>{const _0x45441d=_0xbd7028;var _0xb12346;let _0x4183a6=(_0xb12346=_0xa0e8c1['target'])==null?void 0x0:_0xb12346[_0x45441d(0x144)];if(_0x4183a6==null){this['_decreaseWaiting'](),_0x284270(Error(_0x868841['ImageUploadStatusType'][_0x45441d(0xef)]));return;}_0x371fa8({'imageId':(0x0,_0x868841[_0x45441d(0x2db)])(0x6),'imageSourceType':_0x868841['ImageSourceType'][_0x45441d(0x3de)],'source':_0x535fb5,'base64Cache':_0x4183a6,'status':_0x868841[_0x45441d(0x39a)][_0x45441d(0x318)]}),this[_0x45441d(0x28d)]();};});}[_0x21648f(0xfa)](){const _0x378742=_0x21648f;var _0x1a6c66;let _0x3fb55e=this[_0x378742(0x23e)][_0x378742(0x33e)](_0x4b92ba);return(_0x1a6c66=_0x3fb55e==null?void 0x0:_0x3fb55e[_0x378742(0x2a2)])==null?_0x378742(0xeb):_0x1a6c66;}['_getSignURL'](){const _0x2ba620=_0x21648f;var _0x163b00;let _0x23dfcf=this[_0x2ba620(0x23e)][_0x2ba620(0x33e)](_0x4b92ba);return(_0x163b00=_0x23dfcf==null?void 0x0:_0x23dfcf[_0x2ba620(0x30f)])==null?_0x2ba620(0x274):_0x163b00;}[_0x21648f(0x189)](){const _0x2cb2df=_0x21648f;var _0x467055;let _0x505f4b=this[_0x2cb2df(0x23e)][_0x2cb2df(0x33e)](_0x4b92ba);return(_0x467055=_0x505f4b==null?void 0x0:_0x505f4b[_0x2cb2df(0x21d)])==null?location[_0x2cb2df(0x1c9)]:_0x467055;}[_0x21648f(0x135)](_0x4ec18f,_0x33ff09){const _0xa58c4d=_0x21648f;return _0x4ec18f[_0xa58c4d(0x336)](_0xa58c4d(0x1e4),_0x33ff09);}[_0x21648f(0x28d)](){const _0x1147f8=_0x21648f;--this[_0x1147f8(0x1ea)],this[_0x1147f8(0xe3)][_0x1147f8(0xdd)](this[_0x1147f8(0x1ea)]);}};_0x4a2349=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x8bc35f[_0x21648f(0x1a4)])),_0x273192(0x1,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x2,(0x0,_0x868841['Inject'])(_0x868841['IUniverInstanceService']))],_0x4a2349);let _0x3f1171=class{constructor(_0x477ced,_0x4197a6){const _0x4363a5=_0x21648f;this[_0x4363a5(0x23e)]=_0x477ced,this[_0x4363a5(0x1ad)]=_0x4197a6;}[_0x21648f(0x366)](){const _0x5c468e=_0x21648f;var _0x368fb1;let _0x1c9cf5=this['_configService'][_0x5c468e(0x33e)](_0x4b92ba);return(_0x368fb1=_0x1c9cf5==null?void 0x0:_0x1c9cf5['authzUrl'])==null?_0x5c468e(0x1b3):_0x368fb1;}async[_0x21648f(0x417)](_0x8f7010){const _0x5902e3=_0x21648f;let _0x30e59e=this[_0x5902e3(0x366)]()+_0x5902e3(0x10c);return{'list':[{'title':'People','mentions':(await this[_0x5902e3(0x1ad)]['get'](_0x30e59e,{'params':{'objectID':_0x8f7010['unitId'],'unitID':_0x8f7010[_0x5902e3(0x3b9)]}}))[_0x5902e3(0x346)][_0x5902e3(0x2a8)][_0x5902e3(0x26e)](_0x5db6a0=>({'objectId':_0x5db6a0['id'],'name':_0x5db6a0[_0x5902e3(0xcd)][_0x5902e3(0x414)],'metadata':{'icon':_0x5db6a0[_0x5902e3(0xcd)][_0x5902e3(0x3e1)]},'label':_0x5db6a0['subject'][_0x5902e3(0x414)],'objectType':_0x868841[_0x5902e3(0x345)]['PERSON']})),'metadata':{},'type':_0x868841[_0x5902e3(0x345)][_0x5902e3(0x21c)]}]};}};_0x3f1171=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x2ba)])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)]))],_0x3f1171);let _0x473d8e=class extends _0x868841[_0x21648f(0x112)]{constructor(_0x18e4b3,_0x46426a,_0x4cc25e,_0x360b05,_0xad89d2){const _0x3f9d1d=_0x21648f;super(),this[_0x3f9d1d(0x2d9)]=_0x18e4b3,this[_0x3f9d1d(0x32f)]=_0x46426a,this[_0x3f9d1d(0x393)]=_0x4cc25e,this[_0x3f9d1d(0x226)]=_0x360b05,this[_0x3f9d1d(0x2bd)]=_0xad89d2,this[_0x3f9d1d(0xd4)](),this[_0x3f9d1d(0x3d4)]();}[_0x21648f(0x3d4)](){const _0x2a80f2=_0x21648f;let _0x59db62=async _0x383b88=>{const _0x4742e2=_0x2b93;(await this[_0x4742e2(0x226)][_0x4742e2(0x2a4)](_0x383b88))[_0x4742e2(0x219)][_0x4742e2(0x320)]((0x0,_0x4f74e1['filter'])(_0x599763=>_0x599763[_0x4742e2(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x4742e2(0x1fe)]),(0x0,_0x4f74e1[_0x4742e2(0x374)])(this['dispose$']))[_0x4742e2(0x3b6)](_0x29abfb=>{const _0x78ea3f=_0x4742e2;let {reason:_0x4fa3d6}=_0x29abfb['data'];this[_0x78ea3f(0x2bd)][_0x78ea3f(0x203)]({'id':_0x78ea3f(0x386),'data':_0x4fa3d6}),this[_0x78ea3f(0x393)][_0x78ea3f(0x339)](new _0x1d347c[(_0x78ea3f(0x360))](_0x383b88)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x383b88);});};(0x0,_0x409690[_0x2a80f2(0x382)])(this[_0x2a80f2(0x32f)]['getTypeOfUnitAdded$'](_0x868841['UniverInstanceType'][_0x2a80f2(0x23b)]),this['_univerInstanceService'][_0x2a80f2(0x14d)](_0x868841[_0x2a80f2(0x2f8)][_0x2a80f2(0x332)]),this[_0x2a80f2(0x32f)][_0x2a80f2(0x14d)](_0x868841[_0x2a80f2(0x2f8)]['UNIVER_BOARD']),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x868841['UniverInstanceType'][_0x2a80f2(0x2a9)]))[_0x2a80f2(0x320)]((0x0,_0x4f74e1['map'])(_0x97fb3d=>_0x97fb3d['unit'][_0x2a80f2(0x128)]()),(0x0,_0x4f74e1[_0x2a80f2(0x11a)])(_0x5effac=>!(0x0,_0x868841[_0x2a80f2(0x1fc)])(_0x5effac)),(0x0,_0x4f74e1[_0x2a80f2(0x374)])(this['dispose$']))[_0x2a80f2(0x3b6)](_0x539a60=>{_0x59db62(_0x539a60);});}[_0x21648f(0xd4)](){const _0x556b0c=_0x21648f;let _0x435f49=async _0x22826f=>{const _0x51bd98=_0x2b93;let _0x46ea70=await this[_0x51bd98(0x226)][_0x51bd98(0x2a4)](_0x22826f),_0x15bd94=this[_0x51bd98(0x2d9)]['get'](_0x1d347c[_0x51bd98(0x254)]);_0x46ea70[_0x51bd98(0x219)]['pipe']((0x0,_0x4f74e1[_0x51bd98(0x11a)])(_0x23e63b=>_0x23e63b[_0x51bd98(0x1d9)]===_0x4c2ece[_0x51bd98(0x343)][_0x51bd98(0x2ea)]),(0x0,_0x4f74e1[_0x51bd98(0x374)])(this[_0x51bd98(0xf2)]))['subscribe'](_0x2517b2=>{const _0x396b61=_0x51bd98;let {objectId:_0x3da172}=_0x2517b2[_0x396b61(0x29b)];_0x3da172===_0x22826f?_0x15bd94[_0x396b61(0x2f3)](_0x22826f):_0x15bd94[_0x396b61(0x333)](_0x22826f,_0x3da172);});};(0x0,_0x409690[_0x556b0c(0x382)])(this[_0x556b0c(0x32f)][_0x556b0c(0x14d)](_0x868841[_0x556b0c(0x2f8)][_0x556b0c(0x23b)]))[_0x556b0c(0x320)]((0x0,_0x4f74e1[_0x556b0c(0x26e)])(_0x565388=>_0x565388[_0x556b0c(0x2ee)][_0x556b0c(0x128)]()),(0x0,_0x4f74e1['filter'])(_0x59eb0d=>!(0x0,_0x868841[_0x556b0c(0x1fc)])(_0x59eb0d)),(0x0,_0x4f74e1[_0x556b0c(0x374)])(this[_0x556b0c(0xf2)]))[_0x556b0c(0x3b6)](_0x9541ab=>{_0x435f49(_0x9541ab);});}};_0x473d8e=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x868841['Injector'])),_0x273192(0x1,_0x868841['IUniverInstanceService']),_0x273192(0x2,_0x868841[_0x21648f(0x307)]),_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x4bf0aa)),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d))],_0x473d8e);let _0x238261=class{constructor(_0x3d7d09,_0x520dda){const _0x3b22ed=_0x21648f;this[_0x3b22ed(0x23e)]=_0x3d7d09,this[_0x3b22ed(0x3a7)]=_0x520dda;}async[_0x21648f(0x416)](_0x4ababb,_0x3128b3){const _0x42fe1f=_0x21648f;var _0x58274b;let {unitID:_0x4d0833,type:_0x37ca7b,revision:_0x233d52=0x0}=_0x3128b3,_0x18c4eb=this[_0x42fe1f(0x23c)]()+'/'+_0x37ca7b+_0x42fe1f(0x19c)+_0x4d0833+_0x42fe1f(0x24c)+_0x233d52,_0x3fa3ec=(await this[_0x42fe1f(0x3a7)][_0x42fe1f(0x224)](_0x18c4eb))[_0x42fe1f(0x346)],_0x3c15c3=(_0x58274b=_0x3fa3ec['snapshot'])==null?void 0x0:_0x58274b[_0x42fe1f(0x411)];if(_0x3c15c3){let _0xcd835c=_0x3c15c3==null?void 0x0:_0x3c15c3[_0x42fe1f(0x237)];_0x3c15c3[_0x42fe1f(0x237)]=_0x4c2ece[_0x42fe1f(0x16b)][_0x42fe1f(0x28e)]((0x0,_0x4c2ece[_0x42fe1f(0x266)])(_0xcd835c)),Object[_0x42fe1f(0x1d1)](_0x3c15c3['sheets'])[_0x42fe1f(0x352)](([,_0x36554a])=>{const _0x466621=_0x42fe1f;let _0x2f6ede=_0x36554a[_0x466621(0x237)];_0x36554a[_0x466621(0x237)]=_0x4c2ece[_0x466621(0x16b)][_0x466621(0x28e)]((0x0,_0x4c2ece[_0x466621(0x266)])(_0x2f6ede));});}return _0x3fa3ec;}async[_0x21648f(0x263)](_0x351e2c,_0x1c0af1){const _0x3a8a11=_0x21648f;let {unitID:_0x25ebfb,type:_0x4b5310,blockID:_0x1372d6}=_0x1c0af1,_0x2e9a2a=this[_0x3a8a11(0x1ab)]()+'/'+_0x4b5310+_0x3a8a11(0x19c)+_0x25ebfb+_0x3a8a11(0x272)+_0x1372d6;return(await this[_0x3a8a11(0x3a7)][_0x3a8a11(0x224)](_0x2e9a2a))[_0x3a8a11(0x346)];}async['getDeserializedSheetBlock'](_0x486804,_0x28bc72){const _0x43ae95=_0x21648f;let {unitID:_0x4798bc,type:_0x49e792,blockID:_0x216f26}=_0x28bc72,_0x198b84=this['_getAPIPrefix']()+_0x43ae95(0x272)+_0x49e792+_0x43ae95(0x19c)+_0x4798bc+'/block/'+_0x216f26;return(await this[_0x43ae95(0x3a7)][_0x43ae95(0x224)](_0x198b84))['body'];}async[_0x21648f(0x1f7)](_0x415e40,_0xb1ed09){const _0x417d43=_0x21648f;let {unitID:_0x487705,type:_0x42886d,from:_0x176417,to:_0xbc9912}=_0xb1ed09,_0x568896=this['_getAPIPrefix']()+'/'+_0x42886d+_0x417d43(0x19c)+_0x487705+_0x417d43(0x163)+_0x176417+'&to='+_0xbc9912;return(await this[_0x417d43(0x3a7)]['get'](_0x568896))[_0x417d43(0x346)];}[_0x21648f(0x23c)](){const _0x5641fe=_0x21648f;var _0x5d249d;return(_0x5d249d=this[_0x5641fe(0x23e)][_0x5641fe(0x33e)](_0x5641fe(0x1af)))==null?this[_0x5641fe(0x1ab)]():_0x5d249d;}['_getAPIPrefix'](){const _0x163938=_0x21648f;var _0x27add4;let _0x3dbfa6=this['_configService'][_0x163938(0x33e)](_0x4b92ba);return(_0x27add4=_0x3dbfa6==null?void 0x0:_0x3dbfa6['snapshotServerUrl'])==null?_0x163938(0xc5):_0x27add4;}async['getResourcesRequest'](_0x3d6ff3,_0x8308a6){const _0x12e21a=_0x21648f;let _0x58bea3='/universer-api/snapshot/'+_0x8308a6[_0x12e21a(0x350)]+_0x12e21a(0x19c)+_0x8308a6['unitID']+'/resources';return(await this['_httpService'][_0x12e21a(0x224)](_0x58bea3,{'params':{'resourceId':JSON['stringify'](_0x8308a6[_0x12e21a(0x3e4)])}}))[_0x12e21a(0x346)];}['saveSnapshot'](){const _0x54433f=_0x21648f;throw Error(_0x54433f(0x36b));}[_0x21648f(0x2c9)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x21648f(0x1f0)](){const _0x3fb897=_0x21648f;throw Error(_0x3fb897(0x36b));}[_0x21648f(0x2e7)](){const _0x1844b6=_0x21648f;throw Error(_0x1844b6(0x36b));}[_0x21648f(0x3a5)](){const _0x156805=_0x21648f;throw Error(_0x156805(0x36b));}[_0x21648f(0x1b4)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x238261=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)]))],_0x238261);let _0x42867b=class extends _0x868841[_0x21648f(0x1f3)]{constructor(_0x57d07b,_0x2e7805,_0x29f7b6,_0x5d887f,_0x3200c4){const _0x43ab4b=_0x21648f;super(_0x57d07b,_0x2e7805,_0x29f7b6),this[_0x43ab4b(0x376)]=_0x5d887f,this[_0x43ab4b(0x2fc)]=_0x3200c4;}[_0x21648f(0x3e8)](_0x7dcff3,_0x5ec8b0){const _0x6f215e=_0x21648f;let _0x4fd00f=this[_0x6f215e(0x151)](_0x7dcff3);if(_0x4fd00f)try{let _0x25ec28=this[_0x6f215e(0x1db)](_0x4fd00f,_0x5ec8b0);this[_0x6f215e(0x222)](_0x7dcff3,_0x25ec28);}catch(_0x42f640){this['_logService'][_0x6f215e(0x29e)]('[CollaborationUndoRedoService]',_0x42f640),this[_0x6f215e(0x2cb)](_0x7dcff3);}let _0x47243d=this[_0x6f215e(0x36c)](_0x7dcff3);if(_0x47243d)try{let _0x20cd88=this[_0x6f215e(0x1db)](_0x47243d,_0x5ec8b0);this[_0x6f215e(0x2b3)](_0x7dcff3,_0x20cd88);}catch(_0x3a00e7){this[_0x6f215e(0x2fc)][_0x6f215e(0x29e)](_0x3a00e7),this['_clearRedo'](_0x7dcff3);}}[_0x21648f(0x2cb)](_0x32863b){const _0x1e86a6=_0x21648f;let _0x209ee4=this['_getUndoStack'](_0x32863b);_0x209ee4&&(_0x209ee4[_0x1e86a6(0x207)]=0x0,this['_updateStatus']());}[_0x21648f(0xfe)](_0x1cfae5){const _0x25bbb8=_0x21648f;let _0x21d5bb=this[_0x25bbb8(0x36c)](_0x1cfae5);_0x21d5bb&&(_0x21d5bb['length']=0x0,this[_0x25bbb8(0x1d7)]());}[_0x21648f(0x222)](_0x2eb8a5,_0x5c03c0){const _0x40b514=_0x21648f;this[_0x40b514(0x3cd)][_0x40b514(0x213)](_0x2eb8a5,_0x5c03c0),this['_updateStatus']();}['_substituteRedoStack'](_0x3ec5c2,_0x584dda){const _0x660ae3=_0x21648f;this['_redoStacks']['set'](_0x3ec5c2,_0x584dda),this[_0x660ae3(0x1d7)]();}['_transformStack'](_0x964e27,_0x2c6a4e){const _0x272eb7=_0x21648f;let _0x3de360=[],_0x9b7121=_0x2c6a4e,_0x539d3d=_0x2c6a4e;for(let _0x878066=_0x964e27[_0x272eb7(0x207)]-0x1;_0x878066>=0x0;_0x878066--){let {unitID:_0x202ad6,undoMutations:_0x1d501c,redoMutations:_0x23cd42}=_0x964e27[_0x878066],_0x2b9577=this[_0x272eb7(0x376)][_0x272eb7(0x3e9)](_0x9b7121,_0x1d501c),_0x38c6f0=this[_0x272eb7(0x376)][_0x272eb7(0x3e9)](_0x539d3d,_0x23cd42);if((0x0,_0x4c2ece[_0x272eb7(0x3f9)])(_0x2b9577)||(0x0,_0x4c2ece['isTransformMutationsWithChangesetFailure'])(_0x38c6f0)){this[_0x272eb7(0x2fc)][_0x272eb7(0x29e)](_0x272eb7(0x220),_0x272eb7(0x395),_0x2b9577,_0x38c6f0);break;}_0x9b7121=_0x2b9577[_0x272eb7(0x3ae)],_0x539d3d=_0x38c6f0['c1Prime'],_0x3de360[_0x272eb7(0x327)]({'unitID':_0x202ad6,'undoMutations':_0x2b9577[_0x272eb7(0x188)],'redoMutations':_0x38c6f0[_0x272eb7(0x188)]});}return _0x3de360[_0x272eb7(0x38f)]();}};_0x42867b=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x214)]),_0x273192(0x1,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x2,_0x868841['IContextService']),_0x273192(0x3,_0x4c2ece['ITransformService']),_0x273192(0x4,_0x868841[_0x21648f(0x206)])],_0x42867b);let _0xc03cc9=class extends _0x868841[_0x21648f(0x197)]{constructor(_0x5cdcab=_0x361839,_0x2cbaf2,_0xb7c95b,_0x1eb90d){const _0x53be8c=_0x21648f;super(),this['_config']=_0x5cdcab,this[_0x53be8c(0x2fc)]=_0x2cbaf2,this[_0x53be8c(0x2d9)]=_0xb7c95b,this[_0x53be8c(0x23e)]=_0x1eb90d;let {..._0x5815e0}=(0x0,_0x868841['merge'])({},_0x361839,this['_config']);if(!_0x5815e0[_0x53be8c(0x389)])throw Error(_0x53be8c(0x32b));this[_0x53be8c(0x3fb)]=_0x5815e0,this[_0x53be8c(0x23e)][_0x53be8c(0xe8)](_0x4b92ba,_0x5815e0);}['onStarting'](){const _0x21c718=_0x21648f;this['_registerDependencies'](),this[_0x21c718(0x252)]();}[_0x21648f(0xe5)](){const _0x5229cb=_0x21648f;var _0x26a5e3,_0x3e8d8c;this['_injector'][_0x5229cb(0x215)](_0x868841[_0x5229cb(0x351)])&&this[_0x5229cb(0x2fc)][_0x5229cb(0x29e)](_0x5229cb(0x1d0),_0x5229cb(0x37c));let _0x517329=(0x0,_0x868841['mergeOverrideWithDependencies'])([[_0x868841[_0x5229cb(0x351)],{'useClass':_0x42867b}],[_0x2bd49e,{'useValue':_0x55fb30()}],[_0x4bf0aa],[_0x568427],[_0xd82d96],[_0x36e2b4],[_0x2f8f91],[_0x278d59],[_0x473d8e],[_0x55b02d],[_0x49a43c],[_0x4e1025,{'useClass':this[_0x5229cb(0x3fb)][_0x5229cb(0x389)]}],[_0x4c2ece[_0x5229cb(0x170)],{'useClass':_0x238261}],[_0x868841[_0x5229cb(0x218)],{'useClass':_0x37ea91}],[_0x868841[_0x5229cb(0x28b)],{'useClass':_0x4a2349}],[_0x3673e6,{'useClass':_0x1ba482}],[_0x868841['IMentionIOService'],{'useClass':_0x3f1171}],[_0x5ad10a],[_0x448220]],(_0x26a5e3=this[_0x5229cb(0x3fb)])==null?void 0x0:_0x26a5e3[_0x5229cb(0x367)]);if(!((_0x3e8d8c=this[_0x5229cb(0x3fb)])!=null&&_0x3e8d8c[_0x5229cb(0x3d8)])){let _0x4a5964=_0x517329['findIndex'](([_0x484fe8])=>_0x484fe8===_0x3857c0);_0x4a5964!==-0x1&&_0x517329[_0x5229cb(0x109)](_0x4a5964,0x1);}(0x0,_0x868841[_0x5229cb(0x354)])(this['_injector'],_0x517329);}[_0x21648f(0x252)](){const _0x2e4b6a=_0x21648f;var _0xac3cee,_0x4f5906;if(this['_injector']['get'](_0x8bc35f['HTTPService'])[_0x2e4b6a(0x2a0)]({'priority':0x14,'interceptor':(0x0,_0x8bc35f[_0x2e4b6a(0x2f1)])({'maxParallel':0x6})}),!((_0xac3cee=this[_0x2e4b6a(0x3fb)])!=null&&_0xac3cee[_0x2e4b6a(0x22c)])){var _0x1c2e62;(_0x1c2e62=this['_injector'][_0x2e4b6a(0x224)](_0x47d8b0,_0x868841[_0x2e4b6a(0x37d)]['OPTIONAL']))==null||_0x1c2e62[_0x2e4b6a(0x381)]();}(_0x4f5906=this[_0x2e4b6a(0x3fb)])!=null&&_0x4f5906[_0x2e4b6a(0x19a)]&&(0x0,_0x868841[_0x2e4b6a(0x121)])(this[_0x2e4b6a(0x2d9)],[[_0x36e2b4]]),(0x0,_0x868841['touchDependencies'])(this[_0x2e4b6a(0x2d9)],[[_0x2f8f91],[_0x5ad10a],[_0x473d8e]]);}};_0x6d65c2(_0xc03cc9,_0x21648f(0x1dd),_0x21648f(0x1c1)),_0x6d65c2(_0xc03cc9,'packageName',_0x32f204),_0x6d65c2(_0xc03cc9,'version',_0x3be6e8),_0xc03cc9=_0x3e0941([(0x0,_0x868841[_0x21648f(0x283)])(_0xae8d13[_0x21648f(0x1cf)],_0x4c2ece[_0x21648f(0x22d)],_0x8bc35f[_0x21648f(0x3c5)]),_0x273192(0x1,_0x868841[_0x21648f(0x206)]),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x3,_0x868841['IConfigService'])],_0xc03cc9),_0x15bcea['AttachmentSourceType']=_0x5ec8e0,Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x1b9),{'enumerable':!0x0,'get':function(){return _0x37ea91;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x15c),{'enumerable':!0x0,'get':function(){return _0x403ace;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x17c),{'enumerable':!0x0,'get':function(){return _0x4c911a;}}),Object['defineProperty'](_0x15bcea,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x552cde;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x39b),{'enumerable':!0x0,'get':function(){return _0x9a1332;}}),_0x15bcea['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x4b92ba,Object[_0x21648f(0x131)](_0x15bcea,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0x1ba482;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x114),{'enumerable':!0x0,'get':function(){return _0x5ad10a;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x117),{'enumerable':!0x0,'get':function(){return _0x598b2a;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x10d),{'enumerable':!0x0,'get':function(){return _0x4a2349;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x3ea),{'enumerable':!0x0,'get':function(){return _0x4d2902;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x30d),{'enumerable':!0x0,'get':function(){return _0x4bf0aa;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x358),{'enumerable':!0x0,'get':function(){return _0x594520;}}),_0x15bcea[_0x21648f(0x2ad)]=_0x5c8834,_0x15bcea[_0x21648f(0x1fa)]=_0x1ca442,_0x15bcea[_0x21648f(0x16a)]=_0x55b02d,Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x3f8),{'enumerable':!0x0,'get':function(){return _0x42867b;}}),_0x15bcea['CommentService']=_0x278d59,Object['defineProperty'](_0x15bcea,_0x21648f(0x2b8),{'enumerable':!0x0,'get':function(){return _0x391b2a;}}),_0x15bcea[_0x21648f(0x300)]=_0x3838c0,_0x15bcea[_0x21648f(0x2b2)]=_0x21648f(0x38c),_0x15bcea[_0x21648f(0x240)]=_0x21648f(0x387),Object['defineProperty'](_0x15bcea,_0x21648f(0x1d4),{'enumerable':!0x0,'get':function(){return _0x49a43c;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x1e6),{'enumerable':!0x0,'get':function(){return _0x148d55;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x3d0),{'enumerable':!0x0,'get':function(){return _0x2ef93b;}}),_0x15bcea['HEARTBEAT_INTERVAL_KEY']=_0x21648f(0x1ef),_0x15bcea[_0x21648f(0x312)]='HEARTBEAT_TIMEOUT',_0x15bcea[_0x21648f(0x116)]=_0x3673e6,_0x15bcea[_0x21648f(0x173)]=_0x2bd49e,_0x15bcea[_0x21648f(0x3b2)]=_0x4e1025,_0x15bcea['ILocalCacheService']=_0x47d8b0,_0x15bcea[_0x21648f(0xd9)]=_0x161fca,_0x15bcea[_0x21648f(0x30e)]=_0x3857c0,_0x15bcea[_0x21648f(0x34f)]=0x3e8,_0x15bcea['LOCAL_CACHE_INTERVAL_KEY']=_0x21648f(0x34f),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x119),{'enumerable':!0x0,'get':function(){return _0x568427;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x40b),{'enumerable':!0x0,'get':function(){return _0x3f1171;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x2fb),{'enumerable':!0x0,'get':function(){return _0x519d9e;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x194),{'enumerable':!0x0,'get':function(){return _0x5f0bc1;}}),_0x15bcea[_0x21648f(0x246)]=_0x21648f(0x3df),_0x15bcea[_0x21648f(0x198)]=_0x21648f(0x2d2),_0x15bcea['SessionStatus']=_0x138ed3,Object['defineProperty'](_0x15bcea,_0x21648f(0x1e9),{'enumerable':!0x0,'get':function(){return _0x4b3c61;}}),Object['defineProperty'](_0x15bcea,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return _0xd82d96;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x127),{'enumerable':!0x0,'get':function(){return _0x52744e;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x2c0),{'enumerable':!0x0,'get':function(){return _0x238261;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x401),{'enumerable':!0x0,'get':function(){return _0x1e7b48;}}),_0x15bcea['UnitStatus']=_0x294d78,Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0xe4),{'enumerable':!0x0,'get':function(){return _0xc03cc9;}}),_0x15bcea[_0x21648f(0xf8)]=_0x55fb30,_0x15bcea['deserializeToCombResponse']=_0x3b8398,_0x15bcea[_0x21648f(0x2de)]=_0x32415a,_0x15bcea[_0x21648f(0x191)]=_0x43de64;}));function _0x1845(){const _0x48f206=['replace','JOINING','Failed\x20to\x20update\x20permission\x20point','updatePermissionPoint','1.0.0-alpha.5','OFFLINE','onTransformSelections','resolveWithBasePath','getConfig','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','asObservable','status','_handleRemoteChangesets','CollaborationEvent','fill','MentionType','body','onTransformRemoteChangesetByStateCache','Rectangle','/object/','_telemetryService','catch','loadDoc','_shouldReportTelemetry','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','LOCAL_CACHE_INTERVAL','type','IUndoRedoService','forEach','string','registerDependencies','target','headers','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','CollaborationSocketService','awaiting','8368368GzFwPU','[PendingState]:\x20received\x20rejection.','listCollaborators','_onConnectionOpen','objectType','@univerjs/core','WorkbookEditablePermission','_onRemoteRejected','size','SOCKET_FAILED_RETRY','RichTextEditingMutation','_lockTransition','_getAPIPrefixPath','override','\x20to\x20','collaboration-client.config','objectActions','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getRedoStack','_startTelemetryCollaborationNewChangeset','collaboration-client.local-cache-service','href','_doCreateSocket','stopTime','getMemberID','number','takeUntil','_acknowledgeAwaiting','_transformService','decorate','getInterceptPoints','backupOfflineData','change$','BASE64','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','Quantity','_clearRetryConnectingTimer','_userManagerService','setCurrentUser','disableLocalCache','merge','parseChangesetToProtocol','IDLE','_sheetTransformSelectionsService','CLOSE_ROOM','/universer-api/user/session-ticket','add','socketService','@univerjs-pro/license','byteOffset','/universer-api/uniscript','_tryEnsureSocket','loadOfflineData','reverse','_getCtorByUniverInstanceType','_unitInfo$','_state','_permissionService','onRemoteRej','transformStack\x20failed!','status$','_event$','UniverProCollaboration','/object','ImageUploadStatusType','BoardCollaborationEntity','debug','waitForRoom$','@univerjs/protocol','synced','cfgEnableObjInherit','loadUnitOfRevision','Module','candidateSocket','isTransformChangesetsSuccess','copyFileMeta','createCollaborator','_httpService','CommandType','_networkConditionService','nonce','find','resend','encodeURIComponent','c1Prime','isArray','editing\x20status\x20changed\x20to','onLocalMutation','ICollaborationSocketService','fetchThroughInterceptors','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','toggleOffline','subscribe','UniverProCollaborationClient','ERROR_IMAGE_TYPE','unitId','NOT_COLLAB','5IUgWsd','3163676IPtqTF','parseProtocolChangeset','concatMap','localUnitId','_checkMissing','startsWith','CHANGESET_ACK','_pendingMutations','csRejEvent','UniverNetworkPlugin','create','FileId','JOIN_ROOM_PERMISSION_DENIED','_socketChannels','unitId\x20is\x20not\x20found','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','onCommentUpdate','_undoStacks','DEFAULT_FILE_NAME','getImageSourceCache','FetchingMissState','_socketService','unit-cache-','_incrementRevisionNumber','_initCloseConn','getActiveSheet','CombCmd','session.room-permission-denied','enableSingleActiveInstanceLock','createInstance','close','endpoint','awaiting_with_pending','_updateState','UUID','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','ISocketService','avatar','missingChangesets','_resendTimeout','resourceIDs','title','isCompositionEnd','isSafeInteger','transformUndoRedo','transformMutationsWithChangeset','CollaborationSession','trim','save\x20fail\x20reason\x20is\x20','HELLO','mapDocumentTypeToUniverInstanceType','iterator','transformSelections','localCacheService','deleteCollaborator','_queuedRemoteChangesets','MSG_FOR_ERROR','complete','_onCombEvent','COLLABORATION_ENDPOINT_INVALID','CollaborativeUndoRedoService','isTransformMutationsWithChangesetFailure','[SyncedState]:\x20received\x20acknowledgement.','_config','toRemote','fromCharCode','toPrimitive','_handlerCallback','_transformIMECache','SyncedState','fetch_missing','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','Injector','_applyRemoteChangeset','[CollaborationSessionService]','append','univer-pro.collaboration-client-socket-service','Subject','_resolveSessionIdentity','MentionIoHttpService','_commentService','textRanges','updatePermissionObjEvent','readAsDataURL','subUnitId','workbook','buffer','accept','name','_maxTotalRetryTimeout','getUnitOnRev','list','type=','transformChangesets','setWaitCount','socket\x20close','getCurrentSelections','_entityInit$','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','encrypt','hasOwnProperty','/universer-api/snapshot','COMPRESS_MUTATION_APPLY','onMissedChangesetFetched','duration','onRemoteAck','socketReady','GLOBAL_ROOMS_CNT_EXCEEDS','state','subject','file','revision','reconnect','disposeWithMe','@univerjs/drawing','_startCollaboration','_initUnitPermissionChange','_initMergeInterceptor','leaveEvent','FETCH_MISS','fromCollab','INetworkConditionService','_revisionService','min','getCollabEntity','next','[CollaborationEntity]','CONFLICT','delete','Workbook','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_change$','UniverCollaborationClientPlugin','_registerDependencies','incrementRevOfUnit','PERMISSION_DENIED','setConfig','infoRsp','session.room-not-exists','/universer-api/stream/file/upload','key','indexOf','getOwnPropertyDescriptor','ERROR_IMAGE','getRandomValues','JOIN','dispose$','_updateLocalCache','_schedule','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','ErrorCode','_sender','createUniverCollaborationAdapter','LIVESHARE_REQUEST_HOST','_getUploadFileURL','_onRecvEvent','state$','putCollaborators','_clearRedo','unitID','rxjs/operators','getUnitType','stringify','resolve','_snapshotServerService','_exhaustRemoteChangesetQueue','liveShareNewHost','_status$','UnitEmbedded','splice','?size=','_createInitialStateImpl','/collaborator','CollaborationImageIoService','updateMember','AWAITING_WITH_PENDING','columnGroups','OTHER_CLIENTS_EDITING','RxDisposable','createSocket','CollaborationController','closeSession','IAttachmentIoService','CollaborationEntity','socket$','MemberService','filter','toString','blockRanges','onSendChangeset','_eventService','getCurrentUser','update','touchDependencies','listRoles','getImage','collabSubmitChangesetUrl','_createSession','_cfgEnableObjInherit','SlideCollaborationEntity','getUnitId','slice','_acknowledgeAwaitingIfReady','_clearScheduledTask','action','symbol','_isEchoedAwaitingChangeset','_onRemoteRetry','actions','defineProperty','_memberService','getCurrentRevOfUnit',',\x20got\x20','_replaceFileID','toLocal','roles','Inject','_init','clear','__splitChunk__','shouldCloseConn','CHANGESET_REJ','amd','pauseCollaboration','getAllMembers','sessionStatus','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_entities','result','onRemoteRetry','USERS_ENTER','_sessionStatus$','capture','expected\x20Uint8Array','_docStateChangeManagerService','changesets','memberID','getTypeOfUnitAdded$','retryConnectingInterval','firstValueFrom','\x20-\x20','_getUndoStack','_disableEditing','enableCollaboration','objects','_commandService','_getConfig','unsubscribe','_imageSourceCache','INGEST','_getSocketChannel','getGlobalObject','AwaitingState','/role','FAIL','RevisionService','resolveUnit','range','getSheetId','/fetchmissing?from=','_syncEditingCollabCursor','\x20in\x20_schedule.','getTypeOfUnitDisposed$','_socketMessageSubscription','LEAVE','_replayCachedMutations','CollaborationUIEventService','textEncoder','@univerjs/docs','2366526ZaUvld','EnsureSlideMasterPageMutation','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','ISnapshotServerService','requestParams','unitType','ICollaborationClientAdapterService','NEW_CHANGESETS','fetchMiss','RECV','_collaborationTimeoutTimer','_localeService','_snapshotService','CmdRspCode','changeset','AwaitingWithPendingState','\x20of\x20length\x20','_undoRedoService','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','prototype','univer-pro.collaboration-client.single-active-unit-service','send','_getCurrentRevision','delay','userID','socketMessageSubscription','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','m2Prime','_getDownloadEndpointURL','init','_state$','_transformRemoteChangesetByStateCache','[DataLoaderService]','post','_unlockTransition','sequenceExecute','serializeCombRequest','nonceLength','BehaviorSubject','PendingState','_createSocket','_initRequestHeader','Plugin','RETRY_CONNECTING_MAX_COUNT_KEY','_throwTelemetryCollaborationNewChangeset','enableAuthServer','getUnitStatus$','/unit/','varSizeNonce','removeMember','onTransformRemoteChangesetByIMECache','LIVESHARE_NEW_HOST','from','interceptor','UPDATE_CURSOR','HTTPService','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_singleActiveUnitService','_createHandler','DocStateChangeManagerService','COMMENT_UPDATE','OTHER_CLIENT_EDITING','_getAPIPrefix','permissionRejEvent','_HTTPService','?url=','SNAPSHOT_URL_KEY','getMember','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_socket','/universer-api/authz','getLatestCsReqIdBySid','sendHeartbeatTimer','AddSlidePageMutation','LIVESHARE_OPERATION','_clearHeartbeatTimer','AuthzIoHttpService','onStateChange','mutations','_identity','&assign=','authzUrl','SOCKET_FAILED','allowed','UNIVER_COLLABORATION_CLIENT_PLUGIN','now','BYTES_PER_ELEMENT','text-x','conflict','MergeInterceptorFactory','session.room-cnt-exceeds','/-/object/list','origin','_awaitingChangeset','executeCommand','_members$','UNISCRIPT_RUN','sessionStatus$','UniverLicensePlugin','[UniverCollaborationClientPlugin]','entries','_onRemoteACK','loadBoard','DataLoaderService','onTransformIME','HEARTBEAT','_updateStatus','baseRev','eventID','sendChangesetTimeout','_transformStack','c2Prime','pluginName','_clearCollaborationTimeoutTimer','_sendHeartbeat','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','unitLoaded$','_toggleOnline','_resendWithTimeout','{fileID}','SnapshotService','DocCollaborationEntity','operators','_waitForHeartbeatResponse','SheetCollaborationEntity','_waitCount','UniverCore','focused$','awaitingChangeset','ImageSourceType','HEARTBEAT_INTERVAL','saveSheetBlock','_transformAndApplyRemoteChangeset','pending','LocalUndoRedoService','editingUnit','attachment','_createInitialState','fetchMissingChangesets','updateCollaborator','_clearLocalCache','CollaborationUIEventId','_telemetryInfo','isInternalEditorID','_transformSelections','SHOULD_CLOSE_CONN','reqId','_onMessage','UniverDrawing','@univerjs-pro/slides','emitEvent','_sessionChannels','_getSendChangesetTimeout','ILogService','length','SUBMIT_CHANGESET_TIMEOUT','getUnit','open$','retryConnectingTimer','unknown','commentUpdate$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','appendMutation','saveAttachment','_onLocalMutation','_scheduleCompleteTimestamp','set','IUniverInstanceService','has','UniverProSlides','onMutationExecutedForCollab','IAuthzIoService','event$','_adapter','startTime','PERSON','downloadEndpointUrl','endsWith','getTime','[CollaborationUndoRedoService]','_onRemoteChangeset','_substituteUndoStack','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','get','collaboration_new_changeset','_collaborationSessionService','maxSize',',\x20got:\x20','connection\x20error','_onConnectionFailed','_commentUpdate$','enableOfflineEditing','UniverCollaborationPlugin','telemetry\x20info\x20is\x20not\x20initialized','\x0aAfter:\x20','entityInit$','_onUserLeave','COMPRESS_MUTATION_SEND','toDisposable','onlyLocal','ReplaySubject','ITransformService','originalMeta','Optional','__Key__','[CollaborationSessionService]:\x20socket\x20error','UNIVER_SHEET','getSnapshotAPIPath','\x0aCurrent:\x20','_configService','getCollabEntity$','DEFAULT_WS_SESSION_TICKET_URL','location','output','retryCount','&source=','unitInfo$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','byteLength','LIVESHARE_FETCH_OPERATIONS','timeoutTimer','/rev/','session','_submitChangeset','objectID','offline','patch','_initDependencies','_sendingTimer','SheetPermissionInitController','uniscriptRunEvent','JOIN_ROOM_FAILED','call','18bhAPGv','function','rxjs','Disposable','_transformUndoredo','onMissingChangesets','routeKey','reduce','UniverProLicense','upload','309472USnFSa','getSheetBlock','_pendingSessions','dispose','b64DecodeUnicode','loginUrlKey','compose','isView','PSEUDO_FETCH_MISSING_RESULT','cmd','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','setCfgEnableObjInherit','map','submit\x20changeset\x20error!','[OfflineState]:\x20received\x20rejection.','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','/block/','csAckEvent','/universer-api/file/{fileID}/sign-url','CompressMutationService','HEARTBEAT_TIMEOUT','collabWebSocketUrl','_hasSessionsForEndpoint','AAD','USERS_LEAVE','961059AoDdts','JOIN_ROOM_NOT_EXISTS','[CollaborationState]:\x20apply\x20error!','every','localeService','commentUpdateEvent','onload','_clearTimeoutTimer','DependentOn','univer-pro.collaboration-client-adapter-service','_unitLoaded$','SYNCED','_upload','_sessions','_roomCreated$','UNIVER_BOARD','IImageIoService','_collaborationPaused','_decreaseWaiting','encode','_getLoginPath','LocaleService','loadUnit','_roomMembers','_tryReconnect','apply','[OfflineState]:\x20received\x20changeset.','_executeRemoteChangeset','UserManagerService','[SyncedState]:\x20received\x20rejection.','floor','_transformRemoteChangesetByIMECache','data','Error\x20on\x20receiving\x20event','toggleOnline','error','Wrong\x20sbox\x20length','registerHTTPInterceptor','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','uploadFileServerUrl','SUBMIT_CHANGESET','requireSession','invalid\x20output,\x20must\x20be\x20aligned','object','_transformStateCache','collaborators','UNIVER_BASE','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_compressMutationService','URL','CollaborationStatus','onRemoteChangeset','fetching\x20missing\x20changesets\x20from\x20','session.join-failed','UNIVER_SLIDE','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_substituteRedoStack','params','code','setShowComponents','_instanceService','ConflictState','_onConflict','IConfigService','EmptyMutationInfo','FileSource','_collaborationUIEventService','CHANGESET_SHOULD_RETRY','_showConflictNotification','SnapshotServerOverHTTPService','batchAllowed','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','liveShareOperation','822518ONdhVn','ONLINE','string\x20expected','_fetchMissChangesets','_localCacheService','updateSnapshot','getRoom','_clearUndo','RemoveSlidePageMutation','_rescheduleHeartbeat','LIVESHARE_TERMINATE','_joinRoom','_changesetReqId','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','RETRY_CONNECTING_MAX_COUNT','reject','@univerjs/network','UniverNetwork','sid','values','NO_OTHER_CLIENTS_EDITING','_injector','_removeRoom','generateRandomId','_members','_onOffline','getLocalCacheKey','aes/pkcs7:\x20wrong\x20padding','onTransformState','then','take','getFocusedUnit','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_emitMembers','_changesetSessionId','saveChangeset','ws://127.0.0.1:8000/universer-api/comb/connect','method','UPDATE_PERMISSION_OBJ','getValue','_collabSessionService','endpointKey','unit','close$','updateOfflineData','ThresholdInterceptorFactory','_remoteChangesetQueue','initWorkbookPermissionChange','FETCH_MISSING','/-/object/-/batch_allowed','onSyncEditingCollabCursor','_acknowledgedAwaitingRevision','UniverInstanceType','MUTATION','isTransformMutationsWithChangesetSuccess','OfflineState','_logService','ICommandService','put','_resendTimer','DEFAULT_COLLAB_WEB_SOCKET_URL','_isPermissionRej','@univerjs/sheets','_listenToNetworkCondition','_stopTelemetryCollaborationNewChangeset','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_handler','IPermissionService','PENDING','10241448GDmmVQ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Univer','hostname','CollaborationSessionService','ISingleActiveUnitService','signUrlServerUrl','JSONX','_toggleOffline','HEARTBEAT_TIMEOUT_KEY','/universer-api/comb','subarray','src','ERROR_EXCEED_SIZE','MoveSlidePageMutation','SUCCUSS','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','responseType','addHandlerCallback','selections','error$','univer-pro.collaboration-client.network-condition.service','pipe','_type','decrypt','_transitionLocked','getUploadOptions','POST','loadSheet','push','_onUserJoin','some','crypto.getRandomValues\x20must\x20be\x20defined','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','message$','failed\x20to\x20apply\x20missed\x20changesets!','constructor','_univerInstanceService','createIdentifier','saveImage','UNIVER_DOC','refreshPermission','tagLength','includes'];_0x1845=function(){return _0x48f206;};return _0x1845();}
|
|
1
|
+
function _0x4f14(_0x1ee2d2,_0x5b92a7){_0x1ee2d2=_0x1ee2d2-0xf5;const _0x420b9a=_0x420b();let _0x4f1497=_0x420b9a[_0x1ee2d2];return _0x4f1497;}function _0x420b(){const _0x266d0d=['aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','_onRemoteRetry','getTypeOfUnitDisposed$','SheetCollaborationEntity','get','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','isSafeInteger','enableAuthServer','generateRandomId','_transformService','_sendingTimer','offline','crypto','getCollabEntity$','map','mutations','_getSignURL','key','setWaitCount','docStateChange$','[CollaborationSessionService]:\x20socket\x20error','OPTIONAL','_sheetTransformSelectionsService','MoveSlidePageMutation','socket$','IUndoRedoService','onTransformRemoteChangesetByIMECache','tagLength','CollaborationUIEventService','name','result','retryConnectingTimer','state','reqId','_config','append','CollaborationSocketService','unitInfo$','updatePermissionPoint','LocalUndoRedoService','updateMember','_remoteChangesetQueue','CommandType','_sessionStatus$','BaseCollaborationEntity','data','_unitInfo$','NOT_COLLAB','_createHandler','sendHeartbeatTimer','object','/allowed','RxDisposable','event$','shouldCloseConn','transformUndoRedo','_sessions','\x20in\x20_schedule.','ICollaborationSocketService','553732sGGhEP','SnapshotServerOverHTTPService','startTime','loadDoc','_instanceService','getImageSourceCache','@univerjs/protocol','attachment','UniverCollaborationPlugin','registerHTTPInterceptor','fetchThroughInterceptors','removeMember','loadSheet','_tryEnsureSocket','equals','sessionStatus$','startsWith','collaboration-client.auth.needGotoLoginAlert','_socketChannels','fromCollab','_onConnectionOpen','deserializeToCombResponse','CombCmd','onTransformIME','setCurrentUser','retryCount','routeKey','_onRemoteChangeset','_initDependencies','_joinRoom','duration','positive\x20integer\x20expected,\x20got\x20','has','transformMutationsWithChangeset','_tryReconnect','_unlockTransition','_waitCount','/universer-api/comb','getCurrentUser','\x20to\x20','not_collab','requireSession','uploadFileServerUrl','ILogService','crypto.getRandomValues\x20must\x20be\x20defined','IPermissionService','_isPermissionRej','Tools','UNIVER_SLIDE','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','values','rxjs/operators','updateCollaborator','EnsureSlideMasterPageMutation','submit\x20changeset\x20error!','from','varSizeNonce','toRemote','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getUnitStatus$','getSheetId','SheetPermissionInitController','_members$','_state$','disableLocalCache','_getRedoStack','MentionType','LOCAL_CACHE_INTERVAL','sequenceExecute','_collaborationUIEventService','UniverProCollaboration','_logService','DEFAULT_WS_SESSION_TICKET_URL','_memberService','HTTPRequest','params','unitId\x20is\x20not\x20found','__splitChunk__','BoardCollaborationEntity','loadSlide','_queuedRemoteChangesets','_roomCreated$','getCurrentRevOfUnit','RECV','/rev/','prototype','b64DecodeUnicode','isView','localUnitId','SheetsSelectionsService','PERSON','_compressMutationService','/collaborator','objectType','operators','/object/','reconnect','_toggleOnline','selections','cfgEnableObjInherit','_socketService','_collaborationPaused','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onMissingChangesets','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','byteLength','then','UniverSheets','catch','SUBMIT_CHANGESET_TIMEOUT','aes/pkcs7:\x20wrong\x20padding','getRoom','setShowComponents','_initMergeInterceptor','JOIN_ROOM_FAILED','22gkXhJH','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_syncEditingCollabCursor','pipe','liveShareOperation','disablePadding','createUniverCollaborationAdapter','_toggleOffline','loadBoard','iterator','JOINING','COMPRESS_MUTATION_SEND','getActiveSheet','_exhaustRemoteChangesetQueue','@univerjs/drawing','init','[CollaborationSessionService]','Wrong\x20sbox\x20length','onLocalMutation','_eventService','onTransformState','createInstance','origin','UPDATE_PERMISSION_OBJ','buffer','/fetchmissing?from=','_showConflictNotification','_substituteRedoStack','session.room-full','_applyRemoteChangeset','FAIL','@univerjs-pro/collaboration-client','HTTPService','LIVESHARE_FETCH_OPERATIONS','onSendChangeset','UniverNetwork','setCfgEnableObjInherit','resolve','status','UniverProSlides','_collaborationTimeoutTimer','merge','_executeRemoteChangeset','snapshot','_onFetchMissResult','UNIVER_DOC','_doCreateSocket','ICollaborationClientAdapterService','_upload','[PendingState]:\x20received\x20rejection.','CollaborationUIEventId','isTransformMutationsWithChangesetSuccess','_lockTransition','OTHER_CLIENT_EDITING','joinRsp','find','asObservable','file','sid','toggleOnline','6530964fPKuGI','CollaborationAttachmentIoService','UniverProtocol','min','_getSocketChannel','\x20of\x20length\x20','&assign=','roomInfos','unit','rxjs','/role','getUploadOptions','post','unitLoaded$','retryConnectingInterval','_collaborationSessionService','missingChangesets','deleteCollaborator','\x0aCurrent:\x20','/new_changes','size','_socket','hasOwnProperty','156429QznBBI','getCurrentSelections','Inject','onSyncEditingCollabCursor','\x20-\x20','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_rescheduleHeartbeat','commentUpdateEvent','ReplaySubject','UniverInstanceType','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','Rectangle','ILocalCacheService','push','encrypt','[CollaborationEntity]','_startTelemetryCollaborationNewChangeset','JOIN','ICommandService','_singleActiveUnitService','UNIVER_COLLABORATION_CLIENT_PLUGIN','unitId','amd','forEach','_revisionService','onTransformSelections','1031390ZGqope','/-/object/list','_emitMembers','assign','&source=','changeset','_resendTimeout','state$','ConflictState','AwaitingState','_pendingSessions','unitID','ImageUploadStatusType','updatePermissionObjEvent','BYTES_PER_ELEMENT','_getSendChangesetTimeout','synced','isInternalEditorID','_configService','originalMeta','@univerjs-pro/slides','saveAttachment','every','_getUploadFileURL','onTransformRemoteChangesetByStateCache','accept','UNISCRIPT_RUN','PENDING','resolveUnit','href','_acknowledgedAwaitingRevision','_telemetryService','DocStateChangeManagerService','_createSession','delay','textEncoder','range','COMPRESS_MUTATION_APPLY','ERROR_IMAGE_TYPE','ONLINE','_transformRemoteChangesetByStateCache','method','upload','downloadEndpointUrl','univer-pro.collaboration-client.network-condition.service','LIVESHARE_OPERATION','hostname','_transformUndoredo','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_disableEditing','PERMISSION_DENIED','AuthzIoHttpService','MUTATION','_replayCachedMutations','[CollaborationState]:\x20apply\x20error!','backupOfflineData','Disposable','toString','uniscriptRunEvent','blockRanges','allowed','_onUserJoin','reduce','_acknowledgeAwaitingIfReady','SetSelectionsOperation','toggleOffline','executeCommand','entityInit$','isTransformChangesetsSuccess','[PendingState]:\x20unhandled\x20univer\x20type:\x20','unitType','close','UNIVER_SHEET','saveSnapshot','_undoRedoService','&to=','/unit/','SYNCED','_changesetReqId','JOIN_ROOM_NOT_EXISTS','max','getTime','JOIN_ROOM_PERMISSION_DENIED','serializeCombRequest','Module','resourceIDs','liveShareNewHost','FileSource','fetchMiss','_transformAndApplyRemoteChangeset','subarray','INGEST','SnapshotService','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','3irRMio','_handleRemoteChangesets','socketMessageSubscription','[CollaborationUndoRedoService]','Quantity','CHANGESET_SHOULD_RETRY','_HTTPService','subscribe','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','_initCloseConn','_permissionService','getUnitId','trim','output','session.room-cnt-exceeds','_createSocket','length','base-ui.attachment-io.service','ISnapshotServerService','UniverProCollaborationClient','_getAPIPrefixPath','authzUrl','error$','_onOffline','memberID','mergeOverrideWithDependencies','_acknowledgeAwaiting','_initRequestHeader','MentionIoHttpService','socket\x20close','m2Prime','_changesetSessionId','_stopTelemetryCollaborationNewChangeset','emitEvent','clear','rev','now','/block/','createSocket','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_scheduleCollaborationTimeoutTimer','_sessionChannels','encode','revision','charCodeAt','_substituteUndoStack','HEARTBEAT_INTERVAL_KEY','toLocal','HEARTBEAT','online$','LIVESHARE_TERMINATE','set','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[OfflineState]:\x20received\x20rejection.','1.0.0-alpha.7','UUID','_clearCollaborationTimeoutTimer','enableSingleActiveInstanceLock','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','toStringTag','_localeService','IContextService','patch','batchAllowed','dispose','floor','loadOfflineData','/universer-api/snapshot/','DocCollaborationEntity','getUnit','collabWebSocketUrl','title','_onRecvEvent','CompressMutationService','FETCH_MISSING','HEARTBEAT_INTERVAL','IMentionIOService','appendMutation','onlyLocal','SUBMIT_CHANGESET','loadBase','_incrementRevisionNumber','SOCKET_FAILED','collaboration-client.config','candidateSocket','_snapshotService','univer-pro.collaboration-client.single-active-unit-service','_roomMembers','status$','SessionStatus','src','baseRev','_clearHeartbeatTimer','?size=','debug','objects','COLLABORATION_ENDPOINT_INVALID','error','SUCCUSS','[OfflineState]:\x20received\x20acknowledgement.','onMissedChangesetFetched','putCollaborators','Optional','_updateLocalCache','SHOULD_CLOSE_CONN','invalid\x20output,\x20must\x20be\x20aligned','eventID','SOCKET_FAILED_RETRY','_clearTimeoutTimer','@univerjs/sheets','socket\x20open.','changesets','_scheduleCompleteTimestamp','NO_OTHER_CLIENTS_EDITING','firstValueFrom','_initUnitPermissionChange','UniverCore','_isEchoedAwaitingChangeset','_decreaseWaiting','userID','ISocketService','toDisposable','createCollaborator','isArray','_transformStateCache','onRemoteRetry','requestParams','_updateState','MemberService','_maxTotalRetryTimeout','_hasSessionsForEndpoint','/-/object/-/batch_allowed','UserManagerService','onCommentUpdate','getImage','SyncedState','EmptyMutationInfo','URL','target','version','number\x20expected,\x20got\x20','USERS_LEAVE','CLOSE_ROOM','SheetTransformSelectionsService','focused$','onRemoteAck','LocaleService','1yUjUBm','/universer-api/file/{fileID}/sign-url','fromCharCode','disposeWithMe','getSheetBlock','getTypeOfUnitAdded$','LIVESHARE_REQUEST_HOST','update','FileId','interceptor','_getCurrentRevision','WorkbookEditablePermission','_getLoginPath','_createInitialState','list','_getUndoStack','getLocalCacheKey','_sender','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_onCombEvent','ITransformService','incrementRevOfUnit','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','closeSession','_handlerCallback','delete','onRemoteChangeset','getUnitType','type','_waitForHeartbeatResponse','permissionRejEvent','_unitLoaded$','updateSnapshot','_schedule','Failed\x20to\x20update\x20permission\x20point','nonceLength','@univerjs/telemetry','[DataLoaderService]','GLOBAL_ROOMS_CNT_EXCEEDS','addHandlerCallback','text-x','url','ImageSourceType','_removeRoom','findIndex','copyFileMeta','getCollabEntity','Plugin','_startCollaboration','UniverLicensePlugin','next','/universer-api/user/session-ticket','byteOffset','ITelemetryService','_onRemoteACK','unknown','getConfig','_listenToNetworkCondition','_init','getGlobalObject','_updateStatus','_adapter','filter','listCollaborators','call','_onConflict','539076YcxOJI','decorate','[PendingState]:\x20received\x20acknowledgement.','CollaborationEvent','@univerjs/network','columnGroups','isCompositionEnd','_commentUpdate$','_onJoinRoomEvent','_handler','_getDownloadEndpointURL','_getAPIPrefix','_transformIMECache','unsubscribe','AAD','JOIN_ROOM_FULL','collaboratorID','saveSheetBlock','collaborators','parseChangesetToProtocol','reject','_univerInstanceService','CHANGESET_REJ','socketService','IConfigService','UNIVER_BASE','constructor','shareReplay','subject','objectID','onMutationExecutedForCollab','CollaborationSession','RETRY_CONNECTING_MAX_COUNT_KEY','decrypt','ws://127.0.0.1:8000/universer-api/comb/connect','@univerjs/docs','_injector','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','getInterceptPoints','CollaborationSessionService','_awaitingChangeset','code','/universer-api/snapshot','getRandomValues','endsWith','_fetchMissChangesets','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','parseProtocolChangeset','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','string','AWAITING_WITH_PENDING','POST','_type','_localCacheService','Uint8Array','conflict','_socketMessageSubscription','UNIVER_BOARD','USERS_ENTER','close$','slice','HELLO','collaboration-client.local-cache-service','CHANGESET_ACK','_replaceFileID','infoRsp','refreshPermission','_resendTimer','save\x20fail\x20reason\x20is\x20','create','open$','ErrorCode','UniverProLicense','LIVESHARE_NEW_HOST','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','/object','stringify','1646330PobGQN','_identity','getDrawingImageAllowSize','number','_clearRedo','PERMISSION_REJ','getAllMembers','awaiting','function','InsertSheetMutation','sheets','[SyncedState]:\x20received\x20rejection.','CmdRspCode','getWorkbookSelections','c1Prime','Subject','RETRY_CONNECTING_MAX_COUNT','some','MSG_FOR_ERROR','fetch_missing','loadUnitOfRevision','defineProperty','_undoStacks','put','joinEvent','pending','newCsEvent','isTransformMutationsWithChangesetFailure','_httpService','\x0aAfter:\x20','SlideCollaborationEntity','ISingleActiveUnitService','resend','signUrlServerUrl','Univer','_entityInit$','_onUserLeave','UniverCollaborationClientPlugin','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_transitionLocked','connection\x20error','_clearUndo','_imageSourceCache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_members','workbook','CollaborationController','FETCH_MISS','NEW_CHANGESETS','parse','registerDependencies','onRemoteRej','DEFAULT_COLLAB_WEB_SOCKET_URL','add','transformChangesets','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_telemetryInfo','Injector','_sendHeartbeat','sessionStatus','getMember','UnitEmbedded','socketReady','includes','_change$','message$','pauseCollaboration','_status$','toPrimitive','_throwTelemetryCollaborationNewChangeset','_clearRetryConnectingTimer','members','action','/universer-api/stream/file/upload','__Key__','csShouldRetryEvent','FetchingMissState','exports','_docStateChangeManagerService','readAsDataURL','ERROR_IMAGE','localeService','saveChangeset','DataLoaderService','UniverTelemetry','IUniverInstanceService','stopTime','_getCtorByUniverInstanceType','OFFLINE','endpoint','RichTextEditingMutation','COMMENT_UPDATE','compose','BASE64','listRoles','_entities','createIdentifier','complete','_clearLocalCache','getValue','endpointKey','symbol','AddSlidePageMutation','CollaborationEntity','getSnapshotAPIPath','_getConfig','location','[FetchMissState]','_transformSelections','confirm','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_resendWithTimeout','fetching\x20missing\x20changesets\x20from\x20','[CollaborationSession]','cmd','touchDependencies','7geAyPJ','tables','splice','waitForRoom$','override','LEAVE','_createInitialStateImpl','UPDATE_CURSOR','DEFAULT_FILE_NAME','?url=','textRanges','fetchMissingChangesets','_snapshotServerService','_commentService','localCacheService','_state','_commandService','530600EBqpGV','dispose$','_event$','_clearScheduledTask','take','default','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','concatMap','CommentService','send','change$','AwaitingWithPendingState','/universer-api/authz','_userManagerService','CollaborativeUndoRedoService','getLatestCsReqIdBySid','actions','indexOf','snapshotServerUrl','collabSubmitChangesetUrl','_onMessage','_transformStack','x-univer-host','HEARTBEAT_TIMEOUT','session.room-permission-denied','cipher\x20output\x20not\x20supported','AWAITING','_onConnectionFailed','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','timeoutTimer','session','_transformRemoteChangesetByIMECache','reverse','_collabSessionService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getFocusedUnit','_shouldReportTelemetry','body','takeUntil','250EyoZcz','mapDocumentTypeToUniverInstanceType','_checkMissing','resolveWithBasePath','RevisionService','_redoStacks','getUnitOnRev','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','/universer-api/oidc/authpage','UnitStatus','headers','isPermissionRej','members$','_onLocalMutation','loadUnit','PSEUDO_FETCH_MISSING_RESULT','BehaviorSubject','awaiting_with_pending','transformStack\x20failed!','_pendingMutations','ThresholdInterceptorFactory',',\x20got:\x20','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','CONFLICT'];_0x420b=function(){return _0x266d0d;};return _0x420b();}(function(_0x16916a,_0xd400a4){const _0x1851e8=_0x4f14,_0x30e331=_0x16916a();while(!![]){try{const _0x530a80=-parseInt(_0x1851e8(0x138))/0x1*(parseInt(_0x1851e8(0x3a6))/0x2)+-parseInt(_0x1851e8(0x404))/0x3*(parseInt(_0x1851e8(0x2c6))/0x4)+parseInt(_0x1851e8(0x1c7))/0x5+parseInt(_0x1851e8(0x17a))/0x6*(-parseInt(_0x1851e8(0x23b))/0x7)+parseInt(_0x1851e8(0x24c))/0x8+parseInt(_0x1851e8(0x38c))/0x9*(-parseInt(_0x1851e8(0x273))/0xa)+parseInt(_0x1851e8(0x339))/0xb*(parseInt(_0x1851e8(0x375))/0xc);if(_0x530a80===_0xd400a4)break;else _0x30e331['push'](_0x30e331['shift']());}catch(_0x150b91){_0x30e331['push'](_0x30e331['shift']());}}}(_0x420b,0x4a9b2),function(_0x45f362,_0x3fb126){const _0x56bcfa=_0x4f14;typeof exports==_0x56bcfa(0x2bd)&&typeof module<'u'?_0x3fb126(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x56bcfa(0x3a2)]?define([_0x56bcfa(0x214),'@univerjs-pro/collaboration','@univerjs/core',_0x56bcfa(0x19d),_0x56bcfa(0x112),_0x56bcfa(0x37e),_0x56bcfa(0x2cc),_0x56bcfa(0x15c),_0x56bcfa(0x2f9),_0x56bcfa(0x3ba),_0x56bcfa(0x17e),'@univerjs-pro/license',_0x56bcfa(0x347)],_0x3fb126):(_0x45f362=typeof globalThis<'u'?globalThis:_0x45f362||self,_0x3fb126(_0x45f362[_0x56bcfa(0x417)]={},_0x45f362[_0x56bcfa(0x30c)],_0x45f362[_0x56bcfa(0x119)],_0x45f362['UniverDocs'],_0x45f362[_0x56bcfa(0x331)],_0x45f362[_0x56bcfa(0x37e)],_0x45f362[_0x56bcfa(0x377)],_0x45f362[_0x56bcfa(0x21b)],_0x45f362[_0x56bcfa(0x37e)][_0x56bcfa(0x324)],_0x45f362[_0x56bcfa(0x360)],_0x45f362[_0x56bcfa(0x35c)],_0x45f362[_0x56bcfa(0x1c2)],_0x45f362['UniverDrawing']));}(this,function(_0x3b1d70,_0x510a16,_0x54340d,_0x55be24,_0x2e3009,_0x501c4e,_0x3a112b,_0x15aa62,_0x572a50,_0xee09d9,_0x3c3932,_0x40a29c,_0x728a29){const _0x4afe6d=_0x4f14;Object[_0x4afe6d(0x1dc)](_0x3b1d70,Symbol[_0x4afe6d(0x440)],{'value':_0x4afe6d(0x3fa)});let _0x440361=_0x4afe6d(0xf8),_0x34589c={},_0x1ee18d=_0x4afe6d(0x19c),_0x3eabd5=0x4e20;function _0xc9b6fb(_0x5c53a7){const _0x266d2a=_0x4afe6d;return JSON['stringify'](_0x5c53a7)[_0x266d2a(0x414)];}function _0x14a224(_0x29b67b){'@babel/helpers - typeof';const _0x17d7a2=_0x4afe6d;return _0x14a224=typeof Symbol==_0x17d7a2(0x1cf)&&typeof Symbol[_0x17d7a2(0x342)]=='symbol'?function(_0x5d95af){return typeof _0x5d95af;}:function(_0x34b91a){const _0x2bee5a=_0x17d7a2;return _0x34b91a&&typeof Symbol==_0x2bee5a(0x1cf)&&_0x34b91a[_0x2bee5a(0x194)]===Symbol&&_0x34b91a!==Symbol[_0x2bee5a(0x31b)]?_0x2bee5a(0x22c):typeof _0x34b91a;},_0x14a224(_0x29b67b);}function _0xd2d388(_0x303d51,_0x244ff2){const _0x145ed2=_0x4afe6d;if(_0x14a224(_0x303d51)!=_0x145ed2(0x2bd)||!_0x303d51)return _0x303d51;var _0x40ae31=_0x303d51[Symbol[_0x145ed2(0x20b)]];if(_0x40ae31!==void 0x0){var _0x3c8039=_0x40ae31[_0x145ed2(0x178)](_0x303d51,_0x244ff2||_0x145ed2(0x251));if(_0x14a224(_0x3c8039)!=_0x145ed2(0x2bd))return _0x3c8039;throw TypeError(_0x145ed2(0x32c));}return(_0x244ff2==='string'?String:Number)(_0x303d51);}function _0x240203(_0x4d4513){const _0x19273e=_0x4afe6d;var _0x3aa7bd=_0xd2d388(_0x4d4513,'string');return _0x14a224(_0x3aa7bd)==_0x19273e(0x22c)?_0x3aa7bd:_0x3aa7bd+'';}function _0x1d93f6(_0x379bad,_0x2c3661,_0x1a0c56){const _0x34d65a=_0x4afe6d;return(_0x2c3661=_0x240203(_0x2c3661))in _0x379bad?Object[_0x34d65a(0x1dc)](_0x379bad,_0x2c3661,{'value':_0x1a0c56,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x379bad[_0x2c3661]=_0x1a0c56,_0x379bad;}let _0x441a00=function(_0x426c8f){const _0x2c9b75=_0x4afe6d;return _0x426c8f[_0x2c9b75(0x36e)]='OTHER_CLIENT_EDITING',_0x426c8f[_0x2c9b75(0x3d8)]=_0x2c9b75(0x3d8),_0x426c8f[_0x2c9b75(0x28a)]=_0x2c9b75(0x28a),_0x426c8f[_0x2c9b75(0x133)]='CLOSE_ROOM',_0x426c8f['JOIN_ROOM_FAILED']=_0x2c9b75(0x338),_0x426c8f[_0x2c9b75(0x110)]=_0x2c9b75(0x110),_0x426c8f[_0x2c9b75(0xf7)]=_0x2c9b75(0xf7),_0x426c8f[_0x2c9b75(0x333)]=_0x2c9b75(0x333),_0x426c8f;}({});var _0x18b525=class{constructor(){const _0x22f4e2=_0x4afe6d;_0x1d93f6(this,'_event$',new _0x501c4e[(_0x22f4e2(0x1d6))]()),_0x1d93f6(this,_0x22f4e2(0x2c0),this[_0x22f4e2(0x24e)][_0x22f4e2(0x371)]());}['emitEvent'](_0x458b26){const _0x30c431=_0x4afe6d;this['_event$'][_0x30c431(0x16a)](_0x458b26);}},_0x24cd08=class{constructor(){const _0x48fb67=_0x4afe6d;_0x1d93f6(this,_0x48fb67(0x181),new _0x501c4e[(_0x48fb67(0x1d6))]()),_0x1d93f6(this,'commentUpdate$',this[_0x48fb67(0x181)][_0x48fb67(0x371)]());}['onCommentUpdate'](_0x53b1cb){const _0x30b35b=_0x4afe6d;this[_0x30b35b(0x181)][_0x30b35b(0x16a)](_0x53b1cb);}};function _0x5c2cf(_0x4fc6c7,_0x9fedf9){return function(_0x20baae,_0x4c18e3){_0x9fedf9(_0x20baae,_0x4c18e3,_0x4fc6c7);};}function _0x3bbaf2(_0x232fb2,_0x5b7c0a,_0x447da4,_0x4f9356){const _0x1d50a4=_0x4afe6d;var _0x302a23=arguments[_0x1d50a4(0x414)],_0x25b5e1=_0x302a23<0x3?_0x5b7c0a:_0x4f9356===null?_0x4f9356=Object['getOwnPropertyDescriptor'](_0x5b7c0a,_0x447da4):_0x4f9356,_0x3a6e86;if(typeof Reflect==_0x1d50a4(0x2bd)&&typeof Reflect[_0x1d50a4(0x17b)]==_0x1d50a4(0x1cf))_0x25b5e1=Reflect['decorate'](_0x232fb2,_0x5b7c0a,_0x447da4,_0x4f9356);else{for(var _0x2db7b5=_0x232fb2['length']-0x1;_0x2db7b5>=0x0;_0x2db7b5--)(_0x3a6e86=_0x232fb2[_0x2db7b5])&&(_0x25b5e1=(_0x302a23<0x3?_0x3a6e86(_0x25b5e1):_0x302a23>0x3?_0x3a6e86(_0x5b7c0a,_0x447da4,_0x25b5e1):_0x3a6e86(_0x5b7c0a,_0x447da4))||_0x25b5e1);}return _0x302a23>0x3&&_0x25b5e1&&Object['defineProperty'](_0x5b7c0a,_0x447da4,_0x25b5e1),_0x25b5e1;}let _0x1afb9b=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(_0x32ff12,_0x39e06b){const _0x19a6ec=_0x4afe6d;super(),this[_0x19a6ec(0x18f)]=_0x32ff12,this[_0x19a6ec(0x259)]=_0x39e06b,_0x1d93f6(this,_0x19a6ec(0xfc),new Map()),_0x1d93f6(this,'_roomCreated$',new _0x501c4e[(_0x19a6ec(0x1d6))]()),this[_0x19a6ec(0x13b)]((0x0,_0x501c4e[_0x19a6ec(0x362)])(this['_univerInstanceService'][_0x19a6ec(0x28d)](_0x54340d[_0x19a6ec(0x395)][_0x19a6ec(0x3ee)])[_0x19a6ec(0x33c)]((0x0,_0x572a50['map'])(_0x1d6488=>_0x1d6488['getUnitId']())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x54340d[_0x19a6ec(0x395)][_0x19a6ec(0x366)])[_0x19a6ec(0x33c)]((0x0,_0x572a50[_0x19a6ec(0x299)])(_0x4cea92=>_0x4cea92[_0x19a6ec(0x40f)]())),this[_0x19a6ec(0x18f)][_0x19a6ec(0x28d)](_0x54340d[_0x19a6ec(0x395)][_0x19a6ec(0x1b3)])[_0x19a6ec(0x33c)]((0x0,_0x572a50[_0x19a6ec(0x299)])(_0x358e98=>_0x358e98['getUnitId']())),this[_0x19a6ec(0x18f)][_0x19a6ec(0x28d)](_0x54340d['UniverInstanceType']['UNIVER_BASE'])[_0x19a6ec(0x33c)]((0x0,_0x572a50[_0x19a6ec(0x299)])(_0x155920=>_0x155920[_0x19a6ec(0x40f)]())))[_0x19a6ec(0x40b)](_0x2e1736=>this['_removeRoom'](_0x2e1736)));}[_0x4afe6d(0x23e)](_0x40fcd9){const _0x2480ac=_0x4afe6d;return this[_0x2480ac(0xfc)][_0x2480ac(0x2e6)](_0x40fcd9)?(0x0,_0x501c4e['of'])(this[_0x2480ac(0xfc)][_0x2480ac(0x28f)](_0x40fcd9)):this['_roomCreated$']['pipe']((0x0,_0x572a50[_0x2480ac(0x299)])(_0x1a3179=>{const _0x1f91f1=_0x2480ac;if(_0x1a3179===_0x40fcd9)return this[_0x1f91f1(0xfc)][_0x1f91f1(0x28f)](_0x1a3179);}));}[_0x4afe6d(0x2de)](_0x2bec02){const _0x426168=_0x4afe6d;this[_0x426168(0x259)][_0x426168(0x2de)](_0x2bec02);}[_0x4afe6d(0x2ec)](){return this['_userManagerService']['getCurrentUser']();}[_0x4afe6d(0x2b3)](_0x3f534b,_0x1fe635){const _0x58b227=_0x4afe6d;let _0x40cb70=this[_0x58b227(0xfc)]['get'](_0x3f534b);_0x40cb70||(_0x40cb70=new _0x266031(),this[_0x58b227(0xfc)]['set'](_0x3f534b,_0x40cb70),this[_0x58b227(0x317)][_0x58b227(0x16a)](_0x3f534b)),_0x40cb70['updateMember'](_0x1fe635);}[_0x4afe6d(0x2d1)](_0x4bc7a6,_0x36a385){const _0x34d3aa=_0x4afe6d;let _0x5b99d6=this[_0x34d3aa(0xfc)][_0x34d3aa(0x28f)](_0x4bc7a6);_0x5b99d6&&_0x5b99d6['removeMember'](_0x36a385);}[_0x4afe6d(0x335)](_0x1d7e35){const _0x3e7435=_0x4afe6d;return this['_roomMembers'][_0x3e7435(0x28f)](_0x1d7e35);}[_0x4afe6d(0x203)](_0x5ce26c,_0x49c487){const _0x24df85=_0x4afe6d;let _0x19f810=this[_0x24df85(0xfc)][_0x24df85(0x28f)](_0x5ce26c);if(_0x19f810)return _0x19f810[_0x24df85(0x203)](_0x49c487);}[_0x4afe6d(0x163)](_0x41f7c6){const _0x271003=_0x4afe6d;let _0x76d34f=this['_roomMembers']['get'](_0x41f7c6);_0x76d34f&&(_0x76d34f['dispose'](),this[_0x271003(0xfc)]['delete'](_0x41f7c6));}[_0x4afe6d(0x445)](){const _0x19604a=_0x4afe6d;this['_roomMembers']['forEach'](_0x4448ee=>_0x4448ee['dispose']()),this[_0x19604a(0xfc)][_0x19604a(0x426)](),this[_0x19604a(0x317)][_0x19604a(0x228)]();}};_0x1afb9b=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x129)]))],_0x1afb9b);var _0x266031=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(..._0x2a95ce){const _0x4c9904=_0x4afe6d;super(..._0x2a95ce),_0x1d93f6(this,_0x4c9904(0x1f3),new Map()),_0x1d93f6(this,_0x4c9904(0x304),new _0x501c4e['BehaviorSubject'](this['_members'])),_0x1d93f6(this,_0x4c9904(0x27f),this['_members$'][_0x4c9904(0x371)]());}[_0x4afe6d(0x445)](){const _0x2f9df4=_0x4afe6d;this['_members'][_0x2f9df4(0x426)](),this[_0x2f9df4(0x304)][_0x2f9df4(0x228)]();}['updateMember'](_0x5cd6d1){const _0xade96c=_0x4afe6d;this[_0xade96c(0x1f3)][_0xade96c(0x437)](_0x5cd6d1[_0xade96c(0x41c)],_0x5cd6d1),this[_0xade96c(0x3a8)]();}['removeMember'](_0x5d3605){const _0x1ce665=_0x4afe6d;this[_0x1ce665(0x1f3)]['delete'](_0x5d3605),this['_emitMembers']();}[_0x4afe6d(0x203)](_0x9466da){const _0x23f983=_0x4afe6d;return this[_0x23f983(0x1f3)][_0x23f983(0x28f)](_0x9466da);}[_0x4afe6d(0x1cd)](){const _0x4ff32f=_0x4afe6d;return Array[_0x4ff32f(0x2fd)](this[_0x4ff32f(0x1f3)][_0x4ff32f(0x2f8)]());}[_0x4afe6d(0x3a8)](){const _0x13d9ea=_0x4afe6d;this[_0x13d9ea(0x304)][_0x13d9ea(0x16a)](this['_members']);}};function _0x390da0(_0x503e40,_0x593a63){const _0x5b7c2d=_0x4afe6d;if(_0x48341d(_0x503e40))return _0x593a63;if(_0x593a63[_0x5b7c2d(0x10f)]===_0x510a16['CollaborationEvent']['SUBMIT_CHANGESET']){var _0x316cb0;let _0x45637d=_0x2cdbfe(_0x503e40),_0x42b001=_0x593a63;return{..._0x42b001,'data':{..._0x42b001[_0x5b7c2d(0x2b8)],'unitID':_0x503e40[_0x5b7c2d(0x12f)]['unitId'],'unitType':(_0x316cb0=_0x503e40[_0x5b7c2d(0x12f)]['unitType'])==null?_0x42b001[_0x5b7c2d(0x2b8)]['unitType']:_0x316cb0,'changeset':_0x45637d[_0x5b7c2d(0x2ff)](_0x42b001[_0x5b7c2d(0x2b8)][_0x5b7c2d(0x3ab)],_0x5511c6(_0x503e40))}};}if(_0x593a63['eventID']===_0x510a16['CollaborationEvent'][_0x5b7c2d(0x44f)]){var _0x178d1b;let _0x13ea7e=_0x593a63;return{..._0x13ea7e,'data':{..._0x13ea7e['data'],'unitID':_0x503e40[_0x5b7c2d(0x12f)][_0x5b7c2d(0x3a1)],'unitType':(_0x178d1b=_0x503e40[_0x5b7c2d(0x12f)]['unitType'])==null?_0x13ea7e['data'][_0x5b7c2d(0x3ec)]:_0x178d1b}};}return _0x593a63;}function _0x32c675(_0x317c43,_0x4dbb07){const _0x15b26d=_0x4afe6d;if(_0x48341d(_0x317c43))return[_0x4dbb07];switch(_0x4dbb07[_0x15b26d(0x10f)]){case _0x510a16[_0x15b26d(0x17d)]['NEW_CHANGESETS']:return[_0x48ad66(_0x317c43,_0x4dbb07)];case _0x510a16[_0x15b26d(0x17d)][_0x15b26d(0x282)]:return[_0x3ed110(_0x317c43,_0x4dbb07)];case _0x510a16[_0x15b26d(0x17d)]['CHANGESET_SHOULD_RETRY']:return[_0x219d9e(_0x317c43,_0x4dbb07)];default:return[_0x4dbb07];}}function _0x48341d(_0x1d1666){const _0x42289=_0x4afe6d;return _0x1d1666[_0x42289(0x12f)][_0x42289(0x220)]==null&&_0x1d1666['target'][_0x42289(0x3a1)]===_0x1d1666[_0x42289(0x31e)]&&!_0x1d1666[_0x42289(0x3ab)];}function _0x48ad66(_0x43ad23,_0x2ac69f){const _0x1b58e2=_0x4afe6d;return{..._0x2ac69f,'data':(0x0,_0x510a16[_0x1b58e2(0x18d)])(_0x16fb42(_0x43ad23,(0x0,_0x510a16['parseProtocolChangeset'])(_0x2ac69f[_0x1b58e2(0x2b8)])))};}function _0x219d9e(_0x5dfe32,_0x3abd38){const _0x24d1bb=_0x4afe6d;return{..._0x3abd38,'data':_0x16fb42(_0x5dfe32,_0x3abd38[_0x24d1bb(0x2b8)])};}function _0x3ed110(_0xe2afc9,_0x1d1c8c){const _0xcce89c=_0x4afe6d;let _0x36b274=_0x1d1c8c[_0xcce89c(0x2b8)];return{..._0x1d1c8c,'data':{..._0x36b274,'changesets':_0x36b274[_0xcce89c(0x114)]['map'](_0x2c2fdc=>(0x0,_0x510a16[_0xcce89c(0x18d)])(_0x16fb42(_0xe2afc9,(0x0,_0x510a16[_0xcce89c(0x1a9)])(_0x2c2fdc))))}};}function _0x16fb42(_0x19c796,_0x528d1b){const _0x67852a=_0x4afe6d;return _0x2cdbfe(_0x19c796)[_0x67852a(0x433)](_0x528d1b,_0x5511c6(_0x19c796));}function _0x2cdbfe(_0x39ab8c){const _0xab3f01=_0x4afe6d;if(!_0x39ab8c[_0xab3f01(0x3ab)])throw Error(_0xab3f01(0x268));return _0x39ab8c['changeset'];}function _0x5511c6(_0x38cf60){const _0x189aee=_0x4afe6d;return{'localUnitId':_0x38cf60[_0x189aee(0x31e)],'unitType':_0x38cf60[_0x189aee(0x3ec)],'target':_0x38cf60[_0x189aee(0x12f)]};}let _0x3bf564=function(_0xdd10f6){const _0x59b820=_0x4afe6d;return _0xdd10f6[_0xdd10f6['IDLE']=0x0]='IDLE',_0xdd10f6[_0xdd10f6[_0x59b820(0x343)]=0x1]=_0x59b820(0x343),_0xdd10f6[_0xdd10f6[_0x59b820(0x21f)]=0x2]=_0x59b820(0x21f),_0xdd10f6[_0xdd10f6[_0x59b820(0x3cd)]=0x3]='ONLINE',_0xdd10f6;}({}),_0x1e194d={[_0x3a112b[_0x4afe6d(0x1d3)][_0x4afe6d(0x357)]]:'session.join-failed',[_0x3a112b['CmdRspCode'][_0x4afe6d(0x189)]]:_0x4afe6d(0x355),[_0x3a112b['CmdRspCode'][_0x4afe6d(0x3f5)]]:'session.room-not-exists',[_0x3a112b[_0x4afe6d(0x1d3)][_0x4afe6d(0x3f8)]]:_0x4afe6d(0x264),[_0x3a112b[_0x4afe6d(0x1d3)][_0x4afe6d(0x15e)]]:_0x4afe6d(0x412)},_0x180b79=class extends _0x54340d[_0x4afe6d(0x2bf)]{get['sessionStatus'](){const _0x9fd459=_0x4afe6d;return this[_0x9fd459(0x2b6)][_0x9fd459(0x22a)]();}constructor(_0x4cf65b,_0x422caa,_0x484d6b,_0x8868ba,_0x1e65b0,_0x17934f,_0x5cec74,_0x184d73){const _0x37e021=_0x4afe6d;super(),this[_0x37e021(0x1c8)]=_0x4cf65b,this[_0x37e021(0x30d)]=_0x484d6b,this[_0x37e021(0x3b8)]=_0x8868ba,this[_0x37e021(0x30f)]=_0x1e65b0,this[_0x37e021(0x248)]=_0x17934f,this[_0x37e021(0x30b)]=_0x5cec74,this[_0x37e021(0x3c5)]=_0x184d73,_0x1d93f6(this,_0x37e021(0x2b6),new _0x501c4e['BehaviorSubject'](0x0)),_0x1d93f6(this,_0x37e021(0x2d5),this[_0x37e021(0x2b6)][_0x37e021(0x371)]()),_0x1d93f6(this,'_event$',new _0x501c4e['Subject']()),_0x1d93f6(this,_0x37e021(0x2c0),this[_0x37e021(0x24e)][_0x37e021(0x371)]()),_0x1d93f6(this,_0x37e021(0x38a),void 0x0),_0x1d93f6(this,_0x37e021(0x1b2),void 0x0),_0x1d93f6(this,_0x37e021(0x361),void 0x0),_0x1d93f6(this,_0x37e021(0x270),!0x1),_0x1d93f6(this,'_telemetryInfo',null),this[_0x37e021(0x270)]=!!this[_0x37e021(0x3c5)],_0x422caa[_0x37e021(0x33c)]((0x0,_0x501c4e['takeUntil'])(this[_0x37e021(0x24d)]))[_0x37e021(0x40b)](_0x20d2f0=>{const _0x1d79c9=_0x37e021;if(_0x20d2f0!==void 0x0){if(this[_0x1d79c9(0x38a)]=_0x20d2f0,_0x20d2f0)this['_joinRoom'](_0x20d2f0),this['_socketMessageSubscription']=_0x20d2f0[_0x1d79c9(0x208)][_0x1d79c9(0x40b)](_0x4fd883=>{const _0x482122=_0x1d79c9;_0x4fd883[_0x482122(0x2e0)]===this[_0x482122(0x1c8)][_0x482122(0x12f)]['unitId']&&this[_0x482122(0x14b)](_0x4fd883);});else{var _0x1e7a66;this[_0x1d79c9(0x20c)](),this[_0x1d79c9(0x2b6)][_0x1d79c9(0x16a)](0x2),(_0x1e7a66=this[_0x1d79c9(0x1b2)])==null||_0x1e7a66[_0x1d79c9(0x187)](),this[_0x1d79c9(0x1b2)]=null;}}});}['getMemberID'](){const _0x165038=_0x4afe6d;var _0x36955b,_0x2574ca;return(_0x36955b=(_0x2574ca=this[_0x165038(0x38a)])==null?void 0x0:_0x2574ca[_0x165038(0x41c)])==null?null:_0x36955b;}[_0x4afe6d(0x445)](){const _0x4b608a=_0x4afe6d;super[_0x4b608a(0x445)](),this[_0x4b608a(0x3ed)](),this[_0x4b608a(0x24d)][_0x4b608a(0x16a)](),this[_0x4b608a(0x24d)][_0x4b608a(0x228)]();}[_0x4afe6d(0x3ed)](){const _0x417160=_0x4afe6d;var _0x551423;this[_0x417160(0x20c)](),(_0x551423=this[_0x417160(0x38a)])==null||_0x551423[_0x417160(0x255)]({'cmd':_0x3a112b[_0x417160(0x2dc)][_0x417160(0x240)],'data':{'roomID':this[_0x417160(0x1c8)]['target'][_0x417160(0x3a1)]}}),this[_0x417160(0x24e)][_0x417160(0x228)](),this[_0x417160(0x2b6)][_0x417160(0x228)]();}[_0x4afe6d(0x14b)](_0x23c443){const _0x58c06c=_0x4afe6d;_0x23c443['cmd']===_0x3a112b[_0x58c06c(0x2dc)][_0x58c06c(0x39d)]?this['_onJoinRoomEvent'](_0x23c443):_0x23c443[_0x58c06c(0x239)]===_0x3a112b[_0x58c06c(0x2dc)][_0x58c06c(0x319)]&&this[_0x58c06c(0x44d)](_0x23c443);}[_0x4afe6d(0x2e3)](_0x4d5347){const _0x2b5e3e=_0x4afe6d;this[_0x2b5e3e(0x2b6)][_0x2b5e3e(0x16a)](0x1),_0x4d5347[_0x2b5e3e(0x255)]({'cmd':_0x3a112b[_0x2b5e3e(0x2dc)][_0x2b5e3e(0x39d)],'routeKey':this['_identity'][_0x2b5e3e(0x12f)][_0x2b5e3e(0x3a1)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2b5e3e(0x1c8)][_0x2b5e3e(0x12f)]['unitId']}]}});}[_0x4afe6d(0x182)](_0x365752){const _0x3f1ae6=_0x4afe6d;var _0x3b7c19;if(_0x365752[_0x3f1ae6(0x1a3)]in _0x1e194d){this[_0x3f1ae6(0x30b)][_0x3f1ae6(0x425)]({'id':_0x3f1ae6(0x338),'data':_0x1e194d[_0x365752[_0x3f1ae6(0x1a3)]]}),this[_0x3f1ae6(0x2b6)]['next'](0x2);return;}this[_0x3f1ae6(0x2b6)][_0x3f1ae6(0x16a)](0x3);let _0x141b08=(_0x3b7c19=_0x365752[_0x3f1ae6(0x2b8)][_0x3f1ae6(0x37c)][this['_identity'][_0x3f1ae6(0x12f)]['unitId']])==null?void 0x0:_0x3b7c19[_0x3f1ae6(0x20e)];_0x141b08&&_0x141b08[_0x3f1ae6(0x3a3)](_0x1c6681=>this[_0x3f1ae6(0x30f)][_0x3f1ae6(0x2b3)](this['_identity'][_0x3f1ae6(0x31e)],_0x1c6681));}[_0x4afe6d(0x44d)](_0xe231cb){const _0x181cdc=_0x4afe6d;try{let _0x205091=_0x32c675(this[_0x181cdc(0x1c8)],_0xe231cb['data']);for(let _0xed6bd2 of _0x205091)switch(_0xed6bd2[_0x181cdc(0x10f)]){case _0x510a16[_0x181cdc(0x17d)][_0x181cdc(0x1b4)]:this[_0x181cdc(0x3e3)](_0xed6bd2),this[_0x181cdc(0x24e)][_0x181cdc(0x16a)](_0xed6bd2);break;case _0x510a16['CollaborationEvent'][_0x181cdc(0x132)]:this[_0x181cdc(0x1eb)](_0xed6bd2),this[_0x181cdc(0x24e)][_0x181cdc(0x16a)](_0xed6bd2);break;case _0x510a16[_0x181cdc(0x17d)]['CHANGESET_ACK']:case _0x510a16['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this[_0x181cdc(0x424)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x181cdc(0x16a)](_0xed6bd2);break;case _0x510a16['CollaborationEvent'][_0x181cdc(0x1d9)]:this[_0x181cdc(0x30d)]['error'](_0x181cdc(0x1be)+JSON[_0x181cdc(0x1c6)](_0xed6bd2)),this[_0x181cdc(0x24e)]['next'](_0xed6bd2);break;case _0x510a16[_0x181cdc(0x17d)]['COMMENT_UPDATE']:this['_commentService'][_0x181cdc(0x12a)](_0xed6bd2['data']),this[_0x181cdc(0x24e)]['next'](_0xed6bd2);break;default:this[_0x181cdc(0x24e)][_0x181cdc(0x16a)](_0xed6bd2);}}catch(_0x1b6967){this['_logService']['error'](_0x1b6967,_0xe231cb);}}[_0x4afe6d(0x3e3)](_0x17ebae){const _0x53a3e3=_0x4afe6d;this[_0x53a3e3(0x30f)]['updateMember'](this[_0x53a3e3(0x1c8)][_0x53a3e3(0x31e)],_0x17ebae['data']);}[_0x4afe6d(0x1eb)](_0x47ce51){const _0x2f208f=_0x4afe6d;this[_0x2f208f(0x30f)][_0x2f208f(0x2d1)](this['_identity']['localUnitId'],_0x47ce51[_0x2f208f(0x2b8)]['memberID']);}async[_0x4afe6d(0x255)](_0x243799,_0x1f4b51){const _0x413872=_0x4afe6d;if(this[_0x413872(0x202)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x569664=_0x390da0(this[_0x413872(0x1c8)],_0x243799);_0x569664[_0x413872(0x10f)]===_0x510a16['CollaborationEvent']['SUBMIT_CHANGESET']&&(this[_0x413872(0x42c)](),this[_0x413872(0x39c)](_0x569664)),this['_socket'][_0x413872(0x255)]({'cmd':_0x3a112b[_0x413872(0x2dc)][_0x413872(0x401)],'routeKey':this[_0x413872(0x1c8)][_0x413872(0x12f)][_0x413872(0x3a1)],'routeType':'','data':_0x569664});}catch(_0xa26a){this[_0x413872(0x30d)]['error'](_0xa26a);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2aa279=_0x4afe6d;var _0x1481a5;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x152c3c=_0x4f14;this[_0x152c3c(0x361)]=null,this[_0x152c3c(0x30b)]['emitEvent']({'id':_0x152c3c(0x333)});},(_0x1481a5=this[_0x2aa279(0x3b8)][_0x2aa279(0x170)](_0x2aa279(0x263)))==null?_0x3eabd5:_0x1481a5);}[_0x4afe6d(0x43d)](){const _0x50ef16=_0x4afe6d;this[_0x50ef16(0x361)]&&(clearTimeout(this[_0x50ef16(0x361)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x9dc1b5){const _0x791c6a=_0x4afe6d;if(!this['_shouldReportTelemetry'])return;let {data:_0x5e0379}=_0x9dc1b5,{unitID:_0x5146d3,changeset:_0x50ed65}=_0x5e0379,{mutations:_0x3c577a,type:_0x2e43ba}=_0x50ed65;this[_0x791c6a(0x1ff)]={'unitId':_0x5146d3,'type':_0x2e43ba,'startTime':performance[_0x791c6a(0x428)](),'stopTime':0x0,'duration':0x0,'size':_0xc9b6fb(_0x3c577a)};}[_0x4afe6d(0x424)](){const _0x1df2f1=_0x4afe6d;if(this['_shouldReportTelemetry']){if(!this[_0x1df2f1(0x1ff)]){this['_logService'][_0x1df2f1(0x106)](_0x1df2f1(0x238),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x1df2f1(0x1ff)][_0x1df2f1(0x21d)]=performance['now'](),this['_telemetryInfo'][_0x1df2f1(0x2e4)]=this[_0x1df2f1(0x1ff)][_0x1df2f1(0x21d)]-this['_telemetryInfo'][_0x1df2f1(0x2c8)],this[_0x1df2f1(0x3c5)]['capture']('collaboration_new_changeset',this[_0x1df2f1(0x1ff)]),this['_telemetryInfo']=null;}}[_0x4afe6d(0x20c)](){const _0x29a88a=_0x4afe6d;this[_0x29a88a(0x1ff)]=null;}};_0x180b79=_0x3bbaf2([_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x3,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x1afb9b)),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x24cd08)),_0x5c2cf(0x6,(0x0,_0x54340d['Inject'])(_0x18b525)),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x15aa62[_0x4afe6d(0x16d)]))],_0x180b79);let _0x1cadf3=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0x1b8));function _0x4accb8(_0x1b7fe1){return'unit-cache-'+_0x1b7fe1;}function _0xffae4e(_0x20a01b){const _0x56be4c=_0x4afe6d;let {unitID:_0x371b20,mutations:_0x259bb2}=_0x20a01b;return{'unitId':_0x371b20,'subUnitId':_0x259bb2[_0x56be4c(0x414)]>0x0?_0x259bb2[0x0][_0x56be4c(0x311)]['subUnitId']:null};}let _0x2269b7=class{constructor(_0x19e1eb,_0x2a0da0,_0x5f3d30){const _0xb15e80=_0x4afe6d;this['_injector']=_0x19e1eb,this[_0xb15e80(0x294)]=_0x2a0da0,this['_instanceService']=_0x5f3d30;}['transformSelections'](_0x54f262){const _0x1206af=_0x4afe6d;var _0x1b0050,_0x24e15e;let _0x3d770e=this[_0x1206af(0x19e)][_0x1206af(0x28f)](_0x2e3009[_0x1206af(0x31f)]),{unitId:_0x58b63a,subUnitId:_0x380caa}=_0xffae4e(_0x54f262),_0x4f1e31=_0x3d770e==null?void 0x0:_0x3d770e[_0x1206af(0x1d4)](_0x58b63a)[_0x1206af(0x38d)](),_0x390c0b=(_0x1b0050=this[_0x1206af(0x2ca)][_0x1206af(0x44a)](_0x58b63a))==null||(_0x1b0050=_0x1b0050[_0x1206af(0x345)]())==null?void 0x0:_0x1b0050[_0x1206af(0x302)]();if(_0x4f1e31[_0x1206af(0x414)]===0x0||!_0x58b63a||!_0x380caa)return;let _0x594626=[{'id':_0x2e3009[_0x1206af(0x3e6)]['id'],'params':{'unitId':_0x58b63a,'subUnitId':_0x390c0b,'selections':_0x54340d[_0x1206af(0x2f5)]['deepClone'](_0x4f1e31)}}],_0x24e296=this[_0x1206af(0x294)][_0x1206af(0x2e7)](_0x54f262,_0x594626);if(!(0x0,_0x510a16['isTransformMutationsWithChangesetSuccess'])(_0x24e296))throw _0x24e296['error'];let _0x1c4914=(_0x24e15e=_0x24e296[_0x1206af(0x422)][0x0])==null||(_0x24e15e=_0x24e15e[_0x1206af(0x311)])==null?void 0x0:_0x24e15e[_0x1206af(0x328)];if(Array[_0x1206af(0x120)](_0x1c4914)&&_0x1c4914[_0x1206af(0x414)]){if(_0x1c4914[_0x1206af(0x414)]===_0x594626[0x0]['params'][_0x1206af(0x328)][_0x1206af(0x414)]&&_0x1c4914[_0x1206af(0x3bc)]((_0x477671,_0x590430)=>_0x54340d[_0x1206af(0x397)][_0x1206af(0x2d4)](_0x477671[_0x1206af(0x3ca)],_0x594626[0x0][_0x1206af(0x311)][_0x1206af(0x328)][_0x590430][_0x1206af(0x3ca)])))return;this[_0x1206af(0x19e)][_0x1206af(0x28f)](_0x54340d[_0x1206af(0x39e)])[_0x1206af(0x3e8)](_0x2e3009[_0x1206af(0x3e6)]['id'],{'unitId':_0x58b63a,'subUnitId':_0x390c0b,'selections':_0x1c4914});}}};_0x2269b7=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0x2,_0x54340d['IUniverInstanceService'])],_0x2269b7);let _0x54d1b8=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0xfb)),_0x36582d=function(_0x2a23fc){const _0x15390a=_0x4afe6d;return _0x2a23fc[_0x2a23fc['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x15390a(0x116),_0x2a23fc[_0x2a23fc['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x2a23fc;}({});function _0x44acd4(_0x423728){const _0x8dad42=_0x4afe6d;var _0x1e8850;return!!((_0x1e8850=_0x423728[_0x8dad42(0x311)])!=null&&_0x1e8850[_0x8dad42(0x313)]);}let _0x5b983d=new Set([_0x2e3009[_0x4afe6d(0x1d0)]['id']]),_0x41e6c6=new Set([_0xee09d9[_0x4afe6d(0x22d)]['id'],_0xee09d9[_0x4afe6d(0x2fb)]['id'],_0xee09d9[_0x4afe6d(0x2a2)]['id'],_0xee09d9['RemoveSlidePageMutation']['id']]);function _0x3121f6(_0x5848b3,_0x4f5915=_0x5b983d){const _0x3d74b8=_0x4afe6d;let _0x24582d=[];for(let _0x507753 of _0x5848b3){if(_0x4f5915['has'](_0x507753['id'])){if(_0x24582d[_0x3d74b8(0x414)]>0x0)break;_0x24582d['push'](_0x507753);break;}if(_0x44acd4(_0x507753)){if(_0x24582d[_0x3d74b8(0x414)]>0x0)break;_0x24582d[_0x3d74b8(0x399)](_0x507753);break;}_0x24582d[_0x3d74b8(0x399)](_0x507753);}return _0x24582d;}function _0x2f6bb7(_0x470b6a,_0x4165a8,_0x46f0db,_0x3d0745,_0x1c4744){const _0x5b12c4=_0x4afe6d;var _0x4610e0,_0x33ecc6,_0x20cdaa,_0x72f3da;let _0x346eaa=_0x3121f6(_0x470b6a),_0x3c6cdd=(_0x4610e0=(_0x33ecc6=_0x1c4744[_0x5b12c4(0x2ec)]())==null?void 0x0:_0x33ecc6[_0x5b12c4(0x11c)])==null?'unknown':_0x4610e0,_0x5c6808=(_0x20cdaa=(_0x72f3da=_0x1c4744['getCurrentUser']())==null?void 0x0:_0x72f3da[_0x5b12c4(0x41c)])==null?'unknown':_0x20cdaa;return{'changeset':{'unitID':_0x4165a8,'type':(0x0,_0x510a16[_0x5b12c4(0x274)])(_0x46f0db['getUnitType'](_0x4165a8)),'baseRev':_0x3d0745[_0x5b12c4(0x318)](_0x4165a8),'revision':0x0,'userID':_0x3c6cdd,'memberID':_0x5c6808,'mutations':_0x346eaa},'pendingMutations':_0x470b6a['slice'](_0x346eaa[_0x5b12c4(0x414)])};}function _0x23b44b(_0x554704,_0x231202,_0x3ad3e0,_0x444966,_0x15683d){const _0x2d8d00=_0x4afe6d;var _0x3cda73,_0x4a95b8,_0x202638,_0x18429f;let _0x2ea39c=_0x3121f6(_0x554704,_0x41e6c6),_0x37d4a0=(_0x3cda73=(_0x4a95b8=_0x15683d[_0x2d8d00(0x2ec)]())==null?void 0x0:_0x4a95b8['userID'])==null?'unknown':_0x3cda73,_0x374872=(_0x202638=(_0x18429f=_0x15683d[_0x2d8d00(0x2ec)]())==null?void 0x0:_0x18429f[_0x2d8d00(0x41c)])==null?_0x2d8d00(0x16f):_0x202638;return{'changeset':{'unitID':_0x231202,'type':(0x0,_0x510a16[_0x2d8d00(0x274)])(_0x3ad3e0[_0x2d8d00(0x153)](_0x231202)),'baseRev':_0x444966[_0x2d8d00(0x318)](_0x231202),'revision':0x0,'userID':_0x37d4a0,'memberID':_0x374872,'mutations':_0x2ea39c},'pendingMutations':_0x554704['slice'](_0x2ea39c[_0x2d8d00(0x414)])};}function _0xa7ac75(_0x3012e6,_0x3a0e3b,_0x2f80ed,_0x5d745c,_0x2568b4){const _0x2ef660=_0x4afe6d;var _0x22ad56,_0x3bf61d,_0x194c04,_0x141935;let _0x4fa822=_0x3012e6['reduce']((_0x13f634,_0x203d27)=>{const _0x559b00=_0x4f14;let _0x5e91f0=_0x13f634[_0x13f634[_0x559b00(0x414)]-0x1],{id:_0x4bb7bc}=_0x5e91f0==null?{}:_0x5e91f0,{id:_0x4b9470,type:_0x3d89f5}=_0x203d27,_0x197261=_0x203d27[_0x559b00(0x311)];if(_0x4bb7bc&&_0x4bb7bc!==_0x4b9470)throw Error(_0x559b00(0x300)+_0x4bb7bc+_0x559b00(0x390)+_0x4b9470+'.');if(!_0x5e91f0)return[{'id':_0x4b9470,'type':_0x3d89f5,'params':{'unitId':_0x197261['unitId'],'textRanges':_0x197261[_0x559b00(0x245)],'actions':_0x197261['actions']}}];let _0x231a10=_0x5e91f0[_0x559b00(0x311)];return _0x33a2d0(_0x231a10,_0x197261)?[..._0x13f634['slice'](0x0,-0x1),{..._0x5e91f0,'id':_0x4b9470,'type':_0x3d89f5,'params':{'unitId':_0x197261[_0x559b00(0x3a1)],'textRanges':_0x197261[_0x559b00(0x245)],'actions':_0x54340d['JSONX'][_0x559b00(0x223)](_0x231a10[_0x559b00(0x25c)],_0x197261[_0x559b00(0x25c)])}}]:[..._0x13f634,{'id':_0x4b9470,'type':_0x3d89f5,'params':{'unitId':_0x197261['unitId'],'textRanges':_0x197261['textRanges'],'actions':_0x197261[_0x559b00(0x25c)]}}];},[]),_0x2acafe=(_0x22ad56=(_0x3bf61d=_0x2568b4[_0x2ef660(0x2ec)]())==null?void 0x0:_0x3bf61d[_0x2ef660(0x11c)])==null?_0x2ef660(0x16f):_0x22ad56,_0x1a2188=(_0x194c04=(_0x141935=_0x2568b4['getCurrentUser']())==null?void 0x0:_0x141935[_0x2ef660(0x41c)])==null?_0x2ef660(0x16f):_0x194c04;return{'changeset':{'unitID':_0x3a0e3b,'type':(0x0,_0x510a16[_0x2ef660(0x274)])(_0x2f80ed['getUnitType'](_0x3a0e3b)),'baseRev':_0x5d745c[_0x2ef660(0x318)](_0x3a0e3b),'revision':0x0,'userID':_0x2acafe,'memberID':_0x1a2188,'mutations':_0x4fa822},'pendingMutations':_0x3012e6[_0x2ef660(0x1b6)](_0x3012e6[_0x2ef660(0x414)])};}function _0x33a2d0(_0x48ea7b,_0x518d28){const _0x34cd85=_0x4afe6d;return!_0x53c624(_0x48ea7b)&&!_0x53c624(_0x518d28)&&_0x581b81(_0x48ea7b[_0x34cd85(0x25c)],_0x518d28[_0x34cd85(0x25c)]);}function _0x53c624(_0x5daad9){const _0x21ce1a=_0x4afe6d;return _0x5daad9[_0x21ce1a(0x180)]!==void 0x0;}function _0x581b81(_0x3662d3,_0x4441b9){return _0x4bf55e(_0x3662d3)&&_0x4bf55e(_0x4441b9)&&!_0x3acdf(_0x3662d3)&&!_0x3acdf(_0x4441b9)&&!_0x1b233f(_0x3662d3)&&!_0x1b233f(_0x4441b9);}function _0x4bf55e(_0x19d288){const _0x5aca40=_0x4afe6d;return _0x381926(_0x19d288)[_0x5aca40(0x1d8)](_0x38e491=>_0x12d07d(_0x38e491)&&_0x38e491['et']===_0x5aca40(0x160));}function _0x1b233f(_0x4c243c){const _0x177cbb=_0x4afe6d;return _0x381926(_0x4c243c)['some'](_0x406fcb=>Array[_0x177cbb(0x120)](_0x406fcb)||typeof _0x406fcb==_0x177cbb(0x1ab)||typeof _0x406fcb==_0x177cbb(0x1ca));}function _0x3acdf(_0x26f32e){const _0x268a47=_0x4afe6d;return _0x381926(_0x26f32e)['some'](_0x33318d=>!_0x12d07d(_0x33318d)||_0x33318d['et']!=='text-x'||!Array['isArray'](_0x33318d['e'])?!0x1:_0x33318d['e']['some'](_0x4da127=>!_0x12d07d(_0x4da127)||!_0x12d07d(_0x4da127[_0x268a47(0x271)])?!0x1:Object[_0x268a47(0x31b)][_0x268a47(0x38b)][_0x268a47(0x178)](_0x4da127[_0x268a47(0x271)],_0x268a47(0x23c))||Object['prototype']['hasOwnProperty'][_0x268a47(0x178)](_0x4da127[_0x268a47(0x271)],_0x268a47(0x17f))||Object[_0x268a47(0x31b)][_0x268a47(0x38b)]['call'](_0x4da127[_0x268a47(0x271)],_0x268a47(0x3e1))));}function _0x381926(_0x37d7fa){const _0x567856=_0x4afe6d;if(!Array[_0x567856(0x120)](_0x37d7fa))return[];let _0x354995=_0x37d7fa['includes'](_0x567856(0x271))?_0x37d7fa:_0x37d7fa[_0x567856(0x370)](_0x30842c=>Array[_0x567856(0x120)](_0x30842c)&&_0x30842c[_0x567856(0x206)](_0x567856(0x271)));if(!Array['isArray'](_0x354995))return[];let _0x5236c9=_0x354995['indexOf'](_0x567856(0x271));return _0x5236c9===-0x1?[]:_0x354995[_0x567856(0x1b6)](_0x5236c9+0x1);}function _0x12d07d(_0x717f7a){const _0x52bffd=_0x4afe6d;return typeof _0x717f7a==_0x52bffd(0x2bd)&&!!_0x717f7a&&!Array[_0x52bffd(0x120)](_0x717f7a);}function _0x6b50d3(_0x23ea9d,_0x5a7b6a){const _0x5672ab=_0x4afe6d;let _0x3055cf=new _0x501c4e[(_0x5672ab(0x394))](0x1);return setTimeout(()=>_0x3055cf[_0x5672ab(0x16a)](_0x5a7b6a),_0x23ea9d),_0x3055cf[_0x5672ab(0x371)]()[_0x5672ab(0x33c)]((0x0,_0x501c4e['take'])(0x1));}var _0x285c1b,_0x1f9ff2,_0x537763;let _0x37cdd1=function(_0x1bdbac){const _0x5e239b=_0x4afe6d;return _0x1bdbac[_0x5e239b(0x2ba)]=_0x5e239b(0x2ee),_0x1bdbac[_0x5e239b(0x3f3)]=_0x5e239b(0x3b6),_0x1bdbac[_0x5e239b(0x3c1)]='pending',_0x1bdbac[_0x5e239b(0x266)]='awaiting',_0x1bdbac[_0x5e239b(0x1ac)]=_0x5e239b(0x284),_0x1bdbac[_0x5e239b(0x1f6)]='fetch_missing',_0x1bdbac['CONFLICT']=_0x5e239b(0x1b1),_0x1bdbac[_0x5e239b(0x21f)]=_0x5e239b(0x296),_0x1bdbac;}({}),_0xb28743=0x4e20,_0x1d95e0=0x2bf20;var _0x52be27=class{constructor(_0x282a16,_0x442cc3,_0x516297,_0x4867b6,_0x583b8b,_0x31b884,_0x425a1f,_0xa994c5,_0x11c5d7){const _0x1f0f6d=_0x4afe6d;this['unitID']=_0x282a16,this[_0x1f0f6d(0x154)]=_0x442cc3,this['_handler']=_0x583b8b,this['_commandService']=_0x31b884,this[_0x1f0f6d(0x3f0)]=_0x425a1f,this[_0x1f0f6d(0x3a4)]=_0xa994c5,this['_localCacheService']=_0x11c5d7,_0x1d93f6(this,_0x1f0f6d(0x1a2),null),_0x1d93f6(this,_0x1f0f6d(0x286),[]),this['_awaitingChangeset']=_0x516297,this['_pendingMutations']=_0x4867b6;}['_checkMissing'](_0x2c7e98){const _0x20b314=_0x4afe6d;let _0x4f615a=this[_0x20b314(0x3a4)][_0x20b314(0x318)](this['unitID']);return _0x2c7e98[_0x20b314(0x42f)]>_0x4f615a+0x1?(this[_0x20b314(0x183)]['onMissingChangesets']({'from':_0x4f615a,'to':_0x2c7e98['revision']-0x1}),!0x0):!0x1;}[_0x4afe6d(0x3d5)](_0x48ddbc){const _0xf34092=_0x4afe6d;this[_0xf34092(0x3f0)][_0xf34092(0x2c2)](this[_0xf34092(0x3b1)],_0x48ddbc);}[_0x4afe6d(0x233)](_0x147668){const _0x482dc9=_0x4afe6d;var _0x312e00,_0x32d1ea;(_0x312e00=(_0x32d1ea=this[_0x482dc9(0x183)])[_0x482dc9(0x3a5)])==null||_0x312e00[_0x482dc9(0x178)](_0x32d1ea,_0x147668);}['_transformIMECache'](_0x42e57f){const _0x5c3bc6=_0x4afe6d;var _0x1b3389,_0x613390;return(_0x1b3389=(_0x613390=this[_0x5c3bc6(0x183)])[_0x5c3bc6(0x2dd)])==null?void 0x0:_0x1b3389[_0x5c3bc6(0x178)](_0x613390,_0x42e57f);}[_0x4afe6d(0x121)](_0x55e009){const _0x525e25=_0x4afe6d;var _0x43b402,_0x648a64;return(_0x43b402=(_0x648a64=this[_0x525e25(0x183)])[_0x525e25(0x34d)])==null?void 0x0:_0x43b402[_0x525e25(0x178)](_0x648a64,_0x55e009);}['_transformRemoteChangesetByIMECache'](_0xea3016){const _0x3c6aaf=_0x4afe6d;var _0x26b883,_0x9b27fe,_0x161024;return(_0x26b883=(_0x9b27fe=(_0x161024=this[_0x3c6aaf(0x183)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x9b27fe['call'](_0x161024,_0xea3016))==null?_0xea3016:_0x26b883;}['_transformRemoteChangesetByStateCache'](_0x5c0cfd){const _0x3bc494=_0x4afe6d;var _0x7e3a30,_0x37235b,_0x54d233;return(_0x7e3a30=(_0x37235b=(_0x54d233=this[_0x3bc494(0x183)])[_0x3bc494(0x3be)])==null?void 0x0:_0x37235b[_0x3bc494(0x178)](_0x54d233,_0x5c0cfd))==null?_0x5c0cfd:_0x7e3a30;}[_0x4afe6d(0x33b)](_0x45e77a){const _0x1a5e02=_0x4afe6d;if(this[_0x1a5e02(0x154)]===_0x54340d[_0x1a5e02(0x395)][_0x1a5e02(0x366)]){let {unitID:_0x197371,mutations:_0x29e789,memberID:_0x109a81}=_0x45e77a,_0x449b4b=_0x29e789['length']>0x0?_0x29e789[0x0]['params'][_0x1a5e02(0x245)]:[];if(Array[_0x1a5e02(0x120)](_0x449b4b)&&_0x449b4b[_0x1a5e02(0x414)]>0x0){var _0x3daaab,_0x4dd3ce;(_0x3daaab=(_0x4dd3ce=this[_0x1a5e02(0x183)])['onSyncEditingCollabCursor'])==null||_0x3daaab[_0x1a5e02(0x178)](_0x4dd3ce,{'unitID':_0x197371,'memberID':_0x109a81,'textRanges':_0x449b4b});}}}['_updateLocalCache'](){const _0x1f86ea=_0x4afe6d;var _0x2e51b2;(_0x2e51b2=this['_localCacheService'])==null||_0x2e51b2['updateOfflineData'](this[_0x1f86ea(0x3b1)],this[_0x1f86ea(0x154)],this['_awaitingChangeset'],this[_0x1f86ea(0x286)]);}[_0x4afe6d(0x142)](){const _0xd1e655=_0x4afe6d;return this[_0xd1e655(0x3a4)][_0xd1e655(0x318)](this[_0xd1e655(0x3b1)]);}[_0x4afe6d(0xf6)](){const _0x34dce9=_0x4afe6d;this['_revisionService'][_0x34dce9(0x14d)](this[_0x34dce9(0x3b1)]);}[_0x4afe6d(0x363)](_0x1be8a4){const _0x3ad121=_0x4afe6d;let _0x100e0d=this[_0x3ad121(0x26b)](_0x1be8a4);_0x100e0d=this[_0x3ad121(0x3ce)](_0x100e0d);let _0x164c96=(0x0,_0x54340d[_0x3ad121(0x30a)])(_0x100e0d['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x164c96[_0x3ad121(0x2a9)]){var _0x463cdb;throw _0x164c96[_0x3ad121(0x106)]instanceof Error?_0x164c96[_0x3ad121(0x106)]:Error((_0x463cdb=_0x164c96[_0x3ad121(0x106)])==null?_0x3ad121(0x3dc):_0x463cdb);}this[_0x3ad121(0x186)](_0x100e0d),this[_0x3ad121(0x121)](_0x100e0d),this[_0x3ad121(0x3d5)](_0x1be8a4),this[_0x3ad121(0x233)](_0x100e0d),this[_0x3ad121(0x33b)](_0x100e0d),this[_0x3ad121(0xf6)]();}};let _0x5d7f84=class extends _0x52be27{constructor(_0x313626,_0x3d5c70,_0x2538a7,_0x28f069,_0x218ffa,_0x514a4d,_0x5c1ff7,_0xddf53c,_0x14b000,_0x94937c){const _0x2f56b7=_0x4afe6d;super(_0x313626,_0x3d5c70,null,[],_0x2538a7,_0x5c1ff7,_0x514a4d,_0x28f069,_0x94937c),this['_injector']=_0x218ffa,this[_0x2f56b7(0x30d)]=_0xddf53c,this[_0x2f56b7(0x294)]=_0x14b000,this[_0x2f56b7(0x249)]=_0x94937c,_0x1d93f6(this,'status',_0x2f56b7(0x3b6));}[_0x4afe6d(0x452)](_0x4bd320){const _0x583aa4=_0x4afe6d;let _0x122923=this[_0x583aa4(0x19e)][_0x583aa4(0x34e)](_0x503465,this[_0x583aa4(0x3b1)],this['type'],[_0x4bd320],this['_handler']);return _0x122923[_0x583aa4(0x159)](),_0x122923[_0x583aa4(0x10c)](),_0x122923;}[_0x4afe6d(0x152)](_0xe21d54){const _0x36edf3=_0x4afe6d;if(this[_0x36edf3(0x275)](_0xe21d54))return this[_0x36edf3(0x19e)]['createInstance'](_0x5ac534,this['unitID'],this[_0x36edf3(0x154)],null,[],null,[_0xe21d54],this['_handler']);try{let _0x4020cb=this[_0x36edf3(0x294)][_0x36edf3(0x2e7)](_0xe21d54,[_0x510a16[_0x36edf3(0x12d)]]);if((0x0,_0x510a16[_0x36edf3(0x36c)])(_0x4020cb)){let {c1Prime:_0x390f45}=_0x4020cb;return this[_0x36edf3(0x363)](_0x390f45),this;}throw _0x4020cb[_0x36edf3(0x106)];}catch(_0x20be64){return this[_0x36edf3(0x30d)][_0x36edf3(0x106)](_0x20be64),this[_0x36edf3(0x179)](!0x1);}}[_0x4afe6d(0x179)](_0x4373c6){const _0x9dc8e5=_0x4afe6d;return this['_injector'][_0x9dc8e5(0x34e)](_0x4544f7,this[_0x9dc8e5(0x3b1)],this[_0x9dc8e5(0x154)],null,[],this[_0x9dc8e5(0x183)],_0x4373c6);}[_0x4afe6d(0x136)](_0x22d0ea){const _0x4f47f0=_0x4afe6d;if(_0x22d0ea[_0x4f47f0(0x42f)]<=this[_0x4f47f0(0x142)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x5323ca=_0x4afe6d;throw Error(_0x5323ca(0x1d2));}[_0x4afe6d(0x122)](){return this;}['toggleOffline'](){const _0x147204=_0x4afe6d;return this[_0x147204(0x19e)]['createInstance'](_0x5146de,this[_0x147204(0x3b1)],this[_0x147204(0x154)],null,[],this[_0x147204(0x183)]);}[_0x4afe6d(0x374)](){return this;}['resend'](){const _0x3dceba=_0x4afe6d;throw Error(_0x3dceba(0x439));}[_0x4afe6d(0x3fe)](){const _0x464eb0=_0x4afe6d;let _0x146100=this[_0x464eb0(0x3a4)][_0x464eb0(0x318)](this[_0x464eb0(0x3b1)]);return this['_handler'][_0x464eb0(0x32d)]({'from':_0x146100,'to':0x0}),this[_0x464eb0(0x19e)][_0x464eb0(0x34e)](_0x5ac534,this[_0x464eb0(0x3b1)],this['type'],null,[],null,[],this[_0x464eb0(0x183)]);}};_0x5d7f84=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['RevisionService'])),_0x5c2cf(0x4,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x5,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0x6,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x8,_0x510a16['ITransformService']),_0x5c2cf(0x9,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x5d7f84);let _0x503465=_0x285c1b=class extends _0x52be27{constructor(_0x54beff,_0x32d302,_0x51887b,_0x54d733,_0x23d555,_0x2bbdf4,_0x1c9c95,_0x1aa26c,_0x3ed512,_0x22e36f,_0x3b31f0,_0x4cb1b4,_0x35634d,_0x55438e){const _0x506552=_0x4afe6d;super(_0x54beff,_0x32d302,null,_0x51887b,_0x54d733,_0x3ed512,_0x35634d,_0x2bbdf4,_0x55438e),this['_injector']=_0x23d555,this['_memberService']=_0x1c9c95,this[_0x506552(0x30d)]=_0x1aa26c,this[_0x506552(0x3b8)]=_0x22e36f,this[_0x506552(0x294)]=_0x3b31f0,this[_0x506552(0x18f)]=_0x4cb1b4,_0x1d93f6(this,_0x506552(0x35f),_0x506552(0x1e0)),_0x1d93f6(this,_0x506552(0x115),null),_0x1d93f6(this,_0x506552(0x295),null);}[_0x4afe6d(0x452)](_0x3fa7f1){const _0x395347=_0x4afe6d;return this[_0x395347(0x286)][_0x395347(0x399)](_0x3fa7f1),this[_0x395347(0x10c)](),this;}[_0x4afe6d(0x152)](_0x1e2c85){const _0x2541b9=_0x4afe6d;if(this['_checkMissing'](_0x1e2c85))return this['_clearScheduledTask'](),this[_0x2541b9(0x19e)][_0x2541b9(0x34e)](_0x5ac534,this[_0x2541b9(0x3b1)],this[_0x2541b9(0x154)],null,this[_0x2541b9(0x286)],null,[_0x1e2c85],this['_handler']);try{let _0x5f1298=this['_transformService']['transformMutationsWithChangeset'](_0x1e2c85,this[_0x2541b9(0x286)]);if((0x0,_0x510a16[_0x2541b9(0x36c)])(_0x5f1298)){let {c1Prime:_0x457169,m2Prime:_0x57d831}=_0x5f1298;this[_0x2541b9(0x363)](_0x457169);let _0x49ec30=this[_0x2541b9(0x19e)][_0x2541b9(0x34e)](_0x285c1b,this[_0x2541b9(0x3b1)],this[_0x2541b9(0x154)],_0x57d831,this[_0x2541b9(0x183)]);this['_clearScheduledTask']();let _0x35ffc9=new Date()[_0x2541b9(0x3f7)](),_0x649e3=this['_scheduleCompleteTimestamp']?Math[_0x2541b9(0x3f6)](this[_0x2541b9(0x115)]-_0x35ffc9,0x0):this[_0x2541b9(0x3b5)]();return _0x49ec30[_0x2541b9(0x159)](_0x649e3),_0x49ec30;}throw _0x5f1298[_0x2541b9(0x106)];}catch(_0x53acac){return this[_0x2541b9(0x30d)][_0x2541b9(0x106)](_0x53acac),this[_0x2541b9(0x179)](!0x1);}}[_0x4afe6d(0x136)](_0x2e56bd){const _0x10b2a3=_0x4afe6d;if(_0x2e56bd[_0x10b2a3(0x42f)]<=this[_0x10b2a3(0x142)]())return this;throw Error(_0x10b2a3(0x17c));}[_0x4afe6d(0x1fa)](){const _0x2f7883=_0x4afe6d;throw Error(_0x2f7883(0x36a));}[_0x4afe6d(0x122)](){return this;}['toggleOffline'](){const _0x11922c=_0x4afe6d;return this[_0x11922c(0x24f)](),this['_injector']['createInstance'](_0x5146de,this[_0x11922c(0x3b1)],this[_0x11922c(0x154)],null,this['_pendingMutations'],this[_0x11922c(0x183)]);}[_0x4afe6d(0x374)](){return this;}[_0x4afe6d(0x159)](_0x266b6c){const _0x3cb0e2=_0x4afe6d;let _0x42011d=_0x266b6c==null?this[_0x3cb0e2(0x3b5)]():_0x266b6c;this['_scheduleCompleteTimestamp']=new Date()[_0x3cb0e2(0x3f7)]()+_0x42011d,this[_0x3cb0e2(0x295)]=setTimeout(()=>{const _0xa68530=_0x3cb0e2;this[_0xa68530(0x24f)]();let _0xee0234=null;switch(this[_0xa68530(0x154)]){case _0x54340d[_0xa68530(0x395)][_0xa68530(0x3ee)]:_0xee0234=_0x2f6bb7(this['_pendingMutations'],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this['_revisionService'],this['_memberService']);break;case _0x54340d[_0xa68530(0x395)][_0xa68530(0x366)]:_0xee0234=this['_pendingMutations'][_0xa68530(0x3bc)](_0x16f984=>_0x16f984['id']===_0x55be24[_0xa68530(0x221)]['id'])?_0xa7ac75(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this[_0xa68530(0x30f)]):_0x2f6bb7(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this['_univerInstanceService'],this[_0xa68530(0x3a4)],this['_memberService']);break;case _0x54340d[_0xa68530(0x395)][_0xa68530(0x2f6)]:_0xee0234=_0x23b44b(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this['_memberService']);break;case _0x54340d[_0xa68530(0x395)]['UNIVER_BOARD']:_0xee0234=_0x2f6bb7(this['_pendingMutations'],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this[_0xa68530(0x30f)]);break;case _0x54340d[_0xa68530(0x395)][_0xa68530(0x193)]:_0xee0234=_0x2f6bb7(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this[_0xa68530(0x30f)]);break;default:throw Error(_0xa68530(0x3eb)+this['type']+_0xa68530(0x2c4));}let {changeset:_0x5023af,pendingMutations:_0x5eae95}=_0xee0234;this[_0xa68530(0x183)][_0xa68530(0x35b)](_0x5023af);let _0x776ba=_0x5eae95[_0xa68530(0x414)]?this['_injector'][_0xa68530(0x34e)](_0x34253f,this[_0xa68530(0x3b1)],this[_0xa68530(0x154)],_0x5023af,_0x5eae95,this['_handler'],void 0x0):this[_0xa68530(0x19e)]['createInstance'](_0x4b8fc9,this[_0xa68530(0x3b1)],this[_0xa68530(0x154)],_0x5023af,this['_handler']);_0x776ba[_0xa68530(0x10c)](),this[_0xa68530(0x183)]['onStateChange'](this,_0x776ba);},_0x42011d);}[_0x4afe6d(0x3b5)](){const _0x41c007=_0x4afe6d;var _0x230d2a;let _0x272c5a=this['_configService'][_0x41c007(0x170)](_0x440361);return(_0x230d2a=_0x272c5a==null?void 0x0:_0x272c5a['sendChangesetTimeout'])==null?0x7d0:_0x230d2a;}[_0x4afe6d(0x1e7)](){const _0x4cab66=_0x4afe6d;throw Error(_0x4cab66(0x14a));}['_clearScheduledTask'](){const _0xd1b61d=_0x4afe6d;this[_0xd1b61d(0x295)]!=null&&(clearTimeout(this[_0xd1b61d(0x295)]),this[_0xd1b61d(0x295)]=null);}['_onConflict'](_0x2a0a8e){const _0x41f7f6=_0x4afe6d;return this[_0x41f7f6(0x24f)](),this[_0x41f7f6(0x19e)][_0x41f7f6(0x34e)](_0x4544f7,this['unitID'],this['type'],null,this[_0x41f7f6(0x286)],this['_handler'],_0x2a0a8e);}};_0x503465=_0x285c1b=_0x3bbaf2([_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x1afb9b)),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x8,_0x54340d['ICommandService']),_0x5c2cf(0x9,_0x54340d['IConfigService']),_0x5c2cf(0xa,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0xc,_0x54340d['IUndoRedoService']),_0x5c2cf(0xd,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x503465);let _0x4b8fc9=_0x1f9ff2=class extends _0x52be27{constructor(_0x587f7b,_0x413713,_0x8226c2,_0x173a9b,_0x2caa9c,_0x4ae761,_0x2ab88a,_0x5ec449,_0x583581,_0x25a56c,_0x5d01de){const _0x4220bd=_0x4afe6d;super(_0x587f7b,_0x413713,_0x8226c2,[],_0x173a9b,_0x2ab88a,_0x25a56c,_0x4ae761,_0x5d01de),this[_0x4220bd(0x19e)]=_0x2caa9c,this[_0x4220bd(0x30d)]=_0x5ec449,this[_0x4220bd(0x294)]=_0x583581,_0x1d93f6(this,_0x4220bd(0x35f),_0x4220bd(0x1ce)),_0x1d93f6(this,_0x4220bd(0x3ac),0x0),_0x1d93f6(this,_0x4220bd(0x126),0x0),_0x1d93f6(this,_0x4220bd(0x1bd),void 0x0),_0x1d93f6(this,'_sender',void 0x0);}[_0x4afe6d(0x452)](_0x31be19){const _0x38fbc0=_0x4afe6d;this[_0x38fbc0(0x24f)]();let _0x40f219=this[_0x38fbc0(0x19e)]['createInstance'](_0x34253f,this[_0x38fbc0(0x3b1)],this[_0x38fbc0(0x154)],this[_0x38fbc0(0x1a2)],[_0x31be19],this[_0x38fbc0(0x183)],this[_0x38fbc0(0x1bd)]);return _0x40f219[_0x38fbc0(0x10c)](),_0x40f219;}[_0x4afe6d(0x152)](_0x29a148){const _0x4d4390=_0x4afe6d;if(this[_0x4d4390(0x275)](_0x29a148))return this[_0x4d4390(0x24f)](),this[_0x4d4390(0x19e)][_0x4d4390(0x34e)](_0x5ac534,this[_0x4d4390(0x3b1)],this[_0x4d4390(0x154)],this[_0x4d4390(0x1a2)],[],null,[_0x29a148],this['_handler']);try{let _0x1b7953=this[_0x4d4390(0x294)]['transformChangesets']([_0x29a148],[this['_awaitingChangeset']],!0x1);if((0x0,_0x510a16['isTransformChangesetsSuccess'])(_0x1b7953)){let {c1Prime:_0x510510,c2Prime:_0x3e794b}=_0x1b7953;this[_0x4d4390(0x363)](_0x510510[0x0]),_0x3e794b[0x0][_0x4d4390(0x100)]=this['_getCurrentRevision'](),this[_0x4d4390(0x24f)]();let _0x2d7120=this[_0x4d4390(0x19e)][_0x4d4390(0x34e)](_0x1f9ff2,this['unitID'],this['type'],_0x3e794b[0x0],this[_0x4d4390(0x183)]);return _0x2d7120['_updateLocalCache'](),_0x2d7120;}throw _0x1b7953[_0x4d4390(0x106)];}catch(_0x48babb){return this[_0x4d4390(0x30d)][_0x4d4390(0x106)](_0x48babb),this[_0x4d4390(0x179)](!0x1);}}[_0x4afe6d(0x136)](_0x14fa3d){const _0x31794a=_0x4afe6d;this['_clearScheduledTask']();let _0x3e8211=this[_0x31794a(0x3a4)][_0x31794a(0x318)](this[_0x31794a(0x3b1)]);if(_0x14fa3d[_0x31794a(0x42f)]<=_0x3e8211)return this;if(this[_0x31794a(0x275)](_0x14fa3d))return this[_0x31794a(0x19e)][_0x31794a(0x34e)](_0x5ac534,this[_0x31794a(0x3b1)],this[_0x31794a(0x154)],this[_0x31794a(0x1a2)],[],_0x14fa3d[_0x31794a(0x42f)],[],this[_0x31794a(0x183)]);this[_0x31794a(0xf6)]();let _0x320c9a=this[_0x31794a(0x19e)][_0x31794a(0x34e)](_0x5d7f84,this[_0x31794a(0x3b1)],this[_0x31794a(0x154)],this['_handler']);return _0x320c9a[_0x31794a(0x10c)](),_0x320c9a;}[_0x4afe6d(0x1fa)](_0xa84426){const _0x1d9610=_0x4afe6d;return this[_0x1d9610(0x179)](!!(_0xa84426!=null&&_0xa84426[_0x1d9610(0x27e)]));}['onRemoteRetry'](_0x3a24eb){const _0x4c32d9=_0x4afe6d;return this[_0x4c32d9(0x126)]>_0x1d95e0?this[_0x4c32d9(0x3e7)]():(this['_resendTimer']=_0x6b50d3(this[_0x4c32d9(0x3ac)],{'timeout':this[_0x4c32d9(0x3ac)],'reqId':_0x3a24eb[_0x4c32d9(0x2ac)]}),this[_0x4c32d9(0x149)]=this['_resendTimer'][_0x4c32d9(0x40b)](({reqId:_0x530ddc,timeout:_0x53c102})=>{const _0x15ad5f=_0x4c32d9;this[_0x15ad5f(0x236)](_0x530ddc,_0x53c102);}),this);}[_0x4afe6d(0x3e7)](){const _0x37a033=_0x4afe6d;return this[_0x37a033(0x24f)](),this['_injector']['createInstance'](_0x5146de,this[_0x37a033(0x3b1)],this['type'],this[_0x37a033(0x1a2)],[],this[_0x37a033(0x183)]);}[_0x4afe6d(0x374)](){return this;}['resend'](){const _0x13b5d2=_0x4afe6d;this[_0x13b5d2(0x183)][_0x13b5d2(0x35b)](this[_0x13b5d2(0x1a2)]);}[_0x4afe6d(0x179)](_0x3638c4){const _0x35851c=_0x4afe6d;return this['_clearScheduledTask'](),this[_0x35851c(0x19e)][_0x35851c(0x34e)](_0x4544f7,this['unitID'],this[_0x35851c(0x154)],this['_awaitingChangeset'],[],this[_0x35851c(0x183)],_0x3638c4);}[_0x4afe6d(0x236)](_0x35ea2c,_0x47dfe7){const _0x4dff89=_0x4afe6d;var _0x25c422;_0x35ea2c===((_0x25c422=this['_awaitingChangeset'])==null?void 0x0:_0x25c422[_0x4dff89(0x2ac)])&&(this[_0x4dff89(0x1e7)](),this[_0x4dff89(0x3ac)]=_0x47dfe7===0x0?0x3e8:Math[_0x4dff89(0x378)](_0x47dfe7*0x2,_0xb28743),this[_0x4dff89(0x126)]+=this[_0x4dff89(0x3ac)]);}[_0x4afe6d(0x24f)](){const _0x50e266=_0x4afe6d;var _0xf2c38a;(_0xf2c38a=this[_0x50e266(0x149)])==null||_0xf2c38a[_0x50e266(0x187)](),this[_0x50e266(0x3ac)]=0x0,this[_0x50e266(0x126)]=0x0;}};_0x4b8fc9=_0x1f9ff2=_0x3bbaf2([_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x5,(0x0,_0x54340d['Inject'])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x6,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x8,_0x510a16['ITransformService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0xa,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x4b8fc9);let _0x34253f=_0x537763=class extends _0x52be27{constructor(_0x41a0fd,_0xd2210a,_0xf6b264,_0x95ceeb,_0x12cf0b,_0x25e75e,_0x4726b5,_0x2cf23d,_0x488932,_0x2d19b9,_0x4efdc9,_0x30de24,_0x2cf960){const _0x17dc33=_0x4afe6d;super(_0x41a0fd,_0xd2210a,_0xf6b264,_0x95ceeb,_0x12cf0b,_0x488932,_0x30de24,_0x2cf23d,_0x2cf960),this[_0x17dc33(0x19e)]=_0x4726b5,this[_0x17dc33(0x30d)]=_0x2d19b9,this[_0x17dc33(0x294)]=_0x4efdc9,this[_0x17dc33(0x249)]=_0x2cf960,_0x1d93f6(this,'status',_0x17dc33(0x284)),_0x1d93f6(this,_0x17dc33(0x3ac),0x0),_0x1d93f6(this,'_maxTotalRetryTimeout',0x0),_0x1d93f6(this,_0x17dc33(0x1bd),void 0x0),_0x1d93f6(this,'_sender',void 0x0),_0x25e75e&&(this['_resendTimer']=_0x25e75e,this[_0x17dc33(0x149)]=this['_resendTimer'][_0x17dc33(0x40b)](({reqId:_0x4717b3,timeout:_0x41e252})=>{const _0x1dd951=_0x17dc33;this[_0x1dd951(0x236)](_0x4717b3,_0x41e252);}));}['appendMutation'](_0x5276d9){const _0x3b556b=_0x4afe6d;return this[_0x3b556b(0x286)][_0x3b556b(0x399)](_0x5276d9),this;}[_0x4afe6d(0x152)](_0x1a22b1){const _0x523deb=_0x4afe6d;if(this['_checkMissing'](_0x1a22b1))return this[_0x523deb(0x24f)](),this['_injector'][_0x523deb(0x34e)](_0x5ac534,this['unitID'],this[_0x523deb(0x154)],this['_awaitingChangeset'],this[_0x523deb(0x286)],null,[_0x1a22b1],this['_handler']);try{let _0xc61ecd=this[_0x523deb(0x294)][_0x523deb(0x1fd)]([_0x1a22b1],[this['_awaitingChangeset']],!0x1);if((0x0,_0x510a16[_0x523deb(0x3ea)])(_0xc61ecd)){let {c1Prime:_0x9fa5e2,c2Prime:_0x509fb3}=_0xc61ecd,_0x3e666a=this[_0x523deb(0x294)]['transformMutationsWithChangeset'](_0x9fa5e2[0x0],this[_0x523deb(0x286)]);if((0x0,_0x510a16[_0x523deb(0x36c)])(_0x3e666a)){let {c1Prime:_0x669d09,m2Prime:_0xe5271c}=_0x3e666a;return this[_0x523deb(0x363)](_0x669d09),_0x509fb3[0x0][_0x523deb(0x100)]=this[_0x523deb(0x142)](),this[_0x523deb(0x24f)](),this['_injector'][_0x523deb(0x34e)](_0x537763,this[_0x523deb(0x3b1)],this['type'],_0x509fb3[0x0],_0xe5271c,this[_0x523deb(0x183)],void 0x0);}throw _0x3e666a[_0x523deb(0x106)];}throw _0xc61ecd[_0x523deb(0x106)];}catch(_0x39c53a){return this['_logService'][_0x523deb(0x106)](_0x39c53a),this[_0x523deb(0x179)](!0x1);}}[_0x4afe6d(0x136)](_0x58e292){const _0xf1d884=_0x4afe6d;this[_0xf1d884(0x24f)]();let _0x3b1f6b=this[_0xf1d884(0x142)]();if(_0x58e292[_0xf1d884(0x42f)]<=_0x3b1f6b)return this;if(this[_0xf1d884(0x275)](_0x58e292))return this[_0xf1d884(0x19e)][_0xf1d884(0x34e)](_0x5ac534,this['unitID'],this[_0xf1d884(0x154)],this[_0xf1d884(0x1a2)],this['_pendingMutations'],_0x58e292[_0xf1d884(0x42f)],[],this[_0xf1d884(0x183)]);this[_0xf1d884(0xf6)]();let _0x4dbf0c=this[_0xf1d884(0x19e)][_0xf1d884(0x34e)](_0x503465,this[_0xf1d884(0x3b1)],this[_0xf1d884(0x154)],this[_0xf1d884(0x286)],this['_handler']);return _0x4dbf0c[_0xf1d884(0x159)](),_0x4dbf0c['_updateLocalCache'](),_0x4dbf0c;}[_0x4afe6d(0x1fa)](_0x322548){return this['_onConflict'](!!(_0x322548!=null&&_0x322548['isPermissionRej']));}[_0x4afe6d(0x122)](_0x17b1e8){const _0x24aad0=_0x4afe6d;return this['_maxTotalRetryTimeout']>_0x1d95e0?this[_0x24aad0(0x3e7)]():(this[_0x24aad0(0x1bd)]=_0x6b50d3(this['_resendTimeout'],{'timeout':this[_0x24aad0(0x3ac)],'reqId':_0x17b1e8[_0x24aad0(0x2ac)]}),this[_0x24aad0(0x149)]=this[_0x24aad0(0x1bd)][_0x24aad0(0x40b)](({reqId:_0x1d2393,timeout:_0xde3058})=>{const _0x1014b0=_0x24aad0;this[_0x1014b0(0x236)](_0x1d2393,_0xde3058);}),this);}['toggleOffline'](){const _0x5af144=_0x4afe6d;return this[_0x5af144(0x24f)](),this[_0x5af144(0x19e)][_0x5af144(0x34e)](_0x5146de,this[_0x5af144(0x3b1)],this[_0x5af144(0x154)],this[_0x5af144(0x1a2)],this[_0x5af144(0x286)],this[_0x5af144(0x183)]);}[_0x4afe6d(0x374)](){return this;}[_0x4afe6d(0x1e7)](){const _0x14fe13=_0x4afe6d;this[_0x14fe13(0x183)][_0x14fe13(0x35b)](this['_awaitingChangeset']);}['_onConflict'](_0x1e0d75){const _0x1f36bc=_0x4afe6d;return this[_0x1f36bc(0x24f)](),this[_0x1f36bc(0x19e)][_0x1f36bc(0x34e)](_0x4544f7,this[_0x1f36bc(0x3b1)],this[_0x1f36bc(0x154)],null,this[_0x1f36bc(0x286)],this['_handler'],_0x1e0d75);}[_0x4afe6d(0x236)](_0x52db25,_0x1f27c3){const _0x430020=_0x4afe6d;var _0x44ab21;_0x52db25===((_0x44ab21=this[_0x430020(0x1a2)])==null?void 0x0:_0x44ab21[_0x430020(0x2ac)])&&(this['resend'](),this[_0x430020(0x3ac)]=_0x1f27c3===0x0?0x3e8:Math['min'](_0x1f27c3*0x2,_0xb28743),this['_maxTotalRetryTimeout']+=this[_0x430020(0x3ac)]);}['_clearScheduledTask'](){const _0x29e1aa=_0x4afe6d;var _0x5553fb;(_0x5553fb=this['_sender'])==null||_0x5553fb['unsubscribe'](),this[_0x29e1aa(0x3ac)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x34253f=_0x537763=_0x3bbaf2([_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['Injector'])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['RevisionService'])),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x9,_0x54340d['ILogService']),_0x5c2cf(0xa,_0x510a16['ITransformService']),_0x5c2cf(0xb,_0x54340d['IUndoRedoService']),_0x5c2cf(0xc,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x34253f);let _0x4544f7=class extends _0x52be27{constructor(_0x362630,_0x10a1b1,_0x32723e,_0x23019f,_0x253e08,_0x5f2799=!0x1,_0x2aa092,_0x48a691,_0x200e0f,_0x20c534,_0x564d4b,_0x323ac6,_0x392ae4){const _0x24d74c=_0x4afe6d;super(_0x362630,_0x10a1b1,_0x32723e,_0x23019f,_0x253e08,_0x48a691,_0x200e0f,_0x20c534,_0x392ae4),this[_0x24d74c(0x2f4)]=_0x5f2799,this[_0x24d74c(0x40e)]=_0x2aa092,this[_0x24d74c(0x441)]=_0x564d4b,this[_0x24d74c(0x30b)]=_0x323ac6,this[_0x24d74c(0x249)]=_0x392ae4,_0x1d93f6(this,_0x24d74c(0x35f),'conflict'),this[_0x24d74c(0x353)](),this['_clearLocalCache'](),this[_0x24d74c(0x3d7)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4afe6d(0x136)](){return this;}[_0x4afe6d(0x1fa)](){return this;}[_0x4afe6d(0x122)](){return this;}[_0x4afe6d(0x3e7)](){return this;}[_0x4afe6d(0x374)](){return this;}[_0x4afe6d(0x1e7)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4afe6d(0x229)](){const _0x14b46d=_0x4afe6d;var _0x50f74a,_0x44f92f,_0x15d789;(_0x50f74a=this['_localCacheService'])==null||(_0x44f92f=_0x50f74a[_0x14b46d(0x3dd)])==null||(_0x44f92f=_0x44f92f['call'](_0x50f74a,this[_0x14b46d(0x3b1)],_0x14b46d(0x1b1)))==null||_0x44f92f['catch'](()=>void 0x0),(_0x15d789=this[_0x14b46d(0x1af)])==null||_0x15d789['updateOfflineData'](this['unitID'],this['type'],null,[]);}[_0x4afe6d(0x353)](){const _0x46fed4=_0x4afe6d;this[_0x46fed4(0x2f4)]?this['_collaborationUIEventService'][_0x46fed4(0x425)]({'id':'PERMISSION_DENIED'}):this['_collaborationUIEventService'][_0x46fed4(0x425)]({'id':'CONFLICT'});}[_0x4afe6d(0x3d7)](){const _0xd662c5=_0x4afe6d;this[_0xd662c5(0x40e)]['updatePermissionPoint'](new _0x2e3009[(_0xd662c5(0x143))](this['unitID'])['id'],!0x1);}};_0x4544f7=_0x3bbaf2([_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x2f3)])),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0x9,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0xa,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0xb,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x4544f7);let _0x5146de=class extends _0x52be27{constructor(_0x220df1,_0xea9d14,_0x10e41d,_0x24c66f,_0x2cfe2d,_0x1124ed,_0x58569b,_0xbc0706,_0x6b59c4,_0x52e85a){const _0x2d6431=_0x4afe6d;super(_0x220df1,_0xea9d14,_0x10e41d,_0x24c66f,_0x2cfe2d,_0xbc0706,_0x6b59c4,_0x58569b,_0x52e85a),this[_0x2d6431(0x19e)]=_0x1124ed,_0x1d93f6(this,_0x2d6431(0x35f),_0x2d6431(0x296));}[_0x4afe6d(0x452)](_0x4b43cf){const _0x4f8939=_0x4afe6d;return this['_pendingMutations'][_0x4f8939(0x399)](_0x4b43cf),this['_updateLocalCache'](),this;}[_0x4afe6d(0x152)](_0x15acdf){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x4afe6d(0x136)](){const _0x181f7e=_0x4afe6d;throw Error(_0x181f7e(0x108));}[_0x4afe6d(0x1fa)](){const _0x184f20=_0x4afe6d;throw Error(_0x184f20(0x43a));}['onRemoteRetry'](){return this;}[_0x4afe6d(0x3e7)](){return this;}[_0x4afe6d(0x374)](){const _0x54fc69=_0x4afe6d;let {_injector:_0xc7e7e9,_pendingMutations:_0x2dc94b,_awaitingChangeset:_0xe20854,unitID:_0x540489,_handler:_0x4e70ec,type:_0x3dcfab}=this,_0x300308=_0x1ae03f(_0xc7e7e9,_0x540489,_0x3dcfab,_0xe20854,_0x2dc94b,_0x4e70ec);return _0x300308 instanceof _0x503465?_0x300308[_0x54fc69(0x159)]():(_0x300308 instanceof _0x34253f||_0x300308 instanceof _0x4b8fc9)&&_0x300308[_0x54fc69(0x1e7)](),_0x300308;}[_0x4afe6d(0x1e7)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x5146de=_0x3bbaf2([_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['Injector'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x8,_0x54340d['IUndoRedoService']),_0x5c2cf(0x9,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x5146de);let _0x5ac534=class extends _0x52be27{constructor(_0x59051d,_0xb0d5e2,_0x4b0f35,_0x40cc32,_0x2a6baf,_0x4da4d0,_0x19457c,_0x57e762,_0x528850,_0x310d34,_0x4a06b9,_0x1ec9a8,_0x108c2a,_0x1a2b48){const _0x3868ff=_0x4afe6d;super(_0x59051d,_0xb0d5e2,_0x4b0f35,_0x40cc32,_0x19457c,_0x4a06b9,_0x1ec9a8,_0x528850,_0x1a2b48),this[_0x3868ff(0x3c4)]=_0x2a6baf,this[_0x3868ff(0x316)]=_0x4da4d0,this[_0x3868ff(0x19e)]=_0x57e762,this['_logService']=_0x310d34,this['_transformService']=_0x108c2a,this[_0x3868ff(0x249)]=_0x1a2b48,_0x1d93f6(this,_0x3868ff(0x35f),_0x3868ff(0x1da));}[_0x4afe6d(0x109)](_0x5a811f){const _0x3f6e0f=_0x4afe6d;try{if(this[_0x3f6e0f(0x405)](_0x5a811f)[_0x3f6e0f(0x385)])throw Error(_0x3f6e0f(0x33a));if(this[_0x3f6e0f(0x405)]([...this[_0x3f6e0f(0x316)]]['sort']((_0x34fdb8,_0x5c98ca)=>_0x34fdb8['revision']-_0x5c98ca['revision']))[_0x3f6e0f(0x385)])return this[_0x3f6e0f(0x316)]=[],this[_0x3f6e0f(0x10c)](),this[_0x3f6e0f(0x183)]['onMissingChangesets']({'from':this[_0x3f6e0f(0x142)](),'to':0x0}),this;let _0xb8cecc=this[_0x3f6e0f(0x1a2)],_0x54743b=this[_0x3f6e0f(0x286)],_0x4d31c2;if(_0xb8cecc&&_0x54743b['length']!==0x0)_0x4d31c2=this[_0x3f6e0f(0x19e)][_0x3f6e0f(0x34e)](_0x34253f,this['unitID'],this[_0x3f6e0f(0x154)],_0xb8cecc,_0x54743b,this[_0x3f6e0f(0x183)],void 0x0);else{if(_0xb8cecc&&_0x54743b[_0x3f6e0f(0x414)]===0x0)_0xb8cecc[_0x3f6e0f(0x100)]=this[_0x3f6e0f(0x142)](),_0x4d31c2=this[_0x3f6e0f(0x19e)]['createInstance'](_0x4b8fc9,this[_0x3f6e0f(0x3b1)],this[_0x3f6e0f(0x154)],_0xb8cecc,this['_handler']);else{if(_0x54743b[_0x3f6e0f(0x414)]!==0x0){let _0x1ef592=this[_0x3f6e0f(0x19e)]['createInstance'](_0x503465,this['unitID'],this[_0x3f6e0f(0x154)],_0x54743b,this['_handler']);_0x1ef592[_0x3f6e0f(0x159)](),_0x4d31c2=_0x1ef592;}else _0x4d31c2=this[_0x3f6e0f(0x19e)][_0x3f6e0f(0x34e)](_0x5d7f84,this[_0x3f6e0f(0x3b1)],this[_0x3f6e0f(0x154)],this[_0x3f6e0f(0x183)]);}}return _0x4d31c2['_updateLocalCache'](),_0x4d31c2;}catch(_0x117faf){return this[_0x3f6e0f(0x30d)][_0x3f6e0f(0x106)](_0x3f6e0f(0x232),'failed\x20to\x20apply\x20missed\x20changesets!',_0x117faf),this[_0x3f6e0f(0x19e)][_0x3f6e0f(0x34e)](_0x4544f7,this['unitID'],this[_0x3f6e0f(0x154)],this['_awaitingChangeset'],this[_0x3f6e0f(0x286)],this[_0x3f6e0f(0x183)],!0x1);}}[_0x4afe6d(0x405)](_0x5bf641){const _0x568463=_0x4afe6d;this[_0x568463(0x3e5)]();for(let _0xe60d5b=0x0;_0xe60d5b<_0x5bf641['length'];_0xe60d5b++){let _0x3520bf=_0x5bf641[_0xe60d5b],_0x40b953=this[_0x568463(0x142)]();if(!(_0x3520bf[_0x568463(0x42f)]<=_0x40b953)){if(_0x3520bf[_0x568463(0x42f)]>_0x40b953+0x1)return{'missingChangesets':!0x0};if(this[_0x568463(0x11a)](_0x3520bf)){this[_0x568463(0x41e)]();continue;}this[_0x568463(0x3ff)](_0x3520bf),this[_0x568463(0x3e5)]();}}return{'missingChangesets':!0x1};}[_0x4afe6d(0x3ff)](_0x1894de){const _0x19af52=_0x4afe6d;let _0x1604b0=_0x1894de,_0x1008a1=this[_0x19af52(0x1a2)];if(_0x1008a1){let _0x43bcdc=this[_0x19af52(0x294)]['transformChangesets']([_0x1894de],[_0x1008a1],!0x1);if(!(0x0,_0x510a16[_0x19af52(0x3ea)])(_0x43bcdc))throw _0x43bcdc[_0x19af52(0x106)];_0x1604b0=_0x43bcdc[_0x19af52(0x1d5)][0x0],_0x1008a1=_0x43bcdc['c2Prime'][0x0];}let _0x101661=this[_0x19af52(0x286)];if(_0x101661[_0x19af52(0x414)]){let _0x18e043=this[_0x19af52(0x294)]['transformMutationsWithChangeset'](_0x1604b0,_0x101661);if(!(0x0,_0x510a16[_0x19af52(0x36c)])(_0x18e043))throw _0x18e043['error'];_0x1604b0=_0x18e043['c1Prime'],_0x101661=_0x18e043[_0x19af52(0x422)];}this['_executeRemoteChangeset'](_0x1604b0),_0x1008a1&&(_0x1008a1[_0x19af52(0x100)]=this['_getCurrentRevision']()),this[_0x19af52(0x1a2)]=_0x1008a1,this['_pendingMutations']=_0x101661;}[_0x4afe6d(0x3e5)](){const _0x3d720c=_0x4afe6d;if(!this[_0x3d720c(0x1a2)]||this[_0x3d720c(0x3c4)]==null)return;let _0x4fcd8e=this[_0x3d720c(0x142)]();if(this[_0x3d720c(0x3c4)]<=_0x4fcd8e)throw Error(_0x3d720c(0x1c4)+this[_0x3d720c(0x3c4)]+'.');this['_acknowledgedAwaitingRevision']===_0x4fcd8e+0x1&&this['_acknowledgeAwaiting']();}[_0x4afe6d(0x41e)](){const _0x13c561=_0x4afe6d;this[_0x13c561(0xf6)](),this[_0x13c561(0x1a2)]=null,this[_0x13c561(0x3c4)]=null;}[_0x4afe6d(0x11a)](_0xe9c4bb){const _0x3c02f2=_0x4afe6d;let _0x365118=this[_0x3c02f2(0x1a2)];return!_0x365118||!_0x365118[_0x3c02f2(0x373)]||_0x365118[_0x3c02f2(0x2ac)]===null||_0x365118['reqId']===void 0x0?!0x1:_0xe9c4bb['unitID']===_0x365118[_0x3c02f2(0x3b1)]&&_0xe9c4bb[_0x3c02f2(0x373)]===_0x365118[_0x3c02f2(0x373)]&&_0xe9c4bb[_0x3c02f2(0x2ac)]===_0x365118[_0x3c02f2(0x2ac)];}[_0x4afe6d(0x1e7)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4afe6d(0x452)](_0x1ff8fb){const _0xe48567=_0x4afe6d;return this[_0xe48567(0x286)][_0xe48567(0x399)](_0x1ff8fb),this;}['onRemoteChangeset'](_0x58106b){const _0x98e155=_0x4afe6d;return this['_queuedRemoteChangesets'][_0x98e155(0x399)](_0x58106b),this;}['onRemoteAck'](_0x3956f8){const _0x243a33=_0x4afe6d;if(this[_0x243a33(0x1a2)]){let _0x55b801=this[_0x243a33(0x142)]();return _0x3956f8['revision']<=_0x55b801||(_0x55b801+0x1===_0x3956f8[_0x243a33(0x42f)]?(this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this['_acknowledgedAwaitingRevision']=null):this['_acknowledgedAwaitingRevision']=_0x3956f8[_0x243a33(0x42f)]),this;}if(_0x3956f8[_0x243a33(0x42f)]<=this[_0x243a33(0x142)]())return this;throw Error(_0x243a33(0x32e));}[_0x4afe6d(0x1fa)](_0x5d2ba0){const _0xbaa5b2=_0x4afe6d;return this[_0xbaa5b2(0x179)](!!(_0x5d2ba0!=null&&_0x5d2ba0[_0xbaa5b2(0x27e)]));}[_0x4afe6d(0x122)](){return this;}['toggleOffline'](){const _0x1a6e5e=_0x4afe6d;return this[_0x1a6e5e(0x19e)][_0x1a6e5e(0x34e)](_0x5146de,this[_0x1a6e5e(0x3b1)],this['type'],this[_0x1a6e5e(0x1a2)],this['_pendingMutations'],this[_0x1a6e5e(0x183)]);}['toggleOnline'](){return this;}[_0x4afe6d(0x179)](_0x165440){const _0x17a589=_0x4afe6d;return this['_injector'][_0x17a589(0x34e)](_0x4544f7,this[_0x17a589(0x3b1)],this['type'],this[_0x17a589(0x1a2)],this[_0x17a589(0x286)],this['_handler'],_0x165440);}};_0x5ac534=_0x3bbaf2([_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x8,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0xc,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x5ac534);function _0x1ae03f(_0x2a6474,_0x16a96d,_0x26fed1,_0x20a4ed,_0x5d53f9,_0x963494){const _0x20e16a=_0x4afe6d;return _0x20a4ed&&_0x5d53f9[_0x20e16a(0x414)]?_0x2a6474[_0x20e16a(0x34e)](_0x34253f,_0x16a96d,_0x26fed1,_0x20a4ed,_0x5d53f9,_0x963494,void 0x0):_0x20a4ed?_0x2a6474[_0x20e16a(0x34e)](_0x4b8fc9,_0x16a96d,_0x26fed1,_0x20a4ed,_0x963494):_0x5d53f9['length']?_0x2a6474['createInstance'](_0x503465,_0x16a96d,_0x26fed1,_0x5d53f9,_0x963494):_0x2a6474[_0x20e16a(0x34e)](_0x5d7f84,_0x16a96d,_0x26fed1,_0x963494);}let _0x558136=class extends _0x54340d['RxDisposable']{get[_0x4afe6d(0x2ab)](){const _0xe69809=_0x4afe6d;return this[_0xe69809(0x24a)];}constructor(_0x1e8a02,_0x340baa,_0x14cb7e,_0x3814f0,_0x2b0df9,_0x36e782,_0x5f42be,_0x5b3c45,_0x259364,_0x3f0a7c,_0x52e5c9,_0x26f0ff,_0x2859a5,_0x30884a){const _0x578ed2=_0x4afe6d;super(),this['unitID']=_0x1e8a02,this[_0x578ed2(0x26a)]=_0x340baa,this[_0x578ed2(0x1ae)]=_0x14cb7e,this[_0x578ed2(0x19e)]=_0x3814f0,this['_compressMutationService']=_0x2b0df9,this['_localeService']=_0x36e782,this['_revisionService']=_0x5f42be,this[_0x578ed2(0x34c)]=_0x5b3c45,this[_0x578ed2(0x18f)]=_0x259364,this[_0x578ed2(0x30d)]=_0x3f0a7c,this[_0x578ed2(0x24b)]=_0x52e5c9,this[_0x578ed2(0x40e)]=_0x26f0ff,this[_0x578ed2(0x39f)]=_0x2859a5,this[_0x578ed2(0x1af)]=_0x30884a,_0x1d93f6(this,'_state$',new _0x501c4e['BehaviorSubject'](null)),_0x1d93f6(this,_0x578ed2(0x3ad),this[_0x578ed2(0x305)][_0x578ed2(0x371)]()),_0x1d93f6(this,_0x578ed2(0x24a),void 0x0),_0x1d93f6(this,_0x578ed2(0x32b),!0x1),_0x1d93f6(this,'_changesetSessionId',''),_0x1d93f6(this,'_changesetReqId',0x0),_0x1d93f6(this,_0x578ed2(0xfd),this['state$'][_0x578ed2(0x33c)]((0x0,_0x501c4e[_0x578ed2(0x299)])(_0x3e2c78=>_0x3e2c78?_0x3e2c78[_0x578ed2(0x35f)]:'offline'),(0x0,_0x501c4e[_0x578ed2(0x195)])({'bufferSize':0x1,'refCount':!0x0}))),_0x1d93f6(this,_0x578ed2(0x1ee),!0x1),_0x1d93f6(this,_0x578ed2(0x2b4),[]);}async['init'](){const _0x4169cf=_0x4afe6d;if(this[_0x4169cf(0x2ab)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x4afe6d(0x209)](){const _0x2e7cdc=_0x4afe6d;return this[_0x2e7cdc(0x32b)]=!0x0,(0x0,_0x54340d[_0x2e7cdc(0x11e)])(()=>{const _0x2178d5=_0x2e7cdc;this[_0x2178d5(0x32b)]=!0x1,this[_0x2178d5(0x346)]();});}[_0x4afe6d(0x34b)](_0x523f05){const _0x4bac56=_0x4afe6d;this[_0x4bac56(0x280)](_0x523f05);}[_0x4afe6d(0x124)](_0x39a750){const _0x284240=_0x4afe6d;this['_state']=_0x39a750,this['_state$'][_0x284240(0x16a)](_0x39a750);}async[_0x4afe6d(0x172)](){const _0x347330=_0x4afe6d;if(this[_0x347330(0x124)](await this[_0x347330(0x145)]()),this[_0x347330(0x39f)]){var _0x3b2179;(_0x3b2179=this[_0x347330(0x39f)])==null||_0x3b2179['editingUnit'](this[_0x347330(0x3b1)]),this[_0x347330(0x13b)](this['_singleActiveUnitService'][_0x347330(0x301)](this[_0x347330(0x3b1)])[_0x347330(0x40b)](_0x4913c2=>{const _0x397c07=_0x347330;this[_0x397c07(0x30d)][_0x397c07(0x103)](_0x397c07(0x39b),'editing\x20status\x20changed\x20to',_0x4913c2),_0x4913c2===0x1?(this[_0x397c07(0x34c)][_0x397c07(0x425)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x397c07(0x40e)][_0x397c07(0x2b1)](new _0x2e3009[(_0x397c07(0x143))](this[_0x397c07(0x3b1)])['id'],!0x1),this[_0x397c07(0x40e)][_0x397c07(0x336)](!0x1)):(this['_permissionService'][_0x397c07(0x2b1)](new _0x2e3009[(_0x397c07(0x143))](this[_0x397c07(0x3b1)])['id'],!0x0),this[_0x397c07(0x40e)][_0x397c07(0x336)](!0x0));}));}let _0x537126=!0x1;return this['disposeWithMe'](this['session']['sessionStatus$'][_0x347330(0x40b)](_0xcb326d=>{const _0x2ad3c4=_0x347330;_0xcb326d===0x3?this[_0x2ad3c4(0x327)](_0x537126):_0xcb326d===0x2&&(_0x537126=!0x0,this[_0x2ad3c4(0x340)]());})),this[_0x347330(0x13b)](this[_0x347330(0x26a)][_0x347330(0x2c0)]['subscribe'](_0x27cc65=>{const _0x1d360a=_0x347330;try{switch(_0x27cc65[_0x1d360a(0x10f)]){case _0x510a16['CollaborationEvent'][_0x1d360a(0x1f7)]:this['_onRemoteChangeset']((0x0,_0x510a16[_0x1d360a(0x1a9)])(_0x27cc65[_0x1d360a(0x2b8)]));break;case _0x510a16[_0x1d360a(0x17d)][_0x1d360a(0x1b9)]:this['_onRemoteACK'](_0x27cc65['data']);break;case _0x510a16['CollaborationEvent'][_0x1d360a(0x190)]:this['_onRemoteRejected']();break;case _0x510a16['CollaborationEvent'][_0x1d360a(0x409)]:this[_0x1d360a(0x28c)](_0x27cc65[_0x1d360a(0x2b8)]);break;case _0x510a16['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:this[_0x1d360a(0x365)](_0x27cc65[_0x1d360a(0x2b8)][_0x1d360a(0x114)][_0x1d360a(0x299)](_0x7da5f4=>(0x0,_0x510a16[_0x1d360a(0x1a9)])(_0x7da5f4)));break;case _0x510a16['CollaborationEvent']['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x510a16[_0x1d360a(0x17d)]['UNISCRIPT_RUN']:break;}}catch(_0x540a2e){throw console[_0x1d360a(0x106)]('Error\x20on\x20receiving\x20event',_0x540a2e),_0x540a2e;}})),this[_0x347330(0x24a)];}['_unlockTransition'](){const _0x303aee=_0x4afe6d;this[_0x303aee(0x1ee)]=!0x1;}[_0x4afe6d(0x36d)](){const _0xbf3ba4=_0x4afe6d;if(this[_0xbf3ba4(0x1ee)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0xbf3ba4(0x1ee)]=!0x0;}[_0x4afe6d(0x280)](_0x1497c6){const _0x122c95=_0x4afe6d;this[_0x122c95(0x36d)](),this['_updateState'](this[_0x122c95(0x24a)]['appendMutation'](_0x1497c6)),this[_0x122c95(0x2e9)]();}[_0x4afe6d(0x2e1)](_0x3ceb46){const _0x47e9e6=_0x4afe6d;if(!(_0x3ceb46[_0x47e9e6(0x42f)]<=this[_0x47e9e6(0x3a4)][_0x47e9e6(0x318)](this[_0x47e9e6(0x3b1)]))){if(this[_0x47e9e6(0x32b)]){this['_remoteChangesetQueue'][_0x47e9e6(0x399)](_0x3ceb46);return;}this[_0x47e9e6(0x356)](_0x3ceb46);}}[_0x4afe6d(0x346)](){const _0x17a6ba=_0x4afe6d;this[_0x17a6ba(0x2b4)]['forEach'](_0x35e1eb=>this['_applyRemoteChangeset'](_0x35e1eb)),this[_0x17a6ba(0x2b4)]=[];}[_0x4afe6d(0x356)](_0x22fbad){const _0x412aab=_0x4afe6d;let _0x2cd076=this['_compressMutationService'][_0x412aab(0x141)][_0x412aab(0x2d0)](this[_0x412aab(0x321)]['interceptor'][_0x412aab(0x1a0)]()[_0x412aab(0x3cb)])(_0x22fbad[_0x412aab(0x29a)],null)||_0x22fbad[_0x412aab(0x29a)],_0x5d0ddb={..._0x22fbad,'mutations':_0x2cd076};this[_0x412aab(0x36d)](),this[_0x412aab(0x124)](this['_state'][_0x412aab(0x152)](_0x5d0ddb)),this[_0x412aab(0x2e9)]();}[_0x4afe6d(0x16e)](_0x17b44c){const _0x7405dc=_0x4afe6d;this['_lockTransition'](),this[_0x7405dc(0x124)](this[_0x7405dc(0x24a)][_0x7405dc(0x136)](_0x17b44c)),this[_0x7405dc(0x2e9)]();}['_onRemoteRejected'](_0x3e31c0){const _0x5a1544=_0x4afe6d;this[_0x5a1544(0x36d)](),this['_updateState'](this['_state'][_0x5a1544(0x1fa)](_0x3e31c0)),this['_unlockTransition']();}[_0x4afe6d(0x28c)](_0x141699){const _0x4998d1=_0x4afe6d;this[_0x4998d1(0x36d)](),this['_updateState'](this[_0x4998d1(0x24a)][_0x4998d1(0x122)](_0x141699)),this[_0x4998d1(0x2e9)]();}['_onFetchMissResult'](_0x1a5858){const _0x5adeb7=_0x4afe6d;if(!(this[_0x5adeb7(0x24a)]instanceof _0x5ac534))throw TypeError(_0x5adeb7(0x1a8));let _0x4b3709=_0x1a5858['map'](_0x4bda4f=>{const _0x1cb47d=_0x5adeb7;let _0x152fef=this['_compressMutationService'][_0x1cb47d(0x141)][_0x1cb47d(0x2d0)](this['_compressMutationService'][_0x1cb47d(0x141)]['getInterceptPoints']()[_0x1cb47d(0x3cb)])(_0x4bda4f[_0x1cb47d(0x29a)],null)||_0x4bda4f[_0x1cb47d(0x29a)];return{..._0x4bda4f,'mutations':_0x152fef};});this[_0x5adeb7(0x36d)](),this['_updateState'](this[_0x5adeb7(0x24a)][_0x5adeb7(0x109)](_0x4b3709)),this['_unlockTransition']();}['_toggleOffline'](){const _0x52e3e1=_0x4afe6d;this[_0x52e3e1(0x36d)](),this[_0x52e3e1(0x124)](this[_0x52e3e1(0x24a)]['toggleOffline']()),this['_unlockTransition']();}[_0x4afe6d(0x327)](_0x3b5c73=!0x1){const _0x53d98b=_0x4afe6d;this['_lockTransition'](),this['_updateState'](this['_state'][_0x53d98b(0x374)]()),this['_unlockTransition']();let _0x37672d=this[_0x53d98b(0x24a)];_0x3b5c73&&_0x37672d instanceof _0x5d7f84&&(this[_0x53d98b(0x36d)](),this['_updateState'](_0x37672d['fetchMiss']()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x400a9f=>{const _0x239df5=_0x4f14;this['session']['sessionStatus$'][_0x239df5(0x33c)]((0x0,_0x501c4e[_0x239df5(0x250)])(0x1))['subscribe'](async _0x5a9b70=>{const _0x3c9407=_0x239df5;_0x400a9f(await this[_0x3c9407(0x241)](_0x5a9b70===0x3));});});}[_0x4afe6d(0x2bb)](){const _0x6cdc6b=_0x4afe6d;let _0x5a002e=this[_0x6cdc6b(0x3b1)];return{'onStateChange':(_0x3906cd,_0x1ed505)=>{const _0x1c2c3e=_0x6cdc6b;if(_0x3906cd!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x3906cd['status']+_0x1c2c3e(0x1e4)+_0x1ed505[_0x1c2c3e(0x35f)]+_0x1c2c3e(0x387)+this[_0x1c2c3e(0x24a)][_0x1c2c3e(0x35f)]);this['_updateState'](_0x1ed505);},'onSendChangeset':_0x2f464b=>{const _0x4210b9=_0x6cdc6b;_0x2f464b[_0x4210b9(0x373)]||(_0x2f464b['sid']=this['_changesetSessionId'],_0x2f464b[_0x4210b9(0x2ac)]=++this[_0x4210b9(0x3f4)]);let _0x585d90={'eventID':_0x510a16[_0x4210b9(0x17d)][_0x4210b9(0x454)],'data':{'unitID':_0x2f464b[_0x4210b9(0x3b1)],'unitType':this[_0x4210b9(0x1ae)],'changeset':_0x2f464b,'memberID':this[_0x4210b9(0x26a)]['getMemberID']()}};this['session'][_0x4210b9(0x255)](_0x585d90,this[_0x4210b9(0x3b1)]);},'onMissingChangesets':({from:_0x422f1f,to:_0x528080})=>{const _0x4342fc=_0x6cdc6b;this['_logService'][_0x4342fc(0x103)](_0x4342fc(0x39b),_0x4342fc(0x237)+_0x422f1f+_0x4342fc(0x2ed)+_0x528080);let _0x3f4eba={'eventID':_0x510a16[_0x4342fc(0x17d)][_0x4342fc(0x44f)],'data':{'unitID':_0x5a002e,'unitType':this[_0x4342fc(0x1ae)],'from':_0x422f1f,'to':_0x528080}};this['session'][_0x4342fc(0x255)](_0x3f4eba,this[_0x4342fc(0x3b1)]);}};}async[_0x4afe6d(0x241)](_0x5bb270){const _0xa74150=_0x4afe6d;var _0x18b381,_0x429d92,_0x573998;let _0x4841d2=await((_0x18b381=this[_0xa74150(0x1af)])==null?void 0x0:_0x18b381[_0xa74150(0x447)](this['unitID'])),_0x58a909=(_0x429d92=_0x4841d2==null?void 0x0:_0x4841d2[_0xa74150(0x29a)])==null?[]:_0x429d92,_0x1668e3=(_0x573998=_0x4841d2==null?void 0x0:_0x4841d2['awaitingChangeset'])==null?null:_0x573998,_0x50526c=!!(_0x1668e3!=null&&_0x1668e3['sid'])&&!!(_0x1668e3!=null&&_0x1668e3[_0xa74150(0x2ac)]);this[_0xa74150(0x423)]=_0x50526c?_0x1668e3[_0xa74150(0x373)]:(0x0,_0x510a16['uuidv4'])(),this[_0xa74150(0x3f4)]=_0x50526c?_0x1668e3[_0xa74150(0x2ac)]:0x0;let _0x13f51c=this['unitID'];try{this[_0xa74150(0x3db)](_0x1668e3,_0x58a909);}catch(_0x2de25e){this[_0xa74150(0x30d)][_0xa74150(0x106)](_0x2de25e);}let _0x2c981f=this[_0xa74150(0x2bb)]();if(_0x5bb270){let _0x34e962=_0x1ae03f(this[_0xa74150(0x19e)],_0x13f51c,this[_0xa74150(0x1ae)],_0x1668e3,_0x58a909,_0x2c981f);return _0x34e962 instanceof _0x503465?_0x34e962[_0xa74150(0x159)]():(_0x34e962 instanceof _0x34253f||_0x34e962 instanceof _0x4b8fc9)&&_0x34e962[_0xa74150(0x1e7)](),_0x34e962;}return this['_injector'][_0xa74150(0x34e)](_0x5146de,_0x13f51c,this[_0xa74150(0x1ae)],_0x1668e3,_0x58a909,_0x2c981f);}[_0x4afe6d(0x3db)](_0x15152b,_0x4c5603){const _0x55e3f0=_0x4afe6d;var _0x1871b8,_0x533d96;let _0x3399f5=this['_compressMutationService'][_0x55e3f0(0x141)][_0x55e3f0(0x2d0)](this[_0x55e3f0(0x321)][_0x55e3f0(0x141)]['getInterceptPoints']()[_0x55e3f0(0x3cb)]);(_0x1871b8=_0x3399f5((_0x15152b==null?void 0x0:_0x15152b[_0x55e3f0(0x29a)])||[],null))==null||_0x1871b8['forEach'](_0x451712=>this[_0x55e3f0(0x24b)][_0x55e3f0(0x3e8)](_0x451712['id'],_0x451712[_0x55e3f0(0x311)])),(_0x533d96=_0x3399f5(_0x4c5603||[],null))==null||_0x533d96[_0x55e3f0(0x3a3)](_0x4eb89e=>this[_0x55e3f0(0x24b)]['executeCommand'](_0x4eb89e['id'],_0x4eb89e[_0x55e3f0(0x311)]));}};_0x558136=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d['Inject'])(_0x18b525)),_0x5c2cf(0x8,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x2f3)]),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x558136);let _0x4e92fa=class extends _0x558136{constructor(_0x26245f,_0x51bf51,_0x4cb124,_0x4bb3ed,_0x1f80d3,_0x2abd41,_0x5f4e02,_0x4b23b2,_0x1c0239,_0x578c06,_0x337d50,_0x4c556d,_0x2424ca,_0x2d3916,_0x3f79c3){const _0x238dc0=_0x4afe6d;super(_0x26245f,_0x4cb124,_0x51bf51,_0x4bb3ed,_0x1f80d3,_0x2abd41,_0x5f4e02,_0x4b23b2,_0x1c0239,_0x578c06,_0x337d50,_0x4c556d,_0x2d3916,_0x3f79c3),this[_0x238dc0(0x3b1)]=_0x26245f,this[_0x238dc0(0x154)]=_0x51bf51,this[_0x238dc0(0x215)]=_0x2424ca,_0x1d93f6(this,_0x238dc0(0x150),null);}[_0x4afe6d(0x15f)](_0x5b0885){const _0x391847=_0x4afe6d;this[_0x391847(0x150)]=_0x5b0885;}['dispose'](){const _0x4cd165=_0x4afe6d;this[_0x4cd165(0x150)]=null,super['dispose']();}[_0x4afe6d(0x2bb)](){const _0x5da029=_0x4afe6d;let _0x309c79=super[_0x5da029(0x2bb)]();return _0x309c79['onTransformIME']=_0x5e6321=>{const _0x1578fc=_0x5da029;var _0x332d7b,_0x287efb;return(_0x332d7b=this[_0x1578fc(0x150)])==null||(_0x287efb=_0x332d7b[_0x1578fc(0x2dd)])==null?void 0x0:_0x287efb['call'](_0x332d7b,_0x5e6321);},_0x309c79[_0x5da029(0x34d)]=_0x72837f=>{const _0x2b8c86=_0x5da029;var _0x2af6a1,_0x5985cc;return(_0x2af6a1=this[_0x2b8c86(0x150)])==null||(_0x5985cc=_0x2af6a1[_0x2b8c86(0x34d)])==null?void 0x0:_0x5985cc[_0x2b8c86(0x178)](_0x2af6a1,_0x72837f);},_0x309c79[_0x5da029(0x3a5)]=_0x4036a7=>{const _0x1f9707=_0x5da029;var _0x4f19ab,_0x34c9b5;return(_0x4f19ab=this['_handlerCallback'])==null||(_0x34c9b5=_0x4f19ab[_0x1f9707(0x3a5)])==null?void 0x0:_0x34c9b5[_0x1f9707(0x178)](_0x4f19ab,_0x4036a7);},_0x309c79['onSyncEditingCollabCursor']=_0x10dd2c=>{const _0x5a6dc0=_0x5da029;var _0x1ace54,_0x370f98;return(_0x1ace54=this[_0x5a6dc0(0x150)])==null||(_0x370f98=_0x1ace54[_0x5a6dc0(0x38f)])==null?void 0x0:_0x370f98[_0x5a6dc0(0x178)](_0x1ace54,_0x10dd2c);},_0x309c79[_0x5da029(0x2a5)]=_0x2dcbe5=>{const _0x4e1558=_0x5da029;var _0x16a892,_0x18eecd,_0x51f0a7;return(_0x16a892=(_0x18eecd=this[_0x4e1558(0x150)])==null||(_0x51f0a7=_0x18eecd[_0x4e1558(0x2a5)])==null?void 0x0:_0x51f0a7[_0x4e1558(0x178)](_0x18eecd,_0x2dcbe5))==null?_0x2dcbe5:_0x16a892;},_0x309c79[_0x5da029(0x3be)]=_0x4e0580=>{const _0xe1ce0a=_0x5da029;var _0x4087b7,_0xe093db,_0x4f1b07;return(_0x4087b7=(_0xe093db=this[_0xe1ce0a(0x150)])==null||(_0x4f1b07=_0xe093db[_0xe1ce0a(0x3be)])==null?void 0x0:_0x4f1b07['call'](_0xe093db,_0x4e0580))==null?_0x4e0580:_0x4087b7;},_0x309c79;}async[_0x4afe6d(0x172)](){const _0x3942dc=_0x4afe6d;let _0xa40c12=await super[_0x3942dc(0x172)]();return this[_0x3942dc(0x13b)](this[_0x3942dc(0x215)][_0x3942dc(0x29e)][_0x3942dc(0x40b)](_0x2ee6be=>{const _0x917880=_0x3942dc;if(_0x2ee6be==null||_0x2ee6be[_0x917880(0x3a1)]!==this[_0x917880(0x3b1)])return;let {commandId:_0x1f87cb,redoState:_0x5e9320,unitId:_0x440c04}=_0x2ee6be,_0xe23678={'id':_0x1f87cb,'type':_0x54340d[_0x917880(0x2b5)][_0x917880(0x3da)],'params':{'unitId':_0x440c04,'actions':_0x5e9320[_0x917880(0x25c)],'textRanges':null}};this[_0x917880(0x280)](_0xe23678);})),this[_0x3942dc(0x13b)](this[_0x3942dc(0x24b)][_0x3942dc(0x198)]((_0x406c5e,_0x8952cb)=>{const _0x5ea7c5=_0x3942dc;if(_0x406c5e[_0x5ea7c5(0x154)]!==_0x54340d[_0x5ea7c5(0x2b5)][_0x5ea7c5(0x3da)]||_0x8952cb!=null&&_0x8952cb[_0x5ea7c5(0x2d9)]||_0x8952cb!=null&&_0x8952cb[_0x5ea7c5(0x453)]||_0x406c5e['id']===_0x55be24[_0x5ea7c5(0x221)]['id'])return;let _0x237f82=_0x406c5e[_0x5ea7c5(0x311)];if((_0x237f82==null?void 0x0:_0x237f82[_0x5ea7c5(0x3a1)])!==this[_0x5ea7c5(0x3b1)])return;let _0x1222f7=_0x406c5e,_0x4bbb92=this[_0x5ea7c5(0x321)]['interceptor'][_0x5ea7c5(0x2d0)](this[_0x5ea7c5(0x321)][_0x5ea7c5(0x141)][_0x5ea7c5(0x1a0)]()[_0x5ea7c5(0x344)])([_0x1222f7],this[_0x5ea7c5(0x18f)])||[_0x1222f7];this[_0x5ea7c5(0x280)](_0x4bbb92[0x0]);})),_0xa40c12;}};_0x4e92fa=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['RevisionService'])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x8,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x2f3)]),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x55be24[_0x4afe6d(0x3c6)])),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xe,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x4e92fa);let _0x315430=class extends _0x558136{constructor(_0x4fdd35,_0x5ecd11,_0x2a0100,_0x343b18,_0xf5ea5d,_0x2dfdea,_0xc25013,_0x4e8780,_0x5b81bc,_0x6cc03f,_0x1cfe3f,_0x2c87a7,_0x4ca596,_0x4360ec){const _0x4b7dfe=_0x4afe6d;super(_0x4fdd35,_0x2a0100,_0x5ecd11,_0x343b18,_0xf5ea5d,_0x2dfdea,_0xc25013,_0x4e8780,_0x5b81bc,_0x6cc03f,_0x1cfe3f,_0x2c87a7,_0x4ca596,_0x4360ec),this['unitID']=_0x4fdd35,this[_0x4b7dfe(0x154)]=_0x5ecd11;}async[_0x4afe6d(0x172)](){const _0xd6bbf3=_0x4afe6d;let _0x4182de=await super[_0xd6bbf3(0x172)]();return this[_0xd6bbf3(0x13b)](this[_0xd6bbf3(0x24b)][_0xd6bbf3(0x198)]((_0x4ecbdb,_0x37a206)=>{const _0x549e36=_0xd6bbf3;if(_0x4ecbdb[_0x549e36(0x154)]!==_0x54340d[_0x549e36(0x2b5)][_0x549e36(0x3da)]||_0x37a206!=null&&_0x37a206[_0x549e36(0x2d9)]||_0x37a206!=null&&_0x37a206[_0x549e36(0x453)])return;let _0x442a9d=_0x4ecbdb[_0x549e36(0x311)];if((_0x442a9d==null?void 0x0:_0x442a9d['unitId'])!==this[_0x549e36(0x3b1)])return;let _0x42d527=_0x4ecbdb,_0x28fb2b=this['_compressMutationService'][_0x549e36(0x141)][_0x549e36(0x2d0)](this[_0x549e36(0x321)][_0x549e36(0x141)][_0x549e36(0x1a0)]()[_0x549e36(0x344)])([_0x42d527],this['_univerInstanceService'])||[_0x42d527];this[_0x549e36(0x280)](_0x28fb2b[0x0]);})),_0x4182de;}};_0x315430=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['Injector'])),_0x5c2cf(0x4,(0x0,_0x54340d['Inject'])(_0x510a16['CompressMutationService'])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['LocaleService'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x9,_0x54340d['ILogService']),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d['IPermissionService']),_0x5c2cf(0xc,(0x0,_0x54340d['Optional'])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x315430);let _0x143458=class extends _0x558136{constructor(_0x3d55ba,_0x7bb9c8,_0x247e0f,_0x1d6d3e,_0x5b0edb,_0x430cd5,_0x10e7e2,_0x577f51,_0xe0ab2d,_0x4be1ca,_0x2ac953,_0x557a85,_0x439fcd,_0x4d952d,_0x318c76){const _0x4b0278=_0x4afe6d;super(_0x3d55ba,_0x247e0f,_0x7bb9c8,_0x1d6d3e,_0x5b0edb,_0x430cd5,_0x10e7e2,_0xe0ab2d,_0x4be1ca,_0x2ac953,_0x557a85,_0x439fcd,_0x4d952d,_0x318c76),this['unitID']=_0x3d55ba,this[_0x4b0278(0x154)]=_0x7bb9c8,this[_0x4b0278(0x2a1)]=_0x577f51;}['_createHandler'](){const _0x3c1401=_0x4afe6d;let _0x27c7ed=super['_createHandler']();return _0x27c7ed[_0x3c1401(0x3a5)]=_0x4964ba=>this['_sheetTransformSelectionsService']['transformSelections'](_0x4964ba),_0x27c7ed;}async[_0x4afe6d(0x172)](){const _0x2582dd=_0x4afe6d;let _0x541467=await super[_0x2582dd(0x172)]();return this[_0x2582dd(0x13b)](this[_0x2582dd(0x24b)][_0x2582dd(0x198)]((_0x4a17b5,_0x455c87)=>{const _0x477e51=_0x2582dd;if(_0x4a17b5['type']!==_0x54340d[_0x477e51(0x2b5)][_0x477e51(0x3da)]||_0x455c87!=null&&_0x455c87[_0x477e51(0x2d9)]||_0x455c87!=null&&_0x455c87[_0x477e51(0x453)])return;let _0x2ca9ac=_0x4a17b5[_0x477e51(0x311)];if((_0x2ca9ac==null?void 0x0:_0x2ca9ac[_0x477e51(0x3a1)])!==this[_0x477e51(0x3b1)])return;let _0x8d997d=_0x4a17b5,_0x5db51e=this[_0x477e51(0x321)][_0x477e51(0x141)][_0x477e51(0x2d0)](this[_0x477e51(0x321)][_0x477e51(0x141)]['getInterceptPoints']()[_0x477e51(0x344)])([_0x8d997d],this[_0x477e51(0x18f)])||[_0x8d997d];this[_0x477e51(0x280)](_0x5db51e[0x0]);})),_0x541467;}};_0x143458=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['CompressMutationService'])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0x6,(0x0,_0x54340d['Inject'])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d['Inject'])(_0x2269b7)),_0x5c2cf(0x8,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x9,_0x54340d['IUniverInstanceService']),_0x5c2cf(0xa,_0x54340d['ILogService']),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xc,_0x54340d[_0x4afe6d(0x2f3)]),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xe,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x143458);let _0x513627=class extends _0x558136{constructor(_0x384581,_0x21cf38,_0x471a26,_0xda1560,_0x989ab7,_0x32da31,_0x32a32f,_0x524b98,_0x3dccc6,_0x6ff783,_0xba6827,_0x4eeb10,_0x30a6bd,_0x5de448){const _0x465c7b=_0x4afe6d;super(_0x384581,_0x471a26,_0x21cf38,_0xda1560,_0x989ab7,_0x32da31,_0x32a32f,_0x524b98,_0x3dccc6,_0x6ff783,_0xba6827,_0x4eeb10,_0x30a6bd,_0x5de448),this[_0x465c7b(0x3b1)]=_0x384581,this[_0x465c7b(0x154)]=_0x21cf38;}async['_init'](){const _0x50e889=_0x4afe6d;let _0x23d826=await super[_0x50e889(0x172)]();return this[_0x50e889(0x13b)](this['_commandService'][_0x50e889(0x198)]((_0x4f580d,_0xe50bf6)=>{const _0x19a373=_0x50e889;if(_0x4f580d['type']!==_0x54340d[_0x19a373(0x2b5)][_0x19a373(0x3da)]||_0xe50bf6!=null&&_0xe50bf6['fromCollab']||_0xe50bf6!=null&&_0xe50bf6[_0x19a373(0x453)])return;let _0x154eef=_0x4f580d[_0x19a373(0x311)];if((_0x154eef==null?void 0x0:_0x154eef['unitId'])!==this[_0x19a373(0x3b1)])return;let _0x5f16cf=_0x4f580d,_0x5d6508=this[_0x19a373(0x321)][_0x19a373(0x141)][_0x19a373(0x2d0)](this[_0x19a373(0x321)][_0x19a373(0x141)][_0x19a373(0x1a0)]()[_0x19a373(0x344)])([_0x5f16cf],this[_0x19a373(0x18f)])||[_0x5f16cf];this[_0x19a373(0x280)](_0x5d6508[0x0]);})),_0x23d826;}};_0x513627=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d['Inject'])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['LocaleService'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x8,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d['IPermissionService']),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x513627);let _0x3a23e5=class extends _0x558136{constructor(_0x1ce6d0,_0x25df75,_0x1bc9d2,_0x4654ab,_0x1a69f0,_0xd7175a,_0x27eda0,_0x3baf36,_0xf3c050,_0xfe3620,_0x49c09e,_0x1a9eaa,_0x1bc620,_0x9e8ab1){const _0x2d915f=_0x4afe6d;super(_0x1ce6d0,_0x1bc9d2,_0x25df75,_0x4654ab,_0x1a69f0,_0xd7175a,_0x27eda0,_0x3baf36,_0xf3c050,_0xfe3620,_0x49c09e,_0x1a9eaa,_0x1bc620,_0x9e8ab1),this[_0x2d915f(0x3b1)]=_0x1ce6d0,this[_0x2d915f(0x154)]=_0x25df75;}async[_0x4afe6d(0x172)](){const _0xb2f483=_0x4afe6d;let _0xcfc1ad=await super['_init']();return this[_0xb2f483(0x13b)](this[_0xb2f483(0x24b)][_0xb2f483(0x198)]((_0x2b9855,_0x152aef)=>{const _0x56b903=_0xb2f483;if(_0x2b9855[_0x56b903(0x154)]!==_0x54340d[_0x56b903(0x2b5)][_0x56b903(0x3da)]||_0x152aef!=null&&_0x152aef[_0x56b903(0x2d9)]||_0x152aef!=null&&_0x152aef[_0x56b903(0x453)])return;let _0x2e095c=_0x2b9855[_0x56b903(0x311)];if((_0x2e095c==null?void 0x0:_0x2e095c[_0x56b903(0x3a1)])!==this[_0x56b903(0x3b1)])return;let _0x45b43f=_0x2b9855,_0x81a201=this[_0x56b903(0x321)][_0x56b903(0x141)][_0x56b903(0x2d0)](this[_0x56b903(0x321)][_0x56b903(0x141)]['getInterceptPoints']()[_0x56b903(0x344)])([_0x45b43f],this[_0x56b903(0x18f)])||[_0x45b43f];this[_0x56b903(0x280)](_0x81a201[0x0]);})),_0xcfc1ad;}};_0x3a23e5=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d['Inject'])(_0x54340d['LocaleService'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d['Inject'])(_0x18b525)),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x9,_0x54340d['ILogService']),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d['IPermissionService']),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x3a23e5);let _0x5cc1e5=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0x3d2));function _0x4dd5df(_0x21afcc){const _0xe93f61=_0x4afe6d;let _0x4cf963=_0x21afcc['data'],_0x11125a=JSON[_0xe93f61(0x1f8)](_0x4cf963);switch(_0x11125a['cmd']){case _0x3a112b[_0xe93f61(0x2dc)][_0xe93f61(0x434)]:case _0x3a112b['CombCmd'][_0xe93f61(0x1b7)]:{let _0x564269=_0x11125a[_0xe93f61(0x1bb)];return{..._0x11125a,'data':_0x564269,'cmd':_0x11125a[_0xe93f61(0x239)]};}case _0x3a112b['CombCmd']['JOIN']:{let _0x1ee52e=_0x11125a[_0xe93f61(0x36f)];return{..._0x11125a,'data':_0x1ee52e,'cmd':_0x11125a[_0xe93f61(0x239)]};}case _0x3a112b['CombCmd'][_0xe93f61(0x319)]:{let _0x1f7efa=_0x11125a['collaMsg'];switch(_0x1f7efa[_0xe93f61(0x10f)]){case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x1cc)]:var _0x5178a4;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x5178a4=_0x1f7efa[_0xe93f61(0x156)])==null?void 0x0:_0x5178a4['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)]['CHANGESET_ACK']:var _0x2dd240;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x2dd240=_0x1f7efa['csAckEvent'])==null?void 0x0:_0x2dd240['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)]['NEW_CHANGESETS']:var _0x389133;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x389133=_0x1f7efa[_0xe93f61(0x1e1)])==null?void 0x0:_0x389133['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x190)]:var _0x324ad5;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x324ad5=_0x1f7efa['csRejEvent'])==null?void 0x0:_0x324ad5['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)]['CHANGESET_SHOULD_RETRY']:var _0x2de232;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x2de232=_0x1f7efa[_0xe93f61(0x212)])==null?void 0x0:_0x2de232['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent'][_0xe93f61(0x242)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa['updateCursorEvent']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x1b4)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x1df)]},'cmd':_0x11125a['cmd']};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x132)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa['leaveEvent']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x1c3)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3fc)]},'cmd':_0x11125a['cmd']};case _0x510a16['CollaborationEvent'][_0xe93f61(0x35a)]:case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x3d3)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x33d)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3fc)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x11125a,'data':_0x1f7efa,'cmd':_0x11125a['cmd']};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x222)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x393)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent'][_0xe93f61(0x350)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3b3)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x10d)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x2c1)]},'cmd':_0x11125a['cmd']};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x3c0)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3e0)]},'cmd':_0x11125a['cmd']};default:return _0x11125a;}}default:return _0x11125a;}}function _0x5e867b(_0x2eeaa6){const _0x41a333=_0x4afe6d;switch(_0x2eeaa6[_0x41a333(0x239)]){case _0x3a112b['CombCmd']['HEARTBEAT']:case _0x3a112b[_0x41a333(0x2dc)]['HELLO']:return JSON['stringify']({'cmd':_0x2eeaa6['cmd'],'routeKey':_0x2eeaa6[_0x41a333(0x2e0)]});case _0x3a112b[_0x41a333(0x2dc)][_0x41a333(0x401)]:{let _0x56ffc5;switch(_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x10f)]){case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x242)]:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)][_0x41a333(0x242)],'updateCursorEvent':_0x2eeaa6['data'][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x132)]:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)][_0x41a333(0x132)],'leaveEvent':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x1b4)]:_0x56ffc5={'eventID':_0x510a16['CollaborationEvent'][_0x41a333(0x1b4)],'joinEvent':_0x2eeaa6['data']['data']};break;case _0x510a16['CollaborationEvent'][_0x41a333(0x1c3)]:_0x56ffc5={'eventID':_0x510a16['CollaborationEvent'][_0x41a333(0x1c3)],'liveShareNewHost':_0x2eeaa6['data'][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x3d3)]:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x436)]:_0x56ffc5={'eventID':_0x510a16['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)]['LIVESHARE_REQUEST_HOST']:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)][_0x41a333(0x13e)],'liveShareRequestHost':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x56ffc5={'eventID':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x10f)]};}return JSON[_0x41a333(0x1c6)]({'cmd':_0x2eeaa6[_0x41a333(0x239)],'routeKey':_0x2eeaa6['routeKey'],'collaMsg':_0x56ffc5});}case _0x3a112b['CombCmd'][_0x41a333(0x39d)]:return JSON[_0x41a333(0x1c6)]({'cmd':_0x2eeaa6[_0x41a333(0x239)],'routeKey':_0x2eeaa6[_0x41a333(0x2e0)],'joinReq':_0x2eeaa6['data']});case _0x3a112b[_0x41a333(0x2dc)][_0x41a333(0x240)]:return JSON[_0x41a333(0x1c6)]({'cmd':_0x2eeaa6['cmd'],'routeKey':_0x2eeaa6[_0x41a333(0x2e0)],'leaveReq':_0x2eeaa6['data']});default:throw Error(_0x41a333(0x1ed));}}let _0x30a197=(0x0,_0x54340d[_0x4afe6d(0x227)])('univer-pro.collaboration-client-socket-service');function _0x11f10f(_0x1db2d5,_0x5973e3,_0x90284d){const _0xe3b047=_0x4afe6d;return _0x1db2d5+'/'+_0x5973e3+'/unit/'+_0x90284d+_0xe3b047(0x388);}let _0xadadc1=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(_0x180304,_0x27f313,_0xe615da,_0x2924c7,_0x34c294){const _0xcb40a2=_0x4afe6d;super(),this[_0xcb40a2(0x19e)]=_0x180304,this[_0xcb40a2(0x1e3)]=_0x27f313,this[_0xcb40a2(0x3b8)]=_0xe615da,this[_0xcb40a2(0x30d)]=_0x2924c7,this[_0xcb40a2(0x247)]=_0x34c294;}[_0x4afe6d(0x367)](_0x13b113){const _0x8566=_0x4afe6d;let _0xeb694f=this[_0x8566(0x19e)][_0x8566(0x28f)](_0x3c3932[_0x8566(0x11d)]);if(!_0xeb694f)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x10cc81=_0xeb694f[_0x8566(0x42a)](_0x13b113);if(!_0x10cc81)throw Error(_0x8566(0x26e));let _0x23096c=new _0x54340d['DisposableCollection'](),_0x2aabd7=new _0x501c4e[(_0x8566(0x1d6))]();_0x23096c[_0x8566(0x1fc)](_0x10cc81[_0x8566(0x1b5)]['subscribe'](_0x464f48=>_0x2aabd7[_0x8566(0x16a)](_0x464f48))),_0x23096c[_0x8566(0x1fc)]((0x0,_0x54340d['toDisposable'])(()=>_0x2aabd7[_0x8566(0x228)]()));let _0x56b15a=new _0x501c4e[(_0x8566(0x1d6))]();_0x23096c['add'](_0x10cc81[_0x8566(0x41a)]['subscribe'](_0x10636e=>_0x56b15a['next'](_0x10636e))),_0x23096c[_0x8566(0x1fc)]((0x0,_0x54340d[_0x8566(0x11e)])(()=>_0x56b15a[_0x8566(0x228)]()));let _0x3ea370=new _0x501c4e['Subject']();_0x23096c[_0x8566(0x1fc)](_0x10cc81[_0x8566(0x208)][_0x8566(0x40b)](_0x149246=>{const _0x4ebd0b=_0x8566;let _0x3684bb=_0x4dd5df(_0x149246);_0x3ea370[_0x4ebd0b(0x16a)](_0x3684bb);})),_0x23096c[_0x8566(0x1fc)]((0x0,_0x54340d['toDisposable'])(()=>_0x3ea370['complete']()));let _0x6a6c49,_0x235470=()=>{const _0x5cd43d=_0x8566;_0x56b15a['next'](new Event(_0x5cd43d(0x1ef))),_0x2aabd7['next'](new Event(_0x5cd43d(0x1ef))),_0x6a6c49[_0x5cd43d(0x3ed)]();};return _0x6a6c49={'memberID':'','close$':_0x2aabd7[_0x8566(0x371)](),'error$':_0x56b15a[_0x8566(0x371)](),'open$':_0x10cc81[_0x8566(0x1c0)],'message$':_0x3ea370[_0x8566(0x371)](),'send':_0x40eccf=>{const _0x27390b=_0x8566;if(_0x40eccf[_0x27390b(0x239)]===_0x3a112b[_0x27390b(0x2dc)][_0x27390b(0x401)]){if(_0x40eccf[_0x27390b(0x2b8)][_0x27390b(0x10f)]===_0x510a16['CollaborationEvent'][_0x27390b(0x454)]){this['_submitChangeset'](_0x6a6c49,_0x40eccf[_0x27390b(0x2b8)])['catch'](_0x35c8b2=>{const _0x2f6e9c=_0x27390b;this[_0x2f6e9c(0x30d)][_0x2f6e9c(0x106)](_0x35c8b2),_0x235470();});return;}if(_0x40eccf['data'][_0x27390b(0x10f)]===_0x510a16['CollaborationEvent'][_0x27390b(0x44f)]){let _0x5b86d4=_0x40eccf[_0x27390b(0x2b8)];this[_0x27390b(0x1a7)](_0x5b86d4)[_0x27390b(0x330)](_0x28225a=>{const _0x26f787=_0x27390b;_0x3ea370['next']({'cmd':_0x3a112b[_0x26f787(0x2dc)][_0x26f787(0x319)],'code':_0x3a112b['CmdRspCode']['OK'],'routeKey':_0x5b86d4['data']['unitID'],'routeType':'','data':{'eventID':_0x510a16[_0x26f787(0x17d)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x28225a}}});})[_0x27390b(0x332)](_0x4c21e5=>{const _0x14f268=_0x27390b;this[_0x14f268(0x30d)][_0x14f268(0x106)](_0x4c21e5),_0x235470();});return;}}_0x10cc81[_0x27390b(0x255)](_0x5e867b(_0x40eccf));},'close':()=>{const _0x3f1053=_0x8566;_0x10cc81[_0x3f1053(0x3ed)](),_0x23096c[_0x3f1053(0x445)]();}},_0x6a6c49;}async['_submitChangeset'](_0x543ed0,_0x515494){const _0x1b932d=_0x4afe6d;var _0x338eec;let {unitType:_0x59ae25,unitID:_0x1b41d6,changeset:_0x2b5452}=_0x515494[_0x1b932d(0x2b8)],_0x1fcca9={'unitID':_0x1b41d6,'memberID':_0x543ed0[_0x1b932d(0x41c)],'type':_0x59ae25,'changeset':(0x0,_0x510a16[_0x1b932d(0x18d)])(_0x2b5452)},_0x52f25a=this[_0x1b932d(0x3b8)][_0x1b932d(0x170)](_0x440361),_0x3801a7=_0x11f10f((_0x338eec=_0x52f25a==null?void 0x0:_0x52f25a[_0x1b932d(0x25f)])==null?_0x1b932d(0x2eb):_0x338eec,_0x59ae25,_0x1b41d6);try{await this[_0x1b932d(0x1e3)][_0x1b932d(0x381)](_0x3801a7,{'body':_0x1fcca9});}catch(_0x41e456){throw this['_logService'][_0x1b932d(0x106)](_0x1b932d(0x238),_0x1b932d(0x2fc)),_0x41e456;}}async[_0x4afe6d(0x1a7)](_0x36f079){const _0x1fdcb3=_0x4afe6d;let {unitID:_0x1379e9,from:_0x3864f2,to:_0x317142,unitType:_0x45952c}=_0x36f079[_0x1fdcb3(0x2b8)];return(await this[_0x1fdcb3(0x247)][_0x1fdcb3(0x246)]({'metadata':void 0x0},{'unitID':_0x1379e9,'type':_0x45952c,'from':_0x3864f2,'to':_0x317142}))['changesets'][_0x1fdcb3(0x299)](_0x13af9b=>((_0x13af9b['mutations']===null||_0x13af9b[_0x1fdcb3(0x29a)]===void 0x0)&&(_0x13af9b[_0x1fdcb3(0x29a)]=[]),_0x13af9b));}};_0xadadc1=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x3,_0x54340d['ILogService']),_0x5c2cf(0x4,_0x510a16['ISnapshotServerService'])],_0xadadc1);let _0x3a5b27=(0x0,_0x54340d[_0x4afe6d(0x227)])('univer-pro.collaboration-client-adapter-service');function _0x1c4d33(_0x44e6e5={}){const _0x4b97f3=_0x4afe6d;return _0x44e6e5['resolveUnit']?{'resolveUnit':_0x44e6e5[_0x4b97f3(0x3c2)]}:{'resolveUnit':_0x45c317=>({'target':{'unitId':_0x45c317[_0x4b97f3(0x3a1)],'unitType':_0x45c317[_0x4b97f3(0x3ec)]}})};}function _0x5f133c(_0x53831a,_0x2cba83,_0xc48fda){const _0x21579b=_0x4afe6d;var _0x18659;let _0xbc83d1=_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x220)];if(_0xbc83d1!=null&&_0xbc83d1[_0x21579b(0x410)]()==='')throw Error(_0x21579b(0x105));if(!_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x3a1)])throw Error(_0x21579b(0x14e));return{'localUnitId':_0x53831a,'unitType':_0x2cba83,'target':{'endpoint':_0xbc83d1,'unitId':_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x3a1)],'unitType':(_0x18659=_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x3ec)])==null?_0x2cba83:_0x18659},'changeset':_0xc48fda[_0x21579b(0x3ab)]};}let _0x1ef492=class extends _0x54340d['Disposable']{constructor(_0x43165b,_0x4c1633,_0xf9b01f,_0x21f98d,_0x1b55f6,_0x2294fd,_0x18e58e){const _0x56250d=_0x4afe6d;super(),this['_injector']=_0x43165b,this['_logService']=_0x4c1633,this[_0x56250d(0x3b8)]=_0xf9b01f,this[_0x56250d(0x32a)]=_0x21f98d,this[_0x56250d(0x30b)]=_0x1b55f6,this[_0x56250d(0x175)]=_0x2294fd,this['_networkConditionService']=_0x18e58e,_0x1d93f6(this,'_sessions',new Map()),_0x1d93f6(this,'_pendingSessions',new Map()),_0x1d93f6(this,'_sessionChannels',new Map()),_0x1d93f6(this,'_socketChannels',new Map()),_0x1d93f6(this,_0x56250d(0x2a3),this[_0x56250d(0x379)](void 0x0)[_0x56250d(0x2a3)][_0x56250d(0x371)]()),_0x1d93f6(this,_0x56250d(0x20a),new _0x501c4e[(_0x56250d(0x283))](0x0)),_0x1d93f6(this,'status$',this[_0x56250d(0x20a)][_0x56250d(0x371)]()),this['_listenToNetworkCondition']();}[_0x4afe6d(0x171)](){const _0x4f3d98=_0x4afe6d;this['_networkConditionService']&&this[_0x4f3d98(0x13b)](this['_networkConditionService'][_0x4f3d98(0x435)]['subscribe'](_0x2441e0=>{const _0x2c88ea=_0x4f3d98;_0x2441e0&&this[_0x2c88ea(0x326)](),_0x2441e0||this[_0x2c88ea(0x2d8)][_0x2c88ea(0x3a3)](_0x4d45d3=>this[_0x2c88ea(0x41b)](_0x4d45d3));}));}['dispose'](){const _0x55826e=_0x4afe6d;super[_0x55826e(0x445)](),this[_0x55826e(0x2d8)]['forEach'](_0x2d6ad8=>{const _0x26d604=_0x55826e;var _0x4b1f2d,_0xe86fb9;(_0x4b1f2d=_0x2d6ad8[_0x26d604(0x406)])==null||_0x4b1f2d[_0x26d604(0x187)](),_0x2d6ad8[_0x26d604(0x406)]=null,this[_0x26d604(0x20d)](_0x2d6ad8),this[_0x26d604(0x111)](_0x2d6ad8),this['_clearHeartbeatTimer'](_0x2d6ad8),(_0xe86fb9=_0x2d6ad8[_0x26d604(0x2a3)][_0x26d604(0x22a)]())==null||_0xe86fb9['close'](),_0x2d6ad8[_0x26d604(0x2a3)][_0x26d604(0x228)]();}),this[_0x55826e(0x2d8)][_0x55826e(0x426)](),this[_0x55826e(0x2c3)][_0x55826e(0x3a3)](_0x415a5e=>_0x415a5e[_0x55826e(0x445)]()),this[_0x55826e(0x2c3)]['clear'](),this[_0x55826e(0x42d)][_0x55826e(0x426)](),this[_0x55826e(0x20a)][_0x55826e(0x228)]();}async[_0x4afe6d(0x2ef)](_0x127177,_0x415b10){const _0x40e852=_0x4afe6d;if(this[_0x40e852(0x2c3)][_0x40e852(0x2e6)](_0x127177))return this['_sessions'][_0x40e852(0x28f)](_0x127177);let _0xd9e3a0=this[_0x40e852(0x3b0)][_0x40e852(0x28f)](_0x127177);if(_0xd9e3a0)return _0xd9e3a0;let _0x5f68bf=this[_0x40e852(0x3c7)](_0x127177,_0x415b10);this['_pendingSessions']['set'](_0x127177,_0x5f68bf);try{return await _0x5f68bf;}finally{this['_pendingSessions'][_0x40e852(0x151)](_0x127177);}}async[_0x4afe6d(0x3c7)](_0x2a96fc,_0x369356){const _0x35d010=_0x4afe6d;let _0x3da2d5=await this['_resolveSessionIdentity'](_0x2a96fc,_0x369356),_0x57dd34=this['_getSocketChannel'](_0x3da2d5[_0x35d010(0x12f)]['endpoint']);this[_0x35d010(0x2d3)](_0x57dd34);let _0x81a9ab=this['_injector'][_0x35d010(0x34e)](_0x180b79,_0x3da2d5,_0x57dd34['socket$'][_0x35d010(0x371)]());return this['_sessions'][_0x35d010(0x437)](_0x2a96fc,_0x81a9ab),this[_0x35d010(0x42d)]['set'](_0x2a96fc,_0x57dd34[_0x35d010(0x22b)]),_0x81a9ab;}[_0x4afe6d(0x14f)](_0x4a038d){const _0x2f2b3d=_0x4afe6d;let _0x47322d=this[_0x2f2b3d(0x2c3)]['get'](_0x4a038d),_0x15ffad=this[_0x2f2b3d(0x42d)][_0x2f2b3d(0x28f)](_0x4a038d);if(_0x47322d&&(this[_0x2f2b3d(0x2c3)]['delete'](_0x4a038d),this['_sessionChannels']['delete'](_0x4a038d),_0x47322d[_0x2f2b3d(0x3ed)]()),_0x15ffad&&!this[_0x2f2b3d(0x127)](_0x15ffad)){var _0xbeed8d;let _0x1f3d94=this['_socketChannels'][_0x2f2b3d(0x28f)](_0x15ffad);_0x1f3d94==null||(_0xbeed8d=_0x1f3d94[_0x2f2b3d(0x2a3)][_0x2f2b3d(0x22a)]())==null||_0xbeed8d[_0x2f2b3d(0x3ed)]();}}[_0x4afe6d(0x326)](){const _0x1fa516=_0x4afe6d;(this[_0x1fa516(0x2d8)][_0x1fa516(0x389)]?[...this[_0x1fa516(0x2d8)][_0x1fa516(0x2f8)]()]:[this[_0x1fa516(0x379)](void 0x0)])[_0x1fa516(0x3a3)](_0x5edb1a=>{const _0x2eadcf=_0x1fa516;_0x5edb1a[_0x2eadcf(0x2df)]=0x0,this[_0x2eadcf(0x20d)](_0x5edb1a),this['_tryReconnect'](_0x5edb1a);});}['_clearRetryConnectingTimer'](_0x928b1){const _0x1922bd=_0x4afe6d;_0x928b1[_0x1922bd(0x2aa)]!=null&&(clearTimeout(_0x928b1[_0x1922bd(0x2aa)]),_0x928b1[_0x1922bd(0x2aa)]=null);}async['_createSocket'](_0x356342){const _0x3019f5=_0x4afe6d;var _0x2b7f21,_0x5b6524;let _0x9e52a4=this[_0x3019f5(0x3b8)][_0x3019f5(0x170)](_0x440361),_0xab4e3a=(_0x2b7f21=(_0x5b6524=_0x356342[_0x3019f5(0x220)])==null?_0x9e52a4==null?void 0x0:_0x9e52a4[_0x3019f5(0x44b)]:_0x5b6524)==null?_0x1ee18d:_0x2b7f21,_0x5ede08=await this['_socketService']['createSocket'](_0xab4e3a);return _0x356342[_0x3019f5(0xf9)]=_0x5ede08,_0x5ede08;}async[_0x4afe6d(0x2d3)](_0x1408d5){const _0x42a6c1=_0x4afe6d;try{var _0x7e056a,_0x4b442b;let _0x2a301c=(_0x7e056a=(_0x4b442b=_0x1408d5['socket$'][_0x42a6c1(0x22a)]())==null?_0x1408d5[_0x42a6c1(0xf9)]:_0x4b442b)==null?await this[_0x42a6c1(0x413)](_0x1408d5):_0x7e056a;if(_0x2a301c){var _0x153284;let _0x30de76=_0x2a301c[_0x42a6c1(0x255)];_0x2a301c[_0x42a6c1(0x255)]=_0x58afa9=>(_0x58afa9[_0x42a6c1(0x239)]!==_0x3a112b['CombCmd'][_0x42a6c1(0x240)]&&this[_0x42a6c1(0x392)](_0x1408d5),_0x30de76['apply'](_0x2a301c,[_0x58afa9])),(_0x153284=_0x1408d5[_0x42a6c1(0x406)])==null||_0x153284['unsubscribe'](),_0x1408d5[_0x42a6c1(0x406)]=null,_0x1408d5['socketMessageSubscription']=_0x2a301c[_0x42a6c1(0x208)][_0x42a6c1(0x40b)](_0x5e4a49=>this[_0x42a6c1(0x260)](_0x1408d5,_0x2a301c,_0x5e4a49)),_0x2a301c[_0x42a6c1(0x41a)][_0x42a6c1(0x33c)]((0x0,_0x572a50[_0x42a6c1(0x250)])(0x1))[_0x42a6c1(0x40b)](_0x595ee2=>this[_0x42a6c1(0x30d)]['error'](_0x42a6c1(0x29f),_0x595ee2)),_0x2a301c[_0x42a6c1(0x1c0)]['pipe']((0x0,_0x572a50[_0x42a6c1(0x250)])(0x1))[_0x42a6c1(0x40b)](()=>{const _0x12ee52=_0x42a6c1;this[_0x12ee52(0x2da)](_0x1408d5,_0x2a301c);}),_0x2a301c[_0x42a6c1(0x1b5)][_0x42a6c1(0x33c)]((0x0,_0x572a50[_0x42a6c1(0x250)])(0x1))['subscribe'](_0x242c81=>{const _0x3ec2f3=_0x42a6c1;this[_0x3ec2f3(0x30d)][_0x3ec2f3(0x103)](_0x3ec2f3(0x349),_0x3ec2f3(0x421),_0x242c81),this[_0x3ec2f3(0x267)](_0x1408d5);});}}catch(_0x3497e5){this[_0x42a6c1(0x30d)][_0x42a6c1(0x106)](_0x3497e5),this[_0x42a6c1(0x267)](_0x1408d5);}}[_0x4afe6d(0x2da)](_0x5ed5d4,_0x30b1a7){const _0x474f41=_0x4afe6d;this[_0x474f41(0x30d)][_0x474f41(0x103)](_0x474f41(0x349),_0x474f41(0x113)),_0x30b1a7[_0x474f41(0x255)]({'cmd':_0x3a112b['CombCmd'][_0x474f41(0x1b7)]}),this[_0x474f41(0x392)](_0x5ed5d4);}['_onOffline'](_0x563ec4){const _0x15344e=_0x4afe6d;_0x563ec4[_0x15344e(0x205)]=!0x1,_0x563ec4[_0x15344e(0xf9)]=null,this['_status$']['next'](0x2),_0x563ec4[_0x15344e(0x2a3)][_0x15344e(0x16a)](null),this[_0x15344e(0x111)](_0x563ec4),this['_clearHeartbeatTimer'](_0x563ec4);}[_0x4afe6d(0x267)](_0x171a1c){const _0x439907=_0x4afe6d;var _0xb55ea9;this[_0x439907(0x41b)](_0x171a1c),this[_0x439907(0x127)](_0x171a1c[_0x439907(0x22b)])&&(_0x171a1c[_0x439907(0x2df)]<((_0xb55ea9=this[_0x439907(0x3b8)][_0x439907(0x170)](_0x439907(0x1d7)))==null?0x3:_0xb55ea9)?(this[_0x439907(0x30b)]['emitEvent']({'id':_0x439907(0x110)}),this[_0x439907(0x2e8)](_0x171a1c)):this[_0x439907(0x30b)][_0x439907(0x425)]({'id':'SOCKET_FAILED'}));}[_0x4afe6d(0x2e8)](_0x2bdb27){const _0x1abf93=_0x4afe6d;var _0x285918;let _0x20ed0f=_0x2bdb27['retryCount'],_0x1e5945=this[_0x1abf93(0x3b8)][_0x1abf93(0x170)](_0x440361),_0x3f64c6=_0x20ed0f===0x0?0x0:((_0x285918=_0x1e5945==null?void 0x0:_0x1e5945[_0x1abf93(0x383)])==null?0x4e20:_0x285918)*0x2**_0x20ed0f;_0x2bdb27[_0x1abf93(0x2aa)]=setTimeout(()=>{const _0x38ae8c=_0x1abf93;clearTimeout(_0x2bdb27[_0x38ae8c(0x2aa)]),_0x2bdb27['retryConnectingTimer']=null,this[_0x38ae8c(0x2d3)](_0x2bdb27);},_0x3f64c6),_0x2bdb27['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0x5c2818,_0x26113f){const _0x49f699=_0x4afe6d;return _0x5f133c(_0x5c2818,_0x26113f,await this[_0x49f699(0x175)]['resolveUnit']({'unitId':_0x5c2818,'unitType':_0x26113f}));}['_onMessage'](_0x39960c,_0x1d89db,_0x45bf0a){const _0x156e58=_0x4afe6d;let {cmd:_0x198400}=_0x45bf0a;_0x198400===_0x3a112b[_0x156e58(0x2dc)][_0x156e58(0x1b7)]&&!_0x39960c[_0x156e58(0x205)]&&(_0x1d89db[_0x156e58(0x41c)]=_0x45bf0a[_0x156e58(0x2b8)]['memberID'],_0x39960c[_0x156e58(0x2a3)]['next'](_0x1d89db),this[_0x156e58(0x20a)]['next'](0x3),_0x39960c[_0x156e58(0x205)]=!0x0,_0x39960c[_0x156e58(0xf9)]=null),_0x198400===_0x3a112b['CombCmd'][_0x156e58(0x434)]&&this['_clearTimeoutTimer'](_0x39960c),this[_0x156e58(0x392)](_0x39960c);}['_hasSessionsForEndpoint'](_0x4d1f03){const _0x10786e=_0x4afe6d;return[...this[_0x10786e(0x42d)]['values']()][_0x10786e(0x1d8)](_0x10d603=>_0x10d603===_0x4d1f03);}[_0x4afe6d(0x379)](_0x1a3278){const _0x1b995f=_0x4afe6d;let _0x11753d=_0x1a3278==null?'':_0x1a3278,_0x35e68b=this[_0x1b995f(0x2d8)][_0x1b995f(0x28f)](_0x11753d);if(_0x35e68b)return _0x35e68b;let _0x2de6cb={'endpointKey':_0x11753d,'endpoint':_0x1a3278,'socket$':new _0x501c4e[(_0x1b995f(0x283))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels']['set'](_0x11753d,_0x2de6cb),_0x2de6cb;}[_0x4afe6d(0x392)](_0xea395c){const _0x1dec80=_0x4afe6d;var _0x2047f8;this[_0x1dec80(0x101)](_0xea395c),_0xea395c[_0x1dec80(0x2bc)]=setTimeout(()=>this[_0x1dec80(0x201)](_0xea395c),(_0x2047f8=this['_configService'][_0x1dec80(0x170)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x2047f8);}[_0x4afe6d(0x201)](_0x19257a){const _0x556dbe=_0x4afe6d;_0x19257a[_0x556dbe(0x2a3)][_0x556dbe(0x22a)]()['send']({'cmd':_0x3a112b['CombCmd'][_0x556dbe(0x434)]}),this[_0x556dbe(0x155)](_0x19257a);}['_waitForHeartbeatResponse'](_0x476d8f){const _0x3e5fe3=_0x4afe6d;var _0x2e882f;_0x476d8f[_0x3e5fe3(0x269)]=setTimeout(()=>this[_0x3e5fe3(0x267)](_0x476d8f),(_0x2e882f=this[_0x3e5fe3(0x3b8)][_0x3e5fe3(0x170)](_0x3e5fe3(0x263)))==null?_0x3eabd5:_0x2e882f);}[_0x4afe6d(0x101)](_0x3fe8dc){const _0x14a555=_0x4afe6d;_0x3fe8dc[_0x14a555(0x2bc)]!=null&&(clearTimeout(_0x3fe8dc[_0x14a555(0x2bc)]),_0x3fe8dc['sendHeartbeatTimer']=null);}[_0x4afe6d(0x111)](_0x1c43a0){const _0x309e1a=_0x4afe6d;_0x1c43a0[_0x309e1a(0x269)]!=null&&(clearTimeout(_0x1c43a0[_0x309e1a(0x269)]),_0x1c43a0['timeoutTimer']=null);}};_0x1ef492=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x3,_0x30a197),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x5,_0x3a5b27),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x5cc1e5))],_0x1ef492);let _0x3ac1c6=class extends _0x54340d[_0x4afe6d(0x2bf)]{constructor(_0x2ae543,_0x85b76d,_0xfe3149,_0x1d6d41){const _0x1b26b4=_0x4afe6d;var _0x280059;super(),this[_0x1b26b4(0x19e)]=_0x2ae543,this[_0x1b26b4(0x26d)]=_0x85b76d,this['_configService']=_0xfe3149,this[_0x1b26b4(0x18f)]=_0x1d6d41,_0x1d93f6(this,_0x1b26b4(0x226),new Map()),_0x1d93f6(this,_0x1b26b4(0x1ea),new _0x501c4e[(_0x1b26b4(0x1d6))]()),_0x1d93f6(this,_0x1b26b4(0x3e9),this[_0x1b26b4(0x1ea)]['asObservable']()),((_0x280059=this['_configService']['getConfig'](_0x1b26b4(0xf8)))==null?void 0x0:_0x280059['enableCollaboration'])!==!0x1&&this[_0x1b26b4(0x172)]();}[_0x4afe6d(0x445)](){const _0x196d60=_0x4afe6d;super[_0x196d60(0x445)](),this['_entities'][_0x196d60(0x3a3)](_0x95e70=>_0x95e70[_0x196d60(0x445)]()),this[_0x196d60(0x226)][_0x196d60(0x426)]();}[_0x4afe6d(0x166)](_0x2a50ed){const _0x2cae6f=_0x4afe6d;var _0x19a6c8;return(_0x19a6c8=this[_0x2cae6f(0x226)]['get'](_0x2a50ed))==null?null:_0x19a6c8;}[_0x4afe6d(0x298)](_0x41f169){const _0x4f4db6=_0x4afe6d;let _0x31a8fc=this['getCollabEntity'](_0x41f169);return _0x31a8fc?(0x0,_0x501c4e['of'])(_0x31a8fc):this[_0x4f4db6(0x1ea)][_0x4f4db6(0x33c)]((0x0,_0x572a50[_0x4f4db6(0x176)])(_0x200eff=>_0x200eff['unitID']===_0x41f169));}['readyForCollab'](_0x6b548b){const _0xe33a0e=_0x4afe6d;return(0x0,_0x501c4e[_0xe33a0e(0x117)])(this['getCollabEntity$'](_0x6b548b)[_0xe33a0e(0x33c)]((0x0,_0x572a50[_0xe33a0e(0x299)])(()=>void 0x0)));}['_init'](){const _0x90c35d=_0x4afe6d;this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_SHEET'])[_0x90c35d(0x33c)]((0x0,_0x501c4e['takeUntil'])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))['subscribe'](async _0x17b7fc=>{const _0x4cbb96=_0x90c35d;let _0x193e22=_0x17b7fc[_0x4cbb96(0x37d)][_0x4cbb96(0x40f)](),_0x343773=await this[_0x4cbb96(0x168)](_0x193e22,_0x54340d[_0x4cbb96(0x395)][_0x4cbb96(0x3ee)]);this['_entities']['set'](_0x193e22,_0x343773);}),this[_0x90c35d(0x18f)][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)][_0x90c35d(0x366)])[_0x90c35d(0x33c)]((0x0,_0x501c4e['takeUntil'])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))[_0x90c35d(0x33c)]((0x0,_0x572a50[_0x90c35d(0x176)])(_0x18fff4=>!_0x18fff4[_0x90c35d(0x37d)][_0x90c35d(0x40f)]()[_0x90c35d(0x2d6)]('__')))[_0x90c35d(0x40b)](async _0x10b145=>{const _0x31d42d=_0x90c35d;let _0x212e98=_0x10b145['unit'][_0x31d42d(0x40f)](),_0x38fdcf=await this[_0x31d42d(0x168)](_0x212e98,_0x54340d[_0x31d42d(0x395)][_0x31d42d(0x366)]);this[_0x31d42d(0x226)]['set'](_0x212e98,_0x38fdcf);}),this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_SLIDE'])['pipe']((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))['subscribe'](async _0x47bda1=>{const _0x307c40=_0x90c35d;let _0x5be498=_0x47bda1['unit'][_0x307c40(0x40f)](),_0x2bc3d5=await this[_0x307c40(0x168)](_0x5be498,_0x54340d['UniverInstanceType']['UNIVER_SLIDE']);this[_0x307c40(0x226)][_0x307c40(0x437)](_0x5be498,_0x2bc3d5);}),this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)][_0x90c35d(0x1b3)])['pipe']((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))['subscribe'](async _0x529cdc=>{const _0x344dd1=_0x90c35d;let _0x514522=_0x529cdc[_0x344dd1(0x37d)][_0x344dd1(0x40f)](),_0x1d8af3=await this[_0x344dd1(0x168)](_0x514522,_0x54340d[_0x344dd1(0x395)][_0x344dd1(0x1b3)]);this['_entities'][_0x344dd1(0x437)](_0x514522,_0x1d8af3);}),this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d['UniverInstanceType'][_0x90c35d(0x193)])[_0x90c35d(0x33c)]((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50['delay'])(0x10))[_0x90c35d(0x40b)](async _0x9e1f6b=>{const _0x1f47ba=_0x90c35d;let _0xc32844=_0x9e1f6b[_0x1f47ba(0x37d)][_0x1f47ba(0x40f)](),_0x517571=await this['_startCollaboration'](_0xc32844,_0x54340d[_0x1f47ba(0x395)][_0x1f47ba(0x193)]);this[_0x1f47ba(0x226)]['set'](_0xc32844,_0x517571);}),(0x0,_0x501c4e['merge'])(this['_univerInstanceService'][_0x90c35d(0x28d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_SHEET']),this[_0x90c35d(0x18f)][_0x90c35d(0x28d)](_0x54340d['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x54340d['UniverInstanceType'][_0x90c35d(0x2f6)]),this[_0x90c35d(0x18f)][_0x90c35d(0x28d)](_0x54340d['UniverInstanceType'][_0x90c35d(0x1b3)]),this[_0x90c35d(0x18f)][_0x90c35d(0x28d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_BASE']))['pipe']((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]))[_0x90c35d(0x40b)](_0xc31146=>{const _0x4b5828=_0x90c35d;let _0x42c64f=_0xc31146[_0x4b5828(0x40f)](),_0xc236eb=this[_0x4b5828(0x226)]['get'](_0x42c64f);_0xc236eb&&(_0xc236eb['dispose'](),this['_entities'][_0x4b5828(0x151)](_0x42c64f));});}async[_0x4afe6d(0x168)](_0x3e1276,_0x2ce6b7){const _0x44d265=_0x4afe6d;let _0x5e85d1=await this[_0x44d265(0x26d)][_0x44d265(0x2ef)](_0x3e1276),_0x1e809f=this[_0x44d265(0x19e)][_0x44d265(0x34e)](this[_0x44d265(0x21e)](_0x2ce6b7),_0x3e1276,_0x2ce6b7,_0x5e85d1);return await _0x1e809f[_0x44d265(0x348)](),this[_0x44d265(0x1ea)][_0x44d265(0x16a)](_0x1e809f),_0x1e809f;}[_0x4afe6d(0x21e)](_0x1c40a6){const _0x4f8ba8=_0x4afe6d;switch(_0x1c40a6){case _0x54340d[_0x4f8ba8(0x395)][_0x4f8ba8(0x366)]:return _0x4e92fa;case _0x54340d[_0x4f8ba8(0x395)][_0x4f8ba8(0x3ee)]:return _0x143458;case _0x54340d[_0x4f8ba8(0x395)][_0x4f8ba8(0x2f6)]:return _0x513627;case _0x54340d[_0x4f8ba8(0x395)]['UNIVER_BOARD']:return _0x3a23e5;case _0x54340d['UniverInstanceType'][_0x4f8ba8(0x193)]:return _0x315430;default:throw Error(_0x4f8ba8(0x1aa)+_0x1c40a6);}}};_0x3ac1c6=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x1ef492)),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x3,_0x54340d[_0x4afe6d(0x21c)])],_0x3ac1c6);var _0x2342bf=_0x4afe6d(0x358),_0x42a3e1=_0x4afe6d(0x43b);let _0x1ae7d6=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(_0x13acf9,_0x3b718a){const _0x456638=_0x4afe6d;super(),this[_0x456638(0x18f)]=_0x13acf9,this['_configService']=_0x3b718a,this['_init']();}[_0x4afe6d(0x172)](){const _0xcac132=_0x4afe6d;this[_0xcac132(0x13b)](this[_0xcac132(0x18f)][_0xcac132(0x135)][_0xcac132(0x40b)](()=>{const _0xaa6298=_0xcac132;var _0x78f49a;let _0x221adb=this['_univerInstanceService'][_0xaa6298(0x26f)](),_0x3f7f5d=(_0x78f49a=this['_configService']['getConfig'](_0xaa6298(0x243)))==null?_0xaa6298(0x1e9):_0x78f49a;_0x221adb instanceof _0x54340d['Workbook']&&(_0x3f7f5d=_0x221adb[_0xaa6298(0x2a8)]),document[_0xaa6298(0x44c)]=_0x3f7f5d;}));}};_0x1ae7d6=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x192)])],_0x1ae7d6);let _0x32a4ef=function(_0x1379ba){const _0x709c71=_0x4afe6d;return _0x1379ba[_0x709c71(0x12e)]=_0x709c71(0x12e),_0x1379ba[_0x709c71(0x43c)]=_0x709c71(0x43c),_0x1379ba['BASE64']=_0x709c71(0x224),_0x1379ba;}({}),_0x2a494b=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0x415)),_0x229743=class{constructor(_0x54c57e,_0x43e096,_0x288426){const _0x35e2a2=_0x4afe6d;this['_httpService']=_0x54c57e,this[_0x35e2a2(0x3b8)]=_0x43e096,this[_0x35e2a2(0x18f)]=_0x288426;}[_0x4afe6d(0x380)](){const _0x19466d=_0x4afe6d;var _0x3f8762;return(_0x3f8762=this['_getConfig']()[_0x19466d(0x2cd)])==null?{}:_0x3f8762;}async[_0x4afe6d(0x3bb)](_0x4e45cf){const _0x54f98b=_0x4afe6d;let _0x33be7c=this[_0x54f98b(0x380)]();if(_0x47183d(_0x4e45cf,_0x33be7c),_0x33be7c[_0x54f98b(0x3d0)])return _0x33be7c['upload'](_0x4e45cf);let _0x2e38d1=await this[_0x54f98b(0x369)](_0x4e45cf);return{'id':_0x2e38d1,'name':_0x4e45cf['name'],'mimeType':_0x4e45cf['type'],'size':_0x4e45cf[_0x54f98b(0x389)],'sourceType':'UUID','source':_0x2e38d1};}async['_upload'](_0x36985b){const _0x3c7e0b=_0x4afe6d;let _0x1a4dee=this[_0x3c7e0b(0x18f)]['getFocusedUnit'](),_0x4aeab4=_0x1a4dee==null?void 0x0:_0x1a4dee['getUnitId']();if(!_0x4aeab4)throw Error(_0x3c7e0b(0x396));let _0xce87d1=new FormData();_0xce87d1[_0x3c7e0b(0x2ae)](_0x3c7e0b(0x372),_0x36985b);let _0x1f0e82=this['_getUploadFileURL']()+_0x3c7e0b(0x102)+_0x36985b['size']['toString']()+_0x3c7e0b(0x3aa)+_0x3a112b['FileSource']['UnitEmbedded']+'&assign='+encodeURIComponent(_0x4aeab4),_0x746feb=(await this[_0x3c7e0b(0x1e3)][_0x3c7e0b(0x381)](_0x1f0e82,{'body':_0xce87d1}))[_0x3c7e0b(0x271)][_0x3c7e0b(0x140)];if(typeof _0x746feb!=_0x3c7e0b(0x1ab)||!_0x746feb)throw Error(_0x3c7e0b(0x42b));return _0x746feb;}[_0x4afe6d(0x3bd)](){const _0x299950=_0x4afe6d;var _0x349309;return(_0x349309=this[_0x299950(0x230)]()[_0x299950(0x2f0)])==null?_0x299950(0x210):_0x349309;}[_0x4afe6d(0x230)](){const _0x466321=_0x4afe6d;var _0x21afe0;return(_0x21afe0=this[_0x466321(0x3b8)][_0x466321(0x170)]('collaboration-client.config'))==null?{}:_0x21afe0;}};_0x229743=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932['HTTPService'])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x192)])),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x21c)]))],_0x229743);function _0x47183d(_0x52a89f,_0x5f4c4b){const _0x32989c=_0x4afe6d;var _0x4ebefc;if(_0x5f4c4b['maxSize']!=null&&_0x52a89f[_0x32989c(0x389)]>_0x5f4c4b['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x4ebefc=_0x5f4c4b[_0x32989c(0x3bf)])!=null&&_0x4ebefc['length']&&!_0x5f4c4b[_0x32989c(0x3bf)]['some'](_0x136dbd=>_0x52a89f[_0x32989c(0x154)]===_0x136dbd||_0x52a89f['name'][_0x32989c(0x1a6)](_0x136dbd)||_0x136dbd[_0x32989c(0x1a6)]('/*')&&_0x52a89f['type']['startsWith'](_0x136dbd['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x2ddecb=class{constructor(_0x39269a,_0x31c6b4,_0x53fa59){const _0x1e0c56=_0x4afe6d;this['_configService']=_0x39269a,this['_httpService']=_0x31c6b4,this[_0x1e0c56(0x218)]=_0x53fa59,this[_0x1e0c56(0x348)]();}[_0x4afe6d(0x348)](){const _0x3f99eb=_0x4afe6d;this[_0x3f99eb(0x1e3)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x1869ec,_0xaa278a)=>_0xaa278a(_0x1869ec)[_0x3f99eb(0x33c)]((0x0,_0x501c4e[_0x3f99eb(0x253)])(async _0x3b3995=>{const _0x1955d4=_0x3f99eb;let _0x41f210=_0x3b3995;if(_0x41f210[_0x1955d4(0x35f)]===0x191){if(typeof window>'u')throw Error(_0x1955d4(0x27a));if(window[_0x1955d4(0x234)](this[_0x1955d4(0x218)]['t'](_0x1955d4(0x2d7)))){let _0x1f9511=window['encodeURIComponent'](window[_0x1955d4(0x231)][_0x1955d4(0x3c3)]);window[_0x1955d4(0x231)][_0x1955d4(0x3c3)]=this['_getLoginPath']()+_0x1955d4(0x244)+_0x1f9511;}}return _0x41f210;}))});}[_0x4afe6d(0x144)](){const _0x585bb7=_0x4afe6d;var _0x31b366;let _0x95f8be=this[_0x585bb7(0x3b8)][_0x585bb7(0x170)](_0x440361);return(_0x31b366=_0x95f8be==null?void 0x0:_0x95f8be['loginUrlKey'])==null?_0x585bb7(0x27b):_0x31b366;}};_0x2ddecb=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x2,(0x0,_0x54340d['Inject'])(_0x54340d['LocaleService']))],_0x2ddecb);let _0x91ddb2=class extends _0x54340d['Disposable']{constructor(_0xb7bb7,_0x2bbb1b){const _0xc704c2=_0x4afe6d;super(),this[_0xc704c2(0x40a)]=_0xb7bb7,this['_configService']=_0x2bbb1b,_0x1d93f6(this,'_cfgEnableObjInherit',!0x1),this[_0xc704c2(0x337)]();}[_0x4afe6d(0x337)](){let _0x1879ce=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x3c3932['MergeInterceptorFactory'])({'isMatch'(_0x1351fb){const _0x342769=_0x4f14;var _0x18eb84;if(_0x1351fb[_0x342769(0x3cf)]==='POST'&&(_0x18eb84=_0x1351fb[_0x342769(0x123)])!=null&&_0x18eb84[_0x342769(0x271)]){let {objectID:_0x1bba03,objectType:_0x3dd22d}=_0x1351fb[_0x342769(0x123)][_0x342769(0x271)]||{};if(!_0x1bba03||_0x3dd22d===void 0x0)return!0x1;let _0x3d2af3=_0x1879ce[_0x342769(0x418)]()+'/'+_0x3dd22d+_0x342769(0x325)+_0x1bba03+_0x342769(0x2be);if(_0x1351fb[_0x342769(0x161)]===_0x3d2af3)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x56b37f){const _0x58b4af=_0x4f14;var _0x2f3df6;return(_0x2f3df6=_0x56b37f[_0x58b4af(0x123)])==null?void 0x0:_0x2f3df6[_0x58b4af(0x271)];},'mergeParamsToRequest'(_0x3cae69,_0x5e3566){const _0x451f56=_0x4f14;let _0x481435=_0x1879ce[_0x451f56(0x418)]()+'/-/object/-/batch_allowed',_0x1aaed3=_0x3cae69[_0x451f56(0x3e4)]((_0x3189b4,_0x45d2c1)=>{const _0x1f2ef8=_0x451f56;let {unitID:_0x3ff294,objectID:_0x43113d,objectType:_0x343703,actions:_0x4a71cb}=_0x45d2c1;return _0x3189b4[_0x3ff294]||(_0x3189b4[_0x3ff294]={}),_0x3189b4[_0x3ff294][_0x43113d]||(_0x3189b4[_0x3ff294][_0x43113d]={'objectID':_0x43113d,'objectType':_0x343703,'actions':[]}),_0x3189b4[_0x3ff294][_0x43113d][_0x1f2ef8(0x25c)][_0x1f2ef8(0x399)](..._0x4a71cb),_0x3189b4;},{}),_0x181469=[];for(let _0x14bf63 in _0x1aaed3)for(let _0x3d1df9 in _0x1aaed3[_0x14bf63]){let {actions:_0x3c8bd6,objectType:_0x5e229f}=_0x1aaed3[_0x14bf63][_0x3d1df9],_0x3a862a=[...new Set(_0x3c8bd6)];_0x181469[_0x451f56(0x399)]({'unitID':_0x14bf63,'objectID':_0x3d1df9,'objectType':_0x5e229f,'actions':_0x3a862a});}return new _0x3c3932[(_0x451f56(0x310))](_0x451f56(0x1ad),_0x481435,{'headers':_0x5e3566[_0x451f56(0x27d)],'withCredentials':_0x5e3566['withCredentials'],'responseType':_0x5e3566['responseType'],'body':{'requests':_0x181469}});}},{'distributeResult'(_0x506349,_0x2e7bc7){const _0x30841f=_0x4f14;let {objectActions:_0x4d50a5}=_0x506349;return _0x2e7bc7[_0x30841f(0x299)](_0x2bf7de=>{const _0x29df94=_0x30841f;let {unitID:_0x48b018,objectID:_0x10866e,actions:_0x34d9c3}=_0x2bf7de,_0x4c16c6=_0x4d50a5['find'](_0x12e861=>_0x12e861[_0x29df94(0x3b1)]===_0x48b018&&_0x12e861[_0x29df94(0x197)]===_0x10866e);return{'config':_0x2bf7de,'result':{'actions':_0x34d9c3[_0x29df94(0x299)](_0x3ccef2=>_0x4c16c6==null?void 0x0:_0x4c16c6[_0x29df94(0x25c)]['find'](_0x4ee95b=>_0x4ee95b[_0x29df94(0x20f)]===_0x3ccef2))[_0x29df94(0x176)](_0x2769cc=>!!_0x2769cc),'error':_0x506349[_0x29df94(0x106)]}};});}})}));}[_0x4afe6d(0x418)](){const _0x2afad1=_0x4afe6d;var _0xbe41ae;let _0x139e2b=this[_0x2afad1(0x3b8)][_0x2afad1(0x170)](_0x440361);return(_0xbe41ae=_0x139e2b==null?void 0x0:_0x139e2b[_0x2afad1(0x419)])==null?_0x2afad1(0x258):_0xbe41ae;}async[_0x4afe6d(0x1bf)](_0x2ed5e0){const _0x41a11a=_0x4afe6d;let _0x27d14e=this[_0x41a11a(0x418)]()+'/'+_0x2ed5e0[_0x41a11a(0x323)]+_0x41a11a(0x1c5);return(await this['_HTTPService'][_0x41a11a(0x381)](_0x27d14e,{'body':_0x2ed5e0}))[_0x41a11a(0x271)]['objectID']||'';}async[_0x4afe6d(0x146)](_0x35499b){const _0x29775f=_0x4afe6d;let _0x4d0f88=this['_getAPIPrefixPath']()+_0x29775f(0x3a7);return(await this[_0x29775f(0x40a)][_0x29775f(0x381)](_0x4d0f88,{'body':_0x35499b}))[_0x29775f(0x271)][_0x29775f(0x104)];}async[_0x4afe6d(0x13f)](_0x3add05){const _0x1a8aef=_0x4afe6d;var _0x37faa8;let _0x532855=this[_0x1a8aef(0x418)]()+'/'+_0x3add05[_0x1a8aef(0x323)]+_0x1a8aef(0x325)+_0x3add05[_0x1a8aef(0x197)],_0x84d43f=await this[_0x1a8aef(0x40a)][_0x1a8aef(0x1de)](_0x532855,{'body':_0x3add05});if((_0x84d43f==null||(_0x37faa8=_0x84d43f[_0x1a8aef(0x271)])==null||(_0x37faa8=_0x37faa8[_0x1a8aef(0x106)])==null?void 0x0:_0x37faa8[_0x1a8aef(0x1a3)])!==0x1)throw Error(_0x1a8aef(0x15a));}async[_0x4afe6d(0x3e2)](_0x4f9fae){const _0x306681=_0x4afe6d;let _0x529ca6=this[_0x306681(0x418)]()+'/'+_0x4f9fae['objectType']+_0x306681(0x325)+_0x4f9fae[_0x306681(0x197)]+'/allowed';return(await this[_0x306681(0x40a)][_0x306681(0x381)](_0x529ca6,{'body':_0x4f9fae}))[_0x306681(0x271)][_0x306681(0x25c)];}async[_0x4afe6d(0x444)](_0x56c1df){const _0x5cf1d4=_0x4afe6d;let _0x39f415=this[_0x5cf1d4(0x418)]()+_0x5cf1d4(0x128);return(await this[_0x5cf1d4(0x40a)][_0x5cf1d4(0x381)](_0x39f415,{'body':{'requests':_0x56c1df}}))['body']['objectActions'];}async[_0x4afe6d(0x225)](_0x43bc44){const _0x152a72=_0x4afe6d;let _0x40cdf6=this[_0x152a72(0x418)]()+'/'+_0x43bc44[_0x152a72(0x323)]+_0x152a72(0x37f),_0x31e86c=await this['_HTTPService']['post'](_0x40cdf6,{'body':_0x43bc44});return{'roles':_0x31e86c['body']['roles'],'actions':_0x31e86c[_0x152a72(0x271)]['actions']};}async[_0x4afe6d(0x386)](_0x884334){const _0x2bd5b4=_0x4afe6d;let _0x2052cf=this[_0x2bd5b4(0x418)]()+'/collaborator';await this[_0x2bd5b4(0x40a)][_0x2bd5b4(0x151)](_0x2052cf,{'params':{'collaboratorID':_0x884334[_0x2bd5b4(0x18a)],'objectID':_0x884334[_0x2bd5b4(0x197)],'unitID':_0x884334['unitID']}});}async[_0x4afe6d(0x2fa)](_0x3e8c11){const _0x4d1bba=_0x4afe6d;let _0x2ec7fd=this[_0x4d1bba(0x418)]()+_0x4d1bba(0x322);await this['_HTTPService'][_0x4d1bba(0x443)](_0x2ec7fd,{'body':_0x3e8c11});}async[_0x4afe6d(0x11f)](_0x14190e){const _0x191c54=_0x4afe6d;let _0x59a036=this[_0x191c54(0x418)]()+_0x191c54(0x322);await this[_0x191c54(0x40a)]['post'](_0x59a036,{'body':_0x14190e});}async[_0x4afe6d(0x177)](_0x276178){const _0x2f3335=_0x4afe6d;var _0x42538a;let _0x549a98=this[_0x2f3335(0x418)]()+_0x2f3335(0x322),_0x16ea48=await this[_0x2f3335(0x40a)][_0x2f3335(0x28f)](_0x549a98,{'params':{'objectID':_0x276178[_0x2f3335(0x197)],'unitID':_0x276178[_0x2f3335(0x3b1)]}});return this[_0x2f3335(0x35d)]((_0x42538a=_0x16ea48[_0x2f3335(0x271)][_0x2f3335(0x329)])==null?!0x1:_0x42538a),_0x16ea48[_0x2f3335(0x271)][_0x2f3335(0x18c)];}async[_0x4afe6d(0x10a)](_0x54ac3f){const _0x154662=_0x4afe6d;let _0x3d47d2=this['_getAPIPrefixPath']()+_0x154662(0x322);await this[_0x154662(0x40a)]['put'](_0x3d47d2,{'body':_0x54ac3f});}['setCfgEnableObjInherit'](_0x25d895){this['_cfgEnableObjInherit']=_0x25d895;}['getCfgEnableObjInherit'](){return this['_cfgEnableObjInherit'];}};_0x91ddb2=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x192)]))],_0x91ddb2);function _0x345363(_0x719aa){const _0x41cde2=_0x4afe6d;return _0x719aa instanceof Uint8Array||ArrayBuffer[_0x41cde2(0x31d)](_0x719aa)&&_0x719aa[_0x41cde2(0x194)]['name']===_0x41cde2(0x1b0)&&_0x41cde2(0x3b4)in _0x719aa&&_0x719aa[_0x41cde2(0x3b4)]===0x1;}function _0x444602(_0x180b78){const _0x566cbe=_0x4afe6d;if(typeof _0x180b78!='number')throw TypeError(_0x566cbe(0x131)+typeof _0x180b78);if(!Number[_0x566cbe(0x291)](_0x180b78)||_0x180b78<0x0)throw RangeError(_0x566cbe(0x2e5)+_0x180b78);}function _0x310a93(_0x4a830f,_0x222492,_0x4917fb=''){const _0x5b5180=_0x4afe6d;let _0x2e3b01=_0x345363(_0x4a830f),_0x26769f=_0x4a830f==null?void 0x0:_0x4a830f[_0x5b5180(0x414)],_0x3947ae=_0x222492!==void 0x0;if(!_0x2e3b01||_0x3947ae&&_0x26769f!==_0x222492){let _0x589d2d=_0x4917fb&&'\x22'+_0x4917fb+'\x22\x20',_0x3515a5=_0x3947ae?_0x5b5180(0x37a)+_0x222492:'',_0x2a2154=_0x2e3b01?'length='+_0x26769f:'type='+typeof _0x4a830f,_0x232253=_0x589d2d+'expected\x20Uint8Array'+_0x3515a5+',\x20got\x20'+_0x2a2154;throw _0x2e3b01?RangeError(_0x232253):TypeError(_0x232253);}return _0x4a830f;}function _0x54a535(_0x1a7698){const _0x19a0d7=_0x4afe6d;return new Uint32Array(_0x1a7698[_0x19a0d7(0x351)],_0x1a7698[_0x19a0d7(0x16c)],Math[_0x19a0d7(0x446)](_0x1a7698[_0x19a0d7(0x32f)]/0x4));}function _0x6f6655(..._0x36b655){for(let _0xcb0363=0x0;_0xcb0363<_0x36b655['length'];_0xcb0363++)_0x36b655[_0xcb0363]['fill'](0x0);}let _0x508774=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44,_0x267239=_0x27c500=>_0x27c500<<0x18&0xff000000|_0x27c500<<0x8&0xff0000|_0x27c500>>>0x8&0xff00|_0x27c500>>>0x18&0xff,_0x4fbda8=_0x508774?_0x283a1f=>_0x283a1f:_0x3adba8=>{for(let _0x2e3d0d=0x0;_0x2e3d0d<_0x3adba8['length'];_0x2e3d0d++)_0x3adba8[_0x2e3d0d]=_0x267239(_0x3adba8[_0x2e3d0d]);return _0x3adba8;};function _0x3cdb17(_0x136769){const _0x3d7016=_0x4afe6d;if(typeof _0x136769!='string')throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x3d7016(0x42e)](_0x136769));}function _0xb11e7(_0x47066a,_0x1df2ae){const _0x1d992d=_0x4afe6d;return!_0x47066a['byteLength']||!_0x1df2ae[_0x1d992d(0x32f)]?!0x1:_0x47066a[_0x1d992d(0x351)]===_0x1df2ae[_0x1d992d(0x351)]&&_0x47066a['byteOffset']<_0x1df2ae[_0x1d992d(0x16c)]+_0x1df2ae['byteLength']&&_0x1df2ae[_0x1d992d(0x16c)]<_0x47066a['byteOffset']+_0x47066a[_0x1d992d(0x32f)];}function _0xfe040(_0x34b618,_0x549d9a){const _0x125fc6=_0x4afe6d;if(_0xb11e7(_0x34b618,_0x549d9a)&&_0x34b618['byteOffset']<_0x549d9a[_0x125fc6(0x16c)])throw Error(_0x125fc6(0x438));}function _0xd3b04d(..._0x1548f2){const _0x3b3ef4=_0x4afe6d;let _0xb29373=0x0;for(let _0x589959=0x0;_0x589959<_0x1548f2['length'];_0x589959++){let _0x2098b7=_0x1548f2[_0x589959];_0x310a93(_0x2098b7),_0xb29373+=_0x2098b7['length'];}let _0x488e30=new Uint8Array(_0xb29373);for(let _0x4f5b09=0x0,_0x2b638a=0x0;_0x4f5b09<_0x1548f2[_0x3b3ef4(0x414)];_0x4f5b09++){let _0xa958c4=_0x1548f2[_0x4f5b09];_0x488e30[_0x3b3ef4(0x437)](_0xa958c4,_0x2b638a),_0x2b638a+=_0xa958c4['length'];}return _0x488e30;}let _0x2a0d26=(_0x20914d,_0x5e9a3d)=>{const _0xd84038=_0x4afe6d;function _0x1e79a9(_0x3351e4,..._0x217286){const _0x25ca64=_0x4f14;if(_0x310a93(_0x3351e4,void 0x0,_0x25ca64(0x29c)),_0x20914d[_0x25ca64(0x15b)]!==void 0x0){let _0x3bda24=_0x217286[0x0];_0x310a93(_0x3bda24,_0x20914d[_0x25ca64(0x2fe)]?void 0x0:_0x20914d[_0x25ca64(0x15b)],'nonce');}let _0x54e452=_0x20914d[_0x25ca64(0x2a6)];_0x54e452&&_0x217286[0x1]!==void 0x0&&_0x310a93(_0x217286[0x1],void 0x0,_0x25ca64(0x188));let _0x165302=_0x5e9a3d(_0x3351e4,..._0x217286),_0x15973a=(_0x10ae59,_0x52a21a)=>{const _0x5d817a=_0x25ca64;if(_0x52a21a!==void 0x0){if(_0x10ae59!==0x2)throw Error(_0x5d817a(0x265));_0x310a93(_0x52a21a,void 0x0,_0x5d817a(0x411));}},_0x574faa=!0x1;return{'encrypt'(_0x2f00f9,_0x15da1d){const _0x301abd=_0x25ca64;if(_0x574faa)throw Error(_0x301abd(0x403));return _0x574faa=!0x0,_0x310a93(_0x2f00f9),_0x15973a(_0x165302[_0x301abd(0x39a)][_0x301abd(0x414)],_0x15da1d),_0x165302[_0x301abd(0x39a)](_0x2f00f9,_0x15da1d);},'decrypt'(_0x694862,_0x192b0b){const _0x315760=_0x25ca64;if(_0x310a93(_0x694862),_0x54e452&&_0x694862[_0x315760(0x414)]<_0x54e452)throw Error(_0x315760(0x19f)+_0x54e452);return _0x15973a(_0x165302['decrypt'][_0x315760(0x414)],_0x192b0b),_0x165302[_0x315760(0x19b)](_0x694862,_0x192b0b);}};}return Object[_0xd84038(0x3a9)](_0x1e79a9,_0x20914d),_0x1e79a9;};function _0x29cee7(_0x20cb3a,_0x356da6,_0x12c74c=!0x0){const _0x4001ee=_0x4afe6d;if(_0x356da6===void 0x0)return new Uint8Array(_0x20cb3a);if(_0x310a93(_0x356da6,void 0x0,_0x4001ee(0x411)),_0x356da6[_0x4001ee(0x414)]!==_0x20cb3a)throw Error(_0x4001ee(0x40c)+_0x20cb3a+_0x4001ee(0x288)+_0x356da6['length']);if(_0x12c74c&&!_0x442f09(_0x356da6))throw Error(_0x4001ee(0x10e));return _0x356da6;}function _0x442f09(_0x5b325c){const _0x18531d=_0x4afe6d;return _0x5b325c[_0x18531d(0x16c)]%0x4==0x0;}function _0x6f5fc3(_0xfc811e){const _0x371758=_0x4afe6d;return Uint8Array[_0x371758(0x2fd)](_0x310a93(_0xfc811e));}function _0x535155(_0x302dfc=0x20){const _0x3f96a6=_0x4afe6d;_0x444602(_0x302dfc);let _0x2473bc=typeof globalThis==_0x3f96a6(0x2bd)?globalThis[_0x3f96a6(0x297)]:null;if(typeof(_0x2473bc==null?void 0x0:_0x2473bc[_0x3f96a6(0x1a5)])!=_0x3f96a6(0x1cf))throw Error(_0x3f96a6(0x2f2));return _0x2473bc[_0x3f96a6(0x1a5)](new Uint8Array(_0x302dfc));}function _0x28be7d(_0x2db70b){const _0x38300f=_0x4afe6d;if(![0x10,0x18,0x20]['includes'](_0x2db70b[_0x38300f(0x414)]))throw Error(_0x38300f(0x391)+_0x2db70b[_0x38300f(0x414)]);}function _0x84d3ab(_0x1f2f8b){return _0x1f2f8b<<0x1^0x11b&-(_0x1f2f8b>>0x7);}function _0x3318bd(_0x574231,_0x4dc89e){let _0x209139=0x0;for(;_0x4dc89e>0x0;_0x4dc89e>>=0x1)_0x209139^=_0x574231&-(_0x4dc89e&0x1),_0x574231=_0x84d3ab(_0x574231);return _0x209139;}let _0x5d8d12=((()=>{let _0xbbcbcc=new Uint8Array(0x100);for(let _0xe45385=0x0,_0x386761=0x1;_0xe45385<0x100;_0xe45385++,_0x386761^=_0x84d3ab(_0x386761))_0xbbcbcc[_0xe45385]=_0x386761;let _0x45edc0=new Uint8Array(0x100);_0x45edc0[0x0]=0x63;for(let _0x4a587e=0x0;_0x4a587e<0xff;_0x4a587e++){let _0x4bb642=_0xbbcbcc[0xff-_0x4a587e];_0x4bb642|=_0x4bb642<<0x8,_0x45edc0[_0xbbcbcc[_0x4a587e]]=(_0x4bb642^_0x4bb642>>0x4^_0x4bb642>>0x5^_0x4bb642>>0x6^_0x4bb642>>0x7^0x63)&0xff;}return _0x6f6655(_0xbbcbcc),_0x45edc0;})()),_0x159678=_0x5d8d12[_0x4afe6d(0x299)]((_0x2e8530,_0x3b8197)=>_0x5d8d12[_0x4afe6d(0x25d)](_0x3b8197)),_0x559c59=_0x2280a7=>_0x2280a7<<0x18|_0x2280a7>>>0x8,_0x937f3f=_0x4b125a=>_0x4b125a<<0x8|_0x4b125a>>>0x18;function _0x1f64f1(_0x93e231,_0x47c823){const _0x2b6fc5=_0x4afe6d;if(_0x93e231[_0x2b6fc5(0x414)]!==0x100)throw Error(_0x2b6fc5(0x34a));let _0x4289b1=new Uint32Array(0x100)['map']((_0x3d23f7,_0x5a698e)=>_0x47c823(_0x93e231[_0x5a698e])),_0x1a3b39=_0x4289b1[_0x2b6fc5(0x299)](_0x937f3f),_0x12aba8=_0x1a3b39[_0x2b6fc5(0x299)](_0x937f3f),_0x42affe=_0x12aba8[_0x2b6fc5(0x299)](_0x937f3f),_0x1de64a=new Uint32Array(0x100*0x100),_0x27da49=new Uint32Array(0x100*0x100),_0x267963=new Uint16Array(0x100*0x100);for(let _0x3a5377=0x0;_0x3a5377<0x100;_0x3a5377++)for(let _0x24e920=0x0;_0x24e920<0x100;_0x24e920++){let _0x1857ac=_0x3a5377*0x100+_0x24e920;_0x1de64a[_0x1857ac]=_0x4289b1[_0x3a5377]^_0x1a3b39[_0x24e920],_0x27da49[_0x1857ac]=_0x12aba8[_0x3a5377]^_0x42affe[_0x24e920],_0x267963[_0x1857ac]=_0x93e231[_0x3a5377]<<0x8|_0x93e231[_0x24e920];}return{'sbox':_0x93e231,'sbox2':_0x267963,'T0':_0x4289b1,'T1':_0x1a3b39,'T2':_0x12aba8,'T3':_0x42affe,'T01':_0x1de64a,'T23':_0x27da49};}let _0x4d4cff=_0x1f64f1(_0x5d8d12,_0x2348fb=>_0x3318bd(_0x2348fb,0x3)<<0x18|_0x2348fb<<0x10|_0x2348fb<<0x8|_0x3318bd(_0x2348fb,0x2)),_0x4e19c1=_0x1f64f1(_0x159678,_0x19e031=>_0x3318bd(_0x19e031,0xb)<<0x18|_0x3318bd(_0x19e031,0xd)<<0x10|_0x3318bd(_0x19e031,0x9)<<0x8|_0x3318bd(_0x19e031,0xe)),_0x25e277=((()=>{let _0x35d84b=new Uint8Array(0x10);for(let _0x536203=0x0,_0x188c63=0x1;_0x536203<0x10;_0x536203++,_0x188c63=_0x84d3ab(_0x188c63))_0x35d84b[_0x536203]=_0x188c63;return _0x35d84b;})());function _0x5e041a(_0x110da5){const _0x6bad20=_0x4afe6d;_0x310a93(_0x110da5);let _0x3c3bd6=_0x110da5[_0x6bad20(0x414)];_0x28be7d(_0x110da5);let {sbox2:_0xff1dc}=_0x4d4cff,_0x4383d4=[];(!_0x508774||!_0x442f09(_0x110da5))&&_0x4383d4[_0x6bad20(0x399)](_0x110da5=_0x6f5fc3(_0x110da5));let _0x14d7dc=_0x4fbda8(_0x54a535(_0x110da5)),_0x4bdbc6=_0x14d7dc[_0x6bad20(0x414)],_0xb9090b=_0x2aadb4=>_0x5d64d0(_0xff1dc,_0x2aadb4,_0x2aadb4,_0x2aadb4,_0x2aadb4),_0x10b177=new Uint32Array(_0x3c3bd6+0x1c);_0x10b177[_0x6bad20(0x437)](_0x14d7dc);for(let _0x5dd319=_0x4bdbc6;_0x5dd319<_0x10b177[_0x6bad20(0x414)];_0x5dd319++){let _0x282530=_0x10b177[_0x5dd319-0x1];_0x5dd319%_0x4bdbc6===0x0?_0x282530=_0xb9090b(_0x559c59(_0x282530))^_0x25e277[_0x5dd319/_0x4bdbc6-0x1]:_0x4bdbc6>0x6&&_0x5dd319%_0x4bdbc6===0x4&&(_0x282530=_0xb9090b(_0x282530)),_0x10b177[_0x5dd319]=_0x10b177[_0x5dd319-_0x4bdbc6]^_0x282530;}return _0x6f6655(..._0x4383d4),_0x10b177;}function _0x436c9d(_0x3a42d2){const _0x552def=_0x4afe6d;let _0x4e83ac=_0x5e041a(_0x3a42d2),_0x3b4c7c=_0x4e83ac[_0x552def(0x1b6)](),_0x4ca041=_0x4e83ac['length'],{sbox2:_0x1aac93}=_0x4d4cff,{T0:_0x3c9322,T1:_0x22d56c,T2:_0x43d198,T3:_0x19a284}=_0x4e19c1;for(let _0x2ecca2=0x0;_0x2ecca2<_0x4ca041;_0x2ecca2+=0x4)for(let _0xa7dc3f=0x0;_0xa7dc3f<0x4;_0xa7dc3f++)_0x3b4c7c[_0x2ecca2+_0xa7dc3f]=_0x4e83ac[_0x4ca041-_0x2ecca2-0x4+_0xa7dc3f];_0x6f6655(_0x4e83ac);for(let _0x1bd4d0=0x4;_0x1bd4d0<_0x4ca041-0x4;_0x1bd4d0++){let _0x1d1d75=_0x3b4c7c[_0x1bd4d0],_0x3a20eb=_0x5d64d0(_0x1aac93,_0x1d1d75,_0x1d1d75,_0x1d1d75,_0x1d1d75);_0x3b4c7c[_0x1bd4d0]=_0x3c9322[_0x3a20eb&0xff]^_0x22d56c[_0x3a20eb>>>0x8&0xff]^_0x43d198[_0x3a20eb>>>0x10&0xff]^_0x19a284[_0x3a20eb>>>0x18];}return _0x3b4c7c;}function _0x291043(_0x2ae66f,_0x11a7c6,_0x368dff,_0x1bdf39,_0x20921f,_0x52f71e){return _0x2ae66f[_0x368dff<<0x8&0xff00|_0x1bdf39>>>0x8&0xff]^_0x11a7c6[_0x20921f>>>0x8&0xff00|_0x52f71e>>>0x18&0xff];}function _0x5d64d0(_0x21b188,_0x2da985,_0x19dacd,_0x34aa79,_0x3bb651){return _0x21b188[_0x2da985&0xff|_0x19dacd&0xff00]|_0x21b188[_0x34aa79>>>0x10&0xff|_0x3bb651>>>0x10&0xff00]<<0x10;}function _0x2a947e(_0x10026d,_0x515eba,_0x5e2600,_0x3f2bfd,_0x492a85){const _0x46f6f4=_0x4afe6d;let {sbox2:_0x3bf0e9,T01:_0x385f9b,T23:_0x4a2938}=_0x4d4cff,_0x320687=0x0;_0x515eba^=_0x10026d[_0x320687++],_0x5e2600^=_0x10026d[_0x320687++],_0x3f2bfd^=_0x10026d[_0x320687++],_0x492a85^=_0x10026d[_0x320687++];let _0x399ebe=_0x10026d[_0x46f6f4(0x414)]/0x4-0x2;for(let _0x5ac76f=0x0;_0x5ac76f<_0x399ebe;_0x5ac76f++){let _0x180523=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x515eba,_0x5e2600,_0x3f2bfd,_0x492a85),_0x524588=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x5e2600,_0x3f2bfd,_0x492a85,_0x515eba),_0x2bbc0c=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x3f2bfd,_0x492a85,_0x515eba,_0x5e2600),_0x52828e=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x492a85,_0x515eba,_0x5e2600,_0x3f2bfd);_0x515eba=_0x180523,_0x5e2600=_0x524588,_0x3f2bfd=_0x2bbc0c,_0x492a85=_0x52828e;}return{'s0':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x515eba,_0x5e2600,_0x3f2bfd,_0x492a85),'s1':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x5e2600,_0x3f2bfd,_0x492a85,_0x515eba),'s2':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x3f2bfd,_0x492a85,_0x515eba,_0x5e2600),'s3':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x492a85,_0x515eba,_0x5e2600,_0x3f2bfd)};}function _0xb7c610(_0x334e0d,_0x296bae,_0x4764bc,_0x1b3c0a,_0x7421bf){const _0x506679=_0x4afe6d;let {sbox2:_0x42cce7,T01:_0x4e5cd9,T23:_0xdd399a}=_0x4e19c1,_0x76ca48=0x0;_0x296bae^=_0x334e0d[_0x76ca48++],_0x4764bc^=_0x334e0d[_0x76ca48++],_0x1b3c0a^=_0x334e0d[_0x76ca48++],_0x7421bf^=_0x334e0d[_0x76ca48++];let _0x5e34be=_0x334e0d[_0x506679(0x414)]/0x4-0x2;for(let _0x5f40e4=0x0;_0x5f40e4<_0x5e34be;_0x5f40e4++){let _0x35161e=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x296bae,_0x7421bf,_0x1b3c0a,_0x4764bc),_0x8fc271=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x4764bc,_0x296bae,_0x7421bf,_0x1b3c0a),_0x2f2a16=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x1b3c0a,_0x4764bc,_0x296bae,_0x7421bf),_0x36bd8e=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x7421bf,_0x1b3c0a,_0x4764bc,_0x296bae);_0x296bae=_0x35161e,_0x4764bc=_0x8fc271,_0x1b3c0a=_0x2f2a16,_0x7421bf=_0x36bd8e;}return{'s0':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x296bae,_0x7421bf,_0x1b3c0a,_0x4764bc),'s1':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x4764bc,_0x296bae,_0x7421bf,_0x1b3c0a),'s2':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x1b3c0a,_0x4764bc,_0x296bae,_0x7421bf),'s3':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x7421bf,_0x1b3c0a,_0x4764bc,_0x296bae)};}function _0x530f77(_0x47a2d5){const _0x3cd763=_0x4afe6d;if(_0x310a93(_0x47a2d5),_0x47a2d5[_0x3cd763(0x414)]%0x10!=0x0)throw Error(_0x3cd763(0x28b));}function _0x4e4711(_0x1c7d7a,_0x5ec0b9,_0x1d170b){const _0x4c36da=_0x4afe6d;_0x310a93(_0x1c7d7a);let _0x134eaf=_0x1c7d7a[_0x4c36da(0x414)],_0x24e345=_0x134eaf%0x10;if(!_0x5ec0b9&&_0x24e345!==0x0)throw Error(_0x4c36da(0x235));if(_0x5ec0b9){let _0x44a0d1=0x10-_0x24e345;_0x44a0d1||(_0x44a0d1=0x10),_0x134eaf+=_0x44a0d1;}_0x1d170b=_0x29cee7(_0x134eaf,_0x1d170b),_0xfe040(_0x1c7d7a,_0x1d170b),(!_0x508774||!_0x442f09(_0x1c7d7a))&&(_0x1c7d7a=_0x6f5fc3(_0x1c7d7a));let _0x4c8d06=_0x54a535(_0x1c7d7a);return _0x4fbda8(_0x4c8d06),{'b':_0x4c8d06,'o':_0x54a535(_0x1d170b),'out':_0x1d170b};}function _0x55f499(_0x385b58,_0x121248){const _0x124ef9=_0x4afe6d;if(!_0x121248)return _0x385b58;let _0x200530=_0x385b58[_0x124ef9(0x414)];if(_0x200530===0x0)throw Error(_0x124ef9(0x43f));let _0x75e69c=_0x385b58[_0x200530-0x1],_0x305db1=0x1;_0x305db1&=_0x75e69c-0x1>>>0x1f^0x1,_0x305db1&=0x10-_0x75e69c>>>0x1f^0x1;for(let _0x15cbd6=0x0;_0x15cbd6<0x10;_0x15cbd6++){let _0x5a1cdc=_0x15cbd6-_0x75e69c>>>0x1f,_0x1167e3=+((_0x385b58[_0x200530-0x1-_0x15cbd6]^_0x75e69c)===0x0);_0x305db1&=_0x1167e3|_0x5a1cdc^0x1;}if(!_0x305db1)throw Error(_0x124ef9(0x334));return _0x385b58[_0x124ef9(0x400)](0x0,_0x200530-_0x75e69c);}function _0x332098(_0x4a1c04){const _0xd09e91=_0x4afe6d;let _0x1c470b=new Uint8Array(0x10),_0x5f2a32=_0x54a535(_0x1c470b);_0x1c470b['set'](_0x4a1c04);let _0x36762e=0x10-_0x4a1c04[_0xd09e91(0x414)];for(let _0x5ebadb=0x10-_0x36762e;_0x5ebadb<0x10;_0x5ebadb++)_0x1c470b[_0x5ebadb]=_0x36762e;return _0x5f2a32;}let _0x1e02c4=_0x2a0d26({'blockSize':0x10,'nonceLength':0x10},function(_0x4a6689,_0x1e2b3e,_0x4572a3={}){const _0x1b5e0b=_0x4afe6d;let _0x3a8b15=!_0x4572a3[_0x1b5e0b(0x33e)];return{'encrypt'(_0xff2645,_0x40dabd){const _0x4aa09e=_0x1b5e0b;let _0x50668e=_0x5e041a(_0x4a6689),{b:_0x3afc5a,o:_0x257ef2,out:_0x2c64da}=_0x4e4711(_0xff2645,_0x3a8b15,_0x40dabd),_0x47e2f4=_0x1e2b3e,_0x185c86=[_0x50668e];(!_0x508774||!_0x442f09(_0x47e2f4))&&_0x185c86[_0x4aa09e(0x399)](_0x47e2f4=_0x6f5fc3(_0x47e2f4));let _0x2c216d=_0x54a535(_0x47e2f4);_0x4fbda8(_0x2c216d);let _0x5cff73=_0x2c216d[0x0],_0x55a2f1=_0x2c216d[0x1],_0x33e9ac=_0x2c216d[0x2],_0x26687b=_0x2c216d[0x3],_0x4bb9e9=0x0;for(;_0x4bb9e9+0x4<=_0x3afc5a[_0x4aa09e(0x414)];)_0x5cff73^=_0x3afc5a[_0x4bb9e9+0x0],_0x55a2f1^=_0x3afc5a[_0x4bb9e9+0x1],_0x33e9ac^=_0x3afc5a[_0x4bb9e9+0x2],_0x26687b^=_0x3afc5a[_0x4bb9e9+0x3],{s0:_0x5cff73,s1:_0x55a2f1,s2:_0x33e9ac,s3:_0x26687b}=_0x2a947e(_0x50668e,_0x5cff73,_0x55a2f1,_0x33e9ac,_0x26687b),_0x257ef2[_0x4bb9e9++]=_0x5cff73,_0x257ef2[_0x4bb9e9++]=_0x55a2f1,_0x257ef2[_0x4bb9e9++]=_0x33e9ac,_0x257ef2[_0x4bb9e9++]=_0x26687b;if(_0x3a8b15){let _0x43558d=_0x332098(_0xff2645[_0x4aa09e(0x400)](_0x4bb9e9*0x4));_0x4fbda8(_0x43558d),_0x5cff73^=_0x43558d[0x0],_0x55a2f1^=_0x43558d[0x1],_0x33e9ac^=_0x43558d[0x2],_0x26687b^=_0x43558d[0x3],{s0:_0x5cff73,s1:_0x55a2f1,s2:_0x33e9ac,s3:_0x26687b}=_0x2a947e(_0x50668e,_0x5cff73,_0x55a2f1,_0x33e9ac,_0x26687b),_0x257ef2[_0x4bb9e9++]=_0x5cff73,_0x257ef2[_0x4bb9e9++]=_0x55a2f1,_0x257ef2[_0x4bb9e9++]=_0x33e9ac,_0x257ef2[_0x4bb9e9++]=_0x26687b;}return _0x4fbda8(_0x257ef2),_0x6f6655(..._0x185c86),_0x2c64da;},'decrypt'(_0x22be69,_0x119469){const _0x447184=_0x1b5e0b;_0x530f77(_0x22be69);let _0x1ed0fc=_0x436c9d(_0x4a6689),_0x2b228f=_0x1e2b3e,_0x3e10d0=[_0x1ed0fc];(!_0x508774||!_0x442f09(_0x2b228f))&&_0x3e10d0[_0x447184(0x399)](_0x2b228f=_0x6f5fc3(_0x2b228f));let _0x1d9a48=_0x54a535(_0x2b228f);_0x4fbda8(_0x1d9a48),_0x119469=_0x29cee7(_0x22be69[_0x447184(0x414)],_0x119469),_0xfe040(_0x22be69,_0x119469),(!_0x508774||!_0x442f09(_0x22be69))&&_0x3e10d0[_0x447184(0x399)](_0x22be69=_0x6f5fc3(_0x22be69));let _0x1dd7dc=_0x54a535(_0x22be69),_0x36a0b8=_0x54a535(_0x119469);_0x4fbda8(_0x1dd7dc);let _0x269a17=_0x1d9a48[0x0],_0x49d018=_0x1d9a48[0x1],_0x532ea4=_0x1d9a48[0x2],_0x15e8f1=_0x1d9a48[0x3];for(let _0x5e5f97=0x0;_0x5e5f97+0x4<=_0x1dd7dc[_0x447184(0x414)];){let _0x3cca70=_0x269a17,_0x2e9e6f=_0x49d018,_0x493e4e=_0x532ea4,_0x595ae6=_0x15e8f1;_0x269a17=_0x1dd7dc[_0x5e5f97+0x0],_0x49d018=_0x1dd7dc[_0x5e5f97+0x1],_0x532ea4=_0x1dd7dc[_0x5e5f97+0x2],_0x15e8f1=_0x1dd7dc[_0x5e5f97+0x3];let {s0:_0x72e140,s1:_0x22d152,s2:_0x569391,s3:_0x120611}=_0xb7c610(_0x1ed0fc,_0x269a17,_0x49d018,_0x532ea4,_0x15e8f1);_0x36a0b8[_0x5e5f97++]=_0x72e140^_0x3cca70,_0x36a0b8[_0x5e5f97++]=_0x22d152^_0x2e9e6f,_0x36a0b8[_0x5e5f97++]=_0x569391^_0x493e4e,_0x36a0b8[_0x5e5f97++]=_0x120611^_0x595ae6;}return _0x4fbda8(_0x36a0b8),_0x6f6655(..._0x3e10d0),_0x55f499(_0x119469,_0x3a8b15);}};});function _0x2e33f1(_0x1d2ea7){const _0x310c82=_0x4afe6d;let _0x3332de=atob(_0x1d2ea7),_0x41dcf3=new Uint8Array(_0x3332de[_0x310c82(0x414)]);for(let _0x136871=0x0;_0x136871<_0x3332de[_0x310c82(0x414)];_0x136871++)_0x41dcf3[_0x136871]=_0x3332de[_0x310c82(0x430)](_0x136871);return _0x41dcf3;}function _0x201e42(_0x1b9ff5){const _0xd6c0bd=_0x4afe6d;let _0x41c2a9='';for(let _0x2b105a=0x0;_0x2b105a<_0x1b9ff5['length'];_0x2b105a++)_0x41c2a9+=String[_0xd6c0bd(0x13a)](_0x1b9ff5[_0x2b105a]);return btoa(_0x41c2a9);}function _0x4f39e4(_0x1f3e9e,_0x197706){const _0x4502d5=_0x4afe6d;let _0x45dbc9=_0x2e33f1(_0x197706),_0x215089=_0x535155(0x10);return _0x201e42(_0xd3b04d(_0x215089,_0x1e02c4(_0x45dbc9,_0x215089)[_0x4502d5(0x39a)](_0x3cdb17(_0x1f3e9e))));}function _0xc78ee8(){const _0x2d8a20=_0x4afe6d;let _0x3e1738=(0x0,_0x40a29c[_0x2d8a20(0x173)])()[_0x2d8a20(0x211)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x3e1738){let _0x225c4b={'time':Math['floor'](Date['now']()/0x3e8),'domain':location[_0x2d8a20(0x3d4)]};return _0x4f39e4(JSON[_0x2d8a20(0x1c6)](_0x225c4b),_0x3e1738);}}let _0x13f78f=class{constructor(_0x1941a8){const _0x2c6c56=_0x4afe6d;this[_0x2c6c56(0x1e3)]=_0x1941a8,this['_initRequestHeader']();}[_0x4afe6d(0x41f)](){const _0x2e9c6f=_0x4afe6d;this[_0x2e9c6f(0x1e3)][_0x2e9c6f(0x2cf)]({'interceptor':(_0x49a842,_0x396b13)=>{const _0x5408b2=_0x2e9c6f;let _0x353d83=_0xc78ee8();return _0x353d83&&_0x49a842[_0x5408b2(0x27d)][_0x5408b2(0x437)](_0x5408b2(0x262),_0x353d83),_0x396b13(_0x49a842);}});}};_0x13f78f=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)]))],_0x13f78f);let _0x405412=class extends _0x54340d['RxDisposable']{constructor(_0x43c4a8,_0x394856,_0x37303f){const _0x2b8207=_0x4afe6d;super(),this[_0x2b8207(0x30d)]=_0x43c4a8,this['_snapshotService']=_0x394856,this[_0x2b8207(0x1af)]=_0x37303f,_0x1d93f6(this,'_unitInfo$',new _0x501c4e['BehaviorSubject'](null)),_0x1d93f6(this,_0x2b8207(0x157),new _0x501c4e[(_0x2b8207(0x1d6))]()),_0x1d93f6(this,_0x2b8207(0x2b0),this['_unitInfo$'][_0x2b8207(0x371)]()),_0x1d93f6(this,_0x2b8207(0x382),this[_0x2b8207(0x157)][_0x2b8207(0x371)]());}[_0x4afe6d(0x445)](){const _0x1b93a2=_0x4afe6d;super[_0x1b93a2(0x445)](),this['_unitLoaded$'][_0x1b93a2(0x228)](),this[_0x1b93a2(0x2b9)][_0x1b93a2(0x228)]();}async[_0x4afe6d(0x1db)](_0x29aace,_0x4593fb,_0x5e12da,_0x71b28b){const _0xda0e66=_0x4afe6d;this[_0xda0e66(0x2b9)][_0xda0e66(0x16a)]({'unitId':_0x29aace,'type':_0x4593fb,'subUnitId':_0x71b28b});let _0x3c3d08=null;switch(_0x4593fb){case _0x54340d[_0xda0e66(0x395)]['UNIVER_SHEET']:_0x3c3d08=await this[_0xda0e66(0xfa)][_0xda0e66(0x2d2)](_0x29aace,_0x5e12da,void 0x0,{'initialSubUnitId':_0x71b28b});break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x366)]:_0x3c3d08=await this[_0xda0e66(0xfa)][_0xda0e66(0x2c9)](_0x29aace,_0x5e12da);break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x2f6)]:_0x3c3d08=await this['_snapshotService'][_0xda0e66(0x315)](_0x29aace,_0x5e12da);break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x1b3)]:_0x3c3d08=await this['_snapshotService'][_0xda0e66(0x341)](_0x29aace,_0x5e12da);break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x193)]:_0x3c3d08=await this[_0xda0e66(0xfa)][_0xda0e66(0xf5)](_0x29aace,_0x5e12da);break;default:this[_0xda0e66(0x30d)][_0xda0e66(0x106)](_0xda0e66(0x15d),_0xda0e66(0x3d6));break;}return _0x3c3d08&&this[_0xda0e66(0x157)][_0xda0e66(0x16a)](_0x3c3d08),_0x3c3d08;}async[_0x4afe6d(0x281)](_0x5dd3e3,_0x751455,_0x8d62a3){const _0x573ea5=_0x4afe6d;var _0x2fa9b4;this[_0x573ea5(0x2b9)][_0x573ea5(0x16a)]({'unitId':_0x5dd3e3,'type':_0x751455,'subUnitId':_0x8d62a3});let _0x46a4a8=0x0,_0x30186d=await((_0x2fa9b4=this[_0x573ea5(0x1af)])==null?void 0x0:_0x2fa9b4[_0x573ea5(0x447)](_0x5dd3e3));return _0x30186d&&(_0x30186d['awaitingChangeset']||_0x30186d[_0x573ea5(0x29a)][_0x573ea5(0x414)]!==0x0)&&(_0x46a4a8=_0x30186d[_0x573ea5(0x427)]),_0x46a4a8===0x0&&this[_0x573ea5(0x30d)][_0x573ea5(0x103)](_0x573ea5(0x15d),_0x573ea5(0x289)),this[_0x573ea5(0x1db)](_0x5dd3e3,_0x751455,_0x46a4a8,_0x8d62a3);}};_0x405412=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x402)])),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x405412);let _0xf97092=class{constructor(_0x9d5cd6,_0x1a2ac6,_0x22482e){const _0x541474=_0x4afe6d;this['_httpService']=_0x9d5cd6,this[_0x541474(0x3b8)]=_0x1a2ac6,this[_0x541474(0x18f)]=_0x22482e,_0x1d93f6(this,_0x541474(0x2ea),0x0),_0x1d93f6(this,_0x541474(0x207),new _0x501c4e['Subject']()),_0x1d93f6(this,_0x541474(0x256),this[_0x541474(0x207)]),_0x1d93f6(this,_0x541474(0x1f1),new Map());}[_0x4afe6d(0x29d)](_0xbace80){const _0x5da00b=_0x4afe6d;this[_0x5da00b(0x2ea)]=_0xbace80,this[_0x5da00b(0x207)][_0x5da00b(0x16a)](_0xbace80);}[_0x4afe6d(0x2cb)](_0x3466af,_0x36b22b){const _0x168a89=_0x4afe6d;if(_0x36b22b===_0x54340d['ImageSourceType'][_0x168a89(0x224)]){let _0x9ab667=new Image();return _0x9ab667[_0x168a89(0xff)]=_0x3466af,_0x9ab667;}return this['_imageSourceCache']['get'](_0x3466af);}['addImageSourceCache'](_0x1ebef1,_0x42537e,_0xc436e3){const _0x178738=_0x4afe6d;_0x42537e===_0x54340d['ImageSourceType'][_0x178738(0x224)]||_0xc436e3==null||this['_imageSourceCache'][_0x178738(0x437)](_0x1ebef1,_0xc436e3);}async[_0x4afe6d(0x12b)](_0x2d2068){const _0x4be44c=_0x4afe6d;try{let _0x7cb513=this['_replaceFileID'](this[_0x4be44c(0x29b)](),''+_0x2d2068),_0x52add8=(await this[_0x4be44c(0x1e3)]['get'](_0x7cb513))[_0x4be44c(0x271)];if(_0x52add8['error']&&_0x52add8[_0x4be44c(0x106)][_0x4be44c(0x1a3)]===_0x3a112b[_0x4be44c(0x1c1)]['OK']){let _0x30b04b=(0x0,_0x54340d[_0x4be44c(0x276)])(_0x52add8[_0x4be44c(0x161)],this[_0x4be44c(0x184)]());return Promise[_0x4be44c(0x35e)](_0x30b04b);}return Promise[_0x4be44c(0x18e)](_0x52add8[_0x4be44c(0x106)]);}catch(_0x4ebac2){return Promise[_0x4be44c(0x18e)](_0x4ebac2);}}async['saveImage'](_0x486855){const _0x1b5770=_0x4afe6d;let _0x2b2215='';if(!_0x728a29[_0x1b5770(0x1fe)]['includes'](_0x486855[_0x1b5770(0x154)]))return this[_0x1b5770(0x11b)](),Promise['reject'](Error(_0x54340d[_0x1b5770(0x3b2)][_0x1b5770(0x3cc)]));if(_0x486855[_0x1b5770(0x389)]>(0x0,_0x728a29[_0x1b5770(0x1c9)])())return this[_0x1b5770(0x11b)](),Promise[_0x1b5770(0x18e)](Error(_0x54340d[_0x1b5770(0x3b2)]['ERROR_EXCEED_SIZE']));try{let _0x341cb6=new FormData();_0x341cb6[_0x1b5770(0x2ae)]('file',_0x486855);let _0x27d4a2=this[_0x1b5770(0x18f)][_0x1b5770(0x26f)](),_0x113ff8=_0x27d4a2==null?void 0x0:_0x27d4a2[_0x1b5770(0x40f)]();if(!_0x113ff8)throw Error(_0x1b5770(0x312));let _0x1dfd54=this[_0x1b5770(0x3bd)]()+'?size='+_0x486855[_0x1b5770(0x389)][_0x1b5770(0x3df)]()+_0x1b5770(0x3aa)+_0x3a112b[_0x1b5770(0x3fd)][_0x1b5770(0x204)]+_0x1b5770(0x37b)+encodeURIComponent(_0x113ff8),_0x22c3b8={'body':_0x341cb6},_0x32ecfd=(await this['_httpService']['post'](_0x1dfd54,_0x22c3b8))[_0x1b5770(0x271)];if(typeof _0x32ecfd['FileId']!=_0x1b5770(0x1ab))return this[_0x1b5770(0x11b)](),Promise['reject'](Error(_0x54340d[_0x1b5770(0x3b2)][_0x1b5770(0x217)]));_0x2b2215=_0x32ecfd['FileId'];}catch{return this[_0x1b5770(0x11b)](),Promise[_0x1b5770(0x18e)](Error(_0x54340d[_0x1b5770(0x3b2)]['ERROR_IMAGE']));}return new Promise((_0x3bba83,_0x4fbeb0)=>{const _0x5b1282=_0x1b5770;let _0x319f65=new FileReader();_0x319f65[_0x5b1282(0x216)](_0x486855),_0x319f65['onload']=_0x26fd7a=>{const _0x9963f2=_0x5b1282;var _0x57c913;let _0x4dd501=(_0x57c913=_0x26fd7a[_0x9963f2(0x12f)])==null?void 0x0:_0x57c913[_0x9963f2(0x2a9)];if(_0x4dd501==null){this[_0x9963f2(0x11b)](),_0x4fbeb0(Error(_0x54340d[_0x9963f2(0x3b2)][_0x9963f2(0x217)]));return;}_0x3bba83({'imageId':(0x0,_0x54340d[_0x9963f2(0x293)])(0x6),'imageSourceType':_0x54340d[_0x9963f2(0x162)]['UUID'],'source':_0x2b2215,'base64Cache':_0x4dd501,'status':_0x54340d[_0x9963f2(0x3b2)][_0x9963f2(0x107)]}),this[_0x9963f2(0x11b)]();};});}['_getUploadFileURL'](){const _0xa9666f=_0x4afe6d;var _0x3a0502;let _0x33d4de=this[_0xa9666f(0x3b8)][_0xa9666f(0x170)](_0x440361);return(_0x3a0502=_0x33d4de==null?void 0x0:_0x33d4de['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x3a0502;}[_0x4afe6d(0x29b)](){const _0x49ca1a=_0x4afe6d;var _0x1e5739;let _0x50b6f2=this[_0x49ca1a(0x3b8)][_0x49ca1a(0x170)](_0x440361);return(_0x1e5739=_0x50b6f2==null?void 0x0:_0x50b6f2[_0x49ca1a(0x1e8)])==null?_0x49ca1a(0x139):_0x1e5739;}[_0x4afe6d(0x184)](){const _0x4e731a=_0x4afe6d;var _0x1aca7b;let _0x44637b=this[_0x4e731a(0x3b8)][_0x4e731a(0x170)](_0x440361);return(_0x1aca7b=_0x44637b==null?void 0x0:_0x44637b[_0x4e731a(0x3d1)])==null?location[_0x4e731a(0x34f)]:_0x1aca7b;}[_0x4afe6d(0x1ba)](_0xa2eb3f,_0x5ca71e){return _0xa2eb3f['replace']('{fileID}',_0x5ca71e);}[_0x4afe6d(0x11b)](){const _0x17d26e=_0x4afe6d;--this[_0x17d26e(0x2ea)],this['_change$']['next'](this[_0x17d26e(0x2ea)]);}};_0xf97092=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x1,_0x54340d['IConfigService']),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x21c)]))],_0xf97092);let _0x5268fb=class{constructor(_0x55cbc6,_0x5f1b02){const _0x529804=_0x4afe6d;this['_configService']=_0x55cbc6,this[_0x529804(0x40a)]=_0x5f1b02;}[_0x4afe6d(0x418)](){const _0x12b98b=_0x4afe6d;var _0x415f0c;let _0x56bfdf=this[_0x12b98b(0x3b8)][_0x12b98b(0x170)](_0x440361);return(_0x415f0c=_0x56bfdf==null?void 0x0:_0x56bfdf[_0x12b98b(0x419)])==null?'/universer-api/authz':_0x415f0c;}async[_0x4afe6d(0x146)](_0x433812){const _0x31e35c=_0x4afe6d;let _0x1f7b9b=this[_0x31e35c(0x418)]()+_0x31e35c(0x322);return{'list':[{'title':'People','mentions':(await this[_0x31e35c(0x40a)][_0x31e35c(0x28f)](_0x1f7b9b,{'params':{'objectID':_0x433812[_0x31e35c(0x3a1)],'unitID':_0x433812[_0x31e35c(0x3a1)]}}))[_0x31e35c(0x271)][_0x31e35c(0x18c)]['map'](_0x5bb757=>({'objectId':_0x5bb757['id'],'name':_0x5bb757['subject'][_0x31e35c(0x2a8)],'metadata':{'icon':_0x5bb757[_0x31e35c(0x196)]['avatar']},'label':_0x5bb757[_0x31e35c(0x196)][_0x31e35c(0x2a8)],'objectType':_0x54340d[_0x31e35c(0x308)]['PERSON']})),'metadata':{},'type':_0x54340d[_0x31e35c(0x308)][_0x31e35c(0x320)]}]};}};_0x5268fb=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x192)])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x3c3932[_0x4afe6d(0x359)]))],_0x5268fb);let _0x3b5b34=class extends _0x54340d[_0x4afe6d(0x2bf)]{constructor(_0x1f2a93,_0x4d410e,_0x1e0250,_0xe1a16e,_0x4fc2b7){const _0xa682c=_0x4afe6d;super(),this[_0xa682c(0x19e)]=_0x1f2a93,this[_0xa682c(0x18f)]=_0x4d410e,this[_0xa682c(0x40e)]=_0x1e0250,this[_0xa682c(0x384)]=_0xe1a16e,this[_0xa682c(0x30b)]=_0x4fc2b7,this[_0xa682c(0x118)](),this[_0xa682c(0x40d)]();}[_0x4afe6d(0x40d)](){const _0x23a3f1=_0x4afe6d;let _0x4fb154=async _0xf4ccdd=>{const _0x1116f5=_0x4f14;(await this['_collaborationSessionService'][_0x1116f5(0x2ef)](_0xf4ccdd))['event$'][_0x1116f5(0x33c)]((0x0,_0x572a50[_0x1116f5(0x176)])(_0xd0a584=>_0xd0a584[_0x1116f5(0x10f)]===_0x510a16[_0x1116f5(0x17d)][_0x1116f5(0x10d)]),(0x0,_0x572a50[_0x1116f5(0x272)])(this[_0x1116f5(0x24d)]))[_0x1116f5(0x40b)](_0x17f447=>{const _0x385dec=_0x1116f5;let {reason:_0x3bee03}=_0x17f447[_0x385dec(0x2b8)];this[_0x385dec(0x30b)][_0x385dec(0x425)]({'id':_0x385dec(0x133),'data':_0x3bee03}),this[_0x385dec(0x40e)]['updatePermissionPoint'](new _0x2e3009[(_0x385dec(0x143))](_0xf4ccdd)['id'],!0x1),this[_0x385dec(0x384)][_0x385dec(0x14f)](_0xf4ccdd);});};(0x0,_0x501c4e['merge'])(this['_univerInstanceService'][_0x23a3f1(0x13d)](_0x54340d['UniverInstanceType'][_0x23a3f1(0x3ee)]),this[_0x23a3f1(0x18f)][_0x23a3f1(0x13d)](_0x54340d['UniverInstanceType'][_0x23a3f1(0x366)]),this[_0x23a3f1(0x18f)][_0x23a3f1(0x13d)](_0x54340d[_0x23a3f1(0x395)][_0x23a3f1(0x1b3)]),this[_0x23a3f1(0x18f)][_0x23a3f1(0x13d)](_0x54340d[_0x23a3f1(0x395)][_0x23a3f1(0x193)]))[_0x23a3f1(0x33c)]((0x0,_0x572a50[_0x23a3f1(0x299)])(_0x216f24=>_0x216f24[_0x23a3f1(0x37d)]['getUnitId']()),(0x0,_0x572a50[_0x23a3f1(0x176)])(_0x5095c7=>!(0x0,_0x54340d[_0x23a3f1(0x3b7)])(_0x5095c7)),(0x0,_0x572a50['takeUntil'])(this[_0x23a3f1(0x24d)]))[_0x23a3f1(0x40b)](_0x9c308a=>{_0x4fb154(_0x9c308a);});}[_0x4afe6d(0x118)](){const _0x16a7e7=_0x4afe6d;let _0x335990=async _0x3fc95e=>{const _0x3d191d=_0x4f14;let _0x272bfa=await this['_collaborationSessionService'][_0x3d191d(0x2ef)](_0x3fc95e),_0x2addd8=this['_injector'][_0x3d191d(0x28f)](_0x2e3009[_0x3d191d(0x303)]);_0x272bfa[_0x3d191d(0x2c0)][_0x3d191d(0x33c)]((0x0,_0x572a50[_0x3d191d(0x176)])(_0x485322=>_0x485322[_0x3d191d(0x10f)]===_0x510a16[_0x3d191d(0x17d)][_0x3d191d(0x350)]),(0x0,_0x572a50[_0x3d191d(0x272)])(this[_0x3d191d(0x24d)]))[_0x3d191d(0x40b)](_0x31665c=>{const _0xe7b747=_0x3d191d;let {objectId:_0x2e0f57}=_0x31665c[_0xe7b747(0x2b8)];_0x2e0f57===_0x3fc95e?_0x2addd8['initWorkbookPermissionChange'](_0x3fc95e):_0x2addd8[_0xe7b747(0x1bc)](_0x3fc95e,_0x2e0f57);});};(0x0,_0x501c4e[_0x16a7e7(0x362)])(this['_univerInstanceService'][_0x16a7e7(0x13d)](_0x54340d[_0x16a7e7(0x395)][_0x16a7e7(0x3ee)]))[_0x16a7e7(0x33c)]((0x0,_0x572a50[_0x16a7e7(0x299)])(_0x2711c2=>_0x2711c2[_0x16a7e7(0x37d)][_0x16a7e7(0x40f)]()),(0x0,_0x572a50[_0x16a7e7(0x176)])(_0x32a394=>!(0x0,_0x54340d[_0x16a7e7(0x3b7)])(_0x32a394)),(0x0,_0x572a50[_0x16a7e7(0x272)])(this['dispose$']))[_0x16a7e7(0x40b)](_0x3c8fc7=>{_0x335990(_0x3c8fc7);});}};_0x3b5b34=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x2,_0x54340d['IPermissionService']),_0x5c2cf(0x3,(0x0,_0x54340d['Inject'])(_0x1ef492)),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525))],_0x3b5b34);let _0x123e2b=class{constructor(_0xe62aa2,_0x154ce5){const _0x146521=_0x4afe6d;this[_0x146521(0x3b8)]=_0xe62aa2,this['_httpService']=_0x154ce5;}async[_0x4afe6d(0x279)](_0x55cb64,_0x1f7796){const _0x10e2c9=_0x4afe6d;var _0x16daa0;let {unitID:_0x1096e1,type:_0x18fd8d,revision:_0x28a3d6=0x0}=_0x1f7796,_0xcf6338=this[_0x10e2c9(0x22f)]()+'/'+_0x18fd8d+_0x10e2c9(0x3f2)+_0x1096e1+_0x10e2c9(0x31a)+_0x28a3d6,_0x37c512=(await this[_0x10e2c9(0x1e3)]['get'](_0xcf6338))[_0x10e2c9(0x271)],_0x2d6f59=(_0x16daa0=_0x37c512[_0x10e2c9(0x364)])==null?void 0x0:_0x16daa0[_0x10e2c9(0x1f4)];if(_0x2d6f59){let _0x4e77ba=_0x2d6f59==null?void 0x0:_0x2d6f59[_0x10e2c9(0x3b9)];_0x2d6f59['originalMeta']=_0x510a16[_0x10e2c9(0x3c9)][_0x10e2c9(0x42e)]((0x0,_0x510a16[_0x10e2c9(0x31c)])(_0x4e77ba)),Object['entries'](_0x2d6f59[_0x10e2c9(0x1d1)])['forEach'](([,_0x5be530])=>{const _0x4e12ed=_0x10e2c9;let _0x79dbc5=_0x5be530[_0x4e12ed(0x3b9)];_0x5be530[_0x4e12ed(0x3b9)]=_0x510a16['textEncoder'][_0x4e12ed(0x42e)]((0x0,_0x510a16[_0x4e12ed(0x31c)])(_0x79dbc5));});}return _0x37c512;}async[_0x4afe6d(0x13c)](_0x595c31,_0x3e5507){const _0x48b9ce=_0x4afe6d;let {unitID:_0x335212,type:_0x3bb0d8,blockID:_0x5ddd60}=_0x3e5507,_0x312333=this['_getAPIPrefix']()+'/'+_0x3bb0d8+_0x48b9ce(0x3f2)+_0x335212+_0x48b9ce(0x429)+_0x5ddd60;return(await this[_0x48b9ce(0x1e3)]['get'](_0x312333))['body'];}async['getDeserializedSheetBlock'](_0x2fd4a3,_0x3a0b4f){const _0x5a3569=_0x4afe6d;let {unitID:_0x4e7d1a,type:_0x41e82e,blockID:_0x2879ec}=_0x3a0b4f,_0x627668=this[_0x5a3569(0x185)]()+_0x5a3569(0x429)+_0x41e82e+_0x5a3569(0x3f2)+_0x4e7d1a+'/block/'+_0x2879ec;return(await this[_0x5a3569(0x1e3)][_0x5a3569(0x28f)](_0x627668))['body'];}async[_0x4afe6d(0x246)](_0x77ba38,_0x2d5f45){const _0x107260=_0x4afe6d;let {unitID:_0xb0a8bc,type:_0x4bcced,from:_0x7e96ae,to:_0x158faf}=_0x2d5f45,_0x5c75a8=this[_0x107260(0x185)]()+'/'+_0x4bcced+_0x107260(0x3f2)+_0xb0a8bc+_0x107260(0x352)+_0x7e96ae+_0x107260(0x3f1)+_0x158faf;return(await this[_0x107260(0x1e3)][_0x107260(0x28f)](_0x5c75a8))[_0x107260(0x271)];}[_0x4afe6d(0x22f)](){const _0x31d5c2=_0x4afe6d;var _0x58e984;return(_0x58e984=this[_0x31d5c2(0x3b8)][_0x31d5c2(0x170)]('SNAPSHOT_URL_KEY'))==null?this['_getAPIPrefix']():_0x58e984;}[_0x4afe6d(0x185)](){const _0x3ff8bc=_0x4afe6d;var _0x3fe50d;let _0x4cc266=this[_0x3ff8bc(0x3b8)][_0x3ff8bc(0x170)](_0x440361);return(_0x3fe50d=_0x4cc266==null?void 0x0:_0x4cc266[_0x3ff8bc(0x25e)])==null?_0x3ff8bc(0x1a4):_0x3fe50d;}async['getResourcesRequest'](_0x52bac0,_0x43de13){const _0x20fcf3=_0x4afe6d;let _0x35474b=_0x20fcf3(0x448)+_0x43de13[_0x20fcf3(0x154)]+'/unit/'+_0x43de13[_0x20fcf3(0x3b1)]+'/resources';return(await this[_0x20fcf3(0x1e3)][_0x20fcf3(0x28f)](_0x35474b,{'params':{'resourceId':JSON[_0x20fcf3(0x1c6)](_0x43de13[_0x20fcf3(0x3fb)])}}))[_0x20fcf3(0x271)];}[_0x4afe6d(0x3ef)](){const _0x7ad085=_0x4afe6d;throw Error(_0x7ad085(0x252));}[_0x4afe6d(0x158)](){const _0x5696e7=_0x4afe6d;throw Error(_0x5696e7(0x252));}[_0x4afe6d(0x18b)](){const _0xb6aece=_0x4afe6d;throw Error(_0xb6aece(0x252));}[_0x4afe6d(0x219)](){const _0x47d785=_0x4afe6d;throw Error(_0x47d785(0x252));}[_0x4afe6d(0x165)](){const _0x4df6d7=_0x4afe6d;throw Error(_0x4df6d7(0x252));}[_0x4afe6d(0x25b)](){const _0x20b54d=_0x4afe6d;throw Error(_0x20b54d(0x252));}};_0x123e2b=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932['HTTPService']))],_0x123e2b);let _0x424687=class extends _0x54340d[_0x4afe6d(0x2b2)]{constructor(_0x213edd,_0x5d41a6,_0x7c8911,_0x1204cd,_0x497bde){const _0x56910d=_0x4afe6d;super(_0x213edd,_0x5d41a6,_0x7c8911),this['_transformService']=_0x1204cd,this[_0x56910d(0x30d)]=_0x497bde;}['transformUndoRedo'](_0x4b3846,_0xecf043){const _0x38929b=_0x4afe6d;let _0x47bed3=this[_0x38929b(0x147)](_0x4b3846);if(_0x47bed3)try{let _0x422a45=this[_0x38929b(0x261)](_0x47bed3,_0xecf043);this[_0x38929b(0x431)](_0x4b3846,_0x422a45);}catch(_0x34c9e0){this[_0x38929b(0x30d)][_0x38929b(0x106)](_0x38929b(0x407),_0x34c9e0),this['_clearUndo'](_0x4b3846);}let _0x953b95=this[_0x38929b(0x307)](_0x4b3846);if(_0x953b95)try{let _0x5b2a8e=this['_transformStack'](_0x953b95,_0xecf043);this['_substituteRedoStack'](_0x4b3846,_0x5b2a8e);}catch(_0x47a949){this[_0x38929b(0x30d)][_0x38929b(0x106)](_0x47a949),this[_0x38929b(0x1cb)](_0x4b3846);}}[_0x4afe6d(0x1f0)](_0x2f26e7){const _0xa85e42=_0x4afe6d;let _0x2860cc=this[_0xa85e42(0x147)](_0x2f26e7);_0x2860cc&&(_0x2860cc[_0xa85e42(0x414)]=0x0,this[_0xa85e42(0x174)]());}['_clearRedo'](_0x31dafe){const _0xf1330f=_0x4afe6d;let _0x5477fc=this[_0xf1330f(0x307)](_0x31dafe);_0x5477fc&&(_0x5477fc[_0xf1330f(0x414)]=0x0,this['_updateStatus']());}[_0x4afe6d(0x431)](_0x24cd62,_0x183219){const _0xa190e=_0x4afe6d;this[_0xa190e(0x1dd)][_0xa190e(0x437)](_0x24cd62,_0x183219),this[_0xa190e(0x174)]();}[_0x4afe6d(0x354)](_0x210eea,_0x5dc0ba){const _0x28bbc1=_0x4afe6d;this[_0x28bbc1(0x278)]['set'](_0x210eea,_0x5dc0ba),this[_0x28bbc1(0x174)]();}[_0x4afe6d(0x261)](_0x4ab79a,_0x19db45){const _0x4a1f38=_0x4afe6d;let _0x3deb20=[],_0x25a367=_0x19db45,_0x2af521=_0x19db45;for(let _0x200aa0=_0x4ab79a[_0x4a1f38(0x414)]-0x1;_0x200aa0>=0x0;_0x200aa0--){let {unitID:_0x321354,undoMutations:_0x181325,redoMutations:_0x3dbdc7}=_0x4ab79a[_0x200aa0],_0x534a4c=this[_0x4a1f38(0x294)][_0x4a1f38(0x2e7)](_0x25a367,_0x181325),_0x473138=this[_0x4a1f38(0x294)][_0x4a1f38(0x2e7)](_0x2af521,_0x3dbdc7);if((0x0,_0x510a16[_0x4a1f38(0x1e2)])(_0x534a4c)||(0x0,_0x510a16[_0x4a1f38(0x1e2)])(_0x473138)){this[_0x4a1f38(0x30d)][_0x4a1f38(0x106)](_0x4a1f38(0x407),_0x4a1f38(0x285),_0x534a4c,_0x473138);break;}_0x25a367=_0x534a4c[_0x4a1f38(0x1d5)],_0x2af521=_0x473138['c1Prime'],_0x3deb20['push']({'unitID':_0x321354,'undoMutations':_0x534a4c[_0x4a1f38(0x422)],'redoMutations':_0x473138[_0x4a1f38(0x422)]});}return _0x3deb20[_0x4a1f38(0x26c)]();}};_0x424687=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x442)]),_0x5c2cf(0x3,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0x4,_0x54340d[_0x4afe6d(0x2f1)])],_0x424687);let _0x28041f=class extends _0x54340d[_0x4afe6d(0x167)]{constructor(_0x1b9385=_0x34589c,_0x50f2d9,_0x4f85bd,_0x14c147){const _0x228888=_0x4afe6d;super(),this[_0x228888(0x2ad)]=_0x1b9385,this['_logService']=_0x50f2d9,this[_0x228888(0x19e)]=_0x4f85bd,this[_0x228888(0x3b8)]=_0x14c147;let {..._0x325daa}=(0x0,_0x54340d[_0x228888(0x362)])({},_0x34589c,this[_0x228888(0x2ad)]);if(!_0x325daa[_0x228888(0x191)])throw Error(_0x228888(0x290));this[_0x228888(0x2ad)]=_0x325daa,this[_0x228888(0x3b8)]['setConfig'](_0x440361,_0x325daa);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}['_registerDependencies'](){const _0x20118a=_0x4afe6d;var _0x2df99a,_0xb0ca4d;this[_0x20118a(0x19e)][_0x20118a(0x2e6)](_0x54340d[_0x20118a(0x2a4)])&&this['_logService'][_0x20118a(0x106)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x4c02b0=(0x0,_0x54340d[_0x20118a(0x41d)])([[_0x54340d[_0x20118a(0x2a4)],{'useClass':_0x424687}],[_0x3a5b27,{'useValue':_0x1c4d33()}],[_0x1ef492],[_0x1afb9b],[_0x2269b7],[_0x2ddecb],[_0x13f78f],[_0x24cd08],[_0x3b5b34],[_0x18b525],[_0x405412],[_0x30a197,{'useClass':this[_0x20118a(0x2ad)][_0x20118a(0x191)]}],[_0x510a16[_0x20118a(0x416)],{'useClass':_0x123e2b}],[_0x54340d['IAuthzIoService'],{'useClass':_0x91ddb2}],[_0x54340d['IImageIoService'],{'useClass':_0xf97092}],[_0x2a494b,{'useClass':_0x229743}],[_0x54340d[_0x20118a(0x451)],{'useClass':_0x5268fb}],[_0x3ac1c6],[_0x1ae7d6]],(_0x2df99a=this[_0x20118a(0x2ad)])==null?void 0x0:_0x2df99a[_0x20118a(0x23f)]);if(!((_0xb0ca4d=this['_config'])!=null&&_0xb0ca4d[_0x20118a(0x43e)])){let _0x211402=_0x4c02b0[_0x20118a(0x164)](([_0xea2c9f])=>_0xea2c9f===_0x54d1b8);_0x211402!==-0x1&&_0x4c02b0[_0x20118a(0x23d)](_0x211402,0x1);}(0x0,_0x54340d[_0x20118a(0x1f9)])(this[_0x20118a(0x19e)],_0x4c02b0);}[_0x4afe6d(0x2e2)](){const _0x459eba=_0x4afe6d;var _0x50cf72,_0x222356;if(this[_0x459eba(0x19e)][_0x459eba(0x28f)](_0x3c3932[_0x459eba(0x359)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x3c3932[_0x459eba(0x287)])({'maxParallel':0x6})}),!((_0x50cf72=this['_config'])!=null&&_0x50cf72['enableOfflineEditing'])){var _0x27c7c8;(_0x27c7c8=this[_0x459eba(0x19e)][_0x459eba(0x28f)](_0x1cadf3,_0x54340d[_0x459eba(0x408)][_0x459eba(0x2a0)]))==null||_0x27c7c8[_0x459eba(0x306)]();}(_0x222356=this[_0x459eba(0x2ad)])!=null&&_0x222356[_0x459eba(0x292)]&&(0x0,_0x54340d[_0x459eba(0x23a)])(this[_0x459eba(0x19e)],[[_0x2ddecb]]),(0x0,_0x54340d['touchDependencies'])(this[_0x459eba(0x19e)],[[_0x13f78f],[_0x3ac1c6],[_0x3b5b34]]);}};_0x1d93f6(_0x28041f,'pluginName',_0x4afe6d(0x3a0)),_0x1d93f6(_0x28041f,'packageName',_0x2342bf),_0x1d93f6(_0x28041f,_0x4afe6d(0x130),_0x42a3e1),_0x28041f=_0x3bbaf2([(0x0,_0x54340d['DependentOn'])(_0x40a29c[_0x4afe6d(0x169)],_0x510a16[_0x4afe6d(0x2ce)],_0x3c3932['UniverNetworkPlugin']),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x3,_0x54340d[_0x4afe6d(0x192)])],_0x28041f),_0x3b1d70['AttachmentSourceType']=_0x32a4ef,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x3d9),{'enumerable':!0x0,'get':function(){return _0x91ddb2;}}),Object['defineProperty'](_0x3b1d70,_0x4afe6d(0x3af),{'enumerable':!0x0,'get':function(){return _0x4b8fc9;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x257),{'enumerable':!0x0,'get':function(){return _0x34253f;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x2b7),{'enumerable':!0x0,'get':function(){return _0x315430;}}),Object['defineProperty'](_0x3b1d70,_0x4afe6d(0x314),{'enumerable':!0x0,'get':function(){return _0x3a23e5;}}),_0x3b1d70['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x440361,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x376),{'enumerable':!0x0,'get':function(){return _0x229743;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1f5),{'enumerable':!0x0,'get':function(){return _0x3ac1c6;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x22e),{'enumerable':!0x0,'get':function(){return _0x558136;}}),Object['defineProperty'](_0x3b1d70,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return _0xf97092;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x199),{'enumerable':!0x0,'get':function(){return _0x180b79;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1a1),{'enumerable':!0x0,'get':function(){return _0x1ef492;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x2af),{'enumerable':!0x0,'get':function(){return _0xadadc1;}}),_0x3b1d70['CollaborationStatus']=_0x37cdd1,_0x3b1d70[_0x4afe6d(0x36b)]=_0x441a00,_0x3b1d70[_0x4afe6d(0x2a7)]=_0x18b525,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x25a),{'enumerable':!0x0,'get':function(){return _0x424687;}}),_0x3b1d70[_0x4afe6d(0x254)]=_0x24cd08,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x3ae),{'enumerable':!0x0,'get':function(){return _0x4544f7;}}),_0x3b1d70[_0x4afe6d(0x1fb)]=_0x1ee18d,_0x3b1d70['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']='/universer-api/uniscript',_0x3b1d70[_0x4afe6d(0x30e)]=_0x4afe6d(0x16b),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x21a),{'enumerable':!0x0,'get':function(){return _0x405412;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x449),{'enumerable':!0x0,'get':function(){return _0x4e92fa;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x213),{'enumerable':!0x0,'get':function(){return _0x5ac534;}}),_0x3b1d70[_0x4afe6d(0x432)]=_0x4afe6d(0x450),_0x3b1d70['HEARTBEAT_TIMEOUT_KEY']=_0x4afe6d(0x263),_0x3b1d70['IAttachmentIoService']=_0x2a494b,_0x3b1d70[_0x4afe6d(0x368)]=_0x3a5b27,_0x3b1d70[_0x4afe6d(0x2c5)]=_0x30a197,_0x3b1d70[_0x4afe6d(0x398)]=_0x1cadf3,_0x3b1d70['INetworkConditionService']=_0x5cc1e5,_0x3b1d70[_0x4afe6d(0x1e6)]=_0x54d1b8,_0x3b1d70['LOCAL_CACHE_INTERVAL']=0x3e8,_0x3b1d70['LOCAL_CACHE_INTERVAL_KEY']=_0x4afe6d(0x309),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x125),{'enumerable':!0x0,'get':function(){return _0x1afb9b;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x420),{'enumerable':!0x0,'get':function(){return _0x5268fb;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x5146de;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,'PendingState',{'enumerable':!0x0,'get':function(){return _0x503465;}}),_0x3b1d70[_0x4afe6d(0x1f2)]=_0x4afe6d(0x2f7),_0x3b1d70[_0x4afe6d(0x19a)]='RETRY_CONNECTING_MAX_COUNT',_0x3b1d70[_0x4afe6d(0xfe)]=_0x3bf564,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x28e),{'enumerable':!0x0,'get':function(){return _0x143458;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x134),{'enumerable':!0x0,'get':function(){return _0x2269b7;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1e5),{'enumerable':!0x0,'get':function(){return _0x513627;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x2c7),{'enumerable':!0x0,'get':function(){return _0x123e2b;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x12c),{'enumerable':!0x0,'get':function(){return _0x5d7f84;}}),_0x3b1d70[_0x4afe6d(0x27c)]=_0x36582d,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1ec),{'enumerable':!0x0,'get':function(){return _0x28041f;}}),_0x3b1d70[_0x4afe6d(0x33f)]=_0x1c4d33,_0x3b1d70[_0x4afe6d(0x2db)]=_0x4dd5df,_0x3b1d70[_0x4afe6d(0x148)]=_0x4accb8,_0x3b1d70[_0x4afe6d(0x3f9)]=_0x5e867b;}));
|