@univerjs-pro/collaboration-client 0.2.9 → 0.2.11
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/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(_0x2ba193,_0x5c5614){const _0x41da0=_0x3d0e,_0x46f166=_0x2ba193();while(!![]){try{const _0x59f4e7=-parseInt(_0x41da0(0x18c))/0x1*(-parseInt(_0x41da0(0x217))/0x2)+parseInt(_0x41da0(0x222))/0x3*(-parseInt(_0x41da0(0x1f0))/0x4)+-parseInt(_0x41da0(0x23b))/0x5*(parseInt(_0x41da0(0x33d))/0x6)+parseInt(_0x41da0(0x2d2))/0x7+-parseInt(_0x41da0(0x335))/0x8*(parseInt(_0x41da0(0x341))/0x9)+parseInt(_0x41da0(0x550))/0xa*(parseInt(_0x41da0(0x3fc))/0xb)+parseInt(_0x41da0(0x2b5))/0xc*(parseInt(_0x41da0(0x582))/0xd);if(_0x59f4e7===_0x5c5614)break;else _0x46f166['push'](_0x46f166['shift']());}catch(_0xa6d127){_0x46f166['push'](_0x46f166['shift']());}}}(_0x7461,0xd854b),function(_0x2c6cbc,_0x34d8f2){const _0x4db6e7=_0x3d0e;typeof exports==_0x4db6e7(0x50c)&&typeof module<'u'?_0x34d8f2(exports,require(_0x4db6e7(0x253)),require('@univerjs/sheets'),require(_0x4db6e7(0x1b3)),require(_0x4db6e7(0x192)),require('@univerjs-pro/collaboration'),require(_0x4db6e7(0x427)),require('rxjs/operators'),require(_0x4db6e7(0x2b0)),require(_0x4db6e7(0x52e)),require(_0x4db6e7(0x43c)),require('@univerjs/engine-render'),require(_0x4db6e7(0x2e3)),require(_0x4db6e7(0x52b)),require(_0x4db6e7(0x433)),require('react'),require(_0x4db6e7(0x493)),require('@univerjs/rpc')):typeof define==_0x4db6e7(0x1b6)&&define['amd']?define([_0x4db6e7(0x2cb),'@univerjs/core',_0x4db6e7(0x30f),'@univerjs/design','@univerjs/ui',_0x4db6e7(0x383),'rxjs',_0x4db6e7(0x382),'@univerjs/docs',_0x4db6e7(0x52e),'@univerjs/drawing',_0x4db6e7(0x517),_0x4db6e7(0x2e3),_0x4db6e7(0x52b),_0x4db6e7(0x433),'react','clsx',_0x4db6e7(0x4b9)],_0x34d8f2):(_0x2c6cbc=typeof globalThis<'u'?globalThis:_0x2c6cbc||self,_0x34d8f2(_0x2c6cbc['UniverCollaborationClient']={},_0x2c6cbc[_0x4db6e7(0x38f)],_0x2c6cbc[_0x4db6e7(0x419)],_0x2c6cbc[_0x4db6e7(0x467)],_0x2c6cbc[_0x4db6e7(0x236)],_0x2c6cbc[_0x4db6e7(0x326)],_0x2c6cbc[_0x4db6e7(0x427)],_0x2c6cbc[_0x4db6e7(0x427)]['operators'],_0x2c6cbc[_0x4db6e7(0x41d)],_0x2c6cbc['UniverNetwork'],_0x2c6cbc['UniverDrawing'],_0x2c6cbc[_0x4db6e7(0x4ca)],_0x2c6cbc['UniverEngineFormula'],_0x2c6cbc[_0x4db6e7(0x296)][_0x4db6e7(0x246)],_0x2c6cbc[_0x4db6e7(0x3ac)],_0x2c6cbc[_0x4db6e7(0x265)],_0x2c6cbc[_0x4db6e7(0x493)],_0x2c6cbc[_0x4db6e7(0x35b)]));}(this,function(_0x4c54a0,_0x3aaa00,_0x459c9c,_0x564857,_0x2b4c8d,_0x4d4d9d,_0x5cbc6e,_0x267050,_0x593e90,_0x3e5de5,_0x297e96,_0x3b10b4,_0x55b16b,_0x58296f,_0xf60f4c,_0x349b95,_0x3adb83,_0x2a45ef){'use strict';const _0x18d6ba=_0x3d0e;var _0x5b3c04=Object[_0x18d6ba(0x272)],_0x298c5c=(_0x3e5f9f,_0x59486e,_0xa9370d)=>_0x59486e in _0x3e5f9f?_0x5b3c04(_0x3e5f9f,_0x59486e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa9370d}):_0x3e5f9f[_0x59486e]=_0xa9370d,_0x2c46b8=(_0x23ff2d,_0x2f657a,_0x228fbf)=>_0x298c5c(_0x23ff2d,typeof _0x2f657a!=_0x18d6ba(0x54b)?_0x2f657a+'':_0x2f657a,_0x228fbf);const _0x4bec73='SNAPSHOT_SERVER_URL_KEY',_0x4e3762='/universer-api/snapshot',_0x37c740=_0x18d6ba(0x315),_0x3867e3=_0x18d6ba(0x578),_0xdc44de=_0x18d6ba(0x4cf),_0x5c44f0=_0x18d6ba(0x465),_0x1d14f0=_0x18d6ba(0x58e),_0x2689b9='HEARTBEAT_TIMEOUT',_0x3a9285=_0x18d6ba(0x1e6),_0x1651af=_0x18d6ba(0x4c9),_0x6e910a=_0x18d6ba(0x3a1),_0x9f6d65=_0x18d6ba(0x360),_0x699dc8='/universer-api/comb',_0xbbcc2f=_0x18d6ba(0x46e),_0x3a7a02='/universer-api/oidc/authpage';var _0x5c79e0=(_0xc8344=>(_0xc8344[_0xc8344[_0x18d6ba(0x2ca)]=0x0]=_0x18d6ba(0x2ca),_0xc8344[_0xc8344['OK']=0x1]='OK',_0xc8344[_0xc8344[_0x18d6ba(0x449)]=0x2]=_0x18d6ba(0x449),_0xc8344[_0xc8344[_0x18d6ba(0x2b6)]=0x3]='PERMISSION_DENIED',_0xc8344[_0xc8344[_0x18d6ba(0x2cc)]=0x4]=_0x18d6ba(0x2cc),_0xc8344[_0xc8344[_0x18d6ba(0x4b1)]=0x5]='UNAUTHENTICATED',_0xc8344[_0xc8344['ALREADY_EXISTS']=0x6]=_0x18d6ba(0x361),_0xc8344[_0xc8344[_0x18d6ba(0x3c0)]=0x7]=_0x18d6ba(0x3c0),_0xc8344[_0xc8344[_0x18d6ba(0x28b)]=0x8]='TOO_MANY_REQUESTS',_0xc8344[_0xc8344['COMPLETION_FINISHED']=0x9]=_0x18d6ba(0x49e),_0xc8344[_0xc8344[_0x18d6ba(0x1fe)]=0x1389]=_0x18d6ba(0x1fe),_0xc8344[_0xc8344[_0x18d6ba(0x2e0)]=0x1771]=_0x18d6ba(0x2e0),_0xc8344[_0xc8344[_0x18d6ba(0x544)]=0x1772]=_0x18d6ba(0x544),_0xc8344[_0xc8344[_0x18d6ba(0x43d)]=0x1b59]='APPLY_REJECT',_0xc8344[_0xc8344[_0x18d6ba(0x2cf)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0xc8344[_0xc8344['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x18d6ba(0x58c),_0xc8344[_0xc8344[_0x18d6ba(0x4eb)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xc8344[_0xc8344[_0x18d6ba(0x4f4)]=0x1f41]=_0x18d6ba(0x4f4),_0xc8344[_0xc8344[_0x18d6ba(0x2a8)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xc8344[_0xc8344['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x18d6ba(0x30b),_0xc8344[_0xc8344['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x18d6ba(0x327),_0xc8344[_0xc8344[_0x18d6ba(0x1e0)]=0x232c]=_0x18d6ba(0x1e0),_0xc8344[_0xc8344[_0x18d6ba(0x514)]=0x232d]=_0x18d6ba(0x514),_0xc8344[_0xc8344[_0x18d6ba(0x31b)]=0x2711]=_0x18d6ba(0x31b),_0xc8344[_0xc8344[_0x18d6ba(0x4fb)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0xc8344[_0xc8344['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0xc8344[_0xc8344[_0x18d6ba(0x429)]=0x2714]=_0x18d6ba(0x429),_0xc8344[_0xc8344[_0x18d6ba(0x412)]=-0x1]=_0x18d6ba(0x412),_0xc8344))(_0x5c79e0||{}),_0x3a110c=(_0x3e1a64=>(_0x3e1a64[_0x3e1a64['UNIVER_UNKNOWN']=0x0]=_0x18d6ba(0x359),_0x3e1a64[_0x3e1a64[_0x18d6ba(0x4c1)]=0x1]='UNIVER_DOC',_0x3e1a64[_0x3e1a64[_0x18d6ba(0x18a)]=0x2]=_0x18d6ba(0x18a),_0x3e1a64[_0x3e1a64[_0x18d6ba(0x4c3)]=0x3]=_0x18d6ba(0x4c3),_0x3e1a64[_0x3e1a64[_0x18d6ba(0x48a)]=0x4]=_0x18d6ba(0x48a),_0x3e1a64[_0x3e1a64[_0x18d6ba(0x412)]=-0x1]=_0x18d6ba(0x412),_0x3e1a64))(_0x3a110c||{}),_0x34149a=(_0x1420f0=>(_0x1420f0[_0x1420f0[_0x18d6ba(0x4a6)]=0x0]=_0x18d6ba(0x4a6),_0x1420f0[_0x1420f0[_0x18d6ba(0x2ff)]=0x1]=_0x18d6ba(0x2ff),_0x1420f0[_0x1420f0[_0x18d6ba(0x4a8)]=0x2]=_0x18d6ba(0x4a8),_0x1420f0[_0x1420f0[_0x18d6ba(0x1c3)]=0x3]=_0x18d6ba(0x1c3),_0x1420f0[_0x1420f0[_0x18d6ba(0x365)]=0x4]='INGEST',_0x1420f0[_0x1420f0[_0x18d6ba(0x31e)]=0x5]=_0x18d6ba(0x31e),_0x1420f0[_0x1420f0[_0x18d6ba(0x4c7)]=0x6]=_0x18d6ba(0x4c7),_0x1420f0[_0x1420f0[_0x18d6ba(0x412)]=-0x1]=_0x18d6ba(0x412),_0x1420f0))(_0x34149a||{}),_0x3833d2=(_0xec896c=>(_0xec896c[_0xec896c[_0x18d6ba(0x2ad)]=0x0]='UNKNOWN_CODE',_0xec896c[_0xec896c['OK']=0x1]='OK',_0xec896c[_0xec896c[_0x18d6ba(0x302)]=0x2]=_0x18d6ba(0x302),_0xec896c[_0xec896c[_0x18d6ba(0x412)]=-0x1]='UNRECOGNIZED',_0xec896c))(_0x3833d2||{}),_0x306c39=(_0x1a2ab6=>(_0x1a2ab6[_0x1a2ab6[_0x18d6ba(0x22e)]=0x0]=_0x18d6ba(0x22e),_0x1a2ab6[_0x1a2ab6['HttpImport']=0x1]='HttpImport',_0x1a2ab6[_0x1a2ab6['HttpExport']=0x2]=_0x18d6ba(0x2ba),_0x1a2ab6[_0x1a2ab6[_0x18d6ba(0x37b)]=0x3]=_0x18d6ba(0x37b),_0x1a2ab6[_0x1a2ab6[_0x18d6ba(0x456)]=0x4]=_0x18d6ba(0x456),_0x1a2ab6[_0x1a2ab6[_0x18d6ba(0x412)]=-0x1]='UNRECOGNIZED',_0x1a2ab6))(_0x306c39||{}),_0x320cdc=Object[_0x18d6ba(0x272)],_0x40dcda=Object[_0x18d6ba(0x3fd)],_0x29e7e2=(_0x4988cc,_0x5acb35,_0x22753a,_0x2b0890)=>{const _0x51f2cb=_0x18d6ba;for(var _0x356e4f=_0x2b0890>0x1?void 0x0:_0x2b0890?_0x40dcda(_0x5acb35,_0x22753a):_0x5acb35,_0x28a291=_0x4988cc[_0x51f2cb(0x574)]-0x1,_0x3ba90e;_0x28a291>=0x0;_0x28a291--)(_0x3ba90e=_0x4988cc[_0x28a291])&&(_0x356e4f=(_0x2b0890?_0x3ba90e(_0x5acb35,_0x22753a,_0x356e4f):_0x3ba90e(_0x356e4f))||_0x356e4f);return _0x2b0890&&_0x356e4f&&_0x320cdc(_0x5acb35,_0x22753a,_0x356e4f),_0x356e4f;},_0x3f3e0e=(_0x44f51d,_0x40982f)=>(_0x174c5d,_0x530424)=>_0x40982f(_0x174c5d,_0x530424,_0x44f51d);let _0x107a5c=class extends _0x3aaa00[_0x18d6ba(0x350)]{constructor(_0x43d365,_0x19008f){const _0x56e9e0=_0x18d6ba;super(),_0x2c46b8(this,_0x56e9e0(0x34c),new Map()),(this[_0x56e9e0(0x318)]=_0x43d365,this['_userManagerService']=_0x19008f,this[_0x56e9e0(0x43a)](_0x3aaa00[_0x56e9e0(0x1cd)](_0x5cbc6e[_0x56e9e0(0x424)](this[_0x56e9e0(0x318)][_0x56e9e0(0x551)](_0x3aaa00[_0x56e9e0(0x434)]['UNIVER_SHEET'])[_0x56e9e0(0x32f)](_0x267050['map'](_0x9cab21=>_0x9cab21[_0x56e9e0(0x4b6)]())),this['_univerInstanceService'][_0x56e9e0(0x551)](_0x3aaa00[_0x56e9e0(0x434)][_0x56e9e0(0x4c1)])[_0x56e9e0(0x32f)](_0x267050['map'](_0x29d958=>_0x29d958['getUnitId']())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3aaa00[_0x56e9e0(0x434)]['UNIVER_SLIDE'])[_0x56e9e0(0x32f)](_0x267050[_0x56e9e0(0x343)](_0x409b54=>_0x409b54['getUnitId']())))['subscribe'](_0x1d2699=>this[_0x56e9e0(0x1ce)](_0x1d2699)))));}[_0x18d6ba(0x55f)](_0x2eef17){const _0x76de18=_0x18d6ba;this[_0x76de18(0x452)][_0x76de18(0x55f)](_0x2eef17);}[_0x18d6ba(0x331)](){const _0x5e926e=_0x18d6ba;return this[_0x5e926e(0x452)][_0x5e926e(0x331)]();}[_0x18d6ba(0x4ba)](_0x4e1808,_0x2f3da6){const _0x46c5a7=_0x18d6ba;let _0x27d3fd=this[_0x46c5a7(0x34c)]['get'](_0x4e1808);_0x27d3fd||(_0x27d3fd=new _0x41ddb6(),this[_0x46c5a7(0x34c)][_0x46c5a7(0x2a6)](_0x4e1808,_0x27d3fd)),_0x27d3fd['updateMember'](_0x2f3da6);}[_0x18d6ba(0x458)](_0x12cfee,_0x178c27){const _0x30a288=_0x18d6ba,_0xee8eac=this[_0x30a288(0x34c)][_0x30a288(0x3e4)](_0x12cfee);_0xee8eac&&_0xee8eac[_0x30a288(0x458)](_0x178c27);}[_0x18d6ba(0x201)](_0x23e892){const _0x49f188=_0x18d6ba;return this[_0x49f188(0x34c)]['get'](_0x23e892);}['getMember'](_0x10a524,_0x44e57a){const _0x3aca63=_0x18d6ba,_0x3764c6=this[_0x3aca63(0x34c)]['get'](_0x10a524);if(_0x3764c6)return _0x3764c6[_0x3aca63(0x2c1)](_0x44e57a);}['_removeRoom'](_0x57fd1f){const _0x2a3d91=_0x18d6ba,_0x3d1815=this['_roomMembers'][_0x2a3d91(0x3e4)](_0x57fd1f);_0x3d1815&&(_0x3d1815['dispose'](),this[_0x2a3d91(0x34c)]['delete'](_0x57fd1f));}['dispose'](){const _0x76d38f=_0x18d6ba;this[_0x76d38f(0x34c)][_0x76d38f(0x387)](_0x246b79=>_0x246b79[_0x76d38f(0x338)]()),this[_0x76d38f(0x34c)][_0x76d38f(0x580)]();}};_0x107a5c=_0x29e7e2([_0x3f3e0e(0x0,_0x3aaa00[_0x18d6ba(0x2d5)]),_0x3f3e0e(0x1,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x1c8)]))],_0x107a5c);class _0x41ddb6 extends _0x3aaa00[_0x18d6ba(0x350)]{constructor(){const _0x376005=_0x18d6ba;super(...arguments),_0x2c46b8(this,_0x376005(0x538),new Map());}['dispose'](){const _0x2bb029=_0x18d6ba;this[_0x2bb029(0x538)]['clear']();}['updateMember'](_0x85e7a8){const _0x10639c=_0x18d6ba;this[_0x10639c(0x538)][_0x10639c(0x2a6)](_0x85e7a8[_0x10639c(0x229)],_0x85e7a8);}[_0x18d6ba(0x458)](_0x4b564c){this['_members']['delete'](_0x4b564c);}['getMember'](_0x2405c1){const _0x17ea5b=_0x18d6ba;return this[_0x17ea5b(0x538)][_0x17ea5b(0x3e4)](_0x2405c1);}}function _0x28e9a6(_0xaf0df6){const _0x1d0e7c=_0x18d6ba;var _0x3488f,_0x117ce5,_0x91aee2,_0x498b41;const _0x4e60d7=_0xaf0df6[_0x1d0e7c(0x44f)],_0x3e32c9=JSON['parse'](_0x4e60d7);switch(_0x3e32c9[_0x1d0e7c(0x196)]){case _0x34149a[_0x1d0e7c(0x31e)]:case _0x34149a['HELLO']:{const _0x3a53f3=_0x3e32c9[_0x1d0e7c(0x34a)];return{..._0x3e32c9,'data':_0x3a53f3,'cmd':_0x3e32c9['cmd']};}case _0x34149a[_0x1d0e7c(0x4a8)]:{const _0x2ff1ef=_0x3e32c9[_0x1d0e7c(0x473)];return{..._0x3e32c9,'data':_0x2ff1ef,'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};}case _0x34149a[_0x1d0e7c(0x4c7)]:{const _0x2d09b5=_0x3e32c9[_0x1d0e7c(0x414)];switch(_0x2d09b5[_0x1d0e7c(0x539)]){case _0x4d4d9d[_0x1d0e7c(0x2ae)][_0x1d0e7c(0x31a)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':(_0x3488f=_0x2d09b5[_0x1d0e7c(0x252)])==null?void 0x0:_0x3488f['cs']},'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};case _0x4d4d9d[_0x1d0e7c(0x2ae)][_0x1d0e7c(0x4e1)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':(_0x117ce5=_0x2d09b5[_0x1d0e7c(0x26e)])==null?void 0x0:_0x117ce5['cs']},'cmd':_0x3e32c9['cmd']};case _0x4d4d9d[_0x1d0e7c(0x2ae)][_0x1d0e7c(0x27c)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':(_0x91aee2=_0x2d09b5[_0x1d0e7c(0x529)])==null?void 0x0:_0x91aee2['cs']},'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};case _0x4d4d9d[_0x1d0e7c(0x2ae)][_0x1d0e7c(0x3fb)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':(_0x498b41=_0x2d09b5[_0x1d0e7c(0x2a7)])==null?void 0x0:_0x498b41['cs']},'cmd':_0x3e32c9['cmd']};case _0x4d4d9d[_0x1d0e7c(0x2ae)][_0x1d0e7c(0x33e)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':_0x2d09b5[_0x1d0e7c(0x461)]},'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};case _0x4d4d9d[_0x1d0e7c(0x2ae)][_0x1d0e7c(0x30c)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':_0x2d09b5[_0x1d0e7c(0x346)]},'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};case _0x4d4d9d[_0x1d0e7c(0x2ae)][_0x1d0e7c(0x4af)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':_0x2d09b5[_0x1d0e7c(0x435)]},'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};case _0x4d4d9d[_0x1d0e7c(0x2ae)][_0x1d0e7c(0x425)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':_0x2d09b5[_0x1d0e7c(0x41a)]},'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};case _0x4d4d9d[_0x1d0e7c(0x2ae)]['LIVESHARE_FETCH_OPERATIONS']:case _0x4d4d9d['CollaborationEvent'][_0x1d0e7c(0x21c)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':_0x2d09b5['liveShareOperation']},'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};case _0x4d4d9d[_0x1d0e7c(0x2ae)][_0x1d0e7c(0x512)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':_0x2d09b5[_0x1d0e7c(0x41a)]},'cmd':_0x3e32c9['cmd']};case _0x4d4d9d['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x3e32c9,'data':_0x2d09b5,'cmd':_0x3e32c9['cmd']};case _0x4d4d9d[_0x1d0e7c(0x2ae)]['COMMENT_UPDATE']:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':_0x2d09b5[_0x1d0e7c(0x4fd)]},'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};case _0x4d4d9d[_0x1d0e7c(0x2ae)]['UPDATE_PERMISSION_OBJ']:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':_0x2d09b5[_0x1d0e7c(0x3bb)]},'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};case _0x4d4d9d[_0x1d0e7c(0x2ae)][_0x1d0e7c(0x2d7)]:return{..._0x3e32c9,'data':{..._0x2d09b5,'data':_0x2d09b5[_0x1d0e7c(0x32e)]},'cmd':_0x3e32c9[_0x1d0e7c(0x196)]};default:return _0x3e32c9;}}default:return _0x3e32c9;}}function _0x488e2c(_0x469fdd){const _0x41ea82=_0x18d6ba;switch(_0x469fdd['cmd']){case _0x34149a[_0x41ea82(0x31e)]:case _0x34149a[_0x41ea82(0x2ff)]:return JSON[_0x41ea82(0x1f1)]({'cmd':_0x469fdd[_0x41ea82(0x196)],'routeKey':_0x469fdd['routeKey']});case _0x34149a[_0x41ea82(0x365)]:{let _0x667e68;switch(_0x469fdd[_0x41ea82(0x44f)]['eventID']){case _0x4d4d9d[_0x41ea82(0x2ae)]['UPDATE_CURSOR']:{_0x667e68={'eventID':_0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x33e)],'updateCursorEvent':_0x469fdd[_0x41ea82(0x44f)]['data']};break;}case _0x4d4d9d[_0x41ea82(0x2ae)]['USERS_LEAVE']:{_0x667e68={'eventID':_0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x4af)],'leaveEvent':_0x469fdd[_0x41ea82(0x44f)][_0x41ea82(0x44f)]};break;}case _0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x30c)]:{_0x667e68={'eventID':_0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x30c)],'joinEvent':_0x469fdd[_0x41ea82(0x44f)]['data']};break;}case _0x4d4d9d[_0x41ea82(0x2ae)]['LIVESHARE_NEW_HOST']:{_0x667e68={'eventID':_0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x425)],'liveShareNewHost':_0x469fdd[_0x41ea82(0x44f)][_0x41ea82(0x44f)]};break;}case _0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x21c)]:{_0x667e68={'eventID':_0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x21c)],'liveShareOperation':_0x469fdd[_0x41ea82(0x44f)][_0x41ea82(0x44f)]};break;}case _0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x512)]:{_0x667e68={'eventID':_0x4d4d9d['CollaborationEvent'][_0x41ea82(0x512)],'liveShareTerminate':_0x469fdd[_0x41ea82(0x44f)][_0x41ea82(0x44f)]};break;}case _0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x3f4)]:{_0x667e68={'eventID':_0x4d4d9d['CollaborationEvent'][_0x41ea82(0x3f4)],'liveShareRequestHost':_0x469fdd[_0x41ea82(0x44f)][_0x41ea82(0x44f)]};break;}case _0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x20a)]:{_0x667e68={'eventID':_0x4d4d9d[_0x41ea82(0x2ae)][_0x41ea82(0x20a)]};break;}default:_0x667e68={'eventID':_0x469fdd[_0x41ea82(0x44f)]['eventID']};}return JSON[_0x41ea82(0x1f1)]({'cmd':_0x469fdd[_0x41ea82(0x196)],'routeKey':_0x469fdd[_0x41ea82(0x29d)],'collaMsg':_0x667e68});}case _0x34149a[_0x41ea82(0x4a8)]:return JSON[_0x41ea82(0x1f1)]({'cmd':_0x469fdd['cmd'],'routeKey':_0x469fdd[_0x41ea82(0x29d)],'joinReq':_0x469fdd[_0x41ea82(0x44f)]});case _0x34149a['LEAVE']:return JSON[_0x41ea82(0x1f1)]({'cmd':_0x469fdd[_0x41ea82(0x196)],'routeKey':_0x469fdd[_0x41ea82(0x29d)],'leaveReq':_0x469fdd['data']});default:throw new Error(_0x41ea82(0x1eb));}}var _0x4b30f2=Object[_0x18d6ba(0x272)],_0x1cc324=Object[_0x18d6ba(0x3fd)],_0xd0b376=(_0x397f8f,_0x1e0f3a,_0x552e83,_0x6d2b8d)=>{const _0x4e48d1=_0x18d6ba;for(var _0x437d0e=_0x6d2b8d>0x1?void 0x0:_0x6d2b8d?_0x1cc324(_0x1e0f3a,_0x552e83):_0x1e0f3a,_0x55bc3c=_0x397f8f[_0x4e48d1(0x574)]-0x1,_0x499c21;_0x55bc3c>=0x0;_0x55bc3c--)(_0x499c21=_0x397f8f[_0x55bc3c])&&(_0x437d0e=(_0x6d2b8d?_0x499c21(_0x1e0f3a,_0x552e83,_0x437d0e):_0x499c21(_0x437d0e))||_0x437d0e);return _0x6d2b8d&&_0x437d0e&&_0x4b30f2(_0x1e0f3a,_0x552e83,_0x437d0e),_0x437d0e;},_0x304bc5=(_0x146c1f,_0x2f596a)=>(_0x1aec84,_0x209533)=>_0x2f596a(_0x1aec84,_0x209533,_0x146c1f);const _0x41bd32=_0x3aaa00[_0x18d6ba(0x3be)](_0x18d6ba(0x1d1));function _0x102c8e(_0x4cdaa1,_0x1a542b,_0x4fac88){const _0x5d0d4c=_0x18d6ba;return _0x4cdaa1+'/'+_0x1a542b+_0x5d0d4c(0x37c)+_0x4fac88+_0x5d0d4c(0x416);}_0x4c54a0[_0x18d6ba(0x438)]=class{constructor(_0x1ebbf9,_0x1ab90b,_0x52f8b4,_0x5ae9ef,_0x2af592){const _0x589e00=_0x18d6ba;this[_0x589e00(0x472)]=_0x1ebbf9,this[_0x589e00(0x3de)]=_0x1ab90b,this['_configService']=_0x52f8b4,this['_logService']=_0x5ae9ef,this[_0x589e00(0x261)]=_0x2af592;}[_0x18d6ba(0x1f5)](_0x4db635){const _0x322cc1=_0x18d6ba,_0x84ab9=this[_0x322cc1(0x3de)][_0x322cc1(0x1f5)](_0x4db635);if(!_0x84ab9)throw new Error(_0x322cc1(0x3f9));const _0x598ea2=new _0x3aaa00[(_0x322cc1(0x53b))](),_0x611445=new _0x5cbc6e[(_0x322cc1(0x328))]();_0x598ea2[_0x322cc1(0x22f)](_0x3aaa00['toDisposable'](_0x84ab9[_0x322cc1(0x490)][_0x322cc1(0x559)](_0x10cf7c=>_0x611445[_0x322cc1(0x1c5)](_0x10cf7c)))),_0x598ea2[_0x322cc1(0x22f)](_0x3aaa00[_0x322cc1(0x1cd)](()=>_0x611445[_0x322cc1(0x581)]()));const _0x4f00ab=new _0x5cbc6e[(_0x322cc1(0x328))]();_0x598ea2[_0x322cc1(0x22f)](_0x3aaa00[_0x322cc1(0x1cd)](_0x84ab9[_0x322cc1(0x27d)][_0x322cc1(0x559)](_0x52a5c8=>_0x4f00ab[_0x322cc1(0x1c5)](_0x52a5c8)))),_0x598ea2[_0x322cc1(0x22f)](_0x3aaa00[_0x322cc1(0x1cd)](()=>_0x4f00ab[_0x322cc1(0x581)]()));const _0x30b721=new _0x5cbc6e[(_0x322cc1(0x328))]();_0x598ea2[_0x322cc1(0x22f)](_0x3aaa00[_0x322cc1(0x1cd)](_0x84ab9['message$']['subscribe'](_0x533fdd=>{const _0x4e9ccd=_0x322cc1,_0x59606e=_0x28e9a6(_0x533fdd);_0x30b721[_0x4e9ccd(0x1c5)](_0x59606e);}))),_0x598ea2[_0x322cc1(0x22f)](_0x3aaa00[_0x322cc1(0x1cd)](()=>_0x30b721[_0x322cc1(0x581)]()));const _0x1435f3=()=>{const _0x401768=_0x322cc1;_0x4f00ab['next'](new Event('connection\x20error')),_0x611445['next'](new CloseEvent(_0x401768(0x3e6))),_0x59f1d4['close']();},_0x59f1d4={'memberID':'','close$':_0x611445[_0x322cc1(0x28c)](),'error$':_0x4f00ab[_0x322cc1(0x28c)](),'open$':_0x84ab9[_0x322cc1(0x54a)],'message$':_0x30b721['asObservable'](),'send':_0x287355=>{const _0x4a85e1=_0x322cc1;if(_0x287355[_0x4a85e1(0x196)]===_0x34149a['INGEST']){if(_0x287355[_0x4a85e1(0x44f)][_0x4a85e1(0x539)]===_0x4d4d9d[_0x4a85e1(0x2ae)][_0x4a85e1(0x1fd)]){this[_0x4a85e1(0x2fe)](_0x59f1d4,_0x287355['data'])['catch'](_0x19bace=>{const _0x5e9d53=_0x4a85e1;this['_logService'][_0x5e9d53(0x4ae)](_0x19bace),_0x1435f3();});return;}if(_0x287355[_0x4a85e1(0x44f)][_0x4a85e1(0x539)]===_0x4d4d9d['CollaborationEvent']['FETCH_MISSING']){const _0x2803a2=_0x287355[_0x4a85e1(0x44f)];this[_0x4a85e1(0x26b)](_0x2803a2)[_0x4a85e1(0x56a)](_0x9f055f=>{const _0x347124=_0x4a85e1;_0x30b721['next']({'cmd':_0x34149a['RECV'],'code':_0x3833d2['OK'],'routeKey':_0x2803a2[_0x347124(0x44f)][_0x347124(0x4bb)],'routeType':'','data':{'eventID':_0x4d4d9d[_0x347124(0x2ae)][_0x347124(0x52c)],'data':{'changesets':_0x9f055f}}});})['catch'](_0x52b3d4=>{const _0x749154=_0x4a85e1;this[_0x749154(0x36e)]['error'](_0x52b3d4),_0x1435f3();});return;}}_0x84ab9['send'](_0x488e2c(_0x287355));},'close':()=>{const _0x5246b9=_0x322cc1;_0x84ab9[_0x5246b9(0x501)](),_0x598ea2[_0x5246b9(0x338)]();}};return _0x59f1d4;}async[_0x18d6ba(0x2fe)](_0x5bc937,_0x6df92e){const _0x348e8d=_0x18d6ba;var _0x9f6a06;const {unitType:_0x4194e8,unitID:_0x59528a,changeset:_0x349129}=_0x6df92e[_0x348e8d(0x44f)],_0x5bf592={'unitID':_0x59528a,'memberID':_0x5bc937[_0x348e8d(0x229)],'type':_0x4194e8,'changeset':_0x4d4d9d[_0x348e8d(0x1d9)](_0x349129)},_0x23b1c1=_0x102c8e((_0x9f6a06=this[_0x348e8d(0x394)][_0x348e8d(0x499)](_0x9f6d65))!=null?_0x9f6a06:_0x699dc8,_0x4194e8,_0x59528a);try{await this['_http']['post'](_0x23b1c1,{'body':_0x5bf592});}catch(_0x3e47d8){throw this[_0x348e8d(0x36e)][_0x348e8d(0x4ae)](_0x348e8d(0x2d0),_0x348e8d(0x259)),_0x3e47d8;}}async[_0x18d6ba(0x26b)](_0x42e083){const _0x4ff4b9=_0x18d6ba,{unitID:_0x1a28d8,from:_0x556dd1,to:_0x1d7666,unitType:_0x51064b}=_0x42e083[_0x4ff4b9(0x44f)];return(await this['_snapshotServerService'][_0x4ff4b9(0x4e5)]({'metadata':void 0x0},{'unitID':_0x1a28d8,'type':_0x51064b,'from':_0x556dd1,'to':_0x1d7666}))[_0x4ff4b9(0x589)];}},_0x4c54a0[_0x18d6ba(0x438)]=_0xd0b376([_0x304bc5(0x0,_0x3aaa00[_0x18d6ba(0x1de)](_0x3e5de5[_0x18d6ba(0x3c9)])),_0x304bc5(0x1,_0x3aaa00['Inject'](_0x3e5de5[_0x18d6ba(0x400)])),_0x304bc5(0x2,_0x3aaa00[_0x18d6ba(0x195)]),_0x304bc5(0x3,_0x3aaa00['ILogService']),_0x304bc5(0x4,_0x3aaa00['ISnapshotServerService'])],_0x4c54a0['CollaborationSocketService']);class _0x285dfb{constructor(){const _0x11e599=_0x18d6ba;_0x2c46b8(this,_0x11e599(0x202),new _0x5cbc6e['Subject']()),_0x2c46b8(this,_0x11e599(0x368),this[_0x11e599(0x202)][_0x11e599(0x28c)]());}[_0x18d6ba(0x3ba)](_0x2b641b){const _0x310bde=_0x18d6ba;this[_0x310bde(0x202)][_0x310bde(0x1c5)](_0x2b641b);}}var _0x4d28ea=Object['defineProperty'],_0x5b65b5=Object[_0x18d6ba(0x3fd)],_0x34e60d=(_0x2db369,_0xbf364b,_0x7efdfc,_0x1f70e6)=>{const _0x12c47e=_0x18d6ba;for(var _0x1883f6=_0x1f70e6>0x1?void 0x0:_0x1f70e6?_0x5b65b5(_0xbf364b,_0x7efdfc):_0xbf364b,_0x200344=_0x2db369[_0x12c47e(0x574)]-0x1,_0x130abc;_0x200344>=0x0;_0x200344--)(_0x130abc=_0x2db369[_0x200344])&&(_0x1883f6=(_0x1f70e6?_0x130abc(_0xbf364b,_0x7efdfc,_0x1883f6):_0x130abc(_0x1883f6))||_0x1883f6);return _0x1f70e6&&_0x1883f6&&_0x4d28ea(_0xbf364b,_0x7efdfc,_0x1883f6),_0x1883f6;},_0x438172=(_0x1730f3,_0x1c639a)=>(_0x2d51c6,_0x359224)=>_0x1c639a(_0x2d51c6,_0x359224,_0x1730f3),_0x2cd85f=(_0x503267=>(_0x503267[_0x503267[_0x18d6ba(0x3c5)]=0x0]=_0x18d6ba(0x3c5),_0x503267[_0x503267[_0x18d6ba(0x40a)]=0x1]=_0x18d6ba(0x40a),_0x503267[_0x503267[_0x18d6ba(0x1f8)]=0x2]=_0x18d6ba(0x1f8),_0x503267[_0x503267[_0x18d6ba(0x219)]=0x3]=_0x18d6ba(0x219),_0x503267))(_0x2cd85f||{});_0x4c54a0[_0x18d6ba(0x49c)]=class extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(_0x2390c3,_0x75d256,_0x1d3b42,_0x28e142,_0x2bd9a1,_0x12f495,_0x3973d2,_0x204a67,_0x1da015){const _0x17eb91=_0x18d6ba;super(),_0x2c46b8(this,_0x17eb91(0x492),new _0x5cbc6e[(_0x17eb91(0x1ec))](0x0)),_0x2c46b8(this,_0x17eb91(0x462),this[_0x17eb91(0x492)]['asObservable']()),_0x2c46b8(this,_0x17eb91(0x4bd),new _0x5cbc6e[(_0x17eb91(0x328))]()),_0x2c46b8(this,_0x17eb91(0x2f0),this['_event$'][_0x17eb91(0x28c)]()),_0x2c46b8(this,_0x17eb91(0x276)),_0x2c46b8(this,'_socketMessageSubscription'),_0x2c46b8(this,_0x17eb91(0x508)),(this[_0x17eb91(0x2c3)]=_0x2390c3,this[_0x17eb91(0x36e)]=_0x1d3b42,this['_beforeCloseService']=_0x28e142,this[_0x17eb91(0x21a)]=_0x2bd9a1,this[_0x17eb91(0x394)]=_0x12f495,this['_localeService']=_0x3973d2,this[_0x17eb91(0x241)]=_0x204a67,this[_0x17eb91(0x4e2)]=_0x1da015,_0x75d256[_0x17eb91(0x32f)](_0x267050[_0x17eb91(0x40b)](this[_0x17eb91(0x505)]))[_0x17eb91(0x559)](_0x1d576c=>{const _0x100fc2=_0x17eb91;var _0x1b0fa3;typeof _0x1d576c>'u'||(this[_0x100fc2(0x276)]=_0x1d576c,_0x1d576c?(this[_0x100fc2(0x570)](_0x1d576c),this[_0x100fc2(0x268)]=this[_0x100fc2(0x276)][_0x100fc2(0x1e1)][_0x100fc2(0x559)](_0x3a1c65=>{const _0x249f88=_0x100fc2;_0x3a1c65[_0x249f88(0x29d)]===this[_0x249f88(0x2c3)]&&this[_0x249f88(0x2e4)](_0x3a1c65);})):(this['_sessionStatus$'][_0x100fc2(0x1c5)](0x2),(_0x1b0fa3=this['_socketMessageSubscription'])==null||_0x1b0fa3[_0x100fc2(0x19c)](),this[_0x100fc2(0x268)]=null));}),this[_0x17eb91(0x43a)](this[_0x17eb91(0x23c)]['registerOnClose'](()=>{const _0x40e145=_0x17eb91;var _0x40d104;(_0x40d104=this[_0x40e145(0x276)])==null||_0x40d104[_0x40e145(0x393)]({'cmd':_0x34149a[_0x40e145(0x1c3)],'data':{'roomID':this[_0x40e145(0x2c3)]}});})));}get[_0x18d6ba(0x3b7)](){const _0x230a3a=_0x18d6ba;return this['_sessionStatus$'][_0x230a3a(0x453)]();}['getMemberID'](){var _0x587368,_0x53c63d;return(_0x53c63d=(_0x587368=this['_socket'])==null?void 0x0:_0x587368['memberID'])!=null?_0x53c63d:null;}[_0x18d6ba(0x338)](){const _0x123435=_0x18d6ba;super[_0x123435(0x338)](),this[_0x123435(0x505)][_0x123435(0x1c5)](),this[_0x123435(0x505)]['complete']();}[_0x18d6ba(0x501)](){const _0x4afcaf=_0x18d6ba;var _0x314bd2,_0x4a240a;(_0x314bd2=this[_0x4afcaf(0x276)])==null||_0x314bd2[_0x4afcaf(0x393)]({'cmd':_0x34149a[_0x4afcaf(0x1c3)],'data':{'roomID':this[_0x4afcaf(0x2c3)]}}),this['_event$'][_0x4afcaf(0x581)](),this[_0x4afcaf(0x492)][_0x4afcaf(0x581)](),(_0x4a240a=this[_0x4afcaf(0x276)])==null||_0x4a240a['close'](),this[_0x4afcaf(0x338)]();}[_0x18d6ba(0x2e4)](_0x587e56){const _0x23735d=_0x18d6ba;_0x587e56[_0x23735d(0x196)]===_0x34149a[_0x23735d(0x4a8)]?this[_0x23735d(0x552)](_0x587e56):_0x587e56['cmd']===_0x34149a[_0x23735d(0x4c7)]&&this[_0x23735d(0x37a)](_0x587e56);}[_0x18d6ba(0x570)](_0x2f86e0){const _0x307462=_0x18d6ba;this['_sessionStatus$'][_0x307462(0x1c5)](0x1),_0x2f86e0[_0x307462(0x393)]({'cmd':_0x34149a[_0x307462(0x4a8)],'routeKey':this[_0x307462(0x2c3)],'routeType':'','data':{'rooms':[{'roomID':this[_0x307462(0x2c3)]}]}});}['_onJoinRoomEvent'](_0x56aadc){const _0x3f648d=_0x18d6ba;var _0x49c3e4;if(_0x56aadc['code']===_0x3833d2[_0x3f648d(0x302)]){this['_messageService']['show']({'type':_0x564857[_0x3f648d(0x260)][_0x3f648d(0x40f)],'content':this[_0x3f648d(0x43e)]['t'](_0x3f648d(0x2e2))}),this[_0x3f648d(0x492)]['next'](0x2);return;}this[_0x3f648d(0x492)][_0x3f648d(0x1c5)](0x3);const _0x4ee69c=(_0x49c3e4=_0x56aadc[_0x3f648d(0x44f)][_0x3f648d(0x3e7)][this[_0x3f648d(0x2c3)]])==null?void 0x0:_0x49c3e4[_0x3f648d(0x47f)];_0x4ee69c&&_0x4ee69c[_0x3f648d(0x387)](_0x372fa6=>this['_memberService']['updateMember'](this['_unitID'],_0x372fa6));}[_0x18d6ba(0x37a)](_0x2f3a5c){const _0x8b8d3f=_0x18d6ba;try{const _0x1c6a6e=_0x2f3a5c[_0x8b8d3f(0x44f)];switch(_0x1c6a6e[_0x8b8d3f(0x539)]){case _0x4d4d9d[_0x8b8d3f(0x2ae)][_0x8b8d3f(0x30c)]:this[_0x8b8d3f(0x25a)](_0x1c6a6e),this['_event$'][_0x8b8d3f(0x1c5)](_0x1c6a6e);break;case _0x4d4d9d[_0x8b8d3f(0x2ae)][_0x8b8d3f(0x4af)]:this[_0x8b8d3f(0x3e9)](_0x1c6a6e),this[_0x8b8d3f(0x4bd)]['next'](_0x1c6a6e);break;case _0x4d4d9d[_0x8b8d3f(0x2ae)][_0x8b8d3f(0x4e1)]:this[_0x8b8d3f(0x197)](),this[_0x8b8d3f(0x4bd)][_0x8b8d3f(0x1c5)](_0x1c6a6e);break;case _0x4d4d9d[_0x8b8d3f(0x2ae)][_0x8b8d3f(0x50f)]:this['_logService'][_0x8b8d3f(0x4ae)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x8b8d3f(0x1f1)](_0x1c6a6e)),this['_event$'][_0x8b8d3f(0x1c5)](_0x1c6a6e);break;case _0x4d4d9d[_0x8b8d3f(0x2ae)][_0x8b8d3f(0x22a)]:this[_0x8b8d3f(0x4e2)][_0x8b8d3f(0x3ba)](_0x1c6a6e[_0x8b8d3f(0x44f)]),this['_event$']['next'](_0x1c6a6e);break;default:this[_0x8b8d3f(0x4bd)][_0x8b8d3f(0x1c5)](_0x1c6a6e);}}catch(_0x204b1f){this['_logService'][_0x8b8d3f(0x4ae)](_0x204b1f,_0x2f3a5c);}}[_0x18d6ba(0x25a)](_0x5e5fdd){const _0x416f96=_0x18d6ba;this[_0x416f96(0x241)][_0x416f96(0x4ba)](this[_0x416f96(0x2c3)],_0x5e5fdd['data']);}[_0x18d6ba(0x3e9)](_0x145098){const _0xc4fff=_0x18d6ba;this[_0xc4fff(0x241)]['removeMember'](this[_0xc4fff(0x2c3)],_0x145098[_0xc4fff(0x44f)][_0xc4fff(0x229)]);}async['send'](_0x3541da,_0x5f3da5){const _0x48d636=_0x18d6ba;if(this[_0x48d636(0x3b7)]!==0x3||!this[_0x48d636(0x276)])throw new Error(_0x48d636(0x440));try{_0x3541da[_0x48d636(0x539)]===_0x4d4d9d[_0x48d636(0x2ae)][_0x48d636(0x27c)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x48d636(0x276)][_0x48d636(0x393)]({'cmd':_0x34149a[_0x48d636(0x365)],'routeKey':_0x5f3da5,'routeType':'','data':_0x3541da});}catch(_0x337bd9){this['_logService'][_0x48d636(0x4ae)](_0x337bd9);}}[_0x18d6ba(0x3a6)](){const _0x59bd17=_0x18d6ba;var _0x552466;this['_collaborationTimeoutTimer']=window[_0x59bd17(0x3f1)](()=>{const _0x1abc33=_0x59bd17;this[_0x1abc33(0x508)]=null,this[_0x1abc33(0x21a)][_0x1abc33(0x3f8)]({'type':_0x564857[_0x1abc33(0x260)][_0x1abc33(0x40e)],'content':this[_0x1abc33(0x43e)]['t'](_0x1abc33(0x4a7))});},(_0x552466=this[_0x59bd17(0x394)]['getConfig'](_0x2689b9))!=null?_0x552466:0x2710);}['_clearCollaborationTimeoutTimer'](){const _0x175bf2=_0x18d6ba;this[_0x175bf2(0x508)]&&(clearTimeout(this[_0x175bf2(0x508)]),this[_0x175bf2(0x508)]=null);}},_0x4c54a0[_0x18d6ba(0x49c)]=_0x34e60d([_0x438172(0x2,_0x3aaa00[_0x18d6ba(0x42a)]),_0x438172(0x3,_0x2b4c8d[_0x18d6ba(0x28f)]),_0x438172(0x4,_0x2b4c8d['IMessageService']),_0x438172(0x5,_0x3aaa00[_0x18d6ba(0x195)]),_0x438172(0x6,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00['LocaleService'])),_0x438172(0x7,_0x3aaa00[_0x18d6ba(0x1de)](_0x107a5c)),_0x438172(0x8,_0x3aaa00[_0x18d6ba(0x1de)](_0x285dfb))],_0x4c54a0[_0x18d6ba(0x49c)]),_0x4c54a0[_0x18d6ba(0x22b)]=class extends _0x3aaa00['Disposable']{constructor(_0xc030af,_0x9e31c0,_0x307618,_0x2b38b0,_0x45fdb9,_0x3dc267){const _0x3feaa5=_0x18d6ba;super(),_0x2c46b8(this,_0x3feaa5(0x263),new _0x5cbc6e[(_0x3feaa5(0x1ec))](void 0x0)),_0x2c46b8(this,_0x3feaa5(0x587),new Map()),_0x2c46b8(this,'_status$',new _0x5cbc6e[(_0x3feaa5(0x1ec))](0x0)),_0x2c46b8(this,_0x3feaa5(0x503),this['_status$'][_0x3feaa5(0x28c)]()),_0x2c46b8(this,'_socketReady',!0x1),_0x2c46b8(this,'_sendHeartbeatTimer'),_0x2c46b8(this,_0x3feaa5(0x48d)),_0x2c46b8(this,_0x3feaa5(0x242)),_0x2c46b8(this,'_retryCount',0x0),(this['_injector']=_0xc030af,this[_0x3feaa5(0x43e)]=_0x9e31c0,this[_0x3feaa5(0x21a)]=_0x307618,this[_0x3feaa5(0x36e)]=_0x2b38b0,this[_0x3feaa5(0x394)]=_0x45fdb9,this[_0x3feaa5(0x593)]=_0x3dc267);}get[_0x18d6ba(0x276)](){const _0x32550c=_0x18d6ba;return this[_0x32550c(0x263)][_0x32550c(0x453)]();}[_0x18d6ba(0x338)](){const _0x2c151a=_0x18d6ba;super[_0x2c151a(0x338)](),this['_sessions'][_0x2c151a(0x387)](_0x4897d4=>_0x4897d4[_0x2c151a(0x338)]()),this['_sessions'][_0x2c151a(0x580)](),this[_0x2c151a(0x225)]['complete']();}async[_0x18d6ba(0x3a3)](_0x3a3201){const _0x5eb5dd=_0x18d6ba;if(this[_0x5eb5dd(0x587)][_0x5eb5dd(0x443)](_0x3a3201))return this['_sessions'][_0x5eb5dd(0x3e4)](_0x3a3201);this['_tryEnsureSocket']();const _0xac9e0e=this[_0x5eb5dd(0x42c)][_0x5eb5dd(0x491)](_0x4c54a0[_0x5eb5dd(0x49c)],_0x3a3201,this[_0x5eb5dd(0x263)][_0x5eb5dd(0x28c)]());return this[_0x5eb5dd(0x587)]['set'](_0x3a3201,_0xac9e0e),_0xac9e0e;}[_0x18d6ba(0x592)](_0x158f74){const _0x56f933=_0x18d6ba;var _0x4116f5;const _0x592a6b=this[_0x56f933(0x587)]['get'](_0x158f74);_0x592a6b&&(this[_0x56f933(0x587)][_0x56f933(0x466)](_0x158f74),_0x592a6b[_0x56f933(0x501)]()),this[_0x56f933(0x587)][_0x56f933(0x378)]||(_0x4116f5=this[_0x56f933(0x276)])==null||_0x4116f5[_0x56f933(0x501)]();}['_createSocket'](){const _0x55f92d=_0x18d6ba;var _0x299459;const _0x17d5cc=(_0x299459=this['_configService'][_0x55f92d(0x499)](_0xdc44de))!=null?_0x299459:_0x5c44f0;return this[_0x55f92d(0x593)][_0x55f92d(0x1f5)](_0x17d5cc);}[_0x18d6ba(0x4a3)](){const _0x2d4174=_0x18d6ba;try{const _0x31a6db=this[_0x2d4174(0x334)]();if(_0x31a6db){const _0x5594f0=_0x31a6db[_0x2d4174(0x393)];_0x31a6db[_0x2d4174(0x393)]=_0x26054f=>(this[_0x2d4174(0x30d)](),_0x5594f0['apply'](_0x31a6db,[_0x26054f])),_0x31a6db['message$']['subscribe'](_0x4d186b=>this['_onMessage'](_0x31a6db,_0x4d186b)),_0x31a6db[_0x2d4174(0x27d)][_0x2d4174(0x32f)](_0x267050[_0x2d4174(0x240)](0x1))[_0x2d4174(0x559)](_0x21b2a6=>this[_0x2d4174(0x36e)][_0x2d4174(0x4ae)]('[CollaborationSessionService]:\x20socket\x20error',_0x21b2a6)),_0x31a6db[_0x2d4174(0x54a)]['pipe'](_0x267050[_0x2d4174(0x240)](0x1))[_0x2d4174(0x559)](()=>{const _0x5d9faf=_0x2d4174;this[_0x5d9faf(0x423)](_0x31a6db);}),_0x31a6db['close$']['pipe'](_0x267050['take'](0x1))[_0x2d4174(0x559)](_0x9e78fa=>{const _0x6e0035=_0x2d4174;this[_0x6e0035(0x36e)]['debug'](_0x6e0035(0x2d8),_0x6e0035(0x273),_0x9e78fa),this[_0x6e0035(0x528)]();});}}catch(_0x51055f){this[_0x2d4174(0x36e)][_0x2d4174(0x4ae)](_0x51055f),this[_0x2d4174(0x528)]();}}[_0x18d6ba(0x423)](_0x1477c0){const _0x53a4a5=_0x18d6ba;this[_0x53a4a5(0x36e)][_0x53a4a5(0x3bd)](_0x53a4a5(0x2d8),_0x53a4a5(0x227)),_0x1477c0[_0x53a4a5(0x393)]({'cmd':_0x34149a[_0x53a4a5(0x2ff)]}),this[_0x53a4a5(0x30d)]();}['_onConnectionFailed'](){const _0x269b5d=_0x18d6ba;var _0x12b05e;this['_status$'][_0x269b5d(0x1c5)](0x2),this[_0x269b5d(0x263)][_0x269b5d(0x1c5)](null),this[_0x269b5d(0x37f)](),this[_0x269b5d(0x2b3)](),this[_0x269b5d(0x4f7)]=!0x1,this['_retryCount']<((_0x12b05e=this[_0x269b5d(0x394)][_0x269b5d(0x499)](_0x1651af))!=null?_0x12b05e:0x3)?(this['_scheduleReconnection'](this[_0x269b5d(0x32a)]),this[_0x269b5d(0x32a)]+=0x1):this['_messageService'][_0x269b5d(0x3f8)]({'type':_0x564857[_0x269b5d(0x260)][_0x269b5d(0x40e)],'content':this[_0x269b5d(0x43e)]['t'](_0x269b5d(0x277))});}[_0x18d6ba(0x282)](_0x4205fa){const _0x25e924=_0x18d6ba;var _0x127be0;const _0x23b473=((_0x127be0=this[_0x25e924(0x394)][_0x25e924(0x499)](_0x3a9285))!=null?_0x127be0:0x4e20)*0x2**_0x4205fa;this[_0x25e924(0x21a)][_0x25e924(0x3f8)]({'type':_0x564857[_0x25e924(0x260)][_0x25e924(0x40f)],'content':this[_0x25e924(0x43e)]['t'](_0x25e924(0x3d2))}),this[_0x25e924(0x242)]=setTimeout(()=>{const _0xed5bc7=_0x25e924;this[_0xed5bc7(0x4a3)](),clearTimeout(this[_0xed5bc7(0x242)]),this[_0xed5bc7(0x242)]=null;},_0x23b473);}[_0x18d6ba(0x30d)](){const _0x4e8de5=_0x18d6ba;var _0x218cf9;this[_0x4e8de5(0x2b3)](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x218cf9=this[_0x4e8de5(0x394)][_0x4e8de5(0x499)](_0x1d14f0))!=null?_0x218cf9:0x7530);}[_0x18d6ba(0x2b9)](){const _0x2b3695=_0x18d6ba;this[_0x2b3695(0x276)][_0x2b3695(0x393)]({'cmd':_0x34149a['HEARTBEAT']}),this[_0x2b3695(0x35e)]();}[_0x18d6ba(0x35e)](){const _0x39bc3e=_0x18d6ba;var _0x5cdd2a;this[_0x39bc3e(0x48d)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x5cdd2a=this[_0x39bc3e(0x394)][_0x39bc3e(0x499)](_0x2689b9))!=null?_0x5cdd2a:0x2710);}[_0x18d6ba(0x54e)](_0x1e58d0,_0x53be61){const _0x5a414a=_0x18d6ba,{cmd:_0x2b3a5c}=_0x53be61;_0x2b3a5c===_0x34149a[_0x5a414a(0x2ff)]&&!this['_socketReady']&&(_0x1e58d0[_0x5a414a(0x229)]=_0x53be61[_0x5a414a(0x44f)][_0x5a414a(0x229)],this[_0x5a414a(0x263)]['next'](_0x1e58d0),this['_status$'][_0x5a414a(0x1c5)](0x3),this[_0x5a414a(0x4f7)]=!0x0),_0x2b3a5c===_0x34149a[_0x5a414a(0x31e)]&&this['_clearTimeoutTimer'](),this[_0x5a414a(0x30d)]();}[_0x18d6ba(0x2b3)](){const _0x57f1c7=_0x18d6ba;this[_0x57f1c7(0x3ec)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x57f1c7(0x3ec)]=null);}[_0x18d6ba(0x37f)](){const _0x144587=_0x18d6ba;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x144587(0x48d)]),this[_0x144587(0x48d)]=null);}},_0x4c54a0[_0x18d6ba(0x22b)]=_0x34e60d([_0x438172(0x0,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x56f)])),_0x438172(0x1,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x591)])),_0x438172(0x2,_0x2b4c8d[_0x18d6ba(0x57b)]),_0x438172(0x3,_0x3aaa00[_0x18d6ba(0x42a)]),_0x438172(0x4,_0x3aaa00[_0x18d6ba(0x195)]),_0x438172(0x5,_0x41bd32)],_0x4c54a0['CollaborationSessionService']);var _0x1855ae=Object['defineProperty'],_0x85085d=Object[_0x18d6ba(0x3fd)],_0x46fd49=(_0x584ecc,_0x26321b,_0x54ea08,_0x362cb0)=>{const _0x53b6c3=_0x18d6ba;for(var _0x2f1b56=_0x362cb0>0x1?void 0x0:_0x362cb0?_0x85085d(_0x26321b,_0x54ea08):_0x26321b,_0x442171=_0x584ecc[_0x53b6c3(0x574)]-0x1,_0x131104;_0x442171>=0x0;_0x442171--)(_0x131104=_0x584ecc[_0x442171])&&(_0x2f1b56=(_0x362cb0?_0x131104(_0x26321b,_0x54ea08,_0x2f1b56):_0x131104(_0x2f1b56))||_0x2f1b56);return _0x362cb0&&_0x2f1b56&&_0x1855ae(_0x26321b,_0x54ea08,_0x2f1b56),_0x2f1b56;},_0x30ca76=(_0x489b31,_0x233bd7)=>(_0x227547,_0x4153e8)=>_0x233bd7(_0x227547,_0x4153e8,_0x489b31);_0x4c54a0['LocalCacheService']=class extends _0x3aaa00[_0x18d6ba(0x350)]{constructor(_0x2384b0,_0x2c629e,_0x5168c9,_0x5e6c5b,_0x20d415){const _0xb556bb=_0x18d6ba;super(),_0x2c46b8(this,_0xb556bb(0x267),new Map()),_0x2c46b8(this,_0xb556bb(0x3d7),new Map()),_0x2c46b8(this,_0xb556bb(0x233),!0x1),(this[_0xb556bb(0x394)]=_0x2384b0,this['_localStorageService']=_0x2c629e,this['_beforeCloseService']=_0x5168c9,this[_0xb556bb(0x43e)]=_0x5e6c5b,this['_revisionService']=_0x20d415,this['_setupBeforeClosingHandler']());}[_0x18d6ba(0x330)](){const _0x5f1bd4=_0x18d6ba;this[_0x5f1bd4(0x233)]=!0x0;}[_0x18d6ba(0x4b4)](){const _0x520104=_0x18d6ba;this[_0x520104(0x233)]=!0x1;}['dispose'](){const _0x5ca2c9=_0x18d6ba;this[_0x5ca2c9(0x390)]()[_0x5ca2c9(0x56a)](()=>super[_0x5ca2c9(0x338)]());}async[_0x18d6ba(0x1ee)](_0x55fcfc){const _0xb888f=_0x18d6ba;return this[_0xb888f(0x233)]?null:this[_0xb888f(0x212)][_0xb888f(0x2fa)](_0x1d7967(_0x55fcfc));}async[_0x18d6ba(0x3a8)](_0x437b1e,_0x104504){const _0x26ae08=_0x18d6ba;return!!this[_0x26ae08(0x212)]['setItem'](_0x437b1e,_0x104504);}['updateOfflineData'](_0x208551,_0x5ee27c,_0x2a0078,_0xcc6195){const _0x11c42e=_0x18d6ba,_0x1aafea=this['_revisionService'][_0x11c42e(0x477)](_0x208551);this[_0x11c42e(0x267)]['set'](_0x208551,{'unitID':_0x208551,'type':_0x5ee27c,'awaitingChangeset':_0x2a0078,'mutations':_0xcc6195,'rev':_0x1aafea}),this[_0x11c42e(0x3d7)][_0x11c42e(0x443)](_0x208551)||this[_0x11c42e(0x560)](_0x208551);}[_0x18d6ba(0x560)](_0x194ead){const _0x241767=_0x18d6ba,_0x36710c=this['_getSaveTimeout']();_0x36710c===0x0?this[_0x241767(0x1b0)](_0x194ead):this['_saveTaskMap'][_0x241767(0x2a6)](_0x194ead,setTimeout(()=>this[_0x241767(0x1b0)](_0x194ead),_0x36710c));}[_0x18d6ba(0x4ce)](){const _0x5c1958=_0x18d6ba;var _0x9904a8;return(_0x9904a8=this[_0x5c1958(0x394)][_0x5c1958(0x499)](_0x6e910a))!=null?_0x9904a8:0x3e8;}[_0x18d6ba(0x1b0)](_0x159d0e){const _0x4463e8=_0x18d6ba,_0x3e09d6=this[_0x4463e8(0x3d7)][_0x4463e8(0x3e4)](_0x159d0e);return _0x3e09d6!==void 0x0&&window[_0x4463e8(0x33f)](_0x3e09d6),this['_localStorageService']['setItem'](_0x1d7967(_0x159d0e),this[_0x4463e8(0x267)][_0x4463e8(0x3e4)](_0x159d0e))['then'](()=>this[_0x4463e8(0x3d7)][_0x4463e8(0x466)](_0x159d0e));}async['exhaustSavingTask'](){const _0x11122c=_0x18d6ba,_0x4a86dd=[];this[_0x11122c(0x3d7)][_0x11122c(0x387)]((_0x32465c,_0x4c82dc)=>{const _0x543bc2=_0x11122c;window[_0x543bc2(0x33f)](_0x32465c),_0x4a86dd[_0x543bc2(0x239)](this[_0x543bc2(0x1b0)](_0x4c82dc)[_0x543bc2(0x56a)](()=>{const _0x74760f=_0x543bc2;this[_0x74760f(0x3d7)][_0x74760f(0x466)](_0x4c82dc);}));}),await Promise[_0x11122c(0x4d3)](_0x4a86dd);}['_setupBeforeClosingHandler'](){const _0x4c0298=_0x18d6ba;this['disposeWithMe'](this[_0x4c0298(0x23c)][_0x4c0298(0x4b2)](()=>{const _0x3f3750=_0x4c0298;if(this[_0x3f3750(0x3d7)]['size'])return this[_0x3f3750(0x43e)]['t'](_0x3f3750(0x363));}));}},_0x4c54a0[_0x18d6ba(0x362)]=_0x46fd49([_0x30ca76(0x0,_0x3aaa00[_0x18d6ba(0x195)]),_0x30ca76(0x1,_0x3aaa00[_0x18d6ba(0x1a6)]),_0x30ca76(0x2,_0x2b4c8d[_0x18d6ba(0x28f)]),_0x30ca76(0x3,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x591)])),_0x30ca76(0x4,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x35d)]))],_0x4c54a0[_0x18d6ba(0x362)]);function _0x1d7967(_0x28cebe){return'unit-cache-'+_0x28cebe;}const _0x3a8c8d=_0x3aaa00[_0x18d6ba(0x3be)](_0x18d6ba(0x311));var _0x3fa2a7=(_0x2fc2ef=>(_0x2fc2ef[_0x2fc2ef['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x18d6ba(0x498),_0x2fc2ef[_0x2fc2ef['OTHER_CLIENTS_EDITING']=0x1]=_0x18d6ba(0x46b),_0x2fc2ef))(_0x3fa2a7||{});const _0x3f2a61=0x7530,_0x537eba=_0x18d6ba(0x4dc);class _0x12cc97 extends _0x3aaa00[_0x18d6ba(0x350)]{constructor(){const _0x95df34=_0x18d6ba;super(),_0x2c46b8(this,_0x95df34(0x4b0),_0x3aaa00['Tools']['generateRandomId']()),_0x2c46b8(this,'_selfUnitIDs',new Set()),_0x2c46b8(this,_0x95df34(0x200),new Map()),_0x2c46b8(this,'_heartbeatTimer',null),_0x2c46b8(this,_0x95df34(0x45f),new Map()),_0x2c46b8(this,'_unitStatus',new Map()),this['_init']();}[_0x18d6ba(0x338)](){const _0x3e85e6=_0x18d6ba;super[_0x3e85e6(0x338)](),this[_0x3e85e6(0x45f)][_0x3e85e6(0x387)]((_0x14758a,_0x4e9056)=>this['_removeClearOtherTimer'](_0x4e9056)),this[_0x3e85e6(0x564)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x18d6ba(0x2bd)](_0x1bacb3){const _0x12ea25=_0x18d6ba;return this[_0x12ea25(0x31d)](_0x1bacb3)[_0x12ea25(0x32f)](_0x5cbc6e[_0x12ea25(0x345)]());}[_0x18d6ba(0x39d)](_0x17a6c0){const _0x51d6f2=_0x18d6ba;this[_0x51d6f2(0x4e8)][_0x51d6f2(0x378)]===0x0&&this[_0x51d6f2(0x3c2)](),this[_0x51d6f2(0x4e8)][_0x51d6f2(0x22f)](_0x17a6c0),this[_0x51d6f2(0x270)]({'type':0x0,'memberID':this[_0x51d6f2(0x4b0)],'unitIDs':[_0x17a6c0],'isForwarded':!0x1});}[_0x18d6ba(0x4ed)](_0x1ca044){const _0x4eba6a=_0x18d6ba;this[_0x4eba6a(0x4e8)][_0x4eba6a(0x466)](_0x1ca044),this['_selfUnitIDs'][_0x4eba6a(0x378)]===0x0&&this['_heartbeatTimer']&&window[_0x4eba6a(0x471)](this['_heartbeatTimer']);}['_init'](){const _0x39ef17=_0x18d6ba;this[_0x39ef17(0x43a)](_0x3aaa00[_0x39ef17(0x1cd)](_0x5cbc6e[_0x39ef17(0x3a4)](window,'storage')[_0x39ef17(0x559)](_0x325b04=>{const _0x36aed2=_0x39ef17;if(_0x325b04[_0x36aed2(0x26a)]!==_0x537eba||!_0x325b04[_0x36aed2(0x329)])return;const _0x5c8227=JSON[_0x36aed2(0x3db)](_0x325b04[_0x36aed2(0x329)]);this[_0x36aed2(0x3e2)](_0x5c8227);}))),window[_0x39ef17(0x208)](_0x39ef17(0x2f3),()=>this['_send']({'type':0x1,'memberID':this[_0x39ef17(0x4b0)],'unitIDs':Array[_0x39ef17(0x44e)](this[_0x39ef17(0x4e8)])}));}[_0x18d6ba(0x3e2)](_0x5582d4){const _0x5f1fb3=_0x18d6ba;switch(_0x5582d4[_0x5f1fb3(0x543)]){case 0x0:this[_0x5f1fb3(0x294)](_0x5582d4);break;case 0x1:this['_handleLeaveEvent'](_0x5582d4);break;case 0x2:this[_0x5f1fb3(0x573)](_0x5582d4);break;}}[_0x18d6ba(0x294)](_0x427931){const _0x50dc88=_0x18d6ba,{unitIDs:_0x39a037,memberID:_0x288fb6,isForwarded:_0x21ed40}=_0x427931;_0x39a037['forEach'](_0x1b97b2=>{const _0xa92e88=_0x3d0e;if(!_0x21ed40&&this['_unitOnClients'][_0xa92e88(0x443)](_0x1b97b2)&&this['_ensureSubject'](_0x1b97b2)['next'](0x1),!this[_0xa92e88(0x200)][_0xa92e88(0x443)](_0x1b97b2)||!this[_0xa92e88(0x200)][_0xa92e88(0x3e4)](_0x1b97b2)[_0xa92e88(0x443)](_0x288fb6)){const _0x3c055c=this['_unitOnClients'][_0xa92e88(0x3e4)](_0x1b97b2)||new Set();_0x3c055c[_0xa92e88(0x22f)](_0x288fb6),this[_0xa92e88(0x200)][_0xa92e88(0x2a6)](_0x1b97b2,_0x3c055c),this[_0xa92e88(0x2c2)](_0x288fb6);}}),_0x21ed40||this[_0x50dc88(0x270)]({'type':0x0,'memberID':this[_0x50dc88(0x4b0)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x18d6ba(0x2c2)](_0x170cd4){const _0xbb24a=_0x18d6ba;this[_0xbb24a(0x4e9)](_0x170cd4);const _0x4581d3=window[_0xbb24a(0x3f1)](()=>{const _0x3b3081=_0xbb24a;this[_0x3b3081(0x200)][_0x3b3081(0x387)](_0x30b600=>{const _0x411b69=_0x3b3081;_0x30b600[_0x411b69(0x466)](_0x170cd4);});},_0x3f2a61*0x2);this[_0xbb24a(0x45f)][_0xbb24a(0x2a6)](_0x170cd4,_0x4581d3);}[_0x18d6ba(0x4e9)](_0x2ebf4e){const _0x26812e=_0x18d6ba;if(this[_0x26812e(0x45f)][_0x26812e(0x443)](_0x2ebf4e)){const _0x2b2557=this['_clearOtherTimers'][_0x26812e(0x3e4)](_0x2ebf4e);_0x2b2557&&window[_0x26812e(0x33f)](_0x2b2557),this[_0x26812e(0x45f)]['set'](_0x2ebf4e,null);}}[_0x18d6ba(0x3ea)](_0xa8fac6){const {memberID:_0x222147,unitIDs:_0x3d8202}=_0xa8fac6;_0x3d8202['forEach'](_0x3dce61=>{const _0x23e33c=_0x3d0e;var _0x42e724;const _0x11be75=this[_0x23e33c(0x200)][_0x23e33c(0x3e4)](_0x3dce61);_0x11be75&&(_0x11be75[_0x23e33c(0x466)](_0x222147),(_0x42e724=this['_ensureSubject'](_0x3dce61))==null||_0x42e724[_0x23e33c(0x1c5)](_0x11be75[_0x23e33c(0x378)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x222147);}[_0x18d6ba(0x573)](_0x4cca8e){const _0x4a651a=_0x18d6ba;this[_0x4a651a(0x2c2)](_0x4cca8e['memberID']);}['_send'](_0x5a5308){const _0x181b39=_0x18d6ba;localStorage[_0x181b39(0x4d7)](_0x537eba,JSON[_0x181b39(0x1f1)](_0x5a5308));}['_scheduleHeartbeat'](){const _0x497325=_0x18d6ba;this[_0x497325(0x564)]=window['setInterval'](()=>{const _0x37a070=_0x497325;this[_0x37a070(0x270)]({'type':0x2,'memberID':this[_0x37a070(0x4b0)]});},_0x3f2a61);}[_0x18d6ba(0x31d)](_0xfd5b79){const _0x474975=_0x18d6ba;return this['_unitStatus'][_0x474975(0x443)](_0xfd5b79)||this[_0x474975(0x4ad)][_0x474975(0x2a6)](_0xfd5b79,new _0x5cbc6e['BehaviorSubject'](0x0)),this[_0x474975(0x4ad)][_0x474975(0x3e4)](_0xfd5b79);}}var _0x2e2be8=Object['defineProperty'],_0x465843=Object['getOwnPropertyDescriptor'],_0x221ac3=(_0x28d6ff,_0x3bb15c,_0x57c76d,_0x29f65f)=>{const _0x196614=_0x18d6ba;for(var _0x53ff4c=_0x29f65f>0x1?void 0x0:_0x29f65f?_0x465843(_0x3bb15c,_0x57c76d):_0x3bb15c,_0x3f4322=_0x28d6ff[_0x196614(0x574)]-0x1,_0x995fbf;_0x3f4322>=0x0;_0x3f4322--)(_0x995fbf=_0x28d6ff[_0x3f4322])&&(_0x53ff4c=(_0x29f65f?_0x995fbf(_0x3bb15c,_0x57c76d,_0x53ff4c):_0x995fbf(_0x53ff4c))||_0x53ff4c);return _0x29f65f&&_0x53ff4c&&_0x2e2be8(_0x3bb15c,_0x57c76d,_0x53ff4c),_0x53ff4c;},_0x218481=(_0x3dd63f,_0x504996)=>(_0x1df337,_0x149d3f)=>_0x504996(_0x1df337,_0x149d3f,_0x3dd63f);let _0x5f1add=class{constructor(_0x1edd5e,_0x182b01){const _0x1e8310=_0x18d6ba;this['_injector']=_0x1edd5e,this[_0x1e8310(0x45d)]=_0x182b01;}['transformIMECache'](_0x43cb11){const _0x1b1750=_0x18d6ba;this[_0x1b1750(0x1b8)](_0x43cb11),this[_0x1b1750(0x2ef)](_0x43cb11);}[_0x18d6ba(0x485)](_0x264993){const _0x447e72=_0x18d6ba,_0x1893b1=this[_0x447e72(0x42c)][_0x447e72(0x3e4)](_0x593e90['IMEInputManagerService']),{redoCache:_0x10a4cf}=_0x1893b1['getUndoRedoMutationParamsCache']();if(_0x10a4cf[_0x447e72(0x574)]===0x0)return _0x264993;let _0x2f11fc=_0x3aaa00[_0x447e72(0x2dd)][_0x447e72(0x475)](_0x264993[_0x447e72(0x2fb)][0x0]);for(let _0x1f22a1=0x0;_0x1f22a1<_0x10a4cf['length'];_0x1f22a1++){const _0x5ab01b={'id':'doc.mutation.rich-text-editing','params':{..._0x10a4cf[_0x1f22a1]}},_0xac9267=this[_0x447e72(0x45d)][_0x447e72(0x1db)](_0x2f11fc,_0x5ab01b,!0x1);if(_0x4d4d9d[_0x447e72(0x522)](_0xac9267))throw _0xac9267['error'];_0x2f11fc=_0xac9267[_0x447e72(0x396)];}return{..._0x3aaa00['Tools'][_0x447e72(0x475)](_0x264993),'mutations':[_0x2f11fc]};}['_transformUndoRedoStack'](_0x5aa1d7){const _0x529158=_0x18d6ba,_0x4977aa=this['_injector'][_0x529158(0x3e4)](_0x593e90[_0x529158(0x506)]),{undoCache:_0x4abda6,redoCache:_0x1c51f9}=_0x4977aa[_0x529158(0x1e7)]();if(_0x4abda6[_0x529158(0x574)]===0x0||_0x1c51f9[_0x529158(0x574)]===0x0)return;const _0x114ab3=[],_0x345db7=[];let _0x2c29a6=_0x3aaa00['Tools']['deepClone'](_0x5aa1d7['mutations'][0x0]),_0x51d723=_0x3aaa00[_0x529158(0x2dd)]['deepClone'](_0x5aa1d7['mutations'][0x0]);for(let _0x1d0ecf=_0x4abda6[_0x529158(0x574)]-0x1;_0x1d0ecf>=0x0;_0x1d0ecf--){const _0x4386ae={'id':_0x529158(0x558),'params':{..._0x4abda6[_0x1d0ecf]}},_0x244d12={'id':_0x529158(0x558),'params':{..._0x1c51f9[_0x1d0ecf]}},_0xeabe30=this[_0x529158(0x45d)][_0x529158(0x1db)](_0x2c29a6,_0x4386ae,!0x1),_0x238f2c=this[_0x529158(0x45d)][_0x529158(0x1db)](_0x51d723,_0x244d12,!0x1);if(_0x4d4d9d[_0x529158(0x522)](_0xeabe30))throw _0xeabe30[_0x529158(0x4ae)];if(_0x4d4d9d[_0x529158(0x522)](_0x238f2c))throw _0x238f2c[_0x529158(0x4ae)];_0x114ab3[_0x529158(0x3f0)](_0xeabe30['m2Prime'][_0x529158(0x561)]),_0x345db7[_0x529158(0x3f0)](_0x238f2c['m2Prime'][_0x529158(0x561)]),_0x2c29a6=_0xeabe30[_0x529158(0x396)],_0x51d723=_0x238f2c[_0x529158(0x396)];}_0x4977aa['setUndoRedoMutationParamsCache']({'undoCache':_0x114ab3,'redoCache':_0x345db7});}[_0x18d6ba(0x2ef)](_0x18e857){const _0x9ecd19=_0x18d6ba,_0x370f38=this['_injector'][_0x9ecd19(0x3e4)](_0x593e90[_0x9ecd19(0x506)]),_0x502437=_0x370f38['getActiveRange']();if(_0x502437==null)return;const _0xf3fb48=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x18e857['unitID'],'actions':null,'textRanges':[_0x502437]}}],_0xbe3ab2=this['_transformService'][_0x9ecd19(0x588)](_0x18e857,_0xf3fb48);if(!_0x4d4d9d[_0x9ecd19(0x2be)](_0xbe3ab2))throw _0xbe3ab2[_0x9ecd19(0x4ae)];const _0x4832e4=_0xbe3ab2['m2Prime'][0x0]['params'][_0x9ecd19(0x2f5)];Array[_0x9ecd19(0x342)](_0x4832e4)&&_0x4832e4[_0x9ecd19(0x574)]&&_0x370f38[_0x9ecd19(0x266)](_0x4832e4[0x0]);}};_0x5f1add=_0x221ac3([_0x218481(0x0,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x56f)])),_0x218481(0x1,_0x4d4d9d['ITransformService'])],_0x5f1add);var _0x2a80c9=Object['defineProperty'],_0x16df64=Object[_0x18d6ba(0x3fd)],_0x44caa1=(_0x21bd1a,_0x2e07d2,_0x3d0fe3,_0x3ff5cc)=>{const _0x37f669=_0x18d6ba;for(var _0x3db179=_0x3ff5cc>0x1?void 0x0:_0x3ff5cc?_0x16df64(_0x2e07d2,_0x3d0fe3):_0x2e07d2,_0x4bc77a=_0x21bd1a[_0x37f669(0x574)]-0x1,_0x1151cd;_0x4bc77a>=0x0;_0x4bc77a--)(_0x1151cd=_0x21bd1a[_0x4bc77a])&&(_0x3db179=(_0x3ff5cc?_0x1151cd(_0x2e07d2,_0x3d0fe3,_0x3db179):_0x1151cd(_0x3db179))||_0x3db179);return _0x3ff5cc&&_0x3db179&&_0x2a80c9(_0x2e07d2,_0x3d0fe3,_0x3db179),_0x3db179;},_0x26b30d=(_0x3d6235,_0x5a550f)=>(_0x9658c0,_0x2453e9)=>_0x5a550f(_0x9658c0,_0x2453e9,_0x3d6235);let _0x49b741=class{constructor(_0x568a44,_0x5f0cff){this['_injector']=_0x568a44,this['_transformService']=_0x5f0cff;}[_0x18d6ba(0x3dc)](_0x5adb99){const _0x217ff6=_0x18d6ba;var _0x451f83;const _0x4e0371=this[_0x217ff6(0x42c)]['get'](_0x593e90['TextSelectionManagerService']),_0x51a943=(_0x451f83=_0x4e0371[_0x217ff6(0x42f)]())!=null?_0x451f83:[],_0x138f76=_0x51a943==null?void 0x0:_0x51a943[_0x217ff6(0x343)](_0x593e90[_0x217ff6(0x3b5)]);if(_0x138f76['length']===0x0)return;const _0x378c0b=[{'id':_0x217ff6(0x558),'params':{'unitId':_0x5adb99[_0x217ff6(0x4bb)],'actions':null,'textRanges':_0x138f76}}],_0x4475b6=this['_transformService'][_0x217ff6(0x588)](_0x5adb99,_0x378c0b);if(!_0x4d4d9d['isTransformMutationsWithChangesetSuccess'](_0x4475b6))throw _0x4475b6[_0x217ff6(0x4ae)];const _0x49aa6d=_0x4475b6[_0x217ff6(0x1d2)][0x0][_0x217ff6(0x561)]['textRanges'];Array['isArray'](_0x49aa6d)&&_0x49aa6d[_0x217ff6(0x574)]&&_0x4e0371['replaceTextRanges'](_0x49aa6d,!0x1);}};_0x49b741=_0x44caa1([_0x26b30d(0x0,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00['Injector'])),_0x26b30d(0x1,_0x4d4d9d[_0x18d6ba(0x417)])],_0x49b741);function _0x4c1645(_0x37b717){const _0x35ab6a=_0x18d6ba;let _0x59ad37='';for(const _0x145785 of _0x37b717){const {startOffset:_0x4b934b,endOffset:_0x4f2305,isActive:_0x29d9a7}=_0x145785;_0x59ad37[_0x35ab6a(0x574)]&&(_0x59ad37+=','),_0x59ad37+=_0x4b934b+':'+_0x4f2305+':'+(_0x29d9a7?'1':'0');}return _0x59ad37;}function _0x40c874(_0x2359f2){const _0x5aea94=_0x18d6ba,_0x17c863=_0x2359f2[_0x5aea94(0x47a)](','),_0x47235e=[];for(const _0x57c4a3 of _0x17c863){const [_0x2037aa,_0x11095c,_0x35a289]=_0x57c4a3[_0x5aea94(0x47a)](':');_0x47235e[_0x5aea94(0x239)]({'startOffset':Number(_0x2037aa),'endOffset':Number(_0x11095c),'collapsed':_0x2037aa===_0x11095c,'isActive':_0x35a289==='1'});}return _0x47235e[_0x5aea94(0x2ce)](_0x4070d6=>_0x4070d6[_0x5aea94(0x381)])||(_0x47235e[0x0][_0x5aea94(0x381)]=!0x0),_0x47235e;}class _0x301e57 extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(){const _0x2ea510=_0x18d6ba;super(...arguments),_0x2c46b8(this,'_collabCursorState$',new _0x5cbc6e['BehaviorSubject'](null)),_0x2c46b8(this,_0x2ea510(0x30a),this[_0x2ea510(0x39b)][_0x2ea510(0x28c)]());}['syncEditingCollabCursor'](_0x175ba9){const _0x4aa28b=_0x18d6ba,{unitID:_0x3688ac,memberID:_0x15693a,textRanges:_0x30be37}=_0x175ba9,_0x2cd1fb=_0x4c1645(_0x30be37),_0x1cb06d={'unitID':_0x3688ac,'memberID':_0x15693a,'selection':_0x2cd1fb};this[_0x4aa28b(0x39b)]['next'](_0x1cb06d);}}var _0x1886f4=Object[_0x18d6ba(0x272)],_0xd32a40=Object['getOwnPropertyDescriptor'],_0x373c02=(_0x56e062,_0x214b36,_0x52f2fa,_0x47d74b)=>{for(var _0x33ebbc=_0x47d74b>0x1?void 0x0:_0x47d74b?_0xd32a40(_0x214b36,_0x52f2fa):_0x214b36,_0x5160af=_0x56e062['length']-0x1,_0xb0a732;_0x5160af>=0x0;_0x5160af--)(_0xb0a732=_0x56e062[_0x5160af])&&(_0x33ebbc=(_0x47d74b?_0xb0a732(_0x214b36,_0x52f2fa,_0x33ebbc):_0xb0a732(_0x33ebbc))||_0x33ebbc);return _0x47d74b&&_0x33ebbc&&_0x1886f4(_0x214b36,_0x52f2fa,_0x33ebbc),_0x33ebbc;},_0x16bc29=(_0xe2000d,_0x558211)=>(_0x2d1d9e,_0x4fffb0)=>_0x558211(_0x2d1d9e,_0x4fffb0,_0xe2000d);function _0x320062(_0x42ba25){const {unitID:_0x126159,mutations:_0x5bfb99}=_0x42ba25;return{'unitId':_0x126159,'subUnitId':_0x5bfb99[0x0]['params']['subUnitId']};}let _0x13a645=class{constructor(_0x5815b5,_0x3911a6){this['_injector']=_0x5815b5,this['_transformService']=_0x3911a6;}[_0x18d6ba(0x3dc)](_0x597349){const _0x18e657=_0x18d6ba;var _0xd76efd,_0x281a8a,_0x253691;const _0x5a9713=this[_0x18e657(0x42c)][_0x18e657(0x3e4)](_0x459c9c[_0x18e657(0x28d)]),{unitId:_0x5b113b,subUnitId:_0x17790d}=_0x320062(_0x597349),_0x1eb10c=_0x5a9713[_0x18e657(0x2d4)](_0x5b113b)[_0x18e657(0x57d)]();if(_0x1eb10c[_0x18e657(0x574)]===0x0||!_0x5b113b||!_0x17790d)return;const _0x419c5e=[{'id':_0x459c9c['SetSelectionsOperation']['id'],'params':{'unitId':_0x5b113b,'subUnitId':_0x17790d,'selections':_0x3aaa00[_0x18e657(0x2dd)][_0x18e657(0x475)](_0x1eb10c)}}],_0x1a9b16=this[_0x18e657(0x45d)][_0x18e657(0x588)](_0x597349,_0x419c5e);if(!_0x4d4d9d['isTransformMutationsWithChangesetSuccess'](_0x1a9b16))throw _0x1a9b16['error'];const _0x1bc78b=(_0x253691=(_0x281a8a=(_0xd76efd=_0x1a9b16['m2Prime'][0x0])==null?void 0x0:_0xd76efd[_0x18e657(0x561)])==null?void 0x0:_0x281a8a['selections'])!=null?_0x253691:_0x1eb10c;Array['isArray'](_0x1bc78b)&&_0x1bc78b[_0x18e657(0x574)]&&this[_0x18e657(0x42c)][_0x18e657(0x3e4)](_0x3aaa00['ICommandService'])[_0x18e657(0x2e9)](_0x459c9c['SetSelectionsOperation']['id'],{'unitId':_0x5b113b,'subUnitId':_0x17790d,'selections':_0x1bc78b});}};_0x13a645=_0x373c02([_0x16bc29(0x0,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00['Injector'])),_0x16bc29(0x1,_0x4d4d9d[_0x18d6ba(0x417)])],_0x13a645);const _0x2a61d2=new Set([_0x459c9c[_0x18d6ba(0x51c)]['id']]);function _0x37359c(_0x1558b0,_0xceb1ae,_0x3ed6c4,_0x2995fd,_0x4b56f6){const _0x229256=_0x18d6ba;var _0x34cfc3,_0x48cf1f,_0x3ecd33,_0x4a9d1a;const _0x5c6d1d=[];for(const _0x4a3970 of _0x1558b0)if(_0x2a61d2[_0x229256(0x443)](_0x4a3970['id'])){if(_0x5c6d1d[_0x229256(0x574)]>0x0)break;_0x5c6d1d[_0x229256(0x239)](_0x4a3970);break;}else _0x5c6d1d['push'](_0x4a3970);const _0xa8f00a=(_0x48cf1f=(_0x34cfc3=_0x4b56f6[_0x229256(0x331)]())==null?void 0x0:_0x34cfc3['userID'])!=null?_0x48cf1f:'unknown',_0x4d0c67=(_0x4a9d1a=(_0x3ecd33=_0x4b56f6['getCurrentUser']())==null?void 0x0:_0x3ecd33[_0x229256(0x229)])!=null?_0x4a9d1a:_0x229256(0x3a9);return{'changeset':{'unitID':_0xceb1ae,'type':_0x4d4d9d['mapDocumentTypeToUniverType'](_0x3ed6c4['getUnitType'](_0xceb1ae)),'baseRev':_0x2995fd[_0x229256(0x477)](_0xceb1ae),'revision':0x0,'userID':_0xa8f00a,'memberID':_0x4d0c67,'mutations':_0x5c6d1d},'pendingMutations':_0x1558b0['slice'](_0x5c6d1d['length'])};}function _0x539e1e(_0x13cdaa,_0x4d42e0,_0x386cd5,_0x3a850c,_0xcfe89b){const _0x565800=_0x18d6ba;var _0x3ae7bf,_0x2c345b,_0xed013,_0x2fb8f9;const _0x35adce=[_0x13cdaa[_0x565800(0x58d)]((_0x9e759,_0x48abee)=>{const _0x75479e=_0x565800;var _0x91a62e;const {id:_0x448adf}=_0x9e759,{id:_0x3e46aa,type:_0x21efe6}=_0x48abee,_0x387d2b=(_0x91a62e=_0x9e759['params'])!=null?_0x91a62e:{'actions':null},_0x9592f7=_0x48abee[_0x75479e(0x561)];if(_0x448adf&&_0x448adf!==_0x3e46aa)throw new Error(_0x75479e(0x310)+_0x448adf+_0x75479e(0x283)+_0x3e46aa+'.');return{..._0x9e759,'id':_0x3e46aa,'type':_0x21efe6,'params':{'unitId':_0x9592f7[_0x75479e(0x189)],'textRanges':_0x9592f7[_0x75479e(0x2f5)],'actions':_0x3aaa00[_0x75479e(0x386)]['compose'](_0x387d2b[_0x75479e(0x51f)],_0x9592f7[_0x75479e(0x51f)])}};},{})],_0x1cd925=(_0x2c345b=(_0x3ae7bf=_0xcfe89b[_0x565800(0x331)]())==null?void 0x0:_0x3ae7bf[_0x565800(0x1a4)])!=null?_0x2c345b:'unknown',_0x4149b2=(_0x2fb8f9=(_0xed013=_0xcfe89b[_0x565800(0x331)]())==null?void 0x0:_0xed013[_0x565800(0x229)])!=null?_0x2fb8f9:_0x565800(0x3a9);return{'changeset':{'unitID':_0x4d42e0,'type':_0x4d4d9d[_0x565800(0x37e)](_0x386cd5[_0x565800(0x247)](_0x4d42e0)),'baseRev':_0x3a850c[_0x565800(0x477)](_0x4d42e0),'revision':0x0,'userID':_0x1cd925,'memberID':_0x4149b2,'mutations':_0x35adce},'pendingMutations':[]};}const _0x499360={'id':_0x459c9c[_0x18d6ba(0x2b2)]['id'],'type':_0x3aaa00[_0x18d6ba(0x44a)]['MUTATION'],'params':{}};var _0x204b03=Object[_0x18d6ba(0x272)],_0x38b9e9=Object[_0x18d6ba(0x3fd)],_0x1a94a6=(_0x223a6d,_0xa6965,_0x5647eb,_0x252ca6)=>{for(var _0x6c3757=_0x252ca6>0x1?void 0x0:_0x252ca6?_0x38b9e9(_0xa6965,_0x5647eb):_0xa6965,_0x1fb909=_0x223a6d['length']-0x1,_0x50f8e0;_0x1fb909>=0x0;_0x1fb909--)(_0x50f8e0=_0x223a6d[_0x1fb909])&&(_0x6c3757=(_0x252ca6?_0x50f8e0(_0xa6965,_0x5647eb,_0x6c3757):_0x50f8e0(_0x6c3757))||_0x6c3757);return _0x252ca6&&_0x6c3757&&_0x204b03(_0xa6965,_0x5647eb,_0x6c3757),_0x6c3757;},_0x3cf1c3=(_0x32f48e,_0x16336a)=>(_0xfecd90,_0x12b2d5)=>_0x16336a(_0xfecd90,_0x12b2d5,_0x32f48e),_0x2232ef=(_0x1fcdcb=>(_0x1fcdcb[_0x18d6ba(0x1e5)]='not_collab',_0x1fcdcb[_0x18d6ba(0x274)]=_0x18d6ba(0x380),_0x1fcdcb[_0x18d6ba(0x1ed)]='pending',_0x1fcdcb[_0x18d6ba(0x2db)]='awaiting',_0x1fcdcb[_0x18d6ba(0x55e)]=_0x18d6ba(0x3b9),_0x1fcdcb['FETCH_MISS']=_0x18d6ba(0x28e),_0x1fcdcb['CONFLICT']=_0x18d6ba(0x24f),_0x1fcdcb['OFFLINE']='offline',_0x1fcdcb))(_0x2232ef||{});class _0x6955e5{constructor(_0x6b7e03,_0x16d8b1,_0xef4ea6,_0xc6a50f,_0x4b40f6,_0x36a627,_0x1d0299,_0x46adde,_0x3cb04c){const _0x4bfaf2=_0x18d6ba;_0x2c46b8(this,'_awaitingChangeset',null),_0x2c46b8(this,_0x4bfaf2(0x32d),[]),(this[_0x4bfaf2(0x4bb)]=_0x6b7e03,this[_0x4bfaf2(0x543)]=_0x16d8b1,this[_0x4bfaf2(0x2c7)]=_0x4b40f6,this[_0x4bfaf2(0x513)]=_0x36a627,this[_0x4bfaf2(0x496)]=_0x1d0299,this[_0x4bfaf2(0x2b4)]=_0x46adde,this[_0x4bfaf2(0x4bf)]=_0x3cb04c,this[_0x4bfaf2(0x53d)]=_0xef4ea6,this[_0x4bfaf2(0x32d)]=_0xc6a50f);}['_checkMissing'](_0x36c0a5){const _0x4cfe48=_0x18d6ba,_0x270187=this['_revisionService']['getCurrentRevForDocument'](this[_0x4cfe48(0x4bb)]);return _0x36c0a5[_0x4cfe48(0x292)]>_0x270187+0x1?(this[_0x4cfe48(0x2c7)][_0x4cfe48(0x38c)]({'from':_0x270187,'to':_0x36c0a5[_0x4cfe48(0x292)]-0x1}),!0x0):!0x1;}[_0x18d6ba(0x476)](_0x259986){const _0xc07737=_0x18d6ba;this[_0xc07737(0x496)]['transformUndoRedo'](this[_0xc07737(0x4bb)],_0x259986);}[_0x18d6ba(0x4f0)](_0x638e94){var _0xcc105c,_0x55d471;(_0x55d471=(_0xcc105c=this['_handler'])['onTransformSelections'])==null||_0x55d471['call'](_0xcc105c,_0x638e94);}[_0x18d6ba(0x525)](_0x36580a){const _0x2c50f0=_0x18d6ba;var _0x5393c6,_0x4c59f3;return(_0x4c59f3=(_0x5393c6=this[_0x2c50f0(0x2c7)])[_0x2c50f0(0x349)])==null?void 0x0:_0x4c59f3[_0x2c50f0(0x2f7)](_0x5393c6,_0x36580a);}['_transformRemoteChangesetByIMECache'](_0x46c3f8){const _0xd0764=_0x18d6ba;var _0x54855a,_0x487934,_0x3ff1fc;return(_0x3ff1fc=(_0x487934=(_0x54855a=this[_0xd0764(0x2c7)])[_0xd0764(0x305)])==null?void 0x0:_0x487934[_0xd0764(0x2f7)](_0x54855a,_0x46c3f8))!=null?_0x3ff1fc:_0x46c3f8;}[_0x18d6ba(0x194)](_0x85f7a8){const _0x243520=_0x18d6ba;var _0xc8ee21,_0x382ced;if(this[_0x243520(0x543)]===_0x3a110c[_0x243520(0x4c1)]){const {unitID:_0x1b61fd,mutations:_0x4ad630,memberID:_0x4d1850}=_0x85f7a8,_0x36323f=_0x4ad630[0x0][_0x243520(0x561)][_0x243520(0x2f5)];Array[_0x243520(0x342)](_0x36323f)&&_0x36323f[_0x243520(0x574)]>0x0&&((_0x382ced=(_0xc8ee21=this[_0x243520(0x2c7)])['onSyncEditingCollabCursor'])==null||_0x382ced[_0x243520(0x2f7)](_0xc8ee21,{'unitID':_0x1b61fd,'memberID':_0x4d1850,'textRanges':_0x36323f}));}}[_0x18d6ba(0x548)](){const _0x2234a9=_0x18d6ba;this[_0x2234a9(0x4bf)][_0x2234a9(0x339)](this[_0x2234a9(0x4bb)],this[_0x2234a9(0x543)],this[_0x2234a9(0x53d)],this[_0x2234a9(0x32d)]);}[_0x18d6ba(0x303)](){const _0xc9c5eb=_0x18d6ba;return this[_0xc9c5eb(0x2b4)][_0xc9c5eb(0x477)](this[_0xc9c5eb(0x4bb)]);}[_0x18d6ba(0x4e7)](){const _0x36191e=_0x18d6ba;this[_0x36191e(0x2b4)][_0x36191e(0x366)](this[_0x36191e(0x4bb)]);}[_0x18d6ba(0x243)](_0x3a458e){const _0xd3c9f1=_0x18d6ba;var _0x5ae6f4;const _0x26ca41=this[_0xd3c9f1(0x20b)](_0x3a458e),_0x48a44e=_0x3aaa00[_0xd3c9f1(0x3b2)](_0x26ca41['mutations'],this[_0xd3c9f1(0x513)],{'fromCollab':!0x0});if(!_0x48a44e[_0xd3c9f1(0x442)])throw _0x48a44e[_0xd3c9f1(0x4ae)]instanceof Error?_0x48a44e[_0xd3c9f1(0x4ae)]:new Error((_0x5ae6f4=_0x48a44e[_0xd3c9f1(0x4ae)])!=null?_0x5ae6f4:_0xd3c9f1(0x22c));this['_transformIMECache'](_0x26ca41),this[_0xd3c9f1(0x476)](_0x3a458e),this[_0xd3c9f1(0x4f0)](_0x26ca41),this[_0xd3c9f1(0x194)](_0x26ca41),this[_0xd3c9f1(0x4e7)]();}}let _0x26b02d=class extends _0x6955e5{constructor(_0x49dad4,_0x3370cb,_0x2f9bc6,_0x5eb409,_0x43e26f,_0x93d956,_0x3f6bc5,_0x1ada2a,_0xd4c71b,_0x57e442){const _0x168e75=_0x18d6ba;super(_0x49dad4,_0x3370cb,null,[],_0x2f9bc6,_0x1ada2a,_0x3f6bc5,_0x5eb409,_0x43e26f),_0x2c46b8(this,'status',_0x168e75(0x380)),(this[_0x168e75(0x42c)]=_0x93d956,this[_0x168e75(0x36e)]=_0xd4c71b,this[_0x168e75(0x45d)]=_0x57e442);}[_0x18d6ba(0x554)](_0x5762ab){const _0x3e8733=_0x18d6ba,_0x17a00b=this['_injector'][_0x3e8733(0x491)](_0x29d649,this[_0x3e8733(0x4bb)],this['type'],[_0x5762ab],this['_handler']);return _0x17a00b[_0x3e8733(0x4a9)](),_0x17a00b[_0x3e8733(0x548)](),_0x17a00b;}['onRemoteChangeset'](_0x56721a){const _0x38bf02=_0x18d6ba;if(this['_checkMissing'](_0x56721a))return this[_0x38bf02(0x42c)][_0x38bf02(0x491)](_0x386fc4,this[_0x38bf02(0x4bb)],this[_0x38bf02(0x543)],null,[],null,[_0x56721a],this[_0x38bf02(0x2c7)]);try{const _0x4f73b8=this[_0x38bf02(0x45d)][_0x38bf02(0x588)](_0x56721a,[_0x499360]);if(_0x4d4d9d[_0x38bf02(0x2be)](_0x4f73b8)){const {c1Prime:_0x2e21ad}=_0x4f73b8;return this[_0x38bf02(0x243)](_0x2e21ad),this;}throw _0x4f73b8[_0x38bf02(0x4ae)];}catch(_0x325c24){return this['_logService'][_0x38bf02(0x4ae)](_0x325c24),this[_0x38bf02(0x355)](!0x1);}}[_0x18d6ba(0x355)](_0x13141d){const _0x2b6cce=_0x18d6ba;return this['_injector'][_0x2b6cce(0x491)](_0x45cea0,this['unitID'],this['type'],null,[],this[_0x2b6cce(0x2c7)],_0x13141d);}[_0x18d6ba(0x1fc)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x18d6ba(0x1e9)](){const _0x1b16da=_0x18d6ba;return this[_0x1b16da(0x42c)]['createInstance'](_0x451e23,this[_0x1b16da(0x4bb)],this[_0x1b16da(0x543)],null,[],this[_0x1b16da(0x2c7)]);}[_0x18d6ba(0x58f)](){return this;}['resend'](){const _0x2b9c7a=_0x18d6ba;throw new Error(_0x2b9c7a(0x32c));}};_0x26b02d=_0x1a94a6([_0x3cf1c3(0x3,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x35d)])),_0x3cf1c3(0x4,_0x3aaa00['Inject'](_0x4c54a0[_0x18d6ba(0x362)])),_0x3cf1c3(0x5,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x56f)])),_0x3cf1c3(0x6,_0x3aaa00[_0x18d6ba(0x256)]),_0x3cf1c3(0x7,_0x3aaa00['ICommandService']),_0x3cf1c3(0x8,_0x3aaa00[_0x18d6ba(0x42a)]),_0x3cf1c3(0x9,_0x4d4d9d[_0x18d6ba(0x417)])],_0x26b02d);let _0x29d649=class extends _0x6955e5{constructor(_0x5e0bf3,_0x4f7fde,_0x3ad07,_0x35642a,_0x54f1c1,_0x489db5,_0x309ed4,_0x4b5650,_0x5c6464,_0x5b3692,_0x2fcede,_0x1411ea,_0x2414d1,_0x337d3b){const _0x364411=_0x18d6ba;super(_0x5e0bf3,_0x4f7fde,null,_0x3ad07,_0x35642a,_0x5b3692,_0x337d3b,_0x489db5,_0x309ed4),_0x2c46b8(this,'status',_0x364411(0x223)),_0x2c46b8(this,'_scheduleTimestamp',null),_0x2c46b8(this,_0x364411(0x316),null),(this[_0x364411(0x42c)]=_0x54f1c1,this[_0x364411(0x241)]=_0x4b5650,this[_0x364411(0x36e)]=_0x5c6464,this['_configService']=_0x2fcede,this[_0x364411(0x45d)]=_0x1411ea,this['_univerInstanceService']=_0x2414d1);}[_0x18d6ba(0x554)](_0x3959e3){const _0x287792=_0x18d6ba;return this['_pendingMutations']['push'](_0x3959e3),this[_0x287792(0x548)](),this;}[_0x18d6ba(0x1b4)](_0x46b806){const _0x10a65b=_0x18d6ba;if(this[_0x10a65b(0x348)](_0x46b806))return this[_0x10a65b(0x576)](),this[_0x10a65b(0x42c)][_0x10a65b(0x491)](_0x386fc4,this[_0x10a65b(0x4bb)],this[_0x10a65b(0x543)],null,this['_pendingMutations'],null,[_0x46b806],this['_handler']);try{const _0x4c2972=this[_0x10a65b(0x45d)]['transformMutationsWithChangeset'](_0x46b806,this[_0x10a65b(0x32d)]);if(_0x4d4d9d[_0x10a65b(0x2be)](_0x4c2972)){const {c1Prime:_0x370114,m2Prime:_0xafb775}=_0x4c2972;this[_0x10a65b(0x243)](_0x370114);const _0x36287a=this['_injector'][_0x10a65b(0x491)](_0x29d649,this[_0x10a65b(0x4bb)],this[_0x10a65b(0x543)],_0xafb775,this[_0x10a65b(0x2c7)]);return this[_0x10a65b(0x576)](),_0x36287a['_schedule'](this[_0x10a65b(0x35f)]?Math[_0x10a65b(0x285)](0x0,new Date()['getTime']()-this[_0x10a65b(0x35f)]):this[_0x10a65b(0x57a)]()),_0x36287a;}throw _0x4c2972['error'];}catch(_0x2b6459){return this[_0x10a65b(0x36e)]['error'](_0x2b6459),this[_0x10a65b(0x355)](!0x1);}}[_0x18d6ba(0x1fc)](){const _0x1faa3f=_0x18d6ba;throw new Error(_0x1faa3f(0x3f2));}[_0x18d6ba(0x53a)](){const _0x28c1c2=_0x18d6ba;throw new Error(_0x28c1c2(0x487));}[_0x18d6ba(0x1e9)](){const _0x15455c=_0x18d6ba;return this[_0x15455c(0x576)](),this[_0x15455c(0x42c)][_0x15455c(0x491)](_0x451e23,this[_0x15455c(0x4bb)],this['type'],null,this[_0x15455c(0x32d)],this[_0x15455c(0x2c7)]);}[_0x18d6ba(0x58f)](){return this;}[_0x18d6ba(0x4a9)](_0x210fef){const _0x3f877a=_0x18d6ba;_0x210fef=_0x210fef!=null?_0x210fef:this['_getSendChangesetTimeout'](),this[_0x3f877a(0x35f)]=new Date()[_0x3f877a(0x1b5)](),this[_0x3f877a(0x316)]=setTimeout(()=>{const _0x10cce5=_0x3f877a;this['_clearScheduledTask']();let _0x26db6f=null;switch(this[_0x10cce5(0x543)]){case _0x3a110c[_0x10cce5(0x18a)]:{_0x26db6f=_0x37359c(this['_pendingMutations'],this[_0x10cce5(0x4bb)],this[_0x10cce5(0x318)],this[_0x10cce5(0x2b4)],this['_memberService']);break;}case _0x3a110c['UNIVER_DOC']:{this[_0x10cce5(0x32d)][_0x10cce5(0x23a)](_0x1f11d8=>_0x1f11d8['id']===_0x593e90[_0x10cce5(0x34e)]['id'])?_0x26db6f=_0x539e1e(this[_0x10cce5(0x32d)],this[_0x10cce5(0x4bb)],this[_0x10cce5(0x318)],this[_0x10cce5(0x2b4)],this['_memberService']):_0x26db6f=_0x37359c(this[_0x10cce5(0x32d)],this[_0x10cce5(0x4bb)],this[_0x10cce5(0x318)],this[_0x10cce5(0x2b4)],this[_0x10cce5(0x241)]);break;}default:throw new Error(_0x10cce5(0x340)+this[_0x10cce5(0x543)]+_0x10cce5(0x38e));}const {changeset:_0x2782ce,pendingMutations:_0x2a226b}=_0x26db6f;this[_0x10cce5(0x2c7)][_0x10cce5(0x2bb)](_0x2782ce);const _0x1bfe9e=_0x2a226b['length']?this[_0x10cce5(0x42c)]['createInstance'](_0x468b55,this[_0x10cce5(0x4bb)],this[_0x10cce5(0x543)],_0x2782ce,_0x2a226b,this[_0x10cce5(0x2c7)]):this[_0x10cce5(0x42c)][_0x10cce5(0x491)](_0x10c700,this[_0x10cce5(0x4bb)],this[_0x10cce5(0x543)],_0x2782ce,this[_0x10cce5(0x2c7)]);_0x1bfe9e['_updateLocalCache'](),this['_handler'][_0x10cce5(0x537)](this,_0x1bfe9e);},_0x210fef);}[_0x18d6ba(0x57a)](){const _0x1ae3a2=_0x18d6ba;var _0x145830;return(_0x145830=this['_configService'][_0x1ae3a2(0x499)](_0x3867e3))!=null?_0x145830:0x7d0;}['resend'](){const _0x58e8f5=_0x18d6ba;throw new Error(_0x58e8f5(0x4fe));}[_0x18d6ba(0x576)](){const _0x178356=_0x18d6ba;this[_0x178356(0x316)]!=null&&(clearTimeout(this[_0x178356(0x316)]),this[_0x178356(0x316)]=null);}[_0x18d6ba(0x355)](_0x99031){const _0x2e731b=_0x18d6ba;return this['_clearScheduledTask'](),this[_0x2e731b(0x42c)][_0x2e731b(0x491)](_0x45cea0,this[_0x2e731b(0x4bb)],this[_0x2e731b(0x543)],null,this[_0x2e731b(0x32d)],this[_0x2e731b(0x2c7)],_0x99031);}};_0x29d649=_0x1a94a6([_0x3cf1c3(0x4,_0x3aaa00['Inject'](_0x3aaa00[_0x18d6ba(0x56f)])),_0x3cf1c3(0x5,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x35d)])),_0x3cf1c3(0x6,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0[_0x18d6ba(0x362)])),_0x3cf1c3(0x7,_0x3aaa00[_0x18d6ba(0x1de)](_0x107a5c)),_0x3cf1c3(0x8,_0x3aaa00[_0x18d6ba(0x42a)]),_0x3cf1c3(0x9,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x3cf1c3(0xa,_0x3aaa00[_0x18d6ba(0x195)]),_0x3cf1c3(0xb,_0x4d4d9d[_0x18d6ba(0x417)]),_0x3cf1c3(0xc,_0x3aaa00[_0x18d6ba(0x2d5)]),_0x3cf1c3(0xd,_0x3aaa00[_0x18d6ba(0x256)])],_0x29d649);let _0x10c700=class extends _0x6955e5{constructor(_0x5b87ee,_0x48ef04,_0x1f7593,_0x2f9641,_0x3c563e,_0xcc26ca,_0x5f4068,_0x26039c,_0xf4a07a,_0xd2f271,_0x3174b2){const _0x2cd134=_0x18d6ba;super(_0x5b87ee,_0x48ef04,_0x1f7593,[],_0x2f9641,_0x26039c,_0x3174b2,_0xcc26ca,_0x5f4068),_0x2c46b8(this,_0x2cd134(0x322),_0x2cd134(0x19a)),(this[_0x2cd134(0x42c)]=_0x3c563e,this[_0x2cd134(0x36e)]=_0xf4a07a,this[_0x2cd134(0x45d)]=_0xd2f271);}[_0x18d6ba(0x554)](_0x240697){const _0x4b91d0=_0x18d6ba,_0x49325b=this['_injector'][_0x4b91d0(0x491)](_0x468b55,this[_0x4b91d0(0x4bb)],this[_0x4b91d0(0x543)],this['_awaitingChangeset'],[_0x240697],this['_handler']);return _0x49325b[_0x4b91d0(0x548)](),_0x49325b;}['onRemoteChangeset'](_0x3d3afd){const _0x55f7bf=_0x18d6ba;if(this[_0x55f7bf(0x348)](_0x3d3afd))return this[_0x55f7bf(0x42c)][_0x55f7bf(0x491)](_0x386fc4,this[_0x55f7bf(0x4bb)],this[_0x55f7bf(0x543)],this['_awaitingChangeset'],[],null,[_0x3d3afd],this[_0x55f7bf(0x2c7)]);try{const _0x2366f5=this['_transformService'][_0x55f7bf(0x2fd)]([_0x3d3afd],[this[_0x55f7bf(0x53d)]],!0x1);if(_0x4d4d9d[_0x55f7bf(0x49f)](_0x2366f5)){const {c1Prime:_0x54b871,c2Prime:_0x3e5aa1}=_0x2366f5;this[_0x55f7bf(0x243)](_0x54b871[0x0]),_0x3e5aa1[0x0]['baseRev']=this['_getCurrentRevision']();const _0x2b8d08=this[_0x55f7bf(0x42c)]['createInstance'](_0x10c700,this[_0x55f7bf(0x4bb)],this['type'],_0x3e5aa1[0x0],this[_0x55f7bf(0x2c7)]);return _0x2b8d08[_0x55f7bf(0x548)](),_0x2b8d08;}return this[_0x55f7bf(0x355)](!0x1);}catch(_0x5c96df){return this[_0x55f7bf(0x36e)][_0x55f7bf(0x4ae)](_0x5c96df),this[_0x55f7bf(0x355)](!0x1);}}[_0x18d6ba(0x1fc)](_0x15c95e){const _0x5dea5f=_0x18d6ba,_0xc02632=this[_0x5dea5f(0x2b4)]['getCurrentRevForDocument'](this[_0x5dea5f(0x4bb)]);if(_0x15c95e[_0x5dea5f(0x292)]<_0xc02632-0x1)return this;if(this[_0x5dea5f(0x348)](_0x15c95e))return this['_injector'][_0x5dea5f(0x491)](_0x386fc4,this[_0x5dea5f(0x4bb)],this[_0x5dea5f(0x543)],null,[],this['_awaitingChangeset'],[],this[_0x5dea5f(0x2c7)]);this[_0x5dea5f(0x4e7)]();const _0x34e2c0=this[_0x5dea5f(0x42c)][_0x5dea5f(0x491)](_0x26b02d,this[_0x5dea5f(0x4bb)],this[_0x5dea5f(0x543)],this['_handler']);return _0x34e2c0['_updateLocalCache'](),_0x34e2c0;}[_0x18d6ba(0x53a)](_0x412d70){const _0x250c2b=_0x18d6ba;return this[_0x250c2b(0x355)](!!(_0x412d70!=null&&_0x412d70[_0x250c2b(0x545)]));}['toggleOffline'](){const _0x2e6051=_0x18d6ba;return this[_0x2e6051(0x42c)][_0x2e6051(0x491)](_0x451e23,this[_0x2e6051(0x4bb)],this[_0x2e6051(0x543)],this[_0x2e6051(0x53d)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x18d6ba(0x46f)](){const _0x334a4f=_0x18d6ba;this[_0x334a4f(0x2c7)][_0x334a4f(0x2bb)](this[_0x334a4f(0x53d)]);}[_0x18d6ba(0x355)](_0x5daf06){const _0x556f71=_0x18d6ba;return this[_0x556f71(0x42c)][_0x556f71(0x491)](_0x45cea0,this[_0x556f71(0x4bb)],this[_0x556f71(0x543)],this[_0x556f71(0x53d)],[],this[_0x556f71(0x2c7)],_0x5daf06);}};_0x10c700=_0x1a94a6([_0x3cf1c3(0x4,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00['Injector'])),_0x3cf1c3(0x5,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x35d)])),_0x3cf1c3(0x6,_0x3aaa00['Inject'](_0x4c54a0[_0x18d6ba(0x362)])),_0x3cf1c3(0x7,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x3cf1c3(0x8,_0x3aaa00['ILogService']),_0x3cf1c3(0x9,_0x4d4d9d[_0x18d6ba(0x417)]),_0x3cf1c3(0xa,_0x3aaa00[_0x18d6ba(0x256)])],_0x10c700);let _0x468b55=class extends _0x6955e5{constructor(_0x12de45,_0x3cff41,_0x13decb,_0x4dc888,_0xabbd0f,_0x54162b,_0xa68d0e,_0x3bcc93,_0x63a85c,_0x5aacb2,_0x1b7264,_0x24ca78){const _0x4ee9c1=_0x18d6ba;super(_0x12de45,_0x3cff41,_0x13decb,_0x4dc888,_0xabbd0f,_0x63a85c,_0x24ca78,_0xa68d0e,_0x3bcc93),_0x2c46b8(this,'status',_0x4ee9c1(0x3b9)),(this[_0x4ee9c1(0x42c)]=_0x54162b,this[_0x4ee9c1(0x36e)]=_0x5aacb2,this[_0x4ee9c1(0x45d)]=_0x1b7264);}[_0x18d6ba(0x554)](_0x68781e){const _0x3cc288=_0x18d6ba;return this[_0x3cc288(0x32d)][_0x3cc288(0x239)](_0x68781e),this;}[_0x18d6ba(0x1b4)](_0x556036){const _0x4a7405=_0x18d6ba;if(this['_checkMissing'](_0x556036))return this[_0x4a7405(0x42c)]['createInstance'](_0x386fc4,this[_0x4a7405(0x4bb)],this['type'],this[_0x4a7405(0x53d)],this[_0x4a7405(0x32d)],null,[_0x556036],this[_0x4a7405(0x2c7)]);try{const _0xf2ac02=this[_0x4a7405(0x45d)][_0x4a7405(0x2fd)]([_0x556036],[this[_0x4a7405(0x53d)]],!0x1);if(_0x4d4d9d['isTransformChangesetsSuccess'](_0xf2ac02)){const {c1Prime:_0x521580,c2Prime:_0x1499b9}=_0xf2ac02,_0xabb37=this['_transformService'][_0x4a7405(0x588)](_0x521580[0x0],this[_0x4a7405(0x32d)]);if(_0x4d4d9d[_0x4a7405(0x2be)](_0xabb37)){const {c1Prime:_0x2eddac,m2Prime:_0x57cfa3}=_0xabb37;return this[_0x4a7405(0x243)](_0x2eddac),_0x1499b9[0x0]['baseRev']=this[_0x4a7405(0x303)](),this['_injector']['createInstance'](_0x468b55,this[_0x4a7405(0x4bb)],this[_0x4a7405(0x543)],_0x1499b9[0x0],_0x57cfa3,this[_0x4a7405(0x2c7)]);}throw _0xabb37[_0x4a7405(0x4ae)];}throw _0xf2ac02['error'];}catch(_0x4c6b85){return this[_0x4a7405(0x36e)]['error'](_0x4c6b85),this[_0x4a7405(0x355)](!0x1);}}[_0x18d6ba(0x1fc)](_0x24a8fa){const _0x365077=_0x18d6ba;if(this[_0x365077(0x348)](_0x24a8fa))return this[_0x365077(0x42c)][_0x365077(0x491)](_0x386fc4,this[_0x365077(0x4bb)],this[_0x365077(0x543)],null,this[_0x365077(0x32d)],this[_0x365077(0x53d)],[],this[_0x365077(0x2c7)]);this['_incrementRevisionNumber']();const _0x59a373=this['_injector'][_0x365077(0x491)](_0x29d649,this[_0x365077(0x4bb)],this['type'],this[_0x365077(0x32d)],this[_0x365077(0x2c7)]);return _0x59a373['_schedule'](),_0x59a373['_updateLocalCache'](),_0x59a373;}[_0x18d6ba(0x53a)](_0x4e9e20){const _0x480404=_0x18d6ba;return this[_0x480404(0x355)](!!(_0x4e9e20!=null&&_0x4e9e20[_0x480404(0x545)]));}['toggleOffline'](){const _0x4c2e07=_0x18d6ba;return this[_0x4c2e07(0x42c)][_0x4c2e07(0x491)](_0x451e23,this[_0x4c2e07(0x4bb)],this[_0x4c2e07(0x543)],this[_0x4c2e07(0x53d)],this[_0x4c2e07(0x32d)],this['_handler']);}[_0x18d6ba(0x58f)](){return this;}['resend'](){const _0x250d78=_0x18d6ba;this[_0x250d78(0x2c7)]['onSendChangeset'](this[_0x250d78(0x53d)]);}[_0x18d6ba(0x355)](_0x52698c){const _0xce2da6=_0x18d6ba;return this['_injector']['createInstance'](_0x45cea0,this[_0xce2da6(0x4bb)],this['type'],null,this['_pendingMutations'],this[_0xce2da6(0x2c7)],_0x52698c);}};_0x468b55=_0x1a94a6([_0x3cf1c3(0x5,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x56f)])),_0x3cf1c3(0x6,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x35d)])),_0x3cf1c3(0x7,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0['LocalCacheService'])),_0x3cf1c3(0x8,_0x3aaa00['ICommandService']),_0x3cf1c3(0x9,_0x3aaa00[_0x18d6ba(0x42a)]),_0x3cf1c3(0xa,_0x4d4d9d[_0x18d6ba(0x417)]),_0x3cf1c3(0xb,_0x3aaa00[_0x18d6ba(0x256)])],_0x468b55);let _0x45cea0=class extends _0x6955e5{constructor(_0x58efb0,_0xb00d16,_0xfbcbec,_0x57104d,_0x412d27,_0x2c3fde=!0x1,_0x9aedd2,_0xed465,_0x405588,_0x9f3f45,_0x2bda58,_0x5185eb,_0x25a8bf){const _0x42389b=_0x18d6ba;super(_0x58efb0,_0xb00d16,_0xfbcbec,_0x57104d,_0x412d27,_0xed465,_0x405588,_0x2bda58,_0x9f3f45),_0x2c46b8(this,_0x42389b(0x322),_0x42389b(0x24f)),(this[_0x42389b(0x2ea)]=_0x2c3fde,this[_0x42389b(0x55a)]=_0x9aedd2,this[_0x42389b(0x43e)]=_0x5185eb,this[_0x42389b(0x206)]=_0x25a8bf,this[_0x42389b(0x2ab)](),this[_0x42389b(0x47c)](),this[_0x42389b(0x3d1)]());}['appendMutation'](){return this;}[_0x18d6ba(0x1b4)](){return this;}['onRemoteAck'](){return this;}[_0x18d6ba(0x53a)](){return this;}[_0x18d6ba(0x1e9)](){return this;}[_0x18d6ba(0x58f)](){return this;}[_0x18d6ba(0x46f)](){const _0x22927d=_0x18d6ba;throw new Error(_0x22927d(0x3c8));}[_0x18d6ba(0x47c)](){const _0x239ba8=_0x18d6ba;this[_0x239ba8(0x4bf)]['updateOfflineData'](this[_0x239ba8(0x4bb)],this['type'],null,[]);}[_0x18d6ba(0x2ab)](){const _0x44e5d5=_0x18d6ba;this[_0x44e5d5(0x2ea)]?this[_0x44e5d5(0x206)][_0x44e5d5(0x3f8)]({'title':this[_0x44e5d5(0x43e)]['t'](_0x44e5d5(0x553)),'content':this[_0x44e5d5(0x43e)]['t']('permission.content'),'type':_0x44e5d5(0x4ae),'duration':0x0}):this[_0x44e5d5(0x206)][_0x44e5d5(0x3f8)]({'title':this[_0x44e5d5(0x43e)]['t']('conflict.title'),'content':this[_0x44e5d5(0x43e)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x18d6ba(0x3d1)](){const _0xe64fe7=_0x18d6ba;this[_0xe64fe7(0x55a)][_0xe64fe7(0x198)](new _0x459c9c['WorkbookEditablePermission'](this[_0xe64fe7(0x4bb)])['id'],!0x1);}};_0x45cea0=_0x1a94a6([_0x3cf1c3(0x6,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x23f)])),_0x3cf1c3(0x7,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x3cf1c3(0x8,_0x3aaa00['IUndoRedoService']),_0x3cf1c3(0x9,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0[_0x18d6ba(0x362)])),_0x3cf1c3(0xa,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d['RevisionService'])),_0x3cf1c3(0xb,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x591)])),_0x3cf1c3(0xc,_0x2b4c8d[_0x18d6ba(0x237)])],_0x45cea0);let _0x451e23=class extends _0x6955e5{constructor(_0x15fff2,_0x5bbea6,_0x628435,_0x37e1c3,_0x2f9f6e,_0x2149da,_0x12fd72,_0x24dca5,_0x186176,_0x4a9884){const _0x3f568b=_0x18d6ba;super(_0x15fff2,_0x5bbea6,_0x628435,_0x37e1c3,_0x2f9f6e,_0x186176,_0x4a9884,_0x12fd72,_0x24dca5),_0x2c46b8(this,_0x3f568b(0x322),_0x3f568b(0x323)),this[_0x3f568b(0x42c)]=_0x2149da;}['appendMutation'](_0x173e88){const _0x4681f0=_0x18d6ba;return this['_pendingMutations'][_0x4681f0(0x239)](_0x173e88),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x1bda2f){const _0x152caf=_0x18d6ba;throw new Error(_0x152caf(0x536));}[_0x18d6ba(0x1fc)](){const _0x58d9a1=_0x18d6ba;throw new Error(_0x58d9a1(0x530));}[_0x18d6ba(0x53a)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x18d6ba(0x1e9)](){return this;}[_0x18d6ba(0x58f)](){const _0x5807fc=_0x18d6ba,{_injector:_0x4efc4b,_pendingMutations:_0xaa8f73,_awaitingChangeset:_0x2ab016,unitID:_0x187f68,_handler:_0x503fe4,type:_0x3da9db}=this,_0x115319=_0x5c3cd0(_0x4efc4b,_0x187f68,_0x3da9db,_0x2ab016,_0xaa8f73,_0x503fe4);return _0x115319 instanceof _0x29d649?_0x115319[_0x5807fc(0x4a9)]():(_0x115319 instanceof _0x468b55||_0x115319 instanceof _0x10c700)&&_0x115319[_0x5807fc(0x46f)](),_0x115319;}['resend'](){const _0x517a85=_0x18d6ba;throw new Error(_0x517a85(0x2a1));}};_0x451e23=_0x1a94a6([_0x3cf1c3(0x5,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00['Injector'])),_0x3cf1c3(0x6,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x35d)])),_0x3cf1c3(0x7,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0[_0x18d6ba(0x362)])),_0x3cf1c3(0x8,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x3cf1c3(0x9,_0x3aaa00[_0x18d6ba(0x256)])],_0x451e23);let _0x386fc4=class extends _0x6955e5{constructor(_0x41fdf7,_0x271c96,_0x317034,_0x58886f,_0x483b88,_0x41bc3a,_0x1a9da1,_0x2910a3,_0x203647,_0x431962,_0x2ce923,_0x405cde,_0x5095e5,_0x202257){const _0xf126b3=_0x18d6ba;super(_0x41fdf7,_0x271c96,_0x317034,_0x58886f,_0x1a9da1,_0x405cde,_0x5095e5,_0x203647,_0x431962),_0x2c46b8(this,_0xf126b3(0x322),_0xf126b3(0x28e)),(this[_0xf126b3(0x57e)]=_0x483b88,this['_queuedRemoteChangesets']=_0x41bc3a,this[_0xf126b3(0x42c)]=_0x2910a3,this['_logService']=_0x2ce923,this[_0xf126b3(0x45d)]=_0x202257);}['onMissedChangesetFetched'](_0x550312){const _0x1c68e1=_0x18d6ba;try{const _0x58d3f4=[..._0x550312,...this[_0x1c68e1(0x20f)]],_0x2d1aa2=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']]['filter'](_0x562b14=>!!_0x562b14);let _0x25ecaf,_0x237465;if(_0x2d1aa2[_0x1c68e1(0x574)]){const _0x3b504c=this[_0x1c68e1(0x45d)][_0x1c68e1(0x2fd)](_0x58d3f4,_0x2d1aa2,!0x1);if(!_0x4d4d9d[_0x1c68e1(0x49f)](_0x3b504c))throw _0x3b504c[_0x1c68e1(0x4ae)];_0x25ecaf=_0x3b504c[_0x1c68e1(0x486)],_0x237465=_0x3b504c[_0x1c68e1(0x314)];}else _0x25ecaf=_0x58d3f4,_0x237465=[];let _0x1cf98f=this[_0x1c68e1(0x32d)];_0x25ecaf[_0x1c68e1(0x387)](_0x36afed=>{const _0x33216f=_0x1c68e1;let _0x2fdc7f;if(_0x1cf98f[_0x33216f(0x574)]){const _0x43dfe9=this[_0x33216f(0x45d)]['transformMutationsWithChangeset'](_0x36afed,_0x1cf98f);if(!_0x4d4d9d[_0x33216f(0x2be)](_0x43dfe9))throw _0x43dfe9[_0x33216f(0x4ae)];_0x2fdc7f=_0x43dfe9[_0x33216f(0x486)],_0x1cf98f=_0x43dfe9[_0x33216f(0x1d2)];}else _0x2fdc7f=_0x36afed;this['_executeRemoteChangeset'](_0x2fdc7f);}),this[_0x1c68e1(0x57e)]&&this[_0x1c68e1(0x4e7)](),this[_0x1c68e1(0x53d)]&&_0x237465[_0x1c68e1(0x574)]&&(_0x237465[0x0]['baseRev']=this['_getCurrentRevision']());let _0x946a3e;if(this[_0x1c68e1(0x53d)]&&_0x1cf98f[_0x1c68e1(0x574)]!==0x0)_0x946a3e=this['_injector']['createInstance'](_0x468b55,this[_0x1c68e1(0x4bb)],this[_0x1c68e1(0x543)],_0x237465[0x0],_0x1cf98f,this[_0x1c68e1(0x2c7)]);else{if(this[_0x1c68e1(0x53d)]&&_0x1cf98f[_0x1c68e1(0x574)]===0x0)_0x237465[0x0][_0x1c68e1(0x3f3)]=this['_getCurrentRevision'](),_0x946a3e=this[_0x1c68e1(0x42c)][_0x1c68e1(0x491)](_0x10c700,this[_0x1c68e1(0x4bb)],this['type'],_0x237465[0x0],this[_0x1c68e1(0x2c7)]);else{if(_0x1cf98f[_0x1c68e1(0x574)]!==0x0){const _0x2b90da=this[_0x1c68e1(0x42c)][_0x1c68e1(0x491)](_0x29d649,this[_0x1c68e1(0x4bb)],this[_0x1c68e1(0x543)],_0x1cf98f,this[_0x1c68e1(0x2c7)]);_0x2b90da[_0x1c68e1(0x4a9)](),_0x946a3e=_0x2b90da;}else _0x946a3e=this[_0x1c68e1(0x42c)]['createInstance'](_0x26b02d,this['unitID'],this[_0x1c68e1(0x543)],this['_handler']);}}return _0x946a3e[_0x1c68e1(0x548)](),_0x946a3e;}catch(_0x250239){return this[_0x1c68e1(0x36e)][_0x1c68e1(0x4ae)](_0x1c68e1(0x21d),_0x1c68e1(0x52f),_0x250239),this[_0x1c68e1(0x42c)][_0x1c68e1(0x491)](_0x45cea0,this['unitID'],this[_0x1c68e1(0x543)],this[_0x1c68e1(0x53d)],this[_0x1c68e1(0x32d)],this[_0x1c68e1(0x2c7)],!0x1);}}[_0x18d6ba(0x46f)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x18d6ba(0x554)](_0x39e4ae){const _0x5246cb=_0x18d6ba;return this[_0x5246cb(0x32d)][_0x5246cb(0x239)](_0x39e4ae),this;}[_0x18d6ba(0x1b4)](_0x3f677a){const _0x27ca58=_0x18d6ba;return this[_0x27ca58(0x20f)][_0x27ca58(0x239)](_0x3f677a),this;}[_0x18d6ba(0x1fc)](_0x498128){const _0x40e94b=_0x18d6ba;if(this[_0x40e94b(0x53d)])return this[_0x40e94b(0x57e)]=this['_awaitingChangeset'],this[_0x40e94b(0x53d)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x18d6ba(0x53a)](_0x2011b9){const _0x46652b=_0x18d6ba;return this[_0x46652b(0x355)](!!(_0x2011b9!=null&&_0x2011b9['isPermissionRej']));}[_0x18d6ba(0x1e9)](){const _0x862924=_0x18d6ba;return this['_injector'][_0x862924(0x491)](_0x451e23,this['unitID'],this['type'],this[_0x862924(0x53d)],this[_0x862924(0x32d)],this[_0x862924(0x2c7)]);}[_0x18d6ba(0x58f)](){return this;}[_0x18d6ba(0x355)](_0x48a8dd){const _0x3e8819=_0x18d6ba;return this['_injector'][_0x3e8819(0x491)](_0x45cea0,this[_0x3e8819(0x4bb)],this['type'],this[_0x3e8819(0x53d)],this[_0x3e8819(0x32d)],this[_0x3e8819(0x2c7)],_0x48a8dd);}};_0x386fc4=_0x1a94a6([_0x3cf1c3(0x7,_0x3aaa00['Inject'](_0x3aaa00[_0x18d6ba(0x56f)])),_0x3cf1c3(0x8,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d['RevisionService'])),_0x3cf1c3(0x9,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0[_0x18d6ba(0x362)])),_0x3cf1c3(0xa,_0x3aaa00[_0x18d6ba(0x42a)]),_0x3cf1c3(0xb,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x3cf1c3(0xc,_0x3aaa00['IUndoRedoService']),_0x3cf1c3(0xd,_0x4d4d9d[_0x18d6ba(0x417)])],_0x386fc4);function _0x5c3cd0(_0xf8fb20,_0x56b7e7,_0x29f371,_0x16ba9c,_0x521375,_0x38b588){const _0x48a029=_0x18d6ba;return _0x16ba9c&&_0x521375[_0x48a029(0x574)]?_0xf8fb20['createInstance'](_0x468b55,_0x56b7e7,_0x29f371,_0x16ba9c,_0x521375,_0x38b588):_0x16ba9c?_0xf8fb20[_0x48a029(0x491)](_0x10c700,_0x56b7e7,_0x29f371,_0x16ba9c,_0x38b588):_0x521375[_0x48a029(0x574)]?_0xf8fb20[_0x48a029(0x491)](_0x29d649,_0x56b7e7,_0x29f371,_0x521375,_0x38b588):_0xf8fb20[_0x48a029(0x491)](_0x26b02d,_0x56b7e7,_0x29f371,_0x38b588);}var _0x2db266=Object[_0x18d6ba(0x272)],_0x5bbbca=Object[_0x18d6ba(0x3fd)],_0x3c73bd=(_0xeff471,_0x5fc685,_0x48cfd0,_0x443995)=>{const _0x3c0abb=_0x18d6ba;for(var _0x4a62a9=_0x443995>0x1?void 0x0:_0x443995?_0x5bbbca(_0x5fc685,_0x48cfd0):_0x5fc685,_0x978ba6=_0xeff471[_0x3c0abb(0x574)]-0x1,_0x5813cb;_0x978ba6>=0x0;_0x978ba6--)(_0x5813cb=_0xeff471[_0x978ba6])&&(_0x4a62a9=(_0x443995?_0x5813cb(_0x5fc685,_0x48cfd0,_0x4a62a9):_0x5813cb(_0x4a62a9))||_0x4a62a9);return _0x443995&&_0x4a62a9&&_0x2db266(_0x5fc685,_0x48cfd0,_0x4a62a9),_0x4a62a9;},_0x573f10=(_0x452b58,_0x159307)=>(_0x2dc5fb,_0x5ee228)=>_0x159307(_0x2dc5fb,_0x5ee228,_0x452b58);_0x4c54a0[_0x18d6ba(0x2c0)]=class extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(_0x1c378d,_0x9666aa,_0x851236){const _0x3e79ae=_0x18d6ba;super(),_0x2c46b8(this,_0x3e79ae(0x56b),new Map()),_0x2c46b8(this,_0x3e79ae(0x309),new _0x5cbc6e[(_0x3e79ae(0x328))]()),(this[_0x3e79ae(0x42c)]=_0x1c378d,this[_0x3e79ae(0x48b)]=_0x9666aa,this[_0x3e79ae(0x318)]=_0x851236,this[_0x3e79ae(0x286)]());}[_0x18d6ba(0x338)](){const _0x11987f=_0x18d6ba;super[_0x11987f(0x338)](),this[_0x11987f(0x56b)][_0x11987f(0x387)](_0x4fdc75=>_0x4fdc75[_0x11987f(0x338)]()),this['_entities'][_0x11987f(0x580)]();}[_0x18d6ba(0x41f)](_0x475987){const _0x5ad600=_0x18d6ba;var _0x1d0933;return(_0x1d0933=this[_0x5ad600(0x56b)][_0x5ad600(0x3e4)](_0x475987))!=null?_0x1d0933:null;}[_0x18d6ba(0x45b)](_0x20e8b3){const _0x2f7b39=_0x18d6ba,_0x5abb2a=this[_0x2f7b39(0x41f)](_0x20e8b3);return _0x5abb2a?_0x5cbc6e['of'](_0x5abb2a):this[_0x2f7b39(0x309)][_0x2f7b39(0x32f)](_0x267050[_0x2f7b39(0x46d)](_0x4fa09f=>_0x4fa09f['unitID']===_0x20e8b3));}['_init'](){const _0x2dc36e=_0x18d6ba;this[_0x2dc36e(0x318)][_0x2dc36e(0x2e8)](_0x3aaa00[_0x2dc36e(0x434)][_0x2dc36e(0x18a)])[_0x2dc36e(0x32f)](_0x5cbc6e[_0x2dc36e(0x40b)](this[_0x2dc36e(0x505)]),_0x267050[_0x2dc36e(0x40c)](0x10))[_0x2dc36e(0x559)](async _0x39af48=>{const _0x587641=_0x2dc36e,_0x1f77d2=_0x39af48['getUnitId'](),_0x4f3fcc=await this['_startCollaboration'](_0x1f77d2,_0x3a110c[_0x587641(0x18a)]);this[_0x587641(0x56b)][_0x587641(0x2a6)](_0x1f77d2,_0x4f3fcc);}),this[_0x2dc36e(0x318)][_0x2dc36e(0x2e8)](_0x3aaa00[_0x2dc36e(0x434)][_0x2dc36e(0x4c1)])['pipe'](_0x5cbc6e[_0x2dc36e(0x40b)](this['dispose$']),_0x267050[_0x2dc36e(0x40c)](0x10))['pipe'](_0x267050['filter'](_0x3ddb46=>!_0x3ddb46[_0x2dc36e(0x4b6)]()[_0x2dc36e(0x352)]('__')))[_0x2dc36e(0x559)](async _0x29a5b9=>{const _0x2588fd=_0x2dc36e,_0x133e3c=_0x29a5b9[_0x2588fd(0x4b6)](),_0x5e1c78=await this[_0x2588fd(0x248)](_0x133e3c,_0x3a110c[_0x2588fd(0x4c1)]);this[_0x2588fd(0x56b)][_0x2588fd(0x2a6)](_0x133e3c,_0x5e1c78);}),_0x5cbc6e['merge'](this[_0x2dc36e(0x318)][_0x2dc36e(0x551)](_0x3aaa00[_0x2dc36e(0x434)][_0x2dc36e(0x18a)]),this[_0x2dc36e(0x318)][_0x2dc36e(0x551)](_0x3aaa00[_0x2dc36e(0x434)][_0x2dc36e(0x4c1)]))[_0x2dc36e(0x32f)](_0x5cbc6e[_0x2dc36e(0x40b)](this[_0x2dc36e(0x505)]))[_0x2dc36e(0x559)](_0x9117df=>{const _0x161070=_0x2dc36e,_0x59305f=_0x9117df['getUnitId'](),_0x831a45=this[_0x161070(0x56b)][_0x161070(0x3e4)](_0x59305f);_0x831a45&&(_0x831a45[_0x161070(0x338)](),this[_0x161070(0x56b)][_0x161070(0x466)](_0x59305f));});}async[_0x18d6ba(0x248)](_0x1b802d,_0x341244){const _0x661c5b=_0x18d6ba,_0x525686=await this[_0x661c5b(0x48b)]['requireSession'](_0x1b802d),_0x292906=this['_injector'][_0x661c5b(0x491)](this[_0x661c5b(0x4e4)](_0x341244),_0x1b802d,_0x341244,_0x525686);return await _0x292906[_0x661c5b(0x367)](),this['_entityInit$'][_0x661c5b(0x1c5)](_0x292906),_0x292906;}[_0x18d6ba(0x4e4)](_0x3af3d8){const _0x26cd69=_0x18d6ba;switch(_0x3af3d8){case _0x3a110c['UNIVER_DOC']:return _0x823487;case _0x3a110c[_0x26cd69(0x18a)]:return _0x4c54a0[_0x26cd69(0x26d)];default:throw new Error(_0x26cd69(0x1a1)+_0x3af3d8);}}},_0x4c54a0[_0x18d6ba(0x2c0)]=_0x3c73bd([_0x3aaa00['OnLifecycle'](_0x3aaa00[_0x18d6ba(0x4ff)][_0x18d6ba(0x1d5)],_0x4c54a0['CollaborationController']),_0x573f10(0x0,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x56f)])),_0x573f10(0x1,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0['CollaborationSessionService'])),_0x573f10(0x2,_0x3aaa00['IUniverInstanceService'])],_0x4c54a0[_0x18d6ba(0x2c0)]);let _0x3f4594=class extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(_0x31421a,_0x4fedeb,_0x5b3586,_0x345be3,_0x20405a,_0x1bd5cc,_0x11413f,_0x34690f,_0x2a7601,_0x9d04ae,_0x590951,_0x32e524,_0x43d2e9){const _0x5c503e=_0x18d6ba;super(),_0x2c46b8(this,'_state$',new _0x5cbc6e[(_0x5c503e(0x1ec))](null)),_0x2c46b8(this,_0x5c503e(0x207),this['_state$'][_0x5c503e(0x28c)]()),_0x2c46b8(this,_0x5c503e(0x509)),_0x2c46b8(this,_0x5c503e(0x1bf),!0x1),_0x2c46b8(this,_0x5c503e(0x503),this[_0x5c503e(0x207)][_0x5c503e(0x32f)](_0x267050[_0x5c503e(0x343)](_0x28f9ac=>_0x28f9ac?_0x28f9ac[_0x5c503e(0x322)]:_0x2232ef[_0x5c503e(0x1f8)]),_0x267050[_0x5c503e(0x27e)](0x1))),_0x2c46b8(this,'_transitionLocked',!0x1),_0x2c46b8(this,_0x5c503e(0x293),[]),(this[_0x5c503e(0x4bb)]=_0x31421a,this[_0x5c503e(0x2f8)]=_0x4fedeb,this[_0x5c503e(0x1a3)]=_0x5b3586,this[_0x5c503e(0x42c)]=_0x345be3,this['_localCacheService']=_0x20405a,this[_0x5c503e(0x249)]=_0x1bd5cc,this[_0x5c503e(0x43e)]=_0x11413f,this[_0x5c503e(0x2b4)]=_0x34690f,this['_logService']=_0x2a7601,this[_0x5c503e(0x513)]=_0x9d04ae,this[_0x5c503e(0x21a)]=_0x590951,this[_0x5c503e(0x55a)]=_0x32e524,this['_singleActiveUnitService']=_0x43d2e9);}get[_0x18d6ba(0x1f7)](){const _0x53c588=_0x18d6ba;return this[_0x53c588(0x509)];}async[_0x18d6ba(0x367)](){const _0x5cabe1=_0x18d6ba;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x5cabe1(0x286)]();}[_0x18d6ba(0x54c)](){const _0x433cf6=_0x18d6ba;return this[_0x433cf6(0x1bf)]=!0x0,_0x3aaa00[_0x433cf6(0x1cd)](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x18d6ba(0x24b)](_0x3708a6){const _0x42ef92=_0x18d6ba;this['_state']=_0x3708a6,this[_0x42ef92(0x3d9)][_0x42ef92(0x1c5)](_0x3708a6);}async['_init'](){const _0x3936c0=_0x18d6ba;var _0x1bdeda;return this[_0x3936c0(0x24b)](await this[_0x3936c0(0x516)]()),this['_singleActiveUnitService']&&((_0x1bdeda=this['_singleActiveUnitService'])==null||_0x1bdeda[_0x3936c0(0x39d)](this[_0x3936c0(0x4bb)]),this[_0x3936c0(0x43a)](_0x3aaa00[_0x3936c0(0x1cd)](this['_singleActiveUnitService'][_0x3936c0(0x2bd)](this[_0x3936c0(0x4bb)])[_0x3936c0(0x559)](_0x90029f=>{const _0x19e8b8=_0x3936c0;this['_logService'][_0x19e8b8(0x3bd)](_0x19e8b8(0x2da),_0x19e8b8(0x4b7),_0x90029f),_0x90029f===_0x3fa2a7[_0x19e8b8(0x46b)]?(this[_0x19e8b8(0x21a)][_0x19e8b8(0x3f8)]({'content':this[_0x19e8b8(0x43e)]['t'](_0x19e8b8(0x53f)),'type':_0x564857[_0x19e8b8(0x260)][_0x19e8b8(0x40f)]}),this[_0x19e8b8(0x55a)][_0x19e8b8(0x198)](new _0x459c9c[(_0x19e8b8(0x2a3))](this[_0x19e8b8(0x4bb)])['id'],!0x1)):this[_0x19e8b8(0x55a)][_0x19e8b8(0x198)](new _0x459c9c['WorkbookEditablePermission'](this[_0x19e8b8(0x4bb)])['id'],!0x0);})))),this['disposeWithMe'](_0x3aaa00[_0x3936c0(0x1cd)](this[_0x3936c0(0x1a3)][_0x3936c0(0x462)][_0x3936c0(0x559)](_0x50079a=>{const _0x4e19ff=_0x3936c0;_0x50079a===_0x2cd85f['ONLINE']?this[_0x4e19ff(0x4de)]():_0x50079a===_0x2cd85f['OFFLINE']&&this['_toggleOffline']();}))),this[_0x3936c0(0x43a)](_0x3aaa00[_0x3936c0(0x1cd)](this[_0x3936c0(0x1a3)][_0x3936c0(0x2f0)]['subscribe'](_0x460567=>{const _0x3abc9c=_0x3936c0;try{switch(_0x460567[_0x3abc9c(0x539)]){case _0x4d4d9d[_0x3abc9c(0x2ae)]['NEW_CHANGESETS']:{this[_0x3abc9c(0x43b)](_0x4d4d9d[_0x3abc9c(0x4cd)](_0x460567[_0x3abc9c(0x44f)]));break;}case _0x4d4d9d['CollaborationEvent'][_0x3abc9c(0x4e1)]:{this[_0x3abc9c(0x1f4)](_0x460567[_0x3abc9c(0x44f)]);break;}case _0x4d4d9d['CollaborationEvent'][_0x3abc9c(0x3fb)]:{this['_onRemoteRejected']();break;}case _0x4d4d9d[_0x3abc9c(0x2ae)][_0x3abc9c(0x52c)]:{this[_0x3abc9c(0x1e3)](_0x460567['data'][_0x3abc9c(0x589)][_0x3abc9c(0x343)](_0x4bff2d=>_0x4d4d9d[_0x3abc9c(0x4cd)](_0x4bff2d)));break;}case _0x4d4d9d[_0x3abc9c(0x2ae)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x226b7c){throw console['error'](_0x3abc9c(0x549),_0x226b7c),_0x226b7c;}}))),this[_0x3936c0(0x509)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x135908=_0x18d6ba;if(this[_0x135908(0x25d)])throw new Error(_0x135908(0x3c4));this['_transitionLocked']=!0x0;}[_0x18d6ba(0x1d0)](_0xa90241){const _0x13c153=_0x18d6ba;this[_0x13c153(0x451)](),this['_updateState'](this[_0x13c153(0x509)]['appendMutation'](_0xa90241)),this[_0x13c153(0x21b)]();}[_0x18d6ba(0x43b)](_0x1b721b){const _0x18bec1=_0x18d6ba;if(!(_0x1b721b['revision']<=this[_0x18bec1(0x2b4)]['getCurrentRevForDocument'](this[_0x18bec1(0x4bb)]))){if(this[_0x18bec1(0x1bf)]){this[_0x18bec1(0x293)][_0x18bec1(0x239)](_0x1b721b);return;}this[_0x18bec1(0x542)](_0x1b721b);}}['_exhaustRemoteChangesetQueue'](){const _0x11e713=_0x18d6ba;this[_0x11e713(0x293)][_0x11e713(0x387)](_0x249b53=>this[_0x11e713(0x542)](_0x249b53)),this[_0x11e713(0x293)]=[];}[_0x18d6ba(0x542)](_0xb57ca5){const _0x23a27c=_0x18d6ba,_0x3966bf=this[_0x23a27c(0x249)][_0x23a27c(0x413)]['fetchThroughInterceptors'](this[_0x23a27c(0x249)]['interceptor'][_0x23a27c(0x2e1)]()[_0x23a27c(0x437)])(_0xb57ca5[_0x23a27c(0x2fb)],null)||_0xb57ca5[_0x23a27c(0x2fb)],_0x1ea2e5={..._0xb57ca5,'mutations':_0x3966bf};this['_lockTransition'](),this[_0x23a27c(0x24b)](this['_state'][_0x23a27c(0x1b4)](_0x1ea2e5)),this[_0x23a27c(0x21b)]();}['_onRemoteACK'](_0x16b6ba){const _0x15a122=_0x18d6ba;this[_0x15a122(0x451)](),this[_0x15a122(0x24b)](this['_state'][_0x15a122(0x1fc)](_0x16b6ba)),this[_0x15a122(0x21b)]();}[_0x18d6ba(0x234)](_0x313461){const _0x480807=_0x18d6ba;this[_0x480807(0x451)](),this[_0x480807(0x24b)](this[_0x480807(0x509)][_0x480807(0x53a)](_0x313461)),this[_0x480807(0x21b)]();}[_0x18d6ba(0x1e3)](_0x1bca35){const _0x4f0337=_0x18d6ba;if(!(this[_0x4f0337(0x509)]instanceof _0x386fc4))throw new TypeError(_0x4f0337(0x372));const _0x22dfcb=_0x1bca35[_0x4f0337(0x343)](_0x4f86b0=>{const _0x1f13b6=_0x4f0337,_0x54438c=this[_0x1f13b6(0x249)][_0x1f13b6(0x413)]['fetchThroughInterceptors'](this[_0x1f13b6(0x249)][_0x1f13b6(0x413)][_0x1f13b6(0x2e1)]()[_0x1f13b6(0x437)])(_0x4f86b0['mutations'],null)||_0x4f86b0[_0x1f13b6(0x2fb)];return{..._0x4f86b0,'mutations':_0x54438c};});this[_0x4f0337(0x451)](),this[_0x4f0337(0x24b)](this[_0x4f0337(0x509)][_0x4f0337(0x4b5)](_0x22dfcb)),this['_unlockTransition']();}['_toggleOffline'](){const _0x56f862=_0x18d6ba;this[_0x56f862(0x451)](),this['_updateState'](this[_0x56f862(0x509)][_0x56f862(0x1e9)]()),this['_unlockTransition']();}[_0x18d6ba(0x4de)](){const _0x3d1a88=_0x18d6ba;this[_0x3d1a88(0x451)](),this[_0x3d1a88(0x24b)](this[_0x3d1a88(0x509)][_0x3d1a88(0x58f)]()),this[_0x3d1a88(0x21b)]();}async[_0x18d6ba(0x516)](){return new Promise(_0xfe64b8=>{const _0x2b1c00=_0x3d0e;this['_session'][_0x2b1c00(0x462)][_0x2b1c00(0x32f)](_0x267050[_0x2b1c00(0x240)](0x1))[_0x2b1c00(0x559)](async _0xfd624c=>{const _0x2aca59=_0x2b1c00;_0xfe64b8(await this['_createInitialStateImpl'](_0xfd624c===_0x2cd85f[_0x2aca59(0x219)]));});});}[_0x18d6ba(0x1a5)](){const _0x5754ad=_0x18d6ba,_0xd0f152=this[_0x5754ad(0x4bb)];return{'onStateChange':(_0x315ca1,_0x4df737)=>{const _0x507583=_0x5754ad;if(_0x315ca1!==this[_0x507583(0x509)])throw new Error(_0x507583(0x489)+_0x315ca1[_0x507583(0x322)]+_0x507583(0x287)+_0x4df737['status']+_0x507583(0x1bb)+this[_0x507583(0x509)][_0x507583(0x322)]);this[_0x507583(0x24b)](_0x4df737);},'onSendChangeset':_0x513186=>{const _0x133780=_0x5754ad,_0x4de1c8={'eventID':_0x4d4d9d['CollaborationEvent'][_0x133780(0x1fd)],'data':{'unitID':_0x513186[_0x133780(0x4bb)],'unitType':this['_type'],'changeset':_0x513186,'memberID':this[_0x133780(0x1a3)][_0x133780(0x1c6)]()}};this['_session'][_0x133780(0x393)](_0x4de1c8,this['unitID']);},'onMissingChangesets':({from:_0x333681,to:_0x4b3f5f})=>{const _0x580a26=_0x5754ad;this[_0x580a26(0x36e)][_0x580a26(0x3bd)](_0x580a26(0x2da),_0x580a26(0x567)+_0x333681+_0x580a26(0x210)+_0x4b3f5f);const _0xab8400={'eventID':_0x4d4d9d['CollaborationEvent'][_0x580a26(0x2d3)],'data':{'unitID':_0xd0f152,'unitType':this[_0x580a26(0x2f8)],'from':_0x333681,'to':_0x4b3f5f}};this['_session'][_0x580a26(0x393)](_0xab8400,this[_0x580a26(0x4bb)]);}};}async[_0x18d6ba(0x3d0)](_0x537271){const _0x546cf8=_0x18d6ba;var _0x25dd14,_0x42835d;const _0x746030=await this[_0x546cf8(0x4bf)][_0x546cf8(0x1ee)](this['unitID']),_0x161065=(_0x25dd14=_0x746030==null?void 0x0:_0x746030['mutations'])!=null?_0x25dd14:[],_0x45dfa1=(_0x42835d=_0x746030==null?void 0x0:_0x746030['awaitingChangeset'])!=null?_0x42835d:null,_0x1ddfc9=this[_0x546cf8(0x4bb)];try{this[_0x546cf8(0x457)](_0x45dfa1,_0x161065);}catch(_0x195db1){this['_logService']['error'](_0x195db1);}const _0x31dd06=this['_createHandler']();if(_0x537271){const _0x343d2d=_0x5c3cd0(this['_injector'],_0x1ddfc9,this[_0x546cf8(0x2f8)],_0x45dfa1,_0x161065,_0x31dd06);return _0x343d2d instanceof _0x29d649?_0x343d2d['_schedule']():(_0x343d2d instanceof _0x468b55||_0x343d2d instanceof _0x10c700)&&_0x343d2d[_0x546cf8(0x46f)](),_0x343d2d;}return this[_0x546cf8(0x42c)][_0x546cf8(0x491)](_0x451e23,_0x1ddfc9,this[_0x546cf8(0x2f8)],_0x45dfa1,_0x161065,_0x31dd06);}[_0x18d6ba(0x457)](_0x4d1374,_0x42a9d0){const _0xa2f73d=_0x18d6ba;var _0x253ecb,_0x363d5d;const _0x18b650=this[_0xa2f73d(0x249)][_0xa2f73d(0x413)][_0xa2f73d(0x304)](this['_compressMutationService'][_0xa2f73d(0x413)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x253ecb=_0x18b650((_0x4d1374==null?void 0x0:_0x4d1374[_0xa2f73d(0x2fb)])||[],null))==null||_0x253ecb[_0xa2f73d(0x387)](_0xa0821a=>this[_0xa2f73d(0x513)][_0xa2f73d(0x2e9)](_0xa0821a['id'],_0xa0821a['params'])),(_0x363d5d=_0x18b650(_0x42a9d0||[],null))==null||_0x363d5d[_0xa2f73d(0x387)](_0x1a95f8=>this[_0xa2f73d(0x513)][_0xa2f73d(0x2e9)](_0x1a95f8['id'],_0x1a95f8[_0xa2f73d(0x561)]));}};_0x3f4594=_0x3c73bd([_0x573f10(0x3,_0x3aaa00['Inject'](_0x3aaa00[_0x18d6ba(0x56f)])),_0x573f10(0x4,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0[_0x18d6ba(0x362)])),_0x573f10(0x5,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x28a)])),_0x573f10(0x6,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x591)])),_0x573f10(0x7,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x35d)])),_0x573f10(0x8,_0x3aaa00[_0x18d6ba(0x42a)]),_0x573f10(0x9,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x573f10(0xa,_0x2b4c8d['IMessageService']),_0x573f10(0xb,_0x3aaa00[_0x18d6ba(0x23f)]),_0x573f10(0xc,_0x3aaa00[_0x18d6ba(0x409)](_0x3a8c8d))],_0x3f4594);let _0x823487=class extends _0x3f4594{constructor(_0x1c5256,_0x29c226,_0x1d0f08,_0x3ad9f5,_0xe263a3,_0x29dddd,_0x12d8b2,_0x536f04,_0xcd1654,_0x158012,_0xf6127c,_0x293ebe,_0x3fba0d,_0x30671e,_0x589f7f,_0x542172,_0x44c1aa){const _0x2ce87f=_0x18d6ba;super(_0x1c5256,_0x29c226,_0x1d0f08,_0x3ad9f5,_0xe263a3,_0x29dddd,_0x12d8b2,_0x536f04,_0x3fba0d,_0x30671e,_0x589f7f,_0x542172,_0x44c1aa),this['unitID']=_0x1c5256,this['type']=_0x29c226,this[_0x2ce87f(0x454)]=_0x1d0f08,this[_0x2ce87f(0x1ab)]=_0xcd1654,this['_docTransformIMECacheService']=_0x158012,this[_0x2ce87f(0x4b8)]=_0xf6127c,this[_0x2ce87f(0x3ad)]=_0x293ebe;}[_0x18d6ba(0x1a5)](){const _0x2ae822=_0x18d6ba,_0x25cbda=super[_0x2ae822(0x1a5)]();return _0x25cbda[_0x2ae822(0x349)]=_0x357e64=>this[_0x2ae822(0x520)][_0x2ae822(0x19d)](_0x357e64),_0x25cbda[_0x2ae822(0x2aa)]=_0xf4855b=>this[_0x2ae822(0x4b8)][_0x2ae822(0x3dc)](_0xf4855b),_0x25cbda[_0x2ae822(0x45e)]=_0x337756=>this[_0x2ae822(0x3ad)][_0x2ae822(0x431)](_0x337756),_0x25cbda[_0x2ae822(0x305)]=_0x502513=>this['_docTransformIMECacheService'][_0x2ae822(0x485)](_0x502513),_0x25cbda;}async[_0x18d6ba(0x286)](){const _0x4fdb85=_0x18d6ba,_0x42bdfc=await super[_0x4fdb85(0x286)]();return this['disposeWithMe'](this['_commandService'][_0x4fdb85(0x1c1)]((_0x54c062,_0xbff1da)=>{const _0x4e1bd6=_0x4fdb85;if(_0x54c062[_0x4e1bd6(0x543)]!==_0x3aaa00['CommandType'][_0x4e1bd6(0x510)]||_0xbff1da!=null&&_0xbff1da['fromCollab']||_0xbff1da!=null&&_0xbff1da[_0x4e1bd6(0x56c)])return;const _0x3467fa=_0x54c062[_0x4e1bd6(0x561)];if((_0x3467fa==null?void 0x0:_0x3467fa[_0x4e1bd6(0x189)])!==this['unitID'])return;let _0x21ed69=_0x54c062;if(_0x21ed69['id']===_0x593e90['RichTextEditingMutation']['id']){const _0x1d8709=_0x21ed69[_0x4e1bd6(0x561)];_0x21ed69={'id':_0x593e90[_0x4e1bd6(0x34e)]['id'],'type':_0x3aaa00['CommandType']['MUTATION'],'params':{'unitId':_0x1d8709[_0x4e1bd6(0x189)],'actions':_0x1d8709[_0x4e1bd6(0x51f)],'textRanges':null}};}const _0x2937e1=this['_compressMutationService']['interceptor'][_0x4e1bd6(0x304)](this[_0x4e1bd6(0x249)][_0x4e1bd6(0x413)]['getInterceptPoints']()[_0x4e1bd6(0x215)])([_0x21ed69],null)||[_0x21ed69];this['_onLocalMutation'](_0x2937e1[0x0]);})),_0x42bdfc;}};_0x823487=_0x3c73bd([_0x573f10(0x3,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x56f)])),_0x573f10(0x4,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0[_0x18d6ba(0x362)])),_0x573f10(0x5,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x28a)])),_0x573f10(0x6,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x591)])),_0x573f10(0x7,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x35d)])),_0x573f10(0x8,_0x3aaa00[_0x18d6ba(0x1de)](_0x593e90[_0x18d6ba(0x244)])),_0x573f10(0x9,_0x3aaa00[_0x18d6ba(0x1de)](_0x5f1add)),_0x573f10(0xa,_0x3aaa00[_0x18d6ba(0x1de)](_0x49b741)),_0x573f10(0xb,_0x3aaa00[_0x18d6ba(0x1de)](_0x301e57)),_0x573f10(0xc,_0x3aaa00[_0x18d6ba(0x42a)]),_0x573f10(0xd,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x573f10(0xe,_0x2b4c8d[_0x18d6ba(0x57b)]),_0x573f10(0xf,_0x3aaa00[_0x18d6ba(0x23f)]),_0x573f10(0x10,_0x3aaa00[_0x18d6ba(0x409)](_0x3a8c8d))],_0x823487),_0x4c54a0['SheetCollaborationEntity']=class extends _0x3f4594{constructor(_0x639392,_0x50c8dc,_0x51f8e9,_0x1c9d49,_0x59c552,_0x5d3f63,_0x415c8d,_0x508829,_0x34e384,_0x5d051d,_0x3cbf63,_0x3bdbf8,_0x2cfae3,_0x1b66a7){const _0x8f95eb=_0x18d6ba;super(_0x639392,_0x50c8dc,_0x51f8e9,_0x1c9d49,_0x59c552,_0x5d3f63,_0x415c8d,_0x508829,_0x5d051d,_0x3cbf63,_0x3bdbf8,_0x2cfae3,_0x1b66a7),this['unitID']=_0x639392,this[_0x8f95eb(0x543)]=_0x50c8dc,this[_0x8f95eb(0x454)]=_0x51f8e9,this[_0x8f95eb(0x29f)]=_0x34e384;}[_0x18d6ba(0x1a5)](){const _0x54b5ab=_0x18d6ba,_0x4b3787=super[_0x54b5ab(0x1a5)]();return _0x4b3787[_0x54b5ab(0x2aa)]=_0x5a6f3f=>this['_sheetTransformSelectionsService'][_0x54b5ab(0x3dc)](_0x5a6f3f),_0x4b3787;}async[_0x18d6ba(0x286)](){const _0x12c0f5=_0x18d6ba,_0x5a3392=await super['_init']();return this[_0x12c0f5(0x43a)](this['_commandService']['onCommandExecuted']((_0x5db6ca,_0x2b38cf)=>{const _0x547564=_0x12c0f5;if(_0x5db6ca['type']!==_0x3aaa00[_0x547564(0x44a)][_0x547564(0x510)]||_0x2b38cf!=null&&_0x2b38cf[_0x547564(0x312)]||_0x2b38cf!=null&&_0x2b38cf[_0x547564(0x56c)])return;const _0x578474=_0x5db6ca['params'];if((_0x578474==null?void 0x0:_0x578474[_0x547564(0x189)])!==this[_0x547564(0x4bb)])return;const _0x57cdad=_0x5db6ca,_0x2393a7=this[_0x547564(0x249)][_0x547564(0x413)]['fetchThroughInterceptors'](this[_0x547564(0x249)][_0x547564(0x413)][_0x547564(0x2e1)]()[_0x547564(0x215)])([_0x57cdad],null)||[_0x57cdad];this['_onLocalMutation'](_0x2393a7[0x0]);})),_0x5a3392;}},_0x4c54a0['SheetCollaborationEntity']=_0x3c73bd([_0x573f10(0x3,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x56f)])),_0x573f10(0x4,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0['LocalCacheService'])),_0x573f10(0x5,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x28a)])),_0x573f10(0x6,_0x3aaa00['Inject'](_0x3aaa00[_0x18d6ba(0x591)])),_0x573f10(0x7,_0x3aaa00['Inject'](_0x4d4d9d['RevisionService'])),_0x573f10(0x8,_0x3aaa00['Inject'](_0x13a645)),_0x573f10(0x9,_0x3aaa00[_0x18d6ba(0x42a)]),_0x573f10(0xa,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x573f10(0xb,_0x2b4c8d[_0x18d6ba(0x57b)]),_0x573f10(0xc,_0x3aaa00[_0x18d6ba(0x23f)]),_0x573f10(0xd,_0x3aaa00['Optional'](_0x3a8c8d))],_0x4c54a0[_0x18d6ba(0x26d)]);const _0x1acd68=[_0x18d6ba(0x19f),'jiqing500',_0x18d6ba(0x531),'red300',_0x18d6ba(0x1c7),_0x18d6ba(0x42b)];class _0x195451 extends _0x3aaa00['Disposable']{constructor(){const _0x552d87=_0x18d6ba;super(...arguments),_0x2c46b8(this,_0x552d87(0x4ab),new Map()),_0x2c46b8(this,_0x552d87(0x3d3),0x0);}['assignAColorForMemberID'](_0x54e8a3){const _0x846acd=_0x18d6ba;if(this[_0x846acd(0x4ab)][_0x846acd(0x443)](_0x54e8a3))return this[_0x846acd(0x4ab)]['get'](_0x54e8a3);const _0x2212f5=_0x1acd68[this[_0x846acd(0x3d3)]];return this[_0x846acd(0x3d3)]=(this[_0x846acd(0x3d3)]+0x1)%_0x1acd68[_0x846acd(0x574)],this[_0x846acd(0x4ab)][_0x846acd(0x2a6)](_0x54e8a3,_0x2212f5),_0x2212f5;}}var _0x5dbbe4=Object[_0x18d6ba(0x272)],_0x316825=Object[_0x18d6ba(0x3fd)],_0x496c3e=(_0x2dea9f,_0x1b0cb8,_0xeebd4,_0x159af4)=>{const _0x28212c=_0x18d6ba;for(var _0x19d7b7=_0x159af4>0x1?void 0x0:_0x159af4?_0x316825(_0x1b0cb8,_0xeebd4):_0x1b0cb8,_0x4df876=_0x2dea9f[_0x28212c(0x574)]-0x1,_0xf08e2f;_0x4df876>=0x0;_0x4df876--)(_0xf08e2f=_0x2dea9f[_0x4df876])&&(_0x19d7b7=(_0x159af4?_0xf08e2f(_0x1b0cb8,_0xeebd4,_0x19d7b7):_0xf08e2f(_0x19d7b7))||_0x19d7b7);return _0x159af4&&_0x19d7b7&&_0x5dbbe4(_0x1b0cb8,_0xeebd4,_0x19d7b7),_0x19d7b7;},_0x398206=(_0x3f4c8f,_0x25a421)=>(_0x5bb179,_0x535928)=>_0x25a421(_0x5bb179,_0x535928,_0x3f4c8f);const _0xf24c65=0x12c,_0x2d40b7=0x64,_0x22d870=()=>{let _0x246205=[],_0x467a38=!0x1;return _0x53bea6=>{const _0x3bf24f=_0x3d0e;_0x246205[_0x3bf24f(0x239)](_0x53bea6),_0x467a38||(_0x467a38=!0x0,setTimeout(()=>{_0x246205['forEach'](_0x4a77e4=>_0x4a77e4()),_0x246205=[],_0x467a38=!0x1;}));};};let _0x388ee8=class extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(_0x6f82e6,_0x192937,_0x5c7628,_0x1b00d8,_0x2d256f,_0x2243a3,_0x3af9f9,_0x33f115){const _0x1d0a90=_0x18d6ba;super(),_0x2c46b8(this,_0x1d0a90(0x2a2),!0x1),_0x2c46b8(this,_0x1d0a90(0x286),!0x1),_0x2c46b8(this,_0x1d0a90(0x500),new _0x5cbc6e[(_0x1d0a90(0x1ec))](new Map())),_0x2c46b8(this,_0x1d0a90(0x4ef),this[_0x1d0a90(0x500)][_0x1d0a90(0x28c)]()),_0x2c46b8(this,_0x1d0a90(0x541),new _0x5cbc6e[(_0x1d0a90(0x1ec))]([])),_0x2c46b8(this,_0x1d0a90(0x395),this[_0x1d0a90(0x541)][_0x1d0a90(0x32f)](_0x5cbc6e[_0x1d0a90(0x556)](_0xf24c65))),_0x2c46b8(this,_0x1d0a90(0x3c6),_0x58296f((_0xd4103d,_0x355447)=>{const _0x2d1b6d=_0x1d0a90,_0x190a51={'eventID':_0x4d4d9d[_0x2d1b6d(0x2ae)][_0x2d1b6d(0x33e)],'data':{'unitID':this[_0x2d1b6d(0x4bb)],'memberID':this[_0x2d1b6d(0x1a3)]['getMemberID'](),'selection':_0x55b16b['serializeRangeWithSheet'](_0xd4103d,_0x355447[_0x2d1b6d(0x278)])}};this['_session'][_0x2d1b6d(0x393)](_0x190a51,this['unitID']);},_0x2d40b7)),(this['unitID']=_0x6f82e6,this['_session']=_0x192937,this[_0x1d0a90(0x42c)]=_0x5c7628,this[_0x1d0a90(0x2a9)]=_0x1b00d8,this[_0x1d0a90(0x241)]=_0x2d256f,this['_univerInstanceService']=_0x2243a3,this['_commandService']=_0x3af9f9,this[_0x1d0a90(0x374)]=_0x33f115);}get[_0x18d6ba(0x2f4)](){const _0x38c3a5=_0x18d6ba;return this[_0x38c3a5(0x500)][_0x38c3a5(0x453)]();}get[_0x18d6ba(0x337)](){const _0x3e6d58=_0x18d6ba;return this[_0x3e6d58(0x541)]['getValue']();}[_0x18d6ba(0x338)](){const _0x3e2798=_0x18d6ba;super[_0x3e2798(0x338)](),this[_0x3e2798(0x500)]['next'](new Map()),this[_0x3e2798(0x500)][_0x3e2798(0x581)](),this['_roomMembers$']['next']([]),this[_0x3e2798(0x541)]['complete']();}[_0x18d6ba(0x367)](){const _0x3c9f69=_0x18d6ba;this[_0x3c9f69(0x286)]||(this[_0x3c9f69(0x286)]=!0x0,this['_session'][_0x3c9f69(0x462)]['pipe'](_0x5cbc6e['takeUntil'](this[_0x3c9f69(0x505)]))[_0x3c9f69(0x559)](_0x17be2a=>{const _0x3e80c7=_0x3c9f69;_0x17be2a===_0x2cd85f[_0x3e80c7(0x219)]?this['_toggleOnline']():this[_0x3e80c7(0x420)]();}),this[_0x3c9f69(0x1a3)][_0x3c9f69(0x2f0)][_0x3c9f69(0x32f)](_0x5cbc6e[_0x3c9f69(0x40b)](this[_0x3c9f69(0x505)]))[_0x3c9f69(0x559)](_0x59bf38=>{const _0x19db74=_0x3c9f69,_0x4a5eaf=_0x59bf38['eventID'];_0x4a5eaf===_0x4d4d9d['CollaborationEvent'][_0x19db74(0x33e)]&&this[_0x19db74(0x25b)](_0x59bf38),_0x4a5eaf===_0x4d4d9d[_0x19db74(0x2ae)][_0x19db74(0x4af)]&&this[_0x19db74(0x521)](_0x59bf38);}),this[_0x3c9f69(0x3c1)](),this[_0x3c9f69(0x43a)](this[_0x3c9f69(0x513)][_0x3c9f69(0x1c1)](_0x3dd41b=>{const _0x17653f=_0x3c9f69;if(this['_online']&&_0x3dd41b['id']===_0x459c9c['SetSelectionsOperation']['id']&&_0x3dd41b[_0x17653f(0x561)][_0x17653f(0x189)]===this[_0x17653f(0x4bb)]){const _0x2aa3d2=_0x3dd41b['params'];this[_0x17653f(0x3c6)](_0x2aa3d2['subUnitId'],_0x2aa3d2[_0x17653f(0x2c8)][0x0]);}})));}[_0x18d6ba(0x25b)](_0x82d82f){const _0x3b6d14=_0x18d6ba;var _0x474ad5,_0x194c61;const {memberID:_0x23db9a,selection:_0x5d37d9}=_0x82d82f['data'],{sheetName:_0x2937b5,range:_0x543a67}=_0x55b16b[_0x3b6d14(0x27f)](_0x5d37d9),_0x459f0={'name':(_0x194c61=(_0x474ad5=this[_0x3b6d14(0x241)][_0x3b6d14(0x2c1)](this[_0x3b6d14(0x4bb)],_0x23db9a))==null?void 0x0:_0x474ad5[_0x3b6d14(0x4a1)])!=null?_0x194c61:_0x3b6d14(0x47b),'range':this[_0x3b6d14(0x48f)](_0x2937b5,_0x543a67),'sheetID':_0x2937b5,'color':this['_colorAssignService'][_0x3b6d14(0x39f)](_0x23db9a),'selection':_0x5d37d9},_0x5e9b75=this['cursorInfo'];_0x5e9b75[_0x3b6d14(0x2a6)](_0x23db9a,_0x459f0),this[_0x3b6d14(0x500)][_0x3b6d14(0x1c5)](_0x5e9b75);}[_0x18d6ba(0x521)](_0x541443){const _0x1b5fac=_0x18d6ba,{memberID:_0x22602a}=_0x541443[_0x1b5fac(0x44f)],_0xea5731=this[_0x1b5fac(0x2f4)];_0xea5731[_0x1b5fac(0x466)](_0x22602a),this[_0x1b5fac(0x500)][_0x1b5fac(0x1c5)](_0xea5731);}[_0x18d6ba(0x48f)](_0x45611d,_0xbf308a){const _0x356146=_0x18d6ba;var _0x355a93,_0xb853ff;const _0x15b224=(_0xb853ff=(_0x355a93=this[_0x356146(0x318)][_0x356146(0x1d8)](this['unitID']))==null?void 0x0:_0x355a93[_0x356146(0x3f6)](_0x45611d))==null?void 0x0:_0xb853ff['getMergeData']();return(_0x15b224==null?void 0x0:_0x15b224[_0x356146(0x568)](_0x45310b=>_0x3aaa00[_0x356146(0x2f2)]['contains'](_0x45310b,_0xbf308a)))||_0xbf308a;}[_0x18d6ba(0x3c1)](){const _0xd4ae40=_0x18d6ba,_0x43f782=new _0x3aaa00[(_0xd4ae40(0x53b))](),_0x36aa32=_0x22d870(),_0x15a90c=()=>{const _0x5183a7=_0xd4ae40;_0x43f782['dispose']();const _0x5700f4=(_0x432330,_0x11f7af,_0xfccebe,_0x2b5326)=>{const _0x5493ae=_0x3d0e;let _0x59d934=[];switch(_0x432330['id']){case _0x459c9c[_0x5493ae(0x4ee)][_0x5493ae(0x2a0)]:{_0x59d934=_0x459c9c[_0x5493ae(0x1ad)](_0x432330,_0x2b5326);break;}case _0x459c9c[_0x5493ae(0x4ee)][_0x5493ae(0x56e)]:{_0x59d934=_0x459c9c[_0x5493ae(0x572)](_0x432330,_0x2b5326);break;}case _0x459c9c[_0x5493ae(0x4ee)]['InsertColCommandId']:{_0x59d934=_0x459c9c[_0x5493ae(0x2e5)](_0x432330,_0x2b5326);break;}case _0x459c9c[_0x5493ae(0x4ee)][_0x5493ae(0x44d)]:{_0x59d934=_0x459c9c[_0x5493ae(0x421)](_0x432330,_0x2b5326);break;}case _0x459c9c['EffectRefRangId'][_0x5493ae(0x540)]:{_0x59d934=_0x459c9c[_0x5493ae(0x1ef)](_0x432330,_0x2b5326);break;}case _0x459c9c[_0x5493ae(0x4ee)][_0x5493ae(0x2e6)]:{_0x59d934=_0x459c9c['handleInsertRow'](_0x432330,_0x2b5326);break;}case _0x459c9c['EffectRefRangId'][_0x5493ae(0x2fc)]:{_0x59d934=_0x459c9c[_0x5493ae(0x4a5)](_0x432330,_0x2b5326);break;}case _0x459c9c[_0x5493ae(0x4ee)][_0x5493ae(0x1df)]:{_0x59d934=_0x459c9c['handleIRemoveCol'](_0x432330,_0x2b5326);break;}case _0x459c9c[_0x5493ae(0x4ee)][_0x5493ae(0x250)]:{_0x59d934=_0x459c9c[_0x5493ae(0x376)](_0x432330,_0x2b5326);break;}}const _0x2d912b=_0x459c9c[_0x5493ae(0x502)](_0x59d934,_0x2b5326),_0x75f52c=this[_0x5493ae(0x2f4)][_0x5493ae(0x3e4)](_0x11f7af);if(_0x75f52c&&_0x2d912b){const _0x1110bb={..._0x75f52c,'range':_0x2d912b};this[_0x5493ae(0x2f4)][_0x5493ae(0x2a6)](_0x11f7af,_0x1110bb),_0x36aa32(()=>{const _0x4b370d=_0x5493ae,_0x2d8773=this[_0x4b370d(0x374)]['registerRefRange'](_0x2d912b,_0x32fc86=>(_0x2d8773[_0x4b370d(0x338)](),_0x5700f4(_0x32fc86,_0x11f7af,_0xfccebe,_0x2d912b)));_0x43f782[_0x4b370d(0x22f)](_0x2d8773);});}return{'redos':[],'undos':[]};};this[_0x5183a7(0x2f4)][_0x5183a7(0x387)]((_0x23382f,_0x12cd7d)=>{const _0x2791aa=_0x5183a7,{range:_0x2b394d,sheetID:_0x180b9f}=_0x23382f,_0x5a57fd=this['_refRangeService'][_0x2791aa(0x2d6)](_0x2b394d,_0x1d1470=>(_0x5a57fd['dispose'](),_0x5700f4(_0x1d1470,_0x12cd7d,_0x180b9f,_0x2b394d)));_0x43f782[_0x2791aa(0x22f)](_0x5a57fd);});};this[_0xd4ae40(0x43a)](_0x3aaa00[_0xd4ae40(0x1cd)](this['_cursorInfo$'][_0xd4ae40(0x559)](()=>{_0x15a90c();})));}['_toggleOnline'](){const _0x290f1f=_0x18d6ba;var _0x428c24,_0x1d9e5c;if(this[_0x290f1f(0x2a2)]=!0x0,((_0x428c24=this['_univerInstanceService'][_0x290f1f(0x33c)]())==null?void 0x0:_0x428c24['getUnitId']())!==this[_0x290f1f(0x4bb)])return;const _0x5c4692=(_0x1d9e5c=this[_0x290f1f(0x42c)][_0x290f1f(0x3e4)](_0x459c9c[_0x290f1f(0x28d)])[_0x290f1f(0x57d)]())==null?void 0x0:_0x1d9e5c[0x0],_0x3341a5=this[_0x290f1f(0x318)][_0x290f1f(0x585)](_0x3aaa00[_0x290f1f(0x434)][_0x290f1f(0x18a)])[_0x290f1f(0x2ac)]();_0x5c4692&&_0x3341a5&&this[_0x290f1f(0x3c6)](_0x3341a5[_0x290f1f(0x1fa)](),_0x5c4692);}[_0x18d6ba(0x420)](){const _0x2d23a8=_0x18d6ba;this[_0x2d23a8(0x2a2)]=!0x1;}};_0x388ee8=_0x496c3e([_0x398206(0x2,_0x3aaa00['Inject'](_0x3aaa00[_0x18d6ba(0x56f)])),_0x398206(0x3,_0x3aaa00[_0x18d6ba(0x1de)](_0x195451)),_0x398206(0x4,_0x3aaa00['Inject'](_0x107a5c)),_0x398206(0x5,_0x3aaa00['IUniverInstanceService']),_0x398206(0x6,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x398206(0x7,_0x3aaa00[_0x18d6ba(0x1de)](_0x459c9c[_0x18d6ba(0x356)]))],_0x388ee8);var _0x4573f1=Object[_0x18d6ba(0x272)],_0x276243=Object[_0x18d6ba(0x3fd)],_0x58dab7=(_0x5d9ad6,_0x1c35aa,_0xb51c39,_0x67ff7b)=>{const _0x4dceb2=_0x18d6ba;for(var _0x3b20cf=_0x67ff7b>0x1?void 0x0:_0x67ff7b?_0x276243(_0x1c35aa,_0xb51c39):_0x1c35aa,_0x43c0ef=_0x5d9ad6[_0x4dceb2(0x574)]-0x1,_0x59fcda;_0x43c0ef>=0x0;_0x43c0ef--)(_0x59fcda=_0x5d9ad6[_0x43c0ef])&&(_0x3b20cf=(_0x67ff7b?_0x59fcda(_0x1c35aa,_0xb51c39,_0x3b20cf):_0x59fcda(_0x3b20cf))||_0x3b20cf);return _0x67ff7b&&_0x3b20cf&&_0x4573f1(_0x1c35aa,_0xb51c39,_0x3b20cf),_0x3b20cf;},_0x5d27be=(_0x408ab3,_0x34ff7c)=>(_0x49fd83,_0x4afbf9)=>_0x34ff7c(_0x49fd83,_0x4afbf9,_0x408ab3);const _0x55f145=0x12c,_0x229bdf=0x64;let _0x1bab42=class extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(_0x1cbda7,_0x32258b,_0x485442,_0x503a7b,_0x540d19,_0x29a4e9,_0x42db11,_0x10daf0,_0x1d056f){const _0x45fd02=_0x18d6ba;super(),_0x2c46b8(this,_0x45fd02(0x2a2),!0x1),_0x2c46b8(this,'_init',!0x1),_0x2c46b8(this,_0x45fd02(0x500),new _0x5cbc6e[(_0x45fd02(0x1ec))](new Map())),_0x2c46b8(this,'cursorInfo$',this[_0x45fd02(0x500)]['asObservable']()),_0x2c46b8(this,_0x45fd02(0x541),new _0x5cbc6e['BehaviorSubject']([])),_0x2c46b8(this,_0x45fd02(0x395),this[_0x45fd02(0x541)][_0x45fd02(0x32f)](_0x5cbc6e[_0x45fd02(0x556)](_0x55f145))),_0x2c46b8(this,_0x45fd02(0x3c6),_0x58296f(_0x3851d7=>{const _0x3e262c=_0x45fd02,_0x4ef35a={'eventID':_0x4d4d9d[_0x3e262c(0x2ae)][_0x3e262c(0x33e)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x3e262c(0x1c6)](),'selection':_0x4c1645(_0x3851d7)}};this['_session']['send'](_0x4ef35a,this['unitID']);},_0x229bdf)),(this[_0x45fd02(0x4bb)]=_0x1cbda7,this[_0x45fd02(0x1a3)]=_0x32258b,this['_injector']=_0x485442,this[_0x45fd02(0x2a9)]=_0x503a7b,this[_0x45fd02(0x241)]=_0x540d19,this[_0x45fd02(0x232)]=_0x29a4e9,this[_0x45fd02(0x45d)]=_0x42db11,this[_0x45fd02(0x318)]=_0x10daf0,this[_0x45fd02(0x513)]=_0x1d056f);}get[_0x18d6ba(0x2f4)](){const _0x1a2e8b=_0x18d6ba;return this[_0x1a2e8b(0x500)]['getValue']();}get[_0x18d6ba(0x337)](){const _0x3e96b2=_0x18d6ba;return this[_0x3e96b2(0x541)][_0x3e96b2(0x453)]();}[_0x18d6ba(0x338)](){const _0x372dce=_0x18d6ba;super['dispose'](),this[_0x372dce(0x500)][_0x372dce(0x1c5)](new Map()),this[_0x372dce(0x500)]['complete'](),this[_0x372dce(0x541)][_0x372dce(0x1c5)]([]),this[_0x372dce(0x541)][_0x372dce(0x581)]();}[_0x18d6ba(0x367)](){const _0x5c0e4a=_0x18d6ba;this['_init']||(this['_init']=!0x0,this[_0x5c0e4a(0x1a3)][_0x5c0e4a(0x462)]['pipe'](_0x5cbc6e[_0x5c0e4a(0x40b)](this['dispose$']))[_0x5c0e4a(0x559)](_0x47f731=>{const _0x1e9776=_0x5c0e4a;_0x47f731===_0x2cd85f[_0x1e9776(0x219)]?this['_toggleOnline']():this[_0x1e9776(0x420)]();}),this['_session']['event$'][_0x5c0e4a(0x32f)](_0x5cbc6e['takeUntil'](this['dispose$']))[_0x5c0e4a(0x559)](_0x20141b=>{const _0x4e4e8a=_0x5c0e4a,_0x2ff413=_0x20141b[_0x4e4e8a(0x539)];_0x2ff413===_0x4d4d9d[_0x4e4e8a(0x2ae)][_0x4e4e8a(0x33e)]&&this[_0x4e4e8a(0x25b)](_0x20141b),_0x2ff413===_0x4d4d9d[_0x4e4e8a(0x2ae)]['USERS_LEAVE']&&this[_0x4e4e8a(0x521)](_0x20141b);}),this[_0x5c0e4a(0x43a)](this['_commandService'][_0x5c0e4a(0x1c1)](_0x458fcb=>{const _0x48f25d=_0x5c0e4a,_0x296b06=_0x458fcb[_0x48f25d(0x561)];_0x296b06!=null&&this[_0x48f25d(0x2a2)]&&_0x458fcb['id']===_0x593e90[_0x48f25d(0x371)]['id']&&_0x296b06['unitId']===this[_0x48f25d(0x4bb)]&&_0x296b06[_0x48f25d(0x4f2)]===!0x1&&this[_0x48f25d(0x3c6)](_0x296b06[_0x48f25d(0x388)]);})),this[_0x5c0e4a(0x232)]['collabCursorState$'][_0x5c0e4a(0x32f)](_0x5cbc6e[_0x5c0e4a(0x40b)](this[_0x5c0e4a(0x505)]))['subscribe'](_0xad0720=>{const _0x27593b=_0x5c0e4a;if((_0xad0720==null?void 0x0:_0xad0720[_0x27593b(0x4bb)])!==this[_0x27593b(0x4bb)])return;const _0x3f4148={'eventID':_0x4d4d9d['CollaborationEvent']['UPDATE_CURSOR'],'data':_0xad0720};this['_onCursorUpdate'](_0x3f4148);}),this[_0x5c0e4a(0x43a)](this[_0x5c0e4a(0x513)][_0x5c0e4a(0x1c1)](_0xcb7408=>{const _0x26eb87=_0x5c0e4a;if(_0xcb7408[_0x26eb87(0x561)]==null)return;const _0x71f5a1=_0xcb7408[_0x26eb87(0x561)];if(_0xcb7408['id']!==_0x593e90['RichTextEditingMutation']['id']||_0x71f5a1[_0x26eb87(0x189)]!==this[_0x26eb87(0x4bb)])return;const _0x49cbb1={'id':'doc.mutation.rich-text-editing','params':_0x71f5a1},_0x5c2cac=this['cursorInfo'];for(const [_0x148977,_0x379b2c]of _0x5c2cac){const _0x65411f={'id':_0x26eb87(0x558),'params':{'unitId':this[_0x26eb87(0x4bb)],'actions':null,'textRanges':_0x379b2c[_0x26eb87(0x388)]}},_0x2bac39=this[_0x26eb87(0x45d)][_0x26eb87(0x1db)](_0x49cbb1,_0x65411f,!0x1);if(_0x4d4d9d['isTransformMutationFailure'](_0x2bac39))throw _0x2bac39[_0x26eb87(0x4ae)];_0x5c2cac[_0x26eb87(0x2a6)](_0x148977,{..._0x379b2c,'ranges':_0x2bac39[_0x26eb87(0x1d2)][_0x26eb87(0x561)][_0x26eb87(0x2f5)]});}queueMicrotask(()=>{const _0x178c07=_0x26eb87;this[_0x178c07(0x500)]['next'](_0x5c2cac);});})));}[_0x18d6ba(0x25b)](_0x1d4439){const _0x3f79ec=_0x18d6ba;var _0x232774,_0x2ad55e;const {memberID:_0x4bb67d,selection:_0x3f338e}=_0x1d4439[_0x3f79ec(0x44f)],_0x56cb9c=_0x40c874(_0x3f338e),_0x281559=(_0x2ad55e=(_0x232774=this[_0x3f79ec(0x241)][_0x3f79ec(0x2c1)](this[_0x3f79ec(0x4bb)],_0x4bb67d))==null?void 0x0:_0x232774['name'])!=null?_0x2ad55e:'Unknown\x20user',_0x5f1dc7={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x4bb67d),'name':_0x281559,'ranges':_0x56cb9c},_0x466f39=this[_0x3f79ec(0x2f4)];_0x466f39['set'](_0x4bb67d,_0x5f1dc7),this[_0x3f79ec(0x500)]['next'](_0x466f39);}[_0x18d6ba(0x521)](_0x4db648){const _0x8ca940=_0x18d6ba,{memberID:_0x24f27e}=_0x4db648[_0x8ca940(0x44f)],_0x98493=this[_0x8ca940(0x2f4)];_0x98493['delete'](_0x24f27e),this[_0x8ca940(0x500)][_0x8ca940(0x1c5)](_0x98493);}[_0x18d6ba(0x4de)](){const _0x76dc81=_0x18d6ba;var _0x3756e5;if(this[_0x76dc81(0x2a2)]=!0x0,((_0x3756e5=this[_0x76dc81(0x318)]['getFocusedUnit']())==null?void 0x0:_0x3756e5['getUnitId']())!==this[_0x76dc81(0x4bb)])return;const _0xd86cd=this[_0x76dc81(0x42c)][_0x76dc81(0x3e4)](_0x593e90[_0x76dc81(0x4fa)])['getDocRanges'](),_0x220da5=_0xd86cd==null?void 0x0:_0xd86cd[_0x76dc81(0x343)](_0x593e90[_0x76dc81(0x3b5)]);Array[_0x76dc81(0x342)](_0x220da5)&&_0x220da5[_0x76dc81(0x574)]>0x0&&this['_updateLocalCursor'](_0x220da5);}['_toggleOffline'](){const _0x39b734=_0x18d6ba;this[_0x39b734(0x2a2)]=!0x1;}};_0x1bab42=_0x58dab7([_0x5d27be(0x2,_0x3aaa00['Inject'](_0x3aaa00[_0x18d6ba(0x56f)])),_0x5d27be(0x3,_0x3aaa00['Inject'](_0x195451)),_0x5d27be(0x4,_0x3aaa00[_0x18d6ba(0x1de)](_0x107a5c)),_0x5d27be(0x5,_0x3aaa00[_0x18d6ba(0x1de)](_0x301e57)),_0x5d27be(0x6,_0x4d4d9d['ITransformService']),_0x5d27be(0x7,_0x3aaa00[_0x18d6ba(0x2d5)]),_0x5d27be(0x8,_0x3aaa00[_0x18d6ba(0x2d1)])],_0x1bab42);var _0xe595eb=Object[_0x18d6ba(0x272)],_0x15f005=Object[_0x18d6ba(0x3fd)],_0x27cf4f=(_0x18cd70,_0x159ae6,_0x2cda89,_0xd18bbd)=>{for(var _0x2049bf=_0xd18bbd>0x1?void 0x0:_0xd18bbd?_0x15f005(_0x159ae6,_0x2cda89):_0x159ae6,_0xe4b84d=_0x18cd70['length']-0x1,_0x44849b;_0xe4b84d>=0x0;_0xe4b84d--)(_0x44849b=_0x18cd70[_0xe4b84d])&&(_0x2049bf=(_0xd18bbd?_0x44849b(_0x159ae6,_0x2cda89,_0x2049bf):_0x44849b(_0x2049bf))||_0x2049bf);return _0xd18bbd&&_0x2049bf&&_0xe595eb(_0x159ae6,_0x2cda89,_0x2049bf),_0x2049bf;},_0x5ed6f1=(_0x280488,_0x5a5499)=>(_0x202eb9,_0x554d68)=>_0x5a5499(_0x202eb9,_0x554d68,_0x280488);let _0x1fa692=class extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(_0x1e6a83,_0x2d9384,_0x3d9b59){const _0x32d051=_0x18d6ba;super(),_0x2c46b8(this,_0x32d051(0x56b),new Map()),_0x2c46b8(this,_0x32d051(0x309),new _0x5cbc6e[(_0x32d051(0x328))]()),(this[_0x32d051(0x318)]=_0x1e6a83,this[_0x32d051(0x42c)]=_0x2d9384,this[_0x32d051(0x48b)]=_0x3d9b59,this[_0x32d051(0x286)]());}['dispose'](){const _0x905f29=_0x18d6ba;super[_0x905f29(0x338)](),this[_0x905f29(0x309)][_0x905f29(0x581)](),this[_0x905f29(0x56b)][_0x905f29(0x387)](_0x27748b=>_0x27748b[_0x905f29(0x338)]());}[_0x18d6ba(0x21e)](_0x516f2b){const _0x9266f1=_0x18d6ba;return this[_0x9266f1(0x56b)][_0x9266f1(0x443)](_0x516f2b)?this['_entities']['get'](_0x516f2b)[_0x9266f1(0x4ef)]:this[_0x9266f1(0x309)][_0x9266f1(0x32f)](_0x5cbc6e[_0x9266f1(0x46d)](_0x227977=>_0x227977['unitID']===_0x516f2b),_0x5cbc6e['switchMap'](_0x28ec5f=>_0x28ec5f['cursorInfo$']));}[_0x18d6ba(0x286)](){const _0x1ceff2=_0x18d6ba;this[_0x1ceff2(0x318)]['getTypeOfUnitAdded$'](_0x3aaa00[_0x1ceff2(0x434)][_0x1ceff2(0x18a)])[_0x1ceff2(0x32f)](_0x5cbc6e['takeUntil'](this[_0x1ceff2(0x505)]))['subscribe'](async _0x2b6f52=>{const _0x22cdd8=_0x1ceff2,_0x5141d4=_0x2b6f52[_0x22cdd8(0x4b6)](),_0xb928e7=await this['_startSheetCollabCursor'](_0x5141d4);this[_0x22cdd8(0x309)]['next'](_0xb928e7),this[_0x22cdd8(0x56b)]['set'](_0x5141d4,_0xb928e7);}),this[_0x1ceff2(0x318)]['getTypeOfUnitAdded$'](_0x3aaa00['UniverInstanceType']['UNIVER_DOC'])['pipe'](_0x5cbc6e[_0x1ceff2(0x40b)](this[_0x1ceff2(0x505)]))[_0x1ceff2(0x32f)](_0x5cbc6e[_0x1ceff2(0x46d)](_0x2358e7=>!_0x2358e7[_0x1ceff2(0x4b6)]()[_0x1ceff2(0x352)]('__')))[_0x1ceff2(0x559)](async _0x1cd019=>{const _0x461dd1=_0x1ceff2,_0x4ddf16=_0x1cd019[_0x461dd1(0x4b6)](),_0x4fe3d6=await this[_0x461dd1(0x45a)](_0x4ddf16);this[_0x461dd1(0x309)]['next'](_0x4fe3d6),this[_0x461dd1(0x56b)][_0x461dd1(0x2a6)](_0x4ddf16,_0x4fe3d6);}),_0x5cbc6e['merge'](this[_0x1ceff2(0x318)][_0x1ceff2(0x551)](_0x3aaa00['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0x1ceff2(0x551)](_0x3aaa00[_0x1ceff2(0x434)][_0x1ceff2(0x18a)]))[_0x1ceff2(0x32f)](_0x5cbc6e['takeUntil'](this['dispose$']))['subscribe'](_0x1529b0=>{const _0x3ba67c=_0x1ceff2,_0x1a9638=_0x1529b0[_0x3ba67c(0x4b6)](),_0x88fa57=this[_0x3ba67c(0x56b)][_0x3ba67c(0x3e4)](_0x1a9638);_0x88fa57&&(_0x88fa57[_0x3ba67c(0x338)](),this[_0x3ba67c(0x56b)]['delete'](_0x1a9638));});}async['_startSheetCollabCursor'](_0x2f88eb){const _0x59018b=_0x18d6ba,_0x362806=await this[_0x59018b(0x48b)][_0x59018b(0x3a3)](_0x2f88eb),_0x120373=this['_injector'][_0x59018b(0x491)](_0x388ee8,_0x2f88eb,_0x362806);return _0x120373[_0x59018b(0x367)](),_0x120373;}async[_0x18d6ba(0x45a)](_0x1b89c2){const _0x186769=_0x18d6ba,_0x3a82e3=await this['_collabSessionService'][_0x186769(0x3a3)](_0x1b89c2),_0x168142=this['_injector']['createInstance'](_0x1bab42,_0x1b89c2,_0x3a82e3);return _0x168142[_0x186769(0x367)](),_0x168142;}};_0x1fa692=_0x27cf4f([_0x3aaa00[_0x18d6ba(0x279)](_0x3aaa00[_0x18d6ba(0x4ff)][_0x18d6ba(0x1d5)],_0x1fa692),_0x5ed6f1(0x0,_0x3aaa00[_0x18d6ba(0x2d5)]),_0x5ed6f1(0x1,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x56f)])),_0x5ed6f1(0x2,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0[_0x18d6ba(0x22b)]))],_0x1fa692);const _0x3ba8ec=0x14,_0x5903b8=0xc8,_0x509079=0x4,_0x202daa=0x5;function _0x1b3a91(_0x966163,_0x2c219a){const _0x5d2d3b=_0x18d6ba;let {radius:_0x37b477,width:_0x4fbb70,height:_0x1a2e0e}=_0x2c219a;_0x37b477=_0x37b477!=null?_0x37b477:0x0,_0x4fbb70=_0x4fbb70!=null?_0x4fbb70:0x1e,_0x1a2e0e=_0x1a2e0e!=null?_0x1a2e0e:0x1e;let _0x2de638=0x0,_0x136ebb=0x0,_0x11deb2=0x0;_0x2de638=_0x136ebb=_0x11deb2=Math[_0x5d2d3b(0x51d)](_0x37b477,_0x4fbb70/0x2,_0x1a2e0e/0x2),_0x966163[_0x5d2d3b(0x401)](),_0x966163['moveTo'](_0x2de638,0x0),_0x966163[_0x5d2d3b(0x288)](_0x4fbb70-_0x136ebb,0x0),_0x966163[_0x5d2d3b(0x2c4)](_0x4fbb70-_0x136ebb,_0x136ebb,_0x136ebb,Math['PI']*0x3/0x2,0x0,!0x1),_0x966163[_0x5d2d3b(0x288)](_0x4fbb70,_0x1a2e0e-_0x11deb2),_0x966163[_0x5d2d3b(0x2c4)](_0x4fbb70-_0x11deb2,_0x1a2e0e-_0x11deb2,_0x11deb2,0x0,Math['PI']/0x2,!0x1),_0x966163[_0x5d2d3b(0x288)](0x0,_0x1a2e0e),_0x966163[_0x5d2d3b(0x288)](0x0,_0x2de638),_0x966163[_0x5d2d3b(0x2c4)](_0x2de638,_0x2de638,_0x2de638,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x966163[_0x5d2d3b(0x38d)](),_0x2c219a[_0x5d2d3b(0x1a0)]&&(_0x966163['save'](),_0x966163['fillStyle']=_0x2c219a[_0x5d2d3b(0x1a0)],_0x2c219a[_0x5d2d3b(0x281)]===_0x5d2d3b(0x3da)?_0x966163['fill'](_0x5d2d3b(0x3da)):_0x966163[_0x5d2d3b(0x1a0)](),_0x966163[_0x5d2d3b(0x44c)]());}class _0x609363 extends _0x3b10b4[_0x18d6ba(0x37d)]{constructor(_0x221ecb,_0x2b9b0b){const _0x400f55=_0x18d6ba;super(_0x221ecb,_0x2b9b0b),_0x2c46b8(this,_0x400f55(0x3ee)),_0x2c46b8(this,'text'),(this[_0x400f55(0x3ee)]=_0x2b9b0b==null?void 0x0:_0x2b9b0b['color'],this[_0x400f55(0x1ac)]=_0x2b9b0b==null?void 0x0:_0x2b9b0b[_0x400f55(0x1ac)]);}static['drawWith'](_0x420d6a,_0x48907d){const _0x13ff06=_0x18d6ba,{text:_0x58d0e9,color:_0xa043f9}=_0x48907d;_0x420d6a[_0x13ff06(0x271)](),_0x420d6a['font']=_0x13ff06(0x481);const _0x504d86=_0x420d6a[_0x13ff06(0x35a)](_0x58d0e9)[_0x13ff06(0x460)],_0x47a0d2=Math['min'](_0x504d86+0x2*_0x509079,_0x5903b8);_0x1b3a91(_0x420d6a,{'height':_0x3ba8ec,'radius':0x4,'width':_0x47a0d2,'fill':_0xa043f9,'evented':!0x1}),_0x420d6a[_0x13ff06(0x308)]=_0x13ff06(0x228);const _0x20e8fb=_0x509079,_0x222623=_0x3ba8ec-_0x202daa,_0x31ab31=_0x5903b8-0x2*_0x509079;if(_0x504d86>_0x31ab31){let _0x34bc58='',_0x4e651d=0x0;for(const _0x250538 of _0x58d0e9){const _0x4ba0e8=_0x420d6a[_0x13ff06(0x35a)](_0x250538)[_0x13ff06(0x460)];if(_0x4e651d+_0x4ba0e8<=_0x31ab31-_0x420d6a[_0x13ff06(0x35a)](_0x13ff06(0x291))[_0x13ff06(0x460)])_0x34bc58+=_0x250538,_0x4e651d+=_0x4ba0e8;else{_0x34bc58+=_0x13ff06(0x291);break;}}_0x420d6a[_0x13ff06(0x4b3)](_0x34bc58,_0x20e8fb,_0x222623);}else _0x420d6a[_0x13ff06(0x4b3)](_0x58d0e9,_0x20e8fb,_0x222623);_0x420d6a[_0x13ff06(0x44c)]();}[_0x18d6ba(0x4c6)](_0x4edddf){const _0xca3011=_0x18d6ba;_0x609363[_0xca3011(0x3c7)](_0x4edddf,this);}}const _0x268a41=0x1,_0x71257=1.5;class _0xa0f57e extends _0x3b10b4[_0x18d6ba(0x37d)]{constructor(_0x3aa424,_0x502e46){const _0x43b591=_0x18d6ba;super(_0x3aa424,_0x502e46),_0x2c46b8(this,'_color'),_0x2c46b8(this,_0x43b591(0x26c),!0x1),_0x2c46b8(this,_0x43b591(0x216)),_0x2c46b8(this,_0x43b591(0x221),''),_0x2c46b8(this,_0x43b591(0x18f),'top'),_0x2c46b8(this,'_backgroundColor'),(_0x502e46&&this[_0x43b591(0x436)](_0x502e46),this[_0x43b591(0x19e)][_0x43b591(0x209)](()=>this[_0x43b591(0x436)]({'hovered':!0x0})),this[_0x43b591(0x3d6)][_0x43b591(0x209)](()=>this[_0x43b591(0x436)]({'hovered':!0x1})));}[_0x18d6ba(0x436)](_0x1b4717){const _0x5f5036=_0x18d6ba;var _0x4ea7c5,_0x119a17,_0x3d18f1,_0xaa67d0,_0x38ae60,_0x3af28b;this[_0x5f5036(0x488)]=(_0x4ea7c5=_0x1b4717[_0x5f5036(0x3ee)])!=null?_0x4ea7c5:this['_color'],this[_0x5f5036(0x26c)]=(_0x119a17=_0x1b4717[_0x5f5036(0x57f)])!=null?_0x119a17:this[_0x5f5036(0x26c)],this[_0x5f5036(0x216)]=(_0x3d18f1=_0x1b4717['range'])!=null?_0x3d18f1:this[_0x5f5036(0x216)],this[_0x5f5036(0x221)]=(_0xaa67d0=_0x1b4717[_0x5f5036(0x4a1)])!=null?_0xaa67d0:this[_0x5f5036(0x221)],this[_0x5f5036(0x18f)]=(_0x38ae60=_0x1b4717[_0x5f5036(0x48c)])!=null?_0x38ae60:this[_0x5f5036(0x18f)],this[_0x5f5036(0x483)]=(_0x3af28b=_0x1b4717[_0x5f5036(0x47e)])!=null?_0x3af28b:this[_0x5f5036(0x483)],this[_0x5f5036(0x410)]({'width':_0x1b4717[_0x5f5036(0x460)],'height':_0x1b4717['height']});}[_0x18d6ba(0x29b)](_0x11444d){const _0x5c4c33=_0x18d6ba,{row:_0xcf856c,column:_0x38c1b4}=_0x11444d;if(_0xcf856c>=this[_0x5c4c33(0x216)][_0x5c4c33(0x1bc)]&&_0xcf856c<=this[_0x5c4c33(0x216)]['endRow']&&_0x38c1b4>=this['_range'][_0x5c4c33(0x474)]&&_0x38c1b4<=this[_0x5c4c33(0x216)][_0x5c4c33(0x586)]){this[_0x5c4c33(0x436)]({'hovered':!0x0});return;}this[_0x5c4c33(0x436)]({'hovered':!0x1});}[_0x18d6ba(0x4e3)](_0x546005){return!0x1;}[_0x18d6ba(0x4c6)](_0x4cb981){const _0x168b73=_0x18d6ba;_0x3b10b4[_0x168b73(0x3cd)][_0x168b73(0x3c7)](_0x4cb981,{'width':this[_0x168b73(0x460)],'height':this[_0x168b73(0x4c4)],'strokeWidth':_0x71257,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x168b73(0x483)]}),this[_0x168b73(0x26c)]&&(_0x4cb981[_0x168b73(0x271)](),_0x4cb981[_0x168b73(0x1a2)](0x1,0x0,0x0,0x1,this[_0x168b73(0x460)],this['_labelPosition']===_0x168b73(0x519)?0x0:-_0x3ba8ec),_0x609363[_0x168b73(0x3c7)](_0x4cb981,{'text':this[_0x168b73(0x221)],'color':this[_0x168b73(0x488)]}),_0x4cb981[_0x168b73(0x44c)]());}}var _0x45f256=Object[_0x18d6ba(0x272)],_0x3ad4ca=Object[_0x18d6ba(0x3fd)],_0x22cb99=(_0x36b81b,_0x4699ae,_0x3213b2,_0xa5e3c6)=>{const _0x5259c1=_0x18d6ba;for(var _0x5e2722=_0xa5e3c6>0x1?void 0x0:_0xa5e3c6?_0x3ad4ca(_0x4699ae,_0x3213b2):_0x4699ae,_0x1af556=_0x36b81b[_0x5259c1(0x574)]-0x1,_0x5409eb;_0x1af556>=0x0;_0x1af556--)(_0x5409eb=_0x36b81b[_0x1af556])&&(_0x5e2722=(_0xa5e3c6?_0x5409eb(_0x4699ae,_0x3213b2,_0x5e2722):_0x5409eb(_0x5e2722))||_0x5e2722);return _0xa5e3c6&&_0x5e2722&&_0x45f256(_0x4699ae,_0x3213b2,_0x5e2722),_0x5e2722;},_0x4f4b4b=(_0x278177,_0x3b97b5)=>(_0x3551ed,_0x4dc3f3)=>_0x3b97b5(_0x3551ed,_0x4dc3f3,_0x278177);const _0x4f0a15=0x1389;let _0x20a294=class extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(_0x569c84,_0x421dd0,_0x98dd78,_0x45826a){const _0x55cee3=_0x18d6ba;super(),_0x2c46b8(this,_0x55cee3(0x577),new Set()),_0x2c46b8(this,_0x55cee3(0x30e),null),(this[_0x55cee3(0x430)]=_0x569c84,this['_sheetSkeletonManagerService']=_0x421dd0,this[_0x55cee3(0x527)]=_0x98dd78,this[_0x55cee3(0x313)]=_0x45826a,this[_0x55cee3(0x286)]());}[_0x18d6ba(0x286)](){const _0x492f6b=_0x18d6ba;this[_0x492f6b(0x470)][_0x492f6b(0x459)]['pipe'](_0x267050[_0x492f6b(0x40b)](this[_0x492f6b(0x505)]),_0x267050['switchMap'](_0x3ec787=>{const _0x55bd30=_0x492f6b;if(_0x3ec787){const _0x5b3abf=_0x3ec787[_0x55bd30(0x2dc)];return _0x5cbc6e[_0x55bd30(0x193)](this[_0x55bd30(0x527)]['getCollabCursors$'](this[_0x55bd30(0x430)][_0x55bd30(0x189)]),this[_0x55bd30(0x313)][_0x55bd30(0x3bc)])[_0x55bd30(0x32f)](_0x267050[_0x55bd30(0x343)](([_0x2f12ea,_0x35d791])=>{const _0x5037ef=_0x55bd30,_0x23e2cd=new Map();return _0x2f12ea[_0x5037ef(0x387)]((_0x263aee,_0x4d6042)=>{const _0x448048=_0x5037ef;if(_0x263aee[_0x448048(0x52d)]===_0x5b3abf){const _0x3482c2={..._0x263aee};_0x3482c2[_0x448048(0x3ee)]=_0x35d791[_0x263aee[_0x448048(0x3ee)]],_0x23e2cd[_0x448048(0x2a6)](_0x4d6042,_0x3482c2);}}),{'skeleton':_0x3ec787,'cursors':_0x23e2cd};}));}return _0x5cbc6e['of']({'skeleton':null,'cursors':new Map()});}))[_0x492f6b(0x559)](({skeleton:_0x3d5959,cursors:_0x5bedf9})=>{const _0x577a96=_0x492f6b;this[_0x577a96(0x1d7)](),_0x3d5959&&this['_updateCollabCursors'](_0x3d5959,_0x5bedf9);}),this[_0x492f6b(0x470)][_0x492f6b(0x459)][_0x492f6b(0x559)](_0x83bc04=>{const _0x1e8c6e=_0x492f6b;if(_0x83bc04==null)return;const {skeleton:_0x3a38a9}=_0x83bc04,{scene:_0x154187}=this[_0x1e8c6e(0x430)];_0x154187['onPointerMove$'][_0x1e8c6e(0x209)](_0x58296f(_0x241de5=>{const _0x68282b=_0x1e8c6e;var _0x36f4f7,_0x5bcb97;const {offsetX:_0x592f41,offsetY:_0x3f6016}=_0x241de5,{x:_0x21bac5,y:_0x5d31cd}=_0x154187[_0x68282b(0x226)](_0x3b10b4['Vector2']['FromArray']([_0x592f41,_0x3f6016])),{scaleX:_0x2971d4,scaleY:_0x13d3f2}=_0x154187[_0x68282b(0x1c9)](),_0x178ca4=_0x154187[_0x68282b(0x3a7)](_0xf60f4c['VIEWPORT_KEY'][_0x68282b(0x450)]),_0x2d8467=_0x154187[_0x68282b(0x50e)](_0x3b10b4[_0x68282b(0x36d)][_0x68282b(0x3ce)]([_0x21bac5,_0x5d31cd]),_0x178ca4),_0x3861b1=_0x3a38a9[_0x68282b(0x2cd)](_0x592f41,_0x3f6016,_0x2971d4,_0x13d3f2,_0x2d8467);((_0x36f4f7=this[_0x68282b(0x30e)])==null?void 0x0:_0x36f4f7[_0x68282b(0x48e)])===_0x3861b1[_0x68282b(0x48e)]&&((_0x5bcb97=this[_0x68282b(0x30e)])==null?void 0x0:_0x5bcb97[_0x68282b(0x3a5)])===_0x3861b1[_0x68282b(0x3a5)]||this[_0x68282b(0x577)][_0x68282b(0x387)](_0x579bcc=>{_0x579bcc['onMouseMove'](_0x3861b1);});},0x64));});}['_updateCollabCursors'](_0x15337b,_0x3c7b15){const _0x3d5e09=_0x18d6ba;var _0x3e30b4;const _0x31122b=(_0x3e30b4=this[_0x3d5e09(0x470)][_0x3d5e09(0x4f9)]())==null?void 0x0:_0x3e30b4[_0x3d5e09(0x407)];if(!_0x31122b)return;const _0x529d5e=this[_0x3d5e09(0x3b8)]();if(!_0x529d5e)return;this[_0x3d5e09(0x577)][_0x3d5e09(0x387)](_0x298d08=>{const _0x231155=_0x3d5e09;_0x298d08[_0x231155(0x325)]();});const {scene:_0x1ec809}=_0x529d5e,_0x5973ea=_0xd9d5af(Array[_0x3d5e09(0x44e)](_0x3c7b15[_0x3d5e09(0x2af)]()))[_0x3d5e09(0x343)](_0x549b97=>{const _0x5bccdf=_0x3d5e09,{color:_0x5d8aeb,range:_0x3f6a72,name:_0x2dcfff,selection:_0x32d77d,sheetID:_0x55ec15}=_0x549b97,{startColumn:_0x5601f5,startRow:_0x1aff34,endColumn:_0x51717e,endRow:_0x139de5}=_0x3f6a72,_0x39acbd=_0xf60f4c[_0x5bccdf(0x404)](_0x1aff34,_0x5601f5,_0x1ec809,_0x31122b),_0x3e48f2=_0xf60f4c[_0x5bccdf(0x404)](_0x139de5,_0x51717e,_0x1ec809,_0x31122b),{columnHeaderHeightAndMarginTop:_0x599993}=_0x31122b,{startX:_0x27f09c,startY:_0x26347d}=_0x39acbd,{endX:_0x44f260,endY:_0x294e7c}=_0x3e48f2,_0x44b983=_0x44f260-_0x27f09c,_0x559661=_0x294e7c-_0x26347d,_0x4b9c40={'labelPosition':_0x26347d-_0x599993>=_0x3ba8ec?_0x5bccdf(0x321):_0x5bccdf(0x519),'sheetID':_0x55ec15,'range':_0x3f6a72,'color':_0x5d8aeb,'name':_0x2dcfff,'selection':_0x32d77d,'left':_0x27f09c,'top':_0x26347d,'width':_0x44b983,'height':_0x559661,'evented':!0x1,'zIndex':_0x4f0a15};return new _0xa0f57e(_0x2dcfff,_0x4b9c40);});_0x1ec809[_0x3d5e09(0x494)](_0x5973ea,_0x268a41),this[_0x3d5e09(0x577)]=new Set(_0x5973ea);}[_0x18d6ba(0x1d7)](){const _0x564c18=_0x18d6ba;var _0x13aeb1;(_0x13aeb1=this[_0x564c18(0x577)])==null||_0x13aeb1[_0x564c18(0x387)](_0x4a36e5=>_0x4a36e5['dispose']());}[_0x18d6ba(0x3b8)](){const _0x92dde5=_0x18d6ba;return _0xf60f4c[_0x92dde5(0x2eb)](this['_context'][_0x92dde5(0x1b2)],this[_0x92dde5(0x430)]);}};_0x20a294=_0x22cb99([_0x4f4b4b(0x1,_0x3aaa00['Inject'](_0xf60f4c[_0x18d6ba(0x1b9)])),_0x4f4b4b(0x2,_0x3aaa00[_0x18d6ba(0x1de)](_0x1fa692)),_0x4f4b4b(0x3,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00['ThemeService']))],_0x20a294);function _0xd9d5af(_0x44ccff){const _0x218aa6=_0x18d6ba,_0x279259=new Map();return _0x44ccff['forEach'](_0x3b23ff=>{const _0x1f55b9=_0x3d0e;if(_0x279259[_0x1f55b9(0x443)](_0x3b23ff[_0x1f55b9(0x3f5)])){const _0xff9bb=_0x279259[_0x1f55b9(0x3e4)](_0x3b23ff['selection']);_0xff9bb[_0x1f55b9(0x4a1)]+=',\x20'+_0x3b23ff['name'];}else _0x279259['set'](_0x3b23ff[_0x1f55b9(0x3f5)],_0x3b23ff);}),Array[_0x218aa6(0x44e)](_0x279259['values']());}var _0x49b39b=function(){const _0x2c62a5=_0x18d6ba;return _0x49b39b=Object[_0x2c62a5(0x2df)]||function(_0x45cc6f){const _0x46d348=_0x2c62a5;for(var _0x47b331,_0x19190a=0x1,_0x3660e0=arguments[_0x46d348(0x574)];_0x19190a<_0x3660e0;_0x19190a++){_0x47b331=arguments[_0x19190a];for(var _0x3aa2ea in _0x47b331)Object['prototype'][_0x46d348(0x3c3)]['call'](_0x47b331,_0x3aa2ea)&&(_0x45cc6f[_0x3aa2ea]=_0x47b331[_0x3aa2ea]);}return _0x45cc6f;},_0x49b39b['apply'](this,arguments);},_0x168ebb=function(_0x418c52,_0x9356f2){const _0x4a502a=_0x18d6ba;var _0x46fc32={};for(var _0x93e3a in _0x418c52)Object[_0x4a502a(0x58b)]['hasOwnProperty'][_0x4a502a(0x2f7)](_0x418c52,_0x93e3a)&&_0x9356f2['indexOf'](_0x93e3a)<0x0&&(_0x46fc32[_0x93e3a]=_0x418c52[_0x93e3a]);if(_0x418c52!=null&&typeof Object['getOwnPropertySymbols']==_0x4a502a(0x1b6)){for(var _0x8a8164=0x0,_0x93e3a=Object[_0x4a502a(0x284)](_0x418c52);_0x8a8164<_0x93e3a[_0x4a502a(0x574)];_0x8a8164++)_0x9356f2[_0x4a502a(0x251)](_0x93e3a[_0x8a8164])<0x0&&Object[_0x4a502a(0x58b)][_0x4a502a(0x469)][_0x4a502a(0x2f7)](_0x418c52,_0x93e3a[_0x8a8164])&&(_0x46fc32[_0x93e3a[_0x8a8164]]=_0x418c52[_0x93e3a[_0x8a8164]]);}return _0x46fc32;},_0x29b411=_0x349b95[_0x18d6ba(0x257)](function(_0xdd8128,_0x108bde){const _0x1504c3=_0x18d6ba;var _0x246ec2=_0xdd8128[_0x1504c3(0x2d9)],_0x1eb697=_0xdd8128['id'],_0x2932bd=_0xdd8128['className'],_0x3c1c16=_0xdd8128[_0x1504c3(0x2b7)],_0x55a496=_0x168ebb(_0xdd8128,[_0x1504c3(0x2d9),'id','className',_0x1504c3(0x2b7)]),_0x5f4405=_0x1504c3(0x245)[_0x1504c3(0x515)](_0x1eb697,'\x20')['concat'](_0x2932bd||'')['trim'](),_0x57bb9d=_0x349b95[_0x1504c3(0x4bc)]('_'['concat'](_0x94eb3d()));return _0x57f963(_0x246ec2,''['concat'](_0x1eb697),{'defIds':_0x246ec2[_0x1504c3(0x2f9)],'idSuffix':_0x57bb9d['current']},_0x49b39b({'ref':_0x108bde,'className':_0x5f4405},_0x55a496),_0x3c1c16);});function _0x57f963(_0x472f04,_0x5416e0,_0x922b1c,_0x3c6e2a,_0x5ca0d2){const _0x110463=_0x18d6ba;return _0x349b95[_0x110463(0x4e0)](_0x472f04[_0x110463(0x448)],_0x49b39b(_0x49b39b({'key':_0x5416e0},_0x4cab26(_0x472f04,_0x922b1c,_0x5ca0d2)),_0x3c6e2a),(_0x1902ff(_0x472f04,_0x922b1c)[_0x110463(0x211)]||[])[_0x110463(0x343)](function(_0xad16c1,_0xc8b8b4){const _0x560659=_0x110463;return _0x57f963(_0xad16c1,''[_0x560659(0x515)](_0x5416e0,'-')[_0x560659(0x515)](_0x472f04['tag'],'-')[_0x560659(0x515)](_0xc8b8b4),_0x922b1c,void 0x0,_0x5ca0d2);}));}function _0x4cab26(_0x589fad,_0x210f15,_0x1734a1){const _0x2f7caa=_0x18d6ba;var _0x52623d=_0x49b39b({},_0x589fad[_0x2f7caa(0x354)]);_0x1734a1!=null&&_0x1734a1[_0x2f7caa(0x373)]&&_0x52623d['fill']===_0x2f7caa(0x373)&&(_0x52623d[_0x2f7caa(0x1a0)]=_0x1734a1['colorChannel1']);var _0x14827f=_0x210f15[_0x2f7caa(0x2f9)];return!_0x14827f||_0x14827f[_0x2f7caa(0x574)]===0x0||(_0x589fad[_0x2f7caa(0x448)]===_0x2f7caa(0x1b1)&&_0x52623d['xlink:href']&&(_0x52623d[_0x2f7caa(0x4a4)]=_0x52623d['xlink:href']+_0x210f15[_0x2f7caa(0x218)]),Object['entries'](_0x52623d)[_0x2f7caa(0x387)](function(_0x349637){const _0x438977=_0x2f7caa;var _0xcc23fb=_0x349637[0x0],_0x400012=_0x349637[0x1];typeof _0x400012==_0x438977(0x1be)&&(_0x52623d[_0xcc23fb]=_0x400012['replace'](/url\(#(.*)\)/,_0x438977(0x2ee)[_0x438977(0x515)](_0x210f15[_0x438977(0x218)],')')));})),_0x52623d;}function _0x1902ff(_0x340d9c,_0x257862){const _0x4775e2=_0x18d6ba;var _0x56fd04,_0x4e4e17=_0x257862[_0x4775e2(0x2f9)];return!_0x4e4e17||_0x4e4e17['length']===0x0?_0x340d9c:_0x340d9c[_0x4775e2(0x448)]==='defs'&&(!((_0x56fd04=_0x340d9c[_0x4775e2(0x211)])===null||_0x56fd04===void 0x0)&&_0x56fd04[_0x4775e2(0x574)])?_0x49b39b(_0x49b39b({},_0x340d9c),{'children':_0x340d9c[_0x4775e2(0x211)]['map'](function(_0x235495){const _0x84125d=_0x4775e2;return typeof _0x235495[_0x84125d(0x354)]['id']==_0x84125d(0x1be)&&_0x4e4e17&&_0x4e4e17[_0x84125d(0x251)](_0x235495[_0x84125d(0x354)]['id'])>-0x1?_0x49b39b(_0x49b39b({},_0x235495),{'attrs':_0x49b39b(_0x49b39b({},_0x235495[_0x84125d(0x354)]),{'id':_0x235495[_0x84125d(0x354)]['id']+_0x257862[_0x84125d(0x218)]})}):_0x235495;})}):_0x340d9c;}function _0x94eb3d(){const _0x468abd=_0x18d6ba;return Math[_0x468abd(0x468)]()[_0x468abd(0x1fb)](0x24)[_0x468abd(0x1ba)](0x2,0x8);}_0x29b411[_0x18d6ba(0x319)]=_0x18d6ba(0x4c2);var _0xb4579a={'tag':'svg','attrs':{'fill':'none','viewBox':_0x18d6ba(0x36b),'width':'1em','height':_0x18d6ba(0x1f9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x18d6ba(0x364),'attrs':{'stroke':_0x18d6ba(0x4c8),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x18d6ba(0x584),'strokeLinejoin':_0x18d6ba(0x584),'strokeWidth':1.2}}]},{'tag':_0x18d6ba(0x46c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x18d6ba(0x21f)},'children':[{'tag':'path','attrs':{'fill':_0x18d6ba(0x2e7),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x18d6ba(0x21f)]},_0x3bb149=_0x349b95[_0x18d6ba(0x257)](function(_0x2b97a4,_0x1d88f9){const _0x415ff4=_0x18d6ba;return _0x349b95[_0x415ff4(0x4e0)](_0x29b411,Object[_0x415ff4(0x2df)]({},_0x2b97a4,{'id':'off-line-single','ref':_0x1d88f9,'icon':_0xb4579a}));});_0x3bb149[_0x18d6ba(0x319)]=_0x18d6ba(0x1dd);var _0x31c5e0={'tag':_0x18d6ba(0x4f1),'attrs':{'fill':_0x18d6ba(0x4db),'viewBox':'0\x200\x2017\x2016','width':_0x18d6ba(0x1f9),'height':_0x18d6ba(0x1f9)},'children':[{'tag':'g','attrs':{'clipPath':_0x18d6ba(0x1c0)},'children':[{'tag':_0x18d6ba(0x364),'attrs':{'stroke':_0x18d6ba(0x4c8),'d':_0x18d6ba(0x52a),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x18d6ba(0x46c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x18d6ba(0x1e4)},'children':[{'tag':_0x18d6ba(0x364),'attrs':{'fill':_0x18d6ba(0x2e7),'d':_0x18d6ba(0x511),'transform':_0x18d6ba(0x29c)}}]}]}],'defIds':[_0x18d6ba(0x1e4)]},_0x5b5bb6=_0x349b95[_0x18d6ba(0x257)](function(_0xe36e97,_0x35f9ce){const _0x341c14=_0x18d6ba;return _0x349b95['createElement'](_0x29b411,Object[_0x341c14(0x2df)]({},_0xe36e97,{'id':_0x341c14(0x4f5),'ref':_0x35f9ce,'icon':_0x31c5e0}));});_0x5b5bb6[_0x18d6ba(0x319)]=_0x18d6ba(0x41b);const _0x3eee85={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x18d6ba(0x4cc),'onlineStatus':_0x18d6ba(0x357),'online':_0x18d6ba(0x24c),'offline':_0x18d6ba(0x24a)};function _0x215982(_0x1a59c6){const _0x13ce70=_0x18d6ba;switch(_0x1a59c6){case _0x2232ef[_0x13ce70(0x1f8)]:return _0x13ce70(0x418);case _0x2232ef[_0x13ce70(0x566)]:return _0x13ce70(0x547);case _0x2232ef[_0x13ce70(0x447)]:return _0x13ce70(0x4d9);case _0x2232ef['NOT_COLLAB']:return'collabStatus.notCollab';case _0x2232ef[_0x13ce70(0x1ed)]:case _0x2232ef['AWAITING']:case _0x2232ef[_0x13ce70(0x55e)]:return _0x13ce70(0x402);case _0x2232ef[_0x13ce70(0x274)]:return _0x13ce70(0x49a);}}function _0x89a6f8(_0x55f049){const _0x4b104b=_0x18d6ba,{status$:_0x32c388}=_0x55f049,_0x27c032=_0x2b4c8d['useObservable'](_0x32c388,_0x2232ef[_0x4b104b(0x1e5)]),_0x58f668=_0x3aaa00[_0x4b104b(0x258)](_0x3aaa00[_0x4b104b(0x591)]),_0x5405cc=_0x27c032!==_0x2232ef['OFFLINE'],_0x833f78=_0x58f668['t'](_0x215982(_0x27c032)),_0x1493de=_0x3adb83(_0x3eee85['onlineStatus'],{[_0x3eee85[_0x4b104b(0x1cf)]]:_0x5405cc,[_0x3eee85['offline']]:!_0x5405cc}),_0x486fdf=_0x5405cc?_0x349b95[_0x4b104b(0x4e0)](_0x5b5bb6,null):_0x349b95['createElement'](_0x3bb149,null);return _0x349b95[_0x4b104b(0x4e0)](_0x4b104b(0x1f2),{'className':_0x1493de},_0x349b95[_0x4b104b(0x4e0)](_0x4b104b(0x1f2),{'className':_0x3eee85[_0x4b104b(0x41c)]},_0x486fdf),_0x349b95[_0x4b104b(0x4e0)](_0x4b104b(0x1f2),{'className':_0x3eee85[_0x4b104b(0x590)]},_0x833f78));}var _0x5c78f9=Object[_0x18d6ba(0x272)],_0x5e6573=Object[_0x18d6ba(0x3fd)],_0x157234=(_0x1e00f5,_0x27e2f5,_0x3b99e0,_0x38cb25)=>{for(var _0x3b5c3f=_0x38cb25>0x1?void 0x0:_0x38cb25?_0x5e6573(_0x27e2f5,_0x3b99e0):_0x27e2f5,_0x4ef620=_0x1e00f5['length']-0x1,_0x4c8b46;_0x4ef620>=0x0;_0x4ef620--)(_0x4c8b46=_0x1e00f5[_0x4ef620])&&(_0x3b5c3f=(_0x38cb25?_0x4c8b46(_0x27e2f5,_0x3b99e0,_0x3b5c3f):_0x4c8b46(_0x3b5c3f))||_0x3b5c3f);return _0x38cb25&&_0x3b5c3f&&_0x5c78f9(_0x27e2f5,_0x3b99e0,_0x3b5c3f),_0x3b5c3f;},_0x158d1e=(_0x1ac5b3,_0xe51c39)=>(_0x426b1b,_0x4a1624)=>_0xe51c39(_0x426b1b,_0x4a1624,_0x1ac5b3);_0x4c54a0['DesktopCollaborationStatusDisplayController']=class extends _0x3aaa00[_0x18d6ba(0x350)]{constructor(_0x5e9060,_0x15ebc0,_0x880139,_0x2bd51e){const _0x3b722a=_0x18d6ba;super(),_0x2c46b8(this,'_status$',new _0x5cbc6e['BehaviorSubject'](_0x2232ef[_0x3b722a(0x1e5)])),(this[_0x3b722a(0x318)]=_0x5e9060,this[_0x3b722a(0x4da)]=_0x15ebc0,this['_injector']=_0x880139,this[_0x3b722a(0x524)]=_0x2bd51e,this['_initStatusComponent'](),this[_0x3b722a(0x238)]());}[_0x18d6ba(0x428)](){const _0x8ab593=_0x18d6ba;this[_0x8ab593(0x43a)](this['_uiPartsService']['registerComponent'](_0x2b4c8d[_0x8ab593(0x3bf)]['HEADER_MENU'],()=>_0x3aaa00[_0x8ab593(0x4a2)](_0x157b44({'status$':this['_status$'][_0x8ab593(0x28c)]()}),this['_injector'])));}[_0x18d6ba(0x238)](){const _0x32af6e=_0x18d6ba;this[_0x32af6e(0x43a)](_0x3aaa00[_0x32af6e(0x1cd)](this[_0x32af6e(0x318)][_0x32af6e(0x204)][_0x32af6e(0x32f)](_0x5cbc6e[_0x32af6e(0x546)](()=>{const _0x473a8c=_0x32af6e,_0x1a05d0=this[_0x473a8c(0x318)]['getFocusedUnit']();return _0x1a05d0?this['_collaborationController'][_0x473a8c(0x45b)](_0x1a05d0[_0x473a8c(0x4b6)]()):_0x5cbc6e['of'](null);}),_0x5cbc6e['switchMap'](_0x4ec44b=>_0x4ec44b?_0x4ec44b[_0x32af6e(0x503)]:_0x5cbc6e['of'](_0x2232ef['NOT_COLLAB'])))['subscribe'](_0x52b81d=>{const _0x3074e5=_0x32af6e;this[_0x3074e5(0x225)]['next'](_0x52b81d);})));}},_0x4c54a0[_0x18d6ba(0x235)]=_0x157234([_0x3aaa00[_0x18d6ba(0x279)](_0x3aaa00[_0x18d6ba(0x4ff)][_0x18d6ba(0x1d5)],_0x4c54a0[_0x18d6ba(0x235)]),_0x158d1e(0x0,_0x3aaa00[_0x18d6ba(0x2d5)]),_0x158d1e(0x1,_0x2b4c8d[_0x18d6ba(0x3dd)]),_0x158d1e(0x2,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x56f)])),_0x158d1e(0x3,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0['CollaborationController']))],_0x4c54a0[_0x18d6ba(0x235)]);function _0x157b44(_0x3b7c63){const {status$:_0x365848}=_0x3b7c63;return function(){return _0x349b95['createElement'](_0x89a6f8,{'status$':_0x365848});};}const _0x44b27e=_0x3aaa00[_0x18d6ba(0x3be)]('uni.network.url-service');var _0x188697=Object['defineProperty'],_0x1894d9=Object[_0x18d6ba(0x3fd)],_0x2d9aab=(_0x2f0099,_0x3a53ca,_0x156b1b,_0x59dd45)=>{for(var _0x26b0b3=_0x59dd45>0x1?void 0x0:_0x59dd45?_0x1894d9(_0x3a53ca,_0x156b1b):_0x3a53ca,_0x2405c3=_0x2f0099['length']-0x1,_0xa9637a;_0x2405c3>=0x0;_0x2405c3--)(_0xa9637a=_0x2f0099[_0x2405c3])&&(_0x26b0b3=(_0x59dd45?_0xa9637a(_0x3a53ca,_0x156b1b,_0x26b0b3):_0xa9637a(_0x26b0b3))||_0x26b0b3);return _0x59dd45&&_0x26b0b3&&_0x188697(_0x3a53ca,_0x156b1b,_0x26b0b3),_0x26b0b3;},_0x54d5fb=(_0x518f69,_0x17e205)=>(_0xb096ac,_0x13c84e)=>_0x17e205(_0xb096ac,_0x13c84e,_0x518f69);_0x4c54a0[_0x18d6ba(0x24d)]=class extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(_0x33072c,_0x1fcad1,_0xd4cfcd,_0x204453,_0xfd181d,_0x1a29f2){const _0x2dbc7d=_0x18d6ba;super(),this['_urlService']=_0x33072c,this[_0x2dbc7d(0x36e)]=_0x1fcad1,this[_0x2dbc7d(0x513)]=_0xd4cfcd,this[_0x2dbc7d(0x4bf)]=_0x204453,this[_0x2dbc7d(0x51a)]=_0xfd181d,_0x1a29f2?_0x1a29f2==null||_0x1a29f2[_0x2dbc7d(0x3a2)]()['then'](()=>this[_0x2dbc7d(0x286)]()):(this[_0x2dbc7d(0x36e)]['debug'](_0x2dbc7d(0x3b6),_0x2dbc7d(0x40d)),this[_0x2dbc7d(0x286)]());}async[_0x18d6ba(0x286)](){const _0x1ef4fb=_0x18d6ba,_0x3bd779=this[_0x1ef4fb(0x569)][_0x1ef4fb(0x2f6)](_0x1ef4fb(0x1b2)),_0x475037=this[_0x1ef4fb(0x569)][_0x1ef4fb(0x2f6)](_0x1ef4fb(0x543));if(!_0x3bd779||!_0x475037){this['_logService'][_0x1ef4fb(0x3bd)](_0x1ef4fb(0x3b6),_0x1ef4fb(0x389));return;}switch(Number(_0x475037)){case _0x3a110c[_0x1ef4fb(0x18a)]:{const _0x36eb14=await this['_loadSheet'](_0x3bd779);this[_0x1ef4fb(0x375)](_0x36eb14);break;}case _0x3a110c[_0x1ef4fb(0x4c1)]:{await this[_0x1ef4fb(0x31c)](_0x3bd779);break;}default:{this[_0x1ef4fb(0x36e)][_0x1ef4fb(0x4ae)](_0x1ef4fb(0x3b6),_0x1ef4fb(0x47d));break;}}}async[_0x18d6ba(0x375)](_0x1f0984){const _0x139240=_0x18d6ba;await this['_updateSubUnitFromURLParams'](_0x1f0984),_0x1f0984[_0x139240(0x4f6)][_0x139240(0x32f)](_0x5cbc6e[_0x139240(0x40b)](this[_0x139240(0x505)]))[_0x139240(0x559)](_0x18d97f=>{_0x18d97f&&this['_updateURLWithCurrentState'](_0x18d97f);}),this['_urlService']['urlChange$'][_0x139240(0x32f)](_0x5cbc6e[_0x139240(0x40b)](this['dispose$']))[_0x139240(0x559)](()=>this['_updateSubUnitFromURLParams'](_0x1f0984));}[_0x18d6ba(0x1ca)](_0x50060f,_0x3e69be=!0x1){const _0x26d95b=_0x18d6ba,_0x217a99=this[_0x26d95b(0x569)][_0x26d95b(0x2f6)](_0x26d95b(0x27b));_0x50060f['getSheetId']()!==_0x217a99&&this[_0x26d95b(0x569)][_0x26d95b(0x1c2)]('subunit',_0x50060f[_0x26d95b(0x1fa)](),_0x3e69be);}async[_0x18d6ba(0x231)](_0x5ef10b){const _0x47dc5c=_0x18d6ba;var _0x5a026a;const _0x5ded11=this[_0x47dc5c(0x569)][_0x47dc5c(0x2f6)]('subunit');if(!_0x5ded11||!_0x5ef10b[_0x47dc5c(0x3f6)](_0x5ded11)){const _0x22e6cc=_0x5ef10b['getUnhiddenWorksheets']()[0x0],_0x3d8b2e=_0x5ef10b[_0x47dc5c(0x3f6)](_0x22e6cc);if(!_0x3d8b2e)return;this[_0x47dc5c(0x1ca)](_0x3d8b2e,!0x0),await this['_commandService']['executeCommand'](_0x459c9c['SetWorksheetActivateCommand']['id'],{'unitId':_0x5ef10b[_0x47dc5c(0x4b6)](),'subUnitId':_0x22e6cc});return;}((_0x5a026a=_0x5ef10b[_0x47dc5c(0x2ac)]())==null?void 0x0:_0x5a026a['getSheetId']())!==_0x5ded11&&await this[_0x47dc5c(0x513)][_0x47dc5c(0x2e9)](_0x459c9c[_0x47dc5c(0x518)]['id'],{'unitId':_0x5ef10b['getUnitId'](),'subUnitId':_0x5ded11});}async['_loadSheet'](_0x11a9d2){const _0x4fd956=_0x18d6ba;let _0x443049=0x0;const _0x2d2309=await this[_0x4fd956(0x4bf)][_0x4fd956(0x1ee)](_0x11a9d2);return _0x2d2309&&(_0x2d2309['awaitingChangeset']||_0x2d2309[_0x4fd956(0x2fb)][_0x4fd956(0x574)]!==0x0)&&(_0x443049=_0x2d2309[_0x4fd956(0x39c)]),_0x443049===0x0&&this[_0x4fd956(0x36e)][_0x4fd956(0x3bd)](_0x4fd956(0x3b6),_0x4fd956(0x3e8)),this[_0x4fd956(0x51a)][_0x4fd956(0x2bc)](_0x11a9d2,_0x443049);}async['_loadDoc'](_0xce2779){const _0x1a48d9=_0x18d6ba;let _0x1b8411=0x0;const _0xfb34bc=await this[_0x1a48d9(0x4bf)][_0x1a48d9(0x1ee)](_0xce2779);return _0xfb34bc&&(_0xfb34bc[_0x1a48d9(0x264)]||_0xfb34bc[_0x1a48d9(0x2fb)][_0x1a48d9(0x574)]!==0x0)&&(_0x1b8411=_0xfb34bc[_0x1a48d9(0x39c)]),_0x1b8411===0x0&&this[_0x1a48d9(0x36e)][_0x1a48d9(0x3bd)]('[DataLoaderController]',_0x1a48d9(0x3e8)),this[_0x1a48d9(0x51a)][_0x1a48d9(0x526)](_0xce2779,_0x1b8411);}},_0x4c54a0['DataLoaderController']=_0x2d9aab([_0x3aaa00['OnLifecycle'](_0x3aaa00[_0x18d6ba(0x4ff)]['Starting'],_0x4c54a0[_0x18d6ba(0x24d)]),_0x54d5fb(0x0,_0x44b27e),_0x54d5fb(0x1,_0x3aaa00[_0x18d6ba(0x42a)]),_0x54d5fb(0x2,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x54d5fb(0x3,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0[_0x18d6ba(0x362)])),_0x54d5fb(0x4,_0x3aaa00[_0x18d6ba(0x1de)](_0x4d4d9d[_0x18d6ba(0x3ab)])),_0x54d5fb(0x5,_0x3aaa00[_0x18d6ba(0x409)](_0x2a45ef[_0x18d6ba(0x344)]))],_0x4c54a0[_0x18d6ba(0x24d)]);var _0x5b60dd=Object[_0x18d6ba(0x272)],_0x547ef0=Object[_0x18d6ba(0x3fd)],_0x37faad=(_0x42fd68,_0x4a4dac,_0x5b6e22,_0x109673)=>{const _0x1570ff=_0x18d6ba;for(var _0x4b998c=_0x109673>0x1?void 0x0:_0x109673?_0x547ef0(_0x4a4dac,_0x5b6e22):_0x4a4dac,_0x3117c2=_0x42fd68[_0x1570ff(0x574)]-0x1,_0xb5fb23;_0x3117c2>=0x0;_0x3117c2--)(_0xb5fb23=_0x42fd68[_0x3117c2])&&(_0x4b998c=(_0x109673?_0xb5fb23(_0x4a4dac,_0x5b6e22,_0x4b998c):_0xb5fb23(_0x4b998c))||_0x4b998c);return _0x109673&&_0x4b998c&&_0x5b60dd(_0x4a4dac,_0x5b6e22,_0x4b998c),_0x4b998c;},_0x2d70cb=(_0x39b5ad,_0x37ea42)=>(_0x1cfa88,_0x30a121)=>_0x37ea42(_0x1cfa88,_0x30a121,_0x39b5ad);const _0x3a025c=_0x18d6ba(0x38b),_0x58b20a=_0x18d6ba(0x408);let _0x22268e=class extends _0x3aaa00[_0x18d6ba(0x350)]{constructor(_0x1177cc,_0x46afc1){const _0x1a8fea=_0x18d6ba;super(),this[_0x1a8fea(0x318)]=_0x1177cc,this['_configService']=_0x46afc1,this['_init']();}[_0x18d6ba(0x286)](){const _0x2edb20=_0x18d6ba;this['disposeWithMe'](_0x3aaa00[_0x2edb20(0x1cd)](this[_0x2edb20(0x318)][_0x2edb20(0x204)][_0x2edb20(0x559)](()=>{const _0x5f3c8b=_0x2edb20;var _0xfefd7a;const _0x3ec078=this[_0x5f3c8b(0x318)]['getFocusedUnit']();let _0x539d4c=(_0xfefd7a=this[_0x5f3c8b(0x394)]['getConfig'](_0x3a025c))!=null?_0xfefd7a:_0x58b20a;_0x3ec078 instanceof _0x3aaa00[_0x5f3c8b(0x2c9)]&&(_0x539d4c=_0x3ec078[_0x5f3c8b(0x4a1)]),document[_0x5f3c8b(0x3f7)]=_0x539d4c;})));}};_0x22268e=_0x37faad([_0x3aaa00[_0x18d6ba(0x279)](_0x3aaa00[_0x18d6ba(0x4ff)][_0x18d6ba(0x480)],_0x22268e),_0x2d70cb(0x0,_0x3aaa00[_0x18d6ba(0x2d5)]),_0x2d70cb(0x1,_0x3aaa00[_0x18d6ba(0x195)])],_0x22268e);var _0x3c0ae4=Object[_0x18d6ba(0x272)],_0x4be4bc=Object[_0x18d6ba(0x3fd)],_0x1b019f=(_0x12d521,_0x42eb87,_0x51a2e2,_0x50a76d)=>{const _0x36750c=_0x18d6ba;for(var _0x55f5df=_0x50a76d>0x1?void 0x0:_0x50a76d?_0x4be4bc(_0x42eb87,_0x51a2e2):_0x42eb87,_0x287e1f=_0x12d521[_0x36750c(0x574)]-0x1,_0x4b9215;_0x287e1f>=0x0;_0x287e1f--)(_0x4b9215=_0x12d521[_0x287e1f])&&(_0x55f5df=(_0x50a76d?_0x4b9215(_0x42eb87,_0x51a2e2,_0x55f5df):_0x4b9215(_0x55f5df))||_0x55f5df);return _0x50a76d&&_0x55f5df&&_0x3c0ae4(_0x42eb87,_0x51a2e2,_0x55f5df),_0x55f5df;},_0x1bee37=(_0x46aff3,_0x4e1c51)=>(_0x3f3bbf,_0x244f39)=>_0x4e1c51(_0x3f3bbf,_0x244f39,_0x46aff3);_0x4c54a0[_0x18d6ba(0x214)]=class{constructor(_0x193ab1,_0x221568){const _0xee6bb=_0x18d6ba;this[_0xee6bb(0x394)]=_0x193ab1,this[_0xee6bb(0x479)]=_0x221568;}async[_0x18d6ba(0x3fa)](_0x57056a,_0x340ea3){const _0x30ed11=_0x18d6ba;var _0x4a1767;const {unitID:_0x1d48cf,type:_0x19c255,revision:_0x21bde7=0x0}=_0x340ea3,_0xf0abfc=this[_0x30ed11(0x369)]()+'/'+_0x19c255+'/unit/'+_0x1d48cf+_0x30ed11(0x445)+_0x21bde7,_0x31c488=(await this[_0x30ed11(0x479)][_0x30ed11(0x3e4)](_0xf0abfc))['body'],_0x3b24bc=(_0x4a1767=_0x31c488['snapshot'])==null?void 0x0:_0x4a1767[_0x30ed11(0x34f)];if(_0x3b24bc){const _0xf6e430=_0x3b24bc==null?void 0x0:_0x3b24bc[_0x30ed11(0x1cb)],_0xd873af=_0x3aaa00[_0x30ed11(0x571)][_0x30ed11(0x262)](_0x3aaa00['b64DecodeUnicode'](_0xf6e430));_0x3b24bc[_0x30ed11(0x1cb)]=_0xd873af,Object[_0x30ed11(0x1aa)](_0x3b24bc['sheets'])['forEach'](([,_0x4e3880])=>{const _0x3771d3=_0x30ed11,_0x1735c3=_0x4e3880[_0x3771d3(0x1cb)],_0x44face=_0x3aaa00[_0x3771d3(0x571)]['encode'](_0x3aaa00[_0x3771d3(0x36c)](_0x1735c3));_0x4e3880['originalMeta']=_0x44face;});}return _0x31c488;}async[_0x18d6ba(0x4d5)](_0x18de2c,_0x2af26b){const _0x50e7c5=_0x18d6ba,{unitID:_0xe8c413,type:_0x1f8133,blockID:_0x2b6b20}=_0x2af26b,_0x8abdaa=this[_0x50e7c5(0x49d)]()+'/'+_0x1f8133+_0x50e7c5(0x37c)+_0xe8c413+_0x50e7c5(0x280)+_0x2b6b20;return(await this[_0x50e7c5(0x479)]['get'](_0x8abdaa))['body'];}async['fetchMissingChangesets'](_0x130aca,_0x1dd9b1){const _0xb8a1=_0x18d6ba,{unitID:_0x42996a,type:_0x156532,from:_0x41279b,to:_0x4e7023}=_0x1dd9b1,_0x31e296=this[_0xb8a1(0x49d)]()+'/'+_0x156532+_0xb8a1(0x37c)+_0x42996a+_0xb8a1(0x2f1)+_0x41279b+_0xb8a1(0x205)+_0x4e7023;return(await this[_0xb8a1(0x479)][_0xb8a1(0x3e4)](_0x31e296))[_0xb8a1(0x411)];}[_0x18d6ba(0x369)](){const _0x5371a6=_0x18d6ba;var _0xf88878;return(_0xf88878=this[_0x5371a6(0x394)][_0x5371a6(0x499)](_0x37c740))!=null?_0xf88878:this[_0x5371a6(0x49d)]();}['_getAPIPrefix'](){const _0x33ec5c=_0x18d6ba;var _0x2f898f;return(_0x2f898f=this[_0x33ec5c(0x394)]['getConfig'](_0x4bec73))!=null?_0x2f898f:_0x4e3762;}async['getResourcesRequest'](_0x54104d,_0x2858f3){const _0x2f4e02=_0x18d6ba,_0x282064='/universer-api/snapshot/'+_0x2858f3[_0x2f4e02(0x543)]+_0x2f4e02(0x37c)+_0x2858f3[_0x2f4e02(0x4bb)]+_0x2f4e02(0x2b1);return(await this[_0x2f4e02(0x479)][_0x2f4e02(0x3e4)](_0x282064,{'params':{'resourceId':JSON['stringify'](_0x2858f3[_0x2f4e02(0x579)])}}))['body'];}[_0x18d6ba(0x24e)](){const _0x228214=_0x18d6ba;throw new Error(_0x228214(0x377));}[_0x18d6ba(0x1d4)](){const _0x42f930=_0x18d6ba;throw new Error(_0x42f930(0x377));}[_0x18d6ba(0x1da)](){const _0x501563=_0x18d6ba;throw new Error(_0x501563(0x377));}},_0x4c54a0[_0x18d6ba(0x214)]=_0x1b019f([_0x1bee37(0x0,_0x3aaa00[_0x18d6ba(0x195)]),_0x1bee37(0x1,_0x3aaa00[_0x18d6ba(0x1de)](_0x3e5de5[_0x18d6ba(0x3c9)]))],_0x4c54a0[_0x18d6ba(0x214)]);var _0x2deaad=Object['defineProperty'],_0x4f2f88=Object[_0x18d6ba(0x3fd)],_0x441435=(_0x19855e,_0x5af1ea,_0x1026ae,_0x5092a9)=>{const _0x15fd47=_0x18d6ba;for(var _0x5e2f07=_0x5092a9>0x1?void 0x0:_0x5092a9?_0x4f2f88(_0x5af1ea,_0x1026ae):_0x5af1ea,_0x13d092=_0x19855e[_0x15fd47(0x574)]-0x1,_0x52b117;_0x13d092>=0x0;_0x13d092--)(_0x52b117=_0x19855e[_0x13d092])&&(_0x5e2f07=(_0x5092a9?_0x52b117(_0x5af1ea,_0x1026ae,_0x5e2f07):_0x52b117(_0x5e2f07))||_0x5e2f07);return _0x5092a9&&_0x5e2f07&&_0x2deaad(_0x5af1ea,_0x1026ae,_0x5e2f07),_0x5e2f07;},_0x542ef3=(_0x32733e,_0x36f6e8)=>(_0x12aa75,_0x3e25b0)=>_0x36f6e8(_0x12aa75,_0x3e25b0,_0x32733e);let _0x3ff707=class extends _0x3aaa00[_0x18d6ba(0x4f3)]{constructor(_0x2cbe07,_0x565e94,_0xb36090,_0x5741bf,_0x525680){const _0xb3a74e=_0x18d6ba;super(_0x2cbe07,_0x565e94,_0xb36090),this[_0xb3a74e(0x45d)]=_0x5741bf,this[_0xb3a74e(0x36e)]=_0x525680;}[_0x18d6ba(0x4e6)](_0x85859,_0x4336a0){const _0x147a55=_0x18d6ba,_0x2226e2=this[_0x147a55(0x478)](_0x85859);if(_0x2226e2)try{const _0x5a1b83=this[_0x147a55(0x4d0)](_0x2226e2,_0x4336a0);this[_0x147a55(0x269)](_0x85859,_0x5a1b83);}catch(_0x5ac90d){this[_0x147a55(0x36e)][_0x147a55(0x4ae)](_0x147a55(0x1a8),_0x5ac90d),this[_0x147a55(0x555)](_0x85859);}const _0x103f74=this[_0x147a55(0x3e5)](_0x85859);if(_0x103f74)try{const _0x3dab45=this[_0x147a55(0x4d0)](_0x103f74,_0x4336a0);this[_0x147a55(0x46a)](_0x85859,_0x3dab45);}catch(_0xe4169d){this[_0x147a55(0x36e)][_0x147a55(0x4ae)](_0xe4169d),this[_0x147a55(0x563)](_0x85859);}}['_clearUndo'](_0x4e26d2){const _0x45e121=_0x18d6ba,_0x39c336=this[_0x45e121(0x478)](_0x4e26d2);_0x39c336&&(_0x39c336[_0x45e121(0x574)]=0x0,this[_0x45e121(0x230)]());}[_0x18d6ba(0x563)](_0x3db3e5){const _0x1aa28e=_0x18d6ba,_0x47293a=this[_0x1aa28e(0x3e5)](_0x3db3e5);_0x47293a&&(_0x47293a[_0x1aa28e(0x574)]=0x0,this[_0x1aa28e(0x230)]());}['_substituteUndoStack'](_0x413118,_0xb5636b){const _0x5bbb6b=_0x18d6ba;this['_undoStacks']['set'](_0x413118,_0xb5636b),this[_0x5bbb6b(0x230)]();}[_0x18d6ba(0x46a)](_0x8989cf,_0x47b0b7){const _0x1c5ae8=_0x18d6ba;this['_redoStacks'][_0x1c5ae8(0x2a6)](_0x8989cf,_0x47b0b7),this[_0x1c5ae8(0x230)]();}[_0x18d6ba(0x4d0)](_0x250975,_0x364885){const _0x571b18=_0x18d6ba,_0x10f61a=[];let _0x71bef1=_0x364885,_0x57e231=_0x364885;for(let _0x34e95f=_0x250975[_0x571b18(0x574)]-0x1;_0x34e95f>=0x0;_0x34e95f--){const {unitID:_0x224dc3,undoMutations:_0x298a99,redoMutations:_0x341c8b}=_0x250975[_0x34e95f],_0x2e97ba=this[_0x571b18(0x45d)][_0x571b18(0x588)](_0x71bef1,_0x298a99),_0x3b589f=this[_0x571b18(0x45d)]['transformMutationsWithChangeset'](_0x57e231,_0x341c8b);if(_0x4d4d9d[_0x571b18(0x336)](_0x2e97ba)||_0x4d4d9d[_0x571b18(0x336)](_0x3b589f)){this['_logService'][_0x571b18(0x4ae)](_0x571b18(0x1a8),'transformStack\x20failed!',_0x2e97ba,_0x3b589f);break;}_0x71bef1=_0x2e97ba[_0x571b18(0x486)],_0x57e231=_0x3b589f[_0x571b18(0x486)],_0x10f61a[_0x571b18(0x239)]({'unitID':_0x224dc3,'undoMutations':_0x2e97ba['m2Prime'],'redoMutations':_0x3b589f['m2Prime']});}return _0x10f61a[_0x571b18(0x439)]();}};_0x3ff707=_0x441435([_0x542ef3(0x0,_0x3aaa00[_0x18d6ba(0x2d5)]),_0x542ef3(0x1,_0x3aaa00['ICommandService']),_0x542ef3(0x2,_0x3aaa00['IContextService']),_0x542ef3(0x3,_0x4d4d9d['ITransformService']),_0x542ef3(0x4,_0x3aaa00[_0x18d6ba(0x42a)])],_0x3ff707);class _0x39bc2e extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(){const _0x2d1d82=_0x18d6ba;super(),_0x2c46b8(this,_0x2d1d82(0x533)),this['urlChange$']=_0x5cbc6e[_0x2d1d82(0x3a4)](window,'popstate')[_0x2d1d82(0x32f)](_0x5cbc6e[_0x2d1d82(0x40b)](this[_0x2d1d82(0x505)]),_0x5cbc6e[_0x2d1d82(0x27e)](0x1),_0x5cbc6e[_0x2d1d82(0x57c)](void 0x0));}['setParam'](_0x55158c,_0x39416f,_0x48b05a=!0x1){const _0x546d81=_0x18d6ba,_0x30c530=new URL(window[_0x546d81(0x54d)][_0x546d81(0x53c)]);_0x30c530['searchParams']['set'](_0x55158c,_0x39416f),_0x48b05a?window['history'][_0x546d81(0x58a)]('','',_0x30c530[_0x546d81(0x1fb)]()):window[_0x546d81(0x275)][_0x546d81(0x3df)]('','',_0x30c530[_0x546d81(0x1fb)]());}[_0x18d6ba(0x495)](_0x20bc46,_0x52df33=!0x1){const _0xf9c516=_0x18d6ba,_0x32146a=new URL(window[_0xf9c516(0x54d)][_0xf9c516(0x53c)]);_0x32146a[_0xf9c516(0x455)][_0xf9c516(0x466)](_0x20bc46),_0x52df33?window['history'][_0xf9c516(0x58a)]('','',_0x32146a[_0xf9c516(0x1fb)]()):window[_0xf9c516(0x275)][_0xf9c516(0x3df)]('','',_0x32146a[_0xf9c516(0x1fb)]());}[_0x18d6ba(0x2f6)](_0x46895a){const _0x4bbcf8=_0x18d6ba;var _0x5c3322;return(_0x5c3322=new URL(window['location'][_0x4bbcf8(0x53c)])[_0x4bbcf8(0x455)][_0x4bbcf8(0x3e4)](_0x46895a))!=null?_0x5c3322:void 0x0;}}const _0xfed174=_0x18d6ba(0x307),_0x194794=_0x18d6ba(0x1c4),_0xa287d8=_0x18d6ba(0x289),_0x954839=0x6,_0x5e311c=1.5,_0x42d031=0x4,_0x444bb3=1.5,_0x1cee77=_0x18d6ba(0x3aa);class _0x2c09ce{constructor(_0x4001dd,_0x53aee9,_0x142d66,_0x143379){const _0x3bfda9=_0x18d6ba;_0x2c46b8(this,'_shapes',[]),_0x2c46b8(this,_0x3bfda9(0x23d),null),_0x2c46b8(this,_0x3bfda9(0x3ae),null),_0x2c46b8(this,_0x3bfda9(0x441),null),_0x2c46b8(this,'_hideTimer',null),_0x2c46b8(this,_0x3bfda9(0x347),null),(this[_0x3bfda9(0x2ed)]=_0x4001dd,this[_0x3bfda9(0x444)]=_0x53aee9,this[_0x3bfda9(0x29e)]=_0x142d66,this['_document']=_0x143379,this['_render']());}set[_0x18d6ba(0x224)](_0x2c3a95){const _0x1f4105=_0x18d6ba;_0x2c3a95?(this[_0x1f4105(0x441)]&&this[_0x1f4105(0x441)][_0x1f4105(0x55b)](),this[_0x1f4105(0x3ae)]&&this[_0x1f4105(0x3ae)][_0x1f4105(0x3f8)]()):(this[_0x1f4105(0x441)]&&this['_anchorDot'][_0x1f4105(0x3f8)](),this[_0x1f4105(0x3ae)]&&this[_0x1f4105(0x3ae)][_0x1f4105(0x55b)]());}[_0x18d6ba(0x338)](){const _0x5756fe=_0x18d6ba;for(const _0x1b496a of this[_0x5756fe(0x43f)])_0x1b496a[_0x5756fe(0x338)]();this[_0x5756fe(0x3ae)]&&this[_0x5756fe(0x3ae)][_0x5756fe(0x338)](),this[_0x5756fe(0x441)]&&this[_0x5756fe(0x441)][_0x5756fe(0x338)](),this[_0x5756fe(0x23d)]&&this[_0x5756fe(0x23d)][_0x5756fe(0x338)](),this[_0x5756fe(0x347)]&&this[_0x5756fe(0x347)]();}[_0x18d6ba(0x497)](){const _0x4b1d81=_0x18d6ba;var _0x31d866;const {_docSkeleton:_0x50bf42,_document:_0x38dc70}=this,{color:_0x160509,name:_0x14afd9,ranges:_0x43e737}=this['_cursor'],_0x4cead9=_0x38dc70['getOffsetConfig'](),{docsLeft:_0x267585,docsTop:_0x150114}=_0x4cead9,_0x583202=new _0x3b10b4[(_0x4b1d81(0x203))](_0x4cead9,_0x50bf42);for(const {startOffset:_0x5c7a63,endOffset:_0x425c5f,collapsed:_0x2b7737,isActive:_0x104b46}of _0x43e737){const _0x19c236=_0x50bf42[_0x4b1d81(0x1ff)](_0x5c7a63),_0x15af24=_0x50bf42[_0x4b1d81(0x1ff)](_0x425c5f);if(_0x104b46){const {contentBoxPointGroup:_0x2f7c7f}=_0x583202[_0x4b1d81(0x3a0)](_0x15af24,_0x15af24);if(_0x2f7c7f['length']===0x0)continue;this['_drawAnchor'](_0x160509,_0x2f7c7f,_0x267585,_0x150114,_0x14afd9),this['_eventUnsubscribe']=this[_0x4b1d81(0x3b0)]();}if(!_0x2b7737&&_0x19c236&&_0x15af24){if(_0x3b10b4[_0x4b1d81(0x50b)](_0x19c236,_0x15af24)){const _0x54d5f9=new _0x3b10b4[(_0x4b1d81(0x557))](_0x4cead9,_0x50bf42),{pointGroup:_0x5bed9e}=(_0x31d866=_0x54d5f9['getRangePointData'](_0x19c236,_0x15af24))!=null?_0x31d866:{};if(_0x5bed9e==null||_0x5bed9e[_0x4b1d81(0x574)]===0x0)continue;this[_0x4b1d81(0x23e)](_0x160509,_0x5bed9e,_0x267585,_0x150114);}else{const {contentBoxPointGroup:_0x3b6b96}=_0x583202[_0x4b1d81(0x3a0)](_0x19c236,_0x15af24);if(_0x3b6b96[_0x4b1d81(0x574)]===0x0)continue;this[_0x4b1d81(0x39e)](_0x160509,_0x3b6b96,_0x267585,_0x150114);}}}}[_0x18d6ba(0x39a)](_0x349404,_0x4d5c0f,_0x100fe7,_0x269e7b,_0x453b0f){const _0x105e71=_0x18d6ba,_0x11fbd5=this[_0x105e71(0x3eb)](_0x4d5c0f),{left:_0x206dd1,top:_0x1aae78,height:_0x1351bc}=_0x11fbd5,_0x2c71a5=this['_getScale'](),_0x5cf8aa=_0x444bb3/_0x2c71a5,_0xdf5868=new _0x3b10b4[(_0x105e71(0x3cd))](_0xfed174+_0x3aaa00[_0x105e71(0x2dd)][_0x105e71(0x55d)](_0x954839),{'left':_0x206dd1+_0x100fe7-_0x5cf8aa,'top':_0x1aae78+_0x269e7b,'height':_0x1351bc,'width':_0x5e311c,'fill':_0x349404||_0x3b10b4[_0x105e71(0x31f)](_0x3aaa00[_0x105e71(0x482)][_0x105e71(0x1af)],0x0),'strokeWidth':_0x5cf8aa,'stroke':_0x1cee77,'evented':!0x0});this[_0x105e71(0x23d)]=_0xdf5868,this[_0x105e71(0x444)][_0x105e71(0x22d)](_0xdf5868,_0x3b10b4[_0x105e71(0x1f3)]);const _0x421111=new _0x3b10b4[(_0x105e71(0x3cd))](_0xfed174+_0x3aaa00[_0x105e71(0x2dd)]['generateRandomId'](_0x954839),{'left':_0x206dd1+_0x100fe7-_0x5cf8aa,'top':_0x1aae78+_0x269e7b-_0x42d031/0x2,'height':_0x42d031,'width':_0x42d031,'fill':_0x349404||_0x3b10b4[_0x105e71(0x31f)](_0x3aaa00[_0x105e71(0x482)][_0x105e71(0x1af)],0x0),'strokeWidth':0x0,'stroke':_0x349404||_0x3b10b4['getColor'](_0x3aaa00[_0x105e71(0x482)][_0x105e71(0x1af)],0x0),'evented':!0x1});this[_0x105e71(0x441)]=_0x421111,this[_0x105e71(0x444)][_0x105e71(0x22d)](_0x421111,_0x3b10b4[_0x105e71(0x1f3)]);const _0x2c888f=new _0x609363(_0xfed174+_0x3aaa00[_0x105e71(0x2dd)][_0x105e71(0x55d)](_0x954839),{'left':_0x206dd1+_0x100fe7-_0x5cf8aa,'top':_0x1aae78+_0x269e7b-_0x3ba8ec,'text':_0x453b0f,'color':_0x349404});this[_0x105e71(0x3ae)]=_0x2c888f,this[_0x105e71(0x444)]['addObject'](_0x2c888f,_0x3b10b4[_0x105e71(0x1f3)]),this['_hover']=!0x1;}[_0x18d6ba(0x3b0)](){const _0x5d6f72=_0x18d6ba,_0x3cd816=this[_0x5d6f72(0x23d)][_0x5d6f72(0x19e)]['subscribeEvent'](()=>{const _0x3e18d0=_0x5d6f72;this[_0x3e18d0(0x224)]=!0x0;}),_0x542268=this[_0x5d6f72(0x23d)][_0x5d6f72(0x3d6)]['subscribeEvent'](()=>{const _0x5039de=_0x5d6f72;this['_hideTimer']&&clearTimeout(this[_0x5039de(0x426)]),this[_0x5039de(0x426)]=setTimeout(()=>{const _0x4dea95=_0x5039de;this[_0x4dea95(0x224)]=!0x1;},0x7d0);});return()=>{const _0x38ddfc=_0x5d6f72;_0x3cd816[_0x38ddfc(0x19c)](),_0x542268['unsubscribe']();};}['_drawTextRange'](_0x1860d1,_0x214c8a,_0x1b0eb1,_0x2751eb){const _0x30218c=_0x18d6ba,_0x3c4493=new _0x3aaa00[(_0x30218c(0x19b))](_0x1860d1)[_0x30218c(0x1f6)](0.2)[_0x30218c(0x33b)](),_0x5d6c38=new _0x3b10b4[(_0x30218c(0x4ec))](_0x194794+_0x3aaa00[_0x30218c(0x2dd)][_0x30218c(0x55d)](_0x954839),{'pointsGroup':_0x214c8a,'fill':_0x3c4493||_0x3b10b4[_0x30218c(0x31f)](_0x3aaa00[_0x30218c(0x482)][_0x30218c(0x1af)],0.2),'left':_0x1b0eb1,'top':_0x2751eb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x30218c(0x43f)][_0x30218c(0x239)](_0x5d6c38),this['_scene'][_0x30218c(0x22d)](_0x5d6c38,_0x3b10b4[_0x30218c(0x1f3)]);}[_0x18d6ba(0x23e)](_0x5447a7,_0x26d1c0,_0x4737de,_0x27d876){const _0x2f2f0c=_0x18d6ba,_0x24aa73=new _0x3aaa00[(_0x2f2f0c(0x19b))](_0x5447a7)[_0x2f2f0c(0x1f6)](0.2)[_0x2f2f0c(0x33b)](),_0x53cc3b=new _0x3b10b4[(_0x2f2f0c(0x4ec))](_0xa287d8+_0x3aaa00[_0x2f2f0c(0x2dd)]['generateRandomId'](_0x954839),{'pointsGroup':_0x26d1c0,'fill':_0x24aa73||_0x3b10b4[_0x2f2f0c(0x31f)](_0x3aaa00['COLORS']['black'],0.2),'left':_0x4737de,'top':_0x27d876,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2f2f0c(0x43f)][_0x2f2f0c(0x239)](_0x53cc3b),this[_0x2f2f0c(0x444)][_0x2f2f0c(0x22d)](_0x53cc3b,_0x3b10b4['TEXT_RANGE_LAYER_INDEX']);}[_0x18d6ba(0x3eb)](_0x35ea03){const _0x132864=_0x35ea03[0x0],_0x2ae635=_0x132864[0x0],_0x20c59e=_0x132864[0x2],{x:_0x1bb4ba,y:_0x327114}=_0x2ae635,{x:_0x5e6862,y:_0x542677}=_0x20c59e;return{'left':_0x1bb4ba,'top':_0x327114,'width':_0x5e6862-_0x1bb4ba,'height':_0x542677-_0x327114};}['_getScale'](){const _0x3a1f03=_0x18d6ba,{scaleX:_0xc5e6f4,scaleY:_0x57682a}=this['_scene'][_0x3a1f03(0x1c9)]();return Math[_0x3a1f03(0x285)](_0xc5e6f4,_0x57682a);}}var _0x2e2401=Object[_0x18d6ba(0x272)],_0x19ad78=Object[_0x18d6ba(0x3fd)],_0x2bf4cd=(_0x5e642e,_0x412a47,_0x237f74,_0x45389c)=>{const _0x29a9dd=_0x18d6ba;for(var _0x1f6e82=_0x45389c>0x1?void 0x0:_0x45389c?_0x19ad78(_0x412a47,_0x237f74):_0x412a47,_0x411a2d=_0x5e642e[_0x29a9dd(0x574)]-0x1,_0x46ed78;_0x411a2d>=0x0;_0x411a2d--)(_0x46ed78=_0x5e642e[_0x411a2d])&&(_0x1f6e82=(_0x45389c?_0x46ed78(_0x412a47,_0x237f74,_0x1f6e82):_0x46ed78(_0x1f6e82))||_0x1f6e82);return _0x45389c&&_0x1f6e82&&_0x2e2401(_0x412a47,_0x237f74,_0x1f6e82),_0x1f6e82;},_0x9184c2=(_0x1a5531,_0x44fb65)=>(_0x3a93c9,_0x3f6094)=>_0x44fb65(_0x3a93c9,_0x3f6094,_0x1a5531);let _0x34400b=class extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(_0xf2864a,_0x117f6e,_0x5a584c,_0x43db60,_0x166dfd){const _0x299289=_0x18d6ba;super(),_0x2c46b8(this,_0x299289(0x523),[]),_0x2c46b8(this,_0x299289(0x577),[]),(this[_0x299289(0x430)]=_0xf2864a,this[_0x299289(0x463)]=_0x117f6e,this[_0x299289(0x527)]=_0x5a584c,this[_0x299289(0x513)]=_0x43db60,this[_0x299289(0x313)]=_0x166dfd,this[_0x299289(0x286)]());}[_0x18d6ba(0x286)](){const _0x2ad06d=_0x18d6ba,_0x55f466=this[_0x2ad06d(0x430)][_0x2ad06d(0x189)],_0x40f655=this[_0x2ad06d(0x463)];this[_0x2ad06d(0x43a)](_0x5cbc6e[_0x2ad06d(0x193)]([this[_0x2ad06d(0x527)][_0x2ad06d(0x21e)](_0x55f466),this[_0x2ad06d(0x313)]['currentTheme$']])['pipe'](_0x267050[_0x2ad06d(0x343)](([_0x486c71,_0x694f16])=>({'skeleton':_0x40f655[_0x2ad06d(0x532)](),'cursors':[..._0x486c71[_0x2ad06d(0x2af)]()][_0x2ad06d(0x4a0)](_0x165167=>({..._0x165167,'color':_0x694f16[_0x165167[_0x2ad06d(0x3ee)]]}))})))[_0x2ad06d(0x559)](_0x1feb47=>{const _0x4dbe60=_0x2ad06d;if(this['_removeCollabCursors'](),_0x1feb47){const {skeleton:_0x3eb48c,cursors:_0x2bf012}=_0x1feb47;this[_0x4dbe60(0x1d6)](_0x3eb48c,_0x2bf012);}})),this[_0x2ad06d(0x415)](),this[_0x2ad06d(0x3ef)]();}[_0x18d6ba(0x1d6)](_0x133b48,_0x3cac7c){const _0x4080d3=_0x18d6ba,{scene:_0x108ffc,mainComponent:_0x4fc65f}=this[_0x4080d3(0x430)],_0x569a28=_0x3cac7c['map'](_0x495e6c=>new _0x2c09ce(_0x495e6c,_0x108ffc,_0x133b48,_0x4fc65f));this[_0x4080d3(0x523)]=_0x569a28,this[_0x4080d3(0x577)]=_0x3cac7c;}['_refreshCollabCursors'](){const _0x1b6cde=_0x18d6ba;this[_0x1b6cde(0x1d7)]();const {scene:_0x1c892e,mainComponent:_0x40ddb9}=this[_0x1b6cde(0x430)],_0x3085ba=this[_0x1b6cde(0x463)][_0x1b6cde(0x532)](),_0x53df44=this[_0x1b6cde(0x577)][_0x1b6cde(0x343)](_0x294a39=>new _0x2c09ce(_0x294a39,_0x1c892e,_0x3085ba,_0x40ddb9));this[_0x1b6cde(0x523)]=_0x53df44;}[_0x18d6ba(0x1d7)](){const _0x2299f4=_0x18d6ba;this[_0x2299f4(0x523)][_0x2299f4(0x387)](_0x40a3ab=>_0x40a3ab['dispose']()),this[_0x2299f4(0x523)]=[];}[_0x18d6ba(0x3ef)](){const _0x34add3=_0x18d6ba,_0x1c94c5=[_0x593e90[_0x34add3(0x29a)]['id']];this[_0x34add3(0x43a)](this['_commandService'][_0x34add3(0x1c1)](_0x48bc50=>{const _0x16c4e6=_0x34add3;_0x1c94c5[_0x16c4e6(0x300)](_0x48bc50['id'])&&_0x48bc50[_0x16c4e6(0x561)][_0x16c4e6(0x189)]===this[_0x16c4e6(0x430)][_0x16c4e6(0x189)]&&this[_0x16c4e6(0x379)]();}));}[_0x18d6ba(0x415)](){const _0x20f1c5=_0x18d6ba;this['disposeWithMe'](_0x3aaa00['fromEventSubject'](this[_0x20f1c5(0x430)][_0x20f1c5(0x370)][_0x20f1c5(0x446)])[_0x20f1c5(0x32f)](_0x267050['filter'](_0x22dbf2=>_0x22dbf2[_0x20f1c5(0x543)]===_0x3b10b4[_0x20f1c5(0x42e)][_0x20f1c5(0x1e2)]),_0x267050['throttleTime'](0x10))[_0x20f1c5(0x559)](()=>{const _0x189fcc=_0x20f1c5;this[_0x189fcc(0x379)]();}));}};_0x34400b=_0x2bf4cd([_0x3aaa00[_0x18d6ba(0x279)](_0x3aaa00[_0x18d6ba(0x4ff)]['Steady'],_0x34400b),_0x9184c2(0x1,_0x3aaa00['Inject'](_0x593e90[_0x18d6ba(0x391)])),_0x9184c2(0x2,_0x3aaa00['Inject'](_0x1fa692)),_0x9184c2(0x3,_0x3aaa00[_0x18d6ba(0x2d1)]),_0x9184c2(0x4,_0x3aaa00['Inject'](_0x3aaa00['ThemeService']))],_0x34400b);var _0x1479ed=Object[_0x18d6ba(0x272)],_0x452e09=Object[_0x18d6ba(0x3fd)],_0x66ff29=(_0x3192c,_0x59d446,_0x59a805,_0x58807e)=>{for(var _0x439705=_0x58807e>0x1?void 0x0:_0x58807e?_0x452e09(_0x59d446,_0x59a805):_0x59d446,_0x1d4dbf=_0x3192c['length']-0x1,_0x18f612;_0x1d4dbf>=0x0;_0x1d4dbf--)(_0x18f612=_0x3192c[_0x1d4dbf])&&(_0x439705=(_0x58807e?_0x18f612(_0x59d446,_0x59a805,_0x439705):_0x18f612(_0x439705))||_0x439705);return _0x58807e&&_0x439705&&_0x1479ed(_0x59d446,_0x59a805,_0x439705),_0x439705;},_0x57dddb=(_0x5ad63f,_0x8fa869)=>(_0x23913e,_0x293847)=>_0x8fa869(_0x23913e,_0x293847,_0x5ad63f);let _0x1cd664=class{constructor(_0x31c016,_0xc99831,_0x4f5325){const _0x183797=_0x18d6ba;this[_0x183797(0x394)]=_0x31c016,this['_httpService']=_0xc99831,this[_0x183797(0x2a5)]=_0x4f5325,this[_0x183797(0x367)]();}[_0x18d6ba(0x367)](){const _0x15fdb4=_0x18d6ba;this[_0x15fdb4(0x479)][_0x15fdb4(0x3b4)]({'priority':0x1,'interceptor':(_0x3f1df3,_0x57bf38)=>_0x57bf38(_0x3f1df3)[_0x15fdb4(0x32f)](_0x5cbc6e[_0x15fdb4(0x3b1)](async _0x21f497=>{const _0x26204b=_0x15fdb4,_0x20278b=_0x21f497;if(_0x20278b[_0x26204b(0x322)]===0x191&&window[_0x26204b(0x4be)](this[_0x26204b(0x2a5)]['t'](_0x26204b(0x332)))){const _0x4e0b9b=window[_0x26204b(0x3af)](window['location'][_0x26204b(0x53c)]);window[_0x26204b(0x54d)][_0x26204b(0x53c)]=this[_0x26204b(0x55c)]()+_0x26204b(0x353)+_0x4e0b9b;}return _0x20278b;}))});}[_0x18d6ba(0x55c)](){const _0x4ad677=_0x18d6ba;var _0x339114;return(_0x339114=this[_0x4ad677(0x394)][_0x4ad677(0x499)](_0xbbcc2f))!=null?_0x339114:_0x3a7a02;}};_0x1cd664=_0x66ff29([_0x57dddb(0x0,_0x3aaa00[_0x18d6ba(0x195)]),_0x57dddb(0x1,_0x3aaa00[_0x18d6ba(0x1de)](_0x3e5de5[_0x18d6ba(0x3c9)])),_0x57dddb(0x2,_0x3aaa00['Inject'](_0x3aaa00[_0x18d6ba(0x591)]))],_0x1cd664);var _0x4cebdc=Object['defineProperty'],_0xe37809=Object[_0x18d6ba(0x3fd)],_0x554fde=(_0x41ab34,_0x3290d9,_0x416829,_0xa39d5e)=>{const _0x109f7e=_0x18d6ba;for(var _0x51c4e5=_0xa39d5e>0x1?void 0x0:_0xa39d5e?_0xe37809(_0x3290d9,_0x416829):_0x3290d9,_0x19a2e5=_0x41ab34[_0x109f7e(0x574)]-0x1,_0xae6303;_0x19a2e5>=0x0;_0x19a2e5--)(_0xae6303=_0x41ab34[_0x19a2e5])&&(_0x51c4e5=(_0xa39d5e?_0xae6303(_0x3290d9,_0x416829,_0x51c4e5):_0xae6303(_0x51c4e5))||_0x51c4e5);return _0xa39d5e&&_0x51c4e5&&_0x4cebdc(_0x3290d9,_0x416829,_0x51c4e5),_0x51c4e5;},_0x218b74=(_0x8daee8,_0x2ad432)=>(_0x380bb3,_0x475216)=>_0x2ad432(_0x380bb3,_0x475216,_0x8daee8);const _0x5d6e8c='AUTHZ_URL_KEY',_0x117508='/universer-api/authz';_0x4c54a0[_0x18d6ba(0x3cb)]=class extends _0x3aaa00[_0x18d6ba(0x350)]{constructor(_0x3cd2de,_0x62bac5){const _0x1b9356=_0x18d6ba;super(),this[_0x1b9356(0x32b)]=_0x3cd2de,this[_0x1b9356(0x394)]=_0x62bac5,this[_0x1b9356(0x1e8)]();}[_0x18d6ba(0x1e8)](){const _0x43ea9f=_0x18d6ba,_0x43943b=this;this[_0x43ea9f(0x43a)](this[_0x43ea9f(0x32b)][_0x43ea9f(0x3b4)]({'priority':0x3e7,'interceptor':_0x3e5de5[_0x43ea9f(0x320)]({'isMatch'(_0x5c73fc){const _0x81da58=_0x43ea9f;var _0x4cfcc8;if(_0x5c73fc[_0x81da58(0x33a)]===_0x81da58(0x1dc)&&((_0x4cfcc8=_0x5c73fc[_0x81da58(0x25e)])!=null&&_0x4cfcc8[_0x81da58(0x411)])){const {objectID:_0x564f98,objectType:_0x18df21}=_0x5c73fc[_0x81da58(0x25e)][_0x81da58(0x411)]||{};if(!_0x564f98||_0x18df21===void 0x0)return!0x1;const _0xadb7d1=_0x43943b[_0x81da58(0x4f8)]()+'/'+_0x18df21+_0x81da58(0x351)+_0x564f98+'/allowed';if(_0x5c73fc[_0x81da58(0x3cc)]===_0xadb7d1)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x245a9a){const _0x3718e2=_0x43ea9f;var _0x29e7b0;return(_0x29e7b0=_0x245a9a[_0x3718e2(0x25e)])==null?void 0x0:_0x29e7b0['body'];},'mergeParamsToRequest'(_0x15a458,_0x56b2ff){const _0x229efd=_0x43ea9f,_0x333ee1=_0x43943b[_0x229efd(0x4f8)]()+_0x229efd(0x3ff),_0x587e8f=_0x15a458[_0x229efd(0x58d)]((_0x17cafe,_0x2609f5)=>{const {unitID:_0x22555b,objectID:_0x3b9984,objectType:_0x259fe8,actions:_0x19edbd}=_0x2609f5;return _0x17cafe[_0x22555b]||(_0x17cafe[_0x22555b]={}),_0x17cafe[_0x22555b][_0x3b9984]||(_0x17cafe[_0x22555b][_0x3b9984]={'objectID':_0x3b9984,'objectType':_0x259fe8,'actions':[]}),_0x17cafe[_0x22555b][_0x3b9984]['actions']['push'](..._0x19edbd),_0x17cafe;},{}),_0x2e2fb2=[];for(const _0x86402b in _0x587e8f)for(const _0x30a018 in _0x587e8f[_0x86402b]){const {actions:_0x47199f,objectType:_0x3aa897}=_0x587e8f[_0x86402b][_0x30a018],_0x4d8c03=[...new Set(_0x47199f)];_0x2e2fb2[_0x229efd(0x239)]({'unitID':_0x86402b,'objectID':_0x30a018,'objectType':_0x3aa897,'actions':_0x4d8c03});}return new _0x3e5de5[(_0x229efd(0x26f))]('POST',_0x333ee1,{'headers':_0x56b2ff['headers'],'withCredentials':_0x56b2ff['withCredentials'],'responseType':_0x56b2ff['responseType'],'body':{'requests':_0x2e2fb2}});}},{'distributeResult'(_0x2eee21,_0x44087f){const _0x41dcb4=_0x43ea9f,{objectActions:_0x20171e}=_0x2eee21;return _0x44087f[_0x41dcb4(0x343)](_0x5b954c=>{const _0x332e93=_0x41dcb4,{unitID:_0x13b95b,objectID:_0x1acec9,actions:_0x5a89a2}=_0x5b954c,_0x227f9a=_0x20171e[_0x332e93(0x568)](_0x4234e6=>_0x4234e6[_0x332e93(0x4bb)]===_0x13b95b&&_0x4234e6['objectID']===_0x1acec9),_0x46d650=_0x5a89a2[_0x332e93(0x343)](_0x214e91=>_0x227f9a==null?void 0x0:_0x227f9a['actions'][_0x332e93(0x568)](_0xbc425a=>_0xbc425a[_0x332e93(0x4df)]===_0x214e91))[_0x332e93(0x46d)](_0x4ba4fd=>!!_0x4ba4fd);return{'config':_0x5b954c,'result':{'actions':_0x46d650,'error':_0x2eee21['error']}};});}})}));}[_0x18d6ba(0x4f8)](){const _0x29903e=_0x18d6ba;var _0x2051a0;return(_0x2051a0=this[_0x29903e(0x394)]['getConfig'](_0x5d6e8c))!=null?_0x2051a0:_0x117508;}async[_0x18d6ba(0x4c5)](_0x3afa55){const _0x3df545=_0x18d6ba,_0x2968a5=this[_0x3df545(0x4f8)]()+'/'+_0x3afa55['objectType']+'/object';return(await this[_0x3df545(0x32b)][_0x3df545(0x25c)](_0x2968a5,{'body':_0x3afa55}))['body'][_0x3df545(0x25f)]||'';}async[_0x18d6ba(0x50d)](_0x2454f5){const _0x311192=_0x18d6ba,_0xac9a70=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x311192(0x32b)][_0x311192(0x25c)](_0xac9a70,{'body':_0x2454f5}))[_0x311192(0x411)]['objects'];}async[_0x18d6ba(0x20d)](_0x10af13){const _0x2a0ee2=_0x18d6ba,_0x388aa5=this[_0x2a0ee2(0x4f8)]()+'/'+_0x10af13[_0x2a0ee2(0x2c6)]+_0x2a0ee2(0x351)+_0x10af13[_0x2a0ee2(0x25f)];await this[_0x2a0ee2(0x32b)][_0x2a0ee2(0x2de)](_0x388aa5,{'body':_0x10af13});}async[_0x18d6ba(0x2c5)](_0x85e56a){const _0x16d5a2=_0x18d6ba,_0x5b9d95=this[_0x16d5a2(0x4f8)]()+'/'+_0x85e56a[_0x16d5a2(0x2c6)]+_0x16d5a2(0x351)+_0x85e56a[_0x16d5a2(0x25f)]+_0x16d5a2(0x199);return(await this[_0x16d5a2(0x32b)][_0x16d5a2(0x25c)](_0x5b9d95,{'body':_0x85e56a}))['body'][_0x16d5a2(0x51f)];}async[_0x18d6ba(0x190)](_0x3447bd){const _0x36b962=_0x18d6ba,_0x125b09=this[_0x36b962(0x4f8)]()+_0x36b962(0x3ff);return(await this[_0x36b962(0x32b)]['post'](_0x125b09,{'body':{'requests':_0x3447bd}}))['body'][_0x36b962(0x4d8)];}async['listRoles'](_0xcb6bea){const _0x4fdad1=_0x18d6ba,_0x36e3e2=this['_getAPIPrefixPath']()+'/'+_0xcb6bea['objectType']+'/role',_0x5b57b0=await this[_0x4fdad1(0x32b)][_0x4fdad1(0x25c)](_0x36e3e2,{'body':_0xcb6bea});return{'roles':_0x5b57b0[_0x4fdad1(0x411)][_0x4fdad1(0x3d8)],'actions':_0x5b57b0[_0x4fdad1(0x411)][_0x4fdad1(0x51f)]};}async[_0x18d6ba(0x3d4)](_0x2dc659){const _0x926ab5=_0x18d6ba,_0x55dbd0=this[_0x926ab5(0x4f8)]()+_0x926ab5(0x2a4);await this[_0x926ab5(0x32b)][_0x926ab5(0x466)](_0x55dbd0,{'params':{'collaboratorID':_0x2dc659[_0x926ab5(0x3d5)],'objectID':_0x2dc659['objectID'],'unitID':_0x2dc659[_0x926ab5(0x4bb)]}});}async[_0x18d6ba(0x403)](_0x42fb6e){const _0x53d929=_0x18d6ba,_0x5a2ea3=this[_0x53d929(0x4f8)]()+_0x53d929(0x2a4);await this['_HTTPService'][_0x53d929(0x3e1)](_0x5a2ea3,{'body':_0x42fb6e});}async['createCollaborator'](_0x2ec6ca){const _0x512566=_0x18d6ba,_0x26045e=this[_0x512566(0x4f8)]()+_0x512566(0x2a4);await this[_0x512566(0x32b)][_0x512566(0x25c)](_0x26045e,{'body':_0x2ec6ca});}async[_0x18d6ba(0x565)](_0x4a574a){const _0x11f3e6=_0x18d6ba,_0x20c054=this[_0x11f3e6(0x4f8)]()+_0x11f3e6(0x2a4);return(await this['_HTTPService'][_0x11f3e6(0x3e4)](_0x20c054,{'params':{'objectID':_0x4a574a[_0x11f3e6(0x25f)],'unitID':_0x4a574a['unitID']}}))['body'][_0x11f3e6(0x51e)];}async[_0x18d6ba(0x385)](_0x33a9b4){const _0x5f2f63=_0x18d6ba,_0x22148e=this[_0x5f2f63(0x4f8)]()+_0x5f2f63(0x2a4);await this[_0x5f2f63(0x32b)]['put'](_0x22148e,{'body':_0x33a9b4});}},_0x4c54a0[_0x18d6ba(0x3cb)]=_0x554fde([_0x218b74(0x0,_0x3aaa00[_0x18d6ba(0x1de)](_0x3e5de5[_0x18d6ba(0x3c9)])),_0x218b74(0x1,_0x3aaa00['Inject'](_0x3aaa00[_0x18d6ba(0x195)]))],_0x4c54a0[_0x18d6ba(0x3cb)]);var _0x4e6c84=Object[_0x18d6ba(0x272)],_0x10c43c=Object[_0x18d6ba(0x3fd)],_0x52e8d3=(_0x56a921,_0x250d72,_0x44ca6a,_0x53023c)=>{const _0x3d625d=_0x18d6ba;for(var _0x4aeb34=_0x53023c>0x1?void 0x0:_0x53023c?_0x10c43c(_0x250d72,_0x44ca6a):_0x250d72,_0x3056a1=_0x56a921[_0x3d625d(0x574)]-0x1,_0x10fc3a;_0x3056a1>=0x0;_0x3056a1--)(_0x10fc3a=_0x56a921[_0x3056a1])&&(_0x4aeb34=(_0x53023c?_0x10fc3a(_0x250d72,_0x44ca6a,_0x4aeb34):_0x10fc3a(_0x4aeb34))||_0x4aeb34);return _0x53023c&&_0x4aeb34&&_0x4e6c84(_0x250d72,_0x44ca6a,_0x4aeb34),_0x4aeb34;},_0x27ef06=(_0x3ee263,_0x546c82)=>(_0x399ff7,_0x1c145c)=>_0x546c82(_0x399ff7,_0x1c145c,_0x3ee263);const _0x397723=[_0x18d6ba(0x3b3),_0x18d6ba(0x534),_0x18d6ba(0x422),'image/gif',_0x18d6ba(0x4d6)],_0x21aeb5=0x5*0x400*0x400,_0x54d4ef=_0x18d6ba(0x405),_0x29b238=_0x18d6ba(0x20e),_0x46599a=_0x18d6ba(0x301),_0x18ec03=_0x18d6ba(0x535);_0x4c54a0['ImageIoService']=class{constructor(_0x508570,_0x4d9fc5,_0x2d94fa){const _0xf164e8=_0x18d6ba;_0x2c46b8(this,_0xf164e8(0x384),0x0),_0x2c46b8(this,_0xf164e8(0x3e0),new _0x5cbc6e['Subject']()),_0x2c46b8(this,_0xf164e8(0x297),this[_0xf164e8(0x3e0)]),_0x2c46b8(this,_0xf164e8(0x49b),new Map()),(this[_0xf164e8(0x479)]=_0x508570,this[_0xf164e8(0x394)]=_0x4d9fc5,this['_univerInstanceService']=_0x2d94fa);}[_0x18d6ba(0x3e3)](_0x526429){const _0x1c3b8d=_0x18d6ba;this[_0x1c3b8d(0x384)]=_0x526429,this[_0x1c3b8d(0x3e0)][_0x1c3b8d(0x1c5)](_0x526429);}[_0x18d6ba(0x4aa)](_0x202d16,_0x4fd752){const _0x1b6e2b=_0x18d6ba;if(_0x4fd752===_0x297e96[_0x1b6e2b(0x2b8)][_0x1b6e2b(0x4d1)]){const _0x5664de=new Image();return _0x5664de['src']=_0x202d16,_0x5664de;}return this[_0x1b6e2b(0x49b)][_0x1b6e2b(0x3e4)](_0x202d16);}[_0x18d6ba(0x504)](_0x91e2b8,_0x462946,_0x4e1240){const _0x181eb8=_0x18d6ba;_0x462946===_0x297e96['ImageSourceType'][_0x181eb8(0x4d1)]||_0x4e1240==null||this[_0x181eb8(0x49b)][_0x181eb8(0x2a6)](_0x91e2b8,_0x4e1240);}async[_0x18d6ba(0x4dd)](_0x55d21f){const _0x3a98b5=_0x18d6ba;try{const _0x4b5164=this[_0x3a98b5(0x27a)](this[_0x3a98b5(0x583)](),''+_0x55d21f),_0x4b04cc=(await this[_0x3a98b5(0x479)][_0x3a98b5(0x3e4)](_0x4b5164))[_0x3a98b5(0x411)];return _0x4b04cc['error']&&_0x4b04cc[_0x3a98b5(0x4ae)][_0x3a98b5(0x406)]===_0x5c79e0['OK']?Promise['resolve'](_0x4b04cc[_0x3a98b5(0x3cc)]):Promise[_0x3a98b5(0x1d3)](_0x4b04cc[_0x3a98b5(0x4ae)]);}catch(_0x4855cf){return Promise[_0x3a98b5(0x1d3)](_0x4855cf);}}async[_0x18d6ba(0x34b)](_0xc36e8e){const _0x51a315=_0x18d6ba;let _0x5df095='';if(!_0x397723[_0x51a315(0x300)](_0xc36e8e['type']))return this[_0x51a315(0x432)](),Promise[_0x51a315(0x1d3)](new Error(_0x297e96[_0x51a315(0x3fe)]['ERROR_IMAGE_TYPE']));if(_0xc36e8e[_0x51a315(0x378)]>_0x21aeb5)return this[_0x51a315(0x432)](),Promise[_0x51a315(0x1d3)](new Error(_0x297e96[_0x51a315(0x3fe)][_0x51a315(0x53e)]));try{const _0x4269a9=new FormData();_0x4269a9[_0x51a315(0x317)](_0x51a315(0x1a9),_0xc36e8e);const _0x3a578b=this[_0x51a315(0x318)]['getFocusedUnit'](),_0x5d40cc=_0x3a578b==null?void 0x0:_0x3a578b[_0x51a315(0x4b6)]();if(!_0x5d40cc)throw new Error('unitId\x20is\x20not\x20found');const _0x1de5de=this[_0x51a315(0x4ac)]()+'?size='+_0xc36e8e['size'][_0x51a315(0x1fb)]()+_0x51a315(0x1ea)+_0x306c39['UnitEmbedded']+_0x51a315(0x213)+encodeURIComponent(_0x5d40cc),_0x58cb87=await(await fetch(_0x1de5de,{'method':_0x51a315(0x1dc),'body':_0x4269a9}))[_0x51a315(0x575)]();if(typeof _0x58cb87[_0x51a315(0x51b)]!=_0x51a315(0x1be))return this[_0x51a315(0x432)](),Promise[_0x51a315(0x1d3)](new Error(_0x297e96[_0x51a315(0x3fe)]['ERROR_IMAGE']));_0x5df095=_0x58cb87[_0x51a315(0x51b)];}catch{return this[_0x51a315(0x432)](),Promise['reject'](new Error(_0x297e96[_0x51a315(0x3fe)][_0x51a315(0x4cb)]));}return new Promise((_0xfe4f1b,_0x4f6abb)=>{const _0x380f5c=_0x51a315,_0xacf7a6=new FileReader();_0xacf7a6[_0x380f5c(0x1ae)](_0xc36e8e),_0xacf7a6[_0x380f5c(0x399)]=_0x2c4a8d=>{const _0x5cfc35=_0x380f5c;var _0x24b275;const _0x18eb49=(_0x24b275=_0x2c4a8d[_0x5cfc35(0x255)])==null?void 0x0:_0x24b275[_0x5cfc35(0x442)];if(_0x18eb49==null){this[_0x5cfc35(0x432)](),_0x4f6abb(new Error(_0x297e96['ImageUploadStatusType']['ERROR_IMAGE']));return;}const _0xefb0fc=_0x3aaa00[_0x5cfc35(0x2dd)]['generateRandomId'](0x6);_0xfe4f1b({'imageId':_0xefb0fc,'imageSourceType':_0x297e96[_0x5cfc35(0x2b8)]['UUID'],'source':_0x5df095,'base64Cache':_0x18eb49,'status':_0x297e96['ImageUploadStatusType'][_0x5cfc35(0x254)]}),this[_0x5cfc35(0x432)]();};});}[_0x18d6ba(0x4ac)](){const _0x143a9f=_0x18d6ba;var _0x5478b3;return(_0x5478b3=this['_configService'][_0x143a9f(0x499)](_0x54d4ef))!=null?_0x5478b3:_0x29b238;}[_0x18d6ba(0x583)](){const _0x3ad233=_0x18d6ba;var _0x183488;return(_0x183488=this['_configService'][_0x3ad233(0x499)](_0x46599a))!=null?_0x183488:_0x18ec03;}[_0x18d6ba(0x27a)](_0x2f1313,_0x81b97b){const _0x324233=_0x18d6ba;return _0x2f1313[_0x324233(0x44b)](_0x324233(0x1bd),_0x81b97b);}[_0x18d6ba(0x432)](){const _0x55aba0=_0x18d6ba;this[_0x55aba0(0x384)]-=0x1,this[_0x55aba0(0x3e0)][_0x55aba0(0x1c5)](this[_0x55aba0(0x384)]);}},_0x4c54a0[_0x18d6ba(0x2bf)]=_0x52e8d3([_0x27ef06(0x0,_0x3aaa00[_0x18d6ba(0x1de)](_0x3e5de5[_0x18d6ba(0x3c9)])),_0x27ef06(0x1,_0x3aaa00[_0x18d6ba(0x195)]),_0x27ef06(0x2,_0x3aaa00['Inject'](_0x3aaa00[_0x18d6ba(0x2d5)]))],_0x4c54a0['ImageIoService']);var _0x9d25da=Object[_0x18d6ba(0x272)],_0x203beb=Object['getOwnPropertyDescriptor'],_0x2db9ec=(_0x4475a1,_0x3c37c4,_0x2e22b6,_0x485b0c)=>{for(var _0x243713=_0x485b0c>0x1?void 0x0:_0x485b0c?_0x203beb(_0x3c37c4,_0x2e22b6):_0x3c37c4,_0x2ffd2c=_0x4475a1['length']-0x1,_0x411b48;_0x2ffd2c>=0x0;_0x2ffd2c--)(_0x411b48=_0x4475a1[_0x2ffd2c])&&(_0x243713=(_0x485b0c?_0x411b48(_0x3c37c4,_0x2e22b6,_0x243713):_0x411b48(_0x243713))||_0x243713);return _0x485b0c&&_0x243713&&_0x9d25da(_0x3c37c4,_0x2e22b6,_0x243713),_0x243713;},_0x23da4f=(_0x5e17b4,_0x122117)=>(_0x3c4a33,_0x2bbfc8)=>_0x122117(_0x3c4a33,_0x2bbfc8,_0x5e17b4);let _0x362d92=class extends _0x3aaa00[_0x18d6ba(0x2ec)]{constructor(_0x34fd75,_0x19ea6b,_0x258e23,_0x47c1d8,_0x418d38){const _0x1637ed=_0x18d6ba;super(),this[_0x1637ed(0x42c)]=_0x34fd75,this[_0x1637ed(0x318)]=_0x19ea6b,this[_0x1637ed(0x55a)]=_0x258e23,this[_0x1637ed(0x18d)]=_0x47c1d8,this['_localeService']=_0x418d38,this[_0x1637ed(0x298)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x29b35b=_0x18d6ba,_0x49b8d1=async _0x10908a=>{const _0x2b31ca=_0x3d0e;(await this[_0x2b31ca(0x18d)][_0x2b31ca(0x3a3)](_0x10908a))[_0x2b31ca(0x2f0)]['pipe'](_0x267050[_0x2b31ca(0x46d)](_0x24146b=>_0x24146b['eventID']===_0x4d4d9d['CollaborationEvent'][_0x2b31ca(0x2d7)]),_0x267050['takeUntil'](this['dispose$']))['subscribe'](_0x3bdd65=>{const _0xa732b6=_0x2b31ca,_0x3df945=_0x3bdd65,{reason:_0xe92286}=_0x3df945['data'];this['_injector']['get'](_0x2b4c8d[_0xa732b6(0x57b)])['show']({'type':_0x564857['MessageType']['Error'],'content':this[_0xa732b6(0x43e)]['t']('collaboration.closeRoom')+'('+_0xe92286+')'}),this[_0xa732b6(0x55a)][_0xa732b6(0x198)](new _0x459c9c['WorkbookEditablePermission'](_0x10908a)['id'],!0x1),this[_0xa732b6(0x18d)][_0xa732b6(0x592)](_0x10908a);});};_0x5cbc6e['merge'](this[_0x29b35b(0x318)]['getTypeOfUnitAdded$'](_0x3aaa00['UniverInstanceType'][_0x29b35b(0x18a)]),this['_univerInstanceService'][_0x29b35b(0x2e8)](_0x3aaa00[_0x29b35b(0x434)]['UNIVER_DOC']))[_0x29b35b(0x32f)](_0x267050[_0x29b35b(0x343)](_0x26cf4b=>_0x26cf4b[_0x29b35b(0x4b6)]()),_0x267050[_0x29b35b(0x46d)](_0x1bfe5d=>!_0x3aaa00[_0x29b35b(0x324)](_0x1bfe5d)),_0x267050['takeUntil'](this[_0x29b35b(0x505)]))[_0x29b35b(0x559)](_0x35c48b=>{_0x49b8d1(_0x35c48b);});}[_0x18d6ba(0x298)](){const _0x5a6692=_0x18d6ba,_0x6e58ba=async _0x59b056=>{const _0x5d4470=_0x3d0e;(await this[_0x5d4470(0x18d)][_0x5d4470(0x3a3)](_0x59b056))[_0x5d4470(0x2f0)]['pipe'](_0x267050['filter'](_0x351da5=>_0x351da5[_0x5d4470(0x539)]===_0x4d4d9d[_0x5d4470(0x2ae)]['UPDATE_PERMISSION_OBJ']),_0x267050[_0x5d4470(0x40b)](this[_0x5d4470(0x505)]))['subscribe'](_0x19b204=>{const _0x4e55c0=_0x5d4470,_0x47899e=_0x19b204,{objectId:_0x31e471}=_0x47899e[_0x4e55c0(0x44f)],_0x571b00=this[_0x4e55c0(0x42c)][_0x4e55c0(0x3e4)](_0xf60f4c[_0x4e55c0(0x464)]);_0x31e471===_0x59b056?_0x571b00[_0x4e55c0(0x397)](_0x59b056):_0x571b00[_0x4e55c0(0x3cf)](_0x59b056,_0x31e471);});};_0x5cbc6e[_0x5a6692(0x424)](this[_0x5a6692(0x318)]['getTypeOfUnitAdded$'](_0x3aaa00['UniverInstanceType'][_0x5a6692(0x18a)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3aaa00[_0x5a6692(0x434)][_0x5a6692(0x4c1)]))[_0x5a6692(0x32f)](_0x267050[_0x5a6692(0x343)](_0x78acb=>_0x78acb[_0x5a6692(0x4b6)]()),_0x267050['filter'](_0x19454e=>!_0x3aaa00[_0x5a6692(0x324)](_0x19454e)),_0x267050['takeUntil'](this[_0x5a6692(0x505)]))['subscribe'](_0x4ac1e9=>{_0x6e58ba(_0x4ac1e9);});}};_0x362d92=_0x2db9ec([_0x3aaa00['OnLifecycle'](_0x3aaa00[_0x18d6ba(0x4ff)][_0x18d6ba(0x1d5)],_0x362d92),_0x23da4f(0x0,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00[_0x18d6ba(0x56f)])),_0x23da4f(0x1,_0x3aaa00[_0x18d6ba(0x2d5)]),_0x23da4f(0x2,_0x3aaa00[_0x18d6ba(0x23f)]),_0x23da4f(0x3,_0x3aaa00[_0x18d6ba(0x1de)](_0x4c54a0['CollaborationSessionService'])),_0x23da4f(0x4,_0x3aaa00['Inject'](_0x3aaa00[_0x18d6ba(0x591)]))],_0x362d92);var _0xfbe36a=Object[_0x18d6ba(0x272)],_0xe2b2fe=Object[_0x18d6ba(0x3fd)],_0x598f30=(_0x22091a,_0x60309d,_0x4d4a6f)=>_0x60309d in _0x22091a?_0xfbe36a(_0x22091a,_0x60309d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d4a6f}):_0x22091a[_0x60309d]=_0x4d4a6f,_0x5bf1ec=(_0x22066c,_0x43d9ef,_0x561bd3,_0x5be4e9)=>{const _0x3ac404=_0x18d6ba;for(var _0x5e2935=_0x5be4e9>0x1?void 0x0:_0x5be4e9?_0xe2b2fe(_0x43d9ef,_0x561bd3):_0x43d9ef,_0x289818=_0x22066c[_0x3ac404(0x574)]-0x1,_0x5b6cdd;_0x289818>=0x0;_0x289818--)(_0x5b6cdd=_0x22066c[_0x289818])&&(_0x5e2935=(_0x5be4e9?_0x5b6cdd(_0x43d9ef,_0x561bd3,_0x5e2935):_0x5b6cdd(_0x5e2935))||_0x5e2935);return _0x5be4e9&&_0x5e2935&&_0xfbe36a(_0x43d9ef,_0x561bd3,_0x5e2935),_0x5e2935;},_0x2d7c2c=(_0x2f01a7,_0xc4a389)=>(_0x2bf76d,_0x253a50)=>_0xc4a389(_0x2bf76d,_0x253a50,_0x2f01a7),_0x33f7b3=(_0x12c913,_0x23f620,_0x47c378)=>_0x598f30(_0x12c913,_0x23f620+'',_0x47c378);const _0x1d44a6='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x4c54a0[_0x18d6ba(0x36f)]=class extends _0x3aaa00[_0x18d6ba(0x36a)]{constructor(_0x484edc,_0x479696,_0x36e6cb,_0x36f6e1){const _0x3f763d=_0x18d6ba;super(),this['_config']=_0x484edc,this[_0x3f763d(0x36e)]=_0x479696,this['_renderManagerService']=_0x36e6cb,this['_injector']=_0x36f6e1;}[_0x18d6ba(0x41e)](){const _0xb3b283=_0x18d6ba;this[_0xb3b283(0x290)]();}[_0x18d6ba(0x4ea)](){const _0x43c5f7=_0x18d6ba;this[_0x43c5f7(0x4fc)]();}[_0x18d6ba(0x290)](){const _0x1760f3=_0x18d6ba;var _0x3b58d7,_0x5da961,_0xb9a045,_0x2dcabe;this[_0x1760f3(0x42c)]['has'](_0x3aaa00[_0x1760f3(0x256)])&&this[_0x1760f3(0x36e)]['error'](_0x1760f3(0x484),_0x1760f3(0x3ca));let _0x395e47=[[_0x3aaa00[_0x1760f3(0x256)],{'useClass':_0x3ff707}],[_0x4c54a0[_0x1760f3(0x22b)]],[_0x195451],[_0x3e5de5[_0x1760f3(0x3c9)]],[_0x44b27e,{'useClass':_0x39bc2e}],[_0x107a5c],[_0x4c54a0[_0x1760f3(0x362)]],[_0x3e5de5[_0x1760f3(0x400)]],[_0x13a645],[_0x49b741],[_0x5f1add],[_0x301e57],[_0x1cd664],[_0x285dfb],[_0x362d92],[_0x41bd32,{'useClass':(_0x5da961=(_0x3b58d7=this[_0x1760f3(0x1b7)])==null?void 0x0:_0x3b58d7[_0x1760f3(0x45c)])!=null?_0x5da961:_0x4c54a0[_0x1760f3(0x438)]}],[_0x3e5de5[_0x1760f3(0x295)],{'useClass':_0x3e5de5['XHRHTTPImplementation']}],[_0x3aaa00['ISnapshotServerService'],{'useClass':_0x4c54a0[_0x1760f3(0x214)]}],[_0x3aaa00[_0x1760f3(0x18e)],{'useClass':_0x4c54a0[_0x1760f3(0x3cb)]}],[_0x297e96['IImageIoService'],{'useClass':_0x4c54a0['ImageIoService']}],[_0x4c54a0[_0x1760f3(0x2c0)]],[_0x4c54a0[_0x1760f3(0x24d)]],[_0x4c54a0[_0x1760f3(0x235)]],[_0x22268e],[_0x1fa692]];(_0xb9a045=this[_0x1760f3(0x1b7)])!=null&&_0xb9a045[_0x1760f3(0x1a7)]&&_0x395e47['push']([_0x3a8c8d,{'useClass':_0x12cc97}]),_0x395e47=_0x3aaa00[_0x1760f3(0x35c)](_0x395e47,(_0x2dcabe=this[_0x1760f3(0x1b7)])==null?void 0x0:_0x2dcabe[_0x1760f3(0x507)]),_0x395e47[_0x1760f3(0x387)](_0x5687bc=>this['_injector']['add'](_0x5687bc)),this['_initModules']();}[_0x18d6ba(0x4fc)](){const _0x42e31b=_0x18d6ba;this[_0x42e31b(0x43a)](this['_renderManagerService']['registerRenderModule'](_0x3aaa00['UniverInstanceType'][_0x42e31b(0x4c1)],[_0x34400b])),this[_0x42e31b(0x43a)](this[_0x42e31b(0x299)][_0x42e31b(0x54f)](_0x3aaa00[_0x42e31b(0x434)]['UNIVER_SHEET'],[_0x20a294]));}['_initModules'](){const _0x33ae52=_0x18d6ba;var _0x13017d,_0x2e8f36;this[_0x33ae52(0x42c)]['get'](_0x3e5de5[_0x33ae52(0x3c9)])[_0x33ae52(0x3b4)]({'priority':0x14,'interceptor':_0x3e5de5[_0x33ae52(0x56d)]({'maxParallel':0x6})}),(_0x13017d=this[_0x33ae52(0x1b7)])!=null&&_0x13017d[_0x33ae52(0x1cc)]||this['_injector'][_0x33ae52(0x3e4)](_0x4c54a0['LocalCacheService'])[_0x33ae52(0x330)](),(_0x2e8f36=this['_config'])!=null&&_0x2e8f36['enableAuthServer']&&this[_0x33ae52(0x42c)][_0x33ae52(0x3e4)](_0x1cd664);}},_0x33f7b3(_0x4c54a0[_0x18d6ba(0x36f)],'pluginName',_0x1d44a6),_0x4c54a0['UniverCollaborationClientPlugin']=_0x5bf1ec([_0x3aaa00[_0x18d6ba(0x220)](_0x4d4d9d[_0x18d6ba(0x398)]),_0x2d7c2c(0x1,_0x3aaa00[_0x18d6ba(0x42a)]),_0x2d7c2c(0x2,_0x3b10b4['IRenderManagerService']),_0x2d7c2c(0x3,_0x3aaa00[_0x18d6ba(0x1de)](_0x3aaa00['Injector']))],_0x4c54a0['UniverCollaborationClientPlugin']),_0x4c54a0[_0x18d6ba(0x38a)]=_0x5d6e8c,_0x4c54a0[_0x18d6ba(0x333)]=_0x9f6d65,_0x4c54a0['COLLAB_WEB_SOCKET_URL_KEY']=_0xdc44de,_0x4c54a0[_0x18d6ba(0x191)]=_0x2232ef,_0x4c54a0['CollaborationStatusDisplay']=_0x89a6f8,_0x4c54a0[_0x18d6ba(0x4d2)]=_0x285dfb,_0x4c54a0[_0x18d6ba(0x20c)]=_0x1d14f0,_0x4c54a0[_0x18d6ba(0x4d4)]=_0x2689b9,_0x4c54a0[_0x18d6ba(0x42d)]=_0x41bd32,_0x4c54a0['IURLService']=_0x44b27e,_0x4c54a0[_0x18d6ba(0x18b)]=_0x6e910a,_0x4c54a0[_0x18d6ba(0x46e)]=_0xbbcc2f,_0x4c54a0[_0x18d6ba(0x34d)]=_0x3867e3,_0x4c54a0[_0x18d6ba(0x306)]=_0x4bec73,_0x4c54a0['SNAPSHOT_URL_KEY']=_0x37c740,_0x4c54a0[_0x18d6ba(0x50a)]=_0x2cd85f,_0x4c54a0[_0x18d6ba(0x4c0)]=_0xa0f57e,_0x4c54a0[_0x18d6ba(0x3ed)]=_0x39bc2e,_0x4c54a0[_0x18d6ba(0x562)]=_0x28e9a6,_0x4c54a0[_0x18d6ba(0x392)]=_0x488e2c,Object[_0x18d6ba(0x272)](_0x4c54a0,Symbol['toStringTag'],{'value':_0x18d6ba(0x358)});}));function _0x3d0e(_0x2ea574,_0x1b4889){const _0x74610d=_0x7461();return _0x3d0e=function(_0x3d0e42,_0x4b45c4){_0x3d0e42=_0x3d0e42-0x189;let _0x68da8b=_0x74610d[_0x3d0e42];return _0x68da8b;},_0x3d0e(_0x2ea574,_0x1b4889);}function _0x7461(){const _0x56da25=['status$','addImageSourceCache','dispose$','IMEInputManagerService','override','_collaborationTimeoutTimer','_state','SessionStatus','isValidRectRange','object','list','getVpScrollXYInfoByPosToVp','MSG_FOR_ERROR','MUTATION','M0\x200H16V16H0z','LIVESHARE_TERMINATE','_commandService','LICENSE_DISTRO_REJECTED','concat','_createInitialState','@univerjs/engine-render','SetWorksheetActivateCommand','bottom','_snapshotService','FileId','InsertSheetMutation','min','collaborators','actions','_docTransformIMECacheService','_onCursorDelete','isTransformMutationFailure','_cursorShapes','_collaborationController','_transformIMECache','loadDoc','_collabCursorController','_onConnectionFailed','newCsEvent','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','lodash/debounce','PSEUDO_FETCH_MISSING_RESULT','sheetID','@univerjs/network','failed\x20to\x20apply\x20missed\x20changesets!','[OfflineState]:\x20received\x20acknowledgement.','verdancy600','getSkeleton','urlChange$','image/jpeg','/universer-api/file/{fileID}/sign-url','[OfflineState]:\x20received\x20changeset.','onStateChange','_members','eventID','onRemoteRej','DisposableCollection','href','_awaitingChangeset','ERROR_EXCEED_SIZE','collaboration.single-unit.warning','InsertRangeMoveRightCommandId','_roomMembers$','_applyRemoteChangeset','type','SNAPSHOT_HAS_BEEN_REMOVED','isPermissionRej','switchMap','collabStatus.conflict','_updateLocalCache','Error\x20on\x20receiving\x20event','open$','symbol','pauseCollaboration','location','_onMessage','registerRenderModule','4142330swXXtF','getTypeOfUnitDisposed$','_onJoinRoomEvent','permission.title','appendMutation','_clearUndo','debounceTime','NodePositionConvertToRectRange','doc.mutation.rich-text-editing','subscribe','_permissionService','hide','_getLoginPath','generateRandomId','AWAITING_WITH_PENDING','setCurrentUser','_scheduleSaving','params','deserializeToCombResponse','_clearRedo','_heartbeatTimer','listCollaborators','CONFLICT','fetching\x20missing\x20changesets\x20from\x20','find','_urlService','then','_entities','onlyLocal','ThresholdInterceptorFactory','DeleteRangeMoveUpCommandId','Injector','_joinRoom','textEncoder','handleDeleteRangeMoveUp','_handleHeartbeatEvent','length','json','_clearScheduledTask','_cursors','SEND_CHANGESET_TIMEOUT','resourceIDs','_getSendChangesetTimeout','IMessageService','mapTo','getCurrentSelections','_acknowledgedAwaitingChangeset','hovered','clear','complete','13wWjcQK','_getSignURL','round','getCurrentUnitForType','endColumn','_sessions','transformMutationsWithChangeset','changesets','replaceState','prototype','APPLY_REVISION_CONFILICT','reduce','HEARTBEAT_INTERVAL','toggleOnline','onlineStatusTitle','LocaleService','closeSession','_socketService','unitId','UNIVER_SHEET','LOCAL_CACHE_INTERVAL_KEY','179rtQPvD','_collaborationSessionService','IAuthzIoService','_labelPosition','batchAllowed','CollaborationStatus','@univerjs/ui','combineLatest','_syncEditingCollabCursor','IConfigService','cmd','_clearCollaborationTimeoutTimer','updatePermissionPoint','/allowed','awaiting','ColorKit','unsubscribe','transformIMECache','onPointerEnter$','purple300','fill','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','transform','_session','userID','_createHandler','ILocalStorageService','enableSingleActiveInstanceLock','[CollaborationUndoRedoService]','file','entries','_docStateChangeManagerService','text','handleDeleteRangeMoveLeft','readAsDataURL','black','_saveCache','use','unit','@univerjs/design','onRemoteChangeset','getTime','function','_config','_transformUndoRedoStack','SheetSkeletonManagerService','substring','\x0aCurrent:\x20','startRow','{fileID}','string','_collaborationPaused','url(#on-line-single_clip0_910_349)','onCommandExecuted','setParam','LEAVE','collab-text-range-','next','getMemberID','blue400','UserManagerService','getAncestorScale','_updateURLWithCurrentState','originalMeta','enableOfflineEditing','toDisposable','_removeRoom','online','_onLocalMutation','univer-pro.collaboration-client-socket-service','m2Prime','reject','saveSheetBlock','Starting','_updateCollabCursors','_removeCollabCursors','getUniverSheetInstance','parseChangesetToProtocol','saveChangeset','transformMutation','POST','OffLineSingle','Inject','RemoveColCommandId','LICENSE_EXPORT_SIZE_EXCEEDED','message$','resize','_onFetchMissResult','on-line-single_clip0_910_349','NOT_COLLAB','RETRY_CONNECTING_INTERVAL','getUndoRedoMutationParamsCache','_initMergeInterceptor','toggleOffline','&source=','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','BehaviorSubject','PENDING','loadOfflineData','handleInsertRangeMoveRight','8VanxgH','stringify','div','TEXT_RANGE_LAYER_INDEX','_onRemoteACK','createSocket','setAlpha','state','OFFLINE','1em','getSheetId','toString','onRemoteAck','SUBMIT_CHANGESET','CHANGESET_REVISION_CONFILICT','findNodePositionByCharIndex','_unitOnClients','getRoom','_commentUpdate$','NodePositionConvertToCursor','focused$','&to=','_notificationService','state$','addEventListener','subscribeEvent','LIVESHARE_FETCH_OPERATIONS','_transformRemoteChangesetByIMECache','HEARTBEAT_INTERVAL_KEY','update','/universer-api/stream/file/upload','_queuedRemoteChangesets','\x20to\x20','children','_localStorageService','&assign=','SnapshotServerOverHTTPService','COMPRESS_MUTATION_SEND','_range','13954KojmlX','idSuffix','ONLINE','_messageService','_unlockTransition','LIVESHARE_OPERATION','[FetchMissState]','getCollabCursors$','off-line-single_clip0_910_343','DependentOn','_name','856473PTqCJn','pending','_hover','_status$','getRelativeToViewportCoord','socket\x20open.','#FFF','memberID','COMMENT_UPDATE','CollaborationSessionService','[CollaborationState]:\x20apply\x20error!','addObject','Undefined','add','_updateStatus','_updateSubUnitFromURLParams','_syncEditingCollabCursorService','_disabled','_onRemoteRejected','DesktopCollaborationStatusDisplayController','UniverUi','INotificationService','_initStatusListener','push','every','1055HyEGMS','_beforeCloseService','_anchor','_drawRectRange','IPermissionService','take','_memberService','_retryConnectingTimer','_executeRemoteChangeset','DocStateChangeManagerService','univerjs-icon\x20univerjs-icon-','debounce','getUnitType','_startCollaboration','_compressMutationService','univer-offline','_updateState','univer-online','DataLoaderController','saveSnapshot','conflict','RemoveRowCommandId','indexOf','permissionRejEvent','@univerjs/core','SUCCUSS','target','IUndoRedoService','forwardRef','useDependency','submit\x20changeset\x20error!','_onUserJoin','_onCursorUpdate','post','_transitionLocked','requestParams','objectID','MessageType','_snapshotServerService','encode','_socket$','awaitingChangeset','React','setActiveRange','_cachedData','_socketMessageSubscription','_substituteUndoStack','key','_fetchMissChangesets','_hovered','SheetCollaborationEntity','csAckEvent','HTTPRequest','_send','save','defineProperty','socket\x20close','SYNCED','history','_socket','session.connection-failed','range','OnLifecycle','_replaceFileID','subunit','NEW_CHANGESETS','error$','shareReplay','deserializeRangeWithSheet','/block/','fillRule','_scheduleReconnection','\x20-\x20','getOwnPropertySymbols','max','_init','\x0aAfter:\x20','lineTo','collab-rect-range-','CompressMutationService','TOO_MANY_REQUESTS','asObservable','SheetsSelectionsService','fetch_missing','IBeforeCloseService','_registerDependencies','...','revision','_remoteChangesetQueue','_handleJoinEvent','IHTTPImplementation','lodash','change$','_initUnitPermissionChange','_renderManagerService','SetDocZoomRatioOperation','onMouseMove','translate(.97)','routeKey','_docSkeleton','_sheetTransformSelectionsService','DeleteRangeMoveLeftCommandId','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_online','WorkbookEditablePermission','/collaborator','localeService','set','csRejEvent','LICENSE_MAX_UNITS_EXCEEDED','_colorAssignService','onTransformSelections','_showConflictNotification','getActiveSheet','UNKNOWN_CODE','CollaborationEvent','values','@univerjs/docs','/resources','EmptyMutation','_clearHeartbeatTimer','_revisionService','8590116RpDOBJ','PERMISSION_DENIED','extend','ImageSourceType','_sendHeartbeat','HttpExport','onSendChangeset','loadSheet','getUnitStatus$','isTransformMutationsWithChangesetSuccess','ImageIoService','CollaborationController','getMember','_scheduleClearOtherTimer','_unitID','arc','allowed','objectType','_handler','selections','Workbook','UNDEFINED','exports','NOT_FOUND','getCellPositionByOffset','some','APPLY_NON_SEQUENTIAL_REVISION','[CollaborationSession]','ICommandService','3741864oaNvlW','FETCH_MISSING','getWorkbookSelections','IUniverInstanceService','registerRefRange','SHOULD_CLOSE_CONN','[CollaborationSessionService]','icon','[CollaborationEntity]','AWAITING','sheetId','Tools','put','assign','SNAPSHOT_INVALID_SNAPSHOT','getInterceptPoints','session.room-full','@univerjs/engine-formula','_onCombEvent','handleInsertCol','InsertRowCommandId','#fff','getTypeOfUnitAdded$','executeCommand','_isPermissionRej','getSheetObject','RxDisposable','_cursor','url(#$1','_transformPreviousActiveRange','event$','/fetchmissing?from=','Rectangle','unload','cursorInfo','textRanges','getParam','call','_type','defIds','getItem','mutations','MoveRangeCommandId','transformChangesets','_submitChangeset','HELLO','includes','EXCHANGE_SIGN_URL_SERVER_URL_KEY','FAIL','_getCurrentRevision','fetchThroughInterceptors','onTransformRemoteChangesetByIMECache','SNAPSHOT_SERVER_URL_KEY','collab-text-anchor-','fillStyle','_entityInit$','collabCursorState$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','USERS_ENTER','_rescheduleHeartbeatEvent','_lastPointer','@univerjs/sheets','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','univer-pro.collaboration-client.single-active-unit-service','fromCollab','_themeService','c2Prime','SNAPSHOT_URL_KEY','_sendingTimer','append','_univerInstanceService','displayName','PERMISSION_REJ','YUUMI_UNABLE_LOAD_URL','_loadDoc','_ensureSubject','HEARTBEAT','getColor','MergeInterceptorFactory','top','status','offline','isInternalEditorID','makeDirty','UniverCollaboration','LICENSE_IMPORT_SIZE_EXCEEDED','Subject','newValue','_retryCount','_HTTPService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_pendingMutations','shouldCloseConn','pipe','disableLocalCache','getCurrentUser','auth.needGotoLoginAlert','COLLAB_SUBMIT_CHANGESET_URL_KEY','_createSocket','8712696WEgMhr','isTransformMutationsWithChangesetFailure','roomMembers','dispose','updateOfflineData','method','toRgbString','getFocusedUnit','10446botkEb','UPDATE_CURSOR','clearTimeout','[PendingState]:\x20unhandled\x20univer\x20type:\x20','9eiJtRx','isArray','map','IRemoteInstanceService','distinctUntilChanged','joinEvent','_eventUnsubscribe','_checkMissing','onTransformIME','infoRsp','saveImage','_roomMembers','SEND_CHANGESET_TIMEOUT_KEY','RichTextEditingMutation','workbook','Disposable','/object/','startsWith','?url=','attrs','_onConflict','RefRangeService','univer-online-status','Module','UNIVER_UNKNOWN','measureText','UniverRpc','mergeOverrideWithDependencies','RevisionService','_waitForHeartbeatResponse','_scheduleTimestamp','COLLAB_SUBMIT_CHANGESET_URL','ALREADY_EXISTS','LocalCacheService','collaboration-client.offline-data-not-saved','path','INGEST','incrementRevForDocument','init','commentUpdate$','_getSnapshotAPIPrefix','Plugin','0\x200\x2016\x2016','b64DecodeUnicode','Vector2','_logService','UniverCollaborationClientPlugin','engine','SetTextSelectionsOperation','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','colorChannel1','_refRangeService','_setupSubUnitSync','handleIRemoveRow','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','size','_refreshCollabCursors','_onRecvEvent','UnitEmbedded','/unit/','Shape','mapDocumentTypeToUniverType','_clearTimeoutTimer','synced','isActive','rxjs/operators','@univerjs-pro/collaboration','_waitCount','putCollaborators','JSONX','forEach','ranges','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','AUTHZ_URL_KEY','DEFAULT_FILE_NAME','onMissingChangesets','closePath','\x20in\x20_schedule.','UniverCore','exhaustSavingTask','DocSkeletonManagerService','serializeCombRequest','send','_configService','roomMembers$','m1Prime','initWorkbookPermissionChange','UniverCollaborationPlugin','onload','_drawAnchor','_collabCursorState$','rev','editingUnit','_drawTextRange','assignAColorForMemberID','getRangePointData','LOCAL_CACHE_INTERVAL','whenReady','requireSession','fromEvent','row','_scheduleCollaborationTimeoutTimer','getViewport','saveOfflineData','unknown','rgba(255,\x20255,\x20255,\x200.01)','SnapshotService','UniverSheetsUi','_docSyncEditingCollabCursorService','_textBubble','encodeURIComponent','_handleHover','concatMap','sequenceExecute','image/png','registerHTTPInterceptor','serializeDocRange','[DataLoaderController]','sessionStatus','_getSheetObject','awaiting_with_pending','onCommentUpdate','updatePermissionObjEvent','currentTheme$','debug','createIdentifier','BuiltInUIPart','INVALID_ARGUMENT','_onRefRangeChange','_scheduleHeartbeat','hasOwnProperty','[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.','IDLE','_updateLocalCursor','drawWith','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','HTTPService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','AuthzIoHttpService','url','Rect','FromArray','refreshPermission','_createInitialStateImpl','_disableEditing','session.will-retry','_colorIndex','deleteCollaborator','collaboratorID','onPointerLeave$','_saveTaskMap','roles','_state$','evenodd','parse','transformSelections','IUIPartsService','_ws','pushState','_change$','patch','_handleEvent','setWaitCount','get','_getRedoStack','connection\x20error','roomInfos','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onUserLeave','_handleLeaveEvent','_getAnchorBounding','_sendHeartbeatTimer','WebURLService','color','_initCommandExecutedListener','unshift','setTimeout','[PendingState]:\x20received\x20acknowledgement.','baseRev','LIVESHARE_REQUEST_HOST','selection','getSheetBySheetId','title','show','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getUnitOnRev','CHANGESET_REJ','11XFMoxW','getOwnPropertyDescriptor','ImageUploadStatusType','/-/object/-/batch_allowed','WebSocketService','beginPath','collabStatus.syncing','updateCollaborator','getCoordByCell','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','code','skeleton','Univer','Optional','JOINING','takeUntil','delay','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Error','Warning','transformByState','body','UNRECOGNIZED','interceptor','collaMsg','_initResize','/new_changes','ITransformService','collabStatus.offline','UniverSheets','liveShareNewHost','OnLineSingle','onlineStatusIcon','UniverDocs','onStarting','getCollabEntity','_toggleOffline','handleInsertRangeMoveDown','image/jpg','_onConnectionOpen','merge','LIVESHARE_NEW_HOST','_hideTimer','rxjs','_initStatusComponent','YUUMI_SUBSCRIPTION_NOT_FOUND','ILogService','gold400','_injector','ICollaborationSocketService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getDocRanges','_context','syncEditingCollabCursor','_decreaseWaiting','@univerjs/sheets-ui','UniverInstanceType','leaveEvent','setShapeProps','COMPRESS_MUTATION_APPLY','CollaborationSocketService','reverse','disposeWithMe','_onRemoteChangeset','@univerjs/drawing','APPLY_REJECT','_localeService','_shapes','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_anchorDot','result','has','_scene','/rev/','onTransformChange$','FETCH_MISS','tag','INTERNAL_ERROR','CommandType','replace','restore','InsertRangeMoveDownCommandId','from','data','VIEW_MAIN','_lockTransition','_userManagerService','getValue','session','searchParams','UnitSnapshot','_replayCachedMutations','removeMember','currentSkeleton$','_startDocCollabCursor','getCollabEntity$','socketService','_transformService','onSyncEditingCollabCursor','_clearOtherTimers','width','updateCursorEvent','sessionStatus$','_docSkeletonManagerService','SheetPermissionInitController','ws://127.0.0.1:8000/universer-api/comb/connect','delete','UniverDesign','random','propertyIsEnumerable','_substituteRedoStack','OTHER_CLIENTS_EDITING','defs','filter','LOGIN_URL_KEY','resend','_sheetSkeletonManagerService','clearInterval','_http','joinRsp','startColumn','deepClone','_transformUndoredo','getCurrentRevForDocument','_getUndoStack','_httpService','split','Unknown\x20user','_clearLocalCache','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','backgroundColor','members','Ready','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','COLORS','_backgroundColor','[UniverCollaborationClientPlugin]','transformRemoteChangeset','c1Prime','[PendingState]:\x20received\x20rejection.','_color','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNIVER_PROJECT','_collabSessionService','labelPosition','_timeoutTimer','column','_getMergeRange','close$','createInstance','_sessionStatus$','clsx','addObjects','removeParam','_undoRedoService','_render','NO_OTHER_CLIENTS_EDITING','getConfig','collabStatus.synced','_imageSourceCache','CollaborationSession','_getAPIPrefix','COMPLETION_FINISHED','isTransformChangesetsSuccess','flatMap','name','connectInjector','_tryEnsureSocket','xlink:href','handleMoveRange','UNKNOWN_CMD','session.collaboration-timeout','JOIN','_schedule','getImageSourceCache','_assignedColors','_getUploadFileURL','_unitStatus','error','USERS_LEAVE','_id','UNAUTHENTICATED','registerBeforeClose','fillText','enableLocalCache','onMissedChangesetFetched','getUnitId','editing\x20status\x20changed\x20to','_docTransformSelectionsService','@univerjs/rpc','updateMember','unitID','useRef','_event$','confirm','_localCacheService','SheetCollabCursorShape','UNIVER_DOC','UniverIcon','UNIVER_SLIDE','height','create','_draw','RECV','currentColor','RETRY_CONNECTING_MAX_COUNT','UniverEngineRender','ERROR_IMAGE','univer-online-status-title','parseProtocolChangeset','_getSaveTimeout','COLLAB_WEB_SOCKET_URL','_transformStack','BASE64','CommentService','all','HEARTBEAT_TIMEOUT_KEY','getSheetBlock','image/bmp','setItem','objectActions','collabStatus.fetchMiss','_uiPartsService','none','ACTIVE_UNIT_EVENT_CHANNEL','getImage','_toggleOnline','action','createElement','CHANGESET_ACK','_commentService','triggerDblclick','_getCtorByUniverType','fetchMissingChangesets','transformUndoRedo','_incrementRevisionNumber','_selfUnitIDs','_removeClearOtherTimer','onRendered','APPLY_PERMISSION_DENIED','RegularPolygon','disposeUnit','EffectRefRangId','cursorInfo$','_transformSelections','svg','isEditing','LocalUndoRedoService','CONNECTOR_DATA_TOO_LARGE','on-line-single','activeSheet$','_socketReady','_getAPIPrefixPath','getCurrent','TextSelectionManagerService','YUUMI_URL_COL_OUT_OF_RANGE','_registerRenderDependencies','commentUpdateEvent','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','LifecycleStages','_cursorInfo$','close','runRefRangeMutations'];_0x7461=function(){return _0x56da25;};return _0x7461();}
|
1
|
+
function _0x35a8(){const _0x69e97b=['onStarting','ws://127.0.0.1:8000/universer-api/comb/connect','parse','serializeDocRange','rev','src','getCurrent','hasOwnProperty','_localStorageService','_onMessage','_timeoutTimer','_ws','_startDocCollabCursor','filter','_collaborationController','INGEST','_acknowledgedAwaitingChangeset','getOwnPropertySymbols','objectActions','permission.content','onTransformIME','getCurrentUnitForType','title','putCollaborators','updatePermissionPoint','debounceTime','assign','_init','JOINING','combineLatest','href','_createHandler','_name','headers','objectID','SEND_CHANGESET_TIMEOUT','eventID','COLLAB_WEB_SOCKET_URL_KEY','loadDoc','_startSheetCollabCursor','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','m2Prime','jiqing500','setTimeout','unit','stringify','CollaborationSessionService','_unlockTransition','WebSocketService','_onCursorDelete','none','@univerjs/design','compose','DataLoaderController','SYNCED','LIVESHARE_REQUEST_HOST','svg','LICENSE_IMPORT_SIZE_EXCEEDED','_onFetchMissResult','@univerjs-pro/collaboration','_initStatusComponent','&assign=','_clearCollaborationTimeoutTimer','_docSkeletonManagerService','startRow','indexOf','merge','SEND_CHANGESET_TIMEOUT_KEY','event$','LICENSE_EXPORT_SIZE_EXCEEDED','3016sHIbti','collaboration.closeRoom','_commentUpdate$','_collaborationSessionService','setShapeProps','forEach','_refRangeService','blue400','complete','getInterceptPoints','pending','@univerjs/docs','@univerjs/sheets-ui','_remoteChangesetQueue','_event$','@univerjs/drawing','transformIMECache','saveSheetBlock','_scheduleSaving','roles','_drawTextRange','enableAuthServer','getAncestorScale','BASE64','userID','includes','@univerjs/ui','handleInsertRow','className','_status$','SNAPSHOT_HAS_BEEN_REMOVED','_startCollaboration','onlineStatusTitle','_textBubble','/fetchmissing?from=','registerRefRange','backgroundColor','from','UniverCollaboration','close$','c1Prime','Ready','_sessions','_onCombEvent','UNIVER_PROJECT','CHANGESET_REJ','shareReplay','_http','_sendHeartbeatTimer','displayName','@univerjs/sheets','collab-text-anchor-','create','_logService','_range','_state$','on-line-single','CONFLICT','_drawRectRange','_replayCachedMutations','SheetCollabCursorShape','permissionRejEvent','ColorKit','error','interceptor','IMEInputManagerService','Vector2','clearInterval','forwardRef','isInternalEditorID','toStringTag','listCollaborators','black','setCurrentUser','initWorkbookPermissionChange','CollaborationSession','_permissionService','USERS_LEAVE','_docTransformIMECacheService','currentColor','close','unitId\x20is\x20not\x20found','CompressMutationService','SHOULD_CLOSE_CONN','Steady','getValue','map','clipPath','_schedule','{fileID}','target','body','_snapshotService','PENDING','_drawAnchor','mapDocumentTypeToUniverType','size','updatePermissionObjEvent','slice','commentUpdateEvent','_loadSheet','isEditing','_handleHeartbeatEvent','TRANSFORM_CHANGE_OBSERVABLE_TYPE','code','/role','HTTPService','ACTIVE_UNIT_EVENT_CHANNEL','_selfUnitIDs','editingUnit','handleInsertRangeMoveRight','newValue','getUniverSheetInstance','updateOfflineData','FETCH_MISS','Error\x20on\x20receiving\x20event','_initResize','_checkMissing','_showConflictNotification','RemoveRowCommandId','closePath','onlineStatusIcon','onSendChangeset','Inject','_initStatusListener','_themeService','fillText','transformChangesets','InsertSheetMutation','currentSkeleton$','COMPLETION_FINISHED','SNAPSHOT_INVALID_SNAPSHOT','responseType','_collabCursorState$','labelPosition','icon','syncEditingCollabCursor','OnLineSingle','getCurrentRevForDocument','SnapshotServerOverHTTPService','LocalUndoRedoService','onTransformSelections','unsubscribe','MessageType','unshift','_socketReady','HttpImport','toggleOffline','_assignedColors','_getAPIPrefix','DisposableCollection','_clearHeartbeatTimer','session.room-full','_roomMembers$','fetching\x20missing\x20changesets\x20from\x20','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','HEARTBEAT_TIMEOUT_KEY','_fetchMissChangesets','loadOfflineData','/new_changes','_getSheetObject','fill','Injector','csRejEvent','COLORS','_handleLeaveEvent','onMissedChangesetFetched','TEXT_RANGE_LAYER_INDEX','serializeCombRequest','getCollabCursors$','liveShareNewHost','clear','_retryCount','trim','_onRefRangeChange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','defineProperty','failed\x20to\x20apply\x20missed\x20changesets!','getMergeData','objectType','debounce','_userManagerService','IConfigService','toRgbString','getConfig','auth.needGotoLoginAlert','LIVESHARE_TERMINATE','parseChangesetToProtocol','uni.network.url-service','_handleHover','deserializeRangeWithSheet','Rect','_hovered','isTransformMutationsWithChangesetSuccess','baseRev','values','[CollaborationUndoRedoService]','_onConnectionOpen','_getLoginPath','_handleJoinEvent','onRemoteChangeset','init','COLLAB_SUBMIT_CHANGESET_URL','list','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','ranges','image/gif','actions','_revisionService','some','m1Prime','unitId','_getUploadFileURL','_sheetSkeletonManagerService','getRoom','_setupSubUnitSync','getSheetObject','method','_incrementRevisionNumber','HEARTBEAT_INTERVAL_KEY','ImageSourceType','/object','history','addImageSourceCache','SnapshotService','_getSaveTimeout','[CollaborationEntity]','reverse','UUID','catch','2856aVobzh','conflict.title','path','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_transformRemoteChangesetByIMECache','_univerInstanceService','_updateURLWithCurrentState','purple300','_scheduleTimestamp','snapshot','_initCommandExecutedListener','_anchor','RegularPolygon','MUTATION','[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.','TOO_MANY_REQUESTS','defIds','min','_clearLocalCache','joinEvent','column','on-line-single_clip0_910_349','getUnitOnRev','collabStatus.notCollab','getCurrentSelections','fetchMissingChangesets','unknown','IBeforeCloseService','_waitForHeartbeatResponse','sheetId','LIVESHARE_FETCH_OPERATIONS','OffLineSingle','offline','red300','onTransformRemoteChangesetByIMECache','_scene','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','IPermissionService','&source=','getMemberID','ALREADY_EXISTS','requireSession','onCommentUpdate','UniverRpc','registerRenderModule','_getCtorByUniverType','_onConnectionFailed','div','synced','permission.title','Optional','_HTTPService','getRelativeToViewportCoord','_memberService','saveImage','UniverIcon','_messageService','collab-text-range-','enableOfflineEditing','disableLocalCache','IRenderManagerService','DocStateChangeManagerService','getVpScrollXYInfoByPosToVp','ThresholdInterceptorFactory','urlChange$','colorChannel1','getUnitStatus$','onlyLocal','LifecycleStages','[CollaborationState]:\x20apply\x20error!','subunit','_onUserLeave','AuthzIoHttpService','IContextService','UNIVER_SLIDE','_cursorShapes','UniverSheets','width','awaitingChangeset','ILogService','sessionStatus','Undefined','_scheduleReconnection','transformUndoRedo','updateCursorEvent','loadSheet','gold400','/universer-api/file/{fileID}/sign-url','attrs','UPDATE_PERMISSION_OBJ','ICollaborationSocketService','COMPRESS_MUTATION_SEND','pauseCollaboration','isTransformMutationFailure','getActiveSheet','connectInjector','_clearOtherTimers','connection\x20error','Starting','_disabled','cursorInfo$','getFocusedUnit','LocaleService','beginPath','_shapes','getParam','onStateChange','@univerjs/network','debug','collabStatus.offline','_updateState','drawWith','_hover','univer-online','getSheetId','DesktopCollaborationStatusDisplayController','UniverCollaborationClient','UniverNetwork','throttleTime','_session','getCollabEntity$','_awaitingChangeset','_members','UniverDrawing','newCsEvent','round','1em','_pendingMutations','_transformUndoredo','symbol','concatMap','HEARTBEAT','post','_getSignURL','current','url(#$1','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getViewport','saveChangeset','switchMap','reduce','_isPermissionRej','[DataLoaderController]','registerComponent','_rescheduleHeartbeatEvent','univer-online-status-icon','0\x200\x2016\x2016','isActive','_clearRedo','handleMoveRange','message$','_localeService','YUUMI_URL_COL_OUT_OF_RANGE','SetSelectionsOperation','[SyncedState]:\x20received\x20rejection.','textRanges','lineTo','_sendHeartbeat','_change$','activeSheet$','takeUntil','_singleActiveUnitService','_updateLocalCache','object','_collaborationPaused','_render','EffectRefRangId','_localCacheService','UnitSnapshot','_decreaseWaiting','getUnitType','listRoles','INVALID_ARGUMENT','extend','socket\x20close','_urlService','_getScale','commentUpdate$','deleteCollaborator','JSONX','_toggleOnline','ICommandService','ITransformService','getCurrentUser','PERMISSION_REJ','not_collab','_backgroundColor','CONNECTOR_DATA_TOO_LARGE','@univerjs/core','getResourcesRequest','_scheduleHeartbeat','contains','_waitCount','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_collabCursorController','_type','status','liveShareOperation','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','LOGIN_URL_KEY','\x0aAfter:\x20','distinctUntilChanged','registerBeforeClose','_colorIndex','fromEventSubject','_sendingTimer','dispose$','ImageUploadStatusType','_lockTransition','collaboration.single-unit.warning','image/jpeg','file','fromCollab','push','ERROR_EXCEED_SIZE','INotificationService','update','8500fCyxep','BuiltInUIPart','univer-pro.collaboration-client.single-active-unit-service','addObject','subscribeEvent','AWAITING_WITH_PENDING','state','_entityInit$','selections','_commandService','Error','/-/object/list','HEADER_MENU','then','APPLY_PERMISSION_DENIED','add','APPLY_REJECT','createElement','useRef','selection','Plugin','focused$','_hideTimer','idSuffix','_getUndoStack','font','IDLE','fillStyle','collabStatus.conflict','removeParam','createSocket','_onLocalMutation','AUTHZ_URL_KEY','split','_transformUndoRedoStack','OnLifecycle','getColor','UniverUi','HEARTBEAT_INTERVAL','rxjs','json','_getRedoStack','/universer-api/oidc/authpage','[CollaborationSessionService]','_executeRemoteChangeset','_sheetTransformSelectionsService','createIdentifier','confirm','@univerjs/engine-formula','COMPRESS_MUTATION_APPLY','RETRY_CONNECTING_INTERVAL','next','open$','_registerDependencies','USERS_ENTER','_httpService','APPLY_REVISION_CONFILICT','cmd','HttpExport','getUndoRedoMutationParamsCache','row','verdancy600','univer-online-status','text','_docSyncEditingCollabCursorService','_applyRemoteChangeset','_registerRenderDependencies','788358FHKemo','exports','getOwnPropertyDescriptor','show','_docStateChangeManagerService','_state','url(#on-line-single_clip0_910_349)','hide','transformSelections','_cursorInfo$','_updateLocalCursor','transformRemoteChangeset','b64DecodeUnicode','_socket','getSheetBlock','YUUMI_UNABLE_LOAD_URL','_color','pipe','onSyncEditingCollabCursor','awaiting_with_pending','_setupBeforeClosingHandler','[CollaborationSession]','max','startsWith','univer-pro.collaboration-client-socket-service','[UniverCollaborationClientPlugin]','unit-cache-','endRow','transformMutationsWithChangeset','findNodePositionByCharIndex','InsertRangeMoveDownCommandId','changesets','JOIN','ThemeService','_unitID','UniverCollaborationClientPlugin','_cursor','UNRECOGNIZED','SheetCollaborationEntity','mutations','memberID','mapTo','/universer-api/authz','appendMutation','collabStatus.synced','createCollaborator','_heartbeatTimer','univer-offline','NOT_COLLAB','NEW_CHANGESETS','_config','ISnapshotServerService','UnitEmbedded','status$','collaboratorID','/rev/','XHRHTTPImplementation','BehaviorSubject','InsertColCommandId','IRemoteInstanceService','tag','function','location','_entities','defs','MSG_FOR_ERROR','_cursors','CHANGESET_ACK','getUnitId','NO_OTHER_CLIENTS_EDITING','length','use','_undoRedoService','hovered','Unknown\x20user','YUUMI_SUBSCRIPTION_NOT_FOUND','c2Prime','IUIPartsService','LEAVE','CollaborationSocketService','_socketService','onRemoteRej','restore','updateMember','reject','getCellPositionByOffset','_id','_getAPIPrefixPath','IImageIoService','sheets','M0\x200H16V16H0z','string','toDisposable','isArray','_substituteRedoStack','LIVESHARE_NEW_HOST','leaveEvent','UNIVER_SHEET','CommandType','RemoveColCommandId','subUnitId','getSheetBySheetId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_onRemoteChangeset','toggleOnline','range','replaceTextRanges','image/png','closeSession','getCoordByCell','_getMergeRange','_removeRoom','online','Warning','getItem','_onUserJoin','_initCloseConn','find','engine','has','_scheduleClearOtherTimer','put','sessionStatus$','amd','YUUMI_RATE_OVER_LIMIT','IAuthzIoService','_saveCache','url','readAsDataURL','measureText','getDocRanges','triggerDblclick','POST','objects','SheetPermissionInitController','[PendingState]:\x20received\x20acknowledgement.','asObservable','/allowed','save\x20fail\x20reason\x20is\x20','conflict','csAckEvent','getUnhiddenWorksheets','_clearUndo','onMouseMove','searchParams','ERROR_IMAGE_TYPE','moveTo','unitID','roomInfos','_uiPartsService','ERROR_IMAGE','onRemoteAck','params','SetDocZoomRatioOperation','_collabSessionService','subscribe','unload','bottom','setParam','UNKNOWN_CODE','UNIVER_COLLABORATION_CLIENT_PLUGIN','UNIVER_DOC','localeService','getWorkbookSelections','378955nHZsSQ','_createInitialState','HEARTBEAT_TIMEOUT','UNKNOWN_CMD','_updateCollabCursors','disposeWithMe','SheetSkeletonManagerService','apply','_joinRoom','ImageIoService','handleDeleteRangeMoveLeft','image/bmp','handleIRemoveCol','7518960MJdFbN','_disableEditing','save','#fff','934493XTecdH','type','66YprRmy','currentTheme$','_commentService','/unit/','1443LgZnrJ','IUniverInstanceService','[PendingState]:\x20received\x20rejection.','univerjs-icon\x20univerjs-icon-','_context','entries','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','CHANGESET_REVISION_CONFILICT','session.collaboration-timeout','pushState','createInstance','textEncoder','fillRule','getTypeOfUnitAdded$','Univer','joinRsp','Disposable','_substituteUndoStack','...','lodash','UniverEngineRender','_toggleOffline','setItem','_socketMessageSubscription','OTHER_CLIENTS_EDITING','SUCCUSS','FileId','toString','_transformPreviousActiveRange','SUBMIT_CHANGESET','NOT_FOUND','withCredentials','editing\x20status\x20changed\x20to','allowed','_unitOnClients','deserializeToCombResponse','handleDeleteRangeMoveUp','top','RETRY_CONNECTING_MAX_COUNT','fetchThroughInterceptors','onPointerLeave$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','LICENSE_MAX_UNITS_EXCEEDED','session.will-retry','InsertRangeMoveRightCommandId','UniverInstanceType','HTTPRequest','collaboration-client.offline-data-not-saved','onCommandExecuted','_createSocket','exhaustSavingTask','url(#off-line-single_clip0_910_343)','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_anchorDot','_transformService','_submitChangeset','UNIVER_UNKNOWN','incrementRevForDocument','_queuedRemoteChangesets','CollaborationStatusDisplay','_removeCollabCursors','propertyIsEnumerable','get','/-/object/-/batch_allowed','clsx','7432gHrOYB','_refreshCollabCursors','_draw','height','children','storage','FromArray','_exhaustRemoteChangesetQueue','popstate','INTERNAL_ERROR','RxDisposable','encodeURIComponent','clearTimeout','_initModules','SNAPSHOT_URL_KEY','_onRemoteRejected','RECV','_redoStacks','fetch_missing','Workbook','getTypeOfUnitDisposed$','_removeClearOtherTimer','concat','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_beforeCloseService','_imageSourceCache','getMember','translate(.97)','color','_transformIMECache','FETCH_MISSING','_onCursorUpdate','LocalCacheService','cursorInfo','getSkeleton','RefRangeService','data','_transformStack','CollaborationController','_saveTaskMap','UPDATE_CURSOR','_compressMutationService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','revision','transformMutation','RevisionService','UniverDesign','_transitionLocked','UNDEFINED','_tryEnsureSocket','_getCurrentRevision','_handler','operators','_sessionStatus$','arc','onlineStatus','_injector','replaceState','_unitStatus','_getSnapshotAPIPrefix','_replaceFileID','_retryConnectingTimer','_initMergeInterceptor','react','saveSnapshot','_syncEditingCollabCursorService','pluginName','collabCursorState$','isValidRectRange','socketService','delay','routeKey','_transformSelections','WorkbookEditablePermission','_online','socket\x20open.','isTransformChangesetsSuccess','FAIL','_clearTimeoutTimer','/collaborator','_labelPosition','_getSendChangesetTimeout','getCollabEntity','\x20to\x20','NodePositionConvertToRectRange','addEventListener','doc.mutation.rich-text-editing','CommentService','UNAUTHENTICATED','call','_updateSubUnitFromURLParams','_createInitialStateImpl','getOffsetConfig','_notificationService','_undoStacks','HELLO','prototype','parseProtocolChangeset','refreshPermission','collaborators','set','Subject','transformStack\x20failed!','DependentOn','IURLService','name','PSEUDO_FETCH_MISSING_RESULT','all','_onRemoteACK','_socket$','SheetsSelectionsService','send','[CollaborationSessionService]:\x20socket\x20error','isPermissionRej','off-line-single_clip0_910_343','_docTransformSelectionsService','LIVESHARE_OPERATION','delete','collaMsg','_loadDoc','/object/','_roomMembers','flatMap','roomMembers','_onConflict','session','?size=','lodash/debounce','9691sDsMXj','/universer-api/snapshot','CollaborationEvent','batchAllowed','0\x200\x2017\x2016','originalMeta','SetWorksheetActivateCommand','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','VIEWPORT_KEY','IUndoRedoService','RichTextEditingMutation','generateRandomId','_ensureSubject','_renderManagerService','_snapshotServerService','replace','fromEvent','executeCommand','startColumn','useObservable','_eventUnsubscribe','onPointerEnter$','resourceIDs','_handleEvent','action','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','xlink:href','ONLINE','_cachedData','image/jpg','&to=','Shape','DeleteRangeMoveLeftCommandId','VIEW_MAIN','SessionStatus','@univerjs/rpc','makeDirty','OFFLINE','UniverEngineFormula','getImageSourceCache','IMessageService','MergeInterceptorFactory','_updateStatus','SNAPSHOT_SERVER_URL_KEY','registerHTTPInterceptor','_send','take','assignAColorForMemberID','_configService','state$','_collaborationTimeoutTimer','error$','getRangePointData','Tools','dispose','result','resend','_initUnitPermissionChange','isTransformMutationsWithChangesetFailure','[OfflineState]:\x20received\x20changeset.','resolve','_onRecvEvent','deepClone','removeMember','_lastPointer','_onJoinRoomEvent','AWAITING','NodePositionConvertToCursor','requestParams','setActiveRange','_clearScheduledTask','[OfflineState]:\x20received\x20acknowledgement.','onPointerMove$','_colorAssignService'];_0x35a8=function(){return _0x69e97b;};return _0x35a8();}function _0x41fb(_0x38ffd3,_0x30735d){const _0x35a872=_0x35a8();return _0x41fb=function(_0x41fb05,_0x13f88a){_0x41fb05=_0x41fb05-0x1f1;let _0x1fb893=_0x35a872[_0x41fb05];return _0x1fb893;},_0x41fb(_0x38ffd3,_0x30735d);}(function(_0x42b2d1,_0x341e2f){const _0x2d7596=_0x41fb,_0x25d506=_0x42b2d1();while(!![]){try{const _0x373a15=-parseInt(_0x2d7596(0x375))/0x1+-parseInt(_0x2d7596(0x2c0))/0x2+-parseInt(_0x2d7596(0x37b))/0x3*(-parseInt(_0x2d7596(0x3bc))/0x4)+-parseInt(_0x2d7596(0x364))/0x5*(parseInt(_0x2d7596(0x377))/0x6)+-parseInt(_0x2d7596(0x5b2))/0x7*(-parseInt(_0x2d7596(0x4cc))/0x8)+parseInt(_0x2d7596(0x371))/0x9+-parseInt(_0x2d7596(0x27d))/0xa*(-parseInt(_0x2d7596(0x43c))/0xb);if(_0x373a15===_0x341e2f)break;else _0x25d506['push'](_0x25d506['shift']());}catch(_0x4389be){_0x25d506['push'](_0x25d506['shift']());}}}(_0x35a8,0x729b7),function(_0x3550a3,_0x1c5195){const _0x1168f7=_0x41fb;typeof exports==_0x1168f7(0x247)&&typeof module<'u'?_0x1c5195(exports,require('@univerjs/core'),require('@univerjs/sheets'),require(_0x1168f7(0x4b9)),require(_0x1168f7(0x4e6)),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators'),require(_0x1168f7(0x4d7)),require('@univerjs/network'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require(_0x1168f7(0x2ad)),require(_0x1168f7(0x43b)),require('@univerjs/sheets-ui'),require(_0x1168f7(0x3fb)),require(_0x1168f7(0x3bb)),require('@univerjs/rpc')):typeof define=='function'&&define[_0x1168f7(0x33b)]?define([_0x1168f7(0x2c1),_0x1168f7(0x260),_0x1168f7(0x4fe),_0x1168f7(0x4b9),'@univerjs/ui',_0x1168f7(0x4c1),_0x1168f7(0x2a4),'rxjs/operators',_0x1168f7(0x4d7),_0x1168f7(0x20f),_0x1168f7(0x4db),'@univerjs/engine-render','@univerjs/engine-formula',_0x1168f7(0x43b),_0x1168f7(0x4d8),'react',_0x1168f7(0x3bb),_0x1168f7(0x45f)],_0x1c5195):(_0x3550a3=typeof globalThis<'u'?globalThis:_0x3550a3||self,_0x1c5195(_0x3550a3[_0x1168f7(0x218)]={},_0x3550a3['UniverCore'],_0x3550a3[_0x1168f7(0x5fe)],_0x3550a3[_0x1168f7(0x3ea)],_0x3550a3[_0x1168f7(0x2a2)],_0x3550a3[_0x1168f7(0x4f2)],_0x3550a3[_0x1168f7(0x2a4)],_0x3550a3[_0x1168f7(0x2a4)][_0x1168f7(0x3f0)],_0x3550a3['UniverDocs'],_0x3550a3[_0x1168f7(0x219)],_0x3550a3[_0x1168f7(0x21f)],_0x3550a3[_0x1168f7(0x38f)],_0x3550a3[_0x1168f7(0x462)],_0x3550a3[_0x1168f7(0x38e)][_0x1168f7(0x580)],_0x3550a3['UniverSheetsUi'],_0x3550a3['React'],_0x3550a3[_0x1168f7(0x3bb)],_0x3550a3[_0x1168f7(0x5dd)]));}(this,function(_0x2c3354,_0x2015b3,_0x3d1b6a,_0x54ac63,_0x44b766,_0x106736,_0x345abe,_0x2cc613,_0xbcf55e,_0x485f8b,_0x17c816,_0x572a63,_0x3096c0,_0x533449,_0x467ed8,_0x100763,_0x55b2c5,_0x43c42f){'use strict';const _0x3b3960=_0x41fb;var _0x2ef5ef=Object['defineProperty'],_0x2777ef=(_0x3a2c59,_0x13e557,_0x4639e7)=>_0x13e557 in _0x3a2c59?_0x2ef5ef(_0x3a2c59,_0x13e557,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4639e7}):_0x3a2c59[_0x13e557]=_0x4639e7,_0x385cfe=(_0x5722a4,_0x1ac53a,_0x314025)=>_0x2777ef(_0x5722a4,typeof _0x1ac53a!=_0x3b3960(0x225)?_0x1ac53a+'':_0x1ac53a,_0x314025);const _0x2c5950=_0x3b3960(0x467),_0x58a23f=_0x3b3960(0x43d),_0x5648aa=_0x3b3960(0x3ca),_0x5cb8bb=_0x3b3960(0x4a9),_0x332c44='COLLAB_WEB_SOCKET_URL',_0x55e528=_0x3b3960(0x487),_0x879d7e=_0x3b3960(0x2a3),_0x816b9c=_0x3b3960(0x366),_0x11fd51=_0x3b3960(0x2af),_0xb1acb=_0x3b3960(0x3a1),_0x3f1ca0='LOCAL_CACHE_INTERVAL',_0x3c7827=_0x3b3960(0x596),_0x38f1bf='/universer-api/comb',_0x4f5e36=_0x3b3960(0x26b),_0x1df3cc=_0x3b3960(0x2a7);var _0x48be91=(_0x5d546e=>(_0x5d546e[_0x5d546e[_0x3b3960(0x3ec)]=0x0]='UNDEFINED',_0x5d546e[_0x5d546e['OK']=0x1]='OK',_0x5d546e[_0x5d546e[_0x3b3960(0x3c5)]=0x2]=_0x3b3960(0x3c5),_0x5d546e[_0x5d546e['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x5d546e[_0x5d546e[_0x3b3960(0x399)]=0x4]=_0x3b3960(0x399),_0x5d546e[_0x5d546e[_0x3b3960(0x414)]=0x5]=_0x3b3960(0x414),_0x5d546e[_0x5d546e[_0x3b3960(0x5da)]=0x6]='ALREADY_EXISTS',_0x5d546e[_0x5d546e[_0x3b3960(0x250)]=0x7]='INVALID_ARGUMENT',_0x5d546e[_0x5d546e[_0x3b3960(0x5c1)]=0x8]=_0x3b3960(0x5c1),_0x5d546e[_0x5d546e[_0x3b3960(0x54e)]=0x9]=_0x3b3960(0x54e),_0x5d546e[_0x5d546e[_0x3b3960(0x382)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5d546e[_0x5d546e['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3b3960(0x54f),_0x5d546e[_0x5d546e[_0x3b3960(0x4ea)]=0x1772]=_0x3b3960(0x4ea),_0x5d546e[_0x5d546e['APPLY_REJECT']=0x1b59]=_0x3b3960(0x28d),_0x5d546e[_0x5d546e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5d546e[_0x5d546e[_0x3b3960(0x2b5)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5d546e[_0x5d546e[_0x3b3960(0x28b)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5d546e[_0x5d546e['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3b3960(0x25f),_0x5d546e[_0x5d546e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3b3960(0x3a5),_0x5d546e[_0x5d546e[_0x3b3960(0x22c)]=0x232a]=_0x3b3960(0x22c),_0x5d546e[_0x5d546e[_0x3b3960(0x4bf)]=0x232b]=_0x3b3960(0x4bf),_0x5d546e[_0x5d546e[_0x3b3960(0x4cb)]=0x232c]=_0x3b3960(0x4cb),_0x5d546e[_0x5d546e['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x5d546e[_0x5d546e[_0x3b3960(0x2cf)]=0x2711]=_0x3b3960(0x2cf),_0x5d546e[_0x5d546e[_0x3b3960(0x23c)]=0x2712]=_0x3b3960(0x23c),_0x5d546e[_0x5d546e[_0x3b3960(0x33c)]=0x2713]=_0x3b3960(0x33c),_0x5d546e[_0x5d546e[_0x3b3960(0x30b)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5d546e[_0x5d546e[_0x3b3960(0x2e5)]=-0x1]=_0x3b3960(0x2e5),_0x5d546e))(_0x48be91||{}),_0x32a37d=(_0x3d5e51=>(_0x3d5e51[_0x3d5e51['UNIVER_UNKNOWN']=0x0]=_0x3b3960(0x3b3),_0x3d5e51[_0x3d5e51['UNIVER_DOC']=0x1]=_0x3b3960(0x361),_0x3d5e51[_0x3d5e51['UNIVER_SHEET']=0x2]=_0x3b3960(0x321),_0x3d5e51[_0x3d5e51[_0x3b3960(0x5fc)]=0x3]=_0x3b3960(0x5fc),_0x3d5e51[_0x3d5e51['UNIVER_PROJECT']=0x4]=_0x3b3960(0x4f8),_0x3d5e51[_0x3d5e51[_0x3b3960(0x2e5)]=-0x1]=_0x3b3960(0x2e5),_0x3d5e51))(_0x32a37d||{}),_0x52c13b=(_0x1a8c63=>(_0x1a8c63[_0x1a8c63[_0x3b3960(0x367)]=0x0]='UNKNOWN_CMD',_0x1a8c63[_0x1a8c63['HELLO']=0x1]=_0x3b3960(0x41b),_0x1a8c63[_0x1a8c63[_0x3b3960(0x2e0)]=0x2]='JOIN',_0x1a8c63[_0x1a8c63['LEAVE']=0x3]=_0x3b3960(0x30e),_0x1a8c63[_0x1a8c63['INGEST']=0x4]=_0x3b3960(0x495),_0x1a8c63[_0x1a8c63[_0x3b3960(0x227)]=0x5]=_0x3b3960(0x227),_0x1a8c63[_0x1a8c63[_0x3b3960(0x3cc)]=0x6]='RECV',_0x1a8c63[_0x1a8c63['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1a8c63))(_0x52c13b||{}),_0x1a4aa5=(_0xc9ed68=>(_0xc9ed68[_0xc9ed68[_0x3b3960(0x35f)]=0x0]=_0x3b3960(0x35f),_0xc9ed68[_0xc9ed68['OK']=0x1]='OK',_0xc9ed68[_0xc9ed68[_0x3b3960(0x409)]=0x2]=_0x3b3960(0x409),_0xc9ed68[_0xc9ed68[_0x3b3960(0x2e5)]=-0x1]='UNRECOGNIZED',_0xc9ed68))(_0x1a4aa5||{}),_0x5d29eb=(_0x243b10=>(_0x243b10[_0x243b10[_0x3b3960(0x1f5)]=0x0]='Undefined',_0x243b10[_0x243b10[_0x3b3960(0x55e)]=0x1]=_0x3b3960(0x55e),_0x243b10[_0x243b10[_0x3b3960(0x2b7)]=0x2]=_0x3b3960(0x2b7),_0x243b10[_0x243b10[_0x3b3960(0x2f4)]=0x3]=_0x3b3960(0x2f4),_0x243b10[_0x243b10[_0x3b3960(0x24c)]=0x4]=_0x3b3960(0x24c),_0x243b10[_0x243b10['UNRECOGNIZED']=-0x1]=_0x3b3960(0x2e5),_0x243b10))(_0x5d29eb||{}),_0xf30dce=Object[_0x3b3960(0x57c)],_0x421ec5=Object[_0x3b3960(0x2c2)],_0x33b66c=(_0x2a233c,_0x53b85b,_0x371f60,_0x24502c)=>{const _0xdffae1=_0x3b3960;for(var _0x37cade=_0x24502c>0x1?void 0x0:_0x24502c?_0x421ec5(_0x53b85b,_0x371f60):_0x53b85b,_0x23cdb9=_0x2a233c[_0xdffae1(0x306)]-0x1,_0xdc36fd;_0x23cdb9>=0x0;_0x23cdb9--)(_0xdc36fd=_0x2a233c[_0x23cdb9])&&(_0x37cade=(_0x24502c?_0xdc36fd(_0x53b85b,_0x371f60,_0x37cade):_0xdc36fd(_0x37cade))||_0x37cade);return _0x24502c&&_0x37cade&&_0xf30dce(_0x53b85b,_0x371f60,_0x37cade),_0x37cade;},_0x1a1067=(_0x972612,_0x25fe23)=>(_0x5a56da,_0x557c6b)=>_0x25fe23(_0x5a56da,_0x557c6b,_0x972612);let _0x25752c=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x2afb1f,_0x2c3f5f){const _0xc9ab77=_0x3b3960;super(),_0x385cfe(this,'_roomMembers',new Map()),(this[_0xc9ab77(0x5b7)]=_0x2afb1f,this[_0xc9ab77(0x581)]=_0x2c3f5f,this[_0xc9ab77(0x369)](_0x2015b3[_0xc9ab77(0x31c)](_0x345abe[_0xc9ab77(0x4c8)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2015b3[_0xc9ab77(0x3a8)][_0xc9ab77(0x321)])[_0xc9ab77(0x2d1)](_0x2cc613[_0xc9ab77(0x522)](_0x349564=>_0x349564['getUnitId']())),this[_0xc9ab77(0x5b7)][_0xc9ab77(0x3d0)](_0x2015b3[_0xc9ab77(0x3a8)][_0xc9ab77(0x361)])[_0xc9ab77(0x2d1)](_0x2cc613[_0xc9ab77(0x522)](_0x3ae045=>_0x3ae045[_0xc9ab77(0x304)]())),this[_0xc9ab77(0x5b7)][_0xc9ab77(0x3d0)](_0x2015b3[_0xc9ab77(0x3a8)][_0xc9ab77(0x5fc)])[_0xc9ab77(0x2d1)](_0x2cc613['map'](_0x568993=>_0x568993['getUnitId']())))[_0xc9ab77(0x35b)](_0x4fa9b4=>this[_0xc9ab77(0x32f)](_0x4fa9b4)))));}[_0x3b3960(0x515)](_0x21271b){const _0x561ccc=_0x3b3960;this['_userManagerService'][_0x561ccc(0x515)](_0x21271b);}[_0x3b3960(0x25b)](){const _0x4b4817=_0x3b3960;return this[_0x4b4817(0x581)][_0x4b4817(0x25b)]();}[_0x3b3960(0x313)](_0x250e63,_0x3cb663){const _0x2317c8=_0x3b3960;let _0x3daf4b=this[_0x2317c8(0x435)][_0x2317c8(0x3b9)](_0x250e63);_0x3daf4b||(_0x3daf4b=new _0x23b80c(),this[_0x2317c8(0x435)][_0x2317c8(0x420)](_0x250e63,_0x3daf4b)),_0x3daf4b[_0x2317c8(0x313)](_0x3cb663);}[_0x3b3960(0x47b)](_0x2ddff5,_0x4bc053){const _0xae9904=_0x3b3960,_0x169280=this[_0xae9904(0x435)][_0xae9904(0x3b9)](_0x2ddff5);_0x169280&&_0x169280[_0xae9904(0x47b)](_0x4bc053);}[_0x3b3960(0x5a2)](_0x9cf32d){const _0x44e0b4=_0x3b3960;return this[_0x44e0b4(0x435)][_0x44e0b4(0x3b9)](_0x9cf32d);}[_0x3b3960(0x3d6)](_0x955c6b,_0x51daee){const _0x18a4f5=_0x3b3960,_0xd646f6=this[_0x18a4f5(0x435)][_0x18a4f5(0x3b9)](_0x955c6b);if(_0xd646f6)return _0xd646f6[_0x18a4f5(0x3d6)](_0x51daee);}[_0x3b3960(0x32f)](_0xb84a40){const _0x39e9d0=_0x3b3960,_0x53cbd1=this[_0x39e9d0(0x435)][_0x39e9d0(0x3b9)](_0xb84a40);_0x53cbd1&&(_0x53cbd1[_0x39e9d0(0x472)](),this[_0x39e9d0(0x435)]['delete'](_0xb84a40));}[_0x3b3960(0x472)](){const _0x567e65=_0x3b3960;this[_0x567e65(0x435)][_0x567e65(0x4d1)](_0x5988e2=>_0x5988e2[_0x567e65(0x472)]()),this[_0x567e65(0x435)]['clear']();}};_0x25752c=_0x33b66c([_0x1a1067(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0x1a1067(0x1,_0x2015b3['Inject'](_0x2015b3['UserManagerService']))],_0x25752c);class _0x23b80c extends _0x2015b3[_0x3b3960(0x38b)]{constructor(){const _0xe0fe29=_0x3b3960;super(...arguments),_0x385cfe(this,_0xe0fe29(0x21e),new Map());}['dispose'](){const _0x527e04=_0x3b3960;this[_0x527e04(0x21e)][_0x527e04(0x577)]();}[_0x3b3960(0x313)](_0x4ad660){const _0x10867a=_0x3b3960;this[_0x10867a(0x21e)][_0x10867a(0x420)](_0x4ad660[_0x10867a(0x2e8)],_0x4ad660);}[_0x3b3960(0x47b)](_0x36e19a){const _0x172c77=_0x3b3960;this['_members'][_0x172c77(0x431)](_0x36e19a);}['getMember'](_0x35361b){const _0x34e436=_0x3b3960;return this[_0x34e436(0x21e)][_0x34e436(0x3b9)](_0x35361b);}}function _0x5040c3(_0x1dc420){const _0x53561a=_0x3b3960;var _0x429b64,_0x230381,_0x4f1581,_0xee867;const _0x20a9b3=_0x1dc420[_0x53561a(0x3e0)],_0x311d42=JSON[_0x53561a(0x488)](_0x20a9b3);switch(_0x311d42[_0x53561a(0x2b6)]){case _0x52c13b[_0x53561a(0x227)]:case _0x52c13b[_0x53561a(0x41b)]:{const _0x18781d=_0x311d42['infoRsp'];return{..._0x311d42,'data':_0x18781d,'cmd':_0x311d42[_0x53561a(0x2b6)]};}case _0x52c13b[_0x53561a(0x2e0)]:{const _0x520380=_0x311d42[_0x53561a(0x38a)];return{..._0x311d42,'data':_0x520380,'cmd':_0x311d42['cmd']};}case _0x52c13b[_0x53561a(0x3cc)]:{const _0x3f836a=_0x311d42[_0x53561a(0x432)];switch(_0x3f836a['eventID']){case _0x106736[_0x53561a(0x43e)][_0x53561a(0x25c)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0x429b64=_0x3f836a[_0x53561a(0x509)])==null?void 0x0:_0x429b64['cs']},'cmd':_0x311d42['cmd']};case _0x106736['CollaborationEvent'][_0x53561a(0x303)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0x230381=_0x3f836a[_0x53561a(0x34c)])==null?void 0x0:_0x230381['cs']},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x2f1)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0x4f1581=_0x3f836a[_0x53561a(0x220)])==null?void 0x0:_0x4f1581['cs']},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x4f9)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0xee867=_0x3f836a[_0x53561a(0x56f)])==null?void 0x0:_0xee867['cs']},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x3e4)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x1f8)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736['CollaborationEvent'][_0x53561a(0x2b3)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x5c5)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)]['USERS_LEAVE']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x320)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x31f)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x576)]},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)]['LIVESHARE_FETCH_OPERATIONS']:case _0x106736[_0x53561a(0x43e)][_0x53561a(0x430)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x269)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)]['LIVESHARE_TERMINATE']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x576)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x301)]:return{..._0x311d42,'data':_0x3f836a,'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)]['COMMENT_UPDATE']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x52f)]},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)]['UPDATE_PERMISSION_OBJ']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x52d)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736['CollaborationEvent'][_0x53561a(0x51f)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a['shouldCloseConn']},'cmd':_0x311d42['cmd']};default:return _0x311d42;}}default:return _0x311d42;}}function _0x5a449f(_0x259d17){const _0x401036=_0x3b3960;switch(_0x259d17['cmd']){case _0x52c13b[_0x401036(0x227)]:case _0x52c13b[_0x401036(0x41b)]:return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17[_0x401036(0x2b6)],'routeKey':_0x259d17[_0x401036(0x403)]});case _0x52c13b['INGEST']:{let _0x48c038;switch(_0x259d17[_0x401036(0x3e0)][_0x401036(0x4aa)]){case _0x106736[_0x401036(0x43e)][_0x401036(0x3e4)]:{_0x48c038={'eventID':_0x106736['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x259d17['data'][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)]['USERS_LEAVE']:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x519)],'leaveEvent':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x2b3)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x2b3)],'joinEvent':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)]['LIVESHARE_NEW_HOST']:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x31f)],'liveShareNewHost':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x430)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x430)],'liveShareOperation':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x586)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x586)],'liveShareTerminate':_0x259d17['data'][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x4bd)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x4bd)],'liveShareRequestHost':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x5d0)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x5d0)]};break;}default:_0x48c038={'eventID':_0x259d17[_0x401036(0x3e0)][_0x401036(0x4aa)]};}return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17['cmd'],'routeKey':_0x259d17['routeKey'],'collaMsg':_0x48c038});}case _0x52c13b['JOIN']:return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17['cmd'],'routeKey':_0x259d17[_0x401036(0x403)],'joinReq':_0x259d17[_0x401036(0x3e0)]});case _0x52c13b[_0x401036(0x30e)]:return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17[_0x401036(0x2b6)],'routeKey':_0x259d17[_0x401036(0x403)],'leaveReq':_0x259d17[_0x401036(0x3e0)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0xef4f6b=Object['defineProperty'],_0x12515a=Object[_0x3b3960(0x2c2)],_0x11da3d=(_0x64a6db,_0x32f11d,_0x49d203,_0xe38ad7)=>{const _0x1d5cda=_0x3b3960;for(var _0x1cea5e=_0xe38ad7>0x1?void 0x0:_0xe38ad7?_0x12515a(_0x32f11d,_0x49d203):_0x32f11d,_0x10eba4=_0x64a6db[_0x1d5cda(0x306)]-0x1,_0x4df395;_0x10eba4>=0x0;_0x10eba4--)(_0x4df395=_0x64a6db[_0x10eba4])&&(_0x1cea5e=(_0xe38ad7?_0x4df395(_0x32f11d,_0x49d203,_0x1cea5e):_0x4df395(_0x1cea5e))||_0x1cea5e);return _0xe38ad7&&_0x1cea5e&&_0xef4f6b(_0x32f11d,_0x49d203,_0x1cea5e),_0x1cea5e;},_0x4eb1f1=(_0x732899,_0x29cdfc)=>(_0x3c69b0,_0x3ad534)=>_0x29cdfc(_0x3c69b0,_0x3ad534,_0x732899);const _0x1bd205=_0x2015b3['createIdentifier'](_0x3b3960(0x2d8));function _0x42ed5d(_0x25a30c,_0x12c8cc,_0x225256){const _0x360b01=_0x3b3960;return _0x25a30c+'/'+_0x12c8cc+_0x360b01(0x37a)+_0x225256+_0x360b01(0x56b);}_0x2c3354['CollaborationSocketService']=class{constructor(_0x1d4d5a,_0x394b06,_0xa5d022,_0x3c520e,_0x36a20a){const _0x2fd89b=_0x3b3960;this['_http']=_0x1d4d5a,this[_0x2fd89b(0x491)]=_0x394b06,this[_0x2fd89b(0x46c)]=_0xa5d022,this[_0x2fd89b(0x501)]=_0x3c520e,this[_0x2fd89b(0x44a)]=_0x36a20a;}[_0x3b3960(0x29b)](_0x471cbc){const _0x2b8fc6=_0x3b3960,_0xc6faf0=this[_0x2b8fc6(0x491)][_0x2b8fc6(0x29b)](_0x471cbc);if(!_0xc6faf0)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x6d368e=new _0x2015b3[(_0x2b8fc6(0x562))](),_0x30c477=new _0x345abe['Subject']();_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3['toDisposable'](_0xc6faf0[_0x2b8fc6(0x4f3)][_0x2b8fc6(0x35b)](_0x5db61b=>_0x30c477[_0x2b8fc6(0x2b0)](_0x5db61b)))),_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](()=>_0x30c477[_0x2b8fc6(0x4d4)]()));const _0x1e1d75=new _0x345abe[(_0x2b8fc6(0x421))]();_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3['toDisposable'](_0xc6faf0[_0x2b8fc6(0x46f)]['subscribe'](_0x8ad56e=>_0x1e1d75[_0x2b8fc6(0x2b0)](_0x8ad56e)))),_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](()=>_0x1e1d75[_0x2b8fc6(0x4d4)]()));const _0x4cd710=new _0x345abe['Subject']();_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](_0xc6faf0[_0x2b8fc6(0x23a)][_0x2b8fc6(0x35b)](_0x1e35ae=>{const _0x2e041f=_0x2b8fc6,_0x4b9eb3=_0x5040c3(_0x1e35ae);_0x4cd710[_0x2e041f(0x2b0)](_0x4b9eb3);}))),_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](()=>_0x4cd710[_0x2b8fc6(0x4d4)]()));const _0x155322=()=>{const _0x65ea89=_0x2b8fc6;_0x1e1d75[_0x65ea89(0x2b0)](new Event(_0x65ea89(0x205))),_0x30c477[_0x65ea89(0x2b0)](new CloseEvent(_0x65ea89(0x205))),_0x499caa[_0x65ea89(0x51c)]();},_0x499caa={'memberID':'','close$':_0x30c477[_0x2b8fc6(0x348)](),'error$':_0x1e1d75[_0x2b8fc6(0x348)](),'open$':_0xc6faf0[_0x2b8fc6(0x2b1)],'message$':_0x4cd710[_0x2b8fc6(0x348)](),'send':_0x3345c2=>{const _0x474872=_0x2b8fc6;if(_0x3345c2['cmd']===_0x52c13b[_0x474872(0x495)]){if(_0x3345c2['data']['eventID']===_0x106736['CollaborationEvent'][_0x474872(0x398)]){this[_0x474872(0x3b2)](_0x499caa,_0x3345c2[_0x474872(0x3e0)])[_0x474872(0x5b1)](_0x3b2454=>{const _0x574035=_0x474872;this[_0x574035(0x501)][_0x574035(0x50b)](_0x3b2454),_0x155322();});return;}if(_0x3345c2[_0x474872(0x3e0)][_0x474872(0x4aa)]===_0x106736[_0x474872(0x43e)][_0x474872(0x3da)]){const _0x259ca3=_0x3345c2[_0x474872(0x3e0)];this[_0x474872(0x569)](_0x259ca3)[_0x474872(0x28a)](_0x148ed1=>{const _0x309f29=_0x474872;_0x4cd710[_0x309f29(0x2b0)]({'cmd':_0x52c13b[_0x309f29(0x3cc)],'code':_0x1a4aa5['OK'],'routeKey':_0x259ca3[_0x309f29(0x3e0)][_0x309f29(0x353)],'routeType':'','data':{'eventID':_0x106736[_0x309f29(0x43e)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x148ed1}}});})[_0x474872(0x5b1)](_0x2215ac=>{const _0x54c8a3=_0x474872;this[_0x54c8a3(0x501)][_0x54c8a3(0x50b)](_0x2215ac),_0x155322();});return;}}_0xc6faf0['send'](_0x5a449f(_0x3345c2));},'close':()=>{const _0x3ecd3c=_0x2b8fc6;_0xc6faf0[_0x3ecd3c(0x51c)](),_0x6d368e['dispose']();}};return _0x499caa;}async[_0x3b3960(0x3b2)](_0x249623,_0xe3a4d9){const _0x337ffb=_0x3b3960;var _0xe06dc7;const {unitType:_0xa1cd0e,unitID:_0x46aa33,changeset:_0x3c89e7}=_0xe3a4d9[_0x337ffb(0x3e0)],_0x1653ab={'unitID':_0x46aa33,'memberID':_0x249623[_0x337ffb(0x2e8)],'type':_0xa1cd0e,'changeset':_0x106736[_0x337ffb(0x587)](_0x3c89e7)},_0x39d21a=_0x42ed5d((_0xe06dc7=this[_0x337ffb(0x46c)][_0x337ffb(0x584)](_0x3c7827))!=null?_0xe06dc7:_0x38f1bf,_0xa1cd0e,_0x46aa33);try{await this[_0x337ffb(0x4fb)]['post'](_0x39d21a,{'body':_0x1653ab});}catch(_0x20ac1c){throw this[_0x337ffb(0x501)][_0x337ffb(0x50b)](_0x337ffb(0x2d5),'submit\x20changeset\x20error!'),_0x20ac1c;}}async['_fetchMissChangesets'](_0x58b9f6){const _0x369f1e=_0x3b3960,{unitID:_0x2299b6,from:_0x41b6c2,to:_0x36a8b3,unitType:_0x2a7a07}=_0x58b9f6[_0x369f1e(0x3e0)];return(await this[_0x369f1e(0x44a)][_0x369f1e(0x5cb)]({'metadata':void 0x0},{'unitID':_0x2299b6,'type':_0x2a7a07,'from':_0x41b6c2,'to':_0x36a8b3}))[_0x369f1e(0x2df)];}},_0x2c3354[_0x3b3960(0x30f)]=_0x11da3d([_0x4eb1f1(0x0,_0x2015b3['Inject'](_0x485f8b['HTTPService'])),_0x4eb1f1(0x1,_0x2015b3[_0x3b3960(0x547)](_0x485f8b['WebSocketService'])),_0x4eb1f1(0x2,_0x2015b3[_0x3b3960(0x582)]),_0x4eb1f1(0x3,_0x2015b3[_0x3b3960(0x1f3)]),_0x4eb1f1(0x4,_0x106736[_0x3b3960(0x2f3)])],_0x2c3354['CollaborationSocketService']);class _0x3f4b4d{constructor(){const _0x31096c=_0x3b3960;_0x385cfe(this,_0x31096c(0x4ce),new _0x345abe[(_0x31096c(0x421))]()),_0x385cfe(this,_0x31096c(0x255),this[_0x31096c(0x4ce)][_0x31096c(0x348)]());}[_0x3b3960(0x5dc)](_0x5dafd2){this['_commentUpdate$']['next'](_0x5dafd2);}}var _0x54019f=Object['defineProperty'],_0x5d7009=Object[_0x3b3960(0x2c2)],_0x503bad=(_0x9ff261,_0x586e77,_0x213c16,_0x130302)=>{const _0x35f4c0=_0x3b3960;for(var _0x53ed7c=_0x130302>0x1?void 0x0:_0x130302?_0x5d7009(_0x586e77,_0x213c16):_0x586e77,_0x1e07b7=_0x9ff261[_0x35f4c0(0x306)]-0x1,_0x3810d8;_0x1e07b7>=0x0;_0x1e07b7--)(_0x3810d8=_0x9ff261[_0x1e07b7])&&(_0x53ed7c=(_0x130302?_0x3810d8(_0x586e77,_0x213c16,_0x53ed7c):_0x3810d8(_0x53ed7c))||_0x53ed7c);return _0x130302&&_0x53ed7c&&_0x54019f(_0x586e77,_0x213c16,_0x53ed7c),_0x53ed7c;},_0xa0f261=(_0x41fcdc,_0x1848f6)=>(_0x3a439b,_0x102982)=>_0x1848f6(_0x3a439b,_0x102982,_0x41fcdc),_0x510b8a=(_0xb10bbe=>(_0xb10bbe[_0xb10bbe[_0x3b3960(0x297)]=0x0]=_0x3b3960(0x297),_0xb10bbe[_0xb10bbe[_0x3b3960(0x4a2)]=0x1]=_0x3b3960(0x4a2),_0xb10bbe[_0xb10bbe['OFFLINE']=0x2]=_0x3b3960(0x461),_0xb10bbe[_0xb10bbe[_0x3b3960(0x457)]=0x3]='ONLINE',_0xb10bbe))(_0x510b8a||{});_0x2c3354[_0x3b3960(0x517)]=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x146e89,_0x3fe1a9,_0x2d11bb,_0x258316,_0x1c8463,_0x4a78a7,_0x5a1e7b,_0xfe1135,_0x4398e5){const _0x2b74e0=_0x3b3960;super(),_0x385cfe(this,_0x2b74e0(0x3f1),new _0x345abe[(_0x2b74e0(0x2f9))](0x0)),_0x385cfe(this,'sessionStatus$',this['_sessionStatus$']['asObservable']()),_0x385cfe(this,_0x2b74e0(0x4da),new _0x345abe[(_0x2b74e0(0x421))]()),_0x385cfe(this,_0x2b74e0(0x4ca),this['_event$'][_0x2b74e0(0x348)]()),_0x385cfe(this,_0x2b74e0(0x2cd)),_0x385cfe(this,_0x2b74e0(0x392)),_0x385cfe(this,_0x2b74e0(0x46e)),(this[_0x2b74e0(0x2e2)]=_0x146e89,this[_0x2b74e0(0x501)]=_0x2d11bb,this['_beforeCloseService']=_0x258316,this[_0x2b74e0(0x5ea)]=_0x1c8463,this[_0x2b74e0(0x46c)]=_0x4a78a7,this['_localeService']=_0x5a1e7b,this[_0x2b74e0(0x5e7)]=_0xfe1135,this[_0x2b74e0(0x379)]=_0x4398e5,_0x3fe1a9[_0x2b74e0(0x2d1)](_0x2cc613[_0x2b74e0(0x244)](this[_0x2b74e0(0x272)]))[_0x2b74e0(0x35b)](_0x438774=>{const _0x4a825c=_0x2b74e0;var _0x84e43;typeof _0x438774>'u'||(this[_0x4a825c(0x2cd)]=_0x438774,_0x438774?(this[_0x4a825c(0x36c)](_0x438774),this[_0x4a825c(0x392)]=this[_0x4a825c(0x2cd)]['message$'][_0x4a825c(0x35b)](_0x4bf8fb=>{const _0x210549=_0x4a825c;_0x4bf8fb[_0x210549(0x403)]===this[_0x210549(0x2e2)]&&this[_0x210549(0x4f7)](_0x4bf8fb);})):(this[_0x4a825c(0x3f1)][_0x4a825c(0x2b0)](0x2),(_0x84e43=this[_0x4a825c(0x392)])==null||_0x84e43[_0x4a825c(0x55a)](),this[_0x4a825c(0x392)]=null));}),this[_0x2b74e0(0x369)](this[_0x2b74e0(0x3d4)]['registerOnClose'](()=>{const _0xdc3eab=_0x2b74e0;var _0x5e51bb;(_0x5e51bb=this[_0xdc3eab(0x2cd)])==null||_0x5e51bb[_0xdc3eab(0x42b)]({'cmd':_0x52c13b[_0xdc3eab(0x30e)],'data':{'roomID':this[_0xdc3eab(0x2e2)]}});})));}get[_0x3b3960(0x1f4)](){const _0x4065f9=_0x3b3960;return this['_sessionStatus$'][_0x4065f9(0x521)]();}['getMemberID'](){const _0x4b8ace=_0x3b3960;var _0x31de17,_0x2b5af1;return(_0x2b5af1=(_0x31de17=this[_0x4b8ace(0x2cd)])==null?void 0x0:_0x31de17[_0x4b8ace(0x2e8)])!=null?_0x2b5af1:null;}[_0x3b3960(0x472)](){const _0x4c7d0e=_0x3b3960;super[_0x4c7d0e(0x472)](),this[_0x4c7d0e(0x272)][_0x4c7d0e(0x2b0)](),this[_0x4c7d0e(0x272)][_0x4c7d0e(0x4d4)]();}[_0x3b3960(0x51c)](){const _0x5c22d9=_0x3b3960;var _0x1f58ae,_0x22c0c4;(_0x1f58ae=this['_socket'])==null||_0x1f58ae['send']({'cmd':_0x52c13b['LEAVE'],'data':{'roomID':this[_0x5c22d9(0x2e2)]}}),this[_0x5c22d9(0x4da)]['complete'](),this['_sessionStatus$']['complete'](),(_0x22c0c4=this[_0x5c22d9(0x2cd)])==null||_0x22c0c4[_0x5c22d9(0x51c)](),this['dispose']();}[_0x3b3960(0x4f7)](_0x24260f){const _0x400ce3=_0x3b3960;_0x24260f[_0x400ce3(0x2b6)]===_0x52c13b['JOIN']?this['_onJoinRoomEvent'](_0x24260f):_0x24260f[_0x400ce3(0x2b6)]===_0x52c13b[_0x400ce3(0x3cc)]&&this[_0x400ce3(0x479)](_0x24260f);}['_joinRoom'](_0x1744eb){const _0x465af9=_0x3b3960;this[_0x465af9(0x3f1)]['next'](0x1),_0x1744eb[_0x465af9(0x42b)]({'cmd':_0x52c13b[_0x465af9(0x2e0)],'routeKey':this[_0x465af9(0x2e2)],'routeType':'','data':{'rooms':[{'roomID':this[_0x465af9(0x2e2)]}]}});}[_0x3b3960(0x47d)](_0x2fa6f9){const _0x8ed447=_0x3b3960;var _0x23f271;if(_0x2fa6f9[_0x8ed447(0x534)]===_0x1a4aa5[_0x8ed447(0x409)]){this['_messageService'][_0x8ed447(0x2c3)]({'type':_0x54ac63[_0x8ed447(0x55b)]['Warning'],'content':this[_0x8ed447(0x23b)]['t'](_0x8ed447(0x564))}),this[_0x8ed447(0x3f1)][_0x8ed447(0x2b0)](0x2);return;}this[_0x8ed447(0x3f1)][_0x8ed447(0x2b0)](0x3);const _0xfcb624=(_0x23f271=_0x2fa6f9[_0x8ed447(0x3e0)][_0x8ed447(0x354)][this[_0x8ed447(0x2e2)]])==null?void 0x0:_0x23f271['members'];_0xfcb624&&_0xfcb624[_0x8ed447(0x4d1)](_0x255575=>this[_0x8ed447(0x5e7)][_0x8ed447(0x313)](this[_0x8ed447(0x2e2)],_0x255575));}['_onRecvEvent'](_0x3839e0){const _0x15bad5=_0x3b3960;try{const _0x12f9cd=_0x3839e0[_0x15bad5(0x3e0)];switch(_0x12f9cd[_0x15bad5(0x4aa)]){case _0x106736[_0x15bad5(0x43e)][_0x15bad5(0x2b3)]:this[_0x15bad5(0x333)](_0x12f9cd),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736['CollaborationEvent'][_0x15bad5(0x519)]:this[_0x15bad5(0x5f9)](_0x12f9cd),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736[_0x15bad5(0x43e)][_0x15bad5(0x303)]:this[_0x15bad5(0x4c4)](),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736[_0x15bad5(0x43e)]['MSG_FOR_ERROR']:this[_0x15bad5(0x501)][_0x15bad5(0x50b)](_0x15bad5(0x34a)+JSON[_0x15bad5(0x4b3)](_0x12f9cd)),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736[_0x15bad5(0x43e)]['COMMENT_UPDATE']:this[_0x15bad5(0x379)][_0x15bad5(0x5dc)](_0x12f9cd[_0x15bad5(0x3e0)]),this['_event$']['next'](_0x12f9cd);break;default:this[_0x15bad5(0x4da)]['next'](_0x12f9cd);}}catch(_0x233714){this[_0x15bad5(0x501)][_0x15bad5(0x50b)](_0x233714,_0x3839e0);}}['_onUserJoin'](_0x22fbab){const _0x311966=_0x3b3960;this[_0x311966(0x5e7)][_0x311966(0x313)](this[_0x311966(0x2e2)],_0x22fbab[_0x311966(0x3e0)]);}[_0x3b3960(0x5f9)](_0xe4d99b){const _0x464e47=_0x3b3960;this[_0x464e47(0x5e7)]['removeMember'](this[_0x464e47(0x2e2)],_0xe4d99b[_0x464e47(0x3e0)][_0x464e47(0x2e8)]);}async['send'](_0x229cfd,_0x38a096){const _0xfcbab2=_0x3b3960;if(this[_0xfcbab2(0x1f4)]!==0x3||!this['_socket'])throw new Error(_0xfcbab2(0x26a));try{_0x229cfd[_0xfcbab2(0x4aa)]===_0x106736[_0xfcbab2(0x43e)][_0xfcbab2(0x2f1)]&&this['_scheduleCollaborationTimeoutTimer'](),this['_socket'][_0xfcbab2(0x42b)]({'cmd':_0x52c13b[_0xfcbab2(0x495)],'routeKey':_0x38a096,'routeType':'','data':_0x229cfd});}catch(_0x1495e8){this[_0xfcbab2(0x501)]['error'](_0x1495e8);}}['_scheduleCollaborationTimeoutTimer'](){const _0x213183=_0x3b3960;var _0x15a6a1;this[_0x213183(0x46e)]=window[_0x213183(0x4b1)](()=>{const _0x2e7675=_0x213183;this[_0x2e7675(0x46e)]=null,this[_0x2e7675(0x5ea)][_0x2e7675(0x2c3)]({'type':_0x54ac63['MessageType'][_0x2e7675(0x287)],'content':this[_0x2e7675(0x23b)]['t'](_0x2e7675(0x383))});},(_0x15a6a1=this[_0x213183(0x46c)][_0x213183(0x584)](_0x816b9c))!=null?_0x15a6a1:0x2710);}[_0x3b3960(0x4c4)](){const _0x109ea7=_0x3b3960;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x109ea7(0x46e)]),this[_0x109ea7(0x46e)]=null);}},_0x2c3354[_0x3b3960(0x517)]=_0x503bad([_0xa0f261(0x2,_0x2015b3['ILogService']),_0xa0f261(0x3,_0x44b766[_0x3b3960(0x5cd)]),_0xa0f261(0x4,_0x44b766['IMessageService']),_0xa0f261(0x5,_0x2015b3[_0x3b3960(0x582)]),_0xa0f261(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0xa0f261(0x7,_0x2015b3[_0x3b3960(0x547)](_0x25752c)),_0xa0f261(0x8,_0x2015b3['Inject'](_0x3f4b4d))],_0x2c3354[_0x3b3960(0x517)]),_0x2c3354['CollaborationSessionService']=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x1650a4,_0x1c762d,_0x31022f,_0x51f152,_0x1d0076,_0x95890c){const _0x4719dc=_0x3b3960;super(),_0x385cfe(this,'_socket$',new _0x345abe['BehaviorSubject'](void 0x0)),_0x385cfe(this,_0x4719dc(0x4f6),new Map()),_0x385cfe(this,_0x4719dc(0x4e9),new _0x345abe[(_0x4719dc(0x2f9))](0x0)),_0x385cfe(this,_0x4719dc(0x2f5),this['_status$'][_0x4719dc(0x348)]()),_0x385cfe(this,'_socketReady',!0x1),_0x385cfe(this,_0x4719dc(0x4fc)),_0x385cfe(this,_0x4719dc(0x490)),_0x385cfe(this,_0x4719dc(0x3f9)),_0x385cfe(this,_0x4719dc(0x578),0x0),(this['_injector']=_0x1650a4,this[_0x4719dc(0x23b)]=_0x1c762d,this[_0x4719dc(0x5ea)]=_0x31022f,this[_0x4719dc(0x501)]=_0x51f152,this['_configService']=_0x1d0076,this[_0x4719dc(0x310)]=_0x95890c);}get[_0x3b3960(0x2cd)](){const _0xb2bbe6=_0x3b3960;return this['_socket$'][_0xb2bbe6(0x521)]();}[_0x3b3960(0x472)](){const _0x3b4705=_0x3b3960;super['dispose'](),this[_0x3b4705(0x4f6)]['forEach'](_0x2e135d=>_0x2e135d[_0x3b4705(0x472)]()),this[_0x3b4705(0x4f6)][_0x3b4705(0x577)](),this[_0x3b4705(0x4e9)][_0x3b4705(0x4d4)]();}async[_0x3b3960(0x5db)](_0x5837a7){const _0x141567=_0x3b3960;if(this[_0x141567(0x4f6)]['has'](_0x5837a7))return this[_0x141567(0x4f6)][_0x141567(0x3b9)](_0x5837a7);this[_0x141567(0x3ed)]();const _0x382101=this[_0x141567(0x3f4)]['createInstance'](_0x2c3354[_0x141567(0x517)],_0x5837a7,this['_socket$'][_0x141567(0x348)]());return this[_0x141567(0x4f6)][_0x141567(0x420)](_0x5837a7,_0x382101),_0x382101;}[_0x3b3960(0x32c)](_0xa246cc){const _0x2b2959=_0x3b3960;var _0x19c389;const _0x42c4e6=this[_0x2b2959(0x4f6)][_0x2b2959(0x3b9)](_0xa246cc);_0x42c4e6&&(this['_sessions']['delete'](_0xa246cc),_0x42c4e6['close']()),this[_0x2b2959(0x4f6)][_0x2b2959(0x52c)]||(_0x19c389=this[_0x2b2959(0x2cd)])==null||_0x19c389[_0x2b2959(0x51c)]();}[_0x3b3960(0x3ac)](){const _0x35b4c4=_0x3b3960;var _0x51b169;const _0x1d2b7f=(_0x51b169=this[_0x35b4c4(0x46c)][_0x35b4c4(0x584)](_0x332c44))!=null?_0x51b169:_0x55e528;return this['_socketService'][_0x35b4c4(0x29b)](_0x1d2b7f);}['_tryEnsureSocket'](){const _0xbe8e3e=_0x3b3960;try{const _0x462bbe=this[_0xbe8e3e(0x3ac)]();if(_0x462bbe){const _0x1a19ea=_0x462bbe[_0xbe8e3e(0x42b)];_0x462bbe['send']=_0x70c19d=>(this['_rescheduleHeartbeatEvent'](),_0x1a19ea['apply'](_0x462bbe,[_0x70c19d])),_0x462bbe[_0xbe8e3e(0x23a)][_0xbe8e3e(0x35b)](_0x5af25f=>this['_onMessage'](_0x462bbe,_0x5af25f)),_0x462bbe['error$']['pipe'](_0x2cc613[_0xbe8e3e(0x46a)](0x1))[_0xbe8e3e(0x35b)](_0x4ebd7a=>this[_0xbe8e3e(0x501)][_0xbe8e3e(0x50b)](_0xbe8e3e(0x42c),_0x4ebd7a)),_0x462bbe['open$'][_0xbe8e3e(0x2d1)](_0x2cc613['take'](0x1))[_0xbe8e3e(0x35b)](()=>{const _0x1457d5=_0xbe8e3e;this[_0x1457d5(0x591)](_0x462bbe);}),_0x462bbe[_0xbe8e3e(0x4f3)][_0xbe8e3e(0x2d1)](_0x2cc613[_0xbe8e3e(0x46a)](0x1))[_0xbe8e3e(0x35b)](_0x5dfde1=>{const _0xa64dfe=_0xbe8e3e;this[_0xa64dfe(0x501)][_0xa64dfe(0x210)](_0xa64dfe(0x2a8),_0xa64dfe(0x252),_0x5dfde1),this['_onConnectionFailed']();});}}catch(_0x2e532b){this[_0xbe8e3e(0x501)][_0xbe8e3e(0x50b)](_0x2e532b),this[_0xbe8e3e(0x5e0)]();}}[_0x3b3960(0x591)](_0x2ec0f1){const _0x245e91=_0x3b3960;this[_0x245e91(0x501)]['debug']('[CollaborationSessionService]',_0x245e91(0x407)),_0x2ec0f1['send']({'cmd':_0x52c13b['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x3b3960(0x5e0)](){const _0x45bf04=_0x3b3960;var _0x10a173;this[_0x45bf04(0x4e9)][_0x45bf04(0x2b0)](0x2),this[_0x45bf04(0x429)][_0x45bf04(0x2b0)](null),this[_0x45bf04(0x40a)](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x45bf04(0x578)]<((_0x10a173=this['_configService'][_0x45bf04(0x584)](_0xb1acb))!=null?_0x10a173:0x3)?(this[_0x45bf04(0x1f6)](this[_0x45bf04(0x578)]),this[_0x45bf04(0x578)]+=0x1):this['_messageService'][_0x45bf04(0x2c3)]({'type':_0x54ac63[_0x45bf04(0x55b)][_0x45bf04(0x287)],'content':this[_0x45bf04(0x23b)]['t']('session.connection-failed')});}['_scheduleReconnection'](_0x49d7c3){const _0x54ea8c=_0x3b3960;var _0x2e6056;const _0x56ca26=((_0x2e6056=this['_configService']['getConfig'](_0x11fd51))!=null?_0x2e6056:0x4e20)*0x2**_0x49d7c3;this[_0x54ea8c(0x5ea)][_0x54ea8c(0x2c3)]({'type':_0x54ac63[_0x54ea8c(0x55b)]['Warning'],'content':this[_0x54ea8c(0x23b)]['t'](_0x54ea8c(0x3a6))}),this[_0x54ea8c(0x3f9)]=setTimeout(()=>{const _0x250f44=_0x54ea8c;this['_tryEnsureSocket'](),clearTimeout(this[_0x250f44(0x3f9)]),this[_0x250f44(0x3f9)]=null;},_0x56ca26);}[_0x3b3960(0x234)](){const _0x7c2cca=_0x3b3960;var _0x4d09be;this[_0x7c2cca(0x563)](),this[_0x7c2cca(0x4fc)]=setTimeout(()=>this[_0x7c2cca(0x241)](),(_0x4d09be=this[_0x7c2cca(0x46c)][_0x7c2cca(0x584)](_0x879d7e))!=null?_0x4d09be:0x7530);}[_0x3b3960(0x241)](){const _0xe6f073=_0x3b3960;this[_0xe6f073(0x2cd)]['send']({'cmd':_0x52c13b[_0xe6f073(0x227)]}),this[_0xe6f073(0x5ce)]();}['_waitForHeartbeatResponse'](){const _0x34e3cc=_0x3b3960;var _0x4b912f;this[_0x34e3cc(0x490)]=setTimeout(()=>this[_0x34e3cc(0x5e0)](),(_0x4b912f=this[_0x34e3cc(0x46c)][_0x34e3cc(0x584)](_0x816b9c))!=null?_0x4b912f:0x2710);}[_0x3b3960(0x48f)](_0x5ce4fe,_0xafd618){const _0x5ac593=_0x3b3960,{cmd:_0x48cc24}=_0xafd618;_0x48cc24===_0x52c13b[_0x5ac593(0x41b)]&&!this[_0x5ac593(0x55d)]&&(_0x5ce4fe['memberID']=_0xafd618[_0x5ac593(0x3e0)]['memberID'],this[_0x5ac593(0x429)][_0x5ac593(0x2b0)](_0x5ce4fe),this['_status$'][_0x5ac593(0x2b0)](0x3),this[_0x5ac593(0x55d)]=!0x0),_0x48cc24===_0x52c13b[_0x5ac593(0x227)]&&this[_0x5ac593(0x40a)](),this[_0x5ac593(0x234)]();}[_0x3b3960(0x563)](){const _0x1aeb2b=_0x3b3960;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x1aeb2b(0x4fc)]),this[_0x1aeb2b(0x4fc)]=null);}[_0x3b3960(0x40a)](){const _0x40201a=_0x3b3960;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x40201a(0x490)]),this[_0x40201a(0x490)]=null);}},_0x2c3354[_0x3b3960(0x4b4)]=_0x503bad([_0xa0f261(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0xa0f261(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0xa0f261(0x2,_0x44b766['IMessageService']),_0xa0f261(0x3,_0x2015b3['ILogService']),_0xa0f261(0x4,_0x2015b3[_0x3b3960(0x582)]),_0xa0f261(0x5,_0x1bd205)],_0x2c3354[_0x3b3960(0x4b4)]);var _0x77a193=Object[_0x3b3960(0x57c)],_0x463060=Object['getOwnPropertyDescriptor'],_0x44f983=(_0x134b07,_0x59b8d2,_0x6957d5,_0xeb19d0)=>{for(var _0x5c1e42=_0xeb19d0>0x1?void 0x0:_0xeb19d0?_0x463060(_0x59b8d2,_0x6957d5):_0x59b8d2,_0x953809=_0x134b07['length']-0x1,_0x313460;_0x953809>=0x0;_0x953809--)(_0x313460=_0x134b07[_0x953809])&&(_0x5c1e42=(_0xeb19d0?_0x313460(_0x59b8d2,_0x6957d5,_0x5c1e42):_0x313460(_0x5c1e42))||_0x5c1e42);return _0xeb19d0&&_0x5c1e42&&_0x77a193(_0x59b8d2,_0x6957d5,_0x5c1e42),_0x5c1e42;},_0x3eceb8=(_0xd0e175,_0x48bcbd)=>(_0x1b6cca,_0x31396f)=>_0x48bcbd(_0x1b6cca,_0x31396f,_0xd0e175);_0x2c3354[_0x3b3960(0x3dc)]=class extends _0x2015b3['Disposable']{constructor(_0x25b20d,_0x33e2bc,_0x4b8095,_0x3f6164,_0x4cd67a){const _0x59d32d=_0x3b3960;super(),_0x385cfe(this,'_cachedData',new Map()),_0x385cfe(this,_0x59d32d(0x3e3),new Map()),_0x385cfe(this,_0x59d32d(0x207),!0x1),(this[_0x59d32d(0x46c)]=_0x25b20d,this['_localStorageService']=_0x33e2bc,this['_beforeCloseService']=_0x4b8095,this[_0x59d32d(0x23b)]=_0x3f6164,this['_revisionService']=_0x4cd67a,this[_0x59d32d(0x2d4)]());}[_0x3b3960(0x5ed)](){const _0x2cf7bd=_0x3b3960;this[_0x2cf7bd(0x207)]=!0x0;}['enableLocalCache'](){const _0x35076d=_0x3b3960;this[_0x35076d(0x207)]=!0x1;}['dispose'](){const _0x289e0a=_0x3b3960;this[_0x289e0a(0x3ad)]()['then'](()=>super[_0x289e0a(0x472)]());}async[_0x3b3960(0x56a)](_0x484427){const _0x47cabb=_0x3b3960;return this[_0x47cabb(0x207)]?null:this[_0x47cabb(0x48e)][_0x47cabb(0x332)](_0x1f9b64(_0x484427));}async['saveOfflineData'](_0x26397e,_0xbc1e09){const _0x5cfcf3=_0x3b3960;return!!this[_0x5cfcf3(0x48e)][_0x5cfcf3(0x391)](_0x26397e,_0xbc1e09);}[_0x3b3960(0x53d)](_0x179259,_0x206213,_0x9c2f7f,_0x44c135){const _0x36e5ce=_0x3b3960,_0x4b473b=this[_0x36e5ce(0x59c)]['getCurrentRevForDocument'](_0x179259);this['_cachedData'][_0x36e5ce(0x420)](_0x179259,{'unitID':_0x179259,'type':_0x206213,'awaitingChangeset':_0x9c2f7f,'mutations':_0x44c135,'rev':_0x4b473b}),this[_0x36e5ce(0x3e3)][_0x36e5ce(0x337)](_0x179259)||this[_0x36e5ce(0x4de)](_0x179259);}[_0x3b3960(0x4de)](_0x534ab8){const _0x5bea55=_0x3b3960,_0x2934cd=this[_0x5bea55(0x5ad)]();_0x2934cd===0x0?this['_saveCache'](_0x534ab8):this['_saveTaskMap']['set'](_0x534ab8,setTimeout(()=>this[_0x5bea55(0x33e)](_0x534ab8),_0x2934cd));}[_0x3b3960(0x5ad)](){const _0x1fc311=_0x3b3960;var _0x4b350d;return(_0x4b350d=this[_0x1fc311(0x46c)][_0x1fc311(0x584)](_0x3f1ca0))!=null?_0x4b350d:0x3e8;}[_0x3b3960(0x33e)](_0x174882){const _0x35fc0e=_0x3b3960,_0x158f82=this['_saveTaskMap'][_0x35fc0e(0x3b9)](_0x174882);return _0x158f82!==void 0x0&&window[_0x35fc0e(0x3c8)](_0x158f82),this[_0x35fc0e(0x48e)][_0x35fc0e(0x391)](_0x1f9b64(_0x174882),this[_0x35fc0e(0x458)][_0x35fc0e(0x3b9)](_0x174882))['then'](()=>this[_0x35fc0e(0x3e3)][_0x35fc0e(0x431)](_0x174882));}async['exhaustSavingTask'](){const _0x362adb=_0x3b3960,_0x34ac38=[];this['_saveTaskMap'][_0x362adb(0x4d1)]((_0x372f12,_0x23be35)=>{const _0x21afc4=_0x362adb;window['clearTimeout'](_0x372f12),_0x34ac38[_0x21afc4(0x279)](this[_0x21afc4(0x33e)](_0x23be35)[_0x21afc4(0x28a)](()=>{const _0x54da38=_0x21afc4;this[_0x54da38(0x3e3)][_0x54da38(0x431)](_0x23be35);}));}),await Promise[_0x362adb(0x427)](_0x34ac38);}['_setupBeforeClosingHandler'](){const _0x434396=_0x3b3960;this['disposeWithMe'](this['_beforeCloseService'][_0x434396(0x26e)](()=>{const _0xf3180f=_0x434396;if(this[_0xf3180f(0x3e3)][_0xf3180f(0x52c)])return this[_0xf3180f(0x23b)]['t'](_0xf3180f(0x3aa));}));}},_0x2c3354[_0x3b3960(0x3dc)]=_0x44f983([_0x3eceb8(0x0,_0x2015b3[_0x3b3960(0x582)]),_0x3eceb8(0x1,_0x2015b3['ILocalStorageService']),_0x3eceb8(0x2,_0x44b766[_0x3b3960(0x5cd)]),_0x3eceb8(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x3eceb8(0x4,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)]))],_0x2c3354[_0x3b3960(0x3dc)]);function _0x1f9b64(_0x51682d){const _0x45f2df=_0x3b3960;return _0x45f2df(0x2da)+_0x51682d;}const _0x55925e=_0x2015b3[_0x3b3960(0x2ab)](_0x3b3960(0x27f));var _0x2d9e3c=(_0x968f93=>(_0x968f93[_0x968f93[_0x3b3960(0x305)]=0x0]=_0x3b3960(0x305),_0x968f93[_0x968f93[_0x3b3960(0x393)]=0x1]=_0x3b3960(0x393),_0x968f93))(_0x2d9e3c||{});const _0x564307=0x7530,_0x1a148e=_0x3b3960(0x537);class _0x200347 extends _0x2015b3[_0x3b3960(0x38b)]{constructor(){const _0x1aa4c2=_0x3b3960;super(),_0x385cfe(this,_0x1aa4c2(0x316),_0x2015b3[_0x1aa4c2(0x471)][_0x1aa4c2(0x447)]()),_0x385cfe(this,_0x1aa4c2(0x538),new Set()),_0x385cfe(this,_0x1aa4c2(0x39d),new Map()),_0x385cfe(this,_0x1aa4c2(0x2ee),null),_0x385cfe(this,'_clearOtherTimers',new Map()),_0x385cfe(this,_0x1aa4c2(0x3f6),new Map()),this[_0x1aa4c2(0x4a1)]();}[_0x3b3960(0x472)](){const _0x178120=_0x3b3960;super['dispose'](),this[_0x178120(0x204)][_0x178120(0x4d1)]((_0x2b24e0,_0x1bd30c)=>this[_0x178120(0x3d1)](_0x1bd30c)),this[_0x178120(0x2ee)]&&window[_0x178120(0x50f)](this['_heartbeatTimer']);}[_0x3b3960(0x5f4)](_0x3f1869){const _0x2493ca=_0x3b3960;return this[_0x2493ca(0x448)](_0x3f1869)['pipe'](_0x345abe[_0x2493ca(0x26d)]());}[_0x3b3960(0x539)](_0x57f170){const _0x6523df=_0x3b3960;this[_0x6523df(0x538)]['size']===0x0&&this[_0x6523df(0x262)](),this['_selfUnitIDs'][_0x6523df(0x28c)](_0x57f170),this[_0x6523df(0x469)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x57f170],'isForwarded':!0x1});}['disposeUnit'](_0x3f28d2){const _0x154043=_0x3b3960;this[_0x154043(0x538)][_0x154043(0x431)](_0x3f28d2),this[_0x154043(0x538)][_0x154043(0x52c)]===0x0&&this['_heartbeatTimer']&&window[_0x154043(0x50f)](this[_0x154043(0x2ee)]);}['_init'](){const _0x3eb890=_0x3b3960;this[_0x3eb890(0x369)](_0x2015b3[_0x3eb890(0x31c)](_0x345abe[_0x3eb890(0x44c)](window,_0x3eb890(0x3c1))[_0x3eb890(0x35b)](_0x3a6b7c=>{const _0x22c92c=_0x3eb890;if(_0x3a6b7c['key']!==_0x1a148e||!_0x3a6b7c[_0x22c92c(0x53b)])return;const _0x2ac098=JSON[_0x22c92c(0x488)](_0x3a6b7c[_0x22c92c(0x53b)]);this[_0x22c92c(0x453)](_0x2ac098);}))),window[_0x3eb890(0x411)](_0x3eb890(0x35c),()=>this['_send']({'type':0x1,'memberID':this[_0x3eb890(0x316)],'unitIDs':Array[_0x3eb890(0x4f1)](this[_0x3eb890(0x538)])}));}[_0x3b3960(0x453)](_0x3370cf){const _0x24e9e0=_0x3b3960;switch(_0x3370cf['type']){case 0x0:this[_0x24e9e0(0x593)](_0x3370cf);break;case 0x1:this[_0x24e9e0(0x571)](_0x3370cf);break;case 0x2:this[_0x24e9e0(0x532)](_0x3370cf);break;}}[_0x3b3960(0x593)](_0x41579a){const _0x21f400=_0x3b3960,{unitIDs:_0xf8b40b,memberID:_0x35cc3c,isForwarded:_0xff0959}=_0x41579a;_0xf8b40b[_0x21f400(0x4d1)](_0x2151e9=>{const _0xf8f2a1=_0x21f400;if(!_0xff0959&&this['_unitOnClients'][_0xf8f2a1(0x337)](_0x2151e9)&&this['_ensureSubject'](_0x2151e9)[_0xf8f2a1(0x2b0)](0x1),!this[_0xf8f2a1(0x39d)][_0xf8f2a1(0x337)](_0x2151e9)||!this[_0xf8f2a1(0x39d)]['get'](_0x2151e9)['has'](_0x35cc3c)){const _0x32eeca=this[_0xf8f2a1(0x39d)][_0xf8f2a1(0x3b9)](_0x2151e9)||new Set();_0x32eeca['add'](_0x35cc3c),this[_0xf8f2a1(0x39d)]['set'](_0x2151e9,_0x32eeca),this['_scheduleClearOtherTimer'](_0x35cc3c);}}),_0xff0959||this[_0x21f400(0x469)]({'type':0x0,'memberID':this[_0x21f400(0x316)],'unitIDs':[...this[_0x21f400(0x538)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2bbe91){const _0x26e150=_0x3b3960;this[_0x26e150(0x3d1)](_0x2bbe91);const _0x1101cc=window[_0x26e150(0x4b1)](()=>{this['_unitOnClients']['forEach'](_0x149454=>{const _0xb60376=_0x41fb;_0x149454[_0xb60376(0x431)](_0x2bbe91);});},_0x564307*0x2);this[_0x26e150(0x204)][_0x26e150(0x420)](_0x2bbe91,_0x1101cc);}[_0x3b3960(0x3d1)](_0x2b7e93){const _0x1aee61=_0x3b3960;if(this['_clearOtherTimers'][_0x1aee61(0x337)](_0x2b7e93)){const _0x4de246=this[_0x1aee61(0x204)][_0x1aee61(0x3b9)](_0x2b7e93);_0x4de246&&window[_0x1aee61(0x3c8)](_0x4de246),this['_clearOtherTimers'][_0x1aee61(0x420)](_0x2b7e93,null);}}['_handleLeaveEvent'](_0x117f57){const _0x3681c0=_0x3b3960,{memberID:_0x40f25a,unitIDs:_0x3596ef}=_0x117f57;_0x3596ef[_0x3681c0(0x4d1)](_0x50487d=>{const _0xb162e5=_0x3681c0;var _0x92d461;const _0x1819d9=this['_unitOnClients'][_0xb162e5(0x3b9)](_0x50487d);_0x1819d9&&(_0x1819d9[_0xb162e5(0x431)](_0x40f25a),(_0x92d461=this[_0xb162e5(0x448)](_0x50487d))==null||_0x92d461[_0xb162e5(0x2b0)](_0x1819d9[_0xb162e5(0x52c)]===0x0?0x0:0x1));}),this[_0x3681c0(0x3d1)](_0x40f25a);}[_0x3b3960(0x532)](_0x3ec417){const _0x5b0d43=_0x3b3960;this[_0x5b0d43(0x338)](_0x3ec417['memberID']);}[_0x3b3960(0x469)](_0x58640e){const _0xe41dfa=_0x3b3960;localStorage[_0xe41dfa(0x391)](_0x1a148e,JSON['stringify'](_0x58640e));}[_0x3b3960(0x262)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x1feb3f=_0x41fb;this[_0x1feb3f(0x469)]({'type':0x2,'memberID':this['_id']});},_0x564307);}[_0x3b3960(0x448)](_0x44b175){const _0x12d245=_0x3b3960;return this[_0x12d245(0x3f6)][_0x12d245(0x337)](_0x44b175)||this[_0x12d245(0x3f6)]['set'](_0x44b175,new _0x345abe['BehaviorSubject'](0x0)),this[_0x12d245(0x3f6)]['get'](_0x44b175);}}var _0x5a57bf=Object[_0x3b3960(0x57c)],_0x2c7519=Object[_0x3b3960(0x2c2)],_0x5d91a9=(_0x2ad29e,_0x14a13c,_0x5bce75,_0x5d9193)=>{const _0x559a3b=_0x3b3960;for(var _0x1a3af9=_0x5d9193>0x1?void 0x0:_0x5d9193?_0x2c7519(_0x14a13c,_0x5bce75):_0x14a13c,_0x39206e=_0x2ad29e[_0x559a3b(0x306)]-0x1,_0x33dbde;_0x39206e>=0x0;_0x39206e--)(_0x33dbde=_0x2ad29e[_0x39206e])&&(_0x1a3af9=(_0x5d9193?_0x33dbde(_0x14a13c,_0x5bce75,_0x1a3af9):_0x33dbde(_0x1a3af9))||_0x1a3af9);return _0x5d9193&&_0x1a3af9&&_0x5a57bf(_0x14a13c,_0x5bce75,_0x1a3af9),_0x1a3af9;},_0xc5274e=(_0x4d221b,_0x4226cb)=>(_0x41999c,_0x421a84)=>_0x4226cb(_0x41999c,_0x421a84,_0x4d221b);let _0x3d8f9f=class{constructor(_0x50455c,_0x528053){const _0x100b05=_0x3b3960;this[_0x100b05(0x3f4)]=_0x50455c,this[_0x100b05(0x3b1)]=_0x528053;}[_0x3b3960(0x4dc)](_0x16b881){const _0xe5d73f=_0x3b3960;this[_0xe5d73f(0x29f)](_0x16b881),this[_0xe5d73f(0x397)](_0x16b881);}[_0x3b3960(0x2cb)](_0x21645b){const _0x4b6149=_0x3b3960,_0x581298=this[_0x4b6149(0x3f4)]['get'](_0xbcf55e[_0x4b6149(0x50d)]),{redoCache:_0xf73320}=_0x581298[_0x4b6149(0x2b8)]();if(_0xf73320['length']===0x0)return _0x21645b;let _0x560767=_0x2015b3[_0x4b6149(0x471)][_0x4b6149(0x47a)](_0x21645b[_0x4b6149(0x2e7)][0x0]);for(let _0x4338b6=0x0;_0x4338b6<_0xf73320[_0x4b6149(0x306)];_0x4338b6++){const _0x552866={'id':_0x4b6149(0x412),'params':{..._0xf73320[_0x4338b6]}},_0x1f079e=this['_transformService']['transformMutation'](_0x560767,_0x552866,!0x1);if(_0x106736['isTransformMutationFailure'](_0x1f079e))throw _0x1f079e['error'];_0x560767=_0x1f079e[_0x4b6149(0x59e)];}return{..._0x2015b3[_0x4b6149(0x471)][_0x4b6149(0x47a)](_0x21645b),'mutations':[_0x560767]};}[_0x3b3960(0x29f)](_0x421af7){const _0x8d5e99=_0x3b3960,_0x27a6ad=this['_injector'][_0x8d5e99(0x3b9)](_0xbcf55e[_0x8d5e99(0x50d)]),{undoCache:_0x3df1b0,redoCache:_0x2dcd94}=_0x27a6ad[_0x8d5e99(0x2b8)]();if(_0x3df1b0['length']===0x0||_0x2dcd94[_0x8d5e99(0x306)]===0x0)return;const _0x19e4f2=[],_0x303eae=[];let _0x1cdaeb=_0x2015b3[_0x8d5e99(0x471)][_0x8d5e99(0x47a)](_0x421af7['mutations'][0x0]),_0x1f679f=_0x2015b3[_0x8d5e99(0x471)][_0x8d5e99(0x47a)](_0x421af7[_0x8d5e99(0x2e7)][0x0]);for(let _0x3c5ffd=_0x3df1b0['length']-0x1;_0x3c5ffd>=0x0;_0x3c5ffd--){const _0x42bb30={'id':_0x8d5e99(0x412),'params':{..._0x3df1b0[_0x3c5ffd]}},_0x29e4a5={'id':_0x8d5e99(0x412),'params':{..._0x2dcd94[_0x3c5ffd]}},_0x114f6b=this[_0x8d5e99(0x3b1)][_0x8d5e99(0x3e8)](_0x1cdaeb,_0x42bb30,!0x1),_0xeb6c61=this[_0x8d5e99(0x3b1)][_0x8d5e99(0x3e8)](_0x1f679f,_0x29e4a5,!0x1);if(_0x106736[_0x8d5e99(0x201)](_0x114f6b))throw _0x114f6b[_0x8d5e99(0x50b)];if(_0x106736['isTransformMutationFailure'](_0xeb6c61))throw _0xeb6c61[_0x8d5e99(0x50b)];_0x19e4f2['unshift'](_0x114f6b[_0x8d5e99(0x4af)][_0x8d5e99(0x358)]),_0x303eae[_0x8d5e99(0x55c)](_0xeb6c61[_0x8d5e99(0x4af)][_0x8d5e99(0x358)]),_0x1cdaeb=_0x114f6b['m1Prime'],_0x1f679f=_0xeb6c61['m1Prime'];}_0x27a6ad['setUndoRedoMutationParamsCache']({'undoCache':_0x19e4f2,'redoCache':_0x303eae});}[_0x3b3960(0x397)](_0x5c2976){const _0x41a44b=_0x3b3960,_0x3b4eb8=this[_0x41a44b(0x3f4)][_0x41a44b(0x3b9)](_0xbcf55e[_0x41a44b(0x50d)]),_0x13ed3b=_0x3b4eb8['getActiveRange']();if(_0x13ed3b==null)return;const _0x3dd311=[{'id':_0x41a44b(0x412),'params':{'unitId':_0x5c2976[_0x41a44b(0x353)],'actions':null,'textRanges':[_0x13ed3b]}}],_0x479e92=this[_0x41a44b(0x3b1)][_0x41a44b(0x2dc)](_0x5c2976,_0x3dd311);if(!_0x106736[_0x41a44b(0x58d)](_0x479e92))throw _0x479e92[_0x41a44b(0x50b)];const _0x40bc27=_0x479e92[_0x41a44b(0x4af)][0x0][_0x41a44b(0x358)][_0x41a44b(0x23f)];Array['isArray'](_0x40bc27)&&_0x40bc27['length']&&_0x3b4eb8[_0x41a44b(0x481)](_0x40bc27[0x0]);}};_0x3d8f9f=_0x5d91a9([_0xc5274e(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0xc5274e(0x1,_0x106736['ITransformService'])],_0x3d8f9f);var _0x1e0fd3=Object['defineProperty'],_0x47689c=Object['getOwnPropertyDescriptor'],_0x9a1023=(_0x354136,_0x1332f8,_0x1ffe2c,_0x3bae13)=>{const _0xfc5122=_0x3b3960;for(var _0x5a2342=_0x3bae13>0x1?void 0x0:_0x3bae13?_0x47689c(_0x1332f8,_0x1ffe2c):_0x1332f8,_0x1786bc=_0x354136[_0xfc5122(0x306)]-0x1,_0x2d8f28;_0x1786bc>=0x0;_0x1786bc--)(_0x2d8f28=_0x354136[_0x1786bc])&&(_0x5a2342=(_0x3bae13?_0x2d8f28(_0x1332f8,_0x1ffe2c,_0x5a2342):_0x2d8f28(_0x5a2342))||_0x5a2342);return _0x3bae13&&_0x5a2342&&_0x1e0fd3(_0x1332f8,_0x1ffe2c,_0x5a2342),_0x5a2342;},_0x4fd8f2=(_0x19d617,_0x1ab56d)=>(_0x56d045,_0x2f8521)=>_0x1ab56d(_0x56d045,_0x2f8521,_0x19d617);let _0x27cbd7=class{constructor(_0x3c3797,_0x1b304c){const _0x4b4de8=_0x3b3960;this[_0x4b4de8(0x3f4)]=_0x3c3797,this[_0x4b4de8(0x3b1)]=_0x1b304c;}[_0x3b3960(0x2c8)](_0x4bfd25){const _0x3ed5fd=_0x3b3960;var _0x2509d4;const _0xd91344=this[_0x3ed5fd(0x3f4)][_0x3ed5fd(0x3b9)](_0xbcf55e['TextSelectionManagerService']),_0x7017f4=(_0x2509d4=_0xd91344[_0x3ed5fd(0x342)]())!=null?_0x2509d4:[],_0x237ef0=_0x7017f4==null?void 0x0:_0x7017f4['map'](_0xbcf55e[_0x3ed5fd(0x489)]);if(_0x237ef0[_0x3ed5fd(0x306)]===0x0)return;const _0x59ee19=[{'id':_0x3ed5fd(0x412),'params':{'unitId':_0x4bfd25[_0x3ed5fd(0x353)],'actions':null,'textRanges':_0x237ef0}}],_0x4d4bdd=this[_0x3ed5fd(0x3b1)][_0x3ed5fd(0x2dc)](_0x4bfd25,_0x59ee19);if(!_0x106736[_0x3ed5fd(0x58d)](_0x4d4bdd))throw _0x4d4bdd['error'];const _0x50db41=_0x4d4bdd['m2Prime'][0x0][_0x3ed5fd(0x358)][_0x3ed5fd(0x23f)];Array[_0x3ed5fd(0x31d)](_0x50db41)&&_0x50db41[_0x3ed5fd(0x306)]&&_0xd91344[_0x3ed5fd(0x32a)](_0x50db41,!0x1);}};_0x27cbd7=_0x9a1023([_0x4fd8f2(0x0,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x4fd8f2(0x1,_0x106736[_0x3b3960(0x25a)])],_0x27cbd7);function _0x2763e1(_0x1b02b0){const _0x1f201b=_0x3b3960;let _0x2ace6a='';for(const _0x47b37e of _0x1b02b0){const {startOffset:_0x2be21c,endOffset:_0x28d7d3,isActive:_0x10c66c}=_0x47b37e;_0x2ace6a[_0x1f201b(0x306)]&&(_0x2ace6a+=','),_0x2ace6a+=_0x2be21c+':'+_0x28d7d3+':'+(_0x10c66c?'1':'0');}return _0x2ace6a;}function _0x3d4548(_0x536803){const _0x3bc8e2=_0x3b3960,_0x55f4ab=_0x536803[_0x3bc8e2(0x29e)](','),_0x40db8c=[];for(const _0x750722 of _0x55f4ab){const [_0xac00fe,_0x535265,_0x4ef4f7]=_0x750722[_0x3bc8e2(0x29e)](':');_0x40db8c[_0x3bc8e2(0x279)]({'startOffset':Number(_0xac00fe),'endOffset':Number(_0x535265),'collapsed':_0xac00fe===_0x535265,'isActive':_0x4ef4f7==='1'});}return _0x40db8c[_0x3bc8e2(0x59d)](_0x4d7728=>_0x4d7728[_0x3bc8e2(0x237)])||(_0x40db8c[0x0][_0x3bc8e2(0x237)]=!0x0),_0x40db8c;}class _0x474519 extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(){const _0x52ea1a=_0x3b3960;super(...arguments),_0x385cfe(this,_0x52ea1a(0x551),new _0x345abe[(_0x52ea1a(0x2f9))](null)),_0x385cfe(this,_0x52ea1a(0x3ff),this[_0x52ea1a(0x551)][_0x52ea1a(0x348)]());}[_0x3b3960(0x554)](_0x1c9769){const _0xcb360f=_0x3b3960,{unitID:_0x55262d,memberID:_0x34cbce,textRanges:_0x5ede5c}=_0x1c9769,_0x2ea6e5=_0x2763e1(_0x5ede5c),_0x56ded8={'unitID':_0x55262d,'memberID':_0x34cbce,'selection':_0x2ea6e5};this[_0xcb360f(0x551)][_0xcb360f(0x2b0)](_0x56ded8);}}var _0x301f1c=Object[_0x3b3960(0x57c)],_0x526fda=Object['getOwnPropertyDescriptor'],_0x30f0ed=(_0x1d6b89,_0x33d9fa,_0x3dd736,_0x1498ad)=>{const _0x1c946b=_0x3b3960;for(var _0x6fde78=_0x1498ad>0x1?void 0x0:_0x1498ad?_0x526fda(_0x33d9fa,_0x3dd736):_0x33d9fa,_0x186602=_0x1d6b89[_0x1c946b(0x306)]-0x1,_0x3149e2;_0x186602>=0x0;_0x186602--)(_0x3149e2=_0x1d6b89[_0x186602])&&(_0x6fde78=(_0x1498ad?_0x3149e2(_0x33d9fa,_0x3dd736,_0x6fde78):_0x3149e2(_0x6fde78))||_0x6fde78);return _0x1498ad&&_0x6fde78&&_0x301f1c(_0x33d9fa,_0x3dd736,_0x6fde78),_0x6fde78;},_0x4368d2=(_0xef3e18,_0xa2999d)=>(_0xdc0796,_0x5b631b)=>_0xa2999d(_0xdc0796,_0x5b631b,_0xef3e18);function _0x363e07(_0x1ad963){const _0x2b672b=_0x3b3960,{unitID:_0x555dd8,mutations:_0xcd29f6}=_0x1ad963;return{'unitId':_0x555dd8,'subUnitId':_0xcd29f6[0x0][_0x2b672b(0x358)][_0x2b672b(0x324)]};}let _0x319b0c=class{constructor(_0x407f62,_0x23c1a8){const _0x50b712=_0x3b3960;this['_injector']=_0x407f62,this[_0x50b712(0x3b1)]=_0x23c1a8;}[_0x3b3960(0x2c8)](_0x2aad70){const _0x2f3d65=_0x3b3960;var _0x224307,_0x1b1c91,_0x2002e6;const _0x222f49=this[_0x2f3d65(0x3f4)][_0x2f3d65(0x3b9)](_0x3d1b6a[_0x2f3d65(0x42a)]),{unitId:_0x2049fd,subUnitId:_0x537a59}=_0x363e07(_0x2aad70),_0x561662=_0x222f49[_0x2f3d65(0x363)](_0x2049fd)['getCurrentSelections']();if(_0x561662[_0x2f3d65(0x306)]===0x0||!_0x2049fd||!_0x537a59)return;const _0x6e159b=[{'id':_0x3d1b6a[_0x2f3d65(0x23d)]['id'],'params':{'unitId':_0x2049fd,'subUnitId':_0x537a59,'selections':_0x2015b3[_0x2f3d65(0x471)]['deepClone'](_0x561662)}}],_0xceb172=this[_0x2f3d65(0x3b1)][_0x2f3d65(0x2dc)](_0x2aad70,_0x6e159b);if(!_0x106736['isTransformMutationsWithChangesetSuccess'](_0xceb172))throw _0xceb172[_0x2f3d65(0x50b)];const _0x500377=(_0x2002e6=(_0x1b1c91=(_0x224307=_0xceb172[_0x2f3d65(0x4af)][0x0])==null?void 0x0:_0x224307[_0x2f3d65(0x358)])==null?void 0x0:_0x1b1c91[_0x2f3d65(0x285)])!=null?_0x2002e6:_0x561662;Array[_0x2f3d65(0x31d)](_0x500377)&&_0x500377[_0x2f3d65(0x306)]&&this[_0x2f3d65(0x3f4)][_0x2f3d65(0x3b9)](_0x2015b3[_0x2f3d65(0x259)])[_0x2f3d65(0x44d)](_0x3d1b6a[_0x2f3d65(0x23d)]['id'],{'unitId':_0x2049fd,'subUnitId':_0x537a59,'selections':_0x500377});}};_0x319b0c=_0x30f0ed([_0x4368d2(0x0,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x4368d2(0x1,_0x106736[_0x3b3960(0x25a)])],_0x319b0c);const _0xa95be5=new Set([_0x3d1b6a[_0x3b3960(0x54c)]['id']]);function _0x3f4fdd(_0x52969a,_0x7d4087,_0x176550,_0x578d2b,_0x16cdbe){const _0x1b7182=_0x3b3960;var _0x1a4466,_0x26528a,_0x3348bd,_0x67ec1c;const _0x2efc69=[];for(const _0x11b0f1 of _0x52969a)if(_0xa95be5[_0x1b7182(0x337)](_0x11b0f1['id'])){if(_0x2efc69[_0x1b7182(0x306)]>0x0)break;_0x2efc69[_0x1b7182(0x279)](_0x11b0f1);break;}else _0x2efc69[_0x1b7182(0x279)](_0x11b0f1);const _0xf8e4bc=(_0x26528a=(_0x1a4466=_0x16cdbe[_0x1b7182(0x25b)]())==null?void 0x0:_0x1a4466['userID'])!=null?_0x26528a:_0x1b7182(0x5cc),_0x5e17c2=(_0x67ec1c=(_0x3348bd=_0x16cdbe[_0x1b7182(0x25b)]())==null?void 0x0:_0x3348bd[_0x1b7182(0x2e8)])!=null?_0x67ec1c:_0x1b7182(0x5cc);return{'changeset':{'unitID':_0x7d4087,'type':_0x106736[_0x1b7182(0x52b)](_0x176550[_0x1b7182(0x24e)](_0x7d4087)),'baseRev':_0x578d2b[_0x1b7182(0x556)](_0x7d4087),'revision':0x0,'userID':_0xf8e4bc,'memberID':_0x5e17c2,'mutations':_0x2efc69},'pendingMutations':_0x52969a[_0x1b7182(0x52e)](_0x2efc69[_0x1b7182(0x306)])};}function _0x54f293(_0x5281d3,_0x313168,_0x57bc8f,_0x515741,_0x25ea2d){const _0x2eb86d=_0x3b3960;var _0xd24528,_0x255b09,_0x5773eb,_0xcb0a25;const _0x5116ac=[_0x5281d3[_0x2eb86d(0x230)]((_0x25e295,_0x9cc2f9)=>{const _0xff81eb=_0x2eb86d;var _0x55f409;const {id:_0x3a7d5c}=_0x25e295,{id:_0x3c6b7a,type:_0x137e1e}=_0x9cc2f9,_0x191674=(_0x55f409=_0x25e295[_0xff81eb(0x358)])!=null?_0x55f409:{'actions':null},_0x2753f8=_0x9cc2f9[_0xff81eb(0x358)];if(_0x3a7d5c&&_0x3a7d5c!==_0x3c6b7a)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3a7d5c+'\x20-\x20'+_0x3c6b7a+'.');return{..._0x25e295,'id':_0x3c6b7a,'type':_0x137e1e,'params':{'unitId':_0x2753f8['unitId'],'textRanges':_0x2753f8['textRanges'],'actions':_0x2015b3[_0xff81eb(0x257)][_0xff81eb(0x4ba)](_0x191674[_0xff81eb(0x59b)],_0x2753f8[_0xff81eb(0x59b)])}};},{})],_0x45c58e=(_0x255b09=(_0xd24528=_0x25ea2d[_0x2eb86d(0x25b)]())==null?void 0x0:_0xd24528[_0x2eb86d(0x4e4)])!=null?_0x255b09:_0x2eb86d(0x5cc),_0x5eb333=(_0xcb0a25=(_0x5773eb=_0x25ea2d['getCurrentUser']())==null?void 0x0:_0x5773eb['memberID'])!=null?_0xcb0a25:_0x2eb86d(0x5cc);return{'changeset':{'unitID':_0x313168,'type':_0x106736[_0x2eb86d(0x52b)](_0x57bc8f[_0x2eb86d(0x24e)](_0x313168)),'baseRev':_0x515741[_0x2eb86d(0x556)](_0x313168),'revision':0x0,'userID':_0x45c58e,'memberID':_0x5eb333,'mutations':_0x5116ac},'pendingMutations':[]};}const _0x20d280={'id':_0x3d1b6a['EmptyMutation']['id'],'type':_0x2015b3['CommandType']['MUTATION'],'params':{}};var _0x46eabf=Object[_0x3b3960(0x57c)],_0x3297d4=Object[_0x3b3960(0x2c2)],_0x2f90f8=(_0x2f8dc4,_0x1bac49,_0xb8b090,_0x36530f)=>{for(var _0x255bc5=_0x36530f>0x1?void 0x0:_0x36530f?_0x3297d4(_0x1bac49,_0xb8b090):_0x1bac49,_0x471512=_0x2f8dc4['length']-0x1,_0x338967;_0x471512>=0x0;_0x471512--)(_0x338967=_0x2f8dc4[_0x471512])&&(_0x255bc5=(_0x36530f?_0x338967(_0x1bac49,_0xb8b090,_0x255bc5):_0x338967(_0x255bc5))||_0x255bc5);return _0x36530f&&_0x255bc5&&_0x46eabf(_0x1bac49,_0xb8b090,_0x255bc5),_0x255bc5;},_0x108b1a=(_0x3688f6,_0x501da1)=>(_0x4dc955,_0x2dc4de)=>_0x501da1(_0x4dc955,_0x2dc4de,_0x3688f6),_0xe45813=(_0x1c1dbb=>(_0x1c1dbb['NOT_COLLAB']=_0x3b3960(0x25d),_0x1c1dbb['SYNCED']=_0x3b3960(0x5e2),_0x1c1dbb[_0x3b3960(0x529)]='pending',_0x1c1dbb['AWAITING']='awaiting',_0x1c1dbb[_0x3b3960(0x282)]='awaiting_with_pending',_0x1c1dbb['FETCH_MISS']=_0x3b3960(0x3ce),_0x1c1dbb[_0x3b3960(0x505)]=_0x3b3960(0x34b),_0x1c1dbb['OFFLINE']=_0x3b3960(0x5d2),_0x1c1dbb))(_0xe45813||{});class _0x1e4aa1{constructor(_0x2784f3,_0x9b39e2,_0xb319c3,_0xe96531,_0x50b687,_0x425456,_0x520982,_0xe67cb4,_0x38e830){const _0x45a70b=_0x3b3960;_0x385cfe(this,'_awaitingChangeset',null),_0x385cfe(this,_0x45a70b(0x223),[]),(this[_0x45a70b(0x353)]=_0x2784f3,this[_0x45a70b(0x376)]=_0x9b39e2,this[_0x45a70b(0x3ef)]=_0x50b687,this[_0x45a70b(0x286)]=_0x425456,this[_0x45a70b(0x308)]=_0x520982,this[_0x45a70b(0x59c)]=_0xe67cb4,this[_0x45a70b(0x24b)]=_0x38e830,this[_0x45a70b(0x21d)]=_0xb319c3,this[_0x45a70b(0x223)]=_0xe96531);}[_0x3b3960(0x541)](_0x18bf06){const _0x112752=_0x3b3960,_0x32e216=this[_0x112752(0x59c)]['getCurrentRevForDocument'](this[_0x112752(0x353)]);return _0x18bf06[_0x112752(0x3e7)]>_0x32e216+0x1?(this['_handler']['onMissingChangesets']({'from':_0x32e216,'to':_0x18bf06[_0x112752(0x3e7)]-0x1}),!0x0):!0x1;}[_0x3b3960(0x224)](_0x109779){const _0x76d41f=_0x3b3960;this['_undoRedoService']['transformUndoRedo'](this[_0x76d41f(0x353)],_0x109779);}['_transformSelections'](_0x325037){const _0x33e50b=_0x3b3960;var _0x53b124,_0x3eafd7;(_0x3eafd7=(_0x53b124=this['_handler'])['onTransformSelections'])==null||_0x3eafd7[_0x33e50b(0x415)](_0x53b124,_0x325037);}[_0x3b3960(0x3d9)](_0x34f190){const _0x359496=_0x3b3960;var _0x18ebcb,_0xeb5515;return(_0xeb5515=(_0x18ebcb=this['_handler'])[_0x359496(0x49a)])==null?void 0x0:_0xeb5515[_0x359496(0x415)](_0x18ebcb,_0x34f190);}[_0x3b3960(0x5b6)](_0x4c3c23){const _0x12082e=_0x3b3960;var _0x18c2fd,_0x37ff74,_0x393007;return(_0x393007=(_0x37ff74=(_0x18c2fd=this[_0x12082e(0x3ef)])[_0x12082e(0x5d4)])==null?void 0x0:_0x37ff74[_0x12082e(0x415)](_0x18c2fd,_0x4c3c23))!=null?_0x393007:_0x4c3c23;}['_syncEditingCollabCursor'](_0x33fcf2){const _0x13eca0=_0x3b3960;var _0x302d96,_0x3e3ab9;if(this[_0x13eca0(0x376)]===_0x32a37d[_0x13eca0(0x361)]){const {unitID:_0x9c4c33,mutations:_0x396051,memberID:_0x42df38}=_0x33fcf2,_0x533473=_0x396051[0x0][_0x13eca0(0x358)][_0x13eca0(0x23f)];Array[_0x13eca0(0x31d)](_0x533473)&&_0x533473[_0x13eca0(0x306)]>0x0&&((_0x3e3ab9=(_0x302d96=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x3e3ab9[_0x13eca0(0x415)](_0x302d96,{'unitID':_0x9c4c33,'memberID':_0x42df38,'textRanges':_0x533473}));}}[_0x3b3960(0x246)](){const _0x4c04d7=_0x3b3960;this[_0x4c04d7(0x24b)][_0x4c04d7(0x53d)](this[_0x4c04d7(0x353)],this[_0x4c04d7(0x376)],this['_awaitingChangeset'],this[_0x4c04d7(0x223)]);}[_0x3b3960(0x3ee)](){const _0x28f002=_0x3b3960;return this['_revisionService'][_0x28f002(0x556)](this[_0x28f002(0x353)]);}[_0x3b3960(0x5a6)](){const _0x2bcf83=_0x3b3960;this['_revisionService'][_0x2bcf83(0x3b4)](this[_0x2bcf83(0x353)]);}['_executeRemoteChangeset'](_0x58694){const _0x307e51=_0x3b3960;var _0x1bba30;const _0xcc4ef7=this['_transformRemoteChangesetByIMECache'](_0x58694),_0x1c896c=_0x2015b3['sequenceExecute'](_0xcc4ef7[_0x307e51(0x2e7)],this['_commandService'],{'fromCollab':!0x0});if(!_0x1c896c[_0x307e51(0x473)])throw _0x1c896c['error']instanceof Error?_0x1c896c[_0x307e51(0x50b)]:new Error((_0x1bba30=_0x1c896c[_0x307e51(0x50b)])!=null?_0x1bba30:_0x307e51(0x5f7));this['_transformIMECache'](_0xcc4ef7),this['_transformUndoredo'](_0x58694),this[_0x307e51(0x404)](_0xcc4ef7),this['_syncEditingCollabCursor'](_0xcc4ef7),this[_0x307e51(0x5a6)]();}}let _0x51907c=class extends _0x1e4aa1{constructor(_0x5c4b3a,_0x3adbdf,_0x50427f,_0x2e68f,_0x22283f,_0x2cf407,_0x1eacd4,_0x8a3e6f,_0x443de4,_0x5be05a){const _0x54fec9=_0x3b3960;super(_0x5c4b3a,_0x3adbdf,null,[],_0x50427f,_0x8a3e6f,_0x1eacd4,_0x2e68f,_0x22283f),_0x385cfe(this,_0x54fec9(0x268),_0x54fec9(0x5e2)),(this['_injector']=_0x2cf407,this[_0x54fec9(0x501)]=_0x443de4,this['_transformService']=_0x5be05a);}[_0x3b3960(0x2eb)](_0x5201c7){const _0x1f99bf=_0x3b3960,_0xc58ea3=this[_0x1f99bf(0x3f4)][_0x1f99bf(0x385)](_0x977b19,this[_0x1f99bf(0x353)],this[_0x1f99bf(0x376)],[_0x5201c7],this[_0x1f99bf(0x3ef)]);return _0xc58ea3[_0x1f99bf(0x524)](),_0xc58ea3['_updateLocalCache'](),_0xc58ea3;}['onRemoteChangeset'](_0x1c1797){const _0x221146=_0x3b3960;if(this[_0x221146(0x541)](_0x1c1797))return this[_0x221146(0x3f4)][_0x221146(0x385)](_0x1f1e9a,this[_0x221146(0x353)],this[_0x221146(0x376)],null,[],null,[_0x1c1797],this[_0x221146(0x3ef)]);try{const _0x529d69=this[_0x221146(0x3b1)][_0x221146(0x2dc)](_0x1c1797,[_0x20d280]);if(_0x106736[_0x221146(0x58d)](_0x529d69)){const {c1Prime:_0x5040f6}=_0x529d69;return this[_0x221146(0x2a9)](_0x5040f6),this;}throw _0x529d69[_0x221146(0x50b)];}catch(_0x13fcd1){return this['_logService'][_0x221146(0x50b)](_0x13fcd1),this[_0x221146(0x438)](!0x1);}}[_0x3b3960(0x438)](_0x4d2625){const _0x3dba8a=_0x3b3960;return this[_0x3dba8a(0x3f4)][_0x3dba8a(0x385)](_0x3132e7,this[_0x3dba8a(0x353)],this[_0x3dba8a(0x376)],null,[],this['_handler'],_0x4d2625);}[_0x3b3960(0x357)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x594828=_0x3b3960;throw new Error(_0x594828(0x23e));}[_0x3b3960(0x55f)](){const _0x58b95d=_0x3b3960;return this['_injector']['createInstance'](_0x3a6b9d,this[_0x58b95d(0x353)],this[_0x58b95d(0x376)],null,[],this[_0x58b95d(0x3ef)]);}['toggleOnline'](){return this;}[_0x3b3960(0x474)](){const _0x4ebe1a=_0x3b3960;throw new Error(_0x4ebe1a(0x567));}};_0x51907c=_0x2f90f8([_0x108b1a(0x3,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x108b1a(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2c3354['LocalCacheService'])),_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x6,_0x2015b3['IUndoRedoService']),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x8,_0x2015b3['ILogService']),_0x108b1a(0x9,_0x106736[_0x3b3960(0x25a)])],_0x51907c);let _0x977b19=class extends _0x1e4aa1{constructor(_0x35b685,_0x4be914,_0x18da74,_0x2557ac,_0x4c8878,_0x5ba697,_0x1d42d7,_0x2a3993,_0x3e8004,_0x3635bd,_0x1c276f,_0x29def6,_0xd68029,_0x1d7fae){const _0x4a37a9=_0x3b3960;super(_0x35b685,_0x4be914,null,_0x18da74,_0x2557ac,_0x3635bd,_0x1d7fae,_0x5ba697,_0x1d42d7),_0x385cfe(this,'status',_0x4a37a9(0x4d6)),_0x385cfe(this,_0x4a37a9(0x5ba),null),_0x385cfe(this,_0x4a37a9(0x271),null),(this[_0x4a37a9(0x3f4)]=_0x4c8878,this['_memberService']=_0x2a3993,this[_0x4a37a9(0x501)]=_0x3e8004,this[_0x4a37a9(0x46c)]=_0x1c276f,this[_0x4a37a9(0x3b1)]=_0x29def6,this[_0x4a37a9(0x5b7)]=_0xd68029);}[_0x3b3960(0x2eb)](_0x35f912){const _0x5127d1=_0x3b3960;return this['_pendingMutations'][_0x5127d1(0x279)](_0x35f912),this[_0x5127d1(0x246)](),this;}['onRemoteChangeset'](_0x45ea75){const _0x48bb75=_0x3b3960;if(this[_0x48bb75(0x541)](_0x45ea75))return this[_0x48bb75(0x482)](),this['_injector']['createInstance'](_0x1f1e9a,this[_0x48bb75(0x353)],this[_0x48bb75(0x376)],null,this[_0x48bb75(0x223)],null,[_0x45ea75],this[_0x48bb75(0x3ef)]);try{const _0x48c732=this[_0x48bb75(0x3b1)][_0x48bb75(0x2dc)](_0x45ea75,this[_0x48bb75(0x223)]);if(_0x106736[_0x48bb75(0x58d)](_0x48c732)){const {c1Prime:_0x154f9c,m2Prime:_0x5995ae}=_0x48c732;this[_0x48bb75(0x2a9)](_0x154f9c);const _0x10015e=this['_injector']['createInstance'](_0x977b19,this[_0x48bb75(0x353)],this[_0x48bb75(0x376)],_0x5995ae,this[_0x48bb75(0x3ef)]);return this[_0x48bb75(0x482)](),_0x10015e[_0x48bb75(0x524)](this[_0x48bb75(0x5ba)]?Math[_0x48bb75(0x2d6)](0x0,new Date()['getTime']()-this[_0x48bb75(0x5ba)]):this['_getSendChangesetTimeout']()),_0x10015e;}throw _0x48c732[_0x48bb75(0x50b)];}catch(_0x2997e5){return this['_logService']['error'](_0x2997e5),this['_onConflict'](!0x1);}}[_0x3b3960(0x357)](){const _0x17aac2=_0x3b3960;throw new Error(_0x17aac2(0x347));}[_0x3b3960(0x311)](){const _0x242e5f=_0x3b3960;throw new Error(_0x242e5f(0x37d));}[_0x3b3960(0x55f)](){const _0x4b00de=_0x3b3960;return this['_clearScheduledTask'](),this['_injector'][_0x4b00de(0x385)](_0x3a6b9d,this['unitID'],this[_0x4b00de(0x376)],null,this[_0x4b00de(0x223)],this[_0x4b00de(0x3ef)]);}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x524)](_0x2a8c3b){const _0xec9f20=_0x3b3960;_0x2a8c3b=_0x2a8c3b!=null?_0x2a8c3b:this[_0xec9f20(0x40d)](),this[_0xec9f20(0x5ba)]=new Date()['getTime'](),this[_0xec9f20(0x271)]=setTimeout(()=>{const _0x3ba981=_0xec9f20;this[_0x3ba981(0x482)]();let _0x51113b=null;switch(this[_0x3ba981(0x376)]){case _0x32a37d[_0x3ba981(0x321)]:{_0x51113b=_0x3f4fdd(this[_0x3ba981(0x223)],this[_0x3ba981(0x353)],this[_0x3ba981(0x5b7)],this[_0x3ba981(0x59c)],this[_0x3ba981(0x5e7)]);break;}case _0x32a37d[_0x3ba981(0x361)]:{this[_0x3ba981(0x223)]['every'](_0x4197a6=>_0x4197a6['id']===_0xbcf55e[_0x3ba981(0x446)]['id'])?_0x51113b=_0x54f293(this[_0x3ba981(0x223)],this[_0x3ba981(0x353)],this['_univerInstanceService'],this[_0x3ba981(0x59c)],this['_memberService']):_0x51113b=_0x3f4fdd(this[_0x3ba981(0x223)],this[_0x3ba981(0x353)],this['_univerInstanceService'],this[_0x3ba981(0x59c)],this[_0x3ba981(0x5e7)]);break;}default:throw new Error(_0x3ba981(0x5b5)+this[_0x3ba981(0x376)]+'\x20in\x20_schedule.');}const {changeset:_0x43137e,pendingMutations:_0x573be3}=_0x51113b;this[_0x3ba981(0x3ef)]['onSendChangeset'](_0x43137e);const _0x4c4dd5=_0x573be3[_0x3ba981(0x306)]?this['_injector'][_0x3ba981(0x385)](_0x270522,this['unitID'],this['type'],_0x43137e,_0x573be3,this[_0x3ba981(0x3ef)]):this['_injector'][_0x3ba981(0x385)](_0x25747b,this[_0x3ba981(0x353)],this['type'],_0x43137e,this[_0x3ba981(0x3ef)]);_0x4c4dd5[_0x3ba981(0x246)](),this[_0x3ba981(0x3ef)][_0x3ba981(0x20e)](this,_0x4c4dd5);},_0x2a8c3b);}[_0x3b3960(0x40d)](){const _0x48d198=_0x3b3960;var _0x5c9c27;return(_0x5c9c27=this[_0x48d198(0x46c)][_0x48d198(0x584)](_0x5cb8bb))!=null?_0x5c9c27:0x7d0;}[_0x3b3960(0x474)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x15ca4e=_0x3b3960;this[_0x15ca4e(0x271)]!=null&&(clearTimeout(this[_0x15ca4e(0x271)]),this[_0x15ca4e(0x271)]=null);}[_0x3b3960(0x438)](_0xe0999f){const _0x31d12f=_0x3b3960;return this[_0x31d12f(0x482)](),this['_injector'][_0x31d12f(0x385)](_0x3132e7,this[_0x31d12f(0x353)],this[_0x31d12f(0x376)],null,this[_0x31d12f(0x223)],this[_0x31d12f(0x3ef)],_0xe0999f);}};_0x977b19=_0x2f90f8([_0x108b1a(0x4,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x547)](_0x25752c)),_0x108b1a(0x8,_0x2015b3['ILogService']),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x582)]),_0x108b1a(0xb,_0x106736[_0x3b3960(0x25a)]),_0x108b1a(0xc,_0x2015b3['IUniverInstanceService']),_0x108b1a(0xd,_0x2015b3[_0x3b3960(0x445)])],_0x977b19);let _0x25747b=class extends _0x1e4aa1{constructor(_0x59b3b2,_0x534b93,_0x5686c1,_0x4c09ea,_0x2dcd57,_0x536c0a,_0x55c06d,_0x4390f8,_0x180da1,_0x4495ec,_0x4e0c9e){const _0x47de9d=_0x3b3960;super(_0x59b3b2,_0x534b93,_0x5686c1,[],_0x4c09ea,_0x4390f8,_0x4e0c9e,_0x536c0a,_0x55c06d),_0x385cfe(this,_0x47de9d(0x268),'awaiting'),(this[_0x47de9d(0x3f4)]=_0x2dcd57,this[_0x47de9d(0x501)]=_0x180da1,this[_0x47de9d(0x3b1)]=_0x4495ec);}[_0x3b3960(0x2eb)](_0x5dbee2){const _0x202eba=_0x3b3960,_0x268cfa=this[_0x202eba(0x3f4)][_0x202eba(0x385)](_0x270522,this[_0x202eba(0x353)],this[_0x202eba(0x376)],this[_0x202eba(0x21d)],[_0x5dbee2],this[_0x202eba(0x3ef)]);return _0x268cfa[_0x202eba(0x246)](),_0x268cfa;}[_0x3b3960(0x594)](_0x52b870){const _0x3a831e=_0x3b3960;if(this[_0x3a831e(0x541)](_0x52b870))return this['_injector'][_0x3a831e(0x385)](_0x1f1e9a,this['unitID'],this[_0x3a831e(0x376)],this[_0x3a831e(0x21d)],[],null,[_0x52b870],this[_0x3a831e(0x3ef)]);try{const _0x730f4b=this[_0x3a831e(0x3b1)]['transformChangesets']([_0x52b870],[this[_0x3a831e(0x21d)]],!0x1);if(_0x106736[_0x3a831e(0x408)](_0x730f4b)){const {c1Prime:_0x57a309,c2Prime:_0x382f88}=_0x730f4b;this[_0x3a831e(0x2a9)](_0x57a309[0x0]),_0x382f88[0x0][_0x3a831e(0x58e)]=this[_0x3a831e(0x3ee)]();const _0x49477c=this[_0x3a831e(0x3f4)][_0x3a831e(0x385)](_0x25747b,this[_0x3a831e(0x353)],this[_0x3a831e(0x376)],_0x382f88[0x0],this[_0x3a831e(0x3ef)]);return _0x49477c[_0x3a831e(0x246)](),_0x49477c;}return this[_0x3a831e(0x438)](!0x1);}catch(_0x2c0086){return this['_logService'][_0x3a831e(0x50b)](_0x2c0086),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x36582f){const _0x279192=_0x3b3960,_0x296b73=this[_0x279192(0x59c)][_0x279192(0x556)](this[_0x279192(0x353)]);if(_0x36582f[_0x279192(0x3e7)]<_0x296b73-0x1)return this;if(this[_0x279192(0x541)](_0x36582f))return this[_0x279192(0x3f4)][_0x279192(0x385)](_0x1f1e9a,this[_0x279192(0x353)],this['type'],null,[],this[_0x279192(0x21d)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x2789ff=this[_0x279192(0x3f4)][_0x279192(0x385)](_0x51907c,this[_0x279192(0x353)],this[_0x279192(0x376)],this[_0x279192(0x3ef)]);return _0x2789ff[_0x279192(0x246)](),_0x2789ff;}[_0x3b3960(0x311)](_0x1b973f){const _0x3114f0=_0x3b3960;return this[_0x3114f0(0x438)](!!(_0x1b973f!=null&&_0x1b973f[_0x3114f0(0x42d)]));}['toggleOffline'](){const _0x23c9d5=_0x3b3960;return this['_injector'][_0x23c9d5(0x385)](_0x3a6b9d,this[_0x23c9d5(0x353)],this[_0x23c9d5(0x376)],this[_0x23c9d5(0x21d)],[],this[_0x23c9d5(0x3ef)]);}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x474)](){const _0x1c2667=_0x3b3960;this[_0x1c2667(0x3ef)][_0x1c2667(0x546)](this[_0x1c2667(0x21d)]);}['_onConflict'](_0x54bd43){const _0x3e70c8=_0x3b3960;return this[_0x3e70c8(0x3f4)][_0x3e70c8(0x385)](_0x3132e7,this[_0x3e70c8(0x353)],this[_0x3e70c8(0x376)],this[_0x3e70c8(0x21d)],[],this[_0x3e70c8(0x3ef)],_0x54bd43);}};_0x25747b=_0x2f90f8([_0x108b1a(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x5,_0x2015b3['Inject'](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x8,_0x2015b3['ILogService']),_0x108b1a(0x9,_0x106736['ITransformService']),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x445)])],_0x25747b);let _0x270522=class extends _0x1e4aa1{constructor(_0x200de2,_0x304870,_0xc4d797,_0x5d1b84,_0x181914,_0x47918a,_0x3fa431,_0x37381b,_0x1361dd,_0x37e7c3,_0x51f599,_0x4e44fe){const _0x5035d9=_0x3b3960;super(_0x200de2,_0x304870,_0xc4d797,_0x5d1b84,_0x181914,_0x1361dd,_0x4e44fe,_0x3fa431,_0x37381b),_0x385cfe(this,_0x5035d9(0x268),_0x5035d9(0x2d3)),(this[_0x5035d9(0x3f4)]=_0x47918a,this[_0x5035d9(0x501)]=_0x37e7c3,this[_0x5035d9(0x3b1)]=_0x51f599);}[_0x3b3960(0x2eb)](_0x47fb2a){const _0xcb14f8=_0x3b3960;return this[_0xcb14f8(0x223)][_0xcb14f8(0x279)](_0x47fb2a),this;}[_0x3b3960(0x594)](_0x3e0b84){const _0x966109=_0x3b3960;if(this[_0x966109(0x541)](_0x3e0b84))return this[_0x966109(0x3f4)][_0x966109(0x385)](_0x1f1e9a,this[_0x966109(0x353)],this[_0x966109(0x376)],this[_0x966109(0x21d)],this[_0x966109(0x223)],null,[_0x3e0b84],this['_handler']);try{const _0x389d05=this[_0x966109(0x3b1)][_0x966109(0x54b)]([_0x3e0b84],[this[_0x966109(0x21d)]],!0x1);if(_0x106736[_0x966109(0x408)](_0x389d05)){const {c1Prime:_0x3e3807,c2Prime:_0x4d90ef}=_0x389d05,_0x216120=this[_0x966109(0x3b1)][_0x966109(0x2dc)](_0x3e3807[0x0],this[_0x966109(0x223)]);if(_0x106736[_0x966109(0x58d)](_0x216120)){const {c1Prime:_0x531ffc,m2Prime:_0x10e51c}=_0x216120;return this[_0x966109(0x2a9)](_0x531ffc),_0x4d90ef[0x0][_0x966109(0x58e)]=this[_0x966109(0x3ee)](),this[_0x966109(0x3f4)]['createInstance'](_0x270522,this[_0x966109(0x353)],this[_0x966109(0x376)],_0x4d90ef[0x0],_0x10e51c,this['_handler']);}throw _0x216120[_0x966109(0x50b)];}throw _0x389d05[_0x966109(0x50b)];}catch(_0x483b33){return this[_0x966109(0x501)][_0x966109(0x50b)](_0x483b33),this[_0x966109(0x438)](!0x1);}}[_0x3b3960(0x357)](_0x415def){const _0x556d25=_0x3b3960;if(this[_0x556d25(0x541)](_0x415def))return this['_injector'][_0x556d25(0x385)](_0x1f1e9a,this[_0x556d25(0x353)],this[_0x556d25(0x376)],null,this[_0x556d25(0x223)],this[_0x556d25(0x21d)],[],this['_handler']);this[_0x556d25(0x5a6)]();const _0x2a4101=this[_0x556d25(0x3f4)]['createInstance'](_0x977b19,this[_0x556d25(0x353)],this[_0x556d25(0x376)],this[_0x556d25(0x223)],this['_handler']);return _0x2a4101['_schedule'](),_0x2a4101['_updateLocalCache'](),_0x2a4101;}[_0x3b3960(0x311)](_0x52c661){const _0x6c363d=_0x3b3960;return this[_0x6c363d(0x438)](!!(_0x52c661!=null&&_0x52c661[_0x6c363d(0x42d)]));}[_0x3b3960(0x55f)](){const _0x592168=_0x3b3960;return this[_0x592168(0x3f4)]['createInstance'](_0x3a6b9d,this['unitID'],this['type'],this[_0x592168(0x21d)],this['_pendingMutations'],this[_0x592168(0x3ef)]);}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x474)](){const _0x362a8c=_0x3b3960;this[_0x362a8c(0x3ef)][_0x362a8c(0x546)](this[_0x362a8c(0x21d)]);}[_0x3b3960(0x438)](_0x11b425){const _0x9c7dff=_0x3b3960;return this[_0x9c7dff(0x3f4)][_0x9c7dff(0x385)](_0x3132e7,this[_0x9c7dff(0x353)],this[_0x9c7dff(0x376)],null,this[_0x9c7dff(0x223)],this[_0x9c7dff(0x3ef)],_0x11b425);}};_0x270522=_0x2f90f8([_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0x7,_0x2015b3['Inject'](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x1f3)]),_0x108b1a(0xa,_0x106736[_0x3b3960(0x25a)]),_0x108b1a(0xb,_0x2015b3[_0x3b3960(0x445)])],_0x270522);let _0x3132e7=class extends _0x1e4aa1{constructor(_0x246c90,_0x5b4db0,_0x221524,_0x4c8d84,_0x340e98,_0x38af2b=!0x1,_0x107f8a,_0x18416f,_0x319aab,_0x5298f1,_0x3be85f,_0x52e731,_0x18c1a8){const _0xd08c46=_0x3b3960;super(_0x246c90,_0x5b4db0,_0x221524,_0x4c8d84,_0x340e98,_0x18416f,_0x319aab,_0x3be85f,_0x5298f1),_0x385cfe(this,'status',_0xd08c46(0x34b)),(this[_0xd08c46(0x231)]=_0x38af2b,this[_0xd08c46(0x518)]=_0x107f8a,this[_0xd08c46(0x23b)]=_0x52e731,this[_0xd08c46(0x419)]=_0x18c1a8,this[_0xd08c46(0x542)](),this['_clearLocalCache'](),this[_0xd08c46(0x372)]());}[_0x3b3960(0x2eb)](){return this;}[_0x3b3960(0x594)](){return this;}[_0x3b3960(0x357)](){return this;}[_0x3b3960(0x311)](){return this;}[_0x3b3960(0x55f)](){return this;}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x474)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b3960(0x5c4)](){const _0x3f1fb0=_0x3b3960;this[_0x3f1fb0(0x24b)]['updateOfflineData'](this[_0x3f1fb0(0x353)],this['type'],null,[]);}[_0x3b3960(0x542)](){const _0x39282b=_0x3b3960;this[_0x39282b(0x231)]?this[_0x39282b(0x419)][_0x39282b(0x2c3)]({'title':this[_0x39282b(0x23b)]['t'](_0x39282b(0x5e3)),'content':this[_0x39282b(0x23b)]['t'](_0x39282b(0x499)),'type':_0x39282b(0x50b),'duration':0x0}):this[_0x39282b(0x419)]['show']({'title':this[_0x39282b(0x23b)]['t'](_0x39282b(0x5b3)),'content':this[_0x39282b(0x23b)]['t']('conflict.content'),'type':_0x39282b(0x50b),'duration':0x0});}[_0x3b3960(0x372)](){const _0x2b8702=_0x3b3960;this[_0x2b8702(0x518)][_0x2b8702(0x49e)](new _0x3d1b6a[(_0x2b8702(0x405))](this[_0x2b8702(0x353)])['id'],!0x1);}};_0x3132e7=_0x2f90f8([_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x5d7)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x445)]),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0xb,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x108b1a(0xc,_0x44b766[_0x3b3960(0x27b)])],_0x3132e7);let _0x3a6b9d=class extends _0x1e4aa1{constructor(_0x2be94d,_0x5469cd,_0x110f5d,_0x327270,_0x25dccb,_0x38775a,_0x20c04f,_0x357377,_0x2605f4,_0x34fcf0){const _0x56ccb9=_0x3b3960;super(_0x2be94d,_0x5469cd,_0x110f5d,_0x327270,_0x25dccb,_0x2605f4,_0x34fcf0,_0x20c04f,_0x357377),_0x385cfe(this,_0x56ccb9(0x268),_0x56ccb9(0x5d2)),this[_0x56ccb9(0x3f4)]=_0x38775a;}[_0x3b3960(0x2eb)](_0x1f1839){const _0x2e0b36=_0x3b3960;return this[_0x2e0b36(0x223)][_0x2e0b36(0x279)](_0x1f1839),this['_updateLocalCache'](),this;}[_0x3b3960(0x594)](_0xb38988){const _0x18af3d=_0x3b3960;throw new Error(_0x18af3d(0x477));}[_0x3b3960(0x357)](){const _0x192b6f=_0x3b3960;throw new Error(_0x192b6f(0x483));}[_0x3b3960(0x311)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3b3960(0x55f)](){return this;}[_0x3b3960(0x328)](){const _0x59250d=_0x3b3960,{_injector:_0x1eef37,_pendingMutations:_0x1864fa,_awaitingChangeset:_0x46a692,unitID:_0x5bf1fa,_handler:_0x4f151d,type:_0x589a39}=this,_0x2d1603=_0x3fc11b(_0x1eef37,_0x5bf1fa,_0x589a39,_0x46a692,_0x1864fa,_0x4f151d);return _0x2d1603 instanceof _0x977b19?_0x2d1603[_0x59250d(0x524)]():(_0x2d1603 instanceof _0x270522||_0x2d1603 instanceof _0x25747b)&&_0x2d1603[_0x59250d(0x474)](),_0x2d1603;}[_0x3b3960(0x474)](){const _0x22b6bf=_0x3b3960;throw new Error(_0x22b6bf(0x3e6));}};_0x3a6b9d=_0x2f90f8([_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x445)])],_0x3a6b9d);let _0x1f1e9a=class extends _0x1e4aa1{constructor(_0x9ac8a9,_0x379767,_0x22fa3d,_0x478687,_0x5d6755,_0x48921a,_0x4c9cea,_0x3d899e,_0xdcc0ff,_0x56c643,_0x25d718,_0x29e325,_0x1c6c6d,_0x28c2d4){const _0x5d3c1c=_0x3b3960;super(_0x9ac8a9,_0x379767,_0x22fa3d,_0x478687,_0x4c9cea,_0x29e325,_0x1c6c6d,_0xdcc0ff,_0x56c643),_0x385cfe(this,_0x5d3c1c(0x268),_0x5d3c1c(0x3ce)),(this[_0x5d3c1c(0x496)]=_0x5d6755,this[_0x5d3c1c(0x3b5)]=_0x48921a,this[_0x5d3c1c(0x3f4)]=_0x3d899e,this[_0x5d3c1c(0x501)]=_0x25d718,this['_transformService']=_0x28c2d4);}[_0x3b3960(0x572)](_0x42eb38){const _0x431cee=_0x3b3960;try{const _0x529f63=[..._0x42eb38,...this[_0x431cee(0x3b5)]],_0xfa6284=[this[_0x431cee(0x21d)]||this[_0x431cee(0x496)]][_0x431cee(0x493)](_0x2c4566=>!!_0x2c4566);let _0x45660c,_0x442c08;if(_0xfa6284[_0x431cee(0x306)]){const _0x4a2f28=this[_0x431cee(0x3b1)][_0x431cee(0x54b)](_0x529f63,_0xfa6284,!0x1);if(!_0x106736[_0x431cee(0x408)](_0x4a2f28))throw _0x4a2f28[_0x431cee(0x50b)];_0x45660c=_0x4a2f28[_0x431cee(0x4f4)],_0x442c08=_0x4a2f28[_0x431cee(0x30c)];}else _0x45660c=_0x529f63,_0x442c08=[];let _0x253ee3=this[_0x431cee(0x223)];_0x45660c[_0x431cee(0x4d1)](_0x6b1b0d=>{const _0x4a4e4a=_0x431cee;let _0x5cf880;if(_0x253ee3[_0x4a4e4a(0x306)]){const _0x446409=this['_transformService'][_0x4a4e4a(0x2dc)](_0x6b1b0d,_0x253ee3);if(!_0x106736[_0x4a4e4a(0x58d)](_0x446409))throw _0x446409[_0x4a4e4a(0x50b)];_0x5cf880=_0x446409['c1Prime'],_0x253ee3=_0x446409[_0x4a4e4a(0x4af)];}else _0x5cf880=_0x6b1b0d;this[_0x4a4e4a(0x2a9)](_0x5cf880);}),this[_0x431cee(0x496)]&&this[_0x431cee(0x5a6)](),this[_0x431cee(0x21d)]&&_0x442c08[_0x431cee(0x306)]&&(_0x442c08[0x0][_0x431cee(0x58e)]=this[_0x431cee(0x3ee)]());let _0x5f032a;if(this[_0x431cee(0x21d)]&&_0x253ee3[_0x431cee(0x306)]!==0x0)_0x5f032a=this[_0x431cee(0x3f4)]['createInstance'](_0x270522,this['unitID'],this['type'],_0x442c08[0x0],_0x253ee3,this[_0x431cee(0x3ef)]);else{if(this[_0x431cee(0x21d)]&&_0x253ee3['length']===0x0)_0x442c08[0x0][_0x431cee(0x58e)]=this[_0x431cee(0x3ee)](),_0x5f032a=this[_0x431cee(0x3f4)][_0x431cee(0x385)](_0x25747b,this[_0x431cee(0x353)],this[_0x431cee(0x376)],_0x442c08[0x0],this[_0x431cee(0x3ef)]);else{if(_0x253ee3[_0x431cee(0x306)]!==0x0){const _0x3a95d0=this[_0x431cee(0x3f4)][_0x431cee(0x385)](_0x977b19,this['unitID'],this[_0x431cee(0x376)],_0x253ee3,this[_0x431cee(0x3ef)]);_0x3a95d0[_0x431cee(0x524)](),_0x5f032a=_0x3a95d0;}else _0x5f032a=this[_0x431cee(0x3f4)][_0x431cee(0x385)](_0x51907c,this[_0x431cee(0x353)],this['type'],this[_0x431cee(0x3ef)]);}}return _0x5f032a[_0x431cee(0x246)](),_0x5f032a;}catch(_0x257d81){return this[_0x431cee(0x501)][_0x431cee(0x50b)]('[FetchMissState]',_0x431cee(0x57d),_0x257d81),this[_0x431cee(0x3f4)]['createInstance'](_0x3132e7,this[_0x431cee(0x353)],this[_0x431cee(0x376)],this[_0x431cee(0x21d)],this['_pendingMutations'],this[_0x431cee(0x3ef)],!0x1);}}[_0x3b3960(0x474)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b3960(0x2eb)](_0x3165ff){const _0xf9f57b=_0x3b3960;return this[_0xf9f57b(0x223)][_0xf9f57b(0x279)](_0x3165ff),this;}[_0x3b3960(0x594)](_0x559930){const _0x45bb3a=_0x3b3960;return this[_0x45bb3a(0x3b5)][_0x45bb3a(0x279)](_0x559930),this;}[_0x3b3960(0x357)](_0x24fe6a){const _0xc2ac88=_0x3b3960;if(this[_0xc2ac88(0x21d)])return this['_acknowledgedAwaitingChangeset']=this[_0xc2ac88(0x21d)],this[_0xc2ac88(0x21d)]=null,this;throw new Error(_0xc2ac88(0x3a4));}['onRemoteRej'](_0x4f26bc){const _0x44e31d=_0x3b3960;return this[_0x44e31d(0x438)](!!(_0x4f26bc!=null&&_0x4f26bc[_0x44e31d(0x42d)]));}[_0x3b3960(0x55f)](){const _0x530618=_0x3b3960;return this[_0x530618(0x3f4)]['createInstance'](_0x3a6b9d,this[_0x530618(0x353)],this[_0x530618(0x376)],this[_0x530618(0x21d)],this[_0x530618(0x223)],this[_0x530618(0x3ef)]);}[_0x3b3960(0x328)](){return this;}['_onConflict'](_0x38d4a3){const _0x4b2478=_0x3b3960;return this[_0x4b2478(0x3f4)][_0x4b2478(0x385)](_0x3132e7,this['unitID'],this[_0x4b2478(0x376)],this['_awaitingChangeset'],this[_0x4b2478(0x223)],this[_0x4b2478(0x3ef)],_0x38d4a3);}};_0x1f1e9a=_0x2f90f8([_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x1f3)]),_0x108b1a(0xb,_0x2015b3['ICommandService']),_0x108b1a(0xc,_0x2015b3[_0x3b3960(0x445)]),_0x108b1a(0xd,_0x106736[_0x3b3960(0x25a)])],_0x1f1e9a);function _0x3fc11b(_0x59fabe,_0x3686ff,_0x443260,_0x59dc4f,_0x3444bd,_0x4fa73d){const _0x4ba9d2=_0x3b3960;return _0x59dc4f&&_0x3444bd[_0x4ba9d2(0x306)]?_0x59fabe[_0x4ba9d2(0x385)](_0x270522,_0x3686ff,_0x443260,_0x59dc4f,_0x3444bd,_0x4fa73d):_0x59dc4f?_0x59fabe[_0x4ba9d2(0x385)](_0x25747b,_0x3686ff,_0x443260,_0x59dc4f,_0x4fa73d):_0x3444bd[_0x4ba9d2(0x306)]?_0x59fabe[_0x4ba9d2(0x385)](_0x977b19,_0x3686ff,_0x443260,_0x3444bd,_0x4fa73d):_0x59fabe[_0x4ba9d2(0x385)](_0x51907c,_0x3686ff,_0x443260,_0x4fa73d);}var _0x3e6c42=Object[_0x3b3960(0x57c)],_0xeff16f=Object[_0x3b3960(0x2c2)],_0x525818=(_0x56f830,_0x29e43d,_0x42b0c7,_0x2429e9)=>{const _0x248c89=_0x3b3960;for(var _0x4a5cc4=_0x2429e9>0x1?void 0x0:_0x2429e9?_0xeff16f(_0x29e43d,_0x42b0c7):_0x29e43d,_0x4f4876=_0x56f830[_0x248c89(0x306)]-0x1,_0xf3aa43;_0x4f4876>=0x0;_0x4f4876--)(_0xf3aa43=_0x56f830[_0x4f4876])&&(_0x4a5cc4=(_0x2429e9?_0xf3aa43(_0x29e43d,_0x42b0c7,_0x4a5cc4):_0xf3aa43(_0x4a5cc4))||_0x4a5cc4);return _0x2429e9&&_0x4a5cc4&&_0x3e6c42(_0x29e43d,_0x42b0c7,_0x4a5cc4),_0x4a5cc4;},_0x138926=(_0xe0857d,_0x5d8b01)=>(_0x29184b,_0x179033)=>_0x5d8b01(_0x29184b,_0x179033,_0xe0857d);_0x2c3354[_0x3b3960(0x3e2)]=class extends _0x2015b3['RxDisposable']{constructor(_0x54730b,_0x3e8a01,_0x1d287c){const _0x2bc666=_0x3b3960;super(),_0x385cfe(this,_0x2bc666(0x2ff),new Map()),_0x385cfe(this,_0x2bc666(0x284),new _0x345abe[(_0x2bc666(0x421))]()),(this[_0x2bc666(0x3f4)]=_0x54730b,this[_0x2bc666(0x35a)]=_0x3e8a01,this['_univerInstanceService']=_0x1d287c,this[_0x2bc666(0x4a1)]());}['dispose'](){const _0x876d97=_0x3b3960;super[_0x876d97(0x472)](),this['_entities'][_0x876d97(0x4d1)](_0x20b1fe=>_0x20b1fe[_0x876d97(0x472)]()),this[_0x876d97(0x2ff)][_0x876d97(0x577)]();}[_0x3b3960(0x40e)](_0x474292){const _0x4918d2=_0x3b3960;var _0x2922c4;return(_0x2922c4=this[_0x4918d2(0x2ff)]['get'](_0x474292))!=null?_0x2922c4:null;}[_0x3b3960(0x21c)](_0x3f3e3a){const _0x48ebbf=_0x3b3960,_0x5d6cca=this[_0x48ebbf(0x40e)](_0x3f3e3a);return _0x5d6cca?_0x345abe['of'](_0x5d6cca):this[_0x48ebbf(0x284)][_0x48ebbf(0x2d1)](_0x2cc613[_0x48ebbf(0x493)](_0x174720=>_0x174720['unitID']===_0x3f3e3a));}['_init'](){const _0x533400=_0x3b3960;this[_0x533400(0x5b7)][_0x533400(0x388)](_0x2015b3['UniverInstanceType']['UNIVER_SHEET'])['pipe'](_0x345abe[_0x533400(0x244)](this[_0x533400(0x272)]),_0x2cc613[_0x533400(0x402)](0x10))['subscribe'](async _0xaa0fcb=>{const _0x2bc082=_0x533400,_0x3c8054=_0xaa0fcb['getUnitId'](),_0x2e092d=await this[_0x2bc082(0x4eb)](_0x3c8054,_0x32a37d['UNIVER_SHEET']);this[_0x2bc082(0x2ff)]['set'](_0x3c8054,_0x2e092d);}),this[_0x533400(0x5b7)]['getTypeOfUnitAdded$'](_0x2015b3['UniverInstanceType'][_0x533400(0x361)])['pipe'](_0x345abe[_0x533400(0x244)](this[_0x533400(0x272)]),_0x2cc613['delay'](0x10))[_0x533400(0x2d1)](_0x2cc613[_0x533400(0x493)](_0x28578b=>!_0x28578b[_0x533400(0x304)]()[_0x533400(0x2d7)]('__')))[_0x533400(0x35b)](async _0x4a9fbe=>{const _0x43b755=_0x533400,_0x2d79a0=_0x4a9fbe[_0x43b755(0x304)](),_0x3347bb=await this['_startCollaboration'](_0x2d79a0,_0x32a37d['UNIVER_DOC']);this[_0x43b755(0x2ff)][_0x43b755(0x420)](_0x2d79a0,_0x3347bb);}),_0x345abe['merge'](this[_0x533400(0x5b7)][_0x533400(0x3d0)](_0x2015b3[_0x533400(0x3a8)][_0x533400(0x321)]),this[_0x533400(0x5b7)][_0x533400(0x3d0)](_0x2015b3[_0x533400(0x3a8)]['UNIVER_DOC']))[_0x533400(0x2d1)](_0x345abe[_0x533400(0x244)](this[_0x533400(0x272)]))[_0x533400(0x35b)](_0x269dad=>{const _0x290307=_0x533400,_0x4df1f6=_0x269dad[_0x290307(0x304)](),_0x5b009c=this['_entities'][_0x290307(0x3b9)](_0x4df1f6);_0x5b009c&&(_0x5b009c[_0x290307(0x472)](),this[_0x290307(0x2ff)][_0x290307(0x431)](_0x4df1f6));});}async['_startCollaboration'](_0x404514,_0x1ec39f){const _0x1546c3=_0x3b3960,_0xd6fa9e=await this[_0x1546c3(0x35a)][_0x1546c3(0x5db)](_0x404514),_0x583bc9=this['_injector'][_0x1546c3(0x385)](this[_0x1546c3(0x5df)](_0x1ec39f),_0x404514,_0x1ec39f,_0xd6fa9e);return await _0x583bc9[_0x1546c3(0x595)](),this[_0x1546c3(0x284)][_0x1546c3(0x2b0)](_0x583bc9),_0x583bc9;}[_0x3b3960(0x5df)](_0x4b3c95){const _0x4a99ba=_0x3b3960;switch(_0x4b3c95){case _0x32a37d[_0x4a99ba(0x361)]:return _0x1e6df4;case _0x32a37d['UNIVER_SHEET']:return _0x2c3354[_0x4a99ba(0x2e6)];default:throw new Error(_0x4a99ba(0x5d6)+_0x4b3c95);}}},_0x2c3354[_0x3b3960(0x3e2)]=_0x525818([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)][_0x3b3960(0x206)],_0x2c3354[_0x3b3960(0x3e2)]),_0x138926(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x138926(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2c3354['CollaborationSessionService'])),_0x138926(0x2,_0x2015b3['IUniverInstanceService'])],_0x2c3354[_0x3b3960(0x3e2)]);let _0x4e565d=class extends _0x2015b3['RxDisposable']{constructor(_0x1bc658,_0x15f084,_0x1f68c5,_0x42b041,_0x41cc67,_0x8f3450,_0x6ed2d8,_0x440f0b,_0x398b6f,_0x13a1d1,_0x5d9388,_0x360724,_0x57d566){const _0xa95638=_0x3b3960;super(),_0x385cfe(this,_0xa95638(0x503),new _0x345abe[(_0xa95638(0x2f9))](null)),_0x385cfe(this,_0xa95638(0x46d),this['_state$'][_0xa95638(0x348)]()),_0x385cfe(this,_0xa95638(0x2c5)),_0x385cfe(this,'_collaborationPaused',!0x1),_0x385cfe(this,'status$',this[_0xa95638(0x46d)]['pipe'](_0x2cc613[_0xa95638(0x522)](_0x1f58e1=>_0x1f58e1?_0x1f58e1['status']:_0xe45813['OFFLINE']),_0x2cc613[_0xa95638(0x4fa)](0x1))),_0x385cfe(this,_0xa95638(0x3eb),!0x1),_0x385cfe(this,_0xa95638(0x4d9),[]),(this['unitID']=_0x1bc658,this[_0xa95638(0x267)]=_0x15f084,this[_0xa95638(0x21b)]=_0x1f68c5,this[_0xa95638(0x3f4)]=_0x42b041,this[_0xa95638(0x24b)]=_0x41cc67,this[_0xa95638(0x3e5)]=_0x8f3450,this[_0xa95638(0x23b)]=_0x6ed2d8,this['_revisionService']=_0x440f0b,this[_0xa95638(0x501)]=_0x398b6f,this[_0xa95638(0x286)]=_0x13a1d1,this[_0xa95638(0x5ea)]=_0x5d9388,this[_0xa95638(0x518)]=_0x360724,this[_0xa95638(0x245)]=_0x57d566);}get[_0x3b3960(0x283)](){const _0xa9f018=_0x3b3960;return this[_0xa9f018(0x2c5)];}async[_0x3b3960(0x595)](){const _0xe90c86=_0x3b3960;if(this[_0xe90c86(0x283)])throw new Error(_0xe90c86(0x326));await this[_0xe90c86(0x4a1)]();}[_0x3b3960(0x200)](){const _0xd90574=_0x3b3960;return this[_0xd90574(0x248)]=!0x0,_0x2015b3['toDisposable'](()=>{const _0x3340b7=_0xd90574;this[_0x3340b7(0x248)]=!0x1,this[_0x3340b7(0x3c3)]();});}[_0x3b3960(0x212)](_0x264360){const _0x5e06d8=_0x3b3960;this[_0x5e06d8(0x2c5)]=_0x264360,this[_0x5e06d8(0x503)][_0x5e06d8(0x2b0)](_0x264360);}async[_0x3b3960(0x4a1)](){const _0x136bde=_0x3b3960;var _0x1e5797;return this[_0x136bde(0x212)](await this[_0x136bde(0x365)]()),this[_0x136bde(0x245)]&&((_0x1e5797=this['_singleActiveUnitService'])==null||_0x1e5797[_0x136bde(0x539)](this[_0x136bde(0x353)]),this[_0x136bde(0x369)](_0x2015b3['toDisposable'](this['_singleActiveUnitService'][_0x136bde(0x5f4)](this[_0x136bde(0x353)])[_0x136bde(0x35b)](_0x2e38cf=>{const _0x1f1b7b=_0x136bde;this[_0x1f1b7b(0x501)][_0x1f1b7b(0x210)](_0x1f1b7b(0x5ae),_0x1f1b7b(0x39b),_0x2e38cf),_0x2e38cf===_0x2d9e3c[_0x1f1b7b(0x393)]?(this[_0x1f1b7b(0x5ea)][_0x1f1b7b(0x2c3)]({'content':this['_localeService']['t'](_0x1f1b7b(0x275)),'type':_0x54ac63['MessageType'][_0x1f1b7b(0x331)]}),this[_0x1f1b7b(0x518)]['updatePermissionPoint'](new _0x3d1b6a[(_0x1f1b7b(0x405))](this[_0x1f1b7b(0x353)])['id'],!0x1)):this[_0x1f1b7b(0x518)][_0x1f1b7b(0x49e)](new _0x3d1b6a['WorkbookEditablePermission'](this[_0x1f1b7b(0x353)])['id'],!0x0);})))),this['disposeWithMe'](_0x2015b3[_0x136bde(0x31c)](this['_session']['sessionStatus$']['subscribe'](_0x4539da=>{const _0x4566b2=_0x136bde;_0x4539da===_0x510b8a[_0x4566b2(0x457)]?this['_toggleOnline']():_0x4539da===_0x510b8a[_0x4566b2(0x461)]&&this['_toggleOffline']();}))),this[_0x136bde(0x369)](_0x2015b3[_0x136bde(0x31c)](this[_0x136bde(0x21b)][_0x136bde(0x4ca)][_0x136bde(0x35b)](_0x142c95=>{const _0x51e25c=_0x136bde;try{switch(_0x142c95[_0x51e25c(0x4aa)]){case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x2f1)]:{this[_0x51e25c(0x327)](_0x106736[_0x51e25c(0x41d)](_0x142c95[_0x51e25c(0x3e0)]));break;}case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x303)]:{this[_0x51e25c(0x428)](_0x142c95[_0x51e25c(0x3e0)]);break;}case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x4f9)]:{this['_onRemoteRejected']();break;}case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x426)]:{this[_0x51e25c(0x4c0)](_0x142c95[_0x51e25c(0x3e0)][_0x51e25c(0x2df)][_0x51e25c(0x522)](_0x3584fe=>_0x106736[_0x51e25c(0x41d)](_0x3584fe)));break;}case _0x106736[_0x51e25c(0x43e)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x4136f8){throw console[_0x51e25c(0x50b)](_0x51e25c(0x53f),_0x4136f8),_0x4136f8;}}))),this[_0x136bde(0x2c5)];}[_0x3b3960(0x4b5)](){const _0x641a48=_0x3b3960;this[_0x641a48(0x3eb)]=!0x1;}['_lockTransition'](){const _0x18f855=_0x3b3960;if(this[_0x18f855(0x3eb)])throw new Error(_0x18f855(0x5c0));this[_0x18f855(0x3eb)]=!0x0;}[_0x3b3960(0x29c)](_0x349b30){const _0x482cd8=_0x3b3960;this[_0x482cd8(0x274)](),this[_0x482cd8(0x212)](this[_0x482cd8(0x2c5)][_0x482cd8(0x2eb)](_0x349b30)),this[_0x482cd8(0x4b5)]();}[_0x3b3960(0x327)](_0x52550f){const _0x381bba=_0x3b3960;if(!(_0x52550f['revision']<=this[_0x381bba(0x59c)][_0x381bba(0x556)](this[_0x381bba(0x353)]))){if(this[_0x381bba(0x248)]){this['_remoteChangesetQueue']['push'](_0x52550f);return;}this['_applyRemoteChangeset'](_0x52550f);}}[_0x3b3960(0x3c3)](){const _0x1cac59=_0x3b3960;this['_remoteChangesetQueue'][_0x1cac59(0x4d1)](_0x596772=>this['_applyRemoteChangeset'](_0x596772)),this[_0x1cac59(0x4d9)]=[];}[_0x3b3960(0x2be)](_0x28ca20){const _0x2ceedb=_0x3b3960,_0x43211b=this[_0x2ceedb(0x3e5)][_0x2ceedb(0x50c)][_0x2ceedb(0x3a2)](this[_0x2ceedb(0x3e5)][_0x2ceedb(0x50c)][_0x2ceedb(0x4d5)]()[_0x2ceedb(0x2ae)])(_0x28ca20[_0x2ceedb(0x2e7)],null)||_0x28ca20['mutations'],_0x2523e7={..._0x28ca20,'mutations':_0x43211b};this[_0x2ceedb(0x274)](),this[_0x2ceedb(0x212)](this['_state'][_0x2ceedb(0x594)](_0x2523e7)),this['_unlockTransition']();}[_0x3b3960(0x428)](_0x23742b){const _0x2c18d6=_0x3b3960;this[_0x2c18d6(0x274)](),this[_0x2c18d6(0x212)](this[_0x2c18d6(0x2c5)]['onRemoteAck'](_0x23742b)),this[_0x2c18d6(0x4b5)]();}[_0x3b3960(0x3cb)](_0x451759){const _0x448abd=_0x3b3960;this[_0x448abd(0x274)](),this[_0x448abd(0x212)](this[_0x448abd(0x2c5)][_0x448abd(0x311)](_0x451759)),this[_0x448abd(0x4b5)]();}[_0x3b3960(0x4c0)](_0x6e7f9e){const _0x3ad0f1=_0x3b3960;if(!(this[_0x3ad0f1(0x2c5)]instanceof _0x1f1e9a))throw new TypeError(_0x3ad0f1(0x4ae));const _0x47c31e=_0x6e7f9e[_0x3ad0f1(0x522)](_0x6a9dd0=>{const _0x3fef82=_0x3ad0f1,_0x15aab6=this['_compressMutationService'][_0x3fef82(0x50c)][_0x3fef82(0x3a2)](this[_0x3fef82(0x3e5)]['interceptor'][_0x3fef82(0x4d5)]()['COMPRESS_MUTATION_APPLY'])(_0x6a9dd0[_0x3fef82(0x2e7)],null)||_0x6a9dd0[_0x3fef82(0x2e7)];return{..._0x6a9dd0,'mutations':_0x15aab6};});this['_lockTransition'](),this[_0x3ad0f1(0x212)](this[_0x3ad0f1(0x2c5)][_0x3ad0f1(0x572)](_0x47c31e)),this[_0x3ad0f1(0x4b5)]();}['_toggleOffline'](){const _0x21ddb3=_0x3b3960;this[_0x21ddb3(0x274)](),this[_0x21ddb3(0x212)](this['_state']['toggleOffline']()),this[_0x21ddb3(0x4b5)]();}[_0x3b3960(0x258)](){const _0x280939=_0x3b3960;this['_lockTransition'](),this['_updateState'](this[_0x280939(0x2c5)]['toggleOnline']()),this[_0x280939(0x4b5)]();}async[_0x3b3960(0x365)](){return new Promise(_0x4c04d6=>{const _0x543f0f=_0x41fb;this['_session']['sessionStatus$'][_0x543f0f(0x2d1)](_0x2cc613[_0x543f0f(0x46a)](0x1))[_0x543f0f(0x35b)](async _0x50c121=>{const _0x1db049=_0x543f0f;_0x4c04d6(await this[_0x1db049(0x417)](_0x50c121===_0x510b8a[_0x1db049(0x457)]));});});}[_0x3b3960(0x4a5)](){const _0xd572a5=this['unitID'];return{'onStateChange':(_0x450dbe,_0x15d353)=>{const _0x5ab441=_0x41fb;if(_0x450dbe!==this[_0x5ab441(0x2c5)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x450dbe[_0x5ab441(0x268)]+_0x5ab441(0x26c)+_0x15d353['status']+'\x0aCurrent:\x20'+this[_0x5ab441(0x2c5)][_0x5ab441(0x268)]);this[_0x5ab441(0x212)](_0x15d353);},'onSendChangeset':_0x10a1fc=>{const _0x4d4e72=_0x41fb,_0x38f359={'eventID':_0x106736[_0x4d4e72(0x43e)][_0x4d4e72(0x398)],'data':{'unitID':_0x10a1fc['unitID'],'unitType':this[_0x4d4e72(0x267)],'changeset':_0x10a1fc,'memberID':this['_session']['getMemberID']()}};this[_0x4d4e72(0x21b)][_0x4d4e72(0x42b)](_0x38f359,this[_0x4d4e72(0x353)]);},'onMissingChangesets':({from:_0x488394,to:_0x2bcdd2})=>{const _0x5ccf0e=_0x41fb;this['_logService'][_0x5ccf0e(0x210)](_0x5ccf0e(0x5ae),_0x5ccf0e(0x566)+_0x488394+_0x5ccf0e(0x40f)+_0x2bcdd2);const _0x3ff58b={'eventID':_0x106736['CollaborationEvent'][_0x5ccf0e(0x3da)],'data':{'unitID':_0xd572a5,'unitType':this[_0x5ccf0e(0x267)],'from':_0x488394,'to':_0x2bcdd2}};this[_0x5ccf0e(0x21b)]['send'](_0x3ff58b,this[_0x5ccf0e(0x353)]);}};}async['_createInitialStateImpl'](_0x81fa6c){const _0xa6b1a2=_0x3b3960;var _0xff15c5,_0x2c3e99;const _0x11549b=await this['_localCacheService'][_0xa6b1a2(0x56a)](this[_0xa6b1a2(0x353)]),_0x2b51c1=(_0xff15c5=_0x11549b==null?void 0x0:_0x11549b['mutations'])!=null?_0xff15c5:[],_0x54fd73=(_0x2c3e99=_0x11549b==null?void 0x0:_0x11549b[_0xa6b1a2(0x1f2)])!=null?_0x2c3e99:null,_0x37b269=this[_0xa6b1a2(0x353)];try{this[_0xa6b1a2(0x507)](_0x54fd73,_0x2b51c1);}catch(_0x4d20b9){this[_0xa6b1a2(0x501)][_0xa6b1a2(0x50b)](_0x4d20b9);}const _0x5d7112=this['_createHandler']();if(_0x81fa6c){const _0x2c8601=_0x3fc11b(this['_injector'],_0x37b269,this['_type'],_0x54fd73,_0x2b51c1,_0x5d7112);return _0x2c8601 instanceof _0x977b19?_0x2c8601[_0xa6b1a2(0x524)]():(_0x2c8601 instanceof _0x270522||_0x2c8601 instanceof _0x25747b)&&_0x2c8601[_0xa6b1a2(0x474)](),_0x2c8601;}return this['_injector'][_0xa6b1a2(0x385)](_0x3a6b9d,_0x37b269,this['_type'],_0x54fd73,_0x2b51c1,_0x5d7112);}['_replayCachedMutations'](_0x23a3de,_0xad18d7){const _0x198a30=_0x3b3960;var _0x5668fa,_0x2ab2c5;const _0x3d8df0=this[_0x198a30(0x3e5)][_0x198a30(0x50c)]['fetchThroughInterceptors'](this[_0x198a30(0x3e5)]['interceptor'][_0x198a30(0x4d5)]()[_0x198a30(0x2ae)]);(_0x5668fa=_0x3d8df0((_0x23a3de==null?void 0x0:_0x23a3de['mutations'])||[],null))==null||_0x5668fa[_0x198a30(0x4d1)](_0x503b37=>this['_commandService'][_0x198a30(0x44d)](_0x503b37['id'],_0x503b37['params'])),(_0x2ab2c5=_0x3d8df0(_0xad18d7||[],null))==null||_0x2ab2c5['forEach'](_0x58f152=>this['_commandService'][_0x198a30(0x44d)](_0x58f152['id'],_0x58f152[_0x198a30(0x358)]));}};_0x4e565d=_0x525818([_0x138926(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x138926(0x4,_0x2015b3['Inject'](_0x2c3354[_0x3b3960(0x3dc)])),_0x138926(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x51e)])),_0x138926(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x138926(0x7,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x138926(0x8,_0x2015b3[_0x3b3960(0x1f3)]),_0x138926(0x9,_0x2015b3[_0x3b3960(0x259)]),_0x138926(0xa,_0x44b766['IMessageService']),_0x138926(0xb,_0x2015b3['IPermissionService']),_0x138926(0xc,_0x2015b3[_0x3b3960(0x5e4)](_0x55925e))],_0x4e565d);let _0x1e6df4=class extends _0x4e565d{constructor(_0x7d5afe,_0x98e30a,_0xee6422,_0x51eea2,_0x52096b,_0x20d1ae,_0x2504c9,_0x334ec7,_0x4ed500,_0x9d6835,_0x2ef582,_0x25acf3,_0x5b858c,_0xd26b74,_0x3f5b41,_0x3f39ac,_0x2a40f2){const _0x3f1f55=_0x3b3960;super(_0x7d5afe,_0x98e30a,_0xee6422,_0x51eea2,_0x52096b,_0x20d1ae,_0x2504c9,_0x334ec7,_0x5b858c,_0xd26b74,_0x3f5b41,_0x3f39ac,_0x2a40f2),this[_0x3f1f55(0x353)]=_0x7d5afe,this[_0x3f1f55(0x376)]=_0x98e30a,this[_0x3f1f55(0x439)]=_0xee6422,this[_0x3f1f55(0x2c4)]=_0x4ed500,this[_0x3f1f55(0x51a)]=_0x9d6835,this[_0x3f1f55(0x42f)]=_0x2ef582,this[_0x3f1f55(0x2bd)]=_0x25acf3;}['_createHandler'](){const _0x336ba9=_0x3b3960,_0x2ecab8=super['_createHandler']();return _0x2ecab8['onTransformIME']=_0x5510e3=>this[_0x336ba9(0x51a)][_0x336ba9(0x4dc)](_0x5510e3),_0x2ecab8[_0x336ba9(0x559)]=_0x8d0130=>this[_0x336ba9(0x42f)][_0x336ba9(0x2c8)](_0x8d0130),_0x2ecab8[_0x336ba9(0x2d2)]=_0x3e3e9f=>this[_0x336ba9(0x2bd)]['syncEditingCollabCursor'](_0x3e3e9f),_0x2ecab8['onTransformRemoteChangesetByIMECache']=_0x28f2d7=>this[_0x336ba9(0x51a)][_0x336ba9(0x2cb)](_0x28f2d7),_0x2ecab8;}async['_init'](){const _0x52d2cd=_0x3b3960,_0x4256ec=await super[_0x52d2cd(0x4a1)]();return this[_0x52d2cd(0x369)](this[_0x52d2cd(0x286)]['onCommandExecuted']((_0x55e828,_0x283ad6)=>{const _0x226a11=_0x52d2cd;if(_0x55e828['type']!==_0x2015b3['CommandType'][_0x226a11(0x5bf)]||_0x283ad6!=null&&_0x283ad6[_0x226a11(0x278)]||_0x283ad6!=null&&_0x283ad6[_0x226a11(0x5f5)])return;const _0x5b36d5=_0x55e828[_0x226a11(0x358)];if((_0x5b36d5==null?void 0x0:_0x5b36d5[_0x226a11(0x59f)])!==this[_0x226a11(0x353)])return;let _0x3eb975=_0x55e828;if(_0x3eb975['id']===_0xbcf55e['RichTextEditingMutation']['id']){const _0xe1ca0b=_0x3eb975[_0x226a11(0x358)];_0x3eb975={'id':_0xbcf55e[_0x226a11(0x446)]['id'],'type':_0x2015b3['CommandType'][_0x226a11(0x5bf)],'params':{'unitId':_0xe1ca0b[_0x226a11(0x59f)],'actions':_0xe1ca0b['actions'],'textRanges':null}};}const _0x30c522=this['_compressMutationService'][_0x226a11(0x50c)]['fetchThroughInterceptors'](this[_0x226a11(0x3e5)][_0x226a11(0x50c)][_0x226a11(0x4d5)]()[_0x226a11(0x1ff)])([_0x3eb975],null)||[_0x3eb975];this['_onLocalMutation'](_0x30c522[0x0]);})),_0x4256ec;}};_0x1e6df4=_0x525818([_0x138926(0x3,_0x2015b3['Inject'](_0x2015b3['Injector'])),_0x138926(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x138926(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736['CompressMutationService'])),_0x138926(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x138926(0x7,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x138926(0x8,_0x2015b3[_0x3b3960(0x547)](_0xbcf55e[_0x3b3960(0x5ef)])),_0x138926(0x9,_0x2015b3['Inject'](_0x3d8f9f)),_0x138926(0xa,_0x2015b3[_0x3b3960(0x547)](_0x27cbd7)),_0x138926(0xb,_0x2015b3[_0x3b3960(0x547)](_0x474519)),_0x138926(0xc,_0x2015b3['ILogService']),_0x138926(0xd,_0x2015b3[_0x3b3960(0x259)]),_0x138926(0xe,_0x44b766[_0x3b3960(0x464)]),_0x138926(0xf,_0x2015b3[_0x3b3960(0x5d7)]),_0x138926(0x10,_0x2015b3['Optional'](_0x55925e))],_0x1e6df4),_0x2c3354[_0x3b3960(0x2e6)]=class extends _0x4e565d{constructor(_0x2024fe,_0x317641,_0x88a929,_0x57de1a,_0x26b3fc,_0x35070e,_0x490610,_0x56614f,_0x493d04,_0x5a7048,_0x3a672c,_0x1addce,_0x52b3d7,_0x436de1){const _0xf7386=_0x3b3960;super(_0x2024fe,_0x317641,_0x88a929,_0x57de1a,_0x26b3fc,_0x35070e,_0x490610,_0x56614f,_0x5a7048,_0x3a672c,_0x1addce,_0x52b3d7,_0x436de1),this[_0xf7386(0x353)]=_0x2024fe,this[_0xf7386(0x376)]=_0x317641,this['session']=_0x88a929,this[_0xf7386(0x2aa)]=_0x493d04;}[_0x3b3960(0x4a5)](){const _0x36815c=_0x3b3960,_0x510a39=super['_createHandler']();return _0x510a39[_0x36815c(0x559)]=_0x55384c=>this[_0x36815c(0x2aa)][_0x36815c(0x2c8)](_0x55384c),_0x510a39;}async[_0x3b3960(0x4a1)](){const _0x1279ed=_0x3b3960,_0x518288=await super[_0x1279ed(0x4a1)]();return this[_0x1279ed(0x369)](this['_commandService'][_0x1279ed(0x3ab)]((_0x3b66a4,_0x29b15b)=>{const _0x48b0f7=_0x1279ed;if(_0x3b66a4[_0x48b0f7(0x376)]!==_0x2015b3[_0x48b0f7(0x322)][_0x48b0f7(0x5bf)]||_0x29b15b!=null&&_0x29b15b[_0x48b0f7(0x278)]||_0x29b15b!=null&&_0x29b15b[_0x48b0f7(0x5f5)])return;const _0x2ef729=_0x3b66a4[_0x48b0f7(0x358)];if((_0x2ef729==null?void 0x0:_0x2ef729[_0x48b0f7(0x59f)])!==this[_0x48b0f7(0x353)])return;const _0x271117=_0x3b66a4,_0x4925cf=this['_compressMutationService'][_0x48b0f7(0x50c)][_0x48b0f7(0x3a2)](this[_0x48b0f7(0x3e5)][_0x48b0f7(0x50c)][_0x48b0f7(0x4d5)]()[_0x48b0f7(0x1ff)])([_0x271117],null)||[_0x271117];this[_0x48b0f7(0x29c)](_0x4925cf[0x0]);})),_0x518288;}},_0x2c3354[_0x3b3960(0x2e6)]=_0x525818([_0x138926(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x138926(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x138926(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x51e)])),_0x138926(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['LocaleService'])),_0x138926(0x7,_0x2015b3['Inject'](_0x106736[_0x3b3960(0x3e9)])),_0x138926(0x8,_0x2015b3['Inject'](_0x319b0c)),_0x138926(0x9,_0x2015b3[_0x3b3960(0x1f3)]),_0x138926(0xa,_0x2015b3['ICommandService']),_0x138926(0xb,_0x44b766[_0x3b3960(0x464)]),_0x138926(0xc,_0x2015b3[_0x3b3960(0x5d7)]),_0x138926(0xd,_0x2015b3[_0x3b3960(0x5e4)](_0x55925e))],_0x2c3354[_0x3b3960(0x2e6)]);const _0x1905a0=[_0x3b3960(0x5b9),_0x3b3960(0x4b0),_0x3b3960(0x2ba),_0x3b3960(0x5d3),_0x3b3960(0x4d3),_0x3b3960(0x1fa)];class _0x258d12 extends _0x2015b3[_0x3b3960(0x38b)]{constructor(){const _0x3c7c77=_0x3b3960;super(...arguments),_0x385cfe(this,_0x3c7c77(0x560),new Map()),_0x385cfe(this,_0x3c7c77(0x26f),0x0);}[_0x3b3960(0x46b)](_0x2c6fcd){const _0x2aa0a1=_0x3b3960;if(this[_0x2aa0a1(0x560)][_0x2aa0a1(0x337)](_0x2c6fcd))return this['_assignedColors'][_0x2aa0a1(0x3b9)](_0x2c6fcd);const _0x2bbd71=_0x1905a0[this[_0x2aa0a1(0x26f)]];return this[_0x2aa0a1(0x26f)]=(this['_colorIndex']+0x1)%_0x1905a0[_0x2aa0a1(0x306)],this[_0x2aa0a1(0x560)]['set'](_0x2c6fcd,_0x2bbd71),_0x2bbd71;}}var _0x3a2d48=Object[_0x3b3960(0x57c)],_0x206c60=Object['getOwnPropertyDescriptor'],_0x1d4a10=(_0xd092ef,_0x1f86bd,_0x1ddd73,_0x325633)=>{for(var _0x29f94d=_0x325633>0x1?void 0x0:_0x325633?_0x206c60(_0x1f86bd,_0x1ddd73):_0x1f86bd,_0x2f4c3c=_0xd092ef['length']-0x1,_0xba053a;_0x2f4c3c>=0x0;_0x2f4c3c--)(_0xba053a=_0xd092ef[_0x2f4c3c])&&(_0x29f94d=(_0x325633?_0xba053a(_0x1f86bd,_0x1ddd73,_0x29f94d):_0xba053a(_0x29f94d))||_0x29f94d);return _0x325633&&_0x29f94d&&_0x3a2d48(_0x1f86bd,_0x1ddd73,_0x29f94d),_0x29f94d;},_0x37f67e=(_0x3f0ac3,_0x47bfd8)=>(_0x4a6864,_0xe92a8d)=>_0x47bfd8(_0x4a6864,_0xe92a8d,_0x3f0ac3);const _0x5edb86=0x12c,_0x278497=0x64,_0xbdb66f=()=>{let _0xd40d68=[],_0x35c80b=!0x1;return _0x540ca3=>{const _0x3b3054=_0x41fb;_0xd40d68[_0x3b3054(0x279)](_0x540ca3),_0x35c80b||(_0x35c80b=!0x0,setTimeout(()=>{const _0x29114d=_0x3b3054;_0xd40d68[_0x29114d(0x4d1)](_0x48344e=>_0x48344e()),_0xd40d68=[],_0x35c80b=!0x1;}));};};let _0x4fb84c=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x482b48,_0x4605e8,_0x44432b,_0x53ca42,_0x24ed14,_0x2d26f1,_0x52a7af,_0x25f2f2){const _0x565f0b=_0x3b3960;super(),_0x385cfe(this,_0x565f0b(0x406),!0x1),_0x385cfe(this,_0x565f0b(0x4a1),!0x1),_0x385cfe(this,'_cursorInfo$',new _0x345abe[(_0x565f0b(0x2f9))](new Map())),_0x385cfe(this,'cursorInfo$',this[_0x565f0b(0x2c9)][_0x565f0b(0x348)]()),_0x385cfe(this,'_roomMembers$',new _0x345abe[(_0x565f0b(0x2f9))]([])),_0x385cfe(this,'roomMembers$',this[_0x565f0b(0x565)][_0x565f0b(0x2d1)](_0x345abe[_0x565f0b(0x49f)](_0x5edb86))),_0x385cfe(this,_0x565f0b(0x2ca),_0x533449((_0x2fe71b,_0x537d96)=>{const _0x2ab4d2=_0x565f0b,_0x1a2f9b={'eventID':_0x106736[_0x2ab4d2(0x43e)][_0x2ab4d2(0x3e4)],'data':{'unitID':this['unitID'],'memberID':this[_0x2ab4d2(0x21b)][_0x2ab4d2(0x5d9)](),'selection':_0x3096c0['serializeRangeWithSheet'](_0x2fe71b,_0x537d96[_0x2ab4d2(0x329)])}};this['_session'][_0x2ab4d2(0x42b)](_0x1a2f9b,this[_0x2ab4d2(0x353)]);},_0x278497)),(this[_0x565f0b(0x353)]=_0x482b48,this['_session']=_0x4605e8,this[_0x565f0b(0x3f4)]=_0x44432b,this[_0x565f0b(0x485)]=_0x53ca42,this['_memberService']=_0x24ed14,this[_0x565f0b(0x5b7)]=_0x2d26f1,this[_0x565f0b(0x286)]=_0x52a7af,this[_0x565f0b(0x4d2)]=_0x25f2f2);}get[_0x3b3960(0x3dd)](){const _0x7b28cb=_0x3b3960;return this[_0x7b28cb(0x2c9)][_0x7b28cb(0x521)]();}get['roomMembers'](){const _0x7661d2=_0x3b3960;return this[_0x7661d2(0x565)][_0x7661d2(0x521)]();}[_0x3b3960(0x472)](){const _0x64a182=_0x3b3960;super[_0x64a182(0x472)](),this[_0x64a182(0x2c9)][_0x64a182(0x2b0)](new Map()),this[_0x64a182(0x2c9)][_0x64a182(0x4d4)](),this[_0x64a182(0x565)][_0x64a182(0x2b0)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x5b27c6=_0x3b3960;this[_0x5b27c6(0x4a1)]||(this[_0x5b27c6(0x4a1)]=!0x0,this['_session'][_0x5b27c6(0x33a)][_0x5b27c6(0x2d1)](_0x345abe['takeUntil'](this[_0x5b27c6(0x272)]))[_0x5b27c6(0x35b)](_0x432642=>{const _0x53477f=_0x5b27c6;_0x432642===_0x510b8a[_0x53477f(0x457)]?this[_0x53477f(0x258)]():this[_0x53477f(0x390)]();}),this[_0x5b27c6(0x21b)][_0x5b27c6(0x4ca)][_0x5b27c6(0x2d1)](_0x345abe['takeUntil'](this[_0x5b27c6(0x272)]))[_0x5b27c6(0x35b)](_0x594cb0=>{const _0x41c26d=_0x5b27c6,_0x12f894=_0x594cb0[_0x41c26d(0x4aa)];_0x12f894===_0x106736[_0x41c26d(0x43e)][_0x41c26d(0x3e4)]&&this[_0x41c26d(0x3db)](_0x594cb0),_0x12f894===_0x106736['CollaborationEvent']['USERS_LEAVE']&&this[_0x41c26d(0x4b7)](_0x594cb0);}),this[_0x5b27c6(0x57a)](),this[_0x5b27c6(0x369)](this[_0x5b27c6(0x286)][_0x5b27c6(0x3ab)](_0x33e671=>{const _0x237efc=_0x5b27c6;if(this[_0x237efc(0x406)]&&_0x33e671['id']===_0x3d1b6a[_0x237efc(0x23d)]['id']&&_0x33e671['params'][_0x237efc(0x59f)]===this[_0x237efc(0x353)]){const _0x272683=_0x33e671[_0x237efc(0x358)];this[_0x237efc(0x2ca)](_0x272683[_0x237efc(0x324)],_0x272683[_0x237efc(0x285)][0x0]);}})));}[_0x3b3960(0x3db)](_0x501ed5){const _0x5bffc9=_0x3b3960;var _0x2af6f9,_0x22e798;const {memberID:_0x17250e,selection:_0x22ab48}=_0x501ed5[_0x5bffc9(0x3e0)],{sheetName:_0x1dc37b,range:_0x58bde3}=_0x3096c0[_0x5bffc9(0x58a)](_0x22ab48),_0x8d0c74={'name':(_0x22e798=(_0x2af6f9=this['_memberService'][_0x5bffc9(0x3d6)](this[_0x5bffc9(0x353)],_0x17250e))==null?void 0x0:_0x2af6f9[_0x5bffc9(0x425)])!=null?_0x22e798:_0x5bffc9(0x30a),'range':this[_0x5bffc9(0x32e)](_0x1dc37b,_0x58bde3),'sheetID':_0x1dc37b,'color':this['_colorAssignService'][_0x5bffc9(0x46b)](_0x17250e),'selection':_0x22ab48},_0x5de72d=this[_0x5bffc9(0x3dd)];_0x5de72d[_0x5bffc9(0x420)](_0x17250e,_0x8d0c74),this['_cursorInfo$'][_0x5bffc9(0x2b0)](_0x5de72d);}[_0x3b3960(0x4b7)](_0x501190){const _0x298af7=_0x3b3960,{memberID:_0x282877}=_0x501190[_0x298af7(0x3e0)],_0x1b6ace=this[_0x298af7(0x3dd)];_0x1b6ace[_0x298af7(0x431)](_0x282877),this[_0x298af7(0x2c9)][_0x298af7(0x2b0)](_0x1b6ace);}[_0x3b3960(0x32e)](_0x402159,_0x2773ba){const _0x1b91b0=_0x3b3960;var _0x55c77f,_0x1d0daa;const _0x38b569=(_0x1d0daa=(_0x55c77f=this[_0x1b91b0(0x5b7)][_0x1b91b0(0x53c)](this[_0x1b91b0(0x353)]))==null?void 0x0:_0x55c77f['getSheetBySheetId'](_0x402159))==null?void 0x0:_0x1d0daa[_0x1b91b0(0x57e)]();return(_0x38b569==null?void 0x0:_0x38b569[_0x1b91b0(0x335)](_0x414ed5=>_0x2015b3['Rectangle'][_0x1b91b0(0x263)](_0x414ed5,_0x2773ba)))||_0x2773ba;}[_0x3b3960(0x57a)](){const _0x1016ce=_0x3b3960,_0x4dbbba=new _0x2015b3['DisposableCollection'](),_0x3411fc=_0xbdb66f(),_0x3a5c6d=()=>{const _0x7f7aa6=_0x41fb;_0x4dbbba['dispose']();const _0x586792=(_0x4e8ed8,_0x53ad5d,_0x292953,_0x48bbfd)=>{const _0x4586ec=_0x41fb;let _0x2c26c6=[];switch(_0x4e8ed8['id']){case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x45c)]:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x36e)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)]['DeleteRangeMoveUpCommandId']:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x39f)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a['EffectRefRangId'][_0x4586ec(0x2fa)]:{_0x2c26c6=_0x3d1b6a['handleInsertCol'](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x2de)]:{_0x2c26c6=_0x3d1b6a['handleInsertRangeMoveDown'](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x3a7)]:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x53a)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)]['InsertRowCommandId']:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x4e7)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)]['MoveRangeCommandId']:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x239)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x323)]:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x370)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x543)]:{_0x2c26c6=_0x3d1b6a['handleIRemoveRow'](_0x4e8ed8,_0x48bbfd);break;}}const _0x164500=_0x3d1b6a['runRefRangeMutations'](_0x2c26c6,_0x48bbfd),_0x3177f5=this[_0x4586ec(0x3dd)][_0x4586ec(0x3b9)](_0x53ad5d);if(_0x3177f5&&_0x164500){const _0x408897={..._0x3177f5,'range':_0x164500};this['cursorInfo'][_0x4586ec(0x420)](_0x53ad5d,_0x408897),_0x3411fc(()=>{const _0x12661f=_0x4586ec,_0x1647a2=this[_0x12661f(0x4d2)][_0x12661f(0x4ef)](_0x164500,_0x4297b7=>(_0x1647a2[_0x12661f(0x472)](),_0x586792(_0x4297b7,_0x53ad5d,_0x292953,_0x164500)));_0x4dbbba[_0x12661f(0x28c)](_0x1647a2);});}return{'redos':[],'undos':[]};};this[_0x7f7aa6(0x3dd)][_0x7f7aa6(0x4d1)]((_0x42e491,_0x57c202)=>{const _0x12e873=_0x7f7aa6,{range:_0x48127b,sheetID:_0x4e8f10}=_0x42e491,_0x3d4840=this[_0x12e873(0x4d2)]['registerRefRange'](_0x48127b,_0x382b48=>(_0x3d4840[_0x12e873(0x472)](),_0x586792(_0x382b48,_0x57c202,_0x4e8f10,_0x48127b)));_0x4dbbba[_0x12e873(0x28c)](_0x3d4840);});};this['disposeWithMe'](_0x2015b3[_0x1016ce(0x31c)](this[_0x1016ce(0x2c9)]['subscribe'](()=>{_0x3a5c6d();})));}[_0x3b3960(0x258)](){const _0x45b0f0=_0x3b3960;var _0x3f6156,_0x2526cd;if(this[_0x45b0f0(0x406)]=!0x0,((_0x3f6156=this[_0x45b0f0(0x5b7)][_0x45b0f0(0x209)]())==null?void 0x0:_0x3f6156['getUnitId']())!==this[_0x45b0f0(0x353)])return;const _0x350394=(_0x2526cd=this[_0x45b0f0(0x3f4)][_0x45b0f0(0x3b9)](_0x3d1b6a['SheetsSelectionsService'])[_0x45b0f0(0x5ca)]())==null?void 0x0:_0x2526cd[0x0],_0x408c60=this[_0x45b0f0(0x5b7)][_0x45b0f0(0x49b)](_0x2015b3[_0x45b0f0(0x3a8)][_0x45b0f0(0x321)])[_0x45b0f0(0x202)]();_0x350394&&_0x408c60&&this['_updateLocalCursor'](_0x408c60[_0x45b0f0(0x216)](),_0x350394);}['_toggleOffline'](){const _0x263a99=_0x3b3960;this[_0x263a99(0x406)]=!0x1;}};_0x4fb84c=_0x1d4a10([_0x37f67e(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x37f67e(0x3,_0x2015b3[_0x3b3960(0x547)](_0x258d12)),_0x37f67e(0x4,_0x2015b3['Inject'](_0x25752c)),_0x37f67e(0x5,_0x2015b3[_0x3b3960(0x37c)]),_0x37f67e(0x6,_0x2015b3[_0x3b3960(0x259)]),_0x37f67e(0x7,_0x2015b3[_0x3b3960(0x547)](_0x3d1b6a[_0x3b3960(0x3df)]))],_0x4fb84c);var _0x1163c9=Object[_0x3b3960(0x57c)],_0x3ed434=Object[_0x3b3960(0x2c2)],_0x462ee0=(_0x3bdf6f,_0x577983,_0x177ec2,_0x38e2f1)=>{const _0x3cf9f5=_0x3b3960;for(var _0x2f5c18=_0x38e2f1>0x1?void 0x0:_0x38e2f1?_0x3ed434(_0x577983,_0x177ec2):_0x577983,_0x486451=_0x3bdf6f[_0x3cf9f5(0x306)]-0x1,_0x56d101;_0x486451>=0x0;_0x486451--)(_0x56d101=_0x3bdf6f[_0x486451])&&(_0x2f5c18=(_0x38e2f1?_0x56d101(_0x577983,_0x177ec2,_0x2f5c18):_0x56d101(_0x2f5c18))||_0x2f5c18);return _0x38e2f1&&_0x2f5c18&&_0x1163c9(_0x577983,_0x177ec2,_0x2f5c18),_0x2f5c18;},_0x3f3164=(_0x28d239,_0x351153)=>(_0x389a6e,_0x530f0f)=>_0x351153(_0x389a6e,_0x530f0f,_0x28d239);const _0x1ebcb1=0x12c,_0x26764a=0x64;let _0x1d861e=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x5ea786,_0x549c33,_0x2c50fa,_0x2a21ec,_0x452089,_0x35eee4,_0x450366,_0x327c17,_0x108aaa){const _0x459883=_0x3b3960;super(),_0x385cfe(this,_0x459883(0x406),!0x1),_0x385cfe(this,_0x459883(0x4a1),!0x1),_0x385cfe(this,_0x459883(0x2c9),new _0x345abe[(_0x459883(0x2f9))](new Map())),_0x385cfe(this,_0x459883(0x208),this[_0x459883(0x2c9)]['asObservable']()),_0x385cfe(this,'_roomMembers$',new _0x345abe[(_0x459883(0x2f9))]([])),_0x385cfe(this,'roomMembers$',this['_roomMembers$'][_0x459883(0x2d1)](_0x345abe[_0x459883(0x49f)](_0x1ebcb1))),_0x385cfe(this,_0x459883(0x2ca),_0x533449(_0x33153a=>{const _0x33313b=_0x459883,_0x4a1113={'eventID':_0x106736['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x33313b(0x21b)]['getMemberID'](),'selection':_0x2763e1(_0x33153a)}};this[_0x33313b(0x21b)][_0x33313b(0x42b)](_0x4a1113,this[_0x33313b(0x353)]);},_0x26764a)),(this[_0x459883(0x353)]=_0x5ea786,this[_0x459883(0x21b)]=_0x549c33,this['_injector']=_0x2c50fa,this[_0x459883(0x485)]=_0x2a21ec,this[_0x459883(0x5e7)]=_0x452089,this[_0x459883(0x3fd)]=_0x35eee4,this['_transformService']=_0x450366,this[_0x459883(0x5b7)]=_0x327c17,this[_0x459883(0x286)]=_0x108aaa);}get['cursorInfo'](){const _0x17b094=_0x3b3960;return this[_0x17b094(0x2c9)][_0x17b094(0x521)]();}get[_0x3b3960(0x437)](){const _0x5e3c4f=_0x3b3960;return this[_0x5e3c4f(0x565)]['getValue']();}[_0x3b3960(0x472)](){const _0x2c1704=_0x3b3960;super[_0x2c1704(0x472)](),this['_cursorInfo$'][_0x2c1704(0x2b0)](new Map()),this['_cursorInfo$'][_0x2c1704(0x4d4)](),this[_0x2c1704(0x565)][_0x2c1704(0x2b0)]([]),this[_0x2c1704(0x565)][_0x2c1704(0x4d4)]();}[_0x3b3960(0x595)](){const _0x278fd9=_0x3b3960;this[_0x278fd9(0x4a1)]||(this[_0x278fd9(0x4a1)]=!0x0,this[_0x278fd9(0x21b)][_0x278fd9(0x33a)][_0x278fd9(0x2d1)](_0x345abe[_0x278fd9(0x244)](this['dispose$']))[_0x278fd9(0x35b)](_0x54bfb4=>{const _0x5a1ea9=_0x278fd9;_0x54bfb4===_0x510b8a['ONLINE']?this['_toggleOnline']():this[_0x5a1ea9(0x390)]();}),this[_0x278fd9(0x21b)][_0x278fd9(0x4ca)][_0x278fd9(0x2d1)](_0x345abe['takeUntil'](this[_0x278fd9(0x272)]))[_0x278fd9(0x35b)](_0x32cd76=>{const _0x1d89af=_0x278fd9,_0x48308a=_0x32cd76['eventID'];_0x48308a===_0x106736[_0x1d89af(0x43e)][_0x1d89af(0x3e4)]&&this[_0x1d89af(0x3db)](_0x32cd76),_0x48308a===_0x106736[_0x1d89af(0x43e)]['USERS_LEAVE']&&this[_0x1d89af(0x4b7)](_0x32cd76);}),this[_0x278fd9(0x369)](this['_commandService'][_0x278fd9(0x3ab)](_0x6c88eb=>{const _0x2c27a7=_0x278fd9,_0x44d24b=_0x6c88eb[_0x2c27a7(0x358)];_0x44d24b!=null&&this['_online']&&_0x6c88eb['id']===_0xbcf55e['SetTextSelectionsOperation']['id']&&_0x44d24b[_0x2c27a7(0x59f)]===this[_0x2c27a7(0x353)]&&_0x44d24b[_0x2c27a7(0x531)]===!0x1&&this[_0x2c27a7(0x2ca)](_0x44d24b[_0x2c27a7(0x599)]);})),this[_0x278fd9(0x3fd)][_0x278fd9(0x3ff)][_0x278fd9(0x2d1)](_0x345abe[_0x278fd9(0x244)](this['dispose$']))[_0x278fd9(0x35b)](_0x282bb4=>{const _0x29d5ff=_0x278fd9;if((_0x282bb4==null?void 0x0:_0x282bb4[_0x29d5ff(0x353)])!==this[_0x29d5ff(0x353)])return;const _0x10386a={'eventID':_0x106736[_0x29d5ff(0x43e)][_0x29d5ff(0x3e4)],'data':_0x282bb4};this[_0x29d5ff(0x3db)](_0x10386a);}),this['disposeWithMe'](this['_commandService'][_0x278fd9(0x3ab)](_0x38b836=>{const _0x3992b9=_0x278fd9;if(_0x38b836[_0x3992b9(0x358)]==null)return;const _0x18348d=_0x38b836[_0x3992b9(0x358)];if(_0x38b836['id']!==_0xbcf55e[_0x3992b9(0x446)]['id']||_0x18348d[_0x3992b9(0x59f)]!==this[_0x3992b9(0x353)])return;const _0x31daca={'id':'doc.mutation.rich-text-editing','params':_0x18348d},_0x22f34c=this[_0x3992b9(0x3dd)];for(const [_0x4aa401,_0x5cdf64]of _0x22f34c){const _0x31314c={'id':_0x3992b9(0x412),'params':{'unitId':this[_0x3992b9(0x353)],'actions':null,'textRanges':_0x5cdf64[_0x3992b9(0x599)]}},_0x482626=this[_0x3992b9(0x3b1)][_0x3992b9(0x3e8)](_0x31daca,_0x31314c,!0x1);if(_0x106736[_0x3992b9(0x201)](_0x482626))throw _0x482626[_0x3992b9(0x50b)];_0x22f34c[_0x3992b9(0x420)](_0x4aa401,{..._0x5cdf64,'ranges':_0x482626[_0x3992b9(0x4af)][_0x3992b9(0x358)][_0x3992b9(0x23f)]});}queueMicrotask(()=>{const _0x4fd95a=_0x3992b9;this[_0x4fd95a(0x2c9)][_0x4fd95a(0x2b0)](_0x22f34c);});})));}[_0x3b3960(0x3db)](_0x57a90e){const _0x3cae38=_0x3b3960;var _0x12d78c,_0x511926;const {memberID:_0x655aac,selection:_0x5b63be}=_0x57a90e[_0x3cae38(0x3e0)],_0x2c7689=_0x3d4548(_0x5b63be),_0x13e575=(_0x511926=(_0x12d78c=this[_0x3cae38(0x5e7)]['getMember'](this[_0x3cae38(0x353)],_0x655aac))==null?void 0x0:_0x12d78c[_0x3cae38(0x425)])!=null?_0x511926:_0x3cae38(0x30a),_0x4fc502={'color':this[_0x3cae38(0x485)][_0x3cae38(0x46b)](_0x655aac),'name':_0x13e575,'ranges':_0x2c7689},_0x547fab=this[_0x3cae38(0x3dd)];_0x547fab[_0x3cae38(0x420)](_0x655aac,_0x4fc502),this[_0x3cae38(0x2c9)]['next'](_0x547fab);}['_onCursorDelete'](_0x42cac6){const _0x28eed6=_0x3b3960,{memberID:_0x3b6e06}=_0x42cac6['data'],_0x58b63e=this['cursorInfo'];_0x58b63e[_0x28eed6(0x431)](_0x3b6e06),this[_0x28eed6(0x2c9)][_0x28eed6(0x2b0)](_0x58b63e);}[_0x3b3960(0x258)](){const _0x10e593=_0x3b3960;var _0x43989a;if(this[_0x10e593(0x406)]=!0x0,((_0x43989a=this[_0x10e593(0x5b7)]['getFocusedUnit']())==null?void 0x0:_0x43989a[_0x10e593(0x304)]())!==this[_0x10e593(0x353)])return;const _0x24cc7b=this['_injector'][_0x10e593(0x3b9)](_0xbcf55e['TextSelectionManagerService'])[_0x10e593(0x342)](),_0x28bcda=_0x24cc7b==null?void 0x0:_0x24cc7b['map'](_0xbcf55e['serializeDocRange']);Array[_0x10e593(0x31d)](_0x28bcda)&&_0x28bcda[_0x10e593(0x306)]>0x0&&this['_updateLocalCursor'](_0x28bcda);}['_toggleOffline'](){const _0x577d03=_0x3b3960;this[_0x577d03(0x406)]=!0x1;}};_0x1d861e=_0x462ee0([_0x3f3164(0x2,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x3f3164(0x3,_0x2015b3['Inject'](_0x258d12)),_0x3f3164(0x4,_0x2015b3[_0x3b3960(0x547)](_0x25752c)),_0x3f3164(0x5,_0x2015b3[_0x3b3960(0x547)](_0x474519)),_0x3f3164(0x6,_0x106736[_0x3b3960(0x25a)]),_0x3f3164(0x7,_0x2015b3[_0x3b3960(0x37c)]),_0x3f3164(0x8,_0x2015b3['ICommandService'])],_0x1d861e);var _0x363764=Object[_0x3b3960(0x57c)],_0xf4900c=Object['getOwnPropertyDescriptor'],_0x15ade7=(_0x1f94a9,_0x2f1c22,_0x390163,_0x27574c)=>{const _0x3f8c2d=_0x3b3960;for(var _0x377ca3=_0x27574c>0x1?void 0x0:_0x27574c?_0xf4900c(_0x2f1c22,_0x390163):_0x2f1c22,_0x48df63=_0x1f94a9[_0x3f8c2d(0x306)]-0x1,_0x4b2c4a;_0x48df63>=0x0;_0x48df63--)(_0x4b2c4a=_0x1f94a9[_0x48df63])&&(_0x377ca3=(_0x27574c?_0x4b2c4a(_0x2f1c22,_0x390163,_0x377ca3):_0x4b2c4a(_0x377ca3))||_0x377ca3);return _0x27574c&&_0x377ca3&&_0x363764(_0x2f1c22,_0x390163,_0x377ca3),_0x377ca3;},_0x2478e6=(_0xff3785,_0x18ddb1)=>(_0xd7188b,_0x58d8be)=>_0x18ddb1(_0xd7188b,_0x58d8be,_0xff3785);let _0x2a0bf9=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x5334da,_0x3a2102,_0x34a7cb){const _0x4f24d5=_0x3b3960;super(),_0x385cfe(this,'_entities',new Map()),_0x385cfe(this,_0x4f24d5(0x284),new _0x345abe[(_0x4f24d5(0x421))]()),(this[_0x4f24d5(0x5b7)]=_0x5334da,this[_0x4f24d5(0x3f4)]=_0x3a2102,this[_0x4f24d5(0x35a)]=_0x34a7cb,this[_0x4f24d5(0x4a1)]());}[_0x3b3960(0x472)](){const _0x5143b9=_0x3b3960;super[_0x5143b9(0x472)](),this[_0x5143b9(0x284)][_0x5143b9(0x4d4)](),this[_0x5143b9(0x2ff)]['forEach'](_0x24617c=>_0x24617c[_0x5143b9(0x472)]());}[_0x3b3960(0x575)](_0x45524d){const _0x3a9620=_0x3b3960;return this['_entities'][_0x3a9620(0x337)](_0x45524d)?this['_entities']['get'](_0x45524d)[_0x3a9620(0x208)]:this['_entityInit$'][_0x3a9620(0x2d1)](_0x345abe[_0x3a9620(0x493)](_0x191aa1=>_0x191aa1['unitID']===_0x45524d),_0x345abe['switchMap'](_0x1ba257=>_0x1ba257[_0x3a9620(0x208)]));}['_init'](){const _0x3cae25=_0x3b3960;this[_0x3cae25(0x5b7)][_0x3cae25(0x388)](_0x2015b3[_0x3cae25(0x3a8)][_0x3cae25(0x321)])[_0x3cae25(0x2d1)](_0x345abe[_0x3cae25(0x244)](this[_0x3cae25(0x272)]))[_0x3cae25(0x35b)](async _0x29f3ab=>{const _0x30841d=_0x3cae25,_0x1bf3f5=_0x29f3ab[_0x30841d(0x304)](),_0x5f195a=await this[_0x30841d(0x4ad)](_0x1bf3f5);this['_entityInit$']['next'](_0x5f195a),this[_0x30841d(0x2ff)][_0x30841d(0x420)](_0x1bf3f5,_0x5f195a);}),this[_0x3cae25(0x5b7)]['getTypeOfUnitAdded$'](_0x2015b3[_0x3cae25(0x3a8)][_0x3cae25(0x361)])['pipe'](_0x345abe['takeUntil'](this[_0x3cae25(0x272)]))[_0x3cae25(0x2d1)](_0x345abe[_0x3cae25(0x493)](_0x2d24b4=>!_0x2d24b4['getUnitId']()[_0x3cae25(0x2d7)]('__')))[_0x3cae25(0x35b)](async _0x5a2f0b=>{const _0x3711d1=_0x3cae25,_0x352e7c=_0x5a2f0b['getUnitId'](),_0x54acbd=await this['_startDocCollabCursor'](_0x352e7c);this['_entityInit$'][_0x3711d1(0x2b0)](_0x54acbd),this[_0x3711d1(0x2ff)][_0x3711d1(0x420)](_0x352e7c,_0x54acbd);}),_0x345abe[_0x3cae25(0x4c8)](this['_univerInstanceService'][_0x3cae25(0x3d0)](_0x2015b3[_0x3cae25(0x3a8)][_0x3cae25(0x361)]),this[_0x3cae25(0x5b7)]['getTypeOfUnitDisposed$'](_0x2015b3['UniverInstanceType'][_0x3cae25(0x321)]))[_0x3cae25(0x2d1)](_0x345abe['takeUntil'](this[_0x3cae25(0x272)]))[_0x3cae25(0x35b)](_0x382165=>{const _0x48cf3d=_0x3cae25,_0x57c7fc=_0x382165[_0x48cf3d(0x304)](),_0x4c02b0=this[_0x48cf3d(0x2ff)]['get'](_0x57c7fc);_0x4c02b0&&(_0x4c02b0[_0x48cf3d(0x472)](),this[_0x48cf3d(0x2ff)]['delete'](_0x57c7fc));});}async[_0x3b3960(0x4ad)](_0x599724){const _0x530596=_0x3b3960,_0x12c35e=await this['_collabSessionService'][_0x530596(0x5db)](_0x599724),_0xcad150=this['_injector'][_0x530596(0x385)](_0x4fb84c,_0x599724,_0x12c35e);return _0xcad150['init'](),_0xcad150;}async[_0x3b3960(0x492)](_0x2bc7dc){const _0x5d1ef7=_0x3b3960,_0x504f6d=await this['_collabSessionService']['requireSession'](_0x2bc7dc),_0x2f3218=this[_0x5d1ef7(0x3f4)][_0x5d1ef7(0x385)](_0x1d861e,_0x2bc7dc,_0x504f6d);return _0x2f3218[_0x5d1ef7(0x595)](),_0x2f3218;}};_0x2a0bf9=_0x15ade7([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3['LifecycleStages'][_0x3b3960(0x206)],_0x2a0bf9),_0x2478e6(0x0,_0x2015b3['IUniverInstanceService']),_0x2478e6(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x2478e6(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x4b4)]))],_0x2a0bf9);const _0x5c9f4b=0x14,_0x4b792f=0xc8,_0x6aa0fe=0x4,_0x5a936d=0x5;function _0x3dc4d3(_0x254f51,_0x201982){const _0x16c98b=_0x3b3960;let {radius:_0x26b9cb,width:_0x5a1fec,height:_0x26384d}=_0x201982;_0x26b9cb=_0x26b9cb!=null?_0x26b9cb:0x0,_0x5a1fec=_0x5a1fec!=null?_0x5a1fec:0x1e,_0x26384d=_0x26384d!=null?_0x26384d:0x1e;let _0x555dce=0x0,_0xf16623=0x0,_0x5b7101=0x0;_0x555dce=_0xf16623=_0x5b7101=Math[_0x16c98b(0x5c3)](_0x26b9cb,_0x5a1fec/0x2,_0x26384d/0x2),_0x254f51[_0x16c98b(0x20b)](),_0x254f51[_0x16c98b(0x352)](_0x555dce,0x0),_0x254f51['lineTo'](_0x5a1fec-_0xf16623,0x0),_0x254f51[_0x16c98b(0x3f2)](_0x5a1fec-_0xf16623,_0xf16623,_0xf16623,Math['PI']*0x3/0x2,0x0,!0x1),_0x254f51['lineTo'](_0x5a1fec,_0x26384d-_0x5b7101),_0x254f51[_0x16c98b(0x3f2)](_0x5a1fec-_0x5b7101,_0x26384d-_0x5b7101,_0x5b7101,0x0,Math['PI']/0x2,!0x1),_0x254f51[_0x16c98b(0x240)](0x0,_0x26384d),_0x254f51['lineTo'](0x0,_0x555dce),_0x254f51['arc'](_0x555dce,_0x555dce,_0x555dce,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x254f51[_0x16c98b(0x544)](),_0x201982[_0x16c98b(0x56d)]&&(_0x254f51[_0x16c98b(0x373)](),_0x254f51[_0x16c98b(0x298)]=_0x201982[_0x16c98b(0x56d)],_0x201982[_0x16c98b(0x387)]==='evenodd'?_0x254f51[_0x16c98b(0x56d)]('evenodd'):_0x254f51['fill'](),_0x254f51[_0x16c98b(0x312)]());}class _0x4b8b68 extends _0x572a63[_0x3b3960(0x45b)]{constructor(_0x4622ce,_0x5cb4ed){const _0x5a6ab5=_0x3b3960;super(_0x4622ce,_0x5cb4ed),_0x385cfe(this,_0x5a6ab5(0x3d8)),_0x385cfe(this,'text'),(this[_0x5a6ab5(0x3d8)]=_0x5cb4ed==null?void 0x0:_0x5cb4ed[_0x5a6ab5(0x3d8)],this['text']=_0x5cb4ed==null?void 0x0:_0x5cb4ed[_0x5a6ab5(0x2bc)]);}static['drawWith'](_0x79cbbf,_0x3d641a){const _0x1983bd=_0x3b3960,{text:_0x229b41,color:_0x36cc42}=_0x3d641a;_0x79cbbf[_0x1983bd(0x373)](),_0x79cbbf[_0x1983bd(0x296)]=_0x1983bd(0x3af);const _0x24f40c=_0x79cbbf[_0x1983bd(0x341)](_0x229b41)[_0x1983bd(0x1f1)],_0x4ca790=Math[_0x1983bd(0x5c3)](_0x24f40c+0x2*_0x6aa0fe,_0x4b792f);_0x3dc4d3(_0x79cbbf,{'height':_0x5c9f4b,'radius':0x4,'width':_0x4ca790,'fill':_0x36cc42,'evented':!0x1}),_0x79cbbf[_0x1983bd(0x298)]='#FFF';const _0x2e800c=_0x6aa0fe,_0x6da844=_0x5c9f4b-_0x5a936d,_0x3da514=_0x4b792f-0x2*_0x6aa0fe;if(_0x24f40c>_0x3da514){let _0x3bb616='',_0x50c3e9=0x0;for(const _0x46377c of _0x229b41){const _0x404ced=_0x79cbbf['measureText'](_0x46377c)['width'];if(_0x50c3e9+_0x404ced<=_0x3da514-_0x79cbbf[_0x1983bd(0x341)](_0x1983bd(0x38d))['width'])_0x3bb616+=_0x46377c,_0x50c3e9+=_0x404ced;else{_0x3bb616+=_0x1983bd(0x38d);break;}}_0x79cbbf['fillText'](_0x3bb616,_0x2e800c,_0x6da844);}else _0x79cbbf[_0x1983bd(0x54a)](_0x229b41,_0x2e800c,_0x6da844);_0x79cbbf[_0x1983bd(0x312)]();}[_0x3b3960(0x3be)](_0x4ad81f){const _0x2ff865=_0x3b3960;_0x4b8b68[_0x2ff865(0x213)](_0x4ad81f,this);}}const _0x53019b=0x1,_0x3752f5=1.5;class _0x87739a extends _0x572a63[_0x3b3960(0x45b)]{constructor(_0x51fff3,_0x184fc9){const _0x4fd8a2=_0x3b3960;super(_0x51fff3,_0x184fc9),_0x385cfe(this,_0x4fd8a2(0x2d0)),_0x385cfe(this,_0x4fd8a2(0x58c),!0x1),_0x385cfe(this,_0x4fd8a2(0x502)),_0x385cfe(this,'_name',''),_0x385cfe(this,_0x4fd8a2(0x40c),_0x4fd8a2(0x3a0)),_0x385cfe(this,'_backgroundColor'),(_0x184fc9&&this[_0x4fd8a2(0x4d0)](_0x184fc9),this[_0x4fd8a2(0x451)][_0x4fd8a2(0x281)](()=>this[_0x4fd8a2(0x4d0)]({'hovered':!0x0})),this[_0x4fd8a2(0x3a3)][_0x4fd8a2(0x281)](()=>this[_0x4fd8a2(0x4d0)]({'hovered':!0x1})));}['setShapeProps'](_0x4b28ad){const _0x45823a=_0x3b3960;var _0x122e51,_0x495c60,_0x5c0304,_0x5ded68,_0x24d32f,_0x37fdc1;this[_0x45823a(0x2d0)]=(_0x122e51=_0x4b28ad[_0x45823a(0x3d8)])!=null?_0x122e51:this[_0x45823a(0x2d0)],this['_hovered']=(_0x495c60=_0x4b28ad[_0x45823a(0x309)])!=null?_0x495c60:this['_hovered'],this[_0x45823a(0x502)]=(_0x5c0304=_0x4b28ad['range'])!=null?_0x5c0304:this['_range'],this[_0x45823a(0x4a6)]=(_0x5ded68=_0x4b28ad['name'])!=null?_0x5ded68:this['_name'],this[_0x45823a(0x40c)]=(_0x24d32f=_0x4b28ad[_0x45823a(0x552)])!=null?_0x24d32f:this[_0x45823a(0x40c)],this[_0x45823a(0x25e)]=(_0x37fdc1=_0x4b28ad[_0x45823a(0x4f0)])!=null?_0x37fdc1:this[_0x45823a(0x25e)],this['transformByState']({'width':_0x4b28ad['width'],'height':_0x4b28ad['height']});}[_0x3b3960(0x34f)](_0x341985){const _0x48e27c=_0x3b3960,{row:_0xf736ec,column:_0x200231}=_0x341985;if(_0xf736ec>=this[_0x48e27c(0x502)][_0x48e27c(0x4c6)]&&_0xf736ec<=this['_range'][_0x48e27c(0x2db)]&&_0x200231>=this[_0x48e27c(0x502)][_0x48e27c(0x44e)]&&_0x200231<=this[_0x48e27c(0x502)]['endColumn']){this[_0x48e27c(0x4d0)]({'hovered':!0x0});return;}this[_0x48e27c(0x4d0)]({'hovered':!0x1});}[_0x3b3960(0x343)](_0x146f6d){return!0x1;}[_0x3b3960(0x3be)](_0x56bee2){const _0x114f69=_0x3b3960;_0x572a63[_0x114f69(0x58b)]['drawWith'](_0x56bee2,{'width':this[_0x114f69(0x1f1)],'height':this[_0x114f69(0x3bf)],'strokeWidth':_0x3752f5,'stroke':this[_0x114f69(0x2d0)],'evented':!0x1,'fill':this[_0x114f69(0x25e)]}),this['_hovered']&&(_0x56bee2[_0x114f69(0x373)](),_0x56bee2['transform'](0x1,0x0,0x0,0x1,this[_0x114f69(0x1f1)],this['_labelPosition']===_0x114f69(0x35d)?0x0:-_0x5c9f4b),_0x4b8b68['drawWith'](_0x56bee2,{'text':this[_0x114f69(0x4a6)],'color':this[_0x114f69(0x2d0)]}),_0x56bee2[_0x114f69(0x312)]());}}var _0xf000a=Object[_0x3b3960(0x57c)],_0x3a68d3=Object[_0x3b3960(0x2c2)],_0x30e1d9=(_0x3adab1,_0x19727e,_0x4a40aa,_0x329780)=>{const _0x1306fc=_0x3b3960;for(var _0x1174fa=_0x329780>0x1?void 0x0:_0x329780?_0x3a68d3(_0x19727e,_0x4a40aa):_0x19727e,_0x48d10a=_0x3adab1[_0x1306fc(0x306)]-0x1,_0x3ef8c0;_0x48d10a>=0x0;_0x48d10a--)(_0x3ef8c0=_0x3adab1[_0x48d10a])&&(_0x1174fa=(_0x329780?_0x3ef8c0(_0x19727e,_0x4a40aa,_0x1174fa):_0x3ef8c0(_0x1174fa))||_0x1174fa);return _0x329780&&_0x1174fa&&_0xf000a(_0x19727e,_0x4a40aa,_0x1174fa),_0x1174fa;},_0x111fb2=(_0x4b05a4,_0x8a5968)=>(_0x31fa48,_0x42fb79)=>_0x8a5968(_0x31fa48,_0x42fb79,_0x4b05a4);const _0x337777=0x1389;let _0x1928ed=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x3ba791,_0x31d1bb,_0x54c19b,_0x538fd4){const _0x5932a4=_0x3b3960;super(),_0x385cfe(this,_0x5932a4(0x302),new Set()),_0x385cfe(this,_0x5932a4(0x47c),null),(this[_0x5932a4(0x37f)]=_0x3ba791,this['_sheetSkeletonManagerService']=_0x31d1bb,this[_0x5932a4(0x266)]=_0x54c19b,this[_0x5932a4(0x549)]=_0x538fd4,this[_0x5932a4(0x4a1)]());}[_0x3b3960(0x4a1)](){const _0x3de5bb=_0x3b3960;this[_0x3de5bb(0x5a1)][_0x3de5bb(0x54d)][_0x3de5bb(0x2d1)](_0x2cc613[_0x3de5bb(0x244)](this[_0x3de5bb(0x272)]),_0x2cc613[_0x3de5bb(0x22f)](_0x2c9309=>{const _0x2f03ca=_0x3de5bb;if(_0x2c9309){const _0x33ac7e=_0x2c9309[_0x2f03ca(0x5cf)];return _0x345abe[_0x2f03ca(0x4a3)](this['_collabCursorController']['getCollabCursors$'](this[_0x2f03ca(0x37f)][_0x2f03ca(0x59f)]),this['_themeService'][_0x2f03ca(0x378)])[_0x2f03ca(0x2d1)](_0x2cc613[_0x2f03ca(0x522)](([_0x583d37,_0x385bde])=>{const _0x5b1f8f=_0x2f03ca,_0x7e95ff=new Map();return _0x583d37[_0x5b1f8f(0x4d1)]((_0x111c3f,_0x5ea19a)=>{const _0x4b7c73=_0x5b1f8f;if(_0x111c3f['sheetID']===_0x33ac7e){const _0xb48e8c={..._0x111c3f};_0xb48e8c[_0x4b7c73(0x3d8)]=_0x385bde[_0x111c3f['color']],_0x7e95ff[_0x4b7c73(0x420)](_0x5ea19a,_0xb48e8c);}}),{'skeleton':_0x2c9309,'cursors':_0x7e95ff};}));}return _0x345abe['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x44847a,cursors:_0x125307})=>{const _0x3670f1=_0x3de5bb;this['_removeCollabCursors'](),_0x44847a&&this[_0x3670f1(0x368)](_0x44847a,_0x125307);}),this['_sheetSkeletonManagerService'][_0x3de5bb(0x54d)][_0x3de5bb(0x35b)](_0x3b78c1=>{const _0x1fc1d1=_0x3de5bb;if(_0x3b78c1==null)return;const {skeleton:_0x4dd2dd}=_0x3b78c1,{scene:_0x3b595b}=this['_context'];_0x3b595b[_0x1fc1d1(0x484)]['subscribeEvent'](_0x533449(_0x350827=>{const _0x1af75e=_0x1fc1d1;var _0x557412,_0x21ed9c;const {offsetX:_0x54224c,offsetY:_0x13697b}=_0x350827,{x:_0x23fb87,y:_0x23abb8}=_0x3b595b[_0x1af75e(0x5e6)](_0x572a63[_0x1af75e(0x50e)][_0x1af75e(0x3c2)]([_0x54224c,_0x13697b])),{scaleX:_0x544fe6,scaleY:_0x1335e5}=_0x3b595b[_0x1af75e(0x4e2)](),_0x23dd6d=_0x3b595b[_0x1af75e(0x22d)](_0x467ed8[_0x1af75e(0x444)][_0x1af75e(0x45d)]),_0x34cb22=_0x3b595b[_0x1af75e(0x5f0)](_0x572a63[_0x1af75e(0x50e)][_0x1af75e(0x3c2)]([_0x23fb87,_0x23abb8]),_0x23dd6d),_0x41bbae=_0x4dd2dd[_0x1af75e(0x315)](_0x54224c,_0x13697b,_0x544fe6,_0x1335e5,_0x34cb22);((_0x557412=this[_0x1af75e(0x47c)])==null?void 0x0:_0x557412[_0x1af75e(0x5c6)])===_0x41bbae[_0x1af75e(0x5c6)]&&((_0x21ed9c=this[_0x1af75e(0x47c)])==null?void 0x0:_0x21ed9c[_0x1af75e(0x2b9)])===_0x41bbae[_0x1af75e(0x2b9)]||this[_0x1af75e(0x302)][_0x1af75e(0x4d1)](_0x1acd47=>{const _0x2a3ae7=_0x1af75e;_0x1acd47[_0x2a3ae7(0x34f)](_0x41bbae);});},0x64));});}[_0x3b3960(0x368)](_0x49d1ac,_0x3c087a){const _0xf0738=_0x3b3960;var _0x4c9c52;const _0x3c9ef6=(_0x4c9c52=this[_0xf0738(0x5a1)][_0xf0738(0x48c)]())==null?void 0x0:_0x4c9c52['skeleton'];if(!_0x3c9ef6)return;const _0x117cc6=this[_0xf0738(0x56c)]();if(!_0x117cc6)return;this['_cursors'][_0xf0738(0x4d1)](_0x2dbc61=>{const _0x4071df=_0xf0738;_0x2dbc61[_0x4071df(0x460)]();});const {scene:_0x19396c}=_0x117cc6,_0x2d06a5=_0x4d0c83(Array['from'](_0x3c087a['values']()))[_0xf0738(0x522)](_0xaa150d=>{const _0x32ddd3=_0xf0738,{color:_0x1f824f,range:_0x3f48c7,name:_0x3a0a2b,selection:_0x396cc3,sheetID:_0x285bc0}=_0xaa150d,{startColumn:_0x299f04,startRow:_0x42d749,endColumn:_0x17a74c,endRow:_0x543523}=_0x3f48c7,_0x29e056=_0x467ed8[_0x32ddd3(0x32d)](_0x42d749,_0x299f04,_0x19396c,_0x3c9ef6),_0x1fb14b=_0x467ed8[_0x32ddd3(0x32d)](_0x543523,_0x17a74c,_0x19396c,_0x3c9ef6),{columnHeaderHeightAndMarginTop:_0x4777e4}=_0x3c9ef6,{startX:_0x4bef8b,startY:_0x3d3695}=_0x29e056,{endX:_0x115bfd,endY:_0x451d9e}=_0x1fb14b,_0x5de8ef=_0x115bfd-_0x4bef8b,_0x2b94b6=_0x451d9e-_0x3d3695,_0x3721a6={'labelPosition':_0x3d3695-_0x4777e4>=_0x5c9f4b?_0x32ddd3(0x3a0):_0x32ddd3(0x35d),'sheetID':_0x285bc0,'range':_0x3f48c7,'color':_0x1f824f,'name':_0x3a0a2b,'selection':_0x396cc3,'left':_0x4bef8b,'top':_0x3d3695,'width':_0x5de8ef,'height':_0x2b94b6,'evented':!0x1,'zIndex':_0x337777};return new _0x87739a(_0x3a0a2b,_0x3721a6);});_0x19396c['addObjects'](_0x2d06a5,_0x53019b),this[_0xf0738(0x302)]=new Set(_0x2d06a5);}[_0x3b3960(0x3b7)](){const _0x219e51=_0x3b3960;var _0x4df546;(_0x4df546=this[_0x219e51(0x302)])==null||_0x4df546[_0x219e51(0x4d1)](_0x2ef93a=>_0x2ef93a[_0x219e51(0x472)]());}['_getSheetObject'](){const _0x56bde6=_0x3b3960;return _0x467ed8[_0x56bde6(0x5a4)](this[_0x56bde6(0x37f)][_0x56bde6(0x4b2)],this[_0x56bde6(0x37f)]);}};_0x1928ed=_0x30e1d9([_0x111fb2(0x1,_0x2015b3[_0x3b3960(0x547)](_0x467ed8[_0x3b3960(0x36a)])),_0x111fb2(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2a0bf9)),_0x111fb2(0x3,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x2e1)]))],_0x1928ed);function _0x4d0c83(_0x40d01e){const _0x2e190a=_0x3b3960,_0x5c7e8f=new Map();return _0x40d01e[_0x2e190a(0x4d1)](_0xe75a93=>{const _0x22c562=_0x2e190a;if(_0x5c7e8f['has'](_0xe75a93['selection'])){const _0x34d303=_0x5c7e8f[_0x22c562(0x3b9)](_0xe75a93[_0x22c562(0x290)]);_0x34d303['name']+=',\x20'+_0xe75a93[_0x22c562(0x425)];}else _0x5c7e8f['set'](_0xe75a93[_0x22c562(0x290)],_0xe75a93);}),Array[_0x2e190a(0x4f1)](_0x5c7e8f[_0x2e190a(0x58f)]());}var _0x2d705d=function(){const _0x19c476=_0x3b3960;return _0x2d705d=Object[_0x19c476(0x4a0)]||function(_0x232eca){const _0x1e3f7a=_0x19c476;for(var _0x5bd294,_0x13c097=0x1,_0x2f9dad=arguments[_0x1e3f7a(0x306)];_0x13c097<_0x2f9dad;_0x13c097++){_0x5bd294=arguments[_0x13c097];for(var _0x2770c1 in _0x5bd294)Object[_0x1e3f7a(0x41c)][_0x1e3f7a(0x48d)]['call'](_0x5bd294,_0x2770c1)&&(_0x232eca[_0x2770c1]=_0x5bd294[_0x2770c1]);}return _0x232eca;},_0x2d705d[_0x19c476(0x36b)](this,arguments);},_0x3ce73d=function(_0x3ffde3,_0x1cd802){const _0x1901cd=_0x3b3960;var _0x36f4e8={};for(var _0x4e4b00 in _0x3ffde3)Object[_0x1901cd(0x41c)]['hasOwnProperty'][_0x1901cd(0x415)](_0x3ffde3,_0x4e4b00)&&_0x1cd802[_0x1901cd(0x4c7)](_0x4e4b00)<0x0&&(_0x36f4e8[_0x4e4b00]=_0x3ffde3[_0x4e4b00]);if(_0x3ffde3!=null&&typeof Object[_0x1901cd(0x497)]==_0x1901cd(0x2fd)){for(var _0x56d6f7=0x0,_0x4e4b00=Object[_0x1901cd(0x497)](_0x3ffde3);_0x56d6f7<_0x4e4b00[_0x1901cd(0x306)];_0x56d6f7++)_0x1cd802[_0x1901cd(0x4c7)](_0x4e4b00[_0x56d6f7])<0x0&&Object[_0x1901cd(0x41c)][_0x1901cd(0x3b8)][_0x1901cd(0x415)](_0x3ffde3,_0x4e4b00[_0x56d6f7])&&(_0x36f4e8[_0x4e4b00[_0x56d6f7]]=_0x3ffde3[_0x4e4b00[_0x56d6f7]]);}return _0x36f4e8;},_0x195f69=_0x100763['forwardRef'](function(_0x24b347,_0x2ccd0c){const _0x4c196c=_0x3b3960;var _0x3b5670=_0x24b347[_0x4c196c(0x553)],_0x4c8c80=_0x24b347['id'],_0x5e342c=_0x24b347[_0x4c196c(0x4e8)],_0x3ac224=_0x24b347[_0x4c196c(0x251)],_0x10ca5a=_0x3ce73d(_0x24b347,[_0x4c196c(0x553),'id',_0x4c196c(0x4e8),_0x4c196c(0x251)]),_0x1d7acd=_0x4c196c(0x37e)[_0x4c196c(0x3d2)](_0x4c8c80,'\x20')[_0x4c196c(0x3d2)](_0x5e342c||'')[_0x4c196c(0x579)](),_0x1ec277=_0x100763[_0x4c196c(0x28f)]('_'[_0x4c196c(0x3d2)](_0x23077b()));return _0x1449f3(_0x3b5670,''[_0x4c196c(0x3d2)](_0x4c8c80),{'defIds':_0x3b5670[_0x4c196c(0x5c2)],'idSuffix':_0x1ec277[_0x4c196c(0x22a)]},_0x2d705d({'ref':_0x2ccd0c,'className':_0x1d7acd},_0x10ca5a),_0x3ac224);});function _0x1449f3(_0x42cb03,_0x347bd1,_0x3dad65,_0x28b567,_0x42d2dc){const _0x3a431b=_0x3b3960;return _0x100763[_0x3a431b(0x28e)](_0x42cb03[_0x3a431b(0x2fc)],_0x2d705d(_0x2d705d({'key':_0x347bd1},_0x4176d2(_0x42cb03,_0x3dad65,_0x42d2dc)),_0x28b567),(_0x2c223b(_0x42cb03,_0x3dad65)[_0x3a431b(0x3c0)]||[])[_0x3a431b(0x522)](function(_0x19c496,_0x34e3bd){const _0x9aec5f=_0x3a431b;return _0x1449f3(_0x19c496,''[_0x9aec5f(0x3d2)](_0x347bd1,'-')[_0x9aec5f(0x3d2)](_0x42cb03[_0x9aec5f(0x2fc)],'-')[_0x9aec5f(0x3d2)](_0x34e3bd),_0x3dad65,void 0x0,_0x42d2dc);}));}function _0x4176d2(_0x42db2d,_0x11faee,_0xe4defa){const _0x516e3c=_0x3b3960;var _0x7c00ec=_0x2d705d({},_0x42db2d['attrs']);_0xe4defa!=null&&_0xe4defa['colorChannel1']&&_0x7c00ec[_0x516e3c(0x56d)]===_0x516e3c(0x5f3)&&(_0x7c00ec[_0x516e3c(0x56d)]=_0xe4defa[_0x516e3c(0x5f3)]);var _0x385546=_0x11faee[_0x516e3c(0x5c2)];return!_0x385546||_0x385546[_0x516e3c(0x306)]===0x0||(_0x42db2d[_0x516e3c(0x2fc)]===_0x516e3c(0x307)&&_0x7c00ec['xlink:href']&&(_0x7c00ec['xlink:href']=_0x7c00ec[_0x516e3c(0x456)]+_0x11faee[_0x516e3c(0x294)]),Object[_0x516e3c(0x380)](_0x7c00ec)[_0x516e3c(0x4d1)](function(_0x470e4b){const _0xc2aa44=_0x516e3c;var _0x3c1b32=_0x470e4b[0x0],_0x315a2b=_0x470e4b[0x1];typeof _0x315a2b=='string'&&(_0x7c00ec[_0x3c1b32]=_0x315a2b[_0xc2aa44(0x44b)](/url\(#(.*)\)/,_0xc2aa44(0x22b)['concat'](_0x11faee['idSuffix'],')')));})),_0x7c00ec;}function _0x2c223b(_0x5bd2f2,_0xf202c7){const _0x5db701=_0x3b3960;var _0x43628f,_0xbe44e1=_0xf202c7[_0x5db701(0x5c2)];return!_0xbe44e1||_0xbe44e1[_0x5db701(0x306)]===0x0?_0x5bd2f2:_0x5bd2f2[_0x5db701(0x2fc)]===_0x5db701(0x300)&&(!((_0x43628f=_0x5bd2f2['children'])===null||_0x43628f===void 0x0)&&_0x43628f['length'])?_0x2d705d(_0x2d705d({},_0x5bd2f2),{'children':_0x5bd2f2[_0x5db701(0x3c0)]['map'](function(_0x1a1f44){const _0x36da79=_0x5db701;return typeof _0x1a1f44[_0x36da79(0x1fc)]['id']=='string'&&_0xbe44e1&&_0xbe44e1['indexOf'](_0x1a1f44[_0x36da79(0x1fc)]['id'])>-0x1?_0x2d705d(_0x2d705d({},_0x1a1f44),{'attrs':_0x2d705d(_0x2d705d({},_0x1a1f44[_0x36da79(0x1fc)]),{'id':_0x1a1f44[_0x36da79(0x1fc)]['id']+_0xf202c7[_0x36da79(0x294)]})}):_0x1a1f44;})}):_0x5bd2f2;}function _0x23077b(){const _0x4861f3=_0x3b3960;return Math['random']()[_0x4861f3(0x396)](0x24)['substring'](0x2,0x8);}_0x195f69[_0x3b3960(0x4fd)]=_0x3b3960(0x5e9);var _0x2eff4c={'tag':_0x3b3960(0x4be),'attrs':{'fill':_0x3b3960(0x4b8),'viewBox':_0x3b3960(0x236),'width':_0x3b3960(0x222),'height':_0x3b3960(0x222)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b3960(0x3ae)},'children':[{'tag':'path','attrs':{'stroke':_0x3b3960(0x51b),'d':_0x3b3960(0x455),'strokeLinecap':_0x3b3960(0x221),'strokeLinejoin':_0x3b3960(0x221),'strokeWidth':1.2}}]},{'tag':_0x3b3960(0x300),'attrs':{},'children':[{'tag':_0x3b3960(0x523),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3b3960(0x5b4),'attrs':{'fill':_0x3b3960(0x374),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3b3960(0x42e)]},_0x258e90=_0x100763[_0x3b3960(0x510)](function(_0x14538d,_0x1cbd5f){const _0x8e13bb=_0x3b3960;return _0x100763[_0x8e13bb(0x28e)](_0x195f69,Object[_0x8e13bb(0x4a0)]({},_0x14538d,{'id':'off-line-single','ref':_0x1cbd5f,'icon':_0x2eff4c}));});_0x258e90['displayName']=_0x3b3960(0x5d1);var _0x2ee4b3={'tag':_0x3b3960(0x4be),'attrs':{'fill':_0x3b3960(0x4b8),'viewBox':_0x3b3960(0x440),'width':_0x3b3960(0x222),'height':_0x3b3960(0x222)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b3960(0x2c6)},'children':[{'tag':'path','attrs':{'stroke':_0x3b3960(0x51b),'d':_0x3b3960(0x443),'strokeLinecap':'round','strokeLinejoin':_0x3b3960(0x221),'strokeWidth':1.2}}]},{'tag':_0x3b3960(0x300),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x3b3960(0x374),'d':_0x3b3960(0x31a),'transform':_0x3b3960(0x3d7)}}]}]}],'defIds':[_0x3b3960(0x5c7)]},_0xc787f=_0x100763[_0x3b3960(0x510)](function(_0x275788,_0x49c863){const _0x259352=_0x3b3960;return _0x100763[_0x259352(0x28e)](_0x195f69,Object['assign']({},_0x275788,{'id':_0x259352(0x504),'ref':_0x49c863,'icon':_0x2ee4b3}));});_0xc787f[_0x3b3960(0x4fd)]=_0x3b3960(0x555);const _0x217031={'onlineStatusIcon':_0x3b3960(0x235),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x3b3960(0x2bb),'online':_0x3b3960(0x215),'offline':_0x3b3960(0x2ef)};function _0x1ad69b(_0x41c212){const _0x446845=_0x3b3960;switch(_0x41c212){case _0xe45813[_0x446845(0x461)]:return _0x446845(0x211);case _0xe45813[_0x446845(0x505)]:return _0x446845(0x299);case _0xe45813[_0x446845(0x53e)]:return'collabStatus.fetchMiss';case _0xe45813[_0x446845(0x2f0)]:return _0x446845(0x5c9);case _0xe45813['PENDING']:case _0xe45813[_0x446845(0x47e)]:case _0xe45813[_0x446845(0x282)]:return'collabStatus.syncing';case _0xe45813[_0x446845(0x4bc)]:return _0x446845(0x2ec);}}function _0x1c24e3(_0x228cbd){const _0x249605=_0x3b3960,{status$:_0x2d9288}=_0x228cbd,_0x16c4fa=_0x44b766[_0x249605(0x44f)](_0x2d9288,_0xe45813[_0x249605(0x2f0)]),_0xa6a082=_0x2015b3['useDependency'](_0x2015b3[_0x249605(0x20a)]),_0x33a91c=_0x16c4fa!==_0xe45813[_0x249605(0x461)],_0x5168d3=_0xa6a082['t'](_0x1ad69b(_0x16c4fa)),_0x53449a=_0x55b2c5(_0x217031[_0x249605(0x3f3)],{[_0x217031[_0x249605(0x330)]]:_0x33a91c,[_0x217031[_0x249605(0x5d2)]]:!_0x33a91c}),_0x398e2e=_0x33a91c?_0x100763[_0x249605(0x28e)](_0xc787f,null):_0x100763[_0x249605(0x28e)](_0x258e90,null);return _0x100763['createElement'](_0x249605(0x5e1),{'className':_0x53449a},_0x100763[_0x249605(0x28e)](_0x249605(0x5e1),{'className':_0x217031[_0x249605(0x545)]},_0x398e2e),_0x100763[_0x249605(0x28e)](_0x249605(0x5e1),{'className':_0x217031[_0x249605(0x4ec)]},_0x5168d3));}var _0x113116=Object[_0x3b3960(0x57c)],_0x2bc15a=Object[_0x3b3960(0x2c2)],_0x236220=(_0x282d24,_0x16847b,_0x1d1541,_0xda4424)=>{const _0x28cfc0=_0x3b3960;for(var _0x50a0bd=_0xda4424>0x1?void 0x0:_0xda4424?_0x2bc15a(_0x16847b,_0x1d1541):_0x16847b,_0x330701=_0x282d24[_0x28cfc0(0x306)]-0x1,_0x3b254c;_0x330701>=0x0;_0x330701--)(_0x3b254c=_0x282d24[_0x330701])&&(_0x50a0bd=(_0xda4424?_0x3b254c(_0x16847b,_0x1d1541,_0x50a0bd):_0x3b254c(_0x50a0bd))||_0x50a0bd);return _0xda4424&&_0x50a0bd&&_0x113116(_0x16847b,_0x1d1541,_0x50a0bd),_0x50a0bd;},_0x1e57d9=(_0x11eebf,_0x2f7f43)=>(_0x18dc2b,_0x46d599)=>_0x2f7f43(_0x18dc2b,_0x46d599,_0x11eebf);_0x2c3354[_0x3b3960(0x217)]=class extends _0x2015b3['Disposable']{constructor(_0x18acdb,_0x5a055e,_0x33d56d,_0x2d1aa4){const _0x34d341=_0x3b3960;super(),_0x385cfe(this,'_status$',new _0x345abe[(_0x34d341(0x2f9))](_0xe45813['NOT_COLLAB'])),(this['_univerInstanceService']=_0x18acdb,this[_0x34d341(0x355)]=_0x5a055e,this['_injector']=_0x33d56d,this[_0x34d341(0x494)]=_0x2d1aa4,this[_0x34d341(0x4c2)](),this[_0x34d341(0x548)]());}[_0x3b3960(0x4c2)](){const _0x47b71f=_0x3b3960;this[_0x47b71f(0x369)](this[_0x47b71f(0x355)][_0x47b71f(0x233)](_0x44b766[_0x47b71f(0x27e)][_0x47b71f(0x289)],()=>_0x2015b3[_0x47b71f(0x203)](_0x19accd({'status$':this[_0x47b71f(0x4e9)][_0x47b71f(0x348)]()}),this[_0x47b71f(0x3f4)])));}[_0x3b3960(0x548)](){const _0x45b50f=_0x3b3960;this[_0x45b50f(0x369)](_0x2015b3[_0x45b50f(0x31c)](this[_0x45b50f(0x5b7)][_0x45b50f(0x292)][_0x45b50f(0x2d1)](_0x345abe[_0x45b50f(0x22f)](()=>{const _0x2dfd70=_0x45b50f,_0x26870f=this[_0x2dfd70(0x5b7)]['getFocusedUnit']();return _0x26870f?this[_0x2dfd70(0x494)][_0x2dfd70(0x21c)](_0x26870f[_0x2dfd70(0x304)]()):_0x345abe['of'](null);}),_0x345abe['switchMap'](_0x25242c=>_0x25242c?_0x25242c[_0x45b50f(0x2f5)]:_0x345abe['of'](_0xe45813[_0x45b50f(0x2f0)])))[_0x45b50f(0x35b)](_0x26d112=>{const _0x514efd=_0x45b50f;this[_0x514efd(0x4e9)][_0x514efd(0x2b0)](_0x26d112);})));}},_0x2c3354['DesktopCollaborationStatusDisplayController']=_0x236220([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)][_0x3b3960(0x206)],_0x2c3354[_0x3b3960(0x217)]),_0x1e57d9(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0x1e57d9(0x1,_0x44b766[_0x3b3960(0x30d)]),_0x1e57d9(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x1e57d9(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3e2)]))],_0x2c3354['DesktopCollaborationStatusDisplayController']);function _0x19accd(_0x539f8d){const {status$:_0x17a38c}=_0x539f8d;return function(){const _0x1fcfa7=_0x41fb;return _0x100763[_0x1fcfa7(0x28e)](_0x1c24e3,{'status$':_0x17a38c});};}const _0xaa3b19=_0x2015b3['createIdentifier'](_0x3b3960(0x588));var _0x1ae63f=Object[_0x3b3960(0x57c)],_0x1b80a5=Object['getOwnPropertyDescriptor'],_0x1b556a=(_0x111bb8,_0xc28a79,_0xcac6be,_0x22f2b5)=>{const _0x1471f5=_0x3b3960;for(var _0x1d8bdf=_0x22f2b5>0x1?void 0x0:_0x22f2b5?_0x1b80a5(_0xc28a79,_0xcac6be):_0xc28a79,_0x642bd5=_0x111bb8[_0x1471f5(0x306)]-0x1,_0x5a2bc4;_0x642bd5>=0x0;_0x642bd5--)(_0x5a2bc4=_0x111bb8[_0x642bd5])&&(_0x1d8bdf=(_0x22f2b5?_0x5a2bc4(_0xc28a79,_0xcac6be,_0x1d8bdf):_0x5a2bc4(_0x1d8bdf))||_0x1d8bdf);return _0x22f2b5&&_0x1d8bdf&&_0x1ae63f(_0xc28a79,_0xcac6be,_0x1d8bdf),_0x1d8bdf;},_0xa77b75=(_0x544e64,_0x586b75)=>(_0x107cac,_0x3cc651)=>_0x586b75(_0x107cac,_0x3cc651,_0x544e64);_0x2c3354[_0x3b3960(0x4bb)]=class extends _0x2015b3['RxDisposable']{constructor(_0x689a41,_0x9048af,_0x3cd0dd,_0x3fe512,_0x490cc5,_0x4ebbc3){const _0x481543=_0x3b3960;super(),this['_urlService']=_0x689a41,this[_0x481543(0x501)]=_0x9048af,this[_0x481543(0x286)]=_0x3cd0dd,this[_0x481543(0x24b)]=_0x3fe512,this[_0x481543(0x528)]=_0x490cc5,_0x4ebbc3?_0x4ebbc3==null||_0x4ebbc3['whenReady']()[_0x481543(0x28a)](()=>this[_0x481543(0x4a1)]()):(this['_logService']['debug'](_0x481543(0x232),_0x481543(0x57b)),this['_init']());}async[_0x3b3960(0x4a1)](){const _0x234abb=_0x3b3960,_0x43f082=this[_0x234abb(0x253)]['getParam'](_0x234abb(0x4b2)),_0x51280f=this['_urlService'][_0x234abb(0x20d)]('type');if(!_0x43f082||!_0x51280f){this[_0x234abb(0x501)][_0x234abb(0x210)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x51280f)){case _0x32a37d[_0x234abb(0x321)]:{const _0x2822ea=await this[_0x234abb(0x530)](_0x43f082);this[_0x234abb(0x5a3)](_0x2822ea);break;}case _0x32a37d[_0x234abb(0x361)]:{await this[_0x234abb(0x433)](_0x43f082);break;}default:{this['_logService'][_0x234abb(0x50b)](_0x234abb(0x232),_0x234abb(0x265));break;}}}async[_0x3b3960(0x5a3)](_0x1e9819){const _0x57f404=_0x3b3960;await this[_0x57f404(0x416)](_0x1e9819),_0x1e9819[_0x57f404(0x243)][_0x57f404(0x2d1)](_0x345abe[_0x57f404(0x244)](this[_0x57f404(0x272)]))['subscribe'](_0x3d2d3b=>{const _0x503de0=_0x57f404;_0x3d2d3b&&this[_0x503de0(0x5b8)](_0x3d2d3b);}),this[_0x57f404(0x253)][_0x57f404(0x5f2)][_0x57f404(0x2d1)](_0x345abe[_0x57f404(0x244)](this[_0x57f404(0x272)]))[_0x57f404(0x35b)](()=>this[_0x57f404(0x416)](_0x1e9819));}[_0x3b3960(0x5b8)](_0x163a01,_0x362c8e=!0x1){const _0x1c8ceb=_0x3b3960,_0x5e0f72=this[_0x1c8ceb(0x253)][_0x1c8ceb(0x20d)]('subunit');_0x163a01[_0x1c8ceb(0x216)]()!==_0x5e0f72&&this[_0x1c8ceb(0x253)][_0x1c8ceb(0x35e)](_0x1c8ceb(0x5f8),_0x163a01[_0x1c8ceb(0x216)](),_0x362c8e);}async[_0x3b3960(0x416)](_0x19fc37){const _0x224d15=_0x3b3960;var _0x4bd0d5;const _0x5ce432=this['_urlService']['getParam']('subunit');if(!_0x5ce432||!_0x19fc37[_0x224d15(0x325)](_0x5ce432)){const _0x351dc4=_0x19fc37[_0x224d15(0x34d)]()[0x0],_0x34aceb=_0x19fc37[_0x224d15(0x325)](_0x351dc4);if(!_0x34aceb)return;this['_updateURLWithCurrentState'](_0x34aceb,!0x0),await this[_0x224d15(0x286)][_0x224d15(0x44d)](_0x3d1b6a[_0x224d15(0x442)]['id'],{'unitId':_0x19fc37['getUnitId'](),'subUnitId':_0x351dc4});return;}((_0x4bd0d5=_0x19fc37[_0x224d15(0x202)]())==null?void 0x0:_0x4bd0d5[_0x224d15(0x216)]())!==_0x5ce432&&await this['_commandService'][_0x224d15(0x44d)](_0x3d1b6a[_0x224d15(0x442)]['id'],{'unitId':_0x19fc37[_0x224d15(0x304)](),'subUnitId':_0x5ce432});}async[_0x3b3960(0x530)](_0x1684ac){const _0x59bb6d=_0x3b3960;let _0x36febb=0x0;const _0xc931c2=await this[_0x59bb6d(0x24b)][_0x59bb6d(0x56a)](_0x1684ac);return _0xc931c2&&(_0xc931c2[_0x59bb6d(0x1f2)]||_0xc931c2[_0x59bb6d(0x2e7)][_0x59bb6d(0x306)]!==0x0)&&(_0x36febb=_0xc931c2[_0x59bb6d(0x48a)]),_0x36febb===0x0&&this[_0x59bb6d(0x501)][_0x59bb6d(0x210)](_0x59bb6d(0x232),_0x59bb6d(0x598)),this[_0x59bb6d(0x528)][_0x59bb6d(0x1f9)](_0x1684ac,_0x36febb);}async[_0x3b3960(0x433)](_0x10fbcf){const _0x3c8c00=_0x3b3960;let _0x564d0c=0x0;const _0x3af582=await this['_localCacheService']['loadOfflineData'](_0x10fbcf);return _0x3af582&&(_0x3af582[_0x3c8c00(0x1f2)]||_0x3af582[_0x3c8c00(0x2e7)][_0x3c8c00(0x306)]!==0x0)&&(_0x564d0c=_0x3af582[_0x3c8c00(0x48a)]),_0x564d0c===0x0&&this[_0x3c8c00(0x501)][_0x3c8c00(0x210)](_0x3c8c00(0x232),_0x3c8c00(0x598)),this[_0x3c8c00(0x528)][_0x3c8c00(0x4ac)](_0x10fbcf,_0x564d0c);}},_0x2c3354['DataLoaderController']=_0x1b556a([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)]['Starting'],_0x2c3354[_0x3b3960(0x4bb)]),_0xa77b75(0x0,_0xaa3b19),_0xa77b75(0x1,_0x2015b3[_0x3b3960(0x1f3)]),_0xa77b75(0x2,_0x2015b3[_0x3b3960(0x259)]),_0xa77b75(0x3,_0x2015b3['Inject'](_0x2c3354[_0x3b3960(0x3dc)])),_0xa77b75(0x4,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x5ac)])),_0xa77b75(0x5,_0x2015b3['Optional'](_0x43c42f[_0x3b3960(0x2fb)]))],_0x2c3354[_0x3b3960(0x4bb)]);var _0x23c483=Object[_0x3b3960(0x57c)],_0x46f96b=Object[_0x3b3960(0x2c2)],_0x36b7f9=(_0x5a6ecd,_0x2ca6db,_0x1480db,_0x5d172b)=>{const _0x9ac003=_0x3b3960;for(var _0x18a845=_0x5d172b>0x1?void 0x0:_0x5d172b?_0x46f96b(_0x2ca6db,_0x1480db):_0x2ca6db,_0x397fe4=_0x5a6ecd[_0x9ac003(0x306)]-0x1,_0x325ed0;_0x397fe4>=0x0;_0x397fe4--)(_0x325ed0=_0x5a6ecd[_0x397fe4])&&(_0x18a845=(_0x5d172b?_0x325ed0(_0x2ca6db,_0x1480db,_0x18a845):_0x325ed0(_0x18a845))||_0x18a845);return _0x5d172b&&_0x18a845&&_0x23c483(_0x2ca6db,_0x1480db,_0x18a845),_0x18a845;},_0x2a846c=(_0x3f920c,_0x194679)=>(_0x3042c4,_0x3c30e1)=>_0x194679(_0x3042c4,_0x3c30e1,_0x3f920c);const _0x2a4d7b='DEFAULT_FILE_NAME',_0x7f12f0=_0x3b3960(0x389);let _0x25c571=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x18b053,_0x279a90){const _0x1b7387=_0x3b3960;super(),this[_0x1b7387(0x5b7)]=_0x18b053,this[_0x1b7387(0x46c)]=_0x279a90,this[_0x1b7387(0x4a1)]();}['_init'](){const _0xdf72a9=_0x3b3960;this[_0xdf72a9(0x369)](_0x2015b3[_0xdf72a9(0x31c)](this[_0xdf72a9(0x5b7)][_0xdf72a9(0x292)]['subscribe'](()=>{const _0x43a392=_0xdf72a9;var _0x509c96;const _0x401099=this[_0x43a392(0x5b7)][_0x43a392(0x209)]();let _0x304649=(_0x509c96=this[_0x43a392(0x46c)][_0x43a392(0x584)](_0x2a4d7b))!=null?_0x509c96:_0x7f12f0;_0x401099 instanceof _0x2015b3[_0x43a392(0x3cf)]&&(_0x304649=_0x401099[_0x43a392(0x425)]),document[_0x43a392(0x49c)]=_0x304649;})));}};_0x25c571=_0x36b7f9([_0x2015b3['OnLifecycle'](_0x2015b3['LifecycleStages'][_0x3b3960(0x4f5)],_0x25c571),_0x2a846c(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0x2a846c(0x1,_0x2015b3['IConfigService'])],_0x25c571);var _0xae2fc6=Object[_0x3b3960(0x57c)],_0x492edf=Object['getOwnPropertyDescriptor'],_0x546f93=(_0x1c2ac4,_0x3c1f0d,_0x1e5d75,_0x55ddd1)=>{const _0x3ec883=_0x3b3960;for(var _0x26563c=_0x55ddd1>0x1?void 0x0:_0x55ddd1?_0x492edf(_0x3c1f0d,_0x1e5d75):_0x3c1f0d,_0x42369b=_0x1c2ac4[_0x3ec883(0x306)]-0x1,_0x36a73b;_0x42369b>=0x0;_0x42369b--)(_0x36a73b=_0x1c2ac4[_0x42369b])&&(_0x26563c=(_0x55ddd1?_0x36a73b(_0x3c1f0d,_0x1e5d75,_0x26563c):_0x36a73b(_0x26563c))||_0x26563c);return _0x55ddd1&&_0x26563c&&_0xae2fc6(_0x3c1f0d,_0x1e5d75,_0x26563c),_0x26563c;},_0x485a42=(_0x381a48,_0x4c7769)=>(_0x11b1a6,_0x2fac4e)=>_0x4c7769(_0x11b1a6,_0x2fac4e,_0x381a48);_0x2c3354[_0x3b3960(0x557)]=class{constructor(_0x2d2378,_0x516f52){const _0x5c8250=_0x3b3960;this[_0x5c8250(0x46c)]=_0x2d2378,this[_0x5c8250(0x2b4)]=_0x516f52;}async[_0x3b3960(0x5c8)](_0x433320,_0x22329b){const _0xda93dd=_0x3b3960;var _0x1d1179;const {unitID:_0x2194f3,type:_0x4f79a0,revision:_0x42d20a=0x0}=_0x22329b,_0x18f7ad=this[_0xda93dd(0x3f7)]()+'/'+_0x4f79a0+_0xda93dd(0x37a)+_0x2194f3+_0xda93dd(0x2f7)+_0x42d20a,_0x248026=(await this[_0xda93dd(0x2b4)]['get'](_0x18f7ad))[_0xda93dd(0x527)],_0x3a71d5=(_0x1d1179=_0x248026[_0xda93dd(0x5bb)])==null?void 0x0:_0x1d1179['workbook'];if(_0x3a71d5){const _0x2ea0d8=_0x3a71d5==null?void 0x0:_0x3a71d5[_0xda93dd(0x441)],_0xa457e3=_0x106736[_0xda93dd(0x386)]['encode'](_0x106736[_0xda93dd(0x2cc)](_0x2ea0d8));_0x3a71d5[_0xda93dd(0x441)]=_0xa457e3,Object[_0xda93dd(0x380)](_0x3a71d5[_0xda93dd(0x319)])[_0xda93dd(0x4d1)](([,_0xcffb80])=>{const _0x1c4c0a=_0xda93dd,_0x445534=_0xcffb80[_0x1c4c0a(0x441)],_0x69f281=_0x106736['textEncoder']['encode'](_0x106736[_0x1c4c0a(0x2cc)](_0x445534));_0xcffb80[_0x1c4c0a(0x441)]=_0x69f281;});}return _0x248026;}async[_0x3b3960(0x2ce)](_0x57b3f2,_0xae8057){const _0x46cfc8=_0x3b3960,{unitID:_0x1208dd,type:_0x270c03,blockID:_0x3c108d}=_0xae8057,_0x14938f=this['_getAPIPrefix']()+'/'+_0x270c03+_0x46cfc8(0x37a)+_0x1208dd+'/block/'+_0x3c108d;return(await this[_0x46cfc8(0x2b4)][_0x46cfc8(0x3b9)](_0x14938f))[_0x46cfc8(0x527)];}async['fetchMissingChangesets'](_0x14f7c4,_0xce8a37){const _0x27596c=_0x3b3960,{unitID:_0x446d9f,type:_0x437193,from:_0x18fc60,to:_0x1ca39a}=_0xce8a37,_0x39b17d=this[_0x27596c(0x561)]()+'/'+_0x437193+_0x27596c(0x37a)+_0x446d9f+_0x27596c(0x4ee)+_0x18fc60+_0x27596c(0x45a)+_0x1ca39a;return(await this['_httpService'][_0x27596c(0x3b9)](_0x39b17d))[_0x27596c(0x527)];}[_0x3b3960(0x3f7)](){const _0x1f0512=_0x3b3960;var _0x47557a;return(_0x47557a=this['_configService'][_0x1f0512(0x584)](_0x5648aa))!=null?_0x47557a:this[_0x1f0512(0x561)]();}[_0x3b3960(0x561)](){const _0x40d64c=_0x3b3960;var _0x446053;return(_0x446053=this['_configService'][_0x40d64c(0x584)](_0x2c5950))!=null?_0x446053:_0x58a23f;}async[_0x3b3960(0x261)](_0xcd271c,_0xebf4){const _0x3a5504=_0x3b3960,_0xd20712='/universer-api/snapshot/'+_0xebf4[_0x3a5504(0x376)]+_0x3a5504(0x37a)+_0xebf4['unitID']+'/resources';return(await this[_0x3a5504(0x2b4)][_0x3a5504(0x3b9)](_0xd20712,{'params':{'resourceId':JSON[_0x3a5504(0x4b3)](_0xebf4[_0x3a5504(0x452)])}}))['body'];}[_0x3b3960(0x3fc)](){const _0x2acffe=_0x3b3960;throw new Error(_0x2acffe(0x3d3));}[_0x3b3960(0x4dd)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b3960(0x22e)](){const _0x3cd4cb=_0x3b3960;throw new Error(_0x3cd4cb(0x3d3));}},_0x2c3354[_0x3b3960(0x557)]=_0x546f93([_0x485a42(0x0,_0x2015b3[_0x3b3960(0x582)]),_0x485a42(0x1,_0x2015b3[_0x3b3960(0x547)](_0x485f8b[_0x3b3960(0x536)]))],_0x2c3354[_0x3b3960(0x557)]);var _0x5f5631=Object[_0x3b3960(0x57c)],_0x56f379=Object['getOwnPropertyDescriptor'],_0x1dae86=(_0x2894fb,_0x30e743,_0x29b936,_0x1fc101)=>{const _0x35a33a=_0x3b3960;for(var _0x2fd3e4=_0x1fc101>0x1?void 0x0:_0x1fc101?_0x56f379(_0x30e743,_0x29b936):_0x30e743,_0x40ec11=_0x2894fb[_0x35a33a(0x306)]-0x1,_0x5048af;_0x40ec11>=0x0;_0x40ec11--)(_0x5048af=_0x2894fb[_0x40ec11])&&(_0x2fd3e4=(_0x1fc101?_0x5048af(_0x30e743,_0x29b936,_0x2fd3e4):_0x5048af(_0x2fd3e4))||_0x2fd3e4);return _0x1fc101&&_0x2fd3e4&&_0x5f5631(_0x30e743,_0x29b936,_0x2fd3e4),_0x2fd3e4;},_0xed0974=(_0x1c1f7d,_0x179065)=>(_0x920726,_0x5ad12d)=>_0x179065(_0x920726,_0x5ad12d,_0x1c1f7d);let _0x448505=class extends _0x2015b3[_0x3b3960(0x558)]{constructor(_0x372dc5,_0xf6675d,_0x220bb3,_0xe4dbb7,_0x4734e5){const _0x121a3a=_0x3b3960;super(_0x372dc5,_0xf6675d,_0x220bb3),this[_0x121a3a(0x3b1)]=_0xe4dbb7,this[_0x121a3a(0x501)]=_0x4734e5;}[_0x3b3960(0x1f7)](_0x41e106,_0x1b69d2){const _0x11dab7=_0x3b3960,_0x111ec4=this[_0x11dab7(0x295)](_0x41e106);if(_0x111ec4)try{const _0x3e625f=this['_transformStack'](_0x111ec4,_0x1b69d2);this[_0x11dab7(0x38c)](_0x41e106,_0x3e625f);}catch(_0xe5be41){this[_0x11dab7(0x501)][_0x11dab7(0x50b)](_0x11dab7(0x590),_0xe5be41),this['_clearUndo'](_0x41e106);}const _0x4b3828=this[_0x11dab7(0x2a6)](_0x41e106);if(_0x4b3828)try{const _0x238b8b=this[_0x11dab7(0x3e1)](_0x4b3828,_0x1b69d2);this[_0x11dab7(0x31e)](_0x41e106,_0x238b8b);}catch(_0x20294d){this['_logService'][_0x11dab7(0x50b)](_0x20294d),this[_0x11dab7(0x238)](_0x41e106);}}[_0x3b3960(0x34e)](_0x2c2d83){const _0x1c25ba=_0x3b3960,_0x57c409=this[_0x1c25ba(0x295)](_0x2c2d83);_0x57c409&&(_0x57c409[_0x1c25ba(0x306)]=0x0,this[_0x1c25ba(0x466)]());}['_clearRedo'](_0x4360d7){const _0x1d222c=this['_getRedoStack'](_0x4360d7);_0x1d222c&&(_0x1d222c['length']=0x0,this['_updateStatus']());}[_0x3b3960(0x38c)](_0x3d7db7,_0x1ffcc3){const _0x3ca071=_0x3b3960;this[_0x3ca071(0x41a)][_0x3ca071(0x420)](_0x3d7db7,_0x1ffcc3),this[_0x3ca071(0x466)]();}[_0x3b3960(0x31e)](_0xd67088,_0x2dd476){const _0x30c03c=_0x3b3960;this[_0x30c03c(0x3cd)][_0x30c03c(0x420)](_0xd67088,_0x2dd476),this[_0x30c03c(0x466)]();}['_transformStack'](_0x11c09e,_0x32fdac){const _0x33c995=_0x3b3960,_0x7a03dc=[];let _0x480782=_0x32fdac,_0x5726ac=_0x32fdac;for(let _0x5e4980=_0x11c09e[_0x33c995(0x306)]-0x1;_0x5e4980>=0x0;_0x5e4980--){const {unitID:_0x197f3b,undoMutations:_0x8af4d5,redoMutations:_0x58e680}=_0x11c09e[_0x5e4980],_0x877ed4=this[_0x33c995(0x3b1)]['transformMutationsWithChangeset'](_0x480782,_0x8af4d5),_0x51dbe6=this[_0x33c995(0x3b1)]['transformMutationsWithChangeset'](_0x5726ac,_0x58e680);if(_0x106736['isTransformMutationsWithChangesetFailure'](_0x877ed4)||_0x106736[_0x33c995(0x476)](_0x51dbe6)){this[_0x33c995(0x501)]['error'](_0x33c995(0x590),_0x33c995(0x422),_0x877ed4,_0x51dbe6);break;}_0x480782=_0x877ed4['c1Prime'],_0x5726ac=_0x51dbe6[_0x33c995(0x4f4)],_0x7a03dc[_0x33c995(0x279)]({'unitID':_0x197f3b,'undoMutations':_0x877ed4['m2Prime'],'redoMutations':_0x51dbe6[_0x33c995(0x4af)]});}return _0x7a03dc[_0x33c995(0x5af)]();}};_0x448505=_0x1dae86([_0xed0974(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0xed0974(0x1,_0x2015b3[_0x3b3960(0x259)]),_0xed0974(0x2,_0x2015b3[_0x3b3960(0x5fb)]),_0xed0974(0x3,_0x106736[_0x3b3960(0x25a)]),_0xed0974(0x4,_0x2015b3['ILogService'])],_0x448505);class _0x3e5f32 extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(){const _0x577438=_0x3b3960;super(),_0x385cfe(this,_0x577438(0x5f2)),this[_0x577438(0x5f2)]=_0x345abe[_0x577438(0x44c)](window,_0x577438(0x3c4))[_0x577438(0x2d1)](_0x345abe[_0x577438(0x244)](this[_0x577438(0x272)]),_0x345abe[_0x577438(0x4fa)](0x1),_0x345abe[_0x577438(0x2e9)](void 0x0));}['setParam'](_0x37253c,_0x11c91c,_0x374288=!0x1){const _0xc12f8b=_0x3b3960,_0x3588fe=new URL(window[_0xc12f8b(0x2fe)][_0xc12f8b(0x4a4)]);_0x3588fe['searchParams'][_0xc12f8b(0x420)](_0x37253c,_0x11c91c),_0x374288?window[_0xc12f8b(0x5aa)][_0xc12f8b(0x3f5)]('','',_0x3588fe[_0xc12f8b(0x396)]()):window[_0xc12f8b(0x5aa)][_0xc12f8b(0x384)]('','',_0x3588fe[_0xc12f8b(0x396)]());}[_0x3b3960(0x29a)](_0x3adc6f,_0x200eb1=!0x1){const _0x5f5054=_0x3b3960,_0x4e1e49=new URL(window[_0x5f5054(0x2fe)][_0x5f5054(0x4a4)]);_0x4e1e49[_0x5f5054(0x350)][_0x5f5054(0x431)](_0x3adc6f),_0x200eb1?window['history'][_0x5f5054(0x3f5)]('','',_0x4e1e49[_0x5f5054(0x396)]()):window[_0x5f5054(0x5aa)][_0x5f5054(0x384)]('','',_0x4e1e49[_0x5f5054(0x396)]());}[_0x3b3960(0x20d)](_0x3a741b){const _0x22a836=_0x3b3960;var _0x80a51e;return(_0x80a51e=new URL(window[_0x22a836(0x2fe)][_0x22a836(0x4a4)])['searchParams'][_0x22a836(0x3b9)](_0x3a741b))!=null?_0x80a51e:void 0x0;}}const _0x131898=_0x3b3960(0x4ff),_0x1f6b36=_0x3b3960(0x5eb),_0x2847ea='collab-rect-range-',_0x4fdd90=0x6,_0x24bd1e=1.5,_0x27743b=0x4,_0x9a8852=1.5,_0x2f10cf='rgba(255,\x20255,\x20255,\x200.01)';class _0x134409{constructor(_0xf8485a,_0x4f1343,_0x488762,_0x1f817f){const _0x2250c8=_0x3b3960;_0x385cfe(this,_0x2250c8(0x20c),[]),_0x385cfe(this,'_anchor',null),_0x385cfe(this,_0x2250c8(0x4ed),null),_0x385cfe(this,_0x2250c8(0x3b0),null),_0x385cfe(this,'_hideTimer',null),_0x385cfe(this,'_eventUnsubscribe',null),(this[_0x2250c8(0x2e4)]=_0xf8485a,this[_0x2250c8(0x5d5)]=_0x4f1343,this['_docSkeleton']=_0x488762,this['_document']=_0x1f817f,this[_0x2250c8(0x249)]());}set[_0x3b3960(0x214)](_0x2a24d5){const _0x367ba0=_0x3b3960;_0x2a24d5?(this['_anchorDot']&&this['_anchorDot'][_0x367ba0(0x2c7)](),this[_0x367ba0(0x4ed)]&&this[_0x367ba0(0x4ed)][_0x367ba0(0x2c3)]()):(this[_0x367ba0(0x3b0)]&&this[_0x367ba0(0x3b0)][_0x367ba0(0x2c3)](),this['_textBubble']&&this[_0x367ba0(0x4ed)]['hide']());}['dispose'](){const _0x21a518=_0x3b3960;for(const _0x5be8bb of this[_0x21a518(0x20c)])_0x5be8bb['dispose']();this[_0x21a518(0x4ed)]&&this[_0x21a518(0x4ed)][_0x21a518(0x472)](),this['_anchorDot']&&this[_0x21a518(0x3b0)]['dispose'](),this[_0x21a518(0x5bd)]&&this[_0x21a518(0x5bd)]['dispose'](),this[_0x21a518(0x450)]&&this[_0x21a518(0x450)]();}[_0x3b3960(0x249)](){const _0x3ec383=_0x3b3960;var _0x521f2;const {_docSkeleton:_0x6843ac,_document:_0x196648}=this,{color:_0x2ced16,name:_0x3324e3,ranges:_0x46f78e}=this[_0x3ec383(0x2e4)],_0x309e21=_0x196648[_0x3ec383(0x418)](),{docsLeft:_0x3af97e,docsTop:_0x45b075}=_0x309e21,_0x3460cf=new _0x572a63[(_0x3ec383(0x47f))](_0x309e21,_0x6843ac);for(const {startOffset:_0x18d93e,endOffset:_0x19e7f2,collapsed:_0x4e3af6,isActive:_0x3eb97e}of _0x46f78e){const _0x4f91f8=_0x6843ac['findNodePositionByCharIndex'](_0x18d93e),_0x10622c=_0x6843ac[_0x3ec383(0x2dd)](_0x19e7f2);if(_0x3eb97e){const {contentBoxPointGroup:_0x6b0489}=_0x3460cf[_0x3ec383(0x470)](_0x10622c,_0x10622c);if(_0x6b0489[_0x3ec383(0x306)]===0x0)continue;this[_0x3ec383(0x52a)](_0x2ced16,_0x6b0489,_0x3af97e,_0x45b075,_0x3324e3),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x4e3af6&&_0x4f91f8&&_0x10622c){if(_0x572a63[_0x3ec383(0x400)](_0x4f91f8,_0x10622c)){const _0x6c3434=new _0x572a63[(_0x3ec383(0x410))](_0x309e21,_0x6843ac),{pointGroup:_0x2e8480}=(_0x521f2=_0x6c3434[_0x3ec383(0x470)](_0x4f91f8,_0x10622c))!=null?_0x521f2:{};if(_0x2e8480==null||_0x2e8480[_0x3ec383(0x306)]===0x0)continue;this['_drawRectRange'](_0x2ced16,_0x2e8480,_0x3af97e,_0x45b075);}else{const {contentBoxPointGroup:_0x2cf259}=_0x3460cf[_0x3ec383(0x470)](_0x4f91f8,_0x10622c);if(_0x2cf259['length']===0x0)continue;this[_0x3ec383(0x4e0)](_0x2ced16,_0x2cf259,_0x3af97e,_0x45b075);}}}}[_0x3b3960(0x52a)](_0x9177ca,_0x45287a,_0x174623,_0xaeaa31,_0x53a4e4){const _0x4180f7=_0x3b3960,_0x145f82=this['_getAnchorBounding'](_0x45287a),{left:_0x275358,top:_0x3ec727,height:_0x3d619c}=_0x145f82,_0x593238=this[_0x4180f7(0x254)](),_0x4a7218=_0x9a8852/_0x593238,_0x2810aa=new _0x572a63[(_0x4180f7(0x58b))](_0x131898+_0x2015b3[_0x4180f7(0x471)][_0x4180f7(0x447)](_0x4fdd90),{'left':_0x275358+_0x174623-_0x4a7218,'top':_0x3ec727+_0xaeaa31,'height':_0x3d619c,'width':_0x24bd1e,'fill':_0x9177ca||_0x572a63['getColor'](_0x2015b3[_0x4180f7(0x570)][_0x4180f7(0x514)],0x0),'strokeWidth':_0x4a7218,'stroke':_0x2f10cf,'evented':!0x0});this[_0x4180f7(0x5bd)]=_0x2810aa,this['_scene']['addObject'](_0x2810aa,_0x572a63[_0x4180f7(0x573)]);const _0x25e4ba=new _0x572a63['Rect'](_0x131898+_0x2015b3[_0x4180f7(0x471)][_0x4180f7(0x447)](_0x4fdd90),{'left':_0x275358+_0x174623-_0x4a7218,'top':_0x3ec727+_0xaeaa31-_0x27743b/0x2,'height':_0x27743b,'width':_0x27743b,'fill':_0x9177ca||_0x572a63['getColor'](_0x2015b3[_0x4180f7(0x570)][_0x4180f7(0x514)],0x0),'strokeWidth':0x0,'stroke':_0x9177ca||_0x572a63[_0x4180f7(0x2a1)](_0x2015b3[_0x4180f7(0x570)][_0x4180f7(0x514)],0x0),'evented':!0x1});this[_0x4180f7(0x3b0)]=_0x25e4ba,this[_0x4180f7(0x5d5)]['addObject'](_0x25e4ba,_0x572a63[_0x4180f7(0x573)]);const _0x4d2e61=new _0x4b8b68(_0x131898+_0x2015b3['Tools'][_0x4180f7(0x447)](_0x4fdd90),{'left':_0x275358+_0x174623-_0x4a7218,'top':_0x3ec727+_0xaeaa31-_0x5c9f4b,'text':_0x53a4e4,'color':_0x9177ca});this['_textBubble']=_0x4d2e61,this[_0x4180f7(0x5d5)]['addObject'](_0x4d2e61,_0x572a63['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x3b3960(0x589)](){const _0x140389=_0x3b3960,_0x41b6fc=this[_0x140389(0x5bd)][_0x140389(0x451)]['subscribeEvent'](()=>{const _0x3617ff=_0x140389;this[_0x3617ff(0x214)]=!0x0;}),_0x1e7794=this['_anchor']['onPointerLeave$'][_0x140389(0x281)](()=>{const _0x5258f6=_0x140389;this[_0x5258f6(0x293)]&&clearTimeout(this[_0x5258f6(0x293)]),this[_0x5258f6(0x293)]=setTimeout(()=>{const _0x1d231a=_0x5258f6;this[_0x1d231a(0x214)]=!0x1;},0x7d0);});return()=>{const _0x24f117=_0x140389;_0x41b6fc['unsubscribe'](),_0x1e7794[_0x24f117(0x55a)]();};}[_0x3b3960(0x4e0)](_0x56ae32,_0x23f843,_0xad9b4f,_0x5bc09b){const _0x2a793c=_0x3b3960,_0x422466=new _0x2015b3[(_0x2a793c(0x50a))](_0x56ae32)['setAlpha'](0.2)['toRgbString'](),_0xa0a5cb=new _0x572a63[(_0x2a793c(0x5be))](_0x1f6b36+_0x2015b3['Tools'][_0x2a793c(0x447)](_0x4fdd90),{'pointsGroup':_0x23f843,'fill':_0x422466||_0x572a63[_0x2a793c(0x2a1)](_0x2015b3[_0x2a793c(0x570)][_0x2a793c(0x514)],0.2),'left':_0xad9b4f,'top':_0x5bc09b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a793c(0x20c)][_0x2a793c(0x279)](_0xa0a5cb),this[_0x2a793c(0x5d5)][_0x2a793c(0x280)](_0xa0a5cb,_0x572a63['TEXT_RANGE_LAYER_INDEX']);}[_0x3b3960(0x506)](_0xc983ba,_0x9dd17c,_0x540411,_0x1200ce){const _0x4a5ad4=_0x3b3960,_0x368058=new _0x2015b3[(_0x4a5ad4(0x50a))](_0xc983ba)['setAlpha'](0.2)[_0x4a5ad4(0x583)](),_0x51974a=new _0x572a63['RegularPolygon'](_0x2847ea+_0x2015b3['Tools'][_0x4a5ad4(0x447)](_0x4fdd90),{'pointsGroup':_0x9dd17c,'fill':_0x368058||_0x572a63[_0x4a5ad4(0x2a1)](_0x2015b3[_0x4a5ad4(0x570)][_0x4a5ad4(0x514)],0.2),'left':_0x540411,'top':_0x1200ce,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a5ad4(0x20c)]['push'](_0x51974a),this[_0x4a5ad4(0x5d5)]['addObject'](_0x51974a,_0x572a63['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x361b49){const _0x48b054=_0x361b49[0x0],_0x555fa=_0x48b054[0x0],_0x16c371=_0x48b054[0x2],{x:_0x45c882,y:_0x573934}=_0x555fa,{x:_0x412f29,y:_0x56d445}=_0x16c371;return{'left':_0x45c882,'top':_0x573934,'width':_0x412f29-_0x45c882,'height':_0x56d445-_0x573934};}[_0x3b3960(0x254)](){const _0x2d6cb5=_0x3b3960,{scaleX:_0x426897,scaleY:_0x58956d}=this[_0x2d6cb5(0x5d5)]['getAncestorScale']();return Math[_0x2d6cb5(0x2d6)](_0x426897,_0x58956d);}}var _0x2366bf=Object[_0x3b3960(0x57c)],_0x5277a2=Object[_0x3b3960(0x2c2)],_0x5e6a89=(_0x10e7e0,_0x268f98,_0x14fad7,_0x5e1925)=>{const _0x231eea=_0x3b3960;for(var _0x3968f3=_0x5e1925>0x1?void 0x0:_0x5e1925?_0x5277a2(_0x268f98,_0x14fad7):_0x268f98,_0x5500dd=_0x10e7e0[_0x231eea(0x306)]-0x1,_0x520403;_0x5500dd>=0x0;_0x5500dd--)(_0x520403=_0x10e7e0[_0x5500dd])&&(_0x3968f3=(_0x5e1925?_0x520403(_0x268f98,_0x14fad7,_0x3968f3):_0x520403(_0x3968f3))||_0x3968f3);return _0x5e1925&&_0x3968f3&&_0x2366bf(_0x268f98,_0x14fad7,_0x3968f3),_0x3968f3;},_0x2b1866=(_0x40bd69,_0x2b5ed6)=>(_0x59d8f1,_0x6d3ede)=>_0x2b5ed6(_0x59d8f1,_0x6d3ede,_0x40bd69);let _0x304928=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x37de76,_0x38ff79,_0x2b92a1,_0x2ac4b0,_0x39246c){const _0x5a57c2=_0x3b3960;super(),_0x385cfe(this,_0x5a57c2(0x5fd),[]),_0x385cfe(this,_0x5a57c2(0x302),[]),(this[_0x5a57c2(0x37f)]=_0x37de76,this[_0x5a57c2(0x4c5)]=_0x38ff79,this['_collabCursorController']=_0x2b92a1,this[_0x5a57c2(0x286)]=_0x2ac4b0,this[_0x5a57c2(0x549)]=_0x39246c,this[_0x5a57c2(0x4a1)]());}[_0x3b3960(0x4a1)](){const _0x59be52=_0x3b3960,_0x288cd3=this[_0x59be52(0x37f)][_0x59be52(0x59f)],_0x2f754f=this[_0x59be52(0x4c5)];this[_0x59be52(0x369)](_0x345abe[_0x59be52(0x4a3)]([this[_0x59be52(0x266)]['getCollabCursors$'](_0x288cd3),this[_0x59be52(0x549)]['currentTheme$']])[_0x59be52(0x2d1)](_0x2cc613[_0x59be52(0x522)](([_0x41dd35,_0xe62def])=>({'skeleton':_0x2f754f[_0x59be52(0x3de)](),'cursors':[..._0x41dd35[_0x59be52(0x58f)]()][_0x59be52(0x436)](_0xeeceb0=>({..._0xeeceb0,'color':_0xe62def[_0xeeceb0[_0x59be52(0x3d8)]]}))})))[_0x59be52(0x35b)](_0x12f15d=>{const _0x3a499b=_0x59be52;if(this[_0x3a499b(0x3b7)](),_0x12f15d){const {skeleton:_0x283c16,cursors:_0x3a4c47}=_0x12f15d;this[_0x3a499b(0x368)](_0x283c16,_0x3a4c47);}})),this[_0x59be52(0x540)](),this[_0x59be52(0x5bc)]();}['_updateCollabCursors'](_0x55e891,_0xb41ff6){const _0x2d8e1e=_0x3b3960,{scene:_0x5ae8fd,mainComponent:_0x1e8c2e}=this[_0x2d8e1e(0x37f)],_0x4fd2f8=_0xb41ff6[_0x2d8e1e(0x522)](_0x344611=>new _0x134409(_0x344611,_0x5ae8fd,_0x55e891,_0x1e8c2e));this['_cursorShapes']=_0x4fd2f8,this[_0x2d8e1e(0x302)]=_0xb41ff6;}[_0x3b3960(0x3bd)](){const _0x2bb8ae=_0x3b3960;this[_0x2bb8ae(0x3b7)]();const {scene:_0x44bf0f,mainComponent:_0x211732}=this[_0x2bb8ae(0x37f)],_0x87f55c=this[_0x2bb8ae(0x4c5)][_0x2bb8ae(0x3de)](),_0x47272b=this[_0x2bb8ae(0x302)]['map'](_0x6b9e44=>new _0x134409(_0x6b9e44,_0x44bf0f,_0x87f55c,_0x211732));this[_0x2bb8ae(0x5fd)]=_0x47272b;}[_0x3b3960(0x3b7)](){const _0x3ee73f=_0x3b3960;this[_0x3ee73f(0x5fd)][_0x3ee73f(0x4d1)](_0x478124=>_0x478124[_0x3ee73f(0x472)]()),this[_0x3ee73f(0x5fd)]=[];}[_0x3b3960(0x5bc)](){const _0x26effe=_0x3b3960,_0x5054e6=[_0xbcf55e[_0x26effe(0x359)]['id']];this['disposeWithMe'](this['_commandService'][_0x26effe(0x3ab)](_0x215a62=>{const _0x52952c=_0x26effe;_0x5054e6[_0x52952c(0x4e5)](_0x215a62['id'])&&_0x215a62[_0x52952c(0x358)]['unitId']===this['_context'][_0x52952c(0x59f)]&&this[_0x52952c(0x3bd)]();}));}[_0x3b3960(0x540)](){const _0x3375ee=_0x3b3960;this[_0x3375ee(0x369)](_0x2015b3[_0x3375ee(0x270)](this[_0x3375ee(0x37f)][_0x3375ee(0x336)]['onTransformChange$'])[_0x3375ee(0x2d1)](_0x2cc613[_0x3375ee(0x493)](_0x464406=>_0x464406[_0x3375ee(0x376)]===_0x572a63[_0x3375ee(0x533)]['resize']),_0x2cc613[_0x3375ee(0x21a)](0x10))[_0x3375ee(0x35b)](()=>{const _0x5ec3b5=_0x3375ee;this[_0x5ec3b5(0x3bd)]();}));}};_0x304928=_0x5e6a89([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)][_0x3b3960(0x520)],_0x304928),_0x2b1866(0x1,_0x2015b3[_0x3b3960(0x547)](_0xbcf55e['DocSkeletonManagerService'])),_0x2b1866(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2a0bf9)),_0x2b1866(0x3,_0x2015b3[_0x3b3960(0x259)]),_0x2b1866(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x2e1)]))],_0x304928);var _0x1bd4c8=Object['defineProperty'],_0x23fc68=Object[_0x3b3960(0x2c2)],_0x2a7515=(_0x1408e2,_0x7f2edc,_0x3a6dc8,_0xd35801)=>{const _0x20afb3=_0x3b3960;for(var _0x6407a5=_0xd35801>0x1?void 0x0:_0xd35801?_0x23fc68(_0x7f2edc,_0x3a6dc8):_0x7f2edc,_0x52042d=_0x1408e2[_0x20afb3(0x306)]-0x1,_0x179858;_0x52042d>=0x0;_0x52042d--)(_0x179858=_0x1408e2[_0x52042d])&&(_0x6407a5=(_0xd35801?_0x179858(_0x7f2edc,_0x3a6dc8,_0x6407a5):_0x179858(_0x6407a5))||_0x6407a5);return _0xd35801&&_0x6407a5&&_0x1bd4c8(_0x7f2edc,_0x3a6dc8,_0x6407a5),_0x6407a5;},_0x321032=(_0x224b03,_0x30d43c)=>(_0x52beb6,_0xc30b9f)=>_0x30d43c(_0x52beb6,_0xc30b9f,_0x224b03);let _0x371f23=class{constructor(_0x85b1d5,_0x18d793,_0x2eb116){const _0x3fddf0=_0x3b3960;this[_0x3fddf0(0x46c)]=_0x85b1d5,this[_0x3fddf0(0x2b4)]=_0x18d793,this['localeService']=_0x2eb116,this[_0x3fddf0(0x595)]();}[_0x3b3960(0x595)](){const _0x4d7e53=_0x3b3960;this[_0x4d7e53(0x2b4)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x426f7e,_0xf11e51)=>_0xf11e51(_0x426f7e)['pipe'](_0x345abe[_0x4d7e53(0x226)](async _0x48f09b=>{const _0x2fdf4b=_0x4d7e53,_0x226d7e=_0x48f09b;if(_0x226d7e[_0x2fdf4b(0x268)]===0x191&&window[_0x2fdf4b(0x2ac)](this[_0x2fdf4b(0x362)]['t'](_0x2fdf4b(0x585)))){const _0x2cc7c2=window[_0x2fdf4b(0x3c7)](window['location']['href']);window['location'][_0x2fdf4b(0x4a4)]=this['_getLoginPath']()+'?url='+_0x2cc7c2;}return _0x226d7e;}))});}[_0x3b3960(0x592)](){const _0x1d14ab=_0x3b3960;var _0x124e61;return(_0x124e61=this['_configService'][_0x1d14ab(0x584)](_0x4f5e36))!=null?_0x124e61:_0x1df3cc;}};_0x371f23=_0x2a7515([_0x321032(0x0,_0x2015b3[_0x3b3960(0x582)]),_0x321032(0x1,_0x2015b3[_0x3b3960(0x547)](_0x485f8b[_0x3b3960(0x536)])),_0x321032(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['LocaleService']))],_0x371f23);var _0x32378c=Object['defineProperty'],_0x5a00c5=Object['getOwnPropertyDescriptor'],_0x537450=(_0x3c10f3,_0x147970,_0x478753,_0x124bf8)=>{const _0x53dfcb=_0x3b3960;for(var _0x537970=_0x124bf8>0x1?void 0x0:_0x124bf8?_0x5a00c5(_0x147970,_0x478753):_0x147970,_0x57f49e=_0x3c10f3[_0x53dfcb(0x306)]-0x1,_0x5725af;_0x57f49e>=0x0;_0x57f49e--)(_0x5725af=_0x3c10f3[_0x57f49e])&&(_0x537970=(_0x124bf8?_0x5725af(_0x147970,_0x478753,_0x537970):_0x5725af(_0x537970))||_0x537970);return _0x124bf8&&_0x537970&&_0x32378c(_0x147970,_0x478753,_0x537970),_0x537970;},_0x350d64=(_0x2c6f03,_0x5a1847)=>(_0x5a76cc,_0xbd9cea)=>_0x5a1847(_0x5a76cc,_0xbd9cea,_0x2c6f03);const _0xe6c904=_0x3b3960(0x29d),_0x3dff80=_0x3b3960(0x2ea);_0x2c3354[_0x3b3960(0x5fa)]=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x2e023c,_0x43f3d4){const _0x502c29=_0x3b3960;super(),this[_0x502c29(0x5e5)]=_0x2e023c,this[_0x502c29(0x46c)]=_0x43f3d4,this[_0x502c29(0x3fa)]();}['_initMergeInterceptor'](){const _0x5ae47d=_0x3b3960,_0x58e0ca=this;this[_0x5ae47d(0x369)](this[_0x5ae47d(0x5e5)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x485f8b[_0x5ae47d(0x465)]({'isMatch'(_0x29bfb){const _0x195fd0=_0x5ae47d;var _0x2d299d;if(_0x29bfb[_0x195fd0(0x5a5)]===_0x195fd0(0x344)&&((_0x2d299d=_0x29bfb[_0x195fd0(0x480)])!=null&&_0x2d299d[_0x195fd0(0x527)])){const {objectID:_0x24abc7,objectType:_0x5a7fec}=_0x29bfb['requestParams'][_0x195fd0(0x527)]||{};if(!_0x24abc7||_0x5a7fec===void 0x0)return!0x1;const _0x3f60cf=_0x58e0ca[_0x195fd0(0x317)]()+'/'+_0x5a7fec+_0x195fd0(0x434)+_0x24abc7+_0x195fd0(0x349);if(_0x29bfb[_0x195fd0(0x33f)]===_0x3f60cf)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x55d12c){const _0x34a85b=_0x5ae47d;var _0xd1ec3f;return(_0xd1ec3f=_0x55d12c[_0x34a85b(0x480)])==null?void 0x0:_0xd1ec3f[_0x34a85b(0x527)];},'mergeParamsToRequest'(_0x70bc5a,_0x2ff0b3){const _0x2ec71b=_0x5ae47d,_0x465ffa=_0x58e0ca['_getAPIPrefixPath']()+_0x2ec71b(0x3ba),_0x3299d0=_0x70bc5a['reduce']((_0x544d4c,_0x4b5f8d)=>{const _0x41ecc2=_0x2ec71b,{unitID:_0x4cccc9,objectID:_0x5c745a,objectType:_0x534eb1,actions:_0x5d9355}=_0x4b5f8d;return _0x544d4c[_0x4cccc9]||(_0x544d4c[_0x4cccc9]={}),_0x544d4c[_0x4cccc9][_0x5c745a]||(_0x544d4c[_0x4cccc9][_0x5c745a]={'objectID':_0x5c745a,'objectType':_0x534eb1,'actions':[]}),_0x544d4c[_0x4cccc9][_0x5c745a][_0x41ecc2(0x59b)][_0x41ecc2(0x279)](..._0x5d9355),_0x544d4c;},{}),_0x3d7d23=[];for(const _0x4bc6bd in _0x3299d0)for(const _0x29178b in _0x3299d0[_0x4bc6bd]){const {actions:_0x123ca0,objectType:_0x150292}=_0x3299d0[_0x4bc6bd][_0x29178b],_0x15434b=[...new Set(_0x123ca0)];_0x3d7d23[_0x2ec71b(0x279)]({'unitID':_0x4bc6bd,'objectID':_0x29178b,'objectType':_0x150292,'actions':_0x15434b});}return new _0x485f8b[(_0x2ec71b(0x3a9))](_0x2ec71b(0x344),_0x465ffa,{'headers':_0x2ff0b3[_0x2ec71b(0x4a7)],'withCredentials':_0x2ff0b3[_0x2ec71b(0x39a)],'responseType':_0x2ff0b3[_0x2ec71b(0x550)],'body':{'requests':_0x3d7d23}});}},{'distributeResult'(_0x36a4f2,_0x324426){const _0x2c11f4=_0x5ae47d,{objectActions:_0x285e82}=_0x36a4f2;return _0x324426[_0x2c11f4(0x522)](_0x329d1e=>{const _0x21d4b1=_0x2c11f4,{unitID:_0x4e147e,objectID:_0x8e6679,actions:_0x33091c}=_0x329d1e,_0x353165=_0x285e82[_0x21d4b1(0x335)](_0xa959f5=>_0xa959f5[_0x21d4b1(0x353)]===_0x4e147e&&_0xa959f5[_0x21d4b1(0x4a8)]===_0x8e6679),_0x5b6a8e=_0x33091c[_0x21d4b1(0x522)](_0x51135e=>_0x353165==null?void 0x0:_0x353165[_0x21d4b1(0x59b)][_0x21d4b1(0x335)](_0x13c9b6=>_0x13c9b6[_0x21d4b1(0x454)]===_0x51135e))[_0x21d4b1(0x493)](_0x3763bc=>!!_0x3763bc);return{'config':_0x329d1e,'result':{'actions':_0x5b6a8e,'error':_0x36a4f2[_0x21d4b1(0x50b)]}};});}})}));}[_0x3b3960(0x317)](){const _0x229a89=_0x3b3960;var _0x24cd2c;return(_0x24cd2c=this[_0x229a89(0x46c)][_0x229a89(0x584)](_0xe6c904))!=null?_0x24cd2c:_0x3dff80;}async[_0x3b3960(0x500)](_0x4acebc){const _0x19f71a=_0x3b3960,_0x3c2029=this[_0x19f71a(0x317)]()+'/'+_0x4acebc['objectType']+_0x19f71a(0x5a9);return(await this['_HTTPService'][_0x19f71a(0x228)](_0x3c2029,{'body':_0x4acebc}))[_0x19f71a(0x527)]['objectID']||'';}async[_0x3b3960(0x597)](_0x45aa40){const _0x24c778=_0x3b3960,_0x4b7a1c=this[_0x24c778(0x317)]()+_0x24c778(0x288);return(await this[_0x24c778(0x5e5)][_0x24c778(0x228)](_0x4b7a1c,{'body':_0x45aa40}))[_0x24c778(0x527)][_0x24c778(0x345)];}async[_0x3b3960(0x27c)](_0xd15edb){const _0x285914=_0x3b3960,_0x2c5b8c=this[_0x285914(0x317)]()+'/'+_0xd15edb[_0x285914(0x57f)]+'/object/'+_0xd15edb[_0x285914(0x4a8)];await this['_HTTPService'][_0x285914(0x339)](_0x2c5b8c,{'body':_0xd15edb});}async[_0x3b3960(0x39c)](_0x58cbfd){const _0x147a20=_0x3b3960,_0x8b69c6=this[_0x147a20(0x317)]()+'/'+_0x58cbfd[_0x147a20(0x57f)]+_0x147a20(0x434)+_0x58cbfd[_0x147a20(0x4a8)]+'/allowed';return(await this[_0x147a20(0x5e5)]['post'](_0x8b69c6,{'body':_0x58cbfd}))[_0x147a20(0x527)]['actions'];}async[_0x3b3960(0x43f)](_0x4b2e19){const _0xe1f6ea=_0x3b3960,_0x50846d=this[_0xe1f6ea(0x317)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0xe1f6ea(0x228)](_0x50846d,{'body':{'requests':_0x4b2e19}}))[_0xe1f6ea(0x527)][_0xe1f6ea(0x498)];}async[_0x3b3960(0x24f)](_0x301ae7){const _0xfea4fa=_0x3b3960,_0x359c35=this[_0xfea4fa(0x317)]()+'/'+_0x301ae7[_0xfea4fa(0x57f)]+_0xfea4fa(0x535),_0x58ec19=await this[_0xfea4fa(0x5e5)]['post'](_0x359c35,{'body':_0x301ae7});return{'roles':_0x58ec19[_0xfea4fa(0x527)][_0xfea4fa(0x4df)],'actions':_0x58ec19[_0xfea4fa(0x527)][_0xfea4fa(0x59b)]};}async[_0x3b3960(0x256)](_0x4e78c9){const _0x3abe92=_0x3b3960,_0x4bb4ea=this[_0x3abe92(0x317)]()+_0x3abe92(0x40b);await this['_HTTPService'][_0x3abe92(0x431)](_0x4bb4ea,{'params':{'collaboratorID':_0x4e78c9[_0x3abe92(0x2f6)],'objectID':_0x4e78c9[_0x3abe92(0x4a8)],'unitID':_0x4e78c9[_0x3abe92(0x353)]}});}async['updateCollaborator'](_0x5651b1){const _0x28b5b1=_0x3b3960,_0x111c37=this['_getAPIPrefixPath']()+_0x28b5b1(0x40b);await this['_HTTPService']['patch'](_0x111c37,{'body':_0x5651b1});}async[_0x3b3960(0x2ed)](_0x7ced5e){const _0x436121=_0x3b3960,_0x3830f3=this[_0x436121(0x317)]()+'/collaborator';await this[_0x436121(0x5e5)]['post'](_0x3830f3,{'body':_0x7ced5e});}async[_0x3b3960(0x513)](_0x41b8ed){const _0x1629c3=_0x3b3960,_0x2c8114=this['_getAPIPrefixPath']()+'/collaborator';return(await this['_HTTPService'][_0x1629c3(0x3b9)](_0x2c8114,{'params':{'objectID':_0x41b8ed['objectID'],'unitID':_0x41b8ed[_0x1629c3(0x353)]}}))[_0x1629c3(0x527)][_0x1629c3(0x41f)];}async[_0x3b3960(0x49d)](_0xa89641){const _0x395883=_0x3b3960,_0x82c15f=this[_0x395883(0x317)]()+_0x395883(0x40b);await this[_0x395883(0x5e5)][_0x395883(0x339)](_0x82c15f,{'body':_0xa89641});}},_0x2c3354[_0x3b3960(0x5fa)]=_0x537450([_0x350d64(0x0,_0x2015b3['Inject'](_0x485f8b[_0x3b3960(0x536)])),_0x350d64(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x582)]))],_0x2c3354[_0x3b3960(0x5fa)]);var _0x48f36c=Object[_0x3b3960(0x57c)],_0x2a1827=Object[_0x3b3960(0x2c2)],_0x253b27=(_0x4436cf,_0x1a9590,_0x1687c6,_0x5d8b79)=>{const _0x741cd6=_0x3b3960;for(var _0x3fccae=_0x5d8b79>0x1?void 0x0:_0x5d8b79?_0x2a1827(_0x1a9590,_0x1687c6):_0x1a9590,_0x21b6a3=_0x4436cf[_0x741cd6(0x306)]-0x1,_0x505d62;_0x21b6a3>=0x0;_0x21b6a3--)(_0x505d62=_0x4436cf[_0x21b6a3])&&(_0x3fccae=(_0x5d8b79?_0x505d62(_0x1a9590,_0x1687c6,_0x3fccae):_0x505d62(_0x3fccae))||_0x3fccae);return _0x5d8b79&&_0x3fccae&&_0x48f36c(_0x1a9590,_0x1687c6,_0x3fccae),_0x3fccae;},_0x2a4c33=(_0x492ffe,_0x2914c7)=>(_0x927fd,_0x5526ed)=>_0x2914c7(_0x927fd,_0x5526ed,_0x492ffe);const _0xed7207=[_0x3b3960(0x32b),_0x3b3960(0x276),_0x3b3960(0x459),_0x3b3960(0x59a),_0x3b3960(0x36f)],_0x4fef26=0x5*0x400*0x400,_0x471ff0='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x53c78f='/universer-api/stream/file/upload',_0xe6854b='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x5ccb89=_0x3b3960(0x1fb);_0x2c3354[_0x3b3960(0x36d)]=class{constructor(_0x572903,_0x4e256,_0x191c76){const _0x2c4dcb=_0x3b3960;_0x385cfe(this,'_waitCount',0x0),_0x385cfe(this,_0x2c4dcb(0x242),new _0x345abe[(_0x2c4dcb(0x421))]()),_0x385cfe(this,'change$',this[_0x2c4dcb(0x242)]),_0x385cfe(this,_0x2c4dcb(0x3d5),new Map()),(this['_httpService']=_0x572903,this[_0x2c4dcb(0x46c)]=_0x4e256,this[_0x2c4dcb(0x5b7)]=_0x191c76);}['setWaitCount'](_0x5a5474){const _0x6a9da1=_0x3b3960;this[_0x6a9da1(0x264)]=_0x5a5474,this['_change$'][_0x6a9da1(0x2b0)](_0x5a5474);}[_0x3b3960(0x463)](_0x55fa24,_0x37a244){const _0x5bb480=_0x3b3960;if(_0x37a244===_0x17c816['ImageSourceType'][_0x5bb480(0x4e3)]){const _0x2b681a=new Image();return _0x2b681a[_0x5bb480(0x48b)]=_0x55fa24,_0x2b681a;}return this[_0x5bb480(0x3d5)]['get'](_0x55fa24);}[_0x3b3960(0x5ab)](_0x274b47,_0x25ffd7,_0x2bbec4){const _0x54854c=_0x3b3960;_0x25ffd7===_0x17c816['ImageSourceType'][_0x54854c(0x4e3)]||_0x2bbec4==null||this[_0x54854c(0x3d5)]['set'](_0x274b47,_0x2bbec4);}async['getImage'](_0x32791b){const _0x1f0bba=_0x3b3960;try{const _0x4f3ce7=this['_replaceFileID'](this[_0x1f0bba(0x229)](),''+_0x32791b),_0x73cc94=(await this[_0x1f0bba(0x2b4)]['get'](_0x4f3ce7))['body'];return _0x73cc94['error']&&_0x73cc94[_0x1f0bba(0x50b)][_0x1f0bba(0x534)]===_0x48be91['OK']?Promise[_0x1f0bba(0x478)](_0x73cc94[_0x1f0bba(0x33f)]):Promise[_0x1f0bba(0x314)](_0x73cc94[_0x1f0bba(0x50b)]);}catch(_0x367c96){return Promise[_0x1f0bba(0x314)](_0x367c96);}}async[_0x3b3960(0x5e8)](_0x2405ab){const _0xd568c5=_0x3b3960;let _0x50425f='';if(!_0xed7207[_0xd568c5(0x4e5)](_0x2405ab['type']))return this['_decreaseWaiting'](),Promise[_0xd568c5(0x314)](new Error(_0x17c816['ImageUploadStatusType'][_0xd568c5(0x351)]));if(_0x2405ab[_0xd568c5(0x52c)]>_0x4fef26)return this[_0xd568c5(0x24d)](),Promise[_0xd568c5(0x314)](new Error(_0x17c816[_0xd568c5(0x273)][_0xd568c5(0x27a)]));try{const _0x1ddc66=new FormData();_0x1ddc66['append'](_0xd568c5(0x277),_0x2405ab);const _0x1817f9=this[_0xd568c5(0x5b7)][_0xd568c5(0x209)](),_0x5c3cf8=_0x1817f9==null?void 0x0:_0x1817f9[_0xd568c5(0x304)]();if(!_0x5c3cf8)throw new Error(_0xd568c5(0x51d));const _0xbe7567=this[_0xd568c5(0x5a0)]()+_0xd568c5(0x43a)+_0x2405ab['size'][_0xd568c5(0x396)]()+_0xd568c5(0x5d8)+_0x5d29eb['UnitEmbedded']+_0xd568c5(0x4c3)+encodeURIComponent(_0x5c3cf8),_0x46cde4=await(await fetch(_0xbe7567,{'method':_0xd568c5(0x344),'body':_0x1ddc66}))[_0xd568c5(0x2a5)]();if(typeof _0x46cde4[_0xd568c5(0x395)]!=_0xd568c5(0x31b))return this[_0xd568c5(0x24d)](),Promise[_0xd568c5(0x314)](new Error(_0x17c816['ImageUploadStatusType'][_0xd568c5(0x356)]));_0x50425f=_0x46cde4[_0xd568c5(0x395)];}catch{return this[_0xd568c5(0x24d)](),Promise['reject'](new Error(_0x17c816[_0xd568c5(0x273)]['ERROR_IMAGE']));}return new Promise((_0x5e05ab,_0x329a0d)=>{const _0x407fe5=_0xd568c5,_0x29fd8b=new FileReader();_0x29fd8b[_0x407fe5(0x340)](_0x2405ab),_0x29fd8b['onload']=_0x98e739=>{const _0xbb308f=_0x407fe5;var _0x485515;const _0x178f1f=(_0x485515=_0x98e739[_0xbb308f(0x526)])==null?void 0x0:_0x485515[_0xbb308f(0x473)];if(_0x178f1f==null){this[_0xbb308f(0x24d)](),_0x329a0d(new Error(_0x17c816[_0xbb308f(0x273)][_0xbb308f(0x356)]));return;}const _0x11d712=_0x2015b3['Tools'][_0xbb308f(0x447)](0x6);_0x5e05ab({'imageId':_0x11d712,'imageSourceType':_0x17c816[_0xbb308f(0x5a8)][_0xbb308f(0x5b0)],'source':_0x50425f,'base64Cache':_0x178f1f,'status':_0x17c816[_0xbb308f(0x273)][_0xbb308f(0x394)]}),this[_0xbb308f(0x24d)]();};});}['_getUploadFileURL'](){const _0x1bdde8=_0x3b3960;var _0x1b0a77;return(_0x1b0a77=this[_0x1bdde8(0x46c)][_0x1bdde8(0x584)](_0x471ff0))!=null?_0x1b0a77:_0x53c78f;}[_0x3b3960(0x229)](){const _0x5796b5=_0x3b3960;var _0x191f2d;return(_0x191f2d=this[_0x5796b5(0x46c)]['getConfig'](_0xe6854b))!=null?_0x191f2d:_0x5ccb89;}[_0x3b3960(0x3f8)](_0x14c238,_0x4eb377){const _0x3aae55=_0x3b3960;return _0x14c238[_0x3aae55(0x44b)](_0x3aae55(0x525),_0x4eb377);}[_0x3b3960(0x24d)](){const _0x373e33=_0x3b3960;this[_0x373e33(0x264)]-=0x1,this[_0x373e33(0x242)]['next'](this['_waitCount']);}},_0x2c3354[_0x3b3960(0x36d)]=_0x253b27([_0x2a4c33(0x0,_0x2015b3[_0x3b3960(0x547)](_0x485f8b['HTTPService'])),_0x2a4c33(0x1,_0x2015b3[_0x3b3960(0x582)]),_0x2a4c33(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x37c)]))],_0x2c3354[_0x3b3960(0x36d)]);var _0x3eb043=Object[_0x3b3960(0x57c)],_0x23e8ad=Object[_0x3b3960(0x2c2)],_0x5af5c8=(_0x222a5a,_0x23a248,_0x17f86b,_0x43aa09)=>{const _0x2fb0b6=_0x3b3960;for(var _0x34c7e4=_0x43aa09>0x1?void 0x0:_0x43aa09?_0x23e8ad(_0x23a248,_0x17f86b):_0x23a248,_0x206298=_0x222a5a[_0x2fb0b6(0x306)]-0x1,_0xaa7d9f;_0x206298>=0x0;_0x206298--)(_0xaa7d9f=_0x222a5a[_0x206298])&&(_0x34c7e4=(_0x43aa09?_0xaa7d9f(_0x23a248,_0x17f86b,_0x34c7e4):_0xaa7d9f(_0x34c7e4))||_0x34c7e4);return _0x43aa09&&_0x34c7e4&&_0x3eb043(_0x23a248,_0x17f86b,_0x34c7e4),_0x34c7e4;},_0x2122a9=(_0x3b4a11,_0x130585)=>(_0x270862,_0x35d715)=>_0x130585(_0x270862,_0x35d715,_0x3b4a11);let _0x592c62=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x575086,_0x45677b,_0x5995aa,_0xb3de95,_0x2b7796){const _0x54529f=_0x3b3960;super(),this[_0x54529f(0x3f4)]=_0x575086,this[_0x54529f(0x5b7)]=_0x45677b,this[_0x54529f(0x518)]=_0x5995aa,this[_0x54529f(0x4cf)]=_0xb3de95,this[_0x54529f(0x23b)]=_0x2b7796,this[_0x54529f(0x475)](),this[_0x54529f(0x334)]();}[_0x3b3960(0x334)](){const _0x193f9a=_0x3b3960,_0x5e7b8a=async _0x1362e8=>{const _0x55eec9=_0x41fb;(await this[_0x55eec9(0x4cf)]['requireSession'](_0x1362e8))[_0x55eec9(0x4ca)][_0x55eec9(0x2d1)](_0x2cc613[_0x55eec9(0x493)](_0x5e0c65=>_0x5e0c65[_0x55eec9(0x4aa)]===_0x106736[_0x55eec9(0x43e)][_0x55eec9(0x51f)]),_0x2cc613['takeUntil'](this['dispose$']))[_0x55eec9(0x35b)](_0x588bb9=>{const _0x56bdfd=_0x55eec9,_0x50ffda=_0x588bb9,{reason:_0x5b2344}=_0x50ffda[_0x56bdfd(0x3e0)];this[_0x56bdfd(0x3f4)][_0x56bdfd(0x3b9)](_0x44b766['IMessageService'])['show']({'type':_0x54ac63['MessageType'][_0x56bdfd(0x287)],'content':this['_localeService']['t'](_0x56bdfd(0x4cd))+'('+_0x5b2344+')'}),this[_0x56bdfd(0x518)][_0x56bdfd(0x49e)](new _0x3d1b6a['WorkbookEditablePermission'](_0x1362e8)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x1362e8);});};_0x345abe['merge'](this['_univerInstanceService'][_0x193f9a(0x388)](_0x2015b3[_0x193f9a(0x3a8)][_0x193f9a(0x321)]),this[_0x193f9a(0x5b7)][_0x193f9a(0x388)](_0x2015b3[_0x193f9a(0x3a8)][_0x193f9a(0x361)]))[_0x193f9a(0x2d1)](_0x2cc613[_0x193f9a(0x522)](_0x5f2672=>_0x5f2672['getUnitId']()),_0x2cc613[_0x193f9a(0x493)](_0x2017ea=>!_0x2015b3[_0x193f9a(0x511)](_0x2017ea)),_0x2cc613[_0x193f9a(0x244)](this[_0x193f9a(0x272)]))['subscribe'](_0x13c446=>{_0x5e7b8a(_0x13c446);});}[_0x3b3960(0x475)](){const _0x51f85d=_0x3b3960,_0x3ad3aa=async _0x5d27e1=>{const _0x80f832=_0x41fb;(await this[_0x80f832(0x4cf)][_0x80f832(0x5db)](_0x5d27e1))[_0x80f832(0x4ca)][_0x80f832(0x2d1)](_0x2cc613[_0x80f832(0x493)](_0x336cb5=>_0x336cb5[_0x80f832(0x4aa)]===_0x106736[_0x80f832(0x43e)][_0x80f832(0x1fd)]),_0x2cc613[_0x80f832(0x244)](this[_0x80f832(0x272)]))['subscribe'](_0x21f60e=>{const _0x403ce1=_0x80f832,_0x1da38d=_0x21f60e,{objectId:_0x2e6ad7}=_0x1da38d[_0x403ce1(0x3e0)],_0x185542=this['_injector'][_0x403ce1(0x3b9)](_0x467ed8[_0x403ce1(0x346)]);_0x2e6ad7===_0x5d27e1?_0x185542[_0x403ce1(0x516)](_0x5d27e1):_0x185542[_0x403ce1(0x41e)](_0x5d27e1,_0x2e6ad7);});};_0x345abe[_0x51f85d(0x4c8)](this[_0x51f85d(0x5b7)][_0x51f85d(0x388)](_0x2015b3['UniverInstanceType'][_0x51f85d(0x321)]),this[_0x51f85d(0x5b7)][_0x51f85d(0x388)](_0x2015b3['UniverInstanceType']['UNIVER_DOC']))[_0x51f85d(0x2d1)](_0x2cc613[_0x51f85d(0x522)](_0x302e99=>_0x302e99[_0x51f85d(0x304)]()),_0x2cc613[_0x51f85d(0x493)](_0x48c80f=>!_0x2015b3[_0x51f85d(0x511)](_0x48c80f)),_0x2cc613['takeUntil'](this[_0x51f85d(0x272)]))[_0x51f85d(0x35b)](_0x4ce521=>{_0x3ad3aa(_0x4ce521);});}};_0x592c62=_0x5af5c8([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)]['Starting'],_0x592c62),_0x2122a9(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x2122a9(0x1,_0x2015b3[_0x3b3960(0x37c)]),_0x2122a9(0x2,_0x2015b3[_0x3b3960(0x5d7)]),_0x2122a9(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x4b4)])),_0x2122a9(0x4,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x20a)]))],_0x592c62);var _0x2305c0=Object[_0x3b3960(0x57c)],_0x134975=Object[_0x3b3960(0x2c2)],_0x4958cc=(_0x443314,_0xe3f5be,_0x1bdcbc)=>_0xe3f5be in _0x443314?_0x2305c0(_0x443314,_0xe3f5be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1bdcbc}):_0x443314[_0xe3f5be]=_0x1bdcbc,_0xec63d=(_0x2e6bc1,_0x4d1167,_0xc0456d,_0x235160)=>{const _0x22b7b3=_0x3b3960;for(var _0x349a6f=_0x235160>0x1?void 0x0:_0x235160?_0x134975(_0x4d1167,_0xc0456d):_0x4d1167,_0x16562c=_0x2e6bc1[_0x22b7b3(0x306)]-0x1,_0x9572aa;_0x16562c>=0x0;_0x16562c--)(_0x9572aa=_0x2e6bc1[_0x16562c])&&(_0x349a6f=(_0x235160?_0x9572aa(_0x4d1167,_0xc0456d,_0x349a6f):_0x9572aa(_0x349a6f))||_0x349a6f);return _0x235160&&_0x349a6f&&_0x2305c0(_0x4d1167,_0xc0456d,_0x349a6f),_0x349a6f;},_0x4da9df=(_0x18cfd1,_0x570522)=>(_0x1f2207,_0x963a4a)=>_0x570522(_0x1f2207,_0x963a4a,_0x18cfd1),_0x3c3399=(_0x550116,_0x257b9a,_0x5a6b00)=>_0x4958cc(_0x550116,_0x257b9a+'',_0x5a6b00);const _0x16de06=_0x3b3960(0x360);_0x2c3354[_0x3b3960(0x2e3)]=class extends _0x2015b3[_0x3b3960(0x291)]{constructor(_0x1b4484,_0x3786a1,_0x429ae8,_0x207adb){const _0x40c0e6=_0x3b3960;super(),this['_config']=_0x1b4484,this[_0x40c0e6(0x501)]=_0x3786a1,this[_0x40c0e6(0x449)]=_0x429ae8,this[_0x40c0e6(0x3f4)]=_0x207adb;}[_0x3b3960(0x486)](){const _0x29577a=_0x3b3960;this[_0x29577a(0x2b2)]();}['onRendered'](){const _0xb6da62=_0x3b3960;this[_0xb6da62(0x2bf)]();}[_0x3b3960(0x2b2)](){const _0x227833=_0x3b3960;var _0x35970e,_0x1e28f7,_0x47eac0,_0x2b68f0;this['_injector'][_0x227833(0x337)](_0x2015b3[_0x227833(0x445)])&&this[_0x227833(0x501)]['error'](_0x227833(0x2d9),_0x227833(0x381));let _0x56c905=[[_0x2015b3[_0x227833(0x445)],{'useClass':_0x448505}],[_0x2c3354['CollaborationSessionService']],[_0x258d12],[_0x485f8b[_0x227833(0x536)]],[_0xaa3b19,{'useClass':_0x3e5f32}],[_0x25752c],[_0x2c3354[_0x227833(0x3dc)]],[_0x485f8b[_0x227833(0x4b6)]],[_0x319b0c],[_0x27cbd7],[_0x3d8f9f],[_0x474519],[_0x371f23],[_0x3f4b4d],[_0x592c62],[_0x1bd205,{'useClass':(_0x1e28f7=(_0x35970e=this[_0x227833(0x2f2)])==null?void 0x0:_0x35970e[_0x227833(0x401)])!=null?_0x1e28f7:_0x2c3354['CollaborationSocketService']}],[_0x485f8b['IHTTPImplementation'],{'useClass':_0x485f8b[_0x227833(0x2f8)]}],[_0x106736[_0x227833(0x2f3)],{'useClass':_0x2c3354[_0x227833(0x557)]}],[_0x2015b3[_0x227833(0x33d)],{'useClass':_0x2c3354['AuthzIoHttpService']}],[_0x17c816[_0x227833(0x318)],{'useClass':_0x2c3354[_0x227833(0x36d)]}],[_0x2c3354[_0x227833(0x3e2)]],[_0x2c3354[_0x227833(0x4bb)]],[_0x2c3354[_0x227833(0x217)]],[_0x25c571],[_0x2a0bf9]];(_0x47eac0=this[_0x227833(0x2f2)])!=null&&_0x47eac0['enableSingleActiveInstanceLock']&&_0x56c905[_0x227833(0x279)]([_0x55925e,{'useClass':_0x200347}]),_0x56c905=_0x2015b3['mergeOverrideWithDependencies'](_0x56c905,(_0x2b68f0=this[_0x227833(0x2f2)])==null?void 0x0:_0x2b68f0['override']),_0x56c905[_0x227833(0x4d1)](_0xeb21d7=>this[_0x227833(0x3f4)][_0x227833(0x28c)](_0xeb21d7)),this[_0x227833(0x3c9)]();}[_0x3b3960(0x2bf)](){const _0x567c43=_0x3b3960;this['disposeWithMe'](this[_0x567c43(0x449)][_0x567c43(0x5de)](_0x2015b3[_0x567c43(0x3a8)][_0x567c43(0x361)],[_0x304928])),this[_0x567c43(0x369)](this[_0x567c43(0x449)]['registerRenderModule'](_0x2015b3['UniverInstanceType'][_0x567c43(0x321)],[_0x1928ed]));}['_initModules'](){const _0x2165bc=_0x3b3960;var _0x75604e,_0x384ffd;this[_0x2165bc(0x3f4)]['get'](_0x485f8b[_0x2165bc(0x536)])[_0x2165bc(0x468)]({'priority':0x14,'interceptor':_0x485f8b[_0x2165bc(0x5f1)]({'maxParallel':0x6})}),(_0x75604e=this[_0x2165bc(0x2f2)])!=null&&_0x75604e[_0x2165bc(0x5ec)]||this[_0x2165bc(0x3f4)][_0x2165bc(0x3b9)](_0x2c3354[_0x2165bc(0x3dc)])[_0x2165bc(0x5ed)](),(_0x384ffd=this[_0x2165bc(0x2f2)])!=null&&_0x384ffd[_0x2165bc(0x4e1)]&&this[_0x2165bc(0x3f4)][_0x2165bc(0x3b9)](_0x371f23);}},_0x3c3399(_0x2c3354['UniverCollaborationClientPlugin'],_0x3b3960(0x3fe),_0x16de06),_0x2c3354[_0x3b3960(0x2e3)]=_0xec63d([_0x2015b3[_0x3b3960(0x423)](_0x106736['UniverCollaborationPlugin']),_0x4da9df(0x1,_0x2015b3['ILogService']),_0x4da9df(0x2,_0x572a63[_0x3b3960(0x5ee)]),_0x4da9df(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector']))],_0x2c3354[_0x3b3960(0x2e3)]),_0x2c3354[_0x3b3960(0x29d)]=_0xe6c904,_0x2c3354['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x3c7827,_0x2c3354[_0x3b3960(0x4ab)]=_0x332c44,_0x2c3354['CollaborationStatus']=_0xe45813,_0x2c3354[_0x3b3960(0x3b6)]=_0x1c24e3,_0x2c3354[_0x3b3960(0x413)]=_0x3f4b4d,_0x2c3354[_0x3b3960(0x5a7)]=_0x879d7e,_0x2c3354[_0x3b3960(0x568)]=_0x816b9c,_0x2c3354[_0x3b3960(0x1fe)]=_0x1bd205,_0x2c3354[_0x3b3960(0x424)]=_0xaa3b19,_0x2c3354['LOCAL_CACHE_INTERVAL_KEY']=_0x3f1ca0,_0x2c3354[_0x3b3960(0x26b)]=_0x4f5e36,_0x2c3354[_0x3b3960(0x4c9)]=_0x5cb8bb,_0x2c3354[_0x3b3960(0x467)]=_0x2c5950,_0x2c3354[_0x3b3960(0x3ca)]=_0x5648aa,_0x2c3354[_0x3b3960(0x45e)]=_0x510b8a,_0x2c3354[_0x3b3960(0x508)]=_0x87739a,_0x2c3354['WebURLService']=_0x3e5f32,_0x2c3354[_0x3b3960(0x39e)]=_0x5040c3,_0x2c3354[_0x3b3960(0x574)]=_0x5a449f,Object[_0x3b3960(0x57c)](_0x2c3354,Symbol[_0x3b3960(0x512)],{'value':'Module'});}));
|