@univerjs-pro/collaboration-client 0.4.0-nightly.202410161605 → 0.4.0-nightly.202410290723

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 _0x57f41f=_0x1fa7;(function(_0x458ed1,_0x31cdd1){const _0x40ec3f=_0x1fa7,_0x4e4c97=_0x458ed1();while(!![]){try{const _0x3d5cb5=-parseInt(_0x40ec3f(0x4bc))/0x1*(-parseInt(_0x40ec3f(0x544))/0x2)+-parseInt(_0x40ec3f(0x26f))/0x3+parseInt(_0x40ec3f(0x464))/0x4*(parseInt(_0x40ec3f(0x3f0))/0x5)+-parseInt(_0x40ec3f(0x2ca))/0x6*(parseInt(_0x40ec3f(0x368))/0x7)+-parseInt(_0x40ec3f(0x156))/0x8+-parseInt(_0x40ec3f(0x278))/0x9+parseInt(_0x40ec3f(0x1c7))/0xa;if(_0x3d5cb5===_0x31cdd1)break;else _0x4e4c97['push'](_0x4e4c97['shift']());}catch(_0x3b5f81){_0x4e4c97['push'](_0x4e4c97['shift']());}}}(_0xf60c,0x418de));var Ft=Object[_0x57f41f(0x522)],Gt=(_0x5839d3,_0x1d5f5a,_0x5a81fd)=>_0x1d5f5a in _0x5839d3?Ft(_0x5839d3,_0x1d5f5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a81fd}):_0x5839d3[_0x1d5f5a]=_0x5a81fd,u=(_0x5d7167,_0x4c5a3f,_0x473b3b)=>Gt(_0x5d7167,typeof _0x4c5a3f!='symbol'?_0x4c5a3f+'':_0x4c5a3f,_0x473b3b);Object[_0x57f41f(0x522)](exports,Symbol['toStringTag'],{'value':_0x57f41f(0x359)});const a=require('@univerjs/core'),v=require(_0x57f41f(0x1f0)),E=require('rxjs/operators'),X=require('@univerjs/design'),A=require(_0x57f41f(0x363)),w=require(_0x57f41f(0x3dc)),_=require(_0x57f41f(0x301)),Yt=require(_0x57f41f(0x16e)),N=require(_0x57f41f(0x2ae)),C=require('@univerjs/sheets'),O=require('@univerjs/engine-render'),se=require(_0x57f41f(0x26d)),j=require('@univerjs/drawing'),et=require(_0x57f41f(0x514)),te=require(_0x57f41f(0x32b)),P=require(_0x57f41f(0x4ba)),Kt=require(_0x57f41f(0x1c1)),Xt=require(_0x57f41f(0x1ef)),St='SNAPSHOT_SERVER_URL_KEY',qt=_0x57f41f(0x390),vt=_0x57f41f(0x54a),zt=_0x57f41f(0x46b),Jt=0x7d0,gt=_0x57f41f(0x406),Zt=_0x57f41f(0x1f6),mt='HEARTBEAT_INTERVAL',Qt=0x7530,Ge=_0x57f41f(0x51c),ft=0x4e20,es=0x4e20,It=_0x57f41f(0x149),ts=0x3,pt=_0x57f41f(0x2b7),ss=0x3e8,Ct=_0x57f41f(0x143),is=_0x57f41f(0x415),Et=_0x57f41f(0x511),ns='/universer-api/oidc/authpage';var bt=(_0x717648=>(_0x717648[_0x717648['UNDEFINED']=0x0]=_0x57f41f(0x4d5),_0x717648[_0x717648['OK']=0x1]='OK',_0x717648[_0x717648[_0x57f41f(0x1a9)]=0x2]=_0x57f41f(0x1a9),_0x717648[_0x717648[_0x57f41f(0x48a)]=0x3]=_0x57f41f(0x48a),_0x717648[_0x717648[_0x57f41f(0x367)]=0x4]=_0x57f41f(0x367),_0x717648[_0x717648[_0x57f41f(0x2a7)]=0x5]=_0x57f41f(0x2a7),_0x717648[_0x717648[_0x57f41f(0x2d3)]=0x6]='ALREADY_EXISTS',_0x717648[_0x717648['INVALID_ARGUMENT']=0x7]=_0x57f41f(0x463),_0x717648[_0x717648[_0x57f41f(0x213)]=0x8]=_0x57f41f(0x213),_0x717648[_0x717648['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x717648[_0x717648[_0x57f41f(0x378)]=0x1389]=_0x57f41f(0x378),_0x717648[_0x717648[_0x57f41f(0x3a5)]=0x1771]=_0x57f41f(0x3a5),_0x717648[_0x717648[_0x57f41f(0x290)]=0x1772]=_0x57f41f(0x290),_0x717648[_0x717648[_0x57f41f(0x291)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x717648[_0x717648['APPLY_REJECT']=0x1b59]=_0x57f41f(0x419),_0x717648[_0x717648['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x57f41f(0x39a),_0x717648[_0x717648[_0x57f41f(0x23d)]=0x1b5b]=_0x57f41f(0x23d),_0x717648[_0x717648[_0x57f41f(0x2c3)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x717648[_0x717648['APPLY_DUPLICATED']=0x1b5d]=_0x57f41f(0x19e),_0x717648[_0x717648['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x717648[_0x717648[_0x57f41f(0x404)]=0x2329]=_0x57f41f(0x404),_0x717648[_0x717648[_0x57f41f(0x50f)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x717648[_0x717648[_0x57f41f(0x4c4)]=0x232b]=_0x57f41f(0x4c4),_0x717648[_0x717648[_0x57f41f(0x3bf)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x717648[_0x717648['LICENSE_DISTRO_REJECTED']=0x232d]=_0x57f41f(0x14e),_0x717648[_0x717648['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x57f41f(0x1b6),_0x717648[_0x717648[_0x57f41f(0x484)]=0x2712]=_0x57f41f(0x484),_0x717648[_0x717648['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x57f41f(0x1ee),_0x717648[_0x717648[_0x57f41f(0x49f)]=0x2714]=_0x57f41f(0x49f),_0x717648[_0x717648[_0x57f41f(0x35a)]=-0x1]=_0x57f41f(0x35a),_0x717648))(bt||{}),$=(_0x3b5308=>(_0x3b5308[_0x3b5308[_0x57f41f(0x229)]=0x0]=_0x57f41f(0x229),_0x3b5308[_0x3b5308[_0x57f41f(0x1a7)]=0x1]='UNIVER_DOC',_0x3b5308[_0x3b5308[_0x57f41f(0x197)]=0x2]=_0x57f41f(0x197),_0x3b5308[_0x3b5308['UNIVER_SLIDE']=0x3]=_0x57f41f(0x439),_0x3b5308[_0x3b5308[_0x57f41f(0x501)]=0x4]=_0x57f41f(0x501),_0x3b5308[_0x3b5308[_0x57f41f(0x35a)]=-0x1]='UNRECOGNIZED',_0x3b5308))($||{}),b=(_0x502554=>(_0x502554[_0x502554[_0x57f41f(0x400)]=0x0]='UNKNOWN_CMD',_0x502554[_0x502554['HELLO']=0x1]=_0x57f41f(0x528),_0x502554[_0x502554[_0x57f41f(0x54d)]=0x2]=_0x57f41f(0x54d),_0x502554[_0x502554[_0x57f41f(0x358)]=0x3]=_0x57f41f(0x358),_0x502554[_0x502554[_0x57f41f(0x349)]=0x4]=_0x57f41f(0x349),_0x502554[_0x502554[_0x57f41f(0x2fd)]=0x5]=_0x57f41f(0x2fd),_0x502554[_0x502554[_0x57f41f(0x2db)]=0x6]=_0x57f41f(0x2db),_0x502554[_0x502554[_0x57f41f(0x35a)]=-0x1]=_0x57f41f(0x35a),_0x502554))(b||{}),Ye=(_0x3a6cd4=>(_0x3a6cd4[_0x3a6cd4[_0x57f41f(0x22b)]=0x0]=_0x57f41f(0x22b),_0x3a6cd4[_0x3a6cd4['OK']=0x1]='OK',_0x3a6cd4[_0x3a6cd4[_0x57f41f(0x46d)]=0x2]=_0x57f41f(0x46d),_0x3a6cd4[_0x3a6cd4[_0x57f41f(0x35a)]=-0x1]=_0x57f41f(0x35a),_0x3a6cd4))(Ye||{}),Tt=(_0x4ac63f=>(_0x4ac63f[_0x4ac63f[_0x57f41f(0x4e9)]=0x0]=_0x57f41f(0x4e9),_0x4ac63f[_0x4ac63f['HttpImport']=0x1]=_0x57f41f(0x1eb),_0x4ac63f[_0x4ac63f[_0x57f41f(0x220)]=0x2]=_0x57f41f(0x220),_0x4ac63f[_0x4ac63f['UnitEmbedded']=0x3]=_0x57f41f(0x312),_0x4ac63f[_0x4ac63f[_0x57f41f(0x36b)]=0x4]=_0x57f41f(0x36b),_0x4ac63f[_0x4ac63f['UNRECOGNIZED']=-0x1]=_0x57f41f(0x35a),_0x4ac63f))(Tt||{});const L=_0x57f41f(0x216),rs={};function Rt(_0x3f9a31){const _0x557d0d=_0x57f41f;var _0x51dd35,_0x16d844,_0x3b6b65,_0x390da5;const _0x3405a5=_0x3f9a31[_0x557d0d(0x198)],_0x1359e1=JSON[_0x557d0d(0x1a1)](_0x3405a5);switch(_0x1359e1[_0x557d0d(0x466)]){case b[_0x557d0d(0x2fd)]:case b[_0x557d0d(0x528)]:{const _0x2c473e=_0x1359e1['infoRsp'];return{..._0x1359e1,'data':_0x2c473e,'cmd':_0x1359e1[_0x557d0d(0x466)]};}case b[_0x557d0d(0x54d)]:{const _0x26ea62=_0x1359e1[_0x557d0d(0x3a0)];return{..._0x1359e1,'data':_0x26ea62,'cmd':_0x1359e1['cmd']};}case b[_0x557d0d(0x2db)]:{const _0x37f251=_0x1359e1[_0x557d0d(0x1cb)];switch(_0x37f251[_0x557d0d(0x538)]){case _[_0x557d0d(0x48e)][_0x557d0d(0x4d2)]:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x51dd35=_0x37f251[_0x557d0d(0x391)])==null?void 0x0:_0x51dd35['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _['CollaborationEvent'][_0x557d0d(0x269)]:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x16d844=_0x37f251['csAckEvent'])==null?void 0x0:_0x16d844['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _['CollaborationEvent'][_0x557d0d(0x3af)]:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x3b6b65=_0x37f251[_0x557d0d(0x152)])==null?void 0x0:_0x3b6b65['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['CHANGESET_REJ']:return{..._0x1359e1,'data':{..._0x37f251,'data':(_0x390da5=_0x37f251[_0x557d0d(0x36d)])==null?void 0x0:_0x390da5['cs']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x153)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x24a)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['USERS_ENTER']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x2aa)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['USERS_LEAVE']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251['leaveEvent']},'cmd':_0x1359e1['cmd']};case _[_0x557d0d(0x48e)]['LIVESHARE_NEW_HOST']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x339)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['LIVESHARE_FETCH_OPERATIONS']:case _['CollaborationEvent'][_0x557d0d(0x28c)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251['liveShareOperation']},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)]['LIVESHARE_TERMINATE']:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x339)]},'cmd':_0x1359e1['cmd']};case _[_0x557d0d(0x48e)][_0x557d0d(0x4a6)]:return{..._0x1359e1,'data':_0x37f251,'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x3db)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x343)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x3d3)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251[_0x557d0d(0x38e)]},'cmd':_0x1359e1[_0x557d0d(0x466)]};case _[_0x557d0d(0x48e)][_0x557d0d(0x283)]:return{..._0x1359e1,'data':{..._0x37f251,'data':_0x37f251['shouldCloseConn']},'cmd':_0x1359e1[_0x557d0d(0x466)]};default:return _0x1359e1;}}default:return _0x1359e1;}}function Ot(_0x1f50a9){const _0x4690c3=_0x57f41f;switch(_0x1f50a9[_0x4690c3(0x466)]){case b['HEARTBEAT']:case b[_0x4690c3(0x528)]:return JSON[_0x4690c3(0x3bc)]({'cmd':_0x1f50a9[_0x4690c3(0x466)],'routeKey':_0x1f50a9[_0x4690c3(0x1ff)]});case b[_0x4690c3(0x349)]:{let _0x480aee;switch(_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x538)]){case _['CollaborationEvent'][_0x4690c3(0x153)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)][_0x4690c3(0x153)],'updateCursorEvent':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _['CollaborationEvent'][_0x4690c3(0x4af)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['USERS_LEAVE'],'leaveEvent':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _[_0x4690c3(0x48e)]['USERS_ENTER']:{_0x480aee={'eventID':_['CollaborationEvent'][_0x4690c3(0x226)],'joinEvent':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _[_0x4690c3(0x48e)]['LIVESHARE_NEW_HOST']:{_0x480aee={'eventID':_[_0x4690c3(0x48e)][_0x4690c3(0x2fa)],'liveShareNewHost':_0x1f50a9['data']['data']};break;}case _[_0x4690c3(0x48e)][_0x4690c3(0x28c)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _['CollaborationEvent'][_0x4690c3(0x475)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x198)]};break;}case _[_0x4690c3(0x48e)]['LIVESHARE_REQUEST_HOST']:{_0x480aee={'eventID':_[_0x4690c3(0x48e)][_0x4690c3(0x3fe)],'liveShareRequestHost':_0x1f50a9[_0x4690c3(0x198)]['data']};break;}case _[_0x4690c3(0x48e)][_0x4690c3(0x496)]:{_0x480aee={'eventID':_[_0x4690c3(0x48e)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x480aee={'eventID':_0x1f50a9[_0x4690c3(0x198)][_0x4690c3(0x538)]};}return JSON['stringify']({'cmd':_0x1f50a9[_0x4690c3(0x466)],'routeKey':_0x1f50a9['routeKey'],'collaMsg':_0x480aee});}case b[_0x4690c3(0x54d)]:return JSON[_0x4690c3(0x3bc)]({'cmd':_0x1f50a9['cmd'],'routeKey':_0x1f50a9[_0x4690c3(0x1ff)],'joinReq':_0x1f50a9[_0x4690c3(0x198)]});case b[_0x4690c3(0x358)]:return JSON['stringify']({'cmd':_0x1f50a9[_0x4690c3(0x466)],'routeKey':_0x1f50a9['routeKey'],'leaveReq':_0x1f50a9['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var os=Object[_0x57f41f(0x522)],as=Object[_0x57f41f(0x191)],cs=(_0x209804,_0x2970ad,_0x4fc539,_0x3cac35)=>{const _0xd56578=_0x57f41f;for(var _0x14a213=_0x3cac35>0x1?void 0x0:_0x3cac35?as(_0x2970ad,_0x4fc539):_0x2970ad,_0x154e89=_0x209804[_0xd56578(0x460)]-0x1,_0x443938;_0x154e89>=0x0;_0x154e89--)(_0x443938=_0x209804[_0x154e89])&&(_0x14a213=(_0x3cac35?_0x443938(_0x2970ad,_0x4fc539,_0x14a213):_0x443938(_0x14a213))||_0x14a213);return _0x3cac35&&_0x14a213&&os(_0x2970ad,_0x4fc539,_0x14a213),_0x14a213;},ae=(_0x3471da,_0x5253f9)=>(_0x3f5f34,_0x32dc41)=>_0x5253f9(_0x3f5f34,_0x32dc41,_0x3471da);const Ke=a[_0x57f41f(0x193)](_0x57f41f(0x342));function ls(_0xe5faf5,_0x1db33e,_0x3caf10){const _0x441a27=_0x57f41f;return _0xe5faf5+'/'+_0x1db33e+_0x441a27(0x170)+_0x3caf10+_0x441a27(0x1ce);}exports[_0x57f41f(0x253)]=class extends a['Disposable']{constructor(_0x1a1973,_0x5b41b4,_0x1bde50,_0x1ebdc8,_0x34ca73){const _0x189b3c=_0x57f41f;super(),this[_0x189b3c(0x182)]=_0x1a1973,this[_0x189b3c(0x279)]=_0x5b41b4,this[_0x189b3c(0x172)]=_0x1bde50,this[_0x189b3c(0x181)]=_0x1ebdc8,this[_0x189b3c(0x154)]=_0x34ca73;}[_0x57f41f(0x4b5)](_0x42a1e5){const _0x225451=_0x57f41f,_0x29be4a=this['_ws'][_0x225451(0x4b5)](_0x42a1e5);if(!_0x29be4a)throw new Error(_0x225451(0x25e));const _0x3a819d=new a['DisposableCollection'](),_0x4b3baa=new v[(_0x225451(0x54c))]();_0x3a819d[_0x225451(0x150)](_0x29be4a['close$'][_0x225451(0x3ee)](_0x5db5a3=>_0x4b3baa[_0x225451(0x49c)](_0x5db5a3))),_0x3a819d[_0x225451(0x150)](a[_0x225451(0x1f9)](()=>_0x4b3baa[_0x225451(0x4a4)]()));const _0x57ee81=new v['Subject']();_0x3a819d[_0x225451(0x150)](_0x29be4a[_0x225451(0x1ae)]['subscribe'](_0x24846b=>_0x57ee81[_0x225451(0x49c)](_0x24846b))),_0x3a819d['add'](a[_0x225451(0x1f9)](()=>_0x57ee81[_0x225451(0x4a4)]()));const _0x53d073=new v['Subject']();_0x3a819d['add'](_0x29be4a[_0x225451(0x41c)][_0x225451(0x3ee)](_0x46862a=>{const _0x3052a8=_0x225451,_0x28ee1b=Rt(_0x46862a);_0x53d073[_0x3052a8(0x49c)](_0x28ee1b);})),_0x3a819d['add'](a[_0x225451(0x1f9)](()=>_0x53d073['complete']()));let _0x38c277;const _0x52bdf9=()=>{const _0x12654a=_0x225451;_0x57ee81['next'](new Event('connection\x20error')),_0x4b3baa['next'](new CloseEvent(_0x12654a(0x315))),_0x38c277[_0x12654a(0x316)]();};return _0x38c277={'memberID':'','close$':_0x4b3baa['asObservable'](),'error$':_0x57ee81[_0x225451(0x41e)](),'open$':_0x29be4a['open$'],'message$':_0x53d073[_0x225451(0x41e)](),'send':_0x45f8ba=>{const _0x1ac876=_0x225451;if(_0x45f8ba[_0x1ac876(0x466)]===b['INGEST']){if(_0x45f8ba['data'][_0x1ac876(0x538)]===_[_0x1ac876(0x48e)][_0x1ac876(0x389)]){this[_0x1ac876(0x4d6)](_0x38c277,_0x45f8ba[_0x1ac876(0x198)])[_0x1ac876(0x3f2)](_0x6e5f41=>{const _0x1951f6=_0x1ac876;this['_logService'][_0x1951f6(0x542)](_0x6e5f41),_0x52bdf9();});return;}if(_0x45f8ba['data'][_0x1ac876(0x538)]===_['CollaborationEvent'][_0x1ac876(0x27a)]){const _0x2ffe73=_0x45f8ba[_0x1ac876(0x198)];this[_0x1ac876(0x184)](_0x2ffe73)['then'](_0x39e24d=>{const _0x232eaa=_0x1ac876;_0x53d073['next']({'cmd':b[_0x232eaa(0x2db)],'code':Ye['OK'],'routeKey':_0x2ffe73[_0x232eaa(0x198)][_0x232eaa(0x36e)],'routeType':'','data':{'eventID':_[_0x232eaa(0x48e)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x39e24d}}});})[_0x1ac876(0x3f2)](_0x3e8cb1=>{const _0x1c3f9f=_0x1ac876;this[_0x1c3f9f(0x181)][_0x1c3f9f(0x542)](_0x3e8cb1),_0x52bdf9();});return;}}_0x29be4a[_0x1ac876(0x47b)](Ot(_0x45f8ba));},'close':()=>{const _0x43eda4=_0x225451;_0x29be4a[_0x43eda4(0x316)](),_0x3a819d[_0x43eda4(0x3a4)]();}},_0x38c277;}async[_0x57f41f(0x4d6)](_0x447ad9,_0x22eaf){const _0x243bc6=_0x57f41f;var _0x3112d7,_0x388698;const {unitType:_0x2dbf50,unitID:_0x23a727,changeset:_0x1c944d}=_0x22eaf[_0x243bc6(0x198)],_0x183d08={'unitID':_0x23a727,'memberID':_0x447ad9[_0x243bc6(0x20c)],'type':_0x2dbf50,'changeset':_[_0x243bc6(0x442)](_0x1c944d)},_0x54cff=this[_0x243bc6(0x172)][_0x243bc6(0x37f)](Ct),_0x5785de=this[_0x243bc6(0x172)][_0x243bc6(0x37f)](L),_0x257d09=ls((_0x388698=(_0x3112d7=_0x5785de==null?void 0x0:_0x5785de[_0x243bc6(0x274)])!=null?_0x3112d7:_0x54cff)!=null?_0x388698:is,_0x2dbf50,_0x23a727);try{await this['_http'][_0x243bc6(0x2a6)](_0x257d09,{'body':_0x183d08});}catch(_0x1cbbe0){throw this[_0x243bc6(0x181)][_0x243bc6(0x542)](_0x243bc6(0x161),'submit\x20changeset\x20error!'),_0x1cbbe0;}}async['_fetchMissChangesets'](_0x47b7d0){const _0x45840b=_0x57f41f,{unitID:_0x32300b,from:_0x1f961c,to:_0x33baed,unitType:_0x41aaee}=_0x47b7d0[_0x45840b(0x198)];return(await this[_0x45840b(0x154)][_0x45840b(0x455)]({'metadata':void 0x0},{'unitID':_0x32300b,'type':_0x41aaee,'from':_0x1f961c,'to':_0x33baed}))[_0x45840b(0x271)];}},exports['CollaborationSocketService']=cs([ae(0x0,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)])),ae(0x1,a['Inject'](w[_0x57f41f(0x43c)])),ae(0x2,a[_0x57f41f(0x435)]),ae(0x3,a[_0x57f41f(0x162)]),ae(0x4,_['ISnapshotServerService'])],exports[_0x57f41f(0x253)]);const hs=_0x57f41f(0x239);function _s(_0x144ff9){const _0x3e1ba0=_0x57f41f;return JSON[_0x3e1ba0(0x3bc)](_0x144ff9)[_0x3e1ba0(0x460)];}class Xe{constructor(){const _0x4a29b3=_0x57f41f;u(this,'_commentUpdate$',new v[(_0x4a29b3(0x54c))]()),u(this,'commentUpdate$',this['_commentUpdate$']['asObservable']());}[_0x57f41f(0x4bf)](_0x392969){const _0x372b5e=_0x57f41f;this[_0x372b5e(0x1d4)]['next'](_0x392969);}}var us=Object[_0x57f41f(0x522)],ds=Object[_0x57f41f(0x191)],Ss=(_0x472ff5,_0x241d57,_0x318b3c,_0x473692)=>{for(var _0x2ee130=_0x473692>0x1?void 0x0:_0x473692?ds(_0x241d57,_0x318b3c):_0x241d57,_0x578af2=_0x472ff5['length']-0x1,_0x2f9139;_0x578af2>=0x0;_0x578af2--)(_0x2f9139=_0x472ff5[_0x578af2])&&(_0x2ee130=(_0x473692?_0x2f9139(_0x241d57,_0x318b3c,_0x2ee130):_0x2f9139(_0x2ee130))||_0x2ee130);return _0x473692&&_0x2ee130&&us(_0x241d57,_0x318b3c,_0x2ee130),_0x2ee130;},tt=(_0x42585d,_0x5260a4)=>(_0x208ac3,_0x274377)=>_0x5260a4(_0x208ac3,_0x274377,_0x42585d);let q=class extends a[_0x57f41f(0x1b5)]{constructor(_0x3574d9,_0xf16ca2){const _0x489d70=_0x57f41f;super(),u(this,_0x489d70(0x2e9),new Map()),(this[_0x489d70(0x131)]=_0x3574d9,this['_userManagerService']=_0xf16ca2,this[_0x489d70(0x1e2)](a[_0x489d70(0x1f9)](v[_0x489d70(0x3d0)](this[_0x489d70(0x131)][_0x489d70(0x41f)](a[_0x489d70(0x4f6)][_0x489d70(0x197)])[_0x489d70(0x4bb)](E[_0x489d70(0x366)](_0x30a245=>_0x30a245[_0x489d70(0x263)]())),this['_univerInstanceService'][_0x489d70(0x41f)](a['UniverInstanceType'][_0x489d70(0x1a7)])[_0x489d70(0x4bb)](E[_0x489d70(0x366)](_0x15d5c5=>_0x15d5c5[_0x489d70(0x263)]())),this[_0x489d70(0x131)][_0x489d70(0x41f)](a[_0x489d70(0x4f6)][_0x489d70(0x439)])[_0x489d70(0x4bb)](E[_0x489d70(0x366)](_0x5b16d1=>_0x5b16d1[_0x489d70(0x263)]())))[_0x489d70(0x3ee)](_0x33e2ee=>this['_removeRoom'](_0x33e2ee)))));}['setCurrentUser'](_0x5258f7){const _0x433b95=_0x57f41f;this[_0x433b95(0x443)][_0x433b95(0x44e)](_0x5258f7);}[_0x57f41f(0x45c)](){const _0x4a24dd=_0x57f41f;return this[_0x4a24dd(0x443)][_0x4a24dd(0x45c)]();}[_0x57f41f(0x14b)](_0x52776a,_0x4f7658){const _0x64a779=_0x57f41f;let _0x4e98eb=this[_0x64a779(0x2e9)][_0x64a779(0x31f)](_0x52776a);_0x4e98eb||(_0x4e98eb=new vs(),this[_0x64a779(0x2e9)]['set'](_0x52776a,_0x4e98eb)),_0x4e98eb[_0x64a779(0x14b)](_0x4f7658);}[_0x57f41f(0x50e)](_0x5245eb,_0x2869b7){const _0x2cc452=_0x57f41f,_0x43a0a6=this[_0x2cc452(0x2e9)][_0x2cc452(0x31f)](_0x5245eb);_0x43a0a6&&_0x43a0a6[_0x2cc452(0x50e)](_0x2869b7);}[_0x57f41f(0x2f3)](_0x15fcf4){const _0x57bdd9=_0x57f41f;return this[_0x57bdd9(0x2e9)][_0x57bdd9(0x31f)](_0x15fcf4);}['getMember'](_0x15cd24,_0x497b89){const _0x517f44=_0x57f41f,_0x217fb2=this[_0x517f44(0x2e9)][_0x517f44(0x31f)](_0x15cd24);if(_0x217fb2)return _0x217fb2[_0x517f44(0x487)](_0x497b89);}[_0x57f41f(0x27b)](_0x95b1d4){const _0x511605=_0x57f41f,_0x46b621=this[_0x511605(0x2e9)][_0x511605(0x31f)](_0x95b1d4);_0x46b621&&(_0x46b621[_0x511605(0x3a4)](),this[_0x511605(0x2e9)][_0x511605(0x3e0)](_0x95b1d4));}[_0x57f41f(0x3a4)](){const _0xa04846=_0x57f41f;this['_roomMembers'][_0xa04846(0x50c)](_0x1082d0=>_0x1082d0[_0xa04846(0x3a4)]()),this[_0xa04846(0x2e9)][_0xa04846(0x159)]();}};q=Ss([tt(0x0,a[_0x57f41f(0x546)]),tt(0x1,a[_0x57f41f(0x1ec)](a['UserManagerService']))],q);class vs extends a[_0x57f41f(0x1b5)]{constructor(){const _0x247e68=_0x57f41f;super(...arguments),u(this,_0x247e68(0x550),new Map());}[_0x57f41f(0x3a4)](){this['_members']['clear']();}['updateMember'](_0x305218){const _0x18d63c=_0x57f41f;this[_0x18d63c(0x550)][_0x18d63c(0x20b)](_0x305218['memberID'],_0x305218);}[_0x57f41f(0x50e)](_0x1ae979){const _0x56d881=_0x57f41f;this[_0x56d881(0x550)][_0x56d881(0x3e0)](_0x1ae979);}['getMember'](_0x37dc44){const _0x175b03=_0x57f41f;return this['_members'][_0x175b03(0x31f)](_0x37dc44);}}var gs=Object['defineProperty'],ms=Object['getOwnPropertyDescriptor'],fs=(_0x32ef93,_0x442a73,_0x885377,_0x59a56e)=>{const _0x4eb2d9=_0x57f41f;for(var _0x4610da=_0x59a56e>0x1?void 0x0:_0x59a56e?ms(_0x442a73,_0x885377):_0x442a73,_0x4434d=_0x32ef93[_0x4eb2d9(0x460)]-0x1,_0x417276;_0x4434d>=0x0;_0x4434d--)(_0x417276=_0x32ef93[_0x4434d])&&(_0x4610da=(_0x59a56e?_0x417276(_0x442a73,_0x885377,_0x4610da):_0x417276(_0x4610da))||_0x4610da);return _0x59a56e&&_0x4610da&&gs(_0x442a73,_0x885377,_0x4610da),_0x4610da;},V=(_0x11542a,_0x2791d0)=>(_0x1ede2d,_0x319206)=>_0x2791d0(_0x1ede2d,_0x319206,_0x11542a),H=(_0x1900b3=>(_0x1900b3[_0x1900b3[_0x57f41f(0x4e4)]=0x0]=_0x57f41f(0x4e4),_0x1900b3[_0x1900b3[_0x57f41f(0x489)]=0x1]=_0x57f41f(0x489),_0x1900b3[_0x1900b3[_0x57f41f(0x2d2)]=0x2]=_0x57f41f(0x2d2),_0x1900b3[_0x1900b3[_0x57f41f(0x436)]=0x3]=_0x57f41f(0x436),_0x1900b3))(H||{});exports[_0x57f41f(0x2e3)]=class extends a[_0x57f41f(0x1c5)]{constructor(_0x34c8d0,_0x476103,_0x2dfbd4,_0x50d1fe,_0x4e5498,_0x2b77de,_0x61e447,_0x51f41,_0x5cdbcb,_0x34e36b){const _0x1bca0c=_0x57f41f;super(),u(this,_0x1bca0c(0x3cc),new v['BehaviorSubject'](0x0)),u(this,_0x1bca0c(0x1bd),this['_sessionStatus$'][_0x1bca0c(0x41e)]()),u(this,_0x1bca0c(0x2f5),new v['Subject']()),u(this,_0x1bca0c(0x438),this['_event$'][_0x1bca0c(0x41e)]()),u(this,_0x1bca0c(0x364)),u(this,_0x1bca0c(0x46c)),u(this,_0x1bca0c(0x235)),u(this,_0x1bca0c(0x50d),!0x1),u(this,'_telemetryInfo',null),(this['_unitID']=_0x34c8d0,this['_logService']=_0x2dfbd4,this[_0x1bca0c(0x270)]=_0x50d1fe,this[_0x1bca0c(0x4b9)]=_0x4e5498,this[_0x1bca0c(0x172)]=_0x2b77de,this['_localeService']=_0x61e447,this['_memberService']=_0x51f41,this[_0x1bca0c(0x2bb)]=_0x5cdbcb,this[_0x1bca0c(0x4cd)]=_0x34e36b,this[_0x1bca0c(0x50d)]=!!this['_telemetryService'],_0x476103[_0x1bca0c(0x4bb)](v[_0x1bca0c(0x12b)](this[_0x1bca0c(0x43a)]))[_0x1bca0c(0x3ee)](_0x57a07e=>{const _0x328238=_0x1bca0c;var _0x29c9eb;typeof _0x57a07e>'u'||(this[_0x328238(0x364)]=_0x57a07e,_0x57a07e?(this[_0x328238(0x26e)](_0x57a07e),this[_0x328238(0x46c)]=_0x57a07e[_0x328238(0x41c)][_0x328238(0x3ee)](_0x29d5e5=>{const _0x340861=_0x328238;_0x29d5e5[_0x340861(0x1ff)]===this['_unitID']&&this[_0x340861(0x1ba)](_0x29d5e5);})):(this[_0x328238(0x42e)](),this[_0x328238(0x3cc)]['next'](0x2),(_0x29c9eb=this['_socketMessageSubscription'])==null||_0x29c9eb[_0x328238(0x373)](),this[_0x328238(0x46c)]=null));}),this[_0x1bca0c(0x1e2)](this['_beforeCloseService'][_0x1bca0c(0x4b8)](()=>{const _0x5bbd03=_0x1bca0c;var _0x482fbc;(_0x482fbc=this[_0x5bbd03(0x364)])==null||_0x482fbc[_0x5bbd03(0x47b)]({'cmd':b[_0x5bbd03(0x358)],'data':{'roomID':this[_0x5bbd03(0x28e)]}});})));}get['sessionStatus'](){const _0x5395cf=_0x57f41f;return this[_0x5395cf(0x3cc)][_0x5395cf(0x3a2)]();}[_0x57f41f(0x145)](){const _0x12ec13=_0x57f41f;var _0x1479d1,_0x96db48;return(_0x96db48=(_0x1479d1=this['_socket'])==null?void 0x0:_0x1479d1[_0x12ec13(0x20c)])!=null?_0x96db48:null;}[_0x57f41f(0x3a4)](){const _0x1a55c9=_0x57f41f;super[_0x1a55c9(0x3a4)](),this[_0x1a55c9(0x43a)]['next'](),this[_0x1a55c9(0x43a)][_0x1a55c9(0x4a4)]();}['close'](){const _0x1140bd=_0x57f41f;var _0x1dcbe1,_0x277598;this['_throwTelemetryCollaborationNewChangeset'](),(_0x1dcbe1=this['_socket'])==null||_0x1dcbe1[_0x1140bd(0x47b)]({'cmd':b[_0x1140bd(0x358)],'data':{'roomID':this[_0x1140bd(0x28e)]}}),(_0x277598=this[_0x1140bd(0x364)])==null||_0x277598[_0x1140bd(0x316)](),this['_event$']['complete'](),this['_sessionStatus$']['complete'](),this[_0x1140bd(0x3a4)]();}[_0x57f41f(0x1ba)](_0x434c69){const _0x535386=_0x57f41f;_0x434c69['cmd']===b['JOIN']?this[_0x535386(0x2fc)](_0x434c69):_0x434c69['cmd']===b[_0x535386(0x2db)]&&this[_0x535386(0x4fe)](_0x434c69);}['_joinRoom'](_0x1d6db1){const _0x22283c=_0x57f41f;this[_0x22283c(0x3cc)][_0x22283c(0x49c)](0x1),_0x1d6db1[_0x22283c(0x47b)]({'cmd':b[_0x22283c(0x54d)],'routeKey':this[_0x22283c(0x28e)],'routeType':'','data':{'rooms':[{'roomID':this[_0x22283c(0x28e)]}]}});}[_0x57f41f(0x2fc)](_0x1ec27d){const _0xeccb6d=_0x57f41f;var _0x2e732b;if(_0x1ec27d[_0xeccb6d(0x399)]===Ye[_0xeccb6d(0x46d)]){this['_messageService'][_0xeccb6d(0x375)]({'type':X[_0xeccb6d(0x1cf)][_0xeccb6d(0x1b4)],'content':this['_localeService']['t'](_0xeccb6d(0x437))}),this[_0xeccb6d(0x3cc)]['next'](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x39151d=(_0x2e732b=_0x1ec27d[_0xeccb6d(0x198)][_0xeccb6d(0x1c4)][this[_0xeccb6d(0x28e)]])==null?void 0x0:_0x2e732b[_0xeccb6d(0x163)];_0x39151d&&_0x39151d[_0xeccb6d(0x50c)](_0x4a67d2=>this['_memberService']['updateMember'](this[_0xeccb6d(0x28e)],_0x4a67d2));}[_0x57f41f(0x4fe)](_0x35047f){const _0x2c0c0a=_0x57f41f;try{const _0x126f22=_0x35047f[_0x2c0c0a(0x198)];switch(_0x126f22['eventID']){case _['CollaborationEvent'][_0x2c0c0a(0x226)]:this['_onUserJoin'](_0x126f22),this[_0x2c0c0a(0x2f5)]['next'](_0x126f22);break;case _[_0x2c0c0a(0x48e)][_0x2c0c0a(0x4af)]:this[_0x2c0c0a(0x2a3)](_0x126f22),this['_event$'][_0x2c0c0a(0x49c)](_0x126f22);break;case _['CollaborationEvent'][_0x2c0c0a(0x269)]:this[_0x2c0c0a(0x4c5)](),this[_0x2c0c0a(0x473)](),this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);break;case _[_0x2c0c0a(0x48e)][_0x2c0c0a(0x4a6)]:this[_0x2c0c0a(0x181)]['error'](_0x2c0c0a(0x1fa)+JSON[_0x2c0c0a(0x3bc)](_0x126f22)),this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);break;case _[_0x2c0c0a(0x48e)][_0x2c0c0a(0x3db)]:this[_0x2c0c0a(0x2bb)][_0x2c0c0a(0x4bf)](_0x126f22[_0x2c0c0a(0x198)]),this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);break;default:this[_0x2c0c0a(0x2f5)][_0x2c0c0a(0x49c)](_0x126f22);}}catch(_0x53ac1d){this[_0x2c0c0a(0x181)][_0x2c0c0a(0x542)](_0x53ac1d,_0x35047f);}}[_0x57f41f(0x2b8)](_0x3616c4){const _0x2d1c65=_0x57f41f;this[_0x2d1c65(0x384)][_0x2d1c65(0x14b)](this['_unitID'],_0x3616c4[_0x2d1c65(0x198)]);}[_0x57f41f(0x2a3)](_0xdd64d9){const _0x1f7bb9=_0x57f41f;this[_0x1f7bb9(0x384)][_0x1f7bb9(0x50e)](this[_0x1f7bb9(0x28e)],_0xdd64d9[_0x1f7bb9(0x198)][_0x1f7bb9(0x20c)]);}async[_0x57f41f(0x47b)](_0x2f9b8b,_0x5408a8){const _0x560d89=_0x57f41f;if(this[_0x560d89(0x4a9)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2f9b8b['eventID']===_[_0x560d89(0x48e)][_0x560d89(0x389)]&&(this[_0x560d89(0x4de)](),this[_0x560d89(0x457)](_0x2f9b8b)),this['_socket'][_0x560d89(0x47b)]({'cmd':b[_0x560d89(0x349)],'routeKey':_0x5408a8,'routeType':'','data':_0x2f9b8b});}catch(_0x349269){this[_0x560d89(0x181)][_0x560d89(0x542)](_0x349269);}}['_scheduleCollaborationTimeoutTimer'](){const _0x524bc8=_0x57f41f;var _0x3518cd;this['_collaborationTimeoutTimer']=window[_0x524bc8(0x540)](()=>{const _0x27fbd3=_0x524bc8;this[_0x27fbd3(0x235)]=null,this[_0x27fbd3(0x4b9)][_0x27fbd3(0x375)]({'type':X[_0x27fbd3(0x1cf)][_0x27fbd3(0x411)],'content':this['_localeService']['t'](_0x27fbd3(0x468))});},(_0x3518cd=this[_0x524bc8(0x172)][_0x524bc8(0x37f)](Ge))!=null?_0x3518cd:ft);}['_clearCollaborationTimeoutTimer'](){const _0x2c622a=_0x57f41f;this[_0x2c622a(0x235)]&&(clearTimeout(this[_0x2c622a(0x235)]),this[_0x2c622a(0x235)]=null);}[_0x57f41f(0x457)](_0x592659){const _0x1e3c99=_0x57f41f;if(!this[_0x1e3c99(0x50d)])return;const {data:_0x5eeab8}=_0x592659,{unitID:_0x20b539,changeset:_0x43f894}=_0x5eeab8,{mutations:_0x64aaf,type:_0x5db3db}=_0x43f894;this[_0x1e3c99(0x1be)]={'unitId':_0x20b539,'type':_0x5db3db,'startTime':performance[_0x1e3c99(0x4fb)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x64aaf)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5397ba=_0x57f41f;if(this[_0x5397ba(0x50d)]){if(!this[_0x5397ba(0x1be)]){this[_0x5397ba(0x181)][_0x5397ba(0x542)](_0x5397ba(0x161),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x5397ba(0x3d4)]=performance[_0x5397ba(0x4fb)](),this['_telemetryInfo']['duration']=this[_0x5397ba(0x1be)][_0x5397ba(0x3d4)]-this[_0x5397ba(0x1be)][_0x5397ba(0x192)],this[_0x5397ba(0x4cd)][_0x5397ba(0x4c1)](hs,this[_0x5397ba(0x1be)]),this[_0x5397ba(0x1be)]=null;}}[_0x57f41f(0x42e)](){const _0x3dbf18=_0x57f41f;this[_0x3dbf18(0x1be)]=null;}},exports[_0x57f41f(0x2e3)]=fs([V(0x2,a[_0x57f41f(0x162)]),V(0x3,A[_0x57f41f(0x3e8)]),V(0x4,A['IMessageService']),V(0x5,a['IConfigService']),V(0x6,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),V(0x7,a['Inject'](q)),V(0x8,a['Inject'](Xe)),V(0x9,a[_0x57f41f(0x177)](Yt['ITelemetryService']))],exports[_0x57f41f(0x2e3)]);var Is=Object[_0x57f41f(0x522)],ps=Object[_0x57f41f(0x191)],Cs=(_0x1aef6e,_0x58231e,_0x55d7fb,_0x4701d9)=>{for(var _0x59c6e7=_0x4701d9>0x1?void 0x0:_0x4701d9?ps(_0x58231e,_0x55d7fb):_0x58231e,_0x22e2b6=_0x1aef6e['length']-0x1,_0x25baf7;_0x22e2b6>=0x0;_0x22e2b6--)(_0x25baf7=_0x1aef6e[_0x22e2b6])&&(_0x59c6e7=(_0x4701d9?_0x25baf7(_0x58231e,_0x55d7fb,_0x59c6e7):_0x25baf7(_0x59c6e7))||_0x59c6e7);return _0x4701d9&&_0x59c6e7&&Is(_0x58231e,_0x55d7fb,_0x59c6e7),_0x59c6e7;},Z=(_0x1e6907,_0x110ec2)=>(_0x9d29a7,_0x4dbe38)=>_0x110ec2(_0x9d29a7,_0x4dbe38,_0x1e6907);exports[_0x57f41f(0x19b)]=class extends a[_0x57f41f(0x1b5)]{constructor(_0x4a0f85,_0x219805,_0x55d154,_0x4b41ad,_0x5958a7,_0x294a69){const _0x3379ab=_0x57f41f;super(),u(this,'_socket$',new v[(_0x3379ab(0x3ab))](void 0x0)),u(this,'socket$',this[_0x3379ab(0x321)][_0x3379ab(0x41e)]()),u(this,_0x3379ab(0x47f),null),u(this,_0x3379ab(0x24d),new Map()),u(this,'_status$',new v[(_0x3379ab(0x3ab))](H[_0x3379ab(0x4e4)])),u(this,_0x3379ab(0x26c),this[_0x3379ab(0x524)][_0x3379ab(0x41e)]()),u(this,'_socketReady',!0x1),u(this,_0x3379ab(0x2d5)),u(this,'_retryCount',0x0),u(this,_0x3379ab(0x2ac)),u(this,_0x3379ab(0x4b6)),(this[_0x3379ab(0x331)]=_0x4a0f85,this[_0x3379ab(0x3c6)]=_0x219805,this[_0x3379ab(0x4b9)]=_0x55d154,this[_0x3379ab(0x181)]=_0x4b41ad,this['_configService']=_0x5958a7,this[_0x3379ab(0x3c1)]=_0x294a69,this[_0x3379ab(0x3e5)]());}get[_0x57f41f(0x364)](){const _0xf59f7b=_0x57f41f;return this[_0xf59f7b(0x321)]['getValue']();}[_0x57f41f(0x3e5)](){const _0x13eb0d=_0x57f41f;this['_listenToOfflineEvent'](),this[_0x13eb0d(0x12e)]();}['dispose'](){const _0x5a458a=_0x57f41f;super[_0x5a458a(0x3a4)](),this[_0x5a458a(0x24d)]['forEach'](_0x37a94d=>_0x37a94d[_0x5a458a(0x3a4)]()),this[_0x5a458a(0x24d)][_0x5a458a(0x159)](),this[_0x5a458a(0x524)][_0x5a458a(0x4a4)]();}async[_0x57f41f(0x2b6)](_0x23f22f){const _0x194040=_0x57f41f;if(this['_sessions'][_0x194040(0x2c9)](_0x23f22f))return this['_sessions'][_0x194040(0x31f)](_0x23f22f);this[_0x194040(0x2f4)]();const _0x439387=this[_0x194040(0x331)][_0x194040(0x4eb)](exports['CollaborationSession'],_0x23f22f,this['_socket$']['asObservable']());return this[_0x194040(0x24d)]['set'](_0x23f22f,_0x439387),_0x439387;}[_0x57f41f(0x1a2)](_0x4a2864){const _0x23d4d0=_0x57f41f;var _0x47bb9c;const _0x43980d=this[_0x23d4d0(0x24d)][_0x23d4d0(0x31f)](_0x4a2864);_0x43980d&&(this[_0x23d4d0(0x24d)][_0x23d4d0(0x3e0)](_0x4a2864),_0x43980d['close']()),this[_0x23d4d0(0x24d)]['size']||(_0x47bb9c=this[_0x23d4d0(0x364)])==null||_0x47bb9c[_0x23d4d0(0x316)]();}[_0x57f41f(0x17f)](){const _0x30b1c4=_0x57f41f;this[_0x30b1c4(0x1dc)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x30b1c4(0x2d5)]),this['_retryConnectingTimer']=null),this[_0x30b1c4(0x48b)]();}[_0x57f41f(0x167)](){const _0x536ab3=_0x57f41f;var _0x2064ad,_0x3c9837;const _0x525f6d=this[_0x536ab3(0x172)][_0x536ab3(0x37f)](gt),_0x3bc581=this[_0x536ab3(0x172)][_0x536ab3(0x37f)](L),_0x43e75c=(_0x3c9837=(_0x2064ad=_0x3bc581==null?void 0x0:_0x3bc581[_0x536ab3(0x537)])!=null?_0x2064ad:_0x525f6d)!=null?_0x3c9837:Zt,_0x573925=this['_socketService'][_0x536ab3(0x4b5)](_0x43e75c);return this[_0x536ab3(0x47f)]=_0x573925,_0x573925;}[_0x57f41f(0x2f4)](){const _0x1cc2ea=_0x57f41f;var _0x896124,_0x15c010;try{const _0x5da404=(_0x15c010=(_0x896124=this['_socket'])!=null?_0x896124:this[_0x1cc2ea(0x47f)])!=null?_0x15c010:this[_0x1cc2ea(0x167)]();if(_0x5da404){const _0x1e41be=_0x5da404[_0x1cc2ea(0x47b)];_0x5da404[_0x1cc2ea(0x47b)]=_0x349014=>(this['_rescheduleHeartbeat'](),_0x1e41be[_0x1cc2ea(0x254)](_0x5da404,[_0x349014])),_0x5da404[_0x1cc2ea(0x41c)]['subscribe'](_0x37057b=>this[_0x1cc2ea(0x31d)](_0x5da404,_0x37057b)),_0x5da404['error$']['pipe'](E[_0x1cc2ea(0x241)](0x1))[_0x1cc2ea(0x3ee)](_0x3827d8=>this['_logService']['error'](_0x1cc2ea(0x37d),_0x3827d8)),_0x5da404['open$']['pipe'](E['take'](0x1))[_0x1cc2ea(0x3ee)](()=>{const _0x48c18e=_0x1cc2ea;this[_0x48c18e(0x30a)](_0x5da404);}),_0x5da404[_0x1cc2ea(0x3b6)][_0x1cc2ea(0x4bb)](E[_0x1cc2ea(0x241)](0x1))[_0x1cc2ea(0x3ee)](_0x41b500=>{const _0x215527=_0x1cc2ea;this[_0x215527(0x181)]['debug'](_0x215527(0x187),_0x215527(0x381),_0x41b500),this[_0x215527(0x2dc)]();});}}catch(_0x2b8f81){this[_0x1cc2ea(0x181)]['error'](_0x2b8f81),this[_0x1cc2ea(0x2dc)]();}}[_0x57f41f(0x30a)](_0x124918){const _0xae7feb=_0x57f41f;this[_0xae7feb(0x181)][_0xae7feb(0x2e5)]('[CollaborationSessionService]',_0xae7feb(0x158)),_0x124918[_0xae7feb(0x47b)]({'cmd':b[_0xae7feb(0x528)]}),this[_0xae7feb(0x3bb)]();}['_listenToOfflineEvent'](){const _0x1f9919=_0x57f41f;window['addEventListener'](_0x1f9919(0x341),()=>this[_0x1f9919(0x3cb)]());}[_0x57f41f(0x3cb)](){const _0x28066e=_0x57f41f;this[_0x28066e(0x2df)]=!0x1,this[_0x28066e(0x47f)]=null,this[_0x28066e(0x524)]['next'](H[_0x28066e(0x2d2)]),this[_0x28066e(0x321)][_0x28066e(0x49c)](null),this[_0x28066e(0x2c7)](),this[_0x28066e(0x259)]();}[_0x57f41f(0x2dc)](){const _0x3d61c9=_0x57f41f;var _0x4fdaa8;this[_0x3d61c9(0x3cb)](),this[_0x3d61c9(0x1dc)]<((_0x4fdaa8=this[_0x3d61c9(0x172)][_0x3d61c9(0x37f)](It))!=null?_0x4fdaa8:ts)?(this['_messageService']['show']({'key':_0x3d61c9(0x472),'type':X[_0x3d61c9(0x1cf)][_0x3d61c9(0x1b4)],'content':this[_0x3d61c9(0x3c6)]['t'](_0x3d61c9(0x319))}),this[_0x3d61c9(0x48b)]()):this[_0x3d61c9(0x4b9)][_0x3d61c9(0x375)]({'key':_0x3d61c9(0x472),'type':X[_0x3d61c9(0x1cf)]['Error'],'content':this[_0x3d61c9(0x3c6)]['t']('session.connection-failed')});}[_0x57f41f(0x12e)](){const _0x5af779=_0x57f41f,_0x3f0118=()=>{const _0x584d7f=_0x1fa7;this[_0x584d7f(0x364)]||this[_0x584d7f(0x17f)]();},_0x250435=()=>{const _0x414d45=_0x1fa7;this[_0x414d45(0x364)]||document[_0x414d45(0x3df)]==='hidden'||this[_0x414d45(0x17f)]();};window[_0x5af779(0x37b)]('online',_0x3f0118),document[_0x5af779(0x37b)]('visibilitychange',_0x250435);}['_tryReconnect'](){const _0x52dc09=_0x57f41f;var _0x2ae79c;const _0x26455e=this[_0x52dc09(0x1dc)],_0x4b0db8=this[_0x52dc09(0x172)][_0x52dc09(0x37f)](L),_0x40638c=_0x26455e===0x0?0x0:((_0x2ae79c=_0x4b0db8==null?void 0x0:_0x4b0db8['retryConnectingInterval'])!=null?_0x2ae79c:es)*0x2**_0x26455e;this[_0x52dc09(0x2d5)]=window[_0x52dc09(0x540)](()=>{const _0x24df14=_0x52dc09;clearTimeout(this['_retryConnectingTimer']),this[_0x24df14(0x2d5)]=null,this[_0x24df14(0x2f4)]();},_0x40638c),this[_0x52dc09(0x1dc)]+=0x1;}[_0x57f41f(0x31d)](_0x1b5fae,_0x468b45){const _0x4fb9c7=_0x57f41f,{cmd:_0x4c7899}=_0x468b45;_0x4c7899===b[_0x4fb9c7(0x528)]&&!this[_0x4fb9c7(0x2df)]&&(_0x1b5fae['memberID']=_0x468b45[_0x4fb9c7(0x198)]['memberID'],this[_0x4fb9c7(0x321)][_0x4fb9c7(0x49c)](_0x1b5fae),this[_0x4fb9c7(0x524)]['next'](H[_0x4fb9c7(0x436)]),this[_0x4fb9c7(0x2df)]=!0x0,this[_0x4fb9c7(0x47f)]=null),_0x4c7899===b[_0x4fb9c7(0x2fd)]&&this[_0x4fb9c7(0x2c7)](),this['_rescheduleHeartbeat']();}[_0x57f41f(0x3bb)](){const _0x1aea50=_0x57f41f;var _0x26b54a;this['_clearHeartbeatTimer'](),this[_0x1aea50(0x2ac)]=window[_0x1aea50(0x540)](()=>this[_0x1aea50(0x1e6)](),(_0x26b54a=this[_0x1aea50(0x172)][_0x1aea50(0x37f)](mt))!=null?_0x26b54a:Qt);}[_0x57f41f(0x1e6)](){const _0x113255=_0x57f41f;this[_0x113255(0x364)][_0x113255(0x47b)]({'cmd':b[_0x113255(0x2fd)]}),this[_0x113255(0x22e)]();}[_0x57f41f(0x22e)](){const _0xce5af6=_0x57f41f;var _0x2efbef;this[_0xce5af6(0x4b6)]=window['setTimeout'](()=>this[_0xce5af6(0x2dc)](),(_0x2efbef=this[_0xce5af6(0x172)][_0xce5af6(0x37f)](Ge))!=null?_0x2efbef:ft);}[_0x57f41f(0x259)](){const _0xbbae0e=_0x57f41f;this[_0xbbae0e(0x2ac)]!=null&&(clearTimeout(this[_0xbbae0e(0x2ac)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x565105=_0x57f41f;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x565105(0x4b6)]),this[_0x565105(0x4b6)]=null);}},exports[_0x57f41f(0x19b)]=Cs([Z(0x0,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),Z(0x1,a['Inject'](a[_0x57f41f(0x405)])),Z(0x2,A[_0x57f41f(0x34b)]),Z(0x3,a['ILogService']),Z(0x4,a[_0x57f41f(0x435)]),Z(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R['push']((Ue+0x100)[_0x57f41f(0x258)](0x10)[_0x57f41f(0x423)](0x1));function Es(_0x385abc,_0x5076c9=0x0){const _0x353890=_0x57f41f;return(R[_0x385abc[_0x5076c9+0x0]]+R[_0x385abc[_0x5076c9+0x1]]+R[_0x385abc[_0x5076c9+0x2]]+R[_0x385abc[_0x5076c9+0x3]]+'-'+R[_0x385abc[_0x5076c9+0x4]]+R[_0x385abc[_0x5076c9+0x5]]+'-'+R[_0x385abc[_0x5076c9+0x6]]+R[_0x385abc[_0x5076c9+0x7]]+'-'+R[_0x385abc[_0x5076c9+0x8]]+R[_0x385abc[_0x5076c9+0x9]]+'-'+R[_0x385abc[_0x5076c9+0xa]]+R[_0x385abc[_0x5076c9+0xb]]+R[_0x385abc[_0x5076c9+0xc]]+R[_0x385abc[_0x5076c9+0xd]]+R[_0x385abc[_0x5076c9+0xe]]+R[_0x385abc[_0x5076c9+0xf]])[_0x353890(0x322)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x4e6a22=_0x57f41f;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x4e6a22(0x417)]&&crypto[_0x4e6a22(0x417)][_0x4e6a22(0x136)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(bs);}var Rs=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x57f41f(0x1df)][_0x57f41f(0x136)](crypto);const st={'randomUUID':Rs};function Os(_0x1be5a0,_0x37f3ef,_0x1ec38e){const _0x36122e=_0x57f41f;if(st['randomUUID']&&!_0x37f3ef&&!_0x1be5a0)return st[_0x36122e(0x1df)]();_0x1be5a0=_0x1be5a0||{};var _0xf4274d=_0x1be5a0[_0x36122e(0x2f7)]||(_0x1be5a0[_0x36122e(0x510)]||Ts)();return _0xf4274d[0x6]=_0xf4274d[0x6]&0xf|0x40,_0xf4274d[0x8]=_0xf4274d[0x8]&0x3f|0x80,Es(_0xf4274d);}var Ds=Object[_0x57f41f(0x522)],ys=Object[_0x57f41f(0x191)],Us=(_0x327424,_0x19873a,_0x185657,_0x93d802)=>{const _0x31e35d=_0x57f41f;for(var _0x539224=_0x93d802>0x1?void 0x0:_0x93d802?ys(_0x19873a,_0x185657):_0x19873a,_0x301cbb=_0x327424[_0x31e35d(0x460)]-0x1,_0x839ba1;_0x301cbb>=0x0;_0x301cbb--)(_0x839ba1=_0x327424[_0x301cbb])&&(_0x539224=(_0x93d802?_0x839ba1(_0x19873a,_0x185657,_0x539224):_0x839ba1(_0x539224))||_0x539224);return _0x93d802&&_0x539224&&Ds(_0x19873a,_0x185657,_0x539224),_0x539224;},Pe=(_0x54ee57,_0x237e83)=>(_0x12ad1e,_0x5871d0)=>_0x237e83(_0x12ad1e,_0x5871d0,_0x54ee57);let fe=class{constructor(_0x474983,_0x3992ba,_0x33bcac){const _0x36884d=_0x57f41f;this[_0x36884d(0x331)]=_0x474983,this[_0x36884d(0x365)]=_0x3992ba,this[_0x36884d(0x46a)]=_0x33bcac;}[_0x57f41f(0x4c0)](_0x4012c2){const _0x35d65f=_0x57f41f;this[_0x35d65f(0x287)](_0x4012c2),this[_0x35d65f(0x285)](_0x4012c2);}[_0x57f41f(0x31a)](_0x1b39eb){const _0x50f5bc=_0x57f41f,{unitID:_0x1d6179}=_0x1b39eb,_0x117c37=this[_0x50f5bc(0x46a)][_0x50f5bc(0x488)](_0x1d6179)[_0x50f5bc(0x401)](N['DocIMEInputManagerService']),{redoCache:_0x11c6d8}=_0x117c37[_0x50f5bc(0x2e1)]();if(_0x11c6d8[_0x50f5bc(0x460)]===0x0)return _0x1b39eb;let _0xb95371=a['Tools'][_0x50f5bc(0x4b2)](_0x1b39eb[_0x50f5bc(0x506)][0x0]);for(let _0xd88f4a=0x0;_0xd88f4a<_0x11c6d8['length'];_0xd88f4a++){const _0x468cfb={'id':'doc.mutation.rich-text-editing','params':{..._0x11c6d8[_0xd88f4a]}},_0x14155a=this[_0x50f5bc(0x365)]['transformMutation'](_0xb95371,_0x468cfb,!0x1);if(_[_0x50f5bc(0x28a)](_0x14155a))throw _0x14155a[_0x50f5bc(0x542)];_0xb95371=_0x14155a[_0x50f5bc(0x36a)];}return{...a['Tools'][_0x50f5bc(0x4b2)](_0x1b39eb),'mutations':[_0xb95371]};}['_transformUndoRedoStack'](_0x5c1031){const _0x5babd7=_0x57f41f,{unitID:_0x2435a6}=_0x5c1031,_0x3034fb=this[_0x5babd7(0x46a)][_0x5babd7(0x488)](_0x2435a6)['with'](N[_0x5babd7(0x2e2)]),{undoCache:_0x4b4786,redoCache:_0x3134fc}=_0x3034fb[_0x5babd7(0x2e1)]();if(_0x4b4786[_0x5babd7(0x460)]===0x0||_0x3134fc[_0x5babd7(0x460)]===0x0)return;const _0x238656=[],_0x3db31f=[];let _0x5c9a14=a[_0x5babd7(0x25c)][_0x5babd7(0x4b2)](_0x5c1031[_0x5babd7(0x506)][0x0]),_0x468a4e=a['Tools'][_0x5babd7(0x4b2)](_0x5c1031[_0x5babd7(0x506)][0x0]);for(let _0x319737=_0x4b4786['length']-0x1;_0x319737>=0x0;_0x319737--){const _0x5e49ea={'id':_0x5babd7(0x44f),'params':{..._0x4b4786[_0x319737]}},_0x588a98={'id':'doc.mutation.rich-text-editing','params':{..._0x3134fc[_0x319737]}},_0x81d2a2=this['_transformService']['transformMutation'](_0x5c9a14,_0x5e49ea,!0x1),_0x25f6f8=this[_0x5babd7(0x365)][_0x5babd7(0x1e4)](_0x468a4e,_0x588a98,!0x1);if(_[_0x5babd7(0x28a)](_0x81d2a2))throw _0x81d2a2[_0x5babd7(0x542)];if(_[_0x5babd7(0x28a)](_0x25f6f8))throw _0x25f6f8[_0x5babd7(0x542)];_0x238656[_0x5babd7(0x54b)](_0x81d2a2[_0x5babd7(0x353)][_0x5babd7(0x15b)]),_0x3db31f[_0x5babd7(0x54b)](_0x25f6f8[_0x5babd7(0x353)][_0x5babd7(0x15b)]),_0x5c9a14=_0x81d2a2[_0x5babd7(0x36a)],_0x468a4e=_0x25f6f8[_0x5babd7(0x36a)];}_0x3034fb[_0x5babd7(0x19f)]({'undoCache':_0x238656,'redoCache':_0x3db31f});}[_0x57f41f(0x285)](_0x178d83){const _0x2a6f92=_0x57f41f,{unitID:_0x59da63}=_0x178d83,_0x4212b8=this['_renderManagerService'][_0x2a6f92(0x488)](_0x59da63)[_0x2a6f92(0x401)](N['DocIMEInputManagerService']),_0x31664a=_0x4212b8[_0x2a6f92(0x481)]();if(_0x31664a==null)return;const _0x5f4081=[{'id':_0x2a6f92(0x44f),'params':{'unitId':_0x178d83['unitID'],'actions':null,'textRanges':[_0x31664a]}}],_0x5b9a55=this['_transformService']['transformMutationsWithChangeset'](_0x178d83,_0x5f4081);if(!_[_0x2a6f92(0x41b)](_0x5b9a55))throw _0x5b9a55['error'];const _0x5c00f8=_0x5b9a55[_0x2a6f92(0x353)][0x0]['params'][_0x2a6f92(0x179)];Array[_0x2a6f92(0x2f8)](_0x5c00f8)&&_0x5c00f8[_0x2a6f92(0x460)]&&_0x4212b8['setActiveRange'](_0x5c00f8[0x0]);}};fe=Us([Pe(0x0,a['Inject'](a['Injector'])),Pe(0x1,_[_0x57f41f(0x127)]),Pe(0x2,O[_0x57f41f(0x15c)])],fe);var Ps=Object['defineProperty'],ws=Object[_0x57f41f(0x191)],Ns=(_0x2e066d,_0x1dc29e,_0x4388aa,_0x4febe5)=>{const _0x4a6eab=_0x57f41f;for(var _0x19c933=_0x4febe5>0x1?void 0x0:_0x4febe5?ws(_0x1dc29e,_0x4388aa):_0x1dc29e,_0x5b8ac4=_0x2e066d[_0x4a6eab(0x460)]-0x1,_0x37990b;_0x5b8ac4>=0x0;_0x5b8ac4--)(_0x37990b=_0x2e066d[_0x5b8ac4])&&(_0x19c933=(_0x4febe5?_0x37990b(_0x1dc29e,_0x4388aa,_0x19c933):_0x37990b(_0x19c933))||_0x19c933);return _0x4febe5&&_0x19c933&&Ps(_0x1dc29e,_0x4388aa,_0x19c933),_0x19c933;},ce=(_0x82dfc9,_0x38a0b6)=>(_0x35a924,_0x34a77a)=>_0x38a0b6(_0x35a924,_0x34a77a,_0x82dfc9);exports['LocalCacheService']=class extends a[_0x57f41f(0x1b5)]{constructor(_0x3d3273,_0x1e71e8,_0x278355,_0x3c96f5,_0x1f20d8){const _0x4c6dc9=_0x57f41f;super(),u(this,_0x4c6dc9(0x3ac),new Map()),u(this,_0x4c6dc9(0x38c),new Map()),u(this,_0x4c6dc9(0x531),!0x1),(this[_0x4c6dc9(0x172)]=_0x3d3273,this[_0x4c6dc9(0x294)]=_0x1e71e8,this['_beforeCloseService']=_0x278355,this[_0x4c6dc9(0x3c6)]=_0x3c96f5,this['_revisionService']=_0x1f20d8,this['_setupBeforeClosingHandler']());}[_0x57f41f(0x1f2)](){const _0x239527=_0x57f41f;this[_0x239527(0x531)]=!0x0;}[_0x57f41f(0x4a3)](){const _0x5558e9=_0x57f41f;this[_0x5558e9(0x531)]=!0x1;}[_0x57f41f(0x3a4)](){const _0x1d813b=_0x57f41f;this['exhaustSavingTask']()[_0x1d813b(0x407)](()=>super[_0x1d813b(0x3a4)]());}async[_0x57f41f(0x1e0)](_0x12a4ff){const _0x5b7df6=_0x57f41f;return this[_0x5b7df6(0x531)]?null:this[_0x5b7df6(0x294)][_0x5b7df6(0x176)](it(_0x12a4ff));}async[_0x57f41f(0x40a)](_0x5cccb9,_0x3b1af6){const _0x38d889=_0x57f41f;return!!this[_0x38d889(0x294)][_0x38d889(0x1de)](_0x5cccb9,_0x3b1af6);}[_0x57f41f(0x4dc)](_0xf6c77d,_0x196305,_0x52db0d,_0x20b1da){const _0x2a3efa=_0x57f41f,_0x3b428f=this[_0x2a3efa(0x51e)]['getCurrentRevOfUnit'](_0xf6c77d);this[_0x2a3efa(0x3ac)][_0x2a3efa(0x20b)](_0xf6c77d,{'unitID':_0xf6c77d,'type':_0x196305,'awaitingChangeset':_0x52db0d,'mutations':_0x20b1da,'rev':_0x3b428f}),this[_0x2a3efa(0x38c)][_0x2a3efa(0x2c9)](_0xf6c77d)||this['_scheduleSaving'](_0xf6c77d);}[_0x57f41f(0x513)](_0x44e338){const _0x1a41a7=_0x57f41f,_0x3599f2=this[_0x1a41a7(0x1fc)]();_0x3599f2===0x0?this[_0x1a41a7(0x4f2)](_0x44e338):this[_0x1a41a7(0x38c)][_0x1a41a7(0x20b)](_0x44e338,setTimeout(()=>this[_0x1a41a7(0x4f2)](_0x44e338),_0x3599f2));}[_0x57f41f(0x1fc)](){const _0x5064d4=_0x57f41f;var _0x458b87;return(_0x458b87=this['_configService'][_0x5064d4(0x37f)](pt))!=null?_0x458b87:ss;}[_0x57f41f(0x4f2)](_0x1ba67d){const _0x138f04=_0x57f41f,_0x5bbd81=this['_saveTaskMap']['get'](_0x1ba67d);return _0x5bbd81!==void 0x0&&window['clearTimeout'](_0x5bbd81),this['_localStorageService']['setItem'](it(_0x1ba67d),this[_0x138f04(0x3ac)]['get'](_0x1ba67d))[_0x138f04(0x407)](()=>this['_saveTaskMap'][_0x138f04(0x3e0)](_0x1ba67d));}async[_0x57f41f(0x4ad)](){const _0x2abf18=_0x57f41f,_0x107ea9=[];this[_0x2abf18(0x38c)][_0x2abf18(0x50c)]((_0x47b467,_0xdbd431)=>{const _0x24566b=_0x2abf18;window[_0x24566b(0x509)](_0x47b467),_0x107ea9[_0x24566b(0x2d0)](this['_saveCache'](_0xdbd431)['then'](()=>{const _0x2236b5=_0x24566b;this[_0x2236b5(0x38c)][_0x2236b5(0x3e0)](_0xdbd431);}));}),await Promise[_0x2abf18(0x38d)](_0x107ea9);}[_0x57f41f(0x2d4)](){const _0x420c2c=_0x57f41f;this[_0x420c2c(0x1e2)](this[_0x420c2c(0x270)][_0x420c2c(0x4c6)](()=>{const _0x53d20e=_0x420c2c;if(this[_0x53d20e(0x38c)][_0x53d20e(0x3f1)])return this[_0x53d20e(0x3c6)]['t'](_0x53d20e(0x3c0));}));}},exports[_0x57f41f(0x4a8)]=Ns([ce(0x0,a[_0x57f41f(0x435)]),ce(0x1,a[_0x57f41f(0x549)]),ce(0x2,A[_0x57f41f(0x3e8)]),ce(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),ce(0x4,a['Inject'](_[_0x57f41f(0x441)]))],exports[_0x57f41f(0x4a8)]);function it(_0x2d97f6){const _0x1cd4a3=_0x57f41f;return _0x1cd4a3(0x46e)+_0x2d97f6;}var Ms=Object[_0x57f41f(0x522)],As=Object['getOwnPropertyDescriptor'],Ls=(_0x2ac897,_0x526e5f,_0x2b72be,_0xb39d75)=>{for(var _0x9bdfe9=_0xb39d75>0x1?void 0x0:_0xb39d75?As(_0x526e5f,_0x2b72be):_0x526e5f,_0x394c02=_0x2ac897['length']-0x1,_0x11c769;_0x394c02>=0x0;_0x394c02--)(_0x11c769=_0x2ac897[_0x394c02])&&(_0x9bdfe9=(_0xb39d75?_0x11c769(_0x526e5f,_0x2b72be,_0x9bdfe9):_0x11c769(_0x9bdfe9))||_0x9bdfe9);return _0xb39d75&&_0x9bdfe9&&Ms(_0x526e5f,_0x2b72be,_0x9bdfe9),_0x9bdfe9;},we=(_0x2a7a29,_0x2577f1)=>(_0x370ec0,_0x200052)=>_0x2577f1(_0x370ec0,_0x200052,_0x2a7a29);function js(_0x302022){const _0x48db99=_0x57f41f,{unitID:_0x94c27a,mutations:_0x5e6b8f}=_0x302022;return{'unitId':_0x94c27a,'subUnitId':_0x5e6b8f[0x0]['params'][_0x48db99(0x3aa)]};}let Ie=class{constructor(_0x370002,_0x36385b,_0x2c0dce){const _0x428065=_0x57f41f;this[_0x428065(0x331)]=_0x370002,this[_0x428065(0x365)]=_0x36385b,this[_0x428065(0x517)]=_0x2c0dce;}[_0x57f41f(0x357)](_0xb92b08){const _0x549061=_0x57f41f;var _0x3db529,_0x35a11d,_0x9779de,_0xa145f3;const _0x1bafef=this[_0x549061(0x331)][_0x549061(0x31f)](C[_0x549061(0x428)]),{unitId:_0x463271,subUnitId:_0x5857b9}=js(_0xb92b08),_0x213411=_0x1bafef[_0x549061(0x3b4)](_0x463271)[_0x549061(0x3a7)](),_0xd99ec9=(_0x35a11d=(_0x3db529=this[_0x549061(0x517)][_0x549061(0x2fe)](_0x463271))==null?void 0x0:_0x3db529[_0x549061(0x2ad)]())==null?void 0x0:_0x35a11d[_0x549061(0x255)]();if(_0x213411[_0x549061(0x460)]===0x0||!_0x463271||!_0x5857b9)return;const _0x4204e5=[{'id':C[_0x549061(0x4a1)]['id'],'params':{'unitId':_0x463271,'subUnitId':_0xd99ec9,'selections':a['Tools'][_0x549061(0x4b2)](_0x213411)}}],_0x1a1ecf=this[_0x549061(0x365)]['transformMutationsWithChangeset'](_0xb92b08,_0x4204e5);if(!_[_0x549061(0x41b)](_0x1a1ecf))throw _0x1a1ecf[_0x549061(0x542)];const _0xa4be6f=(_0xa145f3=(_0x9779de=_0x1a1ecf['m2Prime'][0x0])==null?void 0x0:_0x9779de[_0x549061(0x15b)])==null?void 0x0:_0xa145f3[_0x549061(0x266)];Array[_0x549061(0x2f8)](_0xa4be6f)&&_0xa4be6f[_0x549061(0x460)]&&this[_0x549061(0x331)][_0x549061(0x31f)](a['ICommandService'])[_0x549061(0x449)](C[_0x549061(0x4a1)]['id'],{'unitId':_0x463271,'subUnitId':_0xd99ec9,'selections':_0xa4be6f});}};Ie=Ls([we(0x0,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),we(0x1,_[_0x57f41f(0x127)]),we(0x2,a[_0x57f41f(0x546)])],Ie);const Re=a[_0x57f41f(0x193)]('univer-pro.collaboration-client.single-active-unit-service');var Dt=(_0x5991dd=>(_0x5991dd[_0x5991dd[_0x57f41f(0x243)]=0x0]=_0x57f41f(0x243),_0x5991dd[_0x5991dd[_0x57f41f(0x53e)]=0x1]=_0x57f41f(0x53e),_0x5991dd))(Dt||{});const nt=0x7530,rt=_0x57f41f(0x289);class $s extends a[_0x57f41f(0x1b5)]{constructor(){const _0x1234d1=_0x57f41f;super(),u(this,'_id',a[_0x1234d1(0x25c)][_0x1234d1(0x465)]()),u(this,_0x1234d1(0x521),new Set()),u(this,'_unitOnClients',new Map()),u(this,'_heartbeatTimer',null),u(this,'_clearOtherTimers',new Map()),u(this,_0x1234d1(0x13a),new Map()),this[_0x1234d1(0x326)]();}[_0x57f41f(0x3a4)](){const _0x2c4fcc=_0x57f41f;super[_0x2c4fcc(0x3a4)](),this[_0x2c4fcc(0x34f)][_0x2c4fcc(0x50c)]((_0x2ca8de,_0x501e95)=>this['_removeClearOtherTimer'](_0x501e95)),this[_0x2c4fcc(0x293)]&&window['clearInterval'](this[_0x2c4fcc(0x293)]);}[_0x57f41f(0x1e1)](_0x182dcf){const _0xa604ce=_0x57f41f;return this[_0xa604ce(0x44b)](_0x182dcf)[_0xa604ce(0x4bb)](v[_0xa604ce(0x52b)]());}[_0x57f41f(0x208)](_0x2f3ea7){const _0x5b495b=_0x57f41f;this[_0x5b495b(0x521)][_0x5b495b(0x3f1)]===0x0&&this[_0x5b495b(0x492)](),this['_selfUnitIDs'][_0x5b495b(0x150)](_0x2f3ea7),this[_0x5b495b(0x203)]({'type':0x0,'memberID':this[_0x5b495b(0x372)],'unitIDs':[_0x2f3ea7],'isForwarded':!0x1});}[_0x57f41f(0x27e)](_0x535821){const _0x1f62e5=_0x57f41f;this['_selfUnitIDs'][_0x1f62e5(0x3e0)](_0x535821),this[_0x1f62e5(0x521)]['size']===0x0&&this[_0x1f62e5(0x293)]&&window[_0x1f62e5(0x4f8)](this[_0x1f62e5(0x293)]);}['_init'](){const _0x3498ef=_0x57f41f;this[_0x3498ef(0x1e2)](a[_0x3498ef(0x1f9)](v['fromEvent'](window,_0x3498ef(0x397))[_0x3498ef(0x3ee)](_0x343f09=>{const _0x41b08b=_0x3498ef;if(_0x343f09[_0x41b08b(0x2b3)]!==rt||!_0x343f09[_0x41b08b(0x4bd)])return;const _0x39c9ae=JSON[_0x41b08b(0x1a1)](_0x343f09[_0x41b08b(0x4bd)]);this[_0x41b08b(0x440)](_0x39c9ae);}))),window[_0x3498ef(0x37b)](_0x3498ef(0x3b7),()=>this['_send']({'type':0x1,'memberID':this[_0x3498ef(0x372)],'unitIDs':Array['from'](this[_0x3498ef(0x521)])}));}[_0x57f41f(0x440)](_0x1fdb51){const _0x55e999=_0x57f41f;switch(_0x1fdb51[_0x55e999(0x221)]){case 0x0:this['_handleJoinEvent'](_0x1fdb51);break;case 0x1:this['_handleLeaveEvent'](_0x1fdb51);break;case 0x2:this[_0x55e999(0x30e)](_0x1fdb51);break;}}[_0x57f41f(0x3c9)](_0x28f43e){const _0x5cbf35=_0x57f41f,{unitIDs:_0x5af215,memberID:_0xbf9035,isForwarded:_0x5003ff}=_0x28f43e;_0x5af215[_0x5cbf35(0x50c)](_0xd2ac58=>{const _0x1d3012=_0x5cbf35;if(!_0x5003ff&&this[_0x1d3012(0x242)][_0x1d3012(0x2c9)](_0xd2ac58)&&this[_0x1d3012(0x44b)](_0xd2ac58)['next'](0x1),!this['_unitOnClients']['has'](_0xd2ac58)||!this['_unitOnClients'][_0x1d3012(0x31f)](_0xd2ac58)[_0x1d3012(0x2c9)](_0xbf9035)){const _0x349675=this[_0x1d3012(0x242)][_0x1d3012(0x31f)](_0xd2ac58)||new Set();_0x349675[_0x1d3012(0x150)](_0xbf9035),this[_0x1d3012(0x242)][_0x1d3012(0x20b)](_0xd2ac58,_0x349675),this[_0x1d3012(0x311)](_0xbf9035);}}),_0x5003ff||this[_0x5cbf35(0x203)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5cbf35(0x521)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x7cc3a7){const _0x15cb8c=_0x57f41f;this[_0x15cb8c(0x3bd)](_0x7cc3a7);const _0x2234ec=window[_0x15cb8c(0x540)](()=>{const _0x531e8b=_0x15cb8c;this['_unitOnClients'][_0x531e8b(0x50c)](_0x1509d4=>{const _0x50fecc=_0x531e8b;_0x1509d4[_0x50fecc(0x3e0)](_0x7cc3a7);});},nt*0x2);this[_0x15cb8c(0x34f)][_0x15cb8c(0x20b)](_0x7cc3a7,_0x2234ec);}['_removeClearOtherTimer'](_0x5bf5d6){const _0x24c1ae=_0x57f41f;if(this[_0x24c1ae(0x34f)][_0x24c1ae(0x2c9)](_0x5bf5d6)){const _0x235e53=this[_0x24c1ae(0x34f)][_0x24c1ae(0x31f)](_0x5bf5d6);_0x235e53&&window[_0x24c1ae(0x509)](_0x235e53),this['_clearOtherTimers']['set'](_0x5bf5d6,null);}}[_0x57f41f(0x3ec)](_0x29b1bc){const _0x1f1a5e=_0x57f41f,{memberID:_0x25dd23,unitIDs:_0x5b550d}=_0x29b1bc;_0x5b550d[_0x1f1a5e(0x50c)](_0x19ede2=>{const _0x60ac05=_0x1f1a5e;var _0x10b212;const _0x5d899b=this[_0x60ac05(0x242)][_0x60ac05(0x31f)](_0x19ede2);_0x5d899b&&(_0x5d899b[_0x60ac05(0x3e0)](_0x25dd23),(_0x10b212=this[_0x60ac05(0x44b)](_0x19ede2))==null||_0x10b212[_0x60ac05(0x49c)](_0x5d899b[_0x60ac05(0x3f1)]===0x0?0x0:0x1));}),this[_0x1f1a5e(0x3bd)](_0x25dd23);}[_0x57f41f(0x30e)](_0x2f8de6){const _0x13bafc=_0x57f41f;this[_0x13bafc(0x311)](_0x2f8de6[_0x13bafc(0x20c)]);}[_0x57f41f(0x203)](_0x5be66d){const _0x56a1ea=_0x57f41f;localStorage['setItem'](rt,JSON[_0x56a1ea(0x3bc)](_0x5be66d));}['_scheduleHeartbeat'](){const _0x1b7a2e=_0x57f41f;this[_0x1b7a2e(0x293)]=window[_0x1b7a2e(0x4f7)](()=>{const _0x52d242=_0x1b7a2e;this[_0x52d242(0x203)]({'type':0x2,'memberID':this[_0x52d242(0x372)]});},nt);}[_0x57f41f(0x44b)](_0x2618f0){const _0x35ccc1=_0x57f41f;return this['_unitStatus']['has'](_0x2618f0)||this[_0x35ccc1(0x13a)][_0x35ccc1(0x20b)](_0x2618f0,new v[(_0x35ccc1(0x3ab))](0x0)),this[_0x35ccc1(0x13a)][_0x35ccc1(0x31f)](_0x2618f0);}}function yt(_0x29bc4e){const _0x387eca=_0x57f41f;let _0x190c38='';for(const _0x1728cb of _0x29bc4e){const {startOffset:_0x89fad4,endOffset:_0x4f7fa2,isActive:_0x5b366f}=_0x1728cb;_0x190c38[_0x387eca(0x460)]&&(_0x190c38+=','),_0x190c38+=_0x89fad4+':'+_0x4f7fa2+':'+(_0x5b366f?'1':'0');}return _0x190c38;}function Hs(_0x11928f){const _0x3f647a=_0x57f41f,_0x1b58b7=_0x11928f[_0x3f647a(0x309)](','),_0x2a65b=[];for(const _0x32faf2 of _0x1b58b7){const [_0x3266d1,_0x56ecf0,_0x5998be]=_0x32faf2[_0x3f647a(0x309)](':');_0x2a65b['push']({'startOffset':Number(_0x3266d1),'endOffset':Number(_0x56ecf0),'collapsed':_0x3266d1===_0x56ecf0,'isActive':_0x5998be==='1'});}return _0x2a65b['some'](_0x4fb40c=>_0x4fb40c[_0x3f647a(0x4ef)])||(_0x2a65b[0x0][_0x3f647a(0x4ef)]=!0x0),_0x2a65b;}class qe extends a['RxDisposable']{constructor(){const _0x2361b5=_0x57f41f;super(...arguments),u(this,_0x2361b5(0x2b5),new v['BehaviorSubject'](null)),u(this,'collabCursorState$',this[_0x2361b5(0x2b5)][_0x2361b5(0x41e)]());}['syncEditingCollabCursor'](_0x56fb62){const _0x2fd018=_0x57f41f,{unitID:_0xff3b9f,memberID:_0x1140f2,textRanges:_0x55ef39}=_0x56fb62,_0x123b41=yt(_0x55ef39),_0xf71e71={'unitID':_0xff3b9f,'memberID':_0x1140f2,'selection':_0x123b41};this[_0x2fd018(0x2b5)][_0x2fd018(0x49c)](_0xf71e71);}}var xs=Object[_0x57f41f(0x522)],ks=Object[_0x57f41f(0x191)],Bs=(_0x1506b5,_0x5e58e8,_0x37ff0f,_0x5c48f3)=>{const _0x17e1de=_0x57f41f;for(var _0x4d6485=_0x5c48f3>0x1?void 0x0:_0x5c48f3?ks(_0x5e58e8,_0x37ff0f):_0x5e58e8,_0x2b904d=_0x1506b5[_0x17e1de(0x460)]-0x1,_0x4b867f;_0x2b904d>=0x0;_0x2b904d--)(_0x4b867f=_0x1506b5[_0x2b904d])&&(_0x4d6485=(_0x5c48f3?_0x4b867f(_0x5e58e8,_0x37ff0f,_0x4d6485):_0x4b867f(_0x4d6485))||_0x4d6485);return _0x5c48f3&&_0x4d6485&&xs(_0x5e58e8,_0x37ff0f,_0x4d6485),_0x4d6485;},ot=(_0xecab61,_0xac4d42)=>(_0x17beb5,_0xa85ea1)=>_0xac4d42(_0x17beb5,_0xa85ea1,_0xecab61);let pe=class{constructor(_0x2e2373,_0x1c7309){const _0x3f9797=_0x57f41f;this['_injector']=_0x2e2373,this[_0x3f9797(0x365)]=_0x1c7309;}['transformSelections'](_0x849c13){const _0x5c1a0b=_0x57f41f;var _0x55ecb7;const _0x82e810=this[_0x5c1a0b(0x331)][_0x5c1a0b(0x31f)](se[_0x5c1a0b(0x1d0)]),_0x336fed=(_0x55ecb7=_0x82e810[_0x5c1a0b(0x328)]())!=null?_0x55ecb7:[];if(_0x336fed[_0x5c1a0b(0x460)]===0x0)return;const _0x35f9ff=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x849c13[_0x5c1a0b(0x36e)],'actions':null,'textRanges':_0x336fed}}],_0x5c3efa=this[_0x5c1a0b(0x365)][_0x5c1a0b(0x323)](_0x849c13,_0x35f9ff);if(!_['isTransformMutationsWithChangesetSuccess'](_0x5c3efa))throw _0x5c3efa['error'];const _0x544c47=_0x5c3efa[_0x5c1a0b(0x353)][0x0][_0x5c1a0b(0x15b)][_0x5c1a0b(0x179)];Array[_0x5c1a0b(0x2f8)](_0x544c47)&&_0x544c47[_0x5c1a0b(0x460)]&&_0x82e810[_0x5c1a0b(0x485)](_0x544c47,!0x1);}};pe=Bs([ot(0x0,a['Inject'](a[_0x57f41f(0x410)])),ot(0x1,_[_0x57f41f(0x127)])],pe);const Vs=new Set([C[_0x57f41f(0x1c8)]['id']]);function at(_0x338d06,_0x4942f0,_0x5d8f85,_0x45ba5b,_0xa14841){const _0x10ed84=_0x57f41f;var _0x202ec2,_0x2a0e38,_0x17d430,_0x1099dd;const _0x4ae431=[];for(const _0x379452 of _0x338d06)if(Vs[_0x10ed84(0x2c9)](_0x379452['id'])){if(_0x4ae431[_0x10ed84(0x460)]>0x0)break;_0x4ae431[_0x10ed84(0x2d0)](_0x379452);break;}else _0x4ae431[_0x10ed84(0x2d0)](_0x379452);const _0x39690f=(_0x2a0e38=(_0x202ec2=_0xa14841[_0x10ed84(0x45c)]())==null?void 0x0:_0x202ec2[_0x10ed84(0x33a)])!=null?_0x2a0e38:_0x10ed84(0x1c9),_0x4f2279=(_0x1099dd=(_0x17d430=_0xa14841[_0x10ed84(0x45c)]())==null?void 0x0:_0x17d430[_0x10ed84(0x20c)])!=null?_0x1099dd:_0x10ed84(0x1c9);return{'changeset':{'unitID':_0x4942f0,'type':_['mapDocumentTypeToUniverType'](_0x5d8f85['getUnitType'](_0x4942f0)),'baseRev':_0x45ba5b['getCurrentRevOfUnit'](_0x4942f0),'revision':0x0,'userID':_0x39690f,'memberID':_0x4f2279,'mutations':_0x4ae431},'pendingMutations':_0x338d06['slice'](_0x4ae431[_0x10ed84(0x460)])};}function Ws(_0x40ec11,_0x42c869,_0x34fe08,_0x16f2be,_0x574318){const _0x35866d=_0x57f41f;var _0x13ee60,_0x1ca8d6,_0x32d78d,_0x121d98;const _0x3341cc=[_0x40ec11[_0x35866d(0x545)]((_0x432f39,_0xccc0d7)=>{const _0x597e07=_0x35866d;var _0x5b49d3;const {id:_0x11a257}=_0x432f39,{id:_0x420fc6,type:_0x3b9ca3}=_0xccc0d7,_0x39c0ad=(_0x5b49d3=_0x432f39[_0x597e07(0x15b)])!=null?_0x5b49d3:{'actions':null},_0x2fe971=_0xccc0d7[_0x597e07(0x15b)];if(_0x11a257&&_0x11a257!==_0x420fc6)throw new Error(_0x597e07(0x138)+_0x11a257+_0x597e07(0x515)+_0x420fc6+'.');return{..._0x432f39,'id':_0x420fc6,'type':_0x3b9ca3,'params':{'unitId':_0x2fe971[_0x597e07(0x1d1)],'textRanges':_0x2fe971[_0x597e07(0x179)],'actions':a[_0x597e07(0x13b)][_0x597e07(0x139)](_0x39c0ad[_0x597e07(0x15e)],_0x2fe971[_0x597e07(0x15e)])}};},{})],_0x1d5245=(_0x1ca8d6=(_0x13ee60=_0x574318[_0x35866d(0x45c)]())==null?void 0x0:_0x13ee60['userID'])!=null?_0x1ca8d6:'unknown',_0x6ae38c=(_0x121d98=(_0x32d78d=_0x574318[_0x35866d(0x45c)]())==null?void 0x0:_0x32d78d[_0x35866d(0x20c)])!=null?_0x121d98:_0x35866d(0x1c9);return{'changeset':{'unitID':_0x42c869,'type':_[_0x35866d(0x2f1)](_0x34fe08[_0x35866d(0x276)](_0x42c869)),'baseRev':_0x16f2be[_0x35866d(0x52e)](_0x42c869),'revision':0x0,'userID':_0x1d5245,'memberID':_0x6ae38c,'mutations':_0x3341cc},'pendingMutations':[]};}const Fs={'id':C[_0x57f41f(0x52c)]['id'],'type':a[_0x57f41f(0x4a7)][_0x57f41f(0x385)],'params':{}};var Gs=Object['defineProperty'],Ys=Object[_0x57f41f(0x191)],z=(_0x4d0361,_0x12e9f2,_0x26851d,_0x136895)=>{const _0x42a162=_0x57f41f;for(var _0x42b732=_0x136895>0x1?void 0x0:_0x136895?Ys(_0x12e9f2,_0x26851d):_0x12e9f2,_0x258b69=_0x4d0361[_0x42a162(0x460)]-0x1,_0x220ac2;_0x258b69>=0x0;_0x258b69--)(_0x220ac2=_0x4d0361[_0x258b69])&&(_0x42b732=(_0x136895?_0x220ac2(_0x12e9f2,_0x26851d,_0x42b732):_0x220ac2(_0x42b732))||_0x42b732);return _0x136895&&_0x42b732&&Gs(_0x12e9f2,_0x26851d,_0x42b732),_0x42b732;},m=(_0x404bf3,_0x193019)=>(_0x57979b,_0x3decc3)=>_0x193019(_0x57979b,_0x3decc3,_0x404bf3),U=(_0x3729dd=>(_0x3729dd[_0x57f41f(0x233)]=_0x57f41f(0x217),_0x3729dd['SYNCED']='synced',_0x3729dd[_0x57f41f(0x508)]=_0x57f41f(0x305),_0x3729dd[_0x57f41f(0x265)]='awaiting',_0x3729dd[_0x57f41f(0x2a0)]=_0x57f41f(0x3fa),_0x3729dd[_0x57f41f(0x2d9)]=_0x57f41f(0x454),_0x3729dd[_0x57f41f(0x21c)]=_0x57f41f(0x22a),_0x3729dd[_0x57f41f(0x2d2)]=_0x57f41f(0x341),_0x3729dd))(U||{});class J{constructor(_0xd5f1f9,_0x26d8b9,_0x268aa5,_0x243b0b,_0x5abe9d,_0x10e54c,_0x119b03,_0x5a8009,_0x320d20){const _0x2be726=_0x57f41f;u(this,'_awaitingChangeset',null),u(this,'_pendingMutations',[]),(this['unitID']=_0xd5f1f9,this['type']=_0x26d8b9,this['_handler']=_0x5abe9d,this['_commandService']=_0x10e54c,this['_undoRedoService']=_0x119b03,this['_revisionService']=_0x5a8009,this[_0x2be726(0x190)]=_0x320d20,this[_0x2be726(0x47c)]=_0x268aa5,this[_0x2be726(0x248)]=_0x243b0b);}[_0x57f41f(0x54e)](_0x3f1457){const _0x337a5a=_0x57f41f,_0x51d24f=this[_0x337a5a(0x51e)]['getCurrentRevOfUnit'](this[_0x337a5a(0x36e)]);return _0x3f1457[_0x337a5a(0x308)]>_0x51d24f+0x1?(this[_0x337a5a(0x1e5)][_0x337a5a(0x52f)]({'from':_0x51d24f,'to':_0x3f1457[_0x337a5a(0x308)]-0x1}),!0x0):!0x1;}[_0x57f41f(0x1af)](_0x288275){const _0x18436e=_0x57f41f;this[_0x18436e(0x27c)][_0x18436e(0x130)](this[_0x18436e(0x36e)],_0x288275);}[_0x57f41f(0x4cb)](_0x48ccfc){const _0x261097=_0x57f41f;var _0x49a8c4,_0x18cfe3;(_0x18cfe3=(_0x49a8c4=this[_0x261097(0x1e5)])[_0x261097(0x230)])==null||_0x18cfe3[_0x261097(0x19d)](_0x49a8c4,_0x48ccfc);}[_0x57f41f(0x3d1)](_0x259bb4){const _0x1fdb8f=_0x57f41f;var _0x508329,_0x23c132;return(_0x23c132=(_0x508329=this['_handler'])[_0x1fdb8f(0x307)])==null?void 0x0:_0x23c132[_0x1fdb8f(0x19d)](_0x508329,_0x259bb4);}[_0x57f41f(0x194)](_0x7e5fec){const _0x44d6f7=_0x57f41f;var _0x37f8d3,_0x3eec2d,_0x37ad55;return(_0x37ad55=(_0x3eec2d=(_0x37f8d3=this[_0x44d6f7(0x1e5)])[_0x44d6f7(0x448)])==null?void 0x0:_0x3eec2d[_0x44d6f7(0x19d)](_0x37f8d3,_0x7e5fec))!=null?_0x37ad55:_0x7e5fec;}[_0x57f41f(0x21b)](_0x4f87eb){const _0x35c865=_0x57f41f;var _0x8ff8eb,_0x3fb9ad;if(this['type']===$[_0x35c865(0x1a7)]){const {unitID:_0x18c11f,mutations:_0x56de93,memberID:_0x2be62a}=_0x4f87eb,_0x33d146=_0x56de93[0x0][_0x35c865(0x15b)]['textRanges'];Array[_0x35c865(0x2f8)](_0x33d146)&&_0x33d146[_0x35c865(0x460)]>0x0&&((_0x3fb9ad=(_0x8ff8eb=this[_0x35c865(0x1e5)])['onSyncEditingCollabCursor'])==null||_0x3fb9ad['call'](_0x8ff8eb,{'unitID':_0x18c11f,'memberID':_0x2be62a,'textRanges':_0x33d146}));}}[_0x57f41f(0x26b)](){const _0x339a88=_0x57f41f;this[_0x339a88(0x190)]['updateOfflineData'](this[_0x339a88(0x36e)],this[_0x339a88(0x221)],this[_0x339a88(0x47c)],this['_pendingMutations']);}[_0x57f41f(0x2c1)](){const _0xafbf8e=_0x57f41f;return this[_0xafbf8e(0x51e)][_0xafbf8e(0x52e)](this[_0xafbf8e(0x36e)]);}[_0x57f41f(0x28b)](){const _0x196dce=_0x57f41f;this['_revisionService']['incrementRevOfUnit'](this[_0x196dce(0x36e)]);}[_0x57f41f(0x26a)](_0x372bca){const _0x25121c=_0x57f41f;var _0x2099ff;const _0x3559a2=this[_0x25121c(0x194)](_0x372bca),_0x42b00f=a[_0x25121c(0x476)](_0x3559a2['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x42b00f[_0x25121c(0x16c)])throw _0x42b00f[_0x25121c(0x542)]instanceof Error?_0x42b00f['error']:new Error((_0x2099ff=_0x42b00f[_0x25121c(0x542)])!=null?_0x2099ff:_0x25121c(0x348));this[_0x25121c(0x3d1)](_0x3559a2),this[_0x25121c(0x1af)](_0x372bca),this[_0x25121c(0x4cb)](_0x3559a2),this['_syncEditingCollabCursor'](_0x3559a2),this[_0x25121c(0x28b)]();}}let ie=class extends J{constructor(_0x5eb050,_0x4e3271,_0x3ed136,_0x2f06a7,_0x1f9aeb,_0x2ac52c,_0x2c31c7,_0x217ccf,_0x34856a,_0x505ad3){const _0x42f1c4=_0x57f41f;super(_0x5eb050,_0x4e3271,null,[],_0x3ed136,_0x217ccf,_0x2c31c7,_0x2f06a7,_0x1f9aeb),u(this,_0x42f1c4(0x2d7),_0x42f1c4(0x4d0)),(this[_0x42f1c4(0x331)]=_0x2ac52c,this[_0x42f1c4(0x181)]=_0x34856a,this[_0x42f1c4(0x365)]=_0x505ad3);}[_0x57f41f(0x4fa)](_0x23956c){const _0x4a9a95=_0x57f41f,_0x21af26=this[_0x4a9a95(0x331)][_0x4a9a95(0x4eb)](k,this[_0x4a9a95(0x36e)],this['type'],[_0x23956c],this[_0x4a9a95(0x1e5)]);return _0x21af26[_0x4a9a95(0x23a)](),_0x21af26['_updateLocalCache'](),_0x21af26;}['onRemoteChangeset'](_0x13233a){const _0x3f0272=_0x57f41f;if(this[_0x3f0272(0x54e)](_0x13233a))return this['_injector'][_0x3f0272(0x4eb)](x,this[_0x3f0272(0x36e)],this[_0x3f0272(0x221)],null,[],null,[_0x13233a],this[_0x3f0272(0x1e5)]);try{const _0x28963c=this[_0x3f0272(0x365)][_0x3f0272(0x323)](_0x13233a,[Fs]);if(_[_0x3f0272(0x41b)](_0x28963c)){const {c1Prime:_0x46c4ca}=_0x28963c;return this['_executeRemoteChangeset'](_0x46c4ca),this;}throw _0x28963c[_0x3f0272(0x542)];}catch(_0x382f94){return this['_logService'][_0x3f0272(0x542)](_0x382f94),this[_0x3f0272(0x32c)](!0x1);}}[_0x57f41f(0x32c)](_0x10ac23){const _0x199582=_0x57f41f;return this[_0x199582(0x331)]['createInstance'](F,this[_0x199582(0x36e)],this['type'],null,[],this['_handler'],_0x10ac23);}[_0x57f41f(0x13d)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x57f41f(0x4f9)](){const _0x258df3=_0x57f41f;return this['_injector'][_0x258df3(0x4eb)](G,this[_0x258df3(0x36e)],this[_0x258df3(0x221)],null,[],this[_0x258df3(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){const _0x1d329d=_0x57f41f;throw new Error(_0x1d329d(0x1cc));}['fetchMiss'](){const _0x37b1b0=_0x57f41f,_0x1e596c=this[_0x37b1b0(0x51e)]['getCurrentRevOfUnit'](this[_0x37b1b0(0x36e)]);return this[_0x37b1b0(0x1e5)][_0x37b1b0(0x52f)]({'from':_0x1e596c,'to':0x0}),this[_0x37b1b0(0x331)]['createInstance'](x,this[_0x37b1b0(0x36e)],this[_0x37b1b0(0x221)],null,[],null,[],this[_0x37b1b0(0x1e5)]);}};ie=z([m(0x3,a['Inject'](_[_0x57f41f(0x441)])),m(0x4,a['Inject'](exports[_0x57f41f(0x4a8)])),m(0x5,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),m(0x6,a[_0x57f41f(0x24e)]),m(0x7,a[_0x57f41f(0x178)]),m(0x8,a[_0x57f41f(0x162)]),m(0x9,_[_0x57f41f(0x127)])],ie);let k=class extends J{constructor(_0x282731,_0x597e6d,_0x2302f1,_0x1db769,_0x42d9f1,_0x1fe881,_0x35646a,_0x5f3da2,_0x111d89,_0x1a428b,_0x47e9ca,_0x320bc0,_0x5537f0,_0x278537){const _0x2f9c7f=_0x57f41f;super(_0x282731,_0x597e6d,null,_0x2302f1,_0x1db769,_0x1a428b,_0x278537,_0x1fe881,_0x35646a),u(this,_0x2f9c7f(0x2d7),_0x2f9c7f(0x305)),u(this,_0x2f9c7f(0x25b),null),u(this,_0x2f9c7f(0x35d),null),(this[_0x2f9c7f(0x331)]=_0x42d9f1,this['_memberService']=_0x5f3da2,this[_0x2f9c7f(0x181)]=_0x111d89,this['_configService']=_0x47e9ca,this['_transformService']=_0x320bc0,this['_univerInstanceService']=_0x5537f0);}[_0x57f41f(0x4fa)](_0x308f24){const _0x7c0813=_0x57f41f;return this[_0x7c0813(0x248)][_0x7c0813(0x2d0)](_0x308f24),this[_0x7c0813(0x26b)](),this;}[_0x57f41f(0x4a5)](_0xed48d6){const _0x93bbcd=_0x57f41f;if(this['_checkMissing'](_0xed48d6))return this['_clearScheduledTask'](),this[_0x93bbcd(0x331)][_0x93bbcd(0x4eb)](x,this[_0x93bbcd(0x36e)],this[_0x93bbcd(0x221)],null,this[_0x93bbcd(0x248)],null,[_0xed48d6],this['_handler']);try{const _0x2ae520=this[_0x93bbcd(0x365)]['transformMutationsWithChangeset'](_0xed48d6,this['_pendingMutations']);if(_[_0x93bbcd(0x41b)](_0x2ae520)){const {c1Prime:_0x370c66,m2Prime:_0x187e27}=_0x2ae520;this[_0x93bbcd(0x26a)](_0x370c66);const _0x33aea3=this[_0x93bbcd(0x331)]['createInstance'](k,this['unitID'],this[_0x93bbcd(0x221)],_0x187e27,this[_0x93bbcd(0x1e5)]);return this['_clearScheduledTask'](),_0x33aea3[_0x93bbcd(0x23a)](this[_0x93bbcd(0x25b)]?Math[_0x93bbcd(0x1d5)](0x0,new Date()[_0x93bbcd(0x2c2)]()-this[_0x93bbcd(0x25b)]):this[_0x93bbcd(0x302)]()),_0x33aea3;}throw _0x2ae520['error'];}catch(_0x198c72){return this[_0x93bbcd(0x181)][_0x93bbcd(0x542)](_0x198c72),this[_0x93bbcd(0x32c)](!0x1);}}[_0x57f41f(0x13d)](){const _0x18c4b2=_0x57f41f;throw new Error(_0x18c4b2(0x1e9));}[_0x57f41f(0x2bd)](){const _0x9afcd5=_0x57f41f;throw new Error(_0x9afcd5(0x527));}[_0x57f41f(0x4f9)](){const _0x597885=_0x57f41f;return this[_0x597885(0x31c)](),this[_0x597885(0x331)][_0x597885(0x4eb)](G,this[_0x597885(0x36e)],this[_0x597885(0x221)],null,this[_0x597885(0x248)],this[_0x597885(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}['_schedule'](_0x6f369b){const _0x49b7fc=_0x57f41f,_0x220b2e=_0x6f369b!=null?_0x6f369b:this[_0x49b7fc(0x302)]();this[_0x49b7fc(0x25b)]=new Date()[_0x49b7fc(0x2c2)](),this[_0x49b7fc(0x35d)]=window['setTimeout'](()=>{const _0x647cb0=_0x49b7fc;this['_clearScheduledTask']();let _0x253036=null;switch(this[_0x647cb0(0x221)]){case $['UNIVER_SHEET']:{_0x253036=at(this[_0x647cb0(0x248)],this['unitID'],this[_0x647cb0(0x131)],this[_0x647cb0(0x51e)],this[_0x647cb0(0x384)]);break;}case $[_0x647cb0(0x1a7)]:{this[_0x647cb0(0x248)][_0x647cb0(0x394)](_0x14eb3b=>_0x14eb3b['id']===se[_0x647cb0(0x286)]['id'])?_0x253036=Ws(this['_pendingMutations'],this[_0x647cb0(0x36e)],this[_0x647cb0(0x131)],this[_0x647cb0(0x51e)],this['_memberService']):_0x253036=at(this[_0x647cb0(0x248)],this[_0x647cb0(0x36e)],this[_0x647cb0(0x131)],this['_revisionService'],this[_0x647cb0(0x384)]);break;}default:throw new Error(_0x647cb0(0x4fd)+this[_0x647cb0(0x221)]+_0x647cb0(0x1c0));}const {changeset:_0x2c7a07,pendingMutations:_0x2667f8}=_0x253036;this[_0x647cb0(0x1e5)][_0x647cb0(0x188)](_0x2c7a07);const _0x5d5b5e=_0x2667f8[_0x647cb0(0x460)]?this['_injector'][_0x647cb0(0x4eb)](B,this['unitID'],this['type'],_0x2c7a07,_0x2667f8,this[_0x647cb0(0x1e5)]):this[_0x647cb0(0x331)][_0x647cb0(0x4eb)](W,this[_0x647cb0(0x36e)],this['type'],_0x2c7a07,this['_handler']);_0x5d5b5e[_0x647cb0(0x26b)](),this[_0x647cb0(0x1e5)][_0x647cb0(0x396)](this,_0x5d5b5e);},_0x220b2e);}['_getSendChangesetTimeout'](){const _0x9ef613=_0x57f41f;var _0x48d478;const _0x423115=this[_0x9ef613(0x172)][_0x9ef613(0x37f)](L);return(_0x48d478=_0x423115==null?void 0x0:_0x423115['sendChangesetTimeout'])!=null?_0x48d478:Jt;}[_0x57f41f(0x518)](){const _0x1c983e=_0x57f41f;throw new Error(_0x1c983e(0x4f3));}[_0x57f41f(0x31c)](){const _0x296341=_0x57f41f;this[_0x296341(0x35d)]!=null&&(clearTimeout(this[_0x296341(0x35d)]),this['_sendingTimer']=null);}[_0x57f41f(0x32c)](_0x38927e){const _0x37970a=_0x57f41f;return this[_0x37970a(0x31c)](),this[_0x37970a(0x331)][_0x37970a(0x4eb)](F,this[_0x37970a(0x36e)],this[_0x37970a(0x221)],null,this['_pendingMutations'],this[_0x37970a(0x1e5)],_0x38927e);}};k=z([m(0x4,a[_0x57f41f(0x1ec)](a['Injector'])),m(0x5,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),m(0x6,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x4a8)])),m(0x7,a['Inject'](q)),m(0x8,a[_0x57f41f(0x162)]),m(0x9,a[_0x57f41f(0x178)]),m(0xa,a[_0x57f41f(0x435)]),m(0xb,_[_0x57f41f(0x127)]),m(0xc,a['IUniverInstanceService']),m(0xd,a[_0x57f41f(0x24e)])],k);let W=class extends J{constructor(_0x33d348,_0x116188,_0x514e9f,_0x2cb3d8,_0x403c46,_0x4f37cc,_0x5cdada,_0x5de137,_0xf57d75,_0x962e92,_0x210fe6){const _0xc6a19f=_0x57f41f;super(_0x33d348,_0x116188,_0x514e9f,[],_0x2cb3d8,_0x5de137,_0x210fe6,_0x4f37cc,_0x5cdada),u(this,_0xc6a19f(0x2d7),'awaiting'),(this['_injector']=_0x403c46,this[_0xc6a19f(0x181)]=_0xf57d75,this[_0xc6a19f(0x365)]=_0x962e92);}[_0x57f41f(0x4fa)](_0xec2fb9){const _0xffe252=_0x57f41f,_0x2e7afa=this[_0xffe252(0x331)][_0xffe252(0x4eb)](B,this[_0xffe252(0x36e)],this[_0xffe252(0x221)],this[_0xffe252(0x47c)],[_0xec2fb9],this[_0xffe252(0x1e5)]);return _0x2e7afa[_0xffe252(0x26b)](),_0x2e7afa;}[_0x57f41f(0x4a5)](_0x371365){const _0x559c7b=_0x57f41f;if(this[_0x559c7b(0x54e)](_0x371365))return this[_0x559c7b(0x331)][_0x559c7b(0x4eb)](x,this[_0x559c7b(0x36e)],this[_0x559c7b(0x221)],this[_0x559c7b(0x47c)],[],null,[_0x371365],this[_0x559c7b(0x1e5)]);try{const _0x3357c4=this[_0x559c7b(0x365)]['transformChangesets']([_0x371365],[this[_0x559c7b(0x47c)]],!0x1);if(_[_0x559c7b(0x45f)](_0x3357c4)){const {c1Prime:_0x2c2e2e,c2Prime:_0x247429}=_0x3357c4;this[_0x559c7b(0x26a)](_0x2c2e2e[0x0]),_0x247429[0x0]['baseRev']=this[_0x559c7b(0x2c1)]();const _0x38f686=this['_injector']['createInstance'](W,this['unitID'],this[_0x559c7b(0x221)],_0x247429[0x0],this[_0x559c7b(0x1e5)]);return _0x38f686[_0x559c7b(0x26b)](),_0x38f686;}return this[_0x559c7b(0x32c)](!0x1);}catch(_0x109e6f){return this[_0x559c7b(0x181)][_0x559c7b(0x542)](_0x109e6f),this[_0x559c7b(0x32c)](!0x1);}}[_0x57f41f(0x13d)](_0x24c724){const _0x2c5068=_0x57f41f,_0x489872=this[_0x2c5068(0x51e)][_0x2c5068(0x52e)](this[_0x2c5068(0x36e)]);if(_0x24c724[_0x2c5068(0x308)]<_0x489872-0x1)return this;if(this[_0x2c5068(0x54e)](_0x24c724))return this[_0x2c5068(0x331)][_0x2c5068(0x4eb)](x,this[_0x2c5068(0x36e)],this[_0x2c5068(0x221)],null,[],this['_awaitingChangeset'],[],this[_0x2c5068(0x1e5)]);this['_incrementRevisionNumber']();const _0x57e2c6=this['_injector']['createInstance'](ie,this['unitID'],this[_0x2c5068(0x221)],this[_0x2c5068(0x1e5)]);return _0x57e2c6[_0x2c5068(0x26b)](),_0x57e2c6;}[_0x57f41f(0x2bd)](_0x1655e2){const _0x1b2e98=_0x57f41f;return this[_0x1b2e98(0x32c)](!!(_0x1655e2!=null&&_0x1655e2[_0x1b2e98(0x245)]));}[_0x57f41f(0x4f9)](){const _0x5ad230=_0x57f41f;return this[_0x5ad230(0x331)][_0x5ad230(0x4eb)](G,this[_0x5ad230(0x36e)],this['type'],this[_0x5ad230(0x47c)],[],this[_0x5ad230(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){const _0x27ad65=_0x57f41f;this[_0x27ad65(0x1e5)][_0x27ad65(0x188)](this[_0x27ad65(0x47c)]);}['_onConflict'](_0x300098){const _0x561d1b=_0x57f41f;return this[_0x561d1b(0x331)][_0x561d1b(0x4eb)](F,this[_0x561d1b(0x36e)],this[_0x561d1b(0x221)],this[_0x561d1b(0x47c)],[],this['_handler'],_0x300098);}};W=z([m(0x4,a['Inject'](a[_0x57f41f(0x410)])),m(0x5,a[_0x57f41f(0x1ec)](_['RevisionService'])),m(0x6,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),m(0x7,a['ICommandService']),m(0x8,a['ILogService']),m(0x9,_[_0x57f41f(0x127)]),m(0xa,a[_0x57f41f(0x24e)])],W);let B=class extends J{constructor(_0x1edb5b,_0x1667e1,_0x39c0be,_0x3e8dd3,_0x52ce90,_0x3fcfcf,_0x38a507,_0x53cb91,_0x4e6c29,_0x2906f4,_0x4b168b,_0x3acd3d){const _0x547aaf=_0x57f41f;super(_0x1edb5b,_0x1667e1,_0x39c0be,_0x3e8dd3,_0x52ce90,_0x4e6c29,_0x3acd3d,_0x38a507,_0x53cb91),u(this,_0x547aaf(0x2d7),_0x547aaf(0x3fa)),(this[_0x547aaf(0x331)]=_0x3fcfcf,this[_0x547aaf(0x181)]=_0x2906f4,this[_0x547aaf(0x365)]=_0x4b168b);}[_0x57f41f(0x4fa)](_0x326b99){const _0x38a0d2=_0x57f41f;return this[_0x38a0d2(0x248)]['push'](_0x326b99),this;}[_0x57f41f(0x4a5)](_0x2b4856){const _0x308538=_0x57f41f;if(this[_0x308538(0x54e)](_0x2b4856))return this[_0x308538(0x331)]['createInstance'](x,this[_0x308538(0x36e)],this[_0x308538(0x221)],this[_0x308538(0x47c)],this[_0x308538(0x248)],null,[_0x2b4856],this[_0x308538(0x1e5)]);try{const _0x2884e3=this[_0x308538(0x365)]['transformChangesets']([_0x2b4856],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x2884e3)){const {c1Prime:_0x4e8f39,c2Prime:_0x32e286}=_0x2884e3,_0x17ddbb=this[_0x308538(0x365)][_0x308538(0x323)](_0x4e8f39[0x0],this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x17ddbb)){const {c1Prime:_0x2667c9,m2Prime:_0x295722}=_0x17ddbb;return this['_executeRemoteChangeset'](_0x2667c9),_0x32e286[0x0]['baseRev']=this[_0x308538(0x2c1)](),this[_0x308538(0x331)][_0x308538(0x4eb)](B,this['unitID'],this[_0x308538(0x221)],_0x32e286[0x0],_0x295722,this[_0x308538(0x1e5)]);}throw _0x17ddbb[_0x308538(0x542)];}throw _0x2884e3['error'];}catch(_0x359d32){return this['_logService'][_0x308538(0x542)](_0x359d32),this[_0x308538(0x32c)](!0x1);}}['onRemoteAck'](_0x2eed54){const _0x4e7f09=_0x57f41f;if(this[_0x4e7f09(0x54e)](_0x2eed54))return this[_0x4e7f09(0x331)][_0x4e7f09(0x4eb)](x,this['unitID'],this[_0x4e7f09(0x221)],null,this[_0x4e7f09(0x248)],this[_0x4e7f09(0x47c)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x47b646=this[_0x4e7f09(0x331)]['createInstance'](k,this['unitID'],this[_0x4e7f09(0x221)],this['_pendingMutations'],this['_handler']);return _0x47b646[_0x4e7f09(0x23a)](),_0x47b646['_updateLocalCache'](),_0x47b646;}[_0x57f41f(0x2bd)](_0x332804){const _0x592a1a=_0x57f41f;return this[_0x592a1a(0x32c)](!!(_0x332804!=null&&_0x332804[_0x592a1a(0x245)]));}['toggleOffline'](){const _0x439669=_0x57f41f;return this[_0x439669(0x331)][_0x439669(0x4eb)](G,this[_0x439669(0x36e)],this['type'],this[_0x439669(0x47c)],this[_0x439669(0x248)],this[_0x439669(0x1e5)]);}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){const _0x2327e8=_0x57f41f;this[_0x2327e8(0x1e5)][_0x2327e8(0x188)](this[_0x2327e8(0x47c)]);}['_onConflict'](_0x5e2f33){const _0xa4da69=_0x57f41f;return this[_0xa4da69(0x331)][_0xa4da69(0x4eb)](F,this[_0xa4da69(0x36e)],this[_0xa4da69(0x221)],null,this[_0xa4da69(0x248)],this[_0xa4da69(0x1e5)],_0x5e2f33);}};B=z([m(0x5,a['Inject'](a[_0x57f41f(0x410)])),m(0x6,a['Inject'](_[_0x57f41f(0x441)])),m(0x7,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),m(0x8,a[_0x57f41f(0x178)]),m(0x9,a[_0x57f41f(0x162)]),m(0xa,_[_0x57f41f(0x127)]),m(0xb,a['IUndoRedoService'])],B);let F=class extends J{constructor(_0x3ffd26,_0x3559fe,_0x58b0e9,_0x54e771,_0x45b8ed,_0x18fcd3=!0x1,_0x3d2d60,_0x262828,_0x5e3b29,_0x1dcdb4,_0x363912,_0x41e953,_0x297d1d){const _0x42b150=_0x57f41f;super(_0x3ffd26,_0x3559fe,_0x58b0e9,_0x54e771,_0x45b8ed,_0x262828,_0x5e3b29,_0x363912,_0x1dcdb4),u(this,'status',_0x42b150(0x22a)),(this['_isPermissionRej']=_0x18fcd3,this['_permissionService']=_0x3d2d60,this['_localeService']=_0x41e953,this[_0x42b150(0x49a)]=_0x297d1d,this[_0x42b150(0x2c4)](),this[_0x42b150(0x532)](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x57f41f(0x13d)](){return this;}['onRemoteRej'](){return this;}[_0x57f41f(0x4f9)](){return this;}[_0x57f41f(0x3f6)](){return this;}[_0x57f41f(0x518)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x57f41f(0x532)](){const _0x715b51=_0x57f41f;this[_0x715b51(0x190)][_0x715b51(0x4dc)](this[_0x715b51(0x36e)],this[_0x715b51(0x221)],null,[]);}['_showConflictNotification'](){const _0x546599=_0x57f41f;this['_isPermissionRej']?this[_0x546599(0x49a)][_0x546599(0x375)]({'title':this[_0x546599(0x3c6)]['t'](_0x546599(0x22f)),'content':this['_localeService']['t']('permission.content'),'type':_0x546599(0x542),'duration':0x0}):this[_0x546599(0x49a)][_0x546599(0x375)]({'title':this[_0x546599(0x3c6)]['t'](_0x546599(0x3ae)),'content':this[_0x546599(0x3c6)]['t'](_0x546599(0x48c)),'type':_0x546599(0x542),'duration':0x0});}['_disableEditing'](){const _0x374d8e=_0x57f41f;this[_0x374d8e(0x1cd)][_0x374d8e(0x2c5)](new C[(_0x374d8e(0x4e0))](this[_0x374d8e(0x36e)])['id'],!0x1);}};F=z([m(0x6,a['Inject'](a[_0x57f41f(0x169)])),m(0x7,a[_0x57f41f(0x178)]),m(0x8,a['IUndoRedoService']),m(0x9,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x4a8)])),m(0xa,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),m(0xb,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),m(0xc,A[_0x57f41f(0x2d1)])],F);let G=class extends J{constructor(_0x1d9655,_0x186b0c,_0x2e690f,_0x21faf0,_0x2ae16a,_0x529cab,_0x4922c9,_0xb36dc8,_0x64bca,_0xfafd1a){const _0x295679=_0x57f41f;super(_0x1d9655,_0x186b0c,_0x2e690f,_0x21faf0,_0x2ae16a,_0x64bca,_0xfafd1a,_0x4922c9,_0xb36dc8),u(this,_0x295679(0x2d7),_0x295679(0x341)),this[_0x295679(0x331)]=_0x529cab;}['appendMutation'](_0x1a58bf){const _0x29c0af=_0x57f41f;return this[_0x29c0af(0x248)]['push'](_0x1a58bf),this[_0x29c0af(0x26b)](),this;}[_0x57f41f(0x4a5)](_0x4d22db){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x57f41f(0x13d)](){const _0x447b55=_0x57f41f;throw new Error(_0x447b55(0x45b));}[_0x57f41f(0x2bd)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x57f41f(0x4f9)](){return this;}[_0x57f41f(0x3f6)](){const _0x4e08da=_0x57f41f,{_injector:_0x9f61ab,_pendingMutations:_0x2fb764,_awaitingChangeset:_0xd47b47,unitID:_0x2b9d7d,_handler:_0x24760c,type:_0x22ceac}=this,_0x2ee948=Ut(_0x9f61ab,_0x2b9d7d,_0x22ceac,_0xd47b47,_0x2fb764,_0x24760c);return _0x2ee948 instanceof k?_0x2ee948[_0x4e08da(0x23a)]():(_0x2ee948 instanceof B||_0x2ee948 instanceof W)&&_0x2ee948[_0x4e08da(0x518)](),_0x2ee948;}[_0x57f41f(0x518)](){const _0x3d90e5=_0x57f41f;throw new Error(_0x3d90e5(0x499));}};G=z([m(0x5,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),m(0x6,a[_0x57f41f(0x1ec)](_['RevisionService'])),m(0x7,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x4a8)])),m(0x8,a['ICommandService']),m(0x9,a['IUndoRedoService'])],G);let x=class extends J{constructor(_0x55a952,_0x3f0e1b,_0xef856f,_0x484977,_0x4c9acc,_0x56a0cf,_0x2d5c05,_0x2228ec,_0x2e478a,_0x350f24,_0x4eb90c,_0x16bef1,_0x1bb9b2,_0x406131){const _0x49cdfd=_0x57f41f;super(_0x55a952,_0x3f0e1b,_0xef856f,_0x484977,_0x2d5c05,_0x16bef1,_0x1bb9b2,_0x2e478a,_0x350f24),u(this,'status',_0x49cdfd(0x454)),(this[_0x49cdfd(0x155)]=_0x4c9acc,this[_0x49cdfd(0x4f4)]=_0x56a0cf,this['_injector']=_0x2228ec,this[_0x49cdfd(0x181)]=_0x4eb90c,this[_0x49cdfd(0x365)]=_0x406131);}[_0x57f41f(0x356)](_0xfc562){const _0x3942b5=_0x57f41f;try{const _0x177887=[..._0xfc562,...this['_queuedRemoteChangesets']],_0x57dd61=[this['_awaitingChangeset']||this[_0x3942b5(0x155)]][_0x3942b5(0x222)](_0x8d76a9=>!!_0x8d76a9);let _0x1c3426,_0x433061;if(_0x57dd61[_0x3942b5(0x460)]){const _0x1d6a0b=this[_0x3942b5(0x365)]['transformChangesets'](_0x177887,_0x57dd61,!0x1);if(!_[_0x3942b5(0x45f)](_0x1d6a0b))throw _0x1d6a0b[_0x3942b5(0x542)];_0x1c3426=_0x1d6a0b[_0x3942b5(0x19c)],_0x433061=_0x1d6a0b[_0x3942b5(0x31e)];}else _0x1c3426=_0x177887,_0x433061=[];let _0x4fec02=this[_0x3942b5(0x248)];_0x1c3426[_0x3942b5(0x50c)](_0x184f0f=>{const _0x42c585=_0x3942b5;let _0x3cc82f;if(_0x4fec02['length']){const _0x5c6434=this['_transformService'][_0x42c585(0x323)](_0x184f0f,_0x4fec02);if(!_[_0x42c585(0x41b)](_0x5c6434))throw _0x5c6434['error'];_0x3cc82f=_0x5c6434['c1Prime'],_0x4fec02=_0x5c6434['m2Prime'];}else _0x3cc82f=_0x184f0f;this[_0x42c585(0x26a)](_0x3cc82f);}),this[_0x3942b5(0x155)]&&this['_incrementRevisionNumber'](),this[_0x3942b5(0x47c)]&&_0x433061[_0x3942b5(0x460)]&&(_0x433061[0x0]['baseRev']=this[_0x3942b5(0x2c1)]());let _0x580baa;if(this[_0x3942b5(0x47c)]&&_0x4fec02[_0x3942b5(0x460)]!==0x0)_0x580baa=this[_0x3942b5(0x331)]['createInstance'](B,this[_0x3942b5(0x36e)],this[_0x3942b5(0x221)],_0x433061[0x0],_0x4fec02,this[_0x3942b5(0x1e5)]);else{if(this[_0x3942b5(0x47c)]&&_0x4fec02[_0x3942b5(0x460)]===0x0)_0x433061[0x0]['baseRev']=this[_0x3942b5(0x2c1)](),_0x580baa=this[_0x3942b5(0x331)][_0x3942b5(0x4eb)](W,this[_0x3942b5(0x36e)],this[_0x3942b5(0x221)],_0x433061[0x0],this[_0x3942b5(0x1e5)]);else{if(_0x4fec02[_0x3942b5(0x460)]!==0x0){const _0x30d8d0=this[_0x3942b5(0x331)][_0x3942b5(0x4eb)](k,this['unitID'],this[_0x3942b5(0x221)],_0x4fec02,this[_0x3942b5(0x1e5)]);_0x30d8d0[_0x3942b5(0x23a)](),_0x580baa=_0x30d8d0;}else _0x580baa=this['_injector'][_0x3942b5(0x4eb)](ie,this[_0x3942b5(0x36e)],this[_0x3942b5(0x221)],this[_0x3942b5(0x1e5)]);}}return _0x580baa[_0x3942b5(0x26b)](),_0x580baa;}catch(_0x5c1087){return this[_0x3942b5(0x181)][_0x3942b5(0x542)](_0x3942b5(0x379),_0x3942b5(0x141),_0x5c1087),this[_0x3942b5(0x331)]['createInstance'](F,this['unitID'],this['type'],this[_0x3942b5(0x47c)],this[_0x3942b5(0x248)],this['_handler'],!0x1);}}['resend'](){const _0x24d2dc=_0x57f41f;throw new Error(_0x24d2dc(0x1f4));}[_0x57f41f(0x4fa)](_0x1596bd){const _0x3d691f=_0x57f41f;return this[_0x3d691f(0x248)][_0x3d691f(0x2d0)](_0x1596bd),this;}[_0x57f41f(0x4a5)](_0x484ebd){const _0x51bea1=_0x57f41f;return this[_0x51bea1(0x4f4)][_0x51bea1(0x2d0)](_0x484ebd),this;}['onRemoteAck'](_0x349532){const _0x501c1b=_0x57f41f;if(this['_awaitingChangeset'])return this[_0x501c1b(0x155)]=this[_0x501c1b(0x47c)],this[_0x501c1b(0x47c)]=null,this;throw new Error(_0x501c1b(0x1d8));}['onRemoteRej'](_0x51d1de){return this['_onConflict'](!!(_0x51d1de!=null&&_0x51d1de['isPermissionRej']));}[_0x57f41f(0x4f9)](){const _0x16eb04=_0x57f41f;return this[_0x16eb04(0x331)]['createInstance'](G,this['unitID'],this[_0x16eb04(0x221)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x16eb04(0x1e5)]);}['toggleOnline'](){return this;}[_0x57f41f(0x32c)](_0x508d5f){const _0x317a3e=_0x57f41f;return this[_0x317a3e(0x331)]['createInstance'](F,this[_0x317a3e(0x36e)],this[_0x317a3e(0x221)],this[_0x317a3e(0x47c)],this[_0x317a3e(0x248)],this[_0x317a3e(0x1e5)],_0x508d5f);}};x=z([m(0x7,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),m(0x8,a['Inject'](_['RevisionService'])),m(0x9,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),m(0xa,a[_0x57f41f(0x162)]),m(0xb,a[_0x57f41f(0x178)]),m(0xc,a[_0x57f41f(0x24e)]),m(0xd,_[_0x57f41f(0x127)])],x);function Ut(_0x1e1ba9,_0x26cb7f,_0x3919f4,_0x144e7f,_0x23cd0b,_0x33361f){const _0xb75605=_0x57f41f;return _0x144e7f&&_0x23cd0b[_0xb75605(0x460)]?_0x1e1ba9[_0xb75605(0x4eb)](B,_0x26cb7f,_0x3919f4,_0x144e7f,_0x23cd0b,_0x33361f):_0x144e7f?_0x1e1ba9[_0xb75605(0x4eb)](W,_0x26cb7f,_0x3919f4,_0x144e7f,_0x33361f):_0x23cd0b[_0xb75605(0x460)]?_0x1e1ba9[_0xb75605(0x4eb)](k,_0x26cb7f,_0x3919f4,_0x23cd0b,_0x33361f):_0x1e1ba9['createInstance'](ie,_0x26cb7f,_0x3919f4,_0x33361f);}var Ks=Object[_0x57f41f(0x522)],Xs=Object[_0x57f41f(0x191)],ze=(_0x4491f8,_0x4a0f20,_0x3e73e9,_0x3a0245)=>{for(var _0x509773=_0x3a0245>0x1?void 0x0:_0x3a0245?Xs(_0x4a0f20,_0x3e73e9):_0x4a0f20,_0x4ff453=_0x4491f8['length']-0x1,_0x53fbc6;_0x4ff453>=0x0;_0x4ff453--)(_0x53fbc6=_0x4491f8[_0x4ff453])&&(_0x509773=(_0x3a0245?_0x53fbc6(_0x4a0f20,_0x3e73e9,_0x509773):_0x53fbc6(_0x509773))||_0x509773);return _0x3a0245&&_0x509773&&Ks(_0x4a0f20,_0x3e73e9,_0x509773),_0x509773;},I=(_0x182b4f,_0x2a865b)=>(_0x4ce9fb,_0x308e23)=>_0x2a865b(_0x4ce9fb,_0x308e23,_0x182b4f);exports[_0x57f41f(0x500)]=class extends a[_0x57f41f(0x1c5)]{constructor(_0x276f3,_0x3aa281,_0x41fc0f,_0x12e99f,_0x3c35f9,_0x42739b,_0x2cf555,_0x5c7cb6,_0x167acf,_0x111666,_0x30da48,_0x1cb088,_0x2cb282){const _0x24cba7=_0x57f41f;super(),u(this,'_state$',new v[(_0x24cba7(0x3ab))](null)),u(this,_0x24cba7(0x17a),this[_0x24cba7(0x1ed)][_0x24cba7(0x41e)]()),u(this,_0x24cba7(0x3c2)),u(this,_0x24cba7(0x380),!0x1),u(this,_0x24cba7(0x16a),''),u(this,_0x24cba7(0x1e7),0x0),u(this,'status$',this[_0x24cba7(0x17a)]['pipe'](v[_0x24cba7(0x366)](_0x15305e=>_0x15305e?_0x15305e[_0x24cba7(0x2d7)]:U[_0x24cba7(0x2d2)]),v[_0x24cba7(0x320)](0x1))),u(this,'_transitionLocked',!0x1),u(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x276f3,this['session']=_0x3aa281,this[_0x24cba7(0x1b2)]=_0x41fc0f,this[_0x24cba7(0x331)]=_0x12e99f,this[_0x24cba7(0x190)]=_0x3c35f9,this['_compressMutationService']=_0x42739b,this[_0x24cba7(0x3c6)]=_0x2cf555,this[_0x24cba7(0x51e)]=_0x5c7cb6,this[_0x24cba7(0x181)]=_0x167acf,this[_0x24cba7(0x547)]=_0x111666,this[_0x24cba7(0x4b9)]=_0x30da48,this['_permissionService']=_0x1cb088,this['_singleActiveUnitService']=_0x2cb282);}get[_0x57f41f(0x1d9)](){const _0x6f1bf4=_0x57f41f;return this[_0x6f1bf4(0x3c2)];}async[_0x57f41f(0x350)](){const _0x14e2e5=_0x57f41f;if(this['state'])throw new Error(_0x14e2e5(0x1f8));await this['_init']();}[_0x57f41f(0x4f1)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x1b3c06=_0x1fa7;this[_0x1b3c06(0x380)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x57f41f(0x306)](_0x334bad){const _0x28a4f1=_0x57f41f;this[_0x28a4f1(0x3c2)]=_0x334bad,this[_0x28a4f1(0x1ed)][_0x28a4f1(0x49c)](_0x334bad);}async[_0x57f41f(0x326)](){const _0x3bde99=_0x57f41f;var _0x41c4ed;this[_0x3bde99(0x306)](await this['_createInitialState']()),this[_0x3bde99(0x452)]&&((_0x41c4ed=this[_0x3bde99(0x452)])==null||_0x41c4ed['editingUnit'](this['unitID']),this[_0x3bde99(0x1e2)](this[_0x3bde99(0x452)][_0x3bde99(0x1e1)](this[_0x3bde99(0x36e)])[_0x3bde99(0x3ee)](_0x535654=>{const _0x29bc27=_0x3bde99;this[_0x29bc27(0x181)][_0x29bc27(0x2e5)]('[CollaborationEntity]',_0x29bc27(0x40f),_0x535654),_0x535654===Dt[_0x29bc27(0x53e)]?(this['_messageService'][_0x29bc27(0x375)]({'content':this[_0x29bc27(0x3c6)]['t'](_0x29bc27(0x1d3)),'type':X[_0x29bc27(0x1cf)][_0x29bc27(0x1b4)]}),this['_permissionService']['updatePermissionPoint'](new C[(_0x29bc27(0x4e0))](this[_0x29bc27(0x36e)])['id'],!0x1)):this[_0x29bc27(0x1cd)][_0x29bc27(0x2c5)](new C[(_0x29bc27(0x4e0))](this['unitID'])['id'],!0x0);})));let _0x1cda47=!0x1;return this[_0x3bde99(0x1e2)](this['session'][_0x3bde99(0x1bd)][_0x3bde99(0x3ee)](_0x21171f=>{const _0x4241fd=_0x3bde99;_0x21171f===H[_0x4241fd(0x436)]?this[_0x4241fd(0x284)](_0x1cda47):_0x21171f===H[_0x4241fd(0x2d2)]&&(_0x1cda47=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x3bde99(0x3dd)][_0x3bde99(0x438)][_0x3bde99(0x3ee)](_0x5642b1=>{const _0x2cdaca=_0x3bde99;try{switch(_0x5642b1[_0x2cdaca(0x538)]){case _[_0x2cdaca(0x48e)]['NEW_CHANGESETS']:{this[_0x2cdaca(0x4c3)](_[_0x2cdaca(0x33b)](_0x5642b1[_0x2cdaca(0x198)]));break;}case _[_0x2cdaca(0x48e)][_0x2cdaca(0x269)]:{this['_onRemoteACK'](_0x5642b1[_0x2cdaca(0x198)]);break;}case _[_0x2cdaca(0x48e)]['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _[_0x2cdaca(0x48e)][_0x2cdaca(0x330)]:{this[_0x2cdaca(0x246)](_0x5642b1[_0x2cdaca(0x198)]['changesets'][_0x2cdaca(0x366)](_0x55ea7c=>_[_0x2cdaca(0x33b)](_0x55ea7c)));break;}case _['CollaborationEvent'][_0x2cdaca(0x4d2)]:this[_0x2cdaca(0x12f)]({'isPermissionRej':!0x0});}}catch(_0x5b0d03){throw console[_0x2cdaca(0x542)](_0x2cdaca(0x325),_0x5b0d03),_0x5b0d03;}})),this[_0x3bde99(0x3c2)];}[_0x57f41f(0x36f)](){const _0x405f60=_0x57f41f;this[_0x405f60(0x418)]=!0x1;}[_0x57f41f(0x370)](){const _0x98698d=_0x57f41f;if(this[_0x98698d(0x418)])throw new Error(_0x98698d(0x377));this[_0x98698d(0x418)]=!0x0;}['_onLocalMutation'](_0x21a6e9){const _0x339e8a=_0x57f41f;this[_0x339e8a(0x370)](),this[_0x339e8a(0x306)](this[_0x339e8a(0x3c2)][_0x339e8a(0x4fa)](_0x21a6e9)),this[_0x339e8a(0x36f)]();}[_0x57f41f(0x4c3)](_0x522ba9){const _0x4014e3=_0x57f41f;if(!(_0x522ba9['revision']<=this[_0x4014e3(0x51e)][_0x4014e3(0x52e)](this['unitID']))){if(this[_0x4014e3(0x380)]){this['_remoteChangesetQueue']['push'](_0x522ba9);return;}this[_0x4014e3(0x2bc)](_0x522ba9);}}['_exhaustRemoteChangesetQueue'](){const _0x276fbb=_0x57f41f;this[_0x276fbb(0x34e)]['forEach'](_0x28adad=>this[_0x276fbb(0x2bc)](_0x28adad)),this['_remoteChangesetQueue']=[];}[_0x57f41f(0x2bc)](_0x152827){const _0x3049d9=_0x57f41f,_0x5e24c7=this[_0x3049d9(0x314)][_0x3049d9(0x267)][_0x3049d9(0x296)](this[_0x3049d9(0x314)][_0x3049d9(0x267)][_0x3049d9(0x1e3)]()['COMPRESS_MUTATION_APPLY'])(_0x152827['mutations'],null)||_0x152827['mutations'],_0x3f0d72={..._0x152827,'mutations':_0x5e24c7};this['_lockTransition'](),this[_0x3049d9(0x306)](this[_0x3049d9(0x3c2)]['onRemoteChangeset'](_0x3f0d72)),this[_0x3049d9(0x36f)]();}[_0x57f41f(0x165)](_0x1d214a){const _0x5d2269=_0x57f41f;this[_0x5d2269(0x370)](),this[_0x5d2269(0x306)](this[_0x5d2269(0x3c2)][_0x5d2269(0x13d)](_0x1d214a)),this['_unlockTransition']();}[_0x57f41f(0x12f)](_0x48bbe7){const _0x3166f9=_0x57f41f;this['_lockTransition'](),this[_0x3166f9(0x306)](this[_0x3166f9(0x3c2)][_0x3166f9(0x2bd)](_0x48bbe7)),this['_unlockTransition']();}[_0x57f41f(0x246)](_0x2cf962){const _0x33cfe3=_0x57f41f;if(!(this[_0x33cfe3(0x3c2)]instanceof x))throw new TypeError(_0x33cfe3(0x3cd));const _0x1738cc=_0x2cf962[_0x33cfe3(0x366)](_0x16fcc3=>{const _0x2833c2=_0x33cfe3,_0x19fef8=this['_compressMutationService'][_0x2833c2(0x267)][_0x2833c2(0x296)](this[_0x2833c2(0x314)]['interceptor'][_0x2833c2(0x1e3)]()[_0x2833c2(0x471)])(_0x16fcc3[_0x2833c2(0x506)],null)||_0x16fcc3['mutations'];return{..._0x16fcc3,'mutations':_0x19fef8};});this[_0x33cfe3(0x370)](),this[_0x33cfe3(0x306)](this[_0x33cfe3(0x3c2)][_0x33cfe3(0x356)](_0x1738cc)),this['_unlockTransition']();}[_0x57f41f(0x49d)](){const _0x1ee596=_0x57f41f;this[_0x1ee596(0x370)](),this[_0x1ee596(0x306)](this[_0x1ee596(0x3c2)][_0x1ee596(0x4f9)]()),this[_0x1ee596(0x36f)]();}[_0x57f41f(0x284)](_0xd8fbd4=!0x1){const _0x33798d=_0x57f41f;this[_0x33798d(0x370)](),this[_0x33798d(0x306)](this[_0x33798d(0x3c2)][_0x33798d(0x3f6)]()),this[_0x33798d(0x36f)]();const _0x3882c3=this[_0x33798d(0x3c2)];_0xd8fbd4&&_0x3882c3 instanceof ie&&(this[_0x33798d(0x370)](),this['_updateState'](_0x3882c3[_0x33798d(0x516)]()),this[_0x33798d(0x36f)]());}async[_0x57f41f(0x29e)](){return new Promise(_0xd61655=>{const _0x41648a=_0x1fa7;this['session'][_0x41648a(0x1bd)][_0x41648a(0x4bb)](v[_0x41648a(0x241)](0x1))[_0x41648a(0x3ee)](async _0x1823e5=>{const _0x18ba7f=_0x41648a;_0xd61655(await this[_0x18ba7f(0x1c3)](_0x1823e5===H[_0x18ba7f(0x436)]));});});}[_0x57f41f(0x52a)](){const _0x46e88b=_0x57f41f,_0x234862=this[_0x46e88b(0x36e)];return{'onStateChange':(_0x5288fb,_0x5d9afe)=>{const _0x23e4a9=_0x46e88b;if(_0x5288fb!==this[_0x23e4a9(0x3c2)])throw new Error(_0x23e4a9(0x403)+_0x5288fb[_0x23e4a9(0x2d7)]+_0x23e4a9(0x1a8)+_0x5d9afe[_0x23e4a9(0x2d7)]+_0x23e4a9(0x288)+this[_0x23e4a9(0x3c2)][_0x23e4a9(0x2d7)]);this[_0x23e4a9(0x306)](_0x5d9afe);},'onSendChangeset':_0x551bef=>{const _0x102a55=_0x46e88b;_0x551bef[_0x102a55(0x31b)]||(_0x551bef['sid']=this[_0x102a55(0x16a)],_0x551bef['reqId']=++this[_0x102a55(0x1e7)]);const _0x470b0a={'eventID':_[_0x102a55(0x48e)][_0x102a55(0x389)],'data':{'unitID':_0x551bef['unitID'],'unitType':this[_0x102a55(0x1b2)],'changeset':_0x551bef,'memberID':this[_0x102a55(0x3dd)][_0x102a55(0x145)]()}};this[_0x102a55(0x3dd)][_0x102a55(0x47b)](_0x470b0a,this[_0x102a55(0x36e)]);},'onMissingChangesets':({from:_0x4fc8d7,to:_0x52db7b})=>{const _0x5698d5=_0x46e88b;this[_0x5698d5(0x181)]['debug']('[CollaborationEntity]',_0x5698d5(0x39f)+_0x4fc8d7+_0x5698d5(0x29f)+_0x52db7b);const _0x1cbf58={'eventID':_[_0x5698d5(0x48e)][_0x5698d5(0x27a)],'data':{'unitID':_0x234862,'unitType':this[_0x5698d5(0x1b2)],'from':_0x4fc8d7,'to':_0x52db7b}};this[_0x5698d5(0x3dd)]['send'](_0x1cbf58,this[_0x5698d5(0x36e)]);}};}async[_0x57f41f(0x1c3)](_0x597736){const _0x2ffafc=_0x57f41f;var _0x3e746d,_0x598800;const _0x8a62a9=await this[_0x2ffafc(0x190)][_0x2ffafc(0x1e0)](this[_0x2ffafc(0x36e)]),_0x22b7ea=(_0x3e746d=_0x8a62a9==null?void 0x0:_0x8a62a9['mutations'])!=null?_0x3e746d:[],_0xa1ee0f=(_0x598800=_0x8a62a9==null?void 0x0:_0x8a62a9[_0x2ffafc(0x47a)])!=null?_0x598800:null,_0x395430=!!(_0xa1ee0f!=null&&_0xa1ee0f[_0x2ffafc(0x31b)])&&!!(_0xa1ee0f!=null&&_0xa1ee0f['reqId']);this[_0x2ffafc(0x16a)]=_0x395430?_0xa1ee0f['sid']:Os(),this[_0x2ffafc(0x1e7)]=_0x395430?_0xa1ee0f[_0x2ffafc(0x40e)]:0x0;const _0x45a7cc=this[_0x2ffafc(0x36e)];try{this['_replayCachedMutations'](_0xa1ee0f,_0x22b7ea);}catch(_0xc4e2bd){this[_0x2ffafc(0x181)][_0x2ffafc(0x542)](_0xc4e2bd);}const _0x2120eb=this['_createHandler']();if(_0x597736){const _0x1de360=Ut(this['_injector'],_0x45a7cc,this['_type'],_0xa1ee0f,_0x22b7ea,_0x2120eb);return _0x1de360 instanceof k?_0x1de360[_0x2ffafc(0x23a)]():(_0x1de360 instanceof B||_0x1de360 instanceof W)&&_0x1de360[_0x2ffafc(0x518)](),_0x1de360;}return this[_0x2ffafc(0x331)][_0x2ffafc(0x4eb)](G,_0x45a7cc,this['_type'],_0xa1ee0f,_0x22b7ea,_0x2120eb);}[_0x57f41f(0x17b)](_0x42ffcf,_0x1cde6c){const _0x4c2000=_0x57f41f;var _0xa1fb3c,_0x3299ee;const _0x35d7dd=this[_0x4c2000(0x314)]['interceptor'][_0x4c2000(0x296)](this['_compressMutationService'][_0x4c2000(0x267)]['getInterceptPoints']()[_0x4c2000(0x471)]);(_0xa1fb3c=_0x35d7dd((_0x42ffcf==null?void 0x0:_0x42ffcf[_0x4c2000(0x506)])||[],null))==null||_0xa1fb3c[_0x4c2000(0x50c)](_0x246ee9=>this['_commandService']['executeCommand'](_0x246ee9['id'],_0x246ee9[_0x4c2000(0x15b)])),(_0x3299ee=_0x35d7dd(_0x1cde6c||[],null))==null||_0x3299ee[_0x4c2000(0x50c)](_0x425704=>this[_0x4c2000(0x547)][_0x4c2000(0x449)](_0x425704['id'],_0x425704['params']));}},exports['CollaborationEntity']=ze([I(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a['Inject'](_[_0x57f41f(0x45a)])),I(0x6,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),I(0x7,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),I(0x8,a[_0x57f41f(0x162)]),I(0x9,a[_0x57f41f(0x178)]),I(0xa,A[_0x57f41f(0x34b)]),I(0xb,a[_0x57f41f(0x169)]),I(0xc,a[_0x57f41f(0x177)](Re))],exports['CollaborationEntity']),exports[_0x57f41f(0x223)]=class extends exports['CollaborationEntity']{constructor(_0x285ab6,_0x1a34d4,_0x26e5a1,_0x9a7082,_0x8b166a,_0x4de861,_0x58b8b7,_0x2c0232,_0x2b7d84,_0x2eaea1,_0x2e9301,_0x159596,_0x4768dd,_0x4eda77,_0x2a1bdc,_0x5723ba,_0x2e3af6){const _0xa15324=_0x57f41f;super(_0x285ab6,_0x26e5a1,_0x1a34d4,_0x9a7082,_0x8b166a,_0x4de861,_0x58b8b7,_0x2c0232,_0x4768dd,_0x4eda77,_0x2a1bdc,_0x5723ba,_0x2e3af6),this['unitID']=_0x285ab6,this['type']=_0x1a34d4,this['_docStateChangeManagerService']=_0x2b7d84,this['_docTransformIMECacheService']=_0x2eaea1,this[_0xa15324(0x1da)]=_0x2e9301,this[_0xa15324(0x2ed)]=_0x159596;}[_0x57f41f(0x52a)](){const _0x507670=_0x57f41f,_0xc9b482=super['_createHandler']();return _0xc9b482[_0x507670(0x307)]=_0x215b13=>this[_0x507670(0x425)]['transformIMECache'](_0x215b13),_0xc9b482[_0x507670(0x230)]=_0x4ba217=>this['_docTransformSelectionsService'][_0x507670(0x357)](_0x4ba217),_0xc9b482[_0x507670(0x43f)]=_0x16da33=>this['_docSyncEditingCollabCursorService'][_0x507670(0x2ff)](_0x16da33),_0xc9b482['onTransformRemoteChangesetByIMECache']=_0x4efe3d=>this[_0x507670(0x425)]['transformRemoteChangeset'](_0x4efe3d),_0xc9b482;}async['_init'](){const _0xcca41a=_0x57f41f,_0x6dc074=await super[_0xcca41a(0x326)]();return this[_0xcca41a(0x2cf)]['docStateChange$'][_0xcca41a(0x4bb)](v[_0xcca41a(0x12b)](this['dispose$']))[_0xcca41a(0x3ee)](_0x1b3935=>{const _0x31de68=_0xcca41a;if(_0x1b3935==null)return;const {unitId:_0x2f118f,redoState:_0x273678,commandId:_0x2bdc9b}=_0x1b3935;if(_0x2f118f!==this[_0x31de68(0x36e)])return;const _0x19ceae={'id':_0x2bdc9b,'type':a[_0x31de68(0x4a7)][_0x31de68(0x385)],'params':{'unitId':_0x2f118f,'actions':_0x273678['actions'],'textRanges':null}};this[_0x31de68(0x252)](_0x19ceae);}),_0x6dc074;}},exports[_0x57f41f(0x223)]=ze([I(0x3,a['Inject'](a[_0x57f41f(0x410)])),I(0x4,a[_0x57f41f(0x1ec)](exports['LocalCacheService'])),I(0x5,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x45a)])),I(0x6,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x405)])),I(0x7,a[_0x57f41f(0x1ec)](_[_0x57f41f(0x441)])),I(0x8,a['Inject'](N[_0x57f41f(0x345)])),I(0x9,a[_0x57f41f(0x1ec)](fe)),I(0xa,a[_0x57f41f(0x1ec)](pe)),I(0xb,a[_0x57f41f(0x1ec)](qe)),I(0xc,a['ILogService']),I(0xd,a[_0x57f41f(0x178)]),I(0xe,A[_0x57f41f(0x34b)]),I(0xf,a['IPermissionService']),I(0x10,a[_0x57f41f(0x177)](Re))],exports[_0x57f41f(0x223)]),exports['SheetCollaborationEntity']=class extends exports[_0x57f41f(0x500)]{constructor(_0x1e47b2,_0x51c15e,_0x31e2f7,_0x2f0f7a,_0xd6747a,_0x3f87cc,_0x3bfe3b,_0x27915e,_0x1852ad,_0x54786d,_0x3ae82d,_0x3e28a0,_0x5e9daa,_0x4135c3){const _0x319961=_0x57f41f;super(_0x1e47b2,_0x31e2f7,_0x51c15e,_0x2f0f7a,_0xd6747a,_0x3f87cc,_0x3bfe3b,_0x27915e,_0x54786d,_0x3ae82d,_0x3e28a0,_0x5e9daa,_0x4135c3),this[_0x319961(0x36e)]=_0x1e47b2,this[_0x319961(0x221)]=_0x51c15e,this['_sheetTransformSelectionsService']=_0x1852ad;}['_createHandler'](){const _0x452fa5=_0x57f41f,_0x2fe3d2=super[_0x452fa5(0x52a)]();return _0x2fe3d2[_0x452fa5(0x230)]=_0x503aef=>this['_sheetTransformSelectionsService'][_0x452fa5(0x357)](_0x503aef),_0x2fe3d2;}async[_0x57f41f(0x326)](){const _0x59611a=_0x57f41f,_0x1bf2ce=await super['_init']();return this[_0x59611a(0x1e2)](this[_0x59611a(0x547)][_0x59611a(0x36c)]((_0x5bdd1f,_0x559284)=>{const _0x471e92=_0x59611a;if(_0x5bdd1f[_0x471e92(0x221)]!==a['CommandType'][_0x471e92(0x385)]||_0x559284!=null&&_0x559284[_0x471e92(0x25a)]||_0x559284!=null&&_0x559284[_0x471e92(0x1b3)])return;const _0x476762=_0x5bdd1f['params'];if((_0x476762==null?void 0x0:_0x476762[_0x471e92(0x1d1)])!==this['unitID'])return;const _0x31bab2=_0x5bdd1f,_0x5787dc=this['_compressMutationService'][_0x471e92(0x267)][_0x471e92(0x296)](this[_0x471e92(0x314)][_0x471e92(0x267)]['getInterceptPoints']()[_0x471e92(0x433)])([_0x31bab2],null)||[_0x31bab2];this[_0x471e92(0x252)](_0x5787dc[0x0]);})),_0x1bf2ce;}},exports[_0x57f41f(0x374)]=ze([I(0x3,a[_0x57f41f(0x1ec)](a['Injector'])),I(0x4,a['Inject'](exports[_0x57f41f(0x4a8)])),I(0x5,a['Inject'](_[_0x57f41f(0x45a)])),I(0x6,a['Inject'](a[_0x57f41f(0x405)])),I(0x7,a[_0x57f41f(0x1ec)](_['RevisionService'])),I(0x8,a[_0x57f41f(0x1ec)](Ie)),I(0x9,a[_0x57f41f(0x162)]),I(0xa,a[_0x57f41f(0x178)]),I(0xb,A[_0x57f41f(0x34b)]),I(0xc,a[_0x57f41f(0x169)]),I(0xd,a[_0x57f41f(0x177)](Re))],exports['SheetCollaborationEntity']);var qs=Object[_0x57f41f(0x522)],zs=Object[_0x57f41f(0x191)],Js=(_0x305936,_0x536906,_0x35c908,_0x5d14bd)=>{const _0x2ce411=_0x57f41f;for(var _0x13dd79=_0x5d14bd>0x1?void 0x0:_0x5d14bd?zs(_0x536906,_0x35c908):_0x536906,_0x3f15d5=_0x305936[_0x2ce411(0x460)]-0x1,_0x172043;_0x3f15d5>=0x0;_0x3f15d5--)(_0x172043=_0x305936[_0x3f15d5])&&(_0x13dd79=(_0x5d14bd?_0x172043(_0x536906,_0x35c908,_0x13dd79):_0x172043(_0x13dd79))||_0x13dd79);return _0x5d14bd&&_0x13dd79&&qs(_0x536906,_0x35c908,_0x13dd79),_0x13dd79;},Ne=(_0x5f0839,_0x46f00b)=>(_0x3848b5,_0x47711c)=>_0x46f00b(_0x3848b5,_0x47711c,_0x5f0839);exports[_0x57f41f(0x34d)]=class extends a['RxDisposable']{constructor(_0x5412ca,_0x4438ff,_0x41ea0e){const _0x553826=_0x57f41f;super(),u(this,_0x553826(0x3b5),new Map()),u(this,_0x553826(0x445),new v[(_0x553826(0x54c))]()),(this[_0x553826(0x331)]=_0x5412ca,this[_0x553826(0x4e7)]=_0x4438ff,this['_univerInstanceService']=_0x41ea0e,this[_0x553826(0x326)]());}[_0x57f41f(0x3a4)](){const _0x7fb2b6=_0x57f41f;super['dispose'](),this[_0x7fb2b6(0x3b5)][_0x7fb2b6(0x50c)](_0x44a5da=>_0x44a5da[_0x7fb2b6(0x3a4)]()),this[_0x7fb2b6(0x3b5)][_0x7fb2b6(0x159)]();}['getCollabEntity'](_0x345efd){const _0x3b55e3=_0x57f41f;var _0x22593e;return(_0x22593e=this[_0x3b55e3(0x3b5)]['get'](_0x345efd))!=null?_0x22593e:null;}[_0x57f41f(0x4c9)](_0x284c4f){const _0x4fe5b9=_0x57f41f,_0x24d290=this[_0x4fe5b9(0x3a8)](_0x284c4f);return _0x24d290?v['of'](_0x24d290):this[_0x4fe5b9(0x445)][_0x4fe5b9(0x4bb)](E[_0x4fe5b9(0x222)](_0x1f8439=>_0x1f8439[_0x4fe5b9(0x36e)]===_0x284c4f));}['_init'](){const _0x3eda20=_0x57f41f;this[_0x3eda20(0x131)][_0x3eda20(0x317)](a[_0x3eda20(0x4f6)]['UNIVER_SHEET'])[_0x3eda20(0x4bb)](v[_0x3eda20(0x12b)](this[_0x3eda20(0x43a)]),E[_0x3eda20(0x4d8)](0x10))['subscribe'](async _0x4d2081=>{const _0x18f0e0=_0x3eda20,_0x145db4=_0x4d2081[_0x18f0e0(0x263)](),_0x534aea=await this[_0x18f0e0(0x4e2)](_0x145db4,$['UNIVER_SHEET']);this[_0x18f0e0(0x3b5)][_0x18f0e0(0x20b)](_0x145db4,_0x534aea);}),this[_0x3eda20(0x131)][_0x3eda20(0x317)](a[_0x3eda20(0x4f6)][_0x3eda20(0x1a7)])[_0x3eda20(0x4bb)](v[_0x3eda20(0x12b)](this['dispose$']),E[_0x3eda20(0x4d8)](0x10))[_0x3eda20(0x4bb)](E[_0x3eda20(0x222)](_0x1e5d0a=>!_0x1e5d0a[_0x3eda20(0x263)]()['startsWith']('__')))[_0x3eda20(0x3ee)](async _0x16354b=>{const _0x475fdf=_0x3eda20,_0x469db3=_0x16354b[_0x475fdf(0x263)](),_0x417fe5=await this['_startCollaboration'](_0x469db3,$[_0x475fdf(0x1a7)]);this[_0x475fdf(0x3b5)][_0x475fdf(0x20b)](_0x469db3,_0x417fe5);}),v['merge'](this[_0x3eda20(0x131)][_0x3eda20(0x41f)](a[_0x3eda20(0x4f6)][_0x3eda20(0x197)]),this[_0x3eda20(0x131)][_0x3eda20(0x41f)](a[_0x3eda20(0x4f6)][_0x3eda20(0x1a7)]))[_0x3eda20(0x4bb)](v['takeUntil'](this[_0x3eda20(0x43a)]))[_0x3eda20(0x3ee)](_0x51ec95=>{const _0x13141c=_0x3eda20,_0x120721=_0x51ec95['getUnitId'](),_0x3dc516=this[_0x13141c(0x3b5)][_0x13141c(0x31f)](_0x120721);_0x3dc516&&(_0x3dc516[_0x13141c(0x3a4)](),this[_0x13141c(0x3b5)][_0x13141c(0x3e0)](_0x120721));});}async[_0x57f41f(0x4e2)](_0x563813,_0x598680){const _0x41e671=_0x57f41f,_0x4bd73f=await this[_0x41e671(0x4e7)][_0x41e671(0x2b6)](_0x563813),_0xb77896=this[_0x41e671(0x331)][_0x41e671(0x4eb)](this[_0x41e671(0x360)](_0x598680),_0x563813,_0x598680,_0x4bd73f);return await _0xb77896[_0x41e671(0x350)](),this[_0x41e671(0x445)][_0x41e671(0x49c)](_0xb77896),_0xb77896;}['_getCtorByUniverType'](_0x469955){const _0x434f50=_0x57f41f;switch(_0x469955){case $['UNIVER_DOC']:return exports[_0x434f50(0x223)];case $[_0x434f50(0x197)]:return exports[_0x434f50(0x374)];default:throw new Error(_0x434f50(0x4db)+_0x469955);}}},exports[_0x57f41f(0x34d)]=Js([Ne(0x0,a[_0x57f41f(0x1ec)](a['Injector'])),Ne(0x1,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x19b)])),Ne(0x2,a['IUniverInstanceService'])],exports['CollaborationController']);const ct=[_0x57f41f(0x211),_0x57f41f(0x3fd),'verdancy600',_0x57f41f(0x2f0),_0x57f41f(0x40b),'gold400'];function _0x1fa7(_0x109946,_0x1a1c7e){const _0xf60c29=_0xf60c();return _0x1fa7=function(_0x1fa7f7,_0x56247){_0x1fa7f7=_0x1fa7f7-0x127;let _0x434c81=_0xf60c29[_0x1fa7f7];return _0x434c81;},_0x1fa7(_0x109946,_0x1a1c7e);}class Je extends a['Disposable']{constructor(){const _0x4372e2=_0x57f41f;super(...arguments),u(this,_0x4372e2(0x3f7),new Map()),u(this,_0x4372e2(0x135),0x0);}['assignAColorForMemberID'](_0x32d57f){const _0x4222da=_0x57f41f;if(this['_assignedColors'][_0x4222da(0x2c9)](_0x32d57f))return this['_assignedColors']['get'](_0x32d57f);const _0x5818e5=ct[this[_0x4222da(0x135)]];return this[_0x4222da(0x135)]=(this[_0x4222da(0x135)]+0x1)%ct[_0x4222da(0x460)],this['_assignedColors'][_0x4222da(0x20b)](_0x32d57f,_0x5818e5),_0x5818e5;}}var Zs=Object[_0x57f41f(0x522)],Qs=Object[_0x57f41f(0x191)],ei=(_0x364a50,_0x375c95,_0xb0d0a6,_0xd7c747)=>{for(var _0x57d125=_0xd7c747>0x1?void 0x0:_0xd7c747?Qs(_0x375c95,_0xb0d0a6):_0x375c95,_0x1ac66d=_0x364a50['length']-0x1,_0x21e068;_0x1ac66d>=0x0;_0x1ac66d--)(_0x21e068=_0x364a50[_0x1ac66d])&&(_0x57d125=(_0xd7c747?_0x21e068(_0x375c95,_0xb0d0a6,_0x57d125):_0x21e068(_0x57d125))||_0x57d125);return _0xd7c747&&_0x57d125&&Zs(_0x375c95,_0xb0d0a6,_0x57d125),_0x57d125;},K=(_0x27f190,_0x118078)=>(_0x3acc5f,_0x49f743)=>_0x118078(_0x3acc5f,_0x49f743,_0x27f190);const ti=0x12c,si=0x64;let ke=class extends a[_0x57f41f(0x1c5)]{constructor(_0x4364d2,_0x48398d,_0x33c43a,_0x1794eb,_0xba900e,_0x48d431,_0x3b239e,_0x1446aa,_0x53be6d){const _0x5507cd=_0x57f41f;super(),u(this,_0x5507cd(0x32d),!0x1),u(this,_0x5507cd(0x326),!0x1),u(this,_0x5507cd(0x329),new v[(_0x5507cd(0x3ab))](new Map())),u(this,_0x5507cd(0x260),this[_0x5507cd(0x329)]['asObservable']()),u(this,_0x5507cd(0x4e8),new v[(_0x5507cd(0x3ab))]([])),u(this,_0x5507cd(0x18f),this[_0x5507cd(0x4e8)][_0x5507cd(0x4bb)](v[_0x5507cd(0x49b)](ti))),u(this,'_updateLocalCursor',a[_0x5507cd(0x189)](_0x247eaf=>{const _0x1d3bc0=_0x5507cd,_0x1bd4fa={'eventID':_[_0x1d3bc0(0x48e)][_0x1d3bc0(0x153)],'data':{'unitID':this[_0x1d3bc0(0x36e)],'memberID':this[_0x1d3bc0(0x2cd)]['getMemberID'](),'selection':yt(_0x247eaf)}};this[_0x1d3bc0(0x2cd)][_0x1d3bc0(0x47b)](_0x1bd4fa,this[_0x1d3bc0(0x36e)]);},si)),(this[_0x5507cd(0x36e)]=_0x4364d2,this['_session']=_0x48398d,this[_0x5507cd(0x331)]=_0x33c43a,this[_0x5507cd(0x3f4)]=_0x1794eb,this['_memberService']=_0xba900e,this[_0x5507cd(0x40d)]=_0x48d431,this[_0x5507cd(0x365)]=_0x3b239e,this[_0x5507cd(0x131)]=_0x1446aa,this[_0x5507cd(0x547)]=_0x53be6d);}get['cursorInfo'](){const _0x36dcfd=_0x57f41f;return this[_0x36dcfd(0x329)]['getValue']();}get[_0x57f41f(0x234)](){return this['_roomMembers$']['getValue']();}[_0x57f41f(0x3a4)](){const _0x356825=_0x57f41f;super[_0x356825(0x3a4)](),this['_cursorInfo$']['next'](new Map()),this[_0x356825(0x329)][_0x356825(0x4a4)](),this[_0x356825(0x4e8)]['next']([]),this[_0x356825(0x4e8)]['complete']();}[_0x57f41f(0x350)](){const _0x51e017=_0x57f41f;this[_0x51e017(0x326)]||(this[_0x51e017(0x326)]=!0x0,this[_0x51e017(0x2cd)]['sessionStatus$'][_0x51e017(0x4bb)](v[_0x51e017(0x12b)](this[_0x51e017(0x43a)]))['subscribe'](_0x5ebee3=>{const _0x369f99=_0x51e017;_0x5ebee3===H[_0x369f99(0x436)]?this[_0x369f99(0x284)]():this[_0x369f99(0x49d)]();}),this[_0x51e017(0x2cd)]['event$'][_0x51e017(0x4bb)](v[_0x51e017(0x12b)](this[_0x51e017(0x43a)]))[_0x51e017(0x3ee)](_0x401de4=>{const _0x48eea7=_0x51e017,_0x4269fc=_0x401de4[_0x48eea7(0x538)];_0x4269fc===_[_0x48eea7(0x48e)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x401de4),_0x4269fc===_[_0x48eea7(0x48e)][_0x48eea7(0x4af)]&&this[_0x48eea7(0x1a5)](_0x401de4);}),this['disposeWithMe'](this['_commandService'][_0x51e017(0x36c)](_0x30a7c1=>{const _0xef0f7c=_0x51e017,_0x4c011e=_0x30a7c1[_0xef0f7c(0x15b)];_0x4c011e!=null&&this[_0xef0f7c(0x32d)]&&_0x30a7c1['id']===se[_0xef0f7c(0x1ab)]['id']&&_0x4c011e[_0xef0f7c(0x1d1)]===this[_0xef0f7c(0x36e)]&&_0x4c011e['isEditing']===!0x1&&this[_0xef0f7c(0x34a)](_0x4c011e[_0xef0f7c(0x4ee)]);})),this[_0x51e017(0x40d)]['collabCursorState$'][_0x51e017(0x4bb)](v[_0x51e017(0x12b)](this['dispose$']))['subscribe'](_0x4ff8e1=>{const _0x4be9a6=_0x51e017;if((_0x4ff8e1==null?void 0x0:_0x4ff8e1[_0x4be9a6(0x36e)])!==this[_0x4be9a6(0x36e)])return;const _0x1553e0={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x4ff8e1};this[_0x4be9a6(0x4d4)](_0x1553e0);}),this[_0x51e017(0x1e2)](this[_0x51e017(0x547)][_0x51e017(0x36c)](_0x454bf3=>{const _0x271f67=_0x51e017;if(_0x454bf3[_0x271f67(0x15b)]==null)return;const _0x21af1e=_0x454bf3['params'];if(_0x454bf3['id']!==se[_0x271f67(0x286)]['id']||_0x21af1e[_0x271f67(0x1d1)]!==this[_0x271f67(0x36e)])return;const _0x5d8a5b={'id':_0x271f67(0x44f),'params':_0x21af1e},_0x426d40=this[_0x271f67(0x494)];for(const [_0x192bf5,_0xf934fa]of _0x426d40){const _0x27fee9={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xf934fa['ranges']}},_0x4f8756=this[_0x271f67(0x365)][_0x271f67(0x1e4)](_0x5d8a5b,_0x27fee9,!0x1);if(_['isTransformMutationFailure'](_0x4f8756))throw _0x4f8756[_0x271f67(0x542)];_0x426d40[_0x271f67(0x20b)](_0x192bf5,{..._0xf934fa,'ranges':_0x4f8756[_0x271f67(0x353)][_0x271f67(0x15b)][_0x271f67(0x179)]});}queueMicrotask(()=>{const _0x5e98fa=_0x271f67;this[_0x5e98fa(0x329)][_0x5e98fa(0x49c)](_0x426d40);});})));}[_0x57f41f(0x4d4)](_0x4bff2c){const _0x45618a=_0x57f41f;var _0x4f73ff,_0x1e77b5;const {memberID:_0x2eb9df,selection:_0x4cb7e9}=_0x4bff2c['data'],_0x1fcf8a=Hs(_0x4cb7e9),_0x24a5f8=(_0x1e77b5=(_0x4f73ff=this['_memberService']['getMember'](this[_0x45618a(0x36e)],_0x2eb9df))==null?void 0x0:_0x4f73ff[_0x45618a(0x33e)])!=null?_0x1e77b5:_0x45618a(0x14a),_0x390abf={'color':this[_0x45618a(0x3f4)][_0x45618a(0x533)](_0x2eb9df),'name':_0x24a5f8,'ranges':_0x1fcf8a},_0x2159ba=this['cursorInfo'];_0x2159ba['set'](_0x2eb9df,_0x390abf),this[_0x45618a(0x329)]['next'](_0x2159ba);}['_onCursorDelete'](_0x5981b3){const _0x4812c7=_0x57f41f,{memberID:_0x1db1d6}=_0x5981b3[_0x4812c7(0x198)],_0x1113c2=this[_0x4812c7(0x494)];_0x1113c2['delete'](_0x1db1d6),this[_0x4812c7(0x329)][_0x4812c7(0x49c)](_0x1113c2);}['_toggleOnline'](){const _0x444eeb=_0x57f41f;var _0x44f744;if(this[_0x444eeb(0x32d)]=!0x0,((_0x44f744=this[_0x444eeb(0x131)][_0x444eeb(0x324)]())==null?void 0x0:_0x44f744[_0x444eeb(0x263)]())!==this[_0x444eeb(0x36e)])return;const _0x3d1fe1=this['_injector']['get'](se[_0x444eeb(0x1d0)])[_0x444eeb(0x328)]();Array[_0x444eeb(0x2f8)](_0x3d1fe1)&&_0x3d1fe1['length']>0x0&&this['_updateLocalCursor'](_0x3d1fe1);}[_0x57f41f(0x49d)](){const _0x396093=_0x57f41f;this[_0x396093(0x32d)]=!0x1;}};ke=ei([K(0x2,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),K(0x3,a['Inject'](Je)),K(0x4,a['Inject'](q)),K(0x5,a[_0x57f41f(0x1ec)](qe)),K(0x6,_['ITransformService']),K(0x7,a[_0x57f41f(0x546)]),K(0x8,a['ICommandService'])],ke);var ii=Object['defineProperty'],ni=Object[_0x57f41f(0x191)],ri=(_0x1e9854,_0x2cd3b,_0xa78b6b,_0x38a486)=>{for(var _0x1fedda=_0x38a486>0x1?void 0x0:_0x38a486?ni(_0x2cd3b,_0xa78b6b):_0x2cd3b,_0x2e5e9d=_0x1e9854['length']-0x1,_0x12698a;_0x2e5e9d>=0x0;_0x2e5e9d--)(_0x12698a=_0x1e9854[_0x2e5e9d])&&(_0x1fedda=(_0x38a486?_0x12698a(_0x2cd3b,_0xa78b6b,_0x1fedda):_0x12698a(_0x1fedda))||_0x1fedda);return _0x38a486&&_0x1fedda&&ii(_0x2cd3b,_0xa78b6b,_0x1fedda),_0x1fedda;},Q=(_0x405b32,_0x26d608)=>(_0x2e214e,_0x305f4a)=>_0x26d608(_0x2e214e,_0x305f4a,_0x405b32);const oi=0x12c,ai=0x64,ci=()=>{let _0x470581=[],_0x2efec9=!0x1;return _0x249d6a=>{_0x470581['push'](_0x249d6a),_0x2efec9||(_0x2efec9=!0x0,setTimeout(()=>{const _0x1f44a=_0x1fa7;_0x470581[_0x1f44a(0x50c)](_0x416ce0=>_0x416ce0()),_0x470581=[],_0x2efec9=!0x1;}));};};let Be=class extends a[_0x57f41f(0x1c5)]{constructor(_0x2ad12d,_0x1111e0,_0x3a0e1d,_0xa78af2,_0x1ea5a6,_0xa13dfa,_0x43a971,_0x5336ad){const _0x5b016b=_0x57f41f;super(),u(this,_0x5b016b(0x32d),!0x1),u(this,_0x5b016b(0x326),!0x1),u(this,_0x5b016b(0x329),new v[(_0x5b016b(0x3ab))](new Map())),u(this,_0x5b016b(0x260),this['_cursorInfo$']['asObservable']()),u(this,_0x5b016b(0x4e8),new v[(_0x5b016b(0x3ab))]([])),u(this,_0x5b016b(0x18f),this[_0x5b016b(0x4e8)][_0x5b016b(0x4bb)](v[_0x5b016b(0x49b)](oi))),u(this,_0x5b016b(0x34a),a[_0x5b016b(0x189)]((_0x3ebfc6,_0x26915a)=>{const _0x1dd580=_0x5b016b,_0x5101a0={'eventID':_[_0x1dd580(0x48e)][_0x1dd580(0x153)],'data':{'unitID':this[_0x1dd580(0x36e)],'memberID':this['_session'][_0x1dd580(0x145)](),'selection':et[_0x1dd580(0x4b3)](_0x3ebfc6,_0x26915a['range'])}};this[_0x1dd580(0x2cd)][_0x1dd580(0x47b)](_0x5101a0,this[_0x1dd580(0x36e)]);},ai)),(this[_0x5b016b(0x36e)]=_0x2ad12d,this[_0x5b016b(0x2cd)]=_0x1111e0,this[_0x5b016b(0x331)]=_0x3a0e1d,this['_colorAssignService']=_0xa78af2,this['_memberService']=_0x1ea5a6,this[_0x5b016b(0x131)]=_0xa13dfa,this['_commandService']=_0x43a971,this['_refRangeService']=_0x5336ad);}get[_0x57f41f(0x494)](){const _0x12d4b8=_0x57f41f;return this[_0x12d4b8(0x329)][_0x12d4b8(0x3a2)]();}get[_0x57f41f(0x234)](){const _0x2a9131=_0x57f41f;return this[_0x2a9131(0x4e8)]['getValue']();}[_0x57f41f(0x3a4)](){const _0x3195cf=_0x57f41f;super[_0x3195cf(0x3a4)](),this[_0x3195cf(0x329)]['next'](new Map()),this[_0x3195cf(0x329)][_0x3195cf(0x4a4)](),this[_0x3195cf(0x4e8)][_0x3195cf(0x49c)]([]),this[_0x3195cf(0x4e8)][_0x3195cf(0x4a4)]();}[_0x57f41f(0x350)](){const _0x52acf4=_0x57f41f;this[_0x52acf4(0x326)]||(this[_0x52acf4(0x326)]=!0x0,this[_0x52acf4(0x2cd)][_0x52acf4(0x1bd)]['pipe'](v['takeUntil'](this['dispose$']))['subscribe'](_0x58cd76=>{const _0x421639=_0x52acf4;_0x58cd76===H[_0x421639(0x436)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x52acf4(0x2cd)][_0x52acf4(0x438)][_0x52acf4(0x4bb)](v[_0x52acf4(0x12b)](this[_0x52acf4(0x43a)]))[_0x52acf4(0x3ee)](_0x30154c=>{const _0x104f26=_0x52acf4,_0x7a9a9f=_0x30154c[_0x104f26(0x538)];_0x7a9a9f===_[_0x104f26(0x48e)]['UPDATE_CURSOR']&&this[_0x104f26(0x4d4)](_0x30154c),_0x7a9a9f===_[_0x104f26(0x48e)]['USERS_LEAVE']&&this[_0x104f26(0x1a5)](_0x30154c);}),this[_0x52acf4(0x495)](),this[_0x52acf4(0x1e2)](this['_commandService']['onCommandExecuted'](_0x3ed920=>{const _0x2a3b98=_0x52acf4;if(this[_0x2a3b98(0x32d)]&&_0x3ed920['id']===C['SetSelectionsOperation']['id']&&_0x3ed920['params'][_0x2a3b98(0x1d1)]===this['unitID']){const _0x6cf7b6=_0x3ed920['params'];this[_0x2a3b98(0x34a)](_0x6cf7b6[_0x2a3b98(0x3aa)],_0x6cf7b6[_0x2a3b98(0x266)][0x0]);}})));}[_0x57f41f(0x4d4)](_0x58f4f1){const _0x32f848=_0x57f41f;var _0x43e52c,_0x55aa9e;const {memberID:_0xc2d456,selection:_0x4ff518}=_0x58f4f1['data'],{sheetName:_0x1cbf29,range:_0x36a3da}=et[_0x32f848(0x196)](_0x4ff518),_0xcb3a0b={'name':(_0x55aa9e=(_0x43e52c=this[_0x32f848(0x384)][_0x32f848(0x487)](this[_0x32f848(0x36e)],_0xc2d456))==null?void 0x0:_0x43e52c['name'])!=null?_0x55aa9e:_0x32f848(0x14a),'range':this[_0x32f848(0x3e9)](_0x1cbf29,_0x36a3da),'sheetID':_0x1cbf29,'color':this[_0x32f848(0x3f4)][_0x32f848(0x533)](_0xc2d456),'selection':_0x4ff518},_0x3db0f2=this[_0x32f848(0x494)];_0x3db0f2[_0x32f848(0x20b)](_0xc2d456,_0xcb3a0b),this[_0x32f848(0x329)][_0x32f848(0x49c)](_0x3db0f2);}[_0x57f41f(0x1a5)](_0x2e1297){const _0x510c08=_0x57f41f,{memberID:_0x51a461}=_0x2e1297['data'],_0x18cdc6=this[_0x510c08(0x494)];_0x18cdc6[_0x510c08(0x3e0)](_0x51a461),this[_0x510c08(0x329)][_0x510c08(0x49c)](_0x18cdc6);}[_0x57f41f(0x3e9)](_0x357ae8,_0x3d8e3){const _0x124efd=_0x57f41f;var _0x16bb92,_0xec9c85;const _0x34d18d=(_0xec9c85=(_0x16bb92=this[_0x124efd(0x131)][_0x124efd(0x3de)](this[_0x124efd(0x36e)]))==null?void 0x0:_0x16bb92[_0x124efd(0x446)](_0x357ae8))==null?void 0x0:_0xec9c85[_0x124efd(0x168)]();return(_0x34d18d==null?void 0x0:_0x34d18d[_0x124efd(0x4df)](_0x3f6f17=>a[_0x124efd(0x1b8)][_0x124efd(0x48f)](_0x3f6f17,_0x3d8e3)))||_0x3d8e3;}[_0x57f41f(0x495)](){const _0x424121=_0x57f41f,_0x4d3433=new a[(_0x424121(0x1f7))](),_0x4066dc=ci(),_0x34ae48=()=>{const _0x66126=_0x424121;_0x4d3433['dispose']();const _0x1940df=(_0x4c7fc9,_0x50261c,_0x2fbe59,_0x4b437c)=>{const _0x22bdef=_0x1fa7;let _0x13f578=[];switch(_0x4c7fc9['id']){case C[_0x22bdef(0x32a)]['DeleteRangeMoveLeftCommandId']:{_0x13f578=C['handleDeleteRangeMoveLeft'](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)][_0x22bdef(0x30c)]:{_0x13f578=C['handleDeleteRangeMoveUp'](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)]['InsertColCommandId']:{_0x13f578=C[_0x22bdef(0x526)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)][_0x22bdef(0x2f9)]:{_0x13f578=C[_0x22bdef(0x44d)](_0x4c7fc9,_0x4b437c);break;}case C['EffectRefRangId'][_0x22bdef(0x2b9)]:{_0x13f578=C[_0x22bdef(0x393)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)][_0x22bdef(0x2a4)]:{_0x13f578=C[_0x22bdef(0x16d)](_0x4c7fc9,_0x4b437c);break;}case C['EffectRefRangId'][_0x22bdef(0x2ce)]:{_0x13f578=C[_0x22bdef(0x4f0)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)]['RemoveColCommandId']:{_0x13f578=C[_0x22bdef(0x232)](_0x4c7fc9,_0x4b437c);break;}case C[_0x22bdef(0x32a)]['RemoveRowCommandId']:{_0x13f578=C[_0x22bdef(0x295)](_0x4c7fc9,_0x4b437c);break;}}const _0x1bfdeb=C[_0x22bdef(0x38f)](_0x13f578,_0x4b437c),_0x816afc=this['cursorInfo'][_0x22bdef(0x31f)](_0x50261c);if(_0x816afc&&_0x1bfdeb){const _0x4ccddd={..._0x816afc,'range':_0x1bfdeb};this[_0x22bdef(0x494)][_0x22bdef(0x20b)](_0x50261c,_0x4ccddd),_0x4066dc(()=>{const _0x2993b5=_0x22bdef,_0x1b81ad=this['_refRangeService'][_0x2993b5(0x42f)](_0x1bfdeb,_0x2ef4c8=>(_0x1b81ad[_0x2993b5(0x3a4)](),_0x1940df(_0x2ef4c8,_0x50261c,_0x2fbe59,_0x1bfdeb)));_0x4d3433[_0x2993b5(0x150)](_0x1b81ad);});}return{'redos':[],'undos':[]};};this[_0x66126(0x494)][_0x66126(0x50c)]((_0x40dd3a,_0x582828)=>{const _0x1f99f4=_0x66126,{range:_0x5a2fb7,sheetID:_0x57dd30}=_0x40dd3a,_0x2ccb62=this['_refRangeService']['registerRefRange'](_0x5a2fb7,_0x22f053=>(_0x2ccb62['dispose'](),_0x1940df(_0x22f053,_0x582828,_0x57dd30,_0x5a2fb7)));_0x4d3433[_0x1f99f4(0x150)](_0x2ccb62);});};this[_0x424121(0x1e2)](a[_0x424121(0x1f9)](this[_0x424121(0x329)][_0x424121(0x3ee)](()=>{_0x34ae48();})));}['_toggleOnline'](){const _0x1c6d0a=_0x57f41f;var _0x103e7a,_0x395bad;if(this[_0x1c6d0a(0x32d)]=!0x0,((_0x103e7a=this[_0x1c6d0a(0x131)][_0x1c6d0a(0x324)]())==null?void 0x0:_0x103e7a[_0x1c6d0a(0x263)]())!==this[_0x1c6d0a(0x36e)])return;const _0x21b235=(_0x395bad=this[_0x1c6d0a(0x331)][_0x1c6d0a(0x31f)](C['SheetsSelectionsService'])[_0x1c6d0a(0x3a7)]())==null?void 0x0:_0x395bad[0x0],_0x4a4e27=this['_univerInstanceService'][_0x1c6d0a(0x3b3)](a[_0x1c6d0a(0x4f6)]['UNIVER_SHEET'])['getActiveSheet']();_0x21b235&&_0x4a4e27&&this[_0x1c6d0a(0x34a)](_0x4a4e27[_0x1c6d0a(0x255)](),_0x21b235);}[_0x57f41f(0x49d)](){this['_online']=!0x1;}};Be=ri([Q(0x2,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),Q(0x3,a['Inject'](Je)),Q(0x4,a[_0x57f41f(0x1ec)](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a['ICommandService']),Q(0x7,a[_0x57f41f(0x1ec)](C[_0x57f41f(0x240)]))],Be);var li=Object['defineProperty'],hi=Object[_0x57f41f(0x191)],_i=(_0x83bf38,_0xb23a27,_0x2a53c9,_0x110cc0)=>{const _0x1e349d=_0x57f41f;for(var _0x326009=_0x110cc0>0x1?void 0x0:_0x110cc0?hi(_0xb23a27,_0x2a53c9):_0xb23a27,_0x6ef67a=_0x83bf38[_0x1e349d(0x460)]-0x1,_0x4a2895;_0x6ef67a>=0x0;_0x6ef67a--)(_0x4a2895=_0x83bf38[_0x6ef67a])&&(_0x326009=(_0x110cc0?_0x4a2895(_0xb23a27,_0x2a53c9,_0x326009):_0x4a2895(_0x326009))||_0x326009);return _0x110cc0&&_0x326009&&li(_0xb23a27,_0x2a53c9,_0x326009),_0x326009;},Me=(_0x3b727e,_0x55b5a1)=>(_0x94f3ed,_0x3c4455)=>_0x55b5a1(_0x94f3ed,_0x3c4455,_0x3b727e);let ne=class extends a[_0x57f41f(0x1c5)]{constructor(_0x4562ad,_0x584a9a,_0x4d1f4d){const _0x5efa94=_0x57f41f;super(),u(this,_0x5efa94(0x3b5),new Map()),u(this,_0x5efa94(0x445),new v['Subject']()),(this['_univerInstanceService']=_0x4562ad,this[_0x5efa94(0x331)]=_0x584a9a,this['_collabSessionService']=_0x4d1f4d,this[_0x5efa94(0x326)]());}[_0x57f41f(0x3a4)](){const _0x444f02=_0x57f41f;super[_0x444f02(0x3a4)](),this[_0x444f02(0x445)][_0x444f02(0x4a4)](),this[_0x444f02(0x3b5)]['forEach'](_0x404dc1=>_0x404dc1[_0x444f02(0x3a4)]());}['getCollabCursors$'](_0x5299f4){const _0x5d264c=_0x57f41f;return this[_0x5d264c(0x3b5)][_0x5d264c(0x2c9)](_0x5299f4)?this[_0x5d264c(0x3b5)][_0x5d264c(0x31f)](_0x5299f4)[_0x5d264c(0x260)]:this[_0x5d264c(0x445)][_0x5d264c(0x4bb)](v[_0x5d264c(0x222)](_0x9b3613=>_0x9b3613[_0x5d264c(0x36e)]===_0x5299f4),v['switchMap'](_0x1226d8=>_0x1226d8[_0x5d264c(0x260)]));}['_init'](){const _0x3e8f54=_0x57f41f;this[_0x3e8f54(0x131)][_0x3e8f54(0x317)](a[_0x3e8f54(0x4f6)]['UNIVER_SHEET'])[_0x3e8f54(0x4bb)](v[_0x3e8f54(0x12b)](this[_0x3e8f54(0x43a)]))[_0x3e8f54(0x3ee)](async _0x3a683e=>{const _0x1940a7=_0x3e8f54,_0x1c17a0=_0x3a683e[_0x1940a7(0x263)](),_0x5cad23=await this[_0x1940a7(0x3d6)](_0x1c17a0);this['_entityInit$']['next'](_0x5cad23),this['_entities']['set'](_0x1c17a0,_0x5cad23);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x3e8f54(0x4f6)][_0x3e8f54(0x1a7)])[_0x3e8f54(0x4bb)](v['takeUntil'](this[_0x3e8f54(0x43a)]))[_0x3e8f54(0x4bb)](v[_0x3e8f54(0x222)](_0x5ea88a=>!_0x5ea88a[_0x3e8f54(0x263)]()[_0x3e8f54(0x414)]('__')))[_0x3e8f54(0x3ee)](async _0x14a098=>{const _0x426634=_0x3e8f54,_0x3d0d2b=_0x14a098['getUnitId'](),_0x5b49d1=await this[_0x426634(0x429)](_0x3d0d2b);this[_0x426634(0x445)]['next'](_0x5b49d1),this[_0x426634(0x3b5)][_0x426634(0x20b)](_0x3d0d2b,_0x5b49d1);}),v['merge'](this[_0x3e8f54(0x131)][_0x3e8f54(0x41f)](a[_0x3e8f54(0x4f6)]['UNIVER_DOC']),this[_0x3e8f54(0x131)][_0x3e8f54(0x41f)](a[_0x3e8f54(0x4f6)]['UNIVER_SHEET']))[_0x3e8f54(0x4bb)](v[_0x3e8f54(0x12b)](this[_0x3e8f54(0x43a)]))[_0x3e8f54(0x3ee)](_0x23fb60=>{const _0x57e0bf=_0x3e8f54,_0x42c43d=_0x23fb60['getUnitId'](),_0x606cdd=this[_0x57e0bf(0x3b5)]['get'](_0x42c43d);_0x606cdd&&(_0x606cdd[_0x57e0bf(0x3a4)](),this['_entities'][_0x57e0bf(0x3e0)](_0x42c43d));});}async[_0x57f41f(0x3d6)](_0x31263c){const _0x18cc58=_0x57f41f,_0xdc822a=await this[_0x18cc58(0x4e7)][_0x18cc58(0x2b6)](_0x31263c),_0x10da50=this[_0x18cc58(0x331)][_0x18cc58(0x4eb)](Be,_0x31263c,_0xdc822a);return _0x10da50[_0x18cc58(0x350)](),_0x10da50;}async[_0x57f41f(0x429)](_0x5f54a5){const _0xb1c9c5=_0x57f41f,_0x4cd6e0=await this[_0xb1c9c5(0x4e7)][_0xb1c9c5(0x2b6)](_0x5f54a5),_0x14f182=this[_0xb1c9c5(0x331)][_0xb1c9c5(0x4eb)](ke,_0x5f54a5,_0x4cd6e0);return _0x14f182[_0xb1c9c5(0x350)](),_0x14f182;}};ne=_i([Me(0x0,a[_0x57f41f(0x546)]),Me(0x1,a[_0x57f41f(0x1ec)](a['Injector'])),Me(0x2,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x19b)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x30c6c9,_0x5c9c46){const _0x1025fd=_0x57f41f;let {radius:_0x968158,width:_0x4d1aa5,height:_0x5e7afd}=_0x5c9c46;_0x968158=_0x968158!=null?_0x968158:0x0,_0x4d1aa5=_0x4d1aa5!=null?_0x4d1aa5:0x1e,_0x5e7afd=_0x5e7afd!=null?_0x5e7afd:0x1e;let _0x8f3b06=0x0,_0x2b9869=0x0,_0x47fffd=0x0;_0x8f3b06=_0x2b9869=_0x47fffd=Math['min'](_0x968158,_0x4d1aa5/0x2,_0x5e7afd/0x2),_0x30c6c9[_0x1025fd(0x25f)](),_0x30c6c9[_0x1025fd(0x2b2)](_0x8f3b06,0x0),_0x30c6c9[_0x1025fd(0x3eb)](_0x4d1aa5-_0x2b9869,0x0),_0x30c6c9['arc'](_0x4d1aa5-_0x2b9869,_0x2b9869,_0x2b9869,Math['PI']*0x3/0x2,0x0,!0x1),_0x30c6c9[_0x1025fd(0x3eb)](_0x4d1aa5,_0x5e7afd-_0x47fffd),_0x30c6c9[_0x1025fd(0x3e3)](_0x4d1aa5-_0x47fffd,_0x5e7afd-_0x47fffd,_0x47fffd,0x0,Math['PI']/0x2,!0x1),_0x30c6c9[_0x1025fd(0x3eb)](0x0,_0x5e7afd),_0x30c6c9[_0x1025fd(0x3eb)](0x0,_0x8f3b06),_0x30c6c9[_0x1025fd(0x3e3)](_0x8f3b06,_0x8f3b06,_0x8f3b06,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x30c6c9[_0x1025fd(0x525)](),_0x5c9c46[_0x1025fd(0x512)]&&(_0x30c6c9[_0x1025fd(0x453)](),_0x30c6c9[_0x1025fd(0x4ac)]=_0x5c9c46[_0x1025fd(0x512)],_0x5c9c46['fillRule']==='evenodd'?_0x30c6c9[_0x1025fd(0x512)](_0x1025fd(0x3fc)):_0x30c6c9[_0x1025fd(0x512)](),_0x30c6c9['restore']());}class Oe extends O['Shape']{constructor(_0x4d5972,_0x416197){const _0x56c3f7=_0x57f41f;super(_0x4d5972,_0x416197),u(this,'color'),u(this,'text'),(this[_0x56c3f7(0x21a)]=_0x416197==null?void 0x0:_0x416197[_0x56c3f7(0x21a)],this[_0x56c3f7(0x50a)]=_0x416197==null?void 0x0:_0x416197['text']);}static[_0x57f41f(0x300)](_0x5b4170,_0xeb4f46){const _0x1355f3=_0x57f41f,{text:_0x5a5370,color:_0x2a425f}=_0xeb4f46;_0x5b4170[_0x1355f3(0x453)](),_0x5b4170[_0x1355f3(0x467)]=_0x1355f3(0x54f);const _0x315f13=_0x5b4170[_0x1355f3(0x3da)](_0x5a5370)[_0x1355f3(0x1a3)],_0x56ff0b=Math[_0x1355f3(0x129)](_0x315f13+0x2*Ae,lt);di(_0x5b4170,{'height':de,'radius':0x4,'width':_0x56ff0b,'fill':_0x2a425f,'evented':!0x1}),_0x5b4170[_0x1355f3(0x4ac)]='#FFF';const _0x61b7c8=Ae,_0x2b378a=de-ui,_0x45151b=lt-0x2*Ae;if(_0x315f13>_0x45151b){let _0x3d2ccb='',_0x496a4f=0x0;for(const _0x5f1e84 of _0x5a5370){const _0x5c124c=_0x5b4170[_0x1355f3(0x3da)](_0x5f1e84)[_0x1355f3(0x1a3)];if(_0x496a4f+_0x5c124c<=_0x45151b-_0x5b4170[_0x1355f3(0x3da)](_0x1355f3(0x4ab))[_0x1355f3(0x1a3)])_0x3d2ccb+=_0x5f1e84,_0x496a4f+=_0x5c124c;else{_0x3d2ccb+=_0x1355f3(0x4ab);break;}}_0x5b4170[_0x1355f3(0x22c)](_0x3d2ccb,_0x61b7c8,_0x2b378a);}else _0x5b4170['fillText'](_0x5a5370,_0x61b7c8,_0x2b378a);_0x5b4170[_0x1355f3(0x35c)]();}['_draw'](_0x5988e2){const _0x2d7ea3=_0x57f41f;Oe[_0x2d7ea3(0x300)](_0x5988e2,this);}}const Le=_0x57f41f(0x334),Si=_0x57f41f(0x421),vi=_0x57f41f(0x4d3),le=0x6,gi=1.5,je=0x4,mi=1.5,fi=_0x57f41f(0x262);class ht{constructor(_0x497bc1,_0x455119,_0x5b1505,_0x10f22a){const _0x172d2d=_0x57f41f;u(this,_0x172d2d(0x483),[]),u(this,'_anchor',null),u(this,_0x172d2d(0x2b1),null),u(this,_0x172d2d(0x395),null),u(this,'_hideTimer',null),u(this,_0x172d2d(0x536),null),(this[_0x172d2d(0x39e)]=_0x497bc1,this[_0x172d2d(0x1f3)]=_0x455119,this['_docSkeleton']=_0x5b1505,this[_0x172d2d(0x310)]=_0x10f22a,this[_0x172d2d(0x4c7)]());}set[_0x57f41f(0x430)](_0x56e1b2){const _0x49dba8=_0x57f41f;_0x56e1b2?(this[_0x49dba8(0x395)]&&this[_0x49dba8(0x395)][_0x49dba8(0x4e5)](),this['_textBubble']&&this[_0x49dba8(0x2b1)]['show']()):(this[_0x49dba8(0x395)]&&this[_0x49dba8(0x395)][_0x49dba8(0x375)](),this[_0x49dba8(0x2b1)]&&this['_textBubble'][_0x49dba8(0x4e5)]());}[_0x57f41f(0x3a4)](){const _0x26a61f=_0x57f41f;for(const _0x3f73d7 of this[_0x26a61f(0x483)])_0x3f73d7[_0x26a61f(0x3a4)]();this[_0x26a61f(0x2b1)]&&this[_0x26a61f(0x2b1)][_0x26a61f(0x3a4)](),this[_0x26a61f(0x395)]&&this[_0x26a61f(0x395)][_0x26a61f(0x3a4)](),this[_0x26a61f(0x3e7)]&&this[_0x26a61f(0x3e7)][_0x26a61f(0x3a4)](),this['_eventUnsubscribe']&&this[_0x26a61f(0x536)]();}[_0x57f41f(0x4c7)](){const _0x33f0f9=_0x57f41f;var _0x7b3562;const {_docSkeleton:_0x424e59,_document:_0xaa4724}=this,{color:_0xcae3e8,name:_0xdd1ea9,ranges:_0x39d17d}=this[_0x33f0f9(0x39e)],_0x5420e7=_0xaa4724[_0x33f0f9(0x3c4)](),{docsLeft:_0xa2b889,docsTop:_0x28fb5a}=_0x5420e7,_0x3128a5=new N[(_0x33f0f9(0x53d))](_0x5420e7,_0x424e59);for(const {startOffset:_0x365958,endOffset:_0x3e7e88,collapsed:_0x3309b2,isActive:_0x1210b8}of _0x39d17d){const _0x843cde=_0x424e59[_0x33f0f9(0x3f5)](_0x365958),_0x1aac9f=_0x424e59[_0x33f0f9(0x3f5)](_0x3e7e88);if(_0x1210b8){const {contentBoxPointGroup:_0x346e10}=_0x3128a5[_0x33f0f9(0x49e)](_0x1aac9f,_0x1aac9f);if(_0x346e10[_0x33f0f9(0x460)]===0x0)continue;this[_0x33f0f9(0x219)](_0xcae3e8,_0x346e10,_0xa2b889,_0x28fb5a,_0xdd1ea9),this[_0x33f0f9(0x536)]=this[_0x33f0f9(0x1d6)]();}if(!_0x3309b2&&_0x843cde&&_0x1aac9f){if(N['isValidRectRange'](_0x843cde,_0x1aac9f)){const _0x29d667=new N['NodePositionConvertToRectRange'](_0x5420e7,_0x424e59),{pointGroup:_0x75ca25}=(_0x7b3562=_0x29d667[_0x33f0f9(0x49e)](_0x843cde,_0x1aac9f))!=null?_0x7b3562:{};if(_0x75ca25==null||_0x75ca25[_0x33f0f9(0x460)]===0x0)continue;this['_drawRectRange'](_0xcae3e8,_0x75ca25,_0xa2b889,_0x28fb5a);}else{const {contentBoxPointGroup:_0x492048}=_0x3128a5[_0x33f0f9(0x49e)](_0x843cde,_0x1aac9f);if(_0x492048[_0x33f0f9(0x460)]===0x0)continue;this[_0x33f0f9(0x338)](_0xcae3e8,_0x492048,_0xa2b889,_0x28fb5a);}}}}[_0x57f41f(0x219)](_0x453623,_0x182df5,_0xf0e344,_0xc45b38,_0x185023){const _0x261472=_0x57f41f,_0x4eacee=this['_getAnchorBounding'](_0x182df5),{left:_0x36143d,top:_0x33e6f5,height:_0x3b3d37}=_0x4eacee,_0x1b8a40=this['_getScale'](),_0xda22d=mi/_0x1b8a40,_0x69a0e3=new O[(_0x261472(0x3b9))](Le+a[_0x261472(0x25c)][_0x261472(0x465)](le),{'left':_0x36143d+_0xf0e344-_0xda22d,'top':_0x33e6f5+_0xc45b38,'height':_0x3b3d37,'width':gi,'fill':_0x453623||O[_0x261472(0x173)](a[_0x261472(0x1a4)][_0x261472(0x318)],0x0),'strokeWidth':_0xda22d,'stroke':fi,'evented':!0x0});this[_0x261472(0x3e7)]=_0x69a0e3,this['_scene'][_0x261472(0x200)](_0x69a0e3,N['TEXT_RANGE_LAYER_INDEX']);const _0x5cb708=new O[(_0x261472(0x3b9))](Le+a[_0x261472(0x25c)][_0x261472(0x465)](le),{'left':_0x36143d+_0xf0e344-_0xda22d,'top':_0x33e6f5+_0xc45b38-je/0x2,'height':je,'width':je,'fill':_0x453623||O[_0x261472(0x173)](a['COLORS'][_0x261472(0x318)],0x0),'strokeWidth':0x0,'stroke':_0x453623||O[_0x261472(0x173)](a[_0x261472(0x1a4)]['black'],0x0),'evented':!0x1});this[_0x261472(0x395)]=_0x5cb708,this[_0x261472(0x1f3)]['addObject'](_0x5cb708,N[_0x261472(0x128)]);const _0x29818e=new Oe(Le+a[_0x261472(0x25c)][_0x261472(0x465)](le),{'left':_0x36143d+_0xf0e344-_0xda22d,'top':_0x33e6f5+_0xc45b38-de,'text':_0x185023,'color':_0x453623});this['_textBubble']=_0x29818e,this['_scene']['addObject'](_0x29818e,N['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x57f41f(0x1d6)](){const _0x414869=_0x57f41f,_0x457698=this[_0x414869(0x3e7)][_0x414869(0x210)][_0x414869(0x362)](()=>{const _0x122c32=_0x414869;this[_0x122c32(0x430)]=!0x0;}),_0x15a688=this[_0x414869(0x3e7)][_0x414869(0x4ed)]['subscribeEvent'](()=>{const _0x2d4aff=_0x414869;this[_0x2d4aff(0x20e)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x2469a8=_0x2d4aff;this[_0x2469a8(0x430)]=!0x1;},0x7d0);});return()=>{const _0x451410=_0x414869;_0x457698[_0x451410(0x373)](),_0x15a688[_0x451410(0x373)]();};}[_0x57f41f(0x338)](_0x4401bb,_0x344a05,_0x223f98,_0x231dcb){const _0x18491e=_0x57f41f,_0x1130a5=new a[(_0x18491e(0x1bb))](_0x4401bb)[_0x18491e(0x28f)](0.2)[_0x18491e(0x3e2)](),_0x26d672=new O['RegularPolygon'](Si+a[_0x18491e(0x25c)][_0x18491e(0x465)](le),{'pointsGroup':_0x344a05,'fill':_0x1130a5||O[_0x18491e(0x173)](a['COLORS'][_0x18491e(0x318)],0.2),'left':_0x223f98,'top':_0x231dcb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x18491e(0x483)][_0x18491e(0x2d0)](_0x26d672),this['_scene']['addObject'](_0x26d672,N[_0x18491e(0x128)]);}[_0x57f41f(0x502)](_0x23c15a,_0x9df610,_0x277101,_0x50636a){const _0x1ba2c6=_0x57f41f,_0x3f71f1=new a[(_0x1ba2c6(0x1bb))](_0x23c15a)[_0x1ba2c6(0x28f)](0.2)[_0x1ba2c6(0x3e2)](),_0x2d550c=new O[(_0x1ba2c6(0x1ea))](vi+a[_0x1ba2c6(0x25c)][_0x1ba2c6(0x465)](le),{'pointsGroup':_0x9df610,'fill':_0x3f71f1||O[_0x1ba2c6(0x173)](a[_0x1ba2c6(0x1a4)][_0x1ba2c6(0x318)],0.2),'left':_0x277101,'top':_0x50636a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1ba2c6(0x2d0)](_0x2d550c),this[_0x1ba2c6(0x1f3)][_0x1ba2c6(0x200)](_0x2d550c,N['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0xaf5e19){const _0x397b19=_0xaf5e19[0x0],_0x5ae09a=_0x397b19[0x0],_0x1869e7=_0x397b19[0x2],{x:_0x35ce6d,y:_0x3fc102}=_0x5ae09a,{x:_0x47fb58,y:_0x1a3505}=_0x1869e7;return{'left':_0x35ce6d,'top':_0x3fc102,'width':_0x47fb58-_0x35ce6d,'height':_0x1a3505-_0x3fc102};}['_getScale'](){const _0x440b74=_0x57f41f,{scaleX:_0x7000b9,scaleY:_0xc7089b}=this[_0x440b74(0x1f3)]['getAncestorScale']();return Math[_0x440b74(0x1d5)](_0x7000b9,_0xc7089b);}}var Ii=Object[_0x57f41f(0x522)],pi=Object[_0x57f41f(0x191)],Ci=(_0x3dfb8e,_0xc4e71e,_0x2de170,_0x80ae8)=>{for(var _0x329bff=_0x80ae8>0x1?void 0x0:_0x80ae8?pi(_0xc4e71e,_0x2de170):_0xc4e71e,_0x434905=_0x3dfb8e['length']-0x1,_0x2dd484;_0x434905>=0x0;_0x434905--)(_0x2dd484=_0x3dfb8e[_0x434905])&&(_0x329bff=(_0x80ae8?_0x2dd484(_0xc4e71e,_0x2de170,_0x329bff):_0x2dd484(_0x329bff))||_0x329bff);return _0x80ae8&&_0x329bff&&Ii(_0xc4e71e,_0x2de170,_0x329bff),_0x329bff;},ve=(_0x297a2f,_0x180fa6)=>(_0xb9281b,_0x44bbc0)=>_0x180fa6(_0xb9281b,_0x44bbc0,_0x297a2f);let Ve=class extends a[_0x57f41f(0x1c5)]{constructor(_0x2d7606,_0x3f85eb,_0x52222c,_0x43923d,_0x59f8d7){const _0xfc1b92=_0x57f41f;super(),u(this,_0xfc1b92(0x4b4),[]),u(this,_0xfc1b92(0x3d5),[]),(this['_context']=_0x2d7606,this[_0xfc1b92(0x3a9)]=_0x3f85eb,this[_0xfc1b92(0x15d)]=_0x52222c,this[_0xfc1b92(0x547)]=_0x43923d,this[_0xfc1b92(0x548)]=_0x59f8d7,this[_0xfc1b92(0x326)]());}['_init'](){const _0x24dbdb=_0x57f41f,_0x47f629=this['_context'][_0x24dbdb(0x1d1)],_0x2e3bc0=this['_docSkeletonManagerService'];this[_0x24dbdb(0x1e2)](v[_0x24dbdb(0x3c7)]([this[_0x24dbdb(0x15d)]['getCollabCursors$'](_0x47f629),this[_0x24dbdb(0x548)][_0x24dbdb(0x21e)]])[_0x24dbdb(0x4bb)](E['map'](([_0x1a53e0,_0x3cc611])=>({'skeleton':_0x2e3bc0[_0x24dbdb(0x413)](),'cursors':[..._0x1a53e0[_0x24dbdb(0x458)]()][_0x24dbdb(0x1b9)](_0x54f35c=>({..._0x54f35c,'color':_0x3cc611[_0x54f35c['color']]}))})))[_0x24dbdb(0x3ee)](_0x444cf5=>{const _0x5264cf=_0x24dbdb;if(this[_0x5264cf(0x444)](),_0x444cf5){const {skeleton:_0x397ec2,cursors:_0x1bb62f}=_0x444cf5;this['_updateCollabCursors'](_0x397ec2,_0x1bb62f);}})),this['_initResize'](),this[_0x24dbdb(0x42d)]();}[_0x57f41f(0x352)](_0x257e1f,_0x40c76c){const _0x31e9fa=_0x57f41f,{scene:_0x56c54f,mainComponent:_0x191ee4}=this[_0x31e9fa(0x355)],_0x35333e=_0x40c76c[_0x31e9fa(0x366)](_0x462a0b=>new ht(_0x462a0b,_0x56c54f,_0x257e1f,_0x191ee4));this[_0x31e9fa(0x4b4)]=_0x35333e,this[_0x31e9fa(0x3d5)]=_0x40c76c;}[_0x57f41f(0x39c)](){const _0x254f58=_0x57f41f;this['_removeCollabCursors']();const {scene:_0x4f7dde,mainComponent:_0x1a1d66}=this['_context'],_0x3ee7c2=this[_0x254f58(0x3a9)]['getSkeleton'](),_0x50c697=this[_0x254f58(0x3d5)][_0x254f58(0x366)](_0x40749d=>new ht(_0x40749d,_0x4f7dde,_0x3ee7c2,_0x1a1d66));this[_0x254f58(0x4b4)]=_0x50c697;}[_0x57f41f(0x444)](){const _0x196b97=_0x57f41f;this[_0x196b97(0x4b4)][_0x196b97(0x50c)](_0x57eb6b=>_0x57eb6b['dispose']()),this[_0x196b97(0x4b4)]=[];}[_0x57f41f(0x42d)](){const _0xcea53d=_0x57f41f,_0x4a9b22=[N[_0xcea53d(0x146)]['id']];this[_0xcea53d(0x1e2)](this['_commandService'][_0xcea53d(0x36c)](_0x18c949=>{const _0x464821=_0xcea53d;_0x4a9b22[_0x464821(0x29a)](_0x18c949['id'])&&_0x18c949[_0x464821(0x15b)][_0x464821(0x1d1)]===this[_0x464821(0x355)][_0x464821(0x1d1)]&&this[_0x464821(0x39c)]();}));}[_0x57f41f(0x272)](){const _0x2a2b8d=_0x57f41f;this[_0x2a2b8d(0x1e2)](a[_0x2a2b8d(0x43e)](this['_context'][_0x2a2b8d(0x541)][_0x2a2b8d(0x1f1)])[_0x2a2b8d(0x4bb)](E[_0x2a2b8d(0x222)](_0xf23ea7=>_0xf23ea7[_0x2a2b8d(0x221)]===O[_0x2a2b8d(0x543)]['resize']),E[_0x2a2b8d(0x3ef)](0x10))[_0x2a2b8d(0x3ee)](()=>{const _0x2efe26=_0x2a2b8d;this[_0x2efe26(0x39c)]();}));}};Ve=Ci([ve(0x1,a[_0x57f41f(0x1ec)](se[_0x57f41f(0x292)])),ve(0x2,a[_0x57f41f(0x1ec)](ne)),ve(0x3,a[_0x57f41f(0x178)]),ve(0x4,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x41a)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends O[_0x57f41f(0x304)]{constructor(_0x4a0aeb,_0x531d60){const _0x100e16=_0x57f41f;super(_0x4a0aeb,_0x531d60),u(this,_0x100e16(0x539)),u(this,_0x100e16(0x416),!0x1),u(this,'_range'),u(this,_0x100e16(0x17e),''),u(this,'_labelPosition','top'),u(this,_0x100e16(0x23e)),(_0x531d60&&this[_0x100e16(0x33d)](_0x531d60),this[_0x100e16(0x210)][_0x100e16(0x362)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x100e16(0x362)](()=>this[_0x100e16(0x33d)]({'hovered':!0x1})));}['setShapeProps'](_0x9221c3){const _0x1f9a9c=_0x57f41f;var _0xd3a1b8,_0x2ba6d1,_0x232e7d,_0x191f1a,_0x2d6df4,_0x4b1d35;this[_0x1f9a9c(0x539)]=(_0xd3a1b8=_0x9221c3[_0x1f9a9c(0x21a)])!=null?_0xd3a1b8:this[_0x1f9a9c(0x539)],this[_0x1f9a9c(0x416)]=(_0x2ba6d1=_0x9221c3['hovered'])!=null?_0x2ba6d1:this[_0x1f9a9c(0x416)],this[_0x1f9a9c(0x17c)]=(_0x232e7d=_0x9221c3['range'])!=null?_0x232e7d:this[_0x1f9a9c(0x17c)],this[_0x1f9a9c(0x17e)]=(_0x191f1a=_0x9221c3[_0x1f9a9c(0x33e)])!=null?_0x191f1a:this[_0x1f9a9c(0x17e)],this[_0x1f9a9c(0x3b1)]=(_0x2d6df4=_0x9221c3[_0x1f9a9c(0x303)])!=null?_0x2d6df4:this[_0x1f9a9c(0x3b1)],this[_0x1f9a9c(0x23e)]=(_0x4b1d35=_0x9221c3[_0x1f9a9c(0x39d)])!=null?_0x4b1d35:this[_0x1f9a9c(0x23e)],this[_0x1f9a9c(0x1b1)]({'width':_0x9221c3['width'],'height':_0x9221c3[_0x1f9a9c(0x261)]});}[_0x57f41f(0x264)](_0x3ae152){const _0x3c0fed=_0x57f41f,{row:_0x3e9e33,column:_0x408179}=_0x3ae152;if(_0x3e9e33>=this[_0x3c0fed(0x17c)][_0x3c0fed(0x37a)]&&_0x3e9e33<=this[_0x3c0fed(0x17c)]['endRow']&&_0x408179>=this[_0x3c0fed(0x17c)][_0x3c0fed(0x282)]&&_0x408179<=this[_0x3c0fed(0x17c)][_0x3c0fed(0x45e)]){this[_0x3c0fed(0x33d)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x57f41f(0x51b)](_0x2491d8){return!0x1;}['_draw'](_0x590bd6){const _0x379e5c=_0x57f41f;O[_0x379e5c(0x3b9)]['drawWith'](_0x590bd6,{'width':this[_0x379e5c(0x1a3)],'height':this[_0x379e5c(0x261)],'strokeWidth':bi,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x379e5c(0x23e)]}),this['_hovered']&&(_0x590bd6[_0x379e5c(0x453)](),_0x590bd6[_0x379e5c(0x451)](0x1,0x0,0x0,0x1,this[_0x379e5c(0x1a3)],this[_0x379e5c(0x3b1)]===_0x379e5c(0x336)?0x0:-de),Oe[_0x379e5c(0x300)](_0x590bd6,{'text':this[_0x379e5c(0x17e)],'color':this[_0x379e5c(0x539)]}),_0x590bd6[_0x379e5c(0x35c)]());}}var Ti=Object[_0x57f41f(0x522)],Ri=Object[_0x57f41f(0x191)],Oi=(_0x4f9e63,_0xee171f,_0x5a55e9,_0x1a6e38)=>{const _0x41d449=_0x57f41f;for(var _0x58534a=_0x1a6e38>0x1?void 0x0:_0x1a6e38?Ri(_0xee171f,_0x5a55e9):_0xee171f,_0x2ce54f=_0x4f9e63[_0x41d449(0x460)]-0x1,_0x501250;_0x2ce54f>=0x0;_0x2ce54f--)(_0x501250=_0x4f9e63[_0x2ce54f])&&(_0x58534a=(_0x1a6e38?_0x501250(_0xee171f,_0x5a55e9,_0x58534a):_0x501250(_0x58534a))||_0x58534a);return _0x1a6e38&&_0x58534a&&Ti(_0xee171f,_0x5a55e9,_0x58534a),_0x58534a;},$e=(_0x34c1fd,_0x547fdd)=>(_0x3d0419,_0x1a789d)=>_0x547fdd(_0x3d0419,_0x1a789d,_0x34c1fd);const Di=0x1389;let We=class extends a['RxDisposable']{constructor(_0xc0eb7a,_0x395f2e,_0x3a82f5,_0x3baffc){const _0x29806a=_0x57f41f;super(),u(this,_0x29806a(0x3d5),new Set()),u(this,'_lastPointer',null),(this['_context']=_0xc0eb7a,this[_0x29806a(0x4cf)]=_0x395f2e,this[_0x29806a(0x15d)]=_0x3a82f5,this['_themeService']=_0x3baffc,this['_init']());}[_0x57f41f(0x326)](){const _0xca293e=_0x57f41f;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](E['takeUntil'](this[_0xca293e(0x43a)]),E[_0xca293e(0x237)](_0x4234da=>{const _0x2b332a=_0xca293e;if(_0x4234da){const _0x3479b5=_0x4234da[_0x2b332a(0x24b)];return v[_0x2b332a(0x3c7)](this[_0x2b332a(0x15d)][_0x2b332a(0x2cb)](this[_0x2b332a(0x355)][_0x2b332a(0x1d1)]),this[_0x2b332a(0x548)]['currentTheme$'])[_0x2b332a(0x4bb)](E['map'](([_0x5f103e,_0x38df32])=>{const _0x450466=new Map();return _0x5f103e['forEach']((_0xf0acc8,_0x278230)=>{const _0x1d5fe3=_0x1fa7;if(_0xf0acc8[_0x1d5fe3(0x2f6)]===_0x3479b5){const _0x196196={..._0xf0acc8};_0x196196['color']=_0x38df32[_0xf0acc8[_0x1d5fe3(0x21a)]],_0x450466[_0x1d5fe3(0x20b)](_0x278230,_0x196196);}}),{'skeleton':_0x4234da,'cursors':_0x450466};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0xca293e(0x3ee)](({skeleton:_0x570fe9,cursors:_0x2dc27b})=>{this['_removeCollabCursors'](),_0x570fe9&&this['_updateCollabCursors'](_0x570fe9,_0x2dc27b);}),this[_0xca293e(0x4cf)][_0xca293e(0x447)][_0xca293e(0x3ee)](_0x40198b=>{const _0x3f8857=_0xca293e;if(_0x40198b==null)return;const {skeleton:_0x3a251b}=_0x40198b,{scene:_0x244b13}=this[_0x3f8857(0x355)];_0x244b13[_0x3f8857(0x534)][_0x3f8857(0x362)](a[_0x3f8857(0x189)](_0x23022a=>{const _0x50a453=_0x3f8857;var _0x1a7837,_0x43fe3b;const {offsetX:_0x5619ef,offsetY:_0x1208c8}=_0x23022a,{x:_0x254042,y:_0x2085eb}=_0x244b13[_0x50a453(0x4e3)](O[_0x50a453(0x2b4)][_0x50a453(0x15a)]([_0x5619ef,_0x1208c8])),{scaleX:_0x3083c7,scaleY:_0x394255}=_0x244b13[_0x50a453(0x387)](),_0x1a203e=_0x244b13[_0x50a453(0x4cc)](te[_0x50a453(0x346)][_0x50a453(0x174)]),_0x3fc217=_0x244b13['getVpScrollXYInfoByPosToVp'](O[_0x50a453(0x2b4)][_0x50a453(0x15a)]([_0x254042,_0x2085eb]),_0x1a203e),_0x257bf2=_0x3a251b[_0x50a453(0x4be)](_0x5619ef,_0x1208c8,_0x3083c7,_0x394255,_0x3fc217);((_0x1a7837=this[_0x50a453(0x1ad)])==null?void 0x0:_0x1a7837['column'])===_0x257bf2[_0x50a453(0x244)]&&((_0x43fe3b=this[_0x50a453(0x1ad)])==null?void 0x0:_0x43fe3b[_0x50a453(0x16f)])===_0x257bf2[_0x50a453(0x16f)]||this[_0x50a453(0x3d5)]['forEach'](_0x55ebee=>{const _0x3540b5=_0x50a453;_0x55ebee[_0x3540b5(0x264)](_0x257bf2);});},0x64));});}[_0x57f41f(0x352)](_0x20d334,_0x8fc22c){const _0x52a634=_0x57f41f;var _0x5b6887;const _0x3e82c0=(_0x5b6887=this[_0x52a634(0x4cf)][_0x52a634(0x3ad)]())==null?void 0x0:_0x5b6887[_0x52a634(0x503)];if(!_0x3e82c0)return;const _0x8f8269=this['_getSheetObject']();if(!_0x8f8269)return;this[_0x52a634(0x3d5)]['forEach'](_0xf9074a=>{const _0x45858c=_0x52a634;_0xf9074a[_0x45858c(0x18d)]();});const {scene:_0xa57084}=_0x8f8269,_0x2b4e92=yi(Array['from'](_0x8fc22c[_0x52a634(0x458)]()))[_0x52a634(0x366)](_0xe3831b=>{const _0x53b994=_0x52a634,{color:_0x357156,range:_0x1afd4b,name:_0x68233a,selection:_0x3f7f40,sheetID:_0x434182}=_0xe3831b,{startColumn:_0x1cf6f8,startRow:_0x3eef5e,endColumn:_0x3c0c04,endRow:_0x59ccc5}=_0x1afd4b,_0x531ef7=te['getCoordByCell'](_0x3eef5e,_0x1cf6f8,_0xa57084,_0x3e82c0),_0x14c9af=te[_0x53b994(0x4ae)](_0x59ccc5,_0x3c0c04,_0xa57084,_0x3e82c0),{columnHeaderHeightAndMarginTop:_0x5248af}=_0x3e82c0,{startX:_0x1de0ec,startY:_0x2f719f}=_0x531ef7,{endX:_0x2c3b72,endY:_0x7420f0}=_0x14c9af,_0x88e26e=_0x2c3b72-_0x1de0ec,_0x2de171=_0x7420f0-_0x2f719f,_0x2f5dd6={'labelPosition':_0x2f719f-_0x5248af>=de?_0x53b994(0x361):_0x53b994(0x336),'sheetID':_0x434182,'range':_0x1afd4b,'color':_0x357156,'name':_0x68233a,'selection':_0x3f7f40,'left':_0x1de0ec,'top':_0x2f719f,'width':_0x88e26e,'height':_0x2de171,'evented':!0x1,'zIndex':Di};return new Pt(_0x68233a,_0x2f5dd6);});_0xa57084['addObjects'](_0x2b4e92,Ei),this[_0x52a634(0x3d5)]=new Set(_0x2b4e92);}['_removeCollabCursors'](){const _0x3d660f=_0x57f41f;var _0x4737d2;(_0x4737d2=this[_0x3d660f(0x3d5)])==null||_0x4737d2[_0x3d660f(0x50c)](_0x2908ab=>_0x2908ab[_0x3d660f(0x3a4)]());}[_0x57f41f(0x519)](){const _0x2adacd=_0x57f41f;return te['getSheetObject'](this['_context'][_0x2adacd(0x422)],this[_0x2adacd(0x355)]);}};We=Oi([$e(0x1,a[_0x57f41f(0x1ec)](te[_0x57f41f(0x42c)])),$e(0x2,a[_0x57f41f(0x1ec)](ne)),$e(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x41a)]))],We);function yi(_0x46a53d){const _0x5f0a66=_0x57f41f,_0x3222d6=new Map();return _0x46a53d['forEach'](_0x3ae5ce=>{const _0xbaa05b=_0x1fa7;if(_0x3222d6[_0xbaa05b(0x2c9)](_0x3ae5ce[_0xbaa05b(0x486)])){const _0x265ee4=_0x3222d6[_0xbaa05b(0x31f)](_0x3ae5ce[_0xbaa05b(0x486)]);_0x265ee4[_0xbaa05b(0x33e)]+=',\x20'+_0x3ae5ce[_0xbaa05b(0x33e)];}else _0x3222d6[_0xbaa05b(0x20b)](_0x3ae5ce['selection'],_0x3ae5ce);}),Array[_0x5f0a66(0x180)](_0x3222d6[_0x5f0a66(0x458)]());}var M=function(){const _0x1716a3=_0x57f41f;return M=Object['assign']||function(_0x18d58a){const _0x38f7e=_0x1fa7;for(var _0x3aef3b,_0x57621b=0x1,_0x1a44bc=arguments['length'];_0x57621b<_0x1a44bc;_0x57621b++){_0x3aef3b=arguments[_0x57621b];for(var _0x527a55 in _0x3aef3b)Object[_0x38f7e(0x29d)][_0x38f7e(0x42a)][_0x38f7e(0x19d)](_0x3aef3b,_0x527a55)&&(_0x18d58a[_0x527a55]=_0x3aef3b[_0x527a55]);}return _0x18d58a;},M[_0x1716a3(0x254)](this,arguments);},Ui=function(_0x1a7d51,_0x58bdf6){const _0x1dbff3=_0x57f41f;var _0x4306be={};for(var _0x6cb2cf in _0x1a7d51)Object[_0x1dbff3(0x29d)][_0x1dbff3(0x42a)]['call'](_0x1a7d51,_0x6cb2cf)&&_0x58bdf6['indexOf'](_0x6cb2cf)<0x0&&(_0x4306be[_0x6cb2cf]=_0x1a7d51[_0x6cb2cf]);if(_0x1a7d51!=null&&typeof Object[_0x1dbff3(0x39b)]=='function'){for(var _0x37b12e=0x0,_0x6cb2cf=Object['getOwnPropertySymbols'](_0x1a7d51);_0x37b12e<_0x6cb2cf[_0x1dbff3(0x460)];_0x37b12e++)_0x58bdf6[_0x1dbff3(0x456)](_0x6cb2cf[_0x37b12e])<0x0&&Object[_0x1dbff3(0x29d)][_0x1dbff3(0x470)][_0x1dbff3(0x19d)](_0x1a7d51,_0x6cb2cf[_0x37b12e])&&(_0x4306be[_0x6cb2cf[_0x37b12e]]=_0x1a7d51[_0x6cb2cf[_0x37b12e]]);}return _0x4306be;},Ze=P[_0x57f41f(0x3b8)](function(_0x22c4c3,_0x516bd3){const _0x389c19=_0x57f41f;var _0x2deb52=_0x22c4c3[_0x389c19(0x21f)],_0x1626ec=_0x22c4c3['id'],_0x196b2f=_0x22c4c3[_0x389c19(0x142)],_0x58b37d=_0x22c4c3[_0x389c19(0x185)],_0x2eafea=Ui(_0x22c4c3,[_0x389c19(0x21f),'id','className',_0x389c19(0x185)]),_0x210329='univerjs-icon\x20univerjs-icon-'[_0x389c19(0x22d)](_0x1626ec,'\x20')[_0x389c19(0x22d)](_0x196b2f||'')[_0x389c19(0x388)](),_0xb949aa=P['useRef']('_'[_0x389c19(0x22d)](Ni()));return wt(_0x2deb52,''[_0x389c19(0x22d)](_0x1626ec),{'defIds':_0x2deb52[_0x389c19(0x3e4)],'idSuffix':_0xb949aa['current']},M({'ref':_0x516bd3,'className':_0x210329},_0x2eafea),_0x58b37d);});function wt(_0x15c729,_0x11a4ae,_0x5a5524,_0x4ded74,_0x387b4b){const _0x2c08b5=_0x57f41f;return P[_0x2c08b5(0x505)](_0x15c729[_0x2c08b5(0x3f3)],M(M({'key':_0x11a4ae},Pi(_0x15c729,_0x5a5524,_0x387b4b)),_0x4ded74),(wi(_0x15c729,_0x5a5524)[_0x2c08b5(0x251)]||[])[_0x2c08b5(0x366)](function(_0x559106,_0x2f3af1){const _0x22af81=_0x2c08b5;return wt(_0x559106,''['concat'](_0x11a4ae,'-')[_0x22af81(0x22d)](_0x15c729[_0x22af81(0x3f3)],'-')[_0x22af81(0x22d)](_0x2f3af1),_0x5a5524,void 0x0,_0x387b4b);}));}function Pi(_0x3320eb,_0x171ed8,_0x48a0dd){const _0x239fb6=_0x57f41f;var _0x569d15=M({},_0x3320eb['attrs']);_0x48a0dd!=null&&_0x48a0dd[_0x239fb6(0x1d2)]&&_0x569d15[_0x239fb6(0x512)]==='colorChannel1'&&(_0x569d15['fill']=_0x48a0dd['colorChannel1']);var _0x30e32b=_0x171ed8[_0x239fb6(0x3e4)];return!_0x30e32b||_0x30e32b[_0x239fb6(0x460)]===0x0||(_0x3320eb[_0x239fb6(0x3f3)]===_0x239fb6(0x175)&&_0x569d15[_0x239fb6(0x1bc)]&&(_0x569d15[_0x239fb6(0x1bc)]=_0x569d15[_0x239fb6(0x1bc)]+_0x171ed8[_0x239fb6(0x4dd)]),Object[_0x239fb6(0x424)](_0x569d15)[_0x239fb6(0x50c)](function(_0x597ade){const _0x1a2095=_0x239fb6;var _0x4294ac=_0x597ade[0x0],_0x4ae163=_0x597ade[0x1];typeof _0x4ae163=='string'&&(_0x569d15[_0x4294ac]=_0x4ae163[_0x1a2095(0x132)](/url\(#(.*)\)/,_0x1a2095(0x23b)[_0x1a2095(0x22d)](_0x171ed8[_0x1a2095(0x4dd)],')')));})),_0x569d15;}function wi(_0x3d2a0e,_0x17335e){const _0x3f02c2=_0x57f41f;var _0x453dd7,_0x4559ff=_0x17335e[_0x3f02c2(0x3e4)];return!_0x4559ff||_0x4559ff[_0x3f02c2(0x460)]===0x0?_0x3d2a0e:_0x3d2a0e[_0x3f02c2(0x3f3)]===_0x3f02c2(0x148)&&(!((_0x453dd7=_0x3d2a0e[_0x3f02c2(0x251)])===null||_0x453dd7===void 0x0)&&_0x453dd7['length'])?M(M({},_0x3d2a0e),{'children':_0x3d2a0e[_0x3f02c2(0x251)]['map'](function(_0x126d3d){const _0x51db87=_0x3f02c2;return typeof _0x126d3d[_0x51db87(0x3e1)]['id']==_0x51db87(0x2a8)&&_0x4559ff&&_0x4559ff[_0x51db87(0x456)](_0x126d3d['attrs']['id'])>-0x1?M(M({},_0x126d3d),{'attrs':M(M({},_0x126d3d[_0x51db87(0x3e1)]),{'id':_0x126d3d[_0x51db87(0x3e1)]['id']+_0x17335e[_0x51db87(0x4dd)]})}):_0x126d3d;})}):_0x3d2a0e;}function Ni(){const _0x2d2d2b=_0x57f41f;return Math[_0x2d2d2b(0x2f7)]()['toString'](0x24)[_0x2d2d2b(0x3ba)](0x2,0x8);}Ze['displayName']=_0x57f41f(0x480);var Mi={'tag':_0x57f41f(0x171),'attrs':{'fill':_0x57f41f(0x20d),'viewBox':_0x57f41f(0x47e),'width':_0x57f41f(0x206),'height':_0x57f41f(0x206)},'children':[{'tag':'g','attrs':{'clipPath':_0x57f41f(0x14c)},'children':[{'tag':'path','attrs':{'stroke':_0x57f41f(0x2ec),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x57f41f(0x477),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x57f41f(0x148),'attrs':{},'children':[{'tag':_0x57f41f(0x48d),'attrs':{'id':_0x57f41f(0x46f)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x57f41f(0x18e)}}]}]}],'defIds':[_0x57f41f(0x46f)]},Nt=P[_0x57f41f(0x3b8)](function(_0x5f4e9f,_0x18bed1){const _0x314cc8=_0x57f41f;return P['createElement'](Ze,Object[_0x314cc8(0x1c2)]({},_0x5f4e9f,{'id':_0x314cc8(0x42b),'ref':_0x18bed1,'icon':Mi}));});Nt[_0x57f41f(0x3d9)]=_0x57f41f(0x32e);var Ai={'tag':_0x57f41f(0x171),'attrs':{'fill':'none','viewBox':_0x57f41f(0x44c),'width':_0x57f41f(0x206),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x57f41f(0x35f)},'children':[{'tag':_0x57f41f(0x1a6),'attrs':{'stroke':_0x57f41f(0x2ec),'d':_0x57f41f(0x140),'strokeLinecap':_0x57f41f(0x477),'strokeLinejoin':_0x57f41f(0x477),'strokeWidth':1.2}}]},{'tag':_0x57f41f(0x148),'attrs':{},'children':[{'tag':_0x57f41f(0x48d),'attrs':{'id':_0x57f41f(0x212)},'children':[{'tag':'path','attrs':{'fill':_0x57f41f(0x3a3),'d':_0x57f41f(0x18e),'transform':_0x57f41f(0x2fb)}}]}]}],'defIds':[_0x57f41f(0x212)]},Mt=P[_0x57f41f(0x3b8)](function(_0x46e702,_0x12434c){const _0x488ff7=_0x57f41f;return P['createElement'](Ze,Object[_0x488ff7(0x1c2)]({},_0x46e702,{'id':_0x488ff7(0x426),'ref':_0x12434c,'icon':Ai}));});Mt[_0x57f41f(0x3d9)]=_0x57f41f(0x147);function At(_0x3cde9a){const _0x2455ff=_0x57f41f;var _0x1f15eb,_0x230d68,_0x4abfbf='';if(typeof _0x3cde9a=='string'||typeof _0x3cde9a==_0x2455ff(0x1fe))_0x4abfbf+=_0x3cde9a;else{if(typeof _0x3cde9a==_0x2455ff(0x412)){if(Array[_0x2455ff(0x2f8)](_0x3cde9a)){var _0x2873c1=_0x3cde9a[_0x2455ff(0x460)];for(_0x1f15eb=0x0;_0x1f15eb<_0x2873c1;_0x1f15eb++)_0x3cde9a[_0x1f15eb]&&(_0x230d68=At(_0x3cde9a[_0x1f15eb]))&&(_0x4abfbf&&(_0x4abfbf+='\x20'),_0x4abfbf+=_0x230d68);}else{for(_0x230d68 in _0x3cde9a)_0x3cde9a[_0x230d68]&&(_0x4abfbf&&(_0x4abfbf+='\x20'),_0x4abfbf+=_0x230d68);}}}return _0x4abfbf;}function Li(){const _0x16c0cf=_0x57f41f;for(var _0x7e538d,_0x453c86,_0x28e449=0x0,_0x257dfe='',_0x39a203=arguments[_0x16c0cf(0x460)];_0x28e449<_0x39a203;_0x28e449++)(_0x7e538d=arguments[_0x28e449])&&(_0x453c86=At(_0x7e538d))&&(_0x257dfe&&(_0x257dfe+='\x20'),_0x257dfe+=_0x453c86);return _0x257dfe;}const ji=_0x57f41f(0x18a),$i=_0x57f41f(0x313),Hi=_0x57f41f(0x3d2),xi='univer-online',ki=_0x57f41f(0x33f),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x25f2cf){const _0x227696=_0x57f41f;switch(_0x25f2cf){case U['OFFLINE']:return _0x227696(0x535);case U[_0x227696(0x21c)]:return'collabStatus.conflict';case U['FETCH_MISS']:return _0x227696(0x4ca);case U[_0x227696(0x233)]:return _0x227696(0x215);case U[_0x227696(0x508)]:case U['AWAITING']:case U['AWAITING_WITH_PENDING']:return _0x227696(0x133);case U[_0x227696(0x3c5)]:return'collabStatus.synced';}}function Lt(_0x1ec028){const _0x4657a5=_0x57f41f,{status$:_0x4c3dd5}=_0x1ec028,_0x5bb162=A[_0x4657a5(0x3f9)](_0x4c3dd5,U['NOT_COLLAB']),_0x462bb7=a[_0x4657a5(0x2a9)](a['LocaleService']),_0x2408ae=a[_0x4657a5(0x2a9)](exports[_0x4657a5(0x19b)]),_0x547e5f=_0x5bb162!==U[_0x4657a5(0x2d2)],_0x2edbe7=_0x462bb7['t'](Bi(_0x5bb162)),_0x3e1d7a=Li(he['onlineStatus'],{[he[_0x4657a5(0x398)]]:_0x547e5f,[he['offline']]:!_0x547e5f}),_0x47ba26=_0x547e5f?P[_0x4657a5(0x505)](Mt,null):P[_0x4657a5(0x505)](Nt,null),_0x1bb165=P['useCallback'](()=>{const _0x5482b9=_0x4657a5;_0x547e5f||_0x2408ae[_0x5482b9(0x17f)]();},[_0x547e5f,_0x2408ae]);function _0x48866a(){const _0x284395=_0x4657a5;return P[_0x284395(0x505)](_0x284395(0x18b),{'className':_0x3e1d7a,'onClick':_0x1bb165},P[_0x284395(0x505)](_0x284395(0x18b),{'className':he[_0x284395(0x2ef)]},_0x47ba26),P['createElement'](_0x284395(0x18b),{'className':he[_0x284395(0x298)]},_0x2edbe7));}return _0x547e5f?_0x48866a():P[_0x4657a5(0x505)](X['Tooltip'],{'title':_0x462bb7['t'](_0x4657a5(0x3ca))},_0x48866a());}var Vi=Object['defineProperty'],Wi=Object[_0x57f41f(0x191)],Fi=(_0x41c816,_0x46c83b,_0x2373af,_0x317377)=>{const _0x5470f5=_0x57f41f;for(var _0x13d3e6=_0x317377>0x1?void 0x0:_0x317377?Wi(_0x46c83b,_0x2373af):_0x46c83b,_0x22d2b6=_0x41c816[_0x5470f5(0x460)]-0x1,_0x195ce2;_0x22d2b6>=0x0;_0x22d2b6--)(_0x195ce2=_0x41c816[_0x22d2b6])&&(_0x13d3e6=(_0x317377?_0x195ce2(_0x46c83b,_0x2373af,_0x13d3e6):_0x195ce2(_0x13d3e6))||_0x13d3e6);return _0x317377&&_0x13d3e6&&Vi(_0x46c83b,_0x2373af,_0x13d3e6),_0x13d3e6;},ge=(_0x518d9b,_0x1842dd)=>(_0x4d272d,_0x41ea69)=>_0x1842dd(_0x4d272d,_0x41ea69,_0x518d9b);exports[_0x57f41f(0x2bf)]=class extends a['Disposable']{constructor(_0x59d361,_0x166ca9,_0x36e423,_0x112d56){const _0x1ede16=_0x57f41f;super(),u(this,_0x1ede16(0x524),new v['BehaviorSubject'](U[_0x1ede16(0x233)])),(this[_0x1ede16(0x131)]=_0x59d361,this['_uiPartsService']=_0x166ca9,this[_0x1ede16(0x331)]=_0x36e423,this[_0x1ede16(0x186)]=_0x112d56,this[_0x1ede16(0x2ab)](),this[_0x1ede16(0x37c)]());}[_0x57f41f(0x37c)](){const _0x3cf3e1=_0x57f41f;this[_0x3cf3e1(0x1e2)](this[_0x3cf3e1(0x131)]['focused$'][_0x3cf3e1(0x4bb)](v[_0x3cf3e1(0x237)](()=>{const _0x5b7c8b=_0x3cf3e1,_0x4363a6=this[_0x5b7c8b(0x131)][_0x5b7c8b(0x324)]();return _0x4363a6?this[_0x5b7c8b(0x186)][_0x5b7c8b(0x4c9)](_0x4363a6[_0x5b7c8b(0x263)]()):v['of'](null);}),v[_0x3cf3e1(0x237)](_0x2016e5=>_0x2016e5?_0x2016e5[_0x3cf3e1(0x26c)]:v['of'](U[_0x3cf3e1(0x233)])))[_0x3cf3e1(0x3ee)](_0x5aa6e5=>{const _0x360070=_0x3cf3e1;this['_status$'][_0x360070(0x49c)](_0x5aa6e5);}));}[_0x57f41f(0x2ab)](){const _0x140af2=_0x57f41f;this[_0x140af2(0x1e2)](this['_uiPartsService'][_0x140af2(0x4ec)](A[_0x140af2(0x504)][_0x140af2(0x43d)],()=>a['connectInjector'](Gi({'status$':this['_status$'][_0x140af2(0x41e)]()}),this[_0x140af2(0x331)])));}},exports['DesktopCollaborationStatusDisplayController']=Fi([ge(0x0,a['IUniverInstanceService']),ge(0x1,A[_0x57f41f(0x228)]),ge(0x2,a['Inject'](a[_0x57f41f(0x410)])),ge(0x3,a[_0x57f41f(0x1ec)](exports[_0x57f41f(0x34d)]))],exports['DesktopCollaborationStatusDisplayController']);function Gi(_0x43de61){const {status$:_0xdeadbe}=_0x43de61;return function(){return P['createElement'](Lt,{'status$':_0xdeadbe});};}const Qe=a['createIdentifier'](_0x57f41f(0x1f5));var Yi=Object[_0x57f41f(0x522)],Ki=Object[_0x57f41f(0x191)],Xi=(_0x1f4c92,_0x357d1c,_0x4f07ea,_0x374105)=>{const _0x3008bb=_0x57f41f;for(var _0x28508e=_0x374105>0x1?void 0x0:_0x374105?Ki(_0x357d1c,_0x4f07ea):_0x357d1c,_0x20b7f0=_0x1f4c92[_0x3008bb(0x460)]-0x1,_0x23bb6f;_0x20b7f0>=0x0;_0x20b7f0--)(_0x23bb6f=_0x1f4c92[_0x20b7f0])&&(_0x28508e=(_0x374105?_0x23bb6f(_0x357d1c,_0x4f07ea,_0x28508e):_0x23bb6f(_0x28508e))||_0x28508e);return _0x374105&&_0x28508e&&Yi(_0x357d1c,_0x4f07ea,_0x28508e),_0x28508e;},ee=(_0x248b96,_0x4e49da)=>(_0x4764d2,_0x35393d)=>_0x4e49da(_0x4764d2,_0x35393d,_0x248b96);exports[_0x57f41f(0x327)]=class extends a[_0x57f41f(0x1c5)]{constructor(_0xa1cabe,_0x31e264,_0x3db53e,_0x126c15,_0x4c0229,_0x264ed1){const _0x13a280=_0x57f41f;super(),this[_0x13a280(0x4e1)]=_0xa1cabe,this[_0x13a280(0x181)]=_0x31e264,this['_commandService']=_0x3db53e,this['_localCacheService']=_0x126c15,this['_snapshotService']=_0x4c0229,_0x264ed1?_0x264ed1==null||_0x264ed1[_0x13a280(0x392)]()[_0x13a280(0x407)](()=>this[_0x13a280(0x326)]()):(this['_logService'][_0x13a280(0x2e5)](_0x13a280(0x4b1),_0x13a280(0x204)),this[_0x13a280(0x326)]());}async[_0x57f41f(0x326)](){const _0x39b44b=_0x57f41f,_0x15254d=this[_0x39b44b(0x4e1)][_0x39b44b(0x41d)]('unit'),_0x4d6b80=this[_0x39b44b(0x4e1)][_0x39b44b(0x41d)](_0x39b44b(0x221));if(!_0x15254d||!_0x4d6b80){this[_0x39b44b(0x181)][_0x39b44b(0x2e5)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x4d6b80)){case $[_0x39b44b(0x197)]:{const _0x549eb6=await this['_loadSheet'](_0x15254d);this[_0x39b44b(0x1bf)](_0x549eb6);break;}case $['UNIVER_DOC']:{await this[_0x39b44b(0x432)](_0x15254d);break;}default:{this[_0x39b44b(0x181)]['error'](_0x39b44b(0x4b1),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x57f41f(0x1bf)](_0x93e00){const _0x5a7acc=_0x57f41f;await this[_0x5a7acc(0x4ce)](_0x93e00),_0x93e00[_0x5a7acc(0x277)][_0x5a7acc(0x4bb)](v[_0x5a7acc(0x12b)](this[_0x5a7acc(0x43a)]))[_0x5a7acc(0x3ee)](_0x45719d=>{const _0x471ed4=_0x5a7acc;_0x45719d&&this[_0x471ed4(0x2f2)](_0x45719d);}),this[_0x5a7acc(0x4e1)]['urlChange$']['pipe'](v[_0x5a7acc(0x12b)](this[_0x5a7acc(0x43a)]))['subscribe'](()=>this[_0x5a7acc(0x4ce)](_0x93e00));}[_0x57f41f(0x2f2)](_0x873a1,_0x42020b=!0x1){const _0x846eb6=_0x57f41f,_0x597785=this[_0x846eb6(0x4e1)][_0x846eb6(0x41d)](_0x846eb6(0x44a));_0x873a1[_0x846eb6(0x255)]()!==_0x597785&&this['_urlService']['setParam'](_0x846eb6(0x44a),_0x873a1[_0x846eb6(0x255)](),_0x42020b);}async[_0x57f41f(0x4ce)](_0x2c9fe5){const _0x28b92f=_0x57f41f;var _0xa3e27a;const _0x2f07e4=this[_0x28b92f(0x4e1)][_0x28b92f(0x41d)](_0x28b92f(0x44a));if(!_0x2f07e4||!_0x2c9fe5[_0x28b92f(0x446)](_0x2f07e4)){const _0x8e822b=_0x2c9fe5[_0x28b92f(0x4ff)]()[0x0],_0x27e495=_0x2c9fe5['getSheetBySheetId'](_0x8e822b);if(!_0x27e495)return;this[_0x28b92f(0x2f2)](_0x27e495,!0x0),await this[_0x28b92f(0x547)][_0x28b92f(0x449)](C[_0x28b92f(0x34c)]['id'],{'unitId':_0x2c9fe5['getUnitId'](),'subUnitId':_0x8e822b});return;}((_0xa3e27a=_0x2c9fe5[_0x28b92f(0x2ad)]())==null?void 0x0:_0xa3e27a[_0x28b92f(0x255)]())!==_0x2f07e4&&await this[_0x28b92f(0x547)][_0x28b92f(0x449)](C[_0x28b92f(0x34c)]['id'],{'unitId':_0x2c9fe5['getUnitId'](),'subUnitId':_0x2f07e4});}async[_0x57f41f(0x1ca)](_0x23195e){const _0x42a5f4=_0x57f41f;let _0x1fcf38=0x0;const _0x2a8c8b=await this['_localCacheService'][_0x42a5f4(0x1e0)](_0x23195e);return _0x2a8c8b&&(_0x2a8c8b[_0x42a5f4(0x47a)]||_0x2a8c8b[_0x42a5f4(0x506)][_0x42a5f4(0x460)]!==0x0)&&(_0x1fcf38=_0x2a8c8b[_0x42a5f4(0x183)]),_0x1fcf38===0x0&&this[_0x42a5f4(0x181)][_0x42a5f4(0x2e5)](_0x42a5f4(0x4b1),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x42a5f4(0x16b)][_0x42a5f4(0x420)](_0x23195e,_0x1fcf38);}async['_loadDoc'](_0x151ad7){const _0xbf976b=_0x57f41f;let _0x2b8670=0x0;const _0x219152=await this['_localCacheService'][_0xbf976b(0x1e0)](_0x151ad7);return _0x219152&&(_0x219152[_0xbf976b(0x47a)]||_0x219152[_0xbf976b(0x506)]['length']!==0x0)&&(_0x2b8670=_0x219152[_0xbf976b(0x183)]),_0x2b8670===0x0&&this[_0xbf976b(0x181)][_0xbf976b(0x2e5)]('[DataLoaderController]',_0xbf976b(0x30f)),this['_snapshotService']['loadDoc'](_0x151ad7,_0x2b8670);}},exports[_0x57f41f(0x327)]=Xi([ee(0x0,Qe),ee(0x1,a['ILogService']),ee(0x2,a['ICommandService']),ee(0x3,a['Inject'](exports[_0x57f41f(0x4a8)])),ee(0x4,a['Inject'](_[_0x57f41f(0x20f)])),ee(0x5,a[_0x57f41f(0x177)](Kt[_0x57f41f(0x2d8)]))],exports[_0x57f41f(0x327)]);var qi=Object[_0x57f41f(0x522)],zi=Object[_0x57f41f(0x191)],Ji=(_0x1417df,_0x2180ee,_0x9c0f3,_0x3951de)=>{const _0x11b160=_0x57f41f;for(var _0xd3d246=_0x3951de>0x1?void 0x0:_0x3951de?zi(_0x2180ee,_0x9c0f3):_0x2180ee,_0x528764=_0x1417df[_0x11b160(0x460)]-0x1,_0x20de58;_0x528764>=0x0;_0x528764--)(_0x20de58=_0x1417df[_0x528764])&&(_0xd3d246=(_0x3951de?_0x20de58(_0x2180ee,_0x9c0f3,_0xd3d246):_0x20de58(_0xd3d246))||_0xd3d246);return _0x3951de&&_0xd3d246&&qi(_0x2180ee,_0x9c0f3,_0xd3d246),_0xd3d246;},_t=(_0x59d900,_0x35fd6d)=>(_0x2cffb0,_0x4d93d3)=>_0x35fd6d(_0x2cffb0,_0x4d93d3,_0x59d900);const Zi=_0x57f41f(0x4a0),Qi=_0x57f41f(0x382);let Ce=class extends a[_0x57f41f(0x1b5)]{constructor(_0x1eebd2,_0x5ae679){const _0x404a60=_0x57f41f;super(),this['_univerInstanceService']=_0x1eebd2,this[_0x404a60(0x172)]=_0x5ae679,this[_0x404a60(0x326)]();}[_0x57f41f(0x326)](){const _0x46be79=_0x57f41f;this[_0x46be79(0x1e2)](this['_univerInstanceService'][_0x46be79(0x490)][_0x46be79(0x3ee)](()=>{const _0x16967f=_0x46be79;var _0x102b78;const _0x4cb8d3=this[_0x16967f(0x131)][_0x16967f(0x324)]();let _0x135f87=(_0x102b78=this[_0x16967f(0x172)][_0x16967f(0x37f)](Zi))!=null?_0x102b78:Qi;_0x4cb8d3 instanceof a['Workbook']&&(_0x135f87=_0x4cb8d3['name']),document[_0x16967f(0x164)]=_0x135f87;}));}};Ce=Ji([_t(0x0,a[_0x57f41f(0x546)]),_t(0x1,a[_0x57f41f(0x435)])],Ce);function _0xf60c(){const _0x468e35=['toRgbString','arc','defIds','_initEventListeners','LOCAL_CACHE_INTERVAL_KEY','_anchor','IBeforeCloseService','_getMergeRange','IContextService','lineTo','_handleLeaveEvent','url','subscribe','throttleTime','105kSwSdZ','size','catch','tag','_colorAssignService','findNodePositionByCharIndex','toggleOnline','_assignedColors','&source=','useObservable','awaiting_with_pending','AuthzIoHttpService','evenodd','jiqing500','LIVESHARE_REQUEST_HOST','_imageSourceCache','UNKNOWN_CMD','with','MergeInterceptorFactory','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','LICENSE_MAX_UNITS_EXCEEDED','LocaleService','COLLAB_WEB_SOCKET_URL','then','WebURLService','reverse','saveOfflineData','blue400','_collaborationSessionService','_syncEditingCollabCursorService','reqId','editing\x20status\x20changed\x20to','Injector','Error','object','getSkeleton','startsWith','/universer-api/comb','_hovered','getRandomValues','_transitionLocked','APPLY_REJECT','ThemeService','isTransformMutationsWithChangesetSuccess','message$','getParam','asObservable','getTypeOfUnitDisposed$','loadSheet','collab-text-range-','unit','slice','entries','_docTransformIMECacheService','on-line-single','/universer-api/stream/file/upload','SheetsSelectionsService','_startDocCollabCursor','hasOwnProperty','off-line-single','SheetSkeletonManagerService','_initCommandExecutedListener','_throwTelemetryCollaborationNewChangeset','registerRefRange','_hover','pluginName','_loadDoc','COMPRESS_MUTATION_SEND','ImageIoService','IConfigService','ONLINE','session.room-full','event$','UNIVER_SLIDE','dispose$','AUTHZ_URL_KEY','WebSocketService','HEADER_MENU','fromEventSubject','onSyncEditingCollabCursor','_handleEvent','RevisionService','parseChangesetToProtocol','_userManagerService','_removeCollabCursors','_entityInit$','getSheetBySheetId','currentSkeleton$','onTransformRemoteChangesetByIMECache','executeCommand','subunit','_ensureSubject','0\x200\x2017\x2016','handleInsertRangeMoveDown','setCurrentUser','doc.mutation.rich-text-editing','listRoles','transform','_singleActiveUnitService','save','fetch_missing','fetchMissingChangesets','indexOf','_startTelemetryCollaborationNewChangeset','values','getDeserializedSheetBlock','CompressMutationService','[OfflineState]:\x20received\x20acknowledgement.','getCurrentUser','HTTPService','endColumn','isTransformChangesetsSuccess','length','uploadFileServerUrl','[UniverCollaborationClientPlugin]','INVALID_ARGUMENT','41128mZOrSE','generateRandomId','cmd','font','session.collaboration-timeout','mergeOverrideWithDependencies','_renderManagerService','SEND_CHANGESET_TIMEOUT','_socketMessageSubscription','FAIL','unit-cache-','off-line-single_clip0_910_343','propertyIsEnumerable','COMPRESS_MUTATION_APPLY','collaboration-session-retry','_clearCollaborationTimeoutTimer','batchAllowed','LIVESHARE_TERMINATE','sequenceExecute','round','/-/object/list','resourceIDs','awaitingChangeset','send','_awaitingChangeset','snapshot','0\x200\x2016\x2016','_candidateSocket','UniverIcon','getActiveRange','fromEvent','_shapes','YUUMI_URL_COL_OUT_OF_RANGE','replaceTextRanges','selection','getMember','getRenderById','JOINING','PERMISSION_DENIED','_tryReconnect','conflict.content','clipPath','CollaborationEvent','contains','focused$','/rev/','_scheduleHeartbeat','textEncoder','cursorInfo','_onRefRangeChange','LIVESHARE_FETCH_OPERATIONS','method','_httpService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_notificationService','debounceTime','next','_toggleOffline','getRangePointData','YUUMI_SUBSCRIPTION_NOT_FOUND','DEFAULT_FILE_NAME','SetSelectionsOperation','deleteCollaborator','enableLocalCache','complete','onRemoteChangeset','MSG_FOR_ERROR','CommandType','LocalCacheService','sessionStatus','createCollaborator','...','fillStyle','exhaustSavingTask','getCoordByCell','USERS_LEAVE','/universer-api/authz','[DataLoaderController]','deepClone','serializeRangeWithSheet','_cursorShapes','createSocket','_timeoutTimer','POST','registerOnClose','_messageService','react','pipe','274603anMymP','newValue','getCellPositionByOffset','onCommentUpdate','transformIMECache','capture','reject','_onRemoteChangeset','LICENSE_IMPORT_SIZE_EXCEEDED','_stopTelemetryCollaborationNewChangeset','registerBeforeClose','_render','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','getCollabEntity$','collabStatus.fetchMiss','_transformSelections','getViewport','_telemetryService','_updateSubUnitFromURLParams','_sheetSkeletonManagerService','synced','IHTTPImplementation','PERMISSION_REJ','collab-rect-range-','_onCursorUpdate','UNDEFINED','_submitChangeset','objectActions','delay','_waitCount','onload','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','updateOfflineData','idSuffix','_scheduleCollaborationTimeoutTimer','find','WorkbookEditablePermission','_urlService','_startCollaboration','getRelativeToViewportCoord','IDLE','hide','headers','_collabSessionService','_roomMembers$','Undefined','getResourcesRequest','createInstance','registerComponent','onPointerLeave$','ranges','isActive','handleMoveRange','pauseCollaboration','_saveCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_queuedRemoteChangesets','BASE64','UniverInstanceType','setInterval','clearInterval','toggleOffline','appendMutation','now','EXCHANGE_SIGN_URL_SERVER_URL_KEY','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onRecvEvent','getUnhiddenWorksheets','CollaborationEntity','UNIVER_PROJECT','_drawRectRange','skeleton','BuiltInUIPart','createElement','mutations','getLatestCsReqIdBySid','PENDING','clearTimeout','text','_clearUndo','forEach','_shouldReportTelemetry','removeMember','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','rng','LOGIN_URL_KEY','fill','_scheduleSaving','@univerjs/engine-formula','\x20-\x20','fetchMiss','_instanceService','resend','_getSheetObject','/block/','triggerDblclick','HEARTBEAT_TIMEOUT','encodeURIComponent','_revisionService','update','IAuthzIoService','_selfUnitIDs','defineProperty','_updateStatus','_status$','closePath','handleInsertCol','[PendingState]:\x20received\x20rejection.','HELLO','_clearRedo','_createHandler','distinctUntilChanged','EmptyMutation','getAttachHeader','getCurrentRevOfUnit','onMissingChangesets','workbook','_disabled','_clearLocalCache','assignAColorForMemberID','onPointerMove$','collabStatus.offline','_eventUnsubscribe','collabWebSocketUrl','eventID','_color','isTransformMutationsWithChangesetFailure','ImageSourceType','getUnitOnRev','NodePositionConvertToCursor','OTHER_CLIENTS_EDITING','SNAPSHOT_SERVER_URL_KEY','setTimeout','engine','error','TRANSFORM_CHANGE_OBSERVABLE_TYPE','2sdvziQ','reduce','IUniverInstanceService','_commandService','_themeService','ILocalStorageService','SNAPSHOT_URL_KEY','unshift','Subject','JOIN','_checkMissing','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_members','registerRenderModule','ITransformService','TEXT_RANGE_LAYER_INDEX','min','responseType','takeUntil','put','enableSingleActiveInstanceLock','_listenToOnlineEvent','_onRemoteRejected','transformUndoRedo','_univerInstanceService','replace','collabStatus.syncing','_registerRenderDependencies','_colorIndex','bind','collaboration.closeRoom','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','compose','_unitStatus','JSONX','SessionStatus','onRemoteAck','_HTTPService','target','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','failed\x20to\x20apply\x20missed\x20changesets!','className','COLLAB_SUBMIT_CHANGESET_URL','ISnapshotServerService','getMemberID','SetDocZoomRatioOperation','OnLineSingle','defs','RETRY_CONNECTING_MAX_COUNT','Unknown\x20user','updateMember','url(#off-line-single_clip0_910_343)','snapshotServerUrl','LICENSE_DISTRO_REJECTED','/object','add','touchDependencies','newCsEvent','UPDATE_CURSOR','_snapshotServerService','_acknowledgedAwaitingChangeset','774792cEPNyc','/role','socket\x20open.','clear','FromArray','params','IRenderManagerService','_collabCursorController','actions','_initModules','updateCollaborator','[CollaborationSession]','ILogService','members','title','_onRemoteACK','socketService','_createSocket','getMergeData','IPermissionService','_changesetSessionId','_snapshotService','result','handleInsertRow','@univerjs/telemetry','row','/unit/','svg','_configService','getColor','VIEW_MAIN','use','getItem','Optional','ICommandService','textRanges','state$','_replayCachedMutations','_range','location','_name','reconnect','from','_logService','_http','rev','_fetchMissChangesets','extend','_collaborationController','[CollaborationSessionService]','onSendChangeset','debounce','univer-online-status-icon','div','deserializeToCombResponse','makeDirty','M0\x200H16V16H0z','roomMembers$','_localCacheService','getOwnPropertyDescriptor','startTime','createIdentifier','_transformRemoteChangesetByIMECache','ERROR_IMAGE','deserializeRangeWithSheet','UNIVER_SHEET','data','/universer-api/snapshot/','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','CollaborationSessionService','c1Prime','call','APPLY_DUPLICATED','setUndoRedoMutationParamsCache','body','parse','closeSession','width','COLORS','_onCursorDelete','path','UNIVER_DOC','\x0aAfter:\x20','INTERNAL_ERROR','image/jpg','SetTextSelectionsOperation','_replaceFileID','_lastPointer','error$','_transformUndoredo','LocalUndoRedoService','transformByState','_type','onlyLocal','Warning','Disposable','YUUMI_UNABLE_LOAD_URL','/collaborator','Rectangle','flatMap','_onCombEvent','ColorKit','xlink:href','sessionStatus$','_telemetryInfo','_setupSubUnitSync','\x20in\x20_schedule.','@univerjs/rpc','assign','_createInitialStateImpl','roomInfos','RxDisposable','HEARTBEAT_INTERVAL_KEY','1524050gLqxRW','InsertSheetMutation','unknown','_loadSheet','collaMsg','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_permissionService','/new_changes','MessageType','DocSelectionManagerService','unitId','colorChannel1','collaboration.single-unit.warning','_commentUpdate$','max','_handleHover','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','state','_docTransformSelectionsService','IURLService','_retryCount','resolve','setItem','randomUUID','loadOfflineData','getUnitStatus$','disposeWithMe','getInterceptPoints','transformMutation','_handler','_sendHeartbeat','_changesetReqId','sheets','[PendingState]:\x20received\x20acknowledgement.','RegularPolygon','HttpImport','Inject','_state$','YUUMI_RATE_OVER_LIMIT','@univerjs-pro/license','rxjs','onTransformChange$','disableLocalCache','_scene','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','uni.network.url-service','ws://127.0.0.1:8000/universer-api/comb/connect','DisposableCollection','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','toDisposable','save\x20fail\x20reason\x20is\x20','enableOfflineEditing','_getSaveTimeout','history','number','routeKey','addObject','getImage','/fetchmissing?from=','_send','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','readAsDataURL','1em','objectID','editingUnit','setParam','_getAPIPrefixPath','set','memberID','none','_hideTimer','SnapshotService','onPointerEnter$','purple300','on-line-single_clip0_910_349','TOO_MANY_REQUESTS','/-/object/-/batch_allowed','collabStatus.notCollab','collaboration-client.config','not_collab','setConfig','_drawAnchor','color','_syncEditingCollabCursor','CONFLICT','UUID','currentTheme$','icon','HttpExport','type','filter','DocCollaborationEntity','authzUrl','file','USERS_ENTER','_getUndoStack','IUIPartsService','UNIVER_UNKNOWN','conflict','UNKNOWN_CODE','fillText','concat','_waitForHeartbeatResponse','permission.title','onTransformSelections','_initMergeInterceptor','handleIRemoveCol','NOT_COLLAB','roomMembers','_collaborationTimeoutTimer','originalMeta','switchMap','b64DecodeUnicode','collaboration_new_changeset','_schedule','url(#$1','removeParam','APPLY_REVISION_CONFILICT','_backgroundColor','origin','RefRangeService','take','_unitOnClients','NO_OTHER_CLIENTS_EDITING','column','isPermissionRej','_onFetchMissResult','enableAuthServer','_pendingMutations','_getRedoStack','updateCursorEvent','sheetId','_initUnitPermissionChange','_sessions','IUndoRedoService','/object/','src','children','_onLocalMutation','CollaborationSocketService','apply','getSheetId','_getSignURL','?url=','toString','_clearHeartbeatTimer','fromCollab','_scheduleTimestamp','Tools','urlChange$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','beginPath','cursorInfo$','height','rgba(255,\x20255,\x20255,\x200.01)','getUnitId','onMouseMove','AWAITING','selections','interceptor','COLLAB_WEB_SOCKET_URL_KEY','CHANGESET_ACK','_executeRemoteChangeset','_updateLocalCache','status$','@univerjs/docs','_joinRoom','253650KwWGXG','_beforeCloseService','changesets','_initResize','_change$','collabSubmitChangesetUrl','_getUploadFileURL','getUnitType','activeSheet$','597186wkZGcP','_ws','FETCH_MISSING','_removeRoom','_undoRedoService','{fileID}','disposeUnit','pushState','_initCloseConn','ERROR_EXCEED_SIZE','startColumn','SHOULD_CLOSE_CONN','_toggleOnline','_transformPreviousActiveRange','RichTextEditingMutation','_transformUndoRedoStack','\x0aCurrent:\x20','ACTIVE_UNIT_EVENT_CHANNEL','isTransformMutationFailure','_incrementRevisionNumber','LIVESHARE_OPERATION','localeService','_unitID','setAlpha','SNAPSHOT_HAS_BEEN_REMOVED','ENSURE_SNAPSHOT_EXECUTION','DocSkeletonManagerService','_heartbeatTimer','_localStorageService','handleIRemoveRow','fetchThroughInterceptors','action','onlineStatusTitle','?size=','includes','/resources','UNIVER_COLLABORATION_CLIENT_PLUGIN','prototype','_createInitialState','\x20to\x20','AWAITING_WITH_PENDING','allowed','listCollaborators','_onUserLeave','InsertRowCommandId','ImageUploadStatusType','post','UNAUTHENTICATED','string','useDependency','joinEvent','_initStatusComponent','_sendHeartbeatTimer','getActiveSheet','@univerjs/docs-ui','onReady','_getDownloadEndpointURL','_textBubble','moveTo','key','Vector2','_collabCursorState$','requireSession','LOCAL_CACHE_INTERVAL','_onUserJoin','InsertRangeMoveRightCommandId','isInternalEditorID','_commentService','_applyRemoteChangeset','onRemoteRej','_substituteUndoStack','DesktopCollaborationStatusDisplayController','auth.needGotoLoginAlert','_getCurrentRevision','getTime','APPLY_PERMISSION_DENIED','_showConflictNotification','updatePermissionPoint','downloadEndpointUrl','_clearTimeoutTimer','_decreaseWaiting','has','102GYahEy','getCollabCursors$','COLLAB_SUBMIT_CHANGESET_URL_KEY','_session','MoveRangeCommandId','_docStateChangeManagerService','push','INotificationService','OFFLINE','ALREADY_EXISTS','_setupBeforeClosingHandler','_retryConnectingTimer','_initRequestHeader','status','IRemoteInstanceService','FETCH_MISS','href','RECV','_onConnectionFailed','registerHTTPInterceptor','override','_socketReady','unitId\x20is\x20not\x20found','getUndoRedoMutationParamsCache','DocIMEInputManagerService','CollaborationSession','list','debug','requestParams','[CollaborationUndoRedoService]','collaboratorID','_roomMembers','SUCCUSS','image/jpeg','currentColor','_docSyncEditingCollabCursorService','UniverCollaborationClientPlugin','onlineStatusIcon','red300','mapDocumentTypeToUniverType','_updateURLWithCurrentState','getRoom','_tryEnsureSocket','_event$','sheetID','random','isArray','InsertRangeMoveDownCommandId','LIVESHARE_NEW_HOST','translate(.97)','_onJoinRoomEvent','HEARTBEAT','getUnit','syncEditingCollabCursor','drawWith','@univerjs-pro/collaboration','_getSendChangesetTimeout','labelPosition','Shape','pending','_updateState','onTransformIME','revision','split','_onConnectionOpen','UniverCollaborationPlugin','DeleteRangeMoveUpCommandId','serializeCombRequest','_handleHeartbeatEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_document','_scheduleClearOtherTimer','UnitEmbedded','univer-online-status-title','_compressMutationService','connection\x20error','close','getTypeOfUnitAdded$','black','session.will-retry','transformRemoteChangeset','sid','_clearScheduledTask','_onMessage','c2Prime','get','shareReplay','_socket$','toLowerCase','transformMutationsWithChangeset','getFocusedUnit','Error\x20on\x20receiving\x20event','_init','DataLoaderController','getDocRanges','_cursorInfo$','EffectRefRangId','@univerjs/sheets-ui','_onConflict','_online','OffLineSingle','_transformStack','PSEUDO_FETCH_MISSING_RESULT','_injector','withCredentials','getImageSourceCache','collab-text-anchor-','mapTo','bottom','_getSnapshotAPIPrefix','_drawTextRange','liveShareNewHost','userID','parseProtocolChangeset','HEARTBEAT_TIMEOUT_KEY','setShapeProps','name','univer-offline','saveSnapshot','offline','univer-pro.collaboration-client-socket-service','commentUpdateEvent','change$','DocStateChangeManagerService','VIEWPORT_KEY','_substituteRedoStack','[CollaborationState]:\x20apply\x20error!','INGEST','_updateLocalCursor','IMessageService','SetWorksheetActivateCommand','CollaborationController','_remoteChangesetQueue','_clearOtherTimers','init','onStarting','_updateCollabCursors','m2Prime','popstate','_context','onMissedChangesetFetched','transformSelections','LEAVE','Module','UNRECOGNIZED','CollaborationStatus','restore','_sendingTimer','objectType','url(#on-line-single_clip0_910_349)','_getCtorByUniverType','top','subscribeEvent','@univerjs/ui','_socket','_transformService','map','NOT_FOUND','52157bHonoS','saveChangeset','m1Prime','UnitSnapshot','onCommandExecuted','csRejEvent','unitID','_unlockTransition','_lockTransition','x-univer-host','_id','unsubscribe','SheetCollaborationEntity','show','HTTPRequest','[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.','CHANGESET_REVISION_CONFILICT','[FetchMissState]','startRow','addEventListener','_initStatusListener','[CollaborationSessionService]:\x20socket\x20error','onRendered','getConfig','_collaborationPaused','socket\x20close','Univer','image/png','_memberService','MUTATION','FileId','getAncestorScale','trim','SUBMIT_CHANGESET','collaborators','_registerDependencies','_saveTaskMap','all','updatePermissionObjEvent','runRefRangeMutations','/universer-api/snapshot','permissionRejEvent','whenReady','handleInsertRangeMoveRight','every','_anchorDot','onStateChange','storage','online','code','APPLY_NON_SEQUENTIAL_REVISION','getOwnPropertySymbols','_refreshCollabCursors','backgroundColor','_cursor','fetching\x20missing\x20changesets\x20from\x20','joinRsp','searchParams','getValue','#fff','dispose','SNAPSHOT_INVALID_SNAPSHOT','confirm','getCurrentSelections','getCollabEntity','_docSkeletonManagerService','subUnitId','BehaviorSubject','_cachedData','getCurrent','conflict.title','NEW_CHANGESETS','_getAPIPrefix','_labelPosition','replaceState','getCurrentUnitForType','getWorkbookSelections','_entities','close$','unload','forwardRef','Rect','substring','_rescheduleHeartbeat','stringify','_removeClearOtherTimer','copyFileMeta','LICENSE_EXPORT_SIZE_EXCEEDED','collaboration-client.offline-data-not-saved','_socketService','_state','/allowed','getOffsetConfig','SYNCED','_localeService','combineLatest','getSheetBlock','_handleJoinEvent','collab-client.tooltip.reconnect','_onOffline','_sessionStatus$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','SnapshotServerOverHTTPService','/universer-api/file/{fileID}/sign-url','merge','_transformIMECache','univer-online-status','UPDATE_PERMISSION_OBJ','stopTime','_cursors','_startSheetCollabCursor','IImageIoService','_config','displayName','measureText','COMMENT_UPDATE','@univerjs/network','session','getUniverSheetInstance','visibilityState','delete','attrs'];_0xf60c=function(){return _0x468e35;};return _0xf60c();}var en=Object[_0x57f41f(0x522)],tn=Object[_0x57f41f(0x191)],sn=(_0x50ee77,_0x4953f6,_0x5b1384,_0x2e0ced)=>{const _0xff6cd=_0x57f41f;for(var _0x55a24e=_0x2e0ced>0x1?void 0x0:_0x2e0ced?tn(_0x4953f6,_0x5b1384):_0x4953f6,_0x40cef5=_0x50ee77[_0xff6cd(0x460)]-0x1,_0x2d0f62;_0x40cef5>=0x0;_0x40cef5--)(_0x2d0f62=_0x50ee77[_0x40cef5])&&(_0x55a24e=(_0x2e0ced?_0x2d0f62(_0x4953f6,_0x5b1384,_0x55a24e):_0x2d0f62(_0x55a24e))||_0x55a24e);return _0x2e0ced&&_0x55a24e&&en(_0x4953f6,_0x5b1384,_0x55a24e),_0x55a24e;},He=(_0x36a523,_0x31727a)=>(_0x23ba85,_0x24b258)=>_0x31727a(_0x23ba85,_0x24b258,_0x36a523);let Ee=class{constructor(_0x469bf2,_0x2c45df,_0x46bfd8){const _0x3c4618=_0x57f41f;this['_configService']=_0x469bf2,this[_0x3c4618(0x498)]=_0x2c45df,this[_0x3c4618(0x28d)]=_0x46bfd8,this[_0x3c4618(0x350)]();}[_0x57f41f(0x350)](){const _0x5973bd=_0x57f41f;this[_0x5973bd(0x498)][_0x5973bd(0x2dd)]({'priority':0x1,'interceptor':(_0x315f96,_0x43a647)=>_0x43a647(_0x315f96)[_0x5973bd(0x4bb)](v['concatMap'](async _0x550ca1=>{const _0x409d95=_0x5973bd,_0x15d2d5=_0x550ca1;if(_0x15d2d5[_0x409d95(0x2d7)]===0x191&&window[_0x409d95(0x3a6)](this[_0x409d95(0x28d)]['t'](_0x409d95(0x2c0)))){const _0x128d5c=window[_0x409d95(0x51d)](window[_0x409d95(0x17d)][_0x409d95(0x2da)]);window[_0x409d95(0x17d)]['href']=this['_getLoginPath']()+_0x409d95(0x257)+_0x128d5c;}return _0x15d2d5;}))});}['_getLoginPath'](){const _0x2992a0=_0x57f41f;var _0x4ff4f7,_0x10a88a;const _0x10495c=this[_0x2992a0(0x172)][_0x2992a0(0x37f)](Et),_0x523965=this[_0x2992a0(0x172)]['getConfig'](L);return(_0x10a88a=(_0x4ff4f7=_0x523965==null?void 0x0:_0x523965['loginUrlKey'])!=null?_0x4ff4f7:_0x10495c)!=null?_0x10a88a:ns;}};Ee=sn([He(0x0,a['IConfigService']),He(0x1,a['Inject'](w[_0x57f41f(0x45d)])),He(0x2,a['Inject'](a[_0x57f41f(0x405)]))],Ee);var nn=Object[_0x57f41f(0x522)],rn=Object[_0x57f41f(0x191)],on=(_0x6e2b6f,_0x265821,_0x272e6f,_0x20feac)=>{for(var _0x342cf3=_0x20feac>0x1?void 0x0:_0x20feac?rn(_0x265821,_0x272e6f):_0x265821,_0x5ee4ae=_0x6e2b6f['length']-0x1,_0x43c68f;_0x5ee4ae>=0x0;_0x5ee4ae--)(_0x43c68f=_0x6e2b6f[_0x5ee4ae])&&(_0x342cf3=(_0x20feac?_0x43c68f(_0x265821,_0x272e6f,_0x342cf3):_0x43c68f(_0x342cf3))||_0x342cf3);return _0x20feac&&_0x342cf3&&nn(_0x265821,_0x272e6f,_0x342cf3),_0x342cf3;},ut=(_0x3e20de,_0x4125f8)=>(_0x3ff163,_0x16d0e7)=>_0x4125f8(_0x3ff163,_0x16d0e7,_0x3e20de);const jt='AUTHZ_URL_KEY',an=_0x57f41f(0x4b0);exports['AuthzIoHttpService']=class extends a['Disposable']{constructor(_0x1a11f1,_0x34ad55){const _0x5295b2=_0x57f41f;super(),this[_0x5295b2(0x13e)]=_0x1a11f1,this[_0x5295b2(0x172)]=_0x34ad55,this[_0x5295b2(0x231)]();}[_0x57f41f(0x231)](){const _0x4cfafe=_0x57f41f,_0x1c9456=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':w[_0x4cfafe(0x402)]({'isMatch'(_0x38b107){const _0x4e35c7=_0x4cfafe;var _0x5e5bcc;if(_0x38b107[_0x4e35c7(0x497)]===_0x4e35c7(0x4b7)&&((_0x5e5bcc=_0x38b107['requestParams'])!=null&&_0x5e5bcc[_0x4e35c7(0x1a0)])){const {objectID:_0x7ce6cf,objectType:_0x595746}=_0x38b107['requestParams'][_0x4e35c7(0x1a0)]||{};if(!_0x7ce6cf||_0x595746===void 0x0)return!0x1;const _0x2de11a=_0x1c9456[_0x4e35c7(0x20a)]()+'/'+_0x595746+_0x4e35c7(0x24f)+_0x7ce6cf+'/allowed';if(_0x38b107[_0x4e35c7(0x3ed)]===_0x2de11a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x40eed1){const _0x2e694b=_0x4cfafe;var _0x13bc50;return(_0x13bc50=_0x40eed1[_0x2e694b(0x2e6)])==null?void 0x0:_0x13bc50[_0x2e694b(0x1a0)];},'mergeParamsToRequest'(_0xbbffe7,_0x44f236){const _0x5c6d91=_0x4cfafe,_0x2b9495=_0x1c9456['_getAPIPrefixPath']()+_0x5c6d91(0x214),_0x1b77a6=_0xbbffe7['reduce']((_0x4cfe63,_0x26a062)=>{const _0x46571f=_0x5c6d91,{unitID:_0x28840e,objectID:_0x45b444,objectType:_0xaace8e,actions:_0x486981}=_0x26a062;return _0x4cfe63[_0x28840e]||(_0x4cfe63[_0x28840e]={}),_0x4cfe63[_0x28840e][_0x45b444]||(_0x4cfe63[_0x28840e][_0x45b444]={'objectID':_0x45b444,'objectType':_0xaace8e,'actions':[]}),_0x4cfe63[_0x28840e][_0x45b444][_0x46571f(0x15e)][_0x46571f(0x2d0)](..._0x486981),_0x4cfe63;},{}),_0x319755=[];for(const _0x8d53d3 in _0x1b77a6)for(const _0x186b6c in _0x1b77a6[_0x8d53d3]){const {actions:_0x498a20,objectType:_0x133aad}=_0x1b77a6[_0x8d53d3][_0x186b6c],_0x4c073b=[...new Set(_0x498a20)];_0x319755[_0x5c6d91(0x2d0)]({'unitID':_0x8d53d3,'objectID':_0x186b6c,'objectType':_0x133aad,'actions':_0x4c073b});}return new w[(_0x5c6d91(0x376))]('POST',_0x2b9495,{'headers':_0x44f236[_0x5c6d91(0x4e6)],'withCredentials':_0x44f236[_0x5c6d91(0x332)],'responseType':_0x44f236[_0x5c6d91(0x12a)],'body':{'requests':_0x319755}});}},{'distributeResult'(_0x59bdfe,_0x17d88c){const {objectActions:_0x31e53e}=_0x59bdfe;return _0x17d88c['map'](_0xae585d=>{const _0x4d75c9=_0x1fa7,{unitID:_0x5744a1,objectID:_0x325a13,actions:_0x2addfc}=_0xae585d,_0xaa120f=_0x31e53e[_0x4d75c9(0x4df)](_0x2e7d33=>_0x2e7d33[_0x4d75c9(0x36e)]===_0x5744a1&&_0x2e7d33[_0x4d75c9(0x207)]===_0x325a13),_0x51b653=_0x2addfc[_0x4d75c9(0x366)](_0x4145f1=>_0xaa120f==null?void 0x0:_0xaa120f[_0x4d75c9(0x15e)][_0x4d75c9(0x4df)](_0x1b9901=>_0x1b9901[_0x4d75c9(0x297)]===_0x4145f1))['filter'](_0x10a41e=>!!_0x10a41e);return{'config':_0xae585d,'result':{'actions':_0x51b653,'error':_0x59bdfe[_0x4d75c9(0x542)]}};});}})}));}[_0x57f41f(0x20a)](){const _0x13703e=_0x57f41f;var _0x2c02ee,_0x4c2d28;const _0x374c34=this[_0x13703e(0x172)][_0x13703e(0x37f)](jt),_0x5e931e=this[_0x13703e(0x172)]['getConfig'](L);return(_0x4c2d28=(_0x2c02ee=_0x5e931e==null?void 0x0:_0x5e931e[_0x13703e(0x224)])!=null?_0x2c02ee:_0x374c34)!=null?_0x4c2d28:an;}async['create'](_0x2a6fd0){const _0x36f3c3=_0x57f41f,_0x237a5c=this['_getAPIPrefixPath']()+'/'+_0x2a6fd0[_0x36f3c3(0x35e)]+_0x36f3c3(0x14f);return(await this[_0x36f3c3(0x13e)]['post'](_0x237a5c,{'body':_0x2a6fd0}))[_0x36f3c3(0x1a0)][_0x36f3c3(0x207)]||'';}async[_0x57f41f(0x2e4)](_0x1573bd){const _0x2e751b=_0x57f41f,_0xbfd69e=this[_0x2e751b(0x20a)]()+_0x2e751b(0x478);return(await this[_0x2e751b(0x13e)][_0x2e751b(0x2a6)](_0xbfd69e,{'body':_0x1573bd}))[_0x2e751b(0x1a0)]['objects'];}async[_0x57f41f(0x51f)](_0x939117){const _0x572462=_0x57f41f,_0x45aea9=this[_0x572462(0x20a)]()+'/'+_0x939117[_0x572462(0x35e)]+_0x572462(0x24f)+_0x939117[_0x572462(0x207)];await this['_HTTPService'][_0x572462(0x12c)](_0x45aea9,{'body':_0x939117});}async[_0x57f41f(0x2a1)](_0x20be40){const _0x530882=_0x57f41f,_0x5ae2d4=this['_getAPIPrefixPath']()+'/'+_0x20be40['objectType']+_0x530882(0x24f)+_0x20be40['objectID']+_0x530882(0x3c3);return(await this[_0x530882(0x13e)][_0x530882(0x2a6)](_0x5ae2d4,{'body':_0x20be40}))[_0x530882(0x1a0)][_0x530882(0x15e)];}async[_0x57f41f(0x474)](_0x2d6a5f){const _0x47bb0e=_0x57f41f,_0x5d0b91=this[_0x47bb0e(0x20a)]()+_0x47bb0e(0x214);return(await this[_0x47bb0e(0x13e)][_0x47bb0e(0x2a6)](_0x5d0b91,{'body':{'requests':_0x2d6a5f}}))[_0x47bb0e(0x1a0)][_0x47bb0e(0x4d7)];}async[_0x57f41f(0x450)](_0x4e870c){const _0x22821d=_0x57f41f,_0x3aa665=this[_0x22821d(0x20a)]()+'/'+_0x4e870c['objectType']+_0x22821d(0x157),_0x1e141a=await this[_0x22821d(0x13e)]['post'](_0x3aa665,{'body':_0x4e870c});return{'roles':_0x1e141a[_0x22821d(0x1a0)]['roles'],'actions':_0x1e141a[_0x22821d(0x1a0)][_0x22821d(0x15e)]};}async[_0x57f41f(0x4a2)](_0x44f572){const _0x576929=_0x57f41f,_0x364417=this[_0x576929(0x20a)]()+'/collaborator';await this[_0x576929(0x13e)]['delete'](_0x364417,{'params':{'collaboratorID':_0x44f572[_0x576929(0x2e8)],'objectID':_0x44f572[_0x576929(0x207)],'unitID':_0x44f572['unitID']}});}async[_0x57f41f(0x160)](_0x1d7b52){const _0x1fd466=_0x57f41f,_0x545392=this['_getAPIPrefixPath']()+_0x1fd466(0x1b7);await this['_HTTPService']['patch'](_0x545392,{'body':_0x1d7b52});}async[_0x57f41f(0x4aa)](_0x4c3415){const _0x1f6997=_0x57f41f,_0x18db54=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1f6997(0x13e)]['post'](_0x18db54,{'body':_0x4c3415});}async[_0x57f41f(0x2a2)](_0x16eaaa){const _0x2ef18a=_0x57f41f,_0x116e14=this[_0x2ef18a(0x20a)]()+'/collaborator';return(await this[_0x2ef18a(0x13e)][_0x2ef18a(0x31f)](_0x116e14,{'params':{'objectID':_0x16eaaa[_0x2ef18a(0x207)],'unitID':_0x16eaaa[_0x2ef18a(0x36e)]}}))[_0x2ef18a(0x1a0)][_0x2ef18a(0x38a)];}async['putCollaborators'](_0x325e63){const _0x526deb=_0x57f41f,_0xab4e6a=this['_getAPIPrefixPath']()+_0x526deb(0x1b7);await this[_0x526deb(0x13e)][_0x526deb(0x12c)](_0xab4e6a,{'body':_0x325e63});}},exports[_0x57f41f(0x3fb)]=on([ut(0x0,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)])),ut(0x1,a['Inject'](a[_0x57f41f(0x435)]))],exports[_0x57f41f(0x3fb)]);var cn=Object[_0x57f41f(0x522)],ln=Object[_0x57f41f(0x191)],hn=(_0x56ed3a,_0x1ceccc,_0x2a8735,_0x197d7a)=>{const _0xcde298=_0x57f41f;for(var _0x2d0389=_0x197d7a>0x1?void 0x0:_0x197d7a?ln(_0x1ceccc,_0x2a8735):_0x1ceccc,_0xe5eb3a=_0x56ed3a[_0xcde298(0x460)]-0x1,_0x4ed085;_0xe5eb3a>=0x0;_0xe5eb3a--)(_0x4ed085=_0x56ed3a[_0xe5eb3a])&&(_0x2d0389=(_0x197d7a?_0x4ed085(_0x1ceccc,_0x2a8735,_0x2d0389):_0x4ed085(_0x2d0389))||_0x2d0389);return _0x197d7a&&_0x2d0389&&cn(_0x1ceccc,_0x2a8735,_0x2d0389),_0x2d0389;},_n=(_0x16fcde,_0x41b20b)=>(_0x412052,_0x3c3a22)=>_0x41b20b(_0x412052,_0x3c3a22,_0x16fcde);let be=class{constructor(_0x23f855){this['_httpService']=_0x23f855,this['_initRequestHeader']();}[_0x57f41f(0x2d6)](){const _0x5035a6=_0x57f41f;this[_0x5035a6(0x498)]['registerHTTPInterceptor']({'interceptor':(_0x3dc4cc,_0xda2be0)=>{const _0x4a689f=_0x5035a6,_0x3b651f=_0x3dc4cc[_0x4a689f(0x4e6)],_0xb88128=Xt[_0x4a689f(0x52d)]();return _0xb88128&&_0x3b651f[_0x4a689f(0x20b)](_0x4a689f(0x371),_0xb88128),_0xda2be0(_0x3dc4cc);}});}};be=hn([_n(0x0,a[_0x57f41f(0x1ec)](w['HTTPService']))],be);var un=Object['defineProperty'],dn=Object[_0x57f41f(0x191)],Sn=(_0x767886,_0x232458,_0x2bcf44,_0x2eebee)=>{for(var _0x1fbb09=_0x2eebee>0x1?void 0x0:_0x2eebee?dn(_0x232458,_0x2bcf44):_0x232458,_0x34c1e7=_0x767886['length']-0x1,_0x3a410e;_0x34c1e7>=0x0;_0x34c1e7--)(_0x3a410e=_0x767886[_0x34c1e7])&&(_0x1fbb09=(_0x2eebee?_0x3a410e(_0x232458,_0x2bcf44,_0x1fbb09):_0x3a410e(_0x1fbb09))||_0x1fbb09);return _0x2eebee&&_0x1fbb09&&un(_0x232458,_0x2bcf44,_0x1fbb09),_0x1fbb09;},xe=(_0x235293,_0x1ca36a)=>(_0x32796a,_0x298a82)=>_0x1ca36a(_0x32796a,_0x298a82,_0x235293);const vn=[_0x57f41f(0x383),_0x57f41f(0x2eb),_0x57f41f(0x1aa),'image/gif','image/bmp'],gn=0x5*0x400*0x400,mn=_0x57f41f(0x4c8),fn=_0x57f41f(0x427),In=_0x57f41f(0x4fc),pn=_0x57f41f(0x3cf);exports[_0x57f41f(0x434)]=class{constructor(_0x50e3c1,_0x1cd307,_0x5a4585){const _0x34d273=_0x57f41f;u(this,_0x34d273(0x4d9),0x0),u(this,_0x34d273(0x273),new v['Subject']()),u(this,_0x34d273(0x344),this[_0x34d273(0x273)]),u(this,_0x34d273(0x3ff),new Map()),(this[_0x34d273(0x498)]=_0x50e3c1,this['_configService']=_0x1cd307,this[_0x34d273(0x131)]=_0x5a4585);}['setWaitCount'](_0xe199af){const _0x21adc8=_0x57f41f;this[_0x21adc8(0x4d9)]=_0xe199af,this[_0x21adc8(0x273)][_0x21adc8(0x49c)](_0xe199af);}[_0x57f41f(0x333)](_0x1f980e,_0x363978){const _0x2e914d=_0x57f41f;if(_0x363978===j[_0x2e914d(0x53b)][_0x2e914d(0x4f5)]){const _0x749429=new Image();return _0x749429[_0x2e914d(0x250)]=_0x1f980e,_0x749429;}return this[_0x2e914d(0x3ff)][_0x2e914d(0x31f)](_0x1f980e);}['addImageSourceCache'](_0x2b163a,_0x346d06,_0x281f06){const _0x1d2c2e=_0x57f41f;_0x346d06===j[_0x1d2c2e(0x53b)][_0x1d2c2e(0x4f5)]||_0x281f06==null||this[_0x1d2c2e(0x3ff)][_0x1d2c2e(0x20b)](_0x2b163a,_0x281f06);}async[_0x57f41f(0x201)](_0x214d11){const _0x51f7fd=_0x57f41f;try{const _0x5c4104=this['_replaceFileID'](this[_0x51f7fd(0x256)](),''+_0x214d11),_0x1a0c91=(await this[_0x51f7fd(0x498)][_0x51f7fd(0x31f)](_0x5c4104))[_0x51f7fd(0x1a0)];if(_0x1a0c91[_0x51f7fd(0x542)]&&_0x1a0c91[_0x51f7fd(0x542)][_0x51f7fd(0x399)]===bt['OK']){const _0x331460=new URL(_0x1a0c91['url'],this[_0x51f7fd(0x2b0)]())[_0x51f7fd(0x258)]();return Promise[_0x51f7fd(0x1dd)](_0x331460);}return Promise[_0x51f7fd(0x4c2)](_0x1a0c91[_0x51f7fd(0x542)]);}catch(_0x4ca676){return Promise[_0x51f7fd(0x4c2)](_0x4ca676);}}async['saveImage'](_0x88bd0){const _0x4f2fc8=_0x57f41f;let _0x285999='';if(!vn[_0x4f2fc8(0x29a)](_0x88bd0[_0x4f2fc8(0x221)]))return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j[_0x4f2fc8(0x2a5)]['ERROR_IMAGE_TYPE']));if(_0x88bd0[_0x4f2fc8(0x3f1)]>gn)return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j[_0x4f2fc8(0x2a5)][_0x4f2fc8(0x281)]));try{const _0x5b64d3=new FormData();_0x5b64d3['append'](_0x4f2fc8(0x225),_0x88bd0);const _0x1695c5=this[_0x4f2fc8(0x131)][_0x4f2fc8(0x324)](),_0x496f3a=_0x1695c5==null?void 0x0:_0x1695c5['getUnitId']();if(!_0x496f3a)throw new Error(_0x4f2fc8(0x2e0));const _0x169f96=this['_getUploadFileURL']()+_0x4f2fc8(0x299)+_0x88bd0['size'][_0x4f2fc8(0x258)]()+_0x4f2fc8(0x3f8)+Tt['UnitEmbedded']+'&assign='+encodeURIComponent(_0x496f3a),_0x3fa37c=await(await fetch(_0x169f96,{'method':_0x4f2fc8(0x4b7),'body':_0x5b64d3}))['json']();if(typeof _0x3fa37c[_0x4f2fc8(0x386)]!='string')return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j[_0x4f2fc8(0x2a5)][_0x4f2fc8(0x195)]));_0x285999=_0x3fa37c[_0x4f2fc8(0x386)];}catch{return this[_0x4f2fc8(0x2c8)](),Promise[_0x4f2fc8(0x4c2)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x455fc5,_0x4a5701)=>{const _0x44ff5f=_0x4f2fc8,_0x1ea394=new FileReader();_0x1ea394[_0x44ff5f(0x205)](_0x88bd0),_0x1ea394[_0x44ff5f(0x4da)]=_0x27b96c=>{const _0x6eae78=_0x44ff5f;var _0xe33e0f;const _0x2a4f0d=(_0xe33e0f=_0x27b96c[_0x6eae78(0x13f)])==null?void 0x0:_0xe33e0f[_0x6eae78(0x16c)];if(_0x2a4f0d==null){this[_0x6eae78(0x2c8)](),_0x4a5701(new Error(j[_0x6eae78(0x2a5)]['ERROR_IMAGE']));return;}const _0x5a55a2=a[_0x6eae78(0x25c)][_0x6eae78(0x465)](0x6);_0x455fc5({'imageId':_0x5a55a2,'imageSourceType':j[_0x6eae78(0x53b)][_0x6eae78(0x21d)],'source':_0x285999,'base64Cache':_0x2a4f0d,'status':j[_0x6eae78(0x2a5)][_0x6eae78(0x2ea)]}),this[_0x6eae78(0x2c8)]();};});}[_0x57f41f(0x275)](){const _0x204c94=_0x57f41f;var _0x27ca4e,_0x291771;const _0x4c4b80=this[_0x204c94(0x172)]['getConfig'](mn),_0x2b0a0e=this['_configService'][_0x204c94(0x37f)](L);return(_0x291771=(_0x27ca4e=_0x2b0a0e==null?void 0x0:_0x2b0a0e[_0x204c94(0x461)])!=null?_0x27ca4e:_0x4c4b80)!=null?_0x291771:fn;}[_0x57f41f(0x256)](){const _0x42b650=_0x57f41f;var _0x45d5f8,_0x578158;const _0x413e3b=this[_0x42b650(0x172)][_0x42b650(0x37f)](In),_0x88df66=this[_0x42b650(0x172)][_0x42b650(0x37f)](L);return(_0x578158=(_0x45d5f8=_0x88df66==null?void 0x0:_0x88df66['signUrlServerUrl'])!=null?_0x45d5f8:_0x413e3b)!=null?_0x578158:pn;}['_getDownloadEndpointURL'](){const _0x57c7f9=_0x57f41f;var _0x34a859;const _0x2c89f7=this[_0x57c7f9(0x172)][_0x57c7f9(0x37f)](L);return(_0x34a859=_0x2c89f7==null?void 0x0:_0x2c89f7[_0x57c7f9(0x2c6)])!=null?_0x34a859:location[_0x57c7f9(0x23f)];}[_0x57f41f(0x1ac)](_0x246c18,_0x237e03){const _0x2a867c=_0x57f41f;return _0x246c18['replace'](_0x2a867c(0x27d),_0x237e03);}['_decreaseWaiting'](){const _0x200e92=_0x57f41f;this[_0x200e92(0x4d9)]-=0x1,this[_0x200e92(0x273)][_0x200e92(0x49c)](this['_waitCount']);}},exports[_0x57f41f(0x434)]=Sn([xe(0x0,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)])),xe(0x1,a[_0x57f41f(0x435)]),xe(0x2,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x546)]))],exports[_0x57f41f(0x434)]);var Cn=Object[_0x57f41f(0x522)],En=Object[_0x57f41f(0x191)],bn=(_0x5c67a6,_0x34c720,_0x329ee4,_0x34a11f)=>{for(var _0x43168b=_0x34a11f>0x1?void 0x0:_0x34a11f?En(_0x34c720,_0x329ee4):_0x34c720,_0x4e823d=_0x5c67a6['length']-0x1,_0x537a12;_0x4e823d>=0x0;_0x4e823d--)(_0x537a12=_0x5c67a6[_0x4e823d])&&(_0x43168b=(_0x34a11f?_0x537a12(_0x34c720,_0x329ee4,_0x43168b):_0x537a12(_0x43168b))||_0x43168b);return _0x34a11f&&_0x43168b&&Cn(_0x34c720,_0x329ee4,_0x43168b),_0x43168b;},_e=(_0x4dc8c1,_0x49ac2a)=>(_0x2a4438,_0x13783f)=>_0x49ac2a(_0x2a4438,_0x13783f,_0x4dc8c1);let Te=class extends a[_0x57f41f(0x1c5)]{constructor(_0x517da4,_0x52ddf1,_0x54ad43,_0x10aadb,_0x35321){const _0x183084=_0x57f41f;super(),this['_injector']=_0x517da4,this[_0x183084(0x131)]=_0x52ddf1,this['_permissionService']=_0x54ad43,this['_collaborationSessionService']=_0x10aadb,this['_localeService']=_0x35321,this[_0x183084(0x24c)](),this[_0x183084(0x280)]();}[_0x57f41f(0x280)](){const _0x56f53f=_0x57f41f,_0x3f1954=async _0x30623c=>{const _0x282503=_0x1fa7;(await this[_0x282503(0x40c)][_0x282503(0x2b6)](_0x30623c))[_0x282503(0x438)][_0x282503(0x4bb)](E[_0x282503(0x222)](_0x5f4c9a=>_0x5f4c9a[_0x282503(0x538)]===_[_0x282503(0x48e)][_0x282503(0x283)]),E[_0x282503(0x12b)](this[_0x282503(0x43a)]))[_0x282503(0x3ee)](_0x50f0d4=>{const _0x1daf3d=_0x282503,_0x1fd45b=_0x50f0d4,{reason:_0x3a8849}=_0x1fd45b[_0x1daf3d(0x198)];this[_0x1daf3d(0x331)]['get'](A[_0x1daf3d(0x34b)])[_0x1daf3d(0x375)]({'type':X[_0x1daf3d(0x1cf)][_0x1daf3d(0x411)],'content':this['_localeService']['t'](_0x1daf3d(0x137))+'('+_0x3a8849+')'}),this[_0x1daf3d(0x1cd)]['updatePermissionPoint'](new C[(_0x1daf3d(0x4e0))](_0x30623c)['id'],!0x1),this['_collaborationSessionService'][_0x1daf3d(0x1a2)](_0x30623c);});};v[_0x56f53f(0x3d0)](this[_0x56f53f(0x131)]['getTypeOfUnitAdded$'](a[_0x56f53f(0x4f6)][_0x56f53f(0x197)]),this['_univerInstanceService'][_0x56f53f(0x317)](a[_0x56f53f(0x4f6)][_0x56f53f(0x1a7)]))[_0x56f53f(0x4bb)](E[_0x56f53f(0x366)](_0x4b6aca=>_0x4b6aca[_0x56f53f(0x263)]()),E[_0x56f53f(0x222)](_0xa35839=>!a['isInternalEditorID'](_0xa35839)),E[_0x56f53f(0x12b)](this[_0x56f53f(0x43a)]))['subscribe'](_0x29f12f=>{_0x3f1954(_0x29f12f);});}[_0x57f41f(0x24c)](){const _0x57c27a=_0x57f41f,_0x340a9e=async _0x437333=>{const _0x32a6bf=_0x1fa7;(await this[_0x32a6bf(0x40c)][_0x32a6bf(0x2b6)](_0x437333))[_0x32a6bf(0x438)][_0x32a6bf(0x4bb)](E[_0x32a6bf(0x222)](_0x5f3401=>_0x5f3401['eventID']===_[_0x32a6bf(0x48e)]['UPDATE_PERMISSION_OBJ']),E['takeUntil'](this[_0x32a6bf(0x43a)]))[_0x32a6bf(0x3ee)](_0x2f5d35=>{const _0x4b1333=_0x32a6bf,_0x456787=_0x2f5d35,{objectId:_0x4ab1ce}=_0x456787[_0x4b1333(0x198)],_0x1376ed=this['_injector'][_0x4b1333(0x31f)](te['SheetPermissionInitController']);_0x4ab1ce===_0x437333?_0x1376ed['initWorkbookPermissionChange'](_0x437333):_0x1376ed['refreshPermission'](_0x437333,_0x4ab1ce);});};v['merge'](this[_0x57c27a(0x131)][_0x57c27a(0x317)](a['UniverInstanceType']['UNIVER_SHEET']),this[_0x57c27a(0x131)][_0x57c27a(0x317)](a[_0x57c27a(0x4f6)][_0x57c27a(0x1a7)]))[_0x57c27a(0x4bb)](E[_0x57c27a(0x366)](_0x2230de=>_0x2230de[_0x57c27a(0x263)]()),E['filter'](_0x1f5e6d=>!a[_0x57c27a(0x2ba)](_0x1f5e6d)),E[_0x57c27a(0x12b)](this[_0x57c27a(0x43a)]))['subscribe'](_0x112f45=>{_0x340a9e(_0x112f45);});}};Te=bn([_e(0x0,a['Inject'](a[_0x57f41f(0x410)])),_e(0x1,a[_0x57f41f(0x546)]),_e(0x2,a[_0x57f41f(0x169)]),_e(0x3,a[_0x57f41f(0x1ec)](exports['CollaborationSessionService'])),_e(0x4,a['Inject'](a[_0x57f41f(0x405)]))],Te);var Tn=Object[_0x57f41f(0x522)],Rn=Object[_0x57f41f(0x191)],On=(_0xe67714,_0x24841f,_0x280f32,_0xf74f9c)=>{const _0x1bde28=_0x57f41f;for(var _0x3e58bc=_0xf74f9c>0x1?void 0x0:_0xf74f9c?Rn(_0x24841f,_0x280f32):_0x24841f,_0x596165=_0xe67714[_0x1bde28(0x460)]-0x1,_0x2e6b35;_0x596165>=0x0;_0x596165--)(_0x2e6b35=_0xe67714[_0x596165])&&(_0x3e58bc=(_0xf74f9c?_0x2e6b35(_0x24841f,_0x280f32,_0x3e58bc):_0x2e6b35(_0x3e58bc))||_0x3e58bc);return _0xf74f9c&&_0x3e58bc&&Tn(_0x24841f,_0x280f32,_0x3e58bc),_0x3e58bc;},dt=(_0x2dd35f,_0x49fde9)=>(_0x48c20b,_0x6e1f72)=>_0x49fde9(_0x48c20b,_0x6e1f72,_0x2dd35f);exports[_0x57f41f(0x3ce)]=class{constructor(_0x11f832,_0x12db6f){const _0x3fa743=_0x57f41f;this[_0x3fa743(0x172)]=_0x11f832,this[_0x3fa743(0x498)]=_0x12db6f;}async[_0x57f41f(0x53c)](_0x485eab,_0x22ab56){const _0x868c20=_0x57f41f;var _0x22b47b;const {unitID:_0x1b2728,type:_0x420bcb,revision:_0x3c4fcf=0x0}=_0x22ab56,_0x47fbe6=this[_0x868c20(0x337)]()+'/'+_0x420bcb+'/unit/'+_0x1b2728+_0x868c20(0x491)+_0x3c4fcf,_0x4bfbb5=(await this[_0x868c20(0x498)][_0x868c20(0x31f)](_0x47fbe6))[_0x868c20(0x1a0)],_0x37eb7d=(_0x22b47b=_0x4bfbb5[_0x868c20(0x47d)])==null?void 0x0:_0x22b47b[_0x868c20(0x530)];if(_0x37eb7d){const _0x5ecbcf=_0x37eb7d==null?void 0x0:_0x37eb7d[_0x868c20(0x236)],_0x255909=_['textEncoder']['encode'](_[_0x868c20(0x238)](_0x5ecbcf));_0x37eb7d[_0x868c20(0x236)]=_0x255909,Object['entries'](_0x37eb7d[_0x868c20(0x1e8)])['forEach'](([,_0x4ac34a])=>{const _0x3eebe0=_0x868c20,_0x33cfcf=_0x4ac34a[_0x3eebe0(0x236)],_0x18ff99=_[_0x3eebe0(0x493)]['encode'](_[_0x3eebe0(0x238)](_0x33cfcf));_0x4ac34a[_0x3eebe0(0x236)]=_0x18ff99;});}return _0x4bfbb5;}async[_0x57f41f(0x3c8)](_0x136df1,_0x21c8b4){const _0x5df8fe=_0x57f41f,{unitID:_0x40ab88,type:_0x2561ce,blockID:_0x3785a7}=_0x21c8b4,_0x264b99=this['_getAPIPrefix']()+'/'+_0x2561ce+'/unit/'+_0x40ab88+_0x5df8fe(0x51a)+_0x3785a7;return(await this[_0x5df8fe(0x498)][_0x5df8fe(0x31f)](_0x264b99))[_0x5df8fe(0x1a0)];}async[_0x57f41f(0x459)](_0x396f15,_0x2504a6){const _0x2fcabf=_0x57f41f,{unitID:_0x605c95,type:_0x577959,blockID:_0x56727f}=_0x2504a6,_0x43313a=this['_getAPIPrefix']()+_0x2fcabf(0x51a)+_0x577959+_0x2fcabf(0x170)+_0x605c95+'/block/'+_0x56727f;return(await this[_0x2fcabf(0x498)][_0x2fcabf(0x31f)](_0x43313a))['body'];}async[_0x57f41f(0x455)](_0x57a39a,_0x5cd0ae){const _0x268512=_0x57f41f,{unitID:_0x4af092,type:_0x3dbbdf,from:_0x4392b3,to:_0x1b1df7}=_0x5cd0ae,_0x4a4065=this[_0x268512(0x3b0)]()+'/'+_0x3dbbdf+_0x268512(0x170)+_0x4af092+_0x268512(0x202)+_0x4392b3+'&to='+_0x1b1df7;return(await this['_httpService']['get'](_0x4a4065))[_0x268512(0x1a0)];}['_getSnapshotAPIPrefix'](){const _0x2c2241=_0x57f41f;var _0x249e80;return(_0x249e80=this[_0x2c2241(0x172)][_0x2c2241(0x37f)](vt))!=null?_0x249e80:this[_0x2c2241(0x3b0)]();}[_0x57f41f(0x3b0)](){const _0x11c088=_0x57f41f;var _0x582e6c,_0x603989;const _0xb69e83=this[_0x11c088(0x172)][_0x11c088(0x37f)](St),_0x49e011=this['_configService']['getConfig'](L);return(_0x603989=(_0x582e6c=_0x49e011==null?void 0x0:_0x49e011[_0x11c088(0x14d)])!=null?_0x582e6c:_0xb69e83)!=null?_0x603989:qt;}async[_0x57f41f(0x4ea)](_0x4c8755,_0x2948e3){const _0x13e840=_0x57f41f,_0x9854d9=_0x13e840(0x199)+_0x2948e3[_0x13e840(0x221)]+'/unit/'+_0x2948e3[_0x13e840(0x36e)]+_0x13e840(0x29b);return(await this[_0x13e840(0x498)][_0x13e840(0x31f)](_0x9854d9,{'params':{'resourceId':JSON[_0x13e840(0x3bc)](_0x2948e3[_0x13e840(0x479)])}}))[_0x13e840(0x1a0)];}[_0x57f41f(0x340)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x3db3ef=_0x57f41f;throw new Error(_0x3db3ef(0x19a));}[_0x57f41f(0x369)](){const _0x8820b2=_0x57f41f;throw new Error(_0x8820b2(0x19a));}[_0x57f41f(0x3be)](){const _0x1503ea=_0x57f41f;throw new Error(_0x1503ea(0x19a));}[_0x57f41f(0x507)](){const _0x4bea8a=_0x57f41f;throw new Error(_0x4bea8a(0x19a));}},exports['SnapshotServerOverHTTPService']=On([dt(0x0,a[_0x57f41f(0x435)]),dt(0x1,a[_0x57f41f(0x1ec)](w[_0x57f41f(0x45d)]))],exports[_0x57f41f(0x3ce)]);var Dn=Object[_0x57f41f(0x522)],yn=Object[_0x57f41f(0x191)],Un=(_0x27b823,_0x259182,_0x2ef55d,_0xb0f48d)=>{const _0x1deec2=_0x57f41f;for(var _0x3dfbad=_0xb0f48d>0x1?void 0x0:_0xb0f48d?yn(_0x259182,_0x2ef55d):_0x259182,_0x22c5da=_0x27b823[_0x1deec2(0x460)]-0x1,_0x5d8f1c;_0x22c5da>=0x0;_0x22c5da--)(_0x5d8f1c=_0x27b823[_0x22c5da])&&(_0x3dfbad=(_0xb0f48d?_0x5d8f1c(_0x259182,_0x2ef55d,_0x3dfbad):_0x5d8f1c(_0x3dfbad))||_0x3dfbad);return _0xb0f48d&&_0x3dfbad&&Dn(_0x259182,_0x2ef55d,_0x3dfbad),_0x3dfbad;},ue=(_0x1710a6,_0x3011f2)=>(_0x1f62de,_0x19a0a6)=>_0x3011f2(_0x1f62de,_0x19a0a6,_0x1710a6);let Fe=class extends a[_0x57f41f(0x1b0)]{constructor(_0x2f3ada,_0x388db0,_0x20d906,_0x246da9,_0x5c8263){const _0x5127a0=_0x57f41f;super(_0x2f3ada,_0x388db0,_0x20d906),this[_0x5127a0(0x365)]=_0x246da9,this['_logService']=_0x5c8263;}[_0x57f41f(0x130)](_0x21f7af,_0x11b861){const _0x5ad358=_0x57f41f,_0x20315b=this[_0x5ad358(0x227)](_0x21f7af);if(_0x20315b)try{const _0x13ac47=this[_0x5ad358(0x32f)](_0x20315b,_0x11b861);this['_substituteUndoStack'](_0x21f7af,_0x13ac47);}catch(_0x4d4678){this[_0x5ad358(0x181)][_0x5ad358(0x542)](_0x5ad358(0x2e7),_0x4d4678),this[_0x5ad358(0x50b)](_0x21f7af);}const _0x2739da=this['_getRedoStack'](_0x21f7af);if(_0x2739da)try{const _0x361fca=this[_0x5ad358(0x32f)](_0x2739da,_0x11b861);this['_substituteRedoStack'](_0x21f7af,_0x361fca);}catch(_0x22e3a5){this[_0x5ad358(0x181)]['error'](_0x22e3a5),this[_0x5ad358(0x529)](_0x21f7af);}}[_0x57f41f(0x50b)](_0x547085){const _0x2886d7=_0x57f41f,_0x13a71e=this[_0x2886d7(0x227)](_0x547085);_0x13a71e&&(_0x13a71e[_0x2886d7(0x460)]=0x0,this[_0x2886d7(0x523)]());}[_0x57f41f(0x529)](_0x2a363d){const _0x349f6d=_0x57f41f,_0x185ab1=this[_0x349f6d(0x249)](_0x2a363d);_0x185ab1&&(_0x185ab1['length']=0x0,this[_0x349f6d(0x523)]());}[_0x57f41f(0x2be)](_0x55bf40,_0x3cac5c){const _0x21581b=_0x57f41f;this['_undoStacks'][_0x21581b(0x20b)](_0x55bf40,_0x3cac5c),this[_0x21581b(0x523)]();}[_0x57f41f(0x347)](_0x586366,_0x507b4f){const _0x254059=_0x57f41f;this['_redoStacks'][_0x254059(0x20b)](_0x586366,_0x507b4f),this['_updateStatus']();}[_0x57f41f(0x32f)](_0x3663c3,_0x49b6e0){const _0x28276d=_0x57f41f,_0x1d9822=[];let _0x4f8acd=_0x49b6e0,_0x72ba51=_0x49b6e0;for(let _0x2a7190=_0x3663c3[_0x28276d(0x460)]-0x1;_0x2a7190>=0x0;_0x2a7190--){const {unitID:_0x53f6e9,undoMutations:_0x2f665f,redoMutations:_0x5c94ce}=_0x3663c3[_0x2a7190],_0x2d6502=this['_transformService']['transformMutationsWithChangeset'](_0x4f8acd,_0x2f665f),_0x32d7df=this['_transformService'][_0x28276d(0x323)](_0x72ba51,_0x5c94ce);if(_[_0x28276d(0x53a)](_0x2d6502)||_[_0x28276d(0x53a)](_0x32d7df)){this[_0x28276d(0x181)][_0x28276d(0x542)](_0x28276d(0x2e7),'transformStack\x20failed!',_0x2d6502,_0x32d7df);break;}_0x4f8acd=_0x2d6502[_0x28276d(0x19c)],_0x72ba51=_0x32d7df[_0x28276d(0x19c)],_0x1d9822[_0x28276d(0x2d0)]({'unitID':_0x53f6e9,'undoMutations':_0x2d6502[_0x28276d(0x353)],'redoMutations':_0x32d7df[_0x28276d(0x353)]});}return _0x1d9822[_0x28276d(0x409)]();}};Fe=Un([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x57f41f(0x178)]),ue(0x2,a[_0x57f41f(0x3ea)]),ue(0x3,_[_0x57f41f(0x127)]),ue(0x4,a[_0x57f41f(0x162)])],Fe);class $t extends a[_0x57f41f(0x1c5)]{constructor(){const _0x4330b3=_0x57f41f;super(),u(this,_0x4330b3(0x25d)),this[_0x4330b3(0x25d)]=v[_0x4330b3(0x482)](window,_0x4330b3(0x354))[_0x4330b3(0x4bb)](v[_0x4330b3(0x12b)](this[_0x4330b3(0x43a)]),v[_0x4330b3(0x320)](0x1),v[_0x4330b3(0x335)](void 0x0));}[_0x57f41f(0x209)](_0x39feef,_0x29a79e,_0x85e67e=!0x1){const _0x5e226c=_0x57f41f,_0x4d6dd5=new URL(window[_0x5e226c(0x17d)][_0x5e226c(0x2da)]);_0x4d6dd5['searchParams']['set'](_0x39feef,_0x29a79e),_0x85e67e?window[_0x5e226c(0x1fd)][_0x5e226c(0x3b2)]('','',_0x4d6dd5[_0x5e226c(0x258)]()):window[_0x5e226c(0x1fd)][_0x5e226c(0x27f)]('','',_0x4d6dd5[_0x5e226c(0x258)]());}[_0x57f41f(0x23c)](_0x1440cc,_0x291ff7=!0x1){const _0x2f5d22=_0x57f41f,_0x5d4113=new URL(window['location'][_0x2f5d22(0x2da)]);_0x5d4113[_0x2f5d22(0x3a1)][_0x2f5d22(0x3e0)](_0x1440cc),_0x291ff7?window['history'][_0x2f5d22(0x3b2)]('','',_0x5d4113[_0x2f5d22(0x258)]()):window['history'][_0x2f5d22(0x27f)]('','',_0x5d4113['toString']());}[_0x57f41f(0x41d)](_0x2b8be1){const _0x1245d1=_0x57f41f;var _0x1f182f;return(_0x1f182f=new URL(window['location'][_0x1245d1(0x2da)])['searchParams']['get'](_0x2b8be1))!=null?_0x1f182f:void 0x0;}}var Ht=Object[_0x57f41f(0x522)],Pn=Object['getOwnPropertyDescriptor'],wn=(_0x49a066,_0x130d4b,_0x27934a)=>_0x130d4b in _0x49a066?Ht(_0x49a066,_0x130d4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27934a}):_0x49a066[_0x130d4b]=_0x27934a,Nn=(_0x3f1aac,_0x1d22bd,_0x126279,_0x15c80f)=>{const _0x26f8fb=_0x57f41f;for(var _0x506fc5=_0x15c80f>0x1?void 0x0:_0x15c80f?Pn(_0x1d22bd,_0x126279):_0x1d22bd,_0x5094ff=_0x3f1aac[_0x26f8fb(0x460)]-0x1,_0x271d7e;_0x5094ff>=0x0;_0x5094ff--)(_0x271d7e=_0x3f1aac[_0x5094ff])&&(_0x506fc5=(_0x15c80f?_0x271d7e(_0x1d22bd,_0x126279,_0x506fc5):_0x271d7e(_0x506fc5))||_0x506fc5);return _0x15c80f&&_0x506fc5&&Ht(_0x1d22bd,_0x126279,_0x506fc5),_0x506fc5;},me=(_0x5bd43c,_0x1fe7be)=>(_0x1cb190,_0x306d63)=>_0x1fe7be(_0x1cb190,_0x306d63,_0x5bd43c),Mn=(_0x390632,_0x389fbd,_0x15be98)=>wn(_0x390632,_0x389fbd+'',_0x15be98);const An=_0x57f41f(0x29c);exports[_0x57f41f(0x2ee)]=class extends a['Plugin']{constructor(_0x4031b5=rs,_0xcc8a25,_0x4121fb,_0x2c2699,_0x5649bb){const _0x329804=_0x57f41f;super(),this['_config']=_0x4031b5,this[_0x329804(0x181)]=_0xcc8a25,this[_0x329804(0x46a)]=_0x4121fb,this[_0x329804(0x331)]=_0x2c2699,this[_0x329804(0x172)]=_0x5649bb;const {..._0x2bb520}=this[_0x329804(0x3d8)];this[_0x329804(0x172)][_0x329804(0x218)](L,_0x2bb520);}[_0x57f41f(0x351)](){const _0x5e838e=_0x57f41f;this['_registerDependencies'](),a['touchDependencies'](this['_injector'],[[ne],[exports[_0x5e838e(0x327)]],[Te]]);}[_0x57f41f(0x2af)](){const _0x4d8954=_0x57f41f;a[_0x4d8954(0x151)](this[_0x4d8954(0x331)],[[Ce]]);}[_0x57f41f(0x37e)](){const _0x33ad7f=_0x57f41f;this[_0x33ad7f(0x134)]();}[_0x57f41f(0x38b)](){const _0x1f6ec1=_0x57f41f;var _0x5182bb,_0x182559,_0x465357,_0x3b5090;this[_0x1f6ec1(0x331)][_0x1f6ec1(0x2c9)](a[_0x1f6ec1(0x24e)])&&this['_logService'][_0x1f6ec1(0x542)](_0x1f6ec1(0x462),_0x1f6ec1(0x1d7));let _0x59d739=[[a[_0x1f6ec1(0x24e)],{'useClass':Fe}],[exports[_0x1f6ec1(0x19b)]],[Je],[w[_0x1f6ec1(0x45d)]],[Qe,{'useClass':$t}],[q],[exports[_0x1f6ec1(0x4a8)]],[w[_0x1f6ec1(0x43c)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x182559=(_0x5182bb=this[_0x1f6ec1(0x3d8)])==null?void 0x0:_0x5182bb[_0x1f6ec1(0x166)])!=null?_0x182559:exports[_0x1f6ec1(0x253)]}],[w[_0x1f6ec1(0x4d1)],{'useClass':w['XHRHTTPImplementation']}],[_[_0x1f6ec1(0x144)],{'useClass':exports[_0x1f6ec1(0x3ce)]}],[a[_0x1f6ec1(0x520)],{'useClass':exports[_0x1f6ec1(0x3fb)]}],[j[_0x1f6ec1(0x3d7)],{'useClass':exports[_0x1f6ec1(0x434)]}],[exports[_0x1f6ec1(0x34d)]],[exports[_0x1f6ec1(0x327)]],[exports[_0x1f6ec1(0x2bf)]],[Ce],[ne]];(_0x465357=this[_0x1f6ec1(0x3d8)])!=null&&_0x465357[_0x1f6ec1(0x12d)]&&_0x59d739[_0x1f6ec1(0x2d0)]([Re,{'useClass':$s}]),_0x59d739=a[_0x1f6ec1(0x469)](_0x59d739,(_0x3b5090=this[_0x1f6ec1(0x3d8)])==null?void 0x0:_0x3b5090[_0x1f6ec1(0x2de)]),_0x59d739[_0x1f6ec1(0x50c)](_0x57a95f=>this['_injector'][_0x1f6ec1(0x150)](_0x57a95f)),this['_initModules']();}['_registerRenderDependencies'](){const _0x46dd9c=_0x57f41f;this[_0x46dd9c(0x1e2)](this[_0x46dd9c(0x46a)][_0x46dd9c(0x551)](a[_0x46dd9c(0x4f6)][_0x46dd9c(0x1a7)],[Ve])),this[_0x46dd9c(0x1e2)](this[_0x46dd9c(0x46a)][_0x46dd9c(0x551)](a[_0x46dd9c(0x4f6)]['UNIVER_SHEET'],[We]));}[_0x57f41f(0x15f)](){const _0xe5b2b=_0x57f41f;var _0x284d82,_0x2bd932;this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](w[_0xe5b2b(0x45d)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':w['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_injector'][_0xe5b2b(0x31f)](be),(_0x284d82=this[_0xe5b2b(0x3d8)])!=null&&_0x284d82[_0xe5b2b(0x1fb)]||this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](exports[_0xe5b2b(0x4a8)])[_0xe5b2b(0x1f2)](),(_0x2bd932=this['_config'])!=null&&_0x2bd932[_0xe5b2b(0x247)]&&this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](Ee),this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](exports[_0xe5b2b(0x34d)]),this[_0xe5b2b(0x331)][_0xe5b2b(0x2c9)](exports[_0xe5b2b(0x2bf)])&&this[_0xe5b2b(0x331)][_0xe5b2b(0x31f)](exports[_0xe5b2b(0x2bf)]);}},Mn(exports[_0x57f41f(0x2ee)],_0x57f41f(0x431),An),exports['UniverCollaborationClientPlugin']=Nn([a['DependentOn'](_[_0x57f41f(0x30b)]),me(0x1,a['ILogService']),me(0x2,O['IRenderManagerService']),me(0x3,a[_0x57f41f(0x1ec)](a[_0x57f41f(0x410)])),me(0x4,a[_0x57f41f(0x435)])],exports[_0x57f41f(0x2ee)]),exports[_0x57f41f(0x43b)]=jt,exports[_0x57f41f(0x2cc)]=Ct,exports[_0x57f41f(0x268)]=gt,exports[_0x57f41f(0x35b)]=U,exports['CollaborationStatusDisplay']=Lt,exports['CommentService']=Xe,exports[_0x57f41f(0x1c6)]=mt,exports[_0x57f41f(0x33c)]=Ge,exports['ICollaborationSocketService']=Ke,exports[_0x57f41f(0x1db)]=Qe,exports[_0x57f41f(0x3e6)]=pt,exports[_0x57f41f(0x511)]=Et,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=It,exports['SEND_CHANGESET_TIMEOUT_KEY']=zt,exports[_0x57f41f(0x53f)]=St,exports[_0x57f41f(0x54a)]=vt,exports[_0x57f41f(0x13c)]=H,exports['SheetCollabCursorShape']=Pt,exports[_0x57f41f(0x408)]=$t,exports[_0x57f41f(0x18c)]=Rt,exports[_0x57f41f(0x30d)]=Ot;
1
+ 'use strict';const _0x265f71=_0x5b21;(function(_0x272437,_0x2da9e7){const _0x2e7038=_0x5b21,_0x12db9d=_0x272437();while(!![]){try{const _0x2908cd=-parseInt(_0x2e7038(0x377))/0x1*(parseInt(_0x2e7038(0x532))/0x2)+parseInt(_0x2e7038(0x1fa))/0x3+parseInt(_0x2e7038(0x3ed))/0x4*(parseInt(_0x2e7038(0x4b8))/0x5)+-parseInt(_0x2e7038(0x3cc))/0x6*(parseInt(_0x2e7038(0x566))/0x7)+parseInt(_0x2e7038(0x242))/0x8*(parseInt(_0x2e7038(0x4f7))/0x9)+-parseInt(_0x2e7038(0x378))/0xa*(parseInt(_0x2e7038(0x353))/0xb)+parseInt(_0x2e7038(0x271))/0xc;if(_0x2908cd===_0x2da9e7)break;else _0x12db9d['push'](_0x12db9d['shift']());}catch(_0x166ba2){_0x12db9d['push'](_0x12db9d['shift']());}}}(_0x13c0,0xa095f));var Ft=Object[_0x265f71(0x39e)],Gt=(_0x394e3e,_0x2eea4f,_0x3b500c)=>_0x2eea4f in _0x394e3e?Ft(_0x394e3e,_0x2eea4f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b500c}):_0x394e3e[_0x2eea4f]=_0x3b500c,u=(_0xad7dda,_0x293f88,_0x5d2029)=>Gt(_0xad7dda,typeof _0x293f88!=_0x265f71(0x5b0)?_0x293f88+'':_0x293f88,_0x5d2029);Object[_0x265f71(0x39e)](exports,Symbol[_0x265f71(0x2d6)],{'value':_0x265f71(0x5b8)});const a=require('@univerjs/core'),v=require(_0x265f71(0x5cd)),E=require(_0x265f71(0x531)),X=require(_0x265f71(0x457)),A=require(_0x265f71(0x425)),N=require('@univerjs/network'),_=require('@univerjs-pro/collaboration'),Yt=require(_0x265f71(0x340)),w=require(_0x265f71(0x5bc)),C=require(_0x265f71(0x294)),O=require(_0x265f71(0x332)),se=require('@univerjs/docs'),j=require('@univerjs/drawing'),et=require(_0x265f71(0x55f)),te=require(_0x265f71(0x238)),P=require(_0x265f71(0x384)),Kt=require(_0x265f71(0x4a0)),Xt=require(_0x265f71(0x4c2)),St=_0x265f71(0x2fc),qt=_0x265f71(0x4ea),vt=_0x265f71(0x4ef),zt=_0x265f71(0x3ee),Jt=0x7d0,gt='COLLAB_WEB_SOCKET_URL',Zt=_0x265f71(0x5dc),ft='HEARTBEAT_INTERVAL',Qt=0x7530,Ge='HEARTBEAT_TIMEOUT',mt=0x4e20,es=0x4e20,It='RETRY_CONNECTING_MAX_COUNT',ts=0x3,pt=_0x265f71(0x3aa),ss=0x3e8,Ct=_0x265f71(0x2ae),is=_0x265f71(0x4e7),Et='LOGIN_URL_KEY',ns='/universer-api/oidc/authpage';var bt=(_0x3cdc2e=>(_0x3cdc2e[_0x3cdc2e[_0x265f71(0x575)]=0x0]=_0x265f71(0x575),_0x3cdc2e[_0x3cdc2e['OK']=0x1]='OK',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x31d)]=0x2]='INTERNAL_ERROR',_0x3cdc2e[_0x3cdc2e['PERMISSION_DENIED']=0x3]=_0x265f71(0x3b7),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x212)]=0x4]=_0x265f71(0x212),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x277)]=0x5]=_0x265f71(0x277),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x5ed)]=0x6]=_0x265f71(0x5ed),_0x3cdc2e[_0x3cdc2e['INVALID_ARGUMENT']=0x7]=_0x265f71(0x4da),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x26d)]=0x8]=_0x265f71(0x26d),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x349)]=0x9]=_0x265f71(0x349),_0x3cdc2e[_0x3cdc2e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x265f71(0x3ca),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x446)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x3bf)]=0x1772]=_0x265f71(0x3bf),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x481)]=0x1773]=_0x265f71(0x481),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x520)]=0x1b59]='APPLY_REJECT',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x476)]=0x1b5a]=_0x265f71(0x476),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x1d3)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x5ce)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x3fb)]=0x1b5d]=_0x265f71(0x3fb),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x304)]=0x1f41]=_0x265f71(0x304),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x499)]=0x2329]=_0x265f71(0x499),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x4b7)]=0x232a]=_0x265f71(0x4b7),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x2d3)]=0x232b]=_0x265f71(0x2d3),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x4ed)]=0x232c]=_0x265f71(0x4ed),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x2bf)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x45e)]=0x2711]=_0x265f71(0x45e),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x38f)]=0x2712]=_0x265f71(0x38f),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x568)]=0x2713]=_0x265f71(0x568),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x2fa)]=0x2714]=_0x265f71(0x2fa),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x5f3)]=-0x1]=_0x265f71(0x5f3),_0x3cdc2e))(bt||{}),$=(_0xf845f9=>(_0xf845f9[_0xf845f9[_0x265f71(0x1f6)]=0x0]=_0x265f71(0x1f6),_0xf845f9[_0xf845f9[_0x265f71(0x2d2)]=0x1]=_0x265f71(0x2d2),_0xf845f9[_0xf845f9[_0x265f71(0x527)]=0x2]=_0x265f71(0x527),_0xf845f9[_0xf845f9['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0xf845f9[_0xf845f9[_0x265f71(0x506)]=0x4]='UNIVER_PROJECT',_0xf845f9[_0xf845f9[_0x265f71(0x5f3)]=-0x1]=_0x265f71(0x5f3),_0xf845f9))($||{}),b=(_0x2dbbfc=>(_0x2dbbfc[_0x2dbbfc[_0x265f71(0x4e3)]=0x0]='UNKNOWN_CMD',_0x2dbbfc[_0x2dbbfc[_0x265f71(0x2d5)]=0x1]=_0x265f71(0x2d5),_0x2dbbfc[_0x2dbbfc[_0x265f71(0x514)]=0x2]=_0x265f71(0x514),_0x2dbbfc[_0x2dbbfc['LEAVE']=0x3]=_0x265f71(0x4fb),_0x2dbbfc[_0x2dbbfc[_0x265f71(0x578)]=0x4]=_0x265f71(0x578),_0x2dbbfc[_0x2dbbfc[_0x265f71(0x511)]=0x5]=_0x265f71(0x511),_0x2dbbfc[_0x2dbbfc[_0x265f71(0x410)]=0x6]='RECV',_0x2dbbfc[_0x2dbbfc['UNRECOGNIZED']=-0x1]=_0x265f71(0x5f3),_0x2dbbfc))(b||{}),Ye=(_0x2b8d3b=>(_0x2b8d3b[_0x2b8d3b[_0x265f71(0x523)]=0x0]=_0x265f71(0x523),_0x2b8d3b[_0x2b8d3b['OK']=0x1]='OK',_0x2b8d3b[_0x2b8d3b[_0x265f71(0x364)]=0x2]=_0x265f71(0x364),_0x2b8d3b[_0x2b8d3b[_0x265f71(0x5f3)]=-0x1]=_0x265f71(0x5f3),_0x2b8d3b))(Ye||{}),Tt=(_0x1ae0e6=>(_0x1ae0e6[_0x1ae0e6['Undefined']=0x0]=_0x265f71(0x264),_0x1ae0e6[_0x1ae0e6['HttpImport']=0x1]=_0x265f71(0x201),_0x1ae0e6[_0x1ae0e6[_0x265f71(0x5dd)]=0x2]=_0x265f71(0x5dd),_0x1ae0e6[_0x1ae0e6[_0x265f71(0x3e2)]=0x3]='UnitEmbedded',_0x1ae0e6[_0x1ae0e6[_0x265f71(0x2b1)]=0x4]='UnitSnapshot',_0x1ae0e6[_0x1ae0e6[_0x265f71(0x5f3)]=-0x1]=_0x265f71(0x5f3),_0x1ae0e6))(Tt||{});const L='collaboration-client.config',rs={};function Rt(_0x574c5f){const _0x2ae66d=_0x265f71;var _0x1db241,_0xed3043,_0x2e0f93,_0x3a789f;const _0x2a4429=_0x574c5f[_0x2ae66d(0x485)],_0x1d9730=JSON['parse'](_0x2a4429);switch(_0x1d9730['cmd']){case b[_0x2ae66d(0x511)]:case b['HELLO']:{const _0x305440=_0x1d9730['infoRsp'];return{..._0x1d9730,'data':_0x305440,'cmd':_0x1d9730[_0x2ae66d(0x258)]};}case b[_0x2ae66d(0x514)]:{const _0x5f40c5=_0x1d9730[_0x2ae66d(0x291)];return{..._0x1d9730,'data':_0x5f40c5,'cmd':_0x1d9730[_0x2ae66d(0x258)]};}case b['RECV']:{const _0x355356=_0x1d9730[_0x2ae66d(0x246)];switch(_0x355356[_0x2ae66d(0x32e)]){case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x3f8)]:return{..._0x1d9730,'data':{..._0x355356,'data':(_0x1db241=_0x355356[_0x2ae66d(0x41c)])==null?void 0x0:_0x1db241['cs']},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x552)]:return{..._0x1d9730,'data':{..._0x355356,'data':(_0xed3043=_0x355356[_0x2ae66d(0x389)])==null?void 0x0:_0xed3043['cs']},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x296)]:return{..._0x1d9730,'data':{..._0x355356,'data':(_0x2e0f93=_0x355356[_0x2ae66d(0x225)])==null?void 0x0:_0x2e0f93['cs']},'cmd':_0x1d9730['cmd']};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x22f)]:return{..._0x1d9730,'data':{..._0x355356,'data':(_0x3a789f=_0x355356[_0x2ae66d(0x37a)])==null?void 0x0:_0x3a789f['cs']},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x2c5)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x1e5)]},'cmd':_0x1d9730['cmd']};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x20a)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x254)]},'cmd':_0x1d9730['cmd']};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x1ef)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x5c9)]},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x400)]},'cmd':_0x1d9730['cmd']};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x5bd)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x39d)]},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x37f)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x400)]},'cmd':_0x1d9730['cmd']};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x267)]:return{..._0x1d9730,'data':_0x355356,'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x2d9)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x57a)]},'cmd':_0x1d9730['cmd']};case _['CollaborationEvent'][_0x2ae66d(0x2e6)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x5f1)]},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _['CollaborationEvent'][_0x2ae66d(0x23f)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x2ec)]},'cmd':_0x1d9730[_0x2ae66d(0x258)]};default:return _0x1d9730;}}default:return _0x1d9730;}}function Ot(_0x5a7597){const _0x4bf071=_0x265f71;switch(_0x5a7597['cmd']){case b['HEARTBEAT']:case b[_0x4bf071(0x2d5)]:return JSON[_0x4bf071(0x4d4)]({'cmd':_0x5a7597[_0x4bf071(0x258)],'routeKey':_0x5a7597[_0x4bf071(0x36d)]});case b[_0x4bf071(0x578)]:{let _0x4137ec;switch(_0x5a7597['data']['eventID']){case _[_0x4bf071(0x4d9)][_0x4bf071(0x2c5)]:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)]['UPDATE_CURSOR'],'updateCursorEvent':_0x5a7597['data'][_0x4bf071(0x485)]};break;}case _['CollaborationEvent'][_0x4bf071(0x1ef)]:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)][_0x4bf071(0x1ef)],'leaveEvent':_0x5a7597[_0x4bf071(0x485)]['data']};break;}case _['CollaborationEvent'][_0x4bf071(0x20a)]:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)]['USERS_ENTER'],'joinEvent':_0x5a7597[_0x4bf071(0x485)][_0x4bf071(0x485)]};break;}case _[_0x4bf071(0x4d9)]['LIVESHARE_NEW_HOST']:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)][_0x4bf071(0x1e6)],'liveShareNewHost':_0x5a7597[_0x4bf071(0x485)][_0x4bf071(0x485)]};break;}case _[_0x4bf071(0x4d9)]['LIVESHARE_OPERATION']:{_0x4137ec={'eventID':_['CollaborationEvent'][_0x4bf071(0x5bd)],'liveShareOperation':_0x5a7597[_0x4bf071(0x485)][_0x4bf071(0x485)]};break;}case _[_0x4bf071(0x4d9)][_0x4bf071(0x37f)]:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)][_0x4bf071(0x37f)],'liveShareTerminate':_0x5a7597[_0x4bf071(0x485)][_0x4bf071(0x485)]};break;}case _[_0x4bf071(0x4d9)][_0x4bf071(0x2c0)]:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)][_0x4bf071(0x2c0)],'liveShareRequestHost':_0x5a7597[_0x4bf071(0x485)]['data']};break;}case _[_0x4bf071(0x4d9)][_0x4bf071(0x3d7)]:{_0x4137ec={'eventID':_['CollaborationEvent'][_0x4bf071(0x3d7)]};break;}default:_0x4137ec={'eventID':_0x5a7597[_0x4bf071(0x485)][_0x4bf071(0x32e)]};}return JSON[_0x4bf071(0x4d4)]({'cmd':_0x5a7597['cmd'],'routeKey':_0x5a7597['routeKey'],'collaMsg':_0x4137ec});}case b[_0x4bf071(0x514)]:return JSON[_0x4bf071(0x4d4)]({'cmd':_0x5a7597[_0x4bf071(0x258)],'routeKey':_0x5a7597['routeKey'],'joinReq':_0x5a7597[_0x4bf071(0x485)]});case b['LEAVE']:return JSON[_0x4bf071(0x4d4)]({'cmd':_0x5a7597[_0x4bf071(0x258)],'routeKey':_0x5a7597[_0x4bf071(0x36d)],'leaveReq':_0x5a7597[_0x4bf071(0x485)]});default:throw new Error(_0x4bf071(0x524));}}var os=Object['defineProperty'],as=Object[_0x265f71(0x307)],cs=(_0x38013e,_0x4ebbc0,_0x25315f,_0x2c7baf)=>{const _0x559e3d=_0x265f71;for(var _0x213c97=_0x2c7baf>0x1?void 0x0:_0x2c7baf?as(_0x4ebbc0,_0x25315f):_0x4ebbc0,_0x4f4b12=_0x38013e[_0x559e3d(0x2ce)]-0x1,_0x479435;_0x4f4b12>=0x0;_0x4f4b12--)(_0x479435=_0x38013e[_0x4f4b12])&&(_0x213c97=(_0x2c7baf?_0x479435(_0x4ebbc0,_0x25315f,_0x213c97):_0x479435(_0x213c97))||_0x213c97);return _0x2c7baf&&_0x213c97&&os(_0x4ebbc0,_0x25315f,_0x213c97),_0x213c97;},ae=(_0x4b343f,_0x91dcf2)=>(_0x2d59ae,_0xdfceba)=>_0x91dcf2(_0x2d59ae,_0xdfceba,_0x4b343f);const Ke=a[_0x265f71(0x4bd)](_0x265f71(0x2a3));function ls(_0x5a8c0b,_0x5958d2,_0x3224ea){const _0x47d033=_0x265f71;return _0x5a8c0b+'/'+_0x5958d2+_0x47d033(0x1f1)+_0x3224ea+'/new_changes';}exports['CollaborationSocketService']=class extends a['Disposable']{constructor(_0xc61923,_0x18492c,_0x4edd8c,_0x5511cb,_0x5c4d39){const _0x297d06=_0x265f71;super(),this['_http']=_0xc61923,this[_0x297d06(0x565)]=_0x18492c,this['_configService']=_0x4edd8c,this[_0x297d06(0x4e4)]=_0x5511cb,this[_0x297d06(0x4f5)]=_0x5c4d39;}[_0x265f71(0x588)](_0x3cf73e){const _0x591c14=_0x265f71,_0x758c1e=this[_0x591c14(0x565)][_0x591c14(0x588)](_0x3cf73e);if(!_0x758c1e)throw new Error(_0x591c14(0x5e9));const _0x4415cd=new a[(_0x591c14(0x34c))](),_0x3d4254=new v[(_0x591c14(0x23e))]();_0x4415cd[_0x591c14(0x4bb)](_0x758c1e[_0x591c14(0x41d)][_0x591c14(0x1d2)](_0x11aeaa=>_0x3d4254[_0x591c14(0x53f)](_0x11aeaa))),_0x4415cd[_0x591c14(0x4bb)](a[_0x591c14(0x526)](()=>_0x3d4254[_0x591c14(0x4e8)]()));const _0x4fab7e=new v[(_0x591c14(0x23e))]();_0x4415cd[_0x591c14(0x4bb)](_0x758c1e[_0x591c14(0x5d0)][_0x591c14(0x1d2)](_0x31e558=>_0x4fab7e['next'](_0x31e558))),_0x4415cd['add'](a['toDisposable'](()=>_0x4fab7e[_0x591c14(0x4e8)]()));const _0x17d903=new v[(_0x591c14(0x23e))]();_0x4415cd[_0x591c14(0x4bb)](_0x758c1e[_0x591c14(0x49a)][_0x591c14(0x1d2)](_0x157232=>{const _0x3ab427=Rt(_0x157232);_0x17d903['next'](_0x3ab427);})),_0x4415cd[_0x591c14(0x4bb)](a[_0x591c14(0x526)](()=>_0x17d903['complete']()));let _0x245a4e;const _0x1f701c=()=>{const _0x26a44e=_0x591c14;_0x4fab7e['next'](new Event('connection\x20error')),_0x3d4254[_0x26a44e(0x53f)](new CloseEvent(_0x26a44e(0x326))),_0x245a4e['close']();};return _0x245a4e={'memberID':'','close$':_0x3d4254[_0x591c14(0x406)](),'error$':_0x4fab7e[_0x591c14(0x406)](),'open$':_0x758c1e[_0x591c14(0x5eb)],'message$':_0x17d903[_0x591c14(0x406)](),'send':_0x5a0eb7=>{const _0x1b4fea=_0x591c14;if(_0x5a0eb7[_0x1b4fea(0x258)]===b[_0x1b4fea(0x578)]){if(_0x5a0eb7['data'][_0x1b4fea(0x32e)]===_[_0x1b4fea(0x4d9)][_0x1b4fea(0x3c2)]){this['_submitChangeset'](_0x245a4e,_0x5a0eb7[_0x1b4fea(0x485)])['catch'](_0x488b1c=>{const _0x47daf8=_0x1b4fea;this[_0x47daf8(0x4e4)]['error'](_0x488b1c),_0x1f701c();});return;}if(_0x5a0eb7[_0x1b4fea(0x485)][_0x1b4fea(0x32e)]===_[_0x1b4fea(0x4d9)]['FETCH_MISSING']){const _0x3eca21=_0x5a0eb7[_0x1b4fea(0x485)];this[_0x1b4fea(0x255)](_0x3eca21)[_0x1b4fea(0x473)](_0x1e465b=>{const _0x40f56a=_0x1b4fea;_0x17d903[_0x40f56a(0x53f)]({'cmd':b[_0x40f56a(0x410)],'code':Ye['OK'],'routeKey':_0x3eca21['data'][_0x40f56a(0x597)],'routeType':'','data':{'eventID':_[_0x40f56a(0x4d9)][_0x40f56a(0x4dc)],'data':{'changesets':_0x1e465b}}});})[_0x1b4fea(0x30d)](_0xbe80b7=>{const _0x16c9dc=_0x1b4fea;this[_0x16c9dc(0x4e4)][_0x16c9dc(0x273)](_0xbe80b7),_0x1f701c();});return;}}_0x758c1e[_0x1b4fea(0x22c)](Ot(_0x5a0eb7));},'close':()=>{const _0x5d46bb=_0x591c14;_0x758c1e[_0x5d46bb(0x57d)](),_0x4415cd[_0x5d46bb(0x456)]();}},_0x245a4e;}async['_submitChangeset'](_0x1add5d,_0x45c4c4){const _0x13c16e=_0x265f71;var _0x5cf8b9,_0x11a6b7;const {unitType:_0xd4d138,unitID:_0x11f336,changeset:_0x48f202}=_0x45c4c4[_0x13c16e(0x485)],_0x154838={'unitID':_0x11f336,'memberID':_0x1add5d[_0x13c16e(0x2d8)],'type':_0xd4d138,'changeset':_[_0x13c16e(0x4d3)](_0x48f202)},_0x59a46f=this[_0x13c16e(0x26f)][_0x13c16e(0x572)](Ct),_0x24cd65=this[_0x13c16e(0x26f)][_0x13c16e(0x572)](L),_0x4338da=ls((_0x11a6b7=(_0x5cf8b9=_0x24cd65==null?void 0x0:_0x24cd65[_0x13c16e(0x2cb)])!=null?_0x5cf8b9:_0x59a46f)!=null?_0x11a6b7:is,_0xd4d138,_0x11f336);try{await this[_0x13c16e(0x1d5)][_0x13c16e(0x3ef)](_0x4338da,{'body':_0x154838});}catch(_0x37b8ed){throw this[_0x13c16e(0x4e4)]['error'](_0x13c16e(0x30b),_0x13c16e(0x537)),_0x37b8ed;}}async['_fetchMissChangesets'](_0x9598aa){const _0x397cd0=_0x265f71,{unitID:_0x45bbe4,from:_0x5746b6,to:_0x12e3f2,unitType:_0xd3c33a}=_0x9598aa[_0x397cd0(0x485)];return(await this[_0x397cd0(0x4f5)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x45bbe4,'type':_0xd3c33a,'from':_0x5746b6,'to':_0x12e3f2}))[_0x397cd0(0x5f5)];}},exports[_0x265f71(0x205)]=cs([ae(0x0,a[_0x265f71(0x599)](N[_0x265f71(0x56a)])),ae(0x1,a[_0x265f71(0x599)](N[_0x265f71(0x3b4)])),ae(0x2,a[_0x265f71(0x230)]),ae(0x3,a[_0x265f71(0x54c)]),ae(0x4,_[_0x265f71(0x600)])],exports[_0x265f71(0x205)]);const hs=_0x265f71(0x53e);function _s(_0x6ef821){const _0x212ea7=_0x265f71;return JSON[_0x212ea7(0x4d4)](_0x6ef821)[_0x212ea7(0x2ce)];}class Xe{constructor(){const _0x3d5cd5=_0x265f71;u(this,_0x3d5cd5(0x237),new v[(_0x3d5cd5(0x23e))]()),u(this,'commentUpdate$',this[_0x3d5cd5(0x237)][_0x3d5cd5(0x406)]());}[_0x265f71(0x20b)](_0x42bf90){const _0x16a0bc=_0x265f71;this[_0x16a0bc(0x237)]['next'](_0x42bf90);}}var us=Object[_0x265f71(0x39e)],ds=Object[_0x265f71(0x307)],Ss=(_0x3f9495,_0x1baf89,_0x275872,_0x12c5ad)=>{const _0x482bd7=_0x265f71;for(var _0x280da8=_0x12c5ad>0x1?void 0x0:_0x12c5ad?ds(_0x1baf89,_0x275872):_0x1baf89,_0x23be89=_0x3f9495[_0x482bd7(0x2ce)]-0x1,_0x44068f;_0x23be89>=0x0;_0x23be89--)(_0x44068f=_0x3f9495[_0x23be89])&&(_0x280da8=(_0x12c5ad?_0x44068f(_0x1baf89,_0x275872,_0x280da8):_0x44068f(_0x280da8))||_0x280da8);return _0x12c5ad&&_0x280da8&&us(_0x1baf89,_0x275872,_0x280da8),_0x280da8;},tt=(_0x3fe253,_0x418a71)=>(_0x1251a0,_0x15ba99)=>_0x418a71(_0x1251a0,_0x15ba99,_0x3fe253);let q=class extends a['Disposable']{constructor(_0x23dfe0,_0x46ed08){const _0x2f3d51=_0x265f71;super(),u(this,'_roomMembers',new Map()),(this[_0x2f3d51(0x4c5)]=_0x23dfe0,this[_0x2f3d51(0x44e)]=_0x46ed08,this[_0x2f3d51(0x256)](a[_0x2f3d51(0x526)](v[_0x2f3d51(0x4cf)](this[_0x2f3d51(0x4c5)]['getTypeOfUnitDisposed$'](a[_0x2f3d51(0x1f4)][_0x2f3d51(0x527)])[_0x2f3d51(0x337)](E[_0x2f3d51(0x5e5)](_0x3de798=>_0x3de798[_0x2f3d51(0x4fa)]())),this[_0x2f3d51(0x4c5)]['getTypeOfUnitDisposed$'](a[_0x2f3d51(0x1f4)][_0x2f3d51(0x2d2)])[_0x2f3d51(0x337)](E[_0x2f3d51(0x5e5)](_0x3d94f3=>_0x3d94f3['getUnitId']())),this[_0x2f3d51(0x4c5)][_0x2f3d51(0x598)](a['UniverInstanceType']['UNIVER_SLIDE'])['pipe'](E[_0x2f3d51(0x5e5)](_0x54d63a=>_0x54d63a[_0x2f3d51(0x4fa)]())))[_0x2f3d51(0x1d2)](_0x4f0a5a=>this[_0x2f3d51(0x275)](_0x4f0a5a)))));}['setCurrentUser'](_0x4b2363){const _0x4480c9=_0x265f71;this['_userManagerService'][_0x4480c9(0x5f8)](_0x4b2363);}['getCurrentUser'](){const _0x2a87e3=_0x265f71;return this[_0x2a87e3(0x44e)][_0x2a87e3(0x4ab)]();}[_0x265f71(0x5ae)](_0x498565,_0x2bd1cb){const _0x4c3812=_0x265f71;let _0x1a20e3=this[_0x4c3812(0x309)][_0x4c3812(0x224)](_0x498565);_0x1a20e3||(_0x1a20e3=new vs(),this['_roomMembers'][_0x4c3812(0x2c4)](_0x498565,_0x1a20e3)),_0x1a20e3[_0x4c3812(0x5ae)](_0x2bd1cb);}['removeMember'](_0x231a33,_0x2442f4){const _0x2b56fb=_0x265f71,_0x3be82f=this[_0x2b56fb(0x309)][_0x2b56fb(0x224)](_0x231a33);_0x3be82f&&_0x3be82f['removeMember'](_0x2442f4);}[_0x265f71(0x347)](_0x56e701){const _0x4ab6de=_0x265f71;return this[_0x4ab6de(0x309)][_0x4ab6de(0x224)](_0x56e701);}[_0x265f71(0x390)](_0x48613e,_0x888a34){const _0x22f51b=_0x265f71,_0x53aa59=this[_0x22f51b(0x309)][_0x22f51b(0x224)](_0x48613e);if(_0x53aa59)return _0x53aa59[_0x22f51b(0x390)](_0x888a34);}[_0x265f71(0x275)](_0x231d43){const _0x534509=_0x265f71,_0x1a8e6e=this['_roomMembers']['get'](_0x231d43);_0x1a8e6e&&(_0x1a8e6e[_0x534509(0x456)](),this[_0x534509(0x309)][_0x534509(0x1eb)](_0x231d43));}['dispose'](){const _0x3f6def=_0x265f71;this[_0x3f6def(0x309)]['forEach'](_0x53b581=>_0x53b581[_0x3f6def(0x456)]()),this[_0x3f6def(0x309)][_0x3f6def(0x547)]();}};q=Ss([tt(0x0,a[_0x265f71(0x5ad)]),tt(0x1,a['Inject'](a[_0x265f71(0x394)]))],q);class vs extends a[_0x265f71(0x1d4)]{constructor(){const _0x447bbb=_0x265f71;super(...arguments),u(this,_0x447bbb(0x23d),new Map());}[_0x265f71(0x456)](){const _0x44f40c=_0x265f71;this[_0x44f40c(0x23d)]['clear']();}['updateMember'](_0x2d3591){const _0x7f271d=_0x265f71;this[_0x7f271d(0x23d)][_0x7f271d(0x2c4)](_0x2d3591['memberID'],_0x2d3591);}[_0x265f71(0x582)](_0x119db2){const _0x35f372=_0x265f71;this['_members'][_0x35f372(0x1eb)](_0x119db2);}[_0x265f71(0x390)](_0x264c40){const _0x28eff0=_0x265f71;return this[_0x28eff0(0x23d)][_0x28eff0(0x224)](_0x264c40);}}var gs=Object['defineProperty'],fs=Object['getOwnPropertyDescriptor'],ms=(_0x470716,_0x909012,_0x34a2f9,_0x5039b9)=>{for(var _0x33d55b=_0x5039b9>0x1?void 0x0:_0x5039b9?fs(_0x909012,_0x34a2f9):_0x909012,_0x3ca0a7=_0x470716['length']-0x1,_0x32c5eb;_0x3ca0a7>=0x0;_0x3ca0a7--)(_0x32c5eb=_0x470716[_0x3ca0a7])&&(_0x33d55b=(_0x5039b9?_0x32c5eb(_0x909012,_0x34a2f9,_0x33d55b):_0x32c5eb(_0x33d55b))||_0x33d55b);return _0x5039b9&&_0x33d55b&&gs(_0x909012,_0x34a2f9,_0x33d55b),_0x33d55b;},V=(_0x3aaed7,_0x3e4639)=>(_0x1e8082,_0x44f491)=>_0x3e4639(_0x1e8082,_0x44f491,_0x3aaed7),H=(_0x2f7278=>(_0x2f7278[_0x2f7278[_0x265f71(0x402)]=0x0]=_0x265f71(0x402),_0x2f7278[_0x2f7278[_0x265f71(0x306)]=0x1]=_0x265f71(0x306),_0x2f7278[_0x2f7278[_0x265f71(0x4f3)]=0x2]=_0x265f71(0x4f3),_0x2f7278[_0x2f7278[_0x265f71(0x40f)]=0x3]=_0x265f71(0x40f),_0x2f7278))(H||{});exports['CollaborationSession']=class extends a[_0x265f71(0x459)]{constructor(_0x3e567d,_0x4b5f86,_0x5b8b90,_0x1f6082,_0x50f460,_0x135622,_0x162b35,_0x359c59,_0x52a668,_0x4680af){const _0x264038=_0x265f71;super(),u(this,'_sessionStatus$',new v['BehaviorSubject'](0x0)),u(this,'sessionStatus$',this[_0x264038(0x3dc)][_0x264038(0x406)]()),u(this,'_event$',new v[(_0x264038(0x23e))]()),u(this,_0x264038(0x59e),this[_0x264038(0x2af)][_0x264038(0x406)]()),u(this,_0x264038(0x371)),u(this,_0x264038(0x55b)),u(this,_0x264038(0x301)),u(this,_0x264038(0x4bc),!0x1),u(this,_0x264038(0x386),null),(this['_unitID']=_0x3e567d,this[_0x264038(0x4e4)]=_0x5b8b90,this['_beforeCloseService']=_0x1f6082,this[_0x264038(0x4dd)]=_0x50f460,this[_0x264038(0x26f)]=_0x135622,this[_0x264038(0x315)]=_0x162b35,this[_0x264038(0x452)]=_0x359c59,this[_0x264038(0x29a)]=_0x52a668,this[_0x264038(0x3ec)]=_0x4680af,this[_0x264038(0x4bc)]=!!this[_0x264038(0x3ec)],_0x4b5f86[_0x264038(0x337)](v[_0x264038(0x321)](this[_0x264038(0x3e4)]))['subscribe'](_0x365daa=>{const _0x1881fd=_0x264038;var _0x4f87d1;typeof _0x365daa>'u'||(this[_0x1881fd(0x371)]=_0x365daa,_0x365daa?(this[_0x1881fd(0x202)](_0x365daa),this[_0x1881fd(0x55b)]=_0x365daa[_0x1881fd(0x49a)][_0x1881fd(0x1d2)](_0x50482a=>{const _0x2bd361=_0x1881fd;_0x50482a[_0x2bd361(0x36d)]===this[_0x2bd361(0x37c)]&&this[_0x2bd361(0x5cf)](_0x50482a);})):(this[_0x1881fd(0x47c)](),this[_0x1881fd(0x3dc)][_0x1881fd(0x53f)](0x2),(_0x4f87d1=this['_socketMessageSubscription'])==null||_0x4f87d1['unsubscribe'](),this[_0x1881fd(0x55b)]=null));}),this[_0x264038(0x256)](this[_0x264038(0x5f0)][_0x264038(0x504)](()=>{const _0x2888d1=_0x264038;var _0x31c213;(_0x31c213=this[_0x2888d1(0x371)])==null||_0x31c213['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x2888d1(0x37c)]}});})));}get[_0x265f71(0x5aa)](){const _0x29045b=_0x265f71;return this[_0x29045b(0x3dc)][_0x29045b(0x4bf)]();}['getMemberID'](){var _0x31a32b,_0x3cf298;return(_0x3cf298=(_0x31a32b=this['_socket'])==null?void 0x0:_0x31a32b['memberID'])!=null?_0x3cf298:null;}['dispose'](){const _0x351bce=_0x265f71;super['dispose'](),this[_0x351bce(0x3e4)][_0x351bce(0x53f)](),this['dispose$'][_0x351bce(0x4e8)]();}[_0x265f71(0x57d)](){const _0xf75adb=_0x265f71;var _0xf2201,_0x819d6b;this['_throwTelemetryCollaborationNewChangeset'](),(_0xf2201=this[_0xf75adb(0x371)])==null||_0xf2201[_0xf75adb(0x22c)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0xf75adb(0x37c)]}}),(_0x819d6b=this[_0xf75adb(0x371)])==null||_0x819d6b['close'](),this[_0xf75adb(0x2af)][_0xf75adb(0x4e8)](),this[_0xf75adb(0x3dc)]['complete'](),this[_0xf75adb(0x456)]();}[_0x265f71(0x5cf)](_0xf8fd4a){const _0x148948=_0x265f71;_0xf8fd4a[_0x148948(0x258)]===b[_0x148948(0x514)]?this[_0x148948(0x346)](_0xf8fd4a):_0xf8fd4a[_0x148948(0x258)]===b[_0x148948(0x410)]&&this['_onRecvEvent'](_0xf8fd4a);}[_0x265f71(0x202)](_0x2f246c){const _0xe41555=_0x265f71;this['_sessionStatus$']['next'](0x1),_0x2f246c[_0xe41555(0x22c)]({'cmd':b[_0xe41555(0x514)],'routeKey':this[_0xe41555(0x37c)],'routeType':'','data':{'rooms':[{'roomID':this[_0xe41555(0x37c)]}]}});}[_0x265f71(0x346)](_0x4c4034){const _0x3fd3ff=_0x265f71;var _0x1e8c27;if(_0x4c4034[_0x3fd3ff(0x1fe)]===Ye['FAIL']){this[_0x3fd3ff(0x4dd)][_0x3fd3ff(0x508)]({'type':X[_0x3fd3ff(0x28b)][_0x3fd3ff(0x3e7)],'content':this[_0x3fd3ff(0x315)]['t'](_0x3fd3ff(0x495))}),this[_0x3fd3ff(0x3dc)][_0x3fd3ff(0x53f)](0x2);return;}this[_0x3fd3ff(0x3dc)][_0x3fd3ff(0x53f)](0x3);const _0x3cafbe=(_0x1e8c27=_0x4c4034['data'][_0x3fd3ff(0x33c)][this[_0x3fd3ff(0x37c)]])==null?void 0x0:_0x1e8c27[_0x3fd3ff(0x368)];_0x3cafbe&&_0x3cafbe[_0x3fd3ff(0x5f9)](_0x750bfa=>this[_0x3fd3ff(0x452)]['updateMember'](this[_0x3fd3ff(0x37c)],_0x750bfa));}['_onRecvEvent'](_0x4d455d){const _0x30563d=_0x265f71;try{const _0x1c2f3c=_0x4d455d[_0x30563d(0x485)];switch(_0x1c2f3c[_0x30563d(0x32e)]){case _['CollaborationEvent']['USERS_ENTER']:this[_0x30563d(0x412)](_0x1c2f3c),this[_0x30563d(0x2af)][_0x30563d(0x53f)](_0x1c2f3c);break;case _[_0x30563d(0x4d9)][_0x30563d(0x1ef)]:this[_0x30563d(0x4e1)](_0x1c2f3c),this[_0x30563d(0x2af)][_0x30563d(0x53f)](_0x1c2f3c);break;case _[_0x30563d(0x4d9)][_0x30563d(0x552)]:this[_0x30563d(0x535)](),this[_0x30563d(0x39b)](),this[_0x30563d(0x2af)]['next'](_0x1c2f3c);break;case _['CollaborationEvent'][_0x30563d(0x267)]:this[_0x30563d(0x4e4)][_0x30563d(0x273)](_0x30563d(0x49e)+JSON[_0x30563d(0x4d4)](_0x1c2f3c)),this[_0x30563d(0x2af)][_0x30563d(0x53f)](_0x1c2f3c);break;case _[_0x30563d(0x4d9)][_0x30563d(0x2d9)]:this[_0x30563d(0x29a)]['onCommentUpdate'](_0x1c2f3c['data']),this[_0x30563d(0x2af)][_0x30563d(0x53f)](_0x1c2f3c);break;default:this['_event$'][_0x30563d(0x53f)](_0x1c2f3c);}}catch(_0x418e38){this[_0x30563d(0x4e4)][_0x30563d(0x273)](_0x418e38,_0x4d455d);}}[_0x265f71(0x412)](_0x9a511d){const _0x214e96=_0x265f71;this[_0x214e96(0x452)]['updateMember'](this[_0x214e96(0x37c)],_0x9a511d['data']);}[_0x265f71(0x4e1)](_0x36fae4){const _0x185f80=_0x265f71;this[_0x185f80(0x452)][_0x185f80(0x582)](this[_0x185f80(0x37c)],_0x36fae4[_0x185f80(0x485)][_0x185f80(0x2d8)]);}async[_0x265f71(0x22c)](_0x3c948b,_0x264c3f){const _0x12cb6a=_0x265f71;if(this[_0x12cb6a(0x5aa)]!==0x3||!this['_socket'])throw new Error(_0x12cb6a(0x4a2));try{_0x3c948b[_0x12cb6a(0x32e)]===_['CollaborationEvent'][_0x12cb6a(0x3c2)]&&(this[_0x12cb6a(0x44b)](),this[_0x12cb6a(0x1fd)](_0x3c948b)),this['_socket'][_0x12cb6a(0x22c)]({'cmd':b['INGEST'],'routeKey':_0x264c3f,'routeType':'','data':_0x3c948b});}catch(_0x1e1a36){this[_0x12cb6a(0x4e4)][_0x12cb6a(0x273)](_0x1e1a36);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2f8354=_0x265f71;var _0xff5e2a;this[_0x2f8354(0x301)]=window[_0x2f8354(0x53a)](()=>{const _0x449b75=_0x2f8354;this['_collaborationTimeoutTimer']=null,this[_0x449b75(0x4dd)]['show']({'type':X['MessageType'][_0x449b75(0x22a)],'content':this[_0x449b75(0x315)]['t']('session.collaboration-timeout')});},(_0xff5e2a=this[_0x2f8354(0x26f)][_0x2f8354(0x572)](Ge))!=null?_0xff5e2a:mt);}[_0x265f71(0x39b)](){const _0x5e3eab=_0x265f71;this[_0x5e3eab(0x301)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x265f71(0x1fd)](_0x12bbb0){const _0x5c79d8=_0x265f71;if(!this[_0x5c79d8(0x4bc)])return;const {data:_0x23c991}=_0x12bbb0,{unitID:_0x27e0f8,changeset:_0x21a22d}=_0x23c991,{mutations:_0x2b06dd,type:_0x589014}=_0x21a22d;this[_0x5c79d8(0x386)]={'unitId':_0x27e0f8,'type':_0x589014,'startTime':performance[_0x5c79d8(0x3d3)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x2b06dd)};}[_0x265f71(0x535)](){const _0x1da6af=_0x265f71;if(this[_0x1da6af(0x4bc)]){if(!this['_telemetryInfo']){this[_0x1da6af(0x4e4)]['error'](_0x1da6af(0x30b),_0x1da6af(0x203));return;}this['_telemetryInfo']['stopTime']=performance[_0x1da6af(0x3d3)](),this[_0x1da6af(0x386)]['duration']=this[_0x1da6af(0x386)][_0x1da6af(0x483)]-this[_0x1da6af(0x386)][_0x1da6af(0x56f)],this['_telemetryService']['capture'](hs,this['_telemetryInfo']),this[_0x1da6af(0x386)]=null;}}[_0x265f71(0x47c)](){const _0x373811=_0x265f71;this[_0x373811(0x386)]=null;}},exports[_0x265f71(0x2ca)]=ms([V(0x2,a[_0x265f71(0x54c)]),V(0x3,A['IBeforeCloseService']),V(0x4,A[_0x265f71(0x4b2)]),V(0x5,a['IConfigService']),V(0x6,a[_0x265f71(0x599)](a[_0x265f71(0x42a)])),V(0x7,a[_0x265f71(0x599)](q)),V(0x8,a[_0x265f71(0x599)](Xe)),V(0x9,a['Optional'](Yt['ITelemetryService']))],exports['CollaborationSession']);var Is=Object[_0x265f71(0x39e)],ps=Object[_0x265f71(0x307)],Cs=(_0x200a60,_0x500392,_0x12ed97,_0x5a2d0f)=>{const _0x4a0d36=_0x265f71;for(var _0x4e4e7d=_0x5a2d0f>0x1?void 0x0:_0x5a2d0f?ps(_0x500392,_0x12ed97):_0x500392,_0x559f8e=_0x200a60[_0x4a0d36(0x2ce)]-0x1,_0x2e00f4;_0x559f8e>=0x0;_0x559f8e--)(_0x2e00f4=_0x200a60[_0x559f8e])&&(_0x4e4e7d=(_0x5a2d0f?_0x2e00f4(_0x500392,_0x12ed97,_0x4e4e7d):_0x2e00f4(_0x4e4e7d))||_0x4e4e7d);return _0x5a2d0f&&_0x4e4e7d&&Is(_0x500392,_0x12ed97,_0x4e4e7d),_0x4e4e7d;},Z=(_0x4cd5dc,_0x228972)=>(_0xff6540,_0x5cfd2a)=>_0x228972(_0xff6540,_0x5cfd2a,_0x4cd5dc);exports[_0x265f71(0x1f2)]=class extends a[_0x265f71(0x1d4)]{constructor(_0x46e26f,_0x48cf5a,_0x144803,_0x1ebcc3,_0xeb7873,_0x25b3ac){const _0x2f7e4e=_0x265f71;super(),u(this,'_socket$',new v['BehaviorSubject'](void 0x0)),u(this,_0x2f7e4e(0x5d8),this['_socket$'][_0x2f7e4e(0x406)]()),u(this,_0x2f7e4e(0x48c),null),u(this,_0x2f7e4e(0x2cf),new Map()),u(this,_0x2f7e4e(0x32c),new v[(_0x2f7e4e(0x5e4))](H[_0x2f7e4e(0x402)])),u(this,_0x2f7e4e(0x348),this[_0x2f7e4e(0x32c)]['asObservable']()),u(this,_0x2f7e4e(0x24a),!0x1),u(this,_0x2f7e4e(0x505)),u(this,_0x2f7e4e(0x414),0x0),u(this,'_sendHeartbeatTimer'),u(this,_0x2f7e4e(0x2ff)),(this[_0x2f7e4e(0x555)]=_0x46e26f,this[_0x2f7e4e(0x315)]=_0x48cf5a,this[_0x2f7e4e(0x4dd)]=_0x144803,this[_0x2f7e4e(0x4e4)]=_0x1ebcc3,this[_0x2f7e4e(0x26f)]=_0xeb7873,this[_0x2f7e4e(0x438)]=_0x25b3ac,this[_0x2f7e4e(0x3e5)]());}get[_0x265f71(0x371)](){const _0x125f4b=_0x265f71;return this['_socket$'][_0x125f4b(0x4bf)]();}['_initEventListeners'](){const _0x521f17=_0x265f71;this[_0x521f17(0x3be)](),this[_0x521f17(0x247)]();}[_0x265f71(0x456)](){const _0x273f73=_0x265f71;super['dispose'](),this['_sessions'][_0x273f73(0x5f9)](_0x279fe3=>_0x279fe3['dispose']()),this[_0x273f73(0x2cf)][_0x273f73(0x547)](),this[_0x273f73(0x32c)][_0x273f73(0x4e8)]();}async[_0x265f71(0x430)](_0x24f3c9){const _0x5f449e=_0x265f71;if(this[_0x5f449e(0x2cf)]['has'](_0x24f3c9))return this[_0x5f449e(0x2cf)][_0x5f449e(0x224)](_0x24f3c9);this[_0x5f449e(0x5ff)]();const _0x2e7639=this[_0x5f449e(0x555)][_0x5f449e(0x27f)](exports['CollaborationSession'],_0x24f3c9,this[_0x5f449e(0x248)][_0x5f449e(0x406)]());return this[_0x5f449e(0x2cf)][_0x5f449e(0x2c4)](_0x24f3c9,_0x2e7639),_0x2e7639;}['closeSession'](_0x5ea0cc){const _0x29d37b=_0x265f71;var _0x3cb902;const _0x2a82c5=this[_0x29d37b(0x2cf)][_0x29d37b(0x224)](_0x5ea0cc);_0x2a82c5&&(this[_0x29d37b(0x2cf)][_0x29d37b(0x1eb)](_0x5ea0cc),_0x2a82c5[_0x29d37b(0x57d)]()),this['_sessions'][_0x29d37b(0x2c2)]||(_0x3cb902=this[_0x29d37b(0x371)])==null||_0x3cb902[_0x29d37b(0x57d)]();}['reconnect'](){const _0x20e956=_0x265f71;this[_0x20e956(0x414)]=0x0,this[_0x20e956(0x505)]!=null&&(clearTimeout(this[_0x20e956(0x505)]),this[_0x20e956(0x505)]=null),this[_0x20e956(0x408)]();}[_0x265f71(0x420)](){const _0x53e232=_0x265f71;var _0x3bde92,_0x1908d5;const _0x54962c=this['_configService'][_0x53e232(0x572)](gt),_0x5b8a77=this['_configService']['getConfig'](L),_0x55765a=(_0x1908d5=(_0x3bde92=_0x5b8a77==null?void 0x0:_0x5b8a77[_0x53e232(0x419)])!=null?_0x3bde92:_0x54962c)!=null?_0x1908d5:Zt,_0x14d91b=this[_0x53e232(0x438)][_0x53e232(0x588)](_0x55765a);return this['_candidateSocket']=_0x14d91b,_0x14d91b;}['_tryEnsureSocket'](){const _0x51382b=_0x265f71;var _0x404a22,_0x4f3d0e;try{const _0x15c974=(_0x4f3d0e=(_0x404a22=this['_socket'])!=null?_0x404a22:this[_0x51382b(0x48c)])!=null?_0x4f3d0e:this['_createSocket']();if(_0x15c974){const _0x3d7599=_0x15c974[_0x51382b(0x22c)];_0x15c974[_0x51382b(0x22c)]=_0x44a91a=>(this[_0x51382b(0x4fc)](),_0x3d7599[_0x51382b(0x245)](_0x15c974,[_0x44a91a])),_0x15c974[_0x51382b(0x49a)][_0x51382b(0x1d2)](_0x4cffa7=>this[_0x51382b(0x45a)](_0x15c974,_0x4cffa7)),_0x15c974[_0x51382b(0x5d0)][_0x51382b(0x337)](E[_0x51382b(0x266)](0x1))[_0x51382b(0x1d2)](_0x243091=>this[_0x51382b(0x4e4)]['error'](_0x51382b(0x25f),_0x243091)),_0x15c974[_0x51382b(0x5eb)][_0x51382b(0x337)](E[_0x51382b(0x266)](0x1))[_0x51382b(0x1d2)](()=>{const _0x40f9ee=_0x51382b;this[_0x40f9ee(0x5c7)](_0x15c974);}),_0x15c974[_0x51382b(0x41d)][_0x51382b(0x337)](E[_0x51382b(0x266)](0x1))[_0x51382b(0x1d2)](_0x4a86a5=>{const _0x44a8a5=_0x51382b;this['_logService'][_0x44a8a5(0x3f6)](_0x44a8a5(0x265),_0x44a8a5(0x5a7),_0x4a86a5),this[_0x44a8a5(0x2c1)]();});}}catch(_0xf2e504){this[_0x51382b(0x4e4)][_0x51382b(0x273)](_0xf2e504),this[_0x51382b(0x2c1)]();}}[_0x265f71(0x5c7)](_0x5eee19){const _0x281cc4=_0x265f71;this['_logService'][_0x281cc4(0x3f6)]('[CollaborationSessionService]',_0x281cc4(0x354)),_0x5eee19[_0x281cc4(0x22c)]({'cmd':b[_0x281cc4(0x2d5)]}),this[_0x281cc4(0x4fc)]();}['_listenToOfflineEvent'](){const _0xb4918=_0x265f71;window[_0xb4918(0x40a)]('offline',()=>this[_0xb4918(0x36a)]());}[_0x265f71(0x36a)](){const _0x197b11=_0x265f71;this[_0x197b11(0x24a)]=!0x1,this['_candidateSocket']=null,this[_0x197b11(0x32c)][_0x197b11(0x53f)](H[_0x197b11(0x4f3)]),this[_0x197b11(0x248)][_0x197b11(0x53f)](null),this['_clearTimeoutTimer'](),this[_0x197b11(0x450)]();}['_onConnectionFailed'](){const _0x3b7a7f=_0x265f71;var _0x4d337a;this['_onOffline'](),this[_0x3b7a7f(0x414)]<((_0x4d337a=this[_0x3b7a7f(0x26f)][_0x3b7a7f(0x572)](It))!=null?_0x4d337a:ts)?(this[_0x3b7a7f(0x4dd)][_0x3b7a7f(0x508)]({'key':_0x3b7a7f(0x58c),'type':X[_0x3b7a7f(0x28b)]['Warning'],'content':this[_0x3b7a7f(0x315)]['t'](_0x3b7a7f(0x209))}),this['_tryReconnect']()):this[_0x3b7a7f(0x4dd)][_0x3b7a7f(0x508)]({'key':_0x3b7a7f(0x58c),'type':X['MessageType'][_0x3b7a7f(0x22a)],'content':this['_localeService']['t'](_0x3b7a7f(0x343))});}['_listenToOnlineEvent'](){const _0x5984e6=_0x265f71,_0x344f24=()=>{const _0xd124fb=_0x5b21;this[_0xd124fb(0x371)]||this[_0xd124fb(0x393)]();},_0x5a838e=()=>{const _0x3bd325=_0x5b21;this[_0x3bd325(0x371)]||document['visibilityState']===_0x3bd325(0x49b)||this[_0x3bd325(0x393)]();};window[_0x5984e6(0x40a)]('online',_0x344f24),document['addEventListener'](_0x5984e6(0x283),_0x5a838e);}[_0x265f71(0x408)](){const _0x5bd7e0=_0x265f71;var _0x5777b9;const _0x1418fa=this['_retryCount'],_0xe0b8e9=this[_0x5bd7e0(0x26f)][_0x5bd7e0(0x572)](L),_0x11eb9d=_0x1418fa===0x0?0x0:((_0x5777b9=_0xe0b8e9==null?void 0x0:_0xe0b8e9['retryConnectingInterval'])!=null?_0x5777b9:es)*0x2**_0x1418fa;this[_0x5bd7e0(0x505)]=window[_0x5bd7e0(0x53a)](()=>{const _0x674ab2=_0x5bd7e0;clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this[_0x674ab2(0x5ff)]();},_0x11eb9d),this['_retryCount']+=0x1;}[_0x265f71(0x45a)](_0x5a6bab,_0x45a858){const _0x1a362c=_0x265f71,{cmd:_0x45cf34}=_0x45a858;_0x45cf34===b[_0x1a362c(0x2d5)]&&!this[_0x1a362c(0x24a)]&&(_0x5a6bab[_0x1a362c(0x2d8)]=_0x45a858[_0x1a362c(0x485)][_0x1a362c(0x2d8)],this[_0x1a362c(0x248)][_0x1a362c(0x53f)](_0x5a6bab),this['_status$'][_0x1a362c(0x53f)](H['ONLINE']),this[_0x1a362c(0x24a)]=!0x0,this[_0x1a362c(0x48c)]=null),_0x45cf34===b[_0x1a362c(0x511)]&&this['_clearTimeoutTimer'](),this[_0x1a362c(0x4fc)]();}[_0x265f71(0x4fc)](){const _0x624375=_0x265f71;var _0x3d6827;this[_0x624375(0x450)](),this[_0x624375(0x569)]=window['setTimeout'](()=>this[_0x624375(0x416)](),(_0x3d6827=this['_configService']['getConfig'](ft))!=null?_0x3d6827:Qt);}['_sendHeartbeat'](){const _0x300cd5=_0x265f71;this['_socket'][_0x300cd5(0x22c)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x265f71(0x4a4)](){const _0x48c72e=_0x265f71;var _0x455cc8;this[_0x48c72e(0x2ff)]=window['setTimeout'](()=>this['_onConnectionFailed'](),(_0x455cc8=this[_0x48c72e(0x26f)]['getConfig'](Ge))!=null?_0x455cc8:mt);}['_clearHeartbeatTimer'](){this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x265f71(0x536)](){const _0x103d6b=_0x265f71;this[_0x103d6b(0x2ff)]!=null&&(clearTimeout(this[_0x103d6b(0x2ff)]),this[_0x103d6b(0x2ff)]=null);}},exports[_0x265f71(0x1f2)]=Cs([Z(0x0,a['Inject'](a[_0x265f71(0x1fc)])),Z(0x1,a[_0x265f71(0x599)](a[_0x265f71(0x42a)])),Z(0x2,A[_0x265f71(0x4b2)]),Z(0x3,a['ILogService']),Z(0x4,a[_0x265f71(0x230)]),Z(0x5,Ke)],exports[_0x265f71(0x1f2)]);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R[_0x265f71(0x48f)]((Ue+0x100)['toString'](0x10)['slice'](0x1));function Es(_0x26ef96,_0x322db6=0x0){const _0x2b1ca2=_0x265f71;return(R[_0x26ef96[_0x322db6+0x0]]+R[_0x26ef96[_0x322db6+0x1]]+R[_0x26ef96[_0x322db6+0x2]]+R[_0x26ef96[_0x322db6+0x3]]+'-'+R[_0x26ef96[_0x322db6+0x4]]+R[_0x26ef96[_0x322db6+0x5]]+'-'+R[_0x26ef96[_0x322db6+0x6]]+R[_0x26ef96[_0x322db6+0x7]]+'-'+R[_0x26ef96[_0x322db6+0x8]]+R[_0x26ef96[_0x322db6+0x9]]+'-'+R[_0x26ef96[_0x322db6+0xa]]+R[_0x26ef96[_0x322db6+0xb]]+R[_0x26ef96[_0x322db6+0xc]]+R[_0x26ef96[_0x322db6+0xd]]+R[_0x26ef96[_0x322db6+0xe]]+R[_0x26ef96[_0x322db6+0xf]])[_0x2b1ca2(0x487)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x12101d=_0x265f71;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x12101d(0x2f7)]&&crypto[_0x12101d(0x2f7)][_0x12101d(0x47e)](crypto),!Se))throw new Error(_0x12101d(0x229));return Se(bs);}var Rs=typeof crypto<'u'&&crypto[_0x265f71(0x534)]&&crypto[_0x265f71(0x534)]['bind'](crypto);const st={'randomUUID':Rs};function Os(_0x8b4979,_0x987f7,_0xe4c0ff){const _0x2bffa9=_0x265f71;if(st[_0x2bffa9(0x534)]&&!_0x987f7&&!_0x8b4979)return st[_0x2bffa9(0x534)]();_0x8b4979=_0x8b4979||{};var _0x793810=_0x8b4979[_0x2bffa9(0x546)]||(_0x8b4979['rng']||Ts)();return _0x793810[0x6]=_0x793810[0x6]&0xf|0x40,_0x793810[0x8]=_0x793810[0x8]&0x3f|0x80,Es(_0x793810);}var Ds=Object[_0x265f71(0x39e)],ys=Object[_0x265f71(0x307)],Us=(_0x573159,_0x2f8fff,_0x2c493a,_0x597e38)=>{const _0x357a59=_0x265f71;for(var _0x2f2113=_0x597e38>0x1?void 0x0:_0x597e38?ys(_0x2f8fff,_0x2c493a):_0x2f8fff,_0x185c4e=_0x573159[_0x357a59(0x2ce)]-0x1,_0x571118;_0x185c4e>=0x0;_0x185c4e--)(_0x571118=_0x573159[_0x185c4e])&&(_0x2f2113=(_0x597e38?_0x571118(_0x2f8fff,_0x2c493a,_0x2f2113):_0x571118(_0x2f2113))||_0x2f2113);return _0x597e38&&_0x2f2113&&Ds(_0x2f8fff,_0x2c493a,_0x2f2113),_0x2f2113;},Pe=(_0x5adf50,_0x453305)=>(_0x39b915,_0x9513eb)=>_0x453305(_0x39b915,_0x9513eb,_0x5adf50);let me=class{constructor(_0x3bb2fc,_0x5d8fac,_0x19f821){const _0x4c16e1=_0x265f71;this[_0x4c16e1(0x555)]=_0x3bb2fc,this[_0x4c16e1(0x21f)]=_0x5d8fac,this[_0x4c16e1(0x320)]=_0x19f821;}[_0x265f71(0x3b9)](_0x302894){const _0x2589a4=_0x265f71;this[_0x2589a4(0x3de)](_0x302894),this[_0x2589a4(0x2c6)](_0x302894);}[_0x265f71(0x51c)](_0x1aef29){const _0x2e6698=_0x265f71,{unitID:_0x39875c}=_0x1aef29,_0x2fe160=this[_0x2e6698(0x320)]['getRenderById'](_0x39875c)['with'](w[_0x2e6698(0x43c)]),{redoCache:_0x423b24}=_0x2fe160[_0x2e6698(0x27a)]();if(_0x423b24['length']===0x0)return _0x1aef29;let _0x3dce0d=a[_0x2e6698(0x2de)]['deepClone'](_0x1aef29[_0x2e6698(0x39f)][0x0]);for(let _0x4152ac=0x0;_0x4152ac<_0x423b24['length'];_0x4152ac++){const _0x543f02={'id':_0x2e6698(0x1d8),'params':{..._0x423b24[_0x4152ac]}},_0x4f5281=this[_0x2e6698(0x21f)][_0x2e6698(0x251)](_0x3dce0d,_0x543f02,!0x1);if(_[_0x2e6698(0x4f2)](_0x4f5281))throw _0x4f5281[_0x2e6698(0x273)];_0x3dce0d=_0x4f5281[_0x2e6698(0x5cc)];}return{...a[_0x2e6698(0x2de)][_0x2e6698(0x47d)](_0x1aef29),'mutations':[_0x3dce0d]};}[_0x265f71(0x3de)](_0x179f2c){const _0x1e5767=_0x265f71,{unitID:_0x4af8b2}=_0x179f2c,_0x1097a7=this[_0x1e5767(0x320)][_0x1e5767(0x522)](_0x4af8b2)[_0x1e5767(0x298)](w[_0x1e5767(0x43c)]),{undoCache:_0x37426e,redoCache:_0x17634a}=_0x1097a7[_0x1e5767(0x27a)]();if(_0x37426e[_0x1e5767(0x2ce)]===0x0||_0x17634a[_0x1e5767(0x2ce)]===0x0)return;const _0x1ce8ab=[],_0x496c20=[];let _0x21e2cf=a['Tools'][_0x1e5767(0x47d)](_0x179f2c[_0x1e5767(0x39f)][0x0]),_0x5d3288=a[_0x1e5767(0x2de)][_0x1e5767(0x47d)](_0x179f2c[_0x1e5767(0x39f)][0x0]);for(let _0x4f023d=_0x37426e['length']-0x1;_0x4f023d>=0x0;_0x4f023d--){const _0x14b4e2={'id':'doc.mutation.rich-text-editing','params':{..._0x37426e[_0x4f023d]}},_0x455c55={'id':_0x1e5767(0x1d8),'params':{..._0x17634a[_0x4f023d]}},_0x581132=this[_0x1e5767(0x21f)][_0x1e5767(0x251)](_0x21e2cf,_0x14b4e2,!0x1),_0x3d0a10=this[_0x1e5767(0x21f)][_0x1e5767(0x251)](_0x5d3288,_0x455c55,!0x1);if(_['isTransformMutationFailure'](_0x581132))throw _0x581132[_0x1e5767(0x273)];if(_[_0x1e5767(0x4f2)](_0x3d0a10))throw _0x3d0a10['error'];_0x1ce8ab[_0x1e5767(0x558)](_0x581132[_0x1e5767(0x482)]['params']),_0x496c20[_0x1e5767(0x558)](_0x3d0a10[_0x1e5767(0x482)][_0x1e5767(0x466)]),_0x21e2cf=_0x581132[_0x1e5767(0x5cc)],_0x5d3288=_0x3d0a10[_0x1e5767(0x5cc)];}_0x1097a7[_0x1e5767(0x32a)]({'undoCache':_0x1ce8ab,'redoCache':_0x496c20});}['_transformPreviousActiveRange'](_0x29f05d){const _0x172baf=_0x265f71,{unitID:_0x1cdb52}=_0x29f05d,_0x1a9ba7=this[_0x172baf(0x320)][_0x172baf(0x522)](_0x1cdb52)[_0x172baf(0x298)](w[_0x172baf(0x43c)]),_0x41ec35=_0x1a9ba7[_0x172baf(0x5ab)]();if(_0x41ec35==null)return;const _0xa5596c=[{'id':_0x172baf(0x1d8),'params':{'unitId':_0x29f05d[_0x172baf(0x597)],'actions':null,'textRanges':[_0x41ec35]}}],_0x28a776=this['_transformService']['transformMutationsWithChangeset'](_0x29f05d,_0xa5596c);if(!_['isTransformMutationsWithChangesetSuccess'](_0x28a776))throw _0x28a776['error'];const _0x126b69=_0x28a776[_0x172baf(0x482)][0x0][_0x172baf(0x466)][_0x172baf(0x21b)];Array[_0x172baf(0x235)](_0x126b69)&&_0x126b69['length']&&_0x1a9ba7[_0x172baf(0x323)](_0x126b69[0x0]);}};me=Us([Pe(0x0,a[_0x265f71(0x599)](a['Injector'])),Pe(0x1,_['ITransformService']),Pe(0x2,O['IRenderManagerService'])],me);var Ps=Object[_0x265f71(0x39e)],ws=Object[_0x265f71(0x307)],Ns=(_0xc3e7e8,_0xf05392,_0x45e383,_0x2b3216)=>{const _0x1c01fc=_0x265f71;for(var _0x2fff8a=_0x2b3216>0x1?void 0x0:_0x2b3216?ws(_0xf05392,_0x45e383):_0xf05392,_0x5d2a65=_0xc3e7e8[_0x1c01fc(0x2ce)]-0x1,_0x3a67e4;_0x5d2a65>=0x0;_0x5d2a65--)(_0x3a67e4=_0xc3e7e8[_0x5d2a65])&&(_0x2fff8a=(_0x2b3216?_0x3a67e4(_0xf05392,_0x45e383,_0x2fff8a):_0x3a67e4(_0x2fff8a))||_0x2fff8a);return _0x2b3216&&_0x2fff8a&&Ps(_0xf05392,_0x45e383,_0x2fff8a),_0x2fff8a;},ce=(_0x2d9468,_0x205465)=>(_0x4126d6,_0x1315e6)=>_0x205465(_0x4126d6,_0x1315e6,_0x2d9468);exports['LocalCacheService']=class extends a[_0x265f71(0x1d4)]{constructor(_0x2d86fc,_0x4554e9,_0xee8cae,_0x1be189,_0x44739b){const _0x4d910a=_0x265f71;super(),u(this,_0x4d910a(0x2cc),new Map()),u(this,_0x4d910a(0x261),new Map()),u(this,_0x4d910a(0x5a4),!0x1),(this['_configService']=_0x2d86fc,this['_localStorageService']=_0x4554e9,this['_beforeCloseService']=_0xee8cae,this['_localeService']=_0x1be189,this[_0x4d910a(0x4f8)]=_0x44739b,this[_0x4d910a(0x4ba)]());}[_0x265f71(0x2c8)](){const _0x3f04e8=_0x265f71;this[_0x3f04e8(0x5a4)]=!0x0;}[_0x265f71(0x30f)](){const _0x446251=_0x265f71;this[_0x446251(0x5a4)]=!0x1;}[_0x265f71(0x456)](){const _0x465581=_0x265f71;this[_0x465581(0x544)]()[_0x465581(0x473)](()=>super[_0x465581(0x456)]());}async['loadOfflineData'](_0x483a19){const _0x4e4765=_0x265f71;return this[_0x4e4765(0x5a4)]?null:this[_0x4e4765(0x557)][_0x4e4765(0x3e6)](it(_0x483a19));}async[_0x265f71(0x551)](_0x2b687e,_0x2262be){return!!this['_localStorageService']['setItem'](_0x2b687e,_0x2262be);}['updateOfflineData'](_0xe69f6e,_0x12c807,_0x482065,_0x1759ca){const _0x2ab2c6=_0x265f71,_0x58b5ca=this[_0x2ab2c6(0x4f8)]['getCurrentRevOfUnit'](_0xe69f6e);this['_cachedData'][_0x2ab2c6(0x2c4)](_0xe69f6e,{'unitID':_0xe69f6e,'type':_0x12c807,'awaitingChangeset':_0x482065,'mutations':_0x1759ca,'rev':_0x58b5ca}),this[_0x2ab2c6(0x261)][_0x2ab2c6(0x3c3)](_0xe69f6e)||this[_0x2ab2c6(0x303)](_0xe69f6e);}[_0x265f71(0x303)](_0x38fb08){const _0x2a140d=_0x265f71,_0x2a9988=this[_0x2a140d(0x48e)]();_0x2a9988===0x0?this['_saveCache'](_0x38fb08):this['_saveTaskMap']['set'](_0x38fb08,setTimeout(()=>this[_0x2a140d(0x2f0)](_0x38fb08),_0x2a9988));}['_getSaveTimeout'](){const _0x3a76f8=_0x265f71;var _0x149117;return(_0x149117=this['_configService'][_0x3a76f8(0x572)](pt))!=null?_0x149117:ss;}[_0x265f71(0x2f0)](_0x26ff4b){const _0x1261ff=_0x265f71,_0x40f789=this[_0x1261ff(0x261)][_0x1261ff(0x224)](_0x26ff4b);return _0x40f789!==void 0x0&&window[_0x1261ff(0x50d)](_0x40f789),this['_localStorageService'][_0x1261ff(0x434)](it(_0x26ff4b),this[_0x1261ff(0x2cc)][_0x1261ff(0x224)](_0x26ff4b))[_0x1261ff(0x473)](()=>this[_0x1261ff(0x261)][_0x1261ff(0x1eb)](_0x26ff4b));}async[_0x265f71(0x544)](){const _0x5d1e57=_0x265f71,_0x586231=[];this[_0x5d1e57(0x261)][_0x5d1e57(0x5f9)]((_0x36b51e,_0x19d133)=>{const _0x395e04=_0x5d1e57;window[_0x395e04(0x50d)](_0x36b51e),_0x586231[_0x395e04(0x48f)](this[_0x395e04(0x2f0)](_0x19d133)[_0x395e04(0x473)](()=>{const _0x1453e5=_0x395e04;this[_0x1453e5(0x261)]['delete'](_0x19d133);}));}),await Promise[_0x5d1e57(0x3fd)](_0x586231);}['_setupBeforeClosingHandler'](){const _0x59528c=_0x265f71;this[_0x59528c(0x256)](this[_0x59528c(0x5f0)][_0x59528c(0x58d)](()=>{const _0x563c84=_0x59528c;if(this['_saveTaskMap'][_0x563c84(0x2c2)])return this['_localeService']['t'](_0x563c84(0x262));}));}},exports['LocalCacheService']=Ns([ce(0x0,a[_0x265f71(0x230)]),ce(0x1,a[_0x265f71(0x33d)]),ce(0x2,A[_0x265f71(0x5c0)]),ce(0x3,a[_0x265f71(0x599)](a[_0x265f71(0x42a)])),ce(0x4,a[_0x265f71(0x599)](_[_0x265f71(0x475)]))],exports[_0x265f71(0x573)]);function it(_0x59914b){const _0xd63758=_0x265f71;return _0xd63758(0x26e)+_0x59914b;}var Ms=Object[_0x265f71(0x39e)],As=Object[_0x265f71(0x307)],Ls=(_0x168227,_0x577432,_0x3fa8e6,_0x57b1fb)=>{const _0x171ab5=_0x265f71;for(var _0x4a59e2=_0x57b1fb>0x1?void 0x0:_0x57b1fb?As(_0x577432,_0x3fa8e6):_0x577432,_0x20b6fd=_0x168227[_0x171ab5(0x2ce)]-0x1,_0x3b3f1d;_0x20b6fd>=0x0;_0x20b6fd--)(_0x3b3f1d=_0x168227[_0x20b6fd])&&(_0x4a59e2=(_0x57b1fb?_0x3b3f1d(_0x577432,_0x3fa8e6,_0x4a59e2):_0x3b3f1d(_0x4a59e2))||_0x4a59e2);return _0x57b1fb&&_0x4a59e2&&Ms(_0x577432,_0x3fa8e6,_0x4a59e2),_0x4a59e2;},we=(_0x4b8864,_0x373af9)=>(_0x4b8d21,_0x4784fe)=>_0x373af9(_0x4b8d21,_0x4784fe,_0x4b8864);function js(_0x4e4757){const _0x1af439=_0x265f71,{unitID:_0x2c57d2,mutations:_0x1d2c8c}=_0x4e4757;return{'unitId':_0x2c57d2,'subUnitId':_0x1d2c8c[0x0][_0x1af439(0x466)][_0x1af439(0x345)]};}let Ie=class{constructor(_0x4f4578,_0xb9ce11,_0x2651a7){const _0x5a9e2c=_0x265f71;this[_0x5a9e2c(0x555)]=_0x4f4578,this[_0x5a9e2c(0x21f)]=_0xb9ce11,this[_0x5a9e2c(0x512)]=_0x2651a7;}[_0x265f71(0x498)](_0xbcf7d5){const _0x18b0d8=_0x265f71;var _0x509975,_0xbc6435,_0x3fa8d8,_0x294950;const _0xab7060=this[_0x18b0d8(0x555)][_0x18b0d8(0x224)](C[_0x18b0d8(0x442)]),{unitId:_0x26b216,subUnitId:_0x19d165}=js(_0xbcf7d5),_0x38c736=_0xab7060[_0x18b0d8(0x50f)](_0x26b216)[_0x18b0d8(0x50e)](),_0x646b1a=(_0xbc6435=(_0x509975=this['_instanceService'][_0x18b0d8(0x5ef)](_0x26b216))==null?void 0x0:_0x509975[_0x18b0d8(0x2bc)]())==null?void 0x0:_0xbc6435['getSheetId']();if(_0x38c736[_0x18b0d8(0x2ce)]===0x0||!_0x26b216||!_0x19d165)return;const _0x2367af=[{'id':C[_0x18b0d8(0x31f)]['id'],'params':{'unitId':_0x26b216,'subUnitId':_0x646b1a,'selections':a[_0x18b0d8(0x2de)][_0x18b0d8(0x47d)](_0x38c736)}}],_0x574ff9=this[_0x18b0d8(0x21f)]['transformMutationsWithChangeset'](_0xbcf7d5,_0x2367af);if(!_[_0x18b0d8(0x2dd)](_0x574ff9))throw _0x574ff9[_0x18b0d8(0x273)];const _0x166036=(_0x294950=(_0x3fa8d8=_0x574ff9[_0x18b0d8(0x482)][0x0])==null?void 0x0:_0x3fa8d8[_0x18b0d8(0x466)])==null?void 0x0:_0x294950[_0x18b0d8(0x403)];Array['isArray'](_0x166036)&&_0x166036[_0x18b0d8(0x2ce)]&&this[_0x18b0d8(0x555)]['get'](a[_0x18b0d8(0x596)])[_0x18b0d8(0x336)](C[_0x18b0d8(0x31f)]['id'],{'unitId':_0x26b216,'subUnitId':_0x646b1a,'selections':_0x166036});}};Ie=Ls([we(0x0,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),we(0x1,_[_0x265f71(0x41b)]),we(0x2,a[_0x265f71(0x5ad)])],Ie);const Re=a[_0x265f71(0x4bd)](_0x265f71(0x4ee));var Dt=(_0x206c14=>(_0x206c14[_0x206c14[_0x265f71(0x44f)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x206c14[_0x206c14[_0x265f71(0x219)]=0x1]=_0x265f71(0x219),_0x206c14))(Dt||{});const nt=0x7530,rt='ACTIVE_UNIT_EVENT_CHANNEL';class $s extends a[_0x265f71(0x1d4)]{constructor(){const _0x7e751d=_0x265f71;super(),u(this,_0x7e751d(0x5a5),a[_0x7e751d(0x2de)]['generateRandomId']()),u(this,_0x7e751d(0x5d3),new Set()),u(this,_0x7e751d(0x5c5),new Map()),u(this,_0x7e751d(0x3ae),null),u(this,_0x7e751d(0x300),new Map()),u(this,_0x7e751d(0x5d4),new Map()),this[_0x7e751d(0x211)]();}['dispose'](){const _0x294cfe=_0x265f71;super['dispose'](),this[_0x294cfe(0x300)]['forEach']((_0x247328,_0xf02ddf)=>this[_0x294cfe(0x49c)](_0xf02ddf)),this[_0x294cfe(0x3ae)]&&window[_0x294cfe(0x1ec)](this[_0x294cfe(0x3ae)]);}[_0x265f71(0x460)](_0xc6b8fb){const _0x84dd1d=_0x265f71;return this[_0x84dd1d(0x56e)](_0xc6b8fb)[_0x84dd1d(0x337)](v[_0x84dd1d(0x43f)]());}[_0x265f71(0x28a)](_0x4dec16){const _0x1af727=_0x265f71;this[_0x1af727(0x5d3)]['size']===0x0&&this[_0x1af727(0x3cd)](),this[_0x1af727(0x5d3)]['add'](_0x4dec16),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x4dec16],'isForwarded':!0x1});}[_0x265f71(0x3dd)](_0x1a0ba9){const _0xd45afb=_0x265f71;this['_selfUnitIDs'][_0xd45afb(0x1eb)](_0x1a0ba9),this[_0xd45afb(0x5d3)][_0xd45afb(0x2c2)]===0x0&&this[_0xd45afb(0x3ae)]&&window[_0xd45afb(0x1ec)](this[_0xd45afb(0x3ae)]);}[_0x265f71(0x211)](){const _0x3bf4ae=_0x265f71;this[_0x3bf4ae(0x256)](a['toDisposable'](v[_0x3bf4ae(0x56c)](window,_0x3bf4ae(0x3bb))[_0x3bf4ae(0x1d2)](_0x3fa940=>{const _0x12b360=_0x3bf4ae;if(_0x3fa940['key']!==rt||!_0x3fa940[_0x12b360(0x1e4)])return;const _0x272943=JSON['parse'](_0x3fa940['newValue']);this[_0x12b360(0x49d)](_0x272943);}))),window[_0x3bf4ae(0x40a)](_0x3bf4ae(0x2fb),()=>this[_0x3bf4ae(0x35e)]({'type':0x1,'memberID':this[_0x3bf4ae(0x5a5)],'unitIDs':Array[_0x3bf4ae(0x1f3)](this[_0x3bf4ae(0x5d3)])}));}['_handleEvent'](_0x2aeed3){const _0x18b9b5=_0x265f71;switch(_0x2aeed3[_0x18b9b5(0x38a)]){case 0x0:this['_handleJoinEvent'](_0x2aeed3);break;case 0x1:this['_handleLeaveEvent'](_0x2aeed3);break;case 0x2:this[_0x18b9b5(0x3ba)](_0x2aeed3);break;}}[_0x265f71(0x374)](_0x641e93){const _0x1b317a=_0x265f71,{unitIDs:_0x42ea20,memberID:_0xc3194e,isForwarded:_0x2bfd97}=_0x641e93;_0x42ea20[_0x1b317a(0x5f9)](_0x1f0983=>{const _0x59d7f5=_0x1b317a;if(!_0x2bfd97&&this[_0x59d7f5(0x5c5)][_0x59d7f5(0x3c3)](_0x1f0983)&&this['_ensureSubject'](_0x1f0983)[_0x59d7f5(0x53f)](0x1),!this[_0x59d7f5(0x5c5)][_0x59d7f5(0x3c3)](_0x1f0983)||!this[_0x59d7f5(0x5c5)]['get'](_0x1f0983)[_0x59d7f5(0x3c3)](_0xc3194e)){const _0xbefa16=this[_0x59d7f5(0x5c5)][_0x59d7f5(0x224)](_0x1f0983)||new Set();_0xbefa16['add'](_0xc3194e),this['_unitOnClients'][_0x59d7f5(0x2c4)](_0x1f0983,_0xbefa16),this[_0x59d7f5(0x28c)](_0xc3194e);}}),_0x2bfd97||this[_0x1b317a(0x35e)]({'type':0x0,'memberID':this[_0x1b317a(0x5a5)],'unitIDs':[...this[_0x1b317a(0x5d3)]],'isForwarded':!0x0});}[_0x265f71(0x28c)](_0x4ec11d){const _0x1bd0c8=_0x265f71;this[_0x1bd0c8(0x49c)](_0x4ec11d);const _0x17899d=window[_0x1bd0c8(0x53a)](()=>{const _0x554fd7=_0x1bd0c8;this[_0x554fd7(0x5c5)][_0x554fd7(0x5f9)](_0x5c8b77=>{const _0x408e31=_0x554fd7;_0x5c8b77[_0x408e31(0x1eb)](_0x4ec11d);});},nt*0x2);this[_0x1bd0c8(0x300)][_0x1bd0c8(0x2c4)](_0x4ec11d,_0x17899d);}['_removeClearOtherTimer'](_0xfddd5c){const _0x4b6a5f=_0x265f71;if(this[_0x4b6a5f(0x300)][_0x4b6a5f(0x3c3)](_0xfddd5c)){const _0x23ed24=this[_0x4b6a5f(0x300)][_0x4b6a5f(0x224)](_0xfddd5c);_0x23ed24&&window[_0x4b6a5f(0x50d)](_0x23ed24),this[_0x4b6a5f(0x300)][_0x4b6a5f(0x2c4)](_0xfddd5c,null);}}[_0x265f71(0x4a7)](_0x300cb3){const {memberID:_0x2ae1bd,unitIDs:_0x5c6817}=_0x300cb3;_0x5c6817['forEach'](_0x2bdbf6=>{const _0x5713af=_0x5b21;var _0x6421b;const _0x1425d2=this[_0x5713af(0x5c5)]['get'](_0x2bdbf6);_0x1425d2&&(_0x1425d2['delete'](_0x2ae1bd),(_0x6421b=this[_0x5713af(0x56e)](_0x2bdbf6))==null||_0x6421b['next'](_0x1425d2['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x2ae1bd);}['_handleHeartbeatEvent'](_0x16ccb5){const _0x1c2220=_0x265f71;this[_0x1c2220(0x28c)](_0x16ccb5['memberID']);}[_0x265f71(0x35e)](_0x5cb0fd){const _0x5812bb=_0x265f71;localStorage[_0x5812bb(0x434)](rt,JSON['stringify'](_0x5cb0fd));}[_0x265f71(0x3cd)](){const _0x5bb2ab=_0x265f71;this['_heartbeatTimer']=window[_0x5bb2ab(0x405)](()=>{const _0x59ff4f=_0x5bb2ab;this['_send']({'type':0x2,'memberID':this[_0x59ff4f(0x5a5)]});},nt);}['_ensureSubject'](_0x3cd017){const _0x5bd936=_0x265f71;return this[_0x5bd936(0x5d4)][_0x5bd936(0x3c3)](_0x3cd017)||this[_0x5bd936(0x5d4)][_0x5bd936(0x2c4)](_0x3cd017,new v[(_0x5bd936(0x5e4))](0x0)),this[_0x5bd936(0x5d4)][_0x5bd936(0x224)](_0x3cd017);}}function yt(_0x4ed289){const _0x31cecb=_0x265f71;let _0x182b5f='';for(const _0x22acf5 of _0x4ed289){const {startOffset:_0x537452,endOffset:_0x41c407,isActive:_0x44a4e4}=_0x22acf5;_0x182b5f[_0x31cecb(0x2ce)]&&(_0x182b5f+=','),_0x182b5f+=_0x537452+':'+_0x41c407+':'+(_0x44a4e4?'1':'0');}return _0x182b5f;}function Hs(_0x41c84c){const _0xecfd22=_0x265f71,_0xddf3c6=_0x41c84c[_0xecfd22(0x1e1)](','),_0x2e7ef5=[];for(const _0x7c84dc of _0xddf3c6){const [_0x9a276d,_0x1572c9,_0x286bfd]=_0x7c84dc[_0xecfd22(0x1e1)](':');_0x2e7ef5['push']({'startOffset':Number(_0x9a276d),'endOffset':Number(_0x1572c9),'collapsed':_0x9a276d===_0x1572c9,'isActive':_0x286bfd==='1'});}return _0x2e7ef5['some'](_0x198c0f=>_0x198c0f[_0xecfd22(0x407)])||(_0x2e7ef5[0x0][_0xecfd22(0x407)]=!0x0),_0x2e7ef5;}class qe extends a[_0x265f71(0x459)]{constructor(){const _0x5b4e14=_0x265f71;super(...arguments),u(this,'_collabCursorState$',new v[(_0x5b4e14(0x5e4))](null)),u(this,'collabCursorState$',this[_0x5b4e14(0x58a)]['asObservable']());}[_0x265f71(0x21e)](_0x41053b){const _0x3523dc=_0x265f71,{unitID:_0x3b1aeb,memberID:_0x512230,textRanges:_0x592ea1}=_0x41053b,_0x4efb44=yt(_0x592ea1),_0x5d5be2={'unitID':_0x3b1aeb,'memberID':_0x512230,'selection':_0x4efb44};this['_collabCursorState$'][_0x3523dc(0x53f)](_0x5d5be2);}}var xs=Object['defineProperty'],ks=Object[_0x265f71(0x307)],Bs=(_0x30b9e0,_0x53d496,_0xd83e2f,_0x4abf6c)=>{const _0x2d7de0=_0x265f71;for(var _0x4b42af=_0x4abf6c>0x1?void 0x0:_0x4abf6c?ks(_0x53d496,_0xd83e2f):_0x53d496,_0x4d3631=_0x30b9e0[_0x2d7de0(0x2ce)]-0x1,_0x11d14f;_0x4d3631>=0x0;_0x4d3631--)(_0x11d14f=_0x30b9e0[_0x4d3631])&&(_0x4b42af=(_0x4abf6c?_0x11d14f(_0x53d496,_0xd83e2f,_0x4b42af):_0x11d14f(_0x4b42af))||_0x4b42af);return _0x4abf6c&&_0x4b42af&&xs(_0x53d496,_0xd83e2f,_0x4b42af),_0x4b42af;},ot=(_0x2217ea,_0x14b065)=>(_0x2c36c5,_0x2219ff)=>_0x14b065(_0x2c36c5,_0x2219ff,_0x2217ea);let pe=class{constructor(_0x3b598b,_0x2ff1f4){const _0x4e2787=_0x265f71;this[_0x4e2787(0x555)]=_0x3b598b,this[_0x4e2787(0x21f)]=_0x2ff1f4;}['transformSelections'](_0x5ed3e6){const _0xf310e1=_0x265f71;var _0x168d05;const _0x4e90bc=this[_0xf310e1(0x555)][_0xf310e1(0x224)](se[_0xf310e1(0x292)]),_0x30efb4=(_0x168d05=_0x4e90bc['getDocRanges']())!=null?_0x168d05:[];if(_0x30efb4['length']===0x0)return;const _0x3488c5=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5ed3e6[_0xf310e1(0x597)],'actions':null,'textRanges':_0x30efb4}}],_0x161181=this[_0xf310e1(0x21f)]['transformMutationsWithChangeset'](_0x5ed3e6,_0x3488c5);if(!_[_0xf310e1(0x2dd)](_0x161181))throw _0x161181[_0xf310e1(0x273)];const _0x269d9d=_0x161181[_0xf310e1(0x482)][0x0]['params'][_0xf310e1(0x21b)];Array[_0xf310e1(0x235)](_0x269d9d)&&_0x269d9d[_0xf310e1(0x2ce)]&&_0x4e90bc[_0xf310e1(0x5e0)](_0x269d9d,!0x1);}};pe=Bs([ot(0x0,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),ot(0x1,_[_0x265f71(0x41b)])],pe);const Vs=new Set([C['InsertSheetMutation']['id']]);function at(_0xc33e72,_0x522d52,_0x3f25d1,_0x707ade,_0x438bb0){const _0x4fc8c3=_0x265f71;var _0x1cd6d0,_0x1b92df,_0x3eda8e,_0x141f3d;const _0x3e3850=[];for(const _0x94032f of _0xc33e72)if(Vs[_0x4fc8c3(0x3c3)](_0x94032f['id'])){if(_0x3e3850[_0x4fc8c3(0x2ce)]>0x0)break;_0x3e3850[_0x4fc8c3(0x48f)](_0x94032f);break;}else _0x3e3850[_0x4fc8c3(0x48f)](_0x94032f);const _0x1d9d0a=(_0x1b92df=(_0x1cd6d0=_0x438bb0[_0x4fc8c3(0x4ab)]())==null?void 0x0:_0x1cd6d0[_0x4fc8c3(0x23b)])!=null?_0x1b92df:_0x4fc8c3(0x477),_0x942c1e=(_0x141f3d=(_0x3eda8e=_0x438bb0['getCurrentUser']())==null?void 0x0:_0x3eda8e[_0x4fc8c3(0x2d8)])!=null?_0x141f3d:'unknown';return{'changeset':{'unitID':_0x522d52,'type':_[_0x4fc8c3(0x2b4)](_0x3f25d1['getUnitType'](_0x522d52)),'baseRev':_0x707ade[_0x4fc8c3(0x45d)](_0x522d52),'revision':0x0,'userID':_0x1d9d0a,'memberID':_0x942c1e,'mutations':_0x3e3850},'pendingMutations':_0xc33e72[_0x4fc8c3(0x3b8)](_0x3e3850[_0x4fc8c3(0x2ce)])};}function Ws(_0x361afe,_0x14322f,_0xcb1098,_0x563dda,_0x34a4be){const _0x48845e=_0x265f71;var _0x9ec347,_0x34a413,_0x1af0f5,_0x3d85b5;const _0x74fb10=[_0x361afe[_0x48845e(0x5a3)]((_0x3ee358,_0x2d68e0)=>{const _0x373116=_0x48845e;var _0x384f2d;const {id:_0x9caf99}=_0x3ee358,{id:_0x441bc0,type:_0x5de107}=_0x2d68e0,_0x1b5951=(_0x384f2d=_0x3ee358[_0x373116(0x466)])!=null?_0x384f2d:{'actions':null},_0x486753=_0x2d68e0[_0x373116(0x466)];if(_0x9caf99&&_0x9caf99!==_0x441bc0)throw new Error(_0x373116(0x4aa)+_0x9caf99+_0x373116(0x45c)+_0x441bc0+'.');return{..._0x3ee358,'id':_0x441bc0,'type':_0x5de107,'params':{'unitId':_0x486753[_0x373116(0x3ce)],'textRanges':_0x486753[_0x373116(0x21b)],'actions':a[_0x373116(0x480)]['compose'](_0x1b5951['actions'],_0x486753[_0x373116(0x490)])}};},{})],_0x2907b3=(_0x34a413=(_0x9ec347=_0x34a4be[_0x48845e(0x4ab)]())==null?void 0x0:_0x9ec347['userID'])!=null?_0x34a413:_0x48845e(0x477),_0x2035ed=(_0x3d85b5=(_0x1af0f5=_0x34a4be[_0x48845e(0x4ab)]())==null?void 0x0:_0x1af0f5[_0x48845e(0x2d8)])!=null?_0x3d85b5:_0x48845e(0x477);return{'changeset':{'unitID':_0x14322f,'type':_[_0x48845e(0x2b4)](_0xcb1098[_0x48845e(0x305)](_0x14322f)),'baseRev':_0x563dda['getCurrentRevOfUnit'](_0x14322f),'revision':0x0,'userID':_0x2907b3,'memberID':_0x2035ed,'mutations':_0x74fb10},'pendingMutations':[]};}const Fs={'id':C['EmptyMutation']['id'],'type':a['CommandType']['MUTATION'],'params':{}};var Gs=Object[_0x265f71(0x39e)],Ys=Object[_0x265f71(0x307)],z=(_0x3f5408,_0x1e46f3,_0x262e32,_0x3f705a)=>{for(var _0x3554d8=_0x3f705a>0x1?void 0x0:_0x3f705a?Ys(_0x1e46f3,_0x262e32):_0x1e46f3,_0x4a1bcb=_0x3f5408['length']-0x1,_0x1b6959;_0x4a1bcb>=0x0;_0x4a1bcb--)(_0x1b6959=_0x3f5408[_0x4a1bcb])&&(_0x3554d8=(_0x3f705a?_0x1b6959(_0x1e46f3,_0x262e32,_0x3554d8):_0x1b6959(_0x3554d8))||_0x3554d8);return _0x3f705a&&_0x3554d8&&Gs(_0x1e46f3,_0x262e32,_0x3554d8),_0x3554d8;},f=(_0x278470,_0xa25d7d)=>(_0x33d427,_0xfe5ea1)=>_0xa25d7d(_0x33d427,_0xfe5ea1,_0x278470),U=(_0x567580=>(_0x567580[_0x265f71(0x5da)]=_0x265f71(0x54d),_0x567580[_0x265f71(0x395)]='synced',_0x567580[_0x265f71(0x3db)]='pending',_0x567580[_0x265f71(0x5db)]=_0x265f71(0x38d),_0x567580[_0x265f71(0x360)]=_0x265f71(0x30e),_0x567580['FETCH_MISS']='fetch_missing',_0x567580[_0x265f71(0x4e2)]='conflict',_0x567580[_0x265f71(0x4f3)]='offline',_0x567580))(U||{});class J{constructor(_0x27debf,_0x41d440,_0x2db578,_0x277c99,_0x464e50,_0x5f0d4b,_0x3b127b,_0x148730,_0x4cd56a){const _0x3e662f=_0x265f71;u(this,_0x3e662f(0x443),null),u(this,'_pendingMutations',[]),(this['unitID']=_0x27debf,this['type']=_0x41d440,this[_0x3e662f(0x3b0)]=_0x464e50,this[_0x3e662f(0x530)]=_0x5f0d4b,this['_undoRedoService']=_0x3b127b,this[_0x3e662f(0x4f8)]=_0x148730,this['_localCacheService']=_0x4cd56a,this[_0x3e662f(0x443)]=_0x2db578,this[_0x3e662f(0x257)]=_0x277c99);}[_0x265f71(0x5b6)](_0x2c14a7){const _0x296692=_0x265f71,_0xa2ef61=this['_revisionService'][_0x296692(0x45d)](this[_0x296692(0x597)]);return _0x2c14a7[_0x296692(0x5b1)]>_0xa2ef61+0x1?(this['_handler'][_0x296692(0x44d)]({'from':_0xa2ef61,'to':_0x2c14a7[_0x296692(0x5b1)]-0x1}),!0x0):!0x1;}[_0x265f71(0x5ec)](_0xb69263){const _0x317139=_0x265f71;this[_0x317139(0x42e)]['transformUndoRedo'](this[_0x317139(0x597)],_0xb69263);}[_0x265f71(0x5cb)](_0x513766){const _0x169dd2=_0x265f71;var _0x49feed,_0x2b75d9;(_0x2b75d9=(_0x49feed=this[_0x169dd2(0x3b0)])['onTransformSelections'])==null||_0x2b75d9[_0x169dd2(0x5ba)](_0x49feed,_0x513766);}[_0x265f71(0x359)](_0x9ac765){const _0x294f91=_0x265f71;var _0x53741b,_0x43f7be;return(_0x43f7be=(_0x53741b=this[_0x294f91(0x3b0)])[_0x294f91(0x23c)])==null?void 0x0:_0x43f7be[_0x294f91(0x5ba)](_0x53741b,_0x9ac765);}[_0x265f71(0x439)](_0x4a3031){const _0xe523c=_0x265f71;var _0xbf7002,_0x9aadcc,_0x23e573;return(_0x23e573=(_0x9aadcc=(_0xbf7002=this['_handler'])[_0xe523c(0x56b)])==null?void 0x0:_0x9aadcc[_0xe523c(0x5ba)](_0xbf7002,_0x4a3031))!=null?_0x23e573:_0x4a3031;}['_syncEditingCollabCursor'](_0x2a02ce){const _0xd36d87=_0x265f71;var _0x3bf6cd,_0x3ede3a;if(this[_0xd36d87(0x38a)]===$[_0xd36d87(0x2d2)]){const {unitID:_0x2a49e0,mutations:_0x2eda20,memberID:_0x1338ef}=_0x2a02ce,_0x210086=_0x2eda20[0x0][_0xd36d87(0x466)][_0xd36d87(0x21b)];Array[_0xd36d87(0x235)](_0x210086)&&_0x210086['length']>0x0&&((_0x3ede3a=(_0x3bf6cd=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x3ede3a['call'](_0x3bf6cd,{'unitID':_0x2a49e0,'memberID':_0x1338ef,'textRanges':_0x210086}));}}[_0x265f71(0x586)](){const _0xf4c1db=_0x265f71;this[_0xf4c1db(0x41e)][_0xf4c1db(0x3c5)](this['unitID'],this[_0xf4c1db(0x38a)],this[_0xf4c1db(0x443)],this[_0xf4c1db(0x257)]);}[_0x265f71(0x286)](){const _0x372e07=_0x265f71;return this[_0x372e07(0x4f8)]['getCurrentRevOfUnit'](this[_0x372e07(0x597)]);}['_incrementRevisionNumber'](){const _0x209c6e=_0x265f71;this[_0x209c6e(0x4f8)]['incrementRevOfUnit'](this[_0x209c6e(0x597)]);}[_0x265f71(0x4b4)](_0x29815b){const _0x1eb77b=_0x265f71;var _0x4cfd04;const _0x2adee0=this[_0x1eb77b(0x439)](_0x29815b),_0x39d0dd=a[_0x1eb77b(0x4cc)](_0x2adee0['mutations'],this[_0x1eb77b(0x530)],{'fromCollab':!0x0});if(!_0x39d0dd[_0x1eb77b(0x46e)])throw _0x39d0dd[_0x1eb77b(0x273)]instanceof Error?_0x39d0dd[_0x1eb77b(0x273)]:new Error((_0x4cfd04=_0x39d0dd[_0x1eb77b(0x273)])!=null?_0x4cfd04:'[CollaborationState]:\x20apply\x20error!');this[_0x1eb77b(0x359)](_0x2adee0),this['_transformUndoredo'](_0x29815b),this[_0x1eb77b(0x5cb)](_0x2adee0),this[_0x1eb77b(0x3a0)](_0x2adee0),this['_incrementRevisionNumber']();}}let ie=class extends J{constructor(_0x439c42,_0x2beab1,_0x1f1ca1,_0x9de603,_0x2154e8,_0xc286e7,_0x3aab95,_0x3b147d,_0x56f7b0,_0x39e300){const _0x9b89e7=_0x265f71;super(_0x439c42,_0x2beab1,null,[],_0x1f1ca1,_0x3b147d,_0x3aab95,_0x9de603,_0x2154e8),u(this,_0x9b89e7(0x399),_0x9b89e7(0x451)),(this[_0x9b89e7(0x555)]=_0xc286e7,this['_logService']=_0x56f7b0,this[_0x9b89e7(0x21f)]=_0x39e300);}['appendMutation'](_0x4680c9){const _0x15eb83=_0x265f71,_0x4022ad=this['_injector'][_0x15eb83(0x27f)](k,this['unitID'],this[_0x15eb83(0x38a)],[_0x4680c9],this[_0x15eb83(0x3b0)]);return _0x4022ad['_schedule'](),_0x4022ad[_0x15eb83(0x586)](),_0x4022ad;}['onRemoteChangeset'](_0x20d193){const _0x80698f=_0x265f71;if(this[_0x80698f(0x5b6)](_0x20d193))return this['_injector'][_0x80698f(0x27f)](x,this[_0x80698f(0x597)],this['type'],null,[],null,[_0x20d193],this['_handler']);try{const _0xd6176f=this[_0x80698f(0x21f)][_0x80698f(0x4ae)](_0x20d193,[Fs]);if(_[_0x80698f(0x2dd)](_0xd6176f)){const {c1Prime:_0x57a1aa}=_0xd6176f;return this['_executeRemoteChangeset'](_0x57a1aa),this;}throw _0xd6176f[_0x80698f(0x273)];}catch(_0x4f22f0){return this[_0x80698f(0x4e4)][_0x80698f(0x273)](_0x4f22f0),this[_0x80698f(0x4d7)](!0x1);}}[_0x265f71(0x4d7)](_0x38c60d){const _0x3f9940=_0x265f71;return this['_injector'][_0x3f9940(0x27f)](F,this[_0x3f9940(0x597)],this[_0x3f9940(0x38a)],null,[],this[_0x3f9940(0x3b0)],_0x38c60d);}[_0x265f71(0x325)](){const _0x105d34=_0x265f71;throw new Error(_0x105d34(0x33e));}[_0x265f71(0x216)](){const _0x153eff=_0x265f71;throw new Error(_0x153eff(0x470));}[_0x265f71(0x50a)](){const _0x1268bc=_0x265f71;return this[_0x1268bc(0x555)]['createInstance'](G,this['unitID'],this[_0x1268bc(0x38a)],null,[],this[_0x1268bc(0x3b0)]);}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x584)](){const _0x3ac3dd=_0x265f71;throw new Error(_0x3ac3dd(0x3ea));}[_0x265f71(0x493)](){const _0x1be841=_0x265f71,_0x4c81c9=this[_0x1be841(0x4f8)][_0x1be841(0x45d)](this['unitID']);return this[_0x1be841(0x3b0)][_0x1be841(0x44d)]({'from':_0x4c81c9,'to':0x0}),this[_0x1be841(0x555)][_0x1be841(0x27f)](x,this[_0x1be841(0x597)],this[_0x1be841(0x38a)],null,[],null,[],this['_handler']);}};ie=z([f(0x3,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),f(0x4,a[_0x265f71(0x599)](exports['LocalCacheService'])),f(0x5,a['Inject'](a['Injector'])),f(0x6,a[_0x265f71(0x538)]),f(0x7,a[_0x265f71(0x596)]),f(0x8,a[_0x265f71(0x54c)]),f(0x9,_[_0x265f71(0x41b)])],ie);let k=class extends J{constructor(_0x34ed8e,_0x654e21,_0xfc7c68,_0x27fbb2,_0x5ca089,_0x232afe,_0x45bbc7,_0x6d4b4e,_0x495497,_0x45ad50,_0x55b196,_0x58453d,_0x5ea637,_0x5ac245){const _0x50127a=_0x265f71;super(_0x34ed8e,_0x654e21,null,_0xfc7c68,_0x27fbb2,_0x45ad50,_0x5ac245,_0x232afe,_0x45bbc7),u(this,'status',_0x50127a(0x4c7)),u(this,_0x50127a(0x4b6),null),u(this,_0x50127a(0x503),null),(this['_injector']=_0x5ca089,this['_memberService']=_0x6d4b4e,this['_logService']=_0x495497,this['_configService']=_0x55b196,this[_0x50127a(0x21f)]=_0x58453d,this['_univerInstanceService']=_0x5ea637);}[_0x265f71(0x3e3)](_0x5294bf){const _0x1876c7=_0x265f71;return this[_0x1876c7(0x257)][_0x1876c7(0x48f)](_0x5294bf),this['_updateLocalCache'](),this;}[_0x265f71(0x297)](_0x2cdff3){const _0x158a7a=_0x265f71;if(this[_0x158a7a(0x5b6)](_0x2cdff3))return this[_0x158a7a(0x3a5)](),this['_injector']['createInstance'](x,this[_0x158a7a(0x597)],this[_0x158a7a(0x38a)],null,this['_pendingMutations'],null,[_0x2cdff3],this[_0x158a7a(0x3b0)]);try{const _0x174ce2=this[_0x158a7a(0x21f)][_0x158a7a(0x4ae)](_0x2cdff3,this['_pendingMutations']);if(_[_0x158a7a(0x2dd)](_0x174ce2)){const {c1Prime:_0x4edcdd,m2Prime:_0x3008db}=_0x174ce2;this[_0x158a7a(0x4b4)](_0x4edcdd);const _0x2cce65=this[_0x158a7a(0x555)][_0x158a7a(0x27f)](k,this['unitID'],this[_0x158a7a(0x38a)],_0x3008db,this['_handler']);return this[_0x158a7a(0x3a5)](),_0x2cce65[_0x158a7a(0x53c)](this[_0x158a7a(0x4b6)]?Math[_0x158a7a(0x3d2)](0x0,new Date()[_0x158a7a(0x510)]()-this[_0x158a7a(0x4b6)]):this[_0x158a7a(0x217)]()),_0x2cce65;}throw _0x174ce2[_0x158a7a(0x273)];}catch(_0x3f4d50){return this[_0x158a7a(0x4e4)][_0x158a7a(0x273)](_0x3f4d50),this[_0x158a7a(0x4d7)](!0x1);}}[_0x265f71(0x325)](){const _0x51e02e=_0x265f71;throw new Error(_0x51e02e(0x40b));}['onRemoteRej'](){const _0x4ef63f=_0x265f71;throw new Error(_0x4ef63f(0x293));}[_0x265f71(0x50a)](){const _0x36ee7c=_0x265f71;return this[_0x36ee7c(0x3a5)](),this['_injector']['createInstance'](G,this[_0x36ee7c(0x597)],this[_0x36ee7c(0x38a)],null,this[_0x36ee7c(0x257)],this['_handler']);}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x53c)](_0x4a31b6){const _0x5cca32=_0x265f71,_0x59b2c0=_0x4a31b6!=null?_0x4a31b6:this[_0x5cca32(0x217)]();this[_0x5cca32(0x4b6)]=new Date()[_0x5cca32(0x510)](),this[_0x5cca32(0x503)]=window[_0x5cca32(0x53a)](()=>{const _0x3d2f30=_0x5cca32;this[_0x3d2f30(0x3a5)]();let _0x3433db=null;switch(this[_0x3d2f30(0x38a)]){case $[_0x3d2f30(0x527)]:{_0x3433db=at(this[_0x3d2f30(0x257)],this[_0x3d2f30(0x597)],this[_0x3d2f30(0x4c5)],this[_0x3d2f30(0x4f8)],this[_0x3d2f30(0x452)]);break;}case $[_0x3d2f30(0x2d2)]:{this[_0x3d2f30(0x257)][_0x3d2f30(0x541)](_0x22872c=>_0x22872c['id']===se[_0x3d2f30(0x54b)]['id'])?_0x3433db=Ws(this[_0x3d2f30(0x257)],this['unitID'],this[_0x3d2f30(0x4c5)],this['_revisionService'],this[_0x3d2f30(0x452)]):_0x3433db=at(this[_0x3d2f30(0x257)],this[_0x3d2f30(0x597)],this[_0x3d2f30(0x4c5)],this[_0x3d2f30(0x4f8)],this[_0x3d2f30(0x452)]);break;}default:throw new Error(_0x3d2f30(0x556)+this['type']+_0x3d2f30(0x46d));}const {changeset:_0x479972,pendingMutations:_0x1c0efd}=_0x3433db;this[_0x3d2f30(0x3b0)][_0x3d2f30(0x478)](_0x479972);const _0x5808a5=_0x1c0efd[_0x3d2f30(0x2ce)]?this[_0x3d2f30(0x555)]['createInstance'](B,this[_0x3d2f30(0x597)],this[_0x3d2f30(0x38a)],_0x479972,_0x1c0efd,this[_0x3d2f30(0x3b0)]):this['_injector']['createInstance'](W,this['unitID'],this[_0x3d2f30(0x38a)],_0x479972,this[_0x3d2f30(0x3b0)]);_0x5808a5['_updateLocalCache'](),this[_0x3d2f30(0x3b0)][_0x3d2f30(0x3c1)](this,_0x5808a5);},_0x59b2c0);}[_0x265f71(0x217)](){const _0x5a7b9a=_0x265f71;var _0x182cd0;const _0x3bbce2=this[_0x5a7b9a(0x26f)][_0x5a7b9a(0x572)](L);return(_0x182cd0=_0x3bbce2==null?void 0x0:_0x3bbce2['sendChangesetTimeout'])!=null?_0x182cd0:Jt;}['resend'](){const _0x1c0599=_0x265f71;throw new Error(_0x1c0599(0x231));}[_0x265f71(0x3a5)](){const _0x56a843=_0x265f71;this[_0x56a843(0x503)]!=null&&(clearTimeout(this[_0x56a843(0x503)]),this[_0x56a843(0x503)]=null);}[_0x265f71(0x4d7)](_0x45d6ed){const _0x3faddf=_0x265f71;return this[_0x3faddf(0x3a5)](),this[_0x3faddf(0x555)][_0x3faddf(0x27f)](F,this[_0x3faddf(0x597)],this[_0x3faddf(0x38a)],null,this['_pendingMutations'],this[_0x3faddf(0x3b0)],_0x45d6ed);}};k=z([f(0x4,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),f(0x5,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),f(0x6,a['Inject'](exports[_0x265f71(0x573)])),f(0x7,a[_0x265f71(0x599)](q)),f(0x8,a[_0x265f71(0x54c)]),f(0x9,a['ICommandService']),f(0xa,a[_0x265f71(0x230)]),f(0xb,_['ITransformService']),f(0xc,a[_0x265f71(0x5ad)]),f(0xd,a[_0x265f71(0x538)])],k);let W=class extends J{constructor(_0x1db7a3,_0x55457a,_0x1dca2e,_0x2ed6e7,_0x44535a,_0x22541e,_0x4e04a6,_0x283f1d,_0x22a109,_0x31eb2a,_0x2ebb1a){const _0xe64686=_0x265f71;super(_0x1db7a3,_0x55457a,_0x1dca2e,[],_0x2ed6e7,_0x283f1d,_0x2ebb1a,_0x22541e,_0x4e04a6),u(this,_0xe64686(0x399),'awaiting'),(this[_0xe64686(0x555)]=_0x44535a,this[_0xe64686(0x4e4)]=_0x22a109,this[_0xe64686(0x21f)]=_0x31eb2a);}[_0x265f71(0x3e3)](_0x2c2a91){const _0x4a8777=_0x265f71,_0x8d4024=this[_0x4a8777(0x555)]['createInstance'](B,this[_0x4a8777(0x597)],this[_0x4a8777(0x38a)],this[_0x4a8777(0x443)],[_0x2c2a91],this[_0x4a8777(0x3b0)]);return _0x8d4024[_0x4a8777(0x586)](),_0x8d4024;}[_0x265f71(0x297)](_0x58cd1c){const _0x471d5a=_0x265f71;if(this[_0x471d5a(0x5b6)](_0x58cd1c))return this[_0x471d5a(0x555)]['createInstance'](x,this[_0x471d5a(0x597)],this[_0x471d5a(0x38a)],this[_0x471d5a(0x443)],[],null,[_0x58cd1c],this[_0x471d5a(0x3b0)]);try{const _0x4e3aa9=this[_0x471d5a(0x21f)][_0x471d5a(0x5a8)]([_0x58cd1c],[this[_0x471d5a(0x443)]],!0x1);if(_[_0x471d5a(0x2f2)](_0x4e3aa9)){const {c1Prime:_0x202547,c2Prime:_0x11133f}=_0x4e3aa9;this[_0x471d5a(0x4b4)](_0x202547[0x0]),_0x11133f[0x0]['baseRev']=this['_getCurrentRevision']();const _0x4a08ef=this[_0x471d5a(0x555)][_0x471d5a(0x27f)](W,this[_0x471d5a(0x597)],this[_0x471d5a(0x38a)],_0x11133f[0x0],this['_handler']);return _0x4a08ef[_0x471d5a(0x586)](),_0x4a08ef;}return this[_0x471d5a(0x4d7)](!0x1);}catch(_0x53f047){return this['_logService']['error'](_0x53f047),this[_0x471d5a(0x4d7)](!0x1);}}[_0x265f71(0x325)](_0x542eb2){const _0x99b18a=_0x265f71,_0x3c4d79=this['_revisionService'][_0x99b18a(0x45d)](this[_0x99b18a(0x597)]);if(_0x542eb2[_0x99b18a(0x5b1)]<_0x3c4d79-0x1)return this;if(this['_checkMissing'](_0x542eb2))return this[_0x99b18a(0x555)][_0x99b18a(0x27f)](x,this[_0x99b18a(0x597)],this[_0x99b18a(0x38a)],null,[],this[_0x99b18a(0x443)],[],this[_0x99b18a(0x3b0)]);this[_0x99b18a(0x31a)]();const _0x558dcd=this['_injector'][_0x99b18a(0x27f)](ie,this['unitID'],this[_0x99b18a(0x38a)],this['_handler']);return _0x558dcd['_updateLocalCache'](),_0x558dcd;}[_0x265f71(0x216)](_0x27d320){const _0x2b552f=_0x265f71;return this['_onConflict'](!!(_0x27d320!=null&&_0x27d320[_0x2b552f(0x52a)]));}[_0x265f71(0x50a)](){const _0x463d8b=_0x265f71;return this['_injector'][_0x463d8b(0x27f)](G,this[_0x463d8b(0x597)],this[_0x463d8b(0x38a)],this['_awaitingChangeset'],[],this[_0x463d8b(0x3b0)]);}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x584)](){const _0x2346d9=_0x265f71;this[_0x2346d9(0x3b0)]['onSendChangeset'](this[_0x2346d9(0x443)]);}['_onConflict'](_0x903d95){const _0xf9d768=_0x265f71;return this[_0xf9d768(0x555)][_0xf9d768(0x27f)](F,this[_0xf9d768(0x597)],this[_0xf9d768(0x38a)],this['_awaitingChangeset'],[],this[_0xf9d768(0x3b0)],_0x903d95);}};W=z([f(0x4,a[_0x265f71(0x599)](a['Injector'])),f(0x5,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),f(0x6,a[_0x265f71(0x599)](exports[_0x265f71(0x573)])),f(0x7,a['ICommandService']),f(0x8,a[_0x265f71(0x54c)]),f(0x9,_[_0x265f71(0x41b)]),f(0xa,a[_0x265f71(0x538)])],W);let B=class extends J{constructor(_0xdf7e2c,_0x1bccc4,_0x202749,_0x44f1cf,_0x349c9f,_0x5ab575,_0x5905f3,_0x4d3d8e,_0x1b3cef,_0x378be0,_0x3f757f,_0x41efcd){const _0x51f91e=_0x265f71;super(_0xdf7e2c,_0x1bccc4,_0x202749,_0x44f1cf,_0x349c9f,_0x1b3cef,_0x41efcd,_0x5905f3,_0x4d3d8e),u(this,_0x51f91e(0x399),_0x51f91e(0x30e)),(this[_0x51f91e(0x555)]=_0x5ab575,this['_logService']=_0x378be0,this[_0x51f91e(0x21f)]=_0x3f757f);}[_0x265f71(0x3e3)](_0xce8700){const _0x3b2504=_0x265f71;return this[_0x3b2504(0x257)]['push'](_0xce8700),this;}[_0x265f71(0x297)](_0x5d19c9){const _0x484312=_0x265f71;if(this[_0x484312(0x5b6)](_0x5d19c9))return this['_injector']['createInstance'](x,this['unitID'],this[_0x484312(0x38a)],this[_0x484312(0x443)],this[_0x484312(0x257)],null,[_0x5d19c9],this[_0x484312(0x3b0)]);try{const _0x4a82c1=this[_0x484312(0x21f)][_0x484312(0x5a8)]([_0x5d19c9],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x4a82c1)){const {c1Prime:_0x4e17c3,c2Prime:_0x3d1550}=_0x4a82c1,_0x17e2e4=this[_0x484312(0x21f)]['transformMutationsWithChangeset'](_0x4e17c3[0x0],this[_0x484312(0x257)]);if(_[_0x484312(0x2dd)](_0x17e2e4)){const {c1Prime:_0x58d38a,m2Prime:_0x3c0770}=_0x17e2e4;return this[_0x484312(0x4b4)](_0x58d38a),_0x3d1550[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x484312(0x555)][_0x484312(0x27f)](B,this['unitID'],this[_0x484312(0x38a)],_0x3d1550[0x0],_0x3c0770,this[_0x484312(0x3b0)]);}throw _0x17e2e4[_0x484312(0x273)];}throw _0x4a82c1['error'];}catch(_0x170186){return this['_logService'][_0x484312(0x273)](_0x170186),this[_0x484312(0x4d7)](!0x1);}}[_0x265f71(0x325)](_0x1461f0){const _0x1d59b7=_0x265f71;if(this['_checkMissing'](_0x1461f0))return this[_0x1d59b7(0x555)][_0x1d59b7(0x27f)](x,this[_0x1d59b7(0x597)],this[_0x1d59b7(0x38a)],null,this[_0x1d59b7(0x257)],this['_awaitingChangeset'],[],this[_0x1d59b7(0x3b0)]);this['_incrementRevisionNumber']();const _0x430c2b=this[_0x1d59b7(0x555)][_0x1d59b7(0x27f)](k,this['unitID'],this[_0x1d59b7(0x38a)],this[_0x1d59b7(0x257)],this[_0x1d59b7(0x3b0)]);return _0x430c2b[_0x1d59b7(0x53c)](),_0x430c2b[_0x1d59b7(0x586)](),_0x430c2b;}['onRemoteRej'](_0x40b739){const _0x20f4c7=_0x265f71;return this[_0x20f4c7(0x4d7)](!!(_0x40b739!=null&&_0x40b739[_0x20f4c7(0x52a)]));}[_0x265f71(0x50a)](){const _0x28c927=_0x265f71;return this[_0x28c927(0x555)][_0x28c927(0x27f)](G,this['unitID'],this[_0x28c927(0x38a)],this[_0x28c927(0x443)],this[_0x28c927(0x257)],this[_0x28c927(0x3b0)]);}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x584)](){const _0x516f9a=_0x265f71;this[_0x516f9a(0x3b0)][_0x516f9a(0x478)](this[_0x516f9a(0x443)]);}[_0x265f71(0x4d7)](_0x524ab4){const _0xa5517=_0x265f71;return this[_0xa5517(0x555)][_0xa5517(0x27f)](F,this['unitID'],this[_0xa5517(0x38a)],null,this[_0xa5517(0x257)],this[_0xa5517(0x3b0)],_0x524ab4);}};function _0x5b21(_0x548d71,_0x395cdd){const _0x13c0b1=_0x13c0();return _0x5b21=function(_0x5b218c,_0x435063){_0x5b218c=_0x5b218c-0x1d1;let _0x162032=_0x13c0b1[_0x5b218c];return _0x162032;},_0x5b21(_0x548d71,_0x395cdd);}B=z([f(0x5,a['Inject'](a[_0x265f71(0x1fc)])),f(0x6,a[_0x265f71(0x599)](_['RevisionService'])),f(0x7,a[_0x265f71(0x599)](exports[_0x265f71(0x573)])),f(0x8,a[_0x265f71(0x596)]),f(0x9,a['ILogService']),f(0xa,_[_0x265f71(0x41b)]),f(0xb,a['IUndoRedoService'])],B);let F=class extends J{constructor(_0x18c586,_0x31c033,_0xde0cf7,_0x2fdd5f,_0xb58dfc,_0x3dd245=!0x1,_0x4b1fb0,_0x4898bf,_0x2df32e,_0x283843,_0x427821,_0x3b8d5a,_0x2c8050){const _0x2d7524=_0x265f71;super(_0x18c586,_0x31c033,_0xde0cf7,_0x2fdd5f,_0xb58dfc,_0x4898bf,_0x2df32e,_0x427821,_0x283843),u(this,'status',_0x2d7524(0x5f4)),(this[_0x2d7524(0x369)]=_0x3dd245,this['_permissionService']=_0x4b1fb0,this[_0x2d7524(0x315)]=_0x3b8d5a,this[_0x2d7524(0x2c3)]=_0x2c8050,this[_0x2d7524(0x5c6)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x265f71(0x3e3)](){return this;}[_0x265f71(0x297)](){return this;}[_0x265f71(0x325)](){return this;}[_0x265f71(0x216)](){return this;}[_0x265f71(0x50a)](){return this;}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x584)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x265f71(0x1e3)](){const _0x138e0d=_0x265f71;this[_0x138e0d(0x41e)][_0x138e0d(0x3c5)](this['unitID'],this['type'],null,[]);}[_0x265f71(0x5c6)](){const _0xb1a27d=_0x265f71;this[_0xb1a27d(0x369)]?this[_0xb1a27d(0x2c3)][_0xb1a27d(0x508)]({'title':this[_0xb1a27d(0x315)]['t']('permission.title'),'content':this['_localeService']['t'](_0xb1a27d(0x2ee)),'type':_0xb1a27d(0x273),'duration':0x0}):this[_0xb1a27d(0x2c3)][_0xb1a27d(0x508)]({'title':this['_localeService']['t'](_0xb1a27d(0x3f3)),'content':this[_0xb1a27d(0x315)]['t']('conflict.content'),'type':_0xb1a27d(0x273),'duration':0x0});}[_0x265f71(0x21a)](){const _0x5c63f0=_0x265f71;this[_0x5c63f0(0x449)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this[_0x5c63f0(0x597)])['id'],!0x1);}};F=z([f(0x6,a['Inject'](a[_0x265f71(0x2b6)])),f(0x7,a['ICommandService']),f(0x8,a[_0x265f71(0x538)]),f(0x9,a[_0x265f71(0x599)](exports[_0x265f71(0x573)])),f(0xa,a['Inject'](_[_0x265f71(0x475)])),f(0xb,a['Inject'](a[_0x265f71(0x42a)])),f(0xc,A[_0x265f71(0x4d8)])],F);let G=class extends J{constructor(_0x2974e0,_0x2e3176,_0x2e8335,_0x8df924,_0x5cfcac,_0x5f9fcd,_0xe881a1,_0xa4f55,_0x31b5ee,_0x20e063){const _0x42b78e=_0x265f71;super(_0x2974e0,_0x2e3176,_0x2e8335,_0x8df924,_0x5cfcac,_0x31b5ee,_0x20e063,_0xe881a1,_0xa4f55),u(this,_0x42b78e(0x399),_0x42b78e(0x2f8)),this['_injector']=_0x5f9fcd;}['appendMutation'](_0xddf948){const _0x472d61=_0x265f71;return this[_0x472d61(0x257)][_0x472d61(0x48f)](_0xddf948),this['_updateLocalCache'](),this;}[_0x265f71(0x297)](_0x22e67f){const _0x478911=_0x265f71;throw new Error(_0x478911(0x1da));}[_0x265f71(0x325)](){const _0x4852fc=_0x265f71;throw new Error(_0x4852fc(0x4cd));}[_0x265f71(0x216)](){const _0x13a330=_0x265f71;throw new Error(_0x13a330(0x220));}[_0x265f71(0x50a)](){return this;}['toggleOnline'](){const _0x561d70=_0x265f71,{_injector:_0x5a4654,_pendingMutations:_0x46c607,_awaitingChangeset:_0x14005a,unitID:_0x3c60ee,_handler:_0x1833be,type:_0xb85588}=this,_0x129904=Ut(_0x5a4654,_0x3c60ee,_0xb85588,_0x14005a,_0x46c607,_0x1833be);return _0x129904 instanceof k?_0x129904[_0x561d70(0x53c)]():(_0x129904 instanceof B||_0x129904 instanceof W)&&_0x129904['resend'](),_0x129904;}[_0x265f71(0x584)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};G=z([f(0x5,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),f(0x6,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),f(0x7,a[_0x265f71(0x599)](exports['LocalCacheService'])),f(0x8,a[_0x265f71(0x596)]),f(0x9,a['IUndoRedoService'])],G);let x=class extends J{constructor(_0x337992,_0x4aa33a,_0x351698,_0x193123,_0x2f190c,_0x23e130,_0x4260c2,_0x568edc,_0xb3f32d,_0x438c9f,_0x574bc6,_0x1f639b,_0xc662e5,_0x23ec4b){const _0x26369f=_0x265f71;super(_0x337992,_0x4aa33a,_0x351698,_0x193123,_0x4260c2,_0x1f639b,_0xc662e5,_0xb3f32d,_0x438c9f),u(this,_0x26369f(0x399),_0x26369f(0x4c3)),(this[_0x26369f(0x515)]=_0x2f190c,this[_0x26369f(0x3c4)]=_0x23e130,this['_injector']=_0x568edc,this[_0x26369f(0x4e4)]=_0x574bc6,this[_0x26369f(0x21f)]=_0x23ec4b);}[_0x265f71(0x4c6)](_0x3ccf36){const _0x1c1f2e=_0x265f71;try{const _0x57101d=[..._0x3ccf36,...this['_queuedRemoteChangesets']],_0x45f6e7=[this[_0x1c1f2e(0x443)]||this['_acknowledgedAwaitingChangeset']][_0x1c1f2e(0x3a9)](_0x267f29=>!!_0x267f29);let _0x6af93,_0x21f562;if(_0x45f6e7[_0x1c1f2e(0x2ce)]){const _0x21ae4f=this['_transformService'][_0x1c1f2e(0x5a8)](_0x57101d,_0x45f6e7,!0x1);if(!_[_0x1c1f2e(0x2f2)](_0x21ae4f))throw _0x21ae4f['error'];_0x6af93=_0x21ae4f[_0x1c1f2e(0x350)],_0x21f562=_0x21ae4f[_0x1c1f2e(0x27b)];}else _0x6af93=_0x57101d,_0x21f562=[];let _0x42e3d7=this['_pendingMutations'];_0x6af93[_0x1c1f2e(0x5f9)](_0x30c522=>{const _0x272d29=_0x1c1f2e;let _0x24be9c;if(_0x42e3d7[_0x272d29(0x2ce)]){const _0x1ca302=this[_0x272d29(0x21f)]['transformMutationsWithChangeset'](_0x30c522,_0x42e3d7);if(!_[_0x272d29(0x2dd)](_0x1ca302))throw _0x1ca302['error'];_0x24be9c=_0x1ca302['c1Prime'],_0x42e3d7=_0x1ca302['m2Prime'];}else _0x24be9c=_0x30c522;this['_executeRemoteChangeset'](_0x24be9c);}),this[_0x1c1f2e(0x515)]&&this[_0x1c1f2e(0x31a)](),this['_awaitingChangeset']&&_0x21f562['length']&&(_0x21f562[0x0]['baseRev']=this[_0x1c1f2e(0x286)]());let _0x31e028;if(this['_awaitingChangeset']&&_0x42e3d7[_0x1c1f2e(0x2ce)]!==0x0)_0x31e028=this[_0x1c1f2e(0x555)][_0x1c1f2e(0x27f)](B,this['unitID'],this[_0x1c1f2e(0x38a)],_0x21f562[0x0],_0x42e3d7,this[_0x1c1f2e(0x3b0)]);else{if(this[_0x1c1f2e(0x443)]&&_0x42e3d7[_0x1c1f2e(0x2ce)]===0x0)_0x21f562[0x0][_0x1c1f2e(0x33a)]=this[_0x1c1f2e(0x286)](),_0x31e028=this[_0x1c1f2e(0x555)]['createInstance'](W,this['unitID'],this[_0x1c1f2e(0x38a)],_0x21f562[0x0],this[_0x1c1f2e(0x3b0)]);else{if(_0x42e3d7[_0x1c1f2e(0x2ce)]!==0x0){const _0x348b43=this[_0x1c1f2e(0x555)]['createInstance'](k,this[_0x1c1f2e(0x597)],this['type'],_0x42e3d7,this[_0x1c1f2e(0x3b0)]);_0x348b43[_0x1c1f2e(0x53c)](),_0x31e028=_0x348b43;}else _0x31e028=this[_0x1c1f2e(0x555)][_0x1c1f2e(0x27f)](ie,this['unitID'],this['type'],this[_0x1c1f2e(0x3b0)]);}}return _0x31e028[_0x1c1f2e(0x586)](),_0x31e028;}catch(_0x4b4a29){return this[_0x1c1f2e(0x4e4)][_0x1c1f2e(0x273)](_0x1c1f2e(0x3e0),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4b4a29),this[_0x1c1f2e(0x555)]['createInstance'](F,this[_0x1c1f2e(0x597)],this[_0x1c1f2e(0x38a)],this[_0x1c1f2e(0x443)],this[_0x1c1f2e(0x257)],this['_handler'],!0x1);}}['resend'](){const _0x575209=_0x265f71;throw new Error(_0x575209(0x3f1));}[_0x265f71(0x3e3)](_0x37de69){const _0x5e88d4=_0x265f71;return this[_0x5e88d4(0x257)]['push'](_0x37de69),this;}[_0x265f71(0x297)](_0x606ce8){const _0x9ac896=_0x265f71;return this[_0x9ac896(0x3c4)][_0x9ac896(0x48f)](_0x606ce8),this;}[_0x265f71(0x325)](_0x1a26c5){const _0x150872=_0x265f71;if(this[_0x150872(0x443)])return this[_0x150872(0x515)]=this[_0x150872(0x443)],this['_awaitingChangeset']=null,this;throw new Error(_0x150872(0x516));}[_0x265f71(0x216)](_0x4b7c02){const _0x5060f6=_0x265f71;return this[_0x5060f6(0x4d7)](!!(_0x4b7c02!=null&&_0x4b7c02[_0x5060f6(0x52a)]));}['toggleOffline'](){const _0x593461=_0x265f71;return this[_0x593461(0x555)][_0x593461(0x27f)](G,this[_0x593461(0x597)],this[_0x593461(0x38a)],this['_awaitingChangeset'],this[_0x593461(0x257)],this[_0x593461(0x3b0)]);}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x4d7)](_0x105549){const _0xfdb7d7=_0x265f71;return this[_0xfdb7d7(0x555)][_0xfdb7d7(0x27f)](F,this[_0xfdb7d7(0x597)],this[_0xfdb7d7(0x38a)],this[_0xfdb7d7(0x443)],this[_0xfdb7d7(0x257)],this[_0xfdb7d7(0x3b0)],_0x105549);}};x=z([f(0x7,a[_0x265f71(0x599)](a['Injector'])),f(0x8,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),f(0x9,a[_0x265f71(0x599)](exports[_0x265f71(0x573)])),f(0xa,a[_0x265f71(0x54c)]),f(0xb,a[_0x265f71(0x596)]),f(0xc,a[_0x265f71(0x538)]),f(0xd,_['ITransformService'])],x);function Ut(_0xa66080,_0x6a5be2,_0x216162,_0x284969,_0x1766a7,_0x5e5811){const _0x2a3107=_0x265f71;return _0x284969&&_0x1766a7[_0x2a3107(0x2ce)]?_0xa66080['createInstance'](B,_0x6a5be2,_0x216162,_0x284969,_0x1766a7,_0x5e5811):_0x284969?_0xa66080[_0x2a3107(0x27f)](W,_0x6a5be2,_0x216162,_0x284969,_0x5e5811):_0x1766a7['length']?_0xa66080[_0x2a3107(0x27f)](k,_0x6a5be2,_0x216162,_0x1766a7,_0x5e5811):_0xa66080[_0x2a3107(0x27f)](ie,_0x6a5be2,_0x216162,_0x5e5811);}var Ks=Object[_0x265f71(0x39e)],Xs=Object[_0x265f71(0x307)],ze=(_0x3a28a5,_0x4f5bc2,_0x2ba6ea,_0x1978f8)=>{const _0x39f869=_0x265f71;for(var _0x12022c=_0x1978f8>0x1?void 0x0:_0x1978f8?Xs(_0x4f5bc2,_0x2ba6ea):_0x4f5bc2,_0x41eba1=_0x3a28a5[_0x39f869(0x2ce)]-0x1,_0x17bc91;_0x41eba1>=0x0;_0x41eba1--)(_0x17bc91=_0x3a28a5[_0x41eba1])&&(_0x12022c=(_0x1978f8?_0x17bc91(_0x4f5bc2,_0x2ba6ea,_0x12022c):_0x17bc91(_0x12022c))||_0x12022c);return _0x1978f8&&_0x12022c&&Ks(_0x4f5bc2,_0x2ba6ea,_0x12022c),_0x12022c;},I=(_0x5170ed,_0x6573ac)=>(_0x533255,_0x2e2507)=>_0x6573ac(_0x533255,_0x2e2507,_0x5170ed);exports[_0x265f71(0x55d)]=class extends a['RxDisposable']{constructor(_0x4806c6,_0x16f524,_0x188136,_0x4f33ec,_0xf7991f,_0xa2bc21,_0x478580,_0xbb0c34,_0x245baa,_0x444756,_0xcac2b,_0x3a9069,_0x19c86e){const _0x589062=_0x265f71;super(),u(this,_0x589062(0x5e7),new v['BehaviorSubject'](null)),u(this,_0x589062(0x548),this[_0x589062(0x5e7)]['asObservable']()),u(this,_0x589062(0x51d)),u(this,'_collaborationPaused',!0x1),u(this,_0x589062(0x2b5),''),u(this,'_changesetReqId',0x0),u(this,_0x589062(0x348),this[_0x589062(0x548)][_0x589062(0x337)](v[_0x589062(0x5e5)](_0x118475=>_0x118475?_0x118475[_0x589062(0x399)]:U[_0x589062(0x4f3)]),v[_0x589062(0x4df)](0x1))),u(this,_0x589062(0x52d),!0x1),u(this,_0x589062(0x2e5),[]),(this[_0x589062(0x597)]=_0x4806c6,this[_0x589062(0x46c)]=_0x16f524,this[_0x589062(0x4b0)]=_0x188136,this[_0x589062(0x555)]=_0x4f33ec,this[_0x589062(0x41e)]=_0xf7991f,this[_0x589062(0x44c)]=_0xa2bc21,this[_0x589062(0x315)]=_0x478580,this['_revisionService']=_0xbb0c34,this[_0x589062(0x4e4)]=_0x245baa,this['_commandService']=_0x444756,this[_0x589062(0x4dd)]=_0xcac2b,this['_permissionService']=_0x3a9069,this['_singleActiveUnitService']=_0x19c86e);}get[_0x265f71(0x423)](){const _0x43ee19=_0x265f71;return this[_0x43ee19(0x51d)];}async[_0x265f71(0x4e6)](){const _0x465b9e=_0x265f71;if(this[_0x465b9e(0x423)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x465b9e(0x211)]();}[_0x265f71(0x1de)](){const _0x551354=_0x265f71;return this[_0x551354(0x2f4)]=!0x0,a[_0x551354(0x526)](()=>{const _0x12f52b=_0x551354;this['_collaborationPaused']=!0x1,this[_0x12f52b(0x2eb)]();});}[_0x265f71(0x421)](_0x124c6d){const _0x5f501e=_0x265f71;this[_0x5f501e(0x51d)]=_0x124c6d,this['_state$']['next'](_0x124c6d);}async[_0x265f71(0x211)](){const _0x32e119=_0x265f71;var _0x534c25;this[_0x32e119(0x421)](await this[_0x32e119(0x260)]()),this[_0x32e119(0x48a)]&&((_0x534c25=this['_singleActiveUnitService'])==null||_0x534c25[_0x32e119(0x28a)](this['unitID']),this[_0x32e119(0x256)](this['_singleActiveUnitService'][_0x32e119(0x460)](this[_0x32e119(0x597)])[_0x32e119(0x1d2)](_0x3ff19f=>{const _0xb7200d=_0x32e119;this['_logService'][_0xb7200d(0x3f6)](_0xb7200d(0x20e),_0xb7200d(0x507),_0x3ff19f),_0x3ff19f===Dt['OTHER_CLIENTS_EDITING']?(this[_0xb7200d(0x4dd)][_0xb7200d(0x508)]({'content':this[_0xb7200d(0x315)]['t'](_0xb7200d(0x4a9)),'type':X[_0xb7200d(0x28b)][_0xb7200d(0x3e7)]}),this[_0xb7200d(0x449)]['updatePermissionPoint'](new C[(_0xb7200d(0x40d))](this[_0xb7200d(0x597)])['id'],!0x1)):this[_0xb7200d(0x449)][_0xb7200d(0x5f6)](new C[(_0xb7200d(0x40d))](this[_0xb7200d(0x597)])['id'],!0x0);})));let _0x5f0bd9=!0x1;return this[_0x32e119(0x256)](this['session'][_0x32e119(0x491)][_0x32e119(0x1d2)](_0x75252f=>{const _0x3fd474=_0x32e119;_0x75252f===H[_0x3fd474(0x40f)]?this[_0x3fd474(0x328)](_0x5f0bd9):_0x75252f===H['OFFLINE']&&(_0x5f0bd9=!0x0,this[_0x3fd474(0x2d4)]());})),this[_0x32e119(0x256)](this[_0x32e119(0x46c)][_0x32e119(0x59e)][_0x32e119(0x1d2)](_0x1bf603=>{const _0x2d86b5=_0x32e119;try{switch(_0x1bf603[_0x2d86b5(0x32e)]){case _['CollaborationEvent'][_0x2d86b5(0x296)]:{this[_0x2d86b5(0x469)](_[_0x2d86b5(0x4c4)](_0x1bf603[_0x2d86b5(0x485)]));break;}case _[_0x2d86b5(0x4d9)]['CHANGESET_ACK']:{this[_0x2d86b5(0x2f1)](_0x1bf603[_0x2d86b5(0x485)]);break;}case _['CollaborationEvent'][_0x2d86b5(0x22f)]:{this[_0x2d86b5(0x1e9)]();break;}case _[_0x2d86b5(0x4d9)][_0x2d86b5(0x4dc)]:{this['_onFetchMissResult'](_0x1bf603[_0x2d86b5(0x485)][_0x2d86b5(0x5f5)][_0x2d86b5(0x5e5)](_0x3e272b=>_['parseProtocolChangeset'](_0x3e272b)));break;}case _[_0x2d86b5(0x4d9)][_0x2d86b5(0x3f8)]:this[_0x2d86b5(0x1e9)]({'isPermissionRej':!0x0});}}catch(_0x46ff1f){throw console[_0x2d86b5(0x273)](_0x2d86b5(0x39c),_0x46ff1f),_0x46ff1f;}})),this[_0x32e119(0x51d)];}[_0x265f71(0x484)](){this['_transitionLocked']=!0x1;}[_0x265f71(0x2fe)](){const _0x14f537=_0x265f71;if(this[_0x14f537(0x52d)])throw new Error(_0x14f537(0x5ea));this[_0x14f537(0x52d)]=!0x0;}[_0x265f71(0x432)](_0x485073){const _0x5e15b8=_0x265f71;this[_0x5e15b8(0x2fe)](),this[_0x5e15b8(0x421)](this[_0x5e15b8(0x51d)]['appendMutation'](_0x485073)),this[_0x5e15b8(0x484)]();}['_onRemoteChangeset'](_0x20cf99){const _0x26bb1d=_0x265f71;if(!(_0x20cf99[_0x26bb1d(0x5b1)]<=this[_0x26bb1d(0x4f8)][_0x26bb1d(0x45d)](this['unitID']))){if(this[_0x26bb1d(0x2f4)]){this['_remoteChangesetQueue'][_0x26bb1d(0x48f)](_0x20cf99);return;}this[_0x26bb1d(0x3df)](_0x20cf99);}}['_exhaustRemoteChangesetQueue'](){const _0x14cb54=_0x265f71;this[_0x14cb54(0x2e5)][_0x14cb54(0x5f9)](_0x147358=>this['_applyRemoteChangeset'](_0x147358)),this[_0x14cb54(0x2e5)]=[];}['_applyRemoteChangeset'](_0x472db7){const _0x233b6c=_0x265f71,_0x25f89f=this['_compressMutationService'][_0x233b6c(0x5b9)][_0x233b6c(0x27c)](this[_0x233b6c(0x44c)][_0x233b6c(0x5b9)][_0x233b6c(0x362)]()['COMPRESS_MUTATION_APPLY'])(_0x472db7[_0x233b6c(0x39f)],null)||_0x472db7[_0x233b6c(0x39f)],_0x13339b={..._0x472db7,'mutations':_0x25f89f};this[_0x233b6c(0x2fe)](),this[_0x233b6c(0x421)](this['_state'][_0x233b6c(0x297)](_0x13339b)),this[_0x233b6c(0x484)]();}[_0x265f71(0x2f1)](_0x508583){const _0xf30c9=_0x265f71;this['_lockTransition'](),this[_0xf30c9(0x421)](this['_state'][_0xf30c9(0x325)](_0x508583)),this[_0xf30c9(0x484)]();}['_onRemoteRejected'](_0x5e084c){const _0x492071=_0x265f71;this[_0x492071(0x2fe)](),this[_0x492071(0x421)](this[_0x492071(0x51d)][_0x492071(0x216)](_0x5e084c)),this['_unlockTransition']();}[_0x265f71(0x57f)](_0x155e6a){const _0x561934=_0x265f71;if(!(this[_0x561934(0x51d)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x2af957=_0x155e6a[_0x561934(0x5e5)](_0x2fb2ed=>{const _0x420548=_0x561934,_0x43eb9f=this[_0x420548(0x44c)]['interceptor'][_0x420548(0x27c)](this[_0x420548(0x44c)][_0x420548(0x5b9)]['getInterceptPoints']()[_0x420548(0x240)])(_0x2fb2ed[_0x420548(0x39f)],null)||_0x2fb2ed[_0x420548(0x39f)];return{..._0x2fb2ed,'mutations':_0x43eb9f};});this[_0x561934(0x2fe)](),this[_0x561934(0x421)](this[_0x561934(0x51d)][_0x561934(0x4c6)](_0x2af957)),this[_0x561934(0x484)]();}[_0x265f71(0x2d4)](){const _0x4e2ee0=_0x265f71;this[_0x4e2ee0(0x2fe)](),this[_0x4e2ee0(0x421)](this[_0x4e2ee0(0x51d)][_0x4e2ee0(0x50a)]()),this[_0x4e2ee0(0x484)]();}[_0x265f71(0x328)](_0xab1318=!0x1){const _0x4ce7f3=_0x265f71;this[_0x4ce7f3(0x2fe)](),this[_0x4ce7f3(0x421)](this[_0x4ce7f3(0x51d)][_0x4ce7f3(0x38b)]()),this['_unlockTransition']();const _0x6f3183=this[_0x4ce7f3(0x51d)];_0xab1318&&_0x6f3183 instanceof ie&&(this[_0x4ce7f3(0x2fe)](),this[_0x4ce7f3(0x421)](_0x6f3183[_0x4ce7f3(0x493)]()),this[_0x4ce7f3(0x484)]());}async['_createInitialState'](){return new Promise(_0x20f8f0=>{const _0x8fadc=_0x5b21;this[_0x8fadc(0x46c)]['sessionStatus$']['pipe'](v[_0x8fadc(0x266)](0x1))[_0x8fadc(0x1d2)](async _0x55816a=>{const _0x5b47a4=_0x8fadc;_0x20f8f0(await this[_0x5b47a4(0x497)](_0x55816a===H[_0x5b47a4(0x40f)]));});});}[_0x265f71(0x1fb)](){const _0x3d96b1=_0x265f71,_0x2fe1e7=this[_0x3d96b1(0x597)];return{'onStateChange':(_0x260b89,_0x427696)=>{const _0x4b1bf1=_0x3d96b1;if(_0x260b89!==this[_0x4b1bf1(0x51d)])throw new Error(_0x4b1bf1(0x2e3)+_0x260b89[_0x4b1bf1(0x399)]+_0x4b1bf1(0x4be)+_0x427696[_0x4b1bf1(0x399)]+_0x4b1bf1(0x2e9)+this[_0x4b1bf1(0x51d)][_0x4b1bf1(0x399)]);this[_0x4b1bf1(0x421)](_0x427696);},'onSendChangeset':_0x1c1afb=>{const _0x3fe3e0=_0x3d96b1;_0x1c1afb[_0x3fe3e0(0x388)]||(_0x1c1afb[_0x3fe3e0(0x388)]=this[_0x3fe3e0(0x2b5)],_0x1c1afb[_0x3fe3e0(0x1f5)]=++this[_0x3fe3e0(0x3a4)]);const _0x2ee167={'eventID':_[_0x3fe3e0(0x4d9)][_0x3fe3e0(0x3c2)],'data':{'unitID':_0x1c1afb['unitID'],'unitType':this['_type'],'changeset':_0x1c1afb,'memberID':this[_0x3fe3e0(0x46c)][_0x3fe3e0(0x3fe)]()}};this['session']['send'](_0x2ee167,this[_0x3fe3e0(0x597)]);},'onMissingChangesets':({from:_0x38768e,to:_0x2c5e02})=>{const _0xa6ac98=_0x3d96b1;this[_0xa6ac98(0x4e4)]['debug']('[CollaborationEntity]',_0xa6ac98(0x518)+_0x38768e+_0xa6ac98(0x36f)+_0x2c5e02);const _0x4e3962={'eventID':_[_0xa6ac98(0x4d9)][_0xa6ac98(0x4ec)],'data':{'unitID':_0x2fe1e7,'unitType':this[_0xa6ac98(0x4b0)],'from':_0x38768e,'to':_0x2c5e02}};this[_0xa6ac98(0x46c)][_0xa6ac98(0x22c)](_0x4e3962,this['unitID']);}};}async[_0x265f71(0x497)](_0x391a22){const _0x1a3a42=_0x265f71;var _0x16d47c,_0x22f760;const _0x1122f3=await this[_0x1a3a42(0x41e)]['loadOfflineData'](this[_0x1a3a42(0x597)]),_0x4788b6=(_0x16d47c=_0x1122f3==null?void 0x0:_0x1122f3[_0x1a3a42(0x39f)])!=null?_0x16d47c:[],_0x1af111=(_0x22f760=_0x1122f3==null?void 0x0:_0x1122f3[_0x1a3a42(0x2ad)])!=null?_0x22f760:null,_0x540a2e=!!(_0x1af111!=null&&_0x1af111[_0x1a3a42(0x388)])&&!!(_0x1af111!=null&&_0x1af111[_0x1a3a42(0x1f5)]);this['_changesetSessionId']=_0x540a2e?_0x1af111[_0x1a3a42(0x388)]:Os(),this[_0x1a3a42(0x3a4)]=_0x540a2e?_0x1af111[_0x1a3a42(0x1f5)]:0x0;const _0x36ad57=this[_0x1a3a42(0x597)];try{this['_replayCachedMutations'](_0x1af111,_0x4788b6);}catch(_0x130b72){this['_logService'][_0x1a3a42(0x273)](_0x130b72);}const _0x568569=this[_0x1a3a42(0x1fb)]();if(_0x391a22){const _0x4ec6b6=Ut(this[_0x1a3a42(0x555)],_0x36ad57,this[_0x1a3a42(0x4b0)],_0x1af111,_0x4788b6,_0x568569);return _0x4ec6b6 instanceof k?_0x4ec6b6[_0x1a3a42(0x53c)]():(_0x4ec6b6 instanceof B||_0x4ec6b6 instanceof W)&&_0x4ec6b6[_0x1a3a42(0x584)](),_0x4ec6b6;}return this[_0x1a3a42(0x555)][_0x1a3a42(0x27f)](G,_0x36ad57,this[_0x1a3a42(0x4b0)],_0x1af111,_0x4788b6,_0x568569);}[_0x265f71(0x250)](_0x334dca,_0x2c4fa9){const _0x349280=_0x265f71;var _0x34fced,_0xdf585c;const _0x4a8245=this[_0x349280(0x44c)]['interceptor'][_0x349280(0x27c)](this[_0x349280(0x44c)][_0x349280(0x5b9)][_0x349280(0x362)]()['COMPRESS_MUTATION_APPLY']);(_0x34fced=_0x4a8245((_0x334dca==null?void 0x0:_0x334dca[_0x349280(0x39f)])||[],null))==null||_0x34fced[_0x349280(0x5f9)](_0xe54c7b=>this[_0x349280(0x530)][_0x349280(0x336)](_0xe54c7b['id'],_0xe54c7b[_0x349280(0x466)])),(_0xdf585c=_0x4a8245(_0x2c4fa9||[],null))==null||_0xdf585c['forEach'](_0x5edce6=>this['_commandService'][_0x349280(0x336)](_0x5edce6['id'],_0x5edce6[_0x349280(0x466)]));}},exports[_0x265f71(0x55d)]=ze([I(0x3,a['Inject'](a['Injector'])),I(0x4,a[_0x265f71(0x599)](exports[_0x265f71(0x573)])),I(0x5,a['Inject'](_[_0x265f71(0x47a)])),I(0x6,a['Inject'](a[_0x265f71(0x42a)])),I(0x7,a['Inject'](_[_0x265f71(0x475)])),I(0x8,a[_0x265f71(0x54c)]),I(0x9,a['ICommandService']),I(0xa,A[_0x265f71(0x4b2)]),I(0xb,a[_0x265f71(0x2b6)]),I(0xc,a[_0x265f71(0x3a3)](Re))],exports[_0x265f71(0x55d)]),exports[_0x265f71(0x5a0)]=class extends exports[_0x265f71(0x55d)]{constructor(_0x45048c,_0x58cf82,_0x4fbef2,_0x320752,_0x58b62d,_0x582415,_0x3878b1,_0x3f45dd,_0x185fa1,_0x4c54dc,_0x52ae90,_0x19e6c4,_0x11b0af,_0x14acb1,_0x311e1c,_0x2717d0,_0x2f61db){const _0x3812f2=_0x265f71;super(_0x45048c,_0x4fbef2,_0x58cf82,_0x320752,_0x58b62d,_0x582415,_0x3878b1,_0x3f45dd,_0x11b0af,_0x14acb1,_0x311e1c,_0x2717d0,_0x2f61db),this[_0x3812f2(0x597)]=_0x45048c,this['type']=_0x58cf82,this[_0x3812f2(0x2db)]=_0x185fa1,this[_0x3812f2(0x461)]=_0x4c54dc,this['_docTransformSelectionsService']=_0x52ae90,this[_0x3812f2(0x422)]=_0x19e6c4;}[_0x265f71(0x1fb)](){const _0x3346e6=_0x265f71,_0x493b34=super[_0x3346e6(0x1fb)]();return _0x493b34[_0x3346e6(0x23c)]=_0x1bd070=>this[_0x3346e6(0x461)]['transformIMECache'](_0x1bd070),_0x493b34['onTransformSelections']=_0x34c802=>this[_0x3346e6(0x553)][_0x3346e6(0x498)](_0x34c802),_0x493b34[_0x3346e6(0x468)]=_0x1ee8df=>this[_0x3346e6(0x422)][_0x3346e6(0x21e)](_0x1ee8df),_0x493b34[_0x3346e6(0x56b)]=_0x35ce1e=>this[_0x3346e6(0x461)][_0x3346e6(0x51c)](_0x35ce1e),_0x493b34;}async['_init'](){const _0x1672b7=_0x265f71,_0x565c7c=await super[_0x1672b7(0x211)]();return this[_0x1672b7(0x2db)][_0x1672b7(0x3b2)][_0x1672b7(0x337)](v[_0x1672b7(0x321)](this[_0x1672b7(0x3e4)]))[_0x1672b7(0x1d2)](_0x1a62e1=>{const _0x1ac98b=_0x1672b7;if(_0x1a62e1==null)return;const {unitId:_0x460ce5,redoState:_0x285df8,commandId:_0x2c6a60}=_0x1a62e1;if(_0x460ce5!==this[_0x1ac98b(0x597)])return;const _0x42efce={'id':_0x2c6a60,'type':a['CommandType'][_0x1ac98b(0x4d0)],'params':{'unitId':_0x460ce5,'actions':_0x285df8[_0x1ac98b(0x490)],'textRanges':null}};this[_0x1ac98b(0x432)](_0x42efce);}),_0x565c7c;}},exports[_0x265f71(0x5a0)]=ze([I(0x3,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),I(0x4,a['Inject'](exports[_0x265f71(0x573)])),I(0x5,a[_0x265f71(0x599)](_['CompressMutationService'])),I(0x6,a[_0x265f71(0x599)](a[_0x265f71(0x42a)])),I(0x7,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),I(0x8,a[_0x265f71(0x599)](w[_0x265f71(0x41a)])),I(0x9,a[_0x265f71(0x599)](me)),I(0xa,a[_0x265f71(0x599)](pe)),I(0xb,a[_0x265f71(0x599)](qe)),I(0xc,a[_0x265f71(0x54c)]),I(0xd,a[_0x265f71(0x596)]),I(0xe,A[_0x265f71(0x4b2)]),I(0xf,a['IPermissionService']),I(0x10,a[_0x265f71(0x3a3)](Re))],exports['DocCollaborationEntity']),exports[_0x265f71(0x4b3)]=class extends exports['CollaborationEntity']{constructor(_0x5471ed,_0x48cb5d,_0x5e1242,_0x41c2bb,_0x2a5270,_0x2bb571,_0x40d6ee,_0x14fd74,_0x2546c6,_0x5008c5,_0x348dc7,_0x1b199a,_0x2fc022,_0x16a437){const _0x4a90f6=_0x265f71;super(_0x5471ed,_0x5e1242,_0x48cb5d,_0x41c2bb,_0x2a5270,_0x2bb571,_0x40d6ee,_0x14fd74,_0x5008c5,_0x348dc7,_0x1b199a,_0x2fc022,_0x16a437),this[_0x4a90f6(0x597)]=_0x5471ed,this[_0x4a90f6(0x38a)]=_0x48cb5d,this['_sheetTransformSelectionsService']=_0x2546c6;}[_0x265f71(0x1fb)](){const _0x55ba7b=_0x265f71,_0x4939de=super[_0x55ba7b(0x1fb)]();return _0x4939de['onTransformSelections']=_0x21a1ff=>this[_0x55ba7b(0x45f)][_0x55ba7b(0x498)](_0x21a1ff),_0x4939de;}async[_0x265f71(0x211)](){const _0x17770b=_0x265f71,_0x4ee361=await super['_init']();return this[_0x17770b(0x256)](this[_0x17770b(0x530)]['onCommandExecuted']((_0x3aeace,_0x67ded3)=>{const _0xef7350=_0x17770b;if(_0x3aeace[_0xef7350(0x38a)]!==a[_0xef7350(0x26b)]['MUTATION']||_0x67ded3!=null&&_0x67ded3[_0xef7350(0x3e9)]||_0x67ded3!=null&&_0x67ded3[_0xef7350(0x4d6)])return;const _0x36d069=_0x3aeace['params'];if((_0x36d069==null?void 0x0:_0x36d069[_0xef7350(0x3ce)])!==this[_0xef7350(0x597)])return;const _0x4182c8=_0x3aeace,_0x42df12=this[_0xef7350(0x44c)][_0xef7350(0x5b9)]['fetchThroughInterceptors'](this[_0xef7350(0x44c)][_0xef7350(0x5b9)]['getInterceptPoints']()[_0xef7350(0x322)])([_0x4182c8],null)||[_0x4182c8];this[_0xef7350(0x432)](_0x42df12[0x0]);})),_0x4ee361;}},exports[_0x265f71(0x4b3)]=ze([I(0x3,a['Inject'](a[_0x265f71(0x1fc)])),I(0x4,a['Inject'](exports[_0x265f71(0x573)])),I(0x5,a[_0x265f71(0x599)](_[_0x265f71(0x47a)])),I(0x6,a[_0x265f71(0x599)](a['LocaleService'])),I(0x7,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),I(0x8,a['Inject'](Ie)),I(0x9,a[_0x265f71(0x54c)]),I(0xa,a['ICommandService']),I(0xb,A[_0x265f71(0x4b2)]),I(0xc,a[_0x265f71(0x2b6)]),I(0xd,a[_0x265f71(0x3a3)](Re))],exports[_0x265f71(0x4b3)]);var qs=Object[_0x265f71(0x39e)],zs=Object[_0x265f71(0x307)],Js=(_0x534f3b,_0x56bbca,_0x2a6a69,_0x38cc92)=>{for(var _0x423387=_0x38cc92>0x1?void 0x0:_0x38cc92?zs(_0x56bbca,_0x2a6a69):_0x56bbca,_0x2bcae0=_0x534f3b['length']-0x1,_0x5361d0;_0x2bcae0>=0x0;_0x2bcae0--)(_0x5361d0=_0x534f3b[_0x2bcae0])&&(_0x423387=(_0x38cc92?_0x5361d0(_0x56bbca,_0x2a6a69,_0x423387):_0x5361d0(_0x423387))||_0x423387);return _0x38cc92&&_0x423387&&qs(_0x56bbca,_0x2a6a69,_0x423387),_0x423387;},Ne=(_0x4f9ee3,_0x1cbf2d)=>(_0x454db6,_0x3cb66c)=>_0x1cbf2d(_0x454db6,_0x3cb66c,_0x4f9ee3);exports['CollaborationController']=class extends a[_0x265f71(0x459)]{constructor(_0xe7a90a,_0x182c50,_0x26f13d){const _0x5d2da6=_0x265f71;super(),u(this,'_entities',new Map()),u(this,_0x5d2da6(0x37e),new v[(_0x5d2da6(0x23e))]()),(this[_0x5d2da6(0x555)]=_0xe7a90a,this['_collabSessionService']=_0x182c50,this[_0x5d2da6(0x4c5)]=_0x26f13d,this['_init']());}[_0x265f71(0x456)](){const _0x5bde97=_0x265f71;super[_0x5bde97(0x456)](),this[_0x5bde97(0x59f)][_0x5bde97(0x5f9)](_0x1fcf78=>_0x1fcf78[_0x5bde97(0x456)]()),this[_0x5bde97(0x59f)][_0x5bde97(0x547)]();}[_0x265f71(0x31b)](_0x5b2dee){const _0x12d147=_0x265f71;var _0x1c303d;return(_0x1c303d=this[_0x12d147(0x59f)][_0x12d147(0x224)](_0x5b2dee))!=null?_0x1c303d:null;}[_0x265f71(0x4d1)](_0x1bc266){const _0x27f73a=_0x265f71,_0x213ba4=this[_0x27f73a(0x31b)](_0x1bc266);return _0x213ba4?v['of'](_0x213ba4):this[_0x27f73a(0x37e)][_0x27f73a(0x337)](E[_0x27f73a(0x3a9)](_0x5f930f=>_0x5f930f['unitID']===_0x1bc266));}[_0x265f71(0x211)](){const _0x336a91=_0x265f71;this[_0x336a91(0x4c5)]['getTypeOfUnitAdded$'](a[_0x336a91(0x1f4)][_0x336a91(0x527)])[_0x336a91(0x337)](v['takeUntil'](this[_0x336a91(0x3e4)]),E[_0x336a91(0x327)](0x10))[_0x336a91(0x1d2)](async _0x320751=>{const _0x1a44ab=_0x336a91,_0x4fbd2a=_0x320751[_0x1a44ab(0x4fa)](),_0x5470ad=await this['_startCollaboration'](_0x4fbd2a,$['UNIVER_SHEET']);this[_0x1a44ab(0x59f)][_0x1a44ab(0x2c4)](_0x4fbd2a,_0x5470ad);}),this['_univerInstanceService'][_0x336a91(0x21d)](a[_0x336a91(0x1f4)][_0x336a91(0x2d2)])[_0x336a91(0x337)](v[_0x336a91(0x321)](this[_0x336a91(0x3e4)]),E[_0x336a91(0x327)](0x10))['pipe'](E['filter'](_0x4a75b1=>!_0x4a75b1[_0x336a91(0x4fa)]()['startsWith']('__')))[_0x336a91(0x1d2)](async _0x38adb5=>{const _0x6a0073=_0x336a91,_0x1f6593=_0x38adb5[_0x6a0073(0x4fa)](),_0x4b0388=await this['_startCollaboration'](_0x1f6593,$['UNIVER_DOC']);this[_0x6a0073(0x59f)][_0x6a0073(0x2c4)](_0x1f6593,_0x4b0388);}),v[_0x336a91(0x4cf)](this[_0x336a91(0x4c5)][_0x336a91(0x598)](a[_0x336a91(0x1f4)]['UNIVER_SHEET']),this[_0x336a91(0x4c5)][_0x336a91(0x598)](a['UniverInstanceType'][_0x336a91(0x2d2)]))[_0x336a91(0x337)](v[_0x336a91(0x321)](this[_0x336a91(0x3e4)]))['subscribe'](_0x50b0f9=>{const _0x1977b1=_0x336a91,_0x2ec0d0=_0x50b0f9[_0x1977b1(0x4fa)](),_0x2d0ce9=this[_0x1977b1(0x59f)]['get'](_0x2ec0d0);_0x2d0ce9&&(_0x2d0ce9[_0x1977b1(0x456)](),this['_entities'][_0x1977b1(0x1eb)](_0x2ec0d0));});}async[_0x265f71(0x429)](_0x46d945,_0x10d086){const _0x517207=_0x265f71,_0xf8abe4=await this[_0x517207(0x226)][_0x517207(0x430)](_0x46d945),_0x5608ee=this['_injector'][_0x517207(0x27f)](this['_getCtorByUniverType'](_0x10d086),_0x46d945,_0x10d086,_0xf8abe4);return await _0x5608ee[_0x517207(0x4e6)](),this[_0x517207(0x37e)]['next'](_0x5608ee),_0x5608ee;}[_0x265f71(0x2ed)](_0x5ad117){const _0x63e7a7=_0x265f71;switch(_0x5ad117){case $[_0x63e7a7(0x2d2)]:return exports['DocCollaborationEntity'];case $[_0x63e7a7(0x527)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x63e7a7(0x335)+_0x5ad117);}}},exports['CollaborationController']=Js([Ne(0x0,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),Ne(0x1,a[_0x265f71(0x599)](exports[_0x265f71(0x1f2)])),Ne(0x2,a[_0x265f71(0x5ad)])],exports[_0x265f71(0x208)]);const ct=[_0x265f71(0x585),_0x265f71(0x554),_0x265f71(0x2b0),_0x265f71(0x1f7),_0x265f71(0x279),_0x265f71(0x1d7)];class Je extends a[_0x265f71(0x1d4)]{constructor(){const _0x35cf56=_0x265f71;super(...arguments),u(this,_0x35cf56(0x4e0),new Map()),u(this,_0x35cf56(0x5c8),0x0);}[_0x265f71(0x59a)](_0x1aa08e){const _0x2f9a45=_0x265f71;if(this[_0x2f9a45(0x4e0)]['has'](_0x1aa08e))return this[_0x2f9a45(0x4e0)][_0x2f9a45(0x224)](_0x1aa08e);const _0x468615=ct[this[_0x2f9a45(0x5c8)]];return this[_0x2f9a45(0x5c8)]=(this[_0x2f9a45(0x5c8)]+0x1)%ct[_0x2f9a45(0x2ce)],this[_0x2f9a45(0x4e0)][_0x2f9a45(0x2c4)](_0x1aa08e,_0x468615),_0x468615;}}var Zs=Object[_0x265f71(0x39e)],Qs=Object['getOwnPropertyDescriptor'],ei=(_0x50e1e3,_0x42718e,_0x3f0115,_0x2c04d4)=>{for(var _0x1b5b3b=_0x2c04d4>0x1?void 0x0:_0x2c04d4?Qs(_0x42718e,_0x3f0115):_0x42718e,_0x5abe52=_0x50e1e3['length']-0x1,_0x135419;_0x5abe52>=0x0;_0x5abe52--)(_0x135419=_0x50e1e3[_0x5abe52])&&(_0x1b5b3b=(_0x2c04d4?_0x135419(_0x42718e,_0x3f0115,_0x1b5b3b):_0x135419(_0x1b5b3b))||_0x1b5b3b);return _0x2c04d4&&_0x1b5b3b&&Zs(_0x42718e,_0x3f0115,_0x1b5b3b),_0x1b5b3b;},K=(_0xcd45be,_0x3875db)=>(_0x71745a,_0x158567)=>_0x3875db(_0x71745a,_0x158567,_0xcd45be);const ti=0x12c,si=0x64;let ke=class extends a[_0x265f71(0x459)]{constructor(_0x15bcbf,_0x113743,_0x4cd153,_0xf08777,_0xe10c47,_0x6b05da,_0x1c5129,_0x2c8565,_0x3b763c){const _0x4deeb3=_0x265f71;super(),u(this,_0x4deeb3(0x4d5),!0x1),u(this,'_init',!0x1),u(this,_0x4deeb3(0x436),new v[(_0x4deeb3(0x5e4))](new Map())),u(this,_0x4deeb3(0x358),this[_0x4deeb3(0x436)]['asObservable']()),u(this,'_roomMembers$',new v[(_0x4deeb3(0x5e4))]([])),u(this,_0x4deeb3(0x418),this[_0x4deeb3(0x2f3)]['pipe'](v[_0x4deeb3(0x4a3)](ti))),u(this,_0x4deeb3(0x35a),a[_0x4deeb3(0x424)](_0x33fbc3=>{const _0x53465a=_0x4deeb3,_0x47f98c={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x53465a(0x4b1)][_0x53465a(0x3fe)](),'selection':yt(_0x33fbc3)}};this[_0x53465a(0x4b1)]['send'](_0x47f98c,this[_0x53465a(0x597)]);},si)),(this[_0x4deeb3(0x597)]=_0x15bcbf,this['_session']=_0x113743,this[_0x4deeb3(0x555)]=_0x4cd153,this[_0x4deeb3(0x36b)]=_0xf08777,this[_0x4deeb3(0x452)]=_0xe10c47,this[_0x4deeb3(0x28e)]=_0x6b05da,this[_0x4deeb3(0x21f)]=_0x1c5129,this[_0x4deeb3(0x4c5)]=_0x2c8565,this['_commandService']=_0x3b763c);}get[_0x265f71(0x35c)](){const _0x39995e=_0x265f71;return this['_cursorInfo$'][_0x39995e(0x4bf)]();}get['roomMembers'](){const _0x3033e3=_0x265f71;return this[_0x3033e3(0x2f3)][_0x3033e3(0x4bf)]();}['dispose'](){const _0x1e2149=_0x265f71;super[_0x1e2149(0x456)](),this['_cursorInfo$'][_0x1e2149(0x53f)](new Map()),this[_0x1e2149(0x436)][_0x1e2149(0x4e8)](),this['_roomMembers$'][_0x1e2149(0x53f)]([]),this[_0x1e2149(0x2f3)][_0x1e2149(0x4e8)]();}[_0x265f71(0x4e6)](){const _0x1e33ac=_0x265f71;this[_0x1e33ac(0x211)]||(this[_0x1e33ac(0x211)]=!0x0,this[_0x1e33ac(0x4b1)][_0x1e33ac(0x491)][_0x1e33ac(0x337)](v[_0x1e33ac(0x321)](this[_0x1e33ac(0x3e4)]))[_0x1e33ac(0x1d2)](_0x3c1c97=>{const _0x5bc61d=_0x1e33ac;_0x3c1c97===H['ONLINE']?this[_0x5bc61d(0x328)]():this[_0x5bc61d(0x2d4)]();}),this[_0x1e33ac(0x4b1)]['event$']['pipe'](v[_0x1e33ac(0x321)](this[_0x1e33ac(0x3e4)]))[_0x1e33ac(0x1d2)](_0x5a19cc=>{const _0x35c6f4=_0x1e33ac,_0x35975a=_0x5a19cc[_0x35c6f4(0x32e)];_0x35975a===_[_0x35c6f4(0x4d9)][_0x35c6f4(0x2c5)]&&this[_0x35c6f4(0x4ca)](_0x5a19cc),_0x35975a===_[_0x35c6f4(0x4d9)][_0x35c6f4(0x1ef)]&&this[_0x35c6f4(0x5ac)](_0x5a19cc);}),this[_0x1e33ac(0x256)](this[_0x1e33ac(0x530)][_0x1e33ac(0x295)](_0x50ea2e=>{const _0x5f27f7=_0x1e33ac,_0x292be1=_0x50ea2e[_0x5f27f7(0x466)];_0x292be1!=null&&this[_0x5f27f7(0x4d5)]&&_0x50ea2e['id']===se['SetTextSelectionsOperation']['id']&&_0x292be1['unitId']===this[_0x5f27f7(0x597)]&&_0x292be1[_0x5f27f7(0x39a)]===!0x1&&this['_updateLocalCursor'](_0x292be1[_0x5f27f7(0x567)]);})),this[_0x1e33ac(0x28e)]['collabCursorState$'][_0x1e33ac(0x337)](v[_0x1e33ac(0x321)](this[_0x1e33ac(0x3e4)]))['subscribe'](_0x2267f5=>{const _0x4bbf98=_0x1e33ac;if((_0x2267f5==null?void 0x0:_0x2267f5[_0x4bbf98(0x597)])!==this['unitID'])return;const _0x46b3f7={'eventID':_['CollaborationEvent'][_0x4bbf98(0x2c5)],'data':_0x2267f5};this[_0x4bbf98(0x4ca)](_0x46b3f7);}),this[_0x1e33ac(0x256)](this[_0x1e33ac(0x530)][_0x1e33ac(0x295)](_0x144ac8=>{const _0x441206=_0x1e33ac;if(_0x144ac8[_0x441206(0x466)]==null)return;const _0x431488=_0x144ac8['params'];if(_0x144ac8['id']!==se['RichTextEditingMutation']['id']||_0x431488[_0x441206(0x3ce)]!==this[_0x441206(0x597)])return;const _0x5d3a9f={'id':_0x441206(0x1d8),'params':_0x431488},_0x590930=this[_0x441206(0x35c)];for(const [_0x7286ae,_0x55a53f]of _0x590930){const _0x22a24c={'id':_0x441206(0x1d8),'params':{'unitId':this[_0x441206(0x597)],'actions':null,'textRanges':_0x55a53f[_0x441206(0x567)]}},_0x2692b6=this[_0x441206(0x21f)][_0x441206(0x251)](_0x5d3a9f,_0x22a24c,!0x1);if(_[_0x441206(0x4f2)](_0x2692b6))throw _0x2692b6[_0x441206(0x273)];_0x590930['set'](_0x7286ae,{..._0x55a53f,'ranges':_0x2692b6[_0x441206(0x482)][_0x441206(0x466)]['textRanges']});}queueMicrotask(()=>{const _0x5105f3=_0x441206;this[_0x5105f3(0x436)]['next'](_0x590930);});})));}[_0x265f71(0x4ca)](_0x32e4fe){const _0x4deb9f=_0x265f71;var _0x5932d7,_0x1ca935;const {memberID:_0x52a414,selection:_0x199f8e}=_0x32e4fe[_0x4deb9f(0x485)],_0x509aa5=Hs(_0x199f8e),_0x4bc682=(_0x1ca935=(_0x5932d7=this[_0x4deb9f(0x452)][_0x4deb9f(0x390)](this[_0x4deb9f(0x597)],_0x52a414))==null?void 0x0:_0x5932d7[_0x4deb9f(0x24e)])!=null?_0x1ca935:_0x4deb9f(0x2e0),_0x3d37ca={'color':this[_0x4deb9f(0x36b)][_0x4deb9f(0x59a)](_0x52a414),'name':_0x4bc682,'ranges':_0x509aa5},_0x49de39=this[_0x4deb9f(0x35c)];_0x49de39[_0x4deb9f(0x2c4)](_0x52a414,_0x3d37ca),this[_0x4deb9f(0x436)]['next'](_0x49de39);}[_0x265f71(0x5ac)](_0x454d40){const _0x371af1=_0x265f71,{memberID:_0x2074e7}=_0x454d40[_0x371af1(0x485)],_0x248870=this[_0x371af1(0x35c)];_0x248870['delete'](_0x2074e7),this['_cursorInfo$']['next'](_0x248870);}['_toggleOnline'](){const _0x3837d5=_0x265f71;var _0x311ae7;if(this['_online']=!0x0,((_0x311ae7=this['_univerInstanceService'][_0x3837d5(0x52f)]())==null?void 0x0:_0x311ae7[_0x3837d5(0x4fa)]())!==this[_0x3837d5(0x597)])return;const _0x3b3da2=this[_0x3837d5(0x555)][_0x3837d5(0x224)](se[_0x3837d5(0x292)])[_0x3837d5(0x29c)]();Array[_0x3837d5(0x235)](_0x3b3da2)&&_0x3b3da2[_0x3837d5(0x2ce)]>0x0&&this[_0x3837d5(0x35a)](_0x3b3da2);}[_0x265f71(0x2d4)](){this['_online']=!0x1;}};ke=ei([K(0x2,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),K(0x3,a[_0x265f71(0x599)](Je)),K(0x4,a[_0x265f71(0x599)](q)),K(0x5,a[_0x265f71(0x599)](qe)),K(0x6,_[_0x265f71(0x41b)]),K(0x7,a['IUniverInstanceService']),K(0x8,a[_0x265f71(0x596)])],ke);var ii=Object[_0x265f71(0x39e)],ni=Object['getOwnPropertyDescriptor'],ri=(_0x50e9a1,_0x353b21,_0x317743,_0x441c66)=>{const _0x29bf23=_0x265f71;for(var _0x4375d1=_0x441c66>0x1?void 0x0:_0x441c66?ni(_0x353b21,_0x317743):_0x353b21,_0x2e15e9=_0x50e9a1[_0x29bf23(0x2ce)]-0x1,_0x2537d0;_0x2e15e9>=0x0;_0x2e15e9--)(_0x2537d0=_0x50e9a1[_0x2e15e9])&&(_0x4375d1=(_0x441c66?_0x2537d0(_0x353b21,_0x317743,_0x4375d1):_0x2537d0(_0x4375d1))||_0x4375d1);return _0x441c66&&_0x4375d1&&ii(_0x353b21,_0x317743,_0x4375d1),_0x4375d1;},Q=(_0x329be6,_0x50d469)=>(_0x4d35e4,_0x3aa101)=>_0x50d469(_0x4d35e4,_0x3aa101,_0x329be6);const oi=0x12c,ai=0x64,ci=()=>{let _0x3fa9b6=[],_0x43ca55=!0x1;return _0x3144c4=>{const _0x1bef7d=_0x5b21;_0x3fa9b6[_0x1bef7d(0x48f)](_0x3144c4),_0x43ca55||(_0x43ca55=!0x0,setTimeout(()=>{const _0x4b02ec=_0x1bef7d;_0x3fa9b6[_0x4b02ec(0x5f9)](_0x57932c=>_0x57932c()),_0x3fa9b6=[],_0x43ca55=!0x1;}));};};let Be=class extends a['RxDisposable']{constructor(_0x466f42,_0x311fe6,_0x1e6d9a,_0xc21eed,_0x478aee,_0x82efc,_0x1b000a,_0x5c1161){const _0x208cea=_0x265f71;super(),u(this,_0x208cea(0x4d5),!0x1),u(this,_0x208cea(0x211),!0x1),u(this,'_cursorInfo$',new v['BehaviorSubject'](new Map())),u(this,_0x208cea(0x358),this[_0x208cea(0x436)]['asObservable']()),u(this,_0x208cea(0x2f3),new v[(_0x208cea(0x5e4))]([])),u(this,'roomMembers$',this[_0x208cea(0x2f3)][_0x208cea(0x337)](v[_0x208cea(0x4a3)](oi))),u(this,_0x208cea(0x35a),a['debounce']((_0x169d36,_0x155330)=>{const _0x1ab27a=_0x208cea,_0x4fed96={'eventID':_['CollaborationEvent'][_0x1ab27a(0x2c5)],'data':{'unitID':this[_0x1ab27a(0x597)],'memberID':this[_0x1ab27a(0x4b1)][_0x1ab27a(0x3fe)](),'selection':et[_0x1ab27a(0x545)](_0x169d36,_0x155330[_0x1ab27a(0x361)])}};this[_0x1ab27a(0x4b1)][_0x1ab27a(0x22c)](_0x4fed96,this[_0x1ab27a(0x597)]);},ai)),(this['unitID']=_0x466f42,this['_session']=_0x311fe6,this['_injector']=_0x1e6d9a,this[_0x208cea(0x36b)]=_0xc21eed,this['_memberService']=_0x478aee,this[_0x208cea(0x4c5)]=_0x82efc,this['_commandService']=_0x1b000a,this[_0x208cea(0x3c8)]=_0x5c1161);}get['cursorInfo'](){const _0x38d78c=_0x265f71;return this[_0x38d78c(0x436)][_0x38d78c(0x4bf)]();}get['roomMembers'](){const _0x5776c0=_0x265f71;return this[_0x5776c0(0x2f3)]['getValue']();}[_0x265f71(0x456)](){const _0x5278f3=_0x265f71;super[_0x5278f3(0x456)](),this[_0x5278f3(0x436)][_0x5278f3(0x53f)](new Map()),this['_cursorInfo$'][_0x5278f3(0x4e8)](),this[_0x5278f3(0x2f3)]['next']([]),this[_0x5278f3(0x2f3)]['complete']();}[_0x265f71(0x4e6)](){const _0x5e0a5d=_0x265f71;this[_0x5e0a5d(0x211)]||(this[_0x5e0a5d(0x211)]=!0x0,this[_0x5e0a5d(0x4b1)][_0x5e0a5d(0x491)][_0x5e0a5d(0x337)](v[_0x5e0a5d(0x321)](this[_0x5e0a5d(0x3e4)]))[_0x5e0a5d(0x1d2)](_0x1b4113=>{const _0x2e0760=_0x5e0a5d;_0x1b4113===H[_0x2e0760(0x40f)]?this[_0x2e0760(0x328)]():this[_0x2e0760(0x2d4)]();}),this['_session']['event$'][_0x5e0a5d(0x337)](v[_0x5e0a5d(0x321)](this[_0x5e0a5d(0x3e4)]))['subscribe'](_0x30c972=>{const _0x22dd2a=_0x5e0a5d,_0x359c75=_0x30c972['eventID'];_0x359c75===_[_0x22dd2a(0x4d9)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x30c972),_0x359c75===_[_0x22dd2a(0x4d9)]['USERS_LEAVE']&&this[_0x22dd2a(0x5ac)](_0x30c972);}),this[_0x5e0a5d(0x589)](),this[_0x5e0a5d(0x256)](this[_0x5e0a5d(0x530)][_0x5e0a5d(0x295)](_0x2bbc49=>{const _0x44fa28=_0x5e0a5d;if(this[_0x44fa28(0x4d5)]&&_0x2bbc49['id']===C[_0x44fa28(0x31f)]['id']&&_0x2bbc49['params'][_0x44fa28(0x3ce)]===this[_0x44fa28(0x597)]){const _0x4a7ae5=_0x2bbc49[_0x44fa28(0x466)];this['_updateLocalCursor'](_0x4a7ae5[_0x44fa28(0x345)],_0x4a7ae5[_0x44fa28(0x403)][0x0]);}})));}[_0x265f71(0x4ca)](_0x383946){const _0x307ab2=_0x265f71;var _0x13ded8,_0x101f4e;const {memberID:_0x397ae6,selection:_0x3b622f}=_0x383946['data'],{sheetName:_0x10cda4,range:_0x52c43a}=et[_0x307ab2(0x284)](_0x3b622f),_0x14654a={'name':(_0x101f4e=(_0x13ded8=this['_memberService'][_0x307ab2(0x390)](this[_0x307ab2(0x597)],_0x397ae6))==null?void 0x0:_0x13ded8[_0x307ab2(0x24e)])!=null?_0x101f4e:_0x307ab2(0x2e0),'range':this['_getMergeRange'](_0x10cda4,_0x52c43a),'sheetID':_0x10cda4,'color':this['_colorAssignService'][_0x307ab2(0x59a)](_0x397ae6),'selection':_0x3b622f},_0x3772a9=this['cursorInfo'];_0x3772a9[_0x307ab2(0x2c4)](_0x397ae6,_0x14654a),this[_0x307ab2(0x436)][_0x307ab2(0x53f)](_0x3772a9);}[_0x265f71(0x5ac)](_0x18cef7){const _0x59e8df=_0x265f71,{memberID:_0x137524}=_0x18cef7[_0x59e8df(0x485)],_0x58339f=this[_0x59e8df(0x35c)];_0x58339f[_0x59e8df(0x1eb)](_0x137524),this[_0x59e8df(0x436)][_0x59e8df(0x53f)](_0x58339f);}[_0x265f71(0x2df)](_0x2e6a41,_0x206b5a){const _0x58368f=_0x265f71;var _0x1087c1,_0x5bfd69;const _0x93a8f0=(_0x5bfd69=(_0x1087c1=this[_0x58368f(0x4c5)]['getUniverSheetInstance'](this[_0x58368f(0x597)]))==null?void 0x0:_0x1087c1[_0x58368f(0x587)](_0x2e6a41))==null?void 0x0:_0x5bfd69[_0x58368f(0x4cb)]();return(_0x93a8f0==null?void 0x0:_0x93a8f0[_0x58368f(0x5c4)](_0x18dddb=>a['Rectangle'][_0x58368f(0x3d5)](_0x18dddb,_0x206b5a)))||_0x206b5a;}[_0x265f71(0x589)](){const _0x512246=_0x265f71,_0x5305c4=new a[(_0x512246(0x34c))](),_0x259fbf=ci(),_0x3b3683=()=>{const _0x29e9da=_0x512246;_0x5305c4[_0x29e9da(0x456)]();const _0x1d626e=(_0x4079dd,_0x5328ef,_0x4a2932,_0x50a483)=>{const _0x5f4a2d=_0x29e9da;let _0x94441d=[];switch(_0x4079dd['id']){case C[_0x5f4a2d(0x3a8)]['DeleteRangeMoveLeftCommandId']:{_0x94441d=C[_0x5f4a2d(0x311)](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)][_0x5f4a2d(0x379)]:{_0x94441d=C['handleDeleteRangeMoveUp'](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)][_0x5f4a2d(0x4eb)]:{_0x94441d=C[_0x5f4a2d(0x58e)](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)][_0x5f4a2d(0x2ba)]:{_0x94441d=C['handleInsertRangeMoveDown'](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)]['InsertRangeMoveRightCommandId']:{_0x94441d=C['handleInsertRangeMoveRight'](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)]['InsertRowCommandId']:{_0x94441d=C[_0x5f4a2d(0x5e1)](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)]['MoveRangeCommandId']:{_0x94441d=C['handleMoveRange'](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)][_0x5f4a2d(0x5de)]:{_0x94441d=C['handleIRemoveCol'](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)][_0x5f4a2d(0x35d)]:{_0x94441d=C[_0x5f4a2d(0x259)](_0x4079dd,_0x50a483);break;}}const _0x23f74f=C[_0x5f4a2d(0x5ee)](_0x94441d,_0x50a483),_0x1f6a7d=this[_0x5f4a2d(0x35c)][_0x5f4a2d(0x224)](_0x5328ef);if(_0x1f6a7d&&_0x23f74f){const _0x273414={..._0x1f6a7d,'range':_0x23f74f};this['cursorInfo'][_0x5f4a2d(0x2c4)](_0x5328ef,_0x273414),_0x259fbf(()=>{const _0x1a20b8=_0x5f4a2d,_0x16f7d2=this[_0x1a20b8(0x3c8)]['registerRefRange'](_0x23f74f,_0x47fb0c=>(_0x16f7d2[_0x1a20b8(0x456)](),_0x1d626e(_0x47fb0c,_0x5328ef,_0x4a2932,_0x23f74f)));_0x5305c4[_0x1a20b8(0x4bb)](_0x16f7d2);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x4b69e8,_0x5ccd30)=>{const _0x2482ec=_0x29e9da,{range:_0x272194,sheetID:_0x853b49}=_0x4b69e8,_0x334151=this[_0x2482ec(0x3c8)][_0x2482ec(0x351)](_0x272194,_0x3fca57=>(_0x334151[_0x2482ec(0x456)](),_0x1d626e(_0x3fca57,_0x5ccd30,_0x853b49,_0x272194)));_0x5305c4[_0x2482ec(0x4bb)](_0x334151);});};this[_0x512246(0x256)](a[_0x512246(0x526)](this[_0x512246(0x436)][_0x512246(0x1d2)](()=>{_0x3b3683();})));}[_0x265f71(0x328)](){const _0x2a034f=_0x265f71;var _0x227b70,_0x137605;if(this[_0x2a034f(0x4d5)]=!0x0,((_0x227b70=this[_0x2a034f(0x4c5)][_0x2a034f(0x52f)]())==null?void 0x0:_0x227b70[_0x2a034f(0x4fa)]())!==this['unitID'])return;const _0x273f53=(_0x137605=this[_0x2a034f(0x555)][_0x2a034f(0x224)](C[_0x2a034f(0x442)])[_0x2a034f(0x50e)]())==null?void 0x0:_0x137605[0x0],_0x3d3e35=this[_0x2a034f(0x4c5)]['getCurrentUnitForType'](a[_0x2a034f(0x1f4)][_0x2a034f(0x527)])[_0x2a034f(0x2bc)]();_0x273f53&&_0x3d3e35&&this['_updateLocalCursor'](_0x3d3e35[_0x2a034f(0x24d)](),_0x273f53);}[_0x265f71(0x2d4)](){this['_online']=!0x1;}};Be=ri([Q(0x2,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),Q(0x3,a['Inject'](Je)),Q(0x4,a['Inject'](q)),Q(0x5,a[_0x265f71(0x5ad)]),Q(0x6,a[_0x265f71(0x596)]),Q(0x7,a[_0x265f71(0x599)](C['RefRangeService']))],Be);var li=Object['defineProperty'],hi=Object[_0x265f71(0x307)],_i=(_0x45f603,_0x571c23,_0x58ad13,_0x24d031)=>{for(var _0x3f7c95=_0x24d031>0x1?void 0x0:_0x24d031?hi(_0x571c23,_0x58ad13):_0x571c23,_0x2eea9c=_0x45f603['length']-0x1,_0x431895;_0x2eea9c>=0x0;_0x2eea9c--)(_0x431895=_0x45f603[_0x2eea9c])&&(_0x3f7c95=(_0x24d031?_0x431895(_0x571c23,_0x58ad13,_0x3f7c95):_0x431895(_0x3f7c95))||_0x3f7c95);return _0x24d031&&_0x3f7c95&&li(_0x571c23,_0x58ad13,_0x3f7c95),_0x3f7c95;},Me=(_0x42b87c,_0x3045fa)=>(_0x382f4d,_0x3bcb10)=>_0x3045fa(_0x382f4d,_0x3bcb10,_0x42b87c);let ne=class extends a[_0x265f71(0x459)]{constructor(_0x28b05c,_0x6a8f67,_0x310965){const _0x367c8c=_0x265f71;super(),u(this,_0x367c8c(0x59f),new Map()),u(this,_0x367c8c(0x37e),new v[(_0x367c8c(0x23e))]()),(this[_0x367c8c(0x4c5)]=_0x28b05c,this[_0x367c8c(0x555)]=_0x6a8f67,this[_0x367c8c(0x226)]=_0x310965,this[_0x367c8c(0x211)]());}['dispose'](){const _0x2c8f7a=_0x265f71;super[_0x2c8f7a(0x456)](),this['_entityInit$'][_0x2c8f7a(0x4e8)](),this[_0x2c8f7a(0x59f)][_0x2c8f7a(0x5f9)](_0x58b9b5=>_0x58b9b5[_0x2c8f7a(0x456)]());}[_0x265f71(0x574)](_0x314987){const _0x3fd03c=_0x265f71;return this['_entities']['has'](_0x314987)?this['_entities']['get'](_0x314987)[_0x3fd03c(0x358)]:this['_entityInit$']['pipe'](v[_0x3fd03c(0x3a9)](_0x6664f1=>_0x6664f1[_0x3fd03c(0x597)]===_0x314987),v['switchMap'](_0x3e16c3=>_0x3e16c3['cursorInfo$']));}[_0x265f71(0x211)](){const _0x4e4d4d=_0x265f71;this['_univerInstanceService'][_0x4e4d4d(0x21d)](a[_0x4e4d4d(0x1f4)][_0x4e4d4d(0x527)])[_0x4e4d4d(0x337)](v[_0x4e4d4d(0x321)](this[_0x4e4d4d(0x3e4)]))[_0x4e4d4d(0x1d2)](async _0x4aca4c=>{const _0x256081=_0x4e4d4d,_0x44acd4=_0x4aca4c[_0x256081(0x4fa)](),_0x56d0d6=await this[_0x256081(0x54e)](_0x44acd4);this[_0x256081(0x37e)][_0x256081(0x53f)](_0x56d0d6),this['_entities'][_0x256081(0x2c4)](_0x44acd4,_0x56d0d6);}),this[_0x4e4d4d(0x4c5)]['getTypeOfUnitAdded$'](a[_0x4e4d4d(0x1f4)]['UNIVER_DOC'])[_0x4e4d4d(0x337)](v['takeUntil'](this[_0x4e4d4d(0x3e4)]))[_0x4e4d4d(0x337)](v['filter'](_0x402f8a=>!_0x402f8a['getUnitId']()['startsWith']('__')))[_0x4e4d4d(0x1d2)](async _0xe0d409=>{const _0x177f48=_0x4e4d4d,_0x3cca66=_0xe0d409[_0x177f48(0x4fa)](),_0x1daeb3=await this[_0x177f48(0x282)](_0x3cca66);this[_0x177f48(0x37e)][_0x177f48(0x53f)](_0x1daeb3),this[_0x177f48(0x59f)][_0x177f48(0x2c4)](_0x3cca66,_0x1daeb3);}),v[_0x4e4d4d(0x4cf)](this['_univerInstanceService'][_0x4e4d4d(0x598)](a['UniverInstanceType']['UNIVER_DOC']),this[_0x4e4d4d(0x4c5)][_0x4e4d4d(0x598)](a[_0x4e4d4d(0x1f4)]['UNIVER_SHEET']))[_0x4e4d4d(0x337)](v[_0x4e4d4d(0x321)](this[_0x4e4d4d(0x3e4)]))[_0x4e4d4d(0x1d2)](_0x2106c4=>{const _0x4302e4=_0x4e4d4d,_0x224a63=_0x2106c4['getUnitId'](),_0x3af5bc=this[_0x4302e4(0x59f)][_0x4302e4(0x224)](_0x224a63);_0x3af5bc&&(_0x3af5bc[_0x4302e4(0x456)](),this[_0x4302e4(0x59f)]['delete'](_0x224a63));});}async['_startSheetCollabCursor'](_0x56e76d){const _0x137b03=_0x265f71,_0x2ac14c=await this[_0x137b03(0x226)][_0x137b03(0x430)](_0x56e76d),_0x54dc83=this[_0x137b03(0x555)]['createInstance'](Be,_0x56e76d,_0x2ac14c);return _0x54dc83['init'](),_0x54dc83;}async[_0x265f71(0x282)](_0x1821e4){const _0x444998=_0x265f71,_0x7b30c=await this[_0x444998(0x226)][_0x444998(0x430)](_0x1821e4),_0x2cead2=this[_0x444998(0x555)][_0x444998(0x27f)](ke,_0x1821e4,_0x7b30c);return _0x2cead2['init'](),_0x2cead2;}};ne=_i([Me(0x0,a[_0x265f71(0x5ad)]),Me(0x1,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),Me(0x2,a['Inject'](exports[_0x265f71(0x1f2)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x2cb12c,_0x49096c){const _0xdd2daa=_0x265f71;let {radius:_0x94437d,width:_0x5650dc,height:_0x1c56fa}=_0x49096c;_0x94437d=_0x94437d!=null?_0x94437d:0x0,_0x5650dc=_0x5650dc!=null?_0x5650dc:0x1e,_0x1c56fa=_0x1c56fa!=null?_0x1c56fa:0x1e;let _0x241166=0x0,_0x2242ef=0x0,_0x38b798=0x0;_0x241166=_0x2242ef=_0x38b798=Math[_0xdd2daa(0x579)](_0x94437d,_0x5650dc/0x2,_0x1c56fa/0x2),_0x2cb12c[_0xdd2daa(0x54f)](),_0x2cb12c[_0xdd2daa(0x2d0)](_0x241166,0x0),_0x2cb12c[_0xdd2daa(0x4a5)](_0x5650dc-_0x2242ef,0x0),_0x2cb12c[_0xdd2daa(0x32f)](_0x5650dc-_0x2242ef,_0x2242ef,_0x2242ef,Math['PI']*0x3/0x2,0x0,!0x1),_0x2cb12c[_0xdd2daa(0x4a5)](_0x5650dc,_0x1c56fa-_0x38b798),_0x2cb12c['arc'](_0x5650dc-_0x38b798,_0x1c56fa-_0x38b798,_0x38b798,0x0,Math['PI']/0x2,!0x1),_0x2cb12c[_0xdd2daa(0x4a5)](0x0,_0x1c56fa),_0x2cb12c[_0xdd2daa(0x4a5)](0x0,_0x241166),_0x2cb12c[_0xdd2daa(0x32f)](_0x241166,_0x241166,_0x241166,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2cb12c[_0xdd2daa(0x529)](),_0x49096c[_0xdd2daa(0x381)]&&(_0x2cb12c[_0xdd2daa(0x2b9)](),_0x2cb12c[_0xdd2daa(0x4a1)]=_0x49096c[_0xdd2daa(0x381)],_0x49096c['fillRule']===_0xdd2daa(0x5fd)?_0x2cb12c[_0xdd2daa(0x381)](_0xdd2daa(0x5fd)):_0x2cb12c[_0xdd2daa(0x381)](),_0x2cb12c[_0xdd2daa(0x492)]());}class Oe extends O['Shape']{constructor(_0x265256,_0x3565c5){const _0x6c5c1d=_0x265f71;super(_0x265256,_0x3565c5),u(this,_0x6c5c1d(0x2b3)),u(this,_0x6c5c1d(0x49f)),(this['color']=_0x3565c5==null?void 0x0:_0x3565c5[_0x6c5c1d(0x2b3)],this[_0x6c5c1d(0x49f)]=_0x3565c5==null?void 0x0:_0x3565c5[_0x6c5c1d(0x49f)]);}static['drawWith'](_0x223c79,_0x15c8ce){const _0x29e8cd=_0x265f71,{text:_0x490fa2,color:_0x45c565}=_0x15c8ce;_0x223c79[_0x29e8cd(0x2b9)](),_0x223c79[_0x29e8cd(0x59b)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x583439=_0x223c79[_0x29e8cd(0x50b)](_0x490fa2)[_0x29e8cd(0x207)],_0x3c79ca=Math[_0x29e8cd(0x579)](_0x583439+0x2*Ae,lt);di(_0x223c79,{'height':de,'radius':0x4,'width':_0x3c79ca,'fill':_0x45c565,'evented':!0x1}),_0x223c79['fillStyle']=_0x29e8cd(0x2da);const _0x3ef641=Ae,_0x5a4bd8=de-ui,_0x172d22=lt-0x2*Ae;if(_0x583439>_0x172d22){let _0x3d759e='',_0xbc202d=0x0;for(const _0x1a90ef of _0x490fa2){const _0x537d60=_0x223c79[_0x29e8cd(0x50b)](_0x1a90ef)[_0x29e8cd(0x207)];if(_0xbc202d+_0x537d60<=_0x172d22-_0x223c79[_0x29e8cd(0x50b)](_0x29e8cd(0x2ac))[_0x29e8cd(0x207)])_0x3d759e+=_0x1a90ef,_0xbc202d+=_0x537d60;else{_0x3d759e+=_0x29e8cd(0x2ac);break;}}_0x223c79[_0x29e8cd(0x366)](_0x3d759e,_0x3ef641,_0x5a4bd8);}else _0x223c79[_0x29e8cd(0x366)](_0x490fa2,_0x3ef641,_0x5a4bd8);_0x223c79['restore']();}[_0x265f71(0x3b6)](_0x26ed88){const _0x49a618=_0x265f71;Oe[_0x49a618(0x583)](_0x26ed88,this);}}const Le=_0x265f71(0x2a4),Si=_0x265f71(0x367),vi=_0x265f71(0x329),le=0x6,gi=1.5,je=0x4,fi=1.5,mi=_0x265f71(0x3c9);class ht{constructor(_0x570523,_0x21d871,_0x5e6d66,_0x2c559d){const _0x1d15c1=_0x265f71;u(this,'_shapes',[]),u(this,_0x1d15c1(0x2fd),null),u(this,_0x1d15c1(0x2ab),null),u(this,_0x1d15c1(0x3d8),null),u(this,_0x1d15c1(0x427),null),u(this,_0x1d15c1(0x428),null),(this[_0x1d15c1(0x23a)]=_0x570523,this[_0x1d15c1(0x2ef)]=_0x21d871,this[_0x1d15c1(0x241)]=_0x5e6d66,this['_document']=_0x2c559d,this[_0x1d15c1(0x1d9)]());}set[_0x265f71(0x447)](_0x404436){const _0x3e246e=_0x265f71;_0x404436?(this[_0x3e246e(0x3d8)]&&this[_0x3e246e(0x3d8)]['hide'](),this[_0x3e246e(0x2ab)]&&this[_0x3e246e(0x2ab)]['show']()):(this['_anchorDot']&&this[_0x3e246e(0x3d8)][_0x3e246e(0x508)](),this[_0x3e246e(0x2ab)]&&this[_0x3e246e(0x2ab)][_0x3e246e(0x458)]());}[_0x265f71(0x456)](){const _0x1c662d=_0x265f71;for(const _0x1c8c16 of this[_0x1c662d(0x581)])_0x1c8c16['dispose']();this[_0x1c662d(0x2ab)]&&this['_textBubble'][_0x1c662d(0x456)](),this[_0x1c662d(0x3d8)]&&this[_0x1c662d(0x3d8)]['dispose'](),this[_0x1c662d(0x2fd)]&&this[_0x1c662d(0x2fd)][_0x1c662d(0x456)](),this[_0x1c662d(0x428)]&&this[_0x1c662d(0x428)]();}[_0x265f71(0x1d9)](){const _0x54bb91=_0x265f71;var _0x4e168d;const {_docSkeleton:_0x573351,_document:_0x259573}=this,{color:_0x24ce6a,name:_0x16904d,ranges:_0x888d41}=this[_0x54bb91(0x23a)],_0x4d5382=_0x259573[_0x54bb91(0x409)](),{docsLeft:_0x44b028,docsTop:_0x2495c3}=_0x4d5382,_0xa55948=new w['NodePositionConvertToCursor'](_0x4d5382,_0x573351);for(const {startOffset:_0x5200a7,endOffset:_0x5a9b63,collapsed:_0x1b6c81,isActive:_0x30a737}of _0x888d41){const _0x9671bf=_0x573351['findNodePositionByCharIndex'](_0x5200a7),_0x42d932=_0x573351['findNodePositionByCharIndex'](_0x5a9b63);if(_0x30a737){const {contentBoxPointGroup:_0x42d20b}=_0xa55948[_0x54bb91(0x48d)](_0x42d932,_0x42d932);if(_0x42d20b['length']===0x0)continue;this[_0x54bb91(0x210)](_0x24ce6a,_0x42d20b,_0x44b028,_0x2495c3,_0x16904d),this[_0x54bb91(0x428)]=this[_0x54bb91(0x1ea)]();}if(!_0x1b6c81&&_0x9671bf&&_0x42d932){if(w['isValidRectRange'](_0x9671bf,_0x42d932)){const _0xc59407=new w[(_0x54bb91(0x380))](_0x4d5382,_0x573351),{pointGroup:_0x565840}=(_0x4e168d=_0xc59407[_0x54bb91(0x48d)](_0x9671bf,_0x42d932))!=null?_0x4e168d:{};if(_0x565840==null||_0x565840[_0x54bb91(0x2ce)]===0x0)continue;this[_0x54bb91(0x35b)](_0x24ce6a,_0x565840,_0x44b028,_0x2495c3);}else{const {contentBoxPointGroup:_0x4d3b33}=_0xa55948[_0x54bb91(0x48d)](_0x9671bf,_0x42d932);if(_0x4d3b33[_0x54bb91(0x2ce)]===0x0)continue;this['_drawTextRange'](_0x24ce6a,_0x4d3b33,_0x44b028,_0x2495c3);}}}}[_0x265f71(0x210)](_0x5c1634,_0x2cee79,_0x13d0dd,_0x14345c,_0xeac7fa){const _0x15f41c=_0x265f71,_0x19b227=this[_0x15f41c(0x356)](_0x2cee79),{left:_0x183641,top:_0x466742,height:_0x47a035}=_0x19b227,_0x43d9f1=this['_getScale'](),_0x38378a=fi/_0x43d9f1,_0x3e224c=new O[(_0x15f41c(0x221))](Le+a[_0x15f41c(0x2de)][_0x15f41c(0x3eb)](le),{'left':_0x183641+_0x13d0dd-_0x38378a,'top':_0x466742+_0x14345c,'height':_0x47a035,'width':gi,'fill':_0x5c1634||O[_0x15f41c(0x357)](a[_0x15f41c(0x528)][_0x15f41c(0x5c3)],0x0),'strokeWidth':_0x38378a,'stroke':mi,'evented':!0x0});this['_anchor']=_0x3e224c,this[_0x15f41c(0x2ef)][_0x15f41c(0x550)](_0x3e224c,w['TEXT_RANGE_LAYER_INDEX']);const _0x87e311=new O[(_0x15f41c(0x221))](Le+a[_0x15f41c(0x2de)]['generateRandomId'](le),{'left':_0x183641+_0x13d0dd-_0x38378a,'top':_0x466742+_0x14345c-je/0x2,'height':je,'width':je,'fill':_0x5c1634||O[_0x15f41c(0x357)](a[_0x15f41c(0x528)][_0x15f41c(0x5c3)],0x0),'strokeWidth':0x0,'stroke':_0x5c1634||O[_0x15f41c(0x357)](a['COLORS'][_0x15f41c(0x5c3)],0x0),'evented':!0x1});this[_0x15f41c(0x3d8)]=_0x87e311,this[_0x15f41c(0x2ef)][_0x15f41c(0x550)](_0x87e311,w[_0x15f41c(0x411)]);const _0x135e17=new Oe(Le+a[_0x15f41c(0x2de)][_0x15f41c(0x3eb)](le),{'left':_0x183641+_0x13d0dd-_0x38378a,'top':_0x466742+_0x14345c-de,'text':_0xeac7fa,'color':_0x5c1634});this['_textBubble']=_0x135e17,this[_0x15f41c(0x2ef)][_0x15f41c(0x550)](_0x135e17,w[_0x15f41c(0x411)]),this[_0x15f41c(0x447)]=!0x1;}[_0x265f71(0x1ea)](){const _0x594669=_0x265f71,_0x516bd2=this['_anchor'][_0x594669(0x2bb)][_0x594669(0x5d5)](()=>{this['_hover']=!0x0;}),_0x1e3736=this[_0x594669(0x2fd)][_0x594669(0x4a6)][_0x594669(0x5d5)](()=>{const _0x395eef=_0x594669;this[_0x395eef(0x427)]&&clearTimeout(this[_0x395eef(0x427)]),this[_0x395eef(0x427)]=setTimeout(()=>{const _0x1a4e9a=_0x395eef;this[_0x1a4e9a(0x447)]=!0x1;},0x7d0);});return()=>{const _0x1a4afb=_0x594669;_0x516bd2['unsubscribe'](),_0x1e3736[_0x1a4afb(0x471)]();};}[_0x265f71(0x4c1)](_0xb7d1ea,_0x321017,_0x2ca110,_0x307fb2){const _0x25e0eb=_0x265f71,_0x171372=new a[(_0x25e0eb(0x268))](_0xb7d1ea)[_0x25e0eb(0x396)](0.2)[_0x25e0eb(0x2be)](),_0x5906ca=new O[(_0x25e0eb(0x24b))](Si+a[_0x25e0eb(0x2de)][_0x25e0eb(0x3eb)](le),{'pointsGroup':_0x321017,'fill':_0x171372||O[_0x25e0eb(0x357)](a[_0x25e0eb(0x528)][_0x25e0eb(0x5c3)],0.2),'left':_0x2ca110,'top':_0x307fb2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25e0eb(0x581)][_0x25e0eb(0x48f)](_0x5906ca),this[_0x25e0eb(0x2ef)][_0x25e0eb(0x550)](_0x5906ca,w['TEXT_RANGE_LAYER_INDEX']);}[_0x265f71(0x35b)](_0x5eca89,_0x1663c8,_0x599ca2,_0x811264){const _0x3f244e=_0x265f71,_0x47aea5=new a[(_0x3f244e(0x268))](_0x5eca89)['setAlpha'](0.2)[_0x3f244e(0x2be)](),_0xe6a9ec=new O[(_0x3f244e(0x24b))](vi+a[_0x3f244e(0x2de)][_0x3f244e(0x3eb)](le),{'pointsGroup':_0x1663c8,'fill':_0x47aea5||O[_0x3f244e(0x357)](a[_0x3f244e(0x528)][_0x3f244e(0x5c3)],0.2),'left':_0x599ca2,'top':_0x811264,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3f244e(0x48f)](_0xe6a9ec),this[_0x3f244e(0x2ef)]['addObject'](_0xe6a9ec,w[_0x3f244e(0x411)]);}[_0x265f71(0x356)](_0x394603){const _0x3f3790=_0x394603[0x0],_0x2cbf88=_0x3f3790[0x0],_0x541daf=_0x3f3790[0x2],{x:_0x11909b,y:_0x3aff7d}=_0x2cbf88,{x:_0x432527,y:_0x2fb389}=_0x541daf;return{'left':_0x11909b,'top':_0x3aff7d,'width':_0x432527-_0x11909b,'height':_0x2fb389-_0x3aff7d};}[_0x265f71(0x496)](){const _0x4e30fe=_0x265f71,{scaleX:_0x5d3f29,scaleY:_0x5e8e93}=this[_0x4e30fe(0x2ef)][_0x4e30fe(0x58b)]();return Math['max'](_0x5d3f29,_0x5e8e93);}}var Ii=Object['defineProperty'],pi=Object[_0x265f71(0x307)],Ci=(_0x17882a,_0x5439d2,_0x4522b2,_0x424624)=>{const _0x56cc17=_0x265f71;for(var _0x15cf07=_0x424624>0x1?void 0x0:_0x424624?pi(_0x5439d2,_0x4522b2):_0x5439d2,_0x52964d=_0x17882a[_0x56cc17(0x2ce)]-0x1,_0x450670;_0x52964d>=0x0;_0x52964d--)(_0x450670=_0x17882a[_0x52964d])&&(_0x15cf07=(_0x424624?_0x450670(_0x5439d2,_0x4522b2,_0x15cf07):_0x450670(_0x15cf07))||_0x15cf07);return _0x424624&&_0x15cf07&&Ii(_0x5439d2,_0x4522b2,_0x15cf07),_0x15cf07;},ve=(_0x299534,_0x2e98b1)=>(_0x163d50,_0x285b64)=>_0x2e98b1(_0x163d50,_0x285b64,_0x299534);let Ve=class extends a[_0x265f71(0x459)]{constructor(_0x4d5d11,_0x7e56d3,_0x1451b8,_0x31c0fc,_0x2e9b2c){const _0x42ef9e=_0x265f71;super(),u(this,'_cursorShapes',[]),u(this,'_cursors',[]),(this[_0x42ef9e(0x444)]=_0x4d5d11,this[_0x42ef9e(0x4fd)]=_0x7e56d3,this[_0x42ef9e(0x472)]=_0x1451b8,this[_0x42ef9e(0x530)]=_0x31c0fc,this[_0x42ef9e(0x51f)]=_0x2e9b2c,this[_0x42ef9e(0x211)]());}[_0x265f71(0x211)](){const _0x2edeae=_0x265f71,_0x1e3d1a=this['_context'][_0x2edeae(0x3ce)],_0x3362c5=this['_docSkeletonManagerService'];this[_0x2edeae(0x256)](v[_0x2edeae(0x27e)]([this[_0x2edeae(0x472)][_0x2edeae(0x574)](_0x1e3d1a),this[_0x2edeae(0x51f)][_0x2edeae(0x4b5)]])[_0x2edeae(0x337)](E[_0x2edeae(0x5e5)](([_0x5f29c4,_0x2bee59])=>({'skeleton':_0x3362c5[_0x2edeae(0x594)](),'cursors':[..._0x5f29c4['values']()][_0x2edeae(0x3f0)](_0x2c9174=>({..._0x2c9174,'color':_0x2bee59[_0x2c9174[_0x2edeae(0x2b3)]]}))})))[_0x2edeae(0x1d2)](_0x25720e=>{const _0x357b1c=_0x2edeae;if(this[_0x357b1c(0x46f)](),_0x25720e){const {skeleton:_0x41acf5,cursors:_0x475946}=_0x25720e;this[_0x357b1c(0x25e)](_0x41acf5,_0x475946);}})),this[_0x2edeae(0x25a)](),this[_0x2edeae(0x204)]();}[_0x265f71(0x25e)](_0x58138c,_0x4ae10c){const _0x1b7280=_0x265f71,{scene:_0x367b72,mainComponent:_0x3a00e3}=this['_context'],_0x29ccac=_0x4ae10c[_0x1b7280(0x5e5)](_0x52b23b=>new ht(_0x52b23b,_0x367b72,_0x58138c,_0x3a00e3));this[_0x1b7280(0x223)]=_0x29ccac,this[_0x1b7280(0x3af)]=_0x4ae10c;}[_0x265f71(0x4f0)](){const _0x374582=_0x265f71;this[_0x374582(0x46f)]();const {scene:_0xd8de3a,mainComponent:_0x5cfe45}=this['_context'],_0x49e571=this['_docSkeletonManagerService']['getSkeleton'](),_0x5a71fe=this[_0x374582(0x3af)]['map'](_0x5df183=>new ht(_0x5df183,_0xd8de3a,_0x49e571,_0x5cfe45));this[_0x374582(0x223)]=_0x5a71fe;}['_removeCollabCursors'](){const _0x36e31=_0x265f71;this[_0x36e31(0x223)]['forEach'](_0x45f3df=>_0x45f3df['dispose']()),this[_0x36e31(0x223)]=[];}[_0x265f71(0x204)](){const _0x2d6a82=_0x265f71,_0x287903=[w[_0x2d6a82(0x5c2)]['id']];this[_0x2d6a82(0x256)](this['_commandService'][_0x2d6a82(0x295)](_0x5c7f70=>{const _0x2dd564=_0x2d6a82;_0x287903[_0x2dd564(0x5bf)](_0x5c7f70['id'])&&_0x5c7f70['params'][_0x2dd564(0x3ce)]===this[_0x2dd564(0x444)]['unitId']&&this[_0x2dd564(0x4f0)]();}));}['_initResize'](){const _0x55f171=_0x265f71;this[_0x55f171(0x256)](a[_0x55f171(0x31e)](this[_0x55f171(0x444)][_0x55f171(0x244)][_0x55f171(0x417)])[_0x55f171(0x337)](E['filter'](_0x2fee02=>_0x2fee02[_0x55f171(0x38a)]===O[_0x55f171(0x339)][_0x55f171(0x570)]),E['throttleTime'](0x10))[_0x55f171(0x1d2)](()=>{const _0x3c708a=_0x55f171;this[_0x3c708a(0x4f0)]();}));}};Ve=Ci([ve(0x1,a[_0x265f71(0x599)](se[_0x265f71(0x440)])),ve(0x2,a[_0x265f71(0x599)](ne)),ve(0x3,a['ICommandService']),ve(0x4,a['Inject'](a[_0x265f71(0x398)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends O[_0x265f71(0x53b)]{constructor(_0x37085a,_0x67c579){const _0x29b3cf=_0x265f71;super(_0x37085a,_0x67c579),u(this,_0x29b3cf(0x299)),u(this,_0x29b3cf(0x3a6),!0x1),u(this,'_range'),u(this,_0x29b3cf(0x2f5),''),u(this,_0x29b3cf(0x30c),_0x29b3cf(0x22e)),u(this,_0x29b3cf(0x3c0)),(_0x67c579&&this[_0x29b3cf(0x3d9)](_0x67c579),this['onPointerEnter$'][_0x29b3cf(0x5d5)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x29b3cf(0x4a6)][_0x29b3cf(0x5d5)](()=>this[_0x29b3cf(0x3d9)]({'hovered':!0x1})));}[_0x265f71(0x3d9)](_0x1b5628){const _0xb2ecd7=_0x265f71;var _0x4245bc,_0x1fc60b,_0x5a64ca,_0x4fe972,_0x37b9af,_0xd9808;this[_0xb2ecd7(0x299)]=(_0x4245bc=_0x1b5628[_0xb2ecd7(0x2b3)])!=null?_0x4245bc:this['_color'],this['_hovered']=(_0x1fc60b=_0x1b5628[_0xb2ecd7(0x29b)])!=null?_0x1fc60b:this[_0xb2ecd7(0x3a6)],this[_0xb2ecd7(0x2a0)]=(_0x5a64ca=_0x1b5628[_0xb2ecd7(0x361)])!=null?_0x5a64ca:this['_range'],this[_0xb2ecd7(0x2f5)]=(_0x4fe972=_0x1b5628[_0xb2ecd7(0x24e)])!=null?_0x4fe972:this[_0xb2ecd7(0x2f5)],this[_0xb2ecd7(0x30c)]=(_0x37b9af=_0x1b5628['labelPosition'])!=null?_0x37b9af:this['_labelPosition'],this[_0xb2ecd7(0x3c0)]=(_0xd9808=_0x1b5628[_0xb2ecd7(0x488)])!=null?_0xd9808:this[_0xb2ecd7(0x3c0)],this['transformByState']({'width':_0x1b5628[_0xb2ecd7(0x207)],'height':_0x1b5628[_0xb2ecd7(0x433)]});}[_0x265f71(0x27d)](_0xbba56a){const _0x101b36=_0x265f71,{row:_0x1af7b6,column:_0x1be501}=_0xbba56a;if(_0x1af7b6>=this[_0x101b36(0x2a0)][_0x101b36(0x3cb)]&&_0x1af7b6<=this[_0x101b36(0x2a0)][_0x101b36(0x34f)]&&_0x1be501>=this[_0x101b36(0x2a0)][_0x101b36(0x5fe)]&&_0x1be501<=this[_0x101b36(0x2a0)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x101b36(0x3d9)]({'hovered':!0x1});}[_0x265f71(0x47b)](_0x5b42ad){return!0x1;}[_0x265f71(0x3b6)](_0xc84a10){const _0x54c9f3=_0x265f71;O[_0x54c9f3(0x221)][_0x54c9f3(0x583)](_0xc84a10,{'width':this[_0x54c9f3(0x207)],'height':this['height'],'strokeWidth':bi,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x54c9f3(0x3a6)]&&(_0xc84a10[_0x54c9f3(0x2b9)](),_0xc84a10[_0x54c9f3(0x561)](0x1,0x0,0x0,0x1,this['width'],this[_0x54c9f3(0x30c)]===_0x54c9f3(0x2c9)?0x0:-de),Oe[_0x54c9f3(0x583)](_0xc84a10,{'text':this[_0x54c9f3(0x2f5)],'color':this[_0x54c9f3(0x299)]}),_0xc84a10[_0x54c9f3(0x492)]());}}var Ti=Object[_0x265f71(0x39e)],Ri=Object[_0x265f71(0x307)],Oi=(_0x14fe05,_0x24fe42,_0x5e75d1,_0x120d9b)=>{const _0x55017e=_0x265f71;for(var _0x284b89=_0x120d9b>0x1?void 0x0:_0x120d9b?Ri(_0x24fe42,_0x5e75d1):_0x24fe42,_0xce8dbd=_0x14fe05[_0x55017e(0x2ce)]-0x1,_0x2adf6f;_0xce8dbd>=0x0;_0xce8dbd--)(_0x2adf6f=_0x14fe05[_0xce8dbd])&&(_0x284b89=(_0x120d9b?_0x2adf6f(_0x24fe42,_0x5e75d1,_0x284b89):_0x2adf6f(_0x284b89))||_0x284b89);return _0x120d9b&&_0x284b89&&Ti(_0x24fe42,_0x5e75d1,_0x284b89),_0x284b89;},$e=(_0x91f13c,_0x231dd7)=>(_0x3de32,_0x234e56)=>_0x231dd7(_0x3de32,_0x234e56,_0x91f13c);const Di=0x1389;let We=class extends a[_0x265f71(0x459)]{constructor(_0x202817,_0x8dfbd6,_0x5a98a2,_0x270c1){const _0x271f59=_0x265f71;super(),u(this,'_cursors',new Set()),u(this,_0x271f59(0x3f5),null),(this[_0x271f59(0x444)]=_0x202817,this[_0x271f59(0x29e)]=_0x8dfbd6,this[_0x271f59(0x472)]=_0x5a98a2,this[_0x271f59(0x51f)]=_0x270c1,this[_0x271f59(0x211)]());}[_0x265f71(0x211)](){const _0x30d66a=_0x265f71;this[_0x30d66a(0x29e)]['currentSkeleton$']['pipe'](E[_0x30d66a(0x321)](this['dispose$']),E['switchMap'](_0x2b5fae=>{const _0x1b123c=_0x30d66a;if(_0x2b5fae){const _0x47ab26=_0x2b5fae[_0x1b123c(0x5a9)];return v[_0x1b123c(0x27e)](this[_0x1b123c(0x472)][_0x1b123c(0x574)](this[_0x1b123c(0x444)][_0x1b123c(0x3ce)]),this[_0x1b123c(0x51f)][_0x1b123c(0x4b5)])[_0x1b123c(0x337)](E['map'](([_0x211f81,_0x640614])=>{const _0x449e2a=_0x1b123c,_0x1ef7e9=new Map();return _0x211f81[_0x449e2a(0x5f9)]((_0x376f80,_0x233b86)=>{const _0x252a34=_0x449e2a;if(_0x376f80[_0x252a34(0x370)]===_0x47ab26){const _0x503316={..._0x376f80};_0x503316[_0x252a34(0x2b3)]=_0x640614[_0x376f80[_0x252a34(0x2b3)]],_0x1ef7e9['set'](_0x233b86,_0x503316);}}),{'skeleton':_0x2b5fae,'cursors':_0x1ef7e9};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x30d66a(0x1d2)](({skeleton:_0x1b116d,cursors:_0x51f0d3})=>{const _0x4a4f45=_0x30d66a;this[_0x4a4f45(0x46f)](),_0x1b116d&&this['_updateCollabCursors'](_0x1b116d,_0x51f0d3);}),this[_0x30d66a(0x29e)][_0x30d66a(0x218)][_0x30d66a(0x1d2)](_0x4a9005=>{const _0x1101ac=_0x30d66a;if(_0x4a9005==null)return;const {skeleton:_0x103898}=_0x4a9005,{scene:_0x322d7b}=this[_0x1101ac(0x444)];_0x322d7b[_0x1101ac(0x253)]['subscribeEvent'](a['debounce'](_0xe38189=>{const _0x1b3b98=_0x1101ac;var _0xbb6766,_0x2ad5ba;const {offsetX:_0x2b406f,offsetY:_0x247bb8}=_0xe38189,{x:_0x2eb962,y:_0x1107ce}=_0x322d7b[_0x1b3b98(0x341)](O[_0x1b3b98(0x494)][_0x1b3b98(0x2ea)]([_0x2b406f,_0x247bb8])),{scaleX:_0x49e3a7,scaleY:_0x95b5b}=_0x322d7b[_0x1b3b98(0x58b)](),_0x331b0c=_0x322d7b[_0x1b3b98(0x549)](te['VIEWPORT_KEY']['VIEW_MAIN']),_0x2dd82d=_0x322d7b[_0x1b3b98(0x20c)](O['Vector2'][_0x1b3b98(0x2ea)]([_0x2eb962,_0x1107ce]),_0x331b0c),_0x204d91=_0x103898['getCellPositionByOffset'](_0x2b406f,_0x247bb8,_0x49e3a7,_0x95b5b,_0x2dd82d);((_0xbb6766=this['_lastPointer'])==null?void 0x0:_0xbb6766[_0x1b3b98(0x3e1)])===_0x204d91[_0x1b3b98(0x3e1)]&&((_0x2ad5ba=this[_0x1b3b98(0x3f5)])==null?void 0x0:_0x2ad5ba[_0x1b3b98(0x525)])===_0x204d91['row']||this[_0x1b3b98(0x3af)][_0x1b3b98(0x5f9)](_0x14ecdf=>{const _0x557cba=_0x1b3b98;_0x14ecdf[_0x557cba(0x27d)](_0x204d91);});},0x64));});}[_0x265f71(0x25e)](_0x1383f1,_0x3d47d6){const _0x2f78cf=_0x265f71;var _0x5ef678;const _0x1fdc4a=(_0x5ef678=this[_0x2f78cf(0x29e)][_0x2f78cf(0x40c)]())==null?void 0x0:_0x5ef678[_0x2f78cf(0x4ad)];if(!_0x1fdc4a)return;const _0x5959c8=this[_0x2f78cf(0x519)]();if(!_0x5959c8)return;this[_0x2f78cf(0x3af)][_0x2f78cf(0x5f9)](_0x2d9c53=>{_0x2d9c53['makeDirty']();});const {scene:_0x174d35}=_0x5959c8,_0x3870b8=yi(Array[_0x2f78cf(0x1f3)](_0x3d47d6[_0x2f78cf(0x43e)]()))['map'](_0x475ae9=>{const _0xbc0312=_0x2f78cf,{color:_0x23be8f,range:_0x5a284b,name:_0x467d07,selection:_0x4adeb5,sheetID:_0x11e34e}=_0x475ae9,{startColumn:_0x287ff7,startRow:_0x5dfcdd,endColumn:_0x404516,endRow:_0x24fb6d}=_0x5a284b,_0x135405=te[_0xbc0312(0x2aa)](_0x5dfcdd,_0x287ff7,_0x174d35,_0x1fdc4a),_0xfa9de2=te[_0xbc0312(0x2aa)](_0x24fb6d,_0x404516,_0x174d35,_0x1fdc4a),{columnHeaderHeightAndMarginTop:_0x47e06e}=_0x1fdc4a,{startX:_0xe5ecfe,startY:_0x3a88aa}=_0x135405,{endX:_0x4721d3,endY:_0x1fe7e7}=_0xfa9de2,_0x405869=_0x4721d3-_0xe5ecfe,_0x10c996=_0x1fe7e7-_0x3a88aa,_0x19d9e4={'labelPosition':_0x3a88aa-_0x47e06e>=de?_0xbc0312(0x22e):_0xbc0312(0x2c9),'sheetID':_0x11e34e,'range':_0x5a284b,'color':_0x23be8f,'name':_0x467d07,'selection':_0x4adeb5,'left':_0xe5ecfe,'top':_0x3a88aa,'width':_0x405869,'height':_0x10c996,'evented':!0x1,'zIndex':Di};return new Pt(_0x467d07,_0x19d9e4);});_0x174d35[_0x2f78cf(0x40e)](_0x3870b8,Ei),this[_0x2f78cf(0x3af)]=new Set(_0x3870b8);}[_0x265f71(0x46f)](){const _0x1306b8=_0x265f71;var _0x292f4a;(_0x292f4a=this[_0x1306b8(0x3af)])==null||_0x292f4a['forEach'](_0x1aec32=>_0x1aec32['dispose']());}[_0x265f71(0x519)](){const _0x1387ac=_0x265f71;return te[_0x1387ac(0x29d)](this[_0x1387ac(0x444)][_0x1387ac(0x4fe)],this[_0x1387ac(0x444)]);}};We=Oi([$e(0x1,a[_0x265f71(0x599)](te[_0x265f71(0x5b4)])),$e(0x2,a['Inject'](ne)),$e(0x3,a['Inject'](a['ThemeService']))],We);function yi(_0x571f62){const _0x34e7f9=_0x265f71,_0x1db4af=new Map();return _0x571f62[_0x34e7f9(0x5f9)](_0x4723cc=>{const _0x15cf42=_0x34e7f9;if(_0x1db4af[_0x15cf42(0x3c3)](_0x4723cc[_0x15cf42(0x5a1)])){const _0xd239ae=_0x1db4af['get'](_0x4723cc[_0x15cf42(0x5a1)]);_0xd239ae[_0x15cf42(0x24e)]+=',\x20'+_0x4723cc[_0x15cf42(0x24e)];}else _0x1db4af['set'](_0x4723cc['selection'],_0x4723cc);}),Array[_0x34e7f9(0x1f3)](_0x1db4af[_0x34e7f9(0x43e)]());}var M=function(){const _0x30cc44=_0x265f71;return M=Object[_0x30cc44(0x392)]||function(_0x35e7d8){const _0x5aae9d=_0x30cc44;for(var _0x286336,_0xff529e=0x1,_0x5aa4a5=arguments[_0x5aae9d(0x2ce)];_0xff529e<_0x5aa4a5;_0xff529e++){_0x286336=arguments[_0xff529e];for(var _0x21da00 in _0x286336)Object[_0x5aae9d(0x2e8)][_0x5aae9d(0x314)][_0x5aae9d(0x5ba)](_0x286336,_0x21da00)&&(_0x35e7d8[_0x21da00]=_0x286336[_0x21da00]);}return _0x35e7d8;},M['apply'](this,arguments);},Ui=function(_0x9fa185,_0xfc4a2d){const _0x405c96=_0x265f71;var _0x1be75b={};for(var _0x364fa5 in _0x9fa185)Object[_0x405c96(0x2e8)][_0x405c96(0x314)][_0x405c96(0x5ba)](_0x9fa185,_0x364fa5)&&_0xfc4a2d[_0x405c96(0x45b)](_0x364fa5)<0x0&&(_0x1be75b[_0x364fa5]=_0x9fa185[_0x364fa5]);if(_0x9fa185!=null&&typeof Object[_0x405c96(0x313)]=='function'){for(var _0x330f03=0x0,_0x364fa5=Object[_0x405c96(0x313)](_0x9fa185);_0x330f03<_0x364fa5[_0x405c96(0x2ce)];_0x330f03++)_0xfc4a2d[_0x405c96(0x45b)](_0x364fa5[_0x330f03])<0x0&&Object[_0x405c96(0x2e8)][_0x405c96(0x5bb)][_0x405c96(0x5ba)](_0x9fa185,_0x364fa5[_0x330f03])&&(_0x1be75b[_0x364fa5[_0x330f03]]=_0x9fa185[_0x364fa5[_0x330f03]]);}return _0x1be75b;},Ze=P[_0x265f71(0x5e8)](function(_0x5df808,_0x4274f2){const _0x208d42=_0x265f71;var _0x20fcd2=_0x5df808[_0x208d42(0x2e7)],_0x1c9640=_0x5df808['id'],_0xe56f47=_0x5df808[_0x208d42(0x29f)],_0x108bb0=_0x5df808['extend'],_0x27aac0=Ui(_0x5df808,[_0x208d42(0x2e7),'id',_0x208d42(0x29f),_0x208d42(0x391)]),_0x2309b5=_0x208d42(0x376)['concat'](_0x1c9640,'\x20')['concat'](_0xe56f47||'')[_0x208d42(0x2c7)](),_0x3b9e38=P[_0x208d42(0x539)]('_'[_0x208d42(0x34b)](Ni()));return wt(_0x20fcd2,''[_0x208d42(0x34b)](_0x1c9640),{'defIds':_0x20fcd2['defIds'],'idSuffix':_0x3b9e38[_0x208d42(0x571)]},M({'ref':_0x4274f2,'className':_0x2309b5},_0x27aac0),_0x108bb0);});function wt(_0x3a1c85,_0x492e40,_0x3f47b9,_0x4f126c,_0x12ed1b){const _0x1f40b0=_0x265f71;return P['createElement'](_0x3a1c85[_0x1f40b0(0x2a8)],M(M({'key':_0x492e40},Pi(_0x3a1c85,_0x3f47b9,_0x12ed1b)),_0x4f126c),(wi(_0x3a1c85,_0x3f47b9)[_0x1f40b0(0x382)]||[])[_0x1f40b0(0x5e5)](function(_0x3f22ed,_0x334990){const _0x405c01=_0x1f40b0;return wt(_0x3f22ed,''['concat'](_0x492e40,'-')[_0x405c01(0x34b)](_0x3a1c85[_0x405c01(0x2a8)],'-')[_0x405c01(0x34b)](_0x334990),_0x3f47b9,void 0x0,_0x12ed1b);}));}function Pi(_0xbaaa3d,_0x4061b0,_0x566bf7){const _0x86ae6d=_0x265f71;var _0x1846f8=M({},_0xbaaa3d[_0x86ae6d(0x302)]);_0x566bf7!=null&&_0x566bf7[_0x86ae6d(0x24f)]&&_0x1846f8['fill']===_0x86ae6d(0x24f)&&(_0x1846f8[_0x86ae6d(0x381)]=_0x566bf7[_0x86ae6d(0x24f)]);var _0x1355b7=_0x4061b0[_0x86ae6d(0x3bc)];return!_0x1355b7||_0x1355b7[_0x86ae6d(0x2ce)]===0x0||(_0xbaaa3d['tag']===_0x86ae6d(0x334)&&_0x1846f8[_0x86ae6d(0x3a2)]&&(_0x1846f8['xlink:href']=_0x1846f8[_0x86ae6d(0x3a2)]+_0x4061b0[_0x86ae6d(0x3d6)]),Object[_0x86ae6d(0x445)](_0x1846f8)[_0x86ae6d(0x5f9)](function(_0x181a2d){const _0x244d90=_0x86ae6d;var _0x19af1a=_0x181a2d[0x0],_0x1ceecd=_0x181a2d[0x1];typeof _0x1ceecd==_0x244d90(0x33b)&&(_0x1846f8[_0x19af1a]=_0x1ceecd['replace'](/url\(#(.*)\)/,_0x244d90(0x372)['concat'](_0x4061b0['idSuffix'],')')));})),_0x1846f8;}function wi(_0xdd9b4c,_0x3ea32f){const _0x2c03bd=_0x265f71;var _0x121b80,_0x12e20d=_0x3ea32f[_0x2c03bd(0x3bc)];return!_0x12e20d||_0x12e20d[_0x2c03bd(0x2ce)]===0x0?_0xdd9b4c:_0xdd9b4c[_0x2c03bd(0x2a8)]===_0x2c03bd(0x1db)&&(!((_0x121b80=_0xdd9b4c[_0x2c03bd(0x382)])===null||_0x121b80===void 0x0)&&_0x121b80[_0x2c03bd(0x2ce)])?M(M({},_0xdd9b4c),{'children':_0xdd9b4c[_0x2c03bd(0x382)][_0x2c03bd(0x5e5)](function(_0x24a39f){const _0xc00612=_0x2c03bd;return typeof _0x24a39f[_0xc00612(0x302)]['id']==_0xc00612(0x33b)&&_0x12e20d&&_0x12e20d[_0xc00612(0x45b)](_0x24a39f[_0xc00612(0x302)]['id'])>-0x1?M(M({},_0x24a39f),{'attrs':M(M({},_0x24a39f[_0xc00612(0x302)]),{'id':_0x24a39f[_0xc00612(0x302)]['id']+_0x3ea32f[_0xc00612(0x3d6)]})}):_0x24a39f;})}):_0xdd9b4c;}function Ni(){const _0x58ed65=_0x265f71;return Math[_0x58ed65(0x546)]()[_0x58ed65(0x249)](0x24)['substring'](0x2,0x8);}Ze[_0x265f71(0x290)]=_0x265f71(0x274);var Mi={'tag':'svg','attrs':{'fill':_0x265f71(0x533),'viewBox':_0x265f71(0x4e9),'width':'1em','height':_0x265f71(0x54a)},'children':[{'tag':'g','attrs':{'clipPath':_0x265f71(0x338)},'children':[{'tag':_0x265f71(0x5d6),'attrs':{'stroke':'currentColor','d':_0x265f71(0x34a),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x265f71(0x232)},'children':[{'tag':_0x265f71(0x5d6),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x265f71(0x232)]},Nt=P['forwardRef'](function(_0x3ac083,_0x17e813){const _0x13ad13=_0x265f71;return P[_0x13ad13(0x4c8)](Ze,Object[_0x13ad13(0x392)]({},_0x3ac083,{'id':_0x13ad13(0x55e),'ref':_0x17e813,'icon':Mi}));});Nt[_0x265f71(0x290)]=_0x265f71(0x31c);var Ai={'tag':_0x265f71(0x42f),'attrs':{'fill':_0x265f71(0x533),'viewBox':_0x265f71(0x243),'width':_0x265f71(0x54a),'height':_0x265f71(0x54a)},'children':[{'tag':'g','attrs':{'clipPath':_0x265f71(0x3e8)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x265f71(0x34e),'strokeLinecap':_0x265f71(0x486),'strokeLinejoin':_0x265f71(0x486),'strokeWidth':1.2}}]},{'tag':_0x265f71(0x1db),'attrs':{},'children':[{'tag':_0x265f71(0x51e),'attrs':{'id':_0x265f71(0x344)},'children':[{'tag':_0x265f71(0x5d6),'attrs':{'fill':_0x265f71(0x385),'d':_0x265f71(0x55c),'transform':_0x265f71(0x4e5)}}]}]}],'defIds':[_0x265f71(0x344)]},Mt=P['forwardRef'](function(_0x265bc6,_0xe16fe5){const _0x2a00b5=_0x265f71;return P['createElement'](Ze,Object[_0x2a00b5(0x392)]({},_0x265bc6,{'id':_0x2a00b5(0x464),'ref':_0xe16fe5,'icon':Ai}));});Mt[_0x265f71(0x290)]=_0x265f71(0x5be);function At(_0x545811){const _0x5d3349=_0x265f71;var _0x4d6bad,_0x25c23b,_0x400675='';if(typeof _0x545811==_0x5d3349(0x33b)||typeof _0x545811==_0x5d3349(0x564))_0x400675+=_0x545811;else{if(typeof _0x545811=='object'){if(Array['isArray'](_0x545811)){var _0x53056c=_0x545811['length'];for(_0x4d6bad=0x0;_0x4d6bad<_0x53056c;_0x4d6bad++)_0x545811[_0x4d6bad]&&(_0x25c23b=At(_0x545811[_0x4d6bad]))&&(_0x400675&&(_0x400675+='\x20'),_0x400675+=_0x25c23b);}else{for(_0x25c23b in _0x545811)_0x545811[_0x25c23b]&&(_0x400675&&(_0x400675+='\x20'),_0x400675+=_0x25c23b);}}}return _0x400675;}function Li(){const _0x13a564=_0x265f71;for(var _0x58042c,_0x35922b,_0x49491d=0x0,_0x2b2f18='',_0x216c08=arguments[_0x13a564(0x2ce)];_0x49491d<_0x216c08;_0x49491d++)(_0x58042c=arguments[_0x49491d])&&(_0x35922b=At(_0x58042c))&&(_0x2b2f18&&(_0x2b2f18+='\x20'),_0x2b2f18+=_0x35922b);return _0x2b2f18;}const ji=_0x265f71(0x5f7),$i=_0x265f71(0x57b),Hi=_0x265f71(0x43a),xi=_0x265f71(0x53d),ki=_0x265f71(0x397),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x4f332d){const _0x26bae9=_0x265f71;switch(_0x4f332d){case U[_0x26bae9(0x4f3)]:return _0x26bae9(0x46b);case U[_0x26bae9(0x4e2)]:return _0x26bae9(0x413);case U[_0x26bae9(0x59c)]:return'collabStatus.fetchMiss';case U[_0x26bae9(0x5da)]:return'collabStatus.notCollab';case U['PENDING']:case U[_0x26bae9(0x5db)]:case U['AWAITING_WITH_PENDING']:return _0x26bae9(0x4af);case U[_0x26bae9(0x395)]:return _0x26bae9(0x2e2);}}function Lt(_0x452fc4){const _0x3f4877=_0x265f71,{status$:_0x3174b8}=_0x452fc4,_0x44f6bf=A[_0x3f4877(0x2e4)](_0x3174b8,U[_0x3f4877(0x5da)]),_0xbf3c86=a[_0x3f4877(0x2a1)](a[_0x3f4877(0x42a)]),_0x3cbd8c=a[_0x3f4877(0x2a1)](exports[_0x3f4877(0x1f2)]),_0xa3de25=_0x44f6bf!==U[_0x3f4877(0x4f3)],_0x5c9ecc=_0xbf3c86['t'](Bi(_0x44f6bf)),_0x444d1b=Li(he[_0x3f4877(0x34d)],{[he[_0x3f4877(0x4de)]]:_0xa3de25,[he[_0x3f4877(0x2f8)]]:!_0xa3de25}),_0xb30fb9=_0xa3de25?P['createElement'](Mt,null):P[_0x3f4877(0x4c8)](Nt,null),_0x2105a6=P[_0x3f4877(0x4a8)](()=>{const _0x1380d1=_0x3f4877;_0xa3de25||_0x3cbd8c[_0x1380d1(0x393)]();},[_0xa3de25,_0x3cbd8c]);function _0x49f242(){const _0x593dd8=_0x3f4877;return P['createElement']('div',{'className':_0x444d1b,'onClick':_0x2105a6},P['createElement'](_0x593dd8(0x2a5),{'className':he[_0x593dd8(0x542)]},_0xb30fb9),P['createElement'](_0x593dd8(0x2a5),{'className':he['onlineStatusTitle']},_0x5c9ecc));}return _0xa3de25?_0x49f242():P[_0x3f4877(0x4c8)](X[_0x3f4877(0x3d1)],{'title':_0xbf3c86['t']('collab-client.tooltip.reconnect')},_0x49f242());}var Vi=Object[_0x265f71(0x39e)],Wi=Object[_0x265f71(0x307)],Fi=(_0x5ecb4a,_0x18908d,_0x3496e3,_0x14f8a4)=>{const _0x4601b4=_0x265f71;for(var _0xb8ca0b=_0x14f8a4>0x1?void 0x0:_0x14f8a4?Wi(_0x18908d,_0x3496e3):_0x18908d,_0x4059c9=_0x5ecb4a[_0x4601b4(0x2ce)]-0x1,_0x2b92e3;_0x4059c9>=0x0;_0x4059c9--)(_0x2b92e3=_0x5ecb4a[_0x4059c9])&&(_0xb8ca0b=(_0x14f8a4?_0x2b92e3(_0x18908d,_0x3496e3,_0xb8ca0b):_0x2b92e3(_0xb8ca0b))||_0xb8ca0b);return _0x14f8a4&&_0xb8ca0b&&Vi(_0x18908d,_0x3496e3,_0xb8ca0b),_0xb8ca0b;},ge=(_0x28fa7d,_0x4e48b0)=>(_0x4266c0,_0x167655)=>_0x4e48b0(_0x4266c0,_0x167655,_0x28fa7d);exports[_0x265f71(0x319)]=class extends a[_0x265f71(0x1d4)]{constructor(_0x40aa11,_0x3d71f4,_0x2ee4d0,_0x4197a7){const _0x1440af=_0x265f71;super(),u(this,_0x1440af(0x32c),new v[(_0x1440af(0x5e4))](U[_0x1440af(0x5da)])),(this[_0x1440af(0x4c5)]=_0x40aa11,this[_0x1440af(0x330)]=_0x3d71f4,this[_0x1440af(0x555)]=_0x2ee4d0,this[_0x1440af(0x3cf)]=_0x4197a7,this[_0x1440af(0x2e1)](),this[_0x1440af(0x502)]());}[_0x265f71(0x502)](){const _0x22ae41=_0x265f71;this['disposeWithMe'](this['_univerInstanceService'][_0x22ae41(0x1f9)][_0x22ae41(0x337)](v[_0x22ae41(0x280)](()=>{const _0x2b8de4=_0x22ae41,_0x256fa9=this['_univerInstanceService'][_0x2b8de4(0x52f)]();return _0x256fa9?this[_0x2b8de4(0x3cf)][_0x2b8de4(0x4d1)](_0x256fa9[_0x2b8de4(0x4fa)]()):v['of'](null);}),v[_0x22ae41(0x280)](_0x49f3c9=>_0x49f3c9?_0x49f3c9[_0x22ae41(0x348)]:v['of'](U[_0x22ae41(0x5da)])))['subscribe'](_0x5f86c8=>{const _0x3c02c1=_0x22ae41;this[_0x3c02c1(0x32c)][_0x3c02c1(0x53f)](_0x5f86c8);}));}[_0x265f71(0x2e1)](){const _0x31bdee=_0x265f71;this[_0x31bdee(0x256)](this[_0x31bdee(0x330)]['registerComponent'](A[_0x31bdee(0x1e0)][_0x31bdee(0x5d7)],()=>a[_0x31bdee(0x363)](Gi({'status$':this['_status$'][_0x31bdee(0x406)]()}),this['_injector'])));}},exports[_0x265f71(0x319)]=Fi([ge(0x0,a['IUniverInstanceService']),ge(0x1,A[_0x265f71(0x3a1)]),ge(0x2,a[_0x265f71(0x599)](a['Injector'])),ge(0x3,a['Inject'](exports[_0x265f71(0x208)]))],exports[_0x265f71(0x319)]);function Gi(_0x1b23fc){const {status$:_0x490e87}=_0x1b23fc;return function(){const _0x1e4417=_0x5b21;return P[_0x1e4417(0x4c8)](Lt,{'status$':_0x490e87});};}const Qe=a['createIdentifier'](_0x265f71(0x559));var Yi=Object[_0x265f71(0x39e)],Ki=Object[_0x265f71(0x307)],Xi=(_0xc3e247,_0x59b2f8,_0x3c9b44,_0x3e1c28)=>{const _0x4fc1cd=_0x265f71;for(var _0x3e407f=_0x3e1c28>0x1?void 0x0:_0x3e1c28?Ki(_0x59b2f8,_0x3c9b44):_0x59b2f8,_0x96eae2=_0xc3e247[_0x4fc1cd(0x2ce)]-0x1,_0x4548d6;_0x96eae2>=0x0;_0x96eae2--)(_0x4548d6=_0xc3e247[_0x96eae2])&&(_0x3e407f=(_0x3e1c28?_0x4548d6(_0x59b2f8,_0x3c9b44,_0x3e407f):_0x4548d6(_0x3e407f))||_0x3e407f);return _0x3e1c28&&_0x3e407f&&Yi(_0x59b2f8,_0x3c9b44,_0x3e407f),_0x3e407f;},ee=(_0x19e2eb,_0x42f580)=>(_0x83546b,_0x5a6926)=>_0x42f580(_0x83546b,_0x5a6926,_0x19e2eb);exports[_0x265f71(0x4ff)]=class extends a[_0x265f71(0x459)]{constructor(_0x247014,_0x1f74b4,_0x5c4975,_0x500b28,_0x4cad1c,_0xa83592){const _0x5ae65f=_0x265f71;super(),this[_0x5ae65f(0x5a2)]=_0x247014,this[_0x5ae65f(0x4e4)]=_0x1f74b4,this[_0x5ae65f(0x530)]=_0x5c4975,this[_0x5ae65f(0x41e)]=_0x500b28,this[_0x5ae65f(0x308)]=_0x4cad1c,_0xa83592?_0xa83592==null||_0xa83592[_0x5ae65f(0x5b2)]()[_0x5ae65f(0x473)](()=>this[_0x5ae65f(0x211)]()):(this[_0x5ae65f(0x4e4)]['debug'](_0x5ae65f(0x3b3),_0x5ae65f(0x3b1)),this['_init']());}async['_init'](){const _0x4745d0=_0x265f71,_0x6add29=this['_urlService'][_0x4745d0(0x233)](_0x4745d0(0x4fe)),_0x2ef289=this[_0x4745d0(0x5a2)][_0x4745d0(0x233)]('type');if(!_0x6add29||!_0x2ef289){this['_logService'][_0x4745d0(0x3f6)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2ef289)){case $[_0x4745d0(0x527)]:{const _0xcd8d57=await this['_loadSheet'](_0x6add29);this['_setupSubUnitSync'](_0xcd8d57);break;}case $['UNIVER_DOC']:{await this[_0x4745d0(0x47f)](_0x6add29);break;}default:{this[_0x4745d0(0x4e4)][_0x4745d0(0x273)](_0x4745d0(0x3b3),_0x4745d0(0x2d1));break;}}}async[_0x265f71(0x3d4)](_0x671b64){const _0x3bd45b=_0x265f71;await this[_0x3bd45b(0x342)](_0x671b64),_0x671b64[_0x3bd45b(0x3da)][_0x3bd45b(0x337)](v[_0x3bd45b(0x321)](this[_0x3bd45b(0x3e4)]))[_0x3bd45b(0x1d2)](_0x579d0f=>{const _0x32c805=_0x3bd45b;_0x579d0f&&this[_0x32c805(0x3ab)](_0x579d0f);}),this[_0x3bd45b(0x5a2)][_0x3bd45b(0x1ee)]['pipe'](v[_0x3bd45b(0x321)](this['dispose$']))[_0x3bd45b(0x1d2)](()=>this[_0x3bd45b(0x342)](_0x671b64));}['_updateURLWithCurrentState'](_0x220dbe,_0x3259d4=!0x1){const _0x38d34e=_0x265f71,_0x448287=this['_urlService']['getParam'](_0x38d34e(0x317));_0x220dbe[_0x38d34e(0x24d)]()!==_0x448287&&this[_0x38d34e(0x5a2)][_0x38d34e(0x489)](_0x38d34e(0x317),_0x220dbe[_0x38d34e(0x24d)](),_0x3259d4);}async[_0x265f71(0x342)](_0x3c4863){const _0x54dbb1=_0x265f71;var _0x3ac4ee;const _0x40058c=this['_urlService'][_0x54dbb1(0x233)](_0x54dbb1(0x317));if(!_0x40058c||!_0x3c4863[_0x54dbb1(0x587)](_0x40058c)){const _0xc6288b=_0x3c4863[_0x54dbb1(0x5d2)]()[0x0],_0x26d088=_0x3c4863['getSheetBySheetId'](_0xc6288b);if(!_0x26d088)return;this[_0x54dbb1(0x3ab)](_0x26d088,!0x0),await this[_0x54dbb1(0x530)][_0x54dbb1(0x336)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x3c4863[_0x54dbb1(0x4fa)](),'subUnitId':_0xc6288b});return;}((_0x3ac4ee=_0x3c4863['getActiveSheet']())==null?void 0x0:_0x3ac4ee['getSheetId']())!==_0x40058c&&await this[_0x54dbb1(0x530)][_0x54dbb1(0x336)](C[_0x54dbb1(0x331)]['id'],{'unitId':_0x3c4863['getUnitId'](),'subUnitId':_0x40058c});}async[_0x265f71(0x1f8)](_0xfe6287){const _0x145551=_0x265f71;let _0x22d4c8=0x0;const _0x4b4927=await this['_localCacheService']['loadOfflineData'](_0xfe6287);return _0x4b4927&&(_0x4b4927['awaitingChangeset']||_0x4b4927[_0x145551(0x39f)][_0x145551(0x2ce)]!==0x0)&&(_0x22d4c8=_0x4b4927['rev']),_0x22d4c8===0x0&&this[_0x145551(0x4e4)]['debug']('[DataLoaderController]',_0x145551(0x437)),this[_0x145551(0x308)][_0x145551(0x236)](_0xfe6287,_0x22d4c8);}async['_loadDoc'](_0x302907){const _0x40bdfe=_0x265f71;let _0x20eeb1=0x0;const _0x39a123=await this[_0x40bdfe(0x41e)]['loadOfflineData'](_0x302907);return _0x39a123&&(_0x39a123[_0x40bdfe(0x2ad)]||_0x39a123[_0x40bdfe(0x39f)]['length']!==0x0)&&(_0x20eeb1=_0x39a123[_0x40bdfe(0x3fc)]),_0x20eeb1===0x0&&this[_0x40bdfe(0x4e4)]['debug'](_0x40bdfe(0x3b3),_0x40bdfe(0x437)),this[_0x40bdfe(0x308)][_0x40bdfe(0x48b)](_0x302907,_0x20eeb1);}},exports[_0x265f71(0x4ff)]=Xi([ee(0x0,Qe),ee(0x1,a[_0x265f71(0x54c)]),ee(0x2,a['ICommandService']),ee(0x3,a['Inject'](exports[_0x265f71(0x573)])),ee(0x4,a[_0x265f71(0x599)](_['SnapshotService'])),ee(0x5,a['Optional'](Kt[_0x265f71(0x227)]))],exports[_0x265f71(0x4ff)]);var qi=Object[_0x265f71(0x39e)],zi=Object[_0x265f71(0x307)],Ji=(_0x1caa69,_0x2fa03a,_0x236657,_0x225fdb)=>{const _0x3dde42=_0x265f71;for(var _0x550965=_0x225fdb>0x1?void 0x0:_0x225fdb?zi(_0x2fa03a,_0x236657):_0x2fa03a,_0x4a5df2=_0x1caa69[_0x3dde42(0x2ce)]-0x1,_0x571507;_0x4a5df2>=0x0;_0x4a5df2--)(_0x571507=_0x1caa69[_0x4a5df2])&&(_0x550965=(_0x225fdb?_0x571507(_0x2fa03a,_0x236657,_0x550965):_0x571507(_0x550965))||_0x550965);return _0x225fdb&&_0x550965&&qi(_0x2fa03a,_0x236657,_0x550965),_0x550965;},_t=(_0x1b9f79,_0x4cf05b)=>(_0x287f8e,_0x57f0ae)=>_0x4cf05b(_0x287f8e,_0x57f0ae,_0x1b9f79);const Zi=_0x265f71(0x22b),Qi=_0x265f71(0x25d);let Ce=class extends a[_0x265f71(0x1d4)]{constructor(_0x39cb42,_0x448d49){const _0x594ed8=_0x265f71;super(),this[_0x594ed8(0x4c5)]=_0x39cb42,this[_0x594ed8(0x26f)]=_0x448d49,this[_0x594ed8(0x211)]();}[_0x265f71(0x211)](){const _0x428696=_0x265f71;this[_0x428696(0x256)](this['_univerInstanceService'][_0x428696(0x1f9)][_0x428696(0x1d2)](()=>{const _0xec8715=_0x428696;var _0x4688c3;const _0x4de12a=this[_0xec8715(0x4c5)][_0xec8715(0x52f)]();let _0x5d0be5=(_0x4688c3=this['_configService']['getConfig'](Zi))!=null?_0x4688c3:Qi;_0x4de12a instanceof a['Workbook']&&(_0x5d0be5=_0x4de12a[_0xec8715(0x24e)]),document['title']=_0x5d0be5;}));}};Ce=Ji([_t(0x0,a['IUniverInstanceService']),_t(0x1,a['IConfigService'])],Ce);var en=Object[_0x265f71(0x39e)],tn=Object[_0x265f71(0x307)],sn=(_0x45de5f,_0x3b1922,_0x1dcdfa,_0x197c24)=>{for(var _0x27f985=_0x197c24>0x1?void 0x0:_0x197c24?tn(_0x3b1922,_0x1dcdfa):_0x3b1922,_0x43e700=_0x45de5f['length']-0x1,_0x1fa703;_0x43e700>=0x0;_0x43e700--)(_0x1fa703=_0x45de5f[_0x43e700])&&(_0x27f985=(_0x197c24?_0x1fa703(_0x3b1922,_0x1dcdfa,_0x27f985):_0x1fa703(_0x27f985))||_0x27f985);return _0x197c24&&_0x27f985&&en(_0x3b1922,_0x1dcdfa,_0x27f985),_0x27f985;},He=(_0x2f2c57,_0x5b5608)=>(_0x332962,_0x327f80)=>_0x5b5608(_0x332962,_0x327f80,_0x2f2c57);function _0x13c0(){const _0x3515fb=['useRef','setTimeout','Shape','_schedule','univer-online','collaboration_new_changeset','next','change$','every','onlineStatusIcon','allowed','exhaustSavingTask','serializeRangeWithSheet','random','clear','state$','getViewport','1em','RichTextEditingMutation','ILogService','not_collab','_startSheetCollabCursor','beginPath','addObject','saveOfflineData','CHANGESET_ACK','_docTransformSelectionsService','jiqing500','_injector','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_localStorageService','unshift','uni.network.url-service','override','_socketMessageSubscription','M0\x200H16V16H0z','CollaborationEntity','off-line-single','@univerjs/engine-formula','objectType','transform','BASE64','&to=','number','_ws','773703zDTMEo','ranges','YUUMI_RATE_OVER_LIMIT','_sendHeartbeatTimer','HTTPService','onTransformRemoteChangesetByIMECache','fromEvent','/collaborator','_ensureSubject','startTime','resize','current','getConfig','LocalCacheService','getCollabCursors$','UNDEFINED','[CollaborationUndoRedoService]','_getRedoStack','INGEST','min','commentUpdateEvent','univer-online-status-title','_HTTPService','close','SEND_CHANGESET_TIMEOUT_KEY','_onFetchMissResult','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_shapes','removeMember','drawWith','resend','purple300','_updateLocalCache','getSheetBySheetId','createSocket','_onRefRangeChange','_collabCursorState$','getAncestorScale','collaboration-session-retry','registerBeforeClose','handleInsertCol','originalMeta','IURLService','HEARTBEAT_INTERVAL_KEY','_waitCount','image/png','getSkeleton','enableSingleActiveInstanceLock','ICommandService','unitID','getTypeOfUnitDisposed$','Inject','assignAColorForMemberID','font','FETCH_MISS','append','event$','_entities','DocCollaborationEntity','selection','_urlService','reduce','_disabled','_id','url','socket\x20close','transformChangesets','sheetId','sessionStatus','getActiveRange','_onCursorDelete','IUniverInstanceService','updateMember','CollaborationStatus','symbol','revision','whenReady','encode','SheetSkeletonManagerService','getSheetBlock','_checkMissing','/universer-api/file/{fileID}/sign-url','Module','interceptor','call','propertyIsEnumerable','@univerjs/docs-ui','LIVESHARE_OPERATION','OnLineSingle','includes','IBeforeCloseService','LocalUndoRedoService','SetDocZoomRatioOperation','black','find','_unitOnClients','_showConflictNotification','_onConnectionOpen','_colorIndex','leaveEvent','withCredentials','_transformSelections','m1Prime','rxjs','APPLY_PERMISSION_DENIED','_onCombEvent','error$','POST','getUnhiddenWorksheets','_selfUnitIDs','_unitStatus','subscribeEvent','path','HEADER_MENU','socket$','objects','NOT_COLLAB','AWAITING','ws://127.0.0.1:8000/universer-api/comb/connect','HttpExport','RemoveColCommandId','x-univer-host','replaceTextRanges','handleInsertRow','_substituteRedoStack','snapshot','BehaviorSubject','map','searchParams','_state$','forwardRef','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','[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.','open$','_transformUndoredo','ALREADY_EXISTS','runRefRangeMutations','getUnit','_beforeCloseService','updatePermissionObjEvent','signUrlServerUrl','UNRECOGNIZED','conflict','changesets','updatePermissionPoint','univer-online-status-icon','setCurrentUser','forEach','IImageIoService','_getUploadFileURL','file','evenodd','startColumn','_tryEnsureSocket','ISnapshotServerService','href','subscribe','APPLY_REVISION_CONFILICT','Disposable','_http','image/jpeg','gold400','doc.mutation.rich-text-editing','_render','[OfflineState]:\x20received\x20changeset.','defs','method','deserializeToCombResponse','pauseCollaboration','_getLoginPath','BuiltInUIPart','split','_decreaseWaiting','_clearLocalCache','newValue','updateCursorEvent','LIVESHARE_NEW_HOST','isInternalEditorID','getUnitOnRev','_onRemoteRejected','_handleHover','delete','clearInterval','CollaborationStatusDisplay','urlChange$','USERS_LEAVE','put','/unit/','CollaborationSessionService','from','UniverInstanceType','reqId','UNIVER_UNKNOWN','red300','_loadSheet','focused$','2025270SvpYnN','_createHandler','Injector','_startTelemetryCollaborationNewChangeset','code','SessionStatus','sheets','HttpImport','_joinRoom','telemetry\x20info\x20is\x20not\x20initialized','_initCommandExecutedListener','CollaborationSocketService','_registerRenderDependencies','width','CollaborationController','session.will-retry','USERS_ENTER','onCommentUpdate','getVpScrollXYInfoByPosToVp','UniverCollaborationPlugin','[CollaborationEntity]','pluginName','_drawAnchor','_init','NOT_FOUND','readAsDataURL','UniverNetworkPlugin','_getSignURL','onRemoteRej','_getSendChangesetTimeout','currentSkeleton$','OTHER_CLIENTS_EDITING','_disableEditing','textRanges','EXCHANGE_SIGN_URL_SERVER_URL_KEY','getTypeOfUnitAdded$','syncEditingCollabCursor','_transformService','[OfflineState]:\x20received\x20rejection.','Rect','LOGIN_URL_KEY','_cursorShapes','get','newCsEvent','_collabSessionService','IRemoteInstanceService','registerHTTPInterceptor','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','Error','DEFAULT_FILE_NAME','send','_getDownloadEndpointURL','top','CHANGESET_REJ','IConfigService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','off-line-single_clip0_910_343','getParam','?size=','isArray','loadSheet','_commentUpdate$','@univerjs/sheets-ui','_redoStacks','_cursor','userID','onTransformIME','_members','Subject','SHOULD_CLOSE_CONN','COMPRESS_MUTATION_APPLY','_docSkeleton','632SFlQvW','0\x200\x2017\x2016','engine','apply','collaMsg','_listenToOnlineEvent','_socket$','toString','_socketReady','RegularPolygon','/resources','getSheetId','name','colorChannel1','_replayCachedMutations','transformMutation','SheetPermissionInitController','onPointerMove$','joinEvent','_fetchMissChangesets','disposeWithMe','_pendingMutations','cmd','handleIRemoveRow','_initResize','touchDependencies','_imageSourceCache','Univer','_updateCollabCursors','[CollaborationSessionService]:\x20socket\x20error','_createInitialState','_saveTaskMap','collaboration-client.offline-data-not-saved','COLLAB_WEB_SOCKET_URL_KEY','Undefined','[CollaborationSessionService]','take','MSG_FOR_ERROR','ColorKit','_getAPIPrefix','ImageIoService','CommandType','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','TOO_MANY_REQUESTS','unit-cache-','_configService','/object/','19268196NnxGku','SUCCUSS','error','UniverIcon','_removeRoom','ERROR_IMAGE','UNAUTHENTICATED','/block/','blue400','getUndoRedoMutationParamsCache','c2Prime','fetchThroughInterceptors','onMouseMove','combineLatest','createInstance','switchMap','popstate','_startDocCollabCursor','visibilitychange','deserializeRangeWithSheet','_substituteUndoStack','_getCurrentRevision','patch','UniverCollaborationClientPlugin','_initModules','editingUnit','MessageType','_scheduleClearOtherTimer','_initCloseConn','_syncEditingCollabCursorService','/universer-api/stream/file/upload','displayName','joinRsp','DocSelectionManagerService','[PendingState]:\x20received\x20rejection.','@univerjs/sheets','onCommandExecuted','NEW_CHANGESETS','onRemoteChangeset','with','_color','_commentService','hovered','getDocRanges','getSheetObject','_sheetSkeletonManagerService','className','_range','useDependency','/-/object/-/batch_allowed','univer-pro.collaboration-client-socket-service','collab-text-anchor-','div','LOCAL_CACHE_INTERVAL_KEY','_config','tag','saveSheetBlock','getCoordByCell','_textBubble','...','awaitingChangeset','COLLAB_SUBMIT_CHANGESET_URL','_event$','verdancy600','UnitSnapshot','registerRenderModule','color','mapDocumentTypeToUniverType','_changesetSessionId','IPermissionService','b64DecodeUnicode','resourceIDs','save','InsertRangeMoveDownCommandId','onPointerEnter$','getActiveSheet','origin','toRgbString','LICENSE_DISTRO_REJECTED','LIVESHARE_REQUEST_HOST','_onConnectionFailed','size','_notificationService','set','UPDATE_CURSOR','_transformPreviousActiveRange','trim','disableLocalCache','bottom','CollaborationSession','collabSubmitChangesetUrl','_cachedData','/-/object/list','length','_sessions','moveTo','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNIVER_DOC','LICENSE_IMPORT_SIZE_EXCEEDED','_toggleOffline','HELLO','toStringTag','_initRequestHeader','memberID','COMMENT_UPDATE','#FFF','_docStateChangeManagerService','_getUndoStack','isTransformMutationsWithChangesetSuccess','Tools','_getMergeRange','Unknown\x20user','_initStatusComponent','collabStatus.synced','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','useObservable','_remoteChangesetQueue','UPDATE_PERMISSION_OBJ','icon','prototype','\x0aCurrent:\x20','FromArray','_exhaustRemoteChangesetQueue','shouldCloseConn','_getCtorByUniverType','permission.content','_scene','_saveCache','_onRemoteACK','isTransformChangesetsSuccess','_roomMembers$','_collaborationPaused','_name','getLatestCsReqIdBySid','getRandomValues','offline','reject','YUUMI_SUBSCRIPTION_NOT_FOUND','unload','SNAPSHOT_SERVER_URL_KEY','_anchor','_lockTransition','_timeoutTimer','_clearOtherTimers','_collaborationTimeoutTimer','attrs','_scheduleSaving','CONNECTOR_DATA_TOO_LARGE','getUnitType','JOINING','getOwnPropertyDescriptor','_snapshotService','_roomMembers','fetchMissingChangesets','[CollaborationSession]','_labelPosition','catch','awaiting_with_pending','enableLocalCache','isTransformMutationsWithChangesetFailure','handleDeleteRangeMoveLeft','replace','getOwnPropertySymbols','hasOwnProperty','_localeService','requestParams','subunit','encodeURIComponent','DesktopCollaborationStatusDisplayController','_incrementRevisionNumber','getCollabEntity','OffLineSingle','INTERNAL_ERROR','fromEventSubject','SetSelectionsOperation','_renderManagerService','takeUntil','COMPRESS_MUTATION_SEND','setActiveRange','_getAPIPrefixPath','onRemoteAck','connection\x20error','delay','_toggleOnline','collab-rect-range-','setUndoRedoMutationParamsCache','getAttachHeader','_status$','textEncoder','eventID','arc','_uiPartsService','SetWorksheetActivateCommand','@univerjs/engine-render','collaborators','use','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','executeCommand','pipe','url(#off-line-single_clip0_910_343)','TRANSFORM_CHANGE_OBSERVABLE_TYPE','baseRev','string','roomInfos','ILocalStorageService','[SyncedState]:\x20received\x20acknowledgement.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','@univerjs/telemetry','getRelativeToViewportCoord','_updateSubUnitFromURLParams','session.connection-failed','on-line-single_clip0_910_349','subUnitId','_onJoinRoomEvent','getRoom','status$','COMPLETION_FINISHED','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','concat','DisposableCollection','onlineStatus','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','endRow','c1Prime','registerRefRange','onload','3927ULuzAN','socket\x20open.','getDeserializedSheetBlock','_getAnchorBounding','getColor','cursorInfo$','_transformIMECache','_updateLocalCursor','_drawRectRange','cursorInfo','RemoveRowCommandId','_send','_registerDependencies','AWAITING_WITH_PENDING','range','getInterceptPoints','connectInjector','FAIL','workbook','fillText','collab-text-range-','members','_isPermissionRej','_onOffline','_colorAssignService','_replaceFileID','routeKey','_getSnapshotAPIPrefix','\x20to\x20','sheetID','_socket','url(#$1','history','_handleJoinEvent','ICollaborationSocketService','univerjs-icon\x20univerjs-icon-','22widUFU','34380YUYILb','DeleteRangeMoveUpCommandId','csRejEvent','/universer-api/authz','_unitID','/universer-api/snapshot/','_entityInit$','LIVESHARE_TERMINATE','NodePositionConvertToRectRange','fill','children','snapshotServerUrl','react','#fff','_telemetryInfo','ImageUploadStatusType','sid','csAckEvent','type','toggleOnline','SnapshotServerOverHTTPService','awaiting','image/gif','YUUMI_URL_COL_OUT_OF_RANGE','getMember','extend','assign','reconnect','UserManagerService','SYNCED','setAlpha','univer-offline','ThemeService','status','isEditing','_clearCollaborationTimeoutTimer','Error\x20on\x20receiving\x20event','liveShareOperation','defineProperty','mutations','_syncEditingCollabCursor','IUIPartsService','xlink:href','Optional','_changesetReqId','_clearScheduledTask','_hovered','UUID','EffectRefRangId','filter','LOCAL_CACHE_INTERVAL','_updateURLWithCurrentState','closeSession','ImageSourceType','_heartbeatTimer','_cursors','_handler','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','docStateChange$','[DataLoaderController]','WebSocketService','onReady','_draw','PERMISSION_DENIED','slice','transformIMECache','_handleHeartbeatEvent','storage','defIds','CommentService','_listenToOfflineEvent','SNAPSHOT_HAS_BEEN_REMOVED','_backgroundColor','onStateChange','SUBMIT_CHANGESET','has','_queuedRemoteChangesets','updateOfflineData','getImageSourceCache','_httpService','_refRangeService','rgba(255,\x20255,\x20255,\x200.01)','CHANGESET_REVISION_CONFILICT','startRow','36rXpoUb','_scheduleHeartbeat','unitId','_collaborationController','&source=','Tooltip','max','now','_setupSubUnitSync','contains','idSuffix','LIVESHARE_FETCH_OPERATIONS','_anchorDot','setShapeProps','activeSheet$','PENDING','_sessionStatus$','disposeUnit','_transformUndoRedoStack','_applyRemoteChangeset','[FetchMissState]','column','UnitEmbedded','appendMutation','dispose$','_initEventListeners','getItem','Warning','url(#on-line-single_clip0_910_349)','fromCollab','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','generateRandomId','_telemetryService','1987060YmzCIB','SEND_CHANGESET_TIMEOUT','post','flatMap','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','target','conflict.title','loginUrlKey','_lastPointer','debug','_updateStatus','PERMISSION_REJ','image/jpg','DependentOn','APPLY_DUPLICATED','rev','all','getMemberID','_change$','liveShareNewHost','FileId','IDLE','selections','headers','setInterval','asObservable','isActive','_tryReconnect','getOffsetConfig','addEventListener','[PendingState]:\x20received\x20acknowledgement.','getCurrent','WorkbookEditablePermission','addObjects','ONLINE','RECV','TEXT_RANGE_LAYER_INDEX','_onUserJoin','collabStatus.conflict','_retryCount','_clearUndo','_sendHeartbeat','onTransformChange$','roomMembers$','collabWebSocketUrl','DocStateChangeManagerService','ITransformService','permissionRejEvent','close$','_localCacheService','AuthzIoHttpService','_createSocket','_updateState','_docSyncEditingCollabCursorService','state','debounce','@univerjs/ui','HTTPRequest','_hideTimer','_eventUnsubscribe','_startCollaboration','LocaleService','_transformStack','ERROR_IMAGE_TYPE','IAuthzIoService','_undoRedoService','svg','requireSession','create','_onLocalMutation','height','setItem','confirm','_cursorInfo$','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_socketService','_transformRemoteChangesetByIMECache','univer-online-status','body','DocIMEInputManagerService','removeParam','values','distinctUntilChanged','DocSkeletonManagerService','copyFileMeta','SheetsSelectionsService','_awaitingChangeset','_context','entries','SNAPSHOT_INVALID_SNAPSHOT','_hover','_collaborationSessionService','_permissionService','saveSnapshot','_scheduleCollaborationTimeoutTimer','_compressMutationService','onMissingChangesets','_userManagerService','NO_OTHER_CLIENTS_EDITING','_clearHeartbeatTimer','synced','_memberService','roles','objectID','updateCollaborator','dispose','@univerjs/design','hide','RxDisposable','_onMessage','indexOf','\x20-\x20','getCurrentRevOfUnit','YUUMI_UNABLE_LOAD_URL','_sheetTransformSelectionsService','getUnitStatus$','_docTransformIMECacheService','downloadEndpointUrl','concatMap','on-line-single','location','params','/object','onSyncEditingCollabCursor','_onRemoteChangeset','deleteCollaborator','collabStatus.offline','session','\x20in\x20_schedule.','result','_removeCollabCursors','[SyncedState]:\x20received\x20rejection.','unsubscribe','_collabCursorController','then','SheetCollabCursorShape','RevisionService','APPLY_NON_SEQUENTIAL_REVISION','unknown','onSendChangeset','ERROR_EXCEED_SIZE','CompressMutationService','triggerDblclick','_throwTelemetryCollaborationNewChangeset','deepClone','bind','_loadDoc','JSONX','ENSURE_SNAPSHOT_EXECUTION','m2Prime','stopTime','_unlockTransition','data','round','toLowerCase','backgroundColor','setParam','_singleActiveUnitService','loadDoc','_candidateSocket','getRangePointData','_getSaveTimeout','push','actions','sessionStatus$','restore','fetchMiss','Vector2','session.room-full','_getScale','_createInitialStateImpl','transformSelections','LICENSE_MAX_UNITS_EXCEEDED','message$','hidden','_removeClearOtherTimer','_handleEvent','save\x20fail\x20reason\x20is\x20','text','@univerjs/rpc','fillStyle','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','debounceTime','_waitForHeartbeatResponse','lineTo','onPointerLeave$','_handleLeaveEvent','useCallback','collaboration.single-unit.warning','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getCurrentUser','{fileID}','skeleton','transformMutationsWithChangeset','collabStatus.syncing','_type','_session','IMessageService','SheetCollaborationEntity','_executeRemoteChangeset','currentTheme$','_scheduleTimestamp','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','5LQyxDa','authzUrl','_setupBeforeClosingHandler','add','_shouldReportTelemetry','createIdentifier','\x0aAfter:\x20','getValue','addImageSourceCache','_drawTextRange','@univerjs-pro/license','fetch_missing','parseProtocolChangeset','_univerInstanceService','onMissedChangesetFetched','pending','createElement','_initUnitPermissionChange','_onCursorUpdate','getMergeData','sequenceExecute','[OfflineState]:\x20received\x20acknowledgement.','/rev/','merge','MUTATION','getCollabEntity$','&assign=','parseChangesetToProtocol','stringify','_online','onlyLocal','_onConflict','INotificationService','CollaborationEvent','INVALID_ARGUMENT','onStarting','PSEUDO_FETCH_MISSING_RESULT','_messageService','online','shareReplay','_assignedColors','_onUserLeave','CONFLICT','UNKNOWN_CMD','_logService','translate(.97)','init','/universer-api/comb','complete','0\x200\x2016\x2016','/universer-api/snapshot','InsertColCommandId','FETCH_MISSING','LICENSE_EXPORT_SIZE_EXCEEDED','univer-pro.collaboration-client.single-active-unit-service','SNAPSHOT_URL_KEY','_refreshCollabCursors','_initMergeInterceptor','isTransformMutationFailure','OFFLINE','getResourcesRequest','_snapshotServerService','[UniverCollaborationClientPlugin]','30645ORRYbY','_revisionService','pushState','getUnitId','LEAVE','_rescheduleHeartbeat','_docSkeletonManagerService','unit','DataLoaderController','reverse','localeService','_initStatusListener','_sendingTimer','registerOnClose','_retryConnectingTimer','UNIVER_PROJECT','editing\x20status\x20changed\x20to','show','replaceState','toggleOffline','measureText','serializeCombRequest','clearTimeout','getCurrentSelections','getWorkbookSelections','getTime','HEARTBEAT','_instanceService','auth.needGotoLoginAlert','JOIN','_acknowledgedAwaitingChangeset','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','list','fetching\x20missing\x20changesets\x20from\x20','_getSheetObject','HEARTBEAT_TIMEOUT_KEY','refreshPermission','transformRemoteChangeset','_state','clipPath','_themeService','APPLY_REJECT','enableAuthServer','getRenderById','UNKNOWN_CODE','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','row','toDisposable','UNIVER_SHEET','COLORS','closePath','isPermissionRej','setWaitCount','transformStack\x20failed!','_transitionLocked','json','getFocusedUnit','_commandService','rxjs/operators','45294eXikmh','none','randomUUID','_stopTelemetryCollaborationNewChangeset','_clearTimeoutTimer','submit\x20changeset\x20error!','IUndoRedoService'];_0x13c0=function(){return _0x3515fb;};return _0x13c0();}let Ee=class{constructor(_0x5ec5d5,_0x283f26,_0x201a53){const _0x18b9b4=_0x265f71;this[_0x18b9b4(0x26f)]=_0x5ec5d5,this[_0x18b9b4(0x3c7)]=_0x283f26,this[_0x18b9b4(0x501)]=_0x201a53,this[_0x18b9b4(0x4e6)]();}['init'](){const _0x174556=_0x265f71;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x9395d1,_0x20cfbd)=>_0x20cfbd(_0x9395d1)[_0x174556(0x337)](v[_0x174556(0x463)](async _0x50700f=>{const _0x282ca4=_0x174556,_0x4ba91a=_0x50700f;if(_0x4ba91a['status']===0x191&&window[_0x282ca4(0x435)](this[_0x282ca4(0x501)]['t'](_0x282ca4(0x513)))){const _0x3d3b29=window[_0x282ca4(0x318)](window[_0x282ca4(0x465)][_0x282ca4(0x1d1)]);window['location'][_0x282ca4(0x1d1)]=this[_0x282ca4(0x1df)]()+'?url='+_0x3d3b29;}return _0x4ba91a;}))});}['_getLoginPath'](){const _0x5017e0=_0x265f71;var _0x28c3af,_0x4972d1;const _0x4e6a0d=this[_0x5017e0(0x26f)][_0x5017e0(0x572)](Et),_0x4f7670=this[_0x5017e0(0x26f)][_0x5017e0(0x572)](L);return(_0x4972d1=(_0x28c3af=_0x4f7670==null?void 0x0:_0x4f7670[_0x5017e0(0x3f4)])!=null?_0x28c3af:_0x4e6a0d)!=null?_0x4972d1:ns;}};Ee=sn([He(0x0,a['IConfigService']),He(0x1,a[_0x265f71(0x599)](N[_0x265f71(0x56a)])),He(0x2,a[_0x265f71(0x599)](a['LocaleService']))],Ee);var nn=Object[_0x265f71(0x39e)],rn=Object[_0x265f71(0x307)],on=(_0x5d0524,_0x5bbe0a,_0x159a27,_0x50cecf)=>{const _0x2357ed=_0x265f71;for(var _0x2d95ed=_0x50cecf>0x1?void 0x0:_0x50cecf?rn(_0x5bbe0a,_0x159a27):_0x5bbe0a,_0xca07be=_0x5d0524[_0x2357ed(0x2ce)]-0x1,_0x5c63c3;_0xca07be>=0x0;_0xca07be--)(_0x5c63c3=_0x5d0524[_0xca07be])&&(_0x2d95ed=(_0x50cecf?_0x5c63c3(_0x5bbe0a,_0x159a27,_0x2d95ed):_0x5c63c3(_0x2d95ed))||_0x2d95ed);return _0x50cecf&&_0x2d95ed&&nn(_0x5bbe0a,_0x159a27,_0x2d95ed),_0x2d95ed;},ut=(_0x37f78a,_0x9dfa17)=>(_0x4257a3,_0x32c4ba)=>_0x9dfa17(_0x4257a3,_0x32c4ba,_0x37f78a);const jt='AUTHZ_URL_KEY',an=_0x265f71(0x37b);exports[_0x265f71(0x41f)]=class extends a[_0x265f71(0x1d4)]{constructor(_0x49a84f,_0x5bb57f){const _0x1acef0=_0x265f71;super(),this[_0x1acef0(0x57c)]=_0x49a84f,this[_0x1acef0(0x26f)]=_0x5bb57f,this[_0x1acef0(0x4f1)]();}[_0x265f71(0x4f1)](){const _0x2d8115=_0x265f71,_0xebf11e=this;this[_0x2d8115(0x256)](this['_HTTPService'][_0x2d8115(0x228)]({'priority':0x3e7,'interceptor':N['MergeInterceptorFactory']({'isMatch'(_0xc4d6bb){const _0x1d2725=_0x2d8115;var _0x40b13a;if(_0xc4d6bb[_0x1d2725(0x1dc)]==='POST'&&((_0x40b13a=_0xc4d6bb[_0x1d2725(0x316)])!=null&&_0x40b13a[_0x1d2725(0x43b)])){const {objectID:_0x581d44,objectType:_0x564622}=_0xc4d6bb[_0x1d2725(0x316)][_0x1d2725(0x43b)]||{};if(!_0x581d44||_0x564622===void 0x0)return!0x1;const _0x4d2760=_0xebf11e[_0x1d2725(0x324)]()+'/'+_0x564622+_0x1d2725(0x270)+_0x581d44+'/allowed';if(_0xc4d6bb[_0x1d2725(0x5a6)]===_0x4d2760)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xf8efd1){const _0x37f6ab=_0x2d8115;var _0x4ab96b;return(_0x4ab96b=_0xf8efd1[_0x37f6ab(0x316)])==null?void 0x0:_0x4ab96b[_0x37f6ab(0x43b)];},'mergeParamsToRequest'(_0x27a45c,_0x51e706){const _0xaff5b5=_0x2d8115,_0x284f6f=_0xebf11e[_0xaff5b5(0x324)]()+_0xaff5b5(0x2a2),_0x57b2d8=_0x27a45c['reduce']((_0x4d38d3,_0x2663f7)=>{const _0x15a1d3=_0xaff5b5,{unitID:_0x9aee34,objectID:_0x270046,objectType:_0x2c5b5e,actions:_0x827cec}=_0x2663f7;return _0x4d38d3[_0x9aee34]||(_0x4d38d3[_0x9aee34]={}),_0x4d38d3[_0x9aee34][_0x270046]||(_0x4d38d3[_0x9aee34][_0x270046]={'objectID':_0x270046,'objectType':_0x2c5b5e,'actions':[]}),_0x4d38d3[_0x9aee34][_0x270046][_0x15a1d3(0x490)][_0x15a1d3(0x48f)](..._0x827cec),_0x4d38d3;},{}),_0x556049=[];for(const _0x3ae000 in _0x57b2d8)for(const _0x71bc80 in _0x57b2d8[_0x3ae000]){const {actions:_0x249441,objectType:_0x45ef10}=_0x57b2d8[_0x3ae000][_0x71bc80],_0x25d407=[...new Set(_0x249441)];_0x556049[_0xaff5b5(0x48f)]({'unitID':_0x3ae000,'objectID':_0x71bc80,'objectType':_0x45ef10,'actions':_0x25d407});}return new N[(_0xaff5b5(0x426))](_0xaff5b5(0x5d1),_0x284f6f,{'headers':_0x51e706['headers'],'withCredentials':_0x51e706[_0xaff5b5(0x5ca)],'responseType':_0x51e706['responseType'],'body':{'requests':_0x556049}});}},{'distributeResult'(_0x28f6f8,_0x4028e8){const _0xaa1902=_0x2d8115,{objectActions:_0x553c5b}=_0x28f6f8;return _0x4028e8[_0xaa1902(0x5e5)](_0x5c7885=>{const _0x40872f=_0xaa1902,{unitID:_0x59a142,objectID:_0x44f6ff,actions:_0x5c6c73}=_0x5c7885,_0xad24e3=_0x553c5b[_0x40872f(0x5c4)](_0x377747=>_0x377747['unitID']===_0x59a142&&_0x377747[_0x40872f(0x454)]===_0x44f6ff),_0x1d2f4a=_0x5c6c73[_0x40872f(0x5e5)](_0x9dd9c1=>_0xad24e3==null?void 0x0:_0xad24e3[_0x40872f(0x490)][_0x40872f(0x5c4)](_0x9b637c=>_0x9b637c['action']===_0x9dd9c1))[_0x40872f(0x3a9)](_0x1a18e4=>!!_0x1a18e4);return{'config':_0x5c7885,'result':{'actions':_0x1d2f4a,'error':_0x28f6f8['error']}};});}})}));}[_0x265f71(0x324)](){const _0x2aff62=_0x265f71;var _0x3ecc73,_0x45711a;const _0x548142=this[_0x2aff62(0x26f)][_0x2aff62(0x572)](jt),_0x560063=this[_0x2aff62(0x26f)][_0x2aff62(0x572)](L);return(_0x45711a=(_0x3ecc73=_0x560063==null?void 0x0:_0x560063[_0x2aff62(0x4b9)])!=null?_0x3ecc73:_0x548142)!=null?_0x45711a:an;}async[_0x265f71(0x431)](_0x949743){const _0x1c8377=_0x265f71,_0x73ac17=this['_getAPIPrefixPath']()+'/'+_0x949743[_0x1c8377(0x560)]+_0x1c8377(0x467);return(await this['_HTTPService'][_0x1c8377(0x3ef)](_0x73ac17,{'body':_0x949743}))[_0x1c8377(0x43b)][_0x1c8377(0x454)]||'';}async[_0x265f71(0x517)](_0x2266af){const _0x2778c4=_0x265f71,_0x40862c=this['_getAPIPrefixPath']()+_0x2778c4(0x2cd);return(await this[_0x2778c4(0x57c)][_0x2778c4(0x3ef)](_0x40862c,{'body':_0x2266af}))[_0x2778c4(0x43b)][_0x2778c4(0x5d9)];}async['update'](_0x5db304){const _0x433db2=_0x265f71,_0x4e77f2=this[_0x433db2(0x324)]()+'/'+_0x5db304['objectType']+_0x433db2(0x270)+_0x5db304[_0x433db2(0x454)];await this['_HTTPService'][_0x433db2(0x1f0)](_0x4e77f2,{'body':_0x5db304});}async[_0x265f71(0x543)](_0x403641){const _0x4baee7=_0x265f71,_0x4185f5=this[_0x4baee7(0x324)]()+'/'+_0x403641['objectType']+'/object/'+_0x403641[_0x4baee7(0x454)]+'/allowed';return(await this[_0x4baee7(0x57c)]['post'](_0x4185f5,{'body':_0x403641}))[_0x4baee7(0x43b)]['actions'];}async['batchAllowed'](_0x25ac52){const _0x47d0df=_0x265f71,_0x473910=this[_0x47d0df(0x324)]()+_0x47d0df(0x2a2);return(await this['_HTTPService']['post'](_0x473910,{'body':{'requests':_0x25ac52}}))['body']['objectActions'];}async['listRoles'](_0xafe775){const _0x1c9bad=_0x265f71,_0x46bada=this[_0x1c9bad(0x324)]()+'/'+_0xafe775[_0x1c9bad(0x560)]+'/role',_0x39529a=await this[_0x1c9bad(0x57c)]['post'](_0x46bada,{'body':_0xafe775});return{'roles':_0x39529a[_0x1c9bad(0x43b)][_0x1c9bad(0x453)],'actions':_0x39529a[_0x1c9bad(0x43b)][_0x1c9bad(0x490)]};}async[_0x265f71(0x46a)](_0x5632d7){const _0x21696f=_0x265f71,_0x4a1c4b=this['_getAPIPrefixPath']()+_0x21696f(0x56d);await this[_0x21696f(0x57c)][_0x21696f(0x1eb)](_0x4a1c4b,{'params':{'collaboratorID':_0x5632d7['collaboratorID'],'objectID':_0x5632d7[_0x21696f(0x454)],'unitID':_0x5632d7[_0x21696f(0x597)]}});}async[_0x265f71(0x455)](_0x47b037){const _0x464f0b=_0x265f71,_0x24bcde=this[_0x464f0b(0x324)]()+'/collaborator';await this['_HTTPService'][_0x464f0b(0x287)](_0x24bcde,{'body':_0x47b037});}async['createCollaborator'](_0x421993){const _0x17997a=_0x265f71,_0x23d5e1=this[_0x17997a(0x324)]()+'/collaborator';await this[_0x17997a(0x57c)][_0x17997a(0x3ef)](_0x23d5e1,{'body':_0x421993});}async['listCollaborators'](_0x507572){const _0x485e0d=_0x265f71,_0x8455b7=this['_getAPIPrefixPath']()+'/collaborator';return(await this['_HTTPService'][_0x485e0d(0x224)](_0x8455b7,{'params':{'objectID':_0x507572[_0x485e0d(0x454)],'unitID':_0x507572[_0x485e0d(0x597)]}}))[_0x485e0d(0x43b)][_0x485e0d(0x333)];}async['putCollaborators'](_0x1210e8){const _0x73b7d1=_0x265f71,_0x2279d1=this[_0x73b7d1(0x324)]()+_0x73b7d1(0x56d);await this[_0x73b7d1(0x57c)]['put'](_0x2279d1,{'body':_0x1210e8});}},exports['AuthzIoHttpService']=on([ut(0x0,a['Inject'](N[_0x265f71(0x56a)])),ut(0x1,a[_0x265f71(0x599)](a[_0x265f71(0x230)]))],exports[_0x265f71(0x41f)]);var cn=Object['defineProperty'],ln=Object[_0x265f71(0x307)],hn=(_0x58268f,_0x37c602,_0x343571,_0x5d475a)=>{const _0x21039e=_0x265f71;for(var _0x103d79=_0x5d475a>0x1?void 0x0:_0x5d475a?ln(_0x37c602,_0x343571):_0x37c602,_0x12f061=_0x58268f[_0x21039e(0x2ce)]-0x1,_0x111e13;_0x12f061>=0x0;_0x12f061--)(_0x111e13=_0x58268f[_0x12f061])&&(_0x103d79=(_0x5d475a?_0x111e13(_0x37c602,_0x343571,_0x103d79):_0x111e13(_0x103d79))||_0x103d79);return _0x5d475a&&_0x103d79&&cn(_0x37c602,_0x343571,_0x103d79),_0x103d79;},_n=(_0x13702d,_0x23cee2)=>(_0x27428e,_0x19a459)=>_0x23cee2(_0x27428e,_0x19a459,_0x13702d);let be=class{constructor(_0x2f985a){const _0xce6824=_0x265f71;this[_0xce6824(0x3c7)]=_0x2f985a,this[_0xce6824(0x2d7)]();}['_initRequestHeader'](){const _0x1be8a3=_0x265f71;this[_0x1be8a3(0x3c7)]['registerHTTPInterceptor']({'interceptor':(_0x193e72,_0x1a69c0)=>{const _0x524b76=_0x1be8a3,_0x38c197=_0x193e72[_0x524b76(0x404)],_0x2b6a31=Xt[_0x524b76(0x32b)]();return _0x2b6a31&&_0x38c197['set'](_0x524b76(0x5df),_0x2b6a31),_0x1a69c0(_0x193e72);}});}};be=hn([_n(0x0,a['Inject'](N['HTTPService']))],be);var un=Object['defineProperty'],dn=Object[_0x265f71(0x307)],Sn=(_0x3bd855,_0x3de274,_0x2b5dfd,_0x25c1f5)=>{for(var _0x228e86=_0x25c1f5>0x1?void 0x0:_0x25c1f5?dn(_0x3de274,_0x2b5dfd):_0x3de274,_0x4384cf=_0x3bd855['length']-0x1,_0x5afc37;_0x4384cf>=0x0;_0x4384cf--)(_0x5afc37=_0x3bd855[_0x4384cf])&&(_0x228e86=(_0x25c1f5?_0x5afc37(_0x3de274,_0x2b5dfd,_0x228e86):_0x5afc37(_0x228e86))||_0x228e86);return _0x25c1f5&&_0x228e86&&un(_0x3de274,_0x2b5dfd,_0x228e86),_0x228e86;},xe=(_0x3aa6ac,_0x4bd214)=>(_0x202ad3,_0x525878)=>_0x4bd214(_0x202ad3,_0x525878,_0x3aa6ac);const vn=[_0x265f71(0x593),_0x265f71(0x1d6),_0x265f71(0x3f9),_0x265f71(0x38e),'image/bmp'],gn=0x5*0x400*0x400,fn=_0x265f71(0x26c),mn=_0x265f71(0x28f),In=_0x265f71(0x21c),pn=_0x265f71(0x5b7);exports[_0x265f71(0x26a)]=class{constructor(_0x1a84ab,_0x234a85,_0x599ead){const _0x122041=_0x265f71;u(this,_0x122041(0x592),0x0),u(this,_0x122041(0x3ff),new v[(_0x122041(0x23e))]()),u(this,_0x122041(0x540),this[_0x122041(0x3ff)]),u(this,_0x122041(0x25c),new Map()),(this[_0x122041(0x3c7)]=_0x1a84ab,this['_configService']=_0x234a85,this[_0x122041(0x4c5)]=_0x599ead);}[_0x265f71(0x52b)](_0x463d65){const _0x827d77=_0x265f71;this[_0x827d77(0x592)]=_0x463d65,this[_0x827d77(0x3ff)]['next'](_0x463d65);}[_0x265f71(0x3c6)](_0x51ff16,_0x1c4528){const _0x5467fd=_0x265f71;if(_0x1c4528===j[_0x5467fd(0x3ad)][_0x5467fd(0x562)]){const _0x57d396=new Image();return _0x57d396['src']=_0x51ff16,_0x57d396;}return this[_0x5467fd(0x25c)]['get'](_0x51ff16);}[_0x265f71(0x4c0)](_0x1a7c6b,_0x1c68c2,_0x27ab66){const _0x3c85a8=_0x265f71;_0x1c68c2===j[_0x3c85a8(0x3ad)]['BASE64']||_0x27ab66==null||this[_0x3c85a8(0x25c)][_0x3c85a8(0x2c4)](_0x1a7c6b,_0x27ab66);}async['getImage'](_0x2c2d74){const _0x32f0f4=_0x265f71;try{const _0x23d5fc=this['_replaceFileID'](this['_getSignURL'](),''+_0x2c2d74),_0x93532e=(await this[_0x32f0f4(0x3c7)][_0x32f0f4(0x224)](_0x23d5fc))[_0x32f0f4(0x43b)];if(_0x93532e[_0x32f0f4(0x273)]&&_0x93532e[_0x32f0f4(0x273)][_0x32f0f4(0x1fe)]===bt['OK']){const _0x5e5128=new URL(_0x93532e[_0x32f0f4(0x5a6)],this[_0x32f0f4(0x22d)]())[_0x32f0f4(0x249)]();return Promise['resolve'](_0x5e5128);}return Promise[_0x32f0f4(0x2f9)](_0x93532e['error']);}catch(_0x30b1cf){return Promise[_0x32f0f4(0x2f9)](_0x30b1cf);}}async['saveImage'](_0x391e90){const _0x5c36fd=_0x265f71;let _0x296814='';if(!vn[_0x5c36fd(0x5bf)](_0x391e90[_0x5c36fd(0x38a)]))return this[_0x5c36fd(0x1e2)](),Promise[_0x5c36fd(0x2f9)](new Error(j[_0x5c36fd(0x387)][_0x5c36fd(0x42c)]));if(_0x391e90[_0x5c36fd(0x2c2)]>gn)return this[_0x5c36fd(0x1e2)](),Promise['reject'](new Error(j[_0x5c36fd(0x387)][_0x5c36fd(0x479)]));try{const _0x193850=new FormData();_0x193850[_0x5c36fd(0x59d)](_0x5c36fd(0x5fc),_0x391e90);const _0x49b0cc=this[_0x5c36fd(0x4c5)][_0x5c36fd(0x52f)](),_0x51549f=_0x49b0cc==null?void 0x0:_0x49b0cc['getUnitId']();if(!_0x51549f)throw new Error('unitId\x20is\x20not\x20found');const _0x4dcef2=this['_getUploadFileURL']()+_0x5c36fd(0x234)+_0x391e90[_0x5c36fd(0x2c2)][_0x5c36fd(0x249)]()+_0x5c36fd(0x3d0)+Tt[_0x5c36fd(0x3e2)]+_0x5c36fd(0x4d2)+encodeURIComponent(_0x51549f),_0x11a027=await(await fetch(_0x4dcef2,{'method':_0x5c36fd(0x5d1),'body':_0x193850}))[_0x5c36fd(0x52e)]();if(typeof _0x11a027[_0x5c36fd(0x401)]!='string')return this[_0x5c36fd(0x1e2)](),Promise[_0x5c36fd(0x2f9)](new Error(j[_0x5c36fd(0x387)]['ERROR_IMAGE']));_0x296814=_0x11a027[_0x5c36fd(0x401)];}catch{return this[_0x5c36fd(0x1e2)](),Promise[_0x5c36fd(0x2f9)](new Error(j[_0x5c36fd(0x387)][_0x5c36fd(0x276)]));}return new Promise((_0x1573bf,_0x7bd5c9)=>{const _0x4b9df4=_0x5c36fd,_0x1cd1f5=new FileReader();_0x1cd1f5[_0x4b9df4(0x213)](_0x391e90),_0x1cd1f5[_0x4b9df4(0x352)]=_0x367d98=>{const _0x4d9895=_0x4b9df4;var _0x5bfc5f;const _0x4e6c6c=(_0x5bfc5f=_0x367d98[_0x4d9895(0x3f2)])==null?void 0x0:_0x5bfc5f[_0x4d9895(0x46e)];if(_0x4e6c6c==null){this[_0x4d9895(0x1e2)](),_0x7bd5c9(new Error(j[_0x4d9895(0x387)][_0x4d9895(0x276)]));return;}const _0x5b95d6=a['Tools'][_0x4d9895(0x3eb)](0x6);_0x1573bf({'imageId':_0x5b95d6,'imageSourceType':j[_0x4d9895(0x3ad)][_0x4d9895(0x3a7)],'source':_0x296814,'base64Cache':_0x4e6c6c,'status':j[_0x4d9895(0x387)][_0x4d9895(0x272)]}),this[_0x4d9895(0x1e2)]();};});}[_0x265f71(0x5fb)](){const _0x4b0337=_0x265f71;var _0x3bc4ec,_0x54f022;const _0x1ac628=this[_0x4b0337(0x26f)]['getConfig'](fn),_0x4c0721=this[_0x4b0337(0x26f)]['getConfig'](L);return(_0x54f022=(_0x3bc4ec=_0x4c0721==null?void 0x0:_0x4c0721['uploadFileServerUrl'])!=null?_0x3bc4ec:_0x1ac628)!=null?_0x54f022:mn;}[_0x265f71(0x215)](){const _0x2ff6a2=_0x265f71;var _0x325c9f,_0x45429c;const _0x1c3bde=this[_0x2ff6a2(0x26f)]['getConfig'](In),_0x5aac93=this['_configService'][_0x2ff6a2(0x572)](L);return(_0x45429c=(_0x325c9f=_0x5aac93==null?void 0x0:_0x5aac93[_0x2ff6a2(0x5f2)])!=null?_0x325c9f:_0x1c3bde)!=null?_0x45429c:pn;}[_0x265f71(0x22d)](){const _0x1270d0=_0x265f71;var _0x59ca73;const _0x5db610=this[_0x1270d0(0x26f)][_0x1270d0(0x572)](L);return(_0x59ca73=_0x5db610==null?void 0x0:_0x5db610[_0x1270d0(0x462)])!=null?_0x59ca73:location[_0x1270d0(0x2bd)];}[_0x265f71(0x36c)](_0x9791bf,_0x55015b){const _0x235527=_0x265f71;return _0x9791bf[_0x235527(0x312)](_0x235527(0x4ac),_0x55015b);}['_decreaseWaiting'](){const _0xf960ae=_0x265f71;this['_waitCount']-=0x1,this['_change$'][_0xf960ae(0x53f)](this[_0xf960ae(0x592)]);}},exports[_0x265f71(0x26a)]=Sn([xe(0x0,a[_0x265f71(0x599)](N['HTTPService'])),xe(0x1,a[_0x265f71(0x230)]),xe(0x2,a['Inject'](a[_0x265f71(0x5ad)]))],exports[_0x265f71(0x26a)]);var Cn=Object[_0x265f71(0x39e)],En=Object['getOwnPropertyDescriptor'],bn=(_0x251fd1,_0xd9824d,_0x5230f7,_0x58824b)=>{const _0xe7ed58=_0x265f71;for(var _0x32d520=_0x58824b>0x1?void 0x0:_0x58824b?En(_0xd9824d,_0x5230f7):_0xd9824d,_0xad2041=_0x251fd1[_0xe7ed58(0x2ce)]-0x1,_0x579f5c;_0xad2041>=0x0;_0xad2041--)(_0x579f5c=_0x251fd1[_0xad2041])&&(_0x32d520=(_0x58824b?_0x579f5c(_0xd9824d,_0x5230f7,_0x32d520):_0x579f5c(_0x32d520))||_0x32d520);return _0x58824b&&_0x32d520&&Cn(_0xd9824d,_0x5230f7,_0x32d520),_0x32d520;},_e=(_0x53674b,_0x2f7d39)=>(_0x487e4e,_0x1ecee2)=>_0x2f7d39(_0x487e4e,_0x1ecee2,_0x53674b);let Te=class extends a[_0x265f71(0x459)]{constructor(_0x395c08,_0x140083,_0x39e58c,_0x117fdd,_0x4c5bf0){const _0x306ff1=_0x265f71;super(),this[_0x306ff1(0x555)]=_0x395c08,this[_0x306ff1(0x4c5)]=_0x140083,this[_0x306ff1(0x449)]=_0x39e58c,this['_collaborationSessionService']=_0x117fdd,this[_0x306ff1(0x315)]=_0x4c5bf0,this[_0x306ff1(0x4c9)](),this[_0x306ff1(0x28d)]();}['_initCloseConn'](){const _0x27ffd1=_0x265f71,_0x496c90=async _0x17096e=>{const _0x561b46=_0x5b21;(await this[_0x561b46(0x448)]['requireSession'](_0x17096e))[_0x561b46(0x59e)]['pipe'](E['filter'](_0x5f205f=>_0x5f205f[_0x561b46(0x32e)]===_[_0x561b46(0x4d9)]['SHOULD_CLOSE_CONN']),E[_0x561b46(0x321)](this['dispose$']))[_0x561b46(0x1d2)](_0x172190=>{const _0x3b548b=_0x561b46,_0x1823a5=_0x172190,{reason:_0x18deb1}=_0x1823a5[_0x3b548b(0x485)];this[_0x3b548b(0x555)]['get'](A[_0x3b548b(0x4b2)])[_0x3b548b(0x508)]({'type':X[_0x3b548b(0x28b)][_0x3b548b(0x22a)],'content':this[_0x3b548b(0x315)]['t']('collaboration.closeRoom')+'('+_0x18deb1+')'}),this['_permissionService']['updatePermissionPoint'](new C['WorkbookEditablePermission'](_0x17096e)['id'],!0x1),this[_0x3b548b(0x448)][_0x3b548b(0x3ac)](_0x17096e);});};v[_0x27ffd1(0x4cf)](this[_0x27ffd1(0x4c5)][_0x27ffd1(0x21d)](a[_0x27ffd1(0x1f4)][_0x27ffd1(0x527)]),this['_univerInstanceService'][_0x27ffd1(0x21d)](a[_0x27ffd1(0x1f4)][_0x27ffd1(0x2d2)]))['pipe'](E[_0x27ffd1(0x5e5)](_0xcb0bcf=>_0xcb0bcf[_0x27ffd1(0x4fa)]()),E[_0x27ffd1(0x3a9)](_0x323635=>!a['isInternalEditorID'](_0x323635)),E[_0x27ffd1(0x321)](this[_0x27ffd1(0x3e4)]))[_0x27ffd1(0x1d2)](_0x56928f=>{_0x496c90(_0x56928f);});}[_0x265f71(0x4c9)](){const _0x397b30=_0x265f71,_0x56117e=async _0x40224a=>{const _0x4beab8=_0x5b21;(await this[_0x4beab8(0x448)][_0x4beab8(0x430)](_0x40224a))['event$'][_0x4beab8(0x337)](E[_0x4beab8(0x3a9)](_0x3e2d82=>_0x3e2d82[_0x4beab8(0x32e)]===_[_0x4beab8(0x4d9)][_0x4beab8(0x2e6)]),E[_0x4beab8(0x321)](this[_0x4beab8(0x3e4)]))[_0x4beab8(0x1d2)](_0x4090f6=>{const _0x13ef73=_0x4beab8,_0x50b90d=_0x4090f6,{objectId:_0x5c6382}=_0x50b90d[_0x13ef73(0x485)],_0x4ba271=this[_0x13ef73(0x555)]['get'](te[_0x13ef73(0x252)]);_0x5c6382===_0x40224a?_0x4ba271['initWorkbookPermissionChange'](_0x40224a):_0x4ba271[_0x13ef73(0x51b)](_0x40224a,_0x5c6382);});};v['merge'](this[_0x397b30(0x4c5)][_0x397b30(0x21d)](a[_0x397b30(0x1f4)][_0x397b30(0x527)]),this[_0x397b30(0x4c5)]['getTypeOfUnitAdded$'](a[_0x397b30(0x1f4)]['UNIVER_DOC']))['pipe'](E['map'](_0x31722f=>_0x31722f[_0x397b30(0x4fa)]()),E[_0x397b30(0x3a9)](_0x5ac1fd=>!a[_0x397b30(0x1e7)](_0x5ac1fd)),E[_0x397b30(0x321)](this[_0x397b30(0x3e4)]))['subscribe'](_0x38fc87=>{_0x56117e(_0x38fc87);});}};Te=bn([_e(0x0,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),_e(0x1,a[_0x265f71(0x5ad)]),_e(0x2,a['IPermissionService']),_e(0x3,a[_0x265f71(0x599)](exports['CollaborationSessionService'])),_e(0x4,a['Inject'](a[_0x265f71(0x42a)]))],Te);var Tn=Object[_0x265f71(0x39e)],Rn=Object[_0x265f71(0x307)],On=(_0x509355,_0x166a34,_0x1f00d8,_0x57c336)=>{const _0x1bb4ac=_0x265f71;for(var _0x363370=_0x57c336>0x1?void 0x0:_0x57c336?Rn(_0x166a34,_0x1f00d8):_0x166a34,_0x459d6e=_0x509355[_0x1bb4ac(0x2ce)]-0x1,_0x37fabe;_0x459d6e>=0x0;_0x459d6e--)(_0x37fabe=_0x509355[_0x459d6e])&&(_0x363370=(_0x57c336?_0x37fabe(_0x166a34,_0x1f00d8,_0x363370):_0x37fabe(_0x363370))||_0x363370);return _0x57c336&&_0x363370&&Tn(_0x166a34,_0x1f00d8,_0x363370),_0x363370;},dt=(_0x2ada0f,_0x314f1b)=>(_0xa652e9,_0x1a0b8e)=>_0x314f1b(_0xa652e9,_0x1a0b8e,_0x2ada0f);exports['SnapshotServerOverHTTPService']=class{constructor(_0x35b86c,_0x5a8e60){const _0x56d344=_0x265f71;this[_0x56d344(0x26f)]=_0x35b86c,this[_0x56d344(0x3c7)]=_0x5a8e60;}async[_0x265f71(0x1e8)](_0x15e948,_0x10db91){const _0x56e0d0=_0x265f71;var _0x26e9bf;const {unitID:_0x1603b8,type:_0x370173,revision:_0x3d4935=0x0}=_0x10db91,_0x1e95ae=this[_0x56e0d0(0x36e)]()+'/'+_0x370173+_0x56e0d0(0x1f1)+_0x1603b8+_0x56e0d0(0x4ce)+_0x3d4935,_0x2b4d41=(await this[_0x56e0d0(0x3c7)][_0x56e0d0(0x224)](_0x1e95ae))[_0x56e0d0(0x43b)],_0x21dd09=(_0x26e9bf=_0x2b4d41[_0x56e0d0(0x5e3)])==null?void 0x0:_0x26e9bf[_0x56e0d0(0x365)];if(_0x21dd09){const _0x167c2d=_0x21dd09==null?void 0x0:_0x21dd09[_0x56e0d0(0x58f)],_0x182939=_[_0x56e0d0(0x32d)][_0x56e0d0(0x5b3)](_[_0x56e0d0(0x2b7)](_0x167c2d));_0x21dd09[_0x56e0d0(0x58f)]=_0x182939,Object[_0x56e0d0(0x445)](_0x21dd09[_0x56e0d0(0x200)])['forEach'](([,_0x137774])=>{const _0x556088=_0x56e0d0,_0x5f4fed=_0x137774['originalMeta'],_0x1930d0=_[_0x556088(0x32d)][_0x556088(0x5b3)](_['b64DecodeUnicode'](_0x5f4fed));_0x137774[_0x556088(0x58f)]=_0x1930d0;});}return _0x2b4d41;}async[_0x265f71(0x5b5)](_0x12fd99,_0xa49801){const _0x191513=_0x265f71,{unitID:_0x3f3b74,type:_0x103278,blockID:_0x4f2119}=_0xa49801,_0x5a0d36=this[_0x191513(0x269)]()+'/'+_0x103278+_0x191513(0x1f1)+_0x3f3b74+'/block/'+_0x4f2119;return(await this[_0x191513(0x3c7)][_0x191513(0x224)](_0x5a0d36))[_0x191513(0x43b)];}async[_0x265f71(0x355)](_0x2f5a3e,_0x13dbcf){const _0x52ce53=_0x265f71,{unitID:_0x5bb277,type:_0x10d53c,blockID:_0x387be5}=_0x13dbcf,_0x1b4c8f=this['_getAPIPrefix']()+_0x52ce53(0x278)+_0x10d53c+'/unit/'+_0x5bb277+'/block/'+_0x387be5;return(await this[_0x52ce53(0x3c7)]['get'](_0x1b4c8f))[_0x52ce53(0x43b)];}async[_0x265f71(0x30a)](_0x48d7c8,_0x48ebf1){const _0x1a09d1=_0x265f71,{unitID:_0x206377,type:_0x57beec,from:_0x556579,to:_0x13303c}=_0x48ebf1,_0xf357f0=this[_0x1a09d1(0x269)]()+'/'+_0x57beec+_0x1a09d1(0x1f1)+_0x206377+'/fetchmissing?from='+_0x556579+_0x1a09d1(0x563)+_0x13303c;return(await this[_0x1a09d1(0x3c7)][_0x1a09d1(0x224)](_0xf357f0))[_0x1a09d1(0x43b)];}[_0x265f71(0x36e)](){const _0x56aaea=_0x265f71;var _0x312270;return(_0x312270=this['_configService'][_0x56aaea(0x572)](vt))!=null?_0x312270:this[_0x56aaea(0x269)]();}[_0x265f71(0x269)](){const _0x1830a5=_0x265f71;var _0x3e104c,_0x2ea24c;const _0x4ba482=this['_configService'][_0x1830a5(0x572)](St),_0x5e5249=this['_configService'][_0x1830a5(0x572)](L);return(_0x2ea24c=(_0x3e104c=_0x5e5249==null?void 0x0:_0x5e5249[_0x1830a5(0x383)])!=null?_0x3e104c:_0x4ba482)!=null?_0x2ea24c:qt;}async[_0x265f71(0x4f4)](_0x3b6bc9,_0x4ade16){const _0x2ad8c3=_0x265f71,_0x1d12ef=_0x2ad8c3(0x37d)+_0x4ade16['type']+_0x2ad8c3(0x1f1)+_0x4ade16['unitID']+_0x2ad8c3(0x24c);return(await this[_0x2ad8c3(0x3c7)][_0x2ad8c3(0x224)](_0x1d12ef,{'params':{'resourceId':JSON[_0x2ad8c3(0x4d4)](_0x4ade16[_0x2ad8c3(0x2b8)])}}))['body'];}[_0x265f71(0x44a)](){const _0x86133=_0x265f71;throw new Error(_0x86133(0x33f));}[_0x265f71(0x2a9)](){const _0x2888b8=_0x265f71;throw new Error(_0x2888b8(0x33f));}['saveChangeset'](){const _0x1d5f09=_0x265f71;throw new Error(_0x1d5f09(0x33f));}[_0x265f71(0x441)](){const _0x3c0a2b=_0x265f71;throw new Error(_0x3c0a2b(0x33f));}[_0x265f71(0x2f6)](){const _0x7ee9dc=_0x265f71;throw new Error(_0x7ee9dc(0x33f));}},exports[_0x265f71(0x38c)]=On([dt(0x0,a[_0x265f71(0x230)]),dt(0x1,a['Inject'](N[_0x265f71(0x56a)]))],exports[_0x265f71(0x38c)]);var Dn=Object[_0x265f71(0x39e)],yn=Object['getOwnPropertyDescriptor'],Un=(_0x57c389,_0x4ed1ff,_0x3b0b02,_0x518b1a)=>{const _0x140368=_0x265f71;for(var _0x13eb41=_0x518b1a>0x1?void 0x0:_0x518b1a?yn(_0x4ed1ff,_0x3b0b02):_0x4ed1ff,_0x10605d=_0x57c389[_0x140368(0x2ce)]-0x1,_0x19e835;_0x10605d>=0x0;_0x10605d--)(_0x19e835=_0x57c389[_0x10605d])&&(_0x13eb41=(_0x518b1a?_0x19e835(_0x4ed1ff,_0x3b0b02,_0x13eb41):_0x19e835(_0x13eb41))||_0x13eb41);return _0x518b1a&&_0x13eb41&&Dn(_0x4ed1ff,_0x3b0b02,_0x13eb41),_0x13eb41;},ue=(_0x1f0130,_0x3912d8)=>(_0x49f64e,_0x2355b2)=>_0x3912d8(_0x49f64e,_0x2355b2,_0x1f0130);let Fe=class extends a[_0x265f71(0x5c1)]{constructor(_0x593466,_0x59c4c1,_0x526c33,_0x2caaaf,_0x31af7b){const _0x4a6ef2=_0x265f71;super(_0x593466,_0x59c4c1,_0x526c33),this[_0x4a6ef2(0x21f)]=_0x2caaaf,this[_0x4a6ef2(0x4e4)]=_0x31af7b;}['transformUndoRedo'](_0x478bd0,_0xa42804){const _0x57588a=_0x265f71,_0x133f93=this[_0x57588a(0x2dc)](_0x478bd0);if(_0x133f93)try{const _0x145622=this[_0x57588a(0x42b)](_0x133f93,_0xa42804);this['_substituteUndoStack'](_0x478bd0,_0x145622);}catch(_0x484336){this['_logService'][_0x57588a(0x273)]('[CollaborationUndoRedoService]',_0x484336),this[_0x57588a(0x415)](_0x478bd0);}const _0x14c25b=this[_0x57588a(0x577)](_0x478bd0);if(_0x14c25b)try{const _0x4d6eb4=this['_transformStack'](_0x14c25b,_0xa42804);this[_0x57588a(0x5e2)](_0x478bd0,_0x4d6eb4);}catch(_0x470da7){this['_logService'][_0x57588a(0x273)](_0x470da7),this['_clearRedo'](_0x478bd0);}}['_clearUndo'](_0x166063){const _0x5684a3=_0x265f71,_0x529c79=this[_0x5684a3(0x2dc)](_0x166063);_0x529c79&&(_0x529c79[_0x5684a3(0x2ce)]=0x0,this[_0x5684a3(0x3f7)]());}['_clearRedo'](_0x504d2f){const _0x39ee0c=_0x265f71,_0x2fbde9=this[_0x39ee0c(0x577)](_0x504d2f);_0x2fbde9&&(_0x2fbde9[_0x39ee0c(0x2ce)]=0x0,this[_0x39ee0c(0x3f7)]());}[_0x265f71(0x285)](_0x284485,_0x5a9f6e){const _0x57ecdc=_0x265f71;this['_undoStacks'][_0x57ecdc(0x2c4)](_0x284485,_0x5a9f6e),this[_0x57ecdc(0x3f7)]();}[_0x265f71(0x5e2)](_0x48167f,_0x2f2f85){const _0x108f07=_0x265f71;this[_0x108f07(0x239)][_0x108f07(0x2c4)](_0x48167f,_0x2f2f85),this[_0x108f07(0x3f7)]();}[_0x265f71(0x42b)](_0x5ef91d,_0x39d5d2){const _0x434a89=_0x265f71,_0x5277e3=[];let _0x1c732d=_0x39d5d2,_0x476601=_0x39d5d2;for(let _0x348cdc=_0x5ef91d[_0x434a89(0x2ce)]-0x1;_0x348cdc>=0x0;_0x348cdc--){const {unitID:_0x3be69c,undoMutations:_0x4d4a7e,redoMutations:_0x5a9d93}=_0x5ef91d[_0x348cdc],_0x51f305=this[_0x434a89(0x21f)]['transformMutationsWithChangeset'](_0x1c732d,_0x4d4a7e),_0x127210=this[_0x434a89(0x21f)]['transformMutationsWithChangeset'](_0x476601,_0x5a9d93);if(_[_0x434a89(0x310)](_0x51f305)||_['isTransformMutationsWithChangesetFailure'](_0x127210)){this[_0x434a89(0x4e4)]['error'](_0x434a89(0x576),_0x434a89(0x52c),_0x51f305,_0x127210);break;}_0x1c732d=_0x51f305['c1Prime'],_0x476601=_0x127210[_0x434a89(0x350)],_0x5277e3[_0x434a89(0x48f)]({'unitID':_0x3be69c,'undoMutations':_0x51f305[_0x434a89(0x482)],'redoMutations':_0x127210['m2Prime']});}return _0x5277e3[_0x434a89(0x500)]();}};Fe=Un([ue(0x0,a[_0x265f71(0x5ad)]),ue(0x1,a[_0x265f71(0x596)]),ue(0x2,a['IContextService']),ue(0x3,_['ITransformService']),ue(0x4,a[_0x265f71(0x54c)])],Fe);class $t extends a['RxDisposable']{constructor(){const _0x32f374=_0x265f71;super(),u(this,_0x32f374(0x1ee)),this['urlChange$']=v[_0x32f374(0x56c)](window,_0x32f374(0x281))[_0x32f374(0x337)](v['takeUntil'](this[_0x32f374(0x3e4)]),v[_0x32f374(0x4df)](0x1),v['mapTo'](void 0x0));}[_0x265f71(0x489)](_0x46001f,_0x312cef,_0x70a24f=!0x1){const _0x4fb2fd=_0x265f71,_0xe28db8=new URL(window[_0x4fb2fd(0x465)][_0x4fb2fd(0x1d1)]);_0xe28db8['searchParams']['set'](_0x46001f,_0x312cef),_0x70a24f?window['history'][_0x4fb2fd(0x509)]('','',_0xe28db8[_0x4fb2fd(0x249)]()):window[_0x4fb2fd(0x373)][_0x4fb2fd(0x4f9)]('','',_0xe28db8[_0x4fb2fd(0x249)]());}[_0x265f71(0x43d)](_0x1ba635,_0x48d119=!0x1){const _0x3fbdba=_0x265f71,_0x5a90fd=new URL(window[_0x3fbdba(0x465)][_0x3fbdba(0x1d1)]);_0x5a90fd['searchParams']['delete'](_0x1ba635),_0x48d119?window[_0x3fbdba(0x373)]['replaceState']('','',_0x5a90fd[_0x3fbdba(0x249)]()):window[_0x3fbdba(0x373)]['pushState']('','',_0x5a90fd[_0x3fbdba(0x249)]());}['getParam'](_0x23a842){const _0x38dfad=_0x265f71;var _0x296962;return(_0x296962=new URL(window[_0x38dfad(0x465)][_0x38dfad(0x1d1)])[_0x38dfad(0x5e6)][_0x38dfad(0x224)](_0x23a842))!=null?_0x296962:void 0x0;}}var Ht=Object[_0x265f71(0x39e)],Pn=Object[_0x265f71(0x307)],wn=(_0x44906a,_0x12656a,_0x4392bc)=>_0x12656a in _0x44906a?Ht(_0x44906a,_0x12656a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4392bc}):_0x44906a[_0x12656a]=_0x4392bc,Nn=(_0x511113,_0x17a8ef,_0x3963f4,_0x39b5ff)=>{for(var _0x5d83ed=_0x39b5ff>0x1?void 0x0:_0x39b5ff?Pn(_0x17a8ef,_0x3963f4):_0x17a8ef,_0x58b826=_0x511113['length']-0x1,_0x2497eb;_0x58b826>=0x0;_0x58b826--)(_0x2497eb=_0x511113[_0x58b826])&&(_0x5d83ed=(_0x39b5ff?_0x2497eb(_0x17a8ef,_0x3963f4,_0x5d83ed):_0x2497eb(_0x5d83ed))||_0x5d83ed);return _0x39b5ff&&_0x5d83ed&&Ht(_0x17a8ef,_0x3963f4,_0x5d83ed),_0x5d83ed;},fe=(_0x1504cd,_0x3faffc)=>(_0x5bb465,_0x4d9c31)=>_0x3faffc(_0x5bb465,_0x4d9c31,_0x1504cd),Mn=(_0x1161ce,_0x27943c,_0x43f059)=>wn(_0x1161ce,_0x27943c+'',_0x43f059);const An='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x265f71(0x288)]=class extends a['Plugin']{constructor(_0x2b540b=rs,_0x387572,_0x3b38fd,_0x5db4fc,_0x530a40){const _0x4874cb=_0x265f71;super(),this[_0x4874cb(0x2a7)]=_0x2b540b,this[_0x4874cb(0x4e4)]=_0x387572,this['_renderManagerService']=_0x3b38fd,this[_0x4874cb(0x555)]=_0x5db4fc,this[_0x4874cb(0x26f)]=_0x530a40;const {..._0x3bca61}=this['_config'];this[_0x4874cb(0x26f)]['setConfig'](L,_0x3bca61);}[_0x265f71(0x4db)](){const _0x3b12f2=_0x265f71;this[_0x3b12f2(0x35f)](),a[_0x3b12f2(0x25b)](this[_0x3b12f2(0x555)],[[ne],[exports[_0x3b12f2(0x4ff)]],[Te]]);}[_0x265f71(0x3b5)](){const _0x3f9620=_0x265f71;a[_0x3f9620(0x25b)](this['_injector'],[[Ce]]);}['onRendered'](){const _0x59cb55=_0x265f71;this[_0x59cb55(0x206)]();}[_0x265f71(0x35f)](){const _0x590eff=_0x265f71;var _0x2096d2,_0xb006dd,_0x26dee2,_0xe3c246;this['_injector'][_0x590eff(0x3c3)](a[_0x590eff(0x538)])&&this['_logService']['error'](_0x590eff(0x4f6),_0x590eff(0x580));let _0x5e91bb=[[a[_0x590eff(0x538)],{'useClass':Fe}],[exports[_0x590eff(0x1f2)]],[Je],[Qe,{'useClass':$t}],[q],[exports[_0x590eff(0x573)]],[N['WebSocketService']],[Ie],[pe],[me],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0xb006dd=(_0x2096d2=this[_0x590eff(0x2a7)])==null?void 0x0:_0x2096d2['socketService'])!=null?_0xb006dd:exports[_0x590eff(0x205)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x590eff(0x38c)]}],[a[_0x590eff(0x42d)],{'useClass':exports[_0x590eff(0x41f)]}],[j[_0x590eff(0x5fa)],{'useClass':exports[_0x590eff(0x26a)]}],[exports[_0x590eff(0x208)]],[exports[_0x590eff(0x4ff)]],[exports['DesktopCollaborationStatusDisplayController']],[Ce],[ne]];(_0x26dee2=this['_config'])!=null&&_0x26dee2[_0x590eff(0x595)]&&_0x5e91bb['push']([Re,{'useClass':$s}]),_0x5e91bb=a['mergeOverrideWithDependencies'](_0x5e91bb,(_0xe3c246=this['_config'])==null?void 0x0:_0xe3c246[_0x590eff(0x55a)]),_0x5e91bb[_0x590eff(0x5f9)](_0x10855f=>this[_0x590eff(0x555)]['add'](_0x10855f)),this[_0x590eff(0x289)]();}['_registerRenderDependencies'](){const _0x3127b9=_0x265f71;this['disposeWithMe'](this[_0x3127b9(0x320)][_0x3127b9(0x2b2)](a[_0x3127b9(0x1f4)]['UNIVER_DOC'],[Ve])),this[_0x3127b9(0x256)](this[_0x3127b9(0x320)][_0x3127b9(0x2b2)](a[_0x3127b9(0x1f4)][_0x3127b9(0x527)],[We]));}['_initModules'](){const _0x51abe1=_0x265f71;var _0x5f4cc0,_0x3d7b8b;this[_0x51abe1(0x555)][_0x51abe1(0x224)](N[_0x51abe1(0x56a)])[_0x51abe1(0x228)]({'priority':0x14,'interceptor':N['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x51abe1(0x555)][_0x51abe1(0x224)](be),(_0x5f4cc0=this['_config'])!=null&&_0x5f4cc0['enableOfflineEditing']||this[_0x51abe1(0x555)][_0x51abe1(0x224)](exports[_0x51abe1(0x573)])[_0x51abe1(0x2c8)](),(_0x3d7b8b=this[_0x51abe1(0x2a7)])!=null&&_0x3d7b8b[_0x51abe1(0x521)]&&this[_0x51abe1(0x555)][_0x51abe1(0x224)](Ee),this[_0x51abe1(0x555)]['get'](exports['CollaborationController']),this['_injector'][_0x51abe1(0x3c3)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x51abe1(0x555)][_0x51abe1(0x224)](exports[_0x51abe1(0x319)]);}},Mn(exports[_0x265f71(0x288)],_0x265f71(0x20f),An),exports[_0x265f71(0x288)]=Nn([a[_0x265f71(0x3fa)](_[_0x265f71(0x20d)],N[_0x265f71(0x214)]),fe(0x1,a['ILogService']),fe(0x2,O['IRenderManagerService']),fe(0x3,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),fe(0x4,a[_0x265f71(0x230)])],exports[_0x265f71(0x288)]),exports['AUTHZ_URL_KEY']=jt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=Ct,exports[_0x265f71(0x263)]=gt,exports[_0x265f71(0x5af)]=U,exports[_0x265f71(0x1ed)]=Lt,exports[_0x265f71(0x3bd)]=Xe,exports[_0x265f71(0x591)]=ft,exports[_0x265f71(0x51a)]=Ge,exports[_0x265f71(0x375)]=Ke,exports[_0x265f71(0x590)]=Qe,exports[_0x265f71(0x2a6)]=pt,exports[_0x265f71(0x222)]=Et,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=It,exports[_0x265f71(0x57e)]=zt,exports[_0x265f71(0x2fc)]=St,exports[_0x265f71(0x4ef)]=vt,exports[_0x265f71(0x1ff)]=H,exports[_0x265f71(0x474)]=Pt,exports['WebURLService']=$t,exports[_0x265f71(0x1dd)]=Rt,exports[_0x265f71(0x50c)]=Ot;