@univerjs-pro/collaboration-client 1.0.0-alpha.4 → 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x85662d=_0x342d;(function(_0x354854,_0x1b6066){const _0x5b9b99=_0x342d,_0x7577be=_0x354854();while(!![]){try{const _0x5d5748=-parseInt(_0x5b9b99(0x28f))/0x1+parseInt(_0x5b9b99(0x32f))/0x2+parseInt(_0x5b9b99(0x39c))/0x3*(parseInt(_0x5b9b99(0x3fe))/0x4)+-parseInt(_0x5b9b99(0x372))/0x5+parseInt(_0x5b9b99(0x41a))/0x6+-parseInt(_0x5b9b99(0x472))/0x7*(-parseInt(_0x5b9b99(0x3cd))/0x8)+parseInt(_0x5b9b99(0x31c))/0x9*(-parseInt(_0x5b9b99(0x2b4))/0xa);if(_0x5d5748===_0x1b6066)break;else _0x7577be['push'](_0x7577be['shift']());}catch(_0x451f5b){_0x7577be['push'](_0x7577be['shift']());}}}(_0x1d52,0xa8362),Object['defineProperty'](exports,Symbol[_0x85662d(0x345)],{'value':_0x85662d(0x4cd)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs-pro/slides'),l=require('@univerjs/network'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m='collaboration-client.config',ee={},te=_0x85662d(0x38b),ne=0x4e20;function re(_0x24db35){const _0x3d6c3f=_0x85662d;return JSON['stringify'](_0x24db35)[_0x3d6c3f(0x45a)];}function h(_0x5a7a71){'@babel/helpers - typeof';const _0x25861b=_0x85662d;return h=typeof Symbol==_0x25861b(0x297)&&typeof Symbol[_0x25861b(0x300)]=='symbol'?function(_0x2c3fee){return typeof _0x2c3fee;}:function(_0x1a2322){const _0x4e2096=_0x25861b;return _0x1a2322&&typeof Symbol==_0x4e2096(0x297)&&_0x1a2322[_0x4e2096(0x4f8)]===Symbol&&_0x1a2322!==Symbol[_0x4e2096(0x442)]?_0x4e2096(0x433):typeof _0x1a2322;},h(_0x5a7a71);}function ie(_0x1c95e5,_0x48d91a){const _0x11365d=_0x85662d;if(h(_0x1c95e5)!=_0x11365d(0x316)||!_0x1c95e5)return _0x1c95e5;var _0x1d56fb=_0x1c95e5[Symbol[_0x11365d(0x403)]];if(_0x1d56fb!==void 0x0){var _0x2ffe91=_0x1d56fb[_0x11365d(0x380)](_0x1c95e5,_0x48d91a||_0x11365d(0x1e8));if(h(_0x2ffe91)!='object')return _0x2ffe91;throw TypeError(_0x11365d(0x466));}return(_0x48d91a==='string'?String:Number)(_0x1c95e5);}function ae(_0xf01706){const _0x1d9b91=_0x85662d;var _0x4707d5=ie(_0xf01706,_0x1d9b91(0x1dc));return h(_0x4707d5)=='symbol'?_0x4707d5:_0x4707d5+'';}function g(_0x1bd518,_0x1ea489,_0x1e55af){const _0x5db8ec=_0x85662d;return(_0x1ea489=ae(_0x1ea489))in _0x1bd518?Object[_0x5db8ec(0x4bf)](_0x1bd518,_0x1ea489,{'value':_0x1e55af,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bd518[_0x1ea489]=_0x1e55af,_0x1bd518;}let oe=function(_0x20f15e){const _0xd4d47=_0x85662d;return _0x20f15e[_0xd4d47(0x4c4)]='OTHER_CLIENT_EDITING',_0x20f15e[_0xd4d47(0x2a7)]=_0xd4d47(0x2a7),_0x20f15e[_0xd4d47(0x374)]=_0xd4d47(0x374),_0x20f15e[_0xd4d47(0x446)]=_0xd4d47(0x446),_0x20f15e[_0xd4d47(0x1c9)]='JOIN_ROOM_FAILED',_0x20f15e[_0xd4d47(0x3e3)]=_0xd4d47(0x3e3),_0x20f15e[_0xd4d47(0x22f)]=_0xd4d47(0x22f),_0x20f15e[_0xd4d47(0x2a2)]=_0xd4d47(0x2a2),_0x20f15e;}({});var _=class{constructor(){const _0x7c36c2=_0x85662d;g(this,'_event$',new i[(_0x7c36c2(0x439))]()),g(this,_0x7c36c2(0x25d),this[_0x7c36c2(0x289)][_0x7c36c2(0x2dd)]());}[_0x85662d(0x3ae)](_0x5e5c7b){this['_event$']['next'](_0x5e5c7b);}},se=class{constructor(){const _0x53b488=_0x85662d;g(this,_0x53b488(0x215),new i[(_0x53b488(0x439))]()),g(this,_0x53b488(0x3e8),this[_0x53b488(0x215)]['asObservable']());}['onCommentUpdate'](_0x4f2871){const _0x305db6=_0x85662d;this[_0x305db6(0x215)][_0x305db6(0x49a)](_0x4f2871);}};function v(_0x5bfead,_0x5ba5b5){return function(_0x2091ec,_0x1d5600){_0x5ba5b5(_0x2091ec,_0x1d5600,_0x5bfead);};}function y(_0x5a92f0,_0x3d07b0,_0x3e95b4,_0x1e9a8f){const _0x2fbf8e=_0x85662d;var _0x508c23=arguments[_0x2fbf8e(0x45a)],_0x4c1295=_0x508c23<0x3?_0x3d07b0:_0x1e9a8f===null?_0x1e9a8f=Object[_0x2fbf8e(0x4ac)](_0x3d07b0,_0x3e95b4):_0x1e9a8f,_0x5771a6;if(typeof Reflect==_0x2fbf8e(0x316)&&typeof Reflect[_0x2fbf8e(0x3a6)]==_0x2fbf8e(0x297))_0x4c1295=Reflect[_0x2fbf8e(0x3a6)](_0x5a92f0,_0x3d07b0,_0x3e95b4,_0x1e9a8f);else{for(var _0x14ed8d=_0x5a92f0['length']-0x1;_0x14ed8d>=0x0;_0x14ed8d--)(_0x5771a6=_0x5a92f0[_0x14ed8d])&&(_0x4c1295=(_0x508c23<0x3?_0x5771a6(_0x4c1295):_0x508c23>0x3?_0x5771a6(_0x3d07b0,_0x3e95b4,_0x4c1295):_0x5771a6(_0x3d07b0,_0x3e95b4))||_0x4c1295);}return _0x508c23>0x3&&_0x4c1295&&Object[_0x2fbf8e(0x4bf)](_0x3d07b0,_0x3e95b4,_0x4c1295),_0x4c1295;}let b=class extends t[_0x85662d(0x304)]{constructor(_0x2eaea4,_0x21c400){const _0x4f7c9e=_0x85662d;super(),this['_univerInstanceService']=_0x2eaea4,this[_0x4f7c9e(0x2f3)]=_0x21c400,g(this,'_roomMembers',new Map()),g(this,_0x4f7c9e(0x2ac),new i[(_0x4f7c9e(0x439))]()),this[_0x4f7c9e(0x221)]((0x0,i[_0x4f7c9e(0x22e)])(this[_0x4f7c9e(0x22a)][_0x4f7c9e(0x4b8)](t[_0x4f7c9e(0x378)]['UNIVER_SHEET'])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0x4e5a0e=>_0x4e5a0e[_0x4f7c9e(0x3b9)]())),this[_0x4f7c9e(0x22a)]['getTypeOfUnitDisposed$'](t[_0x4f7c9e(0x378)][_0x4f7c9e(0x39f)])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0xf5fc77=>_0xf5fc77[_0x4f7c9e(0x3b9)]())),this[_0x4f7c9e(0x22a)]['getTypeOfUnitDisposed$'](t[_0x4f7c9e(0x378)][_0x4f7c9e(0x4b5)])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0x16111a=>_0x16111a[_0x4f7c9e(0x3b9)]())),this[_0x4f7c9e(0x22a)][_0x4f7c9e(0x4b8)](t[_0x4f7c9e(0x378)][_0x4f7c9e(0x440)])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0x31d578=>_0x31d578['getUnitId']())))['subscribe'](_0x396b7a=>this[_0x4f7c9e(0x41f)](_0x396b7a)));}[_0x85662d(0x3e6)](_0x349c05){const _0x54433b=_0x85662d;return this['_roomMembers'][_0x54433b(0x4ca)](_0x349c05)?(0x0,i['of'])(this[_0x54433b(0x35f)][_0x54433b(0x39b)](_0x349c05)):this['_roomCreated$'][_0x54433b(0x4bd)]((0x0,s[_0x54433b(0x3fc)])(_0x2ec3ac=>{const _0xe8e7cc=_0x54433b;if(_0x2ec3ac===_0x349c05)return this[_0xe8e7cc(0x35f)][_0xe8e7cc(0x39b)](_0x2ec3ac);}));}[_0x85662d(0x3d2)](_0x210e79){const _0x19b25f=_0x85662d;this[_0x19b25f(0x2f3)][_0x19b25f(0x3d2)](_0x210e79);}[_0x85662d(0x4f7)](){const _0x5b9620=_0x85662d;return this[_0x5b9620(0x2f3)]['getCurrentUser']();}['updateMember'](_0x4dcf4d,_0xa373c5){const _0x5a7588=_0x85662d;let _0x8b4912=this['_roomMembers'][_0x5a7588(0x39b)](_0x4dcf4d);_0x8b4912||(_0x8b4912=new ce(),this[_0x5a7588(0x35f)][_0x5a7588(0x43f)](_0x4dcf4d,_0x8b4912),this[_0x5a7588(0x2ac)][_0x5a7588(0x49a)](_0x4dcf4d)),_0x8b4912['updateMember'](_0xa373c5);}['removeMember'](_0x5b4a29,_0x3aa0c4){const _0x300c82=_0x85662d;let _0x93c9d3=this[_0x300c82(0x35f)][_0x300c82(0x39b)](_0x5b4a29);_0x93c9d3&&_0x93c9d3[_0x300c82(0x3e0)](_0x3aa0c4);}[_0x85662d(0x4de)](_0x1774e2){const _0x194d95=_0x85662d;return this[_0x194d95(0x35f)]['get'](_0x1774e2);}[_0x85662d(0x3c8)](_0x2f0c3c,_0xc4fc1){const _0x53e1f6=_0x85662d;let _0x55992b=this[_0x53e1f6(0x35f)][_0x53e1f6(0x39b)](_0x2f0c3c);if(_0x55992b)return _0x55992b[_0x53e1f6(0x3c8)](_0xc4fc1);}[_0x85662d(0x41f)](_0x264c0c){const _0x40d458=_0x85662d;let _0x28f7d2=this[_0x40d458(0x35f)]['get'](_0x264c0c);_0x28f7d2&&(_0x28f7d2['dispose'](),this[_0x40d458(0x35f)]['delete'](_0x264c0c));}['dispose'](){const _0x244602=_0x85662d;this[_0x244602(0x35f)]['forEach'](_0x3ff220=>_0x3ff220[_0x244602(0x469)]()),this[_0x244602(0x35f)][_0x244602(0x214)](),this[_0x244602(0x2ac)]['complete']();}};b=y([v(0x0,t['IUniverInstanceService']),v(0x1,(0x0,t['Inject'])(t[_0x85662d(0x43e)]))],b);var ce=class extends t[_0x85662d(0x304)]{constructor(..._0x4f28f0){const _0x17b095=_0x85662d;super(..._0x4f28f0),g(this,'_members',new Map()),g(this,'_members$',new i[(_0x17b095(0x475))](this['_members'])),g(this,_0x17b095(0x213),this[_0x17b095(0x4d4)][_0x17b095(0x2dd)]());}['dispose'](){const _0x45a590=_0x85662d;this[_0x45a590(0x283)][_0x45a590(0x214)](),this['_members$'][_0x45a590(0x3ab)]();}[_0x85662d(0x23b)](_0x1f94ae){const _0x2637eb=_0x85662d;this[_0x2637eb(0x283)][_0x2637eb(0x43f)](_0x1f94ae['memberID'],_0x1f94ae),this[_0x2637eb(0x381)]();}[_0x85662d(0x3e0)](_0x542615){const _0x2be152=_0x85662d;this['_members'][_0x2be152(0x36e)](_0x542615),this['_emitMembers']();}[_0x85662d(0x3c8)](_0x36fafc){const _0x258bce=_0x85662d;return this[_0x258bce(0x283)][_0x258bce(0x39b)](_0x36fafc);}[_0x85662d(0x363)](){const _0xf44e0e=_0x85662d;return Array['from'](this[_0xf44e0e(0x283)][_0xf44e0e(0x28c)]());}[_0x85662d(0x381)](){const _0x452e68=_0x85662d;this['_members$'][_0x452e68(0x49a)](this['_members']);}};function le(_0x54b37b,_0x458aaa){const _0x6c6741=_0x85662d;if(de(_0x54b37b))return _0x458aaa;if(_0x458aaa['eventID']===e[_0x6c6741(0x3fb)][_0x6c6741(0x4c6)]){var _0x222952;let _0x4c8367=ge(_0x54b37b),_0x25fe97=_0x458aaa;return{..._0x25fe97,'data':{..._0x25fe97[_0x6c6741(0x28a)],'unitID':_0x54b37b[_0x6c6741(0x1f0)][_0x6c6741(0x420)],'unitType':(_0x222952=_0x54b37b[_0x6c6741(0x1f0)]['unitType'])==null?_0x25fe97[_0x6c6741(0x28a)][_0x6c6741(0x369)]:_0x222952,'changeset':_0x4c8367[_0x6c6741(0x253)](_0x25fe97['data']['changeset'],_e(_0x54b37b))}};}if(_0x458aaa[_0x6c6741(0x336)]===e[_0x6c6741(0x3fb)][_0x6c6741(0x415)]){var _0x3ebbf3;let _0x48840f=_0x458aaa;return{..._0x48840f,'data':{..._0x48840f['data'],'unitID':_0x54b37b[_0x6c6741(0x1f0)][_0x6c6741(0x420)],'unitType':(_0x3ebbf3=_0x54b37b['target']['unitType'])==null?_0x48840f['data'][_0x6c6741(0x369)]:_0x3ebbf3}};}return _0x458aaa;}function ue(_0x67a866,_0x3ce6a5){const _0x2d0496=_0x85662d;if(de(_0x67a866))return[_0x3ce6a5];switch(_0x3ce6a5[_0x2d0496(0x336)]){case e[_0x2d0496(0x3fb)][_0x2d0496(0x2ae)]:return[fe(_0x67a866,_0x3ce6a5)];case e[_0x2d0496(0x3fb)]['PSEUDO_FETCH_MISSING_RESULT']:return[me(_0x67a866,_0x3ce6a5)];case e[_0x2d0496(0x3fb)]['CHANGESET_SHOULD_RETRY']:return[pe(_0x67a866,_0x3ce6a5)];default:return[_0x3ce6a5];}}function de(_0xa9e9ec){const _0x26a648=_0x85662d;return _0xa9e9ec[_0x26a648(0x1f0)]['endpoint']==null&&_0xa9e9ec['target'][_0x26a648(0x420)]===_0xa9e9ec[_0x26a648(0x329)]&&!_0xa9e9ec['changeset'];}function fe(_0x4292bd,_0x3494cf){const _0x462c7f=_0x85662d;return{..._0x3494cf,'data':(0x0,e[_0x462c7f(0x1e0)])(he(_0x4292bd,(0x0,e[_0x462c7f(0x486)])(_0x3494cf[_0x462c7f(0x28a)])))};}function pe(_0x35cb33,_0x43a235){const _0x4bbe00=_0x85662d;return{..._0x43a235,'data':he(_0x35cb33,_0x43a235[_0x4bbe00(0x28a)])};}function me(_0x2ab5ab,_0xf792ad){const _0x25033f=_0x85662d;let _0x7e5c64=_0xf792ad[_0x25033f(0x28a)];return{..._0xf792ad,'data':{..._0x7e5c64,'changesets':_0x7e5c64[_0x25033f(0x251)]['map'](_0x3f34da=>(0x0,e['parseChangesetToProtocol'])(he(_0x2ab5ab,(0x0,e[_0x25033f(0x486)])(_0x3f34da))))}};}function he(_0x204f70,_0x35c46d){const _0x2c4345=_0x85662d;return ge(_0x204f70)[_0x2c4345(0x3be)](_0x35c46d,_e(_0x204f70));}function ge(_0x2b6eb0){const _0x3cb2ba=_0x85662d;if(!_0x2b6eb0[_0x3cb2ba(0x45c)])throw Error(_0x3cb2ba(0x4e5));return _0x2b6eb0[_0x3cb2ba(0x45c)];}function _e(_0x41bb38){const _0x1b7e77=_0x85662d;return{'localUnitId':_0x41bb38[_0x1b7e77(0x329)],'unitType':_0x41bb38['unitType'],'target':_0x41bb38['target']};}let ve=function(_0x579976){const _0x5c5f88=_0x85662d;return _0x579976[_0x579976[_0x5c5f88(0x46d)]=0x0]=_0x5c5f88(0x46d),_0x579976[_0x579976[_0x5c5f88(0x3b3)]=0x1]=_0x5c5f88(0x3b3),_0x579976[_0x579976[_0x5c5f88(0x4c0)]=0x2]=_0x5c5f88(0x4c0),_0x579976[_0x579976['ONLINE']=0x3]=_0x5c5f88(0x389),_0x579976;}({});function _0x342d(_0x5e7c8a,_0x37e7a8){_0x5e7c8a=_0x5e7c8a-0x1c8;const _0x1d52f7=_0x1d52();let _0x342d5f=_0x1d52f7[_0x5e7c8a];return _0x342d5f;}const ye={[a[_0x85662d(0x25c)][_0x85662d(0x2e1)]]:_0x85662d(0x322),[a[_0x85662d(0x25c)][_0x85662d(0x1f2)]]:_0x85662d(0x1de),[a[_0x85662d(0x25c)][_0x85662d(0x3b4)]]:_0x85662d(0x375),[a['CmdRspCode']['JOIN_ROOM_PERMISSION_DENIED']]:_0x85662d(0x2cb),[a[_0x85662d(0x25c)][_0x85662d(0x26e)]]:'session.room-cnt-exceeds'};let x=class extends t[_0x85662d(0x42c)]{get[_0x85662d(0x4b6)](){return this['_sessionStatus$']['getValue']();}constructor(_0x14e86b,_0x5e97c0,_0x1283bd,_0x4f71c7,_0x2a3137,_0x3e9456,_0x3c3e17,_0x13975b){const _0x270c16=_0x85662d;super(),this[_0x270c16(0x3ce)]=_0x14e86b,this[_0x270c16(0x29f)]=_0x1283bd,this['_configService']=_0x4f71c7,this[_0x270c16(0x2fe)]=_0x2a3137,this[_0x270c16(0x3f6)]=_0x3e9456,this[_0x270c16(0x46e)]=_0x3c3e17,this[_0x270c16(0x4da)]=_0x13975b,g(this,_0x270c16(0x202),new i[(_0x270c16(0x475))](0x0)),g(this,_0x270c16(0x332),this[_0x270c16(0x202)]['asObservable']()),g(this,'_event$',new i['Subject']()),g(this,_0x270c16(0x25d),this[_0x270c16(0x289)][_0x270c16(0x2dd)]()),g(this,_0x270c16(0x1e5),void 0x0),g(this,_0x270c16(0x217),void 0x0),g(this,_0x270c16(0x4d8),void 0x0),g(this,_0x270c16(0x2d9),!0x1),g(this,_0x270c16(0x3dc),null),this[_0x270c16(0x2d9)]=!!this[_0x270c16(0x4da)],_0x5e97c0[_0x270c16(0x4bd)]((0x0,i[_0x270c16(0x2fc)])(this[_0x270c16(0x3df)]))[_0x270c16(0x46c)](_0x424b02=>{const _0x5eebd4=_0x270c16;if(_0x424b02!==void 0x0){if(this[_0x5eebd4(0x1e5)]=_0x424b02,_0x424b02)this['_joinRoom'](_0x424b02),this[_0x5eebd4(0x217)]=_0x424b02[_0x5eebd4(0x21b)]['subscribe'](_0x2bea40=>{const _0x923a93=_0x5eebd4;_0x2bea40[_0x923a93(0x349)]===this[_0x923a93(0x3ce)]['target'][_0x923a93(0x420)]&&this[_0x923a93(0x30b)](_0x2bea40);});else{var _0x1fb32b;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5eebd4(0x202)][_0x5eebd4(0x49a)](0x2),(_0x1fb32b=this[_0x5eebd4(0x217)])==null||_0x1fb32b[_0x5eebd4(0x269)](),this[_0x5eebd4(0x217)]=null;}}});}[_0x85662d(0x4b7)](){const _0x4a49f2=_0x85662d;var _0x15707c,_0x5bf16f;return(_0x15707c=(_0x5bf16f=this['_socket'])==null?void 0x0:_0x5bf16f[_0x4a49f2(0x4e4)])==null?null:_0x15707c;}[_0x85662d(0x469)](){const _0x21484b=_0x85662d;super['dispose'](),this[_0x21484b(0x418)](),this[_0x21484b(0x3df)][_0x21484b(0x49a)](),this['dispose$']['complete']();}[_0x85662d(0x418)](){const _0x40f522=_0x85662d;var _0x3f8ef5;this[_0x40f522(0x2af)](),(_0x3f8ef5=this[_0x40f522(0x1e5)])==null||_0x3f8ef5[_0x40f522(0x48b)]({'cmd':a[_0x40f522(0x44a)]['LEAVE'],'data':{'roomID':this[_0x40f522(0x3ce)][_0x40f522(0x1f0)][_0x40f522(0x420)]}}),this[_0x40f522(0x289)][_0x40f522(0x3ab)](),this['_sessionStatus$'][_0x40f522(0x3ab)]();}[_0x85662d(0x30b)](_0x3f6e80){const _0x1fe370=_0x85662d;_0x3f6e80['cmd']===a[_0x1fe370(0x44a)][_0x1fe370(0x1e7)]?this['_onJoinRoomEvent'](_0x3f6e80):_0x3f6e80[_0x1fe370(0x348)]===a[_0x1fe370(0x44a)]['RECV']&&this[_0x1fe370(0x33c)](_0x3f6e80);}['_joinRoom'](_0x50b030){const _0x1a3f35=_0x85662d;this[_0x1a3f35(0x202)]['next'](0x1),_0x50b030[_0x1a3f35(0x48b)]({'cmd':a[_0x1a3f35(0x44a)][_0x1a3f35(0x1e7)],'routeKey':this['_identity'][_0x1a3f35(0x1f0)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x1a3f35(0x1f0)][_0x1a3f35(0x420)]}]}});}['_onJoinRoomEvent'](_0x5e0b27){const _0x53a725=_0x85662d;var _0x4da6cc;if(_0x5e0b27['code']in ye){this[_0x53a725(0x46e)][_0x53a725(0x3ae)]({'id':_0x53a725(0x1c9),'data':ye[_0x5e0b27[_0x53a725(0x1d4)]]}),this[_0x53a725(0x202)]['next'](0x2);return;}this[_0x53a725(0x202)][_0x53a725(0x49a)](0x3);let _0x11bb27=(_0x4da6cc=_0x5e0b27['data'][_0x53a725(0x4d2)][this[_0x53a725(0x3ce)][_0x53a725(0x1f0)][_0x53a725(0x420)]])==null?void 0x0:_0x4da6cc[_0x53a725(0x49d)];_0x11bb27&&_0x11bb27[_0x53a725(0x30f)](_0x475390=>this[_0x53a725(0x2fe)]['updateMember'](this[_0x53a725(0x3ce)][_0x53a725(0x329)],_0x475390));}[_0x85662d(0x33c)](_0x16c3f1){const _0x37c573=_0x85662d;try{let _0x77342f=ue(this[_0x37c573(0x3ce)],_0x16c3f1[_0x37c573(0x28a)]);for(let _0xde405a of _0x77342f)switch(_0xde405a[_0x37c573(0x336)]){case e[_0x37c573(0x3fb)]['USERS_ENTER']:this[_0x37c573(0x44d)](_0xde405a),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x2fb)]:this[_0x37c573(0x1e2)](_0xde405a),this[_0x37c573(0x289)]['next'](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x410)]:case e[_0x37c573(0x3fb)]['CHANGESET_SHOULD_RETRY']:this[_0x37c573(0x260)](),this[_0x37c573(0x480)](),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x4c3)]:this[_0x37c573(0x29f)][_0x37c573(0x3cc)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x37c573(0x407)](_0xde405a)),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x267)]:this[_0x37c573(0x3f6)][_0x37c573(0x3ca)](_0xde405a['data']),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;default:this[_0x37c573(0x289)]['next'](_0xde405a);}}catch(_0x2f5627){this[_0x37c573(0x29f)][_0x37c573(0x3cc)](_0x2f5627,_0x16c3f1);}}[_0x85662d(0x44d)](_0x5223f9){const _0x597338=_0x85662d;this['_memberService'][_0x597338(0x23b)](this['_identity'][_0x597338(0x329)],_0x5223f9[_0x597338(0x28a)]);}[_0x85662d(0x1e2)](_0x37c003){const _0x44265b=_0x85662d;this[_0x44265b(0x2fe)][_0x44265b(0x3e0)](this[_0x44265b(0x3ce)][_0x44265b(0x329)],_0x37c003[_0x44265b(0x28a)][_0x44265b(0x4e4)]);}async[_0x85662d(0x48b)](_0x2bfaa3,_0xbf53ee){const _0x5dd9ad=_0x85662d;if(this['sessionStatus']!==0x3||!this[_0x5dd9ad(0x1e5)])throw Error(_0x5dd9ad(0x2c1));try{let _0x5a2874=le(this['_identity'],_0x2bfaa3);_0x5a2874['eventID']===e[_0x5dd9ad(0x3fb)][_0x5dd9ad(0x4c6)]&&(this[_0x5dd9ad(0x422)](),this[_0x5dd9ad(0x3b0)](_0x5a2874)),this[_0x5dd9ad(0x1e5)]['send']({'cmd':a[_0x5dd9ad(0x44a)][_0x5dd9ad(0x205)],'routeKey':this[_0x5dd9ad(0x3ce)]['target'][_0x5dd9ad(0x420)],'routeType':'','data':_0x5a2874});}catch(_0x3046bf){this['_logService'][_0x5dd9ad(0x3cc)](_0x3046bf);}}[_0x85662d(0x422)](){const _0x569e76=_0x85662d;var _0x4f35c8;this[_0x569e76(0x4d8)]=setTimeout(()=>{const _0x4bc15b=_0x569e76;this[_0x4bc15b(0x4d8)]=null,this[_0x4bc15b(0x46e)]['emitEvent']({'id':_0x4bc15b(0x2a2)});},(_0x4f35c8=this[_0x569e76(0x377)][_0x569e76(0x262)](_0x569e76(0x258)))==null?ne:_0x4f35c8);}[_0x85662d(0x480)](){const _0x5b8e1d=_0x85662d;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5b8e1d(0x4d8)]),this[_0x5b8e1d(0x4d8)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x177a6c){const _0x3ef665=_0x85662d;if(!this['_shouldReportTelemetry'])return;let {data:_0xb141e0}=_0x177a6c,{unitID:_0x2d969b,changeset:_0x5dd049}=_0xb141e0,{mutations:_0x13ad5d,type:_0x26ecbc}=_0x5dd049;this[_0x3ef665(0x3dc)]={'unitId':_0x2d969b,'type':_0x26ecbc,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':re(_0x13ad5d)};}[_0x85662d(0x260)](){const _0x3b6d08=_0x85662d;if(this[_0x3b6d08(0x2d9)]){if(!this[_0x3b6d08(0x3dc)]){this[_0x3b6d08(0x29f)][_0x3b6d08(0x3cc)]('[CollaborationSession]',_0x3b6d08(0x492));return;}this[_0x3b6d08(0x3dc)][_0x3b6d08(0x4b2)]=performance[_0x3b6d08(0x1d2)](),this['_telemetryInfo'][_0x3b6d08(0x1f6)]=this[_0x3b6d08(0x3dc)][_0x3b6d08(0x4b2)]-this['_telemetryInfo'][_0x3b6d08(0x47a)],this[_0x3b6d08(0x4da)][_0x3b6d08(0x219)](_0x3b6d08(0x261),this[_0x3b6d08(0x3dc)]),this[_0x3b6d08(0x3dc)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x11faa2=_0x85662d;this[_0x11faa2(0x3dc)]=null;}};x=y([v(0x2,t['ILogService']),v(0x3,t[_0x85662d(0x29d)]),v(0x4,(0x0,t[_0x85662d(0x340)])(b)),v(0x5,(0x0,t[_0x85662d(0x340)])(se)),v(0x6,(0x0,t[_0x85662d(0x340)])(_)),v(0x7,(0x0,t[_0x85662d(0x32e)])(o[_0x85662d(0x37f)]))],x);const S=(0x0,t[_0x85662d(0x3ea)])(_0x85662d(0x498));function be(_0x1b4fbf){const _0x481aef=_0x85662d;return _0x481aef(0x353)+_0x1b4fbf;}function xe(_0x36455f){const _0x1c0822=_0x85662d;let {unitID:_0x221150,mutations:_0x59d52e}=_0x36455f;return{'unitId':_0x221150,'subUnitId':_0x59d52e[_0x1c0822(0x45a)]>0x0?_0x59d52e[0x0][_0x1c0822(0x3c0)][_0x1c0822(0x31f)]:null};}let C=class{constructor(_0x1786c8,_0x3b7cee,_0x272c95){const _0x5ec1b8=_0x85662d;this[_0x5ec1b8(0x3f3)]=_0x1786c8,this[_0x5ec1b8(0x30e)]=_0x3b7cee,this[_0x5ec1b8(0x25e)]=_0x272c95;}[_0x85662d(0x45e)](_0x1b3058){const _0x450ce6=_0x85662d;var _0x849711,_0x13d25e;let _0xb4289d=this[_0x450ce6(0x3f3)][_0x450ce6(0x39b)](r['SheetsSelectionsService']),{unitId:_0x2b9576,subUnitId:_0x41a4a3}=xe(_0x1b3058),_0x323260=_0xb4289d==null?void 0x0:_0xb4289d['getWorkbookSelections'](_0x2b9576)[_0x450ce6(0x291)](),_0x4e678a=(_0x849711=this['_instanceService'][_0x450ce6(0x445)](_0x2b9576))==null||(_0x849711=_0x849711[_0x450ce6(0x42b)]())==null?void 0x0:_0x849711[_0x450ce6(0x3ed)]();if(_0x323260[_0x450ce6(0x45a)]===0x0||!_0x2b9576||!_0x41a4a3)return;let _0x39fce1=[{'id':r[_0x450ce6(0x1f9)]['id'],'params':{'unitId':_0x2b9576,'subUnitId':_0x4e678a,'selections':t[_0x450ce6(0x39e)][_0x450ce6(0x1db)](_0x323260)}}],_0x5f503b=this['_transformService'][_0x450ce6(0x3cf)](_0x1b3058,_0x39fce1);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x5f503b))throw _0x5f503b[_0x450ce6(0x3cc)];let _0x5bc9f1=(_0x13d25e=_0x5f503b['m2Prime'][0x0])==null||(_0x13d25e=_0x13d25e[_0x450ce6(0x3c0)])==null?void 0x0:_0x13d25e[_0x450ce6(0x278)];if(Array[_0x450ce6(0x24f)](_0x5bc9f1)&&_0x5bc9f1[_0x450ce6(0x45a)]){if(_0x5bc9f1[_0x450ce6(0x45a)]===_0x39fce1[0x0][_0x450ce6(0x3c0)][_0x450ce6(0x278)]['length']&&_0x5bc9f1[_0x450ce6(0x2c0)]((_0x260d1f,_0x157667)=>t[_0x450ce6(0x3d8)][_0x450ce6(0x2d5)](_0x260d1f[_0x450ce6(0x34d)],_0x39fce1[0x0][_0x450ce6(0x3c0)][_0x450ce6(0x278)][_0x157667]['range'])))return;this[_0x450ce6(0x3f3)][_0x450ce6(0x39b)](t[_0x450ce6(0x448)])[_0x450ce6(0x227)](r[_0x450ce6(0x1f9)]['id'],{'unitId':_0x2b9576,'subUnitId':_0x4e678a,'selections':_0x5bc9f1});}}};C=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x1,e[_0x85662d(0x301)]),v(0x2,t[_0x85662d(0x33e)])],C);const w=(0x0,t['createIdentifier'])(_0x85662d(0x3e1));let Se=function(_0x20e66a){const _0x1e2e0c=_0x85662d;return _0x20e66a[_0x20e66a[_0x1e2e0c(0x4ed)]=0x0]=_0x1e2e0c(0x4ed),_0x20e66a[_0x20e66a[_0x1e2e0c(0x42f)]=0x1]='OTHER_CLIENTS_EDITING',_0x20e66a;}({});function Ce(_0x5ba452){const _0x4f0a89=_0x85662d;var _0x3483d4;return!!((_0x3483d4=_0x5ba452[_0x4f0a89(0x3c0)])!=null&&_0x3483d4['__splitChunk__']);}const we=new Set([r[_0x85662d(0x3f7)]['id']]),Te=new Set([c['AddSlidePageMutation']['id'],c['EnsureSlideMasterPageMutation']['id'],c[_0x85662d(0x2ea)]['id'],c['RemoveSlidePageMutation']['id']]);function Ee(_0x19396e,_0x2eb7cf=we){const _0x4cb637=_0x85662d;let _0x30bef3=[];for(let _0x5962b2 of _0x19396e){if(_0x2eb7cf['has'](_0x5962b2['id'])){if(_0x30bef3['length']>0x0)break;_0x30bef3[_0x4cb637(0x4e6)](_0x5962b2);break;}if(Ce(_0x5962b2)){if(_0x30bef3[_0x4cb637(0x45a)]>0x0)break;_0x30bef3['push'](_0x5962b2);break;}_0x30bef3[_0x4cb637(0x4e6)](_0x5962b2);}return _0x30bef3;}function T(_0x3511b2,_0x12f96f,_0x39a384,_0x262410,_0x414db6){const _0x52937f=_0x85662d;var _0x3a2453,_0x599788,_0x3c25f8,_0x1410b1;let _0x1178c4=Ee(_0x3511b2),_0xc87791=(_0x3a2453=(_0x599788=_0x414db6['getCurrentUser']())==null?void 0x0:_0x599788[_0x52937f(0x302)])==null?_0x52937f(0x3f4):_0x3a2453,_0x3fcd7f=(_0x3c25f8=(_0x1410b1=_0x414db6[_0x52937f(0x4f7)]())==null?void 0x0:_0x1410b1[_0x52937f(0x4e4)])==null?'unknown':_0x3c25f8;return{'changeset':{'unitID':_0x12f96f,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x39a384['getUnitType'](_0x12f96f)),'baseRev':_0x262410[_0x52937f(0x337)](_0x12f96f),'revision':0x0,'userID':_0xc87791,'memberID':_0x3fcd7f,'mutations':_0x1178c4},'pendingMutations':_0x3511b2[_0x52937f(0x409)](_0x1178c4['length'])};}function De(_0x121dc4,_0x5b0137,_0x1a082a,_0x4b90e4,_0x2a248b){const _0x58c454=_0x85662d;var _0x370158,_0x32b6b5,_0x19d190,_0x4b55ee;let _0x524389=Ee(_0x121dc4,Te),_0x54dd61=(_0x370158=(_0x32b6b5=_0x2a248b[_0x58c454(0x4f7)]())==null?void 0x0:_0x32b6b5[_0x58c454(0x302)])==null?_0x58c454(0x3f4):_0x370158,_0x5be3b8=(_0x19d190=(_0x4b55ee=_0x2a248b[_0x58c454(0x4f7)]())==null?void 0x0:_0x4b55ee[_0x58c454(0x4e4)])==null?'unknown':_0x19d190;return{'changeset':{'unitID':_0x5b0137,'type':(0x0,e[_0x58c454(0x444)])(_0x1a082a[_0x58c454(0x238)](_0x5b0137)),'baseRev':_0x4b90e4[_0x58c454(0x337)](_0x5b0137),'revision':0x0,'userID':_0x54dd61,'memberID':_0x5be3b8,'mutations':_0x524389},'pendingMutations':_0x121dc4[_0x58c454(0x409)](_0x524389[_0x58c454(0x45a)])};}function Oe(_0x14e24f,_0x6013d1,_0x3daf4a,_0x42fc0e,_0x5f12c3){const _0x52b4a7=_0x85662d;var _0x464b25,_0x3bddf0,_0x1e57ad,_0x1632ae;let _0x5bfc17=_0x14e24f[_0x52b4a7(0x399)]((_0x583380,_0x27b5c3)=>{const _0x5e5b5c=_0x52b4a7;let _0x2beb24=_0x583380[_0x583380[_0x5e5b5c(0x45a)]-0x1],{id:_0x8e721b}=_0x2beb24==null?{}:_0x2beb24,{id:_0x216782,type:_0x3235f3}=_0x27b5c3,_0x15cc0d=_0x27b5c3['params'];if(_0x8e721b&&_0x8e721b!==_0x216782)throw Error(_0x5e5b5c(0x447)+_0x8e721b+_0x5e5b5c(0x2de)+_0x216782+'.');if(!_0x2beb24)return[{'id':_0x216782,'type':_0x3235f3,'params':{'unitId':_0x15cc0d[_0x5e5b5c(0x420)],'textRanges':_0x15cc0d[_0x5e5b5c(0x240)],'actions':_0x15cc0d['actions']}}];let _0x30c3fb=_0x2beb24[_0x5e5b5c(0x3c0)];return ke(_0x30c3fb,_0x15cc0d)?[..._0x583380[_0x5e5b5c(0x409)](0x0,-0x1),{..._0x2beb24,'id':_0x216782,'type':_0x3235f3,'params':{'unitId':_0x15cc0d[_0x5e5b5c(0x420)],'textRanges':_0x15cc0d[_0x5e5b5c(0x240)],'actions':t[_0x5e5b5c(0x339)][_0x5e5b5c(0x3bb)](_0x30c3fb[_0x5e5b5c(0x470)],_0x15cc0d[_0x5e5b5c(0x470)])}}]:[..._0x583380,{'id':_0x216782,'type':_0x3235f3,'params':{'unitId':_0x15cc0d[_0x5e5b5c(0x420)],'textRanges':_0x15cc0d['textRanges'],'actions':_0x15cc0d[_0x5e5b5c(0x470)]}}];},[]),_0x2e0262=(_0x464b25=(_0x3bddf0=_0x5f12c3[_0x52b4a7(0x4f7)]())==null?void 0x0:_0x3bddf0[_0x52b4a7(0x302)])==null?'unknown':_0x464b25,_0x12e0e9=(_0x1e57ad=(_0x1632ae=_0x5f12c3[_0x52b4a7(0x4f7)]())==null?void 0x0:_0x1632ae[_0x52b4a7(0x4e4)])==null?'unknown':_0x1e57ad;return{'changeset':{'unitID':_0x6013d1,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x3daf4a[_0x52b4a7(0x238)](_0x6013d1)),'baseRev':_0x42fc0e['getCurrentRevOfUnit'](_0x6013d1),'revision':0x0,'userID':_0x2e0262,'memberID':_0x12e0e9,'mutations':_0x5bfc17},'pendingMutations':_0x14e24f[_0x52b4a7(0x409)](_0x14e24f['length'])};}function ke(_0x556153,_0x50abed){const _0x54105e=_0x85662d;return!Ae(_0x556153)&&!Ae(_0x50abed)&&je(_0x556153[_0x54105e(0x470)],_0x50abed[_0x54105e(0x470)]);}function Ae(_0x5c1ba4){const _0x1cfd7b=_0x85662d;return _0x5c1ba4[_0x1cfd7b(0x460)]!==void 0x0;}function je(_0x62b585,_0x381daa){return Me(_0x62b585)&&Me(_0x381daa)&&!Pe(_0x62b585)&&!Pe(_0x381daa)&&!Ne(_0x62b585)&&!Ne(_0x381daa);}function Me(_0xee7391){const _0x25fbd4=_0x85662d;return Fe(_0xee7391)['some'](_0x18db19=>E(_0x18db19)&&_0x18db19['et']===_0x25fbd4(0x23a));}function Ne(_0x575607){const _0x143de3=_0x85662d;return Fe(_0x575607)[_0x143de3(0x450)](_0x26169a=>Array[_0x143de3(0x24f)](_0x26169a)||typeof _0x26169a==_0x143de3(0x1dc)||typeof _0x26169a==_0x143de3(0x24d));}function Pe(_0xa85a2d){const _0x9446e8=_0x85662d;return Fe(_0xa85a2d)[_0x9446e8(0x450)](_0x52f9de=>!E(_0x52f9de)||_0x52f9de['et']!==_0x9446e8(0x23a)||!Array[_0x9446e8(0x24f)](_0x52f9de['e'])?!0x1:_0x52f9de['e'][_0x9446e8(0x450)](_0x25bdec=>!E(_0x25bdec)||!E(_0x25bdec[_0x9446e8(0x2a6)])?!0x1:Object[_0x9446e8(0x442)]['hasOwnProperty']['call'](_0x25bdec['body'],_0x9446e8(0x21a))||Object[_0x9446e8(0x442)][_0x9446e8(0x47d)][_0x9446e8(0x380)](_0x25bdec[_0x9446e8(0x2a6)],_0x9446e8(0x310))||Object['prototype'][_0x9446e8(0x47d)][_0x9446e8(0x380)](_0x25bdec[_0x9446e8(0x2a6)],_0x9446e8(0x2bc))));}function Fe(_0x24e9a7){const _0x42b4d6=_0x85662d;if(!Array['isArray'](_0x24e9a7))return[];let _0x52a0a6=_0x24e9a7[_0x42b4d6(0x314)]('body')?_0x24e9a7:_0x24e9a7['find'](_0x2dac03=>Array[_0x42b4d6(0x24f)](_0x2dac03)&&_0x2dac03[_0x42b4d6(0x314)]('body'));if(!Array[_0x42b4d6(0x24f)](_0x52a0a6))return[];let _0x561241=_0x52a0a6[_0x42b4d6(0x4a4)]('body');return _0x561241===-0x1?[]:_0x52a0a6['slice'](_0x561241+0x1);}function E(_0x2e22a0){const _0x13f534=_0x85662d;return typeof _0x2e22a0==_0x13f534(0x316)&&!!_0x2e22a0&&!Array[_0x13f534(0x24f)](_0x2e22a0);}function Ie(_0xf8e76a,_0x33604d){const _0x59b6b3=_0x85662d;let _0x4a5dac=new i[(_0x59b6b3(0x392))](0x1);return setTimeout(()=>_0x4a5dac[_0x59b6b3(0x49a)](_0x33604d),_0xf8e76a),_0x4a5dac[_0x59b6b3(0x2dd)]()[_0x59b6b3(0x4bd)]((0x0,i[_0x59b6b3(0x3e5)])(0x1));}var Le,Re,ze;function _0x1d52(){const _0x1154c0=['[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','isTransformChangesetsSuccess','toPrimitive','offline','loadBase','mutations','stringify','ERROR_IMAGE','slice','signUrlServerUrl','getTime','getValue','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','list','method','CHANGESET_ACK','onSendChangeset','packageName','retryConnectingTimer','SNAPSHOT_URL_KEY','FETCH_MISSING','WorkbookEditablePermission','uniscriptRunEvent','close','_networkConditionService','8108040VJQwsy','SHOULD_CLOSE_CONN','_imageSourceCache','endpointKey','_registerDependencies','_removeRoom','unitId','candidateSocket','_scheduleCollaborationTimeoutTimer','sendHeartbeatTimer','_unlockTransition','DocCollaborationEntity','AWAITING_WITH_PENDING','socketReady','_getConfig','_singleActiveUnitService','parse','getActiveSheet','RxDisposable','ThresholdInterceptorFactory','[CollaborationEntity]','OTHER_CLIENTS_EDITING','liveShareNewHost','_waitForHeartbeatResponse','incrementRevOfUnit','symbol','reject','_updateStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','updateOfflineData','touchDependencies','Subject','\x20to\x20','COMPRESS_MUTATION_SEND','accept','UnitEmbedded','UserManagerService','set','UNIVER_BASE','fromCollab','prototype','encode','mapDocumentTypeToUniverInstanceType','getUnit','CLOSE_ROOM','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','ICommandService','requestParams','CombCmd','/new_changes','toggleOnline','_onUserJoin','_cfgEnableObjInherit','_acknowledgedAwaitingRevision','some','getLatestCsReqIdBySid','?size=','_unitLoaded$','_getLoginPath','toggleOffline','override','confirm','_tryEnsureSocket','_sessionChannels','length','isTransformMutationsWithChangesetSuccess','changeset','joinRsp','transformSelections','_onLocalMutation','isCompositionEnd','result','[SyncedState]:\x20received\x20rejection.','permissionRejEvent','_resendWithTimeout','updateCursorEvent','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_status$','transformUndoRedo','dispose','avatar','SheetCollaborationEntity','subscribe','IDLE','_collaborationUIEventService','revision','actions','max','89565bnoltP','_onFetchMissResult','getInterceptPoints','BehaviorSubject','SlideCollaborationEntity','subject','_changesetReqId','_transformStateCache','startTime','UPDATE_CURSOR','endpoint','hasOwnProperty','_getSignURL','HELLO','_clearCollaborationTimeoutTimer','originalMeta','roles','loadDoc','_sendHeartbeat','snapshotServerUrl','parseProtocolChangeset','MentionIoHttpService','collaborators','ImageSourceType','PERMISSION_REJ','send','collaboration-client.auth.needGotoLoginAlert','addHandlerCallback','Error\x20on\x20receiving\x20event','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','socket$','_getCurrentRevision','telemetry\x20info\x20is\x20not\x20initialized','_transformRemoteChangesetByStateCache','apply','[CollaborationSessionService]','_transitionLocked','href','collaboration-client.local-cache-service','DRAWING_IMAGE_ALLOW_IMAGE_LIST','next','saveImage','enableOfflineEditing','members','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_handler','_fetchMissChangesets','setCfgEnableObjInherit','_clearHeartbeatTimer','_clearScheduledTask','indexOf','catch','readyForCollab','onSyncEditingCollabCursor','isPermissionRej','registerHTTPInterceptor','loadBoard','LIVESHARE_TERMINATE','getOwnPropertyDescriptor','_replaceFileID','SyncedState','saveChangeset','textEncoder','PSEUDO_FETCH_MISSING_RESULT','stopTime','_pendingMutations','/collaborator','UNIVER_BOARD','sessionStatus','getMemberID','getTypeOfUnitDisposed$','awaitingChangeset','_toggleOnline','setConfig','create','pipe','awaiting_with_pending','defineProperty','OFFLINE','saveAttachment','SheetTransformSelectionsService','MSG_FOR_ERROR','OTHER_CLIENT_EDITING','CompressMutationService','SUBMIT_CHANGESET','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','batchAllowed','file','has','CollaborationAttachmentIoService','[CollaborationState]:\x20apply\x20error!','Module','URL','ISingleActiveUnitService','snapshot','SessionStatus','roomInfos','UNIVER_SHEET','_members$','find','close$','LOCAL_CACHE_INTERVAL_KEY','_collaborationTimeoutTimer','_tryReconnect','_telemetryService','[UniverCollaborationClientPlugin]','Univer','_createInitialState','getRoom','_transformStack','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','fetch_missing','enableSingleActiveInstanceLock','_type','memberID','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','push','concatMap','_isEchoedAwaitingChangeset','_onConnectionOpen','&assign=','[OfflineState]:\x20received\x20rejection.','refreshPermission','NO_OTHER_CLIENTS_EDITING','backupOfflineData','CHANGESET_REJ','&to=','_updateLocalCache','onTransformIME','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','IPermissionService','entityInit$','_onMessage','getCurrentUser','constructor','charCodeAt','JOIN_ROOM_FAILED','RichTextEditingMutation','_undoStacks','_showConflictNotification','IImageIoService','reqId','session','conflict','_queuedRemoteChangesets','now','randomBytes','code','uuidv4','ImageUploadStatusType','update','RETRY_CONNECTING_MAX_COUNT','_sender','closeSession','deepClone','string','fromCharCode','session.room-full','onMissedChangesetFetched','parseChangesetToProtocol','univer-pro.collaboration-client-adapter-service','_onUserLeave','_getUndoStack','_createInitialStateImpl','_socket','getTypeOfUnitAdded$','JOIN','default','listRoles','[CollaborationSessionService]:\x20socket\x20error','Plugin','ICollaborationSocketService','RECV','downloadEndpointUrl','[PendingState]:\x20received\x20rejection.','target','MemberService','JOIN_ROOM_FULL','updatePermissionObjEvent','_localCacheService','fetchThroughInterceptors','duration','IAuthzIoService','getSheetBlock','SetSelectionsOperation','action','_awaitingChangeset','MergeInterceptorFactory','_onConnectionFailed','onlyLocal','objectType','CollaborationUIEventService','_createSocket','_sessionStatus$','_clearTimeoutTimer','_transformRemoteChangesetByIMECache','INGEST','OPTIONAL','isInternalEditorID','ERROR_IMAGE_TYPE','listCollaborators','infoRsp','LIVESHARE_OPERATION','_scheduleCompleteTimestamp','docStateChange$','disableLocalCache','_onOffline','enableAuthServer','_transformIMECache','type','members$','clear','_commentUpdate$','_change$','_socketMessageSubscription','deleteCollaborator','capture','tables','message$','_remoteChangesetQueue','putCollaborators','splice','ERROR_EXCEED_SIZE','_resolveSessionIdentity','disposeWithMe','_clearRetryConnectingTimer','open$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_decreaseWaiting','shareReplay','executeCommand','pauseCollaboration','loginUrlKey','_univerInstanceService','localCacheService','IMentionIOService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','merge','SOCKET_FAILED','_onRemoteACK','_getUploadFileURL','requireSession','ErrorCode','state','getGlobalObject','DependentOn','c1Prime','getUnitType','name','text-x','updateMember','_permissionService','_onRemoteRejected','missingChangesets','\x0aAfter:\x20','textRanges','AwaitingWithPendingState','MUTATION','_state$','reconnect','cfgEnableObjInherit','ISnapshotServerService','/unit/','not_collab','IUndoRedoService','_checkMissing','onTransformRemoteChangesetByStateCache','c2Prime','number','patch','isArray','_resendTimeout','changesets','/universer-api/snapshot','toRemote','updateCollaborator','PERSON','trim','_handlerCallback','HEARTBEAT_TIMEOUT','_clearUndo','_toggleOffline','_adapter','CmdRspCode','event$','_instanceService','_sheetTransformSelectionsService','_stopTelemetryCollaborationNewChangeset','collaboration_new_changeset','getConfig','onStarting','loadOfflineData','_sendingTimer','serializeCombRequest','COMMENT_UPDATE','@univerjs-pro/collaboration-client','unsubscribe','url','getFocusedUnit','_resendTimer','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','GLOBAL_ROOMS_CNT_EXCEEDS','_incrementRevisionNumber','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','LEAVE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationUndoRedoService]','responseType','RevisionService','getCollabEntity','replace','selections','getCfgEnableObjInherit','updatePermissionPoint','onTransformState','onRemoteChangeset','FileSource','sort','status$','unit','/universer-api/authz','onRemoteRetry','_members','localeService','LocaleService','collabWebSocketUrl','isTransformMutationsWithChangesetFailure','socket\x20open.','_event$','data','collabSubmitChangesetUrl','values','objects','_httpService','221537fCDPhn','BASE64','getCurrentSelections','leaveEvent','/object/','_initMergeInterceptor','CollaborationEntity','objectID','function','FetchingMissState','CollaborativeUndoRedoService','_rescheduleHeartbeat','allowed','socketMessageSubscription','IConfigService','_config','_logService','registerDependencies','LIVESHARE_REQUEST_HOST','SUBMIT_CHANGESET_TIMEOUT','_getSendChangesetTimeout','_createHandler','timeoutTimer','body','PERMISSION_DENIED','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_sessions','loadSlide','upload','_roomCreated$','/-/object/-/batch_allowed','NEW_CHANGESETS','_throwTelemetryCollaborationNewChangeset','_changesetSessionId','DEFAULT_WS_SESSION_TICKET_URL','_onRemoteRetry','unitInfo$','120BeDBcS','put','cbc','unitLoaded$','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','HEARTBEAT','fetchMissingChangesets','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','blockRanges','_getSocketChannel','_acknowledgeAwaitingIfReady','appendMutation','every','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_compressMutationService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','maxSize','workbook','editing\x20status\x20changed\x20to','_hasSessionsForEndpoint','headers','CHANGESET_SHOULD_RETRY','filter','session.room-permission-denied','__Key__','_undoRedoService','newCsEvent','UNIVER_SLIDE','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_isPermissionRej','_startCollaboration','delay','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','equals','add','_getRedoStack','_clearLocalCache','_shouldReportTelemetry','toString','focused$','UniverCollaborationClientPlugin','asObservable','\x20-\x20','ILocalCacheService','append','FAIL','_state','saveSnapshot','generateRandomId','resolve','_docStateChangeManagerService','pluginName','createInstance','[PendingState]:\x20received\x20acknowledgement.','MoveSlidePageMutation','floor','LIVESHARE_FETCH_OPERATIONS','_onConflict','status','resend','_collabSessionService','objectActions','enableCollaboration','_userManagerService','authzUrl','transformStack\x20failed!','_waitCount','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','m2Prime','HEARTBEAT_TIMEOUT_KEY','_lockTransition','USERS_LEAVE','takeUntil','retryCount','_memberService','UNISCRIPT_RUN','iterator','ITransformService','userID','_getDownloadEndpointURL','Disposable','ISocketService','_getAPIPrefixPath','_schedule','FileId','PENDING','CommandType','_onCombEvent','_initDependencies','init','_transformService','forEach','columnGroups','_eventService','_initCloseConn','interceptor','includes','HTTPService','object','[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.','failed\x20to\x20apply\x20missed\x20changesets!','min','AWAITING','_exhaustRemoteChangesetQueue','950769OuYusP','_entityInit$','resolveWithBasePath','subUnitId','pending','_handleRemoteChangesets','session.join-failed','HEARTBEAT_INTERVAL','&source=','_snapshotService','/universer-api/stream/file/upload','findIndex','_collaborationSessionService','localUnitId','INetworkConditionService','x-univer-host','/-/object/list','_onRemoteChangeset','Optional','2108692WCTwsY','Injector','submit\x20changeset\x20error!','sessionStatus$','getResourcesRequest','_initUnitPermissionChange','OfflineState','eventID','getCurrentRevOfUnit','Failed\x20to\x20update\x20permission\x20point','JSONX','/fetchmissing?from=','_collaborationPaused','_onRecvEvent','_entities','IUniverInstanceService','[SyncedState]:\x20received\x20acknowledgement.','Inject','baseRev','entries','onStateChange','_unitInfo$','toStringTag','sendChangesetTimeout','onRemoteAck','cmd','routeKey','version','DataLoaderService','_maxTotalRetryTimeout','range','error$','RETRY_CONNECTING_MAX_COUNT_KEY','awaiting','COMPRESS_MUTATION_APPLY','_revisionService','unit-cache-','DocStateChangeManagerService','_pendingSessions','_localeService','unitID','_getAPIPrefix','fetchMiss','USERS_ENTER','People','_transformUndoredo','CollaborationSessionService','getCollabEntity$','_roomMembers','addImageSourceCache','AuthzIoHttpService','size','getAllMembers','_socketService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','SUCCUSS','reverse','SheetPermissionInitController','unitType','/universer-api/comb','_initRequestHeader','_upload','b64DecodeUnicode','delete','getLocalCacheKey','_disableEditing','LIVESHARE_NEW_HOST','2310160vueqIW','MentionType','CONFLICT','session.room-not-exists','onload','_configService','UniverInstanceType','FETCH_MISS','getDrawingImageAllowSize','saveSheetBlock','/role','loadUnitOfRevision','_applyRemoteChangeset','ITelemetryService','call','_emitMembers','_updateState','[CollaborationSession]','createCollaborator','/block/','?url=','createSocket','onRemoteRej','ONLINE','CollaborationImageIoService','ws://127.0.0.1:8000/universer-api/comb/connect','_init','CommentService','BaseCollaborationEntity','CollaborationSocketService','retryConnectingInterval','uploadFileServerUrl','ReplaySubject','/universer-api/snapshot/','_submitChangeset','joinEvent','withCredentials','connection\x20error','readAsDataURL','reduce','PendingState','get','84tofDBn','_getCtorByUniverInstanceType','Tools','UNIVER_DOC','sid','_redoStacks','origin','_executeRemoteChangeset','ILogService','{fileID}','decorate','resolveUnit','sheets','debug','_HTTPService','complete','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','unitId\x20is\x20not\x20found','emitEvent','mergeOverrideWithDependencies','_startTelemetryCollaborationNewChangeset','UUID','onMutationExecutedForCollab','JOINING','JOIN_ROOM_NOT_EXISTS','hostname','then','fetching\x20missing\x20changesets\x20from\x20','getDeserializedSheetBlock','getUnitId','startsWith','compose','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','socket\x20close','toLocal','_transformAndApplyRemoteChangeset','params','setShowComponents','getSnapshotAPIPath','location','initWorkbookPermissionChange','onMissingChangesets','setWaitCount','/rev/','getMember','/allowed','onCommentUpdate','_socketChannels','error','120DxLhzl','_identity','transformMutationsWithChangeset','DEFAULT_FILE_NAME','[OfflineState]:\x20received\x20acknowledgement.','setCurrentUser','deserializeToCombResponse','post','_commandService','toDisposable','_createSession','Rectangle','_transformSelections','onTransformSelections','POST','_telemetryInfo','_acknowledgeAwaiting','onTransformRemoteChangesetByIMECache','dispose$','removeMember','univer-pro.collaboration-client.single-active-unit-service','attachment','SOCKET_FAILED_RETRY','copyFileMeta','take','waitForRoom$','DEFAULT_COLLAB_WEB_SOCKET_URL','commentUpdate$','[FetchMissState]','createIdentifier','state$','LOCAL_CACHE_INTERVAL','getSheetId','synced','socketService','[OfflineState]:\x20received\x20changeset.','getUploadOptions','_replayCachedMutations','_injector','unknown','CollaborationSession','_commentService','InsertSheetMutation','LocalUndoRedoService','src','getImageSourceCache','CollaborationEvent','map','firstValueFrom','6092kMoHoF','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','resourceIDs'];_0x1d52=function(){return _0x1154c0;};return _0x1d52();}let Be=function(_0x1441f3){const _0x162a54=_0x85662d;return _0x1441f3['NOT_COLLAB']=_0x162a54(0x248),_0x1441f3['SYNCED']=_0x162a54(0x3ee),_0x1441f3[_0x162a54(0x309)]=_0x162a54(0x320),_0x1441f3[_0x162a54(0x31a)]=_0x162a54(0x350),_0x1441f3[_0x162a54(0x426)]=_0x162a54(0x4be),_0x1441f3[_0x162a54(0x379)]=_0x162a54(0x4e1),_0x1441f3[_0x162a54(0x374)]=_0x162a54(0x1d0),_0x1441f3[_0x162a54(0x4c0)]='offline',_0x1441f3;}({});const Ve=0x4e20,He=0x2bf20;var D=class{constructor(_0xc838c2,_0x2d826d,_0x25bea0,_0x24e9ed,_0x565391,_0x117c2c,_0x2f13d0,_0x4fcb08,_0x179e21){const _0xf0381a=_0x85662d;this['unitID']=_0xc838c2,this[_0xf0381a(0x212)]=_0x2d826d,this[_0xf0381a(0x49f)]=_0x565391,this['_commandService']=_0x117c2c,this[_0xf0381a(0x2cd)]=_0x2f13d0,this[_0xf0381a(0x352)]=_0x4fcb08,this[_0xf0381a(0x1f4)]=_0x179e21,g(this,'_awaitingChangeset',null),g(this,_0xf0381a(0x4b3),[]),this[_0xf0381a(0x1fb)]=_0x25bea0,this[_0xf0381a(0x4b3)]=_0x24e9ed;}[_0x85662d(0x24a)](_0x578e7f){const _0x3471ce=_0x85662d;let _0x48c9fd=this[_0x3471ce(0x352)][_0x3471ce(0x337)](this[_0x3471ce(0x357)]);return _0x578e7f[_0x3471ce(0x46f)]>_0x48c9fd+0x1?(this[_0x3471ce(0x49f)][_0x3471ce(0x3c5)]({'from':_0x48c9fd,'to':_0x578e7f[_0x3471ce(0x46f)]-0x1}),!0x0):!0x1;}[_0x85662d(0x35c)](_0x4ad0bc){const _0x31b955=_0x85662d;this[_0x31b955(0x2cd)][_0x31b955(0x468)](this[_0x31b955(0x357)],_0x4ad0bc);}[_0x85662d(0x3d9)](_0x1eeded){const _0x3695fd=_0x85662d;var _0x4bb343,_0x339c1f;(_0x4bb343=(_0x339c1f=this['_handler'])[_0x3695fd(0x3da)])==null||_0x4bb343[_0x3695fd(0x380)](_0x339c1f,_0x1eeded);}[_0x85662d(0x211)](_0x24249e){const _0x4bed15=_0x85662d;var _0x59f67b,_0x177f39;return(_0x59f67b=(_0x177f39=this[_0x4bed15(0x49f)])[_0x4bed15(0x4f2)])==null?void 0x0:_0x59f67b[_0x4bed15(0x380)](_0x177f39,_0x24249e);}['_transformStateCache'](_0x5e511e){const _0x46135a=_0x85662d;var _0x5b6c50,_0x57c3c8;return(_0x5b6c50=(_0x57c3c8=this[_0x46135a(0x49f)])[_0x46135a(0x27b)])==null?void 0x0:_0x5b6c50[_0x46135a(0x380)](_0x57c3c8,_0x5e511e);}[_0x85662d(0x204)](_0x53824a){const _0xc1123e=_0x85662d;var _0x2152ee,_0x358ce4,_0x27fc64;return(_0x2152ee=(_0x358ce4=(_0x27fc64=this[_0xc1123e(0x49f)])[_0xc1123e(0x3de)])==null?void 0x0:_0x358ce4[_0xc1123e(0x380)](_0x27fc64,_0x53824a))==null?_0x53824a:_0x2152ee;}[_0x85662d(0x493)](_0x3fb48c){const _0x336b02=_0x85662d;var _0x261281,_0x42c88a,_0x3486f3;return(_0x261281=(_0x42c88a=(_0x3486f3=this['_handler'])[_0x336b02(0x24b)])==null?void 0x0:_0x42c88a[_0x336b02(0x380)](_0x3486f3,_0x3fb48c))==null?_0x3fb48c:_0x261281;}['_syncEditingCollabCursor'](_0x37ed7b){const _0x3ed8e0=_0x85662d;if(this['type']===t[_0x3ed8e0(0x378)][_0x3ed8e0(0x39f)]){let {unitID:_0x2f56a5,mutations:_0x15b152,memberID:_0x48ca32}=_0x37ed7b,_0x2cde3f=_0x15b152[_0x3ed8e0(0x45a)]>0x0?_0x15b152[0x0]['params'][_0x3ed8e0(0x240)]:[];if(Array[_0x3ed8e0(0x24f)](_0x2cde3f)&&_0x2cde3f[_0x3ed8e0(0x45a)]>0x0){var _0x13cbe2,_0x202759;(_0x13cbe2=(_0x202759=this[_0x3ed8e0(0x49f)])[_0x3ed8e0(0x4a7)])==null||_0x13cbe2[_0x3ed8e0(0x380)](_0x202759,{'unitID':_0x2f56a5,'memberID':_0x48ca32,'textRanges':_0x2cde3f});}}}[_0x85662d(0x4f1)](){const _0x39d3ef=_0x85662d;var _0x383e55;(_0x383e55=this[_0x39d3ef(0x1f4)])==null||_0x383e55[_0x39d3ef(0x437)](this[_0x39d3ef(0x357)],this[_0x39d3ef(0x212)],this[_0x39d3ef(0x1fb)],this['_pendingMutations']);}[_0x85662d(0x491)](){const _0x18cfb7=_0x85662d;return this[_0x18cfb7(0x352)]['getCurrentRevOfUnit'](this[_0x18cfb7(0x357)]);}['_incrementRevisionNumber'](){const _0x33910d=_0x85662d;this[_0x33910d(0x352)][_0x33910d(0x432)](this[_0x33910d(0x357)]);}[_0x85662d(0x3a3)](_0x4ff8c6){const _0x39e184=_0x85662d;let _0x41ea66=this[_0x39e184(0x204)](_0x4ff8c6);_0x41ea66=this[_0x39e184(0x493)](_0x41ea66);let _0x196ca9=(0x0,t['sequenceExecute'])(_0x41ea66[_0x39e184(0x406)],this[_0x39e184(0x3d5)],{'fromCollab':!0x0});if(!_0x196ca9['result']){var _0x3861b5;throw _0x196ca9[_0x39e184(0x3cc)]instanceof Error?_0x196ca9[_0x39e184(0x3cc)]:Error((_0x3861b5=_0x196ca9['error'])==null?_0x39e184(0x4cc):_0x3861b5);}this[_0x39e184(0x211)](_0x41ea66),this[_0x39e184(0x479)](_0x41ea66),this[_0x39e184(0x35c)](_0x4ff8c6),this[_0x39e184(0x3d9)](_0x41ea66),this['_syncEditingCollabCursor'](_0x41ea66),this[_0x39e184(0x26f)]();}};let O=class extends D{constructor(_0x3d2298,_0x518483,_0x2e843a,_0x1a7ca0,_0x590178,_0x1d786b,_0x1b5214,_0x3e500d,_0x3cb6ce,_0x2769b8){const _0x11170d=_0x85662d;super(_0x3d2298,_0x518483,null,[],_0x2e843a,_0x1b5214,_0x1d786b,_0x1a7ca0,_0x2769b8),this[_0x11170d(0x3f3)]=_0x590178,this[_0x11170d(0x29f)]=_0x3e500d,this['_transformService']=_0x3cb6ce,this[_0x11170d(0x22b)]=_0x2769b8,g(this,_0x11170d(0x2ee),_0x11170d(0x3ee));}[_0x85662d(0x2bf)](_0x2d12e9){const _0x17143=_0x85662d;let _0x5b93ad=this[_0x17143(0x3f3)]['createInstance'](k,this['unitID'],this[_0x17143(0x212)],[_0x2d12e9],this['_handler']);return _0x5b93ad[_0x17143(0x307)](),_0x5b93ad[_0x17143(0x4f1)](),_0x5b93ad;}[_0x85662d(0x27c)](_0x47edea){const _0x8cc0eb=_0x85662d;if(this[_0x8cc0eb(0x24a)](_0x47edea))return this['_injector'][_0x8cc0eb(0x2e8)](P,this['unitID'],this[_0x8cc0eb(0x212)],null,[],null,[_0x47edea],this[_0x8cc0eb(0x49f)]);try{let _0x138a4a=this[_0x8cc0eb(0x30e)][_0x8cc0eb(0x3cf)](_0x47edea,[e['EmptyMutationInfo']]);if((0x0,e[_0x8cc0eb(0x45b)])(_0x138a4a)){let {c1Prime:_0x46b20a}=_0x138a4a;return this[_0x8cc0eb(0x3a3)](_0x46b20a),this;}throw _0x138a4a[_0x8cc0eb(0x3cc)];}catch(_0x34aa49){return this[_0x8cc0eb(0x29f)]['error'](_0x34aa49),this['_onConflict'](!0x1);}}[_0x85662d(0x2ed)](_0x2d5ab7){const _0x3bf647=_0x85662d;return this['_injector'][_0x3bf647(0x2e8)](M,this['unitID'],this[_0x3bf647(0x212)],null,[],this[_0x3bf647(0x49f)],_0x2d5ab7);}[_0x85662d(0x347)](_0x2994e1){const _0x44bb66=_0x85662d;if(_0x2994e1['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x44bb66(0x33f));}['onRemoteRej'](){const _0x197e1b=_0x85662d;throw Error(_0x197e1b(0x462));}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){const _0x1c6763=_0x85662d;return this['_injector'][_0x1c6763(0x2e8)](N,this['unitID'],this['type'],null,[],this[_0x1c6763(0x49f)]);}[_0x85662d(0x44c)](){return this;}['resend'](){const _0x4c62df=_0x85662d;throw Error(_0x4c62df(0x365));}[_0x85662d(0x359)](){const _0x3bec8a=_0x85662d;let _0x3abc4e=this[_0x3bec8a(0x352)][_0x3bec8a(0x337)](this['unitID']);return this[_0x3bec8a(0x49f)]['onMissingChangesets']({'from':_0x3abc4e,'to':0x0}),this['_injector']['createInstance'](P,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};O=y([v(0x3,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,t[_0x85662d(0x249)]),v(0x6,t[_0x85662d(0x448)]),v(0x7,t[_0x85662d(0x3a4)]),v(0x8,e[_0x85662d(0x301)]),v(0x9,(0x0,t[_0x85662d(0x32e)])(S))],O);let k=Le=class extends D{constructor(_0x466e92,_0x47d668,_0x334847,_0x5ae941,_0x5b71d6,_0xa29e0c,_0x3a17e0,_0x132981,_0x352a16,_0x23c788,_0x30a858,_0x4c94e2,_0x1f8d7b,_0x20d605){const _0x113fb0=_0x85662d;super(_0x466e92,_0x47d668,null,_0x334847,_0x5ae941,_0x352a16,_0x1f8d7b,_0xa29e0c,_0x20d605),this['_injector']=_0x5b71d6,this[_0x113fb0(0x2fe)]=_0x3a17e0,this[_0x113fb0(0x29f)]=_0x132981,this[_0x113fb0(0x377)]=_0x23c788,this[_0x113fb0(0x30e)]=_0x30a858,this[_0x113fb0(0x22a)]=_0x4c94e2,g(this,_0x113fb0(0x2ee),_0x113fb0(0x320)),g(this,_0x113fb0(0x20c),null),g(this,_0x113fb0(0x265),null);}['appendMutation'](_0x5eaaef){const _0x564277=_0x85662d;return this[_0x564277(0x4b3)]['push'](_0x5eaaef),this[_0x564277(0x4f1)](),this;}[_0x85662d(0x27c)](_0x1dae4a){const _0x194c7b=_0x85662d;if(this[_0x194c7b(0x24a)](_0x1dae4a))return this[_0x194c7b(0x4a3)](),this['_injector'][_0x194c7b(0x2e8)](P,this[_0x194c7b(0x357)],this[_0x194c7b(0x212)],null,this[_0x194c7b(0x4b3)],null,[_0x1dae4a],this[_0x194c7b(0x49f)]);try{let _0x5f315d=this[_0x194c7b(0x30e)][_0x194c7b(0x3cf)](_0x1dae4a,this[_0x194c7b(0x4b3)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x5f315d)){let {c1Prime:_0x1c67ed,m2Prime:_0x446013}=_0x5f315d;this[_0x194c7b(0x3a3)](_0x1c67ed);let _0x39f3b6=this[_0x194c7b(0x3f3)][_0x194c7b(0x2e8)](Le,this[_0x194c7b(0x357)],this[_0x194c7b(0x212)],_0x446013,this[_0x194c7b(0x49f)]);this['_clearScheduledTask']();let _0xdf4dbe=new Date()[_0x194c7b(0x40b)](),_0x57eff0=this[_0x194c7b(0x20c)]?Math[_0x194c7b(0x471)](this[_0x194c7b(0x20c)]-_0xdf4dbe,0x0):this[_0x194c7b(0x2a3)]();return _0x39f3b6[_0x194c7b(0x307)](_0x57eff0),_0x39f3b6;}throw _0x5f315d[_0x194c7b(0x3cc)];}catch(_0x1abdf1){return this[_0x194c7b(0x29f)][_0x194c7b(0x3cc)](_0x1abdf1),this[_0x194c7b(0x2ed)](!0x1);}}[_0x85662d(0x347)](_0x53b507){const _0x502737=_0x85662d;if(_0x53b507[_0x502737(0x46f)]<=this[_0x502737(0x491)]())return this;throw Error(_0x502737(0x2e9));}[_0x85662d(0x388)](){const _0x16b99b=_0x85662d;throw Error(_0x16b99b(0x1ef));}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){const _0x28ab60=_0x85662d;return this['_clearScheduledTask'](),this[_0x28ab60(0x3f3)][_0x28ab60(0x2e8)](N,this['unitID'],this[_0x28ab60(0x212)],null,this[_0x28ab60(0x4b3)],this[_0x28ab60(0x49f)]);}['toggleOnline'](){return this;}[_0x85662d(0x307)](_0x3941e9){const _0x3d68e0=_0x85662d;let _0x9a6a56=_0x3941e9==null?this[_0x3d68e0(0x2a3)]():_0x3941e9;this[_0x3d68e0(0x20c)]=new Date()[_0x3d68e0(0x40b)]()+_0x9a6a56,this[_0x3d68e0(0x265)]=setTimeout(()=>{const _0x9e1a3b=_0x3d68e0;this[_0x9e1a3b(0x4a3)]();let _0x440044=null;switch(this[_0x9e1a3b(0x212)]){case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x4d3)]:_0x440044=T(this[_0x9e1a3b(0x4b3)],this['unitID'],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this[_0x9e1a3b(0x2fe)]);break;case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x39f)]:_0x440044=this[_0x9e1a3b(0x4b3)][_0x9e1a3b(0x2c0)](_0xeac230=>_0xeac230['id']===n[_0x9e1a3b(0x1ca)]['id'])?Oe(this['_pendingMutations'],this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this['_memberService']):T(this['_pendingMutations'],this['unitID'],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this[_0x9e1a3b(0x2fe)]);break;case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x2cf)]:_0x440044=De(this[_0x9e1a3b(0x4b3)],this[_0x9e1a3b(0x357)],this['_univerInstanceService'],this['_revisionService'],this[_0x9e1a3b(0x2fe)]);break;case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x4b5)]:_0x440044=T(this[_0x9e1a3b(0x4b3)],this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this['_memberService']);break;case t['UniverInstanceType']['UNIVER_BASE']:_0x440044=T(this[_0x9e1a3b(0x4b3)],this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this[_0x9e1a3b(0x2fe)]);break;default:throw Error(_0x9e1a3b(0x272)+this[_0x9e1a3b(0x212)]+'\x20in\x20_schedule.');}let {changeset:_0x4a6487,pendingMutations:_0x3d5532}=_0x440044;this[_0x9e1a3b(0x49f)]['onSendChangeset'](_0x4a6487);let _0x2d6cee=_0x3d5532[_0x9e1a3b(0x45a)]?this[_0x9e1a3b(0x3f3)][_0x9e1a3b(0x2e8)](j,this[_0x9e1a3b(0x357)],this['type'],_0x4a6487,_0x3d5532,this['_handler'],void 0x0):this[_0x9e1a3b(0x3f3)]['createInstance'](A,this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x212)],_0x4a6487,this['_handler']);_0x2d6cee['_updateLocalCache'](),this[_0x9e1a3b(0x49f)][_0x9e1a3b(0x343)](this,_0x2d6cee);},_0x9a6a56);}[_0x85662d(0x2a3)](){const _0x5dbcf5=_0x85662d;var _0x1b5f70;let _0x5e61eb=this[_0x5dbcf5(0x377)][_0x5dbcf5(0x262)](m);return(_0x1b5f70=_0x5e61eb==null?void 0x0:_0x5e61eb[_0x5dbcf5(0x346)])==null?0x7d0:_0x1b5f70;}[_0x85662d(0x2ef)](){const _0x3ae44b=_0x85662d;throw Error(_0x3ae44b(0x48f));}[_0x85662d(0x4a3)](){const _0x2e6703=_0x85662d;this[_0x2e6703(0x265)]!=null&&(clearTimeout(this[_0x2e6703(0x265)]),this[_0x2e6703(0x265)]=null);}['_onConflict'](_0x3e775f){const _0x1ba8e7=_0x85662d;return this['_clearScheduledTask'](),this[_0x1ba8e7(0x3f3)]['createInstance'](M,this[_0x1ba8e7(0x357)],this['type'],null,this[_0x1ba8e7(0x4b3)],this['_handler'],_0x3e775f);}};k=Le=y([v(0x4,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x5,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x6,(0x0,t[_0x85662d(0x340)])(b)),v(0x7,t[_0x85662d(0x3a4)]),v(0x8,t[_0x85662d(0x448)]),v(0x9,t[_0x85662d(0x29d)]),v(0xa,e[_0x85662d(0x301)]),v(0xb,t['IUniverInstanceService']),v(0xc,t[_0x85662d(0x249)]),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],k);let A=Re=class extends D{constructor(_0x4a5d22,_0x1291ca,_0x353be1,_0x40ad7c,_0x2f3804,_0x27a40a,_0xba29b3,_0x4a7c9a,_0x2a7fc3,_0x2b56f8,_0x3f38c4){const _0x1982c4=_0x85662d;super(_0x4a5d22,_0x1291ca,_0x353be1,[],_0x40ad7c,_0xba29b3,_0x2b56f8,_0x27a40a,_0x3f38c4),this[_0x1982c4(0x3f3)]=_0x2f3804,this[_0x1982c4(0x29f)]=_0x4a7c9a,this[_0x1982c4(0x30e)]=_0x2a7fc3,g(this,_0x1982c4(0x2ee),_0x1982c4(0x350)),g(this,'_resendTimeout',0x0),g(this,_0x1982c4(0x34c),0x0),g(this,_0x1982c4(0x26c),void 0x0),g(this,_0x1982c4(0x1d9),void 0x0);}['appendMutation'](_0x23b656){const _0xfdb959=_0x85662d;this[_0xfdb959(0x4a3)]();let _0x99ab43=this['_injector'][_0xfdb959(0x2e8)](j,this[_0xfdb959(0x357)],this[_0xfdb959(0x212)],this[_0xfdb959(0x1fb)],[_0x23b656],this['_handler'],this[_0xfdb959(0x26c)]);return _0x99ab43[_0xfdb959(0x4f1)](),_0x99ab43;}[_0x85662d(0x27c)](_0x212899){const _0x43e39f=_0x85662d;if(this['_checkMissing'](_0x212899))return this[_0x43e39f(0x4a3)](),this[_0x43e39f(0x3f3)][_0x43e39f(0x2e8)](P,this['unitID'],this[_0x43e39f(0x212)],this[_0x43e39f(0x1fb)],[],null,[_0x212899],this[_0x43e39f(0x49f)]);try{let _0x16608b=this['_transformService']['transformChangesets']([_0x212899],[this[_0x43e39f(0x1fb)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x16608b)){let {c1Prime:_0x4f679a,c2Prime:_0x7b0f41}=_0x16608b;this[_0x43e39f(0x3a3)](_0x4f679a[0x0]),_0x7b0f41[0x0][_0x43e39f(0x341)]=this[_0x43e39f(0x491)](),this['_clearScheduledTask']();let _0x49bd94=this[_0x43e39f(0x3f3)][_0x43e39f(0x2e8)](Re,this['unitID'],this['type'],_0x7b0f41[0x0],this['_handler']);return _0x49bd94[_0x43e39f(0x4f1)](),_0x49bd94;}throw _0x16608b[_0x43e39f(0x3cc)];}catch(_0x46e1b2){return this[_0x43e39f(0x29f)]['error'](_0x46e1b2),this[_0x43e39f(0x2ed)](!0x1);}}[_0x85662d(0x347)](_0x2a54e4){const _0x4d3e04=_0x85662d;this['_clearScheduledTask']();let _0x53c638=this['_revisionService'][_0x4d3e04(0x337)](this[_0x4d3e04(0x357)]);if(_0x2a54e4[_0x4d3e04(0x46f)]<=_0x53c638)return this;if(this[_0x4d3e04(0x24a)](_0x2a54e4))return this['_injector']['createInstance'](P,this['unitID'],this[_0x4d3e04(0x212)],this[_0x4d3e04(0x1fb)],[],_0x2a54e4[_0x4d3e04(0x46f)],[],this[_0x4d3e04(0x49f)]);this[_0x4d3e04(0x26f)]();let _0x3f755f=this[_0x4d3e04(0x3f3)][_0x4d3e04(0x2e8)](O,this[_0x4d3e04(0x357)],this[_0x4d3e04(0x212)],this['_handler']);return _0x3f755f['_updateLocalCache'](),_0x3f755f;}[_0x85662d(0x388)](_0x5a709d){const _0x23f836=_0x85662d;return this[_0x23f836(0x2ed)](!!(_0x5a709d!=null&&_0x5a709d[_0x23f836(0x4a8)]));}['onRemoteRetry'](_0xd4eee6){const _0x3e6c2f=_0x85662d;return this[_0x3e6c2f(0x34c)]>He?this[_0x3e6c2f(0x455)]():(this[_0x3e6c2f(0x26c)]=Ie(this[_0x3e6c2f(0x250)],{'timeout':this['_resendTimeout'],'reqId':_0xd4eee6[_0x3e6c2f(0x1ce)]}),this[_0x3e6c2f(0x1d9)]=this[_0x3e6c2f(0x26c)][_0x3e6c2f(0x46c)](({reqId:_0x5222f9,timeout:_0x3b9f76})=>{const _0x638a68=_0x3e6c2f;this[_0x638a68(0x464)](_0x5222f9,_0x3b9f76);}),this);}[_0x85662d(0x455)](){const _0x29f898=_0x85662d;return this[_0x29f898(0x4a3)](),this['_injector'][_0x29f898(0x2e8)](N,this['unitID'],this[_0x29f898(0x212)],this[_0x29f898(0x1fb)],[],this['_handler']);}[_0x85662d(0x44c)](){return this;}[_0x85662d(0x2ef)](){const _0x5271fd=_0x85662d;this[_0x5271fd(0x49f)][_0x5271fd(0x411)](this[_0x5271fd(0x1fb)]);}[_0x85662d(0x2ed)](_0x31309b){const _0x171438=_0x85662d;return this[_0x171438(0x4a3)](),this[_0x171438(0x3f3)][_0x171438(0x2e8)](M,this[_0x171438(0x357)],this['type'],this['_awaitingChangeset'],[],this[_0x171438(0x49f)],_0x31309b);}['_resendWithTimeout'](_0xdfb237,_0x1c4662){const _0x5b836d=_0x85662d;var _0x16bf59;_0xdfb237===((_0x16bf59=this[_0x5b836d(0x1fb)])==null?void 0x0:_0x16bf59[_0x5b836d(0x1ce)])&&(this[_0x5b836d(0x2ef)](),this[_0x5b836d(0x250)]=_0x1c4662===0x0?0x3e8:Math[_0x5b836d(0x319)](_0x1c4662*0x2,Ve),this[_0x5b836d(0x34c)]+=this[_0x5b836d(0x250)]);}['_clearScheduledTask'](){const _0x1f3ae5=_0x85662d;var _0x1aafb0;(_0x1aafb0=this[_0x1f3ae5(0x1d9)])==null||_0x1aafb0[_0x1f3ae5(0x269)](),this['_resendTimeout']=0x0,this[_0x1f3ae5(0x34c)]=0x0;}};A=Re=y([v(0x4,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x5,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x6,t[_0x85662d(0x448)]),v(0x7,t[_0x85662d(0x3a4)]),v(0x8,e[_0x85662d(0x301)]),v(0x9,t['IUndoRedoService']),v(0xa,(0x0,t[_0x85662d(0x32e)])(S))],A);let j=ze=class extends D{constructor(_0x1fefc8,_0xf49f71,_0x219a22,_0x3442c7,_0x37bdfa,_0x504780,_0x3419a8,_0x3a3275,_0x1fe20c,_0x101a35,_0x3f6ff5,_0x5b8b72,_0x31214f){const _0x3bd3f5=_0x85662d;super(_0x1fefc8,_0xf49f71,_0x219a22,_0x3442c7,_0x37bdfa,_0x1fe20c,_0x5b8b72,_0x3a3275,_0x31214f),this[_0x3bd3f5(0x3f3)]=_0x3419a8,this[_0x3bd3f5(0x29f)]=_0x101a35,this[_0x3bd3f5(0x30e)]=_0x3f6ff5,this[_0x3bd3f5(0x22b)]=_0x31214f,g(this,_0x3bd3f5(0x2ee),_0x3bd3f5(0x4be)),g(this,_0x3bd3f5(0x250),0x0),g(this,_0x3bd3f5(0x34c),0x0),g(this,_0x3bd3f5(0x26c),void 0x0),g(this,_0x3bd3f5(0x1d9),void 0x0),_0x504780&&(this[_0x3bd3f5(0x26c)]=_0x504780,this[_0x3bd3f5(0x1d9)]=this[_0x3bd3f5(0x26c)][_0x3bd3f5(0x46c)](({reqId:_0x3ecc62,timeout:_0x2dc785})=>{const _0xb8bff2=_0x3bd3f5;this[_0xb8bff2(0x464)](_0x3ecc62,_0x2dc785);}));}[_0x85662d(0x2bf)](_0x203c69){const _0x37edb5=_0x85662d;return this[_0x37edb5(0x4b3)][_0x37edb5(0x4e6)](_0x203c69),this;}[_0x85662d(0x27c)](_0x54138c){const _0x453294=_0x85662d;if(this[_0x453294(0x24a)](_0x54138c))return this['_clearScheduledTask'](),this[_0x453294(0x3f3)]['createInstance'](P,this[_0x453294(0x357)],this[_0x453294(0x212)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x54138c],this[_0x453294(0x49f)]);try{let _0x4c321b=this[_0x453294(0x30e)]['transformChangesets']([_0x54138c],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x453294(0x402)])(_0x4c321b)){let {c1Prime:_0x5e3433,c2Prime:_0x3da3e0}=_0x4c321b,_0x550a3e=this[_0x453294(0x30e)]['transformMutationsWithChangeset'](_0x5e3433[0x0],this[_0x453294(0x4b3)]);if((0x0,e[_0x453294(0x45b)])(_0x550a3e)){let {c1Prime:_0x4eefdf,m2Prime:_0x366c26}=_0x550a3e;return this[_0x453294(0x3a3)](_0x4eefdf),_0x3da3e0[0x0][_0x453294(0x341)]=this[_0x453294(0x491)](),this[_0x453294(0x4a3)](),this['_injector']['createInstance'](ze,this[_0x453294(0x357)],this[_0x453294(0x212)],_0x3da3e0[0x0],_0x366c26,this[_0x453294(0x49f)],void 0x0);}throw _0x550a3e[_0x453294(0x3cc)];}throw _0x4c321b[_0x453294(0x3cc)];}catch(_0x3c382e){return this[_0x453294(0x29f)][_0x453294(0x3cc)](_0x3c382e),this[_0x453294(0x2ed)](!0x1);}}[_0x85662d(0x347)](_0x405957){const _0x297626=_0x85662d;this[_0x297626(0x4a3)]();let _0x16197d=this['_getCurrentRevision']();if(_0x405957[_0x297626(0x46f)]<=_0x16197d)return this;if(this[_0x297626(0x24a)](_0x405957))return this[_0x297626(0x3f3)][_0x297626(0x2e8)](P,this['unitID'],this[_0x297626(0x212)],this[_0x297626(0x1fb)],this[_0x297626(0x4b3)],_0x405957['revision'],[],this[_0x297626(0x49f)]);this[_0x297626(0x26f)]();let _0x555a1b=this[_0x297626(0x3f3)][_0x297626(0x2e8)](k,this[_0x297626(0x357)],this[_0x297626(0x212)],this['_pendingMutations'],this[_0x297626(0x49f)]);return _0x555a1b[_0x297626(0x307)](),_0x555a1b[_0x297626(0x4f1)](),_0x555a1b;}['onRemoteRej'](_0x3b3d66){const _0x23fafb=_0x85662d;return this[_0x23fafb(0x2ed)](!!(_0x3b3d66!=null&&_0x3b3d66[_0x23fafb(0x4a8)]));}[_0x85662d(0x282)](_0x5dda80){const _0x45306f=_0x85662d;return this[_0x45306f(0x34c)]>He?this[_0x45306f(0x455)]():(this[_0x45306f(0x26c)]=Ie(this[_0x45306f(0x250)],{'timeout':this[_0x45306f(0x250)],'reqId':_0x5dda80[_0x45306f(0x1ce)]}),this['_sender']=this[_0x45306f(0x26c)]['subscribe'](({reqId:_0x28ae47,timeout:_0x23d20a})=>{this['_resendWithTimeout'](_0x28ae47,_0x23d20a);}),this);}[_0x85662d(0x455)](){const _0x1c0951=_0x85662d;return this['_clearScheduledTask'](),this[_0x1c0951(0x3f3)][_0x1c0951(0x2e8)](N,this[_0x1c0951(0x357)],this[_0x1c0951(0x212)],this[_0x1c0951(0x1fb)],this[_0x1c0951(0x4b3)],this[_0x1c0951(0x49f)]);}[_0x85662d(0x44c)](){return this;}['resend'](){const _0x45c1fb=_0x85662d;this[_0x45c1fb(0x49f)]['onSendChangeset'](this[_0x45c1fb(0x1fb)]);}[_0x85662d(0x2ed)](_0x3de8d0){const _0x1c574a=_0x85662d;return this['_clearScheduledTask'](),this[_0x1c574a(0x3f3)][_0x1c574a(0x2e8)](M,this[_0x1c574a(0x357)],this[_0x1c574a(0x212)],null,this[_0x1c574a(0x4b3)],this['_handler'],_0x3de8d0);}[_0x85662d(0x464)](_0x2d126c,_0x1c1272){const _0x53b388=_0x85662d;var _0x2ea59f;_0x2d126c===((_0x2ea59f=this['_awaitingChangeset'])==null?void 0x0:_0x2ea59f['reqId'])&&(this['resend'](),this[_0x53b388(0x250)]=_0x1c1272===0x0?0x3e8:Math[_0x53b388(0x319)](_0x1c1272*0x2,Ve),this['_maxTotalRetryTimeout']+=this[_0x53b388(0x250)]);}[_0x85662d(0x4a3)](){const _0x31ea6=_0x85662d;var _0x5bf2a1;(_0x5bf2a1=this[_0x31ea6(0x1d9)])==null||_0x5bf2a1[_0x31ea6(0x269)](),this[_0x31ea6(0x250)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};j=ze=y([v(0x6,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x7,(0x0,t[_0x85662d(0x340)])(e['RevisionService'])),v(0x8,t['ICommandService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,e[_0x85662d(0x301)]),v(0xb,t[_0x85662d(0x249)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(S))],j);let M=class extends D{constructor(_0x1874f6,_0x4575f7,_0x3ae217,_0xe93c79,_0x3fcac9,_0x31cc3b=!0x1,_0x4174c6,_0x55651c,_0x36a980,_0x2215b7,_0xef4348,_0x3259c8,_0x3ec51f){const _0xc65fa5=_0x85662d;super(_0x1874f6,_0x4575f7,_0x3ae217,_0xe93c79,_0x3fcac9,_0x55651c,_0x36a980,_0x2215b7,_0x3ec51f),this[_0xc65fa5(0x2d1)]=_0x31cc3b,this[_0xc65fa5(0x23c)]=_0x4174c6,this[_0xc65fa5(0x356)]=_0xef4348,this[_0xc65fa5(0x46e)]=_0x3259c8,this[_0xc65fa5(0x22b)]=_0x3ec51f,g(this,_0xc65fa5(0x2ee),'conflict'),this[_0xc65fa5(0x1cc)](),this['_clearLocalCache'](),this[_0xc65fa5(0x370)]();}['appendMutation'](){return this;}[_0x85662d(0x27c)](){return this;}['onRemoteAck'](){return this;}[_0x85662d(0x388)](){return this;}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){return this;}['toggleOnline'](){return this;}[_0x85662d(0x2ef)](){const _0x4f6297=_0x85662d;throw Error(_0x4f6297(0x2f7));}[_0x85662d(0x2d8)](){const _0x11e066=_0x85662d;var _0x1709e6,_0x26b989,_0x59e4ba;(_0x1709e6=this[_0x11e066(0x1f4)])==null||(_0x26b989=_0x1709e6[_0x11e066(0x4ee)])==null||(_0x26b989=_0x26b989['call'](_0x1709e6,this[_0x11e066(0x357)],_0x11e066(0x1d0)))==null||_0x26b989[_0x11e066(0x4a5)](()=>void 0x0),(_0x59e4ba=this[_0x11e066(0x1f4)])==null||_0x59e4ba[_0x11e066(0x437)](this[_0x11e066(0x357)],this[_0x11e066(0x212)],null,[]);}['_showConflictNotification'](){const _0x4e800c=_0x85662d;this['_isPermissionRej']?this[_0x4e800c(0x46e)][_0x4e800c(0x3ae)]({'id':_0x4e800c(0x2a7)}):this[_0x4e800c(0x46e)][_0x4e800c(0x3ae)]({'id':_0x4e800c(0x374)});}[_0x85662d(0x370)](){const _0x3ee06c=_0x85662d;this['_permissionService']['updatePermissionPoint'](new r[(_0x3ee06c(0x416))](this[_0x3ee06c(0x357)])['id'],!0x1);}};M=y([v(0x6,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x4f4)])),v(0x7,t[_0x85662d(0x448)]),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0xa,(0x0,t[_0x85662d(0x340)])(t['LocaleService'])),v(0xb,(0x0,t[_0x85662d(0x340)])(_)),v(0xc,(0x0,t[_0x85662d(0x32e)])(S))],M);let N=class extends D{constructor(_0xf2acc5,_0x6d5f02,_0x5c1511,_0x3a753c,_0x205007,_0x3b6f69,_0x3de831,_0x880355,_0xec1c7f,_0x342960){const _0x367289=_0x85662d;super(_0xf2acc5,_0x6d5f02,_0x5c1511,_0x3a753c,_0x205007,_0x880355,_0xec1c7f,_0x3de831,_0x342960),this['_injector']=_0x3b6f69,g(this,_0x367289(0x2ee),_0x367289(0x404));}[_0x85662d(0x2bf)](_0x19415c){const _0x1725e6=_0x85662d;return this[_0x1725e6(0x4b3)][_0x1725e6(0x4e6)](_0x19415c),this[_0x1725e6(0x4f1)](),this;}[_0x85662d(0x27c)](_0x44ec48){const _0xa028ae=_0x85662d;throw Error(_0xa028ae(0x3f0));}[_0x85662d(0x347)](){const _0x3e95ec=_0x85662d;throw Error(_0x3e95ec(0x3d1));}[_0x85662d(0x388)](){const _0xe53cec=_0x85662d;throw Error(_0xe53cec(0x4eb));}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){return this;}[_0x85662d(0x44c)](){let {_injector:_0x4de471,_pendingMutations:_0x1a801e,_awaitingChangeset:_0x21c6c6,unitID:_0x533519,_handler:_0x485c55,type:_0x577655}=this,_0x5e453d=Ue(_0x4de471,_0x533519,_0x577655,_0x21c6c6,_0x1a801e,_0x485c55);return _0x5e453d instanceof k?_0x5e453d['_schedule']():(_0x5e453d instanceof j||_0x5e453d instanceof A)&&_0x5e453d['resend'](),_0x5e453d;}[_0x85662d(0x2ef)](){const _0x528e1d=_0x85662d;throw Error(_0x528e1d(0x3ff));}};N=y([v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,t[_0x85662d(0x448)]),v(0x8,t[_0x85662d(0x249)]),v(0x9,(0x0,t[_0x85662d(0x32e)])(S))],N);let P=class extends D{constructor(_0x31c6de,_0x59a597,_0x1fc1b3,_0x253bd7,_0x353f2d,_0x55cbef,_0x4c0be4,_0x4a71f3,_0x16231b,_0x3b4177,_0x242323,_0x5d4ff6,_0x55f2de,_0x2b0066){const _0x541849=_0x85662d;super(_0x31c6de,_0x59a597,_0x1fc1b3,_0x253bd7,_0x4c0be4,_0x242323,_0x5d4ff6,_0x16231b,_0x2b0066),this[_0x541849(0x44f)]=_0x353f2d,this['_queuedRemoteChangesets']=_0x55cbef,this[_0x541849(0x3f3)]=_0x4a71f3,this[_0x541849(0x29f)]=_0x3b4177,this[_0x541849(0x30e)]=_0x55f2de,this[_0x541849(0x22b)]=_0x2b0066,g(this,'status',_0x541849(0x4e1));}[_0x85662d(0x1df)](_0x35035f){const _0x1e4c96=_0x85662d;try{if(this[_0x1e4c96(0x321)](_0x35035f)[_0x1e4c96(0x23e)])throw Error(_0x1e4c96(0x2b8));if(this[_0x1e4c96(0x321)]([...this[_0x1e4c96(0x1d1)]][_0x1e4c96(0x27e)]((_0x4ffee2,_0x529daf)=>_0x4ffee2[_0x1e4c96(0x46f)]-_0x529daf[_0x1e4c96(0x46f)]))[_0x1e4c96(0x23e)])return this[_0x1e4c96(0x1d1)]=[],this[_0x1e4c96(0x4f1)](),this['_handler']['onMissingChangesets']({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xed8984=this[_0x1e4c96(0x1fb)],_0x3f8b7a=this['_pendingMutations'],_0x4ce654;if(_0xed8984&&_0x3f8b7a[_0x1e4c96(0x45a)]!==0x0)_0x4ce654=this[_0x1e4c96(0x3f3)]['createInstance'](j,this[_0x1e4c96(0x357)],this[_0x1e4c96(0x212)],_0xed8984,_0x3f8b7a,this[_0x1e4c96(0x49f)],void 0x0);else{if(_0xed8984&&_0x3f8b7a[_0x1e4c96(0x45a)]===0x0)_0xed8984[_0x1e4c96(0x341)]=this[_0x1e4c96(0x491)](),_0x4ce654=this[_0x1e4c96(0x3f3)][_0x1e4c96(0x2e8)](A,this[_0x1e4c96(0x357)],this[_0x1e4c96(0x212)],_0xed8984,this[_0x1e4c96(0x49f)]);else{if(_0x3f8b7a[_0x1e4c96(0x45a)]!==0x0){let _0x2337f7=this['_injector'][_0x1e4c96(0x2e8)](k,this['unitID'],this['type'],_0x3f8b7a,this[_0x1e4c96(0x49f)]);_0x2337f7[_0x1e4c96(0x307)](),_0x4ce654=_0x2337f7;}else _0x4ce654=this[_0x1e4c96(0x3f3)][_0x1e4c96(0x2e8)](O,this['unitID'],this['type'],this['_handler']);}}return _0x4ce654[_0x1e4c96(0x4f1)](),_0x4ce654;}catch(_0x477167){return this['_logService']['error'](_0x1e4c96(0x3e9),_0x1e4c96(0x318),_0x477167),this[_0x1e4c96(0x3f3)][_0x1e4c96(0x2e8)](M,this[_0x1e4c96(0x357)],this[_0x1e4c96(0x212)],this[_0x1e4c96(0x1fb)],this[_0x1e4c96(0x4b3)],this[_0x1e4c96(0x49f)],!0x1);}}[_0x85662d(0x321)](_0x10b83c){const _0x4b7cbe=_0x85662d;this[_0x4b7cbe(0x2be)]();for(let _0x180730=0x0;_0x180730<_0x10b83c['length'];_0x180730++){let _0x97fb14=_0x10b83c[_0x180730],_0x55b4e8=this[_0x4b7cbe(0x491)]();if(!(_0x97fb14[_0x4b7cbe(0x46f)]<=_0x55b4e8)){if(_0x97fb14['revision']>_0x55b4e8+0x1)return{'missingChangesets':!0x0};if(this[_0x4b7cbe(0x4e8)](_0x97fb14)){this['_acknowledgeAwaiting']();continue;}this[_0x4b7cbe(0x3bf)](_0x97fb14),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x1211ac){const _0x34194d=_0x85662d;let _0x4d1bc9=_0x1211ac,_0x2f3f0a=this[_0x34194d(0x1fb)];if(_0x2f3f0a){let _0x244fa2=this['_transformService']['transformChangesets']([_0x1211ac],[_0x2f3f0a],!0x1);if(!(0x0,e[_0x34194d(0x402)])(_0x244fa2))throw _0x244fa2[_0x34194d(0x3cc)];_0x4d1bc9=_0x244fa2[_0x34194d(0x237)][0x0],_0x2f3f0a=_0x244fa2[_0x34194d(0x24c)][0x0];}let _0x18bf99=this[_0x34194d(0x4b3)];if(_0x18bf99[_0x34194d(0x45a)]){let _0x34ee54=this['_transformService'][_0x34194d(0x3cf)](_0x4d1bc9,_0x18bf99);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x34ee54))throw _0x34ee54[_0x34194d(0x3cc)];_0x4d1bc9=_0x34ee54[_0x34194d(0x237)],_0x18bf99=_0x34ee54[_0x34194d(0x2f8)];}this[_0x34194d(0x3a3)](_0x4d1bc9),_0x2f3f0a&&(_0x2f3f0a[_0x34194d(0x341)]=this[_0x34194d(0x491)]()),this[_0x34194d(0x1fb)]=_0x2f3f0a,this['_pendingMutations']=_0x18bf99;}[_0x85662d(0x2be)](){const _0x27231b=_0x85662d;if(!this['_awaitingChangeset']||this[_0x27231b(0x44f)]==null)return;let _0x4797d1=this[_0x27231b(0x491)]();if(this[_0x27231b(0x44f)]<=_0x4797d1)throw Error(_0x27231b(0x2d4)+this[_0x27231b(0x44f)]+'.');this[_0x27231b(0x44f)]===_0x4797d1+0x1&&this[_0x27231b(0x3dd)]();}['_acknowledgeAwaiting'](){const _0x23b911=_0x85662d;this['_incrementRevisionNumber'](),this[_0x23b911(0x1fb)]=null,this[_0x23b911(0x44f)]=null;}[_0x85662d(0x4e8)](_0x14783f){const _0x53a5f7=_0x85662d;let _0x1b2f76=this['_awaitingChangeset'];return!_0x1b2f76||!_0x1b2f76[_0x53a5f7(0x3a0)]||_0x1b2f76[_0x53a5f7(0x1ce)]===null||_0x1b2f76[_0x53a5f7(0x1ce)]===void 0x0?!0x1:_0x14783f[_0x53a5f7(0x357)]===_0x1b2f76[_0x53a5f7(0x357)]&&_0x14783f[_0x53a5f7(0x3a0)]===_0x1b2f76['sid']&&_0x14783f['reqId']===_0x1b2f76['reqId'];}[_0x85662d(0x2ef)](){const _0x3ede61=_0x85662d;throw Error(_0x3ede61(0x436));}['appendMutation'](_0x47006e){const _0x2bd76a=_0x85662d;return this['_pendingMutations'][_0x2bd76a(0x4e6)](_0x47006e),this;}[_0x85662d(0x27c)](_0x24c8c4){const _0xc61f8b=_0x85662d;return this[_0xc61f8b(0x1d1)][_0xc61f8b(0x4e6)](_0x24c8c4),this;}[_0x85662d(0x347)](_0x56543a){const _0x51943f=_0x85662d;if(this[_0x51943f(0x1fb)]){let _0x5d3ac7=this[_0x51943f(0x491)]();return _0x56543a['revision']<=_0x5d3ac7||(_0x5d3ac7+0x1===_0x56543a[_0x51943f(0x46f)]?(this[_0x51943f(0x26f)](),this[_0x51943f(0x1fb)]=null,this[_0x51943f(0x44f)]=null):this[_0x51943f(0x44f)]=_0x56543a[_0x51943f(0x46f)]),this;}if(_0x56543a['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x51943f(0x2bb));}[_0x85662d(0x388)](_0x5ad611){const _0x59ba8e=_0x85662d;return this[_0x59ba8e(0x2ed)](!!(_0x5ad611!=null&&_0x5ad611['isPermissionRej']));}[_0x85662d(0x282)](){return this;}['toggleOffline'](){const _0x8144d5=_0x85662d;return this[_0x8144d5(0x3f3)][_0x8144d5(0x2e8)](N,this[_0x8144d5(0x357)],this['type'],this[_0x8144d5(0x1fb)],this[_0x8144d5(0x4b3)],this[_0x8144d5(0x49f)]);}[_0x85662d(0x44c)](){return this;}['_onConflict'](_0x33aa67){const _0x5db760=_0x85662d;return this[_0x5db760(0x3f3)]['createInstance'](M,this[_0x5db760(0x357)],this[_0x5db760(0x212)],this[_0x5db760(0x1fb)],this[_0x5db760(0x4b3)],this['_handler'],_0x33aa67);}};P=y([v(0x7,(0x0,t['Inject'])(t['Injector'])),v(0x8,(0x0,t[_0x85662d(0x340)])(e['RevisionService'])),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t['ICommandService']),v(0xb,t[_0x85662d(0x249)]),v(0xc,e['ITransformService']),v(0xd,(0x0,t['Optional'])(S))],P);function Ue(_0x594975,_0x40d9f3,_0x1ddfe9,_0x40be76,_0x3387b1,_0x1af369){const _0x3efcea=_0x85662d;return _0x40be76&&_0x3387b1[_0x3efcea(0x45a)]?_0x594975[_0x3efcea(0x2e8)](j,_0x40d9f3,_0x1ddfe9,_0x40be76,_0x3387b1,_0x1af369,void 0x0):_0x40be76?_0x594975[_0x3efcea(0x2e8)](A,_0x40d9f3,_0x1ddfe9,_0x40be76,_0x1af369):_0x3387b1['length']?_0x594975[_0x3efcea(0x2e8)](k,_0x40d9f3,_0x1ddfe9,_0x3387b1,_0x1af369):_0x594975[_0x3efcea(0x2e8)](O,_0x40d9f3,_0x1ddfe9,_0x1af369);}let F=class extends t['RxDisposable']{get[_0x85662d(0x234)](){return this['_state'];}constructor(_0x3203eb,_0x285f6d,_0x483616,_0x4e1fc7,_0x2880c3,_0x14a7dd,_0x27e8c3,_0x54bb26,_0x4a8011,_0x420587,_0x2359b1,_0xa6bd0f,_0x343f3e,_0x1c4f1b){const _0x1ea154=_0x85662d;super(),this[_0x1ea154(0x357)]=_0x3203eb,this[_0x1ea154(0x1cf)]=_0x285f6d,this[_0x1ea154(0x4e3)]=_0x483616,this['_injector']=_0x4e1fc7,this['_compressMutationService']=_0x2880c3,this[_0x1ea154(0x356)]=_0x14a7dd,this[_0x1ea154(0x352)]=_0x27e8c3,this[_0x1ea154(0x311)]=_0x54bb26,this[_0x1ea154(0x22a)]=_0x4a8011,this['_logService']=_0x420587,this[_0x1ea154(0x3d5)]=_0x2359b1,this[_0x1ea154(0x23c)]=_0xa6bd0f,this[_0x1ea154(0x429)]=_0x343f3e,this[_0x1ea154(0x1f4)]=_0x1c4f1b,g(this,'_state$',new i[(_0x1ea154(0x475))](null)),g(this,_0x1ea154(0x3eb),this[_0x1ea154(0x243)]['asObservable']()),g(this,_0x1ea154(0x2e2),void 0x0),g(this,_0x1ea154(0x33b),!0x1),g(this,_0x1ea154(0x2b0),''),g(this,_0x1ea154(0x478),0x0),g(this,'status$',this[_0x1ea154(0x3eb)][_0x1ea154(0x4bd)]((0x0,i['map'])(_0x169a73=>_0x169a73?_0x169a73[_0x1ea154(0x2ee)]:_0x1ea154(0x404)),(0x0,i[_0x1ea154(0x226)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x1ea154(0x496),!0x1),g(this,_0x1ea154(0x21c),[]);}async[_0x85662d(0x30d)](){const _0x14ccf0=_0x85662d;if(this[_0x14ccf0(0x234)])throw Error(_0x14ccf0(0x3bc));await this[_0x14ccf0(0x38c)]();}[_0x85662d(0x228)](){const _0x30a88e=_0x85662d;return this[_0x30a88e(0x33b)]=!0x0,(0x0,t[_0x30a88e(0x3d6)])(()=>{const _0x41b8b3=_0x30a88e;this[_0x41b8b3(0x33b)]=!0x1,this[_0x41b8b3(0x31b)]();});}['onLocalMutation'](_0x5804b8){const _0x5028e4=_0x85662d;this[_0x5028e4(0x45f)](_0x5804b8);}['_updateState'](_0x1d6637){const _0x59068a=_0x85662d;this[_0x59068a(0x2e2)]=_0x1d6637,this['_state$'][_0x59068a(0x49a)](_0x1d6637);}async[_0x85662d(0x38c)](){const _0x410be0=_0x85662d;if(this[_0x410be0(0x382)](await this[_0x410be0(0x4dd)]()),this[_0x410be0(0x429)]){var _0x46982b;(_0x46982b=this[_0x410be0(0x429)])==null||_0x46982b['editingUnit'](this[_0x410be0(0x357)]),this[_0x410be0(0x221)](this[_0x410be0(0x429)]['getUnitStatus$'](this[_0x410be0(0x357)])[_0x410be0(0x46c)](_0x4dcf52=>{const _0x2e0238=_0x410be0;this[_0x2e0238(0x29f)][_0x2e0238(0x3a9)](_0x2e0238(0x42e),_0x2e0238(0x2c6),_0x4dcf52),_0x4dcf52===0x1?(this[_0x2e0238(0x311)][_0x2e0238(0x3ae)]({'id':_0x2e0238(0x4c4)}),this[_0x2e0238(0x23c)][_0x2e0238(0x27a)](new r[(_0x2e0238(0x416))](this['unitID'])['id'],!0x1),this[_0x2e0238(0x23c)][_0x2e0238(0x3c1)](!0x1)):(this[_0x2e0238(0x23c)][_0x2e0238(0x27a)](new r[(_0x2e0238(0x416))](this[_0x2e0238(0x357)])['id'],!0x0),this[_0x2e0238(0x23c)][_0x2e0238(0x3c1)](!0x0));}));}let _0x5856e9=!0x1;return this['disposeWithMe'](this[_0x410be0(0x1cf)][_0x410be0(0x332)][_0x410be0(0x46c)](_0x3d8e82=>{const _0x50bb3f=_0x410be0;_0x3d8e82===0x3?this[_0x50bb3f(0x4ba)](_0x5856e9):_0x3d8e82===0x2&&(_0x5856e9=!0x0,this[_0x50bb3f(0x25a)]());})),this[_0x410be0(0x221)](this[_0x410be0(0x1cf)]['event$'][_0x410be0(0x46c)](_0xa1e891=>{const _0xa9ec1a=_0x410be0;try{switch(_0xa1e891[_0xa9ec1a(0x336)]){case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x2ae)]:this[_0xa9ec1a(0x32d)]((0x0,e[_0xa9ec1a(0x486)])(_0xa1e891[_0xa9ec1a(0x28a)]));break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x410)]:this[_0xa9ec1a(0x230)](_0xa1e891[_0xa9ec1a(0x28a)]);break;case e['CollaborationEvent'][_0xa9ec1a(0x4ef)]:this[_0xa9ec1a(0x23d)]();break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x2c9)]:this[_0xa9ec1a(0x2b2)](_0xa1e891[_0xa9ec1a(0x28a)]);break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x4b1)]:this['_onFetchMissResult'](_0xa1e891['data'][_0xa9ec1a(0x251)][_0xa9ec1a(0x3fc)](_0x2d509d=>(0x0,e['parseProtocolChangeset'])(_0x2d509d)));break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x48a)]:this[_0xa9ec1a(0x23d)]({'isPermissionRej':!0x0});break;case e[_0xa9ec1a(0x3fb)]['UNISCRIPT_RUN']:break;}}catch(_0x247068){throw console[_0xa9ec1a(0x3cc)](_0xa9ec1a(0x48e),_0x247068),_0x247068;}})),this[_0x410be0(0x2e2)];}[_0x85662d(0x424)](){const _0x148400=_0x85662d;this[_0x148400(0x496)]=!0x1;}['_lockTransition'](){const _0x301d45=_0x85662d;if(this['_transitionLocked'])throw Error(_0x301d45(0x317));this[_0x301d45(0x496)]=!0x0;}[_0x85662d(0x45f)](_0x55b940){const _0x4f2dce=_0x85662d;this['_lockTransition'](),this[_0x4f2dce(0x382)](this[_0x4f2dce(0x2e2)]['appendMutation'](_0x55b940)),this['_unlockTransition']();}[_0x85662d(0x32d)](_0x262d9a){const _0x10c84e=_0x85662d;if(!(_0x262d9a[_0x10c84e(0x46f)]<=this[_0x10c84e(0x352)][_0x10c84e(0x337)](this[_0x10c84e(0x357)]))){if(this[_0x10c84e(0x33b)]){this['_remoteChangesetQueue'][_0x10c84e(0x4e6)](_0x262d9a);return;}this[_0x10c84e(0x37e)](_0x262d9a);}}['_exhaustRemoteChangesetQueue'](){const _0x50f2ae=_0x85662d;this['_remoteChangesetQueue'][_0x50f2ae(0x30f)](_0x3a711b=>this['_applyRemoteChangeset'](_0x3a711b)),this[_0x50f2ae(0x21c)]=[];}[_0x85662d(0x37e)](_0x4ef358){const _0x42fa09=_0x85662d;let _0x19bce5=this[_0x42fa09(0x2c2)][_0x42fa09(0x313)][_0x42fa09(0x1f5)](this['_compressMutationService']['interceptor'][_0x42fa09(0x474)]()['COMPRESS_MUTATION_APPLY'])(_0x4ef358[_0x42fa09(0x406)],null)||_0x4ef358[_0x42fa09(0x406)],_0x3a21ce={..._0x4ef358,'mutations':_0x19bce5};this[_0x42fa09(0x2fa)](),this[_0x42fa09(0x382)](this['_state'][_0x42fa09(0x27c)](_0x3a21ce)),this['_unlockTransition']();}[_0x85662d(0x230)](_0x4d9755){const _0x33c434=_0x85662d;this[_0x33c434(0x2fa)](),this[_0x33c434(0x382)](this[_0x33c434(0x2e2)]['onRemoteAck'](_0x4d9755)),this[_0x33c434(0x424)]();}[_0x85662d(0x23d)](_0x1b037a){const _0x241b92=_0x85662d;this['_lockTransition'](),this['_updateState'](this[_0x241b92(0x2e2)][_0x241b92(0x388)](_0x1b037a)),this[_0x241b92(0x424)]();}[_0x85662d(0x2b2)](_0x25faec){const _0x1da11a=_0x85662d;this[_0x1da11a(0x2fa)](),this[_0x1da11a(0x382)](this[_0x1da11a(0x2e2)][_0x1da11a(0x282)](_0x25faec)),this[_0x1da11a(0x424)]();}[_0x85662d(0x473)](_0x2a88c9){const _0x289ca5=_0x85662d;if(!(this['_state']instanceof P))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x23cd29=_0x2a88c9['map'](_0x58218f=>{const _0xf63e92=_0x342d;let _0x1318a9=this[_0xf63e92(0x2c2)][_0xf63e92(0x313)][_0xf63e92(0x1f5)](this[_0xf63e92(0x2c2)][_0xf63e92(0x313)][_0xf63e92(0x474)]()[_0xf63e92(0x351)])(_0x58218f[_0xf63e92(0x406)],null)||_0x58218f[_0xf63e92(0x406)];return{..._0x58218f,'mutations':_0x1318a9};});this[_0x289ca5(0x2fa)](),this[_0x289ca5(0x382)](this[_0x289ca5(0x2e2)]['onMissedChangesetFetched'](_0x23cd29)),this[_0x289ca5(0x424)]();}[_0x85662d(0x25a)](){const _0x1bf2b8=_0x85662d;this[_0x1bf2b8(0x2fa)](),this[_0x1bf2b8(0x382)](this[_0x1bf2b8(0x2e2)]['toggleOffline']()),this[_0x1bf2b8(0x424)]();}[_0x85662d(0x4ba)](_0x41696c=!0x1){const _0x48e54e=_0x85662d;this[_0x48e54e(0x2fa)](),this[_0x48e54e(0x382)](this[_0x48e54e(0x2e2)][_0x48e54e(0x44c)]()),this[_0x48e54e(0x424)]();let _0x544837=this[_0x48e54e(0x2e2)];_0x41696c&&_0x544837 instanceof O&&(this[_0x48e54e(0x2fa)](),this[_0x48e54e(0x382)](_0x544837[_0x48e54e(0x359)]()),this['_unlockTransition']());}async[_0x85662d(0x4dd)](){return new Promise(_0xea8d2c=>{const _0x5ac276=_0x342d;this[_0x5ac276(0x1cf)][_0x5ac276(0x332)][_0x5ac276(0x4bd)]((0x0,i[_0x5ac276(0x3e5)])(0x1))['subscribe'](async _0x4a4758=>{const _0x4c2320=_0x5ac276;_0xea8d2c(await this[_0x4c2320(0x1e4)](_0x4a4758===0x3));});});}[_0x85662d(0x2a4)](){const _0x34bd20=_0x85662d;let _0x441eca=this[_0x34bd20(0x357)];return{'onStateChange':(_0x17eb35,_0x370427)=>{const _0x2e5848=_0x34bd20;if(_0x17eb35!==this['_state'])throw Error(_0x2e5848(0x2d0)+_0x17eb35['status']+_0x2e5848(0x23f)+_0x370427[_0x2e5848(0x2ee)]+'\x0aCurrent:\x20'+this[_0x2e5848(0x2e2)]['status']);this[_0x2e5848(0x382)](_0x370427);},'onSendChangeset':_0x3a5511=>{const _0x5f0507=_0x34bd20;_0x3a5511[_0x5f0507(0x3a0)]||(_0x3a5511[_0x5f0507(0x3a0)]=this[_0x5f0507(0x2b0)],_0x3a5511[_0x5f0507(0x1ce)]=++this['_changesetReqId']);let _0x27db60={'eventID':e[_0x5f0507(0x3fb)][_0x5f0507(0x4c6)],'data':{'unitID':_0x3a5511['unitID'],'unitType':this[_0x5f0507(0x4e3)],'changeset':_0x3a5511,'memberID':this['session']['getMemberID']()}};this[_0x5f0507(0x1cf)][_0x5f0507(0x48b)](_0x27db60,this[_0x5f0507(0x357)]);},'onMissingChangesets':({from:_0x425153,to:_0x52504b})=>{const _0x1bb8bb=_0x34bd20;this[_0x1bb8bb(0x29f)][_0x1bb8bb(0x3a9)](_0x1bb8bb(0x42e),_0x1bb8bb(0x3b7)+_0x425153+_0x1bb8bb(0x43a)+_0x52504b);let _0x285e63={'eventID':e[_0x1bb8bb(0x3fb)][_0x1bb8bb(0x415)],'data':{'unitID':_0x441eca,'unitType':this[_0x1bb8bb(0x4e3)],'from':_0x425153,'to':_0x52504b}};this[_0x1bb8bb(0x1cf)][_0x1bb8bb(0x48b)](_0x285e63,this[_0x1bb8bb(0x357)]);}};}async[_0x85662d(0x1e4)](_0x25b1eb){const _0xa4f607=_0x85662d;var _0x3aa7ad,_0x4c3892,_0x2c3571;let _0x15da24=await((_0x3aa7ad=this[_0xa4f607(0x1f4)])==null?void 0x0:_0x3aa7ad[_0xa4f607(0x264)](this[_0xa4f607(0x357)])),_0x4c27b0=(_0x4c3892=_0x15da24==null?void 0x0:_0x15da24[_0xa4f607(0x406)])==null?[]:_0x4c3892,_0x124f62=(_0x2c3571=_0x15da24==null?void 0x0:_0x15da24[_0xa4f607(0x4b9)])==null?null:_0x2c3571,_0x528572=!!(_0x124f62!=null&&_0x124f62[_0xa4f607(0x3a0)])&&!!(_0x124f62!=null&&_0x124f62[_0xa4f607(0x1ce)]);this[_0xa4f607(0x2b0)]=_0x528572?_0x124f62[_0xa4f607(0x3a0)]:(0x0,e[_0xa4f607(0x1d5)])(),this['_changesetReqId']=_0x528572?_0x124f62[_0xa4f607(0x1ce)]:0x0;let _0xfce9c=this['unitID'];try{this['_replayCachedMutations'](_0x124f62,_0x4c27b0);}catch(_0x5707ef){this[_0xa4f607(0x29f)][_0xa4f607(0x3cc)](_0x5707ef);}let _0x2f64f1=this['_createHandler']();if(_0x25b1eb){let _0x1fe9e7=Ue(this['_injector'],_0xfce9c,this['_type'],_0x124f62,_0x4c27b0,_0x2f64f1);return _0x1fe9e7 instanceof k?_0x1fe9e7[_0xa4f607(0x307)]():(_0x1fe9e7 instanceof j||_0x1fe9e7 instanceof A)&&_0x1fe9e7[_0xa4f607(0x2ef)](),_0x1fe9e7;}return this[_0xa4f607(0x3f3)][_0xa4f607(0x2e8)](N,_0xfce9c,this['_type'],_0x124f62,_0x4c27b0,_0x2f64f1);}[_0x85662d(0x3f2)](_0x113d82,_0x18ee28){const _0x16e0d2=_0x85662d;var _0x20e27b,_0x27566f;let _0xb5d7cf=this[_0x16e0d2(0x2c2)][_0x16e0d2(0x313)][_0x16e0d2(0x1f5)](this['_compressMutationService'][_0x16e0d2(0x313)]['getInterceptPoints']()[_0x16e0d2(0x351)]);(_0x20e27b=_0xb5d7cf((_0x113d82==null?void 0x0:_0x113d82[_0x16e0d2(0x406)])||[],null))==null||_0x20e27b[_0x16e0d2(0x30f)](_0xbf9634=>this[_0x16e0d2(0x3d5)]['executeCommand'](_0xbf9634['id'],_0xbf9634['params'])),(_0x27566f=_0xb5d7cf(_0x18ee28||[],null))==null||_0x27566f['forEach'](_0x3bd521=>this[_0x16e0d2(0x3d5)]['executeCommand'](_0x3bd521['id'],_0x3bd521[_0x16e0d2(0x3c0)]));}};F=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t['ICommandService']),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],F);let I=class extends F{constructor(_0x2f831b,_0x28db75,_0x18fe7e,_0x2e57ca,_0x137184,_0x1bf174,_0x1afaf4,_0x43427e,_0x1d091b,_0x4bde49,_0x3d7c52,_0x36e97b,_0x4be2b9,_0xc8267a,_0x10f527){const _0x1f3141=_0x85662d;super(_0x2f831b,_0x18fe7e,_0x28db75,_0x2e57ca,_0x137184,_0x1bf174,_0x1afaf4,_0x43427e,_0x1d091b,_0x4bde49,_0x3d7c52,_0x36e97b,_0xc8267a,_0x10f527),this['unitID']=_0x2f831b,this['type']=_0x28db75,this[_0x1f3141(0x2e6)]=_0x4be2b9,g(this,_0x1f3141(0x257),null);}[_0x85662d(0x48d)](_0x7c8cb9){const _0x212956=_0x85662d;this[_0x212956(0x257)]=_0x7c8cb9;}[_0x85662d(0x469)](){const _0x13207c=_0x85662d;this[_0x13207c(0x257)]=null,super['dispose']();}[_0x85662d(0x2a4)](){const _0x1887c4=_0x85662d;let _0x33e700=super[_0x1887c4(0x2a4)]();return _0x33e700[_0x1887c4(0x4f2)]=_0x2c1444=>{const _0x466153=_0x1887c4;var _0x30556d,_0x5068a5;return(_0x30556d=this[_0x466153(0x257)])==null||(_0x5068a5=_0x30556d[_0x466153(0x4f2)])==null?void 0x0:_0x5068a5[_0x466153(0x380)](_0x30556d,_0x2c1444);},_0x33e700['onTransformState']=_0x25674d=>{const _0xbbc431=_0x1887c4;var _0x47c5af,_0x48535d;return(_0x47c5af=this[_0xbbc431(0x257)])==null||(_0x48535d=_0x47c5af['onTransformState'])==null?void 0x0:_0x48535d[_0xbbc431(0x380)](_0x47c5af,_0x25674d);},_0x33e700[_0x1887c4(0x3da)]=_0x53ef1c=>{const _0x1a4bcf=_0x1887c4;var _0x5b98d9,_0x5dda8a;return(_0x5b98d9=this[_0x1a4bcf(0x257)])==null||(_0x5dda8a=_0x5b98d9[_0x1a4bcf(0x3da)])==null?void 0x0:_0x5dda8a[_0x1a4bcf(0x380)](_0x5b98d9,_0x53ef1c);},_0x33e700[_0x1887c4(0x4a7)]=_0x4b943d=>{const _0x546254=_0x1887c4;var _0x338553,_0x1c48fe;return(_0x338553=this[_0x546254(0x257)])==null||(_0x1c48fe=_0x338553['onSyncEditingCollabCursor'])==null?void 0x0:_0x1c48fe[_0x546254(0x380)](_0x338553,_0x4b943d);},_0x33e700[_0x1887c4(0x3de)]=_0x63cbf7=>{const _0x10fac2=_0x1887c4;var _0x3c080e,_0x16acc0,_0x45125b;return(_0x3c080e=(_0x16acc0=this[_0x10fac2(0x257)])==null||(_0x45125b=_0x16acc0[_0x10fac2(0x3de)])==null?void 0x0:_0x45125b[_0x10fac2(0x380)](_0x16acc0,_0x63cbf7))==null?_0x63cbf7:_0x3c080e;},_0x33e700[_0x1887c4(0x24b)]=_0x57807c=>{const _0x5b1dfc=_0x1887c4;var _0x44fb89,_0x495b44,_0x2b7ad4;return(_0x44fb89=(_0x495b44=this[_0x5b1dfc(0x257)])==null||(_0x2b7ad4=_0x495b44[_0x5b1dfc(0x24b)])==null?void 0x0:_0x2b7ad4['call'](_0x495b44,_0x57807c))==null?_0x57807c:_0x44fb89;},_0x33e700;}async['_init'](){const _0x3dc897=_0x85662d;let _0xd65abe=await super[_0x3dc897(0x38c)]();return this[_0x3dc897(0x221)](this[_0x3dc897(0x2e6)][_0x3dc897(0x20d)][_0x3dc897(0x46c)](_0x2128d2=>{const _0xc4a4b3=_0x3dc897;if(_0x2128d2==null||_0x2128d2['unitId']!==this[_0xc4a4b3(0x357)])return;let {commandId:_0x3b5593,redoState:_0x2740b7,unitId:_0x160110}=_0x2128d2,_0x1b0dd3={'id':_0x3b5593,'type':t[_0xc4a4b3(0x30a)][_0xc4a4b3(0x242)],'params':{'unitId':_0x160110,'actions':_0x2740b7[_0xc4a4b3(0x470)],'textRanges':null}};this[_0xc4a4b3(0x45f)](_0x1b0dd3);})),this['disposeWithMe'](this[_0x3dc897(0x3d5)]['onMutationExecutedForCollab']((_0x39903a,_0x1d2911)=>{const _0x2378b4=_0x3dc897;if(_0x39903a[_0x2378b4(0x212)]!==t[_0x2378b4(0x30a)][_0x2378b4(0x242)]||_0x1d2911!=null&&_0x1d2911[_0x2378b4(0x441)]||_0x1d2911!=null&&_0x1d2911[_0x2378b4(0x1fe)]||_0x39903a['id']===n['RichTextEditingMutation']['id'])return;let _0x1bd386=_0x39903a[_0x2378b4(0x3c0)];if((_0x1bd386==null?void 0x0:_0x1bd386[_0x2378b4(0x420)])!==this['unitID'])return;let _0x24afcf=_0x39903a,_0x1951ba=this[_0x2378b4(0x2c2)][_0x2378b4(0x313)]['fetchThroughInterceptors'](this[_0x2378b4(0x2c2)][_0x2378b4(0x313)]['getInterceptPoints']()[_0x2378b4(0x43b)])([_0x24afcf],this[_0x2378b4(0x22a)])||[_0x24afcf];this[_0x2378b4(0x45f)](_0x1951ba[0x0]);})),_0xd65abe;}};I=y([v(0x3,(0x0,t['Inject'])(t['Injector'])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t['Inject'])(t[_0x85662d(0x285)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e['RevisionService'])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t['ICommandService']),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x340)])(n[_0x85662d(0x354)])),v(0xd,(0x0,t[_0x85662d(0x32e)])(w)),v(0xe,(0x0,t[_0x85662d(0x32e)])(S))],I);let L=class extends F{constructor(_0x39b4de,_0x4e59b,_0x80140f,_0x3a1a7c,_0x409168,_0x309193,_0x4beb47,_0x82aac3,_0x3c8eab,_0x3a33c8,_0x3cf8a6,_0x187837,_0x11ec8a,_0x212ab5){const _0x3fc9f4=_0x85662d;super(_0x39b4de,_0x80140f,_0x4e59b,_0x3a1a7c,_0x409168,_0x309193,_0x4beb47,_0x82aac3,_0x3c8eab,_0x3a33c8,_0x3cf8a6,_0x187837,_0x11ec8a,_0x212ab5),this['unitID']=_0x39b4de,this[_0x3fc9f4(0x212)]=_0x4e59b;}async[_0x85662d(0x38c)](){const _0xe51cf7=_0x85662d;let _0x38b765=await super[_0xe51cf7(0x38c)]();return this['disposeWithMe'](this[_0xe51cf7(0x3d5)][_0xe51cf7(0x3b2)]((_0x1e04e0,_0x442959)=>{const _0x19e8f6=_0xe51cf7;if(_0x1e04e0[_0x19e8f6(0x212)]!==t[_0x19e8f6(0x30a)][_0x19e8f6(0x242)]||_0x442959!=null&&_0x442959['fromCollab']||_0x442959!=null&&_0x442959[_0x19e8f6(0x1fe)])return;let _0xebf4c5=_0x1e04e0['params'];if((_0xebf4c5==null?void 0x0:_0xebf4c5['unitId'])!==this[_0x19e8f6(0x357)])return;let _0x2adff2=_0x1e04e0,_0x407574=this['_compressMutationService'][_0x19e8f6(0x313)][_0x19e8f6(0x1f5)](this[_0x19e8f6(0x2c2)][_0x19e8f6(0x313)]['getInterceptPoints']()[_0x19e8f6(0x43b)])([_0x2adff2],this[_0x19e8f6(0x22a)])||[_0x2adff2];this[_0x19e8f6(0x45f)](_0x407574[0x0]);})),_0x38b765;}};L=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)])),v(0x6,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t[_0x85662d(0x448)]),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],L);let R=class extends F{constructor(_0x201036,_0x5e6df,_0x543b5c,_0x2a63a4,_0x258151,_0x340b48,_0x42a299,_0x2b98b6,_0xc1044,_0x295b00,_0x45d8b7,_0x7f7880,_0x3403aa,_0x1bc354,_0x79a51b){const _0x2b70a9=_0x85662d;super(_0x201036,_0x543b5c,_0x5e6df,_0x2a63a4,_0x258151,_0x340b48,_0x42a299,_0xc1044,_0x295b00,_0x45d8b7,_0x7f7880,_0x3403aa,_0x1bc354,_0x79a51b),this[_0x2b70a9(0x357)]=_0x201036,this['type']=_0x5e6df,this['_sheetTransformSelectionsService']=_0x2b98b6;}[_0x85662d(0x2a4)](){const _0x25fa9d=_0x85662d;let _0x2a46c7=super[_0x25fa9d(0x2a4)]();return _0x2a46c7[_0x25fa9d(0x3da)]=_0x144d1d=>this[_0x25fa9d(0x25f)][_0x25fa9d(0x45e)](_0x144d1d),_0x2a46c7;}async[_0x85662d(0x38c)](){const _0xe82cd5=_0x85662d;let _0x22a1a4=await super[_0xe82cd5(0x38c)]();return this['disposeWithMe'](this[_0xe82cd5(0x3d5)][_0xe82cd5(0x3b2)]((_0x5df824,_0xcdbec7)=>{const _0x3a22b7=_0xe82cd5;if(_0x5df824['type']!==t[_0x3a22b7(0x30a)][_0x3a22b7(0x242)]||_0xcdbec7!=null&&_0xcdbec7['fromCollab']||_0xcdbec7!=null&&_0xcdbec7[_0x3a22b7(0x1fe)])return;let _0x322a3d=_0x5df824[_0x3a22b7(0x3c0)];if((_0x322a3d==null?void 0x0:_0x322a3d[_0x3a22b7(0x420)])!==this[_0x3a22b7(0x357)])return;let _0x2e1f26=_0x5df824,_0x1baff6=this[_0x3a22b7(0x2c2)][_0x3a22b7(0x313)]['fetchThroughInterceptors'](this[_0x3a22b7(0x2c2)][_0x3a22b7(0x313)][_0x3a22b7(0x474)]()[_0x3a22b7(0x43b)])([_0x2e1f26],this['_univerInstanceService'])||[_0x2e1f26];this[_0x3a22b7(0x45f)](_0x1baff6[0x0]);})),_0x22a1a4;}};R=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t['Injector'])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t[_0x85662d(0x340)])(t['LocaleService'])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(C)),v(0x8,(0x0,t['Inject'])(_)),v(0x9,t[_0x85662d(0x33e)]),v(0xa,t[_0x85662d(0x3a4)]),v(0xb,t[_0x85662d(0x448)]),v(0xc,t[_0x85662d(0x4f4)]),v(0xd,(0x0,t[_0x85662d(0x32e)])(w)),v(0xe,(0x0,t['Optional'])(S))],R);let z=class extends F{constructor(_0x10cb60,_0x2cc04a,_0x26a626,_0x3a526d,_0x4829d8,_0x487fa6,_0x2334da,_0x293e7e,_0x28c414,_0x52a39a,_0x680143,_0x5d3585,_0xd4c9a3,_0xf3398a){const _0x2d0686=_0x85662d;super(_0x10cb60,_0x26a626,_0x2cc04a,_0x3a526d,_0x4829d8,_0x487fa6,_0x2334da,_0x293e7e,_0x28c414,_0x52a39a,_0x680143,_0x5d3585,_0xd4c9a3,_0xf3398a),this['unitID']=_0x10cb60,this[_0x2d0686(0x212)]=_0x2cc04a;}async['_init'](){const _0x5ef7e2=_0x85662d;let _0x450f76=await super[_0x5ef7e2(0x38c)]();return this[_0x5ef7e2(0x221)](this[_0x5ef7e2(0x3d5)][_0x5ef7e2(0x3b2)]((_0x2257de,_0x389d11)=>{const _0x1e09be=_0x5ef7e2;if(_0x2257de['type']!==t[_0x1e09be(0x30a)][_0x1e09be(0x242)]||_0x389d11!=null&&_0x389d11[_0x1e09be(0x441)]||_0x389d11!=null&&_0x389d11['onlyLocal'])return;let _0x12f044=_0x2257de[_0x1e09be(0x3c0)];if((_0x12f044==null?void 0x0:_0x12f044[_0x1e09be(0x420)])!==this[_0x1e09be(0x357)])return;let _0x2896d0=_0x2257de,_0x4d904c=this[_0x1e09be(0x2c2)][_0x1e09be(0x313)][_0x1e09be(0x1f5)](this['_compressMutationService'][_0x1e09be(0x313)]['getInterceptPoints']()[_0x1e09be(0x43b)])([_0x2896d0],this[_0x1e09be(0x22a)])||[_0x2896d0];this['_onLocalMutation'](_0x4d904c[0x0]);})),_0x450f76;}};z=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t['Inject'])(t[_0x85662d(0x285)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t[_0x85662d(0x33e)]),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t[_0x85662d(0x448)]),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],z);let B=class extends F{constructor(_0x2afecc,_0x6fd30a,_0x155104,_0x1cd296,_0x2b1b69,_0x53fec6,_0x59867b,_0x1fc6a7,_0x21c02f,_0x479919,_0x3b42ca,_0x382319,_0x4116f6,_0xa07762){const _0x664d2f=_0x85662d;super(_0x2afecc,_0x155104,_0x6fd30a,_0x1cd296,_0x2b1b69,_0x53fec6,_0x59867b,_0x1fc6a7,_0x21c02f,_0x479919,_0x3b42ca,_0x382319,_0x4116f6,_0xa07762),this[_0x664d2f(0x357)]=_0x2afecc,this[_0x664d2f(0x212)]=_0x6fd30a;}async['_init'](){const _0x2ea372=_0x85662d;let _0x4efeaa=await super[_0x2ea372(0x38c)]();return this['disposeWithMe'](this[_0x2ea372(0x3d5)][_0x2ea372(0x3b2)]((_0x4d4ac8,_0xe689ae)=>{const _0x3ce779=_0x2ea372;if(_0x4d4ac8[_0x3ce779(0x212)]!==t[_0x3ce779(0x30a)][_0x3ce779(0x242)]||_0xe689ae!=null&&_0xe689ae[_0x3ce779(0x441)]||_0xe689ae!=null&&_0xe689ae[_0x3ce779(0x1fe)])return;let _0xf986a3=_0x4d4ac8[_0x3ce779(0x3c0)];if((_0xf986a3==null?void 0x0:_0xf986a3['unitId'])!==this[_0x3ce779(0x357)])return;let _0x23d545=_0x4d4ac8,_0x1885bb=this[_0x3ce779(0x2c2)][_0x3ce779(0x313)]['fetchThroughInterceptors'](this[_0x3ce779(0x2c2)][_0x3ce779(0x313)][_0x3ce779(0x474)]()['COMPRESS_MUTATION_SEND'])([_0x23d545],this[_0x3ce779(0x22a)])||[_0x23d545];this[_0x3ce779(0x45f)](_0x1885bb[0x0]);})),_0x4efeaa;}};B=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)])),v(0x6,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x85662d(0x33e)]),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t[_0x85662d(0x448)]),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t['Optional'])(S))],B);const We=(0x0,t['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function Ge(_0xed36fc){const _0x23340e=_0x85662d;let _0x58b2a5=_0xed36fc[_0x23340e(0x28a)],_0x49294c=JSON[_0x23340e(0x42a)](_0x58b2a5);switch(_0x49294c['cmd']){case a['CombCmd'][_0x23340e(0x2b9)]:case a[_0x23340e(0x44a)][_0x23340e(0x47f)]:{let _0x3de02e=_0x49294c[_0x23340e(0x20a)];return{..._0x49294c,'data':_0x3de02e,'cmd':_0x49294c[_0x23340e(0x348)]};}case a[_0x23340e(0x44a)][_0x23340e(0x1e7)]:{let _0x17c244=_0x49294c[_0x23340e(0x45d)];return{..._0x49294c,'data':_0x17c244,'cmd':_0x49294c[_0x23340e(0x348)]};}case a[_0x23340e(0x44a)][_0x23340e(0x1ed)]:{let _0x567b37=_0x49294c['collaMsg'];switch(_0x567b37[_0x23340e(0x336)]){case e['CollaborationEvent'][_0x23340e(0x48a)]:var _0x2e507c;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x2e507c=_0x567b37[_0x23340e(0x463)])==null?void 0x0:_0x2e507c['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x410)]:var _0x39bdcc;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x39bdcc=_0x567b37['csAckEvent'])==null?void 0x0:_0x39bdcc['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x2ae)]:var _0x413b6c;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x413b6c=_0x567b37[_0x23340e(0x2ce)])==null?void 0x0:_0x413b6c['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x4ef)]:var _0x5e1df5;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x5e1df5=_0x567b37['csRejEvent'])==null?void 0x0:_0x5e1df5['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x2c9)]:var _0x192f0a;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x192f0a=_0x567b37['csShouldRetryEvent'])==null?void 0x0:_0x192f0a['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x47b)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x465)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x35a)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x395)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e['CollaborationEvent'][_0x23340e(0x2fb)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x292)]},'cmd':_0x49294c['cmd']};case e['CollaborationEvent'][_0x23340e(0x371)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x430)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x2ec)]:case e[_0x23340e(0x3fb)][_0x23340e(0x20b)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37['liveShareOperation']},'cmd':_0x49294c['cmd']};case e[_0x23340e(0x3fb)]['LIVESHARE_TERMINATE']:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x430)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x4c3)]:return{..._0x49294c,'data':_0x567b37,'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x267)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37['commentUpdateEvent']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)]['UPDATE_PERMISSION_OBJ']:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x1f3)]},'cmd':_0x49294c['cmd']};case e[_0x23340e(0x3fb)][_0x23340e(0x41b)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37['shouldCloseConn']},'cmd':_0x49294c[_0x23340e(0x348)]};case e['CollaborationEvent'][_0x23340e(0x2ff)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x417)]},'cmd':_0x49294c[_0x23340e(0x348)]};default:return _0x49294c;}}default:return _0x49294c;}}function Ke(_0x558e5a){const _0x57b409=_0x85662d;switch(_0x558e5a[_0x57b409(0x348)]){case a[_0x57b409(0x44a)]['HEARTBEAT']:case a[_0x57b409(0x44a)]['HELLO']:return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a[_0x57b409(0x348)],'routeKey':_0x558e5a['routeKey']});case a[_0x57b409(0x44a)][_0x57b409(0x205)]:{let _0x111596;switch(_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x336)]){case e[_0x57b409(0x3fb)]['UPDATE_CURSOR']:_0x111596={'eventID':e[_0x57b409(0x3fb)]['UPDATE_CURSOR'],'updateCursorEvent':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)][_0x57b409(0x2fb)]:_0x111596={'eventID':e[_0x57b409(0x3fb)]['USERS_LEAVE'],'leaveEvent':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)]['USERS_ENTER']:_0x111596={'eventID':e[_0x57b409(0x3fb)][_0x57b409(0x35a)],'joinEvent':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)][_0x57b409(0x371)]:_0x111596={'eventID':e[_0x57b409(0x3fb)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)][_0x57b409(0x20b)]:_0x111596={'eventID':e[_0x57b409(0x3fb)][_0x57b409(0x20b)],'liveShareOperation':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e['CollaborationEvent'][_0x57b409(0x4ab)]:_0x111596={'eventID':e[_0x57b409(0x3fb)][_0x57b409(0x4ab)],'liveShareTerminate':_0x558e5a['data'][_0x57b409(0x28a)]};break;case e['CollaborationEvent'][_0x57b409(0x2a1)]:_0x111596={'eventID':e['CollaborationEvent'][_0x57b409(0x2a1)],'liveShareRequestHost':_0x558e5a[_0x57b409(0x28a)]['data']};break;case e['CollaborationEvent'][_0x57b409(0x2ec)]:_0x111596={'eventID':e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x111596={'eventID':_0x558e5a['data'][_0x57b409(0x336)]};}return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a[_0x57b409(0x348)],'routeKey':_0x558e5a[_0x57b409(0x349)],'collaMsg':_0x111596});}case a[_0x57b409(0x44a)][_0x57b409(0x1e7)]:return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a[_0x57b409(0x348)],'routeKey':_0x558e5a[_0x57b409(0x349)],'joinReq':_0x558e5a[_0x57b409(0x28a)]});case a[_0x57b409(0x44a)][_0x57b409(0x271)]:return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a['cmd'],'routeKey':_0x558e5a[_0x57b409(0x349)],'leaveReq':_0x558e5a[_0x57b409(0x28a)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const qe=(0x0,t['createIdentifier'])('univer-pro.collaboration-client-socket-service');function Je(_0x110675,_0x398042,_0x2ac39){const _0x2fd9ab=_0x85662d;return _0x110675+'/'+_0x398042+'/unit/'+_0x2ac39+_0x2fd9ab(0x44b);}let Ye=class extends t[_0x85662d(0x304)]{constructor(_0x34618c,_0xd81207,_0x1b09d4,_0x25629b,_0x5122b9){const _0x1ec8b0=_0x85662d;super(),this[_0x1ec8b0(0x3f3)]=_0x34618c,this[_0x1ec8b0(0x28e)]=_0xd81207,this[_0x1ec8b0(0x377)]=_0x1b09d4,this['_logService']=_0x25629b,this['_snapshotServerService']=_0x5122b9;}['_doCreateSocket'](_0x268d5c){const _0x3fdb23=_0x85662d;let _0x31c007=this[_0x3fdb23(0x3f3)][_0x3fdb23(0x39b)](l[_0x3fdb23(0x305)]);if(!_0x31c007)throw Error(_0x3fdb23(0x26d));let _0x171e67=_0x31c007[_0x3fdb23(0x387)](_0x268d5c);if(!_0x171e67)throw Error(_0x3fdb23(0x401));let _0x429a2f=new t['DisposableCollection'](),_0x519e34=new i['Subject']();_0x429a2f[_0x3fdb23(0x2d6)](_0x171e67[_0x3fdb23(0x4d6)][_0x3fdb23(0x46c)](_0x2a814b=>_0x519e34[_0x3fdb23(0x49a)](_0x2a814b))),_0x429a2f[_0x3fdb23(0x2d6)]((0x0,t['toDisposable'])(()=>_0x519e34[_0x3fdb23(0x3ab)]()));let _0x41a523=new i[(_0x3fdb23(0x439))]();_0x429a2f[_0x3fdb23(0x2d6)](_0x171e67['error$'][_0x3fdb23(0x46c)](_0xdafcec=>_0x41a523[_0x3fdb23(0x49a)](_0xdafcec))),_0x429a2f[_0x3fdb23(0x2d6)]((0x0,t['toDisposable'])(()=>_0x41a523[_0x3fdb23(0x3ab)]()));let _0x53b5b1=new i[(_0x3fdb23(0x439))]();_0x429a2f[_0x3fdb23(0x2d6)](_0x171e67[_0x3fdb23(0x21b)][_0x3fdb23(0x46c)](_0x535f25=>{const _0x59f4cf=_0x3fdb23;let _0x5d76ee=Ge(_0x535f25);_0x53b5b1[_0x59f4cf(0x49a)](_0x5d76ee);})),_0x429a2f['add']((0x0,t[_0x3fdb23(0x3d6)])(()=>_0x53b5b1[_0x3fdb23(0x3ab)]()));let _0x4b48d0,_0x3d4fcc=()=>{const _0x82917e=_0x3fdb23;_0x41a523[_0x82917e(0x49a)](new Event(_0x82917e(0x397))),_0x519e34[_0x82917e(0x49a)](new Event(_0x82917e(0x397))),_0x4b48d0[_0x82917e(0x418)]();};return _0x4b48d0={'memberID':'','close$':_0x519e34[_0x3fdb23(0x2dd)](),'error$':_0x41a523['asObservable'](),'open$':_0x171e67['open$'],'message$':_0x53b5b1['asObservable'](),'send':_0x4811b1=>{const _0xf99d0b=_0x3fdb23;if(_0x4811b1[_0xf99d0b(0x348)]===a['CombCmd'][_0xf99d0b(0x205)]){if(_0x4811b1[_0xf99d0b(0x28a)][_0xf99d0b(0x336)]===e[_0xf99d0b(0x3fb)]['SUBMIT_CHANGESET']){this[_0xf99d0b(0x394)](_0x4b48d0,_0x4811b1[_0xf99d0b(0x28a)])[_0xf99d0b(0x4a5)](_0x2f1ca3=>{const _0x468693=_0xf99d0b;this[_0x468693(0x29f)][_0x468693(0x3cc)](_0x2f1ca3),_0x3d4fcc();});return;}if(_0x4811b1[_0xf99d0b(0x28a)][_0xf99d0b(0x336)]===e[_0xf99d0b(0x3fb)][_0xf99d0b(0x415)]){let _0x5aa5d2=_0x4811b1['data'];this[_0xf99d0b(0x4a0)](_0x5aa5d2)[_0xf99d0b(0x3b6)](_0x3591ff=>{const _0x3497c1=_0xf99d0b;_0x53b5b1[_0x3497c1(0x49a)]({'cmd':a[_0x3497c1(0x44a)][_0x3497c1(0x1ed)],'code':a['CmdRspCode']['OK'],'routeKey':_0x5aa5d2[_0x3497c1(0x28a)][_0x3497c1(0x357)],'routeType':'','data':{'eventID':e[_0x3497c1(0x3fb)][_0x3497c1(0x4b1)],'data':{'changesets':_0x3591ff}}});})[_0xf99d0b(0x4a5)](_0x29610e=>{const _0xc11f58=_0xf99d0b;this[_0xc11f58(0x29f)]['error'](_0x29610e),_0x3d4fcc();});return;}}_0x171e67[_0xf99d0b(0x48b)](Ke(_0x4811b1));},'close':()=>{_0x171e67['close'](),_0x429a2f['dispose']();}},_0x4b48d0;}async[_0x85662d(0x394)](_0x28278a,_0x15adde){const _0x2b7d35=_0x85662d;var _0x355e14;let {unitType:_0x24b931,unitID:_0x22b9ad,changeset:_0xd012c4}=_0x15adde[_0x2b7d35(0x28a)],_0xf91cc8={'unitID':_0x22b9ad,'memberID':_0x28278a[_0x2b7d35(0x4e4)],'type':_0x24b931,'changeset':(0x0,e[_0x2b7d35(0x1e0)])(_0xd012c4)},_0x17eb62=this[_0x2b7d35(0x377)][_0x2b7d35(0x262)](m),_0x5eb89d=Je((_0x355e14=_0x17eb62==null?void 0x0:_0x17eb62[_0x2b7d35(0x28b)])==null?_0x2b7d35(0x36a):_0x355e14,_0x24b931,_0x22b9ad);try{await this['_httpService'][_0x2b7d35(0x3d4)](_0x5eb89d,{'body':_0xf91cc8});}catch(_0x10c4ec){throw this[_0x2b7d35(0x29f)]['error'](_0x2b7d35(0x383),_0x2b7d35(0x331)),_0x10c4ec;}}async['_fetchMissChangesets'](_0x473ca8){const _0x2227d4=_0x85662d;let {unitID:_0x4fe467,from:_0x3209e1,to:_0x329c48,unitType:_0x10a0a5}=_0x473ca8['data'];return(await this['_snapshotServerService'][_0x2227d4(0x2ba)]({'metadata':void 0x0},{'unitID':_0x4fe467,'type':_0x10a0a5,'from':_0x3209e1,'to':_0x329c48}))[_0x2227d4(0x251)][_0x2227d4(0x3fc)](_0x10e69e=>((_0x10e69e[_0x2227d4(0x406)]===null||_0x10e69e['mutations']===void 0x0)&&(_0x10e69e[_0x2227d4(0x406)]=[]),_0x10e69e));}};Ye=y([v(0x0,(0x0,t['Inject'])(t[_0x85662d(0x330)])),v(0x1,(0x0,t[_0x85662d(0x340)])(l[_0x85662d(0x315)])),v(0x2,t[_0x85662d(0x29d)]),v(0x3,t[_0x85662d(0x3a4)]),v(0x4,e[_0x85662d(0x246)])],Ye);const Xe=(0x0,t['createIdentifier'])(_0x85662d(0x1e1));function Ze(_0x103215={}){const _0x54db85=_0x85662d;return _0x103215[_0x54db85(0x3a7)]?{'resolveUnit':_0x103215[_0x54db85(0x3a7)]}:{'resolveUnit':_0x19d810=>({'target':{'unitId':_0x19d810[_0x54db85(0x420)],'unitType':_0x19d810[_0x54db85(0x369)]}})};}function Qe(_0x2ea9a7,_0x14cd62,_0x558b4b){const _0x395a6c=_0x85662d;var _0x4b3217;let _0x16b5ee=_0x558b4b[_0x395a6c(0x1f0)]['endpoint'];if(_0x16b5ee!=null&&_0x16b5ee[_0x395a6c(0x256)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x558b4b[_0x395a6c(0x1f0)][_0x395a6c(0x420)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x2ea9a7,'unitType':_0x14cd62,'target':{'endpoint':_0x16b5ee,'unitId':_0x558b4b['target'][_0x395a6c(0x420)],'unitType':(_0x4b3217=_0x558b4b['target'][_0x395a6c(0x369)])==null?_0x14cd62:_0x4b3217},'changeset':_0x558b4b['changeset']};}let V=class extends t[_0x85662d(0x304)]{constructor(_0x5d153e,_0x55cfd8,_0x597a05,_0x5141d5,_0x59de15,_0x1ca5b1,_0x58da8d){const _0x44e921=_0x85662d;super(),this['_injector']=_0x5d153e,this[_0x44e921(0x29f)]=_0x55cfd8,this[_0x44e921(0x377)]=_0x597a05,this[_0x44e921(0x364)]=_0x5141d5,this[_0x44e921(0x46e)]=_0x59de15,this['_adapter']=_0x1ca5b1,this[_0x44e921(0x419)]=_0x58da8d,g(this,_0x44e921(0x2a9),new Map()),g(this,_0x44e921(0x355),new Map()),g(this,_0x44e921(0x459),new Map()),g(this,'_socketChannels',new Map()),g(this,'socket$',this[_0x44e921(0x2bd)](void 0x0)[_0x44e921(0x490)][_0x44e921(0x2dd)]()),g(this,'_status$',new i[(_0x44e921(0x475))](0x0)),g(this,_0x44e921(0x27f),this[_0x44e921(0x467)][_0x44e921(0x2dd)]()),this['_listenToNetworkCondition']();}['_listenToNetworkCondition'](){const _0x44908a=_0x85662d;this['_networkConditionService']&&this[_0x44908a(0x221)](this[_0x44908a(0x419)]['online$']['subscribe'](_0xddd348=>{const _0x5f1f71=_0x44908a;_0xddd348&&this[_0x5f1f71(0x244)](),_0xddd348||this[_0x5f1f71(0x3cb)][_0x5f1f71(0x30f)](_0xb3ad80=>this[_0x5f1f71(0x20f)](_0xb3ad80));}));}[_0x85662d(0x469)](){const _0x3bcb56=_0x85662d;super[_0x3bcb56(0x469)](),this[_0x3bcb56(0x3cb)][_0x3bcb56(0x30f)](_0x32b3e9=>{const _0x965835=_0x3bcb56;var _0xf2fddf,_0x3e5a81;(_0xf2fddf=_0x32b3e9['socketMessageSubscription'])==null||_0xf2fddf['unsubscribe'](),_0x32b3e9[_0x965835(0x29c)]=null,this[_0x965835(0x222)](_0x32b3e9),this['_clearTimeoutTimer'](_0x32b3e9),this['_clearHeartbeatTimer'](_0x32b3e9),(_0x3e5a81=_0x32b3e9['socket$'][_0x965835(0x40c)]())==null||_0x3e5a81[_0x965835(0x418)](),_0x32b3e9['socket$'][_0x965835(0x3ab)]();}),this[_0x3bcb56(0x3cb)][_0x3bcb56(0x214)](),this[_0x3bcb56(0x2a9)][_0x3bcb56(0x30f)](_0xc731ce=>_0xc731ce[_0x3bcb56(0x469)]()),this[_0x3bcb56(0x2a9)][_0x3bcb56(0x214)](),this['_sessionChannels']['clear'](),this[_0x3bcb56(0x467)][_0x3bcb56(0x3ab)]();}async[_0x85662d(0x232)](_0x23df54,_0x55e65d){const _0x115e0c=_0x85662d;if(this[_0x115e0c(0x2a9)][_0x115e0c(0x4ca)](_0x23df54))return this['_sessions'][_0x115e0c(0x39b)](_0x23df54);let _0x2a17ee=this['_pendingSessions'][_0x115e0c(0x39b)](_0x23df54);if(_0x2a17ee)return _0x2a17ee;let _0x563551=this[_0x115e0c(0x3d7)](_0x23df54,_0x55e65d);this[_0x115e0c(0x355)]['set'](_0x23df54,_0x563551);try{return await _0x563551;}finally{this[_0x115e0c(0x355)]['delete'](_0x23df54);}}async['_createSession'](_0x453533,_0x2886b7){const _0x10cc0c=_0x85662d;let _0x441c06=await this[_0x10cc0c(0x220)](_0x453533,_0x2886b7),_0x5c1d55=this[_0x10cc0c(0x2bd)](_0x441c06['target'][_0x10cc0c(0x47c)]);this[_0x10cc0c(0x458)](_0x5c1d55);let _0x4690ab=this[_0x10cc0c(0x3f3)]['createInstance'](x,_0x441c06,_0x5c1d55[_0x10cc0c(0x490)][_0x10cc0c(0x2dd)]());return this[_0x10cc0c(0x2a9)][_0x10cc0c(0x43f)](_0x453533,_0x4690ab),this[_0x10cc0c(0x459)]['set'](_0x453533,_0x5c1d55[_0x10cc0c(0x41d)]),_0x4690ab;}[_0x85662d(0x1da)](_0x370b23){const _0x469d6e=_0x85662d;let _0x2ccc5f=this[_0x469d6e(0x2a9)]['get'](_0x370b23),_0x2b763c=this[_0x469d6e(0x459)][_0x469d6e(0x39b)](_0x370b23);if(_0x2ccc5f&&(this[_0x469d6e(0x2a9)][_0x469d6e(0x36e)](_0x370b23),this[_0x469d6e(0x459)][_0x469d6e(0x36e)](_0x370b23),_0x2ccc5f[_0x469d6e(0x418)]()),_0x2b763c&&!this[_0x469d6e(0x2c7)](_0x2b763c)){var _0x32cca5;let _0x4fd0c9=this['_socketChannels'][_0x469d6e(0x39b)](_0x2b763c);_0x4fd0c9==null||(_0x32cca5=_0x4fd0c9['socket$'][_0x469d6e(0x40c)]())==null||_0x32cca5[_0x469d6e(0x418)]();}}[_0x85662d(0x244)](){const _0x46bf77=_0x85662d;(this[_0x46bf77(0x3cb)]['size']?[...this['_socketChannels'][_0x46bf77(0x28c)]()]:[this[_0x46bf77(0x2bd)](void 0x0)])['forEach'](_0x598a0e=>{const _0x19d902=_0x46bf77;_0x598a0e[_0x19d902(0x2fd)]=0x0,this[_0x19d902(0x222)](_0x598a0e),this[_0x19d902(0x4d9)](_0x598a0e);});}[_0x85662d(0x222)](_0x2333a2){const _0x2a6678=_0x85662d;_0x2333a2[_0x2a6678(0x413)]!=null&&(clearTimeout(_0x2333a2['retryConnectingTimer']),_0x2333a2['retryConnectingTimer']=null);}async[_0x85662d(0x201)](_0x1907cd){const _0x207184=_0x85662d;var _0x446faf,_0x3a4879;let _0x164bb4=this[_0x207184(0x377)]['getConfig'](m),_0x50c7b4=(_0x446faf=(_0x3a4879=_0x1907cd[_0x207184(0x47c)])==null?_0x164bb4==null?void 0x0:_0x164bb4[_0x207184(0x286)]:_0x3a4879)==null?te:_0x446faf,_0x5f2eff=await this[_0x207184(0x364)][_0x207184(0x387)](_0x50c7b4);return _0x1907cd['candidateSocket']=_0x5f2eff,_0x5f2eff;}async[_0x85662d(0x458)](_0x1f1059){const _0x38fb05=_0x85662d;try{var _0x4464b3,_0x2a014c;let _0x1b033a=(_0x4464b3=(_0x2a014c=_0x1f1059[_0x38fb05(0x490)][_0x38fb05(0x40c)]())==null?_0x1f1059['candidateSocket']:_0x2a014c)==null?await this[_0x38fb05(0x201)](_0x1f1059):_0x4464b3;if(_0x1b033a){var _0x360d7f;let _0xeabb99=_0x1b033a[_0x38fb05(0x48b)];_0x1b033a[_0x38fb05(0x48b)]=_0x1d9697=>(_0x1d9697[_0x38fb05(0x348)]!==a['CombCmd'][_0x38fb05(0x271)]&&this['_rescheduleHeartbeat'](_0x1f1059),_0xeabb99[_0x38fb05(0x494)](_0x1b033a,[_0x1d9697])),(_0x360d7f=_0x1f1059['socketMessageSubscription'])==null||_0x360d7f['unsubscribe'](),_0x1f1059[_0x38fb05(0x29c)]=null,_0x1f1059[_0x38fb05(0x29c)]=_0x1b033a[_0x38fb05(0x21b)][_0x38fb05(0x46c)](_0x4b38af=>this[_0x38fb05(0x4f6)](_0x1f1059,_0x1b033a,_0x4b38af)),_0x1b033a[_0x38fb05(0x34e)][_0x38fb05(0x4bd)]((0x0,s[_0x38fb05(0x3e5)])(0x1))['subscribe'](_0x2e51fa=>this[_0x38fb05(0x29f)][_0x38fb05(0x3cc)](_0x38fb05(0x1ea),_0x2e51fa)),_0x1b033a[_0x38fb05(0x223)][_0x38fb05(0x4bd)]((0x0,s[_0x38fb05(0x3e5)])(0x1))[_0x38fb05(0x46c)](()=>{const _0x399268=_0x38fb05;this[_0x399268(0x4e9)](_0x1f1059,_0x1b033a);}),_0x1b033a[_0x38fb05(0x4d6)][_0x38fb05(0x4bd)]((0x0,s[_0x38fb05(0x3e5)])(0x1))[_0x38fb05(0x46c)](_0x1bcf6=>{const _0xd34ffc=_0x38fb05;this[_0xd34ffc(0x29f)]['debug'](_0xd34ffc(0x495),_0xd34ffc(0x3bd),_0x1bcf6),this[_0xd34ffc(0x1fd)](_0x1f1059);});}}catch(_0x4be0e5){this[_0x38fb05(0x29f)][_0x38fb05(0x3cc)](_0x4be0e5),this[_0x38fb05(0x1fd)](_0x1f1059);}}[_0x85662d(0x4e9)](_0xaad9a1,_0x1ed70e){const _0x2de4d3=_0x85662d;this[_0x2de4d3(0x29f)][_0x2de4d3(0x3a9)](_0x2de4d3(0x495),_0x2de4d3(0x288)),_0x1ed70e[_0x2de4d3(0x48b)]({'cmd':a[_0x2de4d3(0x44a)][_0x2de4d3(0x47f)]}),this[_0x2de4d3(0x29a)](_0xaad9a1);}[_0x85662d(0x20f)](_0x101697){const _0x251b47=_0x85662d;_0x101697[_0x251b47(0x427)]=!0x1,_0x101697[_0x251b47(0x421)]=null,this[_0x251b47(0x467)]['next'](0x2),_0x101697[_0x251b47(0x490)][_0x251b47(0x49a)](null),this[_0x251b47(0x203)](_0x101697),this[_0x251b47(0x4a2)](_0x101697);}[_0x85662d(0x1fd)](_0x18415f){const _0x47c791=_0x85662d;var _0x5c723c;this[_0x47c791(0x20f)](_0x18415f),this[_0x47c791(0x2c7)](_0x18415f[_0x47c791(0x41d)])&&(_0x18415f[_0x47c791(0x2fd)]<((_0x5c723c=this[_0x47c791(0x377)][_0x47c791(0x262)]('RETRY_CONNECTING_MAX_COUNT'))==null?0x3:_0x5c723c)?(this[_0x47c791(0x46e)][_0x47c791(0x3ae)]({'id':_0x47c791(0x3e3)}),this[_0x47c791(0x4d9)](_0x18415f)):this[_0x47c791(0x46e)][_0x47c791(0x3ae)]({'id':_0x47c791(0x22f)}));}[_0x85662d(0x4d9)](_0x38bec7){const _0x537dab=_0x85662d;var _0x5a0216;let _0x15655a=_0x38bec7[_0x537dab(0x2fd)],_0x3621af=this[_0x537dab(0x377)]['getConfig'](m),_0x376094=_0x15655a===0x0?0x0:((_0x5a0216=_0x3621af==null?void 0x0:_0x3621af[_0x537dab(0x390)])==null?0x4e20:_0x5a0216)*0x2**_0x15655a;_0x38bec7[_0x537dab(0x413)]=setTimeout(()=>{const _0x4ad548=_0x537dab;clearTimeout(_0x38bec7['retryConnectingTimer']),_0x38bec7[_0x4ad548(0x413)]=null,this['_tryEnsureSocket'](_0x38bec7);},_0x376094),_0x38bec7[_0x537dab(0x2fd)]+=0x1;}async['_resolveSessionIdentity'](_0x5d19db,_0x58faea){const _0x35dcf4=_0x85662d;return Qe(_0x5d19db,_0x58faea,await this[_0x35dcf4(0x25b)][_0x35dcf4(0x3a7)]({'unitId':_0x5d19db,'unitType':_0x58faea}));}[_0x85662d(0x4f6)](_0x49de8e,_0x1d1058,_0x878bf7){const _0x504d9c=_0x85662d;let {cmd:_0x14e1d9}=_0x878bf7;_0x14e1d9===a[_0x504d9c(0x44a)]['HELLO']&&!_0x49de8e[_0x504d9c(0x427)]&&(_0x1d1058[_0x504d9c(0x4e4)]=_0x878bf7['data'][_0x504d9c(0x4e4)],_0x49de8e[_0x504d9c(0x490)][_0x504d9c(0x49a)](_0x1d1058),this[_0x504d9c(0x467)][_0x504d9c(0x49a)](0x3),_0x49de8e['socketReady']=!0x0,_0x49de8e['candidateSocket']=null),_0x14e1d9===a[_0x504d9c(0x44a)][_0x504d9c(0x2b9)]&&this['_clearTimeoutTimer'](_0x49de8e),this['_rescheduleHeartbeat'](_0x49de8e);}[_0x85662d(0x2c7)](_0x14cb3d){const _0x1629cf=_0x85662d;return[...this[_0x1629cf(0x459)]['values']()][_0x1629cf(0x450)](_0x477064=>_0x477064===_0x14cb3d);}[_0x85662d(0x2bd)](_0x1a1443){const _0x266fdd=_0x85662d;let _0xcc9fa7=_0x1a1443==null?'':_0x1a1443,_0x351c32=this[_0x266fdd(0x3cb)][_0x266fdd(0x39b)](_0xcc9fa7);if(_0x351c32)return _0x351c32;let _0x1accff={'endpointKey':_0xcc9fa7,'endpoint':_0x1a1443,'socket$':new i[(_0x266fdd(0x475))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x266fdd(0x43f)](_0xcc9fa7,_0x1accff),_0x1accff;}[_0x85662d(0x29a)](_0x509299){const _0xb9d244=_0x85662d;var _0x4cf77f;this[_0xb9d244(0x4a2)](_0x509299),_0x509299[_0xb9d244(0x423)]=setTimeout(()=>this['_sendHeartbeat'](_0x509299),(_0x4cf77f=this[_0xb9d244(0x377)][_0xb9d244(0x262)](_0xb9d244(0x323)))==null?0x7530:_0x4cf77f);}[_0x85662d(0x484)](_0x4a6f7a){const _0x149830=_0x85662d;_0x4a6f7a[_0x149830(0x490)]['getValue']()[_0x149830(0x48b)]({'cmd':a[_0x149830(0x44a)][_0x149830(0x2b9)]}),this[_0x149830(0x431)](_0x4a6f7a);}[_0x85662d(0x431)](_0x2f7fb5){const _0x1778ad=_0x85662d;var _0x3006e3;_0x2f7fb5['timeoutTimer']=setTimeout(()=>this[_0x1778ad(0x1fd)](_0x2f7fb5),(_0x3006e3=this[_0x1778ad(0x377)]['getConfig'](_0x1778ad(0x258)))==null?ne:_0x3006e3);}[_0x85662d(0x4a2)](_0x50f9fc){const _0x146377=_0x85662d;_0x50f9fc['sendHeartbeatTimer']!=null&&(clearTimeout(_0x50f9fc[_0x146377(0x423)]),_0x50f9fc[_0x146377(0x423)]=null);}[_0x85662d(0x203)](_0xa8493f){const _0x376aaa=_0x85662d;_0xa8493f['timeoutTimer']!=null&&(clearTimeout(_0xa8493f['timeoutTimer']),_0xa8493f[_0x376aaa(0x2a5)]=null);}};V=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x1,t[_0x85662d(0x3a4)]),v(0x2,t[_0x85662d(0x29d)]),v(0x3,qe),v(0x4,(0x0,t[_0x85662d(0x340)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x85662d(0x32e)])(We))],V);let H=class extends t[_0x85662d(0x42c)]{constructor(_0x161da1,_0x7bcefd,_0x3c9068,_0xad26ae){const _0x537b38=_0x85662d;var _0x1e843f;super(),this[_0x537b38(0x3f3)]=_0x161da1,this[_0x537b38(0x2f0)]=_0x7bcefd,this[_0x537b38(0x377)]=_0x3c9068,this[_0x537b38(0x22a)]=_0xad26ae,g(this,_0x537b38(0x33d),new Map()),g(this,_0x537b38(0x31d),new i['Subject']()),g(this,_0x537b38(0x4f5),this[_0x537b38(0x31d)][_0x537b38(0x2dd)]()),((_0x1e843f=this[_0x537b38(0x377)][_0x537b38(0x262)]('collaboration-client.config'))==null?void 0x0:_0x1e843f[_0x537b38(0x2f2)])!==!0x1&&this[_0x537b38(0x38c)]();}[_0x85662d(0x469)](){const _0x361664=_0x85662d;super[_0x361664(0x469)](),this['_entities']['forEach'](_0x1315fa=>_0x1315fa[_0x361664(0x469)]()),this[_0x361664(0x33d)][_0x361664(0x214)]();}[_0x85662d(0x276)](_0x12665b){const _0x464a8b=_0x85662d;var _0x32e8b8;return(_0x32e8b8=this[_0x464a8b(0x33d)]['get'](_0x12665b))==null?null:_0x32e8b8;}[_0x85662d(0x35e)](_0x807d59){const _0x55a555=_0x85662d;let _0x36be4c=this[_0x55a555(0x276)](_0x807d59);return _0x36be4c?(0x0,i['of'])(_0x36be4c):this[_0x55a555(0x31d)][_0x55a555(0x4bd)]((0x0,s[_0x55a555(0x2ca)])(_0x2b5e54=>_0x2b5e54[_0x55a555(0x357)]===_0x807d59));}[_0x85662d(0x4a6)](_0x3ffc8f){const _0x5cfd3c=_0x85662d;return(0x0,i[_0x5cfd3c(0x3fd)])(this[_0x5cfd3c(0x35e)](_0x3ffc8f)['pipe']((0x0,s[_0x5cfd3c(0x3fc)])(()=>void 0x0)));}[_0x85662d(0x38c)](){const _0x4cc06a=_0x85662d;this[_0x4cc06a(0x22a)][_0x4cc06a(0x1e6)](t[_0x4cc06a(0x378)]['UNIVER_SHEET'])[_0x4cc06a(0x4bd)]((0x0,i['takeUntil'])(this[_0x4cc06a(0x3df)]),(0x0,s['delay'])(0x10))[_0x4cc06a(0x46c)](async _0x5f2f4b=>{const _0x4ecb30=_0x4cc06a;let _0x54eb96=_0x5f2f4b[_0x4ecb30(0x280)][_0x4ecb30(0x3b9)](),_0x3962db=await this[_0x4ecb30(0x2d2)](_0x54eb96,t[_0x4ecb30(0x378)]['UNIVER_SHEET']);this[_0x4ecb30(0x33d)][_0x4ecb30(0x43f)](_0x54eb96,_0x3962db);}),this[_0x4cc06a(0x22a)][_0x4cc06a(0x1e6)](t[_0x4cc06a(0x378)][_0x4cc06a(0x39f)])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x4cc06a(0x4bd)]((0x0,s[_0x4cc06a(0x2ca)])(_0x12287f=>!_0x12287f[_0x4cc06a(0x280)][_0x4cc06a(0x3b9)]()[_0x4cc06a(0x3ba)]('__')))[_0x4cc06a(0x46c)](async _0x219e73=>{const _0x4da646=_0x4cc06a;let _0x52e79f=_0x219e73[_0x4da646(0x280)][_0x4da646(0x3b9)](),_0xcd9fb7=await this[_0x4da646(0x2d2)](_0x52e79f,t[_0x4da646(0x378)][_0x4da646(0x39f)]);this[_0x4da646(0x33d)]['set'](_0x52e79f,_0xcd9fb7);}),this['_univerInstanceService'][_0x4cc06a(0x1e6)](t[_0x4cc06a(0x378)][_0x4cc06a(0x2cf)])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this[_0x4cc06a(0x3df)]),(0x0,s['delay'])(0x10))['subscribe'](async _0x114a9d=>{const _0x19bbd=_0x4cc06a;let _0x304dbd=_0x114a9d[_0x19bbd(0x280)][_0x19bbd(0x3b9)](),_0x4b2abc=await this['_startCollaboration'](_0x304dbd,t['UniverInstanceType'][_0x19bbd(0x2cf)]);this[_0x19bbd(0x33d)][_0x19bbd(0x43f)](_0x304dbd,_0x4b2abc);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](t[_0x4cc06a(0x378)]['UNIVER_BOARD'])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this['dispose$']),(0x0,s[_0x4cc06a(0x2d3)])(0x10))[_0x4cc06a(0x46c)](async _0x37cf3c=>{const _0x1b984d=_0x4cc06a;let _0xf72355=_0x37cf3c[_0x1b984d(0x280)][_0x1b984d(0x3b9)](),_0x56617f=await this['_startCollaboration'](_0xf72355,t[_0x1b984d(0x378)][_0x1b984d(0x4b5)]);this[_0x1b984d(0x33d)][_0x1b984d(0x43f)](_0xf72355,_0x56617f);}),this[_0x4cc06a(0x22a)][_0x4cc06a(0x1e6)](t['UniverInstanceType'][_0x4cc06a(0x440)])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this[_0x4cc06a(0x3df)]),(0x0,s[_0x4cc06a(0x2d3)])(0x10))[_0x4cc06a(0x46c)](async _0xbd7d47=>{const _0x534ef5=_0x4cc06a;let _0x5c0bb3=_0xbd7d47[_0x534ef5(0x280)][_0x534ef5(0x3b9)](),_0x368eca=await this[_0x534ef5(0x2d2)](_0x5c0bb3,t[_0x534ef5(0x378)][_0x534ef5(0x440)]);this[_0x534ef5(0x33d)][_0x534ef5(0x43f)](_0x5c0bb3,_0x368eca);}),(0x0,i[_0x4cc06a(0x22e)])(this['_univerInstanceService'][_0x4cc06a(0x4b8)](t['UniverInstanceType'][_0x4cc06a(0x4d3)]),this[_0x4cc06a(0x22a)]['getTypeOfUnitDisposed$'](t[_0x4cc06a(0x378)]['UNIVER_DOC']),this[_0x4cc06a(0x22a)][_0x4cc06a(0x4b8)](t[_0x4cc06a(0x378)]['UNIVER_SLIDE']),this['_univerInstanceService'][_0x4cc06a(0x4b8)](t['UniverInstanceType']['UNIVER_BOARD']),this['_univerInstanceService'][_0x4cc06a(0x4b8)](t['UniverInstanceType'][_0x4cc06a(0x440)]))['pipe']((0x0,i['takeUntil'])(this[_0x4cc06a(0x3df)]))['subscribe'](_0x3f23aa=>{const _0x5eafbd=_0x4cc06a;let _0x2b4191=_0x3f23aa[_0x5eafbd(0x3b9)](),_0x40c863=this[_0x5eafbd(0x33d)][_0x5eafbd(0x39b)](_0x2b4191);_0x40c863&&(_0x40c863['dispose'](),this[_0x5eafbd(0x33d)][_0x5eafbd(0x36e)](_0x2b4191));});}async[_0x85662d(0x2d2)](_0x354b4a,_0x59f2e3){const _0x1f119f=_0x85662d;let _0x597c0f=await this['_collabSessionService'][_0x1f119f(0x232)](_0x354b4a),_0x159db4=this[_0x1f119f(0x3f3)][_0x1f119f(0x2e8)](this[_0x1f119f(0x39d)](_0x59f2e3),_0x354b4a,_0x59f2e3,_0x597c0f);return await _0x159db4['init'](),this[_0x1f119f(0x31d)]['next'](_0x159db4),_0x159db4;}[_0x85662d(0x39d)](_0x5e58a8){const _0x1d4763=_0x85662d;switch(_0x5e58a8){case t[_0x1d4763(0x378)][_0x1d4763(0x39f)]:return I;case t[_0x1d4763(0x378)][_0x1d4763(0x4d3)]:return R;case t[_0x1d4763(0x378)][_0x1d4763(0x2cf)]:return z;case t[_0x1d4763(0x378)][_0x1d4763(0x4b5)]:return B;case t[_0x1d4763(0x378)][_0x1d4763(0x440)]:return L;default:throw Error(_0x1d4763(0x49e)+_0x5e58a8);}}};H=y([v(0x0,(0x0,t['Inject'])(t[_0x85662d(0x330)])),v(0x1,(0x0,t[_0x85662d(0x340)])(V)),v(0x2,t[_0x85662d(0x29d)]),v(0x3,t['IUniverInstanceService'])],H);var $e=_0x85662d(0x268),et='1.0.0-alpha.4';let tt=class extends t[_0x85662d(0x304)]{constructor(_0x385521,_0x1566b1){super(),this['_univerInstanceService']=_0x385521,this['_configService']=_0x1566b1,this['_init']();}['_init'](){const _0x462d28=_0x85662d;this[_0x462d28(0x221)](this['_univerInstanceService'][_0x462d28(0x2db)][_0x462d28(0x46c)](()=>{const _0x43d430=_0x462d28;var _0x419251;let _0x163300=this[_0x43d430(0x22a)][_0x43d430(0x26b)](),_0x45656b=(_0x419251=this[_0x43d430(0x377)][_0x43d430(0x262)](_0x43d430(0x3d0)))==null?_0x43d430(0x4dc):_0x419251;_0x163300 instanceof t['Workbook']&&(_0x45656b=_0x163300[_0x43d430(0x239)]),document['title']=_0x45656b;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t['IConfigService'])],tt);let nt=function(_0x3e29ec){const _0x54b78d=_0x85662d;return _0x3e29ec[_0x54b78d(0x4ce)]=_0x54b78d(0x4ce),_0x3e29ec[_0x54b78d(0x3b1)]=_0x54b78d(0x3b1),_0x3e29ec['BASE64']=_0x54b78d(0x290),_0x3e29ec;}({});const rt=(0x0,t['createIdentifier'])('base-ui.attachment-io.service');let U=class{constructor(_0x27a9e9,_0x535eef,_0x5e00a8){const _0x2bd9e8=_0x85662d;this[_0x2bd9e8(0x28e)]=_0x27a9e9,this[_0x2bd9e8(0x377)]=_0x535eef,this[_0x2bd9e8(0x22a)]=_0x5e00a8;}[_0x85662d(0x3f1)](){const _0x542a7b=_0x85662d;var _0x85c2e;return(_0x85c2e=this[_0x542a7b(0x428)]()[_0x542a7b(0x3e2)])==null?{}:_0x85c2e;}async[_0x85662d(0x4c1)](_0x4c3087){const _0x2ff425=_0x85662d;let _0x5bc593=this[_0x2ff425(0x3f1)]();if(it(_0x4c3087,_0x5bc593),_0x5bc593[_0x2ff425(0x2ab)])return _0x5bc593[_0x2ff425(0x2ab)](_0x4c3087);let _0x3772c8=await this[_0x2ff425(0x36c)](_0x4c3087);return{'id':_0x3772c8,'name':_0x4c3087['name'],'mimeType':_0x4c3087[_0x2ff425(0x212)],'size':_0x4c3087[_0x2ff425(0x362)],'sourceType':_0x2ff425(0x3b1),'source':_0x3772c8};}async[_0x85662d(0x36c)](_0x3b9962){const _0x3f3aa2=_0x85662d;let _0x3e080e=this[_0x3f3aa2(0x22a)][_0x3f3aa2(0x26b)](),_0x2221ad=_0x3e080e==null?void 0x0:_0x3e080e[_0x3f3aa2(0x3b9)]();if(!_0x2221ad)throw Error(_0x3f3aa2(0x4f3));let _0x3a525d=new FormData();_0x3a525d[_0x3f3aa2(0x2e0)]('file',_0x3b9962);let _0x1ef508=this[_0x3f3aa2(0x231)]()+_0x3f3aa2(0x452)+_0x3b9962[_0x3f3aa2(0x362)][_0x3f3aa2(0x2da)]()+_0x3f3aa2(0x324)+a[_0x3f3aa2(0x27d)]['UnitEmbedded']+'&assign='+encodeURIComponent(_0x2221ad),_0x10d654=(await this['_httpService']['post'](_0x1ef508,{'body':_0x3a525d}))['body'][_0x3f3aa2(0x308)];if(typeof _0x10d654!=_0x3f3aa2(0x1dc)||!_0x10d654)throw Error(_0x3f3aa2(0x22d));return _0x10d654;}[_0x85662d(0x231)](){var _0x5622d5;return(_0x5622d5=this['_getConfig']()['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x5622d5;}[_0x85662d(0x428)](){const _0x145549=_0x85662d;var _0x43b5d1;return(_0x43b5d1=this[_0x145549(0x377)]['getConfig']('collaboration-client.config'))==null?{}:_0x43b5d1;}};U=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l['HTTPService'])),v(0x1,(0x0,t[_0x85662d(0x340)])(t['IConfigService'])),v(0x2,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x33e)]))],U);function it(_0x2875ab,_0x353ae9){const _0x1afe23=_0x85662d;var _0x320c44;if(_0x353ae9[_0x1afe23(0x2c4)]!=null&&_0x2875ab[_0x1afe23(0x362)]>_0x353ae9[_0x1afe23(0x2c4)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x320c44=_0x353ae9[_0x1afe23(0x43c)])!=null&&_0x320c44[_0x1afe23(0x45a)]&&!_0x353ae9[_0x1afe23(0x43c)][_0x1afe23(0x450)](_0x471d06=>_0x2875ab[_0x1afe23(0x212)]===_0x471d06||_0x2875ab[_0x1afe23(0x239)]['endsWith'](_0x471d06)||_0x471d06['endsWith']('/*')&&_0x2875ab['type'][_0x1afe23(0x3ba)](_0x471d06[_0x1afe23(0x409)](0x0,-0x1))))throw Error(_0x1afe23(0x3ac));}let W=class{constructor(_0x3b3ab,_0x39d027,_0x378b6d){const _0x5923be=_0x85662d;this['_configService']=_0x3b3ab,this[_0x5923be(0x28e)]=_0x39d027,this[_0x5923be(0x284)]=_0x378b6d,this[_0x5923be(0x30d)]();}[_0x85662d(0x30d)](){const _0x5b9db6=_0x85662d;this[_0x5b9db6(0x28e)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x343d22,_0x4cc6ee)=>_0x4cc6ee(_0x343d22)[_0x5b9db6(0x4bd)]((0x0,i[_0x5b9db6(0x4e7)])(async _0x3ec9ba=>{const _0x4cc76e=_0x5b9db6;let _0x101d10=_0x3ec9ba;if(_0x101d10['status']===0x191){if(typeof window>'u')throw Error(_0x4cc76e(0x4c7));if(window[_0x4cc76e(0x457)](this['localeService']['t'](_0x4cc76e(0x48c)))){let _0x3129ef=window['encodeURIComponent'](window['location'][_0x4cc76e(0x497)]);window['location'][_0x4cc76e(0x497)]=this[_0x4cc76e(0x454)]()+_0x4cc76e(0x386)+_0x3129ef;}}return _0x101d10;}))});}[_0x85662d(0x454)](){const _0x14acae=_0x85662d;var _0x32ed67;let _0xd60b38=this[_0x14acae(0x377)][_0x14acae(0x262)](m);return(_0x32ed67=_0xd60b38==null?void 0x0:_0xd60b38[_0x14acae(0x229)])==null?'/universer-api/oidc/authpage':_0x32ed67;}};W=y([v(0x0,t[_0x85662d(0x29d)]),v(0x1,(0x0,t['Inject'])(l[_0x85662d(0x315)])),v(0x2,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)]))],W);let G=class extends t[_0x85662d(0x304)]{constructor(_0x4b4b6b,_0x267724){const _0x3e37f2=_0x85662d;super(),this[_0x3e37f2(0x3aa)]=_0x4b4b6b,this['_configService']=_0x267724,g(this,_0x3e37f2(0x44e),!0x1),this[_0x3e37f2(0x294)]();}[_0x85662d(0x294)](){const _0x2ce24f=_0x85662d;let _0x412e74=this;this[_0x2ce24f(0x221)](this[_0x2ce24f(0x3aa)][_0x2ce24f(0x4a9)]({'priority':0x3e7,'interceptor':(0x0,l[_0x2ce24f(0x1fc)])({'isMatch'(_0x4ba2ae){const _0x57a3e4=_0x2ce24f;var _0xc097b6;if(_0x4ba2ae[_0x57a3e4(0x40f)]==='POST'&&(_0xc097b6=_0x4ba2ae[_0x57a3e4(0x449)])!=null&&_0xc097b6[_0x57a3e4(0x2a6)]){let {objectID:_0x40731a,objectType:_0x1bde77}=_0x4ba2ae['requestParams'][_0x57a3e4(0x2a6)]||{};if(!_0x40731a||_0x1bde77===void 0x0)return!0x1;let _0x133434=_0x412e74[_0x57a3e4(0x306)]()+'/'+_0x1bde77+_0x57a3e4(0x293)+_0x40731a+_0x57a3e4(0x3c9);if(_0x4ba2ae[_0x57a3e4(0x26a)]===_0x133434)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2a6fbb){const _0x44e6c0=_0x2ce24f;var _0x2d7671;return(_0x2d7671=_0x2a6fbb[_0x44e6c0(0x449)])==null?void 0x0:_0x2d7671['body'];},'mergeParamsToRequest'(_0x39eb1a,_0x488565){const _0x3da612=_0x2ce24f;let _0x448f68=_0x412e74[_0x3da612(0x306)]()+_0x3da612(0x2ad),_0x6c91be=_0x39eb1a[_0x3da612(0x399)]((_0x7190ee,_0x330e7e)=>{const _0x6fbfc8=_0x3da612;let {unitID:_0x3d962b,objectID:_0x4dfc6b,objectType:_0x56446f,actions:_0xcd3c3d}=_0x330e7e;return _0x7190ee[_0x3d962b]||(_0x7190ee[_0x3d962b]={}),_0x7190ee[_0x3d962b][_0x4dfc6b]||(_0x7190ee[_0x3d962b][_0x4dfc6b]={'objectID':_0x4dfc6b,'objectType':_0x56446f,'actions':[]}),_0x7190ee[_0x3d962b][_0x4dfc6b][_0x6fbfc8(0x470)][_0x6fbfc8(0x4e6)](..._0xcd3c3d),_0x7190ee;},{}),_0xa8f753=[];for(let _0x2ee7e1 in _0x6c91be)for(let _0x1084a3 in _0x6c91be[_0x2ee7e1]){let {actions:_0x12b2dd,objectType:_0x58278e}=_0x6c91be[_0x2ee7e1][_0x1084a3],_0x200239=[...new Set(_0x12b2dd)];_0xa8f753['push']({'unitID':_0x2ee7e1,'objectID':_0x1084a3,'objectType':_0x58278e,'actions':_0x200239});}return new l['HTTPRequest'](_0x3da612(0x3db),_0x448f68,{'headers':_0x488565['headers'],'withCredentials':_0x488565[_0x3da612(0x396)],'responseType':_0x488565[_0x3da612(0x274)],'body':{'requests':_0xa8f753}});}},{'distributeResult'(_0xbed74b,_0x4b743c){const _0x20bf68=_0x2ce24f;let {objectActions:_0x45a286}=_0xbed74b;return _0x4b743c[_0x20bf68(0x3fc)](_0x2e9a7b=>{const _0x38e508=_0x20bf68;let {unitID:_0x8e9a7,objectID:_0x58559d,actions:_0x21af16}=_0x2e9a7b,_0x5c8326=_0x45a286[_0x38e508(0x4d5)](_0x212ba2=>_0x212ba2['unitID']===_0x8e9a7&&_0x212ba2[_0x38e508(0x296)]===_0x58559d);return{'config':_0x2e9a7b,'result':{'actions':_0x21af16[_0x38e508(0x3fc)](_0x47e84e=>_0x5c8326==null?void 0x0:_0x5c8326['actions'][_0x38e508(0x4d5)](_0x54dd64=>_0x54dd64[_0x38e508(0x1fa)]===_0x47e84e))[_0x38e508(0x2ca)](_0x29bb98=>!!_0x29bb98),'error':_0xbed74b[_0x38e508(0x3cc)]}};});}})}));}[_0x85662d(0x306)](){const _0x3ab698=_0x85662d;var _0x559a4d;let _0x50ad83=this[_0x3ab698(0x377)][_0x3ab698(0x262)](m);return(_0x559a4d=_0x50ad83==null?void 0x0:_0x50ad83[_0x3ab698(0x2f4)])==null?'/universer-api/authz':_0x559a4d;}async[_0x85662d(0x4bc)](_0x261fb0){const _0x1dcbe9=_0x85662d;let _0xd7458d=this['_getAPIPrefixPath']()+'/'+_0x261fb0[_0x1dcbe9(0x1ff)]+'/object';return(await this[_0x1dcbe9(0x3aa)][_0x1dcbe9(0x3d4)](_0xd7458d,{'body':_0x261fb0}))[_0x1dcbe9(0x2a6)][_0x1dcbe9(0x296)]||'';}async[_0x85662d(0x40e)](_0x55a3df){const _0x59ee93=_0x85662d;let _0x310990=this[_0x59ee93(0x306)]()+_0x59ee93(0x32c);return(await this[_0x59ee93(0x3aa)][_0x59ee93(0x3d4)](_0x310990,{'body':_0x55a3df}))[_0x59ee93(0x2a6)][_0x59ee93(0x28d)];}async[_0x85662d(0x1d7)](_0x3a081b){const _0x5286f6=_0x85662d;var _0x4c46ea;let _0x3108e2=this[_0x5286f6(0x306)]()+'/'+_0x3a081b[_0x5286f6(0x1ff)]+'/object/'+_0x3a081b[_0x5286f6(0x296)],_0xd2eda0=await this[_0x5286f6(0x3aa)][_0x5286f6(0x2b5)](_0x3108e2,{'body':_0x3a081b});if((_0xd2eda0==null||(_0x4c46ea=_0xd2eda0['body'])==null||(_0x4c46ea=_0x4c46ea[_0x5286f6(0x3cc)])==null?void 0x0:_0x4c46ea[_0x5286f6(0x1d4)])!==0x1)throw Error(_0x5286f6(0x338));}async[_0x85662d(0x29b)](_0x5e3667){const _0x5e4ee8=_0x85662d;let _0x266e2e=this[_0x5e4ee8(0x306)]()+'/'+_0x5e3667[_0x5e4ee8(0x1ff)]+_0x5e4ee8(0x293)+_0x5e3667[_0x5e4ee8(0x296)]+_0x5e4ee8(0x3c9);return(await this[_0x5e4ee8(0x3aa)][_0x5e4ee8(0x3d4)](_0x266e2e,{'body':_0x5e3667}))[_0x5e4ee8(0x2a6)][_0x5e4ee8(0x470)];}async[_0x85662d(0x4c8)](_0xc87ac8){const _0x2841e9=_0x85662d;let _0x41b1e8=this[_0x2841e9(0x306)]()+_0x2841e9(0x2ad);return(await this[_0x2841e9(0x3aa)]['post'](_0x41b1e8,{'body':{'requests':_0xc87ac8}}))[_0x2841e9(0x2a6)][_0x2841e9(0x2f1)];}async[_0x85662d(0x1e9)](_0x29ac78){const _0x45f7f4=_0x85662d;let _0x11b125=this[_0x45f7f4(0x306)]()+'/'+_0x29ac78[_0x45f7f4(0x1ff)]+_0x45f7f4(0x37c),_0x1a6b23=await this[_0x45f7f4(0x3aa)][_0x45f7f4(0x3d4)](_0x11b125,{'body':_0x29ac78});return{'roles':_0x1a6b23[_0x45f7f4(0x2a6)][_0x45f7f4(0x482)],'actions':_0x1a6b23[_0x45f7f4(0x2a6)]['actions']};}async[_0x85662d(0x218)](_0x1d900a){const _0x174d67=_0x85662d;let _0x3071a2=this[_0x174d67(0x306)]()+'/collaborator';await this['_HTTPService'][_0x174d67(0x36e)](_0x3071a2,{'params':{'collaboratorID':_0x1d900a['collaboratorID'],'objectID':_0x1d900a[_0x174d67(0x296)],'unitID':_0x1d900a[_0x174d67(0x357)]}});}async[_0x85662d(0x254)](_0x1a7e9a){const _0x38f54c=_0x85662d;let _0x56b74e=this[_0x38f54c(0x306)]()+_0x38f54c(0x4b4);await this['_HTTPService'][_0x38f54c(0x24e)](_0x56b74e,{'body':_0x1a7e9a});}async[_0x85662d(0x384)](_0xb7240e){const _0x5b20f6=_0x85662d;let _0x3633af=this[_0x5b20f6(0x306)]()+'/collaborator';await this['_HTTPService'][_0x5b20f6(0x3d4)](_0x3633af,{'body':_0xb7240e});}async[_0x85662d(0x209)](_0x494507){const _0x739d83=_0x85662d;var _0x5b00ce;let _0x3340ab=this['_getAPIPrefixPath']()+_0x739d83(0x4b4),_0x48ebd7=await this[_0x739d83(0x3aa)][_0x739d83(0x39b)](_0x3340ab,{'params':{'objectID':_0x494507['objectID'],'unitID':_0x494507['unitID']}});return this[_0x739d83(0x4a1)]((_0x5b00ce=_0x48ebd7[_0x739d83(0x2a6)][_0x739d83(0x245)])==null?!0x1:_0x5b00ce),_0x48ebd7['body'][_0x739d83(0x488)];}async[_0x85662d(0x21d)](_0x17666b){const _0x8a3bba=_0x85662d;let _0x8b538f=this[_0x8a3bba(0x306)]()+_0x8a3bba(0x4b4);await this[_0x8a3bba(0x3aa)]['put'](_0x8b538f,{'body':_0x17666b});}['setCfgEnableObjInherit'](_0x2d432c){const _0x4f41a2=_0x85662d;this[_0x4f41a2(0x44e)]=_0x2d432c;}[_0x85662d(0x279)](){const _0x58249c=_0x85662d;return this[_0x58249c(0x44e)];}};G=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l[_0x85662d(0x315)])),v(0x1,(0x0,t['Inject'])(t[_0x85662d(0x29d)]))],G);function at(_0x42061c){const _0x1804f5=_0x85662d;let _0x444529=atob(_0x42061c),_0x318dfd=new Uint8Array(_0x444529[_0x1804f5(0x45a)]);for(let _0x3016de=0x0;_0x3016de<_0x444529[_0x1804f5(0x45a)];_0x3016de++)_0x318dfd[_0x3016de]=_0x444529[_0x1804f5(0x1c8)](_0x3016de);return _0x318dfd;}function ot(_0x1da944){const _0x41d3f9=_0x85662d;let _0x275574='';for(let _0x3d62dc=0x0;_0x3d62dc<_0x1da944[_0x41d3f9(0x45a)];_0x3d62dc++)_0x275574+=String[_0x41d3f9(0x1dd)](_0x1da944[_0x3d62dc]);return btoa(_0x275574);}function st(_0x17ace0,_0x2d9146){const _0x1f5dcd=_0x85662d;let _0xec8330=at(_0x2d9146),_0x4efe8d=(0x0,f[_0x1f5dcd(0x1d3)])(0x10);return ot((0x0,f['concatBytes'])(_0x4efe8d,(0x0,d[_0x1f5dcd(0x2b6)])(_0xec8330,_0x4efe8d)['encrypt']((0x0,f['utf8ToBytes'])(_0x17ace0))));}function ct(){const _0x2ede1b=_0x85662d;let _0x24b808=(0x0,u[_0x2ede1b(0x235)])()[_0x2ede1b(0x2cc)];if(typeof window<'u'&&window[_0x2ede1b(0x3c3)]!==void 0x0&&_0x24b808){let _0x539360={'time':Math[_0x2ede1b(0x2eb)](Date[_0x2ede1b(0x1d2)]()/0x3e8),'domain':location[_0x2ede1b(0x3b5)]};return st(JSON['stringify'](_0x539360),_0x24b808);}}let K=class{constructor(_0x44c064){const _0x251cc6=_0x85662d;this[_0x251cc6(0x28e)]=_0x44c064,this[_0x251cc6(0x36b)]();}[_0x85662d(0x36b)](){const _0x2c5943=_0x85662d;this['_httpService'][_0x2c5943(0x4a9)]({'interceptor':(_0x215837,_0x1c71b7)=>{const _0xb165e8=_0x2c5943;let _0x4ffb97=ct();return _0x4ffb97&&_0x215837[_0xb165e8(0x2c8)][_0xb165e8(0x43f)](_0xb165e8(0x32b),_0x4ffb97),_0x1c71b7(_0x215837);}});}};K=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l['HTTPService']))],K);let q=class extends t[_0x85662d(0x42c)]{constructor(_0x580b7a,_0x52a4fc,_0x368210){const _0x51e38c=_0x85662d;super(),this[_0x51e38c(0x29f)]=_0x580b7a,this[_0x51e38c(0x325)]=_0x52a4fc,this['_localCacheService']=_0x368210,g(this,_0x51e38c(0x344),new i['BehaviorSubject'](null)),g(this,_0x51e38c(0x453),new i[(_0x51e38c(0x439))]()),g(this,_0x51e38c(0x2b3),this['_unitInfo$']['asObservable']()),g(this,_0x51e38c(0x2b7),this[_0x51e38c(0x453)][_0x51e38c(0x2dd)]());}['dispose'](){const _0x34c467=_0x85662d;super[_0x34c467(0x469)](),this[_0x34c467(0x453)][_0x34c467(0x3ab)](),this[_0x34c467(0x344)][_0x34c467(0x3ab)]();}async[_0x85662d(0x37d)](_0x1e12d7,_0x9f891b,_0x25af12,_0x321c22){const _0x2d2ec4=_0x85662d;this[_0x2d2ec4(0x344)][_0x2d2ec4(0x49a)]({'unitId':_0x1e12d7,'type':_0x9f891b,'subUnitId':_0x321c22});let _0x5bd4e6=null;switch(_0x9f891b){case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x4d3)]:_0x5bd4e6=await this[_0x2d2ec4(0x325)]['loadSheet'](_0x1e12d7,_0x25af12,void 0x0,{'initialSubUnitId':_0x321c22});break;case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x39f)]:_0x5bd4e6=await this['_snapshotService'][_0x2d2ec4(0x483)](_0x1e12d7,_0x25af12);break;case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x2cf)]:_0x5bd4e6=await this[_0x2d2ec4(0x325)][_0x2d2ec4(0x2aa)](_0x1e12d7,_0x25af12);break;case t['UniverInstanceType'][_0x2d2ec4(0x4b5)]:_0x5bd4e6=await this[_0x2d2ec4(0x325)][_0x2d2ec4(0x4aa)](_0x1e12d7,_0x25af12);break;case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x440)]:_0x5bd4e6=await this['_snapshotService'][_0x2d2ec4(0x405)](_0x1e12d7,_0x25af12);break;default:this[_0x2d2ec4(0x29f)][_0x2d2ec4(0x3cc)]('[DataLoaderService]',_0x2d2ec4(0x40d));break;}return _0x5bd4e6&&this[_0x2d2ec4(0x453)][_0x2d2ec4(0x49a)](_0x5bd4e6),_0x5bd4e6;}async['loadUnit'](_0x4d2002,_0x2b9d51,_0x2d5d23){const _0x517d5d=_0x85662d;var _0x41bbe8;this['_unitInfo$'][_0x517d5d(0x49a)]({'unitId':_0x4d2002,'type':_0x2b9d51,'subUnitId':_0x2d5d23});let _0x533efa=0x0,_0x390efc=await((_0x41bbe8=this[_0x517d5d(0x1f4)])==null?void 0x0:_0x41bbe8[_0x517d5d(0x264)](_0x4d2002));return _0x390efc&&(_0x390efc[_0x517d5d(0x4b9)]||_0x390efc[_0x517d5d(0x406)][_0x517d5d(0x45a)]!==0x0)&&(_0x533efa=_0x390efc['rev']),_0x533efa===0x0&&this[_0x517d5d(0x29f)][_0x517d5d(0x3a9)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x517d5d(0x37d)](_0x4d2002,_0x2b9d51,_0x533efa,_0x2d5d23);}};q=y([v(0x0,t[_0x85662d(0x3a4)]),v(0x1,(0x0,t[_0x85662d(0x340)])(e['SnapshotService'])),v(0x2,(0x0,t['Optional'])(S))],q);let J=class{constructor(_0x218d5d,_0x5c1667,_0x56f0f3){const _0x2bbbf6=_0x85662d;this[_0x2bbbf6(0x28e)]=_0x218d5d,this['_configService']=_0x5c1667,this['_univerInstanceService']=_0x56f0f3,g(this,_0x2bbbf6(0x2f6),0x0),g(this,_0x2bbbf6(0x216),new i[(_0x2bbbf6(0x439))]()),g(this,'change$',this['_change$']),g(this,_0x2bbbf6(0x41c),new Map());}[_0x85662d(0x3c6)](_0x5f3547){const _0x3cca59=_0x85662d;this[_0x3cca59(0x2f6)]=_0x5f3547,this[_0x3cca59(0x216)][_0x3cca59(0x49a)](_0x5f3547);}[_0x85662d(0x3fa)](_0x86cc3e,_0x19360a){const _0xb8b351=_0x85662d;if(_0x19360a===t[_0xb8b351(0x489)]['BASE64']){let _0x2e4ec4=new Image();return _0x2e4ec4[_0xb8b351(0x3f9)]=_0x86cc3e,_0x2e4ec4;}return this['_imageSourceCache'][_0xb8b351(0x39b)](_0x86cc3e);}[_0x85662d(0x360)](_0x258225,_0x142f43,_0x22d9cc){const _0xc9861c=_0x85662d;_0x142f43===t[_0xc9861c(0x489)][_0xc9861c(0x290)]||_0x22d9cc==null||this[_0xc9861c(0x41c)]['set'](_0x258225,_0x22d9cc);}async['getImage'](_0x4035c3){const _0x294322=_0x85662d;try{let _0x395b7f=this[_0x294322(0x4ad)](this[_0x294322(0x47e)](),''+_0x4035c3),_0x23a4f0=(await this[_0x294322(0x28e)][_0x294322(0x39b)](_0x395b7f))[_0x294322(0x2a6)];if(_0x23a4f0[_0x294322(0x3cc)]&&_0x23a4f0[_0x294322(0x3cc)][_0x294322(0x1d4)]===a[_0x294322(0x233)]['OK']){let _0x382ed2=(0x0,t[_0x294322(0x31e)])(_0x23a4f0[_0x294322(0x26a)],this[_0x294322(0x303)]());return Promise[_0x294322(0x2e5)](_0x382ed2);}return Promise[_0x294322(0x434)](_0x23a4f0[_0x294322(0x3cc)]);}catch(_0x1900a4){return Promise['reject'](_0x1900a4);}}async[_0x85662d(0x49b)](_0xa3767b){const _0x315da3=_0x85662d;let _0x38f4d7='';if(!p[_0x315da3(0x499)]['includes'](_0xa3767b['type']))return this['_decreaseWaiting'](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)][_0x315da3(0x208)]));if(_0xa3767b[_0x315da3(0x362)]>(0x0,p[_0x315da3(0x37a)])())return this['_decreaseWaiting'](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)][_0x315da3(0x21f)]));try{let _0x5d7a33=new FormData();_0x5d7a33[_0x315da3(0x2e0)](_0x315da3(0x4c9),_0xa3767b);let _0x321ae4=this[_0x315da3(0x22a)][_0x315da3(0x26b)](),_0x1df79e=_0x321ae4==null?void 0x0:_0x321ae4['getUnitId']();if(!_0x1df79e)throw Error(_0x315da3(0x3ad));let _0x243c8=this[_0x315da3(0x231)]()+_0x315da3(0x452)+_0xa3767b[_0x315da3(0x362)][_0x315da3(0x2da)]()+_0x315da3(0x324)+a[_0x315da3(0x27d)][_0x315da3(0x43d)]+_0x315da3(0x4ea)+encodeURIComponent(_0x1df79e),_0x10d974={'body':_0x5d7a33},_0x4a8c01=(await this[_0x315da3(0x28e)][_0x315da3(0x3d4)](_0x243c8,_0x10d974))['body'];if(typeof _0x4a8c01[_0x315da3(0x308)]!=_0x315da3(0x1dc))return this['_decreaseWaiting'](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)]['ERROR_IMAGE']));_0x38f4d7=_0x4a8c01[_0x315da3(0x308)];}catch{return this[_0x315da3(0x225)](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)][_0x315da3(0x408)]));}return new Promise((_0x445f76,_0xabcc69)=>{const _0x4e35a0=_0x315da3;let _0x586ab7=new FileReader();_0x586ab7[_0x4e35a0(0x398)](_0xa3767b),_0x586ab7[_0x4e35a0(0x376)]=_0x270491=>{const _0x1cd786=_0x4e35a0;var _0x57c965;let _0x5923eb=(_0x57c965=_0x270491[_0x1cd786(0x1f0)])==null?void 0x0:_0x57c965[_0x1cd786(0x461)];if(_0x5923eb==null){this[_0x1cd786(0x225)](),_0xabcc69(Error(t[_0x1cd786(0x1d6)][_0x1cd786(0x408)]));return;}_0x445f76({'imageId':(0x0,t[_0x1cd786(0x2e4)])(0x6),'imageSourceType':t[_0x1cd786(0x489)]['UUID'],'source':_0x38f4d7,'base64Cache':_0x5923eb,'status':t[_0x1cd786(0x1d6)][_0x1cd786(0x366)]}),this['_decreaseWaiting']();};});}[_0x85662d(0x231)](){const _0x4d7ea0=_0x85662d;var _0x1f4adf;let _0x3c6e07=this[_0x4d7ea0(0x377)][_0x4d7ea0(0x262)](m);return(_0x1f4adf=_0x3c6e07==null?void 0x0:_0x3c6e07[_0x4d7ea0(0x391)])==null?_0x4d7ea0(0x326):_0x1f4adf;}[_0x85662d(0x47e)](){const _0x3d2596=_0x85662d;var _0x50e230;let _0x12dcc4=this['_configService'][_0x3d2596(0x262)](m);return(_0x50e230=_0x12dcc4==null?void 0x0:_0x12dcc4[_0x3d2596(0x40a)])==null?'/universer-api/file/{fileID}/sign-url':_0x50e230;}[_0x85662d(0x303)](){const _0x2deb8c=_0x85662d;var _0x290fa7;let _0x3849ee=this[_0x2deb8c(0x377)]['getConfig'](m);return(_0x290fa7=_0x3849ee==null?void 0x0:_0x3849ee[_0x2deb8c(0x1ee)])==null?location[_0x2deb8c(0x3a2)]:_0x290fa7;}['_replaceFileID'](_0x7de463,_0x2e060c){const _0x52bab0=_0x85662d;return _0x7de463[_0x52bab0(0x277)](_0x52bab0(0x3a5),_0x2e060c);}['_decreaseWaiting'](){const _0x57b04c=_0x85662d;--this['_waitCount'],this['_change$'][_0x57b04c(0x49a)](this['_waitCount']);}};J=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l['HTTPService'])),v(0x1,t[_0x85662d(0x29d)]),v(0x2,(0x0,t['Inject'])(t[_0x85662d(0x33e)]))],J);let Y=class{constructor(_0x5202b0,_0x2f9fb6){const _0x2c8481=_0x85662d;this[_0x2c8481(0x377)]=_0x5202b0,this[_0x2c8481(0x3aa)]=_0x2f9fb6;}[_0x85662d(0x306)](){const _0x8d697e=_0x85662d;var _0x2ab710;let _0x31dda9=this[_0x8d697e(0x377)][_0x8d697e(0x262)](m);return(_0x2ab710=_0x31dda9==null?void 0x0:_0x31dda9[_0x8d697e(0x2f4)])==null?_0x8d697e(0x281):_0x2ab710;}async['list'](_0x5af184){const _0x21c584=_0x85662d;let _0x2cd81d=this[_0x21c584(0x306)]()+_0x21c584(0x4b4);return{'list':[{'title':_0x21c584(0x35b),'mentions':(await this[_0x21c584(0x3aa)][_0x21c584(0x39b)](_0x2cd81d,{'params':{'objectID':_0x5af184['unitId'],'unitID':_0x5af184[_0x21c584(0x420)]}}))[_0x21c584(0x2a6)][_0x21c584(0x488)][_0x21c584(0x3fc)](_0x537678=>({'objectId':_0x537678['id'],'name':_0x537678[_0x21c584(0x477)][_0x21c584(0x239)],'metadata':{'icon':_0x537678['subject'][_0x21c584(0x46a)]},'label':_0x537678[_0x21c584(0x477)][_0x21c584(0x239)],'objectType':t['MentionType'][_0x21c584(0x255)]})),'metadata':{},'type':t[_0x21c584(0x373)][_0x21c584(0x255)]}]};}};Y=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t['IConfigService'])),v(0x1,(0x0,t[_0x85662d(0x340)])(l[_0x85662d(0x315)]))],Y);let X=class extends t[_0x85662d(0x42c)]{constructor(_0x492ad9,_0x208316,_0x59f5f5,_0x1a3f80,_0x1a181b){const _0x20940e=_0x85662d;super(),this['_injector']=_0x492ad9,this[_0x20940e(0x22a)]=_0x208316,this[_0x20940e(0x23c)]=_0x59f5f5,this[_0x20940e(0x328)]=_0x1a3f80,this[_0x20940e(0x46e)]=_0x1a181b,this['_initUnitPermissionChange'](),this[_0x20940e(0x312)]();}[_0x85662d(0x312)](){const _0x4d8152=_0x85662d;let _0x431d=async _0x175f7a=>{const _0x270acd=_0x342d;(await this[_0x270acd(0x328)][_0x270acd(0x232)](_0x175f7a))[_0x270acd(0x25d)][_0x270acd(0x4bd)]((0x0,s['filter'])(_0x198487=>_0x198487['eventID']===e[_0x270acd(0x3fb)][_0x270acd(0x41b)]),(0x0,s[_0x270acd(0x2fc)])(this[_0x270acd(0x3df)]))[_0x270acd(0x46c)](_0x14c30e=>{const _0x149b9e=_0x270acd;let {reason:_0x20aaaa}=_0x14c30e[_0x149b9e(0x28a)];this[_0x149b9e(0x46e)][_0x149b9e(0x3ae)]({'id':_0x149b9e(0x446),'data':_0x20aaaa}),this[_0x149b9e(0x23c)]['updatePermissionPoint'](new r[(_0x149b9e(0x416))](_0x175f7a)['id'],!0x1),this[_0x149b9e(0x328)][_0x149b9e(0x1da)](_0x175f7a);});};(0x0,i[_0x4d8152(0x22e)])(this[_0x4d8152(0x22a)][_0x4d8152(0x1e6)](t[_0x4d8152(0x378)][_0x4d8152(0x4d3)]),this[_0x4d8152(0x22a)]['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x4d8152(0x39f)]),this[_0x4d8152(0x22a)]['getTypeOfUnitAdded$'](t[_0x4d8152(0x378)]['UNIVER_BOARD']),this[_0x4d8152(0x22a)][_0x4d8152(0x1e6)](t[_0x4d8152(0x378)]['UNIVER_BASE']))[_0x4d8152(0x4bd)]((0x0,s[_0x4d8152(0x3fc)])(_0x2929eb=>_0x2929eb[_0x4d8152(0x280)][_0x4d8152(0x3b9)]()),(0x0,s[_0x4d8152(0x2ca)])(_0x386e05=>!(0x0,t[_0x4d8152(0x207)])(_0x386e05)),(0x0,s[_0x4d8152(0x2fc)])(this['dispose$']))['subscribe'](_0x40a1a9=>{_0x431d(_0x40a1a9);});}[_0x85662d(0x334)](){const _0x324ade=_0x85662d;let _0x9d20fc=async _0x3ac512=>{const _0x36aabe=_0x342d;let _0x41e5b8=await this['_collaborationSessionService'][_0x36aabe(0x232)](_0x3ac512),_0x3a0041=this[_0x36aabe(0x3f3)][_0x36aabe(0x39b)](r[_0x36aabe(0x368)]);_0x41e5b8[_0x36aabe(0x25d)][_0x36aabe(0x4bd)]((0x0,s[_0x36aabe(0x2ca)])(_0x55abd4=>_0x55abd4[_0x36aabe(0x336)]===e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,s['takeUntil'])(this[_0x36aabe(0x3df)]))[_0x36aabe(0x46c)](_0x23800a=>{const _0x3f599d=_0x36aabe;let {objectId:_0x3a629a}=_0x23800a[_0x3f599d(0x28a)];_0x3a629a===_0x3ac512?_0x3a0041[_0x3f599d(0x3c4)](_0x3ac512):_0x3a0041[_0x3f599d(0x4ec)](_0x3ac512,_0x3a629a);});};(0x0,i['merge'])(this['_univerInstanceService'][_0x324ade(0x1e6)](t[_0x324ade(0x378)][_0x324ade(0x4d3)]))[_0x324ade(0x4bd)]((0x0,s['map'])(_0x322edb=>_0x322edb['unit']['getUnitId']()),(0x0,s[_0x324ade(0x2ca)])(_0xf139a=>!(0x0,t[_0x324ade(0x207)])(_0xf139a)),(0x0,s['takeUntil'])(this[_0x324ade(0x3df)]))[_0x324ade(0x46c)](_0x15954b=>{_0x9d20fc(_0x15954b);});}};X=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x1,t[_0x85662d(0x33e)]),v(0x2,t[_0x85662d(0x4f4)]),v(0x3,(0x0,t[_0x85662d(0x340)])(V)),v(0x4,(0x0,t[_0x85662d(0x340)])(_))],X);let Z=class{constructor(_0x1c2b8d,_0x5e60bb){const _0x4dd761=_0x85662d;this[_0x4dd761(0x377)]=_0x1c2b8d,this['_httpService']=_0x5e60bb;}async['getUnitOnRev'](_0x43c215,_0x249ce4){const _0x3c6bf6=_0x85662d;var _0x17eb76;let {unitID:_0x4c0342,type:_0x4c2bf9,revision:_0x36f710=0x0}=_0x249ce4,_0x185348=this[_0x3c6bf6(0x3c2)]()+'/'+_0x4c2bf9+'/unit/'+_0x4c0342+_0x3c6bf6(0x3c7)+_0x36f710,_0x214d42=(await this[_0x3c6bf6(0x28e)]['get'](_0x185348))[_0x3c6bf6(0x2a6)],_0x13caa8=(_0x17eb76=_0x214d42[_0x3c6bf6(0x4d0)])==null?void 0x0:_0x17eb76[_0x3c6bf6(0x2c5)];if(_0x13caa8){let _0x2476db=_0x13caa8==null?void 0x0:_0x13caa8[_0x3c6bf6(0x481)];_0x13caa8[_0x3c6bf6(0x481)]=e[_0x3c6bf6(0x4b0)][_0x3c6bf6(0x443)]((0x0,e[_0x3c6bf6(0x36d)])(_0x2476db)),Object[_0x3c6bf6(0x342)](_0x13caa8[_0x3c6bf6(0x3a8)])[_0x3c6bf6(0x30f)](([,_0x3a913c])=>{const _0xd77f3e=_0x3c6bf6;let _0x341bf2=_0x3a913c[_0xd77f3e(0x481)];_0x3a913c['originalMeta']=e['textEncoder']['encode']((0x0,e[_0xd77f3e(0x36d)])(_0x341bf2));});}return _0x214d42;}async[_0x85662d(0x1f8)](_0x44ffe8,_0x38137a){const _0x5dc77b=_0x85662d;let {unitID:_0x5a72e7,type:_0x5608d7,blockID:_0x3934ad}=_0x38137a,_0x46bf16=this[_0x5dc77b(0x358)]()+'/'+_0x5608d7+_0x5dc77b(0x247)+_0x5a72e7+_0x5dc77b(0x385)+_0x3934ad;return(await this[_0x5dc77b(0x28e)]['get'](_0x46bf16))[_0x5dc77b(0x2a6)];}async[_0x85662d(0x3b8)](_0x52396c,_0x338904){const _0x4e53fc=_0x85662d;let {unitID:_0x5d3611,type:_0x340df3,blockID:_0x3b6aae}=_0x338904,_0x55de11=this[_0x4e53fc(0x358)]()+'/block/'+_0x340df3+_0x4e53fc(0x247)+_0x5d3611+_0x4e53fc(0x385)+_0x3b6aae;return(await this['_httpService'][_0x4e53fc(0x39b)](_0x55de11))['body'];}async[_0x85662d(0x2ba)](_0x26965f,_0x3a6c88){const _0x30d6cf=_0x85662d;let {unitID:_0x2b4174,type:_0x3c8dfb,from:_0x493d6a,to:_0x5ce97e}=_0x3a6c88,_0x25c49b=this[_0x30d6cf(0x358)]()+'/'+_0x3c8dfb+'/unit/'+_0x2b4174+_0x30d6cf(0x33a)+_0x493d6a+_0x30d6cf(0x4f0)+_0x5ce97e;return(await this[_0x30d6cf(0x28e)]['get'](_0x25c49b))[_0x30d6cf(0x2a6)];}['getSnapshotAPIPath'](){const _0x52c476=_0x85662d;var _0x1b68ab;return(_0x1b68ab=this['_configService'][_0x52c476(0x262)](_0x52c476(0x414)))==null?this[_0x52c476(0x358)]():_0x1b68ab;}[_0x85662d(0x358)](){const _0x190235=_0x85662d;var _0xac2528;let _0x3f8634=this['_configService'][_0x190235(0x262)](m);return(_0xac2528=_0x3f8634==null?void 0x0:_0x3f8634[_0x190235(0x485)])==null?_0x190235(0x252):_0xac2528;}async[_0x85662d(0x333)](_0x36b0d9,_0x109395){const _0x55aabb=_0x85662d;let _0x4a9740=_0x55aabb(0x393)+_0x109395[_0x55aabb(0x212)]+_0x55aabb(0x247)+_0x109395[_0x55aabb(0x357)]+'/resources';return(await this[_0x55aabb(0x28e)][_0x55aabb(0x39b)](_0x4a9740,{'params':{'resourceId':JSON['stringify'](_0x109395[_0x55aabb(0x400)])}}))[_0x55aabb(0x2a6)];}[_0x85662d(0x2e3)](){const _0x24ebbc=_0x85662d;throw Error(_0x24ebbc(0x270));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x85662d(0x37b)](){const _0x49ba45=_0x85662d;throw Error(_0x49ba45(0x270));}[_0x85662d(0x4af)](){const _0x4423ad=_0x85662d;throw Error(_0x4423ad(0x270));}[_0x85662d(0x3e4)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x85662d(0x451)](){const _0x2d16b0=_0x85662d;throw Error(_0x2d16b0(0x270));}};Z=y([v(0x0,t[_0x85662d(0x29d)]),v(0x1,(0x0,t[_0x85662d(0x340)])(l['HTTPService']))],Z);let Q=class extends t[_0x85662d(0x3f8)]{constructor(_0x11a669,_0x473311,_0x21acbf,_0x5a4e2d,_0x4b3604){const _0x14b28a=_0x85662d;super(_0x11a669,_0x473311,_0x21acbf),this[_0x14b28a(0x30e)]=_0x5a4e2d,this[_0x14b28a(0x29f)]=_0x4b3604;}['transformUndoRedo'](_0x109fda,_0x32889d){const _0x184735=_0x85662d;let _0x11217f=this[_0x184735(0x1e3)](_0x109fda);if(_0x11217f)try{let _0xa5b222=this[_0x184735(0x4df)](_0x11217f,_0x32889d);this['_substituteUndoStack'](_0x109fda,_0xa5b222);}catch(_0x3dc90c){this[_0x184735(0x29f)][_0x184735(0x3cc)]('[CollaborationUndoRedoService]',_0x3dc90c),this[_0x184735(0x259)](_0x109fda);}let _0xfc7357=this[_0x184735(0x2d7)](_0x109fda);if(_0xfc7357)try{let _0x4e8ed8=this[_0x184735(0x4df)](_0xfc7357,_0x32889d);this['_substituteRedoStack'](_0x109fda,_0x4e8ed8);}catch(_0x33e197){this[_0x184735(0x29f)]['error'](_0x33e197),this['_clearRedo'](_0x109fda);}}[_0x85662d(0x259)](_0x2463ba){const _0x38b9db=_0x85662d;let _0x2187be=this['_getUndoStack'](_0x2463ba);_0x2187be&&(_0x2187be[_0x38b9db(0x45a)]=0x0,this[_0x38b9db(0x435)]());}['_clearRedo'](_0x41400f){const _0x3af4a4=_0x85662d;let _0x297c5e=this[_0x3af4a4(0x2d7)](_0x41400f);_0x297c5e&&(_0x297c5e[_0x3af4a4(0x45a)]=0x0,this[_0x3af4a4(0x435)]());}['_substituteUndoStack'](_0x2de000,_0x38a8c6){const _0x55615d=_0x85662d;this[_0x55615d(0x1cb)][_0x55615d(0x43f)](_0x2de000,_0x38a8c6),this[_0x55615d(0x435)]();}['_substituteRedoStack'](_0x1704db,_0xa0a85){const _0x1c2ec1=_0x85662d;this[_0x1c2ec1(0x3a1)][_0x1c2ec1(0x43f)](_0x1704db,_0xa0a85),this[_0x1c2ec1(0x435)]();}['_transformStack'](_0x148843,_0x4eb93b){const _0x19cafc=_0x85662d;let _0x25d00a=[],_0x14c3be=_0x4eb93b,_0x3c1983=_0x4eb93b;for(let _0x52015c=_0x148843[_0x19cafc(0x45a)]-0x1;_0x52015c>=0x0;_0x52015c--){let {unitID:_0x118abb,undoMutations:_0x184bdc,redoMutations:_0x4db6e9}=_0x148843[_0x52015c],_0x1d881f=this[_0x19cafc(0x30e)]['transformMutationsWithChangeset'](_0x14c3be,_0x184bdc),_0x267f27=this[_0x19cafc(0x30e)][_0x19cafc(0x3cf)](_0x3c1983,_0x4db6e9);if((0x0,e[_0x19cafc(0x287)])(_0x1d881f)||(0x0,e[_0x19cafc(0x287)])(_0x267f27)){this[_0x19cafc(0x29f)][_0x19cafc(0x3cc)](_0x19cafc(0x273),_0x19cafc(0x2f5),_0x1d881f,_0x267f27);break;}_0x14c3be=_0x1d881f[_0x19cafc(0x237)],_0x3c1983=_0x267f27[_0x19cafc(0x237)],_0x25d00a[_0x19cafc(0x4e6)]({'unitID':_0x118abb,'undoMutations':_0x1d881f[_0x19cafc(0x2f8)],'redoMutations':_0x267f27[_0x19cafc(0x2f8)]});}return _0x25d00a[_0x19cafc(0x367)]();}};Q=y([v(0x0,t[_0x85662d(0x33e)]),v(0x1,t[_0x85662d(0x448)]),v(0x2,t['IContextService']),v(0x3,e['ITransformService']),v(0x4,t[_0x85662d(0x3a4)])],Q);let $=class extends t[_0x85662d(0x1eb)]{constructor(_0x50d56e=ee,_0x46ab32,_0x3f3208,_0x1ff1ec){const _0xd6580f=_0x85662d;super(),this[_0xd6580f(0x29e)]=_0x50d56e,this[_0xd6580f(0x29f)]=_0x46ab32,this[_0xd6580f(0x3f3)]=_0x3f3208,this['_configService']=_0x1ff1ec;let {..._0x2068ee}=(0x0,t[_0xd6580f(0x22e)])({},ee,this[_0xd6580f(0x29e)]);if(!_0x2068ee['socketService'])throw Error(_0xd6580f(0x2a8));this[_0xd6580f(0x29e)]=_0x2068ee,this['_configService'][_0xd6580f(0x4bb)](m,_0x2068ee);}[_0x85662d(0x263)](){const _0x5ccb15=_0x85662d;this[_0x5ccb15(0x41e)](),this[_0x5ccb15(0x30c)]();}[_0x85662d(0x41e)](){const _0x5f1a1b=_0x85662d;var _0x1322f7,_0x5166f0;this[_0x5f1a1b(0x3f3)][_0x5f1a1b(0x4ca)](t[_0x5f1a1b(0x249)])&&this[_0x5f1a1b(0x29f)]['error'](_0x5f1a1b(0x4db),_0x5f1a1b(0x4e0));let _0x5c33a7=(0x0,t[_0x5f1a1b(0x3af)])([[t[_0x5f1a1b(0x249)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[qe,{'useClass':this[_0x5f1a1b(0x29e)][_0x5f1a1b(0x3ef)]}],[e[_0x5f1a1b(0x246)],{'useClass':Z}],[t[_0x5f1a1b(0x1f7)],{'useClass':G}],[t[_0x5f1a1b(0x1cd)],{'useClass':J}],[rt,{'useClass':U}],[t[_0x5f1a1b(0x22c)],{'useClass':Y}],[H],[tt]],(_0x1322f7=this[_0x5f1a1b(0x29e)])==null?void 0x0:_0x1322f7[_0x5f1a1b(0x456)]);if(!((_0x5166f0=this[_0x5f1a1b(0x29e)])!=null&&_0x5166f0[_0x5f1a1b(0x4e2)])){let _0x478dd7=_0x5c33a7[_0x5f1a1b(0x327)](([_0x27de6c])=>_0x27de6c===w);_0x478dd7!==-0x1&&_0x5c33a7[_0x5f1a1b(0x21e)](_0x478dd7,0x1);}(0x0,t[_0x5f1a1b(0x2a0)])(this['_injector'],_0x5c33a7);}['_initDependencies'](){const _0x8a8588=_0x85662d;var _0x11a3ca,_0x5bb54a;if(this[_0x8a8588(0x3f3)]['get'](l[_0x8a8588(0x315)])[_0x8a8588(0x4a9)]({'priority':0x14,'interceptor':(0x0,l[_0x8a8588(0x42d)])({'maxParallel':0x6})}),!((_0x11a3ca=this['_config'])!=null&&_0x11a3ca[_0x8a8588(0x49c)])){var _0x5a120d;(_0x5a120d=this[_0x8a8588(0x3f3)]['get'](S,t['Quantity'][_0x8a8588(0x206)]))==null||_0x5a120d[_0x8a8588(0x20e)]();}(_0x5bb54a=this[_0x8a8588(0x29e)])!=null&&_0x5bb54a[_0x8a8588(0x210)]&&(0x0,t['touchDependencies'])(this[_0x8a8588(0x3f3)],[[W]]),(0x0,t[_0x8a8588(0x438)])(this[_0x8a8588(0x3f3)],[[K],[H],[X]]);}};g($,_0x85662d(0x2e7),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),g($,_0x85662d(0x412),$e),g($,_0x85662d(0x34a),et),$=y([(0x0,t[_0x85662d(0x236)])(u['UniverLicensePlugin'],e['UniverCollaborationPlugin'],l['UniverNetworkPlugin']),v(0x1,t['ILogService']),v(0x2,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x3,t[_0x85662d(0x29d)])],$),exports['AttachmentSourceType']=nt,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x361),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x85662d(0x4bf)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x241),{'enumerable':!0x0,'get':function(){return j;}}),Object['defineProperty'](exports,_0x85662d(0x38e),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x85662d(0x4bf)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return B;}}),exports[_0x85662d(0x2c3)]=m,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x4cb),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x85662d(0x4bf)](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x295),{'enumerable':!0x0,'get':function(){return F;}}),Object['defineProperty'](exports,_0x85662d(0x38a),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x3f5),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x35d),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x38f),{'enumerable':!0x0,'get':function(){return Ye;}}),exports['CollaborationStatus']=Be,exports['CollaborationUIEventId']=oe,exports[_0x85662d(0x200)]=_,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x299),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x85662d(0x38d)]=se,Object[_0x85662d(0x4bf)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x85662d(0x3e7)]=te,exports['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']='/universer-api/uniscript',exports[_0x85662d(0x2b1)]='/universer-api/user/session-ticket',Object['defineProperty'](exports,_0x85662d(0x34b),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x425),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x298),{'enumerable':!0x0,'get':function(){return P;}}),exports['HEARTBEAT_INTERVAL_KEY']=_0x85662d(0x323),exports[_0x85662d(0x2f9)]=_0x85662d(0x258),exports['IAttachmentIoService']=rt,exports['ICollaborationClientAdapterService']=Xe,exports[_0x85662d(0x1ec)]=qe,exports[_0x85662d(0x2df)]=S,exports[_0x85662d(0x32a)]=We,exports[_0x85662d(0x4cf)]=w,exports[_0x85662d(0x3ec)]=0x3e8,exports[_0x85662d(0x4d7)]='LOCAL_CACHE_INTERVAL',Object[_0x85662d(0x4bf)](exports,_0x85662d(0x1f1),{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x85662d(0x487),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x335),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x39a),{'enumerable':!0x0,'get':function(){return k;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x85662d(0x224),exports[_0x85662d(0x34f)]=_0x85662d(0x1d8),exports[_0x85662d(0x4d1)]=ve,Object['defineProperty'](exports,_0x85662d(0x46b),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x4c2),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x476),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x85662d(0x4ae),{'enumerable':!0x0,'get':function(){return O;}}),exports['UnitStatus']=Se,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x2dc),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports[_0x85662d(0x3d3)]=Ge,exports[_0x85662d(0x36f)]=be,exports[_0x85662d(0x266)]=Ke;
|
|
1
|
+
const _0x281ba4=_0x2431;(function(_0x38cf89,_0xdd2be9){const _0x4f7adc=_0x2431,_0x3cbba0=_0x38cf89();while(!![]){try{const _0x11a336=parseInt(_0x4f7adc(0x31e))/0x1+parseInt(_0x4f7adc(0x10d))/0x2*(-parseInt(_0x4f7adc(0x130))/0x3)+parseInt(_0x4f7adc(0x169))/0x4*(-parseInt(_0x4f7adc(0x340))/0x5)+-parseInt(_0x4f7adc(0x28e))/0x6+parseInt(_0x4f7adc(0x18b))/0x7*(parseInt(_0x4f7adc(0x39f))/0x8)+-parseInt(_0x4f7adc(0xdd))/0x9+-parseInt(_0x4f7adc(0x35e))/0xa*(-parseInt(_0x4f7adc(0x3d8))/0xb);if(_0x11a336===_0xdd2be9)break;else _0x3cbba0['push'](_0x3cbba0['shift']());}catch(_0x1fc62c){_0x3cbba0['push'](_0x3cbba0['shift']());}}}(_0x4951,0x40b58),Object[_0x281ba4(0x1c9)](exports,Symbol[_0x281ba4(0x36a)],{'value':_0x281ba4(0x355)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs-pro/slides'),l=require('@univerjs/network'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m=_0x281ba4(0xfb),ee={},te=_0x281ba4(0x115),ne=0x4e20;function re(_0x4d76d3){const _0x383e0a=_0x281ba4;return JSON[_0x383e0a(0xf8)](_0x4d76d3)[_0x383e0a(0x16d)];}function h(_0x470106){'@babel/helpers - typeof';const _0x252bc4=_0x281ba4;return h=typeof Symbol==_0x252bc4(0x306)&&typeof Symbol[_0x252bc4(0x3d9)]==_0x252bc4(0x2c2)?function(_0x4ef0d7){return typeof _0x4ef0d7;}:function(_0x33a07f){const _0x3ba47c=_0x252bc4;return _0x33a07f&&typeof Symbol==_0x3ba47c(0x306)&&_0x33a07f[_0x3ba47c(0x285)]===Symbol&&_0x33a07f!==Symbol[_0x3ba47c(0x1ff)]?_0x3ba47c(0x2c2):typeof _0x33a07f;},h(_0x470106);}function ie(_0x4dc45f,_0x157796){const _0x487e83=_0x281ba4;if(h(_0x4dc45f)!=_0x487e83(0x124)||!_0x4dc45f)return _0x4dc45f;var _0x9f2c9a=_0x4dc45f[Symbol['toPrimitive']];if(_0x9f2c9a!==void 0x0){var _0x6b5bfd=_0x9f2c9a['call'](_0x4dc45f,_0x157796||'default');if(h(_0x6b5bfd)!=_0x487e83(0x124))return _0x6b5bfd;throw TypeError(_0x487e83(0x3d2));}return(_0x157796===_0x487e83(0x2e7)?String:Number)(_0x4dc45f);}function ae(_0x1908e4){const _0x18bb89=_0x281ba4;var _0x50dcf4=ie(_0x1908e4,_0x18bb89(0x2e7));return h(_0x50dcf4)=='symbol'?_0x50dcf4:_0x50dcf4+'';}function g(_0x5b9b32,_0x4a7d7f,_0x524e9c){return(_0x4a7d7f=ae(_0x4a7d7f))in _0x5b9b32?Object['defineProperty'](_0x5b9b32,_0x4a7d7f,{'value':_0x524e9c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5b9b32[_0x4a7d7f]=_0x524e9c,_0x5b9b32;}let oe=function(_0x587c05){const _0x54ceec=_0x281ba4;return _0x587c05[_0x54ceec(0xf3)]=_0x54ceec(0xf3),_0x587c05[_0x54ceec(0x278)]=_0x54ceec(0x278),_0x587c05[_0x54ceec(0xdb)]=_0x54ceec(0xdb),_0x587c05['CLOSE_ROOM']=_0x54ceec(0x20d),_0x587c05['JOIN_ROOM_FAILED']=_0x54ceec(0x2c8),_0x587c05[_0x54ceec(0x29c)]=_0x54ceec(0x29c),_0x587c05[_0x54ceec(0x2f0)]=_0x54ceec(0x2f0),_0x587c05[_0x54ceec(0x2ed)]=_0x54ceec(0x2ed),_0x587c05;}({});var _=class{constructor(){const _0x428a32=_0x281ba4;g(this,_0x428a32(0xf4),new i[(_0x428a32(0x3de))]()),g(this,_0x428a32(0x22c),this[_0x428a32(0xf4)][_0x428a32(0x284)]());}[_0x281ba4(0x298)](_0x4279fd){const _0x521c38=_0x281ba4;this[_0x521c38(0xf4)]['next'](_0x4279fd);}},se=class{constructor(){const _0x5f3d3f=_0x281ba4;g(this,'_commentUpdate$',new i['Subject']()),g(this,'commentUpdate$',this[_0x5f3d3f(0x2d1)]['asObservable']());}[_0x281ba4(0x1fd)](_0x225ba1){const _0x3e1451=_0x281ba4;this[_0x3e1451(0x2d1)]['next'](_0x225ba1);}};function v(_0x5a6738,_0x5b8734){return function(_0x9c9d0a,_0xe6a2f9){_0x5b8734(_0x9c9d0a,_0xe6a2f9,_0x5a6738);};}function y(_0x3c728b,_0x4481b5,_0x42d4c8,_0x1c100f){const _0xf7e77f=_0x281ba4;var _0x49b933=arguments['length'],_0x20bc1c=_0x49b933<0x3?_0x4481b5:_0x1c100f===null?_0x1c100f=Object[_0xf7e77f(0x236)](_0x4481b5,_0x42d4c8):_0x1c100f,_0x42d2ba;if(typeof Reflect=='object'&&typeof Reflect[_0xf7e77f(0x29f)]==_0xf7e77f(0x306))_0x20bc1c=Reflect[_0xf7e77f(0x29f)](_0x3c728b,_0x4481b5,_0x42d4c8,_0x1c100f);else{for(var _0x8bc003=_0x3c728b['length']-0x1;_0x8bc003>=0x0;_0x8bc003--)(_0x42d2ba=_0x3c728b[_0x8bc003])&&(_0x20bc1c=(_0x49b933<0x3?_0x42d2ba(_0x20bc1c):_0x49b933>0x3?_0x42d2ba(_0x4481b5,_0x42d4c8,_0x20bc1c):_0x42d2ba(_0x4481b5,_0x42d4c8))||_0x20bc1c);}return _0x49b933>0x3&&_0x20bc1c&&Object[_0xf7e77f(0x1c9)](_0x4481b5,_0x42d4c8,_0x20bc1c),_0x20bc1c;}let b=class extends t[_0x281ba4(0xe4)]{constructor(_0x1eae68,_0x1414e1){const _0x5f1542=_0x281ba4;super(),this[_0x5f1542(0x193)]=_0x1eae68,this[_0x5f1542(0x3d0)]=_0x1414e1,g(this,'_roomMembers',new Map()),g(this,_0x5f1542(0x374),new i['Subject']()),this[_0x5f1542(0x143)]((0x0,i[_0x5f1542(0x299)])(this[_0x5f1542(0x193)][_0x5f1542(0x113)](t['UniverInstanceType']['UNIVER_SHEET'])[_0x5f1542(0x21e)]((0x0,s[_0x5f1542(0x26b)])(_0x20d942=>_0x20d942[_0x5f1542(0x34e)]())),this[_0x5f1542(0x193)]['getTypeOfUnitDisposed$'](t[_0x5f1542(0x314)]['UNIVER_DOC'])[_0x5f1542(0x21e)]((0x0,s[_0x5f1542(0x26b)])(_0x4d52da=>_0x4d52da[_0x5f1542(0x34e)]())),this[_0x5f1542(0x193)][_0x5f1542(0x113)](t[_0x5f1542(0x314)][_0x5f1542(0x2a1)])[_0x5f1542(0x21e)]((0x0,s[_0x5f1542(0x26b)])(_0x3e2b81=>_0x3e2b81['getUnitId']())),this['_univerInstanceService'][_0x5f1542(0x113)](t['UniverInstanceType'][_0x5f1542(0x37e)])[_0x5f1542(0x21e)]((0x0,s[_0x5f1542(0x26b)])(_0x10177b=>_0x10177b[_0x5f1542(0x34e)]())))['subscribe'](_0x177a5a=>this[_0x5f1542(0x10f)](_0x177a5a)));}[_0x281ba4(0x201)](_0x1db08e){const _0x5f3bd8=_0x281ba4;return this['_roomMembers']['has'](_0x1db08e)?(0x0,i['of'])(this['_roomMembers'][_0x5f3bd8(0x323)](_0x1db08e)):this['_roomCreated$'][_0x5f3bd8(0x21e)]((0x0,s[_0x5f3bd8(0x26b)])(_0x421d06=>{const _0x14e806=_0x5f3bd8;if(_0x421d06===_0x1db08e)return this[_0x14e806(0x3c3)][_0x14e806(0x323)](_0x421d06);}));}[_0x281ba4(0x253)](_0x33a718){const _0x36d654=_0x281ba4;this['_userManagerService'][_0x36d654(0x253)](_0x33a718);}[_0x281ba4(0x357)](){const _0x50ce16=_0x281ba4;return this['_userManagerService'][_0x50ce16(0x357)]();}[_0x281ba4(0x2ea)](_0xd32fa7,_0x35a2a1){const _0x1724e9=_0x281ba4;let _0x44a8a9=this['_roomMembers']['get'](_0xd32fa7);_0x44a8a9||(_0x44a8a9=new ce(),this[_0x1724e9(0x3c3)][_0x1724e9(0x243)](_0xd32fa7,_0x44a8a9),this[_0x1724e9(0x374)][_0x1724e9(0xd2)](_0xd32fa7)),_0x44a8a9['updateMember'](_0x35a2a1);}[_0x281ba4(0x363)](_0x53ba89,_0x78a6b1){const _0x2e0800=_0x281ba4;let _0x530f59=this[_0x2e0800(0x3c3)][_0x2e0800(0x323)](_0x53ba89);_0x530f59&&_0x530f59['removeMember'](_0x78a6b1);}[_0x281ba4(0x232)](_0x10f6d8){const _0x1a9579=_0x281ba4;return this[_0x1a9579(0x3c3)][_0x1a9579(0x323)](_0x10f6d8);}[_0x281ba4(0x1bd)](_0x448d2a,_0x4bce7f){const _0x156366=_0x281ba4;let _0x10b0f9=this[_0x156366(0x3c3)][_0x156366(0x323)](_0x448d2a);if(_0x10b0f9)return _0x10b0f9[_0x156366(0x1bd)](_0x4bce7f);}[_0x281ba4(0x10f)](_0x572967){const _0x5f3527=_0x281ba4;let _0x220f1e=this[_0x5f3527(0x3c3)][_0x5f3527(0x323)](_0x572967);_0x220f1e&&(_0x220f1e[_0x5f3527(0x25c)](),this[_0x5f3527(0x3c3)][_0x5f3527(0x19e)](_0x572967));}[_0x281ba4(0x25c)](){const _0x44bceb=_0x281ba4;this[_0x44bceb(0x3c3)][_0x44bceb(0x179)](_0x5498fa=>_0x5498fa['dispose']()),this['_roomMembers'][_0x44bceb(0x33d)](),this['_roomCreated$'][_0x44bceb(0x147)]();}};b=y([v(0x0,t[_0x281ba4(0x1ad)]),v(0x1,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0xee)]))],b);var ce=class extends t[_0x281ba4(0xe4)]{constructor(..._0x183403){const _0x560117=_0x281ba4;super(..._0x183403),g(this,_0x560117(0x371),new Map()),g(this,_0x560117(0x33a),new i['BehaviorSubject'](this[_0x560117(0x371)])),g(this,_0x560117(0x119),this['_members$'][_0x560117(0x284)]());}['dispose'](){const _0x3eb8fc=_0x281ba4;this['_members'][_0x3eb8fc(0x33d)](),this[_0x3eb8fc(0x33a)]['complete']();}[_0x281ba4(0x2ea)](_0x5a14dd){const _0x3b764f=_0x281ba4;this[_0x3b764f(0x371)]['set'](_0x5a14dd[_0x3b764f(0x20c)],_0x5a14dd),this[_0x3b764f(0x2b1)]();}[_0x281ba4(0x363)](_0x1f3ab4){const _0xa191b6=_0x281ba4;this[_0xa191b6(0x371)][_0xa191b6(0x19e)](_0x1f3ab4),this[_0xa191b6(0x2b1)]();}[_0x281ba4(0x1bd)](_0x2a76d8){const _0x5937cd=_0x281ba4;return this[_0x5937cd(0x371)][_0x5937cd(0x323)](_0x2a76d8);}[_0x281ba4(0xe0)](){const _0x5ff6a9=_0x281ba4;return Array['from'](this[_0x5ff6a9(0x371)][_0x5ff6a9(0x35f)]());}[_0x281ba4(0x2b1)](){const _0x2a1026=_0x281ba4;this[_0x2a1026(0x33a)][_0x2a1026(0xd2)](this['_members']);}};function le(_0x1c17af,_0x579370){const _0x113cec=_0x281ba4;if(de(_0x1c17af))return _0x579370;if(_0x579370['eventID']===e['CollaborationEvent'][_0x113cec(0x14a)]){var _0x3ad259;let _0x221dbd=ge(_0x1c17af),_0x16d78a=_0x579370;return{..._0x16d78a,'data':{..._0x16d78a[_0x113cec(0x346)],'unitID':_0x1c17af[_0x113cec(0x302)]['unitId'],'unitType':(_0x3ad259=_0x1c17af['target'][_0x113cec(0x311)])==null?_0x16d78a[_0x113cec(0x346)][_0x113cec(0x311)]:_0x3ad259,'changeset':_0x221dbd[_0x113cec(0x3cb)](_0x16d78a['data']['changeset'],_e(_0x1c17af))}};}if(_0x579370[_0x113cec(0x35a)]===e['CollaborationEvent'][_0x113cec(0x2fa)]){var _0xfa848a;let _0x1f00b8=_0x579370;return{..._0x1f00b8,'data':{..._0x1f00b8[_0x113cec(0x346)],'unitID':_0x1c17af[_0x113cec(0x302)][_0x113cec(0x118)],'unitType':(_0xfa848a=_0x1c17af[_0x113cec(0x302)]['unitType'])==null?_0x1f00b8[_0x113cec(0x346)]['unitType']:_0xfa848a}};}return _0x579370;}function ue(_0x5c9517,_0x5f6454){const _0x4d48d4=_0x281ba4;if(de(_0x5c9517))return[_0x5f6454];switch(_0x5f6454[_0x4d48d4(0x35a)]){case e[_0x4d48d4(0x137)][_0x4d48d4(0xcf)]:return[fe(_0x5c9517,_0x5f6454)];case e[_0x4d48d4(0x137)][_0x4d48d4(0x2fd)]:return[me(_0x5c9517,_0x5f6454)];case e['CollaborationEvent'][_0x4d48d4(0x3e2)]:return[pe(_0x5c9517,_0x5f6454)];default:return[_0x5f6454];}}function de(_0x287fad){const _0x3e806b=_0x281ba4;return _0x287fad[_0x3e806b(0x302)][_0x3e806b(0xd8)]==null&&_0x287fad[_0x3e806b(0x302)]['unitId']===_0x287fad[_0x3e806b(0x11c)]&&!_0x287fad['changeset'];}function fe(_0x3dcdff,_0x2d27ae){const _0x1e2959=_0x281ba4;return{..._0x2d27ae,'data':(0x0,e[_0x1e2959(0x140)])(he(_0x3dcdff,(0x0,e[_0x1e2959(0x218)])(_0x2d27ae[_0x1e2959(0x346)])))};}function pe(_0x14b11d,_0xd7752b){const _0x1cf67=_0x281ba4;return{..._0xd7752b,'data':he(_0x14b11d,_0xd7752b[_0x1cf67(0x346)])};}function me(_0x2d93af,_0x3aecf2){const _0x56617c=_0x281ba4;let _0x4ee6f7=_0x3aecf2['data'];return{..._0x3aecf2,'data':{..._0x4ee6f7,'changesets':_0x4ee6f7[_0x56617c(0x395)]['map'](_0xafc67a=>(0x0,e[_0x56617c(0x140)])(he(_0x2d93af,(0x0,e[_0x56617c(0x218)])(_0xafc67a))))}};}function he(_0xfc4e25,_0x3a20f0){const _0x3da1dc=_0x281ba4;return ge(_0xfc4e25)[_0x3da1dc(0x163)](_0x3a20f0,_e(_0xfc4e25));}function ge(_0x474396){const _0x524d76=_0x281ba4;if(!_0x474396['changeset'])throw Error(_0x524d76(0x2d4));return _0x474396[_0x524d76(0x213)];}function _e(_0x4444c3){const _0x314dda=_0x281ba4;return{'localUnitId':_0x4444c3['localUnitId'],'unitType':_0x4444c3[_0x314dda(0x311)],'target':_0x4444c3[_0x314dda(0x302)]};}let ve=function(_0x2155b2){const _0x5b525f=_0x281ba4;return _0x2155b2[_0x2155b2[_0x5b525f(0x17a)]=0x0]='IDLE',_0x2155b2[_0x2155b2[_0x5b525f(0x120)]=0x1]='JOINING',_0x2155b2[_0x2155b2[_0x5b525f(0x256)]=0x2]=_0x5b525f(0x256),_0x2155b2[_0x2155b2[_0x5b525f(0x2f7)]=0x3]=_0x5b525f(0x2f7),_0x2155b2;}({});const ye={[a['CmdRspCode'][_0x281ba4(0x3b4)]]:_0x281ba4(0x373),[a['CmdRspCode'][_0x281ba4(0x2ac)]]:'session.room-full',[a[_0x281ba4(0x3a3)][_0x281ba4(0xc5)]]:'session.room-not-exists',[a[_0x281ba4(0x3a3)][_0x281ba4(0x196)]]:_0x281ba4(0x1e8),[a[_0x281ba4(0x3a3)][_0x281ba4(0x281)]]:_0x281ba4(0x353)};let x=class extends t[_0x281ba4(0x24d)]{get[_0x281ba4(0x338)](){const _0x53cb8d=_0x281ba4;return this[_0x53cb8d(0x381)][_0x53cb8d(0x154)]();}constructor(_0xb232c1,_0x14d384,_0x236f97,_0x27b29a,_0x9abf6b,_0x4614f1,_0x318e54,_0x301701){const _0x41ba9b=_0x281ba4;super(),this[_0x41ba9b(0x1a8)]=_0xb232c1,this[_0x41ba9b(0x3a2)]=_0x236f97,this[_0x41ba9b(0x21b)]=_0x27b29a,this[_0x41ba9b(0x386)]=_0x9abf6b,this[_0x41ba9b(0x1ac)]=_0x4614f1,this['_collaborationUIEventService']=_0x318e54,this['_telemetryService']=_0x301701,g(this,_0x41ba9b(0x381),new i[(_0x41ba9b(0x332))](0x0)),g(this,_0x41ba9b(0x1a6),this['_sessionStatus$'][_0x41ba9b(0x284)]()),g(this,_0x41ba9b(0xf4),new i[(_0x41ba9b(0x3de))]()),g(this,_0x41ba9b(0x22c),this[_0x41ba9b(0xf4)][_0x41ba9b(0x284)]()),g(this,_0x41ba9b(0x1d0),void 0x0),g(this,_0x41ba9b(0x1cc),void 0x0),g(this,_0x41ba9b(0x270),void 0x0),g(this,_0x41ba9b(0x3d5),!0x1),g(this,_0x41ba9b(0x260),null),this[_0x41ba9b(0x3d5)]=!!this[_0x41ba9b(0x18d)],_0x14d384[_0x41ba9b(0x21e)]((0x0,i[_0x41ba9b(0x1f5)])(this[_0x41ba9b(0x109)]))['subscribe'](_0x12f403=>{const _0x448829=_0x41ba9b;if(_0x12f403!==void 0x0){if(this[_0x448829(0x1d0)]=_0x12f403,_0x12f403)this['_joinRoom'](_0x12f403),this['_socketMessageSubscription']=_0x12f403[_0x448829(0x2ca)][_0x448829(0x2a5)](_0x190559=>{const _0x4ddc23=_0x448829;_0x190559[_0x4ddc23(0xd9)]===this[_0x4ddc23(0x1a8)][_0x4ddc23(0x302)]['unitId']&&this[_0x4ddc23(0x22b)](_0x190559);});else{var _0x3256b3;this[_0x448829(0x1db)](),this[_0x448829(0x381)]['next'](0x2),(_0x3256b3=this[_0x448829(0x1cc)])==null||_0x3256b3['unsubscribe'](),this[_0x448829(0x1cc)]=null;}}});}['getMemberID'](){const _0x10c3f0=_0x281ba4;var _0x37d50e,_0x5cbfc0;return(_0x37d50e=(_0x5cbfc0=this[_0x10c3f0(0x1d0)])==null?void 0x0:_0x5cbfc0['memberID'])==null?null:_0x37d50e;}[_0x281ba4(0x25c)](){const _0x1b87c7=_0x281ba4;super[_0x1b87c7(0x25c)](),this[_0x1b87c7(0x309)](),this['dispose$'][_0x1b87c7(0xd2)](),this[_0x1b87c7(0x109)][_0x1b87c7(0x147)]();}[_0x281ba4(0x309)](){const _0x326ec3=_0x281ba4;var _0x2062b3;this[_0x326ec3(0x1db)](),(_0x2062b3=this[_0x326ec3(0x1d0)])==null||_0x2062b3[_0x326ec3(0x396)]({'cmd':a[_0x326ec3(0xe5)][_0x326ec3(0x14f)],'data':{'roomID':this[_0x326ec3(0x1a8)]['target'][_0x326ec3(0x118)]}}),this['_event$']['complete'](),this[_0x326ec3(0x381)][_0x326ec3(0x147)]();}[_0x281ba4(0x22b)](_0x14cf9c){const _0x1822dd=_0x281ba4;_0x14cf9c['cmd']===a[_0x1822dd(0xe5)][_0x1822dd(0x14c)]?this[_0x1822dd(0x1da)](_0x14cf9c):_0x14cf9c[_0x1822dd(0x2e6)]===a[_0x1822dd(0xe5)]['RECV']&&this[_0x1822dd(0x135)](_0x14cf9c);}[_0x281ba4(0x3a8)](_0x652167){const _0xc53e1a=_0x281ba4;this[_0xc53e1a(0x381)][_0xc53e1a(0xd2)](0x1),_0x652167[_0xc53e1a(0x396)]({'cmd':a[_0xc53e1a(0xe5)][_0xc53e1a(0x14c)],'routeKey':this[_0xc53e1a(0x1a8)][_0xc53e1a(0x302)][_0xc53e1a(0x118)],'routeType':'','data':{'rooms':[{'roomID':this[_0xc53e1a(0x1a8)][_0xc53e1a(0x302)][_0xc53e1a(0x118)]}]}});}['_onJoinRoomEvent'](_0x1af015){const _0x170db8=_0x281ba4;var _0x51c3e6;if(_0x1af015[_0x170db8(0x2a4)]in ye){this[_0x170db8(0x1a1)][_0x170db8(0x298)]({'id':_0x170db8(0x2c8),'data':ye[_0x1af015[_0x170db8(0x2a4)]]}),this[_0x170db8(0x381)][_0x170db8(0xd2)](0x2);return;}this[_0x170db8(0x381)][_0x170db8(0xd2)](0x3);let _0x5e945c=(_0x51c3e6=_0x1af015[_0x170db8(0x346)][_0x170db8(0x1a2)][this[_0x170db8(0x1a8)][_0x170db8(0x302)][_0x170db8(0x118)]])==null?void 0x0:_0x51c3e6[_0x170db8(0x307)];_0x5e945c&&_0x5e945c[_0x170db8(0x179)](_0x1b5120=>this[_0x170db8(0x386)][_0x170db8(0x2ea)](this[_0x170db8(0x1a8)][_0x170db8(0x11c)],_0x1b5120));}['_onRecvEvent'](_0x578f9e){const _0x32a661=_0x281ba4;try{let _0x6beed6=ue(this[_0x32a661(0x1a8)],_0x578f9e['data']);for(let _0x29e3cf of _0x6beed6)switch(_0x29e3cf[_0x32a661(0x35a)]){case e[_0x32a661(0x137)][_0x32a661(0x294)]:this[_0x32a661(0x27c)](_0x29e3cf),this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);break;case e['CollaborationEvent'][_0x32a661(0xda)]:this[_0x32a661(0x178)](_0x29e3cf),this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);break;case e[_0x32a661(0x137)][_0x32a661(0x1b9)]:case e[_0x32a661(0x137)][_0x32a661(0x3e2)]:this[_0x32a661(0x378)](),this[_0x32a661(0xd4)](),this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);break;case e[_0x32a661(0x137)][_0x32a661(0x2ab)]:this[_0x32a661(0x3a2)]['error'](_0x32a661(0x1b2)+JSON[_0x32a661(0xf8)](_0x29e3cf)),this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);break;case e[_0x32a661(0x137)][_0x32a661(0x211)]:this['_commentService'][_0x32a661(0x1fd)](_0x29e3cf['data']),this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);break;default:this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);}}catch(_0x51909d){this[_0x32a661(0x3a2)][_0x32a661(0x3b2)](_0x51909d,_0x578f9e);}}[_0x281ba4(0x27c)](_0x37fb53){const _0x46bb3f=_0x281ba4;this[_0x46bb3f(0x386)][_0x46bb3f(0x2ea)](this[_0x46bb3f(0x1a8)][_0x46bb3f(0x11c)],_0x37fb53[_0x46bb3f(0x346)]);}[_0x281ba4(0x178)](_0x429c2e){const _0x1d191c=_0x281ba4;this['_memberService'][_0x1d191c(0x363)](this['_identity'][_0x1d191c(0x11c)],_0x429c2e[_0x1d191c(0x346)]['memberID']);}async[_0x281ba4(0x396)](_0x7985b4,_0x18fc65){const _0xbb8e16=_0x281ba4;if(this[_0xbb8e16(0x338)]!==0x3||!this[_0xbb8e16(0x1d0)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x24bed4=le(this[_0xbb8e16(0x1a8)],_0x7985b4);_0x24bed4[_0xbb8e16(0x35a)]===e[_0xbb8e16(0x137)][_0xbb8e16(0x14a)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0xbb8e16(0xf0)](_0x24bed4)),this[_0xbb8e16(0x1d0)][_0xbb8e16(0x396)]({'cmd':a[_0xbb8e16(0xe5)][_0xbb8e16(0x33c)],'routeKey':this[_0xbb8e16(0x1a8)][_0xbb8e16(0x302)][_0xbb8e16(0x118)],'routeType':'','data':_0x24bed4});}catch(_0x580a29){this[_0xbb8e16(0x3a2)][_0xbb8e16(0x3b2)](_0x580a29);}}[_0x281ba4(0x354)](){const _0xc08b16=_0x281ba4;var _0x2b3702;this[_0xc08b16(0x270)]=setTimeout(()=>{const _0xecb145=_0xc08b16;this[_0xecb145(0x270)]=null,this[_0xecb145(0x1a1)][_0xecb145(0x298)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x2b3702=this['_configService'][_0xc08b16(0x321)](_0xc08b16(0xeb)))==null?ne:_0x2b3702);}[_0x281ba4(0xd4)](){const _0x232e93=_0x281ba4;this[_0x232e93(0x270)]&&(clearTimeout(this[_0x232e93(0x270)]),this[_0x232e93(0x270)]=null);}[_0x281ba4(0xf0)](_0x5593d5){const _0x142ba4=_0x281ba4;if(!this[_0x142ba4(0x3d5)])return;let {data:_0x5d583c}=_0x5593d5,{unitID:_0x583674,changeset:_0x1b6c29}=_0x5d583c,{mutations:_0x22125a,type:_0x528c61}=_0x1b6c29;this[_0x142ba4(0x260)]={'unitId':_0x583674,'type':_0x528c61,'startTime':performance[_0x142ba4(0x2a0)](),'stopTime':0x0,'duration':0x0,'size':re(_0x22125a)};}[_0x281ba4(0x378)](){const _0x13da2e=_0x281ba4;if(this['_shouldReportTelemetry']){if(!this[_0x13da2e(0x260)]){this[_0x13da2e(0x3a2)][_0x13da2e(0x3b2)]('[CollaborationSession]',_0x13da2e(0x333));return;}this[_0x13da2e(0x260)]['stopTime']=performance[_0x13da2e(0x2a0)](),this[_0x13da2e(0x260)][_0x13da2e(0x230)]=this[_0x13da2e(0x260)]['stopTime']-this[_0x13da2e(0x260)][_0x13da2e(0x1e4)],this[_0x13da2e(0x18d)][_0x13da2e(0x188)](_0x13da2e(0x252),this[_0x13da2e(0x260)]),this[_0x13da2e(0x260)]=null;}}[_0x281ba4(0x1db)](){this['_telemetryInfo']=null;}};x=y([v(0x2,t[_0x281ba4(0x150)]),v(0x3,t[_0x281ba4(0xca)]),v(0x4,(0x0,t[_0x281ba4(0x241)])(b)),v(0x5,(0x0,t[_0x281ba4(0x241)])(se)),v(0x6,(0x0,t[_0x281ba4(0x241)])(_)),v(0x7,(0x0,t[_0x281ba4(0x325)])(o[_0x281ba4(0x1f1)]))],x);const S=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x161));function be(_0x4d971e){return'unit-cache-'+_0x4d971e;}function xe(_0x2f043f){const _0x28248b=_0x281ba4;let {unitID:_0x352488,mutations:_0x43cdc2}=_0x2f043f;return{'unitId':_0x352488,'subUnitId':_0x43cdc2[_0x28248b(0x16d)]>0x0?_0x43cdc2[0x0]['params'][_0x28248b(0x3ba)]:null};}let C=class{constructor(_0xf96135,_0x33fa04,_0x522932){const _0x28a19a=_0x281ba4;this['_injector']=_0xf96135,this['_transformService']=_0x33fa04,this[_0x28a19a(0x1fc)]=_0x522932;}[_0x281ba4(0x11e)](_0x5f341c){const _0x286236=_0x281ba4;var _0x3f7f18,_0xbd543d;let _0x5bc867=this[_0x286236(0x103)][_0x286236(0x323)](r[_0x286236(0x319)]),{unitId:_0x46cd98,subUnitId:_0x584d15}=xe(_0x5f341c),_0x53c891=_0x5bc867==null?void 0x0:_0x5bc867[_0x286236(0x226)](_0x46cd98)[_0x286236(0x303)](),_0xf4a233=(_0x3f7f18=this[_0x286236(0x1fc)]['getUnit'](_0x46cd98))==null||(_0x3f7f18=_0x3f7f18[_0x286236(0x367)]())==null?void 0x0:_0x3f7f18['getSheetId']();if(_0x53c891[_0x286236(0x16d)]===0x0||!_0x46cd98||!_0x584d15)return;let _0x2d28b6=[{'id':r['SetSelectionsOperation']['id'],'params':{'unitId':_0x46cd98,'subUnitId':_0xf4a233,'selections':t[_0x286236(0x3b6)][_0x286236(0xed)](_0x53c891)}}],_0xee8a91=this[_0x286236(0x1d7)]['transformMutationsWithChangeset'](_0x5f341c,_0x2d28b6);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0xee8a91))throw _0xee8a91['error'];let _0x4c0cac=(_0xbd543d=_0xee8a91[_0x286236(0x275)][0x0])==null||(_0xbd543d=_0xbd543d[_0x286236(0x390)])==null?void 0x0:_0xbd543d[_0x286236(0x334)];if(Array['isArray'](_0x4c0cac)&&_0x4c0cac[_0x286236(0x16d)]){if(_0x4c0cac[_0x286236(0x16d)]===_0x2d28b6[0x0][_0x286236(0x390)][_0x286236(0x334)][_0x286236(0x16d)]&&_0x4c0cac[_0x286236(0x262)]((_0x1aa53d,_0x2c1d0f)=>t[_0x286236(0x1f7)][_0x286236(0x228)](_0x1aa53d[_0x286236(0x385)],_0x2d28b6[0x0][_0x286236(0x390)]['selections'][_0x2c1d0f][_0x286236(0x385)])))return;this[_0x286236(0x103)][_0x286236(0x323)](t[_0x286236(0x300)])['executeCommand'](r[_0x286236(0x2f1)]['id'],{'unitId':_0x46cd98,'subUnitId':_0xf4a233,'selections':_0x4c0cac});}}};C=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x1,e['ITransformService']),v(0x2,t[_0x281ba4(0x1ad)])],C);const w=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x16a));let Se=function(_0x2d5f15){const _0x79415d=_0x281ba4;return _0x2d5f15[_0x2d5f15[_0x79415d(0x1c5)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2d5f15[_0x2d5f15[_0x79415d(0x318)]=0x1]=_0x79415d(0x318),_0x2d5f15;}({});function Ce(_0x3465cf){const _0xf0809e=_0x281ba4;var _0x254a4c;return!!((_0x254a4c=_0x3465cf[_0xf0809e(0x390)])!=null&&_0x254a4c[_0xf0809e(0x3b0)]);}const we=new Set([r['InsertSheetMutation']['id']]),Te=new Set([c[_0x281ba4(0x248)]['id'],c[_0x281ba4(0x174)]['id'],c[_0x281ba4(0x31b)]['id'],c[_0x281ba4(0x3cc)]['id']]);function Ee(_0x14a84e,_0x280d82=we){const _0x912d31=_0x281ba4;let _0x3f19f5=[];for(let _0x1294ee of _0x14a84e){if(_0x280d82['has'](_0x1294ee['id'])){if(_0x3f19f5[_0x912d31(0x16d)]>0x0)break;_0x3f19f5['push'](_0x1294ee);break;}if(Ce(_0x1294ee)){if(_0x3f19f5[_0x912d31(0x16d)]>0x0)break;_0x3f19f5[_0x912d31(0x2a2)](_0x1294ee);break;}_0x3f19f5[_0x912d31(0x2a2)](_0x1294ee);}return _0x3f19f5;}function T(_0x190105,_0x452b44,_0x51e76c,_0x2b5192,_0x53ddd6){const _0x42daa7=_0x281ba4;var _0x529796,_0x2e2ff7,_0x45c911,_0x2710ef;let _0x1b64f2=Ee(_0x190105),_0x4293e5=(_0x529796=(_0x2e2ff7=_0x53ddd6[_0x42daa7(0x357)]())==null?void 0x0:_0x2e2ff7[_0x42daa7(0x3db)])==null?'unknown':_0x529796,_0x455460=(_0x45c911=(_0x2710ef=_0x53ddd6[_0x42daa7(0x357)]())==null?void 0x0:_0x2710ef[_0x42daa7(0x20c)])==null?_0x42daa7(0x27e):_0x45c911;return{'changeset':{'unitID':_0x452b44,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x51e76c[_0x42daa7(0x2fb)](_0x452b44)),'baseRev':_0x2b5192['getCurrentRevOfUnit'](_0x452b44),'revision':0x0,'userID':_0x4293e5,'memberID':_0x455460,'mutations':_0x1b64f2},'pendingMutations':_0x190105[_0x42daa7(0x164)](_0x1b64f2['length'])};}function De(_0x317dec,_0x4a9f1b,_0x3b54d3,_0x4f2157,_0x5044e2){const _0x13683a=_0x281ba4;var _0x245a50,_0x212e28,_0x115ddf,_0x4e59f4;let _0x530c5c=Ee(_0x317dec,Te),_0x1546f1=(_0x245a50=(_0x212e28=_0x5044e2[_0x13683a(0x357)]())==null?void 0x0:_0x212e28[_0x13683a(0x3db)])==null?_0x13683a(0x27e):_0x245a50,_0x325b43=(_0x115ddf=(_0x4e59f4=_0x5044e2[_0x13683a(0x357)]())==null?void 0x0:_0x4e59f4[_0x13683a(0x20c)])==null?_0x13683a(0x27e):_0x115ddf;return{'changeset':{'unitID':_0x4a9f1b,'type':(0x0,e[_0x13683a(0x1cf)])(_0x3b54d3['getUnitType'](_0x4a9f1b)),'baseRev':_0x4f2157['getCurrentRevOfUnit'](_0x4a9f1b),'revision':0x0,'userID':_0x1546f1,'memberID':_0x325b43,'mutations':_0x530c5c},'pendingMutations':_0x317dec['slice'](_0x530c5c[_0x13683a(0x16d)])};}function Oe(_0x41d32b,_0x3517ed,_0x20a830,_0x27c374,_0x39056b){const _0x207940=_0x281ba4;var _0x25a2f9,_0x1c49f4,_0x18f72d,_0x38a531;let _0x150435=_0x41d32b[_0x207940(0x242)]((_0x522ad1,_0x5e07b5)=>{const _0xa4376d=_0x207940;let _0x7d8290=_0x522ad1[_0x522ad1[_0xa4376d(0x16d)]-0x1],{id:_0x3cca52}=_0x7d8290==null?{}:_0x7d8290,{id:_0x37edec,type:_0x5daf26}=_0x5e07b5,_0x16b701=_0x5e07b5[_0xa4376d(0x390)];if(_0x3cca52&&_0x3cca52!==_0x37edec)throw Error(_0xa4376d(0x2ef)+_0x3cca52+'\x20-\x20'+_0x37edec+'.');if(!_0x7d8290)return[{'id':_0x37edec,'type':_0x5daf26,'params':{'unitId':_0x16b701['unitId'],'textRanges':_0x16b701[_0xa4376d(0x39b)],'actions':_0x16b701['actions']}}];let _0x4f8baa=_0x7d8290['params'];return ke(_0x4f8baa,_0x16b701)?[..._0x522ad1[_0xa4376d(0x164)](0x0,-0x1),{..._0x7d8290,'id':_0x37edec,'type':_0x5daf26,'params':{'unitId':_0x16b701[_0xa4376d(0x118)],'textRanges':_0x16b701[_0xa4376d(0x39b)],'actions':t['JSONX'][_0xa4376d(0x3b3)](_0x4f8baa[_0xa4376d(0x2df)],_0x16b701[_0xa4376d(0x2df)])}}]:[..._0x522ad1,{'id':_0x37edec,'type':_0x5daf26,'params':{'unitId':_0x16b701['unitId'],'textRanges':_0x16b701['textRanges'],'actions':_0x16b701[_0xa4376d(0x2df)]}}];},[]),_0x4c0aea=(_0x25a2f9=(_0x1c49f4=_0x39056b[_0x207940(0x357)]())==null?void 0x0:_0x1c49f4[_0x207940(0x3db)])==null?_0x207940(0x27e):_0x25a2f9,_0x1f411d=(_0x18f72d=(_0x38a531=_0x39056b[_0x207940(0x357)]())==null?void 0x0:_0x38a531[_0x207940(0x20c)])==null?'unknown':_0x18f72d;return{'changeset':{'unitID':_0x3517ed,'type':(0x0,e[_0x207940(0x1cf)])(_0x20a830['getUnitType'](_0x3517ed)),'baseRev':_0x27c374[_0x207940(0xcc)](_0x3517ed),'revision':0x0,'userID':_0x4c0aea,'memberID':_0x1f411d,'mutations':_0x150435},'pendingMutations':_0x41d32b[_0x207940(0x164)](_0x41d32b[_0x207940(0x16d)])};}function ke(_0x3282dc,_0x323910){const _0x401905=_0x281ba4;return!Ae(_0x3282dc)&&!Ae(_0x323910)&&je(_0x3282dc[_0x401905(0x2df)],_0x323910[_0x401905(0x2df)]);}function Ae(_0x52f337){const _0x5e4223=_0x281ba4;return _0x52f337[_0x5e4223(0xef)]!==void 0x0;}function je(_0xff4652,_0x39b047){return Me(_0xff4652)&&Me(_0x39b047)&&!Pe(_0xff4652)&&!Pe(_0x39b047)&&!Ne(_0xff4652)&&!Ne(_0x39b047);}function Me(_0x334b66){const _0x5b18a5=_0x281ba4;return Fe(_0x334b66)[_0x5b18a5(0x151)](_0x42c534=>E(_0x42c534)&&_0x42c534['et']===_0x5b18a5(0x11b));}function Ne(_0x4f89d3){const _0x3f5d74=_0x281ba4;return Fe(_0x4f89d3)['some'](_0x2229c9=>Array[_0x3f5d74(0x170)](_0x2229c9)||typeof _0x2229c9==_0x3f5d74(0x2e7)||typeof _0x2229c9==_0x3f5d74(0x136));}function Pe(_0x21a87e){const _0x301283=_0x281ba4;return Fe(_0x21a87e)[_0x301283(0x151)](_0x5d3ec4=>!E(_0x5d3ec4)||_0x5d3ec4['et']!==_0x301283(0x11b)||!Array[_0x301283(0x170)](_0x5d3ec4['e'])?!0x1:_0x5d3ec4['e'][_0x301283(0x151)](_0xcf2509=>!E(_0xcf2509)||!E(_0xcf2509['body'])?!0x1:Object[_0x301283(0x1ff)][_0x301283(0x30a)][_0x301283(0x35d)](_0xcf2509[_0x301283(0x2dc)],'tables')||Object[_0x301283(0x1ff)]['hasOwnProperty'][_0x301283(0x35d)](_0xcf2509[_0x301283(0x2dc)],'columnGroups')||Object[_0x301283(0x1ff)][_0x301283(0x30a)][_0x301283(0x35d)](_0xcf2509[_0x301283(0x2dc)],'blockRanges')));}function Fe(_0x35fde2){const _0x5cf893=_0x281ba4;if(!Array[_0x5cf893(0x170)](_0x35fde2))return[];let _0x22945a=_0x35fde2['includes'](_0x5cf893(0x2dc))?_0x35fde2:_0x35fde2[_0x5cf893(0x3c1)](_0x19c5f1=>Array[_0x5cf893(0x170)](_0x19c5f1)&&_0x19c5f1[_0x5cf893(0x2c3)](_0x5cf893(0x2dc)));if(!Array[_0x5cf893(0x170)](_0x22945a))return[];let _0x2f7ea4=_0x22945a[_0x5cf893(0x2b4)](_0x5cf893(0x2dc));return _0x2f7ea4===-0x1?[]:_0x22945a['slice'](_0x2f7ea4+0x1);}function E(_0x1bdd6d){const _0x1cb87d=_0x281ba4;return typeof _0x1bdd6d=='object'&&!!_0x1bdd6d&&!Array[_0x1cb87d(0x170)](_0x1bdd6d);}function Ie(_0x44d173,_0x2f9cca){const _0xcf0edc=_0x281ba4;let _0x49a6c6=new i[(_0xcf0edc(0x197))](0x1);return setTimeout(()=>_0x49a6c6[_0xcf0edc(0xd2)](_0x2f9cca),_0x44d173),_0x49a6c6[_0xcf0edc(0x284)]()[_0xcf0edc(0x21e)]((0x0,i[_0xcf0edc(0x2ce)])(0x1));}var Le,Re,ze;let Be=function(_0x355960){const _0x377ac8=_0x281ba4;return _0x355960[_0x377ac8(0x10b)]='not_collab',_0x355960[_0x377ac8(0x336)]=_0x377ac8(0x1d5),_0x355960['PENDING']=_0x377ac8(0x1a0),_0x355960[_0x377ac8(0x286)]='awaiting',_0x355960['AWAITING_WITH_PENDING']=_0x377ac8(0x1ea),_0x355960[_0x377ac8(0x2d5)]=_0x377ac8(0x258),_0x355960[_0x377ac8(0xdb)]=_0x377ac8(0x175),_0x355960['OFFLINE']=_0x377ac8(0x2da),_0x355960;}({});const Ve=0x4e20,He=0x2bf20;var D=class{constructor(_0x589ab6,_0x2e005b,_0x2ea0f3,_0x331a2b,_0x1bc3f5,_0x4e2ddf,_0x2bb5a4,_0x39dcdf,_0x5b9659){const _0x1022a6=_0x281ba4;this[_0x1022a6(0x2f8)]=_0x589ab6,this[_0x1022a6(0x23b)]=_0x2e005b,this['_handler']=_0x1bc3f5,this[_0x1022a6(0x19d)]=_0x4e2ddf,this[_0x1022a6(0x2b8)]=_0x2bb5a4,this[_0x1022a6(0x1d1)]=_0x39dcdf,this[_0x1022a6(0x1ed)]=_0x5b9659,g(this,_0x1022a6(0x104),null),g(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x2ea0f3,this['_pendingMutations']=_0x331a2b;}['_checkMissing'](_0x3664e2){const _0x40e617=_0x281ba4;let _0x4fc9dd=this[_0x40e617(0x1d1)][_0x40e617(0xcc)](this['unitID']);return _0x3664e2[_0x40e617(0x1ca)]>_0x4fc9dd+0x1?(this[_0x40e617(0x350)]['onMissingChangesets']({'from':_0x4fc9dd,'to':_0x3664e2[_0x40e617(0x1ca)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x2e4d0d){const _0x3eb232=_0x281ba4;this[_0x3eb232(0x2b8)][_0x3eb232(0x295)](this[_0x3eb232(0x2f8)],_0x2e4d0d);}[_0x281ba4(0x214)](_0x2d3b5b){const _0x2817d8=_0x281ba4;var _0x12a1ef,_0x448e7a;(_0x12a1ef=(_0x448e7a=this['_handler'])[_0x2817d8(0x3c2)])==null||_0x12a1ef[_0x2817d8(0x35d)](_0x448e7a,_0x2d3b5b);}['_transformIMECache'](_0xafb3eb){const _0x497db5=_0x281ba4;var _0x5ef083,_0x32985c;return(_0x5ef083=(_0x32985c=this[_0x497db5(0x350)])[_0x497db5(0xe2)])==null?void 0x0:_0x5ef083['call'](_0x32985c,_0xafb3eb);}[_0x281ba4(0x38e)](_0x23130d){const _0x13dd3a=_0x281ba4;var _0x287fb9,_0x3a669d;return(_0x287fb9=(_0x3a669d=this[_0x13dd3a(0x350)])[_0x13dd3a(0x17e)])==null?void 0x0:_0x287fb9[_0x13dd3a(0x35d)](_0x3a669d,_0x23130d);}[_0x281ba4(0x2c7)](_0x5f02c9){const _0x2a59d2=_0x281ba4;var _0x1bd6dc,_0x16757,_0x7eb0ca;return(_0x1bd6dc=(_0x16757=(_0x7eb0ca=this[_0x2a59d2(0x350)])[_0x2a59d2(0x186)])==null?void 0x0:_0x16757[_0x2a59d2(0x35d)](_0x7eb0ca,_0x5f02c9))==null?_0x5f02c9:_0x1bd6dc;}[_0x281ba4(0x1c4)](_0xe888e8){const _0x207539=_0x281ba4;var _0x537290,_0x52914b,_0x5404cb;return(_0x537290=(_0x52914b=(_0x5404cb=this[_0x207539(0x350)])[_0x207539(0x134)])==null?void 0x0:_0x52914b[_0x207539(0x35d)](_0x5404cb,_0xe888e8))==null?_0xe888e8:_0x537290;}[_0x281ba4(0x128)](_0x556e97){const _0x21f01d=_0x281ba4;if(this[_0x21f01d(0x23b)]===t[_0x21f01d(0x314)][_0x21f01d(0x157)]){let {unitID:_0x919fab,mutations:_0x4f2eaf,memberID:_0x274f73}=_0x556e97,_0x1f8fea=_0x4f2eaf[_0x21f01d(0x16d)]>0x0?_0x4f2eaf[0x0][_0x21f01d(0x390)][_0x21f01d(0x39b)]:[];if(Array['isArray'](_0x1f8fea)&&_0x1f8fea[_0x21f01d(0x16d)]>0x0){var _0x42bb08,_0x213188;(_0x42bb08=(_0x213188=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x42bb08['call'](_0x213188,{'unitID':_0x919fab,'memberID':_0x274f73,'textRanges':_0x1f8fea});}}}[_0x281ba4(0x27f)](){const _0x30434f=_0x281ba4;var _0x1f41c4;(_0x1f41c4=this[_0x30434f(0x1ed)])==null||_0x1f41c4['updateOfflineData'](this['unitID'],this[_0x30434f(0x23b)],this[_0x30434f(0x104)],this[_0x30434f(0x26e)]);}[_0x281ba4(0x24a)](){const _0x4661b9=_0x281ba4;return this[_0x4661b9(0x1d1)][_0x4661b9(0xcc)](this['unitID']);}['_incrementRevisionNumber'](){const _0x4c0e30=_0x281ba4;this['_revisionService'][_0x4c0e30(0x2e9)](this[_0x4c0e30(0x2f8)]);}['_executeRemoteChangeset'](_0x2ca1df){const _0xd77977=_0x281ba4;let _0xf68a63=this[_0xd77977(0x2c7)](_0x2ca1df);_0xf68a63=this[_0xd77977(0x1c4)](_0xf68a63);let _0x263765=(0x0,t[_0xd77977(0x2eb)])(_0xf68a63['mutations'],this[_0xd77977(0x19d)],{'fromCollab':!0x0});if(!_0x263765[_0xd77977(0xcb)]){var _0x1e8842;throw _0x263765[_0xd77977(0x3b2)]instanceof Error?_0x263765[_0xd77977(0x3b2)]:Error((_0x1e8842=_0x263765[_0xd77977(0x3b2)])==null?'[CollaborationState]:\x20apply\x20error!':_0x1e8842);}this['_transformIMECache'](_0xf68a63),this[_0xd77977(0x38e)](_0xf68a63),this[_0xd77977(0x2c5)](_0x2ca1df),this[_0xd77977(0x214)](_0xf68a63),this[_0xd77977(0x128)](_0xf68a63),this[_0xd77977(0x19a)]();}};let O=class extends D{constructor(_0x64f02d,_0x387955,_0x3d641a,_0x13ab0d,_0x3067eb,_0xc6b846,_0x217456,_0xbbcdd1,_0x36fcfc,_0xc81cf2){const _0x2d1a00=_0x281ba4;super(_0x64f02d,_0x387955,null,[],_0x3d641a,_0x217456,_0xc6b846,_0x13ab0d,_0xc81cf2),this[_0x2d1a00(0x103)]=_0x3067eb,this['_logService']=_0xbbcdd1,this[_0x2d1a00(0x1d7)]=_0x36fcfc,this['localCacheService']=_0xc81cf2,g(this,_0x2d1a00(0x132),'synced');}[_0x281ba4(0x3d4)](_0x2a6ec3){const _0x3f5acf=_0x281ba4;let _0x42a6b0=this[_0x3f5acf(0x103)]['createInstance'](k,this[_0x3f5acf(0x2f8)],this[_0x3f5acf(0x23b)],[_0x2a6ec3],this[_0x3f5acf(0x350)]);return _0x42a6b0[_0x3f5acf(0x3ad)](),_0x42a6b0[_0x3f5acf(0x27f)](),_0x42a6b0;}[_0x281ba4(0x26a)](_0x2aa81c){const _0x3bb9f6=_0x281ba4;if(this[_0x3bb9f6(0x35b)](_0x2aa81c))return this[_0x3bb9f6(0x103)][_0x3bb9f6(0x237)](P,this['unitID'],this['type'],null,[],null,[_0x2aa81c],this[_0x3bb9f6(0x350)]);try{let _0x4193ba=this[_0x3bb9f6(0x1d7)][_0x3bb9f6(0x207)](_0x2aa81c,[e['EmptyMutationInfo']]);if((0x0,e[_0x3bb9f6(0x3c6)])(_0x4193ba)){let {c1Prime:_0x47ac4a}=_0x4193ba;return this['_executeRemoteChangeset'](_0x47ac4a),this;}throw _0x4193ba['error'];}catch(_0x42e2f2){return this[_0x3bb9f6(0x3a2)]['error'](_0x42e2f2),this[_0x3bb9f6(0x22d)](!0x1);}}[_0x281ba4(0x22d)](_0x19c4cc){const _0x250f79=_0x281ba4;return this[_0x250f79(0x103)][_0x250f79(0x237)](M,this[_0x250f79(0x2f8)],this[_0x250f79(0x23b)],null,[],this[_0x250f79(0x350)],_0x19c4cc);}[_0x281ba4(0x28a)](_0x178fa7){const _0x4fdc8a=_0x281ba4;if(_0x178fa7[_0x4fdc8a(0x1ca)]<=this[_0x4fdc8a(0x24a)]())return this;throw Error(_0x4fdc8a(0x176));}[_0x281ba4(0x1d8)](){throw Error('[SyncedState]:\x20received\x20rejection.');}[_0x281ba4(0x16f)](){return this;}[_0x281ba4(0x3a4)](){const _0x63f969=_0x281ba4;return this[_0x63f969(0x103)][_0x63f969(0x237)](N,this[_0x63f969(0x2f8)],this[_0x63f969(0x23b)],null,[],this[_0x63f969(0x350)]);}['toggleOnline'](){return this;}[_0x281ba4(0x231)](){const _0x4dd7be=_0x281ba4;throw Error(_0x4dd7be(0x33e));}[_0x281ba4(0x32a)](){const _0x5029b9=_0x281ba4;let _0x2ee5a8=this[_0x5029b9(0x1d1)]['getCurrentRevOfUnit'](this[_0x5029b9(0x2f8)]);return this[_0x5029b9(0x350)]['onMissingChangesets']({'from':_0x2ee5a8,'to':0x0}),this[_0x5029b9(0x103)][_0x5029b9(0x237)](P,this[_0x5029b9(0x2f8)],this[_0x5029b9(0x23b)],null,[],null,[],this[_0x5029b9(0x350)]);}};O=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x4,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x5,t[_0x281ba4(0x194)]),v(0x6,t[_0x281ba4(0x300)]),v(0x7,t[_0x281ba4(0x150)]),v(0x8,e[_0x281ba4(0x1eb)]),v(0x9,(0x0,t[_0x281ba4(0x325)])(S))],O);let k=Le=class extends D{constructor(_0xf8ce8e,_0x35ca2a,_0x31e008,_0xe07f61,_0x179680,_0x42163a,_0x56d008,_0x1420fe,_0x5b71af,_0x4ae876,_0x2026a3,_0xcb757e,_0x11fe0c,_0x1e594){const _0x262c57=_0x281ba4;super(_0xf8ce8e,_0x35ca2a,null,_0x31e008,_0xe07f61,_0x5b71af,_0x11fe0c,_0x42163a,_0x1e594),this[_0x262c57(0x103)]=_0x179680,this['_memberService']=_0x56d008,this['_logService']=_0x1420fe,this['_configService']=_0x4ae876,this[_0x262c57(0x1d7)]=_0x2026a3,this[_0x262c57(0x193)]=_0xcb757e,g(this,_0x262c57(0x132),'pending'),g(this,_0x262c57(0x158),null),g(this,_0x262c57(0x37c),null);}[_0x281ba4(0x3d4)](_0x9c6870){const _0x585dbc=_0x281ba4;return this['_pendingMutations'][_0x585dbc(0x2a2)](_0x9c6870),this[_0x585dbc(0x27f)](),this;}['onRemoteChangeset'](_0x287182){const _0x52e70a=_0x281ba4;if(this[_0x52e70a(0x35b)](_0x287182))return this[_0x52e70a(0x2f6)](),this[_0x52e70a(0x103)]['createInstance'](P,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x287182],this[_0x52e70a(0x350)]);try{let _0x451072=this[_0x52e70a(0x1d7)][_0x52e70a(0x207)](_0x287182,this[_0x52e70a(0x26e)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x451072)){let {c1Prime:_0x56db05,m2Prime:_0x35b2c}=_0x451072;this[_0x52e70a(0x148)](_0x56db05);let _0x5272be=this[_0x52e70a(0x103)][_0x52e70a(0x237)](Le,this[_0x52e70a(0x2f8)],this[_0x52e70a(0x23b)],_0x35b2c,this[_0x52e70a(0x350)]);this['_clearScheduledTask']();let _0x3348bb=new Date()[_0x52e70a(0x312)](),_0x55621b=this[_0x52e70a(0x158)]?Math[_0x52e70a(0x155)](this[_0x52e70a(0x158)]-_0x3348bb,0x0):this['_getSendChangesetTimeout']();return _0x5272be['_schedule'](_0x55621b),_0x5272be;}throw _0x451072[_0x52e70a(0x3b2)];}catch(_0x81efb){return this[_0x52e70a(0x3a2)][_0x52e70a(0x3b2)](_0x81efb),this[_0x52e70a(0x22d)](!0x1);}}[_0x281ba4(0x28a)](_0x581927){const _0x3ebc22=_0x281ba4;if(_0x581927[_0x3ebc22(0x1ca)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x281ba4(0x1d8)](){const _0x46b275=_0x281ba4;throw Error(_0x46b275(0x3b8));}['onRemoteRetry'](){return this;}[_0x281ba4(0x3a4)](){const _0x45ec21=_0x281ba4;return this[_0x45ec21(0x2f6)](),this[_0x45ec21(0x103)][_0x45ec21(0x237)](N,this[_0x45ec21(0x2f8)],this[_0x45ec21(0x23b)],null,this['_pendingMutations'],this[_0x45ec21(0x350)]);}[_0x281ba4(0x329)](){return this;}['_schedule'](_0x3aa6dc){const _0x5022b1=_0x281ba4;let _0x2e0d22=_0x3aa6dc==null?this[_0x5022b1(0x1bc)]():_0x3aa6dc;this[_0x5022b1(0x158)]=new Date()[_0x5022b1(0x312)]()+_0x2e0d22,this[_0x5022b1(0x37c)]=setTimeout(()=>{const _0x515070=_0x5022b1;this[_0x515070(0x2f6)]();let _0x367c4f=null;switch(this[_0x515070(0x23b)]){case t['UniverInstanceType'][_0x515070(0x17b)]:_0x367c4f=T(this[_0x515070(0x26e)],this['unitID'],this[_0x515070(0x193)],this[_0x515070(0x1d1)],this[_0x515070(0x386)]);break;case t['UniverInstanceType']['UNIVER_DOC']:_0x367c4f=this[_0x515070(0x26e)][_0x515070(0x262)](_0x59a04d=>_0x59a04d['id']===n[_0x515070(0x1c8)]['id'])?Oe(this['_pendingMutations'],this[_0x515070(0x2f8)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']):T(this[_0x515070(0x26e)],this[_0x515070(0x2f8)],this[_0x515070(0x193)],this[_0x515070(0x1d1)],this[_0x515070(0x386)]);break;case t[_0x515070(0x314)][_0x515070(0x352)]:_0x367c4f=De(this[_0x515070(0x26e)],this['unitID'],this[_0x515070(0x193)],this['_revisionService'],this[_0x515070(0x386)]);break;case t[_0x515070(0x314)][_0x515070(0x2a1)]:_0x367c4f=T(this[_0x515070(0x26e)],this['unitID'],this['_univerInstanceService'],this[_0x515070(0x1d1)],this['_memberService']);break;case t[_0x515070(0x314)][_0x515070(0x37e)]:_0x367c4f=T(this[_0x515070(0x26e)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x4b9f4a,pendingMutations:_0x305418}=_0x367c4f;this[_0x515070(0x350)]['onSendChangeset'](_0x4b9f4a);let _0x144c01=_0x305418[_0x515070(0x16d)]?this['_injector'][_0x515070(0x237)](j,this['unitID'],this['type'],_0x4b9f4a,_0x305418,this[_0x515070(0x350)],void 0x0):this[_0x515070(0x103)]['createInstance'](A,this[_0x515070(0x2f8)],this['type'],_0x4b9f4a,this[_0x515070(0x350)]);_0x144c01[_0x515070(0x27f)](),this[_0x515070(0x350)][_0x515070(0x159)](this,_0x144c01);},_0x2e0d22);}[_0x281ba4(0x1bc)](){const _0x7e78b9=_0x281ba4;var _0xce42f9;let _0x57bdb1=this[_0x7e78b9(0x21b)][_0x7e78b9(0x321)](m);return(_0xce42f9=_0x57bdb1==null?void 0x0:_0x57bdb1[_0x7e78b9(0x34b)])==null?0x7d0:_0xce42f9;}[_0x281ba4(0x231)](){const _0x532464=_0x281ba4;throw Error(_0x532464(0xd7));}[_0x281ba4(0x2f6)](){const _0x4e9d7d=_0x281ba4;this['_sendingTimer']!=null&&(clearTimeout(this[_0x4e9d7d(0x37c)]),this['_sendingTimer']=null);}[_0x281ba4(0x22d)](_0x54efc2){const _0x2e649e=_0x281ba4;return this[_0x2e649e(0x2f6)](),this[_0x2e649e(0x103)]['createInstance'](M,this[_0x2e649e(0x2f8)],this[_0x2e649e(0x23b)],null,this['_pendingMutations'],this['_handler'],_0x54efc2);}};k=Le=y([v(0x4,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x5,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x6,(0x0,t[_0x281ba4(0x241)])(b)),v(0x7,t[_0x281ba4(0x150)]),v(0x8,t['ICommandService']),v(0x9,t[_0x281ba4(0xca)]),v(0xa,e[_0x281ba4(0x1eb)]),v(0xb,t[_0x281ba4(0x1ad)]),v(0xc,t[_0x281ba4(0x194)]),v(0xd,(0x0,t['Optional'])(S))],k);let A=Re=class extends D{constructor(_0x107ca1,_0x57bc5c,_0x45b15e,_0x13b9fd,_0x4ea1fe,_0x8e4e65,_0x29caf0,_0x4cdd10,_0x10145e,_0x22d7e9,_0x348e61){const _0x110654=_0x281ba4;super(_0x107ca1,_0x57bc5c,_0x45b15e,[],_0x13b9fd,_0x29caf0,_0x22d7e9,_0x8e4e65,_0x348e61),this[_0x110654(0x103)]=_0x4ea1fe,this['_logService']=_0x4cdd10,this[_0x110654(0x1d7)]=_0x10145e,g(this,'status',_0x110654(0x283)),g(this,_0x110654(0x3ca),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,'_resendTimer',void 0x0),g(this,'_sender',void 0x0);}[_0x281ba4(0x3d4)](_0x49b4db){const _0x51ac19=_0x281ba4;this[_0x51ac19(0x2f6)]();let _0x2855a0=this[_0x51ac19(0x103)][_0x51ac19(0x237)](j,this['unitID'],this['type'],this[_0x51ac19(0x104)],[_0x49b4db],this['_handler'],this[_0x51ac19(0x37b)]);return _0x2855a0[_0x51ac19(0x27f)](),_0x2855a0;}[_0x281ba4(0x26a)](_0x49f32d){const _0x138252=_0x281ba4;if(this[_0x138252(0x35b)](_0x49f32d))return this[_0x138252(0x2f6)](),this[_0x138252(0x103)][_0x138252(0x237)](P,this['unitID'],this[_0x138252(0x23b)],this[_0x138252(0x104)],[],null,[_0x49f32d],this['_handler']);try{let _0x45891a=this[_0x138252(0x1d7)]['transformChangesets']([_0x49f32d],[this[_0x138252(0x104)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x45891a)){let {c1Prime:_0x36dd7e,c2Prime:_0x568a8c}=_0x45891a;this['_executeRemoteChangeset'](_0x36dd7e[0x0]),_0x568a8c[0x0][_0x138252(0x32e)]=this[_0x138252(0x24a)](),this['_clearScheduledTask']();let _0x51b2b5=this[_0x138252(0x103)][_0x138252(0x237)](Re,this[_0x138252(0x2f8)],this['type'],_0x568a8c[0x0],this[_0x138252(0x350)]);return _0x51b2b5[_0x138252(0x27f)](),_0x51b2b5;}throw _0x45891a[_0x138252(0x3b2)];}catch(_0x44d49b){return this['_logService']['error'](_0x44d49b),this[_0x138252(0x22d)](!0x1);}}['onRemoteAck'](_0x39c774){const _0x257f38=_0x281ba4;this[_0x257f38(0x2f6)]();let _0x4c22fb=this['_revisionService']['getCurrentRevOfUnit'](this[_0x257f38(0x2f8)]);if(_0x39c774[_0x257f38(0x1ca)]<=_0x4c22fb)return this;if(this['_checkMissing'](_0x39c774))return this[_0x257f38(0x103)][_0x257f38(0x237)](P,this[_0x257f38(0x2f8)],this['type'],this[_0x257f38(0x104)],[],_0x39c774[_0x257f38(0x1ca)],[],this[_0x257f38(0x350)]);this[_0x257f38(0x19a)]();let _0xcc8e64=this[_0x257f38(0x103)][_0x257f38(0x237)](O,this[_0x257f38(0x2f8)],this['type'],this[_0x257f38(0x350)]);return _0xcc8e64[_0x257f38(0x27f)](),_0xcc8e64;}[_0x281ba4(0x1d8)](_0x373573){const _0x2439bb=_0x281ba4;return this[_0x2439bb(0x22d)](!!(_0x373573!=null&&_0x373573[_0x2439bb(0x39d)]));}['onRemoteRetry'](_0x3cc1bc){const _0x193b9b=_0x281ba4;return this['_maxTotalRetryTimeout']>He?this['toggleOffline']():(this['_resendTimer']=Ie(this[_0x193b9b(0x3ca)],{'timeout':this[_0x193b9b(0x3ca)],'reqId':_0x3cc1bc[_0x193b9b(0x376)]}),this['_sender']=this[_0x193b9b(0x37b)][_0x193b9b(0x2a5)](({reqId:_0xc8fef7,timeout:_0x5c2b7b})=>{this['_resendWithTimeout'](_0xc8fef7,_0x5c2b7b);}),this);}[_0x281ba4(0x3a4)](){const _0x47cae5=_0x281ba4;return this[_0x47cae5(0x2f6)](),this[_0x47cae5(0x103)][_0x47cae5(0x237)](N,this[_0x47cae5(0x2f8)],this[_0x47cae5(0x23b)],this[_0x47cae5(0x104)],[],this['_handler']);}[_0x281ba4(0x329)](){return this;}['resend'](){const _0x27f4f8=_0x281ba4;this[_0x27f4f8(0x350)]['onSendChangeset'](this[_0x27f4f8(0x104)]);}['_onConflict'](_0x546f02){const _0x2d6110=_0x281ba4;return this['_clearScheduledTask'](),this[_0x2d6110(0x103)][_0x2d6110(0x237)](M,this['unitID'],this[_0x2d6110(0x23b)],this[_0x2d6110(0x104)],[],this['_handler'],_0x546f02);}[_0x281ba4(0xea)](_0x19b75f,_0x280e4d){const _0x159acb=_0x281ba4;var _0x31285c;_0x19b75f===((_0x31285c=this[_0x159acb(0x104)])==null?void 0x0:_0x31285c[_0x159acb(0x376)])&&(this[_0x159acb(0x231)](),this[_0x159acb(0x3ca)]=_0x280e4d===0x0?0x3e8:Math[_0x159acb(0x3ac)](_0x280e4d*0x2,Ve),this[_0x159acb(0x235)]+=this[_0x159acb(0x3ca)]);}[_0x281ba4(0x2f6)](){const _0x6ca7c7=_0x281ba4;var _0xa17a87;(_0xa17a87=this[_0x6ca7c7(0x34a)])==null||_0xa17a87['unsubscribe'](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};A=Re=y([v(0x4,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x5,(0x0,t['Inject'])(e['RevisionService'])),v(0x6,t['ICommandService']),v(0x7,t[_0x281ba4(0x150)]),v(0x8,e['ITransformService']),v(0x9,t['IUndoRedoService']),v(0xa,(0x0,t[_0x281ba4(0x325)])(S))],A);let j=ze=class extends D{constructor(_0x270416,_0x405887,_0x11eb89,_0x536464,_0x34f91a,_0x487ed2,_0x20645e,_0x1a46dd,_0x379b8e,_0x162654,_0x212f19,_0x4c6dfe,_0x5b91b5){const _0x52020a=_0x281ba4;super(_0x270416,_0x405887,_0x11eb89,_0x536464,_0x34f91a,_0x379b8e,_0x4c6dfe,_0x1a46dd,_0x5b91b5),this[_0x52020a(0x103)]=_0x20645e,this['_logService']=_0x162654,this[_0x52020a(0x1d7)]=_0x212f19,this[_0x52020a(0x290)]=_0x5b91b5,g(this,_0x52020a(0x132),_0x52020a(0x1ea)),g(this,'_resendTimeout',0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x52020a(0x37b),void 0x0),g(this,'_sender',void 0x0),_0x487ed2&&(this[_0x52020a(0x37b)]=_0x487ed2,this['_sender']=this[_0x52020a(0x37b)]['subscribe'](({reqId:_0x5903be,timeout:_0x534d31})=>{const _0x8c5921=_0x52020a;this[_0x8c5921(0xea)](_0x5903be,_0x534d31);}));}[_0x281ba4(0x3d4)](_0x178ddb){const _0x2cc347=_0x281ba4;return this[_0x2cc347(0x26e)][_0x2cc347(0x2a2)](_0x178ddb),this;}[_0x281ba4(0x26a)](_0x3de708){const _0x260c5a=_0x281ba4;if(this[_0x260c5a(0x35b)](_0x3de708))return this[_0x260c5a(0x2f6)](),this['_injector']['createInstance'](P,this[_0x260c5a(0x2f8)],this[_0x260c5a(0x23b)],this[_0x260c5a(0x104)],this[_0x260c5a(0x26e)],null,[_0x3de708],this['_handler']);try{let _0x20308e=this[_0x260c5a(0x1d7)][_0x260c5a(0x397)]([_0x3de708],[this[_0x260c5a(0x104)]],!0x1);if((0x0,e[_0x260c5a(0x36b)])(_0x20308e)){let {c1Prime:_0x27e4f2,c2Prime:_0x2c8b5b}=_0x20308e,_0x550960=this[_0x260c5a(0x1d7)][_0x260c5a(0x207)](_0x27e4f2[0x0],this[_0x260c5a(0x26e)]);if((0x0,e[_0x260c5a(0x3c6)])(_0x550960)){let {c1Prime:_0x47cd63,m2Prime:_0x547b3b}=_0x550960;return this[_0x260c5a(0x148)](_0x47cd63),_0x2c8b5b[0x0][_0x260c5a(0x32e)]=this[_0x260c5a(0x24a)](),this[_0x260c5a(0x2f6)](),this[_0x260c5a(0x103)][_0x260c5a(0x237)](ze,this[_0x260c5a(0x2f8)],this[_0x260c5a(0x23b)],_0x2c8b5b[0x0],_0x547b3b,this[_0x260c5a(0x350)],void 0x0);}throw _0x550960[_0x260c5a(0x3b2)];}throw _0x20308e[_0x260c5a(0x3b2)];}catch(_0x17eadb){return this[_0x260c5a(0x3a2)][_0x260c5a(0x3b2)](_0x17eadb),this[_0x260c5a(0x22d)](!0x1);}}[_0x281ba4(0x28a)](_0x5e2998){const _0x4ac21b=_0x281ba4;this[_0x4ac21b(0x2f6)]();let _0x1fc072=this[_0x4ac21b(0x24a)]();if(_0x5e2998['revision']<=_0x1fc072)return this;if(this['_checkMissing'](_0x5e2998))return this[_0x4ac21b(0x103)]['createInstance'](P,this[_0x4ac21b(0x2f8)],this['type'],this[_0x4ac21b(0x104)],this[_0x4ac21b(0x26e)],_0x5e2998['revision'],[],this[_0x4ac21b(0x350)]);this[_0x4ac21b(0x19a)]();let _0x98c5c=this['_injector']['createInstance'](k,this[_0x4ac21b(0x2f8)],this[_0x4ac21b(0x23b)],this[_0x4ac21b(0x26e)],this[_0x4ac21b(0x350)]);return _0x98c5c['_schedule'](),_0x98c5c[_0x4ac21b(0x27f)](),_0x98c5c;}[_0x281ba4(0x1d8)](_0x2493c3){const _0x65714c=_0x281ba4;return this[_0x65714c(0x22d)](!!(_0x2493c3!=null&&_0x2493c3['isPermissionRej']));}[_0x281ba4(0x16f)](_0x42c107){const _0x3bd0bd=_0x281ba4;return this['_maxTotalRetryTimeout']>He?this['toggleOffline']():(this[_0x3bd0bd(0x37b)]=Ie(this[_0x3bd0bd(0x3ca)],{'timeout':this[_0x3bd0bd(0x3ca)],'reqId':_0x42c107[_0x3bd0bd(0x376)]}),this['_sender']=this[_0x3bd0bd(0x37b)][_0x3bd0bd(0x2a5)](({reqId:_0x14c2cd,timeout:_0x5825c1})=>{const _0x283ce7=_0x3bd0bd;this[_0x283ce7(0xea)](_0x14c2cd,_0x5825c1);}),this);}[_0x281ba4(0x3a4)](){const _0x3a9114=_0x281ba4;return this[_0x3a9114(0x2f6)](),this['_injector'][_0x3a9114(0x237)](N,this[_0x3a9114(0x2f8)],this['type'],this['_awaitingChangeset'],this[_0x3a9114(0x26e)],this[_0x3a9114(0x350)]);}[_0x281ba4(0x329)](){return this;}[_0x281ba4(0x231)](){const _0x5607d3=_0x281ba4;this[_0x5607d3(0x350)][_0x5607d3(0x1c1)](this[_0x5607d3(0x104)]);}[_0x281ba4(0x22d)](_0xc5863b){const _0x267269=_0x281ba4;return this[_0x267269(0x2f6)](),this[_0x267269(0x103)][_0x267269(0x237)](M,this[_0x267269(0x2f8)],this[_0x267269(0x23b)],null,this[_0x267269(0x26e)],this[_0x267269(0x350)],_0xc5863b);}[_0x281ba4(0xea)](_0x59a90c,_0x301f3f){const _0x146c3f=_0x281ba4;var _0x4ae83b;_0x59a90c===((_0x4ae83b=this['_awaitingChangeset'])==null?void 0x0:_0x4ae83b[_0x146c3f(0x376)])&&(this['resend'](),this['_resendTimeout']=_0x301f3f===0x0?0x3e8:Math[_0x146c3f(0x3ac)](_0x301f3f*0x2,Ve),this[_0x146c3f(0x235)]+=this[_0x146c3f(0x3ca)]);}[_0x281ba4(0x2f6)](){const _0x17e1b7=_0x281ba4;var _0x367aa5;(_0x367aa5=this[_0x17e1b7(0x34a)])==null||_0x367aa5[_0x17e1b7(0x259)](),this[_0x17e1b7(0x3ca)]=0x0,this[_0x17e1b7(0x235)]=0x0;}};j=ze=y([v(0x6,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x8,t['ICommandService']),v(0x9,t[_0x281ba4(0x150)]),v(0xa,e['ITransformService']),v(0xb,t[_0x281ba4(0x194)]),v(0xc,(0x0,t[_0x281ba4(0x325)])(S))],j);let M=class extends D{constructor(_0x47c50e,_0x1c8d67,_0x1422a8,_0x1a45c2,_0x495f9,_0x532945=!0x1,_0x537d93,_0x4c9ac0,_0x51dcc6,_0x236db7,_0x5ba46f,_0x404418,_0x4c63e2){const _0x16c7bf=_0x281ba4;super(_0x47c50e,_0x1c8d67,_0x1422a8,_0x1a45c2,_0x495f9,_0x4c9ac0,_0x51dcc6,_0x236db7,_0x4c63e2),this[_0x16c7bf(0x2f9)]=_0x532945,this[_0x16c7bf(0x203)]=_0x537d93,this[_0x16c7bf(0x166)]=_0x5ba46f,this[_0x16c7bf(0x1a1)]=_0x404418,this[_0x16c7bf(0x290)]=_0x4c63e2,g(this,_0x16c7bf(0x132),_0x16c7bf(0x175)),this[_0x16c7bf(0x3c5)](),this[_0x16c7bf(0x2be)](),this[_0x16c7bf(0x3ab)]();}[_0x281ba4(0x3d4)](){return this;}[_0x281ba4(0x26a)](){return this;}[_0x281ba4(0x28a)](){return this;}[_0x281ba4(0x1d8)](){return this;}[_0x281ba4(0x16f)](){return this;}[_0x281ba4(0x3a4)](){return this;}[_0x281ba4(0x329)](){return this;}[_0x281ba4(0x231)](){const _0x450fbd=_0x281ba4;throw Error(_0x450fbd(0x1e2));}[_0x281ba4(0x2be)](){const _0x5c301c=_0x281ba4;var _0x2319c7,_0x49f9c8,_0xbbe16;(_0x2319c7=this[_0x5c301c(0x1ed)])==null||(_0x49f9c8=_0x2319c7['backupOfflineData'])==null||(_0x49f9c8=_0x49f9c8[_0x5c301c(0x35d)](_0x2319c7,this[_0x5c301c(0x2f8)],_0x5c301c(0x175)))==null||_0x49f9c8[_0x5c301c(0x234)](()=>void 0x0),(_0xbbe16=this[_0x5c301c(0x1ed)])==null||_0xbbe16['updateOfflineData'](this[_0x5c301c(0x2f8)],this[_0x5c301c(0x23b)],null,[]);}[_0x281ba4(0x3c5)](){const _0x764612=_0x281ba4;this[_0x764612(0x2f9)]?this[_0x764612(0x1a1)][_0x764612(0x298)]({'id':_0x764612(0x278)}):this[_0x764612(0x1a1)][_0x764612(0x298)]({'id':_0x764612(0xdb)});}[_0x281ba4(0x3ab)](){const _0x51bdbe=_0x281ba4;this[_0x51bdbe(0x203)][_0x51bdbe(0x30d)](new r[(_0x51bdbe(0x10a))](this[_0x51bdbe(0x2f8)])['id'],!0x1);}};M=y([v(0x6,(0x0,t['Inject'])(t[_0x281ba4(0x26f)])),v(0x7,t[_0x281ba4(0x300)]),v(0x8,t[_0x281ba4(0x194)]),v(0x9,(0x0,t['Inject'])(e[_0x281ba4(0x2cb)])),v(0xa,(0x0,t[_0x281ba4(0x241)])(t['LocaleService'])),v(0xb,(0x0,t['Inject'])(_)),v(0xc,(0x0,t[_0x281ba4(0x325)])(S))],M);let N=class extends D{constructor(_0x1ce33e,_0x36bc68,_0x544e0e,_0x4aaa56,_0x124807,_0x345d38,_0x45b10a,_0x31a7c5,_0x4dbe6b,_0xfffa56){const _0x155a08=_0x281ba4;super(_0x1ce33e,_0x36bc68,_0x544e0e,_0x4aaa56,_0x124807,_0x31a7c5,_0x4dbe6b,_0x45b10a,_0xfffa56),this['_injector']=_0x345d38,g(this,_0x155a08(0x132),_0x155a08(0x2da));}[_0x281ba4(0x3d4)](_0x13387f){const _0x5516d6=_0x281ba4;return this[_0x5516d6(0x26e)][_0x5516d6(0x2a2)](_0x13387f),this[_0x5516d6(0x27f)](),this;}[_0x281ba4(0x26a)](_0x2bb161){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x321142=_0x281ba4;throw Error(_0x321142(0x313));}[_0x281ba4(0x1d8)](){const _0x487b23=_0x281ba4;throw Error(_0x487b23(0x36d));}['onRemoteRetry'](){return this;}[_0x281ba4(0x3a4)](){return this;}[_0x281ba4(0x329)](){const _0x3b1675=_0x281ba4;let {_injector:_0x66a05f,_pendingMutations:_0x178458,_awaitingChangeset:_0x47dd2c,unitID:_0x410ab9,_handler:_0x28a060,type:_0x6edf20}=this,_0x13c6ef=Ue(_0x66a05f,_0x410ab9,_0x6edf20,_0x47dd2c,_0x178458,_0x28a060);return _0x13c6ef instanceof k?_0x13c6ef[_0x3b1675(0x3ad)]():(_0x13c6ef instanceof j||_0x13c6ef instanceof A)&&_0x13c6ef['resend'](),_0x13c6ef;}[_0x281ba4(0x231)](){const _0x2c7edd=_0x281ba4;throw Error(_0x2c7edd(0x19f));}};N=y([v(0x5,(0x0,t[_0x281ba4(0x241)])(t['Injector'])),v(0x6,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x7,t[_0x281ba4(0x300)]),v(0x8,t[_0x281ba4(0x194)]),v(0x9,(0x0,t[_0x281ba4(0x325)])(S))],N);let P=class extends D{constructor(_0x55e603,_0x1064f1,_0x44ce24,_0x556305,_0x489e40,_0xa1396f,_0x46b7a0,_0x527752,_0x14e920,_0x55ef18,_0xae2da9,_0x22db60,_0x4dc534,_0x4caa42){const _0x38113f=_0x281ba4;super(_0x55e603,_0x1064f1,_0x44ce24,_0x556305,_0x46b7a0,_0xae2da9,_0x22db60,_0x14e920,_0x4caa42),this['_acknowledgedAwaitingRevision']=_0x489e40,this[_0x38113f(0x3d7)]=_0xa1396f,this['_injector']=_0x527752,this[_0x38113f(0x3a2)]=_0x55ef18,this[_0x38113f(0x1d7)]=_0x4dc534,this[_0x38113f(0x290)]=_0x4caa42,g(this,_0x38113f(0x132),_0x38113f(0x258));}[_0x281ba4(0x26d)](_0x4a8957){const _0x10f3f5=_0x281ba4;try{if(this['_handleRemoteChangesets'](_0x4a8957)[_0x10f3f5(0x34f)])throw Error(_0x10f3f5(0x1b5));if(this[_0x10f3f5(0x349)]([...this[_0x10f3f5(0x3d7)]][_0x10f3f5(0x139)]((_0x405014,_0x723a3)=>_0x405014['revision']-_0x723a3[_0x10f3f5(0x1ca)]))[_0x10f3f5(0x34f)])return this[_0x10f3f5(0x3d7)]=[],this[_0x10f3f5(0x27f)](),this[_0x10f3f5(0x350)][_0x10f3f5(0x20e)]({'from':this[_0x10f3f5(0x24a)](),'to':0x0}),this;let _0x468ed2=this[_0x10f3f5(0x104)],_0x4725b1=this['_pendingMutations'],_0xb70c51;if(_0x468ed2&&_0x4725b1[_0x10f3f5(0x16d)]!==0x0)_0xb70c51=this[_0x10f3f5(0x103)][_0x10f3f5(0x237)](j,this[_0x10f3f5(0x2f8)],this['type'],_0x468ed2,_0x4725b1,this['_handler'],void 0x0);else{if(_0x468ed2&&_0x4725b1[_0x10f3f5(0x16d)]===0x0)_0x468ed2[_0x10f3f5(0x32e)]=this[_0x10f3f5(0x24a)](),_0xb70c51=this[_0x10f3f5(0x103)]['createInstance'](A,this[_0x10f3f5(0x2f8)],this[_0x10f3f5(0x23b)],_0x468ed2,this['_handler']);else{if(_0x4725b1[_0x10f3f5(0x16d)]!==0x0){let _0x10cf49=this[_0x10f3f5(0x103)]['createInstance'](k,this[_0x10f3f5(0x2f8)],this[_0x10f3f5(0x23b)],_0x4725b1,this['_handler']);_0x10cf49[_0x10f3f5(0x3ad)](),_0xb70c51=_0x10cf49;}else _0xb70c51=this[_0x10f3f5(0x103)]['createInstance'](O,this[_0x10f3f5(0x2f8)],this[_0x10f3f5(0x23b)],this[_0x10f3f5(0x350)]);}}return _0xb70c51[_0x10f3f5(0x27f)](),_0xb70c51;}catch(_0x3fb07a){return this[_0x10f3f5(0x3a2)][_0x10f3f5(0x3b2)](_0x10f3f5(0x2a9),_0x10f3f5(0x24e),_0x3fb07a),this[_0x10f3f5(0x103)][_0x10f3f5(0x237)](M,this[_0x10f3f5(0x2f8)],this[_0x10f3f5(0x23b)],this[_0x10f3f5(0x104)],this['_pendingMutations'],this[_0x10f3f5(0x350)],!0x1);}}[_0x281ba4(0x349)](_0x3771fb){const _0x11ba37=_0x281ba4;this[_0x11ba37(0x315)]();for(let _0x584eac=0x0;_0x584eac<_0x3771fb[_0x11ba37(0x16d)];_0x584eac++){let _0x4552dc=_0x3771fb[_0x584eac],_0x8509d1=this['_getCurrentRevision']();if(!(_0x4552dc[_0x11ba37(0x1ca)]<=_0x8509d1)){if(_0x4552dc[_0x11ba37(0x1ca)]>_0x8509d1+0x1)return{'missingChangesets':!0x0};if(this[_0x11ba37(0x3c4)](_0x4552dc)){this[_0x11ba37(0x3a1)]();continue;}this['_transformAndApplyRemoteChangeset'](_0x4552dc),this[_0x11ba37(0x315)]();}}return{'missingChangesets':!0x1};}[_0x281ba4(0x39a)](_0x3012a5){const _0x2de16f=_0x281ba4;let _0x3a74cf=_0x3012a5,_0x12c648=this[_0x2de16f(0x104)];if(_0x12c648){let _0x2105fe=this['_transformService'][_0x2de16f(0x397)]([_0x3012a5],[_0x12c648],!0x1);if(!(0x0,e[_0x2de16f(0x36b)])(_0x2105fe))throw _0x2105fe[_0x2de16f(0x3b2)];_0x3a74cf=_0x2105fe[_0x2de16f(0x167)][0x0],_0x12c648=_0x2105fe[_0x2de16f(0x18f)][0x0];}let _0x2189cb=this[_0x2de16f(0x26e)];if(_0x2189cb['length']){let _0x50e9b=this[_0x2de16f(0x1d7)]['transformMutationsWithChangeset'](_0x3a74cf,_0x2189cb);if(!(0x0,e[_0x2de16f(0x3c6)])(_0x50e9b))throw _0x50e9b['error'];_0x3a74cf=_0x50e9b[_0x2de16f(0x167)],_0x2189cb=_0x50e9b[_0x2de16f(0x275)];}this['_executeRemoteChangeset'](_0x3a74cf),_0x12c648&&(_0x12c648['baseRev']=this[_0x2de16f(0x24a)]()),this[_0x2de16f(0x104)]=_0x12c648,this[_0x2de16f(0x26e)]=_0x2189cb;}[_0x281ba4(0x315)](){const _0x32a50c=_0x281ba4;if(!this['_awaitingChangeset']||this[_0x32a50c(0x327)]==null)return;let _0x2d07e9=this[_0x32a50c(0x24a)]();if(this[_0x32a50c(0x327)]<=_0x2d07e9)throw Error(_0x32a50c(0x34d)+this[_0x32a50c(0x327)]+'.');this['_acknowledgedAwaitingRevision']===_0x2d07e9+0x1&&this[_0x32a50c(0x3a1)]();}['_acknowledgeAwaiting'](){const _0xe2597e=_0x281ba4;this[_0xe2597e(0x19a)](),this['_awaitingChangeset']=null,this[_0xe2597e(0x327)]=null;}[_0x281ba4(0x3c4)](_0x5d2f21){const _0x2718cd=_0x281ba4;let _0x2be4e6=this['_awaitingChangeset'];return!_0x2be4e6||!_0x2be4e6[_0x2718cd(0x239)]||_0x2be4e6[_0x2718cd(0x376)]===null||_0x2be4e6[_0x2718cd(0x376)]===void 0x0?!0x1:_0x5d2f21[_0x2718cd(0x2f8)]===_0x2be4e6[_0x2718cd(0x2f8)]&&_0x5d2f21[_0x2718cd(0x239)]===_0x2be4e6[_0x2718cd(0x239)]&&_0x5d2f21['reqId']===_0x2be4e6[_0x2718cd(0x376)];}['resend'](){const _0x650584=_0x281ba4;throw Error(_0x650584(0x192));}[_0x281ba4(0x3d4)](_0x31875f){const _0x23b946=_0x281ba4;return this[_0x23b946(0x26e)]['push'](_0x31875f),this;}[_0x281ba4(0x26a)](_0x30ab2b){const _0x35d989=_0x281ba4;return this[_0x35d989(0x3d7)][_0x35d989(0x2a2)](_0x30ab2b),this;}[_0x281ba4(0x28a)](_0x33c7d8){const _0xc2cc2d=_0x281ba4;if(this[_0xc2cc2d(0x104)]){let _0x4d6cd9=this[_0xc2cc2d(0x24a)]();return _0x33c7d8['revision']<=_0x4d6cd9||(_0x4d6cd9+0x1===_0x33c7d8[_0xc2cc2d(0x1ca)]?(this[_0xc2cc2d(0x19a)](),this[_0xc2cc2d(0x104)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0xc2cc2d(0x327)]=_0x33c7d8[_0xc2cc2d(0x1ca)]),this;}if(_0x33c7d8[_0xc2cc2d(0x1ca)]<=this[_0xc2cc2d(0x24a)]())return this;throw Error(_0xc2cc2d(0x216));}[_0x281ba4(0x1d8)](_0x5d3805){const _0x1c62e0=_0x281ba4;return this[_0x1c62e0(0x22d)](!!(_0x5d3805!=null&&_0x5d3805[_0x1c62e0(0x39d)]));}[_0x281ba4(0x16f)](){return this;}[_0x281ba4(0x3a4)](){const _0x2d7118=_0x281ba4;return this[_0x2d7118(0x103)]['createInstance'](N,this[_0x2d7118(0x2f8)],this['type'],this[_0x2d7118(0x104)],this[_0x2d7118(0x26e)],this[_0x2d7118(0x350)]);}[_0x281ba4(0x329)](){return this;}[_0x281ba4(0x22d)](_0x38cf61){const _0x2b795d=_0x281ba4;return this[_0x2b795d(0x103)][_0x2b795d(0x237)](M,this['unitID'],this[_0x2b795d(0x23b)],this[_0x2b795d(0x104)],this[_0x2b795d(0x26e)],this[_0x2b795d(0x350)],_0x38cf61);}};P=y([v(0x7,(0x0,t['Inject'])(t[_0x281ba4(0x145)])),v(0x8,(0x0,t[_0x281ba4(0x241)])(e['RevisionService'])),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t[_0x281ba4(0x300)]),v(0xb,t['IUndoRedoService']),v(0xc,e[_0x281ba4(0x1eb)]),v(0xd,(0x0,t[_0x281ba4(0x325)])(S))],P);function Ue(_0x667d11,_0x9621e9,_0x5df0bb,_0x2e5388,_0xf3a2e1,_0x31bd87){const _0x49c45b=_0x281ba4;return _0x2e5388&&_0xf3a2e1[_0x49c45b(0x16d)]?_0x667d11[_0x49c45b(0x237)](j,_0x9621e9,_0x5df0bb,_0x2e5388,_0xf3a2e1,_0x31bd87,void 0x0):_0x2e5388?_0x667d11['createInstance'](A,_0x9621e9,_0x5df0bb,_0x2e5388,_0x31bd87):_0xf3a2e1[_0x49c45b(0x16d)]?_0x667d11[_0x49c45b(0x237)](k,_0x9621e9,_0x5df0bb,_0xf3a2e1,_0x31bd87):_0x667d11[_0x49c45b(0x237)](O,_0x9621e9,_0x5df0bb,_0x31bd87);}let F=class extends t['RxDisposable']{get[_0x281ba4(0x304)](){const _0x54dca5=_0x281ba4;return this[_0x54dca5(0x372)];}constructor(_0x18f88e,_0x22b3b9,_0x753960,_0x1e1efe,_0x491c42,_0xd9707e,_0x143d37,_0x18fbdd,_0x23724f,_0x441b3d,_0xdfb6b6,_0x4345b8,_0x19b5f9,_0x451364){const _0x17983b=_0x281ba4;super(),this[_0x17983b(0x2f8)]=_0x18f88e,this[_0x17983b(0x2cc)]=_0x22b3b9,this['_type']=_0x753960,this[_0x17983b(0x103)]=_0x1e1efe,this[_0x17983b(0x35c)]=_0x491c42,this[_0x17983b(0x166)]=_0xd9707e,this[_0x17983b(0x1d1)]=_0x143d37,this[_0x17983b(0x110)]=_0x18fbdd,this[_0x17983b(0x193)]=_0x23724f,this[_0x17983b(0x3a2)]=_0x441b3d,this['_commandService']=_0xdfb6b6,this[_0x17983b(0x203)]=_0x4345b8,this[_0x17983b(0x15e)]=_0x19b5f9,this['_localCacheService']=_0x451364,g(this,_0x17983b(0x2b9),new i[(_0x17983b(0x332))](null)),g(this,_0x17983b(0xd3),this[_0x17983b(0x2b9)]['asObservable']()),g(this,'_state',void 0x0),g(this,_0x17983b(0x2cd),!0x1),g(this,_0x17983b(0x14b),''),g(this,_0x17983b(0x330),0x0),g(this,_0x17983b(0x3a9),this[_0x17983b(0xd3)]['pipe']((0x0,i[_0x17983b(0x26b)])(_0x1f95fa=>_0x1f95fa?_0x1f95fa[_0x17983b(0x132)]:_0x17983b(0x2da)),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x17983b(0x351),!0x1),g(this,_0x17983b(0x255),[]);}async[_0x281ba4(0x2cf)](){const _0x21cd63=_0x281ba4;if(this[_0x21cd63(0x304)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x21cd63(0x379)]();}[_0x281ba4(0x2d3)](){const _0x168f77=_0x281ba4;return this[_0x168f77(0x2cd)]=!0x0,(0x0,t[_0x168f77(0x2c6)])(()=>{const _0x5e331e=_0x168f77;this[_0x5e331e(0x2cd)]=!0x1,this[_0x5e331e(0x3aa)]();});}[_0x281ba4(0x2b6)](_0x230a71){const _0x460250=_0x281ba4;this[_0x460250(0x22f)](_0x230a71);}['_updateState'](_0x5c225b){const _0x4ee147=_0x281ba4;this[_0x4ee147(0x372)]=_0x5c225b,this[_0x4ee147(0x2b9)]['next'](_0x5c225b);}async[_0x281ba4(0x379)](){const _0x1bcbd1=_0x281ba4;if(this[_0x1bcbd1(0x126)](await this[_0x1bcbd1(0x31f)]()),this['_singleActiveUnitService']){var _0x5645d6;(_0x5645d6=this[_0x1bcbd1(0x15e)])==null||_0x5645d6[_0x1bcbd1(0x380)](this[_0x1bcbd1(0x2f8)]),this[_0x1bcbd1(0x143)](this[_0x1bcbd1(0x15e)][_0x1bcbd1(0x343)](this['unitID'])[_0x1bcbd1(0x2a5)](_0x392cdd=>{const _0x1c7fef=_0x1bcbd1;this[_0x1c7fef(0x3a2)]['debug'](_0x1c7fef(0x361),_0x1c7fef(0xd6),_0x392cdd),_0x392cdd===0x1?(this[_0x1c7fef(0x110)][_0x1c7fef(0x298)]({'id':_0x1c7fef(0xf3)}),this[_0x1c7fef(0x203)][_0x1c7fef(0x30d)](new r[(_0x1c7fef(0x10a))](this[_0x1c7fef(0x2f8)])['id'],!0x1),this['_permissionService'][_0x1c7fef(0x12b)](!0x1)):(this[_0x1c7fef(0x203)][_0x1c7fef(0x30d)](new r[(_0x1c7fef(0x10a))](this[_0x1c7fef(0x2f8)])['id'],!0x0),this[_0x1c7fef(0x203)]['setShowComponents'](!0x0));}));}let _0x106926=!0x1;return this['disposeWithMe'](this['session'][_0x1bcbd1(0x1a6)][_0x1bcbd1(0x2a5)](_0x16da46=>{const _0x366e3c=_0x1bcbd1;_0x16da46===0x3?this[_0x366e3c(0x33f)](_0x106926):_0x16da46===0x2&&(_0x106926=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x1bcbd1(0x2cc)][_0x1bcbd1(0x22c)]['subscribe'](_0x51d247=>{const _0x244a61=_0x1bcbd1;try{switch(_0x51d247[_0x244a61(0x35a)]){case e[_0x244a61(0x137)][_0x244a61(0xcf)]:this[_0x244a61(0x28d)]((0x0,e['parseProtocolChangeset'])(_0x51d247[_0x244a61(0x346)]));break;case e[_0x244a61(0x137)]['CHANGESET_ACK']:this['_onRemoteACK'](_0x51d247[_0x244a61(0x346)]);break;case e[_0x244a61(0x137)][_0x244a61(0x3c7)]:this[_0x244a61(0x1b4)]();break;case e[_0x244a61(0x137)][_0x244a61(0x3e2)]:this[_0x244a61(0x266)](_0x51d247['data']);break;case e[_0x244a61(0x137)][_0x244a61(0x2fd)]:this[_0x244a61(0x316)](_0x51d247['data'][_0x244a61(0x395)][_0x244a61(0x26b)](_0x5af48=>(0x0,e['parseProtocolChangeset'])(_0x5af48)));break;case e[_0x244a61(0x137)][_0x244a61(0x3d6)]:this[_0x244a61(0x1b4)]({'isPermissionRej':!0x0});break;case e['CollaborationEvent'][_0x244a61(0x180)]:break;}}catch(_0x276e6b){throw console[_0x244a61(0x3b2)](_0x244a61(0x108),_0x276e6b),_0x276e6b;}})),this['_state'];}[_0x281ba4(0x202)](){const _0x1dc213=_0x281ba4;this[_0x1dc213(0x351)]=!0x1;}[_0x281ba4(0x1f0)](){const _0x2c522f=_0x281ba4;if(this[_0x2c522f(0x351)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x2c522f(0x351)]=!0x0;}[_0x281ba4(0x22f)](_0x4bf62e){const _0x8efaba=_0x281ba4;this['_lockTransition'](),this['_updateState'](this[_0x8efaba(0x372)]['appendMutation'](_0x4bf62e)),this[_0x8efaba(0x202)]();}[_0x281ba4(0x28d)](_0x25de90){const _0xfa9d34=_0x281ba4;if(!(_0x25de90[_0xfa9d34(0x1ca)]<=this[_0xfa9d34(0x1d1)][_0xfa9d34(0xcc)](this[_0xfa9d34(0x2f8)]))){if(this['_collaborationPaused']){this[_0xfa9d34(0x255)][_0xfa9d34(0x2a2)](_0x25de90);return;}this['_applyRemoteChangeset'](_0x25de90);}}[_0x281ba4(0x3aa)](){const _0xe5b25d=_0x281ba4;this[_0xe5b25d(0x255)][_0xe5b25d(0x179)](_0x10e211=>this[_0xe5b25d(0xc6)](_0x10e211)),this[_0xe5b25d(0x255)]=[];}[_0x281ba4(0xc6)](_0x373991){const _0xca430d=_0x281ba4;let _0x1d51f3=this[_0xca430d(0x35c)][_0xca430d(0x34c)][_0xca430d(0x2bb)](this['_compressMutationService']['interceptor'][_0xca430d(0x114)]()[_0xca430d(0x205)])(_0x373991[_0xca430d(0x2b5)],null)||_0x373991[_0xca430d(0x2b5)],_0x505706={..._0x373991,'mutations':_0x1d51f3};this[_0xca430d(0x1f0)](),this[_0xca430d(0x126)](this[_0xca430d(0x372)][_0xca430d(0x26a)](_0x505706)),this[_0xca430d(0x202)]();}[_0x281ba4(0x19b)](_0x41e7fb){const _0x1ab588=_0x281ba4;this[_0x1ab588(0x1f0)](),this[_0x1ab588(0x126)](this[_0x1ab588(0x372)][_0x1ab588(0x28a)](_0x41e7fb)),this[_0x1ab588(0x202)]();}[_0x281ba4(0x1b4)](_0x18eff1){const _0x16529d=_0x281ba4;this['_lockTransition'](),this['_updateState'](this[_0x16529d(0x372)]['onRemoteRej'](_0x18eff1)),this[_0x16529d(0x202)]();}[_0x281ba4(0x266)](_0x2265d9){const _0x1da1ba=_0x281ba4;this[_0x1da1ba(0x1f0)](),this[_0x1da1ba(0x126)](this[_0x1da1ba(0x372)][_0x1da1ba(0x16f)](_0x2265d9)),this['_unlockTransition']();}[_0x281ba4(0x316)](_0x1907d1){const _0x9f276a=_0x281ba4;if(!(this[_0x9f276a(0x372)]instanceof P))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x405b70=_0x1907d1[_0x9f276a(0x26b)](_0x8c3cf1=>{const _0x228d62=_0x9f276a;let _0x5eeb3e=this[_0x228d62(0x35c)][_0x228d62(0x34c)][_0x228d62(0x2bb)](this[_0x228d62(0x35c)]['interceptor'][_0x228d62(0x114)]()[_0x228d62(0x205)])(_0x8c3cf1[_0x228d62(0x2b5)],null)||_0x8c3cf1[_0x228d62(0x2b5)];return{..._0x8c3cf1,'mutations':_0x5eeb3e};});this[_0x9f276a(0x1f0)](),this['_updateState'](this[_0x9f276a(0x372)]['onMissedChangesetFetched'](_0x405b70)),this['_unlockTransition']();}[_0x281ba4(0x377)](){const _0x2ad0ab=_0x281ba4;this[_0x2ad0ab(0x1f0)](),this['_updateState'](this['_state'][_0x2ad0ab(0x3a4)]()),this[_0x2ad0ab(0x202)]();}[_0x281ba4(0x33f)](_0x3162e3=!0x1){const _0x47d1cb=_0x281ba4;this[_0x47d1cb(0x1f0)](),this[_0x47d1cb(0x126)](this[_0x47d1cb(0x372)][_0x47d1cb(0x329)]()),this['_unlockTransition']();let _0x17407e=this[_0x47d1cb(0x372)];_0x3162e3&&_0x17407e instanceof O&&(this[_0x47d1cb(0x1f0)](),this[_0x47d1cb(0x126)](_0x17407e['fetchMiss']()),this[_0x47d1cb(0x202)]());}async[_0x281ba4(0x31f)](){return new Promise(_0x201681=>{const _0x18cd02=_0x2431;this[_0x18cd02(0x2cc)]['sessionStatus$'][_0x18cd02(0x21e)]((0x0,i[_0x18cd02(0x2ce)])(0x1))[_0x18cd02(0x2a5)](async _0x445696=>{const _0x3bec6f=_0x18cd02;_0x201681(await this[_0x3bec6f(0x36c)](_0x445696===0x3));});});}['_createHandler'](){const _0x101427=_0x281ba4;let _0x1e21ae=this[_0x101427(0x2f8)];return{'onStateChange':(_0x159987,_0x397307)=>{const _0x237487=_0x101427;if(_0x159987!==this['_state'])throw Error(_0x237487(0x172)+_0x159987['status']+_0x237487(0x3e0)+_0x397307['status']+_0x237487(0xc8)+this[_0x237487(0x372)]['status']);this[_0x237487(0x126)](_0x397307);},'onSendChangeset':_0xa30207=>{const _0x2814f2=_0x101427;_0xa30207[_0x2814f2(0x239)]||(_0xa30207[_0x2814f2(0x239)]=this[_0x2814f2(0x14b)],_0xa30207[_0x2814f2(0x376)]=++this[_0x2814f2(0x330)]);let _0x5e12ac={'eventID':e[_0x2814f2(0x137)][_0x2814f2(0x14a)],'data':{'unitID':_0xa30207[_0x2814f2(0x2f8)],'unitType':this[_0x2814f2(0x32c)],'changeset':_0xa30207,'memberID':this[_0x2814f2(0x2cc)][_0x2814f2(0x12f)]()}};this[_0x2814f2(0x2cc)][_0x2814f2(0x396)](_0x5e12ac,this[_0x2814f2(0x2f8)]);},'onMissingChangesets':({from:_0x3683c3,to:_0x4672f1})=>{const _0x280a0d=_0x101427;this[_0x280a0d(0x3a2)][_0x280a0d(0x2e4)](_0x280a0d(0x361),'fetching\x20missing\x20changesets\x20from\x20'+_0x3683c3+'\x20to\x20'+_0x4672f1);let _0x5c6025={'eventID':e[_0x280a0d(0x137)][_0x280a0d(0x2fa)],'data':{'unitID':_0x1e21ae,'unitType':this[_0x280a0d(0x32c)],'from':_0x3683c3,'to':_0x4672f1}};this[_0x280a0d(0x2cc)][_0x280a0d(0x396)](_0x5c6025,this[_0x280a0d(0x2f8)]);}};}async['_createInitialStateImpl'](_0x4961a8){const _0x10fdf7=_0x281ba4;var _0x550790,_0x21a847,_0xe2c4c1;let _0x181bc1=await((_0x550790=this[_0x10fdf7(0x1ed)])==null?void 0x0:_0x550790[_0x10fdf7(0x1bb)](this['unitID'])),_0x265b4c=(_0x21a847=_0x181bc1==null?void 0x0:_0x181bc1[_0x10fdf7(0x2b5)])==null?[]:_0x21a847,_0x1c7e07=(_0xe2c4c1=_0x181bc1==null?void 0x0:_0x181bc1[_0x10fdf7(0x1fb)])==null?null:_0xe2c4c1,_0x3a88ee=!!(_0x1c7e07!=null&&_0x1c7e07[_0x10fdf7(0x239)])&&!!(_0x1c7e07!=null&&_0x1c7e07[_0x10fdf7(0x376)]);this[_0x10fdf7(0x14b)]=_0x3a88ee?_0x1c7e07[_0x10fdf7(0x239)]:(0x0,e[_0x10fdf7(0x245)])(),this['_changesetReqId']=_0x3a88ee?_0x1c7e07['reqId']:0x0;let _0x2dd2e5=this[_0x10fdf7(0x2f8)];try{this[_0x10fdf7(0x153)](_0x1c7e07,_0x265b4c);}catch(_0x222f88){this[_0x10fdf7(0x3a2)]['error'](_0x222f88);}let _0x20c116=this['_createHandler']();if(_0x4961a8){let _0x279cde=Ue(this[_0x10fdf7(0x103)],_0x2dd2e5,this[_0x10fdf7(0x32c)],_0x1c7e07,_0x265b4c,_0x20c116);return _0x279cde instanceof k?_0x279cde['_schedule']():(_0x279cde instanceof j||_0x279cde instanceof A)&&_0x279cde['resend'](),_0x279cde;}return this[_0x10fdf7(0x103)][_0x10fdf7(0x237)](N,_0x2dd2e5,this[_0x10fdf7(0x32c)],_0x1c7e07,_0x265b4c,_0x20c116);}[_0x281ba4(0x153)](_0x590f20,_0x57b58f){const _0x35142e=_0x281ba4;var _0x351d6a,_0xf5f5ee;let _0x2e95f3=this[_0x35142e(0x35c)][_0x35142e(0x34c)]['fetchThroughInterceptors'](this[_0x35142e(0x35c)][_0x35142e(0x34c)][_0x35142e(0x114)]()[_0x35142e(0x205)]);(_0x351d6a=_0x2e95f3((_0x590f20==null?void 0x0:_0x590f20[_0x35142e(0x2b5)])||[],null))==null||_0x351d6a['forEach'](_0x54fad7=>this[_0x35142e(0x19d)][_0x35142e(0x344)](_0x54fad7['id'],_0x54fad7[_0x35142e(0x390)])),(_0xf5f5ee=_0x2e95f3(_0x57b58f||[],null))==null||_0xf5f5ee[_0x35142e(0x179)](_0x5d2575=>this[_0x35142e(0x19d)][_0x35142e(0x344)](_0x5d2575['id'],_0x5d2575[_0x35142e(0x390)]));}};F=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(t['Injector'])),v(0x4,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x204)])),v(0x5,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x1f9)])),v(0x6,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t[_0x281ba4(0x300)]),v(0xb,t[_0x281ba4(0x26f)]),v(0xc,(0x0,t[_0x281ba4(0x325)])(w)),v(0xd,(0x0,t[_0x281ba4(0x325)])(S))],F);let I=class extends F{constructor(_0x1b51e3,_0x3accda,_0x275cfa,_0x435b81,_0x2c9b74,_0x8bb57,_0x47c1f6,_0x4c6476,_0x1037fc,_0x55b1b0,_0x3dc46f,_0x3e759a,_0x444a8b,_0x53cab5,_0xb112c7){const _0x4d1b78=_0x281ba4;super(_0x1b51e3,_0x275cfa,_0x3accda,_0x435b81,_0x2c9b74,_0x8bb57,_0x47c1f6,_0x4c6476,_0x1037fc,_0x55b1b0,_0x3dc46f,_0x3e759a,_0x53cab5,_0xb112c7),this['unitID']=_0x1b51e3,this[_0x4d1b78(0x23b)]=_0x3accda,this[_0x4d1b78(0x24f)]=_0x444a8b,g(this,_0x4d1b78(0x173),null);}[_0x281ba4(0x3bc)](_0x5c85f4){const _0x1df208=_0x281ba4;this[_0x1df208(0x173)]=_0x5c85f4;}[_0x281ba4(0x25c)](){const _0x5161e9=_0x281ba4;this[_0x5161e9(0x173)]=null,super[_0x5161e9(0x25c)]();}[_0x281ba4(0x162)](){const _0x39ecdf=_0x281ba4;let _0x400d82=super['_createHandler']();return _0x400d82['onTransformIME']=_0xd02a08=>{const _0x540fe1=_0x2431;var _0x7b7acf,_0x4ca853;return(_0x7b7acf=this[_0x540fe1(0x173)])==null||(_0x4ca853=_0x7b7acf['onTransformIME'])==null?void 0x0:_0x4ca853['call'](_0x7b7acf,_0xd02a08);},_0x400d82[_0x39ecdf(0x17e)]=_0x43c936=>{const _0x502ce1=_0x39ecdf;var _0x317395,_0x2f0701;return(_0x317395=this[_0x502ce1(0x173)])==null||(_0x2f0701=_0x317395['onTransformState'])==null?void 0x0:_0x2f0701['call'](_0x317395,_0x43c936);},_0x400d82['onTransformSelections']=_0x5ab090=>{const _0xa32bff=_0x39ecdf;var _0xb8595e,_0x1a03a8;return(_0xb8595e=this[_0xa32bff(0x173)])==null||(_0x1a03a8=_0xb8595e[_0xa32bff(0x3c2)])==null?void 0x0:_0x1a03a8['call'](_0xb8595e,_0x5ab090);},_0x400d82[_0x39ecdf(0x102)]=_0x258827=>{const _0x3fe0ea=_0x39ecdf;var _0x3c57d1,_0xbf379d;return(_0x3c57d1=this[_0x3fe0ea(0x173)])==null||(_0xbf379d=_0x3c57d1[_0x3fe0ea(0x102)])==null?void 0x0:_0xbf379d[_0x3fe0ea(0x35d)](_0x3c57d1,_0x258827);},_0x400d82[_0x39ecdf(0x186)]=_0x29b5c4=>{const _0xb493dd=_0x39ecdf;var _0x5561c2,_0x4ca0ba,_0x290e33;return(_0x5561c2=(_0x4ca0ba=this[_0xb493dd(0x173)])==null||(_0x290e33=_0x4ca0ba['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x290e33[_0xb493dd(0x35d)](_0x4ca0ba,_0x29b5c4))==null?_0x29b5c4:_0x5561c2;},_0x400d82[_0x39ecdf(0x134)]=_0x4555d1=>{const _0x4af162=_0x39ecdf;var _0x2f33c3,_0x1ff1f2,_0x264c16;return(_0x2f33c3=(_0x1ff1f2=this[_0x4af162(0x173)])==null||(_0x264c16=_0x1ff1f2[_0x4af162(0x134)])==null?void 0x0:_0x264c16[_0x4af162(0x35d)](_0x1ff1f2,_0x4555d1))==null?_0x4555d1:_0x2f33c3;},_0x400d82;}async['_init'](){const _0x57d44e=_0x281ba4;let _0x19ceb8=await super[_0x57d44e(0x379)]();return this[_0x57d44e(0x143)](this['_docStateChangeManagerService'][_0x57d44e(0x1c0)][_0x57d44e(0x2a5)](_0x85e407=>{const _0x4fa270=_0x57d44e;if(_0x85e407==null||_0x85e407[_0x4fa270(0x118)]!==this[_0x4fa270(0x2f8)])return;let {commandId:_0x32718d,redoState:_0x3ea1c3,unitId:_0x47daa2}=_0x85e407,_0x59016f={'id':_0x32718d,'type':t[_0x4fa270(0xde)][_0x4fa270(0x276)],'params':{'unitId':_0x47daa2,'actions':_0x3ea1c3[_0x4fa270(0x2df)],'textRanges':null}};this[_0x4fa270(0x22f)](_0x59016f);})),this[_0x57d44e(0x143)](this[_0x57d44e(0x19d)][_0x57d44e(0x265)]((_0x5e6344,_0x1d9e11)=>{const _0x525fd0=_0x57d44e;if(_0x5e6344[_0x525fd0(0x23b)]!==t['CommandType'][_0x525fd0(0x276)]||_0x1d9e11!=null&&_0x1d9e11[_0x525fd0(0x27b)]||_0x1d9e11!=null&&_0x1d9e11[_0x525fd0(0x31c)]||_0x5e6344['id']===n[_0x525fd0(0x1c8)]['id'])return;let _0x522e2d=_0x5e6344[_0x525fd0(0x390)];if((_0x522e2d==null?void 0x0:_0x522e2d[_0x525fd0(0x118)])!==this[_0x525fd0(0x2f8)])return;let _0x3af794=_0x5e6344,_0x3cfd2a=this[_0x525fd0(0x35c)][_0x525fd0(0x34c)]['fetchThroughInterceptors'](this[_0x525fd0(0x35c)]['interceptor'][_0x525fd0(0x114)]()[_0x525fd0(0xf9)])([_0x3af794],this[_0x525fd0(0x193)])||[_0x3af794];this[_0x525fd0(0x22f)](_0x3cfd2a[0x0]);})),_0x19ceb8;}};I=y([v(0x3,(0x0,t['Inject'])(t[_0x281ba4(0x145)])),v(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x1f9)])),v(0x6,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(_)),v(0x8,t[_0x281ba4(0x1ad)]),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t[_0x281ba4(0x300)]),v(0xb,t[_0x281ba4(0x26f)]),v(0xc,(0x0,t[_0x281ba4(0x241)])(n[_0x281ba4(0x191)])),v(0xd,(0x0,t[_0x281ba4(0x325)])(w)),v(0xe,(0x0,t[_0x281ba4(0x325)])(S))],I);let L=class extends F{constructor(_0x5835b2,_0xd75170,_0x50f8cf,_0x3fce9e,_0x2fcb6d,_0x293b21,_0x1349fb,_0x5d9760,_0x42bd3f,_0x2e501c,_0x38fd83,_0x364d44,_0x1e27a7,_0x1949be){const _0x41ffd2=_0x281ba4;super(_0x5835b2,_0x50f8cf,_0xd75170,_0x3fce9e,_0x2fcb6d,_0x293b21,_0x1349fb,_0x5d9760,_0x42bd3f,_0x2e501c,_0x38fd83,_0x364d44,_0x1e27a7,_0x1949be),this['unitID']=_0x5835b2,this[_0x41ffd2(0x23b)]=_0xd75170;}async['_init'](){const _0x1a762b=_0x281ba4;let _0x5e5e91=await super[_0x1a762b(0x379)]();return this[_0x1a762b(0x143)](this['_commandService'][_0x1a762b(0x265)]((_0x1804ea,_0x3a190c)=>{const _0x242d3f=_0x1a762b;if(_0x1804ea['type']!==t['CommandType'][_0x242d3f(0x276)]||_0x3a190c!=null&&_0x3a190c[_0x242d3f(0x27b)]||_0x3a190c!=null&&_0x3a190c['onlyLocal'])return;let _0x10e879=_0x1804ea[_0x242d3f(0x390)];if((_0x10e879==null?void 0x0:_0x10e879[_0x242d3f(0x118)])!==this[_0x242d3f(0x2f8)])return;let _0x1850d3=_0x1804ea,_0x1c0400=this[_0x242d3f(0x35c)][_0x242d3f(0x34c)][_0x242d3f(0x2bb)](this[_0x242d3f(0x35c)]['interceptor'][_0x242d3f(0x114)]()[_0x242d3f(0xf9)])([_0x1850d3],this[_0x242d3f(0x193)])||[_0x1850d3];this[_0x242d3f(0x22f)](_0x1c0400[0x0]);})),_0x5e5e91;}};L=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x4,(0x0,t['Inject'])(e[_0x281ba4(0x204)])),v(0x5,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x1f9)])),v(0x6,(0x0,t['Inject'])(e[_0x281ba4(0x2cb)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t['ICommandService']),v(0xb,t[_0x281ba4(0x26f)]),v(0xc,(0x0,t['Optional'])(w)),v(0xd,(0x0,t['Optional'])(S))],L);let R=class extends F{constructor(_0x4158ed,_0x223a12,_0x348ff8,_0x49e27f,_0x474037,_0x47e795,_0x7e967a,_0x16b7e1,_0x259e29,_0x460d15,_0x4bc1a2,_0x1d325b,_0x445697,_0x2fc418,_0x441508){const _0x17e2c8=_0x281ba4;super(_0x4158ed,_0x348ff8,_0x223a12,_0x49e27f,_0x474037,_0x47e795,_0x7e967a,_0x259e29,_0x460d15,_0x4bc1a2,_0x1d325b,_0x445697,_0x2fc418,_0x441508),this['unitID']=_0x4158ed,this[_0x17e2c8(0x23b)]=_0x223a12,this[_0x17e2c8(0x2a3)]=_0x16b7e1;}[_0x281ba4(0x162)](){const _0x2a3ac5=_0x281ba4;let _0x4ee0ae=super[_0x2a3ac5(0x162)]();return _0x4ee0ae[_0x2a3ac5(0x3c2)]=_0x5189d2=>this['_sheetTransformSelectionsService']['transformSelections'](_0x5189d2),_0x4ee0ae;}async[_0x281ba4(0x379)](){const _0x5e63e7=_0x281ba4;let _0xb2789d=await super[_0x5e63e7(0x379)]();return this[_0x5e63e7(0x143)](this[_0x5e63e7(0x19d)][_0x5e63e7(0x265)]((_0x3905df,_0x92e1d6)=>{const _0x527c67=_0x5e63e7;if(_0x3905df[_0x527c67(0x23b)]!==t['CommandType'][_0x527c67(0x276)]||_0x92e1d6!=null&&_0x92e1d6[_0x527c67(0x27b)]||_0x92e1d6!=null&&_0x92e1d6[_0x527c67(0x31c)])return;let _0x64e4b1=_0x3905df['params'];if((_0x64e4b1==null?void 0x0:_0x64e4b1[_0x527c67(0x118)])!==this['unitID'])return;let _0x19c984=_0x3905df,_0x28aed1=this[_0x527c67(0x35c)][_0x527c67(0x34c)][_0x527c67(0x2bb)](this['_compressMutationService'][_0x527c67(0x34c)][_0x527c67(0x114)]()[_0x527c67(0xf9)])([_0x19c984],this['_univerInstanceService'])||[_0x19c984];this[_0x527c67(0x22f)](_0x28aed1[0x0]);})),_0xb2789d;}};R=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x4,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x204)])),v(0x5,(0x0,t[_0x281ba4(0x241)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x281ba4(0x2cb)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(C)),v(0x8,(0x0,t[_0x281ba4(0x241)])(_)),v(0x9,t[_0x281ba4(0x1ad)]),v(0xa,t[_0x281ba4(0x150)]),v(0xb,t[_0x281ba4(0x300)]),v(0xc,t[_0x281ba4(0x26f)]),v(0xd,(0x0,t['Optional'])(w)),v(0xe,(0x0,t[_0x281ba4(0x325)])(S))],R);let z=class extends F{constructor(_0x30a37d,_0x1286c8,_0x2ef8aa,_0x22618d,_0x33e081,_0xb3616d,_0x581b43,_0x322122,_0x1c4c68,_0x1dde77,_0x1bb6e5,_0x43a3fa,_0x14839d,_0x1b0aab){const _0x39725b=_0x281ba4;super(_0x30a37d,_0x2ef8aa,_0x1286c8,_0x22618d,_0x33e081,_0xb3616d,_0x581b43,_0x322122,_0x1c4c68,_0x1dde77,_0x1bb6e5,_0x43a3fa,_0x14839d,_0x1b0aab),this[_0x39725b(0x2f8)]=_0x30a37d,this[_0x39725b(0x23b)]=_0x1286c8;}async[_0x281ba4(0x379)](){const _0x1be1c2=_0x281ba4;let _0x2b39fe=await super[_0x1be1c2(0x379)]();return this['disposeWithMe'](this[_0x1be1c2(0x19d)][_0x1be1c2(0x265)]((_0x129181,_0x44c81f)=>{const _0x59daf5=_0x1be1c2;if(_0x129181[_0x59daf5(0x23b)]!==t['CommandType'][_0x59daf5(0x276)]||_0x44c81f!=null&&_0x44c81f[_0x59daf5(0x27b)]||_0x44c81f!=null&&_0x44c81f[_0x59daf5(0x31c)])return;let _0x425ebc=_0x129181[_0x59daf5(0x390)];if((_0x425ebc==null?void 0x0:_0x425ebc[_0x59daf5(0x118)])!==this['unitID'])return;let _0x1e3813=_0x129181,_0x191f95=this[_0x59daf5(0x35c)][_0x59daf5(0x34c)][_0x59daf5(0x2bb)](this['_compressMutationService'][_0x59daf5(0x34c)][_0x59daf5(0x114)]()['COMPRESS_MUTATION_SEND'])([_0x1e3813],this[_0x59daf5(0x193)])||[_0x1e3813];this[_0x59daf5(0x22f)](_0x191f95[0x0]);})),_0x2b39fe;}};function _0x4951(){const _0x690ddd=['debug','b64DecodeUnicode','cmd','string','univer-pro.collaboration-client-adapter-service','incrementRevOfUnit','updateMember','sequenceExecute','isInternalEditorID','SUBMIT_CHANGESET_TIMEOUT','CollaborationImageIoService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','SOCKET_FAILED','SetSelectionsOperation','endsWith','[DataLoaderService]','snapshotServerUrl','title','_clearScheduledTask','ONLINE','unitID','_isPermissionRej','FETCH_MISSING','getUnitType','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','PSEUDO_FETCH_MISSING_RESULT','ISocketService','DataLoaderService','ICommandService','&assign=','target','getCurrentSelections','state','_status$','function','members','updateCollaborator','close','hasOwnProperty','getCollabEntity$','Quantity','updatePermissionPoint','size','_substituteRedoStack','getGlobalObject','unitType','getTime','[OfflineState]:\x20received\x20acknowledgement.','UniverInstanceType','_acknowledgeAwaitingIfReady','_onFetchMissResult','_unitInfo$','OTHER_CLIENTS_EDITING','SheetsSelectionsService','originalMeta','MoveSlidePageMutation','onlyLocal','DEFAULT_WS_SESSION_TICKET_URL','142367sPAkxh','_createInitialState','loadBase','getConfig','DocCollaborationEntity','get','candidateSocket','Optional','_registerDependencies','_acknowledgedAwaitingRevision','onload','toggleOnline','fetchMiss','then','_type','randomBytes','baseRev','list','_changesetReqId','socketMessageSubscription','BehaviorSubject','telemetry\x20info\x20is\x20not\x20initialized','selections','resourceIDs','SYNCED','UUID','sessionStatus','url','_members$','headers','INGEST','clear','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_toggleOnline','549145xvzRjo','loadUnitOfRevision','retryConnectingTimer','getUnitStatus$','executeCommand','origin','data','_tryReconnect','UnitStatus','_handleRemoteChangesets','_sender','sendChangesetTimeout','interceptor','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','getUnitId','missingChangesets','_handler','_transitionLocked','UNIVER_SLIDE','session.room-cnt-exceeds','_scheduleCollaborationTimeoutTimer','Module','/-/object/list','getCurrentUser','_sendHeartbeat','getLatestCsReqIdBySid','eventID','_checkMissing','_compressMutationService','call','10619080djaamt','values','addImageSourceCache','[CollaborationEntity]','copyFileMeta','removeMember','Univer','_sessionChannels','concatBytes','getActiveSheet','resolveWithBasePath','infoRsp','toStringTag','isTransformChangesetsSuccess','_createInitialStateImpl','[OfflineState]:\x20received\x20rejection.','People','/universer-api/comb','HEARTBEAT_TIMEOUT_KEY','_members','_state','session.join-failed','_roomCreated$','_getCtorByUniverInstanceType','reqId','_toggleOffline','_stopTelemetryCollaborationNewChangeset','_init','startsWith','_resendTimer','_sendingTimer','listCollaborators','UNIVER_BASE','_networkConditionService','editingUnit','_sessionStatus$','getTypeOfUnitAdded$','LIVESHARE_OPERATION','?url=','range','_memberService','_getSignURL','getLocalCacheKey','getFocusedUnit','_replaceFileID','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','[CollaborationSessionService]','online$','_transformStateCache','/object','params','ISnapshotServerService','file','closeSession','hostname','changesets','send','transformChangesets','/universer-api/snapshot/','HELLO','_transformAndApplyRemoteChangeset','textRanges','UnitEmbedded','isPermissionRej','_initRequestHeader','1149448AYDuJU','liveShareNewHost','_acknowledgeAwaiting','_logService','CmdRspCode','toggleOffline','AuthzIoHttpService','univer-pro.collaboration-client.network-condition.service','/role','_joinRoom','status$','_exhaustRemoteChangesetQueue','_disableEditing','min','_schedule','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','PERSON','__splitChunk__','INetworkConditionService','error','compose','FAIL','enableOfflineEditing','Tools','_collaborationSessionService','[PendingState]:\x20received\x20rejection.','subject','subUnitId','POST','addHandlerCallback','entries','accept','post','cbc','find','onTransformSelections','_roomMembers','_isEchoedAwaitingChangeset','_showConflictNotification','isTransformMutationsWithChangesetSuccess','CHANGESET_REJ','leaveEvent','/universer-api/authz','_resendTimeout','toRemote','RemoveSlidePageMutation','_cfgEnableObjInherit','/-/object/-/batch_allowed','AwaitingWithPendingState','_userManagerService','_rescheduleHeartbeat','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LIVESHARE_TERMINATE','appendMutation','_shouldReportTelemetry','PERMISSION_REJ','_queuedRemoteChangesets','11sSsJBw','iterator','__Key__','userID','enableAuthServer','saveSnapshot','Subject','Workbook','\x0aAfter:\x20','SHOULD_CLOSE_CONN','CHANGESET_SHOULD_RETRY','CollaborationStatus','collabSubmitChangesetUrl','JOIN_ROOM_NOT_EXISTS','_applyRemoteChangeset','liveShareOperation','\x0aCurrent:\x20','uniscriptRunEvent','IConfigService','result','getCurrentRevOfUnit','LOCAL_CACHE_INTERVAL','joinEvent','NEW_CHANGESETS','_getUploadFileURL','sendHeartbeatTimer','next','state$','_clearCollaborationTimeoutTimer','IImageIoService','editing\x20status\x20changed\x20to','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','endpoint','routeKey','USERS_LEAVE','CONFLICT','socket$','4408893lDZkKN','CommandType','getSheetBlock','getAllMembers','LIVESHARE_FETCH_OPERATIONS','onTransformIME','BASE64','Disposable','CombCmd','_change$','newCsEvent','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','splice','_resendWithTimeout','HEARTBEAT_TIMEOUT','RETRY_CONNECTING_MAX_COUNT','deepClone','UserManagerService','isCompositionEnd','_startTelemetryCollaborationNewChangeset','_snapshotServerService','fromCharCode','OTHER_CLIENT_EDITING','_event$','IContextService','_clearRetryConnectingTimer','setWaitCount','stringify','COMPRESS_MUTATION_SEND','AttachmentSourceType','collaboration-client.config','listRoles','FileSource','_HTTPService','unitLoaded$','_createSocket','initWorkbookPermissionChange','onSyncEditingCollabCursor','_injector','_awaitingChangeset','_resolveSessionIdentity','objectType','commentUpdateEvent','Error\x20on\x20receiving\x20event','dispose$','WorkbookEditablePermission','NOT_COLLAB','collaboratorID','7522QyyTbM','uploadFileServerUrl','_removeRoom','_eventService','/unit/','Failed\x20to\x20update\x20permission\x20point','getTypeOfUnitDisposed$','getInterceptPoints','ws://127.0.0.1:8000/universer-api/comb/connect','encode','LOCAL_CACHE_INTERVAL_KEY','unitId','members$','/universer-api/uniscript','text-x','localUnitId','objects','transformSelections','upload','JOINING','IAuthzIoService','/universer-api/stream/file/upload','registerHTTPInterceptor','object','has','_updateState','CollaborationSession','_syncEditingCollabCursor','filter','_hasSessionsForEndpoint','setShowComponents','loadSlide','put','COLLABORATION_ENDPOINT_INVALID','getMemberID','132VwNJQV','saveAttachment','status','BaseCollaborationEntity','onTransformRemoteChangesetByStateCache','_onRecvEvent','number','CollaborationEvent','LocalUndoRedoService','sort','ISingleActiveUnitService','getCfgEnableObjInherit','/universer-api/oidc/authpage','FileId','_unitLoaded$','version','parseChangesetToProtocol','pluginName','CollaborationUIEventService','disposeWithMe','objectActions','Injector','_upload','complete','_executeRemoteChangeset','socketService','SUBMIT_CHANGESET','_changesetSessionId','JOIN','_listenToNetworkCondition','base-ui.attachment-io.service','LEAVE','ILogService','some','setCfgEnableObjInherit','_replayCachedMutations','getValue','max','responseType','UNIVER_DOC','_scheduleCompleteTimestamp','onStateChange','confirm','override','/object/','readAsDataURL','_singleActiveUnitService','{fileID}','createIdentifier','collaboration-client.local-cache-service','_createHandler','toLocal','slice','_redoStacks','_localeService','c1Prime','endpointKey','4MOFwiT','univer-pro.collaboration-client.single-active-unit-service','&source=','csAckEvent','length','sheets','onRemoteRetry','isArray','ERROR_EXCEED_SIZE','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_handlerCallback','EnsureSlideMasterPageMutation','conflict','[SyncedState]:\x20received\x20acknowledgement.','_substituteUndoStack','_onUserLeave','forEach','IDLE','UNIVER_SHEET','reverse','_snapshotService','onTransformState','AwaitingState','UNISCRIPT_RUN','withCredentials','DEFAULT_FILE_NAME','href','FetchingMissState','append','onTransformRemoteChangesetByIMECache','BoardCollaborationEntity','capture','Plugin','utf8ToBytes','7GajiMx','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_telemetryService','getUnitOnRev','c2Prime','getSnapshotAPIPath','DocStateChangeManagerService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_univerInstanceService','IUndoRedoService','[CollaborationUndoRedoService]','JOIN_ROOM_PERMISSION_DENIED','ReplaySubject','ICollaborationSocketService','resolve','_incrementRevisionNumber','_onRemoteACK','isTransformMutationsWithChangesetFailure','_commandService','delete','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','pending','_collaborationUIEventService','roomInfos','/fetchmissing?from=','UniverCollaborationPlugin','_getLoginPath','sessionStatus$','saveSheetBlock','_identity','HTTPRequest','SnapshotService','update','_commentService','IUniverInstanceService','_collabSessionService','resolveUnit','_getDownloadEndpointURL','add','save\x20fail\x20reason\x20is\x20','socket\x20close','_onRemoteRejected','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','timeoutTimer','concatMap','deserializeToCombResponse','CHANGESET_ACK','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','loadOfflineData','_getSendChangesetTimeout','getMember','_updateStatus','collaMsg','docStateChange$','onSendChangeset','snapshot','OfflineState','_transformRemoteChangesetByStateCache','NO_OTHER_CLIENTS_EDITING','LIVESHARE_REQUEST_HOST','touchDependencies','RichTextEditingMutation','defineProperty','revision','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_socketMessageSubscription','downloadEndpointUrl','loadBoard','mapDocumentTypeToUniverInstanceType','_socket','_revisionService','/resources','RETRY_CONNECTING_MAX_COUNT_KEY','ERROR_IMAGE','synced','_entities','_transformService','onRemoteRej','_entityInit$','_onJoinRoomEvent','_throwTelemetryCollaborationNewChangeset','IMentionIOService','MentionType','_onConnectionOpen','UPDATE_CURSOR','_onConnectionFailed','submit\x20changeset\x20error!','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_undoStacks','startTime','roles','_imageSourceCache','RECV','session.room-permission-denied','URL','awaiting_with_pending','ITransformService','_initCloseConn','_localCacheService','csShouldRetryEvent','saveChangeset','_lockTransition','ITelemetryService','createSocket','_pendingSessions','_initUnitPermissionChange','takeUntil','_httpService','Rectangle','createUniverCollaborationAdapter','LocaleService','workbook','awaitingChangeset','_instanceService','onCommentUpdate','reconnect','prototype','_submitChangeset','waitForRoom$','_unlockTransition','_permissionService','CompressMutationService','COMPRESS_MUTATION_APPLY','loadSheet','transformMutationsWithChangeset','MemberService','action','transformStack\x20failed!','_clearRedo','memberID','CLOSE_ROOM','onMissingChangesets','ERROR_IMAGE_TYPE','serializeCombRequest','COMMENT_UPDATE','charCodeAt','changeset','_transformSelections','disableLocalCache','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','permissionRejEvent','parseProtocolChangeset','name','generateRandomId','_configService','_getAPIPrefixPath','_socketChannels','pipe','textEncoder','HEARTBEAT','create','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_waitCount','_tryEnsureSocket','UniverNetworkPlugin','getWorkbookSelections','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','equals','_adapter','_fetchMissChangesets','_onCombEvent','event$','_onConflict','/rev/','_onLocalMutation','duration','resend','getRoom','collaborators','catch','_maxTotalRetryTimeout','getOwnPropertyDescriptor','createInstance','objectID','sid','PendingState','type','collabWebSocketUrl','ImageUploadStatusType','/universer-api/user/session-ticket','_getRedoStack','reject','Inject','reduce','set','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','uuidv4','entityInit$','DEFAULT_COLLAB_WEB_SOCKET_URL','AddSlidePageMutation','toString','_getCurrentRevision','_clearHeartbeatTimer','_clearTimeoutTimer','RxDisposable','failed\x20to\x20apply\x20missed\x20changesets!','_docStateChangeManagerService','retryCount','univer-pro.collaboration-client-socket-service','collaboration_new_changeset','setCurrentUser','/new_changes','_remoteChangesetQueue','OFFLINE','_decreaseWaiting','fetch_missing','unsubscribe','/block/','getImageSourceCache','dispose','unit','encodeURIComponent','_getAPIPrefix','_telemetryInfo','shouldCloseConn','every','_sessions','deleteCollaborator','onMutationExecutedForCollab','_onRemoteRetry','[UniverCollaborationClientPlugin]','UNIVER_COLLABORATION_CLIENT_PLUGIN','HEARTBEAT_INTERVAL_KEY','onRemoteChangeset','map','joinRsp','onMissedChangesetFetched','_pendingMutations','IPermissionService','_collaborationTimeoutTimer','trim','enableCollaboration','SNAPSHOT_URL_KEY','_transformStack','m2Prime','MUTATION','ImageSourceType','PERMISSION_DENIED','/collaborator','fetchMissingChangesets','fromCollab','_onUserJoin','_onMessage','unknown','_updateLocalCache','IAttachmentIoService','GLOBAL_ROOMS_CNT_EXCEEDS','error$','awaiting','asObservable','constructor','AWAITING','SheetCollaborationEntity','CollaborationSessionService','packageName','onRemoteAck','registerDependencies','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_onRemoteChangeset','1906308HiQZZF','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','localCacheService','getResourcesRequest','delay','maxSize','USERS_ENTER','transformUndoRedo','_initDependencies','requireSession','emitEvent','merge','allowed','SheetTransformSelectionsService','SOCKET_FAILED_RETRY','_onOffline','_config','decorate','now','UNIVER_BOARD','push','_sheetTransformSelectionsService','code','subscribe','_getUndoStack','&to=','DRAWING_IMAGE_ALLOW_IMAGE_LIST','[FetchMissState]','replace','MSG_FOR_ERROR','JOIN_ROOM_FULL','close$','HEARTBEAT_INTERVAL','socketReady','LIVESHARE_NEW_HOST','_emitMembers','location','_socketService','indexOf','mutations','onLocalMutation','enableSingleActiveInstanceLock','_undoRedoService','_state$','_getSocketChannel','fetchThroughInterceptors','patch','connection\x20error','_clearLocalCache','rev','readyForCollab','_getConfig','symbol','includes','open$','_transformUndoredo','toDisposable','_transformRemoteChangesetByIMECache','JOIN_ROOM_FAILED','_waitForHeartbeatResponse','message$','RevisionService','session','_collaborationPaused','take','init','getUploadOptions','_commentUpdate$','_createSession','pauseCollaboration','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','FETCH_MISS','?size=','_startCollaboration','loadDoc','signUrlServerUrl','offline','@univerjs-pro/collaboration-client','body','requestParams','localeService','actions','SlideCollaborationEntity','loginUrlKey','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HTTPService'];_0x4951=function(){return _0x690ddd;};return _0x4951();}z=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x4,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x204)])),v(0x5,(0x0,t['Inject'])(t[_0x281ba4(0x1f9)])),v(0x6,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t[_0x281ba4(0x300)]),v(0xb,t[_0x281ba4(0x26f)]),v(0xc,(0x0,t[_0x281ba4(0x325)])(w)),v(0xd,(0x0,t['Optional'])(S))],z);let B=class extends F{constructor(_0x25f3e1,_0x5f0fe1,_0x4f89a2,_0x52dddd,_0x1b95ec,_0x2f228f,_0x54cb9f,_0x2c359d,_0x58e282,_0x1e149b,_0x3c4172,_0x43277d,_0x47ab82,_0x30f3d9){const _0x473b26=_0x281ba4;super(_0x25f3e1,_0x4f89a2,_0x5f0fe1,_0x52dddd,_0x1b95ec,_0x2f228f,_0x54cb9f,_0x2c359d,_0x58e282,_0x1e149b,_0x3c4172,_0x43277d,_0x47ab82,_0x30f3d9),this['unitID']=_0x25f3e1,this[_0x473b26(0x23b)]=_0x5f0fe1;}async[_0x281ba4(0x379)](){const _0x45c6f9=_0x281ba4;let _0x29e571=await super[_0x45c6f9(0x379)]();return this[_0x45c6f9(0x143)](this[_0x45c6f9(0x19d)][_0x45c6f9(0x265)]((_0x1e3dd0,_0x28392c)=>{const _0x684058=_0x45c6f9;if(_0x1e3dd0[_0x684058(0x23b)]!==t[_0x684058(0xde)][_0x684058(0x276)]||_0x28392c!=null&&_0x28392c[_0x684058(0x27b)]||_0x28392c!=null&&_0x28392c['onlyLocal'])return;let _0x300896=_0x1e3dd0[_0x684058(0x390)];if((_0x300896==null?void 0x0:_0x300896[_0x684058(0x118)])!==this[_0x684058(0x2f8)])return;let _0x2f79fa=_0x1e3dd0,_0x300710=this[_0x684058(0x35c)][_0x684058(0x34c)][_0x684058(0x2bb)](this[_0x684058(0x35c)][_0x684058(0x34c)][_0x684058(0x114)]()['COMPRESS_MUTATION_SEND'])([_0x2f79fa],this[_0x684058(0x193)])||[_0x2f79fa];this[_0x684058(0x22f)](_0x300710[0x0]);})),_0x29e571;}};B=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x4,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x204)])),v(0x5,(0x0,t['Inject'])(t[_0x281ba4(0x1f9)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x281ba4(0x1ad)]),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t[_0x281ba4(0x300)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x281ba4(0x325)])(w)),v(0xd,(0x0,t['Optional'])(S))],B);const We=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x3a6));function Ge(_0x353696){const _0x2775de=_0x281ba4;let _0x51a62e=_0x353696['data'],_0xec5bd7=JSON['parse'](_0x51a62e);switch(_0xec5bd7['cmd']){case a['CombCmd']['HEARTBEAT']:case a[_0x2775de(0xe5)]['HELLO']:{let _0x314070=_0xec5bd7[_0x2775de(0x369)];return{..._0xec5bd7,'data':_0x314070,'cmd':_0xec5bd7[_0x2775de(0x2e6)]};}case a['CombCmd'][_0x2775de(0x14c)]:{let _0x57339a=_0xec5bd7[_0x2775de(0x26c)];return{..._0xec5bd7,'data':_0x57339a,'cmd':_0xec5bd7['cmd']};}case a[_0x2775de(0xe5)][_0x2775de(0x1e7)]:{let _0x26b86e=_0xec5bd7[_0x2775de(0x1bf)];switch(_0x26b86e[_0x2775de(0x35a)]){case e[_0x2775de(0x137)][_0x2775de(0x3d6)]:var _0x34b6e5;return{..._0xec5bd7,'data':{..._0x26b86e,'data':(_0x34b6e5=_0x26b86e[_0x2775de(0x217)])==null?void 0x0:_0x34b6e5['cs']},'cmd':_0xec5bd7['cmd']};case e[_0x2775de(0x137)]['CHANGESET_ACK']:var _0x2fb8ed;return{..._0xec5bd7,'data':{..._0x26b86e,'data':(_0x2fb8ed=_0x26b86e[_0x2775de(0x16c)])==null?void 0x0:_0x2fb8ed['cs']},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e[_0x2775de(0x137)][_0x2775de(0xcf)]:var _0x5f0089;return{..._0xec5bd7,'data':{..._0x26b86e,'data':(_0x5f0089=_0x26b86e[_0x2775de(0xe7)])==null?void 0x0:_0x5f0089['cs']},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e['CollaborationEvent']['CHANGESET_REJ']:var _0x5d80b0;return{..._0xec5bd7,'data':{..._0x26b86e,'data':(_0x5d80b0=_0x26b86e['csRejEvent'])==null?void 0x0:_0x5d80b0['cs']},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e['CollaborationEvent'][_0x2775de(0x3e2)]:var _0x5d1ad8;return{..._0xec5bd7,'data':{..._0x26b86e,'data':(_0x5d1ad8=_0x26b86e[_0x2775de(0x1ee)])==null?void 0x0:_0x5d1ad8['cs']},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e[_0x2775de(0x137)][_0x2775de(0x1df)]:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e['updateCursorEvent']},'cmd':_0xec5bd7['cmd']};case e['CollaborationEvent']['USERS_ENTER']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0xce)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e['CollaborationEvent']['USERS_LEAVE']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0x3c8)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0x3a0)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e[_0x2775de(0x137)]['LIVESHARE_FETCH_OPERATIONS']:case e[_0x2775de(0x137)][_0x2775de(0x383)]:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0xc7)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e[_0x2775de(0x137)][_0x2775de(0x3d3)]:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0x3a0)]},'cmd':_0xec5bd7['cmd']};case e[_0x2775de(0x137)][_0x2775de(0x2ab)]:return{..._0xec5bd7,'data':_0x26b86e,'cmd':_0xec5bd7['cmd']};case e[_0x2775de(0x137)]['COMMENT_UPDATE']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0x107)]},'cmd':_0xec5bd7['cmd']};case e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e['updatePermissionObjEvent']},'cmd':_0xec5bd7['cmd']};case e[_0x2775de(0x137)][_0x2775de(0x3e1)]:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0x261)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e[_0x2775de(0x137)]['UNISCRIPT_RUN']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0xc9)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};default:return _0xec5bd7;}}default:return _0xec5bd7;}}function Ke(_0x820d0){const _0x2ff13a=_0x281ba4;switch(_0x820d0[_0x2ff13a(0x2e6)]){case a[_0x2ff13a(0xe5)][_0x2ff13a(0x220)]:case a[_0x2ff13a(0xe5)]['HELLO']:return JSON[_0x2ff13a(0xf8)]({'cmd':_0x820d0['cmd'],'routeKey':_0x820d0[_0x2ff13a(0xd9)]});case a[_0x2ff13a(0xe5)][_0x2ff13a(0x33c)]:{let _0x3032f4;switch(_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x35a)]){case e['CollaborationEvent'][_0x2ff13a(0x1df)]:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0x1df)],'updateCursorEvent':_0x820d0['data'][_0x2ff13a(0x346)]};break;case e[_0x2ff13a(0x137)][_0x2ff13a(0xda)]:_0x3032f4={'eventID':e['CollaborationEvent'][_0x2ff13a(0xda)],'leaveEvent':_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x346)]};break;case e[_0x2ff13a(0x137)][_0x2ff13a(0x294)]:_0x3032f4={'eventID':e['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x346)]};break;case e[_0x2ff13a(0x137)][_0x2ff13a(0x2b0)]:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0x2b0)],'liveShareNewHost':_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x346)]};break;case e['CollaborationEvent'][_0x2ff13a(0x383)]:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0x383)],'liveShareOperation':_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x346)]};break;case e['CollaborationEvent']['LIVESHARE_TERMINATE']:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0x3d3)],'liveShareTerminate':_0x820d0['data'][_0x2ff13a(0x346)]};break;case e[_0x2ff13a(0x137)][_0x2ff13a(0x1c6)]:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0x1c6)],'liveShareRequestHost':_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x346)]};break;case e[_0x2ff13a(0x137)][_0x2ff13a(0xe1)]:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0xe1)]};break;default:_0x3032f4={'eventID':_0x820d0[_0x2ff13a(0x346)]['eventID']};}return JSON[_0x2ff13a(0xf8)]({'cmd':_0x820d0[_0x2ff13a(0x2e6)],'routeKey':_0x820d0[_0x2ff13a(0xd9)],'collaMsg':_0x3032f4});}case a['CombCmd'][_0x2ff13a(0x14c)]:return JSON[_0x2ff13a(0xf8)]({'cmd':_0x820d0[_0x2ff13a(0x2e6)],'routeKey':_0x820d0['routeKey'],'joinReq':_0x820d0[_0x2ff13a(0x346)]});case a[_0x2ff13a(0xe5)]['LEAVE']:return JSON[_0x2ff13a(0xf8)]({'cmd':_0x820d0['cmd'],'routeKey':_0x820d0[_0x2ff13a(0xd9)],'leaveReq':_0x820d0['data']});default:throw Error(_0x2ff13a(0x1cb));}}const qe=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x251));function Je(_0x64b641,_0x538918,_0x511361){const _0x298264=_0x281ba4;return _0x64b641+'/'+_0x538918+_0x298264(0x111)+_0x511361+_0x298264(0x254);}let Ye=class extends t[_0x281ba4(0xe4)]{constructor(_0x2a2112,_0x3da103,_0x51b006,_0x1da8b3,_0x5e75cc){const _0x5a77d0=_0x281ba4;super(),this[_0x5a77d0(0x103)]=_0x2a2112,this[_0x5a77d0(0x1f6)]=_0x3da103,this[_0x5a77d0(0x21b)]=_0x51b006,this[_0x5a77d0(0x3a2)]=_0x1da8b3,this[_0x5a77d0(0xf1)]=_0x5e75cc;}['_doCreateSocket'](_0x50d872){const _0x212e1c=_0x281ba4;let _0x7108c4=this[_0x212e1c(0x103)][_0x212e1c(0x323)](l[_0x212e1c(0x2fe)]);if(!_0x7108c4)throw Error(_0x212e1c(0x227));let _0x3507ef=_0x7108c4[_0x212e1c(0x1f2)](_0x50d872);if(!_0x3507ef)throw Error(_0x212e1c(0x28f));let _0x35d63e=new t['DisposableCollection'](),_0x2bd3ae=new i[(_0x212e1c(0x3de))]();_0x35d63e['add'](_0x3507ef[_0x212e1c(0x2ad)]['subscribe'](_0x3f263e=>_0x2bd3ae[_0x212e1c(0xd2)](_0x3f263e))),_0x35d63e[_0x212e1c(0x1b1)]((0x0,t[_0x212e1c(0x2c6)])(()=>_0x2bd3ae[_0x212e1c(0x147)]()));let _0xd03344=new i[(_0x212e1c(0x3de))]();_0x35d63e[_0x212e1c(0x1b1)](_0x3507ef[_0x212e1c(0x282)][_0x212e1c(0x2a5)](_0x107c18=>_0xd03344[_0x212e1c(0xd2)](_0x107c18))),_0x35d63e[_0x212e1c(0x1b1)]((0x0,t[_0x212e1c(0x2c6)])(()=>_0xd03344[_0x212e1c(0x147)]()));let _0x535443=new i[(_0x212e1c(0x3de))]();_0x35d63e['add'](_0x3507ef['message$'][_0x212e1c(0x2a5)](_0x288bae=>{const _0xe7dbfc=_0x212e1c;let _0x3bdb6b=Ge(_0x288bae);_0x535443[_0xe7dbfc(0xd2)](_0x3bdb6b);})),_0x35d63e[_0x212e1c(0x1b1)]((0x0,t[_0x212e1c(0x2c6)])(()=>_0x535443[_0x212e1c(0x147)]()));let _0x1c206c,_0x375593=()=>{const _0x44fc96=_0x212e1c;_0xd03344['next'](new Event(_0x44fc96(0x2bd))),_0x2bd3ae[_0x44fc96(0xd2)](new Event(_0x44fc96(0x2bd))),_0x1c206c['close']();};return _0x1c206c={'memberID':'','close$':_0x2bd3ae['asObservable'](),'error$':_0xd03344[_0x212e1c(0x284)](),'open$':_0x3507ef['open$'],'message$':_0x535443[_0x212e1c(0x284)](),'send':_0x392d79=>{const _0x168ade=_0x212e1c;if(_0x392d79[_0x168ade(0x2e6)]===a[_0x168ade(0xe5)][_0x168ade(0x33c)]){if(_0x392d79['data']['eventID']===e[_0x168ade(0x137)][_0x168ade(0x14a)]){this['_submitChangeset'](_0x1c206c,_0x392d79[_0x168ade(0x346)])[_0x168ade(0x234)](_0x2e1d6a=>{const _0x52cb9b=_0x168ade;this[_0x52cb9b(0x3a2)][_0x52cb9b(0x3b2)](_0x2e1d6a),_0x375593();});return;}if(_0x392d79[_0x168ade(0x346)][_0x168ade(0x35a)]===e[_0x168ade(0x137)][_0x168ade(0x2fa)]){let _0xa7619a=_0x392d79[_0x168ade(0x346)];this[_0x168ade(0x22a)](_0xa7619a)[_0x168ade(0x32b)](_0x5cc0c=>{const _0x312fb6=_0x168ade;_0x535443[_0x312fb6(0xd2)]({'cmd':a[_0x312fb6(0xe5)][_0x312fb6(0x1e7)],'code':a[_0x312fb6(0x3a3)]['OK'],'routeKey':_0xa7619a[_0x312fb6(0x346)][_0x312fb6(0x2f8)],'routeType':'','data':{'eventID':e[_0x312fb6(0x137)][_0x312fb6(0x2fd)],'data':{'changesets':_0x5cc0c}}});})[_0x168ade(0x234)](_0x4895f7=>{const _0x22a999=_0x168ade;this[_0x22a999(0x3a2)]['error'](_0x4895f7),_0x375593();});return;}}_0x3507ef[_0x168ade(0x396)](Ke(_0x392d79));},'close':()=>{const _0x3de473=_0x212e1c;_0x3507ef[_0x3de473(0x309)](),_0x35d63e[_0x3de473(0x25c)]();}},_0x1c206c;}async[_0x281ba4(0x200)](_0x384943,_0x5465cf){const _0x3aa25d=_0x281ba4;var _0x1a9fa8;let {unitType:_0x5e43a1,unitID:_0x458c2b,changeset:_0x38e9d4}=_0x5465cf[_0x3aa25d(0x346)],_0x3ef0df={'unitID':_0x458c2b,'memberID':_0x384943[_0x3aa25d(0x20c)],'type':_0x5e43a1,'changeset':(0x0,e[_0x3aa25d(0x140)])(_0x38e9d4)},_0x171d9f=this['_configService'][_0x3aa25d(0x321)](m),_0x134d4b=Je((_0x1a9fa8=_0x171d9f==null?void 0x0:_0x171d9f[_0x3aa25d(0x3e4)])==null?_0x3aa25d(0x36f):_0x1a9fa8,_0x5e43a1,_0x458c2b);try{await this[_0x3aa25d(0x1f6)][_0x3aa25d(0x3bf)](_0x134d4b,{'body':_0x3ef0df});}catch(_0x25250e){throw this[_0x3aa25d(0x3a2)][_0x3aa25d(0x3b2)]('[CollaborationSession]',_0x3aa25d(0x1e1)),_0x25250e;}}async[_0x281ba4(0x22a)](_0x20b03c){const _0x5935b2=_0x281ba4;let {unitID:_0x5d0075,from:_0x412145,to:_0x176562,unitType:_0x1143ec}=_0x20b03c[_0x5935b2(0x346)];return(await this[_0x5935b2(0xf1)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5d0075,'type':_0x1143ec,'from':_0x412145,'to':_0x176562}))[_0x5935b2(0x395)][_0x5935b2(0x26b)](_0x4cc7e3=>((_0x4cc7e3[_0x5935b2(0x2b5)]===null||_0x4cc7e3[_0x5935b2(0x2b5)]===void 0x0)&&(_0x4cc7e3[_0x5935b2(0x2b5)]=[]),_0x4cc7e3));}};function _0x2431(_0x143849,_0x164b47){_0x143849=_0x143849-0xc5;const _0x49514c=_0x4951();let _0x24314d=_0x49514c[_0x143849];return _0x24314d;}Ye=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x1,(0x0,t[_0x281ba4(0x241)])(l[_0x281ba4(0x2e3)])),v(0x2,t[_0x281ba4(0xca)]),v(0x3,t[_0x281ba4(0x150)]),v(0x4,e['ISnapshotServerService'])],Ye);const Xe=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x2e8));function Ze(_0x7ef1ae={}){const _0x11fc01=_0x281ba4;return _0x7ef1ae[_0x11fc01(0x1af)]?{'resolveUnit':_0x7ef1ae['resolveUnit']}:{'resolveUnit':_0x188e23=>({'target':{'unitId':_0x188e23[_0x11fc01(0x118)],'unitType':_0x188e23[_0x11fc01(0x311)]}})};}function Qe(_0x45fe21,_0x56154d,_0xc2d053){const _0x2948f4=_0x281ba4;var _0x5bb405;let _0x513dff=_0xc2d053['target'][_0x2948f4(0xd8)];if(_0x513dff!=null&&_0x513dff[_0x2948f4(0x271)]()==='')throw Error(_0x2948f4(0x12e));if(!_0xc2d053[_0x2948f4(0x302)][_0x2948f4(0x118)])throw Error(_0x2948f4(0x3ae));return{'localUnitId':_0x45fe21,'unitType':_0x56154d,'target':{'endpoint':_0x513dff,'unitId':_0xc2d053[_0x2948f4(0x302)]['unitId'],'unitType':(_0x5bb405=_0xc2d053[_0x2948f4(0x302)]['unitType'])==null?_0x56154d:_0x5bb405},'changeset':_0xc2d053[_0x2948f4(0x213)]};}let V=class extends t[_0x281ba4(0xe4)]{constructor(_0x4c6cfb,_0x4d2fed,_0x4371a8,_0x2c28e5,_0x344508,_0x4a9fc7,_0x10d4ec){const _0x44d446=_0x281ba4;super(),this[_0x44d446(0x103)]=_0x4c6cfb,this[_0x44d446(0x3a2)]=_0x4d2fed,this[_0x44d446(0x21b)]=_0x4371a8,this['_socketService']=_0x2c28e5,this['_collaborationUIEventService']=_0x344508,this[_0x44d446(0x229)]=_0x4a9fc7,this[_0x44d446(0x37f)]=_0x10d4ec,g(this,_0x44d446(0x263),new Map()),g(this,'_pendingSessions',new Map()),g(this,_0x44d446(0x365),new Map()),g(this,_0x44d446(0x21d),new Map()),g(this,_0x44d446(0xdc),this[_0x44d446(0x2ba)](void 0x0)[_0x44d446(0xdc)]['asObservable']()),g(this,_0x44d446(0x305),new i['BehaviorSubject'](0x0)),g(this,_0x44d446(0x3a9),this[_0x44d446(0x305)]['asObservable']()),this[_0x44d446(0x14d)]();}[_0x281ba4(0x14d)](){const _0x58d9ef=_0x281ba4;this[_0x58d9ef(0x37f)]&&this[_0x58d9ef(0x143)](this[_0x58d9ef(0x37f)][_0x58d9ef(0x38d)][_0x58d9ef(0x2a5)](_0x314105=>{const _0x3cf032=_0x58d9ef;_0x314105&&this['reconnect'](),_0x314105||this['_socketChannels']['forEach'](_0x3fc48e=>this[_0x3cf032(0x29d)](_0x3fc48e));}));}[_0x281ba4(0x25c)](){const _0x1ec290=_0x281ba4;super[_0x1ec290(0x25c)](),this[_0x1ec290(0x21d)]['forEach'](_0x4430a4=>{const _0x2d4d6f=_0x1ec290;var _0x285302,_0x28162c;(_0x285302=_0x4430a4['socketMessageSubscription'])==null||_0x285302['unsubscribe'](),_0x4430a4[_0x2d4d6f(0x331)]=null,this['_clearRetryConnectingTimer'](_0x4430a4),this[_0x2d4d6f(0x24c)](_0x4430a4),this[_0x2d4d6f(0x24b)](_0x4430a4),(_0x28162c=_0x4430a4[_0x2d4d6f(0xdc)][_0x2d4d6f(0x154)]())==null||_0x28162c[_0x2d4d6f(0x309)](),_0x4430a4['socket$'][_0x2d4d6f(0x147)]();}),this[_0x1ec290(0x21d)][_0x1ec290(0x33d)](),this[_0x1ec290(0x263)][_0x1ec290(0x179)](_0x53e8ec=>_0x53e8ec[_0x1ec290(0x25c)]()),this['_sessions'][_0x1ec290(0x33d)](),this['_sessionChannels'][_0x1ec290(0x33d)](),this[_0x1ec290(0x305)][_0x1ec290(0x147)]();}async[_0x281ba4(0x297)](_0x24c75e,_0x179496){const _0x4505b9=_0x281ba4;if(this[_0x4505b9(0x263)][_0x4505b9(0x125)](_0x24c75e))return this[_0x4505b9(0x263)][_0x4505b9(0x323)](_0x24c75e);let _0x44f70d=this[_0x4505b9(0x1f3)]['get'](_0x24c75e);if(_0x44f70d)return _0x44f70d;let _0x21d1c4=this[_0x4505b9(0x2d2)](_0x24c75e,_0x179496);this[_0x4505b9(0x1f3)]['set'](_0x24c75e,_0x21d1c4);try{return await _0x21d1c4;}finally{this[_0x4505b9(0x1f3)][_0x4505b9(0x19e)](_0x24c75e);}}async[_0x281ba4(0x2d2)](_0x529853,_0x259a71){const _0x181a5f=_0x281ba4;let _0x248d63=await this[_0x181a5f(0x105)](_0x529853,_0x259a71),_0x49da67=this[_0x181a5f(0x2ba)](_0x248d63[_0x181a5f(0x302)]['endpoint']);this[_0x181a5f(0x224)](_0x49da67);let _0x3cc8f9=this[_0x181a5f(0x103)][_0x181a5f(0x237)](x,_0x248d63,_0x49da67[_0x181a5f(0xdc)][_0x181a5f(0x284)]());return this['_sessions'][_0x181a5f(0x243)](_0x529853,_0x3cc8f9),this['_sessionChannels']['set'](_0x529853,_0x49da67[_0x181a5f(0x168)]),_0x3cc8f9;}[_0x281ba4(0x393)](_0x496d8e){const _0x3859ab=_0x281ba4;let _0x39ffed=this['_sessions'][_0x3859ab(0x323)](_0x496d8e),_0x50dce2=this['_sessionChannels']['get'](_0x496d8e);if(_0x39ffed&&(this[_0x3859ab(0x263)]['delete'](_0x496d8e),this[_0x3859ab(0x365)][_0x3859ab(0x19e)](_0x496d8e),_0x39ffed[_0x3859ab(0x309)]()),_0x50dce2&&!this[_0x3859ab(0x12a)](_0x50dce2)){var _0x907b50;let _0x394354=this[_0x3859ab(0x21d)][_0x3859ab(0x323)](_0x50dce2);_0x394354==null||(_0x907b50=_0x394354['socket$'][_0x3859ab(0x154)]())==null||_0x907b50[_0x3859ab(0x309)]();}}[_0x281ba4(0x1fe)](){const _0x2ebec7=_0x281ba4;(this[_0x2ebec7(0x21d)][_0x2ebec7(0x30e)]?[...this['_socketChannels']['values']()]:[this[_0x2ebec7(0x2ba)](void 0x0)])[_0x2ebec7(0x179)](_0x20db88=>{const _0x2b6b05=_0x2ebec7;_0x20db88[_0x2b6b05(0x250)]=0x0,this[_0x2b6b05(0xf6)](_0x20db88),this[_0x2b6b05(0x347)](_0x20db88);});}['_clearRetryConnectingTimer'](_0x1616a5){const _0x95561f=_0x281ba4;_0x1616a5[_0x95561f(0x342)]!=null&&(clearTimeout(_0x1616a5[_0x95561f(0x342)]),_0x1616a5[_0x95561f(0x342)]=null);}async[_0x281ba4(0x100)](_0x3bf295){const _0x416e0f=_0x281ba4;var _0x197d2f,_0x459935;let _0x53b833=this[_0x416e0f(0x21b)]['getConfig'](m),_0x2811f4=(_0x197d2f=(_0x459935=_0x3bf295[_0x416e0f(0xd8)])==null?_0x53b833==null?void 0x0:_0x53b833[_0x416e0f(0x23c)]:_0x459935)==null?te:_0x197d2f,_0x1291b1=await this[_0x416e0f(0x2b3)][_0x416e0f(0x1f2)](_0x2811f4);return _0x3bf295[_0x416e0f(0x324)]=_0x1291b1,_0x1291b1;}async[_0x281ba4(0x224)](_0x3e5a09){const _0x1c53b9=_0x281ba4;try{var _0x4e934d,_0x44b6d0;let _0x4a700a=(_0x4e934d=(_0x44b6d0=_0x3e5a09[_0x1c53b9(0xdc)]['getValue']())==null?_0x3e5a09[_0x1c53b9(0x324)]:_0x44b6d0)==null?await this[_0x1c53b9(0x100)](_0x3e5a09):_0x4e934d;if(_0x4a700a){var _0x1ebafa;let _0x3346d0=_0x4a700a[_0x1c53b9(0x396)];_0x4a700a[_0x1c53b9(0x396)]=_0x13486f=>(_0x13486f['cmd']!==a[_0x1c53b9(0xe5)]['LEAVE']&&this['_rescheduleHeartbeat'](_0x3e5a09),_0x3346d0['apply'](_0x4a700a,[_0x13486f])),(_0x1ebafa=_0x3e5a09[_0x1c53b9(0x331)])==null||_0x1ebafa[_0x1c53b9(0x259)](),_0x3e5a09[_0x1c53b9(0x331)]=null,_0x3e5a09['socketMessageSubscription']=_0x4a700a['message$']['subscribe'](_0x18930a=>this[_0x1c53b9(0x27d)](_0x3e5a09,_0x4a700a,_0x18930a)),_0x4a700a[_0x1c53b9(0x282)][_0x1c53b9(0x21e)]((0x0,s[_0x1c53b9(0x2ce)])(0x1))[_0x1c53b9(0x2a5)](_0x51247f=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x51247f)),_0x4a700a[_0x1c53b9(0x2c4)][_0x1c53b9(0x21e)]((0x0,s[_0x1c53b9(0x2ce)])(0x1))[_0x1c53b9(0x2a5)](()=>{this['_onConnectionOpen'](_0x3e5a09,_0x4a700a);}),_0x4a700a[_0x1c53b9(0x2ad)][_0x1c53b9(0x21e)]((0x0,s[_0x1c53b9(0x2ce)])(0x1))['subscribe'](_0x1932f2=>{const _0x3ce866=_0x1c53b9;this['_logService'][_0x3ce866(0x2e4)](_0x3ce866(0x38c),_0x3ce866(0x1b3),_0x1932f2),this[_0x3ce866(0x1e0)](_0x3e5a09);});}}catch(_0x4952c0){this['_logService'][_0x1c53b9(0x3b2)](_0x4952c0),this[_0x1c53b9(0x1e0)](_0x3e5a09);}}[_0x281ba4(0x1de)](_0x3ea4ce,_0x1b70d1){const _0x317625=_0x281ba4;this[_0x317625(0x3a2)][_0x317625(0x2e4)](_0x317625(0x38c),'socket\x20open.'),_0x1b70d1[_0x317625(0x396)]({'cmd':a[_0x317625(0xe5)][_0x317625(0x399)]}),this[_0x317625(0x3d1)](_0x3ea4ce);}['_onOffline'](_0x4fe617){const _0x5316c8=_0x281ba4;_0x4fe617[_0x5316c8(0x2af)]=!0x1,_0x4fe617[_0x5316c8(0x324)]=null,this[_0x5316c8(0x305)]['next'](0x2),_0x4fe617[_0x5316c8(0xdc)][_0x5316c8(0xd2)](null),this['_clearTimeoutTimer'](_0x4fe617),this[_0x5316c8(0x24b)](_0x4fe617);}['_onConnectionFailed'](_0x141fb3){const _0x4bd993=_0x281ba4;var _0x32407c;this[_0x4bd993(0x29d)](_0x141fb3),this[_0x4bd993(0x12a)](_0x141fb3[_0x4bd993(0x168)])&&(_0x141fb3[_0x4bd993(0x250)]<((_0x32407c=this['_configService']['getConfig'](_0x4bd993(0xec)))==null?0x3:_0x32407c)?(this[_0x4bd993(0x1a1)][_0x4bd993(0x298)]({'id':_0x4bd993(0x29c)}),this[_0x4bd993(0x347)](_0x141fb3)):this[_0x4bd993(0x1a1)][_0x4bd993(0x298)]({'id':_0x4bd993(0x2f0)}));}[_0x281ba4(0x347)](_0x371863){const _0x139504=_0x281ba4;var _0x3d178f;let _0xeba030=_0x371863[_0x139504(0x250)],_0x1f1e04=this['_configService']['getConfig'](m),_0x22c506=_0xeba030===0x0?0x0:((_0x3d178f=_0x1f1e04==null?void 0x0:_0x1f1e04['retryConnectingInterval'])==null?0x4e20:_0x3d178f)*0x2**_0xeba030;_0x371863[_0x139504(0x342)]=setTimeout(()=>{const _0x318a16=_0x139504;clearTimeout(_0x371863[_0x318a16(0x342)]),_0x371863[_0x318a16(0x342)]=null,this[_0x318a16(0x224)](_0x371863);},_0x22c506),_0x371863['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0x1020a4,_0x3fc572){const _0x1f1fca=_0x281ba4;return Qe(_0x1020a4,_0x3fc572,await this[_0x1f1fca(0x229)][_0x1f1fca(0x1af)]({'unitId':_0x1020a4,'unitType':_0x3fc572}));}[_0x281ba4(0x27d)](_0x337433,_0x299a62,_0xc9ea0f){const _0x360992=_0x281ba4;let {cmd:_0x299e49}=_0xc9ea0f;_0x299e49===a[_0x360992(0xe5)][_0x360992(0x399)]&&!_0x337433[_0x360992(0x2af)]&&(_0x299a62[_0x360992(0x20c)]=_0xc9ea0f['data']['memberID'],_0x337433[_0x360992(0xdc)]['next'](_0x299a62),this['_status$'][_0x360992(0xd2)](0x3),_0x337433[_0x360992(0x2af)]=!0x0,_0x337433[_0x360992(0x324)]=null),_0x299e49===a[_0x360992(0xe5)]['HEARTBEAT']&&this[_0x360992(0x24c)](_0x337433),this[_0x360992(0x3d1)](_0x337433);}['_hasSessionsForEndpoint'](_0x596365){const _0x30c7d6=_0x281ba4;return[...this[_0x30c7d6(0x365)]['values']()]['some'](_0x5e6e37=>_0x5e6e37===_0x596365);}[_0x281ba4(0x2ba)](_0x3348da){const _0x363fc0=_0x281ba4;let _0x16b02f=_0x3348da==null?'':_0x3348da,_0x186d79=this[_0x363fc0(0x21d)][_0x363fc0(0x323)](_0x16b02f);if(_0x186d79)return _0x186d79;let _0x46ec7d={'endpointKey':_0x16b02f,'endpoint':_0x3348da,'socket$':new i[(_0x363fc0(0x332))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x363fc0(0x21d)][_0x363fc0(0x243)](_0x16b02f,_0x46ec7d),_0x46ec7d;}[_0x281ba4(0x3d1)](_0x2c5911){const _0x4dc7b3=_0x281ba4;var _0xce05e;this[_0x4dc7b3(0x24b)](_0x2c5911),_0x2c5911[_0x4dc7b3(0xd1)]=setTimeout(()=>this['_sendHeartbeat'](_0x2c5911),(_0xce05e=this[_0x4dc7b3(0x21b)][_0x4dc7b3(0x321)](_0x4dc7b3(0x2ae)))==null?0x7530:_0xce05e);}[_0x281ba4(0x358)](_0xdadce8){const _0x5b4540=_0x281ba4;_0xdadce8[_0x5b4540(0xdc)]['getValue']()['send']({'cmd':a[_0x5b4540(0xe5)][_0x5b4540(0x220)]}),this['_waitForHeartbeatResponse'](_0xdadce8);}[_0x281ba4(0x2c9)](_0x9ab7c3){const _0x46c041=_0x281ba4;var _0x13a838;_0x9ab7c3[_0x46c041(0x1b6)]=setTimeout(()=>this[_0x46c041(0x1e0)](_0x9ab7c3),(_0x13a838=this[_0x46c041(0x21b)][_0x46c041(0x321)](_0x46c041(0xeb)))==null?ne:_0x13a838);}[_0x281ba4(0x24b)](_0x39cd21){const _0x14edcf=_0x281ba4;_0x39cd21[_0x14edcf(0xd1)]!=null&&(clearTimeout(_0x39cd21[_0x14edcf(0xd1)]),_0x39cd21['sendHeartbeatTimer']=null);}[_0x281ba4(0x24c)](_0x30112e){const _0x55c0c0=_0x281ba4;_0x30112e[_0x55c0c0(0x1b6)]!=null&&(clearTimeout(_0x30112e[_0x55c0c0(0x1b6)]),_0x30112e['timeoutTimer']=null);}};V=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x1,t[_0x281ba4(0x150)]),v(0x2,t[_0x281ba4(0xca)]),v(0x3,qe),v(0x4,(0x0,t[_0x281ba4(0x241)])(_)),v(0x5,Xe),v(0x6,(0x0,t['Optional'])(We))],V);let H=class extends t[_0x281ba4(0x24d)]{constructor(_0x2944c1,_0x45487b,_0x395946,_0x3ad1d2){const _0x31be65=_0x281ba4;var _0x3c9d58;super(),this['_injector']=_0x2944c1,this['_collabSessionService']=_0x45487b,this['_configService']=_0x395946,this[_0x31be65(0x193)]=_0x3ad1d2,g(this,'_entities',new Map()),g(this,_0x31be65(0x1d9),new i[(_0x31be65(0x3de))]()),g(this,_0x31be65(0x246),this['_entityInit$'][_0x31be65(0x284)]()),((_0x3c9d58=this[_0x31be65(0x21b)][_0x31be65(0x321)](_0x31be65(0xfb)))==null?void 0x0:_0x3c9d58[_0x31be65(0x272)])!==!0x1&&this[_0x31be65(0x379)]();}[_0x281ba4(0x25c)](){const _0x38b99c=_0x281ba4;super[_0x38b99c(0x25c)](),this['_entities']['forEach'](_0x579cd4=>_0x579cd4[_0x38b99c(0x25c)]()),this[_0x38b99c(0x1d6)][_0x38b99c(0x33d)]();}['getCollabEntity'](_0x340a8a){const _0x2fb1db=_0x281ba4;var _0x16713c;return(_0x16713c=this[_0x2fb1db(0x1d6)][_0x2fb1db(0x323)](_0x340a8a))==null?null:_0x16713c;}[_0x281ba4(0x30b)](_0x293ee5){const _0x344ba0=_0x281ba4;let _0x45e0e9=this['getCollabEntity'](_0x293ee5);return _0x45e0e9?(0x0,i['of'])(_0x45e0e9):this['_entityInit$'][_0x344ba0(0x21e)]((0x0,s['filter'])(_0x228f4f=>_0x228f4f[_0x344ba0(0x2f8)]===_0x293ee5));}[_0x281ba4(0x2c0)](_0x348439){const _0x1d9b33=_0x281ba4;return(0x0,i['firstValueFrom'])(this[_0x1d9b33(0x30b)](_0x348439)[_0x1d9b33(0x21e)]((0x0,s[_0x1d9b33(0x26b)])(()=>void 0x0)));}['_init'](){const _0x3d68c6=_0x281ba4;this[_0x3d68c6(0x193)][_0x3d68c6(0x382)](t['UniverInstanceType'][_0x3d68c6(0x17b)])[_0x3d68c6(0x21e)]((0x0,i[_0x3d68c6(0x1f5)])(this[_0x3d68c6(0x109)]),(0x0,s[_0x3d68c6(0x292)])(0x10))['subscribe'](async _0x51a84f=>{const _0x75594a=_0x3d68c6;let _0x3fa837=_0x51a84f[_0x75594a(0x25d)][_0x75594a(0x34e)](),_0x591130=await this[_0x75594a(0x2d7)](_0x3fa837,t['UniverInstanceType']['UNIVER_SHEET']);this[_0x75594a(0x1d6)]['set'](_0x3fa837,_0x591130);}),this['_univerInstanceService'][_0x3d68c6(0x382)](t[_0x3d68c6(0x314)][_0x3d68c6(0x157)])['pipe']((0x0,i[_0x3d68c6(0x1f5)])(this[_0x3d68c6(0x109)]),(0x0,s[_0x3d68c6(0x292)])(0x10))[_0x3d68c6(0x21e)]((0x0,s['filter'])(_0x10dd97=>!_0x10dd97[_0x3d68c6(0x25d)][_0x3d68c6(0x34e)]()[_0x3d68c6(0x37a)]('__')))[_0x3d68c6(0x2a5)](async _0x11e108=>{const _0x4d21ef=_0x3d68c6;let _0x7d5e39=_0x11e108[_0x4d21ef(0x25d)][_0x4d21ef(0x34e)](),_0x30427f=await this[_0x4d21ef(0x2d7)](_0x7d5e39,t['UniverInstanceType'][_0x4d21ef(0x157)]);this['_entities'][_0x4d21ef(0x243)](_0x7d5e39,_0x30427f);}),this[_0x3d68c6(0x193)][_0x3d68c6(0x382)](t[_0x3d68c6(0x314)]['UNIVER_SLIDE'])[_0x3d68c6(0x21e)]((0x0,i['takeUntil'])(this[_0x3d68c6(0x109)]),(0x0,s[_0x3d68c6(0x292)])(0x10))[_0x3d68c6(0x2a5)](async _0x32d540=>{const _0xe9be52=_0x3d68c6;let _0x5dabcb=_0x32d540[_0xe9be52(0x25d)][_0xe9be52(0x34e)](),_0x1359eb=await this[_0xe9be52(0x2d7)](_0x5dabcb,t[_0xe9be52(0x314)][_0xe9be52(0x352)]);this[_0xe9be52(0x1d6)][_0xe9be52(0x243)](_0x5dabcb,_0x1359eb);}),this[_0x3d68c6(0x193)][_0x3d68c6(0x382)](t[_0x3d68c6(0x314)][_0x3d68c6(0x2a1)])['pipe']((0x0,i['takeUntil'])(this[_0x3d68c6(0x109)]),(0x0,s['delay'])(0x10))['subscribe'](async _0x3f8488=>{const _0x2bea2e=_0x3d68c6;let _0x1ba027=_0x3f8488[_0x2bea2e(0x25d)]['getUnitId'](),_0x5927fc=await this[_0x2bea2e(0x2d7)](_0x1ba027,t[_0x2bea2e(0x314)]['UNIVER_BOARD']);this[_0x2bea2e(0x1d6)][_0x2bea2e(0x243)](_0x1ba027,_0x5927fc);}),this[_0x3d68c6(0x193)][_0x3d68c6(0x382)](t[_0x3d68c6(0x314)][_0x3d68c6(0x37e)])[_0x3d68c6(0x21e)]((0x0,i['takeUntil'])(this[_0x3d68c6(0x109)]),(0x0,s[_0x3d68c6(0x292)])(0x10))[_0x3d68c6(0x2a5)](async _0x60fba8=>{const _0x29916b=_0x3d68c6;let _0x515ab8=_0x60fba8[_0x29916b(0x25d)][_0x29916b(0x34e)](),_0x1bed66=await this[_0x29916b(0x2d7)](_0x515ab8,t['UniverInstanceType'][_0x29916b(0x37e)]);this[_0x29916b(0x1d6)][_0x29916b(0x243)](_0x515ab8,_0x1bed66);}),(0x0,i[_0x3d68c6(0x299)])(this[_0x3d68c6(0x193)][_0x3d68c6(0x113)](t[_0x3d68c6(0x314)]['UNIVER_SHEET']),this[_0x3d68c6(0x193)][_0x3d68c6(0x113)](t[_0x3d68c6(0x314)][_0x3d68c6(0x157)]),this[_0x3d68c6(0x193)]['getTypeOfUnitDisposed$'](t[_0x3d68c6(0x314)][_0x3d68c6(0x352)]),this[_0x3d68c6(0x193)][_0x3d68c6(0x113)](t['UniverInstanceType']['UNIVER_BOARD']),this[_0x3d68c6(0x193)][_0x3d68c6(0x113)](t[_0x3d68c6(0x314)][_0x3d68c6(0x37e)]))[_0x3d68c6(0x21e)]((0x0,i[_0x3d68c6(0x1f5)])(this[_0x3d68c6(0x109)]))['subscribe'](_0x224067=>{const _0x402d30=_0x3d68c6;let _0x4dedf4=_0x224067['getUnitId'](),_0x2a0458=this[_0x402d30(0x1d6)]['get'](_0x4dedf4);_0x2a0458&&(_0x2a0458[_0x402d30(0x25c)](),this[_0x402d30(0x1d6)]['delete'](_0x4dedf4));});}async[_0x281ba4(0x2d7)](_0x4d86c0,_0x5a2161){const _0x433ddc=_0x281ba4;let _0x4f2358=await this[_0x433ddc(0x1ae)][_0x433ddc(0x297)](_0x4d86c0),_0x5ee4ef=this[_0x433ddc(0x103)][_0x433ddc(0x237)](this['_getCtorByUniverInstanceType'](_0x5a2161),_0x4d86c0,_0x5a2161,_0x4f2358);return await _0x5ee4ef[_0x433ddc(0x2cf)](),this[_0x433ddc(0x1d9)][_0x433ddc(0xd2)](_0x5ee4ef),_0x5ee4ef;}[_0x281ba4(0x375)](_0xef814){const _0x79c4c8=_0x281ba4;switch(_0xef814){case t[_0x79c4c8(0x314)]['UNIVER_DOC']:return I;case t['UniverInstanceType'][_0x79c4c8(0x17b)]:return R;case t['UniverInstanceType']['UNIVER_SLIDE']:return z;case t[_0x79c4c8(0x314)]['UNIVER_BOARD']:return B;case t[_0x79c4c8(0x314)][_0x79c4c8(0x37e)]:return L;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0xef814);}}};H=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x1,(0x0,t[_0x281ba4(0x241)])(V)),v(0x2,t[_0x281ba4(0xca)]),v(0x3,t[_0x281ba4(0x1ad)])],H);var $e=_0x281ba4(0x2db),et='1.0.0-alpha.5';let tt=class extends t[_0x281ba4(0xe4)]{constructor(_0x30f38c,_0x161ad7){const _0x177d23=_0x281ba4;super(),this[_0x177d23(0x193)]=_0x30f38c,this[_0x177d23(0x21b)]=_0x161ad7,this[_0x177d23(0x379)]();}['_init'](){const _0x283fad=_0x281ba4;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x283fad(0x2a5)](()=>{const _0x1658e2=_0x283fad;var _0x3037d7;let _0x647ac2=this[_0x1658e2(0x193)][_0x1658e2(0x389)](),_0x8d4e7c=(_0x3037d7=this[_0x1658e2(0x21b)]['getConfig'](_0x1658e2(0x182)))==null?_0x1658e2(0x364):_0x3037d7;_0x647ac2 instanceof t[_0x1658e2(0x3df)]&&(_0x8d4e7c=_0x647ac2['name']),document[_0x1658e2(0x2f5)]=_0x8d4e7c;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x281ba4(0xca)])],tt);let nt=function(_0x27d664){const _0xf68566=_0x281ba4;return _0x27d664[_0xf68566(0x1e9)]=_0xf68566(0x1e9),_0x27d664[_0xf68566(0x337)]=_0xf68566(0x337),_0x27d664[_0xf68566(0xe3)]=_0xf68566(0xe3),_0x27d664;}({});const rt=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x14e));let U=class{constructor(_0x75515e,_0x32db69,_0x2ce729){const _0x104492=_0x281ba4;this[_0x104492(0x1f6)]=_0x75515e,this['_configService']=_0x32db69,this['_univerInstanceService']=_0x2ce729;}[_0x281ba4(0x2d0)](){const _0x2c1a4c=_0x281ba4;var _0x387a30;return(_0x387a30=this[_0x2c1a4c(0x2c1)]()['attachment'])==null?{}:_0x387a30;}async[_0x281ba4(0x131)](_0x423879){const _0xc171ee=_0x281ba4;let _0x2b35e1=this[_0xc171ee(0x2d0)]();if(it(_0x423879,_0x2b35e1),_0x2b35e1[_0xc171ee(0x11f)])return _0x2b35e1['upload'](_0x423879);let _0x196b52=await this[_0xc171ee(0x146)](_0x423879);return{'id':_0x196b52,'name':_0x423879[_0xc171ee(0x219)],'mimeType':_0x423879[_0xc171ee(0x23b)],'size':_0x423879[_0xc171ee(0x30e)],'sourceType':_0xc171ee(0x337),'source':_0x196b52};}async[_0x281ba4(0x146)](_0x1e8e82){const _0x2ac304=_0x281ba4;let _0x29c88f=this[_0x2ac304(0x193)]['getFocusedUnit'](),_0x5dfcfc=_0x29c88f==null?void 0x0:_0x29c88f[_0x2ac304(0x34e)]();if(!_0x5dfcfc)throw Error(_0x2ac304(0x38b));let _0x1d4f91=new FormData();_0x1d4f91[_0x2ac304(0x185)](_0x2ac304(0x392),_0x1e8e82);let _0x4ae412=this[_0x2ac304(0xd0)]()+_0x2ac304(0x2d6)+_0x1e8e82[_0x2ac304(0x30e)][_0x2ac304(0x249)]()+'&source='+a[_0x2ac304(0xfd)][_0x2ac304(0x39c)]+_0x2ac304(0x301)+encodeURIComponent(_0x5dfcfc),_0x2fdef6=(await this[_0x2ac304(0x1f6)]['post'](_0x4ae412,{'body':_0x1d4f91}))[_0x2ac304(0x2dc)][_0x2ac304(0x13d)];if(typeof _0x2fdef6!=_0x2ac304(0x2e7)||!_0x2fdef6)throw Error(_0x2ac304(0x244));return _0x2fdef6;}['_getUploadFileURL'](){const _0x149d1f=_0x281ba4;var _0xdfd83;return(_0xdfd83=this[_0x149d1f(0x2c1)]()[_0x149d1f(0x10e)])==null?_0x149d1f(0x122):_0xdfd83;}[_0x281ba4(0x2c1)](){const _0x395ad4=_0x281ba4;var _0x51d782;return(_0x51d782=this['_configService'][_0x395ad4(0x321)](_0x395ad4(0xfb)))==null?{}:_0x51d782;}};U=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(l[_0x281ba4(0x2e3)])),v(0x1,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0xca)])),v(0x2,(0x0,t['Inject'])(t['IUniverInstanceService']))],U);function it(_0x27da43,_0x2b5086){const _0x2ee735=_0x281ba4;var _0xc459a2;if(_0x2b5086[_0x2ee735(0x293)]!=null&&_0x27da43[_0x2ee735(0x30e)]>_0x2b5086[_0x2ee735(0x293)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0xc459a2=_0x2b5086[_0x2ee735(0x3be)])!=null&&_0xc459a2['length']&&!_0x2b5086['accept'][_0x2ee735(0x151)](_0x5783b5=>_0x27da43[_0x2ee735(0x23b)]===_0x5783b5||_0x27da43[_0x2ee735(0x219)][_0x2ee735(0x2f2)](_0x5783b5)||_0x5783b5[_0x2ee735(0x2f2)]('/*')&&_0x27da43[_0x2ee735(0x23b)][_0x2ee735(0x37a)](_0x5783b5[_0x2ee735(0x164)](0x0,-0x1))))throw Error(_0x2ee735(0x1ba));}let W=class{constructor(_0x34095b,_0x58e5a2,_0xb838d1){const _0x1799ad=_0x281ba4;this[_0x1799ad(0x21b)]=_0x34095b,this[_0x1799ad(0x1f6)]=_0x58e5a2,this[_0x1799ad(0x2de)]=_0xb838d1,this[_0x1799ad(0x2cf)]();}[_0x281ba4(0x2cf)](){const _0x1dd0aa=_0x281ba4;this[_0x1dd0aa(0x1f6)][_0x1dd0aa(0x123)]({'priority':0x1,'interceptor':(_0x5a184b,_0x167b02)=>_0x167b02(_0x5a184b)[_0x1dd0aa(0x21e)]((0x0,i[_0x1dd0aa(0x1b7)])(async _0x1474da=>{const _0x2af237=_0x1dd0aa;let _0x672395=_0x1474da;if(_0x672395[_0x2af237(0x132)]===0x191){if(typeof window>'u')throw Error(_0x2af237(0x18c));if(window[_0x2af237(0x15a)](this['localeService']['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x19cf44=window[_0x2af237(0x25e)](window[_0x2af237(0x2b2)][_0x2af237(0x183)]);window[_0x2af237(0x2b2)][_0x2af237(0x183)]=this[_0x2af237(0x1a5)]()+_0x2af237(0x384)+_0x19cf44;}}return _0x672395;}))});}[_0x281ba4(0x1a5)](){const _0x22c004=_0x281ba4;var _0x54fd93;let _0x1bb9de=this[_0x22c004(0x21b)][_0x22c004(0x321)](m);return(_0x54fd93=_0x1bb9de==null?void 0x0:_0x1bb9de[_0x22c004(0x2e1)])==null?_0x22c004(0x13c):_0x54fd93;}};W=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t['Inject'])(l[_0x281ba4(0x2e3)])),v(0x2,(0x0,t[_0x281ba4(0x241)])(t['LocaleService']))],W);let G=class extends t[_0x281ba4(0xe4)]{constructor(_0x590c4e,_0x5e45e3){const _0x565093=_0x281ba4;super(),this[_0x565093(0xfe)]=_0x590c4e,this[_0x565093(0x21b)]=_0x5e45e3,g(this,'_cfgEnableObjInherit',!0x1),this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x59b7bc=_0x281ba4;let _0x1badcc=this;this[_0x59b7bc(0x143)](this[_0x59b7bc(0xfe)][_0x59b7bc(0x123)]({'priority':0x3e7,'interceptor':(0x0,l['MergeInterceptorFactory'])({'isMatch'(_0x26ac29){const _0x5784bc=_0x59b7bc;var _0x4031f8;if(_0x26ac29['method']===_0x5784bc(0x3bb)&&(_0x4031f8=_0x26ac29['requestParams'])!=null&&_0x4031f8['body']){let {objectID:_0x5d335e,objectType:_0x33cdd8}=_0x26ac29[_0x5784bc(0x2dd)][_0x5784bc(0x2dc)]||{};if(!_0x5d335e||_0x33cdd8===void 0x0)return!0x1;let _0x1ab27=_0x1badcc[_0x5784bc(0x21c)]()+'/'+_0x33cdd8+_0x5784bc(0x15c)+_0x5d335e+'/allowed';if(_0x26ac29[_0x5784bc(0x339)]===_0x1ab27)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x591806){const _0x5f05d6=_0x59b7bc;var _0x4a9d7e;return(_0x4a9d7e=_0x591806[_0x5f05d6(0x2dd)])==null?void 0x0:_0x4a9d7e[_0x5f05d6(0x2dc)];},'mergeParamsToRequest'(_0x2c752b,_0x4f57a7){const _0x11c6b3=_0x59b7bc;let _0x371955=_0x1badcc[_0x11c6b3(0x21c)]()+_0x11c6b3(0x3ce),_0x3e6f71=_0x2c752b['reduce']((_0x3e0c00,_0x4a7ca3)=>{const _0x28eee7=_0x11c6b3;let {unitID:_0x12fdab,objectID:_0x137a4b,objectType:_0x68108f,actions:_0x259800}=_0x4a7ca3;return _0x3e0c00[_0x12fdab]||(_0x3e0c00[_0x12fdab]={}),_0x3e0c00[_0x12fdab][_0x137a4b]||(_0x3e0c00[_0x12fdab][_0x137a4b]={'objectID':_0x137a4b,'objectType':_0x68108f,'actions':[]}),_0x3e0c00[_0x12fdab][_0x137a4b][_0x28eee7(0x2df)]['push'](..._0x259800),_0x3e0c00;},{}),_0x3027fe=[];for(let _0x2afe2c in _0x3e6f71)for(let _0x1332a9 in _0x3e6f71[_0x2afe2c]){let {actions:_0x2a2f88,objectType:_0xc6d08a}=_0x3e6f71[_0x2afe2c][_0x1332a9],_0x19f053=[...new Set(_0x2a2f88)];_0x3027fe[_0x11c6b3(0x2a2)]({'unitID':_0x2afe2c,'objectID':_0x1332a9,'objectType':_0xc6d08a,'actions':_0x19f053});}return new l[(_0x11c6b3(0x1a9))](_0x11c6b3(0x3bb),_0x371955,{'headers':_0x4f57a7[_0x11c6b3(0x33b)],'withCredentials':_0x4f57a7[_0x11c6b3(0x181)],'responseType':_0x4f57a7[_0x11c6b3(0x156)],'body':{'requests':_0x3027fe}});}},{'distributeResult'(_0x8459ed,_0x37c81d){const _0x190af1=_0x59b7bc;let {objectActions:_0x412ed7}=_0x8459ed;return _0x37c81d[_0x190af1(0x26b)](_0x5a8352=>{const _0x56b5b9=_0x190af1;let {unitID:_0x517260,objectID:_0x561f80,actions:_0x2aed30}=_0x5a8352,_0x5ad7b4=_0x412ed7['find'](_0x1b9ff0=>_0x1b9ff0['unitID']===_0x517260&&_0x1b9ff0[_0x56b5b9(0x238)]===_0x561f80);return{'config':_0x5a8352,'result':{'actions':_0x2aed30[_0x56b5b9(0x26b)](_0xfda549=>_0x5ad7b4==null?void 0x0:_0x5ad7b4[_0x56b5b9(0x2df)]['find'](_0x2175f3=>_0x2175f3[_0x56b5b9(0x209)]===_0xfda549))[_0x56b5b9(0x129)](_0x291c8e=>!!_0x291c8e),'error':_0x8459ed[_0x56b5b9(0x3b2)]}};});}})}));}[_0x281ba4(0x21c)](){const _0x53cbe7=_0x281ba4;var _0x4676cd;let _0x41ad7e=this[_0x53cbe7(0x21b)][_0x53cbe7(0x321)](m);return(_0x4676cd=_0x41ad7e==null?void 0x0:_0x41ad7e['authzUrl'])==null?'/universer-api/authz':_0x4676cd;}async[_0x281ba4(0x221)](_0x3dd13a){const _0x4383c6=_0x281ba4;let _0x12bb93=this['_getAPIPrefixPath']()+'/'+_0x3dd13a[_0x4383c6(0x106)]+_0x4383c6(0x38f);return(await this['_HTTPService'][_0x4383c6(0x3bf)](_0x12bb93,{'body':_0x3dd13a}))[_0x4383c6(0x2dc)][_0x4383c6(0x238)]||'';}async[_0x281ba4(0x32f)](_0x461c70){const _0x4b1a5a=_0x281ba4;let _0x5b475a=this[_0x4b1a5a(0x21c)]()+_0x4b1a5a(0x356);return(await this[_0x4b1a5a(0xfe)][_0x4b1a5a(0x3bf)](_0x5b475a,{'body':_0x461c70}))[_0x4b1a5a(0x2dc)][_0x4b1a5a(0x11d)];}async[_0x281ba4(0x1ab)](_0x439ed4){const _0xab5b35=_0x281ba4;var _0x1956c5;let _0x34737c=this[_0xab5b35(0x21c)]()+'/'+_0x439ed4[_0xab5b35(0x106)]+_0xab5b35(0x15c)+_0x439ed4[_0xab5b35(0x238)],_0x4ca8d8=await this[_0xab5b35(0xfe)][_0xab5b35(0x12d)](_0x34737c,{'body':_0x439ed4});if((_0x4ca8d8==null||(_0x1956c5=_0x4ca8d8[_0xab5b35(0x2dc)])==null||(_0x1956c5=_0x1956c5['error'])==null?void 0x0:_0x1956c5[_0xab5b35(0x2a4)])!==0x1)throw Error(_0xab5b35(0x112));}async[_0x281ba4(0x29a)](_0x13ee76){const _0x513f20=_0x281ba4;let _0x370fe2=this['_getAPIPrefixPath']()+'/'+_0x13ee76[_0x513f20(0x106)]+_0x513f20(0x15c)+_0x13ee76['objectID']+'/allowed';return(await this[_0x513f20(0xfe)][_0x513f20(0x3bf)](_0x370fe2,{'body':_0x13ee76}))['body'][_0x513f20(0x2df)];}async['batchAllowed'](_0x510afe){const _0x138737=_0x281ba4;let _0x4b7e5e=this[_0x138737(0x21c)]()+_0x138737(0x3ce);return(await this[_0x138737(0xfe)]['post'](_0x4b7e5e,{'body':{'requests':_0x510afe}}))[_0x138737(0x2dc)][_0x138737(0x144)];}async[_0x281ba4(0xfc)](_0x3f77db){const _0xf6e9be=_0x281ba4;let _0x429c7e=this[_0xf6e9be(0x21c)]()+'/'+_0x3f77db['objectType']+_0xf6e9be(0x3a7),_0x331e3e=await this[_0xf6e9be(0xfe)][_0xf6e9be(0x3bf)](_0x429c7e,{'body':_0x3f77db});return{'roles':_0x331e3e[_0xf6e9be(0x2dc)][_0xf6e9be(0x1e5)],'actions':_0x331e3e['body'][_0xf6e9be(0x2df)]};}async[_0x281ba4(0x264)](_0x4a2786){const _0x52905c=_0x281ba4;let _0x24b2c7=this[_0x52905c(0x21c)]()+_0x52905c(0x279);await this['_HTTPService'][_0x52905c(0x19e)](_0x24b2c7,{'params':{'collaboratorID':_0x4a2786[_0x52905c(0x10c)],'objectID':_0x4a2786[_0x52905c(0x238)],'unitID':_0x4a2786['unitID']}});}async[_0x281ba4(0x308)](_0x426125){const _0x103b55=_0x281ba4;let _0x4f711b=this[_0x103b55(0x21c)]()+_0x103b55(0x279);await this['_HTTPService'][_0x103b55(0x2bc)](_0x4f711b,{'body':_0x426125});}async['createCollaborator'](_0x292079){const _0x4c5259=_0x281ba4;let _0x55d464=this[_0x4c5259(0x21c)]()+_0x4c5259(0x279);await this['_HTTPService']['post'](_0x55d464,{'body':_0x292079});}async[_0x281ba4(0x37d)](_0x304c94){const _0x26de37=_0x281ba4;var _0x3ecb2e;let _0x5dcb89=this[_0x26de37(0x21c)]()+_0x26de37(0x279),_0x353195=await this['_HTTPService'][_0x26de37(0x323)](_0x5dcb89,{'params':{'objectID':_0x304c94['objectID'],'unitID':_0x304c94['unitID']}});return this[_0x26de37(0x152)]((_0x3ecb2e=_0x353195[_0x26de37(0x2dc)]['cfgEnableObjInherit'])==null?!0x1:_0x3ecb2e),_0x353195[_0x26de37(0x2dc)][_0x26de37(0x233)];}async['putCollaborators'](_0x10a01c){const _0x1d3eb4=_0x281ba4;let _0x25affa=this['_getAPIPrefixPath']()+_0x1d3eb4(0x279);await this['_HTTPService'][_0x1d3eb4(0x12d)](_0x25affa,{'body':_0x10a01c});}[_0x281ba4(0x152)](_0x28733a){const _0xbe2d30=_0x281ba4;this[_0xbe2d30(0x3cd)]=_0x28733a;}[_0x281ba4(0x13b)](){return this['_cfgEnableObjInherit'];}};G=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(l[_0x281ba4(0x2e3)])),v(0x1,(0x0,t[_0x281ba4(0x241)])(t['IConfigService']))],G);function at(_0x40d0b8){const _0x3454a5=_0x281ba4;let _0x4d6d57=atob(_0x40d0b8),_0x4d4b40=new Uint8Array(_0x4d6d57[_0x3454a5(0x16d)]);for(let _0x44c409=0x0;_0x44c409<_0x4d6d57[_0x3454a5(0x16d)];_0x44c409++)_0x4d4b40[_0x44c409]=_0x4d6d57[_0x3454a5(0x212)](_0x44c409);return _0x4d4b40;}function ot(_0x434681){const _0x2961d0=_0x281ba4;let _0x95ab4f='';for(let _0xa191d=0x0;_0xa191d<_0x434681['length'];_0xa191d++)_0x95ab4f+=String[_0x2961d0(0xf2)](_0x434681[_0xa191d]);return btoa(_0x95ab4f);}function st(_0x4d2c25,_0x52308a){const _0x176c30=_0x281ba4;let _0x5f4aad=at(_0x52308a),_0x1aafdc=(0x0,f[_0x176c30(0x32d)])(0x10);return ot((0x0,f[_0x176c30(0x366)])(_0x1aafdc,(0x0,d[_0x176c30(0x3c0)])(_0x5f4aad,_0x1aafdc)['encrypt']((0x0,f[_0x176c30(0x18a)])(_0x4d2c25))));}function ct(){const _0x5940c4=_0x281ba4;let _0x385af7=(0x0,u[_0x5940c4(0x310)])()[_0x5940c4(0x3da)];if(typeof window<'u'&&window[_0x5940c4(0x2b2)]!==void 0x0&&_0x385af7){let _0x4889da={'time':Math['floor'](Date['now']()/0x3e8),'domain':location[_0x5940c4(0x394)]};return st(JSON[_0x5940c4(0xf8)](_0x4889da),_0x385af7);}}let K=class{constructor(_0x3c5aa3){const _0x359522=_0x281ba4;this[_0x359522(0x1f6)]=_0x3c5aa3,this[_0x359522(0x39e)]();}[_0x281ba4(0x39e)](){const _0x474b9b=_0x281ba4;this[_0x474b9b(0x1f6)][_0x474b9b(0x123)]({'interceptor':(_0x2228a1,_0x31146f)=>{const _0x5e8bb4=_0x474b9b;let _0x46c1f9=ct();return _0x46c1f9&&_0x2228a1[_0x5e8bb4(0x33b)][_0x5e8bb4(0x243)]('x-univer-host',_0x46c1f9),_0x31146f(_0x2228a1);}});}};K=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(l['HTTPService']))],K);let q=class extends t[_0x281ba4(0x24d)]{constructor(_0x39261c,_0x133663,_0x76c973){const _0x276c21=_0x281ba4;super(),this[_0x276c21(0x3a2)]=_0x39261c,this[_0x276c21(0x17d)]=_0x133663,this[_0x276c21(0x1ed)]=_0x76c973,g(this,'_unitInfo$',new i['BehaviorSubject'](null)),g(this,_0x276c21(0x13e),new i[(_0x276c21(0x3de))]()),g(this,'unitInfo$',this[_0x276c21(0x317)][_0x276c21(0x284)]()),g(this,_0x276c21(0xff),this[_0x276c21(0x13e)][_0x276c21(0x284)]());}[_0x281ba4(0x25c)](){const _0x59ba6e=_0x281ba4;super[_0x59ba6e(0x25c)](),this[_0x59ba6e(0x13e)]['complete'](),this[_0x59ba6e(0x317)][_0x59ba6e(0x147)]();}async[_0x281ba4(0x341)](_0x54fe90,_0x2996cb,_0x367bad,_0x282237){const _0x19a6a8=_0x281ba4;this['_unitInfo$'][_0x19a6a8(0xd2)]({'unitId':_0x54fe90,'type':_0x2996cb,'subUnitId':_0x282237});let _0x32ba64=null;switch(_0x2996cb){case t[_0x19a6a8(0x314)][_0x19a6a8(0x17b)]:_0x32ba64=await this[_0x19a6a8(0x17d)][_0x19a6a8(0x206)](_0x54fe90,_0x367bad,void 0x0,{'initialSubUnitId':_0x282237});break;case t[_0x19a6a8(0x314)]['UNIVER_DOC']:_0x32ba64=await this[_0x19a6a8(0x17d)][_0x19a6a8(0x2d8)](_0x54fe90,_0x367bad);break;case t[_0x19a6a8(0x314)][_0x19a6a8(0x352)]:_0x32ba64=await this[_0x19a6a8(0x17d)][_0x19a6a8(0x12c)](_0x54fe90,_0x367bad);break;case t[_0x19a6a8(0x314)][_0x19a6a8(0x2a1)]:_0x32ba64=await this[_0x19a6a8(0x17d)][_0x19a6a8(0x1ce)](_0x54fe90,_0x367bad);break;case t[_0x19a6a8(0x314)][_0x19a6a8(0x37e)]:_0x32ba64=await this['_snapshotService'][_0x19a6a8(0x320)](_0x54fe90,_0x367bad);break;default:this[_0x19a6a8(0x3a2)][_0x19a6a8(0x3b2)](_0x19a6a8(0x2f3),_0x19a6a8(0x2e2));break;}return _0x32ba64&&this[_0x19a6a8(0x13e)][_0x19a6a8(0xd2)](_0x32ba64),_0x32ba64;}async['loadUnit'](_0x4c87f6,_0x23ed2f,_0x88bcc4){const _0x40e1c1=_0x281ba4;var _0x53509e;this[_0x40e1c1(0x317)][_0x40e1c1(0xd2)]({'unitId':_0x4c87f6,'type':_0x23ed2f,'subUnitId':_0x88bcc4});let _0x5b5160=0x0,_0xb1ffdf=await((_0x53509e=this['_localCacheService'])==null?void 0x0:_0x53509e[_0x40e1c1(0x1bb)](_0x4c87f6));return _0xb1ffdf&&(_0xb1ffdf[_0x40e1c1(0x1fb)]||_0xb1ffdf[_0x40e1c1(0x2b5)][_0x40e1c1(0x16d)]!==0x0)&&(_0x5b5160=_0xb1ffdf[_0x40e1c1(0x2bf)]),_0x5b5160===0x0&&this[_0x40e1c1(0x3a2)][_0x40e1c1(0x2e4)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x40e1c1(0x341)](_0x4c87f6,_0x23ed2f,_0x5b5160,_0x88bcc4);}};q=y([v(0x0,t['ILogService']),v(0x1,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x1aa)])),v(0x2,(0x0,t[_0x281ba4(0x325)])(S))],q);let J=class{constructor(_0xd7099d,_0x4f844e,_0x3f73a3){const _0x2eb457=_0x281ba4;this[_0x2eb457(0x1f6)]=_0xd7099d,this[_0x2eb457(0x21b)]=_0x4f844e,this[_0x2eb457(0x193)]=_0x3f73a3,g(this,'_waitCount',0x0),g(this,_0x2eb457(0xe6),new i[(_0x2eb457(0x3de))]()),g(this,'change$',this[_0x2eb457(0xe6)]),g(this,_0x2eb457(0x1e6),new Map());}[_0x281ba4(0xf7)](_0xc09555){const _0x687f47=_0x281ba4;this[_0x687f47(0x223)]=_0xc09555,this[_0x687f47(0xe6)][_0x687f47(0xd2)](_0xc09555);}[_0x281ba4(0x25b)](_0x242459,_0x48b918){const _0x204417=_0x281ba4;if(_0x48b918===t[_0x204417(0x277)]['BASE64']){let _0x370e6b=new Image();return _0x370e6b['src']=_0x242459,_0x370e6b;}return this[_0x204417(0x1e6)][_0x204417(0x323)](_0x242459);}[_0x281ba4(0x360)](_0x29defc,_0x4060a4,_0x96dd7f){const _0x80f084=_0x281ba4;_0x4060a4===t['ImageSourceType'][_0x80f084(0xe3)]||_0x96dd7f==null||this[_0x80f084(0x1e6)]['set'](_0x29defc,_0x96dd7f);}async['getImage'](_0x40c90b){const _0x216f92=_0x281ba4;try{let _0x595684=this[_0x216f92(0x38a)](this['_getSignURL'](),''+_0x40c90b),_0x4a8412=(await this[_0x216f92(0x1f6)][_0x216f92(0x323)](_0x595684))[_0x216f92(0x2dc)];if(_0x4a8412[_0x216f92(0x3b2)]&&_0x4a8412[_0x216f92(0x3b2)][_0x216f92(0x2a4)]===a['ErrorCode']['OK']){let _0x2cb2c9=(0x0,t[_0x216f92(0x368)])(_0x4a8412['url'],this[_0x216f92(0x1b0)]());return Promise[_0x216f92(0x199)](_0x2cb2c9);}return Promise[_0x216f92(0x240)](_0x4a8412[_0x216f92(0x3b2)]);}catch(_0x40c4da){return Promise[_0x216f92(0x240)](_0x40c4da);}}async['saveImage'](_0x863186){const _0x1981a7=_0x281ba4;let _0x40edbf='';if(!p[_0x1981a7(0x2a8)][_0x1981a7(0x2c3)](_0x863186[_0x1981a7(0x23b)]))return this['_decreaseWaiting'](),Promise[_0x1981a7(0x240)](Error(t['ImageUploadStatusType'][_0x1981a7(0x20f)]));if(_0x863186[_0x1981a7(0x30e)]>(0x0,p['getDrawingImageAllowSize'])())return this['_decreaseWaiting'](),Promise['reject'](Error(t[_0x1981a7(0x23d)][_0x1981a7(0x171)]));try{let _0x3d7a34=new FormData();_0x3d7a34[_0x1981a7(0x185)]('file',_0x863186);let _0x4f46eb=this[_0x1981a7(0x193)]['getFocusedUnit'](),_0x372eac=_0x4f46eb==null?void 0x0:_0x4f46eb[_0x1981a7(0x34e)]();if(!_0x372eac)throw Error('unitId\x20is\x20not\x20found');let _0x37c863=this[_0x1981a7(0xd0)]()+'?size='+_0x863186[_0x1981a7(0x30e)][_0x1981a7(0x249)]()+_0x1981a7(0x16b)+a['FileSource']['UnitEmbedded']+_0x1981a7(0x301)+encodeURIComponent(_0x372eac),_0x42390e={'body':_0x3d7a34},_0xfd2120=(await this[_0x1981a7(0x1f6)][_0x1981a7(0x3bf)](_0x37c863,_0x42390e))['body'];if(typeof _0xfd2120[_0x1981a7(0x13d)]!=_0x1981a7(0x2e7))return this[_0x1981a7(0x257)](),Promise['reject'](Error(t[_0x1981a7(0x23d)][_0x1981a7(0x1d4)]));_0x40edbf=_0xfd2120[_0x1981a7(0x13d)];}catch{return this[_0x1981a7(0x257)](),Promise[_0x1981a7(0x240)](Error(t[_0x1981a7(0x23d)][_0x1981a7(0x1d4)]));}return new Promise((_0x90ba0e,_0x2cd47f)=>{const _0x467678=_0x1981a7;let _0x5ac45e=new FileReader();_0x5ac45e[_0x467678(0x15d)](_0x863186),_0x5ac45e[_0x467678(0x328)]=_0x243e9f=>{const _0x132625=_0x467678;var _0x4774eb;let _0x3aa46c=(_0x4774eb=_0x243e9f['target'])==null?void 0x0:_0x4774eb[_0x132625(0xcb)];if(_0x3aa46c==null){this[_0x132625(0x257)](),_0x2cd47f(Error(t[_0x132625(0x23d)][_0x132625(0x1d4)]));return;}_0x90ba0e({'imageId':(0x0,t[_0x132625(0x21a)])(0x6),'imageSourceType':t[_0x132625(0x277)]['UUID'],'source':_0x40edbf,'base64Cache':_0x3aa46c,'status':t[_0x132625(0x23d)]['SUCCUSS']}),this[_0x132625(0x257)]();};});}[_0x281ba4(0xd0)](){const _0x1ea61e=_0x281ba4;var _0x1ab065;let _0x174572=this[_0x1ea61e(0x21b)][_0x1ea61e(0x321)](m);return(_0x1ab065=_0x174572==null?void 0x0:_0x174572[_0x1ea61e(0x10e)])==null?_0x1ea61e(0x122):_0x1ab065;}[_0x281ba4(0x387)](){const _0x53968b=_0x281ba4;var _0x26aaee;let _0x17ef6c=this[_0x53968b(0x21b)][_0x53968b(0x321)](m);return(_0x26aaee=_0x17ef6c==null?void 0x0:_0x17ef6c[_0x53968b(0x2d9)])==null?'/universer-api/file/{fileID}/sign-url':_0x26aaee;}[_0x281ba4(0x1b0)](){const _0x379ea8=_0x281ba4;var _0x43f981;let _0x1f1343=this[_0x379ea8(0x21b)]['getConfig'](m);return(_0x43f981=_0x1f1343==null?void 0x0:_0x1f1343[_0x379ea8(0x1cd)])==null?location[_0x379ea8(0x345)]:_0x43f981;}[_0x281ba4(0x38a)](_0x40d6bf,_0x581352){const _0x1479b6=_0x281ba4;return _0x40d6bf[_0x1479b6(0x2aa)](_0x1479b6(0x15f),_0x581352);}['_decreaseWaiting'](){const _0x91e451=_0x281ba4;--this[_0x91e451(0x223)],this[_0x91e451(0xe6)][_0x91e451(0xd2)](this[_0x91e451(0x223)]);}};J=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(l[_0x281ba4(0x2e3)])),v(0x1,t['IConfigService']),v(0x2,(0x0,t[_0x281ba4(0x241)])(t['IUniverInstanceService']))],J);let Y=class{constructor(_0x4a1586,_0x2627fb){const _0x2c2012=_0x281ba4;this['_configService']=_0x4a1586,this[_0x2c2012(0xfe)]=_0x2627fb;}['_getAPIPrefixPath'](){const _0xfb3258=_0x281ba4;var _0x7f7245;let _0x299fb3=this[_0xfb3258(0x21b)][_0xfb3258(0x321)](m);return(_0x7f7245=_0x299fb3==null?void 0x0:_0x299fb3['authzUrl'])==null?_0xfb3258(0x3c9):_0x7f7245;}async[_0x281ba4(0x32f)](_0x36515d){const _0xf936d3=_0x281ba4;let _0x49c828=this['_getAPIPrefixPath']()+'/collaborator';return{'list':[{'title':_0xf936d3(0x36e),'mentions':(await this[_0xf936d3(0xfe)][_0xf936d3(0x323)](_0x49c828,{'params':{'objectID':_0x36515d[_0xf936d3(0x118)],'unitID':_0x36515d['unitId']}}))[_0xf936d3(0x2dc)]['collaborators']['map'](_0x2cd31d=>({'objectId':_0x2cd31d['id'],'name':_0x2cd31d[_0xf936d3(0x3b9)][_0xf936d3(0x219)],'metadata':{'icon':_0x2cd31d[_0xf936d3(0x3b9)]['avatar']},'label':_0x2cd31d['subject'][_0xf936d3(0x219)],'objectType':t['MentionType'][_0xf936d3(0x3af)]})),'metadata':{},'type':t[_0xf936d3(0x1dd)][_0xf936d3(0x3af)]}]};}};Y=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0xca)])),v(0x1,(0x0,t[_0x281ba4(0x241)])(l[_0x281ba4(0x2e3)]))],Y);let X=class extends t[_0x281ba4(0x24d)]{constructor(_0x423dcd,_0x1dbab2,_0x57d410,_0x22a5c0,_0x4e428){const _0x1b8587=_0x281ba4;super(),this[_0x1b8587(0x103)]=_0x423dcd,this[_0x1b8587(0x193)]=_0x1dbab2,this['_permissionService']=_0x57d410,this['_collaborationSessionService']=_0x22a5c0,this[_0x1b8587(0x1a1)]=_0x4e428,this['_initUnitPermissionChange'](),this[_0x1b8587(0x1ec)]();}['_initCloseConn'](){const _0x1160c5=_0x281ba4;let _0x1330b8=async _0x2b4c89=>{const _0x1d862d=_0x2431;(await this['_collaborationSessionService'][_0x1d862d(0x297)](_0x2b4c89))['event$'][_0x1d862d(0x21e)]((0x0,s[_0x1d862d(0x129)])(_0x552879=>_0x552879[_0x1d862d(0x35a)]===e[_0x1d862d(0x137)][_0x1d862d(0x3e1)]),(0x0,s[_0x1d862d(0x1f5)])(this[_0x1d862d(0x109)]))[_0x1d862d(0x2a5)](_0x4443ff=>{const _0x3cce82=_0x1d862d;let {reason:_0x2d5ebf}=_0x4443ff[_0x3cce82(0x346)];this[_0x3cce82(0x1a1)][_0x3cce82(0x298)]({'id':_0x3cce82(0x20d),'data':_0x2d5ebf}),this['_permissionService'][_0x3cce82(0x30d)](new r[(_0x3cce82(0x10a))](_0x2b4c89)['id'],!0x1),this[_0x3cce82(0x3b7)][_0x3cce82(0x393)](_0x2b4c89);});};(0x0,i[_0x1160c5(0x299)])(this['_univerInstanceService'][_0x1160c5(0x382)](t['UniverInstanceType'][_0x1160c5(0x17b)]),this['_univerInstanceService'][_0x1160c5(0x382)](t[_0x1160c5(0x314)][_0x1160c5(0x157)]),this[_0x1160c5(0x193)][_0x1160c5(0x382)](t[_0x1160c5(0x314)][_0x1160c5(0x2a1)]),this[_0x1160c5(0x193)][_0x1160c5(0x382)](t['UniverInstanceType']['UNIVER_BASE']))['pipe']((0x0,s[_0x1160c5(0x26b)])(_0xb30f26=>_0xb30f26['unit']['getUnitId']()),(0x0,s['filter'])(_0x733d46=>!(0x0,t[_0x1160c5(0x2ec)])(_0x733d46)),(0x0,s[_0x1160c5(0x1f5)])(this[_0x1160c5(0x109)]))[_0x1160c5(0x2a5)](_0x18220c=>{_0x1330b8(_0x18220c);});}[_0x281ba4(0x1f4)](){const _0x472e6c=_0x281ba4;let _0x487374=async _0x581696=>{const _0x52e714=_0x2431;let _0x529cdc=await this['_collaborationSessionService'][_0x52e714(0x297)](_0x581696),_0x57b3ed=this[_0x52e714(0x103)][_0x52e714(0x323)](r['SheetPermissionInitController']);_0x529cdc[_0x52e714(0x22c)]['pipe']((0x0,s[_0x52e714(0x129)])(_0x22fece=>_0x22fece['eventID']===e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,s[_0x52e714(0x1f5)])(this[_0x52e714(0x109)]))[_0x52e714(0x2a5)](_0x53a5fb=>{const _0x375dc0=_0x52e714;let {objectId:_0x3d707a}=_0x53a5fb[_0x375dc0(0x346)];_0x3d707a===_0x581696?_0x57b3ed[_0x375dc0(0x101)](_0x581696):_0x57b3ed['refreshPermission'](_0x581696,_0x3d707a);});};(0x0,i['merge'])(this['_univerInstanceService'][_0x472e6c(0x382)](t['UniverInstanceType'][_0x472e6c(0x17b)]))[_0x472e6c(0x21e)]((0x0,s[_0x472e6c(0x26b)])(_0x12f82e=>_0x12f82e[_0x472e6c(0x25d)][_0x472e6c(0x34e)]()),(0x0,s[_0x472e6c(0x129)])(_0x21a87a=>!(0x0,t[_0x472e6c(0x2ec)])(_0x21a87a)),(0x0,s[_0x472e6c(0x1f5)])(this[_0x472e6c(0x109)]))[_0x472e6c(0x2a5)](_0x4831ff=>{_0x487374(_0x4831ff);});}};X=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x281ba4(0x26f)]),v(0x3,(0x0,t[_0x281ba4(0x241)])(V)),v(0x4,(0x0,t[_0x281ba4(0x241)])(_))],X);let Z=class{constructor(_0x363507,_0x460db4){const _0x3e2a34=_0x281ba4;this[_0x3e2a34(0x21b)]=_0x363507,this['_httpService']=_0x460db4;}async[_0x281ba4(0x18e)](_0x3ebf69,_0x1072f5){const _0x281642=_0x281ba4;var _0x3f0aba;let {unitID:_0x186b07,type:_0x240e0a,revision:_0x21fed4=0x0}=_0x1072f5,_0x3dd69e=this[_0x281642(0x190)]()+'/'+_0x240e0a+_0x281642(0x111)+_0x186b07+_0x281642(0x22e)+_0x21fed4,_0x38dc6a=(await this[_0x281642(0x1f6)][_0x281642(0x323)](_0x3dd69e))[_0x281642(0x2dc)],_0x484e14=(_0x3f0aba=_0x38dc6a[_0x281642(0x1c2)])==null?void 0x0:_0x3f0aba[_0x281642(0x1fa)];if(_0x484e14){let _0x22a2f8=_0x484e14==null?void 0x0:_0x484e14[_0x281642(0x31a)];_0x484e14['originalMeta']=e['textEncoder'][_0x281642(0x116)]((0x0,e[_0x281642(0x2e5)])(_0x22a2f8)),Object[_0x281642(0x3bd)](_0x484e14[_0x281642(0x16e)])[_0x281642(0x179)](([,_0x24239d])=>{const _0x5ad908=_0x281642;let _0x2ab75e=_0x24239d[_0x5ad908(0x31a)];_0x24239d[_0x5ad908(0x31a)]=e[_0x5ad908(0x21f)][_0x5ad908(0x116)]((0x0,e['b64DecodeUnicode'])(_0x2ab75e));});}return _0x38dc6a;}async[_0x281ba4(0xdf)](_0x3854dc,_0x2fd448){const _0xfeecb8=_0x281ba4;let {unitID:_0x1cda83,type:_0x2c47bc,blockID:_0x5c6b}=_0x2fd448,_0x108022=this['_getAPIPrefix']()+'/'+_0x2c47bc+_0xfeecb8(0x111)+_0x1cda83+_0xfeecb8(0x25a)+_0x5c6b;return(await this[_0xfeecb8(0x1f6)][_0xfeecb8(0x323)](_0x108022))['body'];}async['getDeserializedSheetBlock'](_0xc10b8e,_0x565ea5){const _0x421d1b=_0x281ba4;let {unitID:_0x40369e,type:_0x4b577b,blockID:_0x488d5a}=_0x565ea5,_0x560ec6=this[_0x421d1b(0x25f)]()+'/block/'+_0x4b577b+_0x421d1b(0x111)+_0x40369e+_0x421d1b(0x25a)+_0x488d5a;return(await this['_httpService'][_0x421d1b(0x323)](_0x560ec6))[_0x421d1b(0x2dc)];}async[_0x281ba4(0x27a)](_0x4b62bb,_0x3e14ba){const _0x1a9262=_0x281ba4;let {unitID:_0x248059,type:_0x3d47bc,from:_0x4dcb8e,to:_0x29e8f2}=_0x3e14ba,_0x102338=this[_0x1a9262(0x25f)]()+'/'+_0x3d47bc+_0x1a9262(0x111)+_0x248059+_0x1a9262(0x1a3)+_0x4dcb8e+_0x1a9262(0x2a7)+_0x29e8f2;return(await this[_0x1a9262(0x1f6)][_0x1a9262(0x323)](_0x102338))[_0x1a9262(0x2dc)];}[_0x281ba4(0x190)](){const _0x1d880d=_0x281ba4;var _0x57affc;return(_0x57affc=this[_0x1d880d(0x21b)][_0x1d880d(0x321)](_0x1d880d(0x273)))==null?this['_getAPIPrefix']():_0x57affc;}['_getAPIPrefix'](){const _0x228dde=_0x281ba4;var _0x334aa0;let _0x16a664=this['_configService'][_0x228dde(0x321)](m);return(_0x334aa0=_0x16a664==null?void 0x0:_0x16a664[_0x228dde(0x2f4)])==null?'/universer-api/snapshot':_0x334aa0;}async[_0x281ba4(0x291)](_0x31b58d,_0x3e317c){const _0x51b6d4=_0x281ba4;let _0x52a851=_0x51b6d4(0x398)+_0x3e317c['type']+_0x51b6d4(0x111)+_0x3e317c['unitID']+_0x51b6d4(0x1d2);return(await this[_0x51b6d4(0x1f6)]['get'](_0x52a851,{'params':{'resourceId':JSON[_0x51b6d4(0xf8)](_0x3e317c[_0x51b6d4(0x335)])}}))['body'];}[_0x281ba4(0x3dd)](){const _0x3415a2=_0x281ba4;throw Error(_0x3415a2(0x222));}['updateSnapshot'](){const _0x16c687=_0x281ba4;throw Error(_0x16c687(0x222));}[_0x281ba4(0x1a7)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x281ba4(0x1ef)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x281ba4(0x362)](){const _0x505d84=_0x281ba4;throw Error(_0x505d84(0x222));}[_0x281ba4(0x359)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Z=y([v(0x0,t[_0x281ba4(0xca)]),v(0x1,(0x0,t[_0x281ba4(0x241)])(l['HTTPService']))],Z);let Q=class extends t[_0x281ba4(0x138)]{constructor(_0x4bdee7,_0x416c3d,_0x54887f,_0x191ea8,_0x1a55df){const _0x3af722=_0x281ba4;super(_0x4bdee7,_0x416c3d,_0x54887f),this[_0x3af722(0x1d7)]=_0x191ea8,this[_0x3af722(0x3a2)]=_0x1a55df;}[_0x281ba4(0x295)](_0x2e2587,_0x10cedd){const _0x5b16b5=_0x281ba4;let _0x553bd2=this[_0x5b16b5(0x2a6)](_0x2e2587);if(_0x553bd2)try{let _0x40526e=this['_transformStack'](_0x553bd2,_0x10cedd);this[_0x5b16b5(0x177)](_0x2e2587,_0x40526e);}catch(_0x58ca59){this[_0x5b16b5(0x3a2)][_0x5b16b5(0x3b2)](_0x5b16b5(0x195),_0x58ca59),this['_clearUndo'](_0x2e2587);}let _0x504003=this[_0x5b16b5(0x23f)](_0x2e2587);if(_0x504003)try{let _0x4bd217=this[_0x5b16b5(0x274)](_0x504003,_0x10cedd);this['_substituteRedoStack'](_0x2e2587,_0x4bd217);}catch(_0x2db85b){this['_logService'][_0x5b16b5(0x3b2)](_0x2db85b),this['_clearRedo'](_0x2e2587);}}['_clearUndo'](_0x1ccdaf){const _0x48df4e=_0x281ba4;let _0x1ecdf0=this[_0x48df4e(0x2a6)](_0x1ccdaf);_0x1ecdf0&&(_0x1ecdf0[_0x48df4e(0x16d)]=0x0,this[_0x48df4e(0x1be)]());}[_0x281ba4(0x20b)](_0x114605){const _0x5af231=_0x281ba4;let _0x501fbb=this[_0x5af231(0x23f)](_0x114605);_0x501fbb&&(_0x501fbb['length']=0x0,this[_0x5af231(0x1be)]());}['_substituteUndoStack'](_0x971816,_0x25157a){const _0x423226=_0x281ba4;this[_0x423226(0x1e3)][_0x423226(0x243)](_0x971816,_0x25157a),this[_0x423226(0x1be)]();}[_0x281ba4(0x30f)](_0x42b06f,_0x19c695){const _0xa400b6=_0x281ba4;this[_0xa400b6(0x165)][_0xa400b6(0x243)](_0x42b06f,_0x19c695),this['_updateStatus']();}[_0x281ba4(0x274)](_0x2914f8,_0x895cb0){const _0x56dc3d=_0x281ba4;let _0x3c2cc9=[],_0x55cd51=_0x895cb0,_0xf6c8ce=_0x895cb0;for(let _0x2392f9=_0x2914f8[_0x56dc3d(0x16d)]-0x1;_0x2392f9>=0x0;_0x2392f9--){let {unitID:_0x203c16,undoMutations:_0x18dbb8,redoMutations:_0x7de78}=_0x2914f8[_0x2392f9],_0x167402=this['_transformService'][_0x56dc3d(0x207)](_0x55cd51,_0x18dbb8),_0x4086cb=this[_0x56dc3d(0x1d7)]['transformMutationsWithChangeset'](_0xf6c8ce,_0x7de78);if((0x0,e[_0x56dc3d(0x19c)])(_0x167402)||(0x0,e[_0x56dc3d(0x19c)])(_0x4086cb)){this[_0x56dc3d(0x3a2)][_0x56dc3d(0x3b2)]('[CollaborationUndoRedoService]',_0x56dc3d(0x20a),_0x167402,_0x4086cb);break;}_0x55cd51=_0x167402[_0x56dc3d(0x167)],_0xf6c8ce=_0x4086cb[_0x56dc3d(0x167)],_0x3c2cc9[_0x56dc3d(0x2a2)]({'unitID':_0x203c16,'undoMutations':_0x167402['m2Prime'],'redoMutations':_0x4086cb[_0x56dc3d(0x275)]});}return _0x3c2cc9[_0x56dc3d(0x17c)]();}};Q=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x281ba4(0x300)]),v(0x2,t[_0x281ba4(0xf5)]),v(0x3,e['ITransformService']),v(0x4,t[_0x281ba4(0x150)])],Q);let $=class extends t[_0x281ba4(0x189)]{constructor(_0x51dffc=ee,_0x2de9ad,_0x32b776,_0x2a1a7d){const _0x16096e=_0x281ba4;super(),this[_0x16096e(0x29e)]=_0x51dffc,this[_0x16096e(0x3a2)]=_0x2de9ad,this[_0x16096e(0x103)]=_0x32b776,this[_0x16096e(0x21b)]=_0x2a1a7d;let {..._0x4e61c2}=(0x0,t[_0x16096e(0x299)])({},ee,this[_0x16096e(0x29e)]);if(!_0x4e61c2[_0x16096e(0x149)])throw Error(_0x16096e(0x28c));this[_0x16096e(0x29e)]=_0x4e61c2,this[_0x16096e(0x21b)]['setConfig'](m,_0x4e61c2);}['onStarting'](){const _0x110d22=_0x281ba4;this[_0x110d22(0x326)](),this[_0x110d22(0x296)]();}[_0x281ba4(0x326)](){const _0xcc5313=_0x281ba4;var _0x246131,_0x53ec8b;this['_injector'][_0xcc5313(0x125)](t[_0xcc5313(0x194)])&&this[_0xcc5313(0x3a2)][_0xcc5313(0x3b2)](_0xcc5313(0x267),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x5388e2=(0x0,t['mergeOverrideWithDependencies'])([[t[_0xcc5313(0x194)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[qe,{'useClass':this[_0xcc5313(0x29e)][_0xcc5313(0x149)]}],[e[_0xcc5313(0x391)],{'useClass':Z}],[t[_0xcc5313(0x121)],{'useClass':G}],[t[_0xcc5313(0xd5)],{'useClass':J}],[rt,{'useClass':U}],[t[_0xcc5313(0x1dc)],{'useClass':Y}],[H],[tt]],(_0x246131=this['_config'])==null?void 0x0:_0x246131[_0xcc5313(0x15b)]);if(!((_0x53ec8b=this[_0xcc5313(0x29e)])!=null&&_0x53ec8b[_0xcc5313(0x2b7)])){let _0xb9baf2=_0x5388e2['findIndex'](([_0x45f815])=>_0x45f815===w);_0xb9baf2!==-0x1&&_0x5388e2[_0xcc5313(0xe9)](_0xb9baf2,0x1);}(0x0,t[_0xcc5313(0x28b)])(this[_0xcc5313(0x103)],_0x5388e2);}[_0x281ba4(0x296)](){const _0x1f1c8f=_0x281ba4;var _0x1d38d8,_0x62d53f;if(this[_0x1f1c8f(0x103)][_0x1f1c8f(0x323)](l[_0x1f1c8f(0x2e3)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,l['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x1d38d8=this[_0x1f1c8f(0x29e)])!=null&&_0x1d38d8[_0x1f1c8f(0x3b5)])){var _0x10b4fe;(_0x10b4fe=this[_0x1f1c8f(0x103)]['get'](S,t[_0x1f1c8f(0x30c)]['OPTIONAL']))==null||_0x10b4fe[_0x1f1c8f(0x215)]();}(_0x62d53f=this[_0x1f1c8f(0x29e)])!=null&&_0x62d53f[_0x1f1c8f(0x3dc)]&&(0x0,t['touchDependencies'])(this['_injector'],[[W]]),(0x0,t[_0x1f1c8f(0x1c7)])(this[_0x1f1c8f(0x103)],[[K],[H],[X]]);}};g($,_0x281ba4(0x141),_0x281ba4(0x268)),g($,_0x281ba4(0x289),$e),g($,_0x281ba4(0x13f),et),$=y([(0x0,t['DependentOn'])(u['UniverLicensePlugin'],e[_0x281ba4(0x1a4)],l[_0x281ba4(0x225)]),v(0x1,t[_0x281ba4(0x150)]),v(0x2,(0x0,t['Inject'])(t[_0x281ba4(0x145)])),v(0x3,t[_0x281ba4(0xca)])],$),exports[_0x281ba4(0xfa)]=nt,Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x3a5),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x281ba4(0x17f),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x3cf),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x133),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x187),{'enumerable':!0x0,'get':function(){return B;}}),exports['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=m,Object[_0x281ba4(0x1c9)](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x281ba4(0x1c9)](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x281ba4(0x1c9)](exports,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x2ee),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x127),{'enumerable':!0x0,'get':function(){return x;}}),Object['defineProperty'](exports,_0x281ba4(0x288),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x281ba4(0x1c9)](exports,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x281ba4(0x3e3)]=Be,exports['CollaborationUIEventId']=oe,exports[_0x281ba4(0x142)]=_,Object[_0x281ba4(0x1c9)](exports,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return Q;}}),exports['CommentService']=se,Object[_0x281ba4(0x1c9)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x281ba4(0x247)]=te,exports[_0x281ba4(0x2fc)]=_0x281ba4(0x11a),exports[_0x281ba4(0x31d)]=_0x281ba4(0x23e),Object['defineProperty'](exports,_0x281ba4(0x2ff),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x322),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x184),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x281ba4(0x269)]=_0x281ba4(0x2ae),exports[_0x281ba4(0x370)]=_0x281ba4(0xeb),exports[_0x281ba4(0x280)]=rt,exports['ICollaborationClientAdapterService']=Xe,exports[_0x281ba4(0x198)]=qe,exports['ILocalCacheService']=S,exports[_0x281ba4(0x3b1)]=We,exports[_0x281ba4(0x13a)]=w,exports[_0x281ba4(0xcd)]=0x3e8,exports[_0x281ba4(0x117)]=_0x281ba4(0xcd),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x208),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x281ba4(0x1c9)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x1c3),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x23a),{'enumerable':!0x0,'get':function(){return k;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x281ba4(0xe8),exports[_0x281ba4(0x1d3)]=_0x281ba4(0xec),exports['SessionStatus']=ve,Object['defineProperty'](exports,_0x281ba4(0x287),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x29b),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x2e0),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x281ba4(0x1c9)](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x281ba4(0x348)]=Se,Object[_0x281ba4(0x1c9)](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x281ba4(0x1f8)]=Ze,exports[_0x281ba4(0x1b8)]=Ge,exports[_0x281ba4(0x388)]=be,exports[_0x281ba4(0x210)]=Ke;
|