@univerjs-pro/collaboration-client 0.25.1 → 1.0.0-alpha.1
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/types/config/config.d.ts +70 -0
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +15 -1
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +6 -14
- package/lib/types/facade/f-collaboration.d.ts +38 -25
- package/lib/types/index.d.ts +11 -7
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/attachment-remote/attachment-io.service.d.ts +22 -0
- package/lib/types/services/attachment-remote/types.d.ts +23 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +3 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +1 -0
- 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 +16 -14
- package/lib/types/controllers/config.schema.d.ts +0 -64
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2404bf,_0x2a3492){const _0x5ff4f5=_0x1555,_0x523978=_0x2404bf();while(!![]){try{const _0x1a7b58=-parseInt(_0x5ff4f5(0x332))/0x1*(parseInt(_0x5ff4f5(0x2c4))/0x2)+parseInt(_0x5ff4f5(0x2ec))/0x3*(-parseInt(_0x5ff4f5(0x377))/0x4)+parseInt(_0x5ff4f5(0x36c))/0x5+-parseInt(_0x5ff4f5(0x147))/0x6*(-parseInt(_0x5ff4f5(0x207))/0x7)+-parseInt(_0x5ff4f5(0x138))/0x8+parseInt(_0x5ff4f5(0x3a3))/0x9*(parseInt(_0x5ff4f5(0x2b9))/0xa)+-parseInt(_0x5ff4f5(0x365))/0xb*(-parseInt(_0x5ff4f5(0xc1))/0xc);if(_0x1a7b58===_0x2a3492)break;else _0x523978['push'](_0x523978['shift']());}catch(_0x3370da){_0x523978['push'](_0x523978['shift']());}}}(_0x15e6,0x8eb18),function(_0xa183d2,_0x1f34a1){const _0x49ec51=_0x1555;typeof exports==_0x49ec51(0x2d3)&&typeof module<'u'?_0x1f34a1(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/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x49ec51(0x240)]?define(['exports',_0x49ec51(0x148),_0x49ec51(0x212),'@univerjs/docs','@univerjs/sheets',_0x49ec51(0x19d),'@univerjs/protocol',_0x49ec51(0x29b),_0x49ec51(0xd1),_0x49ec51(0x2fe),_0x49ec51(0x191),_0x49ec51(0xda)],_0x1f34a1):(_0xa183d2=typeof globalThis<'u'?globalThis:_0xa183d2||self,_0x1f34a1(_0xa183d2['UniverProCollaborationClient']={},_0xa183d2[_0x49ec51(0x3c3)],_0xa183d2[_0x49ec51(0x35c)],_0xa183d2[_0x49ec51(0x25e)],_0xa183d2[_0x49ec51(0x215)],_0xa183d2['rxjs'],_0xa183d2['UniverProtocol'],_0xa183d2['UniverTelemetry'],_0xa183d2[_0x49ec51(0x19d)][_0x49ec51(0x282)],_0xa183d2['UniverNetwork'],_0xa183d2[_0x49ec51(0x270)],_0xa183d2['UniverDrawing']));}(this,function(_0x17c4ec,_0x540a4f,_0x305d10,_0x44bc8e,_0x2b86ea,_0x247d93,_0x54f861,_0xc2f67a,_0x38623c,_0x3c9fd5,_0x5f2569,_0x5452c7){const _0x33f14e=_0x1555;Object[_0x33f14e(0x267)](_0x17c4ec,Symbol[_0x33f14e(0x3c0)],{'value':_0x33f14e(0x24d)});let _0x3919fe='ws://127.0.0.1:8000/universer-api/comb/connect',_0x5752cb=0x4e20;function _0x3fc80e(_0x182493){const _0x35b476=_0x33f14e;return JSON[_0x35b476(0x121)](_0x182493)[_0x35b476(0x251)];}function _0x17d55f(_0x185fb1){'@babel/helpers - typeof';const _0x433e25=_0x33f14e;return _0x17d55f=typeof Symbol=='function'&&typeof Symbol[_0x433e25(0x349)]==_0x433e25(0x149)?function(_0x102c46){return typeof _0x102c46;}:function(_0xd07284){const _0x1a3f2f=_0x433e25;return _0xd07284&&typeof Symbol==_0x1a3f2f(0x1b7)&&_0xd07284['constructor']===Symbol&&_0xd07284!==Symbol[_0x1a3f2f(0xe7)]?'symbol':typeof _0xd07284;},_0x17d55f(_0x185fb1);}function _0x1ebd53(_0x3fdfc4,_0x2a9576){const _0x3c4ae3=_0x33f14e;if(_0x17d55f(_0x3fdfc4)!='object'||!_0x3fdfc4)return _0x3fdfc4;var _0x51eafb=_0x3fdfc4[Symbol[_0x3c4ae3(0x114)]];if(_0x51eafb!==void 0x0){var _0x38dc5a=_0x51eafb['call'](_0x3fdfc4,_0x2a9576||_0x3c4ae3(0xfc));if(_0x17d55f(_0x38dc5a)!=_0x3c4ae3(0x2d3))return _0x38dc5a;throw TypeError(_0x3c4ae3(0x1fd));}return(_0x2a9576==='string'?String:Number)(_0x3fdfc4);}function _0x283ebf(_0x5665c8){const _0x20c58e=_0x33f14e;var _0x70fd9d=_0x1ebd53(_0x5665c8,_0x20c58e(0x137));return _0x17d55f(_0x70fd9d)==_0x20c58e(0x149)?_0x70fd9d:_0x70fd9d+'';}function _0x816778(_0x27324f,_0x62929,_0x40859a){const _0x10c05d=_0x33f14e;return(_0x62929=_0x283ebf(_0x62929))in _0x27324f?Object[_0x10c05d(0x267)](_0x27324f,_0x62929,{'value':_0x40859a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27324f[_0x62929]=_0x40859a,_0x27324f;}let _0x29ff30=function(_0x3554b8){const _0x3acb85=_0x33f14e;return _0x3554b8['OTHER_CLIENT_EDITING']=_0x3acb85(0x162),_0x3554b8['PERMISSION_DENIED']=_0x3acb85(0x399),_0x3554b8['CONFLICT']=_0x3acb85(0x225),_0x3554b8[_0x3acb85(0x261)]='CLOSE_ROOM',_0x3554b8[_0x3acb85(0x259)]='JOIN_ROOM_FAILED',_0x3554b8[_0x3acb85(0x37a)]=_0x3acb85(0x37a),_0x3554b8[_0x3acb85(0x237)]=_0x3acb85(0x237),_0x3554b8[_0x3acb85(0x160)]=_0x3acb85(0x160),_0x3554b8;}({});var _0x23b696=class{constructor(){const _0x54652f=_0x33f14e;_0x816778(this,_0x54652f(0x177),new _0x247d93['Subject']()),_0x816778(this,_0x54652f(0x1b0),this[_0x54652f(0x177)][_0x54652f(0x172)]());}[_0x33f14e(0x118)](_0x1cf6f9){const _0x40f79e=_0x33f14e;this[_0x40f79e(0x177)]['next'](_0x1cf6f9);}},_0x1493d1=class{constructor(){const _0x47bcc2=_0x33f14e;_0x816778(this,_0x47bcc2(0x230),new _0x247d93[(_0x47bcc2(0x2be))]()),_0x816778(this,_0x47bcc2(0x31d),this['_commentUpdate$'][_0x47bcc2(0x172)]());}[_0x33f14e(0x236)](_0x1dcd6d){const _0x1b5f50=_0x33f14e;this[_0x1b5f50(0x230)][_0x1b5f50(0x300)](_0x1dcd6d);}};function _0xf01086(_0x3fe12a,_0x454149){return function(_0x2bb408,_0x1686b9){_0x454149(_0x2bb408,_0x1686b9,_0x3fe12a);};}function _0x47fc4c(_0x509d39,_0x2430a4,_0x28fcf4,_0x1edc96){const _0x248088=_0x33f14e;var _0x2c8eaf=arguments[_0x248088(0x251)],_0x1d5a0d=_0x2c8eaf<0x3?_0x2430a4:_0x1edc96===null?_0x1edc96=Object[_0x248088(0x189)](_0x2430a4,_0x28fcf4):_0x1edc96,_0xfda87f;if(typeof Reflect==_0x248088(0x2d3)&&typeof Reflect[_0x248088(0x393)]==_0x248088(0x1b7))_0x1d5a0d=Reflect['decorate'](_0x509d39,_0x2430a4,_0x28fcf4,_0x1edc96);else{for(var _0x4a15a1=_0x509d39[_0x248088(0x251)]-0x1;_0x4a15a1>=0x0;_0x4a15a1--)(_0xfda87f=_0x509d39[_0x4a15a1])&&(_0x1d5a0d=(_0x2c8eaf<0x3?_0xfda87f(_0x1d5a0d):_0x2c8eaf>0x3?_0xfda87f(_0x2430a4,_0x28fcf4,_0x1d5a0d):_0xfda87f(_0x2430a4,_0x28fcf4))||_0x1d5a0d);}return _0x2c8eaf>0x3&&_0x1d5a0d&&Object[_0x248088(0x267)](_0x2430a4,_0x28fcf4,_0x1d5a0d),_0x1d5a0d;}let _0x497a33=class extends _0x305d10['Disposable']{constructor(_0x2e76d6,_0xa3438){const _0x4b6fb1=_0x33f14e;super(),this[_0x4b6fb1(0x35b)]=_0x2e76d6,this['_userManagerService']=_0xa3438,_0x816778(this,_0x4b6fb1(0x151),new Map()),_0x816778(this,'_roomCreated$',new _0x247d93['Subject']()),this['disposeWithMe']((0x0,_0x247d93['merge'])(this['_univerInstanceService'][_0x4b6fb1(0x2b7)](_0x305d10[_0x4b6fb1(0x1c6)][_0x4b6fb1(0x22a)])['pipe']((0x0,_0x38623c[_0x4b6fb1(0x348)])(_0x4c3f89=>_0x4c3f89[_0x4b6fb1(0x1e7)]())),this[_0x4b6fb1(0x35b)]['getTypeOfUnitDisposed$'](_0x305d10[_0x4b6fb1(0x1c6)]['UNIVER_DOC'])[_0x4b6fb1(0x2a9)]((0x0,_0x38623c['map'])(_0x4518e9=>_0x4518e9[_0x4b6fb1(0x1e7)]())))['subscribe'](_0x3c4457=>this[_0x4b6fb1(0x37d)](_0x3c4457)));}[_0x33f14e(0x124)](_0x2f312b){const _0xfc1912=_0x33f14e;return this['_roomMembers'][_0xfc1912(0x354)](_0x2f312b)?(0x0,_0x247d93['of'])(this[_0xfc1912(0x151)][_0xfc1912(0x1a5)](_0x2f312b)):this[_0xfc1912(0x303)]['pipe']((0x0,_0x38623c[_0xfc1912(0x348)])(_0x20a3ba=>{const _0x502e6b=_0xfc1912;if(_0x20a3ba===_0x2f312b)return this['_roomMembers'][_0x502e6b(0x1a5)](_0x20a3ba);}));}['setCurrentUser'](_0x4be55c){const _0x5bb273=_0x33f14e;this[_0x5bb273(0x38e)]['setCurrentUser'](_0x4be55c);}[_0x33f14e(0x2cd)](){const _0x30f150=_0x33f14e;return this['_userManagerService'][_0x30f150(0x2cd)]();}[_0x33f14e(0x10a)](_0x21acd4,_0x12452e){const _0x285cfc=_0x33f14e;let _0x5cc695=this[_0x285cfc(0x151)][_0x285cfc(0x1a5)](_0x21acd4);_0x5cc695||(_0x5cc695=new _0x11f6ad(),this[_0x285cfc(0x151)][_0x285cfc(0x269)](_0x21acd4,_0x5cc695),this['_roomCreated$'][_0x285cfc(0x300)](_0x21acd4)),_0x5cc695[_0x285cfc(0x10a)](_0x12452e);}[_0x33f14e(0x392)](_0x235e09,_0x32fd20){const _0x5be323=_0x33f14e;let _0x1c25ac=this[_0x5be323(0x151)][_0x5be323(0x1a5)](_0x235e09);_0x1c25ac&&_0x1c25ac[_0x5be323(0x392)](_0x32fd20);}[_0x33f14e(0x12f)](_0x232ecc){const _0x14ffef=_0x33f14e;return this[_0x14ffef(0x151)][_0x14ffef(0x1a5)](_0x232ecc);}[_0x33f14e(0x21c)](_0x4d0da2,_0x15a87e){const _0x44b443=_0x33f14e;let _0x23b574=this[_0x44b443(0x151)][_0x44b443(0x1a5)](_0x4d0da2);if(_0x23b574)return _0x23b574[_0x44b443(0x21c)](_0x15a87e);}[_0x33f14e(0x37d)](_0xcaad73){const _0x26fd53=_0x33f14e;let _0x73398e=this[_0x26fd53(0x151)][_0x26fd53(0x1a5)](_0xcaad73);_0x73398e&&(_0x73398e[_0x26fd53(0x366)](),this[_0x26fd53(0x151)][_0x26fd53(0xc0)](_0xcaad73));}['dispose'](){const _0x1fa006=_0x33f14e;this[_0x1fa006(0x151)]['forEach'](_0x59ae0d=>_0x59ae0d[_0x1fa006(0x366)]()),this[_0x1fa006(0x151)][_0x1fa006(0x200)](),this[_0x1fa006(0x303)][_0x1fa006(0x109)]();}};_0x497a33=_0x47fc4c([_0xf01086(0x0,_0x305d10[_0x33f14e(0x20d)]),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x3b5)]))],_0x497a33);var _0x11f6ad=class extends _0x305d10[_0x33f14e(0x1c2)]{constructor(..._0x13c500){const _0x2f64c5=_0x33f14e;super(..._0x13c500),_0x816778(this,'_members',new Map()),_0x816778(this,'_members$',new _0x247d93[(_0x2f64c5(0x288))](this[_0x2f64c5(0x2e5)])),_0x816778(this,'members$',this[_0x2f64c5(0xd9)]['asObservable']());}[_0x33f14e(0x366)](){const _0x20ef88=_0x33f14e;this[_0x20ef88(0x2e5)][_0x20ef88(0x200)](),this[_0x20ef88(0xd9)][_0x20ef88(0x109)]();}[_0x33f14e(0x10a)](_0x32fdb0){const _0x4b864b=_0x33f14e;this['_members'][_0x4b864b(0x269)](_0x32fdb0[_0x4b864b(0x277)],_0x32fdb0),this[_0x4b864b(0x1ff)]();}[_0x33f14e(0x392)](_0x26264a){const _0x1c31a2=_0x33f14e;this[_0x1c31a2(0x2e5)][_0x1c31a2(0xc0)](_0x26264a),this['_emitMembers']();}[_0x33f14e(0x21c)](_0x2ef822){const _0x249334=_0x33f14e;return this[_0x249334(0x2e5)][_0x249334(0x1a5)](_0x2ef822);}[_0x33f14e(0x287)](){const _0x3881f3=_0x33f14e;return Array[_0x3881f3(0x2ed)](this[_0x3881f3(0x2e5)]['values']());}[_0x33f14e(0x1ff)](){const _0x2620e3=_0x33f14e;this[_0x2620e3(0xd9)][_0x2620e3(0x300)](this[_0x2620e3(0x2e5)]);}};let _0x475efd=function(_0x1f1353){const _0x378feb=_0x33f14e;return _0x1f1353[_0x1f1353['IDLE']=0x0]='IDLE',_0x1f1353[_0x1f1353['JOINING']=0x1]='JOINING',_0x1f1353[_0x1f1353['OFFLINE']=0x2]=_0x378feb(0x266),_0x1f1353[_0x1f1353[_0x378feb(0x22f)]=0x3]=_0x378feb(0x22f),_0x1f1353;}({}),_0x2c4457={[_0x54f861[_0x33f14e(0x372)]['FAIL']]:'session.join-failed',[_0x54f861['CmdRspCode'][_0x33f14e(0x1bf)]]:_0x33f14e(0x368),[_0x54f861[_0x33f14e(0x372)]['JOIN_ROOM_NOT_EXISTS']]:'session.room-not-exists',[_0x54f861[_0x33f14e(0x372)][_0x33f14e(0x2f9)]]:_0x33f14e(0x229),[_0x54f861['CmdRspCode'][_0x33f14e(0x201)]]:_0x33f14e(0x210)},_0x459c7b=class extends _0x305d10['RxDisposable']{get['sessionStatus'](){const _0x4f63cb=_0x33f14e;return this[_0x4f63cb(0xec)][_0x4f63cb(0x3a9)]();}constructor(_0x1f24fc,_0x4b48ef,_0x118237,_0x1d9cd6,_0x336228,_0x293969,_0x4411fe,_0x4a3b72){const _0xd4310b=_0x33f14e;super(),this[_0xd4310b(0x224)]=_0x1f24fc,this[_0xd4310b(0x356)]=_0x118237,this[_0xd4310b(0x333)]=_0x1d9cd6,this[_0xd4310b(0xf7)]=_0x336228,this['_commentService']=_0x293969,this[_0xd4310b(0x17e)]=_0x4411fe,this['_telemetryService']=_0x4a3b72,_0x816778(this,_0xd4310b(0xec),new _0x247d93['BehaviorSubject'](0x0)),_0x816778(this,_0xd4310b(0x3b1),this['_sessionStatus$']['asObservable']()),_0x816778(this,_0xd4310b(0x177),new _0x247d93[(_0xd4310b(0x2be))]()),_0x816778(this,'event$',this[_0xd4310b(0x177)][_0xd4310b(0x172)]()),_0x816778(this,_0xd4310b(0x383),void 0x0),_0x816778(this,_0xd4310b(0x119),void 0x0),_0x816778(this,_0xd4310b(0x3a7),void 0x0),_0x816778(this,_0xd4310b(0xd3),!0x1),_0x816778(this,_0xd4310b(0x233),null),this[_0xd4310b(0xd3)]=!!this[_0xd4310b(0x398)],_0x4b48ef['pipe']((0x0,_0x247d93['takeUntil'])(this[_0xd4310b(0x26d)]))[_0xd4310b(0x305)](_0x250de4=>{const _0x5ec6a4=_0xd4310b;if(_0x250de4!==void 0x0){if(this[_0x5ec6a4(0x383)]=_0x250de4,_0x250de4)this[_0x5ec6a4(0x2ca)](_0x250de4),this[_0x5ec6a4(0x119)]=_0x250de4['message$'][_0x5ec6a4(0x305)](_0x351cc2=>{const _0x27be6a=_0x5ec6a4;_0x351cc2[_0x27be6a(0x2bf)]===this[_0x27be6a(0x224)]&&this[_0x27be6a(0x18d)](_0x351cc2);});else{var _0x1a3cda;this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x5ec6a4(0x300)](0x2),(_0x1a3cda=this[_0x5ec6a4(0x119)])==null||_0x1a3cda[_0x5ec6a4(0x38d)](),this[_0x5ec6a4(0x119)]=null;}}});}[_0x33f14e(0x173)](){const _0x5b1d0e=_0x33f14e;var _0x26aec2,_0x3a8ba9;return(_0x26aec2=(_0x3a8ba9=this['_socket'])==null?void 0x0:_0x3a8ba9[_0x5b1d0e(0x277)])==null?null:_0x26aec2;}['dispose'](){const _0x2a4720=_0x33f14e;super['dispose'](),this[_0x2a4720(0xe4)](),this['dispose$'][_0x2a4720(0x300)](),this[_0x2a4720(0x26d)][_0x2a4720(0x109)]();}[_0x33f14e(0xe4)](){const _0xd26da3=_0x33f14e;var _0x3d5697,_0x36c7f6;this['_throwTelemetryCollaborationNewChangeset'](),(_0x3d5697=this[_0xd26da3(0x383)])==null||_0x3d5697['send']({'cmd':_0x54f861[_0xd26da3(0xb8)]['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x36c7f6=this[_0xd26da3(0x383)])==null||_0x36c7f6[_0xd26da3(0xe4)](),this[_0xd26da3(0x177)][_0xd26da3(0x109)](),this['_sessionStatus$']['complete']();}[_0x33f14e(0x18d)](_0x416ecc){const _0x60ee87=_0x33f14e;_0x416ecc[_0x60ee87(0x38a)]===_0x54f861[_0x60ee87(0xb8)][_0x60ee87(0x2b1)]?this['_onJoinRoomEvent'](_0x416ecc):_0x416ecc[_0x60ee87(0x38a)]===_0x54f861[_0x60ee87(0xb8)][_0x60ee87(0x2f8)]&&this[_0x60ee87(0x158)](_0x416ecc);}[_0x33f14e(0x2ca)](_0x280d6c){const _0x28af88=_0x33f14e;this[_0x28af88(0xec)]['next'](0x1),_0x280d6c[_0x28af88(0x3a8)]({'cmd':_0x54f861['CombCmd'][_0x28af88(0x2b1)],'routeKey':this[_0x28af88(0x224)],'routeType':'','data':{'rooms':[{'roomID':this[_0x28af88(0x224)]}]}});}[_0x33f14e(0x28f)](_0x5f3fcc){const _0x506b1d=_0x33f14e;var _0xd82d76;if(_0x5f3fcc[_0x506b1d(0x361)]in _0x2c4457){this[_0x506b1d(0x17e)][_0x506b1d(0x118)]({'id':_0x506b1d(0x259),'data':_0x2c4457[_0x5f3fcc[_0x506b1d(0x361)]]}),this[_0x506b1d(0xec)][_0x506b1d(0x300)](0x2);return;}this[_0x506b1d(0xec)][_0x506b1d(0x300)](0x3);let _0x40fcb2=(_0xd82d76=_0x5f3fcc['data'][_0x506b1d(0x33d)][this[_0x506b1d(0x224)]])==null?void 0x0:_0xd82d76[_0x506b1d(0x155)];_0x40fcb2&&_0x40fcb2[_0x506b1d(0x1fc)](_0xd28b52=>this['_memberService'][_0x506b1d(0x10a)](this[_0x506b1d(0x224)],_0xd28b52));}[_0x33f14e(0x158)](_0x1a59af){const _0x299cc7=_0x33f14e;try{let _0x341226=_0x1a59af['data'];switch(_0x341226[_0x299cc7(0x2b4)]){case _0x540a4f[_0x299cc7(0x38c)][_0x299cc7(0x285)]:this[_0x299cc7(0x324)](_0x341226),this['_event$']['next'](_0x341226);break;case _0x540a4f[_0x299cc7(0x38c)][_0x299cc7(0x341)]:this[_0x299cc7(0x2da)](_0x341226),this[_0x299cc7(0x177)]['next'](_0x341226);break;case _0x540a4f['CollaborationEvent'][_0x299cc7(0x24c)]:case _0x540a4f[_0x299cc7(0x38c)][_0x299cc7(0x370)]:this[_0x299cc7(0x310)](),this[_0x299cc7(0x13a)](),this['_event$']['next'](_0x341226);break;case _0x540a4f[_0x299cc7(0x38c)][_0x299cc7(0x1d7)]:this[_0x299cc7(0x356)]['error'](_0x299cc7(0x389)+JSON[_0x299cc7(0x121)](_0x341226)),this[_0x299cc7(0x177)]['next'](_0x341226);break;case _0x540a4f[_0x299cc7(0x38c)][_0x299cc7(0x291)]:this['_commentService'][_0x299cc7(0x236)](_0x341226['data']),this[_0x299cc7(0x177)][_0x299cc7(0x300)](_0x341226);break;default:this[_0x299cc7(0x177)][_0x299cc7(0x300)](_0x341226);}}catch(_0x545663){this[_0x299cc7(0x356)][_0x299cc7(0x15f)](_0x545663,_0x1a59af);}}[_0x33f14e(0x324)](_0x427196){const _0x2e2285=_0x33f14e;this[_0x2e2285(0xf7)][_0x2e2285(0x10a)](this['_unitID'],_0x427196[_0x2e2285(0x23d)]);}[_0x33f14e(0x2da)](_0x5583a1){const _0x16b6bc=_0x33f14e;this[_0x16b6bc(0xf7)][_0x16b6bc(0x392)](this[_0x16b6bc(0x224)],_0x5583a1[_0x16b6bc(0x23d)]['memberID']);}async[_0x33f14e(0x3a8)](_0x553f4b,_0x1d4464){const _0x1c4a01=_0x33f14e;if(this[_0x1c4a01(0x1d0)]!==0x3||!this['_socket'])throw Error(_0x1c4a01(0x32a));try{_0x553f4b['eventID']===_0x540a4f[_0x1c4a01(0x38c)]['SUBMIT_CHANGESET']&&(this[_0x1c4a01(0x28b)](),this[_0x1c4a01(0x1c5)](_0x553f4b)),this['_socket'][_0x1c4a01(0x3a8)]({'cmd':_0x54f861[_0x1c4a01(0xb8)][_0x1c4a01(0x23f)],'routeKey':_0x1d4464,'routeType':'','data':_0x553f4b});}catch(_0x2cfafb){this[_0x1c4a01(0x356)][_0x1c4a01(0x15f)](_0x2cfafb);}}[_0x33f14e(0x28b)](){const _0x49bc5e=_0x33f14e;var _0x40b776;this[_0x49bc5e(0x3a7)]=setTimeout(()=>{const _0x597575=_0x49bc5e;this[_0x597575(0x3a7)]=null,this[_0x597575(0x17e)][_0x597575(0x118)]({'id':_0x597575(0x160)});},(_0x40b776=this[_0x49bc5e(0x333)][_0x49bc5e(0x328)]('HEARTBEAT_TIMEOUT'))==null?_0x5752cb:_0x40b776);}[_0x33f14e(0x13a)](){const _0x2aa11f=_0x33f14e;this[_0x2aa11f(0x3a7)]&&(clearTimeout(this[_0x2aa11f(0x3a7)]),this[_0x2aa11f(0x3a7)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x2f6221){const _0x14304c=_0x33f14e;if(!this['_shouldReportTelemetry'])return;let {data:_0x12d44d}=_0x2f6221,{unitID:_0x3bfd20,changeset:_0x171f90}=_0x12d44d,{mutations:_0x4010a7,type:_0x2326cd}=_0x171f90;this[_0x14304c(0x233)]={'unitId':_0x3bfd20,'type':_0x2326cd,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x3fc80e(_0x4010a7)};}[_0x33f14e(0x310)](){const _0x15582a=_0x33f14e;if(this[_0x15582a(0xd3)]){if(!this[_0x15582a(0x233)]){this[_0x15582a(0x356)][_0x15582a(0x15f)](_0x15582a(0x243),_0x15582a(0x2f6));return;}this['_telemetryInfo'][_0x15582a(0x14a)]=performance[_0x15582a(0x11f)](),this['_telemetryInfo'][_0x15582a(0x125)]=this['_telemetryInfo']['stopTime']-this[_0x15582a(0x233)][_0x15582a(0x1f9)],this[_0x15582a(0x398)][_0x15582a(0x338)](_0x15582a(0x2df),this['_telemetryInfo']),this[_0x15582a(0x233)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}};_0x459c7b=_0x47fc4c([_0xf01086(0x2,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x3,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x497a33)),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x1493d1)),_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696)),_0xf01086(0x7,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xc2f67a[_0x33f14e(0x1dc)]))],_0x459c7b);let _0xbd995e=(0x0,_0x305d10[_0x33f14e(0x131)])(_0x33f14e(0x2c5));function _0x3da7c3(_0x4aeefd){const _0x1e2aa7=_0x33f14e;return _0x1e2aa7(0x188)+_0x4aeefd;}function _0x138085(_0x4e4352){const _0x5129e5=_0x33f14e;let {unitID:_0x4315d8,mutations:_0x110371}=_0x4e4352;return{'unitId':_0x4315d8,'subUnitId':_0x110371[_0x5129e5(0x251)]>0x0?_0x110371[0x0][_0x5129e5(0x3c1)][_0x5129e5(0x2c3)]:null};}let _0x2c235d=class{constructor(_0x162e82,_0x5f2734,_0x2958b6){const _0x40effe=_0x33f14e;this[_0x40effe(0x1c7)]=_0x162e82,this['_transformService']=_0x5f2734,this['_instanceService']=_0x2958b6;}[_0x33f14e(0x2e6)](_0x402820){const _0x428d81=_0x33f14e;var _0x4dcf56,_0x3876ca;let _0x4197d9=this[_0x428d81(0x1c7)][_0x428d81(0x1a5)](_0x2b86ea['SheetsSelectionsService']),{unitId:_0x19f009,subUnitId:_0x5ee77d}=_0x138085(_0x402820),_0xe02184=_0x4197d9==null?void 0x0:_0x4197d9[_0x428d81(0x2cc)](_0x19f009)[_0x428d81(0x214)](),_0x379ea0=(_0x4dcf56=this[_0x428d81(0x113)][_0x428d81(0x379)](_0x19f009))==null||(_0x4dcf56=_0x4dcf56['getActiveSheet']())==null?void 0x0:_0x4dcf56[_0x428d81(0x309)]();if(_0xe02184[_0x428d81(0x251)]===0x0||!_0x19f009||!_0x5ee77d)return;let _0x195deb=[{'id':_0x2b86ea['SetSelectionsOperation']['id'],'params':{'unitId':_0x19f009,'subUnitId':_0x379ea0,'selections':_0x305d10[_0x428d81(0x12d)][_0x428d81(0x19c)](_0xe02184)}}],_0xabb2dd=this['_transformService'][_0x428d81(0x141)](_0x402820,_0x195deb);if(!(0x0,_0x540a4f[_0x428d81(0x199)])(_0xabb2dd))throw _0xabb2dd[_0x428d81(0x15f)];let _0x271e73=(_0x3876ca=_0xabb2dd[_0x428d81(0x28c)][0x0])==null||(_0x3876ca=_0x3876ca['params'])==null?void 0x0:_0x3876ca[_0x428d81(0x186)];if(Array['isArray'](_0x271e73)&&_0x271e73[_0x428d81(0x251)]){if(_0x271e73[_0x428d81(0x251)]===_0x195deb[0x0]['params'][_0x428d81(0x186)][_0x428d81(0x251)]&&_0x271e73[_0x428d81(0x11e)]((_0x40aa80,_0x32fc59)=>_0x305d10['Rectangle'][_0x428d81(0x232)](_0x40aa80['range'],_0x195deb[0x0][_0x428d81(0x3c1)][_0x428d81(0x186)][_0x32fc59]['range'])))return;this[_0x428d81(0x1c7)]['get'](_0x305d10[_0x428d81(0x213)])[_0x428d81(0x1b2)](_0x2b86ea[_0x428d81(0x30f)]['id'],{'unitId':_0x19f009,'subUnitId':_0x379ea0,'selections':_0x271e73});}}};_0x2c235d=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10['Inject'])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x1,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0x2,_0x305d10[_0x33f14e(0x20d)])],_0x2c235d);let _0x4e88b2=(0x0,_0x305d10[_0x33f14e(0x131)])(_0x33f14e(0x385)),_0x3dfa36=function(_0x4d49c4){const _0x4a1ccd=_0x33f14e;return _0x4d49c4[_0x4d49c4['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x4a1ccd(0x34c),_0x4d49c4[_0x4d49c4[_0x4a1ccd(0xcf)]=0x1]=_0x4a1ccd(0xcf),_0x4d49c4;}({}),_0x1cf9ab=_0x33f14e(0x2ba),_0x4cbbd4={};function _0x451933(_0x394457){const _0x583799=_0x33f14e;var _0x389e2a;return!!((_0x389e2a=_0x394457[_0x583799(0x3c1)])!=null&&_0x389e2a[_0x583799(0x21a)]);}let _0x34b1bb=new Set([_0x2b86ea[_0x33f14e(0x381)]['id']]);function _0x19ee22(_0x30cf89,_0xc57895,_0x2cf0de,_0x371513,_0x3c27cf){const _0x3a101b=_0x33f14e;var _0x1dd28f,_0x168331,_0x35e9a8,_0x2d03c6;let _0x4df263=[];for(let _0x35fef8 of _0x30cf89){if(_0x34b1bb[_0x3a101b(0x354)](_0x35fef8['id'])){if(_0x4df263[_0x3a101b(0x251)]>0x0)break;_0x4df263[_0x3a101b(0xf8)](_0x35fef8);break;}if(_0x451933(_0x35fef8)){if(_0x4df263['length']>0x0)break;_0x4df263[_0x3a101b(0xf8)](_0x35fef8);break;}_0x4df263[_0x3a101b(0xf8)](_0x35fef8);}let _0x5b400e=(_0x1dd28f=(_0x168331=_0x3c27cf[_0x3a101b(0x2cd)]())==null?void 0x0:_0x168331[_0x3a101b(0x317)])==null?_0x3a101b(0x23e):_0x1dd28f,_0x2caff2=(_0x35e9a8=(_0x2d03c6=_0x3c27cf['getCurrentUser']())==null?void 0x0:_0x2d03c6[_0x3a101b(0x277)])==null?_0x3a101b(0x23e):_0x35e9a8;return{'changeset':{'unitID':_0xc57895,'type':(0x0,_0x540a4f[_0x3a101b(0xf5)])(_0x2cf0de[_0x3a101b(0x174)](_0xc57895)),'baseRev':_0x371513[_0x3a101b(0x15b)](_0xc57895),'revision':0x0,'userID':_0x5b400e,'memberID':_0x2caff2,'mutations':_0x4df263},'pendingMutations':_0x30cf89[_0x3a101b(0x387)](_0x4df263[_0x3a101b(0x251)])};}function _0x1fe0b4(_0xbf91d,_0x16dec3,_0x4fff00,_0xdf9bd2,_0x244d30){const _0x4574c0=_0x33f14e;var _0x26fb60,_0x5b278b,_0x662f3b,_0x9ab48f;let _0x162dae=_0xbf91d['reduce']((_0x27f9bc,_0x1a7296)=>{const _0x46a4e8=_0x1555;let _0x2fea4e=_0x27f9bc[_0x27f9bc[_0x46a4e8(0x251)]-0x1],{id:_0x187ffa}=_0x2fea4e==null?{}:_0x2fea4e,{id:_0x2d8512,type:_0xa83d9e}=_0x1a7296,_0xafeeee=_0x1a7296['params'];if(_0x187ffa&&_0x187ffa!==_0x2d8512)throw Error(_0x46a4e8(0x35a)+_0x187ffa+_0x46a4e8(0x222)+_0x2d8512+'.');if(!_0x2fea4e)return[{'id':_0x2d8512,'type':_0xa83d9e,'params':{'unitId':_0xafeeee[_0x46a4e8(0x34f)],'textRanges':_0xafeeee[_0x46a4e8(0x16f)],'actions':_0xafeeee[_0x46a4e8(0x165)]}}];let _0x3fc225=_0x2fea4e[_0x46a4e8(0x3c1)];return _0x4d4d66(_0x3fc225[_0x46a4e8(0x165)],_0xafeeee['actions'])?[..._0x27f9bc[_0x46a4e8(0x387)](0x0,-0x1),{..._0x2fea4e,'id':_0x2d8512,'type':_0xa83d9e,'params':{'unitId':_0xafeeee['unitId'],'textRanges':_0xafeeee['textRanges'],'actions':_0x305d10[_0x46a4e8(0x308)]['compose'](_0x3fc225[_0x46a4e8(0x165)],_0xafeeee[_0x46a4e8(0x165)])}}]:[..._0x27f9bc,{'id':_0x2d8512,'type':_0xa83d9e,'params':{'unitId':_0xafeeee['unitId'],'textRanges':_0xafeeee['textRanges'],'actions':_0xafeeee[_0x46a4e8(0x165)]}}];},[]),_0xff29db=(_0x26fb60=(_0x5b278b=_0x244d30['getCurrentUser']())==null?void 0x0:_0x5b278b['userID'])==null?'unknown':_0x26fb60,_0xdce05d=(_0x662f3b=(_0x9ab48f=_0x244d30[_0x4574c0(0x2cd)]())==null?void 0x0:_0x9ab48f[_0x4574c0(0x277)])==null?_0x4574c0(0x23e):_0x662f3b;return{'changeset':{'unitID':_0x16dec3,'type':(0x0,_0x540a4f[_0x4574c0(0xf5)])(_0x4fff00['getUnitType'](_0x16dec3)),'baseRev':_0xdf9bd2[_0x4574c0(0x15b)](_0x16dec3),'revision':0x0,'userID':_0xff29db,'memberID':_0xdce05d,'mutations':_0x162dae},'pendingMutations':_0xbf91d[_0x4574c0(0x387)](_0xbf91d['length'])};}function _0x4d4d66(_0xb837d3,_0x5c530a){return!(_0x309e4b(_0xb837d3)&&_0x1761db(_0x5c530a)||_0x1761db(_0xb837d3)&&_0x309e4b(_0x5c530a));}function _0x309e4b(_0x257f9e){const _0x4b827c=_0x33f14e;return _0x2b6663(_0x257f9e)[_0x4b827c(0x382)](_0x351f6f=>_0x3d77ce(_0x351f6f)&&_0x351f6f['et']==='text-x');}function _0x1761db(_0x957ccb){const _0x326ccc=_0x33f14e;return _0x2b6663(_0x957ccb)[_0x326ccc(0x382)](_0x191c9f=>Array[_0x326ccc(0x175)](_0x191c9f)||typeof _0x191c9f==_0x326ccc(0x137)||typeof _0x191c9f==_0x326ccc(0x242));}function _0x2b6663(_0x3e6eab){const _0x249a3f=_0x33f14e;if(!Array['isArray'](_0x3e6eab))return[];let _0x4f8ebc=_0x3e6eab['includes'](_0x249a3f(0x29f))?_0x3e6eab:_0x3e6eab[_0x249a3f(0xfa)](_0x6f95f0=>Array[_0x249a3f(0x175)](_0x6f95f0)&&_0x6f95f0[_0x249a3f(0x1c3)](_0x249a3f(0x29f)));if(!Array[_0x249a3f(0x175)](_0x4f8ebc))return[];let _0x180752=_0x4f8ebc[_0x249a3f(0x156)](_0x249a3f(0x29f));return _0x180752===-0x1?[]:_0x4f8ebc[_0x249a3f(0x387)](_0x180752+0x1);}function _0x3d77ce(_0x1b988a){return typeof _0x1b988a=='object'&&!!_0x1b988a&&!Array['isArray'](_0x1b988a);}function _0x1ecae5(_0x5e95a3,_0x1af4bb){const _0x592eb8=_0x33f14e;let _0x5ee2b4=new _0x247d93['ReplaySubject'](0x1);return setTimeout(()=>_0x5ee2b4[_0x592eb8(0x300)](_0x1af4bb),_0x5e95a3),_0x5ee2b4[_0x592eb8(0x172)]()[_0x592eb8(0x2a9)]((0x0,_0x247d93['take'])(0x1));}var _0x633e0b,_0x54fbde,_0x55bb43;let _0x46a1e9=function(_0x1cbe66){const _0x20a22d=_0x33f14e;return _0x1cbe66[_0x20a22d(0x1e1)]='not_collab',_0x1cbe66['SYNCED']=_0x20a22d(0x255),_0x1cbe66[_0x20a22d(0x1cc)]=_0x20a22d(0x3af),_0x1cbe66[_0x20a22d(0x190)]=_0x20a22d(0xe6),_0x1cbe66[_0x20a22d(0xbd)]=_0x20a22d(0x315),_0x1cbe66['FETCH_MISS']=_0x20a22d(0xe9),_0x1cbe66['CONFLICT']=_0x20a22d(0x182),_0x1cbe66[_0x20a22d(0x266)]=_0x20a22d(0x15d),_0x1cbe66;}({}),_0x47612d=0x4e20,_0x28da41=0x2bf20;var _0xcc4349=class{constructor(_0x355a8b,_0x474467,_0x8f87a7,_0x399f76,_0x585708,_0x29ffb0,_0x3be49d,_0x1045e0,_0x572761){const _0x19e701=_0x33f14e;this[_0x19e701(0x37e)]=_0x355a8b,this[_0x19e701(0x1aa)]=_0x474467,this[_0x19e701(0x1c8)]=_0x585708,this[_0x19e701(0x1f7)]=_0x29ffb0,this['_undoRedoService']=_0x3be49d,this[_0x19e701(0x28d)]=_0x1045e0,this[_0x19e701(0x179)]=_0x572761,_0x816778(this,'_awaitingChangeset',null),_0x816778(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x8f87a7,this[_0x19e701(0x14e)]=_0x399f76;}['_checkMissing'](_0x5021a7){const _0x6374ea=_0x33f14e;let _0x3befd3=this[_0x6374ea(0x28d)][_0x6374ea(0x15b)](this[_0x6374ea(0x37e)]);return _0x5021a7[_0x6374ea(0x2d1)]>_0x3befd3+0x1?(this[_0x6374ea(0x1c8)]['onMissingChangesets']({'from':_0x3befd3,'to':_0x5021a7['revision']-0x1}),!0x0):!0x1;}[_0x33f14e(0x2d6)](_0x3f2fd6){const _0x16a561=_0x33f14e;this[_0x16a561(0x2b8)][_0x16a561(0xf1)](this[_0x16a561(0x37e)],_0x3f2fd6);}[_0x33f14e(0x346)](_0x20a7a3){const _0xb9072d=_0x33f14e;var _0x4b9d76,_0x5ab349;(_0x4b9d76=(_0x5ab349=this[_0xb9072d(0x1c8)])[_0xb9072d(0x2c1)])==null||_0x4b9d76[_0xb9072d(0xdf)](_0x5ab349,_0x20a7a3);}['_transformIMECache'](_0x27ae5d){const _0x167ba7=_0x33f14e;var _0x278d56,_0x247857;return(_0x278d56=(_0x247857=this[_0x167ba7(0x1c8)])['onTransformIME'])==null?void 0x0:_0x278d56['call'](_0x247857,_0x27ae5d);}[_0x33f14e(0xc6)](_0xbca56e){const _0x2122de=_0x33f14e;var _0x1afbde,_0x44bc67;return(_0x1afbde=(_0x44bc67=this[_0x2122de(0x1c8)])[_0x2122de(0x2f0)])==null?void 0x0:_0x1afbde['call'](_0x44bc67,_0xbca56e);}[_0x33f14e(0x2b6)](_0x26957d){const _0x24d8ac=_0x33f14e;var _0x18dd9c,_0x3e0bc9,_0x5c48d1;return(_0x18dd9c=(_0x3e0bc9=(_0x5c48d1=this[_0x24d8ac(0x1c8)])[_0x24d8ac(0x299)])==null?void 0x0:_0x3e0bc9['call'](_0x5c48d1,_0x26957d))==null?_0x26957d:_0x18dd9c;}[_0x33f14e(0x325)](_0x13680e){const _0x53720f=_0x33f14e;var _0x2bd412,_0x46f2a9,_0x886166;return(_0x2bd412=(_0x46f2a9=(_0x886166=this[_0x53720f(0x1c8)])[_0x53720f(0x395)])==null?void 0x0:_0x46f2a9[_0x53720f(0xdf)](_0x886166,_0x13680e))==null?_0x13680e:_0x2bd412;}[_0x33f14e(0x2e4)](_0x4d2ffb){const _0x5cf4e1=_0x33f14e;if(this['type']===_0x305d10[_0x5cf4e1(0x1c6)][_0x5cf4e1(0x26e)]){let {unitID:_0x2fe043,mutations:_0xce858c,memberID:_0xf08aa5}=_0x4d2ffb,_0x1fd0b6=_0xce858c[_0x5cf4e1(0x251)]>0x0?_0xce858c[0x0][_0x5cf4e1(0x3c1)][_0x5cf4e1(0x16f)]:[];if(Array[_0x5cf4e1(0x175)](_0x1fd0b6)&&_0x1fd0b6[_0x5cf4e1(0x251)]>0x0){var _0x5c2cb8,_0xe591e0;(_0x5c2cb8=(_0xe591e0=this[_0x5cf4e1(0x1c8)])[_0x5cf4e1(0x27f)])==null||_0x5c2cb8[_0x5cf4e1(0xdf)](_0xe591e0,{'unitID':_0x2fe043,'memberID':_0xf08aa5,'textRanges':_0x1fd0b6});}}}[_0x33f14e(0x335)](){const _0x1f9405=_0x33f14e;var _0x440f3a;(_0x440f3a=this[_0x1f9405(0x179)])==null||_0x440f3a[_0x1f9405(0x12a)](this['unitID'],this[_0x1f9405(0x1aa)],this['_awaitingChangeset'],this[_0x1f9405(0x14e)]);}['_getCurrentRevision'](){const _0x3545de=_0x33f14e;return this[_0x3545de(0x28d)]['getCurrentRevOfUnit'](this[_0x3545de(0x37e)]);}['_incrementRevisionNumber'](){const _0x286238=_0x33f14e;this['_revisionService']['incrementRevOfUnit'](this[_0x286238(0x37e)]);}[_0x33f14e(0x16b)](_0x1ad632){const _0x2ee9f5=_0x33f14e;let _0x15f3d3=this['_transformRemoteChangesetByIMECache'](_0x1ad632);_0x15f3d3=this[_0x2ee9f5(0x325)](_0x15f3d3);let _0x19e26a=(0x0,_0x305d10['sequenceExecute'])(_0x15f3d3[_0x2ee9f5(0x316)],this[_0x2ee9f5(0x1f7)],{'fromCollab':!0x0});if(!_0x19e26a[_0x2ee9f5(0x1b5)]){var _0x3d0e59;throw _0x19e26a[_0x2ee9f5(0x15f)]instanceof Error?_0x19e26a['error']:Error((_0x3d0e59=_0x19e26a[_0x2ee9f5(0x15f)])==null?_0x2ee9f5(0x1f2):_0x3d0e59);}this[_0x2ee9f5(0x187)](_0x15f3d3),this[_0x2ee9f5(0xc6)](_0x15f3d3),this['_transformUndoredo'](_0x1ad632),this[_0x2ee9f5(0x346)](_0x15f3d3),this[_0x2ee9f5(0x2e4)](_0x15f3d3),this[_0x2ee9f5(0x3b7)]();}};let _0x3f62b4=class extends _0xcc4349{constructor(_0x292f38,_0x5db4d0,_0x31c05f,_0x4730c0,_0x42f86d,_0x9b2d6f,_0xf398f2,_0x147d9c,_0x3f3e29,_0x5af352){const _0x4e075f=_0x33f14e;super(_0x292f38,_0x5db4d0,null,[],_0x31c05f,_0xf398f2,_0x9b2d6f,_0x4730c0,_0x5af352),this[_0x4e075f(0x1c7)]=_0x42f86d,this[_0x4e075f(0x356)]=_0x147d9c,this[_0x4e075f(0x15e)]=_0x3f3e29,this[_0x4e075f(0x302)]=_0x5af352,_0x816778(this,_0x4e075f(0x2fb),'synced');}[_0x33f14e(0x221)](_0x983e0f){const _0x3c7d0d=_0x33f14e;let _0x2a471b=this[_0x3c7d0d(0x1c7)][_0x3c7d0d(0x32f)](_0x40e466,this[_0x3c7d0d(0x37e)],this[_0x3c7d0d(0x1aa)],[_0x983e0f],this[_0x3c7d0d(0x1c8)]);return _0x2a471b['_schedule'](),_0x2a471b[_0x3c7d0d(0x335)](),_0x2a471b;}[_0x33f14e(0x217)](_0x2ee81e){const _0x1ca358=_0x33f14e;if(this[_0x1ca358(0x209)](_0x2ee81e))return this['_injector'][_0x1ca358(0x32f)](_0x69d917,this[_0x1ca358(0x37e)],this[_0x1ca358(0x1aa)],null,[],null,[_0x2ee81e],this[_0x1ca358(0x1c8)]);try{let _0x26a60a=this['_transformService'][_0x1ca358(0x141)](_0x2ee81e,[_0x540a4f[_0x1ca358(0x31b)]]);if((0x0,_0x540a4f['isTransformMutationsWithChangesetSuccess'])(_0x26a60a)){let {c1Prime:_0x2e42a3}=_0x26a60a;return this['_executeRemoteChangeset'](_0x2e42a3),this;}throw _0x26a60a['error'];}catch(_0x1c2b76){return this[_0x1ca358(0x356)][_0x1ca358(0x15f)](_0x1c2b76),this[_0x1ca358(0x358)](!0x1);}}[_0x33f14e(0x358)](_0x404a4f){const _0x133b73=_0x33f14e;return this[_0x133b73(0x1c7)][_0x133b73(0x32f)](_0x50a112,this[_0x133b73(0x37e)],this[_0x133b73(0x1aa)],null,[],this[_0x133b73(0x1c8)],_0x404a4f);}[_0x33f14e(0xc4)](_0x5dce4b){const _0x5521b5=_0x33f14e;if(_0x5dce4b['revision']<=this[_0x5521b5(0x203)]())return this;throw Error(_0x5521b5(0x111));}[_0x33f14e(0x159)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x33f14e(0xb3)](){const _0x4c4824=_0x33f14e;return this[_0x4c4824(0x1c7)][_0x4c4824(0x32f)](_0x18cfb2,this[_0x4c4824(0x37e)],this['type'],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x33f14e(0x150)](){const _0x1bdf26=_0x33f14e;throw Error(_0x1bdf26(0x168));}[_0x33f14e(0x132)](){const _0xd111fe=_0x33f14e;let _0x339e52=this[_0xd111fe(0x28d)][_0xd111fe(0x15b)](this[_0xd111fe(0x37e)]);return this[_0xd111fe(0x1c8)][_0xd111fe(0xd6)]({'from':_0x339e52,'to':0x0}),this['_injector'][_0xd111fe(0x32f)](_0x69d917,this[_0xd111fe(0x37e)],this[_0xd111fe(0x1aa)],null,[],null,[],this[_0xd111fe(0x1c8)]);}};_0x3f62b4=_0x47fc4c([_0xf01086(0x3,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x5,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0x6,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0x7,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x8,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0x9,(0x0,_0x305d10['Optional'])(_0xbd995e))],_0x3f62b4);let _0x40e466=_0x633e0b=class extends _0xcc4349{constructor(_0x335431,_0x1b9f2e,_0x38cd39,_0x369c08,_0x790fbd,_0x26c4df,_0x3be10b,_0x10bdde,_0x4b62d1,_0x86daae,_0x3e6163,_0x193372,_0xbd0fd,_0x36ec8f){const _0x49fe7d=_0x33f14e;super(_0x335431,_0x1b9f2e,null,_0x38cd39,_0x369c08,_0x4b62d1,_0xbd0fd,_0x26c4df,_0x36ec8f),this[_0x49fe7d(0x1c7)]=_0x790fbd,this['_memberService']=_0x3be10b,this['_logService']=_0x10bdde,this['_configService']=_0x86daae,this[_0x49fe7d(0x15e)]=_0x3e6163,this[_0x49fe7d(0x35b)]=_0x193372,_0x816778(this,_0x49fe7d(0x2fb),_0x49fe7d(0x3af)),_0x816778(this,_0x49fe7d(0x1b3),null),_0x816778(this,_0x49fe7d(0x2bb),null);}[_0x33f14e(0x221)](_0x5921de){const _0x3ec400=_0x33f14e;return this[_0x3ec400(0x14e)][_0x3ec400(0xf8)](_0x5921de),this[_0x3ec400(0x335)](),this;}['onRemoteChangeset'](_0x5ed536){const _0x35878b=_0x33f14e;if(this[_0x35878b(0x209)](_0x5ed536))return this['_clearScheduledTask'](),this[_0x35878b(0x1c7)][_0x35878b(0x32f)](_0x69d917,this[_0x35878b(0x37e)],this[_0x35878b(0x1aa)],null,this[_0x35878b(0x14e)],null,[_0x5ed536],this[_0x35878b(0x1c8)]);try{let _0x590395=this['_transformService'][_0x35878b(0x141)](_0x5ed536,this['_pendingMutations']);if((0x0,_0x540a4f[_0x35878b(0x199)])(_0x590395)){let {c1Prime:_0x20fa95,m2Prime:_0xf86bbb}=_0x590395;this[_0x35878b(0x16b)](_0x20fa95);let _0x148eea=this[_0x35878b(0x1c7)][_0x35878b(0x32f)](_0x633e0b,this['unitID'],this[_0x35878b(0x1aa)],_0xf86bbb,this[_0x35878b(0x1c8)]);this[_0x35878b(0x2ab)]();let _0x361943=new Date()[_0x35878b(0x18f)](),_0x24db7a=this[_0x35878b(0x1b3)]?Math['max'](this[_0x35878b(0x1b3)]-_0x361943,0x0):this['_getSendChangesetTimeout']();return _0x148eea[_0x35878b(0x1d6)](_0x24db7a),_0x148eea;}throw _0x590395['error'];}catch(_0x528321){return this[_0x35878b(0x356)][_0x35878b(0x15f)](_0x528321),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x1331f8){const _0x8ea644=_0x33f14e;if(_0x1331f8[_0x8ea644(0x2d1)]<=this[_0x8ea644(0x203)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x38a119=_0x33f14e;throw Error(_0x38a119(0xdd));}[_0x33f14e(0x24f)](){return this;}[_0x33f14e(0xb3)](){const _0x19c476=_0x33f14e;return this['_clearScheduledTask'](),this[_0x19c476(0x1c7)][_0x19c476(0x32f)](_0x18cfb2,this[_0x19c476(0x37e)],this[_0x19c476(0x1aa)],null,this['_pendingMutations'],this[_0x19c476(0x1c8)]);}[_0x33f14e(0x2ea)](){return this;}[_0x33f14e(0x1d6)](_0x364107){const _0xb9b4f2=_0x33f14e;let _0x106b7c=_0x364107==null?this[_0xb9b4f2(0x3ae)]():_0x364107;this[_0xb9b4f2(0x1b3)]=new Date()[_0xb9b4f2(0x18f)]()+_0x106b7c,this[_0xb9b4f2(0x2bb)]=setTimeout(()=>{const _0x29fbff=_0xb9b4f2;this[_0x29fbff(0x2ab)]();let _0x5a7297=null;switch(this[_0x29fbff(0x1aa)]){case _0x305d10['UniverInstanceType'][_0x29fbff(0x22a)]:_0x5a7297=_0x19ee22(this[_0x29fbff(0x14e)],this['unitID'],this[_0x29fbff(0x35b)],this[_0x29fbff(0x28d)],this['_memberService']);break;case _0x305d10[_0x29fbff(0x1c6)][_0x29fbff(0x26e)]:_0x5a7297=this[_0x29fbff(0x14e)][_0x29fbff(0x11e)](_0x3ed38a=>_0x3ed38a['id']===_0x44bc8e[_0x29fbff(0xe8)]['id'])?_0x1fe0b4(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x29fbff(0x28d)],this[_0x29fbff(0xf7)]):_0x19ee22(this[_0x29fbff(0x14e)],this[_0x29fbff(0x37e)],this[_0x29fbff(0x35b)],this[_0x29fbff(0x28d)],this[_0x29fbff(0xf7)]);break;default:throw Error(_0x29fbff(0x16c)+this[_0x29fbff(0x1aa)]+_0x29fbff(0x198));}let {changeset:_0xbb3ba7,pendingMutations:_0x4f36c0}=_0x5a7297;this[_0x29fbff(0x1c8)]['onSendChangeset'](_0xbb3ba7);let _0x575566=_0x4f36c0[_0x29fbff(0x251)]?this['_injector'][_0x29fbff(0x32f)](_0x1f4a11,this[_0x29fbff(0x37e)],this[_0x29fbff(0x1aa)],_0xbb3ba7,_0x4f36c0,this['_handler'],void 0x0):this[_0x29fbff(0x1c7)]['createInstance'](_0x4c5197,this[_0x29fbff(0x37e)],this[_0x29fbff(0x1aa)],_0xbb3ba7,this[_0x29fbff(0x1c8)]);_0x575566[_0x29fbff(0x335)](),this[_0x29fbff(0x1c8)][_0x29fbff(0xbc)](this,_0x575566);},_0x106b7c);}[_0x33f14e(0x3ae)](){const _0x52c51d=_0x33f14e;var _0x2c9ed1;let _0x9107f5=this[_0x52c51d(0x333)][_0x52c51d(0x328)](_0x1cf9ab);return(_0x2c9ed1=_0x9107f5==null?void 0x0:_0x9107f5['sendChangesetTimeout'])==null?0x7d0:_0x2c9ed1;}['resend'](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x33f14e(0x2ab)](){const _0x4c6a10=_0x33f14e;this[_0x4c6a10(0x2bb)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x4c6a10(0x2bb)]=null);}[_0x33f14e(0x358)](_0x563bf9){const _0x3e6f84=_0x33f14e;return this[_0x3e6f84(0x2ab)](),this[_0x3e6f84(0x1c7)][_0x3e6f84(0x32f)](_0x50a112,this[_0x3e6f84(0x37e)],this[_0x3e6f84(0x1aa)],null,this[_0x3e6f84(0x14e)],this[_0x3e6f84(0x1c8)],_0x563bf9);}};_0x40e466=_0x633e0b=_0x47fc4c([_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x6,(0x0,_0x305d10['Inject'])(_0x497a33)),_0xf01086(0x7,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x8,_0x305d10['ICommandService']),_0xf01086(0x9,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0xa,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0xb,_0x305d10[_0x33f14e(0x20d)]),_0xf01086(0xc,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0xd,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x40e466);let _0x4c5197=_0x54fbde=class extends _0xcc4349{constructor(_0x1218ba,_0x28267e,_0x55f598,_0x3c656a,_0x4ee38c,_0x5db4a8,_0x26ae2d,_0x163821,_0x50428d,_0x5a6036,_0x1642c9){const _0x40df2a=_0x33f14e;super(_0x1218ba,_0x28267e,_0x55f598,[],_0x3c656a,_0x26ae2d,_0x5a6036,_0x5db4a8,_0x1642c9),this[_0x40df2a(0x1c7)]=_0x4ee38c,this[_0x40df2a(0x356)]=_0x163821,this['_transformService']=_0x50428d,_0x816778(this,_0x40df2a(0x2fb),_0x40df2a(0xe6)),_0x816778(this,_0x40df2a(0x120),0x0),_0x816778(this,_0x40df2a(0x256),0x0),_0x816778(this,_0x40df2a(0x1a6),void 0x0),_0x816778(this,'_sender',void 0x0);}[_0x33f14e(0x221)](_0x2163db){const _0x528fa8=_0x33f14e;this[_0x528fa8(0x2ab)]();let _0x2b9e46=this[_0x528fa8(0x1c7)][_0x528fa8(0x32f)](_0x1f4a11,this[_0x528fa8(0x37e)],this[_0x528fa8(0x1aa)],this[_0x528fa8(0x110)],[_0x2163db],this[_0x528fa8(0x1c8)],this[_0x528fa8(0x1a6)]);return _0x2b9e46[_0x528fa8(0x335)](),_0x2b9e46;}['onRemoteChangeset'](_0x502162){const _0x370dec=_0x33f14e;if(this[_0x370dec(0x209)](_0x502162))return this[_0x370dec(0x2ab)](),this[_0x370dec(0x1c7)]['createInstance'](_0x69d917,this[_0x370dec(0x37e)],this[_0x370dec(0x1aa)],this[_0x370dec(0x110)],[],null,[_0x502162],this[_0x370dec(0x1c8)]);try{let _0x4f0f84=this[_0x370dec(0x15e)][_0x370dec(0x3be)]([_0x502162],[this[_0x370dec(0x110)]],!0x1);if((0x0,_0x540a4f['isTransformChangesetsSuccess'])(_0x4f0f84)){let {c1Prime:_0x16464e,c2Prime:_0x393897}=_0x4f0f84;this[_0x370dec(0x16b)](_0x16464e[0x0]),_0x393897[0x0][_0x370dec(0x1ac)]=this['_getCurrentRevision'](),this[_0x370dec(0x2ab)]();let _0x481dc8=this[_0x370dec(0x1c7)][_0x370dec(0x32f)](_0x54fbde,this['unitID'],this[_0x370dec(0x1aa)],_0x393897[0x0],this[_0x370dec(0x1c8)]);return _0x481dc8[_0x370dec(0x335)](),_0x481dc8;}throw _0x4f0f84[_0x370dec(0x15f)];}catch(_0x2d13dd){return this[_0x370dec(0x356)]['error'](_0x2d13dd),this[_0x370dec(0x358)](!0x1);}}[_0x33f14e(0xc4)](_0x49abc9){const _0x41ed35=_0x33f14e;this[_0x41ed35(0x2ab)]();let _0x49b5d4=this[_0x41ed35(0x28d)][_0x41ed35(0x15b)](this[_0x41ed35(0x37e)]);if(_0x49abc9['revision']<=_0x49b5d4)return this;if(this[_0x41ed35(0x209)](_0x49abc9))return this[_0x41ed35(0x1c7)][_0x41ed35(0x32f)](_0x69d917,this[_0x41ed35(0x37e)],this[_0x41ed35(0x1aa)],this['_awaitingChangeset'],[],_0x49abc9[_0x41ed35(0x2d1)],[],this[_0x41ed35(0x1c8)]);this['_incrementRevisionNumber']();let _0x5e3bc4=this[_0x41ed35(0x1c7)][_0x41ed35(0x32f)](_0x3f62b4,this[_0x41ed35(0x37e)],this[_0x41ed35(0x1aa)],this[_0x41ed35(0x1c8)]);return _0x5e3bc4['_updateLocalCache'](),_0x5e3bc4;}[_0x33f14e(0x159)](_0x184ea1){const _0x764ea7=_0x33f14e;return this['_onConflict'](!!(_0x184ea1!=null&&_0x184ea1[_0x764ea7(0x3bd)]));}[_0x33f14e(0x24f)](_0x25a9e6){const _0x152643=_0x33f14e;return this['_maxTotalRetryTimeout']>_0x28da41?this['toggleOffline']():(this['_resendTimer']=_0x1ecae5(this['_resendTimeout'],{'timeout':this[_0x152643(0x120)],'reqId':_0x25a9e6[_0x152643(0x1e8)]}),this[_0x152643(0x2ff)]=this['_resendTimer'][_0x152643(0x305)](({reqId:_0x3ce18e,timeout:_0x1c6712})=>{const _0x1ccc4f=_0x152643;this[_0x1ccc4f(0x286)](_0x3ce18e,_0x1c6712);}),this);}[_0x33f14e(0xb3)](){const _0x214b0d=_0x33f14e;return this[_0x214b0d(0x2ab)](),this[_0x214b0d(0x1c7)][_0x214b0d(0x32f)](_0x18cfb2,this[_0x214b0d(0x37e)],this[_0x214b0d(0x1aa)],this[_0x214b0d(0x110)],[],this['_handler']);}[_0x33f14e(0x2ea)](){return this;}[_0x33f14e(0x150)](){const _0x58f9ef=_0x33f14e;this['_handler'][_0x58f9ef(0x152)](this['_awaitingChangeset']);}[_0x33f14e(0x358)](_0x207512){const _0x1d003c=_0x33f14e;return this['_clearScheduledTask'](),this[_0x1d003c(0x1c7)][_0x1d003c(0x32f)](_0x50a112,this[_0x1d003c(0x37e)],this[_0x1d003c(0x1aa)],this['_awaitingChangeset'],[],this['_handler'],_0x207512);}[_0x33f14e(0x286)](_0x509e42,_0x1f36d4){const _0x196667=_0x33f14e;var _0x14def6;_0x509e42===((_0x14def6=this['_awaitingChangeset'])==null?void 0x0:_0x14def6[_0x196667(0x1e8)])&&(this[_0x196667(0x150)](),this[_0x196667(0x120)]=_0x1f36d4===0x0?0x3e8:Math[_0x196667(0x276)](_0x1f36d4*0x2,_0x47612d),this[_0x196667(0x256)]+=this[_0x196667(0x120)]);}[_0x33f14e(0x2ab)](){const _0x55a4fa=_0x33f14e;var _0x48e8bb;(_0x48e8bb=this[_0x55a4fa(0x2ff)])==null||_0x48e8bb[_0x55a4fa(0x38d)](),this[_0x55a4fa(0x120)]=0x0,this[_0x55a4fa(0x256)]=0x0;}};_0x4c5197=_0x54fbde=_0x47fc4c([_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['Injector'])),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f['RevisionService'])),_0xf01086(0x6,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0x7,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x8,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0x9,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0xa,(0x0,_0x305d10['Optional'])(_0xbd995e))],_0x4c5197);let _0x1f4a11=_0x55bb43=class extends _0xcc4349{constructor(_0x4f18de,_0x5ee346,_0x3c1ed3,_0x171390,_0x1f057b,_0xa767e5,_0x7d422e,_0x3b4b05,_0x39a92b,_0x376e82,_0x25caf9,_0x3c27f4,_0x8052b6){const _0x3d4a39=_0x33f14e;super(_0x4f18de,_0x5ee346,_0x3c1ed3,_0x171390,_0x1f057b,_0x39a92b,_0x3c27f4,_0x3b4b05,_0x8052b6),this[_0x3d4a39(0x1c7)]=_0x7d422e,this['_logService']=_0x376e82,this[_0x3d4a39(0x15e)]=_0x25caf9,this[_0x3d4a39(0x302)]=_0x8052b6,_0x816778(this,_0x3d4a39(0x2fb),_0x3d4a39(0x315)),_0x816778(this,_0x3d4a39(0x120),0x0),_0x816778(this,'_maxTotalRetryTimeout',0x0),_0x816778(this,_0x3d4a39(0x1a6),void 0x0),_0x816778(this,_0x3d4a39(0x2ff),void 0x0),_0xa767e5&&(this[_0x3d4a39(0x1a6)]=_0xa767e5,this[_0x3d4a39(0x2ff)]=this['_resendTimer'][_0x3d4a39(0x305)](({reqId:_0x186cf0,timeout:_0x4aa35f})=>{const _0x445eca=_0x3d4a39;this[_0x445eca(0x286)](_0x186cf0,_0x4aa35f);}));}[_0x33f14e(0x221)](_0x4b7b9){const _0x5ca261=_0x33f14e;return this[_0x5ca261(0x14e)][_0x5ca261(0xf8)](_0x4b7b9),this;}['onRemoteChangeset'](_0x4a5f14){const _0x159de4=_0x33f14e;if(this[_0x159de4(0x209)](_0x4a5f14))return this[_0x159de4(0x2ab)](),this['_injector'][_0x159de4(0x32f)](_0x69d917,this[_0x159de4(0x37e)],this[_0x159de4(0x1aa)],this[_0x159de4(0x110)],this[_0x159de4(0x14e)],null,[_0x4a5f14],this[_0x159de4(0x1c8)]);try{let _0x5173e9=this[_0x159de4(0x15e)][_0x159de4(0x3be)]([_0x4a5f14],[this['_awaitingChangeset']],!0x1);if((0x0,_0x540a4f[_0x159de4(0x13e)])(_0x5173e9)){let {c1Prime:_0x169dde,c2Prime:_0x20ca7a}=_0x5173e9,_0x54fb2c=this[_0x159de4(0x15e)][_0x159de4(0x141)](_0x169dde[0x0],this['_pendingMutations']);if((0x0,_0x540a4f['isTransformMutationsWithChangesetSuccess'])(_0x54fb2c)){let {c1Prime:_0x1908db,m2Prime:_0x482048}=_0x54fb2c;return this[_0x159de4(0x16b)](_0x1908db),_0x20ca7a[0x0][_0x159de4(0x1ac)]=this['_getCurrentRevision'](),this[_0x159de4(0x2ab)](),this['_injector'][_0x159de4(0x32f)](_0x55bb43,this[_0x159de4(0x37e)],this['type'],_0x20ca7a[0x0],_0x482048,this['_handler'],void 0x0);}throw _0x54fb2c[_0x159de4(0x15f)];}throw _0x5173e9[_0x159de4(0x15f)];}catch(_0x501454){return this[_0x159de4(0x356)][_0x159de4(0x15f)](_0x501454),this[_0x159de4(0x358)](!0x1);}}[_0x33f14e(0xc4)](_0x53e550){const _0x3d5577=_0x33f14e;this[_0x3d5577(0x2ab)]();let _0x125298=this[_0x3d5577(0x203)]();if(_0x53e550[_0x3d5577(0x2d1)]<=_0x125298)return this;if(this[_0x3d5577(0x209)](_0x53e550))return this[_0x3d5577(0x1c7)][_0x3d5577(0x32f)](_0x69d917,this[_0x3d5577(0x37e)],this[_0x3d5577(0x1aa)],this[_0x3d5577(0x110)],this[_0x3d5577(0x14e)],_0x53e550[_0x3d5577(0x2d1)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x5c98ba=this[_0x3d5577(0x1c7)][_0x3d5577(0x32f)](_0x40e466,this[_0x3d5577(0x37e)],this[_0x3d5577(0x1aa)],this[_0x3d5577(0x14e)],this[_0x3d5577(0x1c8)]);return _0x5c98ba[_0x3d5577(0x1d6)](),_0x5c98ba[_0x3d5577(0x335)](),_0x5c98ba;}[_0x33f14e(0x159)](_0x4d4bc8){const _0x180fe9=_0x33f14e;return this[_0x180fe9(0x358)](!!(_0x4d4bc8!=null&&_0x4d4bc8[_0x180fe9(0x3bd)]));}[_0x33f14e(0x24f)](_0xc4ad1){const _0x33d45c=_0x33f14e;return this['_maxTotalRetryTimeout']>_0x28da41?this[_0x33d45c(0xb3)]():(this[_0x33d45c(0x1a6)]=_0x1ecae5(this['_resendTimeout'],{'timeout':this[_0x33d45c(0x120)],'reqId':_0xc4ad1['reqId']}),this[_0x33d45c(0x2ff)]=this[_0x33d45c(0x1a6)][_0x33d45c(0x305)](({reqId:_0x1a03ca,timeout:_0x245cfe})=>{this['_resendWithTimeout'](_0x1a03ca,_0x245cfe);}),this);}[_0x33f14e(0xb3)](){const _0x2628a7=_0x33f14e;return this['_clearScheduledTask'](),this[_0x2628a7(0x1c7)]['createInstance'](_0x18cfb2,this[_0x2628a7(0x37e)],this[_0x2628a7(0x1aa)],this['_awaitingChangeset'],this[_0x2628a7(0x14e)],this[_0x2628a7(0x1c8)]);}[_0x33f14e(0x2ea)](){return this;}[_0x33f14e(0x150)](){const _0x2fb49f=_0x33f14e;this[_0x2fb49f(0x1c8)][_0x2fb49f(0x152)](this[_0x2fb49f(0x110)]);}[_0x33f14e(0x358)](_0x30f957){const _0x283785=_0x33f14e;return this[_0x283785(0x2ab)](),this[_0x283785(0x1c7)][_0x283785(0x32f)](_0x50a112,this['unitID'],this['type'],null,this[_0x283785(0x14e)],this[_0x283785(0x1c8)],_0x30f957);}[_0x33f14e(0x286)](_0x3c0cfa,_0x12396d){const _0x227f59=_0x33f14e;var _0x56255e;_0x3c0cfa===((_0x56255e=this[_0x227f59(0x110)])==null?void 0x0:_0x56255e[_0x227f59(0x1e8)])&&(this[_0x227f59(0x150)](),this[_0x227f59(0x120)]=_0x12396d===0x0?0x3e8:Math[_0x227f59(0x276)](_0x12396d*0x2,_0x47612d),this[_0x227f59(0x256)]+=this[_0x227f59(0x120)]);}[_0x33f14e(0x2ab)](){const _0x45eb67=_0x33f14e;var _0x5c0a20;(_0x5c0a20=this[_0x45eb67(0x2ff)])==null||_0x5c0a20[_0x45eb67(0x38d)](),this[_0x45eb67(0x120)]=0x0,this[_0x45eb67(0x256)]=0x0;}};_0x1f4a11=_0x55bb43=_0x47fc4c([_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['Injector'])),_0xf01086(0x7,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x8,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0x9,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0xa,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0xb,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0xc,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x1f4a11);let _0x50a112=class extends _0xcc4349{constructor(_0x31787d,_0x15170e,_0x4dba88,_0x3c057d,_0x1a375f,_0x24ef1=!0x1,_0x2ceccc,_0x415cf9,_0x191e4b,_0x4a8efc,_0x16d17a,_0x4a60a5,_0x536dbc){const _0x288f21=_0x33f14e;super(_0x31787d,_0x15170e,_0x4dba88,_0x3c057d,_0x1a375f,_0x415cf9,_0x191e4b,_0x4a8efc,_0x536dbc),this[_0x288f21(0x39a)]=_0x24ef1,this['_permissionService']=_0x2ceccc,this['_localeService']=_0x16d17a,this['_collaborationUIEventService']=_0x4a60a5,this['localCacheService']=_0x536dbc,_0x816778(this,_0x288f21(0x2fb),_0x288f21(0x182)),this[_0x288f21(0x29e)](),this[_0x288f21(0x307)](),this['_disableEditing']();}[_0x33f14e(0x221)](){return this;}['onRemoteChangeset'](){return this;}[_0x33f14e(0xc4)](){return this;}[_0x33f14e(0x159)](){return this;}[_0x33f14e(0x24f)](){return this;}[_0x33f14e(0xb3)](){return this;}[_0x33f14e(0x2ea)](){return this;}[_0x33f14e(0x150)](){const _0x6a83b9=_0x33f14e;throw Error(_0x6a83b9(0x1ed));}['_clearLocalCache'](){const _0x335240=_0x33f14e;var _0x80b8ee;(_0x80b8ee=this[_0x335240(0x179)])==null||_0x80b8ee[_0x335240(0x12a)](this[_0x335240(0x37e)],this[_0x335240(0x1aa)],null,[]);}[_0x33f14e(0x29e)](){const _0x18eb99=_0x33f14e;this[_0x18eb99(0x39a)]?this[_0x18eb99(0x17e)]['emitEvent']({'id':_0x18eb99(0x399)}):this['_collaborationUIEventService']['emitEvent']({'id':_0x18eb99(0x225)});}[_0x33f14e(0xdb)](){const _0x154a12=_0x33f14e;this[_0x154a12(0x27e)][_0x154a12(0x378)](new _0x2b86ea['WorkbookEditablePermission'](this[_0x154a12(0x37e)])['id'],!0x1);}};_0x50a112=_0x47fc4c([_0xf01086(0x6,(0x0,_0x305d10['Inject'])(_0x305d10['IPermissionService'])),_0xf01086(0x7,_0x305d10['ICommandService']),_0xf01086(0x8,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0x9,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0xa,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x35f)])),_0xf01086(0xb,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696)),_0xf01086(0xc,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x50a112);let _0x18cfb2=class extends _0xcc4349{constructor(_0x1e418d,_0xf2207f,_0x287bbe,_0xad63d4,_0x1a7cda,_0x38fa44,_0x40a9a8,_0x4f03ac,_0x40d088,_0x23d0c0){const _0x5c2e52=_0x33f14e;super(_0x1e418d,_0xf2207f,_0x287bbe,_0xad63d4,_0x1a7cda,_0x4f03ac,_0x40d088,_0x40a9a8,_0x23d0c0),this[_0x5c2e52(0x1c7)]=_0x38fa44,_0x816778(this,_0x5c2e52(0x2fb),_0x5c2e52(0x15d));}['appendMutation'](_0x220376){const _0x1cd502=_0x33f14e;return this[_0x1cd502(0x14e)][_0x1cd502(0xf8)](_0x220376),this[_0x1cd502(0x335)](),this;}[_0x33f14e(0x217)](_0x1568ef){const _0x1a2f7c=_0x33f14e;throw Error(_0x1a2f7c(0x3a0));}[_0x33f14e(0xc4)](){const _0x54842f=_0x33f14e;throw Error(_0x54842f(0x25b));}[_0x33f14e(0x159)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x33f14e(0x24f)](){return this;}['toggleOffline'](){return this;}[_0x33f14e(0x2ea)](){const _0x1ef93a=_0x33f14e;let {_injector:_0x4fccb1,_pendingMutations:_0x44555f,_awaitingChangeset:_0x5766b0,unitID:_0x5c11bb,_handler:_0x14fdcd,type:_0x55039b}=this,_0x4b2c19=_0xa73d8b(_0x4fccb1,_0x5c11bb,_0x55039b,_0x5766b0,_0x44555f,_0x14fdcd);return _0x4b2c19 instanceof _0x40e466?_0x4b2c19['_schedule']():(_0x4b2c19 instanceof _0x1f4a11||_0x4b2c19 instanceof _0x4c5197)&&_0x4b2c19[_0x1ef93a(0x150)](),_0x4b2c19;}[_0x33f14e(0x150)](){const _0x11a03a=_0x33f14e;throw Error(_0x11a03a(0x357));}};_0x18cfb2=_0x47fc4c([_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x7,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0x8,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0x9,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x18cfb2);let _0x69d917=class extends _0xcc4349{constructor(_0x2d9350,_0x44417f,_0x19fb88,_0x15cf3d,_0x4d6f16,_0x35c998,_0x215377,_0x5f4305,_0x45c123,_0x279368,_0x113d36,_0x14fd12,_0x2aaa6f,_0x3e05be){const _0x5ea01a=_0x33f14e;super(_0x2d9350,_0x44417f,_0x19fb88,_0x15cf3d,_0x215377,_0x113d36,_0x14fd12,_0x45c123,_0x3e05be),this[_0x5ea01a(0x1ea)]=_0x4d6f16,this[_0x5ea01a(0x319)]=_0x35c998,this['_injector']=_0x5f4305,this['_logService']=_0x279368,this['_transformService']=_0x2aaa6f,this[_0x5ea01a(0x302)]=_0x3e05be,_0x816778(this,_0x5ea01a(0x2fb),_0x5ea01a(0xe9));}[_0x33f14e(0xd5)](_0xe12d30){const _0x3a4a90=_0x33f14e;try{if(this[_0x3a4a90(0x2cf)](_0xe12d30)[_0x3a4a90(0x2e1)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this['_handleRemoteChangesets']([...this[_0x3a4a90(0x319)]][_0x3a4a90(0x1bd)]((_0x4de3bc,_0x56635b)=>_0x4de3bc[_0x3a4a90(0x2d1)]-_0x56635b[_0x3a4a90(0x2d1)]))[_0x3a4a90(0x2e1)])return this[_0x3a4a90(0x319)]=[],this[_0x3a4a90(0x335)](),this['_handler'][_0x3a4a90(0xd6)]({'from':this[_0x3a4a90(0x203)](),'to':0x0}),this;let _0x18d0dc=this[_0x3a4a90(0x110)],_0x485f9a=this[_0x3a4a90(0x14e)],_0x374bdb;if(_0x18d0dc&&_0x485f9a['length']!==0x0)_0x374bdb=this['_injector'][_0x3a4a90(0x32f)](_0x1f4a11,this[_0x3a4a90(0x37e)],this[_0x3a4a90(0x1aa)],_0x18d0dc,_0x485f9a,this['_handler'],void 0x0);else{if(_0x18d0dc&&_0x485f9a['length']===0x0)_0x18d0dc[_0x3a4a90(0x1ac)]=this[_0x3a4a90(0x203)](),_0x374bdb=this[_0x3a4a90(0x1c7)]['createInstance'](_0x4c5197,this['unitID'],this[_0x3a4a90(0x1aa)],_0x18d0dc,this['_handler']);else{if(_0x485f9a[_0x3a4a90(0x251)]!==0x0){let _0x3f02ca=this[_0x3a4a90(0x1c7)]['createInstance'](_0x40e466,this['unitID'],this['type'],_0x485f9a,this[_0x3a4a90(0x1c8)]);_0x3f02ca[_0x3a4a90(0x1d6)](),_0x374bdb=_0x3f02ca;}else _0x374bdb=this['_injector']['createInstance'](_0x3f62b4,this[_0x3a4a90(0x37e)],this[_0x3a4a90(0x1aa)],this[_0x3a4a90(0x1c8)]);}}return _0x374bdb[_0x3a4a90(0x335)](),_0x374bdb;}catch(_0x93055e){return this[_0x3a4a90(0x356)][_0x3a4a90(0x15f)](_0x3a4a90(0x27d),_0x3a4a90(0x1d1),_0x93055e),this['_injector']['createInstance'](_0x50a112,this[_0x3a4a90(0x37e)],this[_0x3a4a90(0x1aa)],this[_0x3a4a90(0x110)],this[_0x3a4a90(0x14e)],this[_0x3a4a90(0x1c8)],!0x1);}}[_0x33f14e(0x2cf)](_0x5bc373){const _0x9b52ac=_0x33f14e;this['_acknowledgeAwaitingIfReady']();for(let _0x34f413=0x0;_0x34f413<_0x5bc373[_0x9b52ac(0x251)];_0x34f413++){let _0x41404d=_0x5bc373[_0x34f413],_0x380e3e=this[_0x9b52ac(0x203)]();if(!(_0x41404d[_0x9b52ac(0x2d1)]<=_0x380e3e)){if(_0x41404d[_0x9b52ac(0x2d1)]>_0x380e3e+0x1)return{'missingChangesets':!0x0};if(this[_0x9b52ac(0x234)](_0x41404d)){this[_0x9b52ac(0xee)]();continue;}this[_0x9b52ac(0x342)](_0x41404d),this[_0x9b52ac(0x275)]();}}return{'missingChangesets':!0x1};}[_0x33f14e(0x342)](_0x77ac01){const _0x2872ed=_0x33f14e;let _0x3f1b89=_0x77ac01,_0x27ac81=this[_0x2872ed(0x110)];if(_0x27ac81){let _0x18b20e=this[_0x2872ed(0x15e)][_0x2872ed(0x3be)]([_0x77ac01],[_0x27ac81],!0x1);if(!(0x0,_0x540a4f[_0x2872ed(0x13e)])(_0x18b20e))throw _0x18b20e[_0x2872ed(0x15f)];_0x3f1b89=_0x18b20e['c1Prime'][0x0],_0x27ac81=_0x18b20e[_0x2872ed(0x22b)][0x0];}let _0x2f245f=this['_pendingMutations'];if(_0x2f245f[_0x2872ed(0x251)]){let _0x5810f0=this[_0x2872ed(0x15e)][_0x2872ed(0x141)](_0x3f1b89,_0x2f245f);if(!(0x0,_0x540a4f[_0x2872ed(0x199)])(_0x5810f0))throw _0x5810f0[_0x2872ed(0x15f)];_0x3f1b89=_0x5810f0['c1Prime'],_0x2f245f=_0x5810f0['m2Prime'];}this[_0x2872ed(0x16b)](_0x3f1b89),_0x27ac81&&(_0x27ac81[_0x2872ed(0x1ac)]=this[_0x2872ed(0x203)]()),this['_awaitingChangeset']=_0x27ac81,this[_0x2872ed(0x14e)]=_0x2f245f;}['_acknowledgeAwaitingIfReady'](){const _0x2762cb=_0x33f14e;if(!this[_0x2762cb(0x110)]||this[_0x2762cb(0x1ea)]==null)return;let _0x3f7964=this[_0x2762cb(0x203)]();if(this[_0x2762cb(0x1ea)]<=_0x3f7964)throw Error(_0x2762cb(0x351)+this['_acknowledgedAwaitingRevision']+'.');this[_0x2762cb(0x1ea)]===_0x3f7964+0x1&&this[_0x2762cb(0xee)]();}['_acknowledgeAwaiting'](){const _0x4122d1=_0x33f14e;this[_0x4122d1(0x3b7)](),this[_0x4122d1(0x110)]=null,this[_0x4122d1(0x1ea)]=null;}[_0x33f14e(0x234)](_0x566903){const _0x10d8d1=_0x33f14e;let _0x3fb967=this[_0x10d8d1(0x110)];return!_0x3fb967||!_0x3fb967[_0x10d8d1(0x39c)]||_0x3fb967[_0x10d8d1(0x1e8)]===null||_0x3fb967[_0x10d8d1(0x1e8)]===void 0x0?!0x1:_0x566903[_0x10d8d1(0x37e)]===_0x3fb967[_0x10d8d1(0x37e)]&&_0x566903[_0x10d8d1(0x39c)]===_0x3fb967['sid']&&_0x566903[_0x10d8d1(0x1e8)]===_0x3fb967[_0x10d8d1(0x1e8)];}[_0x33f14e(0x150)](){const _0x530d79=_0x33f14e;throw Error(_0x530d79(0x220));}[_0x33f14e(0x221)](_0x509a86){const _0x52b199=_0x33f14e;return this[_0x52b199(0x14e)]['push'](_0x509a86),this;}[_0x33f14e(0x217)](_0x4d839f){const _0x132068=_0x33f14e;return this[_0x132068(0x319)]['push'](_0x4d839f),this;}[_0x33f14e(0xc4)](_0x2f2e14){const _0x41a12e=_0x33f14e;if(this[_0x41a12e(0x110)]){let _0x2378fb=this[_0x41a12e(0x203)]();return _0x2f2e14[_0x41a12e(0x2d1)]<=_0x2378fb||(_0x2378fb+0x1===_0x2f2e14[_0x41a12e(0x2d1)]?(this[_0x41a12e(0x3b7)](),this['_awaitingChangeset']=null,this['_acknowledgedAwaitingRevision']=null):this[_0x41a12e(0x1ea)]=_0x2f2e14['revision']),this;}if(_0x2f2e14[_0x41a12e(0x2d1)]<=this[_0x41a12e(0x203)]())return this;throw Error(_0x41a12e(0x130));}['onRemoteRej'](_0x3c6a74){const _0xa98a8c=_0x33f14e;return this[_0xa98a8c(0x358)](!!(_0x3c6a74!=null&&_0x3c6a74['isPermissionRej']));}[_0x33f14e(0x24f)](){return this;}[_0x33f14e(0xb3)](){const _0x568c3a=_0x33f14e;return this[_0x568c3a(0x1c7)][_0x568c3a(0x32f)](_0x18cfb2,this[_0x568c3a(0x37e)],this[_0x568c3a(0x1aa)],this[_0x568c3a(0x110)],this[_0x568c3a(0x14e)],this[_0x568c3a(0x1c8)]);}['toggleOnline'](){return this;}[_0x33f14e(0x358)](_0x11d35e){const _0x2d1728=_0x33f14e;return this[_0x2d1728(0x1c7)][_0x2d1728(0x32f)](_0x50a112,this[_0x2d1728(0x37e)],this[_0x2d1728(0x1aa)],this[_0x2d1728(0x110)],this[_0x2d1728(0x14e)],this[_0x2d1728(0x1c8)],_0x11d35e);}};_0x69d917=_0x47fc4c([_0xf01086(0x7,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['Injector'])),_0xf01086(0x8,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x9,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0xa,_0x305d10['ICommandService']),_0xf01086(0xb,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0xc,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0xd,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x69d917);function _0xa73d8b(_0x226fee,_0x2e4faf,_0x52a65d,_0x137b46,_0x3b13ce,_0x4db61f){const _0x29aeb5=_0x33f14e;return _0x137b46&&_0x3b13ce['length']?_0x226fee[_0x29aeb5(0x32f)](_0x1f4a11,_0x2e4faf,_0x52a65d,_0x137b46,_0x3b13ce,_0x4db61f,void 0x0):_0x137b46?_0x226fee[_0x29aeb5(0x32f)](_0x4c5197,_0x2e4faf,_0x52a65d,_0x137b46,_0x4db61f):_0x3b13ce[_0x29aeb5(0x251)]?_0x226fee[_0x29aeb5(0x32f)](_0x40e466,_0x2e4faf,_0x52a65d,_0x3b13ce,_0x4db61f):_0x226fee[_0x29aeb5(0x32f)](_0x3f62b4,_0x2e4faf,_0x52a65d,_0x4db61f);}let _0x5f0326=class extends _0x305d10[_0x33f14e(0x15a)]{get['state'](){return this['_state'];}constructor(_0x48350c,_0x28bc02,_0x2fb4b4,_0x100c18,_0xb8ec71,_0x4ed3c7,_0x1ad9b1,_0x4af083,_0x18337b,_0x2fd90a,_0xa1c208,_0x5bc666,_0x1fb27e,_0x37d351){const _0x2a13d9=_0x33f14e;super(),this['unitID']=_0x48350c,this[_0x2a13d9(0x20a)]=_0x28bc02,this[_0x2a13d9(0x34a)]=_0x2fb4b4,this[_0x2a13d9(0x1c7)]=_0x100c18,this[_0x2a13d9(0x2ac)]=_0xb8ec71,this[_0x2a13d9(0x35d)]=_0x4ed3c7,this[_0x2a13d9(0x28d)]=_0x1ad9b1,this[_0x2a13d9(0x17a)]=_0x4af083,this[_0x2a13d9(0x35b)]=_0x18337b,this[_0x2a13d9(0x356)]=_0x2fd90a,this[_0x2a13d9(0x1f7)]=_0xa1c208,this[_0x2a13d9(0x27e)]=_0x5bc666,this[_0x2a13d9(0x24a)]=_0x1fb27e,this[_0x2a13d9(0x179)]=_0x37d351,_0x816778(this,_0x2a13d9(0x247),new _0x247d93['BehaviorSubject'](null)),_0x816778(this,_0x2a13d9(0x1a8),this['_state$'][_0x2a13d9(0x172)]()),_0x816778(this,'_state',void 0x0),_0x816778(this,_0x2a13d9(0x1d8),!0x1),_0x816778(this,'_changesetSessionId',''),_0x816778(this,'_changesetReqId',0x0),_0x816778(this,_0x2a13d9(0x363),this[_0x2a13d9(0x1a8)][_0x2a13d9(0x2a9)]((0x0,_0x247d93[_0x2a13d9(0x348)])(_0x3e65ff=>_0x3e65ff?_0x3e65ff[_0x2a13d9(0x2fb)]:'offline'),(0x0,_0x247d93[_0x2a13d9(0x2de)])({'bufferSize':0x1,'refCount':!0x0}))),_0x816778(this,'_transitionLocked',!0x1),_0x816778(this,_0x2a13d9(0x1ec),[]);}async[_0x33f14e(0x32e)](){const _0x515d0a=_0x33f14e;if(this[_0x515d0a(0x204)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x515d0a(0x205)]();}[_0x33f14e(0x2aa)](){const _0x5bb1c3=_0x33f14e;return this[_0x5bb1c3(0x1d8)]=!0x0,(0x0,_0x305d10['toDisposable'])(()=>{const _0x158b35=_0x5bb1c3;this[_0x158b35(0x1d8)]=!0x1,this[_0x158b35(0x134)]();});}[_0x33f14e(0xf9)](_0x287538){const _0x4ad35e=_0x33f14e;this[_0x4ad35e(0x1ad)](_0x287538);}['_updateState'](_0x147681){const _0x1b3758=_0x33f14e;this[_0x1b3758(0x184)]=_0x147681,this[_0x1b3758(0x247)]['next'](_0x147681);}async[_0x33f14e(0x205)](){const _0x5a6a0f=_0x33f14e;if(this['_updateState'](await this[_0x5a6a0f(0x34b)]()),this['_singleActiveUnitService']){var _0x2dfc70;(_0x2dfc70=this[_0x5a6a0f(0x24a)])==null||_0x2dfc70[_0x5a6a0f(0x1f8)](this[_0x5a6a0f(0x37e)]),this[_0x5a6a0f(0x20b)](this[_0x5a6a0f(0x24a)][_0x5a6a0f(0x38f)](this[_0x5a6a0f(0x37e)])[_0x5a6a0f(0x305)](_0x391207=>{const _0x2b2225=_0x5a6a0f;this['_logService'][_0x2b2225(0x31a)](_0x2b2225(0x2f5),_0x2b2225(0xbe),_0x391207),_0x391207===0x1?(this['_eventService'][_0x2b2225(0x118)]({'id':_0x2b2225(0x162)}),this[_0x2b2225(0x27e)]['updatePermissionPoint'](new _0x2b86ea[(_0x2b2225(0xef))](this[_0x2b2225(0x37e)])['id'],!0x1),this[_0x2b2225(0x27e)]['setShowComponents'](!0x1)):(this[_0x2b2225(0x27e)]['updatePermissionPoint'](new _0x2b86ea[(_0x2b2225(0xef))](this[_0x2b2225(0x37e)])['id'],!0x0),this['_permissionService'][_0x2b2225(0x32d)](!0x0));}));}let _0x9426fa=!0x1;return this[_0x5a6a0f(0x20b)](this[_0x5a6a0f(0x20a)]['sessionStatus$'][_0x5a6a0f(0x305)](_0x5dbf7b=>{_0x5dbf7b===0x3?this['_toggleOnline'](_0x9426fa):_0x5dbf7b===0x2&&(_0x9426fa=!0x0,this['_toggleOffline']());})),this[_0x5a6a0f(0x20b)](this['session'][_0x5a6a0f(0x1b0)][_0x5a6a0f(0x305)](_0x1e0c69=>{const _0x28bbef=_0x5a6a0f;try{switch(_0x1e0c69[_0x28bbef(0x2b4)]){case _0x540a4f[_0x28bbef(0x38c)][_0x28bbef(0x30a)]:this[_0x28bbef(0x2a5)]((0x0,_0x540a4f[_0x28bbef(0x3b0)])(_0x1e0c69['data']));break;case _0x540a4f[_0x28bbef(0x38c)][_0x28bbef(0x24c)]:this[_0x28bbef(0x3b9)](_0x1e0c69['data']);break;case _0x540a4f[_0x28bbef(0x38c)][_0x28bbef(0x164)]:this[_0x28bbef(0x397)]();break;case _0x540a4f[_0x28bbef(0x38c)][_0x28bbef(0x370)]:this['_onRemoteRetry'](_0x1e0c69[_0x28bbef(0x23d)]);break;case _0x540a4f['CollaborationEvent'][_0x28bbef(0x163)]:this[_0x28bbef(0x157)](_0x1e0c69[_0x28bbef(0x23d)][_0x28bbef(0x10e)][_0x28bbef(0x348)](_0x36fd5c=>(0x0,_0x540a4f['parseProtocolChangeset'])(_0x36fd5c)));break;case _0x540a4f[_0x28bbef(0x38c)][_0x28bbef(0x344)]:this[_0x28bbef(0x397)]({'isPermissionRej':!0x0});break;case _0x540a4f[_0x28bbef(0x38c)]['UNISCRIPT_RUN']:break;}}catch(_0x2ecce5){throw console[_0x28bbef(0x15f)](_0x28bbef(0x22d),_0x2ecce5),_0x2ecce5;}})),this[_0x5a6a0f(0x184)];}['_unlockTransition'](){const _0x10391c=_0x33f14e;this[_0x10391c(0x3b8)]=!0x1;}[_0x33f14e(0x39e)](){const _0xbdbdf4=_0x33f14e;if(this['_transitionLocked'])throw Error(_0xbdbdf4(0x39f));this[_0xbdbdf4(0x3b8)]=!0x0;}[_0x33f14e(0x1ad)](_0xf5418){const _0x411751=_0x33f14e;this[_0x411751(0x39e)](),this[_0x411751(0x30c)](this[_0x411751(0x184)][_0x411751(0x221)](_0xf5418)),this['_unlockTransition']();}[_0x33f14e(0x2a5)](_0x2a3abb){const _0x505e6b=_0x33f14e;if(!(_0x2a3abb['revision']<=this['_revisionService'][_0x505e6b(0x15b)](this[_0x505e6b(0x37e)]))){if(this[_0x505e6b(0x1d8)]){this['_remoteChangesetQueue'][_0x505e6b(0xf8)](_0x2a3abb);return;}this[_0x505e6b(0x2a3)](_0x2a3abb);}}['_exhaustRemoteChangesetQueue'](){const _0x3acfe6=_0x33f14e;this[_0x3acfe6(0x1ec)][_0x3acfe6(0x1fc)](_0x9ad203=>this[_0x3acfe6(0x2a3)](_0x9ad203)),this[_0x3acfe6(0x1ec)]=[];}[_0x33f14e(0x2a3)](_0x4826fc){const _0x2d7ffb=_0x33f14e;let _0x16486e=this[_0x2d7ffb(0x2ac)][_0x2d7ffb(0x2e2)]['fetchThroughInterceptors'](this[_0x2d7ffb(0x2ac)]['interceptor'][_0x2d7ffb(0x31e)]()[_0x2d7ffb(0x17c)])(_0x4826fc[_0x2d7ffb(0x316)],null)||_0x4826fc[_0x2d7ffb(0x316)],_0x16333d={..._0x4826fc,'mutations':_0x16486e};this['_lockTransition'](),this[_0x2d7ffb(0x30c)](this[_0x2d7ffb(0x184)]['onRemoteChangeset'](_0x16333d)),this[_0x2d7ffb(0x330)]();}[_0x33f14e(0x3b9)](_0x73f62){const _0x386412=_0x33f14e;this['_lockTransition'](),this['_updateState'](this[_0x386412(0x184)][_0x386412(0xc4)](_0x73f62)),this[_0x386412(0x330)]();}[_0x33f14e(0x397)](_0x510a44){const _0x3c609e=_0x33f14e;this[_0x3c609e(0x39e)](),this['_updateState'](this[_0x3c609e(0x184)][_0x3c609e(0x159)](_0x510a44)),this[_0x3c609e(0x330)]();}[_0x33f14e(0x176)](_0x31ab89){const _0x1e2057=_0x33f14e;this[_0x1e2057(0x39e)](),this[_0x1e2057(0x30c)](this[_0x1e2057(0x184)]['onRemoteRetry'](_0x31ab89)),this[_0x1e2057(0x330)]();}[_0x33f14e(0x157)](_0xe7de93){const _0x4eed1e=_0x33f14e;if(!(this[_0x4eed1e(0x184)]instanceof _0x69d917))throw TypeError(_0x4eed1e(0x104));let _0x250858=_0xe7de93[_0x4eed1e(0x348)](_0x4ce8f8=>{const _0x371e77=_0x4eed1e;let _0x7477bd=this['_compressMutationService'][_0x371e77(0x2e2)]['fetchThroughInterceptors'](this[_0x371e77(0x2ac)][_0x371e77(0x2e2)][_0x371e77(0x31e)]()[_0x371e77(0x17c)])(_0x4ce8f8[_0x371e77(0x316)],null)||_0x4ce8f8[_0x371e77(0x316)];return{..._0x4ce8f8,'mutations':_0x7477bd};});this[_0x4eed1e(0x39e)](),this[_0x4eed1e(0x30c)](this[_0x4eed1e(0x184)][_0x4eed1e(0xd5)](_0x250858)),this[_0x4eed1e(0x330)]();}[_0x33f14e(0x2e3)](){const _0x2841d9=_0x33f14e;this[_0x2841d9(0x39e)](),this[_0x2841d9(0x30c)](this[_0x2841d9(0x184)]['toggleOffline']()),this[_0x2841d9(0x330)]();}['_toggleOnline'](_0x424774=!0x1){const _0x2ffbb7=_0x33f14e;this[_0x2ffbb7(0x39e)](),this[_0x2ffbb7(0x30c)](this['_state'][_0x2ffbb7(0x2ea)]()),this['_unlockTransition']();let _0x4c1499=this[_0x2ffbb7(0x184)];_0x424774&&_0x4c1499 instanceof _0x3f62b4&&(this[_0x2ffbb7(0x39e)](),this[_0x2ffbb7(0x30c)](_0x4c1499['fetchMiss']()),this[_0x2ffbb7(0x330)]());}async['_createInitialState'](){return new Promise(_0xf2537b=>{const _0x18f3df=_0x1555;this[_0x18f3df(0x20a)]['sessionStatus$']['pipe']((0x0,_0x247d93[_0x18f3df(0x1df)])(0x1))[_0x18f3df(0x305)](async _0x2eae6c=>{_0xf2537b(await this['_createInitialStateImpl'](_0x2eae6c===0x3));});});}[_0x33f14e(0x122)](){const _0x2c7435=_0x33f14e;let _0x3712dc=this[_0x2c7435(0x37e)];return{'onStateChange':(_0x1536e4,_0x54a205)=>{const _0x3fbb1f=_0x2c7435;if(_0x1536e4!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1536e4[_0x3fbb1f(0x2fb)]+'\x0aAfter:\x20'+_0x54a205[_0x3fbb1f(0x2fb)]+_0x3fbb1f(0x33a)+this[_0x3fbb1f(0x184)][_0x3fbb1f(0x2fb)]);this[_0x3fbb1f(0x30c)](_0x54a205);},'onSendChangeset':_0x5a5987=>{const _0x5c7af6=_0x2c7435;_0x5a5987['sid']||(_0x5a5987[_0x5c7af6(0x39c)]=this[_0x5c7af6(0xbf)],_0x5a5987[_0x5c7af6(0x1e8)]=++this[_0x5c7af6(0x10d)]);let _0x556aef={'eventID':_0x540a4f[_0x5c7af6(0x38c)][_0x5c7af6(0x1e6)],'data':{'unitID':_0x5a5987[_0x5c7af6(0x37e)],'unitType':this[_0x5c7af6(0x34a)],'changeset':_0x5a5987,'memberID':this['session'][_0x5c7af6(0x173)]()}};this[_0x5c7af6(0x20a)]['send'](_0x556aef,this[_0x5c7af6(0x37e)]);},'onMissingChangesets':({from:_0x368bc4,to:_0x36239a})=>{const _0x373b84=_0x2c7435;this[_0x373b84(0x356)][_0x373b84(0x31a)](_0x373b84(0x2f5),_0x373b84(0xc7)+_0x368bc4+_0x373b84(0xed)+_0x36239a);let _0x362566={'eventID':_0x540a4f[_0x373b84(0x38c)][_0x373b84(0x228)],'data':{'unitID':_0x3712dc,'unitType':this['_type'],'from':_0x368bc4,'to':_0x36239a}};this[_0x373b84(0x20a)][_0x373b84(0x3a8)](_0x362566,this[_0x373b84(0x37e)]);}};}async[_0x33f14e(0x206)](_0xfde58f){const _0x190550=_0x33f14e;var _0x1a8167,_0x1b9d63,_0x3de2a3;let _0x3cc0f0=await((_0x1a8167=this['_localCacheService'])==null?void 0x0:_0x1a8167['loadOfflineData'](this['unitID'])),_0x1b1ce8=(_0x1b9d63=_0x3cc0f0==null?void 0x0:_0x3cc0f0['mutations'])==null?[]:_0x1b9d63,_0x48dcec=(_0x3de2a3=_0x3cc0f0==null?void 0x0:_0x3cc0f0[_0x190550(0x166)])==null?null:_0x3de2a3,_0x3d4c87=!!(_0x48dcec!=null&&_0x48dcec[_0x190550(0x39c)])&&!!(_0x48dcec!=null&&_0x48dcec['reqId']);this['_changesetSessionId']=_0x3d4c87?_0x48dcec[_0x190550(0x39c)]:(0x0,_0x540a4f[_0x190550(0x3b2)])(),this['_changesetReqId']=_0x3d4c87?_0x48dcec[_0x190550(0x1e8)]:0x0;let _0x2deebc=this[_0x190550(0x37e)];try{this['_replayCachedMutations'](_0x48dcec,_0x1b1ce8);}catch(_0x4b0320){this[_0x190550(0x356)][_0x190550(0x15f)](_0x4b0320);}let _0x2362e9=this['_createHandler']();if(_0xfde58f){let _0x1721b8=_0xa73d8b(this[_0x190550(0x1c7)],_0x2deebc,this[_0x190550(0x34a)],_0x48dcec,_0x1b1ce8,_0x2362e9);return _0x1721b8 instanceof _0x40e466?_0x1721b8['_schedule']():(_0x1721b8 instanceof _0x1f4a11||_0x1721b8 instanceof _0x4c5197)&&_0x1721b8[_0x190550(0x150)](),_0x1721b8;}return this[_0x190550(0x1c7)]['createInstance'](_0x18cfb2,_0x2deebc,this[_0x190550(0x34a)],_0x48dcec,_0x1b1ce8,_0x2362e9);}[_0x33f14e(0x301)](_0x37f8bc,_0x3b78d6){const _0xeabfdd=_0x33f14e;var _0x497d91,_0x1a4130;let _0x5ff08d=this[_0xeabfdd(0x2ac)][_0xeabfdd(0x2e2)][_0xeabfdd(0x322)](this[_0xeabfdd(0x2ac)]['interceptor'][_0xeabfdd(0x31e)]()[_0xeabfdd(0x17c)]);(_0x497d91=_0x5ff08d((_0x37f8bc==null?void 0x0:_0x37f8bc[_0xeabfdd(0x316)])||[],null))==null||_0x497d91[_0xeabfdd(0x1fc)](_0x42edf6=>this['_commandService'][_0xeabfdd(0x1b2)](_0x42edf6['id'],_0x42edf6['params'])),(_0x1a4130=_0x5ff08d(_0x3b78d6||[],null))==null||_0x1a4130[_0xeabfdd(0x1fc)](_0x1c58ac=>this['_commandService']['executeCommand'](_0x1c58ac['id'],_0x1c58ac[_0xeabfdd(0x3c1)]));}};_0x5f0326=_0x47fc4c([_0xf01086(0x3,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0xf4)])),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x35f)])),_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x7,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696)),_0xf01086(0x8,_0x305d10['IUniverInstanceService']),_0xf01086(0x9,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0xa,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0xb,_0x305d10[_0x33f14e(0x145)]),_0xf01086(0xc,(0x0,_0x305d10[_0x33f14e(0x235)])(_0x4e88b2)),_0xf01086(0xd,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x5f0326);let _0x467d36=class extends _0x5f0326{constructor(_0x544571,_0x3a5456,_0x1b1a40,_0x4efd1b,_0x444e41,_0x2f75e7,_0xf87c02,_0x13b5ab,_0xb888a9,_0x598e74,_0x4765ea,_0x3a8a10,_0x5252bf,_0x19ddcd){const _0xf6920a=_0x33f14e;super(_0x544571,_0x1b1a40,_0x3a5456,_0x4efd1b,_0x444e41,_0x2f75e7,_0xf87c02,_0x13b5ab,_0xb888a9,_0x598e74,_0x4765ea,_0x3a8a10,_0x5252bf,_0x19ddcd),this['unitID']=_0x544571,this[_0xf6920a(0x1aa)]=_0x3a5456,_0x816778(this,'_handlerCallback',null);}[_0x33f14e(0xde)](_0xa4fb7f){const _0xf860ab=_0x33f14e;this[_0xf860ab(0x239)]=_0xa4fb7f;}[_0x33f14e(0x366)](){const _0x6a3d3a=_0x33f14e;this['_handlerCallback']=null,super[_0x6a3d3a(0x366)]();}[_0x33f14e(0x122)](){const _0x2e9403=_0x33f14e;let _0x132b36=super[_0x2e9403(0x122)]();return _0x132b36['onTransformIME']=_0x164cf9=>{const _0x504f60=_0x2e9403;var _0x5bd321,_0x5f3c93;return(_0x5bd321=this[_0x504f60(0x239)])==null||(_0x5f3c93=_0x5bd321['onTransformIME'])==null?void 0x0:_0x5f3c93[_0x504f60(0xdf)](_0x5bd321,_0x164cf9);},_0x132b36[_0x2e9403(0x2f0)]=_0x44db14=>{const _0x794096=_0x2e9403;var _0x1a1c43,_0x759f2c;return(_0x1a1c43=this[_0x794096(0x239)])==null||(_0x759f2c=_0x1a1c43['onTransformState'])==null?void 0x0:_0x759f2c[_0x794096(0xdf)](_0x1a1c43,_0x44db14);},_0x132b36['onTransformSelections']=_0x162037=>{const _0x5e4ef0=_0x2e9403;var _0x57a740,_0x76d7fc;return(_0x57a740=this['_handlerCallback'])==null||(_0x76d7fc=_0x57a740[_0x5e4ef0(0x2c1)])==null?void 0x0:_0x76d7fc['call'](_0x57a740,_0x162037);},_0x132b36[_0x2e9403(0x27f)]=_0x2bf1e1=>{const _0x22fcbf=_0x2e9403;var _0x434002,_0x22825a;return(_0x434002=this['_handlerCallback'])==null||(_0x22825a=_0x434002[_0x22fcbf(0x27f)])==null?void 0x0:_0x22825a['call'](_0x434002,_0x2bf1e1);},_0x132b36[_0x2e9403(0x299)]=_0x239259=>{const _0x1db9fe=_0x2e9403;var _0x1bb411,_0x21b2fb,_0x5114c1;if(!((_0x1bb411=this[_0x1db9fe(0x239)])!=null&&_0x1bb411['onTransformRemoteChangesetByIMECache']))throw Error(_0x1db9fe(0x23c));return(_0x21b2fb=this[_0x1db9fe(0x239)])==null||(_0x5114c1=_0x21b2fb['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5114c1[_0x1db9fe(0xdf)](_0x21b2fb,_0x239259);},_0x132b36[_0x2e9403(0x395)]=_0x4cc7c5=>{const _0x564051=_0x2e9403;var _0x446837,_0x283e9c,_0x5c4354;if(!((_0x446837=this[_0x564051(0x239)])!=null&&_0x446837[_0x564051(0x395)]))throw Error(_0x564051(0xe0));return(_0x283e9c=this[_0x564051(0x239)])==null||(_0x5c4354=_0x283e9c[_0x564051(0x395)])==null?void 0x0:_0x5c4354[_0x564051(0xdf)](_0x283e9c,_0x4cc7c5);},_0x132b36;}async['_init'](){const _0x1d6439=_0x33f14e;let _0x59ed49=await super[_0x1d6439(0x205)]();return this[_0x1d6439(0x20b)](this[_0x1d6439(0x1f7)][_0x1d6439(0x20c)]((_0x1bf81e,_0x2e8a28)=>{const _0x12af0f=_0x1d6439;if(_0x1bf81e[_0x12af0f(0x1aa)]!==_0x305d10[_0x12af0f(0x244)][_0x12af0f(0xca)]||_0x2e8a28!=null&&_0x2e8a28[_0x12af0f(0x2b2)]||_0x2e8a28!=null&&_0x2e8a28[_0x12af0f(0x16e)]||_0x1bf81e['id']===_0x44bc8e[_0x12af0f(0xe8)]['id'])return;let _0x1a9d8e=_0x1bf81e[_0x12af0f(0x3c1)];if((_0x1a9d8e==null?void 0x0:_0x1a9d8e[_0x12af0f(0x34f)])!==this['unitID'])return;let _0x46207f=_0x1bf81e,_0x4936ca=this['_compressMutationService'][_0x12af0f(0x2e2)][_0x12af0f(0x322)](this[_0x12af0f(0x2ac)]['interceptor'][_0x12af0f(0x31e)]()[_0x12af0f(0x2a2)])([_0x46207f],this[_0x12af0f(0x35b)])||[_0x46207f];this['_onLocalMutation'](_0x4936ca[0x0]);})),_0x59ed49;}};_0x467d36=_0x47fc4c([_0xf01086(0x3,(0x0,_0x305d10['Inject'])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0xf4)])),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x35f)])),_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x7,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696)),_0xf01086(0x8,_0x305d10[_0x33f14e(0x20d)]),_0xf01086(0x9,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0xa,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0xb,_0x305d10['IPermissionService']),_0xf01086(0xc,(0x0,_0x305d10[_0x33f14e(0x235)])(_0x4e88b2)),_0xf01086(0xd,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x467d36);let _0x3c0dc6=class extends _0x5f0326{constructor(_0x55eaf9,_0x57c0b1,_0x2545e4,_0x4efee9,_0x30b551,_0x42400c,_0x4e1661,_0x460e9e,_0x4dc4f3,_0x39a866,_0x1980d1,_0x14fd69,_0x39f731,_0x449cea,_0x3132a0){const _0x3fed82=_0x33f14e;super(_0x55eaf9,_0x2545e4,_0x57c0b1,_0x4efee9,_0x30b551,_0x42400c,_0x4e1661,_0x4dc4f3,_0x39a866,_0x1980d1,_0x14fd69,_0x39f731,_0x449cea,_0x3132a0),this[_0x3fed82(0x37e)]=_0x55eaf9,this[_0x3fed82(0x1aa)]=_0x57c0b1,this['_sheetTransformSelectionsService']=_0x460e9e;}[_0x33f14e(0x122)](){const _0x544be3=_0x33f14e;let _0x5c1d94=super['_createHandler']();return _0x5c1d94[_0x544be3(0x2c1)]=_0x405843=>this[_0x544be3(0xb1)][_0x544be3(0x2e6)](_0x405843),_0x5c1d94;}async['_init'](){const _0x35c103=_0x33f14e;let _0x27dbbd=await super[_0x35c103(0x205)]();return this[_0x35c103(0x20b)](this[_0x35c103(0x1f7)]['onMutationExecutedForCollab']((_0x565bcc,_0x5c9f3b)=>{const _0x534c3b=_0x35c103;if(_0x565bcc['type']!==_0x305d10[_0x534c3b(0x244)][_0x534c3b(0xca)]||_0x5c9f3b!=null&&_0x5c9f3b['fromCollab']||_0x5c9f3b!=null&&_0x5c9f3b['onlyLocal'])return;let _0x4f16e9=_0x565bcc[_0x534c3b(0x3c1)];if((_0x4f16e9==null?void 0x0:_0x4f16e9['unitId'])!==this[_0x534c3b(0x37e)])return;let _0x22c482=_0x565bcc,_0xa9965f=this[_0x534c3b(0x2ac)][_0x534c3b(0x2e2)][_0x534c3b(0x322)](this[_0x534c3b(0x2ac)][_0x534c3b(0x2e2)][_0x534c3b(0x31e)]()[_0x534c3b(0x2a2)])([_0x22c482],this[_0x534c3b(0x35b)])||[_0x22c482];this[_0x534c3b(0x1ad)](_0xa9965f[0x0]);})),_0x27dbbd;}};_0x3c0dc6=_0x47fc4c([_0xf01086(0x3,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x4,(0x0,_0x305d10['Inject'])(_0x540a4f[_0x33f14e(0xf4)])),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x35f)])),_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x7,(0x0,_0x305d10['Inject'])(_0x2c235d)),_0xf01086(0x8,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696)),_0xf01086(0x9,_0x305d10['IUniverInstanceService']),_0xf01086(0xa,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0xb,_0x305d10['ICommandService']),_0xf01086(0xc,_0x305d10[_0x33f14e(0x145)]),_0xf01086(0xd,(0x0,_0x305d10[_0x33f14e(0x235)])(_0x4e88b2)),_0xf01086(0xe,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x3c0dc6);let _0x515a5c=(0x0,_0x305d10['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function _0x1ab073(_0x182374){const _0x260c5b=_0x33f14e;let _0x4337c1=_0x182374[_0x260c5b(0x23d)],_0x54e37d=JSON[_0x260c5b(0x36d)](_0x4337c1);switch(_0x54e37d[_0x260c5b(0x38a)]){case _0x54f861['CombCmd'][_0x260c5b(0x313)]:case _0x54f861[_0x260c5b(0xb8)][_0x260c5b(0x2f3)]:{let _0x4007bf=_0x54e37d['infoRsp'];return{..._0x54e37d,'data':_0x4007bf,'cmd':_0x54e37d[_0x260c5b(0x38a)]};}case _0x54f861[_0x260c5b(0xb8)]['JOIN']:{let _0x306ff2=_0x54e37d[_0x260c5b(0x327)];return{..._0x54e37d,'data':_0x306ff2,'cmd':_0x54e37d['cmd']};}case _0x54f861[_0x260c5b(0xb8)][_0x260c5b(0x2f8)]:{let _0x1f7842=_0x54e37d[_0x260c5b(0x28e)];switch(_0x1f7842[_0x260c5b(0x2b4)]){case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x344)]:var _0x30ec56;return{..._0x54e37d,'data':{..._0x1f7842,'data':(_0x30ec56=_0x1f7842[_0x260c5b(0x154)])==null?void 0x0:_0x30ec56['cs']},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x24c)]:var _0x5b1fe5;return{..._0x54e37d,'data':{..._0x1f7842,'data':(_0x5b1fe5=_0x1f7842[_0x260c5b(0x262)])==null?void 0x0:_0x5b1fe5['cs']},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f[_0x260c5b(0x38c)]['NEW_CHANGESETS']:var _0x2558a3;return{..._0x54e37d,'data':{..._0x1f7842,'data':(_0x2558a3=_0x1f7842[_0x260c5b(0xad)])==null?void 0x0:_0x2558a3['cs']},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x164)]:var _0x33f545;return{..._0x54e37d,'data':{..._0x1f7842,'data':(_0x33f545=_0x1f7842[_0x260c5b(0x2ae)])==null?void 0x0:_0x33f545['cs']},'cmd':_0x54e37d['cmd']};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x370)]:var _0x248ada;return{..._0x54e37d,'data':{..._0x1f7842,'data':(_0x248ada=_0x1f7842['csShouldRetryEvent'])==null?void 0x0:_0x248ada['cs']},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f['CollaborationEvent'][_0x260c5b(0x23a)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x295)]},'cmd':_0x54e37d['cmd']};case _0x540a4f['CollaborationEvent']['USERS_ENTER']:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842['joinEvent']},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x341)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0xcb)]},'cmd':_0x54e37d['cmd']};case _0x540a4f['CollaborationEvent'][_0x260c5b(0x391)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x231)]},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f['CollaborationEvent'][_0x260c5b(0x33b)]:case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x153)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x1f4)]},'cmd':_0x54e37d['cmd']};case _0x540a4f[_0x260c5b(0x38c)]['LIVESHARE_TERMINATE']:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x231)]},'cmd':_0x54e37d['cmd']};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x1d7)]:return{..._0x54e37d,'data':_0x1f7842,'cmd':_0x54e37d['cmd']};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x291)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x107)]},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x272)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x161)]},'cmd':_0x54e37d['cmd']};case _0x540a4f[_0x260c5b(0x38c)]['SHOULD_CLOSE_CONN']:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x227)]},'cmd':_0x54e37d['cmd']};case _0x540a4f['CollaborationEvent'][_0x260c5b(0x343)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x22e)]},'cmd':_0x54e37d['cmd']};default:return _0x54e37d;}}default:return _0x54e37d;}}function _0x2d2ccc(_0x16d3d4){const _0x226dce=_0x33f14e;switch(_0x16d3d4[_0x226dce(0x38a)]){case _0x54f861['CombCmd'][_0x226dce(0x313)]:case _0x54f861['CombCmd'][_0x226dce(0x2f3)]:return JSON[_0x226dce(0x121)]({'cmd':_0x16d3d4[_0x226dce(0x38a)],'routeKey':_0x16d3d4['routeKey']});case _0x54f861[_0x226dce(0xb8)]['INGEST']:{let _0x4a44a0;switch(_0x16d3d4['data'][_0x226dce(0x2b4)]){case _0x540a4f[_0x226dce(0x38c)]['UPDATE_CURSOR']:_0x4a44a0={'eventID':_0x540a4f[_0x226dce(0x38c)][_0x226dce(0x23a)],'updateCursorEvent':_0x16d3d4[_0x226dce(0x23d)][_0x226dce(0x23d)]};break;case _0x540a4f[_0x226dce(0x38c)][_0x226dce(0x341)]:_0x4a44a0={'eventID':_0x540a4f['CollaborationEvent'][_0x226dce(0x341)],'leaveEvent':_0x16d3d4[_0x226dce(0x23d)]['data']};break;case _0x540a4f['CollaborationEvent'][_0x226dce(0x285)]:_0x4a44a0={'eventID':_0x540a4f[_0x226dce(0x38c)][_0x226dce(0x285)],'joinEvent':_0x16d3d4['data'][_0x226dce(0x23d)]};break;case _0x540a4f['CollaborationEvent'][_0x226dce(0x391)]:_0x4a44a0={'eventID':_0x540a4f[_0x226dce(0x38c)][_0x226dce(0x391)],'liveShareNewHost':_0x16d3d4[_0x226dce(0x23d)][_0x226dce(0x23d)]};break;case _0x540a4f[_0x226dce(0x38c)][_0x226dce(0x153)]:_0x4a44a0={'eventID':_0x540a4f[_0x226dce(0x38c)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x16d3d4['data'][_0x226dce(0x23d)]};break;case _0x540a4f['CollaborationEvent'][_0x226dce(0x38b)]:_0x4a44a0={'eventID':_0x540a4f[_0x226dce(0x38c)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x16d3d4[_0x226dce(0x23d)]['data']};break;case _0x540a4f[_0x226dce(0x38c)][_0x226dce(0x2eb)]:_0x4a44a0={'eventID':_0x540a4f['CollaborationEvent'][_0x226dce(0x2eb)],'liveShareRequestHost':_0x16d3d4[_0x226dce(0x23d)]['data']};break;case _0x540a4f[_0x226dce(0x38c)][_0x226dce(0x33b)]:_0x4a44a0={'eventID':_0x540a4f['CollaborationEvent'][_0x226dce(0x33b)]};break;default:_0x4a44a0={'eventID':_0x16d3d4['data']['eventID']};}return JSON[_0x226dce(0x121)]({'cmd':_0x16d3d4[_0x226dce(0x38a)],'routeKey':_0x16d3d4[_0x226dce(0x2bf)],'collaMsg':_0x4a44a0});}case _0x54f861[_0x226dce(0xb8)][_0x226dce(0x2b1)]:return JSON['stringify']({'cmd':_0x16d3d4[_0x226dce(0x38a)],'routeKey':_0x16d3d4[_0x226dce(0x2bf)],'joinReq':_0x16d3d4['data']});case _0x54f861[_0x226dce(0xb8)][_0x226dce(0x2e8)]:return JSON[_0x226dce(0x121)]({'cmd':_0x16d3d4['cmd'],'routeKey':_0x16d3d4['routeKey'],'leaveReq':_0x16d3d4['data']});default:throw Error(_0x226dce(0xd4));}}let _0x277be8=(0x0,_0x305d10[_0x33f14e(0x131)])('univer-pro.collaboration-client-socket-service');function _0xc8ac41(_0x4e6baa,_0x58c423,_0xe9982b){const _0x340d43=_0x33f14e;return _0x4e6baa+'/'+_0x58c423+_0x340d43(0x10f)+_0xe9982b+_0x340d43(0x35e);}let _0x4d4d25=class extends _0x305d10[_0x33f14e(0x1c2)]{constructor(_0x50775f,_0x42b059,_0x49d67b,_0x43b489,_0x54d43f){const _0x5036a4=_0x33f14e;super(),this['_injector']=_0x50775f,this[_0x5036a4(0x1b1)]=_0x42b059,this[_0x5036a4(0x333)]=_0x49d67b,this[_0x5036a4(0x356)]=_0x43b489,this[_0x5036a4(0x32c)]=_0x54d43f;}[_0x33f14e(0x2c0)](_0xcc5cdd){const _0x53442b=_0x33f14e;let _0x3b0798=this[_0x53442b(0x1c7)][_0x53442b(0x1a5)](_0x3c9fd5[_0x53442b(0x19b)]);if(!_0x3b0798)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x4c7f7f=_0x3b0798[_0x53442b(0xd8)](_0xcc5cdd);if(!_0x4c7f7f)throw Error(_0x53442b(0x1e2));let _0x4d8258=new _0x305d10[(_0x53442b(0x340))](),_0x12a928=new _0x247d93[(_0x53442b(0x2be))]();_0x4d8258[_0x53442b(0x20e)](_0x4c7f7f[_0x53442b(0x25f)][_0x53442b(0x305)](_0x49e964=>_0x12a928[_0x53442b(0x300)](_0x49e964))),_0x4d8258[_0x53442b(0x20e)]((0x0,_0x305d10[_0x53442b(0xcc)])(()=>_0x12a928[_0x53442b(0x109)]()));let _0x44426f=new _0x247d93[(_0x53442b(0x2be))]();_0x4d8258[_0x53442b(0x20e)](_0x4c7f7f[_0x53442b(0x362)][_0x53442b(0x305)](_0x255339=>_0x44426f[_0x53442b(0x300)](_0x255339))),_0x4d8258[_0x53442b(0x20e)]((0x0,_0x305d10[_0x53442b(0xcc)])(()=>_0x44426f[_0x53442b(0x109)]()));let _0x477fe9=new _0x247d93['Subject']();_0x4d8258[_0x53442b(0x20e)](_0x4c7f7f[_0x53442b(0x260)][_0x53442b(0x305)](_0x5946d1=>{let _0x4e7d5d=_0x1ab073(_0x5946d1);_0x477fe9['next'](_0x4e7d5d);})),_0x4d8258[_0x53442b(0x20e)]((0x0,_0x305d10[_0x53442b(0xcc)])(()=>_0x477fe9[_0x53442b(0x109)]()));let _0x2b0553,_0x9cd2f8=()=>{const _0x8a8efc=_0x53442b;_0x44426f['next'](new Event(_0x8a8efc(0x1fb))),_0x12a928['next'](new Event(_0x8a8efc(0x1fb))),_0x2b0553[_0x8a8efc(0xe4)]();};return _0x2b0553={'memberID':'','close$':_0x12a928[_0x53442b(0x172)](),'error$':_0x44426f['asObservable'](),'open$':_0x4c7f7f[_0x53442b(0x197)],'message$':_0x477fe9[_0x53442b(0x172)](),'send':_0xe96e0c=>{const _0x3dc517=_0x53442b;if(_0xe96e0c[_0x3dc517(0x38a)]===_0x54f861[_0x3dc517(0xb8)][_0x3dc517(0x23f)]){if(_0xe96e0c[_0x3dc517(0x23d)]['eventID']===_0x540a4f['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x3dc517(0x117)](_0x2b0553,_0xe96e0c[_0x3dc517(0x23d)])['catch'](_0x92ab0=>{const _0x46753c=_0x3dc517;this[_0x46753c(0x356)][_0x46753c(0x15f)](_0x92ab0),_0x9cd2f8();});return;}if(_0xe96e0c['data'][_0x3dc517(0x2b4)]===_0x540a4f[_0x3dc517(0x38c)]['FETCH_MISSING']){let _0x47e247=_0xe96e0c['data'];this['_fetchMissChangesets'](_0x47e247)[_0x3dc517(0x181)](_0x30da94=>{const _0x4407bb=_0x3dc517;_0x477fe9[_0x4407bb(0x300)]({'cmd':_0x54f861['CombCmd'][_0x4407bb(0x2f8)],'code':_0x54f861[_0x4407bb(0x372)]['OK'],'routeKey':_0x47e247[_0x4407bb(0x23d)]['unitID'],'routeType':'','data':{'eventID':_0x540a4f['CollaborationEvent'][_0x4407bb(0x163)],'data':{'changesets':_0x30da94}}});})['catch'](_0x278f9f=>{const _0x3401da=_0x3dc517;this[_0x3401da(0x356)][_0x3401da(0x15f)](_0x278f9f),_0x9cd2f8();});return;}}_0x4c7f7f[_0x3dc517(0x3a8)](_0x2d2ccc(_0xe96e0c));},'close':()=>{const _0x25fc8a=_0x53442b;_0x4c7f7f[_0x25fc8a(0xe4)](),_0x4d8258[_0x25fc8a(0x366)]();}},_0x2b0553;}async[_0x33f14e(0x117)](_0x47383a,_0x430ff1){const _0x5913b3=_0x33f14e;var _0x3fc23c;let {unitType:_0x46d76c,unitID:_0x1bd402,changeset:_0x1389ba}=_0x430ff1['data'],_0x5ed2f3={'unitID':_0x1bd402,'memberID':_0x47383a['memberID'],'type':_0x46d76c,'changeset':(0x0,_0x540a4f[_0x5913b3(0x273)])(_0x1389ba)},_0x83a1f9=this[_0x5913b3(0x333)][_0x5913b3(0x328)](_0x1cf9ab),_0x58d1aa=_0xc8ac41((_0x3fc23c=_0x83a1f9==null?void 0x0:_0x83a1f9[_0x5913b3(0x352)])==null?_0x5913b3(0xb0):_0x3fc23c,_0x46d76c,_0x1bd402);try{await this[_0x5913b3(0x1b1)][_0x5913b3(0x2b0)](_0x58d1aa,{'body':_0x5ed2f3});}catch(_0x2c2517){throw this[_0x5913b3(0x356)][_0x5913b3(0x15f)](_0x5913b3(0x243),_0x5913b3(0xf6)),_0x2c2517;}}async[_0x33f14e(0x2fd)](_0x5f071f){const _0x177ba7=_0x33f14e;let {unitID:_0x36beba,from:_0xa3af76,to:_0x47dc60,unitType:_0x5c863d}=_0x5f071f[_0x177ba7(0x23d)];return(await this[_0x177ba7(0x32c)][_0x177ba7(0xea)]({'metadata':void 0x0},{'unitID':_0x36beba,'type':_0x5c863d,'from':_0xa3af76,'to':_0x47dc60}))['changesets'][_0x177ba7(0x348)](_0x52144c=>((_0x52144c[_0x177ba7(0x316)]===null||_0x52144c[_0x177ba7(0x316)]===void 0x0)&&(_0x52144c[_0x177ba7(0x316)]=[]),_0x52144c));}};_0x4d4d25=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10['Inject'])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x1,(0x0,_0x305d10['Inject'])(_0x3c9fd5[_0x33f14e(0x195)])),_0xf01086(0x2,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0x3,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x4,_0x540a4f['ISnapshotServerService'])],_0x4d4d25);let _0x258abc=class extends _0x305d10[_0x33f14e(0x1c2)]{get[_0x33f14e(0x383)](){const _0x39b34d=_0x33f14e;return this['_socket$'][_0x39b34d(0x3a9)]();}constructor(_0x4f2c38,_0x3672d5,_0x22f2c8,_0x4e8835,_0x22ac45,_0x5807a5){const _0x4ab8bc=_0x33f14e;super(),this['_injector']=_0x4f2c38,this[_0x4ab8bc(0x356)]=_0x3672d5,this[_0x4ab8bc(0x333)]=_0x22f2c8,this[_0x4ab8bc(0x2ef)]=_0x4e8835,this[_0x4ab8bc(0x17e)]=_0x22ac45,this[_0x4ab8bc(0x219)]=_0x5807a5,_0x816778(this,_0x4ab8bc(0x12b),new _0x247d93['BehaviorSubject'](void 0x0)),_0x816778(this,'socket$',this[_0x4ab8bc(0x12b)][_0x4ab8bc(0x172)]()),_0x816778(this,_0x4ab8bc(0xb6),null),_0x816778(this,_0x4ab8bc(0x271),new Map()),_0x816778(this,_0x4ab8bc(0x318),new _0x247d93[(_0x4ab8bc(0x288))](0x0)),_0x816778(this,'status$',this['_status$']['asObservable']()),_0x816778(this,_0x4ab8bc(0x3c6),!0x1),_0x816778(this,_0x4ab8bc(0xfd),void 0x0),_0x816778(this,'_retryCount',0x0),_0x816778(this,_0x4ab8bc(0x119),null),_0x816778(this,_0x4ab8bc(0x2e0),void 0x0),_0x816778(this,'_timeoutTimer',void 0x0),this[_0x4ab8bc(0x250)]();}[_0x33f14e(0x250)](){const _0x5f3f9d=_0x33f14e;this['_networkConditionService']&&this[_0x5f3f9d(0x20b)](this[_0x5f3f9d(0x219)]['online$'][_0x5f3f9d(0x305)](_0x543363=>{const _0x129340=_0x5f3f9d;_0x543363&&!this[_0x129340(0x383)]&&this[_0x129340(0x294)](),_0x543363||this[_0x129340(0x26a)]();}));}['dispose'](){const _0x1615c5=_0x33f14e;var _0x3f740f;super['dispose'](),(_0x3f740f=this[_0x1615c5(0x119)])==null||_0x3f740f['unsubscribe'](),this[_0x1615c5(0x119)]=null,this[_0x1615c5(0x32b)](),this[_0x1615c5(0x326)](),this['_clearHeartbeatTimer'](),this['_sessions'][_0x1615c5(0x1fc)](_0x353d8f=>_0x353d8f[_0x1615c5(0x366)]()),this[_0x1615c5(0x271)]['clear'](),this[_0x1615c5(0x318)][_0x1615c5(0x109)]();}async[_0x33f14e(0x1ee)](_0x25298a){const _0x37472a=_0x33f14e;if(this[_0x37472a(0x271)][_0x37472a(0x354)](_0x25298a))return this[_0x37472a(0x271)][_0x37472a(0x1a5)](_0x25298a);this['_tryEnsureSocket']();let _0x41fa3e=this[_0x37472a(0x1c7)][_0x37472a(0x32f)](_0x459c7b,_0x25298a,this[_0x37472a(0x12b)][_0x37472a(0x172)]());return this[_0x37472a(0x271)]['set'](_0x25298a,_0x41fa3e),_0x41fa3e;}[_0x33f14e(0x375)](_0x475652){const _0x34bf5e=_0x33f14e;let _0x4ac40a=this[_0x34bf5e(0x271)][_0x34bf5e(0x1a5)](_0x475652);if(_0x4ac40a&&(this[_0x34bf5e(0x271)][_0x34bf5e(0xc0)](_0x475652),_0x4ac40a[_0x34bf5e(0xe4)]()),!this[_0x34bf5e(0x271)]['size']){var _0x4fdffc;(_0x4fdffc=this['_socket'])==null||_0x4fdffc[_0x34bf5e(0xe4)]();}}[_0x33f14e(0x294)](){const _0x5f0aa2=_0x33f14e;this[_0x5f0aa2(0x278)]=0x0,this[_0x5f0aa2(0x32b)](),this[_0x5f0aa2(0x129)]();}['_clearRetryConnectingTimer'](){const _0x4fdddc=_0x33f14e;this[_0x4fdddc(0xfd)]!=null&&(clearTimeout(this[_0x4fdddc(0xfd)]),this['_retryConnectingTimer']=null);}async[_0x33f14e(0x283)](){const _0x902bd0=_0x33f14e;var _0x40ddb8;let _0x4a315e=this[_0x902bd0(0x333)][_0x902bd0(0x328)](_0x1cf9ab),_0x3c6e4f=(_0x40ddb8=_0x4a315e==null?void 0x0:_0x4a315e[_0x902bd0(0x24e)])==null?_0x3919fe:_0x40ddb8,_0x221223=await this[_0x902bd0(0x2ef)]['createSocket'](_0x3c6e4f);return this[_0x902bd0(0xb6)]=_0x221223,_0x221223;}async[_0x33f14e(0x2bc)](){const _0x4d4255=_0x33f14e;try{var _0x2b857b,_0x20b241;let _0x42b07f=(_0x2b857b=(_0x20b241=this[_0x4d4255(0x383)])==null?this[_0x4d4255(0xb6)]:_0x20b241)==null?await this[_0x4d4255(0x283)]():_0x2b857b;if(_0x42b07f){var _0xf89338;let _0x57d863=_0x42b07f[_0x4d4255(0x3a8)];_0x42b07f[_0x4d4255(0x3a8)]=_0x233604=>(_0x233604[_0x4d4255(0x38a)]!==_0x54f861['CombCmd'][_0x4d4255(0x2e8)]&&this[_0x4d4255(0x1e5)](),_0x57d863['apply'](_0x42b07f,[_0x233604])),(_0xf89338=this[_0x4d4255(0x119)])==null||_0xf89338[_0x4d4255(0x38d)](),this[_0x4d4255(0x119)]=null,this['_socketMessageSubscription']=_0x42b07f[_0x4d4255(0x260)][_0x4d4255(0x305)](_0x2e58f4=>this[_0x4d4255(0xb7)](_0x42b07f,_0x2e58f4)),_0x42b07f[_0x4d4255(0x362)][_0x4d4255(0x2a9)]((0x0,_0x38623c['take'])(0x1))[_0x4d4255(0x305)](_0x542ba3=>this[_0x4d4255(0x356)]['error'](_0x4d4255(0x1c9),_0x542ba3)),_0x42b07f[_0x4d4255(0x197)]['pipe']((0x0,_0x38623c[_0x4d4255(0x1df)])(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x42b07f);}),_0x42b07f['close$'][_0x4d4255(0x2a9)]((0x0,_0x38623c[_0x4d4255(0x1df)])(0x1))[_0x4d4255(0x305)](_0x1cfec2=>{const _0x28567f=_0x4d4255;this[_0x28567f(0x356)]['debug'](_0x28567f(0x13d),_0x28567f(0x1cb),_0x1cfec2),this[_0x28567f(0x100)]();});}}catch(_0x29846b){this[_0x4d4255(0x356)][_0x4d4255(0x15f)](_0x29846b),this['_onConnectionFailed']();}}[_0x33f14e(0x3ab)](_0x268aed){const _0x4a7f95=_0x33f14e;this[_0x4a7f95(0x356)][_0x4a7f95(0x31a)](_0x4a7f95(0x13d),_0x4a7f95(0x171)),_0x268aed[_0x4a7f95(0x3a8)]({'cmd':_0x54f861['CombCmd']['HELLO']}),this['_rescheduleHeartbeat']();}[_0x33f14e(0x26a)](){const _0x31844c=_0x33f14e;this[_0x31844c(0x3c6)]=!0x1,this['_candidateSocket']=null,this[_0x31844c(0x318)][_0x31844c(0x300)](0x2),this['_socket$'][_0x31844c(0x300)](null),this['_clearTimeoutTimer'](),this[_0x31844c(0x3b4)]();}[_0x33f14e(0x100)](){const _0x37bfac=_0x33f14e;var _0x228a79;this[_0x37bfac(0x26a)](),this['_retryCount']<((_0x228a79=this[_0x37bfac(0x333)][_0x37bfac(0x328)](_0x37bfac(0x2af)))==null?0x3:_0x228a79)?(this[_0x37bfac(0x17e)]['emitEvent']({'id':_0x37bfac(0x37a)}),this[_0x37bfac(0x129)]()):this[_0x37bfac(0x17e)][_0x37bfac(0x118)]({'id':_0x37bfac(0x237)});}['_tryReconnect'](){const _0x4bf89b=_0x33f14e;var _0x3c3b9a;let _0x43a39e=this[_0x4bf89b(0x278)],_0x2df914=this[_0x4bf89b(0x333)][_0x4bf89b(0x328)](_0x1cf9ab),_0x1f9576=_0x43a39e===0x0?0x0:((_0x3c3b9a=_0x2df914==null?void 0x0:_0x2df914['retryConnectingInterval'])==null?0x4e20:_0x3c3b9a)*0x2**_0x43a39e;this[_0x4bf89b(0xfd)]=setTimeout(()=>{const _0x53c845=_0x4bf89b;clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this[_0x53c845(0x2bc)]();},_0x1f9576),this[_0x4bf89b(0x278)]+=0x1;}[_0x33f14e(0xb7)](_0x315926,_0x3d04ab){const _0x5eb43a=_0x33f14e;let {cmd:_0x972762}=_0x3d04ab;_0x972762===_0x54f861[_0x5eb43a(0xb8)]['HELLO']&&!this['_socketReady']&&(_0x315926['memberID']=_0x3d04ab[_0x5eb43a(0x23d)]['memberID'],this[_0x5eb43a(0x12b)][_0x5eb43a(0x300)](_0x315926),this['_status$'][_0x5eb43a(0x300)](0x3),this['_socketReady']=!0x0,this[_0x5eb43a(0xb6)]=null),_0x972762===_0x54f861['CombCmd'][_0x5eb43a(0x313)]&&this[_0x5eb43a(0x326)](),this['_rescheduleHeartbeat']();}[_0x33f14e(0x1e5)](){const _0x450aee=_0x33f14e;var _0x52173f;this[_0x450aee(0x3b4)](),this[_0x450aee(0x2e0)]=setTimeout(()=>this[_0x450aee(0x103)](),(_0x52173f=this[_0x450aee(0x333)][_0x450aee(0x328)](_0x450aee(0xaf)))==null?0x7530:_0x52173f);}[_0x33f14e(0x103)](){const _0x399000=_0x33f14e;this['_socket'][_0x399000(0x3a8)]({'cmd':_0x54f861[_0x399000(0xb8)][_0x399000(0x313)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0xb957fc=_0x33f14e;var _0x2fe230;this[_0xb957fc(0x202)]=setTimeout(()=>this[_0xb957fc(0x100)](),(_0x2fe230=this[_0xb957fc(0x333)][_0xb957fc(0x328)]('HEARTBEAT_TIMEOUT'))==null?_0x5752cb:_0x2fe230);}[_0x33f14e(0x3b4)](){const _0x1b61c9=_0x33f14e;this[_0x1b61c9(0x2e0)]!=null&&(clearTimeout(this[_0x1b61c9(0x2e0)]),this[_0x1b61c9(0x2e0)]=null);}[_0x33f14e(0x326)](){const _0x1dc964=_0x33f14e;this[_0x1dc964(0x202)]!=null&&(clearTimeout(this[_0x1dc964(0x202)]),this[_0x1dc964(0x202)]=null);}};_0x258abc=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x1,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x2,_0x305d10['IConfigService']),_0xf01086(0x3,_0x277be8),_0xf01086(0x4,(0x0,_0x305d10['Inject'])(_0x23b696)),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x235)])(_0x515a5c))],_0x258abc);let _0x37b5a8=class extends _0x305d10['RxDisposable']{constructor(_0x12067b,_0x545860,_0xc0feb2,_0x1c5dd0){const _0x2a7fa6=_0x33f14e;var _0x3b6207;super(),this[_0x2a7fa6(0x1c7)]=_0x12067b,this[_0x2a7fa6(0x26f)]=_0x545860,this['_configService']=_0xc0feb2,this[_0x2a7fa6(0x35b)]=_0x1c5dd0,_0x816778(this,_0x2a7fa6(0x258),new Map()),_0x816778(this,_0x2a7fa6(0x1ef),new _0x247d93[(_0x2a7fa6(0x2be))]()),_0x816778(this,'entityInit$',this[_0x2a7fa6(0x1ef)][_0x2a7fa6(0x172)]()),((_0x3b6207=this['_configService'][_0x2a7fa6(0x328)](_0x2a7fa6(0x2ba)))==null?void 0x0:_0x3b6207['enableCollaboration'])!==!0x1&&this['_init']();}[_0x33f14e(0x366)](){const _0x171884=_0x33f14e;super[_0x171884(0x366)](),this['_entities'][_0x171884(0x1fc)](_0x5c5495=>_0x5c5495[_0x171884(0x366)]()),this['_entities'][_0x171884(0x200)]();}[_0x33f14e(0x1d4)](_0x2336cf){const _0x12c3d4=_0x33f14e;var _0x543a1a;return(_0x543a1a=this[_0x12c3d4(0x258)][_0x12c3d4(0x1a5)](_0x2336cf))==null?null:_0x543a1a;}[_0x33f14e(0x3a6)](_0x176cc7){const _0x1d3249=_0x33f14e;let _0x35e318=this[_0x1d3249(0x1d4)](_0x176cc7);return _0x35e318?(0x0,_0x247d93['of'])(_0x35e318):this[_0x1d3249(0x1ef)][_0x1d3249(0x2a9)]((0x0,_0x38623c['filter'])(_0x11fa1d=>_0x11fa1d['unitID']===_0x176cc7));}[_0x33f14e(0x37b)](_0x2d3432){const _0x1997d5=_0x33f14e;return(0x0,_0x247d93[_0x1997d5(0xe2)])(this[_0x1997d5(0x3a6)](_0x2d3432)['pipe']((0x0,_0x38623c['map'])(()=>void 0x0)));}['_init'](){const _0x486fd6=_0x33f14e;this[_0x486fd6(0x35b)]['getTypeOfUnitAdded$'](_0x305d10['UniverInstanceType']['UNIVER_SHEET'])[_0x486fd6(0x2a9)]((0x0,_0x247d93['takeUntil'])(this[_0x486fd6(0x26d)]),(0x0,_0x38623c[_0x486fd6(0x33f)])(0x10))[_0x486fd6(0x305)](async _0x1ce2f8=>{const _0x66bf0b=_0x486fd6;let _0x13ae7a=_0x1ce2f8['unit']['getUnitId'](),_0x556c02=await this['_startCollaboration'](_0x13ae7a,_0x305d10[_0x66bf0b(0x1c6)]['UNIVER_SHEET']);this[_0x66bf0b(0x258)][_0x66bf0b(0x269)](_0x13ae7a,_0x556c02);}),this[_0x486fd6(0x35b)][_0x486fd6(0xc5)](_0x305d10['UniverInstanceType']['UNIVER_DOC'])[_0x486fd6(0x2a9)]((0x0,_0x247d93[_0x486fd6(0x1f5)])(this[_0x486fd6(0x26d)]),(0x0,_0x38623c[_0x486fd6(0x33f)])(0x10))[_0x486fd6(0x2a9)]((0x0,_0x38623c[_0x486fd6(0x306)])(_0xa9465=>!_0xa9465['unit'][_0x486fd6(0x1e7)]()[_0x486fd6(0x11d)]('__')))['subscribe'](async _0x208ca0=>{const _0x15b124=_0x486fd6;let _0x2e42e8=_0x208ca0[_0x15b124(0x265)]['getUnitId'](),_0x18a30b=await this[_0x15b124(0x380)](_0x2e42e8,_0x305d10[_0x15b124(0x1c6)][_0x15b124(0x26e)]);this[_0x15b124(0x258)][_0x15b124(0x269)](_0x2e42e8,_0x18a30b);}),(0x0,_0x247d93[_0x486fd6(0xff)])(this[_0x486fd6(0x35b)][_0x486fd6(0x2b7)](_0x305d10[_0x486fd6(0x1c6)]['UNIVER_SHEET']),this[_0x486fd6(0x35b)][_0x486fd6(0x2b7)](_0x305d10[_0x486fd6(0x1c6)][_0x486fd6(0x26e)]))['pipe']((0x0,_0x247d93[_0x486fd6(0x1f5)])(this[_0x486fd6(0x26d)]))[_0x486fd6(0x305)](_0x2bd9e2=>{const _0x39f82d=_0x486fd6;let _0x5a77c9=_0x2bd9e2['getUnitId'](),_0x5d29f2=this[_0x39f82d(0x258)][_0x39f82d(0x1a5)](_0x5a77c9);_0x5d29f2&&(_0x5d29f2[_0x39f82d(0x366)](),this[_0x39f82d(0x258)]['delete'](_0x5a77c9));});}async[_0x33f14e(0x380)](_0x5be02a,_0x593418){const _0x4b746d=_0x33f14e;let _0x561d2c=await this[_0x4b746d(0x26f)][_0x4b746d(0x1ee)](_0x5be02a),_0x5488ca=this[_0x4b746d(0x1c7)][_0x4b746d(0x32f)](this[_0x4b746d(0x31c)](_0x593418),_0x5be02a,_0x593418,_0x561d2c);return await _0x5488ca[_0x4b746d(0x32e)](),this['_entityInit$']['next'](_0x5488ca),_0x5488ca;}[_0x33f14e(0x31c)](_0x40b146){const _0x458f5e=_0x33f14e;switch(_0x40b146){case _0x305d10[_0x458f5e(0x1c6)][_0x458f5e(0x26e)]:return _0x467d36;case _0x305d10[_0x458f5e(0x1c6)][_0x458f5e(0x22a)]:return _0x3c0dc6;default:throw Error(_0x458f5e(0x1a4)+_0x40b146);}}};_0x37b5a8=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x258abc)),_0xf01086(0x2,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0x3,_0x305d10[_0x33f14e(0x20d)])],_0x37b5a8);var _0x53586=_0x33f14e(0x102),_0x453767='0.25.1';let _0x14ac8f=class extends _0x305d10[_0x33f14e(0x1c2)]{constructor(_0x2e0795,_0x46b20c){const _0x2eca24=_0x33f14e;super(),this['_univerInstanceService']=_0x2e0795,this[_0x2eca24(0x333)]=_0x46b20c,this[_0x2eca24(0x205)]();}[_0x33f14e(0x205)](){const _0xd777d1=_0x33f14e;this[_0xd777d1(0x20b)](this['_univerInstanceService'][_0xd777d1(0x167)][_0xd777d1(0x305)](()=>{const _0xb1a424=_0xd777d1;var _0x58839c;let _0x26492c=this[_0xb1a424(0x35b)][_0xb1a424(0x2a8)](),_0x4d40c9=(_0x58839c=this['_configService'][_0xb1a424(0x328)](_0xb1a424(0x279)))==null?_0xb1a424(0x248):_0x58839c;_0x26492c instanceof _0x305d10[_0xb1a424(0x115)]&&(_0x4d40c9=_0x26492c['name']),document[_0xb1a424(0x16d)]=_0x4d40c9;}));}};_0x14ac8f=_0x47fc4c([_0xf01086(0x0,_0x305d10[_0x33f14e(0x20d)]),_0xf01086(0x1,_0x305d10[_0x33f14e(0xfb)])],_0x14ac8f);let _0x2ed10f=class{constructor(_0x1a5698,_0x2954f7,_0x3f6356){const _0x37d0a5=_0x33f14e;this[_0x37d0a5(0x333)]=_0x1a5698,this[_0x37d0a5(0x1b1)]=_0x2954f7,this[_0x37d0a5(0x37f)]=_0x3f6356,this['init']();}['init'](){const _0x286b06=_0x33f14e;this[_0x286b06(0x1b1)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4172eb,_0x8996a6)=>_0x8996a6(_0x4172eb)[_0x286b06(0x2a9)]((0x0,_0x247d93[_0x286b06(0x208)])(async _0xe0bf99=>{const _0x232597=_0x286b06;let _0x9e8196=_0xe0bf99;if(_0x9e8196['status']===0x191){if(typeof window>'u')throw Error(_0x232597(0x2c8));if(window[_0x232597(0x1a3)](this[_0x232597(0x37f)]['t'](_0x232597(0x1de)))){let _0x432592=window[_0x232597(0x1a7)](window['location'][_0x232597(0xf2)]);window['location'][_0x232597(0xf2)]=this[_0x232597(0x36e)]()+'?url='+_0x432592;}}return _0x9e8196;}))});}['_getLoginPath'](){const _0x532ef4=_0x33f14e;var _0x399f1e;let _0xe80474=this['_configService'][_0x532ef4(0x328)](_0x1cf9ab);return(_0x399f1e=_0xe80474==null?void 0x0:_0xe80474[_0x532ef4(0x304)])==null?_0x532ef4(0x292):_0x399f1e;}};_0x2ed10f=_0x47fc4c([_0xf01086(0x0,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5['HTTPService'])),_0xf01086(0x2,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x35f)]))],_0x2ed10f);let _0xc00d62=class extends _0x305d10[_0x33f14e(0x1c2)]{constructor(_0x18abb9,_0x5d52ea){const _0x30a501=_0x33f14e;super(),this['_HTTPService']=_0x18abb9,this['_configService']=_0x5d52ea,_0x816778(this,_0x30a501(0xb5),!0x1),this[_0x30a501(0x3a2)]();}[_0x33f14e(0x3a2)](){const _0x126224=_0x33f14e;let _0x2d0a1d=this;this[_0x126224(0x20b)](this[_0x126224(0x15c)][_0x126224(0x3c4)]({'priority':0x3e7,'interceptor':(0x0,_0x3c9fd5[_0x126224(0x24b)])({'isMatch'(_0x1de029){const _0x579e2a=_0x126224;var _0x551072;if(_0x1de029[_0x579e2a(0xf3)]===_0x579e2a(0x3a4)&&(_0x551072=_0x1de029[_0x579e2a(0x26b)])!=null&&_0x551072[_0x579e2a(0x29f)]){let {objectID:_0x237936,objectType:_0x3e8a09}=_0x1de029['requestParams'][_0x579e2a(0x29f)]||{};if(!_0x237936||_0x3e8a09===void 0x0)return!0x1;let _0x31ead2=_0x2d0a1d[_0x579e2a(0x11c)]()+'/'+_0x3e8a09+'/object/'+_0x237936+_0x579e2a(0x2ad);if(_0x1de029[_0x579e2a(0x2dd)]===_0x31ead2)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x11a692){const _0x3e680d=_0x126224;var _0x9f5840;return(_0x9f5840=_0x11a692[_0x3e680d(0x26b)])==null?void 0x0:_0x9f5840['body'];},'mergeParamsToRequest'(_0x56fd40,_0x277b3e){const _0x516f12=_0x126224;let _0x37be2d=_0x2d0a1d['_getAPIPrefixPath']()+_0x516f12(0x2b5),_0x2c803d=_0x56fd40[_0x516f12(0x127)]((_0x20ffb1,_0x9b6dee)=>{const _0x1d56aa=_0x516f12;let {unitID:_0x469263,objectID:_0x59c79f,objectType:_0xa52c48,actions:_0x4a2892}=_0x9b6dee;return _0x20ffb1[_0x469263]||(_0x20ffb1[_0x469263]={}),_0x20ffb1[_0x469263][_0x59c79f]||(_0x20ffb1[_0x469263][_0x59c79f]={'objectID':_0x59c79f,'objectType':_0xa52c48,'actions':[]}),_0x20ffb1[_0x469263][_0x59c79f][_0x1d56aa(0x165)]['push'](..._0x4a2892),_0x20ffb1;},{}),_0x20c88b=[];for(let _0x42a549 in _0x2c803d)for(let _0x2e2832 in _0x2c803d[_0x42a549]){let {actions:_0x578042,objectType:_0x19ff73}=_0x2c803d[_0x42a549][_0x2e2832],_0x156375=[...new Set(_0x578042)];_0x20c88b['push']({'unitID':_0x42a549,'objectID':_0x2e2832,'objectType':_0x19ff73,'actions':_0x156375});}return new _0x3c9fd5['HTTPRequest']('POST',_0x37be2d,{'headers':_0x277b3e[_0x516f12(0x144)],'withCredentials':_0x277b3e[_0x516f12(0x1d5)],'responseType':_0x277b3e[_0x516f12(0x14d)],'body':{'requests':_0x20c88b}});}},{'distributeResult'(_0x52d7db,_0x151efc){const _0x2d035f=_0x126224;let {objectActions:_0x52dca3}=_0x52d7db;return _0x151efc[_0x2d035f(0x348)](_0x3799d7=>{const _0x4cee15=_0x2d035f;let {unitID:_0x12ed35,objectID:_0x3d94d6,actions:_0xc63b40}=_0x3799d7,_0xd91932=_0x52dca3[_0x4cee15(0xfa)](_0x4ef514=>_0x4ef514[_0x4cee15(0x37e)]===_0x12ed35&&_0x4ef514[_0x4cee15(0x2fa)]===_0x3d94d6);return{'config':_0x3799d7,'result':{'actions':_0xc63b40[_0x4cee15(0x348)](_0x4c521b=>_0xd91932==null?void 0x0:_0xd91932['actions']['find'](_0x1804b1=>_0x1804b1[_0x4cee15(0x1cd)]===_0x4c521b))[_0x4cee15(0x306)](_0x447a7f=>!!_0x447a7f),'error':_0x52d7db['error']}};});}})}));}[_0x33f14e(0x11c)](){const _0x586b06=_0x33f14e;var _0x539403;let _0x724604=this[_0x586b06(0x333)][_0x586b06(0x328)](_0x1cf9ab);return(_0x539403=_0x724604==null?void 0x0:_0x724604[_0x586b06(0x3bc)])==null?_0x586b06(0x384):_0x539403;}async[_0x33f14e(0x1e0)](_0xd14522){const _0x5bb6ec=_0x33f14e;let _0x46626d=this[_0x5bb6ec(0x11c)]()+'/'+_0xd14522[_0x5bb6ec(0x350)]+'/object';return(await this[_0x5bb6ec(0x15c)][_0x5bb6ec(0x2b0)](_0x46626d,{'body':_0xd14522}))[_0x5bb6ec(0x29f)][_0x5bb6ec(0x2fa)]||'';}async[_0x33f14e(0x1e3)](_0x24914){const _0x52041e=_0x33f14e;let _0x1a24ed=this[_0x52041e(0x11c)]()+'/-/object/list';return(await this[_0x52041e(0x15c)][_0x52041e(0x2b0)](_0x1a24ed,{'body':_0x24914}))[_0x52041e(0x29f)][_0x52041e(0x112)];}async[_0x33f14e(0x12c)](_0x6b8700){const _0xd2e207=_0x33f14e;var _0x2c4bda;let _0x57b8b7=this[_0xd2e207(0x11c)]()+'/'+_0x6b8700[_0xd2e207(0x350)]+'/object/'+_0x6b8700[_0xd2e207(0x2fa)],_0x555946=await this[_0xd2e207(0x15c)]['put'](_0x57b8b7,{'body':_0x6b8700});if((_0x555946==null||(_0x2c4bda=_0x555946[_0xd2e207(0x29f)])==null||(_0x2c4bda=_0x2c4bda[_0xd2e207(0x15f)])==null?void 0x0:_0x2c4bda[_0xd2e207(0x361)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async['allowed'](_0x32f4c1){const _0xfeed1d=_0x33f14e;let _0x1975f6=this[_0xfeed1d(0x11c)]()+'/'+_0x32f4c1[_0xfeed1d(0x350)]+_0xfeed1d(0x101)+_0x32f4c1[_0xfeed1d(0x2fa)]+_0xfeed1d(0x2ad);return(await this[_0xfeed1d(0x15c)]['post'](_0x1975f6,{'body':_0x32f4c1}))['body'][_0xfeed1d(0x165)];}async[_0x33f14e(0x27c)](_0x2be8d8){const _0x4c1c63=_0x33f14e;let _0x15438b=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x4c1c63(0x15c)]['post'](_0x15438b,{'body':{'requests':_0x2be8d8}}))[_0x4c1c63(0x29f)][_0x4c1c63(0x3a1)];}async[_0x33f14e(0x2c6)](_0x43e5b6){const _0x4e87c6=_0x33f14e;let _0x1f8a94=this[_0x4e87c6(0x11c)]()+'/'+_0x43e5b6[_0x4e87c6(0x350)]+_0x4e87c6(0x128),_0x4d71af=await this['_HTTPService'][_0x4e87c6(0x2b0)](_0x1f8a94,{'body':_0x43e5b6});return{'roles':_0x4d71af[_0x4e87c6(0x29f)][_0x4e87c6(0x1b9)],'actions':_0x4d71af[_0x4e87c6(0x29f)]['actions']};}async[_0x33f14e(0x3c5)](_0x247de3){const _0x3fb585=_0x33f14e;let _0x4f1f85=this['_getAPIPrefixPath']()+_0x3fb585(0x312);await this[_0x3fb585(0x15c)][_0x3fb585(0xc0)](_0x4f1f85,{'params':{'collaboratorID':_0x247de3['collaboratorID'],'objectID':_0x247de3[_0x3fb585(0x2fa)],'unitID':_0x247de3['unitID']}});}async[_0x33f14e(0x2f7)](_0x32a573){const _0x2a8b96=_0x33f14e;let _0x4b760a=this[_0x2a8b96(0x11c)]()+_0x2a8b96(0x312);await this[_0x2a8b96(0x15c)][_0x2a8b96(0xbb)](_0x4b760a,{'body':_0x32a573});}async['createCollaborator'](_0x139f39){const _0x3a784d=_0x33f14e;let _0x4cb686=this['_getAPIPrefixPath']()+_0x3a784d(0x312);await this[_0x3a784d(0x15c)]['post'](_0x4cb686,{'body':_0x139f39});}async[_0x33f14e(0x373)](_0x516e32){const _0x4e018d=_0x33f14e;var _0x4a2e12;let _0x302ff4=this[_0x4e018d(0x11c)]()+_0x4e018d(0x312),_0x3dfb41=await this[_0x4e018d(0x15c)][_0x4e018d(0x1a5)](_0x302ff4,{'params':{'objectID':_0x516e32[_0x4e018d(0x2fa)],'unitID':_0x516e32[_0x4e018d(0x37e)]}});return this[_0x4e018d(0x2d4)]((_0x4a2e12=_0x3dfb41[_0x4e018d(0x29f)][_0x4e018d(0x18e)])==null?!0x1:_0x4a2e12),_0x3dfb41[_0x4e018d(0x29f)][_0x4e018d(0x26c)];}async[_0x33f14e(0x25a)](_0x32aaea){const _0x5226dc=_0x33f14e;let _0xb099aa=this[_0x5226dc(0x11c)]()+'/collaborator';await this['_HTTPService']['put'](_0xb099aa,{'body':_0x32aaea});}[_0x33f14e(0x2d4)](_0x4848fb){const _0x5c2485=_0x33f14e;this[_0x5c2485(0xb5)]=_0x4848fb;}['getCfgEnableObjInherit'](){const _0x1a11a0=_0x33f14e;return this[_0x1a11a0(0xb5)];}};_0xc00d62=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5[_0x33f14e(0x195)])),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0xfb)]))],_0xc00d62);function _0x428edd(_0x1629ce){const _0x4ef637=_0x33f14e;return _0x1629ce instanceof Uint8Array||ArrayBuffer[_0x4ef637(0x263)](_0x1629ce)&&_0x1629ce['constructor'][_0x4ef637(0x241)]==='Uint8Array'&&_0x4ef637(0x29d)in _0x1629ce&&_0x1629ce[_0x4ef637(0x29d)]===0x1;}function _0x171b65(_0x4edd66){const _0x2718e2=_0x33f14e;if(typeof _0x4edd66!=_0x2718e2(0x242))throw TypeError(_0x2718e2(0x254)+typeof _0x4edd66);if(!Number[_0x2718e2(0x253)](_0x4edd66)||_0x4edd66<0x0)throw RangeError(_0x2718e2(0x2d9)+_0x4edd66);}function _0x418b3b(_0x7c523b,_0x55dd1d,_0x44e279=''){const _0x1c124a=_0x33f14e;let _0xe1c489=_0x428edd(_0x7c523b),_0x34c259=_0x7c523b==null?void 0x0:_0x7c523b[_0x1c124a(0x251)],_0x4942d1=_0x55dd1d!==void 0x0;if(!_0xe1c489||_0x4942d1&&_0x34c259!==_0x55dd1d){let _0x592dca=_0x44e279&&'\x22'+_0x44e279+'\x22\x20',_0x50f195=_0x4942d1?'\x20of\x20length\x20'+_0x55dd1d:'',_0x421570=_0xe1c489?'length='+_0x34c259:'type='+typeof _0x7c523b,_0x2eafdb=_0x592dca+'expected\x20Uint8Array'+_0x50f195+_0x1c124a(0xc2)+_0x421570;throw _0xe1c489?RangeError(_0x2eafdb):TypeError(_0x2eafdb);}return _0x7c523b;}function _0x5d032b(_0x5d903a){const _0x4fbb70=_0x33f14e;return new Uint32Array(_0x5d903a[_0x4fbb70(0x21e)],_0x5d903a[_0x4fbb70(0x183)],Math[_0x4fbb70(0x2f1)](_0x5d903a[_0x4fbb70(0x21b)]/0x4));}function _0x311a9a(..._0x297522){const _0x10006a=_0x33f14e;for(let _0xd4b5de=0x0;_0xd4b5de<_0x297522[_0x10006a(0x251)];_0xd4b5de++)_0x297522[_0xd4b5de]['fill'](0x0);}let _0x1c5baf=new Uint8Array(new Uint32Array([0x11223344])[_0x33f14e(0x21e)])[0x0]===0x44,_0x34d16d=_0x58d539=>_0x58d539<<0x18&0xff000000|_0x58d539<<0x8&0xff0000|_0x58d539>>>0x8&0xff00|_0x58d539>>>0x18&0xff,_0x59a6c3=_0x1c5baf?_0x6a67f2=>_0x6a67f2:_0x5ef8bc=>{const _0x5e1485=_0x33f14e;for(let _0xdd127f=0x0;_0xdd127f<_0x5ef8bc[_0x5e1485(0x251)];_0xdd127f++)_0x5ef8bc[_0xdd127f]=_0x34d16d(_0x5ef8bc[_0xdd127f]);return _0x5ef8bc;};function _0x46c12c(_0x332432){const _0x4a4249=_0x33f14e;if(typeof _0x332432!=_0x4a4249(0x137))throw TypeError(_0x4a4249(0x320));return new Uint8Array(new TextEncoder()['encode'](_0x332432));}function _0x4fe02a(_0x4fb8d9,_0xd3d7fb){const _0x245e9d=_0x33f14e;return!_0x4fb8d9[_0x245e9d(0x21b)]||!_0xd3d7fb['byteLength']?!0x1:_0x4fb8d9[_0x245e9d(0x21e)]===_0xd3d7fb['buffer']&&_0x4fb8d9['byteOffset']<_0xd3d7fb[_0x245e9d(0x183)]+_0xd3d7fb['byteLength']&&_0xd3d7fb[_0x245e9d(0x183)]<_0x4fb8d9[_0x245e9d(0x183)]+_0x4fb8d9['byteLength'];}function _0x1d2b3a(_0x386435,_0x1d94ef){const _0x5cd6cd=_0x33f14e;if(_0x4fe02a(_0x386435,_0x1d94ef)&&_0x386435[_0x5cd6cd(0x183)]<_0x1d94ef[_0x5cd6cd(0x183)])throw Error(_0x5cd6cd(0x2a1));}function _0x2c1cf3(..._0x5a7d1e){const _0xecf050=_0x33f14e;let _0x4ecea8=0x0;for(let _0x44c206=0x0;_0x44c206<_0x5a7d1e[_0xecf050(0x251)];_0x44c206++){let _0x594cf8=_0x5a7d1e[_0x44c206];_0x418b3b(_0x594cf8),_0x4ecea8+=_0x594cf8[_0xecf050(0x251)];}let _0x3b11c9=new Uint8Array(_0x4ecea8);for(let _0x58dcce=0x0,_0xc2a7ff=0x0;_0x58dcce<_0x5a7d1e[_0xecf050(0x251)];_0x58dcce++){let _0x3933e6=_0x5a7d1e[_0x58dcce];_0x3b11c9[_0xecf050(0x269)](_0x3933e6,_0xc2a7ff),_0xc2a7ff+=_0x3933e6[_0xecf050(0x251)];}return _0x3b11c9;}let _0x556cc6=(_0x404675,_0x134544)=>{const _0x203d9c=_0x33f14e;function _0x5747f3(_0x5e3263,..._0x12191b){const _0x5566ce=_0x1555;if(_0x418b3b(_0x5e3263,void 0x0,_0x5566ce(0xd7)),_0x404675[_0x5566ce(0x1da)]!==void 0x0){let _0x147ff6=_0x12191b[0x0];_0x418b3b(_0x147ff6,_0x404675[_0x5566ce(0x1d9)]?void 0x0:_0x404675[_0x5566ce(0x1da)],_0x5566ce(0x311));}let _0x2387c2=_0x404675[_0x5566ce(0xc3)];_0x2387c2&&_0x12191b[0x1]!==void 0x0&&_0x418b3b(_0x12191b[0x1],void 0x0,_0x5566ce(0x296));let _0x458a2d=_0x134544(_0x5e3263,..._0x12191b),_0x3199b2=(_0x13628b,_0x37bfea)=>{const _0x54a12d=_0x5566ce;if(_0x37bfea!==void 0x0){if(_0x13628b!==0x2)throw Error(_0x54a12d(0x297));_0x418b3b(_0x37bfea,void 0x0,_0x54a12d(0xdc));}},_0x3d1ec5=!0x1;return{'encrypt'(_0x1910ba,_0x2138bc){const _0x19f640=_0x5566ce;if(_0x3d1ec5)throw Error(_0x19f640(0x11b));return _0x3d1ec5=!0x0,_0x418b3b(_0x1910ba),_0x3199b2(_0x458a2d['encrypt'][_0x19f640(0x251)],_0x2138bc),_0x458a2d[_0x19f640(0xd2)](_0x1910ba,_0x2138bc);},'decrypt'(_0x27e610,_0x55e9d7){const _0x33ba45=_0x5566ce;if(_0x418b3b(_0x27e610),_0x2387c2&&_0x27e610['length']<_0x2387c2)throw Error(_0x33ba45(0x1b6)+_0x2387c2);return _0x3199b2(_0x458a2d[_0x33ba45(0x2db)]['length'],_0x55e9d7),_0x458a2d[_0x33ba45(0x2db)](_0x27e610,_0x55e9d7);}};}return Object[_0x203d9c(0x29a)](_0x5747f3,_0x404675),_0x5747f3;};function _0x51c0e7(_0x367d05,_0x156e09,_0x50374d=!0x0){const _0x2ee914=_0x33f14e;if(_0x156e09===void 0x0)return new Uint8Array(_0x367d05);if(_0x418b3b(_0x156e09,void 0x0,_0x2ee914(0xdc)),_0x156e09['length']!==_0x367d05)throw Error(_0x2ee914(0x106)+_0x367d05+',\x20got:\x20'+_0x156e09[_0x2ee914(0x251)]);if(_0x50374d&&!_0x1b8087(_0x156e09))throw Error(_0x2ee914(0x2a0));return _0x156e09;}function _0x1b8087(_0x32371a){const _0x4a5898=_0x33f14e;return _0x32371a[_0x4a5898(0x183)]%0x4==0x0;}function _0x56bb58(_0x289bde){const _0x1dd80f=_0x33f14e;return Uint8Array[_0x1dd80f(0x2ed)](_0x418b3b(_0x289bde));}function _0x30bfa2(_0x1ad07e=0x20){const _0x4f9649=_0x33f14e;_0x171b65(_0x1ad07e);let _0x283931=typeof globalThis==_0x4f9649(0x2d3)?globalThis[_0x4f9649(0x20f)]:null;if(typeof(_0x283931==null?void 0x0:_0x283931[_0x4f9649(0x21f)])!=_0x4f9649(0x1b7))throw Error(_0x4f9649(0x396));return _0x283931[_0x4f9649(0x21f)](new Uint8Array(_0x1ad07e));}function _0x263b43(_0x298449){const _0xcd6641=_0x33f14e;if(![0x10,0x18,0x20][_0xcd6641(0x1c3)](_0x298449[_0xcd6641(0x251)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x298449[_0xcd6641(0x251)]);}function _0x7874a8(_0x577b0b){return _0x577b0b<<0x1^0x11b&-(_0x577b0b>>0x7);}function _0x24fbde(_0x212551,_0x18063d){let _0x4b67ce=0x0;for(;_0x18063d>0x0;_0x18063d>>=0x1)_0x4b67ce^=_0x212551&-(_0x18063d&0x1),_0x212551=_0x7874a8(_0x212551);return _0x4b67ce;}let _0x495909=((()=>{let _0x3e3caa=new Uint8Array(0x100);for(let _0x54f60=0x0,_0x4eef10=0x1;_0x54f60<0x100;_0x54f60++,_0x4eef10^=_0x7874a8(_0x4eef10))_0x3e3caa[_0x54f60]=_0x4eef10;let _0x421b51=new Uint8Array(0x100);_0x421b51[0x0]=0x63;for(let _0x58fc00=0x0;_0x58fc00<0xff;_0x58fc00++){let _0x5b00b5=_0x3e3caa[0xff-_0x58fc00];_0x5b00b5|=_0x5b00b5<<0x8,_0x421b51[_0x3e3caa[_0x58fc00]]=(_0x5b00b5^_0x5b00b5>>0x4^_0x5b00b5>>0x5^_0x5b00b5>>0x6^_0x5b00b5>>0x7^0x63)&0xff;}return _0x311a9a(_0x3e3caa),_0x421b51;})()),_0x5e2e27=_0x495909['map']((_0x546269,_0x5e1ac3)=>_0x495909[_0x33f14e(0x156)](_0x5e1ac3)),_0x4b0eca=_0x49918e=>_0x49918e<<0x18|_0x49918e>>>0x8,_0x491c17=_0x43c8ca=>_0x43c8ca<<0x8|_0x43c8ca>>>0x18;function _0x448ea5(_0x551bbc,_0x5b4c3c){const _0x7f1941=_0x33f14e;if(_0x551bbc['length']!==0x100)throw Error(_0x7f1941(0x108));let _0xfef964=new Uint32Array(0x100)['map']((_0x445adf,_0x218df1)=>_0x5b4c3c(_0x551bbc[_0x218df1])),_0x38bbc7=_0xfef964['map'](_0x491c17),_0x13531e=_0x38bbc7[_0x7f1941(0x348)](_0x491c17),_0x3d3f91=_0x13531e[_0x7f1941(0x348)](_0x491c17),_0x5532c4=new Uint32Array(0x100*0x100),_0x49f37a=new Uint32Array(0x100*0x100),_0x2255a1=new Uint16Array(0x100*0x100);for(let _0x3b1ed2=0x0;_0x3b1ed2<0x100;_0x3b1ed2++)for(let _0x1294e3=0x0;_0x1294e3<0x100;_0x1294e3++){let _0x15b104=_0x3b1ed2*0x100+_0x1294e3;_0x5532c4[_0x15b104]=_0xfef964[_0x3b1ed2]^_0x38bbc7[_0x1294e3],_0x49f37a[_0x15b104]=_0x13531e[_0x3b1ed2]^_0x3d3f91[_0x1294e3],_0x2255a1[_0x15b104]=_0x551bbc[_0x3b1ed2]<<0x8|_0x551bbc[_0x1294e3];}return{'sbox':_0x551bbc,'sbox2':_0x2255a1,'T0':_0xfef964,'T1':_0x38bbc7,'T2':_0x13531e,'T3':_0x3d3f91,'T01':_0x5532c4,'T23':_0x49f37a};}let _0x293dbb=_0x448ea5(_0x495909,_0x2902ca=>_0x24fbde(_0x2902ca,0x3)<<0x18|_0x2902ca<<0x10|_0x2902ca<<0x8|_0x24fbde(_0x2902ca,0x2)),_0x537c10=_0x448ea5(_0x5e2e27,_0x4fc045=>_0x24fbde(_0x4fc045,0xb)<<0x18|_0x24fbde(_0x4fc045,0xd)<<0x10|_0x24fbde(_0x4fc045,0x9)<<0x8|_0x24fbde(_0x4fc045,0xe)),_0x226114=((()=>{let _0x486650=new Uint8Array(0x10);for(let _0x33e3a5=0x0,_0x1b7807=0x1;_0x33e3a5<0x10;_0x33e3a5++,_0x1b7807=_0x7874a8(_0x1b7807))_0x486650[_0x33e3a5]=_0x1b7807;return _0x486650;})());function _0x4a5a65(_0x3d745c){const _0x1e859b=_0x33f14e;_0x418b3b(_0x3d745c);let _0x403956=_0x3d745c[_0x1e859b(0x251)];_0x263b43(_0x3d745c);let {sbox2:_0x2c4c95}=_0x293dbb,_0x1d4b9c=[];(!_0x1c5baf||!_0x1b8087(_0x3d745c))&&_0x1d4b9c[_0x1e859b(0xf8)](_0x3d745c=_0x56bb58(_0x3d745c));let _0x5c829a=_0x59a6c3(_0x5d032b(_0x3d745c)),_0x37a2e6=_0x5c829a[_0x1e859b(0x251)],_0x543590=_0x34b1d7=>_0x301d15(_0x2c4c95,_0x34b1d7,_0x34b1d7,_0x34b1d7,_0x34b1d7),_0x13e2d4=new Uint32Array(_0x403956+0x1c);_0x13e2d4[_0x1e859b(0x269)](_0x5c829a);for(let _0x35ac1b=_0x37a2e6;_0x35ac1b<_0x13e2d4[_0x1e859b(0x251)];_0x35ac1b++){let _0x1dc5f3=_0x13e2d4[_0x35ac1b-0x1];_0x35ac1b%_0x37a2e6===0x0?_0x1dc5f3=_0x543590(_0x4b0eca(_0x1dc5f3))^_0x226114[_0x35ac1b/_0x37a2e6-0x1]:_0x37a2e6>0x6&&_0x35ac1b%_0x37a2e6===0x4&&(_0x1dc5f3=_0x543590(_0x1dc5f3)),_0x13e2d4[_0x35ac1b]=_0x13e2d4[_0x35ac1b-_0x37a2e6]^_0x1dc5f3;}return _0x311a9a(..._0x1d4b9c),_0x13e2d4;}function _0x5e6e06(_0x44ba81){const _0x4cb9f7=_0x33f14e;let _0x5488d8=_0x4a5a65(_0x44ba81),_0x257850=_0x5488d8[_0x4cb9f7(0x387)](),_0x4d07db=_0x5488d8[_0x4cb9f7(0x251)],{sbox2:_0x5af10f}=_0x293dbb,{T0:_0x4c0780,T1:_0x414836,T2:_0x45f2c6,T3:_0x32f55a}=_0x537c10;for(let _0x2efa85=0x0;_0x2efa85<_0x4d07db;_0x2efa85+=0x4)for(let _0x33058e=0x0;_0x33058e<0x4;_0x33058e++)_0x257850[_0x2efa85+_0x33058e]=_0x5488d8[_0x4d07db-_0x2efa85-0x4+_0x33058e];_0x311a9a(_0x5488d8);for(let _0x425e1e=0x4;_0x425e1e<_0x4d07db-0x4;_0x425e1e++){let _0x258925=_0x257850[_0x425e1e],_0x4608bb=_0x301d15(_0x5af10f,_0x258925,_0x258925,_0x258925,_0x258925);_0x257850[_0x425e1e]=_0x4c0780[_0x4608bb&0xff]^_0x414836[_0x4608bb>>>0x8&0xff]^_0x45f2c6[_0x4608bb>>>0x10&0xff]^_0x32f55a[_0x4608bb>>>0x18];}return _0x257850;}function _0x5ae9ae(_0x18e968,_0x4fd759,_0x5d09e9,_0x18dae6,_0x2a53de,_0x513859){return _0x18e968[_0x5d09e9<<0x8&0xff00|_0x18dae6>>>0x8&0xff]^_0x4fd759[_0x2a53de>>>0x8&0xff00|_0x513859>>>0x18&0xff];}function _0x301d15(_0x3c227e,_0x3e333e,_0x16a39e,_0x21c2ef,_0x59d8a6){return _0x3c227e[_0x3e333e&0xff|_0x16a39e&0xff00]|_0x3c227e[_0x21c2ef>>>0x10&0xff|_0x59d8a6>>>0x10&0xff00]<<0x10;}function _0xf92b88(_0x13ae07,_0x575ad1,_0xb899c5,_0x35f425,_0x497523){const _0x320f03=_0x33f14e;let {sbox2:_0x3a4246,T01:_0x299a77,T23:_0x4fe826}=_0x293dbb,_0x2cbd2f=0x0;_0x575ad1^=_0x13ae07[_0x2cbd2f++],_0xb899c5^=_0x13ae07[_0x2cbd2f++],_0x35f425^=_0x13ae07[_0x2cbd2f++],_0x497523^=_0x13ae07[_0x2cbd2f++];let _0x2e55b1=_0x13ae07[_0x320f03(0x251)]/0x4-0x2;for(let _0x481ea5=0x0;_0x481ea5<_0x2e55b1;_0x481ea5++){let _0x35afc3=_0x13ae07[_0x2cbd2f++]^_0x5ae9ae(_0x299a77,_0x4fe826,_0x575ad1,_0xb899c5,_0x35f425,_0x497523),_0x8ba60=_0x13ae07[_0x2cbd2f++]^_0x5ae9ae(_0x299a77,_0x4fe826,_0xb899c5,_0x35f425,_0x497523,_0x575ad1),_0x2d4193=_0x13ae07[_0x2cbd2f++]^_0x5ae9ae(_0x299a77,_0x4fe826,_0x35f425,_0x497523,_0x575ad1,_0xb899c5),_0x116781=_0x13ae07[_0x2cbd2f++]^_0x5ae9ae(_0x299a77,_0x4fe826,_0x497523,_0x575ad1,_0xb899c5,_0x35f425);_0x575ad1=_0x35afc3,_0xb899c5=_0x8ba60,_0x35f425=_0x2d4193,_0x497523=_0x116781;}return{'s0':_0x13ae07[_0x2cbd2f++]^_0x301d15(_0x3a4246,_0x575ad1,_0xb899c5,_0x35f425,_0x497523),'s1':_0x13ae07[_0x2cbd2f++]^_0x301d15(_0x3a4246,_0xb899c5,_0x35f425,_0x497523,_0x575ad1),'s2':_0x13ae07[_0x2cbd2f++]^_0x301d15(_0x3a4246,_0x35f425,_0x497523,_0x575ad1,_0xb899c5),'s3':_0x13ae07[_0x2cbd2f++]^_0x301d15(_0x3a4246,_0x497523,_0x575ad1,_0xb899c5,_0x35f425)};}function _0x4ee388(_0x31b5cb,_0x3a7a6e,_0x229913,_0x4d74dc,_0x197cc9){const _0x250ebe=_0x33f14e;let {sbox2:_0x130e04,T01:_0x3b26df,T23:_0x201c1d}=_0x537c10,_0x346e81=0x0;_0x3a7a6e^=_0x31b5cb[_0x346e81++],_0x229913^=_0x31b5cb[_0x346e81++],_0x4d74dc^=_0x31b5cb[_0x346e81++],_0x197cc9^=_0x31b5cb[_0x346e81++];let _0xfa28be=_0x31b5cb[_0x250ebe(0x251)]/0x4-0x2;for(let _0x43c988=0x0;_0x43c988<_0xfa28be;_0x43c988++){let _0x15b838=_0x31b5cb[_0x346e81++]^_0x5ae9ae(_0x3b26df,_0x201c1d,_0x3a7a6e,_0x197cc9,_0x4d74dc,_0x229913),_0x268674=_0x31b5cb[_0x346e81++]^_0x5ae9ae(_0x3b26df,_0x201c1d,_0x229913,_0x3a7a6e,_0x197cc9,_0x4d74dc),_0x4e467e=_0x31b5cb[_0x346e81++]^_0x5ae9ae(_0x3b26df,_0x201c1d,_0x4d74dc,_0x229913,_0x3a7a6e,_0x197cc9),_0x1d2882=_0x31b5cb[_0x346e81++]^_0x5ae9ae(_0x3b26df,_0x201c1d,_0x197cc9,_0x4d74dc,_0x229913,_0x3a7a6e);_0x3a7a6e=_0x15b838,_0x229913=_0x268674,_0x4d74dc=_0x4e467e,_0x197cc9=_0x1d2882;}return{'s0':_0x31b5cb[_0x346e81++]^_0x301d15(_0x130e04,_0x3a7a6e,_0x197cc9,_0x4d74dc,_0x229913),'s1':_0x31b5cb[_0x346e81++]^_0x301d15(_0x130e04,_0x229913,_0x3a7a6e,_0x197cc9,_0x4d74dc),'s2':_0x31b5cb[_0x346e81++]^_0x301d15(_0x130e04,_0x4d74dc,_0x229913,_0x3a7a6e,_0x197cc9),'s3':_0x31b5cb[_0x346e81++]^_0x301d15(_0x130e04,_0x197cc9,_0x4d74dc,_0x229913,_0x3a7a6e)};}function _0x15d332(_0x2f48b3){const _0x46a9ac=_0x33f14e;if(_0x418b3b(_0x2f48b3),_0x2f48b3[_0x46a9ac(0x251)]%0x10!=0x0)throw Error(_0x46a9ac(0x143));}function _0x13fc6d(_0x156192,_0x212419,_0x141c0b){const _0x279107=_0x33f14e;_0x418b3b(_0x156192);let _0x3ae676=_0x156192['length'],_0x550ba0=_0x3ae676%0x10;if(!_0x212419&&_0x550ba0!==0x0)throw Error(_0x279107(0x1ab));if(_0x212419){let _0x4b9502=0x10-_0x550ba0;_0x4b9502||(_0x4b9502=0x10),_0x3ae676+=_0x4b9502;}_0x141c0b=_0x51c0e7(_0x3ae676,_0x141c0b),_0x1d2b3a(_0x156192,_0x141c0b),(!_0x1c5baf||!_0x1b8087(_0x156192))&&(_0x156192=_0x56bb58(_0x156192));let _0x383ee8=_0x5d032b(_0x156192);return _0x59a6c3(_0x383ee8),{'b':_0x383ee8,'o':_0x5d032b(_0x141c0b),'out':_0x141c0b};}function _0x102e62(_0x2c4f3f,_0x153cd5){const _0x52c7e2=_0x33f14e;if(!_0x153cd5)return _0x2c4f3f;let _0x3f34b6=_0x2c4f3f[_0x52c7e2(0x251)];if(_0x3f34b6===0x0)throw Error(_0x52c7e2(0x264));let _0x23eac7=_0x2c4f3f[_0x3f34b6-0x1],_0x1be472=0x1;_0x1be472&=_0x23eac7-0x1>>>0x1f^0x1,_0x1be472&=0x10-_0x23eac7>>>0x1f^0x1;for(let _0x546177=0x0;_0x546177<0x10;_0x546177++){let _0xe32456=_0x546177-_0x23eac7>>>0x1f,_0x5f3eea=+((_0x2c4f3f[_0x3f34b6-0x1-_0x546177]^_0x23eac7)===0x0);_0x1be472&=_0x5f3eea|_0xe32456^0x1;}if(!_0x1be472)throw Error(_0x52c7e2(0x2c9));return _0x2c4f3f['subarray'](0x0,_0x3f34b6-_0x23eac7);}function _0x22e445(_0x41458f){const _0x173412=_0x33f14e;let _0xa46640=new Uint8Array(0x10),_0x34e45c=_0x5d032b(_0xa46640);_0xa46640[_0x173412(0x269)](_0x41458f);let _0xbc85b4=0x10-_0x41458f['length'];for(let _0x3d8687=0x10-_0xbc85b4;_0x3d8687<0x10;_0x3d8687++)_0xa46640[_0x3d8687]=_0xbc85b4;return _0x34e45c;}let _0x465838=_0x556cc6({'blockSize':0x10,'nonceLength':0x10},function(_0x1f7dfb,_0x18db80,_0x4901df={}){const _0x5be868=_0x33f14e;let _0x1a626c=!_0x4901df[_0x5be868(0x18a)];return{'encrypt'(_0x2f02aa,_0x476343){const _0x1267af=_0x5be868;let _0x191020=_0x4a5a65(_0x1f7dfb),{b:_0xd08573,o:_0x23f4ca,out:_0x1b7b68}=_0x13fc6d(_0x2f02aa,_0x1a626c,_0x476343),_0x545f79=_0x18db80,_0x283e4b=[_0x191020];(!_0x1c5baf||!_0x1b8087(_0x545f79))&&_0x283e4b[_0x1267af(0xf8)](_0x545f79=_0x56bb58(_0x545f79));let _0x444534=_0x5d032b(_0x545f79);_0x59a6c3(_0x444534);let _0x2a9841=_0x444534[0x0],_0x287266=_0x444534[0x1],_0x30fa47=_0x444534[0x2],_0x18e725=_0x444534[0x3],_0x2165d9=0x0;for(;_0x2165d9+0x4<=_0xd08573['length'];)_0x2a9841^=_0xd08573[_0x2165d9+0x0],_0x287266^=_0xd08573[_0x2165d9+0x1],_0x30fa47^=_0xd08573[_0x2165d9+0x2],_0x18e725^=_0xd08573[_0x2165d9+0x3],{s0:_0x2a9841,s1:_0x287266,s2:_0x30fa47,s3:_0x18e725}=_0xf92b88(_0x191020,_0x2a9841,_0x287266,_0x30fa47,_0x18e725),_0x23f4ca[_0x2165d9++]=_0x2a9841,_0x23f4ca[_0x2165d9++]=_0x287266,_0x23f4ca[_0x2165d9++]=_0x30fa47,_0x23f4ca[_0x2165d9++]=_0x18e725;if(_0x1a626c){let _0x411d31=_0x22e445(_0x2f02aa[_0x1267af(0x180)](_0x2165d9*0x4));_0x59a6c3(_0x411d31),_0x2a9841^=_0x411d31[0x0],_0x287266^=_0x411d31[0x1],_0x30fa47^=_0x411d31[0x2],_0x18e725^=_0x411d31[0x3],{s0:_0x2a9841,s1:_0x287266,s2:_0x30fa47,s3:_0x18e725}=_0xf92b88(_0x191020,_0x2a9841,_0x287266,_0x30fa47,_0x18e725),_0x23f4ca[_0x2165d9++]=_0x2a9841,_0x23f4ca[_0x2165d9++]=_0x287266,_0x23f4ca[_0x2165d9++]=_0x30fa47,_0x23f4ca[_0x2165d9++]=_0x18e725;}return _0x59a6c3(_0x23f4ca),_0x311a9a(..._0x283e4b),_0x1b7b68;},'decrypt'(_0x35814a,_0x5d9dc7){const _0x54fa12=_0x5be868;_0x15d332(_0x35814a);let _0x1fafa6=_0x5e6e06(_0x1f7dfb),_0x41d5d1=_0x18db80,_0x24db72=[_0x1fafa6];(!_0x1c5baf||!_0x1b8087(_0x41d5d1))&&_0x24db72[_0x54fa12(0xf8)](_0x41d5d1=_0x56bb58(_0x41d5d1));let _0x848ff1=_0x5d032b(_0x41d5d1);_0x59a6c3(_0x848ff1),_0x5d9dc7=_0x51c0e7(_0x35814a[_0x54fa12(0x251)],_0x5d9dc7),_0x1d2b3a(_0x35814a,_0x5d9dc7),(!_0x1c5baf||!_0x1b8087(_0x35814a))&&_0x24db72[_0x54fa12(0xf8)](_0x35814a=_0x56bb58(_0x35814a));let _0x45a8da=_0x5d032b(_0x35814a),_0x4870af=_0x5d032b(_0x5d9dc7);_0x59a6c3(_0x45a8da);let _0x11e068=_0x848ff1[0x0],_0x349435=_0x848ff1[0x1],_0x4e5b84=_0x848ff1[0x2],_0x1ec6cb=_0x848ff1[0x3];for(let _0x51008c=0x0;_0x51008c+0x4<=_0x45a8da['length'];){let _0x40773d=_0x11e068,_0x56ba4b=_0x349435,_0x5a432a=_0x4e5b84,_0x4c6094=_0x1ec6cb;_0x11e068=_0x45a8da[_0x51008c+0x0],_0x349435=_0x45a8da[_0x51008c+0x1],_0x4e5b84=_0x45a8da[_0x51008c+0x2],_0x1ec6cb=_0x45a8da[_0x51008c+0x3];let {s0:_0x4c3bfe,s1:_0x43133c,s2:_0x2702cb,s3:_0x360435}=_0x4ee388(_0x1fafa6,_0x11e068,_0x349435,_0x4e5b84,_0x1ec6cb);_0x4870af[_0x51008c++]=_0x4c3bfe^_0x40773d,_0x4870af[_0x51008c++]=_0x43133c^_0x56ba4b,_0x4870af[_0x51008c++]=_0x2702cb^_0x5a432a,_0x4870af[_0x51008c++]=_0x360435^_0x4c6094;}return _0x59a6c3(_0x4870af),_0x311a9a(..._0x24db72),_0x102e62(_0x5d9dc7,_0x1a626c);}};});function _0x4e67f5(_0x231652){const _0x301c48=_0x33f14e;let _0x285e77=atob(_0x231652),_0x58de81=new Uint8Array(_0x285e77[_0x301c48(0x251)]);for(let _0x272039=0x0;_0x272039<_0x285e77['length'];_0x272039++)_0x58de81[_0x272039]=_0x285e77['charCodeAt'](_0x272039);return _0x58de81;}function _0x514985(_0x36c30d){const _0x43d24c=_0x33f14e;let _0x14c376='';for(let _0x3021be=0x0;_0x3021be<_0x36c30d[_0x43d24c(0x251)];_0x3021be++)_0x14c376+=String[_0x43d24c(0x268)](_0x36c30d[_0x3021be]);return btoa(_0x14c376);}function _0x475c8c(_0x458b50,_0x463484){const _0xe92f92=_0x33f14e;let _0x29039a=_0x4e67f5(_0x463484),_0x53af98=_0x30bfa2(0x10);return _0x514985(_0x2c1cf3(_0x53af98,_0x465838(_0x29039a,_0x53af98)[_0xe92f92(0xd2)](_0x46c12c(_0x458b50))));}function _0x3c2bb1(){const _0x1f4e96=_0x33f14e;let _0x48026a=(0x0,_0x5f2569[_0x1f4e96(0x13f)])()['__Key__'];if(typeof window<'u'&&window[_0x1f4e96(0x226)]!==void 0x0&&_0x48026a){let _0x20b244={'time':Math['floor'](Date[_0x1f4e96(0x11f)]()/0x3e8),'domain':location[_0x1f4e96(0x331)]};return _0x475c8c(JSON[_0x1f4e96(0x121)](_0x20b244),_0x48026a);}}let _0x13c7f3=class{constructor(_0x22a4d1){const _0x5d716a=_0x33f14e;this[_0x5d716a(0x1b1)]=_0x22a4d1,this[_0x5d716a(0x390)]();}[_0x33f14e(0x390)](){const _0x4ef6a9=_0x33f14e;this[_0x4ef6a9(0x1b1)][_0x4ef6a9(0x3c4)]({'interceptor':(_0x2e936a,_0x3fe226)=>{const _0x632780=_0x4ef6a9;let _0x3919d9=_0x3c2bb1();return _0x3919d9&&_0x2e936a[_0x632780(0x144)]['set'](_0x632780(0x293),_0x3919d9),_0x3fe226(_0x2e936a);}});}};_0x13c7f3=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5[_0x33f14e(0x195)]))],_0x13c7f3);let _0x123c3d=class extends _0x305d10[_0x33f14e(0x15a)]{constructor(_0x35673d,_0x4975a0,_0x5a5731){const _0x59f9b1=_0x33f14e;super(),this['_logService']=_0x35673d,this['_snapshotService']=_0x4975a0,this['_localCacheService']=_0x5a5731,_0x816778(this,_0x59f9b1(0x14f),new _0x247d93['BehaviorSubject'](null)),_0x816778(this,_0x59f9b1(0x2fc),this[_0x59f9b1(0x14f)]['asObservable']());}async['loadUnitOfRevision'](_0x44bd2c,_0x5166c4,_0x2e8b5a){const _0x154ac0=_0x33f14e;this[_0x154ac0(0x14f)][_0x154ac0(0x300)]({'unitId':_0x44bd2c,'type':_0x5166c4});let _0x516a5d=null;switch(_0x5166c4){case _0x305d10[_0x154ac0(0x1c6)][_0x154ac0(0x22a)]:_0x516a5d=await this[_0x154ac0(0xc9)][_0x154ac0(0x2d8)](_0x44bd2c,_0x2e8b5a);break;case _0x305d10[_0x154ac0(0x1c6)][_0x154ac0(0x26e)]:_0x516a5d=await this[_0x154ac0(0xc9)]['loadDoc'](_0x44bd2c,_0x2e8b5a);break;default:this[_0x154ac0(0x356)][_0x154ac0(0x15f)]('[DataLoaderService]',_0x154ac0(0x116));break;}return _0x516a5d;}async[_0x33f14e(0x321)](_0x286e24,_0x50bc54,_0x7a3b7b){const _0x172b05=_0x33f14e;var _0x5db8ee;this['_unitInfo$'][_0x172b05(0x300)]({'unitId':_0x286e24,'type':_0x50bc54,'subUnitId':_0x7a3b7b});let _0xd34f5e=0x0,_0x25d94b=await((_0x5db8ee=this['_localCacheService'])==null?void 0x0:_0x5db8ee[_0x172b05(0x298)](_0x286e24));return _0x25d94b&&(_0x25d94b['awaitingChangeset']||_0x25d94b[_0x172b05(0x316)]['length']!==0x0)&&(_0xd34f5e=_0x25d94b[_0x172b05(0x123)]),_0xd34f5e===0x0&&this[_0x172b05(0x356)][_0x172b05(0x31a)](_0x172b05(0x21d),_0x172b05(0x376)),this[_0x172b05(0x13c)](_0x286e24,_0x50bc54,_0xd34f5e);}};_0x123c3d=_0x47fc4c([_0xf01086(0x0,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x1,(0x0,_0x305d10['Inject'])(_0x540a4f['SnapshotService'])),_0xf01086(0x2,(0x0,_0x305d10['Optional'])(_0xbd995e))],_0x123c3d);let _0x357175=class{constructor(_0x40c8b3,_0x5eb094,_0x4dff0b){const _0x1b8d2b=_0x33f14e;this[_0x1b8d2b(0x1b1)]=_0x40c8b3,this[_0x1b8d2b(0x333)]=_0x5eb094,this[_0x1b8d2b(0x35b)]=_0x4dff0b,_0x816778(this,_0x1b8d2b(0x1a1),0x0),_0x816778(this,_0x1b8d2b(0x18b),new _0x247d93['Subject']()),_0x816778(this,'change$',this[_0x1b8d2b(0x18b)]),_0x816778(this,'_imageSourceCache',new Map());}['setWaitCount'](_0x20bfe3){const _0x5f558e=_0x33f14e;this[_0x5f558e(0x1a1)]=_0x20bfe3,this['_change$'][_0x5f558e(0x300)](_0x20bfe3);}['getImageSourceCache'](_0x59429a,_0x3313fd){const _0x384c5c=_0x33f14e;if(_0x3313fd===_0x5452c7['ImageSourceType'][_0x384c5c(0x274)]){let _0x4288a6=new Image();return _0x4288a6['src']=_0x59429a,_0x4288a6;}return this[_0x384c5c(0x2b3)][_0x384c5c(0x1a5)](_0x59429a);}[_0x33f14e(0x13b)](_0x2e7553,_0x1f3157,_0xaf494a){const _0x1c6b26=_0x33f14e;_0x1f3157===_0x5452c7[_0x1c6b26(0x185)][_0x1c6b26(0x274)]||_0xaf494a==null||this[_0x1c6b26(0x2b3)][_0x1c6b26(0x269)](_0x2e7553,_0xaf494a);}async['getImage'](_0x226330){const _0x5b6281=_0x33f14e;try{let _0x2d106f=this[_0x5b6281(0x136)](this[_0x5b6281(0x323)](),''+_0x226330),_0x4a0622=(await this[_0x5b6281(0x1b1)][_0x5b6281(0x1a5)](_0x2d106f))['body'];if(_0x4a0622[_0x5b6281(0x15f)]&&_0x4a0622['error'][_0x5b6281(0x361)]===_0x54f861[_0x5b6281(0x2c2)]['OK']){let _0x48b7cd=(0x0,_0x305d10[_0x5b6281(0x193)])(_0x4a0622['url'],this['_getDownloadEndpointURL']());return Promise[_0x5b6281(0x388)](_0x48b7cd);}return Promise[_0x5b6281(0x22c)](_0x4a0622['error']);}catch(_0x53d195){return Promise[_0x5b6281(0x22c)](_0x53d195);}}async[_0x33f14e(0x252)](_0x21b4a1){const _0x2bfaab=_0x33f14e;let _0x5914a5='';if(!_0x5452c7[_0x2bfaab(0xf0)][_0x2bfaab(0x1c3)](_0x21b4a1['type']))return this[_0x2bfaab(0x211)](),Promise['reject'](Error(_0x5452c7[_0x2bfaab(0x3ba)][_0x2bfaab(0x17f)]));if(_0x21b4a1[_0x2bfaab(0xe1)]>(0x0,_0x5452c7[_0x2bfaab(0x336)])())return this[_0x2bfaab(0x211)](),Promise[_0x2bfaab(0x22c)](Error(_0x5452c7[_0x2bfaab(0x3ba)][_0x2bfaab(0x339)]));try{let _0x4ce27b=new FormData();_0x4ce27b[_0x2bfaab(0x140)](_0x2bfaab(0x1a9),_0x21b4a1);let _0xc80d1a=this[_0x2bfaab(0x35b)][_0x2bfaab(0x2a8)](),_0x44f53e=_0xc80d1a==null?void 0x0:_0xc80d1a[_0x2bfaab(0x1e7)]();if(!_0x44f53e)throw Error(_0x2bfaab(0x3aa));let _0x487179=this[_0x2bfaab(0x10b)]()+_0x2bfaab(0x36f)+_0x21b4a1[_0x2bfaab(0xe1)][_0x2bfaab(0x2e7)]()+_0x2bfaab(0xeb)+_0x54f861[_0x2bfaab(0x1fa)][_0x2bfaab(0x374)]+_0x2bfaab(0x36a)+encodeURIComponent(_0x44f53e),_0x5e10e1={'body':_0x4ce27b},_0x28ed42=(await this[_0x2bfaab(0x1b1)]['post'](_0x487179,_0x5e10e1))[_0x2bfaab(0x29f)];if(typeof _0x28ed42['FileId']!=_0x2bfaab(0x137))return this[_0x2bfaab(0x211)](),Promise['reject'](Error(_0x5452c7[_0x2bfaab(0x3ba)]['ERROR_IMAGE']));_0x5914a5=_0x28ed42[_0x2bfaab(0x3ac)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(_0x5452c7[_0x2bfaab(0x3ba)][_0x2bfaab(0x105)]));}return new Promise((_0x327bea,_0xd355f2)=>{const _0x3c08a5=_0x2bfaab;let _0x586eba=new FileReader();_0x586eba[_0x3c08a5(0x28a)](_0x21b4a1),_0x586eba[_0x3c08a5(0x2d2)]=_0x39d348=>{const _0xba81e4=_0x3c08a5;var _0x1b98d0;let _0x203f03=(_0x1b98d0=_0x39d348[_0xba81e4(0x27a)])==null?void 0x0:_0x1b98d0['result'];if(_0x203f03==null){this[_0xba81e4(0x211)](),_0xd355f2(Error(_0x5452c7[_0xba81e4(0x3ba)][_0xba81e4(0x105)]));return;}_0x327bea({'imageId':(0x0,_0x305d10['generateRandomId'])(0x6),'imageSourceType':_0x5452c7[_0xba81e4(0x185)][_0xba81e4(0x1a0)],'source':_0x5914a5,'base64Cache':_0x203f03,'status':_0x5452c7[_0xba81e4(0x3ba)][_0xba81e4(0x29c)]}),this[_0xba81e4(0x211)]();};});}[_0x33f14e(0x10b)](){const _0x45c4da=_0x33f14e;var _0x29b74e;let _0x5d9f2a=this[_0x45c4da(0x333)][_0x45c4da(0x328)](_0x1cf9ab);return(_0x29b74e=_0x5d9f2a==null?void 0x0:_0x5d9f2a[_0x45c4da(0x33e)])==null?_0x45c4da(0x223):_0x29b74e;}[_0x33f14e(0x323)](){const _0x43c7af=_0x33f14e;var _0x5ea814;let _0x57c241=this['_configService']['getConfig'](_0x1cf9ab);return(_0x5ea814=_0x57c241==null?void 0x0:_0x57c241[_0x43c7af(0x1ce)])==null?_0x43c7af(0x1c1):_0x5ea814;}[_0x33f14e(0x36b)](){const _0x27d78d=_0x33f14e;var _0x299653;let _0x13e6c0=this[_0x27d78d(0x333)][_0x27d78d(0x328)](_0x1cf9ab);return(_0x299653=_0x13e6c0==null?void 0x0:_0x13e6c0['downloadEndpointUrl'])==null?location['origin']:_0x299653;}[_0x33f14e(0x136)](_0x1ff2a0,_0x3cbbf4){const _0x1119be=_0x33f14e;return _0x1ff2a0[_0x1119be(0xce)](_0x1119be(0x1d3),_0x3cbbf4);}['_decreaseWaiting'](){const _0x5fcd86=_0x33f14e;--this[_0x5fcd86(0x1a1)],this['_change$'][_0x5fcd86(0x300)](this[_0x5fcd86(0x1a1)]);}};_0x357175=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5['HTTPService'])),_0xf01086(0x1,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0x2,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['IUniverInstanceService']))],_0x357175);let _0x422fbe=class{constructor(_0x28428e,_0x106a8e){const _0x2f9cc9=_0x33f14e;this[_0x2f9cc9(0x333)]=_0x28428e,this[_0x2f9cc9(0x15c)]=_0x106a8e;}[_0x33f14e(0x11c)](){const _0x7a6c92=_0x33f14e;var _0x542a3b;let _0x2228fa=this['_configService'][_0x7a6c92(0x328)](_0x1cf9ab);return(_0x542a3b=_0x2228fa==null?void 0x0:_0x2228fa[_0x7a6c92(0x3bc)])==null?_0x7a6c92(0x384):_0x542a3b;}async[_0x33f14e(0x1e3)](_0x3f7deb){const _0x1c8dd3=_0x33f14e;let _0x29200b=this[_0x1c8dd3(0x11c)]()+_0x1c8dd3(0x312);return{'list':[{'title':_0x1c8dd3(0x14b),'mentions':(await this[_0x1c8dd3(0x15c)][_0x1c8dd3(0x1a5)](_0x29200b,{'params':{'objectID':_0x3f7deb[_0x1c8dd3(0x34f)],'unitID':_0x3f7deb[_0x1c8dd3(0x34f)]}}))['body'][_0x1c8dd3(0x26c)]['map'](_0x53aee7=>({'objectId':_0x53aee7['id'],'name':_0x53aee7[_0x1c8dd3(0x364)]['name'],'metadata':{'icon':_0x53aee7[_0x1c8dd3(0x364)][_0x1c8dd3(0x329)]},'label':_0x53aee7[_0x1c8dd3(0x364)][_0x1c8dd3(0x241)],'objectType':_0x305d10[_0x1c8dd3(0x146)][_0x1c8dd3(0x1eb)]})),'metadata':{},'type':_0x305d10[_0x1c8dd3(0x146)][_0x1c8dd3(0x1eb)]}]};}};_0x422fbe=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['IConfigService'])),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5[_0x33f14e(0x195)]))],_0x422fbe);let _0xe87828=class extends _0x305d10['RxDisposable']{constructor(_0x4e337d,_0x3d4281,_0x20736a,_0x5ddcb5,_0x56edf5){const _0x42a37d=_0x33f14e;super(),this['_injector']=_0x4e337d,this[_0x42a37d(0x35b)]=_0x3d4281,this[_0x42a37d(0x27e)]=_0x20736a,this['_collaborationSessionService']=_0x5ddcb5,this[_0x42a37d(0x17e)]=_0x56edf5,this[_0x42a37d(0x245)](),this[_0x42a37d(0x135)]();}['_initCloseConn'](){const _0x24f8f3=_0x33f14e;let _0x2a7826=async _0x33de4a=>{const _0x2bfbee=_0x1555;(await this['_collaborationSessionService'][_0x2bfbee(0x1ee)](_0x33de4a))[_0x2bfbee(0x1b0)][_0x2bfbee(0x2a9)]((0x0,_0x38623c[_0x2bfbee(0x306)])(_0x13c197=>_0x13c197[_0x2bfbee(0x2b4)]===_0x540a4f[_0x2bfbee(0x38c)]['SHOULD_CLOSE_CONN']),(0x0,_0x38623c[_0x2bfbee(0x1f5)])(this[_0x2bfbee(0x26d)]))[_0x2bfbee(0x305)](_0x1c3730=>{const _0x547324=_0x2bfbee;let {reason:_0x18bd97}=_0x1c3730[_0x547324(0x23d)];this[_0x547324(0x17e)][_0x547324(0x118)]({'id':_0x547324(0x261),'data':_0x18bd97}),this[_0x547324(0x27e)][_0x547324(0x378)](new _0x2b86ea[(_0x547324(0xef))](_0x33de4a)['id'],!0x1),this[_0x547324(0x2d0)][_0x547324(0x375)](_0x33de4a);});};(0x0,_0x247d93[_0x24f8f3(0xff)])(this[_0x24f8f3(0x35b)][_0x24f8f3(0xc5)](_0x305d10[_0x24f8f3(0x1c6)][_0x24f8f3(0x22a)]),this['_univerInstanceService'][_0x24f8f3(0xc5)](_0x305d10[_0x24f8f3(0x1c6)][_0x24f8f3(0x26e)]))[_0x24f8f3(0x2a9)]((0x0,_0x38623c[_0x24f8f3(0x348)])(_0x32ace0=>_0x32ace0[_0x24f8f3(0x265)]['getUnitId']()),(0x0,_0x38623c['filter'])(_0x1150ae=>!(0x0,_0x305d10[_0x24f8f3(0x337)])(_0x1150ae)),(0x0,_0x38623c['takeUntil'])(this['dispose$']))[_0x24f8f3(0x305)](_0x1292ac=>{_0x2a7826(_0x1292ac);});}['_initUnitPermissionChange'](){const _0x4df211=_0x33f14e;let _0x1280ea=async _0xdda5a1=>{const _0x2c1839=_0x1555;let _0x4f3350=await this['_collaborationSessionService'][_0x2c1839(0x1ee)](_0xdda5a1),_0x2d7dfb=this[_0x2c1839(0x1c7)][_0x2c1839(0x1a5)](_0x2b86ea[_0x2c1839(0x126)]);_0x4f3350['event$'][_0x2c1839(0x2a9)]((0x0,_0x38623c['filter'])(_0x607d2b=>_0x607d2b[_0x2c1839(0x2b4)]===_0x540a4f[_0x2c1839(0x38c)][_0x2c1839(0x272)]),(0x0,_0x38623c[_0x2c1839(0x1f5)])(this[_0x2c1839(0x26d)]))[_0x2c1839(0x305)](_0xdaf02d=>{const _0x53ff3a=_0x2c1839;let {objectId:_0x17fdda}=_0xdaf02d[_0x53ff3a(0x23d)];_0x17fdda===_0xdda5a1?_0x2d7dfb['initWorkbookPermissionChange'](_0xdda5a1):_0x2d7dfb['refreshPermission'](_0xdda5a1,_0x17fdda);});};(0x0,_0x247d93[_0x4df211(0xff)])(this[_0x4df211(0x35b)][_0x4df211(0xc5)](_0x305d10[_0x4df211(0x1c6)][_0x4df211(0x22a)]))['pipe']((0x0,_0x38623c[_0x4df211(0x348)])(_0x2b4163=>_0x2b4163[_0x4df211(0x265)][_0x4df211(0x1e7)]()),(0x0,_0x38623c[_0x4df211(0x306)])(_0x20b8b0=>!(0x0,_0x305d10[_0x4df211(0x337)])(_0x20b8b0)),(0x0,_0x38623c[_0x4df211(0x1f5)])(this['dispose$']))[_0x4df211(0x305)](_0x5bd506=>{_0x1280ea(_0x5bd506);});}};_0xe87828=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['Injector'])),_0xf01086(0x1,_0x305d10[_0x33f14e(0x20d)]),_0xf01086(0x2,_0x305d10[_0x33f14e(0x145)]),_0xf01086(0x3,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x258abc)),_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696))],_0xe87828);let _0x1e5545=class{constructor(_0x1ece95,_0x4b593d){this['_configService']=_0x1ece95,this['_httpService']=_0x4b593d;}async[_0x33f14e(0xba)](_0x5b48a1,_0x59e732){const _0x136f4a=_0x33f14e;var _0x281174;let {unitID:_0xccf641,type:_0x12681a,revision:_0x50a20e=0x0}=_0x59e732,_0x35604f=this[_0x136f4a(0x367)]()+'/'+_0x12681a+_0x136f4a(0x10f)+_0xccf641+_0x136f4a(0x1cf)+_0x50a20e,_0x59392b=(await this[_0x136f4a(0x1b1)][_0x136f4a(0x1a5)](_0x35604f))[_0x136f4a(0x29f)],_0xd6a3c7=(_0x281174=_0x59392b[_0x136f4a(0x1f0)])==null?void 0x0:_0x281174[_0x136f4a(0x27b)];if(_0xd6a3c7){let _0x14e4c1=_0xd6a3c7==null?void 0x0:_0xd6a3c7['originalMeta'];_0xd6a3c7[_0x136f4a(0x386)]=_0x540a4f[_0x136f4a(0x19e)][_0x136f4a(0x10c)]((0x0,_0x540a4f[_0x136f4a(0x2ce)])(_0x14e4c1)),Object[_0x136f4a(0xb4)](_0xd6a3c7['sheets'])[_0x136f4a(0x1fc)](([,_0x1a3fd7])=>{const _0x46bc2b=_0x136f4a;let _0x2db636=_0x1a3fd7['originalMeta'];_0x1a3fd7[_0x46bc2b(0x386)]=_0x540a4f['textEncoder'][_0x46bc2b(0x10c)]((0x0,_0x540a4f[_0x46bc2b(0x2ce)])(_0x2db636));});}return _0x59392b;}async['getSheetBlock'](_0x3cdde2,_0x50466a){const _0x3e6fff=_0x33f14e;let {unitID:_0x57d434,type:_0x586cf4,blockID:_0x3c6fd0}=_0x50466a,_0x529cf2=this['_getAPIPrefix']()+'/'+_0x586cf4+'/unit/'+_0x57d434+_0x3e6fff(0x11a)+_0x3c6fd0;return(await this['_httpService'][_0x3e6fff(0x1a5)](_0x529cf2))[_0x3e6fff(0x29f)];}async['getDeserializedSheetBlock'](_0x2bb729,_0x15ee32){const _0x33dcc0=_0x33f14e;let {unitID:_0x4630a9,type:_0x5ca07d,blockID:_0x5667ce}=_0x15ee32,_0x375197=this[_0x33dcc0(0x280)]()+_0x33dcc0(0x11a)+_0x5ca07d+'/unit/'+_0x4630a9+_0x33dcc0(0x11a)+_0x5667ce;return(await this[_0x33dcc0(0x1b1)][_0x33dcc0(0x1a5)](_0x375197))[_0x33dcc0(0x29f)];}async[_0x33f14e(0xea)](_0x460947,_0x2dc1f9){const _0xbe782=_0x33f14e;let {unitID:_0xbd1504,type:_0x4ed046,from:_0x3a5e91,to:_0x228268}=_0x2dc1f9,_0x3572b9=this['_getAPIPrefix']()+'/'+_0x4ed046+_0xbe782(0x10f)+_0xbd1504+_0xbe782(0x1ca)+_0x3a5e91+_0xbe782(0x284)+_0x228268;return(await this[_0xbe782(0x1b1)][_0xbe782(0x1a5)](_0x3572b9))[_0xbe782(0x29f)];}['getSnapshotAPIPath'](){const _0x1fe3aa=_0x33f14e;var _0x52315b;return(_0x52315b=this[_0x1fe3aa(0x333)][_0x1fe3aa(0x328)](_0x1fe3aa(0x133)))==null?this[_0x1fe3aa(0x280)]():_0x52315b;}[_0x33f14e(0x280)](){const _0x279f08=_0x33f14e;var _0x34a89f;let _0x177782=this['_configService'][_0x279f08(0x328)](_0x1cf9ab);return(_0x34a89f=_0x177782==null?void 0x0:_0x177782[_0x279f08(0x17d)])==null?_0x279f08(0x1b8):_0x34a89f;}async['getResourcesRequest'](_0x5275c0,_0x265330){const _0x433aab=_0x33f14e;let _0x4396df=_0x433aab(0x30b)+_0x265330[_0x433aab(0x1aa)]+_0x433aab(0x10f)+_0x265330[_0x433aab(0x37e)]+_0x433aab(0x360);return(await this[_0x433aab(0x1b1)]['get'](_0x4396df,{'params':{'resourceId':JSON[_0x433aab(0x121)](_0x265330[_0x433aab(0x1bc)])}}))[_0x433aab(0x29f)];}[_0x33f14e(0x39b)](){const _0x321541=_0x33f14e;throw Error(_0x321541(0x39d));}[_0x33f14e(0x353)](){const _0x649a62=_0x33f14e;throw Error(_0x649a62(0x39d));}[_0x33f14e(0x314)](){const _0x16bb84=_0x33f14e;throw Error(_0x16bb84(0x39d));}[_0x33f14e(0xc8)](){const _0x412ee8=_0x33f14e;throw Error(_0x412ee8(0x39d));}[_0x33f14e(0x142)](){const _0x19fa8f=_0x33f14e;throw Error(_0x19fa8f(0x39d));}[_0x33f14e(0x1c4)](){const _0x5be01a=_0x33f14e;throw Error(_0x5be01a(0x39d));}};_0x1e5545=_0x47fc4c([_0xf01086(0x0,_0x305d10['IConfigService']),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5[_0x33f14e(0x195)]))],_0x1e5545);let _0x15e3f7=class extends _0x305d10['LocalUndoRedoService']{constructor(_0x38b3b3,_0x1bf350,_0x1c892b,_0x2102b2,_0x58b651){super(_0x38b3b3,_0x1bf350,_0x1c892b),this['_transformService']=_0x2102b2,this['_logService']=_0x58b651;}[_0x33f14e(0xf1)](_0x239a59,_0x5d05ea){const _0x53196b=_0x33f14e;let _0x58815f=this[_0x53196b(0x19a)](_0x239a59);if(_0x58815f)try{let _0x4932c3=this[_0x53196b(0x194)](_0x58815f,_0x5d05ea);this[_0x53196b(0xfe)](_0x239a59,_0x4932c3);}catch(_0x2a493f){this[_0x53196b(0x356)][_0x53196b(0x15f)](_0x53196b(0x169),_0x2a493f),this[_0x53196b(0x1ba)](_0x239a59);}let _0x2e9f73=this['_getRedoStack'](_0x239a59);if(_0x2e9f73)try{let _0x348e0e=this[_0x53196b(0x194)](_0x2e9f73,_0x5d05ea);this[_0x53196b(0x1fe)](_0x239a59,_0x348e0e);}catch(_0x4f2302){this['_logService']['error'](_0x4f2302),this[_0x53196b(0x1e4)](_0x239a59);}}[_0x33f14e(0x1ba)](_0x324c21){const _0x245f69=_0x33f14e;let _0x1152cb=this[_0x245f69(0x19a)](_0x324c21);_0x1152cb&&(_0x1152cb[_0x245f69(0x251)]=0x0,this[_0x245f69(0x2a6)]());}[_0x33f14e(0x1e4)](_0x12ec01){const _0x5ad3e4=_0x33f14e;let _0x479218=this[_0x5ad3e4(0xae)](_0x12ec01);_0x479218&&(_0x479218[_0x5ad3e4(0x251)]=0x0,this['_updateStatus']());}[_0x33f14e(0xfe)](_0x1841c7,_0x5408a8){const _0x296419=_0x33f14e;this[_0x296419(0x2bd)][_0x296419(0x269)](_0x1841c7,_0x5408a8),this[_0x296419(0x2a6)]();}[_0x33f14e(0x1fe)](_0x1f060c,_0x3661eb){const _0x1013fd=_0x33f14e;this['_redoStacks'][_0x1013fd(0x269)](_0x1f060c,_0x3661eb),this[_0x1013fd(0x2a6)]();}[_0x33f14e(0x194)](_0x24cbe4,_0x184dc6){const _0xca9fc8=_0x33f14e;let _0x540d23=[],_0x3c739f=_0x184dc6,_0x3b35ac=_0x184dc6;for(let _0x1c72b6=_0x24cbe4[_0xca9fc8(0x251)]-0x1;_0x1c72b6>=0x0;_0x1c72b6--){let {unitID:_0x2d2a38,undoMutations:_0x2850f1,redoMutations:_0x28b70a}=_0x24cbe4[_0x1c72b6],_0xc00b76=this[_0xca9fc8(0x15e)][_0xca9fc8(0x141)](_0x3c739f,_0x2850f1),_0x2552ea=this[_0xca9fc8(0x15e)][_0xca9fc8(0x141)](_0x3b35ac,_0x28b70a);if((0x0,_0x540a4f[_0xca9fc8(0x192)])(_0xc00b76)||(0x0,_0x540a4f[_0xca9fc8(0x192)])(_0x2552ea)){this[_0xca9fc8(0x356)]['error'](_0xca9fc8(0x169),_0xca9fc8(0x139),_0xc00b76,_0x2552ea);break;}_0x3c739f=_0xc00b76[_0xca9fc8(0x2cb)],_0x3b35ac=_0x2552ea[_0xca9fc8(0x2cb)],_0x540d23[_0xca9fc8(0xf8)]({'unitID':_0x2d2a38,'undoMutations':_0xc00b76[_0xca9fc8(0x28c)],'redoMutations':_0x2552ea[_0xca9fc8(0x28c)]});}return _0x540d23[_0xca9fc8(0x289)]();}};_0x15e3f7=_0x47fc4c([_0xf01086(0x0,_0x305d10['IUniverInstanceService']),_0xf01086(0x1,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0x2,_0x305d10[_0x33f14e(0x30d)]),_0xf01086(0x3,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0x4,_0x305d10['ILogService'])],_0x15e3f7);let _0x36f5ad=class extends _0x305d10[_0x33f14e(0x3bb)]{constructor(_0x455d6b={},_0x52f4d3,_0x37a327,_0x218454){const _0xb9b52b=_0x33f14e;super(),this[_0xb9b52b(0x1af)]=_0x455d6b,this['_logService']=_0x52f4d3,this[_0xb9b52b(0x1c7)]=_0x37a327,this[_0xb9b52b(0x333)]=_0x218454;let {..._0x428045}=(0x0,_0x305d10[_0xb9b52b(0xff)])({},_0x4cbbd4,_0x455d6b);if(!_0x428045[_0xb9b52b(0xd0)])throw Error(_0xb9b52b(0x34e));this['_config']=_0x428045,this[_0xb9b52b(0x333)]['setConfig'](_0x1cf9ab,_0x428045);}[_0x33f14e(0x359)](){const _0xfe01ab=_0x33f14e;this[_0xfe01ab(0x334)](),this['_initDependencies']();}[_0x33f14e(0x334)](){const _0x1c5715=_0x33f14e;var _0x3be1cc,_0x388783;this[_0x1c5715(0x1c7)][_0x1c5715(0x354)](_0x305d10[_0x1c5715(0xe3)])&&this[_0x1c5715(0x356)][_0x1c5715(0x15f)](_0x1c5715(0x34d),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x58e764=(0x0,_0x305d10[_0x1c5715(0x1bb)])([[_0x305d10[_0x1c5715(0xe3)],{'useClass':_0x15e3f7}],[_0x258abc],[_0x497a33],[_0x2c235d],[_0x2ed10f],[_0x13c7f3],[_0x1493d1],[_0xe87828],[_0x23b696],[_0x123c3d],[_0x277be8,{'useClass':this['_config']['socketService']}],[_0x540a4f[_0x1c5715(0x1e9)],{'useClass':_0x1e5545}],[_0x305d10[_0x1c5715(0x369)],{'useClass':_0xc00d62}],[_0x5452c7[_0x1c5715(0x1f1)],{'useClass':_0x357175}],[_0x305d10['IMentionIOService'],{'useClass':_0x422fbe}],[_0x37b5a8],[_0x14ac8f]],(_0x3be1cc=this[_0x1c5715(0x1af)])==null?void 0x0:_0x3be1cc['override']);if(!((_0x388783=this[_0x1c5715(0x1af)])!=null&&_0x388783[_0x1c5715(0x37c)])){let _0x5be32a=_0x58e764[_0x1c5715(0x2d7)](([_0xf2b4d9])=>_0xf2b4d9===_0x4e88b2);_0x5be32a!==-0x1&&_0x58e764[_0x1c5715(0xe5)](_0x5be32a,0x1);}(0x0,_0x305d10[_0x1c5715(0x2e9)])(this[_0x1c5715(0x1c7)],_0x58e764);}[_0x33f14e(0x3ad)](){const _0x3b8be6=_0x33f14e;var _0x4c5e2a,_0x5b11c0;if(this[_0x3b8be6(0x1c7)][_0x3b8be6(0x1a5)](_0x3c9fd5[_0x3b8be6(0x195)])[_0x3b8be6(0x3c4)]({'priority':0x14,'interceptor':(0x0,_0x3c9fd5[_0x3b8be6(0x394)])({'maxParallel':0x6})}),!((_0x4c5e2a=this['_config'])!=null&&_0x4c5e2a['enableOfflineEditing'])){var _0x1d6457;(_0x1d6457=this[_0x3b8be6(0x1c7)][_0x3b8be6(0x1a5)](_0xbd995e,_0x305d10[_0x3b8be6(0x3bf)]['OPTIONAL']))==null||_0x1d6457[_0x3b8be6(0x281)]();}(_0x5b11c0=this[_0x3b8be6(0x1af)])!=null&&_0x5b11c0[_0x3b8be6(0x345)]&&(0x0,_0x305d10[_0x3b8be6(0x218)])(this[_0x3b8be6(0x1c7)],[[_0x2ed10f]]),(0x0,_0x305d10[_0x3b8be6(0x218)])(this['_injector'],[[_0x13c7f3],[_0x37b5a8],[_0xe87828]]);}};_0x816778(_0x36f5ad,_0x33f14e(0x2f4),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x816778(_0x36f5ad,_0x33f14e(0x2c7),_0x53586),_0x816778(_0x36f5ad,_0x33f14e(0xb9),_0x453767),_0x36f5ad=_0x47fc4c([(0x0,_0x305d10[_0x33f14e(0x1ae)])(_0x5f2569[_0x33f14e(0x347)],_0x540a4f[_0x33f14e(0x249)],_0x3c9fd5[_0x33f14e(0x2d5)]),_0xf01086(0x1,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x2,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x3,_0x305d10[_0x33f14e(0xfb)])],_0x36f5ad),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x1c0),{'enumerable':!0x0,'get':function(){return _0xc00d62;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x196),{'enumerable':!0x0,'get':function(){return _0x4c5197;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x2a7),{'enumerable':!0x0,'get':function(){return _0x1f4a11;}}),_0x17c4ec[_0x33f14e(0x290)]=_0x1cf9ab,Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x17b),{'enumerable':!0x0,'get':function(){return _0x37b5a8;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x33c),{'enumerable':!0x0,'get':function(){return _0x5f0326;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x25c),{'enumerable':!0x0,'get':function(){return _0x357175;}}),Object['defineProperty'](_0x17c4ec,_0x33f14e(0x1be),{'enumerable':!0x0,'get':function(){return _0x459c7b;}}),Object['defineProperty'](_0x17c4ec,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x258abc;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x1f3),{'enumerable':!0x0,'get':function(){return _0x4d4d25;}}),_0x17c4ec['CollaborationStatus']=_0x46a1e9,_0x17c4ec[_0x33f14e(0x3c2)]=_0x29ff30,_0x17c4ec['CollaborationUIEventService']=_0x23b696,Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x14c),{'enumerable':!0x0,'get':function(){return _0x15e3f7;}}),_0x17c4ec['CommentService']=_0x1493d1,Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x2f2),{'enumerable':!0x0,'get':function(){return _0x50a112;}}),_0x17c4ec[_0x33f14e(0xb2)]=_0x3919fe,_0x17c4ec[_0x33f14e(0x1d2)]=_0x33f14e(0x31f),_0x17c4ec['DEFAULT_WS_SESSION_TICKET_URL']='/universer-api/user/session-ticket',Object['defineProperty'](_0x17c4ec,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x123c3d;}}),Object[_0x33f14e(0x267)](_0x17c4ec,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x467d36;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x30e),{'enumerable':!0x0,'get':function(){return _0x69d917;}}),_0x17c4ec[_0x33f14e(0xcd)]=_0x33f14e(0xaf),_0x17c4ec[_0x33f14e(0x3a5)]=_0x33f14e(0x1dd),_0x17c4ec['ICollaborationSocketService']=_0x277be8,_0x17c4ec[_0x33f14e(0x1a2)]=_0xbd995e,_0x17c4ec[_0x33f14e(0x238)]=_0x515a5c,_0x17c4ec[_0x33f14e(0x2dc)]=_0x4e88b2,_0x17c4ec[_0x33f14e(0x1f6)]=0x3e8,_0x17c4ec[_0x33f14e(0x3b6)]=_0x33f14e(0x1f6),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x19f),{'enumerable':!0x0,'get':function(){return _0x497a33;}}),Object['defineProperty'](_0x17c4ec,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x422fbe;}}),Object['defineProperty'](_0x17c4ec,_0x33f14e(0x246),{'enumerable':!0x0,'get':function(){return _0x18cfb2;}}),Object['defineProperty'](_0x17c4ec,_0x33f14e(0x1b4),{'enumerable':!0x0,'get':function(){return _0x40e466;}}),_0x17c4ec['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x17c4ec[_0x33f14e(0x1db)]=_0x33f14e(0x2af),_0x17c4ec[_0x33f14e(0x170)]=_0x475efd,Object['defineProperty'](_0x17c4ec,_0x33f14e(0x355),{'enumerable':!0x0,'get':function(){return _0x3c0dc6;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x2ee),{'enumerable':!0x0,'get':function(){return _0x2c235d;}}),Object['defineProperty'](_0x17c4ec,_0x33f14e(0x16a),{'enumerable':!0x0,'get':function(){return _0x1e5545;}}),Object[_0x33f14e(0x267)](_0x17c4ec,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x3f62b4;}}),_0x17c4ec[_0x33f14e(0x25d)]=_0x3dfa36,Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x18c),{'enumerable':!0x0,'get':function(){return _0x36f5ad;}}),_0x17c4ec[_0x33f14e(0x178)]=_0x1ab073,_0x17c4ec[_0x33f14e(0x3b3)]=_0x3da7c3,_0x17c4ec[_0x33f14e(0x23b)]=_0x2d2ccc;}));function _0x1555(_0x3f1340,_0x3b605f){_0x3f1340=_0x3f1340-0xad;const _0x15e60a=_0x15e6();let _0x155593=_0x15e60a[_0x3f1340];return _0x155593;}function _0x15e6(){const _0x2632fa=['/resources','code','error$','status$','subject','22DvnYpF','dispose','getSnapshotAPIPath','session.room-full','IAuthzIoService','&assign=','_getDownloadEndpointURL','4003310weEBtc','parse','_getLoginPath','?size=','CHANGESET_SHOULD_RETRY','Inject','CmdRspCode','listCollaborators','UnitEmbedded','closeSession','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','4155532fmTslF','updatePermissionPoint','getUnit','SOCKET_FAILED_RETRY','readyForCollab','enableSingleActiveInstanceLock','_removeRoom','unitID','localeService','_startCollaboration','InsertSheetMutation','some','_socket','/universer-api/authz','univer-pro.collaboration-client.single-active-unit-service','originalMeta','slice','resolve','save\x20fail\x20reason\x20is\x20','cmd','LIVESHARE_TERMINATE','CollaborationEvent','unsubscribe','_userManagerService','getUnitStatus$','_initRequestHeader','LIVESHARE_NEW_HOST','removeMember','decorate','ThresholdInterceptorFactory','onTransformRemoteChangesetByStateCache','crypto.getRandomValues\x20must\x20be\x20defined','_onRemoteRejected','_telemetryService','PERMISSION_DENIED','_isPermissionRej','saveSnapshot','sid','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_lockTransition','[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.','[OfflineState]:\x20received\x20changeset.','objectActions','_initMergeInterceptor','333MmaRHw','POST','HEARTBEAT_TIMEOUT_KEY','getCollabEntity$','_collaborationTimeoutTimer','send','getValue','unitId\x20is\x20not\x20found','_onConnectionOpen','FileId','_initDependencies','_getSendChangesetTimeout','pending','parseProtocolChangeset','sessionStatus$','uuidv4','getLocalCacheKey','_clearHeartbeatTimer','UserManagerService','LOCAL_CACHE_INTERVAL_KEY','_incrementRevisionNumber','_transitionLocked','_onRemoteACK','ImageUploadStatusType','Plugin','authzUrl','isPermissionRej','transformChangesets','Quantity','toStringTag','params','CollaborationUIEventId','UniverProCollaboration','registerHTTPInterceptor','deleteCollaborator','_socketReady','newCsEvent','_getRedoStack','HEARTBEAT_INTERVAL','/universer-api/comb','_sheetTransformSelectionsService','DEFAULT_COLLAB_WEB_SOCKET_URL','toggleOffline','entries','_cfgEnableObjInherit','_candidateSocket','_onMessage','CombCmd','version','getUnitOnRev','patch','onStateChange','AWAITING_WITH_PENDING','editing\x20status\x20changed\x20to','_changesetSessionId','delete','9888624IxJtDi',',\x20got\x20','tagLength','onRemoteAck','getTypeOfUnitAdded$','_transformStateCache','fetching\x20missing\x20changesets\x20from\x20','saveChangeset','_snapshotService','MUTATION','leaveEvent','toDisposable','HEARTBEAT_INTERVAL_KEY','replace','OTHER_CLIENTS_EDITING','socketService','rxjs/operators','encrypt','_shouldReportTelemetry','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onMissedChangesetFetched','onMissingChangesets','key','createSocket','_members$','@univerjs/drawing','_disableEditing','output','[PendingState]:\x20received\x20rejection.','addHandlerCallback','call','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','size','firstValueFrom','IUndoRedoService','close','splice','awaiting','prototype','RichTextEditingMutation','fetch_missing','fetchMissingChangesets','&source=','_sessionStatus$','\x20to\x20','_acknowledgeAwaiting','WorkbookEditablePermission','DRAWING_IMAGE_ALLOW_IMAGE_LIST','transformUndoRedo','href','method','CompressMutationService','mapDocumentTypeToUniverInstanceType','submit\x20changeset\x20error!','_memberService','push','onLocalMutation','find','IConfigService','default','_retryConnectingTimer','_substituteUndoStack','merge','_onConnectionFailed','/object/','@univerjs-pro/collaboration-client','_sendHeartbeat','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','ERROR_IMAGE','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','commentUpdateEvent','Wrong\x20sbox\x20length','complete','updateMember','_getUploadFileURL','encode','_changesetReqId','changesets','/unit/','_awaitingChangeset','[SyncedState]:\x20received\x20acknowledgement.','objects','_instanceService','toPrimitive','Workbook','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_submitChangeset','emitEvent','_socketMessageSubscription','/block/','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','_getAPIPrefixPath','startsWith','every','now','_resendTimeout','stringify','_createHandler','rev','waitForRoom$','duration','SheetPermissionInitController','reduce','/role','_tryReconnect','updateOfflineData','_socket$','update','Tools','ILogService','getRoom','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','createIdentifier','fetchMiss','SNAPSHOT_URL_KEY','_exhaustRemoteChangesetQueue','_initCloseConn','_replaceFileID','string','8526168AKIcci','transformStack\x20failed!','_clearCollaborationTimeoutTimer','addImageSourceCache','loadUnitOfRevision','[CollaborationSessionService]','isTransformChangesetsSuccess','getGlobalObject','append','transformMutationsWithChangeset','copyFileMeta','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','headers','IPermissionService','MentionType','1896aFnxSu','@univerjs-pro/collaboration','symbol','stopTime','People','CollaborativeUndoRedoService','responseType','_pendingMutations','_unitInfo$','resend','_roomMembers','onSendChangeset','LIVESHARE_OPERATION','permissionRejEvent','members','indexOf','_onFetchMissResult','_onRecvEvent','onRemoteRej','RxDisposable','getCurrentRevOfUnit','_HTTPService','offline','_transformService','error','SUBMIT_CHANGESET_TIMEOUT','updatePermissionObjEvent','OTHER_CLIENT_EDITING','PSEUDO_FETCH_MISSING_RESULT','CHANGESET_REJ','actions','awaitingChangeset','focused$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationUndoRedoService]','SnapshotServerOverHTTPService','_executeRemoteChangeset','[PendingState]:\x20unhandled\x20univer\x20type:\x20','title','onlyLocal','textRanges','SessionStatus','socket\x20open.','asObservable','getMemberID','getUnitType','isArray','_onRemoteRetry','_event$','deserializeToCombResponse','_localCacheService','_eventService','CollaborationController','COMPRESS_MUTATION_APPLY','snapshotServerUrl','_collaborationUIEventService','ERROR_IMAGE_TYPE','subarray','then','conflict','byteOffset','_state','ImageSourceType','selections','_transformIMECache','unit-cache-','getOwnPropertyDescriptor','disablePadding','_change$','UniverCollaborationClientPlugin','_onCombEvent','cfgEnableObjInherit','getTime','AWAITING','@univerjs-pro/license','isTransformMutationsWithChangesetFailure','resolveWithBasePath','_transformStack','HTTPService','AwaitingState','open$','\x20in\x20_schedule.','isTransformMutationsWithChangesetSuccess','_getUndoStack','ISocketService','deepClone','rxjs','textEncoder','MemberService','UUID','_waitCount','ILocalCacheService','confirm','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','get','_resendTimer','encodeURIComponent','state$','file','type','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','baseRev','_onLocalMutation','DependentOn','_config','event$','_httpService','executeCommand','_scheduleCompleteTimestamp','PendingState','result','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','function','/universer-api/snapshot','roles','_clearUndo','mergeOverrideWithDependencies','resourceIDs','sort','CollaborationSession','JOIN_ROOM_FULL','AuthzIoHttpService','/universer-api/file/{fileID}/sign-url','Disposable','includes','getLatestCsReqIdBySid','_startTelemetryCollaborationNewChangeset','UniverInstanceType','_injector','_handler','[CollaborationSessionService]:\x20socket\x20error','/fetchmissing?from=','socket\x20close','PENDING','action','signUrlServerUrl','/rev/','sessionStatus','failed\x20to\x20apply\x20missed\x20changesets!','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','{fileID}','getCollabEntity','withCredentials','_schedule','MSG_FOR_ERROR','_collaborationPaused','varSizeNonce','nonceLength','RETRY_CONNECTING_MAX_COUNT_KEY','ITelemetryService','HEARTBEAT_TIMEOUT','collaboration-client.auth.needGotoLoginAlert','take','create','NOT_COLLAB','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','list','_clearRedo','_rescheduleHeartbeat','SUBMIT_CHANGESET','getUnitId','reqId','ISnapshotServerService','_acknowledgedAwaitingRevision','PERSON','_remoteChangesetQueue','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','requireSession','_entityInit$','snapshot','IImageIoService','[CollaborationState]:\x20apply\x20error!','CollaborationSocketService','liveShareOperation','takeUntil','LOCAL_CACHE_INTERVAL','_commandService','editingUnit','startTime','FileSource','connection\x20error','forEach','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_substituteRedoStack','_emitMembers','clear','GLOBAL_ROOMS_CNT_EXCEEDS','_timeoutTimer','_getCurrentRevision','state','_init','_createInitialStateImpl','5383noMtrN','concatMap','_checkMissing','session','disposeWithMe','onMutationExecutedForCollab','IUniverInstanceService','add','crypto','session.room-cnt-exceeds','_decreaseWaiting','@univerjs/core','ICommandService','getCurrentSelections','UniverSheets','Injector','onRemoteChangeset','touchDependencies','_networkConditionService','__splitChunk__','byteLength','getMember','[DataLoaderService]','buffer','getRandomValues','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','appendMutation','\x20-\x20','/universer-api/stream/file/upload','_unitID','CONFLICT','location','shouldCloseConn','FETCH_MISSING','session.room-permission-denied','UNIVER_SHEET','c2Prime','reject','Error\x20on\x20receiving\x20event','uniscriptRunEvent','ONLINE','_commentUpdate$','liveShareNewHost','equals','_telemetryInfo','_isEchoedAwaitingChangeset','Optional','onCommentUpdate','SOCKET_FAILED','INetworkConditionService','_handlerCallback','UPDATE_CURSOR','serializeCombRequest','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','data','unknown','INGEST','amd','name','number','[CollaborationSession]','CommandType','_initUnitPermissionChange','OfflineState','_state$','Univer','UniverCollaborationPlugin','_singleActiveUnitService','MergeInterceptorFactory','CHANGESET_ACK','Module','collabWebSocketUrl','onRemoteRetry','_listenToNetworkCondition','length','saveImage','isSafeInteger','number\x20expected,\x20got\x20','synced','_maxTotalRetryTimeout','ITransformService','_entities','JOIN_ROOM_FAILED','putCollaborators','[OfflineState]:\x20received\x20acknowledgement.','CollaborationImageIoService','UnitStatus','UniverDocs','close$','message$','CLOSE_ROOM','csAckEvent','isView','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','unit','OFFLINE','defineProperty','fromCharCode','set','_onOffline','requestParams','collaborators','dispose$','UNIVER_DOC','_collabSessionService','UniverProLicense','_sessions','UPDATE_PERMISSION_OBJ','parseChangesetToProtocol','BASE64','_acknowledgeAwaitingIfReady','min','memberID','_retryCount','DEFAULT_FILE_NAME','target','workbook','batchAllowed','[FetchMissState]','_permissionService','onSyncEditingCollabCursor','_getAPIPrefix','disableLocalCache','operators','_createSocket','&to=','USERS_ENTER','_resendWithTimeout','getAllMembers','BehaviorSubject','reverse','readAsDataURL','_scheduleCollaborationTimeoutTimer','m2Prime','_revisionService','collaMsg','_onJoinRoomEvent','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','COMMENT_UPDATE','/universer-api/oidc/authpage','x-univer-host','reconnect','updateCursorEvent','AAD','cipher\x20output\x20not\x20supported','loadOfflineData','onTransformRemoteChangesetByIMECache','assign','@univerjs/telemetry','SUCCUSS','BYTES_PER_ELEMENT','_showConflictNotification','body','invalid\x20output,\x20must\x20be\x20aligned','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','COMPRESS_MUTATION_SEND','_applyRemoteChangeset','RevisionService','_onRemoteChangeset','_updateStatus','AwaitingWithPendingState','getFocusedUnit','pipe','pauseCollaboration','_clearScheduledTask','_compressMutationService','/allowed','csRejEvent','RETRY_CONNECTING_MAX_COUNT','post','JOIN','fromCollab','_imageSourceCache','eventID','/-/object/-/batch_allowed','_transformRemoteChangesetByIMECache','getTypeOfUnitDisposed$','_undoRedoService','186340sALHrH','collaboration-client.config','_sendingTimer','_tryEnsureSocket','_undoStacks','Subject','routeKey','_doCreateSocket','onTransformSelections','ErrorCode','subUnitId','692102rHGWmG','collaboration-client.local-cache-service','listRoles','packageName','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','aes/pkcs7:\x20wrong\x20padding','_joinRoom','c1Prime','getWorkbookSelections','getCurrentUser','b64DecodeUnicode','_handleRemoteChangesets','_collaborationSessionService','revision','onload','object','setCfgEnableObjInherit','UniverNetworkPlugin','_transformUndoredo','findIndex','loadSheet','positive\x20integer\x20expected,\x20got\x20','_onUserLeave','decrypt','ISingleActiveUnitService','url','shareReplay','collaboration_new_changeset','_sendHeartbeatTimer','missingChangesets','interceptor','_toggleOffline','_syncEditingCollabCursor','_members','transformSelections','toString','LEAVE','registerDependencies','toggleOnline','LIVESHARE_REQUEST_HOST','3svHPGS','from','SheetTransformSelectionsService','_socketService','onTransformState','floor','ConflictState','HELLO','pluginName','[CollaborationEntity]','telemetry\x20info\x20is\x20not\x20initialized','updateCollaborator','RECV','JOIN_ROOM_PERMISSION_DENIED','objectID','status','unitInfo$','_fetchMissChangesets','@univerjs/network','_sender','next','_replayCachedMutations','localCacheService','_roomCreated$','loginUrlKey','subscribe','filter','_clearLocalCache','JSONX','getSheetId','NEW_CHANGESETS','/universer-api/snapshot/','_updateState','IContextService','FetchingMissState','SetSelectionsOperation','_stopTelemetryCollaborationNewChangeset','nonce','/collaborator','HEARTBEAT','saveSheetBlock','awaiting_with_pending','mutations','userID','_status$','_queuedRemoteChangesets','debug','EmptyMutationInfo','_getCtorByUniverInstanceType','commentUpdate$','getInterceptPoints','/universer-api/uniscript','string\x20expected','loadUnit','fetchThroughInterceptors','_getSignURL','_onUserJoin','_transformRemoteChangesetByStateCache','_clearTimeoutTimer','joinRsp','getConfig','avatar','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_clearRetryConnectingTimer','_snapshotServerService','setShowComponents','init','createInstance','_unlockTransition','hostname','2lnSXlf','_configService','_registerDependencies','_updateLocalCache','getDrawingImageAllowSize','isInternalEditorID','capture','ERROR_EXCEED_SIZE','\x0aCurrent:\x20','LIVESHARE_FETCH_OPERATIONS','CollaborationEntity','roomInfos','uploadFileServerUrl','delay','DisposableCollection','USERS_LEAVE','_transformAndApplyRemoteChangeset','UNISCRIPT_RUN','PERMISSION_REJ','enableAuthServer','_transformSelections','UniverLicensePlugin','map','iterator','_type','_createInitialState','NO_OTHER_CLIENTS_EDITING','[UniverCollaborationClientPlugin]','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','unitId','objectType','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','collabSubmitChangesetUrl','updateSnapshot','has','SheetCollaborationEntity','_logService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_onConflict','onStarting','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_univerInstanceService','UniverCore','_localeService','/new_changes','LocaleService'];_0x15e6=function(){return _0x2632fa;};return _0x15e6();}
|
|
1
|
+
function _0x364e(_0x5b3097,_0x5f1cc7){_0x5b3097=_0x5b3097-0x64;const _0x3db5cd=_0x3db5();let _0x364eb6=_0x3db5cd[_0x5b3097];return _0x364eb6;}function _0x3db5(){const _0x12467e=['unitID','allowed','INetworkConditionService','_maxTotalRetryTimeout','sequenceExecute','_sendHeartbeatTimer','complete','OFFLINE','copyFileMeta','UniverProCollaborationClient','from','_clearCollaborationTimeoutTimer','DisposableCollection','eventID','isArray','OTHER_CLIENTS_EDITING','getConfig','add','newCsEvent','CollaborationSocketService','UserManagerService','_submitChangeset','findIndex','dispose','maxSize','@univerjs/sheets','_onRemoteRejected','_entityInit$','_getAPIPrefix','CollaborationStatus','call','sid','fetch_missing','CollaborationSession','encode','MentionIoHttpService','RichTextEditingMutation','_onUserJoin','type','_changesetReqId','saveChangeset','_scheduleCompleteTimestamp','updatePermissionObjEvent','uuidv4','JSONX','collaboration_new_changeset','saveAttachment','getResourcesRequest','Disposable','_socket$','toDisposable','uniscriptRunEvent','3468088GcZmzD','takeUntil','?url=','_onConnectionOpen','FETCH_MISS','_cfgEnableObjInherit','MentionType','_injector','loadOfflineData','_emitMembers','send','origin','loadSlide','collaboration-client.config','HTTPService','filter','[OfflineState]:\x20received\x20acknowledgement.','ERROR_EXCEED_SIZE','_applyRemoteChangeset','CommentService','session','collabSubmitChangesetUrl','shouldCloseConn','UNISCRIPT_RUN','reqId','params','Tools','UNIVER_BASE','_sessionStatus$','waitForRoom$','RevisionService','amd','_roomMembers','conflict','firstValueFrom','telemetry\x20info\x20is\x20not\x20initialized','_fetchMissChangesets','deserializeToCombResponse','_onConnectionFailed','resolve','members','appendMutation','CollaborationSessionService','_resendTimeout','resolveWithBasePath','SheetTransformSelectionsService','some','saveImage','online$','dispose$','authzUrl','append','socket\x20close','save\x20fail\x20reason\x20is\x20','AWAITING','Plugin','routeKey','[FetchMissState]','cfgEnableObjInherit','_config','UnitEmbedded','_undoStacks','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_httpService','_singleActiveUnitService','FETCH_MISSING','text-x','NEW_CHANGESETS','addHandlerCallback','collaboratorID','size','_change$','CombCmd','accept','pending','OTHER_CLIENT_EDITING','unitInfo$','unsubscribe','_telemetryInfo','_transformRemoteChangesetByIMECache','toggleOffline','_throwTelemetryCollaborationNewChangeset','CompressMutationService','MUTATION','fetchMiss','find','Inject','getCurrentUser','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getTime','_createInitialStateImpl','now','stopTime','interceptor','170iAAOjH','string','@univerjs-pro/bases','CHANGESET_ACK','UniverNetwork','objects','awaiting_with_pending','_transformIMECache','RETRY_CONNECTING_MAX_COUNT_KEY','constructor','socketService','Optional','failed\x20to\x20apply\x20missed\x20changesets!','onTransformState','/new_changes','_state$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','PSEUDO_FETCH_MISSING_RESULT','fill','listRoles','IPermissionService','PendingState','getValue','_type','roles','commentUpdate$','/-/object/-/batch_allowed','ConflictState','b64DecodeUnicode','_HTTPService','_transformService','getUnitType','transformSelections','loadBase','values','_clearUndo','RxDisposable','title','_candidateSocket','startsWith','[CollaborationEntity]','crypto','HEARTBEAT_INTERVAL','ERROR_IMAGE_TYPE','getSheetBlock','object','_getSignURL','_onLocalMutation','_getUndoStack','_stopTelemetryCollaborationNewChangeset','_clearHeartbeatTimer','pauseCollaboration','setWaitCount','_transformStack','encodeURIComponent','getAllMembers','Uint8Array','_transformStateCache','compose','AwaitingWithPendingState','USERS_ENTER','Module','loadSheet','isPermissionRej','LIVESHARE_OPERATION','_disableEditing','rxjs/operators','LIVESHARE_NEW_HOST','univer-pro.collaboration-client-socket-service','IAuthzIoService','_getCtorByUniverInstanceType','onSyncEditingCollabCursor','missingChangesets','ImageUploadStatusType','_toggleOnline','_logService','splice','touchDependencies','requestParams','CHANGESET_SHOULD_RETRY','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','FileId','onRemoteRetry','reject','ICommandService','collabWebSocketUrl','onMissedChangesetFetched','_isPermissionRej','SetSelectionsOperation','[PendingState]:\x20received\x20rejection.','key','_onRemoteChangeset','/universer-api/uniscript','_revisionService','invalid\x20output,\x20must\x20be\x20aligned','body','univer-pro.collaboration-client.network-condition.service','setCfgEnableObjInherit','/-/object/list','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','2382720xVDVyc','sort','HTTPRequest','disposeWithMe','PERMISSION_DENIED','AuthzIoHttpService','_updateState','/universer-api/snapshot','not_collab','_telemetryService','replace','_replaceFileID','onStateChange','COMPRESS_MUTATION_APPLY','getCurrentRevOfUnit','COMMENT_UPDATE','/allowed','executeCommand','awaitingChangeset','3318139BOFIGH','_updateStatus','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','ImageSourceType','transformUndoRedo','upload','1.0.0-alpha.1','_waitForHeartbeatResponse','UNIVER_SLIDE','_queuedRemoteChangesets','ITransformService','_collaborationTimeoutTimer','forEach','pipe','FileSource','_initDependencies','debug','localeService','fetching\x20missing\x20changesets\x20from\x20','loginUrlKey','_getUploadFileURL','x-univer-host','_networkConditionService','_socketService','default','_roomCreated$','onTransformRemoteChangesetByStateCache','m2Prime','output','expected\x20Uint8Array','_socketMessageSubscription','_instanceService','downloadEndpointUrl','_initUnitPermissionChange','_onUserLeave','defineProperty','SYNCED','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','LIVESHARE_REQUEST_HOST','transformMutationsWithChangeset','updatePermissionPoint','_showConflictNotification','SheetsSelectionsService','_members$','[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.','_initRequestHeader','getCollabEntity','_socketReady','closeSession','UniverInstanceType','_startCollaboration','JOIN','HEARTBEAT_TIMEOUT_KEY','responseType','getDrawingImageAllowSize','_transformAndApplyRemoteChangeset','status','_handler','@univerjs/drawing','_transformRemoteChangesetByStateCache','createSocket','_entities','SUBMIT_CHANGESET_TIMEOUT','FetchingMissState','isTransformMutationsWithChangesetFailure','ILocalCacheService','socket\x20open.','_handlerCallback','onSendChangeset','_snapshotService','_resendWithTimeout','HEARTBEAT_INTERVAL_KEY','SUBMIT_CHANGESET','DEFAULT_COLLAB_WEB_SOCKET_URL','map','Quantity','SessionStatus','assign','resend','EmptyMutationInfo','_onMessage','LEAVE','collaboration-client.local-cache-service','getTypeOfUnitAdded$','90xlCYVc','_createInitialState','CollaborativeUndoRedoService','fetchThroughInterceptors','_waitCount','unitId','_shouldReportTelemetry','_doCreateSocket','includes','addImageSourceCache','[CollaborationSession]','ApplyBaseJson1Mutation','objectActions','docStateChange$','onload','createInstance','endsWith','equals','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_upload','_onFetchMissResult','_permissionService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_docStateChangeManagerService','getInterceptPoints','UniverProBases','ISingleActiveUnitService','UniverTelemetry','_lockTransition','Injector','session.room-not-exists','userID','_univerInstanceService','JOIN_ROOM_FULL','UniverCollaborationPlugin','/universer-api/oidc/authpage','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','[SyncedState]:\x20received\x20rejection.','close$','_onCombEvent','_onJoinRoomEvent','_clearRedo','UPDATE_PERMISSION_OBJ','liveShareOperation','_init','People','reconnect','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','name','UniverProCollaboration','c1Prime','synced','aes/pkcs7:\x20wrong\x20padding','DataLoaderService','editingUnit','NO_OTHER_CLIENTS_EDITING','iterator','_status$','parseProtocolChangeset','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','PENDING','mergeOverrideWithDependencies','Subject','getUnitStatus$','signUrlServerUrl','baseRev','location','OfflineState','merge','length','has','_configService','encrypt','LIVESHARE_TERMINATE','_collaborationSessionService','ERROR_IMAGE','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','entries','decorate','INGEST','href','MergeInterceptorFactory','4uMThbT','unknown','[DataLoaderService]','MemberService','getUnitId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','focused$','batchAllowed','createIdentifier',',\x20got\x20','UPDATE_CURSOR','rxjs','AwaitingState','onRemoteRej','CmdRspCode','/universer-api/comb','error','reduce','SnapshotService','removeMember','cmd','/block/','ONLINE','_sessions','_sender','onRemoteChangeset','_state','/collaborator','isTransformChangesetsSuccess','loadUnitOfRevision','toString','enableAuthServer','min','Rectangle','mapDocumentTypeToUniverInstanceType','_undoRedoService','nonce','take','duration','every','_incrementRevisionNumber','byteLength','sessionStatus$','init','message$','getMemberID','localCacheService','collaborators','_userManagerService','LocaleService','_memberService','_collabSessionService','MoveSlidePageMutation','@univerjs/telemetry','onStarting','number\x20expected,\x20got\x20','code','EnsureSlideMasterPageMutation','BehaviorSubject','registerDependencies','prototype','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleCollaborationTimeoutTimer','getGlobalObject','varSizeNonce','_sendingTimer','SOCKET_FAILED','onMutationExecutedForCollab','onMissingChangesets','setConfig','IImageIoService','toggleOnline','LOCAL_CACHE_INTERVAL','_pendingMutations','[CollaborationSessionService]','getFocusedUnit','textRanges','permissionRejEvent','url','workbook','/role','_redoStacks','then','saveSheetBlock','_resendTimer','@univerjs-pro/license','getUnit','207764GJoPaQ','_acknowledgedAwaitingRevision','IDLE','UniverCollaborationClientPlugin','isSafeInteger','_onRemoteACK','UniverDrawing','buffer','_onOffline','SUCCUSS','post','ITelemetryService','submit\x20changeset\x20error!','socket$','onTransformIME','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','catch','parse','InsertSheetMutation','hostname','onCommentUpdate','_imageSourceCache','_transformUndoredo','patch','getTypeOfUnitDisposed$','LIVESHARE_FETCH_OPERATIONS','attachment','_retryCount','_sheetTransformSelectionsService','UNIVER_DOC','mutations','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','BYTES_PER_ELEMENT','disablePadding','floor','objectType','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_unitInfo$','result','_compressMutationService','number','/fetchmissing?from=','string\x20expected','_localeService','infoRsp','onRemoteAck','revision','_checkMissing','range','_transitionLocked','ThresholdInterceptorFactory','_unitID','c2Prime','HELLO','unit','function','2365956BUYpUA','/universer-api/user/session-ticket','changesets','offline','confirm','byteOffset','_remoteChangesetQueue','clear','WorkbookEditablePermission','packageName','_updateLocalCache','ISnapshotServerService','IUndoRedoService','CollaborationEvent','/universer-api/stream/file/upload','liveShareNewHost','getCurrentSelections','withCredentials','SHOULD_CLOSE_CONN','textEncoder','subscribe','asObservable','loadUnit','getRandomValues','PERSON','_listenToNetworkCondition','fetchMissingChangesets','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','_getConfig','updateMember','getCollabEntity$','_clearRetryConnectingTimer','max','\x20in\x20_schedule.','IUniverInstanceService','resourceIDs','LOCAL_CACHE_INTERVAL_KEY','PERMISSION_REJ','_decreaseWaiting','RECV','8264712htbSGF','_commandService','next','@univerjs/network','RETRY_CONNECTING_MAX_COUNT','get','file','_onRemoteRetry','_substituteUndoStack','UUID','[UniverCollaborationClientPlugin]','event$','updateOfflineData','/unit/','fromCollab','_initCloseConn','onTransformSelections','close','[CollaborationUndoRedoService]','_schedule','_changesetSessionId','getImage','Wrong\x20sbox\x20length','collaMsg','serializeCombRequest','_tryEnsureSocket','_registerDependencies','originalMeta','AAD','FAIL','getActiveSheet','?size=','POST','/universer-api/authz','action','_onConflict','error$','state','HEARTBEAT','_removeRoom','stringify','onLocalMutation','type=','_clearTimeoutTimer','JOIN_ROOM_PERMISSION_DENIED','deleteCollaborator','_awaitingChangeset','members$','COMPRESS_MUTATION_SEND','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','data','/object','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','registerHTTPInterceptor','getSheetId','_getAPIPrefixPath','unit-cache-','[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.','UniverProSlides','\x20-\x20','_executeRemoteChangeset','getUploadOptions','slice','UniverCore','/universer-api/snapshot/','USERS_LEAVE','[CollaborationSessionService]:\x20socket\x20error','_collaborationUIEventService','_unitLoaded$','DocStateChangeManagerService','SOCKET_FAILED_RETRY','NOT_COLLAB','DEFAULT_FILE_NAME','ws://127.0.0.1:8000/universer-api/comb/connect','CHANGESET_REJ','getLocalCacheKey','_getCurrentRevision','set','_retryConnectingTimer','_createHandler','putCollaborators','@univerjs/protocol','@univerjs-pro/collaboration-client','push','DEFAULT_WS_SESSION_TICKET_URL','SheetPermissionInitController','@univerjs/core','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','&source=','_socket','CollaborationController','_onRecvEvent','delay','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','snapshotServerUrl','listCollaborators','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','cipher\x20output\x20not\x20supported','change$','_acknowledgeAwaitingIfReady','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','requireSession','awaiting','_event$','UniverProLicense','21DGAOAE','open$','AddSlidePageMutation','emitEvent','getOwnPropertyDescriptor','selections','updateCursorEvent','JOINING','roomInfos','_unlockTransition','pluginName','startTime','subject','_acknowledgeAwaiting','status$','_toggleOffline','CLOSE_ROOM','_syncEditingCollabCursor','SNAPSHOT_URL_KEY','CollaborationUIEventId','_handleRemoteChangesets','_rescheduleHeartbeat','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','updateSnapshot','\x20of\x20length\x20',',\x20got:\x20','MSG_FOR_ERROR','/object/','getUnitOnRev','objectID','version','session.join-failed','_joinRoom','getMember','__Key__','_isEchoedAwaitingChangeset','collaboration-client.auth.needGotoLoginAlert','setCurrentUser','ILogService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','symbol','_localCacheService','indexOf','isInternalEditorID','enableCollaboration','_clearScheduledTask','getSnapshotAPIPath','ErrorCode','uploadFileServerUrl','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_collaborationPaused','_tryReconnect','CommandType','_startTelemetryCollaborationNewChangeset','onTransformRemoteChangesetByIMECache','_sendHeartbeat','JOIN_ROOM_FAILED','UniverDocs','incrementRevOfUnit','positive\x20integer\x20expected,\x20got\x20','decrypt','Error\x20on\x20receiving\x20event','ReplaySubject','memberID','_members','HEARTBEAT_TIMEOUT','isTransformMutationsWithChangesetSuccess','setShowComponents','CONFLICT','UNIVER_SHEET','sheets','DependentOn','generateRandomId','IContextService','URL','editing\x20status\x20changed\x20to','crypto.getRandomValues\x20must\x20be\x20defined','createCollaborator','_getSendChangesetTimeout','_timeoutTimer','capture','state$','IConfigService','_commentService','transformChangesets','_eventService','_getLoginPath','BASE64','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_initMergeInterceptor','actions','745314lBbqYp','headers','GLOBAL_ROOMS_CNT_EXCEEDS','delete','_substituteRedoStack','ICollaborationSocketService','onlyLocal','{fileID}','_exhaustRemoteChangesetQueue','connection\x20error'];_0x3db5=function(){return _0x12467e;};return _0x3db5();}(function(_0x5d4b6f,_0x1dca36){const _0x57d3d1=_0x364e,_0x2b9122=_0x5d4b6f();while(!![]){try{const _0x3eaa39=-parseInt(_0x57d3d1(0x15b))/0x1*(-parseInt(_0x57d3d1(0x2d6))/0x2)+parseInt(_0x57d3d1(0xa2))/0x3+-parseInt(_0x57d3d1(0x1b2))/0x4*(-parseInt(_0x57d3d1(0x372))/0x5)+-parseInt(_0x57d3d1(0x212))/0x6+parseInt(_0x57d3d1(0x27b))/0x7*(parseInt(_0x57d3d1(0x314))/0x8)+-parseInt(_0x57d3d1(0x1ea))/0x9+-parseInt(_0x57d3d1(0x109))/0xa*(parseInt(_0x57d3d1(0xb5))/0xb);if(_0x3eaa39===_0x1dca36)break;else _0x2b9122['push'](_0x2b9122['shift']());}catch(_0x490629){_0x2b9122['push'](_0x2b9122['shift']());}}}(_0x3db5,0xf337a),function(_0xbb5562,_0x10b6a3){const _0x4785d3=_0x364e;typeof exports==_0x4785d3(0x6b)&&typeof module<'u'?_0x10b6a3(exports,require('@univerjs-pro/bases'),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[_0x4785d3(0x333)]?define(['exports',_0x4785d3(0x374),'@univerjs-pro/collaboration',_0x4785d3(0x268),'@univerjs/docs',_0x4785d3(0x2f9),_0x4785d3(0x166),_0x4785d3(0x263),_0x4785d3(0x190),_0x4785d3(0x80),'@univerjs-pro/slides',_0x4785d3(0x215),_0x4785d3(0x1b0),_0x4785d3(0xef)],_0x10b6a3):(_0xbb5562=typeof globalThis<'u'?globalThis:_0xbb5562||self,_0x10b6a3(_0xbb5562[_0x4785d3(0x2e9)]={},_0xbb5562[_0x4785d3(0x122)],_0xbb5562[_0x4785d3(0x13a)],_0xbb5562[_0x4785d3(0x251)],_0xbb5562[_0x4785d3(0x2b4)],_0xbb5562['UniverSheets'],_0xbb5562[_0x4785d3(0x166)],_0xbb5562['UniverProtocol'],_0xbb5562[_0x4785d3(0x124)],_0xbb5562[_0x4785d3(0x166)]['operators'],_0xbb5562[_0x4785d3(0x24c)],_0xbb5562[_0x4785d3(0x376)],_0xbb5562[_0x4785d3(0x27a)],_0xbb5562[_0x4785d3(0x1b8)]));}(this,function(_0x4a9262,_0x9153a8,_0x164f11,_0x186af2,_0x4f74bc,_0x19a0d0,_0x4f8104,_0x53d7dd,_0x44c977,_0x55072d,_0x319fdd,_0x38ca3a,_0x461bde,_0x1a135e){const _0x4356c2=_0x364e;Object[_0x4356c2(0xd8)](_0x4a9262,Symbol['toStringTag'],{'value':_0x4356c2(0x7b)});let _0x446dbc=_0x4356c2(0x321),_0x55b77a={},_0x34d797=_0x4356c2(0x25b),_0x52c9d4=0x4e20;function _0x238f3e(_0x2aa9ea){const _0xbafc47=_0x4356c2;return JSON[_0xbafc47(0x23a)](_0x2aa9ea)['length'];}function _0x2b7878(_0x59df66){'@babel/helpers - typeof';const _0x4b0ba3=_0x4356c2;return _0x2b7878=typeof Symbol==_0x4b0ba3(0x1e9)&&typeof Symbol[_0x4b0ba3(0x141)]==_0x4b0ba3(0x2a3)?function(_0x360805){return typeof _0x360805;}:function(_0x3affad){const _0x50d5e5=_0x4b0ba3;return _0x3affad&&typeof Symbol==_0x50d5e5(0x1e9)&&_0x3affad['constructor']===Symbol&&_0x3affad!==Symbol[_0x50d5e5(0x197)]?'symbol':typeof _0x3affad;},_0x2b7878(_0x59df66);}function _0x4167c7(_0x4ed3dd,_0x338294){const _0xf06e5b=_0x4356c2;if(_0x2b7878(_0x4ed3dd)!=_0xf06e5b(0x6b)||!_0x4ed3dd)return _0x4ed3dd;var _0x24c571=_0x4ed3dd[Symbol['toPrimitive']];if(_0x24c571!==void 0x0){var _0x37e1a6=_0x24c571[_0xf06e5b(0x2fe)](_0x4ed3dd,_0x338294||_0xf06e5b(0xcd));if(_0x2b7878(_0x37e1a6)!=_0xf06e5b(0x6b))return _0x37e1a6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x338294==='string'?String:Number)(_0x4ed3dd);}function _0x41963c(_0x5be93f){const _0x67583c=_0x4356c2;var _0x4d642b=_0x4167c7(_0x5be93f,_0x67583c(0x373));return _0x2b7878(_0x4d642b)==_0x67583c(0x2a3)?_0x4d642b:_0x4d642b+'';}function _0x1fdd2e(_0x2b09c3,_0xb6087a,_0x23bb24){return(_0xb6087a=_0x41963c(_0xb6087a))in _0x2b09c3?Object['defineProperty'](_0x2b09c3,_0xb6087a,{'value':_0x23bb24,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b09c3[_0xb6087a]=_0x23bb24,_0x2b09c3;}let _0x52f27e=function(_0x18b2c9){const _0x4dce23=_0x4356c2;return _0x18b2c9[_0x4dce23(0x35f)]=_0x4dce23(0x35f),_0x18b2c9[_0x4dce23(0xa6)]='PERMISSION_DENIED',_0x18b2c9[_0x4dce23(0x2bf)]=_0x4dce23(0x2bf),_0x18b2c9[_0x4dce23(0x28b)]=_0x4dce23(0x28b),_0x18b2c9[_0x4dce23(0x2b3)]='JOIN_ROOM_FAILED',_0x18b2c9['SOCKET_FAILED_RETRY']=_0x4dce23(0x258),_0x18b2c9[_0x4dce23(0x19d)]=_0x4dce23(0x19d),_0x18b2c9['SUBMIT_CHANGESET_TIMEOUT']=_0x4dce23(0xf3),_0x18b2c9;}({});var _0x167cb4=class{constructor(){const _0x465804=_0x4356c2;_0x1fdd2e(this,'_event$',new _0x4f8104[(_0x465804(0x147))]()),_0x1fdd2e(this,'event$',this[_0x465804(0x279)][_0x465804(0x1ff)]());}['emitEvent'](_0x2cc90a){const _0x402077=_0x4356c2;this[_0x402077(0x279)][_0x402077(0x214)](_0x2cc90a);}},_0x294775=class{constructor(){const _0x4e28c7=_0x4356c2;_0x1fdd2e(this,'_commentUpdate$',new _0x4f8104[(_0x4e28c7(0x147))]()),_0x1fdd2e(this,_0x4e28c7(0x38b),this['_commentUpdate$']['asObservable']());}['onCommentUpdate'](_0x55fa9a){const _0x4a6885=_0x4356c2;this['_commentUpdate$'][_0x4a6885(0x214)](_0x55fa9a);}};function _0x9460ae(_0x3a7e25,_0x24aaac){return function(_0xaf4690,_0x29e245){_0x24aaac(_0xaf4690,_0x29e245,_0x3a7e25);};}function _0x223773(_0x43af49,_0x3845ab,_0x3a3a9b,_0xbfbbe7){const _0x1db547=_0x4356c2;var _0x5f19d6=arguments['length'],_0x3bed8f=_0x5f19d6<0x3?_0x3845ab:_0xbfbbe7===null?_0xbfbbe7=Object[_0x1db547(0x27f)](_0x3845ab,_0x3a3a9b):_0xbfbbe7,_0x1d2c0c;if(typeof Reflect==_0x1db547(0x6b)&&typeof Reflect[_0x1db547(0x157)]=='function')_0x3bed8f=Reflect[_0x1db547(0x157)](_0x43af49,_0x3845ab,_0x3a3a9b,_0xbfbbe7);else{for(var _0x418956=_0x43af49[_0x1db547(0x14e)]-0x1;_0x418956>=0x0;_0x418956--)(_0x1d2c0c=_0x43af49[_0x418956])&&(_0x3bed8f=(_0x5f19d6<0x3?_0x1d2c0c(_0x3bed8f):_0x5f19d6>0x3?_0x1d2c0c(_0x3845ab,_0x3a3a9b,_0x3bed8f):_0x1d2c0c(_0x3845ab,_0x3a3a9b))||_0x3bed8f);}return _0x5f19d6>0x3&&_0x3bed8f&&Object[_0x1db547(0xd8)](_0x3845ab,_0x3a3a9b,_0x3bed8f),_0x3bed8f;}let _0x2528bb=class extends _0x186af2['Disposable']{constructor(_0x330501,_0x1979d8){const _0x3f9916=_0x4356c2;super(),this[_0x3f9916(0x129)]=_0x330501,this['_userManagerService']=_0x1979d8,_0x1fdd2e(this,_0x3f9916(0x334),new Map()),_0x1fdd2e(this,_0x3f9916(0xce),new _0x4f8104[(_0x3f9916(0x147))]()),this[_0x3f9916(0xa5)]((0x0,_0x4f8104[_0x3f9916(0x14d)])(this['_univerInstanceService'][_0x3f9916(0x1ca)](_0x186af2[_0x3f9916(0xe6)][_0x3f9916(0x2c0)])['pipe']((0x0,_0x55072d['map'])(_0x11f371=>_0x11f371[_0x3f9916(0x15f)]())),this[_0x3f9916(0x129)][_0x3f9916(0x1ca)](_0x186af2['UniverInstanceType']['UNIVER_DOC'])[_0x3f9916(0xc2)]((0x0,_0x55072d[_0x3f9916(0xff)])(_0x570e67=>_0x570e67[_0x3f9916(0x15f)]())),this[_0x3f9916(0x129)]['getTypeOfUnitDisposed$'](_0x186af2[_0x3f9916(0xe6)][_0x3f9916(0x32f)])[_0x3f9916(0xc2)]((0x0,_0x55072d[_0x3f9916(0xff)])(_0x4798d1=>_0x4798d1[_0x3f9916(0x15f)]())))[_0x3f9916(0x1fe)](_0x5c8703=>this[_0x3f9916(0x239)](_0x5c8703)));}[_0x4356c2(0x331)](_0x26fbf3){const _0x1d66d2=_0x4356c2;return this[_0x1d66d2(0x334)][_0x1d66d2(0x14f)](_0x26fbf3)?(0x0,_0x4f8104['of'])(this[_0x1d66d2(0x334)][_0x1d66d2(0x217)](_0x26fbf3)):this['_roomCreated$'][_0x1d66d2(0xc2)]((0x0,_0x55072d[_0x1d66d2(0xff)])(_0x77626c=>{const _0x552ac2=_0x1d66d2;if(_0x77626c===_0x26fbf3)return this[_0x552ac2(0x334)][_0x552ac2(0x217)](_0x77626c);}));}['setCurrentUser'](_0x34347e){const _0x50ba9c=_0x4356c2;this['_userManagerService'][_0x50ba9c(0x2a0)](_0x34347e);}[_0x4356c2(0x36b)](){const _0x213267=_0x4356c2;return this[_0x213267(0x18b)]['getCurrentUser']();}[_0x4356c2(0x207)](_0x370115,_0x319624){const _0x5e8bb=_0x4356c2;let _0x5a541a=this[_0x5e8bb(0x334)][_0x5e8bb(0x217)](_0x370115);_0x5a541a||(_0x5a541a=new _0x5a53f7(),this[_0x5e8bb(0x334)][_0x5e8bb(0x25f)](_0x370115,_0x5a541a),this[_0x5e8bb(0xce)][_0x5e8bb(0x214)](_0x370115)),_0x5a541a[_0x5e8bb(0x207)](_0x319624);}['removeMember'](_0x119bc4,_0x97ca3){const _0x567d69=_0x4356c2;let _0x1134d2=this[_0x567d69(0x334)]['get'](_0x119bc4);_0x1134d2&&_0x1134d2[_0x567d69(0x16e)](_0x97ca3);}['getRoom'](_0x33798b){const _0x259cb3=_0x4356c2;return this[_0x259cb3(0x334)]['get'](_0x33798b);}['getMember'](_0x10897c,_0x38f61d){const _0x565ef9=_0x4356c2;let _0x35255c=this[_0x565ef9(0x334)]['get'](_0x10897c);if(_0x35255c)return _0x35255c['getMember'](_0x38f61d);}['_removeRoom'](_0x163ee2){let _0xf0f0e5=this['_roomMembers']['get'](_0x163ee2);_0xf0f0e5&&(_0xf0f0e5['dispose'](),this['_roomMembers']['delete'](_0x163ee2));}[_0x4356c2(0x2f7)](){const _0x5e7713=_0x4356c2;this['_roomMembers']['forEach'](_0x1640e9=>_0x1640e9[_0x5e7713(0x2f7)]()),this['_roomMembers'][_0x5e7713(0x1f1)](),this[_0x5e7713(0xce)][_0x5e7713(0x2e6)]();}};_0x2528bb=_0x223773([_0x9460ae(0x0,_0x186af2[_0x4356c2(0x20c)]),_0x9460ae(0x1,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x2f4)]))],_0x2528bb);var _0x5a53f7=class extends _0x186af2[_0x4356c2(0x310)]{constructor(..._0x11f21c){const _0x2601db=_0x4356c2;super(..._0x11f21c),_0x1fdd2e(this,_0x2601db(0x2bb),new Map()),_0x1fdd2e(this,_0x2601db(0xe0),new _0x4f8104[(_0x2601db(0x195))](this[_0x2601db(0x2bb)])),_0x1fdd2e(this,_0x2601db(0x241),this['_members$'][_0x2601db(0x1ff)]());}['dispose'](){const _0x310a12=_0x4356c2;this['_members'][_0x310a12(0x1f1)](),this['_members$']['complete']();}[_0x4356c2(0x207)](_0x246228){const _0x20de55=_0x4356c2;this[_0x20de55(0x2bb)]['set'](_0x246228[_0x20de55(0x2ba)],_0x246228),this[_0x20de55(0x31d)]();}['removeMember'](_0x1cb408){const _0x4b0d7c=_0x4356c2;this[_0x4b0d7c(0x2bb)][_0x4b0d7c(0x2d9)](_0x1cb408),this[_0x4b0d7c(0x31d)]();}[_0x4356c2(0x29c)](_0x5dfb63){const _0x295388=_0x4356c2;return this[_0x295388(0x2bb)]['get'](_0x5dfb63);}[_0x4356c2(0x75)](){const _0x550e91=_0x4356c2;return Array[_0x550e91(0x2ea)](this[_0x550e91(0x2bb)][_0x550e91(0x394)]());}[_0x4356c2(0x31d)](){const _0x4fbaf8=_0x4356c2;this['_members$'][_0x4fbaf8(0x214)](this[_0x4fbaf8(0x2bb)]);}};let _0x35784d=function(_0x4222fa){const _0x3c55dc=_0x4356c2;return _0x4222fa[_0x4222fa[_0x3c55dc(0x1b4)]=0x0]='IDLE',_0x4222fa[_0x4222fa[_0x3c55dc(0x282)]=0x1]='JOINING',_0x4222fa[_0x4222fa['OFFLINE']=0x2]=_0x3c55dc(0x2e7),_0x4222fa[_0x4222fa[_0x3c55dc(0x171)]=0x3]=_0x3c55dc(0x171),_0x4222fa;}({}),_0x3df99c={[_0x53d7dd['CmdRspCode'][_0x4356c2(0x22f)]]:_0x4356c2(0x29a),[_0x53d7dd[_0x4356c2(0x169)][_0x4356c2(0x12a)]]:'session.room-full',[_0x53d7dd[_0x4356c2(0x169)]['JOIN_ROOM_NOT_EXISTS']]:_0x4356c2(0x127),[_0x53d7dd[_0x4356c2(0x169)][_0x4356c2(0x23e)]]:'session.room-permission-denied',[_0x53d7dd[_0x4356c2(0x169)][_0x4356c2(0x2d8)]]:'session.room-cnt-exceeds'},_0x5a1406=class extends _0x186af2['RxDisposable']{get['sessionStatus'](){const _0x5f30f0=_0x4356c2;return this[_0x5f30f0(0x330)]['getValue']();}constructor(_0x469f45,_0x8ff41f,_0x151e13,_0x28aa8b,_0x2593bc,_0x9d9f29,_0x1f6310,_0x18f1d8){const _0x4cbc3d=_0x4356c2;super(),this[_0x4cbc3d(0x1e5)]=_0x469f45,this[_0x4cbc3d(0x89)]=_0x151e13,this[_0x4cbc3d(0x150)]=_0x28aa8b,this[_0x4cbc3d(0x18d)]=_0x2593bc,this[_0x4cbc3d(0x2ce)]=_0x9d9f29,this['_collaborationUIEventService']=_0x1f6310,this['_telemetryService']=_0x18f1d8,_0x1fdd2e(this,_0x4cbc3d(0x330),new _0x4f8104[(_0x4cbc3d(0x195))](0x0)),_0x1fdd2e(this,_0x4cbc3d(0x185),this[_0x4cbc3d(0x330)]['asObservable']()),_0x1fdd2e(this,_0x4cbc3d(0x279),new _0x4f8104[(_0x4cbc3d(0x147))]()),_0x1fdd2e(this,_0x4cbc3d(0x21d),this[_0x4cbc3d(0x279)][_0x4cbc3d(0x1ff)]()),_0x1fdd2e(this,_0x4cbc3d(0x26b),void 0x0),_0x1fdd2e(this,_0x4cbc3d(0xd3),void 0x0),_0x1fdd2e(this,_0x4cbc3d(0xc0),void 0x0),_0x1fdd2e(this,'_shouldReportTelemetry',!0x1),_0x1fdd2e(this,'_telemetryInfo',null),this[_0x4cbc3d(0x10f)]=!!this[_0x4cbc3d(0xab)],_0x8ff41f[_0x4cbc3d(0xc2)]((0x0,_0x4f8104[_0x4cbc3d(0x315)])(this[_0x4cbc3d(0x345)]))[_0x4cbc3d(0x1fe)](_0x7ad08f=>{const _0x3fe857=_0x4cbc3d;if(_0x7ad08f!==void 0x0){if(this[_0x3fe857(0x26b)]=_0x7ad08f,_0x7ad08f)this['_joinRoom'](_0x7ad08f),this[_0x3fe857(0xd3)]=_0x7ad08f[_0x3fe857(0x187)][_0x3fe857(0x1fe)](_0x54d75d=>{const _0x158f74=_0x3fe857;_0x54d75d[_0x158f74(0x34c)]===this[_0x158f74(0x1e5)]&&this[_0x158f74(0x130)](_0x54d75d);});else{var _0x20c7e7;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x3fe857(0x330)][_0x3fe857(0x214)](0x2),(_0x20c7e7=this[_0x3fe857(0xd3)])==null||_0x20c7e7[_0x3fe857(0x361)](),this[_0x3fe857(0xd3)]=null;}}});}['getMemberID'](){const _0x137604=_0x4356c2;var _0x1c0791,_0x55f84f;return(_0x1c0791=(_0x55f84f=this[_0x137604(0x26b)])==null?void 0x0:_0x55f84f[_0x137604(0x2ba)])==null?null:_0x1c0791;}['dispose'](){const _0x31d369=_0x4356c2;super[_0x31d369(0x2f7)](),this[_0x31d369(0x223)](),this[_0x31d369(0x345)][_0x31d369(0x214)](),this['dispose$'][_0x31d369(0x2e6)]();}[_0x4356c2(0x223)](){const _0x46bcad=_0x4356c2;var _0x14dfa5,_0x5ab07c;this['_throwTelemetryCollaborationNewChangeset'](),(_0x14dfa5=this[_0x46bcad(0x26b)])==null||_0x14dfa5[_0x46bcad(0x31e)]({'cmd':_0x53d7dd[_0x46bcad(0x35c)]['LEAVE'],'data':{'roomID':this[_0x46bcad(0x1e5)]}}),(_0x5ab07c=this[_0x46bcad(0x26b)])==null||_0x5ab07c['close'](),this[_0x46bcad(0x279)][_0x46bcad(0x2e6)](),this[_0x46bcad(0x330)][_0x46bcad(0x2e6)]();}[_0x4356c2(0x130)](_0x36d6d8){const _0x4214e2=_0x4356c2;_0x36d6d8[_0x4214e2(0x16f)]===_0x53d7dd[_0x4214e2(0x35c)][_0x4214e2(0xe8)]?this[_0x4214e2(0x131)](_0x36d6d8):_0x36d6d8['cmd']===_0x53d7dd[_0x4214e2(0x35c)][_0x4214e2(0x211)]&&this['_onRecvEvent'](_0x36d6d8);}[_0x4356c2(0x29b)](_0x2f8a80){const _0x56c6a1=_0x4356c2;this[_0x56c6a1(0x330)][_0x56c6a1(0x214)](0x1),_0x2f8a80[_0x56c6a1(0x31e)]({'cmd':_0x53d7dd[_0x56c6a1(0x35c)][_0x56c6a1(0xe8)],'routeKey':this[_0x56c6a1(0x1e5)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x21f073){const _0x451d87=_0x4356c2;var _0x36b3ef;if(_0x21f073[_0x451d87(0x193)]in _0x3df99c){this['_collaborationUIEventService']['emitEvent']({'id':_0x451d87(0x2b3),'data':_0x3df99c[_0x21f073['code']]}),this[_0x451d87(0x330)][_0x451d87(0x214)](0x2);return;}this[_0x451d87(0x330)]['next'](0x3);let _0x1ffecc=(_0x36b3ef=_0x21f073[_0x451d87(0x244)][_0x451d87(0x283)][this[_0x451d87(0x1e5)]])==null?void 0x0:_0x36b3ef[_0x451d87(0x33c)];_0x1ffecc&&_0x1ffecc[_0x451d87(0xc1)](_0x2aa18f=>this[_0x451d87(0x18d)][_0x451d87(0x207)](this['_unitID'],_0x2aa18f));}[_0x4356c2(0x26d)](_0x1e4006){const _0x5ad0b0=_0x4356c2;try{let _0x305e95=_0x1e4006['data'];switch(_0x305e95[_0x5ad0b0(0x2ed)]){case _0x164f11[_0x5ad0b0(0x1f7)][_0x5ad0b0(0x7a)]:this[_0x5ad0b0(0x305)](_0x305e95),this[_0x5ad0b0(0x279)][_0x5ad0b0(0x214)](_0x305e95);break;case _0x164f11[_0x5ad0b0(0x1f7)]['USERS_LEAVE']:this[_0x5ad0b0(0xd7)](_0x305e95),this[_0x5ad0b0(0x279)][_0x5ad0b0(0x214)](_0x305e95);break;case _0x164f11[_0x5ad0b0(0x1f7)][_0x5ad0b0(0x375)]:case _0x164f11['CollaborationEvent'][_0x5ad0b0(0x8d)]:this[_0x5ad0b0(0x6f)](),this[_0x5ad0b0(0x2eb)](),this['_event$']['next'](_0x305e95);break;case _0x164f11[_0x5ad0b0(0x1f7)][_0x5ad0b0(0x295)]:this[_0x5ad0b0(0x89)]['error'](_0x5ad0b0(0x349)+JSON[_0x5ad0b0(0x23a)](_0x305e95)),this[_0x5ad0b0(0x279)][_0x5ad0b0(0x214)](_0x305e95);break;case _0x164f11[_0x5ad0b0(0x1f7)][_0x5ad0b0(0xb1)]:this['_commentService'][_0x5ad0b0(0x1c6)](_0x305e95[_0x5ad0b0(0x244)]),this[_0x5ad0b0(0x279)][_0x5ad0b0(0x214)](_0x305e95);break;default:this[_0x5ad0b0(0x279)]['next'](_0x305e95);}}catch(_0x496885){this[_0x5ad0b0(0x89)][_0x5ad0b0(0x16b)](_0x496885,_0x1e4006);}}[_0x4356c2(0x305)](_0x115ff7){const _0x83b994=_0x4356c2;this[_0x83b994(0x18d)][_0x83b994(0x207)](this['_unitID'],_0x115ff7[_0x83b994(0x244)]);}[_0x4356c2(0xd7)](_0x3b3bcc){const _0x5a7859=_0x4356c2;this[_0x5a7859(0x18d)]['removeMember'](this[_0x5a7859(0x1e5)],_0x3b3bcc[_0x5a7859(0x244)][_0x5a7859(0x2ba)]);}async[_0x4356c2(0x31e)](_0x4004f0,_0x1a222a){const _0x418fc7=_0x4356c2;if(this['sessionStatus']!==0x3||!this[_0x418fc7(0x26b)])throw Error(_0x418fc7(0x272));try{_0x4004f0[_0x418fc7(0x2ed)]===_0x164f11[_0x418fc7(0x1f7)][_0x418fc7(0xfd)]&&(this[_0x418fc7(0x199)](),this[_0x418fc7(0x2b0)](_0x4004f0)),this[_0x418fc7(0x26b)]['send']({'cmd':_0x53d7dd[_0x418fc7(0x35c)][_0x418fc7(0x158)],'routeKey':_0x1a222a,'routeType':'','data':_0x4004f0});}catch(_0xa280cf){this[_0x418fc7(0x89)][_0x418fc7(0x16b)](_0xa280cf);}}[_0x4356c2(0x199)](){const _0x30f3fa=_0x4356c2;var _0x1ab5e1;this[_0x30f3fa(0xc0)]=setTimeout(()=>{const _0x32e9d2=_0x30f3fa;this[_0x32e9d2(0xc0)]=null,this[_0x32e9d2(0x255)][_0x32e9d2(0x27e)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x1ab5e1=this[_0x30f3fa(0x150)]['getConfig'](_0x30f3fa(0x2bc)))==null?_0x52c9d4:_0x1ab5e1);}[_0x4356c2(0x2eb)](){const _0x7a1da4=_0x4356c2;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x7a1da4(0xc0)]),this[_0x7a1da4(0xc0)]=null);}[_0x4356c2(0x2b0)](_0x2d98b4){const _0x54a434=_0x4356c2;if(!this['_shouldReportTelemetry'])return;let {data:_0x558fcb}=_0x2d98b4,{unitID:_0xe58c17,changeset:_0x1261b0}=_0x558fcb,{mutations:_0x4b6b5d,type:_0x2fd7c5}=_0x1261b0;this['_telemetryInfo']={'unitId':_0xe58c17,'type':_0x2fd7c5,'startTime':performance[_0x54a434(0x36f)](),'stopTime':0x0,'duration':0x0,'size':_0x238f3e(_0x4b6b5d)};}[_0x4356c2(0x6f)](){const _0x2f2f3b=_0x4356c2;if(this['_shouldReportTelemetry']){if(!this[_0x2f2f3b(0x362)]){this[_0x2f2f3b(0x89)][_0x2f2f3b(0x16b)]('[CollaborationSession]',_0x2f2f3b(0x337));return;}this[_0x2f2f3b(0x362)][_0x2f2f3b(0x370)]=performance[_0x2f2f3b(0x36f)](),this[_0x2f2f3b(0x362)][_0x2f2f3b(0x181)]=this[_0x2f2f3b(0x362)][_0x2f2f3b(0x370)]-this[_0x2f2f3b(0x362)][_0x2f2f3b(0x286)],this[_0x2f2f3b(0xab)][_0x2f2f3b(0x2cb)](_0x2f2f3b(0x30d),this[_0x2f2f3b(0x362)]),this[_0x2f2f3b(0x362)]=null;}}[_0x4356c2(0x365)](){const _0x4e4e5c=_0x4356c2;this[_0x4e4e5c(0x362)]=null;}};_0x5a1406=_0x223773([_0x9460ae(0x2,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0x3,_0x186af2[_0x4356c2(0x2cd)]),_0x9460ae(0x4,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x2528bb)),_0x9460ae(0x5,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x294775)),_0x9460ae(0x6,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x167cb4)),_0x9460ae(0x7,(0x0,_0x186af2['Optional'])(_0x44c977[_0x4356c2(0x1bd)]))],_0x5a1406);let _0x42a910=(0x0,_0x186af2[_0x4356c2(0x163)])(_0x4356c2(0x107));function _0x3ea2f7(_0x2bad2d){const _0x39f3aa=_0x4356c2;return _0x39f3aa(0x24a)+_0x2bad2d;}function _0x570497(_0xd03941){const _0x44f539=_0x4356c2;let {unitID:_0x56e60a,mutations:_0x4e03a5}=_0xd03941;return{'unitId':_0x56e60a,'subUnitId':_0x4e03a5[_0x44f539(0x14e)]>0x0?_0x4e03a5[0x0][_0x44f539(0x32d)]['subUnitId']:null};}let _0x262e41=class{constructor(_0x208d49,_0x58d644,_0x1b007e){const _0x3c82e0=_0x4356c2;this[_0x3c82e0(0x31b)]=_0x208d49,this[_0x3c82e0(0x390)]=_0x58d644,this[_0x3c82e0(0xd4)]=_0x1b007e;}[_0x4356c2(0x392)](_0x254339){const _0x5b726f=_0x4356c2;var _0x384c3c,_0x3c6f66;let _0x3ecb5d=this[_0x5b726f(0x31b)][_0x5b726f(0x217)](_0x19a0d0[_0x5b726f(0xdf)]),{unitId:_0x1f6197,subUnitId:_0x492f93}=_0x570497(_0x254339),_0xd0157b=_0x3ecb5d==null?void 0x0:_0x3ecb5d['getWorkbookSelections'](_0x1f6197)[_0x5b726f(0x1fa)](),_0x8f1664=(_0x384c3c=this['_instanceService'][_0x5b726f(0x1b1)](_0x1f6197))==null||(_0x384c3c=_0x384c3c[_0x5b726f(0x230)]())==null?void 0x0:_0x384c3c[_0x5b726f(0x248)]();if(_0xd0157b[_0x5b726f(0x14e)]===0x0||!_0x1f6197||!_0x492f93)return;let _0xe68538=[{'id':_0x19a0d0[_0x5b726f(0x96)]['id'],'params':{'unitId':_0x1f6197,'subUnitId':_0x8f1664,'selections':_0x186af2[_0x5b726f(0x32e)]['deepClone'](_0xd0157b)}}],_0x2bf0de=this[_0x5b726f(0x390)][_0x5b726f(0xdc)](_0x254339,_0xe68538);if(!(0x0,_0x164f11[_0x5b726f(0x2bd)])(_0x2bf0de))throw _0x2bf0de['error'];let _0x3ab3c8=(_0x3c6f66=_0x2bf0de[_0x5b726f(0xd0)][0x0])==null||(_0x3c6f66=_0x3c6f66['params'])==null?void 0x0:_0x3c6f66[_0x5b726f(0x280)];if(Array[_0x5b726f(0x2ee)](_0x3ab3c8)&&_0x3ab3c8[_0x5b726f(0x14e)]){if(_0x3ab3c8[_0x5b726f(0x14e)]===_0xe68538[0x0][_0x5b726f(0x32d)][_0x5b726f(0x280)][_0x5b726f(0x14e)]&&_0x3ab3c8[_0x5b726f(0x182)]((_0x3c0595,_0xfba05c)=>_0x186af2[_0x5b726f(0x17c)][_0x5b726f(0x11a)](_0x3c0595[_0x5b726f(0x1e2)],_0xe68538[0x0][_0x5b726f(0x32d)][_0x5b726f(0x280)][_0xfba05c][_0x5b726f(0x1e2)])))return;this['_injector'][_0x5b726f(0x217)](_0x186af2['ICommandService'])[_0x5b726f(0xb3)](_0x19a0d0['SetSelectionsOperation']['id'],{'unitId':_0x1f6197,'subUnitId':_0x8f1664,'selections':_0x3ab3c8});}}};_0x262e41=_0x223773([_0x9460ae(0x0,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x1,_0x164f11[_0x4356c2(0xbf)]),_0x9460ae(0x2,_0x186af2[_0x4356c2(0x20c)])],_0x262e41);let _0x3348a1=(0x0,_0x186af2[_0x4356c2(0x163)])('univer-pro.collaboration-client.single-active-unit-service'),_0x54ef51=function(_0x5576ea){const _0x3b7f15=_0x4356c2;return _0x5576ea[_0x5576ea[_0x3b7f15(0x140)]=0x0]=_0x3b7f15(0x140),_0x5576ea[_0x5576ea[_0x3b7f15(0x2ef)]=0x1]=_0x3b7f15(0x2ef),_0x5576ea;}({});function _0x15ef18(_0x2bda59){const _0x32a2b7=_0x4356c2;var _0x4bc111;return!!((_0x4bc111=_0x2bda59[_0x32a2b7(0x32d)])!=null&&_0x4bc111['__splitChunk__']);}let _0x5dddfc=new Set([_0x19a0d0[_0x4356c2(0x1c4)]['id']]),_0x3a489a=new Set([_0x319fdd[_0x4356c2(0x27d)]['id'],_0x319fdd[_0x4356c2(0x194)]['id'],_0x319fdd[_0x4356c2(0x18f)]['id'],_0x319fdd['RemoveSlidePageMutation']['id']]);function _0x3476ed(_0x45f58d,_0x3e762d=_0x5dddfc){const _0x5f117c=_0x4356c2;let _0x896942=[];for(let _0x555fb3 of _0x45f58d){if(_0x3e762d[_0x5f117c(0x14f)](_0x555fb3['id'])){if(_0x896942[_0x5f117c(0x14e)]>0x0)break;_0x896942['push'](_0x555fb3);break;}if(_0x15ef18(_0x555fb3)){if(_0x896942[_0x5f117c(0x14e)]>0x0)break;_0x896942[_0x5f117c(0x265)](_0x555fb3);break;}_0x896942[_0x5f117c(0x265)](_0x555fb3);}return _0x896942;}function _0x1a0cde(_0x14172e,_0x4472f5,_0x397978,_0x2d3abf,_0x109d42){const _0x189ced=_0x4356c2;var _0x510a6c,_0x47a86b,_0x366192,_0x44453a;let _0x155820=_0x3476ed(_0x14172e),_0x4eb149=(_0x510a6c=(_0x47a86b=_0x109d42[_0x189ced(0x36b)]())==null?void 0x0:_0x47a86b['userID'])==null?_0x189ced(0x15c):_0x510a6c,_0x2162eb=(_0x366192=(_0x44453a=_0x109d42[_0x189ced(0x36b)]())==null?void 0x0:_0x44453a['memberID'])==null?'unknown':_0x366192;return{'changeset':{'unitID':_0x4472f5,'type':(0x0,_0x164f11[_0x189ced(0x17d)])(_0x397978[_0x189ced(0x391)](_0x4472f5)),'baseRev':_0x2d3abf['getCurrentRevOfUnit'](_0x4472f5),'revision':0x0,'userID':_0x4eb149,'memberID':_0x2162eb,'mutations':_0x155820},'pendingMutations':_0x14172e['slice'](_0x155820[_0x189ced(0x14e)])};}let _0x277cff=_0x1a0cde;function _0x11f706(_0x3dd849,_0xa891ee,_0x55e280,_0x2f40c3,_0x28064f){return _0x1a0cde(_0x3dd849,_0xa891ee,_0x55e280,_0x2f40c3,_0x28064f);}function _0x29f26b(_0x1ee558,_0x5699f3,_0x5a46a1,_0x21e81a,_0x513e7d){const _0x555934=_0x4356c2;var _0x4653b3,_0x39f494,_0x1b242a,_0x1519f0;let _0x33fa77=_0x3476ed(_0x1ee558,_0x3a489a),_0xd42ab2=(_0x4653b3=(_0x39f494=_0x513e7d[_0x555934(0x36b)]())==null?void 0x0:_0x39f494['userID'])==null?_0x555934(0x15c):_0x4653b3,_0x4bc688=(_0x1b242a=(_0x1519f0=_0x513e7d['getCurrentUser']())==null?void 0x0:_0x1519f0[_0x555934(0x2ba)])==null?_0x555934(0x15c):_0x1b242a;return{'changeset':{'unitID':_0x5699f3,'type':(0x0,_0x164f11[_0x555934(0x17d)])(_0x5a46a1['getUnitType'](_0x5699f3)),'baseRev':_0x21e81a[_0x555934(0xb0)](_0x5699f3),'revision':0x0,'userID':_0xd42ab2,'memberID':_0x4bc688,'mutations':_0x33fa77},'pendingMutations':_0x1ee558[_0x555934(0x250)](_0x33fa77[_0x555934(0x14e)])};}function _0x3ed1c4(_0xacd335,_0x53a415,_0x48ce96,_0xacb0fa,_0x49fb0e){const _0x1015cc=_0x4356c2;var _0x219cd4,_0x1a90a3,_0x701008,_0x47b91b;let _0x3cd031=_0xacd335[_0x1015cc(0x16c)]((_0x47da36,_0x53173f)=>{const _0x29b08a=_0x1015cc;let _0x4a33a5=_0x47da36[_0x47da36[_0x29b08a(0x14e)]-0x1],{id:_0x4d557b}=_0x4a33a5==null?{}:_0x4a33a5,{id:_0x419c35,type:_0xf03038}=_0x53173f,_0xb1c6e7=_0x53173f[_0x29b08a(0x32d)];if(_0x4d557b&&_0x4d557b!==_0x419c35)throw Error(_0x29b08a(0x11b)+_0x4d557b+_0x29b08a(0x24d)+_0x419c35+'.');if(!_0x4a33a5)return[{'id':_0x419c35,'type':_0xf03038,'params':{'unitId':_0xb1c6e7[_0x29b08a(0x10e)],'textRanges':_0xb1c6e7[_0x29b08a(0x1a7)],'actions':_0xb1c6e7[_0x29b08a(0x2d5)]}}];let _0x49d9eb=_0x4a33a5[_0x29b08a(0x32d)];return _0x49793e(_0x49d9eb[_0x29b08a(0x2d5)],_0xb1c6e7[_0x29b08a(0x2d5)])?[..._0x47da36[_0x29b08a(0x250)](0x0,-0x1),{..._0x4a33a5,'id':_0x419c35,'type':_0xf03038,'params':{'unitId':_0xb1c6e7[_0x29b08a(0x10e)],'textRanges':_0xb1c6e7['textRanges'],'actions':_0x186af2[_0x29b08a(0x30c)][_0x29b08a(0x78)](_0x49d9eb[_0x29b08a(0x2d5)],_0xb1c6e7[_0x29b08a(0x2d5)])}}]:[..._0x47da36,{'id':_0x419c35,'type':_0xf03038,'params':{'unitId':_0xb1c6e7['unitId'],'textRanges':_0xb1c6e7[_0x29b08a(0x1a7)],'actions':_0xb1c6e7[_0x29b08a(0x2d5)]}}];},[]),_0x269f78=(_0x219cd4=(_0x1a90a3=_0x49fb0e[_0x1015cc(0x36b)]())==null?void 0x0:_0x1a90a3[_0x1015cc(0x128)])==null?'unknown':_0x219cd4,_0x483853=(_0x701008=(_0x47b91b=_0x49fb0e['getCurrentUser']())==null?void 0x0:_0x47b91b['memberID'])==null?'unknown':_0x701008;return{'changeset':{'unitID':_0x53a415,'type':(0x0,_0x164f11[_0x1015cc(0x17d)])(_0x48ce96['getUnitType'](_0x53a415)),'baseRev':_0xacb0fa[_0x1015cc(0xb0)](_0x53a415),'revision':0x0,'userID':_0x269f78,'memberID':_0x483853,'mutations':_0x3cd031},'pendingMutations':_0xacd335[_0x1015cc(0x250)](_0xacd335['length'])};}function _0x49793e(_0x43d8c0,_0x398971){return _0x591d35(_0x43d8c0)&&_0x591d35(_0x398971)&&!_0xf21965(_0x43d8c0)&&!_0xf21965(_0x398971);}function _0x591d35(_0x1a8f91){const _0x55d6e9=_0x4356c2;return _0x4366c2(_0x1a8f91)[_0x55d6e9(0x342)](_0x32d378=>_0x2713e8(_0x32d378)&&_0x32d378['et']===_0x55d6e9(0x356));}function _0xf21965(_0xea8b51){const _0x7f732b=_0x4356c2;return _0x4366c2(_0xea8b51)[_0x7f732b(0x342)](_0xd19ea6=>Array[_0x7f732b(0x2ee)](_0xd19ea6)||typeof _0xd19ea6=='string'||typeof _0xd19ea6==_0x7f732b(0x1da));}function _0x4366c2(_0xfb1bdd){const _0x420fdb=_0x4356c2;if(!Array[_0x420fdb(0x2ee)](_0xfb1bdd))return[];let _0x990b07=_0xfb1bdd[_0x420fdb(0x111)](_0x420fdb(0x9d))?_0xfb1bdd:_0xfb1bdd[_0x420fdb(0x369)](_0x227b9c=>Array['isArray'](_0x227b9c)&&_0x227b9c[_0x420fdb(0x111)](_0x420fdb(0x9d)));if(!Array[_0x420fdb(0x2ee)](_0x990b07))return[];let _0x493a25=_0x990b07[_0x420fdb(0x2a5)](_0x420fdb(0x9d));return _0x493a25===-0x1?[]:_0x990b07[_0x420fdb(0x250)](_0x493a25+0x1);}function _0x2713e8(_0x282bbe){const _0xe4f635=_0x4356c2;return typeof _0x282bbe==_0xe4f635(0x6b)&&!!_0x282bbe&&!Array[_0xe4f635(0x2ee)](_0x282bbe);}function _0xbebd0c(_0x219680,_0x3e5a1a){const _0x5e6101=_0x4356c2;let _0x2c1b40=new _0x4f8104[(_0x5e6101(0x2b9))](0x1);return setTimeout(()=>_0x2c1b40[_0x5e6101(0x214)](_0x3e5a1a),_0x219680),_0x2c1b40[_0x5e6101(0x1ff)]()[_0x5e6101(0xc2)]((0x0,_0x4f8104[_0x5e6101(0x180)])(0x1));}var _0x6f6d65,_0x28c0d7,_0x25dc56;let _0x52ffab=function(_0x343912){const _0x4f263=_0x4356c2;return _0x343912[_0x4f263(0x259)]=_0x4f263(0xaa),_0x343912[_0x4f263(0xd9)]=_0x4f263(0x13c),_0x343912[_0x4f263(0x145)]=_0x4f263(0x35e),_0x343912[_0x4f263(0x34a)]=_0x4f263(0x278),_0x343912['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x343912[_0x4f263(0x318)]=_0x4f263(0x300),_0x343912['CONFLICT']=_0x4f263(0x335),_0x343912[_0x4f263(0x2e7)]=_0x4f263(0x1ed),_0x343912;}({}),_0x231dcc=0x4e20,_0x1b588d=0x2bf20;var _0x3529cd=class{constructor(_0x280236,_0x4bfe32,_0x2e7fbe,_0x42281e,_0x1c59fc,_0x38fbe9,_0x533e25,_0x327652,_0x3fe661){const _0x1173e7=_0x4356c2;this[_0x1173e7(0x2e0)]=_0x280236,this[_0x1173e7(0x306)]=_0x4bfe32,this['_handler']=_0x1c59fc,this[_0x1173e7(0x213)]=_0x38fbe9,this[_0x1173e7(0x17e)]=_0x533e25,this['_revisionService']=_0x327652,this[_0x1173e7(0x2a4)]=_0x3fe661,_0x1fdd2e(this,_0x1173e7(0x240),null),_0x1fdd2e(this,_0x1173e7(0x1a4),[]),this[_0x1173e7(0x240)]=_0x2e7fbe,this['_pendingMutations']=_0x42281e;}[_0x4356c2(0x1e1)](_0xee8c30){const _0xf08000=_0x4356c2;let _0x4b3354=this[_0xf08000(0x9b)]['getCurrentRevOfUnit'](this[_0xf08000(0x2e0)]);return _0xee8c30[_0xf08000(0x1e0)]>_0x4b3354+0x1?(this[_0xf08000(0xee)]['onMissingChangesets']({'from':_0x4b3354,'to':_0xee8c30[_0xf08000(0x1e0)]-0x1}),!0x0):!0x1;}[_0x4356c2(0x1c8)](_0x5a8cea){const _0x8fc518=_0x4356c2;this['_undoRedoService'][_0x8fc518(0xb9)](this['unitID'],_0x5a8cea);}['_transformSelections'](_0x13e77d){const _0x21a6cf=_0x4356c2;var _0x524b85,_0x10d8c5;(_0x524b85=(_0x10d8c5=this[_0x21a6cf(0xee)])[_0x21a6cf(0x222)])==null||_0x524b85[_0x21a6cf(0x2fe)](_0x10d8c5,_0x13e77d);}['_transformIMECache'](_0x3df2ba){const _0x1a889f=_0x4356c2;var _0x10dbe8,_0x585c3f;return(_0x10dbe8=(_0x585c3f=this[_0x1a889f(0xee)])[_0x1a889f(0x1c0)])==null?void 0x0:_0x10dbe8['call'](_0x585c3f,_0x3df2ba);}['_transformStateCache'](_0x46aaa0){const _0x3008b8=_0x4356c2;var _0x4526eb,_0x426e5c;return(_0x4526eb=(_0x426e5c=this['_handler'])[_0x3008b8(0x37f)])==null?void 0x0:_0x4526eb['call'](_0x426e5c,_0x46aaa0);}[_0x4356c2(0x363)](_0xb485c3){const _0x47c8a=_0x4356c2;var _0x10b92a,_0x91f2bb,_0x263053;return(_0x10b92a=(_0x91f2bb=(_0x263053=this[_0x47c8a(0xee)])[_0x47c8a(0x2b1)])==null?void 0x0:_0x91f2bb['call'](_0x263053,_0xb485c3))==null?_0xb485c3:_0x10b92a;}[_0x4356c2(0xf0)](_0x5d34e7){const _0x101f72=_0x4356c2;var _0x43c1b7,_0x591b8b,_0x1943b2;return(_0x43c1b7=(_0x591b8b=(_0x1943b2=this[_0x101f72(0xee)])[_0x101f72(0xcf)])==null?void 0x0:_0x591b8b['call'](_0x1943b2,_0x5d34e7))==null?_0x5d34e7:_0x43c1b7;}[_0x4356c2(0x28c)](_0x4ec2bf){const _0x50e87a=_0x4356c2;if(this[_0x50e87a(0x306)]===_0x186af2['UniverInstanceType'][_0x50e87a(0x1cf)]){let {unitID:_0x1f195a,mutations:_0x124997,memberID:_0x1ab12c}=_0x4ec2bf,_0x28dd57=_0x124997[_0x50e87a(0x14e)]>0x0?_0x124997[0x0]['params'][_0x50e87a(0x1a7)]:[];if(Array['isArray'](_0x28dd57)&&_0x28dd57[_0x50e87a(0x14e)]>0x0){var _0x22ccb1,_0x366b96;(_0x22ccb1=(_0x366b96=this[_0x50e87a(0xee)])[_0x50e87a(0x85)])==null||_0x22ccb1[_0x50e87a(0x2fe)](_0x366b96,{'unitID':_0x1f195a,'memberID':_0x1ab12c,'textRanges':_0x28dd57});}}}[_0x4356c2(0x1f4)](){const _0x153d63=_0x4356c2;var _0x3c285d;(_0x3c285d=this[_0x153d63(0x2a4)])==null||_0x3c285d[_0x153d63(0x21e)](this[_0x153d63(0x2e0)],this[_0x153d63(0x306)],this[_0x153d63(0x240)],this['_pendingMutations']);}[_0x4356c2(0x25e)](){const _0x369f0a=_0x4356c2;return this[_0x369f0a(0x9b)][_0x369f0a(0xb0)](this['unitID']);}[_0x4356c2(0x183)](){const _0x3dc37b=_0x4356c2;this[_0x3dc37b(0x9b)][_0x3dc37b(0x2b5)](this['unitID']);}[_0x4356c2(0x24e)](_0xa1f0e8){const _0x5498f9=_0x4356c2;let _0x17c2d7=this[_0x5498f9(0x363)](_0xa1f0e8);_0x17c2d7=this[_0x5498f9(0xf0)](_0x17c2d7);let _0x468173=(0x0,_0x186af2[_0x5498f9(0x2e4)])(_0x17c2d7[_0x5498f9(0x1d0)],this[_0x5498f9(0x213)],{'fromCollab':!0x0});if(!_0x468173[_0x5498f9(0x1d8)]){var _0x31a731;throw _0x468173[_0x5498f9(0x16b)]instanceof Error?_0x468173['error']:Error((_0x31a731=_0x468173['error'])==null?'[CollaborationState]:\x20apply\x20error!':_0x31a731);}this[_0x5498f9(0x379)](_0x17c2d7),this[_0x5498f9(0x77)](_0x17c2d7),this[_0x5498f9(0x1c8)](_0xa1f0e8),this['_transformSelections'](_0x17c2d7),this[_0x5498f9(0x28c)](_0x17c2d7),this[_0x5498f9(0x183)]();}};let _0x362a23=class extends _0x3529cd{constructor(_0x3512a1,_0x56e9ea,_0x58d4e2,_0x3c5994,_0xf4768e,_0x4963f0,_0x13f83a,_0x4c4c8f,_0x43c86a,_0x4bef22){const _0x28d7a6=_0x4356c2;super(_0x3512a1,_0x56e9ea,null,[],_0x58d4e2,_0x13f83a,_0x4963f0,_0x3c5994,_0x4bef22),this['_injector']=_0xf4768e,this[_0x28d7a6(0x89)]=_0x4c4c8f,this[_0x28d7a6(0x390)]=_0x43c86a,this[_0x28d7a6(0x189)]=_0x4bef22,_0x1fdd2e(this,_0x28d7a6(0xed),_0x28d7a6(0x13c));}[_0x4356c2(0x33d)](_0x1d02a5){const _0x3febbf=_0x4356c2;let _0x447d87=this[_0x3febbf(0x31b)][_0x3febbf(0x118)](_0x2f432b,this['unitID'],this['type'],[_0x1d02a5],this[_0x3febbf(0xee)]);return _0x447d87['_schedule'](),_0x447d87[_0x3febbf(0x1f4)](),_0x447d87;}[_0x4356c2(0x174)](_0x16ff1f){const _0x3a28b6=_0x4356c2;if(this['_checkMissing'](_0x16ff1f))return this[_0x3a28b6(0x31b)][_0x3a28b6(0x118)](_0x2ed5dd,this[_0x3a28b6(0x2e0)],this[_0x3a28b6(0x306)],null,[],null,[_0x16ff1f],this[_0x3a28b6(0xee)]);try{let _0x179030=this[_0x3a28b6(0x390)][_0x3a28b6(0xdc)](_0x16ff1f,[_0x164f11[_0x3a28b6(0x104)]]);if((0x0,_0x164f11[_0x3a28b6(0x2bd)])(_0x179030)){let {c1Prime:_0x1fe71e}=_0x179030;return this[_0x3a28b6(0x24e)](_0x1fe71e),this;}throw _0x179030[_0x3a28b6(0x16b)];}catch(_0x3eb0af){return this[_0x3a28b6(0x89)][_0x3a28b6(0x16b)](_0x3eb0af),this[_0x3a28b6(0x235)](!0x1);}}[_0x4356c2(0x235)](_0x406405){const _0x5ad8ae=_0x4356c2;return this[_0x5ad8ae(0x31b)][_0x5ad8ae(0x118)](_0x43d275,this['unitID'],this['type'],null,[],this[_0x5ad8ae(0xee)],_0x406405);}[_0x4356c2(0x1df)](_0x2bafbb){const _0x33abf7=_0x4356c2;if(_0x2bafbb[_0x33abf7(0x1e0)]<=this['_getCurrentRevision']())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x4356c2(0x168)](){const _0x228ae7=_0x4356c2;throw Error(_0x228ae7(0x12e));}[_0x4356c2(0x90)](){return this;}[_0x4356c2(0x364)](){const _0x3de5ff=_0x4356c2;return this[_0x3de5ff(0x31b)][_0x3de5ff(0x118)](_0x39b8fd,this[_0x3de5ff(0x2e0)],this['type'],null,[],this[_0x3de5ff(0xee)]);}[_0x4356c2(0x1a2)](){return this;}[_0x4356c2(0x103)](){const _0x374d72=_0x4356c2;throw Error(_0x374d72(0xb7));}[_0x4356c2(0x368)](){const _0x21346d=_0x4356c2;let _0x133734=this[_0x21346d(0x9b)][_0x21346d(0xb0)](this[_0x21346d(0x2e0)]);return this[_0x21346d(0xee)]['onMissingChangesets']({'from':_0x133734,'to':0x0}),this[_0x21346d(0x31b)][_0x21346d(0x118)](_0x2ed5dd,this[_0x21346d(0x2e0)],this[_0x21346d(0x306)],null,[],null,[],this['_handler']);}};_0x362a23=_0x223773([_0x9460ae(0x3,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11[_0x4356c2(0x332)])),_0x9460ae(0x4,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x5,_0x186af2['IUndoRedoService']),_0x9460ae(0x6,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0x7,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0x8,_0x164f11[_0x4356c2(0xbf)]),_0x9460ae(0x9,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x42a910))],_0x362a23);let _0x2f432b=_0x6f6d65=class extends _0x3529cd{constructor(_0x257e88,_0x332b69,_0x4ab3d0,_0x2a3815,_0x199825,_0x30ecf8,_0x585614,_0x55303c,_0x7505cd,_0x2c4f10,_0x4752a3,_0x5b4139,_0x545b79,_0x4a5d42){const _0x2185ab=_0x4356c2;super(_0x257e88,_0x332b69,null,_0x4ab3d0,_0x2a3815,_0x7505cd,_0x545b79,_0x30ecf8,_0x4a5d42),this[_0x2185ab(0x31b)]=_0x199825,this[_0x2185ab(0x18d)]=_0x585614,this['_logService']=_0x55303c,this[_0x2185ab(0x150)]=_0x2c4f10,this[_0x2185ab(0x390)]=_0x4752a3,this[_0x2185ab(0x129)]=_0x5b4139,_0x1fdd2e(this,_0x2185ab(0xed),'pending'),_0x1fdd2e(this,_0x2185ab(0x309),null),_0x1fdd2e(this,_0x2185ab(0x19c),null);}[_0x4356c2(0x33d)](_0x22d0d2){const _0x298ed0=_0x4356c2;return this[_0x298ed0(0x1a4)]['push'](_0x22d0d2),this[_0x298ed0(0x1f4)](),this;}[_0x4356c2(0x174)](_0x156dc5){const _0x320cd1=_0x4356c2;if(this[_0x320cd1(0x1e1)](_0x156dc5))return this[_0x320cd1(0x2a8)](),this[_0x320cd1(0x31b)][_0x320cd1(0x118)](_0x2ed5dd,this[_0x320cd1(0x2e0)],this['type'],null,this['_pendingMutations'],null,[_0x156dc5],this['_handler']);try{let _0x168ce1=this[_0x320cd1(0x390)][_0x320cd1(0xdc)](_0x156dc5,this[_0x320cd1(0x1a4)]);if((0x0,_0x164f11[_0x320cd1(0x2bd)])(_0x168ce1)){let {c1Prime:_0x28e6e7,m2Prime:_0x5e86f8}=_0x168ce1;this['_executeRemoteChangeset'](_0x28e6e7);let _0x6a4fd6=this['_injector'][_0x320cd1(0x118)](_0x6f6d65,this[_0x320cd1(0x2e0)],this[_0x320cd1(0x306)],_0x5e86f8,this[_0x320cd1(0xee)]);this[_0x320cd1(0x2a8)]();let _0x2de4c8=new Date()[_0x320cd1(0x36d)](),_0x4dcb4e=this[_0x320cd1(0x309)]?Math[_0x320cd1(0x20a)](this[_0x320cd1(0x309)]-_0x2de4c8,0x0):this['_getSendChangesetTimeout']();return _0x6a4fd6[_0x320cd1(0x225)](_0x4dcb4e),_0x6a4fd6;}throw _0x168ce1[_0x320cd1(0x16b)];}catch(_0x4dd0ee){return this[_0x320cd1(0x89)]['error'](_0x4dd0ee),this[_0x320cd1(0x235)](!0x1);}}[_0x4356c2(0x1df)](_0x36fbfe){const _0x5704d8=_0x4356c2;if(_0x36fbfe['revision']<=this[_0x5704d8(0x25e)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x4356c2(0x168)](){const _0x33c4c8=_0x4356c2;throw Error(_0x33c4c8(0x97));}[_0x4356c2(0x90)](){return this;}['toggleOffline'](){const _0x33ef83=_0x4356c2;return this['_clearScheduledTask'](),this['_injector'][_0x33ef83(0x118)](_0x39b8fd,this[_0x33ef83(0x2e0)],this[_0x33ef83(0x306)],null,this[_0x33ef83(0x1a4)],this[_0x33ef83(0xee)]);}[_0x4356c2(0x1a2)](){return this;}[_0x4356c2(0x225)](_0xa0abe6){const _0x5e083d=_0x4356c2;let _0x391d6f=_0xa0abe6==null?this[_0x5e083d(0x2c9)]():_0xa0abe6;this[_0x5e083d(0x309)]=new Date()[_0x5e083d(0x36d)]()+_0x391d6f,this[_0x5e083d(0x19c)]=setTimeout(()=>{const _0x6aaa7=_0x5e083d;this[_0x6aaa7(0x2a8)]();let _0x2ccca4=null;switch(this[_0x6aaa7(0x306)]){case _0x186af2[_0x6aaa7(0xe6)][_0x6aaa7(0x2c0)]:_0x2ccca4=_0x277cff(this[_0x6aaa7(0x1a4)],this[_0x6aaa7(0x2e0)],this['_univerInstanceService'],this[_0x6aaa7(0x9b)],this[_0x6aaa7(0x18d)]);break;case _0x186af2['UniverInstanceType']['UNIVER_DOC']:_0x2ccca4=this[_0x6aaa7(0x1a4)]['every'](_0x28316d=>_0x28316d['id']===_0x4f74bc[_0x6aaa7(0x304)]['id'])?_0x3ed1c4(this[_0x6aaa7(0x1a4)],this[_0x6aaa7(0x2e0)],this[_0x6aaa7(0x129)],this[_0x6aaa7(0x9b)],this[_0x6aaa7(0x18d)]):_0x277cff(this[_0x6aaa7(0x1a4)],this[_0x6aaa7(0x2e0)],this['_univerInstanceService'],this[_0x6aaa7(0x9b)],this[_0x6aaa7(0x18d)]);break;case _0x186af2[_0x6aaa7(0xe6)]['UNIVER_SLIDE']:_0x2ccca4=_0x29f26b(this[_0x6aaa7(0x1a4)],this['unitID'],this[_0x6aaa7(0x129)],this[_0x6aaa7(0x9b)],this[_0x6aaa7(0x18d)]);break;case _0x186af2[_0x6aaa7(0xe6)][_0x6aaa7(0x32f)]:_0x2ccca4=_0x11f706(this[_0x6aaa7(0x1a4)],this['unitID'],this[_0x6aaa7(0x129)],this[_0x6aaa7(0x9b)],this[_0x6aaa7(0x18d)]);break;default:throw Error(_0x6aaa7(0x382)+this[_0x6aaa7(0x306)]+_0x6aaa7(0x20b));}let {changeset:_0x3e29cb,pendingMutations:_0x2347a0}=_0x2ccca4;this[_0x6aaa7(0xee)][_0x6aaa7(0xf9)](_0x3e29cb);let _0x256f8b=_0x2347a0['length']?this['_injector'][_0x6aaa7(0x118)](_0x4b42ee,this['unitID'],this[_0x6aaa7(0x306)],_0x3e29cb,_0x2347a0,this['_handler'],void 0x0):this[_0x6aaa7(0x31b)][_0x6aaa7(0x118)](_0x52fc1d,this[_0x6aaa7(0x2e0)],this[_0x6aaa7(0x306)],_0x3e29cb,this[_0x6aaa7(0xee)]);_0x256f8b[_0x6aaa7(0x1f4)](),this[_0x6aaa7(0xee)][_0x6aaa7(0xae)](this,_0x256f8b);},_0x391d6f);}[_0x4356c2(0x2c9)](){const _0x14d343=_0x4356c2;var _0x3ead33;let _0x2dab6c=this[_0x14d343(0x150)][_0x14d343(0x2f0)](_0x446dbc);return(_0x3ead33=_0x2dab6c==null?void 0x0:_0x2dab6c['sendChangesetTimeout'])==null?0x7d0:_0x3ead33;}[_0x4356c2(0x103)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x4c782f=_0x4356c2;this[_0x4c782f(0x19c)]!=null&&(clearTimeout(this[_0x4c782f(0x19c)]),this[_0x4c782f(0x19c)]=null);}['_onConflict'](_0x42506a){const _0x47a986=_0x4356c2;return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x43d275,this['unitID'],this[_0x47a986(0x306)],null,this[_0x47a986(0x1a4)],this[_0x47a986(0xee)],_0x42506a);}};_0x2f432b=_0x6f6d65=_0x223773([_0x9460ae(0x4,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x5,(0x0,_0x186af2['Inject'])(_0x164f11[_0x4356c2(0x332)])),_0x9460ae(0x6,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x2528bb)),_0x9460ae(0x7,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0x8,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0x9,_0x186af2[_0x4356c2(0x2cd)]),_0x9460ae(0xa,_0x164f11[_0x4356c2(0xbf)]),_0x9460ae(0xb,_0x186af2['IUniverInstanceService']),_0x9460ae(0xc,_0x186af2['IUndoRedoService']),_0x9460ae(0xd,(0x0,_0x186af2['Optional'])(_0x42a910))],_0x2f432b);let _0x52fc1d=_0x28c0d7=class extends _0x3529cd{constructor(_0x2e8ade,_0x2df3e2,_0x1a8479,_0x5d1bf6,_0x538c66,_0x14ea87,_0x12a7d2,_0x2d2642,_0x10c0fa,_0x41023b,_0x32e11f){const _0x4c5484=_0x4356c2;super(_0x2e8ade,_0x2df3e2,_0x1a8479,[],_0x5d1bf6,_0x12a7d2,_0x41023b,_0x14ea87,_0x32e11f),this[_0x4c5484(0x31b)]=_0x538c66,this[_0x4c5484(0x89)]=_0x2d2642,this[_0x4c5484(0x390)]=_0x10c0fa,_0x1fdd2e(this,'status',_0x4c5484(0x278)),_0x1fdd2e(this,_0x4c5484(0x33f),0x0),_0x1fdd2e(this,_0x4c5484(0x2e3),0x0),_0x1fdd2e(this,'_resendTimer',void 0x0),_0x1fdd2e(this,_0x4c5484(0x173),void 0x0);}[_0x4356c2(0x33d)](_0x5ba015){const _0x1531c2=_0x4356c2;this[_0x1531c2(0x2a8)]();let _0xce54db=this[_0x1531c2(0x31b)]['createInstance'](_0x4b42ee,this[_0x1531c2(0x2e0)],this[_0x1531c2(0x306)],this[_0x1531c2(0x240)],[_0x5ba015],this[_0x1531c2(0xee)],this[_0x1531c2(0x1af)]);return _0xce54db['_updateLocalCache'](),_0xce54db;}[_0x4356c2(0x174)](_0x34c84d){const _0x41cb42=_0x4356c2;if(this[_0x41cb42(0x1e1)](_0x34c84d))return this[_0x41cb42(0x2a8)](),this['_injector'][_0x41cb42(0x118)](_0x2ed5dd,this[_0x41cb42(0x2e0)],this[_0x41cb42(0x306)],this['_awaitingChangeset'],[],null,[_0x34c84d],this['_handler']);try{let _0x3ec867=this['_transformService'][_0x41cb42(0x2cf)]([_0x34c84d],[this[_0x41cb42(0x240)]],!0x1);if((0x0,_0x164f11['isTransformChangesetsSuccess'])(_0x3ec867)){let {c1Prime:_0x3b1f19,c2Prime:_0x1c8f26}=_0x3ec867;this['_executeRemoteChangeset'](_0x3b1f19[0x0]),_0x1c8f26[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x41cb42(0x2a8)]();let _0x43965a=this['_injector'][_0x41cb42(0x118)](_0x28c0d7,this['unitID'],this[_0x41cb42(0x306)],_0x1c8f26[0x0],this[_0x41cb42(0xee)]);return _0x43965a[_0x41cb42(0x1f4)](),_0x43965a;}throw _0x3ec867['error'];}catch(_0x5911a8){return this[_0x41cb42(0x89)][_0x41cb42(0x16b)](_0x5911a8),this[_0x41cb42(0x235)](!0x1);}}[_0x4356c2(0x1df)](_0x1faa34){const _0x248c5d=_0x4356c2;this[_0x248c5d(0x2a8)]();let _0xb338a6=this[_0x248c5d(0x9b)][_0x248c5d(0xb0)](this[_0x248c5d(0x2e0)]);if(_0x1faa34['revision']<=_0xb338a6)return this;if(this[_0x248c5d(0x1e1)](_0x1faa34))return this[_0x248c5d(0x31b)]['createInstance'](_0x2ed5dd,this['unitID'],this['type'],this[_0x248c5d(0x240)],[],_0x1faa34[_0x248c5d(0x1e0)],[],this[_0x248c5d(0xee)]);this[_0x248c5d(0x183)]();let _0x3857df=this['_injector'][_0x248c5d(0x118)](_0x362a23,this[_0x248c5d(0x2e0)],this[_0x248c5d(0x306)],this[_0x248c5d(0xee)]);return _0x3857df[_0x248c5d(0x1f4)](),_0x3857df;}[_0x4356c2(0x168)](_0x36ec2a){const _0x162137=_0x4356c2;return this[_0x162137(0x235)](!!(_0x36ec2a!=null&&_0x36ec2a[_0x162137(0x7d)]));}[_0x4356c2(0x90)](_0x28abfb){const _0x570ec7=_0x4356c2;return this['_maxTotalRetryTimeout']>_0x1b588d?this[_0x570ec7(0x364)]():(this[_0x570ec7(0x1af)]=_0xbebd0c(this[_0x570ec7(0x33f)],{'timeout':this['_resendTimeout'],'reqId':_0x28abfb['reqId']}),this[_0x570ec7(0x173)]=this[_0x570ec7(0x1af)][_0x570ec7(0x1fe)](({reqId:_0x5b8b9c,timeout:_0x679ab9})=>{const _0x47cba6=_0x570ec7;this[_0x47cba6(0xfb)](_0x5b8b9c,_0x679ab9);}),this);}[_0x4356c2(0x364)](){const _0x2b1fa4=_0x4356c2;return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x39b8fd,this['unitID'],this[_0x2b1fa4(0x306)],this[_0x2b1fa4(0x240)],[],this['_handler']);}[_0x4356c2(0x1a2)](){return this;}[_0x4356c2(0x103)](){const _0x44c3c4=_0x4356c2;this[_0x44c3c4(0xee)][_0x44c3c4(0xf9)](this[_0x44c3c4(0x240)]);}[_0x4356c2(0x235)](_0x1b3a62){const _0x5d4b70=_0x4356c2;return this[_0x5d4b70(0x2a8)](),this[_0x5d4b70(0x31b)][_0x5d4b70(0x118)](_0x43d275,this[_0x5d4b70(0x2e0)],this[_0x5d4b70(0x306)],this[_0x5d4b70(0x240)],[],this[_0x5d4b70(0xee)],_0x1b3a62);}[_0x4356c2(0xfb)](_0x30fc41,_0x1f03b8){const _0x4e6430=_0x4356c2;var _0x40ca1b;_0x30fc41===((_0x40ca1b=this[_0x4e6430(0x240)])==null?void 0x0:_0x40ca1b['reqId'])&&(this['resend'](),this[_0x4e6430(0x33f)]=_0x1f03b8===0x0?0x3e8:Math[_0x4e6430(0x17b)](_0x1f03b8*0x2,_0x231dcc),this[_0x4e6430(0x2e3)]+=this[_0x4e6430(0x33f)]);}['_clearScheduledTask'](){const _0x59d309=_0x4356c2;var _0x31278e;(_0x31278e=this['_sender'])==null||_0x31278e[_0x59d309(0x361)](),this[_0x59d309(0x33f)]=0x0,this[_0x59d309(0x2e3)]=0x0;}};_0x52fc1d=_0x28c0d7=_0x223773([_0x9460ae(0x4,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x5,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11[_0x4356c2(0x332)])),_0x9460ae(0x6,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0x7,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0x8,_0x164f11[_0x4356c2(0xbf)]),_0x9460ae(0x9,_0x186af2['IUndoRedoService']),_0x9460ae(0xa,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x42a910))],_0x52fc1d);let _0x4b42ee=_0x25dc56=class extends _0x3529cd{constructor(_0x2642bc,_0x680484,_0x583f22,_0x528da1,_0x4e1378,_0xd611d1,_0x17bc92,_0x3530a9,_0x5c3d39,_0x3a5bf6,_0x2ca0a1,_0x37a0c8,_0x362929){const _0x49e84e=_0x4356c2;super(_0x2642bc,_0x680484,_0x583f22,_0x528da1,_0x4e1378,_0x5c3d39,_0x37a0c8,_0x3530a9,_0x362929),this[_0x49e84e(0x31b)]=_0x17bc92,this['_logService']=_0x3a5bf6,this[_0x49e84e(0x390)]=_0x2ca0a1,this[_0x49e84e(0x189)]=_0x362929,_0x1fdd2e(this,'status',_0x49e84e(0x378)),_0x1fdd2e(this,'_resendTimeout',0x0),_0x1fdd2e(this,_0x49e84e(0x2e3),0x0),_0x1fdd2e(this,_0x49e84e(0x1af),void 0x0),_0x1fdd2e(this,_0x49e84e(0x173),void 0x0),_0xd611d1&&(this[_0x49e84e(0x1af)]=_0xd611d1,this[_0x49e84e(0x173)]=this[_0x49e84e(0x1af)][_0x49e84e(0x1fe)](({reqId:_0x420d95,timeout:_0x48f83e})=>{const _0x572fac=_0x49e84e;this[_0x572fac(0xfb)](_0x420d95,_0x48f83e);}));}[_0x4356c2(0x33d)](_0x2c56a8){const _0x31346e=_0x4356c2;return this[_0x31346e(0x1a4)]['push'](_0x2c56a8),this;}[_0x4356c2(0x174)](_0x557dbc){const _0x71037f=_0x4356c2;if(this[_0x71037f(0x1e1)](_0x557dbc))return this[_0x71037f(0x2a8)](),this[_0x71037f(0x31b)][_0x71037f(0x118)](_0x2ed5dd,this['unitID'],this[_0x71037f(0x306)],this[_0x71037f(0x240)],this[_0x71037f(0x1a4)],null,[_0x557dbc],this[_0x71037f(0xee)]);try{let _0x590c3e=this['_transformService'][_0x71037f(0x2cf)]([_0x557dbc],[this[_0x71037f(0x240)]],!0x1);if((0x0,_0x164f11[_0x71037f(0x177)])(_0x590c3e)){let {c1Prime:_0x1384b5,c2Prime:_0x2db3cd}=_0x590c3e,_0x2a7f35=this[_0x71037f(0x390)]['transformMutationsWithChangeset'](_0x1384b5[0x0],this[_0x71037f(0x1a4)]);if((0x0,_0x164f11[_0x71037f(0x2bd)])(_0x2a7f35)){let {c1Prime:_0x6bff92,m2Prime:_0x3bcbad}=_0x2a7f35;return this['_executeRemoteChangeset'](_0x6bff92),_0x2db3cd[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x71037f(0x2a8)](),this[_0x71037f(0x31b)][_0x71037f(0x118)](_0x25dc56,this['unitID'],this[_0x71037f(0x306)],_0x2db3cd[0x0],_0x3bcbad,this[_0x71037f(0xee)],void 0x0);}throw _0x2a7f35['error'];}throw _0x590c3e[_0x71037f(0x16b)];}catch(_0x1e9717){return this['_logService']['error'](_0x1e9717),this[_0x71037f(0x235)](!0x1);}}[_0x4356c2(0x1df)](_0x3016b7){const _0x2a478e=_0x4356c2;this[_0x2a478e(0x2a8)]();let _0x27e6a3=this['_getCurrentRevision']();if(_0x3016b7[_0x2a478e(0x1e0)]<=_0x27e6a3)return this;if(this[_0x2a478e(0x1e1)](_0x3016b7))return this[_0x2a478e(0x31b)][_0x2a478e(0x118)](_0x2ed5dd,this['unitID'],this[_0x2a478e(0x306)],this['_awaitingChangeset'],this['_pendingMutations'],_0x3016b7[_0x2a478e(0x1e0)],[],this[_0x2a478e(0xee)]);this[_0x2a478e(0x183)]();let _0x2761b6=this[_0x2a478e(0x31b)][_0x2a478e(0x118)](_0x2f432b,this[_0x2a478e(0x2e0)],this['type'],this[_0x2a478e(0x1a4)],this[_0x2a478e(0xee)]);return _0x2761b6[_0x2a478e(0x225)](),_0x2761b6[_0x2a478e(0x1f4)](),_0x2761b6;}[_0x4356c2(0x168)](_0x2e02de){const _0x244a4a=_0x4356c2;return this[_0x244a4a(0x235)](!!(_0x2e02de!=null&&_0x2e02de[_0x244a4a(0x7d)]));}[_0x4356c2(0x90)](_0x9b4252){const _0x1c85e7=_0x4356c2;return this[_0x1c85e7(0x2e3)]>_0x1b588d?this[_0x1c85e7(0x364)]():(this[_0x1c85e7(0x1af)]=_0xbebd0c(this[_0x1c85e7(0x33f)],{'timeout':this['_resendTimeout'],'reqId':_0x9b4252['reqId']}),this[_0x1c85e7(0x173)]=this['_resendTimer'][_0x1c85e7(0x1fe)](({reqId:_0x15a512,timeout:_0x289117})=>{const _0x2aa539=_0x1c85e7;this[_0x2aa539(0xfb)](_0x15a512,_0x289117);}),this);}['toggleOffline'](){const _0x3d984f=_0x4356c2;return this[_0x3d984f(0x2a8)](),this['_injector']['createInstance'](_0x39b8fd,this[_0x3d984f(0x2e0)],this[_0x3d984f(0x306)],this[_0x3d984f(0x240)],this[_0x3d984f(0x1a4)],this[_0x3d984f(0xee)]);}['toggleOnline'](){return this;}[_0x4356c2(0x103)](){const _0x28ad7a=_0x4356c2;this[_0x28ad7a(0xee)][_0x28ad7a(0xf9)](this[_0x28ad7a(0x240)]);}['_onConflict'](_0x339229){const _0x51cb05=_0x4356c2;return this['_clearScheduledTask'](),this[_0x51cb05(0x31b)][_0x51cb05(0x118)](_0x43d275,this['unitID'],this[_0x51cb05(0x306)],null,this[_0x51cb05(0x1a4)],this[_0x51cb05(0xee)],_0x339229);}[_0x4356c2(0xfb)](_0x255c10,_0x33f9fb){const _0x3e8db3=_0x4356c2;var _0x3aed8c;_0x255c10===((_0x3aed8c=this['_awaitingChangeset'])==null?void 0x0:_0x3aed8c[_0x3e8db3(0x32c)])&&(this[_0x3e8db3(0x103)](),this[_0x3e8db3(0x33f)]=_0x33f9fb===0x0?0x3e8:Math[_0x3e8db3(0x17b)](_0x33f9fb*0x2,_0x231dcc),this['_maxTotalRetryTimeout']+=this[_0x3e8db3(0x33f)]);}[_0x4356c2(0x2a8)](){const _0x518804=_0x4356c2;var _0x450bd8;(_0x450bd8=this[_0x518804(0x173)])==null||_0x450bd8['unsubscribe'](),this[_0x518804(0x33f)]=0x0,this[_0x518804(0x2e3)]=0x0;}};_0x4b42ee=_0x25dc56=_0x223773([_0x9460ae(0x6,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2['Injector'])),_0x9460ae(0x7,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11[_0x4356c2(0x332)])),_0x9460ae(0x8,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0x9,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0xa,_0x164f11[_0x4356c2(0xbf)]),_0x9460ae(0xb,_0x186af2['IUndoRedoService']),_0x9460ae(0xc,(0x0,_0x186af2['Optional'])(_0x42a910))],_0x4b42ee);let _0x43d275=class extends _0x3529cd{constructor(_0x2edaac,_0x501b7e,_0x34202a,_0x42b4b7,_0x403cf2,_0x44e777=!0x1,_0x3c3050,_0x338531,_0x36b60d,_0x2dbaa3,_0x362a77,_0x2ac015,_0x1d9b57){const _0xb19600=_0x4356c2;super(_0x2edaac,_0x501b7e,_0x34202a,_0x42b4b7,_0x403cf2,_0x338531,_0x36b60d,_0x2dbaa3,_0x1d9b57),this[_0xb19600(0x95)]=_0x44e777,this[_0xb19600(0x11e)]=_0x3c3050,this[_0xb19600(0x1dd)]=_0x362a77,this[_0xb19600(0x255)]=_0x2ac015,this[_0xb19600(0x189)]=_0x1d9b57,_0x1fdd2e(this,_0xb19600(0xed),'conflict'),this[_0xb19600(0xde)](),this['_clearLocalCache'](),this[_0xb19600(0x7f)]();}[_0x4356c2(0x33d)](){return this;}[_0x4356c2(0x174)](){return this;}[_0x4356c2(0x1df)](){return this;}['onRemoteRej'](){return this;}[_0x4356c2(0x90)](){return this;}[_0x4356c2(0x364)](){return this;}[_0x4356c2(0x1a2)](){return this;}[_0x4356c2(0x103)](){const _0x14c456=_0x4356c2;throw Error(_0x14c456(0x1d1));}['_clearLocalCache'](){const _0x9e11f6=_0x4356c2;var _0x54d34c,_0x3b4e04,_0x510a18;(_0x54d34c=this['_localCacheService'])==null||(_0x3b4e04=_0x54d34c['backupOfflineData'])==null||(_0x3b4e04=_0x3b4e04[_0x9e11f6(0x2fe)](_0x54d34c,this['unitID'],_0x9e11f6(0x335)))==null||_0x3b4e04[_0x9e11f6(0x1c2)](()=>void 0x0),(_0x510a18=this[_0x9e11f6(0x2a4)])==null||_0x510a18[_0x9e11f6(0x21e)](this[_0x9e11f6(0x2e0)],this[_0x9e11f6(0x306)],null,[]);}[_0x4356c2(0xde)](){const _0x8343f=_0x4356c2;this[_0x8343f(0x95)]?this['_collaborationUIEventService'][_0x8343f(0x27e)]({'id':'PERMISSION_DENIED'}):this[_0x8343f(0x255)]['emitEvent']({'id':_0x8343f(0x2bf)});}['_disableEditing'](){const _0x41e7fb=_0x4356c2;this[_0x41e7fb(0x11e)][_0x41e7fb(0xdd)](new _0x19a0d0[(_0x41e7fb(0x1f2))](this[_0x41e7fb(0x2e0)])['id'],!0x1);}};_0x43d275=_0x223773([_0x9460ae(0x6,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x386)])),_0x9460ae(0x7,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0x8,_0x186af2[_0x4356c2(0x1f6)]),_0x9460ae(0x9,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11['RevisionService'])),_0x9460ae(0xa,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x18c)])),_0x9460ae(0xb,(0x0,_0x186af2['Inject'])(_0x167cb4)),_0x9460ae(0xc,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x42a910))],_0x43d275);let _0x39b8fd=class extends _0x3529cd{constructor(_0x55b991,_0x54307c,_0x48ffd5,_0x4e0fec,_0x4cb5cf,_0x33dc2a,_0x14021c,_0xe021a,_0x5b25dd,_0x3f7a9f){const _0x45ef3f=_0x4356c2;super(_0x55b991,_0x54307c,_0x48ffd5,_0x4e0fec,_0x4cb5cf,_0xe021a,_0x5b25dd,_0x14021c,_0x3f7a9f),this['_injector']=_0x33dc2a,_0x1fdd2e(this,'status',_0x45ef3f(0x1ed));}[_0x4356c2(0x33d)](_0x3a35d5){const _0x212fd9=_0x4356c2;return this['_pendingMutations'][_0x212fd9(0x265)](_0x3a35d5),this[_0x212fd9(0x1f4)](),this;}[_0x4356c2(0x174)](_0xcadd3e){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x50c7b4=_0x4356c2;throw Error(_0x50c7b4(0x324));}['onRemoteRej'](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x4356c2(0x90)](){return this;}[_0x4356c2(0x364)](){return this;}[_0x4356c2(0x1a2)](){const _0x4a5ebc=_0x4356c2;let {_injector:_0xe44492,_pendingMutations:_0x51a1b3,_awaitingChangeset:_0x5d3fd1,unitID:_0x2b650a,_handler:_0x87e43a,type:_0x514f94}=this,_0xade77=_0x2bd303(_0xe44492,_0x2b650a,_0x514f94,_0x5d3fd1,_0x51a1b3,_0x87e43a);return _0xade77 instanceof _0x2f432b?_0xade77[_0x4a5ebc(0x225)]():(_0xade77 instanceof _0x4b42ee||_0xade77 instanceof _0x52fc1d)&&_0xade77[_0x4a5ebc(0x103)](),_0xade77;}['resend'](){const _0x520598=_0x4356c2;throw Error(_0x520598(0x291));}};_0x39b8fd=_0x223773([_0x9460ae(0x5,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x6,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11[_0x4356c2(0x332)])),_0x9460ae(0x7,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0x8,_0x186af2[_0x4356c2(0x1f6)]),_0x9460ae(0x9,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x42a910))],_0x39b8fd);let _0x2ed5dd=class extends _0x3529cd{constructor(_0x15f240,_0x37e4e7,_0x3a2be9,_0x485a82,_0x1bf40a,_0x9c2e52,_0xed420c,_0x514ccb,_0x21975e,_0x280e3e,_0x22c78d,_0x13aa72,_0x54cc6d,_0x19ffc8){const _0x4bc6ba=_0x4356c2;super(_0x15f240,_0x37e4e7,_0x3a2be9,_0x485a82,_0xed420c,_0x22c78d,_0x13aa72,_0x21975e,_0x19ffc8),this[_0x4bc6ba(0x1b3)]=_0x1bf40a,this[_0x4bc6ba(0xbe)]=_0x9c2e52,this['_injector']=_0x514ccb,this['_logService']=_0x280e3e,this[_0x4bc6ba(0x390)]=_0x54cc6d,this[_0x4bc6ba(0x189)]=_0x19ffc8,_0x1fdd2e(this,_0x4bc6ba(0xed),_0x4bc6ba(0x300));}[_0x4356c2(0x94)](_0x2e950f){const _0x13d96d=_0x4356c2;try{if(this[_0x13d96d(0x28f)](_0x2e950f)[_0x13d96d(0x86)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x13d96d(0x28f)]([...this[_0x13d96d(0xbe)]][_0x13d96d(0xa3)]((_0x226fd7,_0x1c66d0)=>_0x226fd7[_0x13d96d(0x1e0)]-_0x1c66d0[_0x13d96d(0x1e0)]))['missingChangesets'])return this[_0x13d96d(0xbe)]=[],this[_0x13d96d(0x1f4)](),this['_handler'][_0x13d96d(0x19f)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x34c0fd=this[_0x13d96d(0x240)],_0x12b1af=this[_0x13d96d(0x1a4)],_0x5b6284;if(_0x34c0fd&&_0x12b1af[_0x13d96d(0x14e)]!==0x0)_0x5b6284=this[_0x13d96d(0x31b)]['createInstance'](_0x4b42ee,this['unitID'],this['type'],_0x34c0fd,_0x12b1af,this['_handler'],void 0x0);else{if(_0x34c0fd&&_0x12b1af[_0x13d96d(0x14e)]===0x0)_0x34c0fd[_0x13d96d(0x14a)]=this[_0x13d96d(0x25e)](),_0x5b6284=this[_0x13d96d(0x31b)]['createInstance'](_0x52fc1d,this[_0x13d96d(0x2e0)],this[_0x13d96d(0x306)],_0x34c0fd,this[_0x13d96d(0xee)]);else{if(_0x12b1af[_0x13d96d(0x14e)]!==0x0){let _0x49bcea=this['_injector'][_0x13d96d(0x118)](_0x2f432b,this[_0x13d96d(0x2e0)],this[_0x13d96d(0x306)],_0x12b1af,this[_0x13d96d(0xee)]);_0x49bcea[_0x13d96d(0x225)](),_0x5b6284=_0x49bcea;}else _0x5b6284=this['_injector'][_0x13d96d(0x118)](_0x362a23,this[_0x13d96d(0x2e0)],this[_0x13d96d(0x306)],this['_handler']);}}return _0x5b6284[_0x13d96d(0x1f4)](),_0x5b6284;}catch(_0x269412){return this[_0x13d96d(0x89)]['error'](_0x13d96d(0x34d),_0x13d96d(0x37e),_0x269412),this[_0x13d96d(0x31b)][_0x13d96d(0x118)](_0x43d275,this[_0x13d96d(0x2e0)],this[_0x13d96d(0x306)],this['_awaitingChangeset'],this[_0x13d96d(0x1a4)],this[_0x13d96d(0xee)],!0x1);}}[_0x4356c2(0x28f)](_0x134f2f){const _0x40d76b=_0x4356c2;this[_0x40d76b(0x275)]();for(let _0x1b1381=0x0;_0x1b1381<_0x134f2f[_0x40d76b(0x14e)];_0x1b1381++){let _0xb81a38=_0x134f2f[_0x1b1381],_0xb574=this[_0x40d76b(0x25e)]();if(!(_0xb81a38['revision']<=_0xb574)){if(_0xb81a38[_0x40d76b(0x1e0)]>_0xb574+0x1)return{'missingChangesets':!0x0};if(this[_0x40d76b(0x29e)](_0xb81a38)){this['_acknowledgeAwaiting']();continue;}this['_transformAndApplyRemoteChangeset'](_0xb81a38),this[_0x40d76b(0x275)]();}}return{'missingChangesets':!0x1};}[_0x4356c2(0xec)](_0x2926c0){const _0x539045=_0x4356c2;let _0x1d6b73=_0x2926c0,_0x4e31e6=this[_0x539045(0x240)];if(_0x4e31e6){let _0x1a554b=this[_0x539045(0x390)][_0x539045(0x2cf)]([_0x2926c0],[_0x4e31e6],!0x1);if(!(0x0,_0x164f11[_0x539045(0x177)])(_0x1a554b))throw _0x1a554b['error'];_0x1d6b73=_0x1a554b[_0x539045(0x13b)][0x0],_0x4e31e6=_0x1a554b[_0x539045(0x1e6)][0x0];}let _0x192f22=this[_0x539045(0x1a4)];if(_0x192f22['length']){let _0x4ce61c=this[_0x539045(0x390)]['transformMutationsWithChangeset'](_0x1d6b73,_0x192f22);if(!(0x0,_0x164f11[_0x539045(0x2bd)])(_0x4ce61c))throw _0x4ce61c[_0x539045(0x16b)];_0x1d6b73=_0x4ce61c[_0x539045(0x13b)],_0x192f22=_0x4ce61c[_0x539045(0xd0)];}this[_0x539045(0x24e)](_0x1d6b73),_0x4e31e6&&(_0x4e31e6[_0x539045(0x14a)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x4e31e6,this[_0x539045(0x1a4)]=_0x192f22;}[_0x4356c2(0x275)](){const _0x59fa26=_0x4356c2;if(!this['_awaitingChangeset']||this[_0x59fa26(0x1b3)]==null)return;let _0x4cc489=this['_getCurrentRevision']();if(this[_0x59fa26(0x1b3)]<=_0x4cc489)throw Error(_0x59fa26(0x1d6)+this['_acknowledgedAwaitingRevision']+'.');this[_0x59fa26(0x1b3)]===_0x4cc489+0x1&&this[_0x59fa26(0x288)]();}[_0x4356c2(0x288)](){const _0x3714bd=_0x4356c2;this[_0x3714bd(0x183)](),this[_0x3714bd(0x240)]=null,this[_0x3714bd(0x1b3)]=null;}[_0x4356c2(0x29e)](_0x2eebb8){const _0x5e7465=_0x4356c2;let _0x5968aa=this['_awaitingChangeset'];return!_0x5968aa||!_0x5968aa['sid']||_0x5968aa[_0x5e7465(0x32c)]===null||_0x5968aa[_0x5e7465(0x32c)]===void 0x0?!0x1:_0x2eebb8[_0x5e7465(0x2e0)]===_0x5968aa['unitID']&&_0x2eebb8['sid']===_0x5968aa[_0x5e7465(0x2ff)]&&_0x2eebb8[_0x5e7465(0x32c)]===_0x5968aa[_0x5e7465(0x32c)];}[_0x4356c2(0x103)](){const _0x1dfbc5=_0x4356c2;throw Error(_0x1dfbc5(0x198));}[_0x4356c2(0x33d)](_0x461a3d){const _0x187ea7=_0x4356c2;return this[_0x187ea7(0x1a4)][_0x187ea7(0x265)](_0x461a3d),this;}[_0x4356c2(0x174)](_0x473e6e){const _0x413255=_0x4356c2;return this[_0x413255(0xbe)][_0x413255(0x265)](_0x473e6e),this;}['onRemoteAck'](_0x4cf6c0){const _0x3b9915=_0x4356c2;if(this[_0x3b9915(0x240)]){let _0x198c15=this[_0x3b9915(0x25e)]();return _0x4cf6c0[_0x3b9915(0x1e0)]<=_0x198c15||(_0x198c15+0x1===_0x4cf6c0['revision']?(this[_0x3b9915(0x183)](),this[_0x3b9915(0x240)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0x3b9915(0x1b3)]=_0x4cf6c0[_0x3b9915(0x1e0)]),this;}if(_0x4cf6c0[_0x3b9915(0x1e0)]<=this[_0x3b9915(0x25e)]())return this;throw Error(_0x3b9915(0x155));}[_0x4356c2(0x168)](_0x19894d){const _0x2989ea=_0x4356c2;return this[_0x2989ea(0x235)](!!(_0x19894d!=null&&_0x19894d['isPermissionRej']));}[_0x4356c2(0x90)](){return this;}[_0x4356c2(0x364)](){const _0x3f374b=_0x4356c2;return this['_injector'][_0x3f374b(0x118)](_0x39b8fd,this['unitID'],this[_0x3f374b(0x306)],this[_0x3f374b(0x240)],this[_0x3f374b(0x1a4)],this[_0x3f374b(0xee)]);}['toggleOnline'](){return this;}[_0x4356c2(0x235)](_0x10c183){const _0x13024b=_0x4356c2;return this[_0x13024b(0x31b)][_0x13024b(0x118)](_0x43d275,this[_0x13024b(0x2e0)],this['type'],this[_0x13024b(0x240)],this[_0x13024b(0x1a4)],this[_0x13024b(0xee)],_0x10c183);}};_0x2ed5dd=_0x223773([_0x9460ae(0x7,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x8,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11[_0x4356c2(0x332)])),_0x9460ae(0x9,_0x186af2['ILogService']),_0x9460ae(0xa,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0xb,_0x186af2[_0x4356c2(0x1f6)]),_0x9460ae(0xc,_0x164f11[_0x4356c2(0xbf)]),_0x9460ae(0xd,(0x0,_0x186af2['Optional'])(_0x42a910))],_0x2ed5dd);function _0x2bd303(_0x4c87b1,_0x8cb75,_0x5300ae,_0x2fa265,_0x4d422f,_0x4bed5c){const _0x12679f=_0x4356c2;return _0x2fa265&&_0x4d422f[_0x12679f(0x14e)]?_0x4c87b1[_0x12679f(0x118)](_0x4b42ee,_0x8cb75,_0x5300ae,_0x2fa265,_0x4d422f,_0x4bed5c,void 0x0):_0x2fa265?_0x4c87b1[_0x12679f(0x118)](_0x52fc1d,_0x8cb75,_0x5300ae,_0x2fa265,_0x4bed5c):_0x4d422f[_0x12679f(0x14e)]?_0x4c87b1[_0x12679f(0x118)](_0x2f432b,_0x8cb75,_0x5300ae,_0x4d422f,_0x4bed5c):_0x4c87b1[_0x12679f(0x118)](_0x362a23,_0x8cb75,_0x5300ae,_0x4bed5c);}let _0xf0d3b=class extends _0x186af2[_0x4356c2(0x396)]{get[_0x4356c2(0x237)](){const _0xcbea65=_0x4356c2;return this[_0xcbea65(0x175)];}constructor(_0x3698de,_0x4a2c60,_0x5df239,_0x3d80de,_0x59794d,_0x438178,_0x269ca8,_0x423b12,_0x217812,_0x4e1b63,_0x1073a9,_0x2e0fb0,_0x4cf9f0,_0x5f5ac9){const _0x2cd1f8=_0x4356c2;super(),this[_0x2cd1f8(0x2e0)]=_0x3698de,this[_0x2cd1f8(0x328)]=_0x4a2c60,this[_0x2cd1f8(0x389)]=_0x5df239,this[_0x2cd1f8(0x31b)]=_0x3d80de,this[_0x2cd1f8(0x1d9)]=_0x59794d,this['_localeService']=_0x438178,this[_0x2cd1f8(0x9b)]=_0x269ca8,this[_0x2cd1f8(0x2d0)]=_0x423b12,this[_0x2cd1f8(0x129)]=_0x217812,this[_0x2cd1f8(0x89)]=_0x4e1b63,this[_0x2cd1f8(0x213)]=_0x1073a9,this['_permissionService']=_0x2e0fb0,this[_0x2cd1f8(0x354)]=_0x4cf9f0,this[_0x2cd1f8(0x2a4)]=_0x5f5ac9,_0x1fdd2e(this,'_state$',new _0x4f8104[(_0x2cd1f8(0x195))](null)),_0x1fdd2e(this,_0x2cd1f8(0x2cc),this[_0x2cd1f8(0x381)][_0x2cd1f8(0x1ff)]()),_0x1fdd2e(this,'_state',void 0x0),_0x1fdd2e(this,_0x2cd1f8(0x2ad),!0x1),_0x1fdd2e(this,'_changesetSessionId',''),_0x1fdd2e(this,'_changesetReqId',0x0),_0x1fdd2e(this,_0x2cd1f8(0x289),this['state$'][_0x2cd1f8(0xc2)]((0x0,_0x4f8104['map'])(_0x120861=>_0x120861?_0x120861[_0x2cd1f8(0xed)]:_0x2cd1f8(0x1ed)),(0x0,_0x4f8104['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x1fdd2e(this,'_transitionLocked',!0x1),_0x1fdd2e(this,'_remoteChangesetQueue',[]);}async[_0x4356c2(0x186)](){const _0xf9c9fe=_0x4356c2;if(this[_0xf9c9fe(0x237)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x4356c2(0x71)](){const _0x148855=_0x4356c2;return this[_0x148855(0x2ad)]=!0x0,(0x0,_0x186af2[_0x148855(0x312)])(()=>{const _0x831ddf=_0x148855;this[_0x831ddf(0x2ad)]=!0x1,this[_0x831ddf(0x2de)]();});}[_0x4356c2(0x23b)](_0x402784){const _0x5f45aa=_0x4356c2;this[_0x5f45aa(0x6d)](_0x402784);}[_0x4356c2(0xa8)](_0x5ddeed){const _0x1dbe6a=_0x4356c2;this[_0x1dbe6a(0x175)]=_0x5ddeed,this[_0x1dbe6a(0x381)][_0x1dbe6a(0x214)](_0x5ddeed);}async[_0x4356c2(0x135)](){const _0x9f3e4a=_0x4356c2;if(this[_0x9f3e4a(0xa8)](await this[_0x9f3e4a(0x10a)]()),this[_0x9f3e4a(0x354)]){var _0x41734f;(_0x41734f=this[_0x9f3e4a(0x354)])==null||_0x41734f[_0x9f3e4a(0x13f)](this['unitID']),this[_0x9f3e4a(0xa5)](this[_0x9f3e4a(0x354)][_0x9f3e4a(0x148)](this[_0x9f3e4a(0x2e0)])[_0x9f3e4a(0x1fe)](_0x3f9dfb=>{const _0x278840=_0x9f3e4a;this[_0x278840(0x89)][_0x278840(0xc5)](_0x278840(0x66),_0x278840(0x2c6),_0x3f9dfb),_0x3f9dfb===0x1?(this[_0x278840(0x2d0)][_0x278840(0x27e)]({'id':_0x278840(0x35f)}),this[_0x278840(0x11e)][_0x278840(0xdd)](new _0x19a0d0[(_0x278840(0x1f2))](this[_0x278840(0x2e0)])['id'],!0x1),this['_permissionService']['setShowComponents'](!0x1)):(this[_0x278840(0x11e)][_0x278840(0xdd)](new _0x19a0d0['WorkbookEditablePermission'](this[_0x278840(0x2e0)])['id'],!0x0),this[_0x278840(0x11e)][_0x278840(0x2be)](!0x0));}));}let _0x34e514=!0x1;return this['disposeWithMe'](this[_0x9f3e4a(0x328)]['sessionStatus$'][_0x9f3e4a(0x1fe)](_0x111d8f=>{const _0x3acf59=_0x9f3e4a;_0x111d8f===0x3?this[_0x3acf59(0x88)](_0x34e514):_0x111d8f===0x2&&(_0x34e514=!0x0,this[_0x3acf59(0x28a)]());})),this['disposeWithMe'](this['session'][_0x9f3e4a(0x21d)][_0x9f3e4a(0x1fe)](_0x18e7f8=>{const _0x428704=_0x9f3e4a;try{switch(_0x18e7f8['eventID']){case _0x164f11['CollaborationEvent'][_0x428704(0x357)]:this[_0x428704(0x99)]((0x0,_0x164f11['parseProtocolChangeset'])(_0x18e7f8[_0x428704(0x244)]));break;case _0x164f11['CollaborationEvent'][_0x428704(0x375)]:this[_0x428704(0x1b7)](_0x18e7f8[_0x428704(0x244)]);break;case _0x164f11[_0x428704(0x1f7)][_0x428704(0x25c)]:this[_0x428704(0x2fa)]();break;case _0x164f11['CollaborationEvent'][_0x428704(0x8d)]:this[_0x428704(0x219)](_0x18e7f8['data']);break;case _0x164f11['CollaborationEvent'][_0x428704(0x383)]:this[_0x428704(0x11d)](_0x18e7f8[_0x428704(0x244)][_0x428704(0x1ec)][_0x428704(0xff)](_0x297638=>(0x0,_0x164f11[_0x428704(0x143)])(_0x297638)));break;case _0x164f11[_0x428704(0x1f7)]['PERMISSION_REJ']:this[_0x428704(0x2fa)]({'isPermissionRej':!0x0});break;case _0x164f11[_0x428704(0x1f7)][_0x428704(0x32b)]:break;}}catch(_0x1eee4a){throw console['error'](_0x428704(0x2b8),_0x1eee4a),_0x1eee4a;}})),this[_0x9f3e4a(0x175)];}[_0x4356c2(0x284)](){const _0x3068b1=_0x4356c2;this[_0x3068b1(0x1e3)]=!0x1;}[_0x4356c2(0x125)](){const _0x59eb97=_0x4356c2;if(this['_transitionLocked'])throw Error(_0x59eb97(0x24b));this[_0x59eb97(0x1e3)]=!0x0;}[_0x4356c2(0x6d)](_0x1b75c6){const _0x1e8663=_0x4356c2;this[_0x1e8663(0x125)](),this[_0x1e8663(0xa8)](this[_0x1e8663(0x175)]['appendMutation'](_0x1b75c6)),this[_0x1e8663(0x284)]();}[_0x4356c2(0x99)](_0x144793){const _0x119edd=_0x4356c2;if(!(_0x144793[_0x119edd(0x1e0)]<=this[_0x119edd(0x9b)][_0x119edd(0xb0)](this[_0x119edd(0x2e0)]))){if(this[_0x119edd(0x2ad)]){this['_remoteChangesetQueue']['push'](_0x144793);return;}this[_0x119edd(0x326)](_0x144793);}}[_0x4356c2(0x2de)](){const _0x3cf407=_0x4356c2;this[_0x3cf407(0x1f0)][_0x3cf407(0xc1)](_0x4412e5=>this[_0x3cf407(0x326)](_0x4412e5)),this[_0x3cf407(0x1f0)]=[];}[_0x4356c2(0x326)](_0x26b18d){const _0x1b57a7=_0x4356c2;let _0x1cb0e8=this['_compressMutationService'][_0x1b57a7(0x371)][_0x1b57a7(0x10c)](this[_0x1b57a7(0x1d9)]['interceptor'][_0x1b57a7(0x121)]()[_0x1b57a7(0xaf)])(_0x26b18d[_0x1b57a7(0x1d0)],null)||_0x26b18d[_0x1b57a7(0x1d0)],_0x5e12fb={..._0x26b18d,'mutations':_0x1cb0e8};this[_0x1b57a7(0x125)](),this['_updateState'](this[_0x1b57a7(0x175)][_0x1b57a7(0x174)](_0x5e12fb)),this[_0x1b57a7(0x284)]();}[_0x4356c2(0x1b7)](_0x1f62ce){const _0x3aee94=_0x4356c2;this[_0x3aee94(0x125)](),this['_updateState'](this['_state'][_0x3aee94(0x1df)](_0x1f62ce)),this[_0x3aee94(0x284)]();}['_onRemoteRejected'](_0x3ab035){const _0x1c880c=_0x4356c2;this[_0x1c880c(0x125)](),this[_0x1c880c(0xa8)](this['_state']['onRemoteRej'](_0x3ab035)),this[_0x1c880c(0x284)]();}[_0x4356c2(0x219)](_0x1428ef){const _0x9aa4f9=_0x4356c2;this[_0x9aa4f9(0x125)](),this['_updateState'](this[_0x9aa4f9(0x175)][_0x9aa4f9(0x90)](_0x1428ef)),this['_unlockTransition']();}[_0x4356c2(0x11d)](_0x14cfd2){const _0x31b28e=_0x4356c2;if(!(this[_0x31b28e(0x175)]instanceof _0x2ed5dd))throw TypeError(_0x31b28e(0x138));let _0x42dc2f=_0x14cfd2[_0x31b28e(0xff)](_0x21cf16=>{const _0x49f1e6=_0x31b28e;let _0x99ce01=this[_0x49f1e6(0x1d9)][_0x49f1e6(0x371)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x49f1e6(0x121)]()[_0x49f1e6(0xaf)])(_0x21cf16[_0x49f1e6(0x1d0)],null)||_0x21cf16[_0x49f1e6(0x1d0)];return{..._0x21cf16,'mutations':_0x99ce01};});this[_0x31b28e(0x125)](),this[_0x31b28e(0xa8)](this[_0x31b28e(0x175)][_0x31b28e(0x94)](_0x42dc2f)),this[_0x31b28e(0x284)]();}[_0x4356c2(0x28a)](){const _0x32b1a4=_0x4356c2;this[_0x32b1a4(0x125)](),this[_0x32b1a4(0xa8)](this[_0x32b1a4(0x175)][_0x32b1a4(0x364)]()),this[_0x32b1a4(0x284)]();}[_0x4356c2(0x88)](_0x58a162=!0x1){const _0x1a3804=_0x4356c2;this[_0x1a3804(0x125)](),this[_0x1a3804(0xa8)](this[_0x1a3804(0x175)][_0x1a3804(0x1a2)]()),this[_0x1a3804(0x284)]();let _0x4389fd=this[_0x1a3804(0x175)];_0x58a162&&_0x4389fd instanceof _0x362a23&&(this['_lockTransition'](),this[_0x1a3804(0xa8)](_0x4389fd[_0x1a3804(0x368)]()),this['_unlockTransition']());}async[_0x4356c2(0x10a)](){return new Promise(_0x585874=>{const _0x1deda7=_0x364e;this[_0x1deda7(0x328)][_0x1deda7(0x185)]['pipe']((0x0,_0x4f8104[_0x1deda7(0x180)])(0x1))[_0x1deda7(0x1fe)](async _0x31a363=>{const _0x535349=_0x1deda7;_0x585874(await this[_0x535349(0x36e)](_0x31a363===0x3));});});}[_0x4356c2(0x261)](){const _0x476113=_0x4356c2;let _0x180dd6=this[_0x476113(0x2e0)];return{'onStateChange':(_0x3647e4,_0x33f6bd)=>{const _0x4e8ef9=_0x476113;if(_0x3647e4!==this[_0x4e8ef9(0x175)])throw Error(_0x4e8ef9(0x144)+_0x3647e4['status']+'\x0aAfter:\x20'+_0x33f6bd['status']+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x4e8ef9(0xa8)](_0x33f6bd);},'onSendChangeset':_0x2bfc65=>{const _0x28974e=_0x476113;_0x2bfc65['sid']||(_0x2bfc65[_0x28974e(0x2ff)]=this[_0x28974e(0x226)],_0x2bfc65['reqId']=++this[_0x28974e(0x307)]);let _0x2453ec={'eventID':_0x164f11[_0x28974e(0x1f7)][_0x28974e(0xfd)],'data':{'unitID':_0x2bfc65[_0x28974e(0x2e0)],'unitType':this[_0x28974e(0x389)],'changeset':_0x2bfc65,'memberID':this['session'][_0x28974e(0x188)]()}};this[_0x28974e(0x328)]['send'](_0x2453ec,this[_0x28974e(0x2e0)]);},'onMissingChangesets':({from:_0x44fee9,to:_0x27ba88})=>{const _0x2ec13a=_0x476113;this[_0x2ec13a(0x89)]['debug']('[CollaborationEntity]',_0x2ec13a(0xc7)+_0x44fee9+'\x20to\x20'+_0x27ba88);let _0x20044d={'eventID':_0x164f11[_0x2ec13a(0x1f7)][_0x2ec13a(0x355)],'data':{'unitID':_0x180dd6,'unitType':this['_type'],'from':_0x44fee9,'to':_0x27ba88}};this['session'][_0x2ec13a(0x31e)](_0x20044d,this[_0x2ec13a(0x2e0)]);}};}async[_0x4356c2(0x36e)](_0x243a9e){const _0x1ad9c1=_0x4356c2;var _0x572d57,_0x193237,_0x4c9423;let _0x25167e=await((_0x572d57=this['_localCacheService'])==null?void 0x0:_0x572d57[_0x1ad9c1(0x31c)](this[_0x1ad9c1(0x2e0)])),_0x8d264e=(_0x193237=_0x25167e==null?void 0x0:_0x25167e[_0x1ad9c1(0x1d0)])==null?[]:_0x193237,_0x2bf3f9=(_0x4c9423=_0x25167e==null?void 0x0:_0x25167e[_0x1ad9c1(0xb4)])==null?null:_0x4c9423,_0x368b8f=!!(_0x2bf3f9!=null&&_0x2bf3f9['sid'])&&!!(_0x2bf3f9!=null&&_0x2bf3f9[_0x1ad9c1(0x32c)]);this['_changesetSessionId']=_0x368b8f?_0x2bf3f9[_0x1ad9c1(0x2ff)]:(0x0,_0x164f11[_0x1ad9c1(0x30b)])(),this[_0x1ad9c1(0x307)]=_0x368b8f?_0x2bf3f9['reqId']:0x0;let _0x783fb3=this[_0x1ad9c1(0x2e0)];try{this['_replayCachedMutations'](_0x2bf3f9,_0x8d264e);}catch(_0x38f441){this['_logService'][_0x1ad9c1(0x16b)](_0x38f441);}let _0x1d27fc=this['_createHandler']();if(_0x243a9e){let _0x239bb8=_0x2bd303(this[_0x1ad9c1(0x31b)],_0x783fb3,this[_0x1ad9c1(0x389)],_0x2bf3f9,_0x8d264e,_0x1d27fc);return _0x239bb8 instanceof _0x2f432b?_0x239bb8[_0x1ad9c1(0x225)]():(_0x239bb8 instanceof _0x4b42ee||_0x239bb8 instanceof _0x52fc1d)&&_0x239bb8[_0x1ad9c1(0x103)](),_0x239bb8;}return this[_0x1ad9c1(0x31b)][_0x1ad9c1(0x118)](_0x39b8fd,_0x783fb3,this['_type'],_0x2bf3f9,_0x8d264e,_0x1d27fc);}['_replayCachedMutations'](_0x19b9ad,_0x44c8e6){const _0x435be2=_0x4356c2;var _0x4b4ee1,_0x251b2c;let _0x99ac0f=this[_0x435be2(0x1d9)][_0x435be2(0x371)][_0x435be2(0x10c)](this['_compressMutationService'][_0x435be2(0x371)][_0x435be2(0x121)]()['COMPRESS_MUTATION_APPLY']);(_0x4b4ee1=_0x99ac0f((_0x19b9ad==null?void 0x0:_0x19b9ad[_0x435be2(0x1d0)])||[],null))==null||_0x4b4ee1['forEach'](_0x4756be=>this[_0x435be2(0x213)][_0x435be2(0xb3)](_0x4756be['id'],_0x4756be[_0x435be2(0x32d)])),(_0x251b2c=_0x99ac0f(_0x44c8e6||[],null))==null||_0x251b2c['forEach'](_0x37889e=>this[_0x435be2(0x213)][_0x435be2(0xb3)](_0x37889e['id'],_0x37889e[_0x435be2(0x32d)]));}};_0xf0d3b=_0x223773([_0x9460ae(0x3,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x4,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11['CompressMutationService'])),_0x9460ae(0x5,(0x0,_0x186af2['Inject'])(_0x186af2[_0x4356c2(0x18c)])),_0x9460ae(0x6,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11[_0x4356c2(0x332)])),_0x9460ae(0x7,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x167cb4)),_0x9460ae(0x8,_0x186af2[_0x4356c2(0x20c)]),_0x9460ae(0x9,_0x186af2['ILogService']),_0x9460ae(0xa,_0x186af2['ICommandService']),_0x9460ae(0xb,_0x186af2['IPermissionService']),_0x9460ae(0xc,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x3348a1)),_0x9460ae(0xd,(0x0,_0x186af2['Optional'])(_0x42a910))],_0xf0d3b);let _0xe5992c=class extends _0xf0d3b{constructor(_0x331789,_0x1b357c,_0x33cdcd,_0x4276e9,_0x1e04f6,_0x4ac3e8,_0x2f11ee,_0x38f2bb,_0x120f04,_0x843c6b,_0x229c41,_0x42b8f4,_0x32c3fb,_0x539d64,_0x4c71b4){const _0x4bed14=_0x4356c2;super(_0x331789,_0x33cdcd,_0x1b357c,_0x4276e9,_0x1e04f6,_0x4ac3e8,_0x2f11ee,_0x38f2bb,_0x120f04,_0x843c6b,_0x229c41,_0x42b8f4,_0x539d64,_0x4c71b4),this[_0x4bed14(0x2e0)]=_0x331789,this[_0x4bed14(0x306)]=_0x1b357c,this['_docStateChangeManagerService']=_0x32c3fb,_0x1fdd2e(this,_0x4bed14(0xf8),null);}[_0x4356c2(0x358)](_0x2a05f6){const _0x452720=_0x4356c2;this[_0x452720(0xf8)]=_0x2a05f6;}['dispose'](){const _0x1b29c7=_0x4356c2;this[_0x1b29c7(0xf8)]=null,super[_0x1b29c7(0x2f7)]();}[_0x4356c2(0x261)](){const _0x226e43=_0x4356c2;let _0x177913=super[_0x226e43(0x261)]();return _0x177913[_0x226e43(0x1c0)]=_0x40dd35=>{const _0x377115=_0x226e43;var _0x4e860c,_0x4ac3c6;return(_0x4e860c=this[_0x377115(0xf8)])==null||(_0x4ac3c6=_0x4e860c[_0x377115(0x1c0)])==null?void 0x0:_0x4ac3c6[_0x377115(0x2fe)](_0x4e860c,_0x40dd35);},_0x177913[_0x226e43(0x37f)]=_0x31c44b=>{const _0x42e856=_0x226e43;var _0x354a08,_0x57031c;return(_0x354a08=this[_0x42e856(0xf8)])==null||(_0x57031c=_0x354a08[_0x42e856(0x37f)])==null?void 0x0:_0x57031c[_0x42e856(0x2fe)](_0x354a08,_0x31c44b);},_0x177913['onTransformSelections']=_0xfb32b=>{const _0x1f5807=_0x226e43;var _0x370664,_0x35a6e9;return(_0x370664=this[_0x1f5807(0xf8)])==null||(_0x35a6e9=_0x370664[_0x1f5807(0x222)])==null?void 0x0:_0x35a6e9[_0x1f5807(0x2fe)](_0x370664,_0xfb32b);},_0x177913[_0x226e43(0x85)]=_0x4e781d=>{const _0xbdd4d6=_0x226e43;var _0x518340,_0x306d91;return(_0x518340=this['_handlerCallback'])==null||(_0x306d91=_0x518340[_0xbdd4d6(0x85)])==null?void 0x0:_0x306d91['call'](_0x518340,_0x4e781d);},_0x177913[_0x226e43(0x2b1)]=_0x528f80=>{const _0x204cfc=_0x226e43;var _0x4cbc99,_0x5d80b4,_0x2f95a9;return(_0x4cbc99=(_0x5d80b4=this[_0x204cfc(0xf8)])==null||(_0x2f95a9=_0x5d80b4[_0x204cfc(0x2b1)])==null?void 0x0:_0x2f95a9[_0x204cfc(0x2fe)](_0x5d80b4,_0x528f80))==null?_0x528f80:_0x4cbc99;},_0x177913[_0x226e43(0xcf)]=_0x74bfab=>{const _0x1f1718=_0x226e43;var _0xce5985,_0x1497c6,_0x3146f4;return(_0xce5985=(_0x1497c6=this['_handlerCallback'])==null||(_0x3146f4=_0x1497c6['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x3146f4[_0x1f1718(0x2fe)](_0x1497c6,_0x74bfab))==null?_0x74bfab:_0xce5985;},_0x177913;}async[_0x4356c2(0x135)](){const _0x7f3067=_0x4356c2;if(this[_0x7f3067(0x120)]==null)throw Error(_0x7f3067(0xe1));let _0x404883=await super[_0x7f3067(0x135)]();return this[_0x7f3067(0xa5)](this[_0x7f3067(0x120)][_0x7f3067(0x116)]['subscribe'](_0x4077aa=>{const _0x2c3898=_0x7f3067;if(_0x4077aa==null||_0x4077aa[_0x2c3898(0x10e)]!==this['unitID'])return;let {commandId:_0x5ab212,redoState:_0x42980f,unitId:_0x135d99}=_0x4077aa,_0x237b75={'id':_0x5ab212,'type':_0x186af2['CommandType'][_0x2c3898(0x367)],'params':{'unitId':_0x135d99,'actions':_0x42980f[_0x2c3898(0x2d5)],'textRanges':null}};this['_onLocalMutation'](_0x237b75);})),this['disposeWithMe'](this[_0x7f3067(0x213)][_0x7f3067(0x19e)]((_0x2590eb,_0xa0cc09)=>{const _0xc5ac9=_0x7f3067;if(_0x2590eb[_0xc5ac9(0x306)]!==_0x186af2['CommandType'][_0xc5ac9(0x367)]||_0xa0cc09!=null&&_0xa0cc09[_0xc5ac9(0x220)]||_0xa0cc09!=null&&_0xa0cc09[_0xc5ac9(0x2dc)]||_0x2590eb['id']===_0x4f74bc[_0xc5ac9(0x304)]['id'])return;let _0x380bb7=_0x2590eb[_0xc5ac9(0x32d)];if((_0x380bb7==null?void 0x0:_0x380bb7[_0xc5ac9(0x10e)])!==this[_0xc5ac9(0x2e0)])return;let _0x3762c3=_0x2590eb,_0x464169=this[_0xc5ac9(0x1d9)]['interceptor'][_0xc5ac9(0x10c)](this[_0xc5ac9(0x1d9)][_0xc5ac9(0x371)][_0xc5ac9(0x121)]()[_0xc5ac9(0x242)])([_0x3762c3],this[_0xc5ac9(0x129)])||[_0x3762c3];this[_0xc5ac9(0x6d)](_0x464169[0x0]);})),_0x404883;}};_0xe5992c=_0x223773([_0x9460ae(0x3,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2['Injector'])),_0x9460ae(0x4,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11[_0x4356c2(0x366)])),_0x9460ae(0x5,(0x0,_0x186af2['Inject'])(_0x186af2[_0x4356c2(0x18c)])),_0x9460ae(0x6,(0x0,_0x186af2['Inject'])(_0x164f11[_0x4356c2(0x332)])),_0x9460ae(0x7,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x167cb4)),_0x9460ae(0x8,_0x186af2[_0x4356c2(0x20c)]),_0x9460ae(0x9,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0xa,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0xb,_0x186af2[_0x4356c2(0x386)]),_0x9460ae(0xc,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x4f74bc[_0x4356c2(0x257)])),_0x9460ae(0xd,(0x0,_0x186af2['Optional'])(_0x3348a1)),_0x9460ae(0xe,(0x0,_0x186af2['Optional'])(_0x42a910))],_0xe5992c);let _0x460a9b=class extends _0xf0d3b{constructor(_0x1e513a,_0x2c0d03,_0x4bb5b2,_0x15c656,_0x4505e0,_0x5e1f57,_0x165174,_0x14344b,_0x25ac23,_0x5994b5,_0x48ef8a,_0x34d16d,_0x245cb9,_0x1ba521){const _0xd98000=_0x4356c2;super(_0x1e513a,_0x4bb5b2,_0x2c0d03,_0x15c656,_0x4505e0,_0x5e1f57,_0x165174,_0x14344b,_0x25ac23,_0x5994b5,_0x48ef8a,_0x34d16d,_0x245cb9,_0x1ba521),this[_0xd98000(0x2e0)]=_0x1e513a,this[_0xd98000(0x306)]=_0x2c0d03;}async[_0x4356c2(0x135)](){const _0x166299=_0x4356c2;let _0x1e58a6=await super['_init']();return this[_0x166299(0xa5)](this[_0x166299(0x213)]['onMutationExecutedForCollab']((_0x14ec47,_0x99a36d)=>{const _0x535a86=_0x166299;if(_0x14ec47['type']!==_0x186af2[_0x535a86(0x2af)][_0x535a86(0x367)]||_0x99a36d!=null&&_0x99a36d['fromCollab']||_0x99a36d!=null&&_0x99a36d['onlyLocal']||_0x14ec47['id']!==_0x9153a8[_0x535a86(0x114)]['id'])return;let _0x5a4a15=_0x14ec47[_0x535a86(0x32d)];if((_0x5a4a15==null?void 0x0:_0x5a4a15[_0x535a86(0x10e)])!==this['unitID'])return;let _0x24ec4b=_0x14ec47,_0x1595c9=this[_0x535a86(0x1d9)][_0x535a86(0x371)][_0x535a86(0x10c)](this['_compressMutationService'][_0x535a86(0x371)][_0x535a86(0x121)]()[_0x535a86(0x242)])([_0x24ec4b],this[_0x535a86(0x129)])||[_0x24ec4b];this['_onLocalMutation'](_0x1595c9[0x0]);})),_0x1e58a6;}};_0x460a9b=_0x223773([_0x9460ae(0x3,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x4,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11['CompressMutationService'])),_0x9460ae(0x5,(0x0,_0x186af2['Inject'])(_0x186af2['LocaleService'])),_0x9460ae(0x6,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11[_0x4356c2(0x332)])),_0x9460ae(0x7,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x167cb4)),_0x9460ae(0x8,_0x186af2[_0x4356c2(0x20c)]),_0x9460ae(0x9,_0x186af2['ILogService']),_0x9460ae(0xa,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0xb,_0x186af2['IPermissionService']),_0x9460ae(0xc,(0x0,_0x186af2['Optional'])(_0x3348a1)),_0x9460ae(0xd,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x42a910))],_0x460a9b);let _0xddaf92=class extends _0xf0d3b{constructor(_0x276383,_0x2faa19,_0x491204,_0x403e19,_0x562f5a,_0x27a0c0,_0x139d0e,_0x3d420b,_0x2efbe5,_0x109ca7,_0x4b02a6,_0x54898f,_0x359452,_0x3285e7,_0x2233e2){const _0xb82792=_0x4356c2;super(_0x276383,_0x491204,_0x2faa19,_0x403e19,_0x562f5a,_0x27a0c0,_0x139d0e,_0x2efbe5,_0x109ca7,_0x4b02a6,_0x54898f,_0x359452,_0x3285e7,_0x2233e2),this[_0xb82792(0x2e0)]=_0x276383,this[_0xb82792(0x306)]=_0x2faa19,this[_0xb82792(0x1ce)]=_0x3d420b;}[_0x4356c2(0x261)](){const _0x40bc20=_0x4356c2;let _0x292831=super['_createHandler']();return _0x292831[_0x40bc20(0x222)]=_0x48e4b0=>this[_0x40bc20(0x1ce)][_0x40bc20(0x392)](_0x48e4b0),_0x292831;}async[_0x4356c2(0x135)](){const _0x2dbccb=_0x4356c2;let _0xc3d627=await super['_init']();return this[_0x2dbccb(0xa5)](this[_0x2dbccb(0x213)][_0x2dbccb(0x19e)]((_0x3dea8b,_0x4f9a99)=>{const _0x41eebd=_0x2dbccb;if(_0x3dea8b[_0x41eebd(0x306)]!==_0x186af2['CommandType']['MUTATION']||_0x4f9a99!=null&&_0x4f9a99['fromCollab']||_0x4f9a99!=null&&_0x4f9a99['onlyLocal'])return;let _0x144c9a=_0x3dea8b['params'];if((_0x144c9a==null?void 0x0:_0x144c9a[_0x41eebd(0x10e)])!==this[_0x41eebd(0x2e0)])return;let _0x22d8da=_0x3dea8b,_0x23aca4=this[_0x41eebd(0x1d9)][_0x41eebd(0x371)][_0x41eebd(0x10c)](this[_0x41eebd(0x1d9)][_0x41eebd(0x371)][_0x41eebd(0x121)]()[_0x41eebd(0x242)])([_0x22d8da],this[_0x41eebd(0x129)])||[_0x22d8da];this[_0x41eebd(0x6d)](_0x23aca4[0x0]);})),_0xc3d627;}};_0xddaf92=_0x223773([_0x9460ae(0x3,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x4,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11['CompressMutationService'])),_0x9460ae(0x5,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2['LocaleService'])),_0x9460ae(0x6,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11['RevisionService'])),_0x9460ae(0x7,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x262e41)),_0x9460ae(0x8,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x167cb4)),_0x9460ae(0x9,_0x186af2[_0x4356c2(0x20c)]),_0x9460ae(0xa,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0xb,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0xc,_0x186af2[_0x4356c2(0x386)]),_0x9460ae(0xd,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x3348a1)),_0x9460ae(0xe,(0x0,_0x186af2['Optional'])(_0x42a910))],_0xddaf92);let _0x174c95=class extends _0xf0d3b{constructor(_0x538d79,_0x797f9e,_0x1f0886,_0x50e6d8,_0x3e0144,_0x11903b,_0x14b554,_0x3b35ad,_0x11d5eb,_0x21de7a,_0x1a6dff,_0x1b3007,_0x512095,_0x37c434){const _0x2dde85=_0x4356c2;super(_0x538d79,_0x1f0886,_0x797f9e,_0x50e6d8,_0x3e0144,_0x11903b,_0x14b554,_0x3b35ad,_0x11d5eb,_0x21de7a,_0x1a6dff,_0x1b3007,_0x512095,_0x37c434),this[_0x2dde85(0x2e0)]=_0x538d79,this[_0x2dde85(0x306)]=_0x797f9e;}async[_0x4356c2(0x135)](){const _0x309c91=_0x4356c2;let _0x169b7a=await super[_0x309c91(0x135)]();return this['disposeWithMe'](this[_0x309c91(0x213)][_0x309c91(0x19e)]((_0x8a4eb0,_0x2b5872)=>{const _0x3b101b=_0x309c91;if(_0x8a4eb0['type']!==_0x186af2[_0x3b101b(0x2af)][_0x3b101b(0x367)]||_0x2b5872!=null&&_0x2b5872['fromCollab']||_0x2b5872!=null&&_0x2b5872[_0x3b101b(0x2dc)])return;let _0x20b62d=_0x8a4eb0[_0x3b101b(0x32d)];if((_0x20b62d==null?void 0x0:_0x20b62d[_0x3b101b(0x10e)])!==this[_0x3b101b(0x2e0)])return;let _0x4da329=_0x8a4eb0,_0x48ee0a=this[_0x3b101b(0x1d9)][_0x3b101b(0x371)][_0x3b101b(0x10c)](this[_0x3b101b(0x1d9)]['interceptor'][_0x3b101b(0x121)]()['COMPRESS_MUTATION_SEND'])([_0x4da329],this[_0x3b101b(0x129)])||[_0x4da329];this[_0x3b101b(0x6d)](_0x48ee0a[0x0]);})),_0x169b7a;}};_0x174c95=_0x223773([_0x9460ae(0x3,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x4,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11[_0x4356c2(0x366)])),_0x9460ae(0x5,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x18c)])),_0x9460ae(0x6,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x164f11[_0x4356c2(0x332)])),_0x9460ae(0x7,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x167cb4)),_0x9460ae(0x8,_0x186af2[_0x4356c2(0x20c)]),_0x9460ae(0x9,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0xa,_0x186af2['ICommandService']),_0x9460ae(0xb,_0x186af2['IPermissionService']),_0x9460ae(0xc,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x3348a1)),_0x9460ae(0xd,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x42a910))],_0x174c95);let _0x563fdb=(0x0,_0x186af2[_0x4356c2(0x163)])(_0x4356c2(0x9e));function _0x2f5d4b(_0x34f7ff){const _0x27f72e=_0x4356c2;let _0x299a4f=_0x34f7ff[_0x27f72e(0x244)],_0x5b66d1=JSON[_0x27f72e(0x1c3)](_0x299a4f);switch(_0x5b66d1['cmd']){case _0x53d7dd['CombCmd']['HEARTBEAT']:case _0x53d7dd[_0x27f72e(0x35c)][_0x27f72e(0x1e7)]:{let _0x50edba=_0x5b66d1[_0x27f72e(0x1de)];return{..._0x5b66d1,'data':_0x50edba,'cmd':_0x5b66d1[_0x27f72e(0x16f)]};}case _0x53d7dd[_0x27f72e(0x35c)]['JOIN']:{let _0x5ac9b2=_0x5b66d1['joinRsp'];return{..._0x5b66d1,'data':_0x5ac9b2,'cmd':_0x5b66d1[_0x27f72e(0x16f)]};}case _0x53d7dd['CombCmd'][_0x27f72e(0x211)]:{let _0x46f150=_0x5b66d1[_0x27f72e(0x229)];switch(_0x46f150[_0x27f72e(0x2ed)]){case _0x164f11['CollaborationEvent'][_0x27f72e(0x20f)]:var _0x411c9c;return{..._0x5b66d1,'data':{..._0x46f150,'data':(_0x411c9c=_0x46f150[_0x27f72e(0x1a8)])==null?void 0x0:_0x411c9c['cs']},'cmd':_0x5b66d1['cmd']};case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0x375)]:var _0x52f4f5;return{..._0x5b66d1,'data':{..._0x46f150,'data':(_0x52f4f5=_0x46f150['csAckEvent'])==null?void 0x0:_0x52f4f5['cs']},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)]['NEW_CHANGESETS']:var _0x40fc1d;return{..._0x5b66d1,'data':{..._0x46f150,'data':(_0x40fc1d=_0x46f150[_0x27f72e(0x2f2)])==null?void 0x0:_0x40fc1d['cs']},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0x25c)]:var _0x168312;return{..._0x5b66d1,'data':{..._0x46f150,'data':(_0x168312=_0x46f150['csRejEvent'])==null?void 0x0:_0x168312['cs']},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0x8d)]:var _0x222b7d;return{..._0x5b66d1,'data':{..._0x46f150,'data':(_0x222b7d=_0x46f150['csShouldRetryEvent'])==null?void 0x0:_0x222b7d['cs']},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)]['UPDATE_CURSOR']:return{..._0x5b66d1,'data':{..._0x46f150,'data':_0x46f150[_0x27f72e(0x281)]},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0x7a)]:return{..._0x5b66d1,'data':{..._0x46f150,'data':_0x46f150['joinEvent']},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11['CollaborationEvent'][_0x27f72e(0x253)]:return{..._0x5b66d1,'data':{..._0x46f150,'data':_0x46f150['leaveEvent']},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)]['LIVESHARE_NEW_HOST']:return{..._0x5b66d1,'data':{..._0x46f150,'data':_0x46f150[_0x27f72e(0x1f9)]},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0x1cb)]:case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0x7e)]:return{..._0x5b66d1,'data':{..._0x46f150,'data':_0x46f150[_0x27f72e(0x134)]},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)]['LIVESHARE_TERMINATE']:return{..._0x5b66d1,'data':{..._0x46f150,'data':_0x46f150[_0x27f72e(0x1f9)]},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0x295)]:return{..._0x5b66d1,'data':_0x46f150,'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0xb1)]:return{..._0x5b66d1,'data':{..._0x46f150,'data':_0x46f150['commentUpdateEvent']},'cmd':_0x5b66d1['cmd']};case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0x133)]:return{..._0x5b66d1,'data':{..._0x46f150,'data':_0x46f150[_0x27f72e(0x30a)]},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0x1fc)]:return{..._0x5b66d1,'data':{..._0x46f150,'data':_0x46f150[_0x27f72e(0x32a)]},'cmd':_0x5b66d1[_0x27f72e(0x16f)]};case _0x164f11[_0x27f72e(0x1f7)][_0x27f72e(0x32b)]:return{..._0x5b66d1,'data':{..._0x46f150,'data':_0x46f150[_0x27f72e(0x313)]},'cmd':_0x5b66d1['cmd']};default:return _0x5b66d1;}}default:return _0x5b66d1;}}function _0x48167a(_0xd22b39){const _0x3f8858=_0x4356c2;switch(_0xd22b39[_0x3f8858(0x16f)]){case _0x53d7dd[_0x3f8858(0x35c)]['HEARTBEAT']:case _0x53d7dd[_0x3f8858(0x35c)]['HELLO']:return JSON[_0x3f8858(0x23a)]({'cmd':_0xd22b39[_0x3f8858(0x16f)],'routeKey':_0xd22b39[_0x3f8858(0x34c)]});case _0x53d7dd[_0x3f8858(0x35c)][_0x3f8858(0x158)]:{let _0x15a013;switch(_0xd22b39[_0x3f8858(0x244)][_0x3f8858(0x2ed)]){case _0x164f11[_0x3f8858(0x1f7)][_0x3f8858(0x165)]:_0x15a013={'eventID':_0x164f11['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0xd22b39[_0x3f8858(0x244)][_0x3f8858(0x244)]};break;case _0x164f11[_0x3f8858(0x1f7)][_0x3f8858(0x253)]:_0x15a013={'eventID':_0x164f11['CollaborationEvent'][_0x3f8858(0x253)],'leaveEvent':_0xd22b39[_0x3f8858(0x244)][_0x3f8858(0x244)]};break;case _0x164f11['CollaborationEvent'][_0x3f8858(0x7a)]:_0x15a013={'eventID':_0x164f11[_0x3f8858(0x1f7)]['USERS_ENTER'],'joinEvent':_0xd22b39[_0x3f8858(0x244)]['data']};break;case _0x164f11[_0x3f8858(0x1f7)][_0x3f8858(0x81)]:_0x15a013={'eventID':_0x164f11[_0x3f8858(0x1f7)][_0x3f8858(0x81)],'liveShareNewHost':_0xd22b39[_0x3f8858(0x244)][_0x3f8858(0x244)]};break;case _0x164f11[_0x3f8858(0x1f7)][_0x3f8858(0x7e)]:_0x15a013={'eventID':_0x164f11['CollaborationEvent'][_0x3f8858(0x7e)],'liveShareOperation':_0xd22b39[_0x3f8858(0x244)][_0x3f8858(0x244)]};break;case _0x164f11[_0x3f8858(0x1f7)][_0x3f8858(0x152)]:_0x15a013={'eventID':_0x164f11['CollaborationEvent'][_0x3f8858(0x152)],'liveShareTerminate':_0xd22b39['data'][_0x3f8858(0x244)]};break;case _0x164f11['CollaborationEvent'][_0x3f8858(0xdb)]:_0x15a013={'eventID':_0x164f11['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0xd22b39[_0x3f8858(0x244)][_0x3f8858(0x244)]};break;case _0x164f11[_0x3f8858(0x1f7)][_0x3f8858(0x1cb)]:_0x15a013={'eventID':_0x164f11[_0x3f8858(0x1f7)][_0x3f8858(0x1cb)]};break;default:_0x15a013={'eventID':_0xd22b39[_0x3f8858(0x244)][_0x3f8858(0x2ed)]};}return JSON[_0x3f8858(0x23a)]({'cmd':_0xd22b39[_0x3f8858(0x16f)],'routeKey':_0xd22b39[_0x3f8858(0x34c)],'collaMsg':_0x15a013});}case _0x53d7dd['CombCmd'][_0x3f8858(0xe8)]:return JSON['stringify']({'cmd':_0xd22b39['cmd'],'routeKey':_0xd22b39[_0x3f8858(0x34c)],'joinReq':_0xd22b39[_0x3f8858(0x244)]});case _0x53d7dd[_0x3f8858(0x35c)][_0x3f8858(0x106)]:return JSON[_0x3f8858(0x23a)]({'cmd':_0xd22b39[_0x3f8858(0x16f)],'routeKey':_0xd22b39[_0x3f8858(0x34c)],'leaveReq':_0xd22b39[_0x3f8858(0x244)]});default:throw Error(_0x3f8858(0x26f));}}let _0x336497=(0x0,_0x186af2[_0x4356c2(0x163)])(_0x4356c2(0x82));function _0x5d8c08(_0x54c3eb,_0x18be15,_0x418cb4){const _0x1397ba=_0x4356c2;return _0x54c3eb+'/'+_0x18be15+_0x1397ba(0x21f)+_0x418cb4+_0x1397ba(0x380);}let _0x10f305=class extends _0x186af2[_0x4356c2(0x310)]{constructor(_0x4ce651,_0x2681ed,_0x5e8a17,_0x38f7d4,_0x5134ee){const _0xe2ba78=_0x4356c2;super(),this['_injector']=_0x4ce651,this[_0xe2ba78(0x353)]=_0x2681ed,this[_0xe2ba78(0x150)]=_0x5e8a17,this[_0xe2ba78(0x89)]=_0x38f7d4,this['_snapshotServerService']=_0x5134ee;}[_0x4356c2(0x110)](_0x142fff){const _0x1992e5=_0x4356c2;let _0x11edab=this['_injector'][_0x1992e5(0x217)](_0x38ca3a['ISocketService']);if(!_0x11edab)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x564044=_0x11edab[_0x1992e5(0xf1)](_0x142fff);if(!_0x564044)throw Error(_0x1992e5(0xa1));let _0x40caf8=new _0x186af2[(_0x1992e5(0x2ec))](),_0x3164fe=new _0x4f8104[(_0x1992e5(0x147))]();_0x40caf8['add'](_0x564044['close$'][_0x1992e5(0x1fe)](_0x1e2135=>_0x3164fe[_0x1992e5(0x214)](_0x1e2135))),_0x40caf8[_0x1992e5(0x2f1)]((0x0,_0x186af2['toDisposable'])(()=>_0x3164fe[_0x1992e5(0x2e6)]()));let _0x4048aa=new _0x4f8104['Subject']();_0x40caf8[_0x1992e5(0x2f1)](_0x564044[_0x1992e5(0x236)][_0x1992e5(0x1fe)](_0x3731cd=>_0x4048aa['next'](_0x3731cd))),_0x40caf8[_0x1992e5(0x2f1)]((0x0,_0x186af2[_0x1992e5(0x312)])(()=>_0x4048aa[_0x1992e5(0x2e6)]()));let _0x44a6e5=new _0x4f8104[(_0x1992e5(0x147))]();_0x40caf8[_0x1992e5(0x2f1)](_0x564044['message$'][_0x1992e5(0x1fe)](_0x5a0937=>{const _0x233254=_0x1992e5;let _0x57f6ef=_0x2f5d4b(_0x5a0937);_0x44a6e5[_0x233254(0x214)](_0x57f6ef);})),_0x40caf8[_0x1992e5(0x2f1)]((0x0,_0x186af2[_0x1992e5(0x312)])(()=>_0x44a6e5['complete']()));let _0xf43967,_0x74f075=()=>{const _0x394fc7=_0x1992e5;_0x4048aa[_0x394fc7(0x214)](new Event(_0x394fc7(0x2df))),_0x3164fe[_0x394fc7(0x214)](new Event(_0x394fc7(0x2df))),_0xf43967[_0x394fc7(0x223)]();};return _0xf43967={'memberID':'','close$':_0x3164fe[_0x1992e5(0x1ff)](),'error$':_0x4048aa[_0x1992e5(0x1ff)](),'open$':_0x564044[_0x1992e5(0x27c)],'message$':_0x44a6e5[_0x1992e5(0x1ff)](),'send':_0x12738f=>{const _0x332cd2=_0x1992e5;if(_0x12738f[_0x332cd2(0x16f)]===_0x53d7dd[_0x332cd2(0x35c)][_0x332cd2(0x158)]){if(_0x12738f[_0x332cd2(0x244)][_0x332cd2(0x2ed)]===_0x164f11['CollaborationEvent'][_0x332cd2(0xfd)]){this[_0x332cd2(0x2f5)](_0xf43967,_0x12738f[_0x332cd2(0x244)])[_0x332cd2(0x1c2)](_0x2b00da=>{const _0x38826d=_0x332cd2;this['_logService'][_0x38826d(0x16b)](_0x2b00da),_0x74f075();});return;}if(_0x12738f[_0x332cd2(0x244)][_0x332cd2(0x2ed)]===_0x164f11[_0x332cd2(0x1f7)]['FETCH_MISSING']){let _0x5e66c1=_0x12738f[_0x332cd2(0x244)];this['_fetchMissChangesets'](_0x5e66c1)[_0x332cd2(0x1ad)](_0x566513=>{const _0x37a844=_0x332cd2;_0x44a6e5[_0x37a844(0x214)]({'cmd':_0x53d7dd['CombCmd']['RECV'],'code':_0x53d7dd['CmdRspCode']['OK'],'routeKey':_0x5e66c1[_0x37a844(0x244)][_0x37a844(0x2e0)],'routeType':'','data':{'eventID':_0x164f11[_0x37a844(0x1f7)][_0x37a844(0x383)],'data':{'changesets':_0x566513}}});})[_0x332cd2(0x1c2)](_0x26b66b=>{const _0x1b7ed9=_0x332cd2;this[_0x1b7ed9(0x89)]['error'](_0x26b66b),_0x74f075();});return;}}_0x564044['send'](_0x48167a(_0x12738f));},'close':()=>{const _0x5c3375=_0x1992e5;_0x564044[_0x5c3375(0x223)](),_0x40caf8[_0x5c3375(0x2f7)]();}},_0xf43967;}async[_0x4356c2(0x2f5)](_0x661f3f,_0x3e2a54){const _0x2d6bf2=_0x4356c2;var _0x3e3ac1;let {unitType:_0x18ba20,unitID:_0x1697a2,changeset:_0x2081a8}=_0x3e2a54[_0x2d6bf2(0x244)],_0x178e55={'unitID':_0x1697a2,'memberID':_0x661f3f[_0x2d6bf2(0x2ba)],'type':_0x18ba20,'changeset':(0x0,_0x164f11['parseChangesetToProtocol'])(_0x2081a8)},_0xeba66b=this[_0x2d6bf2(0x150)]['getConfig'](_0x446dbc),_0x57d2ef=_0x5d8c08((_0x3e3ac1=_0xeba66b==null?void 0x0:_0xeba66b[_0x2d6bf2(0x329)])==null?_0x2d6bf2(0x16a):_0x3e3ac1,_0x18ba20,_0x1697a2);try{await this[_0x2d6bf2(0x353)][_0x2d6bf2(0x1bc)](_0x57d2ef,{'body':_0x178e55});}catch(_0x141d0b){throw this['_logService'][_0x2d6bf2(0x16b)](_0x2d6bf2(0x113),_0x2d6bf2(0x1be)),_0x141d0b;}}async[_0x4356c2(0x338)](_0x19c9bd){const _0x251f01=_0x4356c2;let {unitID:_0x82338e,from:_0x2b6527,to:_0x18088b,unitType:_0x351f1e}=_0x19c9bd[_0x251f01(0x244)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x82338e,'type':_0x351f1e,'from':_0x2b6527,'to':_0x18088b}))['changesets']['map'](_0x218ce5=>((_0x218ce5[_0x251f01(0x1d0)]===null||_0x218ce5[_0x251f01(0x1d0)]===void 0x0)&&(_0x218ce5[_0x251f01(0x1d0)]=[]),_0x218ce5));}};_0x10f305=_0x223773([_0x9460ae(0x0,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x1,(0x0,_0x186af2['Inject'])(_0x38ca3a['HTTPService'])),_0x9460ae(0x2,_0x186af2[_0x4356c2(0x2cd)]),_0x9460ae(0x3,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0x4,_0x164f11[_0x4356c2(0x1f5)])],_0x10f305);let _0x4145e5=class extends _0x186af2[_0x4356c2(0x310)]{get[_0x4356c2(0x26b)](){const _0x1aa98f=_0x4356c2;return this[_0x1aa98f(0x311)][_0x1aa98f(0x388)]();}constructor(_0x17b379,_0x869168,_0x9ef391,_0x148d4a,_0x367691,_0x51db5d){const _0x2014e5=_0x4356c2;super(),this['_injector']=_0x17b379,this[_0x2014e5(0x89)]=_0x869168,this['_configService']=_0x9ef391,this[_0x2014e5(0xcc)]=_0x148d4a,this[_0x2014e5(0x255)]=_0x367691,this['_networkConditionService']=_0x51db5d,_0x1fdd2e(this,_0x2014e5(0x311),new _0x4f8104[(_0x2014e5(0x195))](void 0x0)),_0x1fdd2e(this,_0x2014e5(0x1bf),this['_socket$'][_0x2014e5(0x1ff)]()),_0x1fdd2e(this,_0x2014e5(0x64),null),_0x1fdd2e(this,_0x2014e5(0x172),new Map()),_0x1fdd2e(this,_0x2014e5(0x142),new _0x4f8104[(_0x2014e5(0x195))](0x0)),_0x1fdd2e(this,_0x2014e5(0x289),this['_status$'][_0x2014e5(0x1ff)]()),_0x1fdd2e(this,_0x2014e5(0xe4),!0x1),_0x1fdd2e(this,_0x2014e5(0x260),void 0x0),_0x1fdd2e(this,_0x2014e5(0x1cd),0x0),_0x1fdd2e(this,_0x2014e5(0xd3),null),_0x1fdd2e(this,_0x2014e5(0x2e5),void 0x0),_0x1fdd2e(this,_0x2014e5(0x2ca),void 0x0),this[_0x2014e5(0x203)]();}['_listenToNetworkCondition'](){const _0x9769b9=_0x4356c2;this[_0x9769b9(0xcb)]&&this['disposeWithMe'](this[_0x9769b9(0xcb)][_0x9769b9(0x344)][_0x9769b9(0x1fe)](_0x5508c8=>{const _0x512446=_0x9769b9;_0x5508c8&&!this[_0x512446(0x26b)]&&this[_0x512446(0x137)](),_0x5508c8||this[_0x512446(0x1ba)]();}));}['dispose'](){const _0x1fd13c=_0x4356c2;var _0x3ce02c;super[_0x1fd13c(0x2f7)](),(_0x3ce02c=this['_socketMessageSubscription'])==null||_0x3ce02c[_0x1fd13c(0x361)](),this[_0x1fd13c(0xd3)]=null,this[_0x1fd13c(0x209)](),this[_0x1fd13c(0x23d)](),this[_0x1fd13c(0x70)](),this[_0x1fd13c(0x172)]['forEach'](_0x45359b=>_0x45359b[_0x1fd13c(0x2f7)]()),this[_0x1fd13c(0x172)][_0x1fd13c(0x1f1)](),this[_0x1fd13c(0x142)][_0x1fd13c(0x2e6)]();}async[_0x4356c2(0x277)](_0x19cb4a){const _0x859ae5=_0x4356c2;if(this[_0x859ae5(0x172)][_0x859ae5(0x14f)](_0x19cb4a))return this[_0x859ae5(0x172)]['get'](_0x19cb4a);this['_tryEnsureSocket']();let _0x4bc2ce=this[_0x859ae5(0x31b)][_0x859ae5(0x118)](_0x5a1406,_0x19cb4a,this['_socket$'][_0x859ae5(0x1ff)]());return this['_sessions'][_0x859ae5(0x25f)](_0x19cb4a,_0x4bc2ce),_0x4bc2ce;}[_0x4356c2(0xe5)](_0x25ef9f){const _0x54dc31=_0x4356c2;let _0x10501f=this[_0x54dc31(0x172)][_0x54dc31(0x217)](_0x25ef9f);if(_0x10501f&&(this[_0x54dc31(0x172)][_0x54dc31(0x2d9)](_0x25ef9f),_0x10501f['close']()),!this[_0x54dc31(0x172)][_0x54dc31(0x35a)]){var _0x41447b;(_0x41447b=this[_0x54dc31(0x26b)])==null||_0x41447b[_0x54dc31(0x223)]();}}[_0x4356c2(0x137)](){const _0x5e77db=_0x4356c2;this['_retryCount']=0x0,this['_clearRetryConnectingTimer'](),this[_0x5e77db(0x2ae)]();}[_0x4356c2(0x209)](){const _0x25584e=_0x4356c2;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x25584e(0x260)]),this['_retryConnectingTimer']=null);}async['_createSocket'](){const _0xac5a63=_0x4356c2;var _0x1b47a7;let _0x356505=this[_0xac5a63(0x150)][_0xac5a63(0x2f0)](_0x446dbc),_0x4f215d=(_0x1b47a7=_0x356505==null?void 0x0:_0x356505[_0xac5a63(0x93)])==null?_0x34d797:_0x1b47a7,_0x37e5a2=await this[_0xac5a63(0xcc)][_0xac5a63(0xf1)](_0x4f215d);return this['_candidateSocket']=_0x37e5a2,_0x37e5a2;}async[_0x4356c2(0x22b)](){const _0xdbd2c3=_0x4356c2;try{var _0x496795,_0x5c503f;let _0x286909=(_0x496795=(_0x5c503f=this[_0xdbd2c3(0x26b)])==null?this[_0xdbd2c3(0x64)]:_0x5c503f)==null?await this['_createSocket']():_0x496795;if(_0x286909){var _0x51dca3;let _0xbf52da=_0x286909[_0xdbd2c3(0x31e)];_0x286909[_0xdbd2c3(0x31e)]=_0x584a1d=>(_0x584a1d[_0xdbd2c3(0x16f)]!==_0x53d7dd[_0xdbd2c3(0x35c)][_0xdbd2c3(0x106)]&&this[_0xdbd2c3(0x290)](),_0xbf52da['apply'](_0x286909,[_0x584a1d])),(_0x51dca3=this[_0xdbd2c3(0xd3)])==null||_0x51dca3[_0xdbd2c3(0x361)](),this[_0xdbd2c3(0xd3)]=null,this[_0xdbd2c3(0xd3)]=_0x286909['message$'][_0xdbd2c3(0x1fe)](_0x251882=>this[_0xdbd2c3(0x105)](_0x286909,_0x251882)),_0x286909['error$'][_0xdbd2c3(0xc2)]((0x0,_0x55072d[_0xdbd2c3(0x180)])(0x1))['subscribe'](_0x5629f2=>this[_0xdbd2c3(0x89)][_0xdbd2c3(0x16b)](_0xdbd2c3(0x254),_0x5629f2)),_0x286909[_0xdbd2c3(0x27c)][_0xdbd2c3(0xc2)]((0x0,_0x55072d[_0xdbd2c3(0x180)])(0x1))[_0xdbd2c3(0x1fe)](()=>{const _0x48d60e=_0xdbd2c3;this[_0x48d60e(0x317)](_0x286909);}),_0x286909[_0xdbd2c3(0x12f)][_0xdbd2c3(0xc2)]((0x0,_0x55072d[_0xdbd2c3(0x180)])(0x1))[_0xdbd2c3(0x1fe)](_0x25fb1f=>{const _0x5dd4c7=_0xdbd2c3;this[_0x5dd4c7(0x89)]['debug'](_0x5dd4c7(0x1a5),_0x5dd4c7(0x348),_0x25fb1f),this[_0x5dd4c7(0x33a)]();});}}catch(_0x5781eb){this[_0xdbd2c3(0x89)]['error'](_0x5781eb),this[_0xdbd2c3(0x33a)]();}}['_onConnectionOpen'](_0x2a9dba){const _0x20a938=_0x4356c2;this['_logService'][_0x20a938(0xc5)](_0x20a938(0x1a5),_0x20a938(0xf7)),_0x2a9dba['send']({'cmd':_0x53d7dd[_0x20a938(0x35c)][_0x20a938(0x1e7)]}),this[_0x20a938(0x290)]();}[_0x4356c2(0x1ba)](){const _0x3858d5=_0x4356c2;this[_0x3858d5(0xe4)]=!0x1,this['_candidateSocket']=null,this[_0x3858d5(0x142)]['next'](0x2),this[_0x3858d5(0x311)][_0x3858d5(0x214)](null),this[_0x3858d5(0x23d)](),this[_0x3858d5(0x70)]();}[_0x4356c2(0x33a)](){const _0x18e7b1=_0x4356c2;var _0x3f7739;this[_0x18e7b1(0x1ba)](),this['_retryCount']<((_0x3f7739=this['_configService'][_0x18e7b1(0x2f0)]('RETRY_CONNECTING_MAX_COUNT'))==null?0x3:_0x3f7739)?(this['_collaborationUIEventService'][_0x18e7b1(0x27e)]({'id':_0x18e7b1(0x258)}),this['_tryReconnect']()):this[_0x18e7b1(0x255)]['emitEvent']({'id':'SOCKET_FAILED'});}[_0x4356c2(0x2ae)](){const _0x47dac2=_0x4356c2;var _0x48e0c7;let _0x49ef58=this[_0x47dac2(0x1cd)],_0x1799b4=this[_0x47dac2(0x150)][_0x47dac2(0x2f0)](_0x446dbc),_0x3d4ef6=_0x49ef58===0x0?0x0:((_0x48e0c7=_0x1799b4==null?void 0x0:_0x1799b4['retryConnectingInterval'])==null?0x4e20:_0x48e0c7)*0x2**_0x49ef58;this['_retryConnectingTimer']=setTimeout(()=>{const _0x35bb30=_0x47dac2;clearTimeout(this[_0x35bb30(0x260)]),this[_0x35bb30(0x260)]=null,this[_0x35bb30(0x22b)]();},_0x3d4ef6),this[_0x47dac2(0x1cd)]+=0x1;}[_0x4356c2(0x105)](_0x174116,_0x4b0ad0){const _0x2ccfaa=_0x4356c2;let {cmd:_0x56e57b}=_0x4b0ad0;_0x56e57b===_0x53d7dd['CombCmd']['HELLO']&&!this[_0x2ccfaa(0xe4)]&&(_0x174116[_0x2ccfaa(0x2ba)]=_0x4b0ad0[_0x2ccfaa(0x244)][_0x2ccfaa(0x2ba)],this[_0x2ccfaa(0x311)][_0x2ccfaa(0x214)](_0x174116),this['_status$'][_0x2ccfaa(0x214)](0x3),this[_0x2ccfaa(0xe4)]=!0x0,this[_0x2ccfaa(0x64)]=null),_0x56e57b===_0x53d7dd[_0x2ccfaa(0x35c)][_0x2ccfaa(0x238)]&&this['_clearTimeoutTimer'](),this[_0x2ccfaa(0x290)]();}[_0x4356c2(0x290)](){const _0x5d0ab5=_0x4356c2;var _0x9fe0fe;this[_0x5d0ab5(0x70)](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x9fe0fe=this['_configService'][_0x5d0ab5(0x2f0)](_0x5d0ab5(0x68)))==null?0x7530:_0x9fe0fe);}[_0x4356c2(0x2b2)](){const _0x1a30ec=_0x4356c2;this['_socket'][_0x1a30ec(0x31e)]({'cmd':_0x53d7dd['CombCmd'][_0x1a30ec(0x238)]}),this['_waitForHeartbeatResponse']();}[_0x4356c2(0xbc)](){const _0x1659ad=_0x4356c2;var _0x324b90;this[_0x1659ad(0x2ca)]=setTimeout(()=>this[_0x1659ad(0x33a)](),(_0x324b90=this[_0x1659ad(0x150)][_0x1659ad(0x2f0)](_0x1659ad(0x2bc)))==null?_0x52c9d4:_0x324b90);}[_0x4356c2(0x70)](){const _0x35237e=_0x4356c2;this[_0x35237e(0x2e5)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x35237e(0x2e5)]=null);}['_clearTimeoutTimer'](){const _0x32332=_0x4356c2;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x32332(0x2ca)]),this[_0x32332(0x2ca)]=null);}};_0x4145e5=_0x223773([_0x9460ae(0x0,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x1,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0x2,_0x186af2[_0x4356c2(0x2cd)]),_0x9460ae(0x3,_0x336497),_0x9460ae(0x4,(0x0,_0x186af2['Inject'])(_0x167cb4)),_0x9460ae(0x5,(0x0,_0x186af2['Optional'])(_0x563fdb))],_0x4145e5);let _0x4f82e0=class extends _0x186af2['RxDisposable']{constructor(_0x2a19a0,_0x4281ee,_0x7a4aba,_0x13a71a){const _0x2fa9b2=_0x4356c2;var _0x4c3284;super(),this[_0x2fa9b2(0x31b)]=_0x2a19a0,this[_0x2fa9b2(0x18e)]=_0x4281ee,this['_configService']=_0x7a4aba,this[_0x2fa9b2(0x129)]=_0x13a71a,_0x1fdd2e(this,_0x2fa9b2(0xf2),new Map()),_0x1fdd2e(this,_0x2fa9b2(0x2fb),new _0x4f8104[(_0x2fa9b2(0x147))]()),_0x1fdd2e(this,'entityInit$',this[_0x2fa9b2(0x2fb)][_0x2fa9b2(0x1ff)]()),((_0x4c3284=this[_0x2fa9b2(0x150)][_0x2fa9b2(0x2f0)]('collaboration-client.config'))==null?void 0x0:_0x4c3284[_0x2fa9b2(0x2a7)])!==!0x1&&this['_init']();}[_0x4356c2(0x2f7)](){const _0x12f83d=_0x4356c2;super[_0x12f83d(0x2f7)](),this[_0x12f83d(0xf2)][_0x12f83d(0xc1)](_0x27f533=>_0x27f533[_0x12f83d(0x2f7)]()),this[_0x12f83d(0xf2)][_0x12f83d(0x1f1)]();}[_0x4356c2(0xe3)](_0x4c3ace){const _0x193dde=_0x4356c2;var _0x42041d;return(_0x42041d=this[_0x193dde(0xf2)][_0x193dde(0x217)](_0x4c3ace))==null?null:_0x42041d;}[_0x4356c2(0x208)](_0x93c9d){const _0x3d9bb7=_0x4356c2;let _0x11a9f2=this[_0x3d9bb7(0xe3)](_0x93c9d);return _0x11a9f2?(0x0,_0x4f8104['of'])(_0x11a9f2):this[_0x3d9bb7(0x2fb)][_0x3d9bb7(0xc2)]((0x0,_0x55072d[_0x3d9bb7(0x323)])(_0xbcfc44=>_0xbcfc44['unitID']===_0x93c9d));}['readyForCollab'](_0x11c6dd){const _0x1cecd7=_0x4356c2;return(0x0,_0x4f8104[_0x1cecd7(0x336)])(this['getCollabEntity$'](_0x11c6dd)[_0x1cecd7(0xc2)]((0x0,_0x55072d[_0x1cecd7(0xff)])(()=>void 0x0)));}[_0x4356c2(0x135)](){const _0x47f7ed=_0x4356c2;this[_0x47f7ed(0x129)][_0x47f7ed(0x108)](_0x186af2[_0x47f7ed(0xe6)][_0x47f7ed(0x2c0)])[_0x47f7ed(0xc2)]((0x0,_0x4f8104[_0x47f7ed(0x315)])(this[_0x47f7ed(0x345)]),(0x0,_0x55072d['delay'])(0x10))[_0x47f7ed(0x1fe)](async _0x2fa51e=>{const _0x32b1f5=_0x47f7ed;let _0x2e6793=_0x2fa51e[_0x32b1f5(0x1e8)][_0x32b1f5(0x15f)](),_0x468ee6=await this[_0x32b1f5(0xe7)](_0x2e6793,_0x186af2[_0x32b1f5(0xe6)]['UNIVER_SHEET']);this['_entities'][_0x32b1f5(0x25f)](_0x2e6793,_0x468ee6);}),this[_0x47f7ed(0x129)]['getTypeOfUnitAdded$'](_0x186af2[_0x47f7ed(0xe6)][_0x47f7ed(0x1cf)])['pipe']((0x0,_0x4f8104[_0x47f7ed(0x315)])(this[_0x47f7ed(0x345)]),(0x0,_0x55072d[_0x47f7ed(0x26e)])(0x10))['pipe']((0x0,_0x55072d[_0x47f7ed(0x323)])(_0x433140=>!_0x433140[_0x47f7ed(0x1e8)][_0x47f7ed(0x15f)]()[_0x47f7ed(0x65)]('__')))[_0x47f7ed(0x1fe)](async _0x15b8c6=>{const _0x1cb515=_0x47f7ed;let _0x5a85d9=_0x15b8c6[_0x1cb515(0x1e8)][_0x1cb515(0x15f)](),_0x376379=await this['_startCollaboration'](_0x5a85d9,_0x186af2['UniverInstanceType'][_0x1cb515(0x1cf)]);this['_entities']['set'](_0x5a85d9,_0x376379);}),this[_0x47f7ed(0x129)]['getTypeOfUnitAdded$'](_0x186af2['UniverInstanceType']['UNIVER_SLIDE'])[_0x47f7ed(0xc2)]((0x0,_0x4f8104['takeUntil'])(this[_0x47f7ed(0x345)]),(0x0,_0x55072d[_0x47f7ed(0x26e)])(0x10))['subscribe'](async _0x462345=>{const _0x4320ea=_0x47f7ed;let _0x2a7463=_0x462345[_0x4320ea(0x1e8)][_0x4320ea(0x15f)](),_0x17bd26=await this[_0x4320ea(0xe7)](_0x2a7463,_0x186af2[_0x4320ea(0xe6)][_0x4320ea(0xbd)]);this['_entities'][_0x4320ea(0x25f)](_0x2a7463,_0x17bd26);}),this[_0x47f7ed(0x129)][_0x47f7ed(0x108)](_0x186af2['UniverInstanceType']['UNIVER_BASE'])[_0x47f7ed(0xc2)]((0x0,_0x4f8104[_0x47f7ed(0x315)])(this[_0x47f7ed(0x345)]),(0x0,_0x55072d[_0x47f7ed(0x26e)])(0x10))['subscribe'](async _0x556eae=>{const _0x12744e=_0x47f7ed;let _0x217d29=_0x556eae[_0x12744e(0x1e8)][_0x12744e(0x15f)](),_0xc17350=await this[_0x12744e(0xe7)](_0x217d29,_0x186af2[_0x12744e(0xe6)][_0x12744e(0x32f)]);this[_0x12744e(0xf2)]['set'](_0x217d29,_0xc17350);}),(0x0,_0x4f8104[_0x47f7ed(0x14d)])(this[_0x47f7ed(0x129)][_0x47f7ed(0x1ca)](_0x186af2[_0x47f7ed(0xe6)][_0x47f7ed(0x2c0)]),this[_0x47f7ed(0x129)][_0x47f7ed(0x1ca)](_0x186af2[_0x47f7ed(0xe6)][_0x47f7ed(0x1cf)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x186af2[_0x47f7ed(0xe6)][_0x47f7ed(0xbd)]),this[_0x47f7ed(0x129)]['getTypeOfUnitDisposed$'](_0x186af2[_0x47f7ed(0xe6)][_0x47f7ed(0x32f)]))[_0x47f7ed(0xc2)]((0x0,_0x4f8104[_0x47f7ed(0x315)])(this[_0x47f7ed(0x345)]))[_0x47f7ed(0x1fe)](_0x1eb867=>{const _0x314f66=_0x47f7ed;let _0x317199=_0x1eb867[_0x314f66(0x15f)](),_0x3098da=this['_entities'][_0x314f66(0x217)](_0x317199);_0x3098da&&(_0x3098da[_0x314f66(0x2f7)](),this['_entities'][_0x314f66(0x2d9)](_0x317199));});}async['_startCollaboration'](_0x270d2b,_0x38f91b){const _0x1bb59c=_0x4356c2;let _0x2a11a7=await this['_collabSessionService']['requireSession'](_0x270d2b),_0x498147=this[_0x1bb59c(0x31b)]['createInstance'](this[_0x1bb59c(0x84)](_0x38f91b),_0x270d2b,_0x38f91b,_0x2a11a7);return await _0x498147[_0x1bb59c(0x186)](),this[_0x1bb59c(0x2fb)][_0x1bb59c(0x214)](_0x498147),_0x498147;}[_0x4356c2(0x84)](_0x4779e3){const _0x315d0f=_0x4356c2;switch(_0x4779e3){case _0x186af2[_0x315d0f(0xe6)][_0x315d0f(0x1cf)]:return _0xe5992c;case _0x186af2['UniverInstanceType'][_0x315d0f(0x2c0)]:return _0xddaf92;case _0x186af2[_0x315d0f(0xe6)][_0x315d0f(0xbd)]:return _0x174c95;case _0x186af2[_0x315d0f(0xe6)][_0x315d0f(0x32f)]:return _0x460a9b;default:throw Error(_0x315d0f(0x243)+_0x4779e3);}}};_0x4f82e0=_0x223773([_0x9460ae(0x0,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2['Injector'])),_0x9460ae(0x1,(0x0,_0x186af2['Inject'])(_0x4145e5)),_0x9460ae(0x2,_0x186af2[_0x4356c2(0x2cd)]),_0x9460ae(0x3,_0x186af2['IUniverInstanceService'])],_0x4f82e0);var _0x4a354b=_0x4356c2(0x264),_0x2aeadb=_0x4356c2(0xbb);let _0x343ba3=class extends _0x186af2['Disposable']{constructor(_0x321dce,_0x53439e){const _0x26a982=_0x4356c2;super(),this[_0x26a982(0x129)]=_0x321dce,this[_0x26a982(0x150)]=_0x53439e,this[_0x26a982(0x135)]();}['_init'](){const _0x3bae16=_0x4356c2;this[_0x3bae16(0xa5)](this[_0x3bae16(0x129)][_0x3bae16(0x161)]['subscribe'](()=>{const _0x26b055=_0x3bae16;var _0x48e71a;let _0x1a5674=this[_0x26b055(0x129)][_0x26b055(0x1a6)](),_0xf7454b=(_0x48e71a=this[_0x26b055(0x150)][_0x26b055(0x2f0)](_0x26b055(0x25a)))==null?'Univer':_0x48e71a;_0x1a5674 instanceof _0x186af2['Workbook']&&(_0xf7454b=_0x1a5674[_0x26b055(0x139)]),document[_0x26b055(0x397)]=_0xf7454b;}));}};_0x343ba3=_0x223773([_0x9460ae(0x0,_0x186af2['IUniverInstanceService']),_0x9460ae(0x1,_0x186af2['IConfigService'])],_0x343ba3);let _0x1826ab=function(_0x24fb4f){const _0x58f8f9=_0x4356c2;return _0x24fb4f[_0x58f8f9(0x2c5)]=_0x58f8f9(0x2c5),_0x24fb4f[_0x58f8f9(0x21b)]=_0x58f8f9(0x21b),_0x24fb4f[_0x58f8f9(0x2d2)]='BASE64',_0x24fb4f;}({}),_0x52783b=(0x0,_0x186af2[_0x4356c2(0x163)])('base-ui.attachment-io.service'),_0x36aec2=class{constructor(_0xd6cead,_0x1f9aaa,_0x41c102){const _0x4b2614=_0x4356c2;this[_0x4b2614(0x353)]=_0xd6cead,this[_0x4b2614(0x150)]=_0x1f9aaa,this[_0x4b2614(0x129)]=_0x41c102;}['getUploadOptions'](){const _0x2fa89c=_0x4356c2;var _0x1f424;return(_0x1f424=this[_0x2fa89c(0x206)]()[_0x2fa89c(0x1cc)])==null?{}:_0x1f424;}async[_0x4356c2(0x30e)](_0x57a3a2){const _0x2352dd=_0x4356c2;let _0x48662e=this[_0x2352dd(0x24f)]();if(_0x939ee5(_0x57a3a2,_0x48662e),_0x48662e[_0x2352dd(0xba)])return _0x48662e[_0x2352dd(0xba)](_0x57a3a2);let _0x4f08ba=await this[_0x2352dd(0x11c)](_0x57a3a2);return{'id':_0x4f08ba,'name':_0x57a3a2[_0x2352dd(0x139)],'mimeType':_0x57a3a2[_0x2352dd(0x306)],'size':_0x57a3a2[_0x2352dd(0x35a)],'sourceType':_0x2352dd(0x21b),'source':_0x4f08ba};}async[_0x4356c2(0x11c)](_0x126bc4){const _0x4b67f5=_0x4356c2;let _0x2fdb8=this[_0x4b67f5(0x129)]['getFocusedUnit'](),_0x1cf66c=_0x2fdb8==null?void 0x0:_0x2fdb8[_0x4b67f5(0x15f)]();if(!_0x1cf66c)throw Error(_0x4b67f5(0xda));let _0x5ee5f4=new FormData();_0x5ee5f4[_0x4b67f5(0x347)]('file',_0x126bc4);let _0x266d6b=this[_0x4b67f5(0xc9)]()+_0x4b67f5(0x231)+_0x126bc4[_0x4b67f5(0x35a)][_0x4b67f5(0x179)]()+_0x4b67f5(0x26a)+_0x53d7dd[_0x4b67f5(0xc3)]['UnitEmbedded']+'&assign='+encodeURIComponent(_0x1cf66c),_0x53b9d0=(await this['_httpService'][_0x4b67f5(0x1bc)](_0x266d6b,{'body':_0x5ee5f4}))['body'][_0x4b67f5(0x8f)];if(typeof _0x53b9d0!='string'||!_0x53b9d0)throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.');return _0x53b9d0;}['_getUploadFileURL'](){const _0x59ca17=_0x4356c2;var _0x1b4956;return(_0x1b4956=this[_0x59ca17(0x206)]()[_0x59ca17(0x2ab)])==null?'/universer-api/stream/file/upload':_0x1b4956;}[_0x4356c2(0x206)](){const _0x3c6014=_0x4356c2;var _0x1c0902;return(_0x1c0902=this[_0x3c6014(0x150)][_0x3c6014(0x2f0)](_0x3c6014(0x321)))==null?{}:_0x1c0902;}};_0x36aec2=_0x223773([_0x9460ae(0x0,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x38ca3a['HTTPService'])),_0x9460ae(0x1,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2['IConfigService'])),_0x9460ae(0x2,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x20c)]))],_0x36aec2);function _0x939ee5(_0x4fcd48,_0x5d7ee7){const _0x1db7f8=_0x4356c2;var _0x15d2a5;if(_0x5d7ee7['maxSize']!=null&&_0x4fcd48[_0x1db7f8(0x35a)]>_0x5d7ee7[_0x1db7f8(0x2f8)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x15d2a5=_0x5d7ee7['accept'])!=null&&_0x15d2a5[_0x1db7f8(0x14e)]&&!_0x5d7ee7[_0x1db7f8(0x35d)][_0x1db7f8(0x342)](_0x512796=>_0x4fcd48[_0x1db7f8(0x306)]===_0x512796||_0x4fcd48[_0x1db7f8(0x139)][_0x1db7f8(0x119)](_0x512796)||_0x512796[_0x1db7f8(0x119)]('/*')&&_0x4fcd48[_0x1db7f8(0x306)]['startsWith'](_0x512796[_0x1db7f8(0x250)](0x0,-0x1))))throw Error(_0x1db7f8(0x352));}let _0x3a3e0d=class{constructor(_0x419d27,_0x331d5f,_0x337e32){const _0x2a1467=_0x4356c2;this['_configService']=_0x419d27,this[_0x2a1467(0x353)]=_0x331d5f,this['localeService']=_0x337e32,this[_0x2a1467(0x186)]();}['init'](){const _0x4830b1=_0x4356c2;this[_0x4830b1(0x353)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3d2704,_0xa4f180)=>_0xa4f180(_0x3d2704)['pipe']((0x0,_0x4f8104['concatMap'])(async _0x593aa0=>{const _0xde329=_0x4830b1;let _0x1db73f=_0x593aa0;if(_0x1db73f[_0xde329(0xed)]===0x191){if(typeof window>'u')throw Error(_0xde329(0x276));if(window[_0xde329(0x1ee)](this[_0xde329(0xc6)]['t'](_0xde329(0x29f)))){let _0x78604b=window[_0xde329(0x74)](window[_0xde329(0x14b)][_0xde329(0x159)]);window[_0xde329(0x14b)]['href']=this[_0xde329(0x2d1)]()+_0xde329(0x316)+_0x78604b;}}return _0x1db73f;}))});}[_0x4356c2(0x2d1)](){const _0xa6a6ba=_0x4356c2;var _0x4627ce;let _0x238abc=this[_0xa6a6ba(0x150)][_0xa6a6ba(0x2f0)](_0x446dbc);return(_0x4627ce=_0x238abc==null?void 0x0:_0x238abc[_0xa6a6ba(0xc8)])==null?_0xa6a6ba(0x12c):_0x4627ce;}};_0x3a3e0d=_0x223773([_0x9460ae(0x0,_0x186af2[_0x4356c2(0x2cd)]),_0x9460ae(0x1,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x38ca3a['HTTPService'])),_0x9460ae(0x2,(0x0,_0x186af2['Inject'])(_0x186af2[_0x4356c2(0x18c)]))],_0x3a3e0d);let _0x474919=class extends _0x186af2[_0x4356c2(0x310)]{constructor(_0x29808b,_0x1670e6){const _0x14de87=_0x4356c2;super(),this[_0x14de87(0x38f)]=_0x29808b,this[_0x14de87(0x150)]=_0x1670e6,_0x1fdd2e(this,'_cfgEnableObjInherit',!0x1),this['_initMergeInterceptor']();}[_0x4356c2(0x2d4)](){const _0x1af967=_0x4356c2;let _0x346573=this;this[_0x1af967(0xa5)](this[_0x1af967(0x38f)][_0x1af967(0x247)]({'priority':0x3e7,'interceptor':(0x0,_0x38ca3a[_0x1af967(0x15a)])({'isMatch'(_0x2103a3){const _0x3fb5e7=_0x1af967;var _0x1653e7;if(_0x2103a3['method']==='POST'&&(_0x1653e7=_0x2103a3[_0x3fb5e7(0x8c)])!=null&&_0x1653e7[_0x3fb5e7(0x9d)]){let {objectID:_0x311ed9,objectType:_0x367cdb}=_0x2103a3[_0x3fb5e7(0x8c)][_0x3fb5e7(0x9d)]||{};if(!_0x311ed9||_0x367cdb===void 0x0)return!0x1;let _0x102a33=_0x346573[_0x3fb5e7(0x249)]()+'/'+_0x367cdb+'/object/'+_0x311ed9+_0x3fb5e7(0xb2);if(_0x2103a3[_0x3fb5e7(0x1a9)]===_0x102a33)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x117da1){const _0x39a588=_0x1af967;var _0x134483;return(_0x134483=_0x117da1[_0x39a588(0x8c)])==null?void 0x0:_0x134483['body'];},'mergeParamsToRequest'(_0x185032,_0x19eb1e){const _0x15f799=_0x1af967;let _0x31137a=_0x346573['_getAPIPrefixPath']()+_0x15f799(0x38c),_0x5c659b=_0x185032['reduce']((_0xfe590b,_0x1da7af)=>{const _0x17d02a=_0x15f799;let {unitID:_0x45a7a7,objectID:_0x24fe27,objectType:_0x57f99b,actions:_0x54427c}=_0x1da7af;return _0xfe590b[_0x45a7a7]||(_0xfe590b[_0x45a7a7]={}),_0xfe590b[_0x45a7a7][_0x24fe27]||(_0xfe590b[_0x45a7a7][_0x24fe27]={'objectID':_0x24fe27,'objectType':_0x57f99b,'actions':[]}),_0xfe590b[_0x45a7a7][_0x24fe27][_0x17d02a(0x2d5)][_0x17d02a(0x265)](..._0x54427c),_0xfe590b;},{}),_0x3372ce=[];for(let _0x1af041 in _0x5c659b)for(let _0x5008b7 in _0x5c659b[_0x1af041]){let {actions:_0x1c78f9,objectType:_0x2728e6}=_0x5c659b[_0x1af041][_0x5008b7],_0x502949=[...new Set(_0x1c78f9)];_0x3372ce[_0x15f799(0x265)]({'unitID':_0x1af041,'objectID':_0x5008b7,'objectType':_0x2728e6,'actions':_0x502949});}return new _0x38ca3a[(_0x15f799(0xa4))](_0x15f799(0x232),_0x31137a,{'headers':_0x19eb1e[_0x15f799(0x2d7)],'withCredentials':_0x19eb1e[_0x15f799(0x1fb)],'responseType':_0x19eb1e[_0x15f799(0xea)],'body':{'requests':_0x3372ce}});}},{'distributeResult'(_0x10807f,_0x3f0b3b){const _0x4b6d97=_0x1af967;let {objectActions:_0x294e5c}=_0x10807f;return _0x3f0b3b[_0x4b6d97(0xff)](_0x43e090=>{const _0xfbf899=_0x4b6d97;let {unitID:_0xa43efd,objectID:_0xed0039,actions:_0x5ec155}=_0x43e090,_0x400e16=_0x294e5c[_0xfbf899(0x369)](_0x422945=>_0x422945[_0xfbf899(0x2e0)]===_0xa43efd&&_0x422945[_0xfbf899(0x298)]===_0xed0039);return{'config':_0x43e090,'result':{'actions':_0x5ec155['map'](_0x40a132=>_0x400e16==null?void 0x0:_0x400e16['actions'][_0xfbf899(0x369)](_0x3ae908=>_0x3ae908[_0xfbf899(0x234)]===_0x40a132))[_0xfbf899(0x323)](_0x3ea394=>!!_0x3ea394),'error':_0x10807f['error']}};});}})}));}[_0x4356c2(0x249)](){const _0x318b8b=_0x4356c2;var _0x147e70;let _0x4ccec1=this[_0x318b8b(0x150)]['getConfig'](_0x446dbc);return(_0x147e70=_0x4ccec1==null?void 0x0:_0x4ccec1[_0x318b8b(0x346)])==null?_0x318b8b(0x233):_0x147e70;}async['create'](_0x507f2a){const _0x4353e4=_0x4356c2;let _0x148bd9=this['_getAPIPrefixPath']()+'/'+_0x507f2a[_0x4353e4(0x1d5)]+_0x4353e4(0x245);return(await this[_0x4353e4(0x38f)][_0x4353e4(0x1bc)](_0x148bd9,{'body':_0x507f2a}))[_0x4353e4(0x9d)][_0x4353e4(0x298)]||'';}async['list'](_0x290424){const _0x2439d3=_0x4356c2;let _0x57325b=this[_0x2439d3(0x249)]()+_0x2439d3(0xa0);return(await this[_0x2439d3(0x38f)][_0x2439d3(0x1bc)](_0x57325b,{'body':_0x290424}))[_0x2439d3(0x9d)][_0x2439d3(0x377)];}async['update'](_0x3ba671){const _0x4d8d20=_0x4356c2;var _0x4f0b52;let _0x2dbc9e=this['_getAPIPrefixPath']()+'/'+_0x3ba671[_0x4d8d20(0x1d5)]+_0x4d8d20(0x296)+_0x3ba671['objectID'],_0x4d5ee4=await this[_0x4d8d20(0x38f)]['put'](_0x2dbc9e,{'body':_0x3ba671});if((_0x4d5ee4==null||(_0x4f0b52=_0x4d5ee4[_0x4d8d20(0x9d)])==null||(_0x4f0b52=_0x4f0b52[_0x4d8d20(0x16b)])==null?void 0x0:_0x4f0b52['code'])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x4356c2(0x2e1)](_0x7d4ec2){const _0x1ab271=_0x4356c2;let _0x3f37fe=this[_0x1ab271(0x249)]()+'/'+_0x7d4ec2[_0x1ab271(0x1d5)]+'/object/'+_0x7d4ec2['objectID']+'/allowed';return(await this[_0x1ab271(0x38f)]['post'](_0x3f37fe,{'body':_0x7d4ec2}))[_0x1ab271(0x9d)]['actions'];}async[_0x4356c2(0x162)](_0x3f4be7){const _0xeb609c=_0x4356c2;let _0x13e774=this[_0xeb609c(0x249)]()+'/-/object/-/batch_allowed';return(await this[_0xeb609c(0x38f)][_0xeb609c(0x1bc)](_0x13e774,{'body':{'requests':_0x3f4be7}}))[_0xeb609c(0x9d)][_0xeb609c(0x115)];}async[_0x4356c2(0x385)](_0x220e98){const _0x446ddc=_0x4356c2;let _0x30dc29=this['_getAPIPrefixPath']()+'/'+_0x220e98[_0x446ddc(0x1d5)]+_0x446ddc(0x1ab),_0x5723a3=await this[_0x446ddc(0x38f)]['post'](_0x30dc29,{'body':_0x220e98});return{'roles':_0x5723a3[_0x446ddc(0x9d)][_0x446ddc(0x38a)],'actions':_0x5723a3['body']['actions']};}async[_0x4356c2(0x23f)](_0x10e93e){const _0x3a2672=_0x4356c2;let _0x46af8f=this[_0x3a2672(0x249)]()+_0x3a2672(0x176);await this[_0x3a2672(0x38f)][_0x3a2672(0x2d9)](_0x46af8f,{'params':{'collaboratorID':_0x10e93e[_0x3a2672(0x359)],'objectID':_0x10e93e[_0x3a2672(0x298)],'unitID':_0x10e93e[_0x3a2672(0x2e0)]}});}async['updateCollaborator'](_0x4f1361){const _0x31fca2=_0x4356c2;let _0x3a79d2=this[_0x31fca2(0x249)]()+_0x31fca2(0x176);await this['_HTTPService'][_0x31fca2(0x1c9)](_0x3a79d2,{'body':_0x4f1361});}async[_0x4356c2(0x2c8)](_0x2469d7){const _0x58ecec=_0x4356c2;let _0x2819a3=this[_0x58ecec(0x249)]()+_0x58ecec(0x176);await this['_HTTPService']['post'](_0x2819a3,{'body':_0x2469d7});}async[_0x4356c2(0x271)](_0x33b6a4){const _0x41946c=_0x4356c2;var _0x5ca632;let _0x4b3beb=this['_getAPIPrefixPath']()+'/collaborator',_0x2cb4cb=await this[_0x41946c(0x38f)][_0x41946c(0x217)](_0x4b3beb,{'params':{'objectID':_0x33b6a4[_0x41946c(0x298)],'unitID':_0x33b6a4[_0x41946c(0x2e0)]}});return this[_0x41946c(0x9f)]((_0x5ca632=_0x2cb4cb[_0x41946c(0x9d)][_0x41946c(0x34e)])==null?!0x1:_0x5ca632),_0x2cb4cb[_0x41946c(0x9d)][_0x41946c(0x18a)];}async[_0x4356c2(0x262)](_0x188781){const _0x24a87b=_0x4356c2;let _0x23c7d9=this[_0x24a87b(0x249)]()+_0x24a87b(0x176);await this[_0x24a87b(0x38f)]['put'](_0x23c7d9,{'body':_0x188781});}[_0x4356c2(0x9f)](_0x508a92){this['_cfgEnableObjInherit']=_0x508a92;}['getCfgEnableObjInherit'](){const _0x381e45=_0x4356c2;return this[_0x381e45(0x319)];}};_0x474919=_0x223773([_0x9460ae(0x0,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x38ca3a[_0x4356c2(0x322)])),_0x9460ae(0x1,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x2cd)]))],_0x474919);function _0x2e2773(_0x3cf34c){const _0x415795=_0x4356c2;return _0x3cf34c instanceof Uint8Array||ArrayBuffer['isView'](_0x3cf34c)&&_0x3cf34c[_0x415795(0x37b)][_0x415795(0x139)]===_0x415795(0x76)&&_0x415795(0x1d2)in _0x3cf34c&&_0x3cf34c[_0x415795(0x1d2)]===0x1;}function _0x45152d(_0x1df7e6){const _0x24acaa=_0x4356c2;if(typeof _0x1df7e6!=_0x24acaa(0x1da))throw TypeError(_0x24acaa(0x192)+typeof _0x1df7e6);if(!Number[_0x24acaa(0x1b6)](_0x1df7e6)||_0x1df7e6<0x0)throw RangeError(_0x24acaa(0x2b6)+_0x1df7e6);}function _0x3fddca(_0x1038de,_0x4b6f68,_0xcfd188=''){const _0x1a9292=_0x4356c2;let _0x188ab4=_0x2e2773(_0x1038de),_0x3de334=_0x1038de==null?void 0x0:_0x1038de[_0x1a9292(0x14e)],_0x567e7f=_0x4b6f68!==void 0x0;if(!_0x188ab4||_0x567e7f&&_0x3de334!==_0x4b6f68){let _0x4a976d=_0xcfd188&&'\x22'+_0xcfd188+'\x22\x20',_0x1b9eec=_0x567e7f?_0x1a9292(0x293)+_0x4b6f68:'',_0x39cdf1=_0x188ab4?'length='+_0x3de334:_0x1a9292(0x23c)+typeof _0x1038de,_0x2912ac=_0x4a976d+_0x1a9292(0xd2)+_0x1b9eec+_0x1a9292(0x164)+_0x39cdf1;throw _0x188ab4?RangeError(_0x2912ac):TypeError(_0x2912ac);}return _0x1038de;}function _0x1d53a5(_0x4b318d){const _0x5b89d7=_0x4356c2;return new Uint32Array(_0x4b318d[_0x5b89d7(0x1b9)],_0x4b318d[_0x5b89d7(0x1ef)],Math[_0x5b89d7(0x1d4)](_0x4b318d[_0x5b89d7(0x184)]/0x4));}function _0x13fe78(..._0x5c8979){const _0x18e21f=_0x4356c2;for(let _0x471c74=0x0;_0x471c74<_0x5c8979[_0x18e21f(0x14e)];_0x471c74++)_0x5c8979[_0x471c74][_0x18e21f(0x384)](0x0);}let _0x4a41e8=new Uint8Array(new Uint32Array([0x11223344])[_0x4356c2(0x1b9)])[0x0]===0x44,_0x44453=_0x4503e1=>_0x4503e1<<0x18&0xff000000|_0x4503e1<<0x8&0xff0000|_0x4503e1>>>0x8&0xff00|_0x4503e1>>>0x18&0xff,_0x5ae817=_0x4a41e8?_0x5b6166=>_0x5b6166:_0x2422e3=>{const _0x3b6317=_0x4356c2;for(let _0x1c5d00=0x0;_0x1c5d00<_0x2422e3[_0x3b6317(0x14e)];_0x1c5d00++)_0x2422e3[_0x1c5d00]=_0x44453(_0x2422e3[_0x1c5d00]);return _0x2422e3;};function _0x4440e0(_0x28d813){const _0x44804e=_0x4356c2;if(typeof _0x28d813!='string')throw TypeError(_0x44804e(0x1dc));return new Uint8Array(new TextEncoder()[_0x44804e(0x302)](_0x28d813));}function _0x21331c(_0x78bb79,_0x268bd0){const _0x2cf615=_0x4356c2;return!_0x78bb79[_0x2cf615(0x184)]||!_0x268bd0['byteLength']?!0x1:_0x78bb79[_0x2cf615(0x1b9)]===_0x268bd0['buffer']&&_0x78bb79[_0x2cf615(0x1ef)]<_0x268bd0[_0x2cf615(0x1ef)]+_0x268bd0[_0x2cf615(0x184)]&&_0x268bd0[_0x2cf615(0x1ef)]<_0x78bb79[_0x2cf615(0x1ef)]+_0x78bb79[_0x2cf615(0x184)];}function _0x48da65(_0x59c08a,_0x5730cc){const _0x56d7b5=_0x4356c2;if(_0x21331c(_0x59c08a,_0x5730cc)&&_0x59c08a[_0x56d7b5(0x1ef)]<_0x5730cc['byteOffset'])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0xe73af(..._0x5d92e4){const _0x8313e0=_0x4356c2;let _0x3d3130=0x0;for(let _0x13864a=0x0;_0x13864a<_0x5d92e4[_0x8313e0(0x14e)];_0x13864a++){let _0x23b75a=_0x5d92e4[_0x13864a];_0x3fddca(_0x23b75a),_0x3d3130+=_0x23b75a['length'];}let _0x4c5ed6=new Uint8Array(_0x3d3130);for(let _0x484209=0x0,_0x42a823=0x0;_0x484209<_0x5d92e4[_0x8313e0(0x14e)];_0x484209++){let _0x409c35=_0x5d92e4[_0x484209];_0x4c5ed6[_0x8313e0(0x25f)](_0x409c35,_0x42a823),_0x42a823+=_0x409c35[_0x8313e0(0x14e)];}return _0x4c5ed6;}let _0xac5700=(_0x55a991,_0xe45fa7)=>{const _0x5df85c=_0x4356c2;function _0x3cae41(_0x4e6b1b,..._0x135291){const _0x19f64a=_0x364e;if(_0x3fddca(_0x4e6b1b,void 0x0,_0x19f64a(0x98)),_0x55a991['nonceLength']!==void 0x0){let _0x425268=_0x135291[0x0];_0x3fddca(_0x425268,_0x55a991[_0x19f64a(0x19b)]?void 0x0:_0x55a991['nonceLength'],_0x19f64a(0x17f));}let _0x3c4cf8=_0x55a991['tagLength'];_0x3c4cf8&&_0x135291[0x1]!==void 0x0&&_0x3fddca(_0x135291[0x1],void 0x0,_0x19f64a(0x22e));let _0x2acaf2=_0xe45fa7(_0x4e6b1b,..._0x135291),_0x5efeed=(_0x4019a7,_0x4f45f7)=>{const _0x10a0d6=_0x19f64a;if(_0x4f45f7!==void 0x0){if(_0x4019a7!==0x2)throw Error(_0x10a0d6(0x273));_0x3fddca(_0x4f45f7,void 0x0,_0x10a0d6(0xd1));}},_0xa11035=!0x1;return{'encrypt'(_0x4b374c,_0x2bd2e6){const _0x4a9881=_0x19f64a;if(_0xa11035)throw Error(_0x4a9881(0x12d));return _0xa11035=!0x0,_0x3fddca(_0x4b374c),_0x5efeed(_0x2acaf2['encrypt'][_0x4a9881(0x14e)],_0x2bd2e6),_0x2acaf2[_0x4a9881(0x151)](_0x4b374c,_0x2bd2e6);},'decrypt'(_0x5b958a,_0x46743e){const _0x3f3e30=_0x19f64a;if(_0x3fddca(_0x5b958a),_0x3c4cf8&&_0x5b958a[_0x3f3e30(0x14e)]<_0x3c4cf8)throw Error('\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength='+_0x3c4cf8);return _0x5efeed(_0x2acaf2[_0x3f3e30(0x2b7)]['length'],_0x46743e),_0x2acaf2[_0x3f3e30(0x2b7)](_0x5b958a,_0x46743e);}};}return Object[_0x5df85c(0x102)](_0x3cae41,_0x55a991),_0x3cae41;};function _0x195474(_0x42cba9,_0x2251a4,_0x12aa27=!0x0){const _0x1b436f=_0x4356c2;if(_0x2251a4===void 0x0)return new Uint8Array(_0x42cba9);if(_0x3fddca(_0x2251a4,void 0x0,'output'),_0x2251a4['length']!==_0x42cba9)throw Error('\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20'+_0x42cba9+_0x1b436f(0x294)+_0x2251a4[_0x1b436f(0x14e)]);if(_0x12aa27&&!_0x3bc663(_0x2251a4))throw Error(_0x1b436f(0x9c));return _0x2251a4;}function _0x3bc663(_0x50ccfb){return _0x50ccfb['byteOffset']%0x4==0x0;}function _0x19746c(_0xb5dbda){const _0x39fff3=_0x4356c2;return Uint8Array[_0x39fff3(0x2ea)](_0x3fddca(_0xb5dbda));}function _0x32c512(_0x29a5cd=0x20){const _0x174bad=_0x4356c2;_0x45152d(_0x29a5cd);let _0x57b9b5=typeof globalThis==_0x174bad(0x6b)?globalThis[_0x174bad(0x67)]:null;if(typeof(_0x57b9b5==null?void 0x0:_0x57b9b5[_0x174bad(0x201)])!='function')throw Error(_0x174bad(0x2c7));return _0x57b9b5[_0x174bad(0x201)](new Uint8Array(_0x29a5cd));}function _0x3a762b(_0x1401c8){const _0x1f20f2=_0x4356c2;if(![0x10,0x18,0x20]['includes'](_0x1401c8[_0x1f20f2(0x14e)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x1401c8['length']);}function _0x4583d5(_0x1da3a0){return _0x1da3a0<<0x1^0x11b&-(_0x1da3a0>>0x7);}function _0x4acf4e(_0x5e550b,_0x42fb04){let _0xe8a912=0x0;for(;_0x42fb04>0x0;_0x42fb04>>=0x1)_0xe8a912^=_0x5e550b&-(_0x42fb04&0x1),_0x5e550b=_0x4583d5(_0x5e550b);return _0xe8a912;}let _0x54adea=((()=>{let _0x4344e9=new Uint8Array(0x100);for(let _0x1d980f=0x0,_0x23468d=0x1;_0x1d980f<0x100;_0x1d980f++,_0x23468d^=_0x4583d5(_0x23468d))_0x4344e9[_0x1d980f]=_0x23468d;let _0x44dd4f=new Uint8Array(0x100);_0x44dd4f[0x0]=0x63;for(let _0x5330ca=0x0;_0x5330ca<0xff;_0x5330ca++){let _0x572aa1=_0x4344e9[0xff-_0x5330ca];_0x572aa1|=_0x572aa1<<0x8,_0x44dd4f[_0x4344e9[_0x5330ca]]=(_0x572aa1^_0x572aa1>>0x4^_0x572aa1>>0x5^_0x572aa1>>0x6^_0x572aa1>>0x7^0x63)&0xff;}return _0x13fe78(_0x4344e9),_0x44dd4f;})()),_0x27f145=_0x54adea['map']((_0x4477be,_0xe78007)=>_0x54adea[_0x4356c2(0x2a5)](_0xe78007)),_0x56d3a1=_0x2e6b6c=>_0x2e6b6c<<0x18|_0x2e6b6c>>>0x8,_0x1d519e=_0x4206af=>_0x4206af<<0x8|_0x4206af>>>0x18;function _0x21e5ff(_0x189533,_0x448d87){const _0x98dd15=_0x4356c2;if(_0x189533[_0x98dd15(0x14e)]!==0x100)throw Error(_0x98dd15(0x228));let _0x415049=new Uint32Array(0x100)[_0x98dd15(0xff)]((_0x35ec36,_0x3394ad)=>_0x448d87(_0x189533[_0x3394ad])),_0x58b564=_0x415049[_0x98dd15(0xff)](_0x1d519e),_0x43c2eb=_0x58b564[_0x98dd15(0xff)](_0x1d519e),_0x46b9d3=_0x43c2eb[_0x98dd15(0xff)](_0x1d519e),_0x2f5ad9=new Uint32Array(0x100*0x100),_0x3ae3a3=new Uint32Array(0x100*0x100),_0x2a2229=new Uint16Array(0x100*0x100);for(let _0x3aa4f4=0x0;_0x3aa4f4<0x100;_0x3aa4f4++)for(let _0xb169de=0x0;_0xb169de<0x100;_0xb169de++){let _0x25d26d=_0x3aa4f4*0x100+_0xb169de;_0x2f5ad9[_0x25d26d]=_0x415049[_0x3aa4f4]^_0x58b564[_0xb169de],_0x3ae3a3[_0x25d26d]=_0x43c2eb[_0x3aa4f4]^_0x46b9d3[_0xb169de],_0x2a2229[_0x25d26d]=_0x189533[_0x3aa4f4]<<0x8|_0x189533[_0xb169de];}return{'sbox':_0x189533,'sbox2':_0x2a2229,'T0':_0x415049,'T1':_0x58b564,'T2':_0x43c2eb,'T3':_0x46b9d3,'T01':_0x2f5ad9,'T23':_0x3ae3a3};}let _0x34e143=_0x21e5ff(_0x54adea,_0x4acf0c=>_0x4acf4e(_0x4acf0c,0x3)<<0x18|_0x4acf0c<<0x10|_0x4acf0c<<0x8|_0x4acf4e(_0x4acf0c,0x2)),_0x309a5e=_0x21e5ff(_0x27f145,_0x4de58d=>_0x4acf4e(_0x4de58d,0xb)<<0x18|_0x4acf4e(_0x4de58d,0xd)<<0x10|_0x4acf4e(_0x4de58d,0x9)<<0x8|_0x4acf4e(_0x4de58d,0xe)),_0x49502c=((()=>{let _0xebd37f=new Uint8Array(0x10);for(let _0x405187=0x0,_0x1dd052=0x1;_0x405187<0x10;_0x405187++,_0x1dd052=_0x4583d5(_0x1dd052))_0xebd37f[_0x405187]=_0x1dd052;return _0xebd37f;})());function _0x4c8d80(_0x166f14){const _0x1f97e2=_0x4356c2;_0x3fddca(_0x166f14);let _0x831ea3=_0x166f14['length'];_0x3a762b(_0x166f14);let {sbox2:_0xecc7a7}=_0x34e143,_0x49e94a=[];(!_0x4a41e8||!_0x3bc663(_0x166f14))&&_0x49e94a['push'](_0x166f14=_0x19746c(_0x166f14));let _0x54ecba=_0x5ae817(_0x1d53a5(_0x166f14)),_0x286818=_0x54ecba[_0x1f97e2(0x14e)],_0x31286b=_0x40609a=>_0x3d7db2(_0xecc7a7,_0x40609a,_0x40609a,_0x40609a,_0x40609a),_0x5ba75f=new Uint32Array(_0x831ea3+0x1c);_0x5ba75f[_0x1f97e2(0x25f)](_0x54ecba);for(let _0x2eb839=_0x286818;_0x2eb839<_0x5ba75f[_0x1f97e2(0x14e)];_0x2eb839++){let _0xc7f8a7=_0x5ba75f[_0x2eb839-0x1];_0x2eb839%_0x286818===0x0?_0xc7f8a7=_0x31286b(_0x56d3a1(_0xc7f8a7))^_0x49502c[_0x2eb839/_0x286818-0x1]:_0x286818>0x6&&_0x2eb839%_0x286818===0x4&&(_0xc7f8a7=_0x31286b(_0xc7f8a7)),_0x5ba75f[_0x2eb839]=_0x5ba75f[_0x2eb839-_0x286818]^_0xc7f8a7;}return _0x13fe78(..._0x49e94a),_0x5ba75f;}function _0x474b7b(_0x773c02){const _0x441681=_0x4356c2;let _0x357705=_0x4c8d80(_0x773c02),_0xe80491=_0x357705[_0x441681(0x250)](),_0x5eff1a=_0x357705[_0x441681(0x14e)],{sbox2:_0x458bbc}=_0x34e143,{T0:_0x5c6132,T1:_0x4dc72c,T2:_0x41806d,T3:_0x4d5a04}=_0x309a5e;for(let _0x34de40=0x0;_0x34de40<_0x5eff1a;_0x34de40+=0x4)for(let _0x10daa1=0x0;_0x10daa1<0x4;_0x10daa1++)_0xe80491[_0x34de40+_0x10daa1]=_0x357705[_0x5eff1a-_0x34de40-0x4+_0x10daa1];_0x13fe78(_0x357705);for(let _0x508d64=0x4;_0x508d64<_0x5eff1a-0x4;_0x508d64++){let _0x300dbe=_0xe80491[_0x508d64],_0xabe2bd=_0x3d7db2(_0x458bbc,_0x300dbe,_0x300dbe,_0x300dbe,_0x300dbe);_0xe80491[_0x508d64]=_0x5c6132[_0xabe2bd&0xff]^_0x4dc72c[_0xabe2bd>>>0x8&0xff]^_0x41806d[_0xabe2bd>>>0x10&0xff]^_0x4d5a04[_0xabe2bd>>>0x18];}return _0xe80491;}function _0x23a425(_0x1950f7,_0x1a4547,_0x2708a4,_0xc22cf6,_0xbda596,_0x5ea8dc){return _0x1950f7[_0x2708a4<<0x8&0xff00|_0xc22cf6>>>0x8&0xff]^_0x1a4547[_0xbda596>>>0x8&0xff00|_0x5ea8dc>>>0x18&0xff];}function _0x3d7db2(_0x177f78,_0x3404cc,_0x3c4a3a,_0x5268cb,_0x1d3b76){return _0x177f78[_0x3404cc&0xff|_0x3c4a3a&0xff00]|_0x177f78[_0x5268cb>>>0x10&0xff|_0x1d3b76>>>0x10&0xff00]<<0x10;}function _0x47a1cf(_0x508396,_0x901653,_0x5e9b47,_0x25b522,_0x4e313c){const _0x40f905=_0x4356c2;let {sbox2:_0x23d37b,T01:_0x3833b3,T23:_0x527cae}=_0x34e143,_0x740e4f=0x0;_0x901653^=_0x508396[_0x740e4f++],_0x5e9b47^=_0x508396[_0x740e4f++],_0x25b522^=_0x508396[_0x740e4f++],_0x4e313c^=_0x508396[_0x740e4f++];let _0x4e9175=_0x508396[_0x40f905(0x14e)]/0x4-0x2;for(let _0x2b202f=0x0;_0x2b202f<_0x4e9175;_0x2b202f++){let _0x202926=_0x508396[_0x740e4f++]^_0x23a425(_0x3833b3,_0x527cae,_0x901653,_0x5e9b47,_0x25b522,_0x4e313c),_0x3641c0=_0x508396[_0x740e4f++]^_0x23a425(_0x3833b3,_0x527cae,_0x5e9b47,_0x25b522,_0x4e313c,_0x901653),_0x37b00a=_0x508396[_0x740e4f++]^_0x23a425(_0x3833b3,_0x527cae,_0x25b522,_0x4e313c,_0x901653,_0x5e9b47),_0x58d6bf=_0x508396[_0x740e4f++]^_0x23a425(_0x3833b3,_0x527cae,_0x4e313c,_0x901653,_0x5e9b47,_0x25b522);_0x901653=_0x202926,_0x5e9b47=_0x3641c0,_0x25b522=_0x37b00a,_0x4e313c=_0x58d6bf;}return{'s0':_0x508396[_0x740e4f++]^_0x3d7db2(_0x23d37b,_0x901653,_0x5e9b47,_0x25b522,_0x4e313c),'s1':_0x508396[_0x740e4f++]^_0x3d7db2(_0x23d37b,_0x5e9b47,_0x25b522,_0x4e313c,_0x901653),'s2':_0x508396[_0x740e4f++]^_0x3d7db2(_0x23d37b,_0x25b522,_0x4e313c,_0x901653,_0x5e9b47),'s3':_0x508396[_0x740e4f++]^_0x3d7db2(_0x23d37b,_0x4e313c,_0x901653,_0x5e9b47,_0x25b522)};}function _0x3df362(_0x16990f,_0x282aa6,_0x21097a,_0x52ce35,_0x3f3645){let {sbox2:_0x1678ae,T01:_0x4401cc,T23:_0x21876f}=_0x309a5e,_0x918aef=0x0;_0x282aa6^=_0x16990f[_0x918aef++],_0x21097a^=_0x16990f[_0x918aef++],_0x52ce35^=_0x16990f[_0x918aef++],_0x3f3645^=_0x16990f[_0x918aef++];let _0x9c7b9a=_0x16990f['length']/0x4-0x2;for(let _0x2a72ce=0x0;_0x2a72ce<_0x9c7b9a;_0x2a72ce++){let _0x52c002=_0x16990f[_0x918aef++]^_0x23a425(_0x4401cc,_0x21876f,_0x282aa6,_0x3f3645,_0x52ce35,_0x21097a),_0x2a8556=_0x16990f[_0x918aef++]^_0x23a425(_0x4401cc,_0x21876f,_0x21097a,_0x282aa6,_0x3f3645,_0x52ce35),_0x2b156d=_0x16990f[_0x918aef++]^_0x23a425(_0x4401cc,_0x21876f,_0x52ce35,_0x21097a,_0x282aa6,_0x3f3645),_0x170de3=_0x16990f[_0x918aef++]^_0x23a425(_0x4401cc,_0x21876f,_0x3f3645,_0x52ce35,_0x21097a,_0x282aa6);_0x282aa6=_0x52c002,_0x21097a=_0x2a8556,_0x52ce35=_0x2b156d,_0x3f3645=_0x170de3;}return{'s0':_0x16990f[_0x918aef++]^_0x3d7db2(_0x1678ae,_0x282aa6,_0x3f3645,_0x52ce35,_0x21097a),'s1':_0x16990f[_0x918aef++]^_0x3d7db2(_0x1678ae,_0x21097a,_0x282aa6,_0x3f3645,_0x52ce35),'s2':_0x16990f[_0x918aef++]^_0x3d7db2(_0x1678ae,_0x52ce35,_0x21097a,_0x282aa6,_0x3f3645),'s3':_0x16990f[_0x918aef++]^_0x3d7db2(_0x1678ae,_0x3f3645,_0x52ce35,_0x21097a,_0x282aa6)};}function _0x381f89(_0x29d13a){const _0x48e660=_0x4356c2;if(_0x3fddca(_0x29d13a),_0x29d13a[_0x48e660(0x14e)]%0x10!=0x0)throw Error(_0x48e660(0x246));}function _0x4314de(_0x9b6640,_0x32be34,_0x49db26){const _0x149308=_0x4356c2;_0x3fddca(_0x9b6640);let _0xec9071=_0x9b6640[_0x149308(0x14e)],_0x450970=_0xec9071%0x10;if(!_0x32be34&&_0x450970!==0x0)throw Error('aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding');if(_0x32be34){let _0x42fbd8=0x10-_0x450970;_0x42fbd8||(_0x42fbd8=0x10),_0xec9071+=_0x42fbd8;}_0x49db26=_0x195474(_0xec9071,_0x49db26),_0x48da65(_0x9b6640,_0x49db26),(!_0x4a41e8||!_0x3bc663(_0x9b6640))&&(_0x9b6640=_0x19746c(_0x9b6640));let _0x2e6a6c=_0x1d53a5(_0x9b6640);return _0x5ae817(_0x2e6a6c),{'b':_0x2e6a6c,'o':_0x1d53a5(_0x49db26),'out':_0x49db26};}function _0x5e36bf(_0x2bc345,_0x5f192e){const _0x106680=_0x4356c2;if(!_0x5f192e)return _0x2bc345;let _0x32bd95=_0x2bc345[_0x106680(0x14e)];if(_0x32bd95===0x0)throw Error(_0x106680(0x205));let _0x2392e3=_0x2bc345[_0x32bd95-0x1],_0x5c8949=0x1;_0x5c8949&=_0x2392e3-0x1>>>0x1f^0x1,_0x5c8949&=0x10-_0x2392e3>>>0x1f^0x1;for(let _0x5f5364=0x0;_0x5f5364<0x10;_0x5f5364++){let _0x4be204=_0x5f5364-_0x2392e3>>>0x1f,_0x3dac4a=+((_0x2bc345[_0x32bd95-0x1-_0x5f5364]^_0x2392e3)===0x0);_0x5c8949&=_0x3dac4a|_0x4be204^0x1;}if(!_0x5c8949)throw Error(_0x106680(0x13d));return _0x2bc345['subarray'](0x0,_0x32bd95-_0x2392e3);}function _0x1a3cc9(_0xdd32ba){const _0x21ce12=_0x4356c2;let _0x51c03e=new Uint8Array(0x10),_0x5d160b=_0x1d53a5(_0x51c03e);_0x51c03e[_0x21ce12(0x25f)](_0xdd32ba);let _0x28649b=0x10-_0xdd32ba['length'];for(let _0x5777d6=0x10-_0x28649b;_0x5777d6<0x10;_0x5777d6++)_0x51c03e[_0x5777d6]=_0x28649b;return _0x5d160b;}let _0x1beadb=_0xac5700({'blockSize':0x10,'nonceLength':0x10},function(_0x4339cf,_0x10ffc1,_0xbc9cbe={}){const _0x6a4026=_0x4356c2;let _0x247db9=!_0xbc9cbe[_0x6a4026(0x1d3)];return{'encrypt'(_0x56b116,_0x259de3){const _0x2a6095=_0x6a4026;let _0x3f2ba9=_0x4c8d80(_0x4339cf),{b:_0x32279d,o:_0x3b824b,out:_0x56b917}=_0x4314de(_0x56b116,_0x247db9,_0x259de3),_0x15bcf3=_0x10ffc1,_0x1264e7=[_0x3f2ba9];(!_0x4a41e8||!_0x3bc663(_0x15bcf3))&&_0x1264e7[_0x2a6095(0x265)](_0x15bcf3=_0x19746c(_0x15bcf3));let _0x197e84=_0x1d53a5(_0x15bcf3);_0x5ae817(_0x197e84);let _0xe7114b=_0x197e84[0x0],_0x35d02b=_0x197e84[0x1],_0x2c4974=_0x197e84[0x2],_0x311935=_0x197e84[0x3],_0x5ee25d=0x0;for(;_0x5ee25d+0x4<=_0x32279d[_0x2a6095(0x14e)];)_0xe7114b^=_0x32279d[_0x5ee25d+0x0],_0x35d02b^=_0x32279d[_0x5ee25d+0x1],_0x2c4974^=_0x32279d[_0x5ee25d+0x2],_0x311935^=_0x32279d[_0x5ee25d+0x3],{s0:_0xe7114b,s1:_0x35d02b,s2:_0x2c4974,s3:_0x311935}=_0x47a1cf(_0x3f2ba9,_0xe7114b,_0x35d02b,_0x2c4974,_0x311935),_0x3b824b[_0x5ee25d++]=_0xe7114b,_0x3b824b[_0x5ee25d++]=_0x35d02b,_0x3b824b[_0x5ee25d++]=_0x2c4974,_0x3b824b[_0x5ee25d++]=_0x311935;if(_0x247db9){let _0x5f4856=_0x1a3cc9(_0x56b116['subarray'](_0x5ee25d*0x4));_0x5ae817(_0x5f4856),_0xe7114b^=_0x5f4856[0x0],_0x35d02b^=_0x5f4856[0x1],_0x2c4974^=_0x5f4856[0x2],_0x311935^=_0x5f4856[0x3],{s0:_0xe7114b,s1:_0x35d02b,s2:_0x2c4974,s3:_0x311935}=_0x47a1cf(_0x3f2ba9,_0xe7114b,_0x35d02b,_0x2c4974,_0x311935),_0x3b824b[_0x5ee25d++]=_0xe7114b,_0x3b824b[_0x5ee25d++]=_0x35d02b,_0x3b824b[_0x5ee25d++]=_0x2c4974,_0x3b824b[_0x5ee25d++]=_0x311935;}return _0x5ae817(_0x3b824b),_0x13fe78(..._0x1264e7),_0x56b917;},'decrypt'(_0x341f37,_0x3be6c2){const _0x3cab9b=_0x6a4026;_0x381f89(_0x341f37);let _0x523191=_0x474b7b(_0x4339cf),_0x195d0d=_0x10ffc1,_0x4a8df2=[_0x523191];(!_0x4a41e8||!_0x3bc663(_0x195d0d))&&_0x4a8df2['push'](_0x195d0d=_0x19746c(_0x195d0d));let _0x466d1b=_0x1d53a5(_0x195d0d);_0x5ae817(_0x466d1b),_0x3be6c2=_0x195474(_0x341f37[_0x3cab9b(0x14e)],_0x3be6c2),_0x48da65(_0x341f37,_0x3be6c2),(!_0x4a41e8||!_0x3bc663(_0x341f37))&&_0x4a8df2[_0x3cab9b(0x265)](_0x341f37=_0x19746c(_0x341f37));let _0x529b23=_0x1d53a5(_0x341f37),_0x4fe014=_0x1d53a5(_0x3be6c2);_0x5ae817(_0x529b23);let _0x2314b7=_0x466d1b[0x0],_0x54e3db=_0x466d1b[0x1],_0x3ae89b=_0x466d1b[0x2],_0x3c984b=_0x466d1b[0x3];for(let _0x4d8ba3=0x0;_0x4d8ba3+0x4<=_0x529b23[_0x3cab9b(0x14e)];){let _0x13c478=_0x2314b7,_0x25a669=_0x54e3db,_0xf99f5f=_0x3ae89b,_0x25c7e8=_0x3c984b;_0x2314b7=_0x529b23[_0x4d8ba3+0x0],_0x54e3db=_0x529b23[_0x4d8ba3+0x1],_0x3ae89b=_0x529b23[_0x4d8ba3+0x2],_0x3c984b=_0x529b23[_0x4d8ba3+0x3];let {s0:_0x22b801,s1:_0x3ece6c,s2:_0x34e50a,s3:_0x29dcc8}=_0x3df362(_0x523191,_0x2314b7,_0x54e3db,_0x3ae89b,_0x3c984b);_0x4fe014[_0x4d8ba3++]=_0x22b801^_0x13c478,_0x4fe014[_0x4d8ba3++]=_0x3ece6c^_0x25a669,_0x4fe014[_0x4d8ba3++]=_0x34e50a^_0xf99f5f,_0x4fe014[_0x4d8ba3++]=_0x29dcc8^_0x25c7e8;}return _0x5ae817(_0x4fe014),_0x13fe78(..._0x4a8df2),_0x5e36bf(_0x3be6c2,_0x247db9);}};});function _0x166be9(_0x180b31){const _0x11c16a=_0x4356c2;let _0xb4c026=atob(_0x180b31),_0x203e88=new Uint8Array(_0xb4c026[_0x11c16a(0x14e)]);for(let _0x26de70=0x0;_0x26de70<_0xb4c026[_0x11c16a(0x14e)];_0x26de70++)_0x203e88[_0x26de70]=_0xb4c026['charCodeAt'](_0x26de70);return _0x203e88;}function _0x558feb(_0x2a4b84){let _0x4726d0='';for(let _0x4b7121=0x0;_0x4b7121<_0x2a4b84['length'];_0x4b7121++)_0x4726d0+=String['fromCharCode'](_0x2a4b84[_0x4b7121]);return btoa(_0x4726d0);}function _0xaf1fbe(_0x359190,_0xaf641a){const _0x372be1=_0x4356c2;let _0x251a9d=_0x166be9(_0xaf641a),_0x216ce0=_0x32c512(0x10);return _0x558feb(_0xe73af(_0x216ce0,_0x1beadb(_0x251a9d,_0x216ce0)[_0x372be1(0x151)](_0x4440e0(_0x359190))));}function _0x3a2e62(){const _0x188d9a=_0x4356c2;let _0x562ad0=(0x0,_0x461bde[_0x188d9a(0x19a)])()[_0x188d9a(0x29d)];if(typeof window<'u'&&window[_0x188d9a(0x14b)]!==void 0x0&&_0x562ad0){let _0x15fcd={'time':Math[_0x188d9a(0x1d4)](Date[_0x188d9a(0x36f)]()/0x3e8),'domain':location[_0x188d9a(0x1c5)]};return _0xaf1fbe(JSON[_0x188d9a(0x23a)](_0x15fcd),_0x562ad0);}}let _0x277dcd=class{constructor(_0x2126e3){const _0x2ff2d7=_0x4356c2;this[_0x2ff2d7(0x353)]=_0x2126e3,this['_initRequestHeader']();}[_0x4356c2(0xe2)](){const _0x4de302=_0x4356c2;this[_0x4de302(0x353)][_0x4de302(0x247)]({'interceptor':(_0x3470e0,_0x6eec05)=>{const _0x394f6c=_0x4de302;let _0x16dd24=_0x3a2e62();return _0x16dd24&&_0x3470e0['headers'][_0x394f6c(0x25f)](_0x394f6c(0xca),_0x16dd24),_0x6eec05(_0x3470e0);}});}};_0x277dcd=_0x223773([_0x9460ae(0x0,(0x0,_0x186af2['Inject'])(_0x38ca3a['HTTPService']))],_0x277dcd);let _0x584137=class extends _0x186af2[_0x4356c2(0x396)]{constructor(_0xfdc6f,_0x3b2aba,_0x296bc7){const _0x21785b=_0x4356c2;super(),this[_0x21785b(0x89)]=_0xfdc6f,this['_snapshotService']=_0x3b2aba,this['_localCacheService']=_0x296bc7,_0x1fdd2e(this,_0x21785b(0x1d7),new _0x4f8104[(_0x21785b(0x195))](null)),_0x1fdd2e(this,_0x21785b(0x256),new _0x4f8104[(_0x21785b(0x147))]()),_0x1fdd2e(this,_0x21785b(0x360),this[_0x21785b(0x1d7)][_0x21785b(0x1ff)]()),_0x1fdd2e(this,'unitLoaded$',this[_0x21785b(0x256)]['asObservable']());}[_0x4356c2(0x2f7)](){const _0xbcd4a4=_0x4356c2;super[_0xbcd4a4(0x2f7)](),this[_0xbcd4a4(0x256)][_0xbcd4a4(0x2e6)](),this[_0xbcd4a4(0x1d7)]['complete']();}async[_0x4356c2(0x178)](_0x450fc0,_0x31473c,_0x1bba86){const _0x295039=_0x4356c2;this[_0x295039(0x1d7)][_0x295039(0x214)]({'unitId':_0x450fc0,'type':_0x31473c});let _0x3600d6=null;switch(_0x31473c){case _0x186af2[_0x295039(0xe6)]['UNIVER_SHEET']:_0x3600d6=await this[_0x295039(0xfa)][_0x295039(0x7c)](_0x450fc0,_0x1bba86);break;case _0x186af2[_0x295039(0xe6)][_0x295039(0x1cf)]:_0x3600d6=await this[_0x295039(0xfa)]['loadDoc'](_0x450fc0,_0x1bba86);break;case _0x186af2[_0x295039(0xe6)]['UNIVER_SLIDE']:_0x3600d6=await this[_0x295039(0xfa)][_0x295039(0x320)](_0x450fc0,_0x1bba86);break;case _0x186af2[_0x295039(0xe6)][_0x295039(0x32f)]:_0x3600d6=await this[_0x295039(0xfa)][_0x295039(0x393)](_0x450fc0,_0x1bba86);break;default:this[_0x295039(0x89)][_0x295039(0x16b)](_0x295039(0x15d),_0x295039(0x269));break;}return _0x3600d6&&this[_0x295039(0x256)][_0x295039(0x214)](_0x3600d6),_0x3600d6;}async[_0x4356c2(0x200)](_0xac3c57,_0x484cf8,_0x2962a6){const _0x361445=_0x4356c2;var _0xbe576c;this[_0x361445(0x1d7)][_0x361445(0x214)]({'unitId':_0xac3c57,'type':_0x484cf8,'subUnitId':_0x2962a6});let _0x1605ec=0x0,_0x271b30=await((_0xbe576c=this[_0x361445(0x2a4)])==null?void 0x0:_0xbe576c[_0x361445(0x31c)](_0xac3c57));return _0x271b30&&(_0x271b30[_0x361445(0xb4)]||_0x271b30[_0x361445(0x1d0)][_0x361445(0x14e)]!==0x0)&&(_0x1605ec=_0x271b30['rev']),_0x1605ec===0x0&&this[_0x361445(0x89)][_0x361445(0xc5)](_0x361445(0x15d),_0x361445(0x11f)),this['loadUnitOfRevision'](_0xac3c57,_0x484cf8,_0x1605ec);}};_0x584137=_0x223773([_0x9460ae(0x0,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0x1,(0x0,_0x186af2['Inject'])(_0x164f11[_0x4356c2(0x16d)])),_0x9460ae(0x2,(0x0,_0x186af2[_0x4356c2(0x37d)])(_0x42a910))],_0x584137);let _0x19c64c=class{constructor(_0x2fb2b0,_0x5f5b36,_0x5532b8){const _0x3b5966=_0x4356c2;this[_0x3b5966(0x353)]=_0x2fb2b0,this[_0x3b5966(0x150)]=_0x5f5b36,this['_univerInstanceService']=_0x5532b8,_0x1fdd2e(this,_0x3b5966(0x10d),0x0),_0x1fdd2e(this,_0x3b5966(0x35b),new _0x4f8104[(_0x3b5966(0x147))]()),_0x1fdd2e(this,_0x3b5966(0x274),this['_change$']),_0x1fdd2e(this,_0x3b5966(0x1c7),new Map());}[_0x4356c2(0x72)](_0x16b7d0){const _0x200f75=_0x4356c2;this[_0x200f75(0x10d)]=_0x16b7d0,this[_0x200f75(0x35b)][_0x200f75(0x214)](_0x16b7d0);}['getImageSourceCache'](_0x533c97,_0x13f3b9){const _0x304a78=_0x4356c2;if(_0x13f3b9===_0x1a135e[_0x304a78(0xb8)][_0x304a78(0x2d2)]){let _0x182095=new Image();return _0x182095['src']=_0x533c97,_0x182095;}return this['_imageSourceCache'][_0x304a78(0x217)](_0x533c97);}[_0x4356c2(0x112)](_0x4c8c62,_0x11b9d6,_0xb67c82){const _0x276a50=_0x4356c2;_0x11b9d6===_0x1a135e[_0x276a50(0xb8)][_0x276a50(0x2d2)]||_0xb67c82==null||this[_0x276a50(0x1c7)][_0x276a50(0x25f)](_0x4c8c62,_0xb67c82);}async[_0x4356c2(0x227)](_0x370889){const _0x1046a5=_0x4356c2;try{let _0xe21ee1=this[_0x1046a5(0xad)](this['_getSignURL'](),''+_0x370889),_0x1c55db=(await this[_0x1046a5(0x353)][_0x1046a5(0x217)](_0xe21ee1))[_0x1046a5(0x9d)];if(_0x1c55db[_0x1046a5(0x16b)]&&_0x1c55db['error'][_0x1046a5(0x193)]===_0x53d7dd[_0x1046a5(0x2aa)]['OK']){let _0x4264ba=(0x0,_0x186af2[_0x1046a5(0x340)])(_0x1c55db[_0x1046a5(0x1a9)],this['_getDownloadEndpointURL']());return Promise[_0x1046a5(0x33b)](_0x4264ba);}return Promise['reject'](_0x1c55db[_0x1046a5(0x16b)]);}catch(_0x4c6202){return Promise[_0x1046a5(0x91)](_0x4c6202);}}async[_0x4356c2(0x343)](_0x24e6be){const _0x472b9d=_0x4356c2;let _0x24c759='';if(!_0x1a135e['DRAWING_IMAGE_ALLOW_IMAGE_LIST']['includes'](_0x24e6be[_0x472b9d(0x306)]))return this[_0x472b9d(0x210)](),Promise[_0x472b9d(0x91)](Error(_0x1a135e['ImageUploadStatusType'][_0x472b9d(0x69)]));if(_0x24e6be[_0x472b9d(0x35a)]>(0x0,_0x1a135e[_0x472b9d(0xeb)])())return this['_decreaseWaiting'](),Promise[_0x472b9d(0x91)](Error(_0x1a135e[_0x472b9d(0x87)][_0x472b9d(0x325)]));try{let _0x4bcc75=new FormData();_0x4bcc75['append'](_0x472b9d(0x218),_0x24e6be);let _0x58996e=this[_0x472b9d(0x129)]['getFocusedUnit'](),_0x56e323=_0x58996e==null?void 0x0:_0x58996e[_0x472b9d(0x15f)]();if(!_0x56e323)throw Error('unitId\x20is\x20not\x20found');let _0x4a94fc=this[_0x472b9d(0xc9)]()+_0x472b9d(0x231)+_0x24e6be[_0x472b9d(0x35a)][_0x472b9d(0x179)]()+'&source='+_0x53d7dd['FileSource'][_0x472b9d(0x350)]+'&assign='+encodeURIComponent(_0x56e323),_0x356b47={'body':_0x4bcc75},_0x21e8b9=(await this[_0x472b9d(0x353)][_0x472b9d(0x1bc)](_0x4a94fc,_0x356b47))[_0x472b9d(0x9d)];if(typeof _0x21e8b9[_0x472b9d(0x8f)]!='string')return this['_decreaseWaiting'](),Promise[_0x472b9d(0x91)](Error(_0x1a135e[_0x472b9d(0x87)][_0x472b9d(0x154)]));_0x24c759=_0x21e8b9[_0x472b9d(0x8f)];}catch{return this[_0x472b9d(0x210)](),Promise[_0x472b9d(0x91)](Error(_0x1a135e[_0x472b9d(0x87)]['ERROR_IMAGE']));}return new Promise((_0x57e07e,_0x38fb01)=>{const _0x50f96e=_0x472b9d;let _0xd848a2=new FileReader();_0xd848a2['readAsDataURL'](_0x24e6be),_0xd848a2[_0x50f96e(0x117)]=_0x2f65c5=>{const _0x59f6e6=_0x50f96e;var _0x224ac1;let _0x38ea14=(_0x224ac1=_0x2f65c5['target'])==null?void 0x0:_0x224ac1[_0x59f6e6(0x1d8)];if(_0x38ea14==null){this[_0x59f6e6(0x210)](),_0x38fb01(Error(_0x1a135e['ImageUploadStatusType'][_0x59f6e6(0x154)]));return;}_0x57e07e({'imageId':(0x0,_0x186af2[_0x59f6e6(0x2c3)])(0x6),'imageSourceType':_0x1a135e[_0x59f6e6(0xb8)][_0x59f6e6(0x21b)],'source':_0x24c759,'base64Cache':_0x38ea14,'status':_0x1a135e[_0x59f6e6(0x87)][_0x59f6e6(0x1bb)]}),this[_0x59f6e6(0x210)]();};});}[_0x4356c2(0xc9)](){const _0x18bafb=_0x4356c2;var _0xdf3230;let _0x1493a2=this['_configService'][_0x18bafb(0x2f0)](_0x446dbc);return(_0xdf3230=_0x1493a2==null?void 0x0:_0x1493a2[_0x18bafb(0x2ab)])==null?_0x18bafb(0x1f8):_0xdf3230;}[_0x4356c2(0x6c)](){const _0x1eb49b=_0x4356c2;var _0x391b06;let _0x50a569=this[_0x1eb49b(0x150)][_0x1eb49b(0x2f0)](_0x446dbc);return(_0x391b06=_0x50a569==null?void 0x0:_0x50a569[_0x1eb49b(0x149)])==null?'/universer-api/file/{fileID}/sign-url':_0x391b06;}['_getDownloadEndpointURL'](){const _0x4b3609=_0x4356c2;var _0x5565ec;let _0x4c12c1=this[_0x4b3609(0x150)][_0x4b3609(0x2f0)](_0x446dbc);return(_0x5565ec=_0x4c12c1==null?void 0x0:_0x4c12c1[_0x4b3609(0xd5)])==null?location[_0x4b3609(0x31f)]:_0x5565ec;}['_replaceFileID'](_0x25022e,_0x4ef845){const _0x5f49cc=_0x4356c2;return _0x25022e[_0x5f49cc(0xac)](_0x5f49cc(0x2dd),_0x4ef845);}[_0x4356c2(0x210)](){const _0x5edfab=_0x4356c2;--this[_0x5edfab(0x10d)],this[_0x5edfab(0x35b)][_0x5edfab(0x214)](this[_0x5edfab(0x10d)]);}};_0x19c64c=_0x223773([_0x9460ae(0x0,(0x0,_0x186af2['Inject'])(_0x38ca3a['HTTPService'])),_0x9460ae(0x1,_0x186af2[_0x4356c2(0x2cd)]),_0x9460ae(0x2,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x20c)]))],_0x19c64c);let _0x28d60b=class{constructor(_0x53d722,_0xf6008e){const _0x1b22dd=_0x4356c2;this['_configService']=_0x53d722,this[_0x1b22dd(0x38f)]=_0xf6008e;}['_getAPIPrefixPath'](){const _0x1eb520=_0x4356c2;var _0x1930b9;let _0x504490=this['_configService']['getConfig'](_0x446dbc);return(_0x1930b9=_0x504490==null?void 0x0:_0x504490[_0x1eb520(0x346)])==null?'/universer-api/authz':_0x1930b9;}async['list'](_0x4226e1){const _0x2ee19b=_0x4356c2;let _0x371389=this[_0x2ee19b(0x249)]()+_0x2ee19b(0x176);return{'list':[{'title':_0x2ee19b(0x136),'mentions':(await this['_HTTPService'][_0x2ee19b(0x217)](_0x371389,{'params':{'objectID':_0x4226e1['unitId'],'unitID':_0x4226e1['unitId']}}))['body'][_0x2ee19b(0x18a)][_0x2ee19b(0xff)](_0x195d24=>({'objectId':_0x195d24['id'],'name':_0x195d24[_0x2ee19b(0x287)][_0x2ee19b(0x139)],'metadata':{'icon':_0x195d24[_0x2ee19b(0x287)]['avatar']},'label':_0x195d24[_0x2ee19b(0x287)][_0x2ee19b(0x139)],'objectType':_0x186af2[_0x2ee19b(0x31a)][_0x2ee19b(0x202)]})),'metadata':{},'type':_0x186af2[_0x2ee19b(0x31a)]['PERSON']}]};}};_0x28d60b=_0x223773([_0x9460ae(0x0,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x2cd)])),_0x9460ae(0x1,(0x0,_0x186af2['Inject'])(_0x38ca3a['HTTPService']))],_0x28d60b);let _0x56bc7c=class extends _0x186af2['RxDisposable']{constructor(_0x58c149,_0x38b587,_0x5d3f72,_0x175ecb,_0x13f768){const _0x5df6b5=_0x4356c2;super(),this[_0x5df6b5(0x31b)]=_0x58c149,this[_0x5df6b5(0x129)]=_0x38b587,this[_0x5df6b5(0x11e)]=_0x5d3f72,this['_collaborationSessionService']=_0x175ecb,this[_0x5df6b5(0x255)]=_0x13f768,this[_0x5df6b5(0xd6)](),this['_initCloseConn']();}[_0x4356c2(0x221)](){const _0x23ebb3=_0x4356c2;let _0x58c6fe=async _0x4066d4=>{const _0x459449=_0x364e;(await this[_0x459449(0x153)][_0x459449(0x277)](_0x4066d4))['event$'][_0x459449(0xc2)]((0x0,_0x55072d[_0x459449(0x323)])(_0x1714ed=>_0x1714ed[_0x459449(0x2ed)]===_0x164f11['CollaborationEvent'][_0x459449(0x1fc)]),(0x0,_0x55072d[_0x459449(0x315)])(this[_0x459449(0x345)]))[_0x459449(0x1fe)](_0x49f315=>{const _0x339a0d=_0x459449;let {reason:_0x2592e9}=_0x49f315[_0x339a0d(0x244)];this['_collaborationUIEventService']['emitEvent']({'id':_0x339a0d(0x28b),'data':_0x2592e9}),this['_permissionService'][_0x339a0d(0xdd)](new _0x19a0d0['WorkbookEditablePermission'](_0x4066d4)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x4066d4);});};(0x0,_0x4f8104[_0x23ebb3(0x14d)])(this[_0x23ebb3(0x129)][_0x23ebb3(0x108)](_0x186af2[_0x23ebb3(0xe6)][_0x23ebb3(0x2c0)]),this['_univerInstanceService'][_0x23ebb3(0x108)](_0x186af2['UniverInstanceType'][_0x23ebb3(0x1cf)]),this[_0x23ebb3(0x129)]['getTypeOfUnitAdded$'](_0x186af2['UniverInstanceType'][_0x23ebb3(0x32f)]))[_0x23ebb3(0xc2)]((0x0,_0x55072d['map'])(_0x2bf74e=>_0x2bf74e['unit'][_0x23ebb3(0x15f)]()),(0x0,_0x55072d[_0x23ebb3(0x323)])(_0x215819=>!(0x0,_0x186af2[_0x23ebb3(0x2a6)])(_0x215819)),(0x0,_0x55072d[_0x23ebb3(0x315)])(this[_0x23ebb3(0x345)]))[_0x23ebb3(0x1fe)](_0x5c7510=>{_0x58c6fe(_0x5c7510);});}[_0x4356c2(0xd6)](){const _0x2ae51c=_0x4356c2;let _0x51e1fb=async _0x2c6a60=>{const _0x55c97a=_0x364e;let _0x249d61=await this[_0x55c97a(0x153)][_0x55c97a(0x277)](_0x2c6a60),_0xb94efe=this[_0x55c97a(0x31b)][_0x55c97a(0x217)](_0x19a0d0[_0x55c97a(0x267)]);_0x249d61[_0x55c97a(0x21d)][_0x55c97a(0xc2)]((0x0,_0x55072d[_0x55c97a(0x323)])(_0x21ab97=>_0x21ab97[_0x55c97a(0x2ed)]===_0x164f11[_0x55c97a(0x1f7)][_0x55c97a(0x133)]),(0x0,_0x55072d['takeUntil'])(this[_0x55c97a(0x345)]))[_0x55c97a(0x1fe)](_0x2917d3=>{const _0x309b59=_0x55c97a;let {objectId:_0x542ae2}=_0x2917d3[_0x309b59(0x244)];_0x542ae2===_0x2c6a60?_0xb94efe['initWorkbookPermissionChange'](_0x2c6a60):_0xb94efe['refreshPermission'](_0x2c6a60,_0x542ae2);});};(0x0,_0x4f8104[_0x2ae51c(0x14d)])(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x186af2[_0x2ae51c(0xe6)]['UNIVER_SHEET']))[_0x2ae51c(0xc2)]((0x0,_0x55072d[_0x2ae51c(0xff)])(_0x3a1010=>_0x3a1010[_0x2ae51c(0x1e8)][_0x2ae51c(0x15f)]()),(0x0,_0x55072d['filter'])(_0x37921f=>!(0x0,_0x186af2['isInternalEditorID'])(_0x37921f)),(0x0,_0x55072d['takeUntil'])(this[_0x2ae51c(0x345)]))['subscribe'](_0x281c04=>{_0x51e1fb(_0x281c04);});}};_0x56bc7c=_0x223773([_0x9460ae(0x0,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2['Injector'])),_0x9460ae(0x1,_0x186af2[_0x4356c2(0x20c)]),_0x9460ae(0x2,_0x186af2[_0x4356c2(0x386)]),_0x9460ae(0x3,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x4145e5)),_0x9460ae(0x4,(0x0,_0x186af2['Inject'])(_0x167cb4))],_0x56bc7c);let _0x751228=class{constructor(_0x31f563,_0x5ebeb5){const _0x475650=_0x4356c2;this[_0x475650(0x150)]=_0x31f563,this[_0x475650(0x353)]=_0x5ebeb5;}async[_0x4356c2(0x297)](_0x414907,_0x563fdf){const _0x13fe4a=_0x4356c2;var _0x15ddec;let {unitID:_0x1e7403,type:_0x369a66,revision:_0x4fc799=0x0}=_0x563fdf,_0x11b0ab=this[_0x13fe4a(0x2a9)]()+'/'+_0x369a66+_0x13fe4a(0x21f)+_0x1e7403+'/rev/'+_0x4fc799,_0x3199fe=(await this[_0x13fe4a(0x353)]['get'](_0x11b0ab))['body'],_0x182524=(_0x15ddec=_0x3199fe['snapshot'])==null?void 0x0:_0x15ddec[_0x13fe4a(0x1aa)];if(_0x182524){let _0x27c9c6=_0x182524==null?void 0x0:_0x182524[_0x13fe4a(0x22d)];_0x182524['originalMeta']=_0x164f11[_0x13fe4a(0x1fd)]['encode']((0x0,_0x164f11[_0x13fe4a(0x38e)])(_0x27c9c6)),Object[_0x13fe4a(0x156)](_0x182524[_0x13fe4a(0x2c1)])[_0x13fe4a(0xc1)](([,_0x455e7f])=>{const _0x4ce07f=_0x13fe4a;let _0x25872a=_0x455e7f['originalMeta'];_0x455e7f[_0x4ce07f(0x22d)]=_0x164f11[_0x4ce07f(0x1fd)][_0x4ce07f(0x302)]((0x0,_0x164f11[_0x4ce07f(0x38e)])(_0x25872a));});}return _0x3199fe;}async[_0x4356c2(0x6a)](_0x378ddf,_0x17aa7f){const _0x229a08=_0x4356c2;let {unitID:_0x39757d,type:_0x5bc7a3,blockID:_0x460bc1}=_0x17aa7f,_0x2040d2=this[_0x229a08(0x2fc)]()+'/'+_0x5bc7a3+_0x229a08(0x21f)+_0x39757d+_0x229a08(0x170)+_0x460bc1;return(await this['_httpService'][_0x229a08(0x217)](_0x2040d2))[_0x229a08(0x9d)];}async['getDeserializedSheetBlock'](_0x2e8af3,_0x3fda2c){const _0x369431=_0x4356c2;let {unitID:_0xdc4268,type:_0x50e0b0,blockID:_0x3c4548}=_0x3fda2c,_0x171a50=this[_0x369431(0x2fc)]()+_0x369431(0x170)+_0x50e0b0+_0x369431(0x21f)+_0xdc4268+_0x369431(0x170)+_0x3c4548;return(await this['_httpService'][_0x369431(0x217)](_0x171a50))[_0x369431(0x9d)];}async[_0x4356c2(0x204)](_0x435889,_0x18c7ea){const _0x1e699f=_0x4356c2;let {unitID:_0x43e3c4,type:_0x32565c,from:_0x25c586,to:_0x3a8969}=_0x18c7ea,_0x235f7d=this['_getAPIPrefix']()+'/'+_0x32565c+_0x1e699f(0x21f)+_0x43e3c4+_0x1e699f(0x1db)+_0x25c586+'&to='+_0x3a8969;return(await this[_0x1e699f(0x353)]['get'](_0x235f7d))['body'];}['getSnapshotAPIPath'](){const _0x170010=_0x4356c2;var _0x399562;return(_0x399562=this[_0x170010(0x150)][_0x170010(0x2f0)](_0x170010(0x28d)))==null?this[_0x170010(0x2fc)]():_0x399562;}[_0x4356c2(0x2fc)](){const _0x15b085=_0x4356c2;var _0x1e4d0a;let _0x419986=this['_configService'][_0x15b085(0x2f0)](_0x446dbc);return(_0x1e4d0a=_0x419986==null?void 0x0:_0x419986[_0x15b085(0x270)])==null?_0x15b085(0xa9):_0x1e4d0a;}async[_0x4356c2(0x30f)](_0x43efbb,_0x4a8f08){const _0x4f4955=_0x4356c2;let _0xee0d74=_0x4f4955(0x252)+_0x4a8f08[_0x4f4955(0x306)]+_0x4f4955(0x21f)+_0x4a8f08[_0x4f4955(0x2e0)]+'/resources';return(await this['_httpService'][_0x4f4955(0x217)](_0xee0d74,{'params':{'resourceId':JSON[_0x4f4955(0x23a)](_0x4a8f08[_0x4f4955(0x20d)])}}))[_0x4f4955(0x9d)];}['saveSnapshot'](){const _0x3f135f=_0x4356c2;throw Error(_0x3f135f(0x1c1));}[_0x4356c2(0x292)](){const _0x3e6494=_0x4356c2;throw Error(_0x3e6494(0x1c1));}[_0x4356c2(0x1ae)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4356c2(0x308)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4356c2(0x2e8)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x6f43e6=_0x4356c2;throw Error(_0x6f43e6(0x1c1));}};_0x751228=_0x223773([_0x9460ae(0x0,_0x186af2['IConfigService']),_0x9460ae(0x1,(0x0,_0x186af2['Inject'])(_0x38ca3a[_0x4356c2(0x322)]))],_0x751228);let _0x547ef8=class extends _0x186af2['LocalUndoRedoService']{constructor(_0x55274d,_0x3c27eb,_0x28ec40,_0x4313c5,_0x3c5c0f){const _0x216dbe=_0x4356c2;super(_0x55274d,_0x3c27eb,_0x28ec40),this[_0x216dbe(0x390)]=_0x4313c5,this['_logService']=_0x3c5c0f;}[_0x4356c2(0xb9)](_0x12ea4c,_0x3f96c7){const _0xb52d01=_0x4356c2;let _0x4fa783=this[_0xb52d01(0x6e)](_0x12ea4c);if(_0x4fa783)try{let _0x437d15=this['_transformStack'](_0x4fa783,_0x3f96c7);this[_0xb52d01(0x21a)](_0x12ea4c,_0x437d15);}catch(_0x5a7362){this[_0xb52d01(0x89)][_0xb52d01(0x16b)](_0xb52d01(0x224),_0x5a7362),this[_0xb52d01(0x395)](_0x12ea4c);}let _0x11e5fb=this['_getRedoStack'](_0x12ea4c);if(_0x11e5fb)try{let _0x348905=this[_0xb52d01(0x73)](_0x11e5fb,_0x3f96c7);this[_0xb52d01(0x2da)](_0x12ea4c,_0x348905);}catch(_0x5f39d9){this['_logService']['error'](_0x5f39d9),this[_0xb52d01(0x132)](_0x12ea4c);}}[_0x4356c2(0x395)](_0x13ae09){const _0x4b5829=_0x4356c2;let _0x136f4e=this[_0x4b5829(0x6e)](_0x13ae09);_0x136f4e&&(_0x136f4e[_0x4b5829(0x14e)]=0x0,this[_0x4b5829(0xb6)]());}[_0x4356c2(0x132)](_0x4606fc){const _0x5c02d7=_0x4356c2;let _0x2bb601=this['_getRedoStack'](_0x4606fc);_0x2bb601&&(_0x2bb601[_0x5c02d7(0x14e)]=0x0,this[_0x5c02d7(0xb6)]());}[_0x4356c2(0x21a)](_0x57f381,_0x115420){const _0x2fec1a=_0x4356c2;this[_0x2fec1a(0x351)][_0x2fec1a(0x25f)](_0x57f381,_0x115420),this[_0x2fec1a(0xb6)]();}[_0x4356c2(0x2da)](_0x10086,_0x2c74e7){const _0x221c03=_0x4356c2;this[_0x221c03(0x1ac)][_0x221c03(0x25f)](_0x10086,_0x2c74e7),this[_0x221c03(0xb6)]();}[_0x4356c2(0x73)](_0x3f6b9c,_0x4d11d9){const _0x2c5b82=_0x4356c2;let _0x5534dc=[],_0x250d6b=_0x4d11d9,_0x6f50d8=_0x4d11d9;for(let _0x31eccb=_0x3f6b9c[_0x2c5b82(0x14e)]-0x1;_0x31eccb>=0x0;_0x31eccb--){let {unitID:_0x3a2750,undoMutations:_0x504e42,redoMutations:_0x4db8db}=_0x3f6b9c[_0x31eccb],_0x3fb3c5=this[_0x2c5b82(0x390)]['transformMutationsWithChangeset'](_0x250d6b,_0x504e42),_0x516371=this[_0x2c5b82(0x390)][_0x2c5b82(0xdc)](_0x6f50d8,_0x4db8db);if((0x0,_0x164f11['isTransformMutationsWithChangesetFailure'])(_0x3fb3c5)||(0x0,_0x164f11[_0x2c5b82(0xf5)])(_0x516371)){this['_logService'][_0x2c5b82(0x16b)](_0x2c5b82(0x224),'transformStack\x20failed!',_0x3fb3c5,_0x516371);break;}_0x250d6b=_0x3fb3c5[_0x2c5b82(0x13b)],_0x6f50d8=_0x516371['c1Prime'],_0x5534dc[_0x2c5b82(0x265)]({'unitID':_0x3a2750,'undoMutations':_0x3fb3c5[_0x2c5b82(0xd0)],'redoMutations':_0x516371[_0x2c5b82(0xd0)]});}return _0x5534dc['reverse']();}};_0x547ef8=_0x223773([_0x9460ae(0x0,_0x186af2[_0x4356c2(0x20c)]),_0x9460ae(0x1,_0x186af2[_0x4356c2(0x92)]),_0x9460ae(0x2,_0x186af2[_0x4356c2(0x2c4)]),_0x9460ae(0x3,_0x164f11['ITransformService']),_0x9460ae(0x4,_0x186af2[_0x4356c2(0x2a1)])],_0x547ef8);let _0x56e66b=class extends _0x186af2[_0x4356c2(0x34b)]{constructor(_0x4af92a={},_0x2d9adb,_0x5778f7,_0x49a037){const _0x3eb7bd=_0x4356c2;super(),this[_0x3eb7bd(0x34f)]=_0x4af92a,this[_0x3eb7bd(0x89)]=_0x2d9adb,this[_0x3eb7bd(0x31b)]=_0x5778f7,this[_0x3eb7bd(0x150)]=_0x49a037;let {..._0x949761}=(0x0,_0x186af2['merge'])({},_0x55b77a,_0x4af92a);if(!_0x949761[_0x3eb7bd(0x37c)])throw Error(_0x3eb7bd(0x2ac));this[_0x3eb7bd(0x34f)]=_0x949761,this[_0x3eb7bd(0x150)][_0x3eb7bd(0x1a0)](_0x446dbc,_0x949761);}[_0x4356c2(0x191)](){const _0x54bebb=_0x4356c2;this[_0x54bebb(0x22c)](),this['_initDependencies']();}[_0x4356c2(0x22c)](){const _0x24bbe1=_0x4356c2;var _0x4aed0a,_0x47ac19;this['_injector'][_0x24bbe1(0x14f)](_0x186af2[_0x24bbe1(0x1f6)])&&this[_0x24bbe1(0x89)][_0x24bbe1(0x16b)](_0x24bbe1(0x21c),_0x24bbe1(0x36c));let _0x48adc9=(0x0,_0x186af2[_0x24bbe1(0x146)])([[_0x186af2[_0x24bbe1(0x1f6)],{'useClass':_0x547ef8}],[_0x4145e5],[_0x2528bb],[_0x262e41],[_0x3a3e0d],[_0x277dcd],[_0x294775],[_0x56bc7c],[_0x167cb4],[_0x584137],[_0x336497,{'useClass':this[_0x24bbe1(0x34f)][_0x24bbe1(0x37c)]}],[_0x164f11[_0x24bbe1(0x1f5)],{'useClass':_0x751228}],[_0x186af2[_0x24bbe1(0x83)],{'useClass':_0x474919}],[_0x1a135e[_0x24bbe1(0x1a1)],{'useClass':_0x19c64c}],[_0x52783b,{'useClass':_0x36aec2}],[_0x186af2['IMentionIOService'],{'useClass':_0x28d60b}],[_0x4f82e0],[_0x343ba3]],(_0x4aed0a=this[_0x24bbe1(0x34f)])==null?void 0x0:_0x4aed0a['override']);if(!((_0x47ac19=this[_0x24bbe1(0x34f)])!=null&&_0x47ac19['enableSingleActiveInstanceLock'])){let _0x51b9ff=_0x48adc9[_0x24bbe1(0x2f6)](([_0xde3492])=>_0xde3492===_0x3348a1);_0x51b9ff!==-0x1&&_0x48adc9[_0x24bbe1(0x8a)](_0x51b9ff,0x1);}(0x0,_0x186af2[_0x24bbe1(0x196)])(this[_0x24bbe1(0x31b)],_0x48adc9);}[_0x4356c2(0xc4)](){const _0x1b872a=_0x4356c2;var _0x40a6bd,_0x141ccd;if(this[_0x1b872a(0x31b)][_0x1b872a(0x217)](_0x38ca3a[_0x1b872a(0x322)])[_0x1b872a(0x247)]({'priority':0x14,'interceptor':(0x0,_0x38ca3a[_0x1b872a(0x1e4)])({'maxParallel':0x6})}),!((_0x40a6bd=this['_config'])!=null&&_0x40a6bd['enableOfflineEditing'])){var _0x24b6f0;(_0x24b6f0=this[_0x1b872a(0x31b)][_0x1b872a(0x217)](_0x42a910,_0x186af2[_0x1b872a(0x100)]['OPTIONAL']))==null||_0x24b6f0['disableLocalCache']();}(_0x141ccd=this[_0x1b872a(0x34f)])!=null&&_0x141ccd[_0x1b872a(0x17a)]&&(0x0,_0x186af2['touchDependencies'])(this['_injector'],[[_0x3a3e0d]]),(0x0,_0x186af2[_0x1b872a(0x8b)])(this[_0x1b872a(0x31b)],[[_0x277dcd],[_0x4f82e0],[_0x56bc7c]]);}};_0x1fdd2e(_0x56e66b,_0x4356c2(0x285),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x1fdd2e(_0x56e66b,_0x4356c2(0x1f3),_0x4a354b),_0x1fdd2e(_0x56e66b,_0x4356c2(0x299),_0x2aeadb),_0x56e66b=_0x223773([(0x0,_0x186af2[_0x4356c2(0x2c2)])(_0x461bde['UniverLicensePlugin'],_0x164f11[_0x4356c2(0x12b)],_0x38ca3a['UniverNetworkPlugin']),_0x9460ae(0x1,_0x186af2[_0x4356c2(0x2a1)]),_0x9460ae(0x2,(0x0,_0x186af2[_0x4356c2(0x36a)])(_0x186af2[_0x4356c2(0x126)])),_0x9460ae(0x3,_0x186af2[_0x4356c2(0x2cd)])],_0x56e66b),_0x4a9262['AttachmentSourceType']=_0x1826ab,Object['defineProperty'](_0x4a9262,_0x4356c2(0xa7),{'enumerable':!0x0,'get':function(){return _0x474919;}}),Object['defineProperty'](_0x4a9262,_0x4356c2(0x167),{'enumerable':!0x0,'get':function(){return _0x52fc1d;}}),Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x79),{'enumerable':!0x0,'get':function(){return _0x4b42ee;}}),_0x4a9262[_0x4356c2(0x2d3)]=_0x446dbc,Object[_0x4356c2(0xd8)](_0x4a9262,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0x36aec2;}}),Object['defineProperty'](_0x4a9262,_0x4356c2(0x26c),{'enumerable':!0x0,'get':function(){return _0x4f82e0;}}),Object[_0x4356c2(0xd8)](_0x4a9262,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return _0xf0d3b;}}),Object[_0x4356c2(0xd8)](_0x4a9262,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return _0x19c64c;}}),Object['defineProperty'](_0x4a9262,_0x4356c2(0x301),{'enumerable':!0x0,'get':function(){return _0x5a1406;}}),Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x33e),{'enumerable':!0x0,'get':function(){return _0x4145e5;}}),Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x2f3),{'enumerable':!0x0,'get':function(){return _0x10f305;}}),_0x4a9262[_0x4356c2(0x2fd)]=_0x52ffab,_0x4a9262[_0x4356c2(0x28e)]=_0x52f27e,_0x4a9262['CollaborationUIEventService']=_0x167cb4,Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x10b),{'enumerable':!0x0,'get':function(){return _0x547ef8;}}),_0x4a9262[_0x4356c2(0x327)]=_0x294775,Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x38d),{'enumerable':!0x0,'get':function(){return _0x43d275;}}),_0x4a9262[_0x4356c2(0xfe)]=_0x34d797,_0x4a9262[_0x4356c2(0x8e)]=_0x4356c2(0x9a),_0x4a9262[_0x4356c2(0x266)]=_0x4356c2(0x1eb),Object['defineProperty'](_0x4a9262,_0x4356c2(0x13e),{'enumerable':!0x0,'get':function(){return _0x584137;}}),Object[_0x4356c2(0xd8)](_0x4a9262,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0xe5992c;}}),Object['defineProperty'](_0x4a9262,_0x4356c2(0xf4),{'enumerable':!0x0,'get':function(){return _0x2ed5dd;}}),_0x4a9262[_0x4356c2(0xfc)]=_0x4356c2(0x68),_0x4a9262[_0x4356c2(0xe9)]=_0x4356c2(0x2bc),_0x4a9262['IAttachmentIoService']=_0x52783b,_0x4a9262[_0x4356c2(0x2db)]=_0x336497,_0x4a9262[_0x4356c2(0xf6)]=_0x42a910,_0x4a9262[_0x4356c2(0x2e2)]=_0x563fdb,_0x4a9262[_0x4356c2(0x123)]=_0x3348a1,_0x4a9262[_0x4356c2(0x1a3)]=0x3e8,_0x4a9262[_0x4356c2(0x20e)]='LOCAL_CACHE_INTERVAL',Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x15e),{'enumerable':!0x0,'get':function(){return _0x2528bb;}}),Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x303),{'enumerable':!0x0,'get':function(){return _0x28d60b;}}),Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x14c),{'enumerable':!0x0,'get':function(){return _0x39b8fd;}}),Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x387),{'enumerable':!0x0,'get':function(){return _0x2f432b;}}),_0x4a9262[_0x4356c2(0x160)]=_0x4356c2(0x2a2),_0x4a9262[_0x4356c2(0x37a)]=_0x4356c2(0x216),_0x4a9262[_0x4356c2(0x101)]=_0x35784d,Object[_0x4356c2(0xd8)](_0x4a9262,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0xddaf92;}}),Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x341),{'enumerable':!0x0,'get':function(){return _0x262e41;}}),Object['defineProperty'](_0x4a9262,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x751228;}}),Object['defineProperty'](_0x4a9262,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x362a23;}}),_0x4a9262['UnitStatus']=_0x54ef51,Object[_0x4356c2(0xd8)](_0x4a9262,_0x4356c2(0x1b5),{'enumerable':!0x0,'get':function(){return _0x56e66b;}}),_0x4a9262[_0x4356c2(0x339)]=_0x2f5d4b,_0x4a9262[_0x4356c2(0x25d)]=_0x3ea2f7,_0x4a9262[_0x4356c2(0x22a)]=_0x48167a;}));
|