@univerjs-pro/collaboration-client 0.3.0-alpha.0 → 0.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xb0c99b=_0x4e0f;(function(_0x4e6fbe,_0x33ad7c){const _0x34e23a=_0x4e0f,_0x3b6f7a=_0x4e6fbe();while(!![]){try{const _0x55a4ea=-parseInt(_0x34e23a(0x3a6))/0x1+-parseInt(_0x34e23a(0x267))/0x2+-parseInt(_0x34e23a(0x45b))/0x3+parseInt(_0x34e23a(0x1da))/0x4+parseInt(_0x34e23a(0x172))/0x5*(-parseInt(_0x34e23a(0x39a))/0x6)+parseInt(_0x34e23a(0x2a3))/0x7+-parseInt(_0x34e23a(0x411))/0x8*(-parseInt(_0x34e23a(0x482))/0x9);if(_0x55a4ea===_0x33ad7c)break;else _0x3b6f7a['push'](_0x3b6f7a['shift']());}catch(_0x457cba){_0x3b6f7a['push'](_0x3b6f7a['shift']());}}}(_0x4d94,0xa4c07));var xt=Object[_0xb0c99b(0x3dd)],kt=(_0x23a151,_0x231d62,_0x79fa55)=>_0x231d62 in _0x23a151?xt(_0x23a151,_0x231d62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x79fa55}):_0x23a151[_0x231d62]=_0x79fa55,d=(_0x5f9ab1,_0x3304c3,_0x4130d0)=>kt(_0x5f9ab1,typeof _0x3304c3!='symbol'?_0x3304c3+'':_0x3304c3,_0x4130d0);Object[_0xb0c99b(0x3dd)](exports,Symbol[_0xb0c99b(0x39e)],{'value':_0xb0c99b(0x182)});const a=require(_0xb0c99b(0x165)),v=require(_0xb0c99b(0x346)),E=require('rxjs/operators'),X=require(_0xb0c99b(0x330)),N=require(_0xb0c99b(0x29f)),P=require(_0xb0c99b(0x34b)),_=require(_0xb0c99b(0x42d)),Bt=require(_0xb0c99b(0x213)),V=require('@univerjs/docs'),w=require(_0xb0c99b(0x413)),C=require('@univerjs/sheets'),R=require(_0xb0c99b(0x314)),A=require(_0xb0c99b(0x220)),Je=require(_0xb0c99b(0x1dc)),te=require(_0xb0c99b(0x1e0)),U=require(_0xb0c99b(0x227)),Vt=require(_0xb0c99b(0x2b5)),Wt=require(_0xb0c99b(0x1be)),Ft=require(_0xb0c99b(0x3d0)),ht=_0xb0c99b(0x40d),Gt=_0xb0c99b(0x1e1),_t=_0xb0c99b(0x23b),Yt=_0xb0c99b(0x16d),Kt=0x7d0,ut=_0xb0c99b(0x4e1),Xt='ws://127.0.0.1:8000/universer-api/comb/connect',dt='HEARTBEAT_INTERVAL',qt=0x7530,Ve=_0xb0c99b(0x2f6),St=0x4e20,zt=0x4e20,vt=_0xb0c99b(0x391),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt='COLLAB_SUBMIT_CHANGESET_URL',Qt=_0xb0c99b(0xf8),mt=_0xb0c99b(0x281),es=_0xb0c99b(0x130);var It=(_0x1ba80d=>(_0x1ba80d[_0x1ba80d[_0xb0c99b(0x3fc)]=0x0]=_0xb0c99b(0x3fc),_0x1ba80d[_0x1ba80d['OK']=0x1]='OK',_0x1ba80d[_0x1ba80d[_0xb0c99b(0x232)]=0x2]=_0xb0c99b(0x232),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x29a)]=0x3]=_0xb0c99b(0x29a),_0x1ba80d[_0x1ba80d['NOT_FOUND']=0x4]=_0xb0c99b(0x42e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x12e)]=0x5]=_0xb0c99b(0x12e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x384)]=0x6]=_0xb0c99b(0x384),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x409)]=0x7]=_0xb0c99b(0x409),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x30e)]=0x8]=_0xb0c99b(0x30e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x1bc)]=0x9]=_0xb0c99b(0x1bc),_0x1ba80d[_0x1ba80d['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xb0c99b(0x159),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x3a1)]=0x1771]=_0xb0c99b(0x3a1),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x29c)]=0x1772]=_0xb0c99b(0x29c),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x13e)]=0x1b59]=_0xb0c99b(0x13e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x245)]=0x1b5a]=_0xb0c99b(0x245),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x4a9)]=0x1b5b]=_0xb0c99b(0x4a9),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x1a3)]=0x1b5c]=_0xb0c99b(0x1a3),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x27c)]=0x1f41]=_0xb0c99b(0x27c),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x171)]=0x2329]=_0xb0c99b(0x171),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x211)]=0x232a]=_0xb0c99b(0x211),_0x1ba80d[_0x1ba80d['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xb0c99b(0x4e8),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x11b)]=0x232c]=_0xb0c99b(0x11b),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x326)]=0x232d]=_0xb0c99b(0x326),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x155)]=0x2711]=_0xb0c99b(0x155),_0x1ba80d[_0x1ba80d['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1ba80d[_0x1ba80d['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1ba80d[_0x1ba80d[_0xb0c99b(0x271)]=0x2714]=_0xb0c99b(0x271),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x2cf)]=-0x1]=_0xb0c99b(0x2cf),_0x1ba80d))(It||{}),$=(_0x1c7852=>(_0x1c7852[_0x1c7852[_0xb0c99b(0x218)]=0x0]=_0xb0c99b(0x218),_0x1c7852[_0x1c7852[_0xb0c99b(0x254)]=0x1]=_0xb0c99b(0x254),_0x1c7852[_0x1c7852[_0xb0c99b(0x3e6)]=0x2]='UNIVER_SHEET',_0x1c7852[_0x1c7852[_0xb0c99b(0x170)]=0x3]=_0xb0c99b(0x170),_0x1c7852[_0x1c7852[_0xb0c99b(0x34a)]=0x4]=_0xb0c99b(0x34a),_0x1c7852[_0x1c7852[_0xb0c99b(0x2cf)]=-0x1]=_0xb0c99b(0x2cf),_0x1c7852))($||{}),b=(_0x4bff63=>(_0x4bff63[_0x4bff63['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x4bff63[_0x4bff63[_0xb0c99b(0x2db)]=0x1]=_0xb0c99b(0x2db),_0x4bff63[_0x4bff63[_0xb0c99b(0x1ae)]=0x2]=_0xb0c99b(0x1ae),_0x4bff63[_0x4bff63[_0xb0c99b(0x33c)]=0x3]=_0xb0c99b(0x33c),_0x4bff63[_0x4bff63[_0xb0c99b(0x46b)]=0x4]=_0xb0c99b(0x46b),_0x4bff63[_0x4bff63['HEARTBEAT']=0x5]='HEARTBEAT',_0x4bff63[_0x4bff63[_0xb0c99b(0x2a8)]=0x6]=_0xb0c99b(0x2a8),_0x4bff63[_0x4bff63[_0xb0c99b(0x2cf)]=-0x1]='UNRECOGNIZED',_0x4bff63))(b||{}),We=(_0x5f0ee7=>(_0x5f0ee7[_0x5f0ee7[_0xb0c99b(0x39b)]=0x0]='UNKNOWN_CODE',_0x5f0ee7[_0x5f0ee7['OK']=0x1]='OK',_0x5f0ee7[_0x5f0ee7[_0xb0c99b(0x4c2)]=0x2]=_0xb0c99b(0x4c2),_0x5f0ee7[_0x5f0ee7['UNRECOGNIZED']=-0x1]=_0xb0c99b(0x2cf),_0x5f0ee7))(We||{}),pt=(_0x86540c=>(_0x86540c[_0x86540c[_0xb0c99b(0x26a)]=0x0]=_0xb0c99b(0x26a),_0x86540c[_0x86540c[_0xb0c99b(0x11f)]=0x1]=_0xb0c99b(0x11f),_0x86540c[_0x86540c['HttpExport']=0x2]=_0xb0c99b(0x118),_0x86540c[_0x86540c[_0xb0c99b(0x394)]=0x3]='UnitEmbedded',_0x86540c[_0x86540c[_0xb0c99b(0x398)]=0x4]=_0xb0c99b(0x398),_0x86540c[_0x86540c['UNRECOGNIZED']=-0x1]=_0xb0c99b(0x2cf),_0x86540c))(pt||{});const L=_0xb0c99b(0x192),ts={};function Ct(_0x3c7a85){const _0x279446=_0xb0c99b;var _0x3dbd20,_0x5e8b8f,_0x17c0b5,_0x38e05e;const _0x4ca1cd=_0x3c7a85[_0x279446(0x494)],_0x1fb073=JSON[_0x279446(0x435)](_0x4ca1cd);switch(_0x1fb073[_0x279446(0xf2)]){case b['HEARTBEAT']:case b[_0x279446(0x2db)]:{const _0x450c8e=_0x1fb073[_0x279446(0x333)];return{..._0x1fb073,'data':_0x450c8e,'cmd':_0x1fb073[_0x279446(0xf2)]};}case b[_0x279446(0x1ae)]:{const _0x421ae2=_0x1fb073['joinRsp'];return{..._0x1fb073,'data':_0x421ae2,'cmd':_0x1fb073[_0x279446(0xf2)]};}case b['RECV']:{const _0x3a6d6c=_0x1fb073[_0x279446(0x1b2)];switch(_0x3a6d6c[_0x279446(0x1bd)]){case _[_0x279446(0x153)][_0x279446(0xf6)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x3dbd20=_0x3a6d6c[_0x279446(0x1d2)])==null?void 0x0:_0x3dbd20['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _['CollaborationEvent']['CHANGESET_ACK']:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x5e8b8f=_0x3a6d6c[_0x279446(0x403)])==null?void 0x0:_0x5e8b8f['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x291)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x17c0b5=_0x3a6d6c[_0x279446(0x3fa)])==null?void 0x0:_0x17c0b5['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x3fe)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x38e05e=_0x3a6d6c[_0x279446(0x3b4)])==null?void 0x0:_0x38e05e['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x2c7)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['updateCursorEvent']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x25b)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0xf4)]},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x1cc)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['leaveEvent']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x197)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x38f)]},'cmd':_0x1fb073['cmd']};case _[_0x279446(0x153)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x279446(0x153)][_0x279446(0x189)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['liveShareOperation']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x1df)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x38f)]},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x174)]:return{..._0x1fb073,'data':_0x3a6d6c,'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)]['COMMENT_UPDATE']:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x2d4)]},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)]['UPDATE_PERMISSION_OBJ']:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['updatePermissionObjEvent']},'cmd':_0x1fb073['cmd']};case _[_0x279446(0x153)][_0x279446(0x430)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x35d)]},'cmd':_0x1fb073[_0x279446(0xf2)]};default:return _0x1fb073;}}default:return _0x1fb073;}}function Et(_0x41da6b){const _0x322fe3=_0xb0c99b;switch(_0x41da6b[_0x322fe3(0xf2)]){case b['HEARTBEAT']:case b[_0x322fe3(0x2db)]:return JSON['stringify']({'cmd':_0x41da6b['cmd'],'routeKey':_0x41da6b['routeKey']});case b['INGEST']:{let _0x3be880;switch(_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x1bd)]){case _[_0x322fe3(0x153)][_0x322fe3(0x2c7)]:{_0x3be880={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x1cc)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x1cc)],'leaveEvent':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x25b)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x25b)],'joinEvent':_0x41da6b['data'][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x197)]:{_0x3be880={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x189)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x41da6b['data'][_0x322fe3(0x494)]};break;}case _['CollaborationEvent'][_0x322fe3(0x1df)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x1df)],'liveShareTerminate':_0x41da6b[_0x322fe3(0x494)]['data']};break;}case _['CollaborationEvent'][_0x322fe3(0x3c2)]:{_0x3be880={'eventID':_['CollaborationEvent'][_0x322fe3(0x3c2)],'liveShareRequestHost':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)]['LIVESHARE_FETCH_OPERATIONS']:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x444)]};break;}default:_0x3be880={'eventID':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x1bd)]};}return JSON[_0x322fe3(0x36d)]({'cmd':_0x41da6b['cmd'],'routeKey':_0x41da6b['routeKey'],'collaMsg':_0x3be880});}case b[_0x322fe3(0x1ae)]:return JSON[_0x322fe3(0x36d)]({'cmd':_0x41da6b[_0x322fe3(0xf2)],'routeKey':_0x41da6b[_0x322fe3(0x28d)],'joinReq':_0x41da6b[_0x322fe3(0x494)]});case b[_0x322fe3(0x33c)]:return JSON['stringify']({'cmd':_0x41da6b[_0x322fe3(0xf2)],'routeKey':_0x41da6b[_0x322fe3(0x28d)],'leaveReq':_0x41da6b[_0x322fe3(0x494)]});default:throw new Error(_0x322fe3(0x2fb));}}var ss=Object[_0xb0c99b(0x3dd)],is=Object['getOwnPropertyDescriptor'],ns=(_0x53b0f6,_0x4293f9,_0x2f447c,_0x58715e)=>{for(var _0xd6474b=_0x58715e>0x1?void 0x0:_0x58715e?is(_0x4293f9,_0x2f447c):_0x4293f9,_0x15e975=_0x53b0f6['length']-0x1,_0x3b63cf;_0x15e975>=0x0;_0x15e975--)(_0x3b63cf=_0x53b0f6[_0x15e975])&&(_0xd6474b=(_0x58715e?_0x3b63cf(_0x4293f9,_0x2f447c,_0xd6474b):_0x3b63cf(_0xd6474b))||_0xd6474b);return _0x58715e&&_0xd6474b&&ss(_0x4293f9,_0x2f447c,_0xd6474b),_0xd6474b;},oe=(_0x2f451e,_0x3f5780)=>(_0x490f59,_0x16e005)=>_0x3f5780(_0x490f59,_0x16e005,_0x2f451e);const Fe=a['createIdentifier'](_0xb0c99b(0x20d));function rs(_0x27207a,_0x3caf43,_0x2af2fb){const _0x5c5d9b=_0xb0c99b;return _0x27207a+'/'+_0x3caf43+'/unit/'+_0x2af2fb+_0x5c5d9b(0x3cc);}exports['CollaborationSocketService']=class extends a[_0xb0c99b(0x463)]{constructor(_0x3ed9fc,_0x34be7f,_0x3933ce,_0x29b06f,_0x536530){const _0x6c3f9c=_0xb0c99b;super(),this['_http']=_0x3ed9fc,this['_ws']=_0x34be7f,this[_0x6c3f9c(0x3ec)]=_0x3933ce,this['_logService']=_0x29b06f,this[_0x6c3f9c(0x1c1)]=_0x536530;}[_0xb0c99b(0x324)](_0x143896){const _0x5a9d68=_0xb0c99b,_0x2d9bcb=this['_ws'][_0x5a9d68(0x324)](_0x143896);if(!_0x2d9bcb)throw new Error(_0x5a9d68(0x3f1));const _0x5ef885=new a[(_0x5a9d68(0x283))](),_0x449ea4=new v[(_0x5a9d68(0x349))]();_0x5ef885[_0x5a9d68(0x143)](_0x2d9bcb[_0x5a9d68(0x38a)][_0x5a9d68(0x33b)](_0x399f95=>_0x449ea4[_0x5a9d68(0x3c7)](_0x399f95))),_0x5ef885[_0x5a9d68(0x143)](a[_0x5a9d68(0x2ef)](()=>_0x449ea4[_0x5a9d68(0x484)]()));const _0x1dec8a=new v[(_0x5a9d68(0x349))]();_0x5ef885[_0x5a9d68(0x143)](_0x2d9bcb[_0x5a9d68(0x385)][_0x5a9d68(0x33b)](_0xdaa254=>_0x1dec8a[_0x5a9d68(0x3c7)](_0xdaa254))),_0x5ef885[_0x5a9d68(0x143)](a['toDisposable'](()=>_0x1dec8a[_0x5a9d68(0x484)]()));const _0x38987b=new v[(_0x5a9d68(0x349))]();_0x5ef885[_0x5a9d68(0x143)](_0x2d9bcb[_0x5a9d68(0xfb)][_0x5a9d68(0x33b)](_0x428859=>{const _0x179550=Ct(_0x428859);_0x38987b['next'](_0x179550);})),_0x5ef885[_0x5a9d68(0x143)](a['toDisposable'](()=>_0x38987b[_0x5a9d68(0x484)]()));let _0x4a7d55;const _0xb2c681=()=>{const _0x30447e=_0x5a9d68;_0x1dec8a[_0x30447e(0x3c7)](new Event(_0x30447e(0x19e))),_0x449ea4[_0x30447e(0x3c7)](new CloseEvent(_0x30447e(0x19e))),_0x4a7d55['close']();};return _0x4a7d55={'memberID':'','close$':_0x449ea4['asObservable'](),'error$':_0x1dec8a[_0x5a9d68(0x3af)](),'open$':_0x2d9bcb[_0x5a9d68(0x407)],'message$':_0x38987b[_0x5a9d68(0x3af)](),'send':_0x10e380=>{const _0x5e804b=_0x5a9d68;if(_0x10e380[_0x5e804b(0xf2)]===b[_0x5e804b(0x46b)]){if(_0x10e380[_0x5e804b(0x494)][_0x5e804b(0x1bd)]===_[_0x5e804b(0x153)]['SUBMIT_CHANGESET']){this[_0x5e804b(0x4c9)](_0x4a7d55,_0x10e380[_0x5e804b(0x494)])['catch'](_0x25cae6=>{this['_logService']['error'](_0x25cae6),_0xb2c681();});return;}if(_0x10e380['data']['eventID']===_['CollaborationEvent']['FETCH_MISSING']){const _0x3d36b1=_0x10e380['data'];this[_0x5e804b(0x284)](_0x3d36b1)[_0x5e804b(0x20e)](_0x18e2ab=>{const _0x44dce7=_0x5e804b;_0x38987b['next']({'cmd':b['RECV'],'code':We['OK'],'routeKey':_0x3d36b1[_0x44dce7(0x494)][_0x44dce7(0x4c3)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x44dce7(0x30a)],'data':{'changesets':_0x18e2ab}}});})[_0x5e804b(0x2be)](_0x31f328=>{const _0x5f0c6e=_0x5e804b;this['_logService'][_0x5f0c6e(0x4d1)](_0x31f328),_0xb2c681();});return;}}_0x2d9bcb[_0x5e804b(0x3c3)](Et(_0x10e380));},'close':()=>{const _0x36773a=_0x5a9d68;_0x2d9bcb[_0x36773a(0x1ea)](),_0x5ef885['dispose']();}},_0x4a7d55;}async[_0xb0c99b(0x4c9)](_0x4ea2b4,_0x454660){const _0x5c40cb=_0xb0c99b;var _0x56cbe1,_0x2bc4ae;const {unitType:_0x13d0d6,unitID:_0x407143,changeset:_0x1a91ca}=_0x454660['data'],_0x5a957a={'unitID':_0x407143,'memberID':_0x4ea2b4[_0x5c40cb(0x37a)],'type':_0x13d0d6,'changeset':_[_0x5c40cb(0x3db)](_0x1a91ca)},_0x132a07=this['_configService'][_0x5c40cb(0x2aa)](gt),_0x232fb5=this['_configService'][_0x5c40cb(0x2aa)](L),_0x4f68bb=rs((_0x2bc4ae=(_0x56cbe1=_0x232fb5==null?void 0x0:_0x232fb5[_0x5c40cb(0x3a5)])!=null?_0x56cbe1:_0x132a07)!=null?_0x2bc4ae:Qt,_0x13d0d6,_0x407143);try{await this[_0x5c40cb(0x337)][_0x5c40cb(0x3e7)](_0x4f68bb,{'body':_0x5a957a});}catch(_0x3c2913){throw this[_0x5c40cb(0x3cd)][_0x5c40cb(0x4d1)](_0x5c40cb(0x48d),_0x5c40cb(0x3d7)),_0x3c2913;}}async[_0xb0c99b(0x284)](_0x5b91bd){const _0x363afc=_0xb0c99b,{unitID:_0x2d6f4f,from:_0x42b66f,to:_0x33d1e2,unitType:_0x15910c}=_0x5b91bd[_0x363afc(0x494)];return(await this[_0x363afc(0x1c1)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x2d6f4f,'type':_0x15910c,'from':_0x42b66f,'to':_0x33d1e2}))['changesets'];}},exports[_0xb0c99b(0x18a)]=ns([oe(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)])),oe(0x1,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x300)])),oe(0x2,a[_0xb0c99b(0x195)]),oe(0x3,a[_0xb0c99b(0x2b2)]),oe(0x4,_[_0xb0c99b(0x1ee)])],exports[_0xb0c99b(0x18a)]);const os=_0xb0c99b(0x2a5);function as(_0x56498d){const _0x2f3119=_0xb0c99b;return JSON[_0x2f3119(0x36d)](_0x56498d)[_0x2f3119(0x23c)];}class Ge{constructor(){const _0x2d2eaf=_0xb0c99b;d(this,_0x2d2eaf(0x371),new v[(_0x2d2eaf(0x349))]()),d(this,_0x2d2eaf(0x1a5),this[_0x2d2eaf(0x371)]['asObservable']());}['onCommentUpdate'](_0x23b978){const _0x5c5049=_0xb0c99b;this[_0x5c5049(0x371)][_0x5c5049(0x3c7)](_0x23b978);}}var cs=Object['defineProperty'],ls=Object[_0xb0c99b(0x18e)],hs=(_0x171750,_0x30bbd2,_0x352989,_0x2a4cc3)=>{for(var _0x3af6e3=_0x2a4cc3>0x1?void 0x0:_0x2a4cc3?ls(_0x30bbd2,_0x352989):_0x30bbd2,_0x2004d4=_0x171750['length']-0x1,_0x1e7f08;_0x2004d4>=0x0;_0x2004d4--)(_0x1e7f08=_0x171750[_0x2004d4])&&(_0x3af6e3=(_0x2a4cc3?_0x1e7f08(_0x30bbd2,_0x352989,_0x3af6e3):_0x1e7f08(_0x3af6e3))||_0x3af6e3);return _0x2a4cc3&&_0x3af6e3&&cs(_0x30bbd2,_0x352989,_0x3af6e3),_0x3af6e3;},Ze=(_0x32cf69,_0x35657d)=>(_0x5672a5,_0x461b4b)=>_0x35657d(_0x5672a5,_0x461b4b,_0x32cf69);let q=class extends a[_0xb0c99b(0x463)]{constructor(_0x2dab2a,_0x2ccf72){const _0x37fd6e=_0xb0c99b;super(),d(this,_0x37fd6e(0x479),new Map()),(this[_0x37fd6e(0x3fb)]=_0x2dab2a,this['_userManagerService']=_0x2ccf72,this[_0x37fd6e(0x3d3)](a[_0x37fd6e(0x2ef)](v[_0x37fd6e(0x387)](this['_univerInstanceService'][_0x37fd6e(0x1a4)](a[_0x37fd6e(0x111)][_0x37fd6e(0x3e6)])[_0x37fd6e(0x3a7)](E[_0x37fd6e(0x1af)](_0x55b2e5=>_0x55b2e5[_0x37fd6e(0x4dd)]())),this[_0x37fd6e(0x3fb)][_0x37fd6e(0x1a4)](a[_0x37fd6e(0x111)]['UNIVER_DOC'])[_0x37fd6e(0x3a7)](E[_0x37fd6e(0x1af)](_0x4c1ea0=>_0x4c1ea0[_0x37fd6e(0x4dd)]())),this[_0x37fd6e(0x3fb)][_0x37fd6e(0x1a4)](a[_0x37fd6e(0x111)][_0x37fd6e(0x170)])['pipe'](E[_0x37fd6e(0x1af)](_0x4565a8=>_0x4565a8[_0x37fd6e(0x4dd)]())))[_0x37fd6e(0x33b)](_0x2a9bbf=>this[_0x37fd6e(0x4f4)](_0x2a9bbf)))));}[_0xb0c99b(0x1b5)](_0x369c4c){const _0x2bff04=_0xb0c99b;this[_0x2bff04(0xfe)]['setCurrentUser'](_0x369c4c);}['getCurrentUser'](){const _0x7f81a3=_0xb0c99b;return this[_0x7f81a3(0xfe)][_0x7f81a3(0x348)]();}[_0xb0c99b(0x117)](_0x178b44,_0x2196ea){const _0x400999=_0xb0c99b;let _0x296ca7=this[_0x400999(0x479)]['get'](_0x178b44);_0x296ca7||(_0x296ca7=new _s(),this[_0x400999(0x479)][_0x400999(0x4d0)](_0x178b44,_0x296ca7)),_0x296ca7[_0x400999(0x117)](_0x2196ea);}['removeMember'](_0x49436a,_0x5179f4){const _0x137742=_0xb0c99b,_0x12533a=this[_0x137742(0x479)][_0x137742(0x1a0)](_0x49436a);_0x12533a&&_0x12533a['removeMember'](_0x5179f4);}['getRoom'](_0x5dc253){const _0x276f24=_0xb0c99b;return this[_0x276f24(0x479)][_0x276f24(0x1a0)](_0x5dc253);}[_0xb0c99b(0x4b8)](_0x4fc2f7,_0x3e284c){const _0x377119=_0xb0c99b,_0x51345d=this[_0x377119(0x479)]['get'](_0x4fc2f7);if(_0x51345d)return _0x51345d[_0x377119(0x4b8)](_0x3e284c);}[_0xb0c99b(0x4f4)](_0x240573){const _0x4835cb=_0xb0c99b,_0x4b2d98=this['_roomMembers'][_0x4835cb(0x1a0)](_0x240573);_0x4b2d98&&(_0x4b2d98['dispose'](),this[_0x4835cb(0x479)][_0x4835cb(0x456)](_0x240573));}['dispose'](){const _0x5bed79=_0xb0c99b;this[_0x5bed79(0x479)][_0x5bed79(0x1cb)](_0x4539f1=>_0x4539f1[_0x5bed79(0x11c)]()),this[_0x5bed79(0x479)][_0x5bed79(0x460)]();}};q=hs([Ze(0x0,a[_0xb0c99b(0x49b)]),Ze(0x1,a[_0xb0c99b(0x455)](a['UserManagerService']))],q);class _s extends a['Disposable']{constructor(){super(...arguments),d(this,'_members',new Map());}[_0xb0c99b(0x11c)](){const _0xa17fe9=_0xb0c99b;this[_0xa17fe9(0x419)][_0xa17fe9(0x460)]();}[_0xb0c99b(0x117)](_0x18838a){const _0x321bd0=_0xb0c99b;this['_members'][_0x321bd0(0x4d0)](_0x18838a['memberID'],_0x18838a);}['removeMember'](_0x26b35f){this['_members']['delete'](_0x26b35f);}[_0xb0c99b(0x4b8)](_0x2a1150){const _0xf0b7b0=_0xb0c99b;return this[_0xf0b7b0(0x419)][_0xf0b7b0(0x1a0)](_0x2a1150);}}var us=Object[_0xb0c99b(0x3dd)],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x409d59,_0x3b592b,_0x32f5f3,_0x18d9d0)=>{const _0x58f711=_0xb0c99b;for(var _0x369692=_0x18d9d0>0x1?void 0x0:_0x18d9d0?ds(_0x3b592b,_0x32f5f3):_0x3b592b,_0x540fae=_0x409d59[_0x58f711(0x23c)]-0x1,_0x28de0b;_0x540fae>=0x0;_0x540fae--)(_0x28de0b=_0x409d59[_0x540fae])&&(_0x369692=(_0x18d9d0?_0x28de0b(_0x3b592b,_0x32f5f3,_0x369692):_0x28de0b(_0x369692))||_0x369692);return _0x18d9d0&&_0x369692&&us(_0x3b592b,_0x32f5f3,_0x369692),_0x369692;},B=(_0x2830dc,_0x448171)=>(_0xc1a5b5,_0x4f3b75)=>_0x448171(_0xc1a5b5,_0x4f3b75,_0x2830dc),j=(_0x3e1d4f=>(_0x3e1d4f[_0x3e1d4f['IDLE']=0x0]=_0xb0c99b(0x382),_0x3e1d4f[_0x3e1d4f[_0xb0c99b(0x214)]=0x1]=_0xb0c99b(0x214),_0x3e1d4f[_0x3e1d4f[_0xb0c99b(0x4ed)]=0x2]=_0xb0c99b(0x4ed),_0x3e1d4f[_0x3e1d4f['ONLINE']=0x3]='ONLINE',_0x3e1d4f))(j||{});exports[_0xb0c99b(0x183)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x2bf398,_0x174bcf,_0x47655c,_0x36094c,_0x4bf2cb,_0x203017,_0x476ca9,_0x452b40,_0x11673c,_0xe34d00){const _0x2a442f=_0xb0c99b;super(),d(this,_0x2a442f(0x199),new v[(_0x2a442f(0x4b1))](0x0)),d(this,_0x2a442f(0x404),this[_0x2a442f(0x199)]['asObservable']()),d(this,_0x2a442f(0x380),new v[(_0x2a442f(0x349))]()),d(this,_0x2a442f(0x1c0),this['_event$'][_0x2a442f(0x3af)]()),d(this,_0x2a442f(0x1c7)),d(this,_0x2a442f(0x49f)),d(this,_0x2a442f(0x125)),d(this,_0x2a442f(0x350),!0x1),d(this,'_telemetryInfo',null),(this[_0x2a442f(0x47f)]=_0x2bf398,this[_0x2a442f(0x3cd)]=_0x47655c,this[_0x2a442f(0x2e7)]=_0x36094c,this[_0x2a442f(0x33f)]=_0x4bf2cb,this[_0x2a442f(0x3ec)]=_0x203017,this[_0x2a442f(0x26d)]=_0x476ca9,this[_0x2a442f(0x3f3)]=_0x452b40,this[_0x2a442f(0x22e)]=_0x11673c,this[_0x2a442f(0x467)]=_0xe34d00,this[_0x2a442f(0x350)]=!!this['_telemetryService'],_0x174bcf[_0x2a442f(0x3a7)](v['takeUntil'](this['dispose$']))[_0x2a442f(0x33b)](_0x38f5ed=>{const _0x2f1e67=_0x2a442f;var _0x42192a;typeof _0x38f5ed>'u'||(this['_socket']=_0x38f5ed,_0x38f5ed?(this[_0x2f1e67(0x496)](_0x38f5ed),this[_0x2f1e67(0x49f)]=_0x38f5ed['message$']['subscribe'](_0x5aa239=>{const _0x1fff58=_0x2f1e67;_0x5aa239[_0x1fff58(0x28d)]===this[_0x1fff58(0x47f)]&&this[_0x1fff58(0x2c0)](_0x5aa239);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x2f1e67(0x199)][_0x2f1e67(0x3c7)](0x2),(_0x42192a=this[_0x2f1e67(0x49f)])==null||_0x42192a[_0x2f1e67(0x3e9)](),this[_0x2f1e67(0x49f)]=null));}),this[_0x2a442f(0x3d3)](this[_0x2a442f(0x2e7)]['registerOnClose'](()=>{const _0x270974=_0x2a442f;var _0x178ee2;(_0x178ee2=this[_0x270974(0x1c7)])==null||_0x178ee2[_0x270974(0x3c3)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x270974(0x47f)]}});})));}get['sessionStatus'](){const _0x2d5b40=_0xb0c99b;return this[_0x2d5b40(0x199)][_0x2d5b40(0x3d1)]();}[_0xb0c99b(0x34f)](){const _0x16df02=_0xb0c99b;var _0x1dc6c1,_0x286390;return(_0x286390=(_0x1dc6c1=this[_0x16df02(0x1c7)])==null?void 0x0:_0x1dc6c1[_0x16df02(0x37a)])!=null?_0x286390:null;}[_0xb0c99b(0x11c)](){const _0x4ef17f=_0xb0c99b;super[_0x4ef17f(0x11c)](),this[_0x4ef17f(0x495)]['next'](),this[_0x4ef17f(0x495)][_0x4ef17f(0x484)]();}['close'](){const _0x117093=_0xb0c99b;var _0x3631bd,_0x51eb4f;this[_0x117093(0x16b)](),(_0x3631bd=this[_0x117093(0x1c7)])==null||_0x3631bd[_0x117093(0x3c3)]({'cmd':b[_0x117093(0x33c)],'data':{'roomID':this[_0x117093(0x47f)]}}),(_0x51eb4f=this[_0x117093(0x1c7)])==null||_0x51eb4f[_0x117093(0x1ea)](),this[_0x117093(0x380)][_0x117093(0x484)](),this['_sessionStatus$'][_0x117093(0x484)](),this[_0x117093(0x11c)]();}[_0xb0c99b(0x2c0)](_0x36b87f){const _0x483005=_0xb0c99b;_0x36b87f[_0x483005(0xf2)]===b['JOIN']?this[_0x483005(0x128)](_0x36b87f):_0x36b87f['cmd']===b[_0x483005(0x2a8)]&&this['_onRecvEvent'](_0x36b87f);}[_0xb0c99b(0x496)](_0x5f072c){const _0x349552=_0xb0c99b;this[_0x349552(0x199)]['next'](0x1),_0x5f072c[_0x349552(0x3c3)]({'cmd':b['JOIN'],'routeKey':this[_0x349552(0x47f)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0xb0c99b(0x128)](_0x27a588){const _0x5622b8=_0xb0c99b;var _0x5ed199;if(_0x27a588[_0x5622b8(0x17f)]===We[_0x5622b8(0x4c2)]){this[_0x5622b8(0x33f)]['show']({'type':X['MessageType'][_0x5622b8(0x4ba)],'content':this[_0x5622b8(0x26d)]['t']('session.room-full')}),this[_0x5622b8(0x199)][_0x5622b8(0x3c7)](0x2);return;}this[_0x5622b8(0x199)][_0x5622b8(0x3c7)](0x3);const _0x5aa84e=(_0x5ed199=_0x27a588[_0x5622b8(0x494)][_0x5622b8(0x358)][this[_0x5622b8(0x47f)]])==null?void 0x0:_0x5ed199[_0x5622b8(0x1fe)];_0x5aa84e&&_0x5aa84e[_0x5622b8(0x1cb)](_0x3ec962=>this[_0x5622b8(0x3f3)][_0x5622b8(0x117)](this[_0x5622b8(0x47f)],_0x3ec962));}[_0xb0c99b(0x41b)](_0x509a15){const _0x10c477=_0xb0c99b;try{const _0x484e2e=_0x509a15['data'];switch(_0x484e2e['eventID']){case _['CollaborationEvent'][_0x10c477(0x25b)]:this[_0x10c477(0x15a)](_0x484e2e),this['_event$'][_0x10c477(0x3c7)](_0x484e2e);break;case _['CollaborationEvent'][_0x10c477(0x1cc)]:this[_0x10c477(0x19a)](_0x484e2e),this['_event$'][_0x10c477(0x3c7)](_0x484e2e);break;case _['CollaborationEvent']['CHANGESET_ACK']:this[_0x10c477(0x15b)](),this[_0x10c477(0x4f2)](),this[_0x10c477(0x380)][_0x10c477(0x3c7)](_0x484e2e);break;case _[_0x10c477(0x153)][_0x10c477(0x174)]:this[_0x10c477(0x3cd)][_0x10c477(0x4d1)](_0x10c477(0x1f7)+JSON['stringify'](_0x484e2e)),this[_0x10c477(0x380)][_0x10c477(0x3c7)](_0x484e2e);break;case _['CollaborationEvent'][_0x10c477(0x201)]:this[_0x10c477(0x22e)][_0x10c477(0x483)](_0x484e2e[_0x10c477(0x494)]),this['_event$'][_0x10c477(0x3c7)](_0x484e2e);break;default:this[_0x10c477(0x380)][_0x10c477(0x3c7)](_0x484e2e);}}catch(_0x4c1be8){this[_0x10c477(0x3cd)][_0x10c477(0x4d1)](_0x4c1be8,_0x509a15);}}['_onUserJoin'](_0x40268d){const _0x29291e=_0xb0c99b;this[_0x29291e(0x3f3)]['updateMember'](this['_unitID'],_0x40268d['data']);}[_0xb0c99b(0x19a)](_0x372762){const _0x142959=_0xb0c99b;this[_0x142959(0x3f3)][_0x142959(0x359)](this[_0x142959(0x47f)],_0x372762[_0x142959(0x494)][_0x142959(0x37a)]);}async[_0xb0c99b(0x3c3)](_0x323994,_0x57d891){const _0x5051bf=_0xb0c99b;if(this['sessionStatus']!==0x3||!this[_0x5051bf(0x1c7)])throw new Error(_0x5051bf(0x1e8));try{_0x323994[_0x5051bf(0x1bd)]===_[_0x5051bf(0x153)][_0x5051bf(0x21f)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x5051bf(0x311)](_0x323994)),this[_0x5051bf(0x1c7)]['send']({'cmd':b['INGEST'],'routeKey':_0x57d891,'routeType':'','data':_0x323994});}catch(_0x5d9f42){this[_0x5051bf(0x3cd)]['error'](_0x5d9f42);}}[_0xb0c99b(0x46a)](){const _0x3782dc=_0xb0c99b;var _0x45bb42;this[_0x3782dc(0x125)]=window[_0x3782dc(0x2f0)](()=>{const _0x55f044=_0x3782dc;this[_0x55f044(0x125)]=null,this[_0x55f044(0x33f)][_0x55f044(0x126)]({'type':X[_0x55f044(0x20b)]['Error'],'content':this[_0x55f044(0x26d)]['t'](_0x55f044(0x2bd))});},(_0x45bb42=this[_0x3782dc(0x3ec)][_0x3782dc(0x2aa)](Ve))!=null?_0x45bb42:St);}[_0xb0c99b(0x4f2)](){const _0x8ca39f=_0xb0c99b;this[_0x8ca39f(0x125)]&&(clearTimeout(this[_0x8ca39f(0x125)]),this[_0x8ca39f(0x125)]=null);}[_0xb0c99b(0x311)](_0xe96236){const _0x2f8467=_0xb0c99b;if(!this[_0x2f8467(0x350)])return;const {data:_0x2e874b}=_0xe96236,{unitID:_0x388f9b,changeset:_0x44adf5}=_0x2e874b,{mutations:_0x380939,type:_0x25d0d7}=_0x44adf5;this[_0x2f8467(0x4aa)]={'unitId':_0x388f9b,'type':_0x25d0d7,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':as(_0x380939)};}[_0xb0c99b(0x15b)](){const _0x54dcbc=_0xb0c99b;if(this[_0x54dcbc(0x350)]){if(!this[_0x54dcbc(0x4aa)]){this['_logService'][_0x54dcbc(0x4d1)](_0x54dcbc(0x48d),_0x54dcbc(0x355));return;}this[_0x54dcbc(0x4aa)][_0x54dcbc(0x2dd)]=performance[_0x54dcbc(0x4b4)](),this[_0x54dcbc(0x4aa)][_0x54dcbc(0x238)]=this[_0x54dcbc(0x4aa)]['stopTime']-this[_0x54dcbc(0x4aa)]['startTime'],this[_0x54dcbc(0x467)][_0x54dcbc(0x274)](os,this[_0x54dcbc(0x4aa)]),this[_0x54dcbc(0x4aa)]=null;}}[_0xb0c99b(0x16b)](){this['_telemetryInfo']=null;}},exports[_0xb0c99b(0x183)]=Ss([B(0x2,a[_0xb0c99b(0x2b2)]),B(0x3,N[_0xb0c99b(0x221)]),B(0x4,N['IMessageService']),B(0x5,a[_0xb0c99b(0x195)]),B(0x6,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),B(0x7,a[_0xb0c99b(0x455)](q)),B(0x8,a['Inject'](Ge)),B(0x9,a[_0xb0c99b(0x1c6)](Bt[_0xb0c99b(0x1c8)]))],exports['CollaborationSession']);function _0x4d94(){const _0x3825d8=['FETCH_MISS','_getCtorByUniverType','parseChangesetToProtocol','m1Prime','defineProperty','AWAITING_WITH_PENDING','unit-cache-','visibilityState','create','_executeRemoteChangeset','_updateSubUnitFromURLParams','_transformUndoRedoStack','getUnitStatus$','UNIVER_SHEET','post','IRemoteInstanceService','unsubscribe','CollaborationStatusDisplay','NOT_COLLAB','_configService','_render','_docSyncEditingCollabCursorService','getParam','getOffsetConfig','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_eventUnsubscribe','_memberService','values','_drawAnchor','pending','BASE64','POST','_acknowledgedAwaitingChangeset','newCsEvent','_univerInstanceService','UNDEFINED','target','CHANGESET_REJ','InsertRowCommandId','row','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_cursors','csAckEvent','sessionStatus$','svg','_handleEvent','open$','loginUrlKey','INVALID_ARGUMENT','SetSelectionsOperation','_localCacheService','addObject','SNAPSHOT_SERVER_URL_KEY','size','function','_retryConnectingTimer','655432BEARTo','IUIPartsService','@univerjs/docs-ui','_transformStack','1em','_scheduleSaving','session','searchParams','_members','Injector','_onRecvEvent','_getAnchorBounding','unit','hasOwnProperty','_init','off-line-single','UniverCollaborationPlugin','textRanges','_sendHeartbeatTimer','/object/','_commandService','editing\x20status\x20changed\x20to','_initMergeInterceptor','serializeRangeWithSheet','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_updateState','arc','[CollaborationSessionService]','@univerjs-pro/collaboration','NOT_FOUND','readAsDataURL','SHOULD_CLOSE_CONN','NodePositionConvertToRectRange','_setupBeforeClosingHandler','current','_uiPartsService','parse','_lockTransition','_rescheduleHeartbeat','exhaustSavingTask','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_color','retryConnectingInterval','_getSendChangesetTimeout','getRangePointData','take','DocIMEInputManagerService','_remoteChangesetQueue','random','auth.needGotoLoginAlert','InsertRangeMoveRightCommandId','LIVESHARE_FETCH_OPERATIONS','_tryReconnect','_docTransformIMECacheService','IAuthzIoService','HEARTBEAT_TIMEOUT_KEY','onPointerMove$','_sendingTimer','getRenderById','EmptyMutation','_type','onload','SEND_CHANGESET_TIMEOUT_KEY','takeUntil','attrs','max','appendMutation','fetch_missing','Inject','delete','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','saveChangeset','onMissingChangesets','handleInsertRow','2127036rgqVzG','_startDocCollabCursor','registerHTTPInterceptor','history','column','clear','_clearScheduledTask','_singleActiveUnitService','Disposable','image/bmp','_state$','flatMap','_telemetryService','transformSelections','c2Prime','_scheduleCollaborationTimeoutTimer','INGEST','ImageUploadStatusType','TRANSFORM_CHANGE_OBSERVABLE_TYPE','width','synced','onMouseMove','handleMoveRange','LocaleService','\x20-\x20','SnapshotServerOverHTTPService','makeDirty','_listenToOnlineEvent','startsWith','deleteCollaborator','_roomMembers','currentSkeleton$','transformStack\x20failed!','_collabCursorController','_clearOtherTimers','ICommandService','_unitID','_createInitialState','_onLocalMutation','81pBYtta','onCommentUpdate','complete','objectType','[UniverCollaborationClientPlugin]','cursorInfo','_scheduleClearOtherTimer','COMPRESS_MUTATION_SEND','_onCursorDelete','isTransformMutationFailure','_clearUndo','[CollaborationSession]','_saveCache','apply','[CollaborationSessionService]:\x20socket\x20error','editingUnit','_awaitingChangeset','socket\x20open.','data','dispose$','_joinRoom','_removeClearOtherTimer','type','toString','_scheduleTimestamp','IUniverInstanceService','distinctUntilChanged','#fff','_getLoginPath','_socketMessageSubscription','_handleJoinEvent','red300','_lastPointer','setItem','_startSheetCollabCursor','reduce','originalMeta','/role','clearInterval','APPLY_REVISION_CONFILICT','_telemetryInfo','headers','put','_transformPreviousActiveRange','update','UniverCollaborationClientPlugin','patch','BehaviorSubject','awaiting_with_pending','_unitStatus','now','_getUndoStack','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','_sheetSkeletonManagerService','getMember','_initRequestHeader','Warning','conflict.content','newValue','_collaborationPaused','ThemeService','AuthzIoHttpService','body','getUndoRedoMutationParamsCache','FAIL','unitID','_cachedData','updateOfflineData','image/jpg','_undoRedoService','_status$','_submitChangeset','_urlService','toggleOffline','enableAuthServer','_collaborationSessionService','bottom','xlink:href','set','error','fromEventSubject','/allowed','transformUndoRedo','_entityInit$','delay','_createInitialStateImpl','_setupSubUnitSync','\x20to\x20','from','_themeService','evenodd','getUnitId','_onCursorUpdate','CollaborationStatus','fetchMissingChangesets','COLLAB_WEB_SOCKET_URL','addEventListener','loadOfflineData','mutations','interceptor','useDependency','all','LICENSE_IMPORT_SIZE_EXCEEDED','transformIMECache','_heartbeatTimer','popstate','range','OFFLINE','allowed','/universer-api/stream/file/upload','_handleLeaveEvent','_getSaveTimeout','_clearCollaborationTimeoutTimer','[OfflineState]:\x20received\x20changeset.','_removeRoom','_hover','ICollaborationSocketService','_clearTimeoutTimer','_createSocket','startRow','_clearLocalCache','createIdentifier','deepClone','color','not_collab','_getAPIPrefix','shareReplay','_replaceFileID','getColor','onlineStatusIcon','div','session.will-retry','[PendingState]:\x20received\x20acknowledgement.','cmd','isTransformMutationsWithChangesetSuccess','joinEvent','fill','PERMISSION_REJ','action','/universer-api/comb','_initStatusComponent','_updateURLWithCurrentState','message$','_handler','triggerDblclick','_userManagerService','actions','onPointerLeave$','throttleTime','isTransformChangesetsSuccess','FromArray','connectInjector','resize','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_undoStacks','_getScale','CollaborationController','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_ensureSubject','OnLifecycle','UniverIcon','UPDATE_PERMISSION_OBJ','_initCloseConn','_getMergeRange','UniverInstanceType','handleInsertRangeMoveDown','findNodePositionByCharIndex','_labelPosition','_permissionService','[CollaborationUndoRedoService]','updateMember','HttpExport','_selfUnitIDs','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','LICENSE_EXPORT_SIZE_EXCEEDED','dispose','RegularPolygon','listCollaborators','HttpImport','_unlockTransition','split','M0\x200H16V16H0z','#FFF','_transformSelections','_collaborationTimeoutTimer','show','Tooltip','_onJoinRoomEvent','_schedule','_initStatusListener','Vector2','currentColor','_docTransformSelectionsService','UNAUTHENTICATED','_injector','/universer-api/oidc/authpage','createCollaborator','getDocRanges','LifecycleStages','getSheetBySheetId','executeCommand','_online','result','_hideTimer','_colorAssignService','unitId','filter','location','COLORS','APPLY_REJECT','syncEditingCollabCursor','failed\x20to\x20apply\x20missed\x20changesets!','onRendered','_updateLocalCache','add','getSheetBlock','DocCollaborationEntity','x-univer-host','url(#on-line-single_clip0_910_349)','getAttachHeader','_registerRenderDependencies','_transitionLocked','WebURLService','Plugin','Error','getInterceptPoints','lineTo','roomMembers$','runRefRangeMutations','Univer','CollaborationEvent','image/jpeg','YUUMI_UNABLE_LOAD_URL','status$','onTransformChange$','IURLService','CHANGESET_REVISION_CONFILICT','_onUserJoin','_stopTelemetryCollaborationNewChangeset','Rect','subscribeEvent','_onRemoteChangeset','collab-text-range-','_registerDependencies','_textBubble','_backgroundColor','textEncoder','addImageSourceCache','@univerjs/core','_docStateChangeManagerService','collabStatus.syncing','\x20in\x20_schedule.','_socketService','Starting','_throwTelemetryCollaborationNewChangeset','_waitCount','SEND_CHANGESET_TIMEOUT','unitId\x20is\x20not\x20found','InsertRangeMoveDownCommandId','UNIVER_SLIDE','LICENSE_MAX_UNITS_EXCEEDED','324265mvBCsh','top','MSG_FOR_ERROR','_id','visibilitychange','[PendingState]:\x20received\x20rejection.','COMPRESS_MUTATION_APPLY','getMergeData','_draw','XHRHTTPImplementation','0\x200\x2017\x2016','assign','/universer-api/snapshot/','code','_initEventListeners','storage','Module','CollaborationSession','univer-offline','collabCursorState$','_range','url','init','LIVESHARE_OPERATION','CollaborationSocketService','_loadSheet','icon','_localStorageService','getOwnPropertyDescriptor','DependentOn','collaboratorID','has','collaboration-client.config','/block/','collaboration-client.offline-data-not-saved','IConfigService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','LIVESHARE_NEW_HOST','InsertSheetMutation','_sessionStatus$','_onUserLeave','subUnitId','&to=','height','connection\x20error','/unit/','get','createElement','CommandType','APPLY_PERMISSION_DENIED','getTypeOfUnitDisposed$','commentUpdate$','_compressMutationService','_createHandler','TEXT_RANGE_LAYER_INDEX','[CollaborationEntity]','_queuedRemoteChangesets','getCoordByCell','DesktopCollaborationStatusDisplayController','string','JOIN','map','DocSelectionManagerService','setParam','collaMsg','getTime','AWAITING','setCurrentUser','off-line-single_clip0_910_343','resend','offline','revision','getActiveSheet','substring','COMPLETION_FINISHED','eventID','@univerjs/rpc','children','event$','_snapshotServerService','DeleteRangeMoveUpCommandId','incrementRevOfUnit','defIds','onSendChangeset','Optional','_socket','ITelemetryService','/-/object/list','_onFetchMissResult','forEach','USERS_LEAVE','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','saveSnapshot','UNIVER_COLLABORATION_CLIENT_PLUGIN','Rectangle','_socketReady','permissionRejEvent','_sendHeartbeat','black','some','getCurrent','DataLoaderController','drawWith','registerRenderModule','1893656cHEelM','_scheduleHeartbeat','@univerjs/engine-formula','_onConflict','RETRY_CONNECTING_MAX_COUNT_KEY','LIVESHARE_TERMINATE','@univerjs/sheets-ui','/universer-api/snapshot','_docSkeletonManagerService','[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.','onTransformSelections','_getRedoStack','indexOf','SheetCollaborationEntity','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','assignAColorForMemberID','close','setShapeProps','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','includes','ISnapshotServerService','updateCollaborator','IPermissionService','setConfig','_transformService','SheetsSelectionsService','getUnitOnRev','[CollaborationState]:\x20apply\x20error!','onTransformIME','save\x20fail\x20reason\x20is\x20','getVpScrollXYInfoByPosToVp','extend','HEADER_MENU','getSheetId','disposeUnit','_getDownloadEndpointURL','members','_cursorShapes','m2Prime','COMMENT_UPDATE','useCallback','focused$','snapshotServerUrl','onStarting','unknown','entries','_imageSourceCache','objects','getImage','MessageType','_transformRemoteChangesetByIMECache','univer-pro.collaboration-client-socket-service','then','NO_OTHER_CLIENTS_EDITING','getCurrentSelections','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','collabStatus.fetchMiss','@univerjs/telemetry','JOINING','sequenceExecute','purple300','_revisionService','UNIVER_UNKNOWN','_removeCollabCursors','awaiting','ERROR_EXCEED_SIZE','append','reject','_clearRedo','SUBMIT_CHANGESET','@univerjs/drawing','IBeforeCloseService','toggleOnline','method','&assign=','_transformIMECache','ImageIoService','react','batchAllowed','CONFLICT','switchMap','key','unload','SetWorksheetActivateCommand','_commentService','hide','requireSession','forwardRef','INTERNAL_ERROR','backgroundColor','IHTTPImplementation','onPointerEnter$','hovered','replaceState','duration','[DataLoaderController]','saveSheetBlock','SNAPSHOT_URL_KEY','length','getUnhiddenWorksheets','uni.network.url-service','SUCCUSS','isTransformMutationsWithChangesetFailure','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','DeleteRangeMoveLeftCommandId','_substituteUndoStack','conflict','APPLY_NON_SEQUENTIAL_REVISION','engine','SnapshotService','_disabled','awaitingChangeset','with','find','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUniverSheetInstance','OnLineSingle','_context','json','transformByState','sendChangesetTimeout','getCollabEntity$','UNIVER_DOC','getAncestorScale','PENDING','_hovered','_getCurrentRevision','_state','_cursorInfo$','USERS_ENTER','title','defs','getImageSourceCache','reconnect','resourceIDs','skeleton','b64DecodeUnicode','_waitForHeartbeatResponse','JSONX','...','text','50500ixnZYw','_snapshotService','origin','Undefined','_roomMembers$','verdancy600','_localeService','_colorIndex','saveImage','HEARTBEAT_INTERVAL_KEY','YUUMI_SUBSCRIPTION_NOT_FOUND','_updateLocalCursor','ILocalStorageService','capture','CollaborationEntity','_session','VIEWPORT_KEY','collab-text-anchor-','_onConnectionFailed','currentTheme$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','CONNECTOR_DATA_TOO_LARGE','onRemoteChangeset','/resources','_candidateSocket','downloadEndpointUrl','LOGIN_URL_KEY','_replayCachedMutations','DisposableCollection','_fetchMissChangesets','_renderManagerService','Tools','mapDocumentTypeToUniverType','_showConflictNotification','Shape','CollaborationSessionService','prototype','_decreaseWaiting','routeKey','removeParam','NodePositionConvertToCursor','changesets','NEW_CHANGESETS','serializeCombRequest','MUTATION','enableOfflineEditing','idSuffix','selection','tag','compose','registerComponent','PERMISSION_DENIED','createInstance','SNAPSHOT_HAS_BEEN_REMOVED','name','_handleHover','@univerjs/ui','_scene','_instanceService','_anchor','4610333yHWVUe','getTypeOfUnitAdded$','collaboration_new_changeset','ranges','getSkeleton','RECV','registerRefRange','getConfig','getUnitType','onCommandExecuted','0\x200\x2016\x2016','SheetPermissionInitController','SheetCollabCursorShape','isInternalEditorID','_initCommandExecutedListener','ILogService','_drawTextRange','contains','clsx','/collaborator','state','baseRev','LocalCacheService','_config','toRgbString','onStateChange','session.collaboration-timeout','catch','pluginName','_onCombEvent','_retryCount','SYNCED','replace','?size=','_collabSessionService','_updateCollabCursors','UPDATE_CURSOR','ImageSourceType','deserializeToCombResponse','ThresholdInterceptorFactory','_collabCursorState$','_incrementRevisionNumber','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isPermissionRej','UNRECOGNIZED','BuiltInUIPart','on-line-single_clip0_910_349','AUTHZ_URL_KEY','colorChannel1','commentUpdateEvent','c1Prime','transformMutationsWithChangeset','userID','_isPermissionRej','save','push','HELLO','getWorkbookSelections','stopTime','\x0aCurrent:\x20','collaboration-session-retry','setActiveRange','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','/-/object/-/batch_allowed','params','_updateStatus','[SyncedState]:\x20received\x20rejection.','MergeInterceptorFactory','_beforeCloseService','_httpService','_saveTaskMap','getDeserializedSheetBlock','handleDeleteRangeMoveUp','roomMembers','isArray','_sheetTransformSelectionsService','toDisposable','setTimeout','min','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onTransformRemoteChangesetByIMECache','online','call','HEARTBEAT_TIMEOUT','getCollabCursors$','none','_transformUndoredo','getCurrentRevOfUnit','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','round','className','closeSession','collab-client.tooltip.reconnect','WebSocketService','debounce','_onRemoteRejected','collaboration.single-unit.warning','_onMessage','ONLINE','HTTPRequest','/universer-api/file/{fileID}/sign-url','_socket$','OTHER_CLIENTS_EDITING','PSEUDO_FETCH_MISSING_RESULT','_change$','getCollabEntity','objectActions','TOO_MANY_REQUESTS','_refRangeService','gold400','_startTelemetryCollaborationNewChangeset','ColorKit','_initResize','@univerjs/engine-render','transformRemoteChangeset','unshift','onSyncEditingCollabCursor','encodeURIComponent','HTTPService','_redoStacks','[OfflineState]:\x20received\x20acknowledgement.','rgba(255,\x20255,\x20255,\x200.01)','FETCH_MISSING','_getAPIPrefixPath','_collaborationController','getOwnPropertySymbols','_assignedColors','_name','onlyLocal','createSocket','_onOffline','LICENSE_DISTRO_REJECTED','transformMutation','{fileID}','_send','CompressMutationService','objectID','replaceTextRanges','_notificationService','_shapes','fillStyle','@univerjs/design','_onConnectionOpen','measureText','infoRsp','useRef','_timeoutTimer','translate(.97)','_http','_unitOnClients','onMissedChangesetFetched','handleInsertRangeMoveRight','subscribe','LEAVE','restore','collaboration.closeRoom','_messageService','saveOfflineData','_onRemoteACK','RevisionService','refreshPermission','onlineStatusTitle','getFocusedUnit','rxjs','debug','getCurrentUser','Subject','UNIVER_PROJECT','@univerjs/network','univer-online-status','IContextService','use','getMemberID','_shouldReportTelemetry','enableLocalCache','_onRefRangeChange','&source=','override','telemetry\x20info\x20is\x20not\x20initialized','doc.mutation.rich-text-editing','_startCollaboration','roomInfos','removeMember','transformChangesets','parseProtocolChangeset','SessionStatus','shouldCloseConn','deserializeRangeWithSheet','fillText','DEFAULT_FILE_NAME','COLLAB_SUBMIT_CHANGESET_URL_KEY','getSheetObject','href','_applyRemoteChangeset','_refreshCollabCursors','status','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','endRow','Steady','generateRandomId','permission.content','path','stringify','_anchorDot','transform','getResourcesRequest','_commentUpdate$','setAlpha','concat','_initUnitPermissionChange','conflict.title','_toggleOnline','handleDeleteRangeMoveLeft','ACTIVE_UNIT_EVENT_CHANNEL','ERROR_IMAGE_TYPE','memberID','LOCAL_CACHE_INTERVAL_KEY','ITransformService','EffectRefRangId','displayName','_syncEditingCollabCursorService','_event$','_syncEditingCollabCursor','IDLE','_docSkeleton','ALREADY_EXISTS','error$','?url=','merge','isActive','_getUploadFileURL','close$','disableLocalCache','image/png','clearTimeout','localeService','liveShareNewHost','onRemoteAck','RETRY_CONNECTING_MAX_COUNT','initWorkbookPermissionChange','RemoveRowCommandId','UnitEmbedded','IUndoRedoService','RichTextEditingMutation','requestParams','UnitSnapshot','file','42sElnpu','UNKNOWN_CODE','_checkMissing','_HTTPService','toStringTag','_loadDoc','fetchMiss','SNAPSHOT_INVALID_SNAPSHOT','COLLAB_WEB_SOCKET_URL_KEY','putCollaborators','_entities','collabSubmitChangesetUrl','6338zFntzX','pipe','_pendingMutations','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onRemoteRej','combineLatest','fetchThroughInterceptors','univerjs-icon\x20univerjs-icon-','onlineStatus','asObservable','jiqing500','fromCollab','getCellPositionByOffset','_tryEnsureSocket','csRejEvent','FileId','encode','collabWebSocketUrl','urlChange$','_getSnapshotAPIPrefix','authzUrl','IMessageService','WorkbookEditablePermission','cursorInfo$','_sessions','confirm','_drawRectRange','RxDisposable','LIVESHARE_REQUEST_HOST','send','_getSheetObject','collabStatus.offline','getCurrentUnitForType','next','updatePermissionPoint','_handleHeartbeatEvent','registerBeforeClose','/universer-api/authz','/new_changes','_logService','CommentService','/object','@univerjs-pro/license','getValue','_toggleOffline','disposeWithMe','reverse','ERROR_IMAGE','debounceTime','submit\x20changeset\x20error!','snapshot'];_0x4d94=function(){return _0x3825d8;};return _0x4d94();}var vs=Object[_0xb0c99b(0x3dd)],fs=Object[_0xb0c99b(0x18e)],gs=(_0x22d9b8,_0x243933,_0xf38017,_0x2b234d)=>{const _0xcda1af=_0xb0c99b;for(var _0x4c0b8b=_0x2b234d>0x1?void 0x0:_0x2b234d?fs(_0x243933,_0xf38017):_0x243933,_0x432714=_0x22d9b8[_0xcda1af(0x23c)]-0x1,_0x1799ea;_0x432714>=0x0;_0x432714--)(_0x1799ea=_0x22d9b8[_0x432714])&&(_0x4c0b8b=(_0x2b234d?_0x1799ea(_0x243933,_0xf38017,_0x4c0b8b):_0x1799ea(_0x4c0b8b))||_0x4c0b8b);return _0x2b234d&&_0x4c0b8b&&vs(_0x243933,_0xf38017,_0x4c0b8b),_0x4c0b8b;},Z=(_0x2f81f4,_0x2b10a7)=>(_0x45744c,_0xf8f8bf)=>_0x2b10a7(_0x45744c,_0xf8f8bf,_0x2f81f4);exports[_0xb0c99b(0x28a)]=class extends a[_0xb0c99b(0x463)]{constructor(_0x300ec8,_0x50e410,_0x56a4ee,_0x3f345f,_0x2540a5,_0x2ae296){const _0x687f65=_0xb0c99b;super(),d(this,_0x687f65(0x308),new v[(_0x687f65(0x4b1))](void 0x0)),d(this,'socket$',this['_socket$'][_0x687f65(0x3af)]()),d(this,_0x687f65(0x27f),null),d(this,_0x687f65(0x3be),new Map()),d(this,'_status$',new v[(_0x687f65(0x4b1))](j[_0x687f65(0x382)])),d(this,_0x687f65(0x156),this[_0x687f65(0x4c8)][_0x687f65(0x3af)]()),d(this,'_socketReady',!0x1),d(this,_0x687f65(0x410)),d(this,'_retryCount',0x0),d(this,_0x687f65(0x423)),d(this,_0x687f65(0x335)),(this[_0x687f65(0x12f)]=_0x300ec8,this[_0x687f65(0x26d)]=_0x50e410,this[_0x687f65(0x33f)]=_0x56a4ee,this[_0x687f65(0x3cd)]=_0x3f345f,this[_0x687f65(0x3ec)]=_0x2540a5,this[_0x687f65(0x169)]=_0x2ae296,this[_0x687f65(0x180)]());}get[_0xb0c99b(0x1c7)](){const _0x3426b9=_0xb0c99b;return this[_0x3426b9(0x308)]['getValue']();}[_0xb0c99b(0x180)](){this['_listenToOfflineEvent'](),this['_listenToOnlineEvent']();}['dispose'](){const _0x5aca15=_0xb0c99b;super['dispose'](),this[_0x5aca15(0x3be)][_0x5aca15(0x1cb)](_0x3f897f=>_0x3f897f[_0x5aca15(0x11c)]()),this[_0x5aca15(0x3be)][_0x5aca15(0x460)](),this[_0x5aca15(0x4c8)][_0x5aca15(0x484)]();}async[_0xb0c99b(0x230)](_0x2a8985){const _0x4b94a3=_0xb0c99b;if(this[_0x4b94a3(0x3be)][_0x4b94a3(0x191)](_0x2a8985))return this[_0x4b94a3(0x3be)][_0x4b94a3(0x1a0)](_0x2a8985);this[_0x4b94a3(0x3b3)]();const _0x2a920b=this[_0x4b94a3(0x12f)]['createInstance'](exports[_0x4b94a3(0x183)],_0x2a8985,this[_0x4b94a3(0x308)]['asObservable']());return this[_0x4b94a3(0x3be)][_0x4b94a3(0x4d0)](_0x2a8985,_0x2a920b),_0x2a920b;}[_0xb0c99b(0x2fe)](_0x32488c){const _0x1d6f5e=_0xb0c99b;var _0x17a38f;const _0x39bca6=this[_0x1d6f5e(0x3be)][_0x1d6f5e(0x1a0)](_0x32488c);_0x39bca6&&(this['_sessions'][_0x1d6f5e(0x456)](_0x32488c),_0x39bca6[_0x1d6f5e(0x1ea)]()),this[_0x1d6f5e(0x3be)][_0x1d6f5e(0x40e)]||(_0x17a38f=this[_0x1d6f5e(0x1c7)])==null||_0x17a38f[_0x1d6f5e(0x1ea)]();}[_0xb0c99b(0x25f)](){const _0x5e1f36=_0xb0c99b;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x5e1f36(0x410)]),this[_0x5e1f36(0x410)]=null),this[_0x5e1f36(0x445)]();}[_0xb0c99b(0x4f8)](){const _0x10eb7a=_0xb0c99b;var _0x3131e9,_0x174163;const _0x239af2=this[_0x10eb7a(0x3ec)][_0x10eb7a(0x2aa)](ut),_0x1d9b1f=this['_configService'][_0x10eb7a(0x2aa)](L),_0x463940=(_0x174163=(_0x3131e9=_0x1d9b1f==null?void 0x0:_0x1d9b1f[_0x10eb7a(0x3b7)])!=null?_0x3131e9:_0x239af2)!=null?_0x174163:Xt,_0x3c2a7b=this[_0x10eb7a(0x169)]['createSocket'](_0x463940);return this[_0x10eb7a(0x27f)]=_0x3c2a7b,_0x3c2a7b;}[_0xb0c99b(0x3b3)](){const _0x4ff10e=_0xb0c99b;var _0x5735f3,_0x3edeec;try{const _0x11893a=(_0x3edeec=(_0x5735f3=this[_0x4ff10e(0x1c7)])!=null?_0x5735f3:this['_candidateSocket'])!=null?_0x3edeec:this[_0x4ff10e(0x4f8)]();if(_0x11893a){const _0x51d697=_0x11893a[_0x4ff10e(0x3c3)];_0x11893a[_0x4ff10e(0x3c3)]=_0x4a98a7=>(this[_0x4ff10e(0x437)](),_0x51d697[_0x4ff10e(0x48f)](_0x11893a,[_0x4a98a7])),_0x11893a[_0x4ff10e(0xfb)][_0x4ff10e(0x33b)](_0x342e1f=>this[_0x4ff10e(0x304)](_0x11893a,_0x342e1f)),_0x11893a[_0x4ff10e(0x385)][_0x4ff10e(0x3a7)](E[_0x4ff10e(0x43e)](0x1))[_0x4ff10e(0x33b)](_0x88c1b1=>this['_logService'][_0x4ff10e(0x4d1)](_0x4ff10e(0x490),_0x88c1b1)),_0x11893a[_0x4ff10e(0x407)]['pipe'](E[_0x4ff10e(0x43e)](0x1))[_0x4ff10e(0x33b)](()=>{const _0x417d84=_0x4ff10e;this[_0x417d84(0x331)](_0x11893a);}),_0x11893a[_0x4ff10e(0x38a)]['pipe'](E[_0x4ff10e(0x43e)](0x1))['subscribe'](_0x3ebc49=>{const _0x1de49a=_0x4ff10e;this[_0x1de49a(0x3cd)][_0x1de49a(0x347)]('[CollaborationSessionService]','socket\x20close',_0x3ebc49),this[_0x1de49a(0x279)]();});}}catch(_0x61d779){this['_logService'][_0x4ff10e(0x4d1)](_0x61d779),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x31aeaa){const _0x3a5933=_0xb0c99b;this[_0x3a5933(0x3cd)]['debug'](_0x3a5933(0x42c),_0x3a5933(0x493)),_0x31aeaa['send']({'cmd':b['HELLO']}),this[_0x3a5933(0x437)]();}['_listenToOfflineEvent'](){const _0x258d8d=_0xb0c99b;window[_0x258d8d(0x4e2)](_0x258d8d(0x1b8),()=>this[_0x258d8d(0x325)]());}[_0xb0c99b(0x325)](){const _0x1c1513=_0xb0c99b;this[_0x1c1513(0x1d1)]=!0x1,this[_0x1c1513(0x27f)]=null,this[_0x1c1513(0x4c8)]['next'](j['OFFLINE']),this[_0x1c1513(0x308)][_0x1c1513(0x3c7)](null),this[_0x1c1513(0x4f7)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x38f6ad=_0xb0c99b;var _0x54da4f;this[_0x38f6ad(0x325)](),this[_0x38f6ad(0x2c1)]<((_0x54da4f=this[_0x38f6ad(0x3ec)][_0x38f6ad(0x2aa)](vt))!=null?_0x54da4f:Jt)?(this['_messageService'][_0x38f6ad(0x126)]({'key':_0x38f6ad(0x2df),'type':X['MessageType']['Warning'],'content':this[_0x38f6ad(0x26d)]['t'](_0x38f6ad(0xf0))}),this[_0x38f6ad(0x445)]()):this[_0x38f6ad(0x33f)]['show']({'key':_0x38f6ad(0x2df),'type':X['MessageType']['Error'],'content':this[_0x38f6ad(0x26d)]['t']('session.connection-failed')});}[_0xb0c99b(0x476)](){const _0x59c3c9=_0xb0c99b,_0x83ae86=()=>{const _0xd3f6eb=_0x4e0f;this[_0xd3f6eb(0x1c7)]||this[_0xd3f6eb(0x25f)]();},_0x212f59=()=>{const _0x19f098=_0x4e0f;this[_0x19f098(0x1c7)]||document[_0x19f098(0x3e0)]==='hidden'||this[_0x19f098(0x25f)]();};window[_0x59c3c9(0x4e2)](_0x59c3c9(0x2f4),_0x83ae86),document['addEventListener'](_0x59c3c9(0x176),_0x212f59);}[_0xb0c99b(0x445)](){const _0x124d2e=_0xb0c99b;var _0x21cd09;const _0x27d50c=this[_0x124d2e(0x2c1)],_0x2a2402=this[_0x124d2e(0x3ec)][_0x124d2e(0x2aa)](L),_0x543a0f=_0x27d50c===0x0?0x0:((_0x21cd09=_0x2a2402==null?void 0x0:_0x2a2402[_0x124d2e(0x43b)])!=null?_0x21cd09:zt)*0x2**_0x27d50c;this[_0x124d2e(0x410)]=window[_0x124d2e(0x2f0)](()=>{const _0x9213a5=_0x124d2e;clearTimeout(this[_0x9213a5(0x410)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x543a0f),this[_0x124d2e(0x2c1)]+=0x1;}[_0xb0c99b(0x304)](_0x110ffc,_0x234b11){const _0x1a0794=_0xb0c99b,{cmd:_0x1a886d}=_0x234b11;_0x1a886d===b['HELLO']&&!this['_socketReady']&&(_0x110ffc[_0x1a0794(0x37a)]=_0x234b11['data'][_0x1a0794(0x37a)],this[_0x1a0794(0x308)]['next'](_0x110ffc),this[_0x1a0794(0x4c8)]['next'](j[_0x1a0794(0x305)]),this[_0x1a0794(0x1d1)]=!0x0,this[_0x1a0794(0x27f)]=null),_0x1a886d===b['HEARTBEAT']&&this[_0x1a0794(0x4f7)](),this[_0x1a0794(0x437)]();}[_0xb0c99b(0x437)](){const _0x17f2c3=_0xb0c99b;var _0x323fbf;this['_clearHeartbeatTimer'](),this[_0x17f2c3(0x423)]=window['setTimeout'](()=>this[_0x17f2c3(0x1d3)](),(_0x323fbf=this[_0x17f2c3(0x3ec)][_0x17f2c3(0x2aa)](dt))!=null?_0x323fbf:qt);}[_0xb0c99b(0x1d3)](){const _0x33263a=_0xb0c99b;this[_0x33263a(0x1c7)][_0x33263a(0x3c3)]({'cmd':b['HEARTBEAT']}),this[_0x33263a(0x263)]();}['_waitForHeartbeatResponse'](){const _0x39004c=_0xb0c99b;var _0x3235d2;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x39004c(0x279)](),(_0x3235d2=this[_0x39004c(0x3ec)][_0x39004c(0x2aa)](Ve))!=null?_0x3235d2:St);}['_clearHeartbeatTimer'](){const _0x1686ac=_0xb0c99b;this[_0x1686ac(0x423)]!=null&&(clearTimeout(this[_0x1686ac(0x423)]),this[_0x1686ac(0x423)]=null);}[_0xb0c99b(0x4f7)](){const _0x45fc02=_0xb0c99b;this[_0x45fc02(0x335)]!=null&&(clearTimeout(this[_0x45fc02(0x335)]),this[_0x45fc02(0x335)]=null);}},exports[_0xb0c99b(0x28a)]=gs([Z(0x0,a[_0xb0c99b(0x455)](a['Injector'])),Z(0x1,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),Z(0x2,N[_0xb0c99b(0x3bb)]),Z(0x3,a[_0xb0c99b(0x2b2)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0xb0c99b(0x3dd)],Is=Object[_0xb0c99b(0x18e)],ps=(_0x16694c,_0x4b04f9,_0x4a29c0,_0x285272)=>{const _0x432e4f=_0xb0c99b;for(var _0x553bb6=_0x285272>0x1?void 0x0:_0x285272?Is(_0x4b04f9,_0x4a29c0):_0x4b04f9,_0x3aeb50=_0x16694c[_0x432e4f(0x23c)]-0x1,_0x47b7c5;_0x3aeb50>=0x0;_0x3aeb50--)(_0x47b7c5=_0x16694c[_0x3aeb50])&&(_0x553bb6=(_0x285272?_0x47b7c5(_0x4b04f9,_0x4a29c0,_0x553bb6):_0x47b7c5(_0x553bb6))||_0x553bb6);return _0x285272&&_0x553bb6&&ms(_0x4b04f9,_0x4a29c0,_0x553bb6),_0x553bb6;},ye=(_0x118404,_0x3c0e85)=>(_0x8af845,_0x4ca255)=>_0x3c0e85(_0x8af845,_0x4ca255,_0x118404);let Ie=class{constructor(_0x548ed7,_0x42416d,_0x11e8bf){const _0x4206c0=_0xb0c99b;this[_0x4206c0(0x12f)]=_0x548ed7,this[_0x4206c0(0x1f2)]=_0x42416d,this['_renderManagerService']=_0x11e8bf;}[_0xb0c99b(0x4e9)](_0x2ac268){const _0x39e260=_0xb0c99b;this[_0x39e260(0x3e4)](_0x2ac268),this['_transformPreviousActiveRange'](_0x2ac268);}['transformRemoteChangeset'](_0x24d5d2){const _0xdfebe5=_0xb0c99b,{unitID:_0x230e24}=_0x24d5d2,_0x524c48=this['_renderManagerService'][_0xdfebe5(0x44b)](_0x230e24)[_0xdfebe5(0x24a)](w[_0xdfebe5(0x43f)]),{redoCache:_0x43b625}=_0x524c48[_0xdfebe5(0x4c1)]();if(_0x43b625[_0xdfebe5(0x23c)]===0x0)return _0x24d5d2;let _0x528c8c=a[_0xdfebe5(0x286)]['deepClone'](_0x24d5d2[_0xdfebe5(0x4e4)][0x0]);for(let _0x43c8c3=0x0;_0x43c8c3<_0x43b625[_0xdfebe5(0x23c)];_0x43c8c3++){const _0x666fba={'id':_0xdfebe5(0x356),'params':{..._0x43b625[_0x43c8c3]}},_0x346e32=this[_0xdfebe5(0x1f2)][_0xdfebe5(0x327)](_0x528c8c,_0x666fba,!0x1);if(_[_0xdfebe5(0x48b)](_0x346e32))throw _0x346e32[_0xdfebe5(0x4d1)];_0x528c8c=_0x346e32[_0xdfebe5(0x3dc)];}return{...a['Tools'][_0xdfebe5(0xe7)](_0x24d5d2),'mutations':[_0x528c8c]};}[_0xb0c99b(0x3e4)](_0x5789d4){const _0x541d0f=_0xb0c99b,{unitID:_0x5e7fe4}=_0x5789d4,_0x452fcc=this[_0x541d0f(0x285)][_0x541d0f(0x44b)](_0x5e7fe4)[_0x541d0f(0x24a)](w['DocIMEInputManagerService']),{undoCache:_0x10eb2e,redoCache:_0x13c5cd}=_0x452fcc[_0x541d0f(0x4c1)]();if(_0x10eb2e['length']===0x0||_0x13c5cd[_0x541d0f(0x23c)]===0x0)return;const _0x1ede26=[],_0x54b8a5=[];let _0x237dee=a[_0x541d0f(0x286)][_0x541d0f(0xe7)](_0x5789d4['mutations'][0x0]),_0x15b3e6=a[_0x541d0f(0x286)][_0x541d0f(0xe7)](_0x5789d4[_0x541d0f(0x4e4)][0x0]);for(let _0x5b0563=_0x10eb2e[_0x541d0f(0x23c)]-0x1;_0x5b0563>=0x0;_0x5b0563--){const _0x3790bf={'id':_0x541d0f(0x356),'params':{..._0x10eb2e[_0x5b0563]}},_0xb57c09={'id':_0x541d0f(0x356),'params':{..._0x13c5cd[_0x5b0563]}},_0x19bf3e=this['_transformService'][_0x541d0f(0x327)](_0x237dee,_0x3790bf,!0x1),_0x5c154a=this[_0x541d0f(0x1f2)][_0x541d0f(0x327)](_0x15b3e6,_0xb57c09,!0x1);if(_['isTransformMutationFailure'](_0x19bf3e))throw _0x19bf3e[_0x541d0f(0x4d1)];if(_[_0x541d0f(0x48b)](_0x5c154a))throw _0x5c154a[_0x541d0f(0x4d1)];_0x1ede26[_0x541d0f(0x316)](_0x19bf3e[_0x541d0f(0x200)][_0x541d0f(0x2e3)]),_0x54b8a5[_0x541d0f(0x316)](_0x5c154a[_0x541d0f(0x200)][_0x541d0f(0x2e3)]),_0x237dee=_0x19bf3e[_0x541d0f(0x3dc)],_0x15b3e6=_0x5c154a[_0x541d0f(0x3dc)];}_0x452fcc['setUndoRedoMutationParamsCache']({'undoCache':_0x1ede26,'redoCache':_0x54b8a5});}[_0xb0c99b(0x4ad)](_0x390070){const _0x4b3f43=_0xb0c99b,{unitID:_0x163a62}=_0x390070,_0x7d8691=this[_0x4b3f43(0x285)][_0x4b3f43(0x44b)](_0x163a62)[_0x4b3f43(0x24a)](w[_0x4b3f43(0x43f)]),_0x27f77e=_0x7d8691['getActiveRange']();if(_0x27f77e==null)return;const _0x2fdf8c=[{'id':_0x4b3f43(0x356),'params':{'unitId':_0x390070[_0x4b3f43(0x4c3)],'actions':null,'textRanges':[_0x27f77e]}}],_0x107767=this[_0x4b3f43(0x1f2)][_0x4b3f43(0x2d6)](_0x390070,_0x2fdf8c);if(!_[_0x4b3f43(0xf3)](_0x107767))throw _0x107767[_0x4b3f43(0x4d1)];const _0x53e0a2=_0x107767['m2Prime'][0x0]['params']['textRanges'];Array[_0x4b3f43(0x2ed)](_0x53e0a2)&&_0x53e0a2['length']&&_0x7d8691[_0x4b3f43(0x2e0)](_0x53e0a2[0x0]);}};Ie=ps([ye(0x0,a['Inject'](a[_0xb0c99b(0x41a)])),ye(0x1,_[_0xb0c99b(0x37c)]),ye(0x2,R['IRenderManagerService'])],Ie);var Cs=Object[_0xb0c99b(0x3dd)],Es=Object[_0xb0c99b(0x18e)],bs=(_0x208077,_0x36f1b2,_0x48cb08,_0x254feb)=>{const _0x57a860=_0xb0c99b;for(var _0x3ef470=_0x254feb>0x1?void 0x0:_0x254feb?Es(_0x36f1b2,_0x48cb08):_0x36f1b2,_0x3f6424=_0x208077[_0x57a860(0x23c)]-0x1,_0x333ddf;_0x3f6424>=0x0;_0x3f6424--)(_0x333ddf=_0x208077[_0x3f6424])&&(_0x3ef470=(_0x254feb?_0x333ddf(_0x36f1b2,_0x48cb08,_0x3ef470):_0x333ddf(_0x3ef470))||_0x3ef470);return _0x254feb&&_0x3ef470&&Cs(_0x36f1b2,_0x48cb08,_0x3ef470),_0x3ef470;},ae=(_0xe3f988,_0x981f2b)=>(_0x54ea91,_0x1cdd55)=>_0x981f2b(_0x54ea91,_0x1cdd55,_0xe3f988);exports[_0xb0c99b(0x2b9)]=class extends a[_0xb0c99b(0x463)]{constructor(_0x377291,_0x399923,_0x817d49,_0x4673d9,_0x5045ee){const _0x32e1b8=_0xb0c99b;super(),d(this,_0x32e1b8(0x4c4),new Map()),d(this,_0x32e1b8(0x2e9),new Map()),d(this,_0x32e1b8(0x248),!0x1),(this['_configService']=_0x377291,this['_localStorageService']=_0x399923,this[_0x32e1b8(0x2e7)]=_0x817d49,this[_0x32e1b8(0x26d)]=_0x4673d9,this[_0x32e1b8(0x217)]=_0x5045ee,this[_0x32e1b8(0x432)]());}[_0xb0c99b(0x38b)](){const _0x5982f9=_0xb0c99b;this[_0x5982f9(0x248)]=!0x0;}[_0xb0c99b(0x351)](){const _0x1a053a=_0xb0c99b;this[_0x1a053a(0x248)]=!0x1;}[_0xb0c99b(0x11c)](){const _0x4e6dc8=_0xb0c99b;this[_0x4e6dc8(0x438)]()[_0x4e6dc8(0x20e)](()=>super[_0x4e6dc8(0x11c)]());}async[_0xb0c99b(0x4e3)](_0x34baf5){const _0x48e5fe=_0xb0c99b;return this['_disabled']?null:this[_0x48e5fe(0x18d)]['getItem'](Qe(_0x34baf5));}async[_0xb0c99b(0x340)](_0x25849b,_0x794015){const _0xd7f5a7=_0xb0c99b;return!!this[_0xd7f5a7(0x18d)][_0xd7f5a7(0x4a3)](_0x25849b,_0x794015);}['updateOfflineData'](_0x286246,_0xd6c02b,_0x1b0054,_0x1c5c2b){const _0xfcfd5c=_0xb0c99b,_0x39f425=this[_0xfcfd5c(0x217)][_0xfcfd5c(0x2fa)](_0x286246);this[_0xfcfd5c(0x4c4)][_0xfcfd5c(0x4d0)](_0x286246,{'unitID':_0x286246,'type':_0xd6c02b,'awaitingChangeset':_0x1b0054,'mutations':_0x1c5c2b,'rev':_0x39f425}),this[_0xfcfd5c(0x2e9)]['has'](_0x286246)||this[_0xfcfd5c(0x416)](_0x286246);}['_scheduleSaving'](_0x453c70){const _0xa368b8=_0xb0c99b,_0x55de42=this[_0xa368b8(0x4f1)]();_0x55de42===0x0?this[_0xa368b8(0x48e)](_0x453c70):this[_0xa368b8(0x2e9)]['set'](_0x453c70,setTimeout(()=>this[_0xa368b8(0x48e)](_0x453c70),_0x55de42));}[_0xb0c99b(0x4f1)](){const _0x2f0a6a=_0xb0c99b;var _0x3dbe84;return(_0x3dbe84=this[_0x2f0a6a(0x3ec)][_0x2f0a6a(0x2aa)](ft))!=null?_0x3dbe84:Zt;}['_saveCache'](_0x1f126f){const _0x326fa4=_0xb0c99b,_0x31f55a=this['_saveTaskMap'][_0x326fa4(0x1a0)](_0x1f126f);return _0x31f55a!==void 0x0&&window['clearTimeout'](_0x31f55a),this[_0x326fa4(0x18d)][_0x326fa4(0x4a3)](Qe(_0x1f126f),this['_cachedData'][_0x326fa4(0x1a0)](_0x1f126f))[_0x326fa4(0x20e)](()=>this[_0x326fa4(0x2e9)][_0x326fa4(0x456)](_0x1f126f));}async['exhaustSavingTask'](){const _0x2cbe44=_0xb0c99b,_0x1e046f=[];this[_0x2cbe44(0x2e9)][_0x2cbe44(0x1cb)]((_0x298262,_0x14657e)=>{const _0x4989b7=_0x2cbe44;window[_0x4989b7(0x38d)](_0x298262),_0x1e046f[_0x4989b7(0x2da)](this[_0x4989b7(0x48e)](_0x14657e)['then'](()=>{const _0x2e64c9=_0x4989b7;this['_saveTaskMap'][_0x2e64c9(0x456)](_0x14657e);}));}),await Promise[_0x2cbe44(0x4e7)](_0x1e046f);}['_setupBeforeClosingHandler'](){const _0x45f148=_0xb0c99b;this[_0x45f148(0x3d3)](this[_0x45f148(0x2e7)][_0x45f148(0x3ca)](()=>{const _0x2ed9f0=_0x45f148;if(this[_0x2ed9f0(0x2e9)][_0x2ed9f0(0x40e)])return this[_0x2ed9f0(0x26d)]['t'](_0x2ed9f0(0x194));}));}},exports[_0xb0c99b(0x2b9)]=bs([ae(0x0,a[_0xb0c99b(0x195)]),ae(0x1,a[_0xb0c99b(0x273)]),ae(0x2,N[_0xb0c99b(0x221)]),ae(0x3,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),ae(0x4,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)]))],exports[_0xb0c99b(0x2b9)]);function Qe(_0x13d9c1){const _0x50fac0=_0xb0c99b;return _0x50fac0(0x3df)+_0x13d9c1;}var Ts=Object['defineProperty'],Rs=Object['getOwnPropertyDescriptor'],Os=(_0x31f434,_0x1e4ce5,_0x13fabf,_0x2aef68)=>{const _0x4ad737=_0xb0c99b;for(var _0x114012=_0x2aef68>0x1?void 0x0:_0x2aef68?Rs(_0x1e4ce5,_0x13fabf):_0x1e4ce5,_0x10b753=_0x31f434[_0x4ad737(0x23c)]-0x1,_0x4841b6;_0x10b753>=0x0;_0x10b753--)(_0x4841b6=_0x31f434[_0x10b753])&&(_0x114012=(_0x2aef68?_0x4841b6(_0x1e4ce5,_0x13fabf,_0x114012):_0x4841b6(_0x114012))||_0x114012);return _0x2aef68&&_0x114012&&Ts(_0x1e4ce5,_0x13fabf,_0x114012),_0x114012;},Ue=(_0x58a447,_0x33e9a3)=>(_0x2649d6,_0x2ec1d7)=>_0x33e9a3(_0x2649d6,_0x2ec1d7,_0x58a447);function Ds(_0x3420ed){const _0x182451=_0xb0c99b,{unitID:_0x53af49,mutations:_0x2a67a5}=_0x3420ed;return{'unitId':_0x53af49,'subUnitId':_0x2a67a5[0x0][_0x182451(0x2e3)][_0x182451(0x19b)]};}let pe=class{constructor(_0x3c1869,_0x178654,_0x3ecc1f){const _0x58834b=_0xb0c99b;this[_0x58834b(0x12f)]=_0x3c1869,this[_0x58834b(0x1f2)]=_0x178654,this[_0x58834b(0x2a1)]=_0x3ecc1f;}[_0xb0c99b(0x468)](_0x261ad8){const _0xa3dba3=_0xb0c99b;var _0xd971b4,_0x2efa51,_0x246048,_0x7b02b1;const _0xb3a0c9=this[_0xa3dba3(0x12f)][_0xa3dba3(0x1a0)](C['SheetsSelectionsService']),{unitId:_0x27ce67,subUnitId:_0x514254}=Ds(_0x261ad8),_0xde6896=_0xb3a0c9[_0xa3dba3(0x2dc)](_0x27ce67)['getCurrentSelections'](),_0x5ad58d=(_0x2efa51=(_0xd971b4=this['_instanceService']['getUnit'](_0x27ce67))==null?void 0x0:_0xd971b4[_0xa3dba3(0x1ba)]())==null?void 0x0:_0x2efa51['getSheetId']();if(_0xde6896['length']===0x0||!_0x27ce67||!_0x514254)return;const _0xb6f881=[{'id':C[_0xa3dba3(0x40a)]['id'],'params':{'unitId':_0x27ce67,'subUnitId':_0x5ad58d,'selections':a[_0xa3dba3(0x286)]['deepClone'](_0xde6896)}}],_0x190f69=this[_0xa3dba3(0x1f2)][_0xa3dba3(0x2d6)](_0x261ad8,_0xb6f881);if(!_[_0xa3dba3(0xf3)](_0x190f69))throw _0x190f69[_0xa3dba3(0x4d1)];const _0x1e672b=(_0x7b02b1=(_0x246048=_0x190f69[_0xa3dba3(0x200)][0x0])==null?void 0x0:_0x246048[_0xa3dba3(0x2e3)])==null?void 0x0:_0x7b02b1['selections'];Array[_0xa3dba3(0x2ed)](_0x1e672b)&&_0x1e672b[_0xa3dba3(0x23c)]&&this[_0xa3dba3(0x12f)]['get'](a['ICommandService'])['executeCommand'](C[_0xa3dba3(0x40a)]['id'],{'unitId':_0x27ce67,'subUnitId':_0x5ad58d,'selections':_0x1e672b});}};pe=Os([Ue(0x0,a[_0xb0c99b(0x455)](a['Injector'])),Ue(0x1,_['ITransformService']),Ue(0x2,a[_0xb0c99b(0x49b)])],pe);const Te=a[_0xb0c99b(0xe6)]('univer-pro.collaboration-client.single-active-unit-service');var bt=(_0x24c946=>(_0x24c946[_0x24c946[_0xb0c99b(0x20f)]=0x0]=_0xb0c99b(0x20f),_0x24c946[_0x24c946[_0xb0c99b(0x309)]=0x1]=_0xb0c99b(0x309),_0x24c946))(bt||{});const et=0x7530,tt=_0xb0c99b(0x378);class ys extends a[_0xb0c99b(0x463)]{constructor(){const _0x2e81f9=_0xb0c99b;super(),d(this,_0x2e81f9(0x175),a[_0x2e81f9(0x286)][_0x2e81f9(0x36a)]()),d(this,'_selfUnitIDs',new Set()),d(this,_0x2e81f9(0x338),new Map()),d(this,'_heartbeatTimer',null),d(this,_0x2e81f9(0x47d),new Map()),d(this,_0x2e81f9(0x4b3),new Map()),this[_0x2e81f9(0x41f)]();}[_0xb0c99b(0x11c)](){const _0x5b9f9e=_0xb0c99b;super[_0x5b9f9e(0x11c)](),this[_0x5b9f9e(0x47d)][_0x5b9f9e(0x1cb)]((_0x36202b,_0x2b6012)=>this[_0x5b9f9e(0x497)](_0x2b6012)),this[_0x5b9f9e(0x4ea)]&&window['clearInterval'](this[_0x5b9f9e(0x4ea)]);}[_0xb0c99b(0x3e5)](_0x51af76){const _0x34d93d=_0xb0c99b;return this[_0x34d93d(0x10b)](_0x51af76)[_0x34d93d(0x3a7)](v[_0x34d93d(0x49c)]());}[_0xb0c99b(0x491)](_0x43990f){const _0x9f2ed7=_0xb0c99b;this[_0x9f2ed7(0x119)]['size']===0x0&&this[_0x9f2ed7(0x1db)](),this[_0x9f2ed7(0x119)][_0x9f2ed7(0x143)](_0x43990f),this['_send']({'type':0x0,'memberID':this[_0x9f2ed7(0x175)],'unitIDs':[_0x43990f],'isForwarded':!0x1});}[_0xb0c99b(0x1fc)](_0x41c7dc){const _0x583c17=_0xb0c99b;this['_selfUnitIDs'][_0x583c17(0x456)](_0x41c7dc),this[_0x583c17(0x119)][_0x583c17(0x40e)]===0x0&&this[_0x583c17(0x4ea)]&&window[_0x583c17(0x4a8)](this['_heartbeatTimer']);}[_0xb0c99b(0x41f)](){const _0x4ab484=_0xb0c99b;this['disposeWithMe'](a[_0x4ab484(0x2ef)](v['fromEvent'](window,_0x4ab484(0x181))[_0x4ab484(0x33b)](_0x15f150=>{const _0x334f06=_0x4ab484;if(_0x15f150[_0x334f06(0x22b)]!==tt||!_0x15f150[_0x334f06(0x4bc)])return;const _0x4b7c7b=JSON['parse'](_0x15f150[_0x334f06(0x4bc)]);this[_0x334f06(0x406)](_0x4b7c7b);}))),window[_0x4ab484(0x4e2)](_0x4ab484(0x22c),()=>this[_0x4ab484(0x329)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4ab484(0x4da)](this[_0x4ab484(0x119)])}));}[_0xb0c99b(0x406)](_0x52f590){const _0x4f777d=_0xb0c99b;switch(_0x52f590[_0x4f777d(0x498)]){case 0x0:this['_handleJoinEvent'](_0x52f590);break;case 0x1:this[_0x4f777d(0x4f0)](_0x52f590);break;case 0x2:this[_0x4f777d(0x3c9)](_0x52f590);break;}}[_0xb0c99b(0x4a0)](_0x4bac7a){const _0x3ac378=_0xb0c99b,{unitIDs:_0x49ec8c,memberID:_0x1fb1a6,isForwarded:_0x1a3baf}=_0x4bac7a;_0x49ec8c[_0x3ac378(0x1cb)](_0x48dbbf=>{const _0x5262ed=_0x3ac378;if(!_0x1a3baf&&this[_0x5262ed(0x338)][_0x5262ed(0x191)](_0x48dbbf)&&this[_0x5262ed(0x10b)](_0x48dbbf)[_0x5262ed(0x3c7)](0x1),!this['_unitOnClients'][_0x5262ed(0x191)](_0x48dbbf)||!this[_0x5262ed(0x338)][_0x5262ed(0x1a0)](_0x48dbbf)[_0x5262ed(0x191)](_0x1fb1a6)){const _0x243ede=this[_0x5262ed(0x338)][_0x5262ed(0x1a0)](_0x48dbbf)||new Set();_0x243ede[_0x5262ed(0x143)](_0x1fb1a6),this[_0x5262ed(0x338)]['set'](_0x48dbbf,_0x243ede),this[_0x5262ed(0x488)](_0x1fb1a6);}}),_0x1a3baf||this[_0x3ac378(0x329)]({'type':0x0,'memberID':this[_0x3ac378(0x175)],'unitIDs':[...this[_0x3ac378(0x119)]],'isForwarded':!0x0});}[_0xb0c99b(0x488)](_0x565533){const _0x40858d=_0xb0c99b;this['_removeClearOtherTimer'](_0x565533);const _0x32dcd5=window['setTimeout'](()=>{const _0x4e764f=_0x4e0f;this[_0x4e764f(0x338)][_0x4e764f(0x1cb)](_0xae9da0=>{const _0x467493=_0x4e764f;_0xae9da0[_0x467493(0x456)](_0x565533);});},et*0x2);this[_0x40858d(0x47d)][_0x40858d(0x4d0)](_0x565533,_0x32dcd5);}[_0xb0c99b(0x497)](_0x5b8996){const _0x452161=_0xb0c99b;if(this[_0x452161(0x47d)][_0x452161(0x191)](_0x5b8996)){const _0x14c480=this[_0x452161(0x47d)][_0x452161(0x1a0)](_0x5b8996);_0x14c480&&window['clearTimeout'](_0x14c480),this[_0x452161(0x47d)][_0x452161(0x4d0)](_0x5b8996,null);}}[_0xb0c99b(0x4f0)](_0x1cdd44){const {memberID:_0x317d59,unitIDs:_0x4bc616}=_0x1cdd44;_0x4bc616['forEach'](_0x40f2a8=>{const _0x35a146=_0x4e0f;var _0x130fc5;const _0x45cbc5=this[_0x35a146(0x338)]['get'](_0x40f2a8);_0x45cbc5&&(_0x45cbc5[_0x35a146(0x456)](_0x317d59),(_0x130fc5=this[_0x35a146(0x10b)](_0x40f2a8))==null||_0x130fc5[_0x35a146(0x3c7)](_0x45cbc5[_0x35a146(0x40e)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x317d59);}[_0xb0c99b(0x3c9)](_0x45788c){const _0x1d85ea=_0xb0c99b;this[_0x1d85ea(0x488)](_0x45788c[_0x1d85ea(0x37a)]);}[_0xb0c99b(0x329)](_0x46cc4b){const _0x3f530a=_0xb0c99b;localStorage['setItem'](tt,JSON[_0x3f530a(0x36d)](_0x46cc4b));}[_0xb0c99b(0x1db)](){const _0x44a6d9=_0xb0c99b;this[_0x44a6d9(0x4ea)]=window['setInterval'](()=>{const _0x499fde=_0x44a6d9;this[_0x499fde(0x329)]({'type':0x2,'memberID':this[_0x499fde(0x175)]});},et);}['_ensureSubject'](_0x52b568){const _0x555921=_0xb0c99b;return this[_0x555921(0x4b3)][_0x555921(0x191)](_0x52b568)||this[_0x555921(0x4b3)][_0x555921(0x4d0)](_0x52b568,new v[(_0x555921(0x4b1))](0x0)),this['_unitStatus'][_0x555921(0x1a0)](_0x52b568);}}function Tt(_0x228268){const _0x297dc4=_0xb0c99b;let _0x23607c='';for(const _0x1d0d5b of _0x228268){const {startOffset:_0x30237f,endOffset:_0x2332c4,isActive:_0x520ead}=_0x1d0d5b;_0x23607c[_0x297dc4(0x23c)]&&(_0x23607c+=','),_0x23607c+=_0x30237f+':'+_0x2332c4+':'+(_0x520ead?'1':'0');}return _0x23607c;}function Us(_0x504242){const _0x3e6f03=_0xb0c99b,_0x23561b=_0x504242[_0x3e6f03(0x121)](','),_0xbe6e84=[];for(const _0x109a6b of _0x23561b){const [_0x3d7cd0,_0x2d3924,_0x483128]=_0x109a6b['split'](':');_0xbe6e84['push']({'startOffset':Number(_0x3d7cd0),'endOffset':Number(_0x2d3924),'collapsed':_0x3d7cd0===_0x2d3924,'isActive':_0x483128==='1'});}return _0xbe6e84[_0x3e6f03(0x1d5)](_0x28aac2=>_0x28aac2[_0x3e6f03(0x388)])||(_0xbe6e84[0x0]['isActive']=!0x0),_0xbe6e84;}class Ye extends a[_0xb0c99b(0x3c1)]{constructor(){const _0x55d7dd=_0xb0c99b;super(...arguments),d(this,_0x55d7dd(0x2cb),new v[(_0x55d7dd(0x4b1))](null)),d(this,_0x55d7dd(0x185),this[_0x55d7dd(0x2cb)]['asObservable']());}[_0xb0c99b(0x13f)](_0x369f46){const _0x1277fe=_0xb0c99b,{unitID:_0x4183f2,memberID:_0x178d7d,textRanges:_0x527aa7}=_0x369f46,_0x1ac9b5=Tt(_0x527aa7),_0x38f5bd={'unitID':_0x4183f2,'memberID':_0x178d7d,'selection':_0x1ac9b5};this[_0x1277fe(0x2cb)][_0x1277fe(0x3c7)](_0x38f5bd);}}var Ps=Object['defineProperty'],ws=Object['getOwnPropertyDescriptor'],Ms=(_0x4f07ee,_0x2a4373,_0xd1cd7,_0x493517)=>{const _0x5d7ae0=_0xb0c99b;for(var _0x5848e6=_0x493517>0x1?void 0x0:_0x493517?ws(_0x2a4373,_0xd1cd7):_0x2a4373,_0x5879ad=_0x4f07ee[_0x5d7ae0(0x23c)]-0x1,_0x170a70;_0x5879ad>=0x0;_0x5879ad--)(_0x170a70=_0x4f07ee[_0x5879ad])&&(_0x5848e6=(_0x493517?_0x170a70(_0x2a4373,_0xd1cd7,_0x5848e6):_0x170a70(_0x5848e6))||_0x5848e6);return _0x493517&&_0x5848e6&&Ps(_0x2a4373,_0xd1cd7,_0x5848e6),_0x5848e6;},st=(_0x3e179a,_0x613ef5)=>(_0x9554d3,_0x26341f)=>_0x613ef5(_0x9554d3,_0x26341f,_0x3e179a);let Ce=class{constructor(_0x120579,_0x2bac3e){const _0x3df009=_0xb0c99b;this[_0x3df009(0x12f)]=_0x120579,this[_0x3df009(0x1f2)]=_0x2bac3e;}[_0xb0c99b(0x468)](_0x37364a){const _0x5daddf=_0xb0c99b;var _0x28e584;const _0x3ad24b=this[_0x5daddf(0x12f)]['get'](V[_0x5daddf(0x1b0)]),_0x18712d=(_0x28e584=_0x3ad24b[_0x5daddf(0x132)]())!=null?_0x28e584:[];if(_0x18712d['length']===0x0)return;const _0x253dbf=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x37364a[_0x5daddf(0x4c3)],'actions':null,'textRanges':_0x18712d}}],_0x3522a4=this[_0x5daddf(0x1f2)][_0x5daddf(0x2d6)](_0x37364a,_0x253dbf);if(!_[_0x5daddf(0xf3)](_0x3522a4))throw _0x3522a4[_0x5daddf(0x4d1)];const _0x57a957=_0x3522a4[_0x5daddf(0x200)][0x0][_0x5daddf(0x2e3)]['textRanges'];Array[_0x5daddf(0x2ed)](_0x57a957)&&_0x57a957[_0x5daddf(0x23c)]&&_0x3ad24b[_0x5daddf(0x32c)](_0x57a957,!0x1);}};Ce=Ms([st(0x0,a[_0xb0c99b(0x455)](a['Injector'])),st(0x1,_['ITransformService'])],Ce);const Ns=new Set([C[_0xb0c99b(0x198)]['id']]);function it(_0x548a10,_0x31c9d3,_0xbb3092,_0x383d57,_0x4d0b87){const _0x2b6501=_0xb0c99b;var _0x2ada3e,_0x500e0d,_0x64c9cb,_0x346f7d;const _0x2e4d25=[];for(const _0x3f0be6 of _0x548a10)if(Ns[_0x2b6501(0x191)](_0x3f0be6['id'])){if(_0x2e4d25['length']>0x0)break;_0x2e4d25[_0x2b6501(0x2da)](_0x3f0be6);break;}else _0x2e4d25['push'](_0x3f0be6);const _0x3e942c=(_0x500e0d=(_0x2ada3e=_0x4d0b87[_0x2b6501(0x348)]())==null?void 0x0:_0x2ada3e['userID'])!=null?_0x500e0d:'unknown',_0x2249fa=(_0x346f7d=(_0x64c9cb=_0x4d0b87[_0x2b6501(0x348)]())==null?void 0x0:_0x64c9cb[_0x2b6501(0x37a)])!=null?_0x346f7d:_0x2b6501(0x206);return{'changeset':{'unitID':_0x31c9d3,'type':_[_0x2b6501(0x287)](_0xbb3092['getUnitType'](_0x31c9d3)),'baseRev':_0x383d57[_0x2b6501(0x2fa)](_0x31c9d3),'revision':0x0,'userID':_0x3e942c,'memberID':_0x2249fa,'mutations':_0x2e4d25},'pendingMutations':_0x548a10['slice'](_0x2e4d25[_0x2b6501(0x23c)])};}function Ls(_0x79d85,_0x1a077b,_0x5ac338,_0x31ed75,_0x59b4a1){const _0x52f857=_0xb0c99b;var _0x57290e,_0x19233e,_0x3bcc6b,_0x7c1450;const _0x54872a=[_0x79d85[_0x52f857(0x4a5)]((_0x1e4b55,_0x545543)=>{const _0x211b5=_0x52f857;var _0x37be25;const {id:_0x129363}=_0x1e4b55,{id:_0x53d7e4,type:_0xc51594}=_0x545543,_0x18a1ff=(_0x37be25=_0x1e4b55[_0x211b5(0x2e3)])!=null?_0x37be25:{'actions':null},_0x1309cf=_0x545543[_0x211b5(0x2e3)];if(_0x129363&&_0x129363!==_0x53d7e4)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x129363+_0x211b5(0x473)+_0x53d7e4+'.');return{..._0x1e4b55,'id':_0x53d7e4,'type':_0xc51594,'params':{'unitId':_0x1309cf['unitId'],'textRanges':_0x1309cf['textRanges'],'actions':a[_0x211b5(0x264)][_0x211b5(0x298)](_0x18a1ff[_0x211b5(0xff)],_0x1309cf[_0x211b5(0xff)])}};},{})],_0x4bb2ae=(_0x19233e=(_0x57290e=_0x59b4a1[_0x52f857(0x348)]())==null?void 0x0:_0x57290e[_0x52f857(0x2d7)])!=null?_0x19233e:_0x52f857(0x206),_0xa63dde=(_0x7c1450=(_0x3bcc6b=_0x59b4a1[_0x52f857(0x348)]())==null?void 0x0:_0x3bcc6b[_0x52f857(0x37a)])!=null?_0x7c1450:_0x52f857(0x206);return{'changeset':{'unitID':_0x1a077b,'type':_[_0x52f857(0x287)](_0x5ac338[_0x52f857(0x2ab)](_0x1a077b)),'baseRev':_0x31ed75['getCurrentRevOfUnit'](_0x1a077b),'revision':0x0,'userID':_0x4bb2ae,'memberID':_0xa63dde,'mutations':_0x54872a},'pendingMutations':[]};}const As={'id':C[_0xb0c99b(0x44c)]['id'],'type':a[_0xb0c99b(0x1a2)][_0xb0c99b(0x293)],'params':{}};var $s=Object[_0xb0c99b(0x3dd)],js=Object['getOwnPropertyDescriptor'],z=(_0x290628,_0x140302,_0x4ef47b,_0x4e39d4)=>{const _0x3dbc43=_0xb0c99b;for(var _0x506cc0=_0x4e39d4>0x1?void 0x0:_0x4e39d4?js(_0x140302,_0x4ef47b):_0x140302,_0x16567b=_0x290628[_0x3dbc43(0x23c)]-0x1,_0x36e342;_0x16567b>=0x0;_0x16567b--)(_0x36e342=_0x290628[_0x16567b])&&(_0x506cc0=(_0x4e39d4?_0x36e342(_0x140302,_0x4ef47b,_0x506cc0):_0x36e342(_0x506cc0))||_0x506cc0);return _0x4e39d4&&_0x506cc0&&$s(_0x140302,_0x4ef47b,_0x506cc0),_0x506cc0;},g=(_0x5116ea,_0x188007)=>(_0xc31149,_0x58cbde)=>_0x188007(_0xc31149,_0x58cbde,_0x5116ea),y=(_0x3eb1c5=>(_0x3eb1c5[_0xb0c99b(0x3eb)]=_0xb0c99b(0xe9),_0x3eb1c5[_0xb0c99b(0x2c2)]=_0xb0c99b(0x46f),_0x3eb1c5[_0xb0c99b(0x256)]=_0xb0c99b(0x3f6),_0x3eb1c5[_0xb0c99b(0x1b4)]=_0xb0c99b(0x21a),_0x3eb1c5[_0xb0c99b(0x3de)]='awaiting_with_pending',_0x3eb1c5[_0xb0c99b(0x3d9)]=_0xb0c99b(0x454),_0x3eb1c5[_0xb0c99b(0x229)]=_0xb0c99b(0x244),_0x3eb1c5[_0xb0c99b(0x4ed)]=_0xb0c99b(0x1b8),_0x3eb1c5))(y||{});class J{constructor(_0x3f9add,_0x2d8087,_0x4a2f05,_0x4c4fe8,_0x164d1a,_0x2bb6a5,_0x245fc5,_0x1b5562,_0x2c3812){const _0x470ced=_0xb0c99b;d(this,_0x470ced(0x492),null),d(this,_0x470ced(0x3a8),[]),(this[_0x470ced(0x4c3)]=_0x3f9add,this['type']=_0x2d8087,this[_0x470ced(0xfc)]=_0x164d1a,this['_commandService']=_0x2bb6a5,this[_0x470ced(0x4c7)]=_0x245fc5,this[_0x470ced(0x217)]=_0x1b5562,this[_0x470ced(0x40b)]=_0x2c3812,this['_awaitingChangeset']=_0x4a2f05,this[_0x470ced(0x3a8)]=_0x4c4fe8);}[_0xb0c99b(0x39c)](_0x7d0f5f){const _0x10a3c7=_0xb0c99b,_0x11dfb9=this[_0x10a3c7(0x217)]['getCurrentRevOfUnit'](this[_0x10a3c7(0x4c3)]);return _0x7d0f5f[_0x10a3c7(0x1b9)]>_0x11dfb9+0x1?(this[_0x10a3c7(0xfc)][_0x10a3c7(0x459)]({'from':_0x11dfb9,'to':_0x7d0f5f[_0x10a3c7(0x1b9)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x3817b0){const _0x59408c=_0xb0c99b;this[_0x59408c(0x4c7)]['transformUndoRedo'](this[_0x59408c(0x4c3)],_0x3817b0);}[_0xb0c99b(0x124)](_0x150a28){const _0xbb0ef7=_0xb0c99b;var _0x360b66,_0x2b8228;(_0x2b8228=(_0x360b66=this[_0xbb0ef7(0xfc)])[_0xbb0ef7(0x1e4)])==null||_0x2b8228[_0xbb0ef7(0x2f5)](_0x360b66,_0x150a28);}[_0xb0c99b(0x225)](_0x4bee9e){const _0x1916c3=_0xb0c99b;var _0x5aaade,_0x2a2cb0;return(_0x2a2cb0=(_0x5aaade=this['_handler'])[_0x1916c3(0x1f6)])==null?void 0x0:_0x2a2cb0[_0x1916c3(0x2f5)](_0x5aaade,_0x4bee9e);}['_transformRemoteChangesetByIMECache'](_0x3b1b2c){const _0x121751=_0xb0c99b;var _0x35c944,_0x17828d,_0x41cd65;return(_0x41cd65=(_0x17828d=(_0x35c944=this[_0x121751(0xfc)])[_0x121751(0x2f3)])==null?void 0x0:_0x17828d[_0x121751(0x2f5)](_0x35c944,_0x3b1b2c))!=null?_0x41cd65:_0x3b1b2c;}[_0xb0c99b(0x381)](_0x477bb3){const _0xd0c8eb=_0xb0c99b;var _0xd45f2e,_0x999414;if(this[_0xd0c8eb(0x498)]===$['UNIVER_DOC']){const {unitID:_0x788b47,mutations:_0x199538,memberID:_0x5828a1}=_0x477bb3,_0x17ca7e=_0x199538[0x0]['params'][_0xd0c8eb(0x422)];Array[_0xd0c8eb(0x2ed)](_0x17ca7e)&&_0x17ca7e['length']>0x0&&((_0x999414=(_0xd45f2e=this[_0xd0c8eb(0xfc)])[_0xd0c8eb(0x317)])==null||_0x999414[_0xd0c8eb(0x2f5)](_0xd45f2e,{'unitID':_0x788b47,'memberID':_0x5828a1,'textRanges':_0x17ca7e}));}}['_updateLocalCache'](){const _0xfcf5af=_0xb0c99b;this[_0xfcf5af(0x40b)][_0xfcf5af(0x4c5)](this[_0xfcf5af(0x4c3)],this[_0xfcf5af(0x498)],this[_0xfcf5af(0x492)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x5b2dad=_0xb0c99b;return this[_0x5b2dad(0x217)][_0x5b2dad(0x2fa)](this[_0x5b2dad(0x4c3)]);}[_0xb0c99b(0x2cc)](){const _0xc86671=_0xb0c99b;this[_0xc86671(0x217)][_0xc86671(0x1c3)](this[_0xc86671(0x4c3)]);}['_executeRemoteChangeset'](_0xbf66b){const _0x3e3ee2=_0xb0c99b;var _0x46aee2;const _0x1bff77=this[_0x3e3ee2(0x20c)](_0xbf66b),_0x184db8=a[_0x3e3ee2(0x215)](_0x1bff77[_0x3e3ee2(0x4e4)],this[_0x3e3ee2(0x425)],{'fromCollab':!0x0});if(!_0x184db8[_0x3e3ee2(0x137)])throw _0x184db8['error']instanceof Error?_0x184db8[_0x3e3ee2(0x4d1)]:new Error((_0x46aee2=_0x184db8[_0x3e3ee2(0x4d1)])!=null?_0x46aee2:_0x3e3ee2(0x1f5));this[_0x3e3ee2(0x225)](_0x1bff77),this[_0x3e3ee2(0x2f9)](_0xbf66b),this[_0x3e3ee2(0x124)](_0x1bff77),this[_0x3e3ee2(0x381)](_0x1bff77),this[_0x3e3ee2(0x2cc)]();}}let ie=class extends J{constructor(_0xe73905,_0x2f57b0,_0x2a5c7f,_0x3cff7e,_0x2ee7a9,_0x1e6ebf,_0x3a5e0f,_0x534f01,_0x180b17,_0x6e2cd8){const _0x4df734=_0xb0c99b;super(_0xe73905,_0x2f57b0,null,[],_0x2a5c7f,_0x534f01,_0x3a5e0f,_0x3cff7e,_0x2ee7a9),d(this,'status',_0x4df734(0x46f)),(this[_0x4df734(0x12f)]=_0x1e6ebf,this[_0x4df734(0x3cd)]=_0x180b17,this[_0x4df734(0x1f2)]=_0x6e2cd8);}['appendMutation'](_0x3b8aab){const _0x10d355=_0xb0c99b,_0x39e83d=this['_injector'][_0x10d355(0x29b)](x,this['unitID'],this['type'],[_0x3b8aab],this[_0x10d355(0xfc)]);return _0x39e83d[_0x10d355(0x129)](),_0x39e83d[_0x10d355(0x142)](),_0x39e83d;}[_0xb0c99b(0x27d)](_0x3f4f5d){const _0xa9a610=_0xb0c99b;if(this['_checkMissing'](_0x3f4f5d))return this['_injector'][_0xa9a610(0x29b)](H,this[_0xa9a610(0x4c3)],this['type'],null,[],null,[_0x3f4f5d],this['_handler']);try{const _0x4478ce=this[_0xa9a610(0x1f2)][_0xa9a610(0x2d6)](_0x3f4f5d,[As]);if(_[_0xa9a610(0xf3)](_0x4478ce)){const {c1Prime:_0x561355}=_0x4478ce;return this[_0xa9a610(0x3e2)](_0x561355),this;}throw _0x4478ce['error'];}catch(_0x203ee0){return this[_0xa9a610(0x3cd)]['error'](_0x203ee0),this[_0xa9a610(0x1dd)](!0x1);}}['_onConflict'](_0x3e0a61){const _0x48f2b9=_0xb0c99b;return this[_0x48f2b9(0x12f)]['createInstance'](F,this[_0x48f2b9(0x4c3)],this[_0x48f2b9(0x498)],null,[],this[_0x48f2b9(0xfc)],_0x3e0a61);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0xb0c99b(0x3aa)](){const _0x2a57cc=_0xb0c99b;throw new Error(_0x2a57cc(0x2e5));}['toggleOffline'](){const _0x2a6ef2=_0xb0c99b;return this[_0x2a6ef2(0x12f)][_0x2a6ef2(0x29b)](G,this['unitID'],this['type'],null,[],this[_0x2a6ef2(0xfc)]);}[_0xb0c99b(0x222)](){return this;}[_0xb0c99b(0x1b7)](){const _0x172966=_0xb0c99b;throw new Error(_0x172966(0x3a9));}[_0xb0c99b(0x3a0)](){const _0x51bec3=_0xb0c99b,_0xf45625=this[_0x51bec3(0x217)]['getCurrentRevOfUnit'](this['unitID']);return this['_handler']['onMissingChangesets']({'from':_0xf45625,'to':0x0}),this['_injector'][_0x51bec3(0x29b)](H,this[_0x51bec3(0x4c3)],this[_0x51bec3(0x498)],null,[],null,[],this[_0x51bec3(0xfc)]);}};ie=z([g(0x3,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x4,a['Inject'](exports['LocalCacheService'])),g(0x5,a[_0xb0c99b(0x455)](a['Injector'])),g(0x6,a['IUndoRedoService']),g(0x7,a[_0xb0c99b(0x47e)]),g(0x8,a[_0xb0c99b(0x2b2)]),g(0x9,_[_0xb0c99b(0x37c)])],ie);let x=class extends J{constructor(_0x2d1e46,_0x4ef925,_0x5bc021,_0x213997,_0x4ff8db,_0x5ac162,_0x238d5b,_0x28c761,_0x20d48a,_0x4b4fa7,_0x3002ea,_0x495bcf,_0x4319cc,_0x504bca){const _0x28b52c=_0xb0c99b;super(_0x2d1e46,_0x4ef925,null,_0x5bc021,_0x213997,_0x4b4fa7,_0x504bca,_0x5ac162,_0x238d5b),d(this,'status',_0x28b52c(0x3f6)),d(this,_0x28b52c(0x49a),null),d(this,_0x28b52c(0x44a),null),(this[_0x28b52c(0x12f)]=_0x4ff8db,this[_0x28b52c(0x3f3)]=_0x28c761,this['_logService']=_0x20d48a,this[_0x28b52c(0x3ec)]=_0x3002ea,this[_0x28b52c(0x1f2)]=_0x495bcf,this[_0x28b52c(0x3fb)]=_0x4319cc);}[_0xb0c99b(0x453)](_0x4c4535){const _0x2874f0=_0xb0c99b;return this[_0x2874f0(0x3a8)][_0x2874f0(0x2da)](_0x4c4535),this[_0x2874f0(0x142)](),this;}[_0xb0c99b(0x27d)](_0xeb42b5){const _0x2c624d=_0xb0c99b;if(this['_checkMissing'](_0xeb42b5))return this[_0x2c624d(0x461)](),this[_0x2c624d(0x12f)][_0x2c624d(0x29b)](H,this[_0x2c624d(0x4c3)],this[_0x2c624d(0x498)],null,this[_0x2c624d(0x3a8)],null,[_0xeb42b5],this['_handler']);try{const _0x42aa11=this['_transformService'][_0x2c624d(0x2d6)](_0xeb42b5,this[_0x2c624d(0x3a8)]);if(_[_0x2c624d(0xf3)](_0x42aa11)){const {c1Prime:_0xadf96f,m2Prime:_0x427ead}=_0x42aa11;this[_0x2c624d(0x3e2)](_0xadf96f);const _0x27df70=this[_0x2c624d(0x12f)][_0x2c624d(0x29b)](x,this[_0x2c624d(0x4c3)],this[_0x2c624d(0x498)],_0x427ead,this['_handler']);return this[_0x2c624d(0x461)](),_0x27df70['_schedule'](this[_0x2c624d(0x49a)]?Math[_0x2c624d(0x452)](0x0,new Date()[_0x2c624d(0x1b3)]()-this[_0x2c624d(0x49a)]):this[_0x2c624d(0x43c)]()),_0x27df70;}throw _0x42aa11[_0x2c624d(0x4d1)];}catch(_0xbe29a3){return this[_0x2c624d(0x3cd)]['error'](_0xbe29a3),this['_onConflict'](!0x1);}}[_0xb0c99b(0x390)](){const _0x58f005=_0xb0c99b;throw new Error(_0x58f005(0xf1));}['onRemoteRej'](){const _0xac8497=_0xb0c99b;throw new Error(_0xac8497(0x177));}[_0xb0c99b(0x4cb)](){const _0x369dcf=_0xb0c99b;return this[_0x369dcf(0x461)](),this[_0x369dcf(0x12f)][_0x369dcf(0x29b)](G,this[_0x369dcf(0x4c3)],this['type'],null,this[_0x369dcf(0x3a8)],this[_0x369dcf(0xfc)]);}['toggleOnline'](){return this;}['_schedule'](_0x5ce163){const _0x49828a=_0xb0c99b,_0x373465=_0x5ce163!=null?_0x5ce163:this[_0x49828a(0x43c)]();this[_0x49828a(0x49a)]=new Date()[_0x49828a(0x1b3)](),this[_0x49828a(0x44a)]=window[_0x49828a(0x2f0)](()=>{const _0x394ce3=_0x49828a;this['_clearScheduledTask']();let _0x23ddab=null;switch(this[_0x394ce3(0x498)]){case $['UNIVER_SHEET']:{_0x23ddab=it(this['_pendingMutations'],this[_0x394ce3(0x4c3)],this[_0x394ce3(0x3fb)],this[_0x394ce3(0x217)],this['_memberService']);break;}case $[_0x394ce3(0x254)]:{this['_pendingMutations']['every'](_0xbb8cf1=>_0xbb8cf1['id']===V[_0x394ce3(0x396)]['id'])?_0x23ddab=Ls(this[_0x394ce3(0x3a8)],this[_0x394ce3(0x4c3)],this[_0x394ce3(0x3fb)],this[_0x394ce3(0x217)],this[_0x394ce3(0x3f3)]):_0x23ddab=it(this[_0x394ce3(0x3a8)],this[_0x394ce3(0x4c3)],this[_0x394ce3(0x3fb)],this[_0x394ce3(0x217)],this['_memberService']);break;}default:throw new Error(_0x394ce3(0x439)+this[_0x394ce3(0x498)]+_0x394ce3(0x168));}const {changeset:_0x2237f0,pendingMutations:_0x1a49e8}=_0x23ddab;this[_0x394ce3(0xfc)]['onSendChangeset'](_0x2237f0);const _0x576f54=_0x1a49e8[_0x394ce3(0x23c)]?this[_0x394ce3(0x12f)][_0x394ce3(0x29b)](k,this[_0x394ce3(0x4c3)],this[_0x394ce3(0x498)],_0x2237f0,_0x1a49e8,this[_0x394ce3(0xfc)]):this[_0x394ce3(0x12f)][_0x394ce3(0x29b)](W,this['unitID'],this[_0x394ce3(0x498)],_0x2237f0,this[_0x394ce3(0xfc)]);_0x576f54[_0x394ce3(0x142)](),this[_0x394ce3(0xfc)][_0x394ce3(0x2bc)](this,_0x576f54);},_0x373465);}['_getSendChangesetTimeout'](){const _0x283508=_0xb0c99b;var _0x5ebea2;const _0x1079f7=this[_0x283508(0x3ec)]['getConfig'](L);return(_0x5ebea2=_0x1079f7==null?void 0x0:_0x1079f7[_0x283508(0x252)])!=null?_0x5ebea2:Kt;}[_0xb0c99b(0x1b7)](){const _0x599eca=_0xb0c99b;throw new Error(_0x599eca(0x429));}['_clearScheduledTask'](){const _0x40a839=_0xb0c99b;this['_sendingTimer']!=null&&(clearTimeout(this[_0x40a839(0x44a)]),this[_0x40a839(0x44a)]=null);}['_onConflict'](_0x402ef2){const _0x58d177=_0xb0c99b;return this[_0x58d177(0x461)](),this[_0x58d177(0x12f)]['createInstance'](F,this[_0x58d177(0x4c3)],this['type'],null,this[_0x58d177(0x3a8)],this[_0x58d177(0xfc)],_0x402ef2);}};x=z([g(0x4,a[_0xb0c99b(0x455)](a['Injector'])),g(0x5,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x6,a['Inject'](exports[_0xb0c99b(0x2b9)])),g(0x7,a[_0xb0c99b(0x455)](q)),g(0x8,a['ILogService']),g(0x9,a[_0xb0c99b(0x47e)]),g(0xa,a[_0xb0c99b(0x195)]),g(0xb,_['ITransformService']),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0xb0c99b(0x395)])],x);let W=class extends J{constructor(_0x504226,_0x1f609b,_0x162231,_0xd234ae,_0xd6b262,_0x17622e,_0x4e9dfb,_0x21a5ea,_0x4322ea,_0x36bdfc,_0x10de33){const _0x3fcbde=_0xb0c99b;super(_0x504226,_0x1f609b,_0x162231,[],_0xd234ae,_0x21a5ea,_0x10de33,_0x17622e,_0x4e9dfb),d(this,'status',_0x3fcbde(0x21a)),(this[_0x3fcbde(0x12f)]=_0xd6b262,this[_0x3fcbde(0x3cd)]=_0x4322ea,this[_0x3fcbde(0x1f2)]=_0x36bdfc);}[_0xb0c99b(0x453)](_0x40d8a2){const _0x4bddac=_0xb0c99b,_0x35c4d0=this[_0x4bddac(0x12f)][_0x4bddac(0x29b)](k,this[_0x4bddac(0x4c3)],this[_0x4bddac(0x498)],this[_0x4bddac(0x492)],[_0x40d8a2],this[_0x4bddac(0xfc)]);return _0x35c4d0[_0x4bddac(0x142)](),_0x35c4d0;}[_0xb0c99b(0x27d)](_0x6a386e){const _0x1099c9=_0xb0c99b;if(this[_0x1099c9(0x39c)](_0x6a386e))return this['_injector'][_0x1099c9(0x29b)](H,this[_0x1099c9(0x4c3)],this['type'],this[_0x1099c9(0x492)],[],null,[_0x6a386e],this['_handler']);try{const _0x5d6eaf=this[_0x1099c9(0x1f2)][_0x1099c9(0x35a)]([_0x6a386e],[this['_awaitingChangeset']],!0x1);if(_[_0x1099c9(0x102)](_0x5d6eaf)){const {c1Prime:_0x5dd40a,c2Prime:_0x2b98aa}=_0x5d6eaf;this['_executeRemoteChangeset'](_0x5dd40a[0x0]),_0x2b98aa[0x0]['baseRev']=this[_0x1099c9(0x258)]();const _0x3d20b4=this[_0x1099c9(0x12f)][_0x1099c9(0x29b)](W,this['unitID'],this['type'],_0x2b98aa[0x0],this[_0x1099c9(0xfc)]);return _0x3d20b4[_0x1099c9(0x142)](),_0x3d20b4;}return this[_0x1099c9(0x1dd)](!0x1);}catch(_0x5add5d){return this[_0x1099c9(0x3cd)][_0x1099c9(0x4d1)](_0x5add5d),this['_onConflict'](!0x1);}}[_0xb0c99b(0x390)](_0x1d8451){const _0x410447=_0xb0c99b,_0x2ee2d5=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);if(_0x1d8451[_0x410447(0x1b9)]<_0x2ee2d5-0x1)return this;if(this['_checkMissing'](_0x1d8451))return this[_0x410447(0x12f)][_0x410447(0x29b)](H,this['unitID'],this['type'],null,[],this[_0x410447(0x492)],[],this[_0x410447(0xfc)]);this['_incrementRevisionNumber']();const _0x10ec37=this[_0x410447(0x12f)][_0x410447(0x29b)](ie,this['unitID'],this['type'],this[_0x410447(0xfc)]);return _0x10ec37[_0x410447(0x142)](),_0x10ec37;}[_0xb0c99b(0x3aa)](_0xce8d7d){const _0x29da3d=_0xb0c99b;return this['_onConflict'](!!(_0xce8d7d!=null&&_0xce8d7d[_0x29da3d(0x2ce)]));}[_0xb0c99b(0x4cb)](){const _0x53f9a8=_0xb0c99b;return this[_0x53f9a8(0x12f)][_0x53f9a8(0x29b)](G,this['unitID'],this['type'],this[_0x53f9a8(0x492)],[],this[_0x53f9a8(0xfc)]);}[_0xb0c99b(0x222)](){return this;}[_0xb0c99b(0x1b7)](){const _0xc2ed12=_0xb0c99b;this[_0xc2ed12(0xfc)][_0xc2ed12(0x1c5)](this[_0xc2ed12(0x492)]);}['_onConflict'](_0x389ec4){const _0xac15da=_0xb0c99b;return this[_0xac15da(0x12f)][_0xac15da(0x29b)](F,this[_0xac15da(0x4c3)],this[_0xac15da(0x498)],this[_0xac15da(0x492)],[],this[_0xac15da(0xfc)],_0x389ec4);}};W=z([g(0x4,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),g(0x5,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x6,a['Inject'](exports['LocalCacheService'])),g(0x7,a[_0xb0c99b(0x47e)]),g(0x8,a['ILogService']),g(0x9,_['ITransformService']),g(0xa,a[_0xb0c99b(0x395)])],W);let k=class extends J{constructor(_0x57b34d,_0x92f397,_0x569567,_0x3c945d,_0x522ae3,_0x19b44f,_0x409a9d,_0x4b14ae,_0x58530a,_0x5ff26f,_0x53435c,_0x3f0f16){const _0x2bc434=_0xb0c99b;super(_0x57b34d,_0x92f397,_0x569567,_0x3c945d,_0x522ae3,_0x58530a,_0x3f0f16,_0x409a9d,_0x4b14ae),d(this,_0x2bc434(0x366),_0x2bc434(0x4b2)),(this[_0x2bc434(0x12f)]=_0x19b44f,this[_0x2bc434(0x3cd)]=_0x5ff26f,this[_0x2bc434(0x1f2)]=_0x53435c);}[_0xb0c99b(0x453)](_0x8aa7dc){const _0xcc2ca5=_0xb0c99b;return this['_pendingMutations'][_0xcc2ca5(0x2da)](_0x8aa7dc),this;}[_0xb0c99b(0x27d)](_0xbd5ded){const _0xba76a4=_0xb0c99b;if(this[_0xba76a4(0x39c)](_0xbd5ded))return this[_0xba76a4(0x12f)][_0xba76a4(0x29b)](H,this['unitID'],this[_0xba76a4(0x498)],this[_0xba76a4(0x492)],this[_0xba76a4(0x3a8)],null,[_0xbd5ded],this[_0xba76a4(0xfc)]);try{const _0x540f0c=this[_0xba76a4(0x1f2)][_0xba76a4(0x35a)]([_0xbd5ded],[this[_0xba76a4(0x492)]],!0x1);if(_[_0xba76a4(0x102)](_0x540f0c)){const {c1Prime:_0xbdbce8,c2Prime:_0x28a9e5}=_0x540f0c,_0x163ae1=this[_0xba76a4(0x1f2)][_0xba76a4(0x2d6)](_0xbdbce8[0x0],this[_0xba76a4(0x3a8)]);if(_[_0xba76a4(0xf3)](_0x163ae1)){const {c1Prime:_0x14fdb5,m2Prime:_0x5e66b3}=_0x163ae1;return this['_executeRemoteChangeset'](_0x14fdb5),_0x28a9e5[0x0][_0xba76a4(0x2b8)]=this['_getCurrentRevision'](),this[_0xba76a4(0x12f)][_0xba76a4(0x29b)](k,this[_0xba76a4(0x4c3)],this[_0xba76a4(0x498)],_0x28a9e5[0x0],_0x5e66b3,this[_0xba76a4(0xfc)]);}throw _0x163ae1['error'];}throw _0x540f0c['error'];}catch(_0x5d8d69){return this[_0xba76a4(0x3cd)][_0xba76a4(0x4d1)](_0x5d8d69),this[_0xba76a4(0x1dd)](!0x1);}}[_0xb0c99b(0x390)](_0x262272){const _0x5ad7d8=_0xb0c99b;if(this[_0x5ad7d8(0x39c)](_0x262272))return this[_0x5ad7d8(0x12f)]['createInstance'](H,this[_0x5ad7d8(0x4c3)],this[_0x5ad7d8(0x498)],null,this[_0x5ad7d8(0x3a8)],this[_0x5ad7d8(0x492)],[],this[_0x5ad7d8(0xfc)]);this[_0x5ad7d8(0x2cc)]();const _0x398d47=this[_0x5ad7d8(0x12f)][_0x5ad7d8(0x29b)](x,this['unitID'],this[_0x5ad7d8(0x498)],this[_0x5ad7d8(0x3a8)],this[_0x5ad7d8(0xfc)]);return _0x398d47[_0x5ad7d8(0x129)](),_0x398d47[_0x5ad7d8(0x142)](),_0x398d47;}['onRemoteRej'](_0x24a917){const _0x5abac9=_0xb0c99b;return this[_0x5abac9(0x1dd)](!!(_0x24a917!=null&&_0x24a917[_0x5abac9(0x2ce)]));}['toggleOffline'](){const _0x810ae8=_0xb0c99b;return this[_0x810ae8(0x12f)][_0x810ae8(0x29b)](G,this[_0x810ae8(0x4c3)],this[_0x810ae8(0x498)],this['_awaitingChangeset'],this[_0x810ae8(0x3a8)],this['_handler']);}['toggleOnline'](){return this;}[_0xb0c99b(0x1b7)](){const _0x96602=_0xb0c99b;this[_0x96602(0xfc)][_0x96602(0x1c5)](this[_0x96602(0x492)]);}[_0xb0c99b(0x1dd)](_0x4f41af){const _0x7c0d3b=_0xb0c99b;return this['_injector'][_0x7c0d3b(0x29b)](F,this[_0x7c0d3b(0x4c3)],this[_0x7c0d3b(0x498)],null,this['_pendingMutations'],this[_0x7c0d3b(0xfc)],_0x4f41af);}};k=z([g(0x5,a['Inject'](a[_0xb0c99b(0x41a)])),g(0x6,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x7,a[_0xb0c99b(0x455)](exports['LocalCacheService'])),g(0x8,a[_0xb0c99b(0x47e)]),g(0x9,a['ILogService']),g(0xa,_[_0xb0c99b(0x37c)]),g(0xb,a[_0xb0c99b(0x395)])],k);let F=class extends J{constructor(_0x9da5,_0x3b8f86,_0x4509cc,_0x3f5159,_0x1d6cca,_0x5614ef=!0x1,_0x18256b,_0xfeca43,_0x542f08,_0x2a0796,_0x1e2dd3,_0x364ebb,_0x113c0b){const _0x476f2a=_0xb0c99b;super(_0x9da5,_0x3b8f86,_0x4509cc,_0x3f5159,_0x1d6cca,_0xfeca43,_0x542f08,_0x1e2dd3,_0x2a0796),d(this,_0x476f2a(0x366),_0x476f2a(0x244)),(this[_0x476f2a(0x2d8)]=_0x5614ef,this[_0x476f2a(0x115)]=_0x18256b,this[_0x476f2a(0x26d)]=_0x364ebb,this[_0x476f2a(0x32d)]=_0x113c0b,this['_showConflictNotification'](),this[_0x476f2a(0xe5)](),this['_disableEditing']());}[_0xb0c99b(0x453)](){return this;}[_0xb0c99b(0x27d)](){return this;}[_0xb0c99b(0x390)](){return this;}[_0xb0c99b(0x3aa)](){return this;}[_0xb0c99b(0x4cb)](){return this;}[_0xb0c99b(0x222)](){return this;}['resend'](){const _0x25403b=_0xb0c99b;throw new Error(_0x25403b(0x106));}[_0xb0c99b(0xe5)](){const _0x23c563=_0xb0c99b;this[_0x23c563(0x40b)]['updateOfflineData'](this[_0x23c563(0x4c3)],this[_0x23c563(0x498)],null,[]);}[_0xb0c99b(0x288)](){const _0xd26f05=_0xb0c99b;this[_0xd26f05(0x2d8)]?this['_notificationService'][_0xd26f05(0x126)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0xd26f05(0x36b)),'type':_0xd26f05(0x4d1),'duration':0x0}):this[_0xd26f05(0x32d)][_0xd26f05(0x126)]({'title':this[_0xd26f05(0x26d)]['t'](_0xd26f05(0x375)),'content':this[_0xd26f05(0x26d)]['t'](_0xd26f05(0x4bb)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x32016d=_0xb0c99b;this[_0x32016d(0x115)]['updatePermissionPoint'](new C[(_0x32016d(0x3bc))](this[_0x32016d(0x4c3)])['id'],!0x1);}};F=z([g(0x6,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x1f0)])),g(0x7,a[_0xb0c99b(0x47e)]),g(0x8,a[_0xb0c99b(0x395)]),g(0x9,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),g(0xa,a['Inject'](_[_0xb0c99b(0x342)])),g(0xb,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),g(0xc,N['INotificationService'])],F);let G=class extends J{constructor(_0x29170f,_0x2e35a2,_0x106417,_0x53b8f5,_0x353785,_0x320517,_0x3b1c70,_0x107f62,_0x5df2c6,_0x3ced9c){const _0x58bcfa=_0xb0c99b;super(_0x29170f,_0x2e35a2,_0x106417,_0x53b8f5,_0x353785,_0x5df2c6,_0x3ced9c,_0x3b1c70,_0x107f62),d(this,_0x58bcfa(0x366),_0x58bcfa(0x1b8)),this[_0x58bcfa(0x12f)]=_0x320517;}['appendMutation'](_0x30a0bf){const _0x15c2f5=_0xb0c99b;return this[_0x15c2f5(0x3a8)][_0x15c2f5(0x2da)](_0x30a0bf),this[_0x15c2f5(0x142)](),this;}[_0xb0c99b(0x27d)](_0x5dc0c2){const _0x548a98=_0xb0c99b;throw new Error(_0x548a98(0x4f3));}['onRemoteAck'](){const _0x1cef10=_0xb0c99b;throw new Error(_0x1cef10(0x31b));}[_0xb0c99b(0x3aa)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}[_0xb0c99b(0x222)](){const _0x34e4c4=_0xb0c99b,{_injector:_0x1b684a,_pendingMutations:_0x3aa45c,_awaitingChangeset:_0x1a6429,unitID:_0x2c7a02,_handler:_0x4ee6b3,type:_0xdf1912}=this,_0x68d4a3=Rt(_0x1b684a,_0x2c7a02,_0xdf1912,_0x1a6429,_0x3aa45c,_0x4ee6b3);return _0x68d4a3 instanceof x?_0x68d4a3['_schedule']():(_0x68d4a3 instanceof k||_0x68d4a3 instanceof W)&&_0x68d4a3[_0x34e4c4(0x1b7)](),_0x68d4a3;}[_0xb0c99b(0x1b7)](){const _0x516e1e=_0xb0c99b;throw new Error(_0x516e1e(0x196));}};G=z([g(0x5,a['Inject'](a[_0xb0c99b(0x41a)])),g(0x6,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x7,a['Inject'](exports['LocalCacheService'])),g(0x8,a[_0xb0c99b(0x47e)]),g(0x9,a[_0xb0c99b(0x395)])],G);let H=class extends J{constructor(_0x55f776,_0x451491,_0x200f91,_0x29a113,_0x34fe6f,_0x7da351,_0x2e8f91,_0x5e4e27,_0x5b04fe,_0x22d4f6,_0x29b795,_0x4a1842,_0x13e410,_0x464d72){const _0x5ac5a8=_0xb0c99b;super(_0x55f776,_0x451491,_0x200f91,_0x29a113,_0x2e8f91,_0x4a1842,_0x13e410,_0x5b04fe,_0x22d4f6),d(this,'status',_0x5ac5a8(0x454)),(this[_0x5ac5a8(0x3f9)]=_0x34fe6f,this[_0x5ac5a8(0x1aa)]=_0x7da351,this[_0x5ac5a8(0x12f)]=_0x5e4e27,this['_logService']=_0x29b795,this[_0x5ac5a8(0x1f2)]=_0x464d72);}['onMissedChangesetFetched'](_0xa5368b){const _0x2a4f70=_0xb0c99b;try{const _0x47bf8f=[..._0xa5368b,...this['_queuedRemoteChangesets']],_0x1d168d=[this[_0x2a4f70(0x492)]||this[_0x2a4f70(0x3f9)]][_0x2a4f70(0x13b)](_0x279a4d=>!!_0x279a4d);let _0x49a187,_0x3bc502;if(_0x1d168d[_0x2a4f70(0x23c)]){const _0x30433c=this[_0x2a4f70(0x1f2)][_0x2a4f70(0x35a)](_0x47bf8f,_0x1d168d,!0x1);if(!_['isTransformChangesetsSuccess'](_0x30433c))throw _0x30433c[_0x2a4f70(0x4d1)];_0x49a187=_0x30433c[_0x2a4f70(0x2d5)],_0x3bc502=_0x30433c[_0x2a4f70(0x469)];}else _0x49a187=_0x47bf8f,_0x3bc502=[];let _0x41975a=this[_0x2a4f70(0x3a8)];_0x49a187[_0x2a4f70(0x1cb)](_0x38f212=>{const _0x537783=_0x2a4f70;let _0x4ffcea;if(_0x41975a['length']){const _0x323612=this['_transformService'][_0x537783(0x2d6)](_0x38f212,_0x41975a);if(!_[_0x537783(0xf3)](_0x323612))throw _0x323612[_0x537783(0x4d1)];_0x4ffcea=_0x323612[_0x537783(0x2d5)],_0x41975a=_0x323612['m2Prime'];}else _0x4ffcea=_0x38f212;this[_0x537783(0x3e2)](_0x4ffcea);}),this[_0x2a4f70(0x3f9)]&&this[_0x2a4f70(0x2cc)](),this[_0x2a4f70(0x492)]&&_0x3bc502[_0x2a4f70(0x23c)]&&(_0x3bc502[0x0][_0x2a4f70(0x2b8)]=this[_0x2a4f70(0x258)]());let _0x12ee76;if(this['_awaitingChangeset']&&_0x41975a[_0x2a4f70(0x23c)]!==0x0)_0x12ee76=this['_injector']['createInstance'](k,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],_0x3bc502[0x0],_0x41975a,this[_0x2a4f70(0xfc)]);else{if(this[_0x2a4f70(0x492)]&&_0x41975a[_0x2a4f70(0x23c)]===0x0)_0x3bc502[0x0][_0x2a4f70(0x2b8)]=this[_0x2a4f70(0x258)](),_0x12ee76=this[_0x2a4f70(0x12f)][_0x2a4f70(0x29b)](W,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],_0x3bc502[0x0],this[_0x2a4f70(0xfc)]);else{if(_0x41975a[_0x2a4f70(0x23c)]!==0x0){const _0x40601e=this[_0x2a4f70(0x12f)]['createInstance'](x,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],_0x41975a,this[_0x2a4f70(0xfc)]);_0x40601e['_schedule'](),_0x12ee76=_0x40601e;}else _0x12ee76=this[_0x2a4f70(0x12f)]['createInstance'](ie,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],this[_0x2a4f70(0xfc)]);}}return _0x12ee76[_0x2a4f70(0x142)](),_0x12ee76;}catch(_0x2b81cd){return this[_0x2a4f70(0x3cd)][_0x2a4f70(0x4d1)]('[FetchMissState]',_0x2a4f70(0x140),_0x2b81cd),this['_injector'][_0x2a4f70(0x29b)](F,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],this[_0x2a4f70(0x492)],this[_0x2a4f70(0x3a8)],this[_0x2a4f70(0xfc)],!0x1);}}[_0xb0c99b(0x1b7)](){const _0x268d1e=_0xb0c99b;throw new Error(_0x268d1e(0x10a));}['appendMutation'](_0x3d6653){const _0x20adf4=_0xb0c99b;return this[_0x20adf4(0x3a8)][_0x20adf4(0x2da)](_0x3d6653),this;}[_0xb0c99b(0x27d)](_0x5716e3){const _0x107232=_0xb0c99b;return this[_0x107232(0x1aa)][_0x107232(0x2da)](_0x5716e3),this;}[_0xb0c99b(0x390)](_0x48174c){const _0x494e31=_0xb0c99b;if(this['_awaitingChangeset'])return this[_0x494e31(0x3f9)]=this[_0x494e31(0x492)],this[_0x494e31(0x492)]=null,this;throw new Error(_0x494e31(0x401));}[_0xb0c99b(0x3aa)](_0x546e67){const _0x19eb01=_0xb0c99b;return this[_0x19eb01(0x1dd)](!!(_0x546e67!=null&&_0x546e67['isPermissionRej']));}[_0xb0c99b(0x4cb)](){const _0x49403e=_0xb0c99b;return this['_injector'][_0x49403e(0x29b)](G,this[_0x49403e(0x4c3)],this[_0x49403e(0x498)],this[_0x49403e(0x492)],this['_pendingMutations'],this[_0x49403e(0xfc)]);}[_0xb0c99b(0x222)](){return this;}[_0xb0c99b(0x1dd)](_0x180919){const _0x5d3bd3=_0xb0c99b;return this[_0x5d3bd3(0x12f)][_0x5d3bd3(0x29b)](F,this[_0x5d3bd3(0x4c3)],this['type'],this['_awaitingChangeset'],this[_0x5d3bd3(0x3a8)],this['_handler'],_0x180919);}};H=z([g(0x7,a['Inject'](a[_0xb0c99b(0x41a)])),g(0x8,a[_0xb0c99b(0x455)](_['RevisionService'])),g(0x9,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),g(0xa,a['ILogService']),g(0xb,a[_0xb0c99b(0x47e)]),g(0xc,a[_0xb0c99b(0x395)]),g(0xd,_[_0xb0c99b(0x37c)])],H);function Rt(_0x3ca286,_0x3ce087,_0x19387f,_0x319877,_0xaace67,_0x4d13d4){const _0x5b2ac2=_0xb0c99b;return _0x319877&&_0xaace67[_0x5b2ac2(0x23c)]?_0x3ca286[_0x5b2ac2(0x29b)](k,_0x3ce087,_0x19387f,_0x319877,_0xaace67,_0x4d13d4):_0x319877?_0x3ca286[_0x5b2ac2(0x29b)](W,_0x3ce087,_0x19387f,_0x319877,_0x4d13d4):_0xaace67['length']?_0x3ca286[_0x5b2ac2(0x29b)](x,_0x3ce087,_0x19387f,_0xaace67,_0x4d13d4):_0x3ca286[_0x5b2ac2(0x29b)](ie,_0x3ce087,_0x19387f,_0x4d13d4);}var Hs=Object[_0xb0c99b(0x3dd)],xs=Object[_0xb0c99b(0x18e)],Ke=(_0x4f3b6a,_0xd60c7c,_0x271e30,_0x42b427)=>{for(var _0x1f6461=_0x42b427>0x1?void 0x0:_0x42b427?xs(_0xd60c7c,_0x271e30):_0xd60c7c,_0x876a61=_0x4f3b6a['length']-0x1,_0xd2eca8;_0x876a61>=0x0;_0x876a61--)(_0xd2eca8=_0x4f3b6a[_0x876a61])&&(_0x1f6461=(_0x42b427?_0xd2eca8(_0xd60c7c,_0x271e30,_0x1f6461):_0xd2eca8(_0x1f6461))||_0x1f6461);return _0x42b427&&_0x1f6461&&Hs(_0xd60c7c,_0x271e30,_0x1f6461),_0x1f6461;},I=(_0x51de2b,_0x1f38d8)=>(_0x52b355,_0x51c7f8)=>_0x1f38d8(_0x52b355,_0x51c7f8,_0x51de2b);exports[_0xb0c99b(0x275)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x5e210a,_0x920e6,_0xc9ca6f,_0x13c132,_0x1ab491,_0xa5311b,_0x101056,_0x9559c8,_0x51b13b,_0x3f15a1,_0x15793b,_0x13b4a1,_0x1348e0){const _0x474b90=_0xb0c99b;super(),d(this,_0x474b90(0x465),new v[(_0x474b90(0x4b1))](null)),d(this,'state$',this[_0x474b90(0x465)]['asObservable']()),d(this,'_state'),d(this,'_collaborationPaused',!0x1),d(this,'status$',this['state$'][_0x474b90(0x3a7)](v[_0x474b90(0x1af)](_0x4de116=>_0x4de116?_0x4de116[_0x474b90(0x366)]:y[_0x474b90(0x4ed)]),v[_0x474b90(0xeb)](0x1))),d(this,_0x474b90(0x14a),!0x1),d(this,_0x474b90(0x440),[]),(this['unitID']=_0x5e210a,this['session']=_0x920e6,this[_0x474b90(0x44d)]=_0xc9ca6f,this[_0x474b90(0x12f)]=_0x13c132,this[_0x474b90(0x40b)]=_0x1ab491,this[_0x474b90(0x1a6)]=_0xa5311b,this['_localeService']=_0x101056,this['_revisionService']=_0x9559c8,this[_0x474b90(0x3cd)]=_0x51b13b,this[_0x474b90(0x425)]=_0x3f15a1,this[_0x474b90(0x33f)]=_0x15793b,this[_0x474b90(0x115)]=_0x13b4a1,this[_0x474b90(0x462)]=_0x1348e0);}get[_0xb0c99b(0x2b7)](){const _0x4a70b9=_0xb0c99b;return this[_0x4a70b9(0x259)];}async[_0xb0c99b(0x188)](){const _0x6877f6=_0xb0c99b;if(this[_0x6877f6(0x2b7)])throw new Error(_0x6877f6(0x2f2));await this[_0x6877f6(0x41f)]();}['pauseCollaboration'](){const _0x296364=_0xb0c99b;return this[_0x296364(0x4bd)]=!0x0,a[_0x296364(0x2ef)](()=>{const _0x4da8f9=_0x296364;this[_0x4da8f9(0x4bd)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0xb0c99b(0x42a)](_0x84eec8){const _0x22fdfa=_0xb0c99b;this[_0x22fdfa(0x259)]=_0x84eec8,this[_0x22fdfa(0x465)][_0x22fdfa(0x3c7)](_0x84eec8);}async['_init'](){const _0x587a19=_0xb0c99b;var _0x5163c2;this[_0x587a19(0x42a)](await this['_createInitialState']()),this[_0x587a19(0x462)]&&((_0x5163c2=this[_0x587a19(0x462)])==null||_0x5163c2[_0x587a19(0x491)](this[_0x587a19(0x4c3)]),this[_0x587a19(0x3d3)](this[_0x587a19(0x462)]['getUnitStatus$'](this[_0x587a19(0x4c3)])[_0x587a19(0x33b)](_0x21b410=>{const _0x4bb098=_0x587a19;this['_logService']['debug']('[CollaborationEntity]',_0x4bb098(0x426),_0x21b410),_0x21b410===bt['OTHER_CLIENTS_EDITING']?(this[_0x4bb098(0x33f)][_0x4bb098(0x126)]({'content':this[_0x4bb098(0x26d)]['t'](_0x4bb098(0x303)),'type':X['MessageType'][_0x4bb098(0x4ba)]}),this['_permissionService'][_0x4bb098(0x3c8)](new C[(_0x4bb098(0x3bc))](this[_0x4bb098(0x4c3)])['id'],!0x1)):this[_0x4bb098(0x115)]['updatePermissionPoint'](new C[(_0x4bb098(0x3bc))](this[_0x4bb098(0x4c3)])['id'],!0x0);})));let _0x152de9=!0x1;return this['disposeWithMe'](this[_0x587a19(0x417)]['sessionStatus$'][_0x587a19(0x33b)](_0x158242=>{const _0x32ec5c=_0x587a19;_0x158242===j[_0x32ec5c(0x305)]?this[_0x32ec5c(0x376)](_0x152de9):_0x158242===j[_0x32ec5c(0x4ed)]&&(_0x152de9=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x587a19(0x417)][_0x587a19(0x1c0)][_0x587a19(0x33b)](_0x23dbdc=>{const _0x2297b8=_0x587a19;try{switch(_0x23dbdc[_0x2297b8(0x1bd)]){case _[_0x2297b8(0x153)][_0x2297b8(0x291)]:{this['_onRemoteChangeset'](_['parseProtocolChangeset'](_0x23dbdc[_0x2297b8(0x494)]));break;}case _[_0x2297b8(0x153)]['CHANGESET_ACK']:{this[_0x2297b8(0x341)](_0x23dbdc[_0x2297b8(0x494)]);break;}case _[_0x2297b8(0x153)][_0x2297b8(0x3fe)]:{this['_onRemoteRejected']();break;}case _[_0x2297b8(0x153)][_0x2297b8(0x30a)]:{this[_0x2297b8(0x1ca)](_0x23dbdc[_0x2297b8(0x494)][_0x2297b8(0x290)]['map'](_0x716548=>_[_0x2297b8(0x35b)](_0x716548)));break;}case _[_0x2297b8(0x153)][_0x2297b8(0xf6)]:this[_0x2297b8(0x302)]({'isPermissionRej':!0x0});}}catch(_0x1321b4){throw console[_0x2297b8(0x4d1)]('Error\x20on\x20receiving\x20event',_0x1321b4),_0x1321b4;}})),this['_state'];}[_0xb0c99b(0x120)](){const _0x4c0658=_0xb0c99b;this[_0x4c0658(0x14a)]=!0x1;}['_lockTransition'](){const _0x53a17d=_0xb0c99b;if(this[_0x53a17d(0x14a)])throw new Error(_0x53a17d(0x1e3));this['_transitionLocked']=!0x0;}[_0xb0c99b(0x481)](_0x1b5eb4){const _0x2ee432=_0xb0c99b;this[_0x2ee432(0x436)](),this[_0x2ee432(0x42a)](this[_0x2ee432(0x259)][_0x2ee432(0x453)](_0x1b5eb4)),this[_0x2ee432(0x120)]();}[_0xb0c99b(0x15e)](_0x273503){const _0x29c82f=_0xb0c99b;if(!(_0x273503['revision']<=this[_0x29c82f(0x217)][_0x29c82f(0x2fa)](this[_0x29c82f(0x4c3)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x29c82f(0x2da)](_0x273503);return;}this['_applyRemoteChangeset'](_0x273503);}}['_exhaustRemoteChangesetQueue'](){const _0x302af1=_0xb0c99b;this[_0x302af1(0x440)][_0x302af1(0x1cb)](_0x310e68=>this[_0x302af1(0x364)](_0x310e68)),this[_0x302af1(0x440)]=[];}['_applyRemoteChangeset'](_0x614257){const _0x485b6a=_0xb0c99b,_0x5df3a9=this['_compressMutationService'][_0x485b6a(0x4e5)][_0x485b6a(0x3ac)](this[_0x485b6a(0x1a6)]['interceptor'][_0x485b6a(0x14e)]()[_0x485b6a(0x178)])(_0x614257[_0x485b6a(0x4e4)],null)||_0x614257[_0x485b6a(0x4e4)],_0x323ce6={..._0x614257,'mutations':_0x5df3a9};this[_0x485b6a(0x436)](),this[_0x485b6a(0x42a)](this[_0x485b6a(0x259)][_0x485b6a(0x27d)](_0x323ce6)),this[_0x485b6a(0x120)]();}[_0xb0c99b(0x341)](_0xdf2fbd){const _0xce5f6c=_0xb0c99b;this[_0xce5f6c(0x436)](),this['_updateState'](this[_0xce5f6c(0x259)]['onRemoteAck'](_0xdf2fbd)),this[_0xce5f6c(0x120)]();}[_0xb0c99b(0x302)](_0x5e194c){const _0x3f1134=_0xb0c99b;this[_0x3f1134(0x436)](),this[_0x3f1134(0x42a)](this[_0x3f1134(0x259)][_0x3f1134(0x3aa)](_0x5e194c)),this['_unlockTransition']();}[_0xb0c99b(0x1ca)](_0x2d31cc){const _0xd2a885=_0xb0c99b;if(!(this['_state']instanceof H))throw new TypeError(_0xd2a885(0x367));const _0x3b387b=_0x2d31cc[_0xd2a885(0x1af)](_0x1c94f1=>{const _0x4842f8=_0xd2a885,_0x25e562=this[_0x4842f8(0x1a6)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x4842f8(0x4e5)][_0x4842f8(0x14e)]()[_0x4842f8(0x178)])(_0x1c94f1['mutations'],null)||_0x1c94f1[_0x4842f8(0x4e4)];return{..._0x1c94f1,'mutations':_0x25e562};});this[_0xd2a885(0x436)](),this[_0xd2a885(0x42a)](this[_0xd2a885(0x259)][_0xd2a885(0x339)](_0x3b387b)),this['_unlockTransition']();}[_0xb0c99b(0x3d2)](){const _0xfd01d4=_0xb0c99b;this['_lockTransition'](),this['_updateState'](this[_0xfd01d4(0x259)][_0xfd01d4(0x4cb)]()),this[_0xfd01d4(0x120)]();}[_0xb0c99b(0x376)](_0x415185=!0x1){const _0x30ec72=_0xb0c99b;this['_lockTransition'](),this['_updateState'](this[_0x30ec72(0x259)][_0x30ec72(0x222)]()),this[_0x30ec72(0x120)]();const _0x261496=this[_0x30ec72(0x259)];_0x415185&&_0x261496 instanceof ie&&(this[_0x30ec72(0x436)](),this[_0x30ec72(0x42a)](_0x261496[_0x30ec72(0x3a0)]()),this[_0x30ec72(0x120)]());}async[_0xb0c99b(0x480)](){return new Promise(_0x1fc47d=>{const _0x33a642=_0x4e0f;this['session']['sessionStatus$'][_0x33a642(0x3a7)](v['take'](0x1))[_0x33a642(0x33b)](async _0x2b509a=>{const _0x1209c9=_0x33a642;_0x1fc47d(await this[_0x1209c9(0x4d7)](_0x2b509a===j[_0x1209c9(0x305)]));});});}['_createHandler'](){const _0xc5834=_0xb0c99b,_0x5e3c21=this[_0xc5834(0x4c3)];return{'onStateChange':(_0x1af793,_0x4f0e1e)=>{const _0x11ae9d=_0xc5834;if(_0x1af793!==this[_0x11ae9d(0x259)])throw new Error(_0x11ae9d(0x457)+_0x1af793['status']+'\x0aAfter:\x20'+_0x4f0e1e['status']+_0x11ae9d(0x2de)+this[_0x11ae9d(0x259)][_0x11ae9d(0x366)]);this[_0x11ae9d(0x42a)](_0x4f0e1e);},'onSendChangeset':_0x1d238e=>{const _0x468356=_0xc5834,_0x5bf29f={'eventID':_[_0x468356(0x153)][_0x468356(0x21f)],'data':{'unitID':_0x1d238e[_0x468356(0x4c3)],'unitType':this[_0x468356(0x44d)],'changeset':_0x1d238e,'memberID':this[_0x468356(0x417)]['getMemberID']()}};this['session'][_0x468356(0x3c3)](_0x5bf29f,this['unitID']);},'onMissingChangesets':({from:_0x4e9cc8,to:_0x2d3111})=>{const _0x1a926b=_0xc5834;this[_0x1a926b(0x3cd)][_0x1a926b(0x347)](_0x1a926b(0x1a9),'fetching\x20missing\x20changesets\x20from\x20'+_0x4e9cc8+_0x1a926b(0x4d9)+_0x2d3111);const _0x109fad={'eventID':_[_0x1a926b(0x153)][_0x1a926b(0x31d)],'data':{'unitID':_0x5e3c21,'unitType':this[_0x1a926b(0x44d)],'from':_0x4e9cc8,'to':_0x2d3111}};this['session'][_0x1a926b(0x3c3)](_0x109fad,this[_0x1a926b(0x4c3)]);}};}async[_0xb0c99b(0x4d7)](_0x23dcbb){const _0x5b7df7=_0xb0c99b;var _0x57acc7,_0x5f1f34;const _0x5ec78c=await this[_0x5b7df7(0x40b)][_0x5b7df7(0x4e3)](this['unitID']),_0x8226aa=(_0x57acc7=_0x5ec78c==null?void 0x0:_0x5ec78c[_0x5b7df7(0x4e4)])!=null?_0x57acc7:[],_0x5ca6fa=(_0x5f1f34=_0x5ec78c==null?void 0x0:_0x5ec78c[_0x5b7df7(0x249)])!=null?_0x5f1f34:null,_0x46fe3a=this[_0x5b7df7(0x4c3)];try{this[_0x5b7df7(0x282)](_0x5ca6fa,_0x8226aa);}catch(_0x5cf70a){this[_0x5b7df7(0x3cd)][_0x5b7df7(0x4d1)](_0x5cf70a);}const _0x68e1ed=this[_0x5b7df7(0x1a7)]();if(_0x23dcbb){const _0x45f016=Rt(this['_injector'],_0x46fe3a,this[_0x5b7df7(0x44d)],_0x5ca6fa,_0x8226aa,_0x68e1ed);return _0x45f016 instanceof x?_0x45f016[_0x5b7df7(0x129)]():(_0x45f016 instanceof k||_0x45f016 instanceof W)&&_0x45f016['resend'](),_0x45f016;}return this[_0x5b7df7(0x12f)]['createInstance'](G,_0x46fe3a,this[_0x5b7df7(0x44d)],_0x5ca6fa,_0x8226aa,_0x68e1ed);}[_0xb0c99b(0x282)](_0x1d8571,_0x531463){const _0x4638ec=_0xb0c99b;var _0x5d520e,_0x36fe10;const _0x5b2d00=this['_compressMutationService'][_0x4638ec(0x4e5)][_0x4638ec(0x3ac)](this[_0x4638ec(0x1a6)][_0x4638ec(0x4e5)][_0x4638ec(0x14e)]()[_0x4638ec(0x178)]);(_0x5d520e=_0x5b2d00((_0x1d8571==null?void 0x0:_0x1d8571['mutations'])||[],null))==null||_0x5d520e[_0x4638ec(0x1cb)](_0x503ec3=>this[_0x4638ec(0x425)][_0x4638ec(0x135)](_0x503ec3['id'],_0x503ec3[_0x4638ec(0x2e3)])),(_0x36fe10=_0x5b2d00(_0x531463||[],null))==null||_0x36fe10['forEach'](_0x59e4b4=>this[_0x4638ec(0x425)][_0x4638ec(0x135)](_0x59e4b4['id'],_0x59e4b4[_0x4638ec(0x2e3)]));}},exports[_0xb0c99b(0x275)]=Ke([I(0x3,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x32a)])),I(0x6,a['Inject'](a[_0xb0c99b(0x472)])),I(0x7,a[_0xb0c99b(0x455)](_['RevisionService'])),I(0x8,a[_0xb0c99b(0x2b2)]),I(0x9,a[_0xb0c99b(0x47e)]),I(0xa,N['IMessageService']),I(0xb,a['IPermissionService']),I(0xc,a[_0xb0c99b(0x1c6)](Te))],exports['CollaborationEntity']),exports[_0xb0c99b(0x145)]=class extends exports['CollaborationEntity']{constructor(_0x15e317,_0xdfdcb,_0x336379,_0x4a759f,_0x2b7c65,_0x3864c2,_0x2d6918,_0x38988a,_0x3a7077,_0x33b221,_0x4f2e10,_0x4356aa,_0x486a34,_0x5bd63d,_0x36aa8a,_0x1b30b8,_0x5abe74){const _0x4e02cf=_0xb0c99b;super(_0x15e317,_0x336379,_0xdfdcb,_0x4a759f,_0x2b7c65,_0x3864c2,_0x2d6918,_0x38988a,_0x486a34,_0x5bd63d,_0x36aa8a,_0x1b30b8,_0x5abe74),this[_0x4e02cf(0x4c3)]=_0x15e317,this[_0x4e02cf(0x498)]=_0xdfdcb,this[_0x4e02cf(0x166)]=_0x3a7077,this['_docTransformIMECacheService']=_0x33b221,this[_0x4e02cf(0x12d)]=_0x4f2e10,this[_0x4e02cf(0x3ee)]=_0x4356aa;}['_createHandler'](){const _0x15e856=_0xb0c99b,_0x1cf4e7=super['_createHandler']();return _0x1cf4e7['onTransformIME']=_0x13622d=>this['_docTransformIMECacheService'][_0x15e856(0x4e9)](_0x13622d),_0x1cf4e7[_0x15e856(0x1e4)]=_0x5f4b80=>this['_docTransformSelectionsService']['transformSelections'](_0x5f4b80),_0x1cf4e7['onSyncEditingCollabCursor']=_0x198916=>this[_0x15e856(0x3ee)][_0x15e856(0x13f)](_0x198916),_0x1cf4e7[_0x15e856(0x2f3)]=_0x24d376=>this[_0x15e856(0x446)][_0x15e856(0x315)](_0x24d376),_0x1cf4e7;}async['_init'](){const _0x3a9196=_0xb0c99b,_0x3dd0d1=await super[_0x3a9196(0x41f)]();return this['disposeWithMe'](this[_0x3a9196(0x425)][_0x3a9196(0x2ac)]((_0xadd1b5,_0x4043e9)=>{const _0x5d7133=_0x3a9196;if(_0xadd1b5[_0x5d7133(0x498)]!==a[_0x5d7133(0x1a2)][_0x5d7133(0x293)]||_0x4043e9!=null&&_0x4043e9[_0x5d7133(0x3b1)]||_0x4043e9!=null&&_0x4043e9['onlyLocal'])return;const _0xab9842=_0xadd1b5[_0x5d7133(0x2e3)];if((_0xab9842==null?void 0x0:_0xab9842[_0x5d7133(0x13a)])!==this[_0x5d7133(0x4c3)])return;let _0x150777=_0xadd1b5;if(_0x150777['id']===V[_0x5d7133(0x396)]['id']){const _0x26c141=_0x150777[_0x5d7133(0x2e3)];_0x150777={'id':V[_0x5d7133(0x396)]['id'],'type':a[_0x5d7133(0x1a2)][_0x5d7133(0x293)],'params':{'unitId':_0x26c141[_0x5d7133(0x13a)],'actions':_0x26c141[_0x5d7133(0xff)],'textRanges':null}};}const _0x11caa9=this[_0x5d7133(0x1a6)]['interceptor'][_0x5d7133(0x3ac)](this['_compressMutationService']['interceptor'][_0x5d7133(0x14e)]()['COMPRESS_MUTATION_SEND'])([_0x150777],null)||[_0x150777];this['_onLocalMutation'](_0x11caa9[0x0]);})),_0x3dd0d1;}},exports[_0xb0c99b(0x145)]=Ke([I(0x3,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),I(0x4,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),I(0x5,a['Inject'](_[_0xb0c99b(0x32a)])),I(0x6,a['Inject'](a[_0xb0c99b(0x472)])),I(0x7,a['Inject'](_[_0xb0c99b(0x342)])),I(0x8,a[_0xb0c99b(0x455)](w['DocStateChangeManagerService'])),I(0x9,a['Inject'](Ie)),I(0xa,a['Inject'](Ce)),I(0xb,a[_0xb0c99b(0x455)](Ye)),I(0xc,a['ILogService']),I(0xd,a['ICommandService']),I(0xe,N[_0xb0c99b(0x3bb)]),I(0xf,a[_0xb0c99b(0x1f0)]),I(0x10,a['Optional'](Te))],exports[_0xb0c99b(0x145)]),exports[_0xb0c99b(0x1e7)]=class extends exports[_0xb0c99b(0x275)]{constructor(_0x36c78f,_0x59d152,_0x42809e,_0xa6e85c,_0x1d371c,_0x59ab40,_0x4f62e9,_0x38fd32,_0x5538e2,_0x48bbeb,_0xd05dc3,_0x5ce26b,_0xefdc8d,_0x591a4e){const _0x5bb1da=_0xb0c99b;super(_0x36c78f,_0x42809e,_0x59d152,_0xa6e85c,_0x1d371c,_0x59ab40,_0x4f62e9,_0x38fd32,_0x48bbeb,_0xd05dc3,_0x5ce26b,_0xefdc8d,_0x591a4e),this[_0x5bb1da(0x4c3)]=_0x36c78f,this[_0x5bb1da(0x498)]=_0x59d152,this[_0x5bb1da(0x2ee)]=_0x5538e2;}[_0xb0c99b(0x1a7)](){const _0x2e94b8=_0xb0c99b,_0xee790f=super[_0x2e94b8(0x1a7)]();return _0xee790f[_0x2e94b8(0x1e4)]=_0x39aa41=>this['_sheetTransformSelectionsService'][_0x2e94b8(0x468)](_0x39aa41),_0xee790f;}async[_0xb0c99b(0x41f)](){const _0x26cb1a=_0xb0c99b,_0x24b33f=await super[_0x26cb1a(0x41f)]();return this[_0x26cb1a(0x3d3)](this['_commandService'][_0x26cb1a(0x2ac)]((_0x393dae,_0x54c38e)=>{const _0x1cf8eb=_0x26cb1a;if(_0x393dae[_0x1cf8eb(0x498)]!==a[_0x1cf8eb(0x1a2)][_0x1cf8eb(0x293)]||_0x54c38e!=null&&_0x54c38e[_0x1cf8eb(0x3b1)]||_0x54c38e!=null&&_0x54c38e[_0x1cf8eb(0x323)])return;const _0x267b5a=_0x393dae[_0x1cf8eb(0x2e3)];if((_0x267b5a==null?void 0x0:_0x267b5a[_0x1cf8eb(0x13a)])!==this[_0x1cf8eb(0x4c3)])return;const _0x56f695=_0x393dae,_0x42d846=this[_0x1cf8eb(0x1a6)][_0x1cf8eb(0x4e5)]['fetchThroughInterceptors'](this[_0x1cf8eb(0x1a6)][_0x1cf8eb(0x4e5)][_0x1cf8eb(0x14e)]()[_0x1cf8eb(0x489)])([_0x56f695],null)||[_0x56f695];this[_0x1cf8eb(0x481)](_0x42d846[0x0]);})),_0x24b33f;}},exports['SheetCollaborationEntity']=Ke([I(0x3,a['Inject'](a[_0xb0c99b(0x41a)])),I(0x4,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),I(0x5,a['Inject'](_[_0xb0c99b(0x32a)])),I(0x6,a['Inject'](a[_0xb0c99b(0x472)])),I(0x7,a[_0xb0c99b(0x455)](_['RevisionService'])),I(0x8,a[_0xb0c99b(0x455)](pe)),I(0x9,a['ILogService']),I(0xa,a[_0xb0c99b(0x47e)]),I(0xb,N[_0xb0c99b(0x3bb)]),I(0xc,a[_0xb0c99b(0x1f0)]),I(0xd,a[_0xb0c99b(0x1c6)](Te))],exports[_0xb0c99b(0x1e7)]);var ks=Object['defineProperty'],Bs=Object[_0xb0c99b(0x18e)],Vs=(_0x10c62d,_0x4c119d,_0x536177,_0x391b4e)=>{for(var _0x4735a9=_0x391b4e>0x1?void 0x0:_0x391b4e?Bs(_0x4c119d,_0x536177):_0x4c119d,_0x37992e=_0x10c62d['length']-0x1,_0x14a286;_0x37992e>=0x0;_0x37992e--)(_0x14a286=_0x10c62d[_0x37992e])&&(_0x4735a9=(_0x391b4e?_0x14a286(_0x4c119d,_0x536177,_0x4735a9):_0x14a286(_0x4735a9))||_0x4735a9);return _0x391b4e&&_0x4735a9&&ks(_0x4c119d,_0x536177,_0x4735a9),_0x4735a9;},Pe=(_0x136f1b,_0x202ec4)=>(_0x3c3517,_0x4f30fd)=>_0x202ec4(_0x3c3517,_0x4f30fd,_0x136f1b);exports[_0xb0c99b(0x109)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x937af9,_0x2351d5,_0x489387){const _0x50b96d=_0xb0c99b;super(),d(this,'_entities',new Map()),d(this,_0x50b96d(0x4d5),new v[(_0x50b96d(0x349))]()),(this[_0x50b96d(0x12f)]=_0x937af9,this[_0x50b96d(0x2c5)]=_0x2351d5,this[_0x50b96d(0x3fb)]=_0x489387,this[_0x50b96d(0x41f)]());}[_0xb0c99b(0x11c)](){const _0x2f1f30=_0xb0c99b;super[_0x2f1f30(0x11c)](),this[_0x2f1f30(0x3a4)][_0x2f1f30(0x1cb)](_0x39b4a3=>_0x39b4a3[_0x2f1f30(0x11c)]()),this['_entities'][_0x2f1f30(0x460)]();}[_0xb0c99b(0x30c)](_0x437b76){const _0x4ab63b=_0xb0c99b;var _0x1cf8cb;return(_0x1cf8cb=this[_0x4ab63b(0x3a4)][_0x4ab63b(0x1a0)](_0x437b76))!=null?_0x1cf8cb:null;}[_0xb0c99b(0x253)](_0x208388){const _0xb92a80=_0xb0c99b,_0x6615d9=this[_0xb92a80(0x30c)](_0x208388);return _0x6615d9?v['of'](_0x6615d9):this[_0xb92a80(0x4d5)]['pipe'](E['filter'](_0x3778b6=>_0x3778b6[_0xb92a80(0x4c3)]===_0x208388));}['_init'](){const _0x2ab5fb=_0xb0c99b;this[_0x2ab5fb(0x3fb)][_0x2ab5fb(0x2a4)](a[_0x2ab5fb(0x111)][_0x2ab5fb(0x3e6)])[_0x2ab5fb(0x3a7)](v[_0x2ab5fb(0x450)](this[_0x2ab5fb(0x495)]),E[_0x2ab5fb(0x4d6)](0x10))[_0x2ab5fb(0x33b)](async _0x25822b=>{const _0x21c478=_0x2ab5fb,_0x1e7290=_0x25822b[_0x21c478(0x4dd)](),_0x996d2b=await this[_0x21c478(0x357)](_0x1e7290,$[_0x21c478(0x3e6)]);this[_0x21c478(0x3a4)][_0x21c478(0x4d0)](_0x1e7290,_0x996d2b);}),this['_univerInstanceService'][_0x2ab5fb(0x2a4)](a[_0x2ab5fb(0x111)]['UNIVER_DOC'])['pipe'](v[_0x2ab5fb(0x450)](this[_0x2ab5fb(0x495)]),E['delay'](0x10))[_0x2ab5fb(0x3a7)](E[_0x2ab5fb(0x13b)](_0x7671a8=>!_0x7671a8[_0x2ab5fb(0x4dd)]()[_0x2ab5fb(0x477)]('__')))[_0x2ab5fb(0x33b)](async _0x3050a6=>{const _0x5d2e7a=_0x2ab5fb,_0x1017a0=_0x3050a6[_0x5d2e7a(0x4dd)](),_0x18d1dd=await this['_startCollaboration'](_0x1017a0,$[_0x5d2e7a(0x254)]);this[_0x5d2e7a(0x3a4)][_0x5d2e7a(0x4d0)](_0x1017a0,_0x18d1dd);}),v['merge'](this['_univerInstanceService'][_0x2ab5fb(0x1a4)](a[_0x2ab5fb(0x111)][_0x2ab5fb(0x3e6)]),this[_0x2ab5fb(0x3fb)]['getTypeOfUnitDisposed$'](a[_0x2ab5fb(0x111)][_0x2ab5fb(0x254)]))[_0x2ab5fb(0x3a7)](v[_0x2ab5fb(0x450)](this[_0x2ab5fb(0x495)]))['subscribe'](_0xa06dee=>{const _0x285454=_0x2ab5fb,_0x1d4799=_0xa06dee[_0x285454(0x4dd)](),_0x510017=this[_0x285454(0x3a4)][_0x285454(0x1a0)](_0x1d4799);_0x510017&&(_0x510017[_0x285454(0x11c)](),this[_0x285454(0x3a4)][_0x285454(0x456)](_0x1d4799));});}async[_0xb0c99b(0x357)](_0x56efe2,_0x58d5){const _0x5e0ba4=_0xb0c99b,_0x5db296=await this[_0x5e0ba4(0x2c5)][_0x5e0ba4(0x230)](_0x56efe2),_0x31c7d1=this[_0x5e0ba4(0x12f)][_0x5e0ba4(0x29b)](this[_0x5e0ba4(0x3da)](_0x58d5),_0x56efe2,_0x58d5,_0x5db296);return await _0x31c7d1['init'](),this['_entityInit$'][_0x5e0ba4(0x3c7)](_0x31c7d1),_0x31c7d1;}['_getCtorByUniverType'](_0x615c09){const _0x3284af=_0xb0c99b;switch(_0x615c09){case $['UNIVER_DOC']:return exports['DocCollaborationEntity'];case $['UNIVER_SHEET']:return exports[_0x3284af(0x1e7)];default:throw new Error(_0x3284af(0x2e1)+_0x615c09);}}},exports[_0xb0c99b(0x109)]=Vs([Pe(0x0,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),Pe(0x1,a['Inject'](exports[_0xb0c99b(0x28a)])),Pe(0x2,a['IUniverInstanceService'])],exports[_0xb0c99b(0x109)]);const nt=[_0xb0c99b(0x216),_0xb0c99b(0x3b0),_0xb0c99b(0x26c),_0xb0c99b(0x4a1),'blue400',_0xb0c99b(0x310)];class Xe extends a['Disposable']{constructor(){const _0x4f712e=_0xb0c99b;super(...arguments),d(this,_0x4f712e(0x321),new Map()),d(this,'_colorIndex',0x0);}[_0xb0c99b(0x1e9)](_0x53ee5e){const _0x5cc0ec=_0xb0c99b;if(this[_0x5cc0ec(0x321)][_0x5cc0ec(0x191)](_0x53ee5e))return this[_0x5cc0ec(0x321)]['get'](_0x53ee5e);const _0x364e39=nt[this[_0x5cc0ec(0x26e)]];return this[_0x5cc0ec(0x26e)]=(this[_0x5cc0ec(0x26e)]+0x1)%nt['length'],this[_0x5cc0ec(0x321)]['set'](_0x53ee5e,_0x364e39),_0x364e39;}}var Ws=Object[_0xb0c99b(0x3dd)],Fs=Object[_0xb0c99b(0x18e)],Gs=(_0x3524c0,_0x3d5fad,_0xba5e76,_0x19c5cf)=>{const _0x21b88b=_0xb0c99b;for(var _0x5d433e=_0x19c5cf>0x1?void 0x0:_0x19c5cf?Fs(_0x3d5fad,_0xba5e76):_0x3d5fad,_0x4d622=_0x3524c0[_0x21b88b(0x23c)]-0x1,_0x5a3e68;_0x4d622>=0x0;_0x4d622--)(_0x5a3e68=_0x3524c0[_0x4d622])&&(_0x5d433e=(_0x19c5cf?_0x5a3e68(_0x3d5fad,_0xba5e76,_0x5d433e):_0x5a3e68(_0x5d433e))||_0x5d433e);return _0x19c5cf&&_0x5d433e&&Ws(_0x3d5fad,_0xba5e76,_0x5d433e),_0x5d433e;},Q=(_0x1292ed,_0x32b540)=>(_0x2a67f8,_0x102a64)=>_0x32b540(_0x2a67f8,_0x102a64,_0x1292ed);const Ys=0x12c,Ks=0x64,Xs=()=>{let _0x12598f=[],_0x244827=!0x1;return _0x328690=>{const _0x21d165=_0x4e0f;_0x12598f[_0x21d165(0x2da)](_0x328690),_0x244827||(_0x244827=!0x0,setTimeout(()=>{const _0x27998b=_0x21d165;_0x12598f[_0x27998b(0x1cb)](_0x4fb6d2=>_0x4fb6d2()),_0x12598f=[],_0x244827=!0x1;}));};};let He=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x3dce05,_0x1599c9,_0x4f6e63,_0x2b239f,_0x4678d7,_0x5722ec,_0x146cc1,_0x5e780a){const _0x51db1a=_0xb0c99b;super(),d(this,'_online',!0x1),d(this,_0x51db1a(0x41f),!0x1),d(this,_0x51db1a(0x25a),new v[(_0x51db1a(0x4b1))](new Map())),d(this,_0x51db1a(0x3bd),this[_0x51db1a(0x25a)][_0x51db1a(0x3af)]()),d(this,_0x51db1a(0x26b),new v['BehaviorSubject']([])),d(this,_0x51db1a(0x150),this[_0x51db1a(0x26b)]['pipe'](v[_0x51db1a(0x3d6)](Ys))),d(this,_0x51db1a(0x272),a['debounce']((_0x4ae4d4,_0x1b1adc)=>{const _0x5536f8=_0x51db1a,_0x4cb4aa={'eventID':_[_0x5536f8(0x153)][_0x5536f8(0x2c7)],'data':{'unitID':this[_0x5536f8(0x4c3)],'memberID':this[_0x5536f8(0x276)]['getMemberID'](),'selection':Je[_0x5536f8(0x428)](_0x4ae4d4,_0x1b1adc[_0x5536f8(0x4ec)])}};this['_session']['send'](_0x4cb4aa,this[_0x5536f8(0x4c3)]);},Ks)),(this[_0x51db1a(0x4c3)]=_0x3dce05,this['_session']=_0x1599c9,this[_0x51db1a(0x12f)]=_0x4f6e63,this[_0x51db1a(0x139)]=_0x2b239f,this[_0x51db1a(0x3f3)]=_0x4678d7,this[_0x51db1a(0x3fb)]=_0x5722ec,this[_0x51db1a(0x425)]=_0x146cc1,this[_0x51db1a(0x30f)]=_0x5e780a);}get[_0xb0c99b(0x487)](){const _0x401a59=_0xb0c99b;return this[_0x401a59(0x25a)][_0x401a59(0x3d1)]();}get[_0xb0c99b(0x2ec)](){const _0x4773fb=_0xb0c99b;return this[_0x4773fb(0x26b)][_0x4773fb(0x3d1)]();}[_0xb0c99b(0x11c)](){const _0x3277e3=_0xb0c99b;super['dispose'](),this['_cursorInfo$'][_0x3277e3(0x3c7)](new Map()),this['_cursorInfo$'][_0x3277e3(0x484)](),this['_roomMembers$'][_0x3277e3(0x3c7)]([]),this[_0x3277e3(0x26b)][_0x3277e3(0x484)]();}['init'](){const _0xb06f3e=_0xb0c99b;this[_0xb06f3e(0x41f)]||(this['_init']=!0x0,this[_0xb06f3e(0x276)]['sessionStatus$'][_0xb06f3e(0x3a7)](v['takeUntil'](this[_0xb06f3e(0x495)]))[_0xb06f3e(0x33b)](_0x356639=>{const _0x3c1aab=_0xb06f3e;_0x356639===j['ONLINE']?this[_0x3c1aab(0x376)]():this[_0x3c1aab(0x3d2)]();}),this[_0xb06f3e(0x276)][_0xb06f3e(0x1c0)][_0xb06f3e(0x3a7)](v['takeUntil'](this['dispose$']))[_0xb06f3e(0x33b)](_0xb5e684=>{const _0x2d20b2=_0xb06f3e,_0x3462a2=_0xb5e684['eventID'];_0x3462a2===_['CollaborationEvent'][_0x2d20b2(0x2c7)]&&this[_0x2d20b2(0x4de)](_0xb5e684),_0x3462a2===_[_0x2d20b2(0x153)]['USERS_LEAVE']&&this[_0x2d20b2(0x48a)](_0xb5e684);}),this[_0xb06f3e(0x352)](),this['disposeWithMe'](this[_0xb06f3e(0x425)]['onCommandExecuted'](_0x3d9536=>{const _0x3032d2=_0xb06f3e;if(this[_0x3032d2(0x136)]&&_0x3d9536['id']===C['SetSelectionsOperation']['id']&&_0x3d9536[_0x3032d2(0x2e3)]['unitId']===this[_0x3032d2(0x4c3)]){const _0x29c343=_0x3d9536[_0x3032d2(0x2e3)];this['_updateLocalCursor'](_0x29c343['subUnitId'],_0x29c343['selections'][0x0]);}})));}[_0xb0c99b(0x4de)](_0x41f6da){const _0x545a25=_0xb0c99b;var _0x471bc2,_0x29a85f;const {memberID:_0x4f5488,selection:_0x52460f}=_0x41f6da['data'],{sheetName:_0x2b40d0,range:_0x3ac8ba}=Je[_0x545a25(0x35e)](_0x52460f),_0x269733={'name':(_0x29a85f=(_0x471bc2=this['_memberService'][_0x545a25(0x4b8)](this[_0x545a25(0x4c3)],_0x4f5488))==null?void 0x0:_0x471bc2[_0x545a25(0x29d)])!=null?_0x29a85f:'Unknown\x20user','range':this[_0x545a25(0x110)](_0x2b40d0,_0x3ac8ba),'sheetID':_0x2b40d0,'color':this[_0x545a25(0x139)][_0x545a25(0x1e9)](_0x4f5488),'selection':_0x52460f},_0x3af2d4=this[_0x545a25(0x487)];_0x3af2d4[_0x545a25(0x4d0)](_0x4f5488,_0x269733),this[_0x545a25(0x25a)]['next'](_0x3af2d4);}[_0xb0c99b(0x48a)](_0x2625d4){const _0x3c8ef0=_0xb0c99b,{memberID:_0x119410}=_0x2625d4['data'],_0x3b67e8=this['cursorInfo'];_0x3b67e8[_0x3c8ef0(0x456)](_0x119410),this['_cursorInfo$'][_0x3c8ef0(0x3c7)](_0x3b67e8);}['_getMergeRange'](_0x47c785,_0x3dcffe){const _0x3dd373=_0xb0c99b;var _0x3a8a31,_0x6d02b;const _0xd030b9=(_0x6d02b=(_0x3a8a31=this['_univerInstanceService'][_0x3dd373(0x24d)](this[_0x3dd373(0x4c3)]))==null?void 0x0:_0x3a8a31[_0x3dd373(0x134)](_0x47c785))==null?void 0x0:_0x6d02b[_0x3dd373(0x179)]();return(_0xd030b9==null?void 0x0:_0xd030b9[_0x3dd373(0x24b)](_0xfb6a8c=>a[_0x3dd373(0x1d0)][_0x3dd373(0x2b4)](_0xfb6a8c,_0x3dcffe)))||_0x3dcffe;}['_onRefRangeChange'](){const _0x575d8d=_0xb0c99b,_0x14b82c=new a[(_0x575d8d(0x283))](),_0x3c4f02=Xs(),_0x5f1092=()=>{const _0x3805b2=_0x575d8d;_0x14b82c[_0x3805b2(0x11c)]();const _0x305b5d=(_0x4c2e4a,_0x5a0fda,_0x9d4988,_0x33a328)=>{const _0x448299=_0x3805b2;let _0x1afc9e=[];switch(_0x4c2e4a['id']){case C[_0x448299(0x37d)][_0x448299(0x242)]:{_0x1afc9e=C[_0x448299(0x377)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)][_0x448299(0x1c2)]:{_0x1afc9e=C[_0x448299(0x2eb)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)]['InsertColCommandId']:{_0x1afc9e=C['handleInsertCol'](_0x4c2e4a,_0x33a328);break;}case C['EffectRefRangId'][_0x448299(0x16f)]:{_0x1afc9e=C[_0x448299(0x112)](_0x4c2e4a,_0x33a328);break;}case C['EffectRefRangId'][_0x448299(0x443)]:{_0x1afc9e=C[_0x448299(0x33a)](_0x4c2e4a,_0x33a328);break;}case C['EffectRefRangId'][_0x448299(0x3ff)]:{_0x1afc9e=C[_0x448299(0x45a)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)]['MoveRangeCommandId']:{_0x1afc9e=C[_0x448299(0x471)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)]['RemoveColCommandId']:{_0x1afc9e=C['handleIRemoveCol'](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)][_0x448299(0x393)]:{_0x1afc9e=C['handleIRemoveRow'](_0x4c2e4a,_0x33a328);break;}}const _0x133bcb=C[_0x448299(0x151)](_0x1afc9e,_0x33a328),_0x794490=this[_0x448299(0x487)][_0x448299(0x1a0)](_0x5a0fda);if(_0x794490&&_0x133bcb){const _0x544fda={..._0x794490,'range':_0x133bcb};this['cursorInfo']['set'](_0x5a0fda,_0x544fda),_0x3c4f02(()=>{const _0x5dd255=_0x448299,_0x292e59=this[_0x5dd255(0x30f)][_0x5dd255(0x2a9)](_0x133bcb,_0x57ef0d=>(_0x292e59['dispose'](),_0x305b5d(_0x57ef0d,_0x5a0fda,_0x9d4988,_0x133bcb)));_0x14b82c['add'](_0x292e59);});}return{'redos':[],'undos':[]};};this[_0x3805b2(0x487)][_0x3805b2(0x1cb)]((_0x282204,_0x37cf24)=>{const _0xd66119=_0x3805b2,{range:_0x51f2eb,sheetID:_0x50c474}=_0x282204,_0x2d857d=this[_0xd66119(0x30f)][_0xd66119(0x2a9)](_0x51f2eb,_0x5d9e0e=>(_0x2d857d[_0xd66119(0x11c)](),_0x305b5d(_0x5d9e0e,_0x37cf24,_0x50c474,_0x51f2eb)));_0x14b82c[_0xd66119(0x143)](_0x2d857d);});};this[_0x575d8d(0x3d3)](a[_0x575d8d(0x2ef)](this['_cursorInfo$'][_0x575d8d(0x33b)](()=>{_0x5f1092();})));}[_0xb0c99b(0x376)](){const _0x2b55de=_0xb0c99b;var _0x39f4f6,_0x1a3263;if(this[_0x2b55de(0x136)]=!0x0,((_0x39f4f6=this['_univerInstanceService'][_0x2b55de(0x345)]())==null?void 0x0:_0x39f4f6[_0x2b55de(0x4dd)]())!==this['unitID'])return;const _0x144ec1=(_0x1a3263=this['_injector'][_0x2b55de(0x1a0)](C[_0x2b55de(0x1f3)])[_0x2b55de(0x210)]())==null?void 0x0:_0x1a3263[0x0],_0x2a3f5c=this['_univerInstanceService'][_0x2b55de(0x3c6)](a[_0x2b55de(0x111)][_0x2b55de(0x3e6)])[_0x2b55de(0x1ba)]();_0x144ec1&&_0x2a3f5c&&this['_updateLocalCursor'](_0x2a3f5c['getSheetId'](),_0x144ec1);}[_0xb0c99b(0x3d2)](){const _0x4005bd=_0xb0c99b;this[_0x4005bd(0x136)]=!0x1;}};He=Gs([Q(0x2,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),Q(0x3,a[_0xb0c99b(0x455)](Xe)),Q(0x4,a[_0xb0c99b(0x455)](q)),Q(0x5,a[_0xb0c99b(0x49b)]),Q(0x6,a[_0xb0c99b(0x47e)]),Q(0x7,a['Inject'](C['RefRangeService']))],He);var qs=Object[_0xb0c99b(0x3dd)],zs=Object['getOwnPropertyDescriptor'],Js=(_0x2622e0,_0x568e02,_0x31eefe,_0x45fe0e)=>{const _0x536179=_0xb0c99b;for(var _0x5424fe=_0x45fe0e>0x1?void 0x0:_0x45fe0e?zs(_0x568e02,_0x31eefe):_0x568e02,_0x31c37d=_0x2622e0[_0x536179(0x23c)]-0x1,_0x4b7d7d;_0x31c37d>=0x0;_0x31c37d--)(_0x4b7d7d=_0x2622e0[_0x31c37d])&&(_0x5424fe=(_0x45fe0e?_0x4b7d7d(_0x568e02,_0x31eefe,_0x5424fe):_0x4b7d7d(_0x5424fe))||_0x5424fe);return _0x45fe0e&&_0x5424fe&&qs(_0x568e02,_0x31eefe,_0x5424fe),_0x5424fe;},K=(_0x5e0a86,_0x5529fd)=>(_0x3079b2,_0xf4230c)=>_0x5529fd(_0x3079b2,_0xf4230c,_0x5e0a86);const Zs=0x12c,Qs=0x64;let xe=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x93393a,_0x3d958f,_0xbccd15,_0x1f340d,_0x4015d6,_0x37f1c2,_0x1bf133,_0x3301c5,_0x345208){const _0x425de8=_0xb0c99b;super(),d(this,_0x425de8(0x136),!0x1),d(this,_0x425de8(0x41f),!0x1),d(this,_0x425de8(0x25a),new v['BehaviorSubject'](new Map())),d(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),d(this,_0x425de8(0x26b),new v['BehaviorSubject']([])),d(this,'roomMembers$',this['_roomMembers$'][_0x425de8(0x3a7)](v['debounceTime'](Zs))),d(this,'_updateLocalCursor',a[_0x425de8(0x301)](_0x506385=>{const _0x4b78dd=_0x425de8,_0x161fec={'eventID':_[_0x4b78dd(0x153)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x4b78dd(0x276)][_0x4b78dd(0x34f)](),'selection':Tt(_0x506385)}};this[_0x4b78dd(0x276)][_0x4b78dd(0x3c3)](_0x161fec,this[_0x4b78dd(0x4c3)]);},Qs)),(this[_0x425de8(0x4c3)]=_0x93393a,this[_0x425de8(0x276)]=_0x3d958f,this[_0x425de8(0x12f)]=_0xbccd15,this['_colorAssignService']=_0x1f340d,this['_memberService']=_0x4015d6,this[_0x425de8(0x37f)]=_0x37f1c2,this[_0x425de8(0x1f2)]=_0x1bf133,this[_0x425de8(0x3fb)]=_0x3301c5,this[_0x425de8(0x425)]=_0x345208);}get['cursorInfo'](){const _0x5c58c6=_0xb0c99b;return this[_0x5c58c6(0x25a)][_0x5c58c6(0x3d1)]();}get[_0xb0c99b(0x2ec)](){const _0x2f49d5=_0xb0c99b;return this[_0x2f49d5(0x26b)][_0x2f49d5(0x3d1)]();}[_0xb0c99b(0x11c)](){const _0x480a5b=_0xb0c99b;super[_0x480a5b(0x11c)](),this[_0x480a5b(0x25a)][_0x480a5b(0x3c7)](new Map()),this['_cursorInfo$'][_0x480a5b(0x484)](),this[_0x480a5b(0x26b)][_0x480a5b(0x3c7)]([]),this[_0x480a5b(0x26b)][_0x480a5b(0x484)]();}[_0xb0c99b(0x188)](){const _0x5b2a93=_0xb0c99b;this[_0x5b2a93(0x41f)]||(this['_init']=!0x0,this[_0x5b2a93(0x276)][_0x5b2a93(0x404)][_0x5b2a93(0x3a7)](v[_0x5b2a93(0x450)](this['dispose$']))[_0x5b2a93(0x33b)](_0x635c69=>{const _0x5a3418=_0x5b2a93;_0x635c69===j[_0x5a3418(0x305)]?this[_0x5a3418(0x376)]():this[_0x5a3418(0x3d2)]();}),this[_0x5b2a93(0x276)][_0x5b2a93(0x1c0)][_0x5b2a93(0x3a7)](v['takeUntil'](this[_0x5b2a93(0x495)]))['subscribe'](_0x39d83b=>{const _0x27c3a0=_0x5b2a93,_0x355f27=_0x39d83b[_0x27c3a0(0x1bd)];_0x355f27===_[_0x27c3a0(0x153)]['UPDATE_CURSOR']&&this[_0x27c3a0(0x4de)](_0x39d83b),_0x355f27===_[_0x27c3a0(0x153)]['USERS_LEAVE']&&this[_0x27c3a0(0x48a)](_0x39d83b);}),this[_0x5b2a93(0x3d3)](this[_0x5b2a93(0x425)][_0x5b2a93(0x2ac)](_0x1adc61=>{const _0x9a6120=_0x5b2a93,_0x3c48a3=_0x1adc61[_0x9a6120(0x2e3)];_0x3c48a3!=null&&this[_0x9a6120(0x136)]&&_0x1adc61['id']===V['SetTextSelectionsOperation']['id']&&_0x3c48a3['unitId']===this[_0x9a6120(0x4c3)]&&_0x3c48a3['isEditing']===!0x1&&this[_0x9a6120(0x272)](_0x3c48a3[_0x9a6120(0x2a6)]);})),this[_0x5b2a93(0x37f)][_0x5b2a93(0x185)][_0x5b2a93(0x3a7)](v[_0x5b2a93(0x450)](this[_0x5b2a93(0x495)]))[_0x5b2a93(0x33b)](_0x58e45f=>{const _0x334f97=_0x5b2a93;if((_0x58e45f==null?void 0x0:_0x58e45f[_0x334f97(0x4c3)])!==this[_0x334f97(0x4c3)])return;const _0x1c3dce={'eventID':_['CollaborationEvent'][_0x334f97(0x2c7)],'data':_0x58e45f};this[_0x334f97(0x4de)](_0x1c3dce);}),this[_0x5b2a93(0x3d3)](this['_commandService']['onCommandExecuted'](_0x30fcba=>{const _0x12d6dc=_0x5b2a93;if(_0x30fcba['params']==null)return;const _0x3d60ee=_0x30fcba[_0x12d6dc(0x2e3)];if(_0x30fcba['id']!==V['RichTextEditingMutation']['id']||_0x3d60ee[_0x12d6dc(0x13a)]!==this[_0x12d6dc(0x4c3)])return;const _0x3ba58e={'id':'doc.mutation.rich-text-editing','params':_0x3d60ee},_0x1fbaf7=this[_0x12d6dc(0x487)];for(const [_0x3b7f5f,_0x919d7b]of _0x1fbaf7){const _0x1287e3={'id':_0x12d6dc(0x356),'params':{'unitId':this[_0x12d6dc(0x4c3)],'actions':null,'textRanges':_0x919d7b['ranges']}},_0x41d003=this[_0x12d6dc(0x1f2)]['transformMutation'](_0x3ba58e,_0x1287e3,!0x1);if(_[_0x12d6dc(0x48b)](_0x41d003))throw _0x41d003[_0x12d6dc(0x4d1)];_0x1fbaf7['set'](_0x3b7f5f,{..._0x919d7b,'ranges':_0x41d003[_0x12d6dc(0x200)]['params'][_0x12d6dc(0x422)]});}queueMicrotask(()=>{const _0x41acb0=_0x12d6dc;this[_0x41acb0(0x25a)][_0x41acb0(0x3c7)](_0x1fbaf7);});})));}[_0xb0c99b(0x4de)](_0x1af157){const _0x129b93=_0xb0c99b;var _0x21ed1c,_0x570900;const {memberID:_0x26f6a7,selection:_0x4ab656}=_0x1af157['data'],_0x4fb267=Us(_0x4ab656),_0x61eb4d=(_0x570900=(_0x21ed1c=this['_memberService'][_0x129b93(0x4b8)](this['unitID'],_0x26f6a7))==null?void 0x0:_0x21ed1c[_0x129b93(0x29d)])!=null?_0x570900:'Unknown\x20user',_0x547322={'color':this[_0x129b93(0x139)][_0x129b93(0x1e9)](_0x26f6a7),'name':_0x61eb4d,'ranges':_0x4fb267},_0x4ec82d=this['cursorInfo'];_0x4ec82d[_0x129b93(0x4d0)](_0x26f6a7,_0x547322),this[_0x129b93(0x25a)]['next'](_0x4ec82d);}[_0xb0c99b(0x48a)](_0x31a526){const _0xba9d2a=_0xb0c99b,{memberID:_0x525b64}=_0x31a526[_0xba9d2a(0x494)],_0x148b87=this[_0xba9d2a(0x487)];_0x148b87[_0xba9d2a(0x456)](_0x525b64),this[_0xba9d2a(0x25a)][_0xba9d2a(0x3c7)](_0x148b87);}[_0xb0c99b(0x376)](){const _0x35a01f=_0xb0c99b;var _0x96e20d;if(this[_0x35a01f(0x136)]=!0x0,((_0x96e20d=this[_0x35a01f(0x3fb)][_0x35a01f(0x345)]())==null?void 0x0:_0x96e20d[_0x35a01f(0x4dd)]())!==this[_0x35a01f(0x4c3)])return;const _0x5268a3=this['_injector'][_0x35a01f(0x1a0)](V[_0x35a01f(0x1b0)])[_0x35a01f(0x132)]();Array['isArray'](_0x5268a3)&&_0x5268a3[_0x35a01f(0x23c)]>0x0&&this[_0x35a01f(0x272)](_0x5268a3);}['_toggleOffline'](){const _0x3b1428=_0xb0c99b;this[_0x3b1428(0x136)]=!0x1;}};xe=Js([K(0x2,a['Inject'](a[_0xb0c99b(0x41a)])),K(0x3,a['Inject'](Xe)),K(0x4,a[_0xb0c99b(0x455)](q)),K(0x5,a[_0xb0c99b(0x455)](Ye)),K(0x6,_[_0xb0c99b(0x37c)]),K(0x7,a[_0xb0c99b(0x49b)]),K(0x8,a[_0xb0c99b(0x47e)])],xe);var ei=Object[_0xb0c99b(0x3dd)],ti=Object[_0xb0c99b(0x18e)],si=(_0x22d48b,_0x51d389,_0x267339,_0x5cb83f)=>{const _0xc0a22d=_0xb0c99b;for(var _0x4b447b=_0x5cb83f>0x1?void 0x0:_0x5cb83f?ti(_0x51d389,_0x267339):_0x51d389,_0x2dd232=_0x22d48b[_0xc0a22d(0x23c)]-0x1,_0x51bed5;_0x2dd232>=0x0;_0x2dd232--)(_0x51bed5=_0x22d48b[_0x2dd232])&&(_0x4b447b=(_0x5cb83f?_0x51bed5(_0x51d389,_0x267339,_0x4b447b):_0x51bed5(_0x4b447b))||_0x4b447b);return _0x5cb83f&&_0x4b447b&&ei(_0x51d389,_0x267339,_0x4b447b),_0x4b447b;},we=(_0x14635a,_0x24cda7)=>(_0x2624ee,_0x3216cb)=>_0x24cda7(_0x2624ee,_0x3216cb,_0x14635a);let se=class extends a[_0xb0c99b(0x3c1)]{constructor(_0xfbd20a,_0xa523ee,_0x5e908a){const _0x2ec0f1=_0xb0c99b;super(),d(this,'_entities',new Map()),d(this,_0x2ec0f1(0x4d5),new v[(_0x2ec0f1(0x349))]()),(this['_univerInstanceService']=_0xfbd20a,this['_injector']=_0xa523ee,this[_0x2ec0f1(0x2c5)]=_0x5e908a,this[_0x2ec0f1(0x41f)]());}[_0xb0c99b(0x11c)](){const _0x20c0cb=_0xb0c99b;super['dispose'](),this[_0x20c0cb(0x4d5)][_0x20c0cb(0x484)](),this[_0x20c0cb(0x3a4)][_0x20c0cb(0x1cb)](_0x54a3d3=>_0x54a3d3[_0x20c0cb(0x11c)]());}[_0xb0c99b(0x2f7)](_0x5c9916){const _0x7c625d=_0xb0c99b;return this[_0x7c625d(0x3a4)]['has'](_0x5c9916)?this[_0x7c625d(0x3a4)]['get'](_0x5c9916)['cursorInfo$']:this[_0x7c625d(0x4d5)][_0x7c625d(0x3a7)](v['filter'](_0x4e33a0=>_0x4e33a0[_0x7c625d(0x4c3)]===_0x5c9916),v[_0x7c625d(0x22a)](_0x5b49f1=>_0x5b49f1['cursorInfo$']));}[_0xb0c99b(0x41f)](){const _0x41fca9=_0xb0c99b;this[_0x41fca9(0x3fb)][_0x41fca9(0x2a4)](a[_0x41fca9(0x111)]['UNIVER_SHEET'])['pipe'](v[_0x41fca9(0x450)](this[_0x41fca9(0x495)]))['subscribe'](async _0x511d71=>{const _0x3ef23a=_0x41fca9,_0x26297b=_0x511d71[_0x3ef23a(0x4dd)](),_0x2c1305=await this['_startSheetCollabCursor'](_0x26297b);this['_entityInit$'][_0x3ef23a(0x3c7)](_0x2c1305),this[_0x3ef23a(0x3a4)][_0x3ef23a(0x4d0)](_0x26297b,_0x2c1305);}),this[_0x41fca9(0x3fb)][_0x41fca9(0x2a4)](a[_0x41fca9(0x111)][_0x41fca9(0x254)])[_0x41fca9(0x3a7)](v[_0x41fca9(0x450)](this['dispose$']))[_0x41fca9(0x3a7)](v[_0x41fca9(0x13b)](_0x11820b=>!_0x11820b['getUnitId']()['startsWith']('__')))[_0x41fca9(0x33b)](async _0x3d0d52=>{const _0x1121ba=_0x41fca9,_0x2f4552=_0x3d0d52[_0x1121ba(0x4dd)](),_0x1ad743=await this[_0x1121ba(0x45c)](_0x2f4552);this[_0x1121ba(0x4d5)][_0x1121ba(0x3c7)](_0x1ad743),this[_0x1121ba(0x3a4)][_0x1121ba(0x4d0)](_0x2f4552,_0x1ad743);}),v[_0x41fca9(0x387)](this[_0x41fca9(0x3fb)][_0x41fca9(0x1a4)](a[_0x41fca9(0x111)][_0x41fca9(0x254)]),this[_0x41fca9(0x3fb)]['getTypeOfUnitDisposed$'](a[_0x41fca9(0x111)][_0x41fca9(0x3e6)]))['pipe'](v['takeUntil'](this[_0x41fca9(0x495)]))[_0x41fca9(0x33b)](_0x4c4d73=>{const _0x2daa1b=_0x41fca9,_0x12ce9a=_0x4c4d73[_0x2daa1b(0x4dd)](),_0x17060b=this['_entities'][_0x2daa1b(0x1a0)](_0x12ce9a);_0x17060b&&(_0x17060b[_0x2daa1b(0x11c)](),this[_0x2daa1b(0x3a4)][_0x2daa1b(0x456)](_0x12ce9a));});}async[_0xb0c99b(0x4a4)](_0x23a437){const _0x1dfd66=_0xb0c99b,_0x100aee=await this[_0x1dfd66(0x2c5)]['requireSession'](_0x23a437),_0x190d44=this[_0x1dfd66(0x12f)][_0x1dfd66(0x29b)](He,_0x23a437,_0x100aee);return _0x190d44['init'](),_0x190d44;}async[_0xb0c99b(0x45c)](_0x5486f1){const _0x5a9a3f=_0xb0c99b,_0x559ad4=await this[_0x5a9a3f(0x2c5)][_0x5a9a3f(0x230)](_0x5486f1),_0x40059a=this[_0x5a9a3f(0x12f)][_0x5a9a3f(0x29b)](xe,_0x5486f1,_0x559ad4);return _0x40059a[_0x5a9a3f(0x188)](),_0x40059a;}};se=si([a[_0xb0c99b(0x10c)](a[_0xb0c99b(0x133)]['Starting'],se),we(0x0,a[_0xb0c99b(0x49b)]),we(0x1,a['Inject'](a['Injector'])),we(0x2,a['Inject'](exports[_0xb0c99b(0x28a)]))],se);const ue=0x14,rt=0xc8,Me=0x4,ii=0x5;function ni(_0x3f6242,_0x171ac6){const _0x3f2295=_0xb0c99b;let {radius:_0xc2c4b,width:_0x48ed68,height:_0x479788}=_0x171ac6;_0xc2c4b=_0xc2c4b!=null?_0xc2c4b:0x0,_0x48ed68=_0x48ed68!=null?_0x48ed68:0x1e,_0x479788=_0x479788!=null?_0x479788:0x1e;let _0x56133b=0x0,_0x37ddba=0x0,_0x1f3f0c=0x0;_0x56133b=_0x37ddba=_0x1f3f0c=Math[_0x3f2295(0x2f1)](_0xc2c4b,_0x48ed68/0x2,_0x479788/0x2),_0x3f6242['beginPath'](),_0x3f6242['moveTo'](_0x56133b,0x0),_0x3f6242[_0x3f2295(0x14f)](_0x48ed68-_0x37ddba,0x0),_0x3f6242[_0x3f2295(0x42b)](_0x48ed68-_0x37ddba,_0x37ddba,_0x37ddba,Math['PI']*0x3/0x2,0x0,!0x1),_0x3f6242[_0x3f2295(0x14f)](_0x48ed68,_0x479788-_0x1f3f0c),_0x3f6242[_0x3f2295(0x42b)](_0x48ed68-_0x1f3f0c,_0x479788-_0x1f3f0c,_0x1f3f0c,0x0,Math['PI']/0x2,!0x1),_0x3f6242[_0x3f2295(0x14f)](0x0,_0x479788),_0x3f6242['lineTo'](0x0,_0x56133b),_0x3f6242[_0x3f2295(0x42b)](_0x56133b,_0x56133b,_0x56133b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3f6242['closePath'](),_0x171ac6[_0x3f2295(0xf5)]&&(_0x3f6242[_0x3f2295(0x2d9)](),_0x3f6242[_0x3f2295(0x32f)]=_0x171ac6['fill'],_0x171ac6['fillRule']===_0x3f2295(0x4dc)?_0x3f6242['fill'](_0x3f2295(0x4dc)):_0x3f6242[_0x3f2295(0xf5)](),_0x3f6242[_0x3f2295(0x33d)]());}class Re extends R[_0xb0c99b(0x289)]{constructor(_0x279c09,_0x548505){const _0x488371=_0xb0c99b;super(_0x279c09,_0x548505),d(this,_0x488371(0xe8)),d(this,_0x488371(0x266)),(this[_0x488371(0xe8)]=_0x548505==null?void 0x0:_0x548505['color'],this[_0x488371(0x266)]=_0x548505==null?void 0x0:_0x548505[_0x488371(0x266)]);}static[_0xb0c99b(0x1d8)](_0x3e33a0,_0x3a8561){const _0x5d8072=_0xb0c99b,{text:_0x3c1ec3,color:_0x37b4c}=_0x3a8561;_0x3e33a0[_0x5d8072(0x2d9)](),_0x3e33a0['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x26c6ad=_0x3e33a0[_0x5d8072(0x332)](_0x3c1ec3)['width'],_0x165ac0=Math[_0x5d8072(0x2f1)](_0x26c6ad+0x2*Me,rt);ni(_0x3e33a0,{'height':ue,'radius':0x4,'width':_0x165ac0,'fill':_0x37b4c,'evented':!0x1}),_0x3e33a0['fillStyle']=_0x5d8072(0x123);const _0x169ff9=Me,_0x4c8e70=ue-ii,_0x26eed1=rt-0x2*Me;if(_0x26c6ad>_0x26eed1){let _0x2243d3='',_0x5529ff=0x0;for(const _0x5b1d09 of _0x3c1ec3){const _0x589a6b=_0x3e33a0[_0x5d8072(0x332)](_0x5b1d09)[_0x5d8072(0x46e)];if(_0x5529ff+_0x589a6b<=_0x26eed1-_0x3e33a0[_0x5d8072(0x332)](_0x5d8072(0x265))[_0x5d8072(0x46e)])_0x2243d3+=_0x5b1d09,_0x5529ff+=_0x589a6b;else{_0x2243d3+=_0x5d8072(0x265);break;}}_0x3e33a0[_0x5d8072(0x35f)](_0x2243d3,_0x169ff9,_0x4c8e70);}else _0x3e33a0['fillText'](_0x3c1ec3,_0x169ff9,_0x4c8e70);_0x3e33a0[_0x5d8072(0x33d)]();}[_0xb0c99b(0x17a)](_0x5a94ff){Re['drawWith'](_0x5a94ff,this);}}const Ne=_0xb0c99b(0x278),ri=_0xb0c99b(0x15f),oi='collab-rect-range-',ce=0x6,ai=1.5,Le=0x4,ci=1.5,li=_0xb0c99b(0x31c);class ot{constructor(_0x2fa8cc,_0x4f1239,_0x278fa3,_0x3cfed4){const _0x25bdcd=_0xb0c99b;d(this,_0x25bdcd(0x32e),[]),d(this,_0x25bdcd(0x2a2),null),d(this,_0x25bdcd(0x161),null),d(this,'_anchorDot',null),d(this,_0x25bdcd(0x138),null),d(this,_0x25bdcd(0x3f2),null),(this['_cursor']=_0x2fa8cc,this[_0x25bdcd(0x2a0)]=_0x4f1239,this[_0x25bdcd(0x383)]=_0x278fa3,this['_document']=_0x3cfed4,this[_0x25bdcd(0x3ed)]());}set['_hover'](_0x4ccc23){const _0x365462=_0xb0c99b;_0x4ccc23?(this['_anchorDot']&&this[_0x365462(0x36e)][_0x365462(0x22f)](),this[_0x365462(0x161)]&&this[_0x365462(0x161)][_0x365462(0x126)]()):(this['_anchorDot']&&this[_0x365462(0x36e)]['show'](),this[_0x365462(0x161)]&&this[_0x365462(0x161)][_0x365462(0x22f)]());}[_0xb0c99b(0x11c)](){const _0x52639f=_0xb0c99b;for(const _0x9624b3 of this[_0x52639f(0x32e)])_0x9624b3[_0x52639f(0x11c)]();this[_0x52639f(0x161)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x52639f(0x11c)](),this[_0x52639f(0x2a2)]&&this[_0x52639f(0x2a2)][_0x52639f(0x11c)](),this[_0x52639f(0x3f2)]&&this[_0x52639f(0x3f2)]();}['_render'](){const _0x28e1e8=_0xb0c99b;var _0x4137ed;const {_docSkeleton:_0xba9a77,_document:_0x3a80b6}=this,{color:_0x106922,name:_0x1647e0,ranges:_0x3dbf87}=this['_cursor'],_0x39c0df=_0x3a80b6[_0x28e1e8(0x3f0)](),{docsLeft:_0xd2add8,docsTop:_0x37f63e}=_0x39c0df,_0x44ca0a=new w[(_0x28e1e8(0x28f))](_0x39c0df,_0xba9a77);for(const {startOffset:_0x3fe9e1,endOffset:_0x107312,collapsed:_0x1c273e,isActive:_0xa7a838}of _0x3dbf87){const _0x1f38a9=_0xba9a77['findNodePositionByCharIndex'](_0x3fe9e1),_0x583852=_0xba9a77[_0x28e1e8(0x113)](_0x107312);if(_0xa7a838){const {contentBoxPointGroup:_0x4f4f1c}=_0x44ca0a[_0x28e1e8(0x43d)](_0x583852,_0x583852);if(_0x4f4f1c['length']===0x0)continue;this[_0x28e1e8(0x3f5)](_0x106922,_0x4f4f1c,_0xd2add8,_0x37f63e,_0x1647e0),this[_0x28e1e8(0x3f2)]=this['_handleHover']();}if(!_0x1c273e&&_0x1f38a9&&_0x583852){if(w['isValidRectRange'](_0x1f38a9,_0x583852)){const _0x3fd644=new w[(_0x28e1e8(0x431))](_0x39c0df,_0xba9a77),{pointGroup:_0xc98308}=(_0x4137ed=_0x3fd644[_0x28e1e8(0x43d)](_0x1f38a9,_0x583852))!=null?_0x4137ed:{};if(_0xc98308==null||_0xc98308['length']===0x0)continue;this[_0x28e1e8(0x3c0)](_0x106922,_0xc98308,_0xd2add8,_0x37f63e);}else{const {contentBoxPointGroup:_0x5348ff}=_0x44ca0a[_0x28e1e8(0x43d)](_0x1f38a9,_0x583852);if(_0x5348ff[_0x28e1e8(0x23c)]===0x0)continue;this[_0x28e1e8(0x2b3)](_0x106922,_0x5348ff,_0xd2add8,_0x37f63e);}}}}[_0xb0c99b(0x3f5)](_0x39a65b,_0x51a4c1,_0xcc1bce,_0x1f0199,_0x22c850){const _0x254e68=_0xb0c99b,_0x5ee4fd=this[_0x254e68(0x41c)](_0x51a4c1),{left:_0x25967a,top:_0x41f21b,height:_0x217aa8}=_0x5ee4fd,_0x3a3c93=this['_getScale'](),_0xb4d4d0=ci/_0x3a3c93,_0x2f9755=new R['Rect'](Ne+a['Tools'][_0x254e68(0x36a)](ce),{'left':_0x25967a+_0xcc1bce-_0xb4d4d0,'top':_0x41f21b+_0x1f0199,'height':_0x217aa8,'width':ai,'fill':_0x39a65b||R[_0x254e68(0xed)](a[_0x254e68(0x13d)]['black'],0x0),'strokeWidth':_0xb4d4d0,'stroke':li,'evented':!0x0});this[_0x254e68(0x2a2)]=_0x2f9755,this['_scene'][_0x254e68(0x40c)](_0x2f9755,w[_0x254e68(0x1a8)]);const _0xcbd86d=new R[(_0x254e68(0x15c))](Ne+a['Tools'][_0x254e68(0x36a)](ce),{'left':_0x25967a+_0xcc1bce-_0xb4d4d0,'top':_0x41f21b+_0x1f0199-Le/0x2,'height':Le,'width':Le,'fill':_0x39a65b||R[_0x254e68(0xed)](a[_0x254e68(0x13d)][_0x254e68(0x1d4)],0x0),'strokeWidth':0x0,'stroke':_0x39a65b||R[_0x254e68(0xed)](a[_0x254e68(0x13d)][_0x254e68(0x1d4)],0x0),'evented':!0x1});this['_anchorDot']=_0xcbd86d,this[_0x254e68(0x2a0)][_0x254e68(0x40c)](_0xcbd86d,w[_0x254e68(0x1a8)]);const _0xda7711=new Re(Ne+a[_0x254e68(0x286)][_0x254e68(0x36a)](ce),{'left':_0x25967a+_0xcc1bce-_0xb4d4d0,'top':_0x41f21b+_0x1f0199-ue,'text':_0x22c850,'color':_0x39a65b});this[_0x254e68(0x161)]=_0xda7711,this[_0x254e68(0x2a0)][_0x254e68(0x40c)](_0xda7711,w[_0x254e68(0x1a8)]),this[_0x254e68(0x4f5)]=!0x1;}[_0xb0c99b(0x29e)](){const _0x44d6db=_0xb0c99b,_0x4400f1=this[_0x44d6db(0x2a2)][_0x44d6db(0x235)][_0x44d6db(0x15d)](()=>{this['_hover']=!0x0;}),_0xbb4d39=this[_0x44d6db(0x2a2)][_0x44d6db(0x100)]['subscribeEvent'](()=>{const _0x32d167=_0x44d6db;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x32d167(0x138)]=setTimeout(()=>{const _0x1eb30c=_0x32d167;this[_0x1eb30c(0x4f5)]=!0x1;},0x7d0);});return()=>{_0x4400f1['unsubscribe'](),_0xbb4d39['unsubscribe']();};}[_0xb0c99b(0x2b3)](_0x41a613,_0x5e1db7,_0x44cbd4,_0x1e76a0){const _0x27e2c8=_0xb0c99b,_0x513f53=new a[(_0x27e2c8(0x312))](_0x41a613)[_0x27e2c8(0x372)](0.2)[_0x27e2c8(0x2bb)](),_0xb9a98a=new R[(_0x27e2c8(0x11d))](ri+a[_0x27e2c8(0x286)][_0x27e2c8(0x36a)](ce),{'pointsGroup':_0x5e1db7,'fill':_0x513f53||R['getColor'](a[_0x27e2c8(0x13d)]['black'],0.2),'left':_0x44cbd4,'top':_0x1e76a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27e2c8(0x32e)][_0x27e2c8(0x2da)](_0xb9a98a),this[_0x27e2c8(0x2a0)]['addObject'](_0xb9a98a,w[_0x27e2c8(0x1a8)]);}[_0xb0c99b(0x3c0)](_0xfe416,_0x1fde5d,_0x1ae38e,_0x4b2782){const _0x1f2766=_0xb0c99b,_0x22ce67=new a[(_0x1f2766(0x312))](_0xfe416)[_0x1f2766(0x372)](0.2)[_0x1f2766(0x2bb)](),_0x348cbd=new R[(_0x1f2766(0x11d))](oi+a[_0x1f2766(0x286)][_0x1f2766(0x36a)](ce),{'pointsGroup':_0x1fde5d,'fill':_0x22ce67||R[_0x1f2766(0xed)](a[_0x1f2766(0x13d)][_0x1f2766(0x1d4)],0.2),'left':_0x1ae38e,'top':_0x4b2782,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1f2766(0x2da)](_0x348cbd),this[_0x1f2766(0x2a0)][_0x1f2766(0x40c)](_0x348cbd,w[_0x1f2766(0x1a8)]);}[_0xb0c99b(0x41c)](_0x129ec9){const _0x3c70e0=_0x129ec9[0x0],_0x4fe615=_0x3c70e0[0x0],_0x595c19=_0x3c70e0[0x2],{x:_0x507bd8,y:_0x2332cf}=_0x4fe615,{x:_0x15fa16,y:_0x44a177}=_0x595c19;return{'left':_0x507bd8,'top':_0x2332cf,'width':_0x15fa16-_0x507bd8,'height':_0x44a177-_0x2332cf};}[_0xb0c99b(0x108)](){const _0x265921=_0xb0c99b,{scaleX:_0x229fcd,scaleY:_0x3a356b}=this['_scene'][_0x265921(0x255)]();return Math[_0x265921(0x452)](_0x229fcd,_0x3a356b);}}var hi=Object[_0xb0c99b(0x3dd)],_i=Object[_0xb0c99b(0x18e)],ui=(_0x562cb0,_0x3304b0,_0x23ea92,_0xce8754)=>{const _0x958d11=_0xb0c99b;for(var _0x3ce6ca=_0xce8754>0x1?void 0x0:_0xce8754?_i(_0x3304b0,_0x23ea92):_0x3304b0,_0xf6219a=_0x562cb0[_0x958d11(0x23c)]-0x1,_0x29892b;_0xf6219a>=0x0;_0xf6219a--)(_0x29892b=_0x562cb0[_0xf6219a])&&(_0x3ce6ca=(_0xce8754?_0x29892b(_0x3304b0,_0x23ea92,_0x3ce6ca):_0x29892b(_0x3ce6ca))||_0x3ce6ca);return _0xce8754&&_0x3ce6ca&&hi(_0x3304b0,_0x23ea92,_0x3ce6ca),_0x3ce6ca;},de=(_0x35826c,_0x4f71f9)=>(_0xb9c343,_0xba6e1)=>_0x4f71f9(_0xb9c343,_0xba6e1,_0x35826c);let fe=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x229efb,_0x15811a,_0x25ee30,_0xba6d7b,_0x5a7857){const _0x1b66bb=_0xb0c99b;super(),d(this,'_cursorShapes',[]),d(this,_0x1b66bb(0x402),[]),(this[_0x1b66bb(0x24f)]=_0x229efb,this[_0x1b66bb(0x1e2)]=_0x15811a,this[_0x1b66bb(0x47c)]=_0x25ee30,this[_0x1b66bb(0x425)]=_0xba6d7b,this['_themeService']=_0x5a7857,this[_0x1b66bb(0x41f)]());}['_init'](){const _0xf00e3c=_0xb0c99b,_0x4c4e46=this[_0xf00e3c(0x24f)]['unitId'],_0x41eabd=this[_0xf00e3c(0x1e2)];this[_0xf00e3c(0x3d3)](v[_0xf00e3c(0x3ab)]([this[_0xf00e3c(0x47c)][_0xf00e3c(0x2f7)](_0x4c4e46),this[_0xf00e3c(0x4db)][_0xf00e3c(0x27a)]])[_0xf00e3c(0x3a7)](E[_0xf00e3c(0x1af)](([_0x1a7207,_0x2a6a0])=>({'skeleton':_0x41eabd[_0xf00e3c(0x2a7)](),'cursors':[..._0x1a7207['values']()][_0xf00e3c(0x466)](_0x5900f8=>({..._0x5900f8,'color':_0x2a6a0[_0x5900f8['color']]}))})))[_0xf00e3c(0x33b)](_0xbf2c18=>{const _0x29551c=_0xf00e3c;if(this[_0x29551c(0x219)](),_0xbf2c18){const {skeleton:_0x37bc8f,cursors:_0x529e2b}=_0xbf2c18;this[_0x29551c(0x2c6)](_0x37bc8f,_0x529e2b);}})),this[_0xf00e3c(0x313)](),this[_0xf00e3c(0x2b1)]();}[_0xb0c99b(0x2c6)](_0x325c89,_0x3d6f51){const _0x5857e6=_0xb0c99b,{scene:_0x3e5ac2,mainComponent:_0x1aa4b8}=this[_0x5857e6(0x24f)],_0x54d661=_0x3d6f51[_0x5857e6(0x1af)](_0x5ea00d=>new ot(_0x5ea00d,_0x3e5ac2,_0x325c89,_0x1aa4b8));this['_cursorShapes']=_0x54d661,this[_0x5857e6(0x402)]=_0x3d6f51;}[_0xb0c99b(0x365)](){const _0x47c465=_0xb0c99b;this['_removeCollabCursors']();const {scene:_0x27fffb,mainComponent:_0x2662c1}=this[_0x47c465(0x24f)],_0xdaad7d=this[_0x47c465(0x1e2)][_0x47c465(0x2a7)](),_0x5b745f=this[_0x47c465(0x402)][_0x47c465(0x1af)](_0x11dfef=>new ot(_0x11dfef,_0x27fffb,_0xdaad7d,_0x2662c1));this[_0x47c465(0x1ff)]=_0x5b745f;}[_0xb0c99b(0x219)](){const _0x4782ca=_0xb0c99b;this[_0x4782ca(0x1ff)]['forEach'](_0x17f330=>_0x17f330[_0x4782ca(0x11c)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x46bfd0=_0xb0c99b,_0x576626=[w['SetDocZoomRatioOperation']['id']];this[_0x46bfd0(0x3d3)](this['_commandService'][_0x46bfd0(0x2ac)](_0x30f94e=>{const _0x58984f=_0x46bfd0;_0x576626[_0x58984f(0x1ed)](_0x30f94e['id'])&&_0x30f94e[_0x58984f(0x2e3)][_0x58984f(0x13a)]===this[_0x58984f(0x24f)][_0x58984f(0x13a)]&&this[_0x58984f(0x365)]();}));}[_0xb0c99b(0x313)](){const _0x584749=_0xb0c99b;this['disposeWithMe'](a[_0x584749(0x4d2)](this['_context'][_0x584749(0x246)][_0x584749(0x157)])['pipe'](E['filter'](_0x220648=>_0x220648[_0x584749(0x498)]===R[_0x584749(0x46d)][_0x584749(0x105)]),E[_0x584749(0x101)](0x10))[_0x584749(0x33b)](()=>{const _0x1ba18d=_0x584749;this[_0x1ba18d(0x365)]();}));}};fe=ui([a[_0xb0c99b(0x10c)](a['LifecycleStages'][_0xb0c99b(0x369)],fe),de(0x1,a[_0xb0c99b(0x455)](V['DocSkeletonManagerService'])),de(0x2,a['Inject'](se)),de(0x3,a[_0xb0c99b(0x47e)]),de(0x4,a['Inject'](a[_0xb0c99b(0x4be)]))],fe);const di=0x1,Si=1.5;class Ot extends R['Shape']{constructor(_0x4053aa,_0x589940){const _0x54078d=_0xb0c99b;super(_0x4053aa,_0x589940),d(this,'_color'),d(this,_0x54078d(0x257),!0x1),d(this,'_range'),d(this,_0x54078d(0x322),''),d(this,_0x54078d(0x114),'top'),d(this,_0x54078d(0x162)),(_0x589940&&this[_0x54078d(0x1eb)](_0x589940),this[_0x54078d(0x235)]['subscribeEvent'](()=>this[_0x54078d(0x1eb)]({'hovered':!0x0})),this[_0x54078d(0x100)][_0x54078d(0x15d)](()=>this[_0x54078d(0x1eb)]({'hovered':!0x1})));}[_0xb0c99b(0x1eb)](_0x176aa0){const _0xb0228d=_0xb0c99b;var _0x4a7abd,_0x2ea4a8,_0x12aa2c,_0x4696f1,_0x2969e2,_0x19a059;this[_0xb0228d(0x43a)]=(_0x4a7abd=_0x176aa0[_0xb0228d(0xe8)])!=null?_0x4a7abd:this['_color'],this[_0xb0228d(0x257)]=(_0x2ea4a8=_0x176aa0[_0xb0228d(0x236)])!=null?_0x2ea4a8:this['_hovered'],this['_range']=(_0x12aa2c=_0x176aa0[_0xb0228d(0x4ec)])!=null?_0x12aa2c:this[_0xb0228d(0x186)],this[_0xb0228d(0x322)]=(_0x4696f1=_0x176aa0[_0xb0228d(0x29d)])!=null?_0x4696f1:this[_0xb0228d(0x322)],this[_0xb0228d(0x114)]=(_0x2969e2=_0x176aa0['labelPosition'])!=null?_0x2969e2:this[_0xb0228d(0x114)],this[_0xb0228d(0x162)]=(_0x19a059=_0x176aa0[_0xb0228d(0x233)])!=null?_0x19a059:this['_backgroundColor'],this[_0xb0228d(0x251)]({'width':_0x176aa0[_0xb0228d(0x46e)],'height':_0x176aa0['height']});}[_0xb0c99b(0x470)](_0x4732cd){const _0x27ef4c=_0xb0c99b,{row:_0x4fb839,column:_0x4e9367}=_0x4732cd;if(_0x4fb839>=this[_0x27ef4c(0x186)][_0x27ef4c(0x4f9)]&&_0x4fb839<=this[_0x27ef4c(0x186)][_0x27ef4c(0x368)]&&_0x4e9367>=this['_range']['startColumn']&&_0x4e9367<=this[_0x27ef4c(0x186)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x27ef4c(0x1eb)]({'hovered':!0x1});}[_0xb0c99b(0xfd)](_0x572e0e){return!0x1;}[_0xb0c99b(0x17a)](_0x47d6d7){const _0x2fbcf4=_0xb0c99b;R[_0x2fbcf4(0x15c)][_0x2fbcf4(0x1d8)](_0x47d6d7,{'width':this[_0x2fbcf4(0x46e)],'height':this[_0x2fbcf4(0x19d)],'strokeWidth':Si,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2fbcf4(0x162)]}),this[_0x2fbcf4(0x257)]&&(_0x47d6d7[_0x2fbcf4(0x2d9)](),_0x47d6d7[_0x2fbcf4(0x36f)](0x1,0x0,0x0,0x1,this[_0x2fbcf4(0x46e)],this[_0x2fbcf4(0x114)]===_0x2fbcf4(0x4ce)?0x0:-ue),Re[_0x2fbcf4(0x1d8)](_0x47d6d7,{'text':this[_0x2fbcf4(0x322)],'color':this[_0x2fbcf4(0x43a)]}),_0x47d6d7[_0x2fbcf4(0x33d)]());}}var vi=Object[_0xb0c99b(0x3dd)],fi=Object[_0xb0c99b(0x18e)],gi=(_0x508d02,_0x39c179,_0x2ce306,_0x3e45fa)=>{const _0x598606=_0xb0c99b;for(var _0x770f19=_0x3e45fa>0x1?void 0x0:_0x3e45fa?fi(_0x39c179,_0x2ce306):_0x39c179,_0x5f0a91=_0x508d02[_0x598606(0x23c)]-0x1,_0x14f950;_0x5f0a91>=0x0;_0x5f0a91--)(_0x14f950=_0x508d02[_0x5f0a91])&&(_0x770f19=(_0x3e45fa?_0x14f950(_0x39c179,_0x2ce306,_0x770f19):_0x14f950(_0x770f19))||_0x770f19);return _0x3e45fa&&_0x770f19&&vi(_0x39c179,_0x2ce306,_0x770f19),_0x770f19;},Ae=(_0x47b426,_0x4fe06a)=>(_0x306816,_0x579352)=>_0x4fe06a(_0x306816,_0x579352,_0x47b426);const mi=0x1389;let ke=class extends a['RxDisposable']{constructor(_0x46bcf5,_0x40b4d0,_0x4ac27e,_0x48b486){const _0x270aa2=_0xb0c99b;super(),d(this,_0x270aa2(0x402),new Set()),d(this,_0x270aa2(0x4a2),null),(this[_0x270aa2(0x24f)]=_0x46bcf5,this[_0x270aa2(0x4b7)]=_0x40b4d0,this[_0x270aa2(0x47c)]=_0x4ac27e,this['_themeService']=_0x48b486,this[_0x270aa2(0x41f)]());}[_0xb0c99b(0x41f)](){const _0x2006b2=_0xb0c99b;this['_sheetSkeletonManagerService'][_0x2006b2(0x47a)][_0x2006b2(0x3a7)](E['takeUntil'](this[_0x2006b2(0x495)]),E[_0x2006b2(0x22a)](_0x5cc900=>{const _0x2a3af1=_0x2006b2;if(_0x5cc900){const _0x2b893f=_0x5cc900['sheetId'];return v[_0x2a3af1(0x3ab)](this['_collabCursorController']['getCollabCursors$'](this[_0x2a3af1(0x24f)][_0x2a3af1(0x13a)]),this[_0x2a3af1(0x4db)][_0x2a3af1(0x27a)])['pipe'](E['map'](([_0x132a70,_0x4d488b])=>{const _0x5a636e=_0x2a3af1,_0x2a4a1c=new Map();return _0x132a70[_0x5a636e(0x1cb)]((_0x246ea3,_0x2565d7)=>{const _0x3a1e8c=_0x5a636e;if(_0x246ea3['sheetID']===_0x2b893f){const _0x173f2a={..._0x246ea3};_0x173f2a['color']=_0x4d488b[_0x246ea3[_0x3a1e8c(0xe8)]],_0x2a4a1c[_0x3a1e8c(0x4d0)](_0x2565d7,_0x173f2a);}}),{'skeleton':_0x5cc900,'cursors':_0x2a4a1c};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x430c3e,cursors:_0x46f82d})=>{const _0xb525fe=_0x2006b2;this[_0xb525fe(0x219)](),_0x430c3e&&this[_0xb525fe(0x2c6)](_0x430c3e,_0x46f82d);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x4d364c=>{const _0x5609ce=_0x2006b2;if(_0x4d364c==null)return;const {skeleton:_0x2288fd}=_0x4d364c,{scene:_0x2bf1be}=this[_0x5609ce(0x24f)];_0x2bf1be[_0x5609ce(0x449)][_0x5609ce(0x15d)](a[_0x5609ce(0x301)](_0x3ff6cb=>{const _0x350aac=_0x5609ce;var _0x9c77c5,_0x19f4e8;const {offsetX:_0x455540,offsetY:_0x3c304c}=_0x3ff6cb,{x:_0x1773e0,y:_0x84dfc9}=_0x2bf1be['getRelativeToViewportCoord'](R[_0x350aac(0x12b)][_0x350aac(0x103)]([_0x455540,_0x3c304c])),{scaleX:_0x3da324,scaleY:_0x5de984}=_0x2bf1be[_0x350aac(0x255)](),_0x1836ed=_0x2bf1be['getViewport'](te[_0x350aac(0x277)]['VIEW_MAIN']),_0x532465=_0x2bf1be[_0x350aac(0x1f8)](R['Vector2'][_0x350aac(0x103)]([_0x1773e0,_0x84dfc9]),_0x1836ed),_0x4a8251=_0x2288fd[_0x350aac(0x3b2)](_0x455540,_0x3c304c,_0x3da324,_0x5de984,_0x532465);((_0x9c77c5=this[_0x350aac(0x4a2)])==null?void 0x0:_0x9c77c5['column'])===_0x4a8251[_0x350aac(0x45f)]&&((_0x19f4e8=this[_0x350aac(0x4a2)])==null?void 0x0:_0x19f4e8[_0x350aac(0x400)])===_0x4a8251['row']||this[_0x350aac(0x402)][_0x350aac(0x1cb)](_0x3b052b=>{const _0x3e8ba5=_0x350aac;_0x3b052b[_0x3e8ba5(0x470)](_0x4a8251);});},0x64));});}['_updateCollabCursors'](_0x7767e1,_0x25ea18){const _0x5c8f62=_0xb0c99b;var _0x1cfd16;const _0x469c00=(_0x1cfd16=this[_0x5c8f62(0x4b7)][_0x5c8f62(0x1d6)]())==null?void 0x0:_0x1cfd16[_0x5c8f62(0x261)];if(!_0x469c00)return;const _0x54d1d5=this[_0x5c8f62(0x3c4)]();if(!_0x54d1d5)return;this['_cursors']['forEach'](_0x420ca3=>{const _0x6540f8=_0x5c8f62;_0x420ca3[_0x6540f8(0x475)]();});const {scene:_0x259989}=_0x54d1d5,_0x1f6847=Ii(Array[_0x5c8f62(0x4da)](_0x25ea18['values']()))['map'](_0x235b1d=>{const _0x1cddc3=_0x5c8f62,{color:_0x2820eb,range:_0x631f81,name:_0x39788a,selection:_0x2d03a5,sheetID:_0x162c27}=_0x235b1d,{startColumn:_0x59f8dc,startRow:_0x3c412b,endColumn:_0x5cb460,endRow:_0x51a942}=_0x631f81,_0x603f15=te['getCoordByCell'](_0x3c412b,_0x59f8dc,_0x259989,_0x469c00),_0x3f6eee=te[_0x1cddc3(0x1ab)](_0x51a942,_0x5cb460,_0x259989,_0x469c00),{columnHeaderHeightAndMarginTop:_0x1ac8e3}=_0x469c00,{startX:_0x18159c,startY:_0x26c82c}=_0x603f15,{endX:_0x58cecf,endY:_0x818cbe}=_0x3f6eee,_0x230530=_0x58cecf-_0x18159c,_0xf7ea67=_0x818cbe-_0x26c82c,_0x59c43e={'labelPosition':_0x26c82c-_0x1ac8e3>=ue?_0x1cddc3(0x173):_0x1cddc3(0x4ce),'sheetID':_0x162c27,'range':_0x631f81,'color':_0x2820eb,'name':_0x39788a,'selection':_0x2d03a5,'left':_0x18159c,'top':_0x26c82c,'width':_0x230530,'height':_0xf7ea67,'evented':!0x1,'zIndex':mi};return new Ot(_0x39788a,_0x59c43e);});_0x259989['addObjects'](_0x1f6847,di),this[_0x5c8f62(0x402)]=new Set(_0x1f6847);}[_0xb0c99b(0x219)](){const _0x119539=_0xb0c99b;var _0xcbe75;(_0xcbe75=this['_cursors'])==null||_0xcbe75[_0x119539(0x1cb)](_0xb1041=>_0xb1041[_0x119539(0x11c)]());}[_0xb0c99b(0x3c4)](){const _0x4acf5b=_0xb0c99b;return te[_0x4acf5b(0x362)](this[_0x4acf5b(0x24f)][_0x4acf5b(0x41d)],this[_0x4acf5b(0x24f)]);}};ke=gi([Ae(0x1,a[_0xb0c99b(0x455)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](se)),Ae(0x3,a[_0xb0c99b(0x455)](a['ThemeService']))],ke);function Ii(_0x22f68d){const _0xcf5078=_0xb0c99b,_0x2b247d=new Map();return _0x22f68d[_0xcf5078(0x1cb)](_0x73d556=>{const _0x10203d=_0xcf5078;if(_0x2b247d[_0x10203d(0x191)](_0x73d556['selection'])){const _0x5d3624=_0x2b247d[_0x10203d(0x1a0)](_0x73d556['selection']);_0x5d3624['name']+=',\x20'+_0x73d556[_0x10203d(0x29d)];}else _0x2b247d['set'](_0x73d556[_0x10203d(0x296)],_0x73d556);}),Array[_0xcf5078(0x4da)](_0x2b247d[_0xcf5078(0x3f4)]());}var M=function(){const _0x59acda=_0xb0c99b;return M=Object[_0x59acda(0x17d)]||function(_0x3d968d){const _0x36fb1f=_0x59acda;for(var _0x492dbc,_0x4af869=0x1,_0x516f79=arguments['length'];_0x4af869<_0x516f79;_0x4af869++){_0x492dbc=arguments[_0x4af869];for(var _0x39e04e in _0x492dbc)Object[_0x36fb1f(0x28b)][_0x36fb1f(0x41e)][_0x36fb1f(0x2f5)](_0x492dbc,_0x39e04e)&&(_0x3d968d[_0x39e04e]=_0x492dbc[_0x39e04e]);}return _0x3d968d;},M[_0x59acda(0x48f)](this,arguments);},pi=function(_0x3aea4a,_0x2e8398){const _0x2bd2ae=_0xb0c99b;var _0x5d1697={};for(var _0x3d3447 in _0x3aea4a)Object[_0x2bd2ae(0x28b)][_0x2bd2ae(0x41e)][_0x2bd2ae(0x2f5)](_0x3aea4a,_0x3d3447)&&_0x2e8398[_0x2bd2ae(0x1e6)](_0x3d3447)<0x0&&(_0x5d1697[_0x3d3447]=_0x3aea4a[_0x3d3447]);if(_0x3aea4a!=null&&typeof Object[_0x2bd2ae(0x320)]==_0x2bd2ae(0x40f)){for(var _0x3157d7=0x0,_0x3d3447=Object['getOwnPropertySymbols'](_0x3aea4a);_0x3157d7<_0x3d3447['length'];_0x3157d7++)_0x2e8398[_0x2bd2ae(0x1e6)](_0x3d3447[_0x3157d7])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x2bd2ae(0x2f5)](_0x3aea4a,_0x3d3447[_0x3157d7])&&(_0x5d1697[_0x3d3447[_0x3157d7]]=_0x3aea4a[_0x3d3447[_0x3157d7]]);}return _0x5d1697;},qe=U[_0xb0c99b(0x231)](function(_0x2b68b9,_0x91c10d){const _0x3fdb0b=_0xb0c99b;var _0x463484=_0x2b68b9[_0x3fdb0b(0x18c)],_0x5831d1=_0x2b68b9['id'],_0xedeea7=_0x2b68b9[_0x3fdb0b(0x2fd)],_0x3d62ed=_0x2b68b9[_0x3fdb0b(0x1f9)],_0x425baa=pi(_0x2b68b9,[_0x3fdb0b(0x18c),'id','className',_0x3fdb0b(0x1f9)]),_0x584fff=_0x3fdb0b(0x3ad)['concat'](_0x5831d1,'\x20')[_0x3fdb0b(0x373)](_0xedeea7||'')['trim'](),_0x579588=U[_0x3fdb0b(0x334)]('_'[_0x3fdb0b(0x373)](bi()));return Dt(_0x463484,''[_0x3fdb0b(0x373)](_0x5831d1),{'defIds':_0x463484[_0x3fdb0b(0x1c4)],'idSuffix':_0x579588[_0x3fdb0b(0x433)]},M({'ref':_0x91c10d,'className':_0x584fff},_0x425baa),_0x3d62ed);});function Dt(_0x293115,_0xe44963,_0x9e2b86,_0x2b373d,_0x4349ee){const _0x4a24e8=_0xb0c99b;return U[_0x4a24e8(0x1a1)](_0x293115[_0x4a24e8(0x297)],M(M({'key':_0xe44963},Ci(_0x293115,_0x9e2b86,_0x4349ee)),_0x2b373d),(Ei(_0x293115,_0x9e2b86)[_0x4a24e8(0x1bf)]||[])[_0x4a24e8(0x1af)](function(_0x157dca,_0x2bc9f9){const _0x19967b=_0x4a24e8;return Dt(_0x157dca,''['concat'](_0xe44963,'-')['concat'](_0x293115[_0x19967b(0x297)],'-')[_0x19967b(0x373)](_0x2bc9f9),_0x9e2b86,void 0x0,_0x4349ee);}));}function Ci(_0x3e69e5,_0x265f64,_0xda6c7e){const _0x244f1b=_0xb0c99b;var _0x5377ed=M({},_0x3e69e5[_0x244f1b(0x451)]);_0xda6c7e!=null&&_0xda6c7e[_0x244f1b(0x2d3)]&&_0x5377ed[_0x244f1b(0xf5)]===_0x244f1b(0x2d3)&&(_0x5377ed['fill']=_0xda6c7e[_0x244f1b(0x2d3)]);var _0x1bed91=_0x265f64[_0x244f1b(0x1c4)];return!_0x1bed91||_0x1bed91['length']===0x0||(_0x3e69e5[_0x244f1b(0x297)]===_0x244f1b(0x34e)&&_0x5377ed[_0x244f1b(0x4cf)]&&(_0x5377ed[_0x244f1b(0x4cf)]=_0x5377ed['xlink:href']+_0x265f64[_0x244f1b(0x295)]),Object[_0x244f1b(0x207)](_0x5377ed)[_0x244f1b(0x1cb)](function(_0x155c0c){const _0x84ad64=_0x244f1b;var _0x5d1cd5=_0x155c0c[0x0],_0x15bcaf=_0x155c0c[0x1];typeof _0x15bcaf==_0x84ad64(0x1ad)&&(_0x5377ed[_0x5d1cd5]=_0x15bcaf['replace'](/url\(#(.*)\)/,'url(#$1'[_0x84ad64(0x373)](_0x265f64[_0x84ad64(0x295)],')')));})),_0x5377ed;}function Ei(_0x50a58d,_0x286e68){const _0x46b83f=_0xb0c99b;var _0x42bbd2,_0xd54842=_0x286e68[_0x46b83f(0x1c4)];return!_0xd54842||_0xd54842['length']===0x0?_0x50a58d:_0x50a58d['tag']==='defs'&&(!((_0x42bbd2=_0x50a58d[_0x46b83f(0x1bf)])===null||_0x42bbd2===void 0x0)&&_0x42bbd2[_0x46b83f(0x23c)])?M(M({},_0x50a58d),{'children':_0x50a58d[_0x46b83f(0x1bf)][_0x46b83f(0x1af)](function(_0x31b139){const _0x3f8c8d=_0x46b83f;return typeof _0x31b139[_0x3f8c8d(0x451)]['id']==_0x3f8c8d(0x1ad)&&_0xd54842&&_0xd54842[_0x3f8c8d(0x1e6)](_0x31b139[_0x3f8c8d(0x451)]['id'])>-0x1?M(M({},_0x31b139),{'attrs':M(M({},_0x31b139['attrs']),{'id':_0x31b139[_0x3f8c8d(0x451)]['id']+_0x286e68[_0x3f8c8d(0x295)]})}):_0x31b139;})}):_0x50a58d;}function bi(){const _0x3a2dc8=_0xb0c99b;return Math[_0x3a2dc8(0x441)]()['toString'](0x24)[_0x3a2dc8(0x1bb)](0x2,0x8);}qe[_0xb0c99b(0x37e)]=_0xb0c99b(0x10d);var Ti={'tag':_0xb0c99b(0x405),'attrs':{'fill':_0xb0c99b(0x2f8),'viewBox':_0xb0c99b(0x2ad),'width':_0xb0c99b(0x415),'height':_0xb0c99b(0x415)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'stroke':_0xb0c99b(0x12c),'d':_0xb0c99b(0x4b6),'strokeLinecap':_0xb0c99b(0x2fc),'strokeLinejoin':_0xb0c99b(0x2fc),'strokeWidth':1.2}}]},{'tag':_0xb0c99b(0x25d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb0c99b(0x1b6)},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'fill':_0xb0c99b(0x49d),'d':_0xb0c99b(0x122)}}]}]}],'defIds':['off-line-single_clip0_910_343']},yt=U[_0xb0c99b(0x231)](function(_0x4a9e0e,_0x42c4f3){const _0x5ec06f=_0xb0c99b;return U[_0x5ec06f(0x1a1)](qe,Object[_0x5ec06f(0x17d)]({},_0x4a9e0e,{'id':_0x5ec06f(0x420),'ref':_0x42c4f3,'icon':Ti}));});yt['displayName']='OffLineSingle';var Ri={'tag':_0xb0c99b(0x405),'attrs':{'fill':'none','viewBox':_0xb0c99b(0x17c),'width':'1em','height':_0xb0c99b(0x415)},'children':[{'tag':'g','attrs':{'clipPath':_0xb0c99b(0x147)},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'stroke':_0xb0c99b(0x12c),'d':_0xb0c99b(0x241),'strokeLinecap':_0xb0c99b(0x2fc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb0c99b(0x2d1)},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'fill':_0xb0c99b(0x49d),'d':_0xb0c99b(0x122),'transform':_0xb0c99b(0x336)}}]}]}],'defIds':[_0xb0c99b(0x2d1)]},Ut=U[_0xb0c99b(0x231)](function(_0x5cf952,_0x338f1e){const _0x28b0ea=_0xb0c99b;return U[_0x28b0ea(0x1a1)](qe,Object[_0x28b0ea(0x17d)]({},_0x5cf952,{'id':'on-line-single','ref':_0x338f1e,'icon':Ri}));});Ut[_0xb0c99b(0x37e)]=_0xb0c99b(0x24e);const Oi='univer-online-status-icon',Di='univer-online-status-title',yi=_0xb0c99b(0x34c),Ui='univer-online',Pi=_0xb0c99b(0x184),le={'onlineStatusIcon':Oi,'onlineStatusTitle':Di,'onlineStatus':yi,'online':Ui,'offline':Pi};function wi(_0x1bec89){const _0x3a40b1=_0xb0c99b;switch(_0x1bec89){case y[_0x3a40b1(0x4ed)]:return _0x3a40b1(0x3c5);case y[_0x3a40b1(0x229)]:return'collabStatus.conflict';case y[_0x3a40b1(0x3d9)]:return _0x3a40b1(0x212);case y[_0x3a40b1(0x3eb)]:return'collabStatus.notCollab';case y[_0x3a40b1(0x256)]:case y[_0x3a40b1(0x1b4)]:case y[_0x3a40b1(0x3de)]:return _0x3a40b1(0x167);case y[_0x3a40b1(0x2c2)]:return'collabStatus.synced';}}function Pt(_0x51dc68){const _0x2a27ce=_0xb0c99b,{status$:_0x1f40cd}=_0x51dc68,_0x29c298=N['useObservable'](_0x1f40cd,y[_0x2a27ce(0x3eb)]),_0x16c241=a[_0x2a27ce(0x4e6)](a[_0x2a27ce(0x472)]),_0x31b068=a[_0x2a27ce(0x4e6)](exports[_0x2a27ce(0x28a)]),_0x5061f1=_0x29c298!==y[_0x2a27ce(0x4ed)],_0x31a134=_0x16c241['t'](wi(_0x29c298)),_0x173aa0=Vt(le[_0x2a27ce(0x3ae)],{[le[_0x2a27ce(0x2f4)]]:_0x5061f1,[le[_0x2a27ce(0x1b8)]]:!_0x5061f1}),_0x495eb6=_0x5061f1?U[_0x2a27ce(0x1a1)](Ut,null):U[_0x2a27ce(0x1a1)](yt,null),_0x552694=U[_0x2a27ce(0x202)](()=>{const _0x18451c=_0x2a27ce;_0x5061f1||_0x31b068[_0x18451c(0x25f)]();},[_0x5061f1,_0x31b068]);function _0x3e1566(){const _0x1c04f6=_0x2a27ce;return U[_0x1c04f6(0x1a1)](_0x1c04f6(0xef),{'className':_0x173aa0,'onClick':_0x552694},U[_0x1c04f6(0x1a1)](_0x1c04f6(0xef),{'className':le[_0x1c04f6(0xee)]},_0x495eb6),U[_0x1c04f6(0x1a1)](_0x1c04f6(0xef),{'className':le[_0x1c04f6(0x344)]},_0x31a134));}return _0x5061f1?_0x3e1566():U[_0x2a27ce(0x1a1)](X[_0x2a27ce(0x127)],{'title':_0x16c241['t'](_0x2a27ce(0x2ff))},_0x3e1566());}var Mi=Object[_0xb0c99b(0x3dd)],Ni=Object[_0xb0c99b(0x18e)],Li=(_0x4ffa8f,_0x53fc3b,_0x2efe13,_0x3544e7)=>{const _0x4083b2=_0xb0c99b;for(var _0x2a6fb1=_0x3544e7>0x1?void 0x0:_0x3544e7?Ni(_0x53fc3b,_0x2efe13):_0x53fc3b,_0x4eea22=_0x4ffa8f[_0x4083b2(0x23c)]-0x1,_0x2a493f;_0x4eea22>=0x0;_0x4eea22--)(_0x2a493f=_0x4ffa8f[_0x4eea22])&&(_0x2a6fb1=(_0x3544e7?_0x2a493f(_0x53fc3b,_0x2efe13,_0x2a6fb1):_0x2a493f(_0x2a6fb1))||_0x2a6fb1);return _0x3544e7&&_0x2a6fb1&&Mi(_0x53fc3b,_0x2efe13,_0x2a6fb1),_0x2a6fb1;},Se=(_0x54d357,_0x3419a7)=>(_0x115aef,_0x3b23bd)=>_0x3419a7(_0x115aef,_0x3b23bd,_0x54d357);exports[_0xb0c99b(0x1ac)]=class extends a[_0xb0c99b(0x463)]{constructor(_0x38027b,_0x1993e7,_0x53bf66,_0x1d0701){const _0x42e118=_0xb0c99b;super(),d(this,_0x42e118(0x4c8),new v[(_0x42e118(0x4b1))](y['NOT_COLLAB'])),(this['_univerInstanceService']=_0x38027b,this['_uiPartsService']=_0x1993e7,this[_0x42e118(0x12f)]=_0x53bf66,this['_collaborationController']=_0x1d0701,this['_initStatusComponent'](),this[_0x42e118(0x12a)]());}[_0xb0c99b(0x12a)](){const _0x439c18=_0xb0c99b;this[_0x439c18(0x3d3)](this[_0x439c18(0x3fb)][_0x439c18(0x203)][_0x439c18(0x3a7)](v[_0x439c18(0x22a)](()=>{const _0x38e90a=_0x439c18,_0x3f9608=this[_0x38e90a(0x3fb)][_0x38e90a(0x345)]();return _0x3f9608?this[_0x38e90a(0x31f)][_0x38e90a(0x253)](_0x3f9608[_0x38e90a(0x4dd)]()):v['of'](null);}),v[_0x439c18(0x22a)](_0x20332f=>_0x20332f?_0x20332f['status$']:v['of'](y[_0x439c18(0x3eb)])))[_0x439c18(0x33b)](_0x4e630a=>{const _0x1e1154=_0x439c18;this[_0x1e1154(0x4c8)][_0x1e1154(0x3c7)](_0x4e630a);}));}[_0xb0c99b(0xf9)](){const _0x39755f=_0xb0c99b;this[_0x39755f(0x3d3)](this[_0x39755f(0x434)][_0x39755f(0x299)](N[_0x39755f(0x2d0)][_0x39755f(0x1fa)],()=>a[_0x39755f(0x104)](Ai({'status$':this['_status$'][_0x39755f(0x3af)]()}),this['_injector'])));}},exports[_0xb0c99b(0x1ac)]=Li([Se(0x0,a[_0xb0c99b(0x49b)]),Se(0x1,N[_0xb0c99b(0x412)]),Se(0x2,a['Inject'](a[_0xb0c99b(0x41a)])),Se(0x3,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x109)]))],exports[_0xb0c99b(0x1ac)]);function Ai(_0x2f1285){const {status$:_0x59fb3a}=_0x2f1285;return function(){const _0x6fb6cb=_0x4e0f;return U[_0x6fb6cb(0x1a1)](Pt,{'status$':_0x59fb3a});};}const ze=a[_0xb0c99b(0xe6)](_0xb0c99b(0x23e));var $i=Object[_0xb0c99b(0x3dd)],ji=Object[_0xb0c99b(0x18e)],Hi=(_0x249605,_0x2a6a66,_0x43ad81,_0x7b88a6)=>{const _0x369b41=_0xb0c99b;for(var _0x42b525=_0x7b88a6>0x1?void 0x0:_0x7b88a6?ji(_0x2a6a66,_0x43ad81):_0x2a6a66,_0x5d67bf=_0x249605[_0x369b41(0x23c)]-0x1,_0x2afe1d;_0x5d67bf>=0x0;_0x5d67bf--)(_0x2afe1d=_0x249605[_0x5d67bf])&&(_0x42b525=(_0x7b88a6?_0x2afe1d(_0x2a6a66,_0x43ad81,_0x42b525):_0x2afe1d(_0x42b525))||_0x42b525);return _0x7b88a6&&_0x42b525&&$i(_0x2a6a66,_0x43ad81,_0x42b525),_0x42b525;},ee=(_0x178747,_0x9963a5)=>(_0x47b467,_0x532c67)=>_0x9963a5(_0x47b467,_0x532c67,_0x178747);exports[_0xb0c99b(0x1d7)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x540e58,_0x3de513,_0x1da8e1,_0x3246cd,_0x55c9dc,_0x528122){const _0xb05b28=_0xb0c99b;super(),this[_0xb05b28(0x4ca)]=_0x540e58,this[_0xb05b28(0x3cd)]=_0x3de513,this[_0xb05b28(0x425)]=_0x1da8e1,this[_0xb05b28(0x40b)]=_0x3246cd,this[_0xb05b28(0x268)]=_0x55c9dc,_0x528122?_0x528122==null||_0x528122['whenReady']()[_0xb05b28(0x20e)](()=>this[_0xb05b28(0x41f)]()):(this[_0xb05b28(0x3cd)]['debug'](_0xb05b28(0x239),_0xb05b28(0x2cd)),this['_init']());}async[_0xb0c99b(0x41f)](){const _0x4d57a7=_0xb0c99b,_0x5e2b5c=this[_0x4d57a7(0x4ca)][_0x4d57a7(0x3ef)]('unit'),_0x2dfc8b=this['_urlService'][_0x4d57a7(0x3ef)](_0x4d57a7(0x498));if(!_0x5e2b5c||!_0x2dfc8b){this[_0x4d57a7(0x3cd)]['debug'](_0x4d57a7(0x239),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2dfc8b)){case $[_0x4d57a7(0x3e6)]:{const _0x231d48=await this[_0x4d57a7(0x18b)](_0x5e2b5c);this[_0x4d57a7(0x4d8)](_0x231d48);break;}case $[_0x4d57a7(0x254)]:{await this[_0x4d57a7(0x39f)](_0x5e2b5c);break;}default:{this[_0x4d57a7(0x3cd)]['error'](_0x4d57a7(0x239),_0x4d57a7(0x24c));break;}}}async['_setupSubUnitSync'](_0xeb80ab){const _0x3379ea=_0xb0c99b;await this[_0x3379ea(0x3e3)](_0xeb80ab),_0xeb80ab['activeSheet$']['pipe'](v[_0x3379ea(0x450)](this[_0x3379ea(0x495)]))[_0x3379ea(0x33b)](_0x190b74=>{const _0x22f070=_0x3379ea;_0x190b74&&this[_0x22f070(0xfa)](_0x190b74);}),this[_0x3379ea(0x4ca)][_0x3379ea(0x3b8)][_0x3379ea(0x3a7)](v['takeUntil'](this[_0x3379ea(0x495)]))[_0x3379ea(0x33b)](()=>this[_0x3379ea(0x3e3)](_0xeb80ab));}[_0xb0c99b(0xfa)](_0x424d0,_0x436e2c=!0x1){const _0x1c0e18=_0xb0c99b,_0x47db3b=this['_urlService']['getParam']('subunit');_0x424d0[_0x1c0e18(0x1fb)]()!==_0x47db3b&&this['_urlService'][_0x1c0e18(0x1b1)]('subunit',_0x424d0[_0x1c0e18(0x1fb)](),_0x436e2c);}async[_0xb0c99b(0x3e3)](_0x3852e9){const _0x5dcc21=_0xb0c99b;var _0x34df55;const _0x2076c6=this[_0x5dcc21(0x4ca)]['getParam']('subunit');if(!_0x2076c6||!_0x3852e9['getSheetBySheetId'](_0x2076c6)){const _0x867095=_0x3852e9[_0x5dcc21(0x23d)]()[0x0],_0x616a56=_0x3852e9[_0x5dcc21(0x134)](_0x867095);if(!_0x616a56)return;this[_0x5dcc21(0xfa)](_0x616a56,!0x0),await this['_commandService'][_0x5dcc21(0x135)](C[_0x5dcc21(0x22d)]['id'],{'unitId':_0x3852e9[_0x5dcc21(0x4dd)](),'subUnitId':_0x867095});return;}((_0x34df55=_0x3852e9[_0x5dcc21(0x1ba)]())==null?void 0x0:_0x34df55[_0x5dcc21(0x1fb)]())!==_0x2076c6&&await this[_0x5dcc21(0x425)][_0x5dcc21(0x135)](C[_0x5dcc21(0x22d)]['id'],{'unitId':_0x3852e9['getUnitId'](),'subUnitId':_0x2076c6});}async[_0xb0c99b(0x18b)](_0x47f867){const _0x23dc17=_0xb0c99b;let _0x3dde54=0x0;const _0x9bc90=await this[_0x23dc17(0x40b)]['loadOfflineData'](_0x47f867);return _0x9bc90&&(_0x9bc90[_0x23dc17(0x249)]||_0x9bc90[_0x23dc17(0x4e4)][_0x23dc17(0x23c)]!==0x0)&&(_0x3dde54=_0x9bc90['rev']),_0x3dde54===0x0&&this['_logService'][_0x23dc17(0x347)](_0x23dc17(0x239),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x23dc17(0x268)]['loadSheet'](_0x47f867,_0x3dde54);}async['_loadDoc'](_0x396ff3){const _0x5066ef=_0xb0c99b;let _0x33a864=0x0;const _0x571429=await this[_0x5066ef(0x40b)][_0x5066ef(0x4e3)](_0x396ff3);return _0x571429&&(_0x571429[_0x5066ef(0x249)]||_0x571429[_0x5066ef(0x4e4)]['length']!==0x0)&&(_0x33a864=_0x571429['rev']),_0x33a864===0x0&&this[_0x5066ef(0x3cd)][_0x5066ef(0x347)](_0x5066ef(0x239),_0x5066ef(0x1cd)),this[_0x5066ef(0x268)]['loadDoc'](_0x396ff3,_0x33a864);}},exports[_0xb0c99b(0x1d7)]=Hi([a[_0xb0c99b(0x10c)](a[_0xb0c99b(0x133)]['Starting'],exports[_0xb0c99b(0x1d7)]),ee(0x0,ze),ee(0x1,a[_0xb0c99b(0x2b2)]),ee(0x2,a[_0xb0c99b(0x47e)]),ee(0x3,a[_0xb0c99b(0x455)](exports['LocalCacheService'])),ee(0x4,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x247)])),ee(0x5,a['Optional'](Wt[_0xb0c99b(0x3e8)]))],exports[_0xb0c99b(0x1d7)]);var xi=Object['defineProperty'],ki=Object['getOwnPropertyDescriptor'],Bi=(_0x2b2849,_0xcc825a,_0x4bfd51,_0x2e08f8)=>{const _0x1588ab=_0xb0c99b;for(var _0x183eeb=_0x2e08f8>0x1?void 0x0:_0x2e08f8?ki(_0xcc825a,_0x4bfd51):_0xcc825a,_0x45a943=_0x2b2849[_0x1588ab(0x23c)]-0x1,_0x47ea12;_0x45a943>=0x0;_0x45a943--)(_0x47ea12=_0x2b2849[_0x45a943])&&(_0x183eeb=(_0x2e08f8?_0x47ea12(_0xcc825a,_0x4bfd51,_0x183eeb):_0x47ea12(_0x183eeb))||_0x183eeb);return _0x2e08f8&&_0x183eeb&&xi(_0xcc825a,_0x4bfd51,_0x183eeb),_0x183eeb;},at=(_0x18f617,_0x21db14)=>(_0x144f76,_0x1130e7)=>_0x21db14(_0x144f76,_0x1130e7,_0x18f617);const Vi=_0xb0c99b(0x360),Wi=_0xb0c99b(0x152);let ge=class extends a[_0xb0c99b(0x463)]{constructor(_0x4b3af9,_0x2b46f4){const _0x53f70a=_0xb0c99b;super(),this['_univerInstanceService']=_0x4b3af9,this[_0x53f70a(0x3ec)]=_0x2b46f4,this['_init']();}[_0xb0c99b(0x41f)](){const _0x397932=_0xb0c99b;this[_0x397932(0x3d3)](a[_0x397932(0x2ef)](this[_0x397932(0x3fb)]['focused$'][_0x397932(0x33b)](()=>{const _0x35b3c2=_0x397932;var _0x5ee97e;const _0x39f5de=this[_0x35b3c2(0x3fb)][_0x35b3c2(0x345)]();let _0x5ce413=(_0x5ee97e=this[_0x35b3c2(0x3ec)][_0x35b3c2(0x2aa)](Vi))!=null?_0x5ee97e:Wi;_0x39f5de instanceof a['Workbook']&&(_0x5ce413=_0x39f5de[_0x35b3c2(0x29d)]),document[_0x35b3c2(0x25c)]=_0x5ce413;})));}};ge=Bi([a[_0xb0c99b(0x10c)](a[_0xb0c99b(0x133)]['Ready'],ge),at(0x0,a[_0xb0c99b(0x49b)]),at(0x1,a[_0xb0c99b(0x195)])],ge);var Fi=Object[_0xb0c99b(0x3dd)],Gi=Object[_0xb0c99b(0x18e)],Yi=(_0x57bce4,_0x2af540,_0x432c50,_0x41b5f4)=>{for(var _0x10bdc3=_0x41b5f4>0x1?void 0x0:_0x41b5f4?Gi(_0x2af540,_0x432c50):_0x2af540,_0x1d8438=_0x57bce4['length']-0x1,_0x44fb83;_0x1d8438>=0x0;_0x1d8438--)(_0x44fb83=_0x57bce4[_0x1d8438])&&(_0x10bdc3=(_0x41b5f4?_0x44fb83(_0x2af540,_0x432c50,_0x10bdc3):_0x44fb83(_0x10bdc3))||_0x10bdc3);return _0x41b5f4&&_0x10bdc3&&Fi(_0x2af540,_0x432c50,_0x10bdc3),_0x10bdc3;},$e=(_0x9e2076,_0x3ee2ad)=>(_0x1f2be2,_0x5dd383)=>_0x3ee2ad(_0x1f2be2,_0x5dd383,_0x9e2076);let Ee=class{constructor(_0x27f742,_0x32e43a,_0x32f5a5){const _0x57f5a0=_0xb0c99b;this[_0x57f5a0(0x3ec)]=_0x27f742,this[_0x57f5a0(0x2e8)]=_0x32e43a,this[_0x57f5a0(0x38e)]=_0x32f5a5,this['init']();}[_0xb0c99b(0x188)](){const _0x1138bd=_0xb0c99b;this[_0x1138bd(0x2e8)][_0x1138bd(0x45d)]({'priority':0x1,'interceptor':(_0x311e06,_0xc90f69)=>_0xc90f69(_0x311e06)[_0x1138bd(0x3a7)](v['concatMap'](async _0x4325c8=>{const _0x482f51=_0x1138bd,_0x2e9368=_0x4325c8;if(_0x2e9368[_0x482f51(0x366)]===0x191&&window[_0x482f51(0x3bf)](this['localeService']['t'](_0x482f51(0x442)))){const _0x43d8b5=window[_0x482f51(0x318)](window[_0x482f51(0x13c)][_0x482f51(0x363)]);window[_0x482f51(0x13c)]['href']=this[_0x482f51(0x49e)]()+_0x482f51(0x386)+_0x43d8b5;}return _0x2e9368;}))});}[_0xb0c99b(0x49e)](){const _0xcef7a=_0xb0c99b;var _0x5957f6,_0x115806;const _0x473c4e=this[_0xcef7a(0x3ec)][_0xcef7a(0x2aa)](mt),_0x4e2ae5=this['_configService'][_0xcef7a(0x2aa)](L);return(_0x115806=(_0x5957f6=_0x4e2ae5==null?void 0x0:_0x4e2ae5[_0xcef7a(0x408)])!=null?_0x5957f6:_0x473c4e)!=null?_0x115806:es;}};Ee=Yi([$e(0x0,a[_0xb0c99b(0x195)]),$e(0x1,a[_0xb0c99b(0x455)](P['HTTPService'])),$e(0x2,a['Inject'](a[_0xb0c99b(0x472)]))],Ee);var Ki=Object['defineProperty'],Xi=Object[_0xb0c99b(0x18e)],qi=(_0x31eec2,_0x3aa9a1,_0xac27ea,_0x3692a2)=>{const _0xf68251=_0xb0c99b;for(var _0x18e595=_0x3692a2>0x1?void 0x0:_0x3692a2?Xi(_0x3aa9a1,_0xac27ea):_0x3aa9a1,_0x33372d=_0x31eec2[_0xf68251(0x23c)]-0x1,_0x550e68;_0x33372d>=0x0;_0x33372d--)(_0x550e68=_0x31eec2[_0x33372d])&&(_0x18e595=(_0x3692a2?_0x550e68(_0x3aa9a1,_0xac27ea,_0x18e595):_0x550e68(_0x18e595))||_0x18e595);return _0x3692a2&&_0x18e595&&Ki(_0x3aa9a1,_0xac27ea,_0x18e595),_0x18e595;},ct=(_0x2f15ac,_0x3765f7)=>(_0x4f6252,_0x29f0b2)=>_0x3765f7(_0x4f6252,_0x29f0b2,_0x2f15ac);const wt=_0xb0c99b(0x2d2),zi=_0xb0c99b(0x3cb);exports[_0xb0c99b(0x4bf)]=class extends a['Disposable']{constructor(_0x8d419a,_0x312dbe){const _0x4c503e=_0xb0c99b;super(),this[_0x4c503e(0x39d)]=_0x8d419a,this[_0x4c503e(0x3ec)]=_0x312dbe,this[_0x4c503e(0x427)]();}[_0xb0c99b(0x427)](){const _0x4db37f=_0xb0c99b,_0x4ea2f9=this;this[_0x4db37f(0x3d3)](this[_0x4db37f(0x39d)][_0x4db37f(0x45d)]({'priority':0x3e7,'interceptor':P[_0x4db37f(0x2e6)]({'isMatch'(_0x568087){const _0x5b10b2=_0x4db37f;var _0x1da5bd;if(_0x568087[_0x5b10b2(0x223)]===_0x5b10b2(0x3f8)&&((_0x1da5bd=_0x568087[_0x5b10b2(0x397)])!=null&&_0x1da5bd[_0x5b10b2(0x4c0)])){const {objectID:_0x338889,objectType:_0x2e15a7}=_0x568087[_0x5b10b2(0x397)]['body']||{};if(!_0x338889||_0x2e15a7===void 0x0)return!0x1;const _0x51e353=_0x4ea2f9[_0x5b10b2(0x31e)]()+'/'+_0x2e15a7+'/object/'+_0x338889+_0x5b10b2(0x4d3);if(_0x568087[_0x5b10b2(0x187)]===_0x51e353)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x39fbf9){const _0x4f334c=_0x4db37f;var _0x352bf5;return(_0x352bf5=_0x39fbf9['requestParams'])==null?void 0x0:_0x352bf5[_0x4f334c(0x4c0)];},'mergeParamsToRequest'(_0x1e83ed,_0x1470d2){const _0x20610c=_0x4db37f,_0x180036=_0x4ea2f9[_0x20610c(0x31e)]()+_0x20610c(0x2e2),_0x14cf9e=_0x1e83ed[_0x20610c(0x4a5)]((_0x452c90,_0xa1fcc)=>{const _0x58969f=_0x20610c,{unitID:_0x18ec0d,objectID:_0x2d7b51,objectType:_0x24a76b,actions:_0x483375}=_0xa1fcc;return _0x452c90[_0x18ec0d]||(_0x452c90[_0x18ec0d]={}),_0x452c90[_0x18ec0d][_0x2d7b51]||(_0x452c90[_0x18ec0d][_0x2d7b51]={'objectID':_0x2d7b51,'objectType':_0x24a76b,'actions':[]}),_0x452c90[_0x18ec0d][_0x2d7b51][_0x58969f(0xff)][_0x58969f(0x2da)](..._0x483375),_0x452c90;},{}),_0x1736af=[];for(const _0x1b9f71 in _0x14cf9e)for(const _0x4de305 in _0x14cf9e[_0x1b9f71]){const {actions:_0x3e8c8d,objectType:_0x251aba}=_0x14cf9e[_0x1b9f71][_0x4de305],_0x5bfa98=[...new Set(_0x3e8c8d)];_0x1736af['push']({'unitID':_0x1b9f71,'objectID':_0x4de305,'objectType':_0x251aba,'actions':_0x5bfa98});}return new P[(_0x20610c(0x306))](_0x20610c(0x3f8),_0x180036,{'headers':_0x1470d2[_0x20610c(0x4ab)],'withCredentials':_0x1470d2['withCredentials'],'responseType':_0x1470d2['responseType'],'body':{'requests':_0x1736af}});}},{'distributeResult'(_0x3a1629,_0x1a7fbc){const _0x2e6d5b=_0x4db37f,{objectActions:_0x5d3765}=_0x3a1629;return _0x1a7fbc[_0x2e6d5b(0x1af)](_0x43208a=>{const _0x21f77c=_0x2e6d5b,{unitID:_0x366b03,objectID:_0x32607b,actions:_0x3b579a}=_0x43208a,_0x43de04=_0x5d3765[_0x21f77c(0x24b)](_0x46a929=>_0x46a929['unitID']===_0x366b03&&_0x46a929['objectID']===_0x32607b),_0x34495c=_0x3b579a[_0x21f77c(0x1af)](_0x45ed46=>_0x43de04==null?void 0x0:_0x43de04['actions']['find'](_0x53338b=>_0x53338b[_0x21f77c(0xf7)]===_0x45ed46))[_0x21f77c(0x13b)](_0x3292c4=>!!_0x3292c4);return{'config':_0x43208a,'result':{'actions':_0x34495c,'error':_0x3a1629[_0x21f77c(0x4d1)]}};});}})}));}[_0xb0c99b(0x31e)](){const _0x1e947f=_0xb0c99b;var _0x20a6b4,_0x4abab5;const _0x358365=this[_0x1e947f(0x3ec)]['getConfig'](wt),_0x443f1a=this['_configService'][_0x1e947f(0x2aa)](L);return(_0x4abab5=(_0x20a6b4=_0x443f1a==null?void 0x0:_0x443f1a[_0x1e947f(0x3ba)])!=null?_0x20a6b4:_0x358365)!=null?_0x4abab5:zi;}async[_0xb0c99b(0x3e1)](_0x192d3c){const _0x54ee3f=_0xb0c99b,_0x208f1e=this[_0x54ee3f(0x31e)]()+'/'+_0x192d3c['objectType']+_0x54ee3f(0x3cf);return(await this[_0x54ee3f(0x39d)]['post'](_0x208f1e,{'body':_0x192d3c}))[_0x54ee3f(0x4c0)][_0x54ee3f(0x32b)]||'';}async['list'](_0x5bbe01){const _0x566a53=_0xb0c99b,_0x507d60=this['_getAPIPrefixPath']()+_0x566a53(0x1c9);return(await this[_0x566a53(0x39d)][_0x566a53(0x3e7)](_0x507d60,{'body':_0x5bbe01}))[_0x566a53(0x4c0)][_0x566a53(0x209)];}async[_0xb0c99b(0x4ae)](_0x202570){const _0x418326=_0xb0c99b,_0x9b3837=this[_0x418326(0x31e)]()+'/'+_0x202570[_0x418326(0x485)]+_0x418326(0x424)+_0x202570[_0x418326(0x32b)];await this[_0x418326(0x39d)][_0x418326(0x4ac)](_0x9b3837,{'body':_0x202570});}async[_0xb0c99b(0x4ee)](_0x1c507b){const _0x41e7e5=_0xb0c99b,_0x187855=this[_0x41e7e5(0x31e)]()+'/'+_0x1c507b[_0x41e7e5(0x485)]+_0x41e7e5(0x424)+_0x1c507b[_0x41e7e5(0x32b)]+'/allowed';return(await this[_0x41e7e5(0x39d)]['post'](_0x187855,{'body':_0x1c507b}))[_0x41e7e5(0x4c0)]['actions'];}async[_0xb0c99b(0x228)](_0xe1ac9c){const _0x20c6ec=_0xb0c99b,_0x3c18a5=this[_0x20c6ec(0x31e)]()+_0x20c6ec(0x2e2);return(await this[_0x20c6ec(0x39d)][_0x20c6ec(0x3e7)](_0x3c18a5,{'body':{'requests':_0xe1ac9c}}))['body'][_0x20c6ec(0x30d)];}async['listRoles'](_0x42acc2){const _0x860c13=_0xb0c99b,_0x46099d=this[_0x860c13(0x31e)]()+'/'+_0x42acc2[_0x860c13(0x485)]+_0x860c13(0x4a7),_0x541d60=await this[_0x860c13(0x39d)]['post'](_0x46099d,{'body':_0x42acc2});return{'roles':_0x541d60[_0x860c13(0x4c0)]['roles'],'actions':_0x541d60[_0x860c13(0x4c0)]['actions']};}async[_0xb0c99b(0x478)](_0xd2da70){const _0x343e3b=_0xb0c99b,_0x32a2ed=this['_getAPIPrefixPath']()+_0x343e3b(0x2b6);await this['_HTTPService'][_0x343e3b(0x456)](_0x32a2ed,{'params':{'collaboratorID':_0xd2da70[_0x343e3b(0x190)],'objectID':_0xd2da70['objectID'],'unitID':_0xd2da70[_0x343e3b(0x4c3)]}});}async[_0xb0c99b(0x1ef)](_0x5696e2){const _0x384e45=_0xb0c99b,_0x4b07c8=this[_0x384e45(0x31e)]()+'/collaborator';await this[_0x384e45(0x39d)][_0x384e45(0x4b0)](_0x4b07c8,{'body':_0x5696e2});}async[_0xb0c99b(0x131)](_0x59a9dc){const _0x1ae020=_0xb0c99b,_0x422631=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1ae020(0x39d)][_0x1ae020(0x3e7)](_0x422631,{'body':_0x59a9dc});}async[_0xb0c99b(0x11e)](_0x172129){const _0x4eb6ad=_0xb0c99b,_0x140f60=this['_getAPIPrefixPath']()+_0x4eb6ad(0x2b6);return(await this[_0x4eb6ad(0x39d)][_0x4eb6ad(0x1a0)](_0x140f60,{'params':{'objectID':_0x172129[_0x4eb6ad(0x32b)],'unitID':_0x172129[_0x4eb6ad(0x4c3)]}}))[_0x4eb6ad(0x4c0)]['collaborators'];}async[_0xb0c99b(0x3a3)](_0x2cf77d){const _0x553678=_0xb0c99b,_0x416c7a=this[_0x553678(0x31e)]()+_0x553678(0x2b6);await this[_0x553678(0x39d)]['put'](_0x416c7a,{'body':_0x2cf77d});}},exports['AuthzIoHttpService']=qi([ct(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)])),ct(0x1,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x195)]))],exports[_0xb0c99b(0x4bf)]);var Ji=Object[_0xb0c99b(0x3dd)],Zi=Object[_0xb0c99b(0x18e)],Qi=(_0xc66aec,_0x5be503,_0x54df9e,_0x5814fc)=>{const _0x318890=_0xb0c99b;for(var _0x3fa31d=_0x5814fc>0x1?void 0x0:_0x5814fc?Zi(_0x5be503,_0x54df9e):_0x5be503,_0x5d7574=_0xc66aec[_0x318890(0x23c)]-0x1,_0x15bb34;_0x5d7574>=0x0;_0x5d7574--)(_0x15bb34=_0xc66aec[_0x5d7574])&&(_0x3fa31d=(_0x5814fc?_0x15bb34(_0x5be503,_0x54df9e,_0x3fa31d):_0x15bb34(_0x3fa31d))||_0x3fa31d);return _0x5814fc&&_0x3fa31d&&Ji(_0x5be503,_0x54df9e,_0x3fa31d),_0x3fa31d;},en=(_0x5dcbeb,_0x1f3038)=>(_0x56cc55,_0x4b7e69)=>_0x1f3038(_0x56cc55,_0x4b7e69,_0x5dcbeb);let be=class{constructor(_0x50d4db){const _0x5ed813=_0xb0c99b;this[_0x5ed813(0x2e8)]=_0x50d4db,this[_0x5ed813(0x4b9)]();}[_0xb0c99b(0x4b9)](){const _0x43158b=_0xb0c99b;this[_0x43158b(0x2e8)][_0x43158b(0x45d)]({'interceptor':(_0x210f54,_0x938d31)=>{const _0x3291ac=_0x43158b,_0x47a917=_0x210f54[_0x3291ac(0x4ab)],_0x502fae=Ft[_0x3291ac(0x148)]();return _0x502fae&&_0x47a917['set'](_0x3291ac(0x146),_0x502fae),_0x938d31(_0x210f54);}});}};be=Qi([en(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)]))],be);var tn=Object['defineProperty'],sn=Object[_0xb0c99b(0x18e)],nn=(_0x3d6003,_0x30598a,_0x591b78,_0x3ac0d2)=>{const _0x2898f5=_0xb0c99b;for(var _0x5eeeb0=_0x3ac0d2>0x1?void 0x0:_0x3ac0d2?sn(_0x30598a,_0x591b78):_0x30598a,_0x15341c=_0x3d6003[_0x2898f5(0x23c)]-0x1,_0x1dbc4c;_0x15341c>=0x0;_0x15341c--)(_0x1dbc4c=_0x3d6003[_0x15341c])&&(_0x5eeeb0=(_0x3ac0d2?_0x1dbc4c(_0x30598a,_0x591b78,_0x5eeeb0):_0x1dbc4c(_0x5eeeb0))||_0x5eeeb0);return _0x3ac0d2&&_0x5eeeb0&&tn(_0x30598a,_0x591b78,_0x5eeeb0),_0x5eeeb0;},je=(_0xc357f,_0x150f97)=>(_0x70a476,_0x5a6771)=>_0x150f97(_0x70a476,_0x5a6771,_0xc357f);const rn=[_0xb0c99b(0x38c),_0xb0c99b(0x154),_0xb0c99b(0x4c6),'image/gif',_0xb0c99b(0x464)],on=0x5*0x400*0x400,an=_0xb0c99b(0x11a),cn=_0xb0c99b(0x4ef),ln='EXCHANGE_SIGN_URL_SERVER_URL_KEY',hn=_0xb0c99b(0x307);exports[_0xb0c99b(0x226)]=class{constructor(_0xa8244f,_0x4ee89c,_0x2fef89){const _0x2f5228=_0xb0c99b;d(this,_0x2f5228(0x16c),0x0),d(this,_0x2f5228(0x30b),new v['Subject']()),d(this,'change$',this['_change$']),d(this,_0x2f5228(0x208),new Map()),(this[_0x2f5228(0x2e8)]=_0xa8244f,this[_0x2f5228(0x3ec)]=_0x4ee89c,this[_0x2f5228(0x3fb)]=_0x2fef89);}['setWaitCount'](_0x37a503){const _0x36fa1c=_0xb0c99b;this[_0x36fa1c(0x16c)]=_0x37a503,this[_0x36fa1c(0x30b)][_0x36fa1c(0x3c7)](_0x37a503);}[_0xb0c99b(0x25e)](_0x1649db,_0x262d03){const _0x2e47a1=_0xb0c99b;if(_0x262d03===A[_0x2e47a1(0x2c8)][_0x2e47a1(0x3f7)]){const _0x45aea9=new Image();return _0x45aea9['src']=_0x1649db,_0x45aea9;}return this[_0x2e47a1(0x208)][_0x2e47a1(0x1a0)](_0x1649db);}[_0xb0c99b(0x164)](_0x31b506,_0x1857ef,_0x2ce803){const _0x2a1658=_0xb0c99b;_0x1857ef===A[_0x2a1658(0x2c8)][_0x2a1658(0x3f7)]||_0x2ce803==null||this[_0x2a1658(0x208)][_0x2a1658(0x4d0)](_0x31b506,_0x2ce803);}async[_0xb0c99b(0x20a)](_0x7a650a){const _0x765ddc=_0xb0c99b;try{const _0x447756=this['_replaceFileID'](this['_getSignURL'](),''+_0x7a650a),_0x487a82=(await this['_httpService'][_0x765ddc(0x1a0)](_0x447756))['body'];if(_0x487a82[_0x765ddc(0x4d1)]&&_0x487a82[_0x765ddc(0x4d1)][_0x765ddc(0x17f)]===It['OK']){const _0x28167f=new URL(_0x487a82[_0x765ddc(0x187)],this['_getDownloadEndpointURL']())[_0x765ddc(0x499)]();return Promise['resolve'](_0x28167f);}return Promise['reject'](_0x487a82['error']);}catch(_0x48aed7){return Promise['reject'](_0x48aed7);}}async[_0xb0c99b(0x26f)](_0xccc835){const _0x370011=_0xb0c99b;let _0x524a44='';if(!rn['includes'](_0xccc835[_0x370011(0x498)]))return this[_0x370011(0x28c)](),Promise[_0x370011(0x21d)](new Error(A[_0x370011(0x46c)][_0x370011(0x379)]));if(_0xccc835[_0x370011(0x40e)]>on)return this[_0x370011(0x28c)](),Promise[_0x370011(0x21d)](new Error(A[_0x370011(0x46c)][_0x370011(0x21b)]));try{const _0x56fd83=new FormData();_0x56fd83[_0x370011(0x21c)](_0x370011(0x399),_0xccc835);const _0x3a8713=this[_0x370011(0x3fb)][_0x370011(0x345)](),_0x500a1d=_0x3a8713==null?void 0x0:_0x3a8713[_0x370011(0x4dd)]();if(!_0x500a1d)throw new Error(_0x370011(0x16e));const _0x482c92=this[_0x370011(0x389)]()+_0x370011(0x2c4)+_0xccc835[_0x370011(0x40e)]['toString']()+_0x370011(0x353)+pt[_0x370011(0x394)]+_0x370011(0x224)+encodeURIComponent(_0x500a1d),_0x1b26c1=await(await fetch(_0x482c92,{'method':_0x370011(0x3f8),'body':_0x56fd83}))[_0x370011(0x250)]();if(typeof _0x1b26c1[_0x370011(0x3b5)]!='string')return this[_0x370011(0x28c)](),Promise[_0x370011(0x21d)](new Error(A[_0x370011(0x46c)][_0x370011(0x3d5)]));_0x524a44=_0x1b26c1['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x370011(0x21d)](new Error(A['ImageUploadStatusType'][_0x370011(0x3d5)]));}return new Promise((_0x1bc391,_0x2d02ba)=>{const _0x15d3b8=_0x370011,_0x113309=new FileReader();_0x113309[_0x15d3b8(0x42f)](_0xccc835),_0x113309[_0x15d3b8(0x44e)]=_0x52b894=>{const _0x44c823=_0x15d3b8;var _0x179d9f;const _0x67b270=(_0x179d9f=_0x52b894[_0x44c823(0x3fd)])==null?void 0x0:_0x179d9f[_0x44c823(0x137)];if(_0x67b270==null){this[_0x44c823(0x28c)](),_0x2d02ba(new Error(A['ImageUploadStatusType'][_0x44c823(0x3d5)]));return;}const _0x36843e=a[_0x44c823(0x286)][_0x44c823(0x36a)](0x6);_0x1bc391({'imageId':_0x36843e,'imageSourceType':A[_0x44c823(0x2c8)]['UUID'],'source':_0x524a44,'base64Cache':_0x67b270,'status':A['ImageUploadStatusType'][_0x44c823(0x23f)]}),this[_0x44c823(0x28c)]();};});}[_0xb0c99b(0x389)](){const _0x46355f=_0xb0c99b;var _0x25fe68,_0x2d06f6;const _0x1c5b9d=this[_0x46355f(0x3ec)][_0x46355f(0x2aa)](an),_0xd3f72c=this[_0x46355f(0x3ec)]['getConfig'](L);return(_0x2d06f6=(_0x25fe68=_0xd3f72c==null?void 0x0:_0xd3f72c['uploadFileServerUrl'])!=null?_0x25fe68:_0x1c5b9d)!=null?_0x2d06f6:cn;}['_getSignURL'](){const _0x4d9429=_0xb0c99b;var _0x5888ee,_0x1a1a8c;const _0x5c9431=this['_configService'][_0x4d9429(0x2aa)](ln),_0x50fab6=this[_0x4d9429(0x3ec)]['getConfig'](L);return(_0x1a1a8c=(_0x5888ee=_0x50fab6==null?void 0x0:_0x50fab6['signUrlServerUrl'])!=null?_0x5888ee:_0x5c9431)!=null?_0x1a1a8c:hn;}[_0xb0c99b(0x1fd)](){const _0x191aba=_0xb0c99b;var _0x3814fc;const _0x5fc0ae=this['_configService'][_0x191aba(0x2aa)](L);return(_0x3814fc=_0x5fc0ae==null?void 0x0:_0x5fc0ae[_0x191aba(0x280)])!=null?_0x3814fc:location[_0x191aba(0x269)];}[_0xb0c99b(0xec)](_0x38b354,_0x3fd1e3){const _0x203bb1=_0xb0c99b;return _0x38b354[_0x203bb1(0x2c3)](_0x203bb1(0x328),_0x3fd1e3);}[_0xb0c99b(0x28c)](){const _0x6fcc9b=_0xb0c99b;this[_0x6fcc9b(0x16c)]-=0x1,this[_0x6fcc9b(0x30b)]['next'](this[_0x6fcc9b(0x16c)]);}},exports[_0xb0c99b(0x226)]=nn([je(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)])),je(0x1,a[_0xb0c99b(0x195)]),je(0x2,a[_0xb0c99b(0x455)](a['IUniverInstanceService']))],exports[_0xb0c99b(0x226)]);var _n=Object[_0xb0c99b(0x3dd)],un=Object[_0xb0c99b(0x18e)],dn=(_0x338b06,_0x269155,_0x165b6f,_0x319447)=>{for(var _0x830578=_0x319447>0x1?void 0x0:_0x319447?un(_0x269155,_0x165b6f):_0x269155,_0xb9deb9=_0x338b06['length']-0x1,_0x2c793a;_0xb9deb9>=0x0;_0xb9deb9--)(_0x2c793a=_0x338b06[_0xb9deb9])&&(_0x830578=(_0x319447?_0x2c793a(_0x269155,_0x165b6f,_0x830578):_0x2c793a(_0x830578))||_0x830578);return _0x319447&&_0x830578&&_n(_0x269155,_0x165b6f,_0x830578),_0x830578;},he=(_0x50ffd8,_0xb2784e)=>(_0xf24bb8,_0x13fd29)=>_0xb2784e(_0xf24bb8,_0x13fd29,_0x50ffd8);let me=class extends a['RxDisposable']{constructor(_0x40153d,_0xc1a70e,_0x455e92,_0x421203,_0x386d51){const _0x1a2389=_0xb0c99b;super(),this[_0x1a2389(0x12f)]=_0x40153d,this[_0x1a2389(0x3fb)]=_0xc1a70e,this[_0x1a2389(0x115)]=_0x455e92,this[_0x1a2389(0x4cd)]=_0x421203,this[_0x1a2389(0x26d)]=_0x386d51,this['_initUnitPermissionChange'](),this[_0x1a2389(0x10f)]();}[_0xb0c99b(0x10f)](){const _0x3add5a=_0xb0c99b,_0x3e6cc2=async _0x3e468a=>{const _0x510731=_0x4e0f;(await this[_0x510731(0x4cd)]['requireSession'](_0x3e468a))[_0x510731(0x1c0)]['pipe'](E['filter'](_0x15ff06=>_0x15ff06[_0x510731(0x1bd)]===_[_0x510731(0x153)][_0x510731(0x430)]),E[_0x510731(0x450)](this[_0x510731(0x495)]))[_0x510731(0x33b)](_0x29df85=>{const _0x37fa62=_0x510731,_0x4680ec=_0x29df85,{reason:_0x500d9d}=_0x4680ec[_0x37fa62(0x494)];this[_0x37fa62(0x12f)][_0x37fa62(0x1a0)](N[_0x37fa62(0x3bb)])[_0x37fa62(0x126)]({'type':X[_0x37fa62(0x20b)][_0x37fa62(0x14d)],'content':this['_localeService']['t'](_0x37fa62(0x33e))+'('+_0x500d9d+')'}),this['_permissionService'][_0x37fa62(0x3c8)](new C[(_0x37fa62(0x3bc))](_0x3e468a)['id'],!0x1),this[_0x37fa62(0x4cd)][_0x37fa62(0x2fe)](_0x3e468a);});};v['merge'](this[_0x3add5a(0x3fb)]['getTypeOfUnitAdded$'](a[_0x3add5a(0x111)][_0x3add5a(0x3e6)]),this[_0x3add5a(0x3fb)][_0x3add5a(0x2a4)](a[_0x3add5a(0x111)][_0x3add5a(0x254)]))[_0x3add5a(0x3a7)](E[_0x3add5a(0x1af)](_0x4ede8b=>_0x4ede8b[_0x3add5a(0x4dd)]()),E['filter'](_0x55a695=>!a[_0x3add5a(0x2b0)](_0x55a695)),E[_0x3add5a(0x450)](this[_0x3add5a(0x495)]))[_0x3add5a(0x33b)](_0x19c9d5=>{_0x3e6cc2(_0x19c9d5);});}[_0xb0c99b(0x374)](){const _0x44d593=_0xb0c99b,_0x3113ae=async _0xf9a211=>{const _0x546f8c=_0x4e0f;(await this[_0x546f8c(0x4cd)][_0x546f8c(0x230)](_0xf9a211))[_0x546f8c(0x1c0)][_0x546f8c(0x3a7)](E[_0x546f8c(0x13b)](_0x4409e7=>_0x4409e7[_0x546f8c(0x1bd)]===_['CollaborationEvent'][_0x546f8c(0x10e)]),E[_0x546f8c(0x450)](this[_0x546f8c(0x495)]))[_0x546f8c(0x33b)](_0x5d5879=>{const _0x6cb539=_0x546f8c,_0x485c4a=_0x5d5879,{objectId:_0x4e06fd}=_0x485c4a[_0x6cb539(0x494)],_0x2653a2=this[_0x6cb539(0x12f)][_0x6cb539(0x1a0)](te[_0x6cb539(0x2ae)]);_0x4e06fd===_0xf9a211?_0x2653a2[_0x6cb539(0x392)](_0xf9a211):_0x2653a2[_0x6cb539(0x343)](_0xf9a211,_0x4e06fd);});};v[_0x44d593(0x387)](this[_0x44d593(0x3fb)]['getTypeOfUnitAdded$'](a[_0x44d593(0x111)][_0x44d593(0x3e6)]),this['_univerInstanceService'][_0x44d593(0x2a4)](a['UniverInstanceType'][_0x44d593(0x254)]))[_0x44d593(0x3a7)](E[_0x44d593(0x1af)](_0x30ef73=>_0x30ef73[_0x44d593(0x4dd)]()),E[_0x44d593(0x13b)](_0x1aa713=>!a[_0x44d593(0x2b0)](_0x1aa713)),E['takeUntil'](this[_0x44d593(0x495)]))['subscribe'](_0x52402e=>{_0x3113ae(_0x52402e);});}};me=dn([a['OnLifecycle'](a['LifecycleStages'][_0xb0c99b(0x16a)],me),he(0x0,a['Inject'](a[_0xb0c99b(0x41a)])),he(0x1,a['IUniverInstanceService']),he(0x2,a['IPermissionService']),he(0x3,a[_0xb0c99b(0x455)](exports['CollaborationSessionService'])),he(0x4,a[_0xb0c99b(0x455)](a['LocaleService']))],me);var Sn=Object[_0xb0c99b(0x3dd)],vn=Object[_0xb0c99b(0x18e)],fn=(_0x27564d,_0x1a6722,_0x5e18d0,_0x18c2c8)=>{const _0x3098c8=_0xb0c99b;for(var _0x2ff618=_0x18c2c8>0x1?void 0x0:_0x18c2c8?vn(_0x1a6722,_0x5e18d0):_0x1a6722,_0x3976df=_0x27564d[_0x3098c8(0x23c)]-0x1,_0x12fcca;_0x3976df>=0x0;_0x3976df--)(_0x12fcca=_0x27564d[_0x3976df])&&(_0x2ff618=(_0x18c2c8?_0x12fcca(_0x1a6722,_0x5e18d0,_0x2ff618):_0x12fcca(_0x2ff618))||_0x2ff618);return _0x18c2c8&&_0x2ff618&&Sn(_0x1a6722,_0x5e18d0,_0x2ff618),_0x2ff618;},lt=(_0x33f2e9,_0x150f5a)=>(_0x3e7d1e,_0x5adbc8)=>_0x150f5a(_0x3e7d1e,_0x5adbc8,_0x33f2e9);exports[_0xb0c99b(0x474)]=class{constructor(_0x27de7e,_0x27758b){const _0x190ce5=_0xb0c99b;this[_0x190ce5(0x3ec)]=_0x27de7e,this[_0x190ce5(0x2e8)]=_0x27758b;}async[_0xb0c99b(0x1f4)](_0x804a4a,_0x4aee79){const _0x4644b1=_0xb0c99b;var _0x554e3b;const {unitID:_0x992e02,type:_0x5a13f3,revision:_0x5cb5f0=0x0}=_0x4aee79,_0x4cc4c0=this[_0x4644b1(0x3b9)]()+'/'+_0x5a13f3+_0x4644b1(0x19f)+_0x992e02+'/rev/'+_0x5cb5f0,_0x1a603b=(await this[_0x4644b1(0x2e8)][_0x4644b1(0x1a0)](_0x4cc4c0))[_0x4644b1(0x4c0)],_0x2f0268=(_0x554e3b=_0x1a603b[_0x4644b1(0x3d8)])==null?void 0x0:_0x554e3b['workbook'];if(_0x2f0268){const _0x22efae=_0x2f0268==null?void 0x0:_0x2f0268[_0x4644b1(0x4a6)],_0x3f9cc6=_[_0x4644b1(0x163)][_0x4644b1(0x3b6)](_[_0x4644b1(0x262)](_0x22efae));_0x2f0268[_0x4644b1(0x4a6)]=_0x3f9cc6,Object[_0x4644b1(0x207)](_0x2f0268['sheets'])[_0x4644b1(0x1cb)](([,_0x15f5ca])=>{const _0xe0be84=_0x4644b1,_0x3e2525=_0x15f5ca[_0xe0be84(0x4a6)],_0x3a20a7=_[_0xe0be84(0x163)][_0xe0be84(0x3b6)](_[_0xe0be84(0x262)](_0x3e2525));_0x15f5ca[_0xe0be84(0x4a6)]=_0x3a20a7;});}return _0x1a603b;}async[_0xb0c99b(0x144)](_0x43599e,_0x3258c8){const _0x6b6ab4=_0xb0c99b,{unitID:_0x3aca1c,type:_0x5a3572,blockID:_0x5c006e}=_0x3258c8,_0x35f4f7=this[_0x6b6ab4(0xea)]()+'/'+_0x5a3572+_0x6b6ab4(0x19f)+_0x3aca1c+_0x6b6ab4(0x193)+_0x5c006e;return(await this[_0x6b6ab4(0x2e8)][_0x6b6ab4(0x1a0)](_0x35f4f7))[_0x6b6ab4(0x4c0)];}async[_0xb0c99b(0x2ea)](_0x44dc87,_0xfb252c){const _0x6b2ced=_0xb0c99b,{unitID:_0x1f7691,type:_0x1616dc,blockID:_0x9bc817}=_0xfb252c,_0x59c52e=this[_0x6b2ced(0xea)]()+_0x6b2ced(0x193)+_0x1616dc+_0x6b2ced(0x19f)+_0x1f7691+_0x6b2ced(0x193)+_0x9bc817;return(await this[_0x6b2ced(0x2e8)][_0x6b2ced(0x1a0)](_0x59c52e))[_0x6b2ced(0x4c0)];}async[_0xb0c99b(0x4e0)](_0x43ce6a,_0x600ba9){const _0x81cbd3=_0xb0c99b,{unitID:_0x18da91,type:_0x144e45,from:_0x852ee2,to:_0x436cd1}=_0x600ba9,_0x11b392=this[_0x81cbd3(0xea)]()+'/'+_0x144e45+_0x81cbd3(0x19f)+_0x18da91+'/fetchmissing?from='+_0x852ee2+_0x81cbd3(0x19c)+_0x436cd1;return(await this['_httpService']['get'](_0x11b392))['body'];}[_0xb0c99b(0x3b9)](){const _0x30b1ee=_0xb0c99b;var _0x4a0a32;return(_0x4a0a32=this['_configService'][_0x30b1ee(0x2aa)](_t))!=null?_0x4a0a32:this[_0x30b1ee(0xea)]();}[_0xb0c99b(0xea)](){const _0x31b92b=_0xb0c99b;var _0x951487,_0x582d85;const _0x1c45e6=this[_0x31b92b(0x3ec)][_0x31b92b(0x2aa)](ht),_0x5ab688=this[_0x31b92b(0x3ec)]['getConfig'](L);return(_0x582d85=(_0x951487=_0x5ab688==null?void 0x0:_0x5ab688[_0x31b92b(0x204)])!=null?_0x951487:_0x1c45e6)!=null?_0x582d85:Gt;}async[_0xb0c99b(0x370)](_0x454d7a,_0x5c00c7){const _0x92bca0=_0xb0c99b,_0xb7e618=_0x92bca0(0x17e)+_0x5c00c7[_0x92bca0(0x498)]+'/unit/'+_0x5c00c7[_0x92bca0(0x4c3)]+_0x92bca0(0x27e);return(await this[_0x92bca0(0x2e8)][_0x92bca0(0x1a0)](_0xb7e618,{'params':{'resourceId':JSON[_0x92bca0(0x36d)](_0x5c00c7[_0x92bca0(0x260)])}}))['body'];}[_0xb0c99b(0x1ce)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xb0c99b(0x23a)](){const _0x614fb1=_0xb0c99b;throw new Error(_0x614fb1(0x1ec));}[_0xb0c99b(0x458)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x325f35=_0xb0c99b;throw new Error(_0x325f35(0x1ec));}},exports[_0xb0c99b(0x474)]=fn([lt(0x0,a['IConfigService']),lt(0x1,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)]))],exports['SnapshotServerOverHTTPService']);var gn=Object[_0xb0c99b(0x3dd)],mn=Object[_0xb0c99b(0x18e)],In=(_0x162d0f,_0x314379,_0x3f3481,_0x105d20)=>{for(var _0xd79dad=_0x105d20>0x1?void 0x0:_0x105d20?mn(_0x314379,_0x3f3481):_0x314379,_0x2eeaa5=_0x162d0f['length']-0x1,_0x3c30ac;_0x2eeaa5>=0x0;_0x2eeaa5--)(_0x3c30ac=_0x162d0f[_0x2eeaa5])&&(_0xd79dad=(_0x105d20?_0x3c30ac(_0x314379,_0x3f3481,_0xd79dad):_0x3c30ac(_0xd79dad))||_0xd79dad);return _0x105d20&&_0xd79dad&&gn(_0x314379,_0x3f3481,_0xd79dad),_0xd79dad;},_e=(_0x4f8fc8,_0x4e761d)=>(_0x1f67be,_0x38260d)=>_0x4e761d(_0x1f67be,_0x38260d,_0x4f8fc8);function _0x4e0f(_0x4ee815,_0x587a41){const _0x4d94b7=_0x4d94();return _0x4e0f=function(_0x4e0fdb,_0x43140c){_0x4e0fdb=_0x4e0fdb-0xe5;let _0x4650e7=_0x4d94b7[_0x4e0fdb];return _0x4650e7;},_0x4e0f(_0x4ee815,_0x587a41);}let Be=class extends a['LocalUndoRedoService']{constructor(_0x5bca08,_0x123564,_0x296714,_0x455b37,_0x4fe4d6){const _0x42db89=_0xb0c99b;super(_0x5bca08,_0x123564,_0x296714),this[_0x42db89(0x1f2)]=_0x455b37,this['_logService']=_0x4fe4d6;}[_0xb0c99b(0x4d4)](_0x33ab68,_0x1d7032){const _0x5bfbad=_0xb0c99b,_0x4c0779=this[_0x5bfbad(0x4b5)](_0x33ab68);if(_0x4c0779)try{const _0x5a0d37=this[_0x5bfbad(0x414)](_0x4c0779,_0x1d7032);this['_substituteUndoStack'](_0x33ab68,_0x5a0d37);}catch(_0x19146d){this[_0x5bfbad(0x3cd)][_0x5bfbad(0x4d1)](_0x5bfbad(0x116),_0x19146d),this[_0x5bfbad(0x48c)](_0x33ab68);}const _0x25cfe2=this[_0x5bfbad(0x1e5)](_0x33ab68);if(_0x25cfe2)try{const _0x3738ad=this['_transformStack'](_0x25cfe2,_0x1d7032);this['_substituteRedoStack'](_0x33ab68,_0x3738ad);}catch(_0x519296){this['_logService'][_0x5bfbad(0x4d1)](_0x519296),this[_0x5bfbad(0x21e)](_0x33ab68);}}[_0xb0c99b(0x48c)](_0x103735){const _0xc245dc=_0xb0c99b,_0xeacc77=this[_0xc245dc(0x4b5)](_0x103735);_0xeacc77&&(_0xeacc77[_0xc245dc(0x23c)]=0x0,this[_0xc245dc(0x2e4)]());}['_clearRedo'](_0x340d3d){const _0x1240c5=_0xb0c99b,_0x2b8f8d=this['_getRedoStack'](_0x340d3d);_0x2b8f8d&&(_0x2b8f8d['length']=0x0,this[_0x1240c5(0x2e4)]());}[_0xb0c99b(0x243)](_0xf0ad51,_0x172702){const _0x2b0e00=_0xb0c99b;this[_0x2b0e00(0x107)]['set'](_0xf0ad51,_0x172702),this['_updateStatus']();}['_substituteRedoStack'](_0x102e16,_0x4663cd){const _0x16f62b=_0xb0c99b;this[_0x16f62b(0x31a)][_0x16f62b(0x4d0)](_0x102e16,_0x4663cd),this['_updateStatus']();}['_transformStack'](_0xa45ce5,_0x1a992c){const _0xb7d7b9=_0xb0c99b,_0x212f41=[];let _0x1a5342=_0x1a992c,_0x3c13de=_0x1a992c;for(let _0x18321e=_0xa45ce5['length']-0x1;_0x18321e>=0x0;_0x18321e--){const {unitID:_0x5204cf,undoMutations:_0x33d462,redoMutations:_0x573fc3}=_0xa45ce5[_0x18321e],_0x58c856=this[_0xb7d7b9(0x1f2)][_0xb7d7b9(0x2d6)](_0x1a5342,_0x33d462),_0x580038=this['_transformService'][_0xb7d7b9(0x2d6)](_0x3c13de,_0x573fc3);if(_[_0xb7d7b9(0x240)](_0x58c856)||_[_0xb7d7b9(0x240)](_0x580038)){this[_0xb7d7b9(0x3cd)][_0xb7d7b9(0x4d1)]('[CollaborationUndoRedoService]',_0xb7d7b9(0x47b),_0x58c856,_0x580038);break;}_0x1a5342=_0x58c856[_0xb7d7b9(0x2d5)],_0x3c13de=_0x580038[_0xb7d7b9(0x2d5)],_0x212f41[_0xb7d7b9(0x2da)]({'unitID':_0x5204cf,'undoMutations':_0x58c856[_0xb7d7b9(0x200)],'redoMutations':_0x580038['m2Prime']});}return _0x212f41[_0xb7d7b9(0x3d4)]();}};Be=In([_e(0x0,a['IUniverInstanceService']),_e(0x1,a[_0xb0c99b(0x47e)]),_e(0x2,a[_0xb0c99b(0x34d)]),_e(0x3,_['ITransformService']),_e(0x4,a[_0xb0c99b(0x2b2)])],Be);class Mt extends a[_0xb0c99b(0x3c1)]{constructor(){const _0x37d003=_0xb0c99b;super(),d(this,'urlChange$'),this[_0x37d003(0x3b8)]=v['fromEvent'](window,_0x37d003(0x4eb))['pipe'](v[_0x37d003(0x450)](this[_0x37d003(0x495)]),v[_0x37d003(0xeb)](0x1),v['mapTo'](void 0x0));}[_0xb0c99b(0x1b1)](_0x4f9147,_0x4ab832,_0x245646=!0x1){const _0x53a33f=_0xb0c99b,_0x28e78c=new URL(window['location']['href']);_0x28e78c['searchParams'][_0x53a33f(0x4d0)](_0x4f9147,_0x4ab832),_0x245646?window[_0x53a33f(0x45e)][_0x53a33f(0x237)]('','',_0x28e78c[_0x53a33f(0x499)]()):window[_0x53a33f(0x45e)]['pushState']('','',_0x28e78c[_0x53a33f(0x499)]());}[_0xb0c99b(0x28e)](_0xb19889,_0x4ca050=!0x1){const _0x3c2078=_0xb0c99b,_0x4e72ed=new URL(window[_0x3c2078(0x13c)][_0x3c2078(0x363)]);_0x4e72ed[_0x3c2078(0x418)]['delete'](_0xb19889),_0x4ca050?window['history']['replaceState']('','',_0x4e72ed[_0x3c2078(0x499)]()):window['history']['pushState']('','',_0x4e72ed['toString']());}[_0xb0c99b(0x3ef)](_0x32477f){const _0x574511=_0xb0c99b;var _0x5abe55;return(_0x5abe55=new URL(window['location']['href'])[_0x574511(0x418)][_0x574511(0x1a0)](_0x32477f))!=null?_0x5abe55:void 0x0;}}var Nt=Object['defineProperty'],pn=Object['getOwnPropertyDescriptor'],Cn=(_0x422740,_0x3f4e62,_0x7564a0)=>_0x3f4e62 in _0x422740?Nt(_0x422740,_0x3f4e62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7564a0}):_0x422740[_0x3f4e62]=_0x7564a0,En=(_0x4a4a42,_0x510217,_0x2fb593,_0x167a39)=>{for(var _0x366406=_0x167a39>0x1?void 0x0:_0x167a39?pn(_0x510217,_0x2fb593):_0x510217,_0x1ac253=_0x4a4a42['length']-0x1,_0x8f969c;_0x1ac253>=0x0;_0x1ac253--)(_0x8f969c=_0x4a4a42[_0x1ac253])&&(_0x366406=(_0x167a39?_0x8f969c(_0x510217,_0x2fb593,_0x366406):_0x8f969c(_0x366406))||_0x366406);return _0x167a39&&_0x366406&&Nt(_0x510217,_0x2fb593,_0x366406),_0x366406;},ve=(_0x1515c5,_0x483c53)=>(_0x369847,_0x358c6d)=>_0x483c53(_0x369847,_0x358c6d,_0x1515c5),bn=(_0x2ca60d,_0xb3947d,_0x49e92a)=>Cn(_0x2ca60d,_0xb3947d+'',_0x49e92a);const Tn=_0xb0c99b(0x1cf);exports[_0xb0c99b(0x4af)]=class extends a[_0xb0c99b(0x14c)]{constructor(_0x2ee49b=ts,_0x58b0ca,_0x436c0d,_0x14dc4c,_0x4c1a47){const _0x200128=_0xb0c99b;super(),this[_0x200128(0x2ba)]=_0x2ee49b,this[_0x200128(0x3cd)]=_0x58b0ca,this[_0x200128(0x285)]=_0x436c0d,this[_0x200128(0x12f)]=_0x14dc4c,this[_0x200128(0x3ec)]=_0x4c1a47;const {..._0x2d62a3}=this[_0x200128(0x2ba)];this[_0x200128(0x3ec)][_0x200128(0x1f1)](L,_0x2d62a3);}[_0xb0c99b(0x205)](){const _0x2a93fa=_0xb0c99b;this[_0x2a93fa(0x160)]();}[_0xb0c99b(0x141)](){const _0x16b390=_0xb0c99b;this[_0x16b390(0x149)]();}[_0xb0c99b(0x160)](){const _0x1c473c=_0xb0c99b;var _0xc280db,_0x1fedee,_0x9c15b2,_0x425024;this[_0x1c473c(0x12f)][_0x1c473c(0x191)](a[_0x1c473c(0x395)])&&this[_0x1c473c(0x3cd)][_0x1c473c(0x4d1)](_0x1c473c(0x486),_0x1c473c(0x27b));let _0x16ac80=[[a[_0x1c473c(0x395)],{'useClass':Be}],[exports[_0x1c473c(0x28a)]],[Xe],[P['HTTPService']],[ze,{'useClass':Mt}],[q],[exports[_0x1c473c(0x2b9)]],[P[_0x1c473c(0x300)]],[pe],[Ce],[Ie],[Ye],[Ee],[be],[Ge],[me],[Fe,{'useClass':(_0x1fedee=(_0xc280db=this[_0x1c473c(0x2ba)])==null?void 0x0:_0xc280db['socketService'])!=null?_0x1fedee:exports[_0x1c473c(0x18a)]}],[P[_0x1c473c(0x234)],{'useClass':P[_0x1c473c(0x17b)]}],[_[_0x1c473c(0x1ee)],{'useClass':exports[_0x1c473c(0x474)]}],[a[_0x1c473c(0x447)],{'useClass':exports[_0x1c473c(0x4bf)]}],[A['IImageIoService'],{'useClass':exports['ImageIoService']}],[exports['CollaborationController']],[exports[_0x1c473c(0x1d7)]],[exports[_0x1c473c(0x1ac)]],[ge],[se]];(_0x9c15b2=this['_config'])!=null&&_0x9c15b2['enableSingleActiveInstanceLock']&&_0x16ac80[_0x1c473c(0x2da)]([Te,{'useClass':ys}]),_0x16ac80=a['mergeOverrideWithDependencies'](_0x16ac80,(_0x425024=this['_config'])==null?void 0x0:_0x425024[_0x1c473c(0x354)]),_0x16ac80[_0x1c473c(0x1cb)](_0x2054c4=>this['_injector'][_0x1c473c(0x143)](_0x2054c4)),this['_initModules']();}[_0xb0c99b(0x149)](){const _0x26ade5=_0xb0c99b;this[_0x26ade5(0x3d3)](this[_0x26ade5(0x285)][_0x26ade5(0x1d9)](a['UniverInstanceType'][_0x26ade5(0x254)],[fe])),this[_0x26ade5(0x3d3)](this[_0x26ade5(0x285)][_0x26ade5(0x1d9)](a[_0x26ade5(0x111)]['UNIVER_SHEET'],[ke]));}['_initModules'](){const _0x463f04=_0xb0c99b;var _0x10df00,_0x1dff75;this[_0x463f04(0x12f)][_0x463f04(0x1a0)](P[_0x463f04(0x319)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':P[_0x463f04(0x2ca)]({'maxParallel':0x6})}),this[_0x463f04(0x12f)][_0x463f04(0x1a0)](be),(_0x10df00=this['_config'])!=null&&_0x10df00[_0x463f04(0x294)]||this[_0x463f04(0x12f)][_0x463f04(0x1a0)](exports['LocalCacheService'])[_0x463f04(0x38b)](),(_0x1dff75=this[_0x463f04(0x2ba)])!=null&&_0x1dff75[_0x463f04(0x4cc)]&&this[_0x463f04(0x12f)][_0x463f04(0x1a0)](Ee),this[_0x463f04(0x12f)][_0x463f04(0x1a0)](exports['CollaborationController']),this[_0x463f04(0x12f)]['has'](exports[_0x463f04(0x1ac)])&&this[_0x463f04(0x12f)][_0x463f04(0x1a0)](exports['DesktopCollaborationStatusDisplayController']);}},bn(exports['UniverCollaborationClientPlugin'],_0xb0c99b(0x2bf),Tn),exports[_0xb0c99b(0x4af)]=En([a[_0xb0c99b(0x18f)](_[_0xb0c99b(0x421)]),ve(0x1,a[_0xb0c99b(0x2b2)]),ve(0x2,R['IRenderManagerService']),ve(0x3,a['Inject'](a[_0xb0c99b(0x41a)])),ve(0x4,a[_0xb0c99b(0x195)])],exports['UniverCollaborationClientPlugin']),exports[_0xb0c99b(0x2d2)]=wt,exports[_0xb0c99b(0x361)]=gt,exports[_0xb0c99b(0x3a2)]=ut,exports[_0xb0c99b(0x4df)]=y,exports[_0xb0c99b(0x3ea)]=Pt,exports[_0xb0c99b(0x3ce)]=Ge,exports[_0xb0c99b(0x270)]=dt,exports[_0xb0c99b(0x448)]=Ve,exports[_0xb0c99b(0x4f6)]=Fe,exports[_0xb0c99b(0x158)]=ze,exports[_0xb0c99b(0x37b)]=ft,exports[_0xb0c99b(0x281)]=mt,exports[_0xb0c99b(0x1de)]=vt,exports[_0xb0c99b(0x44f)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0xb0c99b(0x23b)]=_t,exports[_0xb0c99b(0x35c)]=j,exports[_0xb0c99b(0x2af)]=Ot,exports[_0xb0c99b(0x14b)]=Mt,exports[_0xb0c99b(0x2c9)]=Ct,exports[_0xb0c99b(0x292)]=Et;
1
+ 'use strict';const _0x49b0d1=_0x5144;(function(_0x4d6792,_0x2614ca){const _0x1f2f35=_0x5144,_0x358adf=_0x4d6792();while(!![]){try{const _0x38e633=-parseInt(_0x1f2f35(0x4de))/0x1*(parseInt(_0x1f2f35(0x27e))/0x2)+-parseInt(_0x1f2f35(0x376))/0x3+parseInt(_0x1f2f35(0x3fe))/0x4+-parseInt(_0x1f2f35(0x4e3))/0x5+parseInt(_0x1f2f35(0x2df))/0x6+-parseInt(_0x1f2f35(0x265))/0x7*(-parseInt(_0x1f2f35(0x303))/0x8)+-parseInt(_0x1f2f35(0x258))/0x9;if(_0x38e633===_0x2614ca)break;else _0x358adf['push'](_0x358adf['shift']());}catch(_0xe60327){_0x358adf['push'](_0x358adf['shift']());}}}(_0x3f94,0x438c2));var xt=Object['defineProperty'],kt=(_0x1369b7,_0x4e7f59,_0x184d45)=>_0x4e7f59 in _0x1369b7?xt(_0x1369b7,_0x4e7f59,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x184d45}):_0x1369b7[_0x4e7f59]=_0x184d45,d=(_0x192253,_0x421b3d,_0x742853)=>kt(_0x192253,typeof _0x421b3d!='symbol'?_0x421b3d+'':_0x421b3d,_0x742853);Object[_0x49b0d1(0x37d)](exports,Symbol[_0x49b0d1(0x106)],{'value':'Module'});const a=require(_0x49b0d1(0x392)),v=require('rxjs'),E=require(_0x49b0d1(0x13e)),X=require(_0x49b0d1(0x16a)),N=require(_0x49b0d1(0x1b5)),P=require(_0x49b0d1(0x27a)),_=require(_0x49b0d1(0x3c8)),Bt=require(_0x49b0d1(0x150)),V=require(_0x49b0d1(0x4f1)),w=require('@univerjs/docs-ui'),C=require(_0x49b0d1(0x2ff)),R=require('@univerjs/engine-render'),A=require(_0x49b0d1(0x2e0)),Je=require(_0x49b0d1(0x155)),te=require(_0x49b0d1(0x21d)),U=require('react'),Vt=require(_0x49b0d1(0x474)),Wt=require(_0x49b0d1(0x380)),Ft=require('@univerjs-pro/license'),ht=_0x49b0d1(0x1ca),Gt=_0x49b0d1(0x34e),_t=_0x49b0d1(0x423),Yt=_0x49b0d1(0x3bf),Kt=0x7d0,ut=_0x49b0d1(0x4f2),Xt=_0x49b0d1(0x168),dt=_0x49b0d1(0x204),qt=0x7530,Ve=_0x49b0d1(0x422),St=0x4e20,zt=0x4e20,vt=_0x49b0d1(0x224),Jt=0x3,ft=_0x49b0d1(0x3f3),Zt=0x3e8,gt=_0x49b0d1(0x134),Qt=_0x49b0d1(0x127),mt=_0x49b0d1(0x49d),es=_0x49b0d1(0xd7);var It=(_0xd8015e=>(_0xd8015e[_0xd8015e['UNDEFINED']=0x0]=_0x49b0d1(0x4e0),_0xd8015e[_0xd8015e['OK']=0x1]='OK',_0xd8015e[_0xd8015e['INTERNAL_ERROR']=0x2]=_0x49b0d1(0x154),_0xd8015e[_0xd8015e[_0x49b0d1(0x1de)]=0x3]=_0x49b0d1(0x1de),_0xd8015e[_0xd8015e[_0x49b0d1(0x139)]=0x4]=_0x49b0d1(0x139),_0xd8015e[_0xd8015e[_0x49b0d1(0x45d)]=0x5]='UNAUTHENTICATED',_0xd8015e[_0xd8015e[_0x49b0d1(0x114)]=0x6]=_0x49b0d1(0x114),_0xd8015e[_0xd8015e[_0x49b0d1(0x309)]=0x7]='INVALID_ARGUMENT',_0xd8015e[_0xd8015e[_0x49b0d1(0x30e)]=0x8]=_0x49b0d1(0x30e),_0xd8015e[_0xd8015e[_0x49b0d1(0x3c5)]=0x9]='COMPLETION_FINISHED',_0xd8015e[_0xd8015e['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0xd8015e[_0xd8015e[_0x49b0d1(0x164)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xd8015e[_0xd8015e[_0x49b0d1(0x344)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xd8015e[_0xd8015e[_0x49b0d1(0x40b)]=0x1b59]='APPLY_REJECT',_0xd8015e[_0xd8015e[_0x49b0d1(0x185)]=0x1b5a]=_0x49b0d1(0x185),_0xd8015e[_0xd8015e['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x49b0d1(0x40e),_0xd8015e[_0xd8015e[_0x49b0d1(0x186)]=0x1b5c]=_0x49b0d1(0x186),_0xd8015e[_0xd8015e[_0x49b0d1(0x486)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xd8015e[_0xd8015e[_0x49b0d1(0x31a)]=0x2329]=_0x49b0d1(0x31a),_0xd8015e[_0xd8015e[_0x49b0d1(0x2a5)]=0x232a]=_0x49b0d1(0x2a5),_0xd8015e[_0xd8015e[_0x49b0d1(0x355)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xd8015e[_0xd8015e[_0x49b0d1(0x25e)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xd8015e[_0xd8015e['LICENSE_DISTRO_REJECTED']=0x232d]=_0x49b0d1(0x1d7),_0xd8015e[_0xd8015e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x49b0d1(0x266),_0xd8015e[_0xd8015e[_0x49b0d1(0x220)]=0x2712]=_0x49b0d1(0x220),_0xd8015e[_0xd8015e['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0xd8015e[_0xd8015e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xd8015e[_0xd8015e[_0x49b0d1(0x328)]=-0x1]='UNRECOGNIZED',_0xd8015e))(It||{}),$=(_0x4c546d=>(_0x4c546d[_0x4c546d[_0x49b0d1(0x203)]=0x0]=_0x49b0d1(0x203),_0x4c546d[_0x4c546d[_0x49b0d1(0x215)]=0x1]='UNIVER_DOC',_0x4c546d[_0x4c546d[_0x49b0d1(0x125)]=0x2]=_0x49b0d1(0x125),_0x4c546d[_0x4c546d[_0x49b0d1(0x1e7)]=0x3]=_0x49b0d1(0x1e7),_0x4c546d[_0x4c546d['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x4c546d[_0x4c546d[_0x49b0d1(0x328)]=-0x1]='UNRECOGNIZED',_0x4c546d))($||{}),b=(_0x31dbc6=>(_0x31dbc6[_0x31dbc6[_0x49b0d1(0x36e)]=0x0]=_0x49b0d1(0x36e),_0x31dbc6[_0x31dbc6['HELLO']=0x1]=_0x49b0d1(0x412),_0x31dbc6[_0x31dbc6[_0x49b0d1(0x4ee)]=0x2]='JOIN',_0x31dbc6[_0x31dbc6[_0x49b0d1(0x1ed)]=0x3]='LEAVE',_0x31dbc6[_0x31dbc6['INGEST']=0x4]=_0x49b0d1(0x3ca),_0x31dbc6[_0x31dbc6[_0x49b0d1(0x4eb)]=0x5]='HEARTBEAT',_0x31dbc6[_0x31dbc6[_0x49b0d1(0xee)]=0x6]=_0x49b0d1(0xee),_0x31dbc6[_0x31dbc6[_0x49b0d1(0x328)]=-0x1]=_0x49b0d1(0x328),_0x31dbc6))(b||{}),We=(_0x373fbf=>(_0x373fbf[_0x373fbf['UNKNOWN_CODE']=0x0]=_0x49b0d1(0x252),_0x373fbf[_0x373fbf['OK']=0x1]='OK',_0x373fbf[_0x373fbf['FAIL']=0x2]='FAIL',_0x373fbf[_0x373fbf[_0x49b0d1(0x328)]=-0x1]=_0x49b0d1(0x328),_0x373fbf))(We||{}),pt=(_0x56e4a2=>(_0x56e4a2[_0x56e4a2['Undefined']=0x0]=_0x49b0d1(0x294),_0x56e4a2[_0x56e4a2[_0x49b0d1(0x14a)]=0x1]=_0x49b0d1(0x14a),_0x56e4a2[_0x56e4a2[_0x49b0d1(0x367)]=0x2]=_0x49b0d1(0x367),_0x56e4a2[_0x56e4a2[_0x49b0d1(0x1e3)]=0x3]=_0x49b0d1(0x1e3),_0x56e4a2[_0x56e4a2[_0x49b0d1(0x1bc)]=0x4]='UnitSnapshot',_0x56e4a2[_0x56e4a2[_0x49b0d1(0x328)]=-0x1]=_0x49b0d1(0x328),_0x56e4a2))(pt||{});const L=_0x49b0d1(0x1ab),ts={};function Ct(_0x49126e){const _0x3389dd=_0x49b0d1;var _0x800aa5,_0x245236,_0x5d5f56,_0x3c7cbb;const _0x2bc33b=_0x49126e['data'],_0x43fea9=JSON['parse'](_0x2bc33b);switch(_0x43fea9[_0x3389dd(0x1c3)]){case b['HEARTBEAT']:case b[_0x3389dd(0x412)]:{const _0x521c3b=_0x43fea9[_0x3389dd(0x2a0)];return{..._0x43fea9,'data':_0x521c3b,'cmd':_0x43fea9[_0x3389dd(0x1c3)]};}case b[_0x3389dd(0x4ee)]:{const _0x296296=_0x43fea9['joinRsp'];return{..._0x43fea9,'data':_0x296296,'cmd':_0x43fea9['cmd']};}case b[_0x3389dd(0xee)]:{const _0x217adb=_0x43fea9['collaMsg'];switch(_0x217adb['eventID']){case _['CollaborationEvent'][_0x3389dd(0x193)]:return{..._0x43fea9,'data':{..._0x217adb,'data':(_0x800aa5=_0x217adb[_0x3389dd(0x4c8)])==null?void 0x0:_0x800aa5['cs']},'cmd':_0x43fea9['cmd']};case _[_0x3389dd(0x254)]['CHANGESET_ACK']:return{..._0x43fea9,'data':{..._0x217adb,'data':(_0x245236=_0x217adb[_0x3389dd(0x133)])==null?void 0x0:_0x245236['cs']},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _[_0x3389dd(0x254)][_0x3389dd(0x4c0)]:return{..._0x43fea9,'data':{..._0x217adb,'data':(_0x5d5f56=_0x217adb[_0x3389dd(0x383)])==null?void 0x0:_0x5d5f56['cs']},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _[_0x3389dd(0x254)]['CHANGESET_REJ']:return{..._0x43fea9,'data':{..._0x217adb,'data':(_0x3c7cbb=_0x217adb[_0x3389dd(0x44f)])==null?void 0x0:_0x3c7cbb['cs']},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _[_0x3389dd(0x254)][_0x3389dd(0x13c)]:return{..._0x43fea9,'data':{..._0x217adb,'data':_0x217adb['updateCursorEvent']},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _['CollaborationEvent'][_0x3389dd(0xfb)]:return{..._0x43fea9,'data':{..._0x217adb,'data':_0x217adb[_0x3389dd(0x3cd)]},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _[_0x3389dd(0x254)][_0x3389dd(0x409)]:return{..._0x43fea9,'data':{..._0x217adb,'data':_0x217adb['leaveEvent']},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _[_0x3389dd(0x254)][_0x3389dd(0x2aa)]:return{..._0x43fea9,'data':{..._0x217adb,'data':_0x217adb[_0x3389dd(0x497)]},'cmd':_0x43fea9['cmd']};case _[_0x3389dd(0x254)][_0x3389dd(0x175)]:case _[_0x3389dd(0x254)]['LIVESHARE_OPERATION']:return{..._0x43fea9,'data':{..._0x217adb,'data':_0x217adb[_0x3389dd(0x12b)]},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _['CollaborationEvent'][_0x3389dd(0x27b)]:return{..._0x43fea9,'data':{..._0x217adb,'data':_0x217adb[_0x3389dd(0x497)]},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _['CollaborationEvent'][_0x3389dd(0x1fb)]:return{..._0x43fea9,'data':_0x217adb,'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _[_0x3389dd(0x254)]['COMMENT_UPDATE']:return{..._0x43fea9,'data':{..._0x217adb,'data':_0x217adb['commentUpdateEvent']},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _[_0x3389dd(0x254)][_0x3389dd(0x173)]:return{..._0x43fea9,'data':{..._0x217adb,'data':_0x217adb['updatePermissionObjEvent']},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};case _[_0x3389dd(0x254)][_0x3389dd(0x467)]:return{..._0x43fea9,'data':{..._0x217adb,'data':_0x217adb['shouldCloseConn']},'cmd':_0x43fea9[_0x3389dd(0x1c3)]};default:return _0x43fea9;}}default:return _0x43fea9;}}function Et(_0xed808c){const _0x1afcd9=_0x49b0d1;switch(_0xed808c[_0x1afcd9(0x1c3)]){case b[_0x1afcd9(0x4eb)]:case b['HELLO']:return JSON[_0x1afcd9(0x4df)]({'cmd':_0xed808c[_0x1afcd9(0x1c3)],'routeKey':_0xed808c[_0x1afcd9(0x394)]});case b[_0x1afcd9(0x3ca)]:{let _0xd1faf4;switch(_0xed808c['data'][_0x1afcd9(0x2b3)]){case _['CollaborationEvent']['UPDATE_CURSOR']:{_0xd1faf4={'eventID':_[_0x1afcd9(0x254)][_0x1afcd9(0x13c)],'updateCursorEvent':_0xed808c[_0x1afcd9(0x165)][_0x1afcd9(0x165)]};break;}case _[_0x1afcd9(0x254)][_0x1afcd9(0x409)]:{_0xd1faf4={'eventID':_['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0xed808c[_0x1afcd9(0x165)][_0x1afcd9(0x165)]};break;}case _[_0x1afcd9(0x254)][_0x1afcd9(0xfb)]:{_0xd1faf4={'eventID':_[_0x1afcd9(0x254)][_0x1afcd9(0xfb)],'joinEvent':_0xed808c[_0x1afcd9(0x165)][_0x1afcd9(0x165)]};break;}case _[_0x1afcd9(0x254)]['LIVESHARE_NEW_HOST']:{_0xd1faf4={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0xed808c[_0x1afcd9(0x165)][_0x1afcd9(0x165)]};break;}case _[_0x1afcd9(0x254)]['LIVESHARE_OPERATION']:{_0xd1faf4={'eventID':_[_0x1afcd9(0x254)][_0x1afcd9(0x2da)],'liveShareOperation':_0xed808c[_0x1afcd9(0x165)]['data']};break;}case _['CollaborationEvent'][_0x1afcd9(0x27b)]:{_0xd1faf4={'eventID':_['CollaborationEvent'][_0x1afcd9(0x27b)],'liveShareTerminate':_0xed808c[_0x1afcd9(0x165)]['data']};break;}case _[_0x1afcd9(0x254)][_0x1afcd9(0x390)]:{_0xd1faf4={'eventID':_['CollaborationEvent'][_0x1afcd9(0x390)],'liveShareRequestHost':_0xed808c['data'][_0x1afcd9(0x165)]};break;}case _[_0x1afcd9(0x254)][_0x1afcd9(0x175)]:{_0xd1faf4={'eventID':_[_0x1afcd9(0x254)][_0x1afcd9(0x175)]};break;}default:_0xd1faf4={'eventID':_0xed808c[_0x1afcd9(0x165)][_0x1afcd9(0x2b3)]};}return JSON[_0x1afcd9(0x4df)]({'cmd':_0xed808c[_0x1afcd9(0x1c3)],'routeKey':_0xed808c[_0x1afcd9(0x394)],'collaMsg':_0xd1faf4});}case b[_0x1afcd9(0x4ee)]:return JSON['stringify']({'cmd':_0xed808c[_0x1afcd9(0x1c3)],'routeKey':_0xed808c[_0x1afcd9(0x394)],'joinReq':_0xed808c['data']});case b[_0x1afcd9(0x1ed)]:return JSON[_0x1afcd9(0x4df)]({'cmd':_0xed808c[_0x1afcd9(0x1c3)],'routeKey':_0xed808c['routeKey'],'leaveReq':_0xed808c[_0x1afcd9(0x165)]});default:throw new Error(_0x1afcd9(0x404));}}var ss=Object[_0x49b0d1(0x37d)],is=Object['getOwnPropertyDescriptor'],ns=(_0x59c25e,_0xee5727,_0x416cef,_0x14dae6)=>{const _0x382d32=_0x49b0d1;for(var _0x41d4ce=_0x14dae6>0x1?void 0x0:_0x14dae6?is(_0xee5727,_0x416cef):_0xee5727,_0x199554=_0x59c25e[_0x382d32(0x429)]-0x1,_0x4fd5af;_0x199554>=0x0;_0x199554--)(_0x4fd5af=_0x59c25e[_0x199554])&&(_0x41d4ce=(_0x14dae6?_0x4fd5af(_0xee5727,_0x416cef,_0x41d4ce):_0x4fd5af(_0x41d4ce))||_0x41d4ce);return _0x14dae6&&_0x41d4ce&&ss(_0xee5727,_0x416cef,_0x41d4ce),_0x41d4ce;},oe=(_0x5eed91,_0xc8e69d)=>(_0x31d40c,_0x50c001)=>_0xc8e69d(_0x31d40c,_0x50c001,_0x5eed91);const Fe=a[_0x49b0d1(0x138)](_0x49b0d1(0x182));function rs(_0x12d353,_0x2db04c,_0x3dc219){const _0x23e78d=_0x49b0d1;return _0x12d353+'/'+_0x2db04c+_0x23e78d(0x24d)+_0x3dc219+_0x23e78d(0x18c);}exports['CollaborationSocketService']=class extends a['Disposable']{constructor(_0x42b2ec,_0x225221,_0x563966,_0x38982e,_0x2b89d1){const _0x263199=_0x49b0d1;super(),this[_0x263199(0x3a4)]=_0x42b2ec,this['_ws']=_0x225221,this[_0x263199(0x1f4)]=_0x563966,this[_0x263199(0x200)]=_0x38982e,this['_snapshotServerService']=_0x2b89d1;}[_0x49b0d1(0x1d4)](_0x540f3c){const _0x1c8186=_0x49b0d1,_0x59f1fa=this[_0x1c8186(0x49f)][_0x1c8186(0x1d4)](_0x540f3c);if(!_0x59f1fa)throw new Error(_0x1c8186(0x137));const _0x16bad9=new a[(_0x1c8186(0x13b))](),_0x7b9317=new v[(_0x1c8186(0x268))]();_0x16bad9[_0x1c8186(0x3a6)](_0x59f1fa[_0x1c8186(0x3b2)][_0x1c8186(0x4ba)](_0x2a5bba=>_0x7b9317[_0x1c8186(0x329)](_0x2a5bba))),_0x16bad9[_0x1c8186(0x3a6)](a[_0x1c8186(0x41b)](()=>_0x7b9317[_0x1c8186(0x465)]()));const _0x2aa793=new v['Subject']();_0x16bad9[_0x1c8186(0x3a6)](_0x59f1fa[_0x1c8186(0x1c8)][_0x1c8186(0x4ba)](_0x159fb6=>_0x2aa793[_0x1c8186(0x329)](_0x159fb6))),_0x16bad9[_0x1c8186(0x3a6)](a[_0x1c8186(0x41b)](()=>_0x2aa793['complete']()));const _0xde9379=new v[(_0x1c8186(0x268))]();_0x16bad9[_0x1c8186(0x3a6)](_0x59f1fa[_0x1c8186(0x35d)][_0x1c8186(0x4ba)](_0x5a4afd=>{const _0x2d569a=_0x1c8186,_0x49c7f7=Ct(_0x5a4afd);_0xde9379[_0x2d569a(0x329)](_0x49c7f7);})),_0x16bad9[_0x1c8186(0x3a6)](a['toDisposable'](()=>_0xde9379[_0x1c8186(0x465)]()));let _0x4514d2;const _0x703be6=()=>{const _0x16fc4b=_0x1c8186;_0x2aa793[_0x16fc4b(0x329)](new Event('connection\x20error')),_0x7b9317[_0x16fc4b(0x329)](new CloseEvent(_0x16fc4b(0x2c6))),_0x4514d2[_0x16fc4b(0x438)]();};return _0x4514d2={'memberID':'','close$':_0x7b9317[_0x1c8186(0x42a)](),'error$':_0x2aa793[_0x1c8186(0x42a)](),'open$':_0x59f1fa[_0x1c8186(0x4cd)],'message$':_0xde9379[_0x1c8186(0x42a)](),'send':_0x293516=>{const _0x3d3476=_0x1c8186;if(_0x293516[_0x3d3476(0x1c3)]===b['INGEST']){if(_0x293516[_0x3d3476(0x165)][_0x3d3476(0x2b3)]===_[_0x3d3476(0x254)][_0x3d3476(0xf5)]){this[_0x3d3476(0x146)](_0x4514d2,_0x293516['data'])[_0x3d3476(0x46a)](_0x2fba41=>{const _0x2790e4=_0x3d3476;this['_logService'][_0x2790e4(0x433)](_0x2fba41),_0x703be6();});return;}if(_0x293516['data']['eventID']===_['CollaborationEvent'][_0x3d3476(0x316)]){const _0x128d1f=_0x293516[_0x3d3476(0x165)];this[_0x3d3476(0x2f8)](_0x128d1f)[_0x3d3476(0x49b)](_0x376c76=>{const _0x5d41f0=_0x3d3476;_0xde9379['next']({'cmd':b[_0x5d41f0(0xee)],'code':We['OK'],'routeKey':_0x128d1f['data'][_0x5d41f0(0x4d1)],'routeType':'','data':{'eventID':_[_0x5d41f0(0x254)][_0x5d41f0(0x190)],'data':{'changesets':_0x376c76}}});})['catch'](_0x39e9ad=>{const _0x169a8e=_0x3d3476;this[_0x169a8e(0x200)]['error'](_0x39e9ad),_0x703be6();});return;}}_0x59f1fa[_0x3d3476(0x366)](Et(_0x293516));},'close':()=>{const _0x4e2644=_0x1c8186;_0x59f1fa[_0x4e2644(0x438)](),_0x16bad9[_0x4e2644(0x4b7)]();}},_0x4514d2;}async[_0x49b0d1(0x146)](_0xe25e68,_0x14ebef){const _0x21df2b=_0x49b0d1;var _0x4c81cd,_0x4f0cfc;const {unitType:_0x22e03d,unitID:_0x40d556,changeset:_0x1a6546}=_0x14ebef['data'],_0x58a779={'unitID':_0x40d556,'memberID':_0xe25e68[_0x21df2b(0x1ff)],'type':_0x22e03d,'changeset':_[_0x21df2b(0xe9)](_0x1a6546)},_0x44a812=this[_0x21df2b(0x1f4)]['getConfig'](gt),_0x36500a=this[_0x21df2b(0x1f4)]['getConfig'](L),_0x42636d=rs((_0x4f0cfc=(_0x4c81cd=_0x36500a==null?void 0x0:_0x36500a[_0x21df2b(0x246)])!=null?_0x4c81cd:_0x44a812)!=null?_0x4f0cfc:Qt,_0x22e03d,_0x40d556);try{await this[_0x21df2b(0x3a4)][_0x21df2b(0x140)](_0x42636d,{'body':_0x58a779});}catch(_0x2aab5a){throw this[_0x21df2b(0x200)][_0x21df2b(0x433)](_0x21df2b(0x21a),_0x21df2b(0x1ee)),_0x2aab5a;}}async[_0x49b0d1(0x2f8)](_0xce79bc){const _0x505e54=_0x49b0d1,{unitID:_0x90a807,from:_0x27eb2e,to:_0x57e56b,unitType:_0x16e4d8}=_0xce79bc['data'];return(await this[_0x505e54(0x399)][_0x505e54(0x196)]({'metadata':void 0x0},{'unitID':_0x90a807,'type':_0x16e4d8,'from':_0x27eb2e,'to':_0x57e56b}))[_0x505e54(0x3f4)];}},exports[_0x49b0d1(0x315)]=ns([oe(0x0,a[_0x49b0d1(0x257)](P[_0x49b0d1(0x3e2)])),oe(0x1,a[_0x49b0d1(0x257)](P['WebSocketService'])),oe(0x2,a[_0x49b0d1(0x2b8)]),oe(0x3,a[_0x49b0d1(0x4fd)]),oe(0x4,_[_0x49b0d1(0xf2)])],exports[_0x49b0d1(0x315)]);const os=_0x49b0d1(0x1b8);function as(_0x3c48ea){const _0x10040c=_0x49b0d1;return JSON[_0x10040c(0x4df)](_0x3c48ea)[_0x10040c(0x429)];}class Ge{constructor(){const _0x46a340=_0x49b0d1;d(this,_0x46a340(0x282),new v[(_0x46a340(0x268))]()),d(this,_0x46a340(0x485),this[_0x46a340(0x282)][_0x46a340(0x42a)]());}[_0x49b0d1(0x26c)](_0x2e8f88){const _0x30927e=_0x49b0d1;this['_commentUpdate$'][_0x30927e(0x329)](_0x2e8f88);}}var cs=Object['defineProperty'],ls=Object[_0x49b0d1(0x26e)],hs=(_0x161209,_0x36ecf2,_0x6d50a8,_0x220014)=>{for(var _0x526420=_0x220014>0x1?void 0x0:_0x220014?ls(_0x36ecf2,_0x6d50a8):_0x36ecf2,_0x2766a4=_0x161209['length']-0x1,_0x32862e;_0x2766a4>=0x0;_0x2766a4--)(_0x32862e=_0x161209[_0x2766a4])&&(_0x526420=(_0x220014?_0x32862e(_0x36ecf2,_0x6d50a8,_0x526420):_0x32862e(_0x526420))||_0x526420);return _0x220014&&_0x526420&&cs(_0x36ecf2,_0x6d50a8,_0x526420),_0x526420;},Ze=(_0x3904f3,_0x31095f)=>(_0x496ec4,_0x3f4aba)=>_0x31095f(_0x496ec4,_0x3f4aba,_0x3904f3);let q=class extends a[_0x49b0d1(0x3a5)]{constructor(_0x5f46dc,_0x2fb7a3){const _0x9e19bb=_0x49b0d1;super(),d(this,_0x9e19bb(0x377),new Map()),(this['_univerInstanceService']=_0x5f46dc,this[_0x9e19bb(0x469)]=_0x2fb7a3,this[_0x9e19bb(0x357)](a[_0x9e19bb(0x41b)](v['merge'](this[_0x9e19bb(0x3e4)][_0x9e19bb(0x36b)](a['UniverInstanceType'][_0x9e19bb(0x125)])[_0x9e19bb(0x110)](E[_0x9e19bb(0xf1)](_0x3d9394=>_0x3d9394[_0x9e19bb(0x234)]())),this[_0x9e19bb(0x3e4)][_0x9e19bb(0x36b)](a[_0x9e19bb(0x199)]['UNIVER_DOC'])[_0x9e19bb(0x110)](E['map'](_0x1e4622=>_0x1e4622[_0x9e19bb(0x234)]())),this[_0x9e19bb(0x3e4)][_0x9e19bb(0x36b)](a[_0x9e19bb(0x199)][_0x9e19bb(0x1e7)])[_0x9e19bb(0x110)](E['map'](_0x587259=>_0x587259[_0x9e19bb(0x234)]())))[_0x9e19bb(0x4ba)](_0x4bcb39=>this['_removeRoom'](_0x4bcb39)))));}['setCurrentUser'](_0x598ab4){const _0x5ea10a=_0x49b0d1;this[_0x5ea10a(0x469)][_0x5ea10a(0x245)](_0x598ab4);}[_0x49b0d1(0x17e)](){const _0x3b6aec=_0x49b0d1;return this[_0x3b6aec(0x469)][_0x3b6aec(0x17e)]();}[_0x49b0d1(0x41e)](_0x4b0381,_0x38db7e){const _0x2f0a99=_0x49b0d1;let _0xc02444=this['_roomMembers']['get'](_0x4b0381);_0xc02444||(_0xc02444=new _s(),this[_0x2f0a99(0x377)][_0x2f0a99(0xf0)](_0x4b0381,_0xc02444)),_0xc02444[_0x2f0a99(0x41e)](_0x38db7e);}[_0x49b0d1(0x183)](_0x4e0c50,_0xb37c27){const _0x34aeed=_0x49b0d1,_0x1809be=this[_0x34aeed(0x377)][_0x34aeed(0x10a)](_0x4e0c50);_0x1809be&&_0x1809be[_0x34aeed(0x183)](_0xb37c27);}['getRoom'](_0xa8c5d7){const _0x384639=_0x49b0d1;return this[_0x384639(0x377)]['get'](_0xa8c5d7);}[_0x49b0d1(0x39d)](_0x4b051d,_0x7b5ec4){const _0x42ffb7=_0x49b0d1,_0x5237e5=this[_0x42ffb7(0x377)][_0x42ffb7(0x10a)](_0x4b051d);if(_0x5237e5)return _0x5237e5['getMember'](_0x7b5ec4);}[_0x49b0d1(0x240)](_0x420784){const _0x58db69=_0x49b0d1,_0x343af6=this[_0x58db69(0x377)][_0x58db69(0x10a)](_0x420784);_0x343af6&&(_0x343af6[_0x58db69(0x4b7)](),this[_0x58db69(0x377)][_0x58db69(0x225)](_0x420784));}[_0x49b0d1(0x4b7)](){const _0xcbf101=_0x49b0d1;this['_roomMembers'][_0xcbf101(0x287)](_0x34458d=>_0x34458d[_0xcbf101(0x4b7)]()),this['_roomMembers'][_0xcbf101(0x27d)]();}};q=hs([Ze(0x0,a[_0x49b0d1(0xe5)]),Ze(0x1,a['Inject'](a[_0x49b0d1(0x3b9)]))],q);class _s extends a[_0x49b0d1(0x3a5)]{constructor(){const _0x5ba75b=_0x49b0d1;super(...arguments),d(this,_0x5ba75b(0x4e4),new Map());}[_0x49b0d1(0x4b7)](){const _0x3d4f11=_0x49b0d1;this['_members'][_0x3d4f11(0x27d)]();}['updateMember'](_0x415c4e){const _0x444049=_0x49b0d1;this[_0x444049(0x4e4)][_0x444049(0xf0)](_0x415c4e[_0x444049(0x1ff)],_0x415c4e);}['removeMember'](_0x1af60c){const _0x123d66=_0x49b0d1;this[_0x123d66(0x4e4)][_0x123d66(0x225)](_0x1af60c);}[_0x49b0d1(0x39d)](_0x1b299a){const _0x4d1404=_0x49b0d1;return this['_members'][_0x4d1404(0x10a)](_0x1b299a);}}var us=Object[_0x49b0d1(0x37d)],ds=Object[_0x49b0d1(0x26e)],Ss=(_0x1cdde6,_0x3ea60f,_0x5bb2d9,_0x332b42)=>{const _0x5e23f1=_0x49b0d1;for(var _0x59e67d=_0x332b42>0x1?void 0x0:_0x332b42?ds(_0x3ea60f,_0x5bb2d9):_0x3ea60f,_0x348eca=_0x1cdde6[_0x5e23f1(0x429)]-0x1,_0xdc8aa9;_0x348eca>=0x0;_0x348eca--)(_0xdc8aa9=_0x1cdde6[_0x348eca])&&(_0x59e67d=(_0x332b42?_0xdc8aa9(_0x3ea60f,_0x5bb2d9,_0x59e67d):_0xdc8aa9(_0x59e67d))||_0x59e67d);return _0x332b42&&_0x59e67d&&us(_0x3ea60f,_0x5bb2d9,_0x59e67d),_0x59e67d;},B=(_0x145e9c,_0x2f24c8)=>(_0x449d02,_0x1a75b9)=>_0x2f24c8(_0x449d02,_0x1a75b9,_0x145e9c),j=(_0x2738c9=>(_0x2738c9[_0x2738c9[_0x49b0d1(0x332)]=0x0]=_0x49b0d1(0x332),_0x2738c9[_0x2738c9['JOINING']=0x1]=_0x49b0d1(0x466),_0x2738c9[_0x2738c9[_0x49b0d1(0xe6)]=0x2]=_0x49b0d1(0xe6),_0x2738c9[_0x2738c9[_0x49b0d1(0x431)]=0x3]=_0x49b0d1(0x431),_0x2738c9))(j||{});exports[_0x49b0d1(0x159)]=class extends a[_0x49b0d1(0x3b6)]{constructor(_0x3b7933,_0x111734,_0x5b957d,_0x49586a,_0x541a72,_0x4b0fec,_0x4c5b79,_0x2b1e19,_0x17c242,_0x517b87){const _0x2852c7=_0x49b0d1;super(),d(this,_0x2852c7(0x32b),new v[(_0x2852c7(0x17f))](0x0)),d(this,'sessionStatus$',this['_sessionStatus$'][_0x2852c7(0x42a)]()),d(this,_0x2852c7(0x4d5),new v[(_0x2852c7(0x268))]()),d(this,_0x2852c7(0x272),this[_0x2852c7(0x4d5)]['asObservable']()),d(this,_0x2852c7(0x34b)),d(this,_0x2852c7(0x28f)),d(this,_0x2852c7(0x3d5)),d(this,_0x2852c7(0x1c4),!0x1),d(this,_0x2852c7(0x21f),null),(this[_0x2852c7(0x29f)]=_0x3b7933,this[_0x2852c7(0x200)]=_0x5b957d,this[_0x2852c7(0x3c1)]=_0x49586a,this['_messageService']=_0x541a72,this['_configService']=_0x4b0fec,this[_0x2852c7(0x29e)]=_0x4c5b79,this['_memberService']=_0x2b1e19,this[_0x2852c7(0x46f)]=_0x17c242,this['_telemetryService']=_0x517b87,this[_0x2852c7(0x1c4)]=!!this['_telemetryService'],_0x111734[_0x2852c7(0x110)](v['takeUntil'](this['dispose$']))[_0x2852c7(0x4ba)](_0x342f75=>{const _0x46df6f=_0x2852c7;var _0x4f0485;typeof _0x342f75>'u'||(this[_0x46df6f(0x34b)]=_0x342f75,_0x342f75?(this[_0x46df6f(0x476)](_0x342f75),this[_0x46df6f(0x28f)]=_0x342f75[_0x46df6f(0x35d)]['subscribe'](_0x11ee05=>{const _0x552e5d=_0x46df6f;_0x11ee05[_0x552e5d(0x394)]===this[_0x552e5d(0x29f)]&&this[_0x552e5d(0x3e7)](_0x11ee05);})):(this[_0x46df6f(0x1dd)](),this[_0x46df6f(0x32b)][_0x46df6f(0x329)](0x2),(_0x4f0485=this[_0x46df6f(0x28f)])==null||_0x4f0485['unsubscribe'](),this[_0x46df6f(0x28f)]=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x2852c7(0x393)](()=>{const _0x1f58b8=_0x2852c7;var _0x52fdea;(_0x52fdea=this[_0x1f58b8(0x34b)])==null||_0x52fdea[_0x1f58b8(0x366)]({'cmd':b[_0x1f58b8(0x1ed)],'data':{'roomID':this[_0x1f58b8(0x29f)]}});})));}get[_0x49b0d1(0x39e)](){const _0x2d577a=_0x49b0d1;return this[_0x2d577a(0x32b)][_0x2d577a(0x306)]();}[_0x49b0d1(0x24b)](){const _0x55a2c5=_0x49b0d1;var _0x5b8988,_0x3e570e;return(_0x3e570e=(_0x5b8988=this[_0x55a2c5(0x34b)])==null?void 0x0:_0x5b8988['memberID'])!=null?_0x3e570e:null;}['dispose'](){const _0x43d038=_0x49b0d1;super['dispose'](),this[_0x43d038(0xde)][_0x43d038(0x329)](),this[_0x43d038(0xde)][_0x43d038(0x465)]();}[_0x49b0d1(0x438)](){const _0x139bfc=_0x49b0d1;var _0x2abc84,_0x49fa3b;this['_throwTelemetryCollaborationNewChangeset'](),(_0x2abc84=this[_0x139bfc(0x34b)])==null||_0x2abc84[_0x139bfc(0x366)]({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x49fa3b=this[_0x139bfc(0x34b)])==null||_0x49fa3b['close'](),this[_0x139bfc(0x4d5)][_0x139bfc(0x465)](),this[_0x139bfc(0x32b)][_0x139bfc(0x465)](),this[_0x139bfc(0x4b7)]();}[_0x49b0d1(0x3e7)](_0x13de41){const _0x13abb3=_0x49b0d1;_0x13de41[_0x13abb3(0x1c3)]===b[_0x13abb3(0x4ee)]?this[_0x13abb3(0x2cc)](_0x13de41):_0x13de41['cmd']===b['RECV']&&this[_0x13abb3(0x2f3)](_0x13de41);}[_0x49b0d1(0x476)](_0x5159a9){const _0x407f5b=_0x49b0d1;this['_sessionStatus$'][_0x407f5b(0x329)](0x1),_0x5159a9['send']({'cmd':b[_0x407f5b(0x4ee)],'routeKey':this[_0x407f5b(0x29f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x407f5b(0x29f)]}]}});}[_0x49b0d1(0x2cc)](_0x2eb2b4){const _0x36e956=_0x49b0d1;var _0x854fbb;if(_0x2eb2b4[_0x36e956(0x1f5)]===We[_0x36e956(0x149)]){this[_0x36e956(0x1a7)][_0x36e956(0x4d7)]({'type':X[_0x36e956(0x248)]['Warning'],'content':this[_0x36e956(0x29e)]['t'](_0x36e956(0x15d))}),this[_0x36e956(0x32b)][_0x36e956(0x329)](0x2);return;}this[_0x36e956(0x32b)][_0x36e956(0x329)](0x3);const _0x328c18=(_0x854fbb=_0x2eb2b4['data'][_0x36e956(0x2c0)][this[_0x36e956(0x29f)]])==null?void 0x0:_0x854fbb[_0x36e956(0x281)];_0x328c18&&_0x328c18['forEach'](_0x3adb16=>this[_0x36e956(0x271)][_0x36e956(0x41e)](this[_0x36e956(0x29f)],_0x3adb16));}[_0x49b0d1(0x2f3)](_0x25f032){const _0x3e44f4=_0x49b0d1;try{const _0x30c4b9=_0x25f032[_0x3e44f4(0x165)];switch(_0x30c4b9[_0x3e44f4(0x2b3)]){case _['CollaborationEvent'][_0x3e44f4(0xfb)]:this['_onUserJoin'](_0x30c4b9),this[_0x3e44f4(0x4d5)][_0x3e44f4(0x329)](_0x30c4b9);break;case _['CollaborationEvent'][_0x3e44f4(0x409)]:this['_onUserLeave'](_0x30c4b9),this['_event$'][_0x3e44f4(0x329)](_0x30c4b9);break;case _[_0x3e44f4(0x254)][_0x3e44f4(0x1a9)]:this[_0x3e44f4(0x2a1)](),this['_clearCollaborationTimeoutTimer'](),this[_0x3e44f4(0x4d5)][_0x3e44f4(0x329)](_0x30c4b9);break;case _['CollaborationEvent'][_0x3e44f4(0x1fb)]:this[_0x3e44f4(0x200)][_0x3e44f4(0x433)](_0x3e44f4(0x4f4)+JSON[_0x3e44f4(0x4df)](_0x30c4b9)),this[_0x3e44f4(0x4d5)][_0x3e44f4(0x329)](_0x30c4b9);break;case _[_0x3e44f4(0x254)][_0x3e44f4(0x166)]:this[_0x3e44f4(0x46f)][_0x3e44f4(0x26c)](_0x30c4b9[_0x3e44f4(0x165)]),this[_0x3e44f4(0x4d5)][_0x3e44f4(0x329)](_0x30c4b9);break;default:this['_event$'][_0x3e44f4(0x329)](_0x30c4b9);}}catch(_0x14ece9){this[_0x3e44f4(0x200)][_0x3e44f4(0x433)](_0x14ece9,_0x25f032);}}['_onUserJoin'](_0x14c795){const _0x1ff124=_0x49b0d1;this[_0x1ff124(0x271)]['updateMember'](this['_unitID'],_0x14c795[_0x1ff124(0x165)]);}[_0x49b0d1(0x169)](_0x2f1c71){const _0xd35811=_0x49b0d1;this[_0xd35811(0x271)][_0xd35811(0x183)](this[_0xd35811(0x29f)],_0x2f1c71[_0xd35811(0x165)][_0xd35811(0x1ff)]);}async['send'](_0xb7ddde,_0x48a48e){const _0x1a63a7=_0x49b0d1;if(this[_0x1a63a7(0x39e)]!==0x3||!this['_socket'])throw new Error(_0x1a63a7(0x28a));try{_0xb7ddde['eventID']===_[_0x1a63a7(0x254)][_0x1a63a7(0xf5)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0xb7ddde)),this['_socket'][_0x1a63a7(0x366)]({'cmd':b[_0x1a63a7(0x3ca)],'routeKey':_0x48a48e,'routeType':'','data':_0xb7ddde});}catch(_0x54a519){this[_0x1a63a7(0x200)][_0x1a63a7(0x433)](_0x54a519);}}[_0x49b0d1(0x1c1)](){const _0x5a1dc7=_0x49b0d1;var _0xbf37ef;this[_0x5a1dc7(0x3d5)]=window[_0x5a1dc7(0x201)](()=>{const _0x2e18e8=_0x5a1dc7;this[_0x2e18e8(0x3d5)]=null,this[_0x2e18e8(0x1a7)][_0x2e18e8(0x4d7)]({'type':X['MessageType'][_0x2e18e8(0x2cd)],'content':this[_0x2e18e8(0x29e)]['t'](_0x2e18e8(0x242))});},(_0xbf37ef=this[_0x5a1dc7(0x1f4)][_0x5a1dc7(0x20c)](Ve))!=null?_0xbf37ef:St);}[_0x49b0d1(0x11e)](){const _0x376d6b=_0x49b0d1;this[_0x376d6b(0x3d5)]&&(clearTimeout(this[_0x376d6b(0x3d5)]),this[_0x376d6b(0x3d5)]=null);}[_0x49b0d1(0x211)](_0x4e4127){const _0x852a68=_0x49b0d1;if(!this[_0x852a68(0x1c4)])return;const {data:_0x2e069c}=_0x4e4127,{unitID:_0x392b13,changeset:_0x58c383}=_0x2e069c,{mutations:_0x3d7f79,type:_0x3c18c5}=_0x58c383;this[_0x852a68(0x21f)]={'unitId':_0x392b13,'type':_0x3c18c5,'startTime':performance[_0x852a68(0xd8)](),'stopTime':0x0,'duration':0x0,'size':as(_0x3d7f79)};}[_0x49b0d1(0x2a1)](){const _0x1061f2=_0x49b0d1;if(this[_0x1061f2(0x1c4)]){if(!this[_0x1061f2(0x21f)]){this[_0x1061f2(0x200)]['error'](_0x1061f2(0x21a),_0x1061f2(0x16d));return;}this[_0x1061f2(0x21f)]['stopTime']=performance[_0x1061f2(0xd8)](),this[_0x1061f2(0x21f)][_0x1061f2(0x1d5)]=this[_0x1061f2(0x21f)][_0x1061f2(0x4c3)]-this[_0x1061f2(0x21f)]['startTime'],this[_0x1061f2(0x4a9)]['capture'](os,this[_0x1061f2(0x21f)]),this[_0x1061f2(0x21f)]=null;}}[_0x49b0d1(0x1dd)](){this['_telemetryInfo']=null;}},exports['CollaborationSession']=Ss([B(0x2,a['ILogService']),B(0x3,N[_0x49b0d1(0x4fe)]),B(0x4,N['IMessageService']),B(0x5,a['IConfigService']),B(0x6,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x339)])),B(0x7,a[_0x49b0d1(0x257)](q)),B(0x8,a[_0x49b0d1(0x257)](Ge)),B(0x9,a[_0x49b0d1(0x3f8)](Bt[_0x49b0d1(0x2c5)]))],exports['CollaborationSession']);var vs=Object[_0x49b0d1(0x37d)],fs=Object[_0x49b0d1(0x26e)],gs=(_0x5a9fa8,_0x3b5dd8,_0xcf3d2d,_0x535c2b)=>{const _0x36da28=_0x49b0d1;for(var _0x22fe2e=_0x535c2b>0x1?void 0x0:_0x535c2b?fs(_0x3b5dd8,_0xcf3d2d):_0x3b5dd8,_0x2ac6d8=_0x5a9fa8[_0x36da28(0x429)]-0x1,_0x38ff38;_0x2ac6d8>=0x0;_0x2ac6d8--)(_0x38ff38=_0x5a9fa8[_0x2ac6d8])&&(_0x22fe2e=(_0x535c2b?_0x38ff38(_0x3b5dd8,_0xcf3d2d,_0x22fe2e):_0x38ff38(_0x22fe2e))||_0x22fe2e);return _0x535c2b&&_0x22fe2e&&vs(_0x3b5dd8,_0xcf3d2d,_0x22fe2e),_0x22fe2e;},Z=(_0x22d4ff,_0x55b342)=>(_0x408b0e,_0x27063e)=>_0x55b342(_0x408b0e,_0x27063e,_0x22d4ff);exports[_0x49b0d1(0x48f)]=class extends a[_0x49b0d1(0x3a5)]{constructor(_0x523205,_0x1a609f,_0x5ee49d,_0x57ff41,_0x38b844,_0xa448a6){const _0x38a496=_0x49b0d1;super(),d(this,_0x38a496(0x49e),new v[(_0x38a496(0x17f))](void 0x0)),d(this,_0x38a496(0x4c4),this['_socket$']['asObservable']()),d(this,_0x38a496(0x269),null),d(this,_0x38a496(0x39c),new Map()),d(this,_0x38a496(0x162),new v[(_0x38a496(0x17f))](j[_0x38a496(0x332)])),d(this,_0x38a496(0x171),this['_status$'][_0x38a496(0x42a)]()),d(this,_0x38a496(0x1aa),!0x1),d(this,_0x38a496(0x177)),d(this,_0x38a496(0x417),0x0),d(this,_0x38a496(0x18b)),d(this,_0x38a496(0x365)),(this[_0x38a496(0x451)]=_0x523205,this[_0x38a496(0x29e)]=_0x1a609f,this[_0x38a496(0x1a7)]=_0x5ee49d,this[_0x38a496(0x200)]=_0x57ff41,this['_configService']=_0x38b844,this[_0x38a496(0x1b4)]=_0xa448a6,this['_initEventListeners']());}get['_socket'](){const _0x42a4fb=_0x49b0d1;return this[_0x42a4fb(0x49e)][_0x42a4fb(0x306)]();}[_0x49b0d1(0x419)](){const _0x27fe49=_0x49b0d1;this[_0x27fe49(0x35a)](),this[_0x27fe49(0x3a3)]();}[_0x49b0d1(0x4b7)](){const _0x133b1d=_0x49b0d1;super[_0x133b1d(0x4b7)](),this[_0x133b1d(0x39c)]['forEach'](_0x1d0046=>_0x1d0046[_0x133b1d(0x4b7)]()),this['_sessions'][_0x133b1d(0x27d)](),this['_status$'][_0x133b1d(0x465)]();}async[_0x49b0d1(0x1e9)](_0x24460a){const _0x462d9b=_0x49b0d1;if(this[_0x462d9b(0x39c)][_0x462d9b(0x14b)](_0x24460a))return this[_0x462d9b(0x39c)]['get'](_0x24460a);this['_tryEnsureSocket']();const _0x5443d2=this[_0x462d9b(0x451)]['createInstance'](exports[_0x462d9b(0x159)],_0x24460a,this[_0x462d9b(0x49e)][_0x462d9b(0x42a)]());return this['_sessions'][_0x462d9b(0xf0)](_0x24460a,_0x5443d2),_0x5443d2;}[_0x49b0d1(0x2d1)](_0x1b03dc){const _0x1814d9=_0x49b0d1;var _0x3041f6;const _0x52d0cc=this[_0x1814d9(0x39c)]['get'](_0x1b03dc);_0x52d0cc&&(this[_0x1814d9(0x39c)][_0x1814d9(0x225)](_0x1b03dc),_0x52d0cc[_0x1814d9(0x438)]()),this['_sessions']['size']||(_0x3041f6=this['_socket'])==null||_0x3041f6[_0x1814d9(0x438)]();}[_0x49b0d1(0xea)](){const _0x1babe1=_0x49b0d1;this[_0x1babe1(0x417)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x1babe1(0x177)]),this[_0x1babe1(0x177)]=null),this[_0x1babe1(0x3aa)]();}[_0x49b0d1(0x232)](){const _0x2df78a=_0x49b0d1;var _0x4df544,_0x85355d;const _0xa62454=this[_0x2df78a(0x1f4)][_0x2df78a(0x20c)](ut),_0x324ca9=this[_0x2df78a(0x1f4)]['getConfig'](L),_0x1380c4=(_0x85355d=(_0x4df544=_0x324ca9==null?void 0x0:_0x324ca9[_0x2df78a(0x298)])!=null?_0x4df544:_0xa62454)!=null?_0x85355d:Xt,_0x493745=this[_0x2df78a(0x1b4)][_0x2df78a(0x1d4)](_0x1380c4);return this[_0x2df78a(0x269)]=_0x493745,_0x493745;}['_tryEnsureSocket'](){const _0x12d7af=_0x49b0d1;var _0x329d83,_0xd09b2e;try{const _0xb2f44=(_0xd09b2e=(_0x329d83=this[_0x12d7af(0x34b)])!=null?_0x329d83:this['_candidateSocket'])!=null?_0xd09b2e:this[_0x12d7af(0x232)]();if(_0xb2f44){const _0x1ca1b3=_0xb2f44[_0x12d7af(0x366)];_0xb2f44[_0x12d7af(0x366)]=_0x58df64=>(this[_0x12d7af(0x45f)](),_0x1ca1b3['apply'](_0xb2f44,[_0x58df64])),_0xb2f44[_0x12d7af(0x35d)][_0x12d7af(0x4ba)](_0x5991f8=>this[_0x12d7af(0x1db)](_0xb2f44,_0x5991f8)),_0xb2f44[_0x12d7af(0x1c8)][_0x12d7af(0x110)](E['take'](0x1))[_0x12d7af(0x4ba)](_0x5b7052=>this[_0x12d7af(0x200)][_0x12d7af(0x433)]('[CollaborationSessionService]:\x20socket\x20error',_0x5b7052)),_0xb2f44[_0x12d7af(0x4cd)]['pipe'](E[_0x12d7af(0x30a)](0x1))[_0x12d7af(0x4ba)](()=>{const _0x4373b5=_0x12d7af;this[_0x4373b5(0x3db)](_0xb2f44);}),_0xb2f44[_0x12d7af(0x3b2)][_0x12d7af(0x110)](E[_0x12d7af(0x30a)](0x1))[_0x12d7af(0x4ba)](_0x5236cc=>{const _0x3f1d89=_0x12d7af;this[_0x3f1d89(0x200)][_0x3f1d89(0x1c5)]('[CollaborationSessionService]','socket\x20close',_0x5236cc),this[_0x3f1d89(0x3d7)]();});}}catch(_0x224fe4){this['_logService']['error'](_0x224fe4),this['_onConnectionFailed']();}}[_0x49b0d1(0x3db)](_0x297d55){const _0x23d6b5=_0x49b0d1;this[_0x23d6b5(0x200)][_0x23d6b5(0x1c5)](_0x23d6b5(0x358),_0x23d6b5(0xfc)),_0x297d55[_0x23d6b5(0x366)]({'cmd':b[_0x23d6b5(0x412)]}),this[_0x23d6b5(0x45f)]();}[_0x49b0d1(0x35a)](){const _0x4a9d1e=_0x49b0d1;window['addEventListener'](_0x4a9d1e(0x1a5),()=>this[_0x4a9d1e(0xda)]());}[_0x49b0d1(0xda)](){const _0x2026b1=_0x49b0d1;this[_0x2026b1(0x1aa)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x2026b1(0x329)](j['OFFLINE']),this[_0x2026b1(0x49e)][_0x2026b1(0x329)](null),this[_0x2026b1(0x308)](),this[_0x2026b1(0x320)]();}[_0x49b0d1(0x3d7)](){const _0x5ecb62=_0x49b0d1;var _0xf206a7;this[_0x5ecb62(0xda)](),this['_retryCount']<((_0xf206a7=this[_0x5ecb62(0x1f4)][_0x5ecb62(0x20c)](vt))!=null?_0xf206a7:Jt)?(this[_0x5ecb62(0x1a7)]['show']({'key':_0x5ecb62(0x3a7),'type':X[_0x5ecb62(0x248)][_0x5ecb62(0x3ff)],'content':this[_0x5ecb62(0x29e)]['t'](_0x5ecb62(0x1e6))}),this[_0x5ecb62(0x3aa)]()):this['_messageService'][_0x5ecb62(0x4d7)]({'key':_0x5ecb62(0x3a7),'type':X[_0x5ecb62(0x248)]['Error'],'content':this['_localeService']['t'](_0x5ecb62(0x4d0))});}[_0x49b0d1(0x3a3)](){const _0x3d7335=_0x49b0d1,_0x599590=()=>{const _0x1ea971=_0x5144;this[_0x1ea971(0x34b)]||this[_0x1ea971(0xea)]();},_0x5e27dd=()=>{const _0x25d4ac=_0x5144;this[_0x25d4ac(0x34b)]||document[_0x25d4ac(0x1bf)]===_0x25d4ac(0x350)||this['reconnect']();};window[_0x3d7335(0x33b)](_0x3d7335(0x176),_0x599590),document[_0x3d7335(0x33b)](_0x3d7335(0x289),_0x5e27dd);}[_0x49b0d1(0x3aa)](){const _0xe10a88=_0x49b0d1;var _0x2c1342;const _0xae34bc=this[_0xe10a88(0x417)],_0x289de7=this[_0xe10a88(0x1f4)]['getConfig'](L),_0x59177a=_0xae34bc===0x0?0x0:((_0x2c1342=_0x289de7==null?void 0x0:_0x289de7[_0xe10a88(0x452)])!=null?_0x2c1342:zt)*0x2**_0xae34bc;this[_0xe10a88(0x177)]=window[_0xe10a88(0x201)](()=>{const _0x260443=_0xe10a88;clearTimeout(this['_retryConnectingTimer']),this[_0x260443(0x177)]=null,this[_0x260443(0x151)]();},_0x59177a),this['_retryCount']+=0x1;}[_0x49b0d1(0x1db)](_0x5c7dbd,_0x200ebd){const _0x17753a=_0x49b0d1,{cmd:_0x1776fc}=_0x200ebd;_0x1776fc===b[_0x17753a(0x412)]&&!this[_0x17753a(0x1aa)]&&(_0x5c7dbd[_0x17753a(0x1ff)]=_0x200ebd['data']['memberID'],this[_0x17753a(0x49e)]['next'](_0x5c7dbd),this['_status$'][_0x17753a(0x329)](j['ONLINE']),this['_socketReady']=!0x0,this[_0x17753a(0x269)]=null),_0x1776fc===b['HEARTBEAT']&&this[_0x17753a(0x308)](),this[_0x17753a(0x45f)]();}['_rescheduleHeartbeat'](){const _0x58cb76=_0x49b0d1;var _0x821dc1;this[_0x58cb76(0x320)](),this[_0x58cb76(0x18b)]=window[_0x58cb76(0x201)](()=>this[_0x58cb76(0x280)](),(_0x821dc1=this['_configService']['getConfig'](dt))!=null?_0x821dc1:qt);}[_0x49b0d1(0x280)](){const _0x2e7e32=_0x49b0d1;this['_socket']['send']({'cmd':b['HEARTBEAT']}),this[_0x2e7e32(0x3e6)]();}[_0x49b0d1(0x3e6)](){const _0x4e5166=_0x49b0d1;var _0x25a3db;this[_0x4e5166(0x365)]=window[_0x4e5166(0x201)](()=>this[_0x4e5166(0x3d7)](),(_0x25a3db=this[_0x4e5166(0x1f4)]['getConfig'](Ve))!=null?_0x25a3db:St);}[_0x49b0d1(0x320)](){const _0x20b5d=_0x49b0d1;this[_0x20b5d(0x18b)]!=null&&(clearTimeout(this[_0x20b5d(0x18b)]),this[_0x20b5d(0x18b)]=null);}[_0x49b0d1(0x308)](){const _0x36ec3d=_0x49b0d1;this[_0x36ec3d(0x365)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},exports[_0x49b0d1(0x48f)]=gs([Z(0x0,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),Z(0x1,a[_0x49b0d1(0x257)](a['LocaleService'])),Z(0x2,N[_0x49b0d1(0x22d)]),Z(0x3,a['ILogService']),Z(0x4,a[_0x49b0d1(0x2b8)]),Z(0x5,Fe)],exports[_0x49b0d1(0x48f)]);var ms=Object['defineProperty'],Is=Object[_0x49b0d1(0x26e)],ps=(_0x3692b8,_0xbdc13e,_0x242333,_0x26f225)=>{const _0x233f40=_0x49b0d1;for(var _0x36550a=_0x26f225>0x1?void 0x0:_0x26f225?Is(_0xbdc13e,_0x242333):_0xbdc13e,_0x22f656=_0x3692b8[_0x233f40(0x429)]-0x1,_0x539a2b;_0x22f656>=0x0;_0x22f656--)(_0x539a2b=_0x3692b8[_0x22f656])&&(_0x36550a=(_0x26f225?_0x539a2b(_0xbdc13e,_0x242333,_0x36550a):_0x539a2b(_0x36550a))||_0x36550a);return _0x26f225&&_0x36550a&&ms(_0xbdc13e,_0x242333,_0x36550a),_0x36550a;},ye=(_0x2e289a,_0x26745d)=>(_0x5aacdb,_0x179805)=>_0x26745d(_0x5aacdb,_0x179805,_0x2e289a);let Ie=class{constructor(_0x2f2cf7,_0x17d64d,_0x445c4f){const _0x4f9fc3=_0x49b0d1;this[_0x4f9fc3(0x451)]=_0x2f2cf7,this[_0x4f9fc3(0x430)]=_0x17d64d,this[_0x4f9fc3(0x31d)]=_0x445c4f;}[_0x49b0d1(0x443)](_0x35e8e1){const _0x631ef8=_0x49b0d1;this['_transformUndoRedoStack'](_0x35e8e1),this[_0x631ef8(0x32a)](_0x35e8e1);}[_0x49b0d1(0x46b)](_0x4fe785){const _0xf344f1=_0x49b0d1,{unitID:_0x580cfd}=_0x4fe785,_0x5e64c7=this['_renderManagerService']['getRenderById'](_0x580cfd)[_0xf344f1(0x387)](w[_0xf344f1(0x102)]),{redoCache:_0x14ab8b}=_0x5e64c7[_0xf344f1(0x13a)]();if(_0x14ab8b[_0xf344f1(0x429)]===0x0)return _0x4fe785;let _0x96ab5=a['Tools'][_0xf344f1(0x2f0)](_0x4fe785[_0xf344f1(0x2a3)][0x0]);for(let _0x3a9bf8=0x0;_0x3a9bf8<_0x14ab8b[_0xf344f1(0x429)];_0x3a9bf8++){const _0x5257c8={'id':'doc.mutation.rich-text-editing','params':{..._0x14ab8b[_0x3a9bf8]}},_0x126e0f=this[_0xf344f1(0x430)][_0xf344f1(0x4ed)](_0x96ab5,_0x5257c8,!0x1);if(_[_0xf344f1(0x210)](_0x126e0f))throw _0x126e0f['error'];_0x96ab5=_0x126e0f['m1Prime'];}return{...a[_0xf344f1(0x3ac)][_0xf344f1(0x2f0)](_0x4fe785),'mutations':[_0x96ab5]};}[_0x49b0d1(0x47c)](_0x4e35a3){const _0x29a5f4=_0x49b0d1,{unitID:_0x2d875c}=_0x4e35a3,_0x28dffe=this['_renderManagerService'][_0x29a5f4(0x1f1)](_0x2d875c)['with'](w[_0x29a5f4(0x102)]),{undoCache:_0x4f4adb,redoCache:_0x2c98da}=_0x28dffe[_0x29a5f4(0x13a)]();if(_0x4f4adb['length']===0x0||_0x2c98da[_0x29a5f4(0x429)]===0x0)return;const _0x2c1563=[],_0x3feea2=[];let _0x3bfe10=a[_0x29a5f4(0x3ac)][_0x29a5f4(0x2f0)](_0x4e35a3[_0x29a5f4(0x2a3)][0x0]),_0x24368d=a[_0x29a5f4(0x3ac)]['deepClone'](_0x4e35a3[_0x29a5f4(0x2a3)][0x0]);for(let _0x5dd0a9=_0x4f4adb[_0x29a5f4(0x429)]-0x1;_0x5dd0a9>=0x0;_0x5dd0a9--){const _0x4c2462={'id':_0x29a5f4(0x28b),'params':{..._0x4f4adb[_0x5dd0a9]}},_0x347250={'id':'doc.mutation.rich-text-editing','params':{..._0x2c98da[_0x5dd0a9]}},_0x4a8855=this['_transformService'][_0x29a5f4(0x4ed)](_0x3bfe10,_0x4c2462,!0x1),_0x71e9ce=this['_transformService']['transformMutation'](_0x24368d,_0x347250,!0x1);if(_[_0x29a5f4(0x210)](_0x4a8855))throw _0x4a8855[_0x29a5f4(0x433)];if(_[_0x29a5f4(0x210)](_0x71e9ce))throw _0x71e9ce[_0x29a5f4(0x433)];_0x2c1563[_0x29a5f4(0x34d)](_0x4a8855[_0x29a5f4(0x1c2)][_0x29a5f4(0x2d8)]),_0x3feea2[_0x29a5f4(0x34d)](_0x71e9ce[_0x29a5f4(0x1c2)][_0x29a5f4(0x2d8)]),_0x3bfe10=_0x4a8855['m1Prime'],_0x24368d=_0x71e9ce[_0x29a5f4(0x416)];}_0x28dffe['setUndoRedoMutationParamsCache']({'undoCache':_0x2c1563,'redoCache':_0x3feea2});}['_transformPreviousActiveRange'](_0xfca970){const _0x2a274f=_0x49b0d1,{unitID:_0x48142b}=_0xfca970,_0x3791ab=this['_renderManagerService'][_0x2a274f(0x1f1)](_0x48142b)[_0x2a274f(0x387)](w[_0x2a274f(0x102)]),_0x51f1fa=_0x3791ab[_0x2a274f(0x3a2)]();if(_0x51f1fa==null)return;const _0x2b8552=[{'id':_0x2a274f(0x28b),'params':{'unitId':_0xfca970['unitID'],'actions':null,'textRanges':[_0x51f1fa]}}],_0x63e461=this[_0x2a274f(0x430)][_0x2a274f(0x46e)](_0xfca970,_0x2b8552);if(!_[_0x2a274f(0x25f)](_0x63e461))throw _0x63e461[_0x2a274f(0x433)];const _0x274d3c=_0x63e461[_0x2a274f(0x1c2)][0x0][_0x2a274f(0x2d8)]['textRanges'];Array['isArray'](_0x274d3c)&&_0x274d3c['length']&&_0x3791ab[_0x2a274f(0x4d4)](_0x274d3c[0x0]);}};Ie=ps([ye(0x0,a[_0x49b0d1(0x257)](a['Injector'])),ye(0x1,_['ITransformService']),ye(0x2,R[_0x49b0d1(0x333)])],Ie);var Cs=Object[_0x49b0d1(0x37d)],Es=Object[_0x49b0d1(0x26e)],bs=(_0xf35656,_0xa1e6da,_0x29839d,_0x4ffaa8)=>{for(var _0x4db500=_0x4ffaa8>0x1?void 0x0:_0x4ffaa8?Es(_0xa1e6da,_0x29839d):_0xa1e6da,_0x4a0a24=_0xf35656['length']-0x1,_0x19861c;_0x4a0a24>=0x0;_0x4a0a24--)(_0x19861c=_0xf35656[_0x4a0a24])&&(_0x4db500=(_0x4ffaa8?_0x19861c(_0xa1e6da,_0x29839d,_0x4db500):_0x19861c(_0x4db500))||_0x4db500);return _0x4ffaa8&&_0x4db500&&Cs(_0xa1e6da,_0x29839d,_0x4db500),_0x4db500;},ae=(_0x45d612,_0x26d30b)=>(_0x287f75,_0x9bbdac)=>_0x26d30b(_0x287f75,_0x9bbdac,_0x45d612);exports['LocalCacheService']=class extends a[_0x49b0d1(0x3a5)]{constructor(_0x445387,_0x3f2fd6,_0x52ff4e,_0x278dba,_0x429635){const _0x1dc6ac=_0x49b0d1;super(),d(this,_0x1dc6ac(0x270),new Map()),d(this,_0x1dc6ac(0x4b8),new Map()),d(this,_0x1dc6ac(0x38e),!0x1),(this[_0x1dc6ac(0x1f4)]=_0x445387,this[_0x1dc6ac(0x228)]=_0x3f2fd6,this[_0x1dc6ac(0x3c1)]=_0x52ff4e,this[_0x1dc6ac(0x29e)]=_0x278dba,this[_0x1dc6ac(0x314)]=_0x429635,this[_0x1dc6ac(0x230)]());}[_0x49b0d1(0x1fd)](){this['_disabled']=!0x0;}[_0x49b0d1(0x4c5)](){const _0xe9ba15=_0x49b0d1;this[_0xe9ba15(0x38e)]=!0x1;}[_0x49b0d1(0x4b7)](){const _0x412818=_0x49b0d1;this['exhaustSavingTask']()[_0x412818(0x49b)](()=>super[_0x412818(0x4b7)]());}async[_0x49b0d1(0x227)](_0x3278ff){const _0x574cbc=_0x49b0d1;return this['_disabled']?null:this[_0x574cbc(0x228)]['getItem'](Qe(_0x3278ff));}async['saveOfflineData'](_0x35a103,_0x48c04f){const _0x5ddf3e=_0x49b0d1;return!!this[_0x5ddf3e(0x228)][_0x5ddf3e(0x456)](_0x35a103,_0x48c04f);}['updateOfflineData'](_0xddcb89,_0x3014ee,_0x486fdc,_0x4363ed){const _0x40be70=_0x49b0d1,_0xf0d654=this[_0x40be70(0x314)][_0x40be70(0x4db)](_0xddcb89);this['_cachedData'][_0x40be70(0xf0)](_0xddcb89,{'unitID':_0xddcb89,'type':_0x3014ee,'awaitingChangeset':_0x486fdc,'mutations':_0x4363ed,'rev':_0xf0d654}),this[_0x40be70(0x4b8)][_0x40be70(0x14b)](_0xddcb89)||this[_0x40be70(0x38d)](_0xddcb89);}[_0x49b0d1(0x38d)](_0xb673f9){const _0x207197=_0x49b0d1,_0xbe71cd=this[_0x207197(0x34f)]();_0xbe71cd===0x0?this[_0x207197(0x43b)](_0xb673f9):this[_0x207197(0x4b8)][_0x207197(0xf0)](_0xb673f9,setTimeout(()=>this[_0x207197(0x43b)](_0xb673f9),_0xbe71cd));}[_0x49b0d1(0x34f)](){const _0x53b175=_0x49b0d1;var _0x245083;return(_0x245083=this[_0x53b175(0x1f4)][_0x53b175(0x20c)](ft))!=null?_0x245083:Zt;}[_0x49b0d1(0x43b)](_0x8f5846){const _0x27d83f=_0x49b0d1,_0x35f583=this['_saveTaskMap'][_0x27d83f(0x10a)](_0x8f5846);return _0x35f583!==void 0x0&&window[_0x27d83f(0x1e5)](_0x35f583),this[_0x27d83f(0x228)][_0x27d83f(0x456)](Qe(_0x8f5846),this[_0x27d83f(0x270)][_0x27d83f(0x10a)](_0x8f5846))[_0x27d83f(0x49b)](()=>this[_0x27d83f(0x4b8)][_0x27d83f(0x225)](_0x8f5846));}async[_0x49b0d1(0x1e2)](){const _0x23f89e=_0x49b0d1,_0x9ab09d=[];this[_0x23f89e(0x4b8)]['forEach']((_0x3ddec4,_0xdde44b)=>{const _0x3d6577=_0x23f89e;window[_0x3d6577(0x1e5)](_0x3ddec4),_0x9ab09d[_0x3d6577(0x231)](this[_0x3d6577(0x43b)](_0xdde44b)[_0x3d6577(0x49b)](()=>{const _0x2ab57e=_0x3d6577;this['_saveTaskMap'][_0x2ab57e(0x225)](_0xdde44b);}));}),await Promise[_0x23f89e(0x3cf)](_0x9ab09d);}[_0x49b0d1(0x230)](){const _0x33988f=_0x49b0d1;this[_0x33988f(0x357)](this[_0x33988f(0x3c1)][_0x33988f(0x421)](()=>{const _0x3ed343=_0x33988f;if(this[_0x3ed343(0x4b8)][_0x3ed343(0x321)])return this[_0x3ed343(0x29e)]['t'](_0x3ed343(0x1ad));}));}},exports[_0x49b0d1(0x1f7)]=bs([ae(0x0,a['IConfigService']),ae(0x1,a['ILocalStorageService']),ae(0x2,N[_0x49b0d1(0x4fe)]),ae(0x3,a['Inject'](a['LocaleService'])),ae(0x4,a[_0x49b0d1(0x257)](_[_0x49b0d1(0x3e9)]))],exports['LocalCacheService']);function Qe(_0x51becb){const _0x37ff69=_0x49b0d1;return _0x37ff69(0x453)+_0x51becb;}var Ts=Object[_0x49b0d1(0x37d)],Rs=Object[_0x49b0d1(0x26e)],Os=(_0x14c729,_0x10b083,_0x183fb1,_0x11a9d6)=>{const _0x25fd2f=_0x49b0d1;for(var _0x3c0215=_0x11a9d6>0x1?void 0x0:_0x11a9d6?Rs(_0x10b083,_0x183fb1):_0x10b083,_0x3cf205=_0x14c729[_0x25fd2f(0x429)]-0x1,_0x5b42bd;_0x3cf205>=0x0;_0x3cf205--)(_0x5b42bd=_0x14c729[_0x3cf205])&&(_0x3c0215=(_0x11a9d6?_0x5b42bd(_0x10b083,_0x183fb1,_0x3c0215):_0x5b42bd(_0x3c0215))||_0x3c0215);return _0x11a9d6&&_0x3c0215&&Ts(_0x10b083,_0x183fb1,_0x3c0215),_0x3c0215;},Ue=(_0x5e0c7a,_0x3f0db0)=>(_0x414a2a,_0x8a963e)=>_0x3f0db0(_0x414a2a,_0x8a963e,_0x5e0c7a);function Ds(_0x3bd134){const _0x1b3737=_0x49b0d1,{unitID:_0x352c86,mutations:_0x32b98a}=_0x3bd134;return{'unitId':_0x352c86,'subUnitId':_0x32b98a[0x0][_0x1b3737(0x2d8)]['subUnitId']};}let pe=class{constructor(_0x379a16,_0x497bf0,_0x3e09a8){const _0x3c55bb=_0x49b0d1;this[_0x3c55bb(0x451)]=_0x379a16,this[_0x3c55bb(0x430)]=_0x497bf0,this['_instanceService']=_0x3e09a8;}[_0x49b0d1(0x33e)](_0x47506d){const _0x1158a4=_0x49b0d1;var _0x290e84,_0x389444,_0xf49bbb,_0x2360a3;const _0x4ce7c4=this['_injector'][_0x1158a4(0x10a)](C[_0x1158a4(0x389)]),{unitId:_0x358cb2,subUnitId:_0x3daac5}=Ds(_0x47506d),_0x4a7eae=_0x4ce7c4['getWorkbookSelections'](_0x358cb2)['getCurrentSelections'](),_0x27a3d6=(_0x389444=(_0x290e84=this[_0x1158a4(0x2f1)]['getUnit'](_0x358cb2))==null?void 0x0:_0x290e84[_0x1158a4(0x1b9)]())==null?void 0x0:_0x389444[_0x1158a4(0x3ef)]();if(_0x4a7eae[_0x1158a4(0x429)]===0x0||!_0x358cb2||!_0x3daac5)return;const _0x23bd10=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x358cb2,'subUnitId':_0x27a3d6,'selections':a[_0x1158a4(0x3ac)][_0x1158a4(0x2f0)](_0x4a7eae)}}],_0x2d3167=this[_0x1158a4(0x430)][_0x1158a4(0x46e)](_0x47506d,_0x23bd10);if(!_[_0x1158a4(0x25f)](_0x2d3167))throw _0x2d3167['error'];const _0x8d5ea0=(_0x2360a3=(_0xf49bbb=_0x2d3167[_0x1158a4(0x1c2)][0x0])==null?void 0x0:_0xf49bbb['params'])==null?void 0x0:_0x2360a3[_0x1158a4(0x3de)];Array['isArray'](_0x8d5ea0)&&_0x8d5ea0[_0x1158a4(0x429)]&&this[_0x1158a4(0x451)][_0x1158a4(0x10a)](a[_0x1158a4(0x11b)])[_0x1158a4(0x338)](C[_0x1158a4(0x4b9)]['id'],{'unitId':_0x358cb2,'subUnitId':_0x27a3d6,'selections':_0x8d5ea0});}};pe=Os([Ue(0x0,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),Ue(0x1,_[_0x49b0d1(0x2b2)]),Ue(0x2,a[_0x49b0d1(0xe5)])],pe);const Te=a['createIdentifier'](_0x49b0d1(0x38c));var bt=(_0x2594ad=>(_0x2594ad[_0x2594ad[_0x49b0d1(0x483)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2594ad[_0x2594ad[_0x49b0d1(0x143)]=0x1]='OTHER_CLIENTS_EDITING',_0x2594ad))(bt||{});const et=0x7530,tt=_0x49b0d1(0x3ea);class ys extends a[_0x49b0d1(0x3a5)]{constructor(){const _0x19026f=_0x49b0d1;super(),d(this,_0x19026f(0x349),a[_0x19026f(0x3ac)][_0x19026f(0xd9)]()),d(this,_0x19026f(0x267),new Set()),d(this,_0x19026f(0x108),new Map()),d(this,'_heartbeatTimer',null),d(this,_0x19026f(0x337),new Map()),d(this,_0x19026f(0x4cc),new Map()),this['_init']();}[_0x49b0d1(0x4b7)](){const _0x138b10=_0x49b0d1;super[_0x138b10(0x4b7)](),this[_0x138b10(0x337)]['forEach']((_0x13c043,_0x1875da)=>this['_removeClearOtherTimer'](_0x1875da)),this['_heartbeatTimer']&&window[_0x138b10(0x414)](this[_0x138b10(0x12f)]);}[_0x49b0d1(0x3e0)](_0xb80ced){const _0x184ec6=_0x49b0d1;return this[_0x184ec6(0x441)](_0xb80ced)[_0x184ec6(0x110)](v[_0x184ec6(0x341)]());}[_0x49b0d1(0x2d6)](_0x54ab8f){const _0x44a0ca=_0x49b0d1;this[_0x44a0ca(0x267)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x44a0ca(0x267)][_0x44a0ca(0x3a6)](_0x54ab8f),this['_send']({'type':0x0,'memberID':this[_0x44a0ca(0x349)],'unitIDs':[_0x54ab8f],'isForwarded':!0x1});}['disposeUnit'](_0x1f5697){const _0x3ffcb8=_0x49b0d1;this['_selfUnitIDs'][_0x3ffcb8(0x225)](_0x1f5697),this[_0x3ffcb8(0x267)][_0x3ffcb8(0x321)]===0x0&&this[_0x3ffcb8(0x12f)]&&window[_0x3ffcb8(0x414)](this[_0x3ffcb8(0x12f)]);}[_0x49b0d1(0x1d0)](){const _0x1ad0dc=_0x49b0d1;this['disposeWithMe'](a[_0x1ad0dc(0x41b)](v[_0x1ad0dc(0x2e9)](window,_0x1ad0dc(0x290))['subscribe'](_0x3edadc=>{const _0x3c138b=_0x1ad0dc;if(_0x3edadc['key']!==tt||!_0x3edadc[_0x3c138b(0x468)])return;const _0x168dd4=JSON[_0x3c138b(0x24e)](_0x3edadc[_0x3c138b(0x468)]);this['_handleEvent'](_0x168dd4);}))),window[_0x1ad0dc(0x33b)](_0x1ad0dc(0x3bb),()=>this[_0x1ad0dc(0x278)]({'type':0x1,'memberID':this[_0x1ad0dc(0x349)],'unitIDs':Array[_0x1ad0dc(0x30c)](this['_selfUnitIDs'])}));}[_0x49b0d1(0xe0)](_0x27c530){const _0x22ccdc=_0x49b0d1;switch(_0x27c530['type']){case 0x0:this[_0x22ccdc(0x2ce)](_0x27c530);break;case 0x1:this['_handleLeaveEvent'](_0x27c530);break;case 0x2:this['_handleHeartbeatEvent'](_0x27c530);break;}}[_0x49b0d1(0x2ce)](_0x449627){const _0x485562=_0x49b0d1,{unitIDs:_0x1f0cbb,memberID:_0x6f0e7a,isForwarded:_0x28d5d2}=_0x449627;_0x1f0cbb[_0x485562(0x287)](_0x5064d8=>{const _0x561c2f=_0x485562;if(!_0x28d5d2&&this['_unitOnClients']['has'](_0x5064d8)&&this[_0x561c2f(0x441)](_0x5064d8)[_0x561c2f(0x329)](0x1),!this[_0x561c2f(0x108)][_0x561c2f(0x14b)](_0x5064d8)||!this[_0x561c2f(0x108)][_0x561c2f(0x10a)](_0x5064d8)[_0x561c2f(0x14b)](_0x6f0e7a)){const _0x5963e1=this[_0x561c2f(0x108)][_0x561c2f(0x10a)](_0x5064d8)||new Set();_0x5963e1[_0x561c2f(0x3a6)](_0x6f0e7a),this[_0x561c2f(0x108)][_0x561c2f(0xf0)](_0x5064d8,_0x5963e1),this['_scheduleClearOtherTimer'](_0x6f0e7a);}}),_0x28d5d2||this['_send']({'type':0x0,'memberID':this[_0x485562(0x349)],'unitIDs':[...this[_0x485562(0x267)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x413afc){const _0x255825=_0x49b0d1;this[_0x255825(0x1d1)](_0x413afc);const _0x2fe34b=window['setTimeout'](()=>{const _0x1489c7=_0x255825;this[_0x1489c7(0x108)][_0x1489c7(0x287)](_0xa04d5e=>{const _0x414c61=_0x1489c7;_0xa04d5e[_0x414c61(0x225)](_0x413afc);});},et*0x2);this[_0x255825(0x337)][_0x255825(0xf0)](_0x413afc,_0x2fe34b);}[_0x49b0d1(0x1d1)](_0x286b99){const _0x25fc9b=_0x49b0d1;if(this[_0x25fc9b(0x337)]['has'](_0x286b99)){const _0xa16055=this[_0x25fc9b(0x337)]['get'](_0x286b99);_0xa16055&&window[_0x25fc9b(0x1e5)](_0xa16055),this['_clearOtherTimers']['set'](_0x286b99,null);}}[_0x49b0d1(0x458)](_0x399360){const _0x1ed045=_0x49b0d1,{memberID:_0x379500,unitIDs:_0x2a0581}=_0x399360;_0x2a0581[_0x1ed045(0x287)](_0x5070d6=>{const _0x1bd680=_0x1ed045;var _0x4fa0d6;const _0x48dcd3=this[_0x1bd680(0x108)][_0x1bd680(0x10a)](_0x5070d6);_0x48dcd3&&(_0x48dcd3[_0x1bd680(0x225)](_0x379500),(_0x4fa0d6=this[_0x1bd680(0x441)](_0x5070d6))==null||_0x4fa0d6[_0x1bd680(0x329)](_0x48dcd3['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x379500);}['_handleHeartbeatEvent'](_0x37da2a){const _0x442e9f=_0x49b0d1;this[_0x442e9f(0x14d)](_0x37da2a[_0x442e9f(0x1ff)]);}[_0x49b0d1(0x278)](_0xb23708){const _0x3a68df=_0x49b0d1;localStorage[_0x3a68df(0x456)](tt,JSON[_0x3a68df(0x4df)](_0xb23708));}[_0x49b0d1(0x354)](){const _0x24bbc7=_0x49b0d1;this[_0x24bbc7(0x12f)]=window[_0x24bbc7(0x454)](()=>{const _0x15449a=_0x24bbc7;this[_0x15449a(0x278)]({'type':0x2,'memberID':this[_0x15449a(0x349)]});},et);}[_0x49b0d1(0x441)](_0x241572){const _0x5680c0=_0x49b0d1;return this[_0x5680c0(0x4cc)][_0x5680c0(0x14b)](_0x241572)||this['_unitStatus'][_0x5680c0(0xf0)](_0x241572,new v[(_0x5680c0(0x17f))](0x0)),this[_0x5680c0(0x4cc)]['get'](_0x241572);}}function Tt(_0x51091c){const _0x312bb8=_0x49b0d1;let _0x33156b='';for(const _0x586eeb of _0x51091c){const {startOffset:_0x40659a,endOffset:_0xf521ed,isActive:_0x176c0e}=_0x586eeb;_0x33156b[_0x312bb8(0x429)]&&(_0x33156b+=','),_0x33156b+=_0x40659a+':'+_0xf521ed+':'+(_0x176c0e?'1':'0');}return _0x33156b;}function Us(_0x394131){const _0x72f333=_0x49b0d1,_0x13a9b4=_0x394131[_0x72f333(0x418)](','),_0x338b40=[];for(const _0x5f40b3 of _0x13a9b4){const [_0x32227a,_0x751913,_0x5e2d8f]=_0x5f40b3['split'](':');_0x338b40[_0x72f333(0x231)]({'startOffset':Number(_0x32227a),'endOffset':Number(_0x751913),'collapsed':_0x32227a===_0x751913,'isActive':_0x5e2d8f==='1'});}return _0x338b40[_0x72f333(0x29b)](_0x5c5b08=>_0x5c5b08['isActive'])||(_0x338b40[0x0][_0x72f333(0x226)]=!0x0),_0x338b40;}class Ye extends a[_0x49b0d1(0x3b6)]{constructor(){const _0x23a6c0=_0x49b0d1;super(...arguments),d(this,_0x23a6c0(0x381),new v[(_0x23a6c0(0x17f))](null)),d(this,_0x23a6c0(0x1da),this[_0x23a6c0(0x381)][_0x23a6c0(0x42a)]());}[_0x49b0d1(0x427)](_0x267fad){const _0x247255=_0x49b0d1,{unitID:_0x2f5483,memberID:_0x18f185,textRanges:_0x20eba1}=_0x267fad,_0x200d17=Tt(_0x20eba1),_0x3d530c={'unitID':_0x2f5483,'memberID':_0x18f185,'selection':_0x200d17};this[_0x247255(0x381)]['next'](_0x3d530c);}}function _0x3f94(){const _0x30d133=['SEND_CHANGESET_TIMEOUT','_clearLocalCache','_beforeCloseService','_getScale','displayName','_cursorInfo$','COMPLETION_FINISHED','InsertRowCommandId','/universer-api/authz','@univerjs-pro/collaboration','isPermissionRej','INGEST','fetching\x20missing\x20changesets\x20from\x20','getResourcesRequest','joinEvent','triggerDblclick','all','_createHandler','registerComponent','fillText','getCoordByCell','_updateSubUnitFromURLParams','_collaborationTimeoutTimer','defs','_onConnectionFailed','_waitCount','SetWorksheetActivateCommand','cursorInfo','_onConnectionOpen','currentTheme$','indexOf','selections','Vector2','getUnitStatus$','_collabSessionService','HTTPService','url','_univerInstanceService','CompressMutationService','_waitForHeartbeatResponse','_onCombEvent','JSONX','RevisionService','ACTIVE_UNIT_EVENT_CHANNEL','clipPath','useDependency','useCallback','_cursorShapes','getSheetId','_refRangeService','_entityInit$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','LOCAL_CACHE_INTERVAL','changesets','updateCollaborator','_drawAnchor','isTransformMutationsWithChangesetFailure','Optional','extend','selection','_applyRemoteChangeset','onMissingChangesets','failed\x20to\x20apply\x20missed\x20changesets!','1546912USsHaX','Warning','SheetCollaborationEntity','originalMeta','withCredentials','cursorInfo$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getCellPositionByOffset','_draw','\x0aCurrent:\x20','#FFF','USERS_LEAVE','_collaborationPaused','APPLY_REJECT','_clearRedo','_getAPIPrefixPath','APPLY_REVISION_CONFILICT','black','collabStatus.notCollab','subunit','HELLO','handleIRemoveCol','clearInterval','_online','m1Prime','_retryCount','split','_initEventListeners','handleDeleteRangeMoveUp','toDisposable','function','M0\x200H16V16H0z','updateMember','revision','drawWith','registerBeforeClose','HEARTBEAT_TIMEOUT','SNAPSHOT_URL_KEY','_imageSourceCache','getMergeData','_getUploadFileURL','syncEditingCollabCursor','IAuthzIoService','length','asObservable','_scene','includes','DeleteRangeMoveLeftCommandId','svg','responseType','_transformService','ONLINE','INotificationService','error','_refreshCollabCursors','SUCCUSS','&assign=','LOCAL_CACHE_INTERVAL_KEY','close','encodeURIComponent','_startCollaboration','_saveCache','c1Prime','url(#off-line-single_clip0_910_343)','endRow','_initCommandExecutedListener','b64DecodeUnicode','_ensureSubject','collaborators','transformIMECache','ICollaborationSocketService','enableOfflineEditing','_lockTransition','sendChangesetTimeout','mergeOverrideWithDependencies','session','_document','_docStateChangeManagerService','getCollabEntity$','_getSheetObject','[CollaborationState]:\x20apply\x20error!','csRejEvent','color','_injector','retryConnectingInterval','unit-cache-','setInterval','TEXT_RANGE_LAYER_INDEX','setItem','objects','_handleLeaveEvent','verdancy600','resolve','objectID','roomMembers$','UNAUTHENTICATED','DocSelectionManagerService','_rescheduleHeartbeat','RefRangeService','[CollaborationUndoRedoService]','_themeService','[PendingState]:\x20received\x20acknowledgement.','throttleTime','complete','JOINING','SHOULD_CLOSE_CONN','newValue','_userManagerService','catch','transformRemoteChangeset','permission.title','path','transformMutationsWithChangeset','_commentService','SYNCED','getImageSourceCache','assign','width','clsx','incrementRevOfUnit','_joinRoom','_updateState','ImageIoService','_pendingMutations','fillStyle','awaitingChangeset','_transformUndoRedoStack','onRemoteChangeset','resourceIDs','_labelPosition','/object','CollaborationController','_updateURLWithCurrentState','NO_OTHER_CLIENTS_EDITING','univer-online-status-icon','commentUpdate$','CONNECTOR_DATA_TOO_LARGE','_initRequestHeader','makeDirty','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UNIVER_COLLABORATION_CLIENT_PLUGIN','_state$','FromArray','InsertSheetMutation','_initStatusListener','CollaborationSessionService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRemoteChangeset','status','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','action','listRoles','_backgroundColor','liveShareNewHost','_updateLocalCursor','call','/universer-api/snapshot/','then','_getCurrentRevision','LOGIN_URL_KEY','_socket$','_ws','COMPRESS_MUTATION_APPLY','getDocRanges','_drawTextRange','[CollaborationEntity]','/-/object/list','/role','DocStateChangeManagerService','/block/','collab-text-anchor-','_telemetryService','max','[OfflineState]:\x20received\x20acknowledgement.','NodePositionConvertToCursor','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_schedule','runRefRangeMutations','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_transitionLocked','getVpScrollXYInfoByPosToVp','_type','ImageUploadStatusType','list','PENDING','dispose','_saveTaskMap','SetSelectionsOperation','subscribe','IImageIoService','use','_syncEditingCollabCursor','\x20-\x20','image/jpeg','NEW_CHANGESETS','_onRemoteRejected','getParam','stopTime','socket$','enableLocalCache','userID','Univer','permissionRejEvent','Starting','isInternalEditorID','getOffsetConfig','_unitStatus','open$','addImageSourceCache','_loadSheet','session.connection-failed','unitID','Rect','replaceTextRanges','setActiveRange','_event$','startColumn','show','_getSignURL','MergeInterceptorFactory','_state','getCurrentRevOfUnit','restore','_updateLocalCache','698KdCGNx','stringify','UNDEFINED','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','result','1950575uaNBQk','_members','confirm','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_toggleOnline','pending','gold400','_clearScheduledTask','HEARTBEAT','_acknowledgedAwaitingChangeset','transformMutation','JOIN','_docSkeletonManagerService','updatePermissionPoint','@univerjs/docs','COLLAB_WEB_SOCKET_URL','method','save\x20fail\x20reason\x20is\x20','ERROR_EXCEED_SIZE','_getCtorByUniverType','_onCursorDelete','getUnhiddenWorksheets','putCollaborators','[SyncedState]:\x20received\x20acknowledgement.','_substituteUndoStack','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','ILogService','IBeforeCloseService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','/universer-api/oidc/authpage','now','generateRandomId','_onOffline','_initUnitPermissionChange','substring','find','dispose$','fromCollab','_handleEvent','toRgbString','/universer-api/stream/file/upload','_session','hasOwnProperty','IUniverInstanceService','OFFLINE','_updateStatus','IUndoRedoService','parseChangesetToProtocol','reconnect','_uiPartsService','registerRenderModule','_assignedColors','RECV','_singleActiveUnitService','set','map','ISnapshotServerService','_collabCursorController','IRemoteInstanceService','SUBMIT_CHANGESET','title','endColumn','_replayCachedMutations','beginPath','_color','USERS_ENTER','socket\x20open.','replaceState','registerHTTPInterceptor','range','_toggleOffline','setParam','DocIMEInputManagerService','saveChangeset','getCurrentUnitForType','colorChannel1','toStringTag','_startSheetCollabCursor','_unitOnClients','entries','get','createElement','json','/allowed','transform','_cursors','pipe','_collaborationController','CommandType','{fileID}','ALREADY_EXISTS','[OfflineState]:\x20received\x20rejection.','change$','_executeRemoteChangeset','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_substituteRedoStack','SnapshotServerOverHTTPService','ICommandService','createInstance','blue400','_clearCollaborationTimeoutTimer','fetchThroughInterceptors','...','univer-online','_queuedRemoteChangesets','_snapshotService','DocCollaborationEntity','UNIVER_SHEET','_name','/universer-api/comb','onTransformRemoteChangesetByIMECache','Shape','_notificationService','liveShareOperation','pauseCollaboration','rev','merge','_heartbeatTimer','_getAnchorBounding','onMissedChangesetFetched','searchParams','csAckEvent','COLLAB_SUBMIT_CHANGESET_URL','subUnitId','/object/','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','createIdentifier','NOT_FOUND','getUndoRedoMutationParamsCache','DisposableCollection','UPDATE_CURSOR','xlink:href','rxjs/operators','prototype','post','EXCHANGE_SIGN_URL_SERVER_URL_KEY','init','OTHER_CLIENTS_EDITING','ColorKit','_isPermissionRej','_submitChangeset','name','_urlService','FAIL','HttpImport','has','_startDocCollabCursor','_scheduleClearOtherTimer','_colorIndex','_transformUndoredo','@univerjs/telemetry','_tryEnsureSocket','mapDocumentTypeToUniverType','getSheetBySheetId','INTERNAL_ERROR','@univerjs/engine-formula','handleInsertRangeMoveDown','collab-text-range-','type','CollaborationSession','getRangePointData','actions','getViewport','session.room-full','WorkbookEditablePermission','getDeserializedSheetBlock','hovered','_undoRedoService','_status$','_docSyncEditingCollabCursorService','SNAPSHOT_INVALID_SNAPSHOT','data','COMMENT_UPDATE','_loadDoc','ws://127.0.0.1:8000/universer-api/comb/connect','_onUserLeave','@univerjs/design','CHANGESET_REJ','_checkMissing','telemetry\x20info\x20is\x20not\x20initialized','?url=','onTransformIME','textEncoder','status$','currentColor','UPDATE_PERMISSION_OBJ','reverse','LIVESHARE_FETCH_OPERATIONS','online','_retryConnectingTimer','getOwnPropertySymbols','FETCH_MISS','_docTransformIMECacheService','handleInsertRow','history','popstate','getCurrentUser','BehaviorSubject','_awaitingChangeset','DEFAULT_FILE_NAME','univer-pro.collaboration-client-socket-service','removeMember','useRef','APPLY_NON_SEQUENTIAL_REVISION','APPLY_PERMISSION_DENIED','transformStack\x20failed!','state$','\x20to\x20','_change$','_sendHeartbeatTimer','/new_changes','unitId','image/png','interceptor','PSEUDO_FETCH_MISSING_RESULT','apply','_getRedoStack','PERMISSION_REJ','localeService','getCurrent','fetchMissingChangesets','defIds','EffectRefRangId','UniverInstanceType','unsubscribe','awaiting_with_pending','onRendered','FileId','objectType','_redoStacks','[DataLoaderController]','arc','RegularPolygon','_replaceFileID','min','offline','ERROR_IMAGE','_messageService','_roomMembers$','CHANGESET_ACK','_socketReady','collaboration-client.config','image/gif','collaboration-client.offline-data-not-saved','onTransformSelections','_initStatusComponent','toggleOnline','copyFileMeta','onStateChange','text','_socketService','@univerjs/ui','enableAuthServer','attrs','collaboration_new_changeset','getActiveSheet','jiqing500','sheets','UnitSnapshot','rgba(255,\x20255,\x20255,\x200.01)','InsertRangeMoveRightCommandId','visibilityState','DependentOn','_scheduleCollaborationTimeoutTimer','m2Prime','cmd','_shouldReportTelemetry','debug','_config','column','error$','sequenceExecute','SNAPSHOT_SERVER_URL_KEY','_syncEditingCollabCursorService','random','_sendingTimer','_getMergeRange','_anchorDot','_init','_removeClearOtherTimer','closePath','univer-online-status','createSocket','duration','off-line-single','LICENSE_DISTRO_REJECTED','SnapshotService','c2Prime','collabCursorState$','_onMessage','handleInsertRangeMoveRight','_throwTelemetryCollaborationNewChangeset','PERMISSION_DENIED','file','_docSkeleton','values','exhaustSavingTask','UnitEmbedded','appendMutation','clearTimeout','session.will-retry','UNIVER_SLIDE','[SyncedState]:\x20received\x20rejection.','requireSession','[FetchMissState]','_transformIMECache','_compressMutationService','LEAVE','submit\x20changeset\x20error!','_remoteChangesetQueue','_incrementRevisionNumber','getRenderById','resend','_getUndoStack','_configService','code','Rectangle','LocalCacheService','hide','SetDocZoomRatioOperation','IURLService','MSG_FOR_ERROR','sessionStatus$','disableLocalCache','location','memberID','_logService','setTimeout','_onFetchMissResult','UNIVER_UNKNOWN','HEARTBEAT_INTERVAL','OnLineSingle','_textBubble','onSendChangeset','_hover','textRanges','patch','_docTransformSelectionsService','getConfig','Injector','RemoveColCommandId','requestParams','isTransformMutationFailure','_startTelemetryCollaborationNewChangeset','_sheetSkeletonManagerService','DocSkeletonManagerService','_onLocalMutation','UNIVER_DOC','HEADER_MENU','initWorkbookPermissionChange','toggleOffline','setConfig','[CollaborationSession]','onRemoteRej','collaboration.closeRoom','@univerjs/sheets-ui','InsertColCommandId','_telemetryInfo','YUUMI_URL_COL_OUT_OF_RANGE','takeUntil','snapshotServerUrl','onPointerEnter$','RETRY_CONNECTING_MAX_COUNT','delete','isActive','loadOfflineData','_localStorageService','origin','_HTTPService','VIEWPORT_KEY','parseProtocolChangeset','IMessageService','unitId\x20is\x20not\x20found','_transformSelections','_setupBeforeClosingHandler','push','_createSocket','collabStatus.synced','getUnitId','IPermissionService','roomMembers','href','getSheetObject','getSkeleton','permission.content','useObservable','top','contains','isArray','_updateCollabCursors','_removeRoom','_getAPIPrefix','session.collaboration-timeout','_getDownloadEndpointURL','string','setCurrentUser','collabSubmitChangesetUrl','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','MessageType','state','onSyncEditingCollabCursor','getMemberID','MoveRangeCommandId','/unit/','parse','uni.network.url-service','_entities','flatMap','UNKNOWN_CODE','className','CollaborationEvent','getTypeOfUnitAdded$','SheetPermissionInitController','Inject','903591KQxvqu','auth.needGotoLoginAlert','idSuffix','_undoStacks','isEditing','url(#$1','LICENSE_EXPORT_SIZE_EXCEEDED','isTransformMutationsWithChangesetSuccess','LifecycleStages','allowed','concat','_sheetTransformSelectionsService','forwardRef','173859rHwyLe','YUUMI_UNABLE_LOAD_URL','_selfUnitIDs','Subject','_candidateSocket','conflict','icon','onCommentUpdate','SessionStatus','getOwnPropertyDescriptor','getInterceptPoints','_cachedData','_memberService','event$','x-univer-host','fetch_missing','every','ImageSourceType','_showConflictNotification','_send','ERROR_IMAGE_TYPE','@univerjs/network','LIVESHARE_TERMINATE','font','clear','110SJwVhG','delay','_sendHeartbeat','members','_commentUpdate$','Plugin','SheetCollabCursorShape','unit','pushState','forEach','CommentService','visibilitychange','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','doc.mutation.rich-text-editing','whenReady','unknown','reduce','_socketMessageSubscription','storage','save','SEND_CHANGESET_TIMEOUT_KEY','ranges','Undefined','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','toString','_collaborationSessionService','collabWebSocketUrl','&source=','1em','some','transformUndoRedo','none','_localeService','_unitID','infoRsp','_stopTelemetryCollaborationNewChangeset','subscribeEvent','mutations','addObjects','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','setAlpha','getTime','_removeCollabCursors','shareReplay','LIVESHARE_NEW_HOST','COLLAB_SUBMIT_CHANGESET_URL_KEY','_localCacheService','startsWith','NOT_COLLAB','getCollabCursors$','createCollaborator','batchAllowed','ITransformService','eventID','_initMergeInterceptor','POST','0\x200\x2017\x2016','headers','IConfigService','getUnitType','filter','_createInitialState','AuthzIoHttpService','_registerDependencies','engine','_context','roomInfos','activeSheet$','reject','_shapes','&to=','ITelemetryService','connection\x20error','RichTextEditingMutation','focused$','HTTPRequest','Workbook','_permissionService','_onJoinRoomEvent','Error','_handleJoinEvent','updateOfflineData','evenodd','closeSession','row','_colorAssignService','_decreaseWaiting','ThemeService','editingUnit','setShapeProps','params','collab-rect-range-','LIVESHARE_OPERATION','lineTo','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','COMPRESS_MUTATION_SEND','XHRHTTPImplementation','2141508wEeVJm','@univerjs/drawing','_onConflict','_cursor','LocalUndoRedoService','onPointerLeave$','collabStatus.conflict','put','_initCloseConn','debounce','fromEvent','labelPosition','transformChangesets','switchMap','?size=','measureText','/collaborator','deepClone','_instanceService','_exhaustRemoteChangesetQueue','_onRecvEvent','replace','purple300','onRemoteAck','UniverCollaborationClientPlugin','_fetchMissChangesets','_anchor','IHTTPImplementation','getCollabEntity','OnLifecycle','findNodePositionByCharIndex','_initResize','@univerjs/sheets','_clearUndo','onStarting','src','88AhsZFk','univer-online-status-title','[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.','getValue','listCollaborators','_clearTimeoutTimer','INVALID_ARGUMENT','take','height','from','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','TOO_MANY_REQUESTS','registerRefRange','UniverCollaborationPlugin','Tooltip','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','children','_revisionService','CollaborationSocketService','FETCH_MISSING','_render','_handler','MUTATION','LICENSE_MAX_UNITS_EXCEEDED','compose','_getSendChangesetTimeout','_renderManagerService','socketService','serializeRangeWithSheet','_clearHeartbeatTimer','size','getUniverSheetInstance','currentSkeleton$','_eventUnsubscribe','_onRemoteACK','/resources','_hideTimer','UNRECOGNIZED','next','_transformPreviousActiveRange','_sessionStatus$','red300','getAttachHeader','univerjs-icon\x20univerjs-icon-','_range','DataLoaderController','assignAColorForMemberID','IDLE','IRenderManagerService','_createInitialStateImpl','concatMap','onlineStatusIcon','_clearOtherTimers','executeCommand','LocaleService','handleIRemoveRow','addEventListener','awaiting','slice','transformSelections','CollaborationEntity','onMouseMove','distinctUntilChanged','removeParam','off-line-single_clip0_910_343','SNAPSHOT_HAS_BEEN_REMOVED','_handleHover','CollaborationStatusDisplay','tag','readAsDataURL','_id','_registerRenderDependencies','_socket','fetchMiss','unshift','/universer-api/snapshot','_getSaveTimeout','hidden','onCommandExecuted','sheetId','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_scheduleHeartbeat','LICENSE_IMPORT_SIZE_EXCEEDED','AWAITING','disposeWithMe','[CollaborationSessionService]','/rev/','_listenToOfflineEvent','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','synced','message$','saveImage','DesktopCollaborationStatusDisplayController','#fff','baseRev','body','AUTHZ_URL_KEY','getColor','_timeoutTimer','send','HttpExport','_getSnapshotAPIPrefix','OffLineSingle','getFocusedUnit','getTypeOfUnitDisposed$','COLORS','handleDeleteRangeMoveLeft','UNKNOWN_CMD','signUrlServerUrl','round','CONFLICT','_initModules','loginUrlKey','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_onRefRangeChange','633825FKbyiy','_roomMembers','_commandService','fill','ThresholdInterceptorFactory','[PendingState]:\x20unhandled\x20univer\x20type:\x20','collabStatus.syncing','defineProperty','_setupSubUnitSync','on-line-single_clip0_910_349','@univerjs/rpc','_collabCursorState$','conflict.title','newCsEvent','downloadEndpointUrl','RETRY_CONNECTING_MAX_COUNT_KEY','_scheduleTimestamp','with','HEARTBEAT_TIMEOUT_KEY','SheetsSelectionsService','_unlockTransition','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','univer-pro.collaboration-client.single-active-unit-service','_scheduleSaving','_disabled','_lastPointer','LIVESHARE_REQUEST_HOST','onTransformChange$','@univerjs/core','registerOnClose','routeKey','onlyLocal','_onCursorUpdate','univer-offline','skeleton','_snapshotServerService','_drawRectRange','Steady','_sessions','getMember','sessionStatus','_getLoginPath','_transformStack','connectInjector','getActiveRange','_listenToOnlineEvent','_http','Disposable','add','collaboration-session-retry','_httpService','_hovered','_tryReconnect','deserializeToCombResponse','Tools','combineLatest','getImage','bottom','getAncestorScale','onPointerMove$','close$','\x0aAfter:\x20','fillRule','isTransformChangesetsSuccess','RxDisposable','saveSheetBlock','div','UserManagerService','EmptyMutation','unload','WebSocketService','urlChange$','addObject'];_0x3f94=function(){return _0x30d133;};return _0x3f94();}var Ps=Object[_0x49b0d1(0x37d)],ws=Object['getOwnPropertyDescriptor'],Ms=(_0x5684a5,_0x1401c5,_0x2f7b5b,_0x14e53c)=>{const _0x5348d3=_0x49b0d1;for(var _0xa1ed8f=_0x14e53c>0x1?void 0x0:_0x14e53c?ws(_0x1401c5,_0x2f7b5b):_0x1401c5,_0x2d1577=_0x5684a5[_0x5348d3(0x429)]-0x1,_0x3b60e0;_0x2d1577>=0x0;_0x2d1577--)(_0x3b60e0=_0x5684a5[_0x2d1577])&&(_0xa1ed8f=(_0x14e53c?_0x3b60e0(_0x1401c5,_0x2f7b5b,_0xa1ed8f):_0x3b60e0(_0xa1ed8f))||_0xa1ed8f);return _0x14e53c&&_0xa1ed8f&&Ps(_0x1401c5,_0x2f7b5b,_0xa1ed8f),_0xa1ed8f;},st=(_0x10265e,_0x576445)=>(_0x1083a7,_0x566e06)=>_0x576445(_0x1083a7,_0x566e06,_0x10265e);let Ce=class{constructor(_0x7bc6e4,_0x56b4c6){const _0x596363=_0x49b0d1;this[_0x596363(0x451)]=_0x7bc6e4,this[_0x596363(0x430)]=_0x56b4c6;}['transformSelections'](_0x4d076b){const _0x34c574=_0x49b0d1;var _0x3c31c7;const _0xa56a67=this['_injector'][_0x34c574(0x10a)](V[_0x34c574(0x45e)]),_0x2f78ec=(_0x3c31c7=_0xa56a67['getDocRanges']())!=null?_0x3c31c7:[];if(_0x2f78ec['length']===0x0)return;const _0x470bdf=[{'id':_0x34c574(0x28b),'params':{'unitId':_0x4d076b[_0x34c574(0x4d1)],'actions':null,'textRanges':_0x2f78ec}}],_0x5d64bd=this[_0x34c574(0x430)][_0x34c574(0x46e)](_0x4d076b,_0x470bdf);if(!_[_0x34c574(0x25f)](_0x5d64bd))throw _0x5d64bd['error'];const _0xa8adc=_0x5d64bd[_0x34c574(0x1c2)][0x0][_0x34c574(0x2d8)][_0x34c574(0x209)];Array[_0x34c574(0x23e)](_0xa8adc)&&_0xa8adc[_0x34c574(0x429)]&&_0xa56a67[_0x34c574(0x4d3)](_0xa8adc,!0x1);}};Ce=Ms([st(0x0,a['Inject'](a[_0x49b0d1(0x20d)])),st(0x1,_['ITransformService'])],Ce);const Ns=new Set([C[_0x49b0d1(0x48d)]['id']]);function it(_0x1c2e0e,_0x23031e,_0xe1c8d0,_0x284460,_0x4932af){const _0x104c08=_0x49b0d1;var _0x490acb,_0x2ecff3,_0x4a260e,_0x4bffea;const _0x51e18f=[];for(const _0x4f64a5 of _0x1c2e0e)if(Ns[_0x104c08(0x14b)](_0x4f64a5['id'])){if(_0x51e18f[_0x104c08(0x429)]>0x0)break;_0x51e18f[_0x104c08(0x231)](_0x4f64a5);break;}else _0x51e18f['push'](_0x4f64a5);const _0x5efd26=(_0x2ecff3=(_0x490acb=_0x4932af[_0x104c08(0x17e)]())==null?void 0x0:_0x490acb['userID'])!=null?_0x2ecff3:_0x104c08(0x28d),_0x1b487f=(_0x4bffea=(_0x4a260e=_0x4932af[_0x104c08(0x17e)]())==null?void 0x0:_0x4a260e[_0x104c08(0x1ff)])!=null?_0x4bffea:_0x104c08(0x28d);return{'changeset':{'unitID':_0x23031e,'type':_['mapDocumentTypeToUniverType'](_0xe1c8d0[_0x104c08(0x2b9)](_0x23031e)),'baseRev':_0x284460[_0x104c08(0x4db)](_0x23031e),'revision':0x0,'userID':_0x5efd26,'memberID':_0x1b487f,'mutations':_0x51e18f},'pendingMutations':_0x1c2e0e[_0x104c08(0x33d)](_0x51e18f[_0x104c08(0x429)])};}function Ls(_0x39596e,_0x537af7,_0x57a97b,_0x250b1f,_0x5b0534){const _0x54cfc4=_0x49b0d1;var _0x54a223,_0x3a470c,_0x377f17,_0x493183;const _0x545ad5=[_0x39596e[_0x54cfc4(0x28e)]((_0x4d2eb2,_0x4874e4)=>{const _0x3221ae=_0x54cfc4;var _0x146464;const {id:_0x1476ec}=_0x4d2eb2,{id:_0x29a0aa,type:_0x18c7f6}=_0x4874e4,_0x3a9c19=(_0x146464=_0x4d2eb2[_0x3221ae(0x2d8)])!=null?_0x146464:{'actions':null},_0x1cae5f=_0x4874e4['params'];if(_0x1476ec&&_0x1476ec!==_0x29a0aa)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1476ec+_0x3221ae(0x4be)+_0x29a0aa+'.');return{..._0x4d2eb2,'id':_0x29a0aa,'type':_0x18c7f6,'params':{'unitId':_0x1cae5f[_0x3221ae(0x18d)],'textRanges':_0x1cae5f[_0x3221ae(0x209)],'actions':a[_0x3221ae(0x3e8)][_0x3221ae(0x31b)](_0x3a9c19[_0x3221ae(0x15b)],_0x1cae5f[_0x3221ae(0x15b)])}};},{})],_0x1c5260=(_0x3a470c=(_0x54a223=_0x5b0534[_0x54cfc4(0x17e)]())==null?void 0x0:_0x54a223[_0x54cfc4(0x4c6)])!=null?_0x3a470c:'unknown',_0x5d93a5=(_0x493183=(_0x377f17=_0x5b0534[_0x54cfc4(0x17e)]())==null?void 0x0:_0x377f17['memberID'])!=null?_0x493183:_0x54cfc4(0x28d);return{'changeset':{'unitID':_0x537af7,'type':_[_0x54cfc4(0x152)](_0x57a97b[_0x54cfc4(0x2b9)](_0x537af7)),'baseRev':_0x250b1f[_0x54cfc4(0x4db)](_0x537af7),'revision':0x0,'userID':_0x1c5260,'memberID':_0x5d93a5,'mutations':_0x545ad5},'pendingMutations':[]};}const As={'id':C[_0x49b0d1(0x3ba)]['id'],'type':a[_0x49b0d1(0x112)]['MUTATION'],'params':{}};var $s=Object['defineProperty'],js=Object[_0x49b0d1(0x26e)],z=(_0x28d286,_0x23958b,_0x4446a3,_0x51d926)=>{for(var _0x299697=_0x51d926>0x1?void 0x0:_0x51d926?js(_0x23958b,_0x4446a3):_0x23958b,_0x431420=_0x28d286['length']-0x1,_0x912368;_0x431420>=0x0;_0x431420--)(_0x912368=_0x28d286[_0x431420])&&(_0x299697=(_0x51d926?_0x912368(_0x23958b,_0x4446a3,_0x299697):_0x912368(_0x299697))||_0x299697);return _0x51d926&&_0x299697&&$s(_0x23958b,_0x4446a3,_0x299697),_0x299697;},g=(_0x2038ee,_0x1d1a12)=>(_0x549fcd,_0x3e2df6)=>_0x1d1a12(_0x549fcd,_0x3e2df6,_0x2038ee),y=(_0x68a9a8=>(_0x68a9a8[_0x49b0d1(0x2ae)]='not_collab',_0x68a9a8[_0x49b0d1(0x470)]=_0x49b0d1(0x35c),_0x68a9a8['PENDING']=_0x49b0d1(0x4e8),_0x68a9a8[_0x49b0d1(0x356)]='awaiting',_0x68a9a8['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x68a9a8[_0x49b0d1(0x179)]='fetch_missing',_0x68a9a8[_0x49b0d1(0x371)]=_0x49b0d1(0x26a),_0x68a9a8[_0x49b0d1(0xe6)]='offline',_0x68a9a8))(y||{});class J{constructor(_0x237799,_0x251abf,_0x503407,_0x51a0f7,_0x46fb1b,_0x10a10c,_0x28aa39,_0x5b534f,_0x468da1){const _0x20a1ce=_0x49b0d1;d(this,'_awaitingChangeset',null),d(this,_0x20a1ce(0x479),[]),(this[_0x20a1ce(0x4d1)]=_0x237799,this[_0x20a1ce(0x158)]=_0x251abf,this['_handler']=_0x46fb1b,this[_0x20a1ce(0x378)]=_0x10a10c,this[_0x20a1ce(0x161)]=_0x28aa39,this[_0x20a1ce(0x314)]=_0x5b534f,this['_localCacheService']=_0x468da1,this['_awaitingChangeset']=_0x503407,this[_0x20a1ce(0x479)]=_0x51a0f7);}['_checkMissing'](_0xde3e7e){const _0x116e01=_0x49b0d1,_0x22b545=this[_0x116e01(0x314)][_0x116e01(0x4db)](this[_0x116e01(0x4d1)]);return _0xde3e7e[_0x116e01(0x41f)]>_0x22b545+0x1?(this[_0x116e01(0x318)]['onMissingChangesets']({'from':_0x22b545,'to':_0xde3e7e[_0x116e01(0x41f)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x2f07fc){const _0xada15a=_0x49b0d1;this[_0xada15a(0x161)][_0xada15a(0x29c)](this[_0xada15a(0x4d1)],_0x2f07fc);}[_0x49b0d1(0x22f)](_0x3f5db4){const _0x13b3c0=_0x49b0d1;var _0x3d2f1b,_0x779a3d;(_0x779a3d=(_0x3d2f1b=this[_0x13b3c0(0x318)])[_0x13b3c0(0x1ae)])==null||_0x779a3d[_0x13b3c0(0x499)](_0x3d2f1b,_0x3f5db4);}[_0x49b0d1(0x1eb)](_0x1b629e){const _0x22c46a=_0x49b0d1;var _0x4e1972,_0x4d39e6;return(_0x4d39e6=(_0x4e1972=this[_0x22c46a(0x318)])[_0x22c46a(0x16f)])==null?void 0x0:_0x4d39e6[_0x22c46a(0x499)](_0x4e1972,_0x1b629e);}['_transformRemoteChangesetByIMECache'](_0x8acd46){const _0x7d28e3=_0x49b0d1;var _0x29f3f8,_0x145182,_0x55416b;return(_0x55416b=(_0x145182=(_0x29f3f8=this['_handler'])[_0x7d28e3(0x128)])==null?void 0x0:_0x145182[_0x7d28e3(0x499)](_0x29f3f8,_0x8acd46))!=null?_0x55416b:_0x8acd46;}[_0x49b0d1(0x4bd)](_0x22ad35){const _0x51e0b7=_0x49b0d1;var _0x5c8f30,_0x3f1472;if(this[_0x51e0b7(0x158)]===$['UNIVER_DOC']){const {unitID:_0x29af9c,mutations:_0x398039,memberID:_0xbfbe2b}=_0x22ad35,_0x2fc8f8=_0x398039[0x0][_0x51e0b7(0x2d8)]['textRanges'];Array['isArray'](_0x2fc8f8)&&_0x2fc8f8['length']>0x0&&((_0x3f1472=(_0x5c8f30=this['_handler'])[_0x51e0b7(0x24a)])==null||_0x3f1472[_0x51e0b7(0x499)](_0x5c8f30,{'unitID':_0x29af9c,'memberID':_0xbfbe2b,'textRanges':_0x2fc8f8}));}}[_0x49b0d1(0x4dd)](){const _0x599fe1=_0x49b0d1;this['_localCacheService'][_0x599fe1(0x2cf)](this['unitID'],this[_0x599fe1(0x158)],this[_0x599fe1(0x180)],this[_0x599fe1(0x479)]);}[_0x49b0d1(0x49c)](){const _0x4fba9b=_0x49b0d1;return this[_0x4fba9b(0x314)][_0x4fba9b(0x4db)](this[_0x4fba9b(0x4d1)]);}[_0x49b0d1(0x1f0)](){const _0x11a5a9=_0x49b0d1;this[_0x11a5a9(0x314)][_0x11a5a9(0x475)](this[_0x11a5a9(0x4d1)]);}['_executeRemoteChangeset'](_0x25982b){const _0x557c24=_0x49b0d1;var _0x4d4c29;const _0xc62a60=this['_transformRemoteChangesetByIMECache'](_0x25982b),_0x1d79e9=a[_0x557c24(0x1c9)](_0xc62a60['mutations'],this[_0x557c24(0x378)],{'fromCollab':!0x0});if(!_0x1d79e9[_0x557c24(0x4e2)])throw _0x1d79e9[_0x557c24(0x433)]instanceof Error?_0x1d79e9[_0x557c24(0x433)]:new Error((_0x4d4c29=_0x1d79e9[_0x557c24(0x433)])!=null?_0x4d4c29:_0x557c24(0x44e));this[_0x557c24(0x1eb)](_0xc62a60),this[_0x557c24(0x14f)](_0x25982b),this[_0x557c24(0x22f)](_0xc62a60),this[_0x557c24(0x4bd)](_0xc62a60),this[_0x557c24(0x1f0)]();}}let ie=class extends J{constructor(_0x3d2f44,_0x198a01,_0x10168e,_0x33b18c,_0x2a87fb,_0x3acca8,_0x19d416,_0x5b4565,_0x3d186b,_0x112d2d){const _0x387e2c=_0x49b0d1;super(_0x3d2f44,_0x198a01,null,[],_0x10168e,_0x5b4565,_0x19d416,_0x33b18c,_0x2a87fb),d(this,_0x387e2c(0x492),_0x387e2c(0x35c)),(this['_injector']=_0x3acca8,this['_logService']=_0x3d186b,this[_0x387e2c(0x430)]=_0x112d2d);}[_0x49b0d1(0x1e4)](_0x3f27c5){const _0x2fec52=_0x49b0d1,_0x3821f2=this[_0x2fec52(0x451)][_0x2fec52(0x11c)](x,this['unitID'],this[_0x2fec52(0x158)],[_0x3f27c5],this[_0x2fec52(0x318)]);return _0x3821f2[_0x2fec52(0x4ae)](),_0x3821f2[_0x2fec52(0x4dd)](),_0x3821f2;}[_0x49b0d1(0x47d)](_0x26581f){const _0x3cc91a=_0x49b0d1;if(this[_0x3cc91a(0x16c)](_0x26581f))return this[_0x3cc91a(0x451)]['createInstance'](H,this['unitID'],this[_0x3cc91a(0x158)],null,[],null,[_0x26581f],this[_0x3cc91a(0x318)]);try{const _0x24d4f5=this['_transformService'][_0x3cc91a(0x46e)](_0x26581f,[As]);if(_['isTransformMutationsWithChangesetSuccess'](_0x24d4f5)){const {c1Prime:_0x122308}=_0x24d4f5;return this[_0x3cc91a(0x117)](_0x122308),this;}throw _0x24d4f5[_0x3cc91a(0x433)];}catch(_0x4dd2a1){return this['_logService'][_0x3cc91a(0x433)](_0x4dd2a1),this[_0x3cc91a(0x2e1)](!0x1);}}['_onConflict'](_0x412628){const _0x3f134f=_0x49b0d1;return this[_0x3f134f(0x451)][_0x3f134f(0x11c)](F,this[_0x3f134f(0x4d1)],this[_0x3f134f(0x158)],null,[],this[_0x3f134f(0x318)],_0x412628);}[_0x49b0d1(0x2f6)](){const _0x119267=_0x49b0d1;throw new Error(_0x119267(0x4fa));}[_0x49b0d1(0x21b)](){const _0x28dd4f=_0x49b0d1;throw new Error(_0x28dd4f(0x1e8));}[_0x49b0d1(0x218)](){const _0x2e2dea=_0x49b0d1;return this['_injector'][_0x2e2dea(0x11c)](G,this[_0x2e2dea(0x4d1)],this[_0x2e2dea(0x158)],null,[],this[_0x2e2dea(0x318)]);}[_0x49b0d1(0x1b0)](){return this;}['resend'](){const _0x330de6=_0x49b0d1;throw new Error(_0x330de6(0x4b0));}[_0x49b0d1(0x34c)](){const _0x167797=_0x49b0d1,_0x415202=this[_0x167797(0x314)][_0x167797(0x4db)](this[_0x167797(0x4d1)]);return this[_0x167797(0x318)][_0x167797(0x3fc)]({'from':_0x415202,'to':0x0}),this[_0x167797(0x451)][_0x167797(0x11c)](H,this['unitID'],this[_0x167797(0x158)],null,[],null,[],this[_0x167797(0x318)]);}};ie=z([g(0x3,a[_0x49b0d1(0x257)](_['RevisionService'])),g(0x4,a['Inject'](exports['LocalCacheService'])),g(0x5,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),g(0x6,a[_0x49b0d1(0xe8)]),g(0x7,a['ICommandService']),g(0x8,a[_0x49b0d1(0x4fd)]),g(0x9,_[_0x49b0d1(0x2b2)])],ie);let x=class extends J{constructor(_0x149313,_0x14b362,_0x3d9c77,_0x105cff,_0x426440,_0x4c4d67,_0x4c5067,_0x490037,_0x116e99,_0x7d1ccf,_0x1958a1,_0x3510d0,_0x209731,_0x29b961){const _0xa9e67d=_0x49b0d1;super(_0x149313,_0x14b362,null,_0x3d9c77,_0x105cff,_0x7d1ccf,_0x29b961,_0x4c4d67,_0x4c5067),d(this,_0xa9e67d(0x492),_0xa9e67d(0x4e8)),d(this,_0xa9e67d(0x386),null),d(this,_0xa9e67d(0x1cd),null),(this[_0xa9e67d(0x451)]=_0x426440,this[_0xa9e67d(0x271)]=_0x490037,this['_logService']=_0x116e99,this[_0xa9e67d(0x1f4)]=_0x1958a1,this['_transformService']=_0x3510d0,this[_0xa9e67d(0x3e4)]=_0x209731);}[_0x49b0d1(0x1e4)](_0x587a5a){const _0x41b100=_0x49b0d1;return this[_0x41b100(0x479)]['push'](_0x587a5a),this[_0x41b100(0x4dd)](),this;}[_0x49b0d1(0x47d)](_0x53432e){const _0x2e0172=_0x49b0d1;if(this['_checkMissing'](_0x53432e))return this[_0x2e0172(0x4ea)](),this[_0x2e0172(0x451)][_0x2e0172(0x11c)](H,this[_0x2e0172(0x4d1)],this['type'],null,this['_pendingMutations'],null,[_0x53432e],this[_0x2e0172(0x318)]);try{const _0x28d7ec=this['_transformService']['transformMutationsWithChangeset'](_0x53432e,this[_0x2e0172(0x479)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x28d7ec)){const {c1Prime:_0x45bcf2,m2Prime:_0x2c7f5b}=_0x28d7ec;this[_0x2e0172(0x117)](_0x45bcf2);const _0x190418=this[_0x2e0172(0x451)][_0x2e0172(0x11c)](x,this[_0x2e0172(0x4d1)],this[_0x2e0172(0x158)],_0x2c7f5b,this['_handler']);return this['_clearScheduledTask'](),_0x190418[_0x2e0172(0x4ae)](this['_scheduleTimestamp']?Math[_0x2e0172(0x4aa)](0x0,new Date()[_0x2e0172(0x2a7)]()-this[_0x2e0172(0x386)]):this[_0x2e0172(0x31c)]()),_0x190418;}throw _0x28d7ec[_0x2e0172(0x433)];}catch(_0x4403c5){return this[_0x2e0172(0x200)][_0x2e0172(0x433)](_0x4403c5),this[_0x2e0172(0x2e1)](!0x1);}}[_0x49b0d1(0x2f6)](){const _0x88bef9=_0x49b0d1;throw new Error(_0x88bef9(0x463));}[_0x49b0d1(0x21b)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x49b0d1(0x218)](){const _0x8665e=_0x49b0d1;return this[_0x8665e(0x4ea)](),this[_0x8665e(0x451)][_0x8665e(0x11c)](G,this[_0x8665e(0x4d1)],this[_0x8665e(0x158)],null,this['_pendingMutations'],this['_handler']);}[_0x49b0d1(0x1b0)](){return this;}['_schedule'](_0x4205a4){const _0x4c5d15=_0x49b0d1,_0x1c9dc0=_0x4205a4!=null?_0x4205a4:this['_getSendChangesetTimeout']();this[_0x4c5d15(0x386)]=new Date()[_0x4c5d15(0x2a7)](),this[_0x4c5d15(0x1cd)]=window[_0x4c5d15(0x201)](()=>{const _0x22a2ce=_0x4c5d15;this[_0x22a2ce(0x4ea)]();let _0xa751cc=null;switch(this['type']){case $[_0x22a2ce(0x125)]:{_0xa751cc=it(this[_0x22a2ce(0x479)],this[_0x22a2ce(0x4d1)],this[_0x22a2ce(0x3e4)],this[_0x22a2ce(0x314)],this[_0x22a2ce(0x271)]);break;}case $[_0x22a2ce(0x215)]:{this['_pendingMutations'][_0x22a2ce(0x275)](_0x3c2b4b=>_0x3c2b4b['id']===V[_0x22a2ce(0x2c7)]['id'])?_0xa751cc=Ls(this[_0x22a2ce(0x479)],this[_0x22a2ce(0x4d1)],this[_0x22a2ce(0x3e4)],this[_0x22a2ce(0x314)],this[_0x22a2ce(0x271)]):_0xa751cc=it(this[_0x22a2ce(0x479)],this[_0x22a2ce(0x4d1)],this[_0x22a2ce(0x3e4)],this[_0x22a2ce(0x314)],this[_0x22a2ce(0x271)]);break;}default:throw new Error(_0x22a2ce(0x37b)+this[_0x22a2ce(0x158)]+'\x20in\x20_schedule.');}const {changeset:_0x880a3b,pendingMutations:_0x3405cb}=_0xa751cc;this[_0x22a2ce(0x318)][_0x22a2ce(0x207)](_0x880a3b);const _0x49ddeb=_0x3405cb['length']?this[_0x22a2ce(0x451)][_0x22a2ce(0x11c)](k,this[_0x22a2ce(0x4d1)],this[_0x22a2ce(0x158)],_0x880a3b,_0x3405cb,this[_0x22a2ce(0x318)]):this[_0x22a2ce(0x451)][_0x22a2ce(0x11c)](W,this[_0x22a2ce(0x4d1)],this[_0x22a2ce(0x158)],_0x880a3b,this['_handler']);_0x49ddeb[_0x22a2ce(0x4dd)](),this['_handler'][_0x22a2ce(0x1b2)](this,_0x49ddeb);},_0x1c9dc0);}['_getSendChangesetTimeout'](){const _0x3ee14c=_0x49b0d1;var _0x5cde42;const _0xa0bea6=this['_configService'][_0x3ee14c(0x20c)](L);return(_0x5cde42=_0xa0bea6==null?void 0x0:_0xa0bea6[_0x3ee14c(0x447)])!=null?_0x5cde42:Kt;}[_0x49b0d1(0x1f2)](){const _0xb9ae5b=_0x49b0d1;throw new Error(_0xb9ae5b(0xd6));}[_0x49b0d1(0x4ea)](){const _0x294625=_0x49b0d1;this['_sendingTimer']!=null&&(clearTimeout(this[_0x294625(0x1cd)]),this['_sendingTimer']=null);}[_0x49b0d1(0x2e1)](_0x14f1a4){const _0x5acdb5=_0x49b0d1;return this[_0x5acdb5(0x4ea)](),this[_0x5acdb5(0x451)][_0x5acdb5(0x11c)](F,this[_0x5acdb5(0x4d1)],this[_0x5acdb5(0x158)],null,this[_0x5acdb5(0x479)],this[_0x5acdb5(0x318)],_0x14f1a4);}};x=z([g(0x4,a[_0x49b0d1(0x257)](a['Injector'])),g(0x5,a[_0x49b0d1(0x257)](_[_0x49b0d1(0x3e9)])),g(0x6,a[_0x49b0d1(0x257)](exports[_0x49b0d1(0x1f7)])),g(0x7,a[_0x49b0d1(0x257)](q)),g(0x8,a[_0x49b0d1(0x4fd)]),g(0x9,a[_0x49b0d1(0x11b)]),g(0xa,a[_0x49b0d1(0x2b8)]),g(0xb,_[_0x49b0d1(0x2b2)]),g(0xc,a[_0x49b0d1(0xe5)]),g(0xd,a[_0x49b0d1(0xe8)])],x);let W=class extends J{constructor(_0x3d7a44,_0x12735c,_0x1057b,_0x102cd8,_0x1062c0,_0x8f608,_0x5ebbf2,_0x4b58f3,_0x25c9bb,_0x12ae4c,_0x1083bd){const _0x257a41=_0x49b0d1;super(_0x3d7a44,_0x12735c,_0x1057b,[],_0x102cd8,_0x4b58f3,_0x1083bd,_0x8f608,_0x5ebbf2),d(this,_0x257a41(0x492),_0x257a41(0x33c)),(this[_0x257a41(0x451)]=_0x1062c0,this[_0x257a41(0x200)]=_0x25c9bb,this[_0x257a41(0x430)]=_0x12ae4c);}['appendMutation'](_0x60b6fb){const _0x4de4e7=_0x49b0d1,_0x5a97f8=this[_0x4de4e7(0x451)][_0x4de4e7(0x11c)](k,this[_0x4de4e7(0x4d1)],this[_0x4de4e7(0x158)],this[_0x4de4e7(0x180)],[_0x60b6fb],this['_handler']);return _0x5a97f8[_0x4de4e7(0x4dd)](),_0x5a97f8;}[_0x49b0d1(0x47d)](_0x3df4cc){const _0x535355=_0x49b0d1;if(this['_checkMissing'](_0x3df4cc))return this[_0x535355(0x451)]['createInstance'](H,this[_0x535355(0x4d1)],this['type'],this[_0x535355(0x180)],[],null,[_0x3df4cc],this['_handler']);try{const _0x48c19d=this['_transformService'][_0x535355(0x2eb)]([_0x3df4cc],[this[_0x535355(0x180)]],!0x1);if(_[_0x535355(0x3b5)](_0x48c19d)){const {c1Prime:_0x4ed848,c2Prime:_0x3d30f6}=_0x48c19d;this[_0x535355(0x117)](_0x4ed848[0x0]),_0x3d30f6[0x0]['baseRev']=this[_0x535355(0x49c)]();const _0x10a1a5=this['_injector'][_0x535355(0x11c)](W,this[_0x535355(0x4d1)],this[_0x535355(0x158)],_0x3d30f6[0x0],this[_0x535355(0x318)]);return _0x10a1a5[_0x535355(0x4dd)](),_0x10a1a5;}return this[_0x535355(0x2e1)](!0x1);}catch(_0x3c3ae2){return this[_0x535355(0x200)][_0x535355(0x433)](_0x3c3ae2),this[_0x535355(0x2e1)](!0x1);}}[_0x49b0d1(0x2f6)](_0x332476){const _0x8bebf7=_0x49b0d1,_0x2e81be=this[_0x8bebf7(0x314)][_0x8bebf7(0x4db)](this['unitID']);if(_0x332476[_0x8bebf7(0x41f)]<_0x2e81be-0x1)return this;if(this[_0x8bebf7(0x16c)](_0x332476))return this[_0x8bebf7(0x451)]['createInstance'](H,this['unitID'],this[_0x8bebf7(0x158)],null,[],this[_0x8bebf7(0x180)],[],this['_handler']);this[_0x8bebf7(0x1f0)]();const _0x3433d8=this[_0x8bebf7(0x451)][_0x8bebf7(0x11c)](ie,this[_0x8bebf7(0x4d1)],this[_0x8bebf7(0x158)],this[_0x8bebf7(0x318)]);return _0x3433d8[_0x8bebf7(0x4dd)](),_0x3433d8;}[_0x49b0d1(0x21b)](_0x59d0f8){const _0x370bdf=_0x49b0d1;return this[_0x370bdf(0x2e1)](!!(_0x59d0f8!=null&&_0x59d0f8[_0x370bdf(0x3c9)]));}[_0x49b0d1(0x218)](){const _0x3fcac2=_0x49b0d1;return this['_injector'][_0x3fcac2(0x11c)](G,this[_0x3fcac2(0x4d1)],this[_0x3fcac2(0x158)],this[_0x3fcac2(0x180)],[],this['_handler']);}[_0x49b0d1(0x1b0)](){return this;}['resend'](){const _0x3222c9=_0x49b0d1;this[_0x3222c9(0x318)][_0x3222c9(0x207)](this[_0x3222c9(0x180)]);}['_onConflict'](_0x402059){const _0x49c87e=_0x49b0d1;return this['_injector']['createInstance'](F,this[_0x49c87e(0x4d1)],this[_0x49c87e(0x158)],this[_0x49c87e(0x180)],[],this[_0x49c87e(0x318)],_0x402059);}};W=z([g(0x4,a['Inject'](a[_0x49b0d1(0x20d)])),g(0x5,a[_0x49b0d1(0x257)](_[_0x49b0d1(0x3e9)])),g(0x6,a[_0x49b0d1(0x257)](exports[_0x49b0d1(0x1f7)])),g(0x7,a[_0x49b0d1(0x11b)]),g(0x8,a[_0x49b0d1(0x4fd)]),g(0x9,_[_0x49b0d1(0x2b2)]),g(0xa,a['IUndoRedoService'])],W);let k=class extends J{constructor(_0xb42634,_0xe51aa7,_0x5ac9dc,_0x574380,_0x5e542b,_0x282819,_0x522bba,_0x730227,_0x2a0162,_0x546092,_0x519a42,_0x5ddd32){const _0x402b9f=_0x49b0d1;super(_0xb42634,_0xe51aa7,_0x5ac9dc,_0x574380,_0x5e542b,_0x2a0162,_0x5ddd32,_0x522bba,_0x730227),d(this,_0x402b9f(0x492),_0x402b9f(0x19b)),(this[_0x402b9f(0x451)]=_0x282819,this[_0x402b9f(0x200)]=_0x546092,this[_0x402b9f(0x430)]=_0x519a42);}['appendMutation'](_0x195237){const _0xec48a1=_0x49b0d1;return this['_pendingMutations'][_0xec48a1(0x231)](_0x195237),this;}['onRemoteChangeset'](_0x106425){const _0x58d5ab=_0x49b0d1;if(this[_0x58d5ab(0x16c)](_0x106425))return this['_injector'][_0x58d5ab(0x11c)](H,this[_0x58d5ab(0x4d1)],this[_0x58d5ab(0x158)],this[_0x58d5ab(0x180)],this[_0x58d5ab(0x479)],null,[_0x106425],this['_handler']);try{const _0x43b024=this[_0x58d5ab(0x430)][_0x58d5ab(0x2eb)]([_0x106425],[this[_0x58d5ab(0x180)]],!0x1);if(_[_0x58d5ab(0x3b5)](_0x43b024)){const {c1Prime:_0x4ebc63,c2Prime:_0x4998b7}=_0x43b024,_0x4b7253=this[_0x58d5ab(0x430)][_0x58d5ab(0x46e)](_0x4ebc63[0x0],this['_pendingMutations']);if(_[_0x58d5ab(0x25f)](_0x4b7253)){const {c1Prime:_0x227f89,m2Prime:_0xa6d050}=_0x4b7253;return this[_0x58d5ab(0x117)](_0x227f89),_0x4998b7[0x0][_0x58d5ab(0x361)]=this['_getCurrentRevision'](),this[_0x58d5ab(0x451)][_0x58d5ab(0x11c)](k,this[_0x58d5ab(0x4d1)],this['type'],_0x4998b7[0x0],_0xa6d050,this[_0x58d5ab(0x318)]);}throw _0x4b7253[_0x58d5ab(0x433)];}throw _0x43b024['error'];}catch(_0x382644){return this[_0x58d5ab(0x200)][_0x58d5ab(0x433)](_0x382644),this[_0x58d5ab(0x2e1)](!0x1);}}[_0x49b0d1(0x2f6)](_0x4247a5){const _0x1bf4ed=_0x49b0d1;if(this[_0x1bf4ed(0x16c)](_0x4247a5))return this[_0x1bf4ed(0x451)]['createInstance'](H,this[_0x1bf4ed(0x4d1)],this['type'],null,this[_0x1bf4ed(0x479)],this[_0x1bf4ed(0x180)],[],this[_0x1bf4ed(0x318)]);this['_incrementRevisionNumber']();const _0x21696d=this['_injector']['createInstance'](x,this['unitID'],this[_0x1bf4ed(0x158)],this[_0x1bf4ed(0x479)],this[_0x1bf4ed(0x318)]);return _0x21696d['_schedule'](),_0x21696d[_0x1bf4ed(0x4dd)](),_0x21696d;}['onRemoteRej'](_0x2868ae){const _0x368dbf=_0x49b0d1;return this[_0x368dbf(0x2e1)](!!(_0x2868ae!=null&&_0x2868ae[_0x368dbf(0x3c9)]));}[_0x49b0d1(0x218)](){const _0x3478e3=_0x49b0d1;return this[_0x3478e3(0x451)][_0x3478e3(0x11c)](G,this[_0x3478e3(0x4d1)],this[_0x3478e3(0x158)],this[_0x3478e3(0x180)],this[_0x3478e3(0x479)],this[_0x3478e3(0x318)]);}['toggleOnline'](){return this;}[_0x49b0d1(0x1f2)](){const _0x2e72f0=_0x49b0d1;this['_handler']['onSendChangeset'](this[_0x2e72f0(0x180)]);}[_0x49b0d1(0x2e1)](_0xacf927){const _0x9a6993=_0x49b0d1;return this[_0x9a6993(0x451)][_0x9a6993(0x11c)](F,this[_0x9a6993(0x4d1)],this[_0x9a6993(0x158)],null,this[_0x9a6993(0x479)],this[_0x9a6993(0x318)],_0xacf927);}};k=z([g(0x5,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),g(0x6,a[_0x49b0d1(0x257)](_[_0x49b0d1(0x3e9)])),g(0x7,a['Inject'](exports[_0x49b0d1(0x1f7)])),g(0x8,a[_0x49b0d1(0x11b)]),g(0x9,a[_0x49b0d1(0x4fd)]),g(0xa,_[_0x49b0d1(0x2b2)]),g(0xb,a[_0x49b0d1(0xe8)])],k);let F=class extends J{constructor(_0x541446,_0x34863e,_0x555253,_0x34ca25,_0x212fd0,_0x4739ac=!0x1,_0x1a762c,_0x304c2e,_0x1c75fb,_0x16b71c,_0x57ec99,_0x172d56,_0xb3bfda){const _0x31fa49=_0x49b0d1;super(_0x541446,_0x34863e,_0x555253,_0x34ca25,_0x212fd0,_0x304c2e,_0x1c75fb,_0x57ec99,_0x16b71c),d(this,_0x31fa49(0x492),_0x31fa49(0x26a)),(this['_isPermissionRej']=_0x4739ac,this['_permissionService']=_0x1a762c,this[_0x31fa49(0x29e)]=_0x172d56,this[_0x31fa49(0x12a)]=_0xb3bfda,this['_showConflictNotification'](),this[_0x31fa49(0x3c0)](),this['_disableEditing']());}[_0x49b0d1(0x1e4)](){return this;}[_0x49b0d1(0x47d)](){return this;}[_0x49b0d1(0x2f6)](){return this;}[_0x49b0d1(0x21b)](){return this;}[_0x49b0d1(0x218)](){return this;}[_0x49b0d1(0x1b0)](){return this;}[_0x49b0d1(0x1f2)](){const _0x464f27=_0x49b0d1;throw new Error(_0x464f27(0x489));}[_0x49b0d1(0x3c0)](){const _0x205cd3=_0x49b0d1;this[_0x205cd3(0x2ac)][_0x205cd3(0x2cf)](this[_0x205cd3(0x4d1)],this[_0x205cd3(0x158)],null,[]);}[_0x49b0d1(0x277)](){const _0x40a0a5=_0x49b0d1;this[_0x40a0a5(0x145)]?this[_0x40a0a5(0x12a)][_0x40a0a5(0x4d7)]({'title':this['_localeService']['t'](_0x40a0a5(0x46c)),'content':this[_0x40a0a5(0x29e)]['t'](_0x40a0a5(0x23a)),'type':_0x40a0a5(0x433),'duration':0x0}):this[_0x40a0a5(0x12a)][_0x40a0a5(0x4d7)]({'title':this[_0x40a0a5(0x29e)]['t'](_0x40a0a5(0x382)),'content':this['_localeService']['t']('conflict.content'),'type':_0x40a0a5(0x433),'duration':0x0});}['_disableEditing'](){const _0x81bb7b=_0x49b0d1;this[_0x81bb7b(0x2cb)][_0x81bb7b(0x4f0)](new C[(_0x81bb7b(0x15e))](this[_0x81bb7b(0x4d1)])['id'],!0x1);}};F=z([g(0x6,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x235)])),g(0x7,a['ICommandService']),g(0x8,a[_0x49b0d1(0xe8)]),g(0x9,a[_0x49b0d1(0x257)](exports['LocalCacheService'])),g(0xa,a[_0x49b0d1(0x257)](_[_0x49b0d1(0x3e9)])),g(0xb,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x339)])),g(0xc,N[_0x49b0d1(0x432)])],F);let G=class extends J{constructor(_0x12857c,_0x5a5566,_0x11a6c8,_0x4c8fdf,_0xe9118a,_0x4066b0,_0x2af7ff,_0x515e97,_0x37b278,_0x47bfcc){const _0x3636dc=_0x49b0d1;super(_0x12857c,_0x5a5566,_0x11a6c8,_0x4c8fdf,_0xe9118a,_0x37b278,_0x47bfcc,_0x2af7ff,_0x515e97),d(this,_0x3636dc(0x492),'offline'),this[_0x3636dc(0x451)]=_0x4066b0;}[_0x49b0d1(0x1e4)](_0x5ce20d){const _0x4bffd6=_0x49b0d1;return this[_0x4bffd6(0x479)][_0x4bffd6(0x231)](_0x5ce20d),this['_updateLocalCache'](),this;}[_0x49b0d1(0x47d)](_0x5948c3){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x49b0d1(0x2f6)](){const _0x175f84=_0x49b0d1;throw new Error(_0x175f84(0x4ab));}['onRemoteRej'](){const _0x1d1afa=_0x49b0d1;throw new Error(_0x1d1afa(0x115));}[_0x49b0d1(0x218)](){return this;}[_0x49b0d1(0x1b0)](){const _0x227f1d=_0x49b0d1,{_injector:_0xa821f,_pendingMutations:_0x15b785,_awaitingChangeset:_0x54e5c4,unitID:_0xae1bf8,_handler:_0x1e7b52,type:_0x3c798b}=this,_0x47ea78=Rt(_0xa821f,_0xae1bf8,_0x3c798b,_0x54e5c4,_0x15b785,_0x1e7b52);return _0x47ea78 instanceof x?_0x47ea78['_schedule']():(_0x47ea78 instanceof k||_0x47ea78 instanceof W)&&_0x47ea78[_0x227f1d(0x1f2)](),_0x47ea78;}['resend'](){const _0x13ae98=_0x49b0d1;throw new Error(_0x13ae98(0x490));}};G=z([g(0x5,a[_0x49b0d1(0x257)](a['Injector'])),g(0x6,a['Inject'](_[_0x49b0d1(0x3e9)])),g(0x7,a[_0x49b0d1(0x257)](exports[_0x49b0d1(0x1f7)])),g(0x8,a[_0x49b0d1(0x11b)]),g(0x9,a[_0x49b0d1(0xe8)])],G);let H=class extends J{constructor(_0x409a7a,_0x5e6d36,_0x1b2c9d,_0x169c0f,_0x5ef9f0,_0x2931ac,_0x3e363c,_0x122107,_0x18ed72,_0x9629b2,_0x2cb8a4,_0xbc85e4,_0x2e6dd2,_0x257f34){const _0x5379c5=_0x49b0d1;super(_0x409a7a,_0x5e6d36,_0x1b2c9d,_0x169c0f,_0x3e363c,_0xbc85e4,_0x2e6dd2,_0x18ed72,_0x9629b2),d(this,_0x5379c5(0x492),_0x5379c5(0x274)),(this['_acknowledgedAwaitingChangeset']=_0x5ef9f0,this[_0x5379c5(0x122)]=_0x2931ac,this['_injector']=_0x122107,this['_logService']=_0x2cb8a4,this[_0x5379c5(0x430)]=_0x257f34);}[_0x49b0d1(0x131)](_0x45fe01){const _0x2523a5=_0x49b0d1;try{const _0x4c0976=[..._0x45fe01,...this[_0x2523a5(0x122)]],_0x4de2c4=[this[_0x2523a5(0x180)]||this['_acknowledgedAwaitingChangeset']][_0x2523a5(0x2ba)](_0x59e185=>!!_0x59e185);let _0x4f4a2a,_0x4eaba0;if(_0x4de2c4['length']){const _0x2870c2=this[_0x2523a5(0x430)]['transformChangesets'](_0x4c0976,_0x4de2c4,!0x1);if(!_[_0x2523a5(0x3b5)](_0x2870c2))throw _0x2870c2[_0x2523a5(0x433)];_0x4f4a2a=_0x2870c2[_0x2523a5(0x43c)],_0x4eaba0=_0x2870c2[_0x2523a5(0x1d9)];}else _0x4f4a2a=_0x4c0976,_0x4eaba0=[];let _0x59797d=this[_0x2523a5(0x479)];_0x4f4a2a['forEach'](_0x33f4ed=>{const _0x5ae0ef=_0x2523a5;let _0x32236a;if(_0x59797d[_0x5ae0ef(0x429)]){const _0x4a1994=this[_0x5ae0ef(0x430)]['transformMutationsWithChangeset'](_0x33f4ed,_0x59797d);if(!_[_0x5ae0ef(0x25f)](_0x4a1994))throw _0x4a1994[_0x5ae0ef(0x433)];_0x32236a=_0x4a1994['c1Prime'],_0x59797d=_0x4a1994[_0x5ae0ef(0x1c2)];}else _0x32236a=_0x33f4ed;this[_0x5ae0ef(0x117)](_0x32236a);}),this[_0x2523a5(0x4ec)]&&this[_0x2523a5(0x1f0)](),this[_0x2523a5(0x180)]&&_0x4eaba0[_0x2523a5(0x429)]&&(_0x4eaba0[0x0][_0x2523a5(0x361)]=this[_0x2523a5(0x49c)]());let _0x3b41ca;if(this['_awaitingChangeset']&&_0x59797d[_0x2523a5(0x429)]!==0x0)_0x3b41ca=this['_injector'][_0x2523a5(0x11c)](k,this[_0x2523a5(0x4d1)],this[_0x2523a5(0x158)],_0x4eaba0[0x0],_0x59797d,this['_handler']);else{if(this['_awaitingChangeset']&&_0x59797d[_0x2523a5(0x429)]===0x0)_0x4eaba0[0x0][_0x2523a5(0x361)]=this[_0x2523a5(0x49c)](),_0x3b41ca=this[_0x2523a5(0x451)][_0x2523a5(0x11c)](W,this[_0x2523a5(0x4d1)],this['type'],_0x4eaba0[0x0],this[_0x2523a5(0x318)]);else{if(_0x59797d['length']!==0x0){const _0x51baf9=this[_0x2523a5(0x451)][_0x2523a5(0x11c)](x,this[_0x2523a5(0x4d1)],this[_0x2523a5(0x158)],_0x59797d,this[_0x2523a5(0x318)]);_0x51baf9[_0x2523a5(0x4ae)](),_0x3b41ca=_0x51baf9;}else _0x3b41ca=this['_injector'][_0x2523a5(0x11c)](ie,this[_0x2523a5(0x4d1)],this[_0x2523a5(0x158)],this[_0x2523a5(0x318)]);}}return _0x3b41ca['_updateLocalCache'](),_0x3b41ca;}catch(_0x555ad1){return this[_0x2523a5(0x200)]['error'](_0x2523a5(0x1ea),_0x2523a5(0x3fd),_0x555ad1),this[_0x2523a5(0x451)]['createInstance'](F,this[_0x2523a5(0x4d1)],this['type'],this['_awaitingChangeset'],this[_0x2523a5(0x479)],this[_0x2523a5(0x318)],!0x1);}}[_0x49b0d1(0x1f2)](){const _0x50badc=_0x49b0d1;throw new Error(_0x50badc(0x30d));}[_0x49b0d1(0x1e4)](_0x131015){const _0x68666e=_0x49b0d1;return this[_0x68666e(0x479)]['push'](_0x131015),this;}[_0x49b0d1(0x47d)](_0x348455){const _0x4ae479=_0x49b0d1;return this[_0x4ae479(0x122)][_0x4ae479(0x231)](_0x348455),this;}[_0x49b0d1(0x2f6)](_0x43d691){const _0x2ccb6b=_0x49b0d1;if(this[_0x2ccb6b(0x180)])return this['_acknowledgedAwaitingChangeset']=this[_0x2ccb6b(0x180)],this['_awaitingChangeset']=null,this;throw new Error(_0x2ccb6b(0x3f2));}['onRemoteRej'](_0x5d2fcf){const _0x2946ba=_0x49b0d1;return this[_0x2946ba(0x2e1)](!!(_0x5d2fcf!=null&&_0x5d2fcf[_0x2946ba(0x3c9)]));}[_0x49b0d1(0x218)](){const _0x405d30=_0x49b0d1;return this[_0x405d30(0x451)][_0x405d30(0x11c)](G,this[_0x405d30(0x4d1)],this[_0x405d30(0x158)],this['_awaitingChangeset'],this[_0x405d30(0x479)],this[_0x405d30(0x318)]);}[_0x49b0d1(0x1b0)](){return this;}[_0x49b0d1(0x2e1)](_0x42cb7a){const _0x325c5a=_0x49b0d1;return this['_injector'][_0x325c5a(0x11c)](F,this['unitID'],this[_0x325c5a(0x158)],this['_awaitingChangeset'],this[_0x325c5a(0x479)],this['_handler'],_0x42cb7a);}};H=z([g(0x7,a['Inject'](a[_0x49b0d1(0x20d)])),g(0x8,a[_0x49b0d1(0x257)](_['RevisionService'])),g(0x9,a['Inject'](exports[_0x49b0d1(0x1f7)])),g(0xa,a[_0x49b0d1(0x4fd)]),g(0xb,a[_0x49b0d1(0x11b)]),g(0xc,a['IUndoRedoService']),g(0xd,_['ITransformService'])],H);function Rt(_0x476925,_0x42fbca,_0x1d5631,_0x57fffa,_0x3e8948,_0x11440c){const _0x452923=_0x49b0d1;return _0x57fffa&&_0x3e8948[_0x452923(0x429)]?_0x476925[_0x452923(0x11c)](k,_0x42fbca,_0x1d5631,_0x57fffa,_0x3e8948,_0x11440c):_0x57fffa?_0x476925[_0x452923(0x11c)](W,_0x42fbca,_0x1d5631,_0x57fffa,_0x11440c):_0x3e8948[_0x452923(0x429)]?_0x476925[_0x452923(0x11c)](x,_0x42fbca,_0x1d5631,_0x3e8948,_0x11440c):_0x476925[_0x452923(0x11c)](ie,_0x42fbca,_0x1d5631,_0x11440c);}var Hs=Object[_0x49b0d1(0x37d)],xs=Object[_0x49b0d1(0x26e)],Ke=(_0x47a10d,_0x5ea4c0,_0x588ab1,_0xb3b52c)=>{const _0x45cee5=_0x49b0d1;for(var _0x21fdfd=_0xb3b52c>0x1?void 0x0:_0xb3b52c?xs(_0x5ea4c0,_0x588ab1):_0x5ea4c0,_0xccff08=_0x47a10d[_0x45cee5(0x429)]-0x1,_0x4f61eb;_0xccff08>=0x0;_0xccff08--)(_0x4f61eb=_0x47a10d[_0xccff08])&&(_0x21fdfd=(_0xb3b52c?_0x4f61eb(_0x5ea4c0,_0x588ab1,_0x21fdfd):_0x4f61eb(_0x21fdfd))||_0x21fdfd);return _0xb3b52c&&_0x21fdfd&&Hs(_0x5ea4c0,_0x588ab1,_0x21fdfd),_0x21fdfd;},I=(_0x644da1,_0x131f56)=>(_0x1d4ea7,_0x556c6e)=>_0x131f56(_0x1d4ea7,_0x556c6e,_0x644da1);exports[_0x49b0d1(0x33f)]=class extends a[_0x49b0d1(0x3b6)]{constructor(_0x275fe8,_0x3e7c5f,_0x520278,_0x27b7d8,_0x619716,_0xfb15b4,_0x2c6d41,_0x59bb5a,_0x3f1cd3,_0x3058cc,_0x1ea919,_0x1bed72,_0x3bb35e){const _0xc286f2=_0x49b0d1;super(),d(this,_0xc286f2(0x48b),new v[(_0xc286f2(0x17f))](null)),d(this,_0xc286f2(0x188),this[_0xc286f2(0x48b)][_0xc286f2(0x42a)]()),d(this,_0xc286f2(0x4da)),d(this,'_collaborationPaused',!0x1),d(this,_0xc286f2(0x171),this[_0xc286f2(0x188)]['pipe'](v[_0xc286f2(0xf1)](_0xc6d483=>_0xc6d483?_0xc6d483[_0xc286f2(0x492)]:y[_0xc286f2(0xe6)]),v[_0xc286f2(0x2a9)](0x1))),d(this,_0xc286f2(0x4b1),!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0xc286f2(0x4d1)]=_0x275fe8,this[_0xc286f2(0x449)]=_0x3e7c5f,this[_0xc286f2(0x4b3)]=_0x520278,this[_0xc286f2(0x451)]=_0x27b7d8,this['_localCacheService']=_0x619716,this[_0xc286f2(0x1ec)]=_0xfb15b4,this[_0xc286f2(0x29e)]=_0x2c6d41,this['_revisionService']=_0x59bb5a,this[_0xc286f2(0x200)]=_0x3f1cd3,this[_0xc286f2(0x378)]=_0x3058cc,this[_0xc286f2(0x1a7)]=_0x1ea919,this['_permissionService']=_0x1bed72,this[_0xc286f2(0xef)]=_0x3bb35e);}get[_0x49b0d1(0x249)](){const _0xbd4484=_0x49b0d1;return this[_0xbd4484(0x4da)];}async[_0x49b0d1(0x142)](){const _0xaae7=_0x49b0d1;if(this[_0xaae7(0x249)])throw new Error(_0xaae7(0x312));await this[_0xaae7(0x1d0)]();}[_0x49b0d1(0x12c)](){const _0x75edd2=_0x49b0d1;return this[_0x75edd2(0x40a)]=!0x0,a[_0x75edd2(0x41b)](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x49b0d1(0x477)](_0x13873b){const _0x2fed91=_0x49b0d1;this[_0x2fed91(0x4da)]=_0x13873b,this['_state$'][_0x2fed91(0x329)](_0x13873b);}async[_0x49b0d1(0x1d0)](){const _0xc0a235=_0x49b0d1;var _0xa1f486;this[_0xc0a235(0x477)](await this[_0xc0a235(0x2bb)]()),this[_0xc0a235(0xef)]&&((_0xa1f486=this[_0xc0a235(0xef)])==null||_0xa1f486[_0xc0a235(0x2d6)](this[_0xc0a235(0x4d1)]),this[_0xc0a235(0x357)](this['_singleActiveUnitService'][_0xc0a235(0x3e0)](this[_0xc0a235(0x4d1)])[_0xc0a235(0x4ba)](_0x100e68=>{const _0x11c602=_0xc0a235;this[_0x11c602(0x200)][_0x11c602(0x1c5)](_0x11c602(0x4a3),'editing\x20status\x20changed\x20to',_0x100e68),_0x100e68===bt[_0x11c602(0x143)]?(this['_messageService']['show']({'content':this['_localeService']['t']('collaboration.single-unit.warning'),'type':X[_0x11c602(0x248)][_0x11c602(0x3ff)]}),this[_0x11c602(0x2cb)][_0x11c602(0x4f0)](new C[(_0x11c602(0x15e))](this[_0x11c602(0x4d1)])['id'],!0x1)):this['_permissionService'][_0x11c602(0x4f0)](new C[(_0x11c602(0x15e))](this[_0x11c602(0x4d1)])['id'],!0x0);})));let _0x579e57=!0x1;return this['disposeWithMe'](this['session'][_0xc0a235(0x1fc)]['subscribe'](_0x5c403a=>{const _0xf1cc95=_0xc0a235;_0x5c403a===j['ONLINE']?this[_0xf1cc95(0x4e7)](_0x579e57):_0x5c403a===j['OFFLINE']&&(_0x579e57=!0x0,this['_toggleOffline']());})),this[_0xc0a235(0x357)](this[_0xc0a235(0x449)][_0xc0a235(0x272)][_0xc0a235(0x4ba)](_0xf6f5ab=>{const _0x2a4071=_0xc0a235;try{switch(_0xf6f5ab['eventID']){case _[_0x2a4071(0x254)][_0x2a4071(0x4c0)]:{this[_0x2a4071(0x491)](_['parseProtocolChangeset'](_0xf6f5ab['data']));break;}case _[_0x2a4071(0x254)][_0x2a4071(0x1a9)]:{this[_0x2a4071(0x325)](_0xf6f5ab[_0x2a4071(0x165)]);break;}case _[_0x2a4071(0x254)][_0x2a4071(0x16b)]:{this[_0x2a4071(0x4c1)]();break;}case _[_0x2a4071(0x254)][_0x2a4071(0x190)]:{this['_onFetchMissResult'](_0xf6f5ab[_0x2a4071(0x165)]['changesets'][_0x2a4071(0xf1)](_0x44bfa3=>_[_0x2a4071(0x22c)](_0x44bfa3)));break;}case _[_0x2a4071(0x254)][_0x2a4071(0x193)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x352371){throw console['error']('Error\x20on\x20receiving\x20event',_0x352371),_0x352371;}})),this[_0xc0a235(0x4da)];}[_0x49b0d1(0x38a)](){this['_transitionLocked']=!0x1;}[_0x49b0d1(0x446)](){const _0x3e23c9=_0x49b0d1;if(this[_0x3e23c9(0x4b1)])throw new Error(_0x3e23c9(0x305));this[_0x3e23c9(0x4b1)]=!0x0;}['_onLocalMutation'](_0x529d00){const _0x5d0b1d=_0x49b0d1;this['_lockTransition'](),this[_0x5d0b1d(0x477)](this[_0x5d0b1d(0x4da)][_0x5d0b1d(0x1e4)](_0x529d00)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x594f25){const _0x40b52b=_0x49b0d1;if(!(_0x594f25['revision']<=this['_revisionService'][_0x40b52b(0x4db)](this['unitID']))){if(this[_0x40b52b(0x40a)]){this[_0x40b52b(0x1ef)][_0x40b52b(0x231)](_0x594f25);return;}this[_0x40b52b(0x3fb)](_0x594f25);}}[_0x49b0d1(0x2f2)](){const _0x3aa29e=_0x49b0d1;this[_0x3aa29e(0x1ef)][_0x3aa29e(0x287)](_0x1a475f=>this['_applyRemoteChangeset'](_0x1a475f)),this['_remoteChangesetQueue']=[];}[_0x49b0d1(0x3fb)](_0xfe5690){const _0x2c82f6=_0x49b0d1,_0xc7c4d9=this[_0x2c82f6(0x1ec)][_0x2c82f6(0x18f)]['fetchThroughInterceptors'](this[_0x2c82f6(0x1ec)][_0x2c82f6(0x18f)][_0x2c82f6(0x26f)]()[_0x2c82f6(0x4a0)])(_0xfe5690[_0x2c82f6(0x2a3)],null)||_0xfe5690[_0x2c82f6(0x2a3)],_0x214703={..._0xfe5690,'mutations':_0xc7c4d9};this[_0x2c82f6(0x446)](),this[_0x2c82f6(0x477)](this[_0x2c82f6(0x4da)]['onRemoteChangeset'](_0x214703)),this[_0x2c82f6(0x38a)]();}[_0x49b0d1(0x325)](_0x33bf9b){const _0xd62a3a=_0x49b0d1;this[_0xd62a3a(0x446)](),this[_0xd62a3a(0x477)](this[_0xd62a3a(0x4da)][_0xd62a3a(0x2f6)](_0x33bf9b)),this[_0xd62a3a(0x38a)]();}['_onRemoteRejected'](_0x53d88d){const _0x3ed891=_0x49b0d1;this[_0x3ed891(0x446)](),this[_0x3ed891(0x477)](this['_state']['onRemoteRej'](_0x53d88d)),this[_0x3ed891(0x38a)]();}[_0x49b0d1(0x202)](_0x2403af){const _0x5c4971=_0x49b0d1;if(!(this[_0x5c4971(0x4da)]instanceof H))throw new TypeError(_0x5c4971(0x4e1));const _0xb4e562=_0x2403af[_0x5c4971(0xf1)](_0x3516f2=>{const _0x112165=_0x5c4971,_0x270631=this[_0x112165(0x1ec)][_0x112165(0x18f)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x112165(0x18f)][_0x112165(0x26f)]()[_0x112165(0x4a0)])(_0x3516f2['mutations'],null)||_0x3516f2[_0x112165(0x2a3)];return{..._0x3516f2,'mutations':_0x270631};});this[_0x5c4971(0x446)](),this['_updateState'](this['_state'][_0x5c4971(0x131)](_0xb4e562)),this['_unlockTransition']();}['_toggleOffline'](){const _0x176ebb=_0x49b0d1;this['_lockTransition'](),this[_0x176ebb(0x477)](this['_state'][_0x176ebb(0x218)]()),this['_unlockTransition']();}[_0x49b0d1(0x4e7)](_0x326844=!0x1){const _0x6a26fd=_0x49b0d1;this['_lockTransition'](),this[_0x6a26fd(0x477)](this[_0x6a26fd(0x4da)]['toggleOnline']()),this['_unlockTransition']();const _0x458d94=this[_0x6a26fd(0x4da)];_0x326844&&_0x458d94 instanceof ie&&(this[_0x6a26fd(0x446)](),this['_updateState'](_0x458d94[_0x6a26fd(0x34c)]()),this[_0x6a26fd(0x38a)]());}async['_createInitialState'](){return new Promise(_0x11234e=>{const _0x15eca6=_0x5144;this[_0x15eca6(0x449)][_0x15eca6(0x1fc)][_0x15eca6(0x110)](v[_0x15eca6(0x30a)](0x1))[_0x15eca6(0x4ba)](async _0x5f57d7=>{_0x11234e(await this['_createInitialStateImpl'](_0x5f57d7===j['ONLINE']));});});}['_createHandler'](){const _0x106486=_0x49b0d1,_0x4bebc4=this[_0x106486(0x4d1)];return{'onStateChange':(_0x2cc4bd,_0x25e59c)=>{const _0x3b0744=_0x106486;if(_0x2cc4bd!==this[_0x3b0744(0x4da)])throw new Error(_0x3b0744(0x4e6)+_0x2cc4bd[_0x3b0744(0x492)]+_0x3b0744(0x3b3)+_0x25e59c[_0x3b0744(0x492)]+_0x3b0744(0x407)+this['_state'][_0x3b0744(0x492)]);this[_0x3b0744(0x477)](_0x25e59c);},'onSendChangeset':_0x243c5d=>{const _0x4f5651=_0x106486,_0x4d2acc={'eventID':_[_0x4f5651(0x254)][_0x4f5651(0xf5)],'data':{'unitID':_0x243c5d[_0x4f5651(0x4d1)],'unitType':this[_0x4f5651(0x4b3)],'changeset':_0x243c5d,'memberID':this['session'][_0x4f5651(0x24b)]()}};this[_0x4f5651(0x449)][_0x4f5651(0x366)](_0x4d2acc,this['unitID']);},'onMissingChangesets':({from:_0x318da4,to:_0x4ffa92})=>{const _0x4d089a=_0x106486;this[_0x4d089a(0x200)][_0x4d089a(0x1c5)](_0x4d089a(0x4a3),_0x4d089a(0x3cb)+_0x318da4+_0x4d089a(0x189)+_0x4ffa92);const _0x457519={'eventID':_[_0x4d089a(0x254)][_0x4d089a(0x316)],'data':{'unitID':_0x4bebc4,'unitType':this['_type'],'from':_0x318da4,'to':_0x4ffa92}};this['session'][_0x4d089a(0x366)](_0x457519,this[_0x4d089a(0x4d1)]);}};}async[_0x49b0d1(0x334)](_0x54681e){const _0x4079be=_0x49b0d1;var _0x12ec0a,_0xfbec43;const _0xca0fa1=await this[_0x4079be(0x2ac)]['loadOfflineData'](this['unitID']),_0x59a99c=(_0x12ec0a=_0xca0fa1==null?void 0x0:_0xca0fa1['mutations'])!=null?_0x12ec0a:[],_0x589f42=(_0xfbec43=_0xca0fa1==null?void 0x0:_0xca0fa1[_0x4079be(0x47b)])!=null?_0xfbec43:null,_0x58e316=this[_0x4079be(0x4d1)];try{this[_0x4079be(0xf8)](_0x589f42,_0x59a99c);}catch(_0x21b237){this['_logService']['error'](_0x21b237);}const _0xbca646=this['_createHandler']();if(_0x54681e){const _0x4d2598=Rt(this[_0x4079be(0x451)],_0x58e316,this[_0x4079be(0x4b3)],_0x589f42,_0x59a99c,_0xbca646);return _0x4d2598 instanceof x?_0x4d2598[_0x4079be(0x4ae)]():(_0x4d2598 instanceof k||_0x4d2598 instanceof W)&&_0x4d2598['resend'](),_0x4d2598;}return this[_0x4079be(0x451)][_0x4079be(0x11c)](G,_0x58e316,this['_type'],_0x589f42,_0x59a99c,_0xbca646);}['_replayCachedMutations'](_0x2d7247,_0x16e93b){const _0x520d4b=_0x49b0d1;var _0x44c773,_0x5e1f87;const _0x396d39=this[_0x520d4b(0x1ec)][_0x520d4b(0x18f)][_0x520d4b(0x11f)](this['_compressMutationService'][_0x520d4b(0x18f)]['getInterceptPoints']()[_0x520d4b(0x4a0)]);(_0x44c773=_0x396d39((_0x2d7247==null?void 0x0:_0x2d7247[_0x520d4b(0x2a3)])||[],null))==null||_0x44c773['forEach'](_0x5e2d1d=>this[_0x520d4b(0x378)][_0x520d4b(0x338)](_0x5e2d1d['id'],_0x5e2d1d[_0x520d4b(0x2d8)])),(_0x5e1f87=_0x396d39(_0x16e93b||[],null))==null||_0x5e1f87[_0x520d4b(0x287)](_0x10a945=>this[_0x520d4b(0x378)][_0x520d4b(0x338)](_0x10a945['id'],_0x10a945[_0x520d4b(0x2d8)]));}},exports[_0x49b0d1(0x33f)]=Ke([I(0x3,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),I(0x4,a[_0x49b0d1(0x257)](exports['LocalCacheService'])),I(0x5,a[_0x49b0d1(0x257)](_[_0x49b0d1(0x3e5)])),I(0x6,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x339)])),I(0x7,a['Inject'](_[_0x49b0d1(0x3e9)])),I(0x8,a['ILogService']),I(0x9,a[_0x49b0d1(0x11b)]),I(0xa,N[_0x49b0d1(0x22d)]),I(0xb,a[_0x49b0d1(0x235)]),I(0xc,a['Optional'](Te))],exports['CollaborationEntity']),exports[_0x49b0d1(0x124)]=class extends exports['CollaborationEntity']{constructor(_0x3064cf,_0x10fc4f,_0x3ad413,_0x517e8e,_0x54fa20,_0x34c951,_0xd0f73a,_0xb0ec5e,_0x5149ff,_0x5d7ad0,_0x226ed2,_0x22d269,_0x52c246,_0x6adc9e,_0x5dbf05,_0xcb2dc0,_0x3c9b02){const _0x33bcfe=_0x49b0d1;super(_0x3064cf,_0x3ad413,_0x10fc4f,_0x517e8e,_0x54fa20,_0x34c951,_0xd0f73a,_0xb0ec5e,_0x52c246,_0x6adc9e,_0x5dbf05,_0xcb2dc0,_0x3c9b02),this[_0x33bcfe(0x4d1)]=_0x3064cf,this[_0x33bcfe(0x158)]=_0x10fc4f,this[_0x33bcfe(0x44b)]=_0x5149ff,this[_0x33bcfe(0x17a)]=_0x5d7ad0,this[_0x33bcfe(0x20b)]=_0x226ed2,this[_0x33bcfe(0x163)]=_0x22d269;}['_createHandler'](){const _0x449f53=_0x49b0d1,_0x133de4=super['_createHandler']();return _0x133de4[_0x449f53(0x16f)]=_0x1dd157=>this[_0x449f53(0x17a)][_0x449f53(0x443)](_0x1dd157),_0x133de4['onTransformSelections']=_0x3b7284=>this[_0x449f53(0x20b)][_0x449f53(0x33e)](_0x3b7284),_0x133de4[_0x449f53(0x24a)]=_0x586bd9=>this[_0x449f53(0x163)][_0x449f53(0x427)](_0x586bd9),_0x133de4[_0x449f53(0x128)]=_0x465303=>this[_0x449f53(0x17a)][_0x449f53(0x46b)](_0x465303),_0x133de4;}async['_init'](){const _0x5f3f5b=_0x49b0d1,_0x892125=await super[_0x5f3f5b(0x1d0)]();return this['disposeWithMe'](this[_0x5f3f5b(0x378)][_0x5f3f5b(0x351)]((_0x3867a7,_0x1172a0)=>{const _0x21c336=_0x5f3f5b;if(_0x3867a7['type']!==a[_0x21c336(0x112)][_0x21c336(0x319)]||_0x1172a0!=null&&_0x1172a0['fromCollab']||_0x1172a0!=null&&_0x1172a0[_0x21c336(0x395)])return;const _0x1c7e95=_0x3867a7[_0x21c336(0x2d8)];if((_0x1c7e95==null?void 0x0:_0x1c7e95[_0x21c336(0x18d)])!==this[_0x21c336(0x4d1)])return;let _0x4d9570=_0x3867a7;if(_0x4d9570['id']===V[_0x21c336(0x2c7)]['id']){const _0x17481f=_0x4d9570[_0x21c336(0x2d8)];_0x4d9570={'id':V[_0x21c336(0x2c7)]['id'],'type':a[_0x21c336(0x112)]['MUTATION'],'params':{'unitId':_0x17481f[_0x21c336(0x18d)],'actions':_0x17481f[_0x21c336(0x15b)],'textRanges':null}};}const _0x1e4d3f=this[_0x21c336(0x1ec)][_0x21c336(0x18f)][_0x21c336(0x11f)](this[_0x21c336(0x1ec)][_0x21c336(0x18f)][_0x21c336(0x26f)]()[_0x21c336(0x2dd)])([_0x4d9570],null)||[_0x4d9570];this['_onLocalMutation'](_0x1e4d3f[0x0]);})),_0x892125;}},exports[_0x49b0d1(0x124)]=Ke([I(0x3,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),I(0x4,a[_0x49b0d1(0x257)](exports[_0x49b0d1(0x1f7)])),I(0x5,a['Inject'](_['CompressMutationService'])),I(0x6,a['Inject'](a['LocaleService'])),I(0x7,a['Inject'](_['RevisionService'])),I(0x8,a[_0x49b0d1(0x257)](w[_0x49b0d1(0x4a6)])),I(0x9,a[_0x49b0d1(0x257)](Ie)),I(0xa,a[_0x49b0d1(0x257)](Ce)),I(0xb,a[_0x49b0d1(0x257)](Ye)),I(0xc,a['ILogService']),I(0xd,a[_0x49b0d1(0x11b)]),I(0xe,N['IMessageService']),I(0xf,a[_0x49b0d1(0x235)]),I(0x10,a[_0x49b0d1(0x3f8)](Te))],exports[_0x49b0d1(0x124)]),exports[_0x49b0d1(0x400)]=class extends exports['CollaborationEntity']{constructor(_0x32076f,_0x3f37dc,_0x23bf63,_0x34819b,_0x1e8f32,_0xc7f66b,_0x4e7ff9,_0x2cef2d,_0x561abe,_0x3d3d78,_0x3663e8,_0x46b5d0,_0x415294,_0x179ba8){const _0xb8f185=_0x49b0d1;super(_0x32076f,_0x23bf63,_0x3f37dc,_0x34819b,_0x1e8f32,_0xc7f66b,_0x4e7ff9,_0x2cef2d,_0x3d3d78,_0x3663e8,_0x46b5d0,_0x415294,_0x179ba8),this[_0xb8f185(0x4d1)]=_0x32076f,this[_0xb8f185(0x158)]=_0x3f37dc,this[_0xb8f185(0x263)]=_0x561abe;}['_createHandler'](){const _0x368458=_0x49b0d1,_0x3ab325=super[_0x368458(0x3d0)]();return _0x3ab325['onTransformSelections']=_0x28d2f0=>this[_0x368458(0x263)][_0x368458(0x33e)](_0x28d2f0),_0x3ab325;}async[_0x49b0d1(0x1d0)](){const _0x30215b=_0x49b0d1,_0x44c29e=await super[_0x30215b(0x1d0)]();return this[_0x30215b(0x357)](this[_0x30215b(0x378)][_0x30215b(0x351)]((_0x15eda1,_0x2be7b4)=>{const _0x52a580=_0x30215b;if(_0x15eda1['type']!==a[_0x52a580(0x112)][_0x52a580(0x319)]||_0x2be7b4!=null&&_0x2be7b4[_0x52a580(0xdf)]||_0x2be7b4!=null&&_0x2be7b4[_0x52a580(0x395)])return;const _0xb8b7e3=_0x15eda1['params'];if((_0xb8b7e3==null?void 0x0:_0xb8b7e3[_0x52a580(0x18d)])!==this[_0x52a580(0x4d1)])return;const _0x1136f8=_0x15eda1,_0x529877=this['_compressMutationService'][_0x52a580(0x18f)][_0x52a580(0x11f)](this[_0x52a580(0x1ec)][_0x52a580(0x18f)][_0x52a580(0x26f)]()[_0x52a580(0x2dd)])([_0x1136f8],null)||[_0x1136f8];this[_0x52a580(0x214)](_0x529877[0x0]);})),_0x44c29e;}},exports[_0x49b0d1(0x400)]=Ke([I(0x3,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),I(0x4,a[_0x49b0d1(0x257)](exports['LocalCacheService'])),I(0x5,a[_0x49b0d1(0x257)](_[_0x49b0d1(0x3e5)])),I(0x6,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x339)])),I(0x7,a[_0x49b0d1(0x257)](_[_0x49b0d1(0x3e9)])),I(0x8,a['Inject'](pe)),I(0x9,a[_0x49b0d1(0x4fd)]),I(0xa,a['ICommandService']),I(0xb,N[_0x49b0d1(0x22d)]),I(0xc,a['IPermissionService']),I(0xd,a['Optional'](Te))],exports[_0x49b0d1(0x400)]);var ks=Object[_0x49b0d1(0x37d)],Bs=Object[_0x49b0d1(0x26e)],Vs=(_0xe5c156,_0x2b267e,_0x2031b6,_0x3442b2)=>{const _0x195f31=_0x49b0d1;for(var _0x43aedc=_0x3442b2>0x1?void 0x0:_0x3442b2?Bs(_0x2b267e,_0x2031b6):_0x2b267e,_0x3b998b=_0xe5c156[_0x195f31(0x429)]-0x1,_0x4d1631;_0x3b998b>=0x0;_0x3b998b--)(_0x4d1631=_0xe5c156[_0x3b998b])&&(_0x43aedc=(_0x3442b2?_0x4d1631(_0x2b267e,_0x2031b6,_0x43aedc):_0x4d1631(_0x43aedc))||_0x43aedc);return _0x3442b2&&_0x43aedc&&ks(_0x2b267e,_0x2031b6,_0x43aedc),_0x43aedc;},Pe=(_0x2a1217,_0x3a5ebb)=>(_0x11db61,_0x101481)=>_0x3a5ebb(_0x11db61,_0x101481,_0x2a1217);exports[_0x49b0d1(0x481)]=class extends a[_0x49b0d1(0x3b6)]{constructor(_0xeada0f,_0x3129a6,_0x244ffc){const _0x582447=_0x49b0d1;super(),d(this,_0x582447(0x250),new Map()),d(this,'_entityInit$',new v[(_0x582447(0x268))]()),(this[_0x582447(0x451)]=_0xeada0f,this[_0x582447(0x3e1)]=_0x3129a6,this[_0x582447(0x3e4)]=_0x244ffc,this[_0x582447(0x1d0)]());}[_0x49b0d1(0x4b7)](){const _0x5f4c09=_0x49b0d1;super[_0x5f4c09(0x4b7)](),this[_0x5f4c09(0x250)][_0x5f4c09(0x287)](_0x35dc87=>_0x35dc87[_0x5f4c09(0x4b7)]()),this[_0x5f4c09(0x250)][_0x5f4c09(0x27d)]();}[_0x49b0d1(0x2fb)](_0x31e1d1){const _0x338f27=_0x49b0d1;var _0x35cd5f;return(_0x35cd5f=this[_0x338f27(0x250)][_0x338f27(0x10a)](_0x31e1d1))!=null?_0x35cd5f:null;}[_0x49b0d1(0x44c)](_0x410c6f){const _0x1826a2=_0x49b0d1,_0x22c8ec=this['getCollabEntity'](_0x410c6f);return _0x22c8ec?v['of'](_0x22c8ec):this[_0x1826a2(0x3f1)][_0x1826a2(0x110)](E[_0x1826a2(0x2ba)](_0x3ce403=>_0x3ce403[_0x1826a2(0x4d1)]===_0x410c6f));}[_0x49b0d1(0x1d0)](){const _0x20cb90=_0x49b0d1;this[_0x20cb90(0x3e4)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x20cb90(0x125)])[_0x20cb90(0x110)](v[_0x20cb90(0x221)](this[_0x20cb90(0xde)]),E['delay'](0x10))[_0x20cb90(0x4ba)](async _0x5bcd67=>{const _0x5ceed3=_0x20cb90,_0x74130=_0x5bcd67[_0x5ceed3(0x234)](),_0xb5d6b0=await this[_0x5ceed3(0x43a)](_0x74130,$[_0x5ceed3(0x125)]);this[_0x5ceed3(0x250)][_0x5ceed3(0xf0)](_0x74130,_0xb5d6b0);}),this[_0x20cb90(0x3e4)][_0x20cb90(0x255)](a[_0x20cb90(0x199)][_0x20cb90(0x215)])[_0x20cb90(0x110)](v[_0x20cb90(0x221)](this['dispose$']),E[_0x20cb90(0x27f)](0x10))['pipe'](E[_0x20cb90(0x2ba)](_0x5bcf64=>!_0x5bcf64[_0x20cb90(0x234)]()[_0x20cb90(0x2ad)]('__')))[_0x20cb90(0x4ba)](async _0x576485=>{const _0x408b9f=_0x20cb90,_0x576614=_0x576485[_0x408b9f(0x234)](),_0x5a7cef=await this[_0x408b9f(0x43a)](_0x576614,$[_0x408b9f(0x215)]);this['_entities'][_0x408b9f(0xf0)](_0x576614,_0x5a7cef);}),v[_0x20cb90(0x12e)](this['_univerInstanceService'][_0x20cb90(0x36b)](a[_0x20cb90(0x199)][_0x20cb90(0x125)]),this[_0x20cb90(0x3e4)][_0x20cb90(0x36b)](a[_0x20cb90(0x199)][_0x20cb90(0x215)]))[_0x20cb90(0x110)](v[_0x20cb90(0x221)](this[_0x20cb90(0xde)]))[_0x20cb90(0x4ba)](_0x47f3a8=>{const _0x5a29e5=_0x20cb90,_0x24f27d=_0x47f3a8['getUnitId'](),_0x57d549=this['_entities'][_0x5a29e5(0x10a)](_0x24f27d);_0x57d549&&(_0x57d549[_0x5a29e5(0x4b7)](),this[_0x5a29e5(0x250)][_0x5a29e5(0x225)](_0x24f27d));});}async['_startCollaboration'](_0x1fe76c,_0x34bcb4){const _0x20db50=_0x49b0d1,_0x274fab=await this[_0x20db50(0x3e1)]['requireSession'](_0x1fe76c),_0x5182e1=this[_0x20db50(0x451)][_0x20db50(0x11c)](this[_0x20db50(0x4f6)](_0x34bcb4),_0x1fe76c,_0x34bcb4,_0x274fab);return await _0x5182e1['init'](),this[_0x20db50(0x3f1)][_0x20db50(0x329)](_0x5182e1),_0x5182e1;}[_0x49b0d1(0x4f6)](_0x29566c){const _0x4c7c6f=_0x49b0d1;switch(_0x29566c){case $[_0x4c7c6f(0x215)]:return exports['DocCollaborationEntity'];case $[_0x4c7c6f(0x125)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x4c7c6f(0x247)+_0x29566c);}}},exports[_0x49b0d1(0x481)]=Vs([Pe(0x0,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),Pe(0x1,a[_0x49b0d1(0x257)](exports[_0x49b0d1(0x48f)])),Pe(0x2,a['IUniverInstanceService'])],exports[_0x49b0d1(0x481)]);const nt=[_0x49b0d1(0x2f5),_0x49b0d1(0x1ba),_0x49b0d1(0x459),_0x49b0d1(0x32c),_0x49b0d1(0x11d),_0x49b0d1(0x4e9)];class Xe extends a[_0x49b0d1(0x3a5)]{constructor(){const _0x1f507d=_0x49b0d1;super(...arguments),d(this,_0x1f507d(0xed),new Map()),d(this,'_colorIndex',0x0);}[_0x49b0d1(0x331)](_0x53a1ca){const _0x24af50=_0x49b0d1;if(this[_0x24af50(0xed)][_0x24af50(0x14b)](_0x53a1ca))return this[_0x24af50(0xed)]['get'](_0x53a1ca);const _0x57ff21=nt[this[_0x24af50(0x14e)]];return this[_0x24af50(0x14e)]=(this[_0x24af50(0x14e)]+0x1)%nt[_0x24af50(0x429)],this['_assignedColors'][_0x24af50(0xf0)](_0x53a1ca,_0x57ff21),_0x57ff21;}}var Ws=Object[_0x49b0d1(0x37d)],Fs=Object[_0x49b0d1(0x26e)],Gs=(_0x194766,_0x3e0928,_0x444e6e,_0x2995f8)=>{const _0x5bed46=_0x49b0d1;for(var _0x33911e=_0x2995f8>0x1?void 0x0:_0x2995f8?Fs(_0x3e0928,_0x444e6e):_0x3e0928,_0x3add28=_0x194766[_0x5bed46(0x429)]-0x1,_0x2b4cb1;_0x3add28>=0x0;_0x3add28--)(_0x2b4cb1=_0x194766[_0x3add28])&&(_0x33911e=(_0x2995f8?_0x2b4cb1(_0x3e0928,_0x444e6e,_0x33911e):_0x2b4cb1(_0x33911e))||_0x33911e);return _0x2995f8&&_0x33911e&&Ws(_0x3e0928,_0x444e6e,_0x33911e),_0x33911e;},Q=(_0x5b1baf,_0x9e52bc)=>(_0x26fab9,_0x6af8a0)=>_0x9e52bc(_0x26fab9,_0x6af8a0,_0x5b1baf);const Ys=0x12c,Ks=0x64,Xs=()=>{let _0x47aa7f=[],_0x166fad=!0x1;return _0x3d7631=>{const _0x507586=_0x5144;_0x47aa7f[_0x507586(0x231)](_0x3d7631),_0x166fad||(_0x166fad=!0x0,setTimeout(()=>{const _0xa17d67=_0x507586;_0x47aa7f[_0xa17d67(0x287)](_0x411aec=>_0x411aec()),_0x47aa7f=[],_0x166fad=!0x1;}));};};let He=class extends a[_0x49b0d1(0x3b6)]{constructor(_0x55cc15,_0x5507fe,_0x3c72be,_0x18e829,_0x2bd708,_0x9ba848,_0x301448,_0x3c47f3){const _0x1f6c38=_0x49b0d1;super(),d(this,_0x1f6c38(0x415),!0x1),d(this,_0x1f6c38(0x1d0),!0x1),d(this,_0x1f6c38(0x3c4),new v['BehaviorSubject'](new Map())),d(this,_0x1f6c38(0x403),this['_cursorInfo$']['asObservable']()),d(this,'_roomMembers$',new v['BehaviorSubject']([])),d(this,_0x1f6c38(0x45c),this[_0x1f6c38(0x1a8)][_0x1f6c38(0x110)](v['debounceTime'](Ys))),d(this,_0x1f6c38(0x498),a['debounce']((_0x114136,_0x55deac)=>{const _0x1309c9=_0x1f6c38,_0x522012={'eventID':_[_0x1309c9(0x254)][_0x1309c9(0x13c)],'data':{'unitID':this[_0x1309c9(0x4d1)],'memberID':this[_0x1309c9(0xe3)][_0x1309c9(0x24b)](),'selection':Je[_0x1309c9(0x31f)](_0x114136,_0x55deac['range'])}};this[_0x1309c9(0xe3)][_0x1309c9(0x366)](_0x522012,this[_0x1309c9(0x4d1)]);},Ks)),(this[_0x1f6c38(0x4d1)]=_0x55cc15,this[_0x1f6c38(0xe3)]=_0x5507fe,this[_0x1f6c38(0x451)]=_0x3c72be,this['_colorAssignService']=_0x18e829,this[_0x1f6c38(0x271)]=_0x2bd708,this[_0x1f6c38(0x3e4)]=_0x9ba848,this[_0x1f6c38(0x378)]=_0x301448,this[_0x1f6c38(0x3f0)]=_0x3c47f3);}get['cursorInfo'](){const _0x1e4787=_0x49b0d1;return this[_0x1e4787(0x3c4)][_0x1e4787(0x306)]();}get['roomMembers'](){const _0x4d060d=_0x49b0d1;return this[_0x4d060d(0x1a8)][_0x4d060d(0x306)]();}[_0x49b0d1(0x4b7)](){const _0x4a28c3=_0x49b0d1;super['dispose'](),this[_0x4a28c3(0x3c4)][_0x4a28c3(0x329)](new Map()),this[_0x4a28c3(0x3c4)][_0x4a28c3(0x465)](),this[_0x4a28c3(0x1a8)][_0x4a28c3(0x329)]([]),this[_0x4a28c3(0x1a8)][_0x4a28c3(0x465)]();}[_0x49b0d1(0x142)](){const _0x2bca05=_0x49b0d1;this[_0x2bca05(0x1d0)]||(this[_0x2bca05(0x1d0)]=!0x0,this[_0x2bca05(0xe3)][_0x2bca05(0x1fc)][_0x2bca05(0x110)](v[_0x2bca05(0x221)](this['dispose$']))[_0x2bca05(0x4ba)](_0x49f412=>{const _0x565ca5=_0x2bca05;_0x49f412===j['ONLINE']?this['_toggleOnline']():this[_0x565ca5(0x100)]();}),this[_0x2bca05(0xe3)][_0x2bca05(0x272)][_0x2bca05(0x110)](v[_0x2bca05(0x221)](this[_0x2bca05(0xde)]))['subscribe'](_0x29ec7d=>{const _0x218aa9=_0x2bca05,_0x4ca35b=_0x29ec7d[_0x218aa9(0x2b3)];_0x4ca35b===_[_0x218aa9(0x254)]['UPDATE_CURSOR']&&this[_0x218aa9(0x396)](_0x29ec7d),_0x4ca35b===_[_0x218aa9(0x254)][_0x218aa9(0x409)]&&this['_onCursorDelete'](_0x29ec7d);}),this[_0x2bca05(0x375)](),this[_0x2bca05(0x357)](this[_0x2bca05(0x378)][_0x2bca05(0x351)](_0x54c0a8=>{const _0x4e18d6=_0x2bca05;if(this[_0x4e18d6(0x415)]&&_0x54c0a8['id']===C[_0x4e18d6(0x4b9)]['id']&&_0x54c0a8['params'][_0x4e18d6(0x18d)]===this[_0x4e18d6(0x4d1)]){const _0x2753c9=_0x54c0a8['params'];this[_0x4e18d6(0x498)](_0x2753c9[_0x4e18d6(0x135)],_0x2753c9[_0x4e18d6(0x3de)][0x0]);}})));}['_onCursorUpdate'](_0x222062){const _0xf6c1d5=_0x49b0d1;var _0x4cecf6,_0x2446e4;const {memberID:_0x19cdc3,selection:_0x1ffdf2}=_0x222062[_0xf6c1d5(0x165)],{sheetName:_0x20f33e,range:_0x8ad364}=Je['deserializeRangeWithSheet'](_0x1ffdf2),_0x3e3e8b={'name':(_0x2446e4=(_0x4cecf6=this[_0xf6c1d5(0x271)][_0xf6c1d5(0x39d)](this['unitID'],_0x19cdc3))==null?void 0x0:_0x4cecf6[_0xf6c1d5(0x147)])!=null?_0x2446e4:'Unknown\x20user','range':this[_0xf6c1d5(0x1ce)](_0x20f33e,_0x8ad364),'sheetID':_0x20f33e,'color':this[_0xf6c1d5(0x2d3)][_0xf6c1d5(0x331)](_0x19cdc3),'selection':_0x1ffdf2},_0x454faf=this[_0xf6c1d5(0x3da)];_0x454faf[_0xf6c1d5(0xf0)](_0x19cdc3,_0x3e3e8b),this[_0xf6c1d5(0x3c4)][_0xf6c1d5(0x329)](_0x454faf);}['_onCursorDelete'](_0x517c27){const _0x20cabf=_0x49b0d1,{memberID:_0x55868a}=_0x517c27['data'],_0x34c52b=this['cursorInfo'];_0x34c52b['delete'](_0x55868a),this[_0x20cabf(0x3c4)][_0x20cabf(0x329)](_0x34c52b);}[_0x49b0d1(0x1ce)](_0x55cddf,_0x4599e4){const _0x23de9b=_0x49b0d1;var _0x269a20,_0x3b23a7;const _0x231baf=(_0x3b23a7=(_0x269a20=this[_0x23de9b(0x3e4)][_0x23de9b(0x322)](this[_0x23de9b(0x4d1)]))==null?void 0x0:_0x269a20['getSheetBySheetId'](_0x55cddf))==null?void 0x0:_0x3b23a7[_0x23de9b(0x425)]();return(_0x231baf==null?void 0x0:_0x231baf[_0x23de9b(0xdd)](_0x32ee35=>a[_0x23de9b(0x1f6)][_0x23de9b(0x23d)](_0x32ee35,_0x4599e4)))||_0x4599e4;}[_0x49b0d1(0x375)](){const _0x3c639a=_0x49b0d1,_0x421e45=new a[(_0x3c639a(0x13b))](),_0x49e474=Xs(),_0x450487=()=>{const _0x154fa8=_0x3c639a;_0x421e45['dispose']();const _0x2df828=(_0x2a909c,_0x246d3e,_0x8f2118,_0x29c413)=>{const _0x41e149=_0x5144;let _0x3c81f5=[];switch(_0x2a909c['id']){case C[_0x41e149(0x198)][_0x41e149(0x42d)]:{_0x3c81f5=C[_0x41e149(0x36d)](_0x2a909c,_0x29c413);break;}case C[_0x41e149(0x198)]['DeleteRangeMoveUpCommandId']:{_0x3c81f5=C[_0x41e149(0x41a)](_0x2a909c,_0x29c413);break;}case C[_0x41e149(0x198)][_0x41e149(0x21e)]:{_0x3c81f5=C['handleInsertCol'](_0x2a909c,_0x29c413);break;}case C[_0x41e149(0x198)]['InsertRangeMoveDownCommandId']:{_0x3c81f5=C[_0x41e149(0x156)](_0x2a909c,_0x29c413);break;}case C[_0x41e149(0x198)][_0x41e149(0x1be)]:{_0x3c81f5=C[_0x41e149(0x1dc)](_0x2a909c,_0x29c413);break;}case C[_0x41e149(0x198)][_0x41e149(0x3c6)]:{_0x3c81f5=C[_0x41e149(0x17b)](_0x2a909c,_0x29c413);break;}case C[_0x41e149(0x198)][_0x41e149(0x24c)]:{_0x3c81f5=C['handleMoveRange'](_0x2a909c,_0x29c413);break;}case C[_0x41e149(0x198)][_0x41e149(0x20e)]:{_0x3c81f5=C[_0x41e149(0x413)](_0x2a909c,_0x29c413);break;}case C[_0x41e149(0x198)]['RemoveRowCommandId']:{_0x3c81f5=C[_0x41e149(0x33a)](_0x2a909c,_0x29c413);break;}}const _0x35ff4e=C[_0x41e149(0x4af)](_0x3c81f5,_0x29c413),_0x200406=this[_0x41e149(0x3da)][_0x41e149(0x10a)](_0x246d3e);if(_0x200406&&_0x35ff4e){const _0x3444c4={..._0x200406,'range':_0x35ff4e};this['cursorInfo'][_0x41e149(0xf0)](_0x246d3e,_0x3444c4),_0x49e474(()=>{const _0x531aeb=_0x41e149,_0x561895=this[_0x531aeb(0x3f0)]['registerRefRange'](_0x35ff4e,_0x3ef248=>(_0x561895[_0x531aeb(0x4b7)](),_0x2df828(_0x3ef248,_0x246d3e,_0x8f2118,_0x35ff4e)));_0x421e45[_0x531aeb(0x3a6)](_0x561895);});}return{'redos':[],'undos':[]};};this[_0x154fa8(0x3da)][_0x154fa8(0x287)]((_0x3670ee,_0x5793bc)=>{const _0x3ca655=_0x154fa8,{range:_0x3d83ad,sheetID:_0x214078}=_0x3670ee,_0x480fe6=this[_0x3ca655(0x3f0)][_0x3ca655(0x30f)](_0x3d83ad,_0x234fa6=>(_0x480fe6['dispose'](),_0x2df828(_0x234fa6,_0x5793bc,_0x214078,_0x3d83ad)));_0x421e45[_0x3ca655(0x3a6)](_0x480fe6);});};this[_0x3c639a(0x357)](a[_0x3c639a(0x41b)](this[_0x3c639a(0x3c4)][_0x3c639a(0x4ba)](()=>{_0x450487();})));}[_0x49b0d1(0x4e7)](){const _0x28e1e6=_0x49b0d1;var _0x13b50f,_0x3e2fc6;if(this['_online']=!0x0,((_0x13b50f=this[_0x28e1e6(0x3e4)][_0x28e1e6(0x36a)]())==null?void 0x0:_0x13b50f[_0x28e1e6(0x234)]())!==this[_0x28e1e6(0x4d1)])return;const _0x5cb37f=(_0x3e2fc6=this['_injector'][_0x28e1e6(0x10a)](C[_0x28e1e6(0x389)])['getCurrentSelections']())==null?void 0x0:_0x3e2fc6[0x0],_0x1224e4=this[_0x28e1e6(0x3e4)][_0x28e1e6(0x104)](a[_0x28e1e6(0x199)][_0x28e1e6(0x125)])['getActiveSheet']();_0x5cb37f&&_0x1224e4&&this[_0x28e1e6(0x498)](_0x1224e4[_0x28e1e6(0x3ef)](),_0x5cb37f);}[_0x49b0d1(0x100)](){this['_online']=!0x1;}};He=Gs([Q(0x2,a[_0x49b0d1(0x257)](a['Injector'])),Q(0x3,a[_0x49b0d1(0x257)](Xe)),Q(0x4,a[_0x49b0d1(0x257)](q)),Q(0x5,a[_0x49b0d1(0xe5)]),Q(0x6,a[_0x49b0d1(0x11b)]),Q(0x7,a[_0x49b0d1(0x257)](C[_0x49b0d1(0x460)]))],He);var qs=Object[_0x49b0d1(0x37d)],zs=Object[_0x49b0d1(0x26e)],Js=(_0x26cc30,_0x301cf5,_0x12e439,_0x137c5c)=>{for(var _0x38a428=_0x137c5c>0x1?void 0x0:_0x137c5c?zs(_0x301cf5,_0x12e439):_0x301cf5,_0x4fa6c8=_0x26cc30['length']-0x1,_0x13fb13;_0x4fa6c8>=0x0;_0x4fa6c8--)(_0x13fb13=_0x26cc30[_0x4fa6c8])&&(_0x38a428=(_0x137c5c?_0x13fb13(_0x301cf5,_0x12e439,_0x38a428):_0x13fb13(_0x38a428))||_0x38a428);return _0x137c5c&&_0x38a428&&qs(_0x301cf5,_0x12e439,_0x38a428),_0x38a428;},K=(_0x47ba20,_0x53760f)=>(_0x3bdc91,_0x3f3ba2)=>_0x53760f(_0x3bdc91,_0x3f3ba2,_0x47ba20);const Zs=0x12c,Qs=0x64;let xe=class extends a['RxDisposable']{constructor(_0x599315,_0x23a8df,_0x2454f6,_0x290edd,_0x28bb54,_0x5e60b2,_0x5272d6,_0x5614ac,_0x239294){const _0x5a71fe=_0x49b0d1;super(),d(this,_0x5a71fe(0x415),!0x1),d(this,_0x5a71fe(0x1d0),!0x1),d(this,_0x5a71fe(0x3c4),new v[(_0x5a71fe(0x17f))](new Map())),d(this,'cursorInfo$',this[_0x5a71fe(0x3c4)]['asObservable']()),d(this,'_roomMembers$',new v[(_0x5a71fe(0x17f))]([])),d(this,_0x5a71fe(0x45c),this['_roomMembers$'][_0x5a71fe(0x110)](v['debounceTime'](Zs))),d(this,_0x5a71fe(0x498),a[_0x5a71fe(0x2e8)](_0xccb6a4=>{const _0x2bfde2=_0x5a71fe,_0x532d77={'eventID':_[_0x2bfde2(0x254)][_0x2bfde2(0x13c)],'data':{'unitID':this[_0x2bfde2(0x4d1)],'memberID':this[_0x2bfde2(0xe3)][_0x2bfde2(0x24b)](),'selection':Tt(_0xccb6a4)}};this[_0x2bfde2(0xe3)][_0x2bfde2(0x366)](_0x532d77,this['unitID']);},Qs)),(this[_0x5a71fe(0x4d1)]=_0x599315,this['_session']=_0x23a8df,this['_injector']=_0x2454f6,this['_colorAssignService']=_0x290edd,this['_memberService']=_0x28bb54,this[_0x5a71fe(0x1cb)]=_0x5e60b2,this[_0x5a71fe(0x430)]=_0x5272d6,this[_0x5a71fe(0x3e4)]=_0x5614ac,this['_commandService']=_0x239294);}get[_0x49b0d1(0x3da)](){const _0xadeacc=_0x49b0d1;return this[_0xadeacc(0x3c4)][_0xadeacc(0x306)]();}get[_0x49b0d1(0x236)](){const _0x2aace6=_0x49b0d1;return this[_0x2aace6(0x1a8)][_0x2aace6(0x306)]();}[_0x49b0d1(0x4b7)](){const _0x6f141d=_0x49b0d1;super['dispose'](),this[_0x6f141d(0x3c4)][_0x6f141d(0x329)](new Map()),this[_0x6f141d(0x3c4)][_0x6f141d(0x465)](),this[_0x6f141d(0x1a8)][_0x6f141d(0x329)]([]),this[_0x6f141d(0x1a8)]['complete']();}[_0x49b0d1(0x142)](){const _0x3d780f=_0x49b0d1;this[_0x3d780f(0x1d0)]||(this[_0x3d780f(0x1d0)]=!0x0,this[_0x3d780f(0xe3)][_0x3d780f(0x1fc)][_0x3d780f(0x110)](v['takeUntil'](this['dispose$']))[_0x3d780f(0x4ba)](_0x319d5c=>{const _0x8ad5e6=_0x3d780f;_0x319d5c===j[_0x8ad5e6(0x431)]?this[_0x8ad5e6(0x4e7)]():this['_toggleOffline']();}),this[_0x3d780f(0xe3)][_0x3d780f(0x272)][_0x3d780f(0x110)](v['takeUntil'](this[_0x3d780f(0xde)]))[_0x3d780f(0x4ba)](_0x94a50e=>{const _0x4c1f53=_0x3d780f,_0x99ed5=_0x94a50e[_0x4c1f53(0x2b3)];_0x99ed5===_[_0x4c1f53(0x254)]['UPDATE_CURSOR']&&this[_0x4c1f53(0x396)](_0x94a50e),_0x99ed5===_[_0x4c1f53(0x254)][_0x4c1f53(0x409)]&&this[_0x4c1f53(0x4f7)](_0x94a50e);}),this['disposeWithMe'](this[_0x3d780f(0x378)][_0x3d780f(0x351)](_0xe4d94d=>{const _0x28e8e5=_0x3d780f,_0x56b8c7=_0xe4d94d['params'];_0x56b8c7!=null&&this[_0x28e8e5(0x415)]&&_0xe4d94d['id']===V['SetTextSelectionsOperation']['id']&&_0x56b8c7[_0x28e8e5(0x18d)]===this[_0x28e8e5(0x4d1)]&&_0x56b8c7[_0x28e8e5(0x25c)]===!0x1&&this['_updateLocalCursor'](_0x56b8c7['ranges']);})),this[_0x3d780f(0x1cb)][_0x3d780f(0x1da)][_0x3d780f(0x110)](v[_0x3d780f(0x221)](this[_0x3d780f(0xde)]))['subscribe'](_0xe3f1ec=>{const _0x4e5634=_0x3d780f;if((_0xe3f1ec==null?void 0x0:_0xe3f1ec['unitID'])!==this[_0x4e5634(0x4d1)])return;const _0x2470ce={'eventID':_[_0x4e5634(0x254)]['UPDATE_CURSOR'],'data':_0xe3f1ec};this['_onCursorUpdate'](_0x2470ce);}),this['disposeWithMe'](this[_0x3d780f(0x378)][_0x3d780f(0x351)](_0x3a2f05=>{const _0x22ee0f=_0x3d780f;if(_0x3a2f05[_0x22ee0f(0x2d8)]==null)return;const _0x3a6e7f=_0x3a2f05['params'];if(_0x3a2f05['id']!==V['RichTextEditingMutation']['id']||_0x3a6e7f[_0x22ee0f(0x18d)]!==this[_0x22ee0f(0x4d1)])return;const _0x31e68b={'id':_0x22ee0f(0x28b),'params':_0x3a6e7f},_0x127f2c=this[_0x22ee0f(0x3da)];for(const [_0x5dc8d2,_0x2ff2b2]of _0x127f2c){const _0x2da196={'id':_0x22ee0f(0x28b),'params':{'unitId':this[_0x22ee0f(0x4d1)],'actions':null,'textRanges':_0x2ff2b2[_0x22ee0f(0x293)]}},_0x425f11=this[_0x22ee0f(0x430)]['transformMutation'](_0x31e68b,_0x2da196,!0x1);if(_[_0x22ee0f(0x210)](_0x425f11))throw _0x425f11[_0x22ee0f(0x433)];_0x127f2c['set'](_0x5dc8d2,{..._0x2ff2b2,'ranges':_0x425f11[_0x22ee0f(0x1c2)][_0x22ee0f(0x2d8)][_0x22ee0f(0x209)]});}queueMicrotask(()=>{const _0x52ba89=_0x22ee0f;this[_0x52ba89(0x3c4)][_0x52ba89(0x329)](_0x127f2c);});})));}['_onCursorUpdate'](_0x4bcc39){const _0xa5a10d=_0x49b0d1;var _0x1c3c83,_0x2e0ff4;const {memberID:_0x2414e7,selection:_0x167010}=_0x4bcc39['data'],_0x69d171=Us(_0x167010),_0x528359=(_0x2e0ff4=(_0x1c3c83=this[_0xa5a10d(0x271)]['getMember'](this[_0xa5a10d(0x4d1)],_0x2414e7))==null?void 0x0:_0x1c3c83[_0xa5a10d(0x147)])!=null?_0x2e0ff4:'Unknown\x20user',_0x38b7d7={'color':this[_0xa5a10d(0x2d3)][_0xa5a10d(0x331)](_0x2414e7),'name':_0x528359,'ranges':_0x69d171},_0x3237f0=this[_0xa5a10d(0x3da)];_0x3237f0[_0xa5a10d(0xf0)](_0x2414e7,_0x38b7d7),this[_0xa5a10d(0x3c4)][_0xa5a10d(0x329)](_0x3237f0);}['_onCursorDelete'](_0x105992){const _0x41c26c=_0x49b0d1,{memberID:_0x5111c9}=_0x105992[_0x41c26c(0x165)],_0x1e83f2=this[_0x41c26c(0x3da)];_0x1e83f2[_0x41c26c(0x225)](_0x5111c9),this[_0x41c26c(0x3c4)]['next'](_0x1e83f2);}['_toggleOnline'](){const _0x14ea67=_0x49b0d1;var _0x18a88c;if(this['_online']=!0x0,((_0x18a88c=this[_0x14ea67(0x3e4)][_0x14ea67(0x36a)]())==null?void 0x0:_0x18a88c[_0x14ea67(0x234)]())!==this[_0x14ea67(0x4d1)])return;const _0x3c816b=this[_0x14ea67(0x451)][_0x14ea67(0x10a)](V['DocSelectionManagerService'])[_0x14ea67(0x4a1)]();Array[_0x14ea67(0x23e)](_0x3c816b)&&_0x3c816b[_0x14ea67(0x429)]>0x0&&this[_0x14ea67(0x498)](_0x3c816b);}['_toggleOffline'](){this['_online']=!0x1;}};xe=Js([K(0x2,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),K(0x3,a[_0x49b0d1(0x257)](Xe)),K(0x4,a[_0x49b0d1(0x257)](q)),K(0x5,a[_0x49b0d1(0x257)](Ye)),K(0x6,_[_0x49b0d1(0x2b2)]),K(0x7,a[_0x49b0d1(0xe5)]),K(0x8,a[_0x49b0d1(0x11b)])],xe);var ei=Object['defineProperty'],ti=Object[_0x49b0d1(0x26e)],si=(_0x2e0440,_0x3f2ca8,_0x16a983,_0x47747c)=>{const _0x12ab30=_0x49b0d1;for(var _0x2f3ab1=_0x47747c>0x1?void 0x0:_0x47747c?ti(_0x3f2ca8,_0x16a983):_0x3f2ca8,_0x400b4d=_0x2e0440[_0x12ab30(0x429)]-0x1,_0xbc7dc3;_0x400b4d>=0x0;_0x400b4d--)(_0xbc7dc3=_0x2e0440[_0x400b4d])&&(_0x2f3ab1=(_0x47747c?_0xbc7dc3(_0x3f2ca8,_0x16a983,_0x2f3ab1):_0xbc7dc3(_0x2f3ab1))||_0x2f3ab1);return _0x47747c&&_0x2f3ab1&&ei(_0x3f2ca8,_0x16a983,_0x2f3ab1),_0x2f3ab1;},we=(_0x2cdc31,_0x23214c)=>(_0x2cea5b,_0x506a30)=>_0x23214c(_0x2cea5b,_0x506a30,_0x2cdc31);function _0x5144(_0x4c3470,_0x4fee51){const _0x3f94f4=_0x3f94();return _0x5144=function(_0x514437,_0x33e8a5){_0x514437=_0x514437-0xd6;let _0x540e90=_0x3f94f4[_0x514437];return _0x540e90;},_0x5144(_0x4c3470,_0x4fee51);}let se=class extends a[_0x49b0d1(0x3b6)]{constructor(_0x4d90ab,_0x257d78,_0x2ec8ae){const _0x172999=_0x49b0d1;super(),d(this,_0x172999(0x250),new Map()),d(this,_0x172999(0x3f1),new v[(_0x172999(0x268))]()),(this[_0x172999(0x3e4)]=_0x4d90ab,this[_0x172999(0x451)]=_0x257d78,this[_0x172999(0x3e1)]=_0x2ec8ae,this[_0x172999(0x1d0)]());}[_0x49b0d1(0x4b7)](){const _0x15a464=_0x49b0d1;super[_0x15a464(0x4b7)](),this['_entityInit$'][_0x15a464(0x465)](),this['_entities']['forEach'](_0x39fac8=>_0x39fac8[_0x15a464(0x4b7)]());}[_0x49b0d1(0x2af)](_0x290e1a){const _0x2a100e=_0x49b0d1;return this[_0x2a100e(0x250)]['has'](_0x290e1a)?this[_0x2a100e(0x250)][_0x2a100e(0x10a)](_0x290e1a)[_0x2a100e(0x403)]:this[_0x2a100e(0x3f1)][_0x2a100e(0x110)](v['filter'](_0x2b7499=>_0x2b7499['unitID']===_0x290e1a),v[_0x2a100e(0x2ec)](_0x1a44a5=>_0x1a44a5['cursorInfo$']));}[_0x49b0d1(0x1d0)](){const _0xb324e4=_0x49b0d1;this['_univerInstanceService'][_0xb324e4(0x255)](a['UniverInstanceType'][_0xb324e4(0x125)])[_0xb324e4(0x110)](v[_0xb324e4(0x221)](this[_0xb324e4(0xde)]))[_0xb324e4(0x4ba)](async _0x5a9888=>{const _0x294efc=_0xb324e4,_0x2442e3=_0x5a9888['getUnitId'](),_0x5c5a77=await this[_0x294efc(0x107)](_0x2442e3);this[_0x294efc(0x3f1)][_0x294efc(0x329)](_0x5c5a77),this[_0x294efc(0x250)][_0x294efc(0xf0)](_0x2442e3,_0x5c5a77);}),this[_0xb324e4(0x3e4)][_0xb324e4(0x255)](a['UniverInstanceType'][_0xb324e4(0x215)])[_0xb324e4(0x110)](v['takeUntil'](this[_0xb324e4(0xde)]))['pipe'](v['filter'](_0x162f28=>!_0x162f28[_0xb324e4(0x234)]()[_0xb324e4(0x2ad)]('__')))[_0xb324e4(0x4ba)](async _0x53ec45=>{const _0x4d2133=_0xb324e4,_0x3ae6eb=_0x53ec45[_0x4d2133(0x234)](),_0x44b8a3=await this[_0x4d2133(0x14c)](_0x3ae6eb);this[_0x4d2133(0x3f1)]['next'](_0x44b8a3),this[_0x4d2133(0x250)][_0x4d2133(0xf0)](_0x3ae6eb,_0x44b8a3);}),v[_0xb324e4(0x12e)](this[_0xb324e4(0x3e4)][_0xb324e4(0x36b)](a[_0xb324e4(0x199)]['UNIVER_DOC']),this[_0xb324e4(0x3e4)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0xb324e4(0x125)]))['pipe'](v['takeUntil'](this[_0xb324e4(0xde)]))[_0xb324e4(0x4ba)](_0x45cd56=>{const _0x48e379=_0xb324e4,_0xd96560=_0x45cd56[_0x48e379(0x234)](),_0x1cc988=this[_0x48e379(0x250)]['get'](_0xd96560);_0x1cc988&&(_0x1cc988[_0x48e379(0x4b7)](),this[_0x48e379(0x250)][_0x48e379(0x225)](_0xd96560));});}async[_0x49b0d1(0x107)](_0x3422b9){const _0x3175d9=_0x49b0d1,_0x153b43=await this[_0x3175d9(0x3e1)][_0x3175d9(0x1e9)](_0x3422b9),_0x539e4a=this[_0x3175d9(0x451)][_0x3175d9(0x11c)](He,_0x3422b9,_0x153b43);return _0x539e4a[_0x3175d9(0x142)](),_0x539e4a;}async[_0x49b0d1(0x14c)](_0x51ffa4){const _0x48e486=_0x49b0d1,_0x465cc9=await this[_0x48e486(0x3e1)][_0x48e486(0x1e9)](_0x51ffa4),_0x2bc17d=this[_0x48e486(0x451)]['createInstance'](xe,_0x51ffa4,_0x465cc9);return _0x2bc17d['init'](),_0x2bc17d;}};se=si([a['OnLifecycle'](a[_0x49b0d1(0x260)][_0x49b0d1(0x4c9)],se),we(0x0,a[_0x49b0d1(0xe5)]),we(0x1,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),we(0x2,a[_0x49b0d1(0x257)](exports[_0x49b0d1(0x48f)]))],se);const ue=0x14,rt=0xc8,Me=0x4,ii=0x5;function ni(_0x20456a,_0x3ab3af){const _0x469433=_0x49b0d1;let {radius:_0x5d1fc2,width:_0x26377c,height:_0x38a159}=_0x3ab3af;_0x5d1fc2=_0x5d1fc2!=null?_0x5d1fc2:0x0,_0x26377c=_0x26377c!=null?_0x26377c:0x1e,_0x38a159=_0x38a159!=null?_0x38a159:0x1e;let _0x572494=0x0,_0x4b2595=0x0,_0x187d0a=0x0;_0x572494=_0x4b2595=_0x187d0a=Math[_0x469433(0x1a4)](_0x5d1fc2,_0x26377c/0x2,_0x38a159/0x2),_0x20456a[_0x469433(0xf9)](),_0x20456a['moveTo'](_0x572494,0x0),_0x20456a['lineTo'](_0x26377c-_0x4b2595,0x0),_0x20456a[_0x469433(0x1a1)](_0x26377c-_0x4b2595,_0x4b2595,_0x4b2595,Math['PI']*0x3/0x2,0x0,!0x1),_0x20456a[_0x469433(0x2db)](_0x26377c,_0x38a159-_0x187d0a),_0x20456a[_0x469433(0x1a1)](_0x26377c-_0x187d0a,_0x38a159-_0x187d0a,_0x187d0a,0x0,Math['PI']/0x2,!0x1),_0x20456a[_0x469433(0x2db)](0x0,_0x38a159),_0x20456a['lineTo'](0x0,_0x572494),_0x20456a['arc'](_0x572494,_0x572494,_0x572494,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x20456a[_0x469433(0x1d2)](),_0x3ab3af[_0x469433(0x379)]&&(_0x20456a['save'](),_0x20456a[_0x469433(0x47a)]=_0x3ab3af[_0x469433(0x379)],_0x3ab3af[_0x469433(0x3b4)]===_0x469433(0x2d0)?_0x20456a[_0x469433(0x379)](_0x469433(0x2d0)):_0x20456a[_0x469433(0x379)](),_0x20456a[_0x469433(0x4dc)]());}class Re extends R[_0x49b0d1(0x129)]{constructor(_0x2f2b7d,_0x201e7e){const _0x6f8777=_0x49b0d1;super(_0x2f2b7d,_0x201e7e),d(this,_0x6f8777(0x450)),d(this,'text'),(this[_0x6f8777(0x450)]=_0x201e7e==null?void 0x0:_0x201e7e[_0x6f8777(0x450)],this['text']=_0x201e7e==null?void 0x0:_0x201e7e[_0x6f8777(0x1b3)]);}static[_0x49b0d1(0x420)](_0x5c30ce,_0x1dfb1c){const _0x18a6ad=_0x49b0d1,{text:_0x32f77d,color:_0x1b41b6}=_0x1dfb1c;_0x5c30ce[_0x18a6ad(0x291)](),_0x5c30ce[_0x18a6ad(0x27c)]=_0x18a6ad(0x374);const _0x12de8f=_0x5c30ce['measureText'](_0x32f77d)[_0x18a6ad(0x473)],_0x206b73=Math[_0x18a6ad(0x1a4)](_0x12de8f+0x2*Me,rt);ni(_0x5c30ce,{'height':ue,'radius':0x4,'width':_0x206b73,'fill':_0x1b41b6,'evented':!0x1}),_0x5c30ce['fillStyle']=_0x18a6ad(0x408);const _0xe13234=Me,_0x4fe020=ue-ii,_0x1d1430=rt-0x2*Me;if(_0x12de8f>_0x1d1430){let _0x36a41e='',_0x8661b4=0x0;for(const _0x505b3a of _0x32f77d){const _0x3bc3a8=_0x5c30ce[_0x18a6ad(0x2ee)](_0x505b3a)['width'];if(_0x8661b4+_0x3bc3a8<=_0x1d1430-_0x5c30ce[_0x18a6ad(0x2ee)](_0x18a6ad(0x120))[_0x18a6ad(0x473)])_0x36a41e+=_0x505b3a,_0x8661b4+=_0x3bc3a8;else{_0x36a41e+=_0x18a6ad(0x120);break;}}_0x5c30ce[_0x18a6ad(0x3d2)](_0x36a41e,_0xe13234,_0x4fe020);}else _0x5c30ce[_0x18a6ad(0x3d2)](_0x32f77d,_0xe13234,_0x4fe020);_0x5c30ce[_0x18a6ad(0x4dc)]();}[_0x49b0d1(0x406)](_0x3b31ce){const _0x54934d=_0x49b0d1;Re[_0x54934d(0x420)](_0x3b31ce,this);}}const Ne=_0x49b0d1(0x4a8),ri=_0x49b0d1(0x157),oi=_0x49b0d1(0x2d9),ce=0x6,ai=1.5,Le=0x4,ci=1.5,li=_0x49b0d1(0x1bd);class ot{constructor(_0x1bddee,_0x5e40ff,_0x49ba14,_0x1281aa){const _0x54db39=_0x49b0d1;d(this,_0x54db39(0x2c3),[]),d(this,_0x54db39(0x2f9),null),d(this,_0x54db39(0x206),null),d(this,_0x54db39(0x1cf),null),d(this,_0x54db39(0x327),null),d(this,_0x54db39(0x324),null),(this[_0x54db39(0x2e2)]=_0x1bddee,this[_0x54db39(0x42b)]=_0x5e40ff,this[_0x54db39(0x1e0)]=_0x49ba14,this[_0x54db39(0x44a)]=_0x1281aa,this[_0x54db39(0x317)]());}set[_0x49b0d1(0x208)](_0x2ac06d){const _0x4156f8=_0x49b0d1;_0x2ac06d?(this['_anchorDot']&&this[_0x4156f8(0x1cf)][_0x4156f8(0x1f8)](),this[_0x4156f8(0x206)]&&this['_textBubble'][_0x4156f8(0x4d7)]()):(this[_0x4156f8(0x1cf)]&&this['_anchorDot'][_0x4156f8(0x4d7)](),this[_0x4156f8(0x206)]&&this[_0x4156f8(0x206)][_0x4156f8(0x1f8)]());}[_0x49b0d1(0x4b7)](){const _0xf04fd8=_0x49b0d1;for(const _0x2dc0c7 of this[_0xf04fd8(0x2c3)])_0x2dc0c7['dispose']();this['_textBubble']&&this[_0xf04fd8(0x206)][_0xf04fd8(0x4b7)](),this[_0xf04fd8(0x1cf)]&&this[_0xf04fd8(0x1cf)]['dispose'](),this[_0xf04fd8(0x2f9)]&&this['_anchor'][_0xf04fd8(0x4b7)](),this[_0xf04fd8(0x324)]&&this[_0xf04fd8(0x324)]();}[_0x49b0d1(0x317)](){const _0x237be4=_0x49b0d1;var _0x29a6cb;const {_docSkeleton:_0x221a15,_document:_0x23abf6}=this,{color:_0x3ca180,name:_0x445ddd,ranges:_0x3f4773}=this[_0x237be4(0x2e2)],_0x498c70=_0x23abf6[_0x237be4(0x4cb)](),{docsLeft:_0x4c38a7,docsTop:_0x4d9779}=_0x498c70,_0x2068a0=new w[(_0x237be4(0x4ac))](_0x498c70,_0x221a15);for(const {startOffset:_0x5a9326,endOffset:_0x3c012c,collapsed:_0x20ceb8,isActive:_0x1db3a7}of _0x3f4773){const _0x2e37d3=_0x221a15[_0x237be4(0x2fd)](_0x5a9326),_0x1c5e49=_0x221a15[_0x237be4(0x2fd)](_0x3c012c);if(_0x1db3a7){const {contentBoxPointGroup:_0x299ad9}=_0x2068a0[_0x237be4(0x15a)](_0x1c5e49,_0x1c5e49);if(_0x299ad9[_0x237be4(0x429)]===0x0)continue;this[_0x237be4(0x3f6)](_0x3ca180,_0x299ad9,_0x4c38a7,_0x4d9779,_0x445ddd),this['_eventUnsubscribe']=this[_0x237be4(0x345)]();}if(!_0x20ceb8&&_0x2e37d3&&_0x1c5e49){if(w['isValidRectRange'](_0x2e37d3,_0x1c5e49)){const _0x507e48=new w['NodePositionConvertToRectRange'](_0x498c70,_0x221a15),{pointGroup:_0x63485b}=(_0x29a6cb=_0x507e48[_0x237be4(0x15a)](_0x2e37d3,_0x1c5e49))!=null?_0x29a6cb:{};if(_0x63485b==null||_0x63485b[_0x237be4(0x429)]===0x0)continue;this[_0x237be4(0x39a)](_0x3ca180,_0x63485b,_0x4c38a7,_0x4d9779);}else{const {contentBoxPointGroup:_0x624ef5}=_0x2068a0[_0x237be4(0x15a)](_0x2e37d3,_0x1c5e49);if(_0x624ef5['length']===0x0)continue;this[_0x237be4(0x4a2)](_0x3ca180,_0x624ef5,_0x4c38a7,_0x4d9779);}}}}[_0x49b0d1(0x3f6)](_0x20462a,_0x16df6a,_0x3c2af4,_0x13156d,_0x38203e){const _0x1945ab=_0x49b0d1,_0x432c58=this['_getAnchorBounding'](_0x16df6a),{left:_0x42d185,top:_0x58d875,height:_0x23533e}=_0x432c58,_0x5e1443=this[_0x1945ab(0x3c2)](),_0x301813=ci/_0x5e1443,_0x3f591f=new R[(_0x1945ab(0x4d2))](Ne+a['Tools']['generateRandomId'](ce),{'left':_0x42d185+_0x3c2af4-_0x301813,'top':_0x58d875+_0x13156d,'height':_0x23533e,'width':ai,'fill':_0x20462a||R[_0x1945ab(0x364)](a[_0x1945ab(0x36c)]['black'],0x0),'strokeWidth':_0x301813,'stroke':li,'evented':!0x0});this['_anchor']=_0x3f591f,this[_0x1945ab(0x42b)][_0x1945ab(0x3be)](_0x3f591f,w[_0x1945ab(0x455)]);const _0x5901c7=new R['Rect'](Ne+a[_0x1945ab(0x3ac)][_0x1945ab(0xd9)](ce),{'left':_0x42d185+_0x3c2af4-_0x301813,'top':_0x58d875+_0x13156d-Le/0x2,'height':Le,'width':Le,'fill':_0x20462a||R[_0x1945ab(0x364)](a[_0x1945ab(0x36c)][_0x1945ab(0x40f)],0x0),'strokeWidth':0x0,'stroke':_0x20462a||R[_0x1945ab(0x364)](a[_0x1945ab(0x36c)][_0x1945ab(0x40f)],0x0),'evented':!0x1});this[_0x1945ab(0x1cf)]=_0x5901c7,this[_0x1945ab(0x42b)]['addObject'](_0x5901c7,w[_0x1945ab(0x455)]);const _0x3a3603=new Re(Ne+a[_0x1945ab(0x3ac)][_0x1945ab(0xd9)](ce),{'left':_0x42d185+_0x3c2af4-_0x301813,'top':_0x58d875+_0x13156d-ue,'text':_0x38203e,'color':_0x20462a});this[_0x1945ab(0x206)]=_0x3a3603,this[_0x1945ab(0x42b)][_0x1945ab(0x3be)](_0x3a3603,w['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x49b0d1(0x345)](){const _0x1fc50a=_0x49b0d1,_0x1e8cb9=this[_0x1fc50a(0x2f9)][_0x1fc50a(0x223)][_0x1fc50a(0x2a2)](()=>{const _0x4c84dd=_0x1fc50a;this[_0x4c84dd(0x208)]=!0x0;}),_0x2dd2bb=this[_0x1fc50a(0x2f9)][_0x1fc50a(0x2e4)][_0x1fc50a(0x2a2)](()=>{const _0x23ce32=_0x1fc50a;this[_0x23ce32(0x327)]&&clearTimeout(this[_0x23ce32(0x327)]),this[_0x23ce32(0x327)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4534da=_0x1fc50a;_0x1e8cb9['unsubscribe'](),_0x2dd2bb[_0x4534da(0x19a)]();};}[_0x49b0d1(0x4a2)](_0x28a5be,_0x516ba0,_0x76d59b,_0x50fe95){const _0x51348a=_0x49b0d1,_0x223755=new a[(_0x51348a(0x144))](_0x28a5be)[_0x51348a(0x2a6)](0.2)[_0x51348a(0xe1)](),_0x3072a8=new R[(_0x51348a(0x1a2))](ri+a['Tools'][_0x51348a(0xd9)](ce),{'pointsGroup':_0x516ba0,'fill':_0x223755||R['getColor'](a[_0x51348a(0x36c)]['black'],0.2),'left':_0x76d59b,'top':_0x50fe95,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x51348a(0x2c3)][_0x51348a(0x231)](_0x3072a8),this[_0x51348a(0x42b)][_0x51348a(0x3be)](_0x3072a8,w[_0x51348a(0x455)]);}[_0x49b0d1(0x39a)](_0x565ba5,_0x33dfec,_0xec592b,_0x2e2b2f){const _0x46a95c=_0x49b0d1,_0x3086c1=new a[(_0x46a95c(0x144))](_0x565ba5)[_0x46a95c(0x2a6)](0.2)[_0x46a95c(0xe1)](),_0x420fa5=new R[(_0x46a95c(0x1a2))](oi+a['Tools'][_0x46a95c(0xd9)](ce),{'pointsGroup':_0x33dfec,'fill':_0x3086c1||R['getColor'](a[_0x46a95c(0x36c)][_0x46a95c(0x40f)],0.2),'left':_0xec592b,'top':_0x2e2b2f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x46a95c(0x2c3)][_0x46a95c(0x231)](_0x420fa5),this['_scene'][_0x46a95c(0x3be)](_0x420fa5,w['TEXT_RANGE_LAYER_INDEX']);}[_0x49b0d1(0x130)](_0x5cf3a2){const _0x5a28f1=_0x5cf3a2[0x0],_0x35a6ee=_0x5a28f1[0x0],_0x4dcbb7=_0x5a28f1[0x2],{x:_0x5b5d29,y:_0x1cae48}=_0x35a6ee,{x:_0x5e3d52,y:_0x1e6036}=_0x4dcbb7;return{'left':_0x5b5d29,'top':_0x1cae48,'width':_0x5e3d52-_0x5b5d29,'height':_0x1e6036-_0x1cae48};}['_getScale'](){const _0x1c0254=_0x49b0d1,{scaleX:_0x41417a,scaleY:_0xe67e59}=this[_0x1c0254(0x42b)][_0x1c0254(0x3b0)]();return Math['max'](_0x41417a,_0xe67e59);}}var hi=Object[_0x49b0d1(0x37d)],_i=Object[_0x49b0d1(0x26e)],ui=(_0x3ac311,_0x5c264f,_0x179440,_0x5d9d31)=>{const _0x3373b8=_0x49b0d1;for(var _0xf6d238=_0x5d9d31>0x1?void 0x0:_0x5d9d31?_i(_0x5c264f,_0x179440):_0x5c264f,_0x4047d3=_0x3ac311[_0x3373b8(0x429)]-0x1,_0x47fc5f;_0x4047d3>=0x0;_0x4047d3--)(_0x47fc5f=_0x3ac311[_0x4047d3])&&(_0xf6d238=(_0x5d9d31?_0x47fc5f(_0x5c264f,_0x179440,_0xf6d238):_0x47fc5f(_0xf6d238))||_0xf6d238);return _0x5d9d31&&_0xf6d238&&hi(_0x5c264f,_0x179440,_0xf6d238),_0xf6d238;},de=(_0x2311ad,_0x34e2c8)=>(_0x10dfef,_0x28e3d1)=>_0x34e2c8(_0x10dfef,_0x28e3d1,_0x2311ad);let fe=class extends a[_0x49b0d1(0x3b6)]{constructor(_0x5259e9,_0x1e386d,_0x521784,_0x350b78,_0x524d48){const _0x1890e0=_0x49b0d1;super(),d(this,_0x1890e0(0x3ee),[]),d(this,_0x1890e0(0x10f),[]),(this[_0x1890e0(0x2bf)]=_0x5259e9,this['_docSkeletonManagerService']=_0x1e386d,this[_0x1890e0(0xf3)]=_0x521784,this[_0x1890e0(0x378)]=_0x350b78,this['_themeService']=_0x524d48,this[_0x1890e0(0x1d0)]());}[_0x49b0d1(0x1d0)](){const _0x57ae40=_0x49b0d1,_0x140742=this[_0x57ae40(0x2bf)][_0x57ae40(0x18d)],_0xcfcc81=this[_0x57ae40(0x4ef)];this[_0x57ae40(0x357)](v[_0x57ae40(0x3ad)]([this[_0x57ae40(0xf3)][_0x57ae40(0x2af)](_0x140742),this[_0x57ae40(0x462)][_0x57ae40(0x3dc)]])[_0x57ae40(0x110)](E[_0x57ae40(0xf1)](([_0x124239,_0x34e66e])=>({'skeleton':_0xcfcc81[_0x57ae40(0x239)](),'cursors':[..._0x124239[_0x57ae40(0x1e1)]()][_0x57ae40(0x251)](_0x36d036=>({..._0x36d036,'color':_0x34e66e[_0x36d036[_0x57ae40(0x450)]]}))})))[_0x57ae40(0x4ba)](_0x26a2b9=>{const _0x538d6e=_0x57ae40;if(this[_0x538d6e(0x2a8)](),_0x26a2b9){const {skeleton:_0x596ed4,cursors:_0xc4d14c}=_0x26a2b9;this[_0x538d6e(0x23f)](_0x596ed4,_0xc4d14c);}})),this[_0x57ae40(0x2fe)](),this[_0x57ae40(0x43f)]();}[_0x49b0d1(0x23f)](_0x5eac4c,_0x236d9d){const _0x218355=_0x49b0d1,{scene:_0x467172,mainComponent:_0x311002}=this['_context'],_0x58b994=_0x236d9d[_0x218355(0xf1)](_0x176b54=>new ot(_0x176b54,_0x467172,_0x5eac4c,_0x311002));this['_cursorShapes']=_0x58b994,this[_0x218355(0x10f)]=_0x236d9d;}[_0x49b0d1(0x434)](){const _0x3db15b=_0x49b0d1;this[_0x3db15b(0x2a8)]();const {scene:_0x571ee3,mainComponent:_0x30fbd7}=this['_context'],_0x4d9d0e=this[_0x3db15b(0x4ef)][_0x3db15b(0x239)](),_0x56abfe=this['_cursors'][_0x3db15b(0xf1)](_0x4cf69f=>new ot(_0x4cf69f,_0x571ee3,_0x4d9d0e,_0x30fbd7));this[_0x3db15b(0x3ee)]=_0x56abfe;}[_0x49b0d1(0x2a8)](){const _0x1a09dc=_0x49b0d1;this[_0x1a09dc(0x3ee)][_0x1a09dc(0x287)](_0x288ff9=>_0x288ff9[_0x1a09dc(0x4b7)]()),this[_0x1a09dc(0x3ee)]=[];}[_0x49b0d1(0x43f)](){const _0x2c3e38=_0x49b0d1,_0x99433a=[w[_0x2c3e38(0x1f9)]['id']];this['disposeWithMe'](this['_commandService'][_0x2c3e38(0x351)](_0x1ace7b=>{const _0x3c2a9a=_0x2c3e38;_0x99433a[_0x3c2a9a(0x42c)](_0x1ace7b['id'])&&_0x1ace7b[_0x3c2a9a(0x2d8)][_0x3c2a9a(0x18d)]===this[_0x3c2a9a(0x2bf)]['unitId']&&this[_0x3c2a9a(0x434)]();}));}[_0x49b0d1(0x2fe)](){const _0x1575ae=_0x49b0d1;this[_0x1575ae(0x357)](a['fromEventSubject'](this[_0x1575ae(0x2bf)][_0x1575ae(0x2be)][_0x1575ae(0x391)])['pipe'](E[_0x1575ae(0x2ba)](_0x594465=>_0x594465[_0x1575ae(0x158)]===R['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),E[_0x1575ae(0x464)](0x10))[_0x1575ae(0x4ba)](()=>{const _0x1d6a10=_0x1575ae;this[_0x1d6a10(0x434)]();}));}};fe=ui([a[_0x49b0d1(0x2fc)](a[_0x49b0d1(0x260)][_0x49b0d1(0x39b)],fe),de(0x1,a['Inject'](V[_0x49b0d1(0x213)])),de(0x2,a['Inject'](se)),de(0x3,a[_0x49b0d1(0x11b)]),de(0x4,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x2d5)]))],fe);const di=0x1,Si=1.5;class Ot extends R[_0x49b0d1(0x129)]{constructor(_0x9b817b,_0x31ba15){const _0x4e0981=_0x49b0d1;super(_0x9b817b,_0x31ba15),d(this,_0x4e0981(0xfa)),d(this,_0x4e0981(0x3a9),!0x1),d(this,_0x4e0981(0x32f)),d(this,'_name',''),d(this,_0x4e0981(0x47f),_0x4e0981(0x23c)),d(this,_0x4e0981(0x496)),(_0x31ba15&&this[_0x4e0981(0x2d7)](_0x31ba15),this[_0x4e0981(0x223)]['subscribeEvent'](()=>this[_0x4e0981(0x2d7)]({'hovered':!0x0})),this[_0x4e0981(0x2e4)][_0x4e0981(0x2a2)](()=>this[_0x4e0981(0x2d7)]({'hovered':!0x1})));}[_0x49b0d1(0x2d7)](_0x368fa9){const _0x4f96fc=_0x49b0d1;var _0xb968a4,_0x28c7fe,_0x4473c0,_0x4a37cc,_0x996dd7,_0x2d3880;this[_0x4f96fc(0xfa)]=(_0xb968a4=_0x368fa9['color'])!=null?_0xb968a4:this[_0x4f96fc(0xfa)],this[_0x4f96fc(0x3a9)]=(_0x28c7fe=_0x368fa9[_0x4f96fc(0x160)])!=null?_0x28c7fe:this[_0x4f96fc(0x3a9)],this[_0x4f96fc(0x32f)]=(_0x4473c0=_0x368fa9[_0x4f96fc(0xff)])!=null?_0x4473c0:this[_0x4f96fc(0x32f)],this['_name']=(_0x4a37cc=_0x368fa9[_0x4f96fc(0x147)])!=null?_0x4a37cc:this[_0x4f96fc(0x126)],this[_0x4f96fc(0x47f)]=(_0x996dd7=_0x368fa9[_0x4f96fc(0x2ea)])!=null?_0x996dd7:this[_0x4f96fc(0x47f)],this['_backgroundColor']=(_0x2d3880=_0x368fa9['backgroundColor'])!=null?_0x2d3880:this['_backgroundColor'],this['transformByState']({'width':_0x368fa9[_0x4f96fc(0x473)],'height':_0x368fa9[_0x4f96fc(0x30b)]});}[_0x49b0d1(0x340)](_0x14d53f){const _0x1f8880=_0x49b0d1,{row:_0x53a6a9,column:_0xc2eeea}=_0x14d53f;if(_0x53a6a9>=this[_0x1f8880(0x32f)]['startRow']&&_0x53a6a9<=this[_0x1f8880(0x32f)][_0x1f8880(0x43e)]&&_0xc2eeea>=this['_range'][_0x1f8880(0x4d6)]&&_0xc2eeea<=this[_0x1f8880(0x32f)][_0x1f8880(0xf7)]){this[_0x1f8880(0x2d7)]({'hovered':!0x0});return;}this[_0x1f8880(0x2d7)]({'hovered':!0x1});}[_0x49b0d1(0x3ce)](_0x197ab1){return!0x1;}[_0x49b0d1(0x406)](_0x3d7939){const _0x27459b=_0x49b0d1;R['Rect'][_0x27459b(0x420)](_0x3d7939,{'width':this[_0x27459b(0x473)],'height':this[_0x27459b(0x30b)],'strokeWidth':Si,'stroke':this[_0x27459b(0xfa)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x27459b(0x3a9)]&&(_0x3d7939['save'](),_0x3d7939[_0x27459b(0x10e)](0x1,0x0,0x0,0x1,this[_0x27459b(0x473)],this[_0x27459b(0x47f)]===_0x27459b(0x3af)?0x0:-ue),Re['drawWith'](_0x3d7939,{'text':this[_0x27459b(0x126)],'color':this[_0x27459b(0xfa)]}),_0x3d7939[_0x27459b(0x4dc)]());}}var vi=Object[_0x49b0d1(0x37d)],fi=Object[_0x49b0d1(0x26e)],gi=(_0x1f1648,_0x42dfa3,_0x7b83a8,_0x396549)=>{const _0x535c5f=_0x49b0d1;for(var _0x2e0f65=_0x396549>0x1?void 0x0:_0x396549?fi(_0x42dfa3,_0x7b83a8):_0x42dfa3,_0x3591af=_0x1f1648[_0x535c5f(0x429)]-0x1,_0x311738;_0x3591af>=0x0;_0x3591af--)(_0x311738=_0x1f1648[_0x3591af])&&(_0x2e0f65=(_0x396549?_0x311738(_0x42dfa3,_0x7b83a8,_0x2e0f65):_0x311738(_0x2e0f65))||_0x2e0f65);return _0x396549&&_0x2e0f65&&vi(_0x42dfa3,_0x7b83a8,_0x2e0f65),_0x2e0f65;},Ae=(_0x1e3dcb,_0x2ea39f)=>(_0xfdd66f,_0x4d8311)=>_0x2ea39f(_0xfdd66f,_0x4d8311,_0x1e3dcb);const mi=0x1389;let ke=class extends a[_0x49b0d1(0x3b6)]{constructor(_0x4d967d,_0x40fbd3,_0xd87492,_0x11ab03){const _0x4f3b7d=_0x49b0d1;super(),d(this,_0x4f3b7d(0x10f),new Set()),d(this,_0x4f3b7d(0x38f),null),(this[_0x4f3b7d(0x2bf)]=_0x4d967d,this[_0x4f3b7d(0x212)]=_0x40fbd3,this[_0x4f3b7d(0xf3)]=_0xd87492,this['_themeService']=_0x11ab03,this[_0x4f3b7d(0x1d0)]());}[_0x49b0d1(0x1d0)](){const _0x195284=_0x49b0d1;this[_0x195284(0x212)][_0x195284(0x323)][_0x195284(0x110)](E['takeUntil'](this[_0x195284(0xde)]),E[_0x195284(0x2ec)](_0x17a8d8=>{const _0x4c2588=_0x195284;if(_0x17a8d8){const _0x1f8ebd=_0x17a8d8[_0x4c2588(0x352)];return v[_0x4c2588(0x3ad)](this['_collabCursorController'][_0x4c2588(0x2af)](this['_context'][_0x4c2588(0x18d)]),this[_0x4c2588(0x462)][_0x4c2588(0x3dc)])[_0x4c2588(0x110)](E[_0x4c2588(0xf1)](([_0x1893ea,_0x333176])=>{const _0xce539=_0x4c2588,_0x1e316f=new Map();return _0x1893ea[_0xce539(0x287)]((_0x147010,_0x46941b)=>{const _0xaa8f66=_0xce539;if(_0x147010['sheetID']===_0x1f8ebd){const _0x25da28={..._0x147010};_0x25da28[_0xaa8f66(0x450)]=_0x333176[_0x147010[_0xaa8f66(0x450)]],_0x1e316f[_0xaa8f66(0xf0)](_0x46941b,_0x25da28);}}),{'skeleton':_0x17a8d8,'cursors':_0x1e316f};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x195284(0x4ba)](({skeleton:_0xab6718,cursors:_0x1d3a2b})=>{const _0x35c9f1=_0x195284;this[_0x35c9f1(0x2a8)](),_0xab6718&&this[_0x35c9f1(0x23f)](_0xab6718,_0x1d3a2b);}),this['_sheetSkeletonManagerService'][_0x195284(0x323)][_0x195284(0x4ba)](_0x2ef84e=>{const _0x35320a=_0x195284;if(_0x2ef84e==null)return;const {skeleton:_0x28d88a}=_0x2ef84e,{scene:_0x5f0272}=this[_0x35320a(0x2bf)];_0x5f0272[_0x35320a(0x3b1)][_0x35320a(0x2a2)](a[_0x35320a(0x2e8)](_0x3f1a60=>{const _0x507364=_0x35320a;var _0x8bb89a,_0x1ab245;const {offsetX:_0x24dcba,offsetY:_0x44f630}=_0x3f1a60,{x:_0xdc1b23,y:_0x2bd777}=_0x5f0272['getRelativeToViewportCoord'](R[_0x507364(0x3df)][_0x507364(0x48c)]([_0x24dcba,_0x44f630])),{scaleX:_0x5911da,scaleY:_0x31b37a}=_0x5f0272[_0x507364(0x3b0)](),_0x5caf1c=_0x5f0272[_0x507364(0x15c)](te[_0x507364(0x22b)]['VIEW_MAIN']),_0x1f723b=_0x5f0272[_0x507364(0x4b2)](R[_0x507364(0x3df)][_0x507364(0x48c)]([_0xdc1b23,_0x2bd777]),_0x5caf1c),_0x198913=_0x28d88a[_0x507364(0x405)](_0x24dcba,_0x44f630,_0x5911da,_0x31b37a,_0x1f723b);((_0x8bb89a=this[_0x507364(0x38f)])==null?void 0x0:_0x8bb89a[_0x507364(0x1c7)])===_0x198913[_0x507364(0x1c7)]&&((_0x1ab245=this['_lastPointer'])==null?void 0x0:_0x1ab245['row'])===_0x198913[_0x507364(0x2d2)]||this[_0x507364(0x10f)]['forEach'](_0x5befa5=>{const _0x371b50=_0x507364;_0x5befa5[_0x371b50(0x340)](_0x198913);});},0x64));});}['_updateCollabCursors'](_0x175797,_0x235929){const _0x2f8f65=_0x49b0d1;var _0x49fd3d;const _0x3af211=(_0x49fd3d=this['_sheetSkeletonManagerService'][_0x2f8f65(0x195)]())==null?void 0x0:_0x49fd3d[_0x2f8f65(0x398)];if(!_0x3af211)return;const _0x268c9f=this[_0x2f8f65(0x44d)]();if(!_0x268c9f)return;this['_cursors'][_0x2f8f65(0x287)](_0x88eb7a=>{const _0x557353=_0x2f8f65;_0x88eb7a[_0x557353(0x488)]();});const {scene:_0x29142a}=_0x268c9f,_0x23d039=Ii(Array[_0x2f8f65(0x30c)](_0x235929['values']()))[_0x2f8f65(0xf1)](_0x49a1e2=>{const _0x41fca8=_0x2f8f65,{color:_0x503eae,range:_0x53b9ca,name:_0x333977,selection:_0x450b56,sheetID:_0x2ffda7}=_0x49a1e2,{startColumn:_0x1f1ff9,startRow:_0x4e5f2a,endColumn:_0x3a6d60,endRow:_0xb1cc19}=_0x53b9ca,_0x159f2f=te[_0x41fca8(0x3d3)](_0x4e5f2a,_0x1f1ff9,_0x29142a,_0x3af211),_0x5a32ee=te[_0x41fca8(0x3d3)](_0xb1cc19,_0x3a6d60,_0x29142a,_0x3af211),{columnHeaderHeightAndMarginTop:_0x518f32}=_0x3af211,{startX:_0x17ac99,startY:_0x1370d0}=_0x159f2f,{endX:_0x2eb4d7,endY:_0x593d1d}=_0x5a32ee,_0x3a1c52=_0x2eb4d7-_0x17ac99,_0x413a24=_0x593d1d-_0x1370d0,_0x498893={'labelPosition':_0x1370d0-_0x518f32>=ue?_0x41fca8(0x23c):'bottom','sheetID':_0x2ffda7,'range':_0x53b9ca,'color':_0x503eae,'name':_0x333977,'selection':_0x450b56,'left':_0x17ac99,'top':_0x1370d0,'width':_0x3a1c52,'height':_0x413a24,'evented':!0x1,'zIndex':mi};return new Ot(_0x333977,_0x498893);});_0x29142a[_0x2f8f65(0x2a4)](_0x23d039,di),this['_cursors']=new Set(_0x23d039);}['_removeCollabCursors'](){const _0x4b9966=_0x49b0d1;var _0xbf27e;(_0xbf27e=this[_0x4b9966(0x10f)])==null||_0xbf27e[_0x4b9966(0x287)](_0x430ff2=>_0x430ff2[_0x4b9966(0x4b7)]());}[_0x49b0d1(0x44d)](){const _0x51ffb7=_0x49b0d1;return te[_0x51ffb7(0x238)](this['_context'][_0x51ffb7(0x285)],this[_0x51ffb7(0x2bf)]);}};ke=gi([Ae(0x1,a[_0x49b0d1(0x257)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](se)),Ae(0x3,a['Inject'](a['ThemeService']))],ke);function Ii(_0x9651d3){const _0x36c25a=_0x49b0d1,_0x489481=new Map();return _0x9651d3[_0x36c25a(0x287)](_0x4e85cc=>{const _0x56ea5b=_0x36c25a;if(_0x489481[_0x56ea5b(0x14b)](_0x4e85cc['selection'])){const _0xb7e66e=_0x489481['get'](_0x4e85cc[_0x56ea5b(0x3fa)]);_0xb7e66e[_0x56ea5b(0x147)]+=',\x20'+_0x4e85cc['name'];}else _0x489481['set'](_0x4e85cc[_0x56ea5b(0x3fa)],_0x4e85cc);}),Array['from'](_0x489481[_0x36c25a(0x1e1)]());}var M=function(){const _0x3b3d5f=_0x49b0d1;return M=Object[_0x3b3d5f(0x472)]||function(_0x4d4ea0){const _0x34c2cd=_0x3b3d5f;for(var _0xa4a968,_0x32829f=0x1,_0x50330b=arguments[_0x34c2cd(0x429)];_0x32829f<_0x50330b;_0x32829f++){_0xa4a968=arguments[_0x32829f];for(var _0x178e64 in _0xa4a968)Object[_0x34c2cd(0x13f)][_0x34c2cd(0xe4)][_0x34c2cd(0x499)](_0xa4a968,_0x178e64)&&(_0x4d4ea0[_0x178e64]=_0xa4a968[_0x178e64]);}return _0x4d4ea0;},M[_0x3b3d5f(0x191)](this,arguments);},pi=function(_0x374f12,_0x1604f0){const _0x48727f=_0x49b0d1;var _0x5b85ea={};for(var _0x5b2941 in _0x374f12)Object[_0x48727f(0x13f)][_0x48727f(0xe4)]['call'](_0x374f12,_0x5b2941)&&_0x1604f0[_0x48727f(0x3dd)](_0x5b2941)<0x0&&(_0x5b85ea[_0x5b2941]=_0x374f12[_0x5b2941]);if(_0x374f12!=null&&typeof Object[_0x48727f(0x178)]==_0x48727f(0x41c)){for(var _0x25d12f=0x0,_0x5b2941=Object[_0x48727f(0x178)](_0x374f12);_0x25d12f<_0x5b2941['length'];_0x25d12f++)_0x1604f0[_0x48727f(0x3dd)](_0x5b2941[_0x25d12f])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x48727f(0x499)](_0x374f12,_0x5b2941[_0x25d12f])&&(_0x5b85ea[_0x5b2941[_0x25d12f]]=_0x374f12[_0x5b2941[_0x25d12f]]);}return _0x5b85ea;},qe=U[_0x49b0d1(0x264)](function(_0x219a3c,_0x561a09){const _0x545bfe=_0x49b0d1;var _0x2c8305=_0x219a3c[_0x545bfe(0x26b)],_0x45c07a=_0x219a3c['id'],_0x50fc89=_0x219a3c[_0x545bfe(0x253)],_0x39a402=_0x219a3c[_0x545bfe(0x3f9)],_0x3c0b33=pi(_0x219a3c,['icon','id',_0x545bfe(0x253),_0x545bfe(0x3f9)]),_0x49a3cc=_0x545bfe(0x32e)[_0x545bfe(0x262)](_0x45c07a,'\x20')[_0x545bfe(0x262)](_0x50fc89||'')['trim'](),_0x3cbbb4=U[_0x545bfe(0x184)]('_'[_0x545bfe(0x262)](bi()));return Dt(_0x2c8305,''['concat'](_0x45c07a),{'defIds':_0x2c8305[_0x545bfe(0x197)],'idSuffix':_0x3cbbb4['current']},M({'ref':_0x561a09,'className':_0x49a3cc},_0x3c0b33),_0x39a402);});function Dt(_0x208da7,_0x5dd477,_0x25567f,_0x3c835a,_0x42bba3){const _0x197d4f=_0x49b0d1;return U[_0x197d4f(0x10b)](_0x208da7[_0x197d4f(0x347)],M(M({'key':_0x5dd477},Ci(_0x208da7,_0x25567f,_0x42bba3)),_0x3c835a),(Ei(_0x208da7,_0x25567f)[_0x197d4f(0x313)]||[])[_0x197d4f(0xf1)](function(_0x144444,_0x41a2b0){const _0x94b668=_0x197d4f;return Dt(_0x144444,''[_0x94b668(0x262)](_0x5dd477,'-')[_0x94b668(0x262)](_0x208da7[_0x94b668(0x347)],'-')[_0x94b668(0x262)](_0x41a2b0),_0x25567f,void 0x0,_0x42bba3);}));}function Ci(_0x36916c,_0x1b235c,_0x44b438){const _0x2a9c2e=_0x49b0d1;var _0x472888=M({},_0x36916c[_0x2a9c2e(0x1b7)]);_0x44b438!=null&&_0x44b438[_0x2a9c2e(0x105)]&&_0x472888['fill']===_0x2a9c2e(0x105)&&(_0x472888[_0x2a9c2e(0x379)]=_0x44b438[_0x2a9c2e(0x105)]);var _0x2a188c=_0x1b235c[_0x2a9c2e(0x197)];return!_0x2a188c||_0x2a188c['length']===0x0||(_0x36916c[_0x2a9c2e(0x347)]===_0x2a9c2e(0x4bc)&&_0x472888['xlink:href']&&(_0x472888[_0x2a9c2e(0x13d)]=_0x472888[_0x2a9c2e(0x13d)]+_0x1b235c[_0x2a9c2e(0x25a)]),Object[_0x2a9c2e(0x109)](_0x472888)['forEach'](function(_0x144061){const _0x4e79e0=_0x2a9c2e;var _0x2a8b8f=_0x144061[0x0],_0x1a7944=_0x144061[0x1];typeof _0x1a7944==_0x4e79e0(0x244)&&(_0x472888[_0x2a8b8f]=_0x1a7944['replace'](/url\(#(.*)\)/,_0x4e79e0(0x25d)[_0x4e79e0(0x262)](_0x1b235c['idSuffix'],')')));})),_0x472888;}function Ei(_0x1a696f,_0x10e13e){const _0x18c67b=_0x49b0d1;var _0x424a3d,_0xf98203=_0x10e13e[_0x18c67b(0x197)];return!_0xf98203||_0xf98203[_0x18c67b(0x429)]===0x0?_0x1a696f:_0x1a696f['tag']===_0x18c67b(0x3d6)&&(!((_0x424a3d=_0x1a696f['children'])===null||_0x424a3d===void 0x0)&&_0x424a3d[_0x18c67b(0x429)])?M(M({},_0x1a696f),{'children':_0x1a696f['children'][_0x18c67b(0xf1)](function(_0x167a50){const _0x34d85d=_0x18c67b;return typeof _0x167a50['attrs']['id']==_0x34d85d(0x244)&&_0xf98203&&_0xf98203[_0x34d85d(0x3dd)](_0x167a50[_0x34d85d(0x1b7)]['id'])>-0x1?M(M({},_0x167a50),{'attrs':M(M({},_0x167a50[_0x34d85d(0x1b7)]),{'id':_0x167a50['attrs']['id']+_0x10e13e[_0x34d85d(0x25a)]})}):_0x167a50;})}):_0x1a696f;}function bi(){const _0x85de9a=_0x49b0d1;return Math[_0x85de9a(0x1cc)]()[_0x85de9a(0x296)](0x24)[_0x85de9a(0xdc)](0x2,0x8);}qe['displayName']='UniverIcon';var Ti={'tag':_0x49b0d1(0x42e),'attrs':{'fill':_0x49b0d1(0x29d),'viewBox':'0\x200\x2016\x2016','width':_0x49b0d1(0x29a),'height':_0x49b0d1(0x29a)},'children':[{'tag':'g','attrs':{'clipPath':_0x49b0d1(0x43d)},'children':[{'tag':'path','attrs':{'stroke':_0x49b0d1(0x172),'d':_0x49b0d1(0x35b),'strokeLinecap':'round','strokeLinejoin':_0x49b0d1(0x370),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x49b0d1(0x3eb),'attrs':{'id':_0x49b0d1(0x343)},'children':[{'tag':_0x49b0d1(0x46d),'attrs':{'fill':_0x49b0d1(0x360),'d':_0x49b0d1(0x41d)}}]}]}],'defIds':[_0x49b0d1(0x343)]},yt=U[_0x49b0d1(0x264)](function(_0x1a2f56,_0x5c872d){const _0x3efffe=_0x49b0d1;return U[_0x3efffe(0x10b)](qe,Object['assign']({},_0x1a2f56,{'id':_0x3efffe(0x1d6),'ref':_0x5c872d,'icon':Ti}));});yt[_0x49b0d1(0x3c3)]=_0x49b0d1(0x369);var Ri={'tag':_0x49b0d1(0x42e),'attrs':{'fill':_0x49b0d1(0x29d),'viewBox':_0x49b0d1(0x2b6),'width':'1em','height':_0x49b0d1(0x29a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x49b0d1(0x46d),'attrs':{'stroke':_0x49b0d1(0x172),'d':_0x49b0d1(0x2dc),'strokeLinecap':_0x49b0d1(0x370),'strokeLinejoin':_0x49b0d1(0x370),'strokeWidth':1.2}}]},{'tag':_0x49b0d1(0x3d6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x49b0d1(0x37f)},'children':[{'tag':_0x49b0d1(0x46d),'attrs':{'fill':_0x49b0d1(0x360),'d':_0x49b0d1(0x41d),'transform':'translate(.97)'}}]}]}],'defIds':[_0x49b0d1(0x37f)]},Ut=U[_0x49b0d1(0x264)](function(_0x5f2f77,_0x58fa02){const _0x5e9efa=_0x49b0d1;return U[_0x5e9efa(0x10b)](qe,Object[_0x5e9efa(0x472)]({},_0x5f2f77,{'id':'on-line-single','ref':_0x58fa02,'icon':Ri}));});Ut['displayName']=_0x49b0d1(0x205);const Oi=_0x49b0d1(0x484),Di=_0x49b0d1(0x304),yi=_0x49b0d1(0x1d3),Ui=_0x49b0d1(0x121),Pi=_0x49b0d1(0x397),le={'onlineStatusIcon':Oi,'onlineStatusTitle':Di,'onlineStatus':yi,'online':Ui,'offline':Pi};function wi(_0x5d506a){const _0x3f0cb8=_0x49b0d1;switch(_0x5d506a){case y['OFFLINE']:return'collabStatus.offline';case y[_0x3f0cb8(0x371)]:return _0x3f0cb8(0x2e5);case y[_0x3f0cb8(0x179)]:return'collabStatus.fetchMiss';case y[_0x3f0cb8(0x2ae)]:return _0x3f0cb8(0x410);case y[_0x3f0cb8(0x4b6)]:case y[_0x3f0cb8(0x356)]:case y['AWAITING_WITH_PENDING']:return _0x3f0cb8(0x37c);case y[_0x3f0cb8(0x470)]:return _0x3f0cb8(0x233);}}function Pt(_0x573dfe){const _0x379d91=_0x49b0d1,{status$:_0xa341e5}=_0x573dfe,_0x1cfec=N[_0x379d91(0x23b)](_0xa341e5,y[_0x379d91(0x2ae)]),_0xf45406=a[_0x379d91(0x3ec)](a[_0x379d91(0x339)]),_0x47735e=a[_0x379d91(0x3ec)](exports['CollaborationSessionService']),_0x4fae9c=_0x1cfec!==y[_0x379d91(0xe6)],_0x287ab1=_0xf45406['t'](wi(_0x1cfec)),_0x26e936=Vt(le['onlineStatus'],{[le['online']]:_0x4fae9c,[le[_0x379d91(0x1a5)]]:!_0x4fae9c}),_0x16ebe3=_0x4fae9c?U[_0x379d91(0x10b)](Ut,null):U[_0x379d91(0x10b)](yt,null),_0x38366f=U[_0x379d91(0x3ed)](()=>{const _0x3014d3=_0x379d91;_0x4fae9c||_0x47735e[_0x3014d3(0xea)]();},[_0x4fae9c,_0x47735e]);function _0x3a597a(){const _0x21e9f8=_0x379d91;return U[_0x21e9f8(0x10b)]('div',{'className':_0x26e936,'onClick':_0x38366f},U[_0x21e9f8(0x10b)](_0x21e9f8(0x3b8),{'className':le[_0x21e9f8(0x336)]},_0x16ebe3),U['createElement'](_0x21e9f8(0x3b8),{'className':le['onlineStatusTitle']},_0x287ab1));}return _0x4fae9c?_0x3a597a():U[_0x379d91(0x10b)](X[_0x379d91(0x311)],{'title':_0xf45406['t']('collab-client.tooltip.reconnect')},_0x3a597a());}var Mi=Object[_0x49b0d1(0x37d)],Ni=Object['getOwnPropertyDescriptor'],Li=(_0x294409,_0x1736b5,_0x22e44c,_0x2ddcc3)=>{for(var _0x433aa0=_0x2ddcc3>0x1?void 0x0:_0x2ddcc3?Ni(_0x1736b5,_0x22e44c):_0x1736b5,_0x449518=_0x294409['length']-0x1,_0x3dea6f;_0x449518>=0x0;_0x449518--)(_0x3dea6f=_0x294409[_0x449518])&&(_0x433aa0=(_0x2ddcc3?_0x3dea6f(_0x1736b5,_0x22e44c,_0x433aa0):_0x3dea6f(_0x433aa0))||_0x433aa0);return _0x2ddcc3&&_0x433aa0&&Mi(_0x1736b5,_0x22e44c,_0x433aa0),_0x433aa0;},Se=(_0x8e9076,_0x4ba482)=>(_0x5067c1,_0x374535)=>_0x4ba482(_0x5067c1,_0x374535,_0x8e9076);exports[_0x49b0d1(0x35f)]=class extends a[_0x49b0d1(0x3a5)]{constructor(_0x50c2be,_0x18607e,_0x445572,_0x5af150){const _0x195342=_0x49b0d1;super(),d(this,_0x195342(0x162),new v[(_0x195342(0x17f))](y[_0x195342(0x2ae)])),(this[_0x195342(0x3e4)]=_0x50c2be,this[_0x195342(0xeb)]=_0x18607e,this[_0x195342(0x451)]=_0x445572,this[_0x195342(0x111)]=_0x5af150,this[_0x195342(0x1af)](),this[_0x195342(0x48e)]());}[_0x49b0d1(0x48e)](){const _0x4837a7=_0x49b0d1;this[_0x4837a7(0x357)](this[_0x4837a7(0x3e4)][_0x4837a7(0x2c8)][_0x4837a7(0x110)](v[_0x4837a7(0x2ec)](()=>{const _0x13516a=_0x4837a7,_0x2b3629=this['_univerInstanceService'][_0x13516a(0x36a)]();return _0x2b3629?this[_0x13516a(0x111)][_0x13516a(0x44c)](_0x2b3629[_0x13516a(0x234)]()):v['of'](null);}),v[_0x4837a7(0x2ec)](_0x149629=>_0x149629?_0x149629['status$']:v['of'](y[_0x4837a7(0x2ae)])))[_0x4837a7(0x4ba)](_0x1caaa9=>{const _0x22e9bd=_0x4837a7;this[_0x22e9bd(0x162)][_0x22e9bd(0x329)](_0x1caaa9);}));}[_0x49b0d1(0x1af)](){const _0x32c28c=_0x49b0d1;this['disposeWithMe'](this[_0x32c28c(0xeb)][_0x32c28c(0x3d1)](N['BuiltInUIPart'][_0x32c28c(0x216)],()=>a[_0x32c28c(0x3a1)](Ai({'status$':this[_0x32c28c(0x162)][_0x32c28c(0x42a)]()}),this[_0x32c28c(0x451)])));}},exports[_0x49b0d1(0x35f)]=Li([Se(0x0,a[_0x49b0d1(0xe5)]),Se(0x1,N['IUIPartsService']),Se(0x2,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),Se(0x3,a[_0x49b0d1(0x257)](exports[_0x49b0d1(0x481)]))],exports[_0x49b0d1(0x35f)]);function Ai(_0xb67cbe){const {status$:_0x296bd1}=_0xb67cbe;return function(){const _0x59257c=_0x5144;return U[_0x59257c(0x10b)](Pt,{'status$':_0x296bd1});};}const ze=a[_0x49b0d1(0x138)](_0x49b0d1(0x24f));var $i=Object[_0x49b0d1(0x37d)],ji=Object[_0x49b0d1(0x26e)],Hi=(_0x53894b,_0xcbecc4,_0x37fbd6,_0x30a945)=>{const _0x1026fa=_0x49b0d1;for(var _0x349771=_0x30a945>0x1?void 0x0:_0x30a945?ji(_0xcbecc4,_0x37fbd6):_0xcbecc4,_0x19214e=_0x53894b[_0x1026fa(0x429)]-0x1,_0x407e03;_0x19214e>=0x0;_0x19214e--)(_0x407e03=_0x53894b[_0x19214e])&&(_0x349771=(_0x30a945?_0x407e03(_0xcbecc4,_0x37fbd6,_0x349771):_0x407e03(_0x349771))||_0x349771);return _0x30a945&&_0x349771&&$i(_0xcbecc4,_0x37fbd6,_0x349771),_0x349771;},ee=(_0x18b6cc,_0x5dc1d7)=>(_0x49f130,_0x36629b)=>_0x5dc1d7(_0x49f130,_0x36629b,_0x18b6cc);exports[_0x49b0d1(0x330)]=class extends a[_0x49b0d1(0x3b6)]{constructor(_0x21db2e,_0x5b3194,_0x1d11e6,_0x437c55,_0x270016,_0x1df11f){const _0x509018=_0x49b0d1;super(),this[_0x509018(0x148)]=_0x21db2e,this[_0x509018(0x200)]=_0x5b3194,this[_0x509018(0x378)]=_0x1d11e6,this[_0x509018(0x2ac)]=_0x437c55,this['_snapshotService']=_0x270016,_0x1df11f?_0x1df11f==null||_0x1df11f[_0x509018(0x28c)]()[_0x509018(0x49b)](()=>this[_0x509018(0x1d0)]()):(this[_0x509018(0x200)][_0x509018(0x1c5)](_0x509018(0x1a0),_0x509018(0x493)),this[_0x509018(0x1d0)]());}async[_0x49b0d1(0x1d0)](){const _0x144ce2=_0x49b0d1,_0x129323=this[_0x144ce2(0x148)][_0x144ce2(0x4c2)](_0x144ce2(0x285)),_0x5dc1df=this[_0x144ce2(0x148)][_0x144ce2(0x4c2)]('type');if(!_0x129323||!_0x5dc1df){this[_0x144ce2(0x200)][_0x144ce2(0x1c5)](_0x144ce2(0x1a0),_0x144ce2(0x118));return;}switch(Number(_0x5dc1df)){case $[_0x144ce2(0x125)]:{const _0x4276b8=await this[_0x144ce2(0x4cf)](_0x129323);this['_setupSubUnitSync'](_0x4276b8);break;}case $[_0x144ce2(0x215)]:{await this['_loadDoc'](_0x129323);break;}default:{this[_0x144ce2(0x200)]['error'](_0x144ce2(0x1a0),_0x144ce2(0x295));break;}}}async[_0x49b0d1(0x37e)](_0x3e6eb7){const _0x5cbc84=_0x49b0d1;await this[_0x5cbc84(0x3d4)](_0x3e6eb7),_0x3e6eb7[_0x5cbc84(0x2c1)][_0x5cbc84(0x110)](v['takeUntil'](this[_0x5cbc84(0xde)]))[_0x5cbc84(0x4ba)](_0x111057=>{const _0x1d690d=_0x5cbc84;_0x111057&&this[_0x1d690d(0x482)](_0x111057);}),this[_0x5cbc84(0x148)]['urlChange$'][_0x5cbc84(0x110)](v[_0x5cbc84(0x221)](this[_0x5cbc84(0xde)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x3e6eb7));}[_0x49b0d1(0x482)](_0x321a3a,_0x4eb66d=!0x1){const _0x4982fa=_0x49b0d1,_0x2d846f=this['_urlService'][_0x4982fa(0x4c2)]('subunit');_0x321a3a[_0x4982fa(0x3ef)]()!==_0x2d846f&&this[_0x4982fa(0x148)][_0x4982fa(0x101)](_0x4982fa(0x411),_0x321a3a['getSheetId'](),_0x4eb66d);}async[_0x49b0d1(0x3d4)](_0x27b118){const _0xc6fa33=_0x49b0d1;var _0x5005a4;const _0x87df0b=this[_0xc6fa33(0x148)][_0xc6fa33(0x4c2)](_0xc6fa33(0x411));if(!_0x87df0b||!_0x27b118[_0xc6fa33(0x153)](_0x87df0b)){const _0xddca6=_0x27b118[_0xc6fa33(0x4f8)]()[0x0],_0x534f3c=_0x27b118[_0xc6fa33(0x153)](_0xddca6);if(!_0x534f3c)return;this[_0xc6fa33(0x482)](_0x534f3c,!0x0),await this[_0xc6fa33(0x378)][_0xc6fa33(0x338)](C[_0xc6fa33(0x3d9)]['id'],{'unitId':_0x27b118[_0xc6fa33(0x234)](),'subUnitId':_0xddca6});return;}((_0x5005a4=_0x27b118['getActiveSheet']())==null?void 0x0:_0x5005a4[_0xc6fa33(0x3ef)]())!==_0x87df0b&&await this[_0xc6fa33(0x378)][_0xc6fa33(0x338)](C[_0xc6fa33(0x3d9)]['id'],{'unitId':_0x27b118[_0xc6fa33(0x234)](),'subUnitId':_0x87df0b});}async[_0x49b0d1(0x4cf)](_0x307079){const _0x454d04=_0x49b0d1;let _0x4f4776=0x0;const _0x5e6fb7=await this[_0x454d04(0x2ac)]['loadOfflineData'](_0x307079);return _0x5e6fb7&&(_0x5e6fb7[_0x454d04(0x47b)]||_0x5e6fb7[_0x454d04(0x2a3)]['length']!==0x0)&&(_0x4f4776=_0x5e6fb7['rev']),_0x4f4776===0x0&&this['_logService']['debug'](_0x454d04(0x1a0),_0x454d04(0x38b)),this[_0x454d04(0x123)]['loadSheet'](_0x307079,_0x4f4776);}async[_0x49b0d1(0x167)](_0x21ea60){const _0x194013=_0x49b0d1;let _0x245d6f=0x0;const _0x5ee9c5=await this['_localCacheService'][_0x194013(0x227)](_0x21ea60);return _0x5ee9c5&&(_0x5ee9c5['awaitingChangeset']||_0x5ee9c5[_0x194013(0x2a3)][_0x194013(0x429)]!==0x0)&&(_0x245d6f=_0x5ee9c5[_0x194013(0x12d)]),_0x245d6f===0x0&&this[_0x194013(0x200)][_0x194013(0x1c5)](_0x194013(0x1a0),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x194013(0x123)]['loadDoc'](_0x21ea60,_0x245d6f);}},exports['DataLoaderController']=Hi([a['OnLifecycle'](a[_0x49b0d1(0x260)][_0x49b0d1(0x4c9)],exports[_0x49b0d1(0x330)]),ee(0x0,ze),ee(0x1,a[_0x49b0d1(0x4fd)]),ee(0x2,a[_0x49b0d1(0x11b)]),ee(0x3,a[_0x49b0d1(0x257)](exports['LocalCacheService'])),ee(0x4,a[_0x49b0d1(0x257)](_[_0x49b0d1(0x1d8)])),ee(0x5,a[_0x49b0d1(0x3f8)](Wt[_0x49b0d1(0xf4)]))],exports[_0x49b0d1(0x330)]);var xi=Object[_0x49b0d1(0x37d)],ki=Object[_0x49b0d1(0x26e)],Bi=(_0x20d43c,_0x495bd3,_0x1e3526,_0x57a077)=>{for(var _0x5729d9=_0x57a077>0x1?void 0x0:_0x57a077?ki(_0x495bd3,_0x1e3526):_0x495bd3,_0x32fbd2=_0x20d43c['length']-0x1,_0xdb1b8b;_0x32fbd2>=0x0;_0x32fbd2--)(_0xdb1b8b=_0x20d43c[_0x32fbd2])&&(_0x5729d9=(_0x57a077?_0xdb1b8b(_0x495bd3,_0x1e3526,_0x5729d9):_0xdb1b8b(_0x5729d9))||_0x5729d9);return _0x57a077&&_0x5729d9&&xi(_0x495bd3,_0x1e3526,_0x5729d9),_0x5729d9;},at=(_0x1cfbe4,_0x137d0c)=>(_0x424ab9,_0x59fbe8)=>_0x137d0c(_0x424ab9,_0x59fbe8,_0x1cfbe4);const Vi=_0x49b0d1(0x181),Wi=_0x49b0d1(0x4c7);let ge=class extends a[_0x49b0d1(0x3a5)]{constructor(_0x496fc3,_0x5d2985){const _0x5bdeb0=_0x49b0d1;super(),this['_univerInstanceService']=_0x496fc3,this['_configService']=_0x5d2985,this[_0x5bdeb0(0x1d0)]();}[_0x49b0d1(0x1d0)](){const _0xb68e72=_0x49b0d1;this[_0xb68e72(0x357)](a[_0xb68e72(0x41b)](this['_univerInstanceService'][_0xb68e72(0x2c8)][_0xb68e72(0x4ba)](()=>{const _0x131aa6=_0xb68e72;var _0x35c5a2;const _0x4fd6a6=this[_0x131aa6(0x3e4)][_0x131aa6(0x36a)]();let _0x496942=(_0x35c5a2=this[_0x131aa6(0x1f4)]['getConfig'](Vi))!=null?_0x35c5a2:Wi;_0x4fd6a6 instanceof a[_0x131aa6(0x2ca)]&&(_0x496942=_0x4fd6a6[_0x131aa6(0x147)]),document[_0x131aa6(0xf6)]=_0x496942;})));}};ge=Bi([a[_0x49b0d1(0x2fc)](a[_0x49b0d1(0x260)]['Ready'],ge),at(0x0,a[_0x49b0d1(0xe5)]),at(0x1,a[_0x49b0d1(0x2b8)])],ge);var Fi=Object[_0x49b0d1(0x37d)],Gi=Object['getOwnPropertyDescriptor'],Yi=(_0x468f09,_0x141fcc,_0x4c34d9,_0x2b3962)=>{const _0x32a49e=_0x49b0d1;for(var _0x5a4536=_0x2b3962>0x1?void 0x0:_0x2b3962?Gi(_0x141fcc,_0x4c34d9):_0x141fcc,_0x4e64dd=_0x468f09[_0x32a49e(0x429)]-0x1,_0x31a6c1;_0x4e64dd>=0x0;_0x4e64dd--)(_0x31a6c1=_0x468f09[_0x4e64dd])&&(_0x5a4536=(_0x2b3962?_0x31a6c1(_0x141fcc,_0x4c34d9,_0x5a4536):_0x31a6c1(_0x5a4536))||_0x5a4536);return _0x2b3962&&_0x5a4536&&Fi(_0x141fcc,_0x4c34d9,_0x5a4536),_0x5a4536;},$e=(_0x53e02e,_0x41038b)=>(_0x442050,_0x36fd1f)=>_0x41038b(_0x442050,_0x36fd1f,_0x53e02e);let Ee=class{constructor(_0x9634b,_0x315a1c,_0x26935a){const _0x38107e=_0x49b0d1;this['_configService']=_0x9634b,this[_0x38107e(0x3a8)]=_0x315a1c,this[_0x38107e(0x194)]=_0x26935a,this['init']();}[_0x49b0d1(0x142)](){const _0xd54e52=_0x49b0d1;this[_0xd54e52(0x3a8)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x2db23b,_0x2fcea7)=>_0x2fcea7(_0x2db23b)[_0xd54e52(0x110)](v[_0xd54e52(0x335)](async _0x15028f=>{const _0x17d24e=_0xd54e52,_0x230b56=_0x15028f;if(_0x230b56[_0x17d24e(0x492)]===0x191&&window[_0x17d24e(0x4e5)](this[_0x17d24e(0x194)]['t'](_0x17d24e(0x259)))){const _0x5c189e=window[_0x17d24e(0x439)](window[_0x17d24e(0x1fe)][_0x17d24e(0x237)]);window[_0x17d24e(0x1fe)]['href']=this[_0x17d24e(0x39f)]()+_0x17d24e(0x16e)+_0x5c189e;}return _0x230b56;}))});}[_0x49b0d1(0x39f)](){const _0x3309ec=_0x49b0d1;var _0x3f92f0,_0x1d3721;const _0x1dc2ab=this[_0x3309ec(0x1f4)][_0x3309ec(0x20c)](mt),_0x57820a=this[_0x3309ec(0x1f4)][_0x3309ec(0x20c)](L);return(_0x1d3721=(_0x3f92f0=_0x57820a==null?void 0x0:_0x57820a[_0x3309ec(0x373)])!=null?_0x3f92f0:_0x1dc2ab)!=null?_0x1d3721:es;}};Ee=Yi([$e(0x0,a[_0x49b0d1(0x2b8)]),$e(0x1,a[_0x49b0d1(0x257)](P[_0x49b0d1(0x3e2)])),$e(0x2,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x339)]))],Ee);var Ki=Object[_0x49b0d1(0x37d)],Xi=Object[_0x49b0d1(0x26e)],qi=(_0x8e1907,_0x187d8e,_0x53ae75,_0x121a6b)=>{for(var _0x49f458=_0x121a6b>0x1?void 0x0:_0x121a6b?Xi(_0x187d8e,_0x53ae75):_0x187d8e,_0x3c2a45=_0x8e1907['length']-0x1,_0x1aa411;_0x3c2a45>=0x0;_0x3c2a45--)(_0x1aa411=_0x8e1907[_0x3c2a45])&&(_0x49f458=(_0x121a6b?_0x1aa411(_0x187d8e,_0x53ae75,_0x49f458):_0x1aa411(_0x49f458))||_0x49f458);return _0x121a6b&&_0x49f458&&Ki(_0x187d8e,_0x53ae75,_0x49f458),_0x49f458;},ct=(_0x462ebd,_0x28de32)=>(_0x4eb029,_0x1a3d96)=>_0x28de32(_0x4eb029,_0x1a3d96,_0x462ebd);const wt='AUTHZ_URL_KEY',zi=_0x49b0d1(0x3c7);exports[_0x49b0d1(0x2bc)]=class extends a['Disposable']{constructor(_0x56f5b3,_0x21162b){const _0x1358b9=_0x49b0d1;super(),this[_0x1358b9(0x22a)]=_0x56f5b3,this[_0x1358b9(0x1f4)]=_0x21162b,this['_initMergeInterceptor']();}[_0x49b0d1(0x2b4)](){const _0x3ab13e=_0x49b0d1,_0x4a1a48=this;this[_0x3ab13e(0x357)](this['_HTTPService'][_0x3ab13e(0xfe)]({'priority':0x3e7,'interceptor':P[_0x3ab13e(0x4d9)]({'isMatch'(_0x566f44){const _0x4b5047=_0x3ab13e;var _0x27030d;if(_0x566f44[_0x4b5047(0x4f3)]==='POST'&&((_0x27030d=_0x566f44[_0x4b5047(0x20f)])!=null&&_0x27030d['body'])){const {objectID:_0x4512b1,objectType:_0x2c3566}=_0x566f44['requestParams'][_0x4b5047(0x362)]||{};if(!_0x4512b1||_0x2c3566===void 0x0)return!0x1;const _0x58fe65=_0x4a1a48['_getAPIPrefixPath']()+'/'+_0x2c3566+_0x4b5047(0x136)+_0x4512b1+_0x4b5047(0x10d);if(_0x566f44[_0x4b5047(0x3e3)]===_0x58fe65)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x155bc0){const _0x2b1b78=_0x3ab13e;var _0x18f15d;return(_0x18f15d=_0x155bc0['requestParams'])==null?void 0x0:_0x18f15d[_0x2b1b78(0x362)];},'mergeParamsToRequest'(_0x382248,_0x3a5785){const _0x53014c=_0x3ab13e,_0x32a578=_0x4a1a48[_0x53014c(0x40d)]()+'/-/object/-/batch_allowed',_0x48feb9=_0x382248[_0x53014c(0x28e)]((_0x4a09ed,_0x15d8d7)=>{const _0x19687b=_0x53014c,{unitID:_0x3047f5,objectID:_0x17034e,objectType:_0x5290eb,actions:_0x4c2a05}=_0x15d8d7;return _0x4a09ed[_0x3047f5]||(_0x4a09ed[_0x3047f5]={}),_0x4a09ed[_0x3047f5][_0x17034e]||(_0x4a09ed[_0x3047f5][_0x17034e]={'objectID':_0x17034e,'objectType':_0x5290eb,'actions':[]}),_0x4a09ed[_0x3047f5][_0x17034e][_0x19687b(0x15b)][_0x19687b(0x231)](..._0x4c2a05),_0x4a09ed;},{}),_0x13c12e=[];for(const _0x1aa144 in _0x48feb9)for(const _0x1f36bd in _0x48feb9[_0x1aa144]){const {actions:_0x3e7b4c,objectType:_0x2c1e94}=_0x48feb9[_0x1aa144][_0x1f36bd],_0x3c4e91=[...new Set(_0x3e7b4c)];_0x13c12e[_0x53014c(0x231)]({'unitID':_0x1aa144,'objectID':_0x1f36bd,'objectType':_0x2c1e94,'actions':_0x3c4e91});}return new P[(_0x53014c(0x2c9))](_0x53014c(0x2b5),_0x32a578,{'headers':_0x3a5785[_0x53014c(0x2b7)],'withCredentials':_0x3a5785[_0x53014c(0x402)],'responseType':_0x3a5785[_0x53014c(0x42f)],'body':{'requests':_0x13c12e}});}},{'distributeResult'(_0x4dc8ba,_0x2c6689){const _0x7ba76c=_0x3ab13e,{objectActions:_0x3cff9c}=_0x4dc8ba;return _0x2c6689[_0x7ba76c(0xf1)](_0x3fa558=>{const _0x154422=_0x7ba76c,{unitID:_0x25ae38,objectID:_0x556ce8,actions:_0x2397b5}=_0x3fa558,_0x49544d=_0x3cff9c[_0x154422(0xdd)](_0x30d5a0=>_0x30d5a0[_0x154422(0x4d1)]===_0x25ae38&&_0x30d5a0['objectID']===_0x556ce8),_0x11b95b=_0x2397b5[_0x154422(0xf1)](_0x5a62b2=>_0x49544d==null?void 0x0:_0x49544d[_0x154422(0x15b)][_0x154422(0xdd)](_0x5a1638=>_0x5a1638[_0x154422(0x494)]===_0x5a62b2))[_0x154422(0x2ba)](_0x261f98=>!!_0x261f98);return{'config':_0x3fa558,'result':{'actions':_0x11b95b,'error':_0x4dc8ba['error']}};});}})}));}[_0x49b0d1(0x40d)](){const _0x3ddd0=_0x49b0d1;var _0x314601,_0x5545e5;const _0x5cb55b=this[_0x3ddd0(0x1f4)][_0x3ddd0(0x20c)](wt),_0x43b92b=this[_0x3ddd0(0x1f4)]['getConfig'](L);return(_0x5545e5=(_0x314601=_0x43b92b==null?void 0x0:_0x43b92b['authzUrl'])!=null?_0x314601:_0x5cb55b)!=null?_0x5545e5:zi;}async['create'](_0x2655e6){const _0x2e765a=_0x49b0d1,_0x455004=this[_0x2e765a(0x40d)]()+'/'+_0x2655e6[_0x2e765a(0x19e)]+_0x2e765a(0x480);return(await this[_0x2e765a(0x22a)]['post'](_0x455004,{'body':_0x2655e6}))[_0x2e765a(0x362)]['objectID']||'';}async[_0x49b0d1(0x4b5)](_0x312f0f){const _0x142de2=_0x49b0d1,_0x44d3f4=this[_0x142de2(0x40d)]()+_0x142de2(0x4a4);return(await this[_0x142de2(0x22a)][_0x142de2(0x140)](_0x44d3f4,{'body':_0x312f0f}))[_0x142de2(0x362)][_0x142de2(0x457)];}async['update'](_0xeea267){const _0x1fbf11=_0x49b0d1,_0x5a29f2=this[_0x1fbf11(0x40d)]()+'/'+_0xeea267[_0x1fbf11(0x19e)]+_0x1fbf11(0x136)+_0xeea267[_0x1fbf11(0x45b)];await this[_0x1fbf11(0x22a)][_0x1fbf11(0x2e6)](_0x5a29f2,{'body':_0xeea267});}async[_0x49b0d1(0x261)](_0x3d90df){const _0x29c5e3=_0x49b0d1,_0x4695d9=this[_0x29c5e3(0x40d)]()+'/'+_0x3d90df['objectType']+_0x29c5e3(0x136)+_0x3d90df[_0x29c5e3(0x45b)]+_0x29c5e3(0x10d);return(await this[_0x29c5e3(0x22a)][_0x29c5e3(0x140)](_0x4695d9,{'body':_0x3d90df}))[_0x29c5e3(0x362)][_0x29c5e3(0x15b)];}async[_0x49b0d1(0x2b1)](_0x2aa130){const _0x38e092=_0x49b0d1,_0xa57423=this[_0x38e092(0x40d)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x38e092(0x140)](_0xa57423,{'body':{'requests':_0x2aa130}}))[_0x38e092(0x362)]['objectActions'];}async[_0x49b0d1(0x495)](_0x4a40f7){const _0x56c753=_0x49b0d1,_0x1c087c=this['_getAPIPrefixPath']()+'/'+_0x4a40f7[_0x56c753(0x19e)]+_0x56c753(0x4a5),_0x354a7b=await this[_0x56c753(0x22a)][_0x56c753(0x140)](_0x1c087c,{'body':_0x4a40f7});return{'roles':_0x354a7b[_0x56c753(0x362)]['roles'],'actions':_0x354a7b[_0x56c753(0x362)][_0x56c753(0x15b)]};}async['deleteCollaborator'](_0x4cca81){const _0x57a999=_0x49b0d1,_0x2e1fd0=this[_0x57a999(0x40d)]()+'/collaborator';await this[_0x57a999(0x22a)][_0x57a999(0x225)](_0x2e1fd0,{'params':{'collaboratorID':_0x4cca81['collaboratorID'],'objectID':_0x4cca81[_0x57a999(0x45b)],'unitID':_0x4cca81[_0x57a999(0x4d1)]}});}async[_0x49b0d1(0x3f5)](_0xe2eda1){const _0x2fd30d=_0x49b0d1,_0x147644=this['_getAPIPrefixPath']()+_0x2fd30d(0x2ef);await this[_0x2fd30d(0x22a)][_0x2fd30d(0x20a)](_0x147644,{'body':_0xe2eda1});}async[_0x49b0d1(0x2b0)](_0x4034da){const _0xa94051=_0x49b0d1,_0x1b358a=this[_0xa94051(0x40d)]()+_0xa94051(0x2ef);await this[_0xa94051(0x22a)][_0xa94051(0x140)](_0x1b358a,{'body':_0x4034da});}async[_0x49b0d1(0x307)](_0x38e42c){const _0x55b43b=_0x49b0d1,_0x1648ae=this[_0x55b43b(0x40d)]()+_0x55b43b(0x2ef);return(await this['_HTTPService'][_0x55b43b(0x10a)](_0x1648ae,{'params':{'objectID':_0x38e42c[_0x55b43b(0x45b)],'unitID':_0x38e42c['unitID']}}))[_0x55b43b(0x362)][_0x55b43b(0x442)];}async[_0x49b0d1(0x4f9)](_0xce01cc){const _0x35b3dd=_0x49b0d1,_0x194f09=this[_0x35b3dd(0x40d)]()+_0x35b3dd(0x2ef);await this['_HTTPService'][_0x35b3dd(0x2e6)](_0x194f09,{'body':_0xce01cc});}},exports[_0x49b0d1(0x2bc)]=qi([ct(0x0,a[_0x49b0d1(0x257)](P[_0x49b0d1(0x3e2)])),ct(0x1,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x2b8)]))],exports[_0x49b0d1(0x2bc)]);var Ji=Object[_0x49b0d1(0x37d)],Zi=Object[_0x49b0d1(0x26e)],Qi=(_0x8c77dd,_0x5c96f5,_0xa1cfc6,_0x1fce2d)=>{const _0x110631=_0x49b0d1;for(var _0x28683c=_0x1fce2d>0x1?void 0x0:_0x1fce2d?Zi(_0x5c96f5,_0xa1cfc6):_0x5c96f5,_0x4f6a5b=_0x8c77dd[_0x110631(0x429)]-0x1,_0x48febb;_0x4f6a5b>=0x0;_0x4f6a5b--)(_0x48febb=_0x8c77dd[_0x4f6a5b])&&(_0x28683c=(_0x1fce2d?_0x48febb(_0x5c96f5,_0xa1cfc6,_0x28683c):_0x48febb(_0x28683c))||_0x28683c);return _0x1fce2d&&_0x28683c&&Ji(_0x5c96f5,_0xa1cfc6,_0x28683c),_0x28683c;},en=(_0x33fa35,_0x1737ff)=>(_0x1a404c,_0x55ce78)=>_0x1737ff(_0x1a404c,_0x55ce78,_0x33fa35);let be=class{constructor(_0x40b968){const _0x41a4e2=_0x49b0d1;this[_0x41a4e2(0x3a8)]=_0x40b968,this[_0x41a4e2(0x487)]();}[_0x49b0d1(0x487)](){const _0x6968a0=_0x49b0d1;this['_httpService'][_0x6968a0(0xfe)]({'interceptor':(_0x5a4486,_0x344ad7)=>{const _0x2f1aae=_0x6968a0,_0x3132a8=_0x5a4486[_0x2f1aae(0x2b7)],_0x39c057=Ft[_0x2f1aae(0x32d)]();return _0x39c057&&_0x3132a8[_0x2f1aae(0xf0)](_0x2f1aae(0x273),_0x39c057),_0x344ad7(_0x5a4486);}});}};be=Qi([en(0x0,a[_0x49b0d1(0x257)](P[_0x49b0d1(0x3e2)]))],be);var tn=Object['defineProperty'],sn=Object[_0x49b0d1(0x26e)],nn=(_0x3bc6f1,_0x5ceb61,_0x7242,_0x446751)=>{const _0x4a1284=_0x49b0d1;for(var _0x2ad6b1=_0x446751>0x1?void 0x0:_0x446751?sn(_0x5ceb61,_0x7242):_0x5ceb61,_0x693b9=_0x3bc6f1[_0x4a1284(0x429)]-0x1,_0x3191c0;_0x693b9>=0x0;_0x693b9--)(_0x3191c0=_0x3bc6f1[_0x693b9])&&(_0x2ad6b1=(_0x446751?_0x3191c0(_0x5ceb61,_0x7242,_0x2ad6b1):_0x3191c0(_0x2ad6b1))||_0x2ad6b1);return _0x446751&&_0x2ad6b1&&tn(_0x5ceb61,_0x7242,_0x2ad6b1),_0x2ad6b1;},je=(_0x338bae,_0xf4a8f9)=>(_0x1cb9a4,_0x443a2c)=>_0xf4a8f9(_0x1cb9a4,_0x443a2c,_0x338bae);const rn=[_0x49b0d1(0x18e),_0x49b0d1(0x4bf),'image/jpg',_0x49b0d1(0x1ac),'image/bmp'],on=0x5*0x400*0x400,an=_0x49b0d1(0x353),cn=_0x49b0d1(0xe2),ln=_0x49b0d1(0x141),hn='/universer-api/file/{fileID}/sign-url';exports[_0x49b0d1(0x478)]=class{constructor(_0x28ffc7,_0x7ddaae,_0x532bbb){const _0x153d49=_0x49b0d1;d(this,_0x153d49(0x3d8),0x0),d(this,_0x153d49(0x18a),new v['Subject']()),d(this,_0x153d49(0x116),this[_0x153d49(0x18a)]),d(this,'_imageSourceCache',new Map()),(this[_0x153d49(0x3a8)]=_0x28ffc7,this['_configService']=_0x7ddaae,this[_0x153d49(0x3e4)]=_0x532bbb);}['setWaitCount'](_0x364d0e){const _0x5716d5=_0x49b0d1;this['_waitCount']=_0x364d0e,this[_0x5716d5(0x18a)][_0x5716d5(0x329)](_0x364d0e);}[_0x49b0d1(0x471)](_0x210456,_0xc326fc){const _0x424b58=_0x49b0d1;if(_0xc326fc===A[_0x424b58(0x276)]['BASE64']){const _0x3274d4=new Image();return _0x3274d4[_0x424b58(0x302)]=_0x210456,_0x3274d4;}return this['_imageSourceCache'][_0x424b58(0x10a)](_0x210456);}[_0x49b0d1(0x4ce)](_0xddffd8,_0x583814,_0x3998d3){const _0x2fde43=_0x49b0d1;_0x583814===A[_0x2fde43(0x276)]['BASE64']||_0x3998d3==null||this[_0x2fde43(0x424)][_0x2fde43(0xf0)](_0xddffd8,_0x3998d3);}async[_0x49b0d1(0x3ae)](_0x13ae48){const _0x28f6ef=_0x49b0d1;try{const _0x450a2e=this[_0x28f6ef(0x1a3)](this[_0x28f6ef(0x4d8)](),''+_0x13ae48),_0x599121=(await this[_0x28f6ef(0x3a8)]['get'](_0x450a2e))[_0x28f6ef(0x362)];if(_0x599121[_0x28f6ef(0x433)]&&_0x599121['error'][_0x28f6ef(0x1f5)]===It['OK']){const _0xe70fe1=new URL(_0x599121[_0x28f6ef(0x3e3)],this['_getDownloadEndpointURL']())[_0x28f6ef(0x296)]();return Promise[_0x28f6ef(0x45a)](_0xe70fe1);}return Promise[_0x28f6ef(0x2c2)](_0x599121[_0x28f6ef(0x433)]);}catch(_0x4a3653){return Promise[_0x28f6ef(0x2c2)](_0x4a3653);}}async[_0x49b0d1(0x35e)](_0x5a7e11){const _0x3d7b89=_0x49b0d1;let _0x4fefe6='';if(!rn['includes'](_0x5a7e11[_0x3d7b89(0x158)]))return this['_decreaseWaiting'](),Promise[_0x3d7b89(0x2c2)](new Error(A[_0x3d7b89(0x4b4)][_0x3d7b89(0x279)]));if(_0x5a7e11[_0x3d7b89(0x321)]>on)return this[_0x3d7b89(0x2d4)](),Promise['reject'](new Error(A[_0x3d7b89(0x4b4)][_0x3d7b89(0x4f5)]));try{const _0x24cd67=new FormData();_0x24cd67['append'](_0x3d7b89(0x1df),_0x5a7e11);const _0x513201=this['_univerInstanceService']['getFocusedUnit'](),_0x27c2bc=_0x513201==null?void 0x0:_0x513201[_0x3d7b89(0x234)]();if(!_0x27c2bc)throw new Error(_0x3d7b89(0x22e));const _0x4a5007=this[_0x3d7b89(0x426)]()+_0x3d7b89(0x2ed)+_0x5a7e11[_0x3d7b89(0x321)][_0x3d7b89(0x296)]()+_0x3d7b89(0x299)+pt[_0x3d7b89(0x1e3)]+_0x3d7b89(0x436)+encodeURIComponent(_0x27c2bc),_0x1159f1=await(await fetch(_0x4a5007,{'method':_0x3d7b89(0x2b5),'body':_0x24cd67}))[_0x3d7b89(0x10c)]();if(typeof _0x1159f1[_0x3d7b89(0x19d)]!=_0x3d7b89(0x244))return this['_decreaseWaiting'](),Promise['reject'](new Error(A[_0x3d7b89(0x4b4)][_0x3d7b89(0x1a6)]));_0x4fefe6=_0x1159f1[_0x3d7b89(0x19d)];}catch{return this[_0x3d7b89(0x2d4)](),Promise['reject'](new Error(A[_0x3d7b89(0x4b4)]['ERROR_IMAGE']));}return new Promise((_0x314195,_0x2f59db)=>{const _0x5027ea=_0x3d7b89,_0x38f923=new FileReader();_0x38f923[_0x5027ea(0x348)](_0x5a7e11),_0x38f923['onload']=_0x214145=>{const _0x3468a6=_0x5027ea;var _0x5d3506;const _0x309d21=(_0x5d3506=_0x214145['target'])==null?void 0x0:_0x5d3506[_0x3468a6(0x4e2)];if(_0x309d21==null){this[_0x3468a6(0x2d4)](),_0x2f59db(new Error(A['ImageUploadStatusType'][_0x3468a6(0x1a6)]));return;}const _0x2dc36c=a[_0x3468a6(0x3ac)][_0x3468a6(0xd9)](0x6);_0x314195({'imageId':_0x2dc36c,'imageSourceType':A[_0x3468a6(0x276)]['UUID'],'source':_0x4fefe6,'base64Cache':_0x309d21,'status':A['ImageUploadStatusType'][_0x3468a6(0x435)]}),this[_0x3468a6(0x2d4)]();};});}[_0x49b0d1(0x426)](){const _0x2b5a92=_0x49b0d1;var _0x5202e5,_0x46c80a;const _0x5a1223=this[_0x2b5a92(0x1f4)][_0x2b5a92(0x20c)](an),_0x566f91=this[_0x2b5a92(0x1f4)][_0x2b5a92(0x20c)](L);return(_0x46c80a=(_0x5202e5=_0x566f91==null?void 0x0:_0x566f91['uploadFileServerUrl'])!=null?_0x5202e5:_0x5a1223)!=null?_0x46c80a:cn;}[_0x49b0d1(0x4d8)](){const _0x389cf5=_0x49b0d1;var _0x410676,_0x59ace4;const _0x405b33=this[_0x389cf5(0x1f4)][_0x389cf5(0x20c)](ln),_0x1c526c=this[_0x389cf5(0x1f4)][_0x389cf5(0x20c)](L);return(_0x59ace4=(_0x410676=_0x1c526c==null?void 0x0:_0x1c526c[_0x389cf5(0x36f)])!=null?_0x410676:_0x405b33)!=null?_0x59ace4:hn;}[_0x49b0d1(0x243)](){const _0x1cb625=_0x49b0d1;var _0x3f925e;const _0x35b407=this[_0x1cb625(0x1f4)][_0x1cb625(0x20c)](L);return(_0x3f925e=_0x35b407==null?void 0x0:_0x35b407[_0x1cb625(0x384)])!=null?_0x3f925e:location[_0x1cb625(0x229)];}[_0x49b0d1(0x1a3)](_0x490d0d,_0x3c74a3){const _0x289435=_0x49b0d1;return _0x490d0d[_0x289435(0x2f4)](_0x289435(0x113),_0x3c74a3);}[_0x49b0d1(0x2d4)](){const _0x1b020d=_0x49b0d1;this['_waitCount']-=0x1,this[_0x1b020d(0x18a)][_0x1b020d(0x329)](this[_0x1b020d(0x3d8)]);}},exports[_0x49b0d1(0x478)]=nn([je(0x0,a[_0x49b0d1(0x257)](P['HTTPService'])),je(0x1,a[_0x49b0d1(0x2b8)]),je(0x2,a[_0x49b0d1(0x257)](a[_0x49b0d1(0xe5)]))],exports[_0x49b0d1(0x478)]);var _n=Object['defineProperty'],un=Object[_0x49b0d1(0x26e)],dn=(_0x582131,_0x2a5af7,_0x47277c,_0x508cd1)=>{for(var _0x1636dc=_0x508cd1>0x1?void 0x0:_0x508cd1?un(_0x2a5af7,_0x47277c):_0x2a5af7,_0x587781=_0x582131['length']-0x1,_0x5ce624;_0x587781>=0x0;_0x587781--)(_0x5ce624=_0x582131[_0x587781])&&(_0x1636dc=(_0x508cd1?_0x5ce624(_0x2a5af7,_0x47277c,_0x1636dc):_0x5ce624(_0x1636dc))||_0x1636dc);return _0x508cd1&&_0x1636dc&&_n(_0x2a5af7,_0x47277c,_0x1636dc),_0x1636dc;},he=(_0x21763c,_0x55dc34)=>(_0x2408e9,_0x13febb)=>_0x55dc34(_0x2408e9,_0x13febb,_0x21763c);let me=class extends a['RxDisposable']{constructor(_0x298804,_0xc8f1de,_0x2e21e6,_0x540d3f,_0x4504a1){const _0x3d590e=_0x49b0d1;super(),this[_0x3d590e(0x451)]=_0x298804,this[_0x3d590e(0x3e4)]=_0xc8f1de,this[_0x3d590e(0x2cb)]=_0x2e21e6,this[_0x3d590e(0x297)]=_0x540d3f,this[_0x3d590e(0x29e)]=_0x4504a1,this[_0x3d590e(0xdb)](),this[_0x3d590e(0x2e7)]();}['_initCloseConn'](){const _0x156312=_0x49b0d1,_0x3bb20d=async _0x2d6baa=>{const _0x5ea232=_0x5144;(await this[_0x5ea232(0x297)][_0x5ea232(0x1e9)](_0x2d6baa))[_0x5ea232(0x272)][_0x5ea232(0x110)](E[_0x5ea232(0x2ba)](_0x2893cd=>_0x2893cd[_0x5ea232(0x2b3)]===_[_0x5ea232(0x254)][_0x5ea232(0x467)]),E[_0x5ea232(0x221)](this[_0x5ea232(0xde)]))[_0x5ea232(0x4ba)](_0x27315a=>{const _0x230c16=_0x5ea232,_0x6ffe37=_0x27315a,{reason:_0x37ac13}=_0x6ffe37[_0x230c16(0x165)];this['_injector'][_0x230c16(0x10a)](N[_0x230c16(0x22d)])[_0x230c16(0x4d7)]({'type':X[_0x230c16(0x248)][_0x230c16(0x2cd)],'content':this['_localeService']['t'](_0x230c16(0x21c))+'('+_0x37ac13+')'}),this['_permissionService']['updatePermissionPoint'](new C[(_0x230c16(0x15e))](_0x2d6baa)['id'],!0x1),this['_collaborationSessionService'][_0x230c16(0x2d1)](_0x2d6baa);});};v[_0x156312(0x12e)](this[_0x156312(0x3e4)][_0x156312(0x255)](a[_0x156312(0x199)]['UNIVER_SHEET']),this[_0x156312(0x3e4)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x156312(0x215)]))[_0x156312(0x110)](E[_0x156312(0xf1)](_0x4e4520=>_0x4e4520[_0x156312(0x234)]()),E[_0x156312(0x2ba)](_0x56251e=>!a['isInternalEditorID'](_0x56251e)),E[_0x156312(0x221)](this[_0x156312(0xde)]))['subscribe'](_0x470bea=>{_0x3bb20d(_0x470bea);});}[_0x49b0d1(0xdb)](){const _0x305ae0=_0x49b0d1,_0xe69e92=async _0x34e461=>{const _0x35b774=_0x5144;(await this[_0x35b774(0x297)][_0x35b774(0x1e9)](_0x34e461))[_0x35b774(0x272)][_0x35b774(0x110)](E[_0x35b774(0x2ba)](_0x1ac914=>_0x1ac914[_0x35b774(0x2b3)]===_[_0x35b774(0x254)]['UPDATE_PERMISSION_OBJ']),E[_0x35b774(0x221)](this[_0x35b774(0xde)]))[_0x35b774(0x4ba)](_0x30a043=>{const _0x164cda=_0x35b774,_0x2bbb23=_0x30a043,{objectId:_0x14fd8c}=_0x2bbb23[_0x164cda(0x165)],_0x534d82=this[_0x164cda(0x451)][_0x164cda(0x10a)](te[_0x164cda(0x256)]);_0x14fd8c===_0x34e461?_0x534d82[_0x164cda(0x217)](_0x34e461):_0x534d82['refreshPermission'](_0x34e461,_0x14fd8c);});};v[_0x305ae0(0x12e)](this[_0x305ae0(0x3e4)][_0x305ae0(0x255)](a[_0x305ae0(0x199)]['UNIVER_SHEET']),this[_0x305ae0(0x3e4)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC']))[_0x305ae0(0x110)](E[_0x305ae0(0xf1)](_0x419784=>_0x419784['getUnitId']()),E[_0x305ae0(0x2ba)](_0x290e94=>!a[_0x305ae0(0x4ca)](_0x290e94)),E[_0x305ae0(0x221)](this[_0x305ae0(0xde)]))[_0x305ae0(0x4ba)](_0x105e53=>{_0xe69e92(_0x105e53);});}};me=dn([a[_0x49b0d1(0x2fc)](a['LifecycleStages']['Starting'],me),he(0x0,a['Inject'](a[_0x49b0d1(0x20d)])),he(0x1,a[_0x49b0d1(0xe5)]),he(0x2,a[_0x49b0d1(0x235)]),he(0x3,a[_0x49b0d1(0x257)](exports['CollaborationSessionService'])),he(0x4,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x339)]))],me);var Sn=Object[_0x49b0d1(0x37d)],vn=Object[_0x49b0d1(0x26e)],fn=(_0x13aa6c,_0xc7f7ed,_0x3b7b53,_0x521a82)=>{const _0x1772d7=_0x49b0d1;for(var _0x381e8e=_0x521a82>0x1?void 0x0:_0x521a82?vn(_0xc7f7ed,_0x3b7b53):_0xc7f7ed,_0x132c26=_0x13aa6c[_0x1772d7(0x429)]-0x1,_0x4d5502;_0x132c26>=0x0;_0x132c26--)(_0x4d5502=_0x13aa6c[_0x132c26])&&(_0x381e8e=(_0x521a82?_0x4d5502(_0xc7f7ed,_0x3b7b53,_0x381e8e):_0x4d5502(_0x381e8e))||_0x381e8e);return _0x521a82&&_0x381e8e&&Sn(_0xc7f7ed,_0x3b7b53,_0x381e8e),_0x381e8e;},lt=(_0x3e25ab,_0x34e6c2)=>(_0x8cd27d,_0x5d5d23)=>_0x34e6c2(_0x8cd27d,_0x5d5d23,_0x3e25ab);exports[_0x49b0d1(0x11a)]=class{constructor(_0x21354a,_0xbb21e1){const _0x1b952a=_0x49b0d1;this[_0x1b952a(0x1f4)]=_0x21354a,this[_0x1b952a(0x3a8)]=_0xbb21e1;}async['getUnitOnRev'](_0x344676,_0x3df9f6){const _0x5b93a2=_0x49b0d1;var _0x47c118;const {unitID:_0x24474c,type:_0x43264e,revision:_0x29e93f=0x0}=_0x3df9f6,_0x17421b=this[_0x5b93a2(0x368)]()+'/'+_0x43264e+_0x5b93a2(0x24d)+_0x24474c+_0x5b93a2(0x359)+_0x29e93f,_0x505790=(await this[_0x5b93a2(0x3a8)]['get'](_0x17421b))[_0x5b93a2(0x362)],_0x3b3b0b=(_0x47c118=_0x505790['snapshot'])==null?void 0x0:_0x47c118['workbook'];if(_0x3b3b0b){const _0x10d949=_0x3b3b0b==null?void 0x0:_0x3b3b0b[_0x5b93a2(0x401)],_0x3bfd84=_['textEncoder']['encode'](_[_0x5b93a2(0x440)](_0x10d949));_0x3b3b0b[_0x5b93a2(0x401)]=_0x3bfd84,Object[_0x5b93a2(0x109)](_0x3b3b0b[_0x5b93a2(0x1bb)])[_0x5b93a2(0x287)](([,_0x4c13dc])=>{const _0x331a83=_0x5b93a2,_0x5b9c77=_0x4c13dc['originalMeta'],_0x13dc02=_[_0x331a83(0x170)]['encode'](_[_0x331a83(0x440)](_0x5b9c77));_0x4c13dc[_0x331a83(0x401)]=_0x13dc02;});}return _0x505790;}async['getSheetBlock'](_0x2f570a,_0x1d7465){const _0x5e6efe=_0x49b0d1,{unitID:_0x573993,type:_0x3d0631,blockID:_0x41f746}=_0x1d7465,_0x32f2cf=this['_getAPIPrefix']()+'/'+_0x3d0631+_0x5e6efe(0x24d)+_0x573993+'/block/'+_0x41f746;return(await this['_httpService'][_0x5e6efe(0x10a)](_0x32f2cf))[_0x5e6efe(0x362)];}async[_0x49b0d1(0x15f)](_0x494aee,_0x24c589){const _0x2f1d5f=_0x49b0d1,{unitID:_0x59c2ae,type:_0x30ca45,blockID:_0x28f985}=_0x24c589,_0x4ac01c=this['_getAPIPrefix']()+_0x2f1d5f(0x4a7)+_0x30ca45+_0x2f1d5f(0x24d)+_0x59c2ae+_0x2f1d5f(0x4a7)+_0x28f985;return(await this['_httpService'][_0x2f1d5f(0x10a)](_0x4ac01c))[_0x2f1d5f(0x362)];}async[_0x49b0d1(0x196)](_0x22d9c5,_0x4ed851){const _0x141789=_0x49b0d1,{unitID:_0x5998fe,type:_0x295bd0,from:_0x328219,to:_0x39152a}=_0x4ed851,_0x38bc71=this[_0x141789(0x241)]()+'/'+_0x295bd0+_0x141789(0x24d)+_0x5998fe+'/fetchmissing?from='+_0x328219+_0x141789(0x2c4)+_0x39152a;return(await this[_0x141789(0x3a8)][_0x141789(0x10a)](_0x38bc71))[_0x141789(0x362)];}['_getSnapshotAPIPrefix'](){const _0x51069b=_0x49b0d1;var _0x3186cf;return(_0x3186cf=this[_0x51069b(0x1f4)][_0x51069b(0x20c)](_t))!=null?_0x3186cf:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x4a8777=_0x49b0d1;var _0x19ad5f,_0x1e84eb;const _0x519f24=this[_0x4a8777(0x1f4)][_0x4a8777(0x20c)](ht),_0x37dce9=this[_0x4a8777(0x1f4)][_0x4a8777(0x20c)](L);return(_0x1e84eb=(_0x19ad5f=_0x37dce9==null?void 0x0:_0x37dce9[_0x4a8777(0x222)])!=null?_0x19ad5f:_0x519f24)!=null?_0x1e84eb:Gt;}async[_0x49b0d1(0x3cc)](_0x173ba1,_0x586e2a){const _0x5eaf4b=_0x49b0d1,_0x488a5b=_0x5eaf4b(0x49a)+_0x586e2a[_0x5eaf4b(0x158)]+_0x5eaf4b(0x24d)+_0x586e2a[_0x5eaf4b(0x4d1)]+_0x5eaf4b(0x326);return(await this[_0x5eaf4b(0x3a8)][_0x5eaf4b(0x10a)](_0x488a5b,{'params':{'resourceId':JSON[_0x5eaf4b(0x4df)](_0x586e2a[_0x5eaf4b(0x47e)])}}))['body'];}['saveSnapshot'](){const _0x467b56=_0x49b0d1;throw new Error(_0x467b56(0x4fc));}[_0x49b0d1(0x3b7)](){const _0x14f7fd=_0x49b0d1;throw new Error(_0x14f7fd(0x4fc));}[_0x49b0d1(0x103)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x49b0d1(0x1b1)](){const _0x4488b8=_0x49b0d1;throw new Error(_0x4488b8(0x4fc));}},exports[_0x49b0d1(0x11a)]=fn([lt(0x0,a[_0x49b0d1(0x2b8)]),lt(0x1,a[_0x49b0d1(0x257)](P[_0x49b0d1(0x3e2)]))],exports[_0x49b0d1(0x11a)]);var gn=Object[_0x49b0d1(0x37d)],mn=Object[_0x49b0d1(0x26e)],In=(_0x9e152a,_0xfafcc0,_0x15c7fb,_0x5ea491)=>{const _0x18c462=_0x49b0d1;for(var _0x43476d=_0x5ea491>0x1?void 0x0:_0x5ea491?mn(_0xfafcc0,_0x15c7fb):_0xfafcc0,_0x281a41=_0x9e152a[_0x18c462(0x429)]-0x1,_0x111c1f;_0x281a41>=0x0;_0x281a41--)(_0x111c1f=_0x9e152a[_0x281a41])&&(_0x43476d=(_0x5ea491?_0x111c1f(_0xfafcc0,_0x15c7fb,_0x43476d):_0x111c1f(_0x43476d))||_0x43476d);return _0x5ea491&&_0x43476d&&gn(_0xfafcc0,_0x15c7fb,_0x43476d),_0x43476d;},_e=(_0x655275,_0x312907)=>(_0x51b344,_0x207d08)=>_0x312907(_0x51b344,_0x207d08,_0x655275);let Be=class extends a[_0x49b0d1(0x2e3)]{constructor(_0x297a2b,_0x57fa69,_0xadd9b2,_0x215264,_0x129e87){const _0x431730=_0x49b0d1;super(_0x297a2b,_0x57fa69,_0xadd9b2),this[_0x431730(0x430)]=_0x215264,this[_0x431730(0x200)]=_0x129e87;}['transformUndoRedo'](_0x2daff8,_0x5d103f){const _0x3b9fe7=_0x49b0d1,_0x1374a0=this[_0x3b9fe7(0x1f3)](_0x2daff8);if(_0x1374a0)try{const _0xf6133=this[_0x3b9fe7(0x3a0)](_0x1374a0,_0x5d103f);this[_0x3b9fe7(0x4fb)](_0x2daff8,_0xf6133);}catch(_0x55799b){this[_0x3b9fe7(0x200)][_0x3b9fe7(0x433)](_0x3b9fe7(0x461),_0x55799b),this[_0x3b9fe7(0x300)](_0x2daff8);}const _0x4715c=this[_0x3b9fe7(0x192)](_0x2daff8);if(_0x4715c)try{const _0xda7bcc=this[_0x3b9fe7(0x3a0)](_0x4715c,_0x5d103f);this[_0x3b9fe7(0x119)](_0x2daff8,_0xda7bcc);}catch(_0x380213){this[_0x3b9fe7(0x200)][_0x3b9fe7(0x433)](_0x380213),this['_clearRedo'](_0x2daff8);}}[_0x49b0d1(0x300)](_0x4714aa){const _0x5f473f=this['_getUndoStack'](_0x4714aa);_0x5f473f&&(_0x5f473f['length']=0x0,this['_updateStatus']());}[_0x49b0d1(0x40c)](_0x358085){const _0x124dcc=_0x49b0d1,_0x3419a8=this[_0x124dcc(0x192)](_0x358085);_0x3419a8&&(_0x3419a8['length']=0x0,this['_updateStatus']());}[_0x49b0d1(0x4fb)](_0x1a1da4,_0x8c6951){const _0x352453=_0x49b0d1;this[_0x352453(0x25b)][_0x352453(0xf0)](_0x1a1da4,_0x8c6951),this[_0x352453(0xe7)]();}[_0x49b0d1(0x119)](_0x1faed3,_0x4b93a5){const _0x517640=_0x49b0d1;this[_0x517640(0x19f)][_0x517640(0xf0)](_0x1faed3,_0x4b93a5),this[_0x517640(0xe7)]();}[_0x49b0d1(0x3a0)](_0x579645,_0x43deaa){const _0x6d9116=_0x49b0d1,_0x4e26ab=[];let _0x54ce2b=_0x43deaa,_0x55fcd9=_0x43deaa;for(let _0x360a53=_0x579645[_0x6d9116(0x429)]-0x1;_0x360a53>=0x0;_0x360a53--){const {unitID:_0x25829f,undoMutations:_0x1bfa18,redoMutations:_0x539f2a}=_0x579645[_0x360a53],_0x1f39f5=this[_0x6d9116(0x430)][_0x6d9116(0x46e)](_0x54ce2b,_0x1bfa18),_0x4addac=this[_0x6d9116(0x430)][_0x6d9116(0x46e)](_0x55fcd9,_0x539f2a);if(_[_0x6d9116(0x3f7)](_0x1f39f5)||_[_0x6d9116(0x3f7)](_0x4addac)){this[_0x6d9116(0x200)]['error'](_0x6d9116(0x461),_0x6d9116(0x187),_0x1f39f5,_0x4addac);break;}_0x54ce2b=_0x1f39f5['c1Prime'],_0x55fcd9=_0x4addac[_0x6d9116(0x43c)],_0x4e26ab[_0x6d9116(0x231)]({'unitID':_0x25829f,'undoMutations':_0x1f39f5[_0x6d9116(0x1c2)],'redoMutations':_0x4addac['m2Prime']});}return _0x4e26ab[_0x6d9116(0x174)]();}};Be=In([_e(0x0,a[_0x49b0d1(0xe5)]),_e(0x1,a[_0x49b0d1(0x11b)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x49b0d1(0x2b2)]),_e(0x4,a[_0x49b0d1(0x4fd)])],Be);class Mt extends a[_0x49b0d1(0x3b6)]{constructor(){const _0x57749a=_0x49b0d1;super(),d(this,_0x57749a(0x3bd)),this['urlChange$']=v[_0x57749a(0x2e9)](window,_0x57749a(0x17d))[_0x57749a(0x110)](v[_0x57749a(0x221)](this[_0x57749a(0xde)]),v[_0x57749a(0x2a9)](0x1),v['mapTo'](void 0x0));}[_0x49b0d1(0x101)](_0x355a99,_0x3825e7,_0x511f0a=!0x1){const _0x41d44c=_0x49b0d1,_0xde7549=new URL(window['location']['href']);_0xde7549[_0x41d44c(0x132)][_0x41d44c(0xf0)](_0x355a99,_0x3825e7),_0x511f0a?window[_0x41d44c(0x17c)]['replaceState']('','',_0xde7549[_0x41d44c(0x296)]()):window[_0x41d44c(0x17c)][_0x41d44c(0x286)]('','',_0xde7549['toString']());}[_0x49b0d1(0x342)](_0x29ae90,_0x1970de=!0x1){const _0x500b9f=_0x49b0d1,_0x33c85d=new URL(window['location']['href']);_0x33c85d[_0x500b9f(0x132)][_0x500b9f(0x225)](_0x29ae90),_0x1970de?window[_0x500b9f(0x17c)][_0x500b9f(0xfd)]('','',_0x33c85d[_0x500b9f(0x296)]()):window[_0x500b9f(0x17c)][_0x500b9f(0x286)]('','',_0x33c85d[_0x500b9f(0x296)]());}[_0x49b0d1(0x4c2)](_0x2adc22){const _0x539f3b=_0x49b0d1;var _0x1b30a8;return(_0x1b30a8=new URL(window[_0x539f3b(0x1fe)]['href'])[_0x539f3b(0x132)][_0x539f3b(0x10a)](_0x2adc22))!=null?_0x1b30a8:void 0x0;}}var Nt=Object[_0x49b0d1(0x37d)],pn=Object[_0x49b0d1(0x26e)],Cn=(_0x488aa1,_0x3d4143,_0x1d5ed4)=>_0x3d4143 in _0x488aa1?Nt(_0x488aa1,_0x3d4143,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d5ed4}):_0x488aa1[_0x3d4143]=_0x1d5ed4,En=(_0x20f360,_0x2e3648,_0x334bc3,_0x1e7bef)=>{for(var _0x5d5284=_0x1e7bef>0x1?void 0x0:_0x1e7bef?pn(_0x2e3648,_0x334bc3):_0x2e3648,_0x53d2b5=_0x20f360['length']-0x1,_0x49480e;_0x53d2b5>=0x0;_0x53d2b5--)(_0x49480e=_0x20f360[_0x53d2b5])&&(_0x5d5284=(_0x1e7bef?_0x49480e(_0x2e3648,_0x334bc3,_0x5d5284):_0x49480e(_0x5d5284))||_0x5d5284);return _0x1e7bef&&_0x5d5284&&Nt(_0x2e3648,_0x334bc3,_0x5d5284),_0x5d5284;},ve=(_0x14dfc1,_0x7be410)=>(_0x207612,_0x59f058)=>_0x7be410(_0x207612,_0x59f058,_0x14dfc1),bn=(_0x3074f8,_0x5ec986,_0x5cdaea)=>Cn(_0x3074f8,_0x5ec986+'',_0x5cdaea);const Tn=_0x49b0d1(0x48a);exports[_0x49b0d1(0x2f7)]=class extends a[_0x49b0d1(0x283)]{constructor(_0x442a0c=ts,_0x5b8b76,_0x487099,_0x4f71d1,_0x46f02c){const _0x5c768f=_0x49b0d1;super(),this[_0x5c768f(0x1c6)]=_0x442a0c,this[_0x5c768f(0x200)]=_0x5b8b76,this[_0x5c768f(0x31d)]=_0x487099,this[_0x5c768f(0x451)]=_0x4f71d1,this[_0x5c768f(0x1f4)]=_0x46f02c;const {..._0x4c907a}=this[_0x5c768f(0x1c6)];this['_configService'][_0x5c768f(0x219)](L,_0x4c907a);}[_0x49b0d1(0x301)](){const _0xc11ebc=_0x49b0d1;this[_0xc11ebc(0x2bd)]();}[_0x49b0d1(0x19c)](){const _0x359203=_0x49b0d1;this[_0x359203(0x34a)]();}['_registerDependencies'](){const _0x30225d=_0x49b0d1;var _0x4abba5,_0x8be837,_0x56ce99,_0x58f569;this['_injector'][_0x30225d(0x14b)](a[_0x30225d(0xe8)])&&this[_0x30225d(0x200)][_0x30225d(0x433)]('[UniverCollaborationClientPlugin]',_0x30225d(0x4ad));let _0x107226=[[a[_0x30225d(0xe8)],{'useClass':Be}],[exports[_0x30225d(0x48f)]],[Xe],[P[_0x30225d(0x3e2)]],[ze,{'useClass':Mt}],[q],[exports[_0x30225d(0x1f7)]],[P[_0x30225d(0x3bc)]],[pe],[Ce],[Ie],[Ye],[Ee],[be],[Ge],[me],[Fe,{'useClass':(_0x8be837=(_0x4abba5=this[_0x30225d(0x1c6)])==null?void 0x0:_0x4abba5[_0x30225d(0x31e)])!=null?_0x8be837:exports[_0x30225d(0x315)]}],[P[_0x30225d(0x2fa)],{'useClass':P[_0x30225d(0x2de)]}],[_['ISnapshotServerService'],{'useClass':exports['SnapshotServerOverHTTPService']}],[a[_0x30225d(0x428)],{'useClass':exports[_0x30225d(0x2bc)]}],[A[_0x30225d(0x4bb)],{'useClass':exports[_0x30225d(0x478)]}],[exports[_0x30225d(0x481)]],[exports[_0x30225d(0x330)]],[exports['DesktopCollaborationStatusDisplayController']],[ge],[se]];(_0x56ce99=this['_config'])!=null&&_0x56ce99['enableSingleActiveInstanceLock']&&_0x107226[_0x30225d(0x231)]([Te,{'useClass':ys}]),_0x107226=a[_0x30225d(0x448)](_0x107226,(_0x58f569=this['_config'])==null?void 0x0:_0x58f569['override']),_0x107226['forEach'](_0x80b21=>this[_0x30225d(0x451)]['add'](_0x80b21)),this[_0x30225d(0x372)]();}[_0x49b0d1(0x34a)](){const _0x4ccd35=_0x49b0d1;this[_0x4ccd35(0x357)](this[_0x4ccd35(0x31d)][_0x4ccd35(0xec)](a['UniverInstanceType'][_0x4ccd35(0x215)],[fe])),this[_0x4ccd35(0x357)](this['_renderManagerService']['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[ke]));}[_0x49b0d1(0x372)](){const _0x3c2e4c=_0x49b0d1;var _0x16bc4e,_0x23c80d;this[_0x3c2e4c(0x451)][_0x3c2e4c(0x10a)](P[_0x3c2e4c(0x3e2)])[_0x3c2e4c(0xfe)]({'priority':0x14,'interceptor':P[_0x3c2e4c(0x37a)]({'maxParallel':0x6})}),this[_0x3c2e4c(0x451)][_0x3c2e4c(0x10a)](be),(_0x16bc4e=this[_0x3c2e4c(0x1c6)])!=null&&_0x16bc4e[_0x3c2e4c(0x445)]||this['_injector'][_0x3c2e4c(0x10a)](exports['LocalCacheService'])[_0x3c2e4c(0x1fd)](),(_0x23c80d=this['_config'])!=null&&_0x23c80d[_0x3c2e4c(0x1b6)]&&this[_0x3c2e4c(0x451)]['get'](Ee),this[_0x3c2e4c(0x451)][_0x3c2e4c(0x10a)](exports[_0x3c2e4c(0x481)]),this['_injector']['has'](exports[_0x3c2e4c(0x35f)])&&this['_injector'][_0x3c2e4c(0x10a)](exports[_0x3c2e4c(0x35f)]);}},bn(exports[_0x49b0d1(0x2f7)],'pluginName',Tn),exports[_0x49b0d1(0x2f7)]=En([a[_0x49b0d1(0x1c0)](_[_0x49b0d1(0x310)]),ve(0x1,a[_0x49b0d1(0x4fd)]),ve(0x2,R[_0x49b0d1(0x333)]),ve(0x3,a[_0x49b0d1(0x257)](a[_0x49b0d1(0x20d)])),ve(0x4,a[_0x49b0d1(0x2b8)])],exports[_0x49b0d1(0x2f7)]),exports[_0x49b0d1(0x363)]=wt,exports[_0x49b0d1(0x2ab)]=gt,exports['COLLAB_WEB_SOCKET_URL_KEY']=ut,exports['CollaborationStatus']=y,exports[_0x49b0d1(0x346)]=Pt,exports[_0x49b0d1(0x288)]=Ge,exports['HEARTBEAT_INTERVAL_KEY']=dt,exports[_0x49b0d1(0x388)]=Ve,exports[_0x49b0d1(0x444)]=Fe,exports[_0x49b0d1(0x1fa)]=ze,exports[_0x49b0d1(0x437)]=ft,exports[_0x49b0d1(0x49d)]=mt,exports[_0x49b0d1(0x385)]=vt,exports[_0x49b0d1(0x292)]=Yt,exports[_0x49b0d1(0x1ca)]=ht,exports[_0x49b0d1(0x423)]=_t,exports[_0x49b0d1(0x26d)]=j,exports[_0x49b0d1(0x284)]=Ot,exports['WebURLService']=Mt,exports[_0x49b0d1(0x3ab)]=Ct,exports['serializeCombRequest']=Et;