@univerjs-pro/collaboration-client 0.4.1-nightly.202410251606 → 0.4.1-nightly.202410271605

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3b57cd=_0x4497;(function(_0x11e49b,_0x1ad100){const _0x19060f=_0x4497,_0x12f9e2=_0x11e49b();while(!![]){try{const _0x57bf38=-parseInt(_0x19060f(0x1d4))/0x1+parseInt(_0x19060f(0x34f))/0x2*(parseInt(_0x19060f(0x31f))/0x3)+parseInt(_0x19060f(0x202))/0x4+parseInt(_0x19060f(0x4c9))/0x5*(parseInt(_0x19060f(0x2cf))/0x6)+parseInt(_0x19060f(0x2bb))/0x7*(parseInt(_0x19060f(0x358))/0x8)+-parseInt(_0x19060f(0x542))/0x9+-parseInt(_0x19060f(0x2a7))/0xa*(parseInt(_0x19060f(0x4ac))/0xb);if(_0x57bf38===_0x1ad100)break;else _0x12f9e2['push'](_0x12f9e2['shift']());}catch(_0x421d3f){_0x12f9e2['push'](_0x12f9e2['shift']());}}}(_0xac00,0x4ee71));var Gt=Object['defineProperty'],Yt=(_0x480ea9,_0x39c29b,_0x4558d5)=>_0x39c29b in _0x480ea9?Gt(_0x480ea9,_0x39c29b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4558d5}):_0x480ea9[_0x39c29b]=_0x4558d5,u=(_0x56b00f,_0x83b6af,_0x43c7a6)=>Yt(_0x56b00f,typeof _0x83b6af!=_0x3b57cd(0x2c6)?_0x83b6af+'':_0x83b6af,_0x43c7a6);Object[_0x3b57cd(0x44e)](exports,Symbol[_0x3b57cd(0x428)],{'value':'Module'});const a=require(_0x3b57cd(0x4ca)),v=require(_0x3b57cd(0x4b0)),E=require(_0x3b57cd(0x31b)),J=require('@univerjs/design'),A=require('@univerjs/ui'),U=require('@univerjs/network'),_=require('@univerjs-pro/collaboration'),Kt=require(_0x3b57cd(0x3ad)),N=require(_0x3b57cd(0x1c9)),C=require(_0x3b57cd(0x4e5)),O=require('@univerjs/engine-render'),ne=require(_0x3b57cd(0x183)),j=require(_0x3b57cd(0x262)),Qe=require(_0x3b57cd(0x42b)),ie=require('@univerjs/sheets-ui'),y=require(_0x3b57cd(0x222)),Xt=require('@univerjs/rpc'),qt=require(_0x3b57cd(0x569)),dt=_0x3b57cd(0x4bb),zt=_0x3b57cd(0x485),St=_0x3b57cd(0x4ab),Jt=_0x3b57cd(0x507),Zt=0x7d0,vt=_0x3b57cd(0x17f),Qt=_0x3b57cd(0x259),mt=_0x3b57cd(0x400),es=0x7530,Fe=_0x3b57cd(0x539),gt=0x4e20,ts=0x4e20,ft='RETRY_CONNECTING_MAX_COUNT',ss=0x3,It=_0x3b57cd(0x50d),is=0x3e8,pt=_0x3b57cd(0x531),ns=_0x3b57cd(0x181),Ct='LOGIN_URL_KEY',rs=_0x3b57cd(0x4b4);var Et=(_0x35ac08=>(_0x35ac08[_0x35ac08['UNDEFINED']=0x0]='UNDEFINED',_0x35ac08[_0x35ac08['OK']=0x1]='OK',_0x35ac08[_0x35ac08[_0x3b57cd(0x16c)]=0x2]=_0x3b57cd(0x16c),_0x35ac08[_0x35ac08[_0x3b57cd(0x4d0)]=0x3]=_0x3b57cd(0x4d0),_0x35ac08[_0x35ac08[_0x3b57cd(0x599)]=0x4]=_0x3b57cd(0x599),_0x35ac08[_0x35ac08[_0x3b57cd(0x54e)]=0x5]='UNAUTHENTICATED',_0x35ac08[_0x35ac08[_0x3b57cd(0x538)]=0x6]=_0x3b57cd(0x538),_0x35ac08[_0x35ac08[_0x3b57cd(0x3d1)]=0x7]=_0x3b57cd(0x3d1),_0x35ac08[_0x35ac08[_0x3b57cd(0x2c1)]=0x8]=_0x3b57cd(0x2c1),_0x35ac08[_0x35ac08[_0x3b57cd(0x170)]=0x9]=_0x3b57cd(0x170),_0x35ac08[_0x35ac08[_0x3b57cd(0x26f)]=0x1389]=_0x3b57cd(0x26f),_0x35ac08[_0x35ac08[_0x3b57cd(0x4fc)]=0x1771]=_0x3b57cd(0x4fc),_0x35ac08[_0x35ac08[_0x3b57cd(0x563)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x35ac08[_0x35ac08[_0x3b57cd(0x392)]=0x1773]=_0x3b57cd(0x392),_0x35ac08[_0x35ac08['APPLY_REJECT']=0x1b59]=_0x3b57cd(0x3fb),_0x35ac08[_0x35ac08[_0x3b57cd(0x171)]=0x1b5a]=_0x3b57cd(0x171),_0x35ac08[_0x35ac08['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x35ac08[_0x35ac08[_0x3b57cd(0x4a1)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x35ac08[_0x35ac08['APPLY_DUPLICATED']=0x1b5d]=_0x3b57cd(0x49f),_0x35ac08[_0x35ac08[_0x3b57cd(0x492)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x35ac08[_0x35ac08[_0x3b57cd(0x385)]=0x2329]=_0x3b57cd(0x385),_0x35ac08[_0x35ac08['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x3b57cd(0x523),_0x35ac08[_0x35ac08[_0x3b57cd(0x3a4)]=0x232b]=_0x3b57cd(0x3a4),_0x35ac08[_0x35ac08[_0x3b57cd(0x37b)]=0x232c]=_0x3b57cd(0x37b),_0x35ac08[_0x35ac08[_0x3b57cd(0x2cc)]=0x232d]=_0x3b57cd(0x2cc),_0x35ac08[_0x35ac08[_0x3b57cd(0x573)]=0x2711]=_0x3b57cd(0x573),_0x35ac08[_0x35ac08[_0x3b57cd(0x371)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x35ac08[_0x35ac08[_0x3b57cd(0x4eb)]=0x2713]=_0x3b57cd(0x4eb),_0x35ac08[_0x35ac08[_0x3b57cd(0x3dd)]=0x2714]=_0x3b57cd(0x3dd),_0x35ac08[_0x35ac08['UNRECOGNIZED']=-0x1]=_0x3b57cd(0x3ce),_0x35ac08))(Et||{}),H=(_0x3a140f=>(_0x3a140f[_0x3a140f[_0x3b57cd(0x414)]=0x0]=_0x3b57cd(0x414),_0x3a140f[_0x3a140f[_0x3b57cd(0x1a9)]=0x1]=_0x3b57cd(0x1a9),_0x3a140f[_0x3a140f[_0x3b57cd(0x53b)]=0x2]=_0x3b57cd(0x53b),_0x3a140f[_0x3a140f[_0x3b57cd(0x2fd)]=0x3]=_0x3b57cd(0x2fd),_0x3a140f[_0x3a140f['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x3a140f[_0x3a140f[_0x3b57cd(0x3ce)]=-0x1]=_0x3b57cd(0x3ce),_0x3a140f))(H||{}),b=(_0x11970f=>(_0x11970f[_0x11970f[_0x3b57cd(0x3dc)]=0x0]=_0x3b57cd(0x3dc),_0x11970f[_0x11970f['HELLO']=0x1]=_0x3b57cd(0x43e),_0x11970f[_0x11970f[_0x3b57cd(0x193)]=0x2]='JOIN',_0x11970f[_0x11970f[_0x3b57cd(0x290)]=0x3]=_0x3b57cd(0x290),_0x11970f[_0x11970f[_0x3b57cd(0x591)]=0x4]='INGEST',_0x11970f[_0x11970f[_0x3b57cd(0x410)]=0x5]='HEARTBEAT',_0x11970f[_0x11970f['RECV']=0x6]=_0x3b57cd(0x595),_0x11970f[_0x11970f[_0x3b57cd(0x3ce)]=-0x1]=_0x3b57cd(0x3ce),_0x11970f))(b||{}),Ge=(_0x1f250c=>(_0x1f250c[_0x1f250c[_0x3b57cd(0x263)]=0x0]=_0x3b57cd(0x263),_0x1f250c[_0x1f250c['OK']=0x1]='OK',_0x1f250c[_0x1f250c[_0x3b57cd(0x33d)]=0x2]='FAIL',_0x1f250c[_0x1f250c[_0x3b57cd(0x3ce)]=-0x1]=_0x3b57cd(0x3ce),_0x1f250c))(Ge||{}),bt=(_0x423b24=>(_0x423b24[_0x423b24['Undefined']=0x0]=_0x3b57cd(0x1ec),_0x423b24[_0x423b24[_0x3b57cd(0x4a9)]=0x1]=_0x3b57cd(0x4a9),_0x423b24[_0x423b24['HttpExport']=0x2]='HttpExport',_0x423b24[_0x423b24['UnitEmbedded']=0x3]='UnitEmbedded',_0x423b24[_0x423b24['UnitSnapshot']=0x4]='UnitSnapshot',_0x423b24[_0x423b24[_0x3b57cd(0x3ce)]=-0x1]=_0x3b57cd(0x3ce),_0x423b24))(bt||{});const $=_0x3b57cd(0x465),os={};function Tt(_0x1cc2fd){const _0x21e05e=_0x3b57cd;var _0x36eb97,_0x7d5f50,_0x4a5cf4,_0x5292d3,_0x4ade2f;const _0x34a016=_0x1cc2fd[_0x21e05e(0x30a)],_0x1e1364=JSON[_0x21e05e(0x42d)](_0x34a016);switch(_0x1e1364[_0x21e05e(0x20b)]){case b[_0x21e05e(0x410)]:case b[_0x21e05e(0x43e)]:{const _0x2f2caa=_0x1e1364['infoRsp'];return{..._0x1e1364,'data':_0x2f2caa,'cmd':_0x1e1364[_0x21e05e(0x20b)]};}case b[_0x21e05e(0x193)]:{const _0xeefad4=_0x1e1364[_0x21e05e(0x4bf)];return{..._0x1e1364,'data':_0xeefad4,'cmd':_0x1e1364['cmd']};}case b['RECV']:{const _0x46b34b=_0x1e1364[_0x21e05e(0x274)];switch(_0x46b34b['eventID']){case _['CollaborationEvent']['PERMISSION_REJ']:return{..._0x1e1364,'data':{..._0x46b34b,'data':(_0x36eb97=_0x46b34b[_0x21e05e(0x326)])==null?void 0x0:_0x36eb97['cs']},'cmd':_0x1e1364['cmd']};case _[_0x21e05e(0x556)][_0x21e05e(0x1a1)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':(_0x7d5f50=_0x46b34b[_0x21e05e(0x1cd)])==null?void 0x0:_0x7d5f50['cs']},'cmd':_0x1e1364['cmd']};case _[_0x21e05e(0x556)][_0x21e05e(0x27a)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':(_0x4a5cf4=_0x46b34b[_0x21e05e(0x58f)])==null?void 0x0:_0x4a5cf4['cs']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _['CollaborationEvent'][_0x21e05e(0x239)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':(_0x5292d3=_0x46b34b['csRejEvent'])==null?void 0x0:_0x5292d3['cs']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x2c0)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':(_0x4ade2f=_0x46b34b[_0x21e05e(0x25e)])==null?void 0x0:_0x4ade2f['cs']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b['updateCursorEvent']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)]['USERS_ENTER']:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b['joinEvent']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x40e)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b['leaveEvent']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x4a4)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b[_0x21e05e(0x2f3)]},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x1d5)]:case _['CollaborationEvent'][_0x21e05e(0x1a7)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b[_0x21e05e(0x37e)]},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x43d)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b[_0x21e05e(0x2f3)]},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _['CollaborationEvent'][_0x21e05e(0x3f5)]:return{..._0x1e1364,'data':_0x46b34b,'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x574)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b['commentUpdateEvent']},'cmd':_0x1e1364['cmd']};case _[_0x21e05e(0x556)][_0x21e05e(0x22a)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b[_0x21e05e(0x4d9)]},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x2f5)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b[_0x21e05e(0x4f7)]},'cmd':_0x1e1364[_0x21e05e(0x20b)]};default:return _0x1e1364;}}default:return _0x1e1364;}}function Rt(_0x495102){const _0x2040ba=_0x3b57cd;switch(_0x495102[_0x2040ba(0x20b)]){case b[_0x2040ba(0x410)]:case b[_0x2040ba(0x43e)]:return JSON['stringify']({'cmd':_0x495102[_0x2040ba(0x20b)],'routeKey':_0x495102[_0x2040ba(0x451)]});case b[_0x2040ba(0x591)]:{let _0x577a69;switch(_0x495102['data'][_0x2040ba(0x2f8)]){case _[_0x2040ba(0x556)][_0x2040ba(0x2d2)]:{_0x577a69={'eventID':_[_0x2040ba(0x556)][_0x2040ba(0x2d2)],'updateCursorEvent':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x30a)]};break;}case _[_0x2040ba(0x556)]['USERS_LEAVE']:{_0x577a69={'eventID':_[_0x2040ba(0x556)]['USERS_LEAVE'],'leaveEvent':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x30a)]};break;}case _[_0x2040ba(0x556)][_0x2040ba(0x4ff)]:{_0x577a69={'eventID':_['CollaborationEvent'][_0x2040ba(0x4ff)],'joinEvent':_0x495102[_0x2040ba(0x30a)]['data']};break;}case _[_0x2040ba(0x556)]['LIVESHARE_NEW_HOST']:{_0x577a69={'eventID':_[_0x2040ba(0x556)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x30a)]};break;}case _[_0x2040ba(0x556)][_0x2040ba(0x1a7)]:{_0x577a69={'eventID':_['CollaborationEvent'][_0x2040ba(0x1a7)],'liveShareOperation':_0x495102[_0x2040ba(0x30a)]['data']};break;}case _[_0x2040ba(0x556)][_0x2040ba(0x43d)]:{_0x577a69={'eventID':_[_0x2040ba(0x556)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x30a)]};break;}case _[_0x2040ba(0x556)][_0x2040ba(0x2af)]:{_0x577a69={'eventID':_['CollaborationEvent'][_0x2040ba(0x2af)],'liveShareRequestHost':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x30a)]};break;}case _[_0x2040ba(0x556)][_0x2040ba(0x1d5)]:{_0x577a69={'eventID':_[_0x2040ba(0x556)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x577a69={'eventID':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x2f8)]};}return JSON[_0x2040ba(0x2fc)]({'cmd':_0x495102[_0x2040ba(0x20b)],'routeKey':_0x495102['routeKey'],'collaMsg':_0x577a69});}case b['JOIN']:return JSON['stringify']({'cmd':_0x495102[_0x2040ba(0x20b)],'routeKey':_0x495102[_0x2040ba(0x451)],'joinReq':_0x495102[_0x2040ba(0x30a)]});case b['LEAVE']:return JSON[_0x2040ba(0x2fc)]({'cmd':_0x495102[_0x2040ba(0x20b)],'routeKey':_0x495102[_0x2040ba(0x451)],'leaveReq':_0x495102[_0x2040ba(0x30a)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var as=Object[_0x3b57cd(0x44e)],cs=Object[_0x3b57cd(0x35f)],ls=(_0x323f86,_0x115890,_0x50630f,_0x3a8327)=>{const _0x4e165e=_0x3b57cd;for(var _0x59a96b=_0x3a8327>0x1?void 0x0:_0x3a8327?cs(_0x115890,_0x50630f):_0x115890,_0x45f574=_0x323f86[_0x4e165e(0x54c)]-0x1,_0x244af0;_0x45f574>=0x0;_0x45f574--)(_0x244af0=_0x323f86[_0x45f574])&&(_0x59a96b=(_0x3a8327?_0x244af0(_0x115890,_0x50630f,_0x59a96b):_0x244af0(_0x59a96b))||_0x59a96b);return _0x3a8327&&_0x59a96b&&as(_0x115890,_0x50630f,_0x59a96b),_0x59a96b;},ae=(_0x973642,_0x8ef710)=>(_0x1a4625,_0x44f55e)=>_0x8ef710(_0x1a4625,_0x44f55e,_0x973642);const Ye=a[_0x3b57cd(0x227)](_0x3b57cd(0x570));function hs(_0x529547,_0x437e94,_0x71251e){const _0x367f4b=_0x3b57cd;return _0x529547+'/'+_0x437e94+_0x367f4b(0x3c6)+_0x71251e+_0x367f4b(0x1a4);}exports[_0x3b57cd(0x1f5)]=class extends a[_0x3b57cd(0x54b)]{constructor(_0xe2613e,_0x272f87,_0xf7ee93,_0x1e3b96,_0x51ca4c){const _0x3027a4=_0x3b57cd;super(),this[_0x3027a4(0x4dd)]=_0xe2613e,this[_0x3027a4(0x3df)]=_0x272f87,this['_configService']=_0xf7ee93,this[_0x3027a4(0x45c)]=_0x1e3b96,this[_0x3027a4(0x2ba)]=_0x51ca4c;}[_0x3b57cd(0x273)](_0x254e8c){const _0x3fd5b9=_0x3b57cd,_0x503652=this[_0x3fd5b9(0x3df)]['createSocket'](_0x254e8c);if(!_0x503652)throw new Error(_0x3fd5b9(0x2d4));const _0x2ea763=new a[(_0x3fd5b9(0x300))](),_0x28c475=new v[(_0x3fd5b9(0x56b))]();_0x2ea763[_0x3fd5b9(0x477)](_0x503652[_0x3fd5b9(0x1e2)][_0x3fd5b9(0x508)](_0x135494=>_0x28c475[_0x3fd5b9(0x3b8)](_0x135494))),_0x2ea763[_0x3fd5b9(0x477)](a[_0x3fd5b9(0x44c)](()=>_0x28c475[_0x3fd5b9(0x23a)]()));const _0x346b75=new v[(_0x3fd5b9(0x56b))]();_0x2ea763[_0x3fd5b9(0x477)](_0x503652[_0x3fd5b9(0x2dc)]['subscribe'](_0x24b59b=>_0x346b75[_0x3fd5b9(0x3b8)](_0x24b59b))),_0x2ea763['add'](a[_0x3fd5b9(0x44c)](()=>_0x346b75[_0x3fd5b9(0x23a)]()));const _0x133b2c=new v[(_0x3fd5b9(0x56b))]();_0x2ea763[_0x3fd5b9(0x477)](_0x503652['message$']['subscribe'](_0x56f77c=>{const _0x238de7=_0x3fd5b9,_0x139c8b=Tt(_0x56f77c);_0x133b2c[_0x238de7(0x3b8)](_0x139c8b);})),_0x2ea763[_0x3fd5b9(0x477)](a['toDisposable'](()=>_0x133b2c['complete']()));let _0x8f4a77;const _0x800ebf=()=>{const _0x437a44=_0x3fd5b9;_0x346b75[_0x437a44(0x3b8)](new Event(_0x437a44(0x397))),_0x28c475[_0x437a44(0x3b8)](new CloseEvent(_0x437a44(0x397))),_0x8f4a77[_0x437a44(0x3bd)]();};return _0x8f4a77={'memberID':'','close$':_0x28c475['asObservable'](),'error$':_0x346b75['asObservable'](),'open$':_0x503652[_0x3fd5b9(0x283)],'message$':_0x133b2c[_0x3fd5b9(0x355)](),'send':_0x40e8f1=>{const _0x40720d=_0x3fd5b9;if(_0x40e8f1[_0x40720d(0x20b)]===b['INGEST']){if(_0x40e8f1[_0x40720d(0x30a)]['eventID']===_[_0x40720d(0x556)][_0x40720d(0x1bb)]){this[_0x40720d(0x4f2)](_0x8f4a77,_0x40e8f1[_0x40720d(0x30a)])['catch'](_0x202bd8=>{const _0x1410a7=_0x40720d;this[_0x1410a7(0x45c)]['error'](_0x202bd8),_0x800ebf();});return;}if(_0x40e8f1[_0x40720d(0x30a)][_0x40720d(0x2f8)]===_['CollaborationEvent'][_0x40720d(0x3fd)]){const _0x13fa8f=_0x40e8f1[_0x40720d(0x30a)];this['_fetchMissChangesets'](_0x13fa8f)[_0x40720d(0x210)](_0x46b1e9=>{const _0x38643a=_0x40720d;_0x133b2c[_0x38643a(0x3b8)]({'cmd':b['RECV'],'code':Ge['OK'],'routeKey':_0x13fa8f[_0x38643a(0x30a)][_0x38643a(0x234)],'routeType':'','data':{'eventID':_[_0x38643a(0x556)][_0x38643a(0x24a)],'data':{'changesets':_0x46b1e9}}});})[_0x40720d(0x1e6)](_0x5a7879=>{const _0x598ff6=_0x40720d;this['_logService'][_0x598ff6(0x37f)](_0x5a7879),_0x800ebf();});return;}}_0x503652[_0x40720d(0x1e8)](Rt(_0x40e8f1));},'close':()=>{const _0x4b49e3=_0x3fd5b9;_0x503652[_0x4b49e3(0x3bd)](),_0x2ea763[_0x4b49e3(0x378)]();}},_0x8f4a77;}async['_submitChangeset'](_0x158212,_0x2b0ce0){const _0x177897=_0x3b57cd;var _0x274b5c,_0x37b534;const {unitType:_0x402705,unitID:_0x93310a,changeset:_0x274b7e}=_0x2b0ce0[_0x177897(0x30a)],_0x1b8059={'unitID':_0x93310a,'memberID':_0x158212[_0x177897(0x42a)],'type':_0x402705,'changeset':_[_0x177897(0x1b5)](_0x274b7e)},_0x119b7b=this['_configService'][_0x177897(0x38e)](pt),_0x1b12cf=this[_0x177897(0x490)][_0x177897(0x38e)]($),_0x58f07e=hs((_0x37b534=(_0x274b5c=_0x1b12cf==null?void 0x0:_0x1b12cf[_0x177897(0x188)])!=null?_0x274b5c:_0x119b7b)!=null?_0x37b534:ns,_0x402705,_0x93310a);try{await this[_0x177897(0x4dd)][_0x177897(0x1cb)](_0x58f07e,{'body':_0x1b8059});}catch(_0x331edd){throw this['_logService'][_0x177897(0x37f)](_0x177897(0x292),_0x177897(0x2b2)),_0x331edd;}}async['_fetchMissChangesets'](_0x1a11c3){const _0x878aa=_0x3b57cd,{unitID:_0x488205,from:_0x2cca5b,to:_0x2ee647,unitType:_0x5ef1be}=_0x1a11c3[_0x878aa(0x30a)];return(await this['_snapshotServerService'][_0x878aa(0x405)]({'metadata':void 0x0},{'unitID':_0x488205,'type':_0x5ef1be,'from':_0x2cca5b,'to':_0x2ee647}))['changesets'];}},exports[_0x3b57cd(0x1f5)]=ls([ae(0x0,a[_0x3b57cd(0x4ad)](U[_0x3b57cd(0x44a)])),ae(0x1,a['Inject'](U[_0x3b57cd(0x483)])),ae(0x2,a[_0x3b57cd(0x2f9)]),ae(0x3,a[_0x3b57cd(0x4e7)]),ae(0x4,_['ISnapshotServerService'])],exports['CollaborationSocketService']);const _s=_0x3b57cd(0x1c3);function us(_0x505a61){const _0x3de727=_0x3b57cd;return JSON[_0x3de727(0x2fc)](_0x505a61)['length'];}class Ke{constructor(){const _0x16f86d=_0x3b57cd;u(this,_0x16f86d(0x47d),new v[(_0x16f86d(0x56b))]()),u(this,_0x16f86d(0x45f),this[_0x16f86d(0x47d)][_0x16f86d(0x355)]());}['onCommentUpdate'](_0x1507c1){const _0x3cc45f=_0x3b57cd;this[_0x3cc45f(0x47d)][_0x3cc45f(0x3b8)](_0x1507c1);}}var ds=Object['defineProperty'],Ss=Object[_0x3b57cd(0x35f)],vs=(_0x4251c2,_0x5a69dc,_0x4ef0d8,_0xa4a9a3)=>{const _0x1507b9=_0x3b57cd;for(var _0x4525dd=_0xa4a9a3>0x1?void 0x0:_0xa4a9a3?Ss(_0x5a69dc,_0x4ef0d8):_0x5a69dc,_0x10005c=_0x4251c2[_0x1507b9(0x54c)]-0x1,_0x5ba318;_0x10005c>=0x0;_0x10005c--)(_0x5ba318=_0x4251c2[_0x10005c])&&(_0x4525dd=(_0xa4a9a3?_0x5ba318(_0x5a69dc,_0x4ef0d8,_0x4525dd):_0x5ba318(_0x4525dd))||_0x4525dd);return _0xa4a9a3&&_0x4525dd&&ds(_0x5a69dc,_0x4ef0d8,_0x4525dd),_0x4525dd;},et=(_0x484478,_0x4d14eb)=>(_0x405ce0,_0x483ae3)=>_0x4d14eb(_0x405ce0,_0x483ae3,_0x484478);exports['MemberService']=class extends a[_0x3b57cd(0x54b)]{constructor(_0x71d3f8,_0x2e8006){const _0x3569b2=_0x3b57cd;super(),u(this,_0x3569b2(0x2bf),new Map()),(this['_univerInstanceService']=_0x71d3f8,this['_userManagerService']=_0x2e8006,this[_0x3569b2(0x431)](a[_0x3569b2(0x44c)](v[_0x3569b2(0x547)](this[_0x3569b2(0x562)][_0x3569b2(0x44f)](a[_0x3569b2(0x2b4)][_0x3569b2(0x53b)])[_0x3569b2(0x3b4)](E['map'](_0x26bd84=>_0x26bd84[_0x3569b2(0x2fa)]())),this['_univerInstanceService'][_0x3569b2(0x44f)](a['UniverInstanceType'][_0x3569b2(0x1a9)])[_0x3569b2(0x3b4)](E[_0x3569b2(0x439)](_0x36f25f=>_0x36f25f[_0x3569b2(0x2fa)]())),this[_0x3569b2(0x562)][_0x3569b2(0x44f)](a[_0x3569b2(0x2b4)][_0x3569b2(0x2fd)])[_0x3569b2(0x3b4)](E[_0x3569b2(0x439)](_0x32e0b4=>_0x32e0b4['getUnitId']())))['subscribe'](_0x68f47b=>this['_removeRoom'](_0x68f47b)))));}[_0x3b57cd(0x1f4)](_0x3fbd7f){const _0xa37c1b=_0x3b57cd;this[_0xa37c1b(0x1ca)][_0xa37c1b(0x1f4)](_0x3fbd7f);}[_0x3b57cd(0x176)](){const _0x5ecbc6=_0x3b57cd;return this[_0x5ecbc6(0x1ca)][_0x5ecbc6(0x176)]();}[_0x3b57cd(0x2ee)](_0x2aa1d3,_0x41c18d){const _0x4189fb=_0x3b57cd;let _0x2fdcb9=this['_roomMembers'][_0x4189fb(0x4e6)](_0x2aa1d3);_0x2fdcb9||(_0x2fdcb9=new ms(),this[_0x4189fb(0x2bf)][_0x4189fb(0x4af)](_0x2aa1d3,_0x2fdcb9)),_0x2fdcb9[_0x4189fb(0x2ee)](_0x41c18d);}[_0x3b57cd(0x580)](_0x180a19,_0x17f35e){const _0x22de84=_0x3b57cd,_0x4ebf2d=this['_roomMembers']['get'](_0x180a19);_0x4ebf2d&&_0x4ebf2d[_0x22de84(0x580)](_0x17f35e);}[_0x3b57cd(0x1fd)](_0x118e1b){const _0x299294=_0x3b57cd;return this['_roomMembers'][_0x299294(0x4e6)](_0x118e1b);}[_0x3b57cd(0x29c)](_0xc95a82,_0x517cde){const _0x4281d8=_0x3b57cd,_0x5c40dd=this[_0x4281d8(0x2bf)][_0x4281d8(0x4e6)](_0xc95a82);if(_0x5c40dd)return _0x5c40dd[_0x4281d8(0x29c)](_0x517cde);}[_0x3b57cd(0x1a0)](_0x389a26){const _0x5c6947=_0x3b57cd,_0x4cf235=this['_roomMembers'][_0x5c6947(0x4e6)](_0x389a26);_0x4cf235&&(_0x4cf235[_0x5c6947(0x378)](),this[_0x5c6947(0x2bf)][_0x5c6947(0x524)](_0x389a26));}[_0x3b57cd(0x378)](){const _0x351575=_0x3b57cd;this[_0x351575(0x2bf)][_0x351575(0x571)](_0x1021de=>_0x1021de['dispose']()),this[_0x351575(0x2bf)]['clear']();}},exports[_0x3b57cd(0x2e4)]=vs([et(0x0,a[_0x3b57cd(0x424)]),et(0x1,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x34b)]))],exports[_0x3b57cd(0x2e4)]);class ms extends a[_0x3b57cd(0x54b)]{constructor(){const _0x5357a0=_0x3b57cd;super(...arguments),u(this,_0x5357a0(0x1de),new Map());}[_0x3b57cd(0x378)](){const _0x136152=_0x3b57cd;this[_0x136152(0x1de)][_0x136152(0x1c2)]();}[_0x3b57cd(0x2ee)](_0x48ecd0){const _0x121ae5=_0x3b57cd;this[_0x121ae5(0x1de)]['set'](_0x48ecd0[_0x121ae5(0x42a)],_0x48ecd0);}['removeMember'](_0x804255){const _0x453693=_0x3b57cd;this[_0x453693(0x1de)][_0x453693(0x524)](_0x804255);}[_0x3b57cd(0x29c)](_0x54646a){const _0x286aec=_0x3b57cd;return this[_0x286aec(0x1de)][_0x286aec(0x4e6)](_0x54646a);}[_0x3b57cd(0x4ed)](){const _0x261f48=_0x3b57cd;return Array[_0x261f48(0x348)](this[_0x261f48(0x1de)][_0x261f48(0x345)]());}}var gs=Object[_0x3b57cd(0x44e)],fs=Object[_0x3b57cd(0x35f)],Is=(_0x568b84,_0x12522a,_0x2f3688,_0x4db8a0)=>{for(var _0x5f27a2=_0x4db8a0>0x1?void 0x0:_0x4db8a0?fs(_0x12522a,_0x2f3688):_0x12522a,_0x2d9d35=_0x568b84['length']-0x1,_0xf5c4cb;_0x2d9d35>=0x0;_0x2d9d35--)(_0xf5c4cb=_0x568b84[_0x2d9d35])&&(_0x5f27a2=(_0x4db8a0?_0xf5c4cb(_0x12522a,_0x2f3688,_0x5f27a2):_0xf5c4cb(_0x5f27a2))||_0x5f27a2);return _0x4db8a0&&_0x5f27a2&&gs(_0x12522a,_0x2f3688,_0x5f27a2),_0x5f27a2;},G=(_0x7844b7,_0x5367df)=>(_0x109a0d,_0x359dde)=>_0x5367df(_0x109a0d,_0x359dde,_0x7844b7),x=(_0x58852d=>(_0x58852d[_0x58852d[_0x3b57cd(0x2b5)]=0x0]='IDLE',_0x58852d[_0x58852d[_0x3b57cd(0x1e7)]=0x1]=_0x3b57cd(0x1e7),_0x58852d[_0x58852d['OFFLINE']=0x2]=_0x3b57cd(0x590),_0x58852d[_0x58852d['ONLINE']=0x3]='ONLINE',_0x58852d))(x||{});exports[_0x3b57cd(0x2e9)]=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x3c333c,_0x57cbc6,_0x4e491b,_0x37a30a,_0x2ab352,_0x3be881,_0x4c2315,_0x5ddb47,_0x9141d8,_0x328e2c){const _0x3d6e01=_0x3b57cd;super(),u(this,_0x3d6e01(0x1ad),new v[(_0x3d6e01(0x470))](0x0)),u(this,_0x3d6e01(0x407),this[_0x3d6e01(0x1ad)][_0x3d6e01(0x355)]()),u(this,_0x3d6e01(0x519),new v[(_0x3d6e01(0x56b))]()),u(this,'event$',this[_0x3d6e01(0x519)]['asObservable']()),u(this,'_socket'),u(this,_0x3d6e01(0x1a3)),u(this,_0x3d6e01(0x58e)),u(this,_0x3d6e01(0x3d4),!0x1),u(this,_0x3d6e01(0x298),null),(this[_0x3d6e01(0x526)]=_0x3c333c,this[_0x3d6e01(0x45c)]=_0x4e491b,this['_beforeCloseService']=_0x37a30a,this[_0x3d6e01(0x4e1)]=_0x2ab352,this[_0x3d6e01(0x490)]=_0x3be881,this[_0x3d6e01(0x4fd)]=_0x4c2315,this[_0x3d6e01(0x312)]=_0x5ddb47,this['_commentService']=_0x9141d8,this[_0x3d6e01(0x1d6)]=_0x328e2c,this[_0x3d6e01(0x3d4)]=!!this[_0x3d6e01(0x1d6)],_0x57cbc6[_0x3d6e01(0x3b4)](v[_0x3d6e01(0x1b3)](this[_0x3d6e01(0x3fc)]))[_0x3d6e01(0x508)](_0x406587=>{const _0x1b1abc=_0x3d6e01;var _0x9ef4a4;typeof _0x406587>'u'||(this['_socket']=_0x406587,_0x406587?(this[_0x1b1abc(0x39b)](_0x406587),this[_0x1b1abc(0x1a3)]=_0x406587[_0x1b1abc(0x264)][_0x1b1abc(0x508)](_0x50b08f=>{const _0xdce2ee=_0x1b1abc;_0x50b08f['routeKey']===this[_0xdce2ee(0x526)]&&this[_0xdce2ee(0x2ab)](_0x50b08f);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x1b1abc(0x1ad)][_0x1b1abc(0x3b8)](0x2),(_0x9ef4a4=this['_socketMessageSubscription'])==null||_0x9ef4a4['unsubscribe'](),this[_0x1b1abc(0x1a3)]=null));}),this[_0x3d6e01(0x431)](this[_0x3d6e01(0x4ec)][_0x3d6e01(0x277)](()=>{const _0x3ec9b6=_0x3d6e01;var _0x22aa9a;(_0x22aa9a=this['_socket'])==null||_0x22aa9a[_0x3ec9b6(0x1e8)]({'cmd':b[_0x3ec9b6(0x290)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x3a4894=_0x3b57cd;return this[_0x3a4894(0x1ad)][_0x3a4894(0x2d9)]();}[_0x3b57cd(0x339)](){const _0x167d0b=_0x3b57cd;var _0x4a5b67,_0x514727;return(_0x514727=(_0x4a5b67=this[_0x167d0b(0x236)])==null?void 0x0:_0x4a5b67['memberID'])!=null?_0x514727:null;}[_0x3b57cd(0x378)](){const _0x462230=_0x3b57cd;super[_0x462230(0x378)](),this['dispose$'][_0x462230(0x3b8)](),this[_0x462230(0x3fc)][_0x462230(0x23a)]();}[_0x3b57cd(0x3bd)](){const _0x3bf6c6=_0x3b57cd;var _0x12925e,_0xd362e3;this[_0x3bf6c6(0x1f1)](),(_0x12925e=this[_0x3bf6c6(0x236)])==null||_0x12925e[_0x3bf6c6(0x1e8)]({'cmd':b[_0x3bf6c6(0x290)],'data':{'roomID':this['_unitID']}}),(_0xd362e3=this['_socket'])==null||_0xd362e3['close'](),this['_event$'][_0x3bf6c6(0x23a)](),this[_0x3bf6c6(0x1ad)][_0x3bf6c6(0x23a)](),this[_0x3bf6c6(0x378)]();}[_0x3b57cd(0x2ab)](_0x4ca3d7){const _0x46b009=_0x3b57cd;_0x4ca3d7[_0x46b009(0x20b)]===b['JOIN']?this[_0x46b009(0x55c)](_0x4ca3d7):_0x4ca3d7['cmd']===b[_0x46b009(0x595)]&&this[_0x46b009(0x32f)](_0x4ca3d7);}['_joinRoom'](_0x3d1c58){const _0x539f0a=_0x3b57cd;this[_0x539f0a(0x1ad)][_0x539f0a(0x3b8)](0x1),_0x3d1c58['send']({'cmd':b[_0x539f0a(0x193)],'routeKey':this[_0x539f0a(0x526)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x3b57cd(0x55c)](_0x1cfa51){const _0x280bcc=_0x3b57cd;var _0x1bea44;if(_0x1cfa51['code']===Ge['FAIL']){this[_0x280bcc(0x4e1)][_0x280bcc(0x2e8)]({'type':J[_0x280bcc(0x502)]['Warning'],'content':this['_localeService']['t'](_0x280bcc(0x17d))}),this[_0x280bcc(0x1ad)][_0x280bcc(0x3b8)](0x2);return;}this['_sessionStatus$'][_0x280bcc(0x3b8)](0x3);const _0xe37486=(_0x1bea44=_0x1cfa51[_0x280bcc(0x30a)][_0x280bcc(0x190)][this['_unitID']])==null?void 0x0:_0x1bea44[_0x280bcc(0x38c)];_0xe37486&&_0xe37486[_0x280bcc(0x571)](_0x186f3f=>this[_0x280bcc(0x312)][_0x280bcc(0x2ee)](this[_0x280bcc(0x526)],_0x186f3f));}[_0x3b57cd(0x32f)](_0x27b7a4){const _0x4e4f34=_0x3b57cd;try{const _0x12268a=_0x27b7a4[_0x4e4f34(0x30a)];switch(_0x12268a[_0x4e4f34(0x2f8)]){case _[_0x4e4f34(0x556)][_0x4e4f34(0x4ff)]:this[_0x4e4f34(0x317)](_0x12268a),this[_0x4e4f34(0x519)][_0x4e4f34(0x3b8)](_0x12268a);break;case _[_0x4e4f34(0x556)][_0x4e4f34(0x40e)]:this['_onUserLeave'](_0x12268a),this['_event$']['next'](_0x12268a);break;case _[_0x4e4f34(0x556)][_0x4e4f34(0x1a1)]:case _[_0x4e4f34(0x556)][_0x4e4f34(0x2c0)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x4e4f34(0x3b8)](_0x12268a);break;case _[_0x4e4f34(0x556)][_0x4e4f34(0x3f5)]:this['_logService'][_0x4e4f34(0x37f)](_0x4e4f34(0x528)+JSON[_0x4e4f34(0x2fc)](_0x12268a)),this[_0x4e4f34(0x519)][_0x4e4f34(0x3b8)](_0x12268a);break;case _['CollaborationEvent'][_0x4e4f34(0x574)]:this['_commentService'][_0x4e4f34(0x40a)](_0x12268a[_0x4e4f34(0x30a)]),this[_0x4e4f34(0x519)][_0x4e4f34(0x3b8)](_0x12268a);break;default:this[_0x4e4f34(0x519)][_0x4e4f34(0x3b8)](_0x12268a);}}catch(_0x436b53){this[_0x4e4f34(0x45c)][_0x4e4f34(0x37f)](_0x436b53,_0x27b7a4);}}[_0x3b57cd(0x317)](_0x700516){const _0x143466=_0x3b57cd;this['_memberService'][_0x143466(0x2ee)](this[_0x143466(0x526)],_0x700516[_0x143466(0x30a)]);}[_0x3b57cd(0x2a6)](_0x57c941){const _0x57e3d9=_0x3b57cd;this[_0x57e3d9(0x312)][_0x57e3d9(0x580)](this[_0x57e3d9(0x526)],_0x57c941[_0x57e3d9(0x30a)][_0x57e3d9(0x42a)]);}async[_0x3b57cd(0x1e8)](_0x529b14,_0x1c1ed2){const _0x13e7fe=_0x3b57cd;if(this[_0x13e7fe(0x36e)]!==0x3||!this[_0x13e7fe(0x236)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x529b14[_0x13e7fe(0x2f8)]===_[_0x13e7fe(0x556)]['SUBMIT_CHANGESET']&&(this[_0x13e7fe(0x411)](),this['_startTelemetryCollaborationNewChangeset'](_0x529b14)),this['_socket']['send']({'cmd':b[_0x13e7fe(0x591)],'routeKey':_0x1c1ed2,'routeType':'','data':_0x529b14});}catch(_0x25edbb){this[_0x13e7fe(0x45c)][_0x13e7fe(0x37f)](_0x25edbb);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2d9217=_0x3b57cd;var _0x3db5ce;this[_0x2d9217(0x58e)]=window['setTimeout'](()=>{const _0x4f001a=_0x2d9217;this[_0x4f001a(0x58e)]=null,this['_messageService'][_0x4f001a(0x2e8)]({'type':J[_0x4f001a(0x502)]['Error'],'content':this[_0x4f001a(0x4fd)]['t'](_0x4f001a(0x265))});},(_0x3db5ce=this[_0x2d9217(0x490)][_0x2d9217(0x38e)](Fe))!=null?_0x3db5ce:gt);}[_0x3b57cd(0x575)](){const _0x55b84b=_0x3b57cd;this[_0x55b84b(0x58e)]&&(clearTimeout(this[_0x55b84b(0x58e)]),this['_collaborationTimeoutTimer']=null);}[_0x3b57cd(0x354)](_0x3b9c6b){const _0x1f5021=_0x3b57cd;if(!this[_0x1f5021(0x3d4)])return;const {data:_0x33b7f1}=_0x3b9c6b,{unitID:_0x3d292e,changeset:_0x310c66}=_0x33b7f1,{mutations:_0x5794ec,type:_0x46eb05}=_0x310c66;this[_0x1f5021(0x298)]={'unitId':_0x3d292e,'type':_0x46eb05,'startTime':performance[_0x1f5021(0x1c7)](),'stopTime':0x0,'duration':0x0,'size':us(_0x5794ec)};}[_0x3b57cd(0x349)](){const _0x2b35c1=_0x3b57cd;if(this[_0x2b35c1(0x3d4)]){if(!this[_0x2b35c1(0x298)]){this[_0x2b35c1(0x45c)]['error'](_0x2b35c1(0x292),_0x2b35c1(0x56e));return;}this[_0x2b35c1(0x298)]['stopTime']=performance[_0x2b35c1(0x1c7)](),this['_telemetryInfo'][_0x2b35c1(0x4de)]=this['_telemetryInfo'][_0x2b35c1(0x440)]-this[_0x2b35c1(0x298)][_0x2b35c1(0x54f)],this['_telemetryService'][_0x2b35c1(0x457)](_s,this['_telemetryInfo']),this[_0x2b35c1(0x298)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x4458c1=_0x3b57cd;this[_0x4458c1(0x298)]=null;}},exports[_0x3b57cd(0x2e9)]=Is([G(0x2,a[_0x3b57cd(0x4e7)]),G(0x3,A[_0x3b57cd(0x560)]),G(0x4,A[_0x3b57cd(0x1ee)]),G(0x5,a[_0x3b57cd(0x2f9)]),G(0x6,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)])),G(0x7,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x2e4)])),G(0x8,a[_0x3b57cd(0x4ad)](Ke)),G(0x9,a[_0x3b57cd(0x200)](Kt[_0x3b57cd(0x3e2)]))],exports['CollaborationSession']);var ps=Object['defineProperty'],Cs=Object[_0x3b57cd(0x35f)],Es=(_0xac1b66,_0x248c99,_0x5f50a4,_0x1973f5)=>{const _0x388f72=_0x3b57cd;for(var _0x4f6204=_0x1973f5>0x1?void 0x0:_0x1973f5?Cs(_0x248c99,_0x5f50a4):_0x248c99,_0x5ea66f=_0xac1b66[_0x388f72(0x54c)]-0x1,_0x256ff2;_0x5ea66f>=0x0;_0x5ea66f--)(_0x256ff2=_0xac1b66[_0x5ea66f])&&(_0x4f6204=(_0x1973f5?_0x256ff2(_0x248c99,_0x5f50a4,_0x4f6204):_0x256ff2(_0x4f6204))||_0x4f6204);return _0x1973f5&&_0x4f6204&&ps(_0x248c99,_0x5f50a4,_0x4f6204),_0x4f6204;},ee=(_0x454c00,_0x9b1077)=>(_0x4e9f67,_0x225e74)=>_0x9b1077(_0x4e9f67,_0x225e74,_0x454c00);exports[_0x3b57cd(0x28d)]=class extends a['Disposable']{constructor(_0x251cd7,_0x13ced6,_0x5100ea,_0x438717,_0x2d7eaa,_0x479f69){const _0x454d43=_0x3b57cd;super(),u(this,_0x454d43(0x2a1),new v['BehaviorSubject'](void 0x0)),u(this,_0x454d43(0x472),this[_0x454d43(0x2a1)][_0x454d43(0x355)]()),u(this,_0x454d43(0x21a),null),u(this,_0x454d43(0x1db),new Map()),u(this,_0x454d43(0x27e),new v[(_0x454d43(0x470))](x[_0x454d43(0x2b5)])),u(this,_0x454d43(0x533),this[_0x454d43(0x27e)]['asObservable']()),u(this,_0x454d43(0x38b),!0x1),u(this,_0x454d43(0x1ab)),u(this,_0x454d43(0x453),0x0),u(this,_0x454d43(0x501)),u(this,_0x454d43(0x551)),(this[_0x454d43(0x486)]=_0x251cd7,this[_0x454d43(0x4fd)]=_0x13ced6,this[_0x454d43(0x4e1)]=_0x5100ea,this['_logService']=_0x438717,this[_0x454d43(0x490)]=_0x2d7eaa,this['_socketService']=_0x479f69,this[_0x454d43(0x40c)]());}get['_socket'](){const _0x2656ee=_0x3b57cd;return this[_0x2656ee(0x2a1)]['getValue']();}[_0x3b57cd(0x40c)](){const _0x2f02c0=_0x3b57cd;this[_0x2f02c0(0x4d4)](),this['_listenToOnlineEvent']();}[_0x3b57cd(0x378)](){const _0x113572=_0x3b57cd;super['dispose'](),this['_sessions'][_0x113572(0x571)](_0x2ae46a=>_0x2ae46a[_0x113572(0x378)]()),this[_0x113572(0x1db)][_0x113572(0x1c2)](),this['_status$']['complete']();}async[_0x3b57cd(0x55b)](_0x480178){const _0x1339af=_0x3b57cd;if(this[_0x1339af(0x1db)]['has'](_0x480178))return this[_0x1339af(0x1db)][_0x1339af(0x4e6)](_0x480178);this[_0x1339af(0x544)]();const _0x5d6b35=this['_injector']['createInstance'](exports[_0x1339af(0x2e9)],_0x480178,this['_socket$'][_0x1339af(0x355)]());return this[_0x1339af(0x1db)][_0x1339af(0x4af)](_0x480178,_0x5d6b35),_0x5d6b35;}[_0x3b57cd(0x2da)](_0x2de6a3){const _0x320bf1=_0x3b57cd;var _0x240fad;const _0x39f3ad=this[_0x320bf1(0x1db)][_0x320bf1(0x4e6)](_0x2de6a3);_0x39f3ad&&(this[_0x320bf1(0x1db)][_0x320bf1(0x524)](_0x2de6a3),_0x39f3ad['close']()),this[_0x320bf1(0x1db)][_0x320bf1(0x4ba)]||(_0x240fad=this[_0x320bf1(0x236)])==null||_0x240fad[_0x320bf1(0x3bd)]();}[_0x3b57cd(0x36d)](){const _0x33202b=_0x3b57cd;this[_0x33202b(0x453)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x33202b(0x1ab)]),this['_retryConnectingTimer']=null),this[_0x33202b(0x173)]();}['_createSocket'](){const _0x4a5f72=_0x3b57cd;var _0x2013ec,_0x32c74b;const _0x622da5=this['_configService'][_0x4a5f72(0x38e)](vt),_0x180e94=this['_configService']['getConfig']($),_0x3cbaae=(_0x32c74b=(_0x2013ec=_0x180e94==null?void 0x0:_0x180e94[_0x4a5f72(0x20e)])!=null?_0x2013ec:_0x622da5)!=null?_0x32c74b:Qt,_0x1e1789=this[_0x4a5f72(0x3ac)][_0x4a5f72(0x273)](_0x3cbaae);return this[_0x4a5f72(0x21a)]=_0x1e1789,_0x1e1789;}['_tryEnsureSocket'](){const _0x37cf49=_0x3b57cd;var _0x1015ac,_0x2e5943;try{const _0x543729=(_0x2e5943=(_0x1015ac=this[_0x37cf49(0x236)])!=null?_0x1015ac:this[_0x37cf49(0x21a)])!=null?_0x2e5943:this['_createSocket']();if(_0x543729){const _0x42d0f6=_0x543729[_0x37cf49(0x1e8)];_0x543729[_0x37cf49(0x1e8)]=_0x2229e7=>(this[_0x37cf49(0x229)](),_0x42d0f6[_0x37cf49(0x586)](_0x543729,[_0x2229e7])),_0x543729[_0x37cf49(0x264)][_0x37cf49(0x508)](_0x228c8c=>this[_0x37cf49(0x396)](_0x543729,_0x228c8c)),_0x543729[_0x37cf49(0x2dc)][_0x37cf49(0x3b4)](E['take'](0x1))[_0x37cf49(0x508)](_0x131d6b=>this[_0x37cf49(0x45c)]['error'](_0x37cf49(0x55d),_0x131d6b)),_0x543729['open$']['pipe'](E[_0x37cf49(0x341)](0x1))[_0x37cf49(0x508)](()=>{this['_onConnectionOpen'](_0x543729);}),_0x543729[_0x37cf49(0x1e2)][_0x37cf49(0x3b4)](E['take'](0x1))['subscribe'](_0x5b727e=>{const _0x1dfc95=_0x37cf49;this[_0x1dfc95(0x45c)][_0x1dfc95(0x3ec)](_0x1dfc95(0x426),_0x1dfc95(0x530),_0x5b727e),this[_0x1dfc95(0x2e2)]();});}}catch(_0x35ae6b){this['_logService'][_0x37cf49(0x37f)](_0x35ae6b),this[_0x37cf49(0x2e2)]();}}[_0x3b57cd(0x2a4)](_0x277d3c){const _0x4e0eef=_0x3b57cd;this[_0x4e0eef(0x45c)][_0x4e0eef(0x3ec)](_0x4e0eef(0x426),'socket\x20open.'),_0x277d3c[_0x4e0eef(0x1e8)]({'cmd':b[_0x4e0eef(0x43e)]}),this['_rescheduleHeartbeat']();}[_0x3b57cd(0x4d4)](){const _0x64f3f9=_0x3b57cd;window[_0x64f3f9(0x1ba)](_0x64f3f9(0x359),()=>this['_onOffline']());}['_onOffline'](){const _0x51877c=_0x3b57cd;this['_socketReady']=!0x1,this['_candidateSocket']=null,this[_0x51877c(0x27e)][_0x51877c(0x3b8)](x[_0x51877c(0x590)]),this[_0x51877c(0x2a1)][_0x51877c(0x3b8)](null),this[_0x51877c(0x2c7)](),this[_0x51877c(0x25c)]();}[_0x3b57cd(0x2e2)](){const _0xab719b=_0x3b57cd;var _0x596148;this[_0xab719b(0x32a)](),this['_retryCount']<((_0x596148=this[_0xab719b(0x490)][_0xab719b(0x38e)](ft))!=null?_0x596148:ss)?(this[_0xab719b(0x4e1)][_0xab719b(0x2e8)]({'key':_0xab719b(0x48f),'type':J[_0xab719b(0x502)][_0xab719b(0x46b)],'content':this[_0xab719b(0x4fd)]['t'](_0xab719b(0x19d))}),this[_0xab719b(0x173)]()):this[_0xab719b(0x4e1)][_0xab719b(0x2e8)]({'key':_0xab719b(0x48f),'type':J[_0xab719b(0x502)][_0xab719b(0x4db)],'content':this[_0xab719b(0x4fd)]['t']('session.connection-failed')});}[_0x3b57cd(0x17c)](){const _0xbd358b=_0x3b57cd,_0x20ab50=()=>{const _0x36b2c3=_0x4497;this['_socket']||this[_0x36b2c3(0x36d)]();},_0x2dfec3=()=>{const _0x520152=_0x4497;this[_0x520152(0x236)]||document['visibilityState']===_0x520152(0x353)||this[_0x520152(0x36d)]();};window[_0xbd358b(0x1ba)]('online',_0x20ab50),document[_0xbd358b(0x1ba)](_0xbd358b(0x437),_0x2dfec3);}[_0x3b57cd(0x173)](){const _0xa0bfe9=_0x3b57cd;var _0x43a028;const _0x584521=this[_0xa0bfe9(0x453)],_0x28d34c=this[_0xa0bfe9(0x490)][_0xa0bfe9(0x38e)]($),_0x4ec14d=_0x584521===0x0?0x0:((_0x43a028=_0x28d34c==null?void 0x0:_0x28d34c[_0xa0bfe9(0x1b6)])!=null?_0x43a028:ts)*0x2**_0x584521;this[_0xa0bfe9(0x1ab)]=window[_0xa0bfe9(0x247)](()=>{const _0x202e36=_0xa0bfe9;clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this[_0x202e36(0x544)]();},_0x4ec14d),this[_0xa0bfe9(0x453)]+=0x1;}[_0x3b57cd(0x396)](_0x8cddc9,_0x3fbfcb){const _0x5bf146=_0x3b57cd,{cmd:_0x54fcf4}=_0x3fbfcb;_0x54fcf4===b[_0x5bf146(0x43e)]&&!this[_0x5bf146(0x38b)]&&(_0x8cddc9[_0x5bf146(0x42a)]=_0x3fbfcb[_0x5bf146(0x30a)][_0x5bf146(0x42a)],this[_0x5bf146(0x2a1)][_0x5bf146(0x3b8)](_0x8cddc9),this[_0x5bf146(0x27e)][_0x5bf146(0x3b8)](x[_0x5bf146(0x2a9)]),this[_0x5bf146(0x38b)]=!0x0,this[_0x5bf146(0x21a)]=null),_0x54fcf4===b['HEARTBEAT']&&this[_0x5bf146(0x2c7)](),this[_0x5bf146(0x229)]();}[_0x3b57cd(0x229)](){const _0xd6da4f=_0x3b57cd;var _0x5d7888;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0xd6da4f(0x247)](()=>this[_0xd6da4f(0x2cd)](),(_0x5d7888=this[_0xd6da4f(0x490)][_0xd6da4f(0x38e)](mt))!=null?_0x5d7888:es);}['_sendHeartbeat'](){const _0x482367=_0x3b57cd;this[_0x482367(0x236)][_0x482367(0x1e8)]({'cmd':b[_0x482367(0x410)]}),this[_0x482367(0x218)]();}[_0x3b57cd(0x218)](){const _0x49b476=_0x3b57cd;var _0xf9bc30;this['_timeoutTimer']=window[_0x49b476(0x247)](()=>this['_onConnectionFailed'](),(_0xf9bc30=this['_configService']['getConfig'](Fe))!=null?_0xf9bc30:gt);}[_0x3b57cd(0x25c)](){const _0x456b18=_0x3b57cd;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x456b18(0x501)]),this[_0x456b18(0x501)]=null);}[_0x3b57cd(0x2c7)](){const _0x2a5162=_0x3b57cd;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x2a5162(0x551)]),this[_0x2a5162(0x551)]=null);}},exports['CollaborationSessionService']=Es([ee(0x0,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),ee(0x1,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)])),ee(0x2,A['IMessageService']),ee(0x3,a[_0x3b57cd(0x4e7)]),ee(0x4,a['IConfigService']),ee(0x5,Ye)],exports['CollaborationSessionService']);var R=[];for(var ye=0x0;ye<0x100;++ye)R[_0x3b57cd(0x41e)]((ye+0x100)[_0x3b57cd(0x3b0)](0x10)[_0x3b57cd(0x31a)](0x1));function bs(_0x196b67,_0x450331=0x0){const _0x297b22=_0x3b57cd;return(R[_0x196b67[_0x450331+0x0]]+R[_0x196b67[_0x450331+0x1]]+R[_0x196b67[_0x450331+0x2]]+R[_0x196b67[_0x450331+0x3]]+'-'+R[_0x196b67[_0x450331+0x4]]+R[_0x196b67[_0x450331+0x5]]+'-'+R[_0x196b67[_0x450331+0x6]]+R[_0x196b67[_0x450331+0x7]]+'-'+R[_0x196b67[_0x450331+0x8]]+R[_0x196b67[_0x450331+0x9]]+'-'+R[_0x196b67[_0x450331+0xa]]+R[_0x196b67[_0x450331+0xb]]+R[_0x196b67[_0x450331+0xc]]+R[_0x196b67[_0x450331+0xd]]+R[_0x196b67[_0x450331+0xe]]+R[_0x196b67[_0x450331+0xf]])[_0x297b22(0x287)]();}var Se,Ts=new Uint8Array(0x10);function Rs(){const _0x1ce2a0=_0x3b57cd;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x1ce2a0(0x4a7)]&&crypto[_0x1ce2a0(0x4a7)]['bind'](crypto),!Se))throw new Error(_0x1ce2a0(0x329));return Se(Ts);}var Os=typeof crypto<'u'&&crypto[_0x3b57cd(0x489)]&&crypto['randomUUID'][_0x3b57cd(0x555)](crypto);const tt={'randomUUID':Os};function Ds(_0x34693d,_0x248039,_0x1a72c4){const _0x4aec2=_0x3b57cd;if(tt['randomUUID']&&!_0x248039&&!_0x34693d)return tt[_0x4aec2(0x489)]();_0x34693d=_0x34693d||{};var _0x36de73=_0x34693d[_0x4aec2(0x308)]||(_0x34693d[_0x4aec2(0x228)]||Rs)();return _0x36de73[0x6]=_0x36de73[0x6]&0xf|0x40,_0x36de73[0x8]=_0x36de73[0x8]&0x3f|0x80,bs(_0x36de73);}var ys=Object[_0x3b57cd(0x44e)],Us=Object[_0x3b57cd(0x35f)],Ps=(_0x40237d,_0x470929,_0x1e219f,_0x3b3f77)=>{const _0x2b407c=_0x3b57cd;for(var _0x183b68=_0x3b3f77>0x1?void 0x0:_0x3b3f77?Us(_0x470929,_0x1e219f):_0x470929,_0x3bfffd=_0x40237d[_0x2b407c(0x54c)]-0x1,_0x53ad76;_0x3bfffd>=0x0;_0x3bfffd--)(_0x53ad76=_0x40237d[_0x3bfffd])&&(_0x183b68=(_0x3b3f77?_0x53ad76(_0x470929,_0x1e219f,_0x183b68):_0x53ad76(_0x183b68))||_0x183b68);return _0x3b3f77&&_0x183b68&&ys(_0x470929,_0x1e219f,_0x183b68),_0x183b68;},Ue=(_0x2734da,_0x102565)=>(_0x595062,_0x34f166)=>_0x102565(_0x595062,_0x34f166,_0x2734da);let fe=class{constructor(_0x455608,_0x19768d,_0x306393){const _0x538e43=_0x3b57cd;this[_0x538e43(0x486)]=_0x455608,this[_0x538e43(0x4be)]=_0x19768d,this[_0x538e43(0x189)]=_0x306393;}[_0x3b57cd(0x29d)](_0x4c5f7f){const _0x52cb76=_0x3b57cd;this[_0x52cb76(0x18e)](_0x4c5f7f),this[_0x52cb76(0x32e)](_0x4c5f7f);}[_0x3b57cd(0x393)](_0x1fb3c9){const _0x583d3e=_0x3b57cd,{unitID:_0xe90380}=_0x1fb3c9,_0x2437fe=this['_renderManagerService'][_0x583d3e(0x19a)](_0xe90380)[_0x583d3e(0x466)](N[_0x583d3e(0x3f3)]),{redoCache:_0x1fd6ed}=_0x2437fe[_0x583d3e(0x521)]();if(_0x1fd6ed[_0x583d3e(0x54c)]===0x0)return _0x1fb3c9;let _0x5077e7=a[_0x583d3e(0x2a0)]['deepClone'](_0x1fb3c9[_0x583d3e(0x3fa)][0x0]);for(let _0x3b056c=0x0;_0x3b056c<_0x1fd6ed[_0x583d3e(0x54c)];_0x3b056c++){const _0x3617a1={'id':_0x583d3e(0x3e1),'params':{..._0x1fd6ed[_0x3b056c]}},_0x243ed9=this['_transformService'][_0x583d3e(0x49c)](_0x5077e7,_0x3617a1,!0x1);if(_[_0x583d3e(0x3d0)](_0x243ed9))throw _0x243ed9['error'];_0x5077e7=_0x243ed9[_0x583d3e(0x3a2)];}return{...a[_0x583d3e(0x2a0)][_0x583d3e(0x413)](_0x1fb3c9),'mutations':[_0x5077e7]};}['_transformUndoRedoStack'](_0x5689b7){const _0x34b271=_0x3b57cd,{unitID:_0x42a1ae}=_0x5689b7,_0x22b5cd=this[_0x34b271(0x189)][_0x34b271(0x19a)](_0x42a1ae)['with'](N[_0x34b271(0x3f3)]),{undoCache:_0x5acf68,redoCache:_0x447fa5}=_0x22b5cd['getUndoRedoMutationParamsCache']();if(_0x5acf68[_0x34b271(0x54c)]===0x0||_0x447fa5[_0x34b271(0x54c)]===0x0)return;const _0x31e36e=[],_0x15ea6b=[];let _0x4412d4=a[_0x34b271(0x2a0)][_0x34b271(0x413)](_0x5689b7['mutations'][0x0]),_0x3e3bcd=a[_0x34b271(0x2a0)][_0x34b271(0x413)](_0x5689b7[_0x34b271(0x3fa)][0x0]);for(let _0x19d12d=_0x5acf68[_0x34b271(0x54c)]-0x1;_0x19d12d>=0x0;_0x19d12d--){const _0x5dae10={'id':_0x34b271(0x3e1),'params':{..._0x5acf68[_0x19d12d]}},_0x3da811={'id':_0x34b271(0x3e1),'params':{..._0x447fa5[_0x19d12d]}},_0x124e97=this[_0x34b271(0x4be)][_0x34b271(0x49c)](_0x4412d4,_0x5dae10,!0x1),_0x3e1917=this[_0x34b271(0x4be)][_0x34b271(0x49c)](_0x3e3bcd,_0x3da811,!0x1);if(_[_0x34b271(0x3d0)](_0x124e97))throw _0x124e97[_0x34b271(0x37f)];if(_[_0x34b271(0x3d0)](_0x3e1917))throw _0x3e1917[_0x34b271(0x37f)];_0x31e36e[_0x34b271(0x3ff)](_0x124e97[_0x34b271(0x4d8)][_0x34b271(0x333)]),_0x15ea6b['unshift'](_0x3e1917['m2Prime']['params']),_0x4412d4=_0x124e97[_0x34b271(0x3a2)],_0x3e3bcd=_0x3e1917[_0x34b271(0x3a2)];}_0x22b5cd[_0x34b271(0x28e)]({'undoCache':_0x31e36e,'redoCache':_0x15ea6b});}['_transformPreviousActiveRange'](_0x3bc4a6){const _0x53b32c=_0x3b57cd,{unitID:_0x47c4ef}=_0x3bc4a6,_0x5e186e=this[_0x53b32c(0x189)][_0x53b32c(0x19a)](_0x47c4ef)[_0x53b32c(0x466)](N[_0x53b32c(0x3f3)]),_0x428431=_0x5e186e[_0x53b32c(0x351)]();if(_0x428431==null)return;const _0xf58d10=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3bc4a6['unitID'],'actions':null,'textRanges':[_0x428431]}}],_0x48b99f=this[_0x53b32c(0x4be)][_0x53b32c(0x29a)](_0x3bc4a6,_0xf58d10);if(!_[_0x53b32c(0x323)](_0x48b99f))throw _0x48b99f['error'];const _0x4ece51=_0x48b99f[_0x53b32c(0x4d8)][0x0]['params'][_0x53b32c(0x4c4)];Array[_0x53b32c(0x452)](_0x4ece51)&&_0x4ece51['length']&&_0x5e186e[_0x53b32c(0x444)](_0x4ece51[0x0]);}};fe=Ps([Ue(0x0,a['Inject'](a['Injector'])),Ue(0x1,_[_0x3b57cd(0x4d5)]),Ue(0x2,O[_0x3b57cd(0x429)])],fe);var ws=Object[_0x3b57cd(0x44e)],Ns=Object[_0x3b57cd(0x35f)],Ms=(_0x15ded5,_0x442e84,_0x379349,_0x22f494)=>{const _0x14bd78=_0x3b57cd;for(var _0x188a85=_0x22f494>0x1?void 0x0:_0x22f494?Ns(_0x442e84,_0x379349):_0x442e84,_0x1bcd45=_0x15ded5[_0x14bd78(0x54c)]-0x1,_0x316f98;_0x1bcd45>=0x0;_0x1bcd45--)(_0x316f98=_0x15ded5[_0x1bcd45])&&(_0x188a85=(_0x22f494?_0x316f98(_0x442e84,_0x379349,_0x188a85):_0x316f98(_0x188a85))||_0x188a85);return _0x22f494&&_0x188a85&&ws(_0x442e84,_0x379349,_0x188a85),_0x188a85;},ce=(_0x2023a0,_0x3dc4d6)=>(_0x4b350e,_0x347bf8)=>_0x3dc4d6(_0x4b350e,_0x347bf8,_0x2023a0);exports[_0x3b57cd(0x33e)]=class extends a[_0x3b57cd(0x54b)]{constructor(_0x39ad13,_0x6da66,_0x2a5e4a,_0x56a02f,_0x2b7bb4){const _0x55800c=_0x3b57cd;super(),u(this,_0x55800c(0x224),new Map()),u(this,_0x55800c(0x36f),new Map()),u(this,'_disabled',!0x1),(this[_0x55800c(0x490)]=_0x39ad13,this['_localStorageService']=_0x6da66,this[_0x55800c(0x4ec)]=_0x2a5e4a,this[_0x55800c(0x4fd)]=_0x56a02f,this[_0x55800c(0x294)]=_0x2b7bb4,this['_setupBeforeClosingHandler']());}[_0x3b57cd(0x191)](){this['_disabled']=!0x0;}[_0x3b57cd(0x201)](){const _0x45e962=_0x3b57cd;this[_0x45e962(0x3f4)]=!0x1;}['dispose'](){const _0x25ee5b=_0x3b57cd;this['exhaustSavingTask']()[_0x25ee5b(0x210)](()=>super[_0x25ee5b(0x378)]());}async[_0x3b57cd(0x39d)](_0xae8226){const _0x5e6f9b=_0x3b57cd;return this[_0x5e6f9b(0x3f4)]?null:this[_0x5e6f9b(0x36a)][_0x5e6f9b(0x430)](st(_0xae8226));}async[_0x3b57cd(0x4b5)](_0x39a50b,_0x35b6b3){const _0x35b953=_0x3b57cd;return!!this[_0x35b953(0x36a)][_0x35b953(0x22e)](_0x39a50b,_0x35b6b3);}[_0x3b57cd(0x16d)](_0x11dafe,_0x5b347a,_0x4983ba,_0x8bbb39){const _0x15f4da=_0x3b57cd,_0x1aeaf4=this[_0x15f4da(0x294)][_0x15f4da(0x180)](_0x11dafe);this[_0x15f4da(0x224)]['set'](_0x11dafe,{'unitID':_0x11dafe,'type':_0x5b347a,'awaitingChangeset':_0x4983ba,'mutations':_0x8bbb39,'rev':_0x1aeaf4}),this['_saveTaskMap'][_0x15f4da(0x1cf)](_0x11dafe)||this[_0x15f4da(0x276)](_0x11dafe);}[_0x3b57cd(0x276)](_0x5ba6f7){const _0x6c9102=_0x3b57cd,_0x5b14de=this[_0x6c9102(0x3c7)]();_0x5b14de===0x0?this[_0x6c9102(0x1e4)](_0x5ba6f7):this[_0x6c9102(0x36f)][_0x6c9102(0x4af)](_0x5ba6f7,setTimeout(()=>this[_0x6c9102(0x1e4)](_0x5ba6f7),_0x5b14de));}['_getSaveTimeout'](){const _0x484130=_0x3b57cd;var _0x58c458;return(_0x58c458=this['_configService'][_0x484130(0x38e)](It))!=null?_0x58c458:is;}['_saveCache'](_0x49317e){const _0x2175a3=_0x3b57cd,_0x56d72d=this[_0x2175a3(0x36f)][_0x2175a3(0x4e6)](_0x49317e);return _0x56d72d!==void 0x0&&window[_0x2175a3(0x4a2)](_0x56d72d),this[_0x2175a3(0x36a)][_0x2175a3(0x22e)](st(_0x49317e),this[_0x2175a3(0x224)][_0x2175a3(0x4e6)](_0x49317e))[_0x2175a3(0x210)](()=>this[_0x2175a3(0x36f)]['delete'](_0x49317e));}async[_0x3b57cd(0x2d5)](){const _0x28d13c=_0x3b57cd,_0xe9238c=[];this[_0x28d13c(0x36f)][_0x28d13c(0x571)]((_0x19e663,_0xeda99)=>{const _0x421d18=_0x28d13c;window[_0x421d18(0x4a2)](_0x19e663),_0xe9238c[_0x421d18(0x41e)](this[_0x421d18(0x1e4)](_0xeda99)[_0x421d18(0x210)](()=>{const _0x557175=_0x421d18;this[_0x557175(0x36f)]['delete'](_0xeda99);}));}),await Promise[_0x28d13c(0x29b)](_0xe9238c);}[_0x3b57cd(0x2a5)](){const _0xb811fc=_0x3b57cd;this[_0xb811fc(0x431)](this[_0xb811fc(0x4ec)][_0xb811fc(0x58d)](()=>{const _0x32cc9a=_0xb811fc;if(this['_saveTaskMap'][_0x32cc9a(0x4ba)])return this[_0x32cc9a(0x4fd)]['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x3b57cd(0x33e)]=Ms([ce(0x0,a[_0x3b57cd(0x2f9)]),ce(0x1,a['ILocalStorageService']),ce(0x2,A['IBeforeCloseService']),ce(0x3,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)])),ce(0x4,a[_0x3b57cd(0x4ad)](_['RevisionService']))],exports[_0x3b57cd(0x33e)]);function st(_0x19a7fa){const _0x23d1ed=_0x3b57cd;return _0x23d1ed(0x2dd)+_0x19a7fa;}var As=Object[_0x3b57cd(0x44e)],Ls=Object[_0x3b57cd(0x35f)],$s=(_0x3ce533,_0x274b72,_0x508be8,_0x35b2bc)=>{for(var _0x1fe6f7=_0x35b2bc>0x1?void 0x0:_0x35b2bc?Ls(_0x274b72,_0x508be8):_0x274b72,_0x13b084=_0x3ce533['length']-0x1,_0x3eebcc;_0x13b084>=0x0;_0x13b084--)(_0x3eebcc=_0x3ce533[_0x13b084])&&(_0x1fe6f7=(_0x35b2bc?_0x3eebcc(_0x274b72,_0x508be8,_0x1fe6f7):_0x3eebcc(_0x1fe6f7))||_0x1fe6f7);return _0x35b2bc&&_0x1fe6f7&&As(_0x274b72,_0x508be8,_0x1fe6f7),_0x1fe6f7;},Pe=(_0x29991a,_0x45525c)=>(_0x5580bf,_0x396210)=>_0x45525c(_0x5580bf,_0x396210,_0x29991a);function js(_0x49b07e){const _0x4ea186=_0x3b57cd,{unitID:_0x5426c5,mutations:_0x5892c5}=_0x49b07e;return{'unitId':_0x5426c5,'subUnitId':_0x5892c5[0x0]['params'][_0x4ea186(0x376)]};}let Ie=class{constructor(_0x5cefa3,_0x210804,_0x5c25b4){const _0x2d9477=_0x3b57cd;this[_0x2d9477(0x486)]=_0x5cefa3,this['_transformService']=_0x210804,this[_0x2d9477(0x46f)]=_0x5c25b4;}[_0x3b57cd(0x578)](_0xbb2a02){const _0x343697=_0x3b57cd;var _0x236465,_0x19e395,_0x29cf2a,_0x439b74;const _0x30dfec=this['_injector']['get'](C['SheetsSelectionsService']),{unitId:_0x547362,subUnitId:_0x172e59}=js(_0xbb2a02),_0x5ebf9e=_0x30dfec[_0x343697(0x1ce)](_0x547362)[_0x343697(0x417)](),_0x29c6ce=(_0x19e395=(_0x236465=this[_0x343697(0x46f)][_0x343697(0x455)](_0x547362))==null?void 0x0:_0x236465['getActiveSheet']())==null?void 0x0:_0x19e395[_0x343697(0x49b)]();if(_0x5ebf9e[_0x343697(0x54c)]===0x0||!_0x547362||!_0x172e59)return;const _0x446e12=[{'id':C[_0x343697(0x4e2)]['id'],'params':{'unitId':_0x547362,'subUnitId':_0x29c6ce,'selections':a[_0x343697(0x2a0)][_0x343697(0x413)](_0x5ebf9e)}}],_0x59591d=this[_0x343697(0x4be)][_0x343697(0x29a)](_0xbb2a02,_0x446e12);if(!_[_0x343697(0x323)](_0x59591d))throw _0x59591d[_0x343697(0x37f)];const _0xc590b2=(_0x439b74=(_0x29cf2a=_0x59591d[_0x343697(0x4d8)][0x0])==null?void 0x0:_0x29cf2a['params'])==null?void 0x0:_0x439b74[_0x343697(0x255)];if(Array[_0x343697(0x452)](_0xc590b2)&&_0xc590b2['length']){if(_0xc590b2['length']===_0x446e12[0x0]['params'][_0x343697(0x255)][_0x343697(0x54c)]&&_0xc590b2[_0x343697(0x212)]((_0x1eb8ce,_0x3c5908)=>a[_0x343697(0x186)]['equals'](_0x1eb8ce[_0x343697(0x53d)],_0x446e12[0x0][_0x343697(0x333)][_0x343697(0x255)][_0x3c5908][_0x343697(0x53d)])))return;this[_0x343697(0x486)][_0x343697(0x4e6)](a[_0x343697(0x17e)])['executeCommand'](C[_0x343697(0x4e2)]['id'],{'unitId':_0x547362,'subUnitId':_0x29c6ce,'selections':_0xc590b2});}}};Ie=$s([Pe(0x0,a[_0x3b57cd(0x4ad)](a['Injector'])),Pe(0x1,_[_0x3b57cd(0x4d5)]),Pe(0x2,a[_0x3b57cd(0x424)])],Ie);const Re=a['createIdentifier'](_0x3b57cd(0x360));var Ot=(_0x321e66=>(_0x321e66[_0x321e66[_0x3b57cd(0x2b1)]=0x0]=_0x3b57cd(0x2b1),_0x321e66[_0x321e66[_0x3b57cd(0x474)]=0x1]='OTHER_CLIENTS_EDITING',_0x321e66))(Ot||{});const it=0x7530,nt='ACTIVE_UNIT_EVENT_CHANNEL';class Hs extends a[_0x3b57cd(0x54b)]{constructor(){const _0xc07bb=_0x3b57cd;super(),u(this,_0xc07bb(0x3c9),a['Tools'][_0xc07bb(0x3e4)]()),u(this,_0xc07bb(0x4cb),new Set()),u(this,_0xc07bb(0x1fa),new Map()),u(this,_0xc07bb(0x3b6),null),u(this,'_clearOtherTimers',new Map()),u(this,'_unitStatus',new Map()),this['_init']();}[_0x3b57cd(0x378)](){const _0x33fa63=_0x3b57cd;super[_0x33fa63(0x378)](),this[_0x33fa63(0x254)][_0x33fa63(0x571)]((_0x2da420,_0x40cb41)=>this['_removeClearOtherTimer'](_0x40cb41)),this['_heartbeatTimer']&&window[_0x33fa63(0x2ea)](this[_0x33fa63(0x3b6)]);}[_0x3b57cd(0x282)](_0x56688a){const _0xe0c08a=_0x3b57cd;return this[_0xe0c08a(0x184)](_0x56688a)[_0xe0c08a(0x3b4)](v['distinctUntilChanged']());}[_0x3b57cd(0x253)](_0x45b7){const _0x54d1f8=_0x3b57cd;this['_selfUnitIDs'][_0x54d1f8(0x4ba)]===0x0&&this[_0x54d1f8(0x1b4)](),this[_0x54d1f8(0x4cb)]['add'](_0x45b7),this[_0x54d1f8(0x1ac)]({'type':0x0,'memberID':this[_0x54d1f8(0x3c9)],'unitIDs':[_0x45b7],'isForwarded':!0x1});}[_0x3b57cd(0x27b)](_0x55401f){const _0x283bf4=_0x3b57cd;this[_0x283bf4(0x4cb)][_0x283bf4(0x524)](_0x55401f),this[_0x283bf4(0x4cb)][_0x283bf4(0x4ba)]===0x0&&this[_0x283bf4(0x3b6)]&&window[_0x283bf4(0x2ea)](this[_0x283bf4(0x3b6)]);}['_init'](){const _0x578ff8=_0x3b57cd;this['disposeWithMe'](a[_0x578ff8(0x44c)](v['fromEvent'](window,_0x578ff8(0x2c8))[_0x578ff8(0x508)](_0x29b910=>{const _0x32f711=_0x578ff8;if(_0x29b910[_0x32f711(0x198)]!==nt||!_0x29b910[_0x32f711(0x394)])return;const _0x451aa4=JSON[_0x32f711(0x42d)](_0x29b910['newValue']);this['_handleEvent'](_0x451aa4);}))),window[_0x578ff8(0x1ba)](_0x578ff8(0x3f0),()=>this[_0x578ff8(0x1ac)]({'type':0x1,'memberID':this[_0x578ff8(0x3c9)],'unitIDs':Array[_0x578ff8(0x348)](this[_0x578ff8(0x4cb)])}));}[_0x3b57cd(0x553)](_0x5dc029){const _0x997d7e=_0x3b57cd;switch(_0x5dc029['type']){case 0x0:this[_0x997d7e(0x3da)](_0x5dc029);break;case 0x1:this['_handleLeaveEvent'](_0x5dc029);break;case 0x2:this[_0x997d7e(0x1fb)](_0x5dc029);break;}}['_handleJoinEvent'](_0x366a90){const _0x2a3f2a=_0x3b57cd,{unitIDs:_0x98f9b4,memberID:_0x5268b1,isForwarded:_0x4f7316}=_0x366a90;_0x98f9b4[_0x2a3f2a(0x571)](_0x20bc2a=>{const _0x53ef05=_0x2a3f2a;if(!_0x4f7316&&this[_0x53ef05(0x1fa)][_0x53ef05(0x1cf)](_0x20bc2a)&&this[_0x53ef05(0x184)](_0x20bc2a)[_0x53ef05(0x3b8)](0x1),!this[_0x53ef05(0x1fa)]['has'](_0x20bc2a)||!this[_0x53ef05(0x1fa)][_0x53ef05(0x4e6)](_0x20bc2a)[_0x53ef05(0x1cf)](_0x5268b1)){const _0x551c88=this['_unitOnClients'][_0x53ef05(0x4e6)](_0x20bc2a)||new Set();_0x551c88['add'](_0x5268b1),this['_unitOnClients'][_0x53ef05(0x4af)](_0x20bc2a,_0x551c88),this[_0x53ef05(0x2ac)](_0x5268b1);}}),_0x4f7316||this[_0x2a3f2a(0x1ac)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2a3f2a(0x4cb)]],'isForwarded':!0x0});}[_0x3b57cd(0x2ac)](_0x23b4c2){const _0x5508f3=_0x3b57cd;this['_removeClearOtherTimer'](_0x23b4c2);const _0x1f9761=window[_0x5508f3(0x247)](()=>{const _0x3ca6dd=_0x5508f3;this['_unitOnClients'][_0x3ca6dd(0x571)](_0x4bbbcd=>{const _0x295d0e=_0x3ca6dd;_0x4bbbcd[_0x295d0e(0x524)](_0x23b4c2);});},it*0x2);this['_clearOtherTimers'][_0x5508f3(0x4af)](_0x23b4c2,_0x1f9761);}['_removeClearOtherTimer'](_0x2ba97e){const _0x44854f=_0x3b57cd;if(this[_0x44854f(0x254)]['has'](_0x2ba97e)){const _0x1cf6c8=this[_0x44854f(0x254)][_0x44854f(0x4e6)](_0x2ba97e);_0x1cf6c8&&window[_0x44854f(0x4a2)](_0x1cf6c8),this[_0x44854f(0x254)][_0x44854f(0x4af)](_0x2ba97e,null);}}[_0x3b57cd(0x23c)](_0x3a9501){const _0x15eb53=_0x3b57cd,{memberID:_0x20c720,unitIDs:_0x4a0e43}=_0x3a9501;_0x4a0e43[_0x15eb53(0x571)](_0x57fb28=>{const _0x1f9910=_0x15eb53;var _0x5c2229;const _0x16e6c9=this[_0x1f9910(0x1fa)]['get'](_0x57fb28);_0x16e6c9&&(_0x16e6c9[_0x1f9910(0x524)](_0x20c720),(_0x5c2229=this[_0x1f9910(0x184)](_0x57fb28))==null||_0x5c2229['next'](_0x16e6c9[_0x1f9910(0x4ba)]===0x0?0x0:0x1));}),this[_0x15eb53(0x1ff)](_0x20c720);}['_handleHeartbeatEvent'](_0x35bd1f){const _0x48334c=_0x3b57cd;this[_0x48334c(0x2ac)](_0x35bd1f[_0x48334c(0x42a)]);}['_send'](_0x7a7bb7){const _0x37b43d=_0x3b57cd;localStorage[_0x37b43d(0x22e)](nt,JSON['stringify'](_0x7a7bb7));}[_0x3b57cd(0x1b4)](){const _0x1f99a6=_0x3b57cd;this[_0x1f99a6(0x3b6)]=window[_0x1f99a6(0x3ea)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},it);}[_0x3b57cd(0x184)](_0x4abf21){const _0x1be7b2=_0x3b57cd;return this[_0x1be7b2(0x484)]['has'](_0x4abf21)||this['_unitStatus'][_0x1be7b2(0x4af)](_0x4abf21,new v['BehaviorSubject'](0x0)),this[_0x1be7b2(0x484)][_0x1be7b2(0x4e6)](_0x4abf21);}}function Dt(_0x2da95d){const _0x4e2b0b=_0x3b57cd;let _0xf3bf22='';for(const _0x2d947a of _0x2da95d){const {startOffset:_0x545aa8,endOffset:_0x5c2ec7,isActive:_0x1c520b,rangeType:_0x765912,segmentId:_0x160749,segmentPage:_0x10555b}=_0x2d947a;_0xf3bf22[_0x4e2b0b(0x54c)]&&(_0xf3bf22+=','),_0xf3bf22+=_0x545aa8+':'+_0x5c2ec7+':'+(_0x1c520b?'1':'0')+':'+_0x765912+':'+_0x160749+':'+_0x10555b;}return _0xf3bf22;}function xs(_0x43d0f4){const _0x415669=_0x3b57cd,_0x49af54=_0x43d0f4['split'](','),_0x534c66=[];for(const _0x29c8f3 of _0x49af54){const [_0x51be07,_0x2d8db0,_0x1f1d1d,_0x11675f,_0x57925a,_0x2602fc]=_0x29c8f3[_0x415669(0x36b)](':');_0x534c66['push']({'startOffset':Number(_0x51be07),'endOffset':Number(_0x2d8db0),'collapsed':_0x51be07===_0x2d8db0,'isActive':_0x1f1d1d==='1','rangeType':_0x11675f===a[_0x415669(0x3d6)][_0x415669(0x235)]?a['DOC_RANGE_TYPE'][_0x415669(0x235)]:a[_0x415669(0x3d6)][_0x415669(0x576)],'segmentId':typeof _0x57925a==_0x415669(0x52f)?String(_0x57925a):'','segmentPage':Number(_0x2602fc!=null?_0x2602fc:-0x1)});}return _0x534c66[_0x415669(0x442)](_0x4e4f20=>_0x4e4f20[_0x415669(0x4df)])||(_0x534c66[0x0][_0x415669(0x4df)]=!0x0),_0x534c66;}class Xe extends a['RxDisposable']{constructor(){const _0x2b87d6=_0x3b57cd;super(...arguments),u(this,'_collabCursorState$',new v[(_0x2b87d6(0x470))](null)),u(this,'collabCursorState$',this[_0x2b87d6(0x1bd)]['asObservable']());}['syncEditingCollabCursor'](_0x3ac6ea){const _0x3672eb=_0x3b57cd,{unitID:_0x507c42,memberID:_0x5753e6,textRanges:_0x3c0d1e}=_0x3ac6ea,_0x21edfd=Dt(_0x3c0d1e);if(_0x21edfd==='')return;const _0x23545e={'unitID':_0x507c42,'memberID':_0x5753e6,'selection':_0x21edfd};this[_0x3672eb(0x1bd)][_0x3672eb(0x3b8)](_0x23545e);}}var ks=Object[_0x3b57cd(0x44e)],Bs=Object[_0x3b57cd(0x35f)],Vs=(_0x4e0ab8,_0x23877f,_0x465ad3,_0x201ec5)=>{const _0x3be48=_0x3b57cd;for(var _0x305068=_0x201ec5>0x1?void 0x0:_0x201ec5?Bs(_0x23877f,_0x465ad3):_0x23877f,_0x2c342f=_0x4e0ab8[_0x3be48(0x54c)]-0x1,_0x1adeab;_0x2c342f>=0x0;_0x2c342f--)(_0x1adeab=_0x4e0ab8[_0x2c342f])&&(_0x305068=(_0x201ec5?_0x1adeab(_0x23877f,_0x465ad3,_0x305068):_0x1adeab(_0x305068))||_0x305068);return _0x201ec5&&_0x305068&&ks(_0x23877f,_0x465ad3,_0x305068),_0x305068;},rt=(_0x4353a8,_0xfc2b62)=>(_0x3a0ec5,_0x2b911e)=>_0xfc2b62(_0x3a0ec5,_0x2b911e,_0x4353a8);let pe=class{constructor(_0x5c1389,_0x3685fa){this['_injector']=_0x5c1389,this['_transformService']=_0x3685fa;}[_0x3b57cd(0x578)](_0x24dbca){const _0x32b97e=_0x3b57cd;var _0x26f49c;const _0x2b14d5=this[_0x32b97e(0x486)][_0x32b97e(0x4e6)](ne['DocSelectionManagerService']),_0x3763e6=(_0x26f49c=_0x2b14d5[_0x32b97e(0x4fa)]())!=null?_0x26f49c:[];if(_0x3763e6[_0x32b97e(0x54c)]===0x0)return;const _0xf7d471=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x24dbca[_0x32b97e(0x234)],'actions':null,'textRanges':_0x3763e6}}],_0x146ed9=this['_transformService'][_0x32b97e(0x29a)](_0x24dbca,_0xf7d471);if(!_['isTransformMutationsWithChangesetSuccess'](_0x146ed9))throw _0x146ed9['error'];const _0x40b319=_0x146ed9[_0x32b97e(0x4d8)][0x0][_0x32b97e(0x333)]['textRanges'];Array['isArray'](_0x40b319)&&_0x40b319[_0x32b97e(0x54c)]&&_0x2b14d5['replaceTextRanges'](_0x40b319,!0x1);}};pe=Vs([rt(0x0,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),rt(0x1,_[_0x3b57cd(0x4d5)])],pe);const Ws=new Set([C[_0x3b57cd(0x178)]['id']]);function ot(_0x27302f,_0x399c49,_0x475227,_0x21ce51,_0x523f83){const _0x3a6a72=_0x3b57cd;var _0x1b55c0,_0x2f8cee,_0x1c1655,_0x56a3b4;const _0x31473c=[];for(const _0x1b0a13 of _0x27302f)if(Ws[_0x3a6a72(0x1cf)](_0x1b0a13['id'])){if(_0x31473c[_0x3a6a72(0x54c)]>0x0)break;_0x31473c['push'](_0x1b0a13);break;}else _0x31473c['push'](_0x1b0a13);const _0x231615=(_0x2f8cee=(_0x1b55c0=_0x523f83[_0x3a6a72(0x176)]())==null?void 0x0:_0x1b55c0[_0x3a6a72(0x2d0)])!=null?_0x2f8cee:_0x3a6a72(0x56c),_0xf995f3=(_0x56a3b4=(_0x1c1655=_0x523f83[_0x3a6a72(0x176)]())==null?void 0x0:_0x1c1655[_0x3a6a72(0x42a)])!=null?_0x56a3b4:'unknown';return{'changeset':{'unitID':_0x399c49,'type':_[_0x3a6a72(0x37a)](_0x475227[_0x3a6a72(0x2fe)](_0x399c49)),'baseRev':_0x21ce51[_0x3a6a72(0x180)](_0x399c49),'revision':0x0,'userID':_0x231615,'memberID':_0xf995f3,'mutations':_0x31473c},'pendingMutations':_0x27302f[_0x3a6a72(0x31a)](_0x31473c['length'])};}function Fs(_0x3e2af1,_0x1ad7eb,_0x1e2789,_0x44d581,_0x79ef06){const _0x1cb06b=_0x3b57cd;var _0x27c6a3,_0x4f7b26,_0x37a859,_0x8ecbb4;const _0x356856=[_0x3e2af1[_0x1cb06b(0x3c4)]((_0x317a15,_0x3a07b1)=>{const _0x336067=_0x1cb06b;var _0x36d7ca;const {id:_0x4f5e43}=_0x317a15,{id:_0x2ebfb4,type:_0x256ce7}=_0x3a07b1,_0x383074=(_0x36d7ca=_0x317a15[_0x336067(0x333)])!=null?_0x36d7ca:{'actions':null},_0x287253=_0x3a07b1[_0x336067(0x333)];if(_0x4f5e43&&_0x4f5e43!==_0x2ebfb4)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x4f5e43+_0x336067(0x3af)+_0x2ebfb4+'.');return{..._0x317a15,'id':_0x2ebfb4,'type':_0x256ce7,'params':{'unitId':_0x287253[_0x336067(0x267)],'textRanges':_0x287253[_0x336067(0x4c4)],'actions':a[_0x336067(0x2c9)][_0x336067(0x374)](_0x383074[_0x336067(0x383)],_0x287253[_0x336067(0x383)])}};},{})],_0x1407c9=(_0x4f7b26=(_0x27c6a3=_0x79ef06['getCurrentUser']())==null?void 0x0:_0x27c6a3[_0x1cb06b(0x2d0)])!=null?_0x4f7b26:_0x1cb06b(0x56c),_0x37a9de=(_0x8ecbb4=(_0x37a859=_0x79ef06[_0x1cb06b(0x176)]())==null?void 0x0:_0x37a859[_0x1cb06b(0x42a)])!=null?_0x8ecbb4:_0x1cb06b(0x56c);return{'changeset':{'unitID':_0x1ad7eb,'type':_[_0x1cb06b(0x37a)](_0x1e2789[_0x1cb06b(0x2fe)](_0x1ad7eb)),'baseRev':_0x44d581[_0x1cb06b(0x180)](_0x1ad7eb),'revision':0x0,'userID':_0x1407c9,'memberID':_0x37a9de,'mutations':_0x356856},'pendingMutations':[]};}function yt(_0x587c51,_0x28664d){const _0x35b917=_0x3b57cd,_0x459a5d=new v['ReplaySubject'](0x1);return setTimeout(()=>_0x459a5d['next'](_0x28664d),_0x587c51),_0x459a5d[_0x35b917(0x355)]()[_0x35b917(0x3b4)](v[_0x35b917(0x341)](0x1));}const Gs={'id':C[_0x3b57cd(0x251)]['id'],'type':a[_0x3b57cd(0x21d)][_0x3b57cd(0x335)],'params':{}};var Ys=Object[_0x3b57cd(0x44e)],Ks=Object['getOwnPropertyDescriptor'],Z=(_0x3c88bf,_0x1afaf9,_0x2dc800,_0x335389)=>{for(var _0x2aa743=_0x335389>0x1?void 0x0:_0x335389?Ks(_0x1afaf9,_0x2dc800):_0x1afaf9,_0x2db7d2=_0x3c88bf['length']-0x1,_0xcb04d0;_0x2db7d2>=0x0;_0x2db7d2--)(_0xcb04d0=_0x3c88bf[_0x2db7d2])&&(_0x2aa743=(_0x335389?_0xcb04d0(_0x1afaf9,_0x2dc800,_0x2aa743):_0xcb04d0(_0x2aa743))||_0x2aa743);return _0x335389&&_0x2aa743&&Ys(_0x1afaf9,_0x2dc800,_0x2aa743),_0x2aa743;},g=(_0x25db29,_0x14b304)=>(_0xa1776f,_0x1ee05d)=>_0x14b304(_0xa1776f,_0x1ee05d,_0x25db29),D=(_0x2fb24e=>(_0x2fb24e[_0x3b57cd(0x53e)]='not_collab',_0x2fb24e['SYNCED']=_0x3b57cd(0x3f2),_0x2fb24e['PENDING']=_0x3b57cd(0x51c),_0x2fb24e[_0x3b57cd(0x557)]=_0x3b57cd(0x2eb),_0x2fb24e[_0x3b57cd(0x35a)]=_0x3b57cd(0x366),_0x2fb24e[_0x3b57cd(0x2a2)]=_0x3b57cd(0x362),_0x2fb24e[_0x3b57cd(0x225)]=_0x3b57cd(0x2fb),_0x2fb24e['OFFLINE']=_0x3b57cd(0x359),_0x2fb24e))(D||{});const Ut=0xea60;class Q{constructor(_0x191b29,_0x33c68f,_0x3a99c1,_0x1a4ea2,_0x23769c,_0x11da60,_0x267cc2,_0x386dad,_0xac1b07){const _0x59ff5f=_0x3b57cd;u(this,'_awaitingChangeset',null),u(this,'_pendingMutations',[]),(this[_0x59ff5f(0x234)]=_0x191b29,this[_0x59ff5f(0x537)]=_0x33c68f,this[_0x59ff5f(0x4cd)]=_0x23769c,this[_0x59ff5f(0x33b)]=_0x11da60,this[_0x59ff5f(0x47e)]=_0x267cc2,this[_0x59ff5f(0x294)]=_0x386dad,this[_0x59ff5f(0x20c)]=_0xac1b07,this[_0x59ff5f(0x365)]=_0x3a99c1,this['_pendingMutations']=_0x1a4ea2);}[_0x3b57cd(0x47b)](_0x5a14aa){const _0xe57182=_0x3b57cd,_0x1a9f3b=this[_0xe57182(0x294)]['getCurrentRevOfUnit'](this[_0xe57182(0x234)]);return _0x5a14aa[_0xe57182(0x1e1)]>_0x1a9f3b+0x1?(this[_0xe57182(0x4cd)][_0xe57182(0x588)]({'from':_0x1a9f3b,'to':_0x5a14aa[_0xe57182(0x1e1)]-0x1}),!0x0):!0x1;}[_0x3b57cd(0x554)](_0x290735){const _0x21d433=_0x3b57cd;this[_0x21d433(0x47e)][_0x21d433(0x24f)](this[_0x21d433(0x234)],_0x290735);}[_0x3b57cd(0x545)](_0xe07cde){const _0x317778=_0x3b57cd;var _0x442837,_0x2646f8;(_0x2646f8=(_0x442837=this[_0x317778(0x4cd)])[_0x317778(0x36c)])==null||_0x2646f8[_0x317778(0x30b)](_0x442837,_0xe07cde);}[_0x3b57cd(0x57e)](_0x472f74){const _0x3f178f=_0x3b57cd;var _0x52a255,_0x4c89a8;return(_0x4c89a8=(_0x52a255=this[_0x3f178f(0x4cd)])['onTransformIME'])==null?void 0x0:_0x4c89a8[_0x3f178f(0x30b)](_0x52a255,_0x472f74);}['_transformRemoteChangesetByIMECache'](_0x4cccef){const _0x36f394=_0x3b57cd;var _0x333fe1,_0x4fa25f,_0x2cca22;return(_0x2cca22=(_0x4fa25f=(_0x333fe1=this['_handler'])[_0x36f394(0x408)])==null?void 0x0:_0x4fa25f[_0x36f394(0x30b)](_0x333fe1,_0x4cccef))!=null?_0x2cca22:_0x4cccef;}[_0x3b57cd(0x48b)](_0x4df3a8){const _0x1fc876=_0x3b57cd;var _0x4f857b,_0x2b0687;if(this[_0x1fc876(0x537)]===H['UNIVER_DOC']){const {unitID:_0x6ada48,mutations:_0x2b83ed,memberID:_0x32fd95}=_0x4df3a8,_0x4f77e5=_0x2b83ed[0x0][_0x1fc876(0x333)][_0x1fc876(0x4c4)];Array[_0x1fc876(0x452)](_0x4f77e5)&&_0x4f77e5[_0x1fc876(0x54c)]>0x0&&((_0x2b0687=(_0x4f857b=this[_0x1fc876(0x4cd)])['onSyncEditingCollabCursor'])==null||_0x2b0687[_0x1fc876(0x30b)](_0x4f857b,{'unitID':_0x6ada48,'memberID':_0x32fd95,'textRanges':_0x4f77e5}));}}[_0x3b57cd(0x32c)](){const _0x19f5d1=_0x3b57cd;this[_0x19f5d1(0x20c)][_0x19f5d1(0x16d)](this['unitID'],this[_0x19f5d1(0x537)],this['_awaitingChangeset'],this[_0x19f5d1(0x344)]);}[_0x3b57cd(0x505)](){const _0x40e4e0=_0x3b57cd;return this[_0x40e4e0(0x294)][_0x40e4e0(0x180)](this[_0x40e4e0(0x234)]);}[_0x3b57cd(0x447)](){const _0x1c3119=_0x3b57cd;this[_0x1c3119(0x294)]['incrementRevOfUnit'](this[_0x1c3119(0x234)]);}['_executeRemoteChangeset'](_0x363190){const _0x458d2a=_0x3b57cd;var _0x5ac855;const _0x351299=this['_transformRemoteChangesetByIMECache'](_0x363190),_0x55bc58=a['sequenceExecute'](_0x351299[_0x458d2a(0x3fa)],this[_0x458d2a(0x33b)],{'fromCollab':!0x0});if(!_0x55bc58[_0x458d2a(0x1da)])throw _0x55bc58[_0x458d2a(0x37f)]instanceof Error?_0x55bc58[_0x458d2a(0x37f)]:new Error((_0x5ac855=_0x55bc58[_0x458d2a(0x37f)])!=null?_0x5ac855:_0x458d2a(0x4f0));this[_0x458d2a(0x57e)](_0x351299),this[_0x458d2a(0x554)](_0x363190),this[_0x458d2a(0x545)](_0x351299),this['_syncEditingCollabCursor'](_0x351299),this[_0x458d2a(0x447)]();}}let re=class extends Q{constructor(_0x433b01,_0x3e06ce,_0x31418a,_0x1d29f5,_0x3d0c18,_0x4f25ff,_0x4e6cc2,_0xbff9d8,_0x979290,_0x106e00){const _0x4d895d=_0x3b57cd;super(_0x433b01,_0x3e06ce,null,[],_0x31418a,_0xbff9d8,_0x4e6cc2,_0x1d29f5,_0x3d0c18),u(this,'status',_0x4d895d(0x3f2)),(this[_0x4d895d(0x486)]=_0x4f25ff,this[_0x4d895d(0x45c)]=_0x979290,this['_transformService']=_0x106e00);}[_0x3b57cd(0x46e)](_0x3b67b4){const _0x373d25=_0x3b57cd,_0x14e806=this[_0x373d25(0x486)][_0x373d25(0x39c)](W,this[_0x373d25(0x234)],this[_0x373d25(0x537)],[_0x3b67b4],this[_0x373d25(0x4cd)]);return _0x14e806[_0x373d25(0x461)](),_0x14e806[_0x373d25(0x32c)](),_0x14e806;}[_0x3b57cd(0x423)](_0x56453d){const _0x37ff69=_0x3b57cd;if(this[_0x37ff69(0x47b)](_0x56453d))return this['_injector'][_0x37ff69(0x39c)](k,this[_0x37ff69(0x234)],this[_0x37ff69(0x537)],null,[],null,[_0x56453d],this[_0x37ff69(0x4cd)]);try{const _0x3fd01a=this[_0x37ff69(0x4be)][_0x37ff69(0x29a)](_0x56453d,[Gs]);if(_['isTransformMutationsWithChangesetSuccess'](_0x3fd01a)){const {c1Prime:_0xfe575e}=_0x3fd01a;return this[_0x37ff69(0x241)](_0xfe575e),this;}throw _0x3fd01a[_0x37ff69(0x37f)];}catch(_0x5018ad){return this[_0x37ff69(0x45c)][_0x37ff69(0x37f)](_0x5018ad),this['_onConflict'](!0x1);}}[_0x3b57cd(0x446)](_0x1bfa57){const _0x373359=_0x3b57cd;return this['_injector']['createInstance'](K,this[_0x373359(0x234)],this[_0x373359(0x537)],null,[],this[_0x373359(0x4cd)],_0x1bfa57);}[_0x3b57cd(0x558)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x3b57cd(0x2f7)](){return this;}[_0x3b57cd(0x343)](){const _0x524a3d=_0x3b57cd;return this[_0x524a3d(0x486)][_0x524a3d(0x39c)](X,this[_0x524a3d(0x234)],this[_0x524a3d(0x537)],null,[],this[_0x524a3d(0x4cd)]);}[_0x3b57cd(0x175)](){return this;}[_0x3b57cd(0x3e8)](){const _0x50e8b2=_0x3b57cd;throw new Error(_0x50e8b2(0x45e));}['fetchMiss'](){const _0x5c1cbe=_0x3b57cd,_0x37e340=this['_revisionService'][_0x5c1cbe(0x180)](this[_0x5c1cbe(0x234)]);return this[_0x5c1cbe(0x4cd)][_0x5c1cbe(0x588)]({'from':_0x37e340,'to':0x0}),this[_0x5c1cbe(0x486)][_0x5c1cbe(0x39c)](k,this['unitID'],this[_0x5c1cbe(0x537)],null,[],null,[],this[_0x5c1cbe(0x4cd)]);}};re=Z([g(0x3,a['Inject'](_[_0x3b57cd(0x29e)])),g(0x4,a[_0x3b57cd(0x4ad)](exports['LocalCacheService'])),g(0x5,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),g(0x6,a[_0x3b57cd(0x327)]),g(0x7,a[_0x3b57cd(0x17e)]),g(0x8,a['ILogService']),g(0x9,_[_0x3b57cd(0x4d5)])],re);let W=class extends Q{constructor(_0x2db36c,_0x571fa6,_0x2d2227,_0x2550a5,_0x47ff74,_0x409f1a,_0x2d9361,_0x5213fd,_0x22b233,_0x104924,_0x5446ce,_0xe3e4d5,_0x27f293,_0x1735f0){const _0x23d361=_0x3b57cd;super(_0x2db36c,_0x571fa6,null,_0x2d2227,_0x2550a5,_0x104924,_0x1735f0,_0x409f1a,_0x2d9361),u(this,_0x23d361(0x368),_0x23d361(0x51c)),u(this,'_scheduleTimestamp',null),u(this,_0x23d361(0x318),null),(this['_injector']=_0x47ff74,this[_0x23d361(0x312)]=_0x5213fd,this[_0x23d361(0x45c)]=_0x22b233,this[_0x23d361(0x490)]=_0x5446ce,this['_transformService']=_0xe3e4d5,this[_0x23d361(0x562)]=_0x27f293);}[_0x3b57cd(0x46e)](_0x355252){const _0x2945f8=_0x3b57cd;return this[_0x2945f8(0x344)][_0x2945f8(0x41e)](_0x355252),this[_0x2945f8(0x32c)](),this;}[_0x3b57cd(0x423)](_0x2f654f){const _0x449707=_0x3b57cd;if(this[_0x449707(0x47b)](_0x2f654f))return this['_clearScheduledTask'](),this[_0x449707(0x486)]['createInstance'](k,this[_0x449707(0x234)],this['type'],null,this[_0x449707(0x344)],null,[_0x2f654f],this[_0x449707(0x4cd)]);try{const _0x5bbd51=this[_0x449707(0x4be)][_0x449707(0x29a)](_0x2f654f,this[_0x449707(0x344)]);if(_[_0x449707(0x323)](_0x5bbd51)){const {c1Prime:_0x1b1ab7,m2Prime:_0x5d44e2}=_0x5bbd51;this['_executeRemoteChangeset'](_0x1b1ab7);const _0x288d9b=this['_injector'][_0x449707(0x39c)](W,this[_0x449707(0x234)],this['type'],_0x5d44e2,this[_0x449707(0x4cd)]);return this['_clearScheduledTask'](),_0x288d9b['_schedule'](this[_0x449707(0x1b2)]?Math[_0x449707(0x52a)](0x0,new Date()[_0x449707(0x16f)]()-this['_scheduleTimestamp']):this[_0x449707(0x185)]()),_0x288d9b;}throw _0x5bbd51['error'];}catch(_0x5b2898){return this['_logService'][_0x449707(0x37f)](_0x5b2898),this[_0x449707(0x446)](!0x1);}}['onRemoteAck'](){const _0x665cd1=_0x3b57cd;throw new Error(_0x665cd1(0x41b));}[_0x3b57cd(0x46c)](){const _0x2f5db6=_0x3b57cd;throw new Error(_0x2f5db6(0x546));}[_0x3b57cd(0x2f7)](){return this;}[_0x3b57cd(0x343)](){const _0x532de1=_0x3b57cd;return this[_0x532de1(0x52d)](),this[_0x532de1(0x486)]['createInstance'](X,this[_0x532de1(0x234)],this[_0x532de1(0x537)],null,this[_0x532de1(0x344)],this['_handler']);}[_0x3b57cd(0x175)](){return this;}[_0x3b57cd(0x461)](_0x577513){const _0x28ff75=_0x3b57cd,_0x1774f8=_0x577513!=null?_0x577513:this[_0x28ff75(0x185)]();this[_0x28ff75(0x1b2)]=new Date()[_0x28ff75(0x16f)](),this[_0x28ff75(0x318)]=window[_0x28ff75(0x247)](()=>{const _0x311533=_0x28ff75;this['_clearScheduledTask']();let _0x5333ee=null;switch(this[_0x311533(0x537)]){case H[_0x311533(0x53b)]:{_0x5333ee=ot(this[_0x311533(0x344)],this[_0x311533(0x234)],this[_0x311533(0x562)],this['_revisionService'],this[_0x311533(0x312)]);break;}case H['UNIVER_DOC']:{this['_pendingMutations'][_0x311533(0x212)](_0x33497b=>_0x33497b['id']===ne[_0x311533(0x50f)]['id'])?_0x5333ee=Fs(this[_0x311533(0x344)],this[_0x311533(0x234)],this[_0x311533(0x562)],this[_0x311533(0x294)],this['_memberService']):_0x5333ee=ot(this[_0x311533(0x344)],this[_0x311533(0x234)],this[_0x311533(0x562)],this[_0x311533(0x294)],this[_0x311533(0x312)]);break;}default:throw new Error(_0x311533(0x491)+this[_0x311533(0x537)]+_0x311533(0x2de));}const {changeset:_0x32e13a,pendingMutations:_0x3ba185}=_0x5333ee;this[_0x311533(0x4cd)][_0x311533(0x520)](_0x32e13a);const _0x59a448=_0x3ba185[_0x311533(0x54c)]?this[_0x311533(0x486)][_0x311533(0x39c)](F,this['unitID'],this[_0x311533(0x537)],_0x32e13a,_0x3ba185,this['_handler'],void 0x0):this[_0x311533(0x486)]['createInstance'](Y,this[_0x311533(0x234)],this[_0x311533(0x537)],_0x32e13a,this[_0x311533(0x4cd)]);_0x59a448[_0x311533(0x32c)](),this['_handler'][_0x311533(0x22f)](this,_0x59a448);},_0x1774f8);}[_0x3b57cd(0x185)](){const _0x335dd8=_0x3b57cd;var _0x39c98b;const _0x4b6de4=this[_0x335dd8(0x490)][_0x335dd8(0x38e)]($);return(_0x39c98b=_0x4b6de4==null?void 0x0:_0x4b6de4[_0x335dd8(0x195)])!=null?_0x39c98b:Zt;}[_0x3b57cd(0x3e8)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b57cd(0x52d)](){const _0x434f38=_0x3b57cd;this[_0x434f38(0x318)]!=null&&(clearTimeout(this[_0x434f38(0x318)]),this[_0x434f38(0x318)]=null);}[_0x3b57cd(0x446)](_0x454730){const _0x5b906f=_0x3b57cd;return this[_0x5b906f(0x52d)](),this[_0x5b906f(0x486)][_0x5b906f(0x39c)](K,this[_0x5b906f(0x234)],this[_0x5b906f(0x537)],null,this[_0x5b906f(0x344)],this['_handler'],_0x454730);}};W=Z([g(0x4,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),g(0x5,a['Inject'](_['RevisionService'])),g(0x6,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x33e)])),g(0x7,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x2e4)])),g(0x8,a[_0x3b57cd(0x4e7)]),g(0x9,a[_0x3b57cd(0x17e)]),g(0xa,a[_0x3b57cd(0x2f9)]),g(0xb,_[_0x3b57cd(0x4d5)]),g(0xc,a[_0x3b57cd(0x424)]),g(0xd,a[_0x3b57cd(0x327)])],W);let Y=class extends Q{constructor(_0x3c948e,_0x873146,_0x2791bb,_0x33d779,_0x270fcb,_0x50956a,_0x48c4dd,_0x54fe8c,_0x15c94b,_0x394c80,_0x4b44ef){const _0xe934d5=_0x3b57cd;super(_0x3c948e,_0x873146,_0x2791bb,[],_0x33d779,_0x54fe8c,_0x4b44ef,_0x50956a,_0x48c4dd),u(this,'status','awaiting'),u(this,'_resendTimeout',0x0),u(this,_0xe934d5(0x182)),u(this,_0xe934d5(0x40f)),(this[_0xe934d5(0x486)]=_0x270fcb,this[_0xe934d5(0x45c)]=_0x15c94b,this['_transformService']=_0x394c80);}[_0x3b57cd(0x46e)](_0x3875dd){const _0x4b32c9=_0x3b57cd;this[_0x4b32c9(0x52d)]();const _0x5ab2e4=this[_0x4b32c9(0x486)]['createInstance'](F,this[_0x4b32c9(0x234)],this[_0x4b32c9(0x537)],this['_awaitingChangeset'],[_0x3875dd],this['_handler'],this[_0x4b32c9(0x182)]);return _0x5ab2e4[_0x4b32c9(0x32c)](),_0x5ab2e4;}[_0x3b57cd(0x423)](_0x18f949){const _0x38930c=_0x3b57cd;if(this[_0x38930c(0x47b)](_0x18f949))return this[_0x38930c(0x52d)](),this[_0x38930c(0x486)]['createInstance'](k,this[_0x38930c(0x234)],this[_0x38930c(0x537)],this[_0x38930c(0x365)],[],null,[_0x18f949],this[_0x38930c(0x4cd)]);try{const _0x535bd4=this[_0x38930c(0x4be)]['transformChangesets']([_0x18f949],[this[_0x38930c(0x365)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x535bd4)){const {c1Prime:_0x35987c,c2Prime:_0x54882b}=_0x535bd4;this['_executeRemoteChangeset'](_0x35987c[0x0]),_0x54882b[0x0][_0x38930c(0x565)]=this[_0x38930c(0x505)](),this['_clearScheduledTask']();const _0x438aeb=this['_injector'][_0x38930c(0x39c)](Y,this[_0x38930c(0x234)],this['type'],_0x54882b[0x0],this[_0x38930c(0x4cd)]);return _0x438aeb[_0x38930c(0x32c)](),_0x438aeb;}return this[_0x38930c(0x446)](!0x1);}catch(_0x487201){return this[_0x38930c(0x45c)][_0x38930c(0x37f)](_0x487201),this[_0x38930c(0x446)](!0x1);}}[_0x3b57cd(0x558)](_0x582e12){const _0x2146c1=_0x3b57cd;this['_clearScheduledTask']();const _0x5d3d6a=this[_0x2146c1(0x294)][_0x2146c1(0x180)](this[_0x2146c1(0x234)]);if(_0x582e12['revision']<_0x5d3d6a-0x1)return this;if(this[_0x2146c1(0x47b)](_0x582e12))return this['_injector'][_0x2146c1(0x39c)](k,this['unitID'],this[_0x2146c1(0x537)],null,[],this['_awaitingChangeset'],[],this[_0x2146c1(0x4cd)]);this[_0x2146c1(0x447)]();const _0x249c42=this['_injector'][_0x2146c1(0x39c)](re,this['unitID'],this['type'],this[_0x2146c1(0x4cd)]);return _0x249c42[_0x2146c1(0x32c)](),_0x249c42;}[_0x3b57cd(0x46c)](_0x53af87){const _0x16fc3e=_0x3b57cd;return this[_0x16fc3e(0x446)](!!(_0x53af87!=null&&_0x53af87['isPermissionRej']));}['onRemoteRetry'](_0x2db9c0){const _0x274e37=_0x3b57cd;return this[_0x274e37(0x319)]>Ut?this['toggleOffline']():(this[_0x274e37(0x182)]=yt(this[_0x274e37(0x319)],{'timeout':this[_0x274e37(0x319)],'reqId':_0x2db9c0['reqId']}),this[_0x274e37(0x40f)]=this[_0x274e37(0x182)]['subscribe'](({reqId:_0xc52f04,timeout:_0x3c218b})=>{const _0x137596=_0x274e37;this[_0x137596(0x16a)](_0xc52f04,_0x3c218b);}),this);}['toggleOffline'](){const _0x2c3ff1=_0x3b57cd;return this[_0x2c3ff1(0x52d)](),this[_0x2c3ff1(0x486)][_0x2c3ff1(0x39c)](X,this[_0x2c3ff1(0x234)],this[_0x2c3ff1(0x537)],this['_awaitingChangeset'],[],this[_0x2c3ff1(0x4cd)]);}['toggleOnline'](){return this;}[_0x3b57cd(0x3e8)](){const _0x5dfcc8=_0x3b57cd;this[_0x5dfcc8(0x4cd)]['onSendChangeset'](this[_0x5dfcc8(0x365)]);}[_0x3b57cd(0x446)](_0xaab82e){const _0xe52426=_0x3b57cd;return this['_clearScheduledTask'](),this['_injector'][_0xe52426(0x39c)](K,this[_0xe52426(0x234)],this[_0xe52426(0x537)],this[_0xe52426(0x365)],[],this['_handler'],_0xaab82e);}[_0x3b57cd(0x16a)](_0x497c49,_0x2bb7d5){const _0x3cfcc2=_0x3b57cd;var _0x34d4e6;_0x497c49===((_0x34d4e6=this['_awaitingChangeset'])==null?void 0x0:_0x34d4e6['reqId'])&&(this['resend'](),this[_0x3cfcc2(0x319)]=_0x2bb7d5===0x0?0x3e8:_0x2bb7d5*0x2);}[_0x3b57cd(0x52d)](){const _0xb30b0=_0x3b57cd;var _0x2e812a;(_0x2e812a=this[_0xb30b0(0x40f)])==null||_0x2e812a[_0xb30b0(0x18d)](),this[_0xb30b0(0x319)]=0x0;}};Y=Z([g(0x4,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),g(0x5,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),g(0x6,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x33e)])),g(0x7,a[_0x3b57cd(0x17e)]),g(0x8,a[_0x3b57cd(0x4e7)]),g(0x9,_['ITransformService']),g(0xa,a[_0x3b57cd(0x327)])],Y);let F=class extends Q{constructor(_0x52c2ae,_0x5e9a53,_0x43db55,_0x1411e7,_0x385554,_0x28eeba,_0x41fe61,_0x3f9a9a,_0x562503,_0x1be06f,_0x1d3ee8,_0x74b5b9,_0x564f7a){const _0x2033b7=_0x3b57cd;super(_0x52c2ae,_0x5e9a53,_0x43db55,_0x1411e7,_0x385554,_0x1be06f,_0x564f7a,_0x3f9a9a,_0x562503),u(this,_0x2033b7(0x368),_0x2033b7(0x366)),u(this,_0x2033b7(0x319),0x0),u(this,_0x2033b7(0x182)),u(this,_0x2033b7(0x40f)),(this[_0x2033b7(0x486)]=_0x41fe61,this[_0x2033b7(0x45c)]=_0x1d3ee8,this['_transformService']=_0x74b5b9,_0x28eeba&&(this[_0x2033b7(0x182)]=_0x28eeba,this[_0x2033b7(0x40f)]=this[_0x2033b7(0x182)][_0x2033b7(0x508)](({reqId:_0x42dee1,timeout:_0x4d5e18})=>{this['_resendWithTimeout'](_0x42dee1,_0x4d5e18);})));}[_0x3b57cd(0x46e)](_0x5e775e){const _0x5e50e1=_0x3b57cd;return this[_0x5e50e1(0x344)][_0x5e50e1(0x41e)](_0x5e775e),this;}['onRemoteChangeset'](_0x3e32ec){const _0x37b9ee=_0x3b57cd;if(this[_0x37b9ee(0x47b)](_0x3e32ec))return this[_0x37b9ee(0x52d)](),this['_injector'][_0x37b9ee(0x39c)](k,this[_0x37b9ee(0x234)],this[_0x37b9ee(0x537)],this[_0x37b9ee(0x365)],this[_0x37b9ee(0x344)],null,[_0x3e32ec],this[_0x37b9ee(0x4cd)]);try{const _0xe101ff=this[_0x37b9ee(0x4be)][_0x37b9ee(0x244)]([_0x3e32ec],[this[_0x37b9ee(0x365)]],!0x1);if(_[_0x37b9ee(0x2ce)](_0xe101ff)){const {c1Prime:_0x3d0f61,c2Prime:_0x440d2e}=_0xe101ff,_0x512d4e=this[_0x37b9ee(0x4be)]['transformMutationsWithChangeset'](_0x3d0f61[0x0],this[_0x37b9ee(0x344)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x512d4e)){const {c1Prime:_0x133302,m2Prime:_0x29859c}=_0x512d4e;return this[_0x37b9ee(0x241)](_0x133302),_0x440d2e[0x0][_0x37b9ee(0x565)]=this[_0x37b9ee(0x505)](),this[_0x37b9ee(0x52d)](),this['_injector'][_0x37b9ee(0x39c)](F,this[_0x37b9ee(0x234)],this[_0x37b9ee(0x537)],_0x440d2e[0x0],_0x29859c,this[_0x37b9ee(0x4cd)],void 0x0);}throw _0x512d4e[_0x37b9ee(0x37f)];}throw _0xe101ff['error'];}catch(_0x58a4fc){return this['_logService'][_0x37b9ee(0x37f)](_0x58a4fc),this['_onConflict'](!0x1);}}[_0x3b57cd(0x558)](_0x47803d){const _0x500eb6=_0x3b57cd;if(this['_clearScheduledTask'](),this['_checkMissing'](_0x47803d))return this['_injector'][_0x500eb6(0x39c)](k,this['unitID'],this['type'],null,this[_0x500eb6(0x344)],this[_0x500eb6(0x365)],[],this['_handler']);this[_0x500eb6(0x447)]();const _0x471737=this['_injector'][_0x500eb6(0x39c)](W,this['unitID'],this[_0x500eb6(0x537)],this[_0x500eb6(0x344)],this['_handler']);return _0x471737[_0x500eb6(0x461)](),_0x471737[_0x500eb6(0x32c)](),_0x471737;}[_0x3b57cd(0x46c)](_0x497f71){const _0x516299=_0x3b57cd;return this[_0x516299(0x446)](!!(_0x497f71!=null&&_0x497f71[_0x516299(0x16e)]));}[_0x3b57cd(0x2f7)](_0x153e20){const _0x2608d5=_0x3b57cd;return this[_0x2608d5(0x319)]>Ut?this[_0x2608d5(0x343)]():(this[_0x2608d5(0x182)]=yt(this[_0x2608d5(0x319)],{'timeout':this['_resendTimeout'],'reqId':_0x153e20[_0x2608d5(0x3ee)]}),this[_0x2608d5(0x40f)]=this['_resendTimer']['subscribe'](({reqId:_0x338131,timeout:_0x4ebd70})=>{this['_resendWithTimeout'](_0x338131,_0x4ebd70);}),this);}[_0x3b57cd(0x343)](){const _0x23c3a2=_0x3b57cd;return this[_0x23c3a2(0x52d)](),this[_0x23c3a2(0x486)][_0x23c3a2(0x39c)](X,this[_0x23c3a2(0x234)],this['type'],this[_0x23c3a2(0x365)],this[_0x23c3a2(0x344)],this[_0x23c3a2(0x4cd)]);}[_0x3b57cd(0x175)](){return this;}[_0x3b57cd(0x3e8)](){const _0x1d3ddf=_0x3b57cd;this[_0x1d3ddf(0x4cd)][_0x1d3ddf(0x520)](this[_0x1d3ddf(0x365)]);}[_0x3b57cd(0x446)](_0x2e7499){const _0x41644f=_0x3b57cd;return this['_clearScheduledTask'](),this['_injector'][_0x41644f(0x39c)](K,this[_0x41644f(0x234)],this[_0x41644f(0x537)],null,this[_0x41644f(0x344)],this['_handler'],_0x2e7499);}[_0x3b57cd(0x16a)](_0x29fba5,_0x40bb28){const _0x188f1d=_0x3b57cd;var _0x5b4870;_0x29fba5===((_0x5b4870=this['_awaitingChangeset'])==null?void 0x0:_0x5b4870[_0x188f1d(0x3ee)])&&(this[_0x188f1d(0x3e8)](),this[_0x188f1d(0x319)]=_0x40bb28===0x0?0x3e8:_0x40bb28*0x2);}[_0x3b57cd(0x52d)](){const _0x76bd7c=_0x3b57cd;var _0x250838;(_0x250838=this[_0x76bd7c(0x40f)])==null||_0x250838[_0x76bd7c(0x18d)](),this['_resendTimeout']=0x0;}};F=Z([g(0x6,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),g(0x7,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),g(0x8,a['Inject'](exports['LocalCacheService'])),g(0x9,a[_0x3b57cd(0x17e)]),g(0xa,a[_0x3b57cd(0x4e7)]),g(0xb,_['ITransformService']),g(0xc,a[_0x3b57cd(0x327)])],F);let K=class extends Q{constructor(_0x9a5dc0,_0x36b938,_0x111542,_0x14503c,_0x405830,_0x19b418=!0x1,_0x577953,_0x587a50,_0x4f6465,_0x8a95e0,_0x320660,_0x3fdedf,_0x20d9a5){const _0x3a4e6b=_0x3b57cd;super(_0x9a5dc0,_0x36b938,_0x111542,_0x14503c,_0x405830,_0x587a50,_0x4f6465,_0x320660,_0x8a95e0),u(this,'status',_0x3a4e6b(0x2fb)),(this[_0x3a4e6b(0x1cc)]=_0x19b418,this[_0x3a4e6b(0x3f9)]=_0x577953,this[_0x3a4e6b(0x4fd)]=_0x3fdedf,this[_0x3a4e6b(0x299)]=_0x20d9a5,this[_0x3a4e6b(0x1ae)](),this[_0x3a4e6b(0x1c5)](),this[_0x3a4e6b(0x535)]());}[_0x3b57cd(0x46e)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x3b57cd(0x46c)](){return this;}['onRemoteRetry'](){return this;}[_0x3b57cd(0x343)](){return this;}[_0x3b57cd(0x175)](){return this;}[_0x3b57cd(0x3e8)](){const _0x16c284=_0x3b57cd;throw new Error(_0x16c284(0x321));}[_0x3b57cd(0x1c5)](){const _0x1f1198=_0x3b57cd;this[_0x1f1198(0x20c)]['updateOfflineData'](this['unitID'],this['type'],null,[]);}[_0x3b57cd(0x1ae)](){const _0x4fb666=_0x3b57cd;this['_isPermissionRej']?this['_notificationService']['show']({'title':this[_0x4fb666(0x4fd)]['t']('permission.title'),'content':this[_0x4fb666(0x4fd)]['t']('permission.content'),'type':_0x4fb666(0x37f),'duration':0x0}):this[_0x4fb666(0x299)]['show']({'title':this[_0x4fb666(0x4fd)]['t'](_0x4fb666(0x541)),'content':this[_0x4fb666(0x4fd)]['t'](_0x4fb666(0x23b)),'type':_0x4fb666(0x37f),'duration':0x0});}[_0x3b57cd(0x535)](){const _0x27f96c=_0x3b57cd;this[_0x27f96c(0x3f9)][_0x27f96c(0x1fc)](new C[(_0x27f96c(0x1aa))](this[_0x27f96c(0x234)])['id'],!0x1);}};K=Z([g(0x6,a[_0x3b57cd(0x4ad)](a['IPermissionService'])),g(0x7,a[_0x3b57cd(0x17e)]),g(0x8,a[_0x3b57cd(0x327)]),g(0x9,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x33e)])),g(0xa,a['Inject'](_[_0x3b57cd(0x29e)])),g(0xb,a['Inject'](a['LocaleService'])),g(0xc,A[_0x3b57cd(0x30c)])],K);let X=class extends Q{constructor(_0x303803,_0x5698fd,_0x363627,_0x5edfbf,_0x2785e4,_0x5b8f5e,_0x285e64,_0x724e3,_0x2811b7,_0x61e284){const _0x8ddaad=_0x3b57cd;super(_0x303803,_0x5698fd,_0x363627,_0x5edfbf,_0x2785e4,_0x2811b7,_0x61e284,_0x285e64,_0x724e3),u(this,_0x8ddaad(0x368),_0x8ddaad(0x359)),this[_0x8ddaad(0x486)]=_0x5b8f5e;}[_0x3b57cd(0x46e)](_0xcb42aa){const _0x5255f5=_0x3b57cd;return this['_pendingMutations'][_0x5255f5(0x41e)](_0xcb42aa),this[_0x5255f5(0x32c)](),this;}['onRemoteChangeset'](_0xd16314){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x14dd88=_0x3b57cd;throw new Error(_0x14dd88(0x482));}[_0x3b57cd(0x46c)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3b57cd(0x2f7)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x32391f=_0x3b57cd,{_injector:_0x141f97,_pendingMutations:_0x19b016,_awaitingChangeset:_0x3116f9,unitID:_0x1d71c7,_handler:_0x42860b,type:_0xbe4cc}=this,_0x3edf25=Pt(_0x141f97,_0x1d71c7,_0xbe4cc,_0x3116f9,_0x19b016,_0x42860b);return _0x3edf25 instanceof W?_0x3edf25[_0x32391f(0x461)]():(_0x3edf25 instanceof F||_0x3edf25 instanceof Y)&&_0x3edf25[_0x32391f(0x3e8)](),_0x3edf25;}[_0x3b57cd(0x3e8)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};X=Z([g(0x5,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),g(0x6,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),g(0x7,a[_0x3b57cd(0x4ad)](exports['LocalCacheService'])),g(0x8,a['ICommandService']),g(0x9,a[_0x3b57cd(0x327)])],X);let k=class extends Q{constructor(_0xa31ae7,_0x510c9c,_0x10b60e,_0x4ef80a,_0x2e0a83,_0x2ea256,_0x5bfc86,_0x34a3b9,_0x27621f,_0x5469ef,_0x441985,_0x39ef60,_0x403e40,_0x1ad43d){const _0x576804=_0x3b57cd;super(_0xa31ae7,_0x510c9c,_0x10b60e,_0x4ef80a,_0x5bfc86,_0x39ef60,_0x403e40,_0x27621f,_0x5469ef),u(this,_0x576804(0x368),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x2e0a83,this[_0x576804(0x3c3)]=_0x2ea256,this[_0x576804(0x486)]=_0x34a3b9,this[_0x576804(0x45c)]=_0x441985,this[_0x576804(0x4be)]=_0x1ad43d);}['onMissedChangesetFetched'](_0x73d4f9){const _0x33d09d=_0x3b57cd;try{const _0x33b69c=[..._0x73d4f9,...this[_0x33d09d(0x3c3)]],_0xd70472=[this['_awaitingChangeset']||this[_0x33d09d(0x4d2)]][_0x33d09d(0x445)](_0x4d3e17=>!!_0x4d3e17);let _0x37660b,_0x5d0b12;if(_0xd70472[_0x33d09d(0x54c)]){const _0x3cb81b=this['_transformService'][_0x33d09d(0x244)](_0x33b69c,_0xd70472,!0x1);if(!_[_0x33d09d(0x2ce)](_0x3cb81b))throw _0x3cb81b[_0x33d09d(0x37f)];_0x37660b=_0x3cb81b['c1Prime'],_0x5d0b12=_0x3cb81b[_0x33d09d(0x38a)];}else _0x37660b=_0x33b69c,_0x5d0b12=[];let _0x3b984b=this[_0x33d09d(0x344)];_0x37660b['forEach'](_0xc8bb3=>{const _0x57df0f=_0x33d09d;let _0x522272;if(_0x3b984b[_0x57df0f(0x54c)]){const _0xbd0459=this[_0x57df0f(0x4be)][_0x57df0f(0x29a)](_0xc8bb3,_0x3b984b);if(!_['isTransformMutationsWithChangesetSuccess'](_0xbd0459))throw _0xbd0459[_0x57df0f(0x37f)];_0x522272=_0xbd0459['c1Prime'],_0x3b984b=_0xbd0459[_0x57df0f(0x4d8)];}else _0x522272=_0xc8bb3;this['_executeRemoteChangeset'](_0x522272);}),this[_0x33d09d(0x4d2)]&&this[_0x33d09d(0x447)](),this[_0x33d09d(0x365)]&&_0x5d0b12[_0x33d09d(0x54c)]&&(_0x5d0b12[0x0][_0x33d09d(0x565)]=this[_0x33d09d(0x505)]());let _0x54abcc;if(this['_awaitingChangeset']&&_0x3b984b[_0x33d09d(0x54c)]!==0x0)_0x54abcc=this[_0x33d09d(0x486)]['createInstance'](F,this['unitID'],this[_0x33d09d(0x537)],_0x5d0b12[0x0],_0x3b984b,this[_0x33d09d(0x4cd)],void 0x0);else{if(this['_awaitingChangeset']&&_0x3b984b[_0x33d09d(0x54c)]===0x0)_0x5d0b12[0x0][_0x33d09d(0x565)]=this[_0x33d09d(0x505)](),_0x54abcc=this[_0x33d09d(0x486)]['createInstance'](Y,this['unitID'],this[_0x33d09d(0x537)],_0x5d0b12[0x0],this[_0x33d09d(0x4cd)]);else{if(_0x3b984b['length']!==0x0){const _0x179b4f=this['_injector']['createInstance'](W,this[_0x33d09d(0x234)],this[_0x33d09d(0x537)],_0x3b984b,this['_handler']);_0x179b4f[_0x33d09d(0x461)](),_0x54abcc=_0x179b4f;}else _0x54abcc=this[_0x33d09d(0x486)][_0x33d09d(0x39c)](re,this[_0x33d09d(0x234)],this['type'],this[_0x33d09d(0x4cd)]);}}return _0x54abcc['_updateLocalCache'](),_0x54abcc;}catch(_0x39244d){return this[_0x33d09d(0x45c)][_0x33d09d(0x37f)](_0x33d09d(0x3de),_0x33d09d(0x332),_0x39244d),this['_injector']['createInstance'](K,this[_0x33d09d(0x234)],this['type'],this[_0x33d09d(0x365)],this[_0x33d09d(0x344)],this[_0x33d09d(0x4cd)],!0x1);}}['resend'](){const _0x4a3520=_0x3b57cd;throw new Error(_0x4a3520(0x2aa));}[_0x3b57cd(0x46e)](_0x2f46ba){const _0x4289a0=_0x3b57cd;return this[_0x4289a0(0x344)][_0x4289a0(0x41e)](_0x2f46ba),this;}[_0x3b57cd(0x423)](_0x203086){const _0x141756=_0x3b57cd;return this[_0x141756(0x3c3)][_0x141756(0x41e)](_0x203086),this;}['onRemoteAck'](_0x1dd586){const _0x5ae5c9=_0x3b57cd;if(this[_0x5ae5c9(0x365)])return this[_0x5ae5c9(0x4d2)]=this[_0x5ae5c9(0x365)],this[_0x5ae5c9(0x365)]=null,this;throw new Error(_0x5ae5c9(0x324));}[_0x3b57cd(0x46c)](_0x5e4f1a){const _0x19a20c=_0x3b57cd;return this[_0x19a20c(0x446)](!!(_0x5e4f1a!=null&&_0x5e4f1a[_0x19a20c(0x16e)]));}[_0x3b57cd(0x2f7)](){return this;}[_0x3b57cd(0x343)](){const _0x563e85=_0x3b57cd;return this['_injector'][_0x563e85(0x39c)](X,this[_0x563e85(0x234)],this[_0x563e85(0x537)],this[_0x563e85(0x365)],this['_pendingMutations'],this['_handler']);}[_0x3b57cd(0x175)](){return this;}[_0x3b57cd(0x446)](_0x2bab32){const _0x43a809=_0x3b57cd;return this[_0x43a809(0x486)]['createInstance'](K,this[_0x43a809(0x234)],this['type'],this[_0x43a809(0x365)],this['_pendingMutations'],this['_handler'],_0x2bab32);}};k=Z([g(0x7,a[_0x3b57cd(0x4ad)](a['Injector'])),g(0x8,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),g(0x9,a['Inject'](exports[_0x3b57cd(0x33e)])),g(0xa,a[_0x3b57cd(0x4e7)]),g(0xb,a['ICommandService']),g(0xc,a[_0x3b57cd(0x327)]),g(0xd,_['ITransformService'])],k);function Pt(_0x13e740,_0x48e28b,_0x365b62,_0x327b99,_0x59d269,_0x5648b6){const _0x114b93=_0x3b57cd;return _0x327b99&&_0x59d269[_0x114b93(0x54c)]?_0x13e740[_0x114b93(0x39c)](F,_0x48e28b,_0x365b62,_0x327b99,_0x59d269,_0x5648b6,void 0x0):_0x327b99?_0x13e740[_0x114b93(0x39c)](Y,_0x48e28b,_0x365b62,_0x327b99,_0x5648b6):_0x59d269[_0x114b93(0x54c)]?_0x13e740[_0x114b93(0x39c)](W,_0x48e28b,_0x365b62,_0x59d269,_0x5648b6):_0x13e740[_0x114b93(0x39c)](re,_0x48e28b,_0x365b62,_0x5648b6);}var Xs=Object['defineProperty'],qs=Object[_0x3b57cd(0x35f)],qe=(_0x55e7ca,_0x4f5fb3,_0x578250,_0x376eb7)=>{const _0x387c0c=_0x3b57cd;for(var _0x42648c=_0x376eb7>0x1?void 0x0:_0x376eb7?qs(_0x4f5fb3,_0x578250):_0x4f5fb3,_0xadfef5=_0x55e7ca[_0x387c0c(0x54c)]-0x1,_0x2201de;_0xadfef5>=0x0;_0xadfef5--)(_0x2201de=_0x55e7ca[_0xadfef5])&&(_0x42648c=(_0x376eb7?_0x2201de(_0x4f5fb3,_0x578250,_0x42648c):_0x2201de(_0x42648c))||_0x42648c);return _0x376eb7&&_0x42648c&&Xs(_0x4f5fb3,_0x578250,_0x42648c),_0x42648c;},p=(_0x417780,_0x50447f)=>(_0x400aa2,_0x41347c)=>_0x50447f(_0x400aa2,_0x41347c,_0x417780);exports['CollaborationEntity']=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x3c99f3,_0x5b2ab4,_0x71e30,_0x2dca42,_0x1fc389,_0x48cace,_0x34ddf8,_0x2ab84d,_0x55252f,_0x536003,_0x5b240d,_0x57b5a9,_0x5995f9){const _0x334a25=_0x3b57cd;super(),u(this,_0x334a25(0x27c),new v[(_0x334a25(0x470))](null)),u(this,_0x334a25(0x1fe),this[_0x334a25(0x27c)]['asObservable']()),u(this,'_state'),u(this,_0x334a25(0x2ec),!0x1),u(this,_0x334a25(0x3b1),''),u(this,'_changesetReqId',0x0),u(this,_0x334a25(0x533),this[_0x334a25(0x1fe)]['pipe'](v[_0x334a25(0x439)](_0x3b93e4=>_0x3b93e4?_0x3b93e4['status']:D[_0x334a25(0x590)]),v['shareReplay'](0x1))),u(this,_0x334a25(0x4d1),!0x1),u(this,_0x334a25(0x506),[]),(this[_0x334a25(0x234)]=_0x3c99f3,this[_0x334a25(0x4e0)]=_0x5b2ab4,this[_0x334a25(0x3c8)]=_0x71e30,this['_injector']=_0x2dca42,this[_0x334a25(0x20c)]=_0x1fc389,this['_compressMutationService']=_0x48cace,this[_0x334a25(0x4fd)]=_0x34ddf8,this[_0x334a25(0x294)]=_0x2ab84d,this[_0x334a25(0x45c)]=_0x55252f,this['_commandService']=_0x536003,this[_0x334a25(0x4e1)]=_0x5b240d,this[_0x334a25(0x3f9)]=_0x57b5a9,this['_singleActiveUnitService']=_0x5995f9);}get[_0x3b57cd(0x2ca)](){return this['_state'];}async['init'](){const _0x1d9f83=_0x3b57cd;if(this[_0x1d9f83(0x2ca)])throw new Error(_0x1d9f83(0x469));await this['_init']();}['pauseCollaboration'](){const _0x3fc7ba=_0x3b57cd;return this[_0x3fc7ba(0x2ec)]=!0x0,a[_0x3fc7ba(0x44c)](()=>{const _0x3ae439=_0x3fc7ba;this[_0x3ae439(0x2ec)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x3bb2e1){const _0x2f99e4=_0x3b57cd;this['_state']=_0x3bb2e1,this['_state$'][_0x2f99e4(0x3b8)](_0x3bb2e1);}async[_0x3b57cd(0x1d3)](){const _0x5150b1=_0x3b57cd;var _0x30363c;this[_0x5150b1(0x381)](await this[_0x5150b1(0x2d3)]()),this[_0x5150b1(0x4b9)]&&((_0x30363c=this[_0x5150b1(0x4b9)])==null||_0x30363c[_0x5150b1(0x253)](this[_0x5150b1(0x234)]),this[_0x5150b1(0x431)](this[_0x5150b1(0x4b9)][_0x5150b1(0x282)](this[_0x5150b1(0x234)])[_0x5150b1(0x508)](_0x51389c=>{const _0x1720d1=_0x5150b1;this[_0x1720d1(0x45c)][_0x1720d1(0x3ec)](_0x1720d1(0x517),_0x1720d1(0x18f),_0x51389c),_0x51389c===Ot[_0x1720d1(0x474)]?(this[_0x1720d1(0x4e1)][_0x1720d1(0x2e8)]({'content':this[_0x1720d1(0x4fd)]['t'](_0x1720d1(0x4fe)),'type':J['MessageType'][_0x1720d1(0x46b)]}),this[_0x1720d1(0x3f9)][_0x1720d1(0x1fc)](new C[(_0x1720d1(0x1aa))](this[_0x1720d1(0x234)])['id'],!0x1),this[_0x1720d1(0x3f9)][_0x1720d1(0x2b7)](!0x1)):(this[_0x1720d1(0x3f9)][_0x1720d1(0x1fc)](new C[(_0x1720d1(0x1aa))](this[_0x1720d1(0x234)])['id'],!0x0),this[_0x1720d1(0x3f9)][_0x1720d1(0x2b7)](!0x0));})));let _0x805f16=!0x1;return this['disposeWithMe'](this[_0x5150b1(0x4e0)][_0x5150b1(0x407)][_0x5150b1(0x508)](_0x302b3a=>{const _0xe9548=_0x5150b1;_0x302b3a===x['ONLINE']?this[_0xe9548(0x425)](_0x805f16):_0x302b3a===x['OFFLINE']&&(_0x805f16=!0x0,this['_toggleOffline']());})),this[_0x5150b1(0x431)](this[_0x5150b1(0x4e0)][_0x5150b1(0x320)][_0x5150b1(0x508)](_0x4add77=>{const _0x357584=_0x5150b1;try{switch(_0x4add77['eventID']){case _[_0x357584(0x556)][_0x357584(0x27a)]:{this[_0x357584(0x21f)](_[_0x357584(0x529)](_0x4add77['data']));break;}case _[_0x357584(0x556)][_0x357584(0x1a1)]:{this[_0x357584(0x3cb)](_0x4add77[_0x357584(0x30a)]);break;}case _['CollaborationEvent'][_0x357584(0x239)]:{this[_0x357584(0x1be)]();break;}case _[_0x357584(0x556)][_0x357584(0x2c0)]:{this[_0x357584(0x1ef)](_0x4add77[_0x357584(0x30a)]);break;}case _[_0x357584(0x556)][_0x357584(0x24a)]:{this[_0x357584(0x3b9)](_0x4add77[_0x357584(0x30a)][_0x357584(0x34a)]['map'](_0x493c3e=>_[_0x357584(0x529)](_0x493c3e)));break;}case _[_0x357584(0x556)][_0x357584(0x449)]:this[_0x357584(0x1be)]({'isPermissionRej':!0x0});}}catch(_0x8d705){throw console['error'](_0x357584(0x475),_0x8d705),_0x8d705;}})),this[_0x5150b1(0x38d)];}[_0x3b57cd(0x2e1)](){const _0x533b40=_0x3b57cd;this[_0x533b40(0x4d1)]=!0x1;}[_0x3b57cd(0x463)](){const _0x1cf65a=_0x3b57cd;if(this['_transitionLocked'])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x1cf65a(0x4d1)]=!0x0;}[_0x3b57cd(0x206)](_0x1ff673){const _0x458bcf=_0x3b57cd;this['_lockTransition'](),this[_0x458bcf(0x381)](this[_0x458bcf(0x38d)][_0x458bcf(0x46e)](_0x1ff673)),this[_0x458bcf(0x2e1)]();}[_0x3b57cd(0x21f)](_0x4042e8){const _0x3743c1=_0x3b57cd;if(!(_0x4042e8[_0x3743c1(0x1e1)]<=this['_revisionService'][_0x3743c1(0x180)](this[_0x3743c1(0x234)]))){if(this[_0x3743c1(0x2ec)]){this[_0x3743c1(0x506)][_0x3743c1(0x41e)](_0x4042e8);return;}this[_0x3743c1(0x1af)](_0x4042e8);}}[_0x3b57cd(0x2d8)](){const _0x3f3c15=_0x3b57cd;this[_0x3f3c15(0x506)][_0x3f3c15(0x571)](_0x12efca=>this[_0x3f3c15(0x1af)](_0x12efca)),this[_0x3f3c15(0x506)]=[];}[_0x3b57cd(0x1af)](_0x3cc294){const _0x598e84=_0x3b57cd,_0x4856bb=this[_0x598e84(0x496)]['interceptor'][_0x598e84(0x458)](this['_compressMutationService'][_0x598e84(0x203)][_0x598e84(0x422)]()[_0x598e84(0x301)])(_0x3cc294[_0x598e84(0x3fa)],null)||_0x3cc294[_0x598e84(0x3fa)],_0x367eb3={..._0x3cc294,'mutations':_0x4856bb};this[_0x598e84(0x463)](),this[_0x598e84(0x381)](this[_0x598e84(0x38d)]['onRemoteChangeset'](_0x367eb3)),this[_0x598e84(0x2e1)]();}[_0x3b57cd(0x3cb)](_0x1cf38a){const _0x20db3b=_0x3b57cd;this[_0x20db3b(0x463)](),this[_0x20db3b(0x381)](this[_0x20db3b(0x38d)][_0x20db3b(0x558)](_0x1cf38a)),this['_unlockTransition']();}[_0x3b57cd(0x1be)](_0x27f618){const _0x4fccca=_0x3b57cd;this[_0x4fccca(0x463)](),this['_updateState'](this[_0x4fccca(0x38d)][_0x4fccca(0x46c)](_0x27f618)),this[_0x4fccca(0x2e1)]();}[_0x3b57cd(0x1ef)](_0x184066){const _0x1a49c1=_0x3b57cd;this['_lockTransition'](),this[_0x1a49c1(0x381)](this[_0x1a49c1(0x38d)][_0x1a49c1(0x2f7)](_0x184066)),this['_unlockTransition']();}[_0x3b57cd(0x3b9)](_0x3a2bb0){const _0x734b31=_0x3b57cd;if(!(this[_0x734b31(0x38d)]instanceof k))throw new TypeError(_0x734b31(0x4e8));const _0x19c096=_0x3a2bb0[_0x734b31(0x439)](_0x10de4c=>{const _0x6fcc3a=_0x734b31,_0x120217=this[_0x6fcc3a(0x496)][_0x6fcc3a(0x203)][_0x6fcc3a(0x458)](this[_0x6fcc3a(0x496)][_0x6fcc3a(0x203)][_0x6fcc3a(0x422)]()[_0x6fcc3a(0x301)])(_0x10de4c[_0x6fcc3a(0x3fa)],null)||_0x10de4c[_0x6fcc3a(0x3fa)];return{..._0x10de4c,'mutations':_0x120217};});this[_0x734b31(0x463)](),this[_0x734b31(0x381)](this[_0x734b31(0x38d)][_0x734b31(0x404)](_0x19c096)),this[_0x734b31(0x2e1)]();}[_0x3b57cd(0x31c)](){const _0x198148=_0x3b57cd;this['_lockTransition'](),this[_0x198148(0x381)](this[_0x198148(0x38d)][_0x198148(0x343)]()),this[_0x198148(0x2e1)]();}[_0x3b57cd(0x425)](_0xaf8de8=!0x1){const _0x3d70ae=_0x3b57cd;this['_lockTransition'](),this[_0x3d70ae(0x381)](this[_0x3d70ae(0x38d)][_0x3d70ae(0x175)]()),this[_0x3d70ae(0x2e1)]();const _0x2e379f=this[_0x3d70ae(0x38d)];_0xaf8de8&&_0x2e379f instanceof re&&(this[_0x3d70ae(0x463)](),this[_0x3d70ae(0x381)](_0x2e379f[_0x3d70ae(0x1b7)]()),this[_0x3d70ae(0x2e1)]());}async[_0x3b57cd(0x2d3)](){return new Promise(_0x53ee22=>{const _0xeb22d1=_0x4497;this[_0xeb22d1(0x4e0)]['sessionStatus$'][_0xeb22d1(0x3b4)](v[_0xeb22d1(0x341)](0x1))[_0xeb22d1(0x508)](async _0x531ea4=>{const _0x1526bc=_0xeb22d1;_0x53ee22(await this['_createInitialStateImpl'](_0x531ea4===x[_0x1526bc(0x2a9)]));});});}[_0x3b57cd(0x3b7)](){const _0x1538d9=_0x3b57cd,_0x275d61=this[_0x1538d9(0x234)];return{'onStateChange':(_0x466d0d,_0xc13905)=>{const _0x4d5269=_0x1538d9;if(_0x466d0d!==this[_0x4d5269(0x38d)])throw new Error(_0x4d5269(0x214)+_0x466d0d[_0x4d5269(0x368)]+'\x0aAfter:\x20'+_0xc13905[_0x4d5269(0x368)]+'\x0aCurrent:\x20'+this['_state'][_0x4d5269(0x368)]);this[_0x4d5269(0x381)](_0xc13905);},'onSendChangeset':_0x6090d3=>{const _0x2249f5=_0x1538d9;_0x6090d3[_0x2249f5(0x330)]||(_0x6090d3[_0x2249f5(0x330)]=this[_0x2249f5(0x3b1)],_0x6090d3[_0x2249f5(0x3ee)]=++this[_0x2249f5(0x242)]);const _0x58a4d5={'eventID':_[_0x2249f5(0x556)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x6090d3[_0x2249f5(0x234)],'unitType':this[_0x2249f5(0x3c8)],'changeset':_0x6090d3,'memberID':this[_0x2249f5(0x4e0)][_0x2249f5(0x339)]()}};this[_0x2249f5(0x4e0)][_0x2249f5(0x1e8)](_0x58a4d5,this[_0x2249f5(0x234)]);},'onMissingChangesets':({from:_0x580b9e,to:_0x2a20c1})=>{const _0x4178a4=_0x1538d9;this[_0x4178a4(0x45c)][_0x4178a4(0x3ec)](_0x4178a4(0x517),_0x4178a4(0x4a0)+_0x580b9e+_0x4178a4(0x35e)+_0x2a20c1);const _0x27f0d6={'eventID':_[_0x4178a4(0x556)][_0x4178a4(0x3fd)],'data':{'unitID':_0x275d61,'unitType':this['_type'],'from':_0x580b9e,'to':_0x2a20c1}};this[_0x4178a4(0x4e0)][_0x4178a4(0x1e8)](_0x27f0d6,this[_0x4178a4(0x234)]);}};}async[_0x3b57cd(0x552)](_0x27abfc){const _0x177251=_0x3b57cd;var _0x5d2505,_0x276366;const _0x11ad9f=await this[_0x177251(0x20c)][_0x177251(0x39d)](this[_0x177251(0x234)]),_0x4a691f=(_0x5d2505=_0x11ad9f==null?void 0x0:_0x11ad9f['mutations'])!=null?_0x5d2505:[],_0x5307e9=(_0x276366=_0x11ad9f==null?void 0x0:_0x11ad9f[_0x177251(0x4f4)])!=null?_0x276366:null,_0xdddc98=!!(_0x5307e9!=null&&_0x5307e9[_0x177251(0x330)])&&!!(_0x5307e9!=null&&_0x5307e9[_0x177251(0x3ee)]);this[_0x177251(0x3b1)]=_0xdddc98?_0x5307e9[_0x177251(0x330)]:Ds(),this['_changesetReqId']=_0xdddc98?_0x5307e9[_0x177251(0x3ee)]:0x0;const _0x54fe46=this['unitID'];try{this[_0x177251(0x2be)](_0x5307e9,_0x4a691f);}catch(_0x1d1d14){this[_0x177251(0x45c)][_0x177251(0x37f)](_0x1d1d14);}const _0x4cd864=this['_createHandler']();if(_0x27abfc){const _0x1ffdee=Pt(this[_0x177251(0x486)],_0x54fe46,this[_0x177251(0x3c8)],_0x5307e9,_0x4a691f,_0x4cd864);return _0x1ffdee instanceof W?_0x1ffdee[_0x177251(0x461)]():(_0x1ffdee instanceof F||_0x1ffdee instanceof Y)&&_0x1ffdee[_0x177251(0x3e8)](),_0x1ffdee;}return this[_0x177251(0x486)][_0x177251(0x39c)](X,_0x54fe46,this[_0x177251(0x3c8)],_0x5307e9,_0x4a691f,_0x4cd864);}[_0x3b57cd(0x2be)](_0x1506e5,_0x4cba43){const _0x1d4fb5=_0x3b57cd;var _0x410be0,_0x1d1fe7;const _0x5908e1=this[_0x1d4fb5(0x496)][_0x1d4fb5(0x203)][_0x1d4fb5(0x458)](this[_0x1d4fb5(0x496)][_0x1d4fb5(0x203)][_0x1d4fb5(0x422)]()[_0x1d4fb5(0x301)]);(_0x410be0=_0x5908e1((_0x1506e5==null?void 0x0:_0x1506e5['mutations'])||[],null))==null||_0x410be0[_0x1d4fb5(0x571)](_0x1fdcbd=>this['_commandService']['executeCommand'](_0x1fdcbd['id'],_0x1fdcbd[_0x1d4fb5(0x333)])),(_0x1d1fe7=_0x5908e1(_0x4cba43||[],null))==null||_0x1d1fe7[_0x1d4fb5(0x571)](_0x2d012f=>this[_0x1d4fb5(0x33b)][_0x1d4fb5(0x3be)](_0x2d012f['id'],_0x2d012f[_0x1d4fb5(0x333)]));}},exports[_0x3b57cd(0x44d)]=qe([p(0x3,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),p(0x4,a[_0x3b57cd(0x4ad)](exports['LocalCacheService'])),p(0x5,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x488)])),p(0x6,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)])),p(0x7,a[_0x3b57cd(0x4ad)](_['RevisionService'])),p(0x8,a['ILogService']),p(0x9,a['ICommandService']),p(0xa,A[_0x3b57cd(0x1ee)]),p(0xb,a['IPermissionService']),p(0xc,a[_0x3b57cd(0x200)](Re))],exports[_0x3b57cd(0x44d)]),exports[_0x3b57cd(0x57f)]=class extends exports[_0x3b57cd(0x44d)]{constructor(_0xbcaf71,_0x24222f,_0x1b2ec4,_0x66952f,_0x89f663,_0x21ed7c,_0x5b16f6,_0x3bb657,_0x380853,_0x13159a,_0x2b8550,_0x4cff07,_0x31f9c6,_0x2ee117,_0x28d214,_0x416c39,_0x42ef76){const _0x506c9e=_0x3b57cd;super(_0xbcaf71,_0x1b2ec4,_0x24222f,_0x66952f,_0x89f663,_0x21ed7c,_0x5b16f6,_0x3bb657,_0x31f9c6,_0x2ee117,_0x28d214,_0x416c39,_0x42ef76),this['unitID']=_0xbcaf71,this['type']=_0x24222f,this[_0x506c9e(0x4a6)]=_0x380853,this[_0x506c9e(0x3f6)]=_0x13159a,this[_0x506c9e(0x230)]=_0x2b8550,this[_0x506c9e(0x456)]=_0x4cff07;}[_0x3b57cd(0x3b7)](){const _0x37ddb2=_0x3b57cd,_0x1045a1=super[_0x37ddb2(0x3b7)]();return _0x1045a1[_0x37ddb2(0x58a)]=_0x39ba7b=>this[_0x37ddb2(0x3f6)][_0x37ddb2(0x29d)](_0x39ba7b),_0x1045a1[_0x37ddb2(0x36c)]=_0x448968=>this[_0x37ddb2(0x230)]['transformSelections'](_0x448968),_0x1045a1[_0x37ddb2(0x4c2)]=_0x3f7acb=>this[_0x37ddb2(0x456)][_0x37ddb2(0x4e4)](_0x3f7acb),_0x1045a1[_0x37ddb2(0x408)]=_0x27c1da=>this[_0x37ddb2(0x3f6)]['transformRemoteChangeset'](_0x27c1da),_0x1045a1;}async['_init'](){const _0x7b67f5=_0x3b57cd,_0x3fe1b0=await super[_0x7b67f5(0x1d3)]();return this[_0x7b67f5(0x4a6)][_0x7b67f5(0x275)]['pipe'](v[_0x7b67f5(0x1b3)](this[_0x7b67f5(0x3fc)]))[_0x7b67f5(0x508)](_0x341681=>{const _0x178b74=_0x7b67f5;if(_0x341681==null)return;const {unitId:_0x45d38d,redoState:_0x481531,commandId:_0x14aa6c}=_0x341681;if(_0x45d38d!==this[_0x178b74(0x234)])return;const _0x51051c={'id':_0x14aa6c,'type':a[_0x178b74(0x21d)][_0x178b74(0x335)],'params':{'unitId':_0x45d38d,'actions':_0x481531['actions'],'textRanges':null}};this[_0x178b74(0x206)](_0x51051c);}),_0x3fe1b0;}},exports['DocCollaborationEntity']=qe([p(0x3,a['Inject'](a[_0x3b57cd(0x232)])),p(0x4,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x33e)])),p(0x5,a['Inject'](_[_0x3b57cd(0x488)])),p(0x6,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)])),p(0x7,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),p(0x8,a[_0x3b57cd(0x4ad)](N[_0x3b57cd(0x479)])),p(0x9,a[_0x3b57cd(0x4ad)](fe)),p(0xa,a[_0x3b57cd(0x4ad)](pe)),p(0xb,a[_0x3b57cd(0x4ad)](Xe)),p(0xc,a['ILogService']),p(0xd,a[_0x3b57cd(0x17e)]),p(0xe,A[_0x3b57cd(0x1ee)]),p(0xf,a[_0x3b57cd(0x460)]),p(0x10,a[_0x3b57cd(0x200)](Re))],exports[_0x3b57cd(0x57f)]),exports[_0x3b57cd(0x510)]=class extends exports[_0x3b57cd(0x44d)]{constructor(_0x435646,_0x1717a1,_0x200d2e,_0x28b90a,_0x39ba50,_0x28fc6,_0xa6126f,_0x283477,_0x3d5273,_0x474957,_0x573f39,_0x26de29,_0x5e0f9c,_0x2f9043){const _0x4dc5c2=_0x3b57cd;super(_0x435646,_0x200d2e,_0x1717a1,_0x28b90a,_0x39ba50,_0x28fc6,_0xa6126f,_0x283477,_0x474957,_0x573f39,_0x26de29,_0x5e0f9c,_0x2f9043),this[_0x4dc5c2(0x234)]=_0x435646,this[_0x4dc5c2(0x537)]=_0x1717a1,this[_0x4dc5c2(0x43c)]=_0x3d5273;}['_createHandler'](){const _0x44a34d=_0x3b57cd,_0x4cffdb=super[_0x44a34d(0x3b7)]();return _0x4cffdb[_0x44a34d(0x36c)]=_0x26431d=>this['_sheetTransformSelectionsService']['transformSelections'](_0x26431d),_0x4cffdb;}async['_init'](){const _0x39e013=_0x3b57cd,_0x279855=await super['_init']();return this[_0x39e013(0x431)](this['_commandService'][_0x39e013(0x33f)]((_0x55be2f,_0x538582)=>{const _0x43a98d=_0x39e013;if(_0x55be2f[_0x43a98d(0x537)]!==a[_0x43a98d(0x21d)][_0x43a98d(0x335)]||_0x538582!=null&&_0x538582['fromCollab']||_0x538582!=null&&_0x538582[_0x43a98d(0x2f1)])return;const _0x2de376=_0x55be2f[_0x43a98d(0x333)];if((_0x2de376==null?void 0x0:_0x2de376[_0x43a98d(0x267)])!==this['unitID'])return;const _0x283d67=_0x55be2f,_0x26bb80=this['_compressMutationService'][_0x43a98d(0x203)][_0x43a98d(0x458)](this[_0x43a98d(0x496)]['interceptor'][_0x43a98d(0x422)]()['COMPRESS_MUTATION_SEND'])([_0x283d67],null)||[_0x283d67];this['_onLocalMutation'](_0x26bb80[0x0]);})),_0x279855;}},exports['SheetCollaborationEntity']=qe([p(0x3,a[_0x3b57cd(0x4ad)](a['Injector'])),p(0x4,a['Inject'](exports['LocalCacheService'])),p(0x5,a['Inject'](_['CompressMutationService'])),p(0x6,a['Inject'](a[_0x3b57cd(0x1f9)])),p(0x7,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),p(0x8,a[_0x3b57cd(0x4ad)](Ie)),p(0x9,a['ILogService']),p(0xa,a[_0x3b57cd(0x17e)]),p(0xb,A[_0x3b57cd(0x1ee)]),p(0xc,a[_0x3b57cd(0x460)]),p(0xd,a[_0x3b57cd(0x200)](Re))],exports[_0x3b57cd(0x510)]);var zs=Object[_0x3b57cd(0x44e)],Js=Object['getOwnPropertyDescriptor'],Zs=(_0x57f71f,_0x2e63bd,_0x25c75d,_0x5f4858)=>{const _0x3af69b=_0x3b57cd;for(var _0x4989ec=_0x5f4858>0x1?void 0x0:_0x5f4858?Js(_0x2e63bd,_0x25c75d):_0x2e63bd,_0x318bfe=_0x57f71f[_0x3af69b(0x54c)]-0x1,_0x1f2157;_0x318bfe>=0x0;_0x318bfe--)(_0x1f2157=_0x57f71f[_0x318bfe])&&(_0x4989ec=(_0x5f4858?_0x1f2157(_0x2e63bd,_0x25c75d,_0x4989ec):_0x1f2157(_0x4989ec))||_0x4989ec);return _0x5f4858&&_0x4989ec&&zs(_0x2e63bd,_0x25c75d,_0x4989ec),_0x4989ec;},we=(_0x10c3e9,_0x2adcc7)=>(_0x3d71c1,_0x110088)=>_0x2adcc7(_0x3d71c1,_0x110088,_0x10c3e9);exports[_0x3b57cd(0x386)]=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x5dfa67,_0x21b558,_0x237949){const _0x34ff36=_0x3b57cd;super(),u(this,_0x34ff36(0x4cc),new Map()),u(this,_0x34ff36(0x177),new v['Subject']()),(this[_0x34ff36(0x486)]=_0x5dfa67,this['_collabSessionService']=_0x21b558,this[_0x34ff36(0x562)]=_0x237949,this['_init']());}[_0x3b57cd(0x378)](){const _0x18d816=_0x3b57cd;super[_0x18d816(0x378)](),this['_entities']['forEach'](_0x11505d=>_0x11505d['dispose']()),this['_entities'][_0x18d816(0x1c2)]();}['getCollabEntity'](_0x53236b){const _0x404cba=_0x3b57cd;var _0x1f0008;return(_0x1f0008=this[_0x404cba(0x4cc)][_0x404cba(0x4e6)](_0x53236b))!=null?_0x1f0008:null;}['getCollabEntity$'](_0x5b2d39){const _0x2bd031=_0x3b57cd,_0x14ea64=this[_0x2bd031(0x19b)](_0x5b2d39);return _0x14ea64?v['of'](_0x14ea64):this[_0x2bd031(0x177)]['pipe'](E['filter'](_0x40653b=>_0x40653b['unitID']===_0x5b2d39));}[_0x3b57cd(0x1d3)](){const _0x30bcf9=_0x3b57cd;this[_0x30bcf9(0x562)]['getTypeOfUnitAdded$'](a[_0x30bcf9(0x2b4)][_0x30bcf9(0x53b)])['pipe'](v[_0x30bcf9(0x1b3)](this['dispose$']),E[_0x30bcf9(0x495)](0x10))[_0x30bcf9(0x508)](async _0x5ae229=>{const _0x57579e=_0x30bcf9,_0x421fa8=_0x5ae229['getUnitId'](),_0x5c33d5=await this[_0x57579e(0x3a9)](_0x421fa8,H['UNIVER_SHEET']);this['_entities']['set'](_0x421fa8,_0x5c33d5);}),this[_0x30bcf9(0x562)][_0x30bcf9(0x1e3)](a[_0x30bcf9(0x2b4)][_0x30bcf9(0x1a9)])['pipe'](v[_0x30bcf9(0x1b3)](this[_0x30bcf9(0x3fc)]),E[_0x30bcf9(0x495)](0x10))['pipe'](E[_0x30bcf9(0x445)](_0x166df0=>!_0x166df0[_0x30bcf9(0x2fa)]()[_0x30bcf9(0x58c)]('__')))[_0x30bcf9(0x508)](async _0x277fe9=>{const _0x41afad=_0x30bcf9,_0x465ffd=_0x277fe9[_0x41afad(0x2fa)](),_0x2051b8=await this['_startCollaboration'](_0x465ffd,H['UNIVER_DOC']);this[_0x41afad(0x4cc)][_0x41afad(0x4af)](_0x465ffd,_0x2051b8);}),v[_0x30bcf9(0x547)](this[_0x30bcf9(0x562)][_0x30bcf9(0x44f)](a['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService'][_0x30bcf9(0x44f)](a[_0x30bcf9(0x2b4)][_0x30bcf9(0x1a9)]))['pipe'](v[_0x30bcf9(0x1b3)](this[_0x30bcf9(0x3fc)]))[_0x30bcf9(0x508)](_0x2a10b9=>{const _0x3e3430=_0x30bcf9,_0x8eeaec=_0x2a10b9['getUnitId'](),_0x392818=this[_0x3e3430(0x4cc)]['get'](_0x8eeaec);_0x392818&&(_0x392818[_0x3e3430(0x378)](),this['_entities']['delete'](_0x8eeaec));});}async[_0x3b57cd(0x3a9)](_0x1c03f6,_0x2cedec){const _0x516c70=_0x3b57cd,_0x37e505=await this[_0x516c70(0x1e5)]['requireSession'](_0x1c03f6),_0x15dbb3=this['_injector'][_0x516c70(0x39c)](this['_getCtorByUniverType'](_0x2cedec),_0x1c03f6,_0x2cedec,_0x37e505);return await _0x15dbb3['init'](),this[_0x516c70(0x177)][_0x516c70(0x3b8)](_0x15dbb3),_0x15dbb3;}[_0x3b57cd(0x42c)](_0x1ddca6){const _0x368dad=_0x3b57cd;switch(_0x1ddca6){case H['UNIVER_DOC']:return exports['DocCollaborationEntity'];case H[_0x368dad(0x53b)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x368dad(0x379)+_0x1ddca6);}}},exports['CollaborationController']=Zs([we(0x0,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),we(0x1,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x28d)])),we(0x2,a[_0x3b57cd(0x424)])],exports['CollaborationController']);const at=[_0x3b57cd(0x2a8),'jiqing500',_0x3b57cd(0x468),_0x3b57cd(0x271),_0x3b57cd(0x28a),_0x3b57cd(0x322)];class ze extends a[_0x3b57cd(0x54b)]{constructor(){const _0x434107=_0x3b57cd;super(...arguments),u(this,_0x434107(0x268),new Map()),u(this,_0x434107(0x536),0x0);}[_0x3b57cd(0x48a)](_0x5624d3){const _0x46ffac=_0x3b57cd;if(this['_assignedColors'][_0x46ffac(0x1cf)](_0x5624d3))return this[_0x46ffac(0x268)][_0x46ffac(0x4e6)](_0x5624d3);const _0x4bec2c=at[this[_0x46ffac(0x536)]];return this[_0x46ffac(0x536)]=(this['_colorIndex']+0x1)%at[_0x46ffac(0x54c)],this[_0x46ffac(0x268)][_0x46ffac(0x4af)](_0x5624d3,_0x4bec2c),_0x4bec2c;}}var Qs=Object[_0x3b57cd(0x44e)],ei=Object[_0x3b57cd(0x35f)],ti=(_0x4a1dd4,_0x4e202c,_0x5b8a7a,_0x145750)=>{const _0x3a3d97=_0x3b57cd;for(var _0x2c08d8=_0x145750>0x1?void 0x0:_0x145750?ei(_0x4e202c,_0x5b8a7a):_0x4e202c,_0x35766e=_0x4a1dd4[_0x3a3d97(0x54c)]-0x1,_0x42251d;_0x35766e>=0x0;_0x35766e--)(_0x42251d=_0x4a1dd4[_0x35766e])&&(_0x2c08d8=(_0x145750?_0x42251d(_0x4e202c,_0x5b8a7a,_0x2c08d8):_0x42251d(_0x2c08d8))||_0x2c08d8);return _0x145750&&_0x2c08d8&&Qs(_0x4e202c,_0x5b8a7a,_0x2c08d8),_0x2c08d8;},z=(_0x2db059,_0x2f7719)=>(_0x4dde78,_0x3e5198)=>_0x2f7719(_0x4dde78,_0x3e5198,_0x2db059);const si=0x12c,ii=0x64;let xe=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x463e79,_0x3d5eed,_0x3c3d2a,_0x15334c,_0x1adcdd,_0x40d75d,_0x155b5d,_0x15a076,_0x2ee93c){const _0x16f8c0=_0x3b57cd;super(),u(this,_0x16f8c0(0x306),!0x1),u(this,_0x16f8c0(0x1d3),!0x1),u(this,_0x16f8c0(0x48d),new v['BehaviorSubject'](new Map())),u(this,'cursorInfo$',this['_cursorInfo$'][_0x16f8c0(0x355)]()),u(this,_0x16f8c0(0x597),new v[(_0x16f8c0(0x470))]([])),u(this,'roomMembers$',this[_0x16f8c0(0x597)][_0x16f8c0(0x3b4)](v[_0x16f8c0(0x4f9)](si))),u(this,'_updateLocalCursor',a[_0x16f8c0(0x187)](_0x5c468c=>{const _0x5cab05=_0x16f8c0,_0x1c074b={'eventID':_['CollaborationEvent'][_0x5cab05(0x2d2)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x5cab05(0x339)](),'selection':Dt(_0x5c468c)}};this[_0x5cab05(0x409)][_0x5cab05(0x1e8)](_0x1c074b,this[_0x5cab05(0x234)]);},ii)),(this[_0x16f8c0(0x234)]=_0x463e79,this[_0x16f8c0(0x409)]=_0x3d5eed,this[_0x16f8c0(0x486)]=_0x3c3d2a,this['_colorAssignService']=_0x15334c,this[_0x16f8c0(0x312)]=_0x1adcdd,this[_0x16f8c0(0x4ea)]=_0x40d75d,this[_0x16f8c0(0x4be)]=_0x155b5d,this[_0x16f8c0(0x562)]=_0x15a076,this[_0x16f8c0(0x33b)]=_0x2ee93c);}get['cursorInfo'](){const _0x3d74e8=_0x3b57cd;return this[_0x3d74e8(0x48d)][_0x3d74e8(0x2d9)]();}get[_0x3b57cd(0x58b)](){const _0x58e37c=_0x3b57cd;return this['_roomMembers$'][_0x58e37c(0x2d9)]();}[_0x3b57cd(0x378)](){const _0x38b63b=_0x3b57cd;super[_0x38b63b(0x378)](),this[_0x38b63b(0x48d)][_0x38b63b(0x3b8)](new Map()),this['_cursorInfo$']['complete'](),this[_0x38b63b(0x597)]['next']([]),this[_0x38b63b(0x597)][_0x38b63b(0x23a)]();}[_0x3b57cd(0x1dc)](){const _0x1ad009=_0x3b57cd;this[_0x1ad009(0x1d3)]||(this[_0x1ad009(0x1d3)]=!0x0,this[_0x1ad009(0x409)][_0x1ad009(0x407)][_0x1ad009(0x3b4)](v[_0x1ad009(0x1b3)](this[_0x1ad009(0x3fc)]))[_0x1ad009(0x508)](_0x7296bb=>{const _0x306c14=_0x1ad009;_0x7296bb===x[_0x306c14(0x2a9)]?this[_0x306c14(0x425)]():this[_0x306c14(0x31c)]();}),this[_0x1ad009(0x409)][_0x1ad009(0x320)]['pipe'](v[_0x1ad009(0x1b3)](this['dispose$']))[_0x1ad009(0x508)](_0x10d50f=>{const _0x1aec53=_0x1ad009,_0x4d4a63=_0x10d50f['eventID'];_0x4d4a63===_[_0x1aec53(0x556)]['UPDATE_CURSOR']&&this[_0x1aec53(0x297)](_0x10d50f),_0x4d4a63===_[_0x1aec53(0x556)][_0x1aec53(0x40e)]&&this['_onCursorDelete'](_0x10d50f);}),this[_0x1ad009(0x431)](this[_0x1ad009(0x33b)][_0x1ad009(0x33f)](_0x49b03d=>{const _0x4f6ba7=_0x1ad009,_0x188808=_0x49b03d[_0x4f6ba7(0x333)];_0x188808!=null&&this[_0x4f6ba7(0x306)]&&_0x49b03d['id']===ne[_0x4f6ba7(0x1a8)]['id']&&_0x188808['unitId']===this['unitID']&&_0x188808[_0x4f6ba7(0x3e6)]===!0x1&&_0x188808[_0x4f6ba7(0x280)][_0x4f6ba7(0x54c)]>0x0&&this[_0x4f6ba7(0x2d7)](_0x188808[_0x4f6ba7(0x280)]);})),this[_0x1ad009(0x4ea)]['collabCursorState$'][_0x1ad009(0x3b4)](v['takeUntil'](this['dispose$']))[_0x1ad009(0x508)](_0x5a5a64=>{const _0x524162=_0x1ad009;if((_0x5a5a64==null?void 0x0:_0x5a5a64[_0x524162(0x234)])!==this[_0x524162(0x234)])return;const _0x38553e={'eventID':_['CollaborationEvent'][_0x524162(0x2d2)],'data':_0x5a5a64};this[_0x524162(0x297)](_0x38553e);}),this[_0x1ad009(0x431)](this['_commandService']['onCommandExecuted'](_0x1a8266=>{const _0x233918=_0x1ad009;if(_0x1a8266[_0x233918(0x333)]==null)return;const _0x2bbc60=_0x1a8266[_0x233918(0x333)];if(_0x1a8266['id']!==ne[_0x233918(0x50f)]['id']||_0x2bbc60[_0x233918(0x267)]!==this[_0x233918(0x234)])return;const _0x4568ed={'id':_0x233918(0x3e1),'params':_0x2bbc60},_0x58b22b=this['cursorInfo'];for(const [_0x5e8834,_0x4ebb90]of _0x58b22b){const _0xfefea3={'id':_0x233918(0x3e1),'params':{'unitId':this[_0x233918(0x234)],'actions':null,'textRanges':_0x4ebb90['ranges']}},_0xf36555=this[_0x233918(0x4be)][_0x233918(0x49c)](_0x4568ed,_0xfefea3,!0x1);if(_[_0x233918(0x3d0)](_0xf36555))throw _0xf36555[_0x233918(0x37f)];_0x58b22b[_0x233918(0x4af)](_0x5e8834,{..._0x4ebb90,'ranges':_0xf36555[_0x233918(0x4d8)][_0x233918(0x333)]['textRanges']});}queueMicrotask(()=>{const _0xeb1c57=_0x233918;this[_0xeb1c57(0x48d)]['next'](_0x58b22b);});})));}['_onCursorUpdate'](_0x1d9ea5){const _0x21ed44=_0x3b57cd;var _0x3609d3,_0x218a2b;const {memberID:_0x59e696,selection:_0x138bd0}=_0x1d9ea5['data'],_0x198deb=xs(_0x138bd0),_0x2bdf5f=(_0x218a2b=(_0x3609d3=this['_memberService'][_0x21ed44(0x29c)](this[_0x21ed44(0x234)],_0x59e696))==null?void 0x0:_0x3609d3[_0x21ed44(0x35d)])!=null?_0x218a2b:_0x21ed44(0x2bd),_0x3f14b5={'color':this[_0x21ed44(0x3a7)][_0x21ed44(0x48a)](_0x59e696),'name':_0x2bdf5f,'ranges':_0x198deb},_0x385e4c=this[_0x21ed44(0x443)];_0x385e4c['set'](_0x59e696,_0x3f14b5),this[_0x21ed44(0x48d)]['next'](_0x385e4c);}['_onCursorDelete'](_0x3cca7e){const _0x20cf0c=_0x3b57cd,{memberID:_0x2a885b}=_0x3cca7e['data'],_0x5d3b14=this[_0x20cf0c(0x443)];_0x5d3b14[_0x20cf0c(0x524)](_0x2a885b),this[_0x20cf0c(0x48d)][_0x20cf0c(0x3b8)](_0x5d3b14);}['_toggleOnline'](){const _0x44fc80=_0x3b57cd;var _0x9a973;if(this[_0x44fc80(0x306)]=!0x0,((_0x9a973=this[_0x44fc80(0x562)][_0x44fc80(0x55a)]())==null?void 0x0:_0x9a973[_0x44fc80(0x2fa)]())!==this[_0x44fc80(0x234)])return;const _0x56ff12=this[_0x44fc80(0x486)][_0x44fc80(0x4e6)](ne[_0x44fc80(0x243)])[_0x44fc80(0x4fa)]();Array[_0x44fc80(0x452)](_0x56ff12)&&_0x56ff12['length']>0x0&&this[_0x44fc80(0x2d7)](_0x56ff12);}['_toggleOffline'](){const _0x46c0d4=_0x3b57cd;this[_0x46c0d4(0x306)]=!0x1;}};xe=ti([z(0x2,a['Inject'](a['Injector'])),z(0x3,a[_0x3b57cd(0x4ad)](ze)),z(0x4,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x2e4)])),z(0x5,a[_0x3b57cd(0x4ad)](Xe)),z(0x6,_[_0x3b57cd(0x4d5)]),z(0x7,a['IUniverInstanceService']),z(0x8,a[_0x3b57cd(0x17e)])],xe);var ni=Object[_0x3b57cd(0x44e)],ri=Object[_0x3b57cd(0x35f)],oi=(_0x31ac63,_0x43ec5e,_0x1a0aa2,_0x158b9d)=>{const _0x206569=_0x3b57cd;for(var _0x44ecf5=_0x158b9d>0x1?void 0x0:_0x158b9d?ri(_0x43ec5e,_0x1a0aa2):_0x43ec5e,_0x3086a0=_0x31ac63[_0x206569(0x54c)]-0x1,_0xf57502;_0x3086a0>=0x0;_0x3086a0--)(_0xf57502=_0x31ac63[_0x3086a0])&&(_0x44ecf5=(_0x158b9d?_0xf57502(_0x43ec5e,_0x1a0aa2,_0x44ecf5):_0xf57502(_0x44ecf5))||_0x44ecf5);return _0x158b9d&&_0x44ecf5&&ni(_0x43ec5e,_0x1a0aa2,_0x44ecf5),_0x44ecf5;},te=(_0x1ae5b7,_0x35a05e)=>(_0x582d92,_0x6d63f7)=>_0x35a05e(_0x582d92,_0x6d63f7,_0x1ae5b7);const ai=0x12c,ci=0x64,li=()=>{let _0x3625c9=[],_0x25c242=!0x1;return _0x316909=>{_0x3625c9['push'](_0x316909),_0x25c242||(_0x25c242=!0x0,setTimeout(()=>{const _0x4c7609=_0x4497;_0x3625c9[_0x4c7609(0x571)](_0x3be7c6=>_0x3be7c6()),_0x3625c9=[],_0x25c242=!0x1;}));};};let ke=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x431cb6,_0x362612,_0x34bcae,_0x4774cc,_0x2a1eb3,_0x213c93,_0x457d74,_0x4c4bcb){const _0x4b39de=_0x3b57cd;super(),u(this,_0x4b39de(0x306),!0x1),u(this,_0x4b39de(0x1d3),!0x1),u(this,_0x4b39de(0x48d),new v[(_0x4b39de(0x470))](new Map())),u(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),u(this,_0x4b39de(0x597),new v[(_0x4b39de(0x470))]([])),u(this,_0x4b39de(0x38f),this[_0x4b39de(0x597)][_0x4b39de(0x3b4)](v[_0x4b39de(0x4f9)](ai))),u(this,_0x4b39de(0x2d7),a[_0x4b39de(0x187)]((_0x25f898,_0x53fc4e)=>{const _0x513862=_0x4b39de,_0x37547c={'eventID':_[_0x513862(0x556)][_0x513862(0x2d2)],'data':{'unitID':this[_0x513862(0x234)],'memberID':this[_0x513862(0x409)][_0x513862(0x339)](),'selection':Qe[_0x513862(0x53a)](_0x25f898,_0x53fc4e[_0x513862(0x53d)])}};this[_0x513862(0x409)]['send'](_0x37547c,this[_0x513862(0x234)]);},ci)),(this[_0x4b39de(0x234)]=_0x431cb6,this[_0x4b39de(0x409)]=_0x362612,this[_0x4b39de(0x486)]=_0x34bcae,this[_0x4b39de(0x3a7)]=_0x4774cc,this[_0x4b39de(0x312)]=_0x2a1eb3,this[_0x4b39de(0x562)]=_0x213c93,this[_0x4b39de(0x33b)]=_0x457d74,this['_refRangeService']=_0x4c4bcb);}get['cursorInfo'](){const _0x44a93a=_0x3b57cd;return this['_cursorInfo$'][_0x44a93a(0x2d9)]();}get[_0x3b57cd(0x58b)](){const _0x34bd59=_0x3b57cd;return this[_0x34bd59(0x597)][_0x34bd59(0x2d9)]();}[_0x3b57cd(0x378)](){const _0x1aad85=_0x3b57cd;super[_0x1aad85(0x378)](),this['_cursorInfo$'][_0x1aad85(0x3b8)](new Map()),this[_0x1aad85(0x48d)]['complete'](),this[_0x1aad85(0x597)][_0x1aad85(0x3b8)]([]),this[_0x1aad85(0x597)][_0x1aad85(0x23a)]();}['init'](){const _0x18fee2=_0x3b57cd;this['_init']||(this[_0x18fee2(0x1d3)]=!0x0,this['_session'][_0x18fee2(0x407)][_0x18fee2(0x3b4)](v[_0x18fee2(0x1b3)](this[_0x18fee2(0x3fc)]))[_0x18fee2(0x508)](_0x35dd80=>{const _0x922503=_0x18fee2;_0x35dd80===x['ONLINE']?this[_0x922503(0x425)]():this[_0x922503(0x31c)]();}),this['_session'][_0x18fee2(0x320)][_0x18fee2(0x3b4)](v[_0x18fee2(0x1b3)](this['dispose$']))[_0x18fee2(0x508)](_0x3cb2f7=>{const _0x115968=_0x18fee2,_0xb79035=_0x3cb2f7[_0x115968(0x2f8)];_0xb79035===_[_0x115968(0x556)]['UPDATE_CURSOR']&&this[_0x115968(0x297)](_0x3cb2f7),_0xb79035===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x115968(0x47a)](_0x3cb2f7);}),this[_0x18fee2(0x515)](),this['disposeWithMe'](this[_0x18fee2(0x33b)][_0x18fee2(0x33f)](_0x318797=>{const _0x2c499c=_0x18fee2;if(this[_0x2c499c(0x306)]&&_0x318797['id']===C[_0x2c499c(0x4e2)]['id']&&_0x318797[_0x2c499c(0x333)][_0x2c499c(0x267)]===this[_0x2c499c(0x234)]){const _0x23b987=_0x318797[_0x2c499c(0x333)];this['_updateLocalCursor'](_0x23b987['subUnitId'],_0x23b987[_0x2c499c(0x255)][0x0]);}})));}['_onCursorUpdate'](_0x175909){const _0x407f44=_0x3b57cd;var _0xd686b3,_0x54cfbb;const {memberID:_0xe0ca73,selection:_0x5a0f56}=_0x175909[_0x407f44(0x30a)],{sheetName:_0x3195ae,range:_0x3481fe}=Qe[_0x407f44(0x513)](_0x5a0f56),_0x56a739={'name':(_0x54cfbb=(_0xd686b3=this[_0x407f44(0x312)][_0x407f44(0x29c)](this[_0x407f44(0x234)],_0xe0ca73))==null?void 0x0:_0xd686b3[_0x407f44(0x35d)])!=null?_0x54cfbb:_0x407f44(0x2bd),'range':this['_getMergeRange'](_0x3195ae,_0x3481fe),'sheetID':_0x3195ae,'color':this[_0x407f44(0x3a7)][_0x407f44(0x48a)](_0xe0ca73),'selection':_0x5a0f56},_0xf09244=this[_0x407f44(0x443)];_0xf09244[_0x407f44(0x4af)](_0xe0ca73,_0x56a739),this[_0x407f44(0x48d)][_0x407f44(0x3b8)](_0xf09244);}[_0x3b57cd(0x47a)](_0x4d6457){const _0x5b309d=_0x3b57cd,{memberID:_0x28553c}=_0x4d6457['data'],_0x56743a=this['cursorInfo'];_0x56743a[_0x5b309d(0x524)](_0x28553c),this[_0x5b309d(0x48d)][_0x5b309d(0x3b8)](_0x56743a);}[_0x3b57cd(0x30d)](_0x5df3aa,_0x30701e){const _0x3e23e3=_0x3b57cd;var _0x4ff7c0,_0x407e0c;const _0x41edcc=(_0x407e0c=(_0x4ff7c0=this[_0x3e23e3(0x562)][_0x3e23e3(0x1a6)](this[_0x3e23e3(0x234)]))==null?void 0x0:_0x4ff7c0[_0x3e23e3(0x316)](_0x5df3aa))==null?void 0x0:_0x407e0c[_0x3e23e3(0x4d3)]();return(_0x41edcc==null?void 0x0:_0x41edcc[_0x3e23e3(0x303)](_0x210562=>a[_0x3e23e3(0x186)]['contains'](_0x210562,_0x30701e)))||_0x30701e;}[_0x3b57cd(0x515)](){const _0x4477e1=_0x3b57cd,_0x42835b=new a[(_0x4477e1(0x300))](),_0x472bbe=li(),_0x1bdcd4=()=>{const _0x6b58dc=_0x4477e1;_0x42835b[_0x6b58dc(0x378)]();const _0x1f4f12=(_0x32281e,_0x6812f,_0x419649,_0xfc80bc)=>{const _0x333b7a=_0x6b58dc;let _0x117b7f=[];switch(_0x32281e['id']){case C[_0x333b7a(0x238)]['DeleteRangeMoveLeftCommandId']:{_0x117b7f=C[_0x333b7a(0x22c)](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)][_0x333b7a(0x3fe)]:{_0x117b7f=C[_0x333b7a(0x516)](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)][_0x333b7a(0x391)]:{_0x117b7f=C['handleInsertCol'](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)]['InsertRangeMoveDownCommandId']:{_0x117b7f=C['handleInsertRangeMoveDown'](_0x32281e,_0xfc80bc);break;}case C['EffectRefRangId'][_0x333b7a(0x4c6)]:{_0x117b7f=C[_0x333b7a(0x436)](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)][_0x333b7a(0x32b)]:{_0x117b7f=C['handleInsertRow'](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)][_0x333b7a(0x1f6)]:{_0x117b7f=C[_0x333b7a(0x3d7)](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)][_0x333b7a(0x4b2)]:{_0x117b7f=C['handleIRemoveCol'](_0x32281e,_0xfc80bc);break;}case C['EffectRefRangId'][_0x333b7a(0x3b5)]:{_0x117b7f=C['handleIRemoveRow'](_0x32281e,_0xfc80bc);break;}}const _0x5d91a4=C[_0x333b7a(0x3cd)](_0x117b7f,_0xfc80bc),_0x1416b6=this[_0x333b7a(0x443)]['get'](_0x6812f);if(_0x1416b6&&_0x5d91a4){const _0xdce8f1={..._0x1416b6,'range':_0x5d91a4};this[_0x333b7a(0x443)][_0x333b7a(0x4af)](_0x6812f,_0xdce8f1),_0x472bbe(()=>{const _0x42aea1=_0x333b7a,_0x149cc7=this[_0x42aea1(0x252)][_0x42aea1(0x4ee)](_0x5d91a4,_0x26df28=>(_0x149cc7['dispose'](),_0x1f4f12(_0x26df28,_0x6812f,_0x419649,_0x5d91a4)));_0x42835b[_0x42aea1(0x477)](_0x149cc7);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x6b58dc(0x571)]((_0x2decce,_0x58e2f8)=>{const _0x536bb1=_0x6b58dc,{range:_0x4765f9,sheetID:_0x1e1579}=_0x2decce,_0x18a547=this[_0x536bb1(0x252)][_0x536bb1(0x4ee)](_0x4765f9,_0x34b97d=>(_0x18a547[_0x536bb1(0x378)](),_0x1f4f12(_0x34b97d,_0x58e2f8,_0x1e1579,_0x4765f9)));_0x42835b['add'](_0x18a547);});};this['disposeWithMe'](a['toDisposable'](this[_0x4477e1(0x48d)]['subscribe'](()=>{_0x1bdcd4();})));}[_0x3b57cd(0x425)](){const _0x5204ce=_0x3b57cd;var _0x16a675,_0x1e735d;if(this['_online']=!0x0,((_0x16a675=this[_0x5204ce(0x562)][_0x5204ce(0x55a)]())==null?void 0x0:_0x16a675[_0x5204ce(0x2fa)]())!==this[_0x5204ce(0x234)])return;const _0x1d6374=(_0x1e735d=this['_injector'][_0x5204ce(0x4e6)](C[_0x5204ce(0x33a)])[_0x5204ce(0x417)]())==null?void 0x0:_0x1e735d[0x0],_0x5cc4c9=this[_0x5204ce(0x562)]['getCurrentUnitForType'](a[_0x5204ce(0x2b4)]['UNIVER_SHEET'])[_0x5204ce(0x3ab)]();_0x1d6374&&_0x5cc4c9&&this['_updateLocalCursor'](_0x5cc4c9['getSheetId'](),_0x1d6374);}['_toggleOffline'](){const _0x3203f6=_0x3b57cd;this[_0x3203f6(0x306)]=!0x1;}};ke=oi([te(0x2,a['Inject'](a[_0x3b57cd(0x232)])),te(0x3,a['Inject'](ze)),te(0x4,a[_0x3b57cd(0x4ad)](exports['MemberService'])),te(0x5,a['IUniverInstanceService']),te(0x6,a[_0x3b57cd(0x17e)]),te(0x7,a['Inject'](C[_0x3b57cd(0x382)]))],ke);var hi=Object[_0x3b57cd(0x44e)],_i=Object['getOwnPropertyDescriptor'],ui=(_0x293af0,_0x1181eb,_0x304e65,_0x825c49)=>{const _0x56a7b7=_0x3b57cd;for(var _0x2945b1=_0x825c49>0x1?void 0x0:_0x825c49?_i(_0x1181eb,_0x304e65):_0x1181eb,_0x385a78=_0x293af0[_0x56a7b7(0x54c)]-0x1,_0x521216;_0x385a78>=0x0;_0x385a78--)(_0x521216=_0x293af0[_0x385a78])&&(_0x2945b1=(_0x825c49?_0x521216(_0x1181eb,_0x304e65,_0x2945b1):_0x521216(_0x2945b1))||_0x2945b1);return _0x825c49&&_0x2945b1&&hi(_0x1181eb,_0x304e65,_0x2945b1),_0x2945b1;},Ne=(_0x30f2c8,_0x329ee0)=>(_0x513b91,_0x13c5c3)=>_0x329ee0(_0x513b91,_0x13c5c3,_0x30f2c8);let oe=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x1dfebe,_0x4a78d5,_0x34aff5){const _0x47668a=_0x3b57cd;super(),u(this,_0x47668a(0x4cc),new Map()),u(this,'_entityInit$',new v[(_0x47668a(0x56b))]()),(this[_0x47668a(0x562)]=_0x1dfebe,this[_0x47668a(0x486)]=_0x4a78d5,this['_collabSessionService']=_0x34aff5,this[_0x47668a(0x1d3)]());}[_0x3b57cd(0x378)](){const _0x47ffda=_0x3b57cd;super[_0x47ffda(0x378)](),this[_0x47ffda(0x177)][_0x47ffda(0x23a)](),this[_0x47ffda(0x4cc)][_0x47ffda(0x571)](_0x4cb745=>_0x4cb745[_0x47ffda(0x378)]());}[_0x3b57cd(0x56a)](_0x4946e1){const _0x5d0ba6=_0x3b57cd;return this[_0x5d0ba6(0x4cc)][_0x5d0ba6(0x1cf)](_0x4946e1)?this['_entities'][_0x5d0ba6(0x4e6)](_0x4946e1)[_0x5d0ba6(0x471)]:this[_0x5d0ba6(0x177)][_0x5d0ba6(0x3b4)](v[_0x5d0ba6(0x445)](_0x258a62=>_0x258a62['unitID']===_0x4946e1),v[_0x5d0ba6(0x2c5)](_0x44166f=>_0x44166f['cursorInfo$']));}[_0x3b57cd(0x1d3)](){const _0x582b06=_0x3b57cd;this['_univerInstanceService'][_0x582b06(0x1e3)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x582b06(0x3b4)](v['takeUntil'](this[_0x582b06(0x3fc)]))[_0x582b06(0x508)](async _0x4f38b2=>{const _0x2492f8=_0x582b06,_0x354a06=_0x4f38b2['getUnitId'](),_0x503d9d=await this[_0x2492f8(0x367)](_0x354a06);this['_entityInit$'][_0x2492f8(0x3b8)](_0x503d9d),this['_entities'][_0x2492f8(0x4af)](_0x354a06,_0x503d9d);}),this['_univerInstanceService'][_0x582b06(0x1e3)](a[_0x582b06(0x2b4)][_0x582b06(0x1a9)])[_0x582b06(0x3b4)](v[_0x582b06(0x1b3)](this[_0x582b06(0x3fc)]))['pipe'](v['filter'](_0x5524ca=>!_0x5524ca[_0x582b06(0x2fa)]()['startsWith']('__')))[_0x582b06(0x508)](async _0x2763f1=>{const _0x42aee6=_0x582b06,_0x11f654=_0x2763f1[_0x42aee6(0x2fa)](),_0x41001b=await this[_0x42aee6(0x2e0)](_0x11f654);this[_0x42aee6(0x177)][_0x42aee6(0x3b8)](_0x41001b),this['_entities']['set'](_0x11f654,_0x41001b);}),v[_0x582b06(0x547)](this[_0x582b06(0x562)][_0x582b06(0x44f)](a[_0x582b06(0x2b4)][_0x582b06(0x1a9)]),this[_0x582b06(0x562)][_0x582b06(0x44f)](a[_0x582b06(0x2b4)][_0x582b06(0x53b)]))['pipe'](v[_0x582b06(0x1b3)](this[_0x582b06(0x3fc)]))[_0x582b06(0x508)](_0x17e112=>{const _0x449cbd=_0x582b06,_0x474f89=_0x17e112['getUnitId'](),_0x4c3d38=this[_0x449cbd(0x4cc)][_0x449cbd(0x4e6)](_0x474f89);_0x4c3d38&&(_0x4c3d38[_0x449cbd(0x378)](),this[_0x449cbd(0x4cc)][_0x449cbd(0x524)](_0x474f89));});}async['_startSheetCollabCursor'](_0x3ef23d){const _0x8cc2d9=_0x3b57cd,_0x66240b=await this[_0x8cc2d9(0x1e5)][_0x8cc2d9(0x55b)](_0x3ef23d),_0x41d895=this['_injector'][_0x8cc2d9(0x39c)](ke,_0x3ef23d,_0x66240b);return _0x41d895[_0x8cc2d9(0x1dc)](),_0x41d895;}async['_startDocCollabCursor'](_0x4e6c7b){const _0x36a0ac=_0x3b57cd,_0x385188=await this[_0x36a0ac(0x1e5)][_0x36a0ac(0x55b)](_0x4e6c7b),_0x137e41=this[_0x36a0ac(0x486)][_0x36a0ac(0x39c)](xe,_0x4e6c7b,_0x385188);return _0x137e41[_0x36a0ac(0x1dc)](),_0x137e41;}};oe=ui([Ne(0x0,a[_0x3b57cd(0x424)]),Ne(0x1,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),Ne(0x2,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x28d)]))],oe);const de=0x14,ct=0xc8,Me=0x4,di=0x5;function Si(_0x42d13f,_0x58c2b3){const _0x2f746c=_0x3b57cd;let {radius:_0x4e6684,width:_0x98c4b2,height:_0x47a8df}=_0x58c2b3;_0x4e6684=_0x4e6684!=null?_0x4e6684:0x0,_0x98c4b2=_0x98c4b2!=null?_0x98c4b2:0x1e,_0x47a8df=_0x47a8df!=null?_0x47a8df:0x1e;let _0x2bd2ab=0x0,_0x3fcccd=0x0,_0x561f9c=0x0;_0x2bd2ab=_0x3fcccd=_0x561f9c=Math[_0x2f746c(0x41a)](_0x4e6684,_0x98c4b2/0x2,_0x47a8df/0x2),_0x42d13f[_0x2f746c(0x2e5)](),_0x42d13f[_0x2f746c(0x248)](_0x2bd2ab,0x0),_0x42d13f[_0x2f746c(0x192)](_0x98c4b2-_0x3fcccd,0x0),_0x42d13f['arc'](_0x98c4b2-_0x3fcccd,_0x3fcccd,_0x3fcccd,Math['PI']*0x3/0x2,0x0,!0x1),_0x42d13f[_0x2f746c(0x192)](_0x98c4b2,_0x47a8df-_0x561f9c),_0x42d13f['arc'](_0x98c4b2-_0x561f9c,_0x47a8df-_0x561f9c,_0x561f9c,0x0,Math['PI']/0x2,!0x1),_0x42d13f[_0x2f746c(0x192)](0x0,_0x47a8df),_0x42d13f[_0x2f746c(0x192)](0x0,_0x2bd2ab),_0x42d13f[_0x2f746c(0x398)](_0x2bd2ab,_0x2bd2ab,_0x2bd2ab,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x42d13f[_0x2f746c(0x2a3)](),_0x58c2b3[_0x2f746c(0x2e7)]&&(_0x42d13f[_0x2f746c(0x415)](),_0x42d13f[_0x2f746c(0x3a8)]=_0x58c2b3[_0x2f746c(0x2e7)],_0x58c2b3['fillRule']===_0x2f746c(0x23d)?_0x42d13f[_0x2f746c(0x2e7)]('evenodd'):_0x42d13f[_0x2f746c(0x2e7)](),_0x42d13f[_0x2f746c(0x388)]());}class Oe extends O[_0x3b57cd(0x1a5)]{constructor(_0x28e6dd,_0x5223e7){const _0x57975a=_0x3b57cd;super(_0x28e6dd,_0x5223e7),u(this,_0x57975a(0x34e)),u(this,_0x57975a(0x1f8)),(this[_0x57975a(0x34e)]=_0x5223e7==null?void 0x0:_0x5223e7[_0x57975a(0x34e)],this['text']=_0x5223e7==null?void 0x0:_0x5223e7[_0x57975a(0x1f8)]);}static[_0x3b57cd(0x585)](_0x1aa888,_0x12b897){const _0x582d64=_0x3b57cd,{text:_0x455ae4,color:_0x2d102d}=_0x12b897;_0x1aa888['save'](),_0x1aa888[_0x582d64(0x3c1)]=_0x582d64(0x41c);const _0x23e093=_0x1aa888[_0x582d64(0x4b7)](_0x455ae4)[_0x582d64(0x197)],_0x1b75a3=Math[_0x582d64(0x41a)](_0x23e093+0x2*Me,ct);Si(_0x1aa888,{'height':de,'radius':0x4,'width':_0x1b75a3,'fill':_0x2d102d,'evented':!0x1}),_0x1aa888[_0x582d64(0x3a8)]='#FFF';const _0x3da852=Me,_0x315108=de-di,_0x5a4ea0=ct-0x2*Me;if(_0x23e093>_0x5a4ea0){let _0x4cbbd6='',_0x392fc7=0x0;for(const _0x1291f6 of _0x455ae4){const _0x4d7136=_0x1aa888[_0x582d64(0x4b7)](_0x1291f6)[_0x582d64(0x197)];if(_0x392fc7+_0x4d7136<=_0x5a4ea0-_0x1aa888[_0x582d64(0x4b7)](_0x582d64(0x240))[_0x582d64(0x197)])_0x4cbbd6+=_0x1291f6,_0x392fc7+=_0x4d7136;else{_0x4cbbd6+=_0x582d64(0x240);break;}}_0x1aa888['fillText'](_0x4cbbd6,_0x3da852,_0x315108);}else _0x1aa888[_0x582d64(0x481)](_0x455ae4,_0x3da852,_0x315108);_0x1aa888[_0x582d64(0x388)]();}[_0x3b57cd(0x3d2)](_0x55305c){const _0x4a9fda=_0x3b57cd;Oe[_0x4a9fda(0x585)](_0x55305c,this);}}function _0x4497(_0x27139a,_0x43efde){const _0xac00d1=_0xac00();return _0x4497=function(_0x4497d3,_0x362357){_0x4497d3=_0x4497d3-0x16a;let _0x3826fe=_0xac00d1[_0x4497d3];return _0x3826fe;},_0x4497(_0x27139a,_0x43efde);}const Ae=_0x3b57cd(0x4f3),vi=_0x3b57cd(0x209),mi=_0x3b57cd(0x23e),le=0x6,gi=1.5,Le=0x4,fi=1.5,Ii=_0x3b57cd(0x3d5);class lt{constructor(_0x553fc9,_0x18474e,_0x24b3b9,_0x3995a6){const _0x875a35=_0x3b57cd;u(this,_0x875a35(0x1a2),[]),u(this,_0x875a35(0x412),null),u(this,_0x875a35(0x512),null),u(this,_0x875a35(0x1b9),null),u(this,_0x875a35(0x28f),null),u(this,_0x875a35(0x26c),null),(this['_cursor']=_0x553fc9,this[_0x875a35(0x1c4)]=_0x18474e,this[_0x875a35(0x49d)]=_0x24b3b9,this['_document']=_0x3995a6,this[_0x875a35(0x48c)]());}set['_hover'](_0x4d9b63){const _0x3fa7f1=_0x3b57cd;_0x4d9b63?(this[_0x3fa7f1(0x1b9)]&&this[_0x3fa7f1(0x1b9)]['hide'](),this['_textBubble']&&this[_0x3fa7f1(0x512)]['show']()):(this['_anchorDot']&&this['_anchorDot'][_0x3fa7f1(0x2e8)](),this[_0x3fa7f1(0x512)]&&this[_0x3fa7f1(0x512)][_0x3fa7f1(0x19f)]());}['dispose'](){const _0x571851=_0x3b57cd;for(const _0x22fa1c of this[_0x571851(0x1a2)])_0x22fa1c[_0x571851(0x378)]();this[_0x571851(0x512)]&&this[_0x571851(0x512)]['dispose'](),this['_anchorDot']&&this[_0x571851(0x1b9)][_0x571851(0x378)](),this[_0x571851(0x412)]&&this[_0x571851(0x412)][_0x571851(0x378)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x3f66f2=_0x3b57cd;var _0x483347;const {_docSkeleton:_0x61f8b2,_document:_0x55c01f}=this,{color:_0x361292,name:_0xfd388,ranges:_0x4a325b}=this[_0x3f66f2(0x559)],_0x53ebeb=_0x55c01f[_0x3f66f2(0x568)](),{docsLeft:_0x47bb70,docsTop:_0xeb3b73}=_0x53ebeb,_0x5452e9=new N[(_0x3f66f2(0x1dd))](_0x53ebeb,_0x61f8b2);for(const {startOffset:_0x38f949,endOffset:_0x544f2d,rangeType:_0x4889f0,segmentId:_0x492916,segmentPage:_0xd8e1c,collapsed:_0x164007,isActive:_0x12b893}of _0x4a325b){const _0x444db8=_0x61f8b2[_0x3f66f2(0x4c5)](_0x38f949,!0x0,_0x492916,_0xd8e1c);let _0x35ae0b=_0x61f8b2[_0x3f66f2(0x4c5)](_0x544f2d,!0x0,_0x492916,_0xd8e1c);if(_0x35ae0b==null&&(_0x35ae0b=_0x61f8b2[_0x3f66f2(0x4c5)](_0x544f2d-0x1,!0x1,_0x492916,_0xd8e1c)),_0x12b893){const {contentBoxPointGroup:_0x4208ed}=_0x5452e9[_0x3f66f2(0x41f)](_0x35ae0b,_0x35ae0b);if(_0x4208ed[_0x3f66f2(0x54c)]===0x0)continue;this[_0x3f66f2(0x361)](_0x361292,_0x4208ed,_0x47bb70,_0xeb3b73,_0xfd388),this['_eventUnsubscribe']=this[_0x3f66f2(0x50b)]();}if(!_0x164007&&_0x444db8&&_0x35ae0b){if(_0x4889f0===a[_0x3f66f2(0x3d6)][_0x3f66f2(0x576)]){const _0x42da0a=new N[(_0x3f66f2(0x57a))](_0x53ebeb,_0x61f8b2),{pointGroup:_0x51ecb0}=(_0x483347=_0x42da0a['getRangePointData'](_0x444db8,_0x35ae0b))!=null?_0x483347:{};if(_0x51ecb0==null||_0x51ecb0[_0x3f66f2(0x54c)]===0x0)continue;this[_0x3f66f2(0x27f)](_0x361292,_0x51ecb0,_0x47bb70,_0xeb3b73);}else{const {borderBoxPointGroup:_0x3129e5}=_0x5452e9[_0x3f66f2(0x41f)](_0x444db8,_0x35ae0b);if(_0x3129e5[_0x3f66f2(0x54c)]===0x0)continue;this['_drawTextRange'](_0x361292,_0x3129e5,_0x47bb70,_0xeb3b73);}}}}[_0x3b57cd(0x361)](_0x37431b,_0xaa46d,_0x5e7166,_0x2b968f,_0x1fda7e){const _0x2426f9=_0x3b57cd,_0x286e2c=this['_getAnchorBounding'](_0xaa46d),{left:_0x5bd57f,top:_0x115f94,height:_0x1677ce}=_0x286e2c,_0x5bd369=this['_getScale'](),_0x6e94cb=fi/_0x5bd369,_0x99a58e=new O[(_0x2426f9(0x363))](Ae+a[_0x2426f9(0x2a0)][_0x2426f9(0x3e4)](le),{'left':_0x5bd57f+_0x5e7166-_0x6e94cb,'top':_0x115f94+_0x2b968f,'height':_0x1677ce,'width':gi,'fill':_0x37431b||O['getColor'](a['COLORS'][_0x2426f9(0x42f)],0x0),'strokeWidth':_0x6e94cb,'stroke':Ii,'evented':!0x0});this[_0x2426f9(0x412)]=_0x99a58e,this[_0x2426f9(0x1c4)][_0x2426f9(0x419)](_0x99a58e,N[_0x2426f9(0x338)]);const _0x42f90d=new O[(_0x2426f9(0x363))](Ae+a[_0x2426f9(0x2a0)][_0x2426f9(0x3e4)](le),{'left':_0x5bd57f+_0x5e7166-_0x6e94cb,'top':_0x115f94+_0x2b968f-Le/0x2,'height':Le,'width':Le,'fill':_0x37431b||O[_0x2426f9(0x1eb)](a[_0x2426f9(0x3c5)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x37431b||O['getColor'](a['COLORS'][_0x2426f9(0x42f)],0x0),'evented':!0x1});this['_anchorDot']=_0x42f90d,this[_0x2426f9(0x1c4)][_0x2426f9(0x419)](_0x42f90d,N[_0x2426f9(0x338)]);const _0x33ec1d=new Oe(Ae+a[_0x2426f9(0x2a0)][_0x2426f9(0x3e4)](le),{'left':_0x5bd57f+_0x5e7166-_0x6e94cb,'top':_0x115f94+_0x2b968f-de,'text':_0x1fda7e,'color':_0x37431b});this[_0x2426f9(0x512)]=_0x33ec1d,this[_0x2426f9(0x1c4)]['addObject'](_0x33ec1d,N['TEXT_RANGE_LAYER_INDEX']),this[_0x2426f9(0x3a0)]=!0x1;}[_0x3b57cd(0x50b)](){const _0x430382=_0x3b57cd,_0x2b504c=this[_0x430382(0x412)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x1c966b=_0x430382;this[_0x1c966b(0x3a0)]=!0x0;}),_0x351b8e=this[_0x430382(0x412)]['onPointerLeave$'][_0x430382(0x1d1)](()=>{const _0x47ae85=_0x430382;this['_hideTimer']&&clearTimeout(this[_0x47ae85(0x28f)]),this[_0x47ae85(0x28f)]=setTimeout(()=>{const _0x2059e8=_0x47ae85;this[_0x2059e8(0x3a0)]=!0x1;},0x7d0);});return()=>{const _0x121899=_0x430382;_0x2b504c['unsubscribe'](),_0x351b8e[_0x121899(0x18d)]();};}[_0x3b57cd(0x51a)](_0x51e9e6,_0x1f5e2b,_0x440ac1,_0x74f530){const _0x3522f5=_0x3b57cd,_0x5c220d=new a[(_0x3522f5(0x387))](_0x51e9e6)[_0x3522f5(0x27d)](0.2)[_0x3522f5(0x2ff)](),_0x740d23=new O[(_0x3522f5(0x258))](vi+a[_0x3522f5(0x2a0)][_0x3522f5(0x3e4)](le),{'pointsGroup':_0x1f5e2b,'fill':_0x5c220d||O['getColor'](a[_0x3522f5(0x3c5)]['black'],0.2),'left':_0x440ac1,'top':_0x74f530,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3522f5(0x1a2)][_0x3522f5(0x41e)](_0x740d23),this[_0x3522f5(0x1c4)][_0x3522f5(0x419)](_0x740d23,N['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x1d1c84,_0x11d8dc,_0x2b5886,_0x8ed2a8){const _0x5cc5ad=_0x3b57cd,_0xe90345=new a[(_0x5cc5ad(0x387))](_0x1d1c84)[_0x5cc5ad(0x27d)](0.2)['toRgbString'](),_0x182ff8=new O['RegularPolygon'](mi+a['Tools']['generateRandomId'](le),{'pointsGroup':_0x11d8dc,'fill':_0xe90345||O[_0x5cc5ad(0x1eb)](a[_0x5cc5ad(0x3c5)][_0x5cc5ad(0x42f)],0.2),'left':_0x2b5886,'top':_0x8ed2a8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5cc5ad(0x41e)](_0x182ff8),this['_scene'][_0x5cc5ad(0x419)](_0x182ff8,N[_0x5cc5ad(0x338)]);}[_0x3b57cd(0x4e3)](_0x3238ff){const _0x2a24c1=_0x3238ff[0x0],_0x381e32=_0x2a24c1[0x0],_0x1e3204=_0x2a24c1[0x2],{x:_0x269b29,y:_0x3f3a84}=_0x381e32,{x:_0x2614a7,y:_0x13a946}=_0x1e3204;return{'left':_0x269b29,'top':_0x3f3a84,'width':_0x2614a7-_0x269b29,'height':_0x13a946-_0x3f3a84};}['_getScale'](){const _0x17a24f=_0x3b57cd,{scaleX:_0x3fba07,scaleY:_0x43e4d6}=this[_0x17a24f(0x1c4)][_0x17a24f(0x19c)]();return Math[_0x17a24f(0x52a)](_0x3fba07,_0x43e4d6);}}var pi=Object[_0x3b57cd(0x44e)],Ci=Object[_0x3b57cd(0x35f)],Ei=(_0x4e3f42,_0x5be560,_0xc46647,_0x24bf23)=>{const _0x4ed9fd=_0x3b57cd;for(var _0x19492d=_0x24bf23>0x1?void 0x0:_0x24bf23?Ci(_0x5be560,_0xc46647):_0x5be560,_0xc5e850=_0x4e3f42[_0x4ed9fd(0x54c)]-0x1,_0x332a8d;_0xc5e850>=0x0;_0xc5e850--)(_0x332a8d=_0x4e3f42[_0xc5e850])&&(_0x19492d=(_0x24bf23?_0x332a8d(_0x5be560,_0xc46647,_0x19492d):_0x332a8d(_0x19492d))||_0x19492d);return _0x24bf23&&_0x19492d&&pi(_0x5be560,_0xc46647,_0x19492d),_0x19492d;},ve=(_0x976bed,_0x1f4b08)=>(_0x595911,_0x172980)=>_0x1f4b08(_0x595911,_0x172980,_0x976bed);let Be=class extends a['RxDisposable']{constructor(_0x54e268,_0x4612b4,_0x302878,_0x409d07,_0x110d86){const _0x2420ab=_0x3b57cd;super(),u(this,_0x2420ab(0x336),[]),u(this,_0x2420ab(0x3ae),[]),(this[_0x2420ab(0x245)]=_0x54e268,this[_0x2420ab(0x42e)]=_0x4612b4,this['_collabCursorController']=_0x302878,this['_commandService']=_0x409d07,this[_0x2420ab(0x291)]=_0x110d86,this['_init']());}[_0x3b57cd(0x1d3)](){const _0xf6c505=_0x3b57cd,_0x2e2da3=this['_context'][_0xf6c505(0x267)],_0x268a05=this[_0xf6c505(0x42e)];this[_0xf6c505(0x431)](v[_0xf6c505(0x309)]([this[_0xf6c505(0x503)][_0xf6c505(0x56a)](_0x2e2da3),this[_0xf6c505(0x291)][_0xf6c505(0x34c)]])[_0xf6c505(0x3b4)](E[_0xf6c505(0x439)](([_0x208039,_0x7bb7dc])=>({'skeleton':_0x268a05['getSkeleton'](),'cursors':[..._0x208039[_0xf6c505(0x345)]()][_0xf6c505(0x4a3)](_0x2599cc=>({..._0x2599cc,'color':_0x7bb7dc[_0x2599cc[_0xf6c505(0x34e)]]}))})))['subscribe'](_0x4e7d42=>{const _0x463048=_0xf6c505;if(this[_0x463048(0x24b)](),_0x4e7d42){const {skeleton:_0x2165da,cursors:_0x2371fd}=_0x4e7d42;this[_0x463048(0x598)](_0x2165da,_0x2371fd);}})),this[_0xf6c505(0x59a)](),this[_0xf6c505(0x56d)]();}[_0x3b57cd(0x598)](_0x1cd8d1,_0x465018){const _0x1479f6=_0x3b57cd,{scene:_0x15f3d4,mainComponent:_0x5d6b23}=this[_0x1479f6(0x245)],_0x4053ac=_0x465018['map'](_0x1a13c0=>new lt(_0x1a13c0,_0x15f3d4,_0x1cd8d1,_0x5d6b23));this[_0x1479f6(0x336)]=_0x4053ac,this['_cursors']=_0x465018;}[_0x3b57cd(0x17b)](){const _0x31d488=_0x3b57cd;this[_0x31d488(0x24b)]();const {scene:_0x45b969,mainComponent:_0x3fd8d6}=this[_0x31d488(0x245)],_0x4af6bc=this[_0x31d488(0x42e)]['getSkeleton'](),_0x55465d=this[_0x31d488(0x3ae)][_0x31d488(0x439)](_0x4a8730=>new lt(_0x4a8730,_0x45b969,_0x4af6bc,_0x3fd8d6));this[_0x31d488(0x336)]=_0x55465d;}['_removeCollabCursors'](){const _0x5afaa5=_0x3b57cd;this[_0x5afaa5(0x336)]['forEach'](_0x240058=>_0x240058[_0x5afaa5(0x378)]()),this[_0x5afaa5(0x336)]=[];}[_0x3b57cd(0x56d)](){const _0x1d5b92=_0x3b57cd,_0x373c5d=[N['SetDocZoomRatioOperation']['id']];this[_0x1d5b92(0x431)](this[_0x1d5b92(0x33b)][_0x1d5b92(0x33f)](_0x52ab0e=>{const _0x20e0a9=_0x1d5b92;_0x373c5d[_0x20e0a9(0x4f5)](_0x52ab0e['id'])&&_0x52ab0e[_0x20e0a9(0x333)][_0x20e0a9(0x267)]===this['_context'][_0x20e0a9(0x267)]&&this['_refreshCollabCursors']();}));}[_0x3b57cd(0x59a)](){const _0x5730ca=_0x3b57cd;this[_0x5730ca(0x431)](a['fromEventSubject'](this['_context'][_0x5730ca(0x31e)][_0x5730ca(0x261)])[_0x5730ca(0x3b4)](E[_0x5730ca(0x445)](_0x2a8d54=>_0x2a8d54[_0x5730ca(0x537)]===O[_0x5730ca(0x313)][_0x5730ca(0x418)]),E[_0x5730ca(0x49e)](0x10))['subscribe'](()=>{const _0x1b2156=_0x5730ca;this[_0x1b2156(0x17b)]();}));}};Be=Ei([ve(0x1,a[_0x3b57cd(0x4ad)](ne['DocSkeletonManagerService'])),ve(0x2,a[_0x3b57cd(0x4ad)](oe)),ve(0x3,a[_0x3b57cd(0x17e)]),ve(0x4,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x314)]))],Be);const bi=0x1,Ti=1.5;class wt extends O['Shape']{constructor(_0x2b10f4,_0xee2856){const _0x42f6a6=_0x3b57cd;super(_0x2b10f4,_0xee2856),u(this,'_color'),u(this,_0x42f6a6(0x220),!0x1),u(this,_0x42f6a6(0x380)),u(this,_0x42f6a6(0x1b1),''),u(this,'_labelPosition','top'),u(this,_0x42f6a6(0x205)),(_0xee2856&&this[_0x42f6a6(0x596)](_0xee2856),this[_0x42f6a6(0x4bd)][_0x42f6a6(0x1d1)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x42f6a6(0x364)][_0x42f6a6(0x1d1)](()=>this[_0x42f6a6(0x596)]({'hovered':!0x1})));}[_0x3b57cd(0x596)](_0x4efe07){const _0x1f87c2=_0x3b57cd;var _0x28446a,_0x378f97,_0x2dc5f9,_0x5365ef,_0x864c3d,_0x1e3d83;this[_0x1f87c2(0x459)]=(_0x28446a=_0x4efe07['color'])!=null?_0x28446a:this['_color'],this[_0x1f87c2(0x220)]=(_0x378f97=_0x4efe07[_0x1f87c2(0x196)])!=null?_0x378f97:this[_0x1f87c2(0x220)],this[_0x1f87c2(0x380)]=(_0x2dc5f9=_0x4efe07[_0x1f87c2(0x53d)])!=null?_0x2dc5f9:this[_0x1f87c2(0x380)],this['_name']=(_0x5365ef=_0x4efe07[_0x1f87c2(0x35d)])!=null?_0x5365ef:this[_0x1f87c2(0x1b1)],this[_0x1f87c2(0x566)]=(_0x864c3d=_0x4efe07['labelPosition'])!=null?_0x864c3d:this['_labelPosition'],this['_backgroundColor']=(_0x1e3d83=_0x4efe07[_0x1f87c2(0x47c)])!=null?_0x1e3d83:this[_0x1f87c2(0x205)],this[_0x1f87c2(0x2c3)]({'width':_0x4efe07[_0x1f87c2(0x197)],'height':_0x4efe07['height']});}[_0x3b57cd(0x3e9)](_0xb9cece){const _0xafbc6b=_0x3b57cd,{row:_0x5166a6,column:_0x1c49e3}=_0xb9cece;if(_0x5166a6>=this['_range']['startRow']&&_0x5166a6<=this[_0xafbc6b(0x380)]['endRow']&&_0x1c49e3>=this[_0xafbc6b(0x380)][_0xafbc6b(0x52b)]&&_0x1c49e3<=this['_range'][_0xafbc6b(0x347)]){this[_0xafbc6b(0x596)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3b57cd(0x4c3)](_0x28ab07){return!0x1;}[_0x3b57cd(0x3d2)](_0x53f8c8){const _0x3b477d=_0x3b57cd;O[_0x3b477d(0x363)][_0x3b477d(0x585)](_0x53f8c8,{'width':this[_0x3b477d(0x197)],'height':this[_0x3b477d(0x494)],'strokeWidth':Ti,'stroke':this[_0x3b477d(0x459)],'evented':!0x1,'fill':this[_0x3b477d(0x205)]}),this[_0x3b477d(0x220)]&&(_0x53f8c8['save'](),_0x53f8c8[_0x3b477d(0x500)](0x1,0x0,0x0,0x1,this[_0x3b477d(0x197)],this[_0x3b477d(0x566)]===_0x3b477d(0x2b8)?0x0:-de),Oe['drawWith'](_0x53f8c8,{'text':this[_0x3b477d(0x1b1)],'color':this[_0x3b477d(0x459)]}),_0x53f8c8['restore']());}}var Ri=Object['defineProperty'],Oi=Object[_0x3b57cd(0x35f)],Di=(_0x4eef6f,_0xaef5db,_0x2e777b,_0x559517)=>{for(var _0x4beb88=_0x559517>0x1?void 0x0:_0x559517?Oi(_0xaef5db,_0x2e777b):_0xaef5db,_0x58d388=_0x4eef6f['length']-0x1,_0x2119b3;_0x58d388>=0x0;_0x58d388--)(_0x2119b3=_0x4eef6f[_0x58d388])&&(_0x4beb88=(_0x559517?_0x2119b3(_0xaef5db,_0x2e777b,_0x4beb88):_0x2119b3(_0x4beb88))||_0x4beb88);return _0x559517&&_0x4beb88&&Ri(_0xaef5db,_0x2e777b,_0x4beb88),_0x4beb88;},$e=(_0x646cc4,_0xf3f9)=>(_0x29f8cd,_0x309535)=>_0xf3f9(_0x29f8cd,_0x309535,_0x646cc4);const yi=0x1389;let Ve=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x50740f,_0x197d84,_0x4b6960,_0x382f30){const _0x5c7a13=_0x3b57cd;super(),u(this,'_cursors',new Set()),u(this,_0x5c7a13(0x369),null),(this[_0x5c7a13(0x245)]=_0x50740f,this['_sheetSkeletonManagerService']=_0x197d84,this[_0x5c7a13(0x503)]=_0x4b6960,this['_themeService']=_0x382f30,this[_0x5c7a13(0x1d3)]());}[_0x3b57cd(0x1d3)](){const _0x208d68=_0x3b57cd;this[_0x208d68(0x572)][_0x208d68(0x279)]['pipe'](E[_0x208d68(0x1b3)](this[_0x208d68(0x3fc)]),E[_0x208d68(0x2c5)](_0x3b47e0=>{const _0x54afaf=_0x208d68;if(_0x3b47e0){const _0x2b7ac2=_0x3b47e0[_0x54afaf(0x3e5)];return v[_0x54afaf(0x309)](this[_0x54afaf(0x503)][_0x54afaf(0x56a)](this[_0x54afaf(0x245)]['unitId']),this[_0x54afaf(0x291)][_0x54afaf(0x34c)])[_0x54afaf(0x3b4)](E[_0x54afaf(0x439)](([_0x3c89a7,_0xad2a4a])=>{const _0xef2fea=_0x54afaf,_0x5ec4eb=new Map();return _0x3c89a7[_0xef2fea(0x571)]((_0x35a8b0,_0x3f542e)=>{const _0xc9aca4=_0xef2fea;if(_0x35a8b0[_0xc9aca4(0x18c)]===_0x2b7ac2){const _0x5aea1b={..._0x35a8b0};_0x5aea1b[_0xc9aca4(0x34e)]=_0xad2a4a[_0x35a8b0[_0xc9aca4(0x34e)]],_0x5ec4eb[_0xc9aca4(0x4af)](_0x3f542e,_0x5aea1b);}}),{'skeleton':_0x3b47e0,'cursors':_0x5ec4eb};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x208d68(0x508)](({skeleton:_0xfd83dc,cursors:_0x2d0b60})=>{const _0x583534=_0x208d68;this[_0x583534(0x24b)](),_0xfd83dc&&this[_0x583534(0x598)](_0xfd83dc,_0x2d0b60);}),this[_0x208d68(0x572)]['currentSkeleton$']['subscribe'](_0x490848=>{const _0x13dfcc=_0x208d68;if(_0x490848==null)return;const {skeleton:_0x48f566}=_0x490848,{scene:_0xfd8ae3}=this[_0x13dfcc(0x245)];_0xfd8ae3[_0x13dfcc(0x2f6)][_0x13dfcc(0x1d1)](a[_0x13dfcc(0x187)](_0x2eb17f=>{const _0xacd1a5=_0x13dfcc;var _0x5948b5,_0x9a9742;const {offsetX:_0x3ae418,offsetY:_0x48c0b8}=_0x2eb17f,{x:_0x5b55de,y:_0x3b41d9}=_0xfd8ae3['getRelativeToViewportCoord'](O[_0xacd1a5(0x39f)][_0xacd1a5(0x288)]([_0x3ae418,_0x48c0b8])),{scaleX:_0x5bffa3,scaleY:_0x330099}=_0xfd8ae3[_0xacd1a5(0x19c)](),_0x41bead=_0xfd8ae3[_0xacd1a5(0x285)](ie[_0xacd1a5(0x2c4)][_0xacd1a5(0x522)]),_0x2ce940=_0xfd8ae3[_0xacd1a5(0x233)](O['Vector2'][_0xacd1a5(0x288)]([_0x5b55de,_0x3b41d9]),_0x41bead),_0xb860df=_0x48f566['getCellPositionByOffset'](_0x3ae418,_0x48c0b8,_0x5bffa3,_0x330099,_0x2ce940);((_0x5948b5=this[_0xacd1a5(0x369)])==null?void 0x0:_0x5948b5[_0xacd1a5(0x3ef)])===_0xb860df[_0xacd1a5(0x3ef)]&&((_0x9a9742=this[_0xacd1a5(0x369)])==null?void 0x0:_0x9a9742[_0xacd1a5(0x57c)])===_0xb860df[_0xacd1a5(0x57c)]||this[_0xacd1a5(0x3ae)][_0xacd1a5(0x571)](_0xa09f30=>{_0xa09f30['onMouseMove'](_0xb860df);});},0x64));});}['_updateCollabCursors'](_0x19d6c5,_0x1b3a07){const _0x8cdb61=_0x3b57cd;var _0x22742b;const _0x322911=(_0x22742b=this[_0x8cdb61(0x572)][_0x8cdb61(0x44b)]())==null?void 0x0:_0x22742b[_0x8cdb61(0x592)];if(!_0x322911)return;const _0x5ad12c=this[_0x8cdb61(0x352)]();if(!_0x5ad12c)return;this[_0x8cdb61(0x3ae)]['forEach'](_0x13c4c9=>{const _0x2edf58=_0x8cdb61;_0x13c4c9[_0x2edf58(0x21e)]();});const {scene:_0x2cbc94}=_0x5ad12c,_0x54bef1=Ui(Array[_0x8cdb61(0x348)](_0x1b3a07['values']()))['map'](_0x189218=>{const _0xc638a9=_0x8cdb61,{color:_0x480da9,range:_0x18894d,name:_0x2aadfb,selection:_0x17d385,sheetID:_0x2f74d9}=_0x189218,{startColumn:_0x45262b,startRow:_0x5a8b19,endColumn:_0x3e4755,endRow:_0x5eecbf}=_0x18894d,_0x22b03a=ie[_0xc638a9(0x480)](_0x5a8b19,_0x45262b,_0x2cbc94,_0x322911),_0x1537ff=ie[_0xc638a9(0x480)](_0x5eecbf,_0x3e4755,_0x2cbc94,_0x322911),{columnHeaderHeightAndMarginTop:_0x136430}=_0x322911,{startX:_0x46353d,startY:_0x173afc}=_0x22b03a,{endX:_0x30752e,endY:_0x343293}=_0x1537ff,_0x3d4fc1=_0x30752e-_0x46353d,_0x50fb6a=_0x343293-_0x173afc,_0x3aec14={'labelPosition':_0x173afc-_0x136430>=de?_0xc638a9(0x3b2):_0xc638a9(0x2b8),'sheetID':_0x2f74d9,'range':_0x18894d,'color':_0x480da9,'name':_0x2aadfb,'selection':_0x17d385,'left':_0x46353d,'top':_0x173afc,'width':_0x3d4fc1,'height':_0x50fb6a,'evented':!0x1,'zIndex':yi};return new wt(_0x2aadfb,_0x3aec14);});_0x2cbc94[_0x8cdb61(0x1f0)](_0x54bef1,bi),this[_0x8cdb61(0x3ae)]=new Set(_0x54bef1);}[_0x3b57cd(0x24b)](){const _0x294223=_0x3b57cd;var _0x53ec43;(_0x53ec43=this[_0x294223(0x3ae)])==null||_0x53ec43[_0x294223(0x571)](_0x372bfb=>_0x372bfb[_0x294223(0x378)]());}[_0x3b57cd(0x352)](){const _0x33e7b1=_0x3b57cd;return ie[_0x33e7b1(0x284)](this['_context']['unit'],this[_0x33e7b1(0x245)]);}};Ve=Di([$e(0x1,a[_0x3b57cd(0x4ad)](ie[_0x3b57cd(0x24d)])),$e(0x2,a['Inject'](oe)),$e(0x3,a['Inject'](a['ThemeService']))],Ve);function Ui(_0x382e55){const _0x37d066=_0x3b57cd,_0x54cb4d=new Map();return _0x382e55[_0x37d066(0x571)](_0x2fc770=>{const _0x43164e=_0x37d066;if(_0x54cb4d[_0x43164e(0x1cf)](_0x2fc770[_0x43164e(0x304)])){const _0xa3c861=_0x54cb4d[_0x43164e(0x4e6)](_0x2fc770[_0x43164e(0x304)]);_0xa3c861['name']+=',\x20'+_0x2fc770[_0x43164e(0x35d)];}else _0x54cb4d['set'](_0x2fc770['selection'],_0x2fc770);}),Array['from'](_0x54cb4d[_0x37d066(0x345)]());}var M=function(){const _0x262706=_0x3b57cd;return M=Object[_0x262706(0x403)]||function(_0x1c0444){const _0x1a949e=_0x262706;for(var _0x25356b,_0x3fc775=0x1,_0x1b1a57=arguments[_0x1a949e(0x54c)];_0x3fc775<_0x1b1a57;_0x3fc775++){_0x25356b=arguments[_0x3fc775];for(var _0x50de97 in _0x25356b)Object[_0x1a949e(0x207)]['hasOwnProperty'][_0x1a949e(0x30b)](_0x25356b,_0x50de97)&&(_0x1c0444[_0x50de97]=_0x25356b[_0x50de97]);}return _0x1c0444;},M[_0x262706(0x586)](this,arguments);},Pi=function(_0x52de25,_0x469734){const _0x464f04=_0x3b57cd;var _0x2a942d={};for(var _0x311a3c in _0x52de25)Object['prototype'][_0x464f04(0x564)]['call'](_0x52de25,_0x311a3c)&&_0x469734[_0x464f04(0x3c0)](_0x311a3c)<0x0&&(_0x2a942d[_0x311a3c]=_0x52de25[_0x311a3c]);if(_0x52de25!=null&&typeof Object[_0x464f04(0x584)]==_0x464f04(0x2d6)){for(var _0x505187=0x0,_0x311a3c=Object['getOwnPropertySymbols'](_0x52de25);_0x505187<_0x311a3c[_0x464f04(0x54c)];_0x505187++)_0x469734[_0x464f04(0x3c0)](_0x311a3c[_0x505187])<0x0&&Object[_0x464f04(0x207)]['propertyIsEnumerable']['call'](_0x52de25,_0x311a3c[_0x505187])&&(_0x2a942d[_0x311a3c[_0x505187]]=_0x52de25[_0x311a3c[_0x505187]]);}return _0x2a942d;},Je=y[_0x3b57cd(0x45d)](function(_0x114843,_0x49a8a9){const _0x4b9258=_0x3b57cd;var _0x56a345=_0x114843['icon'],_0x5b286d=_0x114843['id'],_0x4c9e9a=_0x114843[_0x4b9258(0x370)],_0x5813a3=_0x114843['extend'],_0xaafa37=Pi(_0x114843,[_0x4b9258(0x375),'id','className',_0x4b9258(0x179)]),_0x3cdd0f='univerjs-icon\x20univerjs-icon-'[_0x4b9258(0x16b)](_0x5b286d,'\x20')['concat'](_0x4c9e9a||'')[_0x4b9258(0x3d9)](),_0x30a258=y[_0x4b9258(0x2d1)]('_'[_0x4b9258(0x16b)](Mi()));return Nt(_0x56a345,''['concat'](_0x5b286d),{'defIds':_0x56a345[_0x4b9258(0x4c1)],'idSuffix':_0x30a258[_0x4b9258(0x1d8)]},M({'ref':_0x49a8a9,'className':_0x3cdd0f},_0xaafa37),_0x5813a3);});function Nt(_0x81ef41,_0x331862,_0x33dc4e,_0x47bbe7,_0x1ce1e4){const _0x3a4021=_0x3b57cd;return y[_0x3a4021(0x3a1)](_0x81ef41[_0x3a4021(0x35b)],M(M({'key':_0x331862},wi(_0x81ef41,_0x33dc4e,_0x1ce1e4)),_0x47bbe7),(Ni(_0x81ef41,_0x33dc4e)['children']||[])[_0x3a4021(0x439)](function(_0x5b1a2b,_0x12d3b2){const _0x48893a=_0x3a4021;return Nt(_0x5b1a2b,''[_0x48893a(0x16b)](_0x331862,'-')[_0x48893a(0x16b)](_0x81ef41['tag'],'-')[_0x48893a(0x16b)](_0x12d3b2),_0x33dc4e,void 0x0,_0x1ce1e4);}));}function wi(_0x5cfec3,_0x1ccc05,_0x4915f6){const _0x55ca5d=_0x3b57cd;var _0x288bca=M({},_0x5cfec3[_0x55ca5d(0x399)]);_0x4915f6!=null&&_0x4915f6[_0x55ca5d(0x55f)]&&_0x288bca[_0x55ca5d(0x2e7)]===_0x55ca5d(0x55f)&&(_0x288bca[_0x55ca5d(0x2e7)]=_0x4915f6[_0x55ca5d(0x55f)]);var _0x548591=_0x1ccc05[_0x55ca5d(0x4c1)];return!_0x548591||_0x548591[_0x55ca5d(0x54c)]===0x0||(_0x5cfec3['tag']===_0x55ca5d(0x47f)&&_0x288bca[_0x55ca5d(0x527)]&&(_0x288bca[_0x55ca5d(0x527)]=_0x288bca[_0x55ca5d(0x527)]+_0x1ccc05[_0x55ca5d(0x25d)]),Object[_0x55ca5d(0x2b9)](_0x288bca)['forEach'](function(_0x1af3ba){const _0x4fe5fd=_0x55ca5d;var _0x181076=_0x1af3ba[0x0],_0x47af3d=_0x1af3ba[0x1];typeof _0x47af3d==_0x4fe5fd(0x52f)&&(_0x288bca[_0x181076]=_0x47af3d[_0x4fe5fd(0x1bf)](/url\(#(.*)\)/,_0x4fe5fd(0x24c)[_0x4fe5fd(0x16b)](_0x1ccc05[_0x4fe5fd(0x25d)],')')));})),_0x288bca;}function Ni(_0x16afef,_0x55efb1){const _0xb5ca52=_0x3b57cd;var _0x55668b,_0x3e8d07=_0x55efb1[_0xb5ca52(0x4c1)];return!_0x3e8d07||_0x3e8d07['length']===0x0?_0x16afef:_0x16afef[_0xb5ca52(0x35b)]===_0xb5ca52(0x1ea)&&(!((_0x55668b=_0x16afef['children'])===null||_0x55668b===void 0x0)&&_0x55668b[_0xb5ca52(0x54c)])?M(M({},_0x16afef),{'children':_0x16afef[_0xb5ca52(0x26a)][_0xb5ca52(0x439)](function(_0x29f405){const _0x40ad36=_0xb5ca52;return typeof _0x29f405[_0x40ad36(0x399)]['id']==_0x40ad36(0x52f)&&_0x3e8d07&&_0x3e8d07[_0x40ad36(0x3c0)](_0x29f405[_0x40ad36(0x399)]['id'])>-0x1?M(M({},_0x29f405),{'attrs':M(M({},_0x29f405[_0x40ad36(0x399)]),{'id':_0x29f405[_0x40ad36(0x399)]['id']+_0x55efb1[_0x40ad36(0x25d)]})}):_0x29f405;})}):_0x16afef;}function Mi(){const _0x12ce33=_0x3b57cd;return Math['random']()[_0x12ce33(0x3b0)](0x24)['substring'](0x2,0x8);}Je[_0x3b57cd(0x199)]='UniverIcon';var Ai={'tag':'svg','attrs':{'fill':_0x3b57cd(0x1d9),'viewBox':_0x3b57cd(0x1c8),'width':_0x3b57cd(0x194),'height':_0x3b57cd(0x194)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b57cd(0x52c)},'children':[{'tag':_0x3b57cd(0x384),'attrs':{'stroke':'currentColor','d':_0x3b57cd(0x272),'strokeLinecap':_0x3b57cd(0x2e6),'strokeLinejoin':_0x3b57cd(0x2e6),'strokeWidth':1.2}}]},{'tag':_0x3b57cd(0x1ea),'attrs':{},'children':[{'tag':_0x3b57cd(0x3cf),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3b57cd(0x384),'attrs':{'fill':_0x3b57cd(0x246),'d':_0x3b57cd(0x450)}}]}]}],'defIds':[_0x3b57cd(0x567)]},Mt=y['forwardRef'](function(_0xe73bd3,_0x833ac4){const _0x30b3f1=_0x3b57cd;return y['createElement'](Je,Object[_0x30b3f1(0x403)]({},_0xe73bd3,{'id':_0x30b3f1(0x305),'ref':_0x833ac4,'icon':Ai}));});Mt[_0x3b57cd(0x199)]=_0x3b57cd(0x50e);var Li={'tag':'svg','attrs':{'fill':'none','viewBox':_0x3b57cd(0x59c),'width':_0x3b57cd(0x194),'height':_0x3b57cd(0x194)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b57cd(0x543)},'children':[{'tag':_0x3b57cd(0x384),'attrs':{'stroke':_0x3b57cd(0x377),'d':_0x3b57cd(0x4da),'strokeLinecap':_0x3b57cd(0x2e6),'strokeLinejoin':_0x3b57cd(0x2e6),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3b57cd(0x3cf),'attrs':{'id':_0x3b57cd(0x174)},'children':[{'tag':'path','attrs':{'fill':_0x3b57cd(0x246),'d':_0x3b57cd(0x450),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3b57cd(0x174)]},At=y[_0x3b57cd(0x45d)](function(_0x4a8045,_0x308d2d){const _0x1d0a9c=_0x3b57cd;return y[_0x1d0a9c(0x3a1)](Je,Object[_0x1d0a9c(0x403)]({},_0x4a8045,{'id':'on-line-single','ref':_0x308d2d,'icon':Li}));});At[_0x3b57cd(0x199)]=_0x3b57cd(0x46d);function Lt(_0x56a579){const _0xc0e6bd=_0x3b57cd;var _0x933d3e,_0x2cc4b3,_0x5dbc77='';if(typeof _0x56a579==_0xc0e6bd(0x52f)||typeof _0x56a579==_0xc0e6bd(0x390))_0x5dbc77+=_0x56a579;else{if(typeof _0x56a579=='object'){if(Array[_0xc0e6bd(0x452)](_0x56a579)){var _0x4856c4=_0x56a579[_0xc0e6bd(0x54c)];for(_0x933d3e=0x0;_0x933d3e<_0x4856c4;_0x933d3e++)_0x56a579[_0x933d3e]&&(_0x2cc4b3=Lt(_0x56a579[_0x933d3e]))&&(_0x5dbc77&&(_0x5dbc77+='\x20'),_0x5dbc77+=_0x2cc4b3);}else{for(_0x2cc4b3 in _0x56a579)_0x56a579[_0x2cc4b3]&&(_0x5dbc77&&(_0x5dbc77+='\x20'),_0x5dbc77+=_0x2cc4b3);}}}return _0x5dbc77;}function $i(){for(var _0x35a3a7,_0x79b0f2,_0x1ebf3e=0x0,_0x2772fd='',_0x3515ec=arguments['length'];_0x1ebf3e<_0x3515ec;_0x1ebf3e++)(_0x35a3a7=arguments[_0x1ebf3e])&&(_0x79b0f2=Lt(_0x35a3a7))&&(_0x2772fd&&(_0x2772fd+='\x20'),_0x2772fd+=_0x79b0f2);return _0x2772fd;}const ji='univer-online-status-icon',Hi='univer-online-status-title',xi=_0x3b57cd(0x593),ki='univer-online',Bi='univer-offline',he={'onlineStatusIcon':ji,'onlineStatusTitle':Hi,'onlineStatus':xi,'online':ki,'offline':Bi};function Vi(_0x356d44){const _0x135561=_0x3b57cd;switch(_0x356d44){case D[_0x135561(0x590)]:return _0x135561(0x487);case D[_0x135561(0x225)]:return'collabStatus.conflict';case D[_0x135561(0x2a2)]:return _0x135561(0x52e);case D[_0x135561(0x53e)]:return'collabStatus.notCollab';case D[_0x135561(0x557)]:case D[_0x135561(0x35a)]:return _0x135561(0x4c8);case D[_0x135561(0x221)]:case D['PENDING']:return _0x135561(0x3bc);}}function $t(_0x4f0fd1){const _0x4f80e2=_0x3b57cd,{status$:_0x3d3f34}=_0x4f0fd1,_0x5168f5=A[_0x4f80e2(0x231)](_0x3d3f34,D['NOT_COLLAB']),_0x3c7e5e=a[_0x4f80e2(0x30f)](a[_0x4f80e2(0x1f9)]),_0x59e154=a[_0x4f80e2(0x30f)](exports['CollaborationSessionService']),_0x2b8912=_0x5168f5!==D[_0x4f80e2(0x590)],_0x27f8d4=_0x3c7e5e['t'](Vi(_0x5168f5)),_0x447ada=$i(he[_0x4f80e2(0x53f)],{[he[_0x4f80e2(0x581)]]:_0x2b8912,[he[_0x4f80e2(0x359)]]:!_0x2b8912}),_0xef5b4=_0x2b8912?y[_0x4f80e2(0x3a1)](At,null):y[_0x4f80e2(0x3a1)](Mt,null),_0x383e45=y[_0x4f80e2(0x534)](()=>{const _0x569a65=_0x4f80e2;_0x2b8912||_0x59e154[_0x569a65(0x36d)]();},[_0x2b8912,_0x59e154]);function _0x296e73(){const _0x45bda2=_0x4f80e2;return y[_0x45bda2(0x3a1)](_0x45bda2(0x54a),{'className':_0x447ada,'onClick':_0x383e45},y[_0x45bda2(0x3a1)](_0x45bda2(0x54a),{'className':he['onlineStatusIcon']},_0xef5b4),y[_0x45bda2(0x3a1)](_0x45bda2(0x54a),{'className':he[_0x45bda2(0x4d7)]},_0x27f8d4));}return _0x2b8912?_0x296e73():y[_0x4f80e2(0x3a1)](J[_0x4f80e2(0x587)],{'title':_0x3c7e5e['t']('collab-client.tooltip.reconnect')},_0x296e73());}var Wi=Object[_0x3b57cd(0x44e)],Fi=Object[_0x3b57cd(0x35f)],Gi=(_0x114abf,_0x3d3bd7,_0x3b3721,_0x3a9396)=>{const _0x24413c=_0x3b57cd;for(var _0x4dffb6=_0x3a9396>0x1?void 0x0:_0x3a9396?Fi(_0x3d3bd7,_0x3b3721):_0x3d3bd7,_0x18a787=_0x114abf[_0x24413c(0x54c)]-0x1,_0x48d8e6;_0x18a787>=0x0;_0x18a787--)(_0x48d8e6=_0x114abf[_0x18a787])&&(_0x4dffb6=(_0x3a9396?_0x48d8e6(_0x3d3bd7,_0x3b3721,_0x4dffb6):_0x48d8e6(_0x4dffb6))||_0x4dffb6);return _0x3a9396&&_0x4dffb6&&Wi(_0x3d3bd7,_0x3b3721,_0x4dffb6),_0x4dffb6;},me=(_0x4e8df3,_0x35ce8c)=>(_0x2e7456,_0x1741aa)=>_0x35ce8c(_0x2e7456,_0x1741aa,_0x4e8df3);exports[_0x3b57cd(0x2ad)]=class extends a['Disposable']{constructor(_0x146f9f,_0x41bb14,_0x396c26,_0x5a0919){const _0xb3ffea=_0x3b57cd;super(),u(this,_0xb3ffea(0x27e),new v[(_0xb3ffea(0x470))](D[_0xb3ffea(0x53e)])),(this[_0xb3ffea(0x562)]=_0x146f9f,this[_0xb3ffea(0x434)]=_0x41bb14,this[_0xb3ffea(0x486)]=_0x396c26,this[_0xb3ffea(0x4dc)]=_0x5a0919,this['_initStatusComponent'](),this[_0xb3ffea(0x427)]());}[_0x3b57cd(0x427)](){const _0x53349e=_0x3b57cd;this[_0x53349e(0x431)](this['_univerInstanceService'][_0x53349e(0x473)][_0x53349e(0x3b4)](v['switchMap'](()=>{const _0x16f348=_0x53349e,_0x3bb892=this['_univerInstanceService'][_0x16f348(0x55a)]();return _0x3bb892?this['_collaborationController'][_0x16f348(0x1e9)](_0x3bb892[_0x16f348(0x2fa)]()):v['of'](null);}),v[_0x53349e(0x2c5)](_0x5a80d6=>_0x5a80d6?_0x5a80d6['status$']:v['of'](D['NOT_COLLAB'])))['subscribe'](_0x46d002=>{const _0x570956=_0x53349e;this[_0x570956(0x27e)][_0x570956(0x3b8)](_0x46d002);}));}[_0x3b57cd(0x3e3)](){const _0xbc3b3f=_0x3b57cd;this[_0xbc3b3f(0x431)](this[_0xbc3b3f(0x434)][_0xbc3b3f(0x20a)](A['BuiltInUIPart']['HEADER_MENU'],()=>a['connectInjector'](Yi({'status$':this[_0xbc3b3f(0x27e)]['asObservable']()}),this[_0xbc3b3f(0x486)])));}},exports[_0x3b57cd(0x2ad)]=Gi([me(0x0,a[_0x3b57cd(0x424)]),me(0x1,A['IUIPartsService']),me(0x2,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),me(0x3,a['Inject'](exports[_0x3b57cd(0x386)]))],exports[_0x3b57cd(0x2ad)]);function Yi(_0x1e63a4){const {status$:_0x1dd6f5}=_0x1e63a4;return function(){const _0x5e0291=_0x4497;return y[_0x5e0291(0x3a1)]($t,{'status$':_0x1dd6f5});};}const Ze=a[_0x3b57cd(0x227)](_0x3b57cd(0x1e0));var Ki=Object[_0x3b57cd(0x44e)],Xi=Object[_0x3b57cd(0x35f)],qi=(_0x3dad9e,_0x5c19de,_0x4126f2,_0x1fc804)=>{const _0x393937=_0x3b57cd;for(var _0x352272=_0x1fc804>0x1?void 0x0:_0x1fc804?Xi(_0x5c19de,_0x4126f2):_0x5c19de,_0x1557f8=_0x3dad9e[_0x393937(0x54c)]-0x1,_0x3bb4fc;_0x1557f8>=0x0;_0x1557f8--)(_0x3bb4fc=_0x3dad9e[_0x1557f8])&&(_0x352272=(_0x1fc804?_0x3bb4fc(_0x5c19de,_0x4126f2,_0x352272):_0x3bb4fc(_0x352272))||_0x352272);return _0x1fc804&&_0x352272&&Ki(_0x5c19de,_0x4126f2,_0x352272),_0x352272;},se=(_0x2ff554,_0x12fab4)=>(_0x48cc04,_0x594db8)=>_0x12fab4(_0x48cc04,_0x594db8,_0x2ff554);exports[_0x3b57cd(0x4a8)]=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x3c400e,_0x2fc778,_0x4c78e7,_0x5b5896,_0x50dd8a,_0x3dddc7){const _0x5133eb=_0x3b57cd;super(),this['_urlService']=_0x3c400e,this[_0x5133eb(0x45c)]=_0x2fc778,this['_commandService']=_0x4c78e7,this[_0x5133eb(0x20c)]=_0x5b5896,this[_0x5133eb(0x40d)]=_0x50dd8a,_0x3dddc7?_0x3dddc7==null||_0x3dddc7[_0x5133eb(0x34d)]()[_0x5133eb(0x210)](()=>this[_0x5133eb(0x1d3)]()):(this[_0x5133eb(0x45c)][_0x5133eb(0x3ec)](_0x5133eb(0x4b3),_0x5133eb(0x256)),this[_0x5133eb(0x1d3)]());}async['_init'](){const _0x3d7f13=_0x3b57cd,_0x38e23d=this['_urlService']['getParam']('unit'),_0x5753fc=this[_0x3d7f13(0x310)][_0x3d7f13(0x357)]('type');if(!_0x38e23d||!_0x5753fc){this[_0x3d7f13(0x45c)]['debug'](_0x3d7f13(0x4b3),_0x3d7f13(0x3f1));return;}switch(Number(_0x5753fc)){case H['UNIVER_SHEET']:{const _0x5756a2=await this[_0x3d7f13(0x1bc)](_0x38e23d);this[_0x3d7f13(0x433)](_0x5756a2);break;}case H[_0x3d7f13(0x1a9)]:{await this[_0x3d7f13(0x467)](_0x38e23d);break;}default:{this['_logService']['error'](_0x3d7f13(0x4b3),_0x3d7f13(0x438));break;}}}async[_0x3b57cd(0x433)](_0x31e783){const _0x485972=_0x3b57cd;await this[_0x485972(0x1c1)](_0x31e783),_0x31e783['activeSheet$'][_0x485972(0x3b4)](v[_0x485972(0x1b3)](this[_0x485972(0x3fc)]))[_0x485972(0x508)](_0x282ca8=>{_0x282ca8&&this['_updateURLWithCurrentState'](_0x282ca8);}),this[_0x485972(0x310)]['urlChange$'][_0x485972(0x3b4)](v[_0x485972(0x1b3)](this['dispose$']))[_0x485972(0x508)](()=>this[_0x485972(0x1c1)](_0x31e783));}[_0x3b57cd(0x532)](_0x5702c3,_0x263baf=!0x1){const _0xbc85fa=_0x3b57cd,_0x512e92=this[_0xbc85fa(0x310)][_0xbc85fa(0x357)](_0xbc85fa(0x346));_0x5702c3['getSheetId']()!==_0x512e92&&this[_0xbc85fa(0x310)][_0xbc85fa(0x17a)](_0xbc85fa(0x346),_0x5702c3[_0xbc85fa(0x49b)](),_0x263baf);}async['_updateSubUnitFromURLParams'](_0x2da13c){const _0x396308=_0x3b57cd;var _0x39fd99;const _0x33b04d=this[_0x396308(0x310)]['getParam'](_0x396308(0x346));if(!_0x33b04d||!_0x2da13c['getSheetBySheetId'](_0x33b04d)){const _0x573173=_0x2da13c['getUnhiddenWorksheets']()[0x0],_0x99f01a=_0x2da13c[_0x396308(0x316)](_0x573173);if(!_0x99f01a)return;this[_0x396308(0x532)](_0x99f01a,!0x0),await this['_commandService'][_0x396308(0x3be)](C[_0x396308(0x1b8)]['id'],{'unitId':_0x2da13c[_0x396308(0x2fa)](),'subUnitId':_0x573173});return;}((_0x39fd99=_0x2da13c[_0x396308(0x3ab)]())==null?void 0x0:_0x39fd99[_0x396308(0x49b)]())!==_0x33b04d&&await this[_0x396308(0x33b)][_0x396308(0x3be)](C[_0x396308(0x1b8)]['id'],{'unitId':_0x2da13c[_0x396308(0x2fa)](),'subUnitId':_0x33b04d});}async['_loadSheet'](_0xf43494){const _0x3f3a28=_0x3b57cd;let _0x5c716f=0x0;const _0x53fa78=await this['_localCacheService']['loadOfflineData'](_0xf43494);return _0x53fa78&&(_0x53fa78['awaitingChangeset']||_0x53fa78[_0x3f3a28(0x3fa)][_0x3f3a28(0x54c)]!==0x0)&&(_0x5c716f=_0x53fa78[_0x3f3a28(0x3d8)]),_0x5c716f===0x0&&this[_0x3f3a28(0x45c)][_0x3f3a28(0x3ec)]('[DataLoaderController]',_0x3f3a28(0x1f2)),this[_0x3f3a28(0x40d)]['loadSheet'](_0xf43494,_0x5c716f);}async[_0x3b57cd(0x467)](_0x4307a4){const _0x385531=_0x3b57cd;let _0x39ea94=0x0;const _0x49a128=await this[_0x385531(0x20c)]['loadOfflineData'](_0x4307a4);return _0x49a128&&(_0x49a128[_0x385531(0x4f4)]||_0x49a128[_0x385531(0x3fa)][_0x385531(0x54c)]!==0x0)&&(_0x39ea94=_0x49a128[_0x385531(0x3d8)]),_0x39ea94===0x0&&this[_0x385531(0x45c)]['debug'](_0x385531(0x4b3),_0x385531(0x1f2)),this[_0x385531(0x40d)]['loadDoc'](_0x4307a4,_0x39ea94);}},exports[_0x3b57cd(0x4a8)]=qi([se(0x0,Ze),se(0x1,a[_0x3b57cd(0x4e7)]),se(0x2,a[_0x3b57cd(0x17e)]),se(0x3,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x33e)])),se(0x4,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x2cb)])),se(0x5,a['Optional'](Xt[_0x3b57cd(0x217)]))],exports[_0x3b57cd(0x4a8)]);var zi=Object[_0x3b57cd(0x44e)],Ji=Object[_0x3b57cd(0x35f)],Zi=(_0x59ca83,_0x37a3b9,_0x905eb7,_0x4f1555)=>{for(var _0x9d1919=_0x4f1555>0x1?void 0x0:_0x4f1555?Ji(_0x37a3b9,_0x905eb7):_0x37a3b9,_0x42b388=_0x59ca83['length']-0x1,_0x37b1c5;_0x42b388>=0x0;_0x42b388--)(_0x37b1c5=_0x59ca83[_0x42b388])&&(_0x9d1919=(_0x4f1555?_0x37b1c5(_0x37a3b9,_0x905eb7,_0x9d1919):_0x37b1c5(_0x9d1919))||_0x9d1919);return _0x4f1555&&_0x9d1919&&zi(_0x37a3b9,_0x905eb7,_0x9d1919),_0x9d1919;},ht=(_0x94c553,_0xf05fe3)=>(_0xfff460,_0x16512a)=>_0xf05fe3(_0xfff460,_0x16512a,_0x94c553);const Qi='DEFAULT_FILE_NAME',en=_0x3b57cd(0x56f);let Ce=class extends a['Disposable']{constructor(_0x5a27cc,_0x26d9e3){const _0x25e499=_0x3b57cd;super(),this[_0x25e499(0x562)]=_0x5a27cc,this[_0x25e499(0x490)]=_0x26d9e3,this[_0x25e499(0x1d3)]();}[_0x3b57cd(0x1d3)](){const _0x337c40=_0x3b57cd;this[_0x337c40(0x431)](this[_0x337c40(0x562)][_0x337c40(0x473)][_0x337c40(0x508)](()=>{const _0x14eebb=_0x337c40;var _0x2a83ba;const _0x48e714=this[_0x14eebb(0x562)][_0x14eebb(0x55a)]();let _0x12d776=(_0x2a83ba=this[_0x14eebb(0x490)][_0x14eebb(0x38e)](Qi))!=null?_0x2a83ba:en;_0x48e714 instanceof a[_0x14eebb(0x26e)]&&(_0x12d776=_0x48e714[_0x14eebb(0x35d)]),document[_0x14eebb(0x307)]=_0x12d776;}));}};Ce=Zi([ht(0x0,a[_0x3b57cd(0x424)]),ht(0x1,a[_0x3b57cd(0x2f9)])],Ce);var tn=Object[_0x3b57cd(0x44e)],sn=Object['getOwnPropertyDescriptor'],nn=(_0x593ac9,_0x5bc9a7,_0x338312,_0x493844)=>{for(var _0x4fc321=_0x493844>0x1?void 0x0:_0x493844?sn(_0x5bc9a7,_0x338312):_0x5bc9a7,_0x547151=_0x593ac9['length']-0x1,_0xa4299;_0x547151>=0x0;_0x547151--)(_0xa4299=_0x593ac9[_0x547151])&&(_0x4fc321=(_0x493844?_0xa4299(_0x5bc9a7,_0x338312,_0x4fc321):_0xa4299(_0x4fc321))||_0x4fc321);return _0x493844&&_0x4fc321&&tn(_0x5bc9a7,_0x338312,_0x4fc321),_0x4fc321;},je=(_0x2b42f4,_0x4c7043)=>(_0x9f5430,_0x514393)=>_0x4c7043(_0x9f5430,_0x514393,_0x2b42f4);let Ee=class{constructor(_0x1c33bd,_0x564a88,_0x3d5e85){const _0x3d2543=_0x3b57cd;this['_configService']=_0x1c33bd,this['_httpService']=_0x564a88,this[_0x3d2543(0x4f8)]=_0x3d5e85,this[_0x3d2543(0x1dc)]();}['init'](){const _0x43a396=_0x3b57cd;this['_httpService'][_0x43a396(0x499)]({'priority':0x1,'interceptor':(_0x218ac7,_0x21ef33)=>_0x21ef33(_0x218ac7)['pipe'](v[_0x43a396(0x302)](async _0x5f5add=>{const _0x1af8e0=_0x43a396,_0x25b39e=_0x5f5add;if(_0x25b39e[_0x1af8e0(0x368)]===0x191&&window[_0x1af8e0(0x39a)](this['localeService']['t'](_0x1af8e0(0x41d)))){const _0x3f8006=window[_0x1af8e0(0x37c)](window[_0x1af8e0(0x548)]['href']);window['location'][_0x1af8e0(0x3ca)]=this[_0x1af8e0(0x3bf)]()+_0x1af8e0(0x266)+_0x3f8006;}return _0x25b39e;}))});}[_0x3b57cd(0x3bf)](){const _0x3d3804=_0x3b57cd;var _0x3cb1dd,_0x5f55d1;const _0x509ba9=this[_0x3d3804(0x490)][_0x3d3804(0x38e)](Ct),_0x46a1d2=this[_0x3d3804(0x490)][_0x3d3804(0x38e)]($);return(_0x5f55d1=(_0x3cb1dd=_0x46a1d2==null?void 0x0:_0x46a1d2[_0x3d3804(0x40b)])!=null?_0x3cb1dd:_0x509ba9)!=null?_0x5f55d1:rs;}};Ee=nn([je(0x0,a[_0x3b57cd(0x2f9)]),je(0x1,a[_0x3b57cd(0x4ad)](U[_0x3b57cd(0x44a)])),je(0x2,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)]))],Ee);var rn=Object['defineProperty'],on=Object[_0x3b57cd(0x35f)],an=(_0x35a026,_0xa3b10c,_0x25ef4e,_0x3e59a9)=>{const _0x4bbe30=_0x3b57cd;for(var _0x225525=_0x3e59a9>0x1?void 0x0:_0x3e59a9?on(_0xa3b10c,_0x25ef4e):_0xa3b10c,_0x522d58=_0x35a026[_0x4bbe30(0x54c)]-0x1,_0x96dfb0;_0x522d58>=0x0;_0x522d58--)(_0x96dfb0=_0x35a026[_0x522d58])&&(_0x225525=(_0x3e59a9?_0x96dfb0(_0xa3b10c,_0x25ef4e,_0x225525):_0x96dfb0(_0x225525))||_0x225525);return _0x3e59a9&&_0x225525&&rn(_0xa3b10c,_0x25ef4e,_0x225525),_0x225525;},_t=(_0x370288,_0x209bd0)=>(_0xde8196,_0x23b4b0)=>_0x209bd0(_0xde8196,_0x23b4b0,_0x370288);const jt=_0x3b57cd(0x43b),cn=_0x3b57cd(0x48e);exports['AuthzIoHttpService']=class extends a[_0x3b57cd(0x54b)]{constructor(_0x5485a8,_0x503d2f){const _0x6a4e5d=_0x3b57cd;super(),this['_HTTPService']=_0x5485a8,this[_0x6a4e5d(0x490)]=_0x503d2f,this[_0x6a4e5d(0x342)]();}[_0x3b57cd(0x342)](){const _0x5ae933=_0x3b57cd,_0x58c0cc=this;this[_0x5ae933(0x431)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':U[_0x5ae933(0x286)]({'isMatch'(_0x3786fb){const _0x110b18=_0x5ae933;var _0x4beedd;if(_0x3786fb[_0x110b18(0x4bc)]===_0x110b18(0x18a)&&((_0x4beedd=_0x3786fb[_0x110b18(0x4c7)])!=null&&_0x4beedd[_0x110b18(0x4f1)])){const {objectID:_0x3e58fd,objectType:_0x2901f9}=_0x3786fb[_0x110b18(0x4c7)][_0x110b18(0x4f1)]||{};if(!_0x3e58fd||_0x2901f9===void 0x0)return!0x1;const _0x58eca8=_0x58c0cc[_0x110b18(0x511)]()+'/'+_0x2901f9+'/object/'+_0x3e58fd+_0x110b18(0x4fb);if(_0x3786fb[_0x110b18(0x583)]===_0x58eca8)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3d376e){const _0x2bfdeb=_0x5ae933;var _0x348799;return(_0x348799=_0x3d376e[_0x2bfdeb(0x4c7)])==null?void 0x0:_0x348799[_0x2bfdeb(0x4f1)];},'mergeParamsToRequest'(_0x5e656a,_0x20a115){const _0x4b23e2=_0x5ae933,_0x58360a=_0x58c0cc[_0x4b23e2(0x511)]()+'/-/object/-/batch_allowed',_0x4790b4=_0x5e656a[_0x4b23e2(0x3c4)]((_0x3a2e76,_0xc4bb6e)=>{const _0x58d1f0=_0x4b23e2,{unitID:_0x30b9af,objectID:_0x54430b,objectType:_0x23e832,actions:_0x5daba6}=_0xc4bb6e;return _0x3a2e76[_0x30b9af]||(_0x3a2e76[_0x30b9af]={}),_0x3a2e76[_0x30b9af][_0x54430b]||(_0x3a2e76[_0x30b9af][_0x54430b]={'objectID':_0x54430b,'objectType':_0x23e832,'actions':[]}),_0x3a2e76[_0x30b9af][_0x54430b][_0x58d1f0(0x383)]['push'](..._0x5daba6),_0x3a2e76;},{}),_0x246256=[];for(const _0xb4a247 in _0x4790b4)for(const _0x36b667 in _0x4790b4[_0xb4a247]){const {actions:_0x2906d5,objectType:_0x4892b1}=_0x4790b4[_0xb4a247][_0x36b667],_0x108486=[...new Set(_0x2906d5)];_0x246256[_0x4b23e2(0x41e)]({'unitID':_0xb4a247,'objectID':_0x36b667,'objectType':_0x4892b1,'actions':_0x108486});}return new U[(_0x4b23e2(0x3c2))](_0x4b23e2(0x18a),_0x58360a,{'headers':_0x20a115['headers'],'withCredentials':_0x20a115[_0x4b23e2(0x389)],'responseType':_0x20a115[_0x4b23e2(0x51b)],'body':{'requests':_0x246256}});}},{'distributeResult'(_0x51e79a,_0x2ce945){const _0x2d8add=_0x5ae933,{objectActions:_0x5aa609}=_0x51e79a;return _0x2ce945[_0x2d8add(0x439)](_0x118fc9=>{const _0x3379ce=_0x2d8add,{unitID:_0x38636d,objectID:_0x4dd4d5,actions:_0x4b089b}=_0x118fc9,_0x3089a8=_0x5aa609[_0x3379ce(0x303)](_0x452dc7=>_0x452dc7['unitID']===_0x38636d&&_0x452dc7[_0x3379ce(0x2f2)]===_0x4dd4d5),_0x526bd7=_0x4b089b[_0x3379ce(0x439)](_0x4de589=>_0x3089a8==null?void 0x0:_0x3089a8[_0x3379ce(0x383)][_0x3379ce(0x303)](_0x1abe2c=>_0x1abe2c[_0x3379ce(0x2e3)]===_0x4de589))[_0x3379ce(0x445)](_0x1ab58e=>!!_0x1ab58e);return{'config':_0x118fc9,'result':{'actions':_0x526bd7,'error':_0x51e79a[_0x3379ce(0x37f)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3d024a=_0x3b57cd;var _0x32f80f,_0x29c713;const _0x2d2b67=this[_0x3d024a(0x490)]['getConfig'](jt),_0x484d69=this[_0x3d024a(0x490)][_0x3d024a(0x38e)]($);return(_0x29c713=(_0x32f80f=_0x484d69==null?void 0x0:_0x484d69[_0x3d024a(0x4c0)])!=null?_0x32f80f:_0x2d2b67)!=null?_0x29c713:cn;}async[_0x3b57cd(0x59b)](_0x21e065){const _0x3d20ef=_0x3b57cd,_0xc2ddbf=this['_getAPIPrefixPath']()+'/'+_0x21e065['objectType']+_0x3d20ef(0x22d);return(await this['_HTTPService'][_0x3d20ef(0x1cb)](_0xc2ddbf,{'body':_0x21e065}))['body']['objectID']||'';}async[_0x3b57cd(0x223)](_0x598784){const _0x153933=_0x3b57cd,_0x1fcf46=this['_getAPIPrefixPath']()+_0x153933(0x2ae);return(await this[_0x153933(0x4ef)][_0x153933(0x1cb)](_0x1fcf46,{'body':_0x598784}))[_0x153933(0x4f1)][_0x153933(0x331)];}async[_0x3b57cd(0x270)](_0x36f6c6){const _0x478538=_0x3b57cd,_0x74c32b=this[_0x478538(0x511)]()+'/'+_0x36f6c6[_0x478538(0x406)]+'/object/'+_0x36f6c6['objectID'];await this[_0x478538(0x4ef)][_0x478538(0x50a)](_0x74c32b,{'body':_0x36f6c6});}async[_0x3b57cd(0x340)](_0x507517){const _0x3734b4=_0x3b57cd,_0x25d562=this[_0x3734b4(0x511)]()+'/'+_0x507517['objectType']+'/object/'+_0x507517[_0x3734b4(0x2f2)]+_0x3734b4(0x4fb);return(await this['_HTTPService'][_0x3734b4(0x1cb)](_0x25d562,{'body':_0x507517}))[_0x3734b4(0x4f1)]['actions'];}async[_0x3b57cd(0x215)](_0x2995df){const _0x491916=_0x3b57cd,_0x201929=this[_0x491916(0x511)]()+_0x491916(0x2ef);return(await this[_0x491916(0x4ef)][_0x491916(0x1cb)](_0x201929,{'body':{'requests':_0x2995df}}))[_0x491916(0x4f1)]['objectActions'];}async[_0x3b57cd(0x26b)](_0xa7c7f6){const _0x5af67c=_0x3b57cd,_0x5cd9bd=this[_0x5af67c(0x511)]()+'/'+_0xa7c7f6['objectType']+_0x5af67c(0x464),_0x1be663=await this[_0x5af67c(0x4ef)][_0x5af67c(0x1cb)](_0x5cd9bd,{'body':_0xa7c7f6});return{'roles':_0x1be663[_0x5af67c(0x4f1)]['roles'],'actions':_0x1be663[_0x5af67c(0x4f1)][_0x5af67c(0x383)]};}async['deleteCollaborator'](_0x3755e6){const _0x23d2b=_0x3b57cd,_0x21e290=this[_0x23d2b(0x511)]()+'/collaborator';await this[_0x23d2b(0x4ef)][_0x23d2b(0x524)](_0x21e290,{'params':{'collaboratorID':_0x3755e6['collaboratorID'],'objectID':_0x3755e6[_0x23d2b(0x2f2)],'unitID':_0x3755e6['unitID']}});}async['updateCollaborator'](_0xd83141){const _0x3cd734=_0x3b57cd,_0x4d3d0a=this[_0x3cd734(0x511)]()+_0x3cd734(0x23f);await this[_0x3cd734(0x4ef)][_0x3cd734(0x260)](_0x4d3d0a,{'body':_0xd83141});}async['createCollaborator'](_0x524d23){const _0xa8179=_0x3b57cd,_0x80976a=this[_0xa8179(0x511)]()+'/collaborator';await this[_0xa8179(0x4ef)][_0xa8179(0x1cb)](_0x80976a,{'body':_0x524d23});}async['listCollaborators'](_0x11ad69){const _0x4cad7b=_0x3b57cd,_0x430092=this[_0x4cad7b(0x511)]()+_0x4cad7b(0x23f);return(await this['_HTTPService'][_0x4cad7b(0x4e6)](_0x430092,{'params':{'objectID':_0x11ad69[_0x4cad7b(0x2f2)],'unitID':_0x11ad69[_0x4cad7b(0x234)]}}))[_0x4cad7b(0x4f1)][_0x4cad7b(0x504)];}async[_0x3b57cd(0x420)](_0x39a1fa){const _0x37d906=_0x3b57cd,_0x2025e3=this['_getAPIPrefixPath']()+_0x37d906(0x23f);await this[_0x37d906(0x4ef)][_0x37d906(0x50a)](_0x2025e3,{'body':_0x39a1fa});}},exports['AuthzIoHttpService']=an([_t(0x0,a[_0x3b57cd(0x4ad)](U[_0x3b57cd(0x44a)])),_t(0x1,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x2f9)]))],exports['AuthzIoHttpService']);var ln=Object[_0x3b57cd(0x44e)],hn=Object[_0x3b57cd(0x35f)],_n=(_0x66435c,_0x19f2c5,_0x320d55,_0x5d8b23)=>{const _0x134f5c=_0x3b57cd;for(var _0x44e809=_0x5d8b23>0x1?void 0x0:_0x5d8b23?hn(_0x19f2c5,_0x320d55):_0x19f2c5,_0x4c92ee=_0x66435c[_0x134f5c(0x54c)]-0x1,_0x4630e2;_0x4c92ee>=0x0;_0x4c92ee--)(_0x4630e2=_0x66435c[_0x4c92ee])&&(_0x44e809=(_0x5d8b23?_0x4630e2(_0x19f2c5,_0x320d55,_0x44e809):_0x4630e2(_0x44e809))||_0x44e809);return _0x5d8b23&&_0x44e809&&ln(_0x19f2c5,_0x320d55,_0x44e809),_0x44e809;},un=(_0x304f4e,_0x1ad762)=>(_0x1e8533,_0x45c131)=>_0x1ad762(_0x1e8533,_0x45c131,_0x304f4e);let be=class{constructor(_0x3524f4){const _0xfa4c92=_0x3b57cd;this[_0xfa4c92(0x493)]=_0x3524f4,this[_0xfa4c92(0x213)]();}[_0x3b57cd(0x213)](){const _0x1255bc=_0x3b57cd;this[_0x1255bc(0x493)][_0x1255bc(0x499)]({'interceptor':(_0x5aabfe,_0x2da7f8)=>{const _0x4914b6=_0x1255bc,_0x14b35b=_0x5aabfe[_0x4914b6(0x497)],_0x3ed0bd=qt['getAttachHeader']();return _0x3ed0bd&&_0x14b35b[_0x4914b6(0x4af)](_0x4914b6(0x237),_0x3ed0bd),_0x2da7f8(_0x5aabfe);}});}};be=_n([un(0x0,a[_0x3b57cd(0x4ad)](U[_0x3b57cd(0x44a)]))],be);var dn=Object[_0x3b57cd(0x44e)],Sn=Object['getOwnPropertyDescriptor'],vn=(_0x17c006,_0x44ddfa,_0x5263a4,_0x4ee4d5)=>{const _0x4889e3=_0x3b57cd;for(var _0x423338=_0x4ee4d5>0x1?void 0x0:_0x4ee4d5?Sn(_0x44ddfa,_0x5263a4):_0x44ddfa,_0x1d3fe3=_0x17c006[_0x4889e3(0x54c)]-0x1,_0x2df8c6;_0x1d3fe3>=0x0;_0x1d3fe3--)(_0x2df8c6=_0x17c006[_0x1d3fe3])&&(_0x423338=(_0x4ee4d5?_0x2df8c6(_0x44ddfa,_0x5263a4,_0x423338):_0x2df8c6(_0x423338))||_0x423338);return _0x4ee4d5&&_0x423338&&dn(_0x44ddfa,_0x5263a4,_0x423338),_0x423338;},He=(_0x13b1f4,_0x3c059b)=>(_0x421b8c,_0x327d72)=>_0x3c059b(_0x421b8c,_0x327d72,_0x13b1f4);const mn=[_0x3b57cd(0x45b),_0x3b57cd(0x525),_0x3b57cd(0x3cc),_0x3b57cd(0x226),_0x3b57cd(0x46a)],gn=0x5*0x400*0x400,fn=_0x3b57cd(0x550),In=_0x3b57cd(0x1c6),pn=_0x3b57cd(0x2b3),Cn=_0x3b57cd(0x518);exports[_0x3b57cd(0x2f0)]=class{constructor(_0x317bed,_0x3b0034,_0x514316){const _0x3841b5=_0x3b57cd;u(this,_0x3841b5(0x25f),0x0),u(this,_0x3841b5(0x37d),new v[(_0x3841b5(0x56b))]()),u(this,'change$',this[_0x3841b5(0x37d)]),u(this,_0x3841b5(0x3d3),new Map()),(this['_httpService']=_0x317bed,this['_configService']=_0x3b0034,this[_0x3841b5(0x562)]=_0x514316);}['setWaitCount'](_0x8891b4){const _0x5d571c=_0x3b57cd;this[_0x5d571c(0x25f)]=_0x8891b4,this[_0x5d571c(0x37d)][_0x5d571c(0x3b8)](_0x8891b4);}[_0x3b57cd(0x328)](_0xebe2c5,_0x28d4ed){const _0x535892=_0x3b57cd;if(_0x28d4ed===j[_0x535892(0x293)]['BASE64']){const _0x5c8545=new Image();return _0x5c8545[_0x535892(0x3a6)]=_0xebe2c5,_0x5c8545;}return this[_0x535892(0x3d3)][_0x535892(0x4e6)](_0xebe2c5);}[_0x3b57cd(0x454)](_0x15e51e,_0x5ea46b,_0x1923bc){const _0x2bb964=_0x3b57cd;_0x5ea46b===j['ImageSourceType']['BASE64']||_0x1923bc==null||this[_0x2bb964(0x3d3)]['set'](_0x15e51e,_0x1923bc);}async['getImage'](_0x341ff1){const _0x3ca085=_0x3b57cd;try{const _0x5a006c=this[_0x3ca085(0x350)](this[_0x3ca085(0x39e)](),''+_0x341ff1),_0x3cd981=(await this[_0x3ca085(0x493)][_0x3ca085(0x4e6)](_0x5a006c))[_0x3ca085(0x4f1)];if(_0x3cd981[_0x3ca085(0x37f)]&&_0x3cd981[_0x3ca085(0x37f)][_0x3ca085(0x29f)]===Et['OK']){const _0x4d7855=new URL(_0x3cd981[_0x3ca085(0x583)],this[_0x3ca085(0x594)]())[_0x3ca085(0x3b0)]();return Promise[_0x3ca085(0x30e)](_0x4d7855);}return Promise[_0x3ca085(0x50c)](_0x3cd981['error']);}catch(_0x26da9f){return Promise['reject'](_0x26da9f);}}async[_0x3b57cd(0x25a)](_0x44ab49){const _0x54ca00=_0x3b57cd;let _0x550a84='';if(!mn[_0x54ca00(0x4f5)](_0x44ab49['type']))return this[_0x54ca00(0x514)](),Promise[_0x54ca00(0x50c)](new Error(j[_0x54ca00(0x3eb)]['ERROR_IMAGE_TYPE']));if(_0x44ab49[_0x54ca00(0x4ba)]>gn)return this[_0x54ca00(0x514)](),Promise[_0x54ca00(0x50c)](new Error(j[_0x54ca00(0x3eb)]['ERROR_EXCEED_SIZE']));try{const _0x1c87dc=new FormData();_0x1c87dc['append'](_0x54ca00(0x3a5),_0x44ab49);const _0x3a86ac=this['_univerInstanceService'][_0x54ca00(0x55a)](),_0x5f8eac=_0x3a86ac==null?void 0x0:_0x3a86ac[_0x54ca00(0x2fa)]();if(!_0x5f8eac)throw new Error('unitId\x20is\x20not\x20found');const _0x4806a9=this['_getUploadFileURL']()+_0x54ca00(0x1df)+_0x44ab49[_0x54ca00(0x4ba)][_0x54ca00(0x3b0)]()+_0x54ca00(0x26d)+bt[_0x54ca00(0x448)]+_0x54ca00(0x51f)+encodeURIComponent(_0x5f8eac),_0xe4f2c9=await(await fetch(_0x4806a9,{'method':_0x54ca00(0x18a),'body':_0x1c87dc}))['json']();if(typeof _0xe4f2c9['FileId']!=_0x54ca00(0x52f))return this[_0x54ca00(0x514)](),Promise[_0x54ca00(0x50c)](new Error(j[_0x54ca00(0x3eb)][_0x54ca00(0x1ed)]));_0x550a84=_0xe4f2c9[_0x54ca00(0x577)];}catch{return this[_0x54ca00(0x514)](),Promise[_0x54ca00(0x50c)](new Error(j['ImageUploadStatusType'][_0x54ca00(0x1ed)]));}return new Promise((_0x445525,_0x18b6a6)=>{const _0x57b51b=_0x54ca00,_0x552c25=new FileReader();_0x552c25[_0x57b51b(0x4f6)](_0x44ab49),_0x552c25[_0x57b51b(0x216)]=_0x277556=>{const _0xf568a3=_0x57b51b;var _0x5a8eed;const _0x59a7c1=(_0x5a8eed=_0x277556[_0xf568a3(0x53c)])==null?void 0x0:_0x5a8eed[_0xf568a3(0x1da)];if(_0x59a7c1==null){this[_0xf568a3(0x514)](),_0x18b6a6(new Error(j[_0xf568a3(0x3eb)][_0xf568a3(0x1ed)]));return;}const _0x50bce4=a[_0xf568a3(0x2a0)][_0xf568a3(0x3e4)](0x6);_0x445525({'imageId':_0x50bce4,'imageSourceType':j[_0xf568a3(0x293)][_0xf568a3(0x54d)],'source':_0x550a84,'base64Cache':_0x59a7c1,'status':j[_0xf568a3(0x3eb)][_0xf568a3(0x3aa)]}),this[_0xf568a3(0x514)]();};});}['_getUploadFileURL'](){const _0x341da5=_0x3b57cd;var _0x121125,_0x465539;const _0xb1cea4=this[_0x341da5(0x490)][_0x341da5(0x38e)](fn),_0x2cc81f=this[_0x341da5(0x490)][_0x341da5(0x38e)]($);return(_0x465539=(_0x121125=_0x2cc81f==null?void 0x0:_0x2cc81f['uploadFileServerUrl'])!=null?_0x121125:_0xb1cea4)!=null?_0x465539:In;}[_0x3b57cd(0x39e)](){const _0x31945d=_0x3b57cd;var _0x50fe9f,_0x273e36;const _0xfc5a37=this[_0x31945d(0x490)]['getConfig'](pn),_0x4a6358=this[_0x31945d(0x490)]['getConfig']($);return(_0x273e36=(_0x50fe9f=_0x4a6358==null?void 0x0:_0x4a6358[_0x31945d(0x211)])!=null?_0x50fe9f:_0xfc5a37)!=null?_0x273e36:Cn;}[_0x3b57cd(0x594)](){const _0x28d091=_0x3b57cd;var _0x5920ad;const _0x39b267=this[_0x28d091(0x490)][_0x28d091(0x38e)]($);return(_0x5920ad=_0x39b267==null?void 0x0:_0x39b267[_0x28d091(0x43a)])!=null?_0x5920ad:location[_0x28d091(0x2b6)];}[_0x3b57cd(0x350)](_0x3d5ae3,_0x3281dd){const _0x23f536=_0x3b57cd;return _0x3d5ae3['replace'](_0x23f536(0x2c2),_0x3281dd);}[_0x3b57cd(0x514)](){const _0xee627=_0x3b57cd;this[_0xee627(0x25f)]-=0x1,this[_0xee627(0x37d)][_0xee627(0x3b8)](this[_0xee627(0x25f)]);}},exports[_0x3b57cd(0x2f0)]=vn([He(0x0,a[_0x3b57cd(0x4ad)](U[_0x3b57cd(0x44a)])),He(0x1,a[_0x3b57cd(0x2f9)]),He(0x2,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x424)]))],exports['ImageIoService']);var En=Object[_0x3b57cd(0x44e)],bn=Object[_0x3b57cd(0x35f)],Tn=(_0x27f3d8,_0x317729,_0x5847fc,_0x54c012)=>{const _0x49f8c5=_0x3b57cd;for(var _0x3c29e7=_0x54c012>0x1?void 0x0:_0x54c012?bn(_0x317729,_0x5847fc):_0x317729,_0x361753=_0x27f3d8[_0x49f8c5(0x54c)]-0x1,_0x4bdbeb;_0x361753>=0x0;_0x361753--)(_0x4bdbeb=_0x27f3d8[_0x361753])&&(_0x3c29e7=(_0x54c012?_0x4bdbeb(_0x317729,_0x5847fc,_0x3c29e7):_0x4bdbeb(_0x3c29e7))||_0x3c29e7);return _0x54c012&&_0x3c29e7&&En(_0x317729,_0x5847fc,_0x3c29e7),_0x3c29e7;},_e=(_0x225aa7,_0x3916d3)=>(_0x31c187,_0x3152ec)=>_0x3916d3(_0x31c187,_0x3152ec,_0x225aa7);let Te=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x36059f,_0x5696af,_0x4ffc28,_0x543ad6,_0x42e599){const _0x35a905=_0x3b57cd;super(),this[_0x35a905(0x486)]=_0x36059f,this[_0x35a905(0x562)]=_0x5696af,this[_0x35a905(0x3f9)]=_0x4ffc28,this[_0x35a905(0x55e)]=_0x543ad6,this[_0x35a905(0x4fd)]=_0x42e599,this[_0x35a905(0x4a5)](),this[_0x35a905(0x337)]();}['_initCloseConn'](){const _0x3d7451=_0x3b57cd,_0x324e14=async _0x3fa95f=>{const _0x554c02=_0x4497;(await this['_collaborationSessionService'][_0x554c02(0x55b)](_0x3fa95f))['event$'][_0x554c02(0x3b4)](E['filter'](_0x4223d8=>_0x4223d8[_0x554c02(0x2f8)]===_[_0x554c02(0x556)][_0x554c02(0x2f5)]),E[_0x554c02(0x1b3)](this[_0x554c02(0x3fc)]))[_0x554c02(0x508)](_0x13fe01=>{const _0xf03c0b=_0x554c02,_0x40cf48=_0x13fe01,{reason:_0x46c2f2}=_0x40cf48[_0xf03c0b(0x30a)];this[_0xf03c0b(0x486)][_0xf03c0b(0x4e6)](A['IMessageService'])[_0xf03c0b(0x2e8)]({'type':J[_0xf03c0b(0x502)][_0xf03c0b(0x4db)],'content':this['_localeService']['t'](_0xf03c0b(0x219))+'('+_0x46c2f2+')'}),this[_0xf03c0b(0x3f9)][_0xf03c0b(0x1fc)](new C['WorkbookEditablePermission'](_0x3fa95f)['id'],!0x1),this[_0xf03c0b(0x55e)][_0xf03c0b(0x2da)](_0x3fa95f);});};v[_0x3d7451(0x547)](this['_univerInstanceService'][_0x3d7451(0x1e3)](a[_0x3d7451(0x2b4)][_0x3d7451(0x53b)]),this[_0x3d7451(0x562)][_0x3d7451(0x1e3)](a[_0x3d7451(0x2b4)][_0x3d7451(0x1a9)]))[_0x3d7451(0x3b4)](E[_0x3d7451(0x439)](_0x2d0bb6=>_0x2d0bb6[_0x3d7451(0x2fa)]()),E[_0x3d7451(0x445)](_0x83e5ad=>!a['isInternalEditorID'](_0x83e5ad)),E[_0x3d7451(0x1b3)](this[_0x3d7451(0x3fc)]))['subscribe'](_0x34b1d8=>{_0x324e14(_0x34b1d8);});}['_initUnitPermissionChange'](){const _0x437e76=_0x3b57cd,_0x4e72d5=async _0x3c7f9d=>{const _0x364216=_0x4497;(await this[_0x364216(0x55e)][_0x364216(0x55b)](_0x3c7f9d))['event$'][_0x364216(0x3b4)](E[_0x364216(0x445)](_0x5892b5=>_0x5892b5['eventID']===_[_0x364216(0x556)][_0x364216(0x22a)]),E[_0x364216(0x1b3)](this[_0x364216(0x3fc)]))[_0x364216(0x508)](_0x4ad40d=>{const _0x14cea6=_0x364216,_0x329af9=_0x4ad40d,{objectId:_0x46114e}=_0x329af9[_0x14cea6(0x30a)],_0x6be313=this[_0x14cea6(0x486)][_0x14cea6(0x4e6)](ie['SheetPermissionInitController']);_0x46114e===_0x3c7f9d?_0x6be313['initWorkbookPermissionChange'](_0x3c7f9d):_0x6be313[_0x14cea6(0x2f4)](_0x3c7f9d,_0x46114e);});};v['merge'](this[_0x437e76(0x562)][_0x437e76(0x1e3)](a[_0x437e76(0x2b4)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x437e76(0x1e3)](a['UniverInstanceType'][_0x437e76(0x1a9)]))[_0x437e76(0x3b4)](E['map'](_0x4ba91a=>_0x4ba91a[_0x437e76(0x2fa)]()),E[_0x437e76(0x445)](_0x27f806=>!a['isInternalEditorID'](_0x27f806)),E[_0x437e76(0x1b3)](this[_0x437e76(0x3fc)]))[_0x437e76(0x508)](_0xfe7bb2=>{_0x4e72d5(_0xfe7bb2);});}};Te=Tn([_e(0x0,a['Inject'](a[_0x3b57cd(0x232)])),_e(0x1,a[_0x3b57cd(0x424)]),_e(0x2,a[_0x3b57cd(0x460)]),_e(0x3,a[_0x3b57cd(0x4ad)](exports['CollaborationSessionService'])),_e(0x4,a[_0x3b57cd(0x4ad)](a['LocaleService']))],Te);var Rn=Object[_0x3b57cd(0x44e)],On=Object[_0x3b57cd(0x35f)],Dn=(_0x24ebf5,_0x2a1ee6,_0x2db86b,_0x9385f5)=>{const _0x5961a2=_0x3b57cd;for(var _0x155d78=_0x9385f5>0x1?void 0x0:_0x9385f5?On(_0x2a1ee6,_0x2db86b):_0x2a1ee6,_0xaedbd1=_0x24ebf5[_0x5961a2(0x54c)]-0x1,_0x1c8f80;_0xaedbd1>=0x0;_0xaedbd1--)(_0x1c8f80=_0x24ebf5[_0xaedbd1])&&(_0x155d78=(_0x9385f5?_0x1c8f80(_0x2a1ee6,_0x2db86b,_0x155d78):_0x1c8f80(_0x155d78))||_0x155d78);return _0x9385f5&&_0x155d78&&Rn(_0x2a1ee6,_0x2db86b,_0x155d78),_0x155d78;},ut=(_0x29789b,_0x1ef289)=>(_0x4eaa97,_0x8186dd)=>_0x1ef289(_0x4eaa97,_0x8186dd,_0x29789b);exports[_0x3b57cd(0x249)]=class{constructor(_0xde7683,_0x5c9943){const _0x2255f5=_0x3b57cd;this[_0x2255f5(0x490)]=_0xde7683,this['_httpService']=_0x5c9943;}async[_0x3b57cd(0x4e9)](_0x1a26ae,_0x5b465e){const _0x42395d=_0x3b57cd;var _0x5eb6cf;const {unitID:_0x350916,type:_0x52c40d,revision:_0x275eb5=0x0}=_0x5b465e,_0x4f41c2=this[_0x42395d(0x582)]()+'/'+_0x52c40d+_0x42395d(0x3c6)+_0x350916+'/rev/'+_0x275eb5,_0x334f8b=(await this[_0x42395d(0x493)][_0x42395d(0x4e6)](_0x4f41c2))[_0x42395d(0x4f1)],_0xae4433=(_0x5eb6cf=_0x334f8b[_0x42395d(0x372)])==null?void 0x0:_0x5eb6cf[_0x42395d(0x4ce)];if(_0xae4433){const _0x1c8898=_0xae4433==null?void 0x0:_0xae4433[_0x42395d(0x21b)],_0x5b37e1=_[_0x42395d(0x1d0)][_0x42395d(0x462)](_[_0x42395d(0x4b1)](_0x1c8898));_0xae4433[_0x42395d(0x21b)]=_0x5b37e1,Object[_0x42395d(0x2b9)](_0xae4433[_0x42395d(0x20d)])[_0x42395d(0x571)](([,_0x14c466])=>{const _0x49dd19=_0x42395d,_0x119859=_0x14c466['originalMeta'],_0x5a0ca3=_['textEncoder'][_0x49dd19(0x462)](_[_0x49dd19(0x4b1)](_0x119859));_0x14c466['originalMeta']=_0x5a0ca3;});}return _0x334f8b;}async[_0x3b57cd(0x3e7)](_0x290587,_0x19d35a){const _0x1d0e5c=_0x3b57cd,{unitID:_0x312ba2,type:_0x387b2f,blockID:_0x5cc7f4}=_0x19d35a,_0x52b688=this[_0x1d0e5c(0x278)]()+'/'+_0x387b2f+'/unit/'+_0x312ba2+_0x1d0e5c(0x250)+_0x5cc7f4;return(await this['_httpService'][_0x1d0e5c(0x4e6)](_0x52b688))[_0x1d0e5c(0x4f1)];}async[_0x3b57cd(0x51d)](_0x2f1b5d,_0x513900){const _0x994ba1=_0x3b57cd,{unitID:_0x3c6524,type:_0x5cc7f1,blockID:_0x3c346d}=_0x513900,_0x550450=this[_0x994ba1(0x278)]()+_0x994ba1(0x250)+_0x5cc7f1+'/unit/'+_0x3c6524+_0x994ba1(0x250)+_0x3c346d;return(await this[_0x994ba1(0x493)][_0x994ba1(0x4e6)](_0x550450))[_0x994ba1(0x4f1)];}async[_0x3b57cd(0x405)](_0x32ce18,_0x575934){const _0x5d9aa1=_0x3b57cd,{unitID:_0x289728,type:_0x48026e,from:_0x1b609f,to:_0x19c286}=_0x575934,_0x48565e=this[_0x5d9aa1(0x278)]()+'/'+_0x48026e+'/unit/'+_0x289728+_0x5d9aa1(0x21c)+_0x1b609f+_0x5d9aa1(0x57b)+_0x19c286;return(await this[_0x5d9aa1(0x493)]['get'](_0x48565e))[_0x5d9aa1(0x4f1)];}[_0x3b57cd(0x582)](){const _0x2aefb3=_0x3b57cd;var _0x18a286;return(_0x18a286=this[_0x2aefb3(0x490)][_0x2aefb3(0x38e)](St))!=null?_0x18a286:this['_getAPIPrefix']();}[_0x3b57cd(0x278)](){const _0x26a883=_0x3b57cd;var _0x3a3f2a,_0x412fe4;const _0x137306=this[_0x26a883(0x490)][_0x26a883(0x38e)](dt),_0x530375=this[_0x26a883(0x490)]['getConfig']($);return(_0x412fe4=(_0x3a3f2a=_0x530375==null?void 0x0:_0x530375['snapshotServerUrl'])!=null?_0x3a3f2a:_0x137306)!=null?_0x412fe4:zt;}async[_0x3b57cd(0x476)](_0x310f23,_0x121ecd){const _0x29b252=_0x3b57cd,_0x12ad82='/universer-api/snapshot/'+_0x121ecd[_0x29b252(0x537)]+_0x29b252(0x3c6)+_0x121ecd['unitID']+_0x29b252(0x4b6);return(await this['_httpService'][_0x29b252(0x4e6)](_0x12ad82,{'params':{'resourceId':JSON['stringify'](_0x121ecd[_0x29b252(0x325)])}}))['body'];}[_0x3b57cd(0x4cf)](){const _0xdc5e69=_0x3b57cd;throw new Error(_0xdc5e69(0x51e));}[_0x3b57cd(0x3f7)](){const _0x5286de=_0x3b57cd;throw new Error(_0x5286de(0x51e));}[_0x3b57cd(0x1d7)](){const _0x2adde9=_0x3b57cd;throw new Error(_0x2adde9(0x51e));}[_0x3b57cd(0x589)](){const _0x6fd324=_0x3b57cd;throw new Error(_0x6fd324(0x51e));}[_0x3b57cd(0x3bb)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x3b57cd(0x249)]=Dn([ut(0x0,a[_0x3b57cd(0x2f9)]),ut(0x1,a['Inject'](U[_0x3b57cd(0x44a)]))],exports['SnapshotServerOverHTTPService']);var yn=Object[_0x3b57cd(0x44e)],Un=Object['getOwnPropertyDescriptor'],Pn=(_0x3d145e,_0x12544a,_0x181454,_0xef2484)=>{const _0x260171=_0x3b57cd;for(var _0x3fcc94=_0xef2484>0x1?void 0x0:_0xef2484?Un(_0x12544a,_0x181454):_0x12544a,_0x2a1ed9=_0x3d145e[_0x260171(0x54c)]-0x1,_0x3d2f89;_0x2a1ed9>=0x0;_0x2a1ed9--)(_0x3d2f89=_0x3d145e[_0x2a1ed9])&&(_0x3fcc94=(_0xef2484?_0x3d2f89(_0x12544a,_0x181454,_0x3fcc94):_0x3d2f89(_0x3fcc94))||_0x3fcc94);return _0xef2484&&_0x3fcc94&&yn(_0x12544a,_0x181454,_0x3fcc94),_0x3fcc94;},ue=(_0x53daa9,_0x191bba)=>(_0x119097,_0x4f937f)=>_0x191bba(_0x119097,_0x4f937f,_0x53daa9);let We=class extends a[_0x3b57cd(0x4d6)]{constructor(_0x4974cf,_0x496e94,_0x37e6a7,_0x581f82,_0xdc0fbd){const _0x4b4124=_0x3b57cd;super(_0x4974cf,_0x496e94,_0x37e6a7),this[_0x4b4124(0x4be)]=_0x581f82,this[_0x4b4124(0x45c)]=_0xdc0fbd;}[_0x3b57cd(0x24f)](_0x23be2f,_0x17f10b){const _0x188dad=_0x3b57cd,_0x400482=this['_getUndoStack'](_0x23be2f);if(_0x400482)try{const _0x26d14d=this[_0x188dad(0x395)](_0x400482,_0x17f10b);this[_0x188dad(0x435)](_0x23be2f,_0x26d14d);}catch(_0xb513dc){this['_logService'][_0x188dad(0x37f)](_0x188dad(0x18b),_0xb513dc),this[_0x188dad(0x1c0)](_0x23be2f);}const _0x498deb=this[_0x188dad(0x401)](_0x23be2f);if(_0x498deb)try{const _0x5acfc0=this['_transformStack'](_0x498deb,_0x17f10b);this['_substituteRedoStack'](_0x23be2f,_0x5acfc0);}catch(_0x1e72f3){this['_logService'][_0x188dad(0x37f)](_0x1e72f3),this['_clearRedo'](_0x23be2f);}}[_0x3b57cd(0x1c0)](_0x20a766){const _0x5c70cc=_0x3b57cd,_0x15a114=this[_0x5c70cc(0x3b3)](_0x20a766);_0x15a114&&(_0x15a114[_0x5c70cc(0x54c)]=0x0,this[_0x5c70cc(0x57d)]());}['_clearRedo'](_0x4f3e71){const _0x5b714d=_0x3b57cd,_0x4916da=this[_0x5b714d(0x401)](_0x4f3e71);_0x4916da&&(_0x4916da[_0x5b714d(0x54c)]=0x0,this[_0x5b714d(0x57d)]());}[_0x3b57cd(0x435)](_0x192a5d,_0xb19d8d){const _0x548e99=_0x3b57cd;this[_0x548e99(0x19e)]['set'](_0x192a5d,_0xb19d8d),this[_0x548e99(0x57d)]();}[_0x3b57cd(0x43f)](_0x2ded03,_0x35982f){const _0x8c854c=_0x3b57cd;this[_0x8c854c(0x3e0)][_0x8c854c(0x4af)](_0x2ded03,_0x35982f),this[_0x8c854c(0x57d)]();}['_transformStack'](_0x2abe2,_0x2371fc){const _0x17054b=_0x3b57cd,_0x4c1619=[];let _0x711bcf=_0x2371fc,_0x5e248a=_0x2371fc;for(let _0x48a609=_0x2abe2[_0x17054b(0x54c)]-0x1;_0x48a609>=0x0;_0x48a609--){const {unitID:_0x2f1e0c,undoMutations:_0x5d83b4,redoMutations:_0x32f496}=_0x2abe2[_0x48a609],_0xe7f262=this['_transformService']['transformMutationsWithChangeset'](_0x711bcf,_0x5d83b4),_0x25ef90=this['_transformService'][_0x17054b(0x29a)](_0x5e248a,_0x32f496);if(_[_0x17054b(0x478)](_0xe7f262)||_['isTransformMutationsWithChangesetFailure'](_0x25ef90)){this[_0x17054b(0x45c)][_0x17054b(0x37f)](_0x17054b(0x18b),_0x17054b(0x3f8),_0xe7f262,_0x25ef90);break;}_0x711bcf=_0xe7f262[_0x17054b(0x295)],_0x5e248a=_0x25ef90['c1Prime'],_0x4c1619[_0x17054b(0x41e)]({'unitID':_0x2f1e0c,'undoMutations':_0xe7f262['m2Prime'],'redoMutations':_0x25ef90['m2Prime']});}return _0x4c1619['reverse']();}};We=Pn([ue(0x0,a[_0x3b57cd(0x424)]),ue(0x1,a[_0x3b57cd(0x17e)]),ue(0x2,a[_0x3b57cd(0x22b)]),ue(0x3,_[_0x3b57cd(0x4d5)]),ue(0x4,a[_0x3b57cd(0x4e7)])],We);class Ht extends a[_0x3b57cd(0x3a3)]{constructor(){const _0x39ad4f=_0x3b57cd;super(),u(this,_0x39ad4f(0x25b)),this['urlChange$']=v[_0x39ad4f(0x1b0)](window,_0x39ad4f(0x28b))[_0x39ad4f(0x3b4)](v[_0x39ad4f(0x1b3)](this[_0x39ad4f(0x3fc)]),v[_0x39ad4f(0x579)](0x1),v[_0x39ad4f(0x269)](void 0x0));}['setParam'](_0x1b5497,_0x521cd2,_0xb5397e=!0x1){const _0xb29a33=_0x3b57cd,_0x13a294=new URL(window[_0xb29a33(0x548)][_0xb29a33(0x3ca)]);_0x13a294[_0xb29a33(0x1f7)][_0xb29a33(0x4af)](_0x1b5497,_0x521cd2),_0xb5397e?window['history'][_0xb29a33(0x432)]('','',_0x13a294[_0xb29a33(0x3b0)]()):window['history'][_0xb29a33(0x2ed)]('','',_0x13a294[_0xb29a33(0x3b0)]());}[_0x3b57cd(0x373)](_0x3caf40,_0x37e351=!0x1){const _0x5a44db=_0x3b57cd,_0xbe3599=new URL(window[_0x5a44db(0x548)][_0x5a44db(0x3ca)]);_0xbe3599[_0x5a44db(0x1f7)]['delete'](_0x3caf40),_0x37e351?window[_0x5a44db(0x208)][_0x5a44db(0x432)]('','',_0xbe3599[_0x5a44db(0x3b0)]()):window[_0x5a44db(0x208)]['pushState']('','',_0xbe3599['toString']());}[_0x3b57cd(0x357)](_0x489d6a){const _0x5c3246=_0x3b57cd;var _0x6f52ef;return(_0x6f52ef=new URL(window[_0x5c3246(0x548)][_0x5c3246(0x3ca)])[_0x5c3246(0x1f7)][_0x5c3246(0x4e6)](_0x489d6a))!=null?_0x6f52ef:void 0x0;}}function _0xac00(){const _0x2c8b86=['getTypeOfUnitDisposed$','M0\x200H16V16H0z','routeKey','isArray','_retryCount','addImageSourceCache','getUnit','_docSyncEditingCollabCursorService','capture','fetchThroughInterceptors','_color','_registerDependencies','image/png','_logService','forwardRef','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','commentUpdate$','IPermissionService','_schedule','encode','_lockTransition','/role','collaboration-client.config','with','_loadDoc','verdancy600','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','image/bmp','Warning','onRemoteRej','OnLineSingle','appendMutation','_instanceService','BehaviorSubject','cursorInfo$','socket$','focused$','OTHER_CLIENTS_EDITING','Error\x20on\x20receiving\x20event','getResourcesRequest','add','isTransformMutationsWithChangesetFailure','DocStateChangeManagerService','_onCursorDelete','_checkMissing','backgroundColor','_commentUpdate$','_undoRedoService','use','getCoordByCell','fillText','[OfflineState]:\x20received\x20acknowledgement.','WebSocketService','_unitStatus','/universer-api/snapshot','_injector','collabStatus.offline','CompressMutationService','randomUUID','assignAColorForMemberID','_syncEditingCollabCursor','_render','_cursorInfo$','/universer-api/authz','collaboration-session-retry','_configService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','CONNECTOR_DATA_TOO_LARGE','_httpService','height','delay','_compressMutationService','headers','DependentOn','registerHTTPInterceptor','enableSingleActiveInstanceLock','getSheetId','transformMutation','_docSkeleton','throttleTime','APPLY_DUPLICATED','fetching\x20missing\x20changesets\x20from\x20','APPLY_PERMISSION_DENIED','clearTimeout','flatMap','LIVESHARE_NEW_HOST','_initUnitPermissionChange','_docStateChangeManagerService','getRandomValues','DataLoaderController','HttpImport','ISnapshotServerService','SNAPSHOT_URL_KEY','2096501kJdACk','Inject','HEARTBEAT_INTERVAL_KEY','set','rxjs','b64DecodeUnicode','RemoveColCommandId','[DataLoaderController]','/universer-api/oidc/authpage','saveOfflineData','/resources','measureText','UniverCollaborationPlugin','_singleActiveUnitService','size','SNAPSHOT_SERVER_URL_KEY','method','onPointerEnter$','_transformService','joinRsp','authzUrl','defIds','onSyncEditingCollabCursor','triggerDblclick','textRanges','findNodePositionByCharIndex','InsertRangeMoveRightCommandId','requestParams','collabStatus.syncing','10QObxlx','@univerjs/core','_selfUnitIDs','_entities','_handler','workbook','saveSnapshot','PERMISSION_DENIED','_transitionLocked','_acknowledgedAwaitingChangeset','getMergeData','_listenToOfflineEvent','ITransformService','LocalUndoRedoService','onlineStatusTitle','m2Prime','updatePermissionObjEvent','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','Error','_collaborationController','_http','duration','isActive','session','_messageService','SetSelectionsOperation','_getAnchorBounding','syncEditingCollabCursor','@univerjs/sheets','get','ILogService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getUnitOnRev','_syncEditingCollabCursorService','YUUMI_RATE_OVER_LIMIT','_beforeCloseService','getAllMembers','registerRefRange','_HTTPService','[CollaborationState]:\x20apply\x20error!','body','_submitChangeset','collab-text-anchor-','awaitingChangeset','includes','readAsDataURL','shouldCloseConn','localeService','debounceTime','getDocRanges','/allowed','SNAPSHOT_INVALID_SNAPSHOT','_localeService','collaboration.single-unit.warning','USERS_ENTER','transform','_sendHeartbeatTimer','MessageType','_collabCursorController','collaborators','_getCurrentRevision','_remoteChangesetQueue','SEND_CHANGESET_TIMEOUT','subscribe','socketService','put','_handleHover','reject','LOCAL_CACHE_INTERVAL','OffLineSingle','RichTextEditingMutation','SheetCollaborationEntity','_getAPIPrefixPath','_textBubble','deserializeRangeWithSheet','_decreaseWaiting','_onRefRangeChange','handleDeleteRangeMoveUp','[CollaborationEntity]','/universer-api/file/{fileID}/sign-url','_event$','_drawTextRange','responseType','pending','getDeserializedSheetBlock','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','&assign=','onSendChangeset','getUndoRedoMutationParamsCache','VIEW_MAIN','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','delete','image/jpeg','_unitID','xlink:href','save\x20fail\x20reason\x20is\x20','parseProtocolChangeset','max','startColumn','url(#off-line-single_clip0_910_343)','_clearScheduledTask','collabStatus.fetchMiss','string','socket\x20close','COLLAB_SUBMIT_CHANGESET_URL','_updateURLWithCurrentState','status$','useCallback','_disableEditing','_colorIndex','type','ALREADY_EXISTS','HEARTBEAT_TIMEOUT','serializeRangeWithSheet','UNIVER_SHEET','target','range','NOT_COLLAB','onlineStatus','SheetCollabCursorShape','conflict.title','2405934KoCDGi','url(#on-line-single_clip0_910_349)','_tryEnsureSocket','_transformSelections','[PendingState]:\x20received\x20rejection.','merge','location','ThresholdInterceptorFactory','div','Disposable','length','UUID','UNAUTHENTICATED','startTime','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_timeoutTimer','_createInitialStateImpl','_handleEvent','_transformUndoredo','bind','CollaborationEvent','AWAITING','onRemoteAck','_cursor','getFocusedUnit','requireSession','_onJoinRoomEvent','[CollaborationSessionService]:\x20socket\x20error','_collaborationSessionService','colorChannel1','IBeforeCloseService','override','_univerInstanceService','SNAPSHOT_HAS_BEEN_REMOVED','hasOwnProperty','baseRev','_labelPosition','off-line-single_clip0_910_343','getOffsetConfig','@univerjs-pro/license','getCollabCursors$','Subject','unknown','_initCommandExecutedListener','telemetry\x20info\x20is\x20not\x20initialized','Univer','univer-pro.collaboration-client-socket-service','forEach','_sheetSkeletonManagerService','YUUMI_UNABLE_LOAD_URL','COMMENT_UPDATE','_clearCollaborationTimeoutTimer','RECT','FileId','transformSelections','shareReplay','NodePositionConvertToRectRange','&to=','row','_updateStatus','_transformIMECache','DocCollaborationEntity','removeMember','online','_getSnapshotAPIPrefix','url','getOwnPropertySymbols','drawWith','apply','Tooltip','onMissingChangesets','copyFileMeta','onTransformIME','roomMembers','startsWith','registerBeforeClose','_collaborationTimeoutTimer','newCsEvent','OFFLINE','INGEST','skeleton','univer-online-status','_getDownloadEndpointURL','RECV','setShapeProps','_roomMembers$','_updateCollabCursors','NOT_FOUND','_initResize','create','0\x200\x2017\x2016','_resendWithTimeout','concat','INTERNAL_ERROR','updateOfflineData','isPermissionRej','getTime','COMPLETION_FINISHED','APPLY_NON_SEQUENTIAL_REVISION','setConfig','_tryReconnect','on-line-single_clip0_910_349','toggleOnline','getCurrentUser','_entityInit$','InsertSheetMutation','extend','setParam','_refreshCollabCursors','_listenToOnlineEvent','session.room-full','ICommandService','COLLAB_WEB_SOCKET_URL','getCurrentRevOfUnit','/universer-api/comb','_resendTimer','@univerjs/docs','_ensureSubject','_getSendChangesetTimeout','Rectangle','debounce','collabSubmitChangesetUrl','_renderManagerService','POST','[CollaborationUndoRedoService]','sheetID','unsubscribe','_transformUndoRedoStack','editing\x20status\x20changed\x20to','roomInfos','disableLocalCache','lineTo','JOIN','1em','sendChangesetTimeout','hovered','width','key','displayName','getRenderById','getCollabEntity','getAncestorScale','session.will-retry','_undoStacks','hide','_removeRoom','CHANGESET_ACK','_shapes','_socketMessageSubscription','/new_changes','Shape','getUniverSheetInstance','LIVESHARE_OPERATION','SetTextSelectionsOperation','UNIVER_DOC','WorkbookEditablePermission','_retryConnectingTimer','_send','_sessionStatus$','_showConflictNotification','_applyRemoteChangeset','fromEvent','_name','_scheduleTimestamp','takeUntil','_scheduleHeartbeat','parseChangesetToProtocol','retryConnectingInterval','fetchMiss','SetWorksheetActivateCommand','_anchorDot','addEventListener','SUBMIT_CHANGESET','_loadSheet','_collabCursorState$','_onRemoteRejected','replace','_clearUndo','_updateSubUnitFromURLParams','clear','collaboration_new_changeset','_scene','_clearLocalCache','/universer-api/stream/file/upload','now','0\x200\x2016\x2016','@univerjs/docs-ui','_userManagerService','post','_isPermissionRej','csAckEvent','getWorkbookSelections','has','textEncoder','subscribeEvent','SessionStatus','_init','560934EpZgCv','LIVESHARE_FETCH_OPERATIONS','_telemetryService','saveChangeset','current','none','result','_sessions','init','NodePositionConvertToCursor','_members','?size=','uni.network.url-service','revision','close$','getTypeOfUnitAdded$','_saveCache','_collabSessionService','catch','JOINING','send','getCollabEntity$','defs','getColor','Undefined','ERROR_IMAGE','IMessageService','_onRemoteRetry','addObjects','_throwTelemetryCollaborationNewChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','LOGIN_URL_KEY','setCurrentUser','CollaborationSocketService','MoveRangeCommandId','searchParams','text','LocaleService','_unitOnClients','_handleHeartbeatEvent','updatePermissionPoint','getRoom','state$','_removeClearOtherTimer','Optional','enableLocalCache','1890972Qtnzpj','interceptor','_config','_backgroundColor','_onLocalMutation','prototype','history','collab-text-range-','registerComponent','cmd','_localCacheService','sheets','collabWebSocketUrl','UNIVER_COLLABORATION_CLIENT_PLUGIN','then','signUrlServerUrl','every','_initRequestHeader','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','batchAllowed','onload','IRemoteInstanceService','_waitForHeartbeatResponse','collaboration.closeRoom','_candidateSocket','originalMeta','/fetchmissing?from=','CommandType','makeDirty','_onRemoteChangeset','_hovered','SYNCED','react','list','_cachedData','CONFLICT','image/gif','createIdentifier','rng','_rescheduleHeartbeat','UPDATE_PERMISSION_OBJ','IContextService','handleDeleteRangeMoveLeft','/object','setItem','onStateChange','_docTransformSelectionsService','useObservable','Injector','getVpScrollXYInfoByPosToVp','unitID','TEXT','_socket','x-univer-host','EffectRefRangId','CHANGESET_REJ','complete','conflict.content','_handleLeaveEvent','evenodd','collab-rect-range-','/collaborator','...','_executeRemoteChangeset','_changesetReqId','DocSelectionManagerService','transformChangesets','_context','#fff','setTimeout','moveTo','SnapshotServerOverHTTPService','PSEUDO_FETCH_MISSING_RESULT','_removeCollabCursors','url(#$1','SheetSkeletonManagerService','_initModules','transformUndoRedo','/block/','EmptyMutation','_refRangeService','editingUnit','_clearOtherTimers','selections','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','onStarting','RegularPolygon','ws://127.0.0.1:8000/universer-api/comb/connect','saveImage','urlChange$','_clearHeartbeatTimer','idSuffix','csShouldRetryEvent','_waitCount','patch','onTransformChange$','@univerjs/drawing','UNKNOWN_CODE','message$','session.collaboration-timeout','?url=','unitId','_assignedColors','mapTo','children','listRoles','_eventUnsubscribe','&source=','Workbook','CHANGESET_REVISION_CONFILICT','update','red300','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','createSocket','collaMsg','docStateChange$','_scheduleSaving','registerOnClose','_getAPIPrefix','currentSkeleton$','NEW_CHANGESETS','disposeUnit','_state$','setAlpha','_status$','_drawRectRange','ranges','AuthzIoHttpService','getUnitStatus$','open$','getSheetObject','getViewport','MergeInterceptorFactory','toLowerCase','FromArray','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','blue400','popstate','_registerRenderDependencies','CollaborationSessionService','setUndoRedoMutationParamsCache','_hideTimer','LEAVE','_themeService','[CollaborationSession]','ImageSourceType','_revisionService','c1Prime','pluginName','_onCursorUpdate','_telemetryInfo','_notificationService','transformMutationsWithChangeset','all','getMember','transformIMECache','RevisionService','code','Tools','_socket$','FETCH_MISS','closePath','_onConnectionOpen','_setupBeforeClosingHandler','_onUserLeave','10EkPJaq','purple300','ONLINE','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_onCombEvent','_scheduleClearOtherTimer','DesktopCollaborationStatusDisplayController','/-/object/list','LIVESHARE_REQUEST_HOST','onRendered','NO_OTHER_CLIENTS_EDITING','submit\x20changeset\x20error!','EXCHANGE_SIGN_URL_SERVER_URL_KEY','UniverInstanceType','IDLE','origin','setShowComponents','bottom','entries','_snapshotServerService','8869VoHWXC','mergeOverrideWithDependencies','Unknown\x20user','_replayCachedMutations','_roomMembers','CHANGESET_SHOULD_RETRY','TOO_MANY_REQUESTS','{fileID}','transformByState','VIEWPORT_KEY','switchMap','symbol','_clearTimeoutTimer','storage','JSONX','state','SnapshotService','LICENSE_DISTRO_REJECTED','_sendHeartbeat','isTransformChangesetsSuccess','1185066KWSQHS','userID','useRef','UPDATE_CURSOR','_createInitialState','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','exhaustSavingTask','function','_updateLocalCursor','_exhaustRemoteChangesetQueue','getValue','closeSession','LOCAL_CACHE_INTERVAL_KEY','error$','unit-cache-','\x20in\x20_schedule.','COLLAB_WEB_SOCKET_URL_KEY','_startDocCollabCursor','_unlockTransition','_onConnectionFailed','action','MemberService','beginPath','round','fill','show','CollaborationSession','clearInterval','awaiting','_collaborationPaused','pushState','updateMember','/-/object/-/batch_allowed','ImageIoService','onlyLocal','objectID','liveShareNewHost','refreshPermission','SHOULD_CLOSE_CONN','onPointerMove$','onRemoteRetry','eventID','IConfigService','getUnitId','conflict','stringify','UNIVER_SLIDE','getUnitType','toRgbString','DisposableCollection','COMPRESS_MUTATION_APPLY','concatMap','find','selection','off-line-single','_online','title','random','combineLatest','data','call','INotificationService','_getMergeRange','resolve','useDependency','_urlService','SEND_CHANGESET_TIMEOUT_KEY','_memberService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ThemeService','enableOfflineEditing','getSheetBySheetId','_onUserJoin','_sendingTimer','_resendTimeout','slice','rxjs/operators','_toggleOffline','IImageIoService','engine','20331PCuNSz','event$','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','gold400','isTransformMutationsWithChangesetSuccess','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','resourceIDs','permissionRejEvent','IUndoRedoService','getImageSourceCache','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_onOffline','InsertRowCommandId','_updateLocalCache','deserializeToCombResponse','_transformPreviousActiveRange','_onRecvEvent','sid','objects','failed\x20to\x20apply\x20missed\x20changesets!','params','UniverCollaborationClientPlugin','MUTATION','_cursorShapes','_initCloseConn','TEXT_RANGE_LAYER_INDEX','getMemberID','SheetsSelectionsService','_commandService','registerRenderModule','FAIL','LocalCacheService','onCommandExecuted','allowed','take','_initMergeInterceptor','toggleOffline','_pendingMutations','values','subunit','endColumn','from','_stopTelemetryCollaborationNewChangeset','changesets','UserManagerService','currentTheme$','whenReady','color','42MCrrwh','_replaceFileID','getActiveRange','_getSheetObject','hidden','_startTelemetryCollaborationNewChangeset','asObservable','enableAuthServer','getParam','2096ZSuKci','offline','AWAITING_WITH_PENDING','tag','COLLAB_SUBMIT_CHANGESET_URL_KEY','name','\x20to\x20','getOwnPropertyDescriptor','univer-pro.collaboration-client.single-active-unit-service','_drawAnchor','fetch_missing','Rect','onPointerLeave$','_awaitingChangeset','awaiting_with_pending','_startSheetCollabCursor','status','_lastPointer','_localStorageService','split','onTransformSelections','reconnect','sessionStatus','_saveTaskMap','className','YUUMI_URL_COL_OUT_OF_RANGE','snapshot','removeParam','compose','icon','subUnitId','currentColor','dispose','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','mapDocumentTypeToUniverType','LICENSE_EXPORT_SIZE_EXCEEDED','encodeURIComponent','_change$','liveShareOperation','error','_range','_updateState','RefRangeService','actions','path','LICENSE_MAX_UNITS_EXCEEDED','CollaborationController','ColorKit','restore','withCredentials','c2Prime','_socketReady','members','_state','getConfig','roomMembers$','number','InsertColCommandId','ENSURE_SNAPSHOT_EXECUTION','transformRemoteChangeset','newValue','_transformStack','_onMessage','connection\x20error','arc','attrs','confirm','_joinRoom','createInstance','loadOfflineData','_getSignURL','Vector2','_hover','createElement','m1Prime','RxDisposable','LICENSE_IMPORT_SIZE_EXCEEDED','file','src','_colorAssignService','fillStyle','_startCollaboration','SUCCUSS','getActiveSheet','_socketService','@univerjs/telemetry','_cursors','\x20-\x20','toString','_changesetSessionId','top','_getUndoStack','pipe','RemoveRowCommandId','_heartbeatTimer','_createHandler','next','_onFetchMissResult','WebURLService','getLatestCsReqIdBySid','collabStatus.synced','close','executeCommand','_getLoginPath','indexOf','font','HTTPRequest','_queuedRemoteChangesets','reduce','COLORS','/unit/','_getSaveTimeout','_type','_id','href','_onRemoteACK','image/jpg','runRefRangeMutations','UNRECOGNIZED','clipPath','isTransformMutationFailure','INVALID_ARGUMENT','_draw','_imageSourceCache','_shouldReportTelemetry','rgba(255,\x20255,\x20255,\x200.01)','DOC_RANGE_TYPE','handleMoveRange','rev','trim','_handleJoinEvent','serializeCombRequest','UNKNOWN_CMD','YUUMI_SUBSCRIPTION_NOT_FOUND','[FetchMissState]','_ws','_redoStacks','doc.mutation.rich-text-editing','ITelemetryService','_initStatusComponent','generateRandomId','sheetId','isEditing','getSheetBlock','resend','onMouseMove','setInterval','ImageUploadStatusType','debug','ICollaborationSocketService','reqId','column','unload','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','synced','DocIMEInputManagerService','_disabled','MSG_FOR_ERROR','_docTransformIMECacheService','saveSheetBlock','transformStack\x20failed!','_permissionService','mutations','APPLY_REJECT','dispose$','FETCH_MISSING','DeleteRangeMoveUpCommandId','unshift','HEARTBEAT_INTERVAL','_getRedoStack','IURLService','assign','onMissedChangesetFetched','fetchMissingChangesets','objectType','sessionStatus$','onTransformRemoteChangesetByIMECache','_session','onCommentUpdate','loginUrlKey','_initEventListeners','_snapshotService','USERS_LEAVE','_sender','HEARTBEAT','_scheduleCollaborationTimeoutTimer','_anchor','deepClone','UNIVER_UNKNOWN','save','onReady','getCurrentSelections','resize','addObject','min','[PendingState]:\x20received\x20acknowledgement.','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','auth.needGotoLoginAlert','push','getRangePointData','putCollaborators','Plugin','getInterceptPoints','onRemoteChangeset','IUniverInstanceService','_toggleOnline','[CollaborationSessionService]','_initStatusListener','toStringTag','IRenderManagerService','memberID','@univerjs/engine-formula','_getCtorByUniverType','parse','_docSkeletonManagerService','black','getItem','disposeWithMe','replaceState','_setupSubUnitSync','_uiPartsService','_substituteUndoStack','handleInsertRangeMoveRight','visibilitychange','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','map','downloadEndpointUrl','AUTHZ_URL_KEY','_sheetTransformSelectionsService','LIVESHARE_TERMINATE','HELLO','_substituteRedoStack','stopTime','[UniverCollaborationClientPlugin]','some','cursorInfo','setActiveRange','filter','_onConflict','_incrementRevisionNumber','UnitEmbedded','PERMISSION_REJ','HTTPService','getCurrent','toDisposable','CollaborationEntity','defineProperty'];_0xac00=function(){return _0x2c8b86;};return _0xac00();}var xt=Object[_0x3b57cd(0x44e)],wn=Object[_0x3b57cd(0x35f)],Nn=(_0x4383ae,_0x39430d,_0x226563)=>_0x39430d in _0x4383ae?xt(_0x4383ae,_0x39430d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x226563}):_0x4383ae[_0x39430d]=_0x226563,Mn=(_0x24003e,_0x27a6c0,_0x58a17d,_0x2dd83a)=>{const _0x5c3c81=_0x3b57cd;for(var _0x3cf6b2=_0x2dd83a>0x1?void 0x0:_0x2dd83a?wn(_0x27a6c0,_0x58a17d):_0x27a6c0,_0x38c2ca=_0x24003e[_0x5c3c81(0x54c)]-0x1,_0x15775a;_0x38c2ca>=0x0;_0x38c2ca--)(_0x15775a=_0x24003e[_0x38c2ca])&&(_0x3cf6b2=(_0x2dd83a?_0x15775a(_0x27a6c0,_0x58a17d,_0x3cf6b2):_0x15775a(_0x3cf6b2))||_0x3cf6b2);return _0x2dd83a&&_0x3cf6b2&&xt(_0x27a6c0,_0x58a17d,_0x3cf6b2),_0x3cf6b2;},ge=(_0x2b2380,_0x6c8d2c)=>(_0x392c81,_0x50b116)=>_0x6c8d2c(_0x392c81,_0x50b116,_0x2b2380),An=(_0x5595ea,_0x2911f6,_0x20dbaa)=>Nn(_0x5595ea,_0x2911f6+'',_0x20dbaa);const Ln=_0x3b57cd(0x20f);exports[_0x3b57cd(0x334)]=class extends a[_0x3b57cd(0x421)]{constructor(_0x1edb53=os,_0x2cc9bd,_0x1fe720,_0x50116d,_0x655df4){const _0x285207=_0x3b57cd;super(),this[_0x285207(0x204)]=_0x1edb53,this[_0x285207(0x45c)]=_0x2cc9bd,this['_renderManagerService']=_0x1fe720,this['_injector']=_0x50116d,this[_0x285207(0x490)]=_0x655df4;const {..._0x58cab1}=this[_0x285207(0x204)];this[_0x285207(0x490)][_0x285207(0x172)]($,_0x58cab1);}[_0x3b57cd(0x257)](){const _0x2ff300=_0x3b57cd;this[_0x2ff300(0x45a)](),a['touchDependencies'](this[_0x2ff300(0x486)],[[oe],[exports[_0x2ff300(0x4a8)]],[Te]]);}[_0x3b57cd(0x416)](){const _0x15be79=_0x3b57cd;a['touchDependencies'](this[_0x15be79(0x486)],[[Ce]]);}[_0x3b57cd(0x2b0)](){const _0x9a0fe6=_0x3b57cd;this[_0x9a0fe6(0x28c)]();}['_registerDependencies'](){const _0x5aafb3=_0x3b57cd;var _0x22f782,_0x1cf9db,_0x55b0ef,_0x16fe05;this[_0x5aafb3(0x486)][_0x5aafb3(0x1cf)](a[_0x5aafb3(0x327)])&&this[_0x5aafb3(0x45c)][_0x5aafb3(0x37f)](_0x5aafb3(0x441),_0x5aafb3(0x289));let _0x7746a4=[[a[_0x5aafb3(0x327)],{'useClass':We}],[exports[_0x5aafb3(0x28d)]],[ze],[U[_0x5aafb3(0x44a)]],[Ze,{'useClass':Ht}],[exports[_0x5aafb3(0x2e4)]],[exports[_0x5aafb3(0x33e)]],[U[_0x5aafb3(0x483)]],[Ie],[pe],[fe],[Xe],[Ee],[be],[Ke],[Te],[Ye,{'useClass':(_0x1cf9db=(_0x22f782=this[_0x5aafb3(0x204)])==null?void 0x0:_0x22f782[_0x5aafb3(0x509)])!=null?_0x1cf9db:exports[_0x5aafb3(0x1f5)]}],[U['IHTTPImplementation'],{'useClass':U['XHRHTTPImplementation']}],[_[_0x5aafb3(0x4aa)],{'useClass':exports[_0x5aafb3(0x249)]}],[a['IAuthzIoService'],{'useClass':exports[_0x5aafb3(0x281)]}],[j[_0x5aafb3(0x31d)],{'useClass':exports[_0x5aafb3(0x2f0)]}],[exports[_0x5aafb3(0x386)]],[exports[_0x5aafb3(0x4a8)]],[exports['DesktopCollaborationStatusDisplayController']],[Ce],[oe]];(_0x55b0ef=this[_0x5aafb3(0x204)])!=null&&_0x55b0ef[_0x5aafb3(0x49a)]&&_0x7746a4[_0x5aafb3(0x41e)]([Re,{'useClass':Hs}]),_0x7746a4=a[_0x5aafb3(0x2bc)](_0x7746a4,(_0x16fe05=this[_0x5aafb3(0x204)])==null?void 0x0:_0x16fe05[_0x5aafb3(0x561)]),_0x7746a4['forEach'](_0x235fb6=>this[_0x5aafb3(0x486)][_0x5aafb3(0x477)](_0x235fb6)),this[_0x5aafb3(0x24e)]();}['_registerRenderDependencies'](){const _0x2ee828=_0x3b57cd;this['disposeWithMe'](this['_renderManagerService'][_0x2ee828(0x33c)](a[_0x2ee828(0x2b4)]['UNIVER_DOC'],[Be])),this[_0x2ee828(0x431)](this['_renderManagerService'][_0x2ee828(0x33c)](a[_0x2ee828(0x2b4)]['UNIVER_SHEET'],[Ve]));}[_0x3b57cd(0x24e)](){const _0x5e01ac=_0x3b57cd;var _0x184b0c,_0x345f58;this[_0x5e01ac(0x486)]['get'](U[_0x5e01ac(0x44a)])[_0x5e01ac(0x499)]({'priority':0x14,'interceptor':U[_0x5e01ac(0x549)]({'maxParallel':0x6})}),this[_0x5e01ac(0x486)][_0x5e01ac(0x4e6)](be),(_0x184b0c=this[_0x5e01ac(0x204)])!=null&&_0x184b0c[_0x5e01ac(0x315)]||this[_0x5e01ac(0x486)][_0x5e01ac(0x4e6)](exports[_0x5e01ac(0x33e)])[_0x5e01ac(0x191)](),(_0x345f58=this[_0x5e01ac(0x204)])!=null&&_0x345f58[_0x5e01ac(0x356)]&&this['_injector'][_0x5e01ac(0x4e6)](Ee),this[_0x5e01ac(0x486)]['get'](exports[_0x5e01ac(0x386)]),this[_0x5e01ac(0x486)][_0x5e01ac(0x1cf)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x5e01ac(0x486)][_0x5e01ac(0x4e6)](exports[_0x5e01ac(0x2ad)]);}},An(exports[_0x3b57cd(0x334)],_0x3b57cd(0x296),Ln),exports['UniverCollaborationClientPlugin']=Mn([a[_0x3b57cd(0x498)](_[_0x3b57cd(0x4b8)]),ge(0x1,a['ILogService']),ge(0x2,O[_0x3b57cd(0x429)]),ge(0x3,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),ge(0x4,a[_0x3b57cd(0x2f9)])],exports['UniverCollaborationClientPlugin']),exports[_0x3b57cd(0x43b)]=jt,exports[_0x3b57cd(0x35c)]=pt,exports[_0x3b57cd(0x2df)]=vt,exports['CollaborationStatus']=D,exports['CollaborationStatusDisplay']=$t,exports['CommentService']=Ke,exports[_0x3b57cd(0x4ae)]=mt,exports['HEARTBEAT_TIMEOUT_KEY']=Fe,exports[_0x3b57cd(0x3ed)]=Ye,exports[_0x3b57cd(0x402)]=Ze,exports[_0x3b57cd(0x2db)]=It,exports[_0x3b57cd(0x1f3)]=Ct,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=ft,exports[_0x3b57cd(0x311)]=Jt,exports['SNAPSHOT_SERVER_URL_KEY']=dt,exports[_0x3b57cd(0x4ab)]=St,exports[_0x3b57cd(0x1d2)]=x,exports[_0x3b57cd(0x540)]=wt,exports[_0x3b57cd(0x3ba)]=Ht,exports[_0x3b57cd(0x32d)]=Tt,exports[_0x3b57cd(0x3db)]=Rt;
1
+ 'use strict';const _0x4aaaf0=_0x47ba;(function(_0xb25288,_0x4803be){const _0x3dde52=_0x47ba,_0x277f74=_0xb25288();while(!![]){try{const _0x3701b3=-parseInt(_0x3dde52(0x51c))/0x1*(-parseInt(_0x3dde52(0x57b))/0x2)+parseInt(_0x3dde52(0x40a))/0x3*(parseInt(_0x3dde52(0x2ea))/0x4)+-parseInt(_0x3dde52(0x3fe))/0x5*(-parseInt(_0x3dde52(0x427))/0x6)+-parseInt(_0x3dde52(0x48b))/0x7+parseInt(_0x3dde52(0x35c))/0x8*(parseInt(_0x3dde52(0x518))/0x9)+parseInt(_0x3dde52(0x2dd))/0xa*(-parseInt(_0x3dde52(0x39e))/0xb)+-parseInt(_0x3dde52(0x42f))/0xc*(-parseInt(_0x3dde52(0x29f))/0xd);if(_0x3701b3===_0x4803be)break;else _0x277f74['push'](_0x277f74['shift']());}catch(_0x5b3e6d){_0x277f74['push'](_0x277f74['shift']());}}}(_0x98ab,0xb7bec));var Gt=Object[_0x4aaaf0(0x562)],Yt=(_0x1704e6,_0xb2b0d4,_0x583fa4)=>_0xb2b0d4 in _0x1704e6?Gt(_0x1704e6,_0xb2b0d4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x583fa4}):_0x1704e6[_0xb2b0d4]=_0x583fa4,u=(_0x350e47,_0xca1650,_0x4f030a)=>Yt(_0x350e47,typeof _0xca1650!='symbol'?_0xca1650+'':_0xca1650,_0x4f030a);Object[_0x4aaaf0(0x562)](exports,Symbol[_0x4aaaf0(0x39a)],{'value':_0x4aaaf0(0x598)});const a=require(_0x4aaaf0(0x5ba)),v=require(_0x4aaaf0(0x1b5)),E=require(_0x4aaaf0(0x274)),J=require(_0x4aaaf0(0x5b2)),A=require(_0x4aaaf0(0x260)),U=require(_0x4aaaf0(0x2d6)),_=require(_0x4aaaf0(0x3be)),Kt=require(_0x4aaaf0(0x1b3)),N=require('@univerjs/docs-ui'),C=require('@univerjs/sheets'),O=require('@univerjs/engine-render'),ne=require(_0x4aaaf0(0x3e5)),j=require('@univerjs/drawing'),Qe=require(_0x4aaaf0(0x3fd)),ie=require(_0x4aaaf0(0x307)),y=require('react'),Xt=require('@univerjs/rpc'),qt=require(_0x4aaaf0(0x4cf)),dt=_0x4aaaf0(0x2bf),zt=_0x4aaaf0(0x4fd),St=_0x4aaaf0(0x30c),Jt=_0x4aaaf0(0x2f6),Zt=0x7d0,vt=_0x4aaaf0(0x308),Qt='ws://127.0.0.1:8000/universer-api/comb/connect',mt=_0x4aaaf0(0x316),es=0x7530,Fe=_0x4aaaf0(0x366),gt=0x4e20,ts=0x4e20,ft=_0x4aaaf0(0x4a7),ss=0x3,It=_0x4aaaf0(0x424),is=0x3e8,pt=_0x4aaaf0(0x2e5),ns=_0x4aaaf0(0x364),Ct=_0x4aaaf0(0x594),rs=_0x4aaaf0(0x5de);var Et=(_0x1df6b4=>(_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x242)]=0x0]=_0x4aaaf0(0x242),_0x1df6b4[_0x1df6b4['OK']=0x1]='OK',_0x1df6b4[_0x1df6b4['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x549)]=0x3]=_0x4aaaf0(0x549),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x297)]=0x4]=_0x4aaaf0(0x297),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x393)]=0x5]=_0x4aaaf0(0x393),_0x1df6b4[_0x1df6b4['ALREADY_EXISTS']=0x6]=_0x4aaaf0(0x1f3),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1d0)]=0x7]=_0x4aaaf0(0x1d0),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x527)]=0x8]=_0x4aaaf0(0x527),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x443)]=0x9]=_0x4aaaf0(0x443),_0x1df6b4[_0x1df6b4['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4aaaf0(0x21d),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1f5)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1dd)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x440)]=0x1773]=_0x4aaaf0(0x440),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3e8)]=0x1b59]=_0x4aaaf0(0x3e8),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x555)]=0x1b5a]=_0x4aaaf0(0x555),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3a7)]=0x1b5b]=_0x4aaaf0(0x3a7),_0x1df6b4[_0x1df6b4['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4aaaf0(0x4fb),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x287)]=0x1b5d]=_0x4aaaf0(0x287),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x266)]=0x1f41]=_0x4aaaf0(0x266),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x5ab)]=0x2329]=_0x4aaaf0(0x5ab),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x4eb)]=0x232a]=_0x4aaaf0(0x4eb),_0x1df6b4[_0x1df6b4['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4aaaf0(0x1e3),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3b1)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x503)]=0x232d]=_0x4aaaf0(0x503),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x57c)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1ca)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x530)]=0x2713]=_0x4aaaf0(0x530),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3ad)]=0x2714]=_0x4aaaf0(0x3ad),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x1df6b4))(Et||{}),H=(_0x55f0e2=>(_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x20e)]=0x0]=_0x4aaaf0(0x20e),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x238)]=0x1]=_0x4aaaf0(0x238),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x4d0)]=0x2]=_0x4aaaf0(0x4d0),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x592)]=0x3]=_0x4aaaf0(0x592),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x3e3)]=0x4]=_0x4aaaf0(0x3e3),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x55f0e2))(H||{}),b=(_0x13d56a=>(_0x13d56a[_0x13d56a[_0x4aaaf0(0x541)]=0x0]='UNKNOWN_CMD',_0x13d56a[_0x13d56a[_0x4aaaf0(0x437)]=0x1]=_0x4aaaf0(0x437),_0x13d56a[_0x13d56a[_0x4aaaf0(0x29c)]=0x2]=_0x4aaaf0(0x29c),_0x13d56a[_0x13d56a[_0x4aaaf0(0x523)]=0x3]=_0x4aaaf0(0x523),_0x13d56a[_0x13d56a[_0x4aaaf0(0x20c)]=0x4]=_0x4aaaf0(0x20c),_0x13d56a[_0x13d56a[_0x4aaaf0(0x494)]=0x5]=_0x4aaaf0(0x494),_0x13d56a[_0x13d56a[_0x4aaaf0(0x441)]=0x6]=_0x4aaaf0(0x441),_0x13d56a[_0x13d56a[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x13d56a))(b||{}),Ge=(_0x1b1968=>(_0x1b1968[_0x1b1968[_0x4aaaf0(0x403)]=0x0]=_0x4aaaf0(0x403),_0x1b1968[_0x1b1968['OK']=0x1]='OK',_0x1b1968[_0x1b1968[_0x4aaaf0(0x354)]=0x2]=_0x4aaaf0(0x354),_0x1b1968[_0x1b1968[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x1b1968))(Ge||{}),bt=(_0x5c0751=>(_0x5c0751[_0x5c0751['Undefined']=0x0]=_0x4aaaf0(0x347),_0x5c0751[_0x5c0751[_0x4aaaf0(0x374)]=0x1]=_0x4aaaf0(0x374),_0x5c0751[_0x5c0751['HttpExport']=0x2]=_0x4aaaf0(0x38d),_0x5c0751[_0x5c0751[_0x4aaaf0(0x361)]=0x3]=_0x4aaaf0(0x361),_0x5c0751[_0x5c0751[_0x4aaaf0(0x4bf)]=0x4]=_0x4aaaf0(0x4bf),_0x5c0751[_0x5c0751[_0x4aaaf0(0x417)]=-0x1]='UNRECOGNIZED',_0x5c0751))(bt||{});const $=_0x4aaaf0(0x208),os={};function Tt(_0x49584d){const _0x4fd126=_0x4aaaf0;var _0x5460ce,_0x3b37ed,_0x28b0d8,_0x46ff4e,_0x477598;const _0x279b95=_0x49584d[_0x4fd126(0x2cf)],_0x5217f5=JSON[_0x4fd126(0x249)](_0x279b95);switch(_0x5217f5['cmd']){case b[_0x4fd126(0x494)]:case b['HELLO']:{const _0x34c5fe=_0x5217f5['infoRsp'];return{..._0x5217f5,'data':_0x34c5fe,'cmd':_0x5217f5[_0x4fd126(0x451)]};}case b[_0x4fd126(0x29c)]:{const _0x50eb13=_0x5217f5[_0x4fd126(0x56d)];return{..._0x5217f5,'data':_0x50eb13,'cmd':_0x5217f5['cmd']};}case b['RECV']:{const _0x477b3f=_0x5217f5[_0x4fd126(0x26f)];switch(_0x477b3f[_0x4fd126(0x405)]){case _[_0x4fd126(0x2bb)][_0x4fd126(0x553)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x5460ce=_0x477b3f[_0x4fd126(0x2df)])==null?void 0x0:_0x5460ce['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x540)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x3b37ed=_0x477b3f[_0x4fd126(0x410)])==null?void 0x0:_0x3b37ed['cs']},'cmd':_0x5217f5['cmd']};case _[_0x4fd126(0x2bb)][_0x4fd126(0x258)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x28b0d8=_0x477b3f[_0x4fd126(0x232)])==null?void 0x0:_0x28b0d8['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent']['CHANGESET_REJ']:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x46ff4e=_0x477b3f[_0x4fd126(0x5d6)])==null?void 0x0:_0x46ff4e['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x5d7)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x477598=_0x477b3f['csShouldRetryEvent'])==null?void 0x0:_0x477598['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x1d5)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x5ae)]},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent'][_0x4fd126(0x475)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x2a2)]},'cmd':_0x5217f5['cmd']};case _['CollaborationEvent'][_0x4fd126(0x3b0)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['leaveEvent']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent'][_0x4fd126(0x1dc)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x49e)]},'cmd':_0x5217f5['cmd']};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x4fd126(0x2bb)]['LIVESHARE_OPERATION']:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['liveShareOperation']},'cmd':_0x5217f5['cmd']};case _['CollaborationEvent'][_0x4fd126(0x5e1)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['liveShareNewHost']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x5217f5,'data':_0x477b3f,'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x556)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x35b)]},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)]['UPDATE_PERMISSION_OBJ']:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x3a4)]},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x5d2)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['shouldCloseConn']},'cmd':_0x5217f5['cmd']};default:return _0x5217f5;}}default:return _0x5217f5;}}function Rt(_0x3e5f33){const _0x15ebb8=_0x4aaaf0;switch(_0x3e5f33[_0x15ebb8(0x451)]){case b[_0x15ebb8(0x494)]:case b['HELLO']:return JSON[_0x15ebb8(0x24c)]({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33[_0x15ebb8(0x2ab)]});case b['INGEST']:{let _0x42f6a1;switch(_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x405)]){case _['CollaborationEvent']['UPDATE_CURSOR']:{_0x42f6a1={'eventID':_['CollaborationEvent'][_0x15ebb8(0x1d5)],'updateCursorEvent':_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x2cf)]};break;}case _['CollaborationEvent'][_0x15ebb8(0x3b0)]:{_0x42f6a1={'eventID':_['CollaborationEvent'][_0x15ebb8(0x3b0)],'leaveEvent':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)][_0x15ebb8(0x475)],'joinEvent':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)][_0x15ebb8(0x1dc)]:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)][_0x15ebb8(0x1dc)],'liveShareNewHost':_0x3e5f33['data']['data']};break;}case _[_0x15ebb8(0x2bb)][_0x15ebb8(0x5cd)]:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)][_0x15ebb8(0x5e1)]:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)]['LIVESHARE_REQUEST_HOST']:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)]['LIVESHARE_FETCH_OPERATIONS']:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)][_0x15ebb8(0x3c0)]};break;}default:_0x42f6a1={'eventID':_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x405)]};}return JSON[_0x15ebb8(0x24c)]({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33[_0x15ebb8(0x2ab)],'collaMsg':_0x42f6a1});}case b[_0x15ebb8(0x29c)]:return JSON['stringify']({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33[_0x15ebb8(0x2ab)],'joinReq':_0x3e5f33[_0x15ebb8(0x2cf)]});case b[_0x15ebb8(0x523)]:return JSON[_0x15ebb8(0x24c)]({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33['routeKey'],'leaveReq':_0x3e5f33[_0x15ebb8(0x2cf)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var as=Object[_0x4aaaf0(0x562)],cs=Object[_0x4aaaf0(0x28b)],ls=(_0x5360f0,_0x47c9b8,_0x1f0eae,_0x5c3766)=>{const _0x1d7857=_0x4aaaf0;for(var _0x27912f=_0x5c3766>0x1?void 0x0:_0x5c3766?cs(_0x47c9b8,_0x1f0eae):_0x47c9b8,_0x6bc331=_0x5360f0[_0x1d7857(0x31a)]-0x1,_0x2a3c81;_0x6bc331>=0x0;_0x6bc331--)(_0x2a3c81=_0x5360f0[_0x6bc331])&&(_0x27912f=(_0x5c3766?_0x2a3c81(_0x47c9b8,_0x1f0eae,_0x27912f):_0x2a3c81(_0x27912f))||_0x27912f);return _0x5c3766&&_0x27912f&&as(_0x47c9b8,_0x1f0eae,_0x27912f),_0x27912f;},ae=(_0x46566d,_0x537e2c)=>(_0x3ca1c2,_0x25b9c3)=>_0x537e2c(_0x3ca1c2,_0x25b9c3,_0x46566d);const Ye=a[_0x4aaaf0(0x294)](_0x4aaaf0(0x1eb));function hs(_0x3532ab,_0x5b73a8,_0x192542){const _0x15875b=_0x4aaaf0;return _0x3532ab+'/'+_0x5b73a8+_0x15875b(0x406)+_0x192542+_0x15875b(0x4c7);}exports['CollaborationSocketService']=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x1bc63e,_0x322291,_0x4b52e3,_0x333e03,_0xec2bbd){const _0x3cb7f9=_0x4aaaf0;super(),this[_0x3cb7f9(0x40e)]=_0x1bc63e,this[_0x3cb7f9(0x302)]=_0x322291,this[_0x3cb7f9(0x428)]=_0x4b52e3,this['_logService']=_0x333e03,this[_0x3cb7f9(0x33b)]=_0xec2bbd;}['createSocket'](_0x4cf83c){const _0x3cb098=_0x4aaaf0,_0x457fca=this['_ws'][_0x3cb098(0x291)](_0x4cf83c);if(!_0x457fca)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3be332=new a[(_0x3cb098(0x5db))](),_0x357fcf=new v['Subject']();_0x3be332[_0x3cb098(0x24d)](_0x457fca[_0x3cb098(0x241)][_0x3cb098(0x236)](_0x6a5128=>_0x357fcf['next'](_0x6a5128))),_0x3be332[_0x3cb098(0x24d)](a[_0x3cb098(0x2c6)](()=>_0x357fcf[_0x3cb098(0x489)]()));const _0x106c4d=new v[(_0x3cb098(0x1d4))]();_0x3be332[_0x3cb098(0x24d)](_0x457fca[_0x3cb098(0x226)][_0x3cb098(0x236)](_0x1e4926=>_0x106c4d[_0x3cb098(0x3b3)](_0x1e4926))),_0x3be332[_0x3cb098(0x24d)](a[_0x3cb098(0x2c6)](()=>_0x106c4d['complete']()));const _0x2b064e=new v['Subject']();_0x3be332[_0x3cb098(0x24d)](_0x457fca[_0x3cb098(0x499)]['subscribe'](_0x56be2f=>{const _0x3e0bc1=_0x3cb098,_0x37790c=Tt(_0x56be2f);_0x2b064e[_0x3e0bc1(0x3b3)](_0x37790c);})),_0x3be332['add'](a[_0x3cb098(0x2c6)](()=>_0x2b064e['complete']()));let _0x3072e5;const _0x572cdd=()=>{const _0x3a53f=_0x3cb098;_0x106c4d['next'](new Event('connection\x20error')),_0x357fcf[_0x3a53f(0x3b3)](new CloseEvent(_0x3a53f(0x471))),_0x3072e5['close']();};return _0x3072e5={'memberID':'','close$':_0x357fcf[_0x3cb098(0x2a7)](),'error$':_0x106c4d[_0x3cb098(0x2a7)](),'open$':_0x457fca[_0x3cb098(0x283)],'message$':_0x2b064e['asObservable'](),'send':_0x15ba39=>{const _0x554c4f=_0x3cb098;if(_0x15ba39[_0x554c4f(0x451)]===b[_0x554c4f(0x20c)]){if(_0x15ba39[_0x554c4f(0x2cf)][_0x554c4f(0x405)]===_[_0x554c4f(0x2bb)]['SUBMIT_CHANGESET']){this[_0x554c4f(0x370)](_0x3072e5,_0x15ba39['data'])[_0x554c4f(0x483)](_0x236800=>{const _0x13fd0c=_0x554c4f;this[_0x13fd0c(0x360)][_0x13fd0c(0x574)](_0x236800),_0x572cdd();});return;}if(_0x15ba39[_0x554c4f(0x2cf)][_0x554c4f(0x405)]===_[_0x554c4f(0x2bb)][_0x554c4f(0x3c6)]){const _0x4868cd=_0x15ba39[_0x554c4f(0x2cf)];this['_fetchMissChangesets'](_0x4868cd)[_0x554c4f(0x254)](_0x4fb2b2=>{const _0x1f2ff8=_0x554c4f;_0x2b064e[_0x1f2ff8(0x3b3)]({'cmd':b['RECV'],'code':Ge['OK'],'routeKey':_0x4868cd[_0x1f2ff8(0x2cf)]['unitID'],'routeType':'','data':{'eventID':_[_0x1f2ff8(0x2bb)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x4fb2b2}}});})[_0x554c4f(0x483)](_0x5b0b04=>{const _0x5d3915=_0x554c4f;this[_0x5d3915(0x360)]['error'](_0x5b0b04),_0x572cdd();});return;}}_0x457fca[_0x554c4f(0x306)](Rt(_0x15ba39));},'close':()=>{const _0x3b88a2=_0x3cb098;_0x457fca[_0x3b88a2(0x344)](),_0x3be332[_0x3b88a2(0x342)]();}},_0x3072e5;}async[_0x4aaaf0(0x370)](_0x36d6f0,_0x20c142){const _0x1e068a=_0x4aaaf0;var _0x18e4ad,_0x4c61cb;const {unitType:_0x246e09,unitID:_0x331b21,changeset:_0x5302e8}=_0x20c142[_0x1e068a(0x2cf)],_0x53cab7={'unitID':_0x331b21,'memberID':_0x36d6f0[_0x1e068a(0x55c)],'type':_0x246e09,'changeset':_[_0x1e068a(0x231)](_0x5302e8)},_0x26df46=this[_0x1e068a(0x428)][_0x1e068a(0x50b)](pt),_0x2daa96=this[_0x1e068a(0x428)][_0x1e068a(0x50b)]($),_0xbd644e=hs((_0x4c61cb=(_0x18e4ad=_0x2daa96==null?void 0x0:_0x2daa96[_0x1e068a(0x1fa)])!=null?_0x18e4ad:_0x26df46)!=null?_0x4c61cb:ns,_0x246e09,_0x331b21);try{await this[_0x1e068a(0x40e)][_0x1e068a(0x2f3)](_0xbd644e,{'body':_0x53cab7});}catch(_0x3befeb){throw this['_logService']['error'](_0x1e068a(0x25a),_0x1e068a(0x29e)),_0x3befeb;}}async[_0x4aaaf0(0x329)](_0x19ceb6){const _0x44ed16=_0x4aaaf0,{unitID:_0x4201c5,from:_0x55ac54,to:_0x3abcde,unitType:_0x4ebc59}=_0x19ceb6[_0x44ed16(0x2cf)];return(await this[_0x44ed16(0x33b)][_0x44ed16(0x3aa)]({'metadata':void 0x0},{'unitID':_0x4201c5,'type':_0x4ebc59,'from':_0x55ac54,'to':_0x3abcde}))[_0x44ed16(0x2b3)];}},exports['CollaborationSocketService']=ls([ae(0x0,a[_0x4aaaf0(0x1b2)](U['HTTPService'])),ae(0x1,a[_0x4aaaf0(0x1b2)](U[_0x4aaaf0(0x3d6)])),ae(0x2,a[_0x4aaaf0(0x565)]),ae(0x3,a[_0x4aaaf0(0x1d1)]),ae(0x4,_[_0x4aaaf0(0x47d)])],exports[_0x4aaaf0(0x4b4)]);const _s='collaboration_new_changeset';function us(_0x1b96b6){const _0xf55e8d=_0x4aaaf0;return JSON['stringify'](_0x1b96b6)[_0xf55e8d(0x31a)];}class Ke{constructor(){const _0xaaada6=_0x4aaaf0;u(this,_0xaaada6(0x39b),new v[(_0xaaada6(0x1d4))]()),u(this,_0xaaada6(0x40d),this['_commentUpdate$'][_0xaaada6(0x2a7)]());}[_0x4aaaf0(0x209)](_0x37bea9){const _0x5156e2=_0x4aaaf0;this[_0x5156e2(0x39b)][_0x5156e2(0x3b3)](_0x37bea9);}}function _0x47ba(_0x3a3c11,_0x5d5e13){const _0x98ab6b=_0x98ab();return _0x47ba=function(_0x47ba63,_0x521122){_0x47ba63=_0x47ba63-0x1ac;let _0x3bb75b=_0x98ab6b[_0x47ba63];return _0x3bb75b;},_0x47ba(_0x3a3c11,_0x5d5e13);}var ds=Object[_0x4aaaf0(0x562)],Ss=Object[_0x4aaaf0(0x28b)],vs=(_0x5363e1,_0xcd45bf,_0xa6f878,_0x525c20)=>{const _0x535012=_0x4aaaf0;for(var _0x39245b=_0x525c20>0x1?void 0x0:_0x525c20?Ss(_0xcd45bf,_0xa6f878):_0xcd45bf,_0x40258c=_0x5363e1[_0x535012(0x31a)]-0x1,_0x13d34c;_0x40258c>=0x0;_0x40258c--)(_0x13d34c=_0x5363e1[_0x40258c])&&(_0x39245b=(_0x525c20?_0x13d34c(_0xcd45bf,_0xa6f878,_0x39245b):_0x13d34c(_0x39245b))||_0x39245b);return _0x525c20&&_0x39245b&&ds(_0xcd45bf,_0xa6f878,_0x39245b),_0x39245b;},et=(_0x5d34d6,_0x3e952b)=>(_0x2244bb,_0x58fff3)=>_0x3e952b(_0x2244bb,_0x58fff3,_0x5d34d6);exports[_0x4aaaf0(0x50e)]=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x306721,_0x54b61e){const _0x3916c5=_0x4aaaf0;super(),u(this,_0x3916c5(0x2bd),new Map()),(this['_univerInstanceService']=_0x306721,this[_0x3916c5(0x4ee)]=_0x54b61e,this[_0x3916c5(0x367)](a[_0x3916c5(0x2c6)](v[_0x3916c5(0x398)](this[_0x3916c5(0x46d)][_0x3916c5(0x2d5)](a['UniverInstanceType'][_0x3916c5(0x4d0)])[_0x3916c5(0x2b0)](E[_0x3916c5(0x263)](_0x5ce302=>_0x5ce302[_0x3916c5(0x3e2)]())),this[_0x3916c5(0x46d)]['getTypeOfUnitDisposed$'](a[_0x3916c5(0x419)][_0x3916c5(0x238)])[_0x3916c5(0x2b0)](E[_0x3916c5(0x263)](_0x4b63a6=>_0x4b63a6[_0x3916c5(0x3e2)]())),this[_0x3916c5(0x46d)][_0x3916c5(0x2d5)](a[_0x3916c5(0x419)][_0x3916c5(0x592)])[_0x3916c5(0x2b0)](E[_0x3916c5(0x263)](_0x478fbc=>_0x478fbc[_0x3916c5(0x3e2)]())))['subscribe'](_0x5f5b23=>this[_0x3916c5(0x35f)](_0x5f5b23)))));}['setCurrentUser'](_0x5bb5c1){const _0x505390=_0x4aaaf0;this[_0x505390(0x4ee)]['setCurrentUser'](_0x5bb5c1);}['getCurrentUser'](){const _0x406431=_0x4aaaf0;return this['_userManagerService'][_0x406431(0x5d5)]();}[_0x4aaaf0(0x2b4)](_0x109a3b,_0x304d99){const _0x325c1b=_0x4aaaf0;let _0x3fb71b=this[_0x325c1b(0x2bd)]['get'](_0x109a3b);_0x3fb71b||(_0x3fb71b=new ms(),this[_0x325c1b(0x2bd)][_0x325c1b(0x4af)](_0x109a3b,_0x3fb71b)),_0x3fb71b[_0x325c1b(0x2b4)](_0x304d99);}['removeMember'](_0x2f96ef,_0x4c6669){const _0x2730ae=_0x4aaaf0,_0x14f0c3=this[_0x2730ae(0x2bd)][_0x2730ae(0x439)](_0x2f96ef);_0x14f0c3&&_0x14f0c3[_0x2730ae(0x407)](_0x4c6669);}['getRoom'](_0x550dcb){const _0x1a6206=_0x4aaaf0;return this[_0x1a6206(0x2bd)]['get'](_0x550dcb);}[_0x4aaaf0(0x3d1)](_0x4427d3,_0x300b76){const _0x550592=_0x4aaaf0,_0x29d939=this[_0x550592(0x2bd)][_0x550592(0x439)](_0x4427d3);if(_0x29d939)return _0x29d939[_0x550592(0x3d1)](_0x300b76);}[_0x4aaaf0(0x35f)](_0x28c3a2){const _0x211eeb=_0x4aaaf0,_0x4d6fcc=this[_0x211eeb(0x2bd)][_0x211eeb(0x439)](_0x28c3a2);_0x4d6fcc&&(_0x4d6fcc[_0x211eeb(0x342)](),this[_0x211eeb(0x2bd)][_0x211eeb(0x276)](_0x28c3a2));}[_0x4aaaf0(0x342)](){const _0x26a94b=_0x4aaaf0;this[_0x26a94b(0x2bd)]['forEach'](_0x11f114=>_0x11f114[_0x26a94b(0x342)]()),this[_0x26a94b(0x2bd)][_0x26a94b(0x3e4)]();}},exports[_0x4aaaf0(0x50e)]=vs([et(0x0,a[_0x4aaaf0(0x33f)]),et(0x1,a['Inject'](a[_0x4aaaf0(0x2d1)]))],exports[_0x4aaaf0(0x50e)]);class ms extends a[_0x4aaaf0(0x3ef)]{constructor(){const _0x32263f=_0x4aaaf0;super(...arguments),u(this,_0x32263f(0x202),new Map());}[_0x4aaaf0(0x342)](){const _0x58c06d=_0x4aaaf0;this[_0x58c06d(0x202)][_0x58c06d(0x3e4)]();}[_0x4aaaf0(0x2b4)](_0x4dc14){const _0x3c5ec6=_0x4aaaf0;this[_0x3c5ec6(0x202)][_0x3c5ec6(0x4af)](_0x4dc14[_0x3c5ec6(0x55c)],_0x4dc14);}[_0x4aaaf0(0x407)](_0x3b2c11){const _0x50a90e=_0x4aaaf0;this['_members'][_0x50a90e(0x276)](_0x3b2c11);}[_0x4aaaf0(0x3d1)](_0x2cf7a2){const _0x4cf7ac=_0x4aaaf0;return this['_members'][_0x4cf7ac(0x439)](_0x2cf7a2);}[_0x4aaaf0(0x2b2)](){const _0x16d202=_0x4aaaf0;return Array[_0x16d202(0x36c)](this[_0x16d202(0x202)][_0x16d202(0x4ca)]());}}var gs=Object[_0x4aaaf0(0x562)],fs=Object[_0x4aaaf0(0x28b)],Is=(_0x1803a2,_0x5bac17,_0x5ed6c9,_0x731b4b)=>{const _0x10a797=_0x4aaaf0;for(var _0x25d1ed=_0x731b4b>0x1?void 0x0:_0x731b4b?fs(_0x5bac17,_0x5ed6c9):_0x5bac17,_0x5121c0=_0x1803a2[_0x10a797(0x31a)]-0x1,_0x2cc6c3;_0x5121c0>=0x0;_0x5121c0--)(_0x2cc6c3=_0x1803a2[_0x5121c0])&&(_0x25d1ed=(_0x731b4b?_0x2cc6c3(_0x5bac17,_0x5ed6c9,_0x25d1ed):_0x2cc6c3(_0x25d1ed))||_0x25d1ed);return _0x731b4b&&_0x25d1ed&&gs(_0x5bac17,_0x5ed6c9,_0x25d1ed),_0x25d1ed;},G=(_0x48f750,_0x555c0c)=>(_0xcb2cc5,_0x416284)=>_0x555c0c(_0xcb2cc5,_0x416284,_0x48f750),x=(_0x453d47=>(_0x453d47[_0x453d47['IDLE']=0x0]=_0x4aaaf0(0x448),_0x453d47[_0x453d47[_0x4aaaf0(0x580)]=0x1]=_0x4aaaf0(0x580),_0x453d47[_0x453d47[_0x4aaaf0(0x270)]=0x2]=_0x4aaaf0(0x270),_0x453d47[_0x453d47[_0x4aaaf0(0x322)]=0x3]=_0x4aaaf0(0x322),_0x453d47))(x||{});exports[_0x4aaaf0(0x315)]=class extends a['RxDisposable']{constructor(_0x2ad6d1,_0x41f750,_0x4d6334,_0xaca70c,_0x3bcad0,_0x4331e2,_0x5d71fe,_0x1cfe02,_0x2edf56,_0x1984ba){const _0x56fc87=_0x4aaaf0;super(),u(this,_0x56fc87(0x2f5),new v['BehaviorSubject'](0x0)),u(this,'sessionStatus$',this[_0x56fc87(0x2f5)][_0x56fc87(0x2a7)]()),u(this,_0x56fc87(0x5c0),new v['Subject']()),u(this,_0x56fc87(0x467),this['_event$'][_0x56fc87(0x2a7)]()),u(this,_0x56fc87(0x5ca)),u(this,'_socketMessageSubscription'),u(this,_0x56fc87(0x25e)),u(this,'_shouldReportTelemetry',!0x1),u(this,_0x56fc87(0x42a),null),(this[_0x56fc87(0x2b8)]=_0x2ad6d1,this['_logService']=_0x4d6334,this[_0x56fc87(0x31e)]=_0xaca70c,this[_0x56fc87(0x206)]=_0x3bcad0,this['_configService']=_0x4331e2,this[_0x56fc87(0x2af)]=_0x5d71fe,this['_memberService']=_0x1cfe02,this['_commentService']=_0x2edf56,this['_telemetryService']=_0x1984ba,this[_0x56fc87(0x1f1)]=!!this[_0x56fc87(0x4dc)],_0x41f750[_0x56fc87(0x2b0)](v[_0x56fc87(0x4b2)](this[_0x56fc87(0x35d)]))[_0x56fc87(0x236)](_0x5acc74=>{const _0x3bee67=_0x56fc87;var _0x50a72a;typeof _0x5acc74>'u'||(this[_0x3bee67(0x5ca)]=_0x5acc74,_0x5acc74?(this[_0x3bee67(0x2fa)](_0x5acc74),this['_socketMessageSubscription']=_0x5acc74[_0x3bee67(0x499)][_0x3bee67(0x236)](_0x5159b8=>{const _0x4655c6=_0x3bee67;_0x5159b8[_0x4655c6(0x2ab)]===this[_0x4655c6(0x2b8)]&&this['_onCombEvent'](_0x5159b8);})):(this[_0x3bee67(0x46c)](),this[_0x3bee67(0x2f5)]['next'](0x2),(_0x50a72a=this[_0x3bee67(0x5b3)])==null||_0x50a72a[_0x3bee67(0x4ed)](),this['_socketMessageSubscription']=null));}),this[_0x56fc87(0x367)](this['_beforeCloseService'][_0x56fc87(0x510)](()=>{const _0x4575ac=_0x56fc87;var _0x129518;(_0x129518=this[_0x4575ac(0x5ca)])==null||_0x129518['send']({'cmd':b[_0x4575ac(0x523)],'data':{'roomID':this[_0x4575ac(0x2b8)]}});})));}get[_0x4aaaf0(0x5b0)](){const _0x516c26=_0x4aaaf0;return this[_0x516c26(0x2f5)]['getValue']();}[_0x4aaaf0(0x573)](){const _0x10ad1b=_0x4aaaf0;var _0x35f268,_0xc189d8;return(_0xc189d8=(_0x35f268=this[_0x10ad1b(0x5ca)])==null?void 0x0:_0x35f268['memberID'])!=null?_0xc189d8:null;}[_0x4aaaf0(0x342)](){const _0x4a07b0=_0x4aaaf0;super[_0x4a07b0(0x342)](),this[_0x4a07b0(0x35d)][_0x4a07b0(0x3b3)](),this['dispose$'][_0x4a07b0(0x489)]();}[_0x4aaaf0(0x344)](){const _0x5eeddb=_0x4aaaf0;var _0x31bd2a,_0x26d557;this['_throwTelemetryCollaborationNewChangeset'](),(_0x31bd2a=this[_0x5eeddb(0x5ca)])==null||_0x31bd2a[_0x5eeddb(0x306)]({'cmd':b[_0x5eeddb(0x523)],'data':{'roomID':this[_0x5eeddb(0x2b8)]}}),(_0x26d557=this[_0x5eeddb(0x5ca)])==null||_0x26d557[_0x5eeddb(0x344)](),this[_0x5eeddb(0x5c0)][_0x5eeddb(0x489)](),this[_0x5eeddb(0x2f5)]['complete'](),this[_0x5eeddb(0x342)]();}[_0x4aaaf0(0x220)](_0x302aa5){const _0x2cfd79=_0x4aaaf0;_0x302aa5[_0x2cfd79(0x451)]===b['JOIN']?this[_0x2cfd79(0x426)](_0x302aa5):_0x302aa5[_0x2cfd79(0x451)]===b[_0x2cfd79(0x441)]&&this[_0x2cfd79(0x520)](_0x302aa5);}['_joinRoom'](_0x589518){const _0x415409=_0x4aaaf0;this[_0x415409(0x2f5)][_0x415409(0x3b3)](0x1),_0x589518[_0x415409(0x306)]({'cmd':b['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x415409(0x2b8)]}]}});}['_onJoinRoomEvent'](_0x1cb4c7){const _0x1e1597=_0x4aaaf0;var _0x507d24;if(_0x1cb4c7[_0x1e1597(0x512)]===Ge[_0x1e1597(0x354)]){this['_messageService'][_0x1e1597(0x4c5)]({'type':J[_0x1e1597(0x497)]['Warning'],'content':this[_0x1e1597(0x2af)]['t'](_0x1e1597(0x48c))}),this[_0x1e1597(0x2f5)][_0x1e1597(0x3b3)](0x2);return;}this['_sessionStatus$'][_0x1e1597(0x3b3)](0x3);const _0x3df9b5=(_0x507d24=_0x1cb4c7[_0x1e1597(0x2cf)][_0x1e1597(0x30a)][this[_0x1e1597(0x2b8)]])==null?void 0x0:_0x507d24['members'];_0x3df9b5&&_0x3df9b5[_0x1e1597(0x1d6)](_0x4d359a=>this['_memberService'][_0x1e1597(0x2b4)](this[_0x1e1597(0x2b8)],_0x4d359a));}['_onRecvEvent'](_0x5e40e1){const _0x3b20da=_0x4aaaf0;try{const _0x5cd09f=_0x5e40e1['data'];switch(_0x5cd09f[_0x3b20da(0x405)]){case _['CollaborationEvent'][_0x3b20da(0x475)]:this[_0x3b20da(0x27a)](_0x5cd09f),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _[_0x3b20da(0x2bb)][_0x3b20da(0x3b0)]:this['_onUserLeave'](_0x5cd09f),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _[_0x3b20da(0x2bb)][_0x3b20da(0x540)]:case _[_0x3b20da(0x2bb)][_0x3b20da(0x5d7)]:this[_0x3b20da(0x22d)](),this[_0x3b20da(0x284)](),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _['CollaborationEvent'][_0x3b20da(0x45e)]:this[_0x3b20da(0x360)][_0x3b20da(0x574)](_0x3b20da(0x478)+JSON[_0x3b20da(0x24c)](_0x5cd09f)),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _['CollaborationEvent'][_0x3b20da(0x556)]:this['_commentService'][_0x3b20da(0x209)](_0x5cd09f[_0x3b20da(0x2cf)]),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;default:this[_0x3b20da(0x5c0)]['next'](_0x5cd09f);}}catch(_0x168882){this['_logService']['error'](_0x168882,_0x5e40e1);}}[_0x4aaaf0(0x27a)](_0x125eb3){const _0x34aad2=_0x4aaaf0;this[_0x34aad2(0x529)][_0x34aad2(0x2b4)](this[_0x34aad2(0x2b8)],_0x125eb3[_0x34aad2(0x2cf)]);}[_0x4aaaf0(0x50d)](_0x543ce5){const _0x4bb796=_0x4aaaf0;this[_0x4bb796(0x529)][_0x4bb796(0x407)](this['_unitID'],_0x543ce5[_0x4bb796(0x2cf)][_0x4bb796(0x55c)]);}async[_0x4aaaf0(0x306)](_0x4a2a70,_0x175871){const _0x48c12c=_0x4aaaf0;if(this[_0x48c12c(0x5b0)]!==0x3||!this['_socket'])throw new Error(_0x48c12c(0x581));try{_0x4a2a70[_0x48c12c(0x405)]===_[_0x48c12c(0x2bb)][_0x48c12c(0x47c)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x48c12c(0x551)](_0x4a2a70)),this['_socket'][_0x48c12c(0x306)]({'cmd':b['INGEST'],'routeKey':_0x175871,'routeType':'','data':_0x4a2a70});}catch(_0x509258){this[_0x48c12c(0x360)][_0x48c12c(0x574)](_0x509258);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4b060d=_0x4aaaf0;var _0x49d645;this[_0x4b060d(0x25e)]=window[_0x4b060d(0x3c4)](()=>{const _0x24874f=_0x4b060d;this[_0x24874f(0x25e)]=null,this[_0x24874f(0x206)][_0x24874f(0x4c5)]({'type':J[_0x24874f(0x497)][_0x24874f(0x413)],'content':this['_localeService']['t'](_0x24874f(0x250))});},(_0x49d645=this['_configService'][_0x4b060d(0x50b)](Fe))!=null?_0x49d645:gt);}['_clearCollaborationTimeoutTimer'](){const _0x47aaf9=_0x4aaaf0;this[_0x47aaf9(0x25e)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x4aaaf0(0x551)](_0x193644){const _0x321c5e=_0x4aaaf0;if(!this['_shouldReportTelemetry'])return;const {data:_0x509b24}=_0x193644,{unitID:_0x4bc788,changeset:_0x314f9f}=_0x509b24,{mutations:_0x3ed29f,type:_0x2c5cd4}=_0x314f9f;this[_0x321c5e(0x42a)]={'unitId':_0x4bc788,'type':_0x2c5cd4,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':us(_0x3ed29f)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x43ff1e=_0x4aaaf0;if(this['_shouldReportTelemetry']){if(!this[_0x43ff1e(0x42a)]){this[_0x43ff1e(0x360)][_0x43ff1e(0x574)](_0x43ff1e(0x25a),_0x43ff1e(0x4ac));return;}this['_telemetryInfo'][_0x43ff1e(0x3ce)]=performance[_0x43ff1e(0x58e)](),this[_0x43ff1e(0x42a)]['duration']=this[_0x43ff1e(0x42a)][_0x43ff1e(0x3ce)]-this[_0x43ff1e(0x42a)]['startTime'],this['_telemetryService'][_0x43ff1e(0x3b6)](_s,this['_telemetryInfo']),this[_0x43ff1e(0x42a)]=null;}}[_0x4aaaf0(0x46c)](){const _0x2681d4=_0x4aaaf0;this[_0x2681d4(0x42a)]=null;}},exports['CollaborationSession']=Is([G(0x2,a[_0x4aaaf0(0x1d1)]),G(0x3,A[_0x4aaaf0(0x595)]),G(0x4,A[_0x4aaaf0(0x31b)]),G(0x5,a[_0x4aaaf0(0x565)]),G(0x6,a['Inject'](a[_0x4aaaf0(0x1f6)])),G(0x7,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x50e)])),G(0x8,a[_0x4aaaf0(0x1b2)](Ke)),G(0x9,a[_0x4aaaf0(0x4cd)](Kt[_0x4aaaf0(0x28a)]))],exports['CollaborationSession']);function _0x98ab(){const _0x532f94=['url','target','joinRsp','evenodd','xlink:href','handleIRemoveRow','requireSession','CONFLICT','getMemberID','error','_snapshotService','getUnitType','_initMergeInterceptor','mapTo','_initModules','getCurrent','319006SscOid','YUUMI_UNABLE_LOAD_URL','_revisionService','_sendingTimer','_updateState','JOINING','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_sheetSkeletonManagerService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','change$','updatePermissionPoint','getResourcesRequest','conflict','saveChangeset','_sendHeartbeat','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onConflict','[PendingState]:\x20received\x20rejection.','_collabCursorController','now','_getUndoStack','DeleteRangeMoveUpCommandId','src','UNIVER_SLIDE','executeCommand','LOGIN_URL_KEY','IBeforeCloseService','_resendTimeout','MoveRangeCommandId','Module','concatMap','/role','_setupSubUnitSync','children','setShapeProps','InsertRangeMoveDownCommandId','_getScale','_getMergeRange','getParam','_scheduleSaving','_color','onlineStatusIcon','drawWith','number','_getAPIPrefixPath','Tools','univer-online-status-icon','_injector','LICENSE_MAX_UNITS_EXCEEDED','_transformUndoRedoStack','getRelativeToViewportCoord','updateCursorEvent','_status$','sessionStatus','hovered','@univerjs/design','_socketMessageSubscription','getCollabEntity','RECT','\x20in\x20_schedule.','isTransformMutationsWithChangesetSuccess','_getCtorByUniverType','_state','@univerjs/core','POST','_unitOnClients','0\x200\x2017\x2016','getSheetBySheetId','transformSelections','_event$','_onCursorUpdate','fetching\x20missing\x20changesets\x20from\x20','_document','_handler','interceptor','_initResize','_sender','title','currentSkeleton$','_socket','onReady','mergeOverrideWithDependencies','LIVESHARE_OPERATION','_drawTextRange','objectID','_timeoutTimer','getLatestCsReqIdBySid','SHOULD_CLOSE_CONN','collaborators','_getSignURL','getCurrentUser','csRejEvent','CHANGESET_SHOULD_RETRY','InsertRangeMoveRightCommandId','[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.','useObservable','DisposableCollection','FileId','AuthzIoHttpService','/universer-api/oidc/authpage','ICommandService','fetchMiss','LIVESHARE_TERMINATE','height','MUTATION','collabStatus.syncing','entries','allowed','editing\x20status\x20changed\x20to','Inject','@univerjs/telemetry','combineLatest','rxjs','_updateLocalCursor','onload','VIEW_MAIN','_onRefRangeChange','_getLoginPath','_showConflictNotification','_resendWithTimeout','_listenToOnlineEvent','_clearUndo','_initEventListeners','getCoordByCell','find','ThemeService','endColumn','BASE64','path','throttleTime','all','_scheduleHeartbeat','generateRandomId','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleTimestamp','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','awaitingChangeset','/collaborator','RichTextEditingMutation','INVALID_ARGUMENT','ILogService','_entityInit$','onMissingChangesets','Subject','UPDATE_CURSOR','forEach','init','getUnit','subscribeEvent','createInstance','row','LIVESHARE_NEW_HOST','SNAPSHOT_HAS_BEEN_REMOVED','getAncestorScale','objectActions','includes','setAlpha','DesktopCollaborationStatusDisplayController','LICENSE_IMPORT_SIZE_EXCEEDED','HTTPService','assignAColorForMemberID','_transformUndoredo','tag','_getSheetObject','WorkbookEditablePermission','setInterval','univer-pro.collaboration-client-socket-service','authzUrl','_change$','arc','onTransformIME','enableSingleActiveInstanceLock','_shouldReportTelemetry','_singleActiveUnitService','ALREADY_EXISTS','_refreshCollabCursors','SNAPSHOT_INVALID_SNAPSHOT','LocaleService','_initStatusComponent','_substituteUndoStack','onRemoteAck','collabSubmitChangesetUrl','_lastPointer','onMouseMove','ERROR_EXCEED_SIZE','Shape','_id','registerRefRange','_waitForHeartbeatResponse','_members','_entities','current','colorChannel1','_messageService','\x20to\x20','collaboration-client.config','onCommentUpdate','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','defs','INGEST','disableLocalCache','UNIVER_UNKNOWN','_unlockTransition','clipPath','fillRule','_retryConnectingTimer','getSkeleton','_handleEvent','[UniverCollaborationClientPlugin]','onSyncEditingCollabCursor','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','svg','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_remoteChangesetQueue','resourceIDs','use','CHANGESET_REVISION_CONFILICT','_onRemoteChangeset','DocCollaborationEntity','_onCombEvent','pauseCollaboration','toString','#fff','baseRev','_shapes','error$','url(#off-line-single_clip0_910_343)','_backgroundColor','[CollaborationEntity]','reconnect','getRenderById','unitId','_stopTelemetryCollaborationNewChangeset','isEditing','_socket$','conflict.title','parseChangesetToProtocol','newCsEvent','slice','_disabled','_docTransformSelectionsService','subscribe','_getSendChangesetTimeout','UNIVER_DOC','IHTTPImplementation','collabStatus.synced','_collaborationSessionService','_online','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','handleInsertRangeMoveRight','getCollabEntity$','some','close$','UNDEFINED','_redoStacks','clearTimeout','_render','_retryCount','ACTIVE_UNIT_EVENT_CHANNEL','_name','parse','image/gif','_checkMissing','stringify','add','_getCurrentRevision','image/jpeg','session.collaboration-timeout','NOT_COLLAB','COLLAB_WEB_SOCKET_URL_KEY','_handleJoinEvent','then','newValue','_onOffline','_session','NEW_CHANGESETS','getItem','[CollaborationSession]','onSendChangeset','_localStorageService','RemoveColCommandId','_collaborationTimeoutTimer','state$','@univerjs/ui','AWAITING','every','map','isTransformMutationsWithChangesetFailure','CollaborationController','CONNECTOR_DATA_TOO_LARGE','isPermissionRej','handleInsertRangeMoveDown','HEARTBEAT_INTERVAL_KEY','json','_collabCursorState$','IPermissionService','_startDocCollabCursor','currentColor','collaMsg','OFFLINE','getSheetId','UniverCollaborationPlugin','InsertSheetMutation','rxjs/operators','RxDisposable','delete','_sheetTransformSelectionsService','_candidateSocket','_selfUnitIDs','_onUserJoin','isArray','getVpScrollXYInfoByPosToVp','file','url(#$1','1em','function','_getSaveTimeout','_waitCount','open$','_clearCollaborationTimeoutTimer','fetch_missing','setUndoRedoMutationParamsCache','APPLY_DUPLICATED','ImageUploadStatusType','RETRY_CONNECTING_MAX_COUNT_KEY','ITelemetryService','getOwnPropertyDescriptor','loadSheet','_initUnitPermissionChange','handleInsertCol','DocSelectionManagerService','_permissionService','createSocket','ImageSourceType','_scene','createIdentifier','DataLoaderController','COMPRESS_MUTATION_APPLY','NOT_FOUND','enableAuthServer','[CollaborationState]:\x20apply\x20error!','Rectangle','SheetsSelectionsService','JOIN','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','submit\x20changeset\x20error!','15431GfVgIJ','NO_OTHER_CLIENTS_EDITING','SYNCED','joinEvent','fillStyle','round','_onConnectionFailed','transformUndoRedo','asObservable','_replayCachedMutations','c2Prime','OnLineSingle','routeKey','onRendered','with','InsertColCommandId','_localeService','pipe','name','getAllMembers','changesets','updateMember','_updateLocalCache','collab-rect-range-','mutations','_unitID','m1Prime','permission.title','CollaborationEvent','updateCollaborator','_roomMembers','_transformPreviousActiveRange','SNAPSHOT_SERVER_URL_KEY','HEARTBEAT_TIMEOUT_KEY','_loadSheet','toRgbString','[CollaborationSessionService]','synced','incrementRevOfUnit','toDisposable','useRef','visibilityState','getAttachHeader','black','onRemoteRej','has','ranges','_anchor','data','_labelPosition','UserManagerService','reqId','_collabSessionService','createCollaborator','getTypeOfUnitDisposed$','@univerjs/network','cursorInfo$','getOffsetConfig','onCommandExecuted','x-univer-host','withCredentials','substring','10yJDFkD','[DataLoaderController]','permissionRejEvent','IContextService','_collaborationPaused','IImageIoService','_renderManagerService','_createInitialStateImpl','COLLAB_SUBMIT_CHANGESET_URL','searchParams','setActiveRange','RegularPolygon','_scheduleClearOtherTimer','12GlxOYn','[OfflineState]:\x20received\x20acknowledgement.','_onFetchMissResult','[OfflineState]:\x20received\x20changeset.','Injector','random','SetSelectionsOperation','findNodePositionByCharIndex','column','post','CompressMutationService','_sessionStatus$','SEND_CHANGESET_TIMEOUT','rev','collabWebSocketUrl','state','_joinRoom','[CollaborationUndoRedoService]','ICollaborationSocketService','Error\x20on\x20receiving\x20event','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getUnitOnRev','removeParam','_cursors','_ws','getCurrentSelections','CollaborationStatus','/universer-api/stream/file/upload','send','@univerjs/sheets-ui','COLLAB_WEB_SOCKET_URL','MergeInterceptorFactory','roomInfos','handleDeleteRangeMoveLeft','SNAPSHOT_URL_KEY','retryConnectingInterval','collaboratorID','_httpService','_commandService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','CollaborationStatusDisplay','/-/object/-/batch_allowed','top','CollaborationSession','HEARTBEAT_INTERVAL','listRoles','_rescheduleHeartbeat','image/jpg','length','IMessageService','string','handleInsertRow','_beforeCloseService','_replaceFileID','online','on-line-single_clip0_910_349','ONLINE','_decreaseWaiting','DeleteRangeMoveLeftCommandId','range','deleteCollaborator','restore','concat','_fetchMissChangesets','_createHandler','transformMutation','replace','addObject','none','registerRenderModule','_themeService','history','off-line-single_clip0_910_343','onPointerEnter$','CommentService','addEventListener','_getDownloadEndpointURL','/-/object/list','mapDocumentTypeToUniverType','_HTTPService','transformChangesets','_snapshotServerService','_transformSelections','_init','&assign=','IUniverInstanceService','uni.network.url-service','_disableEditing','dispose','transform','close','hidden','session.connection-failed','Undefined','params','{fileID}','TEXT_RANGE_LAYER_INDEX','Warning','hide','transformMutationsWithChangeset','handleDeleteRangeMoveUp','copyFileMeta','doc.mutation.rich-text-editing','_onLocalMutation','_saveCache','DOC_RANGE_TYPE','FAIL','getCollabCursors$','_type','encode','transformIMECache','setParam','Rect','commentUpdateEvent','233152hHshKS','dispose$','OffLineSingle','_removeRoom','_logService','UnitEmbedded','pending','_getRedoStack','/universer-api/comb','_hover','HEARTBEAT_TIMEOUT','disposeWithMe','docStateChange$','saveOfflineData','_registerDependencies','icon','from','filter','_executeRemoteChangeset','key','_submitChangeset','responseType','getActiveSheet','unshift','HttpImport','XHRHTTPImplementation','SheetCollaborationEntity','/object','SheetPermissionInitController','getSheetObject','handleMoveRange','SnapshotServerOverHTTPService','_onRemoteRejected','HTTPRequest','translate(.97)','_transformService','snapshotServerUrl','setItem','className','[SyncedState]:\x20received\x20rejection.','getRangePointData','...','session','_acknowledgedAwaitingChangeset','sheetID','_docSyncEditingCollabCursorService','jiqing500','_state$','univer-pro.collaboration-client.single-active-unit-service','HttpExport','appendMutation','prototype','getColor','getOwnPropertySymbols','_draw','UNAUTHENTICATED','ColorKit','subUnitId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_startCollaboration','merge','resend','toStringTag','_commentUpdate$','rgba(255,\x20255,\x20255,\x200.01)','_imageSourceCache','13750264keJZOy','DocIMEInputManagerService','_onConnectionOpen','TEXT','_createSocket','EmptyMutation','updatePermissionObjEvent','split','_colorIndex','APPLY_REVISION_CONFILICT','_toggleOffline','m2Prime','fetchMissingChangesets','urlChange$','exhaustSavingTask','YUUMI_SUBSCRIPTION_NOT_FOUND','#FFF','setConfig','USERS_LEAVE','LICENSE_EXPORT_SIZE_EXCEEDED','reverse','next','color','fromEventSubject','capture','toggleOnline','resize','UPDATE_PERMISSION_OBJ','reduce','_exhaustRemoteChangesetQueue','status$','ReplaySubject','@univerjs-pro/collaboration','setShowComponents','LIVESHARE_FETCH_OPERATIONS','ERROR_IMAGE_TYPE','onRemoteChangeset','_getAPIPrefix','setTimeout','cursorInfo','FETCH_MISSING','_isPermissionRej','append','_drawAnchor','_docTransformIMECacheService','fetchThroughInterceptors','_heartbeatTimer','EXCHANGE_SIGN_URL_SERVER_URL_KEY','stopTime','_applyRemoteChangeset','rng','getMember','collabStatus.notCollab','Univer','roomMembers','[SyncedState]:\x20received\x20acknowledgement.','WebSocketService','_changesetReqId','_eventUnsubscribe','attrs','setWaitCount','FETCH_MISS','isTransformChangesetsSuccess','ERROR_IMAGE','_initRequestHeader','body','createElement','COLLAB_SUBMIT_CHANGESET_URL_KEY','getUnitId','UNIVER_PROJECT','clear','@univerjs/docs','_handleHeartbeatEvent','switchMap','APPLY_REJECT','_changesetSessionId','fillText','_docStateChangeManagerService','action','SnapshotService','_cursor','Disposable','url(#on-line-single_clip0_910_349)','c1Prime','off-line-single','_refRangeService','getTime','onMissedChangesetFetched','isTransformMutationFailure','connectInjector','textEncoder','_lockTransition','auth.needGotoLoginAlert','_clearHeartbeatTimer','makeDirty','@univerjs/engine-formula','20vjbjzs','LOCAL_CACHE_INTERVAL_KEY','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','fromEvent','_clearOtherTimers','UNKNOWN_CODE','clearInterval','eventID','/unit/','removeMember','\x0aAfter:\x20','update','234852xDlpEW','_syncEditingCollabCursorService','collabStatus.fetchMiss','commentUpdate$','_http','_textBubble','csAckEvent','getTypeOfUnitAdded$','saveImage','Error','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','visibilitychange','_schedule','UNRECOGNIZED','COLORS','UniverInstanceType','_getSnapshotAPIPrefix','_config','unitID','downloadEndpointUrl','[PendingState]:\x20received\x20acknowledgement.','ITransformService','serializeRangeWithSheet','distinctUntilChanged','runRefRangeMutations','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','LOCAL_CACHE_INTERVAL','status','_onJoinRoomEvent','1722966exJpqd','_configService','_handleLeaveEvent','_telemetryInfo','method','replaceState','getValue','_transformIMECache','1428JnGsKr','readAsDataURL','SEND_CHANGESET_TIMEOUT_KEY','pushState','unload','getUnitStatus$','objectType','loadOfflineData','HELLO','transformRemoteChangeset','get','width','skeleton','SheetCollabCursorShape','_incrementRevisionNumber','_hideTimer','debug','ENSURE_SNAPSHOT_EXECUTION','RECV','BehaviorSubject','COMPLETION_FINISHED','fill','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onlineStatus','onTransformRemoteChangesetByIMECache','IDLE','SheetSkeletonManagerService','originalMeta','_anchorDot','encodeURIComponent','selections','PSEUDO_FETCH_MISSING_RESULT','_setupBeforeClosingHandler','getWorkbookSelections','cmd','_queuedRemoteChangesets','startRow','_toggleOnline','labelPosition','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','IAuthzIoService','collab-text-anchor-','_initCloseConn','offline','_cursorShapes','actions','_syncEditingCollabCursor','MSG_FOR_ERROR','editingUnit','storage','apply','idSuffix','_socketReady','requestParams','updateOfflineData','_resendTimer','event$','_removeCollabCursors','SetDocZoomRatioOperation','IUIPartsService','_getAnchorBounding','_throwTelemetryCollaborationNewChangeset','_univerInstanceService','/universer-api/authz','registerHTTPInterceptor','_urlService','connection\x20error','_collaborationController','Vector2','_substituteRedoStack','USERS_ENTER','startsWith','_sendHeartbeatTimer','save\x20fail\x20reason\x20is\x20','/universer-api/snapshot/','univer-offline','text','SUBMIT_CHANGESET','ISnapshotServerService','reject','_hovered','_registerRenderDependencies','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_loadDoc','catch','equals','_updateURLWithCurrentState','DocStateChangeManagerService','OTHER_CLIENTS_EDITING','onRemoteRetry','complete','call','10505187fvMpiM','session.room-full','signUrlServerUrl','useCallback','CollaborationSessionService','IUndoRedoService','focused$','getInterceptPoints','on-line-single','HEARTBEAT','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','ImageIoService','MessageType','socket$','message$','_updateSubUnitFromURLParams','socketService','LocalCacheService','CommandType','liveShareNewHost','_onMessage','_sessions','_onCursorDelete','registerBeforeClose','unknown','debounceTime','getMergeData','b64DecodeUnicode','RETRY_CONNECTING_MAX_COUNT','_updateStatus','_clearTimeoutTimer','type','override','telemetry\x20info\x20is\x20not\x20initialized','getCurrentRevOfUnit','getUniverSheetInstance','set','_roomMembers$','_cursorInfo$','takeUntil','saveSheetBlock','CollaborationSocketService','deepClone','collaboration.closeRoom','[FetchMissState]','_transitionLocked','enableOfflineEditing','_createInitialState','revision','userID','onPointerLeave$','_pendingMutations','UnitSnapshot','?size=','_getUploadFileURL','patch','_notificationService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','show','loadDoc','/new_changes','NodePositionConvertToRectRange','HEADER_MENU','values','unit-cache-','_transformRemoteChangesetByIMECache','Optional','push','@univerjs-pro/license','UNIVER_SHEET','UniverCollaborationClientPlugin','_send','onTransformSelections','localeService','session.will-retry','subunit','_undoRedoService','sequenceExecute','syncEditingCollabCursor','sessionStatus$','forwardRef','_telemetryService','SetWorksheetActivateCommand','bind','_handleHover','/object/','getUndoRedoMutationParamsCache','_context','getFocusedUnit','extend','refreshPermission','_drawRectRange','save','initWorkbookPermissionChange','_localCacheService','assign','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','moveTo','unsubscribe','_userManagerService','selection','toLowerCase','replaceTextRanges','NodePositionConvertToCursor','randomUUID','collaboration.single-unit.warning','_awaitingChangeset','AUTHZ_URL_KEY','isActive','COMPRESS_MUTATION_SEND','origin','_clearLocalCache','APPLY_PERMISSION_DENIED','roomMembers$','/universer-api/snapshot','_unitStatus','delay','univer-online-status','indexOf','listCollaborators','LICENSE_DISTRO_REJECTED','sid','_removeClearOtherTimer','getDocRanges','\x20-\x20','Unknown\x20user','RevisionService','_docSkeletonManagerService','getConfig','_clearScheduledTask','_onUserLeave','MemberService','unitId\x20is\x20not\x20found','registerOnClose','DocSkeletonManagerService','code','propertyIsEnumerable','_uiPartsService','_ensureSubject','size','_startSheetCollabCursor','414pHMgbV','hasOwnProperty','_colorAssignService','textRanges','4iubrtm','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','measureText','_initStatusListener','_onRecvEvent','ILocalStorageService','getRandomValues','LEAVE','BuiltInUIPart','fromCollab','defIds','TOO_MANY_REQUESTS','_compressMutationService','_memberService','_assignedColors','_range','min','sheetId','_clearRedo','closeSession','YUUMI_RATE_OVER_LIMIT','startColumn','unit','endRow','flatMap','CollaborationEntity','_listenToOfflineEvent','collaboration-session-retry','/fetchmissing?from=','enableLocalCache','EffectRefRangId','awaiting_with_pending','/allowed','href','beginPath','take','CHANGESET_ACK','UNKNOWN_CMD','_transformStack','verdancy600','/universer-api/file/{fileID}/sign-url','max','IRenderManagerService','/block/','_socketService','PERMISSION_DENIED','getImageSourceCache','collabCursorState$','SessionStatus','debounce','currentTheme$','_initCommandExecutedListener','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_startTelemetryCollaborationNewChangeset','lineTo','PERMISSION_REJ','location','APPLY_NON_SEQUENTIAL_REVISION','COMMENT_UPDATE','socket\x20open.','_tryReconnect','_onRemoteRetry','_cachedData','backgroundColor','memberID','result','_updateCollabCursors','_tryEnsureSocket','resolve','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','defineProperty','put','0\x200\x2016\x2016','IConfigService','shareReplay','_saveTaskMap','objects','IURLService','toggleOffline'];_0x98ab=function(){return _0x532f94;};return _0x98ab();}var ps=Object[_0x4aaaf0(0x562)],Cs=Object[_0x4aaaf0(0x28b)],Es=(_0x32188d,_0x5876f0,_0x3f738c,_0x3a538d)=>{for(var _0x496567=_0x3a538d>0x1?void 0x0:_0x3a538d?Cs(_0x5876f0,_0x3f738c):_0x5876f0,_0x41a1cf=_0x32188d['length']-0x1,_0x50aa05;_0x41a1cf>=0x0;_0x41a1cf--)(_0x50aa05=_0x32188d[_0x41a1cf])&&(_0x496567=(_0x3a538d?_0x50aa05(_0x5876f0,_0x3f738c,_0x496567):_0x50aa05(_0x496567))||_0x496567);return _0x3a538d&&_0x496567&&ps(_0x5876f0,_0x3f738c,_0x496567),_0x496567;},ee=(_0x2970a6,_0x491ee5)=>(_0x530fd3,_0x562aee)=>_0x491ee5(_0x530fd3,_0x562aee,_0x2970a6);exports[_0x4aaaf0(0x48f)]=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0xe6a5c2,_0x255a21,_0x4bf47b,_0x4efe67,_0x2a3114,_0x360d9c){const _0x3eda0=_0x4aaaf0;super(),u(this,'_socket$',new v[(_0x3eda0(0x442))](void 0x0)),u(this,_0x3eda0(0x498),this[_0x3eda0(0x22f)][_0x3eda0(0x2a7)]()),u(this,_0x3eda0(0x278),null),u(this,'_sessions',new Map()),u(this,_0x3eda0(0x5af),new v[(_0x3eda0(0x442))](x['IDLE'])),u(this,_0x3eda0(0x3bc),this[_0x3eda0(0x5af)][_0x3eda0(0x2a7)]()),u(this,_0x3eda0(0x463),!0x1),u(this,_0x3eda0(0x212)),u(this,_0x3eda0(0x246),0x0),u(this,_0x3eda0(0x477)),u(this,'_timeoutTimer'),(this[_0x3eda0(0x5aa)]=_0xe6a5c2,this[_0x3eda0(0x2af)]=_0x255a21,this[_0x3eda0(0x206)]=_0x4bf47b,this[_0x3eda0(0x360)]=_0x4efe67,this[_0x3eda0(0x428)]=_0x2a3114,this[_0x3eda0(0x548)]=_0x360d9c,this['_initEventListeners']());}get[_0x4aaaf0(0x5ca)](){const _0x38fc51=_0x4aaaf0;return this['_socket$'][_0x38fc51(0x42d)]();}[_0x4aaaf0(0x1bf)](){const _0x29aa96=_0x4aaaf0;this[_0x29aa96(0x536)](),this[_0x29aa96(0x1bd)]();}[_0x4aaaf0(0x342)](){const _0x1dc50c=_0x4aaaf0;super[_0x1dc50c(0x342)](),this[_0x1dc50c(0x4a0)][_0x1dc50c(0x1d6)](_0x23b0df=>_0x23b0df['dispose']()),this[_0x1dc50c(0x4a0)][_0x1dc50c(0x3e4)](),this[_0x1dc50c(0x5af)]['complete']();}async[_0x4aaaf0(0x571)](_0x3cf592){const _0xa8b62d=_0x4aaaf0;if(this['_sessions'][_0xa8b62d(0x2cc)](_0x3cf592))return this['_sessions'][_0xa8b62d(0x439)](_0x3cf592);this[_0xa8b62d(0x55f)]();const _0x43ef61=this[_0xa8b62d(0x5aa)][_0xa8b62d(0x1da)](exports['CollaborationSession'],_0x3cf592,this[_0xa8b62d(0x22f)][_0xa8b62d(0x2a7)]());return this[_0xa8b62d(0x4a0)]['set'](_0x3cf592,_0x43ef61),_0x43ef61;}[_0x4aaaf0(0x52f)](_0x3ada8c){const _0x2cd242=_0x4aaaf0;var _0x4c4819;const _0x59eca3=this[_0x2cd242(0x4a0)][_0x2cd242(0x439)](_0x3ada8c);_0x59eca3&&(this['_sessions'][_0x2cd242(0x276)](_0x3ada8c),_0x59eca3['close']()),this['_sessions'][_0x2cd242(0x516)]||(_0x4c4819=this[_0x2cd242(0x5ca)])==null||_0x4c4819[_0x2cd242(0x344)]();}['reconnect'](){const _0x25375c=_0x4aaaf0;this['_retryCount']=0x0,this[_0x25375c(0x212)]!=null&&(clearTimeout(this[_0x25375c(0x212)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}[_0x4aaaf0(0x3a2)](){const _0xe20e1d=_0x4aaaf0;var _0x3b0b10,_0x188564;const _0x501135=this[_0xe20e1d(0x428)]['getConfig'](vt),_0x99e097=this[_0xe20e1d(0x428)][_0xe20e1d(0x50b)]($),_0x39c1aa=(_0x188564=(_0x3b0b10=_0x99e097==null?void 0x0:_0x99e097[_0xe20e1d(0x2f8)])!=null?_0x3b0b10:_0x501135)!=null?_0x188564:Qt,_0x14a09c=this['_socketService'][_0xe20e1d(0x291)](_0x39c1aa);return this[_0xe20e1d(0x278)]=_0x14a09c,_0x14a09c;}[_0x4aaaf0(0x55f)](){const _0x5211dc=_0x4aaaf0;var _0xb5203f,_0x530dee;try{const _0x3c20ac=(_0x530dee=(_0xb5203f=this['_socket'])!=null?_0xb5203f:this[_0x5211dc(0x278)])!=null?_0x530dee:this[_0x5211dc(0x3a2)]();if(_0x3c20ac){const _0x500e5d=_0x3c20ac['send'];_0x3c20ac[_0x5211dc(0x306)]=_0x255e3a=>(this[_0x5211dc(0x318)](),_0x500e5d[_0x5211dc(0x461)](_0x3c20ac,[_0x255e3a])),_0x3c20ac[_0x5211dc(0x499)][_0x5211dc(0x236)](_0x34994d=>this['_onMessage'](_0x3c20ac,_0x34994d)),_0x3c20ac[_0x5211dc(0x226)][_0x5211dc(0x2b0)](E[_0x5211dc(0x53f)](0x1))[_0x5211dc(0x236)](_0x50b072=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x50b072)),_0x3c20ac[_0x5211dc(0x283)][_0x5211dc(0x2b0)](E[_0x5211dc(0x53f)](0x1))['subscribe'](()=>{const _0x29672b=_0x5211dc;this[_0x29672b(0x3a0)](_0x3c20ac);}),_0x3c20ac[_0x5211dc(0x241)][_0x5211dc(0x2b0)](E[_0x5211dc(0x53f)](0x1))['subscribe'](_0x1f1fc1=>{const _0x249c15=_0x5211dc;this[_0x249c15(0x360)][_0x249c15(0x43f)]('[CollaborationSessionService]','socket\x20close',_0x1f1fc1),this[_0x249c15(0x2a5)]();});}}catch(_0x24af90){this[_0x5211dc(0x360)][_0x5211dc(0x574)](_0x24af90),this['_onConnectionFailed']();}}[_0x4aaaf0(0x3a0)](_0x5db3cb){const _0x1f3bde=_0x4aaaf0;this['_logService']['debug'](_0x1f3bde(0x2c3),_0x1f3bde(0x557)),_0x5db3cb[_0x1f3bde(0x306)]({'cmd':b[_0x1f3bde(0x437)]}),this['_rescheduleHeartbeat']();}[_0x4aaaf0(0x536)](){const _0x5920c1=_0x4aaaf0;window[_0x5920c1(0x335)]('offline',()=>this['_onOffline']());}[_0x4aaaf0(0x256)](){const _0xf6217=_0x4aaaf0;this[_0xf6217(0x463)]=!0x1,this[_0xf6217(0x278)]=null,this[_0xf6217(0x5af)][_0xf6217(0x3b3)](x[_0xf6217(0x270)]),this['_socket$']['next'](null),this[_0xf6217(0x4a9)](),this[_0xf6217(0x3fb)]();}[_0x4aaaf0(0x2a5)](){const _0x1173d2=_0x4aaaf0;var _0xaf927b;this[_0x1173d2(0x256)](),this[_0x1173d2(0x246)]<((_0xaf927b=this[_0x1173d2(0x428)][_0x1173d2(0x50b)](ft))!=null?_0xaf927b:ss)?(this['_messageService'][_0x1173d2(0x4c5)]({'key':_0x1173d2(0x537),'type':J[_0x1173d2(0x497)][_0x1173d2(0x34b)],'content':this[_0x1173d2(0x2af)]['t'](_0x1173d2(0x4d5))}),this['_tryReconnect']()):this[_0x1173d2(0x206)]['show']({'key':_0x1173d2(0x537),'type':J[_0x1173d2(0x497)][_0x1173d2(0x413)],'content':this[_0x1173d2(0x2af)]['t'](_0x1173d2(0x346))});}[_0x4aaaf0(0x1bd)](){const _0x584cf6=_0x4aaaf0,_0x4d9033=()=>{const _0x240a82=_0x47ba;this[_0x240a82(0x5ca)]||this['reconnect']();},_0x599ef9=()=>{const _0x550b60=_0x47ba;this[_0x550b60(0x5ca)]||document[_0x550b60(0x2c8)]===_0x550b60(0x345)||this['reconnect']();};window[_0x584cf6(0x335)]('online',_0x4d9033),document[_0x584cf6(0x335)](_0x584cf6(0x415),_0x599ef9);}[_0x4aaaf0(0x558)](){const _0x186e42=_0x4aaaf0;var _0x5d89f5;const _0x1a4723=this[_0x186e42(0x246)],_0x3b2c80=this[_0x186e42(0x428)][_0x186e42(0x50b)]($),_0x25efd0=_0x1a4723===0x0?0x0:((_0x5d89f5=_0x3b2c80==null?void 0x0:_0x3b2c80[_0x186e42(0x30d)])!=null?_0x5d89f5:ts)*0x2**_0x1a4723;this[_0x186e42(0x212)]=window[_0x186e42(0x3c4)](()=>{const _0x4e064b=_0x186e42;clearTimeout(this[_0x4e064b(0x212)]),this['_retryConnectingTimer']=null,this[_0x4e064b(0x55f)]();},_0x25efd0),this['_retryCount']+=0x1;}[_0x4aaaf0(0x49f)](_0x10e8ac,_0x145716){const _0x3f5df6=_0x4aaaf0,{cmd:_0x5ab157}=_0x145716;_0x5ab157===b[_0x3f5df6(0x437)]&&!this[_0x3f5df6(0x463)]&&(_0x10e8ac[_0x3f5df6(0x55c)]=_0x145716['data'][_0x3f5df6(0x55c)],this['_socket$'][_0x3f5df6(0x3b3)](_0x10e8ac),this[_0x3f5df6(0x5af)][_0x3f5df6(0x3b3)](x['ONLINE']),this[_0x3f5df6(0x463)]=!0x0,this[_0x3f5df6(0x278)]=null),_0x5ab157===b[_0x3f5df6(0x494)]&&this[_0x3f5df6(0x4a9)](),this[_0x3f5df6(0x318)]();}[_0x4aaaf0(0x318)](){const _0x16f82c=_0x4aaaf0;var _0x5f19d8;this['_clearHeartbeatTimer'](),this[_0x16f82c(0x477)]=window['setTimeout'](()=>this[_0x16f82c(0x589)](),(_0x5f19d8=this[_0x16f82c(0x428)][_0x16f82c(0x50b)](mt))!=null?_0x5f19d8:es);}[_0x4aaaf0(0x589)](){const _0x4a6374=_0x4aaaf0;this[_0x4a6374(0x5ca)]['send']({'cmd':b[_0x4a6374(0x494)]}),this[_0x4a6374(0x201)]();}[_0x4aaaf0(0x201)](){const _0x8e9753=_0x4aaaf0;var _0x36ff0c;this[_0x8e9753(0x5d0)]=window[_0x8e9753(0x3c4)](()=>this[_0x8e9753(0x2a5)](),(_0x36ff0c=this[_0x8e9753(0x428)][_0x8e9753(0x50b)](Fe))!=null?_0x36ff0c:gt);}['_clearHeartbeatTimer'](){const _0x25acdb=_0x4aaaf0;this[_0x25acdb(0x477)]!=null&&(clearTimeout(this[_0x25acdb(0x477)]),this[_0x25acdb(0x477)]=null);}['_clearTimeoutTimer'](){const _0x4a8552=_0x4aaaf0;this[_0x4a8552(0x5d0)]!=null&&(clearTimeout(this[_0x4a8552(0x5d0)]),this[_0x4a8552(0x5d0)]=null);}},exports[_0x4aaaf0(0x48f)]=Es([ee(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),ee(0x1,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1f6)])),ee(0x2,A[_0x4aaaf0(0x31b)]),ee(0x3,a[_0x4aaaf0(0x1d1)]),ee(0x4,a['IConfigService']),ee(0x5,Ye)],exports['CollaborationSessionService']);var R=[];for(var ye=0x0;ye<0x100;++ye)R['push']((ye+0x100)[_0x4aaaf0(0x222)](0x10)[_0x4aaaf0(0x233)](0x1));function bs(_0x5b71a7,_0x343371=0x0){const _0x5bf7ae=_0x4aaaf0;return(R[_0x5b71a7[_0x343371+0x0]]+R[_0x5b71a7[_0x343371+0x1]]+R[_0x5b71a7[_0x343371+0x2]]+R[_0x5b71a7[_0x343371+0x3]]+'-'+R[_0x5b71a7[_0x343371+0x4]]+R[_0x5b71a7[_0x343371+0x5]]+'-'+R[_0x5b71a7[_0x343371+0x6]]+R[_0x5b71a7[_0x343371+0x7]]+'-'+R[_0x5b71a7[_0x343371+0x8]]+R[_0x5b71a7[_0x343371+0x9]]+'-'+R[_0x5b71a7[_0x343371+0xa]]+R[_0x5b71a7[_0x343371+0xb]]+R[_0x5b71a7[_0x343371+0xc]]+R[_0x5b71a7[_0x343371+0xd]]+R[_0x5b71a7[_0x343371+0xe]]+R[_0x5b71a7[_0x343371+0xf]])[_0x5bf7ae(0x4f0)]();}var Se,Ts=new Uint8Array(0x10);function Rs(){const _0x377796=_0x4aaaf0;if(!Se&&(Se=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x377796(0x522)][_0x377796(0x4de)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(Ts);}var Os=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x4aaaf0(0x4f3)][_0x4aaaf0(0x4de)](crypto);const tt={'randomUUID':Os};function Ds(_0xcae6b6,_0x5981b8,_0x4f7965){const _0x475feb=_0x4aaaf0;if(tt[_0x475feb(0x4f3)]&&!_0x5981b8&&!_0xcae6b6)return tt[_0x475feb(0x4f3)]();_0xcae6b6=_0xcae6b6||{};var _0x1c0d32=_0xcae6b6[_0x475feb(0x2ef)]||(_0xcae6b6[_0x475feb(0x3d0)]||Rs)();return _0x1c0d32[0x6]=_0x1c0d32[0x6]&0xf|0x40,_0x1c0d32[0x8]=_0x1c0d32[0x8]&0x3f|0x80,bs(_0x1c0d32);}var ys=Object['defineProperty'],Us=Object[_0x4aaaf0(0x28b)],Ps=(_0x3369ec,_0x190750,_0x514237,_0x207b67)=>{for(var _0xc5a832=_0x207b67>0x1?void 0x0:_0x207b67?Us(_0x190750,_0x514237):_0x190750,_0x33b075=_0x3369ec['length']-0x1,_0x169a08;_0x33b075>=0x0;_0x33b075--)(_0x169a08=_0x3369ec[_0x33b075])&&(_0xc5a832=(_0x207b67?_0x169a08(_0x190750,_0x514237,_0xc5a832):_0x169a08(_0xc5a832))||_0xc5a832);return _0x207b67&&_0xc5a832&&ys(_0x190750,_0x514237,_0xc5a832),_0xc5a832;},Ue=(_0x2987d7,_0x41d988)=>(_0x2d8c24,_0x5e7c63)=>_0x41d988(_0x2d8c24,_0x5e7c63,_0x2987d7);let fe=class{constructor(_0x4daf1e,_0x120c21,_0x1048d0){const _0x3ec976=_0x4aaaf0;this[_0x3ec976(0x5aa)]=_0x4daf1e,this['_transformService']=_0x120c21,this[_0x3ec976(0x2e3)]=_0x1048d0;}[_0x4aaaf0(0x358)](_0x419166){const _0x53241f=_0x4aaaf0;this[_0x53241f(0x5ac)](_0x419166),this[_0x53241f(0x2be)](_0x419166);}[_0x4aaaf0(0x438)](_0x1c1f03){const _0x45f484=_0x4aaaf0,{unitID:_0xf5eff6}=_0x1c1f03,_0x371ffe=this['_renderManagerService']['getRenderById'](_0xf5eff6)['with'](N[_0x45f484(0x39f)]),{redoCache:_0x25b046}=_0x371ffe['getUndoRedoMutationParamsCache']();if(_0x25b046[_0x45f484(0x31a)]===0x0)return _0x1c1f03;let _0x4d0863=a[_0x45f484(0x5a8)]['deepClone'](_0x1c1f03['mutations'][0x0]);for(let _0x35880c=0x0;_0x35880c<_0x25b046[_0x45f484(0x31a)];_0x35880c++){const _0x5f37be={'id':_0x45f484(0x350),'params':{..._0x25b046[_0x35880c]}},_0x4ad26d=this[_0x45f484(0x37f)]['transformMutation'](_0x4d0863,_0x5f37be,!0x1);if(_['isTransformMutationFailure'](_0x4ad26d))throw _0x4ad26d['error'];_0x4d0863=_0x4ad26d[_0x45f484(0x2b9)];}return{...a[_0x45f484(0x5a8)][_0x45f484(0x4b5)](_0x1c1f03),'mutations':[_0x4d0863]};}[_0x4aaaf0(0x5ac)](_0x56fb85){const _0x49472c=_0x4aaaf0,{unitID:_0x141a39}=_0x56fb85,_0x33f088=this[_0x49472c(0x2e3)][_0x49472c(0x22b)](_0x141a39)[_0x49472c(0x2ad)](N['DocIMEInputManagerService']),{undoCache:_0x36bd77,redoCache:_0x290fd0}=_0x33f088[_0x49472c(0x4e1)]();if(_0x36bd77[_0x49472c(0x31a)]===0x0||_0x290fd0[_0x49472c(0x31a)]===0x0)return;const _0x1cc2b3=[],_0x37fd5d=[];let _0x109174=a[_0x49472c(0x5a8)]['deepClone'](_0x56fb85[_0x49472c(0x2b7)][0x0]),_0x53f29c=a[_0x49472c(0x5a8)][_0x49472c(0x4b5)](_0x56fb85['mutations'][0x0]);for(let _0x503d13=_0x36bd77[_0x49472c(0x31a)]-0x1;_0x503d13>=0x0;_0x503d13--){const _0x962d48={'id':_0x49472c(0x350),'params':{..._0x36bd77[_0x503d13]}},_0x1a7be6={'id':_0x49472c(0x350),'params':{..._0x290fd0[_0x503d13]}},_0x23ce44=this[_0x49472c(0x37f)][_0x49472c(0x32b)](_0x109174,_0x962d48,!0x1),_0xfe8cf8=this[_0x49472c(0x37f)][_0x49472c(0x32b)](_0x53f29c,_0x1a7be6,!0x1);if(_[_0x49472c(0x3f6)](_0x23ce44))throw _0x23ce44['error'];if(_[_0x49472c(0x3f6)](_0xfe8cf8))throw _0xfe8cf8[_0x49472c(0x574)];_0x1cc2b3[_0x49472c(0x373)](_0x23ce44[_0x49472c(0x3a9)][_0x49472c(0x348)]),_0x37fd5d[_0x49472c(0x373)](_0xfe8cf8[_0x49472c(0x3a9)][_0x49472c(0x348)]),_0x109174=_0x23ce44[_0x49472c(0x2b9)],_0x53f29c=_0xfe8cf8[_0x49472c(0x2b9)];}_0x33f088[_0x49472c(0x286)]({'undoCache':_0x1cc2b3,'redoCache':_0x37fd5d});}[_0x4aaaf0(0x2be)](_0x316975){const _0x2815ee=_0x4aaaf0,{unitID:_0x1f980a}=_0x316975,_0x4683ec=this[_0x2815ee(0x2e3)][_0x2815ee(0x22b)](_0x1f980a)[_0x2815ee(0x2ad)](N['DocIMEInputManagerService']),_0x1e3a72=_0x4683ec['getActiveRange']();if(_0x1e3a72==null)return;const _0x2fafe0=[{'id':_0x2815ee(0x350),'params':{'unitId':_0x316975[_0x2815ee(0x41c)],'actions':null,'textRanges':[_0x1e3a72]}}],_0x9aeb97=this[_0x2815ee(0x37f)][_0x2815ee(0x34d)](_0x316975,_0x2fafe0);if(!_[_0x2815ee(0x5b7)](_0x9aeb97))throw _0x9aeb97['error'];const _0x203ded=_0x9aeb97[_0x2815ee(0x3a9)][0x0][_0x2815ee(0x348)][_0x2815ee(0x51b)];Array['isArray'](_0x203ded)&&_0x203ded['length']&&_0x4683ec[_0x2815ee(0x2e7)](_0x203ded[0x0]);}};fe=Ps([Ue(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),Ue(0x1,_['ITransformService']),Ue(0x2,O[_0x4aaaf0(0x546)])],fe);var ws=Object[_0x4aaaf0(0x562)],Ns=Object[_0x4aaaf0(0x28b)],Ms=(_0x102820,_0x509795,_0x15413c,_0x3a25f5)=>{const _0x2fe3d8=_0x4aaaf0;for(var _0x5266d1=_0x3a25f5>0x1?void 0x0:_0x3a25f5?Ns(_0x509795,_0x15413c):_0x509795,_0x196530=_0x102820[_0x2fe3d8(0x31a)]-0x1,_0x306fe0;_0x196530>=0x0;_0x196530--)(_0x306fe0=_0x102820[_0x196530])&&(_0x5266d1=(_0x3a25f5?_0x306fe0(_0x509795,_0x15413c,_0x5266d1):_0x306fe0(_0x5266d1))||_0x5266d1);return _0x3a25f5&&_0x5266d1&&ws(_0x509795,_0x15413c,_0x5266d1),_0x5266d1;},ce=(_0x240c5b,_0x2e1996)=>(_0x5d1143,_0x563d07)=>_0x2e1996(_0x5d1143,_0x563d07,_0x240c5b);exports['LocalCacheService']=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x163599,_0x3babf6,_0x631cfa,_0x23c3cf,_0x3efa37){const _0x19debe=_0x4aaaf0;super(),u(this,'_cachedData',new Map()),u(this,_0x19debe(0x567),new Map()),u(this,_0x19debe(0x234),!0x1),(this[_0x19debe(0x428)]=_0x163599,this[_0x19debe(0x25c)]=_0x3babf6,this['_beforeCloseService']=_0x631cfa,this[_0x19debe(0x2af)]=_0x23c3cf,this[_0x19debe(0x57d)]=_0x3efa37,this[_0x19debe(0x44f)]());}[_0x4aaaf0(0x20d)](){const _0x30307e=_0x4aaaf0;this[_0x30307e(0x234)]=!0x0;}[_0x4aaaf0(0x539)](){this['_disabled']=!0x1;}[_0x4aaaf0(0x342)](){const _0x375153=_0x4aaaf0;this['exhaustSavingTask']()[_0x375153(0x254)](()=>super['dispose']());}async[_0x4aaaf0(0x436)](_0x2f19d3){const _0x28e868=_0x4aaaf0;return this[_0x28e868(0x234)]?null:this[_0x28e868(0x25c)][_0x28e868(0x259)](st(_0x2f19d3));}async[_0x4aaaf0(0x369)](_0x183a34,_0x50ab2c){const _0x40d0ed=_0x4aaaf0;return!!this[_0x40d0ed(0x25c)][_0x40d0ed(0x381)](_0x183a34,_0x50ab2c);}[_0x4aaaf0(0x465)](_0xfa5a39,_0x4a92d4,_0x3a4975,_0x1e9af3){const _0x171e80=_0x4aaaf0,_0x2b10dc=this['_revisionService'][_0x171e80(0x4ad)](_0xfa5a39);this[_0x171e80(0x55a)][_0x171e80(0x4af)](_0xfa5a39,{'unitID':_0xfa5a39,'type':_0x4a92d4,'awaitingChangeset':_0x3a4975,'mutations':_0x1e9af3,'rev':_0x2b10dc}),this[_0x171e80(0x567)][_0x171e80(0x2cc)](_0xfa5a39)||this[_0x171e80(0x5a2)](_0xfa5a39);}['_scheduleSaving'](_0x2fd73f){const _0x4db450=_0x4aaaf0,_0x447ce3=this[_0x4db450(0x281)]();_0x447ce3===0x0?this[_0x4db450(0x352)](_0x2fd73f):this[_0x4db450(0x567)]['set'](_0x2fd73f,setTimeout(()=>this['_saveCache'](_0x2fd73f),_0x447ce3));}['_getSaveTimeout'](){const _0x3a8144=_0x4aaaf0;var _0x462945;return(_0x462945=this[_0x3a8144(0x428)]['getConfig'](It))!=null?_0x462945:is;}['_saveCache'](_0x4674cb){const _0x38cdf9=_0x4aaaf0,_0x182cbf=this[_0x38cdf9(0x567)]['get'](_0x4674cb);return _0x182cbf!==void 0x0&&window[_0x38cdf9(0x244)](_0x182cbf),this[_0x38cdf9(0x25c)][_0x38cdf9(0x381)](st(_0x4674cb),this['_cachedData'][_0x38cdf9(0x439)](_0x4674cb))[_0x38cdf9(0x254)](()=>this[_0x38cdf9(0x567)][_0x38cdf9(0x276)](_0x4674cb));}async[_0x4aaaf0(0x3ac)](){const _0xf958ca=_0x4aaaf0,_0x31a665=[];this[_0xf958ca(0x567)][_0xf958ca(0x1d6)]((_0x3a923c,_0x44f9ed)=>{const _0x111be4=_0xf958ca;window[_0x111be4(0x244)](_0x3a923c),_0x31a665['push'](this[_0x111be4(0x352)](_0x44f9ed)[_0x111be4(0x254)](()=>{const _0xf329f9=_0x111be4;this[_0xf329f9(0x567)]['delete'](_0x44f9ed);}));}),await Promise[_0xf958ca(0x1c7)](_0x31a665);}['_setupBeforeClosingHandler'](){const _0x5bf219=_0x4aaaf0;this[_0x5bf219(0x367)](this[_0x5bf219(0x31e)][_0x5bf219(0x4a2)](()=>{const _0xf7996d=_0x5bf219;if(this['_saveTaskMap'][_0xf7996d(0x516)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x4aaaf0(0x49c)]=Ms([ce(0x0,a[_0x4aaaf0(0x565)]),ce(0x1,a[_0x4aaaf0(0x521)]),ce(0x2,A[_0x4aaaf0(0x595)]),ce(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1f6)])),ce(0x4,a['Inject'](_[_0x4aaaf0(0x509)]))],exports['LocalCacheService']);function st(_0x21b8a8){const _0x247a96=_0x4aaaf0;return _0x247a96(0x4cb)+_0x21b8a8;}var As=Object[_0x4aaaf0(0x562)],Ls=Object['getOwnPropertyDescriptor'],$s=(_0x340fab,_0x409db6,_0x19f5d7,_0xdf03ff)=>{for(var _0x4c31c5=_0xdf03ff>0x1?void 0x0:_0xdf03ff?Ls(_0x409db6,_0x19f5d7):_0x409db6,_0x406da2=_0x340fab['length']-0x1,_0xd45fc6;_0x406da2>=0x0;_0x406da2--)(_0xd45fc6=_0x340fab[_0x406da2])&&(_0x4c31c5=(_0xdf03ff?_0xd45fc6(_0x409db6,_0x19f5d7,_0x4c31c5):_0xd45fc6(_0x4c31c5))||_0x4c31c5);return _0xdf03ff&&_0x4c31c5&&As(_0x409db6,_0x19f5d7,_0x4c31c5),_0x4c31c5;},Pe=(_0x585bbd,_0x39065a)=>(_0x2f5b0f,_0x588873)=>_0x39065a(_0x2f5b0f,_0x588873,_0x585bbd);function js(_0x28bd25){const _0x5c7501=_0x4aaaf0,{unitID:_0x326add,mutations:_0x315dff}=_0x28bd25;return{'unitId':_0x326add,'subUnitId':_0x315dff[0x0]['params'][_0x5c7501(0x395)]};}let Ie=class{constructor(_0x26e7af,_0x17fdb5,_0x432165){const _0x23d97f=_0x4aaaf0;this[_0x23d97f(0x5aa)]=_0x26e7af,this['_transformService']=_0x17fdb5,this['_instanceService']=_0x432165;}[_0x4aaaf0(0x5bf)](_0x5d9237){const _0x5a67c8=_0x4aaaf0;var _0x2a1de2,_0x423f14,_0xdde82d,_0x35fcd0;const _0x15a4a1=this[_0x5a67c8(0x5aa)][_0x5a67c8(0x439)](C[_0x5a67c8(0x29b)]),{unitId:_0x34c07e,subUnitId:_0x245cca}=js(_0x5d9237),_0x5f51de=_0x15a4a1[_0x5a67c8(0x450)](_0x34c07e)[_0x5a67c8(0x303)](),_0x2fd6b5=(_0x423f14=(_0x2a1de2=this['_instanceService'][_0x5a67c8(0x1d8)](_0x34c07e))==null?void 0x0:_0x2a1de2[_0x5a67c8(0x372)]())==null?void 0x0:_0x423f14[_0x5a67c8(0x271)]();if(_0x5f51de[_0x5a67c8(0x31a)]===0x0||!_0x34c07e||!_0x245cca)return;const _0x48a07d=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x34c07e,'subUnitId':_0x2fd6b5,'selections':a[_0x5a67c8(0x5a8)][_0x5a67c8(0x4b5)](_0x5f51de)}}],_0x1f57a3=this[_0x5a67c8(0x37f)][_0x5a67c8(0x34d)](_0x5d9237,_0x48a07d);if(!_[_0x5a67c8(0x5b7)](_0x1f57a3))throw _0x1f57a3[_0x5a67c8(0x574)];const _0x3fd60a=(_0x35fcd0=(_0xdde82d=_0x1f57a3[_0x5a67c8(0x3a9)][0x0])==null?void 0x0:_0xdde82d[_0x5a67c8(0x348)])==null?void 0x0:_0x35fcd0[_0x5a67c8(0x44d)];if(Array[_0x5a67c8(0x27b)](_0x3fd60a)&&_0x3fd60a['length']){if(_0x3fd60a['length']===_0x48a07d[0x0]['params'][_0x5a67c8(0x44d)][_0x5a67c8(0x31a)]&&_0x3fd60a[_0x5a67c8(0x262)]((_0x236426,_0x4d5413)=>a[_0x5a67c8(0x29a)][_0x5a67c8(0x484)](_0x236426['range'],_0x48a07d[0x0][_0x5a67c8(0x348)][_0x5a67c8(0x44d)][_0x4d5413][_0x5a67c8(0x325)])))return;this[_0x5a67c8(0x5aa)]['get'](a[_0x5a67c8(0x5df)])[_0x5a67c8(0x593)](C['SetSelectionsOperation']['id'],{'unitId':_0x34c07e,'subUnitId':_0x2fd6b5,'selections':_0x3fd60a});}}};Ie=$s([Pe(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),Pe(0x1,_[_0x4aaaf0(0x41f)]),Pe(0x2,a[_0x4aaaf0(0x33f)])],Ie);const Re=a['createIdentifier'](_0x4aaaf0(0x38c));var Ot=(_0x4aa383=>(_0x4aa383[_0x4aa383[_0x4aaaf0(0x2a0)]=0x0]=_0x4aaaf0(0x2a0),_0x4aa383[_0x4aa383[_0x4aaaf0(0x487)]=0x1]=_0x4aaaf0(0x487),_0x4aa383))(Ot||{});const it=0x7530,nt=_0x4aaaf0(0x247);class Hs extends a[_0x4aaaf0(0x3ef)]{constructor(){const _0x4a339=_0x4aaaf0;super(),u(this,'_id',a['Tools'][_0x4a339(0x1c9)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0x4a339(0x5bc),new Map()),u(this,'_heartbeatTimer',null),u(this,_0x4a339(0x402),new Map()),u(this,_0x4a339(0x4fe),new Map()),this[_0x4a339(0x33d)]();}[_0x4aaaf0(0x342)](){const _0x238f7c=_0x4aaaf0;super['dispose'](),this[_0x238f7c(0x402)][_0x238f7c(0x1d6)]((_0x2cd908,_0x295641)=>this[_0x238f7c(0x505)](_0x295641)),this[_0x238f7c(0x3cc)]&&window['clearInterval'](this[_0x238f7c(0x3cc)]);}['getUnitStatus$'](_0x2188b9){const _0x58e5d2=_0x4aaaf0;return this[_0x58e5d2(0x515)](_0x2188b9)['pipe'](v[_0x58e5d2(0x421)]());}[_0x4aaaf0(0x45f)](_0x1506d2){const _0xfb220=_0x4aaaf0;this[_0xfb220(0x279)][_0xfb220(0x516)]===0x0&&this[_0xfb220(0x1c8)](),this['_selfUnitIDs']['add'](_0x1506d2),this['_send']({'type':0x0,'memberID':this[_0xfb220(0x1ff)],'unitIDs':[_0x1506d2],'isForwarded':!0x1});}['disposeUnit'](_0x428d03){const _0x17651a=_0x4aaaf0;this['_selfUnitIDs']['delete'](_0x428d03),this[_0x17651a(0x279)][_0x17651a(0x516)]===0x0&&this[_0x17651a(0x3cc)]&&window[_0x17651a(0x404)](this[_0x17651a(0x3cc)]);}[_0x4aaaf0(0x33d)](){const _0x1d3a01=_0x4aaaf0;this[_0x1d3a01(0x367)](a[_0x1d3a01(0x2c6)](v[_0x1d3a01(0x401)](window,_0x1d3a01(0x460))['subscribe'](_0x2b5fcc=>{const _0x359ef0=_0x1d3a01;if(_0x2b5fcc[_0x359ef0(0x36f)]!==nt||!_0x2b5fcc['newValue'])return;const _0x34d1e1=JSON[_0x359ef0(0x249)](_0x2b5fcc[_0x359ef0(0x255)]);this[_0x359ef0(0x214)](_0x34d1e1);}))),window[_0x1d3a01(0x335)](_0x1d3a01(0x433),()=>this['_send']({'type':0x1,'memberID':this[_0x1d3a01(0x1ff)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x4aaaf0(0x214)](_0x149fcc){const _0xf1a9=_0x4aaaf0;switch(_0x149fcc[_0xf1a9(0x4aa)]){case 0x0:this[_0xf1a9(0x253)](_0x149fcc);break;case 0x1:this[_0xf1a9(0x429)](_0x149fcc);break;case 0x2:this[_0xf1a9(0x3e6)](_0x149fcc);break;}}[_0x4aaaf0(0x253)](_0x4d836d){const _0x509d16=_0x4aaaf0,{unitIDs:_0x52663e,memberID:_0x4ecbc3,isForwarded:_0x3a430a}=_0x4d836d;_0x52663e[_0x509d16(0x1d6)](_0x1f2504=>{const _0x54612b=_0x509d16;if(!_0x3a430a&&this['_unitOnClients'][_0x54612b(0x2cc)](_0x1f2504)&&this[_0x54612b(0x515)](_0x1f2504)[_0x54612b(0x3b3)](0x1),!this['_unitOnClients'][_0x54612b(0x2cc)](_0x1f2504)||!this[_0x54612b(0x5bc)][_0x54612b(0x439)](_0x1f2504)[_0x54612b(0x2cc)](_0x4ecbc3)){const _0x4c14bb=this[_0x54612b(0x5bc)][_0x54612b(0x439)](_0x1f2504)||new Set();_0x4c14bb[_0x54612b(0x24d)](_0x4ecbc3),this[_0x54612b(0x5bc)][_0x54612b(0x4af)](_0x1f2504,_0x4c14bb),this[_0x54612b(0x2e9)](_0x4ecbc3);}}),_0x3a430a||this[_0x509d16(0x4d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x509d16(0x279)]],'isForwarded':!0x0});}[_0x4aaaf0(0x2e9)](_0x15150d){const _0x44ad87=_0x4aaaf0;this[_0x44ad87(0x505)](_0x15150d);const _0x1721b4=window[_0x44ad87(0x3c4)](()=>{const _0x311735=_0x44ad87;this[_0x311735(0x5bc)][_0x311735(0x1d6)](_0x4f9cec=>{_0x4f9cec['delete'](_0x15150d);});},it*0x2);this[_0x44ad87(0x402)][_0x44ad87(0x4af)](_0x15150d,_0x1721b4);}[_0x4aaaf0(0x505)](_0x346090){const _0x1d2a68=_0x4aaaf0;if(this[_0x1d2a68(0x402)]['has'](_0x346090)){const _0x5b2907=this[_0x1d2a68(0x402)][_0x1d2a68(0x439)](_0x346090);_0x5b2907&&window['clearTimeout'](_0x5b2907),this[_0x1d2a68(0x402)]['set'](_0x346090,null);}}['_handleLeaveEvent'](_0x1613af){const _0x3de052=_0x4aaaf0,{memberID:_0x1a54fb,unitIDs:_0x3eaaad}=_0x1613af;_0x3eaaad[_0x3de052(0x1d6)](_0x247410=>{const _0x2feb1b=_0x3de052;var _0x49fc1f;const _0x362907=this[_0x2feb1b(0x5bc)][_0x2feb1b(0x439)](_0x247410);_0x362907&&(_0x362907[_0x2feb1b(0x276)](_0x1a54fb),(_0x49fc1f=this['_ensureSubject'](_0x247410))==null||_0x49fc1f[_0x2feb1b(0x3b3)](_0x362907[_0x2feb1b(0x516)]===0x0?0x0:0x1));}),this[_0x3de052(0x505)](_0x1a54fb);}[_0x4aaaf0(0x3e6)](_0x14f482){const _0x211c38=_0x4aaaf0;this[_0x211c38(0x2e9)](_0x14f482[_0x211c38(0x55c)]);}['_send'](_0x1f8bd9){const _0x977a23=_0x4aaaf0;localStorage[_0x977a23(0x381)](nt,JSON[_0x977a23(0x24c)](_0x1f8bd9));}['_scheduleHeartbeat'](){const _0x232ad8=_0x4aaaf0;this[_0x232ad8(0x3cc)]=window[_0x232ad8(0x1ea)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},it);}['_ensureSubject'](_0x259a08){const _0x35b34c=_0x4aaaf0;return this['_unitStatus']['has'](_0x259a08)||this[_0x35b34c(0x4fe)][_0x35b34c(0x4af)](_0x259a08,new v['BehaviorSubject'](0x0)),this[_0x35b34c(0x4fe)][_0x35b34c(0x439)](_0x259a08);}}function Dt(_0x4b77ba){let _0x98b98a='';for(const _0x3e6f47 of _0x4b77ba){const {startOffset:_0x8d2b59,endOffset:_0x2e47d8,isActive:_0x19878c,rangeType:_0x527185,segmentId:_0x25843d,segmentPage:_0x5769ff}=_0x3e6f47;_0x98b98a['length']&&(_0x98b98a+=','),_0x98b98a+=_0x8d2b59+':'+_0x2e47d8+':'+(_0x19878c?'1':'0')+':'+_0x527185+':'+_0x25843d+':'+_0x5769ff;}return _0x98b98a;}function xs(_0x2596a9){const _0x2d99fa=_0x4aaaf0,_0xa899ca=_0x2596a9[_0x2d99fa(0x3a5)](','),_0x128b5e=[];for(const _0x57dd90 of _0xa899ca){const [_0x31cdef,_0x5bac73,_0x3e1534,_0x5cc07e,_0x1350e1,_0x242c6b]=_0x57dd90[_0x2d99fa(0x3a5)](':');_0x128b5e[_0x2d99fa(0x4ce)]({'startOffset':Number(_0x31cdef),'endOffset':Number(_0x5bac73),'collapsed':_0x31cdef===_0x5bac73,'isActive':_0x3e1534==='1','rangeType':_0x5cc07e===a['DOC_RANGE_TYPE'][_0x2d99fa(0x3a1)]?a[_0x2d99fa(0x353)]['TEXT']:a[_0x2d99fa(0x353)][_0x2d99fa(0x5b5)],'segmentId':typeof _0x1350e1==_0x2d99fa(0x31c)?String(_0x1350e1):'','segmentPage':Number(_0x242c6b!=null?_0x242c6b:-0x1)});}return _0x128b5e[_0x2d99fa(0x240)](_0x3e67fd=>_0x3e67fd['isActive'])||(_0x128b5e[0x0][_0x2d99fa(0x4f7)]=!0x0),_0x128b5e;}class Xe extends a[_0x4aaaf0(0x275)]{constructor(){const _0x3ee688=_0x4aaaf0;super(...arguments),u(this,_0x3ee688(0x26b),new v[(_0x3ee688(0x442))](null)),u(this,_0x3ee688(0x54b),this[_0x3ee688(0x26b)][_0x3ee688(0x2a7)]());}[_0x4aaaf0(0x4d9)](_0x4232b0){const _0x1e5582=_0x4aaaf0,{unitID:_0x3a1a85,memberID:_0x4e35dc,textRanges:_0x251305}=_0x4232b0,_0x4c446a=Dt(_0x251305);if(_0x4c446a==='')return;const _0x609c4f={'unitID':_0x3a1a85,'memberID':_0x4e35dc,'selection':_0x4c446a};this[_0x1e5582(0x26b)][_0x1e5582(0x3b3)](_0x609c4f);}}var ks=Object[_0x4aaaf0(0x562)],Bs=Object['getOwnPropertyDescriptor'],Vs=(_0x1433d1,_0x572ebd,_0x4642db,_0x516654)=>{const _0x13e2cb=_0x4aaaf0;for(var _0x349cea=_0x516654>0x1?void 0x0:_0x516654?Bs(_0x572ebd,_0x4642db):_0x572ebd,_0x5f38e4=_0x1433d1[_0x13e2cb(0x31a)]-0x1,_0x593076;_0x5f38e4>=0x0;_0x5f38e4--)(_0x593076=_0x1433d1[_0x5f38e4])&&(_0x349cea=(_0x516654?_0x593076(_0x572ebd,_0x4642db,_0x349cea):_0x593076(_0x349cea))||_0x349cea);return _0x516654&&_0x349cea&&ks(_0x572ebd,_0x4642db,_0x349cea),_0x349cea;},rt=(_0x58f03d,_0x3935a0)=>(_0x2d1350,_0x4bb233)=>_0x3935a0(_0x2d1350,_0x4bb233,_0x58f03d);let pe=class{constructor(_0x233cf9,_0x48f681){this['_injector']=_0x233cf9,this['_transformService']=_0x48f681;}['transformSelections'](_0x222491){const _0x5cea0a=_0x4aaaf0;var _0x196c31;const _0x4f6f2e=this['_injector'][_0x5cea0a(0x439)](ne[_0x5cea0a(0x28f)]),_0x1392dd=(_0x196c31=_0x4f6f2e['getDocRanges']())!=null?_0x196c31:[];if(_0x1392dd[_0x5cea0a(0x31a)]===0x0)return;const _0x5aa388=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x222491['unitID'],'actions':null,'textRanges':_0x1392dd}}],_0x2fca4f=this['_transformService'][_0x5cea0a(0x34d)](_0x222491,_0x5aa388);if(!_[_0x5cea0a(0x5b7)](_0x2fca4f))throw _0x2fca4f[_0x5cea0a(0x574)];const _0x3bd96d=_0x2fca4f[_0x5cea0a(0x3a9)][0x0][_0x5cea0a(0x348)][_0x5cea0a(0x51b)];Array[_0x5cea0a(0x27b)](_0x3bd96d)&&_0x3bd96d[_0x5cea0a(0x31a)]&&_0x4f6f2e[_0x5cea0a(0x4f1)](_0x3bd96d,!0x1);}};pe=Vs([rt(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),rt(0x1,_[_0x4aaaf0(0x41f)])],pe);const Ws=new Set([C[_0x4aaaf0(0x273)]['id']]);function ot(_0x4e58b4,_0x44c518,_0x2e8fa4,_0x1491e5,_0x5412d5){const _0x3a6adf=_0x4aaaf0;var _0x4a0061,_0x30b34f,_0x3fa3bd,_0x206cb2;const _0xa476b3=[];for(const _0xd3cfa7 of _0x4e58b4)if(Ws[_0x3a6adf(0x2cc)](_0xd3cfa7['id'])){if(_0xa476b3[_0x3a6adf(0x31a)]>0x0)break;_0xa476b3[_0x3a6adf(0x4ce)](_0xd3cfa7);break;}else _0xa476b3[_0x3a6adf(0x4ce)](_0xd3cfa7);const _0x5b4ca8=(_0x30b34f=(_0x4a0061=_0x5412d5[_0x3a6adf(0x5d5)]())==null?void 0x0:_0x4a0061[_0x3a6adf(0x4bc)])!=null?_0x30b34f:_0x3a6adf(0x4a3),_0x347e11=(_0x206cb2=(_0x3fa3bd=_0x5412d5[_0x3a6adf(0x5d5)]())==null?void 0x0:_0x3fa3bd[_0x3a6adf(0x55c)])!=null?_0x206cb2:'unknown';return{'changeset':{'unitID':_0x44c518,'type':_[_0x3a6adf(0x338)](_0x2e8fa4[_0x3a6adf(0x576)](_0x44c518)),'baseRev':_0x1491e5['getCurrentRevOfUnit'](_0x44c518),'revision':0x0,'userID':_0x5b4ca8,'memberID':_0x347e11,'mutations':_0xa476b3},'pendingMutations':_0x4e58b4['slice'](_0xa476b3['length'])};}function Fs(_0x15d598,_0x5576fd,_0x3ee08c,_0x397f1a,_0x407242){const _0x5eb53f=_0x4aaaf0;var _0x39b2de,_0x548acd,_0x457fe7,_0x14d852;const _0xbf4bfe=[_0x15d598[_0x5eb53f(0x3ba)]((_0x17e938,_0x1dd653)=>{const _0x3fd605=_0x5eb53f;var _0x1df382;const {id:_0x6c12cb}=_0x17e938,{id:_0x1a1f3c,type:_0x53970e}=_0x1dd653,_0x48b136=(_0x1df382=_0x17e938[_0x3fd605(0x348)])!=null?_0x1df382:{'actions':null},_0x36b476=_0x1dd653[_0x3fd605(0x348)];if(_0x6c12cb&&_0x6c12cb!==_0x1a1f3c)throw new Error(_0x3fd605(0x20a)+_0x6c12cb+_0x3fd605(0x507)+_0x1a1f3c+'.');return{..._0x17e938,'id':_0x1a1f3c,'type':_0x53970e,'params':{'unitId':_0x36b476[_0x3fd605(0x22c)],'textRanges':_0x36b476[_0x3fd605(0x51b)],'actions':a['JSONX']['compose'](_0x48b136['actions'],_0x36b476[_0x3fd605(0x45c)])}};},{})],_0x178d76=(_0x548acd=(_0x39b2de=_0x407242[_0x5eb53f(0x5d5)]())==null?void 0x0:_0x39b2de['userID'])!=null?_0x548acd:_0x5eb53f(0x4a3),_0x29b99e=(_0x14d852=(_0x457fe7=_0x407242['getCurrentUser']())==null?void 0x0:_0x457fe7[_0x5eb53f(0x55c)])!=null?_0x14d852:'unknown';return{'changeset':{'unitID':_0x5576fd,'type':_[_0x5eb53f(0x338)](_0x3ee08c[_0x5eb53f(0x576)](_0x5576fd)),'baseRev':_0x397f1a[_0x5eb53f(0x4ad)](_0x5576fd),'revision':0x0,'userID':_0x178d76,'memberID':_0x29b99e,'mutations':_0xbf4bfe},'pendingMutations':[]};}function yt(_0x4090d3,_0xaa914d){const _0x463aa7=_0x4aaaf0,_0x2f6ef3=new v[(_0x463aa7(0x3bd))](0x1);return setTimeout(()=>_0x2f6ef3['next'](_0xaa914d),_0x4090d3),_0x2f6ef3[_0x463aa7(0x2a7)]()['pipe'](v[_0x463aa7(0x53f)](0x1));}const Gs={'id':C[_0x4aaaf0(0x3a3)]['id'],'type':a[_0x4aaaf0(0x49d)]['MUTATION'],'params':{}};var Ys=Object[_0x4aaaf0(0x562)],Ks=Object[_0x4aaaf0(0x28b)],Z=(_0x359ce0,_0x34d820,_0x4d6a62,_0x306b63)=>{const _0x26669d=_0x4aaaf0;for(var _0xbd885b=_0x306b63>0x1?void 0x0:_0x306b63?Ks(_0x34d820,_0x4d6a62):_0x34d820,_0x295783=_0x359ce0[_0x26669d(0x31a)]-0x1,_0x34e16b;_0x295783>=0x0;_0x295783--)(_0x34e16b=_0x359ce0[_0x295783])&&(_0xbd885b=(_0x306b63?_0x34e16b(_0x34d820,_0x4d6a62,_0xbd885b):_0x34e16b(_0xbd885b))||_0xbd885b);return _0x306b63&&_0xbd885b&&Ys(_0x34d820,_0x4d6a62,_0xbd885b),_0xbd885b;},g=(_0x5eb7d7,_0x28e289)=>(_0x13cbe9,_0x1db225)=>_0x28e289(_0x13cbe9,_0x1db225,_0x5eb7d7),D=(_0x5c90b7=>(_0x5c90b7[_0x4aaaf0(0x251)]='not_collab',_0x5c90b7[_0x4aaaf0(0x2a1)]=_0x4aaaf0(0x2c4),_0x5c90b7['PENDING']=_0x4aaaf0(0x362),_0x5c90b7['AWAITING']='awaiting',_0x5c90b7['AWAITING_WITH_PENDING']=_0x4aaaf0(0x53b),_0x5c90b7[_0x4aaaf0(0x3db)]=_0x4aaaf0(0x285),_0x5c90b7[_0x4aaaf0(0x572)]=_0x4aaaf0(0x587),_0x5c90b7['OFFLINE']=_0x4aaaf0(0x45a),_0x5c90b7))(D||{});const Ut=0xea60;class Q{constructor(_0x327db5,_0x1c4312,_0x4b04e4,_0x19ec32,_0x3e8ab7,_0x102262,_0x237e60,_0x19bb62,_0x58b05a){const _0x3a875b=_0x4aaaf0;u(this,_0x3a875b(0x4f5),null),u(this,_0x3a875b(0x4be),[]),(this['unitID']=_0x327db5,this[_0x3a875b(0x4aa)]=_0x1c4312,this['_handler']=_0x3e8ab7,this['_commandService']=_0x102262,this[_0x3a875b(0x4d7)]=_0x237e60,this['_revisionService']=_0x19bb62,this[_0x3a875b(0x4e9)]=_0x58b05a,this[_0x3a875b(0x4f5)]=_0x4b04e4,this[_0x3a875b(0x4be)]=_0x19ec32);}[_0x4aaaf0(0x24b)](_0x4dd6a0){const _0x5d2d66=_0x4aaaf0,_0x358bb5=this[_0x5d2d66(0x57d)][_0x5d2d66(0x4ad)](this[_0x5d2d66(0x41c)]);return _0x4dd6a0[_0x5d2d66(0x4bb)]>_0x358bb5+0x1?(this[_0x5d2d66(0x5c4)][_0x5d2d66(0x1d3)]({'from':_0x358bb5,'to':_0x4dd6a0[_0x5d2d66(0x4bb)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x39c21b){const _0x3e50b7=_0x4aaaf0;this['_undoRedoService']['transformUndoRedo'](this[_0x3e50b7(0x41c)],_0x39c21b);}[_0x4aaaf0(0x33c)](_0x39169d){const _0x4dfcab=_0x4aaaf0;var _0x15ad6a,_0x4ec697;(_0x4ec697=(_0x15ad6a=this[_0x4dfcab(0x5c4)])[_0x4dfcab(0x4d3)])==null||_0x4ec697[_0x4dfcab(0x48a)](_0x15ad6a,_0x39169d);}[_0x4aaaf0(0x42e)](_0x4338ef){const _0x39e1f0=_0x4aaaf0;var _0x2d389f,_0x426e31;return(_0x426e31=(_0x2d389f=this[_0x39e1f0(0x5c4)])[_0x39e1f0(0x1ef)])==null?void 0x0:_0x426e31[_0x39e1f0(0x48a)](_0x2d389f,_0x4338ef);}[_0x4aaaf0(0x4cc)](_0x9e7f42){const _0x428649=_0x4aaaf0;var _0xd84511,_0x472209,_0x578040;return(_0x578040=(_0x472209=(_0xd84511=this['_handler'])[_0x428649(0x447)])==null?void 0x0:_0x472209[_0x428649(0x48a)](_0xd84511,_0x9e7f42))!=null?_0x578040:_0x9e7f42;}['_syncEditingCollabCursor'](_0x2d6490){const _0x2cd134=_0x4aaaf0;var _0x5d1c8b,_0x34739c;if(this[_0x2cd134(0x4aa)]===H[_0x2cd134(0x238)]){const {unitID:_0x3d7e48,mutations:_0x477822,memberID:_0x31d7d1}=_0x2d6490,_0xb84ae5=_0x477822[0x0]['params'][_0x2cd134(0x51b)];Array['isArray'](_0xb84ae5)&&_0xb84ae5['length']>0x0&&((_0x34739c=(_0x5d1c8b=this['_handler'])[_0x2cd134(0x216)])==null||_0x34739c['call'](_0x5d1c8b,{'unitID':_0x3d7e48,'memberID':_0x31d7d1,'textRanges':_0xb84ae5}));}}['_updateLocalCache'](){const _0x49e6dd=_0x4aaaf0;this[_0x49e6dd(0x4e9)]['updateOfflineData'](this['unitID'],this[_0x49e6dd(0x4aa)],this[_0x49e6dd(0x4f5)],this[_0x49e6dd(0x4be)]);}[_0x4aaaf0(0x24e)](){const _0x2ff5f3=_0x4aaaf0;return this[_0x2ff5f3(0x57d)]['getCurrentRevOfUnit'](this[_0x2ff5f3(0x41c)]);}[_0x4aaaf0(0x43d)](){const _0x2bae58=_0x4aaaf0;this['_revisionService'][_0x2bae58(0x2c5)](this[_0x2bae58(0x41c)]);}[_0x4aaaf0(0x36e)](_0x2a2cb5){const _0x56d265=_0x4aaaf0;var _0x2a5cf3;const _0x25d994=this[_0x56d265(0x4cc)](_0x2a2cb5),_0x33092e=a[_0x56d265(0x4d8)](_0x25d994[_0x56d265(0x2b7)],this[_0x56d265(0x310)],{'fromCollab':!0x0});if(!_0x33092e[_0x56d265(0x55d)])throw _0x33092e[_0x56d265(0x574)]instanceof Error?_0x33092e[_0x56d265(0x574)]:new Error((_0x2a5cf3=_0x33092e[_0x56d265(0x574)])!=null?_0x2a5cf3:_0x56d265(0x299));this[_0x56d265(0x42e)](_0x25d994),this[_0x56d265(0x1e6)](_0x2a2cb5),this[_0x56d265(0x33c)](_0x25d994),this[_0x56d265(0x45d)](_0x25d994),this[_0x56d265(0x43d)]();}}let re=class extends Q{constructor(_0x4f0052,_0x16383f,_0x44046a,_0x207366,_0x103a25,_0x14369d,_0x31775c,_0x375a58,_0x49a24d,_0x3206c6){const _0x477a92=_0x4aaaf0;super(_0x4f0052,_0x16383f,null,[],_0x44046a,_0x375a58,_0x31775c,_0x207366,_0x103a25),u(this,_0x477a92(0x425),_0x477a92(0x2c4)),(this[_0x477a92(0x5aa)]=_0x14369d,this['_logService']=_0x49a24d,this[_0x477a92(0x37f)]=_0x3206c6);}[_0x4aaaf0(0x38e)](_0x13f631){const _0x545150=_0x4aaaf0,_0x1e6d2e=this[_0x545150(0x5aa)]['createInstance'](W,this[_0x545150(0x41c)],this['type'],[_0x13f631],this[_0x545150(0x5c4)]);return _0x1e6d2e[_0x545150(0x416)](),_0x1e6d2e[_0x545150(0x2b5)](),_0x1e6d2e;}['onRemoteChangeset'](_0x18800a){const _0x3d0302=_0x4aaaf0;if(this[_0x3d0302(0x24b)](_0x18800a))return this[_0x3d0302(0x5aa)][_0x3d0302(0x1da)](k,this[_0x3d0302(0x41c)],this[_0x3d0302(0x4aa)],null,[],null,[_0x18800a],this[_0x3d0302(0x5c4)]);try{const _0x27e7b3=this[_0x3d0302(0x37f)][_0x3d0302(0x34d)](_0x18800a,[Gs]);if(_[_0x3d0302(0x5b7)](_0x27e7b3)){const {c1Prime:_0x4c9d1a}=_0x27e7b3;return this[_0x3d0302(0x36e)](_0x4c9d1a),this;}throw _0x27e7b3['error'];}catch(_0x2d47c7){return this[_0x3d0302(0x360)][_0x3d0302(0x574)](_0x2d47c7),this[_0x3d0302(0x58b)](!0x1);}}[_0x4aaaf0(0x58b)](_0x3d89fd){const _0x262ef9=_0x4aaaf0;return this[_0x262ef9(0x5aa)][_0x262ef9(0x1da)](K,this['unitID'],this[_0x262ef9(0x4aa)],null,[],this[_0x262ef9(0x5c4)],_0x3d89fd);}['onRemoteAck'](){const _0x55a259=_0x4aaaf0;throw new Error(_0x55a259(0x3d5));}[_0x4aaaf0(0x2cb)](){const _0x433438=_0x4aaaf0;throw new Error(_0x433438(0x383));}[_0x4aaaf0(0x488)](){return this;}[_0x4aaaf0(0x56a)](){const _0x333948=_0x4aaaf0;return this[_0x333948(0x5aa)][_0x333948(0x1da)](X,this[_0x333948(0x41c)],this[_0x333948(0x4aa)],null,[],this[_0x333948(0x5c4)]);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x399)](){const _0x29213e=_0x4aaaf0;throw new Error(_0x29213e(0x414));}[_0x4aaaf0(0x5e0)](){const _0x1ce2c9=_0x4aaaf0,_0xdf90c9=this[_0x1ce2c9(0x57d)][_0x1ce2c9(0x4ad)](this[_0x1ce2c9(0x41c)]);return this[_0x1ce2c9(0x5c4)]['onMissingChangesets']({'from':_0xdf90c9,'to':0x0}),this['_injector'][_0x1ce2c9(0x1da)](k,this[_0x1ce2c9(0x41c)],this[_0x1ce2c9(0x4aa)],null,[],null,[],this[_0x1ce2c9(0x5c4)]);}};re=Z([g(0x3,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),g(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0x5,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x6,a[_0x4aaaf0(0x490)]),g(0x7,a['ICommandService']),g(0x8,a[_0x4aaaf0(0x1d1)]),g(0x9,_[_0x4aaaf0(0x41f)])],re);let W=class extends Q{constructor(_0x17bfa1,_0x2c5146,_0x361d64,_0x17e0fc,_0x35a693,_0x46125b,_0x300a14,_0x56fe6b,_0x506fb8,_0x261be8,_0x474568,_0x1b17ad,_0x316e6c,_0x25f562){const _0x331b30=_0x4aaaf0;super(_0x17bfa1,_0x2c5146,null,_0x361d64,_0x17e0fc,_0x261be8,_0x25f562,_0x46125b,_0x300a14),u(this,_0x331b30(0x425),_0x331b30(0x362)),u(this,_0x331b30(0x1cb),null),u(this,'_sendingTimer',null),(this[_0x331b30(0x5aa)]=_0x35a693,this[_0x331b30(0x529)]=_0x56fe6b,this[_0x331b30(0x360)]=_0x506fb8,this[_0x331b30(0x428)]=_0x474568,this[_0x331b30(0x37f)]=_0x1b17ad,this[_0x331b30(0x46d)]=_0x316e6c);}[_0x4aaaf0(0x38e)](_0x4718ac){const _0xffcfd9=_0x4aaaf0;return this[_0xffcfd9(0x4be)]['push'](_0x4718ac),this[_0xffcfd9(0x2b5)](),this;}[_0x4aaaf0(0x3c2)](_0x592959){const _0x3d6d86=_0x4aaaf0;if(this[_0x3d6d86(0x24b)](_0x592959))return this[_0x3d6d86(0x50c)](),this['_injector'][_0x3d6d86(0x1da)](k,this[_0x3d6d86(0x41c)],this['type'],null,this[_0x3d6d86(0x4be)],null,[_0x592959],this[_0x3d6d86(0x5c4)]);try{const _0x4cc989=this[_0x3d6d86(0x37f)][_0x3d6d86(0x34d)](_0x592959,this[_0x3d6d86(0x4be)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x4cc989)){const {c1Prime:_0x31c6fd,m2Prime:_0x3f3211}=_0x4cc989;this['_executeRemoteChangeset'](_0x31c6fd);const _0x1c5bae=this[_0x3d6d86(0x5aa)]['createInstance'](W,this['unitID'],this['type'],_0x3f3211,this[_0x3d6d86(0x5c4)]);return this['_clearScheduledTask'](),_0x1c5bae[_0x3d6d86(0x416)](this[_0x3d6d86(0x1cb)]?Math[_0x3d6d86(0x545)](0x0,new Date()[_0x3d6d86(0x3f4)]()-this[_0x3d6d86(0x1cb)]):this[_0x3d6d86(0x237)]()),_0x1c5bae;}throw _0x4cc989[_0x3d6d86(0x574)];}catch(_0x509cb0){return this[_0x3d6d86(0x360)][_0x3d6d86(0x574)](_0x509cb0),this[_0x3d6d86(0x58b)](!0x1);}}[_0x4aaaf0(0x1f9)](){const _0x278c2e=_0x4aaaf0;throw new Error(_0x278c2e(0x41e));}[_0x4aaaf0(0x2cb)](){const _0x2fba89=_0x4aaaf0;throw new Error(_0x2fba89(0x58c));}['onRemoteRetry'](){return this;}[_0x4aaaf0(0x56a)](){const _0x15df35=_0x4aaaf0;return this[_0x15df35(0x50c)](),this[_0x15df35(0x5aa)][_0x15df35(0x1da)](X,this[_0x15df35(0x41c)],this[_0x15df35(0x4aa)],null,this[_0x15df35(0x4be)],this['_handler']);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x416)](_0x1ac82e){const _0xcd06dd=_0x4aaaf0,_0x26c626=_0x1ac82e!=null?_0x1ac82e:this[_0xcd06dd(0x237)]();this[_0xcd06dd(0x1cb)]=new Date()[_0xcd06dd(0x3f4)](),this[_0xcd06dd(0x57e)]=window[_0xcd06dd(0x3c4)](()=>{const _0x3904e0=_0xcd06dd;this['_clearScheduledTask']();let _0x523e50=null;switch(this[_0x3904e0(0x4aa)]){case H[_0x3904e0(0x4d0)]:{_0x523e50=ot(this[_0x3904e0(0x4be)],this['unitID'],this[_0x3904e0(0x46d)],this['_revisionService'],this[_0x3904e0(0x529)]);break;}case H['UNIVER_DOC']:{this['_pendingMutations'][_0x3904e0(0x262)](_0x3c3b11=>_0x3c3b11['id']===ne[_0x3904e0(0x1cf)]['id'])?_0x523e50=Fs(this['_pendingMutations'],this['unitID'],this[_0x3904e0(0x46d)],this['_revisionService'],this[_0x3904e0(0x529)]):_0x523e50=ot(this[_0x3904e0(0x4be)],this[_0x3904e0(0x41c)],this[_0x3904e0(0x46d)],this['_revisionService'],this[_0x3904e0(0x529)]);break;}default:throw new Error(_0x3904e0(0x58a)+this[_0x3904e0(0x4aa)]+_0x3904e0(0x5b6));}const {changeset:_0x1310d1,pendingMutations:_0xde62cc}=_0x523e50;this[_0x3904e0(0x5c4)][_0x3904e0(0x25b)](_0x1310d1);const _0x680eeb=_0xde62cc[_0x3904e0(0x31a)]?this[_0x3904e0(0x5aa)][_0x3904e0(0x1da)](F,this[_0x3904e0(0x41c)],this[_0x3904e0(0x4aa)],_0x1310d1,_0xde62cc,this[_0x3904e0(0x5c4)],void 0x0):this[_0x3904e0(0x5aa)][_0x3904e0(0x1da)](Y,this[_0x3904e0(0x41c)],this[_0x3904e0(0x4aa)],_0x1310d1,this[_0x3904e0(0x5c4)]);_0x680eeb['_updateLocalCache'](),this[_0x3904e0(0x5c4)]['onStateChange'](this,_0x680eeb);},_0x26c626);}[_0x4aaaf0(0x237)](){const _0x341fbd=_0x4aaaf0;var _0x2eb849;const _0x36d709=this[_0x341fbd(0x428)][_0x341fbd(0x50b)]($);return(_0x2eb849=_0x36d709==null?void 0x0:_0x36d709['sendChangesetTimeout'])!=null?_0x2eb849:Zt;}[_0x4aaaf0(0x399)](){const _0x3c5a58=_0x4aaaf0;throw new Error(_0x3c5a58(0x51d));}['_clearScheduledTask'](){const _0x2680bb=_0x4aaaf0;this[_0x2680bb(0x57e)]!=null&&(clearTimeout(this[_0x2680bb(0x57e)]),this[_0x2680bb(0x57e)]=null);}['_onConflict'](_0x3ba745){const _0x277eee=_0x4aaaf0;return this['_clearScheduledTask'](),this[_0x277eee(0x5aa)][_0x277eee(0x1da)](K,this['unitID'],this['type'],null,this[_0x277eee(0x4be)],this[_0x277eee(0x5c4)],_0x3ba745);}};W=Z([g(0x4,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x5,a[_0x4aaaf0(0x1b2)](_['RevisionService'])),g(0x6,a['Inject'](exports['LocalCacheService'])),g(0x7,a['Inject'](exports['MemberService'])),g(0x8,a[_0x4aaaf0(0x1d1)]),g(0x9,a[_0x4aaaf0(0x5df)]),g(0xa,a['IConfigService']),g(0xb,_[_0x4aaaf0(0x41f)]),g(0xc,a[_0x4aaaf0(0x33f)]),g(0xd,a[_0x4aaaf0(0x490)])],W);let Y=class extends Q{constructor(_0x2240cc,_0x5d9065,_0x5376aa,_0x5df73d,_0x4ee512,_0x4d28a3,_0xdba732,_0xb392d6,_0x575842,_0x42fbf5,_0x16e55e){const _0xc4047b=_0x4aaaf0;super(_0x2240cc,_0x5d9065,_0x5376aa,[],_0x5df73d,_0xb392d6,_0x16e55e,_0x4d28a3,_0xdba732),u(this,_0xc4047b(0x425),'awaiting'),u(this,_0xc4047b(0x596),0x0),u(this,_0xc4047b(0x466)),u(this,_0xc4047b(0x5c7)),(this[_0xc4047b(0x5aa)]=_0x4ee512,this[_0xc4047b(0x360)]=_0x575842,this[_0xc4047b(0x37f)]=_0x42fbf5);}[_0x4aaaf0(0x38e)](_0x1452cf){const _0x9c9f04=_0x4aaaf0;this[_0x9c9f04(0x50c)]();const _0x6ae0cc=this['_injector']['createInstance'](F,this[_0x9c9f04(0x41c)],this[_0x9c9f04(0x4aa)],this[_0x9c9f04(0x4f5)],[_0x1452cf],this[_0x9c9f04(0x5c4)],this['_resendTimer']);return _0x6ae0cc[_0x9c9f04(0x2b5)](),_0x6ae0cc;}[_0x4aaaf0(0x3c2)](_0x10ceec){const _0x1320e7=_0x4aaaf0;if(this[_0x1320e7(0x24b)](_0x10ceec))return this[_0x1320e7(0x50c)](),this[_0x1320e7(0x5aa)][_0x1320e7(0x1da)](k,this[_0x1320e7(0x41c)],this[_0x1320e7(0x4aa)],this[_0x1320e7(0x4f5)],[],null,[_0x10ceec],this[_0x1320e7(0x5c4)]);try{const _0x51f2a1=this[_0x1320e7(0x37f)][_0x1320e7(0x33a)]([_0x10ceec],[this[_0x1320e7(0x4f5)]],!0x1);if(_[_0x1320e7(0x3dc)](_0x51f2a1)){const {c1Prime:_0x358ef5,c2Prime:_0x39e871}=_0x51f2a1;this[_0x1320e7(0x36e)](_0x358ef5[0x0]),_0x39e871[0x0][_0x1320e7(0x224)]=this[_0x1320e7(0x24e)](),this[_0x1320e7(0x50c)]();const _0x45293a=this[_0x1320e7(0x5aa)][_0x1320e7(0x1da)](Y,this[_0x1320e7(0x41c)],this['type'],_0x39e871[0x0],this[_0x1320e7(0x5c4)]);return _0x45293a[_0x1320e7(0x2b5)](),_0x45293a;}return this['_onConflict'](!0x1);}catch(_0x5a180a){return this[_0x1320e7(0x360)][_0x1320e7(0x574)](_0x5a180a),this[_0x1320e7(0x58b)](!0x1);}}[_0x4aaaf0(0x1f9)](_0x220b95){const _0x294316=_0x4aaaf0;this[_0x294316(0x50c)]();const _0x51490b=this[_0x294316(0x57d)][_0x294316(0x4ad)](this[_0x294316(0x41c)]);if(_0x220b95[_0x294316(0x4bb)]<_0x51490b-0x1)return this;if(this[_0x294316(0x24b)](_0x220b95))return this[_0x294316(0x5aa)][_0x294316(0x1da)](k,this['unitID'],this[_0x294316(0x4aa)],null,[],this[_0x294316(0x4f5)],[],this[_0x294316(0x5c4)]);this[_0x294316(0x43d)]();const _0x4189f5=this[_0x294316(0x5aa)][_0x294316(0x1da)](re,this[_0x294316(0x41c)],this[_0x294316(0x4aa)],this[_0x294316(0x5c4)]);return _0x4189f5[_0x294316(0x2b5)](),_0x4189f5;}[_0x4aaaf0(0x2cb)](_0x279fb7){const _0x5ef1ab=_0x4aaaf0;return this['_onConflict'](!!(_0x279fb7!=null&&_0x279fb7[_0x5ef1ab(0x267)]));}[_0x4aaaf0(0x488)](_0x3e483b){const _0x6ba021=_0x4aaaf0;return this[_0x6ba021(0x596)]>Ut?this[_0x6ba021(0x56a)]():(this['_resendTimer']=yt(this[_0x6ba021(0x596)],{'timeout':this[_0x6ba021(0x596)],'reqId':_0x3e483b[_0x6ba021(0x2d2)]}),this['_sender']=this[_0x6ba021(0x466)]['subscribe'](({reqId:_0x177921,timeout:_0x3a970e})=>{const _0x5627fd=_0x6ba021;this[_0x5627fd(0x1bc)](_0x177921,_0x3a970e);}),this);}[_0x4aaaf0(0x56a)](){const _0x18b209=_0x4aaaf0;return this['_clearScheduledTask'](),this['_injector']['createInstance'](X,this[_0x18b209(0x41c)],this['type'],this[_0x18b209(0x4f5)],[],this[_0x18b209(0x5c4)]);}['toggleOnline'](){return this;}[_0x4aaaf0(0x399)](){const _0x3d721f=_0x4aaaf0;this['_handler']['onSendChangeset'](this[_0x3d721f(0x4f5)]);}[_0x4aaaf0(0x58b)](_0x5a0551){const _0x38c57e=_0x4aaaf0;return this[_0x38c57e(0x50c)](),this[_0x38c57e(0x5aa)][_0x38c57e(0x1da)](K,this['unitID'],this[_0x38c57e(0x4aa)],this[_0x38c57e(0x4f5)],[],this[_0x38c57e(0x5c4)],_0x5a0551);}[_0x4aaaf0(0x1bc)](_0x131de3,_0x659026){const _0x2b236b=_0x4aaaf0;var _0x46ab1e;_0x131de3===((_0x46ab1e=this[_0x2b236b(0x4f5)])==null?void 0x0:_0x46ab1e[_0x2b236b(0x2d2)])&&(this[_0x2b236b(0x399)](),this['_resendTimeout']=_0x659026===0x0?0x3e8:_0x659026*0x2);}[_0x4aaaf0(0x50c)](){const _0x1a828c=_0x4aaaf0;var _0x29cc20;(_0x29cc20=this[_0x1a828c(0x5c7)])==null||_0x29cc20['unsubscribe'](),this[_0x1a828c(0x596)]=0x0;}};Y=Z([g(0x4,a['Inject'](a[_0x4aaaf0(0x2ee)])),g(0x5,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),g(0x6,a[_0x4aaaf0(0x1b2)](exports['LocalCacheService'])),g(0x7,a['ICommandService']),g(0x8,a['ILogService']),g(0x9,_[_0x4aaaf0(0x41f)]),g(0xa,a['IUndoRedoService'])],Y);let F=class extends Q{constructor(_0xcff493,_0x4d457a,_0x766a5b,_0x56e382,_0x3fcff5,_0x10f15d,_0x2bddb1,_0x20ab29,_0x2725e4,_0x2886b5,_0x2ee654,_0x3a6f9c,_0x3d5e4b){const _0x84db2d=_0x4aaaf0;super(_0xcff493,_0x4d457a,_0x766a5b,_0x56e382,_0x3fcff5,_0x2886b5,_0x3d5e4b,_0x20ab29,_0x2725e4),u(this,_0x84db2d(0x425),_0x84db2d(0x53b)),u(this,_0x84db2d(0x596),0x0),u(this,_0x84db2d(0x466)),u(this,'_sender'),(this[_0x84db2d(0x5aa)]=_0x2bddb1,this[_0x84db2d(0x360)]=_0x2ee654,this[_0x84db2d(0x37f)]=_0x3a6f9c,_0x10f15d&&(this[_0x84db2d(0x466)]=_0x10f15d,this['_sender']=this[_0x84db2d(0x466)]['subscribe'](({reqId:_0x2adff5,timeout:_0x26fb94})=>{const _0x1cad5f=_0x84db2d;this[_0x1cad5f(0x1bc)](_0x2adff5,_0x26fb94);})));}['appendMutation'](_0x5d9bda){const _0x186fa9=_0x4aaaf0;return this[_0x186fa9(0x4be)][_0x186fa9(0x4ce)](_0x5d9bda),this;}[_0x4aaaf0(0x3c2)](_0x3b1e6c){const _0x521f5c=_0x4aaaf0;if(this[_0x521f5c(0x24b)](_0x3b1e6c))return this['_clearScheduledTask'](),this['_injector']['createInstance'](k,this[_0x521f5c(0x41c)],this['type'],this[_0x521f5c(0x4f5)],this['_pendingMutations'],null,[_0x3b1e6c],this[_0x521f5c(0x5c4)]);try{const _0x48d4da=this[_0x521f5c(0x37f)][_0x521f5c(0x33a)]([_0x3b1e6c],[this['_awaitingChangeset']],!0x1);if(_[_0x521f5c(0x3dc)](_0x48d4da)){const {c1Prime:_0x514d70,c2Prime:_0x87d95d}=_0x48d4da,_0x43298f=this['_transformService']['transformMutationsWithChangeset'](_0x514d70[0x0],this[_0x521f5c(0x4be)]);if(_[_0x521f5c(0x5b7)](_0x43298f)){const {c1Prime:_0x299687,m2Prime:_0x12320d}=_0x43298f;return this[_0x521f5c(0x36e)](_0x299687),_0x87d95d[0x0][_0x521f5c(0x224)]=this[_0x521f5c(0x24e)](),this[_0x521f5c(0x50c)](),this[_0x521f5c(0x5aa)][_0x521f5c(0x1da)](F,this[_0x521f5c(0x41c)],this[_0x521f5c(0x4aa)],_0x87d95d[0x0],_0x12320d,this[_0x521f5c(0x5c4)],void 0x0);}throw _0x43298f[_0x521f5c(0x574)];}throw _0x48d4da[_0x521f5c(0x574)];}catch(_0x26cfc3){return this[_0x521f5c(0x360)][_0x521f5c(0x574)](_0x26cfc3),this['_onConflict'](!0x1);}}[_0x4aaaf0(0x1f9)](_0x540ac0){const _0x84a4fb=_0x4aaaf0;if(this['_clearScheduledTask'](),this[_0x84a4fb(0x24b)](_0x540ac0))return this[_0x84a4fb(0x5aa)][_0x84a4fb(0x1da)](k,this[_0x84a4fb(0x41c)],this['type'],null,this[_0x84a4fb(0x4be)],this[_0x84a4fb(0x4f5)],[],this[_0x84a4fb(0x5c4)]);this[_0x84a4fb(0x43d)]();const _0x3c173f=this[_0x84a4fb(0x5aa)][_0x84a4fb(0x1da)](W,this[_0x84a4fb(0x41c)],this['type'],this[_0x84a4fb(0x4be)],this[_0x84a4fb(0x5c4)]);return _0x3c173f['_schedule'](),_0x3c173f[_0x84a4fb(0x2b5)](),_0x3c173f;}[_0x4aaaf0(0x2cb)](_0x4f1102){const _0x4877a0=_0x4aaaf0;return this[_0x4877a0(0x58b)](!!(_0x4f1102!=null&&_0x4f1102['isPermissionRej']));}[_0x4aaaf0(0x488)](_0x5b6542){const _0x208204=_0x4aaaf0;return this[_0x208204(0x596)]>Ut?this[_0x208204(0x56a)]():(this['_resendTimer']=yt(this[_0x208204(0x596)],{'timeout':this[_0x208204(0x596)],'reqId':_0x5b6542[_0x208204(0x2d2)]}),this[_0x208204(0x5c7)]=this[_0x208204(0x466)]['subscribe'](({reqId:_0x24216,timeout:_0x494f71})=>{const _0x4705af=_0x208204;this[_0x4705af(0x1bc)](_0x24216,_0x494f71);}),this);}['toggleOffline'](){const _0x2db7dc=_0x4aaaf0;return this['_clearScheduledTask'](),this[_0x2db7dc(0x5aa)][_0x2db7dc(0x1da)](X,this[_0x2db7dc(0x41c)],this[_0x2db7dc(0x4aa)],this['_awaitingChangeset'],this[_0x2db7dc(0x4be)],this[_0x2db7dc(0x5c4)]);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x399)](){const _0x2562e1=_0x4aaaf0;this[_0x2562e1(0x5c4)][_0x2562e1(0x25b)](this[_0x2562e1(0x4f5)]);}[_0x4aaaf0(0x58b)](_0x2471f8){const _0xba74c7=_0x4aaaf0;return this[_0xba74c7(0x50c)](),this[_0xba74c7(0x5aa)]['createInstance'](K,this[_0xba74c7(0x41c)],this['type'],null,this[_0xba74c7(0x4be)],this[_0xba74c7(0x5c4)],_0x2471f8);}[_0x4aaaf0(0x1bc)](_0x270056,_0x473f95){const _0x4a5445=_0x4aaaf0;var _0x52382f;_0x270056===((_0x52382f=this[_0x4a5445(0x4f5)])==null?void 0x0:_0x52382f[_0x4a5445(0x2d2)])&&(this[_0x4a5445(0x399)](),this['_resendTimeout']=_0x473f95===0x0?0x3e8:_0x473f95*0x2);}['_clearScheduledTask'](){const _0x5d074=_0x4aaaf0;var _0x3b637e;(_0x3b637e=this[_0x5d074(0x5c7)])==null||_0x3b637e[_0x5d074(0x4ed)](),this[_0x5d074(0x596)]=0x0;}};F=Z([g(0x6,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x7,a['Inject'](_[_0x4aaaf0(0x509)])),g(0x8,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0x9,a[_0x4aaaf0(0x5df)]),g(0xa,a[_0x4aaaf0(0x1d1)]),g(0xb,_[_0x4aaaf0(0x41f)]),g(0xc,a[_0x4aaaf0(0x490)])],F);let K=class extends Q{constructor(_0x334c95,_0x15bac7,_0x1bb4c5,_0x905ff6,_0x3db291,_0x3197f6=!0x1,_0xcae88,_0x4e746f,_0xa904a0,_0x516880,_0x4403ed,_0x12793a,_0x112603){const _0x1d1a0a=_0x4aaaf0;super(_0x334c95,_0x15bac7,_0x1bb4c5,_0x905ff6,_0x3db291,_0x4e746f,_0xa904a0,_0x4403ed,_0x516880),u(this,_0x1d1a0a(0x425),_0x1d1a0a(0x587)),(this[_0x1d1a0a(0x3c7)]=_0x3197f6,this['_permissionService']=_0xcae88,this[_0x1d1a0a(0x2af)]=_0x12793a,this[_0x1d1a0a(0x4c3)]=_0x112603,this[_0x1d1a0a(0x1bb)](),this[_0x1d1a0a(0x4fa)](),this[_0x1d1a0a(0x341)]());}[_0x4aaaf0(0x38e)](){return this;}[_0x4aaaf0(0x3c2)](){return this;}[_0x4aaaf0(0x1f9)](){return this;}['onRemoteRej'](){return this;}[_0x4aaaf0(0x488)](){return this;}[_0x4aaaf0(0x56a)](){return this;}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x399)](){const _0x449d75=_0x4aaaf0;throw new Error(_0x449d75(0x29d));}[_0x4aaaf0(0x4fa)](){const _0x13ce51=_0x4aaaf0;this['_localCacheService']['updateOfflineData'](this[_0x13ce51(0x41c)],this['type'],null,[]);}[_0x4aaaf0(0x1bb)](){const _0x27bd49=_0x4aaaf0;this[_0x27bd49(0x3c7)]?this['_notificationService'][_0x27bd49(0x4c5)]({'title':this[_0x27bd49(0x2af)]['t'](_0x27bd49(0x2ba)),'content':this[_0x27bd49(0x2af)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x27bd49(0x4c3)][_0x27bd49(0x4c5)]({'title':this[_0x27bd49(0x2af)]['t'](_0x27bd49(0x230)),'content':this[_0x27bd49(0x2af)]['t']('conflict.content'),'type':_0x27bd49(0x574),'duration':0x0});}['_disableEditing'](){const _0x48a607=_0x4aaaf0;this['_permissionService'][_0x48a607(0x585)](new C[(_0x48a607(0x1e9))](this['unitID'])['id'],!0x1);}};K=Z([g(0x6,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x26c)])),g(0x7,a[_0x4aaaf0(0x5df)]),g(0x8,a[_0x4aaaf0(0x490)]),g(0x9,a['Inject'](exports[_0x4aaaf0(0x49c)])),g(0xa,a[_0x4aaaf0(0x1b2)](_['RevisionService'])),g(0xb,a['Inject'](a['LocaleService'])),g(0xc,A['INotificationService'])],K);let X=class extends Q{constructor(_0x29416f,_0x4fa66a,_0x3ed536,_0x4918f9,_0xec43d2,_0x466fb8,_0x3a30ba,_0x5e4409,_0x1d80a6,_0x38438d){const _0x3a3dd6=_0x4aaaf0;super(_0x29416f,_0x4fa66a,_0x3ed536,_0x4918f9,_0xec43d2,_0x1d80a6,_0x38438d,_0x3a30ba,_0x5e4409),u(this,_0x3a3dd6(0x425),_0x3a3dd6(0x45a)),this[_0x3a3dd6(0x5aa)]=_0x466fb8;}[_0x4aaaf0(0x38e)](_0x4fabf7){const _0x1f9f56=_0x4aaaf0;return this[_0x1f9f56(0x4be)]['push'](_0x4fabf7),this[_0x1f9f56(0x2b5)](),this;}[_0x4aaaf0(0x3c2)](_0x4407eb){const _0x5a676f=_0x4aaaf0;throw new Error(_0x5a676f(0x2ed));}[_0x4aaaf0(0x1f9)](){const _0x355695=_0x4aaaf0;throw new Error(_0x355695(0x2eb));}[_0x4aaaf0(0x2cb)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x4aaaf0(0x488)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x16ccd7=_0x4aaaf0,{_injector:_0x3f9438,_pendingMutations:_0x341a37,_awaitingChangeset:_0x503c7c,unitID:_0xd37e5a,_handler:_0x3b0630,type:_0x437884}=this,_0x82ce7f=Pt(_0x3f9438,_0xd37e5a,_0x437884,_0x503c7c,_0x341a37,_0x3b0630);return _0x82ce7f instanceof W?_0x82ce7f[_0x16ccd7(0x416)]():(_0x82ce7f instanceof F||_0x82ce7f instanceof Y)&&_0x82ce7f[_0x16ccd7(0x399)](),_0x82ce7f;}['resend'](){const _0x4681dc=_0x4aaaf0;throw new Error(_0x4681dc(0x456));}};X=Z([g(0x5,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x6,a['Inject'](_[_0x4aaaf0(0x509)])),g(0x7,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0x8,a[_0x4aaaf0(0x5df)]),g(0x9,a[_0x4aaaf0(0x490)])],X);let k=class extends Q{constructor(_0x3d0ffb,_0x1d4d75,_0x458503,_0x5a1239,_0x5bb8a3,_0x59a75e,_0x40ad64,_0x25a614,_0x347bae,_0x1ec464,_0x48236f,_0x5036ea,_0x541193,_0x3e93d3){const _0x2edaa7=_0x4aaaf0;super(_0x3d0ffb,_0x1d4d75,_0x458503,_0x5a1239,_0x40ad64,_0x5036ea,_0x541193,_0x347bae,_0x1ec464),u(this,_0x2edaa7(0x425),_0x2edaa7(0x285)),(this['_acknowledgedAwaitingChangeset']=_0x5bb8a3,this[_0x2edaa7(0x452)]=_0x59a75e,this[_0x2edaa7(0x5aa)]=_0x25a614,this[_0x2edaa7(0x360)]=_0x48236f,this[_0x2edaa7(0x37f)]=_0x3e93d3);}['onMissedChangesetFetched'](_0x1096a0){const _0x5c5bf9=_0x4aaaf0;try{const _0x4a12df=[..._0x1096a0,...this['_queuedRemoteChangesets']],_0x4ade08=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']]['filter'](_0x351f49=>!!_0x351f49);let _0x3672a0,_0x352bcb;if(_0x4ade08[_0x5c5bf9(0x31a)]){const _0x2e6c67=this[_0x5c5bf9(0x37f)][_0x5c5bf9(0x33a)](_0x4a12df,_0x4ade08,!0x1);if(!_['isTransformChangesetsSuccess'](_0x2e6c67))throw _0x2e6c67['error'];_0x3672a0=_0x2e6c67[_0x5c5bf9(0x3f1)],_0x352bcb=_0x2e6c67[_0x5c5bf9(0x2a9)];}else _0x3672a0=_0x4a12df,_0x352bcb=[];let _0x47f002=this[_0x5c5bf9(0x4be)];_0x3672a0[_0x5c5bf9(0x1d6)](_0x1d3a87=>{const _0x56405e=_0x5c5bf9;let _0x142871;if(_0x47f002[_0x56405e(0x31a)]){const _0x179801=this[_0x56405e(0x37f)][_0x56405e(0x34d)](_0x1d3a87,_0x47f002);if(!_[_0x56405e(0x5b7)](_0x179801))throw _0x179801[_0x56405e(0x574)];_0x142871=_0x179801[_0x56405e(0x3f1)],_0x47f002=_0x179801[_0x56405e(0x3a9)];}else _0x142871=_0x1d3a87;this[_0x56405e(0x36e)](_0x142871);}),this['_acknowledgedAwaitingChangeset']&&this[_0x5c5bf9(0x43d)](),this['_awaitingChangeset']&&_0x352bcb[_0x5c5bf9(0x31a)]&&(_0x352bcb[0x0]['baseRev']=this[_0x5c5bf9(0x24e)]());let _0x5d2aa1;if(this[_0x5c5bf9(0x4f5)]&&_0x47f002['length']!==0x0)_0x5d2aa1=this[_0x5c5bf9(0x5aa)][_0x5c5bf9(0x1da)](F,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],_0x352bcb[0x0],_0x47f002,this[_0x5c5bf9(0x5c4)],void 0x0);else{if(this[_0x5c5bf9(0x4f5)]&&_0x47f002[_0x5c5bf9(0x31a)]===0x0)_0x352bcb[0x0][_0x5c5bf9(0x224)]=this[_0x5c5bf9(0x24e)](),_0x5d2aa1=this['_injector'][_0x5c5bf9(0x1da)](Y,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],_0x352bcb[0x0],this[_0x5c5bf9(0x5c4)]);else{if(_0x47f002[_0x5c5bf9(0x31a)]!==0x0){const _0x34f22d=this[_0x5c5bf9(0x5aa)][_0x5c5bf9(0x1da)](W,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],_0x47f002,this[_0x5c5bf9(0x5c4)]);_0x34f22d['_schedule'](),_0x5d2aa1=_0x34f22d;}else _0x5d2aa1=this[_0x5c5bf9(0x5aa)][_0x5c5bf9(0x1da)](re,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],this[_0x5c5bf9(0x5c4)]);}}return _0x5d2aa1[_0x5c5bf9(0x2b5)](),_0x5d2aa1;}catch(_0x476764){return this[_0x5c5bf9(0x360)][_0x5c5bf9(0x574)](_0x5c5bf9(0x4b7),'failed\x20to\x20apply\x20missed\x20changesets!',_0x476764),this[_0x5c5bf9(0x5aa)]['createInstance'](K,this[_0x5c5bf9(0x41c)],this['type'],this['_awaitingChangeset'],this[_0x5c5bf9(0x4be)],this['_handler'],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4aaaf0(0x38e)](_0x2426b0){const _0x279f17=_0x4aaaf0;return this[_0x279f17(0x4be)]['push'](_0x2426b0),this;}[_0x4aaaf0(0x3c2)](_0x42bf41){const _0x471e50=_0x4aaaf0;return this[_0x471e50(0x452)]['push'](_0x42bf41),this;}[_0x4aaaf0(0x1f9)](_0xd4adbd){const _0x1ae1fc=_0x4aaaf0;if(this[_0x1ae1fc(0x4f5)])return this[_0x1ae1fc(0x387)]=this['_awaitingChangeset'],this[_0x1ae1fc(0x4f5)]=null,this;throw new Error(_0x1ae1fc(0x311));}[_0x4aaaf0(0x2cb)](_0x563943){const _0xd284b6=_0x4aaaf0;return this['_onConflict'](!!(_0x563943!=null&&_0x563943[_0xd284b6(0x267)]));}[_0x4aaaf0(0x488)](){return this;}[_0x4aaaf0(0x56a)](){const _0x4461ee=_0x4aaaf0;return this[_0x4461ee(0x5aa)][_0x4461ee(0x1da)](X,this['unitID'],this[_0x4461ee(0x4aa)],this['_awaitingChangeset'],this[_0x4461ee(0x4be)],this[_0x4461ee(0x5c4)]);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x58b)](_0x239112){const _0x19d530=_0x4aaaf0;return this['_injector']['createInstance'](K,this[_0x19d530(0x41c)],this['type'],this[_0x19d530(0x4f5)],this['_pendingMutations'],this[_0x19d530(0x5c4)],_0x239112);}};k=Z([g(0x7,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x8,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),g(0x9,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0xa,a[_0x4aaaf0(0x1d1)]),g(0xb,a[_0x4aaaf0(0x5df)]),g(0xc,a[_0x4aaaf0(0x490)]),g(0xd,_[_0x4aaaf0(0x41f)])],k);function Pt(_0x2f0e91,_0x1af7fa,_0x1443e7,_0x2d8f98,_0x45a6b0,_0x408c66){const _0x3cae69=_0x4aaaf0;return _0x2d8f98&&_0x45a6b0['length']?_0x2f0e91['createInstance'](F,_0x1af7fa,_0x1443e7,_0x2d8f98,_0x45a6b0,_0x408c66,void 0x0):_0x2d8f98?_0x2f0e91[_0x3cae69(0x1da)](Y,_0x1af7fa,_0x1443e7,_0x2d8f98,_0x408c66):_0x45a6b0[_0x3cae69(0x31a)]?_0x2f0e91[_0x3cae69(0x1da)](W,_0x1af7fa,_0x1443e7,_0x45a6b0,_0x408c66):_0x2f0e91['createInstance'](re,_0x1af7fa,_0x1443e7,_0x408c66);}var Xs=Object['defineProperty'],qs=Object[_0x4aaaf0(0x28b)],qe=(_0x56eae6,_0x5e49c0,_0x1429e6,_0x465550)=>{const _0x16614b=_0x4aaaf0;for(var _0x5e5151=_0x465550>0x1?void 0x0:_0x465550?qs(_0x5e49c0,_0x1429e6):_0x5e49c0,_0x236ca3=_0x56eae6[_0x16614b(0x31a)]-0x1,_0x11ec56;_0x236ca3>=0x0;_0x236ca3--)(_0x11ec56=_0x56eae6[_0x236ca3])&&(_0x5e5151=(_0x465550?_0x11ec56(_0x5e49c0,_0x1429e6,_0x5e5151):_0x11ec56(_0x5e5151))||_0x5e5151);return _0x465550&&_0x5e5151&&Xs(_0x5e49c0,_0x1429e6,_0x5e5151),_0x5e5151;},p=(_0x44727a,_0x1a2638)=>(_0x193615,_0x1fb18a)=>_0x1a2638(_0x193615,_0x1fb18a,_0x44727a);exports[_0x4aaaf0(0x535)]=class extends a[_0x4aaaf0(0x275)]{constructor(_0x2619be,_0x55a433,_0x31a01b,_0x55b067,_0x4bc337,_0x33cf5a,_0x48d711,_0x70542c,_0x5a6f1f,_0x58d863,_0x2b738a,_0x3a51ba,_0x2adac2){const _0x2b8a4e=_0x4aaaf0;super(),u(this,_0x2b8a4e(0x38b),new v[(_0x2b8a4e(0x442))](null)),u(this,_0x2b8a4e(0x25f),this['_state$'][_0x2b8a4e(0x2a7)]()),u(this,_0x2b8a4e(0x5b9)),u(this,_0x2b8a4e(0x2e1),!0x1),u(this,'_changesetSessionId',''),u(this,_0x2b8a4e(0x3d7),0x0),u(this,_0x2b8a4e(0x3bc),this['state$'][_0x2b8a4e(0x2b0)](v[_0x2b8a4e(0x263)](_0x129b23=>_0x129b23?_0x129b23[_0x2b8a4e(0x425)]:D['OFFLINE']),v[_0x2b8a4e(0x566)](0x1))),u(this,_0x2b8a4e(0x4b8),!0x1),u(this,_0x2b8a4e(0x21a),[]),(this[_0x2b8a4e(0x41c)]=_0x2619be,this[_0x2b8a4e(0x386)]=_0x55a433,this[_0x2b8a4e(0x356)]=_0x31a01b,this['_injector']=_0x55b067,this[_0x2b8a4e(0x4e9)]=_0x4bc337,this['_compressMutationService']=_0x33cf5a,this[_0x2b8a4e(0x2af)]=_0x48d711,this['_revisionService']=_0x70542c,this[_0x2b8a4e(0x360)]=_0x5a6f1f,this[_0x2b8a4e(0x310)]=_0x58d863,this[_0x2b8a4e(0x206)]=_0x2b738a,this[_0x2b8a4e(0x290)]=_0x3a51ba,this[_0x2b8a4e(0x1f2)]=_0x2adac2);}get[_0x4aaaf0(0x2f9)](){return this['_state'];}async[_0x4aaaf0(0x1d7)](){const _0x3940a1=_0x4aaaf0;if(this[_0x3940a1(0x2f9)])throw new Error(_0x3940a1(0x481));await this['_init']();}[_0x4aaaf0(0x221)](){const _0x5292fa=_0x4aaaf0;return this[_0x5292fa(0x2e1)]=!0x0,a[_0x5292fa(0x2c6)](()=>{const _0x45836a=_0x5292fa;this[_0x45836a(0x2e1)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x468f61){const _0x4f22e2=_0x4aaaf0;this[_0x4f22e2(0x5b9)]=_0x468f61,this[_0x4f22e2(0x38b)][_0x4f22e2(0x3b3)](_0x468f61);}async[_0x4aaaf0(0x33d)](){const _0x1accde=_0x4aaaf0;var _0x11ee79;this[_0x1accde(0x57f)](await this[_0x1accde(0x4ba)]()),this[_0x1accde(0x1f2)]&&((_0x11ee79=this[_0x1accde(0x1f2)])==null||_0x11ee79[_0x1accde(0x45f)](this[_0x1accde(0x41c)]),this['disposeWithMe'](this[_0x1accde(0x1f2)][_0x1accde(0x434)](this['unitID'])['subscribe'](_0x358712=>{const _0x241577=_0x1accde;this[_0x241577(0x360)][_0x241577(0x43f)]('[CollaborationEntity]',_0x241577(0x1b1),_0x358712),_0x358712===Ot[_0x241577(0x487)]?(this['_messageService'][_0x241577(0x4c5)]({'content':this[_0x241577(0x2af)]['t'](_0x241577(0x4f4)),'type':J[_0x241577(0x497)][_0x241577(0x34b)]}),this[_0x241577(0x290)][_0x241577(0x585)](new C[(_0x241577(0x1e9))](this[_0x241577(0x41c)])['id'],!0x1),this['_permissionService'][_0x241577(0x3bf)](!0x1)):(this[_0x241577(0x290)][_0x241577(0x585)](new C[(_0x241577(0x1e9))](this[_0x241577(0x41c)])['id'],!0x0),this[_0x241577(0x290)][_0x241577(0x3bf)](!0x0));})));let _0x42eaeb=!0x1;return this[_0x1accde(0x367)](this['session']['sessionStatus$'][_0x1accde(0x236)](_0x20c8dd=>{const _0x46f5ac=_0x1accde;_0x20c8dd===x[_0x46f5ac(0x322)]?this['_toggleOnline'](_0x42eaeb):_0x20c8dd===x[_0x46f5ac(0x270)]&&(_0x42eaeb=!0x0,this[_0x46f5ac(0x3a8)]());})),this[_0x1accde(0x367)](this[_0x1accde(0x386)]['event$'][_0x1accde(0x236)](_0x283be0=>{const _0x5dff72=_0x1accde;try{switch(_0x283be0[_0x5dff72(0x405)]){case _[_0x5dff72(0x2bb)][_0x5dff72(0x258)]:{this[_0x5dff72(0x21e)](_['parseProtocolChangeset'](_0x283be0[_0x5dff72(0x2cf)]));break;}case _[_0x5dff72(0x2bb)][_0x5dff72(0x540)]:{this['_onRemoteACK'](_0x283be0[_0x5dff72(0x2cf)]);break;}case _[_0x5dff72(0x2bb)]['CHANGESET_REJ']:{this[_0x5dff72(0x37c)]();break;}case _[_0x5dff72(0x2bb)][_0x5dff72(0x5d7)]:{this[_0x5dff72(0x559)](_0x283be0['data']);break;}case _['CollaborationEvent'][_0x5dff72(0x44e)]:{this[_0x5dff72(0x2ec)](_0x283be0[_0x5dff72(0x2cf)][_0x5dff72(0x2b3)][_0x5dff72(0x263)](_0x4e0dd4=>_['parseProtocolChangeset'](_0x4e0dd4)));break;}case _[_0x5dff72(0x2bb)]['PERMISSION_REJ']:this[_0x5dff72(0x37c)]({'isPermissionRej':!0x0});}}catch(_0x41d10c){throw console[_0x5dff72(0x574)](_0x5dff72(0x2fd),_0x41d10c),_0x41d10c;}})),this['_state'];}[_0x4aaaf0(0x20f)](){this['_transitionLocked']=!0x1;}[_0x4aaaf0(0x3f9)](){const _0x4b5f5e=_0x4aaaf0;if(this[_0x4b5f5e(0x4b8)])throw new Error(_0x4b5f5e(0x5d9));this[_0x4b5f5e(0x4b8)]=!0x0;}[_0x4aaaf0(0x351)](_0x157721){const _0x4ccea6=_0x4aaaf0;this[_0x4ccea6(0x3f9)](),this[_0x4ccea6(0x57f)](this[_0x4ccea6(0x5b9)][_0x4ccea6(0x38e)](_0x157721)),this[_0x4ccea6(0x20f)]();}['_onRemoteChangeset'](_0x1cff23){const _0x3ed36e=_0x4aaaf0;if(!(_0x1cff23[_0x3ed36e(0x4bb)]<=this[_0x3ed36e(0x57d)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0x3ed36e(0x2e1)]){this[_0x3ed36e(0x21a)][_0x3ed36e(0x4ce)](_0x1cff23);return;}this[_0x3ed36e(0x3cf)](_0x1cff23);}}[_0x4aaaf0(0x3bb)](){const _0x3c8006=_0x4aaaf0;this['_remoteChangesetQueue'][_0x3c8006(0x1d6)](_0x3bd503=>this[_0x3c8006(0x3cf)](_0x3bd503)),this[_0x3c8006(0x21a)]=[];}[_0x4aaaf0(0x3cf)](_0x1a715f){const _0x2cc8ba=_0x4aaaf0,_0x728994=this['_compressMutationService'][_0x2cc8ba(0x5c5)][_0x2cc8ba(0x3cb)](this['_compressMutationService']['interceptor'][_0x2cc8ba(0x492)]()['COMPRESS_MUTATION_APPLY'])(_0x1a715f[_0x2cc8ba(0x2b7)],null)||_0x1a715f[_0x2cc8ba(0x2b7)],_0x1e9620={..._0x1a715f,'mutations':_0x728994};this[_0x2cc8ba(0x3f9)](),this[_0x2cc8ba(0x57f)](this['_state'][_0x2cc8ba(0x3c2)](_0x1e9620)),this[_0x2cc8ba(0x20f)]();}['_onRemoteACK'](_0x3c7b53){const _0x4ea5ee=_0x4aaaf0;this['_lockTransition'](),this[_0x4ea5ee(0x57f)](this[_0x4ea5ee(0x5b9)][_0x4ea5ee(0x1f9)](_0x3c7b53)),this['_unlockTransition']();}[_0x4aaaf0(0x37c)](_0x43458e){const _0x165fc7=_0x4aaaf0;this[_0x165fc7(0x3f9)](),this[_0x165fc7(0x57f)](this[_0x165fc7(0x5b9)]['onRemoteRej'](_0x43458e)),this['_unlockTransition']();}[_0x4aaaf0(0x559)](_0x3b92c3){const _0x1e4f1f=_0x4aaaf0;this[_0x1e4f1f(0x3f9)](),this['_updateState'](this['_state']['onRemoteRetry'](_0x3b92c3)),this[_0x1e4f1f(0x20f)]();}[_0x4aaaf0(0x2ec)](_0x26bf80){const _0x30a952=_0x4aaaf0;if(!(this['_state']instanceof k))throw new TypeError(_0x30a952(0x4c4));const _0x53a5f3=_0x26bf80['map'](_0x2805de=>{const _0x525bb2=_0x30a952,_0x3c59ee=this[_0x525bb2(0x528)][_0x525bb2(0x5c5)]['fetchThroughInterceptors'](this[_0x525bb2(0x528)][_0x525bb2(0x5c5)][_0x525bb2(0x492)]()[_0x525bb2(0x296)])(_0x2805de['mutations'],null)||_0x2805de['mutations'];return{..._0x2805de,'mutations':_0x3c59ee};});this[_0x30a952(0x3f9)](),this[_0x30a952(0x57f)](this[_0x30a952(0x5b9)][_0x30a952(0x3f5)](_0x53a5f3)),this[_0x30a952(0x20f)]();}['_toggleOffline'](){const _0x49037b=_0x4aaaf0;this[_0x49037b(0x3f9)](),this[_0x49037b(0x57f)](this['_state'][_0x49037b(0x56a)]()),this[_0x49037b(0x20f)]();}[_0x4aaaf0(0x454)](_0x4357af=!0x1){const _0x1fbe2b=_0x4aaaf0;this[_0x1fbe2b(0x3f9)](),this['_updateState'](this[_0x1fbe2b(0x5b9)][_0x1fbe2b(0x3b7)]()),this['_unlockTransition']();const _0x414f75=this[_0x1fbe2b(0x5b9)];_0x4357af&&_0x414f75 instanceof re&&(this[_0x1fbe2b(0x3f9)](),this[_0x1fbe2b(0x57f)](_0x414f75[_0x1fbe2b(0x5e0)]()),this[_0x1fbe2b(0x20f)]());}async[_0x4aaaf0(0x4ba)](){return new Promise(_0x57a361=>{const _0x28ad5e=_0x47ba;this[_0x28ad5e(0x386)][_0x28ad5e(0x4da)][_0x28ad5e(0x2b0)](v[_0x28ad5e(0x53f)](0x1))[_0x28ad5e(0x236)](async _0x45518a=>{const _0x5847ef=_0x28ad5e;_0x57a361(await this[_0x5847ef(0x2e4)](_0x45518a===x[_0x5847ef(0x322)]));});});}[_0x4aaaf0(0x32a)](){const _0x16a727=_0x4aaaf0,_0x13e574=this[_0x16a727(0x41c)];return{'onStateChange':(_0x5a02be,_0xdb55f8)=>{const _0x100bd4=_0x16a727;if(_0x5a02be!==this[_0x100bd4(0x5b9)])throw new Error(_0x100bd4(0x219)+_0x5a02be[_0x100bd4(0x425)]+_0x100bd4(0x408)+_0xdb55f8[_0x100bd4(0x425)]+'\x0aCurrent:\x20'+this[_0x100bd4(0x5b9)][_0x100bd4(0x425)]);this[_0x100bd4(0x57f)](_0xdb55f8);},'onSendChangeset':_0x3c3426=>{const _0x58ff92=_0x16a727;_0x3c3426[_0x58ff92(0x504)]||(_0x3c3426['sid']=this[_0x58ff92(0x3e9)],_0x3c3426[_0x58ff92(0x2d2)]=++this[_0x58ff92(0x3d7)]);const _0x2edc15={'eventID':_[_0x58ff92(0x2bb)][_0x58ff92(0x47c)],'data':{'unitID':_0x3c3426[_0x58ff92(0x41c)],'unitType':this[_0x58ff92(0x356)],'changeset':_0x3c3426,'memberID':this[_0x58ff92(0x386)][_0x58ff92(0x573)]()}};this[_0x58ff92(0x386)][_0x58ff92(0x306)](_0x2edc15,this[_0x58ff92(0x41c)]);},'onMissingChangesets':({from:_0x5ec168,to:_0x209247})=>{const _0x121250=_0x16a727;this[_0x121250(0x360)][_0x121250(0x43f)](_0x121250(0x229),_0x121250(0x5c2)+_0x5ec168+_0x121250(0x207)+_0x209247);const _0x45d2ff={'eventID':_[_0x121250(0x2bb)][_0x121250(0x3c6)],'data':{'unitID':_0x13e574,'unitType':this[_0x121250(0x356)],'from':_0x5ec168,'to':_0x209247}};this['session'][_0x121250(0x306)](_0x45d2ff,this[_0x121250(0x41c)]);}};}async['_createInitialStateImpl'](_0x4e9b7b){const _0x434bd3=_0x4aaaf0;var _0x53a2ed,_0x3cd9a8;const _0x44a201=await this[_0x434bd3(0x4e9)][_0x434bd3(0x436)](this['unitID']),_0x4877dd=(_0x53a2ed=_0x44a201==null?void 0x0:_0x44a201['mutations'])!=null?_0x53a2ed:[],_0x4f2af8=(_0x3cd9a8=_0x44a201==null?void 0x0:_0x44a201[_0x434bd3(0x1cd)])!=null?_0x3cd9a8:null,_0x50118d=!!(_0x4f2af8!=null&&_0x4f2af8[_0x434bd3(0x504)])&&!!(_0x4f2af8!=null&&_0x4f2af8[_0x434bd3(0x2d2)]);this['_changesetSessionId']=_0x50118d?_0x4f2af8[_0x434bd3(0x504)]:Ds(),this[_0x434bd3(0x3d7)]=_0x50118d?_0x4f2af8[_0x434bd3(0x2d2)]:0x0;const _0x9fa85f=this[_0x434bd3(0x41c)];try{this[_0x434bd3(0x2a8)](_0x4f2af8,_0x4877dd);}catch(_0x1c8582){this[_0x434bd3(0x360)][_0x434bd3(0x574)](_0x1c8582);}const _0x41dbf0=this[_0x434bd3(0x32a)]();if(_0x4e9b7b){const _0x39287b=Pt(this[_0x434bd3(0x5aa)],_0x9fa85f,this[_0x434bd3(0x356)],_0x4f2af8,_0x4877dd,_0x41dbf0);return _0x39287b instanceof W?_0x39287b[_0x434bd3(0x416)]():(_0x39287b instanceof F||_0x39287b instanceof Y)&&_0x39287b[_0x434bd3(0x399)](),_0x39287b;}return this[_0x434bd3(0x5aa)][_0x434bd3(0x1da)](X,_0x9fa85f,this['_type'],_0x4f2af8,_0x4877dd,_0x41dbf0);}[_0x4aaaf0(0x2a8)](_0x7ed284,_0x48ba84){const _0x304c7f=_0x4aaaf0;var _0x126ad6,_0x28234d;const _0x554a9c=this[_0x304c7f(0x528)]['interceptor'][_0x304c7f(0x3cb)](this[_0x304c7f(0x528)]['interceptor'][_0x304c7f(0x492)]()[_0x304c7f(0x296)]);(_0x126ad6=_0x554a9c((_0x7ed284==null?void 0x0:_0x7ed284[_0x304c7f(0x2b7)])||[],null))==null||_0x126ad6['forEach'](_0x7d3e73=>this[_0x304c7f(0x310)][_0x304c7f(0x593)](_0x7d3e73['id'],_0x7d3e73[_0x304c7f(0x348)])),(_0x28234d=_0x554a9c(_0x48ba84||[],null))==null||_0x28234d['forEach'](_0x178492=>this['_commandService'][_0x304c7f(0x593)](_0x178492['id'],_0x178492[_0x304c7f(0x348)]));}},exports['CollaborationEntity']=qe([p(0x3,a[_0x4aaaf0(0x1b2)](a['Injector'])),p(0x4,a['Inject'](exports[_0x4aaaf0(0x49c)])),p(0x5,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x2f4)])),p(0x6,a[_0x4aaaf0(0x1b2)](a['LocaleService'])),p(0x7,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),p(0x8,a['ILogService']),p(0x9,a['ICommandService']),p(0xa,A[_0x4aaaf0(0x31b)]),p(0xb,a['IPermissionService']),p(0xc,a[_0x4aaaf0(0x4cd)](Re))],exports[_0x4aaaf0(0x535)]),exports[_0x4aaaf0(0x21f)]=class extends exports['CollaborationEntity']{constructor(_0x1b0d2a,_0x91177,_0x5007d2,_0x351e21,_0x86b7ea,_0x1e8038,_0x201500,_0x4ab2b5,_0x1f898e,_0x5d932d,_0x5c9cfd,_0xbd720f,_0x50a064,_0x2567bb,_0x474483,_0x3f2e19,_0x3d49bd){const _0x5f2b0b=_0x4aaaf0;super(_0x1b0d2a,_0x5007d2,_0x91177,_0x351e21,_0x86b7ea,_0x1e8038,_0x201500,_0x4ab2b5,_0x50a064,_0x2567bb,_0x474483,_0x3f2e19,_0x3d49bd),this['unitID']=_0x1b0d2a,this['type']=_0x91177,this[_0x5f2b0b(0x3eb)]=_0x1f898e,this[_0x5f2b0b(0x3ca)]=_0x5d932d,this[_0x5f2b0b(0x235)]=_0x5c9cfd,this[_0x5f2b0b(0x389)]=_0xbd720f;}['_createHandler'](){const _0x32b438=_0x4aaaf0,_0x5c18d9=super[_0x32b438(0x32a)]();return _0x5c18d9[_0x32b438(0x1ef)]=_0x3b0c85=>this[_0x32b438(0x3ca)][_0x32b438(0x358)](_0x3b0c85),_0x5c18d9[_0x32b438(0x4d3)]=_0x39ca6a=>this[_0x32b438(0x235)]['transformSelections'](_0x39ca6a),_0x5c18d9[_0x32b438(0x216)]=_0x4ffab9=>this[_0x32b438(0x389)][_0x32b438(0x4d9)](_0x4ffab9),_0x5c18d9[_0x32b438(0x447)]=_0x5f0827=>this[_0x32b438(0x3ca)][_0x32b438(0x438)](_0x5f0827),_0x5c18d9;}async[_0x4aaaf0(0x33d)](){const _0x2a1344=_0x4aaaf0,_0x2b2f05=await super[_0x2a1344(0x33d)]();return this['_docStateChangeManagerService'][_0x2a1344(0x368)][_0x2a1344(0x2b0)](v[_0x2a1344(0x4b2)](this[_0x2a1344(0x35d)]))[_0x2a1344(0x236)](_0x40f0e8=>{const _0x11b617=_0x2a1344;if(_0x40f0e8==null)return;const {unitId:_0x4aec9e,redoState:_0x49ce74,commandId:_0x7fd12d}=_0x40f0e8;if(_0x4aec9e!==this[_0x11b617(0x41c)])return;const _0x2784c2={'id':_0x7fd12d,'type':a['CommandType'][_0x11b617(0x1ad)],'params':{'unitId':_0x4aec9e,'actions':_0x49ce74[_0x11b617(0x45c)],'textRanges':null}};this[_0x11b617(0x351)](_0x2784c2);}),_0x2b2f05;}},exports[_0x4aaaf0(0x21f)]=qe([p(0x3,a[_0x4aaaf0(0x1b2)](a['Injector'])),p(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),p(0x5,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x2f4)])),p(0x6,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1f6)])),p(0x7,a[_0x4aaaf0(0x1b2)](_['RevisionService'])),p(0x8,a[_0x4aaaf0(0x1b2)](N[_0x4aaaf0(0x486)])),p(0x9,a['Inject'](fe)),p(0xa,a['Inject'](pe)),p(0xb,a[_0x4aaaf0(0x1b2)](Xe)),p(0xc,a[_0x4aaaf0(0x1d1)]),p(0xd,a[_0x4aaaf0(0x5df)]),p(0xe,A[_0x4aaaf0(0x31b)]),p(0xf,a[_0x4aaaf0(0x26c)]),p(0x10,a['Optional'](Re))],exports['DocCollaborationEntity']),exports['SheetCollaborationEntity']=class extends exports[_0x4aaaf0(0x535)]{constructor(_0xc876a0,_0x3189f0,_0x5802bb,_0x23a5a0,_0x311b89,_0x19e8a5,_0x5bbd0b,_0x3f8cb3,_0x5a6b49,_0x26e1f8,_0x1c1b0e,_0x4dc1cc,_0x3bed60,_0x2ce1bf){const _0x390dc=_0x4aaaf0;super(_0xc876a0,_0x5802bb,_0x3189f0,_0x23a5a0,_0x311b89,_0x19e8a5,_0x5bbd0b,_0x3f8cb3,_0x26e1f8,_0x1c1b0e,_0x4dc1cc,_0x3bed60,_0x2ce1bf),this[_0x390dc(0x41c)]=_0xc876a0,this['type']=_0x3189f0,this['_sheetTransformSelectionsService']=_0x5a6b49;}[_0x4aaaf0(0x32a)](){const _0x555a7d=_0x4aaaf0,_0x1ad21c=super[_0x555a7d(0x32a)]();return _0x1ad21c[_0x555a7d(0x4d3)]=_0x13e150=>this[_0x555a7d(0x277)][_0x555a7d(0x5bf)](_0x13e150),_0x1ad21c;}async[_0x4aaaf0(0x33d)](){const _0x5780a0=_0x4aaaf0,_0x24dc70=await super['_init']();return this['disposeWithMe'](this[_0x5780a0(0x310)][_0x5780a0(0x2d9)]((_0x7bd8e2,_0x3a56d7)=>{const _0x1395df=_0x5780a0;if(_0x7bd8e2[_0x1395df(0x4aa)]!==a[_0x1395df(0x49d)][_0x1395df(0x1ad)]||_0x3a56d7!=null&&_0x3a56d7[_0x1395df(0x525)]||_0x3a56d7!=null&&_0x3a56d7['onlyLocal'])return;const _0x5bcf90=_0x7bd8e2[_0x1395df(0x348)];if((_0x5bcf90==null?void 0x0:_0x5bcf90['unitId'])!==this['unitID'])return;const _0x6d018=_0x7bd8e2,_0x3ea411=this[_0x1395df(0x528)][_0x1395df(0x5c5)][_0x1395df(0x3cb)](this[_0x1395df(0x528)]['interceptor'][_0x1395df(0x492)]()[_0x1395df(0x4f8)])([_0x6d018],null)||[_0x6d018];this[_0x1395df(0x351)](_0x3ea411[0x0]);})),_0x24dc70;}},exports['SheetCollaborationEntity']=qe([p(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),p(0x4,a[_0x4aaaf0(0x1b2)](exports['LocalCacheService'])),p(0x5,a[_0x4aaaf0(0x1b2)](_['CompressMutationService'])),p(0x6,a[_0x4aaaf0(0x1b2)](a['LocaleService'])),p(0x7,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),p(0x8,a['Inject'](Ie)),p(0x9,a[_0x4aaaf0(0x1d1)]),p(0xa,a['ICommandService']),p(0xb,A['IMessageService']),p(0xc,a[_0x4aaaf0(0x26c)]),p(0xd,a[_0x4aaaf0(0x4cd)](Re))],exports[_0x4aaaf0(0x376)]);var zs=Object['defineProperty'],Js=Object['getOwnPropertyDescriptor'],Zs=(_0x4683d3,_0x527dfb,_0x3203d3,_0x5eaadd)=>{const _0x1b37b0=_0x4aaaf0;for(var _0x18e91a=_0x5eaadd>0x1?void 0x0:_0x5eaadd?Js(_0x527dfb,_0x3203d3):_0x527dfb,_0x5a24ca=_0x4683d3[_0x1b37b0(0x31a)]-0x1,_0x4aa617;_0x5a24ca>=0x0;_0x5a24ca--)(_0x4aa617=_0x4683d3[_0x5a24ca])&&(_0x18e91a=(_0x5eaadd?_0x4aa617(_0x527dfb,_0x3203d3,_0x18e91a):_0x4aa617(_0x18e91a))||_0x18e91a);return _0x5eaadd&&_0x18e91a&&zs(_0x527dfb,_0x3203d3,_0x18e91a),_0x18e91a;},we=(_0x3a6342,_0x29503d)=>(_0x59735e,_0xe08b3d)=>_0x29503d(_0x59735e,_0xe08b3d,_0x3a6342);exports['CollaborationController']=class extends a['RxDisposable']{constructor(_0x2a3ddb,_0x147d04,_0x438e32){const _0x59f7fc=_0x4aaaf0;super(),u(this,_0x59f7fc(0x203),new Map()),u(this,_0x59f7fc(0x1d2),new v['Subject']()),(this['_injector']=_0x2a3ddb,this[_0x59f7fc(0x2d3)]=_0x147d04,this['_univerInstanceService']=_0x438e32,this[_0x59f7fc(0x33d)]());}[_0x4aaaf0(0x342)](){const _0x5bd631=_0x4aaaf0;super[_0x5bd631(0x342)](),this['_entities'][_0x5bd631(0x1d6)](_0x3ae5a4=>_0x3ae5a4[_0x5bd631(0x342)]()),this[_0x5bd631(0x203)][_0x5bd631(0x3e4)]();}[_0x4aaaf0(0x5b4)](_0xc77c99){const _0x900b93=_0x4aaaf0;var _0x474c7a;return(_0x474c7a=this[_0x900b93(0x203)][_0x900b93(0x439)](_0xc77c99))!=null?_0x474c7a:null;}[_0x4aaaf0(0x23f)](_0x447592){const _0x21676e=_0x4aaaf0,_0x2a0be5=this['getCollabEntity'](_0x447592);return _0x2a0be5?v['of'](_0x2a0be5):this[_0x21676e(0x1d2)]['pipe'](E[_0x21676e(0x36d)](_0x54cedb=>_0x54cedb[_0x21676e(0x41c)]===_0x447592));}[_0x4aaaf0(0x33d)](){const _0x1d471d=_0x4aaaf0;this[_0x1d471d(0x46d)]['getTypeOfUnitAdded$'](a[_0x1d471d(0x419)]['UNIVER_SHEET'])[_0x1d471d(0x2b0)](v[_0x1d471d(0x4b2)](this[_0x1d471d(0x35d)]),E[_0x1d471d(0x4ff)](0x10))[_0x1d471d(0x236)](async _0x338d3f=>{const _0x4c1a07=_0x1d471d,_0xe0f820=_0x338d3f[_0x4c1a07(0x3e2)](),_0x250a0b=await this[_0x4c1a07(0x397)](_0xe0f820,H[_0x4c1a07(0x4d0)]);this[_0x4c1a07(0x203)][_0x4c1a07(0x4af)](_0xe0f820,_0x250a0b);}),this[_0x1d471d(0x46d)][_0x1d471d(0x411)](a[_0x1d471d(0x419)][_0x1d471d(0x238)])[_0x1d471d(0x2b0)](v[_0x1d471d(0x4b2)](this[_0x1d471d(0x35d)]),E[_0x1d471d(0x4ff)](0x10))['pipe'](E[_0x1d471d(0x36d)](_0x1c234b=>!_0x1c234b[_0x1d471d(0x3e2)]()[_0x1d471d(0x476)]('__')))['subscribe'](async _0x19dfdb=>{const _0x580407=_0x1d471d,_0x41face=_0x19dfdb[_0x580407(0x3e2)](),_0x5a88a3=await this[_0x580407(0x397)](_0x41face,H[_0x580407(0x238)]);this[_0x580407(0x203)][_0x580407(0x4af)](_0x41face,_0x5a88a3);}),v[_0x1d471d(0x398)](this[_0x1d471d(0x46d)]['getTypeOfUnitDisposed$'](a[_0x1d471d(0x419)][_0x1d471d(0x4d0)]),this['_univerInstanceService'][_0x1d471d(0x2d5)](a[_0x1d471d(0x419)]['UNIVER_DOC']))[_0x1d471d(0x2b0)](v[_0x1d471d(0x4b2)](this['dispose$']))['subscribe'](_0xbc1714=>{const _0x14268f=_0x1d471d,_0x3adae9=_0xbc1714[_0x14268f(0x3e2)](),_0x4375d5=this[_0x14268f(0x203)]['get'](_0x3adae9);_0x4375d5&&(_0x4375d5[_0x14268f(0x342)](),this[_0x14268f(0x203)][_0x14268f(0x276)](_0x3adae9));});}async[_0x4aaaf0(0x397)](_0x33b4a9,_0x24b812){const _0x3313f1=_0x4aaaf0,_0x20ca05=await this[_0x3313f1(0x2d3)][_0x3313f1(0x571)](_0x33b4a9),_0x3e1174=this['_injector'][_0x3313f1(0x1da)](this[_0x3313f1(0x5b8)](_0x24b812),_0x33b4a9,_0x24b812,_0x20ca05);return await _0x3e1174[_0x3313f1(0x1d7)](),this[_0x3313f1(0x1d2)]['next'](_0x3e1174),_0x3e1174;}['_getCtorByUniverType'](_0x549946){const _0x43bf88=_0x4aaaf0;switch(_0x549946){case H[_0x43bf88(0x238)]:return exports[_0x43bf88(0x21f)];case H['UNIVER_SHEET']:return exports[_0x43bf88(0x376)];default:throw new Error(_0x43bf88(0x2fe)+_0x549946);}}},exports[_0x4aaaf0(0x265)]=Zs([we(0x0,a['Inject'](a[_0x4aaaf0(0x2ee)])),we(0x1,a[_0x4aaaf0(0x1b2)](exports['CollaborationSessionService'])),we(0x2,a[_0x4aaaf0(0x33f)])],exports['CollaborationController']);const at=['purple300',_0x4aaaf0(0x38a),_0x4aaaf0(0x543),'red300','blue400','gold400'];class ze extends a[_0x4aaaf0(0x3ef)]{constructor(){const _0x4f1d74=_0x4aaaf0;super(...arguments),u(this,_0x4f1d74(0x52a),new Map()),u(this,_0x4f1d74(0x3a6),0x0);}[_0x4aaaf0(0x1e5)](_0x2d4df8){const _0xdda0ee=_0x4aaaf0;if(this['_assignedColors']['has'](_0x2d4df8))return this[_0xdda0ee(0x52a)][_0xdda0ee(0x439)](_0x2d4df8);const _0x27e060=at[this[_0xdda0ee(0x3a6)]];return this[_0xdda0ee(0x3a6)]=(this[_0xdda0ee(0x3a6)]+0x1)%at[_0xdda0ee(0x31a)],this[_0xdda0ee(0x52a)]['set'](_0x2d4df8,_0x27e060),_0x27e060;}}var Qs=Object[_0x4aaaf0(0x562)],ei=Object[_0x4aaaf0(0x28b)],ti=(_0x4b0ee0,_0x28f3b5,_0x46d3d7,_0x2b28d9)=>{const _0x1e1d0d=_0x4aaaf0;for(var _0x1885f2=_0x2b28d9>0x1?void 0x0:_0x2b28d9?ei(_0x28f3b5,_0x46d3d7):_0x28f3b5,_0x186618=_0x4b0ee0[_0x1e1d0d(0x31a)]-0x1,_0x319f79;_0x186618>=0x0;_0x186618--)(_0x319f79=_0x4b0ee0[_0x186618])&&(_0x1885f2=(_0x2b28d9?_0x319f79(_0x28f3b5,_0x46d3d7,_0x1885f2):_0x319f79(_0x1885f2))||_0x1885f2);return _0x2b28d9&&_0x1885f2&&Qs(_0x28f3b5,_0x46d3d7,_0x1885f2),_0x1885f2;},z=(_0x5b4973,_0x5b7933)=>(_0xfe3330,_0x46dbe8)=>_0x5b7933(_0xfe3330,_0x46dbe8,_0x5b4973);const si=0x12c,ii=0x64;let xe=class extends a[_0x4aaaf0(0x275)]{constructor(_0x446bb1,_0x5ac9ec,_0x4bcab0,_0x1eda92,_0x42358e,_0x43e89e,_0x21fa18,_0x2b8d90,_0x404338){const _0x5a3c85=_0x4aaaf0;super(),u(this,_0x5a3c85(0x23c),!0x1),u(this,_0x5a3c85(0x33d),!0x1),u(this,_0x5a3c85(0x4b1),new v[(_0x5a3c85(0x442))](new Map())),u(this,_0x5a3c85(0x2d7),this['_cursorInfo$'][_0x5a3c85(0x2a7)]()),u(this,_0x5a3c85(0x4b0),new v[(_0x5a3c85(0x442))]([])),u(this,'roomMembers$',this[_0x5a3c85(0x4b0)]['pipe'](v[_0x5a3c85(0x4a4)](si))),u(this,'_updateLocalCursor',a[_0x5a3c85(0x54d)](_0x4a3c2a=>{const _0xfeead8=_0x5a3c85,_0x16ced4={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0xfeead8(0x41c)],'memberID':this[_0xfeead8(0x257)]['getMemberID'](),'selection':Dt(_0x4a3c2a)}};this[_0xfeead8(0x257)][_0xfeead8(0x306)](_0x16ced4,this[_0xfeead8(0x41c)]);},ii)),(this[_0x5a3c85(0x41c)]=_0x446bb1,this[_0x5a3c85(0x257)]=_0x5ac9ec,this[_0x5a3c85(0x5aa)]=_0x4bcab0,this[_0x5a3c85(0x51a)]=_0x1eda92,this[_0x5a3c85(0x529)]=_0x42358e,this[_0x5a3c85(0x40b)]=_0x43e89e,this[_0x5a3c85(0x37f)]=_0x21fa18,this[_0x5a3c85(0x46d)]=_0x2b8d90,this[_0x5a3c85(0x310)]=_0x404338);}get[_0x4aaaf0(0x3c5)](){const _0x4d4f5b=_0x4aaaf0;return this[_0x4d4f5b(0x4b1)][_0x4d4f5b(0x42d)]();}get[_0x4aaaf0(0x3d4)](){const _0x7b91b3=_0x4aaaf0;return this[_0x7b91b3(0x4b0)][_0x7b91b3(0x42d)]();}[_0x4aaaf0(0x342)](){const _0x430b6e=_0x4aaaf0;super['dispose'](),this['_cursorInfo$'][_0x430b6e(0x3b3)](new Map()),this[_0x430b6e(0x4b1)][_0x430b6e(0x489)](),this[_0x430b6e(0x4b0)][_0x430b6e(0x3b3)]([]),this[_0x430b6e(0x4b0)][_0x430b6e(0x489)]();}[_0x4aaaf0(0x1d7)](){const _0x3cb321=_0x4aaaf0;this['_init']||(this[_0x3cb321(0x33d)]=!0x0,this[_0x3cb321(0x257)]['sessionStatus$'][_0x3cb321(0x2b0)](v[_0x3cb321(0x4b2)](this[_0x3cb321(0x35d)]))[_0x3cb321(0x236)](_0x580386=>{const _0x100a94=_0x3cb321;_0x580386===x['ONLINE']?this[_0x100a94(0x454)]():this[_0x100a94(0x3a8)]();}),this['_session']['event$'][_0x3cb321(0x2b0)](v[_0x3cb321(0x4b2)](this[_0x3cb321(0x35d)]))[_0x3cb321(0x236)](_0x278354=>{const _0x1837a2=_0x3cb321,_0x37b56b=_0x278354[_0x1837a2(0x405)];_0x37b56b===_[_0x1837a2(0x2bb)]['UPDATE_CURSOR']&&this[_0x1837a2(0x5c1)](_0x278354),_0x37b56b===_[_0x1837a2(0x2bb)][_0x1837a2(0x3b0)]&&this['_onCursorDelete'](_0x278354);}),this[_0x3cb321(0x367)](this[_0x3cb321(0x310)][_0x3cb321(0x2d9)](_0x413fcc=>{const _0x2855bd=_0x3cb321,_0x47035a=_0x413fcc[_0x2855bd(0x348)];_0x47035a!=null&&this[_0x2855bd(0x23c)]&&_0x413fcc['id']===ne['SetTextSelectionsOperation']['id']&&_0x47035a[_0x2855bd(0x22c)]===this[_0x2855bd(0x41c)]&&_0x47035a[_0x2855bd(0x22e)]===!0x1&&_0x47035a[_0x2855bd(0x2cd)][_0x2855bd(0x31a)]>0x0&&this['_updateLocalCursor'](_0x47035a[_0x2855bd(0x2cd)]);})),this['_syncEditingCollabCursorService'][_0x3cb321(0x54b)][_0x3cb321(0x2b0)](v[_0x3cb321(0x4b2)](this[_0x3cb321(0x35d)]))[_0x3cb321(0x236)](_0x34f2b6=>{const _0x51508a=_0x3cb321;if((_0x34f2b6==null?void 0x0:_0x34f2b6[_0x51508a(0x41c)])!==this[_0x51508a(0x41c)])return;const _0x2f773a={'eventID':_[_0x51508a(0x2bb)][_0x51508a(0x1d5)],'data':_0x34f2b6};this[_0x51508a(0x5c1)](_0x2f773a);}),this[_0x3cb321(0x367)](this[_0x3cb321(0x310)][_0x3cb321(0x2d9)](_0x5e44c0=>{const _0x7dfdee=_0x3cb321;if(_0x5e44c0['params']==null)return;const _0xd9aa04=_0x5e44c0[_0x7dfdee(0x348)];if(_0x5e44c0['id']!==ne[_0x7dfdee(0x1cf)]['id']||_0xd9aa04[_0x7dfdee(0x22c)]!==this[_0x7dfdee(0x41c)])return;const _0x4ac251={'id':'doc.mutation.rich-text-editing','params':_0xd9aa04},_0x379b70=this[_0x7dfdee(0x3c5)];for(const [_0x2bfdbe,_0x2c17b3]of _0x379b70){const _0x13ed71={'id':_0x7dfdee(0x350),'params':{'unitId':this[_0x7dfdee(0x41c)],'actions':null,'textRanges':_0x2c17b3[_0x7dfdee(0x2cd)]}},_0x56e390=this[_0x7dfdee(0x37f)]['transformMutation'](_0x4ac251,_0x13ed71,!0x1);if(_[_0x7dfdee(0x3f6)](_0x56e390))throw _0x56e390[_0x7dfdee(0x574)];_0x379b70[_0x7dfdee(0x4af)](_0x2bfdbe,{..._0x2c17b3,'ranges':_0x56e390[_0x7dfdee(0x3a9)][_0x7dfdee(0x348)]['textRanges']});}queueMicrotask(()=>{const _0x4bc735=_0x7dfdee;this[_0x4bc735(0x4b1)][_0x4bc735(0x3b3)](_0x379b70);});})));}[_0x4aaaf0(0x5c1)](_0x5a924c){const _0x5b3152=_0x4aaaf0;var _0xde8552,_0x28bc62;const {memberID:_0x1fb5c5,selection:_0x47c16c}=_0x5a924c['data'],_0x576427=xs(_0x47c16c),_0x21fdc5=(_0x28bc62=(_0xde8552=this[_0x5b3152(0x529)][_0x5b3152(0x3d1)](this[_0x5b3152(0x41c)],_0x1fb5c5))==null?void 0x0:_0xde8552['name'])!=null?_0x28bc62:'Unknown\x20user',_0xf878e7={'color':this[_0x5b3152(0x51a)][_0x5b3152(0x1e5)](_0x1fb5c5),'name':_0x21fdc5,'ranges':_0x576427},_0x9090cd=this[_0x5b3152(0x3c5)];_0x9090cd[_0x5b3152(0x4af)](_0x1fb5c5,_0xf878e7),this[_0x5b3152(0x4b1)]['next'](_0x9090cd);}[_0x4aaaf0(0x4a1)](_0x1c32db){const _0x334b6b=_0x4aaaf0,{memberID:_0x409403}=_0x1c32db['data'],_0x49b006=this[_0x334b6b(0x3c5)];_0x49b006[_0x334b6b(0x276)](_0x409403),this[_0x334b6b(0x4b1)][_0x334b6b(0x3b3)](_0x49b006);}[_0x4aaaf0(0x454)](){const _0x3f0762=_0x4aaaf0;var _0x2a973c;if(this[_0x3f0762(0x23c)]=!0x0,((_0x2a973c=this[_0x3f0762(0x46d)][_0x3f0762(0x4e3)]())==null?void 0x0:_0x2a973c['getUnitId']())!==this['unitID'])return;const _0x2831a2=this[_0x3f0762(0x5aa)]['get'](ne[_0x3f0762(0x28f)])[_0x3f0762(0x506)]();Array[_0x3f0762(0x27b)](_0x2831a2)&&_0x2831a2[_0x3f0762(0x31a)]>0x0&&this[_0x3f0762(0x1b6)](_0x2831a2);}['_toggleOffline'](){const _0x290d7f=_0x4aaaf0;this[_0x290d7f(0x23c)]=!0x1;}};xe=ti([z(0x2,a['Inject'](a[_0x4aaaf0(0x2ee)])),z(0x3,a[_0x4aaaf0(0x1b2)](ze)),z(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x50e)])),z(0x5,a[_0x4aaaf0(0x1b2)](Xe)),z(0x6,_[_0x4aaaf0(0x41f)]),z(0x7,a[_0x4aaaf0(0x33f)]),z(0x8,a[_0x4aaaf0(0x5df)])],xe);var ni=Object[_0x4aaaf0(0x562)],ri=Object[_0x4aaaf0(0x28b)],oi=(_0xab9de7,_0x955cc3,_0x4f1d90,_0x52910e)=>{for(var _0x25ae88=_0x52910e>0x1?void 0x0:_0x52910e?ri(_0x955cc3,_0x4f1d90):_0x955cc3,_0x2d0402=_0xab9de7['length']-0x1,_0x5de2f3;_0x2d0402>=0x0;_0x2d0402--)(_0x5de2f3=_0xab9de7[_0x2d0402])&&(_0x25ae88=(_0x52910e?_0x5de2f3(_0x955cc3,_0x4f1d90,_0x25ae88):_0x5de2f3(_0x25ae88))||_0x25ae88);return _0x52910e&&_0x25ae88&&ni(_0x955cc3,_0x4f1d90,_0x25ae88),_0x25ae88;},te=(_0x1a5eb0,_0x5941b3)=>(_0x3febbf,_0x52de7b)=>_0x5941b3(_0x3febbf,_0x52de7b,_0x1a5eb0);const ai=0x12c,ci=0x64,li=()=>{let _0xa551fb=[],_0x12eb3a=!0x1;return _0x578ec3=>{const _0x1bdbfc=_0x47ba;_0xa551fb[_0x1bdbfc(0x4ce)](_0x578ec3),_0x12eb3a||(_0x12eb3a=!0x0,setTimeout(()=>{const _0x2d029d=_0x1bdbfc;_0xa551fb[_0x2d029d(0x1d6)](_0x1373cd=>_0x1373cd()),_0xa551fb=[],_0x12eb3a=!0x1;}));};};let ke=class extends a[_0x4aaaf0(0x275)]{constructor(_0x50e692,_0x120b87,_0x4f4c1a,_0x1a71b7,_0x2ce18a,_0xd6d851,_0x19faf5,_0x1874fb){const _0x21090b=_0x4aaaf0;super(),u(this,_0x21090b(0x23c),!0x1),u(this,_0x21090b(0x33d),!0x1),u(this,_0x21090b(0x4b1),new v[(_0x21090b(0x442))](new Map())),u(this,'cursorInfo$',this[_0x21090b(0x4b1)][_0x21090b(0x2a7)]()),u(this,_0x21090b(0x4b0),new v[(_0x21090b(0x442))]([])),u(this,_0x21090b(0x4fc),this[_0x21090b(0x4b0)][_0x21090b(0x2b0)](v[_0x21090b(0x4a4)](ai))),u(this,'_updateLocalCursor',a[_0x21090b(0x54d)]((_0x2c3048,_0x53ed20)=>{const _0x137d39=_0x21090b,_0x1e0c32={'eventID':_['CollaborationEvent'][_0x137d39(0x1d5)],'data':{'unitID':this[_0x137d39(0x41c)],'memberID':this[_0x137d39(0x257)]['getMemberID'](),'selection':Qe[_0x137d39(0x420)](_0x2c3048,_0x53ed20[_0x137d39(0x325)])}};this['_session'][_0x137d39(0x306)](_0x1e0c32,this[_0x137d39(0x41c)]);},ci)),(this['unitID']=_0x50e692,this[_0x21090b(0x257)]=_0x120b87,this[_0x21090b(0x5aa)]=_0x4f4c1a,this['_colorAssignService']=_0x1a71b7,this[_0x21090b(0x529)]=_0x2ce18a,this['_univerInstanceService']=_0xd6d851,this[_0x21090b(0x310)]=_0x19faf5,this[_0x21090b(0x3f3)]=_0x1874fb);}get[_0x4aaaf0(0x3c5)](){const _0x2e5e95=_0x4aaaf0;return this[_0x2e5e95(0x4b1)]['getValue']();}get[_0x4aaaf0(0x3d4)](){const _0x5b43d6=_0x4aaaf0;return this[_0x5b43d6(0x4b0)][_0x5b43d6(0x42d)]();}['dispose'](){const _0x139058=_0x4aaaf0;super['dispose'](),this['_cursorInfo$'][_0x139058(0x3b3)](new Map()),this[_0x139058(0x4b1)][_0x139058(0x489)](),this[_0x139058(0x4b0)][_0x139058(0x3b3)]([]),this['_roomMembers$'][_0x139058(0x489)]();}[_0x4aaaf0(0x1d7)](){const _0x55c2bc=_0x4aaaf0;this[_0x55c2bc(0x33d)]||(this['_init']=!0x0,this[_0x55c2bc(0x257)][_0x55c2bc(0x4da)][_0x55c2bc(0x2b0)](v[_0x55c2bc(0x4b2)](this[_0x55c2bc(0x35d)]))[_0x55c2bc(0x236)](_0x3aab95=>{const _0x55b0f8=_0x55c2bc;_0x3aab95===x['ONLINE']?this['_toggleOnline']():this[_0x55b0f8(0x3a8)]();}),this[_0x55c2bc(0x257)]['event$']['pipe'](v[_0x55c2bc(0x4b2)](this['dispose$']))['subscribe'](_0x1c91ae=>{const _0x104596=_0x55c2bc,_0x24fcd7=_0x1c91ae[_0x104596(0x405)];_0x24fcd7===_['CollaborationEvent'][_0x104596(0x1d5)]&&this[_0x104596(0x5c1)](_0x1c91ae),_0x24fcd7===_[_0x104596(0x2bb)][_0x104596(0x3b0)]&&this[_0x104596(0x4a1)](_0x1c91ae);}),this[_0x55c2bc(0x1b9)](),this[_0x55c2bc(0x367)](this[_0x55c2bc(0x310)][_0x55c2bc(0x2d9)](_0x12f255=>{const _0xb520ca=_0x55c2bc;if(this['_online']&&_0x12f255['id']===C[_0xb520ca(0x2f0)]['id']&&_0x12f255['params'][_0xb520ca(0x22c)]===this[_0xb520ca(0x41c)]){const _0x291c54=_0x12f255[_0xb520ca(0x348)];this['_updateLocalCursor'](_0x291c54[_0xb520ca(0x395)],_0x291c54[_0xb520ca(0x44d)][0x0]);}})));}[_0x4aaaf0(0x5c1)](_0x16580b){const _0x518441=_0x4aaaf0;var _0x39c371,_0x16b377;const {memberID:_0x4d0fac,selection:_0x41993b}=_0x16580b['data'],{sheetName:_0x44b98e,range:_0xcfc1c0}=Qe['deserializeRangeWithSheet'](_0x41993b),_0x2d293f={'name':(_0x16b377=(_0x39c371=this[_0x518441(0x529)][_0x518441(0x3d1)](this[_0x518441(0x41c)],_0x4d0fac))==null?void 0x0:_0x39c371['name'])!=null?_0x16b377:_0x518441(0x508),'range':this[_0x518441(0x5a0)](_0x44b98e,_0xcfc1c0),'sheetID':_0x44b98e,'color':this[_0x518441(0x51a)]['assignAColorForMemberID'](_0x4d0fac),'selection':_0x41993b},_0x3f5ec7=this[_0x518441(0x3c5)];_0x3f5ec7[_0x518441(0x4af)](_0x4d0fac,_0x2d293f),this[_0x518441(0x4b1)][_0x518441(0x3b3)](_0x3f5ec7);}[_0x4aaaf0(0x4a1)](_0x342e37){const _0x30897d=_0x4aaaf0,{memberID:_0x280eca}=_0x342e37[_0x30897d(0x2cf)],_0x252a1c=this[_0x30897d(0x3c5)];_0x252a1c[_0x30897d(0x276)](_0x280eca),this[_0x30897d(0x4b1)]['next'](_0x252a1c);}['_getMergeRange'](_0x1696e5,_0x1576ba){const _0x42dc5e=_0x4aaaf0;var _0x2c0d84,_0x442e6c;const _0x412846=(_0x442e6c=(_0x2c0d84=this[_0x42dc5e(0x46d)][_0x42dc5e(0x4ae)](this[_0x42dc5e(0x41c)]))==null?void 0x0:_0x2c0d84[_0x42dc5e(0x5be)](_0x1696e5))==null?void 0x0:_0x442e6c[_0x42dc5e(0x4a5)]();return(_0x412846==null?void 0x0:_0x412846[_0x42dc5e(0x1c1)](_0x2f1c9a=>a['Rectangle']['contains'](_0x2f1c9a,_0x1576ba)))||_0x1576ba;}[_0x4aaaf0(0x1b9)](){const _0x52b32b=_0x4aaaf0,_0x126a31=new a[(_0x52b32b(0x5db))](),_0x5be4f6=li(),_0x58e61f=()=>{const _0x430273=_0x52b32b;_0x126a31[_0x430273(0x342)]();const _0x366e1e=(_0x51c414,_0x110996,_0x14094a,_0x1c606e)=>{const _0xd5f490=_0x430273;let _0x326eee=[];switch(_0x51c414['id']){case C[_0xd5f490(0x53a)][_0xd5f490(0x324)]:{_0x326eee=C[_0xd5f490(0x30b)](_0x51c414,_0x1c606e);break;}case C['EffectRefRangId'][_0xd5f490(0x590)]:{_0x326eee=C[_0xd5f490(0x34e)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x2ae)]:{_0x326eee=C[_0xd5f490(0x28e)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x59e)]:{_0x326eee=C[_0xd5f490(0x268)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x5d8)]:{_0x326eee=C[_0xd5f490(0x23e)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)]['InsertRowCommandId']:{_0x326eee=C[_0xd5f490(0x31d)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x597)]:{_0x326eee=C[_0xd5f490(0x37a)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x25d)]:{_0x326eee=C['handleIRemoveCol'](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)]['RemoveRowCommandId']:{_0x326eee=C[_0xd5f490(0x570)](_0x51c414,_0x1c606e);break;}}const _0x398af8=C[_0xd5f490(0x422)](_0x326eee,_0x1c606e),_0x3c1747=this[_0xd5f490(0x3c5)]['get'](_0x110996);if(_0x3c1747&&_0x398af8){const _0x213f6b={..._0x3c1747,'range':_0x398af8};this[_0xd5f490(0x3c5)][_0xd5f490(0x4af)](_0x110996,_0x213f6b),_0x5be4f6(()=>{const _0x3dc092=_0xd5f490,_0x923d5f=this[_0x3dc092(0x3f3)]['registerRefRange'](_0x398af8,_0x2ea046=>(_0x923d5f['dispose'](),_0x366e1e(_0x2ea046,_0x110996,_0x14094a,_0x398af8)));_0x126a31[_0x3dc092(0x24d)](_0x923d5f);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x430273(0x1d6)]((_0x2e5c81,_0x5ca381)=>{const _0x8e8454=_0x430273,{range:_0x5eee4b,sheetID:_0x3a6775}=_0x2e5c81,_0x511f00=this[_0x8e8454(0x3f3)][_0x8e8454(0x200)](_0x5eee4b,_0x37bc69=>(_0x511f00[_0x8e8454(0x342)](),_0x366e1e(_0x37bc69,_0x5ca381,_0x3a6775,_0x5eee4b)));_0x126a31[_0x8e8454(0x24d)](_0x511f00);});};this[_0x52b32b(0x367)](a[_0x52b32b(0x2c6)](this[_0x52b32b(0x4b1)][_0x52b32b(0x236)](()=>{_0x58e61f();})));}[_0x4aaaf0(0x454)](){const _0x2d9390=_0x4aaaf0;var _0x209ae6,_0x373433;if(this['_online']=!0x0,((_0x209ae6=this[_0x2d9390(0x46d)][_0x2d9390(0x4e3)]())==null?void 0x0:_0x209ae6[_0x2d9390(0x3e2)]())!==this['unitID'])return;const _0x552a5e=(_0x373433=this[_0x2d9390(0x5aa)][_0x2d9390(0x439)](C['SheetsSelectionsService'])[_0x2d9390(0x303)]())==null?void 0x0:_0x373433[0x0],_0x2be567=this[_0x2d9390(0x46d)]['getCurrentUnitForType'](a[_0x2d9390(0x419)][_0x2d9390(0x4d0)])[_0x2d9390(0x372)]();_0x552a5e&&_0x2be567&&this['_updateLocalCursor'](_0x2be567[_0x2d9390(0x271)](),_0x552a5e);}[_0x4aaaf0(0x3a8)](){const _0x4838d7=_0x4aaaf0;this[_0x4838d7(0x23c)]=!0x1;}};ke=oi([te(0x2,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),te(0x3,a[_0x4aaaf0(0x1b2)](ze)),te(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x50e)])),te(0x5,a[_0x4aaaf0(0x33f)]),te(0x6,a[_0x4aaaf0(0x5df)]),te(0x7,a['Inject'](C['RefRangeService']))],ke);var hi=Object[_0x4aaaf0(0x562)],_i=Object[_0x4aaaf0(0x28b)],ui=(_0x1295db,_0x2a607b,_0x5d1bdc,_0x3c8fcf)=>{const _0x20d660=_0x4aaaf0;for(var _0xf645d6=_0x3c8fcf>0x1?void 0x0:_0x3c8fcf?_i(_0x2a607b,_0x5d1bdc):_0x2a607b,_0x5416db=_0x1295db[_0x20d660(0x31a)]-0x1,_0x3673aa;_0x5416db>=0x0;_0x5416db--)(_0x3673aa=_0x1295db[_0x5416db])&&(_0xf645d6=(_0x3c8fcf?_0x3673aa(_0x2a607b,_0x5d1bdc,_0xf645d6):_0x3673aa(_0xf645d6))||_0xf645d6);return _0x3c8fcf&&_0xf645d6&&hi(_0x2a607b,_0x5d1bdc,_0xf645d6),_0xf645d6;},Ne=(_0x2fc968,_0x97cc44)=>(_0x4739cc,_0x205e43)=>_0x97cc44(_0x4739cc,_0x205e43,_0x2fc968);let oe=class extends a[_0x4aaaf0(0x275)]{constructor(_0x25d88e,_0x429c47,_0x19d49d){const _0x2dc638=_0x4aaaf0;super(),u(this,_0x2dc638(0x203),new Map()),u(this,_0x2dc638(0x1d2),new v[(_0x2dc638(0x1d4))]()),(this[_0x2dc638(0x46d)]=_0x25d88e,this['_injector']=_0x429c47,this['_collabSessionService']=_0x19d49d,this[_0x2dc638(0x33d)]());}[_0x4aaaf0(0x342)](){const _0x562d34=_0x4aaaf0;super[_0x562d34(0x342)](),this[_0x562d34(0x1d2)]['complete'](),this[_0x562d34(0x203)]['forEach'](_0x3c7e21=>_0x3c7e21[_0x562d34(0x342)]());}[_0x4aaaf0(0x355)](_0x4d3371){const _0x4f16b4=_0x4aaaf0;return this['_entities'][_0x4f16b4(0x2cc)](_0x4d3371)?this[_0x4f16b4(0x203)]['get'](_0x4d3371)['cursorInfo$']:this['_entityInit$'][_0x4f16b4(0x2b0)](v[_0x4f16b4(0x36d)](_0x31f58c=>_0x31f58c[_0x4f16b4(0x41c)]===_0x4d3371),v[_0x4f16b4(0x3e7)](_0x52ae1c=>_0x52ae1c[_0x4f16b4(0x2d7)]));}[_0x4aaaf0(0x33d)](){const _0x24695f=_0x4aaaf0;this[_0x24695f(0x46d)][_0x24695f(0x411)](a[_0x24695f(0x419)]['UNIVER_SHEET'])[_0x24695f(0x2b0)](v[_0x24695f(0x4b2)](this['dispose$']))[_0x24695f(0x236)](async _0x1499c0=>{const _0x3ea605=_0x24695f,_0xea0fa9=_0x1499c0['getUnitId'](),_0x571001=await this[_0x3ea605(0x517)](_0xea0fa9);this[_0x3ea605(0x1d2)][_0x3ea605(0x3b3)](_0x571001),this[_0x3ea605(0x203)][_0x3ea605(0x4af)](_0xea0fa9,_0x571001);}),this['_univerInstanceService'][_0x24695f(0x411)](a[_0x24695f(0x419)][_0x24695f(0x238)])[_0x24695f(0x2b0)](v[_0x24695f(0x4b2)](this[_0x24695f(0x35d)]))[_0x24695f(0x2b0)](v['filter'](_0x5d209d=>!_0x5d209d[_0x24695f(0x3e2)]()[_0x24695f(0x476)]('__')))[_0x24695f(0x236)](async _0x3a245e=>{const _0x13df96=_0x24695f,_0x1d200c=_0x3a245e[_0x13df96(0x3e2)](),_0x1802c4=await this[_0x13df96(0x26d)](_0x1d200c);this['_entityInit$']['next'](_0x1802c4),this['_entities'][_0x13df96(0x4af)](_0x1d200c,_0x1802c4);}),v[_0x24695f(0x398)](this[_0x24695f(0x46d)][_0x24695f(0x2d5)](a[_0x24695f(0x419)]['UNIVER_DOC']),this[_0x24695f(0x46d)]['getTypeOfUnitDisposed$'](a[_0x24695f(0x419)][_0x24695f(0x4d0)]))[_0x24695f(0x2b0)](v['takeUntil'](this['dispose$']))['subscribe'](_0x37b0a1=>{const _0x448b66=_0x24695f,_0x1e3933=_0x37b0a1['getUnitId'](),_0x3c5936=this['_entities'][_0x448b66(0x439)](_0x1e3933);_0x3c5936&&(_0x3c5936[_0x448b66(0x342)](),this[_0x448b66(0x203)][_0x448b66(0x276)](_0x1e3933));});}async[_0x4aaaf0(0x517)](_0x190569){const _0xb9f4db=_0x4aaaf0,_0xcb38c7=await this[_0xb9f4db(0x2d3)][_0xb9f4db(0x571)](_0x190569),_0x463c85=this[_0xb9f4db(0x5aa)][_0xb9f4db(0x1da)](ke,_0x190569,_0xcb38c7);return _0x463c85[_0xb9f4db(0x1d7)](),_0x463c85;}async[_0x4aaaf0(0x26d)](_0x406764){const _0x3e495d=_0x4aaaf0,_0x234faf=await this[_0x3e495d(0x2d3)]['requireSession'](_0x406764),_0x4b7c9e=this[_0x3e495d(0x5aa)][_0x3e495d(0x1da)](xe,_0x406764,_0x234faf);return _0x4b7c9e[_0x3e495d(0x1d7)](),_0x4b7c9e;}};oe=ui([Ne(0x0,a[_0x4aaaf0(0x33f)]),Ne(0x1,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),Ne(0x2,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x48f)]))],oe);const de=0x14,ct=0xc8,Me=0x4,di=0x5;function Si(_0x28f3c7,_0x2a48ae){const _0x476e15=_0x4aaaf0;let {radius:_0x47cfee,width:_0x1dc167,height:_0x40a503}=_0x2a48ae;_0x47cfee=_0x47cfee!=null?_0x47cfee:0x0,_0x1dc167=_0x1dc167!=null?_0x1dc167:0x1e,_0x40a503=_0x40a503!=null?_0x40a503:0x1e;let _0x268bdd=0x0,_0xdbb106=0x0,_0x5600ce=0x0;_0x268bdd=_0xdbb106=_0x5600ce=Math[_0x476e15(0x52c)](_0x47cfee,_0x1dc167/0x2,_0x40a503/0x2),_0x28f3c7[_0x476e15(0x53e)](),_0x28f3c7[_0x476e15(0x4ec)](_0x268bdd,0x0),_0x28f3c7[_0x476e15(0x552)](_0x1dc167-_0xdbb106,0x0),_0x28f3c7[_0x476e15(0x1ee)](_0x1dc167-_0xdbb106,_0xdbb106,_0xdbb106,Math['PI']*0x3/0x2,0x0,!0x1),_0x28f3c7[_0x476e15(0x552)](_0x1dc167,_0x40a503-_0x5600ce),_0x28f3c7[_0x476e15(0x1ee)](_0x1dc167-_0x5600ce,_0x40a503-_0x5600ce,_0x5600ce,0x0,Math['PI']/0x2,!0x1),_0x28f3c7[_0x476e15(0x552)](0x0,_0x40a503),_0x28f3c7[_0x476e15(0x552)](0x0,_0x268bdd),_0x28f3c7[_0x476e15(0x1ee)](_0x268bdd,_0x268bdd,_0x268bdd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x28f3c7['closePath'](),_0x2a48ae['fill']&&(_0x28f3c7['save'](),_0x28f3c7[_0x476e15(0x2a3)]=_0x2a48ae[_0x476e15(0x444)],_0x2a48ae[_0x476e15(0x211)]===_0x476e15(0x56e)?_0x28f3c7[_0x476e15(0x444)](_0x476e15(0x56e)):_0x28f3c7[_0x476e15(0x444)](),_0x28f3c7[_0x476e15(0x327)]());}class Oe extends O[_0x4aaaf0(0x1fe)]{constructor(_0x7cebe5,_0x225ebc){const _0x19674e=_0x4aaaf0;super(_0x7cebe5,_0x225ebc),u(this,'color'),u(this,'text'),(this['color']=_0x225ebc==null?void 0x0:_0x225ebc[_0x19674e(0x3b4)],this[_0x19674e(0x47b)]=_0x225ebc==null?void 0x0:_0x225ebc[_0x19674e(0x47b)]);}static[_0x4aaaf0(0x5a5)](_0x14ae01,_0x5c35df){const _0x375579=_0x4aaaf0,{text:_0x434790,color:_0x38ae3}=_0x5c35df;_0x14ae01[_0x375579(0x4e7)](),_0x14ae01['font']=_0x375579(0x396);const _0x5c6671=_0x14ae01['measureText'](_0x434790)[_0x375579(0x43a)],_0x3a6ca7=Math[_0x375579(0x52c)](_0x5c6671+0x2*Me,ct);Si(_0x14ae01,{'height':de,'radius':0x4,'width':_0x3a6ca7,'fill':_0x38ae3,'evented':!0x1}),_0x14ae01['fillStyle']=_0x375579(0x3ae);const _0x2f516f=Me,_0x1f4761=de-di,_0x4286fe=ct-0x2*Me;if(_0x5c6671>_0x4286fe){let _0x29a026='',_0x2b5f49=0x0;for(const _0xb87d89 of _0x434790){const _0xb8b063=_0x14ae01[_0x375579(0x51e)](_0xb87d89)[_0x375579(0x43a)];if(_0x2b5f49+_0xb8b063<=_0x4286fe-_0x14ae01[_0x375579(0x51e)](_0x375579(0x385))[_0x375579(0x43a)])_0x29a026+=_0xb87d89,_0x2b5f49+=_0xb8b063;else{_0x29a026+=_0x375579(0x385);break;}}_0x14ae01['fillText'](_0x29a026,_0x2f516f,_0x1f4761);}else _0x14ae01[_0x375579(0x3ea)](_0x434790,_0x2f516f,_0x1f4761);_0x14ae01[_0x375579(0x327)]();}[_0x4aaaf0(0x392)](_0x113c98){const _0x261f60=_0x4aaaf0;Oe[_0x261f60(0x5a5)](_0x113c98,this);}}const Ae=_0x4aaaf0(0x458),vi='collab-text-range-',mi=_0x4aaaf0(0x2b6),le=0x6,gi=1.5,Le=0x4,fi=1.5,Ii=_0x4aaaf0(0x39c);class lt{constructor(_0x1cc02a,_0x2e1ac7,_0x202f08,_0x862165){const _0x32a8c2=_0x4aaaf0;u(this,_0x32a8c2(0x225),[]),u(this,_0x32a8c2(0x2ce),null),u(this,'_textBubble',null),u(this,_0x32a8c2(0x44b),null),u(this,_0x32a8c2(0x43e),null),u(this,_0x32a8c2(0x3d8),null),(this[_0x32a8c2(0x3ee)]=_0x1cc02a,this[_0x32a8c2(0x293)]=_0x2e1ac7,this['_docSkeleton']=_0x202f08,this[_0x32a8c2(0x5c3)]=_0x862165,this[_0x32a8c2(0x245)]());}set[_0x4aaaf0(0x365)](_0x5d00fb){const _0x42d97d=_0x4aaaf0;_0x5d00fb?(this[_0x42d97d(0x44b)]&&this[_0x42d97d(0x44b)][_0x42d97d(0x34c)](),this['_textBubble']&&this[_0x42d97d(0x40f)][_0x42d97d(0x4c5)]()):(this[_0x42d97d(0x44b)]&&this[_0x42d97d(0x44b)][_0x42d97d(0x4c5)](),this[_0x42d97d(0x40f)]&&this[_0x42d97d(0x40f)][_0x42d97d(0x34c)]());}[_0x4aaaf0(0x342)](){const _0xeb8960=_0x4aaaf0;for(const _0x3ee8fb of this[_0xeb8960(0x225)])_0x3ee8fb['dispose']();this[_0xeb8960(0x40f)]&&this[_0xeb8960(0x40f)][_0xeb8960(0x342)](),this['_anchorDot']&&this[_0xeb8960(0x44b)][_0xeb8960(0x342)](),this['_anchor']&&this[_0xeb8960(0x2ce)][_0xeb8960(0x342)](),this['_eventUnsubscribe']&&this[_0xeb8960(0x3d8)]();}[_0x4aaaf0(0x245)](){const _0x1ac95c=_0x4aaaf0;var _0x363b8b;const {_docSkeleton:_0x1420d2,_document:_0x3cd7d4}=this,{color:_0x495d52,name:_0x32472f,ranges:_0x44d57e}=this[_0x1ac95c(0x3ee)],_0x9e47bf=_0x3cd7d4[_0x1ac95c(0x2d8)](),{docsLeft:_0x1651c4,docsTop:_0x28944c}=_0x9e47bf,_0x5a3cea=new N[(_0x1ac95c(0x4f2))](_0x9e47bf,_0x1420d2);for(const {startOffset:_0x3c217b,endOffset:_0x428204,rangeType:_0x143810,segmentId:_0x17a981,segmentPage:_0x1bd319,collapsed:_0x3c361d,isActive:_0x22382d}of _0x44d57e){const _0x1317fb=_0x1420d2['findNodePositionByCharIndex'](_0x3c217b,!0x0,_0x17a981,_0x1bd319);let _0x565d62=_0x1420d2[_0x1ac95c(0x2f1)](_0x428204,!0x0,_0x17a981,_0x1bd319);if(_0x565d62==null&&(_0x565d62=_0x1420d2['findNodePositionByCharIndex'](_0x428204-0x1,!0x1,_0x17a981,_0x1bd319)),_0x22382d){const {contentBoxPointGroup:_0x504237}=_0x5a3cea[_0x1ac95c(0x384)](_0x565d62,_0x565d62);if(_0x504237[_0x1ac95c(0x31a)]===0x0)continue;this[_0x1ac95c(0x3c9)](_0x495d52,_0x504237,_0x1651c4,_0x28944c,_0x32472f),this[_0x1ac95c(0x3d8)]=this[_0x1ac95c(0x4df)]();}if(!_0x3c361d&&_0x1317fb&&_0x565d62){if(_0x143810===a[_0x1ac95c(0x353)]['RECT']){const _0x488433=new N[(_0x1ac95c(0x4c8))](_0x9e47bf,_0x1420d2),{pointGroup:_0x1f5535}=(_0x363b8b=_0x488433['getRangePointData'](_0x1317fb,_0x565d62))!=null?_0x363b8b:{};if(_0x1f5535==null||_0x1f5535[_0x1ac95c(0x31a)]===0x0)continue;this[_0x1ac95c(0x4e6)](_0x495d52,_0x1f5535,_0x1651c4,_0x28944c);}else{const {borderBoxPointGroup:_0x15392a}=_0x5a3cea['getRangePointData'](_0x1317fb,_0x565d62);if(_0x15392a[_0x1ac95c(0x31a)]===0x0)continue;this['_drawTextRange'](_0x495d52,_0x15392a,_0x1651c4,_0x28944c);}}}}[_0x4aaaf0(0x3c9)](_0x21795c,_0x4262e7,_0x582230,_0x308403,_0x3fdcbc){const _0x3353f5=_0x4aaaf0,_0x7c8238=this['_getAnchorBounding'](_0x4262e7),{left:_0x2bda45,top:_0x46ac00,height:_0x450b58}=_0x7c8238,_0x5a6a8c=this[_0x3353f5(0x59f)](),_0x53dfb6=fi/_0x5a6a8c,_0x540df4=new O[(_0x3353f5(0x35a))](Ae+a['Tools'][_0x3353f5(0x1c9)](le),{'left':_0x2bda45+_0x582230-_0x53dfb6,'top':_0x46ac00+_0x308403,'height':_0x450b58,'width':gi,'fill':_0x21795c||O[_0x3353f5(0x390)](a['COLORS']['black'],0x0),'strokeWidth':_0x53dfb6,'stroke':Ii,'evented':!0x0});this[_0x3353f5(0x2ce)]=_0x540df4,this[_0x3353f5(0x293)][_0x3353f5(0x32d)](_0x540df4,N[_0x3353f5(0x34a)]);const _0x29b435=new O[(_0x3353f5(0x35a))](Ae+a[_0x3353f5(0x5a8)]['generateRandomId'](le),{'left':_0x2bda45+_0x582230-_0x53dfb6,'top':_0x46ac00+_0x308403-Le/0x2,'height':Le,'width':Le,'fill':_0x21795c||O[_0x3353f5(0x390)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x21795c||O['getColor'](a[_0x3353f5(0x418)][_0x3353f5(0x2ca)],0x0),'evented':!0x1});this[_0x3353f5(0x44b)]=_0x29b435,this['_scene'][_0x3353f5(0x32d)](_0x29b435,N[_0x3353f5(0x34a)]);const _0x28ca99=new Oe(Ae+a[_0x3353f5(0x5a8)][_0x3353f5(0x1c9)](le),{'left':_0x2bda45+_0x582230-_0x53dfb6,'top':_0x46ac00+_0x308403-de,'text':_0x3fdcbc,'color':_0x21795c});this[_0x3353f5(0x40f)]=_0x28ca99,this[_0x3353f5(0x293)][_0x3353f5(0x32d)](_0x28ca99,N['TEXT_RANGE_LAYER_INDEX']),this[_0x3353f5(0x365)]=!0x1;}[_0x4aaaf0(0x4df)](){const _0x161209=_0x4aaaf0,_0x1905ee=this[_0x161209(0x2ce)]['onPointerEnter$'][_0x161209(0x1d9)](()=>{this['_hover']=!0x0;}),_0x13e055=this[_0x161209(0x2ce)][_0x161209(0x4bd)][_0x161209(0x1d9)](()=>{const _0x2f89d2=_0x161209;this[_0x2f89d2(0x43e)]&&clearTimeout(this[_0x2f89d2(0x43e)]),this['_hideTimer']=setTimeout(()=>{const _0x3ccacb=_0x2f89d2;this[_0x3ccacb(0x365)]=!0x1;},0x7d0);});return()=>{const _0x1bd373=_0x161209;_0x1905ee['unsubscribe'](),_0x13e055[_0x1bd373(0x4ed)]();};}[_0x4aaaf0(0x5ce)](_0x3d471e,_0x4bfd2c,_0x342dc5,_0x350fe2){const _0x1e6b00=_0x4aaaf0,_0x8a0f1f=new a[(_0x1e6b00(0x394))](_0x3d471e)[_0x1e6b00(0x1e1)](0.2)['toRgbString'](),_0x11f178=new O[(_0x1e6b00(0x2e8))](vi+a['Tools'][_0x1e6b00(0x1c9)](le),{'pointsGroup':_0x4bfd2c,'fill':_0x8a0f1f||O[_0x1e6b00(0x390)](a[_0x1e6b00(0x418)]['black'],0.2),'left':_0x342dc5,'top':_0x350fe2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1e6b00(0x4ce)](_0x11f178),this['_scene']['addObject'](_0x11f178,N['TEXT_RANGE_LAYER_INDEX']);}[_0x4aaaf0(0x4e6)](_0xf490a7,_0x406408,_0x17afbe,_0x14c345){const _0x4f00d8=_0x4aaaf0,_0x592b16=new a[(_0x4f00d8(0x394))](_0xf490a7)[_0x4f00d8(0x1e1)](0.2)[_0x4f00d8(0x2c2)](),_0x193623=new O['RegularPolygon'](mi+a['Tools'][_0x4f00d8(0x1c9)](le),{'pointsGroup':_0x406408,'fill':_0x592b16||O[_0x4f00d8(0x390)](a[_0x4f00d8(0x418)][_0x4f00d8(0x2ca)],0.2),'left':_0x17afbe,'top':_0x14c345,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f00d8(0x225)]['push'](_0x193623),this['_scene'][_0x4f00d8(0x32d)](_0x193623,N[_0x4f00d8(0x34a)]);}[_0x4aaaf0(0x46b)](_0x102c50){const _0x460e31=_0x102c50[0x0],_0x5d59f5=_0x460e31[0x0],_0x473d38=_0x460e31[0x2],{x:_0x30ab32,y:_0x2a764a}=_0x5d59f5,{x:_0x32a421,y:_0x44565b}=_0x473d38;return{'left':_0x30ab32,'top':_0x2a764a,'width':_0x32a421-_0x30ab32,'height':_0x44565b-_0x2a764a};}[_0x4aaaf0(0x59f)](){const _0x2c8875=_0x4aaaf0,{scaleX:_0x26c010,scaleY:_0x14d19e}=this[_0x2c8875(0x293)]['getAncestorScale']();return Math['max'](_0x26c010,_0x14d19e);}}var pi=Object['defineProperty'],Ci=Object[_0x4aaaf0(0x28b)],Ei=(_0x33d311,_0x85ac0d,_0x6cc3df,_0x5b3ae2)=>{const _0x36cb15=_0x4aaaf0;for(var _0xbad9ef=_0x5b3ae2>0x1?void 0x0:_0x5b3ae2?Ci(_0x85ac0d,_0x6cc3df):_0x85ac0d,_0x41f100=_0x33d311[_0x36cb15(0x31a)]-0x1,_0x3034ca;_0x41f100>=0x0;_0x41f100--)(_0x3034ca=_0x33d311[_0x41f100])&&(_0xbad9ef=(_0x5b3ae2?_0x3034ca(_0x85ac0d,_0x6cc3df,_0xbad9ef):_0x3034ca(_0xbad9ef))||_0xbad9ef);return _0x5b3ae2&&_0xbad9ef&&pi(_0x85ac0d,_0x6cc3df,_0xbad9ef),_0xbad9ef;},ve=(_0x2c62e2,_0x3edce0)=>(_0x19fcdc,_0x32668c)=>_0x3edce0(_0x19fcdc,_0x32668c,_0x2c62e2);let Be=class extends a[_0x4aaaf0(0x275)]{constructor(_0x1aa164,_0x3a8b6c,_0x132e81,_0x3a9c2e,_0x241cd3){const _0x9cc77a=_0x4aaaf0;super(),u(this,_0x9cc77a(0x45b),[]),u(this,_0x9cc77a(0x301),[]),(this[_0x9cc77a(0x4e2)]=_0x1aa164,this['_docSkeletonManagerService']=_0x3a8b6c,this[_0x9cc77a(0x58d)]=_0x132e81,this['_commandService']=_0x3a9c2e,this[_0x9cc77a(0x330)]=_0x241cd3,this[_0x9cc77a(0x33d)]());}[_0x4aaaf0(0x33d)](){const _0x589203=_0x4aaaf0,_0x5f5bcf=this[_0x589203(0x4e2)][_0x589203(0x22c)],_0x449f07=this[_0x589203(0x50a)];this['disposeWithMe'](v['combineLatest']([this[_0x589203(0x58d)][_0x589203(0x355)](_0x5f5bcf),this['_themeService'][_0x589203(0x54e)]])[_0x589203(0x2b0)](E[_0x589203(0x263)](([_0x567c6a,_0x1dd5ca])=>({'skeleton':_0x449f07[_0x589203(0x213)](),'cursors':[..._0x567c6a[_0x589203(0x4ca)]()][_0x589203(0x534)](_0x21173c=>({..._0x21173c,'color':_0x1dd5ca[_0x21173c[_0x589203(0x3b4)]]}))})))[_0x589203(0x236)](_0x17ad34=>{if(this['_removeCollabCursors'](),_0x17ad34){const {skeleton:_0x38d7e5,cursors:_0x9eb196}=_0x17ad34;this['_updateCollabCursors'](_0x38d7e5,_0x9eb196);}})),this[_0x589203(0x5c6)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x1daa3c,_0x3e6cfc){const _0x24b514=_0x4aaaf0,{scene:_0x3fca04,mainComponent:_0x5b68bc}=this[_0x24b514(0x4e2)],_0x2cd873=_0x3e6cfc[_0x24b514(0x263)](_0x29b321=>new lt(_0x29b321,_0x3fca04,_0x1daa3c,_0x5b68bc));this['_cursorShapes']=_0x2cd873,this['_cursors']=_0x3e6cfc;}[_0x4aaaf0(0x1f4)](){const _0x39e592=_0x4aaaf0;this[_0x39e592(0x468)]();const {scene:_0x103515,mainComponent:_0x2fa967}=this[_0x39e592(0x4e2)],_0x37db87=this['_docSkeletonManagerService']['getSkeleton'](),_0xf71bd2=this[_0x39e592(0x301)]['map'](_0x5ef126=>new lt(_0x5ef126,_0x103515,_0x37db87,_0x2fa967));this[_0x39e592(0x45b)]=_0xf71bd2;}[_0x4aaaf0(0x468)](){const _0x3df0f1=_0x4aaaf0;this[_0x3df0f1(0x45b)][_0x3df0f1(0x1d6)](_0x27f80e=>_0x27f80e[_0x3df0f1(0x342)]()),this[_0x3df0f1(0x45b)]=[];}[_0x4aaaf0(0x54f)](){const _0xb29c6=_0x4aaaf0,_0x46e559=[N[_0xb29c6(0x469)]['id']];this['disposeWithMe'](this[_0xb29c6(0x310)]['onCommandExecuted'](_0x5e8d01=>{const _0x379399=_0xb29c6;_0x46e559[_0x379399(0x1e0)](_0x5e8d01['id'])&&_0x5e8d01[_0x379399(0x348)][_0x379399(0x22c)]===this[_0x379399(0x4e2)][_0x379399(0x22c)]&&this['_refreshCollabCursors']();}));}[_0x4aaaf0(0x5c6)](){const _0x5578c4=_0x4aaaf0;this[_0x5578c4(0x367)](a[_0x5578c4(0x3b5)](this['_context']['engine']['onTransformChange$'])['pipe'](E[_0x5578c4(0x36d)](_0x30b242=>_0x30b242[_0x5578c4(0x4aa)]===O[_0x5578c4(0x550)][_0x5578c4(0x3b8)]),E[_0x5578c4(0x1c6)](0x10))[_0x5578c4(0x236)](()=>{const _0xfc8b92=_0x5578c4;this[_0xfc8b92(0x1f4)]();}));}};Be=Ei([ve(0x1,a[_0x4aaaf0(0x1b2)](ne[_0x4aaaf0(0x511)])),ve(0x2,a['Inject'](oe)),ve(0x3,a[_0x4aaaf0(0x5df)]),ve(0x4,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1c2)]))],Be);const bi=0x1,Ti=1.5;class wt extends O[_0x4aaaf0(0x1fe)]{constructor(_0x447de2,_0x539adc){const _0x26e841=_0x4aaaf0;super(_0x447de2,_0x539adc),u(this,_0x26e841(0x5a3)),u(this,_0x26e841(0x47f),!0x1),u(this,_0x26e841(0x52b)),u(this,_0x26e841(0x248),''),u(this,_0x26e841(0x2d0),_0x26e841(0x314)),u(this,'_backgroundColor'),(_0x539adc&&this[_0x26e841(0x59d)](_0x539adc),this[_0x26e841(0x333)]['subscribeEvent'](()=>this[_0x26e841(0x59d)]({'hovered':!0x0})),this[_0x26e841(0x4bd)][_0x26e841(0x1d9)](()=>this[_0x26e841(0x59d)]({'hovered':!0x1})));}[_0x4aaaf0(0x59d)](_0xd91d65){const _0x3c199d=_0x4aaaf0;var _0x129dae,_0x1ecf53,_0x4a5ec7,_0x1f79d4,_0x279595,_0xf5d7d;this[_0x3c199d(0x5a3)]=(_0x129dae=_0xd91d65['color'])!=null?_0x129dae:this['_color'],this['_hovered']=(_0x1ecf53=_0xd91d65[_0x3c199d(0x5b1)])!=null?_0x1ecf53:this[_0x3c199d(0x47f)],this[_0x3c199d(0x52b)]=(_0x4a5ec7=_0xd91d65[_0x3c199d(0x325)])!=null?_0x4a5ec7:this[_0x3c199d(0x52b)],this[_0x3c199d(0x248)]=(_0x1f79d4=_0xd91d65[_0x3c199d(0x2b1)])!=null?_0x1f79d4:this['_name'],this['_labelPosition']=(_0x279595=_0xd91d65[_0x3c199d(0x455)])!=null?_0x279595:this[_0x3c199d(0x2d0)],this[_0x3c199d(0x228)]=(_0xf5d7d=_0xd91d65[_0x3c199d(0x55b)])!=null?_0xf5d7d:this['_backgroundColor'],this['transformByState']({'width':_0xd91d65['width'],'height':_0xd91d65[_0x3c199d(0x1ac)]});}[_0x4aaaf0(0x1fc)](_0x1c30fa){const _0xbe5578=_0x4aaaf0,{row:_0xc66ad0,column:_0x30d818}=_0x1c30fa;if(_0xc66ad0>=this[_0xbe5578(0x52b)][_0xbe5578(0x453)]&&_0xc66ad0<=this[_0xbe5578(0x52b)][_0xbe5578(0x533)]&&_0x30d818>=this['_range'][_0xbe5578(0x531)]&&_0x30d818<=this[_0xbe5578(0x52b)][_0xbe5578(0x1c3)]){this[_0xbe5578(0x59d)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x525cc3){return!0x1;}[_0x4aaaf0(0x392)](_0x5219b6){const _0x26b47c=_0x4aaaf0;O[_0x26b47c(0x35a)]['drawWith'](_0x5219b6,{'width':this[_0x26b47c(0x43a)],'height':this['height'],'strokeWidth':Ti,'stroke':this[_0x26b47c(0x5a3)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x26b47c(0x47f)]&&(_0x5219b6[_0x26b47c(0x4e7)](),_0x5219b6[_0x26b47c(0x343)](0x1,0x0,0x0,0x1,this[_0x26b47c(0x43a)],this[_0x26b47c(0x2d0)]==='bottom'?0x0:-de),Oe['drawWith'](_0x5219b6,{'text':this['_name'],'color':this[_0x26b47c(0x5a3)]}),_0x5219b6[_0x26b47c(0x327)]());}}var Ri=Object['defineProperty'],Oi=Object[_0x4aaaf0(0x28b)],Di=(_0x451d84,_0x1b028f,_0x247994,_0x330b32)=>{const _0x26409e=_0x4aaaf0;for(var _0x15a71d=_0x330b32>0x1?void 0x0:_0x330b32?Oi(_0x1b028f,_0x247994):_0x1b028f,_0x167857=_0x451d84[_0x26409e(0x31a)]-0x1,_0xbc9100;_0x167857>=0x0;_0x167857--)(_0xbc9100=_0x451d84[_0x167857])&&(_0x15a71d=(_0x330b32?_0xbc9100(_0x1b028f,_0x247994,_0x15a71d):_0xbc9100(_0x15a71d))||_0x15a71d);return _0x330b32&&_0x15a71d&&Ri(_0x1b028f,_0x247994,_0x15a71d),_0x15a71d;},$e=(_0x41526a,_0x37a82b)=>(_0xdc9cb8,_0x1a676f)=>_0x37a82b(_0xdc9cb8,_0x1a676f,_0x41526a);const yi=0x1389;let Ve=class extends a[_0x4aaaf0(0x275)]{constructor(_0x469d94,_0xa943c8,_0x27bcf0,_0xdb710a){const _0x405355=_0x4aaaf0;super(),u(this,_0x405355(0x301),new Set()),u(this,_0x405355(0x1fb),null),(this[_0x405355(0x4e2)]=_0x469d94,this[_0x405355(0x582)]=_0xa943c8,this[_0x405355(0x58d)]=_0x27bcf0,this['_themeService']=_0xdb710a,this[_0x405355(0x33d)]());}[_0x4aaaf0(0x33d)](){const _0x5ef63c=_0x4aaaf0;this[_0x5ef63c(0x582)][_0x5ef63c(0x5c9)][_0x5ef63c(0x2b0)](E[_0x5ef63c(0x4b2)](this['dispose$']),E['switchMap'](_0x7a213f=>{const _0x382508=_0x5ef63c;if(_0x7a213f){const _0x2235f2=_0x7a213f[_0x382508(0x52d)];return v[_0x382508(0x1b4)](this[_0x382508(0x58d)][_0x382508(0x355)](this[_0x382508(0x4e2)][_0x382508(0x22c)]),this[_0x382508(0x330)][_0x382508(0x54e)])[_0x382508(0x2b0)](E['map'](([_0x2b263a,_0x495b2d])=>{const _0xac5677=_0x382508,_0x8cc173=new Map();return _0x2b263a[_0xac5677(0x1d6)]((_0x1d1913,_0x5f5df2)=>{const _0x17238f=_0xac5677;if(_0x1d1913[_0x17238f(0x388)]===_0x2235f2){const _0x47e1f2={..._0x1d1913};_0x47e1f2[_0x17238f(0x3b4)]=_0x495b2d[_0x1d1913[_0x17238f(0x3b4)]],_0x8cc173[_0x17238f(0x4af)](_0x5f5df2,_0x47e1f2);}}),{'skeleton':_0x7a213f,'cursors':_0x8cc173};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x5ef63c(0x236)](({skeleton:_0x46d718,cursors:_0x1953ed})=>{const _0x59d41e=_0x5ef63c;this[_0x59d41e(0x468)](),_0x46d718&&this['_updateCollabCursors'](_0x46d718,_0x1953ed);}),this[_0x5ef63c(0x582)][_0x5ef63c(0x5c9)][_0x5ef63c(0x236)](_0x1e423c=>{const _0x4c40bc=_0x5ef63c;if(_0x1e423c==null)return;const {skeleton:_0x4a67b2}=_0x1e423c,{scene:_0x336c47}=this['_context'];_0x336c47['onPointerMove$']['subscribeEvent'](a[_0x4c40bc(0x54d)](_0x2dfd2a=>{const _0x2e871c=_0x4c40bc;var _0x213347,_0x57e16a;const {offsetX:_0x980b7a,offsetY:_0x347dbf}=_0x2dfd2a,{x:_0xd8a146,y:_0x3857bb}=_0x336c47[_0x2e871c(0x5ad)](O[_0x2e871c(0x473)]['FromArray']([_0x980b7a,_0x347dbf])),{scaleX:_0x3fa620,scaleY:_0x4e05c0}=_0x336c47[_0x2e871c(0x1de)](),_0x4bea6a=_0x336c47['getViewport'](ie['VIEWPORT_KEY'][_0x2e871c(0x1b8)]),_0x1cd3e1=_0x336c47[_0x2e871c(0x27c)](O[_0x2e871c(0x473)]['FromArray']([_0xd8a146,_0x3857bb]),_0x4bea6a),_0x174d93=_0x4a67b2['getCellPositionByOffset'](_0x980b7a,_0x347dbf,_0x3fa620,_0x4e05c0,_0x1cd3e1);((_0x213347=this[_0x2e871c(0x1fb)])==null?void 0x0:_0x213347[_0x2e871c(0x2f2)])===_0x174d93['column']&&((_0x57e16a=this[_0x2e871c(0x1fb)])==null?void 0x0:_0x57e16a[_0x2e871c(0x1db)])===_0x174d93[_0x2e871c(0x1db)]||this[_0x2e871c(0x301)][_0x2e871c(0x1d6)](_0x187b09=>{const _0x473209=_0x2e871c;_0x187b09[_0x473209(0x1fc)](_0x174d93);});},0x64));});}[_0x4aaaf0(0x55e)](_0x55374e,_0x31dc3e){const _0x351e0c=_0x4aaaf0;var _0xc0aae2;const _0x2f4ca5=(_0xc0aae2=this['_sheetSkeletonManagerService'][_0x351e0c(0x57a)]())==null?void 0x0:_0xc0aae2[_0x351e0c(0x43b)];if(!_0x2f4ca5)return;const _0x2a318f=this[_0x351e0c(0x1e8)]();if(!_0x2a318f)return;this[_0x351e0c(0x301)]['forEach'](_0x43f7a4=>{const _0x1d0559=_0x351e0c;_0x43f7a4[_0x1d0559(0x3fc)]();});const {scene:_0x445288}=_0x2a318f,_0x1e672f=Ui(Array[_0x351e0c(0x36c)](_0x31dc3e[_0x351e0c(0x4ca)]()))['map'](_0x516f29=>{const _0x4ed9b3=_0x351e0c,{color:_0x17fbcc,range:_0x1d79c7,name:_0x20f6d0,selection:_0x4b1c28,sheetID:_0x42e40e}=_0x516f29,{startColumn:_0x21c32d,startRow:_0x26978f,endColumn:_0x4c87fe,endRow:_0x4b5cef}=_0x1d79c7,_0x1355b0=ie[_0x4ed9b3(0x1c0)](_0x26978f,_0x21c32d,_0x445288,_0x2f4ca5),_0x8bf623=ie[_0x4ed9b3(0x1c0)](_0x4b5cef,_0x4c87fe,_0x445288,_0x2f4ca5),{columnHeaderHeightAndMarginTop:_0x12596b}=_0x2f4ca5,{startX:_0x3409ca,startY:_0x1df6a5}=_0x1355b0,{endX:_0x1d5cf0,endY:_0x58833f}=_0x8bf623,_0xc88b0=_0x1d5cf0-_0x3409ca,_0x18bc2f=_0x58833f-_0x1df6a5,_0x5d8751={'labelPosition':_0x1df6a5-_0x12596b>=de?_0x4ed9b3(0x314):'bottom','sheetID':_0x42e40e,'range':_0x1d79c7,'color':_0x17fbcc,'name':_0x20f6d0,'selection':_0x4b1c28,'left':_0x3409ca,'top':_0x1df6a5,'width':_0xc88b0,'height':_0x18bc2f,'evented':!0x1,'zIndex':yi};return new wt(_0x20f6d0,_0x5d8751);});_0x445288['addObjects'](_0x1e672f,bi),this[_0x351e0c(0x301)]=new Set(_0x1e672f);}[_0x4aaaf0(0x468)](){const _0x14340d=_0x4aaaf0;var _0x36b2d1;(_0x36b2d1=this[_0x14340d(0x301)])==null||_0x36b2d1['forEach'](_0x2859fc=>_0x2859fc[_0x14340d(0x342)]());}[_0x4aaaf0(0x1e8)](){const _0x4349a2=_0x4aaaf0;return ie[_0x4349a2(0x379)](this['_context'][_0x4349a2(0x532)],this['_context']);}};Ve=Di([$e(0x1,a[_0x4aaaf0(0x1b2)](ie[_0x4aaaf0(0x449)])),$e(0x2,a[_0x4aaaf0(0x1b2)](oe)),$e(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1c2)]))],Ve);function Ui(_0xf6fc47){const _0x329c2f=_0x4aaaf0,_0x12db33=new Map();return _0xf6fc47[_0x329c2f(0x1d6)](_0x3a2495=>{const _0x518a5f=_0x329c2f;if(_0x12db33[_0x518a5f(0x2cc)](_0x3a2495[_0x518a5f(0x4ef)])){const _0x526e9b=_0x12db33[_0x518a5f(0x439)](_0x3a2495['selection']);_0x526e9b[_0x518a5f(0x2b1)]+=',\x20'+_0x3a2495['name'];}else _0x12db33[_0x518a5f(0x4af)](_0x3a2495[_0x518a5f(0x4ef)],_0x3a2495);}),Array[_0x329c2f(0x36c)](_0x12db33['values']());}var M=function(){const _0x65fd5d=_0x4aaaf0;return M=Object[_0x65fd5d(0x4ea)]||function(_0xb24d0c){const _0x2fb3bf=_0x65fd5d;for(var _0x2e77be,_0x38fe4d=0x1,_0x2ca08c=arguments['length'];_0x38fe4d<_0x2ca08c;_0x38fe4d++){_0x2e77be=arguments[_0x38fe4d];for(var _0x5d34c4 in _0x2e77be)Object['prototype'][_0x2fb3bf(0x519)][_0x2fb3bf(0x48a)](_0x2e77be,_0x5d34c4)&&(_0xb24d0c[_0x5d34c4]=_0x2e77be[_0x5d34c4]);}return _0xb24d0c;},M[_0x65fd5d(0x461)](this,arguments);},Pi=function(_0x192510,_0x52065a){const _0x4d6f31=_0x4aaaf0;var _0x4def9a={};for(var _0x9fda7 in _0x192510)Object['prototype'][_0x4d6f31(0x519)][_0x4d6f31(0x48a)](_0x192510,_0x9fda7)&&_0x52065a[_0x4d6f31(0x501)](_0x9fda7)<0x0&&(_0x4def9a[_0x9fda7]=_0x192510[_0x9fda7]);if(_0x192510!=null&&typeof Object[_0x4d6f31(0x391)]==_0x4d6f31(0x280)){for(var _0x208b1b=0x0,_0x9fda7=Object[_0x4d6f31(0x391)](_0x192510);_0x208b1b<_0x9fda7['length'];_0x208b1b++)_0x52065a[_0x4d6f31(0x501)](_0x9fda7[_0x208b1b])<0x0&&Object[_0x4d6f31(0x38f)][_0x4d6f31(0x513)][_0x4d6f31(0x48a)](_0x192510,_0x9fda7[_0x208b1b])&&(_0x4def9a[_0x9fda7[_0x208b1b]]=_0x192510[_0x9fda7[_0x208b1b]]);}return _0x4def9a;},Je=y[_0x4aaaf0(0x4db)](function(_0x2658e6,_0x572e4){const _0x5d9b59=_0x4aaaf0;var _0x384bc0=_0x2658e6[_0x5d9b59(0x36b)],_0x12b784=_0x2658e6['id'],_0x1c6ca1=_0x2658e6[_0x5d9b59(0x382)],_0x2598de=_0x2658e6[_0x5d9b59(0x4e4)],_0x459e00=Pi(_0x2658e6,[_0x5d9b59(0x36b),'id','className','extend']),_0x51a60d='univerjs-icon\x20univerjs-icon-'[_0x5d9b59(0x328)](_0x12b784,'\x20')[_0x5d9b59(0x328)](_0x1c6ca1||'')['trim'](),_0x25c5d5=y[_0x5d9b59(0x2c7)]('_'[_0x5d9b59(0x328)](Mi()));return Nt(_0x384bc0,''[_0x5d9b59(0x328)](_0x12b784),{'defIds':_0x384bc0[_0x5d9b59(0x526)],'idSuffix':_0x25c5d5[_0x5d9b59(0x204)]},M({'ref':_0x572e4,'className':_0x51a60d},_0x459e00),_0x2598de);});function Nt(_0x399c50,_0x47f8e7,_0x276987,_0xbbbb30,_0x403ceb){const _0x3c4cf5=_0x4aaaf0;return y[_0x3c4cf5(0x3e0)](_0x399c50[_0x3c4cf5(0x1e7)],M(M({'key':_0x47f8e7},wi(_0x399c50,_0x276987,_0x403ceb)),_0xbbbb30),(Ni(_0x399c50,_0x276987)[_0x3c4cf5(0x59c)]||[])[_0x3c4cf5(0x263)](function(_0x3a41f0,_0x23f43c){const _0x291fff=_0x3c4cf5;return Nt(_0x3a41f0,''[_0x291fff(0x328)](_0x47f8e7,'-')['concat'](_0x399c50[_0x291fff(0x1e7)],'-')[_0x291fff(0x328)](_0x23f43c),_0x276987,void 0x0,_0x403ceb);}));}function wi(_0x468e52,_0x25ec27,_0x21bc05){const _0x4323b9=_0x4aaaf0;var _0x4dbbf0=M({},_0x468e52[_0x4323b9(0x3d9)]);_0x21bc05!=null&&_0x21bc05[_0x4323b9(0x205)]&&_0x4dbbf0[_0x4323b9(0x444)]==='colorChannel1'&&(_0x4dbbf0[_0x4323b9(0x444)]=_0x21bc05[_0x4323b9(0x205)]);var _0x431667=_0x25ec27[_0x4323b9(0x526)];return!_0x431667||_0x431667[_0x4323b9(0x31a)]===0x0||(_0x468e52['tag']===_0x4323b9(0x21c)&&_0x4dbbf0[_0x4323b9(0x56f)]&&(_0x4dbbf0['xlink:href']=_0x4dbbf0['xlink:href']+_0x25ec27[_0x4323b9(0x462)]),Object[_0x4323b9(0x1af)](_0x4dbbf0)[_0x4323b9(0x1d6)](function(_0x3e3dac){const _0x58a58c=_0x4323b9;var _0x535cec=_0x3e3dac[0x0],_0x2e8d6d=_0x3e3dac[0x1];typeof _0x2e8d6d==_0x58a58c(0x31c)&&(_0x4dbbf0[_0x535cec]=_0x2e8d6d[_0x58a58c(0x32c)](/url\(#(.*)\)/,_0x58a58c(0x27e)['concat'](_0x25ec27['idSuffix'],')')));})),_0x4dbbf0;}function Ni(_0xdaeef2,_0x4e7ba2){const _0xf863e0=_0x4aaaf0;var _0x27aec5,_0x440372=_0x4e7ba2[_0xf863e0(0x526)];return!_0x440372||_0x440372['length']===0x0?_0xdaeef2:_0xdaeef2['tag']==='defs'&&(!((_0x27aec5=_0xdaeef2[_0xf863e0(0x59c)])===null||_0x27aec5===void 0x0)&&_0x27aec5[_0xf863e0(0x31a)])?M(M({},_0xdaeef2),{'children':_0xdaeef2[_0xf863e0(0x59c)]['map'](function(_0xb7fe99){const _0x3b1d87=_0xf863e0;return typeof _0xb7fe99['attrs']['id']==_0x3b1d87(0x31c)&&_0x440372&&_0x440372[_0x3b1d87(0x501)](_0xb7fe99[_0x3b1d87(0x3d9)]['id'])>-0x1?M(M({},_0xb7fe99),{'attrs':M(M({},_0xb7fe99[_0x3b1d87(0x3d9)]),{'id':_0xb7fe99['attrs']['id']+_0x4e7ba2[_0x3b1d87(0x462)]})}):_0xb7fe99;})}):_0xdaeef2;}function Mi(){const _0x35ce3b=_0x4aaaf0;return Math['random']()[_0x35ce3b(0x222)](0x24)[_0x35ce3b(0x2dc)](0x2,0x8);}Je['displayName']='UniverIcon';var Ai={'tag':_0x4aaaf0(0x218),'attrs':{'fill':_0x4aaaf0(0x32e),'viewBox':_0x4aaaf0(0x564),'width':'1em','height':_0x4aaaf0(0x27f)},'children':[{'tag':'g','attrs':{'clipPath':_0x4aaaf0(0x227)},'children':[{'tag':'path','attrs':{'stroke':_0x4aaaf0(0x26e),'d':_0x4aaaf0(0x1cc),'strokeLinecap':'round','strokeLinejoin':_0x4aaaf0(0x2a4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4aaaf0(0x210),'attrs':{'id':_0x4aaaf0(0x332)},'children':[{'tag':_0x4aaaf0(0x1c5),'attrs':{'fill':_0x4aaaf0(0x223),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Mt=y[_0x4aaaf0(0x4db)](function(_0x530c8a,_0x2efe2a){const _0x40b776=_0x4aaaf0;return y[_0x40b776(0x3e0)](Je,Object[_0x40b776(0x4ea)]({},_0x530c8a,{'id':_0x40b776(0x3f2),'ref':_0x2efe2a,'icon':Ai}));});Mt['displayName']=_0x4aaaf0(0x35e);var Li={'tag':_0x4aaaf0(0x218),'attrs':{'fill':'none','viewBox':_0x4aaaf0(0x5bd),'width':_0x4aaaf0(0x27f),'height':_0x4aaaf0(0x27f)},'children':[{'tag':'g','attrs':{'clipPath':_0x4aaaf0(0x3f0)},'children':[{'tag':_0x4aaaf0(0x1c5),'attrs':{'stroke':_0x4aaaf0(0x26e),'d':_0x4aaaf0(0x495),'strokeLinecap':_0x4aaaf0(0x2a4),'strokeLinejoin':_0x4aaaf0(0x2a4),'strokeWidth':1.2}}]},{'tag':_0x4aaaf0(0x20b),'attrs':{},'children':[{'tag':_0x4aaaf0(0x210),'attrs':{'id':_0x4aaaf0(0x321)},'children':[{'tag':'path','attrs':{'fill':_0x4aaaf0(0x223),'d':'M0\x200H16V16H0z','transform':_0x4aaaf0(0x37e)}}]}]}],'defIds':[_0x4aaaf0(0x321)]},At=y[_0x4aaaf0(0x4db)](function(_0x390bea,_0x1d73b9){const _0x5f13bf=_0x4aaaf0;return y[_0x5f13bf(0x3e0)](Je,Object[_0x5f13bf(0x4ea)]({},_0x390bea,{'id':_0x5f13bf(0x493),'ref':_0x1d73b9,'icon':Li}));});At['displayName']=_0x4aaaf0(0x2aa);function Lt(_0x4d3130){const _0xbbaa15=_0x4aaaf0;var _0x213caa,_0x40a33e,_0x46e80c='';if(typeof _0x4d3130=='string'||typeof _0x4d3130==_0xbbaa15(0x5a6))_0x46e80c+=_0x4d3130;else{if(typeof _0x4d3130=='object'){if(Array[_0xbbaa15(0x27b)](_0x4d3130)){var _0x2f295c=_0x4d3130[_0xbbaa15(0x31a)];for(_0x213caa=0x0;_0x213caa<_0x2f295c;_0x213caa++)_0x4d3130[_0x213caa]&&(_0x40a33e=Lt(_0x4d3130[_0x213caa]))&&(_0x46e80c&&(_0x46e80c+='\x20'),_0x46e80c+=_0x40a33e);}else{for(_0x40a33e in _0x4d3130)_0x4d3130[_0x40a33e]&&(_0x46e80c&&(_0x46e80c+='\x20'),_0x46e80c+=_0x40a33e);}}}return _0x46e80c;}function $i(){const _0xf87e3a=_0x4aaaf0;for(var _0x15fa10,_0x2a9867,_0x4e1c0c=0x0,_0x53b4df='',_0x3f19f1=arguments[_0xf87e3a(0x31a)];_0x4e1c0c<_0x3f19f1;_0x4e1c0c++)(_0x15fa10=arguments[_0x4e1c0c])&&(_0x2a9867=Lt(_0x15fa10))&&(_0x53b4df&&(_0x53b4df+='\x20'),_0x53b4df+=_0x2a9867);return _0x53b4df;}const ji=_0x4aaaf0(0x5a9),Hi='univer-online-status-title',xi=_0x4aaaf0(0x500),ki='univer-online',Bi=_0x4aaaf0(0x47a),he={'onlineStatusIcon':ji,'onlineStatusTitle':Hi,'onlineStatus':xi,'online':ki,'offline':Bi};function Vi(_0xb922d2){const _0x4c41d5=_0x4aaaf0;switch(_0xb922d2){case D[_0x4c41d5(0x270)]:return'collabStatus.offline';case D[_0x4c41d5(0x572)]:return'collabStatus.conflict';case D['FETCH_MISS']:return _0x4c41d5(0x40c);case D[_0x4c41d5(0x251)]:return _0x4c41d5(0x3d2);case D[_0x4c41d5(0x261)]:case D['AWAITING_WITH_PENDING']:return _0x4c41d5(0x1ae);case D[_0x4c41d5(0x2a1)]:case D['PENDING']:return _0x4c41d5(0x23a);}}function $t(_0x1114c6){const _0x4273a6=_0x4aaaf0,{status$:_0x419e63}=_0x1114c6,_0x3d3481=A[_0x4273a6(0x5da)](_0x419e63,D[_0x4273a6(0x251)]),_0x52f51e=a['useDependency'](a['LocaleService']),_0x109761=a['useDependency'](exports[_0x4273a6(0x48f)]),_0x338d37=_0x3d3481!==D[_0x4273a6(0x270)],_0x216150=_0x52f51e['t'](Vi(_0x3d3481)),_0x23c249=$i(he[_0x4273a6(0x446)],{[he[_0x4273a6(0x320)]]:_0x338d37,[he[_0x4273a6(0x45a)]]:!_0x338d37}),_0x49354b=_0x338d37?y[_0x4273a6(0x3e0)](At,null):y['createElement'](Mt,null),_0x1864f6=y[_0x4273a6(0x48e)](()=>{const _0x477a2e=_0x4273a6;_0x338d37||_0x109761[_0x477a2e(0x22a)]();},[_0x338d37,_0x109761]);function _0x52eb88(){const _0x37bdf0=_0x4273a6;return y[_0x37bdf0(0x3e0)]('div',{'className':_0x23c249,'onClick':_0x1864f6},y['createElement']('div',{'className':he[_0x37bdf0(0x5a4)]},_0x49354b),y[_0x37bdf0(0x3e0)]('div',{'className':he['onlineStatusTitle']},_0x216150));}return _0x338d37?_0x52eb88():y[_0x4273a6(0x3e0)](J['Tooltip'],{'title':_0x52f51e['t']('collab-client.tooltip.reconnect')},_0x52eb88());}var Wi=Object['defineProperty'],Fi=Object[_0x4aaaf0(0x28b)],Gi=(_0x37f3d3,_0x298e4c,_0x3f080e,_0xbb574d)=>{const _0x3fa287=_0x4aaaf0;for(var _0xd2d701=_0xbb574d>0x1?void 0x0:_0xbb574d?Fi(_0x298e4c,_0x3f080e):_0x298e4c,_0x178faa=_0x37f3d3[_0x3fa287(0x31a)]-0x1,_0x4c7404;_0x178faa>=0x0;_0x178faa--)(_0x4c7404=_0x37f3d3[_0x178faa])&&(_0xd2d701=(_0xbb574d?_0x4c7404(_0x298e4c,_0x3f080e,_0xd2d701):_0x4c7404(_0xd2d701))||_0xd2d701);return _0xbb574d&&_0xd2d701&&Wi(_0x298e4c,_0x3f080e,_0xd2d701),_0xd2d701;},me=(_0x3e1149,_0x102235)=>(_0x21ec34,_0x549125)=>_0x102235(_0x21ec34,_0x549125,_0x3e1149);exports[_0x4aaaf0(0x1e2)]=class extends a['Disposable']{constructor(_0x5341a5,_0x5af320,_0x451944,_0x487f88){const _0x3b4ea8=_0x4aaaf0;super(),u(this,_0x3b4ea8(0x5af),new v[(_0x3b4ea8(0x442))](D['NOT_COLLAB'])),(this[_0x3b4ea8(0x46d)]=_0x5341a5,this[_0x3b4ea8(0x514)]=_0x5af320,this['_injector']=_0x451944,this[_0x3b4ea8(0x472)]=_0x487f88,this[_0x3b4ea8(0x1f7)](),this[_0x3b4ea8(0x51f)]());}[_0x4aaaf0(0x51f)](){const _0x47eef8=_0x4aaaf0;this[_0x47eef8(0x367)](this[_0x47eef8(0x46d)][_0x47eef8(0x491)][_0x47eef8(0x2b0)](v[_0x47eef8(0x3e7)](()=>{const _0x4986ac=_0x47eef8,_0x1d4e94=this[_0x4986ac(0x46d)][_0x4986ac(0x4e3)]();return _0x1d4e94?this[_0x4986ac(0x472)]['getCollabEntity$'](_0x1d4e94['getUnitId']()):v['of'](null);}),v[_0x47eef8(0x3e7)](_0x5b141c=>_0x5b141c?_0x5b141c['status$']:v['of'](D[_0x47eef8(0x251)])))['subscribe'](_0x3a60b2=>{const _0x6229a9=_0x47eef8;this[_0x6229a9(0x5af)][_0x6229a9(0x3b3)](_0x3a60b2);}));}[_0x4aaaf0(0x1f7)](){const _0x5611c1=_0x4aaaf0;this[_0x5611c1(0x367)](this[_0x5611c1(0x514)]['registerComponent'](A[_0x5611c1(0x524)][_0x5611c1(0x4c9)],()=>a[_0x5611c1(0x3f7)](Yi({'status$':this[_0x5611c1(0x5af)][_0x5611c1(0x2a7)]()}),this[_0x5611c1(0x5aa)])));}},exports[_0x4aaaf0(0x1e2)]=Gi([me(0x0,a['IUniverInstanceService']),me(0x1,A[_0x4aaaf0(0x46a)]),me(0x2,a[_0x4aaaf0(0x1b2)](a['Injector'])),me(0x3,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x265)]))],exports['DesktopCollaborationStatusDisplayController']);function Yi(_0x50206e){const {status$:_0x516af8}=_0x50206e;return function(){const _0x10d140=_0x47ba;return y[_0x10d140(0x3e0)]($t,{'status$':_0x516af8});};}const Ze=a['createIdentifier'](_0x4aaaf0(0x340));var Ki=Object[_0x4aaaf0(0x562)],Xi=Object[_0x4aaaf0(0x28b)],qi=(_0x318fdb,_0x54448a,_0x7ec55a,_0x11d511)=>{const _0x23f796=_0x4aaaf0;for(var _0x2ca9ff=_0x11d511>0x1?void 0x0:_0x11d511?Xi(_0x54448a,_0x7ec55a):_0x54448a,_0x59c9c2=_0x318fdb[_0x23f796(0x31a)]-0x1,_0x5e0cf0;_0x59c9c2>=0x0;_0x59c9c2--)(_0x5e0cf0=_0x318fdb[_0x59c9c2])&&(_0x2ca9ff=(_0x11d511?_0x5e0cf0(_0x54448a,_0x7ec55a,_0x2ca9ff):_0x5e0cf0(_0x2ca9ff))||_0x2ca9ff);return _0x11d511&&_0x2ca9ff&&Ki(_0x54448a,_0x7ec55a,_0x2ca9ff),_0x2ca9ff;},se=(_0x12a245,_0x31eb65)=>(_0x5dbb97,_0x556cf9)=>_0x31eb65(_0x5dbb97,_0x556cf9,_0x12a245);exports[_0x4aaaf0(0x295)]=class extends a[_0x4aaaf0(0x275)]{constructor(_0x2eeda9,_0xb66de5,_0x3b94c8,_0x39be7e,_0x2a21a0,_0x465386){const _0x31f0e3=_0x4aaaf0;super(),this['_urlService']=_0x2eeda9,this['_logService']=_0xb66de5,this[_0x31f0e3(0x310)]=_0x3b94c8,this[_0x31f0e3(0x4e9)]=_0x39be7e,this[_0x31f0e3(0x575)]=_0x2a21a0,_0x465386?_0x465386==null||_0x465386['whenReady']()[_0x31f0e3(0x254)](()=>this[_0x31f0e3(0x33d)]()):(this[_0x31f0e3(0x360)][_0x31f0e3(0x43f)](_0x31f0e3(0x2de),_0x31f0e3(0x23d)),this[_0x31f0e3(0x33d)]());}async[_0x4aaaf0(0x33d)](){const _0x518475=_0x4aaaf0,_0x885f8=this[_0x518475(0x470)][_0x518475(0x5a1)](_0x518475(0x532)),_0xe55d48=this[_0x518475(0x470)]['getParam'](_0x518475(0x4aa));if(!_0x885f8||!_0xe55d48){this[_0x518475(0x360)][_0x518475(0x43f)](_0x518475(0x2de),_0x518475(0x400));return;}switch(Number(_0xe55d48)){case H[_0x518475(0x4d0)]:{const _0x36b83c=await this[_0x518475(0x2c1)](_0x885f8);this['_setupSubUnitSync'](_0x36b83c);break;}case H[_0x518475(0x238)]:{await this[_0x518475(0x482)](_0x885f8);break;}default:{this[_0x518475(0x360)]['error'](_0x518475(0x2de),_0x518475(0x583));break;}}}async[_0x4aaaf0(0x59b)](_0x4f2e09){const _0x3556fd=_0x4aaaf0;await this['_updateSubUnitFromURLParams'](_0x4f2e09),_0x4f2e09['activeSheet$'][_0x3556fd(0x2b0)](v[_0x3556fd(0x4b2)](this[_0x3556fd(0x35d)]))[_0x3556fd(0x236)](_0x4a2e90=>{const _0x15122f=_0x3556fd;_0x4a2e90&&this[_0x15122f(0x485)](_0x4a2e90);}),this['_urlService'][_0x3556fd(0x3ab)]['pipe'](v[_0x3556fd(0x4b2)](this[_0x3556fd(0x35d)]))[_0x3556fd(0x236)](()=>this[_0x3556fd(0x49a)](_0x4f2e09));}[_0x4aaaf0(0x485)](_0x573f2d,_0x282b95=!0x1){const _0xd1c308=_0x4aaaf0,_0x1ba5b7=this[_0xd1c308(0x470)][_0xd1c308(0x5a1)](_0xd1c308(0x4d6));_0x573f2d[_0xd1c308(0x271)]()!==_0x1ba5b7&&this[_0xd1c308(0x470)][_0xd1c308(0x359)](_0xd1c308(0x4d6),_0x573f2d['getSheetId'](),_0x282b95);}async[_0x4aaaf0(0x49a)](_0x56b545){const _0x582830=_0x4aaaf0;var _0x245ddc;const _0x32612c=this['_urlService'][_0x582830(0x5a1)](_0x582830(0x4d6));if(!_0x32612c||!_0x56b545[_0x582830(0x5be)](_0x32612c)){const _0x2391a8=_0x56b545['getUnhiddenWorksheets']()[0x0],_0x4f9858=_0x56b545[_0x582830(0x5be)](_0x2391a8);if(!_0x4f9858)return;this[_0x582830(0x485)](_0x4f9858,!0x0),await this[_0x582830(0x310)]['executeCommand'](C[_0x582830(0x4dd)]['id'],{'unitId':_0x56b545[_0x582830(0x3e2)](),'subUnitId':_0x2391a8});return;}((_0x245ddc=_0x56b545[_0x582830(0x372)]())==null?void 0x0:_0x245ddc[_0x582830(0x271)]())!==_0x32612c&&await this['_commandService'][_0x582830(0x593)](C[_0x582830(0x4dd)]['id'],{'unitId':_0x56b545[_0x582830(0x3e2)](),'subUnitId':_0x32612c});}async['_loadSheet'](_0x950a56){const _0x44651c=_0x4aaaf0;let _0x2ae914=0x0;const _0x315ffe=await this[_0x44651c(0x4e9)][_0x44651c(0x436)](_0x950a56);return _0x315ffe&&(_0x315ffe[_0x44651c(0x1cd)]||_0x315ffe['mutations'][_0x44651c(0x31a)]!==0x0)&&(_0x2ae914=_0x315ffe[_0x44651c(0x2f7)]),_0x2ae914===0x0&&this['_logService'][_0x44651c(0x43f)]('[DataLoaderController]',_0x44651c(0x561)),this['_snapshotService'][_0x44651c(0x28c)](_0x950a56,_0x2ae914);}async[_0x4aaaf0(0x482)](_0x376e76){const _0x3558c6=_0x4aaaf0;let _0x2a98e4=0x0;const _0x127249=await this[_0x3558c6(0x4e9)][_0x3558c6(0x436)](_0x376e76);return _0x127249&&(_0x127249['awaitingChangeset']||_0x127249[_0x3558c6(0x2b7)][_0x3558c6(0x31a)]!==0x0)&&(_0x2a98e4=_0x127249['rev']),_0x2a98e4===0x0&&this[_0x3558c6(0x360)][_0x3558c6(0x43f)]('[DataLoaderController]',_0x3558c6(0x561)),this[_0x3558c6(0x575)][_0x3558c6(0x4c6)](_0x376e76,_0x2a98e4);}},exports[_0x4aaaf0(0x295)]=qi([se(0x0,Ze),se(0x1,a[_0x4aaaf0(0x1d1)]),se(0x2,a['ICommandService']),se(0x3,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),se(0x4,a['Inject'](_[_0x4aaaf0(0x3ed)])),se(0x5,a['Optional'](Xt['IRemoteInstanceService']))],exports[_0x4aaaf0(0x295)]);var zi=Object[_0x4aaaf0(0x562)],Ji=Object['getOwnPropertyDescriptor'],Zi=(_0x42183b,_0x61c70b,_0x45ec25,_0x180876)=>{const _0x5a382e=_0x4aaaf0;for(var _0x15f65e=_0x180876>0x1?void 0x0:_0x180876?Ji(_0x61c70b,_0x45ec25):_0x61c70b,_0x470215=_0x42183b[_0x5a382e(0x31a)]-0x1,_0x10443b;_0x470215>=0x0;_0x470215--)(_0x10443b=_0x42183b[_0x470215])&&(_0x15f65e=(_0x180876?_0x10443b(_0x61c70b,_0x45ec25,_0x15f65e):_0x10443b(_0x15f65e))||_0x15f65e);return _0x180876&&_0x15f65e&&zi(_0x61c70b,_0x45ec25,_0x15f65e),_0x15f65e;},ht=(_0x2a7d2a,_0x413027)=>(_0x342f51,_0x5433f7)=>_0x413027(_0x342f51,_0x5433f7,_0x2a7d2a);const Qi='DEFAULT_FILE_NAME',en=_0x4aaaf0(0x3d3);let Ce=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x1868f5,_0x44e8cd){const _0xfed1c7=_0x4aaaf0;super(),this[_0xfed1c7(0x46d)]=_0x1868f5,this[_0xfed1c7(0x428)]=_0x44e8cd,this['_init']();}[_0x4aaaf0(0x33d)](){const _0x877c4f=_0x4aaaf0;this['disposeWithMe'](this[_0x877c4f(0x46d)]['focused$'][_0x877c4f(0x236)](()=>{const _0x3d6b7e=_0x877c4f;var _0x415435;const _0x5ae94a=this[_0x3d6b7e(0x46d)]['getFocusedUnit']();let _0x3ae003=(_0x415435=this['_configService'][_0x3d6b7e(0x50b)](Qi))!=null?_0x415435:en;_0x5ae94a instanceof a['Workbook']&&(_0x3ae003=_0x5ae94a[_0x3d6b7e(0x2b1)]),document[_0x3d6b7e(0x5c8)]=_0x3ae003;}));}};Ce=Zi([ht(0x0,a[_0x4aaaf0(0x33f)]),ht(0x1,a[_0x4aaaf0(0x565)])],Ce);var tn=Object['defineProperty'],sn=Object[_0x4aaaf0(0x28b)],nn=(_0x25483d,_0xf0108,_0x17806e,_0x5a6e7f)=>{const _0x3aa12c=_0x4aaaf0;for(var _0x1ae97a=_0x5a6e7f>0x1?void 0x0:_0x5a6e7f?sn(_0xf0108,_0x17806e):_0xf0108,_0xdf6dfd=_0x25483d[_0x3aa12c(0x31a)]-0x1,_0x1ecd29;_0xdf6dfd>=0x0;_0xdf6dfd--)(_0x1ecd29=_0x25483d[_0xdf6dfd])&&(_0x1ae97a=(_0x5a6e7f?_0x1ecd29(_0xf0108,_0x17806e,_0x1ae97a):_0x1ecd29(_0x1ae97a))||_0x1ae97a);return _0x5a6e7f&&_0x1ae97a&&tn(_0xf0108,_0x17806e,_0x1ae97a),_0x1ae97a;},je=(_0x4b0c3c,_0x421bd4)=>(_0x333ae7,_0xf9b732)=>_0x421bd4(_0x333ae7,_0xf9b732,_0x4b0c3c);let Ee=class{constructor(_0x3911b9,_0x208443,_0x35c0){const _0x308b05=_0x4aaaf0;this[_0x308b05(0x428)]=_0x3911b9,this['_httpService']=_0x208443,this['localeService']=_0x35c0,this['init']();}[_0x4aaaf0(0x1d7)](){const _0x23084f=_0x4aaaf0;this[_0x23084f(0x30f)][_0x23084f(0x46f)]({'priority':0x1,'interceptor':(_0x258bbc,_0x4eefaa)=>_0x4eefaa(_0x258bbc)[_0x23084f(0x2b0)](v[_0x23084f(0x599)](async _0x20f9d9=>{const _0x113b9b=_0x23084f,_0xafd6ed=_0x20f9d9;if(_0xafd6ed['status']===0x191&&window['confirm'](this[_0x113b9b(0x4d4)]['t'](_0x113b9b(0x3fa)))){const _0x3a26e9=window[_0x113b9b(0x44c)](window[_0x113b9b(0x554)]['href']);window[_0x113b9b(0x554)][_0x113b9b(0x53d)]=this[_0x113b9b(0x1ba)]()+'?url='+_0x3a26e9;}return _0xafd6ed;}))});}[_0x4aaaf0(0x1ba)](){const _0x455dd2=_0x4aaaf0;var _0x3a3a17,_0x45c9fc;const _0x216875=this['_configService']['getConfig'](Ct),_0x40d72f=this[_0x455dd2(0x428)][_0x455dd2(0x50b)]($);return(_0x45c9fc=(_0x3a3a17=_0x40d72f==null?void 0x0:_0x40d72f['loginUrlKey'])!=null?_0x3a3a17:_0x216875)!=null?_0x45c9fc:rs;}};Ee=nn([je(0x0,a['IConfigService']),je(0x1,a[_0x4aaaf0(0x1b2)](U['HTTPService'])),je(0x2,a['Inject'](a[_0x4aaaf0(0x1f6)]))],Ee);var rn=Object[_0x4aaaf0(0x562)],on=Object['getOwnPropertyDescriptor'],an=(_0x189956,_0x5cac16,_0x14ac10,_0x1e7748)=>{for(var _0x335396=_0x1e7748>0x1?void 0x0:_0x1e7748?on(_0x5cac16,_0x14ac10):_0x5cac16,_0x490c74=_0x189956['length']-0x1,_0x59a914;_0x490c74>=0x0;_0x490c74--)(_0x59a914=_0x189956[_0x490c74])&&(_0x335396=(_0x1e7748?_0x59a914(_0x5cac16,_0x14ac10,_0x335396):_0x59a914(_0x335396))||_0x335396);return _0x1e7748&&_0x335396&&rn(_0x5cac16,_0x14ac10,_0x335396),_0x335396;},_t=(_0x44a9c9,_0x4096af)=>(_0x382d1c,_0x17ad20)=>_0x4096af(_0x382d1c,_0x17ad20,_0x44a9c9);const jt=_0x4aaaf0(0x4f6),cn=_0x4aaaf0(0x46e);exports[_0x4aaaf0(0x5dd)]=class extends a['Disposable']{constructor(_0x2bccf0,_0x1c6fb7){const _0x5456c0=_0x4aaaf0;super(),this[_0x5456c0(0x339)]=_0x2bccf0,this['_configService']=_0x1c6fb7,this[_0x5456c0(0x577)]();}['_initMergeInterceptor'](){const _0x2575fd=_0x4aaaf0,_0x1261ea=this;this['disposeWithMe'](this[_0x2575fd(0x339)][_0x2575fd(0x46f)]({'priority':0x3e7,'interceptor':U[_0x2575fd(0x309)]({'isMatch'(_0x286d63){const _0x76456d=_0x2575fd;var _0x497965;if(_0x286d63[_0x76456d(0x42b)]===_0x76456d(0x5bb)&&((_0x497965=_0x286d63[_0x76456d(0x464)])!=null&&_0x497965['body'])){const {objectID:_0x4626ef,objectType:_0xc41916}=_0x286d63['requestParams'][_0x76456d(0x3df)]||{};if(!_0x4626ef||_0xc41916===void 0x0)return!0x1;const _0x5e68c0=_0x1261ea['_getAPIPrefixPath']()+'/'+_0xc41916+_0x76456d(0x4e0)+_0x4626ef+_0x76456d(0x53c);if(_0x286d63[_0x76456d(0x56b)]===_0x5e68c0)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1e88af){const _0x322b51=_0x2575fd;var _0x4f7b22;return(_0x4f7b22=_0x1e88af[_0x322b51(0x464)])==null?void 0x0:_0x4f7b22[_0x322b51(0x3df)];},'mergeParamsToRequest'(_0x49f4d2,_0x276da0){const _0x25e3eb=_0x2575fd,_0x3ac792=_0x1261ea['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x364fe5=_0x49f4d2[_0x25e3eb(0x3ba)]((_0x585637,_0x393fd3)=>{const _0x5bde5a=_0x25e3eb,{unitID:_0x5f356a,objectID:_0x296fce,objectType:_0x3b52cc,actions:_0xd3b998}=_0x393fd3;return _0x585637[_0x5f356a]||(_0x585637[_0x5f356a]={}),_0x585637[_0x5f356a][_0x296fce]||(_0x585637[_0x5f356a][_0x296fce]={'objectID':_0x296fce,'objectType':_0x3b52cc,'actions':[]}),_0x585637[_0x5f356a][_0x296fce][_0x5bde5a(0x45c)][_0x5bde5a(0x4ce)](..._0xd3b998),_0x585637;},{}),_0x31060b=[];for(const _0x90aea7 in _0x364fe5)for(const _0x386c5e in _0x364fe5[_0x90aea7]){const {actions:_0x4924bf,objectType:_0x4c57ad}=_0x364fe5[_0x90aea7][_0x386c5e],_0x562679=[...new Set(_0x4924bf)];_0x31060b[_0x25e3eb(0x4ce)]({'unitID':_0x90aea7,'objectID':_0x386c5e,'objectType':_0x4c57ad,'actions':_0x562679});}return new U[(_0x25e3eb(0x37d))](_0x25e3eb(0x5bb),_0x3ac792,{'headers':_0x276da0['headers'],'withCredentials':_0x276da0[_0x25e3eb(0x2db)],'responseType':_0x276da0[_0x25e3eb(0x371)],'body':{'requests':_0x31060b}});}},{'distributeResult'(_0x40a325,_0xa9bc80){const _0x4e7ecd=_0x2575fd,{objectActions:_0x7b2c92}=_0x40a325;return _0xa9bc80[_0x4e7ecd(0x263)](_0x620636=>{const _0x4feb0a=_0x4e7ecd,{unitID:_0x7e011c,objectID:_0x4ccf40,actions:_0x56a810}=_0x620636,_0x51ec1b=_0x7b2c92['find'](_0x19cc76=>_0x19cc76[_0x4feb0a(0x41c)]===_0x7e011c&&_0x19cc76[_0x4feb0a(0x5cf)]===_0x4ccf40),_0x542728=_0x56a810[_0x4feb0a(0x263)](_0x585268=>_0x51ec1b==null?void 0x0:_0x51ec1b[_0x4feb0a(0x45c)]['find'](_0x29782f=>_0x29782f[_0x4feb0a(0x3ec)]===_0x585268))['filter'](_0x355ef8=>!!_0x355ef8);return{'config':_0x620636,'result':{'actions':_0x542728,'error':_0x40a325[_0x4feb0a(0x574)]}};});}})}));}['_getAPIPrefixPath'](){const _0x347469=_0x4aaaf0;var _0x1ee8ac,_0xf5b292;const _0x29b2c2=this[_0x347469(0x428)]['getConfig'](jt),_0x56a282=this['_configService'][_0x347469(0x50b)]($);return(_0xf5b292=(_0x1ee8ac=_0x56a282==null?void 0x0:_0x56a282[_0x347469(0x1ec)])!=null?_0x1ee8ac:_0x29b2c2)!=null?_0xf5b292:cn;}async['create'](_0x54974a){const _0x13530b=_0x4aaaf0,_0x7aecb8=this[_0x13530b(0x5a7)]()+'/'+_0x54974a[_0x13530b(0x435)]+_0x13530b(0x377);return(await this['_HTTPService']['post'](_0x7aecb8,{'body':_0x54974a}))[_0x13530b(0x3df)][_0x13530b(0x5cf)]||'';}async['list'](_0x4e3a8f){const _0x10c69d=_0x4aaaf0,_0x16aa3e=this[_0x10c69d(0x5a7)]()+_0x10c69d(0x337);return(await this[_0x10c69d(0x339)][_0x10c69d(0x2f3)](_0x16aa3e,{'body':_0x4e3a8f}))[_0x10c69d(0x3df)][_0x10c69d(0x568)];}async[_0x4aaaf0(0x409)](_0x37e002){const _0xc22508=_0x4aaaf0,_0x5be31a=this[_0xc22508(0x5a7)]()+'/'+_0x37e002[_0xc22508(0x435)]+'/object/'+_0x37e002[_0xc22508(0x5cf)];await this[_0xc22508(0x339)][_0xc22508(0x563)](_0x5be31a,{'body':_0x37e002});}async[_0x4aaaf0(0x1b0)](_0x3753fd){const _0x55cf94=_0x4aaaf0,_0x177602=this[_0x55cf94(0x5a7)]()+'/'+_0x3753fd['objectType']+_0x55cf94(0x4e0)+_0x3753fd[_0x55cf94(0x5cf)]+_0x55cf94(0x53c);return(await this[_0x55cf94(0x339)][_0x55cf94(0x2f3)](_0x177602,{'body':_0x3753fd}))['body'][_0x55cf94(0x45c)];}async['batchAllowed'](_0x520b09){const _0x3556da=_0x4aaaf0,_0x4d7b4b=this[_0x3556da(0x5a7)]()+_0x3556da(0x313);return(await this[_0x3556da(0x339)][_0x3556da(0x2f3)](_0x4d7b4b,{'body':{'requests':_0x520b09}}))['body'][_0x3556da(0x1df)];}async[_0x4aaaf0(0x317)](_0xfb4ea6){const _0x7ecff=_0x4aaaf0,_0x3b6006=this[_0x7ecff(0x5a7)]()+'/'+_0xfb4ea6[_0x7ecff(0x435)]+_0x7ecff(0x59a),_0x5ab6f6=await this[_0x7ecff(0x339)][_0x7ecff(0x2f3)](_0x3b6006,{'body':_0xfb4ea6});return{'roles':_0x5ab6f6['body']['roles'],'actions':_0x5ab6f6[_0x7ecff(0x3df)][_0x7ecff(0x45c)]};}async[_0x4aaaf0(0x326)](_0x59f23e){const _0x230856=_0x4aaaf0,_0x480985=this[_0x230856(0x5a7)]()+_0x230856(0x1ce);await this[_0x230856(0x339)]['delete'](_0x480985,{'params':{'collaboratorID':_0x59f23e[_0x230856(0x30e)],'objectID':_0x59f23e[_0x230856(0x5cf)],'unitID':_0x59f23e[_0x230856(0x41c)]}});}async[_0x4aaaf0(0x2bc)](_0x403054){const _0x139830=_0x4aaaf0,_0x2c2d05=this['_getAPIPrefixPath']()+_0x139830(0x1ce);await this['_HTTPService'][_0x139830(0x4c2)](_0x2c2d05,{'body':_0x403054});}async[_0x4aaaf0(0x2d4)](_0x34a7c3){const _0x5711df=_0x4aaaf0,_0x229816=this[_0x5711df(0x5a7)]()+_0x5711df(0x1ce);await this[_0x5711df(0x339)][_0x5711df(0x2f3)](_0x229816,{'body':_0x34a7c3});}async[_0x4aaaf0(0x502)](_0x4b2e46){const _0x9d6e91=_0x4aaaf0,_0x12c4eb=this[_0x9d6e91(0x5a7)]()+_0x9d6e91(0x1ce);return(await this[_0x9d6e91(0x339)][_0x9d6e91(0x439)](_0x12c4eb,{'params':{'objectID':_0x4b2e46[_0x9d6e91(0x5cf)],'unitID':_0x4b2e46[_0x9d6e91(0x41c)]}}))[_0x9d6e91(0x3df)][_0x9d6e91(0x5d3)];}async['putCollaborators'](_0x43dbcf){const _0x225f13=_0x4aaaf0,_0x37e4a0=this['_getAPIPrefixPath']()+_0x225f13(0x1ce);await this['_HTTPService'][_0x225f13(0x563)](_0x37e4a0,{'body':_0x43dbcf});}},exports['AuthzIoHttpService']=an([_t(0x0,a[_0x4aaaf0(0x1b2)](U[_0x4aaaf0(0x1e4)])),_t(0x1,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x565)]))],exports[_0x4aaaf0(0x5dd)]);var ln=Object['defineProperty'],hn=Object[_0x4aaaf0(0x28b)],_n=(_0x5030ef,_0x485309,_0x1b8428,_0x3a053d)=>{const _0x5787b2=_0x4aaaf0;for(var _0x1e5dc6=_0x3a053d>0x1?void 0x0:_0x3a053d?hn(_0x485309,_0x1b8428):_0x485309,_0x3da69b=_0x5030ef[_0x5787b2(0x31a)]-0x1,_0x21c522;_0x3da69b>=0x0;_0x3da69b--)(_0x21c522=_0x5030ef[_0x3da69b])&&(_0x1e5dc6=(_0x3a053d?_0x21c522(_0x485309,_0x1b8428,_0x1e5dc6):_0x21c522(_0x1e5dc6))||_0x1e5dc6);return _0x3a053d&&_0x1e5dc6&&ln(_0x485309,_0x1b8428,_0x1e5dc6),_0x1e5dc6;},un=(_0x1db807,_0x51a97f)=>(_0x29e2e,_0x564d48)=>_0x51a97f(_0x29e2e,_0x564d48,_0x1db807);let be=class{constructor(_0x1b4c2d){const _0x581cd1=_0x4aaaf0;this['_httpService']=_0x1b4c2d,this[_0x581cd1(0x3de)]();}[_0x4aaaf0(0x3de)](){const _0x46c0fa=_0x4aaaf0;this[_0x46c0fa(0x30f)][_0x46c0fa(0x46f)]({'interceptor':(_0x350af0,_0x3329ed)=>{const _0x360c99=_0x46c0fa,_0x277871=_0x350af0['headers'],_0x53df22=qt[_0x360c99(0x2c9)]();return _0x53df22&&_0x277871[_0x360c99(0x4af)](_0x360c99(0x2da),_0x53df22),_0x3329ed(_0x350af0);}});}};be=_n([un(0x0,a['Inject'](U[_0x4aaaf0(0x1e4)]))],be);var dn=Object[_0x4aaaf0(0x562)],Sn=Object[_0x4aaaf0(0x28b)],vn=(_0x2f0150,_0x573642,_0x4b00d4,_0x2474b1)=>{const _0x231f3d=_0x4aaaf0;for(var _0x104bd0=_0x2474b1>0x1?void 0x0:_0x2474b1?Sn(_0x573642,_0x4b00d4):_0x573642,_0x47fe87=_0x2f0150[_0x231f3d(0x31a)]-0x1,_0xa6aff0;_0x47fe87>=0x0;_0x47fe87--)(_0xa6aff0=_0x2f0150[_0x47fe87])&&(_0x104bd0=(_0x2474b1?_0xa6aff0(_0x573642,_0x4b00d4,_0x104bd0):_0xa6aff0(_0x104bd0))||_0x104bd0);return _0x2474b1&&_0x104bd0&&dn(_0x573642,_0x4b00d4,_0x104bd0),_0x104bd0;},He=(_0x29e046,_0x4c0ba2)=>(_0x2e3a60,_0x3727c7)=>_0x4c0ba2(_0x2e3a60,_0x3727c7,_0x29e046);const mn=['image/png',_0x4aaaf0(0x24f),_0x4aaaf0(0x319),_0x4aaaf0(0x24a),'image/bmp'],gn=0x5*0x400*0x400,fn=_0x4aaaf0(0x423),In=_0x4aaaf0(0x305),pn=_0x4aaaf0(0x3cd),Cn=_0x4aaaf0(0x544);exports['ImageIoService']=class{constructor(_0x410d42,_0x33adc3,_0x3ca569){const _0x3022d7=_0x4aaaf0;u(this,_0x3022d7(0x282),0x0),u(this,_0x3022d7(0x1ed),new v[(_0x3022d7(0x1d4))]()),u(this,_0x3022d7(0x584),this['_change$']),u(this,'_imageSourceCache',new Map()),(this[_0x3022d7(0x30f)]=_0x410d42,this[_0x3022d7(0x428)]=_0x33adc3,this[_0x3022d7(0x46d)]=_0x3ca569);}[_0x4aaaf0(0x3da)](_0x12a4a7){const _0x5bbf98=_0x4aaaf0;this[_0x5bbf98(0x282)]=_0x12a4a7,this[_0x5bbf98(0x1ed)]['next'](_0x12a4a7);}[_0x4aaaf0(0x54a)](_0x3adda3,_0x5cd783){const _0xf3742=_0x4aaaf0;if(_0x5cd783===j['ImageSourceType'][_0xf3742(0x1c4)]){const _0x186573=new Image();return _0x186573[_0xf3742(0x591)]=_0x3adda3,_0x186573;}return this[_0xf3742(0x39d)][_0xf3742(0x439)](_0x3adda3);}['addImageSourceCache'](_0x1cf84d,_0x20b006,_0x4c1c6){const _0x38abe9=_0x4aaaf0;_0x20b006===j[_0x38abe9(0x292)]['BASE64']||_0x4c1c6==null||this[_0x38abe9(0x39d)][_0x38abe9(0x4af)](_0x1cf84d,_0x4c1c6);}async['getImage'](_0xf1b5c7){const _0x357d52=_0x4aaaf0;try{const _0x3cc9e6=this['_replaceFileID'](this[_0x357d52(0x5d4)](),''+_0xf1b5c7),_0x4d2a46=(await this[_0x357d52(0x30f)][_0x357d52(0x439)](_0x3cc9e6))[_0x357d52(0x3df)];if(_0x4d2a46['error']&&_0x4d2a46[_0x357d52(0x574)][_0x357d52(0x512)]===Et['OK']){const _0x34be56=new URL(_0x4d2a46['url'],this[_0x357d52(0x336)]())['toString']();return Promise[_0x357d52(0x560)](_0x34be56);}return Promise['reject'](_0x4d2a46[_0x357d52(0x574)]);}catch(_0x20a5a6){return Promise[_0x357d52(0x47e)](_0x20a5a6);}}async[_0x4aaaf0(0x412)](_0x3ae8ad){const _0x3b7bf5=_0x4aaaf0;let _0x51a425='';if(!mn[_0x3b7bf5(0x1e0)](_0x3ae8ad[_0x3b7bf5(0x4aa)]))return this['_decreaseWaiting'](),Promise[_0x3b7bf5(0x47e)](new Error(j[_0x3b7bf5(0x288)][_0x3b7bf5(0x3c1)]));if(_0x3ae8ad[_0x3b7bf5(0x516)]>gn)return this['_decreaseWaiting'](),Promise['reject'](new Error(j[_0x3b7bf5(0x288)][_0x3b7bf5(0x1fd)]));try{const _0x1985e6=new FormData();_0x1985e6[_0x3b7bf5(0x3c8)](_0x3b7bf5(0x27d),_0x3ae8ad);const _0x118606=this[_0x3b7bf5(0x46d)][_0x3b7bf5(0x4e3)](),_0x3d6b9a=_0x118606==null?void 0x0:_0x118606[_0x3b7bf5(0x3e2)]();if(!_0x3d6b9a)throw new Error(_0x3b7bf5(0x50f));const _0x35b029=this[_0x3b7bf5(0x4c1)]()+_0x3b7bf5(0x4c0)+_0x3ae8ad[_0x3b7bf5(0x516)][_0x3b7bf5(0x222)]()+'&source='+bt[_0x3b7bf5(0x361)]+_0x3b7bf5(0x33e)+encodeURIComponent(_0x3d6b9a),_0x578606=await(await fetch(_0x35b029,{'method':_0x3b7bf5(0x5bb),'body':_0x1985e6}))[_0x3b7bf5(0x26a)]();if(typeof _0x578606[_0x3b7bf5(0x5dc)]!=_0x3b7bf5(0x31c))return this[_0x3b7bf5(0x323)](),Promise[_0x3b7bf5(0x47e)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE']));_0x51a425=_0x578606[_0x3b7bf5(0x5dc)];}catch{return this[_0x3b7bf5(0x323)](),Promise[_0x3b7bf5(0x47e)](new Error(j[_0x3b7bf5(0x288)][_0x3b7bf5(0x3dd)]));}return new Promise((_0x5a8b74,_0x4d6da0)=>{const _0x1db5a0=_0x3b7bf5,_0x2e8fe6=new FileReader();_0x2e8fe6[_0x1db5a0(0x430)](_0x3ae8ad),_0x2e8fe6[_0x1db5a0(0x1b7)]=_0x3c62c6=>{const _0x2ae06b=_0x1db5a0;var _0x593057;const _0x352061=(_0x593057=_0x3c62c6[_0x2ae06b(0x56c)])==null?void 0x0:_0x593057[_0x2ae06b(0x55d)];if(_0x352061==null){this[_0x2ae06b(0x323)](),_0x4d6da0(new Error(j[_0x2ae06b(0x288)][_0x2ae06b(0x3dd)]));return;}const _0x56eae2=a['Tools'][_0x2ae06b(0x1c9)](0x6);_0x5a8b74({'imageId':_0x56eae2,'imageSourceType':j['ImageSourceType']['UUID'],'source':_0x51a425,'base64Cache':_0x352061,'status':j[_0x2ae06b(0x288)]['SUCCUSS']}),this[_0x2ae06b(0x323)]();};});}['_getUploadFileURL'](){const _0x50405a=_0x4aaaf0;var _0x5d02b9,_0x346f2f;const _0x145485=this[_0x50405a(0x428)][_0x50405a(0x50b)](fn),_0xde9cf8=this['_configService']['getConfig']($);return(_0x346f2f=(_0x5d02b9=_0xde9cf8==null?void 0x0:_0xde9cf8['uploadFileServerUrl'])!=null?_0x5d02b9:_0x145485)!=null?_0x346f2f:In;}[_0x4aaaf0(0x5d4)](){const _0xd1f8c3=_0x4aaaf0;var _0x353d0b,_0x52a52d;const _0xf1111c=this[_0xd1f8c3(0x428)][_0xd1f8c3(0x50b)](pn),_0x59e6f6=this[_0xd1f8c3(0x428)][_0xd1f8c3(0x50b)]($);return(_0x52a52d=(_0x353d0b=_0x59e6f6==null?void 0x0:_0x59e6f6[_0xd1f8c3(0x48d)])!=null?_0x353d0b:_0xf1111c)!=null?_0x52a52d:Cn;}['_getDownloadEndpointURL'](){const _0x389228=_0x4aaaf0;var _0x2437f8;const _0x4a0163=this[_0x389228(0x428)]['getConfig']($);return(_0x2437f8=_0x4a0163==null?void 0x0:_0x4a0163[_0x389228(0x41d)])!=null?_0x2437f8:location[_0x389228(0x4f9)];}[_0x4aaaf0(0x31f)](_0x1a6ffb,_0x5acbd3){const _0x122bbe=_0x4aaaf0;return _0x1a6ffb[_0x122bbe(0x32c)](_0x122bbe(0x349),_0x5acbd3);}[_0x4aaaf0(0x323)](){const _0x4e80a7=_0x4aaaf0;this[_0x4e80a7(0x282)]-=0x1,this['_change$'][_0x4e80a7(0x3b3)](this[_0x4e80a7(0x282)]);}},exports[_0x4aaaf0(0x496)]=vn([He(0x0,a['Inject'](U['HTTPService'])),He(0x1,a[_0x4aaaf0(0x565)]),He(0x2,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x33f)]))],exports[_0x4aaaf0(0x496)]);var En=Object[_0x4aaaf0(0x562)],bn=Object['getOwnPropertyDescriptor'],Tn=(_0x34d887,_0x33cf59,_0x477a54,_0x20c75d)=>{const _0x4d95d5=_0x4aaaf0;for(var _0x2e5a9e=_0x20c75d>0x1?void 0x0:_0x20c75d?bn(_0x33cf59,_0x477a54):_0x33cf59,_0x3bb3a8=_0x34d887[_0x4d95d5(0x31a)]-0x1,_0x481157;_0x3bb3a8>=0x0;_0x3bb3a8--)(_0x481157=_0x34d887[_0x3bb3a8])&&(_0x2e5a9e=(_0x20c75d?_0x481157(_0x33cf59,_0x477a54,_0x2e5a9e):_0x481157(_0x2e5a9e))||_0x2e5a9e);return _0x20c75d&&_0x2e5a9e&&En(_0x33cf59,_0x477a54,_0x2e5a9e),_0x2e5a9e;},_e=(_0x2e6dd8,_0x416221)=>(_0x4d38b7,_0x431a94)=>_0x416221(_0x4d38b7,_0x431a94,_0x2e6dd8);let Te=class extends a[_0x4aaaf0(0x275)]{constructor(_0x46fd46,_0x523f94,_0x4e5c6c,_0xa9e546,_0x29289a){const _0x4e1650=_0x4aaaf0;super(),this[_0x4e1650(0x5aa)]=_0x46fd46,this[_0x4e1650(0x46d)]=_0x523f94,this[_0x4e1650(0x290)]=_0x4e5c6c,this[_0x4e1650(0x23b)]=_0xa9e546,this[_0x4e1650(0x2af)]=_0x29289a,this[_0x4e1650(0x28d)](),this[_0x4e1650(0x459)]();}[_0x4aaaf0(0x459)](){const _0x1a3f2d=_0x4aaaf0,_0x25fc24=async _0x10bbb3=>{const _0x2b5c25=_0x47ba;(await this[_0x2b5c25(0x23b)][_0x2b5c25(0x571)](_0x10bbb3))[_0x2b5c25(0x467)][_0x2b5c25(0x2b0)](E[_0x2b5c25(0x36d)](_0x289c21=>_0x289c21[_0x2b5c25(0x405)]===_[_0x2b5c25(0x2bb)][_0x2b5c25(0x5d2)]),E[_0x2b5c25(0x4b2)](this[_0x2b5c25(0x35d)]))[_0x2b5c25(0x236)](_0x321ca9=>{const _0x5b45df=_0x2b5c25,_0x56c68a=_0x321ca9,{reason:_0x2611b5}=_0x56c68a['data'];this[_0x5b45df(0x5aa)][_0x5b45df(0x439)](A[_0x5b45df(0x31b)])['show']({'type':J[_0x5b45df(0x497)][_0x5b45df(0x413)],'content':this[_0x5b45df(0x2af)]['t'](_0x5b45df(0x4b6))+'('+_0x2611b5+')'}),this[_0x5b45df(0x290)][_0x5b45df(0x585)](new C[(_0x5b45df(0x1e9))](_0x10bbb3)['id'],!0x1),this[_0x5b45df(0x23b)][_0x5b45df(0x52f)](_0x10bbb3);});};v[_0x1a3f2d(0x398)](this['_univerInstanceService'][_0x1a3f2d(0x411)](a[_0x1a3f2d(0x419)]['UNIVER_SHEET']),this[_0x1a3f2d(0x46d)][_0x1a3f2d(0x411)](a['UniverInstanceType'][_0x1a3f2d(0x238)]))[_0x1a3f2d(0x2b0)](E[_0x1a3f2d(0x263)](_0x4b880e=>_0x4b880e[_0x1a3f2d(0x3e2)]()),E['filter'](_0x462244=>!a['isInternalEditorID'](_0x462244)),E['takeUntil'](this['dispose$']))[_0x1a3f2d(0x236)](_0x29e0ab=>{_0x25fc24(_0x29e0ab);});}[_0x4aaaf0(0x28d)](){const _0x3ca538=_0x4aaaf0,_0x18109d=async _0x39470b=>{const _0x19d98d=_0x47ba;(await this[_0x19d98d(0x23b)][_0x19d98d(0x571)](_0x39470b))['event$'][_0x19d98d(0x2b0)](E[_0x19d98d(0x36d)](_0x96f4d=>_0x96f4d[_0x19d98d(0x405)]===_[_0x19d98d(0x2bb)][_0x19d98d(0x3b9)]),E[_0x19d98d(0x4b2)](this[_0x19d98d(0x35d)]))[_0x19d98d(0x236)](_0x5f4bc2=>{const _0x1a0cdd=_0x19d98d,_0x5765eb=_0x5f4bc2,{objectId:_0x3d56fc}=_0x5765eb['data'],_0x25c945=this[_0x1a0cdd(0x5aa)][_0x1a0cdd(0x439)](ie[_0x1a0cdd(0x378)]);_0x3d56fc===_0x39470b?_0x25c945[_0x1a0cdd(0x4e8)](_0x39470b):_0x25c945[_0x1a0cdd(0x4e5)](_0x39470b,_0x3d56fc);});};v[_0x3ca538(0x398)](this['_univerInstanceService'][_0x3ca538(0x411)](a[_0x3ca538(0x419)]['UNIVER_SHEET']),this[_0x3ca538(0x46d)]['getTypeOfUnitAdded$'](a[_0x3ca538(0x419)]['UNIVER_DOC']))[_0x3ca538(0x2b0)](E[_0x3ca538(0x263)](_0x5e0a60=>_0x5e0a60[_0x3ca538(0x3e2)]()),E['filter'](_0x48f145=>!a['isInternalEditorID'](_0x48f145)),E['takeUntil'](this[_0x3ca538(0x35d)]))[_0x3ca538(0x236)](_0x3641b5=>{_0x18109d(_0x3641b5);});}};Te=Tn([_e(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),_e(0x1,a[_0x4aaaf0(0x33f)]),_e(0x2,a[_0x4aaaf0(0x26c)]),_e(0x3,a[_0x4aaaf0(0x1b2)](exports['CollaborationSessionService'])),_e(0x4,a[_0x4aaaf0(0x1b2)](a['LocaleService']))],Te);var Rn=Object[_0x4aaaf0(0x562)],On=Object[_0x4aaaf0(0x28b)],Dn=(_0xad74d4,_0x5d0d02,_0x34ad27,_0x30fcc8)=>{const _0x250bb1=_0x4aaaf0;for(var _0x2e04d8=_0x30fcc8>0x1?void 0x0:_0x30fcc8?On(_0x5d0d02,_0x34ad27):_0x5d0d02,_0x472983=_0xad74d4[_0x250bb1(0x31a)]-0x1,_0x73fce6;_0x472983>=0x0;_0x472983--)(_0x73fce6=_0xad74d4[_0x472983])&&(_0x2e04d8=(_0x30fcc8?_0x73fce6(_0x5d0d02,_0x34ad27,_0x2e04d8):_0x73fce6(_0x2e04d8))||_0x2e04d8);return _0x30fcc8&&_0x2e04d8&&Rn(_0x5d0d02,_0x34ad27,_0x2e04d8),_0x2e04d8;},ut=(_0x464aa6,_0x38a3a0)=>(_0x296c92,_0x28b624)=>_0x38a3a0(_0x296c92,_0x28b624,_0x464aa6);exports[_0x4aaaf0(0x37b)]=class{constructor(_0x4e9e57,_0x48f431){const _0x3536ba=_0x4aaaf0;this['_configService']=_0x4e9e57,this[_0x3536ba(0x30f)]=_0x48f431;}async[_0x4aaaf0(0x2ff)](_0x111e76,_0xdf541c){const _0x3eecca=_0x4aaaf0;var _0x449223;const {unitID:_0x3f622b,type:_0x3b3b08,revision:_0x1ee24f=0x0}=_0xdf541c,_0x4cfaeb=this[_0x3eecca(0x41a)]()+'/'+_0x3b3b08+_0x3eecca(0x406)+_0x3f622b+'/rev/'+_0x1ee24f,_0x24f25c=(await this[_0x3eecca(0x30f)][_0x3eecca(0x439)](_0x4cfaeb))[_0x3eecca(0x3df)],_0x2dab8b=(_0x449223=_0x24f25c['snapshot'])==null?void 0x0:_0x449223['workbook'];if(_0x2dab8b){const _0x89e232=_0x2dab8b==null?void 0x0:_0x2dab8b[_0x3eecca(0x44a)],_0x54eff3=_[_0x3eecca(0x3f8)][_0x3eecca(0x357)](_[_0x3eecca(0x4a6)](_0x89e232));_0x2dab8b[_0x3eecca(0x44a)]=_0x54eff3,Object['entries'](_0x2dab8b['sheets'])[_0x3eecca(0x1d6)](([,_0x9aa831])=>{const _0x24da81=_0x3eecca,_0x36731b=_0x9aa831[_0x24da81(0x44a)],_0x2c67ed=_['textEncoder'][_0x24da81(0x357)](_['b64DecodeUnicode'](_0x36731b));_0x9aa831['originalMeta']=_0x2c67ed;});}return _0x24f25c;}async['getSheetBlock'](_0x3835f2,_0xc80f8b){const _0x168c22=_0x4aaaf0,{unitID:_0x5534f5,type:_0x34d04d,blockID:_0x3d9785}=_0xc80f8b,_0x19fa46=this[_0x168c22(0x3c3)]()+'/'+_0x34d04d+_0x168c22(0x406)+_0x5534f5+_0x168c22(0x547)+_0x3d9785;return(await this[_0x168c22(0x30f)][_0x168c22(0x439)](_0x19fa46))[_0x168c22(0x3df)];}async['getDeserializedSheetBlock'](_0x1b915a,_0x56e90e){const _0x26a1f9=_0x4aaaf0,{unitID:_0x4fbd02,type:_0x194137,blockID:_0x503d55}=_0x56e90e,_0x193eb6=this['_getAPIPrefix']()+'/block/'+_0x194137+'/unit/'+_0x4fbd02+_0x26a1f9(0x547)+_0x503d55;return(await this[_0x26a1f9(0x30f)][_0x26a1f9(0x439)](_0x193eb6))[_0x26a1f9(0x3df)];}async[_0x4aaaf0(0x3aa)](_0x4ba812,_0x4ce4de){const _0x5411fb=_0x4aaaf0,{unitID:_0x265cd,type:_0x5778e8,from:_0x10469f,to:_0x529b7a}=_0x4ce4de,_0x1a2703=this[_0x5411fb(0x3c3)]()+'/'+_0x5778e8+_0x5411fb(0x406)+_0x265cd+_0x5411fb(0x538)+_0x10469f+'&to='+_0x529b7a;return(await this[_0x5411fb(0x30f)]['get'](_0x1a2703))[_0x5411fb(0x3df)];}[_0x4aaaf0(0x41a)](){const _0x2568fc=_0x4aaaf0;var _0x82f32c;return(_0x82f32c=this[_0x2568fc(0x428)][_0x2568fc(0x50b)](St))!=null?_0x82f32c:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x3ab5a6=_0x4aaaf0;var _0x52e879,_0x1d88a6;const _0x601079=this['_configService'][_0x3ab5a6(0x50b)](dt),_0x20d3e8=this['_configService'][_0x3ab5a6(0x50b)]($);return(_0x1d88a6=(_0x52e879=_0x20d3e8==null?void 0x0:_0x20d3e8[_0x3ab5a6(0x380)])!=null?_0x52e879:_0x601079)!=null?_0x1d88a6:zt;}async[_0x4aaaf0(0x586)](_0x7adc5b,_0x2b7197){const _0x3e75e1=_0x4aaaf0,_0xdc34e0=_0x3e75e1(0x479)+_0x2b7197[_0x3e75e1(0x4aa)]+_0x3e75e1(0x406)+_0x2b7197[_0x3e75e1(0x41c)]+'/resources';return(await this[_0x3e75e1(0x30f)][_0x3e75e1(0x439)](_0xdc34e0,{'params':{'resourceId':JSON[_0x3e75e1(0x24c)](_0x2b7197[_0x3e75e1(0x21b)])}}))[_0x3e75e1(0x3df)];}['saveSnapshot'](){const _0x2f9188=_0x4aaaf0;throw new Error(_0x2f9188(0x217));}[_0x4aaaf0(0x4b3)](){const _0x3f0b2b=_0x4aaaf0;throw new Error(_0x3f0b2b(0x217));}[_0x4aaaf0(0x588)](){const _0x53de03=_0x4aaaf0;throw new Error(_0x53de03(0x217));}[_0x4aaaf0(0x34f)](){const _0x34e3e7=_0x4aaaf0;throw new Error(_0x34e3e7(0x217));}[_0x4aaaf0(0x5d1)](){const _0x4134c2=_0x4aaaf0;throw new Error(_0x4134c2(0x217));}},exports[_0x4aaaf0(0x37b)]=Dn([ut(0x0,a[_0x4aaaf0(0x565)]),ut(0x1,a['Inject'](U[_0x4aaaf0(0x1e4)]))],exports[_0x4aaaf0(0x37b)]);var yn=Object['defineProperty'],Un=Object[_0x4aaaf0(0x28b)],Pn=(_0x14eb9f,_0x40993e,_0x321949,_0x471b7a)=>{const _0x4e17f9=_0x4aaaf0;for(var _0xfaa375=_0x471b7a>0x1?void 0x0:_0x471b7a?Un(_0x40993e,_0x321949):_0x40993e,_0x2085fb=_0x14eb9f[_0x4e17f9(0x31a)]-0x1,_0x33fdad;_0x2085fb>=0x0;_0x2085fb--)(_0x33fdad=_0x14eb9f[_0x2085fb])&&(_0xfaa375=(_0x471b7a?_0x33fdad(_0x40993e,_0x321949,_0xfaa375):_0x33fdad(_0xfaa375))||_0xfaa375);return _0x471b7a&&_0xfaa375&&yn(_0x40993e,_0x321949,_0xfaa375),_0xfaa375;},ue=(_0x1ef500,_0x2dc71a)=>(_0x32d001,_0x2a86d4)=>_0x2dc71a(_0x32d001,_0x2a86d4,_0x1ef500);let We=class extends a['LocalUndoRedoService']{constructor(_0x6dd072,_0x48bbb6,_0x5b3272,_0x1fdb3a,_0x5ae958){const _0x43454c=_0x4aaaf0;super(_0x6dd072,_0x48bbb6,_0x5b3272),this[_0x43454c(0x37f)]=_0x1fdb3a,this[_0x43454c(0x360)]=_0x5ae958;}[_0x4aaaf0(0x2a6)](_0x57c8d0,_0x4635f2){const _0x58325b=_0x4aaaf0,_0x4dbd83=this['_getUndoStack'](_0x57c8d0);if(_0x4dbd83)try{const _0x40eeda=this[_0x58325b(0x542)](_0x4dbd83,_0x4635f2);this[_0x58325b(0x1f8)](_0x57c8d0,_0x40eeda);}catch(_0x370c3f){this[_0x58325b(0x360)][_0x58325b(0x574)]('[CollaborationUndoRedoService]',_0x370c3f),this[_0x58325b(0x1be)](_0x57c8d0);}const _0x544191=this[_0x58325b(0x363)](_0x57c8d0);if(_0x544191)try{const _0x2f20a6=this[_0x58325b(0x542)](_0x544191,_0x4635f2);this[_0x58325b(0x474)](_0x57c8d0,_0x2f20a6);}catch(_0x139cd5){this['_logService'][_0x58325b(0x574)](_0x139cd5),this[_0x58325b(0x52e)](_0x57c8d0);}}[_0x4aaaf0(0x1be)](_0x1bdb92){const _0x5a0226=_0x4aaaf0,_0x4b32fc=this[_0x5a0226(0x58f)](_0x1bdb92);_0x4b32fc&&(_0x4b32fc[_0x5a0226(0x31a)]=0x0,this[_0x5a0226(0x4a8)]());}[_0x4aaaf0(0x52e)](_0x254b41){const _0x10e5ee=_0x4aaaf0,_0x495dda=this[_0x10e5ee(0x363)](_0x254b41);_0x495dda&&(_0x495dda[_0x10e5ee(0x31a)]=0x0,this[_0x10e5ee(0x4a8)]());}[_0x4aaaf0(0x1f8)](_0xd28568,_0x8bae81){const _0x3457cc=_0x4aaaf0;this['_undoStacks']['set'](_0xd28568,_0x8bae81),this[_0x3457cc(0x4a8)]();}[_0x4aaaf0(0x474)](_0x4673b2,_0x33937f){const _0x2c13d8=_0x4aaaf0;this[_0x2c13d8(0x243)][_0x2c13d8(0x4af)](_0x4673b2,_0x33937f),this[_0x2c13d8(0x4a8)]();}[_0x4aaaf0(0x542)](_0x143cff,_0xc60324){const _0x1f74e7=_0x4aaaf0,_0x10f6e8=[];let _0x1e8da1=_0xc60324,_0x57c5be=_0xc60324;for(let _0x135939=_0x143cff[_0x1f74e7(0x31a)]-0x1;_0x135939>=0x0;_0x135939--){const {unitID:_0x39edbf,undoMutations:_0x18a4a2,redoMutations:_0x17b42b}=_0x143cff[_0x135939],_0x4221ce=this[_0x1f74e7(0x37f)][_0x1f74e7(0x34d)](_0x1e8da1,_0x18a4a2),_0x2388b2=this[_0x1f74e7(0x37f)][_0x1f74e7(0x34d)](_0x57c5be,_0x17b42b);if(_[_0x1f74e7(0x264)](_0x4221ce)||_['isTransformMutationsWithChangesetFailure'](_0x2388b2)){this[_0x1f74e7(0x360)][_0x1f74e7(0x574)](_0x1f74e7(0x2fb),'transformStack\x20failed!',_0x4221ce,_0x2388b2);break;}_0x1e8da1=_0x4221ce[_0x1f74e7(0x3f1)],_0x57c5be=_0x2388b2[_0x1f74e7(0x3f1)],_0x10f6e8[_0x1f74e7(0x4ce)]({'unitID':_0x39edbf,'undoMutations':_0x4221ce['m2Prime'],'redoMutations':_0x2388b2[_0x1f74e7(0x3a9)]});}return _0x10f6e8[_0x1f74e7(0x3b2)]();}};We=Pn([ue(0x0,a[_0x4aaaf0(0x33f)]),ue(0x1,a[_0x4aaaf0(0x5df)]),ue(0x2,a[_0x4aaaf0(0x2e0)]),ue(0x3,_['ITransformService']),ue(0x4,a['ILogService'])],We);class Ht extends a['RxDisposable']{constructor(){const _0x1aab55=_0x4aaaf0;super(),u(this,'urlChange$'),this[_0x1aab55(0x3ab)]=v[_0x1aab55(0x401)](window,'popstate')['pipe'](v[_0x1aab55(0x4b2)](this[_0x1aab55(0x35d)]),v[_0x1aab55(0x566)](0x1),v[_0x1aab55(0x578)](void 0x0));}[_0x4aaaf0(0x359)](_0x3ca1a9,_0x29206f,_0x31a315=!0x1){const _0x8fb2df=_0x4aaaf0,_0x157d47=new URL(window[_0x8fb2df(0x554)][_0x8fb2df(0x53d)]);_0x157d47[_0x8fb2df(0x2e6)][_0x8fb2df(0x4af)](_0x3ca1a9,_0x29206f),_0x31a315?window[_0x8fb2df(0x331)][_0x8fb2df(0x42c)]('','',_0x157d47[_0x8fb2df(0x222)]()):window[_0x8fb2df(0x331)]['pushState']('','',_0x157d47[_0x8fb2df(0x222)]());}[_0x4aaaf0(0x300)](_0x60dd0f,_0x5d9652=!0x1){const _0x732a61=_0x4aaaf0,_0x4b3b6d=new URL(window[_0x732a61(0x554)][_0x732a61(0x53d)]);_0x4b3b6d['searchParams'][_0x732a61(0x276)](_0x60dd0f),_0x5d9652?window[_0x732a61(0x331)][_0x732a61(0x42c)]('','',_0x4b3b6d[_0x732a61(0x222)]()):window[_0x732a61(0x331)][_0x732a61(0x432)]('','',_0x4b3b6d['toString']());}['getParam'](_0x53fa4e){const _0x5b8de5=_0x4aaaf0;var _0x56230d;return(_0x56230d=new URL(window['location'][_0x5b8de5(0x53d)])[_0x5b8de5(0x2e6)][_0x5b8de5(0x439)](_0x53fa4e))!=null?_0x56230d:void 0x0;}}var xt=Object[_0x4aaaf0(0x562)],wn=Object[_0x4aaaf0(0x28b)],Nn=(_0x692535,_0x747abd,_0x3dbf48)=>_0x747abd in _0x692535?xt(_0x692535,_0x747abd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dbf48}):_0x692535[_0x747abd]=_0x3dbf48,Mn=(_0x392a48,_0x471e42,_0x2aafc1,_0x1ef3f6)=>{const _0x5eb4b0=_0x4aaaf0;for(var _0xe8cc74=_0x1ef3f6>0x1?void 0x0:_0x1ef3f6?wn(_0x471e42,_0x2aafc1):_0x471e42,_0x153db2=_0x392a48[_0x5eb4b0(0x31a)]-0x1,_0xf0a9bb;_0x153db2>=0x0;_0x153db2--)(_0xf0a9bb=_0x392a48[_0x153db2])&&(_0xe8cc74=(_0x1ef3f6?_0xf0a9bb(_0x471e42,_0x2aafc1,_0xe8cc74):_0xf0a9bb(_0xe8cc74))||_0xe8cc74);return _0x1ef3f6&&_0xe8cc74&&xt(_0x471e42,_0x2aafc1,_0xe8cc74),_0xe8cc74;},ge=(_0x4b2d56,_0x1b8fd3)=>(_0x1982cf,_0x1ab5f7)=>_0x1b8fd3(_0x1982cf,_0x1ab5f7,_0x4b2d56),An=(_0x5eccbd,_0x1a7523,_0x1677ae)=>Nn(_0x5eccbd,_0x1a7523+'',_0x1677ae);const Ln='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x4aaaf0(0x4d1)]=class extends a['Plugin']{constructor(_0x4779ad=os,_0x1f06dd,_0x145f59,_0x144db1,_0x3b5952){const _0x5ecb4a=_0x4aaaf0;super(),this[_0x5ecb4a(0x41b)]=_0x4779ad,this['_logService']=_0x1f06dd,this['_renderManagerService']=_0x145f59,this['_injector']=_0x144db1,this[_0x5ecb4a(0x428)]=_0x3b5952;const {..._0x1c56a5}=this[_0x5ecb4a(0x41b)];this[_0x5ecb4a(0x428)][_0x5ecb4a(0x3af)]($,_0x1c56a5);}['onStarting'](){const _0x2e82b2=_0x4aaaf0;this['_registerDependencies'](),a['touchDependencies'](this['_injector'],[[oe],[exports[_0x2e82b2(0x295)]],[Te]]);}[_0x4aaaf0(0x5cb)](){a['touchDependencies'](this['_injector'],[[Ce]]);}[_0x4aaaf0(0x2ac)](){const _0x248d3c=_0x4aaaf0;this[_0x248d3c(0x480)]();}[_0x4aaaf0(0x36a)](){const _0x58220b=_0x4aaaf0;var _0x4a6545,_0x15df86,_0x40f7e8,_0x3789b8;this[_0x58220b(0x5aa)]['has'](a['IUndoRedoService'])&&this[_0x58220b(0x360)][_0x58220b(0x574)](_0x58220b(0x215),_0x58220b(0x445));let _0x5ec4cb=[[a[_0x58220b(0x490)],{'useClass':We}],[exports['CollaborationSessionService']],[ze],[U['HTTPService']],[Ze,{'useClass':Ht}],[exports['MemberService']],[exports[_0x58220b(0x49c)]],[U['WebSocketService']],[Ie],[pe],[fe],[Xe],[Ee],[be],[Ke],[Te],[Ye,{'useClass':(_0x15df86=(_0x4a6545=this['_config'])==null?void 0x0:_0x4a6545[_0x58220b(0x49b)])!=null?_0x15df86:exports[_0x58220b(0x4b4)]}],[U[_0x58220b(0x239)],{'useClass':U[_0x58220b(0x375)]}],[_[_0x58220b(0x47d)],{'useClass':exports[_0x58220b(0x37b)]}],[a[_0x58220b(0x457)],{'useClass':exports[_0x58220b(0x5dd)]}],[j[_0x58220b(0x2e2)],{'useClass':exports['ImageIoService']}],[exports[_0x58220b(0x265)]],[exports['DataLoaderController']],[exports[_0x58220b(0x1e2)]],[Ce],[oe]];(_0x40f7e8=this[_0x58220b(0x41b)])!=null&&_0x40f7e8[_0x58220b(0x1f0)]&&_0x5ec4cb[_0x58220b(0x4ce)]([Re,{'useClass':Hs}]),_0x5ec4cb=a[_0x58220b(0x5cc)](_0x5ec4cb,(_0x3789b8=this[_0x58220b(0x41b)])==null?void 0x0:_0x3789b8[_0x58220b(0x4ab)]),_0x5ec4cb[_0x58220b(0x1d6)](_0x3eceb4=>this[_0x58220b(0x5aa)][_0x58220b(0x24d)](_0x3eceb4)),this[_0x58220b(0x579)]();}['_registerRenderDependencies'](){const _0x93a9b6=_0x4aaaf0;this[_0x93a9b6(0x367)](this[_0x93a9b6(0x2e3)][_0x93a9b6(0x32f)](a[_0x93a9b6(0x419)][_0x93a9b6(0x238)],[Be])),this[_0x93a9b6(0x367)](this[_0x93a9b6(0x2e3)][_0x93a9b6(0x32f)](a[_0x93a9b6(0x419)][_0x93a9b6(0x4d0)],[Ve]));}[_0x4aaaf0(0x579)](){const _0xe8ed6=_0x4aaaf0;var _0x104575,_0x49c607;this[_0xe8ed6(0x5aa)][_0xe8ed6(0x439)](U[_0xe8ed6(0x1e4)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0xe8ed6(0x5aa)][_0xe8ed6(0x439)](be),(_0x104575=this[_0xe8ed6(0x41b)])!=null&&_0x104575[_0xe8ed6(0x4b9)]||this[_0xe8ed6(0x5aa)]['get'](exports['LocalCacheService'])[_0xe8ed6(0x20d)](),(_0x49c607=this[_0xe8ed6(0x41b)])!=null&&_0x49c607[_0xe8ed6(0x298)]&&this[_0xe8ed6(0x5aa)][_0xe8ed6(0x439)](Ee),this[_0xe8ed6(0x5aa)]['get'](exports[_0xe8ed6(0x265)]),this[_0xe8ed6(0x5aa)][_0xe8ed6(0x2cc)](exports['DesktopCollaborationStatusDisplayController'])&&this['_injector']['get'](exports[_0xe8ed6(0x1e2)]);}},An(exports['UniverCollaborationClientPlugin'],'pluginName',Ln),exports['UniverCollaborationClientPlugin']=Mn([a['DependentOn'](_[_0x4aaaf0(0x272)]),ge(0x1,a[_0x4aaaf0(0x1d1)]),ge(0x2,O[_0x4aaaf0(0x546)]),ge(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),ge(0x4,a[_0x4aaaf0(0x565)])],exports[_0x4aaaf0(0x4d1)]),exports[_0x4aaaf0(0x4f6)]=jt,exports[_0x4aaaf0(0x3e1)]=pt,exports[_0x4aaaf0(0x252)]=vt,exports[_0x4aaaf0(0x304)]=D,exports[_0x4aaaf0(0x312)]=$t,exports[_0x4aaaf0(0x334)]=Ke,exports[_0x4aaaf0(0x269)]=mt,exports[_0x4aaaf0(0x2c0)]=Fe,exports[_0x4aaaf0(0x2fc)]=Ye,exports[_0x4aaaf0(0x569)]=Ze,exports[_0x4aaaf0(0x3ff)]=It,exports[_0x4aaaf0(0x594)]=Ct,exports[_0x4aaaf0(0x289)]=ft,exports[_0x4aaaf0(0x431)]=Jt,exports[_0x4aaaf0(0x2bf)]=dt,exports[_0x4aaaf0(0x30c)]=St,exports[_0x4aaaf0(0x54c)]=x,exports[_0x4aaaf0(0x43c)]=wt,exports['WebURLService']=Ht,exports['deserializeToCombResponse']=Tt,exports['serializeCombRequest']=Rt;