@univerjs-pro/collaboration-client 1.0.0-alpha.8 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/facade/f-collaboration.d.ts +14 -0
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +2 -2
- 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 +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x33c78d=_0x1643;(function(_0x142a93,_0x262fbb){const _0x4aa8ff=_0x1643,_0x1013dc=_0x142a93();while(!![]){try{const _0x53f273=parseInt(_0x4aa8ff(0x12b))/0x1+-parseInt(_0x4aa8ff(0x1a5))/0x2+parseInt(_0x4aa8ff(0x3e3))/0x3*(parseInt(_0x4aa8ff(0x1cd))/0x4)+parseInt(_0x4aa8ff(0x411))/0x5+parseInt(_0x4aa8ff(0x1de))/0x6*(parseInt(_0x4aa8ff(0x2c3))/0x7)+parseInt(_0x4aa8ff(0x16b))/0x8+-parseInt(_0x4aa8ff(0x2f8))/0x9*(parseInt(_0x4aa8ff(0x304))/0xa);if(_0x53f273===_0x262fbb)break;else _0x1013dc['push'](_0x1013dc['shift']());}catch(_0x194427){_0x1013dc['push'](_0x1013dc['shift']());}}}(_0xff81,0x2741d),Object[_0x33c78d(0x36d)](exports,Symbol['toStringTag'],{'value':_0x33c78d(0x2f7)}));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=_0x33c78d(0x3d3),ee={},te=_0x33c78d(0x14e),ne=0x4e20;function re(_0x57679c){const _0x4d7147=_0x33c78d;return JSON[_0x4d7147(0x200)](_0x57679c)[_0x4d7147(0x3e4)];}function h(_0x3a6cfd){'@babel/helpers - typeof';const _0x53de19=_0x33c78d;return h=typeof Symbol==_0x53de19(0x201)&&typeof Symbol[_0x53de19(0x2f2)]==_0x53de19(0x3c0)?function(_0x57e1c4){return typeof _0x57e1c4;}:function(_0x2fff7f){const _0x204b60=_0x53de19;return _0x2fff7f&&typeof Symbol=='function'&&_0x2fff7f[_0x204b60(0x3de)]===Symbol&&_0x2fff7f!==Symbol['prototype']?_0x204b60(0x3c0):typeof _0x2fff7f;},h(_0x3a6cfd);}function ie(_0x4808ca,_0x3bdb8b){const _0x4b58c4=_0x33c78d;if(h(_0x4808ca)!=_0x4b58c4(0x3f0)||!_0x4808ca)return _0x4808ca;var _0x3eb8d3=_0x4808ca[Symbol[_0x4b58c4(0x141)]];if(_0x3eb8d3!==void 0x0){var _0x5de81d=_0x3eb8d3[_0x4b58c4(0x184)](_0x4808ca,_0x3bdb8b||_0x4b58c4(0x124));if(h(_0x5de81d)!=_0x4b58c4(0x3f0))return _0x5de81d;throw TypeError(_0x4b58c4(0x1c3));}return(_0x3bdb8b===_0x4b58c4(0x32f)?String:Number)(_0x4808ca);}function ae(_0x390ebb){const _0x169e9b=_0x33c78d;var _0x3177c8=ie(_0x390ebb,_0x169e9b(0x32f));return h(_0x3177c8)==_0x169e9b(0x3c0)?_0x3177c8:_0x3177c8+'';}function g(_0x19a51e,_0x3f88b3,_0x4c843d){const _0x4b321d=_0x33c78d;return(_0x3f88b3=ae(_0x3f88b3))in _0x19a51e?Object[_0x4b321d(0x36d)](_0x19a51e,_0x3f88b3,{'value':_0x4c843d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x19a51e[_0x3f88b3]=_0x4c843d,_0x19a51e;}let oe=function(_0xdc7a14){const _0x44b492=_0x33c78d;return _0xdc7a14[_0x44b492(0x159)]=_0x44b492(0x159),_0xdc7a14[_0x44b492(0x385)]=_0x44b492(0x385),_0xdc7a14[_0x44b492(0x320)]=_0x44b492(0x320),_0xdc7a14[_0x44b492(0x20c)]=_0x44b492(0x20c),_0xdc7a14[_0x44b492(0x26d)]=_0x44b492(0x26d),_0xdc7a14['SOCKET_FAILED_RETRY']='SOCKET_FAILED_RETRY',_0xdc7a14['SOCKET_FAILED']=_0x44b492(0x2e3),_0xdc7a14[_0x44b492(0x369)]=_0x44b492(0x369),_0xdc7a14;}({});var _=class{constructor(){const _0x4b4b19=_0x33c78d;g(this,_0x4b4b19(0x3b9),new i[(_0x4b4b19(0x2ca))]()),g(this,'event$',this[_0x4b4b19(0x3b9)][_0x4b4b19(0x22d)]());}[_0x33c78d(0x26f)](_0x324d29){const _0x1acdba=_0x33c78d;this[_0x1acdba(0x3b9)]['next'](_0x324d29);}},se=class{constructor(){const _0x2d6622=_0x33c78d;g(this,'_commentUpdate$',new i['Subject']()),g(this,'commentUpdate$',this[_0x2d6622(0x123)]['asObservable']());}[_0x33c78d(0x281)](_0x201dc1){const _0x225211=_0x33c78d;this['_commentUpdate$'][_0x225211(0x2bd)](_0x201dc1);}};function v(_0x4f894f,_0x3cff4c){return function(_0x522605,_0x46bb57){_0x3cff4c(_0x522605,_0x46bb57,_0x4f894f);};}function y(_0x262383,_0x270888,_0x51d11e,_0x46b634){const _0x37e1d5=_0x33c78d;var _0x164b35=arguments[_0x37e1d5(0x3e4)],_0x4a1033=_0x164b35<0x3?_0x270888:_0x46b634===null?_0x46b634=Object[_0x37e1d5(0x273)](_0x270888,_0x51d11e):_0x46b634,_0x5ef2c7;if(typeof Reflect==_0x37e1d5(0x3f0)&&typeof Reflect['decorate']=='function')_0x4a1033=Reflect['decorate'](_0x262383,_0x270888,_0x51d11e,_0x46b634);else{for(var _0x4e0cbb=_0x262383[_0x37e1d5(0x3e4)]-0x1;_0x4e0cbb>=0x0;_0x4e0cbb--)(_0x5ef2c7=_0x262383[_0x4e0cbb])&&(_0x4a1033=(_0x164b35<0x3?_0x5ef2c7(_0x4a1033):_0x164b35>0x3?_0x5ef2c7(_0x270888,_0x51d11e,_0x4a1033):_0x5ef2c7(_0x270888,_0x51d11e))||_0x4a1033);}return _0x164b35>0x3&&_0x4a1033&&Object[_0x37e1d5(0x36d)](_0x270888,_0x51d11e,_0x4a1033),_0x4a1033;}let b=class extends t['Disposable']{constructor(_0xf70076){const _0x396380=_0x33c78d;super(),this[_0x396380(0x1eb)]=_0xf70076,g(this,_0x396380(0x20f),new Map()),g(this,'_roomCreated$',new i[(_0x396380(0x2ca))]()),this[_0x396380(0x193)]((0x0,i[_0x396380(0x161)])(this[_0x396380(0x1eb)]['getTypeOfUnitDisposed$'](t[_0x396380(0x3ad)][_0x396380(0x303)])[_0x396380(0x253)]((0x0,s[_0x396380(0x2c2)])(_0xf554fe=>_0xf554fe[_0x396380(0x428)]())),this[_0x396380(0x1eb)][_0x396380(0x367)](t[_0x396380(0x3ad)][_0x396380(0x137)])[_0x396380(0x253)]((0x0,s[_0x396380(0x2c2)])(_0xb5bc7e=>_0xb5bc7e[_0x396380(0x428)]())),this[_0x396380(0x1eb)]['getTypeOfUnitDisposed$'](t[_0x396380(0x3ad)][_0x396380(0x34d)])[_0x396380(0x253)]((0x0,s['map'])(_0x566395=>_0x566395[_0x396380(0x428)]())),this[_0x396380(0x1eb)][_0x396380(0x367)](t[_0x396380(0x3ad)][_0x396380(0x262)])[_0x396380(0x253)]((0x0,s[_0x396380(0x2c2)])(_0x57effd=>_0x57effd[_0x396380(0x428)]())))[_0x396380(0x279)](_0x4a95bd=>this['_removeRoom'](_0x4a95bd)));}[_0x33c78d(0x356)](_0x5cd263){const _0x2aa87f=_0x33c78d;return this[_0x2aa87f(0x20f)]['has'](_0x5cd263)?(0x0,i['of'])(this[_0x2aa87f(0x20f)][_0x2aa87f(0x1d6)](_0x5cd263)):this[_0x2aa87f(0x268)]['pipe']((0x0,s[_0x2aa87f(0x2c2)])(_0x2f58f1=>{const _0x3dfdb8=_0x2aa87f;if(_0x2f58f1===_0x5cd263)return this[_0x3dfdb8(0x20f)]['get'](_0x2f58f1);}));}[_0x33c78d(0x1a3)](_0x58aba4,_0x22e80e){const _0x5ee92a=_0x33c78d;let _0x3aca3c=this[_0x5ee92a(0x20f)][_0x5ee92a(0x1d6)](_0x58aba4);_0x3aca3c||(_0x3aca3c=new ce(),this[_0x5ee92a(0x20f)]['set'](_0x58aba4,_0x3aca3c),this[_0x5ee92a(0x268)]['next'](_0x58aba4)),_0x3aca3c[_0x5ee92a(0x1a3)](_0x22e80e);}[_0x33c78d(0x21a)](_0x56aefa,_0x466934){const _0x40a50c=_0x33c78d;let _0x54441e=this['_roomMembers'][_0x40a50c(0x1d6)](_0x56aefa);_0x54441e&&_0x54441e['removeMember'](_0x466934);}['getRoom'](_0x349290){const _0x596a3a=_0x33c78d;return this[_0x596a3a(0x20f)][_0x596a3a(0x1d6)](_0x349290);}[_0x33c78d(0x147)](_0x34abe5,_0x4a8e62){const _0x234794=_0x33c78d;let _0x3ff3d9=this['_roomMembers'][_0x234794(0x1d6)](_0x34abe5);if(_0x3ff3d9)return _0x3ff3d9[_0x234794(0x147)](_0x4a8e62);}[_0x33c78d(0x1ef)](_0x76f816){const _0x3f79e1=_0x33c78d;let _0x40fc50=this[_0x3f79e1(0x20f)][_0x3f79e1(0x1d6)](_0x76f816);_0x40fc50&&(_0x40fc50[_0x3f79e1(0x438)](),this[_0x3f79e1(0x20f)][_0x3f79e1(0x2c7)](_0x76f816));}[_0x33c78d(0x438)](){const _0x48ea59=_0x33c78d;this[_0x48ea59(0x20f)][_0x48ea59(0x3f3)](_0x5719ee=>_0x5719ee['dispose']()),this[_0x48ea59(0x20f)][_0x48ea59(0x236)](),this['_roomCreated$'][_0x48ea59(0x218)]();}};b=y([v(0x0,t['IUniverInstanceService'])],b);var ce=class extends t['Disposable']{constructor(..._0x220c4b){const _0x542639=_0x33c78d;super(..._0x220c4b),g(this,_0x542639(0x381),new Map()),g(this,_0x542639(0x22f),new i[(_0x542639(0x264))](this[_0x542639(0x381)])),g(this,'members$',this['_members$'][_0x542639(0x22d)]());}[_0x33c78d(0x438)](){const _0x2e4566=_0x33c78d;this['_members'][_0x2e4566(0x236)](),this['_members$'][_0x2e4566(0x218)]();}[_0x33c78d(0x1a3)](_0x3ac6fd){const _0x1b1db1=_0x33c78d;this[_0x1b1db1(0x381)]['set'](_0x3ac6fd[_0x1b1db1(0x40c)],_0x3ac6fd),this[_0x1b1db1(0x3bb)]();}[_0x33c78d(0x21a)](_0x5929a7){const _0x5cf6b3=_0x33c78d;this[_0x5cf6b3(0x381)][_0x5cf6b3(0x2c7)](_0x5929a7),this[_0x5cf6b3(0x3bb)]();}['getMember'](_0x1d52db){const _0x589122=_0x33c78d;return this[_0x589122(0x381)][_0x589122(0x1d6)](_0x1d52db);}['getAllMembers'](){const _0xd9b5ce=_0x33c78d;return Array['from'](this[_0xd9b5ce(0x381)][_0xd9b5ce(0x341)]());}[_0x33c78d(0x3bb)](){const _0x3ac751=_0x33c78d;this[_0x3ac751(0x22f)][_0x3ac751(0x2bd)](this[_0x3ac751(0x381)]);}};function le(_0x4855f0,_0x5bc542){const _0x1dc2d6=_0x33c78d;if(de(_0x4855f0))return _0x5bc542;if(_0x5bc542[_0x1dc2d6(0x399)]===e[_0x1dc2d6(0x2e1)][_0x1dc2d6(0x3a1)]){var _0x1377d1;let _0x3a8b8a=ge(_0x4855f0),_0x99cf86=_0x5bc542;return{..._0x99cf86,'data':{..._0x99cf86[_0x1dc2d6(0x1a1)],'unitID':_0x4855f0[_0x1dc2d6(0x2a3)][_0x1dc2d6(0x3fd)],'unitType':(_0x1377d1=_0x4855f0[_0x1dc2d6(0x2a3)]['unitType'])==null?_0x99cf86[_0x1dc2d6(0x1a1)]['unitType']:_0x1377d1,'changeset':_0x3a8b8a[_0x1dc2d6(0x291)](_0x99cf86['data']['changeset'],_e(_0x4855f0))}};}if(_0x5bc542['eventID']===e[_0x1dc2d6(0x2e1)][_0x1dc2d6(0x26b)]){var _0x88026d;let _0x53ca53=_0x5bc542;return{..._0x53ca53,'data':{..._0x53ca53[_0x1dc2d6(0x1a1)],'unitID':_0x4855f0[_0x1dc2d6(0x2a3)]['unitId'],'unitType':(_0x88026d=_0x4855f0[_0x1dc2d6(0x2a3)][_0x1dc2d6(0x2b2)])==null?_0x53ca53[_0x1dc2d6(0x1a1)][_0x1dc2d6(0x2b2)]:_0x88026d}};}return _0x5bc542;}function ue(_0x32ea12,_0x3823d5){const _0x4f4276=_0x33c78d;if(de(_0x32ea12))return[_0x3823d5];switch(_0x3823d5['eventID']){case e[_0x4f4276(0x2e1)][_0x4f4276(0x28d)]:return[fe(_0x32ea12,_0x3823d5)];case e[_0x4f4276(0x2e1)][_0x4f4276(0x1ed)]:return[me(_0x32ea12,_0x3823d5)];case e[_0x4f4276(0x2e1)][_0x4f4276(0x319)]:return[pe(_0x32ea12,_0x3823d5)];default:return[_0x3823d5];}}function de(_0x2af590){const _0x3215ff=_0x33c78d;return _0x2af590[_0x3215ff(0x2a3)]['endpoint']==null&&_0x2af590[_0x3215ff(0x2a3)][_0x3215ff(0x3fd)]===_0x2af590[_0x3215ff(0x29d)]&&!_0x2af590[_0x3215ff(0x42f)];}function fe(_0x58019e,_0x111fa2){const _0x3c3c66=_0x33c78d;return{..._0x111fa2,'data':(0x0,e[_0x3c3c66(0x338)])(he(_0x58019e,(0x0,e[_0x3c3c66(0x1a4)])(_0x111fa2['data'])))};}function pe(_0x183b76,_0x367c62){const _0x266be7=_0x33c78d;return{..._0x367c62,'data':he(_0x183b76,_0x367c62[_0x266be7(0x1a1)])};}function me(_0x21fcee,_0x354fa5){const _0x2148e7=_0x33c78d;let _0x337136=_0x354fa5[_0x2148e7(0x1a1)];return{..._0x354fa5,'data':{..._0x337136,'changesets':_0x337136['changesets'][_0x2148e7(0x2c2)](_0x598d96=>(0x0,e[_0x2148e7(0x338)])(he(_0x21fcee,(0x0,e[_0x2148e7(0x1a4)])(_0x598d96))))}};}function he(_0x5ca21d,_0x4355b0){const _0x56a25f=_0x33c78d;return ge(_0x5ca21d)[_0x56a25f(0x1c5)](_0x4355b0,_e(_0x5ca21d));}function ge(_0x4319cd){const _0x2ce4f8=_0x33c78d;if(!_0x4319cd[_0x2ce4f8(0x42f)])throw Error(_0x2ce4f8(0x294));return _0x4319cd[_0x2ce4f8(0x42f)];}function _e(_0x3b5227){const _0x2e96a3=_0x33c78d;return{'localUnitId':_0x3b5227[_0x2e96a3(0x29d)],'unitType':_0x3b5227[_0x2e96a3(0x2b2)],'target':_0x3b5227['target']};}let ve=function(_0x59588f){const _0x183b82=_0x33c78d;return _0x59588f[_0x59588f[_0x183b82(0x37b)]=0x0]=_0x183b82(0x37b),_0x59588f[_0x59588f[_0x183b82(0x1a7)]=0x1]=_0x183b82(0x1a7),_0x59588f[_0x59588f[_0x183b82(0x3a8)]=0x2]=_0x183b82(0x3a8),_0x59588f[_0x59588f[_0x183b82(0x360)]=0x3]='ONLINE',_0x59588f;}({});const ye={[a[_0x33c78d(0x2c4)][_0x33c78d(0x368)]]:_0x33c78d(0x425),[a['CmdRspCode']['JOIN_ROOM_FULL']]:_0x33c78d(0x17b),[a[_0x33c78d(0x2c4)][_0x33c78d(0x36b)]]:_0x33c78d(0x154),[a['CmdRspCode']['JOIN_ROOM_PERMISSION_DENIED']]:_0x33c78d(0x39f),[a[_0x33c78d(0x2c4)][_0x33c78d(0x389)]]:_0x33c78d(0x21f)};let x=class extends t[_0x33c78d(0x1cf)]{get[_0x33c78d(0x327)](){const _0x5b6f64=_0x33c78d;return this[_0x5b6f64(0x2f9)][_0x5b6f64(0x384)]();}constructor(_0x14c65e,_0x473a0f,_0x54f5f0,_0x178924,_0x1be7b3,_0x300cea,_0x2ea3b7,_0x4a39b0){const _0x154d3e=_0x33c78d;super(),this[_0x154d3e(0x255)]=_0x14c65e,this[_0x154d3e(0x1fe)]=_0x54f5f0,this[_0x154d3e(0x3d0)]=_0x178924,this['_memberService']=_0x1be7b3,this[_0x154d3e(0x152)]=_0x300cea,this[_0x154d3e(0x223)]=_0x2ea3b7,this[_0x154d3e(0x206)]=_0x4a39b0,g(this,_0x154d3e(0x2f9),new i['BehaviorSubject'](0x0)),g(this,_0x154d3e(0x3a7),this['_sessionStatus$'][_0x154d3e(0x22d)]()),g(this,_0x154d3e(0x3b9),new i[(_0x154d3e(0x2ca))]()),g(this,_0x154d3e(0x32d),this[_0x154d3e(0x3b9)][_0x154d3e(0x22d)]()),g(this,_0x154d3e(0x292),void 0x0),g(this,_0x154d3e(0x232),void 0x0),g(this,_0x154d3e(0x25b),void 0x0),g(this,_0x154d3e(0x1e8),!0x1),g(this,_0x154d3e(0x2fa),null),this[_0x154d3e(0x1e8)]=!!this[_0x154d3e(0x206)],_0x473a0f['pipe']((0x0,i['takeUntil'])(this[_0x154d3e(0x12c)]))['subscribe'](_0x193860=>{const _0xfd94ed=_0x154d3e;if(_0x193860!==void 0x0){if(this[_0xfd94ed(0x292)]=_0x193860,_0x193860)this[_0xfd94ed(0x2e8)](_0x193860),this[_0xfd94ed(0x232)]=_0x193860['message$'][_0xfd94ed(0x279)](_0x4dae05=>{const _0x5ddeb5=_0xfd94ed;_0x4dae05[_0x5ddeb5(0x165)]===this[_0x5ddeb5(0x255)]['target'][_0x5ddeb5(0x3fd)]&&this['_onCombEvent'](_0x4dae05);});else{var _0xde8a88;this[_0xfd94ed(0x198)](),this[_0xfd94ed(0x2f9)][_0xfd94ed(0x2bd)](0x2),(_0xde8a88=this[_0xfd94ed(0x232)])==null||_0xde8a88[_0xfd94ed(0x3ce)](),this[_0xfd94ed(0x232)]=null;}}});}[_0x33c78d(0x1ba)](){const _0x388149=_0x33c78d;var _0x5aba54,_0x286b9c;return(_0x5aba54=(_0x286b9c=this[_0x388149(0x292)])==null?void 0x0:_0x286b9c[_0x388149(0x40c)])==null?null:_0x5aba54;}['dispose'](){const _0xded019=_0x33c78d;super['dispose'](),this['close'](),this[_0xded019(0x12c)]['next'](),this[_0xded019(0x12c)][_0xded019(0x218)]();}[_0x33c78d(0x408)](){const _0x4917b8=_0x33c78d;var _0x4688bb;this['_throwTelemetryCollaborationNewChangeset'](),(_0x4688bb=this[_0x4917b8(0x292)])==null||_0x4688bb[_0x4917b8(0x189)]({'cmd':a['CombCmd'][_0x4917b8(0x382)],'data':{'roomID':this[_0x4917b8(0x255)]['target'][_0x4917b8(0x3fd)]}}),this[_0x4917b8(0x3b9)][_0x4917b8(0x218)](),this[_0x4917b8(0x2f9)]['complete']();}['_onCombEvent'](_0x1bebd0){const _0x195bdd=_0x33c78d;_0x1bebd0['cmd']===a[_0x195bdd(0x243)][_0x195bdd(0x1c6)]?this[_0x195bdd(0x1b8)](_0x1bebd0):_0x1bebd0['cmd']===a[_0x195bdd(0x243)][_0x195bdd(0x19b)]&&this[_0x195bdd(0x16d)](_0x1bebd0);}['_joinRoom'](_0x1bb0fe){const _0x27abf2=_0x33c78d;this[_0x27abf2(0x2f9)][_0x27abf2(0x2bd)](0x1),_0x1bb0fe[_0x27abf2(0x189)]({'cmd':a['CombCmd']['JOIN'],'routeKey':this['_identity'][_0x27abf2(0x2a3)][_0x27abf2(0x3fd)],'routeType':'','data':{'rooms':[{'roomID':this['_identity']['target'][_0x27abf2(0x3fd)]}]}});}[_0x33c78d(0x1b8)](_0x106855){const _0x1e8d13=_0x33c78d;var _0x1d1f37;if(_0x106855[_0x1e8d13(0x340)]in ye){this[_0x1e8d13(0x223)][_0x1e8d13(0x26f)]({'id':_0x1e8d13(0x26d),'data':ye[_0x106855[_0x1e8d13(0x340)]]}),this['_sessionStatus$'][_0x1e8d13(0x2bd)](0x2);return;}this[_0x1e8d13(0x2f9)]['next'](0x3);let _0x5b50a0=(_0x1d1f37=_0x106855[_0x1e8d13(0x1a1)][_0x1e8d13(0x229)][this['_identity'][_0x1e8d13(0x2a3)]['unitId']])==null?void 0x0:_0x1d1f37['members'];_0x5b50a0&&_0x5b50a0['forEach'](_0x5d7ece=>this['_memberService']['updateMember'](this['_identity'][_0x1e8d13(0x29d)],_0x5d7ece));}[_0x33c78d(0x16d)](_0x267ef5){const _0x320fcd=_0x33c78d;try{let _0x5dde00=ue(this[_0x320fcd(0x255)],_0x267ef5[_0x320fcd(0x1a1)]);for(let _0x19b4d2 of _0x5dde00)switch(_0x19b4d2[_0x320fcd(0x399)]){case e[_0x320fcd(0x2e1)]['USERS_ENTER']:this[_0x320fcd(0x202)](_0x19b4d2),this[_0x320fcd(0x3b9)][_0x320fcd(0x2bd)](_0x19b4d2);break;case e['CollaborationEvent']['USERS_LEAVE']:this[_0x320fcd(0x125)](_0x19b4d2),this[_0x320fcd(0x3b9)][_0x320fcd(0x2bd)](_0x19b4d2);break;case e['CollaborationEvent']['CHANGESET_ACK']:case e[_0x320fcd(0x2e1)]['CHANGESET_SHOULD_RETRY']:this[_0x320fcd(0x2a6)](),this[_0x320fcd(0x1b7)](),this[_0x320fcd(0x3b9)][_0x320fcd(0x2bd)](_0x19b4d2);break;case e[_0x320fcd(0x2e1)][_0x320fcd(0x18a)]:this[_0x320fcd(0x1fe)][_0x320fcd(0x39c)](_0x320fcd(0x3e9)+JSON['stringify'](_0x19b4d2)),this[_0x320fcd(0x3b9)]['next'](_0x19b4d2);break;case e[_0x320fcd(0x2e1)]['COMMENT_UPDATE']:this['_commentService'][_0x320fcd(0x281)](_0x19b4d2['data']),this[_0x320fcd(0x3b9)][_0x320fcd(0x2bd)](_0x19b4d2);break;default:this[_0x320fcd(0x3b9)]['next'](_0x19b4d2);}}catch(_0x281521){this[_0x320fcd(0x1fe)]['error'](_0x281521,_0x267ef5);}}[_0x33c78d(0x202)](_0x6c4153){const _0x208a9f=_0x33c78d;this[_0x208a9f(0x173)][_0x208a9f(0x1a3)](this[_0x208a9f(0x255)]['localUnitId'],_0x6c4153[_0x208a9f(0x1a1)]);}['_onUserLeave'](_0x2c8fae){const _0x2827f3=_0x33c78d;this[_0x2827f3(0x173)]['removeMember'](this[_0x2827f3(0x255)]['localUnitId'],_0x2c8fae['data'][_0x2827f3(0x40c)]);}async['send'](_0x42634a,_0x21331f){const _0x362682=_0x33c78d;if(this[_0x362682(0x327)]!==0x3||!this[_0x362682(0x292)])throw Error(_0x362682(0x2bf));try{let _0x200803=le(this[_0x362682(0x255)],_0x42634a);_0x200803[_0x362682(0x399)]===e[_0x362682(0x2e1)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x362682(0x228)](_0x200803)),this[_0x362682(0x292)][_0x362682(0x189)]({'cmd':a[_0x362682(0x243)]['INGEST'],'routeKey':this[_0x362682(0x255)][_0x362682(0x2a3)][_0x362682(0x3fd)],'routeType':'','data':_0x200803});}catch(_0x317059){this[_0x362682(0x1fe)][_0x362682(0x39c)](_0x317059);}}[_0x33c78d(0x405)](){const _0x3ac821=_0x33c78d;var _0x115f35;this[_0x3ac821(0x25b)]=setTimeout(()=>{const _0x2a532d=_0x3ac821;this[_0x2a532d(0x25b)]=null,this['_collaborationUIEventService'][_0x2a532d(0x26f)]({'id':_0x2a532d(0x369)});},(_0x115f35=this[_0x3ac821(0x3d0)]['getConfig'](_0x3ac821(0x2f0)))==null?ne:_0x115f35);}[_0x33c78d(0x1b7)](){const _0x43ae34=_0x33c78d;this[_0x43ae34(0x25b)]&&(clearTimeout(this[_0x43ae34(0x25b)]),this[_0x43ae34(0x25b)]=null);}[_0x33c78d(0x228)](_0x135971){const _0x501344=_0x33c78d;if(!this[_0x501344(0x1e8)])return;let {data:_0x2ee8e8}=_0x135971,{unitID:_0x1706c9,changeset:_0xb112a0}=_0x2ee8e8,{mutations:_0x1bcd94,type:_0x9301e3}=_0xb112a0;this['_telemetryInfo']={'unitId':_0x1706c9,'type':_0x9301e3,'startTime':performance[_0x501344(0x3da)](),'stopTime':0x0,'duration':0x0,'size':re(_0x1bcd94)};}[_0x33c78d(0x2a6)](){const _0x3a8bd9=_0x33c78d;if(this[_0x3a8bd9(0x1e8)]){if(!this['_telemetryInfo']){this[_0x3a8bd9(0x1fe)]['error'](_0x3a8bd9(0x427),_0x3a8bd9(0x169));return;}this[_0x3a8bd9(0x2fa)][_0x3a8bd9(0x191)]=performance[_0x3a8bd9(0x3da)](),this[_0x3a8bd9(0x2fa)][_0x3a8bd9(0x31f)]=this[_0x3a8bd9(0x2fa)]['stopTime']-this[_0x3a8bd9(0x2fa)][_0x3a8bd9(0x167)],this[_0x3a8bd9(0x206)][_0x3a8bd9(0x1cc)](_0x3a8bd9(0x392),this[_0x3a8bd9(0x2fa)]),this[_0x3a8bd9(0x2fa)]=null;}}[_0x33c78d(0x198)](){this['_telemetryInfo']=null;}};x=y([v(0x2,t['ILogService']),v(0x3,t[_0x33c78d(0x2d4)]),v(0x4,(0x0,t[_0x33c78d(0x403)])(b)),v(0x5,(0x0,t['Inject'])(se)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x33c78d(0x2cd)])(o[_0x33c78d(0x378)]))],x);function _0x1643(_0x5cc8cd,_0x3bf6c7){_0x5cc8cd=_0x5cc8cd-0x11f;const _0xff819d=_0xff81();let _0x164361=_0xff819d[_0x5cc8cd];return _0x164361;}const S=(0x0,t[_0x33c78d(0x431)])(_0x33c78d(0x298));function be(_0x403e83){const _0x50c02b=_0x33c78d;return _0x50c02b(0x316)+_0x403e83;}function xe(_0x184ab5){const _0xa2fae4=_0x33c78d;let {unitID:_0x321da8,mutations:_0x2e22fb}=_0x184ab5;return{'unitId':_0x321da8,'subUnitId':_0x2e22fb[_0xa2fae4(0x3e4)]>0x0?_0x2e22fb[0x0][_0xa2fae4(0x326)][_0xa2fae4(0x419)]:null};}let C=class{constructor(_0x37ed15,_0x10e3e5,_0x13dab3){const _0x107d2f=_0x33c78d;this[_0x107d2f(0x25e)]=_0x37ed15,this['_transformService']=_0x10e3e5,this['_instanceService']=_0x13dab3;}['transformSelections'](_0x54745f){const _0x3cb318=_0x33c78d;var _0x886369,_0x58bccb;let _0x2b02d7=this['_injector'][_0x3cb318(0x1d6)](r[_0x3cb318(0x386)]),{unitId:_0x2e1293,subUnitId:_0x436b41}=xe(_0x54745f),_0x3091ac=_0x2b02d7==null?void 0x0:_0x2b02d7['getWorkbookSelections'](_0x2e1293)[_0x3cb318(0x2fb)](),_0x2155f9=(_0x886369=this[_0x3cb318(0x1b1)][_0x3cb318(0x1a0)](_0x2e1293))==null||(_0x886369=_0x886369['getActiveSheet']())==null?void 0x0:_0x886369[_0x3cb318(0x380)]();if(_0x3091ac[_0x3cb318(0x3e4)]===0x0||!_0x2e1293||!_0x436b41)return;let _0x44f8e2=[{'id':r[_0x3cb318(0x324)]['id'],'params':{'unitId':_0x2e1293,'subUnitId':_0x2155f9,'selections':t[_0x3cb318(0x2a4)][_0x3cb318(0x1ad)](_0x3091ac)}}],_0x4b6e10=this[_0x3cb318(0x2b3)][_0x3cb318(0x2e4)](_0x54745f,_0x44f8e2);if(!(0x0,e[_0x3cb318(0x2d9)])(_0x4b6e10))throw _0x4b6e10[_0x3cb318(0x39c)];let _0xbd01fd=(_0x58bccb=_0x4b6e10[_0x3cb318(0x19c)][0x0])==null||(_0x58bccb=_0x58bccb[_0x3cb318(0x326)])==null?void 0x0:_0x58bccb[_0x3cb318(0x3e5)];if(Array[_0x3cb318(0x351)](_0xbd01fd)&&_0xbd01fd['length']){if(_0xbd01fd[_0x3cb318(0x3e4)]===_0x44f8e2[0x0][_0x3cb318(0x326)][_0x3cb318(0x3e5)][_0x3cb318(0x3e4)]&&_0xbd01fd[_0x3cb318(0x295)]((_0x3e69f9,_0x1c2fa1)=>t[_0x3cb318(0x397)][_0x3cb318(0x3bf)](_0x3e69f9[_0x3cb318(0x370)],_0x44f8e2[0x0][_0x3cb318(0x326)][_0x3cb318(0x3e5)][_0x1c2fa1][_0x3cb318(0x370)])))return;this[_0x3cb318(0x25e)][_0x3cb318(0x1d6)](t[_0x3cb318(0x1fb)])[_0x3cb318(0x38a)](r[_0x3cb318(0x324)]['id'],{'unitId':_0x2e1293,'subUnitId':_0x2155f9,'selections':_0xbd01fd});}}};C=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x1,e['ITransformService']),v(0x2,t[_0x33c78d(0x142)])],C);const w=(0x0,t['createIdentifier'])(_0x33c78d(0x3f9));let Se=function(_0x578b18){const _0x3587c7=_0x33c78d;return _0x578b18[_0x578b18[_0x3587c7(0x16a)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x578b18[_0x578b18[_0x3587c7(0x3dd)]=0x1]='OTHER_CLIENTS_EDITING',_0x578b18;}({});function Ce(_0x2976b9){const _0x31d688=_0x33c78d;var _0x19e1ba;return!!((_0x19e1ba=_0x2976b9['params'])!=null&&_0x19e1ba[_0x31d688(0x28c)]);}const we=new Set([r[_0x33c78d(0x241)]['id']]),Te=new Set([c['AddSlidePageMutation']['id'],c['EnsureSlideMasterPageMutation']['id'],c[_0x33c78d(0x436)]['id'],c[_0x33c78d(0x2ba)]['id']]);function Ee(_0x463794,_0x4d07d8=we){const _0x2e7bf5=_0x33c78d;let _0xaeac8a=[];for(let _0x3b8fc5 of _0x463794){if(_0x4d07d8[_0x2e7bf5(0x40e)](_0x3b8fc5['id'])){if(_0xaeac8a['length']>0x0)break;_0xaeac8a[_0x2e7bf5(0x33a)](_0x3b8fc5);break;}if(Ce(_0x3b8fc5)){if(_0xaeac8a[_0x2e7bf5(0x3e4)]>0x0)break;_0xaeac8a['push'](_0x3b8fc5);break;}_0xaeac8a['push'](_0x3b8fc5);}return _0xaeac8a;}function T(_0x3dd57d,_0x1198b4,_0x6301bf,_0x27464a,_0x4fe3f9){const _0x5ad5e6=_0x33c78d;var _0x3f7782,_0xe4e354;let _0x50c072=Ee(_0x3dd57d),_0x6e2b28=_0x4fe3f9[_0x5ad5e6(0x2be)](),_0x5c7443=(_0x3f7782=_0x6e2b28==null?void 0x0:_0x6e2b28[_0x5ad5e6(0x174)])==null?_0x5ad5e6(0x310):_0x3f7782,_0x517268=(_0xe4e354=_0x6e2b28==null?void 0x0:_0x6e2b28[_0x5ad5e6(0x40c)])==null?_0x5ad5e6(0x310):_0xe4e354;return{'changeset':{'unitID':_0x1198b4,'type':(0x0,e[_0x5ad5e6(0x390)])(_0x6301bf['getUnitType'](_0x1198b4)),'baseRev':_0x27464a[_0x5ad5e6(0x1c2)](_0x1198b4),'revision':0x0,'userID':_0x5c7443,'memberID':_0x517268,'mutations':_0x50c072},'pendingMutations':_0x3dd57d['slice'](_0x50c072['length'])};}const De=T;function Oe(_0x465dae,_0x50e44d,_0x30e21e,_0x3d37ce,_0x11ad83){const _0x2eb81a=_0x33c78d;var _0x3f1a2d,_0x3ea4a3;let _0x508498=Ee(_0x465dae,Te),_0xd5f3d3=_0x11ad83[_0x2eb81a(0x2be)](),_0x33f3db=(_0x3f1a2d=_0xd5f3d3==null?void 0x0:_0xd5f3d3['userID'])==null?_0x2eb81a(0x310):_0x3f1a2d,_0x3b086e=(_0x3ea4a3=_0xd5f3d3==null?void 0x0:_0xd5f3d3['memberID'])==null?_0x2eb81a(0x310):_0x3ea4a3;return{'changeset':{'unitID':_0x50e44d,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x30e21e[_0x2eb81a(0x18c)](_0x50e44d)),'baseRev':_0x3d37ce['getCurrentRevOfUnit'](_0x50e44d),'revision':0x0,'userID':_0x33f3db,'memberID':_0x3b086e,'mutations':_0x508498},'pendingMutations':_0x465dae['slice'](_0x508498[_0x2eb81a(0x3e4)])};}function ke(_0x3f7c1f,_0x5e31f1,_0x521f51,_0x5895df,_0x171951){const _0x4f8049=_0x33c78d;var _0x175466,_0x420648;let _0x328235=_0x3f7c1f[_0x4f8049(0x395)]((_0x36fbaa,_0x5999b0)=>{const _0x5824d0=_0x4f8049;let _0x3c6975=_0x36fbaa[_0x36fbaa[_0x5824d0(0x3e4)]-0x1],{id:_0x3928ae}=_0x3c6975==null?{}:_0x3c6975,{id:_0x30b6a7,type:_0x8172ef}=_0x5999b0,_0x3569ce=_0x5999b0['params'];if(_0x3928ae&&_0x3928ae!==_0x30b6a7)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3928ae+'\x20-\x20'+_0x30b6a7+'.');if(!_0x3c6975)return[{'id':_0x30b6a7,'type':_0x8172ef,'params':{'unitId':_0x3569ce[_0x5824d0(0x3fd)],'textRanges':_0x3569ce['textRanges'],'actions':_0x3569ce['actions']}}];let _0x5375c7=_0x3c6975[_0x5824d0(0x326)];return Ae(_0x5375c7,_0x3569ce)?[..._0x36fbaa[_0x5824d0(0x37a)](0x0,-0x1),{..._0x3c6975,'id':_0x30b6a7,'type':_0x8172ef,'params':{'unitId':_0x3569ce[_0x5824d0(0x3fd)],'textRanges':_0x3569ce[_0x5824d0(0x2ad)],'actions':t[_0x5824d0(0x31e)][_0x5824d0(0x3d9)](_0x5375c7[_0x5824d0(0x24a)],_0x3569ce[_0x5824d0(0x24a)])}}]:[..._0x36fbaa,{'id':_0x30b6a7,'type':_0x8172ef,'params':{'unitId':_0x3569ce[_0x5824d0(0x3fd)],'textRanges':_0x3569ce[_0x5824d0(0x2ad)],'actions':_0x3569ce[_0x5824d0(0x24a)]}}];},[]),_0x4443d5=_0x171951[_0x4f8049(0x2be)](),_0x427f63=(_0x175466=_0x4443d5==null?void 0x0:_0x4443d5[_0x4f8049(0x174)])==null?_0x4f8049(0x310):_0x175466,_0x30791a=(_0x420648=_0x4443d5==null?void 0x0:_0x4443d5['memberID'])==null?_0x4f8049(0x310):_0x420648;return{'changeset':{'unitID':_0x5e31f1,'type':(0x0,e[_0x4f8049(0x390)])(_0x521f51[_0x4f8049(0x18c)](_0x5e31f1)),'baseRev':_0x5895df[_0x4f8049(0x1c2)](_0x5e31f1),'revision':0x0,'userID':_0x427f63,'memberID':_0x30791a,'mutations':_0x328235},'pendingMutations':_0x3f7c1f['slice'](_0x3f7c1f[_0x4f8049(0x3e4)])};}function Ae(_0xd2f293,_0x2c376d){const _0x322ec5=_0x33c78d;return!je(_0xd2f293)&&!je(_0x2c376d)&&Me(_0xd2f293[_0x322ec5(0x24a)],_0x2c376d[_0x322ec5(0x24a)]);}function je(_0x114b96){const _0x5033d4=_0x33c78d;return _0x114b96[_0x5033d4(0x343)]!==void 0x0;}function Me(_0x534551,_0x450ea1){return Ne(_0x534551)&&Ne(_0x450ea1)&&!Fe(_0x534551)&&!Fe(_0x450ea1)&&!Pe(_0x534551)&&!Pe(_0x450ea1);}function Ne(_0x5e2ba6){const _0x81c4cd=_0x33c78d;return Ie(_0x5e2ba6)['some'](_0x3b5525=>E(_0x3b5525)&&_0x3b5525['et']===_0x81c4cd(0x1c0));}function Pe(_0x4dd4b4){const _0x3f0cbb=_0x33c78d;return Ie(_0x4dd4b4)[_0x3f0cbb(0x418)](_0x3bea0e=>Array['isArray'](_0x3bea0e)||typeof _0x3bea0e==_0x3f0cbb(0x32f)||typeof _0x3bea0e==_0x3f0cbb(0x287));}function Fe(_0x31cb49){const _0x4c1068=_0x33c78d;return Ie(_0x31cb49)[_0x4c1068(0x418)](_0x6af916=>!E(_0x6af916)||_0x6af916['et']!=='text-x'||!Array[_0x4c1068(0x351)](_0x6af916['e'])?!0x1:_0x6af916['e'][_0x4c1068(0x418)](_0x46bb98=>!E(_0x46bb98)||!E(_0x46bb98[_0x4c1068(0x216)])?!0x1:Object[_0x4c1068(0x1f2)][_0x4c1068(0x128)]['call'](_0x46bb98['body'],_0x4c1068(0x25a))||Object[_0x4c1068(0x1f2)][_0x4c1068(0x128)][_0x4c1068(0x184)](_0x46bb98[_0x4c1068(0x216)],'columnGroups')||Object[_0x4c1068(0x1f2)][_0x4c1068(0x128)][_0x4c1068(0x184)](_0x46bb98[_0x4c1068(0x216)],_0x4c1068(0x290))));}function Ie(_0x25da4c){const _0x2a0074=_0x33c78d;if(!Array[_0x2a0074(0x351)](_0x25da4c))return[];let _0x271cb1=_0x25da4c[_0x2a0074(0x271)]('body')?_0x25da4c:_0x25da4c[_0x2a0074(0x2aa)](_0x435ca0=>Array['isArray'](_0x435ca0)&&_0x435ca0['includes']('body'));if(!Array[_0x2a0074(0x351)](_0x271cb1))return[];let _0x3d8d71=_0x271cb1['indexOf'](_0x2a0074(0x216));return _0x3d8d71===-0x1?[]:_0x271cb1[_0x2a0074(0x37a)](_0x3d8d71+0x1);}function E(_0x5a87fc){const _0x13d8ca=_0x33c78d;return typeof _0x5a87fc=='object'&&!!_0x5a87fc&&!Array[_0x13d8ca(0x351)](_0x5a87fc);}function Le(_0x388dcb,_0x53a9a4){const _0x23a6e7=_0x33c78d;let _0x627252=new i[(_0x23a6e7(0x1ca))](0x1);return setTimeout(()=>_0x627252[_0x23a6e7(0x2bd)](_0x53a9a4),_0x388dcb),_0x627252[_0x23a6e7(0x22d)]()[_0x23a6e7(0x253)]((0x0,i[_0x23a6e7(0x39a)])(0x1));}var Re,ze,Be;let Ve=function(_0x125783){const _0x408e96=_0x33c78d;return _0x125783[_0x408e96(0x42a)]=_0x408e96(0x14a),_0x125783[_0x408e96(0x2ab)]=_0x408e96(0x27d),_0x125783[_0x408e96(0x22e)]=_0x408e96(0x33d),_0x125783[_0x408e96(0x231)]=_0x408e96(0x1f8),_0x125783[_0x408e96(0x3df)]=_0x408e96(0x17f),_0x125783[_0x408e96(0x3f6)]='fetch_missing',_0x125783[_0x408e96(0x320)]=_0x408e96(0x181),_0x125783['OFFLINE']='offline',_0x125783;}({});const He=0x4e20,Ue=0x2bf20;var D=class{constructor(_0x1426bd,_0x50e2b9,_0x32f8c9,_0x3cdfc9,_0x858b22,_0x5e887c,_0x31f43b,_0x362881,_0x30e2a4){const _0x48e752=_0x33c78d;this[_0x48e752(0x131)]=_0x1426bd,this[_0x48e752(0x402)]=_0x50e2b9,this[_0x48e752(0x138)]=_0x858b22,this[_0x48e752(0x3c1)]=_0x5e887c,this[_0x48e752(0x133)]=_0x31f43b,this['_revisionService']=_0x362881,this[_0x48e752(0x1bf)]=_0x30e2a4,g(this,_0x48e752(0x2bc),null),g(this,_0x48e752(0x3b4),[]),this[_0x48e752(0x2bc)]=_0x32f8c9,this[_0x48e752(0x3b4)]=_0x3cdfc9;}['_checkMissing'](_0x2d2e87){const _0x511eaa=_0x33c78d;let _0x2b0799=this[_0x511eaa(0x357)][_0x511eaa(0x1c2)](this[_0x511eaa(0x131)]);return _0x2d2e87[_0x511eaa(0x35b)]>_0x2b0799+0x1?(this[_0x511eaa(0x138)][_0x511eaa(0x2e0)]({'from':_0x2b0799,'to':_0x2d2e87['revision']-0x1}),!0x0):!0x1;}[_0x33c78d(0x18b)](_0x42c87c){const _0x13ae6b=_0x33c78d;this[_0x13ae6b(0x133)][_0x13ae6b(0x401)](this['unitID'],_0x42c87c);}[_0x33c78d(0x2c5)](_0x43c25a){const _0x573322=_0x33c78d;var _0x14607e,_0x1535ea;(_0x14607e=(_0x1535ea=this[_0x573322(0x138)])['onTransformSelections'])==null||_0x14607e[_0x573322(0x184)](_0x1535ea,_0x43c25a);}[_0x33c78d(0x239)](_0x5b702b){const _0x31b937=_0x33c78d;var _0x3ec2c2,_0x2020bb;return(_0x3ec2c2=(_0x2020bb=this[_0x31b937(0x138)])[_0x31b937(0x43e)])==null?void 0x0:_0x3ec2c2[_0x31b937(0x184)](_0x2020bb,_0x5b702b);}[_0x33c78d(0x2c8)](_0x34dd53){const _0x4ac40b=_0x33c78d;var _0x3b087b,_0x162222;return(_0x3b087b=(_0x162222=this[_0x4ac40b(0x138)])[_0x4ac40b(0x168)])==null?void 0x0:_0x3b087b[_0x4ac40b(0x184)](_0x162222,_0x34dd53);}['_transformRemoteChangesetByIMECache'](_0x39bcfe){const _0x1cd2ed=_0x33c78d;var _0x36e25f,_0x159520,_0x4d6098;return(_0x36e25f=(_0x159520=(_0x4d6098=this[_0x1cd2ed(0x138)])[_0x1cd2ed(0x272)])==null?void 0x0:_0x159520[_0x1cd2ed(0x184)](_0x4d6098,_0x39bcfe))==null?_0x39bcfe:_0x36e25f;}[_0x33c78d(0x23a)](_0x512a53){const _0x54530e=_0x33c78d;var _0x7c5b72,_0x2077f1,_0x177789;return(_0x7c5b72=(_0x2077f1=(_0x177789=this[_0x54530e(0x138)])[_0x54530e(0x1c1)])==null?void 0x0:_0x2077f1[_0x54530e(0x184)](_0x177789,_0x512a53))==null?_0x512a53:_0x7c5b72;}[_0x33c78d(0x3a0)](_0x3f606a){const _0x28b364=_0x33c78d;if(this[_0x28b364(0x402)]===t[_0x28b364(0x3ad)][_0x28b364(0x137)]){let {unitID:_0x3ded39,mutations:_0x34f18a,memberID:_0xb27d39}=_0x3f606a,_0x19df65=_0x34f18a['length']>0x0?_0x34f18a[0x0][_0x28b364(0x326)]['textRanges']:[];if(Array[_0x28b364(0x351)](_0x19df65)&&_0x19df65[_0x28b364(0x3e4)]>0x0){var _0x35db06,_0x40d92b;(_0x35db06=(_0x40d92b=this[_0x28b364(0x138)])['onSyncEditingCollabCursor'])==null||_0x35db06[_0x28b364(0x184)](_0x40d92b,{'unitID':_0x3ded39,'memberID':_0xb27d39,'textRanges':_0x19df65});}}}[_0x33c78d(0x261)](){const _0x23eff6=_0x33c78d;var _0x5165f8;(_0x5165f8=this[_0x23eff6(0x1bf)])==null||_0x5165f8[_0x23eff6(0x284)](this[_0x23eff6(0x131)],this[_0x23eff6(0x402)],this[_0x23eff6(0x2bc)],this[_0x23eff6(0x3b4)]);}[_0x33c78d(0x1bc)](){const _0x306c91=_0x33c78d;return this[_0x306c91(0x357)]['getCurrentRevOfUnit'](this[_0x306c91(0x131)]);}[_0x33c78d(0x242)](){const _0xb5ca0e=_0x33c78d;this[_0xb5ca0e(0x357)][_0xb5ca0e(0x2df)](this[_0xb5ca0e(0x131)]);}[_0x33c78d(0x22c)](_0x338a48){const _0xa09189=_0x33c78d;let _0x56acab=this['_transformRemoteChangesetByIMECache'](_0x338a48);_0x56acab=this[_0xa09189(0x23a)](_0x56acab);let _0x48f84b=(0x0,t[_0xa09189(0x263)])(_0x56acab['mutations'],this[_0xa09189(0x3c1)],{'fromCollab':!0x0});if(!_0x48f84b['result']){var _0x1afc15;throw _0x48f84b[_0xa09189(0x39c)]instanceof Error?_0x48f84b['error']:Error((_0x1afc15=_0x48f84b['error'])==null?_0xa09189(0x251):_0x1afc15);}this[_0xa09189(0x239)](_0x56acab),this['_transformStateCache'](_0x56acab),this['_transformUndoredo'](_0x338a48),this[_0xa09189(0x2c5)](_0x56acab),this[_0xa09189(0x3a0)](_0x56acab),this[_0xa09189(0x242)]();}};let O=class extends D{constructor(_0x238860,_0x1ea968,_0x49ffdd,_0x291527,_0x39409d,_0x484f5d,_0x43f945,_0x565002,_0x1be509,_0x319bf7){const _0x27f322=_0x33c78d;super(_0x238860,_0x1ea968,null,[],_0x49ffdd,_0x43f945,_0x484f5d,_0x291527,_0x319bf7),this['_injector']=_0x39409d,this[_0x27f322(0x1fe)]=_0x565002,this['_transformService']=_0x1be509,this[_0x27f322(0x398)]=_0x319bf7,g(this,_0x27f322(0x29e),_0x27f322(0x27d));}[_0x33c78d(0x156)](_0x5de3cb){const _0x5cafc0=_0x33c78d;let _0x3b20ec=this[_0x5cafc0(0x25e)][_0x5cafc0(0x139)](k,this['unitID'],this[_0x5cafc0(0x402)],[_0x5de3cb],this['_handler']);return _0x3b20ec['_schedule'](),_0x3b20ec[_0x5cafc0(0x261)](),_0x3b20ec;}['onRemoteChangeset'](_0x3416eb){const _0x608447=_0x33c78d;if(this[_0x608447(0x266)](_0x3416eb))return this[_0x608447(0x25e)][_0x608447(0x139)](P,this[_0x608447(0x131)],this[_0x608447(0x402)],null,[],null,[_0x3416eb],this[_0x608447(0x138)]);try{let _0x5235f5=this[_0x608447(0x2b3)]['transformMutationsWithChangeset'](_0x3416eb,[e['EmptyMutationInfo']]);if((0x0,e[_0x608447(0x2d9)])(_0x5235f5)){let {c1Prime:_0x3fac38}=_0x5235f5;return this[_0x608447(0x22c)](_0x3fac38),this;}throw _0x5235f5['error'];}catch(_0x50a22b){return this['_logService'][_0x608447(0x39c)](_0x50a22b),this[_0x608447(0x339)](!0x1);}}[_0x33c78d(0x339)](_0x1f801d){const _0x29d867=_0x33c78d;return this[_0x29d867(0x25e)][_0x29d867(0x139)](M,this[_0x29d867(0x131)],this[_0x29d867(0x402)],null,[],this[_0x29d867(0x138)],_0x1f801d);}[_0x33c78d(0x23c)](_0x15ce85){const _0x507561=_0x33c78d;if(_0x15ce85['revision']<=this[_0x507561(0x1bc)]())return this;throw Error(_0x507561(0x30f));}['onRemoteRej'](){const _0x4e3e8d=_0x33c78d;throw Error(_0x4e3e8d(0x203));}['onRemoteRetry'](){return this;}[_0x33c78d(0x230)](){const _0x3acc58=_0x33c78d;return this[_0x3acc58(0x25e)]['createInstance'](N,this[_0x3acc58(0x131)],this[_0x3acc58(0x402)],null,[],this[_0x3acc58(0x138)]);}[_0x33c78d(0x2bb)](){return this;}[_0x33c78d(0x1b9)](){const _0x842d16=_0x33c78d;throw Error(_0x842d16(0x1fc));}[_0x33c78d(0x301)](){const _0x2c986f=_0x33c78d;let _0x346785=this[_0x2c986f(0x357)][_0x2c986f(0x1c2)](this[_0x2c986f(0x131)]);return this['_handler'][_0x2c986f(0x2e0)]({'from':_0x346785,'to':0x0}),this['_injector']['createInstance'](P,this[_0x2c986f(0x131)],this[_0x2c986f(0x402)],null,[],null,[],this['_handler']);}};O=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x4,(0x0,t[_0x33c78d(0x403)])(t['Injector'])),v(0x5,t[_0x33c78d(0x3a5)]),v(0x6,t['ICommandService']),v(0x7,t[_0x33c78d(0x3ed)]),v(0x8,e[_0x33c78d(0x2e9)]),v(0x9,(0x0,t[_0x33c78d(0x2cd)])(S))],O);let k=Re=class extends D{constructor(_0x491e29,_0x5556ab,_0x35ca95,_0x39712e,_0x6c8de0,_0x3eca65,_0x349e6a,_0x17c0e0,_0x30cc35,_0x5c0015,_0xdb5360,_0x587cb7,_0x4e8fad,_0xb28e07){const _0x249d70=_0x33c78d;super(_0x491e29,_0x5556ab,null,_0x35ca95,_0x39712e,_0x30cc35,_0x4e8fad,_0x3eca65,_0xb28e07),this[_0x249d70(0x25e)]=_0x6c8de0,this[_0x249d70(0x337)]=_0x349e6a,this[_0x249d70(0x1fe)]=_0x17c0e0,this[_0x249d70(0x3d0)]=_0x5c0015,this[_0x249d70(0x2b3)]=_0xdb5360,this[_0x249d70(0x1eb)]=_0x587cb7,g(this,_0x249d70(0x29e),_0x249d70(0x33d)),g(this,_0x249d70(0x36c),null),g(this,_0x249d70(0x1f3),null);}[_0x33c78d(0x156)](_0x4c2fb2){const _0x588d34=_0x33c78d;return this['_pendingMutations'][_0x588d34(0x33a)](_0x4c2fb2),this['_updateLocalCache'](),this;}[_0x33c78d(0x3cc)](_0x24c449){const _0x414cfd=_0x33c78d;if(this[_0x414cfd(0x266)](_0x24c449))return this[_0x414cfd(0x179)](),this[_0x414cfd(0x25e)][_0x414cfd(0x139)](P,this['unitID'],this[_0x414cfd(0x402)],null,this[_0x414cfd(0x3b4)],null,[_0x24c449],this[_0x414cfd(0x138)]);try{let _0x59f10d=this['_transformService'][_0x414cfd(0x2e4)](_0x24c449,this[_0x414cfd(0x3b4)]);if((0x0,e[_0x414cfd(0x2d9)])(_0x59f10d)){let {c1Prime:_0x53ff3e,m2Prime:_0x1643d2}=_0x59f10d;this[_0x414cfd(0x22c)](_0x53ff3e);let _0x5d272d=this['_injector'][_0x414cfd(0x139)](Re,this[_0x414cfd(0x131)],this['type'],_0x1643d2,this['_handler']);this[_0x414cfd(0x179)]();let _0x5e5a10=new Date()[_0x414cfd(0x17a)](),_0x41c039=this['_scheduleCompleteTimestamp']?Math[_0x414cfd(0x2b9)](this['_scheduleCompleteTimestamp']-_0x5e5a10,0x0):this[_0x414cfd(0x318)]();return _0x5d272d[_0x414cfd(0x413)](_0x41c039),_0x5d272d;}throw _0x59f10d[_0x414cfd(0x39c)];}catch(_0x3dc29d){return this[_0x414cfd(0x1fe)][_0x414cfd(0x39c)](_0x3dc29d),this[_0x414cfd(0x339)](!0x1);}}[_0x33c78d(0x23c)](_0x53bcca){const _0x1ea8ff=_0x33c78d;if(_0x53bcca[_0x1ea8ff(0x35b)]<=this[_0x1ea8ff(0x1bc)]())return this;throw Error(_0x1ea8ff(0x1ec));}['onRemoteRej'](){const _0x4146d4=_0x33c78d;throw Error(_0x4146d4(0x166));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x3d5710=_0x33c78d;return this[_0x3d5710(0x179)](),this[_0x3d5710(0x25e)][_0x3d5710(0x139)](N,this[_0x3d5710(0x131)],this[_0x3d5710(0x402)],null,this[_0x3d5710(0x3b4)],this[_0x3d5710(0x138)]);}[_0x33c78d(0x2bb)](){return this;}[_0x33c78d(0x413)](_0x941b87){const _0xbc5ea8=_0x33c78d;let _0x3cd787=_0x941b87==null?this[_0xbc5ea8(0x318)]():_0x941b87;this['_scheduleCompleteTimestamp']=new Date()[_0xbc5ea8(0x17a)]()+_0x3cd787,this['_sendingTimer']=setTimeout(()=>{const _0x4404c5=_0xbc5ea8;this[_0x4404c5(0x179)]();let _0x4d0eb3=null;switch(this['type']){case t[_0x4404c5(0x3ad)][_0x4404c5(0x303)]:_0x4d0eb3=T(this['_pendingMutations'],this[_0x4404c5(0x131)],this[_0x4404c5(0x1eb)],this['_revisionService'],this[_0x4404c5(0x337)]);break;case t['UniverInstanceType'][_0x4404c5(0x137)]:_0x4d0eb3=this[_0x4404c5(0x3b4)]['every'](_0x4f5dbc=>_0x4f5dbc['id']===n['RichTextEditingMutation']['id'])?ke(this[_0x4404c5(0x3b4)],this[_0x4404c5(0x131)],this[_0x4404c5(0x1eb)],this[_0x4404c5(0x357)],this[_0x4404c5(0x337)]):T(this[_0x4404c5(0x3b4)],this[_0x4404c5(0x131)],this['_univerInstanceService'],this[_0x4404c5(0x357)],this[_0x4404c5(0x337)]);break;case t[_0x4404c5(0x3ad)][_0x4404c5(0x3a3)]:_0x4d0eb3=Oe(this[_0x4404c5(0x3b4)],this[_0x4404c5(0x131)],this['_univerInstanceService'],this[_0x4404c5(0x357)],this[_0x4404c5(0x337)]);break;case t[_0x4404c5(0x3ad)][_0x4404c5(0x26c)]:_0x4d0eb3=De(this[_0x4404c5(0x3b4)],this[_0x4404c5(0x131)],this[_0x4404c5(0x1eb)],this[_0x4404c5(0x357)],this[_0x4404c5(0x337)]);break;case t['UniverInstanceType']['UNIVER_BOARD']:_0x4d0eb3=T(this[_0x4404c5(0x3b4)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x4404c5(0x337)]);break;case t[_0x4404c5(0x3ad)][_0x4404c5(0x262)]:_0x4d0eb3=T(this[_0x4404c5(0x3b4)],this[_0x4404c5(0x131)],this['_univerInstanceService'],this[_0x4404c5(0x357)],this[_0x4404c5(0x337)]);break;default:throw Error(_0x4404c5(0x312)+this[_0x4404c5(0x402)]+_0x4404c5(0x1ab));}let {changeset:_0x529a9b,pendingMutations:_0x43405f}=_0x4d0eb3;this[_0x4404c5(0x138)][_0x4404c5(0x2ee)](_0x529a9b);let _0x5c0c44=_0x43405f[_0x4404c5(0x3e4)]?this[_0x4404c5(0x25e)][_0x4404c5(0x139)](j,this[_0x4404c5(0x131)],this[_0x4404c5(0x402)],_0x529a9b,_0x43405f,this[_0x4404c5(0x138)],void 0x0):this['_injector'][_0x4404c5(0x139)](A,this[_0x4404c5(0x131)],this['type'],_0x529a9b,this[_0x4404c5(0x138)]);_0x5c0c44['_updateLocalCache'](),this[_0x4404c5(0x138)][_0x4404c5(0x151)](this,_0x5c0c44);},_0x3cd787);}[_0x33c78d(0x318)](){const _0x290741=_0x33c78d;var _0x6980f5;let _0x492abc=this[_0x290741(0x3d0)][_0x290741(0x307)](m);return(_0x6980f5=_0x492abc==null?void 0x0:_0x492abc[_0x290741(0x3d7)])==null?0x7d0:_0x6980f5;}[_0x33c78d(0x1b9)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x33c78d(0x179)](){const _0x1b0aa9=_0x33c78d;this[_0x1b0aa9(0x1f3)]!=null&&(clearTimeout(this[_0x1b0aa9(0x1f3)]),this[_0x1b0aa9(0x1f3)]=null);}[_0x33c78d(0x339)](_0x2b8f28){const _0x5ac006=_0x33c78d;return this[_0x5ac006(0x179)](),this['_injector']['createInstance'](M,this['unitID'],this[_0x5ac006(0x402)],null,this['_pendingMutations'],this[_0x5ac006(0x138)],_0x2b8f28);}};k=Re=y([v(0x4,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x5,(0x0,t[_0x33c78d(0x403)])(e['RevisionService'])),v(0x6,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x315)])),v(0x7,t[_0x33c78d(0x3ed)]),v(0x8,t[_0x33c78d(0x1fb)]),v(0x9,t[_0x33c78d(0x2d4)]),v(0xa,e[_0x33c78d(0x2e9)]),v(0xb,t['IUniverInstanceService']),v(0xc,t[_0x33c78d(0x3a5)]),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],k);function _0xff81(){const _0x23cfba=['OFFLINE','candidateSocket','initWorkbookPermissionChange','reconnect','_createInitialState','UniverInstanceType','refreshPermission','_upload','_getUploadFileURL','update','_snapshotServerService','_getDownloadEndpointURL','_pendingMutations','editing\x20status\x20changed\x20to','retryConnectingTimer','[DataLoaderService]','_onRemoteRetry','_event$','reqId','_emitMembers','sheets','socket$','post','equals','symbol','_commandService','loadUnitOfRevision','IImageIoService','getAttachmentUrl','putCollaborators','action','LOCAL_CACHE_INTERVAL','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_clearLocalCache','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_eventService','onRemoteChangeset','DisposableCollection','unsubscribe','_onLocalMutation','_configService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_getSocketChannel','collaboration-client.config','newCsEvent','DependentOn','UPDATE_PERMISSION_OBJ','sendChangesetTimeout','@univerjs-pro/collaboration-client','compose','now','ThresholdInterceptorFactory','resolveUnit','OTHER_CLIENTS_EDITING','constructor','AWAITING_WITH_PENDING','&source=','[CollaborationUndoRedoService]','_unlockTransition','2517hqTvVh','length','selections','updatePermissionPoint','transformChangesets','resolve','save\x20fail\x20reason\x20is\x20','isTransformMutationsWithChangesetFailure','saveSnapshot','joinRsp','ILogService','[OfflineState]:\x20received\x20rejection.','getFocusedUnit','object','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_updateStatus','forEach','_toggleOnline','INGEST','FETCH_MISS','Workbook','PendingState','univer-pro.collaboration-client.single-active-unit-service','copyFileMeta','_localeService','univer-pro.collaboration-client-adapter-service','unitId','BASE64','CompressMutationService','fetching\x20missing\x20changesets\x20from\x20','transformUndoRedo','type','Inject','getImage','_scheduleCollaborationTimeoutTimer','registerDependencies','UUID','close','_getConfig','editingUnit','HEARTBEAT','memberID','getCfgEnableObjInherit','has','headers','_sheetTransformSelectionsService','57030AIUrdR','ImageSourceType','_schedule','avatar','ErrorCode','BaseCollaborationEntity','_getSignURL','some','subUnitId','snapshot','endpoint','/object/','_clearTimeoutTimer','_onOffline','_createSocket','closeSession','UniverCollaborationClientPlugin','fetch_missing','c1Prime','liveShareNewHost','session.join-failed','/-/object/-/batch_allowed','[CollaborationSession]','getUnitId','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','NOT_COLLAB','collabSubmitChangesetUrl','MentionType','CommandType','CollaborationUIEventService','changeset','IMentionIOService','createIdentifier','ISnapshotServerService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','/universer-api/snapshot/','_collaborationSessionService','MoveSlidePageMutation','replace','dispose','DocStateChangeManagerService','_clearRedo','pluginName','HEARTBEAT_INTERVAL','_tryReconnect','onTransformIME','PERMISSION_REJ','BoardCollaborationEntity','UniverNetworkPlugin','MUTATION','CollaborationController','univer-pro.collaboration-client.network-condition.service','_commentUpdate$','default','_onUserLeave','uniscriptRunEvent','_lockTransition','hasOwnProperty','_transformAndApplyRemoteChangeset','_resendWithTimeout','196186DMqstS','dispose$','&to=','socketMessageSubscription','confirm','_state$','unitID','_fetchMissChangesets','_undoRedoService','version','HTTPService','createSocket','UNIVER_DOC','_handler','createInstance','UniverCollaborationPlugin','ISingleActiveUnitService','url','getUnitStatus$','downloadEndpointUrl','HELLO','getInterceptPoints','toPrimitive','IUniverInstanceService','filter','FileId','SnapshotService','/fetchmissing?from=','getMember','subject','_handlerCallback','not_collab','MentionIoHttpService','ERROR_EXCEED_SIZE','originalMeta','ws://127.0.0.1:8000/universer-api/comb/connect','accept','/rev/','onStateChange','_commentService','submit\x20changeset\x20error!','session.room-not-exists','CollaborationSessionService','appendMutation','x-univer-host','{fileID}','OTHER_CLIENT_EDITING','_transformStack','socketService','[OfflineState]:\x20received\x20changeset.','readAsDataURL','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','COMMENT_UPDATE','_change$','merge','updateCollaborator','src','UNIVER_COLLABORATION_CLIENT_PLUGIN','routeKey','[PendingState]:\x20received\x20rejection.','startTime','onTransformState','telemetry\x20info\x20is\x20not\x20initialized','NO_OTHER_CLIENTS_EDITING','969712sGSzCK','SHOULD_CLOSE_CONN','_onRecvEvent','IContextService','RichTextEditingMutation','OPTIONAL','_unitInfo$','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_memberService','userID','getSnapshotAPIPath','RevisionService','ILocalCacheService','isPermissionRej','_clearScheduledTask','getTime','session.room-full','USERS_ENTER','batchAllowed','Disposable','awaiting_with_pending','_sendHeartbeat','conflict','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','DEFAULT_COLLAB_WEB_SOCKET_URL','call','uploadFileServerUrl','UnitStatus','UPDATE_CURSOR','COMPRESS_MUTATION_APPLY','send','MSG_FOR_ERROR','_transformUndoredo','getUnitType','state','textEncoder','IPermissionService','_collaborationPaused','stopTime','_config','disposeWithMe','1.0.0-alpha.8','_changesetSessionId','getDeserializedSheetBlock','FileSource','_throwTelemetryCollaborationNewChangeset','unitLoaded$','/universer-api/user/session-ticket','RECV','m2Prime','SheetTransformSelectionsService','/resources','_acknowledgedAwaitingRevision','getUnit','data','fetchMissingChangesets','updateMember','parseProtocolChangeset','54288nFIgFs','_initRequestHeader','JOINING','mergeOverrideWithDependencies','addImageSourceCache','_clearUndo','\x20in\x20_schedule.','CHANGESET_REJ','deepClone','firstValueFrom','_remoteChangesetQueue','min','_instanceService','_HTTPService','DocCollaborationEntity','hostname','status$','isInternalEditorID','_clearCollaborationTimeoutTimer','_onJoinRoomEvent','resend','getMemberID','[OfflineState]:\x20received\x20acknowledgement.','_getCurrentRevision','_decreaseWaiting','loadOfflineData','_localCacheService','text-x','onTransformRemoteChangesetByStateCache','getCurrentRevOfUnit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onFetchMissResult','toLocal','JOIN','ISocketService','_socketChannels','updateCursorEvent','ReplaySubject','_sessions','capture','212dZljBz','UnitEmbedded','RxDisposable','getUploadOptions','collaborators','onMissedChangesetFetched','FetchingMissState','init','sendHeartbeatTimer','get','b64DecodeUnicode','_docStateChangeManagerService','fromCharCode','requireSession','transformSelections','_tryEnsureSocket','roles','444036vMvOmB','size','COLLABORATION_ENDPOINT_INVALID','retryConnectingInterval','online$','_submitChangeset','/collaborator','signUrlServerUrl','toString','_clearRetryConnectingTimer','_shouldReportTelemetry','file','COMPRESS_MUTATION_SEND','_univerInstanceService','[PendingState]:\x20received\x20acknowledgement.','PSEUDO_FETCH_MISSING_RESULT','fromCollab','_removeRoom','_resendTimer','uuidv4','prototype','_sendingTimer','_unitLoaded$','maxSize','UNISCRIPT_RUN','leaveEvent','awaiting','debug','_maxTotalRetryTimeout','ICommandService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','AwaitingWithPendingState','_logService','_compressMutationService','stringify','function','_onUserJoin','[SyncedState]:\x20received\x20rejection.','endpointKey','listCollaborators','_telemetryService','_resolveSessionIdentity','trim','_updateState','HEARTBEAT_TIMEOUT_KEY','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CLOSE_ROOM','_httpService','transformStack\x20failed!','_roomMembers','_entities','entityInit$','LIVESHARE_REQUEST_HOST','list','SnapshotServerOverHTTPService','allowed','body','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','complete','onTransformSelections','removeMember','_getCtorByUniverInstanceType','_collabSessionService','parse','CollaborationSocketService','session.room-cnt-exceeds','ERROR_IMAGE_TYPE','reject','_isEchoedAwaitingChangeset','_collaborationUIEventService','_sender','loadBoard','onMutationExecutedForCollab','csShouldRetryEvent','_startTelemetryCollaborationNewChangeset','roomInfos','/universer-api/stream/file/upload','changesets','_executeRemoteChangeset','asObservable','PENDING','_members$','toggleOffline','AWAITING','_socketMessageSubscription','getImageSourceCache','/universer-api/authz','workbook','clear','cbc','getLocalCacheKey','_transformIMECache','_transformRemoteChangesetByStateCache','_networkConditionService','onRemoteAck','_substituteRedoStack','open$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','set','InsertSheetMutation','_incrementRevisionNumber','CombCmd','_onRemoteRejected','getSheetBlock','Injector','close$','_transitionLocked','name','actions','RETRY_CONNECTING_MAX_COUNT','collaboration-client.auth.needGotoLoginAlert','_socketService','getTypeOfUnitAdded$','ImageUploadStatusType','toDisposable','[CollaborationState]:\x20apply\x20error!','session','pipe','_getRedoStack','_identity','ConflictState','univer-pro.collaboration-client-socket-service','serializeCombRequest','_createHandler','tables','_collaborationTimeoutTimer','put','IAuthzIoService','_injector','error$','patch','_updateLocalCache','UNIVER_BASE','sequenceExecute','BehaviorSubject','CollaborationEntity','_checkMissing','missingChangesets','_roomCreated$','_showConflictNotification','change$','FETCH_MISSING','UNIVER_PDF','JOIN_ROOM_FAILED','enableCollaboration','emitEvent','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','includes','onTransformRemoteChangesetByIMECache','getOwnPropertyDescriptor','cmd','upload','_permissionService','LIVESHARE_FETCH_OPERATIONS','/universer-api/comb','subscribe','CommentService','PERSON','awaitingChangeset','synced','loginUrlKey','isTransformChangesetsSuccess','mutations','onCommentUpdate','docStateChange$','result','updateOfflineData','SyncedState','_redoStacks','number','_onConnectionOpen','getLatestCsReqIdBySid','_state','saveChangeset','__splitChunk__','NEW_CHANGESETS','_init','_type','blockRanges','toRemote','_socket','SNAPSHOT_URL_KEY','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','every','createCollaborator','_createInitialStateImpl','collaboration-client.local-cache-service','People','MemberService','unit','_doCreateSocket','localUnitId','status','_queuedRemoteChangesets','_toggleOffline','_replayCachedMutations','IAttachmentIoService','target','Tools','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_stopTelemetryCollaborationNewChangeset','CollaborationUIEventId','csAckEvent','location','find','SYNCED','listRoles','textRanges','collaMsg','_getUndoStack','ERROR_IMAGE','ICollaborationClientAdapterService','unitType','_transformService','_getAPIPrefixPath','readyForCollab','append','cfgEnableObjInherit','_applyRemoteChangeset','max','RemoveSlidePageMutation','toggleOnline','_awaitingChangeset','next','getCurrentUser','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','HEARTBEAT_INTERVAL_KEY','/object','map','14drHnWd','CmdRspCode','_transformSelections','WorkbookEditablePermission','delete','_transformStateCache','_onMessage','Subject','_entityInit$','_singleActiveUnitService','Optional','AwaitingState','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_sessionChannels','endsWith','base-ui.attachment-io.service','setShowComponents','IConfigService','/allowed','DataLoaderService','INetworkConditionService','deleteCollaborator','isTransformMutationsWithChangesetSuccess','pauseCollaboration','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_onRemoteChangeset','LOCAL_CACHE_INTERVAL_KEY','entries','incrementRevOfUnit','onMissingChangesets','CollaborationEvent','USERS_LEAVE','SOCKET_FAILED','transformMutationsWithChangeset','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','registerHTTPInterceptor','_joinRoom','ITransformService','objectType','responseType','SlideCollaborationEntity','getResourcesRequest','onSendChangeset','_disableEditing','HEARTBEAT_TIMEOUT','timeoutTimer','iterator','shouldCloseConn','message$','localeService','ICollaborationSocketService','Module','136368MosATV','_sessionStatus$','_telemetryInfo','getCurrentSelections','_getLoginPath','_handleRemoteChangesets','onSyncEditingCollabCursor','add','authzUrl','fetchMiss','loadSlide','UNIVER_SHEET','220qeWNIr','_substituteUndoStack','_exhaustRemoteChangesetQueue','getConfig','findIndex','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_snapshotService','?size=','LIVESHARE_NEW_HOST','_status$','enableSingleActiveInstanceLock','[SyncedState]:\x20received\x20acknowledgement.','unknown','onLocalMutation','[PendingState]:\x20unhandled\x20univer\x20type:\x20','splice','getGlobalObject','UserManagerService','unit-cache-','_listenToNetworkCondition','_getSendChangesetTimeout','CHANGESET_SHOULD_RETRY','snapshotServerUrl','POST','SUCCUSS','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','JSONX','duration','CONFLICT','title','setCfgEnableObjInherit','_getAPIPrefix','SetSelectionsOperation','[CollaborationEntity]','params','sessionStatus','fetchThroughInterceptors','CollaborationImageIoService','getCollabEntity','socket\x20open.','_hasSessionsForEndpoint','event$','_startCollaboration','string','catch','DEFAULT_WS_SESSION_TICKET_URL','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','concatBytes','unitId\x20is\x20not\x20found','_onConnectionFailed','onStarting','_userManagerService','parseChangesetToProtocol','_onConflict','push','_waitCount','SOCKET_FAILED_RETRY','pending','/universer-api/oidc/authpage','CollaborationStatus','code','values','connection\x20error','isCompositionEnd','loadDoc','_createSession','LocalUndoRedoService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','collabWebSocketUrl','LIVESHARE_OPERATION','focused$','getCollabEntity$','requestParams','UNIVER_BOARD','Error\x20on\x20receiving\x20event','delay','objects','isArray','touchDependencies','takeUntil','onlyLocal','socketReady','waitForRoom$','_revisionService','SessionStatus','_acknowledgeAwaiting','Plugin','revision','LocaleService','_adapter','collaboratorID','?url=','ONLINE','method','interceptor','resolveWithBasePath','origin','baseRev','retryCount','getTypeOfUnitDisposed$','FAIL','SUBMIT_CHANGESET_TIMEOUT','encode','JOIN_ROOM_NOT_EXISTS','_scheduleCompleteTimestamp','defineProperty','_initUnitPermissionChange','utf8ToBytes','range','permissionRejEvent','sid','/role','onRemoteRetry','href','&assign=','LIVESHARE_TERMINATE','ITelemetryService','/unit/','slice','IDLE','startsWith','_pendingSessions','override','socket\x20close','getSheetId','_members','LEAVE','objectID','getValue','PERMISSION_DENIED','SheetsSelectionsService','_isPermissionRej','getDrawingImageAllowSize','GLOBAL_ROOMS_CNT_EXCEEDS','executeCommand','OfflineState','_resendTimeout','onRemoteRej','loadUnit','offline','mapDocumentTypeToUniverInstanceType','_initMergeInterceptor','collaboration_new_changeset','_clearHeartbeatTimer','updatePermissionObjEvent','reduce','AuthzIoHttpService','Rectangle','localCacheService','eventID','take','create','error','/block/','_cfgEnableObjInherit','session.room-permission-denied','_syncEditingCollabCursor','SUBMIT_CHANGESET','PdfCollaborationEntity','UNIVER_SLIDE','_rescheduleHeartbeat','IUndoRedoService','enableOfflineEditing','sessionStatus$'];_0xff81=function(){return _0x23cfba;};return _0xff81();}let A=ze=class extends D{constructor(_0x19a206,_0x3f0db2,_0x161567,_0x5d1020,_0x3f5e43,_0x2c0235,_0x11b199,_0x3e3b91,_0x3df886,_0x338a1f,_0x5b2fd6){const _0xcb85ac=_0x33c78d;super(_0x19a206,_0x3f0db2,_0x161567,[],_0x5d1020,_0x11b199,_0x338a1f,_0x2c0235,_0x5b2fd6),this[_0xcb85ac(0x25e)]=_0x3f5e43,this[_0xcb85ac(0x1fe)]=_0x3e3b91,this[_0xcb85ac(0x2b3)]=_0x3df886,g(this,_0xcb85ac(0x29e),'awaiting'),g(this,_0xcb85ac(0x38c),0x0),g(this,_0xcb85ac(0x1fa),0x0),g(this,_0xcb85ac(0x1f0),void 0x0),g(this,_0xcb85ac(0x224),void 0x0);}['appendMutation'](_0x286ab9){const _0x48f1da=_0x33c78d;this[_0x48f1da(0x179)]();let _0x4ccd28=this[_0x48f1da(0x25e)][_0x48f1da(0x139)](j,this[_0x48f1da(0x131)],this[_0x48f1da(0x402)],this[_0x48f1da(0x2bc)],[_0x286ab9],this['_handler'],this[_0x48f1da(0x1f0)]);return _0x4ccd28['_updateLocalCache'](),_0x4ccd28;}[_0x33c78d(0x3cc)](_0x362847){const _0x2da54b=_0x33c78d;if(this[_0x2da54b(0x266)](_0x362847))return this['_clearScheduledTask'](),this[_0x2da54b(0x25e)][_0x2da54b(0x139)](P,this[_0x2da54b(0x131)],this[_0x2da54b(0x402)],this['_awaitingChangeset'],[],null,[_0x362847],this[_0x2da54b(0x138)]);try{let _0x498624=this[_0x2da54b(0x2b3)][_0x2da54b(0x3e7)]([_0x362847],[this[_0x2da54b(0x2bc)]],!0x1);if((0x0,e[_0x2da54b(0x27f)])(_0x498624)){let {c1Prime:_0x49ee78,c2Prime:_0xfd2f1b}=_0x498624;this[_0x2da54b(0x22c)](_0x49ee78[0x0]),_0xfd2f1b[0x0][_0x2da54b(0x365)]=this['_getCurrentRevision'](),this[_0x2da54b(0x179)]();let _0x266d8a=this[_0x2da54b(0x25e)]['createInstance'](ze,this[_0x2da54b(0x131)],this[_0x2da54b(0x402)],_0xfd2f1b[0x0],this[_0x2da54b(0x138)]);return _0x266d8a[_0x2da54b(0x261)](),_0x266d8a;}throw _0x498624[_0x2da54b(0x39c)];}catch(_0x5dda6f){return this[_0x2da54b(0x1fe)]['error'](_0x5dda6f),this[_0x2da54b(0x339)](!0x1);}}[_0x33c78d(0x23c)](_0x3544b0){const _0x2f18e9=_0x33c78d;this[_0x2f18e9(0x179)]();let _0x49a809=this['_revisionService'][_0x2f18e9(0x1c2)](this[_0x2f18e9(0x131)]);if(_0x3544b0[_0x2f18e9(0x35b)]<=_0x49a809)return this;if(this['_checkMissing'](_0x3544b0))return this[_0x2f18e9(0x25e)][_0x2f18e9(0x139)](P,this[_0x2f18e9(0x131)],this['type'],this[_0x2f18e9(0x2bc)],[],_0x3544b0[_0x2f18e9(0x35b)],[],this[_0x2f18e9(0x138)]);this['_incrementRevisionNumber']();let _0x19cc0e=this[_0x2f18e9(0x25e)]['createInstance'](O,this[_0x2f18e9(0x131)],this[_0x2f18e9(0x402)],this[_0x2f18e9(0x138)]);return _0x19cc0e[_0x2f18e9(0x261)](),_0x19cc0e;}[_0x33c78d(0x38d)](_0x5a0cd0){const _0xc7a65=_0x33c78d;return this[_0xc7a65(0x339)](!!(_0x5a0cd0!=null&&_0x5a0cd0[_0xc7a65(0x178)]));}[_0x33c78d(0x374)](_0x230b2a){const _0x132b33=_0x33c78d;return this[_0x132b33(0x1fa)]>Ue?this[_0x132b33(0x230)]():(this[_0x132b33(0x1f0)]=Le(this[_0x132b33(0x38c)],{'timeout':this['_resendTimeout'],'reqId':_0x230b2a['reqId']}),this['_sender']=this[_0x132b33(0x1f0)][_0x132b33(0x279)](({reqId:_0x2d70e9,timeout:_0x4791ab})=>{const _0x1e6626=_0x132b33;this[_0x1e6626(0x12a)](_0x2d70e9,_0x4791ab);}),this);}[_0x33c78d(0x230)](){const _0x2c810c=_0x33c78d;return this[_0x2c810c(0x179)](),this[_0x2c810c(0x25e)]['createInstance'](N,this[_0x2c810c(0x131)],this['type'],this[_0x2c810c(0x2bc)],[],this[_0x2c810c(0x138)]);}[_0x33c78d(0x2bb)](){return this;}[_0x33c78d(0x1b9)](){const _0xd79d96=_0x33c78d;this['_handler'][_0xd79d96(0x2ee)](this['_awaitingChangeset']);}[_0x33c78d(0x339)](_0x4567b0){const _0x262255=_0x33c78d;return this['_clearScheduledTask'](),this[_0x262255(0x25e)][_0x262255(0x139)](M,this[_0x262255(0x131)],this[_0x262255(0x402)],this[_0x262255(0x2bc)],[],this['_handler'],_0x4567b0);}[_0x33c78d(0x12a)](_0x3d847e,_0x3044e8){const _0x15ff3b=_0x33c78d;var _0x4c1b11;_0x3d847e===((_0x4c1b11=this[_0x15ff3b(0x2bc)])==null?void 0x0:_0x4c1b11[_0x15ff3b(0x3ba)])&&(this[_0x15ff3b(0x1b9)](),this[_0x15ff3b(0x38c)]=_0x3044e8===0x0?0x3e8:Math[_0x15ff3b(0x1b0)](_0x3044e8*0x2,He),this['_maxTotalRetryTimeout']+=this[_0x15ff3b(0x38c)]);}['_clearScheduledTask'](){const _0x2e3044=_0x33c78d;var _0x84cc4b;(_0x84cc4b=this[_0x2e3044(0x224)])==null||_0x84cc4b['unsubscribe'](),this[_0x2e3044(0x38c)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};A=ze=y([v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,(0x0,t['Inject'])(e[_0x33c78d(0x176)])),v(0x6,t['ICommandService']),v(0x7,t['ILogService']),v(0x8,e['ITransformService']),v(0x9,t[_0x33c78d(0x3a5)]),v(0xa,(0x0,t[_0x33c78d(0x2cd)])(S))],A);let j=Be=class extends D{constructor(_0x22239b,_0x4fea81,_0x3ee86d,_0xe64b06,_0x12af7d,_0x1e5e61,_0x309202,_0xe21578,_0x1994f7,_0x47acaa,_0x18cf60,_0x56e3d0,_0x51a2a7){const _0x1ec4ff=_0x33c78d;super(_0x22239b,_0x4fea81,_0x3ee86d,_0xe64b06,_0x12af7d,_0x1994f7,_0x56e3d0,_0xe21578,_0x51a2a7),this[_0x1ec4ff(0x25e)]=_0x309202,this['_logService']=_0x47acaa,this[_0x1ec4ff(0x2b3)]=_0x18cf60,this['localCacheService']=_0x51a2a7,g(this,_0x1ec4ff(0x29e),'awaiting_with_pending'),g(this,_0x1ec4ff(0x38c),0x0),g(this,_0x1ec4ff(0x1fa),0x0),g(this,_0x1ec4ff(0x1f0),void 0x0),g(this,_0x1ec4ff(0x224),void 0x0),_0x1e5e61&&(this[_0x1ec4ff(0x1f0)]=_0x1e5e61,this['_sender']=this[_0x1ec4ff(0x1f0)]['subscribe'](({reqId:_0x4e0995,timeout:_0x12ade9})=>{const _0x1694e4=_0x1ec4ff;this[_0x1694e4(0x12a)](_0x4e0995,_0x12ade9);}));}[_0x33c78d(0x156)](_0x58f909){const _0x4e649a=_0x33c78d;return this['_pendingMutations'][_0x4e649a(0x33a)](_0x58f909),this;}['onRemoteChangeset'](_0x219208){const _0x12d404=_0x33c78d;if(this[_0x12d404(0x266)](_0x219208))return this[_0x12d404(0x179)](),this[_0x12d404(0x25e)][_0x12d404(0x139)](P,this[_0x12d404(0x131)],this[_0x12d404(0x402)],this[_0x12d404(0x2bc)],this[_0x12d404(0x3b4)],null,[_0x219208],this[_0x12d404(0x138)]);try{let _0x196f9c=this[_0x12d404(0x2b3)]['transformChangesets']([_0x219208],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x12d404(0x27f)])(_0x196f9c)){let {c1Prime:_0x242dfc,c2Prime:_0x5b7ae8}=_0x196f9c,_0xf579fc=this['_transformService'][_0x12d404(0x2e4)](_0x242dfc[0x0],this[_0x12d404(0x3b4)]);if((0x0,e[_0x12d404(0x2d9)])(_0xf579fc)){let {c1Prime:_0x5ec425,m2Prime:_0x410727}=_0xf579fc;return this[_0x12d404(0x22c)](_0x5ec425),_0x5b7ae8[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0x12d404(0x25e)]['createInstance'](Be,this['unitID'],this[_0x12d404(0x402)],_0x5b7ae8[0x0],_0x410727,this[_0x12d404(0x138)],void 0x0);}throw _0xf579fc[_0x12d404(0x39c)];}throw _0x196f9c[_0x12d404(0x39c)];}catch(_0x3c5aff){return this['_logService'][_0x12d404(0x39c)](_0x3c5aff),this[_0x12d404(0x339)](!0x1);}}[_0x33c78d(0x23c)](_0x277c0d){const _0x917986=_0x33c78d;this['_clearScheduledTask']();let _0x29298d=this[_0x917986(0x1bc)]();if(_0x277c0d['revision']<=_0x29298d)return this;if(this[_0x917986(0x266)](_0x277c0d))return this[_0x917986(0x25e)]['createInstance'](P,this[_0x917986(0x131)],this[_0x917986(0x402)],this[_0x917986(0x2bc)],this[_0x917986(0x3b4)],_0x277c0d[_0x917986(0x35b)],[],this['_handler']);this[_0x917986(0x242)]();let _0x297e68=this['_injector'][_0x917986(0x139)](k,this['unitID'],this[_0x917986(0x402)],this[_0x917986(0x3b4)],this['_handler']);return _0x297e68[_0x917986(0x413)](),_0x297e68['_updateLocalCache'](),_0x297e68;}[_0x33c78d(0x38d)](_0x24b323){const _0xa07f6e=_0x33c78d;return this[_0xa07f6e(0x339)](!!(_0x24b323!=null&&_0x24b323[_0xa07f6e(0x178)]));}['onRemoteRetry'](_0x441d32){const _0x462d7d=_0x33c78d;return this['_maxTotalRetryTimeout']>Ue?this[_0x462d7d(0x230)]():(this[_0x462d7d(0x1f0)]=Le(this[_0x462d7d(0x38c)],{'timeout':this[_0x462d7d(0x38c)],'reqId':_0x441d32[_0x462d7d(0x3ba)]}),this[_0x462d7d(0x224)]=this[_0x462d7d(0x1f0)]['subscribe'](({reqId:_0x50696e,timeout:_0x3e7271})=>{const _0x3c6e35=_0x462d7d;this[_0x3c6e35(0x12a)](_0x50696e,_0x3e7271);}),this);}[_0x33c78d(0x230)](){const _0x5151cf=_0x33c78d;return this[_0x5151cf(0x179)](),this['_injector'][_0x5151cf(0x139)](N,this[_0x5151cf(0x131)],this[_0x5151cf(0x402)],this[_0x5151cf(0x2bc)],this[_0x5151cf(0x3b4)],this[_0x5151cf(0x138)]);}['toggleOnline'](){return this;}[_0x33c78d(0x1b9)](){const _0x4f0e02=_0x33c78d;this[_0x4f0e02(0x138)][_0x4f0e02(0x2ee)](this[_0x4f0e02(0x2bc)]);}[_0x33c78d(0x339)](_0x17ee85){const _0x98a011=_0x33c78d;return this[_0x98a011(0x179)](),this[_0x98a011(0x25e)][_0x98a011(0x139)](M,this[_0x98a011(0x131)],this['type'],null,this[_0x98a011(0x3b4)],this[_0x98a011(0x138)],_0x17ee85);}['_resendWithTimeout'](_0x22f2ea,_0x627200){const _0x214513=_0x33c78d;var _0x257a79;_0x22f2ea===((_0x257a79=this[_0x214513(0x2bc)])==null?void 0x0:_0x257a79[_0x214513(0x3ba)])&&(this[_0x214513(0x1b9)](),this[_0x214513(0x38c)]=_0x627200===0x0?0x3e8:Math[_0x214513(0x1b0)](_0x627200*0x2,He),this[_0x214513(0x1fa)]+=this[_0x214513(0x38c)]);}['_clearScheduledTask'](){const _0x44d1ac=_0x33c78d;var _0x4538fa;(_0x4538fa=this[_0x44d1ac(0x224)])==null||_0x4538fa['unsubscribe'](),this[_0x44d1ac(0x38c)]=0x0,this[_0x44d1ac(0x1fa)]=0x0;}};j=Be=y([v(0x6,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(e['RevisionService'])),v(0x8,t[_0x33c78d(0x1fb)]),v(0x9,t[_0x33c78d(0x3ed)]),v(0xa,e[_0x33c78d(0x2e9)]),v(0xb,t[_0x33c78d(0x3a5)]),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(S))],j);let M=class extends D{constructor(_0x1c9d18,_0x1d6129,_0x161c92,_0x2bcf61,_0x450741,_0x4bb89a=!0x1,_0x50ee3b,_0x4b436b,_0x5b567d,_0xeaaba7,_0x3c5a84,_0x19c28f,_0x5f1e47){const _0x24a2e3=_0x33c78d;super(_0x1c9d18,_0x1d6129,_0x161c92,_0x2bcf61,_0x450741,_0x4b436b,_0x5b567d,_0xeaaba7,_0x5f1e47),this['_isPermissionRej']=_0x4bb89a,this[_0x24a2e3(0x276)]=_0x50ee3b,this[_0x24a2e3(0x3fb)]=_0x3c5a84,this['_collaborationUIEventService']=_0x19c28f,this[_0x24a2e3(0x398)]=_0x5f1e47,g(this,_0x24a2e3(0x29e),_0x24a2e3(0x181)),this[_0x24a2e3(0x269)](),this[_0x24a2e3(0x3c9)](),this[_0x24a2e3(0x2ef)]();}[_0x33c78d(0x156)](){return this;}[_0x33c78d(0x3cc)](){return this;}[_0x33c78d(0x23c)](){return this;}[_0x33c78d(0x38d)](){return this;}[_0x33c78d(0x374)](){return this;}[_0x33c78d(0x230)](){return this;}['toggleOnline'](){return this;}[_0x33c78d(0x1b9)](){const _0x3a172d=_0x33c78d;throw Error(_0x3a172d(0x429));}[_0x33c78d(0x3c9)](){const _0x54ebc8=_0x33c78d;var _0x4a92a1,_0x3239f4,_0x59d3e6;(_0x4a92a1=this[_0x54ebc8(0x1bf)])==null||(_0x3239f4=_0x4a92a1['backupOfflineData'])==null||(_0x3239f4=_0x3239f4[_0x54ebc8(0x184)](_0x4a92a1,this[_0x54ebc8(0x131)],_0x54ebc8(0x181)))==null||_0x3239f4[_0x54ebc8(0x330)](()=>void 0x0),(_0x59d3e6=this['_localCacheService'])==null||_0x59d3e6[_0x54ebc8(0x284)](this['unitID'],this[_0x54ebc8(0x402)],null,[]);}[_0x33c78d(0x269)](){const _0x4d0840=_0x33c78d;this[_0x4d0840(0x387)]?this[_0x4d0840(0x223)][_0x4d0840(0x26f)]({'id':'PERMISSION_DENIED'}):this['_collaborationUIEventService'][_0x4d0840(0x26f)]({'id':_0x4d0840(0x320)});}[_0x33c78d(0x2ef)](){const _0x58598d=_0x33c78d;this['_permissionService'][_0x58598d(0x3e6)](new r[(_0x58598d(0x2c6))](this[_0x58598d(0x131)])['id'],!0x1);}};M=y([v(0x6,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x18f)])),v(0x7,t[_0x33c78d(0x1fb)]),v(0x8,t[_0x33c78d(0x3a5)]),v(0x9,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0xa,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x35c)])),v(0xb,(0x0,t['Inject'])(_)),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(S))],M);let N=class extends D{constructor(_0x47e10e,_0x444583,_0x5ee48d,_0x264afa,_0xa2c68c,_0x50c7de,_0x32c247,_0x45b417,_0x3c645d,_0x417eae){const _0x59e8d5=_0x33c78d;super(_0x47e10e,_0x444583,_0x5ee48d,_0x264afa,_0xa2c68c,_0x45b417,_0x3c645d,_0x32c247,_0x417eae),this[_0x59e8d5(0x25e)]=_0x50c7de,g(this,'status',_0x59e8d5(0x38f));}[_0x33c78d(0x156)](_0x45ca9d){const _0x21f95d=_0x33c78d;return this[_0x21f95d(0x3b4)]['push'](_0x45ca9d),this[_0x21f95d(0x261)](),this;}['onRemoteChangeset'](_0x31742d){const _0x55a292=_0x33c78d;throw Error(_0x55a292(0x15c));}[_0x33c78d(0x23c)](){const _0x4fd6a0=_0x33c78d;throw Error(_0x4fd6a0(0x1bb));}[_0x33c78d(0x38d)](){const _0x48c4e8=_0x33c78d;throw Error(_0x48c4e8(0x3ee));}[_0x33c78d(0x374)](){return this;}['toggleOffline'](){return this;}[_0x33c78d(0x2bb)](){const _0x5e44dc=_0x33c78d;let {_injector:_0x1883dc,_pendingMutations:_0x529f25,_awaitingChangeset:_0x3416c0,unitID:_0x464bb2,_handler:_0x5aaf60,type:_0x278864}=this,_0x823e10=We(_0x1883dc,_0x464bb2,_0x278864,_0x3416c0,_0x529f25,_0x5aaf60);return _0x823e10 instanceof k?_0x823e10[_0x5e44dc(0x413)]():(_0x823e10 instanceof j||_0x823e10 instanceof A)&&_0x823e10[_0x5e44dc(0x1b9)](),_0x823e10;}[_0x33c78d(0x1b9)](){const _0x4ef1d2=_0x33c78d;throw Error(_0x4ef1d2(0x172));}};N=y([v(0x5,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x6,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x7,t['ICommandService']),v(0x8,t[_0x33c78d(0x3a5)]),v(0x9,(0x0,t['Optional'])(S))],N);let P=class extends D{constructor(_0xc4d8c3,_0x2a66f9,_0x436c58,_0x3cc394,_0x536a4c,_0x1ecd81,_0x1d7586,_0x560916,_0x59eeea,_0x4d3dcc,_0x537153,_0x2936b9,_0x5d2872,_0x434b74){const _0x1728b7=_0x33c78d;super(_0xc4d8c3,_0x2a66f9,_0x436c58,_0x3cc394,_0x1d7586,_0x537153,_0x2936b9,_0x59eeea,_0x434b74),this['_acknowledgedAwaitingRevision']=_0x536a4c,this['_queuedRemoteChangesets']=_0x1ecd81,this[_0x1728b7(0x25e)]=_0x560916,this[_0x1728b7(0x1fe)]=_0x4d3dcc,this[_0x1728b7(0x2b3)]=_0x5d2872,this[_0x1728b7(0x398)]=_0x434b74,g(this,'status',_0x1728b7(0x422));}[_0x33c78d(0x1d2)](_0x513737){const _0x4a211e=_0x33c78d;try{if(this[_0x4a211e(0x2fd)](_0x513737)['missingChangesets'])throw Error(_0x4a211e(0x270));if(this['_handleRemoteChangesets']([...this[_0x4a211e(0x29f)]]['sort']((_0x3c144d,_0x32628e)=>_0x3c144d[_0x4a211e(0x35b)]-_0x32628e['revision']))[_0x4a211e(0x267)])return this[_0x4a211e(0x29f)]=[],this[_0x4a211e(0x261)](),this['_handler'][_0x4a211e(0x2e0)]({'from':this[_0x4a211e(0x1bc)](),'to':0x0}),this;let _0x481b2b=this['_awaitingChangeset'],_0x2a6b68=this[_0x4a211e(0x3b4)],_0x5642c2;if(_0x481b2b&&_0x2a6b68[_0x4a211e(0x3e4)]!==0x0)_0x5642c2=this[_0x4a211e(0x25e)]['createInstance'](j,this['unitID'],this[_0x4a211e(0x402)],_0x481b2b,_0x2a6b68,this[_0x4a211e(0x138)],void 0x0);else{if(_0x481b2b&&_0x2a6b68[_0x4a211e(0x3e4)]===0x0)_0x481b2b[_0x4a211e(0x365)]=this[_0x4a211e(0x1bc)](),_0x5642c2=this['_injector']['createInstance'](A,this[_0x4a211e(0x131)],this[_0x4a211e(0x402)],_0x481b2b,this['_handler']);else{if(_0x2a6b68[_0x4a211e(0x3e4)]!==0x0){let _0x114816=this[_0x4a211e(0x25e)][_0x4a211e(0x139)](k,this[_0x4a211e(0x131)],this[_0x4a211e(0x402)],_0x2a6b68,this[_0x4a211e(0x138)]);_0x114816[_0x4a211e(0x413)](),_0x5642c2=_0x114816;}else _0x5642c2=this[_0x4a211e(0x25e)][_0x4a211e(0x139)](O,this['unitID'],this[_0x4a211e(0x402)],this['_handler']);}}return _0x5642c2['_updateLocalCache'](),_0x5642c2;}catch(_0x38560c){return this[_0x4a211e(0x1fe)][_0x4a211e(0x39c)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x38560c),this[_0x4a211e(0x25e)][_0x4a211e(0x139)](M,this['unitID'],this[_0x4a211e(0x402)],this[_0x4a211e(0x2bc)],this[_0x4a211e(0x3b4)],this[_0x4a211e(0x138)],!0x1);}}[_0x33c78d(0x2fd)](_0x15a787){const _0x56cb4b=_0x33c78d;this['_acknowledgeAwaitingIfReady']();for(let _0x1c0108=0x0;_0x1c0108<_0x15a787[_0x56cb4b(0x3e4)];_0x1c0108++){let _0x2d9b83=_0x15a787[_0x1c0108],_0x57f637=this[_0x56cb4b(0x1bc)]();if(!(_0x2d9b83[_0x56cb4b(0x35b)]<=_0x57f637)){if(_0x2d9b83[_0x56cb4b(0x35b)]>_0x57f637+0x1)return{'missingChangesets':!0x0};if(this[_0x56cb4b(0x222)](_0x2d9b83)){this[_0x56cb4b(0x359)]();continue;}this[_0x56cb4b(0x129)](_0x2d9b83),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x33c78d(0x129)](_0x2c7651){const _0x3cab1d=_0x33c78d;let _0x31b4ad=_0x2c7651,_0x9f0a6d=this[_0x3cab1d(0x2bc)];if(_0x9f0a6d){let _0x5e3cd6=this[_0x3cab1d(0x2b3)]['transformChangesets']([_0x2c7651],[_0x9f0a6d],!0x1);if(!(0x0,e[_0x3cab1d(0x27f)])(_0x5e3cd6))throw _0x5e3cd6['error'];_0x31b4ad=_0x5e3cd6[_0x3cab1d(0x423)][0x0],_0x9f0a6d=_0x5e3cd6['c2Prime'][0x0];}let _0x12599c=this['_pendingMutations'];if(_0x12599c[_0x3cab1d(0x3e4)]){let _0x177bca=this[_0x3cab1d(0x2b3)][_0x3cab1d(0x2e4)](_0x31b4ad,_0x12599c);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x177bca))throw _0x177bca[_0x3cab1d(0x39c)];_0x31b4ad=_0x177bca[_0x3cab1d(0x423)],_0x12599c=_0x177bca[_0x3cab1d(0x19c)];}this[_0x3cab1d(0x22c)](_0x31b4ad),_0x9f0a6d&&(_0x9f0a6d[_0x3cab1d(0x365)]=this[_0x3cab1d(0x1bc)]()),this[_0x3cab1d(0x2bc)]=_0x9f0a6d,this[_0x3cab1d(0x3b4)]=_0x12599c;}['_acknowledgeAwaitingIfReady'](){const _0x2732f7=_0x33c78d;if(!this[_0x2732f7(0x2bc)]||this[_0x2732f7(0x19f)]==null)return;let _0x221869=this[_0x2732f7(0x1bc)]();if(this[_0x2732f7(0x19f)]<=_0x221869)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this['_acknowledgedAwaitingRevision']+'.');this[_0x2732f7(0x19f)]===_0x221869+0x1&&this['_acknowledgeAwaiting']();}[_0x33c78d(0x359)](){const _0x6683ee=_0x33c78d;this[_0x6683ee(0x242)](),this[_0x6683ee(0x2bc)]=null,this[_0x6683ee(0x19f)]=null;}[_0x33c78d(0x222)](_0x20e456){const _0x59cd14=_0x33c78d;let _0x366dd4=this[_0x59cd14(0x2bc)];return!_0x366dd4||!_0x366dd4[_0x59cd14(0x372)]||_0x366dd4[_0x59cd14(0x3ba)]===null||_0x366dd4[_0x59cd14(0x3ba)]===void 0x0?!0x1:_0x20e456[_0x59cd14(0x131)]===_0x366dd4['unitID']&&_0x20e456[_0x59cd14(0x372)]===_0x366dd4[_0x59cd14(0x372)]&&_0x20e456['reqId']===_0x366dd4['reqId'];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x33c78d(0x156)](_0x42f5f7){const _0x3dedf6=_0x33c78d;return this[_0x3dedf6(0x3b4)]['push'](_0x42f5f7),this;}['onRemoteChangeset'](_0x265e8a){const _0x4c6e30=_0x33c78d;return this[_0x4c6e30(0x29f)][_0x4c6e30(0x33a)](_0x265e8a),this;}[_0x33c78d(0x23c)](_0x5c63e5){const _0x7abaaf=_0x33c78d;if(this[_0x7abaaf(0x2bc)]){let _0x3754e2=this[_0x7abaaf(0x1bc)]();return _0x5c63e5[_0x7abaaf(0x35b)]<=_0x3754e2||(_0x3754e2+0x1===_0x5c63e5[_0x7abaaf(0x35b)]?(this[_0x7abaaf(0x242)](),this[_0x7abaaf(0x2bc)]=null,this[_0x7abaaf(0x19f)]=null):this[_0x7abaaf(0x19f)]=_0x5c63e5[_0x7abaaf(0x35b)]),this;}if(_0x5c63e5[_0x7abaaf(0x35b)]<=this[_0x7abaaf(0x1bc)]())return this;throw Error(_0x7abaaf(0x2cf));}[_0x33c78d(0x38d)](_0x359b55){const _0x3ae7f3=_0x33c78d;return this[_0x3ae7f3(0x339)](!!(_0x359b55!=null&&_0x359b55[_0x3ae7f3(0x178)]));}[_0x33c78d(0x374)](){return this;}[_0x33c78d(0x230)](){const _0x442ca4=_0x33c78d;return this[_0x442ca4(0x25e)][_0x442ca4(0x139)](N,this[_0x442ca4(0x131)],this[_0x442ca4(0x402)],this[_0x442ca4(0x2bc)],this[_0x442ca4(0x3b4)],this[_0x442ca4(0x138)]);}['toggleOnline'](){return this;}['_onConflict'](_0x277253){const _0x44cfc6=_0x33c78d;return this[_0x44cfc6(0x25e)][_0x44cfc6(0x139)](M,this['unitID'],this[_0x44cfc6(0x402)],this[_0x44cfc6(0x2bc)],this[_0x44cfc6(0x3b4)],this[_0x44cfc6(0x138)],_0x277253);}};P=y([v(0x7,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x8,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x9,t['ILogService']),v(0xa,t[_0x33c78d(0x1fb)]),v(0xb,t[_0x33c78d(0x3a5)]),v(0xc,e['ITransformService']),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],P);function We(_0x1aa792,_0x31564e,_0x10d85b,_0x451bd7,_0xc3c77c,_0x115eb3){const _0x53f54b=_0x33c78d;return _0x451bd7&&_0xc3c77c[_0x53f54b(0x3e4)]?_0x1aa792[_0x53f54b(0x139)](j,_0x31564e,_0x10d85b,_0x451bd7,_0xc3c77c,_0x115eb3,void 0x0):_0x451bd7?_0x1aa792[_0x53f54b(0x139)](A,_0x31564e,_0x10d85b,_0x451bd7,_0x115eb3):_0xc3c77c['length']?_0x1aa792[_0x53f54b(0x139)](k,_0x31564e,_0x10d85b,_0xc3c77c,_0x115eb3):_0x1aa792[_0x53f54b(0x139)](O,_0x31564e,_0x10d85b,_0x115eb3);}let F=class extends t[_0x33c78d(0x1cf)]{get[_0x33c78d(0x18d)](){const _0x3b8371=_0x33c78d;return this[_0x3b8371(0x28a)];}constructor(_0x99de0f,_0x325c7a,_0x1919f3,_0x180f1e,_0x5de7b9,_0x2b5b07,_0x55932b,_0x5ac412,_0x2c5d1a,_0x3277c2,_0x29e736,_0x23fb52,_0x323ee7,_0x5624f7){const _0x303a81=_0x33c78d;super(),this['unitID']=_0x99de0f,this['session']=_0x325c7a,this['_type']=_0x1919f3,this[_0x303a81(0x25e)]=_0x180f1e,this[_0x303a81(0x1ff)]=_0x5de7b9,this[_0x303a81(0x3fb)]=_0x2b5b07,this[_0x303a81(0x357)]=_0x55932b,this[_0x303a81(0x3cb)]=_0x5ac412,this[_0x303a81(0x1eb)]=_0x2c5d1a,this['_logService']=_0x3277c2,this[_0x303a81(0x3c1)]=_0x29e736,this[_0x303a81(0x276)]=_0x23fb52,this[_0x303a81(0x2cc)]=_0x323ee7,this['_localCacheService']=_0x5624f7,g(this,_0x303a81(0x130),new i[(_0x303a81(0x264))](null)),g(this,'state$',this[_0x303a81(0x130)][_0x303a81(0x22d)]()),g(this,_0x303a81(0x28a),void 0x0),g(this,_0x303a81(0x190),!0x1),g(this,_0x303a81(0x195),''),g(this,'_changesetReqId',0x0),g(this,_0x303a81(0x1b5),this['state$'][_0x303a81(0x253)]((0x0,i['map'])(_0x51bfcf=>_0x51bfcf?_0x51bfcf[_0x303a81(0x29e)]:'offline'),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x303a81(0x248),!0x1),g(this,_0x303a81(0x1af),[]);}async[_0x33c78d(0x1d4)](){const _0x548ef2=_0x33c78d;if(this[_0x548ef2(0x18d)])throw Error(_0x548ef2(0x23f));await this[_0x548ef2(0x28e)]();}[_0x33c78d(0x2da)](){const _0x45e56e=_0x33c78d;return this[_0x45e56e(0x190)]=!0x0,(0x0,t[_0x45e56e(0x250)])(()=>{const _0x5b09ad=_0x45e56e;this['_collaborationPaused']=!0x1,this[_0x5b09ad(0x306)]();});}[_0x33c78d(0x311)](_0x408fd2){this['_onLocalMutation'](_0x408fd2);}[_0x33c78d(0x209)](_0x47775e){const _0x1d440c=_0x33c78d;this['_state']=_0x47775e,this[_0x1d440c(0x130)][_0x1d440c(0x2bd)](_0x47775e);}async[_0x33c78d(0x28e)](){const _0x4a612a=_0x33c78d;if(this[_0x4a612a(0x209)](await this[_0x4a612a(0x3ac)]()),this['_singleActiveUnitService']){var _0x4c94bb;(_0x4c94bb=this[_0x4a612a(0x2cc)])==null||_0x4c94bb[_0x4a612a(0x40a)](this[_0x4a612a(0x131)]),this[_0x4a612a(0x193)](this[_0x4a612a(0x2cc)][_0x4a612a(0x13d)](this['unitID'])[_0x4a612a(0x279)](_0x368766=>{const _0x13e658=_0x4a612a;this[_0x13e658(0x1fe)][_0x13e658(0x1f9)]('[CollaborationEntity]',_0x13e658(0x3b5),_0x368766),_0x368766===0x1?(this[_0x13e658(0x3cb)][_0x13e658(0x26f)]({'id':_0x13e658(0x159)}),this['_permissionService']['updatePermissionPoint'](new r[(_0x13e658(0x2c6))](this[_0x13e658(0x131)])['id'],!0x1),this[_0x13e658(0x276)][_0x13e658(0x2d3)](!0x1)):(this['_permissionService'][_0x13e658(0x3e6)](new r[(_0x13e658(0x2c6))](this[_0x13e658(0x131)])['id'],!0x0),this[_0x13e658(0x276)][_0x13e658(0x2d3)](!0x0));}));}let _0x45202d=!0x1;return this[_0x4a612a(0x193)](this[_0x4a612a(0x252)]['sessionStatus$']['subscribe'](_0x2d6d81=>{const _0x2734d1=_0x4a612a;_0x2d6d81===0x3?this[_0x2734d1(0x3f4)](_0x45202d):_0x2d6d81===0x2&&(_0x45202d=!0x0,this[_0x2734d1(0x2a0)]());})),this[_0x4a612a(0x193)](this[_0x4a612a(0x252)][_0x4a612a(0x32d)]['subscribe'](_0x194e69=>{const _0x1645b5=_0x4a612a;try{switch(_0x194e69[_0x1645b5(0x399)]){case e[_0x1645b5(0x2e1)][_0x1645b5(0x28d)]:this[_0x1645b5(0x2dc)]((0x0,e[_0x1645b5(0x1a4)])(_0x194e69[_0x1645b5(0x1a1)]));break;case e[_0x1645b5(0x2e1)]['CHANGESET_ACK']:this['_onRemoteACK'](_0x194e69['data']);break;case e['CollaborationEvent'][_0x1645b5(0x1ac)]:this[_0x1645b5(0x244)]();break;case e['CollaborationEvent'][_0x1645b5(0x319)]:this[_0x1645b5(0x3b8)](_0x194e69[_0x1645b5(0x1a1)]);break;case e['CollaborationEvent'][_0x1645b5(0x1ed)]:this[_0x1645b5(0x1c4)](_0x194e69[_0x1645b5(0x1a1)][_0x1645b5(0x22b)][_0x1645b5(0x2c2)](_0x5d3eb5=>(0x0,e['parseProtocolChangeset'])(_0x5d3eb5)));break;case e[_0x1645b5(0x2e1)][_0x1645b5(0x43f)]:this[_0x1645b5(0x244)]({'isPermissionRej':!0x0});break;case e[_0x1645b5(0x2e1)][_0x1645b5(0x1f6)]:break;}}catch(_0x5805a8){throw console['error'](_0x1645b5(0x34e),_0x5805a8),_0x5805a8;}})),this[_0x4a612a(0x28a)];}[_0x33c78d(0x3e2)](){const _0x57d474=_0x33c78d;this[_0x57d474(0x248)]=!0x1;}[_0x33c78d(0x127)](){if(this['_transitionLocked'])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['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x482186){const _0x3f0cd6=_0x33c78d;this['_lockTransition'](),this['_updateState'](this[_0x3f0cd6(0x28a)][_0x3f0cd6(0x156)](_0x482186)),this[_0x3f0cd6(0x3e2)]();}[_0x33c78d(0x2dc)](_0x450c0c){const _0x375e15=_0x33c78d;if(!(_0x450c0c[_0x375e15(0x35b)]<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x375e15(0x131)]))){if(this[_0x375e15(0x190)]){this[_0x375e15(0x1af)][_0x375e15(0x33a)](_0x450c0c);return;}this[_0x375e15(0x2b8)](_0x450c0c);}}[_0x33c78d(0x306)](){const _0x2c54d6=_0x33c78d;this[_0x2c54d6(0x1af)][_0x2c54d6(0x3f3)](_0x942a60=>this[_0x2c54d6(0x2b8)](_0x942a60)),this[_0x2c54d6(0x1af)]=[];}['_applyRemoteChangeset'](_0x25b8cb){const _0x1bee63=_0x33c78d;let _0x3fe656=this[_0x1bee63(0x1ff)][_0x1bee63(0x362)][_0x1bee63(0x328)](this[_0x1bee63(0x1ff)][_0x1bee63(0x362)][_0x1bee63(0x140)]()[_0x1bee63(0x188)])(_0x25b8cb[_0x1bee63(0x280)],null)||_0x25b8cb[_0x1bee63(0x280)],_0x10da35={..._0x25b8cb,'mutations':_0x3fe656};this['_lockTransition'](),this[_0x1bee63(0x209)](this[_0x1bee63(0x28a)][_0x1bee63(0x3cc)](_0x10da35)),this[_0x1bee63(0x3e2)]();}['_onRemoteACK'](_0x530488){const _0x580527=_0x33c78d;this['_lockTransition'](),this[_0x580527(0x209)](this['_state'][_0x580527(0x23c)](_0x530488)),this[_0x580527(0x3e2)]();}[_0x33c78d(0x244)](_0x5968c4){const _0x39ae0f=_0x33c78d;this[_0x39ae0f(0x127)](),this['_updateState'](this[_0x39ae0f(0x28a)][_0x39ae0f(0x38d)](_0x5968c4)),this['_unlockTransition']();}[_0x33c78d(0x3b8)](_0x499b81){const _0x39420d=_0x33c78d;this[_0x39420d(0x127)](),this[_0x39420d(0x209)](this[_0x39420d(0x28a)][_0x39420d(0x374)](_0x499b81)),this[_0x39420d(0x3e2)]();}[_0x33c78d(0x1c4)](_0x2e8368){const _0xe49e58=_0x33c78d;if(!(this['_state']instanceof P))throw TypeError(_0xe49e58(0x347));let _0x141938=_0x2e8368['map'](_0x101cce=>{const _0x5c257a=_0xe49e58;let _0x465a6c=this[_0x5c257a(0x1ff)]['interceptor'][_0x5c257a(0x328)](this['_compressMutationService'][_0x5c257a(0x362)]['getInterceptPoints']()[_0x5c257a(0x188)])(_0x101cce[_0x5c257a(0x280)],null)||_0x101cce[_0x5c257a(0x280)];return{..._0x101cce,'mutations':_0x465a6c};});this[_0xe49e58(0x127)](),this[_0xe49e58(0x209)](this[_0xe49e58(0x28a)][_0xe49e58(0x1d2)](_0x141938)),this[_0xe49e58(0x3e2)]();}['_toggleOffline'](){const _0x11eca2=_0x33c78d;this[_0x11eca2(0x127)](),this[_0x11eca2(0x209)](this['_state']['toggleOffline']()),this[_0x11eca2(0x3e2)]();}[_0x33c78d(0x3f4)](_0x56e9dd=!0x1){const _0x468a33=_0x33c78d;this[_0x468a33(0x127)](),this[_0x468a33(0x209)](this['_state'][_0x468a33(0x2bb)]()),this['_unlockTransition']();let _0x293651=this[_0x468a33(0x28a)];_0x56e9dd&&_0x293651 instanceof O&&(this['_lockTransition'](),this[_0x468a33(0x209)](_0x293651[_0x468a33(0x301)]()),this[_0x468a33(0x3e2)]());}async[_0x33c78d(0x3ac)](){return new Promise(_0x575621=>{const _0x5880d3=_0x1643;this[_0x5880d3(0x252)][_0x5880d3(0x3a7)][_0x5880d3(0x253)]((0x0,i[_0x5880d3(0x39a)])(0x1))['subscribe'](async _0x10a12b=>{const _0x421f75=_0x5880d3;_0x575621(await this[_0x421f75(0x297)](_0x10a12b===0x3));});});}[_0x33c78d(0x259)](){const _0x153ecd=_0x33c78d;let _0x28dd82=this[_0x153ecd(0x131)];return{'onStateChange':(_0x4ddef4,_0x4d5d24)=>{const _0x26e3ba=_0x153ecd;if(_0x4ddef4!==this['_state'])throw Error(_0x26e3ba(0x2a5)+_0x4ddef4[_0x26e3ba(0x29e)]+'\x0aAfter:\x20'+_0x4d5d24[_0x26e3ba(0x29e)]+'\x0aCurrent:\x20'+this[_0x26e3ba(0x28a)][_0x26e3ba(0x29e)]);this['_updateState'](_0x4d5d24);},'onSendChangeset':_0x4efe94=>{const _0x1f645a=_0x153ecd;_0x4efe94[_0x1f645a(0x372)]||(_0x4efe94['sid']=this[_0x1f645a(0x195)],_0x4efe94[_0x1f645a(0x3ba)]=++this['_changesetReqId']);let _0x2aaf38={'eventID':e[_0x1f645a(0x2e1)][_0x1f645a(0x3a1)],'data':{'unitID':_0x4efe94[_0x1f645a(0x131)],'unitType':this[_0x1f645a(0x28f)],'changeset':_0x4efe94,'memberID':this['session'][_0x1f645a(0x1ba)]()}};this['session'][_0x1f645a(0x189)](_0x2aaf38,this[_0x1f645a(0x131)]);},'onMissingChangesets':({from:_0x41c722,to:_0x38f8ee})=>{const _0x2a8e7e=_0x153ecd;this[_0x2a8e7e(0x1fe)][_0x2a8e7e(0x1f9)](_0x2a8e7e(0x325),_0x2a8e7e(0x400)+_0x41c722+'\x20to\x20'+_0x38f8ee);let _0x1878db={'eventID':e[_0x2a8e7e(0x2e1)]['FETCH_MISSING'],'data':{'unitID':_0x28dd82,'unitType':this[_0x2a8e7e(0x28f)],'from':_0x41c722,'to':_0x38f8ee}};this['session'][_0x2a8e7e(0x189)](_0x1878db,this[_0x2a8e7e(0x131)]);}};}async['_createInitialStateImpl'](_0x18c552){const _0x5e5b4f=_0x33c78d;var _0x5df9d7,_0x1426f1,_0x2fcaa6;let _0x3210a4=await((_0x5df9d7=this[_0x5e5b4f(0x1bf)])==null?void 0x0:_0x5df9d7[_0x5e5b4f(0x1be)](this['unitID'])),_0x4c91db=(_0x1426f1=_0x3210a4==null?void 0x0:_0x3210a4[_0x5e5b4f(0x280)])==null?[]:_0x1426f1,_0x1af10d=(_0x2fcaa6=_0x3210a4==null?void 0x0:_0x3210a4[_0x5e5b4f(0x27c)])==null?null:_0x2fcaa6,_0x530fa6=!!(_0x1af10d!=null&&_0x1af10d[_0x5e5b4f(0x372)])&&!!(_0x1af10d!=null&&_0x1af10d['reqId']);this[_0x5e5b4f(0x195)]=_0x530fa6?_0x1af10d[_0x5e5b4f(0x372)]:(0x0,e[_0x5e5b4f(0x1f1)])(),this['_changesetReqId']=_0x530fa6?_0x1af10d['reqId']:0x0;let _0x31cd90=this['unitID'];try{this[_0x5e5b4f(0x2a1)](_0x1af10d,_0x4c91db);}catch(_0x52d5ab){this['_logService'][_0x5e5b4f(0x39c)](_0x52d5ab);}let _0x443d11=this[_0x5e5b4f(0x259)]();if(_0x18c552){let _0x4b02e6=We(this[_0x5e5b4f(0x25e)],_0x31cd90,this['_type'],_0x1af10d,_0x4c91db,_0x443d11);return _0x4b02e6 instanceof k?_0x4b02e6[_0x5e5b4f(0x413)]():(_0x4b02e6 instanceof j||_0x4b02e6 instanceof A)&&_0x4b02e6[_0x5e5b4f(0x1b9)](),_0x4b02e6;}return this[_0x5e5b4f(0x25e)]['createInstance'](N,_0x31cd90,this[_0x5e5b4f(0x28f)],_0x1af10d,_0x4c91db,_0x443d11);}[_0x33c78d(0x2a1)](_0x33bba3,_0x58ff43){const _0x3887fb=_0x33c78d;var _0x24b7af,_0x553a20;let _0xc37b20=this[_0x3887fb(0x1ff)][_0x3887fb(0x362)][_0x3887fb(0x328)](this[_0x3887fb(0x1ff)][_0x3887fb(0x362)][_0x3887fb(0x140)]()[_0x3887fb(0x188)]);(_0x24b7af=_0xc37b20((_0x33bba3==null?void 0x0:_0x33bba3[_0x3887fb(0x280)])||[],null))==null||_0x24b7af[_0x3887fb(0x3f3)](_0x582694=>this[_0x3887fb(0x3c1)][_0x3887fb(0x38a)](_0x582694['id'],_0x582694[_0x3887fb(0x326)])),(_0x553a20=_0xc37b20(_0x58ff43||[],null))==null||_0x553a20[_0x3887fb(0x3f3)](_0x25febe=>this['_commandService'][_0x3887fb(0x38a)](_0x25febe['id'],_0x25febe[_0x3887fb(0x326)]));}};F=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t['Injector'])),v(0x4,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x3ff)])),v(0x5,(0x0,t[_0x33c78d(0x403)])(t['LocaleService'])),v(0x6,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(_)),v(0x8,t[_0x33c78d(0x142)]),v(0x9,t['ILogService']),v(0xa,t['ICommandService']),v(0xb,t[_0x33c78d(0x18f)]),v(0xc,(0x0,t['Optional'])(w)),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],F);let I=class extends F{constructor(_0x3bf1e1,_0x59751c,_0x222591,_0x588af6,_0x2a8415,_0x298dab,_0x1b1d28,_0x3231c9,_0x2e215b,_0x510159,_0x294134,_0xe4d9dd,_0x48b4f1,_0x5c8236,_0x94a799){const _0x431c73=_0x33c78d;super(_0x3bf1e1,_0x222591,_0x59751c,_0x588af6,_0x2a8415,_0x298dab,_0x1b1d28,_0x3231c9,_0x2e215b,_0x510159,_0x294134,_0xe4d9dd,_0x5c8236,_0x94a799),this['unitID']=_0x3bf1e1,this[_0x431c73(0x402)]=_0x59751c,this[_0x431c73(0x1d8)]=_0x48b4f1,g(this,_0x431c73(0x149),null);}['addHandlerCallback'](_0x35cb24){const _0x1a889a=_0x33c78d;this[_0x1a889a(0x149)]=_0x35cb24;}[_0x33c78d(0x438)](){const _0x281785=_0x33c78d;this['_handlerCallback']=null,super[_0x281785(0x438)]();}['_createHandler'](){const _0x5a717b=_0x33c78d;let _0x48fab1=super['_createHandler']();return _0x48fab1[_0x5a717b(0x43e)]=_0x50412e=>{const _0x5100ab=_0x5a717b;var _0x3c2f25,_0x5566bb;return(_0x3c2f25=this[_0x5100ab(0x149)])==null||(_0x5566bb=_0x3c2f25[_0x5100ab(0x43e)])==null?void 0x0:_0x5566bb[_0x5100ab(0x184)](_0x3c2f25,_0x50412e);},_0x48fab1[_0x5a717b(0x168)]=_0x33f28d=>{const _0x148ce9=_0x5a717b;var _0x4e9f93,_0x1eb7c5;return(_0x4e9f93=this['_handlerCallback'])==null||(_0x1eb7c5=_0x4e9f93[_0x148ce9(0x168)])==null?void 0x0:_0x1eb7c5[_0x148ce9(0x184)](_0x4e9f93,_0x33f28d);},_0x48fab1[_0x5a717b(0x219)]=_0x28ce36=>{const _0x5a3d62=_0x5a717b;var _0x3957b6,_0xe9bcc;return(_0x3957b6=this[_0x5a3d62(0x149)])==null||(_0xe9bcc=_0x3957b6['onTransformSelections'])==null?void 0x0:_0xe9bcc[_0x5a3d62(0x184)](_0x3957b6,_0x28ce36);},_0x48fab1[_0x5a717b(0x2fe)]=_0x521f90=>{const _0x95d0c6=_0x5a717b;var _0x305665,_0x29bb54;return(_0x305665=this[_0x95d0c6(0x149)])==null||(_0x29bb54=_0x305665[_0x95d0c6(0x2fe)])==null?void 0x0:_0x29bb54[_0x95d0c6(0x184)](_0x305665,_0x521f90);},_0x48fab1[_0x5a717b(0x272)]=_0x25f173=>{const _0x2e96bf=_0x5a717b;var _0x236f86,_0x5a8b40,_0x5b77d9;return(_0x236f86=(_0x5a8b40=this[_0x2e96bf(0x149)])==null||(_0x5b77d9=_0x5a8b40['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5b77d9[_0x2e96bf(0x184)](_0x5a8b40,_0x25f173))==null?_0x25f173:_0x236f86;},_0x48fab1[_0x5a717b(0x1c1)]=_0x48a590=>{const _0x20810d=_0x5a717b;var _0x57a34c,_0x1553a2,_0x5c3d3b;return(_0x57a34c=(_0x1553a2=this[_0x20810d(0x149)])==null||(_0x5c3d3b=_0x1553a2['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x5c3d3b[_0x20810d(0x184)](_0x1553a2,_0x48a590))==null?_0x48a590:_0x57a34c;},_0x48fab1;}async[_0x33c78d(0x28e)](){const _0x5997dd=_0x33c78d;let _0x276070=await super[_0x5997dd(0x28e)]();return this[_0x5997dd(0x193)](this[_0x5997dd(0x1d8)][_0x5997dd(0x282)][_0x5997dd(0x279)](_0x235904=>{const _0x58b482=_0x5997dd;if(_0x235904==null||_0x235904[_0x58b482(0x3fd)]!==this['unitID'])return;let {commandId:_0x5f5d72,redoState:_0x51b2a5,unitId:_0x31c1c0}=_0x235904,_0x58c471={'id':_0x5f5d72,'type':t['CommandType'][_0x58b482(0x120)],'params':{'unitId':_0x31c1c0,'actions':_0x51b2a5[_0x58b482(0x24a)],'textRanges':null}};this[_0x58b482(0x3cf)](_0x58c471);})),this[_0x5997dd(0x193)](this[_0x5997dd(0x3c1)][_0x5997dd(0x226)]((_0x4251a1,_0x10afa1)=>{const _0x16dd85=_0x5997dd;if(_0x4251a1[_0x16dd85(0x402)]!==t[_0x16dd85(0x42d)][_0x16dd85(0x120)]||_0x10afa1!=null&&_0x10afa1[_0x16dd85(0x1ee)]||_0x10afa1!=null&&_0x10afa1[_0x16dd85(0x354)]||_0x4251a1['id']===n[_0x16dd85(0x16f)]['id'])return;let _0x4682f4=_0x4251a1[_0x16dd85(0x326)];if((_0x4682f4==null?void 0x0:_0x4682f4['unitId'])!==this[_0x16dd85(0x131)])return;let _0x51a9e7=_0x4251a1,_0x4ec543=this['_compressMutationService'][_0x16dd85(0x362)][_0x16dd85(0x328)](this[_0x16dd85(0x1ff)][_0x16dd85(0x362)][_0x16dd85(0x140)]()[_0x16dd85(0x1ea)])([_0x51a9e7],this[_0x16dd85(0x1eb)])||[_0x51a9e7];this[_0x16dd85(0x3cf)](_0x4ec543[0x0]);})),_0x276070;}};I=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x33c78d(0x403)])(t['LocaleService'])),v(0x6,(0x0,t[_0x33c78d(0x403)])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x33c78d(0x142)]),v(0x9,t['ILogService']),v(0xa,t[_0x33c78d(0x1fb)]),v(0xb,t[_0x33c78d(0x18f)]),v(0xc,(0x0,t[_0x33c78d(0x403)])(n[_0x33c78d(0x439)])),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xe,(0x0,t[_0x33c78d(0x2cd)])(S))],I);let Ge=class extends F{constructor(_0x1d46ec,_0x2b7443,_0x7cb9c9,_0xec568e,_0x388b1c,_0xf5c6c8,_0xcd23c2,_0x37b543,_0x4ca15e,_0x292687,_0xec9847,_0x3fc8b7,_0x52d1df,_0x321614){const _0x3f32b1=_0x33c78d;super(_0x1d46ec,_0x7cb9c9,_0x2b7443,_0xec568e,_0x388b1c,_0xf5c6c8,_0xcd23c2,_0x37b543,_0x4ca15e,_0x292687,_0xec9847,_0x3fc8b7,_0x52d1df,_0x321614),this[_0x3f32b1(0x131)]=_0x1d46ec,this['type']=_0x2b7443;}async[_0x33c78d(0x28e)](){const _0x5e2f3a=_0x33c78d;let _0x46d936=await super[_0x5e2f3a(0x28e)]();return this[_0x5e2f3a(0x193)](this[_0x5e2f3a(0x3c1)][_0x5e2f3a(0x226)]((_0xee01b4,_0x24bd0d)=>{const _0xe86a43=_0x5e2f3a;if(_0xee01b4[_0xe86a43(0x402)]!==t[_0xe86a43(0x42d)]['MUTATION']||_0x24bd0d!=null&&_0x24bd0d[_0xe86a43(0x1ee)]||_0x24bd0d!=null&&_0x24bd0d[_0xe86a43(0x354)])return;let _0x50b2e4=_0xee01b4[_0xe86a43(0x326)];if((_0x50b2e4==null?void 0x0:_0x50b2e4[_0xe86a43(0x3fd)])!==this[_0xe86a43(0x131)])return;let _0x486b75=_0xee01b4,_0x5f123d=this[_0xe86a43(0x1ff)][_0xe86a43(0x362)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0xe86a43(0x140)]()['COMPRESS_MUTATION_SEND'])([_0x486b75],this['_univerInstanceService'])||[_0x486b75];this[_0xe86a43(0x3cf)](_0x5f123d[0x0]);})),_0x46d936;}};Ge=y([v(0x3,(0x0,t['Inject'])(t['Injector'])),v(0x4,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x3ff)])),v(0x5,(0x0,t['Inject'])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(_)),v(0x8,t[_0x33c78d(0x142)]),v(0x9,t[_0x33c78d(0x3ed)]),v(0xa,t[_0x33c78d(0x1fb)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],Ge);let L=class extends F{constructor(_0x3441b0,_0x3125d3,_0x17ceaf,_0x5335c9,_0x3a72d9,_0x3906e3,_0x19bd72,_0x241da4,_0x56fd36,_0x581361,_0x28e000,_0x59a404,_0xc552,_0x5a772d,_0xb370b4){const _0x671eaa=_0x33c78d;super(_0x3441b0,_0x17ceaf,_0x3125d3,_0x5335c9,_0x3a72d9,_0x3906e3,_0x19bd72,_0x56fd36,_0x581361,_0x28e000,_0x59a404,_0xc552,_0x5a772d,_0xb370b4),this[_0x671eaa(0x131)]=_0x3441b0,this['type']=_0x3125d3,this[_0x671eaa(0x410)]=_0x241da4;}['_createHandler'](){const _0x431946=_0x33c78d;let _0xec397b=super[_0x431946(0x259)]();return _0xec397b[_0x431946(0x219)]=_0xa071e9=>this[_0x431946(0x410)][_0x431946(0x1db)](_0xa071e9),_0xec397b;}async[_0x33c78d(0x28e)](){const _0x598eb0=_0x33c78d;let _0x2bcea2=await super['_init']();return this[_0x598eb0(0x193)](this[_0x598eb0(0x3c1)]['onMutationExecutedForCollab']((_0x497c8e,_0x9afc9)=>{const _0x1506fd=_0x598eb0;if(_0x497c8e[_0x1506fd(0x402)]!==t[_0x1506fd(0x42d)][_0x1506fd(0x120)]||_0x9afc9!=null&&_0x9afc9[_0x1506fd(0x1ee)]||_0x9afc9!=null&&_0x9afc9[_0x1506fd(0x354)])return;let _0x565a40=_0x497c8e[_0x1506fd(0x326)];if((_0x565a40==null?void 0x0:_0x565a40['unitId'])!==this[_0x1506fd(0x131)])return;let _0x2f7766=_0x497c8e,_0x39c30d=this[_0x1506fd(0x1ff)][_0x1506fd(0x362)][_0x1506fd(0x328)](this['_compressMutationService'][_0x1506fd(0x362)][_0x1506fd(0x140)]()[_0x1506fd(0x1ea)])([_0x2f7766],this[_0x1506fd(0x1eb)])||[_0x2f7766];this[_0x1506fd(0x3cf)](_0x39c30d[0x0]);})),_0x2bcea2;}};L=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t['Injector'])),v(0x4,(0x0,t['Inject'])(e[_0x33c78d(0x3ff)])),v(0x5,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x35c)])),v(0x6,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(C)),v(0x8,(0x0,t[_0x33c78d(0x403)])(_)),v(0x9,t[_0x33c78d(0x142)]),v(0xa,t[_0x33c78d(0x3ed)]),v(0xb,t[_0x33c78d(0x1fb)]),v(0xc,t[_0x33c78d(0x18f)]),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xe,(0x0,t[_0x33c78d(0x2cd)])(S))],L);let R=class extends F{constructor(_0x37d8fa,_0x57073a,_0x1271e9,_0x330d9c,_0x3594c5,_0x4966fb,_0x405f70,_0x1b0cef,_0x38d273,_0x9d56e1,_0x21f6c1,_0x1c044c,_0x340dd2,_0x356434){const _0x551235=_0x33c78d;super(_0x37d8fa,_0x1271e9,_0x57073a,_0x330d9c,_0x3594c5,_0x4966fb,_0x405f70,_0x1b0cef,_0x38d273,_0x9d56e1,_0x21f6c1,_0x1c044c,_0x340dd2,_0x356434),this[_0x551235(0x131)]=_0x37d8fa,this['type']=_0x57073a;}async[_0x33c78d(0x28e)](){const _0x2c39ca=_0x33c78d;let _0x3beb97=await super[_0x2c39ca(0x28e)]();return this[_0x2c39ca(0x193)](this['_commandService'][_0x2c39ca(0x226)]((_0x2f950d,_0x55f310)=>{const _0x593081=_0x2c39ca;if(_0x2f950d[_0x593081(0x402)]!==t[_0x593081(0x42d)]['MUTATION']||_0x55f310!=null&&_0x55f310[_0x593081(0x1ee)]||_0x55f310!=null&&_0x55f310['onlyLocal'])return;let _0xd1221a=_0x2f950d[_0x593081(0x326)];if((_0xd1221a==null?void 0x0:_0xd1221a['unitId'])!==this[_0x593081(0x131)])return;let _0x503f78=_0x2f950d,_0x52f520=this[_0x593081(0x1ff)][_0x593081(0x362)][_0x593081(0x328)](this[_0x593081(0x1ff)]['interceptor']['getInterceptPoints']()[_0x593081(0x1ea)])([_0x503f78],this[_0x593081(0x1eb)])||[_0x503f78];this[_0x593081(0x3cf)](_0x52f520[0x0]);})),_0x3beb97;}};R=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x4,(0x0,t[_0x33c78d(0x403)])(e['CompressMutationService'])),v(0x5,(0x0,t['Inject'])(t[_0x33c78d(0x35c)])),v(0x6,(0x0,t['Inject'])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x33c78d(0x142)]),v(0x9,t[_0x33c78d(0x3ed)]),v(0xa,t['ICommandService']),v(0xb,t[_0x33c78d(0x18f)]),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],R);let z=class extends F{constructor(_0x2281c9,_0x280124,_0x17cecf,_0x3a0933,_0x56fd2c,_0xe5c339,_0x4a43cc,_0xbc70ed,_0xd2843,_0x4940aa,_0x3d9840,_0x23623b,_0x4ab3fb,_0xeb03d4){super(_0x2281c9,_0x17cecf,_0x280124,_0x3a0933,_0x56fd2c,_0xe5c339,_0x4a43cc,_0xbc70ed,_0xd2843,_0x4940aa,_0x3d9840,_0x23623b,_0x4ab3fb,_0xeb03d4),this['unitID']=_0x2281c9,this['type']=_0x280124;}async[_0x33c78d(0x28e)](){const _0x351204=_0x33c78d;let _0x182224=await super['_init']();return this[_0x351204(0x193)](this[_0x351204(0x3c1)][_0x351204(0x226)]((_0xce7f81,_0x1cd0f5)=>{const _0x5916d9=_0x351204;if(_0xce7f81[_0x5916d9(0x402)]!==t[_0x5916d9(0x42d)]['MUTATION']||_0x1cd0f5!=null&&_0x1cd0f5[_0x5916d9(0x1ee)]||_0x1cd0f5!=null&&_0x1cd0f5[_0x5916d9(0x354)])return;let _0x5ef5a6=_0xce7f81[_0x5916d9(0x326)];if((_0x5ef5a6==null?void 0x0:_0x5ef5a6[_0x5916d9(0x3fd)])!==this[_0x5916d9(0x131)])return;let _0x581515=_0xce7f81,_0x428ffc=this['_compressMutationService'][_0x5916d9(0x362)][_0x5916d9(0x328)](this['_compressMutationService'][_0x5916d9(0x362)][_0x5916d9(0x140)]()[_0x5916d9(0x1ea)])([_0x581515],this[_0x5916d9(0x1eb)])||[_0x581515];this['_onLocalMutation'](_0x428ffc[0x0]);})),_0x182224;}};z=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t['Injector'])),v(0x4,(0x0,t[_0x33c78d(0x403)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x35c)])),v(0x6,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(_)),v(0x8,t[_0x33c78d(0x142)]),v(0x9,t[_0x33c78d(0x3ed)]),v(0xa,t['ICommandService']),v(0xb,t[_0x33c78d(0x18f)]),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],z);let B=class extends F{constructor(_0x4f6ee8,_0x3e1d98,_0x292b70,_0x3fb188,_0x4798c2,_0x1f1481,_0x61c68b,_0x390f31,_0x5d3c8c,_0x164285,_0x517c9b,_0xb0ca94,_0x223cf5,_0x12d471){const _0xdb5d34=_0x33c78d;super(_0x4f6ee8,_0x292b70,_0x3e1d98,_0x3fb188,_0x4798c2,_0x1f1481,_0x61c68b,_0x390f31,_0x5d3c8c,_0x164285,_0x517c9b,_0xb0ca94,_0x223cf5,_0x12d471),this[_0xdb5d34(0x131)]=_0x4f6ee8,this[_0xdb5d34(0x402)]=_0x3e1d98;}async[_0x33c78d(0x28e)](){const _0x291bfd=_0x33c78d;let _0x46531c=await super[_0x291bfd(0x28e)]();return this['disposeWithMe'](this[_0x291bfd(0x3c1)][_0x291bfd(0x226)]((_0x5cad14,_0x164f27)=>{const _0x10b360=_0x291bfd;if(_0x5cad14[_0x10b360(0x402)]!==t[_0x10b360(0x42d)][_0x10b360(0x120)]||_0x164f27!=null&&_0x164f27[_0x10b360(0x1ee)]||_0x164f27!=null&&_0x164f27[_0x10b360(0x354)])return;let _0x3092b2=_0x5cad14['params'];if((_0x3092b2==null?void 0x0:_0x3092b2[_0x10b360(0x3fd)])!==this[_0x10b360(0x131)])return;let _0x3f2b55=_0x5cad14,_0x4accab=this[_0x10b360(0x1ff)][_0x10b360(0x362)][_0x10b360(0x328)](this['_compressMutationService']['interceptor'][_0x10b360(0x140)]()['COMPRESS_MUTATION_SEND'])([_0x3f2b55],this[_0x10b360(0x1eb)])||[_0x3f2b55];this[_0x10b360(0x3cf)](_0x4accab[0x0]);})),_0x46531c;}};B=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x4,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x3ff)])),v(0x5,(0x0,t[_0x33c78d(0x403)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x33c78d(0x3ed)]),v(0xa,t[_0x33c78d(0x1fb)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],B);const Ke=(0x0,t['createIdentifier'])(_0x33c78d(0x122));function qe(_0x216bdd){const _0x37df87=_0x33c78d;let _0x5b9c09=_0x216bdd['data'],_0x271234=JSON[_0x37df87(0x21d)](_0x5b9c09);switch(_0x271234[_0x37df87(0x274)]){case a[_0x37df87(0x243)]['HEARTBEAT']:case a[_0x37df87(0x243)][_0x37df87(0x13f)]:{let _0x41dd3d=_0x271234['infoRsp'];return{..._0x271234,'data':_0x41dd3d,'cmd':_0x271234[_0x37df87(0x274)]};}case a['CombCmd']['JOIN']:{let _0x2a4d93=_0x271234[_0x37df87(0x3ec)];return{..._0x271234,'data':_0x2a4d93,'cmd':_0x271234[_0x37df87(0x274)]};}case a[_0x37df87(0x243)][_0x37df87(0x19b)]:{let _0x232f72=_0x271234[_0x37df87(0x2ae)];switch(_0x232f72[_0x37df87(0x399)]){case e['CollaborationEvent'][_0x37df87(0x43f)]:var _0x3ac838;return{..._0x271234,'data':{..._0x232f72,'data':(_0x3ac838=_0x232f72[_0x37df87(0x371)])==null?void 0x0:_0x3ac838['cs']},'cmd':_0x271234['cmd']};case e['CollaborationEvent']['CHANGESET_ACK']:var _0x2f94c2;return{..._0x271234,'data':{..._0x232f72,'data':(_0x2f94c2=_0x232f72[_0x37df87(0x2a8)])==null?void 0x0:_0x2f94c2['cs']},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)][_0x37df87(0x28d)]:var _0x5cb018;return{..._0x271234,'data':{..._0x232f72,'data':(_0x5cb018=_0x232f72[_0x37df87(0x3d4)])==null?void 0x0:_0x5cb018['cs']},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)]['CHANGESET_REJ']:var _0x1cd1e7;return{..._0x271234,'data':{..._0x232f72,'data':(_0x1cd1e7=_0x232f72['csRejEvent'])==null?void 0x0:_0x1cd1e7['cs']},'cmd':_0x271234[_0x37df87(0x274)]};case e['CollaborationEvent'][_0x37df87(0x319)]:var _0x314cf8;return{..._0x271234,'data':{..._0x232f72,'data':(_0x314cf8=_0x232f72[_0x37df87(0x227)])==null?void 0x0:_0x314cf8['cs']},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)][_0x37df87(0x187)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x1c9)]},'cmd':_0x271234[_0x37df87(0x274)]};case e['CollaborationEvent'][_0x37df87(0x17c)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72['joinEvent']},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)]['USERS_LEAVE']:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x1f7)]},'cmd':_0x271234['cmd']};case e[_0x37df87(0x2e1)][_0x37df87(0x30c)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72['liveShareNewHost']},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)][_0x37df87(0x277)]:case e[_0x37df87(0x2e1)][_0x37df87(0x349)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72['liveShareOperation']},'cmd':_0x271234[_0x37df87(0x274)]};case e['CollaborationEvent'][_0x37df87(0x377)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x424)]},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)][_0x37df87(0x18a)]:return{..._0x271234,'data':_0x232f72,'cmd':_0x271234['cmd']};case e[_0x37df87(0x2e1)][_0x37df87(0x15f)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72['commentUpdateEvent']},'cmd':_0x271234['cmd']};case e[_0x37df87(0x2e1)][_0x37df87(0x3d6)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x394)]},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)][_0x37df87(0x16c)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x2f3)]},'cmd':_0x271234['cmd']};case e[_0x37df87(0x2e1)][_0x37df87(0x1f6)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x126)]},'cmd':_0x271234[_0x37df87(0x274)]};default:return _0x271234;}}default:return _0x271234;}}function Je(_0x3e288b){const _0x3ececf=_0x33c78d;switch(_0x3e288b[_0x3ececf(0x274)]){case a[_0x3ececf(0x243)][_0x3ececf(0x40b)]:case a[_0x3ececf(0x243)][_0x3ececf(0x13f)]:return JSON[_0x3ececf(0x200)]({'cmd':_0x3e288b['cmd'],'routeKey':_0x3e288b[_0x3ececf(0x165)]});case a['CombCmd']['INGEST']:{let _0x405225;switch(_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x399)]){case e[_0x3ececf(0x2e1)][_0x3ececf(0x187)]:_0x405225={'eventID':e[_0x3ececf(0x2e1)][_0x3ececf(0x187)],'updateCursorEvent':_0x3e288b[_0x3ececf(0x1a1)]['data']};break;case e[_0x3ececf(0x2e1)][_0x3ececf(0x2e2)]:_0x405225={'eventID':e['CollaborationEvent'][_0x3ececf(0x2e2)],'leaveEvent':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e[_0x3ececf(0x2e1)][_0x3ececf(0x17c)]:_0x405225={'eventID':e[_0x3ececf(0x2e1)]['USERS_ENTER'],'joinEvent':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e[_0x3ececf(0x2e1)][_0x3ececf(0x30c)]:_0x405225={'eventID':e[_0x3ececf(0x2e1)][_0x3ececf(0x30c)],'liveShareNewHost':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e[_0x3ececf(0x2e1)]['LIVESHARE_OPERATION']:_0x405225={'eventID':e[_0x3ececf(0x2e1)][_0x3ececf(0x349)],'liveShareOperation':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e['CollaborationEvent'][_0x3ececf(0x377)]:_0x405225={'eventID':e['CollaborationEvent'][_0x3ececf(0x377)],'liveShareTerminate':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e[_0x3ececf(0x2e1)][_0x3ececf(0x212)]:_0x405225={'eventID':e[_0x3ececf(0x2e1)][_0x3ececf(0x212)],'liveShareRequestHost':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e[_0x3ececf(0x2e1)][_0x3ececf(0x277)]:_0x405225={'eventID':e[_0x3ececf(0x2e1)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x405225={'eventID':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x399)]};}return JSON[_0x3ececf(0x200)]({'cmd':_0x3e288b[_0x3ececf(0x274)],'routeKey':_0x3e288b[_0x3ececf(0x165)],'collaMsg':_0x405225});}case a[_0x3ececf(0x243)][_0x3ececf(0x1c6)]:return JSON[_0x3ececf(0x200)]({'cmd':_0x3e288b[_0x3ececf(0x274)],'routeKey':_0x3e288b[_0x3ececf(0x165)],'joinReq':_0x3e288b[_0x3ececf(0x1a1)]});case a['CombCmd'][_0x3ececf(0x382)]:return JSON[_0x3ececf(0x200)]({'cmd':_0x3e288b[_0x3ececf(0x274)],'routeKey':_0x3e288b[_0x3ececf(0x165)],'leaveReq':_0x3e288b['data']});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const Ye=(0x0,t['createIdentifier'])(_0x33c78d(0x257));function Xe(_0x54a661,_0x3e185d,_0xd97045){const _0x18d6d6=_0x33c78d;return _0x54a661+'/'+_0x3e185d+_0x18d6d6(0x379)+_0xd97045+'/new_changes';}let Ze=class extends t[_0x33c78d(0x17e)]{constructor(_0x3a7570,_0x4a8c4c,_0x36a181,_0x1547db,_0xf8a211){const _0x98d338=_0x33c78d;super(),this['_injector']=_0x3a7570,this[_0x98d338(0x20d)]=_0x4a8c4c,this[_0x98d338(0x3d0)]=_0x36a181,this[_0x98d338(0x1fe)]=_0x1547db,this[_0x98d338(0x3b2)]=_0xf8a211;}[_0x33c78d(0x29c)](_0x53fb69){const _0x33c4c1=_0x33c78d;let _0x4c11d6=this['_injector'][_0x33c4c1(0x1d6)](l[_0x33c4c1(0x1c7)]);if(!_0x4c11d6)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x47ed52=_0x4c11d6['createSocket'](_0x53fb69);if(!_0x47ed52)throw Error(_0x33c4c1(0x3ca));let _0x51f858=new t[(_0x33c4c1(0x3cd))](),_0x1ba832=new i[(_0x33c4c1(0x2ca))]();_0x51f858[_0x33c4c1(0x2ff)](_0x47ed52[_0x33c4c1(0x247)]['subscribe'](_0x5e8a0c=>_0x1ba832[_0x33c4c1(0x2bd)](_0x5e8a0c))),_0x51f858[_0x33c4c1(0x2ff)]((0x0,t[_0x33c4c1(0x250)])(()=>_0x1ba832['complete']()));let _0x204892=new i['Subject']();_0x51f858[_0x33c4c1(0x2ff)](_0x47ed52[_0x33c4c1(0x25f)][_0x33c4c1(0x279)](_0x5001ec=>_0x204892[_0x33c4c1(0x2bd)](_0x5001ec))),_0x51f858[_0x33c4c1(0x2ff)]((0x0,t[_0x33c4c1(0x250)])(()=>_0x204892['complete']()));let _0x56c33e=new i[(_0x33c4c1(0x2ca))]();_0x51f858[_0x33c4c1(0x2ff)](_0x47ed52['message$'][_0x33c4c1(0x279)](_0x432781=>{let _0x2bcf8f=qe(_0x432781);_0x56c33e['next'](_0x2bcf8f);})),_0x51f858[_0x33c4c1(0x2ff)]((0x0,t[_0x33c4c1(0x250)])(()=>_0x56c33e[_0x33c4c1(0x218)]()));let _0x184d92,_0x1b47d5=()=>{const _0x35dd29=_0x33c4c1;_0x204892[_0x35dd29(0x2bd)](new Event(_0x35dd29(0x342))),_0x1ba832[_0x35dd29(0x2bd)](new Event('connection\x20error')),_0x184d92['close']();};return _0x184d92={'memberID':'','close$':_0x1ba832[_0x33c4c1(0x22d)](),'error$':_0x204892[_0x33c4c1(0x22d)](),'open$':_0x47ed52[_0x33c4c1(0x23e)],'message$':_0x56c33e[_0x33c4c1(0x22d)](),'send':_0x393a44=>{const _0x5e9a6f=_0x33c4c1;if(_0x393a44['cmd']===a['CombCmd'][_0x5e9a6f(0x3f5)]){if(_0x393a44['data'][_0x5e9a6f(0x399)]===e[_0x5e9a6f(0x2e1)][_0x5e9a6f(0x3a1)]){this[_0x5e9a6f(0x1e3)](_0x184d92,_0x393a44['data'])[_0x5e9a6f(0x330)](_0x370306=>{const _0x27c698=_0x5e9a6f;this[_0x27c698(0x1fe)][_0x27c698(0x39c)](_0x370306),_0x1b47d5();});return;}if(_0x393a44[_0x5e9a6f(0x1a1)]['eventID']===e[_0x5e9a6f(0x2e1)][_0x5e9a6f(0x26b)]){let _0x2a37ac=_0x393a44[_0x5e9a6f(0x1a1)];this[_0x5e9a6f(0x132)](_0x2a37ac)['then'](_0x14de15=>{const _0x40afd9=_0x5e9a6f;_0x56c33e[_0x40afd9(0x2bd)]({'cmd':a[_0x40afd9(0x243)][_0x40afd9(0x19b)],'code':a[_0x40afd9(0x2c4)]['OK'],'routeKey':_0x2a37ac[_0x40afd9(0x1a1)][_0x40afd9(0x131)],'routeType':'','data':{'eventID':e[_0x40afd9(0x2e1)][_0x40afd9(0x1ed)],'data':{'changesets':_0x14de15}}});})[_0x5e9a6f(0x330)](_0x4d087d=>{const _0x1cf531=_0x5e9a6f;this[_0x1cf531(0x1fe)][_0x1cf531(0x39c)](_0x4d087d),_0x1b47d5();});return;}}_0x47ed52[_0x5e9a6f(0x189)](Je(_0x393a44));},'close':()=>{const _0xea4c6e=_0x33c4c1;_0x47ed52['close'](),_0x51f858[_0xea4c6e(0x438)]();}},_0x184d92;}async['_submitChangeset'](_0x468514,_0x53a2b7){const _0x316bbf=_0x33c78d;var _0x6b1444;let {unitType:_0x41afc8,unitID:_0x302dbf,changeset:_0x10c9b1}=_0x53a2b7[_0x316bbf(0x1a1)],_0x3667e1={'unitID':_0x302dbf,'memberID':_0x468514[_0x316bbf(0x40c)],'type':_0x41afc8,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x10c9b1)},_0x289074=this['_configService'][_0x316bbf(0x307)](m),_0x5bf5b1=Xe((_0x6b1444=_0x289074==null?void 0x0:_0x289074[_0x316bbf(0x42b)])==null?_0x316bbf(0x278):_0x6b1444,_0x41afc8,_0x302dbf);try{await this[_0x316bbf(0x20d)][_0x316bbf(0x3be)](_0x5bf5b1,{'body':_0x3667e1});}catch(_0x53aad6){throw this[_0x316bbf(0x1fe)][_0x316bbf(0x39c)](_0x316bbf(0x427),_0x316bbf(0x153)),_0x53aad6;}}async['_fetchMissChangesets'](_0x105b78){const _0x3529df=_0x33c78d;let {unitID:_0x28b7bc,from:_0x39792a,to:_0xb63b08,unitType:_0x2745ea}=_0x105b78['data'];return(await this[_0x3529df(0x3b2)][_0x3529df(0x1a2)]({'metadata':void 0x0},{'unitID':_0x28b7bc,'type':_0x2745ea,'from':_0x39792a,'to':_0xb63b08}))[_0x3529df(0x22b)]['map'](_0x5b7bcf=>((_0x5b7bcf[_0x3529df(0x280)]===null||_0x5b7bcf[_0x3529df(0x280)]===void 0x0)&&(_0x5b7bcf['mutations']=[]),_0x5b7bcf));}};Ze=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x1,(0x0,t[_0x33c78d(0x403)])(l['HTTPService'])),v(0x2,t[_0x33c78d(0x2d4)]),v(0x3,t[_0x33c78d(0x3ed)]),v(0x4,e[_0x33c78d(0x432)])],Ze);const Qe=(0x0,t[_0x33c78d(0x431)])(_0x33c78d(0x3fc));function $e(_0xb8f8a3={}){const _0x13b99c=_0x33c78d;return _0xb8f8a3[_0x13b99c(0x3dc)]?{'resolveUnit':_0xb8f8a3[_0x13b99c(0x3dc)]}:{'resolveUnit':_0x217293=>({'target':{'unitId':_0x217293['unitId'],'unitType':_0x217293[_0x13b99c(0x2b2)]}})};}function et(_0x2ae7fc,_0x30a200,_0x3c083b){const _0x505fd6=_0x33c78d;var _0x3b1cdb;let _0x769a82=_0x3c083b[_0x505fd6(0x2a3)][_0x505fd6(0x41b)];if(_0x769a82!=null&&_0x769a82[_0x505fd6(0x208)]()==='')throw Error(_0x505fd6(0x1e0));if(!_0x3c083b[_0x505fd6(0x2a3)][_0x505fd6(0x3fd)])throw Error(_0x505fd6(0x309));return{'localUnitId':_0x2ae7fc,'unitType':_0x30a200,'target':{'endpoint':_0x769a82,'unitId':_0x3c083b[_0x505fd6(0x2a3)][_0x505fd6(0x3fd)],'unitType':(_0x3b1cdb=_0x3c083b[_0x505fd6(0x2a3)]['unitType'])==null?_0x30a200:_0x3b1cdb},'changeset':_0x3c083b[_0x505fd6(0x42f)]};}let V=class extends t[_0x33c78d(0x17e)]{constructor(_0x3f4f60,_0x36241b,_0x435257,_0x5e6f8e,_0x5786ca,_0x2abb85,_0x47b5de){const _0x367ac0=_0x33c78d;super(),this['_injector']=_0x3f4f60,this[_0x367ac0(0x1fe)]=_0x36241b,this[_0x367ac0(0x3d0)]=_0x435257,this[_0x367ac0(0x24d)]=_0x5e6f8e,this[_0x367ac0(0x223)]=_0x5786ca,this['_adapter']=_0x2abb85,this[_0x367ac0(0x23b)]=_0x47b5de,g(this,_0x367ac0(0x1cb),new Map()),g(this,_0x367ac0(0x37d),new Map()),g(this,_0x367ac0(0x2d0),new Map()),g(this,'_socketChannels',new Map()),g(this,_0x367ac0(0x3bd),this[_0x367ac0(0x3d2)](void 0x0)[_0x367ac0(0x3bd)][_0x367ac0(0x22d)]()),g(this,_0x367ac0(0x30d),new i[(_0x367ac0(0x264))](0x0)),g(this,'status$',this[_0x367ac0(0x30d)][_0x367ac0(0x22d)]()),this[_0x367ac0(0x317)]();}[_0x33c78d(0x317)](){const _0x2751e0=_0x33c78d;this[_0x2751e0(0x23b)]&&this[_0x2751e0(0x193)](this[_0x2751e0(0x23b)][_0x2751e0(0x1e2)][_0x2751e0(0x279)](_0x51a55a=>{const _0x39304a=_0x2751e0;_0x51a55a&&this['reconnect'](),_0x51a55a||this[_0x39304a(0x1c8)][_0x39304a(0x3f3)](_0x5e737f=>this['_onOffline'](_0x5e737f));}));}['dispose'](){const _0x305c8d=_0x33c78d;super['dispose'](),this['_socketChannels']['forEach'](_0x1e7d72=>{const _0x22a6d2=_0x1643;var _0x772564,_0x3518a4;(_0x772564=_0x1e7d72[_0x22a6d2(0x12e)])==null||_0x772564[_0x22a6d2(0x3ce)](),_0x1e7d72['socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](_0x1e7d72),this[_0x22a6d2(0x41d)](_0x1e7d72),this[_0x22a6d2(0x393)](_0x1e7d72),(_0x3518a4=_0x1e7d72[_0x22a6d2(0x3bd)][_0x22a6d2(0x384)]())==null||_0x3518a4[_0x22a6d2(0x408)](),_0x1e7d72[_0x22a6d2(0x3bd)][_0x22a6d2(0x218)]();}),this[_0x305c8d(0x1c8)][_0x305c8d(0x236)](),this[_0x305c8d(0x1cb)]['forEach'](_0x205ab3=>_0x205ab3[_0x305c8d(0x438)]()),this[_0x305c8d(0x1cb)][_0x305c8d(0x236)](),this[_0x305c8d(0x2d0)]['clear'](),this['_status$']['complete']();}async[_0x33c78d(0x1da)](_0x2e17cc,_0x35331b){const _0x415f2b=_0x33c78d;if(this['_sessions'][_0x415f2b(0x40e)](_0x2e17cc))return this[_0x415f2b(0x1cb)]['get'](_0x2e17cc);let _0x269803=this[_0x415f2b(0x37d)][_0x415f2b(0x1d6)](_0x2e17cc);if(_0x269803)return _0x269803;let _0x397cd1=this[_0x415f2b(0x345)](_0x2e17cc,_0x35331b);this[_0x415f2b(0x37d)][_0x415f2b(0x240)](_0x2e17cc,_0x397cd1);try{return await _0x397cd1;}finally{this['_pendingSessions'][_0x415f2b(0x2c7)](_0x2e17cc);}}async[_0x33c78d(0x345)](_0x465712,_0x45390f){const _0x5bef51=_0x33c78d;let _0x43571f=await this[_0x5bef51(0x207)](_0x465712,_0x45390f),_0x18d79b=this[_0x5bef51(0x3d2)](_0x43571f['target'][_0x5bef51(0x41b)]);this[_0x5bef51(0x1dc)](_0x18d79b);let _0x1a0043=this[_0x5bef51(0x25e)]['createInstance'](x,_0x43571f,_0x18d79b[_0x5bef51(0x3bd)]['asObservable']());return this['_sessions'][_0x5bef51(0x240)](_0x465712,_0x1a0043),this[_0x5bef51(0x2d0)]['set'](_0x465712,_0x18d79b['endpointKey']),_0x1a0043;}[_0x33c78d(0x420)](_0x304a33){const _0x48af84=_0x33c78d;let _0x2647ca=this[_0x48af84(0x1cb)][_0x48af84(0x1d6)](_0x304a33),_0x29e285=this[_0x48af84(0x2d0)]['get'](_0x304a33);if(_0x2647ca&&(this[_0x48af84(0x1cb)][_0x48af84(0x2c7)](_0x304a33),this['_sessionChannels'][_0x48af84(0x2c7)](_0x304a33),_0x2647ca['close']()),_0x29e285&&!this[_0x48af84(0x32c)](_0x29e285)){var _0x3e3556;let _0x1a75d8=this[_0x48af84(0x1c8)][_0x48af84(0x1d6)](_0x29e285);_0x1a75d8==null||(_0x3e3556=_0x1a75d8[_0x48af84(0x3bd)][_0x48af84(0x384)]())==null||_0x3e3556[_0x48af84(0x408)]();}}[_0x33c78d(0x3ab)](){const _0x5f4b0f=_0x33c78d;(this['_socketChannels']['size']?[...this[_0x5f4b0f(0x1c8)]['values']()]:[this[_0x5f4b0f(0x3d2)](void 0x0)])[_0x5f4b0f(0x3f3)](_0x5712c=>{const _0x2eafd7=_0x5f4b0f;_0x5712c['retryCount']=0x0,this[_0x2eafd7(0x1e7)](_0x5712c),this['_tryReconnect'](_0x5712c);});}['_clearRetryConnectingTimer'](_0x570e0e){const _0x43af4b=_0x33c78d;_0x570e0e[_0x43af4b(0x3b6)]!=null&&(clearTimeout(_0x570e0e['retryConnectingTimer']),_0x570e0e[_0x43af4b(0x3b6)]=null);}async[_0x33c78d(0x41f)](_0x4262d3){const _0x15c744=_0x33c78d;var _0x49e679,_0x5b8cbd;let _0x1dafc6=this['_configService'][_0x15c744(0x307)](m),_0x55dc19=(_0x49e679=(_0x5b8cbd=_0x4262d3[_0x15c744(0x41b)])==null?_0x1dafc6==null?void 0x0:_0x1dafc6[_0x15c744(0x348)]:_0x5b8cbd)==null?te:_0x49e679,_0x2f1243=await this['_socketService'][_0x15c744(0x136)](_0x55dc19);return _0x4262d3[_0x15c744(0x3a9)]=_0x2f1243,_0x2f1243;}async[_0x33c78d(0x1dc)](_0x524a9f){const _0x551e2f=_0x33c78d;try{var _0x2c5a4a,_0x11f65f;let _0x62f970=(_0x2c5a4a=(_0x11f65f=_0x524a9f['socket$'][_0x551e2f(0x384)]())==null?_0x524a9f[_0x551e2f(0x3a9)]:_0x11f65f)==null?await this[_0x551e2f(0x41f)](_0x524a9f):_0x2c5a4a;if(_0x62f970){var _0x39ea81;let _0x1825c9=_0x62f970[_0x551e2f(0x189)];_0x62f970[_0x551e2f(0x189)]=_0x265d02=>(_0x265d02[_0x551e2f(0x274)]!==a[_0x551e2f(0x243)]['LEAVE']&&this[_0x551e2f(0x3a4)](_0x524a9f),_0x1825c9['apply'](_0x62f970,[_0x265d02])),(_0x39ea81=_0x524a9f[_0x551e2f(0x12e)])==null||_0x39ea81['unsubscribe'](),_0x524a9f['socketMessageSubscription']=null,_0x524a9f[_0x551e2f(0x12e)]=_0x62f970[_0x551e2f(0x2f4)]['subscribe'](_0x2c5ec1=>this['_onMessage'](_0x524a9f,_0x62f970,_0x2c5ec1)),_0x62f970[_0x551e2f(0x25f)]['pipe']((0x0,s[_0x551e2f(0x39a)])(0x1))[_0x551e2f(0x279)](_0x4095bd=>this['_logService'][_0x551e2f(0x39c)]('[CollaborationSessionService]:\x20socket\x20error',_0x4095bd)),_0x62f970[_0x551e2f(0x23e)]['pipe']((0x0,s['take'])(0x1))[_0x551e2f(0x279)](()=>{const _0x307ea5=_0x551e2f;this[_0x307ea5(0x288)](_0x524a9f,_0x62f970);}),_0x62f970[_0x551e2f(0x247)][_0x551e2f(0x253)]((0x0,s[_0x551e2f(0x39a)])(0x1))[_0x551e2f(0x279)](_0x2c25ae=>{const _0x50f0ee=_0x551e2f;this['_logService'][_0x50f0ee(0x1f9)]('[CollaborationSessionService]',_0x50f0ee(0x37f),_0x2c25ae),this['_onConnectionFailed'](_0x524a9f);});}}catch(_0x5a76ef){this[_0x551e2f(0x1fe)][_0x551e2f(0x39c)](_0x5a76ef),this[_0x551e2f(0x335)](_0x524a9f);}}[_0x33c78d(0x288)](_0x27a8e4,_0x146d50){const _0x150cc8=_0x33c78d;this['_logService']['debug']('[CollaborationSessionService]',_0x150cc8(0x32b)),_0x146d50['send']({'cmd':a['CombCmd']['HELLO']}),this[_0x150cc8(0x3a4)](_0x27a8e4);}['_onOffline'](_0x4d70cd){const _0x4d2aa6=_0x33c78d;_0x4d70cd[_0x4d2aa6(0x355)]=!0x1,_0x4d70cd[_0x4d2aa6(0x3a9)]=null,this['_status$'][_0x4d2aa6(0x2bd)](0x2),_0x4d70cd[_0x4d2aa6(0x3bd)][_0x4d2aa6(0x2bd)](null),this[_0x4d2aa6(0x41d)](_0x4d70cd),this[_0x4d2aa6(0x393)](_0x4d70cd);}[_0x33c78d(0x335)](_0x2c11a1){const _0x15b8a8=_0x33c78d;var _0x1190d2;this[_0x15b8a8(0x41e)](_0x2c11a1),this[_0x15b8a8(0x32c)](_0x2c11a1[_0x15b8a8(0x204)])&&(_0x2c11a1['retryCount']<((_0x1190d2=this[_0x15b8a8(0x3d0)][_0x15b8a8(0x307)](_0x15b8a8(0x24b)))==null?0x3:_0x1190d2)?(this['_collaborationUIEventService'][_0x15b8a8(0x26f)]({'id':_0x15b8a8(0x33c)}),this[_0x15b8a8(0x43d)](_0x2c11a1)):this[_0x15b8a8(0x223)]['emitEvent']({'id':_0x15b8a8(0x2e3)}));}[_0x33c78d(0x43d)](_0x262ae8){const _0x5c9750=_0x33c78d;var _0x1b3d67;let _0x2d6384=_0x262ae8[_0x5c9750(0x366)],_0x2d74e5=this['_configService'][_0x5c9750(0x307)](m),_0x1ba1bd=_0x2d6384===0x0?0x0:((_0x1b3d67=_0x2d74e5==null?void 0x0:_0x2d74e5[_0x5c9750(0x1e1)])==null?0x4e20:_0x1b3d67)*0x2**_0x2d6384;_0x262ae8[_0x5c9750(0x3b6)]=setTimeout(()=>{const _0x42ab7b=_0x5c9750;clearTimeout(_0x262ae8['retryConnectingTimer']),_0x262ae8[_0x42ab7b(0x3b6)]=null,this[_0x42ab7b(0x1dc)](_0x262ae8);},_0x1ba1bd),_0x262ae8[_0x5c9750(0x366)]+=0x1;}async[_0x33c78d(0x207)](_0xdc9b57,_0x2421f8){const _0x311927=_0x33c78d;return et(_0xdc9b57,_0x2421f8,await this[_0x311927(0x35d)]['resolveUnit']({'unitId':_0xdc9b57,'unitType':_0x2421f8}));}[_0x33c78d(0x2c9)](_0x516b69,_0x932d1,_0x101b7a){const _0x19b2d3=_0x33c78d;let {cmd:_0x2341ab}=_0x101b7a;_0x2341ab===a['CombCmd'][_0x19b2d3(0x13f)]&&!_0x516b69[_0x19b2d3(0x355)]&&(_0x932d1[_0x19b2d3(0x40c)]=_0x101b7a[_0x19b2d3(0x1a1)][_0x19b2d3(0x40c)],_0x516b69[_0x19b2d3(0x3bd)]['next'](_0x932d1),this[_0x19b2d3(0x30d)][_0x19b2d3(0x2bd)](0x3),_0x516b69['socketReady']=!0x0,_0x516b69[_0x19b2d3(0x3a9)]=null),_0x2341ab===a[_0x19b2d3(0x243)]['HEARTBEAT']&&this[_0x19b2d3(0x41d)](_0x516b69),this[_0x19b2d3(0x3a4)](_0x516b69);}[_0x33c78d(0x32c)](_0x18dc62){const _0x21ace6=_0x33c78d;return[...this[_0x21ace6(0x2d0)][_0x21ace6(0x341)]()][_0x21ace6(0x418)](_0x1353c0=>_0x1353c0===_0x18dc62);}[_0x33c78d(0x3d2)](_0x30f9b7){const _0x12d078=_0x33c78d;let _0xb6e28d=_0x30f9b7==null?'':_0x30f9b7,_0xbfe279=this[_0x12d078(0x1c8)]['get'](_0xb6e28d);if(_0xbfe279)return _0xbfe279;let _0x3cb026={'endpointKey':_0xb6e28d,'endpoint':_0x30f9b7,'socket$':new i[(_0x12d078(0x264))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels']['set'](_0xb6e28d,_0x3cb026),_0x3cb026;}[_0x33c78d(0x3a4)](_0x3531c5){const _0x4d0924=_0x33c78d;var _0x4831a4;this[_0x4d0924(0x393)](_0x3531c5),_0x3531c5['sendHeartbeatTimer']=setTimeout(()=>this[_0x4d0924(0x180)](_0x3531c5),(_0x4831a4=this[_0x4d0924(0x3d0)]['getConfig'](_0x4d0924(0x43c)))==null?0x7530:_0x4831a4);}[_0x33c78d(0x180)](_0x26dfd5){const _0x36cbd0=_0x33c78d;_0x26dfd5[_0x36cbd0(0x3bd)]['getValue']()[_0x36cbd0(0x189)]({'cmd':a[_0x36cbd0(0x243)][_0x36cbd0(0x40b)]}),this['_waitForHeartbeatResponse'](_0x26dfd5);}['_waitForHeartbeatResponse'](_0x19eb13){const _0x5a6413=_0x33c78d;var _0x2604f1;_0x19eb13['timeoutTimer']=setTimeout(()=>this[_0x5a6413(0x335)](_0x19eb13),(_0x2604f1=this[_0x5a6413(0x3d0)][_0x5a6413(0x307)](_0x5a6413(0x2f0)))==null?ne:_0x2604f1);}[_0x33c78d(0x393)](_0xaeb912){const _0x366080=_0x33c78d;_0xaeb912[_0x366080(0x1d5)]!=null&&(clearTimeout(_0xaeb912[_0x366080(0x1d5)]),_0xaeb912[_0x366080(0x1d5)]=null);}[_0x33c78d(0x41d)](_0x27845f){const _0x4bd53c=_0x33c78d;_0x27845f['timeoutTimer']!=null&&(clearTimeout(_0x27845f[_0x4bd53c(0x2f1)]),_0x27845f[_0x4bd53c(0x2f1)]=null);}};V=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x1,t[_0x33c78d(0x3ed)]),v(0x2,t['IConfigService']),v(0x3,Ye),v(0x4,(0x0,t[_0x33c78d(0x403)])(_)),v(0x5,Qe),v(0x6,(0x0,t[_0x33c78d(0x2cd)])(Ke))],V);let H=class extends t['RxDisposable']{constructor(_0x373ab9,_0xb85e5c,_0x3d5c1d,_0x2d702b){const _0x4ed073=_0x33c78d;var _0x4279c9;super(),this['_injector']=_0x373ab9,this[_0x4ed073(0x21c)]=_0xb85e5c,this[_0x4ed073(0x3d0)]=_0x3d5c1d,this['_univerInstanceService']=_0x2d702b,g(this,_0x4ed073(0x210),new Map()),g(this,_0x4ed073(0x2cb),new i[(_0x4ed073(0x2ca))]()),g(this,_0x4ed073(0x211),this['_entityInit$'][_0x4ed073(0x22d)]()),((_0x4279c9=this[_0x4ed073(0x3d0)][_0x4ed073(0x307)]('collaboration-client.config'))==null?void 0x0:_0x4279c9[_0x4ed073(0x26e)])!==!0x1&&this[_0x4ed073(0x28e)]();}[_0x33c78d(0x438)](){const _0x2eebdc=_0x33c78d;super['dispose'](),this[_0x2eebdc(0x210)]['forEach'](_0x46c838=>_0x46c838['dispose']()),this[_0x2eebdc(0x210)][_0x2eebdc(0x236)]();}[_0x33c78d(0x32a)](_0x31a090){const _0x17a64f=_0x33c78d;var _0x57f62;return(_0x57f62=this[_0x17a64f(0x210)][_0x17a64f(0x1d6)](_0x31a090))==null?null:_0x57f62;}[_0x33c78d(0x34b)](_0x1238bd){const _0x98e7c3=_0x33c78d;let _0x4b8689=this[_0x98e7c3(0x32a)](_0x1238bd);return _0x4b8689?(0x0,i['of'])(_0x4b8689):this['_entityInit$'][_0x98e7c3(0x253)]((0x0,s[_0x98e7c3(0x143)])(_0x3ef8d8=>_0x3ef8d8[_0x98e7c3(0x131)]===_0x1238bd));}[_0x33c78d(0x2b5)](_0x4fddea){const _0x12dad7=_0x33c78d;return(0x0,i[_0x12dad7(0x1ae)])(this[_0x12dad7(0x34b)](_0x4fddea)[_0x12dad7(0x253)]((0x0,s[_0x12dad7(0x2c2)])(()=>void 0x0)));}[_0x33c78d(0x28e)](){const _0x5dd7c1=_0x33c78d;this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x24e)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x303)])['pipe']((0x0,i[_0x5dd7c1(0x353)])(this[_0x5dd7c1(0x12c)]),(0x0,s[_0x5dd7c1(0x34f)])(0x10))[_0x5dd7c1(0x279)](async _0x466f11=>{const _0xd629ec=_0x5dd7c1;let _0x433d25=_0x466f11[_0xd629ec(0x29b)][_0xd629ec(0x428)](),_0x25c815=await this[_0xd629ec(0x32e)](_0x433d25,t['UniverInstanceType']['UNIVER_SHEET']);this[_0xd629ec(0x210)][_0xd629ec(0x240)](_0x433d25,_0x25c815);}),this[_0x5dd7c1(0x1eb)]['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x5dd7c1(0x137)])[_0x5dd7c1(0x253)]((0x0,i[_0x5dd7c1(0x353)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x5dd7c1(0x253)]((0x0,s[_0x5dd7c1(0x143)])(_0x1928ba=>!_0x1928ba[_0x5dd7c1(0x29b)]['getUnitId']()[_0x5dd7c1(0x37c)]('__')))['subscribe'](async _0xd05140=>{const _0x1e9dab=_0x5dd7c1;let _0x5a1e15=_0xd05140[_0x1e9dab(0x29b)][_0x1e9dab(0x428)](),_0x213bc7=await this[_0x1e9dab(0x32e)](_0x5a1e15,t[_0x1e9dab(0x3ad)][_0x1e9dab(0x137)]);this[_0x1e9dab(0x210)][_0x1e9dab(0x240)](_0x5a1e15,_0x213bc7);}),this['_univerInstanceService'][_0x5dd7c1(0x24e)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x3a3)])[_0x5dd7c1(0x253)]((0x0,i[_0x5dd7c1(0x353)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x5dd7c1(0x279)](async _0x3c6486=>{const _0xb6a6d=_0x5dd7c1;let _0x28cfd5=_0x3c6486[_0xb6a6d(0x29b)]['getUnitId'](),_0x5ab15f=await this[_0xb6a6d(0x32e)](_0x28cfd5,t[_0xb6a6d(0x3ad)]['UNIVER_SLIDE']);this[_0xb6a6d(0x210)][_0xb6a6d(0x240)](_0x28cfd5,_0x5ab15f);}),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x24e)](t['UniverInstanceType'][_0x5dd7c1(0x34d)])[_0x5dd7c1(0x253)]((0x0,i[_0x5dd7c1(0x353)])(this[_0x5dd7c1(0x12c)]),(0x0,s['delay'])(0x10))[_0x5dd7c1(0x279)](async _0x256971=>{const _0x5513e8=_0x5dd7c1;let _0x1789c7=_0x256971['unit'][_0x5513e8(0x428)](),_0x50239c=await this[_0x5513e8(0x32e)](_0x1789c7,t[_0x5513e8(0x3ad)][_0x5513e8(0x34d)]);this[_0x5513e8(0x210)][_0x5513e8(0x240)](_0x1789c7,_0x50239c);}),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x24e)](t[_0x5dd7c1(0x3ad)]['UNIVER_BASE'])[_0x5dd7c1(0x253)]((0x0,i[_0x5dd7c1(0x353)])(this[_0x5dd7c1(0x12c)]),(0x0,s['delay'])(0x10))[_0x5dd7c1(0x279)](async _0x3029a0=>{const _0x5d53cb=_0x5dd7c1;let _0x3f5af5=_0x3029a0[_0x5d53cb(0x29b)]['getUnitId'](),_0x1eb4b8=await this[_0x5d53cb(0x32e)](_0x3f5af5,t['UniverInstanceType'][_0x5d53cb(0x262)]);this[_0x5d53cb(0x210)][_0x5d53cb(0x240)](_0x3f5af5,_0x1eb4b8);}),this[_0x5dd7c1(0x1eb)]['getTypeOfUnitAdded$'](t[_0x5dd7c1(0x3ad)]['UNIVER_PDF'])[_0x5dd7c1(0x253)]((0x0,i[_0x5dd7c1(0x353)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x5dd7c1(0x279)](async _0x186f8f=>{const _0x525b55=_0x5dd7c1;let _0x4bc3e3=_0x186f8f[_0x525b55(0x29b)][_0x525b55(0x428)](),_0x37a23e=await this[_0x525b55(0x32e)](_0x4bc3e3,t[_0x525b55(0x3ad)][_0x525b55(0x26c)]);this[_0x525b55(0x210)]['set'](_0x4bc3e3,_0x37a23e);}),(0x0,i[_0x5dd7c1(0x161)])(this[_0x5dd7c1(0x1eb)]['getTypeOfUnitDisposed$'](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x303)]),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x367)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x137)]),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x367)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x3a3)]),this['_univerInstanceService'][_0x5dd7c1(0x367)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x34d)]),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x367)](t['UniverInstanceType'][_0x5dd7c1(0x262)]),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x367)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x26c)]))[_0x5dd7c1(0x253)]((0x0,i['takeUntil'])(this[_0x5dd7c1(0x12c)]))['subscribe'](_0x7fb092=>{const _0x49b7e7=_0x5dd7c1;let _0x181112=_0x7fb092[_0x49b7e7(0x428)](),_0x1162ad=this[_0x49b7e7(0x210)][_0x49b7e7(0x1d6)](_0x181112);_0x1162ad&&(_0x1162ad[_0x49b7e7(0x438)](),this[_0x49b7e7(0x210)][_0x49b7e7(0x2c7)](_0x181112));});}async[_0x33c78d(0x32e)](_0x4b9f97,_0x5c410f){const _0x1ae079=_0x33c78d;let _0x40ac58=await this[_0x1ae079(0x21c)][_0x1ae079(0x1da)](_0x4b9f97),_0x456ffd=this[_0x1ae079(0x25e)][_0x1ae079(0x139)](this[_0x1ae079(0x21b)](_0x5c410f),_0x4b9f97,_0x5c410f,_0x40ac58);return await _0x456ffd['init'](),this[_0x1ae079(0x2cb)][_0x1ae079(0x2bd)](_0x456ffd),_0x456ffd;}[_0x33c78d(0x21b)](_0x30201d){const _0xb09802=_0x33c78d;switch(_0x30201d){case t[_0xb09802(0x3ad)]['UNIVER_DOC']:return I;case t['UniverInstanceType']['UNIVER_SHEET']:return L;case t[_0xb09802(0x3ad)]['UNIVER_SLIDE']:return R;case t[_0xb09802(0x3ad)]['UNIVER_BOARD']:return z;case t['UniverInstanceType'][_0xb09802(0x262)]:return Ge;case t[_0xb09802(0x3ad)][_0xb09802(0x26c)]:return B;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x30201d);}}};H=y([v(0x0,(0x0,t['Inject'])(t[_0x33c78d(0x246)])),v(0x1,(0x0,t[_0x33c78d(0x403)])(V)),v(0x2,t[_0x33c78d(0x2d4)]),v(0x3,t[_0x33c78d(0x142)])],H);var tt=_0x33c78d(0x3d8),nt=_0x33c78d(0x194);let rt=class extends t[_0x33c78d(0x17e)]{constructor(_0x8edbdd,_0x353632){super(),this['_univerInstanceService']=_0x8edbdd,this['_configService']=_0x353632,this['_init']();}[_0x33c78d(0x28e)](){const _0x111fa0=_0x33c78d;this[_0x111fa0(0x193)](this[_0x111fa0(0x1eb)][_0x111fa0(0x34a)]['subscribe'](()=>{const _0x247f34=_0x111fa0;var _0x51f07b;let _0xa21778=this[_0x247f34(0x1eb)][_0x247f34(0x3ef)](),_0x5891b2=(_0x51f07b=this[_0x247f34(0x3d0)][_0x247f34(0x307)]('DEFAULT_FILE_NAME'))==null?'Univer':_0x51f07b;_0xa21778 instanceof t[_0x247f34(0x3f7)]&&(_0x5891b2=_0xa21778[_0x247f34(0x249)]),document[_0x247f34(0x321)]=_0x5891b2;}));}};rt=y([v(0x0,t[_0x33c78d(0x142)]),v(0x1,t[_0x33c78d(0x2d4)])],rt);const it=(0x0,t['createIdentifier'])(_0x33c78d(0x2d2));let U=class{constructor(_0x3626f4,_0x1c6aef,_0x53045b){const _0x40e139=_0x33c78d;this[_0x40e139(0x20d)]=_0x3626f4,this[_0x40e139(0x3d0)]=_0x1c6aef,this['_univerInstanceService']=_0x53045b;}[_0x33c78d(0x1d0)](){var _0x2045d1;return(_0x2045d1=this['_getConfig']()['attachment'])==null?{}:_0x2045d1;}async['saveAttachment'](_0x24f004){const _0x18c362=_0x33c78d;let _0x37d14d=this[_0x18c362(0x1d0)]();if(at(_0x24f004,_0x37d14d),_0x37d14d[_0x18c362(0x275)])return _0x37d14d[_0x18c362(0x275)](_0x24f004);let _0x186a31=await this[_0x18c362(0x3af)](_0x24f004);return{'id':_0x186a31,'name':_0x24f004['name'],'mimeType':_0x24f004[_0x18c362(0x402)],'size':_0x24f004[_0x18c362(0x1df)],'sourceType':t[_0x18c362(0x412)]['UUID'],'source':_0x186a31};}async[_0x33c78d(0x3c4)](_0x4ff050,_0xf7385a){const _0x20ae5f=_0x33c78d;if(_0xf7385a!==t['ImageSourceType'][_0x20ae5f(0x407)])return _0x4ff050;let _0x5f3b69=(await this['_httpService'][_0x20ae5f(0x1d6)](this['_getSignURL']()[_0x20ae5f(0x437)](_0x20ae5f(0x158),_0x4ff050)))[_0x20ae5f(0x216)];if(_0x5f3b69[_0x20ae5f(0x39c)]&&_0x5f3b69[_0x20ae5f(0x39c)][_0x20ae5f(0x340)]!==a[_0x20ae5f(0x415)]['OK'])throw _0x5f3b69[_0x20ae5f(0x39c)];if(!_0x5f3b69[_0x20ae5f(0x13c)])throw Error(_0x20ae5f(0x217));return(0x0,t[_0x20ae5f(0x363)])(_0x5f3b69[_0x20ae5f(0x13c)],this[_0x20ae5f(0x3b3)]());}async[_0x33c78d(0x3af)](_0x5ac2e9){const _0x5022a7=_0x33c78d;let _0x1c1b8e=this[_0x5022a7(0x1eb)][_0x5022a7(0x3ef)](),_0x19f512=_0x1c1b8e==null?void 0x0:_0x1c1b8e[_0x5022a7(0x428)]();if(!_0x19f512)throw Error(_0x5022a7(0x332));let _0x25f548=new FormData();_0x25f548[_0x5022a7(0x2b6)](_0x5022a7(0x1e9),_0x5ac2e9);let _0x5a9037=this[_0x5022a7(0x3b0)]()+_0x5022a7(0x30b)+_0x5ac2e9[_0x5022a7(0x1df)]['toString']()+_0x5022a7(0x3e0)+a[_0x5022a7(0x197)][_0x5022a7(0x1ce)]+_0x5022a7(0x376)+encodeURIComponent(_0x19f512),_0x3db97b=(await this[_0x5022a7(0x20d)][_0x5022a7(0x3be)](_0x5a9037,{'body':_0x25f548}))[_0x5022a7(0x216)][_0x5022a7(0x144)];if(typeof _0x3db97b!=_0x5022a7(0x32f)||!_0x3db97b)throw Error(_0x5022a7(0x433));return _0x3db97b;}[_0x33c78d(0x3b0)](){const _0x329e71=_0x33c78d;var _0x289260;return(_0x289260=this[_0x329e71(0x409)]()['uploadFileServerUrl'])==null?_0x329e71(0x22a):_0x289260;}[_0x33c78d(0x417)](){const _0x148f93=_0x33c78d;var _0x9dcf31;return(_0x9dcf31=this[_0x148f93(0x409)]()[_0x148f93(0x1e5)])==null?'/universer-api/file/{fileID}/sign-url':_0x9dcf31;}[_0x33c78d(0x3b3)](){const _0x5780f4=_0x33c78d;var _0x168463;let _0x71f3e3=this[_0x5780f4(0x409)]();return _0x71f3e3['downloadEndpointUrl']?_0x71f3e3[_0x5780f4(0x13e)]:typeof location<'u'?location['origin']:(_0x168463=_0x71f3e3[_0x5780f4(0x185)])==null?'':_0x168463;}[_0x33c78d(0x409)](){const _0x475059=_0x33c78d;var _0x267e73;return(_0x267e73=this[_0x475059(0x3d0)][_0x475059(0x307)]('collaboration-client.config'))==null?{}:_0x267e73;}};U=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(l[_0x33c78d(0x135)])),v(0x1,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x2d4)])),v(0x2,(0x0,t[_0x33c78d(0x403)])(t['IUniverInstanceService']))],U);function at(_0x526c2b,_0x2b7561){const _0x3e18fe=_0x33c78d;var _0xe3e623;if(_0x2b7561[_0x3e18fe(0x1f5)]!=null&&_0x526c2b[_0x3e18fe(0x1df)]>_0x2b7561[_0x3e18fe(0x1f5)])throw Error(_0x3e18fe(0x15e));if((_0xe3e623=_0x2b7561['accept'])!=null&&_0xe3e623[_0x3e18fe(0x3e4)]&&!_0x2b7561[_0x3e18fe(0x14f)][_0x3e18fe(0x418)](_0x5f50b9=>_0x526c2b[_0x3e18fe(0x402)]===_0x5f50b9||_0x526c2b[_0x3e18fe(0x249)][_0x3e18fe(0x2d1)](_0x5f50b9)||_0x5f50b9[_0x3e18fe(0x2d1)]('/*')&&_0x526c2b[_0x3e18fe(0x402)][_0x3e18fe(0x37c)](_0x5f50b9[_0x3e18fe(0x37a)](0x0,-0x1))))throw Error(_0x3e18fe(0x3c8));}let W=class{constructor(_0x861e32,_0x45355f,_0x17aa40){const _0x145159=_0x33c78d;this[_0x145159(0x3d0)]=_0x861e32,this[_0x145159(0x20d)]=_0x45355f,this[_0x145159(0x2f5)]=_0x17aa40,this[_0x145159(0x1d4)]();}['init'](){const _0x4a03b5=_0x33c78d;this[_0x4a03b5(0x20d)][_0x4a03b5(0x2e7)]({'priority':0x1,'interceptor':(_0x473da6,_0x3046ff)=>_0x3046ff(_0x473da6)[_0x4a03b5(0x253)]((0x0,i['concatMap'])(async _0xf4e474=>{const _0x3b6b42=_0x4a03b5;let _0x498516=_0xf4e474;if(_0x498516[_0x3b6b42(0x29e)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x3b6b42(0x12f)](this[_0x3b6b42(0x2f5)]['t'](_0x3b6b42(0x24c)))){let _0x4e4ad6=window['encodeURIComponent'](window['location'][_0x3b6b42(0x375)]);window[_0x3b6b42(0x2a9)][_0x3b6b42(0x375)]=this[_0x3b6b42(0x2fc)]()+_0x3b6b42(0x35f)+_0x4e4ad6;}}return _0x498516;}))});}['_getLoginPath'](){const _0x21e425=_0x33c78d;var _0x578ee1;let _0x404b5f=this[_0x21e425(0x3d0)][_0x21e425(0x307)](m);return(_0x578ee1=_0x404b5f==null?void 0x0:_0x404b5f[_0x21e425(0x27e)])==null?_0x21e425(0x33e):_0x578ee1;}};W=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t[_0x33c78d(0x403)])(l[_0x33c78d(0x135)])),v(0x2,(0x0,t[_0x33c78d(0x403)])(t['LocaleService']))],W);let G=class extends t[_0x33c78d(0x17e)]{constructor(_0x3c7bb8,_0x4aa82e){const _0x48ca41=_0x33c78d;super(),this[_0x48ca41(0x1b2)]=_0x3c7bb8,this[_0x48ca41(0x3d0)]=_0x4aa82e,g(this,'_cfgEnableObjInherit',!0x1),this[_0x48ca41(0x391)]();}[_0x33c78d(0x391)](){const _0xdd83dd=_0x33c78d;let _0x474899=this;this[_0xdd83dd(0x193)](this[_0xdd83dd(0x1b2)][_0xdd83dd(0x2e7)]({'priority':0x3e7,'interceptor':(0x0,l['MergeInterceptorFactory'])({'isMatch'(_0x4a4d58){const _0x2553d4=_0xdd83dd;var _0x4944ca;if(_0x4a4d58[_0x2553d4(0x361)]===_0x2553d4(0x31b)&&(_0x4944ca=_0x4a4d58[_0x2553d4(0x34c)])!=null&&_0x4944ca[_0x2553d4(0x216)]){let {objectID:_0x341a88,objectType:_0x36f068}=_0x4a4d58['requestParams'][_0x2553d4(0x216)]||{};if(!_0x341a88||_0x36f068===void 0x0)return!0x1;let _0x25f328=_0x474899['_getAPIPrefixPath']()+'/'+_0x36f068+'/object/'+_0x341a88+_0x2553d4(0x2d5);if(_0x4a4d58[_0x2553d4(0x13c)]===_0x25f328)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x354121){const _0x3bab8d=_0xdd83dd;var _0x40eaea;return(_0x40eaea=_0x354121[_0x3bab8d(0x34c)])==null?void 0x0:_0x40eaea[_0x3bab8d(0x216)];},'mergeParamsToRequest'(_0x175db8,_0x3ceb1e){const _0x20907d=_0xdd83dd;let _0x3be721=_0x474899[_0x20907d(0x2b4)]()+_0x20907d(0x426),_0x29d58a=_0x175db8['reduce']((_0xc7b3f9,_0x56bc28)=>{const _0x18e27d=_0x20907d;let {unitID:_0x479908,objectID:_0x3b6693,objectType:_0x4a8e44,actions:_0xe58f61}=_0x56bc28;return _0xc7b3f9[_0x479908]||(_0xc7b3f9[_0x479908]={}),_0xc7b3f9[_0x479908][_0x3b6693]||(_0xc7b3f9[_0x479908][_0x3b6693]={'objectID':_0x3b6693,'objectType':_0x4a8e44,'actions':[]}),_0xc7b3f9[_0x479908][_0x3b6693]['actions'][_0x18e27d(0x33a)](..._0xe58f61),_0xc7b3f9;},{}),_0x203faa=[];for(let _0x1da33d in _0x29d58a)for(let _0x10e66a in _0x29d58a[_0x1da33d]){let {actions:_0x16af1f,objectType:_0x2849b2}=_0x29d58a[_0x1da33d][_0x10e66a],_0x253776=[...new Set(_0x16af1f)];_0x203faa['push']({'unitID':_0x1da33d,'objectID':_0x10e66a,'objectType':_0x2849b2,'actions':_0x253776});}return new l['HTTPRequest']('POST',_0x3be721,{'headers':_0x3ceb1e[_0x20907d(0x40f)],'withCredentials':_0x3ceb1e['withCredentials'],'responseType':_0x3ceb1e[_0x20907d(0x2eb)],'body':{'requests':_0x203faa}});}},{'distributeResult'(_0x20a6eb,_0x3c187e){const _0x13c885=_0xdd83dd;let {objectActions:_0x432105}=_0x20a6eb;return _0x3c187e[_0x13c885(0x2c2)](_0x436559=>{const _0x38d647=_0x13c885;let {unitID:_0x26bb48,objectID:_0x5b91ab,actions:_0x6e8e93}=_0x436559,_0xe1ed64=_0x432105[_0x38d647(0x2aa)](_0x2e44c0=>_0x2e44c0[_0x38d647(0x131)]===_0x26bb48&&_0x2e44c0[_0x38d647(0x383)]===_0x5b91ab);return{'config':_0x436559,'result':{'actions':_0x6e8e93[_0x38d647(0x2c2)](_0x3a650c=>_0xe1ed64==null?void 0x0:_0xe1ed64[_0x38d647(0x24a)][_0x38d647(0x2aa)](_0x94d6ef=>_0x94d6ef[_0x38d647(0x3c6)]===_0x3a650c))[_0x38d647(0x143)](_0x43734e=>!!_0x43734e),'error':_0x20a6eb[_0x38d647(0x39c)]}};});}})}));}[_0x33c78d(0x2b4)](){const _0x474b19=_0x33c78d;var _0xee0175;let _0x257cdf=this[_0x474b19(0x3d0)][_0x474b19(0x307)](m);return(_0xee0175=_0x257cdf==null?void 0x0:_0x257cdf[_0x474b19(0x300)])==null?'/universer-api/authz':_0xee0175;}async[_0x33c78d(0x39b)](_0x128f11){const _0x5004d7=_0x33c78d;let _0xb53d04=this[_0x5004d7(0x2b4)]()+'/'+_0x128f11[_0x5004d7(0x2ea)]+_0x5004d7(0x2c1);return(await this[_0x5004d7(0x1b2)]['post'](_0xb53d04,{'body':_0x128f11}))[_0x5004d7(0x216)][_0x5004d7(0x383)]||'';}async['list'](_0x344abe){const _0x49ef6f=_0x33c78d;let _0x2c1cb3=this[_0x49ef6f(0x2b4)]()+'/-/object/list';return(await this[_0x49ef6f(0x1b2)][_0x49ef6f(0x3be)](_0x2c1cb3,{'body':_0x344abe}))['body'][_0x49ef6f(0x350)];}async[_0x33c78d(0x3b1)](_0x488b16){const _0xb13561=_0x33c78d;var _0x1d8984;let _0xd361f2=this[_0xb13561(0x2b4)]()+'/'+_0x488b16[_0xb13561(0x2ea)]+'/object/'+_0x488b16['objectID'],_0x11f494=await this[_0xb13561(0x1b2)]['put'](_0xd361f2,{'body':_0x488b16});if((_0x11f494==null||(_0x1d8984=_0x11f494[_0xb13561(0x216)])==null||(_0x1d8984=_0x1d8984[_0xb13561(0x39c)])==null?void 0x0:_0x1d8984[_0xb13561(0x340)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x33c78d(0x215)](_0x23ba27){const _0x39e8bf=_0x33c78d;let _0x1ae243=this[_0x39e8bf(0x2b4)]()+'/'+_0x23ba27[_0x39e8bf(0x2ea)]+_0x39e8bf(0x41c)+_0x23ba27[_0x39e8bf(0x383)]+_0x39e8bf(0x2d5);return(await this[_0x39e8bf(0x1b2)][_0x39e8bf(0x3be)](_0x1ae243,{'body':_0x23ba27}))[_0x39e8bf(0x216)][_0x39e8bf(0x24a)];}async[_0x33c78d(0x17d)](_0xf09096){const _0x3f696b=_0x33c78d;let _0x3d4b8a=this[_0x3f696b(0x2b4)]()+_0x3f696b(0x426);return(await this[_0x3f696b(0x1b2)][_0x3f696b(0x3be)](_0x3d4b8a,{'body':{'requests':_0xf09096}}))[_0x3f696b(0x216)]['objectActions'];}async[_0x33c78d(0x2ac)](_0x3fb6a5){const _0x3b997f=_0x33c78d;let _0x1eb5ff=this[_0x3b997f(0x2b4)]()+'/'+_0x3fb6a5['objectType']+_0x3b997f(0x373),_0x295456=await this[_0x3b997f(0x1b2)][_0x3b997f(0x3be)](_0x1eb5ff,{'body':_0x3fb6a5});return{'roles':_0x295456[_0x3b997f(0x216)][_0x3b997f(0x1dd)],'actions':_0x295456['body'][_0x3b997f(0x24a)]};}async[_0x33c78d(0x2d8)](_0x4d60d8){const _0x42e1ad=_0x33c78d;let _0x9b947e=this['_getAPIPrefixPath']()+_0x42e1ad(0x1e4);await this[_0x42e1ad(0x1b2)][_0x42e1ad(0x2c7)](_0x9b947e,{'params':{'collaboratorID':_0x4d60d8[_0x42e1ad(0x35e)],'objectID':_0x4d60d8[_0x42e1ad(0x383)],'unitID':_0x4d60d8[_0x42e1ad(0x131)]}});}async[_0x33c78d(0x162)](_0x13a128){const _0x274223=_0x33c78d;let _0x32b82c=this['_getAPIPrefixPath']()+_0x274223(0x1e4);await this[_0x274223(0x1b2)][_0x274223(0x260)](_0x32b82c,{'body':_0x13a128});}async[_0x33c78d(0x296)](_0x1dba0a){const _0x28c5bd=_0x33c78d;let _0x4d3c68=this[_0x28c5bd(0x2b4)]()+_0x28c5bd(0x1e4);await this['_HTTPService'][_0x28c5bd(0x3be)](_0x4d3c68,{'body':_0x1dba0a});}async[_0x33c78d(0x205)](_0x333039){const _0x3d0b9d=_0x33c78d;var _0x296085;let _0x3aac6d=this[_0x3d0b9d(0x2b4)]()+_0x3d0b9d(0x1e4),_0xc26025=await this[_0x3d0b9d(0x1b2)][_0x3d0b9d(0x1d6)](_0x3aac6d,{'params':{'objectID':_0x333039[_0x3d0b9d(0x383)],'unitID':_0x333039['unitID']}});return this['setCfgEnableObjInherit']((_0x296085=_0xc26025[_0x3d0b9d(0x216)][_0x3d0b9d(0x2b7)])!=null&&_0x296085),_0xc26025[_0x3d0b9d(0x216)][_0x3d0b9d(0x1d1)];}async[_0x33c78d(0x3c5)](_0x5940ad){const _0x538d09=_0x33c78d;let _0x92098=this[_0x538d09(0x2b4)]()+'/collaborator';await this[_0x538d09(0x1b2)][_0x538d09(0x25c)](_0x92098,{'body':_0x5940ad});}[_0x33c78d(0x322)](_0x3b6fc5){this['_cfgEnableObjInherit']=_0x3b6fc5;}[_0x33c78d(0x40d)](){const _0x3940f8=_0x33c78d;return this[_0x3940f8(0x39e)];}};G=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(l['HTTPService'])),v(0x1,(0x0,t['Inject'])(t['IConfigService']))],G);function ot(_0x222a1d){const _0x195e24=_0x33c78d;let _0x55b6f8=atob(_0x222a1d),_0x511270=new Uint8Array(_0x55b6f8[_0x195e24(0x3e4)]);for(let _0x17bd19=0x0;_0x17bd19<_0x55b6f8[_0x195e24(0x3e4)];_0x17bd19++)_0x511270[_0x17bd19]=_0x55b6f8['charCodeAt'](_0x17bd19);return _0x511270;}function st(_0x49c35d){const _0x43a750=_0x33c78d;let _0x260934='';for(let _0x2661bf=0x0;_0x2661bf<_0x49c35d[_0x43a750(0x3e4)];_0x2661bf++)_0x260934+=String[_0x43a750(0x1d9)](_0x49c35d[_0x2661bf]);return btoa(_0x260934);}function ct(_0x6ca817,_0x321470){const _0x4f224f=_0x33c78d;let _0x2744c4=ot(_0x321470),_0x285aaf=(0x0,f['randomBytes'])(0x10);return st((0x0,f[_0x4f224f(0x333)])(_0x285aaf,(0x0,d[_0x4f224f(0x237)])(_0x2744c4,_0x285aaf)['encrypt']((0x0,f[_0x4f224f(0x36f)])(_0x6ca817))));}function lt(){const _0x1731ac=_0x33c78d;let _0x31526c=(0x0,u[_0x1731ac(0x314)])()['__Key__'];if(typeof window<'u'&&window[_0x1731ac(0x2a9)]!==void 0x0&&_0x31526c){let _0x23ed3c={'time':Math['floor'](Date[_0x1731ac(0x3da)]()/0x3e8),'domain':location[_0x1731ac(0x1b4)]};return ct(JSON[_0x1731ac(0x200)](_0x23ed3c),_0x31526c);}}let K=class{constructor(_0x3134d2){const _0x52b38e=_0x33c78d;this[_0x52b38e(0x20d)]=_0x3134d2,this['_initRequestHeader']();}[_0x33c78d(0x1a6)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x4b5822,_0x18005d)=>{const _0x4add00=_0x1643;let _0x109fe5=lt();return _0x109fe5&&_0x4b5822['headers'][_0x4add00(0x240)](_0x4add00(0x157),_0x109fe5),_0x18005d(_0x4b5822);}});}};K=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(l['HTTPService']))],K);let q=class extends t[_0x33c78d(0x1cf)]{constructor(_0x579e5a,_0x954cc2,_0x416606){const _0x306fb4=_0x33c78d;super(),this[_0x306fb4(0x1fe)]=_0x579e5a,this[_0x306fb4(0x30a)]=_0x954cc2,this[_0x306fb4(0x1bf)]=_0x416606,g(this,_0x306fb4(0x171),new i[(_0x306fb4(0x264))](null)),g(this,'_unitLoaded$',new i[(_0x306fb4(0x2ca))]()),g(this,'unitInfo$',this[_0x306fb4(0x171)]['asObservable']()),g(this,_0x306fb4(0x199),this[_0x306fb4(0x1f4)][_0x306fb4(0x22d)]());}[_0x33c78d(0x438)](){const _0x3a1e9d=_0x33c78d;super[_0x3a1e9d(0x438)](),this['_unitLoaded$'][_0x3a1e9d(0x218)](),this['_unitInfo$'][_0x3a1e9d(0x218)]();}async[_0x33c78d(0x3c2)](_0x4627a5,_0x232c2c,_0x3ee1f0,_0x3cdbf6){const _0x1e7a8c=_0x33c78d;this[_0x1e7a8c(0x171)][_0x1e7a8c(0x2bd)]({'unitId':_0x4627a5,'type':_0x232c2c,'subUnitId':_0x3cdbf6});let _0xfbe322=null;switch(_0x232c2c){case t['UniverInstanceType'][_0x1e7a8c(0x303)]:_0xfbe322=await this[_0x1e7a8c(0x30a)]['loadSheet'](_0x4627a5,_0x3ee1f0,void 0x0,{'initialSubUnitId':_0x3cdbf6});break;case t['UniverInstanceType'][_0x1e7a8c(0x137)]:_0xfbe322=await this[_0x1e7a8c(0x30a)][_0x1e7a8c(0x344)](_0x4627a5,_0x3ee1f0);break;case t[_0x1e7a8c(0x3ad)][_0x1e7a8c(0x3a3)]:_0xfbe322=await this['_snapshotService'][_0x1e7a8c(0x302)](_0x4627a5,_0x3ee1f0);break;case t[_0x1e7a8c(0x3ad)][_0x1e7a8c(0x34d)]:_0xfbe322=await this['_snapshotService'][_0x1e7a8c(0x225)](_0x4627a5,_0x3ee1f0);break;case t[_0x1e7a8c(0x3ad)]['UNIVER_BASE']:_0xfbe322=await this[_0x1e7a8c(0x30a)]['loadBase'](_0x4627a5,_0x3ee1f0);break;case t[_0x1e7a8c(0x3ad)][_0x1e7a8c(0x26c)]:_0xfbe322=await this[_0x1e7a8c(0x30a)]['loadPdf'](_0x4627a5,_0x3ee1f0);break;default:this['_logService'][_0x1e7a8c(0x39c)](_0x1e7a8c(0x3b7),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0xfbe322&&this['_unitLoaded$'][_0x1e7a8c(0x2bd)](_0xfbe322),_0xfbe322;}async[_0x33c78d(0x38e)](_0x5d731f,_0x4d7e91,_0x4a6d27){const _0x42325e=_0x33c78d;var _0x5b19fd;this[_0x42325e(0x171)]['next']({'unitId':_0x5d731f,'type':_0x4d7e91,'subUnitId':_0x4a6d27});let _0x13d328=0x0,_0x16c4b3=await((_0x5b19fd=this[_0x42325e(0x1bf)])==null?void 0x0:_0x5b19fd[_0x42325e(0x1be)](_0x5d731f));return _0x16c4b3&&(_0x16c4b3[_0x42325e(0x27c)]||_0x16c4b3[_0x42325e(0x280)][_0x42325e(0x3e4)]!==0x0)&&(_0x13d328=_0x16c4b3['rev']),_0x13d328===0x0&&this[_0x42325e(0x1fe)][_0x42325e(0x1f9)](_0x42325e(0x3b7),_0x42325e(0x182)),this[_0x42325e(0x3c2)](_0x5d731f,_0x4d7e91,_0x13d328,_0x4a6d27);}};q=y([v(0x0,t['ILogService']),v(0x1,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x145)])),v(0x2,(0x0,t[_0x33c78d(0x2cd)])(S))],q);let J=class{constructor(_0x571127,_0x1555e3,_0x3928b5){const _0x8b9ea=_0x33c78d;this[_0x8b9ea(0x20d)]=_0x571127,this['_configService']=_0x1555e3,this[_0x8b9ea(0x1eb)]=_0x3928b5,g(this,_0x8b9ea(0x33b),0x0),g(this,_0x8b9ea(0x160),new i[(_0x8b9ea(0x2ca))]()),g(this,_0x8b9ea(0x26a),this[_0x8b9ea(0x160)]),g(this,'_imageSourceCache',new Map());}['setWaitCount'](_0x2701fe){const _0x3e8dc2=_0x33c78d;this[_0x3e8dc2(0x33b)]=_0x2701fe,this[_0x3e8dc2(0x160)][_0x3e8dc2(0x2bd)](_0x2701fe);}[_0x33c78d(0x233)](_0x256ce7,_0x3d21de){const _0x52920c=_0x33c78d;if(_0x3d21de===t[_0x52920c(0x412)]['BASE64']){let _0x392cc0=new Image();return _0x392cc0[_0x52920c(0x163)]=_0x256ce7,_0x392cc0;}return this['_imageSourceCache']['get'](_0x256ce7);}[_0x33c78d(0x1a9)](_0x45e68d,_0x1fadf7,_0x3570e7){const _0x4b6cb5=_0x33c78d;_0x1fadf7!==t[_0x4b6cb5(0x412)][_0x4b6cb5(0x3fe)]&&_0x3570e7!=null&&this['_imageSourceCache']['set'](_0x45e68d,_0x3570e7);}async[_0x33c78d(0x404)](_0xff54f6){const _0x282a68=_0x33c78d;try{let _0x165d33=this['_replaceFileID'](this[_0x282a68(0x417)](),''+_0xff54f6),_0x54ff0b=(await this[_0x282a68(0x20d)]['get'](_0x165d33))[_0x282a68(0x216)];if(_0x54ff0b[_0x282a68(0x39c)]&&_0x54ff0b['error']['code']===a[_0x282a68(0x415)]['OK']){let _0x42d3c0=(0x0,t[_0x282a68(0x363)])(_0x54ff0b[_0x282a68(0x13c)],this['_getDownloadEndpointURL']());return Promise[_0x282a68(0x3e8)](_0x42d3c0);}return Promise[_0x282a68(0x221)](_0x54ff0b['error']);}catch(_0x17c1ec){return Promise[_0x282a68(0x221)](_0x17c1ec);}}async['saveImage'](_0xe4331b){const _0x2a8c24=_0x33c78d;let _0x367884='';if(!p[_0x2a8c24(0x3d1)][_0x2a8c24(0x271)](_0xe4331b[_0x2a8c24(0x402)]))return this['_decreaseWaiting'](),Promise[_0x2a8c24(0x221)](Error(t[_0x2a8c24(0x24f)][_0x2a8c24(0x220)]));if(_0xe4331b['size']>(0x0,p[_0x2a8c24(0x388)])())return this[_0x2a8c24(0x1bd)](),Promise['reject'](Error(t['ImageUploadStatusType'][_0x2a8c24(0x14c)]));try{let _0x2ebfc9=new FormData();_0x2ebfc9['append'](_0x2a8c24(0x1e9),_0xe4331b);let _0x567333=this[_0x2a8c24(0x1eb)][_0x2a8c24(0x3ef)](),_0x584b83=_0x567333==null?void 0x0:_0x567333[_0x2a8c24(0x428)]();if(!_0x584b83)throw Error(_0x2a8c24(0x334));let _0x359fa0=this['_getUploadFileURL']()+'?size='+_0xe4331b[_0x2a8c24(0x1df)][_0x2a8c24(0x1e6)]()+_0x2a8c24(0x3e0)+a[_0x2a8c24(0x197)][_0x2a8c24(0x1ce)]+_0x2a8c24(0x376)+encodeURIComponent(_0x584b83),_0x45c9d4={'body':_0x2ebfc9},_0x537f38=(await this[_0x2a8c24(0x20d)][_0x2a8c24(0x3be)](_0x359fa0,_0x45c9d4))[_0x2a8c24(0x216)];if(typeof _0x537f38[_0x2a8c24(0x144)]!=_0x2a8c24(0x32f))return this[_0x2a8c24(0x1bd)](),Promise['reject'](Error(t[_0x2a8c24(0x24f)][_0x2a8c24(0x2b0)]));_0x367884=_0x537f38[_0x2a8c24(0x144)];}catch{return this['_decreaseWaiting'](),Promise[_0x2a8c24(0x221)](Error(t[_0x2a8c24(0x24f)][_0x2a8c24(0x2b0)]));}return new Promise((_0x236e88,_0xf35457)=>{const _0x15d005=_0x2a8c24;let _0x2bd0f1=new FileReader();_0x2bd0f1[_0x15d005(0x15d)](_0xe4331b),_0x2bd0f1['onload']=_0x333dac=>{const _0x57b06c=_0x15d005;var _0x392791;let _0x15c5e8=(_0x392791=_0x333dac[_0x57b06c(0x2a3)])==null?void 0x0:_0x392791[_0x57b06c(0x283)];if(_0x15c5e8==null){this[_0x57b06c(0x1bd)](),_0xf35457(Error(t[_0x57b06c(0x24f)][_0x57b06c(0x2b0)]));return;}_0x236e88({'imageId':(0x0,t['generateRandomId'])(0x6),'imageSourceType':t['ImageSourceType'][_0x57b06c(0x407)],'source':_0x367884,'base64Cache':_0x15c5e8,'status':t['ImageUploadStatusType'][_0x57b06c(0x31c)]}),this[_0x57b06c(0x1bd)]();};});}[_0x33c78d(0x3b0)](){const _0x11a395=_0x33c78d;var _0xf087c6;let _0x654fea=this[_0x11a395(0x3d0)][_0x11a395(0x307)](m);return(_0xf087c6=_0x654fea==null?void 0x0:_0x654fea[_0x11a395(0x185)])==null?'/universer-api/stream/file/upload':_0xf087c6;}[_0x33c78d(0x417)](){const _0x567385=_0x33c78d;var _0x11b9dd;let _0x1d2413=this[_0x567385(0x3d0)][_0x567385(0x307)](m);return(_0x11b9dd=_0x1d2413==null?void 0x0:_0x1d2413['signUrlServerUrl'])==null?'/universer-api/file/{fileID}/sign-url':_0x11b9dd;}[_0x33c78d(0x3b3)](){const _0x51547f=_0x33c78d;var _0xf31f4f;let _0xe10826=this['_configService'][_0x51547f(0x307)](m);return(_0xf31f4f=_0xe10826==null?void 0x0:_0xe10826['downloadEndpointUrl'])==null?location[_0x51547f(0x364)]:_0xf31f4f;}['_replaceFileID'](_0x3f487c,_0x4334a1){const _0x22fa2d=_0x33c78d;return _0x3f487c[_0x22fa2d(0x437)](_0x22fa2d(0x158),_0x4334a1);}[_0x33c78d(0x1bd)](){const _0xd0723f=_0x33c78d;--this['_waitCount'],this['_change$'][_0xd0723f(0x2bd)](this[_0xd0723f(0x33b)]);}};J=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(l[_0x33c78d(0x135)])),v(0x1,t[_0x33c78d(0x2d4)]),v(0x2,(0x0,t['Inject'])(t[_0x33c78d(0x142)]))],J);let Y=class{constructor(_0x4e81d6,_0x4dee2e){const _0x2e4891=_0x33c78d;this[_0x2e4891(0x3d0)]=_0x4e81d6,this['_HTTPService']=_0x4dee2e;}[_0x33c78d(0x2b4)](){const _0x56ec34=_0x33c78d;var _0x3ada06;let _0x5a29bd=this[_0x56ec34(0x3d0)]['getConfig'](m);return(_0x3ada06=_0x5a29bd==null?void 0x0:_0x5a29bd['authzUrl'])==null?_0x56ec34(0x234):_0x3ada06;}async[_0x33c78d(0x213)](_0x2a25f6){const _0x24fd2f=_0x33c78d;let _0x5755ff=this[_0x24fd2f(0x2b4)]()+_0x24fd2f(0x1e4);return{'list':[{'title':_0x24fd2f(0x299),'mentions':(await this['_HTTPService']['get'](_0x5755ff,{'params':{'objectID':_0x2a25f6[_0x24fd2f(0x3fd)],'unitID':_0x2a25f6[_0x24fd2f(0x3fd)]}}))[_0x24fd2f(0x216)][_0x24fd2f(0x1d1)][_0x24fd2f(0x2c2)](_0x241e89=>({'objectId':_0x241e89['id'],'name':_0x241e89['subject'][_0x24fd2f(0x249)],'metadata':{'icon':_0x241e89[_0x24fd2f(0x148)][_0x24fd2f(0x414)]},'label':_0x241e89[_0x24fd2f(0x148)]['name'],'objectType':t[_0x24fd2f(0x42c)]['PERSON']})),'metadata':{},'type':t[_0x24fd2f(0x42c)][_0x24fd2f(0x27b)]}]};}};Y=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x2d4)])),v(0x1,(0x0,t[_0x33c78d(0x403)])(l[_0x33c78d(0x135)]))],Y);let X=class extends t[_0x33c78d(0x1cf)]{constructor(_0x31b0c6,_0x2db68b,_0x24a4c,_0x13adbb,_0x1cd9f4){const _0x49320b=_0x33c78d;super(),this[_0x49320b(0x25e)]=_0x31b0c6,this[_0x49320b(0x1eb)]=_0x2db68b,this[_0x49320b(0x276)]=_0x24a4c,this[_0x49320b(0x435)]=_0x13adbb,this[_0x49320b(0x223)]=_0x1cd9f4,this[_0x49320b(0x36e)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x17843b=_0x33c78d;let _0x4a8f20=async _0x1745fa=>{const _0x915a5d=_0x1643;(await this[_0x915a5d(0x435)][_0x915a5d(0x1da)](_0x1745fa))[_0x915a5d(0x32d)][_0x915a5d(0x253)]((0x0,s[_0x915a5d(0x143)])(_0x349675=>_0x349675[_0x915a5d(0x399)]===e['CollaborationEvent']['SHOULD_CLOSE_CONN']),(0x0,s['takeUntil'])(this[_0x915a5d(0x12c)]))[_0x915a5d(0x279)](_0x37d794=>{const _0x1563cb=_0x915a5d;let {reason:_0x39a8e3}=_0x37d794[_0x1563cb(0x1a1)];this[_0x1563cb(0x223)][_0x1563cb(0x26f)]({'id':'CLOSE_ROOM','data':_0x39a8e3}),this['_permissionService']['updatePermissionPoint'](new r['WorkbookEditablePermission'](_0x1745fa)['id'],!0x1),this[_0x1563cb(0x435)][_0x1563cb(0x420)](_0x1745fa);});};(0x0,i['merge'])(this[_0x17843b(0x1eb)][_0x17843b(0x24e)](t['UniverInstanceType']['UNIVER_SHEET']),this[_0x17843b(0x1eb)]['getTypeOfUnitAdded$'](t[_0x17843b(0x3ad)][_0x17843b(0x137)]),this[_0x17843b(0x1eb)]['getTypeOfUnitAdded$'](t[_0x17843b(0x3ad)][_0x17843b(0x34d)]),this['_univerInstanceService'][_0x17843b(0x24e)](t[_0x17843b(0x3ad)][_0x17843b(0x262)]))[_0x17843b(0x253)]((0x0,s[_0x17843b(0x2c2)])(_0x5c2226=>_0x5c2226[_0x17843b(0x29b)][_0x17843b(0x428)]()),(0x0,s['filter'])(_0x1fd397=>!(0x0,t[_0x17843b(0x1b6)])(_0x1fd397)),(0x0,s['takeUntil'])(this[_0x17843b(0x12c)]))[_0x17843b(0x279)](_0x18613f=>{_0x4a8f20(_0x18613f);});}[_0x33c78d(0x36e)](){const _0x409858=_0x33c78d;let _0x459fb3=async _0x5f2130=>{const _0x417d0f=_0x1643;let _0x282a85=await this[_0x417d0f(0x435)]['requireSession'](_0x5f2130),_0x188b89=this['_injector'][_0x417d0f(0x1d6)](r['SheetPermissionInitController']);_0x282a85['event$'][_0x417d0f(0x253)]((0x0,s['filter'])(_0x5e7218=>_0x5e7218[_0x417d0f(0x399)]===e[_0x417d0f(0x2e1)][_0x417d0f(0x3d6)]),(0x0,s[_0x417d0f(0x353)])(this[_0x417d0f(0x12c)]))['subscribe'](_0x3e5d7e=>{const _0x21ab49=_0x417d0f;let {objectId:_0x4c3938}=_0x3e5d7e[_0x21ab49(0x1a1)];_0x4c3938===_0x5f2130?_0x188b89[_0x21ab49(0x3aa)](_0x5f2130):_0x188b89[_0x21ab49(0x3ae)](_0x5f2130,_0x4c3938);});};(0x0,i[_0x409858(0x161)])(this['_univerInstanceService'][_0x409858(0x24e)](t[_0x409858(0x3ad)][_0x409858(0x303)]))['pipe']((0x0,s[_0x409858(0x2c2)])(_0x193e85=>_0x193e85[_0x409858(0x29b)][_0x409858(0x428)]()),(0x0,s[_0x409858(0x143)])(_0x3f8ebc=>!(0x0,t['isInternalEditorID'])(_0x3f8ebc)),(0x0,s['takeUntil'])(this[_0x409858(0x12c)]))[_0x409858(0x279)](_0x52ebd5=>{_0x459fb3(_0x52ebd5);});}};X=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x1,t[_0x33c78d(0x142)]),v(0x2,t[_0x33c78d(0x18f)]),v(0x3,(0x0,t[_0x33c78d(0x403)])(V)),v(0x4,(0x0,t[_0x33c78d(0x403)])(_))],X);let Z=class{constructor(_0x4ccc1d,_0x3d71fa){const _0x5d35e9=_0x33c78d;this[_0x5d35e9(0x3d0)]=_0x4ccc1d,this['_httpService']=_0x3d71fa;}async['getUnitOnRev'](_0x5d8ed0,_0x31138b){const _0x2afb80=_0x33c78d;var _0x465750;let {unitID:_0xa08bf3,type:_0x43ea58,revision:_0x5de963=0x0}=_0x31138b,_0xb878ed=this['getSnapshotAPIPath']()+'/'+_0x43ea58+_0x2afb80(0x379)+_0xa08bf3+_0x2afb80(0x150)+_0x5de963,_0x37df09=(await this[_0x2afb80(0x20d)]['get'](_0xb878ed))[_0x2afb80(0x216)],_0x2123bc=(_0x465750=_0x37df09[_0x2afb80(0x41a)])==null?void 0x0:_0x465750[_0x2afb80(0x235)];if(_0x2123bc){let _0x1fd023=_0x2123bc==null?void 0x0:_0x2123bc[_0x2afb80(0x14d)];_0x2123bc[_0x2afb80(0x14d)]=e[_0x2afb80(0x18e)][_0x2afb80(0x36a)]((0x0,e[_0x2afb80(0x1d7)])(_0x1fd023)),Object[_0x2afb80(0x2de)](_0x2123bc[_0x2afb80(0x3bc)])['forEach'](([,_0x2b2143])=>{const _0x2788a0=_0x2afb80;let _0x288183=_0x2b2143[_0x2788a0(0x14d)];_0x2b2143[_0x2788a0(0x14d)]=e[_0x2788a0(0x18e)][_0x2788a0(0x36a)]((0x0,e['b64DecodeUnicode'])(_0x288183));});}return _0x37df09;}async[_0x33c78d(0x245)](_0x2600c2,_0x5c4ee5){const _0x7ea398=_0x33c78d;let {unitID:_0x5f54cd,type:_0x2e155e,blockID:_0x3a78bd}=_0x5c4ee5,_0x206a0b=this[_0x7ea398(0x323)]()+'/'+_0x2e155e+_0x7ea398(0x379)+_0x5f54cd+_0x7ea398(0x39d)+_0x3a78bd;return(await this[_0x7ea398(0x20d)][_0x7ea398(0x1d6)](_0x206a0b))[_0x7ea398(0x216)];}async[_0x33c78d(0x196)](_0x2d6322,_0x446b80){const _0x296a4c=_0x33c78d;let {unitID:_0x554cc8,type:_0x27053f,blockID:_0x5eb3e0}=_0x446b80,_0x341875=this[_0x296a4c(0x323)]()+'/block/'+_0x27053f+_0x296a4c(0x379)+_0x554cc8+_0x296a4c(0x39d)+_0x5eb3e0;return(await this[_0x296a4c(0x20d)]['get'](_0x341875))[_0x296a4c(0x216)];}async[_0x33c78d(0x1a2)](_0x273400,_0x382d94){const _0x1ccae8=_0x33c78d;let {unitID:_0x15a9d9,type:_0x3c8227,from:_0x2235b2,to:_0x7e93c9}=_0x382d94,_0x36700a=this[_0x1ccae8(0x323)]()+'/'+_0x3c8227+_0x1ccae8(0x379)+_0x15a9d9+_0x1ccae8(0x146)+_0x2235b2+_0x1ccae8(0x12d)+_0x7e93c9;return(await this[_0x1ccae8(0x20d)][_0x1ccae8(0x1d6)](_0x36700a))[_0x1ccae8(0x216)];}[_0x33c78d(0x175)](){const _0x3c2c08=_0x33c78d;var _0x2a107e;return(_0x2a107e=this[_0x3c2c08(0x3d0)][_0x3c2c08(0x307)](_0x3c2c08(0x293)))==null?this['_getAPIPrefix']():_0x2a107e;}[_0x33c78d(0x323)](){const _0x20ce48=_0x33c78d;var _0x4d3af2;let _0x1a5221=this[_0x20ce48(0x3d0)][_0x20ce48(0x307)](m);return(_0x4d3af2=_0x1a5221==null?void 0x0:_0x1a5221[_0x20ce48(0x31a)])==null?'/universer-api/snapshot':_0x4d3af2;}async[_0x33c78d(0x2ed)](_0x105bf6,_0x35cf70){const _0x536490=_0x33c78d;let _0x2e8feb=_0x536490(0x434)+_0x35cf70[_0x536490(0x402)]+'/unit/'+_0x35cf70['unitID']+_0x536490(0x19e);return(await this[_0x536490(0x20d)][_0x536490(0x1d6)](_0x2e8feb,{'params':{'resourceId':JSON['stringify'](_0x35cf70['resourceIDs'])}}))[_0x536490(0x216)];}[_0x33c78d(0x3eb)](){const _0x7582ef=_0x33c78d;throw Error(_0x7582ef(0x3f1));}['updateSnapshot'](){const _0x1b22e1=_0x33c78d;throw Error(_0x1b22e1(0x3f1));}['saveSheetBlock'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x33c78d(0x28b)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x33c78d(0x3fa)](){const _0x26209a=_0x33c78d;throw Error(_0x26209a(0x3f1));}[_0x33c78d(0x289)](){const _0x17e49a=_0x33c78d;throw Error(_0x17e49a(0x3f1));}};Z=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t[_0x33c78d(0x403)])(l[_0x33c78d(0x135)]))],Z);let Q=class extends t[_0x33c78d(0x346)]{constructor(_0x23242f,_0xff35f5,_0x4f93b7,_0x11a776,_0x43209b){const _0x143db5=_0x33c78d;super(_0x23242f,_0xff35f5,_0x4f93b7),this[_0x143db5(0x2b3)]=_0x11a776,this[_0x143db5(0x1fe)]=_0x43209b;}[_0x33c78d(0x401)](_0x56da84,_0x4683a9){const _0x3b14a2=_0x33c78d;let _0x69cf0e=this[_0x3b14a2(0x2af)](_0x56da84);if(_0x69cf0e)try{let _0x4f2406=this['_transformStack'](_0x69cf0e,_0x4683a9);this[_0x3b14a2(0x305)](_0x56da84,_0x4f2406);}catch(_0x4a3936){this['_logService'][_0x3b14a2(0x39c)](_0x3b14a2(0x3e1),_0x4a3936),this['_clearUndo'](_0x56da84);}let _0x545cb5=this['_getRedoStack'](_0x56da84);if(_0x545cb5)try{let _0x2ef589=this[_0x3b14a2(0x15a)](_0x545cb5,_0x4683a9);this[_0x3b14a2(0x23d)](_0x56da84,_0x2ef589);}catch(_0x42c376){this[_0x3b14a2(0x1fe)]['error'](_0x42c376),this[_0x3b14a2(0x43a)](_0x56da84);}}[_0x33c78d(0x1aa)](_0x37c6da){const _0x1dc7f9=_0x33c78d;let _0x3b9332=this[_0x1dc7f9(0x2af)](_0x37c6da);_0x3b9332&&(_0x3b9332[_0x1dc7f9(0x3e4)]=0x0,this[_0x1dc7f9(0x3f2)]());}['_clearRedo'](_0x23a70a){const _0x31465c=_0x33c78d;let _0x2e9d66=this[_0x31465c(0x254)](_0x23a70a);_0x2e9d66&&(_0x2e9d66[_0x31465c(0x3e4)]=0x0,this['_updateStatus']());}[_0x33c78d(0x305)](_0x2d4774,_0x366285){const _0x56dc6f=_0x33c78d;this['_undoStacks'][_0x56dc6f(0x240)](_0x2d4774,_0x366285),this[_0x56dc6f(0x3f2)]();}[_0x33c78d(0x23d)](_0x40fbbf,_0x5cb3cb){const _0x5881b2=_0x33c78d;this[_0x5881b2(0x286)]['set'](_0x40fbbf,_0x5cb3cb),this[_0x5881b2(0x3f2)]();}[_0x33c78d(0x15a)](_0x53d369,_0x242417){const _0x1721e4=_0x33c78d;let _0x5b8dd2=[],_0x5a2c49=_0x242417,_0x53ce1f=_0x242417;for(let _0x59deb1=_0x53d369[_0x1721e4(0x3e4)]-0x1;_0x59deb1>=0x0;_0x59deb1--){let {unitID:_0x4e58df,undoMutations:_0x24e414,redoMutations:_0x3fe947}=_0x53d369[_0x59deb1],_0x3c8574=this[_0x1721e4(0x2b3)][_0x1721e4(0x2e4)](_0x5a2c49,_0x24e414),_0x385a38=this[_0x1721e4(0x2b3)][_0x1721e4(0x2e4)](_0x53ce1f,_0x3fe947);if((0x0,e[_0x1721e4(0x3ea)])(_0x3c8574)||(0x0,e['isTransformMutationsWithChangesetFailure'])(_0x385a38)){this['_logService'][_0x1721e4(0x39c)](_0x1721e4(0x3e1),_0x1721e4(0x20e),_0x3c8574,_0x385a38);break;}_0x5a2c49=_0x3c8574[_0x1721e4(0x423)],_0x53ce1f=_0x385a38[_0x1721e4(0x423)],_0x5b8dd2[_0x1721e4(0x33a)]({'unitID':_0x4e58df,'undoMutations':_0x3c8574[_0x1721e4(0x19c)],'redoMutations':_0x385a38['m2Prime']});}return _0x5b8dd2['reverse']();}};Q=y([v(0x0,t[_0x33c78d(0x142)]),v(0x1,t[_0x33c78d(0x1fb)]),v(0x2,t[_0x33c78d(0x16e)]),v(0x3,e[_0x33c78d(0x2e9)]),v(0x4,t['ILogService'])],Q);let $=class extends t[_0x33c78d(0x35a)]{constructor(_0x38b6fe=ee,_0xcfcd2e,_0x5db348,_0x2f04aa){const _0x31e9c6=_0x33c78d;super(),this[_0x31e9c6(0x192)]=_0x38b6fe,this[_0x31e9c6(0x1fe)]=_0xcfcd2e,this[_0x31e9c6(0x25e)]=_0x5db348,this[_0x31e9c6(0x3d0)]=_0x2f04aa;let {..._0x1a4a87}=(0x0,t[_0x31e9c6(0x161)])({},ee,this[_0x31e9c6(0x192)]);if(!_0x1a4a87['socketService'])throw Error(_0x31e9c6(0x2e5));this['_config']=_0x1a4a87,this[_0x31e9c6(0x3d0)]['setConfig'](m,_0x1a4a87);}[_0x33c78d(0x336)](){this['_registerDependencies'](),this['_initDependencies']();}['_registerDependencies'](){const _0x3660de=_0x33c78d;var _0x5d0bd5,_0x584723;this[_0x3660de(0x25e)][_0x3660de(0x40e)](t[_0x3660de(0x3a5)])&&this['_logService']['error']('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x63a541=(0x0,t[_0x3660de(0x1a8)])([[t[_0x3660de(0x3a5)],{'useClass':Q}],[Qe,{'useValue':$e()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[Ye,{'useClass':this[_0x3660de(0x192)][_0x3660de(0x15b)]}],[e[_0x3660de(0x432)],{'useClass':Z}],[t[_0x3660de(0x25d)],{'useClass':G}],[t[_0x3660de(0x3c3)],{'useClass':J}],[it,{'useClass':U}],[t[_0x3660de(0x430)],{'useClass':Y}],[H],[rt]],(_0x5d0bd5=this[_0x3660de(0x192)])==null?void 0x0:_0x5d0bd5[_0x3660de(0x37e)]);if(!((_0x584723=this['_config'])!=null&&_0x584723[_0x3660de(0x30e)])){let _0x448ddf=_0x63a541[_0x3660de(0x308)](([_0x4bd5b8])=>_0x4bd5b8===w);_0x448ddf!==-0x1&&_0x63a541[_0x3660de(0x313)](_0x448ddf,0x1);}(0x0,t[_0x3660de(0x406)])(this[_0x3660de(0x25e)],_0x63a541);}['_initDependencies'](){const _0x216337=_0x33c78d;var _0x14c63d,_0x1fdac1;if(this[_0x216337(0x25e)][_0x216337(0x1d6)](l[_0x216337(0x135)])[_0x216337(0x2e7)]({'priority':0x14,'interceptor':(0x0,l[_0x216337(0x3db)])({'maxParallel':0x6})}),!((_0x14c63d=this['_config'])!=null&&_0x14c63d[_0x216337(0x3a6)])){var _0x22f82a;(_0x22f82a=this['_injector'][_0x216337(0x1d6)](S,t['Quantity'][_0x216337(0x170)]))==null||_0x22f82a['disableLocalCache']();}(_0x1fdac1=this[_0x216337(0x192)])!=null&&_0x1fdac1['enableAuthServer']&&(0x0,t[_0x216337(0x352)])(this[_0x216337(0x25e)],[[W]]),(0x0,t[_0x216337(0x352)])(this[_0x216337(0x25e)],[[K],[H],[X]]);}};g($,_0x33c78d(0x43b),_0x33c78d(0x164)),g($,'packageName',tt),g($,_0x33c78d(0x134),nt),$=y([(0x0,t[_0x33c78d(0x3d5)])(u['UniverLicensePlugin'],l[_0x33c78d(0x11f)],e[_0x33c78d(0x13a)]),v(0x1,t[_0x33c78d(0x3ed)]),v(0x2,(0x0,t['Inject'])(t['Injector'])),v(0x3,t[_0x33c78d(0x2d4)])],$),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x396),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x2ce),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x1fd),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x416),{'enumerable':!0x0,'get':function(){return Ge;}}),Object['defineProperty'](exports,_0x33c78d(0x440),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x33c78d(0x2e6)]=m,Object[_0x33c78d(0x36d)](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,_0x33c78d(0x121),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x265),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x329),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x33c78d(0x36d)](exports,'CollaborationSession',{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x155),{'enumerable':!0x0,'get':function(){return V;}}),Object['defineProperty'](exports,_0x33c78d(0x21e),{'enumerable':!0x0,'get':function(){return Ze;}}),exports[_0x33c78d(0x33f)]=Ve,exports[_0x33c78d(0x2a7)]=oe,exports[_0x33c78d(0x42e)]=_,Object[_0x33c78d(0x36d)](exports,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x33c78d(0x27a)]=se,Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x256),{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x33c78d(0x183)]=te,exports[_0x33c78d(0x31d)]='/universer-api/uniscript',exports[_0x33c78d(0x331)]=_0x33c78d(0x19a),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x2d6),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x1b3),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x1d3),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x33c78d(0x2c0)]=_0x33c78d(0x43c),exports[_0x33c78d(0x20a)]=_0x33c78d(0x2f0),exports[_0x33c78d(0x2a2)]=it,exports[_0x33c78d(0x2b1)]=Qe,exports[_0x33c78d(0x2f6)]=Ye,exports[_0x33c78d(0x177)]=S,exports[_0x33c78d(0x2d7)]=Ke,exports[_0x33c78d(0x13b)]=w,exports[_0x33c78d(0x3c7)]=0x3e8,exports[_0x33c78d(0x2dd)]=_0x33c78d(0x3c7),Object['defineProperty'](exports,_0x33c78d(0x29a),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x14b),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x38b),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x3a2),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x3f8),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x33c78d(0x20b)]=_0x33c78d(0x2db),exports['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x33c78d(0x24b),exports[_0x33c78d(0x358)]=ve,Object['defineProperty'](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x19d),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x2ec),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x214),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x285),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x33c78d(0x186)]=Se,Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x421),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=$e,exports['deserializeToCombResponse']=qe,exports[_0x33c78d(0x238)]=be,exports[_0x33c78d(0x258)]=Je;
|
|
1
|
+
const _0x318ac4=_0x2ea1;(function(_0x2681a6,_0x579daa){const _0x9fe220=_0x2ea1,_0xb46cbf=_0x2681a6();while(!![]){try{const _0x14bd05=-parseInt(_0x9fe220(0x158))/0x1+parseInt(_0x9fe220(0x2ce))/0x2*(-parseInt(_0x9fe220(0x29b))/0x3)+parseInt(_0x9fe220(0x19e))/0x4*(-parseInt(_0x9fe220(0x2eb))/0x5)+parseInt(_0x9fe220(0x1f7))/0x6+parseInt(_0x9fe220(0x264))/0x7+parseInt(_0x9fe220(0x3a3))/0x8+parseInt(_0x9fe220(0x258))/0x9*(parseInt(_0x9fe220(0x186))/0xa);if(_0x14bd05===_0x579daa)break;else _0xb46cbf['push'](_0xb46cbf['shift']());}catch(_0x128810){_0xb46cbf['push'](_0xb46cbf['shift']());}}}(_0x529c,0x6e49d),Object['defineProperty'](exports,Symbol[_0x318ac4(0x2b4)],{'value':_0x318ac4(0x208)}));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=_0x318ac4(0x11d),ee={};function te(_0x4a6e94){const _0x1c72e1=_0x318ac4;return JSON['stringify'](_0x4a6e94)[_0x1c72e1(0x347)];}function h(_0x38e60e){'@babel/helpers - typeof';const _0x4aeedd=_0x318ac4;return h=typeof Symbol==_0x4aeedd(0x136)&&typeof Symbol[_0x4aeedd(0x25f)]==_0x4aeedd(0x3ca)?function(_0x1e8d45){return typeof _0x1e8d45;}:function(_0x5a30d7){const _0x5e3d58=_0x4aeedd;return _0x5a30d7&&typeof Symbol==_0x5e3d58(0x136)&&_0x5a30d7[_0x5e3d58(0x13b)]===Symbol&&_0x5a30d7!==Symbol[_0x5e3d58(0x205)]?_0x5e3d58(0x3ca):typeof _0x5a30d7;},h(_0x38e60e);}function ne(_0x2a59c7,_0x4bda37){const _0x22c42a=_0x318ac4;if(h(_0x2a59c7)!=_0x22c42a(0x22e)||!_0x2a59c7)return _0x2a59c7;var _0x197dc9=_0x2a59c7[Symbol['toPrimitive']];if(_0x197dc9!==void 0x0){var _0x2b818a=_0x197dc9[_0x22c42a(0x19d)](_0x2a59c7,_0x4bda37||'default');if(h(_0x2b818a)!=_0x22c42a(0x22e))return _0x2b818a;throw TypeError(_0x22c42a(0x323));}return(_0x4bda37===_0x22c42a(0x30b)?String:Number)(_0x2a59c7);}function re(_0x3fd239){const _0x3b3b0d=_0x318ac4;var _0x4eecb0=ne(_0x3fd239,'string');return h(_0x4eecb0)==_0x3b3b0d(0x3ca)?_0x4eecb0:_0x4eecb0+'';}function g(_0x5f0703,_0xc4edcf,_0x248c45){const _0x5217ef=_0x318ac4;return(_0xc4edcf=re(_0xc4edcf))in _0x5f0703?Object[_0x5217ef(0x34e)](_0x5f0703,_0xc4edcf,{'value':_0x248c45,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f0703[_0xc4edcf]=_0x248c45,_0x5f0703;}let ie=function(_0x4062d4){const _0x55a86e=_0x318ac4;return _0x4062d4['OTHER_CLIENT_EDITING']=_0x55a86e(0x153),_0x4062d4[_0x55a86e(0x18a)]='PERMISSION_DENIED',_0x4062d4['CONFLICT']=_0x55a86e(0x3d7),_0x4062d4[_0x55a86e(0x39c)]=_0x55a86e(0x39c),_0x4062d4[_0x55a86e(0x3f4)]=_0x55a86e(0x3f4),_0x4062d4[_0x55a86e(0x26f)]=_0x55a86e(0x26f),_0x4062d4[_0x55a86e(0x3e0)]=_0x55a86e(0x3e0),_0x4062d4[_0x55a86e(0x275)]=_0x55a86e(0x275),_0x4062d4;}({});var _=class{constructor(){const _0x473836=_0x318ac4;g(this,_0x473836(0x2a5),new i[(_0x473836(0x164))]()),g(this,_0x473836(0x21b),this['_event$'][_0x473836(0xe7)]());}[_0x318ac4(0x3b5)](_0x146e76){const _0x59dda0=_0x318ac4;this[_0x59dda0(0x2a5)]['next'](_0x146e76);}},ae=class{constructor(){const _0x10a640=_0x318ac4;g(this,_0x10a640(0x3cc),new i[(_0x10a640(0x164))]()),g(this,_0x10a640(0x37a),this[_0x10a640(0x3cc)][_0x10a640(0xe7)]());}[_0x318ac4(0x3cb)](_0x58a446){const _0x5015cf=_0x318ac4;this[_0x5015cf(0x3cc)]['next'](_0x58a446);}};function v(_0x3815a8,_0x3b1ad3){return function(_0xba036a,_0x16c636){_0x3b1ad3(_0xba036a,_0x16c636,_0x3815a8);};}function y(_0x31ea50,_0x30090b,_0x4e5112,_0x1d02a0){const _0x1dbb92=_0x318ac4;var _0x10382c=arguments[_0x1dbb92(0x347)],_0xf3a4d9=_0x10382c<0x3?_0x30090b:_0x1d02a0===null?_0x1d02a0=Object[_0x1dbb92(0x2cf)](_0x30090b,_0x4e5112):_0x1d02a0,_0x293d3a;if(typeof Reflect==_0x1dbb92(0x22e)&&typeof Reflect[_0x1dbb92(0x2f6)]==_0x1dbb92(0x136))_0xf3a4d9=Reflect[_0x1dbb92(0x2f6)](_0x31ea50,_0x30090b,_0x4e5112,_0x1d02a0);else{for(var _0x302b84=_0x31ea50['length']-0x1;_0x302b84>=0x0;_0x302b84--)(_0x293d3a=_0x31ea50[_0x302b84])&&(_0xf3a4d9=(_0x10382c<0x3?_0x293d3a(_0xf3a4d9):_0x10382c>0x3?_0x293d3a(_0x30090b,_0x4e5112,_0xf3a4d9):_0x293d3a(_0x30090b,_0x4e5112))||_0xf3a4d9);}return _0x10382c>0x3&&_0xf3a4d9&&Object[_0x1dbb92(0x34e)](_0x30090b,_0x4e5112,_0xf3a4d9),_0xf3a4d9;}let b=class extends t[_0x318ac4(0x256)]{constructor(_0x274268){const _0x55dbbf=_0x318ac4;super(),this[_0x55dbbf(0x1b9)]=_0x274268,g(this,_0x55dbbf(0x2a8),new Map()),g(this,'_roomCreated$',new i[(_0x55dbbf(0x164))]()),this[_0x55dbbf(0x309)]((0x0,i[_0x55dbbf(0xe4)])(this['_univerInstanceService'][_0x55dbbf(0x2c2)](t[_0x55dbbf(0x27b)][_0x55dbbf(0x204)])[_0x55dbbf(0x304)]((0x0,s[_0x55dbbf(0x2b6)])(_0x50b5d2=>_0x50b5d2[_0x55dbbf(0xd5)]())),this[_0x55dbbf(0x1b9)][_0x55dbbf(0x2c2)](t[_0x55dbbf(0x27b)][_0x55dbbf(0x1db)])[_0x55dbbf(0x304)]((0x0,s[_0x55dbbf(0x2b6)])(_0x51b186=>_0x51b186['getUnitId']())),this[_0x55dbbf(0x1b9)]['getTypeOfUnitDisposed$'](t[_0x55dbbf(0x27b)][_0x55dbbf(0x177)])[_0x55dbbf(0x304)]((0x0,s['map'])(_0x3eb591=>_0x3eb591['getUnitId']())),this[_0x55dbbf(0x1b9)][_0x55dbbf(0x2c2)](t[_0x55dbbf(0x27b)][_0x55dbbf(0x30c)])[_0x55dbbf(0x304)]((0x0,s[_0x55dbbf(0x2b6)])(_0x2b5827=>_0x2b5827['getUnitId']())))['subscribe'](_0x165462=>this[_0x55dbbf(0x296)](_0x165462)));}['waitForRoom$'](_0x103428){const _0x38563e=_0x318ac4;return this['_roomMembers'][_0x38563e(0x3e2)](_0x103428)?(0x0,i['of'])(this[_0x38563e(0x2a8)]['get'](_0x103428)):this[_0x38563e(0x3f2)]['pipe']((0x0,s[_0x38563e(0x2b6)])(_0x2b8dc0=>{const _0x1d92aa=_0x38563e;if(_0x2b8dc0===_0x103428)return this[_0x1d92aa(0x2a8)][_0x1d92aa(0x3c5)](_0x2b8dc0);}));}[_0x318ac4(0x274)](_0x44825a,_0x11923b){const _0x6e59ea=_0x318ac4;let _0x1a66bb=this[_0x6e59ea(0x2a8)][_0x6e59ea(0x3c5)](_0x44825a);_0x1a66bb||(_0x1a66bb=new oe(),this[_0x6e59ea(0x2a8)]['set'](_0x44825a,_0x1a66bb),this[_0x6e59ea(0x3f2)][_0x6e59ea(0x322)](_0x44825a)),_0x1a66bb[_0x6e59ea(0x274)](_0x11923b);}[_0x318ac4(0x11c)](_0x3d68ac,_0x21dc27){const _0xe8d224=_0x318ac4;let _0x7fb928=this[_0xe8d224(0x2a8)]['get'](_0x3d68ac);_0x7fb928&&_0x7fb928[_0xe8d224(0x11c)](_0x21dc27);}['getRoom'](_0x4588f9){const _0x23f50d=_0x318ac4;return this[_0x23f50d(0x2a8)]['get'](_0x4588f9);}[_0x318ac4(0x221)](_0x473399,_0x550c60){const _0x1bc144=_0x318ac4;let _0xb46052=this[_0x1bc144(0x2a8)][_0x1bc144(0x3c5)](_0x473399);if(_0xb46052)return _0xb46052[_0x1bc144(0x221)](_0x550c60);}[_0x318ac4(0x296)](_0xa90e2e){const _0x4420b8=_0x318ac4;let _0x3806cf=this[_0x4420b8(0x2a8)][_0x4420b8(0x3c5)](_0xa90e2e);_0x3806cf&&(_0x3806cf[_0x4420b8(0x171)](),this[_0x4420b8(0x2a8)][_0x4420b8(0x305)](_0xa90e2e));}[_0x318ac4(0x171)](){const _0x32ec1c=_0x318ac4;this['_roomMembers'][_0x32ec1c(0x2cc)](_0x4ec8c8=>_0x4ec8c8[_0x32ec1c(0x171)]()),this[_0x32ec1c(0x2a8)][_0x32ec1c(0x279)](),this[_0x32ec1c(0x3f2)][_0x32ec1c(0x129)]();}};b=y([v(0x0,t[_0x318ac4(0x245)])],b);var oe=class extends t[_0x318ac4(0x256)]{constructor(..._0x39dab9){const _0x2bf226=_0x318ac4;super(..._0x39dab9),g(this,'_members',new Map()),g(this,'_members$',new i[(_0x2bf226(0x193))](this[_0x2bf226(0x33c)])),g(this,_0x2bf226(0x2c9),this['_members$'][_0x2bf226(0xe7)]());}[_0x318ac4(0x171)](){const _0x47eeda=_0x318ac4;this['_members'][_0x47eeda(0x279)](),this[_0x47eeda(0x15b)]['complete']();}[_0x318ac4(0x274)](_0xa040e5){const _0x2121f4=_0x318ac4;this['_members']['set'](_0xa040e5[_0x2121f4(0x2c7)],_0xa040e5),this[_0x2121f4(0x29e)]();}['removeMember'](_0x3b5b02){const _0xa54cde=_0x318ac4;this['_members']['delete'](_0x3b5b02),this[_0xa54cde(0x29e)]();}[_0x318ac4(0x221)](_0x52a3f4){const _0x28cf2b=_0x318ac4;return this['_members'][_0x28cf2b(0x3c5)](_0x52a3f4);}[_0x318ac4(0x29c)](){const _0x32b002=_0x318ac4;return Array[_0x32b002(0x104)](this[_0x32b002(0x33c)][_0x32b002(0x3d9)]());}[_0x318ac4(0x29e)](){const _0x2740f3=_0x318ac4;this['_members$'][_0x2740f3(0x322)](this[_0x2740f3(0x33c)]);}};function se(_0x52045b,_0x1414f3){const _0x50d98f=_0x318ac4;if(le(_0x52045b))return _0x1414f3;if(_0x1414f3[_0x50d98f(0x1da)]===e[_0x50d98f(0x364)][_0x50d98f(0x18f)]){let _0x25a13e=me(_0x52045b),_0x2ef6fd=_0x1414f3;return{..._0x2ef6fd,'data':{..._0x2ef6fd[_0x50d98f(0x1ec)],'unitID':_0x52045b['target']['unitId'],'unitType':_0x52045b[_0x50d98f(0x1cd)]['unitType']??_0x2ef6fd[_0x50d98f(0x1ec)][_0x50d98f(0x1d3)],'changeset':_0x25a13e[_0x50d98f(0x135)](_0x2ef6fd[_0x50d98f(0x1ec)][_0x50d98f(0x1c6)],he(_0x52045b))}};}if(_0x1414f3['eventID']===e['CollaborationEvent']['FETCH_MISSING']){let _0x2cb859=_0x1414f3;return{..._0x2cb859,'data':{..._0x2cb859[_0x50d98f(0x1ec)],'unitID':_0x52045b['target'][_0x50d98f(0x19b)],'unitType':_0x52045b[_0x50d98f(0x1cd)][_0x50d98f(0x1d3)]??_0x2cb859[_0x50d98f(0x1ec)][_0x50d98f(0x1d3)]}};}return _0x1414f3;}function ce(_0x3ac0c9,_0x37cedd){const _0x1d7685=_0x318ac4;if(le(_0x3ac0c9))return[_0x37cedd];switch(_0x37cedd[_0x1d7685(0x1da)]){case e[_0x1d7685(0x364)][_0x1d7685(0xdc)]:return[ue(_0x3ac0c9,_0x37cedd)];case e[_0x1d7685(0x364)]['PSEUDO_FETCH_MISSING_RESULT']:return[fe(_0x3ac0c9,_0x37cedd)];case e['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:return[de(_0x3ac0c9,_0x37cedd)];default:return[_0x37cedd];}}function le(_0x33f8b0){const _0x4b16c8=_0x318ac4;return _0x33f8b0[_0x4b16c8(0x1cd)][_0x4b16c8(0x1ae)]==null&&_0x33f8b0['target'][_0x4b16c8(0x19b)]===_0x33f8b0[_0x4b16c8(0x13c)]&&!_0x33f8b0[_0x4b16c8(0x1c6)];}function ue(_0x52c8bd,_0x805770){const _0x2c6773=_0x318ac4;return{..._0x805770,'data':(0x0,e[_0x2c6773(0x29d)])(pe(_0x52c8bd,(0x0,e[_0x2c6773(0x27d)])(_0x805770[_0x2c6773(0x1ec)])))};}function de(_0x49427d,_0x4ab265){const _0x22357b=_0x318ac4;return{..._0x4ab265,'data':pe(_0x49427d,_0x4ab265[_0x22357b(0x1ec)])};}function fe(_0x534596,_0x3a6977){const _0x4fc1a2=_0x318ac4;let _0x36aea5=_0x3a6977[_0x4fc1a2(0x1ec)];return{..._0x3a6977,'data':{..._0x36aea5,'changesets':_0x36aea5[_0x4fc1a2(0xe5)]['map'](_0xd591f9=>(0x0,e[_0x4fc1a2(0x29d)])(pe(_0x534596,(0x0,e['parseProtocolChangeset'])(_0xd591f9))))}};}function pe(_0x4ff9b7,_0x216031){return me(_0x4ff9b7)['toLocal'](_0x216031,he(_0x4ff9b7));}function me(_0x499738){const _0x1037eb=_0x318ac4;if(!_0x499738[_0x1037eb(0x1c6)])throw Error(_0x1037eb(0x2e6));return _0x499738['changeset'];}function he(_0x446fc7){const _0x36939b=_0x318ac4;return{'localUnitId':_0x446fc7['localUnitId'],'unitType':_0x446fc7[_0x36939b(0x1d3)],'target':_0x446fc7[_0x36939b(0x1cd)]};}let ge=function(_0x34e591){const _0x2d7b42=_0x318ac4;return _0x34e591[_0x34e591[_0x2d7b42(0x325)]=0x0]='IDLE',_0x34e591[_0x34e591[_0x2d7b42(0x2e2)]=0x1]=_0x2d7b42(0x2e2),_0x34e591[_0x34e591[_0x2d7b42(0x10e)]=0x2]='OFFLINE',_0x34e591[_0x34e591['ONLINE']=0x3]=_0x2d7b42(0xeb),_0x34e591;}({});const _e={[a[_0x318ac4(0x38e)][_0x318ac4(0x163)]]:_0x318ac4(0x2d6),[a['CmdRspCode'][_0x318ac4(0xd6)]]:_0x318ac4(0x3ad),[a['CmdRspCode'][_0x318ac4(0x32f)]]:_0x318ac4(0x376),[a[_0x318ac4(0x38e)][_0x318ac4(0x1cc)]]:_0x318ac4(0x210),[a[_0x318ac4(0x38e)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x318ac4(0x3d4)};let ve=class extends t[_0x318ac4(0x269)]{get['sessionStatus'](){const _0xcf67b7=_0x318ac4;return this[_0xcf67b7(0x337)][_0xcf67b7(0xfd)]();}constructor(_0x2318a9,_0x4641e2,_0x26b987,_0x5697fd,_0x47b0df,_0x35fc58,_0x4869d2,_0xdb5af){const _0x42d157=_0x318ac4;super(),this[_0x42d157(0x2b8)]=_0x2318a9,this[_0x42d157(0x2fa)]=_0x26b987,this['_configService']=_0x5697fd,this[_0x42d157(0x3a0)]=_0x47b0df,this[_0x42d157(0x3df)]=_0x35fc58,this[_0x42d157(0x20b)]=_0x4869d2,this[_0x42d157(0x281)]=_0xdb5af,g(this,_0x42d157(0x337),new i[(_0x42d157(0x193))](0x0)),g(this,_0x42d157(0x122),this['_sessionStatus$']['asObservable']()),g(this,_0x42d157(0x2a5),new i['Subject']()),g(this,'event$',this[_0x42d157(0x2a5)][_0x42d157(0xe7)]()),g(this,_0x42d157(0x31a),void 0x0),g(this,_0x42d157(0x3e3),void 0x0),g(this,_0x42d157(0x345),void 0x0),g(this,_0x42d157(0xdf),!0x1),g(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this[_0x42d157(0x281)],_0x4641e2[_0x42d157(0x304)]((0x0,i['takeUntil'])(this[_0x42d157(0x16a)]))[_0x42d157(0x126)](_0x5c0bad=>{const _0xae2ee=_0x42d157;if(_0x5c0bad!==void 0x0){if(this[_0xae2ee(0x31a)]=_0x5c0bad,_0x5c0bad)this[_0xae2ee(0x11f)](_0x5c0bad),this[_0xae2ee(0x3e3)]=_0x5c0bad['message$'][_0xae2ee(0x126)](_0x4a71a2=>{const _0x52ee4e=_0xae2ee;_0x4a71a2[_0x52ee4e(0x292)]===this[_0x52ee4e(0x2b8)]['target'][_0x52ee4e(0x19b)]&&this[_0x52ee4e(0x3f7)](_0x4a71a2);});else{var _0x497fc4;this['_throwTelemetryCollaborationNewChangeset'](),this[_0xae2ee(0x337)][_0xae2ee(0x322)](0x2),(_0x497fc4=this[_0xae2ee(0x3e3)])==null||_0x497fc4['unsubscribe'](),this[_0xae2ee(0x3e3)]=null;}}});}[_0x318ac4(0x24a)](){const _0x570e51=_0x318ac4;var _0xc3a34a;return((_0xc3a34a=this[_0x570e51(0x31a)])==null?void 0x0:_0xc3a34a[_0x570e51(0x2c7)])??null;}['dispose'](){const _0x36f081=_0x318ac4;super[_0x36f081(0x171)](),this[_0x36f081(0x2ef)](),this[_0x36f081(0x16a)][_0x36f081(0x322)](),this[_0x36f081(0x16a)][_0x36f081(0x129)]();}[_0x318ac4(0x2ef)](){const _0x251529=_0x318ac4;var _0x167bbb;this['_throwTelemetryCollaborationNewChangeset'](),(_0x167bbb=this[_0x251529(0x31a)])==null||_0x167bbb[_0x251529(0x2a3)]({'cmd':a[_0x251529(0x379)]['LEAVE'],'data':{'roomID':this[_0x251529(0x2b8)][_0x251529(0x1cd)][_0x251529(0x19b)]}}),this['_event$'][_0x251529(0x129)](),this[_0x251529(0x337)][_0x251529(0x129)]();}[_0x318ac4(0x3f7)](_0xbe0868){const _0x10f2e3=_0x318ac4;_0xbe0868[_0x10f2e3(0x31b)]===a['CombCmd'][_0x10f2e3(0x206)]?this['_onJoinRoomEvent'](_0xbe0868):_0xbe0868[_0x10f2e3(0x31b)]===a['CombCmd'][_0x10f2e3(0x33e)]&&this[_0x10f2e3(0x37c)](_0xbe0868);}[_0x318ac4(0x11f)](_0x9b570){const _0x15188e=_0x318ac4;this[_0x15188e(0x337)][_0x15188e(0x322)](0x1),_0x9b570[_0x15188e(0x2a3)]({'cmd':a[_0x15188e(0x379)][_0x15188e(0x206)],'routeKey':this[_0x15188e(0x2b8)][_0x15188e(0x1cd)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x15188e(0x1cd)][_0x15188e(0x19b)]}]}});}[_0x318ac4(0x298)](_0x2230ca){const _0x27d3dc=_0x318ac4;var _0x1e0220;if(_0x2230ca[_0x27d3dc(0x1ad)]in _e){this[_0x27d3dc(0x20b)]['emitEvent']({'id':_0x27d3dc(0x3f4),'data':_e[_0x2230ca['code']]}),this['_sessionStatus$'][_0x27d3dc(0x322)](0x2);return;}this['_sessionStatus$'][_0x27d3dc(0x322)](0x3);let _0x592a67=(_0x1e0220=_0x2230ca[_0x27d3dc(0x1ec)][_0x27d3dc(0x3e5)][this['_identity'][_0x27d3dc(0x1cd)][_0x27d3dc(0x19b)]])==null?void 0x0:_0x1e0220['members'];_0x592a67&&_0x592a67[_0x27d3dc(0x2cc)](_0x544323=>this[_0x27d3dc(0x3a0)][_0x27d3dc(0x274)](this['_identity'][_0x27d3dc(0x13c)],_0x544323));}[_0x318ac4(0x37c)](_0x3fb87e){const _0x3afbbd=_0x318ac4;try{let _0x48d6c7=ce(this['_identity'],_0x3fb87e[_0x3afbbd(0x1ec)]);for(let _0x27d49b of _0x48d6c7)switch(_0x27d49b[_0x3afbbd(0x1da)]){case e[_0x3afbbd(0x364)][_0x3afbbd(0x112)]:this[_0x3afbbd(0x111)](_0x27d49b),this['_event$'][_0x3afbbd(0x322)](_0x27d49b);break;case e[_0x3afbbd(0x364)][_0x3afbbd(0x2b0)]:this[_0x3afbbd(0x278)](_0x27d49b),this[_0x3afbbd(0x2a5)][_0x3afbbd(0x322)](_0x27d49b);break;case e[_0x3afbbd(0x364)][_0x3afbbd(0x235)]:case e[_0x3afbbd(0x364)][_0x3afbbd(0x197)]:this[_0x3afbbd(0x2ea)](),this[_0x3afbbd(0x2dc)](),this['_event$'][_0x3afbbd(0x322)](_0x27d49b);break;case e[_0x3afbbd(0x364)][_0x3afbbd(0x3f8)]:this['_logService'][_0x3afbbd(0x36b)](_0x3afbbd(0x14c)+JSON['stringify'](_0x27d49b)),this['_event$'][_0x3afbbd(0x322)](_0x27d49b);break;case e[_0x3afbbd(0x364)][_0x3afbbd(0x356)]:this['_commentService'][_0x3afbbd(0x3cb)](_0x27d49b[_0x3afbbd(0x1ec)]),this[_0x3afbbd(0x2a5)][_0x3afbbd(0x322)](_0x27d49b);break;default:this[_0x3afbbd(0x2a5)]['next'](_0x27d49b);}}catch(_0x5dd048){this['_logService'][_0x3afbbd(0x36b)](_0x5dd048,_0x3fb87e);}}['_onUserJoin'](_0x118b0a){const _0x3933fe=_0x318ac4;this[_0x3933fe(0x3a0)][_0x3933fe(0x274)](this['_identity'][_0x3933fe(0x13c)],_0x118b0a[_0x3933fe(0x1ec)]);}[_0x318ac4(0x278)](_0x58e7d6){const _0x45f859=_0x318ac4;this[_0x45f859(0x3a0)][_0x45f859(0x11c)](this[_0x45f859(0x2b8)][_0x45f859(0x13c)],_0x58e7d6[_0x45f859(0x1ec)]['memberID']);}async[_0x318ac4(0x2a3)](_0x4a37b1,_0x328f48){const _0x6532ad=_0x318ac4;if(this[_0x6532ad(0x2ff)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x2bfe59=se(this[_0x6532ad(0x2b8)],_0x4a37b1);_0x2bfe59['eventID']===e[_0x6532ad(0x364)][_0x6532ad(0x18f)]&&(this[_0x6532ad(0x328)](),this[_0x6532ad(0x37f)](_0x2bfe59)),this[_0x6532ad(0x31a)][_0x6532ad(0x2a3)]({'cmd':a[_0x6532ad(0x379)][_0x6532ad(0x27c)],'routeKey':this[_0x6532ad(0x2b8)][_0x6532ad(0x1cd)]['unitId'],'routeType':'','data':_0x2bfe59});}catch(_0x97a655){this['_logService'][_0x6532ad(0x36b)](_0x97a655);}}[_0x318ac4(0x328)](){const _0x557753=_0x318ac4;this[_0x557753(0x345)]=setTimeout(()=>{const _0x265836=_0x557753;this['_collaborationTimeoutTimer']=null,this[_0x265836(0x20b)][_0x265836(0x3b5)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this['_configService']['getConfig'](_0x557753(0x303))??0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x4acede=_0x318ac4;this[_0x4acede(0x345)]&&=(clearTimeout(this[_0x4acede(0x345)]),null);}[_0x318ac4(0x37f)](_0x20d0cf){const _0x2ca882=_0x318ac4;if(!this[_0x2ca882(0xdf)])return;let {data:_0x18f173}=_0x20d0cf,{unitID:_0x18cb80,changeset:_0xefffa}=_0x18f173,{mutations:_0x2c684d,type:_0x5a032a}=_0xefffa;this[_0x2ca882(0x2f7)]={'unitId':_0x18cb80,'type':_0x5a032a,'startTime':performance[_0x2ca882(0x115)](),'stopTime':0x0,'duration':0x0,'size':te(_0x2c684d)};}[_0x318ac4(0x2ea)](){const _0x430af1=_0x318ac4;if(this['_shouldReportTelemetry']){if(!this[_0x430af1(0x2f7)]){this['_logService'][_0x430af1(0x36b)](_0x430af1(0x2d9),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo']['stopTime']=performance[_0x430af1(0x115)](),this[_0x430af1(0x2f7)]['duration']=this[_0x430af1(0x2f7)][_0x430af1(0x288)]-this[_0x430af1(0x2f7)][_0x430af1(0x12d)],this[_0x430af1(0x281)][_0x430af1(0x321)](_0x430af1(0x133),this[_0x430af1(0x2f7)]),this[_0x430af1(0x2f7)]=null;}}[_0x318ac4(0x189)](){const _0x4591e0=_0x318ac4;this[_0x4591e0(0x2f7)]=null;}};ve=y([v(0x2,t[_0x318ac4(0x28c)]),v(0x3,t[_0x318ac4(0x1b7)]),v(0x4,(0x0,t[_0x318ac4(0x394)])(b)),v(0x5,(0x0,t[_0x318ac4(0x394)])(ae)),v(0x6,(0x0,t[_0x318ac4(0x394)])(_)),v(0x7,(0x0,t[_0x318ac4(0x2b2)])(o[_0x318ac4(0x240)]))],ve);const x=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x383));function ye(_0x399d15){const _0xe0aa8f=_0x318ac4;return _0xe0aa8f(0xf9)+_0x399d15;}function be(_0x18dd9c){const _0x52e2ae=_0x318ac4;let {unitID:_0x122aed,mutations:_0x5019a2}=_0x18dd9c;return{'unitId':_0x122aed,'subUnitId':_0x5019a2['length']>0x0?_0x5019a2[0x0][_0x52e2ae(0x20c)][_0x52e2ae(0x3bc)]:null};}let S=class{constructor(_0x2f7f04,_0x1b15e6,_0x15c837){const _0x180bb9=_0x318ac4;this[_0x180bb9(0x1d8)]=_0x2f7f04,this[_0x180bb9(0x1a4)]=_0x1b15e6,this[_0x180bb9(0x285)]=_0x15c837;}[_0x318ac4(0x12f)](_0x492ed9){const _0x4c37ef=_0x318ac4;var _0x5cc8f3,_0x5a87ca;let _0x3a49df=this[_0x4c37ef(0x1d8)]['get'](r[_0x4c37ef(0x3dd)]),{unitId:_0x31b085,subUnitId:_0x278a08}=be(_0x492ed9),_0x438806=_0x3a49df==null?void 0x0:_0x3a49df[_0x4c37ef(0x106)](_0x31b085)['getCurrentSelections'](),_0x3576c8=(_0x5cc8f3=this[_0x4c37ef(0x285)][_0x4c37ef(0x22d)](_0x31b085))==null||(_0x5cc8f3=_0x5cc8f3['getActiveSheet']())==null?void 0x0:_0x5cc8f3[_0x4c37ef(0x143)]();if(_0x438806[_0x4c37ef(0x347)]===0x0||!_0x31b085||!_0x278a08)return;let _0x1ec2aa=[{'id':r[_0x4c37ef(0x160)]['id'],'params':{'unitId':_0x31b085,'subUnitId':_0x3576c8,'selections':t['Tools'][_0x4c37ef(0x26d)](_0x438806)}}],_0x47f9b5=this[_0x4c37ef(0x1a4)][_0x4c37ef(0x19a)](_0x492ed9,_0x1ec2aa);if(!(0x0,e[_0x4c37ef(0x33d)])(_0x47f9b5))throw _0x47f9b5[_0x4c37ef(0x36b)];let _0x1f3f12=(_0x5a87ca=_0x47f9b5['m2Prime'][0x0])==null||(_0x5a87ca=_0x5a87ca[_0x4c37ef(0x20c)])==null?void 0x0:_0x5a87ca[_0x4c37ef(0x2b1)];if(Array['isArray'](_0x1f3f12)&&_0x1f3f12[_0x4c37ef(0x347)]){if(_0x1f3f12[_0x4c37ef(0x347)]===_0x1ec2aa[0x0][_0x4c37ef(0x20c)][_0x4c37ef(0x2b1)][_0x4c37ef(0x347)]&&_0x1f3f12[_0x4c37ef(0x3ee)]((_0x5f40c6,_0x531f2a)=>t[_0x4c37ef(0x1ab)]['equals'](_0x5f40c6[_0x4c37ef(0x32a)],_0x1ec2aa[0x0][_0x4c37ef(0x20c)][_0x4c37ef(0x2b1)][_0x531f2a][_0x4c37ef(0x32a)])))return;this['_injector'][_0x4c37ef(0x3c5)](t[_0x4c37ef(0x185)])[_0x4c37ef(0x373)](r[_0x4c37ef(0x160)]['id'],{'unitId':_0x31b085,'subUnitId':_0x3576c8,'selections':_0x1f3f12});}}};S=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x1,e['ITransformService']),v(0x2,t[_0x318ac4(0x245)])],S);const C=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x350));let xe=function(_0x4033cb){const _0x4e2356=_0x318ac4;return _0x4033cb[_0x4033cb['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x4e2356(0x1b5),_0x4033cb[_0x4033cb[_0x4e2356(0x3fa)]=0x1]=_0x4e2356(0x3fa),_0x4033cb;}({});function Se(_0x1cee35){const _0x347739=_0x318ac4;var _0x44f099;return!!((_0x44f099=_0x1cee35[_0x347739(0x20c)])!=null&&_0x44f099[_0x347739(0x25b)]);}const Ce=new Set([r[_0x318ac4(0x392)]['id']]),we=new Set([c[_0x318ac4(0x216)]['id'],c[_0x318ac4(0x36f)]['id'],c[_0x318ac4(0x268)]['id'],c[_0x318ac4(0x1c0)]['id']]);function Te(_0x24837a,_0x570431=Ce){const _0x1eba00=_0x318ac4;let _0x1811be=[];for(let _0x266193 of _0x24837a){if(_0x570431[_0x1eba00(0x3e2)](_0x266193['id'])){if(_0x1811be[_0x1eba00(0x347)]>0x0)break;_0x1811be[_0x1eba00(0x154)](_0x266193);break;}if(Se(_0x266193)){if(_0x1811be[_0x1eba00(0x347)]>0x0)break;_0x1811be['push'](_0x266193);break;}_0x1811be['push'](_0x266193);}return _0x1811be;}function w(_0x249d7f,_0x10b0b0,_0x6a2877,_0x321469,_0x5d54aa){const _0x11dcd0=_0x318ac4;let _0xaa4925=Te(_0x249d7f),_0x409ca0=_0x5d54aa[_0x11dcd0(0x3d2)](),_0x33ead5=(_0x409ca0==null?void 0x0:_0x409ca0[_0x11dcd0(0x348)])??_0x11dcd0(0x36d),_0x468f62=(_0x409ca0==null?void 0x0:_0x409ca0['memberID'])??_0x11dcd0(0x36d);return{'changeset':{'unitID':_0x10b0b0,'type':(0x0,e[_0x11dcd0(0x2ae)])(_0x6a2877[_0x11dcd0(0x132)](_0x10b0b0)),'baseRev':_0x321469[_0x11dcd0(0x398)](_0x10b0b0),'revision':0x0,'userID':_0x33ead5,'memberID':_0x468f62,'mutations':_0xaa4925},'pendingMutations':_0x249d7f['slice'](_0xaa4925[_0x11dcd0(0x347)])};}const Ee=w;function De(_0x346898,_0x544c34,_0x4b8302,_0x174871,_0x23c326){const _0x176113=_0x318ac4;let _0x1c2f9b=Te(_0x346898,we),_0x5670fc=_0x23c326['getCurrentUser'](),_0x305948=(_0x5670fc==null?void 0x0:_0x5670fc[_0x176113(0x348)])??_0x176113(0x36d),_0x4c7909=(_0x5670fc==null?void 0x0:_0x5670fc[_0x176113(0x2c7)])??_0x176113(0x36d);return{'changeset':{'unitID':_0x544c34,'type':(0x0,e[_0x176113(0x2ae)])(_0x4b8302[_0x176113(0x132)](_0x544c34)),'baseRev':_0x174871['getCurrentRevOfUnit'](_0x544c34),'revision':0x0,'userID':_0x305948,'memberID':_0x4c7909,'mutations':_0x1c2f9b},'pendingMutations':_0x346898['slice'](_0x1c2f9b[_0x176113(0x347)])};}function Oe(_0x224d75,_0xe3f538,_0x540c2d,_0x1f6312,_0x40d9c8){const _0x5b83dc=_0x318ac4;let _0x4947a9=_0x224d75[_0x5b83dc(0x2ac)]((_0x4c7885,_0xb64db1)=>{const _0x44af73=_0x5b83dc;let _0x39b598=_0x4c7885[_0x4c7885['length']-0x1],{id:_0x396c04}=_0x39b598??{},{id:_0x279f50,type:_0x8cb732}=_0xb64db1,_0x1e0437=_0xb64db1[_0x44af73(0x20c)];if(_0x396c04&&_0x396c04!==_0x279f50)throw Error(_0x44af73(0x32e)+_0x396c04+_0x44af73(0x2af)+_0x279f50+'.');if(!_0x39b598)return[{'id':_0x279f50,'type':_0x8cb732,'params':{'unitId':_0x1e0437['unitId'],'textRanges':_0x1e0437[_0x44af73(0x3ae)],'actions':_0x1e0437[_0x44af73(0x140)]}}];let _0x25af98=_0x39b598[_0x44af73(0x20c)];return ke(_0x25af98,_0x1e0437)?[..._0x4c7885[_0x44af73(0x343)](0x0,-0x1),{..._0x39b598,'id':_0x279f50,'type':_0x8cb732,'params':{'unitId':_0x1e0437[_0x44af73(0x19b)],'textRanges':_0x1e0437['textRanges'],'actions':t[_0x44af73(0x2d2)][_0x44af73(0x2f2)](_0x25af98['actions'],_0x1e0437['actions'])}}]:[..._0x4c7885,{'id':_0x279f50,'type':_0x8cb732,'params':{'unitId':_0x1e0437['unitId'],'textRanges':_0x1e0437[_0x44af73(0x3ae)],'actions':_0x1e0437['actions']}}];},[]),_0x321dee=_0x40d9c8[_0x5b83dc(0x3d2)](),_0x31d3ee=(_0x321dee==null?void 0x0:_0x321dee['userID'])??_0x5b83dc(0x36d),_0x2372b8=(_0x321dee==null?void 0x0:_0x321dee[_0x5b83dc(0x2c7)])??_0x5b83dc(0x36d);return{'changeset':{'unitID':_0xe3f538,'type':(0x0,e[_0x5b83dc(0x2ae)])(_0x540c2d[_0x5b83dc(0x132)](_0xe3f538)),'baseRev':_0x1f6312[_0x5b83dc(0x398)](_0xe3f538),'revision':0x0,'userID':_0x31d3ee,'memberID':_0x2372b8,'mutations':_0x4947a9},'pendingMutations':_0x224d75['slice'](_0x224d75[_0x5b83dc(0x347)])};}function ke(_0x39777d,_0x4d0e43){const _0xb10dd=_0x318ac4;return!Ae(_0x39777d)&&!Ae(_0x4d0e43)&&je(_0x39777d[_0xb10dd(0x140)],_0x4d0e43[_0xb10dd(0x140)]);}function Ae(_0x45983f){const _0x1f56e9=_0x318ac4;return _0x45983f[_0x1f56e9(0x1fc)]!==void 0x0;}function je(_0x44d949,_0x7fbac6){return Me(_0x44d949)&&Me(_0x7fbac6)&&!Pe(_0x44d949)&&!Pe(_0x7fbac6)&&!Ne(_0x44d949)&&!Ne(_0x7fbac6);}function Me(_0x154fd2){const _0x157898=_0x318ac4;return Fe(_0x154fd2)[_0x157898(0x194)](_0x16d95a=>T(_0x16d95a)&&_0x16d95a['et']===_0x157898(0x156));}function Ne(_0x13b8bc){const _0x191cbe=_0x318ac4;return Fe(_0x13b8bc)['some'](_0x13774f=>Array[_0x191cbe(0x2ba)](_0x13774f)||typeof _0x13774f==_0x191cbe(0x30b)||typeof _0x13774f==_0x191cbe(0xd7));}function Pe(_0x25fbed){const _0x81ce80=_0x318ac4;return Fe(_0x25fbed)[_0x81ce80(0x194)](_0x362534=>!T(_0x362534)||_0x362534['et']!==_0x81ce80(0x156)||!Array['isArray'](_0x362534['e'])?!0x1:_0x362534['e'][_0x81ce80(0x194)](_0x1acefe=>!T(_0x1acefe)||!T(_0x1acefe[_0x81ce80(0x175)])?!0x1:Object[_0x81ce80(0x205)][_0x81ce80(0x220)]['call'](_0x1acefe['body'],_0x81ce80(0x37d))||Object[_0x81ce80(0x205)][_0x81ce80(0x220)][_0x81ce80(0x19d)](_0x1acefe[_0x81ce80(0x175)],'columnGroups')||Object[_0x81ce80(0x205)][_0x81ce80(0x220)][_0x81ce80(0x19d)](_0x1acefe[_0x81ce80(0x175)],'blockRanges')));}function Fe(_0x55b743){const _0x3941f2=_0x318ac4;if(!Array[_0x3941f2(0x2ba)](_0x55b743))return[];let _0x359905=_0x55b743[_0x3941f2(0xfa)]('body')?_0x55b743:_0x55b743[_0x3941f2(0x1b8)](_0x51053c=>Array['isArray'](_0x51053c)&&_0x51053c[_0x3941f2(0xfa)](_0x3941f2(0x175)));if(!Array[_0x3941f2(0x2ba)](_0x359905))return[];let _0x4e0a4a=_0x359905[_0x3941f2(0x1ef)](_0x3941f2(0x175));return _0x4e0a4a===-0x1?[]:_0x359905['slice'](_0x4e0a4a+0x1);}function T(_0x1c78bc){const _0x3aa048=_0x318ac4;return typeof _0x1c78bc==_0x3aa048(0x22e)&&!!_0x1c78bc&&!Array[_0x3aa048(0x2ba)](_0x1c78bc);}function Ie(_0x2f375b,_0x5de783){const _0x202014=_0x318ac4;let _0x4fdcd7=new i[(_0x202014(0x349))](0x1);return setTimeout(()=>_0x4fdcd7[_0x202014(0x322)](_0x5de783),_0x2f375b),_0x4fdcd7[_0x202014(0xe7)]()['pipe']((0x0,i[_0x202014(0x161)])(0x1));}var Le,Re,ze;let Be=function(_0x2c969d){const _0x50a990=_0x318ac4;return _0x2c969d['NOT_COLLAB']='not_collab',_0x2c969d['SYNCED']=_0x50a990(0x2fc),_0x2c969d[_0x50a990(0x36e)]=_0x50a990(0x21d),_0x2c969d['AWAITING']=_0x50a990(0x1e5),_0x2c969d[_0x50a990(0x142)]=_0x50a990(0x287),_0x2c969d['FETCH_MISS']='fetch_missing',_0x2c969d[_0x50a990(0x3d7)]=_0x50a990(0x203),_0x2c969d[_0x50a990(0x10e)]=_0x50a990(0x30f),_0x2c969d;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x155fde,_0x2212cc,_0x20fc41,_0x587409,_0x194d77,_0x457629,_0x2c3de5,_0x40ec41,_0x17a81a){const _0x15045e=_0x318ac4;this[_0x15045e(0x234)]=_0x155fde,this[_0x15045e(0x1cf)]=_0x2212cc,this[_0x15045e(0x28b)]=_0x194d77,this['_commandService']=_0x457629,this[_0x15045e(0x20e)]=_0x2c3de5,this[_0x15045e(0x169)]=_0x40ec41,this[_0x15045e(0x1a8)]=_0x17a81a,g(this,_0x15045e(0x30a),null),g(this,_0x15045e(0xd8),[]),this[_0x15045e(0x30a)]=_0x20fc41,this['_pendingMutations']=_0x587409;}[_0x318ac4(0x340)](_0x2a5b83){const _0x2cd07d=_0x318ac4;let _0x4993da=this[_0x2cd07d(0x169)][_0x2cd07d(0x398)](this[_0x2cd07d(0x234)]);return _0x2a5b83[_0x2cd07d(0x37b)]>_0x4993da+0x1?(this['_handler']['onMissingChangesets']({'from':_0x4993da,'to':_0x2a5b83['revision']-0x1}),!0x0):!0x1;}[_0x318ac4(0x200)](_0x10f001){const _0xbec2ac=_0x318ac4;this[_0xbec2ac(0x20e)]['transformUndoRedo'](this[_0xbec2ac(0x234)],_0x10f001);}[_0x318ac4(0x39d)](_0x3b9a72){const _0x2423a6=_0x318ac4;var _0x12ddd3,_0x40c955;(_0x12ddd3=(_0x40c955=this[_0x2423a6(0x28b)])[_0x2423a6(0x22c)])==null||_0x12ddd3[_0x2423a6(0x19d)](_0x40c955,_0x3b9a72);}[_0x318ac4(0x395)](_0x1cb7ca){const _0x46882c=_0x318ac4;var _0x25499c,_0x365167;return(_0x25499c=(_0x365167=this[_0x46882c(0x28b)])['onTransformIME'])==null?void 0x0:_0x25499c[_0x46882c(0x19d)](_0x365167,_0x1cb7ca);}['_transformStateCache'](_0x371f58){const _0x49fc7b=_0x318ac4;var _0x4d2230,_0x14ebed;return(_0x4d2230=(_0x14ebed=this[_0x49fc7b(0x28b)])[_0x49fc7b(0x227)])==null?void 0x0:_0x4d2230[_0x49fc7b(0x19d)](_0x14ebed,_0x371f58);}[_0x318ac4(0x105)](_0x123983){const _0x2ce5d8=_0x318ac4;var _0x1846c9,_0x5049de;return((_0x1846c9=(_0x5049de=this[_0x2ce5d8(0x28b)])[_0x2ce5d8(0x148)])==null?void 0x0:_0x1846c9['call'](_0x5049de,_0x123983))??_0x123983;}[_0x318ac4(0x3bb)](_0x49f40f){const _0x5eeae1=_0x318ac4;var _0x80a940,_0x5d6fa0;return((_0x80a940=(_0x5d6fa0=this[_0x5eeae1(0x28b)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x80a940[_0x5eeae1(0x19d)](_0x5d6fa0,_0x49f40f))??_0x49f40f;}['_syncEditingCollabCursor'](_0x49927b){const _0x570b12=_0x318ac4;if(this[_0x570b12(0x1cf)]===t['UniverInstanceType'][_0x570b12(0x1db)]){let {unitID:_0x4dc45d,mutations:_0xd70a38,memberID:_0x3cf549}=_0x49927b,_0x1d5520=_0xd70a38['length']>0x0?_0xd70a38[0x0][_0x570b12(0x20c)][_0x570b12(0x3ae)]:[];if(Array[_0x570b12(0x2ba)](_0x1d5520)&&_0x1d5520[_0x570b12(0x347)]>0x0){var _0x717dd3,_0x213e56;(_0x717dd3=(_0x213e56=this[_0x570b12(0x28b)])[_0x570b12(0x1d2)])==null||_0x717dd3[_0x570b12(0x19d)](_0x213e56,{'unitID':_0x4dc45d,'memberID':_0x3cf549,'textRanges':_0x1d5520});}}}['_updateLocalCache'](){const _0x2d6224=_0x318ac4;var _0x5a12dc;(_0x5a12dc=this[_0x2d6224(0x1a8)])==null||_0x5a12dc[_0x2d6224(0x11e)](this[_0x2d6224(0x234)],this[_0x2d6224(0x1cf)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x318ac4(0x1b4)](){const _0x37355b=_0x318ac4;return this[_0x37355b(0x169)][_0x37355b(0x398)](this[_0x37355b(0x234)]);}[_0x318ac4(0x320)](){const _0x284263=_0x318ac4;this[_0x284263(0x169)][_0x284263(0x306)](this[_0x284263(0x234)]);}[_0x318ac4(0x29a)](_0xe30628){const _0x52c7a8=_0x318ac4;let _0x5725e1=this[_0x52c7a8(0x105)](_0xe30628);_0x5725e1=this[_0x52c7a8(0x3bb)](_0x5725e1);let _0xa6ab92=(0x0,t[_0x52c7a8(0x259)])(_0x5725e1[_0x52c7a8(0x11a)],this[_0x52c7a8(0x152)],{'fromCollab':!0x0});if(!_0xa6ab92['result'])throw _0xa6ab92['error']instanceof Error?_0xa6ab92[_0x52c7a8(0x36b)]:Error(_0xa6ab92['error']??_0x52c7a8(0x368));this[_0x52c7a8(0x395)](_0x5725e1),this[_0x52c7a8(0x1aa)](_0x5725e1),this[_0x52c7a8(0x200)](_0xe30628),this[_0x52c7a8(0x39d)](_0x5725e1),this[_0x52c7a8(0x24c)](_0x5725e1),this[_0x52c7a8(0x320)]();}};let D=class extends E{constructor(_0x5c2c2f,_0x1f9471,_0x1c633b,_0x2dcbbd,_0x10c49e,_0x45c252,_0x3765f0,_0x5d4dd9,_0x194ae5,_0xbb8684){const _0x458b7c=_0x318ac4;super(_0x5c2c2f,_0x1f9471,null,[],_0x1c633b,_0x3765f0,_0x45c252,_0x2dcbbd,_0xbb8684),this[_0x458b7c(0x1d8)]=_0x10c49e,this[_0x458b7c(0x2fa)]=_0x5d4dd9,this[_0x458b7c(0x1a4)]=_0x194ae5,this[_0x458b7c(0x23d)]=_0xbb8684,g(this,_0x458b7c(0x125),_0x458b7c(0x2fc));}['appendMutation'](_0x16046f){const _0x337bce=_0x318ac4;let _0x208ce0=this[_0x337bce(0x1d8)][_0x337bce(0x188)](O,this[_0x337bce(0x234)],this[_0x337bce(0x1cf)],[_0x16046f],this['_handler']);return _0x208ce0['_schedule'](),_0x208ce0[_0x337bce(0x300)](),_0x208ce0;}[_0x318ac4(0x217)](_0x23f219){const _0x40ff51=_0x318ac4;if(this[_0x40ff51(0x340)](_0x23f219))return this[_0x40ff51(0x1d8)][_0x40ff51(0x188)](N,this[_0x40ff51(0x234)],this[_0x40ff51(0x1cf)],null,[],null,[_0x23f219],this['_handler']);try{let _0x3a77b1=this[_0x40ff51(0x1a4)][_0x40ff51(0x19a)](_0x23f219,[e['EmptyMutationInfo']]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x3a77b1)){let {c1Prime:_0x3a53b0}=_0x3a77b1;return this[_0x40ff51(0x29a)](_0x3a53b0),this;}throw _0x3a77b1[_0x40ff51(0x36b)];}catch(_0x7f07b8){return this[_0x40ff51(0x2fa)][_0x40ff51(0x36b)](_0x7f07b8),this[_0x40ff51(0x223)](!0x1);}}[_0x318ac4(0x223)](_0x11a0aa){const _0x219a92=_0x318ac4;return this[_0x219a92(0x1d8)]['createInstance'](j,this[_0x219a92(0x234)],this[_0x219a92(0x1cf)],null,[],this[_0x219a92(0x28b)],_0x11a0aa);}['onRemoteAck'](_0x33a3a0){const _0x1f2291=_0x318ac4;if(_0x33a3a0[_0x1f2291(0x37b)]<=this['_getCurrentRevision']())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x4cb89e=_0x318ac4;throw Error(_0x4cb89e(0x10c));}[_0x318ac4(0x212)](){return this;}[_0x318ac4(0xe1)](){const _0x2f978b=_0x318ac4;return this['_injector']['createInstance'](M,this[_0x2f978b(0x234)],this[_0x2f978b(0x1cf)],null,[],this[_0x2f978b(0x28b)]);}[_0x318ac4(0x23a)](){return this;}[_0x318ac4(0x363)](){const _0x4a3d78=_0x318ac4;throw Error(_0x4a3d78(0x120));}[_0x318ac4(0x34f)](){const _0x1a6cf1=_0x318ac4;let _0x1d72d2=this['_revisionService'][_0x1a6cf1(0x398)](this[_0x1a6cf1(0x234)]);return this[_0x1a6cf1(0x28b)]['onMissingChangesets']({'from':_0x1d72d2,'to':0x0}),this[_0x1a6cf1(0x1d8)]['createInstance'](N,this[_0x1a6cf1(0x234)],this[_0x1a6cf1(0x1cf)],null,[],null,[],this[_0x1a6cf1(0x28b)]);}};D=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x4,(0x0,t['Inject'])(t[_0x318ac4(0x37e)])),v(0x5,t[_0x318ac4(0x29f)]),v(0x6,t[_0x318ac4(0x185)]),v(0x7,t['ILogService']),v(0x8,e[_0x318ac4(0x28e)]),v(0x9,(0x0,t[_0x318ac4(0x2b2)])(x))],D);let O=Le=class extends E{constructor(_0x490294,_0x3a4b34,_0x2556bb,_0x20598c,_0x5c5700,_0x2657df,_0x391298,_0x2b6dd8,_0x4b2d97,_0x342f6b,_0x4e05dd,_0x4cb178,_0x20f67c,_0x542d6e){const _0x671c79=_0x318ac4;super(_0x490294,_0x3a4b34,null,_0x2556bb,_0x20598c,_0x4b2d97,_0x20f67c,_0x2657df,_0x542d6e),this[_0x671c79(0x1d8)]=_0x5c5700,this[_0x671c79(0x20f)]=_0x391298,this['_logService']=_0x2b6dd8,this[_0x671c79(0x3e9)]=_0x342f6b,this[_0x671c79(0x1a4)]=_0x4e05dd,this['_univerInstanceService']=_0x4cb178,g(this,_0x671c79(0x125),_0x671c79(0x21d)),g(this,_0x671c79(0x2ab),null),g(this,_0x671c79(0x3b3),null);}[_0x318ac4(0x3cd)](_0x1bb83d){const _0xc83f3d=_0x318ac4;return this[_0xc83f3d(0xd8)][_0xc83f3d(0x154)](_0x1bb83d),this[_0xc83f3d(0x300)](),this;}[_0x318ac4(0x217)](_0x471c8b){const _0xed9cf=_0x318ac4;if(this['_checkMissing'](_0x471c8b))return this[_0xed9cf(0x243)](),this['_injector'][_0xed9cf(0x188)](N,this[_0xed9cf(0x234)],this[_0xed9cf(0x1cf)],null,this[_0xed9cf(0xd8)],null,[_0x471c8b],this[_0xed9cf(0x28b)]);try{let _0x34ae49=this[_0xed9cf(0x1a4)][_0xed9cf(0x19a)](_0x471c8b,this['_pendingMutations']);if((0x0,e[_0xed9cf(0x33d)])(_0x34ae49)){let {c1Prime:_0x3fbf1c,m2Prime:_0xb6c6a7}=_0x34ae49;this[_0xed9cf(0x29a)](_0x3fbf1c);let _0x19334f=this[_0xed9cf(0x1d8)][_0xed9cf(0x188)](Le,this[_0xed9cf(0x234)],this[_0xed9cf(0x1cf)],_0xb6c6a7,this['_handler']);this[_0xed9cf(0x243)]();let _0x173b17=new Date()['getTime'](),_0x5e99b4=this['_scheduleCompleteTimestamp']?Math[_0xed9cf(0x168)](this['_scheduleCompleteTimestamp']-_0x173b17,0x0):this[_0xed9cf(0x226)]();return _0x19334f['_schedule'](_0x5e99b4),_0x19334f;}throw _0x34ae49['error'];}catch(_0x254efc){return this[_0xed9cf(0x2fa)][_0xed9cf(0x36b)](_0x254efc),this['_onConflict'](!0x1);}}[_0x318ac4(0x16f)](_0x1ca991){const _0x119361=_0x318ac4;if(_0x1ca991[_0x119361(0x37b)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x1e7351=_0x318ac4;throw Error(_0x1e7351(0x36a));}[_0x318ac4(0x212)](){return this;}[_0x318ac4(0xe1)](){const _0x5e6818=_0x318ac4;return this[_0x5e6818(0x243)](),this[_0x5e6818(0x1d8)][_0x5e6818(0x188)](M,this['unitID'],this[_0x5e6818(0x1cf)],null,this[_0x5e6818(0xd8)],this[_0x5e6818(0x28b)]);}[_0x318ac4(0x23a)](){return this;}[_0x318ac4(0x145)](_0x5d0638){const _0x304851=_0x318ac4;let _0x404042=_0x5d0638??this[_0x304851(0x226)]();this[_0x304851(0x2ab)]=new Date()[_0x304851(0x2a9)]()+_0x404042,this[_0x304851(0x3b3)]=setTimeout(()=>{const _0x240f98=_0x304851;this['_clearScheduledTask']();let _0x1e9b20=null;switch(this['type']){case t[_0x240f98(0x27b)][_0x240f98(0x204)]:_0x1e9b20=w(this[_0x240f98(0xd8)],this[_0x240f98(0x234)],this[_0x240f98(0x1b9)],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;case t[_0x240f98(0x27b)][_0x240f98(0x1db)]:_0x1e9b20=this[_0x240f98(0xd8)][_0x240f98(0x3ee)](_0x1ab158=>_0x1ab158['id']===n[_0x240f98(0x2aa)]['id'])?Oe(this[_0x240f98(0xd8)],this[_0x240f98(0x234)],this['_univerInstanceService'],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]):w(this[_0x240f98(0xd8)],this[_0x240f98(0x234)],this['_univerInstanceService'],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;case t[_0x240f98(0x27b)][_0x240f98(0x1bc)]:_0x1e9b20=De(this[_0x240f98(0xd8)],this[_0x240f98(0x234)],this[_0x240f98(0x1b9)],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;case t[_0x240f98(0x27b)][_0x240f98(0x1df)]:_0x1e9b20=Ee(this['_pendingMutations'],this['unitID'],this[_0x240f98(0x1b9)],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;case t[_0x240f98(0x27b)][_0x240f98(0x177)]:_0x1e9b20=w(this[_0x240f98(0xd8)],this[_0x240f98(0x234)],this[_0x240f98(0x1b9)],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;case t['UniverInstanceType'][_0x240f98(0x30c)]:_0x1e9b20=w(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;default:throw Error(_0x240f98(0x1ca)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x199fa7,pendingMutations:_0x264dc1}=_0x1e9b20;this[_0x240f98(0x28b)][_0x240f98(0x2a2)](_0x199fa7);let _0x109681=_0x264dc1[_0x240f98(0x347)]?this[_0x240f98(0x1d8)][_0x240f98(0x188)](A,this[_0x240f98(0x234)],this[_0x240f98(0x1cf)],_0x199fa7,_0x264dc1,this[_0x240f98(0x28b)],void 0x0):this['_injector']['createInstance'](k,this['unitID'],this[_0x240f98(0x1cf)],_0x199fa7,this['_handler']);_0x109681[_0x240f98(0x300)](),this[_0x240f98(0x28b)][_0x240f98(0x2d0)](this,_0x109681);},_0x404042);}[_0x318ac4(0x226)](){const _0xf7957a=_0x318ac4;let _0x12a2ab=this[_0xf7957a(0x3e9)][_0xf7957a(0x39f)](m);return(_0x12a2ab==null?void 0x0:_0x12a2ab[_0xf7957a(0x333)])??0x7d0;}['resend'](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x330744=_0x318ac4;this[_0x330744(0x3b3)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x318ac4(0x223)](_0x30ce33){const _0x4c30ee=_0x318ac4;return this[_0x4c30ee(0x243)](),this['_injector']['createInstance'](j,this[_0x4c30ee(0x234)],this[_0x4c30ee(0x1cf)],null,this['_pendingMutations'],this['_handler'],_0x30ce33);}};O=Le=y([v(0x4,(0x0,t['Inject'])(t[_0x318ac4(0x37e)])),v(0x5,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x6,(0x0,t['Inject'])(t[_0x318ac4(0x263)])),v(0x7,t[_0x318ac4(0x28c)]),v(0x8,t['ICommandService']),v(0x9,t[_0x318ac4(0x1b7)]),v(0xa,e[_0x318ac4(0x28e)]),v(0xb,t[_0x318ac4(0x245)]),v(0xc,t[_0x318ac4(0x29f)]),v(0xd,(0x0,t[_0x318ac4(0x2b2)])(x))],O);let k=Re=class extends E{constructor(_0x494091,_0x17224b,_0x956c38,_0xc0a9c8,_0x1a5627,_0x3c8244,_0x23cc2d,_0x4e4f5e,_0x5465b3,_0x2cbf4c,_0x550a4e){const _0x19fd00=_0x318ac4;super(_0x494091,_0x17224b,_0x956c38,[],_0xc0a9c8,_0x23cc2d,_0x2cbf4c,_0x3c8244,_0x550a4e),this['_injector']=_0x1a5627,this['_logService']=_0x4e4f5e,this[_0x19fd00(0x1a4)]=_0x5465b3,g(this,'status','awaiting'),g(this,_0x19fd00(0x257),0x0),g(this,_0x19fd00(0x219),0x0),g(this,_0x19fd00(0x34d),void 0x0),g(this,'_sender',void 0x0);}[_0x318ac4(0x3cd)](_0x305f1e){const _0x586876=_0x318ac4;this['_clearScheduledTask']();let _0xb3dea1=this['_injector'][_0x586876(0x188)](A,this[_0x586876(0x234)],this[_0x586876(0x1cf)],this[_0x586876(0x30a)],[_0x305f1e],this[_0x586876(0x28b)],this[_0x586876(0x34d)]);return _0xb3dea1[_0x586876(0x300)](),_0xb3dea1;}[_0x318ac4(0x217)](_0x20eeda){const _0x2b8a54=_0x318ac4;if(this[_0x2b8a54(0x340)](_0x20eeda))return this[_0x2b8a54(0x243)](),this[_0x2b8a54(0x1d8)][_0x2b8a54(0x188)](N,this[_0x2b8a54(0x234)],this[_0x2b8a54(0x1cf)],this[_0x2b8a54(0x30a)],[],null,[_0x20eeda],this[_0x2b8a54(0x28b)]);try{let _0x3b3374=this['_transformService'][_0x2b8a54(0x15e)]([_0x20eeda],[this[_0x2b8a54(0x30a)]],!0x1);if((0x0,e[_0x2b8a54(0x380)])(_0x3b3374)){let {c1Prime:_0x1e2d1f,c2Prime:_0x57a685}=_0x3b3374;this['_executeRemoteChangeset'](_0x1e2d1f[0x0]),_0x57a685[0x0][_0x2b8a54(0x302)]=this[_0x2b8a54(0x1b4)](),this[_0x2b8a54(0x243)]();let _0x597cb4=this[_0x2b8a54(0x1d8)]['createInstance'](Re,this['unitID'],this[_0x2b8a54(0x1cf)],_0x57a685[0x0],this['_handler']);return _0x597cb4[_0x2b8a54(0x300)](),_0x597cb4;}throw _0x3b3374['error'];}catch(_0x41557d){return this[_0x2b8a54(0x2fa)][_0x2b8a54(0x36b)](_0x41557d),this[_0x2b8a54(0x223)](!0x1);}}[_0x318ac4(0x16f)](_0x4db5fa){const _0x5a622a=_0x318ac4;this['_clearScheduledTask']();let _0x58d0f2=this[_0x5a622a(0x169)][_0x5a622a(0x398)](this[_0x5a622a(0x234)]);if(_0x4db5fa['revision']<=_0x58d0f2)return this;if(this['_checkMissing'](_0x4db5fa))return this['_injector'][_0x5a622a(0x188)](N,this['unitID'],this[_0x5a622a(0x1cf)],this[_0x5a622a(0x30a)],[],_0x4db5fa['revision'],[],this['_handler']);this['_incrementRevisionNumber']();let _0x395a13=this['_injector']['createInstance'](D,this[_0x5a622a(0x234)],this['type'],this[_0x5a622a(0x28b)]);return _0x395a13[_0x5a622a(0x300)](),_0x395a13;}[_0x318ac4(0x165)](_0x529468){const _0x5d4ff1=_0x318ac4;return this[_0x5d4ff1(0x223)](!!(_0x529468!=null&&_0x529468[_0x5d4ff1(0x390)]));}['onRemoteRetry'](_0x3b6634){const _0x235f53=_0x318ac4;return this[_0x235f53(0x219)]>He?this['toggleOffline']():(this[_0x235f53(0x34d)]=Ie(this[_0x235f53(0x257)],{'timeout':this['_resendTimeout'],'reqId':_0x3b6634[_0x235f53(0xd9)]}),this[_0x235f53(0x1b3)]=this[_0x235f53(0x34d)][_0x235f53(0x126)](({reqId:_0x11a94c,timeout:_0x58d948})=>{this['_resendWithTimeout'](_0x11a94c,_0x58d948);}),this);}[_0x318ac4(0xe1)](){const _0x595a9f=_0x318ac4;return this[_0x595a9f(0x243)](),this['_injector']['createInstance'](M,this[_0x595a9f(0x234)],this['type'],this[_0x595a9f(0x30a)],[],this[_0x595a9f(0x28b)]);}['toggleOnline'](){return this;}[_0x318ac4(0x363)](){const _0x37e0ec=_0x318ac4;this[_0x37e0ec(0x28b)][_0x37e0ec(0x2a2)](this[_0x37e0ec(0x30a)]);}['_onConflict'](_0xc3d0aa){const _0x45ddef=_0x318ac4;return this[_0x45ddef(0x243)](),this[_0x45ddef(0x1d8)][_0x45ddef(0x188)](j,this['unitID'],this[_0x45ddef(0x1cf)],this[_0x45ddef(0x30a)],[],this['_handler'],_0xc3d0aa);}['_resendWithTimeout'](_0x51a38c,_0x95d6af){const _0x8968ce=_0x318ac4;var _0xbe54f6;_0x51a38c===((_0xbe54f6=this[_0x8968ce(0x30a)])==null?void 0x0:_0xbe54f6['reqId'])&&(this['resend'](),this[_0x8968ce(0x257)]=_0x95d6af===0x0?0x3e8:Math['min'](_0x95d6af*0x2,Ve),this[_0x8968ce(0x219)]+=this[_0x8968ce(0x257)]);}[_0x318ac4(0x243)](){const _0x5a3a97=_0x318ac4;var _0x169223;(_0x169223=this[_0x5a3a97(0x1b3)])==null||_0x169223[_0x5a3a97(0x3f9)](),this[_0x5a3a97(0x257)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};k=Re=y([v(0x4,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x5,(0x0,t['Inject'])(e['RevisionService'])),v(0x6,t['ICommandService']),v(0x7,t[_0x318ac4(0x28c)]),v(0x8,e[_0x318ac4(0x28e)]),v(0x9,t['IUndoRedoService']),v(0xa,(0x0,t[_0x318ac4(0x2b2)])(x))],k);let A=ze=class extends E{constructor(_0x609dff,_0x5c6e3f,_0x144000,_0x491482,_0x122794,_0x3c0fa5,_0x35a3d0,_0x50db59,_0x1e6ec3,_0x5f1800,_0x54a266,_0x5c8ad0,_0x4539c3){const _0x1feabb=_0x318ac4;super(_0x609dff,_0x5c6e3f,_0x144000,_0x491482,_0x122794,_0x1e6ec3,_0x5c8ad0,_0x50db59,_0x4539c3),this[_0x1feabb(0x1d8)]=_0x35a3d0,this['_logService']=_0x5f1800,this[_0x1feabb(0x1a4)]=_0x54a266,this[_0x1feabb(0x23d)]=_0x4539c3,g(this,_0x1feabb(0x125),_0x1feabb(0x287)),g(this,'_resendTimeout',0x0),g(this,_0x1feabb(0x219),0x0),g(this,_0x1feabb(0x34d),void 0x0),g(this,_0x1feabb(0x1b3),void 0x0),_0x3c0fa5&&(this[_0x1feabb(0x34d)]=_0x3c0fa5,this['_sender']=this[_0x1feabb(0x34d)][_0x1feabb(0x126)](({reqId:_0x30827f,timeout:_0x2e6fa6})=>{const _0x49c168=_0x1feabb;this[_0x49c168(0x20a)](_0x30827f,_0x2e6fa6);}));}['appendMutation'](_0xda5571){const _0x238e7a=_0x318ac4;return this[_0x238e7a(0xd8)]['push'](_0xda5571),this;}[_0x318ac4(0x217)](_0x5386e7){const _0x1175a6=_0x318ac4;if(this[_0x1175a6(0x340)](_0x5386e7))return this[_0x1175a6(0x243)](),this[_0x1175a6(0x1d8)][_0x1175a6(0x188)](N,this['unitID'],this[_0x1175a6(0x1cf)],this[_0x1175a6(0x30a)],this[_0x1175a6(0xd8)],null,[_0x5386e7],this[_0x1175a6(0x28b)]);try{let _0x85eb77=this['_transformService'][_0x1175a6(0x15e)]([_0x5386e7],[this['_awaitingChangeset']],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x85eb77)){let {c1Prime:_0x2f5505,c2Prime:_0x225a4f}=_0x85eb77,_0xcc4b87=this['_transformService'][_0x1175a6(0x19a)](_0x2f5505[0x0],this[_0x1175a6(0xd8)]);if((0x0,e[_0x1175a6(0x33d)])(_0xcc4b87)){let {c1Prime:_0x96d66e,m2Prime:_0x507982}=_0xcc4b87;return this[_0x1175a6(0x29a)](_0x96d66e),_0x225a4f[0x0]['baseRev']=this[_0x1175a6(0x1b4)](),this[_0x1175a6(0x243)](),this[_0x1175a6(0x1d8)]['createInstance'](ze,this[_0x1175a6(0x234)],this[_0x1175a6(0x1cf)],_0x225a4f[0x0],_0x507982,this['_handler'],void 0x0);}throw _0xcc4b87[_0x1175a6(0x36b)];}throw _0x85eb77[_0x1175a6(0x36b)];}catch(_0xeaf9a1){return this[_0x1175a6(0x2fa)][_0x1175a6(0x36b)](_0xeaf9a1),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x224d48){const _0x204f5c=_0x318ac4;this['_clearScheduledTask']();let _0x1bb76a=this[_0x204f5c(0x1b4)]();if(_0x224d48[_0x204f5c(0x37b)]<=_0x1bb76a)return this;if(this[_0x204f5c(0x340)](_0x224d48))return this[_0x204f5c(0x1d8)][_0x204f5c(0x188)](N,this[_0x204f5c(0x234)],this['type'],this['_awaitingChangeset'],this[_0x204f5c(0xd8)],_0x224d48[_0x204f5c(0x37b)],[],this[_0x204f5c(0x28b)]);this['_incrementRevisionNumber']();let _0x1993c0=this[_0x204f5c(0x1d8)][_0x204f5c(0x188)](O,this['unitID'],this[_0x204f5c(0x1cf)],this[_0x204f5c(0xd8)],this[_0x204f5c(0x28b)]);return _0x1993c0[_0x204f5c(0x145)](),_0x1993c0[_0x204f5c(0x300)](),_0x1993c0;}[_0x318ac4(0x165)](_0xed0f36){const _0x594383=_0x318ac4;return this[_0x594383(0x223)](!!(_0xed0f36!=null&&_0xed0f36['isPermissionRej']));}[_0x318ac4(0x212)](_0x2c0fce){const _0x48ddbd=_0x318ac4;return this[_0x48ddbd(0x219)]>He?this[_0x48ddbd(0xe1)]():(this[_0x48ddbd(0x34d)]=Ie(this[_0x48ddbd(0x257)],{'timeout':this['_resendTimeout'],'reqId':_0x2c0fce['reqId']}),this[_0x48ddbd(0x1b3)]=this['_resendTimer'][_0x48ddbd(0x126)](({reqId:_0x413c8a,timeout:_0x3414f4})=>{const _0x148e16=_0x48ddbd;this[_0x148e16(0x20a)](_0x413c8a,_0x3414f4);}),this);}[_0x318ac4(0xe1)](){const _0x5f27a3=_0x318ac4;return this[_0x5f27a3(0x243)](),this[_0x5f27a3(0x1d8)]['createInstance'](M,this['unitID'],this[_0x5f27a3(0x1cf)],this[_0x5f27a3(0x30a)],this['_pendingMutations'],this[_0x5f27a3(0x28b)]);}[_0x318ac4(0x23a)](){return this;}['resend'](){const _0x50a16b=_0x318ac4;this[_0x50a16b(0x28b)][_0x50a16b(0x2a2)](this[_0x50a16b(0x30a)]);}[_0x318ac4(0x223)](_0x36e072){const _0x32f456=_0x318ac4;return this[_0x32f456(0x243)](),this[_0x32f456(0x1d8)][_0x32f456(0x188)](j,this[_0x32f456(0x234)],this[_0x32f456(0x1cf)],null,this[_0x32f456(0xd8)],this[_0x32f456(0x28b)],_0x36e072);}['_resendWithTimeout'](_0x4f11ae,_0x232cee){const _0x257a5d=_0x318ac4;var _0x56b241;_0x4f11ae===((_0x56b241=this[_0x257a5d(0x30a)])==null?void 0x0:_0x56b241[_0x257a5d(0xd9)])&&(this[_0x257a5d(0x363)](),this[_0x257a5d(0x257)]=_0x232cee===0x0?0x3e8:Math['min'](_0x232cee*0x2,Ve),this[_0x257a5d(0x219)]+=this[_0x257a5d(0x257)]);}[_0x318ac4(0x243)](){const _0x5ced0b=_0x318ac4;var _0x10bce0;(_0x10bce0=this[_0x5ced0b(0x1b3)])==null||_0x10bce0[_0x5ced0b(0x3f9)](),this[_0x5ced0b(0x257)]=0x0,this[_0x5ced0b(0x219)]=0x0;}};A=ze=y([v(0x6,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x7,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x8,t[_0x318ac4(0x185)]),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,e[_0x318ac4(0x28e)]),v(0xb,t[_0x318ac4(0x29f)]),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(x))],A);let j=class extends E{constructor(_0x186790,_0x4d5b47,_0x47898a,_0x5536ec,_0x551c7a,_0x5724d2=!0x1,_0xe8789a,_0x598cdd,_0x4d699e,_0x46b767,_0xff5056,_0x4358d8,_0x4173ae){const _0x11321f=_0x318ac4;super(_0x186790,_0x4d5b47,_0x47898a,_0x5536ec,_0x551c7a,_0x598cdd,_0x4d699e,_0x46b767,_0x4173ae),this[_0x11321f(0x237)]=_0x5724d2,this[_0x11321f(0x198)]=_0xe8789a,this[_0x11321f(0x18d)]=_0xff5056,this['_collaborationUIEventService']=_0x4358d8,this[_0x11321f(0x23d)]=_0x4173ae,g(this,_0x11321f(0x125),'conflict'),this['_showConflictNotification'](),this[_0x11321f(0x2ad)](),this[_0x11321f(0x2ca)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x318ac4(0x16f)](){return this;}[_0x318ac4(0x165)](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x318ac4(0x23a)](){return this;}[_0x318ac4(0x363)](){const _0x4b2b46=_0x318ac4;throw Error(_0x4b2b46(0x236));}['_clearLocalCache'](){const _0x21ee4c=_0x318ac4;var _0x51063d,_0x1fce38,_0x302f7b;(_0x51063d=this[_0x21ee4c(0x1a8)])==null||(_0x1fce38=_0x51063d[_0x21ee4c(0x387)])==null||(_0x1fce38=_0x1fce38['call'](_0x51063d,this[_0x21ee4c(0x234)],_0x21ee4c(0x203)))==null||_0x1fce38[_0x21ee4c(0x3fb)](()=>void 0x0),(_0x302f7b=this[_0x21ee4c(0x1a8)])==null||_0x302f7b[_0x21ee4c(0x11e)](this[_0x21ee4c(0x234)],this['type'],null,[]);}[_0x318ac4(0x312)](){const _0x4911b6=_0x318ac4;this[_0x4911b6(0x237)]?this['_collaborationUIEventService'][_0x4911b6(0x3b5)]({'id':_0x4911b6(0x18a)}):this[_0x4911b6(0x20b)][_0x4911b6(0x3b5)]({'id':_0x4911b6(0x3d7)});}['_disableEditing'](){const _0x5401af=_0x318ac4;this[_0x5401af(0x198)][_0x5401af(0x311)](new r['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x318ac4(0x394)])(t['IPermissionService'])),v(0x7,t[_0x318ac4(0x185)]),v(0x8,t[_0x318ac4(0x29f)]),v(0x9,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0xa,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x31e)])),v(0xb,(0x0,t[_0x318ac4(0x394)])(_)),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(x))],j);let M=class extends E{constructor(_0x10e636,_0x172f36,_0x38f6c8,_0x26af57,_0x588497,_0x4941e3,_0x1b1588,_0x50cbac,_0x5c85a1,_0x5dd3d3){const _0xed5378=_0x318ac4;super(_0x10e636,_0x172f36,_0x38f6c8,_0x26af57,_0x588497,_0x50cbac,_0x5c85a1,_0x1b1588,_0x5dd3d3),this[_0xed5378(0x1d8)]=_0x4941e3,g(this,'status',_0xed5378(0x30f));}[_0x318ac4(0x3cd)](_0x162f4f){const _0x148a3e=_0x318ac4;return this[_0x148a3e(0xd8)][_0x148a3e(0x154)](_0x162f4f),this[_0x148a3e(0x300)](),this;}[_0x318ac4(0x217)](_0x293858){const _0x2ad5e2=_0x318ac4;throw Error(_0x2ad5e2(0x2d5));}['onRemoteAck'](){const _0xbc7d14=_0x318ac4;throw Error(_0xbc7d14(0x3af));}[_0x318ac4(0x165)](){const _0x5a914b=_0x318ac4;throw Error(_0x5a914b(0x211));}['onRemoteRetry'](){return this;}[_0x318ac4(0xe1)](){return this;}[_0x318ac4(0x23a)](){const _0xd89672=_0x318ac4;let {_injector:_0x237a2e,_pendingMutations:_0x3fad7f,_awaitingChangeset:_0x4f779c,unitID:_0x6dd61,_handler:_0x20ce71,type:_0x41acfa}=this,_0x20fe97=Ue(_0x237a2e,_0x6dd61,_0x41acfa,_0x4f779c,_0x3fad7f,_0x20ce71);return _0x20fe97 instanceof O?_0x20fe97[_0xd89672(0x145)]():(_0x20fe97 instanceof A||_0x20fe97 instanceof k)&&_0x20fe97['resend'](),_0x20fe97;}[_0x318ac4(0x363)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};M=y([v(0x5,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,t[_0x318ac4(0x185)]),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t['Optional'])(x))],M);let N=class extends E{constructor(_0x2a805a,_0x27e05f,_0x4f48d7,_0x4068cf,_0x4ca1c8,_0x25d5fc,_0x4539c2,_0x1406d9,_0x1e2035,_0x3472ef,_0x5d55ba,_0x237a16,_0x127fd2,_0x435343){const _0x5ac8c5=_0x318ac4;super(_0x2a805a,_0x27e05f,_0x4f48d7,_0x4068cf,_0x4539c2,_0x5d55ba,_0x237a16,_0x1e2035,_0x435343),this[_0x5ac8c5(0x12c)]=_0x4ca1c8,this[_0x5ac8c5(0x182)]=_0x25d5fc,this[_0x5ac8c5(0x1d8)]=_0x1406d9,this[_0x5ac8c5(0x2fa)]=_0x3472ef,this[_0x5ac8c5(0x1a4)]=_0x127fd2,this['localCacheService']=_0x435343,g(this,_0x5ac8c5(0x125),'fetch_missing');}[_0x318ac4(0x286)](_0xdf603){const _0x508f4d=_0x318ac4;try{if(this[_0x508f4d(0x3f1)](_0xdf603)[_0x508f4d(0x176)])throw Error(_0x508f4d(0x139));if(this[_0x508f4d(0x3f1)]([...this[_0x508f4d(0x182)]][_0x508f4d(0x1f0)]((_0x4c3577,_0x2dce20)=>_0x4c3577[_0x508f4d(0x37b)]-_0x2dce20[_0x508f4d(0x37b)]))[_0x508f4d(0x176)])return this[_0x508f4d(0x182)]=[],this['_updateLocalCache'](),this[_0x508f4d(0x28b)]['onMissingChangesets']({'from':this[_0x508f4d(0x1b4)](),'to':0x0}),this;let _0x27d275=this[_0x508f4d(0x30a)],_0x182a48=this[_0x508f4d(0xd8)],_0xb41333;if(_0x27d275&&_0x182a48[_0x508f4d(0x347)]!==0x0)_0xb41333=this[_0x508f4d(0x1d8)][_0x508f4d(0x188)](A,this[_0x508f4d(0x234)],this['type'],_0x27d275,_0x182a48,this[_0x508f4d(0x28b)],void 0x0);else{if(_0x27d275&&_0x182a48[_0x508f4d(0x347)]===0x0)_0x27d275['baseRev']=this[_0x508f4d(0x1b4)](),_0xb41333=this[_0x508f4d(0x1d8)]['createInstance'](k,this[_0x508f4d(0x234)],this[_0x508f4d(0x1cf)],_0x27d275,this[_0x508f4d(0x28b)]);else{if(_0x182a48[_0x508f4d(0x347)]!==0x0){let _0x505bb4=this[_0x508f4d(0x1d8)]['createInstance'](O,this[_0x508f4d(0x234)],this[_0x508f4d(0x1cf)],_0x182a48,this[_0x508f4d(0x28b)]);_0x505bb4[_0x508f4d(0x145)](),_0xb41333=_0x505bb4;}else _0xb41333=this[_0x508f4d(0x1d8)][_0x508f4d(0x188)](D,this[_0x508f4d(0x234)],this[_0x508f4d(0x1cf)],this[_0x508f4d(0x28b)]);}}return _0xb41333['_updateLocalCache'](),_0xb41333;}catch(_0x1bb1fa){return this[_0x508f4d(0x2fa)][_0x508f4d(0x36b)](_0x508f4d(0x12e),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1bb1fa),this[_0x508f4d(0x1d8)][_0x508f4d(0x188)](j,this[_0x508f4d(0x234)],this[_0x508f4d(0x1cf)],this[_0x508f4d(0x30a)],this[_0x508f4d(0xd8)],this[_0x508f4d(0x28b)],!0x1);}}['_handleRemoteChangesets'](_0x3c3927){const _0x2662a7=_0x318ac4;this[_0x2662a7(0x2f8)]();for(let _0x157fc8=0x0;_0x157fc8<_0x3c3927['length'];_0x157fc8++){let _0x232f98=_0x3c3927[_0x157fc8],_0xd353d1=this[_0x2662a7(0x1b4)]();if(!(_0x232f98[_0x2662a7(0x37b)]<=_0xd353d1)){if(_0x232f98[_0x2662a7(0x37b)]>_0xd353d1+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x232f98)){this['_acknowledgeAwaiting']();continue;}this['_transformAndApplyRemoteChangeset'](_0x232f98),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x318ac4(0x359)](_0x45bec8){const _0x36db38=_0x318ac4;let _0x4ade9d=_0x45bec8,_0x23554e=this[_0x36db38(0x30a)];if(_0x23554e){let _0x453875=this[_0x36db38(0x1a4)][_0x36db38(0x15e)]([_0x45bec8],[_0x23554e],!0x1);if(!(0x0,e[_0x36db38(0x380)])(_0x453875))throw _0x453875[_0x36db38(0x36b)];_0x4ade9d=_0x453875['c1Prime'][0x0],_0x23554e=_0x453875[_0x36db38(0x190)][0x0];}let _0x37d663=this[_0x36db38(0xd8)];if(_0x37d663[_0x36db38(0x347)]){let _0x39b1ba=this[_0x36db38(0x1a4)][_0x36db38(0x19a)](_0x4ade9d,_0x37d663);if(!(0x0,e[_0x36db38(0x33d)])(_0x39b1ba))throw _0x39b1ba[_0x36db38(0x36b)];_0x4ade9d=_0x39b1ba[_0x36db38(0x15c)],_0x37d663=_0x39b1ba[_0x36db38(0x1fd)];}this[_0x36db38(0x29a)](_0x4ade9d),_0x23554e&&(_0x23554e[_0x36db38(0x302)]=this[_0x36db38(0x1b4)]()),this[_0x36db38(0x30a)]=_0x23554e,this[_0x36db38(0xd8)]=_0x37d663;}[_0x318ac4(0x2f8)](){const _0x4ad261=_0x318ac4;if(!this['_awaitingChangeset']||this['_acknowledgedAwaitingRevision']==null)return;let _0x158354=this[_0x4ad261(0x1b4)]();if(this[_0x4ad261(0x12c)]<=_0x158354)throw Error(_0x4ad261(0x3c7)+this[_0x4ad261(0x12c)]+'.');this[_0x4ad261(0x12c)]===_0x158354+0x1&&this[_0x4ad261(0x3a9)]();}[_0x318ac4(0x3a9)](){const _0x2cd490=_0x318ac4;this[_0x2cd490(0x320)](),this[_0x2cd490(0x30a)]=null,this[_0x2cd490(0x12c)]=null;}[_0x318ac4(0x23f)](_0xb3f8f1){const _0x1da631=_0x318ac4;let _0x39c835=this[_0x1da631(0x30a)];return!_0x39c835||!_0x39c835[_0x1da631(0x1a3)]||_0x39c835[_0x1da631(0xd9)]===null||_0x39c835[_0x1da631(0xd9)]===void 0x0?!0x1:_0xb3f8f1[_0x1da631(0x234)]===_0x39c835[_0x1da631(0x234)]&&_0xb3f8f1['sid']===_0x39c835['sid']&&_0xb3f8f1['reqId']===_0x39c835[_0x1da631(0xd9)];}['resend'](){const _0xeda54b=_0x318ac4;throw Error(_0xeda54b(0x3a5));}['appendMutation'](_0x4d91b4){const _0x573e51=_0x318ac4;return this['_pendingMutations'][_0x573e51(0x154)](_0x4d91b4),this;}[_0x318ac4(0x217)](_0x3a350a){const _0x46e235=_0x318ac4;return this[_0x46e235(0x182)][_0x46e235(0x154)](_0x3a350a),this;}[_0x318ac4(0x16f)](_0x41a262){const _0x9795b9=_0x318ac4;if(this[_0x9795b9(0x30a)]){let _0x25b328=this['_getCurrentRevision']();return _0x41a262[_0x9795b9(0x37b)]<=_0x25b328||(_0x25b328+0x1===_0x41a262[_0x9795b9(0x37b)]?(this[_0x9795b9(0x320)](),this[_0x9795b9(0x30a)]=null,this[_0x9795b9(0x12c)]=null):this[_0x9795b9(0x12c)]=_0x41a262['revision']),this;}if(_0x41a262[_0x9795b9(0x37b)]<=this[_0x9795b9(0x1b4)]())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x318ac4(0x165)](_0x451469){const _0x3211e1=_0x318ac4;return this[_0x3211e1(0x223)](!!(_0x451469!=null&&_0x451469[_0x3211e1(0x390)]));}[_0x318ac4(0x212)](){return this;}[_0x318ac4(0xe1)](){const _0x584617=_0x318ac4;return this[_0x584617(0x1d8)][_0x584617(0x188)](M,this[_0x584617(0x234)],this[_0x584617(0x1cf)],this[_0x584617(0x30a)],this['_pendingMutations'],this[_0x584617(0x28b)]);}[_0x318ac4(0x23a)](){return this;}[_0x318ac4(0x223)](_0x2c8d9a){const _0x23a91a=_0x318ac4;return this[_0x23a91a(0x1d8)][_0x23a91a(0x188)](j,this[_0x23a91a(0x234)],this[_0x23a91a(0x1cf)],this[_0x23a91a(0x30a)],this[_0x23a91a(0xd8)],this[_0x23a91a(0x28b)],_0x2c8d9a);}};N=y([v(0x7,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x8,(0x0,t['Inject'])(e[_0x318ac4(0x371)])),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t['IUndoRedoService']),v(0xc,e['ITransformService']),v(0xd,(0x0,t['Optional'])(x))],N);function Ue(_0x41bc27,_0x56ba1e,_0x13a4d3,_0x286e0f,_0x175f20,_0x16f634){const _0x336e9a=_0x318ac4;return _0x286e0f&&_0x175f20[_0x336e9a(0x347)]?_0x41bc27[_0x336e9a(0x188)](A,_0x56ba1e,_0x13a4d3,_0x286e0f,_0x175f20,_0x16f634,void 0x0):_0x286e0f?_0x41bc27[_0x336e9a(0x188)](k,_0x56ba1e,_0x13a4d3,_0x286e0f,_0x16f634):_0x175f20[_0x336e9a(0x347)]?_0x41bc27[_0x336e9a(0x188)](O,_0x56ba1e,_0x13a4d3,_0x175f20,_0x16f634):_0x41bc27[_0x336e9a(0x188)](D,_0x56ba1e,_0x13a4d3,_0x16f634);}let P=class extends t[_0x318ac4(0x269)]{get['state'](){const _0x48cabf=_0x318ac4;return this[_0x48cabf(0x2c0)];}constructor(_0x16f801,_0x224639,_0x207bdc,_0x1f1021,_0x24d42e,_0xc4f856,_0x79cee3,_0x4d4e11,_0x59f2e0,_0x51eb29,_0x1b1cb8,_0x510890,_0x41a0a4,_0x5b43d2){const _0x37e703=_0x318ac4;super(),this[_0x37e703(0x234)]=_0x16f801,this[_0x37e703(0x3db)]=_0x224639,this[_0x37e703(0x3da)]=_0x207bdc,this[_0x37e703(0x1d8)]=_0x1f1021,this['_compressMutationService']=_0x24d42e,this[_0x37e703(0x18d)]=_0xc4f856,this[_0x37e703(0x169)]=_0x79cee3,this[_0x37e703(0x1fb)]=_0x4d4e11,this[_0x37e703(0x1b9)]=_0x59f2e0,this[_0x37e703(0x2fa)]=_0x51eb29,this['_commandService']=_0x1b1cb8,this[_0x37e703(0x198)]=_0x510890,this[_0x37e703(0x14f)]=_0x41a0a4,this['_localCacheService']=_0x5b43d2,g(this,'_state$',new i[(_0x37e703(0x193))](null)),g(this,'state$',this[_0x37e703(0x2e7)][_0x37e703(0xe7)]()),g(this,_0x37e703(0x2c0),void 0x0),g(this,_0x37e703(0x1dc),!0x1),g(this,'_changesetSessionId',''),g(this,'_changesetReqId',0x0),g(this,_0x37e703(0x233),this[_0x37e703(0x351)][_0x37e703(0x304)]((0x0,i['map'])(_0xfac079=>_0xfac079?_0xfac079[_0x37e703(0x125)]:'offline'),(0x0,i[_0x37e703(0x23b)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x37e703(0x241),!0x1),g(this,_0x37e703(0x183),[]);}async[_0x318ac4(0x2e5)](){const _0x2e425c=_0x318ac4;if(this[_0x2e425c(0x360)])throw Error(_0x2e425c(0x2f1));await this['_init']();}['pauseCollaboration'](){const _0x462a80=_0x318ac4;return this[_0x462a80(0x1dc)]=!0x0,(0x0,t['toDisposable'])(()=>{const _0x3da5d5=_0x462a80;this['_collaborationPaused']=!0x1,this[_0x3da5d5(0x128)]();});}[_0x318ac4(0x1e8)](_0x4c8e7c){const _0x4d2869=_0x318ac4;this[_0x4d2869(0x3d8)](_0x4c8e7c);}[_0x318ac4(0x146)](_0x34f08f){const _0x4b0c58=_0x318ac4;this[_0x4b0c58(0x2c0)]=_0x34f08f,this[_0x4b0c58(0x2e7)][_0x4b0c58(0x322)](_0x34f08f);}async['_init'](){const _0x22c82c=_0x318ac4;if(this[_0x22c82c(0x146)](await this[_0x22c82c(0x315)]()),this['_singleActiveUnitService']){var _0xc467d7;(_0xc467d7=this[_0x22c82c(0x14f)])==null||_0xc467d7[_0x22c82c(0x244)](this[_0x22c82c(0x234)]),this['disposeWithMe'](this[_0x22c82c(0x14f)][_0x22c82c(0x3b1)](this['unitID'])[_0x22c82c(0x126)](_0x12c8b5=>{const _0x514694=_0x22c82c;this[_0x514694(0x2fa)][_0x514694(0x195)](_0x514694(0x1f9),_0x514694(0x1e7),_0x12c8b5),_0x12c8b5===0x1?(this[_0x514694(0x1fb)][_0x514694(0x3b5)]({'id':_0x514694(0x153)}),this[_0x514694(0x198)][_0x514694(0x311)](new r[(_0x514694(0x2d3))](this[_0x514694(0x234)])['id'],!0x1),this['_permissionService'][_0x514694(0xea)](!0x1)):(this[_0x514694(0x198)][_0x514694(0x311)](new r[(_0x514694(0x2d3))](this[_0x514694(0x234)])['id'],!0x0),this[_0x514694(0x198)][_0x514694(0xea)](!0x0));}));}let _0x580748=!0x1;return this[_0x22c82c(0x309)](this['session'][_0x22c82c(0x122)][_0x22c82c(0x126)](_0x580320=>{_0x580320===0x3?this['_toggleOnline'](_0x580748):_0x580320===0x2&&(_0x580748=!0x0,this['_toggleOffline']());})),this[_0x22c82c(0x309)](this[_0x22c82c(0x3db)][_0x22c82c(0x21b)][_0x22c82c(0x126)](_0x2c8c26=>{const _0x246c22=_0x22c82c;try{switch(_0x2c8c26[_0x246c22(0x1da)]){case e[_0x246c22(0x364)]['NEW_CHANGESETS']:this[_0x246c22(0x388)]((0x0,e[_0x246c22(0x27d)])(_0x2c8c26[_0x246c22(0x1ec)]));break;case e[_0x246c22(0x364)][_0x246c22(0x235)]:this['_onRemoteACK'](_0x2c8c26[_0x246c22(0x1ec)]);break;case e[_0x246c22(0x364)]['CHANGESET_REJ']:this['_onRemoteRejected']();break;case e['CollaborationEvent'][_0x246c22(0x197)]:this[_0x246c22(0x1a7)](_0x2c8c26[_0x246c22(0x1ec)]);break;case e[_0x246c22(0x364)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x246c22(0x367)](_0x2c8c26[_0x246c22(0x1ec)]['changesets']['map'](_0x4468c2=>(0x0,e['parseProtocolChangeset'])(_0x4468c2)));break;case e[_0x246c22(0x364)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case e[_0x246c22(0x364)]['UNISCRIPT_RUN']:break;}}catch(_0x25c708){throw console['error'](_0x246c22(0x229),_0x25c708),_0x25c708;}})),this[_0x22c82c(0x2c0)];}[_0x318ac4(0x310)](){const _0x458e5d=_0x318ac4;this[_0x458e5d(0x241)]=!0x1;}[_0x318ac4(0x15f)](){const _0x29ef1a=_0x318ac4;if(this[_0x29ef1a(0x241)])throw Error(_0x29ef1a(0x339));this[_0x29ef1a(0x241)]=!0x0;}[_0x318ac4(0x3d8)](_0x2dd505){const _0x8fd89=_0x318ac4;this[_0x8fd89(0x15f)](),this[_0x8fd89(0x146)](this[_0x8fd89(0x2c0)][_0x8fd89(0x3cd)](_0x2dd505)),this['_unlockTransition']();}[_0x318ac4(0x388)](_0x39a09a){const _0x571a44=_0x318ac4;if(!(_0x39a09a['revision']<=this[_0x571a44(0x169)][_0x571a44(0x398)](this[_0x571a44(0x234)]))){if(this['_collaborationPaused']){this[_0x571a44(0x183)][_0x571a44(0x154)](_0x39a09a);return;}this['_applyRemoteChangeset'](_0x39a09a);}}['_exhaustRemoteChangesetQueue'](){const _0x4733c8=_0x318ac4;this['_remoteChangesetQueue']['forEach'](_0x265f1e=>this[_0x4733c8(0x21f)](_0x265f1e)),this[_0x4733c8(0x183)]=[];}['_applyRemoteChangeset'](_0x43afee){const _0x31302f=_0x318ac4;let _0x12860b=this[_0x31302f(0x3ab)]['interceptor']['fetchThroughInterceptors'](this[_0x31302f(0x3ab)]['interceptor']['getInterceptPoints']()[_0x31302f(0x346)])(_0x43afee['mutations'],null)||_0x43afee[_0x31302f(0x11a)],_0x12497b={..._0x43afee,'mutations':_0x12860b};this['_lockTransition'](),this[_0x31302f(0x146)](this[_0x31302f(0x2c0)][_0x31302f(0x217)](_0x12497b)),this[_0x31302f(0x310)]();}[_0x318ac4(0x35c)](_0x63ed24){const _0x115f7d=_0x318ac4;this[_0x115f7d(0x15f)](),this[_0x115f7d(0x146)](this[_0x115f7d(0x2c0)][_0x115f7d(0x16f)](_0x63ed24)),this['_unlockTransition']();}['_onRemoteRejected'](_0x57b27f){const _0xa9b7a2=_0x318ac4;this['_lockTransition'](),this[_0xa9b7a2(0x146)](this[_0xa9b7a2(0x2c0)][_0xa9b7a2(0x165)](_0x57b27f)),this[_0xa9b7a2(0x310)]();}[_0x318ac4(0x1a7)](_0x34398d){const _0x3ac6de=_0x318ac4;this['_lockTransition'](),this[_0x3ac6de(0x146)](this['_state'][_0x3ac6de(0x212)](_0x34398d)),this[_0x3ac6de(0x310)]();}[_0x318ac4(0x367)](_0x2930e0){const _0x51f198=_0x318ac4;if(!(this[_0x51f198(0x2c0)]instanceof N))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x16baa1=_0x2930e0['map'](_0x486eff=>{const _0x4d4cb9=_0x51f198;let _0x290e0f=this[_0x4d4cb9(0x3ab)]['interceptor']['fetchThroughInterceptors'](this[_0x4d4cb9(0x3ab)]['interceptor'][_0x4d4cb9(0x2cb)]()[_0x4d4cb9(0x346)])(_0x486eff[_0x4d4cb9(0x11a)],null)||_0x486eff[_0x4d4cb9(0x11a)];return{..._0x486eff,'mutations':_0x290e0f};});this[_0x51f198(0x15f)](),this[_0x51f198(0x146)](this[_0x51f198(0x2c0)][_0x51f198(0x286)](_0x16baa1)),this[_0x51f198(0x310)]();}[_0x318ac4(0x3d1)](){const _0x284029=_0x318ac4;this[_0x284029(0x15f)](),this[_0x284029(0x146)](this['_state'][_0x284029(0xe1)]()),this[_0x284029(0x310)]();}['_toggleOnline'](_0x40b4a5=!0x1){const _0x3a6be0=_0x318ac4;this[_0x3a6be0(0x15f)](),this[_0x3a6be0(0x146)](this[_0x3a6be0(0x2c0)][_0x3a6be0(0x23a)]()),this[_0x3a6be0(0x310)]();let _0x510588=this[_0x3a6be0(0x2c0)];_0x40b4a5&&_0x510588 instanceof D&&(this[_0x3a6be0(0x15f)](),this[_0x3a6be0(0x146)](_0x510588[_0x3a6be0(0x34f)]()),this[_0x3a6be0(0x310)]());}async['_createInitialState'](){return new Promise(_0x4e53c4=>{const _0x34548c=_0x2ea1;this['session'][_0x34548c(0x122)][_0x34548c(0x304)]((0x0,i['take'])(0x1))[_0x34548c(0x126)](async _0x17dee5=>{const _0x34e7af=_0x34548c;_0x4e53c4(await this[_0x34e7af(0x2c5)](_0x17dee5===0x3));});});}['_createHandler'](){const _0x3e544a=_0x318ac4;let _0xb92df4=this[_0x3e544a(0x234)];return{'onStateChange':(_0xcdeca6,_0x3c4d4b)=>{const _0x4b7c69=_0x3e544a;if(_0xcdeca6!==this[_0x4b7c69(0x2c0)])throw Error(_0x4b7c69(0x21a)+_0xcdeca6['status']+'\x0aAfter:\x20'+_0x3c4d4b[_0x4b7c69(0x125)]+'\x0aCurrent:\x20'+this[_0x4b7c69(0x2c0)][_0x4b7c69(0x125)]);this[_0x4b7c69(0x146)](_0x3c4d4b);},'onSendChangeset':_0x222fb9=>{const _0x9526d1=_0x3e544a;_0x222fb9[_0x9526d1(0x1a3)]||(_0x222fb9[_0x9526d1(0x1a3)]=this[_0x9526d1(0x178)],_0x222fb9['reqId']=++this['_changesetReqId']);let _0x3256f4={'eventID':e[_0x9526d1(0x364)][_0x9526d1(0x18f)],'data':{'unitID':_0x222fb9[_0x9526d1(0x234)],'unitType':this['_type'],'changeset':_0x222fb9,'memberID':this[_0x9526d1(0x3db)]['getMemberID']()}};this[_0x9526d1(0x3db)][_0x9526d1(0x2a3)](_0x3256f4,this['unitID']);},'onMissingChangesets':({from:_0x4f592d,to:_0x43702d})=>{const _0x28f9ee=_0x3e544a;this[_0x28f9ee(0x2fa)]['debug'](_0x28f9ee(0x1f9),_0x28f9ee(0x109)+_0x4f592d+_0x28f9ee(0x308)+_0x43702d);let _0x5b8c18={'eventID':e[_0x28f9ee(0x364)][_0x28f9ee(0xf6)],'data':{'unitID':_0xb92df4,'unitType':this['_type'],'from':_0x4f592d,'to':_0x43702d}};this[_0x28f9ee(0x3db)]['send'](_0x5b8c18,this['unitID']);}};}async[_0x318ac4(0x2c5)](_0x5b829e){const _0x5768d3=_0x318ac4;var _0x51cd3e;let _0x49f7ba=await((_0x51cd3e=this[_0x5768d3(0x1a8)])==null?void 0x0:_0x51cd3e[_0x5768d3(0x10d)](this['unitID'])),_0x9fc9f1=(_0x49f7ba==null?void 0x0:_0x49f7ba[_0x5768d3(0x11a)])??[],_0x322485=(_0x49f7ba==null?void 0x0:_0x49f7ba[_0x5768d3(0x181)])??null,_0x462be4=!!(_0x322485!=null&&_0x322485[_0x5768d3(0x1a3)])&&!!(_0x322485!=null&&_0x322485[_0x5768d3(0xd9)]);this['_changesetSessionId']=_0x462be4?_0x322485['sid']:(0x0,e[_0x5768d3(0x13f)])(),this[_0x5768d3(0x1a9)]=_0x462be4?_0x322485['reqId']:0x0;let _0x1cba70=this[_0x5768d3(0x234)];try{this['_replayCachedMutations'](_0x322485,_0x9fc9f1);}catch(_0x12e0fb){this[_0x5768d3(0x2fa)][_0x5768d3(0x36b)](_0x12e0fb);}let _0x589515=this[_0x5768d3(0x1d9)]();if(_0x5b829e){let _0x294785=Ue(this[_0x5768d3(0x1d8)],_0x1cba70,this[_0x5768d3(0x3da)],_0x322485,_0x9fc9f1,_0x589515);return _0x294785 instanceof O?_0x294785['_schedule']():(_0x294785 instanceof A||_0x294785 instanceof k)&&_0x294785['resend'](),_0x294785;}return this[_0x5768d3(0x1d8)][_0x5768d3(0x188)](M,_0x1cba70,this[_0x5768d3(0x3da)],_0x322485,_0x9fc9f1,_0x589515);}[_0x318ac4(0x23c)](_0x23c01b,_0x503cc2){const _0x1716c5=_0x318ac4;var _0x287f83,_0x5bf2d0;let _0x30aa6f=this[_0x1716c5(0x3ab)][_0x1716c5(0xff)][_0x1716c5(0x16b)](this[_0x1716c5(0x3ab)][_0x1716c5(0xff)][_0x1716c5(0x2cb)]()[_0x1716c5(0x346)]);(_0x287f83=_0x30aa6f((_0x23c01b==null?void 0x0:_0x23c01b['mutations'])||[],null))==null||_0x287f83[_0x1716c5(0x2cc)](_0x5906ef=>this[_0x1716c5(0x152)]['executeCommand'](_0x5906ef['id'],_0x5906ef[_0x1716c5(0x20c)])),(_0x5bf2d0=_0x30aa6f(_0x503cc2||[],null))==null||_0x5bf2d0[_0x1716c5(0x2cc)](_0x4ba24b=>this[_0x1716c5(0x152)][_0x1716c5(0x373)](_0x4ba24b['id'],_0x4ba24b[_0x1716c5(0x20c)]));}};P=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t['Inject'])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x318ac4(0x371)])),v(0x7,(0x0,t[_0x318ac4(0x394)])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(C)),v(0xd,(0x0,t[_0x318ac4(0x2b2)])(x))],P);let F=class extends P{constructor(_0x859c39,_0x4ee579,_0x196c7d,_0x4db9b4,_0x5b671b,_0x40ef40,_0x45a113,_0x559092,_0x496e48,_0x4dbefb,_0xf75859,_0x1d7f76,_0x46d956,_0x20a896,_0x811e27){const _0x25682f=_0x318ac4;super(_0x859c39,_0x196c7d,_0x4ee579,_0x4db9b4,_0x5b671b,_0x40ef40,_0x45a113,_0x559092,_0x496e48,_0x4dbefb,_0xf75859,_0x1d7f76,_0x20a896,_0x811e27),this[_0x25682f(0x234)]=_0x859c39,this[_0x25682f(0x1cf)]=_0x4ee579,this['_docStateChangeManagerService']=_0x46d956,g(this,_0x25682f(0x10f),null);}[_0x318ac4(0xf8)](_0x666387){const _0x3bccf2=_0x318ac4;this[_0x3bccf2(0x10f)]=_0x666387;}[_0x318ac4(0x171)](){const _0x5108d9=_0x318ac4;this[_0x5108d9(0x10f)]=null,super[_0x5108d9(0x171)]();}[_0x318ac4(0x1d9)](){const _0x35cef9=_0x318ac4;let _0x9d6ea3=super['_createHandler']();return _0x9d6ea3['onTransformIME']=_0x53b20a=>{const _0x211bc9=_0x2ea1;var _0x4b687d,_0x3043c6;return(_0x4b687d=this[_0x211bc9(0x10f)])==null||(_0x3043c6=_0x4b687d['onTransformIME'])==null?void 0x0:_0x3043c6[_0x211bc9(0x19d)](_0x4b687d,_0x53b20a);},_0x9d6ea3[_0x35cef9(0x227)]=_0x5ee5e0=>{const _0xce050c=_0x35cef9;var _0x330a0f,_0x2887a3;return(_0x330a0f=this[_0xce050c(0x10f)])==null||(_0x2887a3=_0x330a0f['onTransformState'])==null?void 0x0:_0x2887a3[_0xce050c(0x19d)](_0x330a0f,_0x5ee5e0);},_0x9d6ea3[_0x35cef9(0x22c)]=_0x80e37c=>{const _0x191fbe=_0x35cef9;var _0x2f1a82,_0x56284c;return(_0x2f1a82=this['_handlerCallback'])==null||(_0x56284c=_0x2f1a82[_0x191fbe(0x22c)])==null?void 0x0:_0x56284c[_0x191fbe(0x19d)](_0x2f1a82,_0x80e37c);},_0x9d6ea3['onSyncEditingCollabCursor']=_0x47e3be=>{const _0x3fb040=_0x35cef9;var _0x362ef,_0x12d941;return(_0x362ef=this[_0x3fb040(0x10f)])==null||(_0x12d941=_0x362ef[_0x3fb040(0x1d2)])==null?void 0x0:_0x12d941[_0x3fb040(0x19d)](_0x362ef,_0x47e3be);},_0x9d6ea3[_0x35cef9(0x148)]=_0x5d6968=>{var _0x53fb5d,_0x31ab2a;return((_0x53fb5d=this['_handlerCallback'])==null||(_0x31ab2a=_0x53fb5d['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x31ab2a['call'](_0x53fb5d,_0x5d6968))??_0x5d6968;},_0x9d6ea3[_0x35cef9(0xda)]=_0x3112a0=>{const _0x5a2bc5=_0x35cef9;var _0x5985fe,_0x35141e;return((_0x5985fe=this[_0x5a2bc5(0x10f)])==null||(_0x35141e=_0x5985fe[_0x5a2bc5(0xda)])==null?void 0x0:_0x35141e[_0x5a2bc5(0x19d)](_0x5985fe,_0x3112a0))??_0x3112a0;},_0x9d6ea3;}async['_init'](){const _0x36f284=_0x318ac4;let _0xf75175=await super[_0x36f284(0xdb)]();return this[_0x36f284(0x309)](this['_docStateChangeManagerService'][_0x36f284(0x30e)]['subscribe'](_0x3b7b01=>{const _0x2c2e51=_0x36f284;if(_0x3b7b01==null||_0x3b7b01['unitId']!==this['unitID'])return;let {commandId:_0x18dc33,redoState:_0x1e1afa,unitId:_0x1c7a59}=_0x3b7b01,_0x3edd4c={'id':_0x18dc33,'type':t['CommandType']['MUTATION'],'params':{'unitId':_0x1c7a59,'actions':_0x1e1afa[_0x2c2e51(0x140)],'textRanges':null}};this[_0x2c2e51(0x3d8)](_0x3edd4c);})),this[_0x36f284(0x309)](this[_0x36f284(0x152)][_0x36f284(0xde)]((_0x4c8767,_0x3096d7)=>{const _0x23b21e=_0x36f284;if(_0x4c8767[_0x23b21e(0x1cf)]!==t[_0x23b21e(0x247)]['MUTATION']||_0x3096d7!=null&&_0x3096d7[_0x23b21e(0x179)]||_0x3096d7!=null&&_0x3096d7[_0x23b21e(0xec)]||_0x4c8767['id']===n[_0x23b21e(0x2aa)]['id'])return;let _0x1fa3a0=_0x4c8767['params'];if((_0x1fa3a0==null?void 0x0:_0x1fa3a0[_0x23b21e(0x19b)])!==this[_0x23b21e(0x234)])return;let _0x2794c5=_0x4c8767,_0x44f408=this[_0x23b21e(0x3ab)]['interceptor']['fetchThroughInterceptors'](this[_0x23b21e(0x3ab)]['interceptor'][_0x23b21e(0x2cb)]()[_0x23b21e(0x22b)])([_0x2794c5],this['_univerInstanceService'])||[_0x2794c5];this['_onLocalMutation'](_0x44f408[0x0]);})),_0xf75175;}};F=y([v(0x3,(0x0,t['Inject'])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x31e)])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x7,(0x0,t[_0x318ac4(0x394)])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t['Inject'])(n[_0x318ac4(0x17e)])),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t[_0x318ac4(0x2b2)])(x))],F);let I=class extends P{constructor(_0x3f4db0,_0x216c07,_0x2862b4,_0x3ce3e4,_0x1dcb61,_0x2feb96,_0x4d5587,_0x9a49f8,_0x1619ae,_0x2b3e69,_0x13ac02,_0x586570,_0x3391e6,_0x25392e){const _0x3d51da=_0x318ac4;super(_0x3f4db0,_0x2862b4,_0x216c07,_0x3ce3e4,_0x1dcb61,_0x2feb96,_0x4d5587,_0x9a49f8,_0x1619ae,_0x2b3e69,_0x13ac02,_0x586570,_0x3391e6,_0x25392e),this['unitID']=_0x3f4db0,this[_0x3d51da(0x1cf)]=_0x216c07;}async[_0x318ac4(0xdb)](){const _0x1bcf6a=_0x318ac4;let _0x536e1b=await super[_0x1bcf6a(0xdb)]();return this[_0x1bcf6a(0x309)](this[_0x1bcf6a(0x152)][_0x1bcf6a(0xde)]((_0x46342f,_0x1e090a)=>{const _0x326b10=_0x1bcf6a;if(_0x46342f[_0x326b10(0x1cf)]!==t[_0x326b10(0x247)][_0x326b10(0x301)]||_0x1e090a!=null&&_0x1e090a['fromCollab']||_0x1e090a!=null&&_0x1e090a[_0x326b10(0xec)])return;let _0x190505=_0x46342f[_0x326b10(0x20c)];if((_0x190505==null?void 0x0:_0x190505[_0x326b10(0x19b)])!==this[_0x326b10(0x234)])return;let _0x4895b0=_0x46342f,_0x38a18a=this['_compressMutationService'][_0x326b10(0xff)][_0x326b10(0x16b)](this[_0x326b10(0x3ab)][_0x326b10(0xff)][_0x326b10(0x2cb)]()[_0x326b10(0x22b)])([_0x4895b0],this['_univerInstanceService'])||[_0x4895b0];this[_0x326b10(0x3d8)](_0x38a18a[0x0]);})),_0x536e1b;}};I=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x31e)])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x7,(0x0,t[_0x318ac4(0x394)])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t['ILogService']),v(0xa,t['ICommandService']),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(C)),v(0xd,(0x0,t[_0x318ac4(0x2b2)])(x))],I);let L=class extends P{constructor(_0x203890,_0x4f5984,_0x1014f3,_0x8784de,_0x147c4a,_0x2a392d,_0x15d287,_0x5885b5,_0x2d16d2,_0x137764,_0x2520ee,_0x536158,_0x29b76b,_0x576a23,_0x2a3a33){const _0x231496=_0x318ac4;super(_0x203890,_0x1014f3,_0x4f5984,_0x8784de,_0x147c4a,_0x2a392d,_0x15d287,_0x2d16d2,_0x137764,_0x2520ee,_0x536158,_0x29b76b,_0x576a23,_0x2a3a33),this[_0x231496(0x234)]=_0x203890,this[_0x231496(0x1cf)]=_0x4f5984,this[_0x231496(0x358)]=_0x5885b5;}[_0x318ac4(0x1d9)](){const _0x143158=_0x318ac4;let _0x47abeb=super[_0x143158(0x1d9)]();return _0x47abeb[_0x143158(0x22c)]=_0x400bbf=>this[_0x143158(0x358)]['transformSelections'](_0x400bbf),_0x47abeb;}async[_0x318ac4(0xdb)](){const _0x57b718=_0x318ac4;let _0x4e27f5=await super['_init']();return this[_0x57b718(0x309)](this['_commandService'][_0x57b718(0xde)]((_0x5208ae,_0x58cbc9)=>{const _0x48f241=_0x57b718;if(_0x5208ae[_0x48f241(0x1cf)]!==t[_0x48f241(0x247)][_0x48f241(0x301)]||_0x58cbc9!=null&&_0x58cbc9[_0x48f241(0x179)]||_0x58cbc9!=null&&_0x58cbc9[_0x48f241(0xec)])return;let _0x39c462=_0x5208ae[_0x48f241(0x20c)];if((_0x39c462==null?void 0x0:_0x39c462[_0x48f241(0x19b)])!==this[_0x48f241(0x234)])return;let _0x49ea23=_0x5208ae,_0x1aaab5=this['_compressMutationService'][_0x48f241(0xff)][_0x48f241(0x16b)](this[_0x48f241(0x3ab)]['interceptor'][_0x48f241(0x2cb)]()[_0x48f241(0x22b)])([_0x49ea23],this[_0x48f241(0x1b9)])||[_0x49ea23];this[_0x48f241(0x3d8)](_0x1aaab5[0x0]);})),_0x4e27f5;}};L=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x31e)])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x7,(0x0,t[_0x318ac4(0x394)])(S)),v(0x8,(0x0,t[_0x318ac4(0x394)])(_)),v(0x9,t['IUniverInstanceService']),v(0xa,t[_0x318ac4(0x28c)]),v(0xb,t[_0x318ac4(0x185)]),v(0xc,t[_0x318ac4(0x191)]),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t[_0x318ac4(0x2b2)])(x))],L);let R=class extends P{constructor(_0x154b66,_0x1a0e47,_0x154930,_0x55f825,_0x4edb86,_0x538d52,_0x4301be,_0xdbde6e,_0x3e1457,_0x477228,_0x56a79e,_0x31d25b,_0x183914,_0x4be248){const _0x272c18=_0x318ac4;super(_0x154b66,_0x154930,_0x1a0e47,_0x55f825,_0x4edb86,_0x538d52,_0x4301be,_0xdbde6e,_0x3e1457,_0x477228,_0x56a79e,_0x31d25b,_0x183914,_0x4be248),this[_0x272c18(0x234)]=_0x154b66,this['type']=_0x1a0e47;}async[_0x318ac4(0xdb)](){const _0x28d668=_0x318ac4;let _0x3e1171=await super[_0x28d668(0xdb)]();return this[_0x28d668(0x309)](this['_commandService'][_0x28d668(0xde)]((_0x4d1096,_0x560c8d)=>{const _0x153857=_0x28d668;if(_0x4d1096[_0x153857(0x1cf)]!==t['CommandType'][_0x153857(0x301)]||_0x560c8d!=null&&_0x560c8d[_0x153857(0x179)]||_0x560c8d!=null&&_0x560c8d[_0x153857(0xec)])return;let _0x4bd935=_0x4d1096['params'];if((_0x4bd935==null?void 0x0:_0x4bd935[_0x153857(0x19b)])!==this['unitID'])return;let _0x8446ba=_0x4d1096,_0x247633=this[_0x153857(0x3ab)][_0x153857(0xff)][_0x153857(0x16b)](this[_0x153857(0x3ab)][_0x153857(0xff)]['getInterceptPoints']()[_0x153857(0x22b)])([_0x8446ba],this[_0x153857(0x1b9)])||[_0x8446ba];this[_0x153857(0x3d8)](_0x247633[0x0]);})),_0x3e1171;}};function _0x529c(){const _0x57c647=['PENDING','EnsureSlideMasterPageMutation','SheetTransformSelectionsService','RevisionService','unitInfo$','executeCommand','change$','Plugin','session.room-not-exists','updateCollaborator','_config','CombCmd','commentUpdate$','revision','_onRecvEvent','tables','Injector','_startTelemetryCollaborationNewChangeset','isTransformChangesetsSuccess','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_status$','collaboration-client.local-cache-service','@univerjs-pro/collaboration-client','closeSession','CollaborationSessionService','backupOfflineData','_onRemoteChangeset','headers','_clearRedo','ImageUploadStatusType','PERMISSION_REJ','HEARTBEAT_INTERVAL_KEY','CmdRspCode','_replaceFileID','isPermissionRej','shouldCloseConn','InsertSheetMutation','_onOffline','Inject','_transformIMECache','/role','isTransformMutationsWithChangesetFailure','getCurrentRevOfUnit','_getAPIPrefixPath','AwaitingState','&source=','CLOSE_ROOM','_transformSelections','loadPdf','getConfig','_memberService','downloadEndpointUrl','CollaborationImageIoService','3090336hGOrtF','createUniverCollaborationAdapter','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','reject','SlideCollaborationEntity','uniscriptRunEvent','_acknowledgeAwaiting','requestParams','_compressMutationService','randomBytes','session.room-full','textRanges','[OfflineState]:\x20received\x20acknowledgement.','_startCollaboration','getUnitStatus$','DisposableCollection','_sendingTimer','url','emitEvent','_snapshotServerService','saveAttachment','_createSession','HEARTBEAT_TIMEOUT_KEY','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_transformRemoteChangesetByStateCache','subUnitId','upload','_createSocket','loadSlide','add','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','ThresholdInterceptorFactory','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','get','SheetCollaborationEntity','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','localeService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','symbol','onCommentUpdate','_commentUpdate$','appendMutation','CollaborationAttachmentIoService','/-/object/-/batch_allowed','retryCount','_toggleOffline','getCurrentUser','collaborators','session.room-cnt-exceeds','socket$','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CONFLICT','_onLocalMutation','values','_type','session','encode','SheetsSelectionsService','mergeOverrideWithDependencies','_commentService','SOCKET_FAILED','getCollabEntity','has','_socketMessageSubscription','packageName','roomInfos','/collaborator','registerDependencies','&to=','_configService','RETRY_CONNECTING_MAX_COUNT','COLLABORATION_ENDPOINT_INVALID','joinRsp','_fetchMissChangesets','every','getCfgEnableObjInherit','_clearRetryConnectingTimer','_handleRemoteChangesets','_roomCreated$','getFocusedUnit','JOIN_ROOM_FAILED','maxSize','disableLocalCache','_onCombEvent','MSG_FOR_ERROR','unsubscribe','OTHER_CLIENTS_EDITING','catch','_initMergeInterceptor','_getSocketChannel','getUnitId','JOIN_ROOM_FULL','number','_pendingMutations','reqId','onTransformRemoteChangesetByStateCache','_init','NEW_CHANGESETS','apply','onMutationExecutedForCollab','_shouldReportTelemetry','entries','toggleOffline','withCredentials','UUID','merge','changesets','UniverNetworkPlugin','asObservable','_onConnectionFailed','utf8ToBytes','setShowComponents','ONLINE','onlyLocal','hostname','method','_waitCount','CommentService','objects','DocCollaborationEntity','FileSource','ERROR_EXCEED_SIZE','_substituteUndoStack','FETCH_MISSING','confirm','addHandlerCallback','unit-cache-','includes','/universer-api/authz','__Key__','getValue','createSocket','interceptor','socket\x20close','/universer-api/snapshot/','charCodeAt','updatePermissionObjEvent','from','_transformRemoteChangesetByIMECache','getWorkbookSelections','loadDoc','attachment','fetching\x20missing\x20changesets\x20from\x20','?size=','objectID','[SyncedState]:\x20received\x20rejection.','loadOfflineData','OFFLINE','_handlerCallback','/universer-api/comb','_onUserJoin','USERS_ENTER','{fileID}','sendHeartbeatTimer','now','FetchingMissState','close$','collabWebSocketUrl','file','mutations','registerHTTPInterceptor','removeMember','collaboration-client.config','updateOfflineData','_joinRoom','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','concatBytes','sessionStatus$','set','getUploadOptions','status','subscribe','getDrawingImageAllowSize','_exhaustRemoteChangesetQueue','complete','initWorkbookPermissionChange','_initDependencies','_acknowledgedAwaitingRevision','startTime','[FetchMissState]','transformSelections','base-ui.attachment-io.service','_cfgEnableObjInherit','getUnitType','collaboration_new_changeset','deleteCollaborator','toRemote','function','getUnitOnRev','_getConfig','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_HTTPService','constructor','localUnitId','_httpService','OPTIONAL','uuidv4','actions','focused$','AWAITING_WITH_PENDING','getSheetId','_substituteRedoStack','_schedule','_updateState','_decreaseWaiting','onTransformRemoteChangesetByIMECache','/new_changes','serializeCombRequest','loadSheet','save\x20fail\x20reason\x20is\x20','replace','size','_singleActiveUnitService','BASE64','retryConnectingInterval','_commandService','OTHER_CLIENT_EDITING','push','loginUrlKey','text-x','_sessionChannels','572222mMhQhP','getLatestCsReqIdBySid','liveShareNewHost','_members$','c1Prime','CompressMutationService','transformChangesets','_lockTransition','SetSelectionsOperation','take','PSEUDO_FETCH_MISSING_RESULT','FAIL','Subject','onRemoteRej','/object','MentionType','max','_revisionService','dispose$','fetchThroughInterceptors','append','src','LOCAL_CACHE_INTERVAL','onRemoteAck','_onMessage','dispose','endpointKey','/universer-api/snapshot','_listenToNetworkCondition','body','missingChangesets','UNIVER_BOARD','_changesetSessionId','fromCollab','permissionRejEvent','ICollaborationSocketService','AuthzIoHttpService','origin','DocStateChangeManagerService','findIndex','update','awaitingChangeset','_queuedRemoteChangesets','_remoteChangesetQueue','isInternalEditorID','ICommandService','2150KfUTDW','_upload','createInstance','_throwTelemetryCollaborationNewChangeset','PERMISSION_DENIED','/rev/','Failed\x20to\x20update\x20permission\x20point','_localeService','_clearHeartbeatTimer','SUBMIT_CHANGESET','c2Prime','IPermissionService','collabSubmitChangesetUrl','BehaviorSubject','some','debug','LIVESHARE_REQUEST_HOST','CHANGESET_SHOULD_RETRY','_permissionService','authzUrl','transformMutationsWithChangeset','unitId','Univer','call','503696kxJLSN','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','PendingState','_tryReconnect','BaseCollaborationEntity','sid','_transformService','_getUndoStack','_resolveSessionIdentity','_onRemoteRetry','_localCacheService','_changesetReqId','_transformStateCache','Rectangle','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','code','endpoint','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getDeserializedSheetBlock','_getLoginPath','LOCAL_CACHE_INTERVAL_KEY','_sender','_getCurrentRevision','NO_OTHER_CLIENTS_EDITING','_registerDependencies','IConfigService','find','_univerInstanceService','UniverLicensePlugin','MentionIoHttpService','UNIVER_SLIDE','originalMeta','submit\x20changeset\x20error!','objectType','RemoveSlidePageMutation','CollaborationUIEventId','infoRsp','subject','BoardCollaborationEntity','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','changeset','saveSheetBlock','_adapter','/resources','[PendingState]:\x20unhandled\x20univer\x20type:\x20','ErrorCode','JOIN_ROOM_PERMISSION_DENIED','target','univer-pro.collaboration-client.network-condition.service','type','UPDATE_CURSOR','getCollabEntity$','onSyncEditingCollabCursor','unitType','deserializeToCombResponse','sheets','socket\x20open.','ImageSourceType','_injector','_createHandler','eventID','UNIVER_DOC','_collaborationPaused','put','ISnapshotServerService','UNIVER_PDF','_pendingSessions','_rescheduleHeartbeat','message$','createIdentifier','HEARTBEAT_INTERVAL','awaiting','ICollaborationClientAdapterService','editing\x20status\x20changed\x20to','onLocalMutation','IContextService','_collabSessionService','SnapshotServerOverHTTPService','data','loadBase','_socketChannels','indexOf','sort','name','_doCreateSocket','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','open$','UNIVER_COLLABORATION_CLIENT_PLUGIN','_getRedoStack','2753916SFtvtQ','retryConnectingTimer','[CollaborationEntity]','socketService','_eventService','isCompositionEnd','m2Prime','/block/','_socketService','_transformUndoredo','textEncoder','IAuthzIoService','conflict','UNIVER_SHEET','prototype','JOIN','accept','Module','&assign=','_resendWithTimeout','_collaborationUIEventService','params','/universer-api/oidc/authpage','_undoRedoService','_userManagerService','session.room-permission-denied','[OfflineState]:\x20received\x20rejection.','onRemoteRetry','_getCtorByUniverInstanceType','_initUnitPermissionChange','signUrlServerUrl','AddSlidePageMutation','onRemoteChangeset','unitId\x20is\x20not\x20found','_maxTotalRetryTimeout','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','event$','univer-pro.collaboration-client-socket-service','pending','action','_applyRemoteChangeset','hasOwnProperty','getMember','setWaitCount','_onConflict','endsWith','cfgEnableObjInherit','_getSendChangesetTimeout','onTransformState','version','Error\x20on\x20receiving\x20event','_sessions','COMPRESS_MUTATION_SEND','onTransformSelections','getUnit','object','PERSON','resolveUnit','_networkConditionService','create','status$','unitID','CHANGESET_ACK','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_isPermissionRej','loadBoard','resolve','toggleOnline','shareReplay','_replayCachedMutations','localCacheService','onStarting','_isEchoedAwaitingChangeset','ITelemetryService','_transitionLocked','online$','_clearScheduledTask','editingUnit','IUniverInstanceService','Quantity','CommandType','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','univer-pro.collaboration-client-adapter-service','getMemberID','result','_syncEditingCollabCursor','toDisposable','liveShareOperation','_getUploadFileURL','connection\x20error','timeoutTimer','/object/','_hasSessionsForEndpoint','enableCollaboration','SheetPermissionInitController','Disposable','_resendTimeout','729LJugBm','sequenceExecute','[CollaborationUndoRedoService]','__splitChunk__','AwaitingWithPendingState','CHANGESET_REJ','takeUntil','iterator','loadUnit','enableSingleActiveInstanceLock','title','UserManagerService','4737985sWxiII','href','_getDownloadEndpointURL','_onConnectionOpen','MoveSlidePageMutation','RxDisposable','_clearTimeoutTimer','createCollaborator','touchDependencies','deepClone','startsWith','SOCKET_FAILED_RETRY','MergeInterceptorFactory','/fetchmissing?from=','getImage','copyFileMeta','updateMember','SUBMIT_CHANGESET_TIMEOUT','SHOULD_CLOSE_CONN','enableOfflineEditing','_onUserLeave','clear','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','UniverInstanceType','INGEST','parseProtocolChangeset','listCollaborators','filter','People','_telemetryService','_imageSourceCache','MemberService','saveSnapshot','_instanceService','onMissedChangesetFetched','awaiting_with_pending','stopTime','[CollaborationSessionService]','_snapshotService','_handler','ILogService','floor','ITransformService','requireSession','stringify','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','routeKey','objectActions','_unitLoaded$','onload','_removeRoom','uploadFileServerUrl','_onJoinRoomEvent','resolveWithBasePath','_executeRemoteChangeset','3IzPXtd','getAllMembers','parseChangesetToProtocol','_emitMembers','IUndoRedoService','CollaborationStatus','LIVESHARE_TERMINATE','onSendChangeset','send','LIVESHARE_OPERATION','_event$','unit','concatMap','_roomMembers','getTime','RichTextEditingMutation','_scheduleCompleteTimestamp','reduce','_clearLocalCache','mapDocumentTypeToUniverInstanceType','\x20-\x20','USERS_LEAVE','selections','Optional','_change$','toStringTag','IMentionIOService','map','_clearUndo','_identity','reconnect','isArray','_getSignURL','ILocalCacheService','csAckEvent','/allowed','workbook','_state','FileId','getTypeOfUnitDisposed$','LEAVE','list','_createInitialStateImpl','refreshPermission','memberID','location','members$','_disableEditing','getInterceptPoints','forEach','newCsEvent','527474LEciXx','getOwnPropertyDescriptor','onStateChange','csShouldRetryEvent','JSONX','WorkbookEditablePermission','ISingleActiveUnitService','[OfflineState]:\x20received\x20changeset.','session.join-failed','_entities','saveChangeset','[CollaborationSession]','leaveEvent','CollaborativeUndoRedoService','_clearCollaborationTimeoutTimer','responseType','_getAPIPrefix','getTypeOfUnitAdded$','splice','resourceIDs','JOINING','trim','HEARTBEAT','init','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_state$','_collaborationSessionService','updateCursorEvent','_stopTelemetryCollaborationNewChangeset','10GNeFUP','socketMessageSubscription','setConfig','HELLO','close','generateRandomId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','compose','readAsDataURL','_submitChangeset','Workbook','decorate','_telemetryInfo','_acknowledgeAwaitingIfReady','_unitInfo$','_logService','LIVESHARE_NEW_HOST','synced','listRoles','_entityInit$','sessionStatus','_updateLocalCache','MUTATION','baseRev','HEARTBEAT_TIMEOUT','pipe','delete','incrementRevOfUnit','_initRequestHeader','\x20to\x20','disposeWithMe','_awaitingChangeset','string','UNIVER_BASE','SUCCUSS','docStateChange$','offline','_unlockTransition','updatePermissionPoint','_showConflictNotification','delay','entityInit$','_createInitialState','IImageIoService','CollaborationController','ConflictState','toString','_socket','cmd','allowed','_initCloseConn','LocaleService','commentUpdateEvent','_incrementRevisionNumber','capture','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','/-/object/list','IDLE','_transformStack','POST','_scheduleCollaborationTimeoutTimer','candidateSocket','range','readyForCollab','CollaborationEntity','getSheetBlock','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','JOIN_ROOM_NOT_EXISTS','error$','/unit/','/universer-api/file/{fileID}/sign-url','sendChangesetTimeout','_tryEnsureSocket','getSnapshotAPIPath','ERROR_IMAGE','_sessionStatus$','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','[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.','CollaborationSocketService','[DataLoaderService]','_members','isTransformMutationsWithChangesetSuccess','RECV','DEFAULT_WS_SESSION_TICKET_URL','_checkMissing','getAttachmentUrl','/universer-api/stream/file/upload','slice','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_collaborationTimeoutTimer','COMPRESS_MUTATION_APPLY','length','userID','ReplaySubject','post','saveImage','UnitEmbedded','_resendTimer','defineProperty','fetchMiss','univer-pro.collaboration-client.single-active-unit-service','state$','DataLoaderService','collaboration-client.auth.needGotoLoginAlert','b64DecodeUnicode','LIVESHARE_FETCH_OPERATIONS','COMMENT_UPDATE','UPDATE_PERMISSION_OBJ','_sheetTransformSelectionsService','_transformAndApplyRemoteChangeset','_sendHeartbeat','enableAuthServer','_onRemoteACK','ERROR_IMAGE_TYPE','transformUndoRedo','socketReady','state','HTTPService','_updateStatus','resend','CollaborationEvent','parse','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onFetchMissResult','[CollaborationState]:\x20apply\x20error!','/universer-api/user/session-ticket','[PendingState]:\x20received\x20rejection.','error','OfflineState','unknown'];_0x529c=function(){return _0x57c647;};return _0x529c();}R=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t['Inject'])(t[_0x318ac4(0x31e)])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e['RevisionService'])),v(0x7,(0x0,t[_0x318ac4(0x394)])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t['ILogService']),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(C)),v(0xd,(0x0,t['Optional'])(x))],R);let z=class extends P{constructor(_0x2885c3,_0x5e5d56,_0x49c289,_0x5b21aa,_0x2b4537,_0x551e3f,_0x3d58bb,_0x45eb2b,_0x130e31,_0x1b7525,_0xacdcd6,_0x52527c,_0x9a4129,_0x1b8566){const _0x180d2c=_0x318ac4;super(_0x2885c3,_0x49c289,_0x5e5d56,_0x5b21aa,_0x2b4537,_0x551e3f,_0x3d58bb,_0x45eb2b,_0x130e31,_0x1b7525,_0xacdcd6,_0x52527c,_0x9a4129,_0x1b8566),this[_0x180d2c(0x234)]=_0x2885c3,this[_0x180d2c(0x1cf)]=_0x5e5d56;}async[_0x318ac4(0xdb)](){const _0x7c95eb=_0x318ac4;let _0x4d989c=await super[_0x7c95eb(0xdb)]();return this['disposeWithMe'](this[_0x7c95eb(0x152)][_0x7c95eb(0xde)]((_0xd8aff2,_0x69cbf5)=>{const _0x2b2916=_0x7c95eb;if(_0xd8aff2[_0x2b2916(0x1cf)]!==t[_0x2b2916(0x247)]['MUTATION']||_0x69cbf5!=null&&_0x69cbf5[_0x2b2916(0x179)]||_0x69cbf5!=null&&_0x69cbf5[_0x2b2916(0xec)])return;let _0x49b19c=_0xd8aff2[_0x2b2916(0x20c)];if((_0x49b19c==null?void 0x0:_0x49b19c[_0x2b2916(0x19b)])!==this['unitID'])return;let _0x2a3b54=_0xd8aff2,_0x57d48b=this[_0x2b2916(0x3ab)][_0x2b2916(0xff)][_0x2b2916(0x16b)](this[_0x2b2916(0x3ab)][_0x2b2916(0xff)]['getInterceptPoints']()[_0x2b2916(0x22b)])([_0x2a3b54],this[_0x2b2916(0x1b9)])||[_0x2a3b54];this[_0x2b2916(0x3d8)](_0x57d48b[0x0]);})),_0x4d989c;}};z=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(t['Injector'])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t[_0x318ac4(0x394)])(t['LocaleService'])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x318ac4(0x2b2)])(x))],z);let B=class extends P{constructor(_0x194a91,_0x1a9c82,_0x12d0b4,_0x56066c,_0x19c443,_0x4c767d,_0x6f6390,_0x2f43d2,_0x9c418a,_0x53e738,_0x11d7bc,_0xe5eaa9,_0x28c11f,_0x259bbf){super(_0x194a91,_0x12d0b4,_0x1a9c82,_0x56066c,_0x19c443,_0x4c767d,_0x6f6390,_0x2f43d2,_0x9c418a,_0x53e738,_0x11d7bc,_0xe5eaa9,_0x28c11f,_0x259bbf),this['unitID']=_0x194a91,this['type']=_0x1a9c82;}async[_0x318ac4(0xdb)](){const _0x4ed432=_0x318ac4;let _0x43f818=await super[_0x4ed432(0xdb)]();return this[_0x4ed432(0x309)](this[_0x4ed432(0x152)]['onMutationExecutedForCollab']((_0x5b5e21,_0x29a7e3)=>{const _0x4a9aa5=_0x4ed432;if(_0x5b5e21[_0x4a9aa5(0x1cf)]!==t[_0x4a9aa5(0x247)][_0x4a9aa5(0x301)]||_0x29a7e3!=null&&_0x29a7e3[_0x4a9aa5(0x179)]||_0x29a7e3!=null&&_0x29a7e3[_0x4a9aa5(0xec)])return;let _0x2eb95d=_0x5b5e21[_0x4a9aa5(0x20c)];if((_0x2eb95d==null?void 0x0:_0x2eb95d[_0x4a9aa5(0x19b)])!==this[_0x4a9aa5(0x234)])return;let _0x5960c1=_0x5b5e21,_0x18f904=this[_0x4a9aa5(0x3ab)][_0x4a9aa5(0xff)][_0x4a9aa5(0x16b)](this[_0x4a9aa5(0x3ab)][_0x4a9aa5(0xff)][_0x4a9aa5(0x2cb)]()[_0x4a9aa5(0x22b)])([_0x5960c1],this[_0x4a9aa5(0x1b9)])||[_0x5960c1];this['_onLocalMutation'](_0x18f904[0x0]);})),_0x43f818;}};B=y([v(0x3,(0x0,t['Inject'])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t['Inject'])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t['Inject'])(t[_0x318ac4(0x31e)])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(C)),v(0xd,(0x0,t[_0x318ac4(0x2b2)])(x))],B);const We=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x1ce));function Ge(_0x5bef50){const _0x2a7e7d=_0x318ac4;let _0x4a1131=_0x5bef50['data'],_0x10807d=JSON[_0x2a7e7d(0x365)](_0x4a1131);switch(_0x10807d[_0x2a7e7d(0x31b)]){case a[_0x2a7e7d(0x379)]['HEARTBEAT']:case a[_0x2a7e7d(0x379)]['HELLO']:{let _0x186e39=_0x10807d[_0x2a7e7d(0x1c2)];return{..._0x10807d,'data':_0x186e39,'cmd':_0x10807d['cmd']};}case a[_0x2a7e7d(0x379)][_0x2a7e7d(0x206)]:{let _0x3d3b17=_0x10807d[_0x2a7e7d(0x3ec)];return{..._0x10807d,'data':_0x3d3b17,'cmd':_0x10807d[_0x2a7e7d(0x31b)]};}case a[_0x2a7e7d(0x379)][_0x2a7e7d(0x33e)]:{let _0x2b244d=_0x10807d['collaMsg'];switch(_0x2b244d[_0x2a7e7d(0x1da)]){case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x38c)]:var _0x3884e5;return{..._0x10807d,'data':{..._0x2b244d,'data':(_0x3884e5=_0x2b244d[_0x2a7e7d(0x17a)])==null?void 0x0:_0x3884e5['cs']},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x235)]:var _0x22362a;return{..._0x10807d,'data':{..._0x2b244d,'data':(_0x22362a=_0x2b244d[_0x2a7e7d(0x2bd)])==null?void 0x0:_0x22362a['cs']},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0xdc)]:var _0x4992dc;return{..._0x10807d,'data':{..._0x2b244d,'data':(_0x4992dc=_0x2b244d[_0x2a7e7d(0x2cd)])==null?void 0x0:_0x4992dc['cs']},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x25d)]:var _0x3e7310;return{..._0x10807d,'data':{..._0x2b244d,'data':(_0x3e7310=_0x2b244d['csRejEvent'])==null?void 0x0:_0x3e7310['cs']},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e['CollaborationEvent'][_0x2a7e7d(0x197)]:var _0x56cc59;return{..._0x10807d,'data':{..._0x2b244d,'data':(_0x56cc59=_0x2b244d[_0x2a7e7d(0x2d1)])==null?void 0x0:_0x56cc59['cs']},'cmd':_0x10807d['cmd']};case e['CollaborationEvent'][_0x2a7e7d(0x1d0)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x2e9)]},'cmd':_0x10807d['cmd']};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x112)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d['joinEvent']},'cmd':_0x10807d['cmd']};case e[_0x2a7e7d(0x364)]['USERS_LEAVE']:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x2da)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)]['LIVESHARE_NEW_HOST']:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x15a)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x355)]:case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x2a4)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x24e)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e['CollaborationEvent'][_0x2a7e7d(0x2a1)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x15a)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x3f8)]:return{..._0x10807d,'data':_0x2b244d,'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e['CollaborationEvent'][_0x2a7e7d(0x356)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x31f)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x357)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x103)]},'cmd':_0x10807d['cmd']};case e[_0x2a7e7d(0x364)]['SHOULD_CLOSE_CONN']:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x391)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)]['UNISCRIPT_RUN']:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x3a8)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};default:return _0x10807d;}}default:return _0x10807d;}}function Ke(_0x598986){const _0x238262=_0x318ac4;switch(_0x598986[_0x238262(0x31b)]){case a[_0x238262(0x379)][_0x238262(0x2e4)]:case a[_0x238262(0x379)][_0x238262(0x2ee)]:return JSON['stringify']({'cmd':_0x598986[_0x238262(0x31b)],'routeKey':_0x598986[_0x238262(0x292)]});case a['CombCmd'][_0x238262(0x27c)]:{let _0x484886;switch(_0x598986[_0x238262(0x1ec)]['eventID']){case e[_0x238262(0x364)][_0x238262(0x1d0)]:_0x484886={'eventID':e['CollaborationEvent'][_0x238262(0x1d0)],'updateCursorEvent':_0x598986['data'][_0x238262(0x1ec)]};break;case e['CollaborationEvent'][_0x238262(0x2b0)]:_0x484886={'eventID':e[_0x238262(0x364)][_0x238262(0x2b0)],'leaveEvent':_0x598986[_0x238262(0x1ec)][_0x238262(0x1ec)]};break;case e[_0x238262(0x364)]['USERS_ENTER']:_0x484886={'eventID':e['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x598986[_0x238262(0x1ec)]['data']};break;case e[_0x238262(0x364)][_0x238262(0x2fb)]:_0x484886={'eventID':e['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x598986['data'][_0x238262(0x1ec)]};break;case e[_0x238262(0x364)][_0x238262(0x2a4)]:_0x484886={'eventID':e[_0x238262(0x364)][_0x238262(0x2a4)],'liveShareOperation':_0x598986[_0x238262(0x1ec)]['data']};break;case e[_0x238262(0x364)][_0x238262(0x2a1)]:_0x484886={'eventID':e['CollaborationEvent'][_0x238262(0x2a1)],'liveShareTerminate':_0x598986[_0x238262(0x1ec)][_0x238262(0x1ec)]};break;case e[_0x238262(0x364)][_0x238262(0x196)]:_0x484886={'eventID':e[_0x238262(0x364)][_0x238262(0x196)],'liveShareRequestHost':_0x598986[_0x238262(0x1ec)]['data']};break;case e[_0x238262(0x364)][_0x238262(0x355)]:_0x484886={'eventID':e[_0x238262(0x364)][_0x238262(0x355)]};break;default:_0x484886={'eventID':_0x598986[_0x238262(0x1ec)][_0x238262(0x1da)]};}return JSON[_0x238262(0x290)]({'cmd':_0x598986[_0x238262(0x31b)],'routeKey':_0x598986['routeKey'],'collaMsg':_0x484886});}case a[_0x238262(0x379)][_0x238262(0x206)]:return JSON[_0x238262(0x290)]({'cmd':_0x598986[_0x238262(0x31b)],'routeKey':_0x598986[_0x238262(0x292)],'joinReq':_0x598986[_0x238262(0x1ec)]});case a['CombCmd'][_0x238262(0x2c3)]:return JSON[_0x238262(0x290)]({'cmd':_0x598986['cmd'],'routeKey':_0x598986[_0x238262(0x292)],'leaveReq':_0x598986[_0x238262(0x1ec)]});default:throw Error(_0x238262(0x381));}}const qe=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x21c));function Je(_0x3ab4ac,_0x3f0373,_0x34f21d){const _0x204993=_0x318ac4;return _0x3ab4ac+'/'+_0x3f0373+_0x204993(0x331)+_0x34f21d+_0x204993(0x149);}let Ye=class extends t['Disposable']{constructor(_0x174ae6,_0x3879ec,_0x33a0e6,_0x328862,_0x1f635a){const _0x44c9b5=_0x318ac4;super(),this['_injector']=_0x174ae6,this[_0x44c9b5(0x13d)]=_0x3879ec,this[_0x44c9b5(0x3e9)]=_0x33a0e6,this['_logService']=_0x328862,this[_0x44c9b5(0x3b6)]=_0x1f635a;}[_0x318ac4(0x1f2)](_0x2afd4c){const _0x3a836a=_0x318ac4;let _0x40ca4e=this[_0x3a836a(0x1d8)]['get'](l['ISocketService']);if(!_0x40ca4e)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x577515=_0x40ca4e[_0x3a836a(0xfe)](_0x2afd4c);if(!_0x577515)throw Error(_0x3a836a(0x19f));let _0x5e293c=new t[(_0x3a836a(0x3b2))](),_0x5f090b=new i[(_0x3a836a(0x164))]();_0x5e293c[_0x3a836a(0x3c0)](_0x577515['close$'][_0x3a836a(0x126)](_0x3b5806=>_0x5f090b[_0x3a836a(0x322)](_0x3b5806))),_0x5e293c[_0x3a836a(0x3c0)]((0x0,t['toDisposable'])(()=>_0x5f090b[_0x3a836a(0x129)]()));let _0x263b02=new i[(_0x3a836a(0x164))]();_0x5e293c[_0x3a836a(0x3c0)](_0x577515[_0x3a836a(0x330)][_0x3a836a(0x126)](_0xa097d7=>_0x263b02['next'](_0xa097d7))),_0x5e293c[_0x3a836a(0x3c0)]((0x0,t[_0x3a836a(0x24d)])(()=>_0x263b02['complete']()));let _0x3e245f=new i[(_0x3a836a(0x164))]();_0x5e293c[_0x3a836a(0x3c0)](_0x577515['message$'][_0x3a836a(0x126)](_0x42dd76=>{let _0x4e3290=Ge(_0x42dd76);_0x3e245f['next'](_0x4e3290);})),_0x5e293c[_0x3a836a(0x3c0)]((0x0,t['toDisposable'])(()=>_0x3e245f[_0x3a836a(0x129)]()));let _0x511b08,_0x270db8=()=>{const _0x58c76f=_0x3a836a;_0x263b02[_0x58c76f(0x322)](new Event(_0x58c76f(0x250))),_0x5f090b[_0x58c76f(0x322)](new Event(_0x58c76f(0x250))),_0x511b08['close']();};return _0x511b08={'memberID':'','close$':_0x5f090b[_0x3a836a(0xe7)](),'error$':_0x263b02[_0x3a836a(0xe7)](),'open$':_0x577515[_0x3a836a(0x1f4)],'message$':_0x3e245f[_0x3a836a(0xe7)](),'send':_0x5b4882=>{const _0x2d51e6=_0x3a836a;if(_0x5b4882[_0x2d51e6(0x31b)]===a[_0x2d51e6(0x379)][_0x2d51e6(0x27c)]){if(_0x5b4882['data'][_0x2d51e6(0x1da)]===e[_0x2d51e6(0x364)][_0x2d51e6(0x18f)]){this['_submitChangeset'](_0x511b08,_0x5b4882[_0x2d51e6(0x1ec)])[_0x2d51e6(0x3fb)](_0x50b9a4=>{const _0x1af163=_0x2d51e6;this[_0x1af163(0x2fa)][_0x1af163(0x36b)](_0x50b9a4),_0x270db8();});return;}if(_0x5b4882['data'][_0x2d51e6(0x1da)]===e[_0x2d51e6(0x364)]['FETCH_MISSING']){let _0x2f37f7=_0x5b4882[_0x2d51e6(0x1ec)];this[_0x2d51e6(0x3ed)](_0x2f37f7)['then'](_0x38af4c=>{const _0x32917d=_0x2d51e6;_0x3e245f[_0x32917d(0x322)]({'cmd':a[_0x32917d(0x379)][_0x32917d(0x33e)],'code':a[_0x32917d(0x38e)]['OK'],'routeKey':_0x2f37f7[_0x32917d(0x1ec)][_0x32917d(0x234)],'routeType':'','data':{'eventID':e[_0x32917d(0x364)][_0x32917d(0x162)],'data':{'changesets':_0x38af4c}}});})[_0x2d51e6(0x3fb)](_0x218705=>{const _0xad91d8=_0x2d51e6;this[_0xad91d8(0x2fa)][_0xad91d8(0x36b)](_0x218705),_0x270db8();});return;}}_0x577515[_0x2d51e6(0x2a3)](Ke(_0x5b4882));},'close':()=>{const _0x58bb0b=_0x3a836a;_0x577515['close'](),_0x5e293c[_0x58bb0b(0x171)]();}},_0x511b08;}async[_0x318ac4(0x2f4)](_0x3ee3c8,_0x1a125f){const _0x4c31bc=_0x318ac4;let {unitType:_0x3d6728,unitID:_0x37c534,changeset:_0x1fab01}=_0x1a125f[_0x4c31bc(0x1ec)],_0x54c7ce={'unitID':_0x37c534,'memberID':_0x3ee3c8[_0x4c31bc(0x2c7)],'type':_0x3d6728,'changeset':(0x0,e[_0x4c31bc(0x29d)])(_0x1fab01)},_0x224124=this[_0x4c31bc(0x3e9)][_0x4c31bc(0x39f)](m),_0x5ad552=Je((_0x224124==null?void 0x0:_0x224124[_0x4c31bc(0x192)])??_0x4c31bc(0x110),_0x3d6728,_0x37c534);try{await this['_httpService']['post'](_0x5ad552,{'body':_0x54c7ce});}catch(_0x58b3f6){throw this[_0x4c31bc(0x2fa)]['error'](_0x4c31bc(0x2d9),_0x4c31bc(0x1be)),_0x58b3f6;}}async['_fetchMissChangesets'](_0x3ec45a){const _0x22258e=_0x318ac4;let {unitID:_0x5ad60f,from:_0x3ce107,to:_0xe8fbff,unitType:_0x4d12ee}=_0x3ec45a['data'];return(await this[_0x22258e(0x3b6)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5ad60f,'type':_0x4d12ee,'from':_0x3ce107,'to':_0xe8fbff}))[_0x22258e(0xe5)][_0x22258e(0x2b6)](_0x331850=>((_0x331850['mutations']===null||_0x331850[_0x22258e(0x11a)]===void 0x0)&&(_0x331850[_0x22258e(0x11a)]=[]),_0x331850));}};Ye=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x1,(0x0,t['Inject'])(l[_0x318ac4(0x361)])),v(0x2,t[_0x318ac4(0x1b7)]),v(0x3,t['ILogService']),v(0x4,e[_0x318ac4(0x1de)])],Ye);const Xe=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x249));function Ze(_0x5c5e22={}){const _0x13eeb6=_0x318ac4;return _0x5c5e22[_0x13eeb6(0x230)]?{'resolveUnit':_0x5c5e22[_0x13eeb6(0x230)]}:{'resolveUnit':_0x55aa3b=>({'target':{'unitId':_0x55aa3b[_0x13eeb6(0x19b)],'unitType':_0x55aa3b[_0x13eeb6(0x1d3)]}})};}function Qe(_0x96d5c5,_0x50d331,_0x3ad7c8){const _0x5025d7=_0x318ac4;let _0x332889=_0x3ad7c8[_0x5025d7(0x1cd)][_0x5025d7(0x1ae)];if(_0x332889!=null&&_0x332889[_0x5025d7(0x2e3)]()==='')throw Error(_0x5025d7(0x3eb));if(!_0x3ad7c8[_0x5025d7(0x1cd)][_0x5025d7(0x19b)])throw Error(_0x5025d7(0x291));return{'localUnitId':_0x96d5c5,'unitType':_0x50d331,'target':{'endpoint':_0x332889,'unitId':_0x3ad7c8['target'][_0x5025d7(0x19b)],'unitType':_0x3ad7c8[_0x5025d7(0x1cd)][_0x5025d7(0x1d3)]??_0x50d331},'changeset':_0x3ad7c8[_0x5025d7(0x1c6)]};}let V=class extends t[_0x318ac4(0x256)]{constructor(_0x3086ed,_0x120e8e,_0x34c358,_0x351c94,_0x1c9a25,_0x52dfde,_0x4c1e12){const _0x4be213=_0x318ac4;super(),this[_0x4be213(0x1d8)]=_0x3086ed,this[_0x4be213(0x2fa)]=_0x120e8e,this[_0x4be213(0x3e9)]=_0x34c358,this[_0x4be213(0x1ff)]=_0x351c94,this['_collaborationUIEventService']=_0x1c9a25,this['_adapter']=_0x52dfde,this[_0x4be213(0x231)]=_0x4c1e12,g(this,_0x4be213(0x22a),new Map()),g(this,_0x4be213(0x1e0),new Map()),g(this,_0x4be213(0x157),new Map()),g(this,_0x4be213(0x1ee),new Map()),g(this,_0x4be213(0x3d5),this[_0x4be213(0xd4)](void 0x0)[_0x4be213(0x3d5)]['asObservable']()),g(this,_0x4be213(0x382),new i[(_0x4be213(0x193))](0x0)),g(this,_0x4be213(0x233),this[_0x4be213(0x382)][_0x4be213(0xe7)]()),this[_0x4be213(0x174)]();}[_0x318ac4(0x174)](){const _0x90312e=_0x318ac4;this[_0x90312e(0x231)]&&this[_0x90312e(0x309)](this[_0x90312e(0x231)][_0x90312e(0x242)][_0x90312e(0x126)](_0x205b01=>{const _0x18b636=_0x90312e;_0x205b01&&this[_0x18b636(0x2b9)](),_0x205b01||this[_0x18b636(0x1ee)][_0x18b636(0x2cc)](_0x3a5656=>this[_0x18b636(0x393)](_0x3a5656));}));}[_0x318ac4(0x171)](){const _0x28f8da=_0x318ac4;super[_0x28f8da(0x171)](),this['_socketChannels']['forEach'](_0xc1b342=>{const _0x3573f0=_0x28f8da;var _0x52932a,_0x3c58b2;(_0x52932a=_0xc1b342[_0x3573f0(0x2ec)])==null||_0x52932a['unsubscribe'](),_0xc1b342[_0x3573f0(0x2ec)]=null,this[_0x3573f0(0x3f0)](_0xc1b342),this[_0x3573f0(0x26a)](_0xc1b342),this[_0x3573f0(0x18e)](_0xc1b342),(_0x3c58b2=_0xc1b342[_0x3573f0(0x3d5)][_0x3573f0(0xfd)]())==null||_0x3c58b2[_0x3573f0(0x2ef)](),_0xc1b342[_0x3573f0(0x3d5)][_0x3573f0(0x129)]();}),this[_0x28f8da(0x1ee)][_0x28f8da(0x279)](),this[_0x28f8da(0x22a)]['forEach'](_0x1f91e7=>_0x1f91e7[_0x28f8da(0x171)]()),this[_0x28f8da(0x22a)][_0x28f8da(0x279)](),this[_0x28f8da(0x157)]['clear'](),this[_0x28f8da(0x382)]['complete']();}async[_0x318ac4(0x28f)](_0x21d13b,_0x5eb89c){const _0x341b89=_0x318ac4;if(this[_0x341b89(0x22a)][_0x341b89(0x3e2)](_0x21d13b))return this[_0x341b89(0x22a)][_0x341b89(0x3c5)](_0x21d13b);let _0x372f0e=this[_0x341b89(0x1e0)][_0x341b89(0x3c5)](_0x21d13b);if(_0x372f0e)return _0x372f0e;let _0x86eddb=this[_0x341b89(0x3b8)](_0x21d13b,_0x5eb89c);this[_0x341b89(0x1e0)][_0x341b89(0x123)](_0x21d13b,_0x86eddb);try{return await _0x86eddb;}finally{this[_0x341b89(0x1e0)]['delete'](_0x21d13b);}}async[_0x318ac4(0x3b8)](_0x233825,_0x4fdf42){const _0x1ee16a=_0x318ac4;let _0x1c64a6=await this[_0x1ee16a(0x1a6)](_0x233825,_0x4fdf42),_0x2d917f=this[_0x1ee16a(0xd4)](_0x1c64a6[_0x1ee16a(0x1cd)][_0x1ee16a(0x1ae)]);this[_0x1ee16a(0x334)](_0x2d917f);let _0x143001=this[_0x1ee16a(0x1d8)][_0x1ee16a(0x188)](ve,_0x1c64a6,_0x2d917f['socket$'][_0x1ee16a(0xe7)]());return this[_0x1ee16a(0x22a)][_0x1ee16a(0x123)](_0x233825,_0x143001),this[_0x1ee16a(0x157)][_0x1ee16a(0x123)](_0x233825,_0x2d917f[_0x1ee16a(0x172)]),_0x143001;}[_0x318ac4(0x385)](_0x32af1a){const _0x1e5ecf=_0x318ac4;let _0x2c83a4=this[_0x1e5ecf(0x22a)][_0x1e5ecf(0x3c5)](_0x32af1a),_0x20ac89=this['_sessionChannels']['get'](_0x32af1a);if(_0x2c83a4&&(this['_sessions'][_0x1e5ecf(0x305)](_0x32af1a),this['_sessionChannels'][_0x1e5ecf(0x305)](_0x32af1a),_0x2c83a4[_0x1e5ecf(0x2ef)]()),_0x20ac89&&!this['_hasSessionsForEndpoint'](_0x20ac89)){var _0x568b34;let _0x37d381=this[_0x1e5ecf(0x1ee)][_0x1e5ecf(0x3c5)](_0x20ac89);_0x37d381==null||(_0x568b34=_0x37d381[_0x1e5ecf(0x3d5)][_0x1e5ecf(0xfd)]())==null||_0x568b34['close']();}}['reconnect'](){const _0x442939=_0x318ac4;(this[_0x442939(0x1ee)][_0x442939(0x14e)]?[...this[_0x442939(0x1ee)][_0x442939(0x3d9)]()]:[this[_0x442939(0xd4)](void 0x0)])['forEach'](_0x2e17=>{const _0x45eb5f=_0x442939;_0x2e17[_0x45eb5f(0x3d0)]=0x0,this[_0x45eb5f(0x3f0)](_0x2e17),this[_0x45eb5f(0x1a1)](_0x2e17);});}['_clearRetryConnectingTimer'](_0x36b772){const _0x81b611=_0x318ac4;_0x36b772[_0x81b611(0x1f8)]!=null&&(clearTimeout(_0x36b772[_0x81b611(0x1f8)]),_0x36b772[_0x81b611(0x1f8)]=null);}async[_0x318ac4(0x3be)](_0x225381){const _0x544bcf=_0x318ac4;let _0x8ce918=this[_0x544bcf(0x3e9)][_0x544bcf(0x39f)](m),_0x4ca0c3=_0x225381[_0x544bcf(0x1ae)]??(_0x8ce918==null?void 0x0:_0x8ce918[_0x544bcf(0x118)])??'ws://127.0.0.1:8000/universer-api/comb/connect',_0x4a0576=await this['_socketService'][_0x544bcf(0xfe)](_0x4ca0c3);return _0x225381[_0x544bcf(0x329)]=_0x4a0576,_0x4a0576;}async['_tryEnsureSocket'](_0x3e4c04){const _0x17c843=_0x318ac4;try{let _0x3f0198=_0x3e4c04[_0x17c843(0x3d5)][_0x17c843(0xfd)]()??_0x3e4c04[_0x17c843(0x329)]??await this[_0x17c843(0x3be)](_0x3e4c04);if(_0x3f0198){var _0x431b72;let _0x55469e=_0x3f0198['send'];_0x3f0198[_0x17c843(0x2a3)]=_0x4fb22a=>(_0x4fb22a['cmd']!==a[_0x17c843(0x379)]['LEAVE']&&this[_0x17c843(0x1e1)](_0x3e4c04),_0x55469e[_0x17c843(0xdd)](_0x3f0198,[_0x4fb22a])),(_0x431b72=_0x3e4c04[_0x17c843(0x2ec)])==null||_0x431b72['unsubscribe'](),_0x3e4c04[_0x17c843(0x2ec)]=null,_0x3e4c04[_0x17c843(0x2ec)]=_0x3f0198[_0x17c843(0x1e2)][_0x17c843(0x126)](_0x5e64c3=>this['_onMessage'](_0x3e4c04,_0x3f0198,_0x5e64c3)),_0x3f0198['error$'][_0x17c843(0x304)]((0x0,s[_0x17c843(0x161)])(0x1))[_0x17c843(0x126)](_0x2eeaa7=>this[_0x17c843(0x2fa)][_0x17c843(0x36b)]('[CollaborationSessionService]:\x20socket\x20error',_0x2eeaa7)),_0x3f0198['open$'][_0x17c843(0x304)]((0x0,s['take'])(0x1))[_0x17c843(0x126)](()=>{const _0x3e349c=_0x17c843;this[_0x3e349c(0x267)](_0x3e4c04,_0x3f0198);}),_0x3f0198[_0x17c843(0x117)][_0x17c843(0x304)]((0x0,s[_0x17c843(0x161)])(0x1))[_0x17c843(0x126)](_0x13c166=>{const _0x2806bd=_0x17c843;this[_0x2806bd(0x2fa)][_0x2806bd(0x195)](_0x2806bd(0x289),_0x2806bd(0x100),_0x13c166),this[_0x2806bd(0xe8)](_0x3e4c04);});}}catch(_0xa20454){this[_0x17c843(0x2fa)][_0x17c843(0x36b)](_0xa20454),this['_onConnectionFailed'](_0x3e4c04);}}[_0x318ac4(0x267)](_0x54a524,_0x3f31b4){const _0x47619b=_0x318ac4;this[_0x47619b(0x2fa)][_0x47619b(0x195)](_0x47619b(0x289),_0x47619b(0x1d6)),_0x3f31b4[_0x47619b(0x2a3)]({'cmd':a[_0x47619b(0x379)][_0x47619b(0x2ee)]}),this[_0x47619b(0x1e1)](_0x54a524);}[_0x318ac4(0x393)](_0x3e671f){const _0x2ea76c=_0x318ac4;_0x3e671f[_0x2ea76c(0x35f)]=!0x1,_0x3e671f[_0x2ea76c(0x329)]=null,this['_status$'][_0x2ea76c(0x322)](0x2),_0x3e671f[_0x2ea76c(0x3d5)][_0x2ea76c(0x322)](null),this[_0x2ea76c(0x26a)](_0x3e671f),this['_clearHeartbeatTimer'](_0x3e671f);}['_onConnectionFailed'](_0x2ceeb0){const _0x38e03f=_0x318ac4;this[_0x38e03f(0x393)](_0x2ceeb0),this[_0x38e03f(0x253)](_0x2ceeb0[_0x38e03f(0x172)])&&(_0x2ceeb0[_0x38e03f(0x3d0)]<(this['_configService'][_0x38e03f(0x39f)](_0x38e03f(0x3ea))??0x3)?(this['_collaborationUIEventService'][_0x38e03f(0x3b5)]({'id':_0x38e03f(0x26f)}),this[_0x38e03f(0x1a1)](_0x2ceeb0)):this[_0x38e03f(0x20b)]['emitEvent']({'id':_0x38e03f(0x3e0)}));}['_tryReconnect'](_0x159083){const _0x48b071=_0x318ac4;let _0xc9b7c2=_0x159083[_0x48b071(0x3d0)],_0x5bbdb9=this[_0x48b071(0x3e9)]['getConfig'](m),_0x2af48f=_0xc9b7c2===0x0?0x0:((_0x5bbdb9==null?void 0x0:_0x5bbdb9[_0x48b071(0x151)])??0x4e20)*0x2**_0xc9b7c2;_0x159083['retryConnectingTimer']=setTimeout(()=>{const _0x2ef66a=_0x48b071;clearTimeout(_0x159083[_0x2ef66a(0x1f8)]),_0x159083[_0x2ef66a(0x1f8)]=null,this[_0x2ef66a(0x334)](_0x159083);},_0x2af48f),_0x159083[_0x48b071(0x3d0)]+=0x1;}async[_0x318ac4(0x1a6)](_0x4e4158,_0x1fe84b){const _0x4f94b8=_0x318ac4;return Qe(_0x4e4158,_0x1fe84b,await this[_0x4f94b8(0x1c8)][_0x4f94b8(0x230)]({'unitId':_0x4e4158,'unitType':_0x1fe84b}));}[_0x318ac4(0x170)](_0x1c7728,_0x334a1a,_0x4008fd){const _0x36c694=_0x318ac4;let {cmd:_0xc86e49}=_0x4008fd;_0xc86e49===a[_0x36c694(0x379)][_0x36c694(0x2ee)]&&!_0x1c7728[_0x36c694(0x35f)]&&(_0x334a1a[_0x36c694(0x2c7)]=_0x4008fd[_0x36c694(0x1ec)][_0x36c694(0x2c7)],_0x1c7728[_0x36c694(0x3d5)][_0x36c694(0x322)](_0x334a1a),this['_status$'][_0x36c694(0x322)](0x3),_0x1c7728['socketReady']=!0x0,_0x1c7728[_0x36c694(0x329)]=null),_0xc86e49===a[_0x36c694(0x379)][_0x36c694(0x2e4)]&&this[_0x36c694(0x26a)](_0x1c7728),this['_rescheduleHeartbeat'](_0x1c7728);}[_0x318ac4(0x253)](_0x37920a){const _0x54b8c0=_0x318ac4;return[...this['_sessionChannels'][_0x54b8c0(0x3d9)]()]['some'](_0x22b5a7=>_0x22b5a7===_0x37920a);}['_getSocketChannel'](_0x1237ff){const _0x213703=_0x318ac4;let _0x17e0a1=_0x1237ff??'',_0x582b4c=this[_0x213703(0x1ee)][_0x213703(0x3c5)](_0x17e0a1);if(_0x582b4c)return _0x582b4c;let _0x3f72d6={'endpointKey':_0x17e0a1,'endpoint':_0x1237ff,'socket$':new i['BehaviorSubject'](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x213703(0x1ee)][_0x213703(0x123)](_0x17e0a1,_0x3f72d6),_0x3f72d6;}['_rescheduleHeartbeat'](_0x588f7c){const _0x3f667c=_0x318ac4;this[_0x3f667c(0x18e)](_0x588f7c),_0x588f7c['sendHeartbeatTimer']=setTimeout(()=>this[_0x3f667c(0x35a)](_0x588f7c),this[_0x3f667c(0x3e9)]['getConfig'](_0x3f667c(0x1e4))??0x7530);}[_0x318ac4(0x35a)](_0x4c6185){const _0x37759c=_0x318ac4;_0x4c6185[_0x37759c(0x3d5)]['getValue']()[_0x37759c(0x2a3)]({'cmd':a[_0x37759c(0x379)][_0x37759c(0x2e4)]}),this['_waitForHeartbeatResponse'](_0x4c6185);}['_waitForHeartbeatResponse'](_0x9ea8cb){const _0x56f56f=_0x318ac4;_0x9ea8cb[_0x56f56f(0x251)]=setTimeout(()=>this[_0x56f56f(0xe8)](_0x9ea8cb),this[_0x56f56f(0x3e9)][_0x56f56f(0x39f)](_0x56f56f(0x303))??0x4e20);}[_0x318ac4(0x18e)](_0x2bf001){const _0x5c3406=_0x318ac4;_0x2bf001[_0x5c3406(0x114)]!=null&&(clearTimeout(_0x2bf001['sendHeartbeatTimer']),_0x2bf001['sendHeartbeatTimer']=null);}[_0x318ac4(0x26a)](_0x111b94){const _0x2d3a61=_0x318ac4;_0x111b94[_0x2d3a61(0x251)]!=null&&(clearTimeout(_0x111b94[_0x2d3a61(0x251)]),_0x111b94[_0x2d3a61(0x251)]=null);}};V=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x1,t[_0x318ac4(0x28c)]),v(0x2,t[_0x318ac4(0x1b7)]),v(0x3,qe),v(0x4,(0x0,t['Inject'])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x318ac4(0x2b2)])(We))],V);let H=class extends t['RxDisposable']{constructor(_0x32f383,_0x15e7e7,_0x12fa5f,_0x16306f){const _0x171053=_0x318ac4;var _0x31db7f;super(),this[_0x171053(0x1d8)]=_0x32f383,this[_0x171053(0x1ea)]=_0x15e7e7,this[_0x171053(0x3e9)]=_0x12fa5f,this['_univerInstanceService']=_0x16306f,g(this,_0x171053(0x2d7),new Map()),g(this,'_entityInit$',new i[(_0x171053(0x164))]()),g(this,_0x171053(0x314),this[_0x171053(0x2fe)][_0x171053(0xe7)]()),((_0x31db7f=this[_0x171053(0x3e9)][_0x171053(0x39f)](_0x171053(0x11d)))==null?void 0x0:_0x31db7f[_0x171053(0x254)])!==!0x1&&this['_init']();}['dispose'](){const _0x2a2947=_0x318ac4;super[_0x2a2947(0x171)](),this[_0x2a2947(0x2d7)][_0x2a2947(0x2cc)](_0x3c5125=>_0x3c5125[_0x2a2947(0x171)]()),this[_0x2a2947(0x2d7)][_0x2a2947(0x279)]();}[_0x318ac4(0x3e1)](_0x556e87){const _0x342026=_0x318ac4;return this['_entities'][_0x342026(0x3c5)](_0x556e87)??null;}[_0x318ac4(0x1d1)](_0x5527f6){const _0x396279=_0x318ac4;let _0x412cae=this[_0x396279(0x3e1)](_0x5527f6);return _0x412cae?(0x0,i['of'])(_0x412cae):this[_0x396279(0x2fe)]['pipe']((0x0,s[_0x396279(0x27f)])(_0x4fda81=>_0x4fda81[_0x396279(0x234)]===_0x5527f6));}[_0x318ac4(0x32b)](_0xf131d1){const _0xb84831=_0x318ac4;return(0x0,i['firstValueFrom'])(this['getCollabEntity$'](_0xf131d1)['pipe']((0x0,s[_0xb84831(0x2b6)])(()=>void 0x0)));}['_init'](){const _0x10fb3c=_0x318ac4;this['_univerInstanceService'][_0x10fb3c(0x2df)](t[_0x10fb3c(0x27b)]['UNIVER_SHEET'])[_0x10fb3c(0x304)]((0x0,i[_0x10fb3c(0x25e)])(this[_0x10fb3c(0x16a)]),(0x0,s[_0x10fb3c(0x313)])(0x10))[_0x10fb3c(0x126)](async _0x131457=>{const _0x2c8c75=_0x10fb3c;let _0x10514a=_0x131457[_0x2c8c75(0x2a6)][_0x2c8c75(0xd5)](),_0x3779cb=await this[_0x2c8c75(0x3b0)](_0x10514a,t[_0x2c8c75(0x27b)][_0x2c8c75(0x204)]);this['_entities'][_0x2c8c75(0x123)](_0x10514a,_0x3779cb);}),this[_0x10fb3c(0x1b9)]['getTypeOfUnitAdded$'](t[_0x10fb3c(0x27b)][_0x10fb3c(0x1db)])[_0x10fb3c(0x304)]((0x0,i['takeUntil'])(this[_0x10fb3c(0x16a)]),(0x0,s['delay'])(0x10))[_0x10fb3c(0x304)]((0x0,s[_0x10fb3c(0x27f)])(_0x1f928e=>!_0x1f928e[_0x10fb3c(0x2a6)][_0x10fb3c(0xd5)]()[_0x10fb3c(0x26e)]('__')))[_0x10fb3c(0x126)](async _0x3aa9ad=>{const _0x50c13c=_0x10fb3c;let _0x58e7ac=_0x3aa9ad['unit'][_0x50c13c(0xd5)](),_0x47e042=await this[_0x50c13c(0x3b0)](_0x58e7ac,t[_0x50c13c(0x27b)][_0x50c13c(0x1db)]);this[_0x50c13c(0x2d7)]['set'](_0x58e7ac,_0x47e042);}),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2df)](t['UniverInstanceType'][_0x10fb3c(0x1bc)])[_0x10fb3c(0x304)]((0x0,i[_0x10fb3c(0x25e)])(this[_0x10fb3c(0x16a)]),(0x0,s['delay'])(0x10))['subscribe'](async _0x4915e0=>{const _0x2edc72=_0x10fb3c;let _0x1e8809=_0x4915e0['unit'][_0x2edc72(0xd5)](),_0x14c937=await this[_0x2edc72(0x3b0)](_0x1e8809,t[_0x2edc72(0x27b)]['UNIVER_SLIDE']);this[_0x2edc72(0x2d7)][_0x2edc72(0x123)](_0x1e8809,_0x14c937);}),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2df)](t['UniverInstanceType'][_0x10fb3c(0x177)])[_0x10fb3c(0x304)]((0x0,i[_0x10fb3c(0x25e)])(this['dispose$']),(0x0,s[_0x10fb3c(0x313)])(0x10))[_0x10fb3c(0x126)](async _0x453c97=>{const _0x43dbbe=_0x10fb3c;let _0x18edfc=_0x453c97['unit'][_0x43dbbe(0xd5)](),_0x2c26ce=await this['_startCollaboration'](_0x18edfc,t[_0x43dbbe(0x27b)][_0x43dbbe(0x177)]);this['_entities']['set'](_0x18edfc,_0x2c26ce);}),this['_univerInstanceService'][_0x10fb3c(0x2df)](t[_0x10fb3c(0x27b)][_0x10fb3c(0x30c)])[_0x10fb3c(0x304)]((0x0,i[_0x10fb3c(0x25e)])(this[_0x10fb3c(0x16a)]),(0x0,s['delay'])(0x10))[_0x10fb3c(0x126)](async _0x253fc2=>{const _0x340778=_0x10fb3c;let _0x21f1b4=_0x253fc2['unit'][_0x340778(0xd5)](),_0x36c950=await this[_0x340778(0x3b0)](_0x21f1b4,t[_0x340778(0x27b)][_0x340778(0x30c)]);this[_0x340778(0x2d7)][_0x340778(0x123)](_0x21f1b4,_0x36c950);}),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2df)](t[_0x10fb3c(0x27b)]['UNIVER_PDF'])[_0x10fb3c(0x304)]((0x0,i['takeUntil'])(this[_0x10fb3c(0x16a)]),(0x0,s[_0x10fb3c(0x313)])(0x10))[_0x10fb3c(0x126)](async _0x3936a5=>{const _0x4a9101=_0x10fb3c;let _0x14da54=_0x3936a5[_0x4a9101(0x2a6)][_0x4a9101(0xd5)](),_0x27d5dc=await this[_0x4a9101(0x3b0)](_0x14da54,t[_0x4a9101(0x27b)]['UNIVER_PDF']);this[_0x4a9101(0x2d7)][_0x4a9101(0x123)](_0x14da54,_0x27d5dc);}),(0x0,i[_0x10fb3c(0xe4)])(this[_0x10fb3c(0x1b9)]['getTypeOfUnitDisposed$'](t[_0x10fb3c(0x27b)][_0x10fb3c(0x204)]),this[_0x10fb3c(0x1b9)]['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x10fb3c(0x1db)]),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2c2)](t['UniverInstanceType'][_0x10fb3c(0x1bc)]),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2c2)](t[_0x10fb3c(0x27b)]['UNIVER_BOARD']),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2c2)](t['UniverInstanceType']['UNIVER_BASE']),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2c2)](t[_0x10fb3c(0x27b)][_0x10fb3c(0x1df)]))[_0x10fb3c(0x304)]((0x0,i[_0x10fb3c(0x25e)])(this[_0x10fb3c(0x16a)]))['subscribe'](_0x66a5da=>{const _0x3403ba=_0x10fb3c;let _0x172555=_0x66a5da['getUnitId'](),_0x2143b3=this[_0x3403ba(0x2d7)][_0x3403ba(0x3c5)](_0x172555);_0x2143b3&&(_0x2143b3[_0x3403ba(0x171)](),this[_0x3403ba(0x2d7)][_0x3403ba(0x305)](_0x172555));});}async[_0x318ac4(0x3b0)](_0x400c58,_0x26d4bd){const _0x15c19d=_0x318ac4;let _0x50bc05=await this[_0x15c19d(0x1ea)]['requireSession'](_0x400c58),_0x144494=this[_0x15c19d(0x1d8)]['createInstance'](this[_0x15c19d(0x213)](_0x26d4bd),_0x400c58,_0x26d4bd,_0x50bc05);return await _0x144494[_0x15c19d(0x2e5)](),this[_0x15c19d(0x2fe)][_0x15c19d(0x322)](_0x144494),_0x144494;}[_0x318ac4(0x213)](_0x38fc22){const _0x1990af=_0x318ac4;switch(_0x38fc22){case t[_0x1990af(0x27b)][_0x1990af(0x1db)]:return F;case t['UniverInstanceType'][_0x1990af(0x204)]:return L;case t[_0x1990af(0x27b)][_0x1990af(0x1bc)]:return R;case t[_0x1990af(0x27b)][_0x1990af(0x177)]:return z;case t[_0x1990af(0x27b)][_0x1990af(0x30c)]:return I;case t['UniverInstanceType'][_0x1990af(0x1df)]:return B;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x38fc22);}}};H=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(t['Injector'])),v(0x1,(0x0,t['Inject'])(V)),v(0x2,t['IConfigService']),v(0x3,t['IUniverInstanceService'])],H);var $e=_0x318ac4(0x384),et='1.0.0-beta.1';let tt=class extends t[_0x318ac4(0x256)]{constructor(_0x138cbb,_0x761fda){const _0x4f14fb=_0x318ac4;super(),this[_0x4f14fb(0x1b9)]=_0x138cbb,this[_0x4f14fb(0x3e9)]=_0x761fda,this[_0x4f14fb(0xdb)]();}[_0x318ac4(0xdb)](){const _0x3f537a=_0x318ac4;this['disposeWithMe'](this[_0x3f537a(0x1b9)][_0x3f537a(0x141)][_0x3f537a(0x126)](()=>{const _0x4bbe72=_0x3f537a;let _0x2dbf98=this[_0x4bbe72(0x1b9)][_0x4bbe72(0x3f3)](),_0x198229=this[_0x4bbe72(0x3e9)][_0x4bbe72(0x39f)]('DEFAULT_FILE_NAME')??_0x4bbe72(0x19c);_0x2dbf98 instanceof t[_0x4bbe72(0x2f5)]&&(_0x198229=_0x2dbf98['name']),document[_0x4bbe72(0x262)]=_0x198229;}));}};tt=y([v(0x0,t[_0x318ac4(0x245)]),v(0x1,t[_0x318ac4(0x1b7)])],tt);const nt=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x130));let U=class{constructor(_0x101a2c,_0x42a463,_0x44999f){const _0x28d0db=_0x318ac4;this[_0x28d0db(0x13d)]=_0x101a2c,this[_0x28d0db(0x3e9)]=_0x42a463,this[_0x28d0db(0x1b9)]=_0x44999f;}[_0x318ac4(0x124)](){const _0x42540e=_0x318ac4;return this[_0x42540e(0x138)]()[_0x42540e(0x108)]??{};}async[_0x318ac4(0x3b7)](_0x2f20fe){const _0x74964=_0x318ac4;let _0x14101f=this['getUploadOptions']();if(rt(_0x2f20fe,_0x14101f),_0x14101f['upload'])return _0x14101f[_0x74964(0x3bd)](_0x2f20fe);let _0x1537cd=await this[_0x74964(0x187)](_0x2f20fe);return{'id':_0x1537cd,'name':_0x2f20fe['name'],'mimeType':_0x2f20fe[_0x74964(0x1cf)],'size':_0x2f20fe['size'],'sourceType':t[_0x74964(0x1d7)][_0x74964(0xe3)],'source':_0x1537cd};}async[_0x318ac4(0x341)](_0x295daa,_0x1da934){const _0x5067c7=_0x318ac4;if(_0x1da934!==t[_0x5067c7(0x1d7)]['UUID'])return _0x295daa;let _0x3e97dc=(await this[_0x5067c7(0x13d)][_0x5067c7(0x3c5)](this[_0x5067c7(0x2bb)]()[_0x5067c7(0x14d)]('{fileID}',_0x295daa)))[_0x5067c7(0x175)];if(_0x3e97dc[_0x5067c7(0x36b)]&&_0x3e97dc[_0x5067c7(0x36b)]['code']!==a[_0x5067c7(0x1cb)]['OK'])throw _0x3e97dc[_0x5067c7(0x36b)];if(!_0x3e97dc[_0x5067c7(0x3b4)])throw Error(_0x5067c7(0x3c2));return(0x0,t[_0x5067c7(0x299)])(_0x3e97dc[_0x5067c7(0x3b4)],this[_0x5067c7(0x266)]());}async[_0x318ac4(0x187)](_0x2393b9){const _0x3cc755=_0x318ac4;let _0x14ba26=this[_0x3cc755(0x1b9)]['getFocusedUnit'](),_0x574715=_0x14ba26==null?void 0x0:_0x14ba26['getUnitId']();if(!_0x574715)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x275049=new FormData();_0x275049[_0x3cc755(0x16c)]('file',_0x2393b9);let _0x9e4173=this[_0x3cc755(0x24f)]()+_0x3cc755(0x10a)+_0x2393b9[_0x3cc755(0x14e)][_0x3cc755(0x319)]()+_0x3cc755(0x39b)+a[_0x3cc755(0xf3)][_0x3cc755(0x34c)]+'&assign='+encodeURIComponent(_0x574715),_0x55e31a=(await this['_httpService'][_0x3cc755(0x34a)](_0x9e4173,{'body':_0x275049}))['body'][_0x3cc755(0x2c1)];if(typeof _0x55e31a!='string'||!_0x55e31a)throw Error(_0x3cc755(0x338));return _0x55e31a;}[_0x318ac4(0x24f)](){const _0x9600df=_0x318ac4;return this[_0x9600df(0x138)]()[_0x9600df(0x297)]??'/universer-api/stream/file/upload';}[_0x318ac4(0x2bb)](){const _0xd9e02b=_0x318ac4;return this['_getConfig']()[_0xd9e02b(0x215)]??_0xd9e02b(0x332);}[_0x318ac4(0x266)](){const _0xd998f3=_0x318ac4;let _0x1c3182=this[_0xd998f3(0x138)]();return _0x1c3182[_0xd998f3(0x3a1)]?_0x1c3182[_0xd998f3(0x3a1)]:typeof location<'u'?location['origin']:_0x1c3182['uploadFileServerUrl']??'';}[_0x318ac4(0x138)](){const _0x3d8583=_0x318ac4;return this[_0x3d8583(0x3e9)][_0x3d8583(0x39f)](_0x3d8583(0x11d))??{};}};U=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(l['HTTPService'])),v(0x1,(0x0,t['Inject'])(t['IConfigService'])),v(0x2,(0x0,t['Inject'])(t[_0x318ac4(0x245)]))],U);function rt(_0x1d4f93,_0x31f082){const _0x5d287d=_0x318ac4;var _0x22551d;if(_0x31f082[_0x5d287d(0x3f5)]!=null&&_0x1d4f93['size']>_0x31f082[_0x5d287d(0x3f5)])throw Error(_0x5d287d(0x344));if((_0x22551d=_0x31f082[_0x5d287d(0x207)])!=null&&_0x22551d[_0x5d287d(0x347)]&&!_0x31f082[_0x5d287d(0x207)][_0x5d287d(0x194)](_0x400026=>_0x1d4f93[_0x5d287d(0x1cf)]===_0x400026||_0x1d4f93['name'][_0x5d287d(0x224)](_0x400026)||_0x400026['endsWith']('/*')&&_0x1d4f93[_0x5d287d(0x1cf)][_0x5d287d(0x26e)](_0x400026[_0x5d287d(0x343)](0x0,-0x1))))throw Error(_0x5d287d(0x1ac));}let W=class{constructor(_0x1eeb00,_0x219cba,_0x177947){const _0x39d7d2=_0x318ac4;this[_0x39d7d2(0x3e9)]=_0x1eeb00,this[_0x39d7d2(0x13d)]=_0x219cba,this[_0x39d7d2(0x3c8)]=_0x177947,this[_0x39d7d2(0x2e5)]();}[_0x318ac4(0x2e5)](){const _0x17efc8=_0x318ac4;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x226e71,_0x2d57d4)=>_0x2d57d4(_0x226e71)['pipe']((0x0,i[_0x17efc8(0x2a7)])(async _0x175d5e=>{const _0x548dc5=_0x17efc8;let _0x597ac8=_0x175d5e;if(_0x597ac8[_0x548dc5(0x125)]===0x191){if(typeof window>'u')throw Error(_0x548dc5(0x3c4));if(window[_0x548dc5(0xf7)](this[_0x548dc5(0x3c8)]['t'](_0x548dc5(0x353)))){let _0x24e974=window['encodeURIComponent'](window[_0x548dc5(0x2c8)][_0x548dc5(0x265)]);window[_0x548dc5(0x2c8)][_0x548dc5(0x265)]=this[_0x548dc5(0x1b1)]()+'?url='+_0x24e974;}}return _0x597ac8;}))});}['_getLoginPath'](){const _0x26a917=_0x318ac4;let _0x49fdc9=this['_configService'][_0x26a917(0x39f)](m);return(_0x49fdc9==null?void 0x0:_0x49fdc9[_0x26a917(0x155)])??_0x26a917(0x20d);}};W=y([v(0x0,t[_0x318ac4(0x1b7)]),v(0x1,(0x0,t[_0x318ac4(0x394)])(l[_0x318ac4(0x361)])),v(0x2,(0x0,t['Inject'])(t[_0x318ac4(0x31e)]))],W);let G=class extends t['Disposable']{constructor(_0xd40154,_0x2386ee){const _0x54117a=_0x318ac4;super(),this[_0x54117a(0x13a)]=_0xd40154,this[_0x54117a(0x3e9)]=_0x2386ee,g(this,_0x54117a(0x131),!0x1),this[_0x54117a(0xd3)]();}[_0x318ac4(0xd3)](){const _0x376651=_0x318ac4;let _0x24c58d=this;this[_0x376651(0x309)](this['_HTTPService'][_0x376651(0x11b)]({'priority':0x3e7,'interceptor':(0x0,l[_0x376651(0x270)])({'isMatch'(_0x37900a){const _0x28c66c=_0x376651;var _0x10400c;if(_0x37900a[_0x28c66c(0xee)]==='POST'&&(_0x10400c=_0x37900a[_0x28c66c(0x3aa)])!=null&&_0x10400c[_0x28c66c(0x175)]){let {objectID:_0x530eb3,objectType:_0x4f2acd}=_0x37900a['requestParams']['body']||{};if(!_0x530eb3||_0x4f2acd===void 0x0)return!0x1;let _0x55eb4c=_0x24c58d[_0x28c66c(0x399)]()+'/'+_0x4f2acd+_0x28c66c(0x252)+_0x530eb3+'/allowed';if(_0x37900a[_0x28c66c(0x3b4)]===_0x55eb4c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3e0913){const _0x5c5303=_0x376651;var _0x18177a;return(_0x18177a=_0x3e0913[_0x5c5303(0x3aa)])==null?void 0x0:_0x18177a[_0x5c5303(0x175)];},'mergeParamsToRequest'(_0x1ef5ea,_0x3dc81d){const _0x4359aa=_0x376651;let _0xcf84fb=_0x24c58d['_getAPIPrefixPath']()+_0x4359aa(0x3cf),_0x4f5fa7=_0x1ef5ea[_0x4359aa(0x2ac)]((_0x1b0fbe,_0x5622e4)=>{const _0x393c4f=_0x4359aa;let {unitID:_0x5edbac,objectID:_0x4cd8e9,objectType:_0x5a029d,actions:_0x57cdbd}=_0x5622e4;return _0x1b0fbe[_0x5edbac]||(_0x1b0fbe[_0x5edbac]={}),_0x1b0fbe[_0x5edbac][_0x4cd8e9]||(_0x1b0fbe[_0x5edbac][_0x4cd8e9]={'objectID':_0x4cd8e9,'objectType':_0x5a029d,'actions':[]}),_0x1b0fbe[_0x5edbac][_0x4cd8e9][_0x393c4f(0x140)]['push'](..._0x57cdbd),_0x1b0fbe;},{}),_0x1e8901=[];for(let _0x24bd88 in _0x4f5fa7)for(let _0x254e11 in _0x4f5fa7[_0x24bd88]){let {actions:_0x432015,objectType:_0x79afd}=_0x4f5fa7[_0x24bd88][_0x254e11],_0x57f492=[...new Set(_0x432015)];_0x1e8901[_0x4359aa(0x154)]({'unitID':_0x24bd88,'objectID':_0x254e11,'objectType':_0x79afd,'actions':_0x57f492});}return new l['HTTPRequest'](_0x4359aa(0x327),_0xcf84fb,{'headers':_0x3dc81d[_0x4359aa(0x389)],'withCredentials':_0x3dc81d[_0x4359aa(0xe2)],'responseType':_0x3dc81d[_0x4359aa(0x2dd)],'body':{'requests':_0x1e8901}});}},{'distributeResult'(_0x3ee9e1,_0x4b8438){const _0x232b39=_0x376651;let {objectActions:_0x19cab8}=_0x3ee9e1;return _0x4b8438[_0x232b39(0x2b6)](_0x30856e=>{const _0x493108=_0x232b39;let {unitID:_0x5b8428,objectID:_0xe19b3,actions:_0x45a0b6}=_0x30856e,_0x3a50fc=_0x19cab8[_0x493108(0x1b8)](_0x3d45bb=>_0x3d45bb['unitID']===_0x5b8428&&_0x3d45bb['objectID']===_0xe19b3);return{'config':_0x30856e,'result':{'actions':_0x45a0b6[_0x493108(0x2b6)](_0x2edbc6=>_0x3a50fc==null?void 0x0:_0x3a50fc['actions'][_0x493108(0x1b8)](_0x1b8f02=>_0x1b8f02[_0x493108(0x21e)]===_0x2edbc6))['filter'](_0xd979b0=>!!_0xd979b0),'error':_0x3ee9e1[_0x493108(0x36b)]}};});}})}));}[_0x318ac4(0x399)](){const _0x4545e1=_0x318ac4;let _0x42b261=this[_0x4545e1(0x3e9)][_0x4545e1(0x39f)](m);return(_0x42b261==null?void 0x0:_0x42b261[_0x4545e1(0x199)])??_0x4545e1(0xfb);}async[_0x318ac4(0x232)](_0xedc41){const _0x3635ff=_0x318ac4;let _0x561f50=this[_0x3635ff(0x399)]()+'/'+_0xedc41[_0x3635ff(0x1bf)]+_0x3635ff(0x166);return(await this[_0x3635ff(0x13a)][_0x3635ff(0x34a)](_0x561f50,{'body':_0xedc41}))[_0x3635ff(0x175)][_0x3635ff(0x10b)]||'';}async['list'](_0x3a7fe4){const _0x207f15=_0x318ac4;let _0x2f3a27=this['_getAPIPrefixPath']()+_0x207f15(0x324);return(await this[_0x207f15(0x13a)][_0x207f15(0x34a)](_0x2f3a27,{'body':_0x3a7fe4}))[_0x207f15(0x175)][_0x207f15(0xf1)];}async[_0x318ac4(0x180)](_0x20997d){const _0xe00a16=_0x318ac4;var _0x441659;let _0x5efd2c=this[_0xe00a16(0x399)]()+'/'+_0x20997d[_0xe00a16(0x1bf)]+_0xe00a16(0x252)+_0x20997d[_0xe00a16(0x10b)],_0x2f33c9=await this[_0xe00a16(0x13a)][_0xe00a16(0x1dd)](_0x5efd2c,{'body':_0x20997d});if((_0x2f33c9==null||(_0x441659=_0x2f33c9[_0xe00a16(0x175)])==null||(_0x441659=_0x441659[_0xe00a16(0x36b)])==null?void 0x0:_0x441659[_0xe00a16(0x1ad)])!==0x1)throw Error(_0xe00a16(0x18c));}async[_0x318ac4(0x31c)](_0x380d4b){const _0x15fc7d=_0x318ac4;let _0x243cce=this[_0x15fc7d(0x399)]()+'/'+_0x380d4b[_0x15fc7d(0x1bf)]+_0x15fc7d(0x252)+_0x380d4b[_0x15fc7d(0x10b)]+_0x15fc7d(0x2be);return(await this['_HTTPService'][_0x15fc7d(0x34a)](_0x243cce,{'body':_0x380d4b}))[_0x15fc7d(0x175)][_0x15fc7d(0x140)];}async['batchAllowed'](_0xde6861){const _0x52ed12=_0x318ac4;let _0x375027=this[_0x52ed12(0x399)]()+_0x52ed12(0x3cf);return(await this['_HTTPService'][_0x52ed12(0x34a)](_0x375027,{'body':{'requests':_0xde6861}}))['body'][_0x52ed12(0x293)];}async[_0x318ac4(0x2fd)](_0x4580b5){const _0x2edb8c=_0x318ac4;let _0x14b1f9=this[_0x2edb8c(0x399)]()+'/'+_0x4580b5['objectType']+_0x2edb8c(0x396),_0x5cadc0=await this[_0x2edb8c(0x13a)]['post'](_0x14b1f9,{'body':_0x4580b5});return{'roles':_0x5cadc0[_0x2edb8c(0x175)]['roles'],'actions':_0x5cadc0[_0x2edb8c(0x175)]['actions']};}async[_0x318ac4(0x134)](_0x3712bb){const _0x4a346d=_0x318ac4;let _0x6f2bf9=this[_0x4a346d(0x399)]()+_0x4a346d(0x3e6);await this[_0x4a346d(0x13a)]['delete'](_0x6f2bf9,{'params':{'collaboratorID':_0x3712bb['collaboratorID'],'objectID':_0x3712bb[_0x4a346d(0x10b)],'unitID':_0x3712bb['unitID']}});}async[_0x318ac4(0x377)](_0x27eb28){const _0x133329=_0x318ac4;let _0x4e3348=this[_0x133329(0x399)]()+_0x133329(0x3e6);await this['_HTTPService']['patch'](_0x4e3348,{'body':_0x27eb28});}async[_0x318ac4(0x26b)](_0x1cdfa8){const _0x555573=_0x318ac4;let _0x478c09=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x555573(0x13a)][_0x555573(0x34a)](_0x478c09,{'body':_0x1cdfa8});}async[_0x318ac4(0x27e)](_0x5699e1){const _0x59b359=_0x318ac4;let _0x3fb243=this[_0x59b359(0x399)]()+_0x59b359(0x3e6),_0x5c6e16=await this[_0x59b359(0x13a)][_0x59b359(0x3c5)](_0x3fb243,{'params':{'objectID':_0x5699e1[_0x59b359(0x10b)],'unitID':_0x5699e1[_0x59b359(0x234)]}});return this['setCfgEnableObjInherit'](_0x5c6e16[_0x59b359(0x175)][_0x59b359(0x225)]??!0x1),_0x5c6e16[_0x59b359(0x175)][_0x59b359(0x3d3)];}async['putCollaborators'](_0x98c8c4){const _0x5e9b7a=_0x318ac4;let _0x642700=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x5e9b7a(0x13a)]['put'](_0x642700,{'body':_0x98c8c4});}['setCfgEnableObjInherit'](_0x42f808){const _0x70702f=_0x318ac4;this[_0x70702f(0x131)]=_0x42f808;}[_0x318ac4(0x3ef)](){const _0x2d9a7c=_0x318ac4;return this[_0x2d9a7c(0x131)];}};G=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(l[_0x318ac4(0x361)])),v(0x1,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x1b7)]))],G);function it(_0x193b7c){const _0x3ba6c5=_0x318ac4;let _0x4dd32f=atob(_0x193b7c),_0x5aa56a=new Uint8Array(_0x4dd32f['length']);for(let _0x26c27a=0x0;_0x26c27a<_0x4dd32f[_0x3ba6c5(0x347)];_0x26c27a++)_0x5aa56a[_0x26c27a]=_0x4dd32f[_0x3ba6c5(0x102)](_0x26c27a);return _0x5aa56a;}function at(_0x27fc04){const _0x222543=_0x318ac4;let _0x3bbec0='';for(let _0xc61e6a=0x0;_0xc61e6a<_0x27fc04[_0x222543(0x347)];_0xc61e6a++)_0x3bbec0+=String['fromCharCode'](_0x27fc04[_0xc61e6a]);return btoa(_0x3bbec0);}function ot(_0x1f903a,_0x283810){const _0x5e49b1=_0x318ac4;let _0x21fcf5=it(_0x283810),_0x4b7066=(0x0,f[_0x5e49b1(0x3ac)])(0x10);return at((0x0,f[_0x5e49b1(0x121)])(_0x4b7066,(0x0,d['cbc'])(_0x21fcf5,_0x4b7066)['encrypt']((0x0,f[_0x5e49b1(0xe9)])(_0x1f903a))));}function st(){const _0x339628=_0x318ac4;let _0x1b3e2c=(0x0,u['getGlobalObject'])()[_0x339628(0xfc)];if(typeof window<'u'&&window[_0x339628(0x2c8)]!==void 0x0&&_0x1b3e2c){let _0x2d1a54={'time':Math[_0x339628(0x28d)](Date[_0x339628(0x115)]()/0x3e8),'domain':location[_0x339628(0xed)]};return ot(JSON['stringify'](_0x2d1a54),_0x1b3e2c);}}let K=class{constructor(_0x393109){const _0x441dbc=_0x318ac4;this[_0x441dbc(0x13d)]=_0x393109,this['_initRequestHeader']();}[_0x318ac4(0x307)](){const _0xdd51e0=_0x318ac4;this[_0xdd51e0(0x13d)][_0xdd51e0(0x11b)]({'interceptor':(_0x23474f,_0x123497)=>{const _0x286e9b=_0xdd51e0;let _0x167444=st();return _0x167444&&_0x23474f[_0x286e9b(0x389)]['set']('x-univer-host',_0x167444),_0x123497(_0x23474f);}});}};K=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(l['HTTPService']))],K);let q=class extends t[_0x318ac4(0x269)]{constructor(_0x4f66d4,_0x56901b,_0x4dda84){const _0x4be3eb=_0x318ac4;super(),this[_0x4be3eb(0x2fa)]=_0x4f66d4,this[_0x4be3eb(0x28a)]=_0x56901b,this['_localCacheService']=_0x4dda84,g(this,_0x4be3eb(0x2f9),new i['BehaviorSubject'](null)),g(this,_0x4be3eb(0x294),new i[(_0x4be3eb(0x164))]()),g(this,_0x4be3eb(0x372),this[_0x4be3eb(0x2f9)]['asObservable']()),g(this,'unitLoaded$',this[_0x4be3eb(0x294)]['asObservable']());}[_0x318ac4(0x171)](){const _0x565eb2=_0x318ac4;super['dispose'](),this['_unitLoaded$'][_0x565eb2(0x129)](),this[_0x565eb2(0x2f9)]['complete']();}async['loadUnitOfRevision'](_0x2abbe6,_0x77ce4a,_0x110723,_0x44defb){const _0x6f7c48=_0x318ac4;this[_0x6f7c48(0x2f9)][_0x6f7c48(0x322)]({'unitId':_0x2abbe6,'type':_0x77ce4a,'subUnitId':_0x44defb});let _0x3ccac5=null;switch(_0x77ce4a){case t[_0x6f7c48(0x27b)]['UNIVER_SHEET']:_0x3ccac5=await this[_0x6f7c48(0x28a)][_0x6f7c48(0x14b)](_0x2abbe6,_0x110723,void 0x0,{'initialSubUnitId':_0x44defb});break;case t['UniverInstanceType'][_0x6f7c48(0x1db)]:_0x3ccac5=await this[_0x6f7c48(0x28a)][_0x6f7c48(0x107)](_0x2abbe6,_0x110723);break;case t[_0x6f7c48(0x27b)][_0x6f7c48(0x1bc)]:_0x3ccac5=await this[_0x6f7c48(0x28a)][_0x6f7c48(0x3bf)](_0x2abbe6,_0x110723);break;case t['UniverInstanceType'][_0x6f7c48(0x177)]:_0x3ccac5=await this[_0x6f7c48(0x28a)][_0x6f7c48(0x238)](_0x2abbe6,_0x110723);break;case t[_0x6f7c48(0x27b)]['UNIVER_BASE']:_0x3ccac5=await this['_snapshotService'][_0x6f7c48(0x1ed)](_0x2abbe6,_0x110723);break;case t['UniverInstanceType'][_0x6f7c48(0x1df)]:_0x3ccac5=await this[_0x6f7c48(0x28a)][_0x6f7c48(0x39e)](_0x2abbe6,_0x110723);break;default:this[_0x6f7c48(0x2fa)][_0x6f7c48(0x36b)](_0x6f7c48(0x33b),_0x6f7c48(0x3d6));break;}return _0x3ccac5&&this[_0x6f7c48(0x294)][_0x6f7c48(0x322)](_0x3ccac5),_0x3ccac5;}async[_0x318ac4(0x260)](_0x458b23,_0x35fb11,_0x3d9d5d){const _0x5ed259=_0x318ac4;var _0x43e65f;this[_0x5ed259(0x2f9)][_0x5ed259(0x322)]({'unitId':_0x458b23,'type':_0x35fb11,'subUnitId':_0x3d9d5d});let _0x219ffa=0x0,_0x3d492e=await((_0x43e65f=this['_localCacheService'])==null?void 0x0:_0x43e65f[_0x5ed259(0x10d)](_0x458b23));return _0x3d492e&&(_0x3d492e[_0x5ed259(0x181)]||_0x3d492e[_0x5ed259(0x11a)][_0x5ed259(0x347)]!==0x0)&&(_0x219ffa=_0x3d492e['rev']),_0x219ffa===0x0&&this[_0x5ed259(0x2fa)][_0x5ed259(0x195)](_0x5ed259(0x33b),_0x5ed259(0x1af)),this['loadUnitOfRevision'](_0x458b23,_0x35fb11,_0x219ffa,_0x3d9d5d);}};q=y([v(0x0,t[_0x318ac4(0x28c)]),v(0x1,(0x0,t[_0x318ac4(0x394)])(e['SnapshotService'])),v(0x2,(0x0,t[_0x318ac4(0x2b2)])(x))],q);let J=class{constructor(_0x570dc7,_0x5a4159,_0x3de19d){const _0x7c9e43=_0x318ac4;this[_0x7c9e43(0x13d)]=_0x570dc7,this[_0x7c9e43(0x3e9)]=_0x5a4159,this[_0x7c9e43(0x1b9)]=_0x3de19d,g(this,_0x7c9e43(0xef),0x0),g(this,_0x7c9e43(0x2b3),new i['Subject']()),g(this,_0x7c9e43(0x374),this[_0x7c9e43(0x2b3)]),g(this,_0x7c9e43(0x282),new Map());}[_0x318ac4(0x222)](_0x3db9fe){const _0x21e1ab=_0x318ac4;this['_waitCount']=_0x3db9fe,this[_0x21e1ab(0x2b3)][_0x21e1ab(0x322)](_0x3db9fe);}['getImageSourceCache'](_0x103c11,_0x5595da){const _0x3d7f84=_0x318ac4;if(_0x5595da===t[_0x3d7f84(0x1d7)]['BASE64']){let _0x375b94=new Image();return _0x375b94[_0x3d7f84(0x16d)]=_0x103c11,_0x375b94;}return this[_0x3d7f84(0x282)]['get'](_0x103c11);}['addImageSourceCache'](_0xe91b81,_0x57b1e0,_0x1d1d2a){const _0x5d9262=_0x318ac4;_0x57b1e0!==t[_0x5d9262(0x1d7)][_0x5d9262(0x150)]&&_0x1d1d2a!=null&&this[_0x5d9262(0x282)][_0x5d9262(0x123)](_0xe91b81,_0x1d1d2a);}async[_0x318ac4(0x272)](_0x2d8f31){const _0xdc88de=_0x318ac4;try{let _0x411926=this[_0xdc88de(0x38f)](this['_getSignURL'](),''+_0x2d8f31),_0xd5a0ac=(await this['_httpService']['get'](_0x411926))['body'];if(_0xd5a0ac['error']&&_0xd5a0ac[_0xdc88de(0x36b)]['code']===a[_0xdc88de(0x1cb)]['OK']){let _0x222d7e=(0x0,t['resolveWithBasePath'])(_0xd5a0ac[_0xdc88de(0x3b4)],this[_0xdc88de(0x266)]());return Promise[_0xdc88de(0x239)](_0x222d7e);}return Promise[_0xdc88de(0x3a6)](_0xd5a0ac[_0xdc88de(0x36b)]);}catch(_0x3f0bff){return Promise[_0xdc88de(0x3a6)](_0x3f0bff);}}async[_0x318ac4(0x34b)](_0x25ba97){const _0x39fdc9=_0x318ac4;let _0x25c5c5='';if(!p[_0x39fdc9(0x3c9)][_0x39fdc9(0xfa)](_0x25ba97[_0x39fdc9(0x1cf)]))return this['_decreaseWaiting'](),Promise[_0x39fdc9(0x3a6)](Error(t[_0x39fdc9(0x38b)][_0x39fdc9(0x35d)]));if(_0x25ba97[_0x39fdc9(0x14e)]>(0x0,p[_0x39fdc9(0x127)])())return this['_decreaseWaiting'](),Promise['reject'](Error(t['ImageUploadStatusType'][_0x39fdc9(0xf4)]));try{let _0xd451a2=new FormData();_0xd451a2['append'](_0x39fdc9(0x119),_0x25ba97);let _0x3231ec=this['_univerInstanceService']['getFocusedUnit'](),_0x308142=_0x3231ec==null?void 0x0:_0x3231ec['getUnitId']();if(!_0x308142)throw Error(_0x39fdc9(0x218));let _0x346528=this[_0x39fdc9(0x24f)]()+_0x39fdc9(0x10a)+_0x25ba97[_0x39fdc9(0x14e)][_0x39fdc9(0x319)]()+_0x39fdc9(0x39b)+a[_0x39fdc9(0xf3)][_0x39fdc9(0x34c)]+_0x39fdc9(0x209)+encodeURIComponent(_0x308142),_0x51e3bf={'body':_0xd451a2},_0x445733=(await this['_httpService'][_0x39fdc9(0x34a)](_0x346528,_0x51e3bf))[_0x39fdc9(0x175)];if(typeof _0x445733['FileId']!=_0x39fdc9(0x30b))return this[_0x39fdc9(0x147)](),Promise[_0x39fdc9(0x3a6)](Error(t[_0x39fdc9(0x38b)][_0x39fdc9(0x336)]));_0x25c5c5=_0x445733[_0x39fdc9(0x2c1)];}catch{return this[_0x39fdc9(0x147)](),Promise[_0x39fdc9(0x3a6)](Error(t[_0x39fdc9(0x38b)]['ERROR_IMAGE']));}return new Promise((_0x5b501f,_0x2d0357)=>{const _0x224b8d=_0x39fdc9;let _0x302e8f=new FileReader();_0x302e8f[_0x224b8d(0x2f3)](_0x25ba97),_0x302e8f[_0x224b8d(0x295)]=_0x37615b=>{const _0x4fff9a=_0x224b8d;var _0x469792;let _0x3fbff=(_0x469792=_0x37615b['target'])==null?void 0x0:_0x469792[_0x4fff9a(0x24b)];if(_0x3fbff==null){this[_0x4fff9a(0x147)](),_0x2d0357(Error(t[_0x4fff9a(0x38b)][_0x4fff9a(0x336)]));return;}_0x5b501f({'imageId':(0x0,t[_0x4fff9a(0x2f0)])(0x6),'imageSourceType':t[_0x4fff9a(0x1d7)]['UUID'],'source':_0x25c5c5,'base64Cache':_0x3fbff,'status':t[_0x4fff9a(0x38b)][_0x4fff9a(0x30d)]}),this[_0x4fff9a(0x147)]();};});}[_0x318ac4(0x24f)](){const _0x49a685=_0x318ac4;let _0x56f5a9=this[_0x49a685(0x3e9)][_0x49a685(0x39f)](m);return(_0x56f5a9==null?void 0x0:_0x56f5a9[_0x49a685(0x297)])??_0x49a685(0x342);}[_0x318ac4(0x2bb)](){const _0x1bcb70=_0x318ac4;let _0x5ad111=this[_0x1bcb70(0x3e9)][_0x1bcb70(0x39f)](m);return(_0x5ad111==null?void 0x0:_0x5ad111[_0x1bcb70(0x215)])??'/universer-api/file/{fileID}/sign-url';}[_0x318ac4(0x266)](){const _0x1cf273=_0x318ac4;let _0x4e4805=this['_configService'][_0x1cf273(0x39f)](m);return(_0x4e4805==null?void 0x0:_0x4e4805[_0x1cf273(0x3a1)])??location[_0x1cf273(0x17d)];}[_0x318ac4(0x38f)](_0x12dd9c,_0x1cac73){const _0x4c1c90=_0x318ac4;return _0x12dd9c['replace'](_0x4c1c90(0x113),_0x1cac73);}[_0x318ac4(0x147)](){const _0x283a2c=_0x318ac4;--this[_0x283a2c(0xef)],this['_change$'][_0x283a2c(0x322)](this[_0x283a2c(0xef)]);}};J=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(l['HTTPService'])),v(0x1,t[_0x318ac4(0x1b7)]),v(0x2,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x245)]))],J);let Y=class{constructor(_0x3af2bc,_0x2f3502){const _0x36f8dd=_0x318ac4;this[_0x36f8dd(0x3e9)]=_0x3af2bc,this[_0x36f8dd(0x13a)]=_0x2f3502;}[_0x318ac4(0x399)](){const _0x251b41=_0x318ac4;let _0x6ab565=this['_configService']['getConfig'](m);return(_0x6ab565==null?void 0x0:_0x6ab565[_0x251b41(0x199)])??_0x251b41(0xfb);}async[_0x318ac4(0x2c4)](_0x51d8ab){const _0x2e07fc=_0x318ac4;let _0x12af41=this[_0x2e07fc(0x399)]()+_0x2e07fc(0x3e6);return{'list':[{'title':_0x2e07fc(0x280),'mentions':(await this['_HTTPService']['get'](_0x12af41,{'params':{'objectID':_0x51d8ab[_0x2e07fc(0x19b)],'unitID':_0x51d8ab[_0x2e07fc(0x19b)]}}))[_0x2e07fc(0x175)]['collaborators'][_0x2e07fc(0x2b6)](_0x50573d=>({'objectId':_0x50573d['id'],'name':_0x50573d[_0x2e07fc(0x1c3)]['name'],'metadata':{'icon':_0x50573d['subject']['avatar']},'label':_0x50573d['subject'][_0x2e07fc(0x1f1)],'objectType':t[_0x2e07fc(0x167)][_0x2e07fc(0x22f)]})),'metadata':{},'type':t['MentionType'][_0x2e07fc(0x22f)]}]};}};Y=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(t['IConfigService'])),v(0x1,(0x0,t[_0x318ac4(0x394)])(l['HTTPService']))],Y);function _0x2ea1(_0x23d969,_0x1bad6e){_0x23d969=_0x23d969-0xd3;const _0x529cc9=_0x529c();let _0x2ea184=_0x529cc9[_0x23d969];return _0x2ea184;}let X=class extends t[_0x318ac4(0x269)]{constructor(_0x2eb221,_0x584c2e,_0x76543b,_0x4208c8,_0x34e698){const _0x1ddd41=_0x318ac4;super(),this[_0x1ddd41(0x1d8)]=_0x2eb221,this[_0x1ddd41(0x1b9)]=_0x584c2e,this[_0x1ddd41(0x198)]=_0x76543b,this[_0x1ddd41(0x2e8)]=_0x4208c8,this[_0x1ddd41(0x20b)]=_0x34e698,this[_0x1ddd41(0x214)](),this[_0x1ddd41(0x31d)]();}[_0x318ac4(0x31d)](){const _0x58850d=_0x318ac4;let _0x3c45b9=async _0x276332=>{const _0x15fc70=_0x2ea1;(await this[_0x15fc70(0x2e8)][_0x15fc70(0x28f)](_0x276332))['event$'][_0x15fc70(0x304)]((0x0,s[_0x15fc70(0x27f)])(_0x109fb1=>_0x109fb1[_0x15fc70(0x1da)]===e['CollaborationEvent'][_0x15fc70(0x276)]),(0x0,s['takeUntil'])(this[_0x15fc70(0x16a)]))[_0x15fc70(0x126)](_0x4873db=>{const _0x561f8b=_0x15fc70;let {reason:_0x1f24c5}=_0x4873db['data'];this[_0x561f8b(0x20b)]['emitEvent']({'id':_0x561f8b(0x39c),'data':_0x1f24c5}),this[_0x561f8b(0x198)][_0x561f8b(0x311)](new r[(_0x561f8b(0x2d3))](_0x276332)['id'],!0x1),this[_0x561f8b(0x2e8)][_0x561f8b(0x385)](_0x276332);});};(0x0,i[_0x58850d(0xe4)])(this[_0x58850d(0x1b9)][_0x58850d(0x2df)](t[_0x58850d(0x27b)][_0x58850d(0x204)]),this[_0x58850d(0x1b9)]['getTypeOfUnitAdded$'](t[_0x58850d(0x27b)][_0x58850d(0x1db)]),this[_0x58850d(0x1b9)][_0x58850d(0x2df)](t['UniverInstanceType'][_0x58850d(0x177)]),this[_0x58850d(0x1b9)][_0x58850d(0x2df)](t[_0x58850d(0x27b)][_0x58850d(0x30c)]))[_0x58850d(0x304)]((0x0,s[_0x58850d(0x2b6)])(_0x1656d2=>_0x1656d2['unit'][_0x58850d(0xd5)]()),(0x0,s[_0x58850d(0x27f)])(_0x14d3a8=>!(0x0,t[_0x58850d(0x184)])(_0x14d3a8)),(0x0,s['takeUntil'])(this[_0x58850d(0x16a)]))[_0x58850d(0x126)](_0x3b7889=>{_0x3c45b9(_0x3b7889);});}['_initUnitPermissionChange'](){const _0x1c76ae=_0x318ac4;let _0x20df47=async _0x4e9ac3=>{const _0x85aff5=_0x2ea1;let _0x17f43b=await this[_0x85aff5(0x2e8)][_0x85aff5(0x28f)](_0x4e9ac3),_0x2e50e4=this[_0x85aff5(0x1d8)]['get'](r[_0x85aff5(0x255)]);_0x17f43b[_0x85aff5(0x21b)][_0x85aff5(0x304)]((0x0,s[_0x85aff5(0x27f)])(_0x1a99d5=>_0x1a99d5['eventID']===e[_0x85aff5(0x364)][_0x85aff5(0x357)]),(0x0,s[_0x85aff5(0x25e)])(this[_0x85aff5(0x16a)]))[_0x85aff5(0x126)](_0x27c8a6=>{const _0x15af1c=_0x85aff5;let {objectId:_0x2c9ffc}=_0x27c8a6[_0x15af1c(0x1ec)];_0x2c9ffc===_0x4e9ac3?_0x2e50e4[_0x15af1c(0x12a)](_0x4e9ac3):_0x2e50e4[_0x15af1c(0x2c6)](_0x4e9ac3,_0x2c9ffc);});};(0x0,i[_0x1c76ae(0xe4)])(this['_univerInstanceService'][_0x1c76ae(0x2df)](t['UniverInstanceType'][_0x1c76ae(0x204)]))[_0x1c76ae(0x304)]((0x0,s[_0x1c76ae(0x2b6)])(_0x2010d2=>_0x2010d2[_0x1c76ae(0x2a6)][_0x1c76ae(0xd5)]()),(0x0,s['filter'])(_0x3781fe=>!(0x0,t[_0x1c76ae(0x184)])(_0x3781fe)),(0x0,s['takeUntil'])(this[_0x1c76ae(0x16a)]))[_0x1c76ae(0x126)](_0x2c7e09=>{_0x20df47(_0x2c7e09);});}};X=y([v(0x0,(0x0,t['Inject'])(t[_0x318ac4(0x37e)])),v(0x1,t[_0x318ac4(0x245)]),v(0x2,t[_0x318ac4(0x191)]),v(0x3,(0x0,t[_0x318ac4(0x394)])(V)),v(0x4,(0x0,t[_0x318ac4(0x394)])(_))],X);let Z=class{constructor(_0x3f1b99,_0x3f30c4){const _0x3627f7=_0x318ac4;this[_0x3627f7(0x3e9)]=_0x3f1b99,this[_0x3627f7(0x13d)]=_0x3f30c4;}async[_0x318ac4(0x137)](_0xc847bd,_0x21a7d5){const _0x25502c=_0x318ac4;var _0x12a66b;let {unitID:_0xc93ee8,type:_0x36bd73,revision:_0x3699b0=0x0}=_0x21a7d5,_0x2c6428=this[_0x25502c(0x335)]()+'/'+_0x36bd73+_0x25502c(0x331)+_0xc93ee8+_0x25502c(0x18b)+_0x3699b0,_0x58c8a8=(await this['_httpService']['get'](_0x2c6428))['body'],_0x34152d=(_0x12a66b=_0x58c8a8['snapshot'])==null?void 0x0:_0x12a66b[_0x25502c(0x2bf)];if(_0x34152d){let _0x40117c=_0x34152d==null?void 0x0:_0x34152d[_0x25502c(0x1bd)];_0x34152d[_0x25502c(0x1bd)]=e[_0x25502c(0x201)]['encode']((0x0,e[_0x25502c(0x354)])(_0x40117c)),Object[_0x25502c(0xe0)](_0x34152d[_0x25502c(0x1d5)])[_0x25502c(0x2cc)](([,_0x3c0132])=>{const _0x456814=_0x25502c;let _0x2c413a=_0x3c0132[_0x456814(0x1bd)];_0x3c0132['originalMeta']=e['textEncoder'][_0x456814(0x3dc)]((0x0,e[_0x456814(0x354)])(_0x2c413a));});}return _0x58c8a8;}async[_0x318ac4(0x32d)](_0xd0aa06,_0x16be99){const _0x17d660=_0x318ac4;let {unitID:_0x200dec,type:_0x4a9f1d,blockID:_0xd248aa}=_0x16be99,_0x3e8d99=this[_0x17d660(0x2de)]()+'/'+_0x4a9f1d+_0x17d660(0x331)+_0x200dec+_0x17d660(0x1fe)+_0xd248aa;return(await this[_0x17d660(0x13d)]['get'](_0x3e8d99))[_0x17d660(0x175)];}async[_0x318ac4(0x1b0)](_0x1ba626,_0x4556d3){const _0x150625=_0x318ac4;let {unitID:_0x405f06,type:_0x311d01,blockID:_0x1f69b8}=_0x4556d3,_0x469040=this[_0x150625(0x2de)]()+_0x150625(0x1fe)+_0x311d01+_0x150625(0x331)+_0x405f06+_0x150625(0x1fe)+_0x1f69b8;return(await this[_0x150625(0x13d)][_0x150625(0x3c5)](_0x469040))['body'];}async['fetchMissingChangesets'](_0x1746e9,_0x2b9918){const _0x463f33=_0x318ac4;let {unitID:_0x20bdb0,type:_0x5e43fb,from:_0x1c71a9,to:_0x2485fe}=_0x2b9918,_0x132ac4=this['_getAPIPrefix']()+'/'+_0x5e43fb+'/unit/'+_0x20bdb0+_0x463f33(0x271)+_0x1c71a9+_0x463f33(0x3e8)+_0x2485fe;return(await this['_httpService'][_0x463f33(0x3c5)](_0x132ac4))[_0x463f33(0x175)];}['getSnapshotAPIPath'](){const _0x52e2a6=_0x318ac4;return this[_0x52e2a6(0x3e9)][_0x52e2a6(0x39f)]('SNAPSHOT_URL_KEY')??this['_getAPIPrefix']();}[_0x318ac4(0x2de)](){const _0x15d319=_0x318ac4;let _0xc90da6=this['_configService'][_0x15d319(0x39f)](m);return(_0xc90da6==null?void 0x0:_0xc90da6['snapshotServerUrl'])??_0x15d319(0x173);}async['getResourcesRequest'](_0x132164,_0x5bb82c){const _0x47387c=_0x318ac4;let _0x3c6fc6=_0x47387c(0x101)+_0x5bb82c[_0x47387c(0x1cf)]+_0x47387c(0x331)+_0x5bb82c[_0x47387c(0x234)]+_0x47387c(0x1c9);return(await this[_0x47387c(0x13d)][_0x47387c(0x3c5)](_0x3c6fc6,{'params':{'resourceId':JSON[_0x47387c(0x290)](_0x5bb82c[_0x47387c(0x2e1)])}}))[_0x47387c(0x175)];}[_0x318ac4(0x284)](){const _0x2b5ad0=_0x318ac4;throw Error(_0x2b5ad0(0x366));}['updateSnapshot'](){const _0x543c5e=_0x318ac4;throw Error(_0x543c5e(0x366));}[_0x318ac4(0x1c7)](){const _0x4bb5cd=_0x318ac4;throw Error(_0x4bb5cd(0x366));}[_0x318ac4(0x2d8)](){const _0x256557=_0x318ac4;throw Error(_0x256557(0x366));}[_0x318ac4(0x273)](){const _0x38173e=_0x318ac4;throw Error(_0x38173e(0x366));}[_0x318ac4(0x159)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Z=y([v(0x0,t[_0x318ac4(0x1b7)]),v(0x1,(0x0,t[_0x318ac4(0x394)])(l['HTTPService']))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0x6fed0e,_0x488bfc,_0x391b29,_0x4f13fc,_0x175bdb,_0x4f76b3){const _0x8cd8fd=_0x318ac4;super(_0x6fed0e,_0x488bfc,_0x391b29,_0x4f13fc),this[_0x8cd8fd(0x1a4)]=_0x175bdb,this['_logService']=_0x4f76b3;}[_0x318ac4(0x35e)](_0x50b9a2,_0x89f3c7){const _0x53949a=_0x318ac4;let _0x538c00=this[_0x53949a(0x1a5)](_0x50b9a2);if(_0x538c00)try{let _0x10daf3=this['_transformStack'](_0x538c00,_0x89f3c7);this[_0x53949a(0xf5)](_0x50b9a2,_0x10daf3);}catch(_0x232aee){this[_0x53949a(0x2fa)][_0x53949a(0x36b)](_0x53949a(0x25a),_0x232aee),this['_clearUndo'](_0x50b9a2);}let _0x30c10b=this[_0x53949a(0x1f6)](_0x50b9a2);if(_0x30c10b)try{let _0x565381=this[_0x53949a(0x326)](_0x30c10b,_0x89f3c7);this['_substituteRedoStack'](_0x50b9a2,_0x565381);}catch(_0x4580fc){this['_logService'][_0x53949a(0x36b)](_0x4580fc),this[_0x53949a(0x38a)](_0x50b9a2);}}[_0x318ac4(0x2b7)](_0x2fa7a4){const _0x46a790=_0x318ac4;let _0x99c5af=this[_0x46a790(0x1a5)](_0x2fa7a4);_0x99c5af&&(_0x99c5af['length']=0x0,this[_0x46a790(0x362)]());}[_0x318ac4(0x38a)](_0x55c2ad){const _0x498c42=_0x318ac4;let _0x5b3031=this[_0x498c42(0x1f6)](_0x55c2ad);_0x5b3031&&(_0x5b3031[_0x498c42(0x347)]=0x0,this[_0x498c42(0x362)]());}[_0x318ac4(0xf5)](_0x4cf6fd,_0x46250e){const _0x39faa1=_0x318ac4;this['_undoStacks'][_0x39faa1(0x123)](_0x4cf6fd,_0x46250e),this[_0x39faa1(0x362)]();}[_0x318ac4(0x144)](_0x1fe284,_0x156cad){this['_redoStacks']['set'](_0x1fe284,_0x156cad),this['_updateStatus']();}[_0x318ac4(0x326)](_0x7cafc0,_0x103ef9){const _0x2b8739=_0x318ac4;let _0x29259a=[],_0x2ae7de=_0x103ef9,_0x57157c=_0x103ef9;for(let _0x355c83=_0x7cafc0[_0x2b8739(0x347)]-0x1;_0x355c83>=0x0;_0x355c83--){let {unitID:_0x4bc16d,undoMutations:_0x1d1ee1,redoMutations:_0x1181bf}=_0x7cafc0[_0x355c83],_0x2b841e=this[_0x2b8739(0x1a4)][_0x2b8739(0x19a)](_0x2ae7de,_0x1d1ee1),_0x29c9bb=this['_transformService'][_0x2b8739(0x19a)](_0x57157c,_0x1181bf);if((0x0,e[_0x2b8739(0x397)])(_0x2b841e)||(0x0,e[_0x2b8739(0x397)])(_0x29c9bb)){this[_0x2b8739(0x2fa)][_0x2b8739(0x36b)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x2b841e,_0x29c9bb);break;}_0x2ae7de=_0x2b841e[_0x2b8739(0x15c)],_0x57157c=_0x29c9bb[_0x2b8739(0x15c)],_0x29259a['push']({'unitID':_0x4bc16d,'undoMutations':_0x2b841e['m2Prime'],'redoMutations':_0x29c9bb[_0x2b8739(0x1fd)]});}return _0x29259a['reverse']();}};Q=y([v(0x0,t['IUniverInstanceService']),v(0x1,t['ICommandService']),v(0x2,t[_0x318ac4(0x1e9)]),v(0x3,t[_0x318ac4(0x1b7)]),v(0x4,e[_0x318ac4(0x28e)]),v(0x5,t[_0x318ac4(0x28c)])],Q);let $=class extends t[_0x318ac4(0x375)]{constructor(_0x2c7144=ee,_0x30ae90,_0x2da6e4,_0x1be3a7){const _0x45f825=_0x318ac4;super(),this[_0x45f825(0x378)]=_0x2c7144,this[_0x45f825(0x2fa)]=_0x30ae90,this['_injector']=_0x2da6e4,this[_0x45f825(0x3e9)]=_0x1be3a7;let {..._0x15fdc4}=(0x0,t['merge'])({},ee,this['_config']);if(!_0x15fdc4[_0x45f825(0x1fa)])throw Error(_0x45f825(0x3c1));this[_0x45f825(0x378)]=_0x15fdc4,this[_0x45f825(0x3e9)][_0x45f825(0x2ed)](m,_0x15fdc4);}[_0x318ac4(0x23e)](){const _0x3087d6=_0x318ac4;this['_registerDependencies'](),this[_0x3087d6(0x12b)]();}[_0x318ac4(0x1b6)](){const _0x135f08=_0x318ac4;var _0x1f4600,_0x481a36;this[_0x135f08(0x1d8)]['has'](t[_0x135f08(0x29f)])&&this[_0x135f08(0x2fa)][_0x135f08(0x36b)]('[UniverCollaborationClientPlugin]',_0x135f08(0x3ba));let _0x511288=(0x0,t[_0x135f08(0x3de)])([[t[_0x135f08(0x29f)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this[_0x135f08(0x378)][_0x135f08(0x1fa)]}],[e['ISnapshotServerService'],{'useClass':Z}],[t[_0x135f08(0x202)],{'useClass':G}],[t[_0x135f08(0x316)],{'useClass':J}],[nt,{'useClass':U}],[t[_0x135f08(0x2b5)],{'useClass':Y}],[H],[tt]],(_0x1f4600=this['_config'])==null?void 0x0:_0x1f4600['override']);if(!((_0x481a36=this['_config'])!=null&&_0x481a36[_0x135f08(0x261)])){let _0x1ee2e5=_0x511288[_0x135f08(0x17f)](([_0x27d5ee])=>_0x27d5ee===C);_0x1ee2e5!==-0x1&&_0x511288[_0x135f08(0x2e0)](_0x1ee2e5,0x1);}(0x0,t[_0x135f08(0x3e7)])(this[_0x135f08(0x1d8)],_0x511288);}['_initDependencies'](){const _0x1c92c1=_0x318ac4;var _0x8830f2,_0x5402ef;if(this[_0x1c92c1(0x1d8)]['get'](l[_0x1c92c1(0x361)])[_0x1c92c1(0x11b)]({'priority':0x14,'interceptor':(0x0,l[_0x1c92c1(0x3c3)])({'maxParallel':0x6})}),!((_0x8830f2=this[_0x1c92c1(0x378)])!=null&&_0x8830f2[_0x1c92c1(0x277)])){var _0x54eacc;(_0x54eacc=this[_0x1c92c1(0x1d8)][_0x1c92c1(0x3c5)](x,t[_0x1c92c1(0x246)][_0x1c92c1(0x13e)]))==null||_0x54eacc[_0x1c92c1(0x3f6)]();}(_0x5402ef=this[_0x1c92c1(0x378)])!=null&&_0x5402ef[_0x1c92c1(0x35b)]&&(0x0,t[_0x1c92c1(0x26c)])(this[_0x1c92c1(0x1d8)],[[W]]),(0x0,t[_0x1c92c1(0x26c)])(this[_0x1c92c1(0x1d8)],[[K],[H],[X]]);}};g($,'pluginName',_0x318ac4(0x1f5)),g($,_0x318ac4(0x3e4),$e),g($,_0x318ac4(0x228),et),$=y([(0x0,t['DependentOn'])(u[_0x318ac4(0x1ba)],l[_0x318ac4(0xe6)],e['UniverCollaborationPlugin']),v(0x1,t[_0x318ac4(0x28c)]),v(0x2,(0x0,t['Inject'])(t['Injector'])),v(0x3,t[_0x318ac4(0x1b7)])],$),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x17c),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x318ac4(0x39a),{'enumerable':!0x0,'get':function(){return k;}}),Object['defineProperty'](exports,_0x318ac4(0x25c),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x1a2),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x1c4),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x318ac4(0x248)]=m,Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x3ce),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,_0x318ac4(0x317),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x32c),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x3a2),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x318ac4(0x34e)](exports,'CollaborationSession',{'enumerable':!0x0,'get':function(){return ve;}}),Object['defineProperty'](exports,_0x318ac4(0x386),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x33a),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x318ac4(0x2a0)]=Be,exports[_0x318ac4(0x1c1)]=ie,exports['CollaborationUIEventService']=_,Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x2db),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x318ac4(0xf0)]=ae,Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x318),{'enumerable':!0x0,'get':function(){return j;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']='ws://127.0.0.1:8000/universer-api/comb/connect',exports[_0x318ac4(0x1f3)]='/universer-api/uniscript',exports[_0x318ac4(0x33f)]=_0x318ac4(0x369),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x352),{'enumerable':!0x0,'get':function(){return q;}}),Object['defineProperty'](exports,_0x318ac4(0xf2),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x116),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x318ac4(0x38d)]=_0x318ac4(0x1e4),exports[_0x318ac4(0x3b9)]='HEARTBEAT_TIMEOUT',exports['IAttachmentIoService']=nt,exports[_0x318ac4(0x1e6)]=Xe,exports[_0x318ac4(0x17b)]=qe,exports[_0x318ac4(0x2bc)]=x,exports['INetworkConditionService']=We,exports[_0x318ac4(0x2d4)]=C,exports['LOCAL_CACHE_INTERVAL']=0x3e8,exports[_0x318ac4(0x1b2)]=_0x318ac4(0x16e),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x283),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x1bb),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x36c),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x318ac4(0x34e)](exports,'PdfCollaborationEntity',{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x1a0),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x318ac4(0x27a)]=_0x318ac4(0x1c5),exports['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x318ac4(0x3ea),exports['SessionStatus']=ge,Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x3c6),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x370),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x3a7),{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,_0x318ac4(0x1eb),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x318ac4(0x34e)](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return D;}}),exports['UnitStatus']=xe,Object[_0x318ac4(0x34e)](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x318ac4(0x3a4)]=Ze,exports[_0x318ac4(0x1d4)]=Ge,exports['getLocalCacheKey']=ye,exports[_0x318ac4(0x14a)]=Ke;
|