@univerjs-pro/collaboration-client 0.3.0-alpha.1 → 0.3.0
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +32 -32
package/lib/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function _0x4f28(_0x3ff7e0,_0x2117e1){const _0x197e9b=_0x197e();return _0x4f28=function(_0x4f287d,_0x313925){_0x4f287d=_0x4f287d-0xd7;let _0x115a5e=_0x197e9b[_0x4f287d];return _0x115a5e;},_0x4f28(_0x3ff7e0,_0x2117e1);}(function(_0x5f2f0d,_0x4c65dd){const _0x1194a4=_0x4f28,_0x4e3541=_0x5f2f0d();while(!![]){try{const _0x320fb9=parseInt(_0x1194a4(0x136))/0x1+parseInt(_0x1194a4(0x2ee))/0x2*(-parseInt(_0x1194a4(0x142))/0x3)+-parseInt(_0x1194a4(0x480))/0x4+-parseInt(_0x1194a4(0x283))/0x5*(parseInt(_0x1194a4(0x25b))/0x6)+-parseInt(_0x1194a4(0x176))/0x7+parseInt(_0x1194a4(0x436))/0x8+parseInt(_0x1194a4(0x3b7))/0x9*(parseInt(_0x1194a4(0x49d))/0xa);if(_0x320fb9===_0x4c65dd)break;else _0x4e3541['push'](_0x4e3541['shift']());}catch(_0x54b1c7){_0x4e3541['push'](_0x4e3541['shift']());}}}(_0x197e,0x25e28),function(_0x2b5c99,_0x124792){const _0x45b43f=_0x4f28;typeof exports=='object'&&typeof module<'u'?_0x124792(exports,require(_0x45b43f(0x346)),require('rxjs'),require(_0x45b43f(0x303)),require(_0x45b43f(0x120)),require(_0x45b43f(0x491)),require(_0x45b43f(0x158)),require(_0x45b43f(0x3f8)),require('@univerjs/telemetry'),require(_0x45b43f(0x4f4)),require('@univerjs/docs-ui'),require('@univerjs/sheets'),require(_0x45b43f(0x4ae)),require('@univerjs/drawing'),require('@univerjs/engine-formula'),require(_0x45b43f(0x192)),require(_0x45b43f(0x145)),require(_0x45b43f(0x1fb)),require(_0x45b43f(0x3dd)),require('@univerjs-pro/license')):typeof define==_0x45b43f(0x4ab)&&define['amd']?define([_0x45b43f(0x1e1),_0x45b43f(0x346),'rxjs','rxjs/operators',_0x45b43f(0x120),'@univerjs/ui',_0x45b43f(0x158),_0x45b43f(0x3f8),_0x45b43f(0x494),_0x45b43f(0x4f4),_0x45b43f(0x3c4),'@univerjs/sheets',_0x45b43f(0x4ae),_0x45b43f(0x39e),_0x45b43f(0x13b),_0x45b43f(0x192),_0x45b43f(0x145),_0x45b43f(0x1fb),_0x45b43f(0x3dd),'@univerjs-pro/license'],_0x124792):(_0x2b5c99=typeof globalThis<'u'?globalThis:_0x2b5c99||self,_0x124792(_0x2b5c99[_0x45b43f(0x3ec)]={},_0x2b5c99[_0x45b43f(0x117)],_0x2b5c99[_0x45b43f(0x2c8)],_0x2b5c99[_0x45b43f(0x2c8)]['operators'],_0x2b5c99[_0x45b43f(0xe7)],_0x2b5c99[_0x45b43f(0x387)],_0x2b5c99[_0x45b43f(0x24b)],_0x2b5c99[_0x45b43f(0x357)],_0x2b5c99['UniverTelemetry'],_0x2b5c99['UniverDocs'],_0x2b5c99[_0x45b43f(0x270)],_0x2b5c99[_0x45b43f(0x390)],_0x2b5c99[_0x45b43f(0x3b9)],_0x2b5c99[_0x45b43f(0x122)],_0x2b5c99[_0x45b43f(0x22e)],_0x2b5c99['UniverSheetsUi'],_0x2b5c99[_0x45b43f(0x420)],_0x2b5c99[_0x45b43f(0x1fb)],_0x2b5c99['UniverRpc'],_0x2b5c99[_0x45b43f(0x1ad)]));}(this,function(_0x48e51e,_0x5b7cfd,_0x266483,_0x51de38,_0x4466a1,_0x2ce95d,_0x4ba5d1,_0x56cbe4,_0x36caba,_0x3e2148,_0x618f14,_0xa62622,_0x46e2e3,_0x35c9a1,_0x4d1b35,_0x4a372b,_0x1b993c,_0x3f7833,_0x429288,_0x5d1cbc){'use strict';const _0x3bc2c8=_0x4f28;var _0x2191c6=Object[_0x3bc2c8(0x361)],_0x332791=(_0x46b4d2,_0x3e8ac5,_0xc9718c)=>_0x3e8ac5 in _0x46b4d2?_0x2191c6(_0x46b4d2,_0x3e8ac5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc9718c}):_0x46b4d2[_0x3e8ac5]=_0xc9718c,_0x314dc6=(_0x13ca81,_0x2eb2fe,_0x2cfd68)=>_0x332791(_0x13ca81,typeof _0x2eb2fe!=_0x3bc2c8(0x13a)?_0x2eb2fe+'':_0x2eb2fe,_0x2cfd68);const _0x504faf='SNAPSHOT_SERVER_URL_KEY',_0x56ac46=_0x3bc2c8(0x2ff),_0x1a9cce='SNAPSHOT_URL_KEY',_0x2d7fa5=_0x3bc2c8(0xf3),_0x4989e3='COLLAB_WEB_SOCKET_URL',_0x2cc1a0='ws://127.0.0.1:8000/universer-api/comb/connect',_0x4afd24=_0x3bc2c8(0x134),_0x372540='HEARTBEAT_TIMEOUT',_0x191200=_0x3bc2c8(0x26e),_0x23080c='LOCAL_CACHE_INTERVAL',_0x3bca7a=_0x3bc2c8(0x2bb),_0x62b297=_0x3bc2c8(0x43f),_0x29174f=_0x3bc2c8(0x4dd),_0x46f52c=_0x3bc2c8(0xde);var _0x5f32a2=(_0x1ed04f=>(_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x307)]=0x0]='UNDEFINED',_0x1ed04f[_0x1ed04f['OK']=0x1]='OK',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x459)]=0x2]=_0x3bc2c8(0x459),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x254)]=0x3]=_0x3bc2c8(0x254),_0x1ed04f[_0x1ed04f['NOT_FOUND']=0x4]=_0x3bc2c8(0x4c9),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4de)]=0x5]=_0x3bc2c8(0x4de),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x485)]=0x6]=_0x3bc2c8(0x485),_0x1ed04f[_0x1ed04f['INVALID_ARGUMENT']=0x7]=_0x3bc2c8(0x124),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x23d)]=0x8]=_0x3bc2c8(0x23d),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4db)]=0x9]='COMPLETION_FINISHED',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x200)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x3f7)]=0x1771]=_0x3bc2c8(0x3f7),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x304)]=0x1772]=_0x3bc2c8(0x304),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x46e)]=0x1b59]=_0x3bc2c8(0x46e),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4b7)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x11b)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x497)]=0x1b5c]=_0x3bc2c8(0x497),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x26b)]=0x1f41]=_0x3bc2c8(0x26b),_0x1ed04f[_0x1ed04f['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3bc2c8(0x271),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x25f)]=0x232a]=_0x3bc2c8(0x25f),_0x1ed04f[_0x1ed04f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3bc2c8(0x2e8),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x29d)]=0x232c]=_0x3bc2c8(0x29d),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4b4)]=0x232d]=_0x3bc2c8(0x4b4),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x3c5)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1ed04f[_0x1ed04f['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3bc2c8(0x382),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x1b2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x339)]=0x2714]=_0x3bc2c8(0x339),_0x1ed04f[_0x1ed04f['UNRECOGNIZED']=-0x1]=_0x3bc2c8(0x396),_0x1ed04f))(_0x5f32a2||{}),_0x249560=(_0xb1d6d1=>(_0xb1d6d1[_0xb1d6d1['UNIVER_UNKNOWN']=0x0]=_0x3bc2c8(0x11c),_0xb1d6d1[_0xb1d6d1['UNIVER_DOC']=0x1]=_0x3bc2c8(0x3a6),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x301)]=0x2]=_0x3bc2c8(0x301),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x202)]=0x3]='UNIVER_SLIDE',_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x329)]=0x4]=_0x3bc2c8(0x329),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x396)]=-0x1]=_0x3bc2c8(0x396),_0xb1d6d1))(_0x249560||{}),_0x4e6b2d=(_0x58181d=>(_0x58181d[_0x58181d[_0x3bc2c8(0x4ca)]=0x0]='UNKNOWN_CMD',_0x58181d[_0x58181d['HELLO']=0x1]=_0x3bc2c8(0x4a4),_0x58181d[_0x58181d[_0x3bc2c8(0x3e3)]=0x2]=_0x3bc2c8(0x3e3),_0x58181d[_0x58181d[_0x3bc2c8(0x16e)]=0x3]=_0x3bc2c8(0x16e),_0x58181d[_0x58181d[_0x3bc2c8(0x148)]=0x4]=_0x3bc2c8(0x148),_0x58181d[_0x58181d[_0x3bc2c8(0x1f0)]=0x5]=_0x3bc2c8(0x1f0),_0x58181d[_0x58181d['RECV']=0x6]=_0x3bc2c8(0x31c),_0x58181d[_0x58181d['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x58181d))(_0x4e6b2d||{}),_0x4a2846=(_0x570b65=>(_0x570b65[_0x570b65['UNKNOWN_CODE']=0x0]=_0x3bc2c8(0x2c0),_0x570b65[_0x570b65['OK']=0x1]='OK',_0x570b65[_0x570b65[_0x3bc2c8(0x27e)]=0x2]='FAIL',_0x570b65[_0x570b65['UNRECOGNIZED']=-0x1]=_0x3bc2c8(0x396),_0x570b65))(_0x4a2846||{}),_0x1817d2=(_0x17dd5a=>(_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x4fa)]=0x0]=_0x3bc2c8(0x4fa),_0x17dd5a[_0x17dd5a['HttpImport']=0x1]=_0x3bc2c8(0xf0),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x24e)]=0x2]=_0x3bc2c8(0x24e),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0xd9)]=0x3]=_0x3bc2c8(0xd9),_0x17dd5a[_0x17dd5a['UnitSnapshot']=0x4]=_0x3bc2c8(0x333),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x396)]=-0x1]=_0x3bc2c8(0x396),_0x17dd5a))(_0x1817d2||{});const _0xa50aed=_0x3bc2c8(0x371),_0xdae42f={};function _0x262567(_0x4371b0){const _0xff810f=_0x3bc2c8;var _0x4c056b,_0x11ef33,_0x2ed13e,_0x82346c;const _0x4187a4=_0x4371b0[_0xff810f(0x2db)],_0x512bb7=JSON[_0xff810f(0x4ec)](_0x4187a4);switch(_0x512bb7[_0xff810f(0x1a4)]){case _0x4e6b2d[_0xff810f(0x1f0)]:case _0x4e6b2d[_0xff810f(0x4a4)]:{const _0x38781c=_0x512bb7[_0xff810f(0x2b0)];return{..._0x512bb7,'data':_0x38781c,'cmd':_0x512bb7[_0xff810f(0x1a4)]};}case _0x4e6b2d[_0xff810f(0x3e3)]:{const _0xeb3963=_0x512bb7[_0xff810f(0x32b)];return{..._0x512bb7,'data':_0xeb3963,'cmd':_0x512bb7[_0xff810f(0x1a4)]};}case _0x4e6b2d[_0xff810f(0x31c)]:{const _0x2389e1=_0x512bb7['collaMsg'];switch(_0x2389e1[_0xff810f(0xe1)]){case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x41b)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x4c056b=_0x2389e1[_0xff810f(0x226)])==null?void 0x0:_0x4c056b['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x4f7)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x11ef33=_0x2389e1[_0xff810f(0x141)])==null?void 0x0:_0x11ef33['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x455)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x2ed13e=_0x2389e1[_0xff810f(0x50e)])==null?void 0x0:_0x2ed13e['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x4c3)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x82346c=_0x2389e1['csRejEvent'])==null?void 0x0:_0x82346c['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x234)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x4f5)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent']['USERS_ENTER']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x3aa)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)]['USERS_LEAVE']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x1ff)]},'cmd':_0x512bb7['cmd']};case _0x56cbe4[_0xff810f(0x484)]['LIVESHARE_NEW_HOST']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x31b)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x291)]:case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x429)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1['liveShareOperation']},'cmd':_0x512bb7['cmd']};case _0x56cbe4[_0xff810f(0x484)]['LIVESHARE_TERMINATE']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x31b)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x500)]:return{..._0x512bb7,'data':_0x2389e1,'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x507)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x205)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x187)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x2c2)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x2b7)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};default:return _0x512bb7;}}default:return _0x512bb7;}}function _0x3eb981(_0x3a1176){const _0x4ef2bb=_0x3bc2c8;switch(_0x3a1176[_0x4ef2bb(0x1a4)]){case _0x4e6b2d[_0x4ef2bb(0x1f0)]:case _0x4e6b2d[_0x4ef2bb(0x4a4)]:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)]});case _0x4e6b2d[_0x4ef2bb(0x148)]:{let _0x57d048;switch(_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0xe1)]){case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x234)]:{_0x57d048={'eventID':_0x56cbe4['CollaborationEvent'][_0x4ef2bb(0x234)],'updateCursorEvent':_0x3a1176['data']['data']};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x44d)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x44d)],'leaveEvent':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x280)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)]['USERS_ENTER'],'joinEvent':_0x3a1176[_0x4ef2bb(0x2db)]['data']};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x12b)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x12b)],'liveShareNewHost':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x429)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x429)],'liveShareOperation':_0x3a1176['data'][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x42a)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x42a)],'liveShareTerminate':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)]['LIVESHARE_REQUEST_HOST']:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x463)],'liveShareRequestHost':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x291)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x291)]};break;}default:_0x57d048={'eventID':_0x3a1176['data'][_0x4ef2bb(0xe1)]};}return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176['cmd'],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'collaMsg':_0x57d048});}case _0x4e6b2d['JOIN']:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'joinReq':_0x3a1176[_0x4ef2bb(0x2db)]});case _0x4e6b2d[_0x4ef2bb(0x16e)]:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'leaveReq':_0x3a1176[_0x4ef2bb(0x2db)]});default:throw new Error(_0x4ef2bb(0x151));}}var _0x5e3302=Object[_0x3bc2c8(0x361)],_0xf005e8=Object['getOwnPropertyDescriptor'],_0x1f28f1=(_0x233af9,_0x46f289,_0x54ad5f,_0x4e241d)=>{const _0x41799d=_0x3bc2c8;for(var _0x6fa1ed=_0x4e241d>0x1?void 0x0:_0x4e241d?_0xf005e8(_0x46f289,_0x54ad5f):_0x46f289,_0x2c7140=_0x233af9[_0x41799d(0x3d6)]-0x1,_0x1333c4;_0x2c7140>=0x0;_0x2c7140--)(_0x1333c4=_0x233af9[_0x2c7140])&&(_0x6fa1ed=(_0x4e241d?_0x1333c4(_0x46f289,_0x54ad5f,_0x6fa1ed):_0x1333c4(_0x6fa1ed))||_0x6fa1ed);return _0x4e241d&&_0x6fa1ed&&_0x5e3302(_0x46f289,_0x54ad5f,_0x6fa1ed),_0x6fa1ed;},_0x4d9d27=(_0x344bdb,_0x208b1f)=>(_0xf054fb,_0x58a522)=>_0x208b1f(_0xf054fb,_0x58a522,_0x344bdb);const _0x2644e7=_0x5b7cfd[_0x3bc2c8(0x20d)](_0x3bc2c8(0x250));function _0x256d97(_0x21e11d,_0xe966e2,_0x34c1e5){const _0xa4ffeb=_0x3bc2c8;return _0x21e11d+'/'+_0xe966e2+_0xa4ffeb(0x248)+_0x34c1e5+'/new_changes';}_0x48e51e[_0x3bc2c8(0x17f)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x5679eb,_0xe4a9a1,_0xc4e86a,_0x4c23b3,_0x1f182d){const _0x431002=_0x3bc2c8;super(),this['_http']=_0x5679eb,this[_0x431002(0x442)]=_0xe4a9a1,this[_0x431002(0x4cb)]=_0xc4e86a,this[_0x431002(0x4e7)]=_0x4c23b3,this[_0x431002(0x1ea)]=_0x1f182d;}['createSocket'](_0x42fb25){const _0x413f47=_0x3bc2c8,_0x1b5af8=this['_ws'][_0x413f47(0x245)](_0x42fb25);if(!_0x1b5af8)throw new Error(_0x413f47(0x186));const _0x54ec8e=new _0x5b7cfd['DisposableCollection'](),_0x45e8c3=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e['add'](_0x1b5af8[_0x413f47(0x1ab)][_0x413f47(0x2f5)](_0x290e83=>_0x45e8c3[_0x413f47(0xe4)](_0x290e83))),_0x54ec8e['add'](_0x5b7cfd['toDisposable'](()=>_0x45e8c3[_0x413f47(0x10e)]()));const _0x348db6=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e[_0x413f47(0x225)](_0x1b5af8['error$']['subscribe'](_0x44693d=>_0x348db6['next'](_0x44693d))),_0x54ec8e[_0x413f47(0x225)](_0x5b7cfd[_0x413f47(0x3d9)](()=>_0x348db6[_0x413f47(0x10e)]()));const _0x43cfdc=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e[_0x413f47(0x225)](_0x1b5af8[_0x413f47(0x2c4)]['subscribe'](_0x569955=>{const _0x486987=_0x413f47,_0xf755e3=_0x262567(_0x569955);_0x43cfdc[_0x486987(0xe4)](_0xf755e3);})),_0x54ec8e['add'](_0x5b7cfd['toDisposable'](()=>_0x43cfdc['complete']()));let _0x4d49f4;const _0x229a11=()=>{const _0x168d71=_0x413f47;_0x348db6['next'](new Event(_0x168d71(0x4d4))),_0x45e8c3[_0x168d71(0xe4)](new CloseEvent('connection\x20error')),_0x4d49f4[_0x168d71(0x212)]();};return _0x4d49f4={'memberID':'','close$':_0x45e8c3[_0x413f47(0x4eb)](),'error$':_0x348db6[_0x413f47(0x4eb)](),'open$':_0x1b5af8[_0x413f47(0x299)],'message$':_0x43cfdc[_0x413f47(0x4eb)](),'send':_0x5efd96=>{const _0xb8e865=_0x413f47;if(_0x5efd96[_0xb8e865(0x1a4)]===_0x4e6b2d[_0xb8e865(0x148)]){if(_0x5efd96['data'][_0xb8e865(0xe1)]===_0x56cbe4['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0xb8e865(0x17c)](_0x4d49f4,_0x5efd96[_0xb8e865(0x2db)])[_0xb8e865(0x2bd)](_0xd14924=>{const _0x2e8a23=_0xb8e865;this['_logService'][_0x2e8a23(0x476)](_0xd14924),_0x229a11();});return;}if(_0x5efd96[_0xb8e865(0x2db)][_0xb8e865(0xe1)]===_0x56cbe4['CollaborationEvent'][_0xb8e865(0x123)]){const _0x3ab3a6=_0x5efd96['data'];this[_0xb8e865(0x2ca)](_0x3ab3a6)[_0xb8e865(0x3a3)](_0x392009=>{const _0x46e0e6=_0xb8e865;_0x43cfdc['next']({'cmd':_0x4e6b2d[_0x46e0e6(0x31c)],'code':_0x4a2846['OK'],'routeKey':_0x3ab3a6[_0x46e0e6(0x2db)][_0x46e0e6(0x1b0)],'routeType':'','data':{'eventID':_0x56cbe4[_0x46e0e6(0x484)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x392009}}});})[_0xb8e865(0x2bd)](_0x2d1233=>{const _0x4163de=_0xb8e865;this[_0x4163de(0x4e7)][_0x4163de(0x476)](_0x2d1233),_0x229a11();});return;}}_0x1b5af8[_0xb8e865(0x441)](_0x3eb981(_0x5efd96));},'close':()=>{const _0x355ec0=_0x413f47;_0x1b5af8[_0x355ec0(0x212)](),_0x54ec8e[_0x355ec0(0x314)]();}},_0x4d49f4;}async[_0x3bc2c8(0x17c)](_0xcc87b7,_0x3cb064){const _0x4ac4f1=_0x3bc2c8;var _0xb469ca,_0x2cab7a;const {unitType:_0x28f508,unitID:_0x3418e2,changeset:_0x3d4ec0}=_0x3cb064[_0x4ac4f1(0x2db)],_0x45456d={'unitID':_0x3418e2,'memberID':_0xcc87b7[_0x4ac4f1(0x48f)],'type':_0x28f508,'changeset':_0x56cbe4[_0x4ac4f1(0x12e)](_0x3d4ec0)},_0x32435b=this[_0x4ac4f1(0x4cb)][_0x4ac4f1(0x1db)](_0x3bca7a),_0x5c7455=this[_0x4ac4f1(0x4cb)][_0x4ac4f1(0x1db)](_0xa50aed),_0x3818b7=_0x256d97((_0x2cab7a=(_0xb469ca=_0x5c7455==null?void 0x0:_0x5c7455[_0x4ac4f1(0x129)])!=null?_0xb469ca:_0x32435b)!=null?_0x2cab7a:_0x62b297,_0x28f508,_0x3418e2);try{await this[_0x4ac4f1(0xfa)][_0x4ac4f1(0x15b)](_0x3818b7,{'body':_0x45456d});}catch(_0x543dc6){throw this[_0x4ac4f1(0x4e7)][_0x4ac4f1(0x476)](_0x4ac4f1(0x2e4),_0x4ac4f1(0x39a)),_0x543dc6;}}async[_0x3bc2c8(0x2ca)](_0x57ee56){const _0x40e892=_0x3bc2c8,{unitID:_0x40abca,from:_0x8e698b,to:_0x4faff1,unitType:_0x1c0f98}=_0x57ee56[_0x40e892(0x2db)];return(await this[_0x40e892(0x1ea)][_0x40e892(0x4ea)]({'metadata':void 0x0},{'unitID':_0x40abca,'type':_0x1c0f98,'from':_0x8e698b,'to':_0x4faff1}))['changesets'];}},_0x48e51e[_0x3bc2c8(0x17f)]=_0x1f28f1([_0x4d9d27(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1['HTTPService'])),_0x4d9d27(0x1,_0x5b7cfd['Inject'](_0x4ba5d1['WebSocketService'])),_0x4d9d27(0x2,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x4d9d27(0x3,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x4d9d27(0x4,_0x56cbe4['ISnapshotServerService'])],_0x48e51e['CollaborationSocketService']);const _0x2b6b65=_0x3bc2c8(0xfc);function _0x342318(_0x3c6db0){const _0x804155=_0x3bc2c8;return JSON[_0x804155(0x2fb)](_0x3c6db0)[_0x804155(0x3d6)];}class _0x1225af{constructor(){const _0x3f7599=_0x3bc2c8;_0x314dc6(this,'_commentUpdate$',new _0x266483[(_0x3f7599(0x2e5))]()),_0x314dc6(this,_0x3f7599(0x128),this['_commentUpdate$'][_0x3f7599(0x4eb)]());}[_0x3bc2c8(0x273)](_0x65d132){const _0x476fd1=_0x3bc2c8;this[_0x476fd1(0x12a)]['next'](_0x65d132);}}var _0x4fd6ae=Object['defineProperty'],_0x362e42=Object['getOwnPropertyDescriptor'],_0x337288=(_0x3b80ab,_0x406cbf,_0x45c559,_0x5aec8d)=>{const _0x38aef6=_0x3bc2c8;for(var _0x4c2ede=_0x5aec8d>0x1?void 0x0:_0x5aec8d?_0x362e42(_0x406cbf,_0x45c559):_0x406cbf,_0x790854=_0x3b80ab[_0x38aef6(0x3d6)]-0x1,_0x32e765;_0x790854>=0x0;_0x790854--)(_0x32e765=_0x3b80ab[_0x790854])&&(_0x4c2ede=(_0x5aec8d?_0x32e765(_0x406cbf,_0x45c559,_0x4c2ede):_0x32e765(_0x4c2ede))||_0x4c2ede);return _0x5aec8d&&_0x4c2ede&&_0x4fd6ae(_0x406cbf,_0x45c559,_0x4c2ede),_0x4c2ede;},_0x3a5a0d=(_0x5e5df1,_0x30a697)=>(_0x53cfb0,_0x21ba8d)=>_0x30a697(_0x53cfb0,_0x21ba8d,_0x5e5df1);let _0x587d5a=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x5a21bf,_0x5271a7){const _0x47e72b=_0x3bc2c8;super(),_0x314dc6(this,_0x47e72b(0x3e6),new Map()),(this[_0x47e72b(0x10b)]=_0x5a21bf,this[_0x47e72b(0x238)]=_0x5271a7,this[_0x47e72b(0x131)](_0x5b7cfd[_0x47e72b(0x3d9)](_0x266483[_0x47e72b(0x2a5)](this['_univerInstanceService'][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)]['UNIVER_SHEET'])['pipe'](_0x51de38['map'](_0x40e7ce=>_0x40e7ce[_0x47e72b(0x183)]())),this[_0x47e72b(0x10b)][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)][_0x47e72b(0x3a6)])[_0x47e72b(0x198)](_0x51de38[_0x47e72b(0x39c)](_0x11df8f=>_0x11df8f[_0x47e72b(0x183)]())),this[_0x47e72b(0x10b)][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)][_0x47e72b(0x202)])[_0x47e72b(0x198)](_0x51de38[_0x47e72b(0x39c)](_0x29cabb=>_0x29cabb[_0x47e72b(0x183)]())))[_0x47e72b(0x2f5)](_0x2f0939=>this['_removeRoom'](_0x2f0939)))));}['setCurrentUser'](_0x332a67){const _0x39946c=_0x3bc2c8;this['_userManagerService'][_0x39946c(0x4ba)](_0x332a67);}[_0x3bc2c8(0x105)](){const _0x1f1678=_0x3bc2c8;return this['_userManagerService'][_0x1f1678(0x105)]();}[_0x3bc2c8(0x167)](_0x1d6eef,_0x27138c){const _0x59fb33=_0x3bc2c8;let _0x34fbfe=this[_0x59fb33(0x3e6)][_0x59fb33(0x451)](_0x1d6eef);_0x34fbfe||(_0x34fbfe=new _0x10db63(),this[_0x59fb33(0x3e6)][_0x59fb33(0x10d)](_0x1d6eef,_0x34fbfe)),_0x34fbfe['updateMember'](_0x27138c);}[_0x3bc2c8(0x3ba)](_0x3c4555,_0x3278de){const _0x5b2da2=_0x3bc2c8,_0x4542b9=this[_0x5b2da2(0x3e6)]['get'](_0x3c4555);_0x4542b9&&_0x4542b9[_0x5b2da2(0x3ba)](_0x3278de);}[_0x3bc2c8(0x50a)](_0xde9b67){const _0xe4507a=_0x3bc2c8;return this['_roomMembers'][_0xe4507a(0x451)](_0xde9b67);}['getMember'](_0x5a4b15,_0x5e1bdd){const _0x471eb5=this['_roomMembers']['get'](_0x5a4b15);if(_0x471eb5)return _0x471eb5['getMember'](_0x5e1bdd);}[_0x3bc2c8(0x18e)](_0x3d5e9d){const _0x5f2e25=_0x3bc2c8,_0x767172=this[_0x5f2e25(0x3e6)][_0x5f2e25(0x451)](_0x3d5e9d);_0x767172&&(_0x767172[_0x5f2e25(0x314)](),this['_roomMembers']['delete'](_0x3d5e9d));}[_0x3bc2c8(0x314)](){const _0x1d461c=_0x3bc2c8;this[_0x1d461c(0x3e6)][_0x1d461c(0x255)](_0x56dd08=>_0x56dd08[_0x1d461c(0x314)]()),this[_0x1d461c(0x3e6)]['clear']();}};_0x587d5a=_0x337288([_0x3a5a0d(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x3a5a0d(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x3d4)]))],_0x587d5a);class _0x10db63 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0xc452ad=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0xc452ad(0x3d0),new Map());}[_0x3bc2c8(0x314)](){const _0x2013bf=_0x3bc2c8;this[_0x2013bf(0x3d0)]['clear']();}[_0x3bc2c8(0x167)](_0x12d173){const _0x5d109c=_0x3bc2c8;this['_members'][_0x5d109c(0x10d)](_0x12d173['memberID'],_0x12d173);}[_0x3bc2c8(0x3ba)](_0x104733){const _0x368078=_0x3bc2c8;this['_members'][_0x368078(0x344)](_0x104733);}['getMember'](_0x184b35){const _0x46bb57=_0x3bc2c8;return this['_members'][_0x46bb57(0x451)](_0x184b35);}}var _0x38a672=Object['defineProperty'],_0x218075=Object[_0x3bc2c8(0x48b)],_0x1c142f=(_0x57d87d,_0x2d1189,_0x18896d,_0x251fe7)=>{const _0x2645b2=_0x3bc2c8;for(var _0x29fbd2=_0x251fe7>0x1?void 0x0:_0x251fe7?_0x218075(_0x2d1189,_0x18896d):_0x2d1189,_0x337cfb=_0x57d87d[_0x2645b2(0x3d6)]-0x1,_0x244b3b;_0x337cfb>=0x0;_0x337cfb--)(_0x244b3b=_0x57d87d[_0x337cfb])&&(_0x29fbd2=(_0x251fe7?_0x244b3b(_0x2d1189,_0x18896d,_0x29fbd2):_0x244b3b(_0x29fbd2))||_0x29fbd2);return _0x251fe7&&_0x29fbd2&&_0x38a672(_0x2d1189,_0x18896d,_0x29fbd2),_0x29fbd2;},_0x2e5a66=(_0xa254c2,_0x422e11)=>(_0x5179f9,_0x35763c)=>_0x422e11(_0x5179f9,_0x35763c,_0xa254c2),_0x2d9d4e=(_0xa6f3fa=>(_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x274)]=0x0]=_0x3bc2c8(0x274),_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x1c8)]=0x1]='JOINING',_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x3b0)]=0x2]=_0x3bc2c8(0x3b0),_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x322)]=0x3]=_0x3bc2c8(0x322),_0xa6f3fa))(_0x2d9d4e||{});_0x48e51e[_0x3bc2c8(0x246)]=class extends _0x5b7cfd['RxDisposable']{constructor(_0x291ac3,_0x389233,_0x5683c6,_0x135482,_0x470cc1,_0x57229f,_0x549388,_0xb2d1ce,_0x360caa,_0x7471ec){const _0x4ef807=_0x3bc2c8;super(),_0x314dc6(this,_0x4ef807(0x426),new _0x266483[(_0x4ef807(0x43e))](0x0)),_0x314dc6(this,_0x4ef807(0x509),this[_0x4ef807(0x426)][_0x4ef807(0x4eb)]()),_0x314dc6(this,'_event$',new _0x266483['Subject']()),_0x314dc6(this,_0x4ef807(0x164),this[_0x4ef807(0x478)][_0x4ef807(0x4eb)]()),_0x314dc6(this,_0x4ef807(0x3d1)),_0x314dc6(this,'_socketMessageSubscription'),_0x314dc6(this,_0x4ef807(0x21e)),_0x314dc6(this,_0x4ef807(0x453),!0x1),_0x314dc6(this,_0x4ef807(0x23f),null),(this[_0x4ef807(0x4c7)]=_0x291ac3,this[_0x4ef807(0x4e7)]=_0x5683c6,this['_beforeCloseService']=_0x135482,this[_0x4ef807(0x1d6)]=_0x470cc1,this[_0x4ef807(0x4cb)]=_0x57229f,this[_0x4ef807(0x24c)]=_0x549388,this[_0x4ef807(0x159)]=_0xb2d1ce,this[_0x4ef807(0x19b)]=_0x360caa,this['_telemetryService']=_0x7471ec,this[_0x4ef807(0x453)]=!!this[_0x4ef807(0x1b4)],_0x389233[_0x4ef807(0x198)](_0x266483[_0x4ef807(0x46b)](this[_0x4ef807(0x2dd)]))[_0x4ef807(0x2f5)](_0x89baae=>{const _0x2fdca7=_0x4ef807;var _0x17fdd3;typeof _0x89baae>'u'||(this[_0x2fdca7(0x3d1)]=_0x89baae,_0x89baae?(this[_0x2fdca7(0x3e0)](_0x89baae),this['_socketMessageSubscription']=_0x89baae['message$'][_0x2fdca7(0x2f5)](_0x4aabb8=>{const _0xefe316=_0x2fdca7;_0x4aabb8[_0xefe316(0x40d)]===this[_0xefe316(0x4c7)]&&this['_onCombEvent'](_0x4aabb8);})):(this[_0x2fdca7(0x471)](),this[_0x2fdca7(0x426)][_0x2fdca7(0xe4)](0x2),(_0x17fdd3=this['_socketMessageSubscription'])==null||_0x17fdd3[_0x2fdca7(0x114)](),this[_0x2fdca7(0x481)]=null));}),this['disposeWithMe'](this[_0x4ef807(0x2ec)]['registerOnClose'](()=>{const _0x3da3ee=_0x4ef807;var _0x1162fd;(_0x1162fd=this[_0x3da3ee(0x3d1)])==null||_0x1162fd['send']({'cmd':_0x4e6b2d[_0x3da3ee(0x16e)],'data':{'roomID':this[_0x3da3ee(0x4c7)]}});})));}get['sessionStatus'](){return this['_sessionStatus$']['getValue']();}[_0x3bc2c8(0x2d0)](){const _0x508d16=_0x3bc2c8;var _0x11de7b,_0x5b652d;return(_0x5b652d=(_0x11de7b=this['_socket'])==null?void 0x0:_0x11de7b[_0x508d16(0x48f)])!=null?_0x5b652d:null;}['dispose'](){const _0x5038a3=_0x3bc2c8;super[_0x5038a3(0x314)](),this[_0x5038a3(0x2dd)]['next'](),this[_0x5038a3(0x2dd)][_0x5038a3(0x10e)]();}['close'](){const _0xaedf69=_0x3bc2c8;var _0x1f1d24,_0x33aa9e;this[_0xaedf69(0x471)](),(_0x1f1d24=this[_0xaedf69(0x3d1)])==null||_0x1f1d24[_0xaedf69(0x441)]({'cmd':_0x4e6b2d[_0xaedf69(0x16e)],'data':{'roomID':this['_unitID']}}),(_0x33aa9e=this[_0xaedf69(0x3d1)])==null||_0x33aa9e['close'](),this[_0xaedf69(0x478)][_0xaedf69(0x10e)](),this[_0xaedf69(0x426)][_0xaedf69(0x10e)](),this['dispose']();}[_0x3bc2c8(0x149)](_0x5866af){const _0x3c04bc=_0x3bc2c8;_0x5866af[_0x3c04bc(0x1a4)]===_0x4e6b2d['JOIN']?this[_0x3c04bc(0x13f)](_0x5866af):_0x5866af[_0x3c04bc(0x1a4)]===_0x4e6b2d['RECV']&&this[_0x3c04bc(0x10c)](_0x5866af);}[_0x3bc2c8(0x3e0)](_0x33ccf0){const _0x10967b=_0x3bc2c8;this['_sessionStatus$'][_0x10967b(0xe4)](0x1),_0x33ccf0[_0x10967b(0x441)]({'cmd':_0x4e6b2d[_0x10967b(0x3e3)],'routeKey':this[_0x10967b(0x4c7)],'routeType':'','data':{'rooms':[{'roomID':this[_0x10967b(0x4c7)]}]}});}[_0x3bc2c8(0x13f)](_0x2659a2){const _0xb4dbf2=_0x3bc2c8;var _0x80312a;if(_0x2659a2[_0xb4dbf2(0x337)]===_0x4a2846[_0xb4dbf2(0x27e)]){this[_0xb4dbf2(0x1d6)][_0xb4dbf2(0x29f)]({'type':_0x4466a1[_0xb4dbf2(0x185)]['Warning'],'content':this[_0xb4dbf2(0x24c)]['t']('session.room-full')}),this[_0xb4dbf2(0x426)][_0xb4dbf2(0xe4)](0x2);return;}this['_sessionStatus$'][_0xb4dbf2(0xe4)](0x3);const _0xec303f=(_0x80312a=_0x2659a2[_0xb4dbf2(0x2db)][_0xb4dbf2(0x102)][this[_0xb4dbf2(0x4c7)]])==null?void 0x0:_0x80312a[_0xb4dbf2(0x162)];_0xec303f&&_0xec303f[_0xb4dbf2(0x255)](_0x4555a3=>this['_memberService'][_0xb4dbf2(0x167)](this['_unitID'],_0x4555a3));}[_0x3bc2c8(0x10c)](_0x170fb7){const _0x3ed4c8=_0x3bc2c8;try{const _0x36ca41=_0x170fb7[_0x3ed4c8(0x2db)];switch(_0x36ca41[_0x3ed4c8(0xe1)]){case _0x56cbe4[_0x3ed4c8(0x484)][_0x3ed4c8(0x280)]:this['_onUserJoin'](_0x36ca41),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)]['USERS_LEAVE']:this[_0x3ed4c8(0x2cb)](_0x36ca41),this[_0x3ed4c8(0x478)]['next'](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)]['CHANGESET_ACK']:this[_0x3ed4c8(0x1f4)](),this[_0x3ed4c8(0x4c5)](),this['_event$'][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4['CollaborationEvent'][_0x3ed4c8(0x500)]:this[_0x3ed4c8(0x4e7)][_0x3ed4c8(0x476)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x3ed4c8(0x2fb)](_0x36ca41)),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)][_0x3ed4c8(0x507)]:this[_0x3ed4c8(0x19b)][_0x3ed4c8(0x273)](_0x36ca41['data']),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;default:this[_0x3ed4c8(0x478)]['next'](_0x36ca41);}}catch(_0x31252e){this[_0x3ed4c8(0x4e7)][_0x3ed4c8(0x476)](_0x31252e,_0x170fb7);}}[_0x3bc2c8(0x414)](_0x2c97c8){const _0x2da873=_0x3bc2c8;this['_memberService']['updateMember'](this[_0x2da873(0x4c7)],_0x2c97c8[_0x2da873(0x2db)]);}[_0x3bc2c8(0x2cb)](_0x452a7d){const _0x4af6f9=_0x3bc2c8;this[_0x4af6f9(0x159)][_0x4af6f9(0x3ba)](this[_0x4af6f9(0x4c7)],_0x452a7d[_0x4af6f9(0x2db)][_0x4af6f9(0x48f)]);}async[_0x3bc2c8(0x441)](_0x4f1aff,_0x5b46eb){const _0x216f3f=_0x3bc2c8;if(this[_0x216f3f(0xee)]!==0x3||!this[_0x216f3f(0x3d1)])throw new Error(_0x216f3f(0x3df));try{_0x4f1aff['eventID']===_0x56cbe4[_0x216f3f(0x484)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x4f1aff)),this[_0x216f3f(0x3d1)][_0x216f3f(0x441)]({'cmd':_0x4e6b2d[_0x216f3f(0x148)],'routeKey':_0x5b46eb,'routeType':'','data':_0x4f1aff});}catch(_0x559e2e){this['_logService'][_0x216f3f(0x476)](_0x559e2e);}}[_0x3bc2c8(0x281)](){const _0x2b0cc7=_0x3bc2c8;var _0x5cf722;this[_0x2b0cc7(0x21e)]=window['setTimeout'](()=>{const _0xa3b2a1=_0x2b0cc7;this[_0xa3b2a1(0x21e)]=null,this[_0xa3b2a1(0x1d6)][_0xa3b2a1(0x29f)]({'type':_0x4466a1[_0xa3b2a1(0x185)][_0xa3b2a1(0x34e)],'content':this[_0xa3b2a1(0x24c)]['t'](_0xa3b2a1(0x14b))});},(_0x5cf722=this[_0x2b0cc7(0x4cb)][_0x2b0cc7(0x1db)](_0x372540))!=null?_0x5cf722:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x4b0fb7=_0x3bc2c8;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x4b0fb7(0x21e)]=null);}[_0x3bc2c8(0x4cd)](_0x4e96ff){const _0x22aa8a=_0x3bc2c8;if(!this['_shouldReportTelemetry'])return;const {data:_0x3c1e74}=_0x4e96ff,{unitID:_0x55873d,changeset:_0x33869}=_0x3c1e74,{mutations:_0x781708,type:_0x582494}=_0x33869;this[_0x22aa8a(0x23f)]={'unitId':_0x55873d,'type':_0x582494,'startTime':performance[_0x22aa8a(0x2ef)](),'stopTime':0x0,'duration':0x0,'size':_0x342318(_0x781708)};}[_0x3bc2c8(0x1f4)](){const _0x126282=_0x3bc2c8;if(this[_0x126282(0x453)]){if(!this['_telemetryInfo']){this[_0x126282(0x4e7)][_0x126282(0x476)](_0x126282(0x2e4),_0x126282(0x45b));return;}this[_0x126282(0x23f)][_0x126282(0x42f)]=performance[_0x126282(0x2ef)](),this[_0x126282(0x23f)][_0x126282(0x470)]=this[_0x126282(0x23f)]['stopTime']-this['_telemetryInfo'][_0x126282(0x4d2)],this[_0x126282(0x1b4)][_0x126282(0x15c)](_0x2b6b65,this[_0x126282(0x23f)]),this[_0x126282(0x23f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x5f23a6=_0x3bc2c8;this[_0x5f23a6(0x23f)]=null;}},_0x48e51e[_0x3bc2c8(0x246)]=_0x1c142f([_0x2e5a66(0x2,_0x5b7cfd['ILogService']),_0x2e5a66(0x3,_0x2ce95d[_0x3bc2c8(0x309)]),_0x2e5a66(0x4,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x2e5a66(0x5,_0x5b7cfd['IConfigService']),_0x2e5a66(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)])),_0x2e5a66(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2e5a66(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x1225af)),_0x2e5a66(0x9,_0x5b7cfd[_0x3bc2c8(0x259)](_0x36caba[_0x3bc2c8(0x32d)]))],_0x48e51e[_0x3bc2c8(0x246)]);var _0x32a86a=Object[_0x3bc2c8(0x361)],_0xa2605f=Object[_0x3bc2c8(0x48b)],_0x41140d=(_0x4e34a9,_0x4b73aa,_0xd03813,_0x1c2c52)=>{const _0x59ad49=_0x3bc2c8;for(var _0x3f5321=_0x1c2c52>0x1?void 0x0:_0x1c2c52?_0xa2605f(_0x4b73aa,_0xd03813):_0x4b73aa,_0x2d8a8a=_0x4e34a9[_0x59ad49(0x3d6)]-0x1,_0x40a591;_0x2d8a8a>=0x0;_0x2d8a8a--)(_0x40a591=_0x4e34a9[_0x2d8a8a])&&(_0x3f5321=(_0x1c2c52?_0x40a591(_0x4b73aa,_0xd03813,_0x3f5321):_0x40a591(_0x3f5321))||_0x3f5321);return _0x1c2c52&&_0x3f5321&&_0x32a86a(_0x4b73aa,_0xd03813,_0x3f5321),_0x3f5321;},_0x388c8c=(_0x28e732,_0x5b2e66)=>(_0x245180,_0x218efd)=>_0x5b2e66(_0x245180,_0x218efd,_0x28e732);_0x48e51e[_0x3bc2c8(0x1d8)]=class extends _0x5b7cfd['Disposable']{constructor(_0x5d1839,_0x29355b,_0x7845a1,_0x2c54e5,_0x5f3cb4,_0x38ff1b){const _0x96442b=_0x3bc2c8;super(),_0x314dc6(this,_0x96442b(0x1b7),new _0x266483[(_0x96442b(0x43e))](void 0x0)),_0x314dc6(this,_0x96442b(0x477),this[_0x96442b(0x1b7)][_0x96442b(0x4eb)]()),_0x314dc6(this,'_candidateSocket',null),_0x314dc6(this,'_sessions',new Map()),_0x314dc6(this,_0x96442b(0x400),new _0x266483['BehaviorSubject'](_0x2d9d4e[_0x96442b(0x274)])),_0x314dc6(this,_0x96442b(0x294),this[_0x96442b(0x400)]['asObservable']()),_0x314dc6(this,'_socketReady',!0x1),_0x314dc6(this,'_retryConnectingTimer'),_0x314dc6(this,_0x96442b(0x1da),0x0),_0x314dc6(this,'_sendHeartbeatTimer'),_0x314dc6(this,_0x96442b(0x247)),(this[_0x96442b(0x30f)]=_0x5d1839,this[_0x96442b(0x24c)]=_0x29355b,this[_0x96442b(0x1d6)]=_0x7845a1,this[_0x96442b(0x4e7)]=_0x2c54e5,this['_configService']=_0x5f3cb4,this[_0x96442b(0x2ac)]=_0x38ff1b,this['_initEventListeners']());}get[_0x3bc2c8(0x3d1)](){const _0x3d2cfd=_0x3bc2c8;return this[_0x3d2cfd(0x1b7)][_0x3d2cfd(0x21b)]();}[_0x3bc2c8(0x241)](){const _0x3988d6=_0x3bc2c8;this[_0x3988d6(0x50f)](),this[_0x3988d6(0x381)]();}[_0x3bc2c8(0x314)](){const _0x39528a=_0x3bc2c8;super[_0x39528a(0x314)](),this['_sessions']['forEach'](_0x13ac19=>_0x13ac19[_0x39528a(0x314)]()),this['_sessions'][_0x39528a(0x174)](),this['_status$'][_0x39528a(0x10e)]();}async['requireSession'](_0x494334){const _0x37f7c1=_0x3bc2c8;if(this[_0x37f7c1(0x4d6)][_0x37f7c1(0x232)](_0x494334))return this[_0x37f7c1(0x4d6)]['get'](_0x494334);this[_0x37f7c1(0x108)]();const _0x25d79b=this[_0x37f7c1(0x30f)][_0x37f7c1(0x1a3)](_0x48e51e['CollaborationSession'],_0x494334,this['_socket$'][_0x37f7c1(0x4eb)]());return this[_0x37f7c1(0x4d6)][_0x37f7c1(0x10d)](_0x494334,_0x25d79b),_0x25d79b;}[_0x3bc2c8(0x3f6)](_0x42bf40){const _0x94b475=_0x3bc2c8;var _0x114ad7;const _0x283959=this['_sessions'][_0x94b475(0x451)](_0x42bf40);_0x283959&&(this[_0x94b475(0x4d6)][_0x94b475(0x344)](_0x42bf40),_0x283959['close']()),this[_0x94b475(0x4d6)][_0x94b475(0x127)]||(_0x114ad7=this[_0x94b475(0x3d1)])==null||_0x114ad7[_0x94b475(0x212)]();}[_0x3bc2c8(0x28d)](){const _0x310312=_0x3bc2c8;this[_0x310312(0x1da)]=0x0,this[_0x310312(0x26d)]!=null&&(clearTimeout(this[_0x310312(0x26d)]),this['_retryConnectingTimer']=null),this[_0x310312(0x2f3)]();}[_0x3bc2c8(0x4e2)](){const _0x4d5618=_0x3bc2c8;var _0x6f1935,_0x220372;const _0x5b039d=this['_configService'][_0x4d5618(0x1db)](_0x4989e3),_0x3a2ece=this['_configService'][_0x4d5618(0x1db)](_0xa50aed),_0x13965f=(_0x220372=(_0x6f1935=_0x3a2ece==null?void 0x0:_0x3a2ece[_0x4d5618(0x37d)])!=null?_0x6f1935:_0x5b039d)!=null?_0x220372:_0x2cc1a0,_0xbcbba8=this['_socketService'][_0x4d5618(0x245)](_0x13965f);return this[_0x4d5618(0x1fa)]=_0xbcbba8,_0xbcbba8;}['_tryEnsureSocket'](){const _0x148a7c=_0x3bc2c8;var _0x319b8a,_0x1406d4;try{const _0x1ce87c=(_0x1406d4=(_0x319b8a=this['_socket'])!=null?_0x319b8a:this[_0x148a7c(0x1fa)])!=null?_0x1406d4:this['_createSocket']();if(_0x1ce87c){const _0x472aa4=_0x1ce87c[_0x148a7c(0x441)];_0x1ce87c[_0x148a7c(0x441)]=_0x17b2ca=>(this[_0x148a7c(0x110)](),_0x472aa4[_0x148a7c(0x458)](_0x1ce87c,[_0x17b2ca])),_0x1ce87c[_0x148a7c(0x2c4)][_0x148a7c(0x2f5)](_0x918619=>this[_0x148a7c(0x4a0)](_0x1ce87c,_0x918619)),_0x1ce87c['error$'][_0x148a7c(0x198)](_0x51de38[_0x148a7c(0x38a)](0x1))['subscribe'](_0x2a04d8=>this[_0x148a7c(0x4e7)][_0x148a7c(0x476)]('[CollaborationSessionService]:\x20socket\x20error',_0x2a04d8)),_0x1ce87c[_0x148a7c(0x299)]['pipe'](_0x51de38['take'](0x1))[_0x148a7c(0x2f5)](()=>{const _0x28347a=_0x148a7c;this[_0x28347a(0x506)](_0x1ce87c);}),_0x1ce87c['close$'][_0x148a7c(0x198)](_0x51de38[_0x148a7c(0x38a)](0x1))[_0x148a7c(0x2f5)](_0x29bf3a=>{const _0x54cae1=_0x148a7c;this[_0x54cae1(0x4e7)][_0x54cae1(0x46f)]('[CollaborationSessionService]',_0x54cae1(0x48c),_0x29bf3a),this[_0x54cae1(0x3c9)]();});}}catch(_0x29d712){this[_0x148a7c(0x4e7)][_0x148a7c(0x476)](_0x29d712),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x2d215d){const _0x5be400=_0x3bc2c8;this[_0x5be400(0x4e7)][_0x5be400(0x46f)](_0x5be400(0x233),_0x5be400(0x1eb)),_0x2d215d[_0x5be400(0x441)]({'cmd':_0x4e6b2d[_0x5be400(0x4a4)]}),this[_0x5be400(0x110)]();}[_0x3bc2c8(0x50f)](){const _0x37551f=_0x3bc2c8;window['addEventListener'](_0x37551f(0x392),()=>this[_0x37551f(0x16a)]());}[_0x3bc2c8(0x16a)](){const _0x1516c2=_0x3bc2c8;this[_0x1516c2(0x505)]=!0x1,this[_0x1516c2(0x1fa)]=null,this['_status$'][_0x1516c2(0xe4)](_0x2d9d4e[_0x1516c2(0x3b0)]),this[_0x1516c2(0x1b7)][_0x1516c2(0xe4)](null),this[_0x1516c2(0x45e)](),this[_0x1516c2(0x363)]();}[_0x3bc2c8(0x3c9)](){const _0x5121a0=_0x3bc2c8;var _0x84eec0;this[_0x5121a0(0x16a)](),this[_0x5121a0(0x1da)]<((_0x84eec0=this[_0x5121a0(0x4cb)][_0x5121a0(0x1db)](_0x191200))!=null?_0x84eec0:0x3)?(this['_messageService'][_0x5121a0(0x29f)]({'key':_0x5121a0(0x3c3),'type':_0x4466a1[_0x5121a0(0x185)]['Warning'],'content':this[_0x5121a0(0x24c)]['t']('session.will-retry')}),this[_0x5121a0(0x2f3)]()):this['_messageService'][_0x5121a0(0x29f)]({'key':_0x5121a0(0x3c3),'type':_0x4466a1['MessageType'][_0x5121a0(0x34e)],'content':this[_0x5121a0(0x24c)]['t'](_0x5121a0(0xed))});}[_0x3bc2c8(0x381)](){const _0xb8c6c9=_0x3bc2c8,_0x32fa17=()=>{const _0x3a012b=_0x4f28;this[_0x3a012b(0x3d1)]||this[_0x3a012b(0x28d)]();},_0x43b5af=()=>{const _0xaba48b=_0x4f28;this[_0xaba48b(0x3d1)]||document[_0xaba48b(0x2d9)]===_0xaba48b(0x27c)||this[_0xaba48b(0x28d)]();};window['addEventListener'](_0xb8c6c9(0x3eb),_0x32fa17),document[_0xb8c6c9(0x435)](_0xb8c6c9(0x35f),_0x43b5af);}[_0x3bc2c8(0x2f3)](){const _0x4509e5=_0x3bc2c8;var _0x1b8b99;const _0x473ead=this[_0x4509e5(0x1da)],_0x35d135=this['_configService'][_0x4509e5(0x1db)](_0xa50aed),_0x46d3c5=_0x473ead===0x0?0x0:((_0x1b8b99=_0x35d135==null?void 0x0:_0x35d135[_0x4509e5(0x17e)])!=null?_0x1b8b99:0x4e20)*0x2**_0x473ead;this[_0x4509e5(0x26d)]=window[_0x4509e5(0x19f)](()=>{const _0x36d5b8=_0x4509e5;clearTimeout(this[_0x36d5b8(0x26d)]),this[_0x36d5b8(0x26d)]=null,this['_tryEnsureSocket']();},_0x46d3c5),this[_0x4509e5(0x1da)]+=0x1;}[_0x3bc2c8(0x4a0)](_0x120d74,_0x1783d5){const _0x47baf4=_0x3bc2c8,{cmd:_0x131c6b}=_0x1783d5;_0x131c6b===_0x4e6b2d[_0x47baf4(0x4a4)]&&!this[_0x47baf4(0x505)]&&(_0x120d74[_0x47baf4(0x48f)]=_0x1783d5[_0x47baf4(0x2db)][_0x47baf4(0x48f)],this[_0x47baf4(0x1b7)][_0x47baf4(0xe4)](_0x120d74),this[_0x47baf4(0x400)][_0x47baf4(0xe4)](_0x2d9d4e[_0x47baf4(0x322)]),this['_socketReady']=!0x0,this[_0x47baf4(0x1fa)]=null),_0x131c6b===_0x4e6b2d[_0x47baf4(0x1f0)]&&this['_clearTimeoutTimer'](),this[_0x47baf4(0x110)]();}[_0x3bc2c8(0x110)](){const _0x2a91a8=_0x3bc2c8;var _0x1fae90;this[_0x2a91a8(0x363)](),this[_0x2a91a8(0x46a)]=window[_0x2a91a8(0x19f)](()=>this[_0x2a91a8(0x1c0)](),(_0x1fae90=this[_0x2a91a8(0x4cb)]['getConfig'](_0x4afd24))!=null?_0x1fae90:0x7530);}[_0x3bc2c8(0x1c0)](){const _0x51c9d9=_0x3bc2c8;this[_0x51c9d9(0x3d1)][_0x51c9d9(0x441)]({'cmd':_0x4e6b2d['HEARTBEAT']}),this[_0x51c9d9(0x3f5)]();}[_0x3bc2c8(0x3f5)](){const _0x1f82db=_0x3bc2c8;var _0x5a8c35;this[_0x1f82db(0x247)]=window['setTimeout'](()=>this[_0x1f82db(0x3c9)](),(_0x5a8c35=this[_0x1f82db(0x4cb)][_0x1f82db(0x1db)](_0x372540))!=null?_0x5a8c35:0x4e20);}['_clearHeartbeatTimer'](){const _0x32b2b0=_0x3bc2c8;this[_0x32b2b0(0x46a)]!=null&&(clearTimeout(this[_0x32b2b0(0x46a)]),this['_sendHeartbeatTimer']=null);}[_0x3bc2c8(0x45e)](){const _0x4fbd1e=_0x3bc2c8;this[_0x4fbd1e(0x247)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},_0x48e51e[_0x3bc2c8(0x1d8)]=_0x41140d([_0x388c8c(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x388c8c(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x388c8c(0x2,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x388c8c(0x3,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x388c8c(0x4,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x388c8c(0x5,_0x2644e7)],_0x48e51e[_0x3bc2c8(0x1d8)]);var _0x13a2ff=Object[_0x3bc2c8(0x361)],_0x1cae8f=Object[_0x3bc2c8(0x48b)],_0x5e6cda=(_0x4d1bc2,_0x475bca,_0x308f1d,_0x3bd422)=>{const _0x850c41=_0x3bc2c8;for(var _0x5b124b=_0x3bd422>0x1?void 0x0:_0x3bd422?_0x1cae8f(_0x475bca,_0x308f1d):_0x475bca,_0x13184b=_0x4d1bc2[_0x850c41(0x3d6)]-0x1,_0x6e2fbf;_0x13184b>=0x0;_0x13184b--)(_0x6e2fbf=_0x4d1bc2[_0x13184b])&&(_0x5b124b=(_0x3bd422?_0x6e2fbf(_0x475bca,_0x308f1d,_0x5b124b):_0x6e2fbf(_0x5b124b))||_0x5b124b);return _0x3bd422&&_0x5b124b&&_0x13a2ff(_0x475bca,_0x308f1d,_0x5b124b),_0x5b124b;},_0x2d90e0=(_0x26a0c5,_0x769a3e)=>(_0x32a1e5,_0x14c085)=>_0x769a3e(_0x32a1e5,_0x14c085,_0x26a0c5);let _0x1e6c69=class{constructor(_0x25f496,_0x5a7ce4,_0x3a63db){const _0x920ce8=_0x3bc2c8;this[_0x920ce8(0x30f)]=_0x25f496,this[_0x920ce8(0x3a1)]=_0x5a7ce4,this['_renderManagerService']=_0x3a63db;}['transformIMECache'](_0x52a6a4){this['_transformUndoRedoStack'](_0x52a6a4),this['_transformPreviousActiveRange'](_0x52a6a4);}[_0x3bc2c8(0x3fb)](_0x1ddcad){const _0x50dc93=_0x3bc2c8,{unitID:_0x3f3c8f}=_0x1ddcad,_0xd0d302=this[_0x50dc93(0x4bd)]['getRenderById'](_0x3f3c8f)[_0x50dc93(0x1a6)](_0x618f14[_0x50dc93(0x1c2)]),{redoCache:_0x4daed4}=_0xd0d302[_0x50dc93(0x48d)]();if(_0x4daed4[_0x50dc93(0x3d6)]===0x0)return _0x1ddcad;let _0x299b78=_0x5b7cfd['Tools']['deepClone'](_0x1ddcad[_0x50dc93(0x1fc)][0x0]);for(let _0x4a5260=0x0;_0x4a5260<_0x4daed4['length'];_0x4a5260++){const _0x5aa6fa={'id':'doc.mutation.rich-text-editing','params':{..._0x4daed4[_0x4a5260]}},_0x529821=this[_0x50dc93(0x3a1)][_0x50dc93(0x31d)](_0x299b78,_0x5aa6fa,!0x1);if(_0x56cbe4[_0x50dc93(0x197)](_0x529821))throw _0x529821[_0x50dc93(0x476)];_0x299b78=_0x529821['m1Prime'];}return{..._0x5b7cfd[_0x50dc93(0x2f6)][_0x50dc93(0x29b)](_0x1ddcad),'mutations':[_0x299b78]};}['_transformUndoRedoStack'](_0x27a529){const _0x1d9f82=_0x3bc2c8,{unitID:_0x565bae}=_0x27a529,_0x437937=this[_0x1d9f82(0x4bd)]['getRenderById'](_0x565bae)[_0x1d9f82(0x1a6)](_0x618f14[_0x1d9f82(0x1c2)]),{undoCache:_0x12b8ef,redoCache:_0x26db0e}=_0x437937[_0x1d9f82(0x48d)]();if(_0x12b8ef[_0x1d9f82(0x3d6)]===0x0||_0x26db0e[_0x1d9f82(0x3d6)]===0x0)return;const _0x4f6950=[],_0x582ce1=[];let _0x23c701=_0x5b7cfd[_0x1d9f82(0x2f6)]['deepClone'](_0x27a529[_0x1d9f82(0x1fc)][0x0]),_0x4c774e=_0x5b7cfd[_0x1d9f82(0x2f6)][_0x1d9f82(0x29b)](_0x27a529['mutations'][0x0]);for(let _0x515b7d=_0x12b8ef[_0x1d9f82(0x3d6)]-0x1;_0x515b7d>=0x0;_0x515b7d--){const _0x45a1e4={'id':'doc.mutation.rich-text-editing','params':{..._0x12b8ef[_0x515b7d]}},_0x3d7f81={'id':'doc.mutation.rich-text-editing','params':{..._0x26db0e[_0x515b7d]}},_0x2adfca=this['_transformService'][_0x1d9f82(0x31d)](_0x23c701,_0x45a1e4,!0x1),_0x6bb644=this[_0x1d9f82(0x3a1)][_0x1d9f82(0x31d)](_0x4c774e,_0x3d7f81,!0x1);if(_0x56cbe4['isTransformMutationFailure'](_0x2adfca))throw _0x2adfca['error'];if(_0x56cbe4[_0x1d9f82(0x197)](_0x6bb644))throw _0x6bb644[_0x1d9f82(0x476)];_0x4f6950[_0x1d9f82(0x377)](_0x2adfca[_0x1d9f82(0x275)][_0x1d9f82(0x3c2)]),_0x582ce1[_0x1d9f82(0x377)](_0x6bb644[_0x1d9f82(0x275)]['params']),_0x23c701=_0x2adfca[_0x1d9f82(0x32c)],_0x4c774e=_0x6bb644[_0x1d9f82(0x32c)];}_0x437937[_0x1d9f82(0x486)]({'undoCache':_0x4f6950,'redoCache':_0x582ce1});}[_0x3bc2c8(0x3f2)](_0x31c5a7){const _0x2d1ae4=_0x3bc2c8,{unitID:_0x54e2eb}=_0x31c5a7,_0x2d753b=this[_0x2d1ae4(0x4bd)]['getRenderById'](_0x54e2eb)['with'](_0x618f14[_0x2d1ae4(0x1c2)]),_0x4fcf0f=_0x2d753b['getActiveRange']();if(_0x4fcf0f==null)return;const _0x43e8a8=[{'id':_0x2d1ae4(0x2d2),'params':{'unitId':_0x31c5a7[_0x2d1ae4(0x1b0)],'actions':null,'textRanges':[_0x4fcf0f]}}],_0x3ca9b2=this[_0x2d1ae4(0x3a1)][_0x2d1ae4(0x4b8)](_0x31c5a7,_0x43e8a8);if(!_0x56cbe4[_0x2d1ae4(0x180)](_0x3ca9b2))throw _0x3ca9b2[_0x2d1ae4(0x476)];const _0x153b06=_0x3ca9b2[_0x2d1ae4(0x275)][0x0][_0x2d1ae4(0x3c2)][_0x2d1ae4(0x138)];Array['isArray'](_0x153b06)&&_0x153b06[_0x2d1ae4(0x3d6)]&&_0x2d753b[_0x2d1ae4(0x14e)](_0x153b06[0x0]);}};_0x1e6c69=_0x5e6cda([_0x2d90e0(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2d90e0(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x2d90e0(0x2,_0x46e2e3[_0x3bc2c8(0x37e)])],_0x1e6c69);var _0xabb556=Object[_0x3bc2c8(0x361)],_0x3026f1=Object[_0x3bc2c8(0x48b)],_0x4476ed=(_0x1c324d,_0x1c46bd,_0x44fda6,_0x29cfc0)=>{for(var _0x4cf889=_0x29cfc0>0x1?void 0x0:_0x29cfc0?_0x3026f1(_0x1c46bd,_0x44fda6):_0x1c46bd,_0x25506f=_0x1c324d['length']-0x1,_0x37336;_0x25506f>=0x0;_0x25506f--)(_0x37336=_0x1c324d[_0x25506f])&&(_0x4cf889=(_0x29cfc0?_0x37336(_0x1c46bd,_0x44fda6,_0x4cf889):_0x37336(_0x4cf889))||_0x4cf889);return _0x29cfc0&&_0x4cf889&&_0xabb556(_0x1c46bd,_0x44fda6,_0x4cf889),_0x4cf889;},_0x210132=(_0x17be3e,_0xa292cf)=>(_0x413779,_0x2ca103)=>_0xa292cf(_0x413779,_0x2ca103,_0x17be3e);_0x48e51e[_0x3bc2c8(0x47d)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x4eadf8,_0x27bf38,_0x52f085,_0x4c6180,_0x29615a){const _0x45676d=_0x3bc2c8;super(),_0x314dc6(this,_0x45676d(0x125),new Map()),_0x314dc6(this,_0x45676d(0x2ba),new Map()),_0x314dc6(this,'_disabled',!0x1),(this[_0x45676d(0x4cb)]=_0x4eadf8,this[_0x45676d(0x163)]=_0x27bf38,this['_beforeCloseService']=_0x52f085,this[_0x45676d(0x24c)]=_0x4c6180,this[_0x45676d(0x49a)]=_0x29615a,this[_0x45676d(0x1bf)]());}[_0x3bc2c8(0x397)](){const _0x4f3741=_0x3bc2c8;this[_0x4f3741(0x324)]=!0x0;}[_0x3bc2c8(0x412)](){this['_disabled']=!0x1;}[_0x3bc2c8(0x314)](){const _0xf8fbf4=_0x3bc2c8;this[_0xf8fbf4(0x4c1)]()[_0xf8fbf4(0x3a3)](()=>super['dispose']());}async['loadOfflineData'](_0x1cfd12){const _0x83239d=_0x3bc2c8;return this[_0x83239d(0x324)]?null:this['_localStorageService'][_0x83239d(0x2f1)](_0x261829(_0x1cfd12));}async[_0x3bc2c8(0x367)](_0x35dd68,_0x508c16){const _0x5227ad=_0x3bc2c8;return!!this[_0x5227ad(0x163)][_0x5227ad(0x3bc)](_0x35dd68,_0x508c16);}[_0x3bc2c8(0x4ee)](_0x40fe5e,_0x526eac,_0x4b817f,_0x432742){const _0x3ef44d=_0x3bc2c8,_0x26651d=this[_0x3ef44d(0x49a)][_0x3ef44d(0x22d)](_0x40fe5e);this[_0x3ef44d(0x125)][_0x3ef44d(0x10d)](_0x40fe5e,{'unitID':_0x40fe5e,'type':_0x526eac,'awaitingChangeset':_0x4b817f,'mutations':_0x432742,'rev':_0x26651d}),this['_saveTaskMap']['has'](_0x40fe5e)||this[_0x3ef44d(0x4f3)](_0x40fe5e);}['_scheduleSaving'](_0x3cad75){const _0x170741=_0x3bc2c8,_0x5a556d=this[_0x170741(0xeb)]();_0x5a556d===0x0?this[_0x170741(0x2fe)](_0x3cad75):this['_saveTaskMap'][_0x170741(0x10d)](_0x3cad75,setTimeout(()=>this[_0x170741(0x2fe)](_0x3cad75),_0x5a556d));}[_0x3bc2c8(0xeb)](){const _0x2c9b4e=_0x3bc2c8;var _0x15bf01;return(_0x15bf01=this[_0x2c9b4e(0x4cb)][_0x2c9b4e(0x1db)](_0x23080c))!=null?_0x15bf01:0x3e8;}[_0x3bc2c8(0x2fe)](_0xad9003){const _0x56a7d7=_0x3bc2c8,_0x3f05cb=this[_0x56a7d7(0x2ba)]['get'](_0xad9003);return _0x3f05cb!==void 0x0&&window['clearTimeout'](_0x3f05cb),this['_localStorageService']['setItem'](_0x261829(_0xad9003),this['_cachedData'][_0x56a7d7(0x451)](_0xad9003))['then'](()=>this[_0x56a7d7(0x2ba)][_0x56a7d7(0x344)](_0xad9003));}async['exhaustSavingTask'](){const _0x4fdf54=_0x3bc2c8,_0x270b28=[];this[_0x4fdf54(0x2ba)][_0x4fdf54(0x255)]((_0xe425c8,_0x3ad9c1)=>{const _0x75eced=_0x4fdf54;window['clearTimeout'](_0xe425c8),_0x270b28[_0x75eced(0x13d)](this[_0x75eced(0x2fe)](_0x3ad9c1)[_0x75eced(0x3a3)](()=>{const _0x7fc659=_0x75eced;this[_0x7fc659(0x2ba)][_0x7fc659(0x344)](_0x3ad9c1);}));}),await Promise[_0x4fdf54(0x21a)](_0x270b28);}[_0x3bc2c8(0x1bf)](){const _0x128679=_0x3bc2c8;this[_0x128679(0x131)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x263b2e=_0x128679;if(this[_0x263b2e(0x2ba)]['size'])return this['_localeService']['t'](_0x263b2e(0x42c));}));}},_0x48e51e[_0x3bc2c8(0x47d)]=_0x4476ed([_0x210132(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x210132(0x1,_0x5b7cfd[_0x3bc2c8(0x4d1)]),_0x210132(0x2,_0x2ce95d['IBeforeCloseService']),_0x210132(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x210132(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)]))],_0x48e51e[_0x3bc2c8(0x47d)]);function _0x261829(_0x55ad0a){return'unit-cache-'+_0x55ad0a;}var _0x519a14=Object[_0x3bc2c8(0x361)],_0x53f843=Object[_0x3bc2c8(0x48b)],_0x1b9d69=(_0x28cbc1,_0x18948a,_0x27196f,_0x27b2a9)=>{const _0x25449c=_0x3bc2c8;for(var _0x67ab64=_0x27b2a9>0x1?void 0x0:_0x27b2a9?_0x53f843(_0x18948a,_0x27196f):_0x18948a,_0x2a8e7f=_0x28cbc1[_0x25449c(0x3d6)]-0x1,_0x333d83;_0x2a8e7f>=0x0;_0x2a8e7f--)(_0x333d83=_0x28cbc1[_0x2a8e7f])&&(_0x67ab64=(_0x27b2a9?_0x333d83(_0x18948a,_0x27196f,_0x67ab64):_0x333d83(_0x67ab64))||_0x67ab64);return _0x27b2a9&&_0x67ab64&&_0x519a14(_0x18948a,_0x27196f,_0x67ab64),_0x67ab64;},_0x591682=(_0x4fdf01,_0x46d8af)=>(_0x2ce797,_0x378aa9)=>_0x46d8af(_0x2ce797,_0x378aa9,_0x4fdf01);function _0x5eafe9(_0x47ca35){const _0x4319cd=_0x3bc2c8,{unitID:_0xd877a8,mutations:_0x2d1552}=_0x47ca35;return{'unitId':_0xd877a8,'subUnitId':_0x2d1552[0x0][_0x4319cd(0x3c2)][_0x4319cd(0x2e3)]};}let _0x2cedfe=class{constructor(_0x51d68f,_0x5f56b4,_0x38013d){const _0xc07845=_0x3bc2c8;this[_0xc07845(0x30f)]=_0x51d68f,this['_transformService']=_0x5f56b4,this[_0xc07845(0x2cd)]=_0x38013d;}[_0x3bc2c8(0x109)](_0x33ebcd){const _0x3b1a0d=_0x3bc2c8;var _0x477709,_0x2af312,_0xf332cb,_0x11f23a;const _0x519862=this[_0x3b1a0d(0x30f)][_0x3b1a0d(0x451)](_0xa62622['SheetsSelectionsService']),{unitId:_0x4880e2,subUnitId:_0xb76232}=_0x5eafe9(_0x33ebcd),_0x33081d=_0x519862['getWorkbookSelections'](_0x4880e2)[_0x3b1a0d(0x222)](),_0x5a5983=(_0x2af312=(_0x477709=this[_0x3b1a0d(0x2cd)][_0x3b1a0d(0x467)](_0x4880e2))==null?void 0x0:_0x477709[_0x3b1a0d(0x240)]())==null?void 0x0:_0x2af312[_0x3b1a0d(0x43d)]();if(_0x33081d[_0x3b1a0d(0x3d6)]===0x0||!_0x4880e2||!_0xb76232)return;const _0x3709d2=[{'id':_0xa62622[_0x3b1a0d(0x32e)]['id'],'params':{'unitId':_0x4880e2,'subUnitId':_0x5a5983,'selections':_0x5b7cfd[_0x3b1a0d(0x2f6)][_0x3b1a0d(0x29b)](_0x33081d)}}],_0x1082a4=this[_0x3b1a0d(0x3a1)][_0x3b1a0d(0x4b8)](_0x33ebcd,_0x3709d2);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x1082a4))throw _0x1082a4[_0x3b1a0d(0x476)];const _0x154bf7=(_0x11f23a=(_0xf332cb=_0x1082a4[_0x3b1a0d(0x275)][0x0])==null?void 0x0:_0xf332cb[_0x3b1a0d(0x3c2)])==null?void 0x0:_0x11f23a[_0x3b1a0d(0x4ff)];Array[_0x3b1a0d(0x1cc)](_0x154bf7)&&_0x154bf7[_0x3b1a0d(0x3d6)]&&this[_0x3b1a0d(0x30f)][_0x3b1a0d(0x451)](_0x5b7cfd[_0x3b1a0d(0x27d)])[_0x3b1a0d(0x2a7)](_0xa62622[_0x3b1a0d(0x32e)]['id'],{'unitId':_0x4880e2,'subUnitId':_0x5a5983,'selections':_0x154bf7});}};_0x2cedfe=_0x1b9d69([_0x591682(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x591682(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x591682(0x2,_0x5b7cfd[_0x3bc2c8(0x29e)])],_0x2cedfe);const _0x5e9761=_0x5b7cfd[_0x3bc2c8(0x20d)]('univer-pro.collaboration-client.single-active-unit-service');var _0x695cf2=(_0x3d3f52=>(_0x3d3f52[_0x3d3f52['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3d3f52[_0x3d3f52[_0x3bc2c8(0x3de)]=0x1]=_0x3bc2c8(0x3de),_0x3d3f52))(_0x695cf2||{});const _0x2ff85a=0x7530,_0x5f0b59=_0x3bc2c8(0x4a7);class _0x384617 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0x1b8363=_0x3bc2c8;super(),_0x314dc6(this,'_id',_0x5b7cfd[_0x1b8363(0x2f6)][_0x1b8363(0x1d9)]()),_0x314dc6(this,_0x1b8363(0x34f),new Set()),_0x314dc6(this,_0x1b8363(0x34c),new Map()),_0x314dc6(this,_0x1b8363(0x290),null),_0x314dc6(this,'_clearOtherTimers',new Map()),_0x314dc6(this,_0x1b8363(0x15d),new Map()),this['_init']();}[_0x3bc2c8(0x314)](){const _0x3d518f=_0x3bc2c8;super[_0x3d518f(0x314)](),this[_0x3d518f(0x4dc)]['forEach']((_0xac10a,_0x2b10cc)=>this[_0x3d518f(0x23e)](_0x2b10cc)),this[_0x3d518f(0x290)]&&window[_0x3d518f(0x40c)](this[_0x3d518f(0x290)]);}[_0x3bc2c8(0x112)](_0x4f4147){const _0x3b2c73=_0x3bc2c8;return this[_0x3b2c73(0x169)](_0x4f4147)[_0x3b2c73(0x198)](_0x266483['distinctUntilChanged']());}[_0x3bc2c8(0x179)](_0x11c06d){const _0x57a5a7=_0x3bc2c8;this['_selfUnitIDs'][_0x57a5a7(0x127)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x57a5a7(0x225)](_0x11c06d),this[_0x57a5a7(0x1ca)]({'type':0x0,'memberID':this[_0x57a5a7(0x28e)],'unitIDs':[_0x11c06d],'isForwarded':!0x1});}['disposeUnit'](_0x379195){const _0x888ea0=_0x3bc2c8;this[_0x888ea0(0x34f)][_0x888ea0(0x344)](_0x379195),this['_selfUnitIDs'][_0x888ea0(0x127)]===0x0&&this[_0x888ea0(0x290)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x3018bc=_0x3bc2c8;this[_0x3018bc(0x131)](_0x5b7cfd[_0x3018bc(0x3d9)](_0x266483[_0x3018bc(0x408)](window,'storage')[_0x3018bc(0x2f5)](_0x1f4e3e=>{const _0xbb27ce=_0x3018bc;if(_0x1f4e3e[_0xbb27ce(0x438)]!==_0x5f0b59||!_0x1f4e3e[_0xbb27ce(0x44b)])return;const _0x2c9bb3=JSON[_0xbb27ce(0x4ec)](_0x1f4e3e['newValue']);this['_handleEvent'](_0x2c9bb3);}))),window[_0x3018bc(0x435)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x3018bc(0x28e)],'unitIDs':Array[_0x3018bc(0x1e3)](this[_0x3018bc(0x34f)])}));}[_0x3bc2c8(0x3b4)](_0x44c83b){const _0x1aadd4=_0x3bc2c8;switch(_0x44c83b['type']){case 0x0:this[_0x1aadd4(0x18c)](_0x44c83b);break;case 0x1:this[_0x1aadd4(0x10f)](_0x44c83b);break;case 0x2:this['_handleHeartbeatEvent'](_0x44c83b);break;}}[_0x3bc2c8(0x18c)](_0x55828a){const _0x1b0d7f=_0x3bc2c8,{unitIDs:_0x3d2640,memberID:_0x4c3cbb,isForwarded:_0x5e176b}=_0x55828a;_0x3d2640[_0x1b0d7f(0x255)](_0x531a15=>{const _0x548529=_0x1b0d7f;if(!_0x5e176b&&this[_0x548529(0x34c)][_0x548529(0x232)](_0x531a15)&&this['_ensureSubject'](_0x531a15)[_0x548529(0xe4)](0x1),!this[_0x548529(0x34c)]['has'](_0x531a15)||!this[_0x548529(0x34c)][_0x548529(0x451)](_0x531a15)['has'](_0x4c3cbb)){const _0x560ad4=this[_0x548529(0x34c)]['get'](_0x531a15)||new Set();_0x560ad4[_0x548529(0x225)](_0x4c3cbb),this[_0x548529(0x34c)][_0x548529(0x10d)](_0x531a15,_0x560ad4),this[_0x548529(0x383)](_0x4c3cbb);}}),_0x5e176b||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1b0d7f(0x34f)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x18119c){const _0x12a0c5=_0x3bc2c8;this[_0x12a0c5(0x23e)](_0x18119c);const _0x3e4ec7=window[_0x12a0c5(0x19f)](()=>{this['_unitOnClients']['forEach'](_0x303923=>{const _0x5c6221=_0x4f28;_0x303923[_0x5c6221(0x344)](_0x18119c);});},_0x2ff85a*0x2);this['_clearOtherTimers'][_0x12a0c5(0x10d)](_0x18119c,_0x3e4ec7);}[_0x3bc2c8(0x23e)](_0x5ecec9){const _0x592b9d=_0x3bc2c8;if(this[_0x592b9d(0x4dc)][_0x592b9d(0x232)](_0x5ecec9)){const _0x34c26c=this[_0x592b9d(0x4dc)][_0x592b9d(0x451)](_0x5ecec9);_0x34c26c&&window['clearTimeout'](_0x34c26c),this[_0x592b9d(0x4dc)]['set'](_0x5ecec9,null);}}[_0x3bc2c8(0x10f)](_0x3595eb){const _0x3d2d57=_0x3bc2c8,{memberID:_0x22d169,unitIDs:_0x3670ad}=_0x3595eb;_0x3670ad['forEach'](_0x167345=>{const _0x6b2ffd=_0x4f28;var _0x28f9a3;const _0x5c9ba2=this[_0x6b2ffd(0x34c)][_0x6b2ffd(0x451)](_0x167345);_0x5c9ba2&&(_0x5c9ba2[_0x6b2ffd(0x344)](_0x22d169),(_0x28f9a3=this[_0x6b2ffd(0x169)](_0x167345))==null||_0x28f9a3[_0x6b2ffd(0xe4)](_0x5c9ba2[_0x6b2ffd(0x127)]===0x0?0x0:0x1));}),this[_0x3d2d57(0x23e)](_0x22d169);}[_0x3bc2c8(0x144)](_0x3f9189){const _0x3dc727=_0x3bc2c8;this[_0x3dc727(0x383)](_0x3f9189[_0x3dc727(0x48f)]);}[_0x3bc2c8(0x1ca)](_0x105a7f){const _0x722b35=_0x3bc2c8;localStorage[_0x722b35(0x3bc)](_0x5f0b59,JSON['stringify'](_0x105a7f));}[_0x3bc2c8(0x11f)](){const _0x5bba74=_0x3bc2c8;this[_0x5bba74(0x290)]=window['setInterval'](()=>{const _0x53d2cb=_0x5bba74;this[_0x53d2cb(0x1ca)]({'type':0x2,'memberID':this[_0x53d2cb(0x28e)]});},_0x2ff85a);}[_0x3bc2c8(0x169)](_0x27a358){const _0x53d96e=_0x3bc2c8;return this[_0x53d96e(0x15d)][_0x53d96e(0x232)](_0x27a358)||this[_0x53d96e(0x15d)][_0x53d96e(0x10d)](_0x27a358,new _0x266483['BehaviorSubject'](0x0)),this['_unitStatus']['get'](_0x27a358);}}function _0x57f458(_0x54c21b){let _0x218d1b='';for(const _0x39835b of _0x54c21b){const {startOffset:_0x47d93f,endOffset:_0x2c060c,isActive:_0x303554}=_0x39835b;_0x218d1b['length']&&(_0x218d1b+=','),_0x218d1b+=_0x47d93f+':'+_0x2c060c+':'+(_0x303554?'1':'0');}return _0x218d1b;}function _0x39789b(_0x11fe73){const _0x2b642b=_0x3bc2c8,_0x40bf89=_0x11fe73[_0x2b642b(0x1f6)](','),_0x1e182f=[];for(const _0x3a45ec of _0x40bf89){const [_0x1d494c,_0x21b082,_0x3d050c]=_0x3a45ec['split'](':');_0x1e182f[_0x2b642b(0x13d)]({'startOffset':Number(_0x1d494c),'endOffset':Number(_0x21b082),'collapsed':_0x1d494c===_0x21b082,'isActive':_0x3d050c==='1'});}return _0x1e182f['some'](_0x52b846=>_0x52b846[_0x2b642b(0x2aa)])||(_0x1e182f[0x0]['isActive']=!0x0),_0x1e182f;}class _0x56b650 extends _0x5b7cfd['RxDisposable']{constructor(){const _0x5cf14c=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0x5cf14c(0x380),new _0x266483[(_0x5cf14c(0x43e))](null)),_0x314dc6(this,_0x5cf14c(0x1b9),this[_0x5cf14c(0x380)][_0x5cf14c(0x4eb)]());}[_0x3bc2c8(0x195)](_0x29d1f9){const {unitID:_0x47bbea,memberID:_0x306b56,textRanges:_0x130a82}=_0x29d1f9,_0xdaef17=_0x57f458(_0x130a82),_0x5e305a={'unitID':_0x47bbea,'memberID':_0x306b56,'selection':_0xdaef17};this['_collabCursorState$']['next'](_0x5e305a);}}var _0x926cc6=Object[_0x3bc2c8(0x361)],_0x3c39c9=Object[_0x3bc2c8(0x48b)],_0x14fbbb=(_0xc9eb79,_0x1825b5,_0x4c167a,_0x19d5a3)=>{for(var _0x5a64db=_0x19d5a3>0x1?void 0x0:_0x19d5a3?_0x3c39c9(_0x1825b5,_0x4c167a):_0x1825b5,_0x5f48cf=_0xc9eb79['length']-0x1,_0x4da180;_0x5f48cf>=0x0;_0x5f48cf--)(_0x4da180=_0xc9eb79[_0x5f48cf])&&(_0x5a64db=(_0x19d5a3?_0x4da180(_0x1825b5,_0x4c167a,_0x5a64db):_0x4da180(_0x5a64db))||_0x5a64db);return _0x19d5a3&&_0x5a64db&&_0x926cc6(_0x1825b5,_0x4c167a,_0x5a64db),_0x5a64db;},_0x527238=(_0xa17694,_0x2e12a7)=>(_0x5b008c,_0x1b5b5b)=>_0x2e12a7(_0x5b008c,_0x1b5b5b,_0xa17694);let _0x12ef35=class{constructor(_0x12c520,_0x40e9ba){const _0x2281c4=_0x3bc2c8;this[_0x2281c4(0x30f)]=_0x12c520,this[_0x2281c4(0x3a1)]=_0x40e9ba;}['transformSelections'](_0x3a4a99){const _0x425454=_0x3bc2c8;var _0x3c81b4;const _0x42182b=this['_injector']['get'](_0x3e2148[_0x425454(0x2c1)]),_0x348b63=(_0x3c81b4=_0x42182b['getDocRanges']())!=null?_0x3c81b4:[];if(_0x348b63['length']===0x0)return;const _0x34e866=[{'id':_0x425454(0x2d2),'params':{'unitId':_0x3a4a99[_0x425454(0x1b0)],'actions':null,'textRanges':_0x348b63}}],_0x1ce4a3=this[_0x425454(0x3a1)]['transformMutationsWithChangeset'](_0x3a4a99,_0x34e866);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x1ce4a3))throw _0x1ce4a3[_0x425454(0x476)];const _0x4285f4=_0x1ce4a3['m2Prime'][0x0][_0x425454(0x3c2)][_0x425454(0x138)];Array[_0x425454(0x1cc)](_0x4285f4)&&_0x4285f4[_0x425454(0x3d6)]&&_0x42182b[_0x425454(0x464)](_0x4285f4,!0x1);}};_0x12ef35=_0x14fbbb([_0x527238(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x527238(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x12ef35);const _0x2533e1=new Set([_0xa62622[_0x3bc2c8(0x253)]['id']]);function _0x23aaad(_0x5c6ed7,_0x1c1d36,_0x18af57,_0x659c13,_0x476de7){const _0x386e65=_0x3bc2c8;var _0x194661,_0x2544f1,_0xb514e,_0x37436b;const _0x2485da=[];for(const _0xfe7d57 of _0x5c6ed7)if(_0x2533e1[_0x386e65(0x232)](_0xfe7d57['id'])){if(_0x2485da[_0x386e65(0x3d6)]>0x0)break;_0x2485da['push'](_0xfe7d57);break;}else _0x2485da[_0x386e65(0x13d)](_0xfe7d57);const _0x4ab587=(_0x2544f1=(_0x194661=_0x476de7[_0x386e65(0x105)]())==null?void 0x0:_0x194661[_0x386e65(0x13e)])!=null?_0x2544f1:_0x386e65(0x388),_0x51b4e2=(_0x37436b=(_0xb514e=_0x476de7[_0x386e65(0x105)]())==null?void 0x0:_0xb514e[_0x386e65(0x48f)])!=null?_0x37436b:_0x386e65(0x388);return{'changeset':{'unitID':_0x1c1d36,'type':_0x56cbe4[_0x386e65(0x24a)](_0x18af57[_0x386e65(0x28c)](_0x1c1d36)),'baseRev':_0x659c13[_0x386e65(0x22d)](_0x1c1d36),'revision':0x0,'userID':_0x4ab587,'memberID':_0x51b4e2,'mutations':_0x2485da},'pendingMutations':_0x5c6ed7[_0x386e65(0xef)](_0x2485da[_0x386e65(0x3d6)])};}function _0x581ccf(_0x4dbf9a,_0xb10010,_0x5310ad,_0x47ae78,_0x5bb3d3){const _0x41eb76=_0x3bc2c8;var _0x1fde3a,_0xdd26d6,_0x561dcd,_0x482c07;const _0x5319f1=[_0x4dbf9a[_0x41eb76(0x4f1)]((_0x45c534,_0x1a762f)=>{const _0x32f2f0=_0x41eb76;var _0x8d6ec6;const {id:_0x1d8173}=_0x45c534,{id:_0x294d01,type:_0x199c78}=_0x1a762f,_0x294dc4=(_0x8d6ec6=_0x45c534['params'])!=null?_0x8d6ec6:{'actions':null},_0x50d7c3=_0x1a762f[_0x32f2f0(0x3c2)];if(_0x1d8173&&_0x1d8173!==_0x294d01)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1d8173+_0x32f2f0(0x1a7)+_0x294d01+'.');return{..._0x45c534,'id':_0x294d01,'type':_0x199c78,'params':{'unitId':_0x50d7c3[_0x32f2f0(0x373)],'textRanges':_0x50d7c3[_0x32f2f0(0x138)],'actions':_0x5b7cfd[_0x32f2f0(0x46c)][_0x32f2f0(0x14d)](_0x294dc4[_0x32f2f0(0x2fd)],_0x50d7c3[_0x32f2f0(0x2fd)])}};},{})],_0x24142e=(_0xdd26d6=(_0x1fde3a=_0x5bb3d3[_0x41eb76(0x105)]())==null?void 0x0:_0x1fde3a[_0x41eb76(0x13e)])!=null?_0xdd26d6:_0x41eb76(0x388),_0x5162a8=(_0x482c07=(_0x561dcd=_0x5bb3d3[_0x41eb76(0x105)]())==null?void 0x0:_0x561dcd[_0x41eb76(0x48f)])!=null?_0x482c07:_0x41eb76(0x388);return{'changeset':{'unitID':_0xb10010,'type':_0x56cbe4[_0x41eb76(0x24a)](_0x5310ad[_0x41eb76(0x28c)](_0xb10010)),'baseRev':_0x47ae78[_0x41eb76(0x22d)](_0xb10010),'revision':0x0,'userID':_0x24142e,'memberID':_0x5162a8,'mutations':_0x5319f1},'pendingMutations':[]};}const _0x5844c5={'id':_0xa62622[_0x3bc2c8(0x196)]['id'],'type':_0x5b7cfd['CommandType'][_0x3bc2c8(0x374)],'params':{}};var _0x2ccec7=Object[_0x3bc2c8(0x361)],_0x1b82a6=Object['getOwnPropertyDescriptor'],_0x107b64=(_0x9cd2b,_0x2317c4,_0x38a486,_0xd104d)=>{const _0x738a90=_0x3bc2c8;for(var _0x2b8bea=_0xd104d>0x1?void 0x0:_0xd104d?_0x1b82a6(_0x2317c4,_0x38a486):_0x2317c4,_0x1c8134=_0x9cd2b[_0x738a90(0x3d6)]-0x1,_0x2f6e87;_0x1c8134>=0x0;_0x1c8134--)(_0x2f6e87=_0x9cd2b[_0x1c8134])&&(_0x2b8bea=(_0xd104d?_0x2f6e87(_0x2317c4,_0x38a486,_0x2b8bea):_0x2f6e87(_0x2b8bea))||_0x2b8bea);return _0xd104d&&_0x2b8bea&&_0x2ccec7(_0x2317c4,_0x38a486,_0x2b8bea),_0x2b8bea;},_0x45b06d=(_0x41e99d,_0x43bc76)=>(_0x1c98aa,_0x48f161)=>_0x43bc76(_0x1c98aa,_0x48f161,_0x41e99d),_0x5926c5=(_0x4ee04d=>(_0x4ee04d[_0x3bc2c8(0x352)]='not_collab',_0x4ee04d[_0x3bc2c8(0xfd)]='synced',_0x4ee04d[_0x3bc2c8(0x263)]='pending',_0x4ee04d[_0x3bc2c8(0x4b9)]=_0x3bc2c8(0x265),_0x4ee04d[_0x3bc2c8(0x268)]=_0x3bc2c8(0x41a),_0x4ee04d[_0x3bc2c8(0x104)]=_0x3bc2c8(0x4a1),_0x4ee04d[_0x3bc2c8(0x35d)]=_0x3bc2c8(0x209),_0x4ee04d[_0x3bc2c8(0x3b0)]=_0x3bc2c8(0x392),_0x4ee04d))(_0x5926c5||{});class _0xa8a4b9{constructor(_0x107178,_0x4959cd,_0x1f7f91,_0x33b089,_0x255e1d,_0x40cf48,_0x470c01,_0x22209c,_0x301d64){const _0x5d1b03=_0x3bc2c8;_0x314dc6(this,_0x5d1b03(0x4e1),null),_0x314dc6(this,'_pendingMutations',[]),(this[_0x5d1b03(0x1b0)]=_0x107178,this[_0x5d1b03(0x413)]=_0x4959cd,this[_0x5d1b03(0x1f7)]=_0x255e1d,this[_0x5d1b03(0x2c6)]=_0x40cf48,this[_0x5d1b03(0x310)]=_0x470c01,this[_0x5d1b03(0x49a)]=_0x22209c,this['_localCacheService']=_0x301d64,this['_awaitingChangeset']=_0x1f7f91,this[_0x5d1b03(0x3e2)]=_0x33b089);}['_checkMissing'](_0x513164){const _0x1ff405=_0x3bc2c8,_0x1d495b=this[_0x1ff405(0x49a)][_0x1ff405(0x22d)](this[_0x1ff405(0x1b0)]);return _0x513164[_0x1ff405(0x1b1)]>_0x1d495b+0x1?(this[_0x1ff405(0x1f7)][_0x1ff405(0x514)]({'from':_0x1d495b,'to':_0x513164[_0x1ff405(0x1b1)]-0x1}),!0x0):!0x1;}[_0x3bc2c8(0x199)](_0x414360){const _0x1a190e=_0x3bc2c8;this[_0x1a190e(0x310)][_0x1a190e(0x1c6)](this[_0x1a190e(0x1b0)],_0x414360);}['_transformSelections'](_0x27927b){const _0x4760f9=_0x3bc2c8;var _0x1f4121,_0x201739;(_0x201739=(_0x1f4121=this[_0x4760f9(0x1f7)])[_0x4760f9(0x4b2)])==null||_0x201739[_0x4760f9(0x126)](_0x1f4121,_0x27927b);}[_0x3bc2c8(0x461)](_0xbeb817){const _0x27ce0b=_0x3bc2c8;var _0x55fb08,_0x2c23ff;return(_0x2c23ff=(_0x55fb08=this[_0x27ce0b(0x1f7)])[_0x27ce0b(0x1a9)])==null?void 0x0:_0x2c23ff['call'](_0x55fb08,_0xbeb817);}[_0x3bc2c8(0x3b2)](_0x5a637e){const _0xe1bb4a=_0x3bc2c8;var _0x14d300,_0x4508df,_0x3b8c81;return(_0x3b8c81=(_0x4508df=(_0x14d300=this[_0xe1bb4a(0x1f7)])[_0xe1bb4a(0x258)])==null?void 0x0:_0x4508df[_0xe1bb4a(0x126)](_0x14d300,_0x5a637e))!=null?_0x3b8c81:_0x5a637e;}[_0x3bc2c8(0x44a)](_0x9e0a33){const _0x51a77e=_0x3bc2c8;var _0x5360e0,_0xcebb28;if(this[_0x51a77e(0x413)]===_0x249560[_0x51a77e(0x3a6)]){const {unitID:_0x2014a6,mutations:_0x370dcd,memberID:_0x306380}=_0x9e0a33,_0x4d94e9=_0x370dcd[0x0][_0x51a77e(0x3c2)]['textRanges'];Array['isArray'](_0x4d94e9)&&_0x4d94e9[_0x51a77e(0x3d6)]>0x0&&((_0xcebb28=(_0x5360e0=this[_0x51a77e(0x1f7)])[_0x51a77e(0x2e0)])==null||_0xcebb28['call'](_0x5360e0,{'unitID':_0x2014a6,'memberID':_0x306380,'textRanges':_0x4d94e9}));}}[_0x3bc2c8(0x100)](){const _0x137635=_0x3bc2c8;this['_localCacheService'][_0x137635(0x4ee)](this[_0x137635(0x1b0)],this['type'],this[_0x137635(0x4e1)],this[_0x137635(0x3e2)]);}['_getCurrentRevision'](){const _0x33ffe7=_0x3bc2c8;return this[_0x33ffe7(0x49a)][_0x33ffe7(0x22d)](this[_0x33ffe7(0x1b0)]);}[_0x3bc2c8(0x393)](){const _0x373fcc=_0x3bc2c8;this[_0x373fcc(0x49a)][_0x373fcc(0x157)](this[_0x373fcc(0x1b0)]);}[_0x3bc2c8(0x350)](_0xa3dc7f){const _0x67958a=_0x3bc2c8;var _0x38b6fa;const _0x594c24=this['_transformRemoteChangesetByIMECache'](_0xa3dc7f),_0x31d86b=_0x5b7cfd[_0x67958a(0x16b)](_0x594c24[_0x67958a(0x1fc)],this[_0x67958a(0x2c6)],{'fromCollab':!0x0});if(!_0x31d86b['result'])throw _0x31d86b[_0x67958a(0x476)]instanceof Error?_0x31d86b['error']:new Error((_0x38b6fa=_0x31d86b[_0x67958a(0x476)])!=null?_0x38b6fa:_0x67958a(0x216));this[_0x67958a(0x461)](_0x594c24),this['_transformUndoredo'](_0xa3dc7f),this[_0x67958a(0x421)](_0x594c24),this[_0x67958a(0x44a)](_0x594c24),this[_0x67958a(0x393)]();}}let _0x5124ae=class extends _0xa8a4b9{constructor(_0x2cf784,_0xb7b634,_0x479646,_0x4babc5,_0x5581d3,_0x3e834a,_0x9da254,_0x5aa283,_0x3c4caf,_0x58023c){const _0x32f659=_0x3bc2c8;super(_0x2cf784,_0xb7b634,null,[],_0x479646,_0x5aa283,_0x9da254,_0x4babc5,_0x5581d3),_0x314dc6(this,_0x32f659(0x4ad),_0x32f659(0x11e)),(this['_injector']=_0x3e834a,this[_0x32f659(0x4e7)]=_0x3c4caf,this['_transformService']=_0x58023c);}[_0x3bc2c8(0x295)](_0xf9323d){const _0x45492b=_0x3bc2c8,_0x413863=this[_0x45492b(0x30f)][_0x45492b(0x1a3)](_0x5f4482,this[_0x45492b(0x1b0)],this[_0x45492b(0x413)],[_0xf9323d],this[_0x45492b(0x1f7)]);return _0x413863[_0x45492b(0x364)](),_0x413863[_0x45492b(0x100)](),_0x413863;}[_0x3bc2c8(0x384)](_0x1a2dfd){const _0x5a52ad=_0x3bc2c8;if(this['_checkMissing'](_0x1a2dfd))return this[_0x5a52ad(0x30f)][_0x5a52ad(0x1a3)](_0x75f119,this[_0x5a52ad(0x1b0)],this[_0x5a52ad(0x413)],null,[],null,[_0x1a2dfd],this[_0x5a52ad(0x1f7)]);try{const _0x138527=this[_0x5a52ad(0x3a1)][_0x5a52ad(0x4b8)](_0x1a2dfd,[_0x5844c5]);if(_0x56cbe4[_0x5a52ad(0x180)](_0x138527)){const {c1Prime:_0x158cc1}=_0x138527;return this[_0x5a52ad(0x350)](_0x158cc1),this;}throw _0x138527[_0x5a52ad(0x476)];}catch(_0x2ece6d){return this[_0x5a52ad(0x4e7)]['error'](_0x2ece6d),this['_onConflict'](!0x1);}}[_0x3bc2c8(0x2be)](_0x2d9bf9){const _0x101b73=_0x3bc2c8;return this[_0x101b73(0x30f)][_0x101b73(0x1a3)](_0x20ac70,this[_0x101b73(0x1b0)],this[_0x101b73(0x413)],null,[],this[_0x101b73(0x1f7)],_0x2d9bf9);}[_0x3bc2c8(0xf5)](){const _0x4b0257=_0x3bc2c8;throw new Error(_0x4b0257(0x137));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x42f11c=_0x3bc2c8;return this[_0x42f11c(0x30f)][_0x42f11c(0x1a3)](_0x8646cf,this['unitID'],this[_0x42f11c(0x413)],null,[],this[_0x42f11c(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}[_0x3bc2c8(0x423)](){const _0x3551ee=_0x3bc2c8;throw new Error(_0x3551ee(0x12f));}['fetchMiss'](){const _0x2c1ffb=_0x3bc2c8,_0x55bbfb=this[_0x2c1ffb(0x49a)][_0x2c1ffb(0x22d)](this[_0x2c1ffb(0x1b0)]);return this[_0x2c1ffb(0x1f7)]['onMissingChangesets']({'from':_0x55bbfb,'to':0x0}),this[_0x2c1ffb(0x30f)][_0x2c1ffb(0x1a3)](_0x75f119,this['unitID'],this[_0x2c1ffb(0x413)],null,[],null,[],this[_0x2c1ffb(0x1f7)]);}};_0x5124ae=_0x107b64([_0x45b06d(0x3,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x5124ae);let _0x5f4482=class extends _0xa8a4b9{constructor(_0x46af10,_0x531f0e,_0x4ffd47,_0x5795fe,_0x427166,_0x2f2892,_0x15d815,_0x309bfb,_0x25670a,_0x4a0b74,_0x334f9f,_0x5b13c6,_0x1c30a9,_0x4bc876){const _0x5d6087=_0x3bc2c8;super(_0x46af10,_0x531f0e,null,_0x4ffd47,_0x5795fe,_0x4a0b74,_0x4bc876,_0x2f2892,_0x15d815),_0x314dc6(this,_0x5d6087(0x4ad),_0x5d6087(0x389)),_0x314dc6(this,_0x5d6087(0x430),null),_0x314dc6(this,_0x5d6087(0x32f),null),(this[_0x5d6087(0x30f)]=_0x427166,this[_0x5d6087(0x159)]=_0x309bfb,this[_0x5d6087(0x4e7)]=_0x25670a,this[_0x5d6087(0x4cb)]=_0x334f9f,this[_0x5d6087(0x3a1)]=_0x5b13c6,this[_0x5d6087(0x10b)]=_0x1c30a9);}[_0x3bc2c8(0x295)](_0x440a67){return this['_pendingMutations']['push'](_0x440a67),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x323a16){const _0xadd395=_0x3bc2c8;if(this[_0xadd395(0x36f)](_0x323a16))return this['_clearScheduledTask'](),this[_0xadd395(0x30f)]['createInstance'](_0x75f119,this[_0xadd395(0x1b0)],this[_0xadd395(0x413)],null,this['_pendingMutations'],null,[_0x323a16],this['_handler']);try{const _0x457f3d=this[_0xadd395(0x3a1)][_0xadd395(0x4b8)](_0x323a16,this[_0xadd395(0x3e2)]);if(_0x56cbe4[_0xadd395(0x180)](_0x457f3d)){const {c1Prime:_0x1581ba,m2Prime:_0x1b46ff}=_0x457f3d;this['_executeRemoteChangeset'](_0x1581ba);const _0x312ad4=this[_0xadd395(0x30f)]['createInstance'](_0x5f4482,this[_0xadd395(0x1b0)],this[_0xadd395(0x413)],_0x1b46ff,this[_0xadd395(0x1f7)]);return this['_clearScheduledTask'](),_0x312ad4[_0xadd395(0x364)](this[_0xadd395(0x430)]?Math[_0xadd395(0x26a)](0x0,new Date()[_0xadd395(0x3f3)]()-this[_0xadd395(0x430)]):this['_getSendChangesetTimeout']()),_0x312ad4;}throw _0x457f3d[_0xadd395(0x476)];}catch(_0x1de043){return this[_0xadd395(0x4e7)]['error'](_0x1de043),this[_0xadd395(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](){const _0x129a5d=_0x3bc2c8;throw new Error(_0x129a5d(0x43b));}[_0x3bc2c8(0x38f)](){const _0x486359=_0x3bc2c8;throw new Error(_0x486359(0x25a));}['toggleOffline'](){const _0x2c7f09=_0x3bc2c8;return this[_0x2c7f09(0x2a8)](),this[_0x2c7f09(0x30f)][_0x2c7f09(0x1a3)](_0x8646cf,this[_0x2c7f09(0x1b0)],this[_0x2c7f09(0x413)],null,this[_0x2c7f09(0x3e2)],this[_0x2c7f09(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}['_schedule'](_0x31792b){const _0x41a8b1=_0x3bc2c8,_0x52aade=_0x31792b!=null?_0x31792b:this[_0x41a8b1(0x4fc)]();this[_0x41a8b1(0x430)]=new Date()[_0x41a8b1(0x3f3)](),this[_0x41a8b1(0x32f)]=window[_0x41a8b1(0x19f)](()=>{const _0x4be336=_0x41a8b1;this[_0x4be336(0x2a8)]();let _0x3983ad=null;switch(this[_0x4be336(0x413)]){case _0x249560[_0x4be336(0x301)]:{_0x3983ad=_0x23aaad(this['_pendingMutations'],this[_0x4be336(0x1b0)],this[_0x4be336(0x10b)],this['_revisionService'],this[_0x4be336(0x159)]);break;}case _0x249560['UNIVER_DOC']:{this[_0x4be336(0x3e2)][_0x4be336(0x201)](_0x2550ee=>_0x2550ee['id']===_0x3e2148[_0x4be336(0x368)]['id'])?_0x3983ad=_0x581ccf(this[_0x4be336(0x3e2)],this['unitID'],this[_0x4be336(0x10b)],this[_0x4be336(0x49a)],this[_0x4be336(0x159)]):_0x3983ad=_0x23aaad(this['_pendingMutations'],this['unitID'],this[_0x4be336(0x10b)],this['_revisionService'],this[_0x4be336(0x159)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4be336(0x413)]+'\x20in\x20_schedule.');}const {changeset:_0x35c3d3,pendingMutations:_0x18b4ae}=_0x3983ad;this[_0x4be336(0x1f7)][_0x4be336(0x3d5)](_0x35c3d3);const _0x2f9502=_0x18b4ae[_0x4be336(0x3d6)]?this['_injector'][_0x4be336(0x1a3)](_0x22cc58,this[_0x4be336(0x1b0)],this['type'],_0x35c3d3,_0x18b4ae,this[_0x4be336(0x1f7)]):this[_0x4be336(0x30f)][_0x4be336(0x1a3)](_0x3cd767,this[_0x4be336(0x1b0)],this[_0x4be336(0x413)],_0x35c3d3,this[_0x4be336(0x1f7)]);_0x2f9502[_0x4be336(0x100)](),this[_0x4be336(0x1f7)][_0x4be336(0x311)](this,_0x2f9502);},_0x52aade);}[_0x3bc2c8(0x4fc)](){const _0x2fb5a6=_0x3bc2c8;var _0x122a7a;const _0xa13b0b=this[_0x2fb5a6(0x4cb)]['getConfig'](_0xa50aed);return(_0x122a7a=_0xa13b0b==null?void 0x0:_0xa13b0b[_0x2fb5a6(0x42b)])!=null?_0x122a7a:0x7d0;}['resend'](){const _0x5f3889=_0x3bc2c8;throw new Error(_0x5f3889(0x4af));}[_0x3bc2c8(0x2a8)](){const _0x1505e9=_0x3bc2c8;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1505e9(0x32f)]),this['_sendingTimer']=null);}['_onConflict'](_0x3467db){const _0x3710d4=_0x3bc2c8;return this[_0x3710d4(0x2a8)](),this[_0x3710d4(0x30f)]['createInstance'](_0x20ac70,this[_0x3710d4(0x1b0)],this[_0x3710d4(0x413)],null,this[_0x3710d4(0x3e2)],this[_0x3710d4(0x1f7)],_0x3467db);}};_0x5f4482=_0x107b64([_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x45b06d(0x7,_0x5b7cfd['Inject'](_0x587d5a)),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x5b7cfd['ICommandService']),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x45b06d(0xb,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xc,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x45b06d(0xd,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x5f4482);let _0x3cd767=class extends _0xa8a4b9{constructor(_0x531107,_0x5a6253,_0x3b2f4e,_0x406d7a,_0x2011ad,_0x190bf6,_0x27a2a3,_0x11a400,_0x10d5f2,_0x59ba25,_0x14266d){const _0x23614f=_0x3bc2c8;super(_0x531107,_0x5a6253,_0x3b2f4e,[],_0x406d7a,_0x11a400,_0x14266d,_0x190bf6,_0x27a2a3),_0x314dc6(this,'status','awaiting'),(this['_injector']=_0x2011ad,this[_0x23614f(0x4e7)]=_0x10d5f2,this[_0x23614f(0x3a1)]=_0x59ba25);}[_0x3bc2c8(0x295)](_0x2ac3ce){const _0xc70673=_0x3bc2c8,_0x145a33=this[_0xc70673(0x30f)]['createInstance'](_0x22cc58,this[_0xc70673(0x1b0)],this['type'],this[_0xc70673(0x4e1)],[_0x2ac3ce],this[_0xc70673(0x1f7)]);return _0x145a33['_updateLocalCache'](),_0x145a33;}[_0x3bc2c8(0x384)](_0xf8e6){const _0x189aaa=_0x3bc2c8;if(this[_0x189aaa(0x36f)](_0xf8e6))return this[_0x189aaa(0x30f)]['createInstance'](_0x75f119,this[_0x189aaa(0x1b0)],this[_0x189aaa(0x413)],this['_awaitingChangeset'],[],null,[_0xf8e6],this[_0x189aaa(0x1f7)]);try{const _0x1a905f=this['_transformService'][_0x189aaa(0x175)]([_0xf8e6],[this[_0x189aaa(0x4e1)]],!0x1);if(_0x56cbe4['isTransformChangesetsSuccess'](_0x1a905f)){const {c1Prime:_0x59a6c1,c2Prime:_0xbd6a85}=_0x1a905f;this[_0x189aaa(0x350)](_0x59a6c1[0x0]),_0xbd6a85[0x0][_0x189aaa(0x143)]=this[_0x189aaa(0x21c)]();const _0x1e5f41=this[_0x189aaa(0x30f)][_0x189aaa(0x1a3)](_0x3cd767,this[_0x189aaa(0x1b0)],this[_0x189aaa(0x413)],_0xbd6a85[0x0],this[_0x189aaa(0x1f7)]);return _0x1e5f41[_0x189aaa(0x100)](),_0x1e5f41;}return this[_0x189aaa(0x2be)](!0x1);}catch(_0x191ed2){return this[_0x189aaa(0x4e7)]['error'](_0x191ed2),this[_0x189aaa(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](_0x1e1d56){const _0x19b2dd=_0x3bc2c8,_0x202927=this[_0x19b2dd(0x49a)]['getCurrentRevOfUnit'](this[_0x19b2dd(0x1b0)]);if(_0x1e1d56['revision']<_0x202927-0x1)return this;if(this['_checkMissing'](_0x1e1d56))return this[_0x19b2dd(0x30f)]['createInstance'](_0x75f119,this[_0x19b2dd(0x1b0)],this[_0x19b2dd(0x413)],null,[],this[_0x19b2dd(0x4e1)],[],this['_handler']);this[_0x19b2dd(0x393)]();const _0x501f1c=this[_0x19b2dd(0x30f)][_0x19b2dd(0x1a3)](_0x5124ae,this[_0x19b2dd(0x1b0)],this[_0x19b2dd(0x413)],this[_0x19b2dd(0x1f7)]);return _0x501f1c[_0x19b2dd(0x100)](),_0x501f1c;}[_0x3bc2c8(0x38f)](_0x4e1176){const _0x2351d7=_0x3bc2c8;return this[_0x2351d7(0x2be)](!!(_0x4e1176!=null&&_0x4e1176[_0x2351d7(0x30a)]));}[_0x3bc2c8(0x495)](){const _0x2a81e2=_0x3bc2c8;return this['_injector']['createInstance'](_0x8646cf,this[_0x2a81e2(0x1b0)],this['type'],this[_0x2a81e2(0x4e1)],[],this[_0x2a81e2(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}['resend'](){const _0x23d279=_0x3bc2c8;this[_0x23d279(0x1f7)][_0x23d279(0x3d5)](this[_0x23d279(0x4e1)]);}[_0x3bc2c8(0x2be)](_0x2f36a9){const _0xbd5355=_0x3bc2c8;return this[_0xbd5355(0x30f)][_0xbd5355(0x1a3)](_0x20ac70,this[_0xbd5355(0x1b0)],this[_0xbd5355(0x413)],this[_0xbd5355(0x4e1)],[],this[_0xbd5355(0x1f7)],_0x2f36a9);}};_0x3cd767=_0x107b64([_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x45b06d(0x5,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xa,_0x5b7cfd['IUndoRedoService'])],_0x3cd767);let _0x22cc58=class extends _0xa8a4b9{constructor(_0x59bf00,_0x1484f5,_0x92683b,_0x199bd8,_0xd01006,_0x39a265,_0x215c2b,_0x17d48f,_0x944381,_0x9190f0,_0x550378,_0x1e33d0){const _0x5ba40c=_0x3bc2c8;super(_0x59bf00,_0x1484f5,_0x92683b,_0x199bd8,_0xd01006,_0x944381,_0x1e33d0,_0x215c2b,_0x17d48f),_0x314dc6(this,_0x5ba40c(0x4ad),_0x5ba40c(0x41a)),(this[_0x5ba40c(0x30f)]=_0x39a265,this['_logService']=_0x9190f0,this['_transformService']=_0x550378);}[_0x3bc2c8(0x295)](_0x24e649){const _0x813a6f=_0x3bc2c8;return this[_0x813a6f(0x3e2)][_0x813a6f(0x13d)](_0x24e649),this;}[_0x3bc2c8(0x384)](_0x3afded){const _0x4c8613=_0x3bc2c8;if(this[_0x4c8613(0x36f)](_0x3afded))return this[_0x4c8613(0x30f)][_0x4c8613(0x1a3)](_0x75f119,this[_0x4c8613(0x1b0)],this['type'],this[_0x4c8613(0x4e1)],this[_0x4c8613(0x3e2)],null,[_0x3afded],this[_0x4c8613(0x1f7)]);try{const _0x389d42=this[_0x4c8613(0x3a1)][_0x4c8613(0x175)]([_0x3afded],[this[_0x4c8613(0x4e1)]],!0x1);if(_0x56cbe4['isTransformChangesetsSuccess'](_0x389d42)){const {c1Prime:_0x4e491b,c2Prime:_0x13cb9f}=_0x389d42,_0x3c6ef5=this[_0x4c8613(0x3a1)][_0x4c8613(0x4b8)](_0x4e491b[0x0],this['_pendingMutations']);if(_0x56cbe4[_0x4c8613(0x180)](_0x3c6ef5)){const {c1Prime:_0x202685,m2Prime:_0x47e621}=_0x3c6ef5;return this[_0x4c8613(0x350)](_0x202685),_0x13cb9f[0x0][_0x4c8613(0x143)]=this[_0x4c8613(0x21c)](),this['_injector']['createInstance'](_0x22cc58,this[_0x4c8613(0x1b0)],this[_0x4c8613(0x413)],_0x13cb9f[0x0],_0x47e621,this[_0x4c8613(0x1f7)]);}throw _0x3c6ef5[_0x4c8613(0x476)];}throw _0x389d42[_0x4c8613(0x476)];}catch(_0x24d1b7){return this[_0x4c8613(0x4e7)][_0x4c8613(0x476)](_0x24d1b7),this[_0x4c8613(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](_0x2e8e9c){const _0xe46b8c=_0x3bc2c8;if(this['_checkMissing'](_0x2e8e9c))return this[_0xe46b8c(0x30f)]['createInstance'](_0x75f119,this['unitID'],this[_0xe46b8c(0x413)],null,this[_0xe46b8c(0x3e2)],this[_0xe46b8c(0x4e1)],[],this['_handler']);this[_0xe46b8c(0x393)]();const _0x96419=this[_0xe46b8c(0x30f)][_0xe46b8c(0x1a3)](_0x5f4482,this[_0xe46b8c(0x1b0)],this[_0xe46b8c(0x413)],this[_0xe46b8c(0x3e2)],this[_0xe46b8c(0x1f7)]);return _0x96419[_0xe46b8c(0x364)](),_0x96419[_0xe46b8c(0x100)](),_0x96419;}['onRemoteRej'](_0x311f22){const _0x230ed0=_0x3bc2c8;return this[_0x230ed0(0x2be)](!!(_0x311f22!=null&&_0x311f22['isPermissionRej']));}['toggleOffline'](){const _0x481682=_0x3bc2c8;return this[_0x481682(0x30f)][_0x481682(0x1a3)](_0x8646cf,this[_0x481682(0x1b0)],this[_0x481682(0x413)],this['_awaitingChangeset'],this[_0x481682(0x3e2)],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x9abe91=_0x3bc2c8;this[_0x9abe91(0x1f7)][_0x9abe91(0x3d5)](this[_0x9abe91(0x4e1)]);}[_0x3bc2c8(0x2be)](_0xb0eff0){const _0x35bf37=_0x3bc2c8;return this[_0x35bf37(0x30f)][_0x35bf37(0x1a3)](_0x20ac70,this[_0x35bf37(0x1b0)],this[_0x35bf37(0x413)],null,this['_pendingMutations'],this['_handler'],_0xb0eff0);}};_0x22cc58=_0x107b64([_0x45b06d(0x5,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x7,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0xa,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x22cc58);let _0x20ac70=class extends _0xa8a4b9{constructor(_0x50a852,_0x4d4c73,_0x516984,_0x398c67,_0x566555,_0x4d5b35=!0x1,_0x160455,_0xcae5a9,_0x4ef7c3,_0x54efa7,_0x20c2e9,_0x4c8116,_0x3e9ffb){const _0x32e3d0=_0x3bc2c8;super(_0x50a852,_0x4d4c73,_0x516984,_0x398c67,_0x566555,_0xcae5a9,_0x4ef7c3,_0x20c2e9,_0x54efa7),_0x314dc6(this,_0x32e3d0(0x4ad),_0x32e3d0(0x209)),(this[_0x32e3d0(0x338)]=_0x4d5b35,this['_permissionService']=_0x160455,this[_0x32e3d0(0x24c)]=_0x4c8116,this['_notificationService']=_0x3e9ffb,this[_0x32e3d0(0x4e4)](),this[_0x32e3d0(0x43a)](),this[_0x32e3d0(0x11a)]());}['appendMutation'](){return this;}[_0x3bc2c8(0x384)](){return this;}[_0x3bc2c8(0xf5)](){return this;}[_0x3bc2c8(0x38f)](){return this;}['toggleOffline'](){return this;}[_0x3bc2c8(0x20e)](){return this;}[_0x3bc2c8(0x423)](){const _0x5a7e9d=_0x3bc2c8;throw new Error(_0x5a7e9d(0x1d7));}[_0x3bc2c8(0x43a)](){const _0x66db09=_0x3bc2c8;this[_0x66db09(0x3bf)][_0x66db09(0x4ee)](this[_0x66db09(0x1b0)],this[_0x66db09(0x413)],null,[]);}['_showConflictNotification'](){const _0x260573=_0x3bc2c8;this[_0x260573(0x338)]?this[_0x260573(0x29a)]['show']({'title':this[_0x260573(0x24c)]['t'](_0x260573(0x33b)),'content':this[_0x260573(0x24c)]['t'](_0x260573(0x406)),'type':_0x260573(0x476),'duration':0x0}):this[_0x260573(0x29a)][_0x260573(0x29f)]({'title':this[_0x260573(0x24c)]['t']('conflict.title'),'content':this[_0x260573(0x24c)]['t'](_0x260573(0x49f)),'type':_0x260573(0x476),'duration':0x0});}[_0x3bc2c8(0x11a)](){const _0x5e9a34=_0x3bc2c8;this[_0x5e9a34(0x106)][_0x5e9a34(0x37a)](new _0xa62622['WorkbookEditablePermission'](this[_0x5e9a34(0x1b0)])['id'],!0x1);}};_0x20ac70=_0x107b64([_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x342)])),_0x45b06d(0x7,_0x5b7cfd['ICommandService']),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0x9,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)])),_0x45b06d(0xc,_0x2ce95d[_0x3bc2c8(0x2c3)])],_0x20ac70);let _0x8646cf=class extends _0xa8a4b9{constructor(_0x233d32,_0x417e93,_0x3ab169,_0x20dbb7,_0x4488ac,_0x1b0954,_0xe45562,_0x4ec367,_0xd5b502,_0x4f2055){super(_0x233d32,_0x417e93,_0x3ab169,_0x20dbb7,_0x4488ac,_0xd5b502,_0x4f2055,_0xe45562,_0x4ec367),_0x314dc6(this,'status','offline'),this['_injector']=_0x1b0954;}['appendMutation'](_0x59b588){const _0x115cb3=_0x3bc2c8;return this[_0x115cb3(0x3e2)][_0x115cb3(0x13d)](_0x59b588),this[_0x115cb3(0x100)](),this;}[_0x3bc2c8(0x384)](_0x43afbe){const _0xfbcceb=_0x3bc2c8;throw new Error(_0xfbcceb(0x2a3));}[_0x3bc2c8(0xf5)](){const _0x441481=_0x3bc2c8;throw new Error(_0x441481(0x41d));}[_0x3bc2c8(0x38f)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3bc2c8(0x495)](){return this;}[_0x3bc2c8(0x20e)](){const _0x5bf9dc=_0x3bc2c8,{_injector:_0x1b8cb6,_pendingMutations:_0x4247b2,_awaitingChangeset:_0x2fde7f,unitID:_0x52200c,_handler:_0x19f373,type:_0x29abe6}=this,_0x3b373e=_0x3d51b3(_0x1b8cb6,_0x52200c,_0x29abe6,_0x2fde7f,_0x4247b2,_0x19f373);return _0x3b373e instanceof _0x5f4482?_0x3b373e[_0x5bf9dc(0x364)]():(_0x3b373e instanceof _0x22cc58||_0x3b373e instanceof _0x3cd767)&&_0x3b373e[_0x5bf9dc(0x423)](),_0x3b373e;}[_0x3bc2c8(0x423)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x8646cf=_0x107b64([_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x8646cf);let _0x75f119=class extends _0xa8a4b9{constructor(_0x330eec,_0xe7870b,_0x2d3642,_0xc74994,_0x2fd6fa,_0x1fbce8,_0x4abaf1,_0x4a7802,_0x2933ac,_0x129c6e,_0x27a531,_0x100628,_0x464f32,_0x34a5cd){const _0x113dd2=_0x3bc2c8;super(_0x330eec,_0xe7870b,_0x2d3642,_0xc74994,_0x4abaf1,_0x100628,_0x464f32,_0x2933ac,_0x129c6e),_0x314dc6(this,_0x113dd2(0x4ad),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x2fd6fa,this[_0x113dd2(0x189)]=_0x1fbce8,this[_0x113dd2(0x30f)]=_0x4a7802,this[_0x113dd2(0x4e7)]=_0x27a531,this[_0x113dd2(0x3a1)]=_0x34a5cd);}[_0x3bc2c8(0x42e)](_0x2026a0){const _0x489b8a=_0x3bc2c8;try{const _0x401404=[..._0x2026a0,...this['_queuedRemoteChangesets']],_0x328cde=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x489b8a(0x3b6)](_0x39916b=>!!_0x39916b);let _0x2917d4,_0x2575e6;if(_0x328cde[_0x489b8a(0x3d6)]){const _0x316b63=this[_0x489b8a(0x3a1)][_0x489b8a(0x175)](_0x401404,_0x328cde,!0x1);if(!_0x56cbe4[_0x489b8a(0x3c8)](_0x316b63))throw _0x316b63['error'];_0x2917d4=_0x316b63[_0x489b8a(0x1c9)],_0x2575e6=_0x316b63[_0x489b8a(0x191)];}else _0x2917d4=_0x401404,_0x2575e6=[];let _0x1dc054=this[_0x489b8a(0x3e2)];_0x2917d4[_0x489b8a(0x255)](_0x133760=>{const _0x4da725=_0x489b8a;let _0x2032fc;if(_0x1dc054[_0x4da725(0x3d6)]){const _0x183563=this['_transformService'][_0x4da725(0x4b8)](_0x133760,_0x1dc054);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x183563))throw _0x183563[_0x4da725(0x476)];_0x2032fc=_0x183563[_0x4da725(0x1c9)],_0x1dc054=_0x183563['m2Prime'];}else _0x2032fc=_0x133760;this['_executeRemoteChangeset'](_0x2032fc);}),this[_0x489b8a(0x45f)]&&this[_0x489b8a(0x393)](),this[_0x489b8a(0x4e1)]&&_0x2575e6[_0x489b8a(0x3d6)]&&(_0x2575e6[0x0]['baseRev']=this[_0x489b8a(0x21c)]());let _0x2afaba;if(this[_0x489b8a(0x4e1)]&&_0x1dc054[_0x489b8a(0x3d6)]!==0x0)_0x2afaba=this[_0x489b8a(0x30f)][_0x489b8a(0x1a3)](_0x22cc58,this[_0x489b8a(0x1b0)],this['type'],_0x2575e6[0x0],_0x1dc054,this[_0x489b8a(0x1f7)]);else{if(this[_0x489b8a(0x4e1)]&&_0x1dc054[_0x489b8a(0x3d6)]===0x0)_0x2575e6[0x0]['baseRev']=this[_0x489b8a(0x21c)](),_0x2afaba=this['_injector'][_0x489b8a(0x1a3)](_0x3cd767,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],_0x2575e6[0x0],this['_handler']);else{if(_0x1dc054[_0x489b8a(0x3d6)]!==0x0){const _0xdc773c=this['_injector']['createInstance'](_0x5f4482,this[_0x489b8a(0x1b0)],this['type'],_0x1dc054,this[_0x489b8a(0x1f7)]);_0xdc773c[_0x489b8a(0x364)](),_0x2afaba=_0xdc773c;}else _0x2afaba=this[_0x489b8a(0x30f)]['createInstance'](_0x5124ae,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],this[_0x489b8a(0x1f7)]);}}return _0x2afaba[_0x489b8a(0x100)](),_0x2afaba;}catch(_0x4d3adc){return this['_logService']['error'](_0x489b8a(0x513),_0x489b8a(0x12d),_0x4d3adc),this[_0x489b8a(0x30f)][_0x489b8a(0x1a3)](_0x20ac70,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],this[_0x489b8a(0x4e1)],this[_0x489b8a(0x3e2)],this[_0x489b8a(0x1f7)],!0x1);}}[_0x3bc2c8(0x423)](){const _0x1b9ab9=_0x3bc2c8;throw new Error(_0x1b9ab9(0x4d0));}['appendMutation'](_0x33b2dd){const _0x1ed4ae=_0x3bc2c8;return this[_0x1ed4ae(0x3e2)][_0x1ed4ae(0x13d)](_0x33b2dd),this;}[_0x3bc2c8(0x384)](_0x20714b){const _0x36afbf=_0x3bc2c8;return this[_0x36afbf(0x189)]['push'](_0x20714b),this;}[_0x3bc2c8(0xf5)](_0x3f0d5e){const _0x59243b=_0x3bc2c8;if(this['_awaitingChangeset'])return this[_0x59243b(0x45f)]=this[_0x59243b(0x4e1)],this[_0x59243b(0x4e1)]=null,this;throw new Error(_0x59243b(0x4fe));}[_0x3bc2c8(0x38f)](_0x133898){const _0x4a696c=_0x3bc2c8;return this['_onConflict'](!!(_0x133898!=null&&_0x133898[_0x4a696c(0x30a)]));}[_0x3bc2c8(0x495)](){const _0x1a12fa=_0x3bc2c8;return this[_0x1a12fa(0x30f)][_0x1a12fa(0x1a3)](_0x8646cf,this[_0x1a12fa(0x1b0)],this[_0x1a12fa(0x413)],this[_0x1a12fa(0x4e1)],this[_0x1a12fa(0x3e2)],this[_0x1a12fa(0x1f7)]);}['toggleOnline'](){return this;}[_0x3bc2c8(0x2be)](_0x2ef059){const _0x4c5517=_0x3bc2c8;return this[_0x4c5517(0x30f)][_0x4c5517(0x1a3)](_0x20ac70,this[_0x4c5517(0x1b0)],this[_0x4c5517(0x413)],this[_0x4c5517(0x4e1)],this[_0x4c5517(0x3e2)],this[_0x4c5517(0x1f7)],_0x2ef059);}};_0x75f119=_0x107b64([_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0xc,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0xd,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x75f119);function _0x3d51b3(_0x23d7f0,_0x42e99c,_0x51cf12,_0x30a137,_0x398708,_0x146776){const _0x436e3e=_0x3bc2c8;return _0x30a137&&_0x398708['length']?_0x23d7f0[_0x436e3e(0x1a3)](_0x22cc58,_0x42e99c,_0x51cf12,_0x30a137,_0x398708,_0x146776):_0x30a137?_0x23d7f0[_0x436e3e(0x1a3)](_0x3cd767,_0x42e99c,_0x51cf12,_0x30a137,_0x146776):_0x398708[_0x436e3e(0x3d6)]?_0x23d7f0['createInstance'](_0x5f4482,_0x42e99c,_0x51cf12,_0x398708,_0x146776):_0x23d7f0[_0x436e3e(0x1a3)](_0x5124ae,_0x42e99c,_0x51cf12,_0x146776);}var _0x33d66a=Object[_0x3bc2c8(0x361)],_0x48ab0e=Object[_0x3bc2c8(0x48b)],_0xedaaab=(_0x3c9a18,_0x51f08f,_0x145830,_0x40adc4)=>{for(var _0x325f1d=_0x40adc4>0x1?void 0x0:_0x40adc4?_0x48ab0e(_0x51f08f,_0x145830):_0x51f08f,_0x36e851=_0x3c9a18['length']-0x1,_0x2df619;_0x36e851>=0x0;_0x36e851--)(_0x2df619=_0x3c9a18[_0x36e851])&&(_0x325f1d=(_0x40adc4?_0x2df619(_0x51f08f,_0x145830,_0x325f1d):_0x2df619(_0x325f1d))||_0x325f1d);return _0x40adc4&&_0x325f1d&&_0x33d66a(_0x51f08f,_0x145830,_0x325f1d),_0x325f1d;},_0x2ca542=(_0x53c105,_0x453f10)=>(_0x59aa67,_0xd94d6c)=>_0x453f10(_0x59aa67,_0xd94d6c,_0x53c105);_0x48e51e[_0x3bc2c8(0x193)]=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x27a9df,_0x36af83,_0x10a1f3,_0xedf0bb,_0x4eb5ed,_0x3f3ce3,_0x2b04a4,_0x2f9226,_0x301193,_0x126945,_0x1700ae,_0x3f0115,_0x25b03b){const _0x7b85df=_0x3bc2c8;super(),_0x314dc6(this,_0x7b85df(0x503),new _0x266483[(_0x7b85df(0x43e))](null)),_0x314dc6(this,_0x7b85df(0x1e5),this[_0x7b85df(0x503)][_0x7b85df(0x4eb)]()),_0x314dc6(this,'_state'),_0x314dc6(this,_0x7b85df(0x39f),!0x1),_0x314dc6(this,_0x7b85df(0x294),this['state$'][_0x7b85df(0x198)](_0x266483[_0x7b85df(0x39c)](_0x4bbe88=>_0x4bbe88?_0x4bbe88['status']:_0x5926c5[_0x7b85df(0x3b0)]),_0x266483['shareReplay'](0x1))),_0x314dc6(this,_0x7b85df(0x3cd),!0x1),_0x314dc6(this,_0x7b85df(0x229),[]),(this[_0x7b85df(0x1b0)]=_0x27a9df,this[_0x7b85df(0x3d7)]=_0x36af83,this[_0x7b85df(0x251)]=_0x10a1f3,this[_0x7b85df(0x30f)]=_0xedf0bb,this['_localCacheService']=_0x4eb5ed,this[_0x7b85df(0x2a4)]=_0x3f3ce3,this[_0x7b85df(0x24c)]=_0x2b04a4,this[_0x7b85df(0x49a)]=_0x2f9226,this[_0x7b85df(0x4e7)]=_0x301193,this[_0x7b85df(0x2c6)]=_0x126945,this[_0x7b85df(0x1d6)]=_0x1700ae,this[_0x7b85df(0x106)]=_0x3f0115,this[_0x7b85df(0x139)]=_0x25b03b);}get[_0x3bc2c8(0x214)](){const _0x57cf01=_0x3bc2c8;return this[_0x57cf01(0x2b3)];}async[_0x3bc2c8(0x341)](){const _0x2473e8=_0x3bc2c8;if(this[_0x2473e8(0x214)])throw new Error(_0x2473e8(0xd8));await this['_init']();}[_0x3bc2c8(0x165)](){const _0x397fbd=_0x3bc2c8;return this[_0x397fbd(0x39f)]=!0x0,_0x5b7cfd[_0x397fbd(0x3d9)](()=>{const _0x445800=_0x397fbd;this[_0x445800(0x39f)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x532080){const _0x20eac3=_0x3bc2c8;this[_0x20eac3(0x2b3)]=_0x532080,this[_0x20eac3(0x503)][_0x20eac3(0xe4)](_0x532080);}async['_init'](){const _0x498ddb=_0x3bc2c8;var _0x192934;this[_0x498ddb(0x25e)](await this[_0x498ddb(0x3ed)]()),this[_0x498ddb(0x139)]&&((_0x192934=this[_0x498ddb(0x139)])==null||_0x192934['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x498ddb(0x139)][_0x498ddb(0x112)](this[_0x498ddb(0x1b0)])[_0x498ddb(0x2f5)](_0x462b20=>{const _0x58d2aa=_0x498ddb;this[_0x58d2aa(0x4e7)][_0x58d2aa(0x46f)](_0x58d2aa(0x3ab),_0x58d2aa(0x292),_0x462b20),_0x462b20===_0x695cf2[_0x58d2aa(0x3de)]?(this['_messageService'][_0x58d2aa(0x29f)]({'content':this[_0x58d2aa(0x24c)]['t'](_0x58d2aa(0x398)),'type':_0x4466a1[_0x58d2aa(0x185)][_0x58d2aa(0x1f8)]}),this[_0x58d2aa(0x106)][_0x58d2aa(0x37a)](new _0xa62622['WorkbookEditablePermission'](this[_0x58d2aa(0x1b0)])['id'],!0x1)):this[_0x58d2aa(0x106)]['updatePermissionPoint'](new _0xa62622[(_0x58d2aa(0x4cf))](this[_0x58d2aa(0x1b0)])['id'],!0x0);})));let _0x27ce9d=!0x1;return this[_0x498ddb(0x131)](this[_0x498ddb(0x3d7)][_0x498ddb(0x509)][_0x498ddb(0x2f5)](_0x3c0b6b=>{const _0x2ce2ef=_0x498ddb;_0x3c0b6b===_0x2d9d4e[_0x2ce2ef(0x322)]?this['_toggleOnline'](_0x27ce9d):_0x3c0b6b===_0x2d9d4e[_0x2ce2ef(0x3b0)]&&(_0x27ce9d=!0x0,this['_toggleOffline']());})),this[_0x498ddb(0x131)](this[_0x498ddb(0x3d7)][_0x498ddb(0x164)][_0x498ddb(0x2f5)](_0x2e66f4=>{const _0x593f8c=_0x498ddb;try{switch(_0x2e66f4[_0x593f8c(0xe1)]){case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x455)]:{this[_0x593f8c(0x261)](_0x56cbe4[_0x593f8c(0x242)](_0x2e66f4[_0x593f8c(0x2db)]));break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x4f7)]:{this[_0x593f8c(0x24f)](_0x2e66f4[_0x593f8c(0x2db)]);break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x4c3)]:{this[_0x593f8c(0x359)]();break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x23c)]:{this[_0x593f8c(0x11d)](_0x2e66f4['data']['changesets'][_0x593f8c(0x39c)](_0x19cbe0=>_0x56cbe4[_0x593f8c(0x242)](_0x19cbe0)));break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x41b)]:this[_0x593f8c(0x359)]({'isPermissionRej':!0x0});}}catch(_0x2f5c40){throw console[_0x593f8c(0x476)](_0x593f8c(0x320),_0x2f5c40),_0x2f5c40;}})),this[_0x498ddb(0x2b3)];}[_0x3bc2c8(0x172)](){const _0x519af9=_0x3bc2c8;this[_0x519af9(0x3cd)]=!0x1;}['_lockTransition'](){const _0x4e6095=_0x3bc2c8;if(this[_0x4e6095(0x3cd)])throw new Error(_0x4e6095(0x22c));this[_0x4e6095(0x3cd)]=!0x0;}[_0x3bc2c8(0x1de)](_0x7f83e1){const _0x319f31=_0x3bc2c8;this['_lockTransition'](),this[_0x319f31(0x25e)](this['_state'][_0x319f31(0x295)](_0x7f83e1)),this[_0x319f31(0x172)]();}[_0x3bc2c8(0x261)](_0x2f372c){const _0x379765=_0x3bc2c8;if(!(_0x2f372c[_0x379765(0x1b1)]<=this['_revisionService'][_0x379765(0x22d)](this[_0x379765(0x1b0)]))){if(this['_collaborationPaused']){this[_0x379765(0x229)][_0x379765(0x13d)](_0x2f372c);return;}this[_0x379765(0x146)](_0x2f372c);}}['_exhaustRemoteChangesetQueue'](){const _0x5aa4b2=_0x3bc2c8;this[_0x5aa4b2(0x229)][_0x5aa4b2(0x255)](_0x4185bf=>this[_0x5aa4b2(0x146)](_0x4185bf)),this[_0x5aa4b2(0x229)]=[];}[_0x3bc2c8(0x146)](_0x51aebe){const _0x27ff22=_0x3bc2c8,_0x28d1c8=this[_0x27ff22(0x2a4)][_0x27ff22(0x282)][_0x27ff22(0x35b)](this[_0x27ff22(0x2a4)][_0x27ff22(0x282)][_0x27ff22(0x27f)]()[_0x27ff22(0x50b)])(_0x51aebe[_0x27ff22(0x1fc)],null)||_0x51aebe[_0x27ff22(0x1fc)],_0x31c8fd={..._0x51aebe,'mutations':_0x28d1c8};this[_0x27ff22(0x2c5)](),this[_0x27ff22(0x25e)](this['_state'][_0x27ff22(0x384)](_0x31c8fd)),this[_0x27ff22(0x172)]();}[_0x3bc2c8(0x24f)](_0x3708cc){const _0x1b35cb=_0x3bc2c8;this['_lockTransition'](),this[_0x1b35cb(0x25e)](this[_0x1b35cb(0x2b3)][_0x1b35cb(0xf5)](_0x3708cc)),this[_0x1b35cb(0x172)]();}[_0x3bc2c8(0x359)](_0x2700c8){const _0x28888f=_0x3bc2c8;this[_0x28888f(0x2c5)](),this[_0x28888f(0x25e)](this[_0x28888f(0x2b3)][_0x28888f(0x38f)](_0x2700c8)),this[_0x28888f(0x172)]();}[_0x3bc2c8(0x11d)](_0x5aaae2){const _0x5c2e9e=_0x3bc2c8;if(!(this[_0x5c2e9e(0x2b3)]instanceof _0x75f119))throw new TypeError(_0x5c2e9e(0x287));const _0x1bbf8a=_0x5aaae2[_0x5c2e9e(0x39c)](_0x29268e=>{const _0x5edcac=_0x5c2e9e,_0x47fff9=this[_0x5edcac(0x2a4)]['interceptor'][_0x5edcac(0x35b)](this[_0x5edcac(0x2a4)][_0x5edcac(0x282)][_0x5edcac(0x27f)]()[_0x5edcac(0x50b)])(_0x29268e[_0x5edcac(0x1fc)],null)||_0x29268e[_0x5edcac(0x1fc)];return{..._0x29268e,'mutations':_0x47fff9};});this[_0x5c2e9e(0x2c5)](),this['_updateState'](this['_state'][_0x5c2e9e(0x42e)](_0x1bbf8a)),this['_unlockTransition']();}[_0x3bc2c8(0x3e9)](){const _0x571fd2=_0x3bc2c8;this['_lockTransition'](),this[_0x571fd2(0x25e)](this[_0x571fd2(0x2b3)][_0x571fd2(0x495)]()),this[_0x571fd2(0x172)]();}['_toggleOnline'](_0x1da87d=!0x1){const _0x1f03ea=_0x3bc2c8;this['_lockTransition'](),this['_updateState'](this['_state'][_0x1f03ea(0x20e)]()),this[_0x1f03ea(0x172)]();const _0xe68213=this[_0x1f03ea(0x2b3)];_0x1da87d&&_0xe68213 instanceof _0x5124ae&&(this['_lockTransition'](),this['_updateState'](_0xe68213[_0x1f03ea(0x208)]()),this['_unlockTransition']());}async[_0x3bc2c8(0x3ed)](){return new Promise(_0xb6ce8c=>{const _0x3c5b3f=_0x4f28;this[_0x3c5b3f(0x3d7)]['sessionStatus$'][_0x3c5b3f(0x198)](_0x266483[_0x3c5b3f(0x38a)](0x1))[_0x3c5b3f(0x2f5)](async _0x2325a3=>{const _0x403cdd=_0x3c5b3f;_0xb6ce8c(await this[_0x403cdd(0x1ee)](_0x2325a3===_0x2d9d4e[_0x403cdd(0x322)]));});});}[_0x3bc2c8(0x15e)](){const _0x2a8a6b=_0x3bc2c8,_0x10aae1=this[_0x2a8a6b(0x1b0)];return{'onStateChange':(_0x440923,_0x252811)=>{const _0xf1c0aa=_0x2a8a6b;if(_0x440923!==this[_0xf1c0aa(0x2b3)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x440923[_0xf1c0aa(0x4ad)]+_0xf1c0aa(0x330)+_0x252811[_0xf1c0aa(0x4ad)]+_0xf1c0aa(0xe8)+this[_0xf1c0aa(0x2b3)][_0xf1c0aa(0x4ad)]);this[_0xf1c0aa(0x25e)](_0x252811);},'onSendChangeset':_0x490b8d=>{const _0x370c8b=_0x2a8a6b,_0x964554={'eventID':_0x56cbe4[_0x370c8b(0x484)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x490b8d[_0x370c8b(0x1b0)],'unitType':this[_0x370c8b(0x251)],'changeset':_0x490b8d,'memberID':this[_0x370c8b(0x3d7)][_0x370c8b(0x2d0)]()}};this['session'][_0x370c8b(0x441)](_0x964554,this[_0x370c8b(0x1b0)]);},'onMissingChangesets':({from:_0x4302ee,to:_0x394c3b})=>{const _0xd91bc=_0x2a8a6b;this[_0xd91bc(0x4e7)][_0xd91bc(0x46f)]('[CollaborationEntity]',_0xd91bc(0x41f)+_0x4302ee+_0xd91bc(0x18b)+_0x394c3b);const _0x2f6512={'eventID':_0x56cbe4[_0xd91bc(0x484)][_0xd91bc(0x123)],'data':{'unitID':_0x10aae1,'unitType':this['_type'],'from':_0x4302ee,'to':_0x394c3b}};this[_0xd91bc(0x3d7)][_0xd91bc(0x441)](_0x2f6512,this[_0xd91bc(0x1b0)]);}};}async[_0x3bc2c8(0x1ee)](_0xd6bd3f){const _0x453d9c=_0x3bc2c8;var _0x8aecb2,_0x350bdf;const _0x413209=await this[_0x453d9c(0x3bf)][_0x453d9c(0x30b)](this[_0x453d9c(0x1b0)]),_0x513b1b=(_0x8aecb2=_0x413209==null?void 0x0:_0x413209['mutations'])!=null?_0x8aecb2:[],_0x262499=(_0x350bdf=_0x413209==null?void 0x0:_0x413209[_0x453d9c(0x3e1)])!=null?_0x350bdf:null,_0x14e521=this['unitID'];try{this[_0x453d9c(0x1b6)](_0x262499,_0x513b1b);}catch(_0x4af9d7){this['_logService']['error'](_0x4af9d7);}const _0x155c40=this['_createHandler']();if(_0xd6bd3f){const _0x17f860=_0x3d51b3(this[_0x453d9c(0x30f)],_0x14e521,this[_0x453d9c(0x251)],_0x262499,_0x513b1b,_0x155c40);return _0x17f860 instanceof _0x5f4482?_0x17f860[_0x453d9c(0x364)]():(_0x17f860 instanceof _0x22cc58||_0x17f860 instanceof _0x3cd767)&&_0x17f860[_0x453d9c(0x423)](),_0x17f860;}return this[_0x453d9c(0x30f)][_0x453d9c(0x1a3)](_0x8646cf,_0x14e521,this[_0x453d9c(0x251)],_0x262499,_0x513b1b,_0x155c40);}[_0x3bc2c8(0x1b6)](_0x137ba3,_0x30a45e){const _0x6c015a=_0x3bc2c8;var _0x2b1eb8,_0x54d0b7;const _0x1a271b=this['_compressMutationService']['interceptor'][_0x6c015a(0x35b)](this[_0x6c015a(0x2a4)][_0x6c015a(0x282)][_0x6c015a(0x27f)]()[_0x6c015a(0x50b)]);(_0x2b1eb8=_0x1a271b((_0x137ba3==null?void 0x0:_0x137ba3[_0x6c015a(0x1fc)])||[],null))==null||_0x2b1eb8[_0x6c015a(0x255)](_0x235b70=>this[_0x6c015a(0x2c6)]['executeCommand'](_0x235b70['id'],_0x235b70[_0x6c015a(0x3c2)])),(_0x54d0b7=_0x1a271b(_0x30a45e||[],null))==null||_0x54d0b7['forEach'](_0x1a8d67=>this['_commandService']['executeCommand'](_0x1a8d67['id'],_0x1a8d67[_0x6c015a(0x3c2)]));}},_0x48e51e[_0x3bc2c8(0x193)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2ca542(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x2ca542(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['CompressMutationService'])),_0x2ca542(0x6,_0x5b7cfd['Inject'](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xa,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x2ca542(0xb,_0x5b7cfd['IPermissionService']),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x259)](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x193)]),_0x48e51e[_0x3bc2c8(0x355)]=class extends _0x48e51e['CollaborationEntity']{constructor(_0x24ea8f,_0x114a0b,_0x517d92,_0x36e1d9,_0x37c69e,_0x2d341d,_0x140905,_0x3772ac,_0x248044,_0x5b5540,_0x257964,_0x2808df,_0x12376a,_0x30f18a,_0x394d95,_0x82ccc1,_0x5bad4c){const _0x3417aa=_0x3bc2c8;super(_0x24ea8f,_0x517d92,_0x114a0b,_0x36e1d9,_0x37c69e,_0x2d341d,_0x140905,_0x3772ac,_0x12376a,_0x30f18a,_0x394d95,_0x82ccc1,_0x5bad4c),this[_0x3417aa(0x1b0)]=_0x24ea8f,this[_0x3417aa(0x413)]=_0x114a0b,this[_0x3417aa(0x3a4)]=_0x248044,this[_0x3417aa(0x515)]=_0x5b5540,this[_0x3417aa(0x450)]=_0x257964,this[_0x3417aa(0x25c)]=_0x2808df;}[_0x3bc2c8(0x15e)](){const _0x2a200e=_0x3bc2c8,_0x45dac4=super['_createHandler']();return _0x45dac4[_0x2a200e(0x1a9)]=_0x2dd753=>this[_0x2a200e(0x515)][_0x2a200e(0x43c)](_0x2dd753),_0x45dac4[_0x2a200e(0x4b2)]=_0x20bac7=>this[_0x2a200e(0x450)][_0x2a200e(0x109)](_0x20bac7),_0x45dac4[_0x2a200e(0x2e0)]=_0x16c546=>this[_0x2a200e(0x25c)][_0x2a200e(0x195)](_0x16c546),_0x45dac4[_0x2a200e(0x258)]=_0x5070a8=>this[_0x2a200e(0x515)][_0x2a200e(0x3fb)](_0x5070a8),_0x45dac4;}async[_0x3bc2c8(0x276)](){const _0x1159b8=_0x3bc2c8,_0x609a70=await super['_init']();return this[_0x1159b8(0x131)](this[_0x1159b8(0x2c6)]['onCommandExecuted']((_0x35e2ef,_0x38dd80)=>{const _0x10d20c=_0x1159b8;if(_0x35e2ef['type']!==_0x5b7cfd['CommandType'][_0x10d20c(0x374)]||_0x38dd80!=null&&_0x38dd80[_0x10d20c(0x38d)]||_0x38dd80!=null&&_0x38dd80[_0x10d20c(0x4b3)])return;const _0x4565cc=_0x35e2ef[_0x10d20c(0x3c2)];if((_0x4565cc==null?void 0x0:_0x4565cc[_0x10d20c(0x373)])!==this['unitID'])return;let _0x18010b=_0x35e2ef;if(_0x18010b['id']===_0x3e2148['RichTextEditingMutation']['id']){const _0x226aca=_0x18010b[_0x10d20c(0x3c2)];_0x18010b={'id':_0x3e2148[_0x10d20c(0x368)]['id'],'type':_0x5b7cfd[_0x10d20c(0x425)][_0x10d20c(0x374)],'params':{'unitId':_0x226aca['unitId'],'actions':_0x226aca[_0x10d20c(0x2fd)],'textRanges':null}};}const _0x2e37b6=this['_compressMutationService']['interceptor'][_0x10d20c(0x35b)](this[_0x10d20c(0x2a4)][_0x10d20c(0x282)][_0x10d20c(0x27f)]()['COMPRESS_MUTATION_SEND'])([_0x18010b],null)||[_0x18010b];this[_0x10d20c(0x1de)](_0x2e37b6[0x0]);})),_0x609a70;}},_0x48e51e[_0x3bc2c8(0x355)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2ca542(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x2ca542(0x5,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x375)])),_0x2ca542(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['RevisionService'])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x618f14[_0x3bc2c8(0x1e9)])),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x1e6c69)),_0x2ca542(0xa,_0x5b7cfd['Inject'](_0x12ef35)),_0x2ca542(0xb,_0x5b7cfd['Inject'](_0x56b650)),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0xd,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xe,_0x2ce95d['IMessageService']),_0x2ca542(0xf,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2ca542(0x10,_0x5b7cfd['Optional'](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x355)]),_0x48e51e[_0x3bc2c8(0x449)]=class extends _0x48e51e['CollaborationEntity']{constructor(_0x291007,_0x470c6c,_0x5da244,_0x1430a9,_0xd8ba8c,_0x93abcf,_0xb1c9b5,_0x3ba0d8,_0x3643f0,_0x790161,_0x141cb5,_0x31ffa0,_0x14d815,_0xe6adde){const _0x1385ed=_0x3bc2c8;super(_0x291007,_0x5da244,_0x470c6c,_0x1430a9,_0xd8ba8c,_0x93abcf,_0xb1c9b5,_0x3ba0d8,_0x790161,_0x141cb5,_0x31ffa0,_0x14d815,_0xe6adde),this['unitID']=_0x291007,this[_0x1385ed(0x413)]=_0x470c6c,this[_0x1385ed(0x170)]=_0x3643f0;}[_0x3bc2c8(0x15e)](){const _0x32ead7=_0x3bc2c8,_0x171ea0=super[_0x32ead7(0x15e)]();return _0x171ea0['onTransformSelections']=_0x8f0fc0=>this[_0x32ead7(0x170)][_0x32ead7(0x109)](_0x8f0fc0),_0x171ea0;}async['_init'](){const _0x571e4e=_0x3bc2c8,_0x45346c=await super[_0x571e4e(0x276)]();return this[_0x571e4e(0x131)](this[_0x571e4e(0x2c6)][_0x571e4e(0x15f)]((_0xce5870,_0x270000)=>{const _0x5d68fc=_0x571e4e;if(_0xce5870[_0x5d68fc(0x413)]!==_0x5b7cfd['CommandType'][_0x5d68fc(0x374)]||_0x270000!=null&&_0x270000[_0x5d68fc(0x38d)]||_0x270000!=null&&_0x270000[_0x5d68fc(0x4b3)])return;const _0x5869ec=_0xce5870['params'];if((_0x5869ec==null?void 0x0:_0x5869ec[_0x5d68fc(0x373)])!==this['unitID'])return;const _0xce42b0=_0xce5870,_0x34b414=this[_0x5d68fc(0x2a4)][_0x5d68fc(0x282)][_0x5d68fc(0x35b)](this[_0x5d68fc(0x2a4)][_0x5d68fc(0x282)][_0x5d68fc(0x27f)]()[_0x5d68fc(0x221)])([_0xce42b0],null)||[_0xce42b0];this['_onLocalMutation'](_0x34b414[0x0]);})),_0x45346c;}},_0x48e51e[_0x3bc2c8(0x449)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd['Inject'](_0x5b7cfd['Injector'])),_0x2ca542(0x4,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x2ca542(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['CompressMutationService'])),_0x2ca542(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2cedfe)),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0xa,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xb,_0x2ce95d['IMessageService']),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2ca542(0xd,_0x5b7cfd['Optional'](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x449)]);var _0x3faff2=Object['defineProperty'],_0x217d22=Object[_0x3bc2c8(0x48b)],_0x2d901a=(_0x26cb89,_0x48b274,_0x2e12ef,_0xa00df3)=>{const _0x3b6d90=_0x3bc2c8;for(var _0x18d4b1=_0xa00df3>0x1?void 0x0:_0xa00df3?_0x217d22(_0x48b274,_0x2e12ef):_0x48b274,_0x311c3f=_0x26cb89[_0x3b6d90(0x3d6)]-0x1,_0x54057f;_0x311c3f>=0x0;_0x311c3f--)(_0x54057f=_0x26cb89[_0x311c3f])&&(_0x18d4b1=(_0xa00df3?_0x54057f(_0x48b274,_0x2e12ef,_0x18d4b1):_0x54057f(_0x18d4b1))||_0x18d4b1);return _0xa00df3&&_0x18d4b1&&_0x3faff2(_0x48b274,_0x2e12ef,_0x18d4b1),_0x18d4b1;},_0x3148ae=(_0x472bd7,_0xb7b504)=>(_0x3252d9,_0x22355d)=>_0xb7b504(_0x3252d9,_0x22355d,_0x472bd7);_0x48e51e[_0x3bc2c8(0x30c)]=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x350154,_0x3d8750,_0x2f7ab7){const _0x2eb46a=_0x3bc2c8;super(),_0x314dc6(this,_0x2eb46a(0x2af),new Map()),_0x314dc6(this,_0x2eb46a(0x1cb),new _0x266483[(_0x2eb46a(0x2e5))]()),(this['_injector']=_0x350154,this[_0x2eb46a(0x24d)]=_0x3d8750,this[_0x2eb46a(0x10b)]=_0x2f7ab7,this[_0x2eb46a(0x276)]());}[_0x3bc2c8(0x314)](){const _0xf65ec=_0x3bc2c8;super[_0xf65ec(0x314)](),this[_0xf65ec(0x2af)][_0xf65ec(0x255)](_0x2e849b=>_0x2e849b['dispose']()),this['_entities']['clear']();}['getCollabEntity'](_0x2918dc){const _0x28e05f=_0x3bc2c8;var _0x40ea10;return(_0x40ea10=this[_0x28e05f(0x2af)][_0x28e05f(0x451)](_0x2918dc))!=null?_0x40ea10:null;}[_0x3bc2c8(0x27a)](_0x24bd2c){const _0x53d9e8=_0x3bc2c8,_0x22c8e0=this[_0x53d9e8(0x36d)](_0x24bd2c);return _0x22c8e0?_0x266483['of'](_0x22c8e0):this[_0x53d9e8(0x1cb)][_0x53d9e8(0x198)](_0x51de38[_0x53d9e8(0x3b6)](_0x53db27=>_0x53db27['unitID']===_0x24bd2c));}[_0x3bc2c8(0x276)](){const _0x2d9852=_0x3bc2c8;this[_0x2d9852(0x10b)][_0x2d9852(0x327)](_0x5b7cfd['UniverInstanceType'][_0x2d9852(0x301)])[_0x2d9852(0x198)](_0x266483[_0x2d9852(0x46b)](this[_0x2d9852(0x2dd)]),_0x51de38[_0x2d9852(0x19d)](0x10))[_0x2d9852(0x2f5)](async _0x16789c=>{const _0x546a1e=_0x2d9852,_0x23239a=_0x16789c[_0x546a1e(0x183)](),_0x227302=await this['_startCollaboration'](_0x23239a,_0x249560[_0x546a1e(0x301)]);this['_entities']['set'](_0x23239a,_0x227302);}),this[_0x2d9852(0x10b)][_0x2d9852(0x327)](_0x5b7cfd[_0x2d9852(0x4bb)][_0x2d9852(0x3a6)])['pipe'](_0x266483['takeUntil'](this[_0x2d9852(0x2dd)]),_0x51de38[_0x2d9852(0x19d)](0x10))[_0x2d9852(0x198)](_0x51de38['filter'](_0x39208e=>!_0x39208e[_0x2d9852(0x183)]()['startsWith']('__')))[_0x2d9852(0x2f5)](async _0x32bee5=>{const _0x2baa99=_0x2d9852,_0x5b266f=_0x32bee5[_0x2baa99(0x183)](),_0x2793ef=await this[_0x2baa99(0xea)](_0x5b266f,_0x249560[_0x2baa99(0x3a6)]);this[_0x2baa99(0x2af)][_0x2baa99(0x10d)](_0x5b266f,_0x2793ef);}),_0x266483['merge'](this[_0x2d9852(0x10b)][_0x2d9852(0x4a5)](_0x5b7cfd['UniverInstanceType'][_0x2d9852(0x301)]),this[_0x2d9852(0x10b)]['getTypeOfUnitDisposed$'](_0x5b7cfd[_0x2d9852(0x4bb)][_0x2d9852(0x3a6)]))[_0x2d9852(0x198)](_0x266483[_0x2d9852(0x46b)](this[_0x2d9852(0x2dd)]))['subscribe'](_0x1382ab=>{const _0x5f347d=_0x2d9852,_0x4215be=_0x1382ab[_0x5f347d(0x183)](),_0x233fa7=this[_0x5f347d(0x2af)][_0x5f347d(0x451)](_0x4215be);_0x233fa7&&(_0x233fa7[_0x5f347d(0x314)](),this[_0x5f347d(0x2af)]['delete'](_0x4215be));});}async['_startCollaboration'](_0x210400,_0x52eea6){const _0x13e56e=_0x3bc2c8,_0x4671ae=await this[_0x13e56e(0x24d)]['requireSession'](_0x210400),_0xf3423e=this[_0x13e56e(0x30f)][_0x13e56e(0x1a3)](this[_0x13e56e(0xdd)](_0x52eea6),_0x210400,_0x52eea6,_0x4671ae);return await _0xf3423e[_0x13e56e(0x341)](),this[_0x13e56e(0x1cb)][_0x13e56e(0xe4)](_0xf3423e),_0xf3423e;}[_0x3bc2c8(0xdd)](_0x4f4bef){const _0xdd78eb=_0x3bc2c8;switch(_0x4f4bef){case _0x249560[_0xdd78eb(0x3a6)]:return _0x48e51e[_0xdd78eb(0x355)];case _0x249560[_0xdd78eb(0x301)]:return _0x48e51e['SheetCollaborationEntity'];default:throw new Error(_0xdd78eb(0x1e7)+_0x4f4bef);}}},_0x48e51e[_0x3bc2c8(0x30c)]=_0x2d901a([_0x3148ae(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x3148ae(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['CollaborationSessionService'])),_0x3148ae(0x2,_0x5b7cfd['IUniverInstanceService'])],_0x48e51e[_0x3bc2c8(0x30c)]);const _0x3d2988=['purple300',_0x3bc2c8(0x22b),_0x3bc2c8(0x317),_0x3bc2c8(0x18f),_0x3bc2c8(0x4e8),_0x3bc2c8(0x443)];class _0x2e16f3 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0x51604b=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0x51604b(0x2b4),new Map()),_0x314dc6(this,_0x51604b(0x171),0x0);}[_0x3bc2c8(0x33d)](_0x49be37){const _0x5e6566=_0x3bc2c8;if(this[_0x5e6566(0x2b4)][_0x5e6566(0x232)](_0x49be37))return this['_assignedColors'][_0x5e6566(0x451)](_0x49be37);const _0x263bde=_0x3d2988[this[_0x5e6566(0x171)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x3d2988[_0x5e6566(0x3d6)],this['_assignedColors'][_0x5e6566(0x10d)](_0x49be37,_0x263bde),_0x263bde;}}var _0x4da243=Object[_0x3bc2c8(0x361)],_0x4d914d=Object[_0x3bc2c8(0x48b)],_0x1bb410=(_0x1487f2,_0x3a1efe,_0x59a8da,_0x56158a)=>{for(var _0x3b5561=_0x56158a>0x1?void 0x0:_0x56158a?_0x4d914d(_0x3a1efe,_0x59a8da):_0x3a1efe,_0x3b091b=_0x1487f2['length']-0x1,_0x5d3257;_0x3b091b>=0x0;_0x3b091b--)(_0x5d3257=_0x1487f2[_0x3b091b])&&(_0x3b5561=(_0x56158a?_0x5d3257(_0x3a1efe,_0x59a8da,_0x3b5561):_0x5d3257(_0x3b5561))||_0x3b5561);return _0x56158a&&_0x3b5561&&_0x4da243(_0x3a1efe,_0x59a8da,_0x3b5561),_0x3b5561;},_0x2ff648=(_0x85d661,_0x144e6a)=>(_0x423871,_0x21a280)=>_0x144e6a(_0x423871,_0x21a280,_0x85d661);const _0x205ac8=0x12c,_0x2d56cf=0x64,_0x451ef2=()=>{let _0x1d4a20=[],_0x45eec5=!0x1;return _0x47533a=>{const _0x29313d=_0x4f28;_0x1d4a20[_0x29313d(0x13d)](_0x47533a),_0x45eec5||(_0x45eec5=!0x0,setTimeout(()=>{const _0x1b44b0=_0x29313d;_0x1d4a20[_0x1b44b0(0x255)](_0x2ab970=>_0x2ab970()),_0x1d4a20=[],_0x45eec5=!0x1;}));};};let _0x1a3ce8=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x4fb3c5,_0xa488b1,_0x2b847e,_0x2acaf2,_0x447fec,_0x2f8af7,_0x17a1f1,_0x404e0f){const _0x3dd2af=_0x3bc2c8;super(),_0x314dc6(this,_0x3dd2af(0x404),!0x1),_0x314dc6(this,_0x3dd2af(0x276),!0x1),_0x314dc6(this,_0x3dd2af(0x269),new _0x266483[(_0x3dd2af(0x43e))](new Map())),_0x314dc6(this,_0x3dd2af(0x401),this['_cursorInfo$'][_0x3dd2af(0x4eb)]()),_0x314dc6(this,'_roomMembers$',new _0x266483[(_0x3dd2af(0x43e))]([])),_0x314dc6(this,_0x3dd2af(0x3a0),this[_0x3dd2af(0x49b)][_0x3dd2af(0x198)](_0x266483[_0x3dd2af(0x41c)](_0x205ac8))),_0x314dc6(this,_0x3dd2af(0x409),_0x5b7cfd[_0x3dd2af(0x115)]((_0x22d196,_0x3454ab)=>{const _0x463569=_0x3dd2af,_0x5d26f7={'eventID':_0x56cbe4[_0x463569(0x484)][_0x463569(0x234)],'data':{'unitID':this['unitID'],'memberID':this[_0x463569(0x3cf)][_0x463569(0x2d0)](),'selection':_0x4d1b35[_0x463569(0x211)](_0x22d196,_0x3454ab[_0x463569(0x177)])}};this['_session']['send'](_0x5d26f7,this[_0x463569(0x1b0)]);},_0x2d56cf)),(this[_0x3dd2af(0x1b0)]=_0x4fb3c5,this['_session']=_0xa488b1,this[_0x3dd2af(0x30f)]=_0x2b847e,this[_0x3dd2af(0x184)]=_0x2acaf2,this[_0x3dd2af(0x159)]=_0x447fec,this['_univerInstanceService']=_0x2f8af7,this[_0x3dd2af(0x2c6)]=_0x17a1f1,this[_0x3dd2af(0x243)]=_0x404e0f);}get['cursorInfo'](){const _0x3fbc6f=_0x3bc2c8;return this[_0x3fbc6f(0x269)][_0x3fbc6f(0x21b)]();}get[_0x3bc2c8(0x3d3)](){const _0x31863c=_0x3bc2c8;return this[_0x31863c(0x49b)][_0x31863c(0x21b)]();}[_0x3bc2c8(0x314)](){const _0x4e434e=_0x3bc2c8;super[_0x4e434e(0x314)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x4e434e(0x10e)](),this[_0x4e434e(0x49b)][_0x4e434e(0xe4)]([]),this[_0x4e434e(0x49b)][_0x4e434e(0x10e)]();}[_0x3bc2c8(0x341)](){const _0x2fea70=_0x3bc2c8;this[_0x2fea70(0x276)]||(this[_0x2fea70(0x276)]=!0x0,this[_0x2fea70(0x3cf)][_0x2fea70(0x509)][_0x2fea70(0x198)](_0x266483['takeUntil'](this[_0x2fea70(0x2dd)]))['subscribe'](_0x155047=>{const _0x499ae0=_0x2fea70;_0x155047===_0x2d9d4e[_0x499ae0(0x322)]?this['_toggleOnline']():this[_0x499ae0(0x3e9)]();}),this[_0x2fea70(0x3cf)][_0x2fea70(0x164)][_0x2fea70(0x198)](_0x266483['takeUntil'](this[_0x2fea70(0x2dd)]))[_0x2fea70(0x2f5)](_0x1dd4e5=>{const _0x439ad5=_0x2fea70,_0x1290b4=_0x1dd4e5[_0x439ad5(0xe1)];_0x1290b4===_0x56cbe4[_0x439ad5(0x484)][_0x439ad5(0x234)]&&this['_onCursorUpdate'](_0x1dd4e5),_0x1290b4===_0x56cbe4['CollaborationEvent'][_0x439ad5(0x44d)]&&this[_0x439ad5(0x369)](_0x1dd4e5);}),this['_onRefRangeChange'](),this[_0x2fea70(0x131)](this[_0x2fea70(0x2c6)]['onCommandExecuted'](_0x1bc180=>{const _0x187af7=_0x2fea70;if(this[_0x187af7(0x404)]&&_0x1bc180['id']===_0xa62622[_0x187af7(0x32e)]['id']&&_0x1bc180[_0x187af7(0x3c2)][_0x187af7(0x373)]===this['unitID']){const _0x302b82=_0x1bc180[_0x187af7(0x3c2)];this[_0x187af7(0x409)](_0x302b82[_0x187af7(0x2e3)],_0x302b82[_0x187af7(0x4ff)][0x0]);}})));}[_0x3bc2c8(0x512)](_0x2392cd){const _0x3fa984=_0x3bc2c8;var _0x87f540,_0x280117;const {memberID:_0x206fe0,selection:_0x402d0f}=_0x2392cd[_0x3fa984(0x2db)],{sheetName:_0x6cb935,range:_0x2a9d0f}=_0x4d1b35['deserializeRangeWithSheet'](_0x402d0f),_0x5b238e={'name':(_0x280117=(_0x87f540=this[_0x3fa984(0x159)][_0x3fa984(0x3c1)](this['unitID'],_0x206fe0))==null?void 0x0:_0x87f540['name'])!=null?_0x280117:_0x3fa984(0x1ce),'range':this['_getMergeRange'](_0x6cb935,_0x2a9d0f),'sheetID':_0x6cb935,'color':this['_colorAssignService'][_0x3fa984(0x33d)](_0x206fe0),'selection':_0x402d0f},_0x213984=this[_0x3fa984(0x4b6)];_0x213984[_0x3fa984(0x10d)](_0x206fe0,_0x5b238e),this[_0x3fa984(0x269)][_0x3fa984(0xe4)](_0x213984);}['_onCursorDelete'](_0x4554e0){const _0x25df59=_0x3bc2c8,{memberID:_0x23c2e2}=_0x4554e0[_0x25df59(0x2db)],_0x6228cb=this[_0x25df59(0x4b6)];_0x6228cb[_0x25df59(0x344)](_0x23c2e2),this[_0x25df59(0x269)]['next'](_0x6228cb);}['_getMergeRange'](_0x3f8318,_0x280993){const _0x39ef20=_0x3bc2c8;var _0x4dfec4,_0x34d3fb;const _0x35722d=(_0x34d3fb=(_0x4dfec4=this[_0x39ef20(0x10b)][_0x39ef20(0x279)](this[_0x39ef20(0x1b0)]))==null?void 0x0:_0x4dfec4[_0x39ef20(0x132)](_0x3f8318))==null?void 0x0:_0x34d3fb[_0x39ef20(0x35a)]();return(_0x35722d==null?void 0x0:_0x35722d[_0x39ef20(0xf7)](_0x282e39=>_0x5b7cfd[_0x39ef20(0x224)][_0x39ef20(0x2fc)](_0x282e39,_0x280993)))||_0x280993;}[_0x3bc2c8(0x217)](){const _0x108777=_0x3bc2c8,_0x5ef3b2=new _0x5b7cfd[(_0x108777(0x12c))](),_0x3c81af=_0x451ef2(),_0x1cc1e1=()=>{const _0x2da676=_0x108777;_0x5ef3b2[_0x2da676(0x314)]();const _0xce86a2=(_0x57052a,_0x21dab1,_0xaf0cac,_0x433ad4)=>{const _0x14fe69=_0x2da676;let _0x34799b=[];switch(_0x57052a['id']){case _0xa62622['EffectRefRangId'][_0x14fe69(0x41e)]:{_0x34799b=_0xa62622[_0x14fe69(0x116)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x4bc)]:{_0x34799b=_0xa62622['handleDeleteRangeMoveUp'](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x1dd)]:{_0x34799b=_0xa62622[_0x14fe69(0x328)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x399)]:{_0x34799b=_0xa62622[_0x14fe69(0x267)](_0x57052a,_0x433ad4);break;}case _0xa62622['EffectRefRangId'][_0x14fe69(0x323)]:{_0x34799b=_0xa62622[_0x14fe69(0x215)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0xda)]:{_0x34799b=_0xa62622[_0x14fe69(0x227)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x297)]:{_0x34799b=_0xa62622[_0x14fe69(0x288)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x182)]:{_0x34799b=_0xa62622['handleIRemoveCol'](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x456)]:{_0x34799b=_0xa62622[_0x14fe69(0x2bc)](_0x57052a,_0x433ad4);break;}}const _0x28e1cf=_0xa62622['runRefRangeMutations'](_0x34799b,_0x433ad4),_0x277039=this['cursorInfo']['get'](_0x21dab1);if(_0x277039&&_0x28e1cf){const _0x7c0cd4={..._0x277039,'range':_0x28e1cf};this['cursorInfo']['set'](_0x21dab1,_0x7c0cd4),_0x3c81af(()=>{const _0x1d9400=_0x14fe69,_0x540157=this[_0x1d9400(0x243)]['registerRefRange'](_0x28e1cf,_0x424d51=>(_0x540157[_0x1d9400(0x314)](),_0xce86a2(_0x424d51,_0x21dab1,_0xaf0cac,_0x28e1cf)));_0x5ef3b2[_0x1d9400(0x225)](_0x540157);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2da676(0x255)]((_0x2afa6a,_0xbbbeb8)=>{const _0x3ab25b=_0x2da676,{range:_0x3d9b1c,sheetID:_0x203ed6}=_0x2afa6a,_0x24aa44=this['_refRangeService'][_0x3ab25b(0x223)](_0x3d9b1c,_0x53c8d0=>(_0x24aa44['dispose'](),_0xce86a2(_0x53c8d0,_0xbbbeb8,_0x203ed6,_0x3d9b1c)));_0x5ef3b2[_0x3ab25b(0x225)](_0x24aa44);});};this['disposeWithMe'](_0x5b7cfd[_0x108777(0x3d9)](this[_0x108777(0x269)][_0x108777(0x2f5)](()=>{_0x1cc1e1();})));}[_0x3bc2c8(0x358)](){const _0x231e54=_0x3bc2c8;var _0x9c4577,_0xd058f5;if(this[_0x231e54(0x404)]=!0x0,((_0x9c4577=this[_0x231e54(0x10b)][_0x231e54(0x1b8)]())==null?void 0x0:_0x9c4577[_0x231e54(0x183)]())!==this[_0x231e54(0x1b0)])return;const _0x5c3a89=(_0xd058f5=this[_0x231e54(0x30f)][_0x231e54(0x451)](_0xa62622[_0x231e54(0x34b)])['getCurrentSelections']())==null?void 0x0:_0xd058f5[0x0],_0x4642a3=this[_0x231e54(0x10b)]['getCurrentUnitForType'](_0x5b7cfd[_0x231e54(0x4bb)][_0x231e54(0x301)])['getActiveSheet']();_0x5c3a89&&_0x4642a3&&this[_0x231e54(0x409)](_0x4642a3[_0x231e54(0x43d)](),_0x5c3a89);}[_0x3bc2c8(0x3e9)](){const _0x2c77ae=_0x3bc2c8;this[_0x2c77ae(0x404)]=!0x1;}};_0x1a3ce8=_0x1bb410([_0x2ff648(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2ff648(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2e16f3)),_0x2ff648(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2ff648(0x5,_0x5b7cfd['IUniverInstanceService']),_0x2ff648(0x6,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ff648(0x7,_0x5b7cfd['Inject'](_0xa62622['RefRangeService']))],_0x1a3ce8);var _0x41752a=Object[_0x3bc2c8(0x361)],_0x387954=Object[_0x3bc2c8(0x48b)],_0x49e3d6=(_0x5e2a67,_0x957da0,_0x1e6bfd,_0x1dec26)=>{const _0x28694f=_0x3bc2c8;for(var _0xdc9859=_0x1dec26>0x1?void 0x0:_0x1dec26?_0x387954(_0x957da0,_0x1e6bfd):_0x957da0,_0x55051b=_0x5e2a67[_0x28694f(0x3d6)]-0x1,_0x6e80a6;_0x55051b>=0x0;_0x55051b--)(_0x6e80a6=_0x5e2a67[_0x55051b])&&(_0xdc9859=(_0x1dec26?_0x6e80a6(_0x957da0,_0x1e6bfd,_0xdc9859):_0x6e80a6(_0xdc9859))||_0xdc9859);return _0x1dec26&&_0xdc9859&&_0x41752a(_0x957da0,_0x1e6bfd,_0xdc9859),_0xdc9859;},_0x2f60ff=(_0x1bfd2b,_0x5a51e9)=>(_0x435a8a,_0x3b6904)=>_0x5a51e9(_0x435a8a,_0x3b6904,_0x1bfd2b);const _0x5427ce=0x12c,_0x1ef830=0x64;let _0x2063a7=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x3b225e,_0x4c0cb6,_0xcb583f,_0x187c1b,_0x20d807,_0x1f45b0,_0x49dd8f,_0x357ff0,_0x17ca73){const _0x26a78c=_0x3bc2c8;super(),_0x314dc6(this,'_online',!0x1),_0x314dc6(this,_0x26a78c(0x276),!0x1),_0x314dc6(this,_0x26a78c(0x269),new _0x266483[(_0x26a78c(0x43e))](new Map())),_0x314dc6(this,_0x26a78c(0x401),this[_0x26a78c(0x269)][_0x26a78c(0x4eb)]()),_0x314dc6(this,'_roomMembers$',new _0x266483[(_0x26a78c(0x43e))]([])),_0x314dc6(this,'roomMembers$',this[_0x26a78c(0x49b)][_0x26a78c(0x198)](_0x266483[_0x26a78c(0x41c)](_0x5427ce))),_0x314dc6(this,_0x26a78c(0x409),_0x5b7cfd[_0x26a78c(0x115)](_0x19e0ac=>{const _0x4724da=_0x26a78c,_0x43e757={'eventID':_0x56cbe4[_0x4724da(0x484)][_0x4724da(0x234)],'data':{'unitID':this[_0x4724da(0x1b0)],'memberID':this[_0x4724da(0x3cf)][_0x4724da(0x2d0)](),'selection':_0x57f458(_0x19e0ac)}};this[_0x4724da(0x3cf)][_0x4724da(0x441)](_0x43e757,this[_0x4724da(0x1b0)]);},_0x1ef830)),(this[_0x26a78c(0x1b0)]=_0x3b225e,this['_session']=_0x4c0cb6,this[_0x26a78c(0x30f)]=_0xcb583f,this[_0x26a78c(0x184)]=_0x187c1b,this[_0x26a78c(0x159)]=_0x20d807,this[_0x26a78c(0x38c)]=_0x1f45b0,this[_0x26a78c(0x3a1)]=_0x49dd8f,this[_0x26a78c(0x10b)]=_0x357ff0,this[_0x26a78c(0x2c6)]=_0x17ca73);}get[_0x3bc2c8(0x4b6)](){const _0x476ff3=_0x3bc2c8;return this[_0x476ff3(0x269)][_0x476ff3(0x21b)]();}get[_0x3bc2c8(0x3d3)](){const _0x1538e4=_0x3bc2c8;return this[_0x1538e4(0x49b)][_0x1538e4(0x21b)]();}[_0x3bc2c8(0x314)](){const _0x1b3275=_0x3bc2c8;super[_0x1b3275(0x314)](),this['_cursorInfo$'][_0x1b3275(0xe4)](new Map()),this['_cursorInfo$']['complete'](),this[_0x1b3275(0x49b)][_0x1b3275(0xe4)]([]),this[_0x1b3275(0x49b)][_0x1b3275(0x10e)]();}[_0x3bc2c8(0x341)](){const _0xa14973=_0x3bc2c8;this[_0xa14973(0x276)]||(this['_init']=!0x0,this[_0xa14973(0x3cf)]['sessionStatus$'][_0xa14973(0x198)](_0x266483[_0xa14973(0x46b)](this[_0xa14973(0x2dd)]))[_0xa14973(0x2f5)](_0x4973da=>{const _0x32a0e4=_0xa14973;_0x4973da===_0x2d9d4e['ONLINE']?this[_0x32a0e4(0x358)]():this[_0x32a0e4(0x3e9)]();}),this[_0xa14973(0x3cf)][_0xa14973(0x164)][_0xa14973(0x198)](_0x266483['takeUntil'](this[_0xa14973(0x2dd)]))[_0xa14973(0x2f5)](_0x4ccb67=>{const _0x10e439=_0xa14973,_0x137696=_0x4ccb67['eventID'];_0x137696===_0x56cbe4['CollaborationEvent'][_0x10e439(0x234)]&&this['_onCursorUpdate'](_0x4ccb67),_0x137696===_0x56cbe4['CollaborationEvent'][_0x10e439(0x44d)]&&this['_onCursorDelete'](_0x4ccb67);}),this['disposeWithMe'](this[_0xa14973(0x2c6)][_0xa14973(0x15f)](_0x36d67a=>{const _0x4e67ed=_0xa14973,_0x4c3b69=_0x36d67a[_0x4e67ed(0x3c2)];_0x4c3b69!=null&&this[_0x4e67ed(0x404)]&&_0x36d67a['id']===_0x3e2148[_0x4e67ed(0x1aa)]['id']&&_0x4c3b69[_0x4e67ed(0x373)]===this[_0x4e67ed(0x1b0)]&&_0x4c3b69['isEditing']===!0x1&&this[_0x4e67ed(0x409)](_0x4c3b69[_0x4e67ed(0x2d5)]);})),this['_syncEditingCollabCursorService'][_0xa14973(0x1b9)][_0xa14973(0x198)](_0x266483[_0xa14973(0x46b)](this[_0xa14973(0x2dd)]))['subscribe'](_0x556c4b=>{const _0x58cb93=_0xa14973;if((_0x556c4b==null?void 0x0:_0x556c4b[_0x58cb93(0x1b0)])!==this[_0x58cb93(0x1b0)])return;const _0x187f16={'eventID':_0x56cbe4[_0x58cb93(0x484)][_0x58cb93(0x234)],'data':_0x556c4b};this['_onCursorUpdate'](_0x187f16);}),this[_0xa14973(0x131)](this[_0xa14973(0x2c6)]['onCommandExecuted'](_0x541f2a=>{const _0x4b6633=_0xa14973;if(_0x541f2a[_0x4b6633(0x3c2)]==null)return;const _0x5242cf=_0x541f2a[_0x4b6633(0x3c2)];if(_0x541f2a['id']!==_0x3e2148['RichTextEditingMutation']['id']||_0x5242cf[_0x4b6633(0x373)]!==this[_0x4b6633(0x1b0)])return;const _0x1716af={'id':_0x4b6633(0x2d2),'params':_0x5242cf},_0x1fbe5d=this[_0x4b6633(0x4b6)];for(const [_0xe43722,_0x59a3f4]of _0x1fbe5d){const _0x20cdc9={'id':_0x4b6633(0x2d2),'params':{'unitId':this[_0x4b6633(0x1b0)],'actions':null,'textRanges':_0x59a3f4[_0x4b6633(0x2d5)]}},_0x12538e=this[_0x4b6633(0x3a1)]['transformMutation'](_0x1716af,_0x20cdc9,!0x1);if(_0x56cbe4[_0x4b6633(0x197)](_0x12538e))throw _0x12538e[_0x4b6633(0x476)];_0x1fbe5d[_0x4b6633(0x10d)](_0xe43722,{..._0x59a3f4,'ranges':_0x12538e[_0x4b6633(0x275)]['params'][_0x4b6633(0x138)]});}queueMicrotask(()=>{const _0x3f32a8=_0x4b6633;this[_0x3f32a8(0x269)][_0x3f32a8(0xe4)](_0x1fbe5d);});})));}[_0x3bc2c8(0x512)](_0x448554){const _0x293b22=_0x3bc2c8;var _0x247391,_0x5cf58b;const {memberID:_0x5558b7,selection:_0x34d2a9}=_0x448554[_0x293b22(0x2db)],_0x19e780=_0x39789b(_0x34d2a9),_0x177a63=(_0x5cf58b=(_0x247391=this[_0x293b22(0x159)][_0x293b22(0x3c1)](this['unitID'],_0x5558b7))==null?void 0x0:_0x247391['name'])!=null?_0x5cf58b:'Unknown\x20user',_0x3bd6e0={'color':this[_0x293b22(0x184)]['assignAColorForMemberID'](_0x5558b7),'name':_0x177a63,'ranges':_0x19e780},_0x42f4bd=this[_0x293b22(0x4b6)];_0x42f4bd[_0x293b22(0x10d)](_0x5558b7,_0x3bd6e0),this[_0x293b22(0x269)]['next'](_0x42f4bd);}[_0x3bc2c8(0x369)](_0x252bb4){const _0x1e60d0=_0x3bc2c8,{memberID:_0x1a873d}=_0x252bb4['data'],_0x1b192e=this[_0x1e60d0(0x4b6)];_0x1b192e[_0x1e60d0(0x344)](_0x1a873d),this['_cursorInfo$'][_0x1e60d0(0xe4)](_0x1b192e);}['_toggleOnline'](){const _0x272229=_0x3bc2c8;var _0x506944;if(this['_online']=!0x0,((_0x506944=this[_0x272229(0x10b)][_0x272229(0x1b8)]())==null?void 0x0:_0x506944[_0x272229(0x183)]())!==this[_0x272229(0x1b0)])return;const _0x14d1b9=this[_0x272229(0x30f)]['get'](_0x3e2148['DocSelectionManagerService'])[_0x272229(0x46d)]();Array[_0x272229(0x1cc)](_0x14d1b9)&&_0x14d1b9[_0x272229(0x3d6)]>0x0&&this['_updateLocalCursor'](_0x14d1b9);}[_0x3bc2c8(0x3e9)](){const _0x2a8867=_0x3bc2c8;this[_0x2a8867(0x404)]=!0x1;}};_0x2063a7=_0x49e3d6([_0x2f60ff(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2f60ff(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2e16f3)),_0x2f60ff(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2f60ff(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56b650)),_0x2f60ff(0x6,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x2f60ff(0x7,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x2f60ff(0x8,_0x5b7cfd['ICommandService'])],_0x2063a7);var _0x310a3f=Object[_0x3bc2c8(0x361)],_0x2b8eca=Object[_0x3bc2c8(0x48b)],_0x394fdc=(_0x2c774e,_0x3084a5,_0x1e288c,_0x510cd0)=>{const _0x3b6bcc=_0x3bc2c8;for(var _0x5a7370=_0x510cd0>0x1?void 0x0:_0x510cd0?_0x2b8eca(_0x3084a5,_0x1e288c):_0x3084a5,_0x4448f1=_0x2c774e[_0x3b6bcc(0x3d6)]-0x1,_0xe6dc3d;_0x4448f1>=0x0;_0x4448f1--)(_0xe6dc3d=_0x2c774e[_0x4448f1])&&(_0x5a7370=(_0x510cd0?_0xe6dc3d(_0x3084a5,_0x1e288c,_0x5a7370):_0xe6dc3d(_0x5a7370))||_0x5a7370);return _0x510cd0&&_0x5a7370&&_0x310a3f(_0x3084a5,_0x1e288c,_0x5a7370),_0x5a7370;},_0x53e2b2=(_0x383554,_0x1bd874)=>(_0x283b7c,_0x16df0a)=>_0x1bd874(_0x283b7c,_0x16df0a,_0x383554);let _0x47bd3e=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x53c64a,_0x36beeb,_0x39a921){const _0x11742b=_0x3bc2c8;super(),_0x314dc6(this,'_entities',new Map()),_0x314dc6(this,_0x11742b(0x1cb),new _0x266483['Subject']()),(this[_0x11742b(0x10b)]=_0x53c64a,this[_0x11742b(0x30f)]=_0x36beeb,this[_0x11742b(0x24d)]=_0x39a921,this[_0x11742b(0x276)]());}[_0x3bc2c8(0x314)](){const _0x4c4641=_0x3bc2c8;super[_0x4c4641(0x314)](),this[_0x4c4641(0x1cb)][_0x4c4641(0x10e)](),this[_0x4c4641(0x2af)][_0x4c4641(0x255)](_0x3563d6=>_0x3563d6[_0x4c4641(0x314)]());}[_0x3bc2c8(0x4c6)](_0x4e7241){const _0x47693b=_0x3bc2c8;return this[_0x47693b(0x2af)][_0x47693b(0x232)](_0x4e7241)?this[_0x47693b(0x2af)]['get'](_0x4e7241)['cursorInfo$']:this['_entityInit$'][_0x47693b(0x198)](_0x266483['filter'](_0x22f28d=>_0x22f28d[_0x47693b(0x1b0)]===_0x4e7241),_0x266483['switchMap'](_0x59dca1=>_0x59dca1[_0x47693b(0x401)]));}[_0x3bc2c8(0x276)](){const _0x5e133f=_0x3bc2c8;this[_0x5e133f(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5e133f(0x4bb)]['UNIVER_SHEET'])[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x46b)](this[_0x5e133f(0x2dd)]))[_0x5e133f(0x2f5)](async _0x3c46ca=>{const _0x5f555a=_0x5e133f,_0x3dcbe3=_0x3c46ca[_0x5f555a(0x183)](),_0x456a1f=await this['_startSheetCollabCursor'](_0x3dcbe3);this[_0x5f555a(0x1cb)][_0x5f555a(0xe4)](_0x456a1f),this[_0x5f555a(0x2af)][_0x5f555a(0x10d)](_0x3dcbe3,_0x456a1f);}),this[_0x5e133f(0x10b)][_0x5e133f(0x327)](_0x5b7cfd[_0x5e133f(0x4bb)][_0x5e133f(0x3a6)])[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x46b)](this[_0x5e133f(0x2dd)]))[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x3b6)](_0x891f93=>!_0x891f93[_0x5e133f(0x183)]()['startsWith']('__')))[_0x5e133f(0x2f5)](async _0x5932c5=>{const _0x173235=_0x5e133f,_0x5a13b8=_0x5932c5[_0x173235(0x183)](),_0x9ebe64=await this[_0x173235(0x3bb)](_0x5a13b8);this['_entityInit$'][_0x173235(0xe4)](_0x9ebe64),this[_0x173235(0x2af)][_0x173235(0x10d)](_0x5a13b8,_0x9ebe64);}),_0x266483['merge'](this[_0x5e133f(0x10b)][_0x5e133f(0x4a5)](_0x5b7cfd[_0x5e133f(0x4bb)][_0x5e133f(0x3a6)]),this['_univerInstanceService'][_0x5e133f(0x4a5)](_0x5b7cfd['UniverInstanceType'][_0x5e133f(0x301)]))[_0x5e133f(0x198)](_0x266483['takeUntil'](this['dispose$']))[_0x5e133f(0x2f5)](_0x414575=>{const _0x3d0242=_0x5e133f,_0x15b358=_0x414575[_0x3d0242(0x183)](),_0x1d43b4=this[_0x3d0242(0x2af)][_0x3d0242(0x451)](_0x15b358);_0x1d43b4&&(_0x1d43b4[_0x3d0242(0x314)](),this[_0x3d0242(0x2af)][_0x3d0242(0x344)](_0x15b358));});}async[_0x3bc2c8(0x252)](_0x872b87){const _0x4f91e2=_0x3bc2c8,_0x3c6141=await this['_collabSessionService']['requireSession'](_0x872b87),_0xd222cf=this[_0x4f91e2(0x30f)]['createInstance'](_0x1a3ce8,_0x872b87,_0x3c6141);return _0xd222cf['init'](),_0xd222cf;}async[_0x3bc2c8(0x3bb)](_0x9a86aa){const _0x3bf350=_0x3bc2c8,_0x35aeaa=await this[_0x3bf350(0x24d)][_0x3bf350(0x318)](_0x9a86aa),_0x337961=this[_0x3bf350(0x30f)][_0x3bf350(0x1a3)](_0x2063a7,_0x9a86aa,_0x35aeaa);return _0x337961[_0x3bf350(0x341)](),_0x337961;}};_0x47bd3e=_0x394fdc([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x47bd3e),_0x53e2b2(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x53e2b2(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x53e2b2(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x1d8)]))],_0x47bd3e);const _0x433f4b=0x14,_0x297918=0xc8,_0x291fc2=0x4,_0x2ef760=0x5;function _0x27214b(_0x4be302,_0x2ab050){const _0x508c48=_0x3bc2c8;let {radius:_0xe704cd,width:_0x29b2d8,height:_0x1b7970}=_0x2ab050;_0xe704cd=_0xe704cd!=null?_0xe704cd:0x0,_0x29b2d8=_0x29b2d8!=null?_0x29b2d8:0x1e,_0x1b7970=_0x1b7970!=null?_0x1b7970:0x1e;let _0x20a282=0x0,_0x3bceed=0x0,_0x2f7fe8=0x0;_0x20a282=_0x3bceed=_0x2f7fe8=Math[_0x508c48(0x17d)](_0xe704cd,_0x29b2d8/0x2,_0x1b7970/0x2),_0x4be302[_0x508c48(0x154)](),_0x4be302[_0x508c48(0x319)](_0x20a282,0x0),_0x4be302['lineTo'](_0x29b2d8-_0x3bceed,0x0),_0x4be302[_0x508c48(0x256)](_0x29b2d8-_0x3bceed,_0x3bceed,_0x3bceed,Math['PI']*0x3/0x2,0x0,!0x1),_0x4be302['lineTo'](_0x29b2d8,_0x1b7970-_0x2f7fe8),_0x4be302[_0x508c48(0x256)](_0x29b2d8-_0x2f7fe8,_0x1b7970-_0x2f7fe8,_0x2f7fe8,0x0,Math['PI']/0x2,!0x1),_0x4be302[_0x508c48(0x366)](0x0,_0x1b7970),_0x4be302[_0x508c48(0x366)](0x0,_0x20a282),_0x4be302[_0x508c48(0x256)](_0x20a282,_0x20a282,_0x20a282,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4be302[_0x508c48(0x21f)](),_0x2ab050[_0x508c48(0xe6)]&&(_0x4be302['save'](),_0x4be302[_0x508c48(0x2a0)]=_0x2ab050[_0x508c48(0xe6)],_0x2ab050[_0x508c48(0x4d8)]===_0x508c48(0x2df)?_0x4be302['fill'](_0x508c48(0x2df)):_0x4be302[_0x508c48(0xe6)](),_0x4be302[_0x508c48(0x468)]());}class _0xb13772 extends _0x46e2e3[_0x3bc2c8(0x343)]{constructor(_0x2fa082,_0x49c00c){const _0x2f7639=_0x3bc2c8;super(_0x2fa082,_0x49c00c),_0x314dc6(this,_0x2f7639(0x3da)),_0x314dc6(this,'text'),(this[_0x2f7639(0x3da)]=_0x49c00c==null?void 0x0:_0x49c00c[_0x2f7639(0x3da)],this[_0x2f7639(0x2a2)]=_0x49c00c==null?void 0x0:_0x49c00c['text']);}static[_0x3bc2c8(0xff)](_0x2097b5,_0x27727a){const _0x4ef287=_0x3bc2c8,{text:_0x464bab,color:_0x491705}=_0x27727a;_0x2097b5[_0x4ef287(0x3b3)](),_0x2097b5[_0x4ef287(0x3f0)]=_0x4ef287(0x19c);const _0x289e04=_0x2097b5['measureText'](_0x464bab)[_0x4ef287(0x1b3)],_0xbcc93f=Math[_0x4ef287(0x17d)](_0x289e04+0x2*_0x291fc2,_0x297918);_0x27214b(_0x2097b5,{'height':_0x433f4b,'radius':0x4,'width':_0xbcc93f,'fill':_0x491705,'evented':!0x1}),_0x2097b5['fillStyle']=_0x4ef287(0x499);const _0x22434f=_0x291fc2,_0x40c4b0=_0x433f4b-_0x2ef760,_0x2eb7d4=_0x297918-0x2*_0x291fc2;if(_0x289e04>_0x2eb7d4){let _0x547f10='',_0x218267=0x0;for(const _0x3ba4ca of _0x464bab){const _0x1ae43f=_0x2097b5[_0x4ef287(0x4aa)](_0x3ba4ca)['width'];if(_0x218267+_0x1ae43f<=_0x2eb7d4-_0x2097b5[_0x4ef287(0x4aa)](_0x4ef287(0x1fd))[_0x4ef287(0x1b3)])_0x547f10+=_0x3ba4ca,_0x218267+=_0x1ae43f;else{_0x547f10+=_0x4ef287(0x1fd);break;}}_0x2097b5['fillText'](_0x547f10,_0x22434f,_0x40c4b0);}else _0x2097b5[_0x4ef287(0x278)](_0x464bab,_0x22434f,_0x40c4b0);_0x2097b5[_0x4ef287(0x468)]();}[_0x3bc2c8(0x1c7)](_0x5d6abb){const _0x367cae=_0x3bc2c8;_0xb13772[_0x367cae(0xff)](_0x5d6abb,this);}}const _0x255709=_0x3bc2c8(0x30d),_0x3eff7a=_0x3bc2c8(0x14a),_0x1da325=_0x3bc2c8(0x220),_0x506fa5=0x6,_0x5221cc=1.5,_0x521a07=0x4,_0x55c328=1.5,_0x2bf989=_0x3bc2c8(0x490);class _0x330227{constructor(_0x4d7dde,_0x3fadb0,_0x1bfb63,_0x4a535f){const _0xfba18f=_0x3bc2c8;_0x314dc6(this,_0xfba18f(0x21d),[]),_0x314dc6(this,_0xfba18f(0x231),null),_0x314dc6(this,_0xfba18f(0x351),null),_0x314dc6(this,'_anchorDot',null),_0x314dc6(this,_0xfba18f(0x4cc),null),_0x314dc6(this,'_eventUnsubscribe',null),(this[_0xfba18f(0x362)]=_0x4d7dde,this['_scene']=_0x3fadb0,this[_0xfba18f(0xdf)]=_0x1bfb63,this['_document']=_0x4a535f,this[_0xfba18f(0x379)]());}set[_0x3bc2c8(0x1ed)](_0x1296a2){const _0x1988ef=_0x3bc2c8;_0x1296a2?(this[_0x1988ef(0x2f7)]&&this[_0x1988ef(0x2f7)][_0x1988ef(0x47e)](),this[_0x1988ef(0x351)]&&this[_0x1988ef(0x351)][_0x1988ef(0x29f)]()):(this[_0x1988ef(0x2f7)]&&this['_anchorDot']['show'](),this[_0x1988ef(0x351)]&&this[_0x1988ef(0x351)]['hide']());}['dispose'](){const _0x3cf148=_0x3bc2c8;for(const _0x15f1f5 of this[_0x3cf148(0x21d)])_0x15f1f5[_0x3cf148(0x314)]();this[_0x3cf148(0x351)]&&this[_0x3cf148(0x351)][_0x3cf148(0x314)](),this[_0x3cf148(0x2f7)]&&this['_anchorDot'][_0x3cf148(0x314)](),this[_0x3cf148(0x231)]&&this[_0x3cf148(0x231)][_0x3cf148(0x314)](),this[_0x3cf148(0x3fc)]&&this[_0x3cf148(0x3fc)]();}[_0x3bc2c8(0x379)](){const _0x31a2c3=_0x3bc2c8;var _0x1e7d3f;const {_docSkeleton:_0x4c2fee,_document:_0x4430a3}=this,{color:_0x7d9f22,name:_0x3fd76a,ranges:_0x329f75}=this[_0x31a2c3(0x362)],_0x399e10=_0x4430a3[_0x31a2c3(0x2d1)](),{docsLeft:_0x14fc12,docsTop:_0x3fe0ba}=_0x399e10,_0x48cc1b=new _0x618f14[(_0x31a2c3(0xf4))](_0x399e10,_0x4c2fee);for(const {startOffset:_0x561fc3,endOffset:_0x5f25b7,collapsed:_0x43e706,isActive:_0xf27d01}of _0x329f75){const _0x17883f=_0x4c2fee['findNodePositionByCharIndex'](_0x561fc3),_0x3bdb49=_0x4c2fee[_0x31a2c3(0x150)](_0x5f25b7);if(_0xf27d01){const {contentBoxPointGroup:_0x6304a1}=_0x48cc1b['getRangePointData'](_0x3bdb49,_0x3bdb49);if(_0x6304a1[_0x31a2c3(0x3d6)]===0x0)continue;this[_0x31a2c3(0x286)](_0x7d9f22,_0x6304a1,_0x14fc12,_0x3fe0ba,_0x3fd76a),this[_0x31a2c3(0x3fc)]=this[_0x31a2c3(0x365)]();}if(!_0x43e706&&_0x17883f&&_0x3bdb49){if(_0x618f14[_0x31a2c3(0x36a)](_0x17883f,_0x3bdb49)){const _0x1deb30=new _0x618f14[(_0x31a2c3(0x239))](_0x399e10,_0x4c2fee),{pointGroup:_0xbdda10}=(_0x1e7d3f=_0x1deb30[_0x31a2c3(0x334)](_0x17883f,_0x3bdb49))!=null?_0x1e7d3f:{};if(_0xbdda10==null||_0xbdda10['length']===0x0)continue;this['_drawRectRange'](_0x7d9f22,_0xbdda10,_0x14fc12,_0x3fe0ba);}else{const {contentBoxPointGroup:_0x89b832}=_0x48cc1b[_0x31a2c3(0x334)](_0x17883f,_0x3bdb49);if(_0x89b832[_0x31a2c3(0x3d6)]===0x0)continue;this[_0x31a2c3(0x437)](_0x7d9f22,_0x89b832,_0x14fc12,_0x3fe0ba);}}}}[_0x3bc2c8(0x286)](_0x30fdde,_0xfdcf1d,_0x508a86,_0x481047,_0x128553){const _0x14a5d1=_0x3bc2c8,_0x16cfc4=this['_getAnchorBounding'](_0xfdcf1d),{left:_0x17bc78,top:_0x3953f3,height:_0x500c10}=_0x16cfc4,_0x4ee4d4=this[_0x14a5d1(0x316)](),_0x42dc2d=_0x55c328/_0x4ee4d4,_0x569e2f=new _0x46e2e3['Rect'](_0x255709+_0x5b7cfd[_0x14a5d1(0x2f6)]['generateRandomId'](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047,'height':_0x500c10,'width':_0x5221cc,'fill':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'strokeWidth':_0x42dc2d,'stroke':_0x2bf989,'evented':!0x0});this['_anchor']=_0x569e2f,this[_0x14a5d1(0x4f0)][_0x14a5d1(0x1a5)](_0x569e2f,_0x618f14[_0x14a5d1(0x2ad)]);const _0x223fb8=new _0x46e2e3['Rect'](_0x255709+_0x5b7cfd['Tools'][_0x14a5d1(0x1d9)](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047-_0x521a07/0x2,'height':_0x521a07,'width':_0x521a07,'fill':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'strokeWidth':0x0,'stroke':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'evented':!0x1});this[_0x14a5d1(0x2f7)]=_0x223fb8,this['_scene'][_0x14a5d1(0x1a5)](_0x223fb8,_0x618f14['TEXT_RANGE_LAYER_INDEX']);const _0x29d7df=new _0xb13772(_0x255709+_0x5b7cfd[_0x14a5d1(0x2f6)]['generateRandomId'](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047-_0x433f4b,'text':_0x128553,'color':_0x30fdde});this[_0x14a5d1(0x351)]=_0x29d7df,this['_scene']['addObject'](_0x29d7df,_0x618f14[_0x14a5d1(0x2ad)]),this[_0x14a5d1(0x1ed)]=!0x1;}[_0x3bc2c8(0x365)](){const _0x989078=_0x3bc2c8,_0x552300=this[_0x989078(0x231)]['onPointerEnter$'][_0x989078(0x457)](()=>{this['_hover']=!0x0;}),_0xd11fd2=this[_0x989078(0x231)][_0x989078(0x34d)][_0x989078(0x457)](()=>{const _0x2218d0=_0x989078;this[_0x2218d0(0x4cc)]&&clearTimeout(this[_0x2218d0(0x4cc)]),this['_hideTimer']=setTimeout(()=>{const _0x325fd2=_0x2218d0;this[_0x325fd2(0x1ed)]=!0x1;},0x7d0);});return()=>{const _0x123c90=_0x989078;_0x552300[_0x123c90(0x114)](),_0xd11fd2['unsubscribe']();};}[_0x3bc2c8(0x437)](_0x2eee2a,_0x2940d8,_0x3078e0,_0x43f0fa){const _0x3ea458=_0x3bc2c8,_0x3e6734=new _0x5b7cfd[(_0x3ea458(0x496))](_0x2eee2a)['setAlpha'](0.2)[_0x3ea458(0x360)](),_0x3957ef=new _0x46e2e3[(_0x3ea458(0x47c))](_0x3eff7a+_0x5b7cfd[_0x3ea458(0x2f6)][_0x3ea458(0x1d9)](_0x506fa5),{'pointsGroup':_0x2940d8,'fill':_0x3e6734||_0x46e2e3[_0x3ea458(0x3cc)](_0x5b7cfd[_0x3ea458(0x3f4)][_0x3ea458(0x439)],0.2),'left':_0x3078e0,'top':_0x43f0fa,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3ea458(0x21d)][_0x3ea458(0x13d)](_0x3957ef),this[_0x3ea458(0x4f0)]['addObject'](_0x3957ef,_0x618f14[_0x3ea458(0x2ad)]);}[_0x3bc2c8(0x2fa)](_0x1c38d9,_0x5df758,_0x56b2eb,_0x4ea399){const _0x20066e=_0x3bc2c8,_0xa57774=new _0x5b7cfd[(_0x20066e(0x496))](_0x1c38d9)[_0x20066e(0x4b5)](0.2)[_0x20066e(0x360)](),_0x39c583=new _0x46e2e3[(_0x20066e(0x47c))](_0x1da325+_0x5b7cfd['Tools'][_0x20066e(0x1d9)](_0x506fa5),{'pointsGroup':_0x5df758,'fill':_0xa57774||_0x46e2e3[_0x20066e(0x3cc)](_0x5b7cfd[_0x20066e(0x3f4)][_0x20066e(0x439)],0.2),'left':_0x56b2eb,'top':_0x4ea399,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20066e(0x21d)][_0x20066e(0x13d)](_0x39c583),this[_0x20066e(0x4f0)][_0x20066e(0x1a5)](_0x39c583,_0x618f14[_0x20066e(0x2ad)]);}[_0x3bc2c8(0x27b)](_0x1d51fc){const _0x3a86fb=_0x1d51fc[0x0],_0x3f1f20=_0x3a86fb[0x0],_0x4bb393=_0x3a86fb[0x2],{x:_0x515343,y:_0x905f34}=_0x3f1f20,{x:_0x1fb7c3,y:_0x42b07d}=_0x4bb393;return{'left':_0x515343,'top':_0x905f34,'width':_0x1fb7c3-_0x515343,'height':_0x42b07d-_0x905f34};}[_0x3bc2c8(0x316)](){const _0x314859=_0x3bc2c8,{scaleX:_0x19ee83,scaleY:_0x353371}=this[_0x314859(0x4f0)]['getAncestorScale']();return Math['max'](_0x19ee83,_0x353371);}}var _0x355836=Object[_0x3bc2c8(0x361)],_0x25da5f=Object[_0x3bc2c8(0x48b)],_0x4fae0c=(_0x42eec8,_0x41c80d,_0x14f2c5,_0x584226)=>{for(var _0x1a6890=_0x584226>0x1?void 0x0:_0x584226?_0x25da5f(_0x41c80d,_0x14f2c5):_0x41c80d,_0x3e00a5=_0x42eec8['length']-0x1,_0x51df87;_0x3e00a5>=0x0;_0x3e00a5--)(_0x51df87=_0x42eec8[_0x3e00a5])&&(_0x1a6890=(_0x584226?_0x51df87(_0x41c80d,_0x14f2c5,_0x1a6890):_0x51df87(_0x1a6890))||_0x1a6890);return _0x584226&&_0x1a6890&&_0x355836(_0x41c80d,_0x14f2c5,_0x1a6890),_0x1a6890;},_0x4c8c24=(_0x2e1337,_0x1131a2)=>(_0x4f04b9,_0x28996e)=>_0x1131a2(_0x4f04b9,_0x28996e,_0x2e1337);let _0x260281=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x400fac,_0x487bd3,_0x49082b,_0x2982ea,_0x4b35b1){const _0x260dab=_0x3bc2c8;super(),_0x314dc6(this,'_cursorShapes',[]),_0x314dc6(this,_0x260dab(0x10a),[]),(this[_0x260dab(0x331)]=_0x400fac,this[_0x260dab(0x434)]=_0x487bd3,this[_0x260dab(0xf8)]=_0x49082b,this['_commandService']=_0x2982ea,this['_themeService']=_0x4b35b1,this[_0x260dab(0x276)]());}[_0x3bc2c8(0x276)](){const _0x504f79=_0x3bc2c8,_0xafcf92=this[_0x504f79(0x331)][_0x504f79(0x373)],_0x48b83f=this[_0x504f79(0x434)];this[_0x504f79(0x131)](_0x266483[_0x504f79(0x1ef)]([this[_0x504f79(0xf8)][_0x504f79(0x4c6)](_0xafcf92),this[_0x504f79(0x348)][_0x504f79(0x230)]])[_0x504f79(0x198)](_0x51de38[_0x504f79(0x39c)](([_0x2d381a,_0x230179])=>({'skeleton':_0x48b83f[_0x504f79(0x26f)](),'cursors':[..._0x2d381a[_0x504f79(0x4c2)]()][_0x504f79(0x448)](_0x31a71f=>({..._0x31a71f,'color':_0x230179[_0x31a71f[_0x504f79(0x3da)]]}))})))[_0x504f79(0x2f5)](_0x4dad92=>{const _0x434181=_0x504f79;if(this[_0x434181(0x2a9)](),_0x4dad92){const {skeleton:_0x57aafb,cursors:_0x123c0d}=_0x4dad92;this[_0x434181(0x37c)](_0x57aafb,_0x123c0d);}})),this[_0x504f79(0xfe)](),this[_0x504f79(0x4a6)]();}[_0x3bc2c8(0x37c)](_0xf89e9b,_0x27ae18){const _0x2291d0=_0x3bc2c8,{scene:_0x5a0ccb,mainComponent:_0x1775a8}=this[_0x2291d0(0x331)],_0x509170=_0x27ae18[_0x2291d0(0x39c)](_0x1988f4=>new _0x330227(_0x1988f4,_0x5a0ccb,_0xf89e9b,_0x1775a8));this[_0x2291d0(0xf2)]=_0x509170,this[_0x2291d0(0x10a)]=_0x27ae18;}[_0x3bc2c8(0x236)](){const _0x3e5df8=_0x3bc2c8;this[_0x3e5df8(0x2a9)]();const {scene:_0x66cbf8,mainComponent:_0x5ebcd7}=this['_context'],_0x205ae8=this[_0x3e5df8(0x434)][_0x3e5df8(0x26f)](),_0x4f178a=this[_0x3e5df8(0x10a)][_0x3e5df8(0x39c)](_0x15a943=>new _0x330227(_0x15a943,_0x66cbf8,_0x205ae8,_0x5ebcd7));this['_cursorShapes']=_0x4f178a;}[_0x3bc2c8(0x2a9)](){const _0x2dba12=_0x3bc2c8;this['_cursorShapes']['forEach'](_0x165807=>_0x165807[_0x2dba12(0x314)]()),this[_0x2dba12(0xf2)]=[];}[_0x3bc2c8(0x4a6)](){const _0x4ea157=_0x3bc2c8,_0x20f68c=[_0x618f14[_0x4ea157(0x3af)]['id']];this['disposeWithMe'](this[_0x4ea157(0x2c6)][_0x4ea157(0x15f)](_0x5bf0e7=>{const _0x23d03f=_0x4ea157;_0x20f68c[_0x23d03f(0x3a9)](_0x5bf0e7['id'])&&_0x5bf0e7['params'][_0x23d03f(0x373)]===this[_0x23d03f(0x331)][_0x23d03f(0x373)]&&this['_refreshCollabCursors']();}));}[_0x3bc2c8(0xfe)](){const _0x318200=_0x3bc2c8;this[_0x318200(0x131)](_0x5b7cfd[_0x318200(0x444)](this[_0x318200(0x331)][_0x318200(0x249)][_0x318200(0x3fa)])[_0x318200(0x198)](_0x51de38[_0x318200(0x3b6)](_0xebe101=>_0xebe101[_0x318200(0x413)]===_0x46e2e3[_0x318200(0x2ae)][_0x318200(0x2d3)]),_0x51de38[_0x318200(0x4f6)](0x10))[_0x318200(0x2f5)](()=>{const _0x5c076c=_0x318200;this[_0x5c076c(0x236)]();}));}};_0x260281=_0x4fae0c([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x1e0)],_0x260281),_0x4c8c24(0x1,_0x5b7cfd['Inject'](_0x3e2148[_0x3bc2c8(0x3ca)])),_0x4c8c24(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x47bd3e)),_0x4c8c24(0x3,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x4c8c24(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x308)]))],_0x260281);const _0x26cee5=0x1,_0x3fc450=1.5;class _0x44ac57 extends _0x46e2e3[_0x3bc2c8(0x343)]{constructor(_0x5162b6,_0x1e36c8){const _0x38e431=_0x3bc2c8;super(_0x5162b6,_0x1e36c8),_0x314dc6(this,_0x38e431(0x20c)),_0x314dc6(this,'_hovered',!0x1),_0x314dc6(this,_0x38e431(0x16c)),_0x314dc6(this,_0x38e431(0x4be),''),_0x314dc6(this,_0x38e431(0x483),_0x38e431(0x264)),_0x314dc6(this,_0x38e431(0x260)),(_0x1e36c8&&this['setShapeProps'](_0x1e36c8),this[_0x38e431(0x3e4)][_0x38e431(0x457)](()=>this[_0x38e431(0x3ef)]({'hovered':!0x0})),this[_0x38e431(0x34d)][_0x38e431(0x457)](()=>this[_0x38e431(0x3ef)]({'hovered':!0x1})));}['setShapeProps'](_0x1e0cfa){const _0x166df9=_0x3bc2c8;var _0x155894,_0x1cd2a6,_0xd4023a,_0x4a2ddd,_0x31c47e,_0x44df32;this[_0x166df9(0x20c)]=(_0x155894=_0x1e0cfa['color'])!=null?_0x155894:this[_0x166df9(0x20c)],this[_0x166df9(0x277)]=(_0x1cd2a6=_0x1e0cfa[_0x166df9(0x432)])!=null?_0x1cd2a6:this[_0x166df9(0x277)],this[_0x166df9(0x16c)]=(_0xd4023a=_0x1e0cfa[_0x166df9(0x177)])!=null?_0xd4023a:this[_0x166df9(0x16c)],this['_name']=(_0x4a2ddd=_0x1e0cfa['name'])!=null?_0x4a2ddd:this[_0x166df9(0x4be)],this[_0x166df9(0x483)]=(_0x31c47e=_0x1e0cfa[_0x166df9(0x428)])!=null?_0x31c47e:this[_0x166df9(0x483)],this['_backgroundColor']=(_0x44df32=_0x1e0cfa['backgroundColor'])!=null?_0x44df32:this['_backgroundColor'],this['transformByState']({'width':_0x1e0cfa['width'],'height':_0x1e0cfa[_0x166df9(0x3e5)]});}[_0x3bc2c8(0x427)](_0xeaf19e){const _0x770c0c=_0x3bc2c8,{row:_0x203b23,column:_0x3df94e}=_0xeaf19e;if(_0x203b23>=this[_0x770c0c(0x16c)][_0x770c0c(0x257)]&&_0x203b23<=this[_0x770c0c(0x16c)][_0x770c0c(0x370)]&&_0x3df94e>=this[_0x770c0c(0x16c)][_0x770c0c(0x17a)]&&_0x3df94e<=this[_0x770c0c(0x16c)][_0x770c0c(0x460)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3bc2c8(0x422)](_0x3264bc){return!0x1;}[_0x3bc2c8(0x1c7)](_0x16cc4d){const _0xc3c6fc=_0x3bc2c8;_0x46e2e3[_0xc3c6fc(0x1c3)]['drawWith'](_0x16cc4d,{'width':this[_0xc3c6fc(0x1b3)],'height':this[_0xc3c6fc(0x3e5)],'strokeWidth':_0x3fc450,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc3c6fc(0x260)]}),this[_0xc3c6fc(0x277)]&&(_0x16cc4d['save'](),_0x16cc4d['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0xc3c6fc(0x483)]===_0xc3c6fc(0x4ac)?0x0:-_0x433f4b),_0xb13772[_0xc3c6fc(0xff)](_0x16cc4d,{'text':this[_0xc3c6fc(0x4be)],'color':this[_0xc3c6fc(0x20c)]}),_0x16cc4d[_0xc3c6fc(0x468)]());}}var _0x5808aa=Object[_0x3bc2c8(0x361)],_0x1104f7=Object[_0x3bc2c8(0x48b)],_0x5c93f6=(_0x5c0922,_0x5b0e1b,_0x2f0107,_0x1dd326)=>{const _0x882e4f=_0x3bc2c8;for(var _0x3a9202=_0x1dd326>0x1?void 0x0:_0x1dd326?_0x1104f7(_0x5b0e1b,_0x2f0107):_0x5b0e1b,_0x3f12ed=_0x5c0922[_0x882e4f(0x3d6)]-0x1,_0x3d9cf4;_0x3f12ed>=0x0;_0x3f12ed--)(_0x3d9cf4=_0x5c0922[_0x3f12ed])&&(_0x3a9202=(_0x1dd326?_0x3d9cf4(_0x5b0e1b,_0x2f0107,_0x3a9202):_0x3d9cf4(_0x3a9202))||_0x3a9202);return _0x1dd326&&_0x3a9202&&_0x5808aa(_0x5b0e1b,_0x2f0107,_0x3a9202),_0x3a9202;},_0x35f6d1=(_0x4b1141,_0x529007)=>(_0x115a33,_0x4f9639)=>_0x529007(_0x115a33,_0x4f9639,_0x4b1141);const _0x3dacb1=0x1389;let _0x18e89b=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x4380e9,_0x484e6d,_0x39e9ef,_0x223540){const _0x47ca74=_0x3bc2c8;super(),_0x314dc6(this,_0x47ca74(0x10a),new Set()),_0x314dc6(this,_0x47ca74(0x4ef),null),(this['_context']=_0x4380e9,this[_0x47ca74(0x4b0)]=_0x484e6d,this['_collabCursorController']=_0x39e9ef,this['_themeService']=_0x223540,this['_init']());}[_0x3bc2c8(0x276)](){const _0x8a399b=_0x3bc2c8;this[_0x8a399b(0x4b0)]['currentSkeleton$'][_0x8a399b(0x198)](_0x51de38['takeUntil'](this['dispose$']),_0x51de38[_0x8a399b(0x4a8)](_0x12176a=>{const _0x11b85c=_0x8a399b;if(_0x12176a){const _0x4de74b=_0x12176a[_0x11b85c(0x1e2)];return _0x266483[_0x11b85c(0x1ef)](this[_0x11b85c(0xf8)][_0x11b85c(0x4c6)](this[_0x11b85c(0x331)]['unitId']),this[_0x11b85c(0x348)][_0x11b85c(0x230)])[_0x11b85c(0x198)](_0x51de38['map'](([_0x3c17da,_0x1137c4])=>{const _0x3759e4=_0x11b85c,_0x1deb1d=new Map();return _0x3c17da[_0x3759e4(0x255)]((_0x4fae89,_0x2ee577)=>{const _0x1237ab=_0x3759e4;if(_0x4fae89[_0x1237ab(0x415)]===_0x4de74b){const _0x3eec82={..._0x4fae89};_0x3eec82['color']=_0x1137c4[_0x4fae89[_0x1237ab(0x3da)]],_0x1deb1d[_0x1237ab(0x10d)](_0x2ee577,_0x3eec82);}}),{'skeleton':_0x12176a,'cursors':_0x1deb1d};}));}return _0x266483['of']({'skeleton':null,'cursors':new Map()});}))[_0x8a399b(0x2f5)](({skeleton:_0x531b97,cursors:_0x5aed34})=>{const _0x3fc575=_0x8a399b;this[_0x3fc575(0x2a9)](),_0x531b97&&this['_updateCollabCursors'](_0x531b97,_0x5aed34);}),this[_0x8a399b(0x4b0)]['currentSkeleton$'][_0x8a399b(0x2f5)](_0x405e15=>{const _0x1308cf=_0x8a399b;if(_0x405e15==null)return;const {skeleton:_0x196c83}=_0x405e15,{scene:_0x1f5806}=this['_context'];_0x1f5806['onPointerMove$'][_0x1308cf(0x457)](_0x5b7cfd[_0x1308cf(0x115)](_0x249730=>{const _0x3b9635=_0x1308cf;var _0x456e80,_0xf56c1d;const {offsetX:_0x3a1ec9,offsetY:_0x1d645e}=_0x249730,{x:_0xcea085,y:_0x6b400c}=_0x1f5806[_0x3b9635(0x272)](_0x46e2e3[_0x3b9635(0x121)][_0x3b9635(0x2e6)]([_0x3a1ec9,_0x1d645e])),{scaleX:_0x563f1b,scaleY:_0x53beaa}=_0x1f5806['getAncestorScale'](),_0x168940=_0x1f5806[_0x3b9635(0x47f)](_0x4a372b[_0x3b9635(0x178)][_0x3b9635(0x501)]),_0x2cb638=_0x1f5806[_0x3b9635(0x133)](_0x46e2e3[_0x3b9635(0x121)][_0x3b9635(0x2e6)]([_0xcea085,_0x6b400c]),_0x168940),_0x58005c=_0x196c83[_0x3b9635(0x4e5)](_0x3a1ec9,_0x1d645e,_0x563f1b,_0x53beaa,_0x2cb638);((_0x456e80=this[_0x3b9635(0x4ef)])==null?void 0x0:_0x456e80['column'])===_0x58005c[_0x3b9635(0x1e4)]&&((_0xf56c1d=this[_0x3b9635(0x4ef)])==null?void 0x0:_0xf56c1d[_0x3b9635(0x39d)])===_0x58005c['row']||this[_0x3b9635(0x10a)][_0x3b9635(0x255)](_0x47fab4=>{const _0x192dfa=_0x3b9635;_0x47fab4[_0x192dfa(0x427)](_0x58005c);});},0x64));});}['_updateCollabCursors'](_0x5ebc5e,_0x52f80a){const _0x806d37=_0x3bc2c8;var _0x713f66;const _0x19114c=(_0x713f66=this['_sheetSkeletonManagerService'][_0x806d37(0x48e)]())==null?void 0x0:_0x713f66[_0x806d37(0x1bc)];if(!_0x19114c)return;const _0xda43aa=this[_0x806d37(0x20f)]();if(!_0xda43aa)return;this[_0x806d37(0x10a)][_0x806d37(0x255)](_0xa1098=>{const _0x148609=_0x806d37;_0xa1098[_0x148609(0x488)]();});const {scene:_0x1b7ee9}=_0xda43aa,_0x207245=_0x5e3529(Array[_0x806d37(0x1e3)](_0x52f80a[_0x806d37(0x4c2)]()))[_0x806d37(0x39c)](_0x53ec29=>{const _0x5a6ee3=_0x806d37,{color:_0x4c2840,range:_0x188e94,name:_0x54f06f,selection:_0x2dbf89,sheetID:_0x597908}=_0x53ec29,{startColumn:_0x165855,startRow:_0xc5e3c7,endColumn:_0x38e12b,endRow:_0x22d30b}=_0x188e94,_0x59a45c=_0x4a372b[_0x5a6ee3(0x3b8)](_0xc5e3c7,_0x165855,_0x1b7ee9,_0x19114c),_0x553709=_0x4a372b[_0x5a6ee3(0x3b8)](_0x22d30b,_0x38e12b,_0x1b7ee9,_0x19114c),{columnHeaderHeightAndMarginTop:_0x4f1347}=_0x19114c,{startX:_0x105e79,startY:_0x24c616}=_0x59a45c,{endX:_0x181416,endY:_0x284159}=_0x553709,_0x23504b=_0x181416-_0x105e79,_0x5b078a=_0x284159-_0x24c616,_0x1822bb={'labelPosition':_0x24c616-_0x4f1347>=_0x433f4b?'top':_0x5a6ee3(0x4ac),'sheetID':_0x597908,'range':_0x188e94,'color':_0x4c2840,'name':_0x54f06f,'selection':_0x2dbf89,'left':_0x105e79,'top':_0x24c616,'width':_0x23504b,'height':_0x5b078a,'evented':!0x1,'zIndex':_0x3dacb1};return new _0x44ac57(_0x54f06f,_0x1822bb);});_0x1b7ee9[_0x806d37(0x445)](_0x207245,_0x26cee5),this['_cursors']=new Set(_0x207245);}[_0x3bc2c8(0x2a9)](){const _0x17f332=_0x3bc2c8;var _0x45177d;(_0x45177d=this['_cursors'])==null||_0x45177d[_0x17f332(0x255)](_0x32952a=>_0x32952a[_0x17f332(0x314)]());}['_getSheetObject'](){const _0x2b1367=_0x3bc2c8;return _0x4a372b['getSheetObject'](this[_0x2b1367(0x331)][_0x2b1367(0x155)],this[_0x2b1367(0x331)]);}};_0x18e89b=_0x5c93f6([_0x35f6d1(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4a372b[_0x3bc2c8(0x18d)])),_0x35f6d1(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x47bd3e)),_0x35f6d1(0x3,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x308)]))],_0x18e89b);function _0x5e3529(_0x30fc69){const _0xfb23de=_0x3bc2c8,_0x5e63c0=new Map();return _0x30fc69[_0xfb23de(0x255)](_0x7954e1=>{const _0xef1212=_0xfb23de;if(_0x5e63c0[_0xef1212(0x232)](_0x7954e1[_0xef1212(0x2b1)])){const _0x80d5b6=_0x5e63c0[_0xef1212(0x451)](_0x7954e1['selection']);_0x80d5b6[_0xef1212(0x161)]+=',\x20'+_0x7954e1[_0xef1212(0x161)];}else _0x5e63c0[_0xef1212(0x10d)](_0x7954e1['selection'],_0x7954e1);}),Array[_0xfb23de(0x1e3)](_0x5e63c0['values']());}var _0x531d50=function(){const _0x56a5b2=_0x3bc2c8;return _0x531d50=Object[_0x56a5b2(0x4b1)]||function(_0x1ea76c){const _0x5df324=_0x56a5b2;for(var _0x4aeaa0,_0x1dd5c8=0x1,_0x57769f=arguments[_0x5df324(0x3d6)];_0x1dd5c8<_0x57769f;_0x1dd5c8++){_0x4aeaa0=arguments[_0x1dd5c8];for(var _0xe57257 in _0x4aeaa0)Object['prototype'][_0x5df324(0x44f)][_0x5df324(0x126)](_0x4aeaa0,_0xe57257)&&(_0x1ea76c[_0xe57257]=_0x4aeaa0[_0xe57257]);}return _0x1ea76c;},_0x531d50[_0x56a5b2(0x458)](this,arguments);},_0x4d0f31=function(_0x534146,_0x5ce0d5){const _0xa7dcda=_0x3bc2c8;var _0x1a4d87={};for(var _0x16723d in _0x534146)Object['prototype'][_0xa7dcda(0x44f)][_0xa7dcda(0x126)](_0x534146,_0x16723d)&&_0x5ce0d5[_0xa7dcda(0x3d2)](_0x16723d)<0x0&&(_0x1a4d87[_0x16723d]=_0x534146[_0x16723d]);if(_0x534146!=null&&typeof Object['getOwnPropertySymbols']==_0xa7dcda(0x4ab)){for(var _0x215986=0x0,_0x16723d=Object[_0xa7dcda(0x4c8)](_0x534146);_0x215986<_0x16723d[_0xa7dcda(0x3d6)];_0x215986++)_0x5ce0d5[_0xa7dcda(0x3d2)](_0x16723d[_0x215986])<0x0&&Object[_0xa7dcda(0x293)]['propertyIsEnumerable'][_0xa7dcda(0x126)](_0x534146,_0x16723d[_0x215986])&&(_0x1a4d87[_0x16723d[_0x215986]]=_0x534146[_0x16723d[_0x215986]]);}return _0x1a4d87;},_0x430fdf=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x14590b,_0x464674){const _0x47292b=_0x3bc2c8;var _0x1fc5ea=_0x14590b[_0x47292b(0x45d)],_0x30051e=_0x14590b['id'],_0x4a235c=_0x14590b['className'],_0x42c47f=_0x14590b[_0x47292b(0x473)],_0x206809=_0x4d0f31(_0x14590b,[_0x47292b(0x45d),'id',_0x47292b(0x508),_0x47292b(0x473)]),_0xb6358e='univerjs-icon\x20univerjs-icon-'[_0x47292b(0x353)](_0x30051e,'\x20')[_0x47292b(0x353)](_0x4a235c||'')[_0x47292b(0x2da)](),_0x151c2a=_0x1b993c['useRef']('_'[_0x47292b(0x353)](_0x50a049()));return _0x26bb80(_0x1fc5ea,''[_0x47292b(0x353)](_0x30051e),{'defIds':_0x1fc5ea[_0x47292b(0x37f)],'idSuffix':_0x151c2a[_0x47292b(0x4fb)]},_0x531d50({'ref':_0x464674,'className':_0xb6358e},_0x206809),_0x42c47f);});function _0x26bb80(_0x1bc876,_0x1f6444,_0x4011bc,_0x4c625b,_0x4518b8){const _0x59e4aa=_0x3bc2c8;return _0x1b993c[_0x59e4aa(0x213)](_0x1bc876['tag'],_0x531d50(_0x531d50({'key':_0x1f6444},_0x1578db(_0x1bc876,_0x4011bc,_0x4518b8)),_0x4c625b),(_0x1d34b7(_0x1bc876,_0x4011bc)[_0x59e4aa(0x3db)]||[])['map'](function(_0x5e934d,_0x29a713){const _0xa52f3d=_0x59e4aa;return _0x26bb80(_0x5e934d,''[_0xa52f3d(0x353)](_0x1f6444,'-')[_0xa52f3d(0x353)](_0x1bc876[_0xa52f3d(0x44c)],'-')[_0xa52f3d(0x353)](_0x29a713),_0x4011bc,void 0x0,_0x4518b8);}));}function _0x1578db(_0x11e1c2,_0x41edcd,_0x42fbfc){const _0x107169=_0x3bc2c8;var _0x29c436=_0x531d50({},_0x11e1c2['attrs']);_0x42fbfc!=null&&_0x42fbfc[_0x107169(0x3f1)]&&_0x29c436[_0x107169(0xe6)]===_0x107169(0x3f1)&&(_0x29c436[_0x107169(0xe6)]=_0x42fbfc['colorChannel1']);var _0x1aa831=_0x41edcd[_0x107169(0x37f)];return!_0x1aa831||_0x1aa831[_0x107169(0x3d6)]===0x0||(_0x11e1c2[_0x107169(0x44c)]==='use'&&_0x29c436[_0x107169(0x30e)]&&(_0x29c436['xlink:href']=_0x29c436[_0x107169(0x30e)]+_0x41edcd[_0x107169(0x1ec)]),Object['entries'](_0x29c436)['forEach'](function(_0x16502a){const _0x4c0934=_0x107169;var _0x3d787a=_0x16502a[0x0],_0x497678=_0x16502a[0x1];typeof _0x497678=='string'&&(_0x29c436[_0x3d787a]=_0x497678[_0x4c0934(0x47a)](/url\(#(.*)\)/,_0x4c0934(0x190)['concat'](_0x41edcd['idSuffix'],')')));})),_0x29c436;}function _0x1d34b7(_0x2dfe0b,_0x2f4be8){const _0x3adafc=_0x3bc2c8;var _0x209374,_0x29c2b2=_0x2f4be8['defIds'];return!_0x29c2b2||_0x29c2b2[_0x3adafc(0x3d6)]===0x0?_0x2dfe0b:_0x2dfe0b[_0x3adafc(0x44c)]===_0x3adafc(0x31a)&&(!((_0x209374=_0x2dfe0b['children'])===null||_0x209374===void 0x0)&&_0x209374[_0x3adafc(0x3d6)])?_0x531d50(_0x531d50({},_0x2dfe0b),{'children':_0x2dfe0b[_0x3adafc(0x3db)][_0x3adafc(0x39c)](function(_0x11be5c){const _0x496669=_0x3adafc;return typeof _0x11be5c[_0x496669(0x1df)]['id']==_0x496669(0x210)&&_0x29c2b2&&_0x29c2b2[_0x496669(0x3d2)](_0x11be5c[_0x496669(0x1df)]['id'])>-0x1?_0x531d50(_0x531d50({},_0x11be5c),{'attrs':_0x531d50(_0x531d50({},_0x11be5c[_0x496669(0x1df)]),{'id':_0x11be5c['attrs']['id']+_0x2f4be8['idSuffix']})}):_0x11be5c;})}):_0x2dfe0b;}function _0x50a049(){const _0x18e4dd=_0x3bc2c8;return Math['random']()[_0x18e4dd(0x35c)](0x24)[_0x18e4dd(0x1c1)](0x2,0x8);}_0x430fdf[_0x3bc2c8(0x407)]=_0x3bc2c8(0x42d);var _0x33d4af={'tag':_0x3bc2c8(0x474),'attrs':{'fill':'none','viewBox':_0x3bc2c8(0x4e3),'width':'1em','height':_0x3bc2c8(0x4d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x3bc2c8(0x502)},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'stroke':_0x3bc2c8(0x31e),'d':_0x3bc2c8(0x38e),'strokeLinecap':_0x3bc2c8(0x4d3),'strokeLinejoin':_0x3bc2c8(0x4d3),'strokeWidth':1.2}}]},{'tag':_0x3bc2c8(0x31a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'fill':_0x3bc2c8(0x354),'d':_0x3bc2c8(0xdc)}}]}]}],'defIds':[_0x3bc2c8(0x345)]},_0x237fca=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x5a00dd,_0x6920a7){const _0x433f0a=_0x3bc2c8;return _0x1b993c[_0x433f0a(0x213)](_0x430fdf,Object[_0x433f0a(0x4b1)]({},_0x5a00dd,{'id':_0x433f0a(0x1dc),'ref':_0x6920a7,'icon':_0x33d4af}));});_0x237fca['displayName']=_0x3bc2c8(0x244);var _0x42bcec={'tag':_0x3bc2c8(0x474),'attrs':{'fill':_0x3bc2c8(0x3a8),'viewBox':'0\x200\x2017\x2016','width':_0x3bc2c8(0x4d5),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'stroke':_0x3bc2c8(0x31e),'d':_0x3bc2c8(0x28a),'strokeLinecap':_0x3bc2c8(0x4d3),'strokeLinejoin':_0x3bc2c8(0x4d3),'strokeWidth':1.2}}]},{'tag':_0x3bc2c8(0x31a),'attrs':{},'children':[{'tag':_0x3bc2c8(0x237),'attrs':{'id':_0x3bc2c8(0x49c)},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'fill':_0x3bc2c8(0x354),'d':_0x3bc2c8(0xdc),'transform':_0x3bc2c8(0x1bd)}}]}]}],'defIds':[_0x3bc2c8(0x49c)]},_0x23f251=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x1605a6,_0x4b17d0){const _0x5a30cf=_0x3bc2c8;return _0x1b993c['createElement'](_0x430fdf,Object[_0x5a30cf(0x4b1)]({},_0x1605a6,{'id':_0x5a30cf(0x1d2),'ref':_0x4b17d0,'icon':_0x42bcec}));});_0x23f251[_0x3bc2c8(0x407)]=_0x3bc2c8(0x18a);const _0x1a4172={'onlineStatusIcon':_0x3bc2c8(0x153),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x3bc2c8(0x284),'online':_0x3bc2c8(0x1f5),'offline':_0x3bc2c8(0xe5)};function _0x45a2ae(_0x57a7bc){const _0x3143d1=_0x3bc2c8;switch(_0x57a7bc){case _0x5926c5['OFFLINE']:return'collabStatus.offline';case _0x5926c5[_0x3143d1(0x35d)]:return _0x3143d1(0x4ce);case _0x5926c5[_0x3143d1(0x104)]:return _0x3143d1(0x336);case _0x5926c5[_0x3143d1(0x352)]:return _0x3143d1(0x4e9);case _0x5926c5[_0x3143d1(0x263)]:case _0x5926c5['AWAITING']:case _0x5926c5[_0x3143d1(0x268)]:return'collabStatus.syncing';case _0x5926c5[_0x3143d1(0xfd)]:return _0x3143d1(0x418);}}function _0x2c3280(_0x280f4c){const _0x5c36d0=_0x3bc2c8,{status$:_0x480b9e}=_0x280f4c,_0xd00258=_0x2ce95d['useObservable'](_0x480b9e,_0x5926c5[_0x5c36d0(0x352)]),_0x4414e3=_0x5b7cfd[_0x5c36d0(0x3ff)](_0x5b7cfd[_0x5c36d0(0x385)]),_0x5ce884=_0x5b7cfd[_0x5c36d0(0x3ff)](_0x48e51e[_0x5c36d0(0x1d8)]),_0x122164=_0xd00258!==_0x5926c5[_0x5c36d0(0x3b0)],_0x4fb46c=_0x4414e3['t'](_0x45a2ae(_0xd00258)),_0x478dfa=_0x3f7833(_0x1a4172[_0x5c36d0(0x1a2)],{[_0x1a4172[_0x5c36d0(0x3eb)]]:_0x122164,[_0x1a4172[_0x5c36d0(0x392)]]:!_0x122164}),_0x777c13=_0x122164?_0x1b993c[_0x5c36d0(0x213)](_0x23f251,null):_0x1b993c[_0x5c36d0(0x213)](_0x237fca,null),_0x30396a=_0x1b993c[_0x5c36d0(0xe0)](()=>{const _0x568c35=_0x5c36d0;_0x122164||_0x5ce884[_0x568c35(0x28d)]();},[_0x122164,_0x5ce884]);function _0x47add1(){const _0x8741bc=_0x5c36d0;return _0x1b993c[_0x8741bc(0x213)](_0x8741bc(0x20a),{'className':_0x478dfa,'onClick':_0x30396a},_0x1b993c[_0x8741bc(0x213)]('div',{'className':_0x1a4172[_0x8741bc(0x266)]},_0x777c13),_0x1b993c[_0x8741bc(0x213)]('div',{'className':_0x1a4172['onlineStatusTitle']},_0x4fb46c));}return _0x122164?_0x47add1():_0x1b993c[_0x5c36d0(0x213)](_0x4466a1[_0x5c36d0(0x386)],{'title':_0x4414e3['t']('collab-client.tooltip.reconnect')},_0x47add1());}var _0x50b81e=Object[_0x3bc2c8(0x361)],_0x50292a=Object[_0x3bc2c8(0x48b)],_0x969e56=(_0x2d147f,_0x22e09d,_0x3ca6fc,_0x482696)=>{const _0x31838f=_0x3bc2c8;for(var _0xeb5e43=_0x482696>0x1?void 0x0:_0x482696?_0x50292a(_0x22e09d,_0x3ca6fc):_0x22e09d,_0xc84db1=_0x2d147f[_0x31838f(0x3d6)]-0x1,_0x1f5ab5;_0xc84db1>=0x0;_0xc84db1--)(_0x1f5ab5=_0x2d147f[_0xc84db1])&&(_0xeb5e43=(_0x482696?_0x1f5ab5(_0x22e09d,_0x3ca6fc,_0xeb5e43):_0x1f5ab5(_0xeb5e43))||_0xeb5e43);return _0x482696&&_0xeb5e43&&_0x50b81e(_0x22e09d,_0x3ca6fc,_0xeb5e43),_0xeb5e43;},_0x521eee=(_0xa99342,_0x53ea5a)=>(_0xa8c325,_0x23c538)=>_0x53ea5a(_0xa8c325,_0x23c538,_0xa99342);_0x48e51e[_0x3bc2c8(0x4ed)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x478886,_0x513413,_0x3f8570,_0x465099){const _0x38a3ce=_0x3bc2c8;super(),_0x314dc6(this,_0x38a3ce(0x400),new _0x266483[(_0x38a3ce(0x43e))](_0x5926c5[_0x38a3ce(0x352)])),(this[_0x38a3ce(0x10b)]=_0x478886,this['_uiPartsService']=_0x513413,this['_injector']=_0x3f8570,this['_collaborationController']=_0x465099,this[_0x38a3ce(0x3ae)](),this[_0x38a3ce(0x50c)]());}['_initStatusListener'](){const _0x46ed8d=_0x3bc2c8;this[_0x46ed8d(0x131)](this[_0x46ed8d(0x10b)][_0x46ed8d(0x228)][_0x46ed8d(0x198)](_0x266483[_0x46ed8d(0x4a8)](()=>{const _0x1b4afb=_0x46ed8d,_0x2fee15=this[_0x1b4afb(0x10b)]['getFocusedUnit']();return _0x2fee15?this[_0x1b4afb(0x2b2)][_0x1b4afb(0x27a)](_0x2fee15[_0x1b4afb(0x183)]()):_0x266483['of'](null);}),_0x266483[_0x46ed8d(0x4a8)](_0x2f460b=>_0x2f460b?_0x2f460b[_0x46ed8d(0x294)]:_0x266483['of'](_0x5926c5[_0x46ed8d(0x352)])))[_0x46ed8d(0x2f5)](_0x29e6ef=>{const _0x4187e7=_0x46ed8d;this[_0x4187e7(0x400)]['next'](_0x29e6ef);}));}[_0x3bc2c8(0x3ae)](){const _0x332b17=_0x3bc2c8;this[_0x332b17(0x131)](this['_uiPartsService'][_0x332b17(0xd7)](_0x2ce95d[_0x332b17(0x1f3)]['HEADER_MENU'],()=>_0x5b7cfd[_0x332b17(0x4df)](_0x149a3b({'status$':this[_0x332b17(0x400)][_0x332b17(0x4eb)]()}),this[_0x332b17(0x30f)])));}},_0x48e51e[_0x3bc2c8(0x4ed)]=_0x969e56([_0x521eee(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x521eee(0x1,_0x2ce95d['IUIPartsService']),_0x521eee(0x2,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x521eee(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x30c)]))],_0x48e51e[_0x3bc2c8(0x4ed)]);function _0x149a3b(_0x356288){const {status$:_0x222945}=_0x356288;return function(){return _0x1b993c['createElement'](_0x2c3280,{'status$':_0x222945});};}const _0x325c17=_0x5b7cfd['createIdentifier'](_0x3bc2c8(0x19e));var _0x23ac03=Object[_0x3bc2c8(0x361)],_0x2037ff=Object[_0x3bc2c8(0x48b)],_0x311bd6=(_0x5c9e48,_0x48820c,_0x225a89,_0x6a7cfe)=>{for(var _0x325694=_0x6a7cfe>0x1?void 0x0:_0x6a7cfe?_0x2037ff(_0x48820c,_0x225a89):_0x48820c,_0x37a933=_0x5c9e48['length']-0x1,_0x59965d;_0x37a933>=0x0;_0x37a933--)(_0x59965d=_0x5c9e48[_0x37a933])&&(_0x325694=(_0x6a7cfe?_0x59965d(_0x48820c,_0x225a89,_0x325694):_0x59965d(_0x325694))||_0x325694);return _0x6a7cfe&&_0x325694&&_0x23ac03(_0x48820c,_0x225a89,_0x325694),_0x325694;},_0x37f9ca=(_0x3ea53b,_0x41abad)=>(_0x2e825c,_0x4cc5d0)=>_0x41abad(_0x2e825c,_0x4cc5d0,_0x3ea53b);_0x48e51e[_0x3bc2c8(0x3a2)]=class extends _0x5b7cfd['RxDisposable']{constructor(_0xf1a53b,_0xbdb6f8,_0x526412,_0x3480c3,_0x2f3860,_0x210a7e){const _0x5a00eb=_0x3bc2c8;super(),this[_0x5a00eb(0x4d9)]=_0xf1a53b,this[_0x5a00eb(0x4e7)]=_0xbdb6f8,this[_0x5a00eb(0x2c6)]=_0x526412,this['_localCacheService']=_0x3480c3,this[_0x5a00eb(0x1f2)]=_0x2f3860,_0x210a7e?_0x210a7e==null||_0x210a7e[_0x5a00eb(0x33a)]()[_0x5a00eb(0x3a3)](()=>this[_0x5a00eb(0x276)]()):(this[_0x5a00eb(0x4e7)]['debug'](_0x5a00eb(0x218),_0x5a00eb(0x3cb)),this[_0x5a00eb(0x276)]());}async[_0x3bc2c8(0x276)](){const _0xa0096b=_0x3bc2c8,_0x51b5da=this[_0xa0096b(0x4d9)][_0xa0096b(0x22f)]('unit'),_0x44163d=this['_urlService']['getParam'](_0xa0096b(0x413));if(!_0x51b5da||!_0x44163d){this[_0xa0096b(0x4e7)]['debug'](_0xa0096b(0x218),_0xa0096b(0x424));return;}switch(Number(_0x44163d)){case _0x249560[_0xa0096b(0x301)]:{const _0x4b164b=await this[_0xa0096b(0x2e9)](_0x51b5da);this[_0xa0096b(0x2cf)](_0x4b164b);break;}case _0x249560['UNIVER_DOC']:{await this[_0xa0096b(0x2a1)](_0x51b5da);break;}default:{this['_logService'][_0xa0096b(0x476)]('[DataLoaderController]',_0xa0096b(0x130));break;}}}async['_setupSubUnitSync'](_0x994924){const _0x191d7a=_0x3bc2c8;await this[_0x191d7a(0x510)](_0x994924),_0x994924[_0x191d7a(0x3d8)][_0x191d7a(0x198)](_0x266483['takeUntil'](this[_0x191d7a(0x2dd)]))[_0x191d7a(0x2f5)](_0x2291a3=>{const _0x259d6a=_0x191d7a;_0x2291a3&&this[_0x259d6a(0x347)](_0x2291a3);}),this['_urlService'][_0x191d7a(0x26c)][_0x191d7a(0x198)](_0x266483['takeUntil'](this[_0x191d7a(0x2dd)]))[_0x191d7a(0x2f5)](()=>this['_updateSubUnitFromURLParams'](_0x994924));}[_0x3bc2c8(0x347)](_0x1cb91f,_0xe1c168=!0x1){const _0x401f86=_0x3bc2c8,_0x56a48e=this[_0x401f86(0x4d9)]['getParam'](_0x401f86(0x2ce));_0x1cb91f[_0x401f86(0x43d)]()!==_0x56a48e&&this[_0x401f86(0x4d9)][_0x401f86(0x40f)]('subunit',_0x1cb91f[_0x401f86(0x43d)](),_0xe1c168);}async[_0x3bc2c8(0x510)](_0xd0f6b5){const _0x347144=_0x3bc2c8;var _0x24e10e;const _0x4dc6a7=this[_0x347144(0x4d9)]['getParam'](_0x347144(0x2ce));if(!_0x4dc6a7||!_0xd0f6b5[_0x347144(0x132)](_0x4dc6a7)){const _0x5d4cfe=_0xd0f6b5[_0x347144(0x4c4)]()[0x0],_0x2c638c=_0xd0f6b5[_0x347144(0x132)](_0x5d4cfe);if(!_0x2c638c)return;this[_0x347144(0x347)](_0x2c638c,!0x0),await this[_0x347144(0x2c6)]['executeCommand'](_0xa62622[_0x347144(0x23a)]['id'],{'unitId':_0xd0f6b5[_0x347144(0x183)](),'subUnitId':_0x5d4cfe});return;}((_0x24e10e=_0xd0f6b5[_0x347144(0x240)]())==null?void 0x0:_0x24e10e[_0x347144(0x43d)]())!==_0x4dc6a7&&await this['_commandService'][_0x347144(0x2a7)](_0xa62622['SetWorksheetActivateCommand']['id'],{'unitId':_0xd0f6b5[_0x347144(0x183)](),'subUnitId':_0x4dc6a7});}async['_loadSheet'](_0x427a9e){const _0x323cf6=_0x3bc2c8;let _0x11091e=0x0;const _0x56a5f4=await this[_0x323cf6(0x3bf)]['loadOfflineData'](_0x427a9e);return _0x56a5f4&&(_0x56a5f4[_0x323cf6(0x3e1)]||_0x56a5f4['mutations'][_0x323cf6(0x3d6)]!==0x0)&&(_0x11091e=_0x56a5f4['rev']),_0x11091e===0x0&&this[_0x323cf6(0x4e7)][_0x323cf6(0x46f)](_0x323cf6(0x218),_0x323cf6(0x160)),this[_0x323cf6(0x1f2)][_0x323cf6(0x4a9)](_0x427a9e,_0x11091e);}async[_0x3bc2c8(0x2a1)](_0x3a276c){const _0x43cb7d=_0x3bc2c8;let _0x329250=0x0;const _0x5225b1=await this['_localCacheService'][_0x43cb7d(0x30b)](_0x3a276c);return _0x5225b1&&(_0x5225b1[_0x43cb7d(0x3e1)]||_0x5225b1[_0x43cb7d(0x1fc)][_0x43cb7d(0x3d6)]!==0x0)&&(_0x329250=_0x5225b1[_0x43cb7d(0x3c6)]),_0x329250===0x0&&this[_0x43cb7d(0x4e7)][_0x43cb7d(0x46f)]('[DataLoaderController]',_0x43cb7d(0x160)),this['_snapshotService'][_0x43cb7d(0x188)](_0x3a276c,_0x329250);}},_0x48e51e[_0x3bc2c8(0x3a2)]=_0x311bd6([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x48e51e['DataLoaderController']),_0x37f9ca(0x0,_0x325c17),_0x37f9ca(0x1,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x37f9ca(0x2,_0x5b7cfd['ICommandService']),_0x37f9ca(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x37f9ca(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x306)])),_0x37f9ca(0x5,_0x5b7cfd[_0x3bc2c8(0x259)](_0x429288[_0x3bc2c8(0xe9)]))],_0x48e51e['DataLoaderController']);var _0x292d6c=Object['defineProperty'],_0x33a7ef=Object['getOwnPropertyDescriptor'],_0x94badb=(_0x170632,_0x53d432,_0x1d9240,_0x5c7a05)=>{const _0x11fa1c=_0x3bc2c8;for(var _0x140325=_0x5c7a05>0x1?void 0x0:_0x5c7a05?_0x33a7ef(_0x53d432,_0x1d9240):_0x53d432,_0x3ce4c6=_0x170632[_0x11fa1c(0x3d6)]-0x1,_0x272419;_0x3ce4c6>=0x0;_0x3ce4c6--)(_0x272419=_0x170632[_0x3ce4c6])&&(_0x140325=(_0x5c7a05?_0x272419(_0x53d432,_0x1d9240,_0x140325):_0x272419(_0x140325))||_0x140325);return _0x5c7a05&&_0x140325&&_0x292d6c(_0x53d432,_0x1d9240,_0x140325),_0x140325;},_0x2f9e18=(_0x278c9c,_0x463301)=>(_0x5f2c95,_0x581d3f)=>_0x463301(_0x5f2c95,_0x581d3f,_0x278c9c);const _0x224a02=_0x3bc2c8(0x40b),_0x3f8b75=_0x3bc2c8(0x312);let _0x34caf5=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x7d3201,_0xd3a20){const _0x85db61=_0x3bc2c8;super(),this[_0x85db61(0x10b)]=_0x7d3201,this[_0x85db61(0x4cb)]=_0xd3a20,this['_init']();}[_0x3bc2c8(0x276)](){const _0x310529=_0x3bc2c8;this[_0x310529(0x131)](_0x5b7cfd[_0x310529(0x3d9)](this[_0x310529(0x10b)][_0x310529(0x228)]['subscribe'](()=>{const _0x5acb2f=_0x310529;var _0x221e4a;const _0x1f6e38=this['_univerInstanceService'][_0x5acb2f(0x1b8)]();let _0x218bb5=(_0x221e4a=this[_0x5acb2f(0x4cb)][_0x5acb2f(0x1db)](_0x224a02))!=null?_0x221e4a:_0x3f8b75;_0x1f6e38 instanceof _0x5b7cfd[_0x5acb2f(0x2d8)]&&(_0x218bb5=_0x1f6e38[_0x5acb2f(0x161)]),document[_0x5acb2f(0x17b)]=_0x218bb5;})));}};_0x34caf5=_0x94badb([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x36c)],_0x34caf5),_0x2f9e18(0x0,_0x5b7cfd['IUniverInstanceService']),_0x2f9e18(0x1,_0x5b7cfd[_0x3bc2c8(0x262)])],_0x34caf5);var _0x26c84f=Object[_0x3bc2c8(0x361)],_0x4c0355=Object[_0x3bc2c8(0x48b)],_0x4408fd=(_0x3fec3b,_0x2b71a2,_0x46405d,_0x194af9)=>{const _0x27ee51=_0x3bc2c8;for(var _0x49cf0a=_0x194af9>0x1?void 0x0:_0x194af9?_0x4c0355(_0x2b71a2,_0x46405d):_0x2b71a2,_0x545329=_0x3fec3b[_0x27ee51(0x3d6)]-0x1,_0x32399e;_0x545329>=0x0;_0x545329--)(_0x32399e=_0x3fec3b[_0x545329])&&(_0x49cf0a=(_0x194af9?_0x32399e(_0x2b71a2,_0x46405d,_0x49cf0a):_0x32399e(_0x49cf0a))||_0x49cf0a);return _0x194af9&&_0x49cf0a&&_0x26c84f(_0x2b71a2,_0x46405d,_0x49cf0a),_0x49cf0a;},_0xc8a478=(_0x5d8da4,_0x44de50)=>(_0x59d3f8,_0x493f23)=>_0x44de50(_0x59d3f8,_0x493f23,_0x5d8da4);let _0x52d4b9=class{constructor(_0x30f0bd,_0x403324,_0x5a4d79){const _0x15407f=_0x3bc2c8;this[_0x15407f(0x4cb)]=_0x30f0bd,this['_httpService']=_0x403324,this[_0x15407f(0x2f0)]=_0x5a4d79,this[_0x15407f(0x341)]();}['init'](){const _0x19fece=_0x3bc2c8;this[_0x19fece(0x305)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4df035,_0x438693)=>_0x438693(_0x4df035)[_0x19fece(0x198)](_0x266483[_0x19fece(0x2eb)](async _0x360c92=>{const _0xdfac2e=_0x19fece,_0x64d36a=_0x360c92;if(_0x64d36a[_0xdfac2e(0x4ad)]===0x191&&window['confirm'](this[_0xdfac2e(0x2f0)]['t']('auth.needGotoLoginAlert'))){const _0x31b11e=window[_0xdfac2e(0x4fd)](window['location'][_0xdfac2e(0x4e0)]);window[_0xdfac2e(0x31f)]['href']=this['_getLoginPath']()+_0xdfac2e(0x168)+_0x31b11e;}return _0x64d36a;}))});}[_0x3bc2c8(0x2d6)](){const _0x3c3e18=_0x3bc2c8;var _0x295a69,_0x3d9368;const _0x32e0a1=this[_0x3c3e18(0x4cb)][_0x3c3e18(0x1db)](_0x29174f),_0x7cefb0=this[_0x3c3e18(0x4cb)][_0x3c3e18(0x1db)](_0xa50aed);return(_0x3d9368=(_0x295a69=_0x7cefb0==null?void 0x0:_0x7cefb0[_0x3c3e18(0x36e)])!=null?_0x295a69:_0x32e0a1)!=null?_0x3d9368:_0x46f52c;}};_0x52d4b9=_0x4408fd([_0xc8a478(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0xc8a478(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0xc8a478(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)]))],_0x52d4b9);var _0x53c2b7=Object[_0x3bc2c8(0x361)],_0xf7a8c4=Object['getOwnPropertyDescriptor'],_0x352dbc=(_0x237244,_0x2277f0,_0x5d0941,_0x41e8e5)=>{const _0x4bbc3d=_0x3bc2c8;for(var _0x629d58=_0x41e8e5>0x1?void 0x0:_0x41e8e5?_0xf7a8c4(_0x2277f0,_0x5d0941):_0x2277f0,_0x4469cf=_0x237244[_0x4bbc3d(0x3d6)]-0x1,_0x110546;_0x4469cf>=0x0;_0x4469cf--)(_0x110546=_0x237244[_0x4469cf])&&(_0x629d58=(_0x41e8e5?_0x110546(_0x2277f0,_0x5d0941,_0x629d58):_0x110546(_0x629d58))||_0x629d58);return _0x41e8e5&&_0x629d58&&_0x53c2b7(_0x2277f0,_0x5d0941,_0x629d58),_0x629d58;},_0x287087=(_0x288091,_0x325b88)=>(_0x17e192,_0x33fd63)=>_0x325b88(_0x17e192,_0x33fd63,_0x288091);const _0x27ab3d=_0x3bc2c8(0x3e7),_0x175fbd=_0x3bc2c8(0x135);_0x48e51e['AuthzIoHttpService']=class extends _0x5b7cfd['Disposable']{constructor(_0x3e1bc0,_0x4e62f6){const _0x509a78=_0x3bc2c8;super(),this[_0x509a78(0x472)]=_0x3e1bc0,this[_0x509a78(0x4cb)]=_0x4e62f6,this[_0x509a78(0x2ed)]();}[_0x3bc2c8(0x2ed)](){const _0x429afb=_0x3bc2c8,_0x3f9165=this;this['disposeWithMe'](this[_0x429afb(0x472)][_0x429afb(0x1d0)]({'priority':0x3e7,'interceptor':_0x4ba5d1['MergeInterceptorFactory']({'isMatch'(_0x31cdfb){const _0x40a853=_0x429afb;var _0x3ab5f1;if(_0x31cdfb[_0x40a853(0x492)]===_0x40a853(0x411)&&((_0x3ab5f1=_0x31cdfb['requestParams'])!=null&&_0x3ab5f1['body'])){const {objectID:_0x357336,objectType:_0xc8fbaa}=_0x31cdfb['requestParams'][_0x40a853(0x1fe)]||{};if(!_0x357336||_0xc8fbaa===void 0x0)return!0x1;const _0x514c82=_0x3f9165['_getAPIPrefixPath']()+'/'+_0xc8fbaa+'/object/'+_0x357336+_0x40a853(0x1b5);if(_0x31cdfb['url']===_0x514c82)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x283db2){const _0x42f5b0=_0x429afb;var _0x187638;return(_0x187638=_0x283db2[_0x42f5b0(0x4da)])==null?void 0x0:_0x187638['body'];},'mergeParamsToRequest'(_0x2a318f,_0x976f24){const _0x7516e6=_0x429afb,_0x262ad2=_0x3f9165[_0x7516e6(0x403)]()+_0x7516e6(0xf1),_0x5e28b2=_0x2a318f[_0x7516e6(0x4f1)]((_0xbc42d0,_0x271d0f)=>{const _0x26f8c6=_0x7516e6,{unitID:_0x357d91,objectID:_0x495cb6,objectType:_0x1ff913,actions:_0xde8cf8}=_0x271d0f;return _0xbc42d0[_0x357d91]||(_0xbc42d0[_0x357d91]={}),_0xbc42d0[_0x357d91][_0x495cb6]||(_0xbc42d0[_0x357d91][_0x495cb6]={'objectID':_0x495cb6,'objectType':_0x1ff913,'actions':[]}),_0xbc42d0[_0x357d91][_0x495cb6]['actions'][_0x26f8c6(0x13d)](..._0xde8cf8),_0xbc42d0;},{}),_0x1fc91b=[];for(const _0x104284 in _0x5e28b2)for(const _0x17d533 in _0x5e28b2[_0x104284]){const {actions:_0xf5decb,objectType:_0xf4be30}=_0x5e28b2[_0x104284][_0x17d533],_0x230421=[...new Set(_0xf5decb)];_0x1fc91b['push']({'unitID':_0x104284,'objectID':_0x17d533,'objectType':_0xf4be30,'actions':_0x230421});}return new _0x4ba5d1[(_0x7516e6(0x28f))](_0x7516e6(0x411),_0x262ad2,{'headers':_0x976f24[_0x7516e6(0x2e2)],'withCredentials':_0x976f24[_0x7516e6(0x166)],'responseType':_0x976f24[_0x7516e6(0x101)],'body':{'requests':_0x1fc91b}});}},{'distributeResult'(_0x1c5cad,_0x711fbb){const _0x54dfb9=_0x429afb,{objectActions:_0x2e9cbf}=_0x1c5cad;return _0x711fbb[_0x54dfb9(0x39c)](_0x3ece0=>{const _0xe03704=_0x54dfb9,{unitID:_0x4ba930,objectID:_0x236d87,actions:_0x1c168e}=_0x3ece0,_0x176340=_0x2e9cbf[_0xe03704(0xf7)](_0xa3457a=>_0xa3457a[_0xe03704(0x1b0)]===_0x4ba930&&_0xa3457a[_0xe03704(0x3dc)]===_0x236d87),_0x3095d5=_0x1c168e[_0xe03704(0x39c)](_0x1c8e72=>_0x176340==null?void 0x0:_0x176340['actions'][_0xe03704(0xf7)](_0x552d26=>_0x552d26[_0xe03704(0x113)]===_0x1c8e72))[_0xe03704(0x3b6)](_0x334ae5=>!!_0x334ae5);return{'config':_0x3ece0,'result':{'actions':_0x3095d5,'error':_0x1c5cad['error']}};});}})}));}[_0x3bc2c8(0x403)](){const _0x4881c3=_0x3bc2c8;var _0x24606f,_0x153287;const _0x577c32=this[_0x4881c3(0x4cb)][_0x4881c3(0x1db)](_0x27ab3d),_0x4b1189=this[_0x4881c3(0x4cb)][_0x4881c3(0x1db)](_0xa50aed);return(_0x153287=(_0x24606f=_0x4b1189==null?void 0x0:_0x4b1189[_0x4881c3(0x2b5)])!=null?_0x24606f:_0x577c32)!=null?_0x153287:_0x175fbd;}async[_0x3bc2c8(0x3b5)](_0x357c1e){const _0x2f16f3=_0x3bc2c8,_0x40b497=this[_0x2f16f3(0x403)]()+'/'+_0x357c1e[_0x2f16f3(0x2e7)]+'/object';return(await this[_0x2f16f3(0x472)][_0x2f16f3(0x15b)](_0x40b497,{'body':_0x357c1e}))[_0x2f16f3(0x1fe)][_0x2f16f3(0x3dc)]||'';}async[_0x3bc2c8(0x204)](_0x5ba0c9){const _0x19f030=_0x3bc2c8,_0x4e9264=this[_0x19f030(0x403)]()+_0x19f030(0xe2);return(await this[_0x19f030(0x472)][_0x19f030(0x15b)](_0x4e9264,{'body':_0x5ba0c9}))[_0x19f030(0x1fe)][_0x19f030(0x285)];}async[_0x3bc2c8(0x16f)](_0x3dc4a7){const _0x195c14=_0x3bc2c8,_0x423e5d=this[_0x195c14(0x403)]()+'/'+_0x3dc4a7[_0x195c14(0x2e7)]+'/object/'+_0x3dc4a7[_0x195c14(0x3dc)];await this[_0x195c14(0x472)]['put'](_0x423e5d,{'body':_0x3dc4a7});}async[_0x3bc2c8(0x489)](_0x507f73){const _0x485e6a=_0x3bc2c8,_0x23f6c7=this[_0x485e6a(0x403)]()+'/'+_0x507f73['objectType']+_0x485e6a(0x1be)+_0x507f73['objectID']+_0x485e6a(0x1b5);return(await this[_0x485e6a(0x472)][_0x485e6a(0x15b)](_0x23f6c7,{'body':_0x507f73}))['body'][_0x485e6a(0x2fd)];}async[_0x3bc2c8(0x321)](_0x184a6e){const _0x39d827=_0x3bc2c8,_0x4066f5=this[_0x39d827(0x403)]()+'/-/object/-/batch_allowed';return(await this[_0x39d827(0x472)][_0x39d827(0x15b)](_0x4066f5,{'body':{'requests':_0x184a6e}}))[_0x39d827(0x1fe)][_0x39d827(0x315)];}async['listRoles'](_0x4fbeaa){const _0x29fa2f=_0x3bc2c8,_0x1d2342=this[_0x29fa2f(0x403)]()+'/'+_0x4fbeaa[_0x29fa2f(0x2e7)]+_0x29fa2f(0x107),_0x308a37=await this[_0x29fa2f(0x472)][_0x29fa2f(0x15b)](_0x1d2342,{'body':_0x4fbeaa});return{'roles':_0x308a37[_0x29fa2f(0x1fe)][_0x29fa2f(0x2bf)],'actions':_0x308a37['body'][_0x29fa2f(0x2fd)]};}async[_0x3bc2c8(0x332)](_0x26fc36){const _0x521fad=_0x3bc2c8,_0x1b031c=this['_getAPIPrefixPath']()+_0x521fad(0x1f1);await this['_HTTPService'][_0x521fad(0x344)](_0x1b031c,{'params':{'collaboratorID':_0x26fc36[_0x521fad(0x207)],'objectID':_0x26fc36[_0x521fad(0x3dc)],'unitID':_0x26fc36[_0x521fad(0x1b0)]}});}async[_0x3bc2c8(0x466)](_0xaa869e){const _0x361c99=_0x3bc2c8,_0x2f938d=this[_0x361c99(0x403)]()+'/collaborator';await this[_0x361c99(0x472)][_0x361c99(0x3ee)](_0x2f938d,{'body':_0xaa869e});}async[_0x3bc2c8(0x1f9)](_0x14b580){const _0x2823c6=_0x3bc2c8,_0x44f3dc=this[_0x2823c6(0x403)]()+_0x2823c6(0x1f1);await this['_HTTPService'][_0x2823c6(0x15b)](_0x44f3dc,{'body':_0x14b580});}async['listCollaborators'](_0x221364){const _0x32ac7c=_0x3bc2c8,_0x5e992e=this[_0x32ac7c(0x403)]()+_0x32ac7c(0x1f1);return(await this[_0x32ac7c(0x472)][_0x32ac7c(0x451)](_0x5e992e,{'params':{'objectID':_0x221364[_0x32ac7c(0x3dc)],'unitID':_0x221364[_0x32ac7c(0x1b0)]}}))['body'][_0x32ac7c(0x1cd)];}async[_0x3bc2c8(0x49e)](_0x506a38){const _0x379d7b=_0x3bc2c8,_0x2ad7bf=this[_0x379d7b(0x403)]()+_0x379d7b(0x1f1);await this[_0x379d7b(0x472)]['put'](_0x2ad7bf,{'body':_0x506a38});}},_0x48e51e[_0x3bc2c8(0x4d7)]=_0x352dbc([_0x287087(0x0,_0x5b7cfd['Inject'](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0x287087(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x262)]))],_0x48e51e[_0x3bc2c8(0x4d7)]);var _0x2a7c9a=Object['defineProperty'],_0x13eba2=Object['getOwnPropertyDescriptor'],_0x48aa50=(_0x427d53,_0x37457c,_0x3f3d35,_0x5da974)=>{const _0x4dd6c0=_0x3bc2c8;for(var _0x550db2=_0x5da974>0x1?void 0x0:_0x5da974?_0x13eba2(_0x37457c,_0x3f3d35):_0x37457c,_0x3fb20e=_0x427d53[_0x4dd6c0(0x3d6)]-0x1,_0x2948f2;_0x3fb20e>=0x0;_0x3fb20e--)(_0x2948f2=_0x427d53[_0x3fb20e])&&(_0x550db2=(_0x5da974?_0x2948f2(_0x37457c,_0x3f3d35,_0x550db2):_0x2948f2(_0x550db2))||_0x550db2);return _0x5da974&&_0x550db2&&_0x2a7c9a(_0x37457c,_0x3f3d35,_0x550db2),_0x550db2;},_0x448430=(_0x1fc575,_0x2a51b7)=>(_0x4e097c,_0x1fe83c)=>_0x2a51b7(_0x4e097c,_0x1fe83c,_0x1fc575);let _0x4173ed=class{constructor(_0xbe1f8b){const _0x598d8d=_0x3bc2c8;this[_0x598d8d(0x305)]=_0xbe1f8b,this['_initRequestHeader']();}[_0x3bc2c8(0x2dc)](){const _0x3fa688=_0x3bc2c8;this[_0x3fa688(0x305)][_0x3fa688(0x1d0)]({'interceptor':(_0x1514af,_0x1b4cb7)=>{const _0x3879fe=_0x3fa688,_0x219002=_0x1514af[_0x3879fe(0x2e2)],_0x4709c2=_0x5d1cbc[_0x3879fe(0x2c7)]();return _0x4709c2&&_0x219002[_0x3879fe(0x10d)](_0x3879fe(0x289),_0x4709c2),_0x1b4cb7(_0x1514af);}});}};_0x4173ed=_0x48aa50([_0x448430(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)]))],_0x4173ed);var _0x3b9851=Object[_0x3bc2c8(0x361)],_0x33d243=Object[_0x3bc2c8(0x48b)],_0x1b6126=(_0x47c77b,_0x452f6b,_0x4a5ff2,_0x549712)=>{const _0x59f9b8=_0x3bc2c8;for(var _0x10110c=_0x549712>0x1?void 0x0:_0x549712?_0x33d243(_0x452f6b,_0x4a5ff2):_0x452f6b,_0x2fbb22=_0x47c77b[_0x59f9b8(0x3d6)]-0x1,_0x35db;_0x2fbb22>=0x0;_0x2fbb22--)(_0x35db=_0x47c77b[_0x2fbb22])&&(_0x10110c=(_0x549712?_0x35db(_0x452f6b,_0x4a5ff2,_0x10110c):_0x35db(_0x10110c))||_0x10110c);return _0x549712&&_0x10110c&&_0x3b9851(_0x452f6b,_0x4a5ff2,_0x10110c),_0x10110c;},_0x5cdffc=(_0x6d9b11,_0x4a3499)=>(_0x3ed1e5,_0x390dc7)=>_0x4a3499(_0x3ed1e5,_0x390dc7,_0x6d9b11);const _0x30e2bb=[_0x3bc2c8(0x4f9),_0x3bc2c8(0x3ac),_0x3bc2c8(0x2b8),'image/gif',_0x3bc2c8(0x440)],_0x3ae676=0x5*0x400*0x400,_0x31971b=_0x3bc2c8(0x103),_0x4f6976=_0x3bc2c8(0x4f8),_0x3ca7d3=_0x3bc2c8(0x3ad),_0x2d70ba='/universer-api/file/{fileID}/sign-url';_0x48e51e[_0x3bc2c8(0x203)]=class{constructor(_0x99bb36,_0x99de5b,_0x1c7023){const _0xcf7628=_0x3bc2c8;_0x314dc6(this,_0xcf7628(0x47b),0x0),_0x314dc6(this,_0xcf7628(0x206),new _0x266483[(_0xcf7628(0x2e5))]()),_0x314dc6(this,_0xcf7628(0x2c9),this[_0xcf7628(0x206)]),_0x314dc6(this,_0xcf7628(0x1a1),new Map()),(this[_0xcf7628(0x305)]=_0x99bb36,this[_0xcf7628(0x4cb)]=_0x99de5b,this['_univerInstanceService']=_0x1c7023);}[_0x3bc2c8(0x3fe)](_0x29c884){const _0x3b367a=_0x3bc2c8;this[_0x3b367a(0x47b)]=_0x29c884,this[_0x3b367a(0x206)][_0x3b367a(0xe4)](_0x29c884);}[_0x3bc2c8(0x3ce)](_0x398379,_0x4e824d){const _0x40abb6=_0x3bc2c8;if(_0x4e824d===_0x35c9a1[_0x40abb6(0xf6)][_0x40abb6(0x1e8)]){const _0x12acd7=new Image();return _0x12acd7[_0x40abb6(0x39b)]=_0x398379,_0x12acd7;}return this['_imageSourceCache'][_0x40abb6(0x451)](_0x398379);}[_0x3bc2c8(0x3ea)](_0x1e2d1c,_0x16fb47,_0x37655e){const _0x540105=_0x3bc2c8;_0x16fb47===_0x35c9a1[_0x540105(0xf6)][_0x540105(0x1e8)]||_0x37655e==null||this['_imageSourceCache'][_0x540105(0x10d)](_0x1e2d1c,_0x37655e);}async[_0x3bc2c8(0x2ab)](_0x4dca53){const _0x2a5f2c=_0x3bc2c8;try{const _0x10f332=this['_replaceFileID'](this['_getSignURL'](),''+_0x4dca53),_0x476d74=(await this[_0x2a5f2c(0x305)]['get'](_0x10f332))[_0x2a5f2c(0x1fe)];if(_0x476d74[_0x2a5f2c(0x476)]&&_0x476d74[_0x2a5f2c(0x476)][_0x2a5f2c(0x337)]===_0x5f32a2['OK']){const _0x2989fb=new URL(_0x476d74['url'],this[_0x2a5f2c(0x417)]())['toString']();return Promise[_0x2a5f2c(0x511)](_0x2989fb);}return Promise[_0x2a5f2c(0x325)](_0x476d74[_0x2a5f2c(0x476)]);}catch(_0x358844){return Promise[_0x2a5f2c(0x325)](_0x358844);}}async[_0x3bc2c8(0x298)](_0x3c2731){const _0x1c7bde=_0x3bc2c8;let _0x4f9491='';if(!_0x30e2bb[_0x1c7bde(0x3a9)](_0x3c2731[_0x1c7bde(0x413)]))return this['_decreaseWaiting'](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x173)]));if(_0x3c2731['size']>_0x3ae676)return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x296)]));try{const _0x33f118=new FormData();_0x33f118[_0x1c7bde(0x1d5)](_0x1c7bde(0x452),_0x3c2731);const _0x5c246d=this[_0x1c7bde(0x10b)][_0x1c7bde(0x1b8)](),_0x3eaffe=_0x5c246d==null?void 0x0:_0x5c246d[_0x1c7bde(0x183)]();if(!_0x3eaffe)throw new Error(_0x1c7bde(0x372));const _0x1315ad=this[_0x1c7bde(0x23b)]()+_0x1c7bde(0x15a)+_0x3c2731[_0x1c7bde(0x127)]['toString']()+_0x1c7bde(0x36b)+_0x1817d2[_0x1c7bde(0xd9)]+_0x1c7bde(0x447)+encodeURIComponent(_0x3eaffe),_0x3ef636=await(await fetch(_0x1315ad,{'method':_0x1c7bde(0x411),'body':_0x33f118}))[_0x1c7bde(0x1d3)]();if(typeof _0x3ef636[_0x1c7bde(0x1a0)]!=_0x1c7bde(0x210))return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x147)]));_0x4f9491=_0x3ef636['FileId'];}catch{return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)]['ERROR_IMAGE']));}return new Promise((_0x19532c,_0x13f3e0)=>{const _0x2a5676=_0x1c7bde,_0x2c2f96=new FileReader();_0x2c2f96[_0x2a5676(0x3b1)](_0x3c2731),_0x2c2f96['onload']=_0x560d0b=>{const _0x2ecf5f=_0x2a5676;var _0x1397f8;const _0x1f9838=(_0x1397f8=_0x560d0b[_0x2ecf5f(0x40a)])==null?void 0x0:_0x1397f8[_0x2ecf5f(0x2d4)];if(_0x1f9838==null){this[_0x2ecf5f(0x33e)](),_0x13f3e0(new Error(_0x35c9a1[_0x2ecf5f(0xf9)][_0x2ecf5f(0x147)]));return;}const _0x71b628=_0x5b7cfd[_0x2ecf5f(0x2f6)][_0x2ecf5f(0x1d9)](0x6);_0x19532c({'imageId':_0x71b628,'imageSourceType':_0x35c9a1[_0x2ecf5f(0xf6)][_0x2ecf5f(0xdb)],'source':_0x4f9491,'base64Cache':_0x1f9838,'status':_0x35c9a1[_0x2ecf5f(0xf9)][_0x2ecf5f(0x454)]}),this['_decreaseWaiting']();};});}[_0x3bc2c8(0x23b)](){const _0x476121=_0x3bc2c8;var _0x3ec767,_0x23460d;const _0x3d2a78=this['_configService']['getConfig'](_0x31971b),_0x47c333=this['_configService'][_0x476121(0x1db)](_0xa50aed);return(_0x23460d=(_0x3ec767=_0x47c333==null?void 0x0:_0x47c333[_0x476121(0x376)])!=null?_0x3ec767:_0x3d2a78)!=null?_0x23460d:_0x4f6976;}[_0x3bc2c8(0x22a)](){const _0xd3f890=_0x3bc2c8;var _0x452550,_0x19f163;const _0x36735d=this[_0xd3f890(0x4cb)]['getConfig'](_0x3ca7d3),_0x259f68=this[_0xd3f890(0x4cb)][_0xd3f890(0x1db)](_0xa50aed);return(_0x19f163=(_0x452550=_0x259f68==null?void 0x0:_0x259f68[_0xd3f890(0x14f)])!=null?_0x452550:_0x36735d)!=null?_0x19f163:_0x2d70ba;}[_0x3bc2c8(0x417)](){const _0x4ed735=_0x3bc2c8;var _0x2925d1;const _0x47b227=this[_0x4ed735(0x4cb)]['getConfig'](_0xa50aed);return(_0x2925d1=_0x47b227==null?void 0x0:_0x47b227['downloadEndpointUrl'])!=null?_0x2925d1:location[_0x4ed735(0x394)];}[_0x3bc2c8(0x340)](_0x314f45,_0x3feb16){const _0x3225e6=_0x3bc2c8;return _0x314f45[_0x3225e6(0x47a)](_0x3225e6(0x4a3),_0x3feb16);}['_decreaseWaiting'](){const _0x3e6a9c=_0x3bc2c8;this[_0x3e6a9c(0x47b)]-=0x1,this[_0x3e6a9c(0x206)][_0x3e6a9c(0xe4)](this['_waitCount']);}},_0x48e51e[_0x3bc2c8(0x203)]=_0x1b6126([_0x5cdffc(0x0,_0x5b7cfd['Inject'](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0x5cdffc(0x1,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x5cdffc(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x29e)]))],_0x48e51e[_0x3bc2c8(0x203)]);var _0x174f6d=Object['defineProperty'],_0x4b3f03=Object[_0x3bc2c8(0x48b)],_0x24b5c3=(_0x624a9c,_0x83a2bf,_0x4dd0c6,_0x103f2c)=>{const _0x1a1265=_0x3bc2c8;for(var _0x1c1ff6=_0x103f2c>0x1?void 0x0:_0x103f2c?_0x4b3f03(_0x83a2bf,_0x4dd0c6):_0x83a2bf,_0x1837a6=_0x624a9c[_0x1a1265(0x3d6)]-0x1,_0xe9a844;_0x1837a6>=0x0;_0x1837a6--)(_0xe9a844=_0x624a9c[_0x1837a6])&&(_0x1c1ff6=(_0x103f2c?_0xe9a844(_0x83a2bf,_0x4dd0c6,_0x1c1ff6):_0xe9a844(_0x1c1ff6))||_0x1c1ff6);return _0x103f2c&&_0x1c1ff6&&_0x174f6d(_0x83a2bf,_0x4dd0c6,_0x1c1ff6),_0x1c1ff6;},_0x2fbf8b=(_0x2f5815,_0x4d7b1e)=>(_0x2ebce1,_0x5a4aa6)=>_0x4d7b1e(_0x2ebce1,_0x5a4aa6,_0x2f5815);let _0x21857a=class extends _0x5b7cfd['RxDisposable']{constructor(_0x24d140,_0x1c9f6f,_0xf094f7,_0x3c53bb,_0x3ac6af){const _0x43435f=_0x3bc2c8;super(),this[_0x43435f(0x30f)]=_0x24d140,this[_0x43435f(0x10b)]=_0x1c9f6f,this[_0x43435f(0x106)]=_0xf094f7,this[_0x43435f(0x3bd)]=_0x3c53bb,this[_0x43435f(0x24c)]=_0x3ac6af,this[_0x43435f(0x2f8)](),this[_0x43435f(0x152)]();}[_0x3bc2c8(0x152)](){const _0x5c419b=_0x3bc2c8,_0x5443f8=async _0xf92ab4=>{const _0x1494b5=_0x4f28;(await this[_0x1494b5(0x3bd)][_0x1494b5(0x318)](_0xf92ab4))[_0x1494b5(0x164)]['pipe'](_0x51de38[_0x1494b5(0x3b6)](_0xad937b=>_0xad937b['eventID']===_0x56cbe4[_0x1494b5(0x484)][_0x1494b5(0x2c2)]),_0x51de38[_0x1494b5(0x46b)](this[_0x1494b5(0x2dd)]))[_0x1494b5(0x2f5)](_0x49a33e=>{const _0x1c0015=_0x1494b5,_0x3a14bc=_0x49a33e,{reason:_0x50160b}=_0x3a14bc[_0x1c0015(0x2db)];this[_0x1c0015(0x30f)][_0x1c0015(0x451)](_0x2ce95d[_0x1c0015(0x1af)])[_0x1c0015(0x29f)]({'type':_0x4466a1[_0x1c0015(0x185)][_0x1c0015(0x34e)],'content':this[_0x1c0015(0x24c)]['t'](_0x1c0015(0x29c))+'('+_0x50160b+')'}),this[_0x1c0015(0x106)]['updatePermissionPoint'](new _0xa62622['WorkbookEditablePermission'](_0xf92ab4)['id'],!0x1),this[_0x1c0015(0x3bd)][_0x1c0015(0x3f6)](_0xf92ab4);});};_0x266483['merge'](this[_0x5c419b(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5c419b(0x4bb)][_0x5c419b(0x301)]),this[_0x5c419b(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5c419b(0x4bb)]['UNIVER_DOC']))['pipe'](_0x51de38[_0x5c419b(0x39c)](_0x426c41=>_0x426c41[_0x5c419b(0x183)]()),_0x51de38[_0x5c419b(0x3b6)](_0x257d0d=>!_0x5b7cfd['isInternalEditorID'](_0x257d0d)),_0x51de38[_0x5c419b(0x46b)](this[_0x5c419b(0x2dd)]))['subscribe'](_0x49a89a=>{_0x5443f8(_0x49a89a);});}[_0x3bc2c8(0x2f8)](){const _0x42c38b=_0x3bc2c8,_0x393747=async _0x3ea497=>{const _0xc2061b=_0x4f28;(await this[_0xc2061b(0x3bd)]['requireSession'](_0x3ea497))[_0xc2061b(0x164)][_0xc2061b(0x198)](_0x51de38[_0xc2061b(0x3b6)](_0x156567=>_0x156567[_0xc2061b(0xe1)]===_0x56cbe4[_0xc2061b(0x484)]['UPDATE_PERMISSION_OBJ']),_0x51de38['takeUntil'](this['dispose$']))[_0xc2061b(0x2f5)](_0x3cb216=>{const _0x4665b3=_0xc2061b,_0x1e27fb=_0x3cb216,{objectId:_0x28f6ec}=_0x1e27fb['data'],_0x5a08dd=this[_0x4665b3(0x30f)][_0x4665b3(0x451)](_0x4a372b['SheetPermissionInitController']);_0x28f6ec===_0x3ea497?_0x5a08dd[_0x4665b3(0x446)](_0x3ea497):_0x5a08dd[_0x4665b3(0x493)](_0x3ea497,_0x28f6ec);});};_0x266483[_0x42c38b(0x2a5)](this[_0x42c38b(0x10b)][_0x42c38b(0x327)](_0x5b7cfd['UniverInstanceType']['UNIVER_SHEET']),this[_0x42c38b(0x10b)][_0x42c38b(0x327)](_0x5b7cfd['UniverInstanceType'][_0x42c38b(0x3a6)]))[_0x42c38b(0x198)](_0x51de38[_0x42c38b(0x39c)](_0xb13374=>_0xb13374[_0x42c38b(0x183)]()),_0x51de38['filter'](_0x532df5=>!_0x5b7cfd[_0x42c38b(0x2f9)](_0x532df5)),_0x51de38[_0x42c38b(0x46b)](this[_0x42c38b(0x2dd)]))[_0x42c38b(0x2f5)](_0x2dac5f=>{_0x393747(_0x2dac5f);});}};_0x21857a=_0x24b5c3([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x21857a),_0x2fbf8b(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2fbf8b(0x1,_0x5b7cfd['IUniverInstanceService']),_0x2fbf8b(0x2,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2fbf8b(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['CollaborationSessionService'])),_0x2fbf8b(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)]))],_0x21857a);var _0x60bfa=Object[_0x3bc2c8(0x361)],_0x4f846c=Object[_0x3bc2c8(0x48b)],_0x5f530c=(_0x592a1a,_0x3699c0,_0x5eef23,_0x4517ee)=>{const _0x3370d5=_0x3bc2c8;for(var _0x23ba32=_0x4517ee>0x1?void 0x0:_0x4517ee?_0x4f846c(_0x3699c0,_0x5eef23):_0x3699c0,_0x3a1063=_0x592a1a[_0x3370d5(0x3d6)]-0x1,_0x41504f;_0x3a1063>=0x0;_0x3a1063--)(_0x41504f=_0x592a1a[_0x3a1063])&&(_0x23ba32=(_0x4517ee?_0x41504f(_0x3699c0,_0x5eef23,_0x23ba32):_0x41504f(_0x23ba32))||_0x23ba32);return _0x4517ee&&_0x23ba32&&_0x60bfa(_0x3699c0,_0x5eef23,_0x23ba32),_0x23ba32;},_0x37d277=(_0x45c3b1,_0x242d95)=>(_0x444d38,_0x229a4b)=>_0x242d95(_0x444d38,_0x229a4b,_0x45c3b1);_0x48e51e[_0x3bc2c8(0x1ac)]=class{constructor(_0x20b927,_0x3b6273){this['_configService']=_0x20b927,this['_httpService']=_0x3b6273;}async[_0x3bc2c8(0x181)](_0x3d6209,_0x197371){const _0x24630e=_0x3bc2c8;var _0x37d28a;const {unitID:_0x4d97d4,type:_0xbacbd,revision:_0x553086=0x0}=_0x197371,_0x2fce74=this[_0x24630e(0x326)]()+'/'+_0xbacbd+_0x24630e(0x248)+_0x4d97d4+_0x24630e(0x482)+_0x553086,_0x137dce=(await this[_0x24630e(0x305)]['get'](_0x2fce74))[_0x24630e(0x1fe)],_0x28ab67=(_0x37d28a=_0x137dce[_0x24630e(0x25d)])==null?void 0x0:_0x37d28a[_0x24630e(0x2cc)];if(_0x28ab67){const _0x1f14e0=_0x28ab67==null?void 0x0:_0x28ab67['originalMeta'],_0x223de0=_0x56cbe4[_0x24630e(0x405)]['encode'](_0x56cbe4['b64DecodeUnicode'](_0x1f14e0));_0x28ab67[_0x24630e(0x4e6)]=_0x223de0,Object[_0x24630e(0x3a5)](_0x28ab67[_0x24630e(0x2a6)])[_0x24630e(0x255)](([,_0x520994])=>{const _0x10406e=_0x24630e,_0x347301=_0x520994[_0x10406e(0x4e6)],_0x865dd1=_0x56cbe4['textEncoder'][_0x10406e(0x48a)](_0x56cbe4['b64DecodeUnicode'](_0x347301));_0x520994['originalMeta']=_0x865dd1;});}return _0x137dce;}async['getSheetBlock'](_0x3c85c9,_0x3c7f43){const _0x281442=_0x3bc2c8,{unitID:_0x2bd124,type:_0x2896c4,blockID:_0x363767}=_0x3c7f43,_0x234f79=this['_getAPIPrefix']()+'/'+_0x2896c4+_0x281442(0x248)+_0x2bd124+'/block/'+_0x363767;return(await this['_httpService'][_0x281442(0x451)](_0x234f79))[_0x281442(0x1fe)];}async[_0x3bc2c8(0xe3)](_0x5c5482,_0x5b2452){const _0x14c051=_0x3bc2c8,{unitID:_0x4c3f19,type:_0x1af613,blockID:_0xb5e345}=_0x5b2452,_0x564ce0=this['_getAPIPrefix']()+_0x14c051(0x504)+_0x1af613+_0x14c051(0x248)+_0x4c3f19+'/block/'+_0xb5e345;return(await this['_httpService'][_0x14c051(0x451)](_0x564ce0))[_0x14c051(0x1fe)];}async[_0x3bc2c8(0x4ea)](_0x4609a0,_0x343dff){const _0x247b65=_0x3bc2c8,{unitID:_0x5f5f9f,type:_0x128337,from:_0x4e77e0,to:_0x38ff1d}=_0x343dff,_0xba7fe0=this[_0x247b65(0x2e1)]()+'/'+_0x128337+'/unit/'+_0x5f5f9f+_0x247b65(0x302)+_0x4e77e0+_0x247b65(0x419)+_0x38ff1d;return(await this[_0x247b65(0x305)]['get'](_0xba7fe0))[_0x247b65(0x1fe)];}['_getSnapshotAPIPrefix'](){const _0x5d2162=_0x3bc2c8;var _0x183148;return(_0x183148=this[_0x5d2162(0x4cb)][_0x5d2162(0x1db)](_0x1a9cce))!=null?_0x183148:this[_0x5d2162(0x2e1)]();}[_0x3bc2c8(0x2e1)](){const _0x55d0ec=_0x3bc2c8;var _0x5de212,_0x3e80ce;const _0x1d777f=this[_0x55d0ec(0x4cb)][_0x55d0ec(0x1db)](_0x504faf),_0x5e4bb6=this[_0x55d0ec(0x4cb)]['getConfig'](_0xa50aed);return(_0x3e80ce=(_0x5de212=_0x5e4bb6==null?void 0x0:_0x5e4bb6[_0x55d0ec(0x219)])!=null?_0x5de212:_0x1d777f)!=null?_0x3e80ce:_0x56ac46;}async[_0x3bc2c8(0x356)](_0x3074af,_0x15925f){const _0x875186=_0x3bc2c8,_0xa6911a=_0x875186(0x4f2)+_0x15925f['type']+_0x875186(0x248)+_0x15925f[_0x875186(0x1b0)]+_0x875186(0x3c0);return(await this[_0x875186(0x305)][_0x875186(0x451)](_0xa6911a,{'params':{'resourceId':JSON[_0x875186(0x2fb)](_0x15925f[_0x875186(0x40e)])}}))[_0x875186(0x1fe)];}['saveSnapshot'](){const _0x24ad3f=_0x3bc2c8;throw new Error(_0x24ad3f(0x32a));}[_0x3bc2c8(0x1c5)](){const _0x4197ed=_0x3bc2c8;throw new Error(_0x4197ed(0x32a));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x151a7f=_0x3bc2c8;throw new Error(_0x151a7f(0x32a));}},_0x48e51e[_0x3bc2c8(0x1ac)]=_0x5f530c([_0x37d277(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x37d277(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)]))],_0x48e51e[_0x3bc2c8(0x1ac)]);var _0x22fefa=Object[_0x3bc2c8(0x361)],_0x3ec19e=Object[_0x3bc2c8(0x48b)],_0x432d00=(_0x5db213,_0x3b2d93,_0x2dd3bc,_0x1333ba)=>{for(var _0x400d97=_0x1333ba>0x1?void 0x0:_0x1333ba?_0x3ec19e(_0x3b2d93,_0x2dd3bc):_0x3b2d93,_0x1f6dbd=_0x5db213['length']-0x1,_0xa417b5;_0x1f6dbd>=0x0;_0x1f6dbd--)(_0xa417b5=_0x5db213[_0x1f6dbd])&&(_0x400d97=(_0x1333ba?_0xa417b5(_0x3b2d93,_0x2dd3bc,_0x400d97):_0xa417b5(_0x400d97))||_0x400d97);return _0x1333ba&&_0x400d97&&_0x22fefa(_0x3b2d93,_0x2dd3bc,_0x400d97),_0x400d97;},_0x5289c5=(_0x7f8d87,_0x571a29)=>(_0x40db1c,_0x28a789)=>_0x571a29(_0x40db1c,_0x28a789,_0x7f8d87);let _0x55a5f9=class extends _0x5b7cfd[_0x3bc2c8(0x140)]{constructor(_0x4f699b,_0x16a030,_0x388f63,_0x12cb66,_0xa77333){const _0x4ba60d=_0x3bc2c8;super(_0x4f699b,_0x16a030,_0x388f63),this[_0x4ba60d(0x3a1)]=_0x12cb66,this[_0x4ba60d(0x4e7)]=_0xa77333;}['transformUndoRedo'](_0x501579,_0x544b3e){const _0x1aa031=_0x3bc2c8,_0x55557f=this['_getUndoStack'](_0x501579);if(_0x55557f)try{const _0x20fa39=this[_0x1aa031(0x3e8)](_0x55557f,_0x544b3e);this[_0x1aa031(0x3fd)](_0x501579,_0x20fa39);}catch(_0x18c0b5){this[_0x1aa031(0x4e7)][_0x1aa031(0x476)](_0x1aa031(0x487),_0x18c0b5),this[_0x1aa031(0x1ae)](_0x501579);}const _0x4943e1=this['_getRedoStack'](_0x501579);if(_0x4943e1)try{const _0x321cc4=this['_transformStack'](_0x4943e1,_0x544b3e);this[_0x1aa031(0x378)](_0x501579,_0x321cc4);}catch(_0x12fe90){this[_0x1aa031(0x4e7)]['error'](_0x12fe90),this[_0x1aa031(0x14c)](_0x501579);}}['_clearUndo'](_0x318e62){const _0x35e125=_0x3bc2c8,_0x16e550=this[_0x35e125(0x1cf)](_0x318e62);_0x16e550&&(_0x16e550[_0x35e125(0x3d6)]=0x0,this[_0x35e125(0x3be)]());}[_0x3bc2c8(0x14c)](_0x149d7f){const _0x1d7c62=_0x3bc2c8,_0x142f71=this[_0x1d7c62(0x194)](_0x149d7f);_0x142f71&&(_0x142f71[_0x1d7c62(0x3d6)]=0x0,this[_0x1d7c62(0x3be)]());}['_substituteUndoStack'](_0x228038,_0x2ef5df){const _0x57bc9e=_0x3bc2c8;this['_undoStacks']['set'](_0x228038,_0x2ef5df),this[_0x57bc9e(0x3be)]();}[_0x3bc2c8(0x378)](_0x2047ac,_0x30c2a3){const _0x2e4201=_0x3bc2c8;this[_0x2e4201(0x3f9)][_0x2e4201(0x10d)](_0x2047ac,_0x30c2a3),this[_0x2e4201(0x3be)]();}[_0x3bc2c8(0x3e8)](_0x2278a1,_0x5dc875){const _0x4ab4b4=_0x3bc2c8,_0x2fb912=[];let _0x2c05bf=_0x5dc875,_0x4153e8=_0x5dc875;for(let _0x1e63cd=_0x2278a1[_0x4ab4b4(0x3d6)]-0x1;_0x1e63cd>=0x0;_0x1e63cd--){const {unitID:_0x1f5b70,undoMutations:_0xdc463d,redoMutations:_0x1728b5}=_0x2278a1[_0x1e63cd],_0x18f712=this[_0x4ab4b4(0x3a1)][_0x4ab4b4(0x4b8)](_0x2c05bf,_0xdc463d),_0x5578ae=this[_0x4ab4b4(0x3a1)][_0x4ab4b4(0x4b8)](_0x4153e8,_0x1728b5);if(_0x56cbe4['isTransformMutationsWithChangesetFailure'](_0x18f712)||_0x56cbe4[_0x4ab4b4(0x475)](_0x5578ae)){this[_0x4ab4b4(0x4e7)]['error']('[CollaborationUndoRedoService]',_0x4ab4b4(0xec),_0x18f712,_0x5578ae);break;}_0x2c05bf=_0x18f712[_0x4ab4b4(0x1c9)],_0x4153e8=_0x5578ae[_0x4ab4b4(0x1c9)],_0x2fb912[_0x4ab4b4(0x13d)]({'unitID':_0x1f5b70,'undoMutations':_0x18f712['m2Prime'],'redoMutations':_0x5578ae['m2Prime']});}return _0x2fb912[_0x4ab4b4(0x37b)]();}};_0x55a5f9=_0x432d00([_0x5289c5(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x5289c5(0x1,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x5289c5(0x2,_0x5b7cfd[_0x3bc2c8(0x391)]),_0x5289c5(0x3,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x5289c5(0x4,_0x5b7cfd[_0x3bc2c8(0x1e6)])],_0x55a5f9);class _0x5f03ac extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(){const _0xbdcece=_0x3bc2c8;super(),_0x314dc6(this,_0xbdcece(0x26c)),this[_0xbdcece(0x26c)]=_0x266483[_0xbdcece(0x408)](window,_0xbdcece(0x2f2))[_0xbdcece(0x198)](_0x266483['takeUntil'](this[_0xbdcece(0x2dd)]),_0x266483[_0xbdcece(0x119)](0x1),_0x266483[_0xbdcece(0x45c)](void 0x0));}[_0x3bc2c8(0x40f)](_0x57b1b5,_0x4d6973,_0x5f28d7=!0x1){const _0x5049c0=_0x3bc2c8,_0x3db6e2=new URL(window[_0x5049c0(0x31f)][_0x5049c0(0x4e0)]);_0x3db6e2['searchParams'][_0x5049c0(0x10d)](_0x57b1b5,_0x4d6973),_0x5f28d7?window[_0x5049c0(0x1d1)][_0x5049c0(0x33c)]('','',_0x3db6e2[_0x5049c0(0x35c)]()):window[_0x5049c0(0x1d1)]['pushState']('','',_0x3db6e2[_0x5049c0(0x35c)]());}[_0x3bc2c8(0x3a7)](_0x596b3c,_0x2e1ef7=!0x1){const _0x2f69e5=_0x3bc2c8,_0x1aa4cd=new URL(window['location'][_0x2f69e5(0x4e0)]);_0x1aa4cd[_0x2f69e5(0x1bb)][_0x2f69e5(0x344)](_0x596b3c),_0x2e1ef7?window[_0x2f69e5(0x1d1)][_0x2f69e5(0x33c)]('','',_0x1aa4cd[_0x2f69e5(0x35c)]()):window[_0x2f69e5(0x1d1)][_0x2f69e5(0x410)]('','',_0x1aa4cd[_0x2f69e5(0x35c)]());}[_0x3bc2c8(0x22f)](_0x53e543){const _0x3875cb=_0x3bc2c8;var _0x10c4b0;return(_0x10c4b0=new URL(window[_0x3875cb(0x31f)][_0x3875cb(0x4e0)])[_0x3875cb(0x1bb)][_0x3875cb(0x451)](_0x53e543))!=null?_0x10c4b0:void 0x0;}}var _0x1fcae2=Object[_0x3bc2c8(0x361)],_0x43c632=Object[_0x3bc2c8(0x48b)],_0x1b86b7=(_0x1c89ad,_0x56d888,_0x54cc9c)=>_0x56d888 in _0x1c89ad?_0x1fcae2(_0x1c89ad,_0x56d888,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54cc9c}):_0x1c89ad[_0x56d888]=_0x54cc9c,_0x3f0858=(_0x5b3abe,_0x47097f,_0x4e23fe,_0xa2ef2c)=>{const _0x109717=_0x3bc2c8;for(var _0xe401ad=_0xa2ef2c>0x1?void 0x0:_0xa2ef2c?_0x43c632(_0x47097f,_0x4e23fe):_0x47097f,_0xaff66=_0x5b3abe[_0x109717(0x3d6)]-0x1,_0x151d19;_0xaff66>=0x0;_0xaff66--)(_0x151d19=_0x5b3abe[_0xaff66])&&(_0xe401ad=(_0xa2ef2c?_0x151d19(_0x47097f,_0x4e23fe,_0xe401ad):_0x151d19(_0xe401ad))||_0xe401ad);return _0xa2ef2c&&_0xe401ad&&_0x1fcae2(_0x47097f,_0x4e23fe,_0xe401ad),_0xe401ad;},_0x154545=(_0x2c31c9,_0x399efb)=>(_0x347b48,_0x303442)=>_0x399efb(_0x347b48,_0x303442,_0x2c31c9),_0x393c30=(_0x25a76d,_0x2d70de,_0x30fa33)=>_0x1b86b7(_0x25a76d,_0x2d70de+'',_0x30fa33);const _0x141509='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x48e51e[_0x3bc2c8(0x465)]=class extends _0x5b7cfd['Plugin']{constructor(_0x4ac9a=_0xdae42f,_0xccc267,_0x1f9189,_0x2491f7,_0x43e87b){const _0x4d8d13=_0x3bc2c8;super(),this[_0x4d8d13(0x335)]=_0x4ac9a,this[_0x4d8d13(0x4e7)]=_0xccc267,this['_renderManagerService']=_0x1f9189,this['_injector']=_0x2491f7,this[_0x4d8d13(0x4cb)]=_0x43e87b;const {..._0x159e42}=this[_0x4d8d13(0x335)];this[_0x4d8d13(0x4cb)]['setConfig'](_0xa50aed,_0x159e42);}[_0x3bc2c8(0x4a2)](){const _0x4ad590=_0x3bc2c8;this[_0x4ad590(0x16d)]();}['onRendered'](){const _0x29e7d8=_0x3bc2c8;this[_0x29e7d8(0x34a)]();}[_0x3bc2c8(0x16d)](){const _0x58ce81=_0x3bc2c8;var _0x65f5d,_0x40354c,_0x4138b4,_0x2a22d0;this[_0x58ce81(0x30f)]['has'](_0x5b7cfd['IUndoRedoService'])&&this['_logService'][_0x58ce81(0x476)](_0x58ce81(0x416),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x244b63=[[_0x5b7cfd[_0x58ce81(0x313)],{'useClass':_0x55a5f9}],[_0x48e51e[_0x58ce81(0x1d8)]],[_0x2e16f3],[_0x4ba5d1[_0x58ce81(0x38b)]],[_0x325c17,{'useClass':_0x5f03ac}],[_0x587d5a],[_0x48e51e['LocalCacheService']],[_0x4ba5d1[_0x58ce81(0x479)]],[_0x2cedfe],[_0x12ef35],[_0x1e6c69],[_0x56b650],[_0x52d4b9],[_0x4173ed],[_0x1225af],[_0x21857a],[_0x2644e7,{'useClass':(_0x40354c=(_0x65f5d=this[_0x58ce81(0x335)])==null?void 0x0:_0x65f5d['socketService'])!=null?_0x40354c:_0x48e51e[_0x58ce81(0x17f)]}],[_0x4ba5d1['IHTTPImplementation'],{'useClass':_0x4ba5d1[_0x58ce81(0x433)]}],[_0x56cbe4[_0x58ce81(0x118)],{'useClass':_0x48e51e[_0x58ce81(0x1ac)]}],[_0x5b7cfd['IAuthzIoService'],{'useClass':_0x48e51e[_0x58ce81(0x4d7)]}],[_0x35c9a1['IImageIoService'],{'useClass':_0x48e51e[_0x58ce81(0x203)]}],[_0x48e51e[_0x58ce81(0x30c)]],[_0x48e51e[_0x58ce81(0x3a2)]],[_0x48e51e[_0x58ce81(0x4ed)]],[_0x34caf5],[_0x47bd3e]];(_0x4138b4=this[_0x58ce81(0x335)])!=null&&_0x4138b4[_0x58ce81(0x469)]&&_0x244b63[_0x58ce81(0x13d)]([_0x5e9761,{'useClass':_0x384617}]),_0x244b63=_0x5b7cfd['mergeOverrideWithDependencies'](_0x244b63,(_0x2a22d0=this[_0x58ce81(0x335)])==null?void 0x0:_0x2a22d0[_0x58ce81(0x349)]),_0x244b63[_0x58ce81(0x255)](_0x53f0f1=>this[_0x58ce81(0x30f)][_0x58ce81(0x225)](_0x53f0f1)),this[_0x58ce81(0x431)]();}[_0x3bc2c8(0x34a)](){const _0x56be47=_0x3bc2c8;this[_0x56be47(0x131)](this['_renderManagerService'][_0x56be47(0x156)](_0x5b7cfd[_0x56be47(0x4bb)][_0x56be47(0x3a6)],[_0x260281])),this[_0x56be47(0x131)](this[_0x56be47(0x4bd)][_0x56be47(0x156)](_0x5b7cfd[_0x56be47(0x4bb)][_0x56be47(0x301)],[_0x18e89b]));}['_initModules'](){const _0x1fae14=_0x3bc2c8;var _0x4bc4f7,_0x41b3d1;this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x4ba5d1['HTTPService'])[_0x1fae14(0x1d0)]({'priority':0x14,'interceptor':_0x4ba5d1['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x1fae14(0x30f)]['get'](_0x4173ed),(_0x4bc4f7=this[_0x1fae14(0x335)])!=null&&_0x4bc4f7[_0x1fae14(0x2b6)]||this[_0x1fae14(0x30f)]['get'](_0x48e51e[_0x1fae14(0x47d)])[_0x1fae14(0x397)](),(_0x41b3d1=this['_config'])!=null&&_0x41b3d1[_0x1fae14(0x300)]&&this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x52d4b9),this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x48e51e[_0x1fae14(0x30c)]),this[_0x1fae14(0x30f)][_0x1fae14(0x232)](_0x48e51e[_0x1fae14(0x4ed)])&&this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x48e51e[_0x1fae14(0x4ed)]);}},_0x393c30(_0x48e51e[_0x3bc2c8(0x465)],_0x3bc2c8(0x45a),_0x141509),_0x48e51e['UniverCollaborationClientPlugin']=_0x3f0858([_0x5b7cfd['DependentOn'](_0x56cbe4[_0x3bc2c8(0x19a)]),_0x154545(0x1,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x154545(0x2,_0x46e2e3[_0x3bc2c8(0x37e)]),_0x154545(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x154545(0x4,_0x5b7cfd['IConfigService'])],_0x48e51e[_0x3bc2c8(0x465)]),_0x48e51e[_0x3bc2c8(0x3e7)]=_0x27ab3d,_0x48e51e[_0x3bc2c8(0x402)]=_0x3bca7a,_0x48e51e['COLLAB_WEB_SOCKET_URL_KEY']=_0x4989e3,_0x48e51e[_0x3bc2c8(0x2d7)]=_0x5926c5,_0x48e51e[_0x3bc2c8(0x235)]=_0x2c3280,_0x48e51e[_0x3bc2c8(0x28b)]=_0x1225af,_0x48e51e[_0x3bc2c8(0x2f4)]=_0x4afd24,_0x48e51e['HEARTBEAT_TIMEOUT_KEY']=_0x372540,_0x48e51e['ICollaborationSocketService']=_0x2644e7,_0x48e51e[_0x3bc2c8(0x1ba)]=_0x325c17,_0x48e51e[_0x3bc2c8(0x2b9)]=_0x23080c,_0x48e51e[_0x3bc2c8(0x4dd)]=_0x29174f,_0x48e51e[_0x3bc2c8(0x35e)]=_0x191200,_0x48e51e['SEND_CHANGESET_TIMEOUT_KEY']=_0x2d7fa5,_0x48e51e['SNAPSHOT_SERVER_URL_KEY']=_0x504faf,_0x48e51e[_0x3bc2c8(0x498)]=_0x1a9cce,_0x48e51e['SessionStatus']=_0x2d9d4e,_0x48e51e[_0x3bc2c8(0x2de)]=_0x44ac57,_0x48e51e[_0x3bc2c8(0x1c4)]=_0x5f03ac,_0x48e51e[_0x3bc2c8(0x1a8)]=_0x262567,_0x48e51e[_0x3bc2c8(0x395)]=_0x3eb981,Object[_0x3bc2c8(0x361)](_0x48e51e,Symbol['toStringTag'],{'value':_0x3bc2c8(0x4bf)});}));function _0x197e(){const _0x5230b5=['indexOf','roomMembers','UserManagerService','onSendChangeset','length','session','activeSheet$','toDisposable','color','children','objectID','@univerjs/rpc','OTHER_CLIENTS_EDITING','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_joinRoom','awaitingChangeset','_pendingMutations','JOIN','onPointerEnter$','height','_roomMembers','AUTHZ_URL_KEY','_transformStack','_toggleOffline','addImageSourceCache','online','UniverCollaborationClient','_createInitialState','patch','setShapeProps','font','colorChannel1','_transformPreviousActiveRange','getTime','COLORS','_waitForHeartbeatResponse','closeSession','SNAPSHOT_INVALID_SNAPSHOT','@univerjs-pro/collaboration','_redoStacks','onTransformChange$','transformRemoteChangeset','_eventUnsubscribe','_substituteUndoStack','setWaitCount','useDependency','_status$','cursorInfo$','COLLAB_SUBMIT_CHANGESET_URL_KEY','_getAPIPrefixPath','_online','textEncoder','permission.content','displayName','fromEvent','_updateLocalCursor','target','DEFAULT_FILE_NAME','clearInterval','routeKey','resourceIDs','setParam','pushState','POST','enableLocalCache','type','_onUserJoin','sheetID','[UniverCollaborationClientPlugin]','_getDownloadEndpointURL','collabStatus.synced','&to=','awaiting_with_pending','PERMISSION_REJ','debounceTime','[OfflineState]:\x20received\x20acknowledgement.','DeleteRangeMoveLeftCommandId','fetching\x20missing\x20changesets\x20from\x20','React','_transformSelections','triggerDblclick','resend','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CommandType','_sessionStatus$','onMouseMove','labelPosition','LIVESHARE_OPERATION','LIVESHARE_TERMINATE','sendChangesetTimeout','collaboration-client.offline-data-not-saved','UniverIcon','onMissedChangesetFetched','stopTime','_scheduleTimestamp','_initModules','hovered','XHRHTTPImplementation','_docSkeletonManagerService','addEventListener','649272hNmxKV','_drawTextRange','key','black','_clearLocalCache','[PendingState]:\x20received\x20acknowledgement.','transformIMECache','getSheetId','BehaviorSubject','/universer-api/comb','image/bmp','send','_ws','gold400','fromEventSubject','addObjects','initWorkbookPermissionChange','&assign=','flatMap','SheetCollaborationEntity','_syncEditingCollabCursor','newValue','tag','USERS_LEAVE','RevisionService','hasOwnProperty','_docTransformSelectionsService','get','file','_shouldReportTelemetry','SUCCUSS','NEW_CHANGESETS','RemoveRowCommandId','subscribeEvent','apply','INTERNAL_ERROR','pluginName','telemetry\x20info\x20is\x20not\x20initialized','mapTo','icon','_clearTimeoutTimer','_acknowledgedAwaitingChangeset','endColumn','_transformIMECache','RxDisposable','LIVESHARE_REQUEST_HOST','replaceTextRanges','UniverCollaborationClientPlugin','updateCollaborator','getUnit','restore','enableSingleActiveInstanceLock','_sendHeartbeatTimer','takeUntil','JSONX','getDocRanges','APPLY_REJECT','debug','duration','_throwTelemetryCollaborationNewChangeset','_HTTPService','extend','svg','isTransformMutationsWithChangesetFailure','error','socket$','_event$','WebSocketService','replace','_waitCount','RegularPolygon','LocalCacheService','hide','getViewport','843364WioRfM','_socketMessageSubscription','/rev/','_labelPosition','CollaborationEvent','ALREADY_EXISTS','setUndoRedoMutationParamsCache','[CollaborationUndoRedoService]','makeDirty','allowed','encode','getOwnPropertyDescriptor','socket\x20close','getUndoRedoMutationParamsCache','getCurrent','memberID','rgba(255,\x20255,\x20255,\x200.01)','@univerjs/ui','method','refreshPermission','@univerjs/telemetry','toggleOffline','ColorKit','APPLY_PERMISSION_DENIED','SNAPSHOT_URL_KEY','#FFF','_revisionService','_roomMembers$','on-line-single_clip0_910_349','10TRrphZ','putCollaborators','conflict.content','_onMessage','fetch_missing','onStarting','{fileID}','HELLO','getTypeOfUnitDisposed$','_initCommandExecutedListener','ACTIVE_UNIT_EVENT_CHANNEL','switchMap','loadSheet','measureText','function','bottom','status','@univerjs/engine-render','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_sheetSkeletonManagerService','assign','onTransformSelections','onlyLocal','LICENSE_DISTRO_REJECTED','setAlpha','cursorInfo','APPLY_NON_SEQUENTIAL_REVISION','transformMutationsWithChangeset','AWAITING','setCurrentUser','UniverInstanceType','DeleteRangeMoveUpCommandId','_renderManagerService','_name','Module','Starting','exhaustSavingTask','values','CHANGESET_REJ','getUnhiddenWorksheets','_clearCollaborationTimeoutTimer','getCollabCursors$','_unitID','getOwnPropertySymbols','NOT_FOUND','UNKNOWN_CMD','_configService','_hideTimer','_startTelemetryCollaborationNewChangeset','collabStatus.conflict','WorkbookEditablePermission','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','ILocalStorageService','startTime','round','connection\x20error','1em','_sessions','AuthzIoHttpService','fillRule','_urlService','requestParams','COMPLETION_FINISHED','_clearOtherTimers','LOGIN_URL_KEY','UNAUTHENTICATED','connectInjector','href','_awaitingChangeset','_createSocket','0\x200\x2016\x2016','_showConflictNotification','getCellPositionByOffset','originalMeta','_logService','blue400','collabStatus.notCollab','fetchMissingChangesets','asObservable','parse','DesktopCollaborationStatusDisplayController','updateOfflineData','_lastPointer','_scene','reduce','/universer-api/snapshot/','_scheduleSaving','@univerjs/docs','updateCursorEvent','throttleTime','CHANGESET_ACK','/universer-api/stream/file/upload','image/png','Undefined','current','_getSendChangesetTimeout','encodeURIComponent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','selections','MSG_FOR_ERROR','VIEW_MAIN','url(#off-line-single_clip0_910_343)','_state$','/block/','_socketReady','_onConnectionOpen','COMMENT_UPDATE','className','sessionStatus$','getRoom','COMPRESS_MUTATION_APPLY','_initStatusListener','OnLifecycle','newCsEvent','_listenToOfflineEvent','_updateSubUnitFromURLParams','resolve','_onCursorUpdate','[FetchMissState]','onMissingChangesets','_docTransformIMECacheService','registerComponent','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','UnitEmbedded','InsertRowCommandId','UUID','M0\x200H16V16H0z','_getCtorByUniverType','/universer-api/oidc/authpage','_docSkeleton','useCallback','eventID','/-/object/list','getDeserializedSheetBlock','next','univer-offline','fill','UniverDesign','\x0aCurrent:\x20','IRemoteInstanceService','_startCollaboration','_getSaveTimeout','transformStack\x20failed!','session.connection-failed','sessionStatus','slice','HttpImport','/-/object/-/batch_allowed','_cursorShapes','SEND_CHANGESET_TIMEOUT','NodePositionConvertToCursor','onRemoteAck','ImageSourceType','find','_collabCursorController','ImageUploadStatusType','_http','EffectRefRangId','collaboration_new_changeset','SYNCED','_initResize','drawWith','_updateLocalCache','responseType','roomInfos','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','FETCH_MISS','getCurrentUser','_permissionService','/role','_tryEnsureSocket','transformSelections','_cursors','_univerInstanceService','_onRecvEvent','set','complete','_handleLeaveEvent','_rescheduleHeartbeat','Injector','getUnitStatus$','action','unsubscribe','debounce','handleDeleteRangeMoveLeft','UniverCore','ISnapshotServerService','shareReplay','_disableEditing','APPLY_REVISION_CONFILICT','UNIVER_UNKNOWN','_onFetchMissResult','synced','_scheduleHeartbeat','@univerjs/design','Vector2','UniverDrawing','FETCH_MISSING','INVALID_ARGUMENT','_cachedData','call','size','commentUpdate$','collabSubmitChangesetUrl','_commentUpdate$','LIVESHARE_NEW_HOST','DisposableCollection','failed\x20to\x20apply\x20missed\x20changesets!','parseChangesetToProtocol','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','disposeWithMe','getSheetBySheetId','getVpScrollXYInfoByPosToVp','HEARTBEAT_INTERVAL','/universer-api/authz','128445DHscXR','[SyncedState]:\x20received\x20acknowledgement.','textRanges','_singleActiveUnitService','symbol','@univerjs/engine-formula','Inject','push','userID','_onJoinRoomEvent','LocalUndoRedoService','csAckEvent','3hvfZMw','baseRev','_handleHeartbeatEvent','react','_applyRemoteChangeset','ERROR_IMAGE','INGEST','_onCombEvent','collab-text-range-','session.collaboration-timeout','_clearRedo','compose','setActiveRange','signUrlServerUrl','findNodePositionByCharIndex','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_initCloseConn','univer-online-status-icon','beginPath','unit','registerRenderModule','incrementRevOfUnit','@univerjs/network','_memberService','?size=','post','capture','_unitStatus','_createHandler','onCommandExecuted','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','name','members','_localStorageService','event$','pauseCollaboration','withCredentials','updateMember','?url=','_ensureSubject','_onOffline','sequenceExecute','_range','_registerDependencies','LEAVE','update','_sheetTransformSelectionsService','_colorIndex','_unlockTransition','ERROR_IMAGE_TYPE','clear','transformChangesets','4088szltQB','range','VIEWPORT_KEY','editingUnit','startColumn','title','_submitChangeset','min','retryConnectingInterval','CollaborationSocketService','isTransformMutationsWithChangesetSuccess','getUnitOnRev','RemoveColCommandId','getUnitId','_colorAssignService','MessageType','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','updatePermissionObjEvent','loadDoc','_queuedRemoteChangesets','OnLineSingle','\x20to\x20','_handleJoinEvent','SheetSkeletonManagerService','_removeRoom','red300','url(#$1','c2Prime','@univerjs/sheets-ui','CollaborationEntity','_getRedoStack','syncEditingCollabCursor','EmptyMutation','isTransformMutationFailure','pipe','_transformUndoredo','UniverCollaborationPlugin','_commentService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','delay','uni.network.url-service','setTimeout','FileId','_imageSourceCache','onlineStatus','createInstance','cmd','addObject','with','\x20-\x20','deserializeToCombResponse','onTransformIME','SetTextSelectionsOperation','close$','SnapshotServerOverHTTPService','UniverLicense','_clearUndo','IMessageService','unitID','revision','YUUMI_RATE_OVER_LIMIT','width','_telemetryService','/allowed','_replayCachedMutations','_socket$','getFocusedUnit','collabCursorState$','IURLService','searchParams','skeleton','translate(.97)','/object/','_setupBeforeClosingHandler','_sendHeartbeat','substring','DocIMEInputManagerService','Rect','WebURLService','saveSheetBlock','transformUndoRedo','_draw','JOINING','c1Prime','_send','_entityInit$','isArray','collaborators','Unknown\x20user','_getUndoStack','registerHTTPInterceptor','history','on-line-single','json','Disposable','append','_messageService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','CollaborationSessionService','generateRandomId','_retryCount','getConfig','off-line-single','InsertColCommandId','_onLocalMutation','attrs','Steady','exports','sheetId','from','column','state$','ILogService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','BASE64','DocStateChangeManagerService','_snapshotServerService','socket\x20open.','idSuffix','_hover','_createInitialStateImpl','combineLatest','HEARTBEAT','/collaborator','_snapshotService','BuiltInUIPart','_stopTelemetryCollaborationNewChangeset','univer-online','split','_handler','Warning','createCollaborator','_candidateSocket','clsx','mutations','...','body','leaveEvent','CHANGESET_REVISION_CONFILICT','every','UNIVER_SLIDE','ImageIoService','list','commentUpdateEvent','_change$','collaboratorID','fetchMiss','conflict','div','LifecycleStages','_color','createIdentifier','toggleOnline','_getSheetObject','string','serializeRangeWithSheet','close','createElement','state','handleInsertRangeMoveRight','[CollaborationState]:\x20apply\x20error!','_onRefRangeChange','[DataLoaderController]','snapshotServerUrl','all','getValue','_getCurrentRevision','_shapes','_collaborationTimeoutTimer','closePath','collab-rect-range-','COMPRESS_MUTATION_SEND','getCurrentSelections','registerRefRange','Rectangle','add','permissionRejEvent','handleInsertRow','focused$','_remoteChangesetQueue','_getSignURL','jiqing500','[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.','getCurrentRevOfUnit','UniverEngineFormula','getParam','currentTheme$','_anchor','has','[CollaborationSessionService]','UPDATE_CURSOR','CollaborationStatusDisplay','_refreshCollabCursors','clipPath','_userManagerService','NodePositionConvertToRectRange','SetWorksheetActivateCommand','_getUploadFileURL','PSEUDO_FETCH_MISSING_RESULT','TOO_MANY_REQUESTS','_removeClearOtherTimer','_telemetryInfo','getActiveSheet','_initEventListeners','parseProtocolChangeset','_refRangeService','OffLineSingle','createSocket','CollaborationSession','_timeoutTimer','/unit/','engine','mapDocumentTypeToUniverType','UniverNetwork','_localeService','_collabSessionService','HttpExport','_onRemoteACK','univer-pro.collaboration-client-socket-service','_type','_startSheetCollabCursor','InsertSheetMutation','PERMISSION_DENIED','forEach','arc','startRow','onTransformRemoteChangesetByIMECache','Optional','[PendingState]:\x20received\x20rejection.','168ueFXFt','_docSyncEditingCollabCursorService','snapshot','_updateState','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_backgroundColor','_onRemoteChangeset','IConfigService','PENDING','top','awaiting','onlineStatusIcon','handleInsertRangeMoveDown','AWAITING_WITH_PENDING','_cursorInfo$','max','CONNECTOR_DATA_TOO_LARGE','urlChange$','_retryConnectingTimer','RETRY_CONNECTING_MAX_COUNT','getSkeleton','UniverDocsUi','LICENSE_MAX_UNITS_EXCEEDED','getRelativeToViewportCoord','onCommentUpdate','IDLE','m2Prime','_init','_hovered','fillText','getUniverSheetInstance','getCollabEntity$','_getAnchorBounding','hidden','ICommandService','FAIL','getInterceptPoints','USERS_ENTER','_scheduleCollaborationTimeoutTimer','interceptor','3415rCOFCn','univer-online-status','objects','_drawAnchor','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','handleMoveRange','x-univer-host','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','CommentService','getUnitType','reconnect','_id','HTTPRequest','_heartbeatTimer','LIVESHARE_FETCH_OPERATIONS','editing\x20status\x20changed\x20to','prototype','status$','appendMutation','ERROR_EXCEED_SIZE','MoveRangeCommandId','saveImage','open$','_notificationService','deepClone','collaboration.closeRoom','LICENSE_EXPORT_SIZE_EXCEEDED','IUniverInstanceService','show','fillStyle','_loadDoc','text','[OfflineState]:\x20received\x20changeset.','_compressMutationService','merge','sheets','executeCommand','_clearScheduledTask','_removeCollabCursors','isActive','getImage','_socketService','TEXT_RANGE_LAYER_INDEX','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_entities','infoRsp','selection','_collaborationController','_state','_assignedColors','authzUrl','enableOfflineEditing','shouldCloseConn','image/jpg','LOCAL_CACHE_INTERVAL_KEY','_saveTaskMap','COLLAB_SUBMIT_CHANGESET_URL','handleIRemoveRow','catch','_onConflict','roles','UNKNOWN_CODE','DocSelectionManagerService','SHOULD_CLOSE_CONN','INotificationService','message$','_lockTransition','_commandService','getAttachHeader','rxjs','change$','_fetchMissChangesets','_onUserLeave','workbook','_instanceService','subunit','_setupSubUnitSync','getMemberID','getOffsetConfig','doc.mutation.rich-text-editing','resize','result','ranges','_getLoginPath','CollaborationStatus','Workbook','visibilityState','trim','data','_initRequestHeader','dispose$','SheetCollabCursorShape','evenodd','onSyncEditingCollabCursor','_getAPIPrefix','headers','subUnitId','[CollaborationSession]','Subject','FromArray','objectType','LICENSE_IMPORT_SIZE_EXCEEDED','_loadSheet','ITransformService','concatMap','_beforeCloseService','_initMergeInterceptor','206372uMuYiT','now','localeService','getItem','popstate','_tryReconnect','HEARTBEAT_INTERVAL_KEY','subscribe','Tools','_anchorDot','_initUnitPermissionChange','isInternalEditorID','_drawRectRange','stringify','contains','actions','_saveCache','/universer-api/snapshot','enableAuthServer','UNIVER_SHEET','/fetchmissing?from=','rxjs/operators','SNAPSHOT_HAS_BEEN_REMOVED','_httpService','SnapshotService','UNDEFINED','ThemeService','IBeforeCloseService','isPermissionRej','loadOfflineData','CollaborationController','collab-text-anchor-','xlink:href','_injector','_undoRedoService','onStateChange','Univer','IUndoRedoService','dispose','objectActions','_getScale','verdancy600','requireSession','moveTo','defs','liveShareNewHost','RECV','transformMutation','currentColor','location','Error\x20on\x20receiving\x20event','batchAllowed','ONLINE','InsertRangeMoveRightCommandId','_disabled','reject','_getSnapshotAPIPrefix','getTypeOfUnitAdded$','handleInsertCol','UNIVER_PROJECT','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','joinRsp','m1Prime','ITelemetryService','SetSelectionsOperation','_sendingTimer','\x0aAfter:\x20','_context','deleteCollaborator','UnitSnapshot','getRangePointData','_config','collabStatus.fetchMiss','code','_isPermissionRej','YUUMI_SUBSCRIPTION_NOT_FOUND','whenReady','permission.title','replaceState','assignAColorForMemberID','_decreaseWaiting','path','_replaceFileID','init','IPermissionService','Shape','delete','off-line-single_clip0_910_343','@univerjs/core','_updateURLWithCurrentState','_themeService','override','_registerRenderDependencies','SheetsSelectionsService','_unitOnClients','onPointerLeave$','Error','_selfUnitIDs','_executeRemoteChangeset','_textBubble','NOT_COLLAB','concat','#fff','DocCollaborationEntity','getResourcesRequest','UniverCollaboration','_toggleOnline','_onRemoteRejected','getMergeData','fetchThroughInterceptors','toString','CONFLICT','RETRY_CONNECTING_MAX_COUNT_KEY','visibilitychange','toRgbString','defineProperty','_cursor','_clearHeartbeatTimer','_schedule','_handleHover','lineTo','saveOfflineData','RichTextEditingMutation','_onCursorDelete','isValidRectRange','&source=','Ready','getCollabEntity','loginUrlKey','_checkMissing','endRow','collaboration-client.config','unitId\x20is\x20not\x20found','unitId','MUTATION','CompressMutationService','uploadFileServerUrl','unshift','_substituteRedoStack','_render','updatePermissionPoint','reverse','_updateCollabCursors','collabWebSocketUrl','IRenderManagerService','defIds','_collabCursorState$','_listenToOnlineEvent','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleClearOtherTimer','onRemoteChangeset','LocaleService','Tooltip','UniverUi','unknown','pending','take','HTTPService','_syncEditingCollabCursorService','fromCollab','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','onRemoteRej','UniverSheets','IContextService','offline','_incrementRevisionNumber','origin','serializeCombRequest','UNRECOGNIZED','disableLocalCache','collaboration.single-unit.warning','InsertRangeMoveDownCommandId','submit\x20changeset\x20error!','src','map','row','@univerjs/drawing','_collaborationPaused','roomMembers$','_transformService','DataLoaderController','then','_docStateChangeManagerService','entries','UNIVER_DOC','removeParam','none','includes','joinEvent','[CollaborationEntity]','image/jpeg','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_initStatusComponent','SetDocZoomRatioOperation','OFFLINE','readAsDataURL','_transformRemoteChangesetByIMECache','save','_handleEvent','create','filter','2513763RqBVeO','getCoordByCell','UniverEngineRender','removeMember','_startDocCollabCursor','setItem','_collaborationSessionService','_updateStatus','_localCacheService','/resources','getMember','params','collaboration-session-retry','@univerjs/docs-ui','YUUMI_UNABLE_LOAD_URL','rev','forwardRef','isTransformChangesetsSuccess','_onConnectionFailed','DocSkeletonManagerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getColor','_transitionLocked','getImageSourceCache','_session','_members','_socket'];_0x197e=function(){return _0x5230b5;};return _0x197e();}
|
1
|
+
function _0x5448(_0x2c6472,_0x238c31){const _0x2e97c1=_0x2e97();return _0x5448=function(_0x544853,_0x127254){_0x544853=_0x544853-0x188;let _0x38c5b3=_0x2e97c1[_0x544853];return _0x38c5b3;},_0x5448(_0x2c6472,_0x238c31);}function _0x2e97(){const _0x2a5261=['_injector','_scheduleCollaborationTimeoutTimer','transformStack\x20failed!','unit','parseProtocolChangeset','_submitChangeset','off-line-single_clip0_910_343','/allowed','roomMembers$','ALREADY_EXISTS','_transformRemoteChangesetByIMECache','_setupSubUnitSync','_startDocCollabCursor','_members','InsertSheetMutation','UniverCollaborationPlugin','awaiting','OTHER_CLIENTS_EDITING','onRendered','AUTHZ_URL_KEY','LifecycleStages','collab-text-range-','setTimeout','throttleTime','_clearTimeoutTimer','WorkbookEditablePermission','routeKey','IUIPartsService','FromArray','SetSelectionsOperation','EXCHANGE_SIGN_URL_SERVER_URL_KEY','clear','getSkeleton','_docTransformSelectionsService','_showConflictNotification','_colorAssignService','type','transformByState','_color','LIVESHARE_FETCH_OPERATIONS','_transformUndoRedoStack','DocSelectionManagerService','YUUMI_SUBSCRIPTION_NOT_FOUND','attrs','_commandService','UniverCollaborationClientPlugin','Error','_replaceFileID','removeMember','capture','\x0aCurrent:\x20','UNRECOGNIZED','state$','getDocRanges','Inject','getUniverSheetInstance','collabCursorState$','getCurrentSelections','_transitionLocked','M0\x200H16V16H0z','UUID','liveShareOperation','liveShareNewHost','getDeserializedSheetBlock','url(#$1','onSendChangeset','idSuffix','eventID','onCommentUpdate','column','_document','fetching\x20missing\x20changesets\x20from\x20','_transformSelections','_cursorShapes','LIVESHARE_TERMINATE','currentColor','univer-online','_drawAnchor','transformIMECache','_ensureSubject','COMPRESS_MUTATION_SEND','ImageIoService','event$','_onRemoteRejected','getOwnPropertySymbols','next','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','handleDeleteRangeMoveUp','NOT_COLLAB','HEADER_MENU','isValidRectRange','HEARTBEAT_INTERVAL_KEY','toggleOffline','\x20to\x20','width','saveImage','RefRangeService','closeSession','cmd','UniverLicense','toString','has','post','toggleOnline','DocIMEInputManagerService','collaboratorID','operators','includes','1078170ewBdct','fillText','_assignedColors','onRemoteAck','fromEvent','image/jpeg','BehaviorSubject','LOGIN_URL_KEY','_sessionStatus$','INGEST','@univerjs/telemetry','MUTATION','POST','encode','_exhaustRemoteChangesetQueue','_anchor','synced','call','getConfig','&assign=','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','UNIVER_SLIDE','110256AeDCKZ','_onCursorUpdate','appendMutation','_snapshotServerService','onSyncEditingCollabCursor','RECV','conflict','getUnhiddenWorksheets','dispose$','_decreaseWaiting','_loadDoc','_drawTextRange','confirm','doc.mutation.rich-text-editing','getRoom','[CollaborationState]:\x20apply\x20error!','_cursor','_updateLocalCursor','SEND_CHANGESET_TIMEOUT','saveSnapshot','endRow','_onConnectionFailed','filter','UniverInstanceType','_collaborationController','ILocalStorageService','_telemetryInfo','[SyncedState]:\x20received\x20acknowledgement.','triggerDblclick','isTransformChangesetsSuccess','ImageUploadStatusType','onRemoteChangeset','_initStatusComponent','collabSubmitChangesetUrl','transformUndoRedo','awaiting_with_pending','InsertRangeMoveDownCommandId','_substituteUndoStack','_updateSubUnitFromURLParams','Disposable','SNAPSHOT_URL_KEY','_onConflict','_candidateSocket','makeDirty','_substituteRedoStack','_notificationService','then','_saveTaskMap','createSocket','parse','round','generateRandomId','onTransformRemoteChangesetByIMECache','IDLE','AWAITING','split','collab-client.tooltip.reconnect','OnLifecycle','getUnitStatus$','_onUserLeave','m1Prime','beginPath','getMemberID','getTime','isTransformMutationsWithChangesetFailure','_onCursorDelete','SessionStatus','_createInitialStateImpl','name','registerOnClose','prototype','string','JSONX','_range','UniverDrawing','listRoles','csAckEvent','now','SNAPSHOT_SERVER_URL_KEY','/-/object/-/batch_allowed','_entityInit$','_sendHeartbeatTimer','getActiveSheet','transformMutationsWithChangeset','AuthzIoHttpService','compose','transformSelections','session.will-retry','deleteCollaborator','getCurrent','_http','TEXT_RANGE_LAYER_INDEX','removeParam','ThresholdInterceptorFactory','collaborators','_syncEditingCollabCursorService','_onRefRangeChange','CONFLICT','loadDoc','clsx','Rect','RemoveColCommandId','_tryEnsureSocket','_docTransformIMECacheService','hide','CONNECTOR_DATA_TOO_LARGE','sequenceExecute','[CollaborationSessionService]','SNAPSHOT_HAS_BEEN_REMOVED','FETCH_MISS','visibilitychange','icon','delete','_tryReconnect','isTransformMutationsWithChangesetSuccess','entries','rev','measureText','ERROR_IMAGE','find','createCollaborator','BuiltInUIPart','?url=','DocCollaborationEntity','_getAPIPrefixPath','[CollaborationSession]','forwardRef','\x20-\x20','size','OnLineSingle','@univerjs/engine-render','SUCCUSS','[OfflineState]:\x20received\x20rejection.','_onLocalMutation','_clearScheduledTask','objectID','_handler','FAIL','m2Prime','_selfUnitIDs','DEFAULT_FILE_NAME','storage','_initCommandExecutedListener','_transformPreviousActiveRange','_compressMutationService','[DataLoaderController]','div','_toggleOffline','CollaborationSocketService','0\x200\x2017\x2016','/universer-api/snapshot/','LIVESHARE_REQUEST_HOST','_event$','on-line-single','@univerjs/sheets','NOT_FOUND','_getMergeRange','_joinRoom','_getSaveTimeout','_updateStatus','31384tptnsn','_getDownloadEndpointURL','_roomMembers','RETRY_CONNECTING_MAX_COUNT','url(#on-line-single_clip0_910_349)','handleIRemoveCol','allowed','_onRemoteACK','serializeCombRequest','@univerjs/ui','disableLocalCache','getSheetId','getUnit','retryConnectingInterval','SheetSkeletonManagerService','@univerjs/rpc','_clearUndo','setWaitCount','YUUMI_RATE_OVER_LIMIT','fillRule','/block/','_schedule','getRangePointData','@univerjs/network','defs','INTERNAL_ERROR','localeService','uni.network.url-service','send','React','assignAColorForMemberID','_syncEditingCollabCursor','getMember','_getSnapshotAPIPrefix','roomMembers','debug','_init','takeUntil','_name','stopTime','baseRev','revision','_collabSessionService','Ready','11640nMcAQj','sendChangesetTimeout','history','UNDEFINED','_scheduleTimestamp','exports','asObservable','/-/object/list','toDisposable','getCurrentRevOfUnit','replace','NEW_CHANGESETS','getRelativeToViewportCoord','drawWith','_createSocket','updateOfflineData','univer-online-status-title','shareReplay','InsertRowCommandId','CollaborationController','color','urlChange$','debounce','addEventListener','4415751OuPToI','_sheetSkeletonManagerService','3JvyOYC','_acknowledgedAwaitingChangeset','UniverTelemetry','UNIVER_DOC','_stopTelemetryCollaborationNewChangeset','_drawRectRange','_updateLocalCache','_disabled','_listenToOfflineEvent','_httpService','BASE64','csRejEvent','Starting','status$','_startSheetCollabCursor','_clearHeartbeatTimer','/universer-api/snapshot','data','values','not_collab','HTTPRequest','CHANGESET_REVISION_CONFILICT','arc','SetWorksheetActivateCommand','isInternalEditorID','_rescheduleHeartbeat','status','_textBubble','UniverCollaboration','_status$','HELLO','_docSkeleton','height','_instanceService','show','LocalCacheService','collab-text-anchor-','_getRedoStack','getCellPositionByOffset','ThemeService','textRanges','PSEUDO_FETCH_MISSING_RESULT','useDependency','MergeInterceptorFactory','WebSocketService','_state$','INVALID_ARGUMENT','_retryConnectingTimer','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_handleEvent','_commentUpdate$','interceptor','LIVESHARE_OPERATION','slice','reconnect','LEAVE','_online','UniverIcon','_removeClearOtherTimer','SnapshotServerOverHTTPService','/fetchmissing?from=','clearInterval','offline','unit-cache-','getColor','blue400','evenodd','random','getAncestorScale','getValue','UniverNetwork','collabStatus.notCollab','fromCollab','pending','_onRemoteChangeset','_refRangeService','_roomMembers$','_pendingMutations','getImageSourceCache','/collaborator','/unit/','_initStatusListener','HEARTBEAT_INTERVAL','_change$','RevisionService','/role','red300','DependentOn','take','PENDING','CollaborationEntity','VIEW_MAIN','add','CollaborationEvent','TOO_MANY_REQUESTS','sessionStatus$','sessionStatus','getActiveRange','engine','_docStateChangeManagerService','0\x200\x2016\x2016','Optional','apply','updateCursorEvent','_univerInstanceService','_collaborationPaused','_startTelemetryCollaborationNewChangeset','onPointerEnter$','_logService','_collaborationTimeoutTimer','_waitCount','IAuthzIoService','OffLineSingle','_getCurrentRevision','_state','CollaborationSessionService','LICENSE_DISTRO_REJECTED','resend','_refreshCollabCursors','_waitForHeartbeatResponse','DocSkeletonManagerService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','getFocusedUnit','ISnapshotServerService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Shape','1em','LocaleService','startRow','current','createInstance','from','subUnitId','_handleHeartbeatEvent','univer-pro.collaboration-client-socket-service','CHANGESET_REJ','Error\x20on\x20receiving\x20event','[CollaborationSessionService]:\x20socket\x20error','_redoStacks','IMessageService','Steady','HEARTBEAT','permissionRejEvent','getUnitId','put','MSG_FOR_ERROR','Injector','SNAPSHOT_INVALID_SNAPSHOT','_memberService','IRenderManagerService','collabStatus.offline','CHANGESET_ACK','_scene','objectType','getOwnPropertyDescriptor','_renderManagerService','_getAPIPrefix','mutations','SHOULD_CLOSE_CONN','_transformService','_scheduleClearOtherTimer','onRemoteRej','_userManagerService','_socket','joinEvent','UNIVER_PROJECT','serializeRangeWithSheet','_localeService','catch','executeCommand','getCoordByCell','startsWith','Tooltip','IUndoRedoService','workbook','_clearRedo','univerjs-icon\x20univerjs-icon-','handleInsertRangeMoveDown','@univerjs/docs-ui','EffectRefRangId','DesktopCollaborationStatusDisplayController','merge','concat','unitId\x20is\x20not\x20found','body','getUnitType','LICENSE_EXPORT_SIZE_EXCEEDED','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_telemetryService','_initRequestHeader','children','roles','ICommandService','addObject','_heartbeatTimer','_unitID','@univerjs-pro/license','conflict.title','_initMergeInterceptor','tag','_throwTelemetryCollaborationNewChangeset','UniverUi','message$','onMouseMove','IBeforeCloseService','rgba(255,\x20255,\x20255,\x200.01)','range','_localStorageService','registerRenderModule','onStateChange','json','runRefRangeMutations','clearTimeout','ColorKit','USERS_ENTER','8BgwTPw','_handleJoinEvent','setParam','_onUserJoin','indexOf','addObjects','getMergeData','FileId','UPDATE_PERMISSION_OBJ','handleInsertCol','className','ICollaborationSocketService','session.connection-failed','XHRHTTPImplementation','DeleteRangeMoveLeftCommandId','collabStatus.syncing','_shapes','combineLatest','all','getResourcesRequest','update','rxjs/operators','_initResize','COMPLETION_FINISHED','Subject','deserializeRangeWithSheet','_unitOnClients','exhaustSavingTask','session.collaboration-timeout','collaboration-session-retry','_transformIMECache','univer-online-status','_registerRenderDependencies','debounceTime','AWAITING_WITH_PENDING','IImageIoService','_timeoutTimer','onMissingChangesets','_scheduleHeartbeat','_loadSheet','onload','b64DecodeUnicode','_revisionService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','RegularPolygon','handleIRemoveRow','switchMap','set','useObservable','loadOfflineData','[CollaborationEntity]','_unitStatus','getAttachHeader','setAlpha','_startCollaboration','_cachedData','subscribeEvent','open$','endColumn','_singleActiveUnitService','IPermissionService','mergeOverrideWithDependencies','_setupBeforeClosingHandler','use','_scheduleSaving','APPLY_REVISION_CONFILICT','_hover','startTime','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','HTTPService','_colorIndex','with','getOffsetConfig','every','title','_labelPosition','joinRsp','_executeRemoteChangeset','getParam','Tools','_isPermissionRej','resize','_draw','3630921QKzRkF','RemoveRowCommandId','transformChangesets','COMPRESS_MUTATION_APPLY','[OfflineState]:\x20received\x20changeset.','_socketService','hidden','@univerjs-pro/collaboration','black','subunit','signUrlServerUrl','CommandType','YUUMI_URL_COL_OUT_OF_RANGE','setConfig','telemetry\x20info\x20is\x20not\x20initialized','snapshot','TRANSFORM_CHANGE_OBSERVABLE_TYPE','close$','_ws','_socket$','Unknown\x20user','_getSheetObject','session.room-full','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','useRef','_initCloseConn','getInterceptPoints','_hovered','encodeURIComponent','UniverEngineFormula','getCurrentUnitForType','reject','pushState','CollaborationSession','CollaborationStatusDisplay','getTypeOfUnitAdded$','findNodePositionByCharIndex','ws://127.0.0.1:8000/universer-api/comb/connect','on-line-single_clip0_910_349','_cursorInfo$','reduce','editing\x20status\x20changed\x20to','listCollaborators','_anchorDot','_getSendChangesetTimeout','getCurrentUser','change$','subscribe','onTransformSelections','@univerjs/drawing','editingUnit','deepClone','\x0aAfter:\x20','getCollabCursors$','max','setShapeProps','_cursors','session','addImageSourceCache','collaboration.closeRoom','LOCAL_CACHE_INTERVAL_KEY','getTypeOfUnitDisposed$','withCredentials','univer-online-status-icon','_id','_initUnitPermissionChange','_collabCursorState$','concatMap','cursorInfo$','JOIN','/resources','map','ITelemetryService','univer-offline','IURLService','_removeRoom','append','DocStateChangeManagerService','NO_OTHER_CLIENTS_EDITING','pipe','location','getCollabEntity','mapTo','c1Prime','@univerjs/docs','UPDATE_CURSOR','get','reverse','transformRemoteChangeset','_snapshotService','_updateURLWithCurrentState','flatMap','_saveCache','USERS_LEAVE','min','replaceState','WebURLService','_uiPartsService','none','isArray','1985PoNCNW','/new_changes','code','connectInjector','enableOfflineEditing','syncEditingCollabCursor','extend','_sendingTimer','commentUpdate$','_onFetchMissResult','setCurrentUser','top','restore','[SyncedState]:\x20received\x20rejection.','_getSignURL','result','getWorkbookSelections','text','_permissionService','memberID','_docSyncEditingCollabCursorService','22TnlCVA','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','unshift','currentSkeleton$','rxjs','getImage','dispose','loadSheet','_configService','roomInfos','createElement','_getUndoStack','duration','unitId','object','collaboration-client.offline-data-not-saved','uploadFileServerUrl','createIdentifier','_incrementRevisionNumber','_eventUnsubscribe','onPointerMove$','save\x20fail\x20reason\x20is\x20','length','react','APPLY_NON_SEQUENTIAL_REVISION','downloadEndpointUrl','forEach','init','saveSheetBlock','_createInitialState','_disableEditing','_queuedRemoteChangesets','svg','_config','_initModules','/universer-api/comb','members','_sessions','online','NodePositionConvertToRectRange','UserManagerService','startColumn','Rectangle','selections','_context','COMMENT_UPDATE','_render','_send','_urlService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','unitID','[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.','_entities','clipPath','getSheetBySheetId','LICENSE_IMPORT_SIZE_EXCEEDED','requestParams','method','action','delay','resourceIDs','ONLINE','getSheetBlock','onTransformIME','onlineStatus','[FetchMissState]','error','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','isActive','Module','selection','_hideTimer','socketService','#fff','/object/','fill','params','isEditing','UNIVER_SHEET','FETCH_MISSING','stringify','updatePermissionPoint','JOINING','RxDisposable','contains','_sheetTransformSelectionsService','/universer-api/oidc/authpage','COLORS','push','fetchMissingChangesets','_docSkeletonManagerService','onMissedChangesetFetched','ranges','OFFLINE','INotificationService','_updateCollabCursors','authzUrl','_onRecvEvent','resolve','\x20in\x20_schedule.','_sendHeartbeat','image/jpg','...','UniverSheetsUi','&to=','state','skeleton','infoRsp','copyFileMeta','MessageType','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_messageService','_updateState','Warning','amd','defIds','@univerjs/sheets-ui','hasOwnProperty','_toggleOnline','trim','@univerjs/engine-formula','url','handleDeleteRangeMoveLeft','whenReady','socket$','onPointerLeave$','href','UniverSheets','some','complete','_createHandler','VIEWPORT_KEY','PERMISSION_REJ','updateMember','_socketMessageSubscription','pauseCollaboration','_lockTransition','Vector2','_imageSourceCache','save','error$','/universer-api/file/{fileID}/sign-url','transformMutation','fetchMiss','_session','fetch_missing','lineTo','registerRefRange','_socketReady','changesets','LIVESHARE_NEW_HOST','mapDocumentTypeToUniverType','_handleHover','bottom','collab-rect-range-','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','hovered','path','disposeUnit','_unlockTransition','assign','UNIVER_UNKNOWN','origin','2213864zefarS','_collaborationSessionService','setInterval','CompressMutationService','focused$','getCollabEntity$','_onCombEvent','onCommandExecuted','_lastPointer','xlink:href','DataLoaderController','ImageSourceType','objectActions','_HTTPService','function','x-univer-host','_onConnectionOpen','HEARTBEAT_TIMEOUT_KEY','_collabCursorController','fillStyle','onlyLocal','SEND_CHANGESET_TIMEOUT_KEY','Workbook','getItem','_handleLeaveEvent','registerHTTPInterceptor','visibilityState','_localCacheService','247zdbrzl','SheetsSelectionsService','_registerDependencies','unsubscribe','_retryCount','SheetCollaborationEntity','ILogService','DeleteRangeMoveUpCommandId','_onMessage','_type','toRgbString','override','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','userID','disposeWithMe','close','textEncoder','HttpExport','_clearCollaborationTimeoutTimer','SUBMIT_CHANGESET','displayName','registerBeforeClose','PERMISSION_DENIED','_undoRedoService','_clearLocalCache','defineProperty','_applyRemoteChangeset','IConfigService','unknown','CollaborationStatus','UniverDocsUi','IRemoteInstanceService','InsertColCommandId','RichTextEditingMutation','_fetchMissChangesets','_checkMissing','IUniverInstanceService','ITransformService','colorChannel1','UNIVER_COLLABORATION_CLIENT_PLUGIN','APPLY_PERMISSION_DENIED','APPLY_REJECT','enableSingleActiveInstanceLock','originalMeta','fetchThroughInterceptors','awaitingChangeset','_themeService','getRenderById','enableAuthServer','actions','_listenToOnlineEvent','Plugin','handleInsertRow','_backgroundColor','CommentService','_transformStack','@univerjs/design','UniverDesign','ERROR_EXCEED_SIZE','[PendingState]:\x20received\x20rejection.','row','labelPosition','onlineStatusTitle','_commentService','_remoteChangesetQueue','onStarting','UniverEngineRender','Undefined','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','currentTheme$','commentUpdateEvent','_getCtorByUniverType','batchAllowed','UNAUTHENTICATED','SetTextSelectionsOperation','_onOffline','_onJoinRoomEvent','putCollaborators','cursorInfo','_initEventListeners','UnitEmbedded','LOCAL_CACHE_INTERVAL','SheetCollabCursorShape','_undoStacks','@univerjs/core','UNKNOWN_CODE','_shouldReportTelemetry','UnitSnapshot','_replayCachedMutations','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','requireSession','deserializeToCombResponse','_getUploadFileURL','distinctUntilChanged','_getScale','collabStatus.conflict','isPermissionRej','key','_clearOtherTimers','SnapshotService','SetDocZoomRatioOperation','socket\x20open.','getUndoRedoMutationParamsCache','_removeCollabCursors','setItem','8VwHvGs','_awaitingChangeset'];_0x2e97=function(){return _0x2a5261;};return _0x2e97();}(function(_0x5a0fee,_0x59fe4d){const _0x4350fc=_0x5448,_0x4a713f=_0x5a0fee();while(!![]){try{const _0x4be613=-parseInt(_0x4350fc(0x4cb))/0x1*(parseInt(_0x4350fc(0x1b9))/0x2)+parseInt(_0x4350fc(0x1ff))/0x3*(parseInt(_0x4350fc(0x446))/0x4)+parseInt(_0x4350fc(0x38d))/0x5*(parseInt(_0x4350fc(0x1e5))/0x6)+-parseInt(_0x4350fc(0x329))/0x7+-parseInt(_0x4350fc(0x2d6))/0x8*(parseInt(_0x4350fc(0x1fd))/0x9)+-parseInt(_0x4350fc(0x539))/0xa*(-parseInt(_0x4350fc(0x3a2))/0xb)+-parseInt(_0x4350fc(0x54f))/0xc*(-parseInt(_0x4350fc(0x462))/0xd);if(_0x4be613===_0x59fe4d)break;else _0x4a713f['push'](_0x4a713f['shift']());}catch(_0x2c6339){_0x4a713f['push'](_0x4a713f['shift']());}}}(_0x2e97,0x8d59e),function(_0x28ceb3,_0xa80526){const _0x2f93f4=_0x5448;typeof exports==_0x2f93f4(0x3b0)&&typeof module<'u'?_0xa80526(exports,require('@univerjs/core'),require('rxjs'),require(_0x2f93f4(0x2eb)),require(_0x2f93f4(0x49a)),require(_0x2f93f4(0x1c2)),require(_0x2f93f4(0x1d0)),require(_0x2f93f4(0x330)),require(_0x2f93f4(0x543)),require(_0x2f93f4(0x37d)),require(_0x2f93f4(0x2b1)),require(_0x2f93f4(0x1b3)),require('@univerjs/engine-render'),require(_0x2f93f4(0x35a)),require(_0x2f93f4(0x41b)),require(_0x2f93f4(0x417)),require(_0x2f93f4(0x3b9)),require(_0x2f93f4(0x5b2)),require(_0x2f93f4(0x1c8)),require('@univerjs-pro/license')):typeof define==_0x2f93f4(0x454)&&define[_0x2f93f4(0x415)]?define([_0x2f93f4(0x1ea),_0x2f93f4(0x4b6),_0x2f93f4(0x3a6),_0x2f93f4(0x2eb),_0x2f93f4(0x49a),'@univerjs/ui','@univerjs/network',_0x2f93f4(0x330),_0x2f93f4(0x543),_0x2f93f4(0x37d),_0x2f93f4(0x2b1),_0x2f93f4(0x1b3),_0x2f93f4(0x19b),_0x2f93f4(0x35a),_0x2f93f4(0x41b),_0x2f93f4(0x417),_0x2f93f4(0x3b9),'clsx',_0x2f93f4(0x1c8),_0x2f93f4(0x2c3)],_0xa80526):(_0x28ceb3=typeof globalThis<'u'?globalThis:_0x28ceb3||self,_0xa80526(_0x28ceb3['UniverCollaborationClient']={},_0x28ceb3['UniverCore'],_0x28ceb3[_0x2f93f4(0x3a6)],_0x28ceb3['rxjs'][_0x2f93f4(0x537)],_0x28ceb3[_0x2f93f4(0x49b)],_0x28ceb3[_0x2f93f4(0x2c8)],_0x28ceb3[_0x2f93f4(0x245)],_0x28ceb3[_0x2f93f4(0x21b)],_0x28ceb3[_0x2f93f4(0x201)],_0x28ceb3['UniverDocs'],_0x28ceb3[_0x2f93f4(0x480)],_0x28ceb3[_0x2f93f4(0x422)],_0x28ceb3[_0x2f93f4(0x4a4)],_0x28ceb3[_0x2f93f4(0x599)],_0x28ceb3[_0x2f93f4(0x346)],_0x28ceb3[_0x2f93f4(0x40a)],_0x28ceb3[_0x2f93f4(0x1d6)],_0x28ceb3[_0x2f93f4(0x5b2)],_0x28ceb3['UniverRpc'],_0x28ceb3[_0x2f93f4(0x530)]));}(this,function(_0x2010a0,_0x5821d4,_0x2fad13,_0xbf2513,_0x2997c5,_0x32b063,_0x19a2cc,_0xf29ce7,_0x67c0c9,_0xc13db5,_0x1123f9,_0x872f07,_0x33b476,_0x2b5006,_0x5c27f4,_0x15b72e,_0x5036b4,_0x46648e,_0x1d2bd4,_0x1c126e){'use strict';const _0x2b1dc8=_0x5448;var _0x3d9f47=Object[_0x2b1dc8(0x47b)],_0x2d3a89=(_0xe8eb12,_0x513441,_0xc8dd41)=>_0x513441 in _0xe8eb12?_0x3d9f47(_0xe8eb12,_0x513441,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc8dd41}):_0xe8eb12[_0x513441]=_0xc8dd41,_0x58b0b3=(_0x31d12e,_0x1e8cd2,_0x4d9574)=>_0x2d3a89(_0x31d12e,typeof _0x1e8cd2!='symbol'?_0x1e8cd2+'':_0x1e8cd2,_0x4d9574);const _0x22f28d=_0x2b1dc8(0x59d),_0x34b7c6=_0x2b1dc8(0x20f),_0x5457b5=_0x2b1dc8(0x577),_0x97fb7f=_0x2b1dc8(0x561),_0x26584f='COLLAB_WEB_SOCKET_URL',_0x1f0f9f=_0x2b1dc8(0x34e),_0x28f4bb=_0x2b1dc8(0x251),_0x58f797='HEARTBEAT_TIMEOUT',_0x183075=_0x2b1dc8(0x1bc),_0x120b3c=_0x2b1dc8(0x4b3),_0x5d7118='COLLAB_SUBMIT_CHANGESET_URL',_0x49b93d=_0x2b1dc8(0x3c5),_0x4036af=_0x2b1dc8(0x540),_0x5525d8=_0x2b1dc8(0x3f9);var _0x37b011=(_0x525b0a=>(_0x525b0a[_0x525b0a['UNDEFINED']=0x0]=_0x2b1dc8(0x1e8),_0x525b0a[_0x525b0a['OK']=0x1]='OK',_0x525b0a[_0x525b0a[_0x2b1dc8(0x1d2)]=0x2]=_0x2b1dc8(0x1d2),_0x525b0a[_0x525b0a[_0x2b1dc8(0x478)]=0x3]='PERMISSION_DENIED',_0x525b0a[_0x525b0a[_0x2b1dc8(0x1b4)]=0x4]=_0x2b1dc8(0x1b4),_0x525b0a[_0x525b0a[_0x2b1dc8(0x4ab)]=0x5]=_0x2b1dc8(0x4ab),_0x525b0a[_0x525b0a[_0x2b1dc8(0x4d6)]=0x6]=_0x2b1dc8(0x4d6),_0x525b0a[_0x525b0a[_0x2b1dc8(0x22d)]=0x7]=_0x2b1dc8(0x22d),_0x525b0a[_0x525b0a['TOO_MANY_REQUESTS']=0x8]=_0x2b1dc8(0x25d),_0x525b0a[_0x525b0a[_0x2b1dc8(0x2ed)]=0x9]=_0x2b1dc8(0x2ed),_0x525b0a[_0x525b0a[_0x2b1dc8(0x214)]=0x1389]=_0x2b1dc8(0x214),_0x525b0a[_0x525b0a[_0x2b1dc8(0x292)]=0x1771]=_0x2b1dc8(0x292),_0x525b0a[_0x525b0a[_0x2b1dc8(0x5bb)]=0x1772]=_0x2b1dc8(0x5bb),_0x525b0a[_0x525b0a[_0x2b1dc8(0x48b)]=0x1b59]=_0x2b1dc8(0x48b),_0x525b0a[_0x525b0a[_0x2b1dc8(0x3ba)]=0x1b5a]=_0x2b1dc8(0x3ba),_0x525b0a[_0x525b0a[_0x2b1dc8(0x317)]=0x1b5b]=_0x2b1dc8(0x317),_0x525b0a[_0x525b0a[_0x2b1dc8(0x48a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x525b0a[_0x525b0a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2b1dc8(0x5b8),_0x525b0a[_0x525b0a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x525b0a[_0x525b0a['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2b1dc8(0x27b),_0x525b0a[_0x525b0a[_0x2b1dc8(0x3d9)]=0x232b]=_0x2b1dc8(0x3d9),_0x525b0a[_0x525b0a[_0x2b1dc8(0x2b9)]=0x232c]=_0x2b1dc8(0x2b9),_0x525b0a[_0x525b0a[_0x2b1dc8(0x273)]=0x232d]=_0x2b1dc8(0x273),_0x525b0a[_0x525b0a['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x525b0a[_0x525b0a[_0x2b1dc8(0x335)]=0x2712]=_0x2b1dc8(0x335),_0x525b0a[_0x525b0a[_0x2b1dc8(0x1cb)]=0x2713]=_0x2b1dc8(0x1cb),_0x525b0a[_0x525b0a[_0x2b1dc8(0x4f7)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x525b0a[_0x525b0a['UNRECOGNIZED']=-0x1]=_0x2b1dc8(0x500),_0x525b0a))(_0x37b011||{}),_0x25ecad=(_0x494b37=>(_0x494b37[_0x494b37[_0x2b1dc8(0x444)]=0x0]='UNIVER_UNKNOWN',_0x494b37[_0x494b37[_0x2b1dc8(0x202)]=0x1]='UNIVER_DOC',_0x494b37[_0x494b37['UNIVER_SHEET']=0x2]=_0x2b1dc8(0x3f1),_0x494b37[_0x494b37[_0x2b1dc8(0x54e)]=0x3]='UNIVER_SLIDE',_0x494b37[_0x494b37[_0x2b1dc8(0x2a4)]=0x4]=_0x2b1dc8(0x2a4),_0x494b37[_0x494b37[_0x2b1dc8(0x500)]=-0x1]='UNRECOGNIZED',_0x494b37))(_0x25ecad||{}),_0x42427d=(_0x4aba08=>(_0x4aba08[_0x4aba08['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x4aba08[_0x4aba08[_0x2b1dc8(0x21d)]=0x1]=_0x2b1dc8(0x21d),_0x4aba08[_0x4aba08[_0x2b1dc8(0x36e)]=0x2]=_0x2b1dc8(0x36e),_0x4aba08[_0x4aba08[_0x2b1dc8(0x236)]=0x3]='LEAVE',_0x4aba08[_0x4aba08[_0x2b1dc8(0x542)]=0x4]='INGEST',_0x4aba08[_0x4aba08[_0x2b1dc8(0x28c)]=0x5]='HEARTBEAT',_0x4aba08[_0x4aba08[_0x2b1dc8(0x554)]=0x6]='RECV',_0x4aba08[_0x4aba08[_0x2b1dc8(0x500)]=-0x1]=_0x2b1dc8(0x500),_0x4aba08))(_0x42427d||{}),_0x175fd1=(_0x1d0b86=>(_0x1d0b86[_0x1d0b86['UNKNOWN_CODE']=0x0]=_0x2b1dc8(0x4b7),_0x1d0b86[_0x1d0b86['OK']=0x1]='OK',_0x1d0b86[_0x1d0b86[_0x2b1dc8(0x1a2)]=0x2]=_0x2b1dc8(0x1a2),_0x1d0b86[_0x1d0b86['UNRECOGNIZED']=-0x1]=_0x2b1dc8(0x500),_0x1d0b86))(_0x175fd1||{}),_0xe85c2c=(_0x46ba0f=>(_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x4a5)]=0x0]=_0x2b1dc8(0x4a5),_0x46ba0f[_0x46ba0f['HttpImport']=0x1]='HttpImport',_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x473)]=0x2]=_0x2b1dc8(0x473),_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x4b2)]=0x3]=_0x2b1dc8(0x4b2),_0x46ba0f[_0x46ba0f['UnitSnapshot']=0x4]=_0x2b1dc8(0x4b9),_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x500)]=-0x1]=_0x2b1dc8(0x500),_0x46ba0f))(_0xe85c2c||{});const _0x451f80='collaboration-client.config',_0x10e363={};function _0x411e41(_0x29aa6e){const _0x3ace5a=_0x2b1dc8;var _0x252cbc,_0x129d71,_0x5b17e5,_0x5e1c86;const _0x101b15=_0x29aa6e['data'],_0x5d94aa=JSON[_0x3ace5a(0x580)](_0x101b15);switch(_0x5d94aa[_0x3ace5a(0x52f)]){case _0x42427d[_0x3ace5a(0x28c)]:case _0x42427d[_0x3ace5a(0x21d)]:{const _0x51df3d=_0x5d94aa[_0x3ace5a(0x40e)];return{..._0x5d94aa,'data':_0x51df3d,'cmd':_0x5d94aa['cmd']};}case _0x42427d[_0x3ace5a(0x36e)]:{const _0x4e0ede=_0x5d94aa[_0x3ace5a(0x322)];return{..._0x5d94aa,'data':_0x4e0ede,'cmd':_0x5d94aa['cmd']};}case _0x42427d['RECV']:{const _0x37020c=_0x5d94aa['collaMsg'];switch(_0x37020c[_0x3ace5a(0x510)]){case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x427)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x252cbc=_0x37020c[_0x3ace5a(0x28d)])==null?void 0x0:_0x252cbc['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7['CollaborationEvent'][_0x3ace5a(0x296)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x129d71=_0x37020c[_0x3ace5a(0x59b)])==null?void 0x0:_0x129d71['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x1f0)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x5b17e5=_0x37020c['newCsEvent'])==null?void 0x0:_0x5b17e5['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x286)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x5e1c86=_0x37020c[_0x3ace5a(0x20a)])==null?void 0x0:_0x5e1c86['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x37e)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x266)]},'cmd':_0x5d94aa['cmd']};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x2d5)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x2a3)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x386)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c['leaveEvent']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)]['LIVESHARE_NEW_HOST']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x50b)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)]['LIVESHARE_FETCH_OPERATIONS']:case _0xf29ce7[_0x3ace5a(0x25c)]['LIVESHARE_OPERATION']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x50a)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x517)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x50b)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x290)]:return{..._0x5d94aa,'data':_0x37020c,'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x4a8)]},'cmd':_0x5d94aa['cmd']};case _0xf29ce7[_0x3ace5a(0x25c)]['UPDATE_PERMISSION_OBJ']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c['updatePermissionObjEvent']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x29d)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c['shouldCloseConn']},'cmd':_0x5d94aa['cmd']};default:return _0x5d94aa;}}default:return _0x5d94aa;}}function _0x4d079d(_0x17f648){const _0x4b609c=_0x2b1dc8;switch(_0x17f648[_0x4b609c(0x52f)]){case _0x42427d[_0x4b609c(0x28c)]:case _0x42427d[_0x4b609c(0x21d)]:return JSON[_0x4b609c(0x3f3)]({'cmd':_0x17f648[_0x4b609c(0x52f)],'routeKey':_0x17f648[_0x4b609c(0x4e7)]});case _0x42427d[_0x4b609c(0x542)]:{let _0x5b345c;switch(_0x17f648['data']['eventID']){case _0xf29ce7['CollaborationEvent'][_0x4b609c(0x37e)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)]['UPDATE_CURSOR'],'updateCursorEvent':_0x17f648['data'][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x386)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x386)],'leaveEvent':_0x17f648[_0x4b609c(0x210)]['data']};break;}case _0xf29ce7['CollaborationEvent'][_0x4b609c(0x2d5)]:{_0x5b345c={'eventID':_0xf29ce7['CollaborationEvent'][_0x4b609c(0x2d5)],'joinEvent':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x439)]:{_0x5b345c={'eventID':_0xf29ce7['CollaborationEvent'][_0x4b609c(0x439)],'liveShareNewHost':_0x17f648[_0x4b609c(0x210)]['data']};break;}case _0xf29ce7['CollaborationEvent'][_0x4b609c(0x233)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x233)],'liveShareOperation':_0x17f648['data'][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x517)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x517)],'liveShareTerminate':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x1b0)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x1b0)],'liveShareRequestHost':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x4f4)]:{_0x5b345c={'eventID':_0xf29ce7['CollaborationEvent'][_0x4b609c(0x4f4)]};break;}default:_0x5b345c={'eventID':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x510)]};}return JSON[_0x4b609c(0x3f3)]({'cmd':_0x17f648[_0x4b609c(0x52f)],'routeKey':_0x17f648[_0x4b609c(0x4e7)],'collaMsg':_0x5b345c});}case _0x42427d[_0x4b609c(0x36e)]:return JSON['stringify']({'cmd':_0x17f648['cmd'],'routeKey':_0x17f648[_0x4b609c(0x4e7)],'joinReq':_0x17f648[_0x4b609c(0x210)]});case _0x42427d[_0x4b609c(0x236)]:return JSON[_0x4b609c(0x3f3)]({'cmd':_0x17f648[_0x4b609c(0x52f)],'routeKey':_0x17f648[_0x4b609c(0x4e7)],'leaveReq':_0x17f648[_0x4b609c(0x210)]});default:throw new Error(_0x4b609c(0x2ba));}}var _0x432a66=Object['defineProperty'],_0x5d3dde=Object[_0x2b1dc8(0x299)],_0x3a4eed=(_0x4ff49e,_0x1bb341,_0x3686c5,_0x400f59)=>{for(var _0x2b57ce=_0x400f59>0x1?void 0x0:_0x400f59?_0x5d3dde(_0x1bb341,_0x3686c5):_0x1bb341,_0x9faeee=_0x4ff49e['length']-0x1,_0x51f7f4;_0x9faeee>=0x0;_0x9faeee--)(_0x51f7f4=_0x4ff49e[_0x9faeee])&&(_0x2b57ce=(_0x400f59?_0x51f7f4(_0x1bb341,_0x3686c5,_0x2b57ce):_0x51f7f4(_0x2b57ce))||_0x2b57ce);return _0x400f59&&_0x2b57ce&&_0x432a66(_0x1bb341,_0x3686c5,_0x2b57ce),_0x2b57ce;},_0x430528=(_0x2bfb46,_0xab1bcb)=>(_0x5bc90a,_0x1aedee)=>_0xab1bcb(_0x5bc90a,_0x1aedee,_0x2bfb46);const _0x5c41db=_0x5821d4[_0x2b1dc8(0x3b3)](_0x2b1dc8(0x285));function _0x594960(_0x664fda,_0x119b46,_0x3e2f0f){const _0x1d34da=_0x2b1dc8;return _0x664fda+'/'+_0x119b46+_0x1d34da(0x24f)+_0x3e2f0f+_0x1d34da(0x38e);}_0x2010a0[_0x2b1dc8(0x1ad)]=class extends _0x5821d4['Disposable']{constructor(_0x389b22,_0x4b064b,_0x3ca8d3,_0x1c4289,_0x1eae7a){const _0x2e7453=_0x2b1dc8;super(),this[_0x2e7453(0x5a9)]=_0x389b22,this[_0x2e7453(0x33b)]=_0x4b064b,this[_0x2e7453(0x3aa)]=_0x3ca8d3,this[_0x2e7453(0x26b)]=_0x1c4289,this[_0x2e7453(0x552)]=_0x1eae7a;}[_0x2b1dc8(0x57f)](_0x4a4984){const _0x10ce16=_0x2b1dc8,_0x2abff7=this[_0x10ce16(0x33b)][_0x10ce16(0x57f)](_0x4a4984);if(!_0x2abff7)throw new Error(_0x10ce16(0x3a3));const _0x30b8e7=new _0x5821d4['DisposableCollection'](),_0x478600=new _0x2fad13[(_0x10ce16(0x2ee))]();_0x30b8e7[_0x10ce16(0x25b)](_0x2abff7[_0x10ce16(0x33a)][_0x10ce16(0x358)](_0x51541e=>_0x478600[_0x10ce16(0x522)](_0x51541e))),_0x30b8e7[_0x10ce16(0x25b)](_0x5821d4[_0x10ce16(0x1ed)](()=>_0x478600[_0x10ce16(0x424)]()));const _0x38b6c6=new _0x2fad13[(_0x10ce16(0x2ee))]();_0x30b8e7[_0x10ce16(0x25b)](_0x2abff7[_0x10ce16(0x42f)]['subscribe'](_0x4b7c20=>_0x38b6c6[_0x10ce16(0x522)](_0x4b7c20))),_0x30b8e7[_0x10ce16(0x25b)](_0x5821d4['toDisposable'](()=>_0x38b6c6['complete']()));const _0x3a5d57=new _0x2fad13[(_0x10ce16(0x2ee))]();_0x30b8e7[_0x10ce16(0x25b)](_0x2abff7['message$'][_0x10ce16(0x358)](_0x196930=>{const _0xce1710=_0x10ce16,_0x1f0f6e=_0x411e41(_0x196930);_0x3a5d57[_0xce1710(0x522)](_0x1f0f6e);})),_0x30b8e7[_0x10ce16(0x25b)](_0x5821d4[_0x10ce16(0x1ed)](()=>_0x3a5d57[_0x10ce16(0x424)]()));let _0x5b8d97;const _0x48d0e7=()=>{const _0x5a8bc0=_0x10ce16;_0x38b6c6[_0x5a8bc0(0x522)](new Event('connection\x20error')),_0x478600['next'](new CloseEvent('connection\x20error')),_0x5b8d97[_0x5a8bc0(0x471)]();};return _0x5b8d97={'memberID':'','close$':_0x478600[_0x10ce16(0x1eb)](),'error$':_0x38b6c6[_0x10ce16(0x1eb)](),'open$':_0x2abff7['open$'],'message$':_0x3a5d57[_0x10ce16(0x1eb)](),'send':_0x50eb71=>{const _0x265149=_0x10ce16;if(_0x50eb71[_0x265149(0x52f)]===_0x42427d['INGEST']){if(_0x50eb71[_0x265149(0x210)]['eventID']===_0xf29ce7[_0x265149(0x25c)][_0x265149(0x475)]){this['_submitChangeset'](_0x5b8d97,_0x50eb71[_0x265149(0x210)])[_0x265149(0x2a7)](_0x3ccecc=>{const _0x4659d9=_0x265149;this[_0x4659d9(0x26b)][_0x4659d9(0x3e4)](_0x3ccecc),_0x48d0e7();});return;}if(_0x50eb71[_0x265149(0x210)][_0x265149(0x510)]===_0xf29ce7[_0x265149(0x25c)]['FETCH_MISSING']){const _0x5ce1a8=_0x50eb71[_0x265149(0x210)];this[_0x265149(0x484)](_0x5ce1a8)[_0x265149(0x57d)](_0x3cb6a4=>{const _0x4c823a=_0x265149;_0x3a5d57[_0x4c823a(0x522)]({'cmd':_0x42427d[_0x4c823a(0x554)],'code':_0x175fd1['OK'],'routeKey':_0x5ce1a8[_0x4c823a(0x210)]['unitID'],'routeType':'','data':{'eventID':_0xf29ce7['CollaborationEvent'][_0x4c823a(0x228)],'data':{'changesets':_0x3cb6a4}}});})[_0x265149(0x2a7)](_0x3b655d=>{const _0x3b581d=_0x265149;this[_0x3b581d(0x26b)]['error'](_0x3b655d),_0x48d0e7();});return;}}_0x2abff7[_0x265149(0x1d5)](_0x4d079d(_0x50eb71));},'close':()=>{const _0x1d003a=_0x10ce16;_0x2abff7[_0x1d003a(0x471)](),_0x30b8e7[_0x1d003a(0x3a8)]();}},_0x5b8d97;}async[_0x2b1dc8(0x4d2)](_0x1f3fbb,_0x46c3af){const _0x79e4f7=_0x2b1dc8;var _0x3f7788,_0x19e645;const {unitType:_0x45b55c,unitID:_0x265258,changeset:_0x49a2fe}=_0x46c3af[_0x79e4f7(0x210)],_0x13af76={'unitID':_0x265258,'memberID':_0x1f3fbb[_0x79e4f7(0x3a0)],'type':_0x45b55c,'changeset':_0xf29ce7['parseChangesetToProtocol'](_0x49a2fe)},_0x4fc89e=this[_0x79e4f7(0x3aa)][_0x79e4f7(0x54b)](_0x5d7118),_0x4687d7=this[_0x79e4f7(0x3aa)][_0x79e4f7(0x54b)](_0x451f80),_0xb60948=_0x594960((_0x19e645=(_0x3f7788=_0x4687d7==null?void 0x0:_0x4687d7[_0x79e4f7(0x570)])!=null?_0x3f7788:_0x4fc89e)!=null?_0x19e645:_0x49b93d,_0x45b55c,_0x265258);try{await this[_0x79e4f7(0x5a9)][_0x79e4f7(0x533)](_0xb60948,{'body':_0x13af76});}catch(_0x2f54cc){throw this[_0x79e4f7(0x26b)]['error'](_0x79e4f7(0x196),'submit\x20changeset\x20error!'),_0x2f54cc;}}async['_fetchMissChangesets'](_0x1958ed){const _0x4d39a8=_0x2b1dc8,{unitID:_0x1f1662,from:_0xd83867,to:_0x15f133,unitType:_0x37253b}=_0x1958ed[_0x4d39a8(0x210)];return(await this[_0x4d39a8(0x552)][_0x4d39a8(0x3fc)]({'metadata':void 0x0},{'unitID':_0x1f1662,'type':_0x37253b,'from':_0xd83867,'to':_0x15f133}))[_0x4d39a8(0x438)];}},_0x2010a0[_0x2b1dc8(0x1ad)]=_0x3a4eed([_0x430528(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc[_0x2b1dc8(0x31b)])),_0x430528(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc[_0x2b1dc8(0x22b)])),_0x430528(0x2,_0x5821d4['IConfigService']),_0x430528(0x3,_0x5821d4['ILogService']),_0x430528(0x4,_0xf29ce7['ISnapshotServerService'])],_0x2010a0[_0x2b1dc8(0x1ad)]);const _0x2fd828='collaboration_new_changeset';function _0xa4b6f2(_0x33194d){const _0x2d5dce=_0x2b1dc8;return JSON[_0x2d5dce(0x3f3)](_0x33194d)['length'];}class _0x4bccc8{constructor(){const _0x28e205=_0x2b1dc8;_0x58b0b3(this,'_commentUpdate$',new _0x2fad13[(_0x28e205(0x2ee))]()),_0x58b0b3(this,_0x28e205(0x395),this['_commentUpdate$'][_0x28e205(0x1eb)]());}[_0x2b1dc8(0x511)](_0x53cf17){const _0x23b01c=_0x2b1dc8;this[_0x23b01c(0x231)][_0x23b01c(0x522)](_0x53cf17);}}var _0x42b82f=Object['defineProperty'],_0x3d0f2f=Object[_0x2b1dc8(0x299)],_0x480508=(_0x9f63af,_0x3951b7,_0x1abee8,_0x368223)=>{const _0x4db89a=_0x2b1dc8;for(var _0x37d226=_0x368223>0x1?void 0x0:_0x368223?_0x3d0f2f(_0x3951b7,_0x1abee8):_0x3951b7,_0x2da5c4=_0x9f63af[_0x4db89a(0x3b8)]-0x1,_0x250507;_0x2da5c4>=0x0;_0x2da5c4--)(_0x250507=_0x9f63af[_0x2da5c4])&&(_0x37d226=(_0x368223?_0x250507(_0x3951b7,_0x1abee8,_0x37d226):_0x250507(_0x37d226))||_0x37d226);return _0x368223&&_0x37d226&&_0x42b82f(_0x3951b7,_0x1abee8,_0x37d226),_0x37d226;},_0x3260c1=(_0x3c99a0,_0x173bc1)=>(_0x3a05ea,_0x33c595)=>_0x173bc1(_0x3a05ea,_0x33c595,_0x3c99a0);let _0x35f626=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x56ffb4,_0x246777){const _0x527b59=_0x2b1dc8;super(),_0x58b0b3(this,_0x527b59(0x1bb),new Map()),(this['_univerInstanceService']=_0x56ffb4,this['_userManagerService']=_0x246777,this[_0x527b59(0x470)](_0x5821d4[_0x527b59(0x1ed)](_0x2fad13[_0x527b59(0x2b4)](this[_0x527b59(0x267)][_0x527b59(0x366)](_0x5821d4['UniverInstanceType'][_0x527b59(0x3f1)])[_0x527b59(0x378)](_0xbf2513[_0x527b59(0x370)](_0x3acfae=>_0x3acfae[_0x527b59(0x28e)]())),this[_0x527b59(0x267)][_0x527b59(0x366)](_0x5821d4[_0x527b59(0x566)][_0x527b59(0x202)])[_0x527b59(0x378)](_0xbf2513[_0x527b59(0x370)](_0xa9b07d=>_0xa9b07d['getUnitId']())),this[_0x527b59(0x267)]['getTypeOfUnitDisposed$'](_0x5821d4['UniverInstanceType']['UNIVER_SLIDE'])[_0x527b59(0x378)](_0xbf2513[_0x527b59(0x370)](_0x3ef398=>_0x3ef398[_0x527b59(0x28e)]())))[_0x527b59(0x358)](_0x248b59=>this[_0x527b59(0x374)](_0x248b59)))));}[_0x2b1dc8(0x397)](_0xc567d1){const _0x3cccff=_0x2b1dc8;this[_0x3cccff(0x2a1)][_0x3cccff(0x397)](_0xc567d1);}['getCurrentUser'](){const _0x21da3c=_0x2b1dc8;return this[_0x21da3c(0x2a1)][_0x21da3c(0x356)]();}[_0x2b1dc8(0x428)](_0x474796,_0x3c9962){const _0x3bf39f=_0x2b1dc8;let _0x2e4be7=this[_0x3bf39f(0x1bb)][_0x3bf39f(0x37f)](_0x474796);_0x2e4be7||(_0x2e4be7=new _0x3cb511(),this[_0x3bf39f(0x1bb)][_0x3bf39f(0x305)](_0x474796,_0x2e4be7)),_0x2e4be7[_0x3bf39f(0x428)](_0x3c9962);}[_0x2b1dc8(0x4fd)](_0x3963c3,_0x35fc50){const _0x15acca=_0x2b1dc8,_0x31c799=this[_0x15acca(0x1bb)][_0x15acca(0x37f)](_0x3963c3);_0x31c799&&_0x31c799[_0x15acca(0x4fd)](_0x35fc50);}[_0x2b1dc8(0x55d)](_0x20e69b){const _0x28ff32=_0x2b1dc8;return this[_0x28ff32(0x1bb)][_0x28ff32(0x37f)](_0x20e69b);}[_0x2b1dc8(0x1d9)](_0x26ea3d,_0x5452e8){const _0x3dbab3=_0x2b1dc8,_0x4bfe30=this[_0x3dbab3(0x1bb)][_0x3dbab3(0x37f)](_0x26ea3d);if(_0x4bfe30)return _0x4bfe30[_0x3dbab3(0x1d9)](_0x5452e8);}['_removeRoom'](_0x4c0884){const _0x30f736=_0x2b1dc8,_0x103978=this[_0x30f736(0x1bb)][_0x30f736(0x37f)](_0x4c0884);_0x103978&&(_0x103978[_0x30f736(0x3a8)](),this['_roomMembers']['delete'](_0x4c0884));}[_0x2b1dc8(0x3a8)](){const _0x34cddc=_0x2b1dc8;this[_0x34cddc(0x1bb)][_0x34cddc(0x3bc)](_0x40f0aa=>_0x40f0aa[_0x34cddc(0x3a8)]()),this[_0x34cddc(0x1bb)][_0x34cddc(0x4ec)]();}};_0x35f626=_0x480508([_0x3260c1(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x3260c1(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x3ca)]))],_0x35f626);class _0x3cb511 extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(){const _0x3afc16=_0x2b1dc8;super(...arguments),_0x58b0b3(this,_0x3afc16(0x4da),new Map());}[_0x2b1dc8(0x3a8)](){const _0x500cfd=_0x2b1dc8;this[_0x500cfd(0x4da)][_0x500cfd(0x4ec)]();}['updateMember'](_0x5d4d89){const _0x5e371b=_0x2b1dc8;this[_0x5e371b(0x4da)][_0x5e371b(0x305)](_0x5d4d89[_0x5e371b(0x3a0)],_0x5d4d89);}[_0x2b1dc8(0x4fd)](_0x567927){const _0x5135e1=_0x2b1dc8;this[_0x5135e1(0x4da)]['delete'](_0x567927);}[_0x2b1dc8(0x1d9)](_0x54d846){const _0x82297b=_0x2b1dc8;return this[_0x82297b(0x4da)]['get'](_0x54d846);}}var _0x15d830=Object[_0x2b1dc8(0x47b)],_0x21bab0=Object[_0x2b1dc8(0x299)],_0x3dd3c6=(_0x1322b2,_0x53f144,_0x4dd46e,_0x5e15b5)=>{const _0x3cda5b=_0x2b1dc8;for(var _0x73e057=_0x5e15b5>0x1?void 0x0:_0x5e15b5?_0x21bab0(_0x53f144,_0x4dd46e):_0x53f144,_0x485715=_0x1322b2[_0x3cda5b(0x3b8)]-0x1,_0x211f2a;_0x485715>=0x0;_0x485715--)(_0x211f2a=_0x1322b2[_0x485715])&&(_0x73e057=(_0x5e15b5?_0x211f2a(_0x53f144,_0x4dd46e,_0x73e057):_0x211f2a(_0x73e057))||_0x73e057);return _0x5e15b5&&_0x73e057&&_0x15d830(_0x53f144,_0x4dd46e,_0x73e057),_0x73e057;},_0x210328=(_0x3914bd,_0x174db9)=>(_0x23d79,_0x5c8ad9)=>_0x174db9(_0x23d79,_0x5c8ad9,_0x3914bd),_0x58e615=(_0xf2cc1d=>(_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x584)]=0x0]=_0x2b1dc8(0x584),_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x3f5)]=0x1]=_0x2b1dc8(0x3f5),_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x400)]=0x2]=_0x2b1dc8(0x400),_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x3df)]=0x3]=_0x2b1dc8(0x3df),_0xf2cc1d))(_0x58e615||{});_0x2010a0['CollaborationSession']=class extends _0x5821d4['RxDisposable']{constructor(_0x56ab13,_0xd28db4,_0x369ded,_0xaa38f4,_0x321443,_0x150a65,_0x506f26,_0x1198bc,_0x30049e,_0x1ca362){const _0x42a14d=_0x2b1dc8;super(),_0x58b0b3(this,_0x42a14d(0x541),new _0x2fad13['BehaviorSubject'](0x0)),_0x58b0b3(this,_0x42a14d(0x25e),this['_sessionStatus$'][_0x42a14d(0x1eb)]()),_0x58b0b3(this,_0x42a14d(0x1b1),new _0x2fad13[(_0x42a14d(0x2ee))]()),_0x58b0b3(this,_0x42a14d(0x51f),this[_0x42a14d(0x1b1)]['asObservable']()),_0x58b0b3(this,_0x42a14d(0x2a2)),_0x58b0b3(this,_0x42a14d(0x429)),_0x58b0b3(this,_0x42a14d(0x26c)),_0x58b0b3(this,_0x42a14d(0x4b8),!0x1),_0x58b0b3(this,_0x42a14d(0x569),null),(this['_unitID']=_0x56ab13,this[_0x42a14d(0x26b)]=_0x369ded,this['_beforeCloseService']=_0xaa38f4,this['_messageService']=_0x321443,this[_0x42a14d(0x3aa)]=_0x150a65,this[_0x42a14d(0x2a6)]=_0x506f26,this[_0x42a14d(0x293)]=_0x1198bc,this[_0x42a14d(0x4a1)]=_0x30049e,this[_0x42a14d(0x2bb)]=_0x1ca362,this[_0x42a14d(0x4b8)]=!!this[_0x42a14d(0x2bb)],_0xd28db4['pipe'](_0x2fad13[_0x42a14d(0x1de)](this[_0x42a14d(0x557)]))[_0x42a14d(0x358)](_0xb37d15=>{const _0x5ec401=_0x42a14d;var _0x53569d;typeof _0xb37d15>'u'||(this[_0x5ec401(0x2a2)]=_0xb37d15,_0xb37d15?(this[_0x5ec401(0x1b6)](_0xb37d15),this[_0x5ec401(0x429)]=_0xb37d15[_0x5ec401(0x2c9)]['subscribe'](_0xeea2ca=>{const _0x389046=_0x5ec401;_0xeea2ca[_0x389046(0x4e7)]===this[_0x389046(0x2c2)]&&this[_0x389046(0x44c)](_0xeea2ca);})):(this[_0x5ec401(0x2c7)](),this[_0x5ec401(0x541)]['next'](0x2),(_0x53569d=this[_0x5ec401(0x429)])==null||_0x53569d[_0x5ec401(0x465)](),this[_0x5ec401(0x429)]=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x42a14d(0x594)](()=>{const _0x26b88b=_0x42a14d;var _0x2ccf50;(_0x2ccf50=this[_0x26b88b(0x2a2)])==null||_0x2ccf50[_0x26b88b(0x1d5)]({'cmd':_0x42427d[_0x26b88b(0x236)],'data':{'roomID':this['_unitID']}});})));}get[_0x2b1dc8(0x25f)](){const _0xddcd4e=_0x2b1dc8;return this[_0xddcd4e(0x541)][_0xddcd4e(0x244)]();}[_0x2b1dc8(0x58d)](){const _0x41f298=_0x2b1dc8;var _0x298f20,_0x365572;return(_0x365572=(_0x298f20=this[_0x41f298(0x2a2)])==null?void 0x0:_0x298f20[_0x41f298(0x3a0)])!=null?_0x365572:null;}[_0x2b1dc8(0x3a8)](){const _0x14eead=_0x2b1dc8;super[_0x14eead(0x3a8)](),this[_0x14eead(0x557)][_0x14eead(0x522)](),this[_0x14eead(0x557)][_0x14eead(0x424)]();}[_0x2b1dc8(0x471)](){const _0x212baa=_0x2b1dc8;var _0x2fd059,_0x2ee9bf;this[_0x212baa(0x2c7)](),(_0x2fd059=this[_0x212baa(0x2a2)])==null||_0x2fd059[_0x212baa(0x1d5)]({'cmd':_0x42427d['LEAVE'],'data':{'roomID':this[_0x212baa(0x2c2)]}}),(_0x2ee9bf=this[_0x212baa(0x2a2)])==null||_0x2ee9bf[_0x212baa(0x471)](),this[_0x212baa(0x1b1)][_0x212baa(0x424)](),this[_0x212baa(0x541)][_0x212baa(0x424)](),this[_0x212baa(0x3a8)]();}[_0x2b1dc8(0x44c)](_0x1ccc4f){const _0x44ef4f=_0x2b1dc8;_0x1ccc4f['cmd']===_0x42427d[_0x44ef4f(0x36e)]?this[_0x44ef4f(0x4ae)](_0x1ccc4f):_0x1ccc4f[_0x44ef4f(0x52f)]===_0x42427d[_0x44ef4f(0x554)]&&this[_0x44ef4f(0x404)](_0x1ccc4f);}[_0x2b1dc8(0x1b6)](_0x401965){const _0x52f897=_0x2b1dc8;this[_0x52f897(0x541)][_0x52f897(0x522)](0x1),_0x401965[_0x52f897(0x1d5)]({'cmd':_0x42427d[_0x52f897(0x36e)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x2b1dc8(0x4ae)](_0x2104d4){const _0xc462fb=_0x2b1dc8;var _0x4a605b;if(_0x2104d4[_0xc462fb(0x38f)]===_0x175fd1[_0xc462fb(0x1a2)]){this['_messageService'][_0xc462fb(0x221)]({'type':_0x2997c5['MessageType'][_0xc462fb(0x414)],'content':this[_0xc462fb(0x2a6)]['t'](_0xc462fb(0x33f))}),this[_0xc462fb(0x541)][_0xc462fb(0x522)](0x2);return;}this[_0xc462fb(0x541)][_0xc462fb(0x522)](0x3);const _0x4102d7=(_0x4a605b=_0x2104d4[_0xc462fb(0x210)][_0xc462fb(0x3ab)][this[_0xc462fb(0x2c2)]])==null?void 0x0:_0x4a605b[_0xc462fb(0x3c6)];_0x4102d7&&_0x4102d7[_0xc462fb(0x3bc)](_0x26e4e8=>this[_0xc462fb(0x293)][_0xc462fb(0x428)](this[_0xc462fb(0x2c2)],_0x26e4e8));}[_0x2b1dc8(0x404)](_0x371a21){const _0x28ab33=_0x2b1dc8;try{const _0x135a6e=_0x371a21[_0x28ab33(0x210)];switch(_0x135a6e['eventID']){case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x2d5)]:this['_onUserJoin'](_0x135a6e),this['_event$'][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x386)]:this[_0x28ab33(0x58a)](_0x135a6e),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x296)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x28ab33(0x474)](),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x290)]:this[_0x28ab33(0x26b)]['error'](_0x28ab33(0x3b7)+JSON[_0x28ab33(0x3f3)](_0x135a6e)),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x3cf)]:this[_0x28ab33(0x4a1)][_0x28ab33(0x511)](_0x135a6e['data']),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;default:this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);}}catch(_0x2ec36e){this[_0x28ab33(0x26b)][_0x28ab33(0x3e4)](_0x2ec36e,_0x371a21);}}[_0x2b1dc8(0x2d9)](_0x35eb32){const _0x364cff=_0x2b1dc8;this[_0x364cff(0x293)][_0x364cff(0x428)](this[_0x364cff(0x2c2)],_0x35eb32[_0x364cff(0x210)]);}[_0x2b1dc8(0x58a)](_0x298c52){const _0x37d4d3=_0x2b1dc8;this['_memberService'][_0x37d4d3(0x4fd)](this[_0x37d4d3(0x2c2)],_0x298c52[_0x37d4d3(0x210)]['memberID']);}async[_0x2b1dc8(0x1d5)](_0x3ef6c7,_0x21d7c6){const _0x285f42=_0x2b1dc8;if(this[_0x285f42(0x25f)]!==0x3||!this['_socket'])throw new Error(_0x285f42(0x340));try{_0x3ef6c7[_0x285f42(0x510)]===_0xf29ce7['CollaborationEvent'][_0x285f42(0x475)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x285f42(0x269)](_0x3ef6c7)),this[_0x285f42(0x2a2)][_0x285f42(0x1d5)]({'cmd':_0x42427d[_0x285f42(0x542)],'routeKey':_0x21d7c6,'routeType':'','data':_0x3ef6c7});}catch(_0x29a9a0){this[_0x285f42(0x26b)][_0x285f42(0x3e4)](_0x29a9a0);}}[_0x2b1dc8(0x4ce)](){const _0x146f1b=_0x2b1dc8;var _0x4801b8;this[_0x146f1b(0x26c)]=window[_0x146f1b(0x4e3)](()=>{const _0x1e7d47=_0x146f1b;this[_0x1e7d47(0x26c)]=null,this['_messageService'][_0x1e7d47(0x221)]({'type':_0x2997c5[_0x1e7d47(0x410)][_0x1e7d47(0x4fb)],'content':this[_0x1e7d47(0x2a6)]['t'](_0x1e7d47(0x2f2))});},(_0x4801b8=this[_0x146f1b(0x3aa)][_0x146f1b(0x54b)](_0x58f797))!=null?_0x4801b8:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0xd1445d=_0x2b1dc8;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0xd1445d(0x26c)]),this[_0xd1445d(0x26c)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x579998){const _0x55ebc2=_0x2b1dc8;if(!this[_0x55ebc2(0x4b8)])return;const {data:_0x1b43f2}=_0x579998,{unitID:_0x2acde6,changeset:_0x4ce582}=_0x1b43f2,{mutations:_0xb65c6d,type:_0x2faae2}=_0x4ce582;this[_0x55ebc2(0x569)]={'unitId':_0x2acde6,'type':_0x2faae2,'startTime':performance[_0x55ebc2(0x59c)](),'stopTime':0x0,'duration':0x0,'size':_0xa4b6f2(_0xb65c6d)};}[_0x2b1dc8(0x203)](){const _0x37e587=_0x2b1dc8;if(this['_shouldReportTelemetry']){if(!this[_0x37e587(0x569)]){this['_logService'][_0x37e587(0x3e4)](_0x37e587(0x196),_0x37e587(0x337));return;}this[_0x37e587(0x569)]['stopTime']=performance[_0x37e587(0x59c)](),this[_0x37e587(0x569)][_0x37e587(0x3ae)]=this[_0x37e587(0x569)][_0x37e587(0x1e0)]-this[_0x37e587(0x569)][_0x37e587(0x319)],this[_0x37e587(0x2bb)][_0x37e587(0x4fe)](_0x2fd828,this[_0x37e587(0x569)]),this[_0x37e587(0x569)]=null;}}[_0x2b1dc8(0x2c7)](){const _0x4f9d87=_0x2b1dc8;this[_0x4f9d87(0x569)]=null;}},_0x2010a0[_0x2b1dc8(0x34a)]=_0x3dd3c6([_0x210328(0x2,_0x5821d4['ILogService']),_0x210328(0x3,_0x32b063[_0x2b1dc8(0x2cb)]),_0x210328(0x4,_0x32b063[_0x2b1dc8(0x28a)]),_0x210328(0x5,_0x5821d4[_0x2b1dc8(0x47d)]),_0x210328(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x210328(0x7,_0x5821d4['Inject'](_0x35f626)),_0x210328(0x8,_0x5821d4['Inject'](_0x4bccc8)),_0x210328(0x9,_0x5821d4['Optional'](_0x67c0c9[_0x2b1dc8(0x371)]))],_0x2010a0[_0x2b1dc8(0x34a)]);var _0x4d8b23=Object[_0x2b1dc8(0x47b)],_0xa8ef83=Object[_0x2b1dc8(0x299)],_0x13b428=(_0x524817,_0x41088b,_0x15475f,_0x1932d8)=>{const _0x56376f=_0x2b1dc8;for(var _0xa12d0=_0x1932d8>0x1?void 0x0:_0x1932d8?_0xa8ef83(_0x41088b,_0x15475f):_0x41088b,_0xa6302f=_0x524817[_0x56376f(0x3b8)]-0x1,_0x43aa5f;_0xa6302f>=0x0;_0xa6302f--)(_0x43aa5f=_0x524817[_0xa6302f])&&(_0xa12d0=(_0x1932d8?_0x43aa5f(_0x41088b,_0x15475f,_0xa12d0):_0x43aa5f(_0xa12d0))||_0xa12d0);return _0x1932d8&&_0xa12d0&&_0x4d8b23(_0x41088b,_0x15475f,_0xa12d0),_0xa12d0;},_0x1daf99=(_0x1058e1,_0x4e1996)=>(_0x1cc35d,_0x12d7d3)=>_0x4e1996(_0x1cc35d,_0x12d7d3,_0x1058e1);_0x2010a0[_0x2b1dc8(0x272)]=class extends _0x5821d4['Disposable']{constructor(_0x1eb6ba,_0x44927a,_0x2615ae,_0x2b2af1,_0x231250,_0x500201){const _0x21bda3=_0x2b1dc8;super(),_0x58b0b3(this,_0x21bda3(0x33c),new _0x2fad13['BehaviorSubject'](void 0x0)),_0x58b0b3(this,_0x21bda3(0x41f),this[_0x21bda3(0x33c)][_0x21bda3(0x1eb)]()),_0x58b0b3(this,_0x21bda3(0x579),null),_0x58b0b3(this,_0x21bda3(0x3c7),new Map()),_0x58b0b3(this,_0x21bda3(0x21c),new _0x2fad13['BehaviorSubject'](_0x58e615[_0x21bda3(0x584)])),_0x58b0b3(this,_0x21bda3(0x20c),this[_0x21bda3(0x21c)][_0x21bda3(0x1eb)]()),_0x58b0b3(this,_0x21bda3(0x437),!0x1),_0x58b0b3(this,_0x21bda3(0x22e)),_0x58b0b3(this,_0x21bda3(0x466),0x0),_0x58b0b3(this,'_sendHeartbeatTimer'),_0x58b0b3(this,_0x21bda3(0x2fa)),(this[_0x21bda3(0x4cd)]=_0x1eb6ba,this['_localeService']=_0x44927a,this[_0x21bda3(0x412)]=_0x2615ae,this[_0x21bda3(0x26b)]=_0x2b2af1,this['_configService']=_0x231250,this[_0x21bda3(0x32e)]=_0x500201,this[_0x21bda3(0x4b1)]());}get[_0x2b1dc8(0x2a2)](){const _0xb135d4=_0x2b1dc8;return this[_0xb135d4(0x33c)][_0xb135d4(0x244)]();}[_0x2b1dc8(0x4b1)](){const _0x4f4a38=_0x2b1dc8;this[_0x4f4a38(0x207)](),this[_0x4f4a38(0x494)]();}[_0x2b1dc8(0x3a8)](){const _0x298fc6=_0x2b1dc8;super[_0x298fc6(0x3a8)](),this[_0x298fc6(0x3c7)][_0x298fc6(0x3bc)](_0x36cee2=>_0x36cee2[_0x298fc6(0x3a8)]()),this[_0x298fc6(0x3c7)]['clear'](),this[_0x298fc6(0x21c)][_0x298fc6(0x424)]();}async[_0x2b1dc8(0x4bc)](_0x582bfb){const _0x1f8a1f=_0x2b1dc8;if(this[_0x1f8a1f(0x3c7)][_0x1f8a1f(0x532)](_0x582bfb))return this[_0x1f8a1f(0x3c7)][_0x1f8a1f(0x37f)](_0x582bfb);this[_0x1f8a1f(0x5b5)]();const _0x49f32a=this[_0x1f8a1f(0x4cd)][_0x1f8a1f(0x281)](_0x2010a0[_0x1f8a1f(0x34a)],_0x582bfb,this[_0x1f8a1f(0x33c)][_0x1f8a1f(0x1eb)]());return this[_0x1f8a1f(0x3c7)]['set'](_0x582bfb,_0x49f32a),_0x49f32a;}[_0x2b1dc8(0x52e)](_0x247904){const _0x864135=_0x2b1dc8;var _0x31202e;const _0x4c9902=this[_0x864135(0x3c7)][_0x864135(0x37f)](_0x247904);_0x4c9902&&(this[_0x864135(0x3c7)][_0x864135(0x189)](_0x247904),_0x4c9902[_0x864135(0x471)]()),this[_0x864135(0x3c7)][_0x864135(0x199)]||(_0x31202e=this['_socket'])==null||_0x31202e[_0x864135(0x471)]();}['reconnect'](){const _0x435edb=_0x2b1dc8;this[_0x435edb(0x466)]=0x0,this[_0x435edb(0x22e)]!=null&&(clearTimeout(this[_0x435edb(0x22e)]),this[_0x435edb(0x22e)]=null),this[_0x435edb(0x18a)]();}['_createSocket'](){const _0x1cb903=_0x2b1dc8;var _0x589f2c,_0x4ed916;const _0x5069db=this[_0x1cb903(0x3aa)][_0x1cb903(0x54b)](_0x26584f),_0x56b8c2=this['_configService'][_0x1cb903(0x54b)](_0x451f80),_0xdcb216=(_0x4ed916=(_0x589f2c=_0x56b8c2==null?void 0x0:_0x56b8c2['collabWebSocketUrl'])!=null?_0x589f2c:_0x5069db)!=null?_0x4ed916:_0x1f0f9f,_0x4dfbba=this[_0x1cb903(0x32e)]['createSocket'](_0xdcb216);return this[_0x1cb903(0x579)]=_0x4dfbba,_0x4dfbba;}[_0x2b1dc8(0x5b5)](){const _0x59e0f8=_0x2b1dc8;var _0x525085,_0x2a0521;try{const _0x407c95=(_0x2a0521=(_0x525085=this['_socket'])!=null?_0x525085:this[_0x59e0f8(0x579)])!=null?_0x2a0521:this[_0x59e0f8(0x1f3)]();if(_0x407c95){const _0x4077bc=_0x407c95[_0x59e0f8(0x1d5)];_0x407c95[_0x59e0f8(0x1d5)]=_0x3235b5=>(this[_0x59e0f8(0x218)](),_0x4077bc[_0x59e0f8(0x265)](_0x407c95,[_0x3235b5])),_0x407c95[_0x59e0f8(0x2c9)][_0x59e0f8(0x358)](_0x15c8aa=>this[_0x59e0f8(0x46a)](_0x407c95,_0x15c8aa)),_0x407c95['error$']['pipe'](_0xbf2513[_0x59e0f8(0x257)](0x1))[_0x59e0f8(0x358)](_0xfd1652=>this[_0x59e0f8(0x26b)][_0x59e0f8(0x3e4)](_0x59e0f8(0x288),_0xfd1652)),_0x407c95[_0x59e0f8(0x30f)][_0x59e0f8(0x378)](_0xbf2513[_0x59e0f8(0x257)](0x1))[_0x59e0f8(0x358)](()=>{const _0x5ccec4=_0x59e0f8;this[_0x5ccec4(0x456)](_0x407c95);}),_0x407c95['close$'][_0x59e0f8(0x378)](_0xbf2513[_0x59e0f8(0x257)](0x1))[_0x59e0f8(0x358)](_0x4d8223=>{const _0x10ded5=_0x59e0f8;this[_0x10ded5(0x26b)]['debug'](_0x10ded5(0x5ba),'socket\x20close',_0x4d8223),this[_0x10ded5(0x564)]();});}}catch(_0x52e577){this[_0x59e0f8(0x26b)][_0x59e0f8(0x3e4)](_0x52e577),this[_0x59e0f8(0x564)]();}}[_0x2b1dc8(0x456)](_0xfc37c0){const _0x59b247=_0x2b1dc8;this[_0x59b247(0x26b)]['debug'](_0x59b247(0x5ba),_0x59b247(0x4c7)),_0xfc37c0[_0x59b247(0x1d5)]({'cmd':_0x42427d['HELLO']}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x24983c=_0x2b1dc8;window[_0x24983c(0x1fc)]('offline',()=>this[_0x24983c(0x4ad)]());}['_onOffline'](){const _0x3b3e3f=_0x2b1dc8;this['_socketReady']=!0x1,this[_0x3b3e3f(0x579)]=null,this[_0x3b3e3f(0x21c)][_0x3b3e3f(0x522)](_0x58e615[_0x3b3e3f(0x400)]),this[_0x3b3e3f(0x33c)][_0x3b3e3f(0x522)](null),this[_0x3b3e3f(0x4e5)](),this[_0x3b3e3f(0x20e)]();}['_onConnectionFailed'](){const _0x4f0f41=_0x2b1dc8;var _0x5da1f0;this[_0x4f0f41(0x4ad)](),this[_0x4f0f41(0x466)]<((_0x5da1f0=this[_0x4f0f41(0x3aa)][_0x4f0f41(0x54b)](_0x183075))!=null?_0x5da1f0:0x3)?(this[_0x4f0f41(0x412)]['show']({'key':_0x4f0f41(0x2f3),'type':_0x2997c5[_0x4f0f41(0x410)][_0x4f0f41(0x414)],'content':this[_0x4f0f41(0x2a6)]['t'](_0x4f0f41(0x5a6))}),this[_0x4f0f41(0x18a)]()):this[_0x4f0f41(0x412)][_0x4f0f41(0x221)]({'key':_0x4f0f41(0x2f3),'type':_0x2997c5[_0x4f0f41(0x410)][_0x4f0f41(0x4fb)],'content':this[_0x4f0f41(0x2a6)]['t'](_0x4f0f41(0x2e2))});}[_0x2b1dc8(0x494)](){const _0x49b299=_0x2b1dc8,_0x501235=()=>{const _0x103662=_0x5448;this['_socket']||this[_0x103662(0x235)]();},_0x49dd78=()=>{const _0x2b3980=_0x5448;this['_socket']||document[_0x2b3980(0x460)]===_0x2b3980(0x32f)||this[_0x2b3980(0x235)]();};window[_0x49b299(0x1fc)](_0x49b299(0x3c8),_0x501235),document[_0x49b299(0x1fc)](_0x49b299(0x5bd),_0x49dd78);}['_tryReconnect'](){const _0x18a2cd=_0x2b1dc8;var _0x4a462e;const _0x516310=this[_0x18a2cd(0x466)],_0x259936=this[_0x18a2cd(0x3aa)]['getConfig'](_0x451f80),_0x269c48=_0x516310===0x0?0x0:((_0x4a462e=_0x259936==null?void 0x0:_0x259936[_0x18a2cd(0x1c6)])!=null?_0x4a462e:0x4e20)*0x2**_0x516310;this[_0x18a2cd(0x22e)]=window[_0x18a2cd(0x4e3)](()=>{const _0x59155e=_0x18a2cd;clearTimeout(this[_0x59155e(0x22e)]),this[_0x59155e(0x22e)]=null,this[_0x59155e(0x5b5)]();},_0x269c48),this[_0x18a2cd(0x466)]+=0x1;}[_0x2b1dc8(0x46a)](_0x5324b7,_0x26ec94){const _0xe471ef=_0x2b1dc8,{cmd:_0x51a041}=_0x26ec94;_0x51a041===_0x42427d['HELLO']&&!this[_0xe471ef(0x437)]&&(_0x5324b7[_0xe471ef(0x3a0)]=_0x26ec94[_0xe471ef(0x210)]['memberID'],this[_0xe471ef(0x33c)][_0xe471ef(0x522)](_0x5324b7),this[_0xe471ef(0x21c)][_0xe471ef(0x522)](_0x58e615[_0xe471ef(0x3df)]),this[_0xe471ef(0x437)]=!0x0,this[_0xe471ef(0x579)]=null),_0x51a041===_0x42427d['HEARTBEAT']&&this[_0xe471ef(0x4e5)](),this['_rescheduleHeartbeat']();}[_0x2b1dc8(0x218)](){const _0x47d6e9=_0x2b1dc8;var _0x533382;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0x47d6e9(0x4e3)](()=>this[_0x47d6e9(0x407)](),(_0x533382=this[_0x47d6e9(0x3aa)][_0x47d6e9(0x54b)](_0x28f4bb))!=null?_0x533382:0x7530);}['_sendHeartbeat'](){const _0x133792=_0x2b1dc8;this['_socket']['send']({'cmd':_0x42427d[_0x133792(0x28c)]}),this[_0x133792(0x276)]();}[_0x2b1dc8(0x276)](){const _0x21cda4=_0x2b1dc8;var _0x3591c0;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x21cda4(0x564)](),(_0x3591c0=this[_0x21cda4(0x3aa)]['getConfig'](_0x58f797))!=null?_0x3591c0:0x4e20);}[_0x2b1dc8(0x20e)](){const _0x35ddc0=_0x2b1dc8;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x35ddc0(0x5a0)]),this[_0x35ddc0(0x5a0)]=null);}[_0x2b1dc8(0x4e5)](){const _0x19a9e3=_0x2b1dc8;this[_0x19a9e3(0x2fa)]!=null&&(clearTimeout(this[_0x19a9e3(0x2fa)]),this[_0x19a9e3(0x2fa)]=null);}},_0x2010a0['CollaborationSessionService']=_0x13b428([_0x1daf99(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x1daf99(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['LocaleService'])),_0x1daf99(0x2,_0x32b063['IMessageService']),_0x1daf99(0x3,_0x5821d4[_0x2b1dc8(0x468)]),_0x1daf99(0x4,_0x5821d4[_0x2b1dc8(0x47d)]),_0x1daf99(0x5,_0x5c41db)],_0x2010a0[_0x2b1dc8(0x272)]);var _0xf47dc0=Object['defineProperty'],_0x1f8753=Object[_0x2b1dc8(0x299)],_0xfd997a=(_0x3f684d,_0x18f7d6,_0x4ee699,_0x2bbefa)=>{const _0xcf5f86=_0x2b1dc8;for(var _0x3dcab0=_0x2bbefa>0x1?void 0x0:_0x2bbefa?_0x1f8753(_0x18f7d6,_0x4ee699):_0x18f7d6,_0x3b70a9=_0x3f684d[_0xcf5f86(0x3b8)]-0x1,_0x51a578;_0x3b70a9>=0x0;_0x3b70a9--)(_0x51a578=_0x3f684d[_0x3b70a9])&&(_0x3dcab0=(_0x2bbefa?_0x51a578(_0x18f7d6,_0x4ee699,_0x3dcab0):_0x51a578(_0x3dcab0))||_0x3dcab0);return _0x2bbefa&&_0x3dcab0&&_0xf47dc0(_0x18f7d6,_0x4ee699,_0x3dcab0),_0x3dcab0;},_0x29cc74=(_0x601de7,_0xb6eaa3)=>(_0x436f95,_0x76a984)=>_0xb6eaa3(_0x436f95,_0x76a984,_0x601de7);let _0x203e1e=class{constructor(_0x98ef67,_0x486cdc,_0x5a4d40){const _0x2c6def=_0x2b1dc8;this[_0x2c6def(0x4cd)]=_0x98ef67,this[_0x2c6def(0x29e)]=_0x486cdc,this[_0x2c6def(0x29a)]=_0x5a4d40;}[_0x2b1dc8(0x51b)](_0x5ab77d){const _0x5c5871=_0x2b1dc8;this[_0x5c5871(0x4f5)](_0x5ab77d),this[_0x5c5871(0x1a8)](_0x5ab77d);}[_0x2b1dc8(0x381)](_0x114fbc){const _0x47b755=_0x2b1dc8,{unitID:_0x2748a4}=_0x114fbc,_0x4d2810=this['_renderManagerService'][_0x47b755(0x491)](_0x2748a4)['with'](_0x1123f9[_0x47b755(0x535)]),{redoCache:_0x1bb043}=_0x4d2810[_0x47b755(0x4c8)]();if(_0x1bb043[_0x47b755(0x3b8)]===0x0)return _0x114fbc;let _0x42542c=_0x5821d4[_0x47b755(0x325)][_0x47b755(0x35c)](_0x114fbc[_0x47b755(0x29c)][0x0]);for(let _0x42d0a5=0x0;_0x42d0a5<_0x1bb043[_0x47b755(0x3b8)];_0x42d0a5++){const _0x4bbc6b={'id':_0x47b755(0x55c),'params':{..._0x1bb043[_0x42d0a5]}},_0xee83c0=this[_0x47b755(0x29e)]['transformMutation'](_0x42542c,_0x4bbc6b,!0x1);if(_0xf29ce7['isTransformMutationFailure'](_0xee83c0))throw _0xee83c0['error'];_0x42542c=_0xee83c0[_0x47b755(0x58b)];}return{..._0x5821d4['Tools'][_0x47b755(0x35c)](_0x114fbc),'mutations':[_0x42542c]};}[_0x2b1dc8(0x4f5)](_0x2aea10){const _0x2dc828=_0x2b1dc8,{unitID:_0xdf01c0}=_0x2aea10,_0x40957a=this[_0x2dc828(0x29a)][_0x2dc828(0x491)](_0xdf01c0)[_0x2dc828(0x31d)](_0x1123f9[_0x2dc828(0x535)]),{undoCache:_0x3314a7,redoCache:_0x3869f4}=_0x40957a[_0x2dc828(0x4c8)]();if(_0x3314a7['length']===0x0||_0x3869f4[_0x2dc828(0x3b8)]===0x0)return;const _0x3a4f8b=[],_0x534461=[];let _0x27cbf5=_0x5821d4[_0x2dc828(0x325)][_0x2dc828(0x35c)](_0x2aea10['mutations'][0x0]),_0x39e14=_0x5821d4[_0x2dc828(0x325)][_0x2dc828(0x35c)](_0x2aea10['mutations'][0x0]);for(let _0x29a48d=_0x3314a7[_0x2dc828(0x3b8)]-0x1;_0x29a48d>=0x0;_0x29a48d--){const _0x5e37c8={'id':_0x2dc828(0x55c),'params':{..._0x3314a7[_0x29a48d]}},_0x1aaf5a={'id':_0x2dc828(0x55c),'params':{..._0x3869f4[_0x29a48d]}},_0x540bd4=this[_0x2dc828(0x29e)][_0x2dc828(0x431)](_0x27cbf5,_0x5e37c8,!0x1),_0x544e4e=this['_transformService'][_0x2dc828(0x431)](_0x39e14,_0x1aaf5a,!0x1);if(_0xf29ce7['isTransformMutationFailure'](_0x540bd4))throw _0x540bd4[_0x2dc828(0x3e4)];if(_0xf29ce7['isTransformMutationFailure'](_0x544e4e))throw _0x544e4e[_0x2dc828(0x3e4)];_0x3a4f8b['unshift'](_0x540bd4[_0x2dc828(0x1a3)][_0x2dc828(0x3ef)]),_0x534461[_0x2dc828(0x3a4)](_0x544e4e[_0x2dc828(0x1a3)][_0x2dc828(0x3ef)]),_0x27cbf5=_0x540bd4[_0x2dc828(0x58b)],_0x39e14=_0x544e4e[_0x2dc828(0x58b)];}_0x40957a['setUndoRedoMutationParamsCache']({'undoCache':_0x3a4f8b,'redoCache':_0x534461});}[_0x2b1dc8(0x1a8)](_0x2c66b2){const _0x2cce67=_0x2b1dc8,{unitID:_0xddf06a}=_0x2c66b2,_0x186ba0=this[_0x2cce67(0x29a)]['getRenderById'](_0xddf06a)[_0x2cce67(0x31d)](_0x1123f9[_0x2cce67(0x535)]),_0x564896=_0x186ba0[_0x2cce67(0x260)]();if(_0x564896==null)return;const _0x55d3d5=[{'id':_0x2cce67(0x55c),'params':{'unitId':_0x2c66b2[_0x2cce67(0x3d4)],'actions':null,'textRanges':[_0x564896]}}],_0xfac2f4=this[_0x2cce67(0x29e)][_0x2cce67(0x5a2)](_0x2c66b2,_0x55d3d5);if(!_0xf29ce7[_0x2cce67(0x18b)](_0xfac2f4))throw _0xfac2f4[_0x2cce67(0x3e4)];const _0x484799=_0xfac2f4[_0x2cce67(0x1a3)][0x0]['params'][_0x2cce67(0x227)];Array[_0x2cce67(0x38c)](_0x484799)&&_0x484799[_0x2cce67(0x3b8)]&&_0x186ba0['setActiveRange'](_0x484799[0x0]);}};_0x203e1e=_0xfd997a([_0x29cc74(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x29cc74(0x1,_0xf29ce7[_0x2b1dc8(0x487)]),_0x29cc74(0x2,_0x33b476[_0x2b1dc8(0x294)])],_0x203e1e);var _0x310c8d=Object['defineProperty'],_0x4fa6b7=Object[_0x2b1dc8(0x299)],_0x465e7d=(_0x31e8d6,_0x1a0cdf,_0x104ca5,_0x2016ec)=>{const _0x85d923=_0x2b1dc8;for(var _0x13fe04=_0x2016ec>0x1?void 0x0:_0x2016ec?_0x4fa6b7(_0x1a0cdf,_0x104ca5):_0x1a0cdf,_0x20b43c=_0x31e8d6[_0x85d923(0x3b8)]-0x1,_0x703c03;_0x20b43c>=0x0;_0x20b43c--)(_0x703c03=_0x31e8d6[_0x20b43c])&&(_0x13fe04=(_0x2016ec?_0x703c03(_0x1a0cdf,_0x104ca5,_0x13fe04):_0x703c03(_0x13fe04))||_0x13fe04);return _0x2016ec&&_0x13fe04&&_0x310c8d(_0x1a0cdf,_0x104ca5,_0x13fe04),_0x13fe04;},_0x3e8d6d=(_0x2d1191,_0x6e3445)=>(_0x51a550,_0xc391e1)=>_0x6e3445(_0x51a550,_0xc391e1,_0x2d1191);_0x2010a0[_0x2b1dc8(0x222)]=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x292cfe,_0x3d392c,_0x3ef3b7,_0x13cb3d,_0x434326){const _0x97459b=_0x2b1dc8;super(),_0x58b0b3(this,_0x97459b(0x30d),new Map()),_0x58b0b3(this,_0x97459b(0x57e),new Map()),_0x58b0b3(this,_0x97459b(0x206),!0x1),(this['_configService']=_0x292cfe,this['_localStorageService']=_0x3d392c,this['_beforeCloseService']=_0x3ef3b7,this[_0x97459b(0x2a6)]=_0x13cb3d,this[_0x97459b(0x300)]=_0x434326,this[_0x97459b(0x314)]());}['disableLocalCache'](){const _0x1dc80f=_0x2b1dc8;this[_0x1dc80f(0x206)]=!0x0;}['enableLocalCache'](){const _0x255ecf=_0x2b1dc8;this[_0x255ecf(0x206)]=!0x1;}[_0x2b1dc8(0x3a8)](){const _0x17a1a3=_0x2b1dc8;this['exhaustSavingTask']()[_0x17a1a3(0x57d)](()=>super[_0x17a1a3(0x3a8)]());}async['loadOfflineData'](_0x4431ee){const _0x12e6e0=_0x2b1dc8;return this[_0x12e6e0(0x206)]?null:this[_0x12e6e0(0x2ce)][_0x12e6e0(0x45d)](_0x4c1a63(_0x4431ee));}async['saveOfflineData'](_0x1c1d70,_0x455a6e){const _0x59f8d1=_0x2b1dc8;return!!this[_0x59f8d1(0x2ce)][_0x59f8d1(0x4ca)](_0x1c1d70,_0x455a6e);}[_0x2b1dc8(0x1f4)](_0x156248,_0x448f35,_0x556eba,_0x56d00f){const _0x49c3a3=_0x2b1dc8,_0x6bab7d=this['_revisionService'][_0x49c3a3(0x1ee)](_0x156248);this[_0x49c3a3(0x30d)][_0x49c3a3(0x305)](_0x156248,{'unitID':_0x156248,'type':_0x448f35,'awaitingChangeset':_0x556eba,'mutations':_0x56d00f,'rev':_0x6bab7d}),this['_saveTaskMap']['has'](_0x156248)||this[_0x49c3a3(0x316)](_0x156248);}['_scheduleSaving'](_0x556109){const _0x5a1f62=_0x2b1dc8,_0x1b0016=this[_0x5a1f62(0x1b7)]();_0x1b0016===0x0?this[_0x5a1f62(0x385)](_0x556109):this['_saveTaskMap'][_0x5a1f62(0x305)](_0x556109,setTimeout(()=>this[_0x5a1f62(0x385)](_0x556109),_0x1b0016));}[_0x2b1dc8(0x1b7)](){const _0xf7bd54=_0x2b1dc8;var _0x4058fb;return(_0x4058fb=this[_0xf7bd54(0x3aa)][_0xf7bd54(0x54b)](_0x120b3c))!=null?_0x4058fb:0x3e8;}[_0x2b1dc8(0x385)](_0x44f9d4){const _0x2224d3=_0x2b1dc8,_0x421253=this[_0x2224d3(0x57e)][_0x2224d3(0x37f)](_0x44f9d4);return _0x421253!==void 0x0&&window[_0x2224d3(0x2d3)](_0x421253),this[_0x2224d3(0x2ce)][_0x2224d3(0x4ca)](_0x4c1a63(_0x44f9d4),this['_cachedData'][_0x2224d3(0x37f)](_0x44f9d4))['then'](()=>this[_0x2224d3(0x57e)][_0x2224d3(0x189)](_0x44f9d4));}async[_0x2b1dc8(0x2f1)](){const _0x1c3323=_0x2b1dc8,_0x81c4e=[];this[_0x1c3323(0x57e)]['forEach']((_0x140808,_0x362f0c)=>{const _0x4587f8=_0x1c3323;window[_0x4587f8(0x2d3)](_0x140808),_0x81c4e[_0x4587f8(0x3fb)](this['_saveCache'](_0x362f0c)[_0x4587f8(0x57d)](()=>{const _0x2da516=_0x4587f8;this[_0x2da516(0x57e)][_0x2da516(0x189)](_0x362f0c);}));}),await Promise[_0x1c3323(0x2e8)](_0x81c4e);}[_0x2b1dc8(0x314)](){const _0x3c725f=_0x2b1dc8;this['disposeWithMe'](this['_beforeCloseService'][_0x3c725f(0x477)](()=>{const _0x182ee8=_0x3c725f;if(this[_0x182ee8(0x57e)]['size'])return this[_0x182ee8(0x2a6)]['t'](_0x182ee8(0x3b1));}));}},_0x2010a0['LocalCacheService']=_0x465e7d([_0x3e8d6d(0x0,_0x5821d4[_0x2b1dc8(0x47d)]),_0x3e8d6d(0x1,_0x5821d4[_0x2b1dc8(0x568)]),_0x3e8d6d(0x2,_0x32b063[_0x2b1dc8(0x2cb)]),_0x3e8d6d(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x3e8d6d(0x4,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)]))],_0x2010a0[_0x2b1dc8(0x222)]);function _0x4c1a63(_0x1be848){const _0x45f1f5=_0x2b1dc8;return _0x45f1f5(0x23e)+_0x1be848;}var _0x250493=Object['defineProperty'],_0x2e2a57=Object[_0x2b1dc8(0x299)],_0x32fdc1=(_0x55db64,_0x23ffda,_0x5507ef,_0x3d56c1)=>{const _0x284130=_0x2b1dc8;for(var _0x3a209e=_0x3d56c1>0x1?void 0x0:_0x3d56c1?_0x2e2a57(_0x23ffda,_0x5507ef):_0x23ffda,_0x3dd336=_0x55db64[_0x284130(0x3b8)]-0x1,_0x493c88;_0x3dd336>=0x0;_0x3dd336--)(_0x493c88=_0x55db64[_0x3dd336])&&(_0x3a209e=(_0x3d56c1?_0x493c88(_0x23ffda,_0x5507ef,_0x3a209e):_0x493c88(_0x3a209e))||_0x3a209e);return _0x3d56c1&&_0x3a209e&&_0x250493(_0x23ffda,_0x5507ef,_0x3a209e),_0x3a209e;},_0x148caa=(_0x107ab3,_0x39e392)=>(_0xe83ef2,_0x4fef8a)=>_0x39e392(_0xe83ef2,_0x4fef8a,_0x107ab3);function _0x25c284(_0x230ba2){const _0x277e7d=_0x2b1dc8,{unitID:_0x1d947f,mutations:_0x322863}=_0x230ba2;return{'unitId':_0x1d947f,'subUnitId':_0x322863[0x0][_0x277e7d(0x3ef)]['subUnitId']};}let _0x22d44e=class{constructor(_0x42e242,_0x376905,_0x1859bf){const _0x170ff8=_0x2b1dc8;this[_0x170ff8(0x4cd)]=_0x42e242,this[_0x170ff8(0x29e)]=_0x376905,this[_0x170ff8(0x220)]=_0x1859bf;}['transformSelections'](_0x5ac49b){const _0x31ac5d=_0x2b1dc8;var _0x21d0a4,_0x5efd06,_0x5ed30a,_0x27f778;const _0x530214=this[_0x31ac5d(0x4cd)][_0x31ac5d(0x37f)](_0x872f07[_0x31ac5d(0x463)]),{unitId:_0x22a75b,subUnitId:_0x5d9a13}=_0x25c284(_0x5ac49b),_0x5c873b=_0x530214[_0x31ac5d(0x39d)](_0x22a75b)[_0x31ac5d(0x506)](),_0x1f0a11=(_0x5efd06=(_0x21d0a4=this['_instanceService'][_0x31ac5d(0x1c5)](_0x22a75b))==null?void 0x0:_0x21d0a4[_0x31ac5d(0x5a1)]())==null?void 0x0:_0x5efd06[_0x31ac5d(0x1c4)]();if(_0x5c873b[_0x31ac5d(0x3b8)]===0x0||!_0x22a75b||!_0x5d9a13)return;const _0x1028fc=[{'id':_0x872f07['SetSelectionsOperation']['id'],'params':{'unitId':_0x22a75b,'subUnitId':_0x1f0a11,'selections':_0x5821d4[_0x31ac5d(0x325)][_0x31ac5d(0x35c)](_0x5c873b)}}],_0x1aeee9=this[_0x31ac5d(0x29e)][_0x31ac5d(0x5a2)](_0x5ac49b,_0x1028fc);if(!_0xf29ce7['isTransformMutationsWithChangesetSuccess'](_0x1aeee9))throw _0x1aeee9[_0x31ac5d(0x3e4)];const _0x2c8bc2=(_0x27f778=(_0x5ed30a=_0x1aeee9[_0x31ac5d(0x1a3)][0x0])==null?void 0x0:_0x5ed30a[_0x31ac5d(0x3ef)])==null?void 0x0:_0x27f778[_0x31ac5d(0x3cd)];Array['isArray'](_0x2c8bc2)&&_0x2c8bc2['length']&&this['_injector'][_0x31ac5d(0x37f)](_0x5821d4[_0x31ac5d(0x2bf)])[_0x31ac5d(0x2a8)](_0x872f07[_0x31ac5d(0x4ea)]['id'],{'unitId':_0x22a75b,'subUnitId':_0x1f0a11,'selections':_0x2c8bc2});}};_0x22d44e=_0x32fdc1([_0x148caa(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x148caa(0x1,_0xf29ce7[_0x2b1dc8(0x487)]),_0x148caa(0x2,_0x5821d4[_0x2b1dc8(0x486)])],_0x22d44e);const _0x4442df=_0x5821d4['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x100820=(_0x224665=>(_0x224665[_0x224665['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2b1dc8(0x377),_0x224665[_0x224665['OTHER_CLIENTS_EDITING']=0x1]=_0x2b1dc8(0x4de),_0x224665))(_0x100820||{});const _0x4af0b2=0x7530,_0x2fa35b='ACTIVE_UNIT_EVENT_CHANNEL';class _0x2dacc4 extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(){const _0x40f3b0=_0x2b1dc8;super(),_0x58b0b3(this,_0x40f3b0(0x369),_0x5821d4['Tools']['generateRandomId']()),_0x58b0b3(this,_0x40f3b0(0x1a4),new Set()),_0x58b0b3(this,'_unitOnClients',new Map()),_0x58b0b3(this,_0x40f3b0(0x2c1),null),_0x58b0b3(this,_0x40f3b0(0x4c4),new Map()),_0x58b0b3(this,_0x40f3b0(0x309),new Map()),this[_0x40f3b0(0x1dd)]();}['dispose'](){const _0x5864c5=_0x2b1dc8;super[_0x5864c5(0x3a8)](),this['_clearOtherTimers'][_0x5864c5(0x3bc)]((_0x4d2182,_0x51a160)=>this[_0x5864c5(0x239)](_0x51a160)),this[_0x5864c5(0x2c1)]&&window[_0x5864c5(0x23c)](this['_heartbeatTimer']);}[_0x2b1dc8(0x589)](_0x59813c){const _0x4eef68=_0x2b1dc8;return this[_0x4eef68(0x51c)](_0x59813c)[_0x4eef68(0x378)](_0x2fad13[_0x4eef68(0x4bf)]());}[_0x2b1dc8(0x35b)](_0x4edca4){const _0x3493c5=_0x2b1dc8;this[_0x3493c5(0x1a4)][_0x3493c5(0x199)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3493c5(0x1a4)][_0x3493c5(0x25b)](_0x4edca4),this[_0x3493c5(0x3d1)]({'type':0x0,'memberID':this[_0x3493c5(0x369)],'unitIDs':[_0x4edca4],'isForwarded':!0x1});}[_0x2b1dc8(0x441)](_0x59c365){const _0x4750ff=_0x2b1dc8;this['_selfUnitIDs']['delete'](_0x59c365),this[_0x4750ff(0x1a4)][_0x4750ff(0x199)]===0x0&&this[_0x4750ff(0x2c1)]&&window[_0x4750ff(0x23c)](this['_heartbeatTimer']);}[_0x2b1dc8(0x1dd)](){const _0x3e2e69=_0x2b1dc8;this[_0x3e2e69(0x470)](_0x5821d4[_0x3e2e69(0x1ed)](_0x2fad13['fromEvent'](window,_0x3e2e69(0x1a6))['subscribe'](_0x18243b=>{const _0x240c3a=_0x3e2e69;if(_0x18243b[_0x240c3a(0x4c3)]!==_0x2fa35b||!_0x18243b['newValue'])return;const _0xe1bc0d=JSON[_0x240c3a(0x580)](_0x18243b['newValue']);this[_0x240c3a(0x230)](_0xe1bc0d);}))),window[_0x3e2e69(0x1fc)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x3e2e69(0x369)],'unitIDs':Array[_0x3e2e69(0x282)](this[_0x3e2e69(0x1a4)])}));}['_handleEvent'](_0x3fde03){const _0x430d5d=_0x2b1dc8;switch(_0x3fde03[_0x430d5d(0x4f1)]){case 0x0:this[_0x430d5d(0x2d7)](_0x3fde03);break;case 0x1:this[_0x430d5d(0x45e)](_0x3fde03);break;case 0x2:this['_handleHeartbeatEvent'](_0x3fde03);break;}}[_0x2b1dc8(0x2d7)](_0x74cb7a){const _0x38520f=_0x2b1dc8,{unitIDs:_0x1e2bb8,memberID:_0x4c1beb,isForwarded:_0x271980}=_0x74cb7a;_0x1e2bb8[_0x38520f(0x3bc)](_0x224546=>{const _0x2fd465=_0x38520f;if(!_0x271980&&this[_0x2fd465(0x2f0)][_0x2fd465(0x532)](_0x224546)&&this[_0x2fd465(0x51c)](_0x224546)[_0x2fd465(0x522)](0x1),!this[_0x2fd465(0x2f0)]['has'](_0x224546)||!this[_0x2fd465(0x2f0)]['get'](_0x224546)['has'](_0x4c1beb)){const _0x5a3a9b=this[_0x2fd465(0x2f0)][_0x2fd465(0x37f)](_0x224546)||new Set();_0x5a3a9b[_0x2fd465(0x25b)](_0x4c1beb),this[_0x2fd465(0x2f0)][_0x2fd465(0x305)](_0x224546,_0x5a3a9b),this[_0x2fd465(0x29f)](_0x4c1beb);}}),_0x271980||this[_0x38520f(0x3d1)]({'type':0x0,'memberID':this[_0x38520f(0x369)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2b1dc8(0x29f)](_0x15acac){const _0x54cac7=_0x2b1dc8;this[_0x54cac7(0x239)](_0x15acac);const _0x4fff25=window[_0x54cac7(0x4e3)](()=>{const _0x371539=_0x54cac7;this[_0x371539(0x2f0)]['forEach'](_0x26c22b=>{const _0xabf6d2=_0x371539;_0x26c22b[_0xabf6d2(0x189)](_0x15acac);});},_0x4af0b2*0x2);this[_0x54cac7(0x4c4)][_0x54cac7(0x305)](_0x15acac,_0x4fff25);}[_0x2b1dc8(0x239)](_0x5c083){const _0x383e02=_0x2b1dc8;if(this[_0x383e02(0x4c4)][_0x383e02(0x532)](_0x5c083)){const _0x1c665b=this[_0x383e02(0x4c4)]['get'](_0x5c083);_0x1c665b&&window['clearTimeout'](_0x1c665b),this[_0x383e02(0x4c4)][_0x383e02(0x305)](_0x5c083,null);}}[_0x2b1dc8(0x45e)](_0x5ba744){const {memberID:_0x13ead9,unitIDs:_0x40fa45}=_0x5ba744;_0x40fa45['forEach'](_0x13a93c=>{const _0x518fc9=_0x5448;var _0x157222;const _0x163dc9=this[_0x518fc9(0x2f0)][_0x518fc9(0x37f)](_0x13a93c);_0x163dc9&&(_0x163dc9[_0x518fc9(0x189)](_0x13ead9),(_0x157222=this[_0x518fc9(0x51c)](_0x13a93c))==null||_0x157222[_0x518fc9(0x522)](_0x163dc9['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x13ead9);}[_0x2b1dc8(0x284)](_0x23bb8c){const _0x21c46a=_0x2b1dc8;this['_scheduleClearOtherTimer'](_0x23bb8c[_0x21c46a(0x3a0)]);}['_send'](_0x5593d){const _0x42d845=_0x2b1dc8;localStorage['setItem'](_0x2fa35b,JSON[_0x42d845(0x3f3)](_0x5593d));}[_0x2b1dc8(0x2fc)](){const _0x163fa5=_0x2b1dc8;this[_0x163fa5(0x2c1)]=window[_0x163fa5(0x448)](()=>{const _0x466107=_0x163fa5;this[_0x466107(0x3d1)]({'type':0x2,'memberID':this['_id']});},_0x4af0b2);}[_0x2b1dc8(0x51c)](_0x534892){const _0xab4476=_0x2b1dc8;return this[_0xab4476(0x309)]['has'](_0x534892)||this[_0xab4476(0x309)][_0xab4476(0x305)](_0x534892,new _0x2fad13['BehaviorSubject'](0x0)),this['_unitStatus']['get'](_0x534892);}}function _0x2338f2(_0x3cd5a7){let _0x39c97a='';for(const _0x5651ee of _0x3cd5a7){const {startOffset:_0x229241,endOffset:_0x26018b,isActive:_0x581de1}=_0x5651ee;_0x39c97a['length']&&(_0x39c97a+=','),_0x39c97a+=_0x229241+':'+_0x26018b+':'+(_0x581de1?'1':'0');}return _0x39c97a;}function _0x357da9(_0x2e8a98){const _0xa9a155=_0x2b1dc8,_0x2b701c=_0x2e8a98[_0xa9a155(0x586)](','),_0x5f4c00=[];for(const _0x444c9b of _0x2b701c){const [_0x81047,_0x370327,_0x5a3f0f]=_0x444c9b[_0xa9a155(0x586)](':');_0x5f4c00['push']({'startOffset':Number(_0x81047),'endOffset':Number(_0x370327),'collapsed':_0x81047===_0x370327,'isActive':_0x5a3f0f==='1'});}return _0x5f4c00[_0xa9a155(0x423)](_0x19d540=>_0x19d540[_0xa9a155(0x3e7)])||(_0x5f4c00[0x0][_0xa9a155(0x3e7)]=!0x0),_0x5f4c00;}class _0x4ce206 extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(){const _0x2739b2=_0x2b1dc8;super(...arguments),_0x58b0b3(this,_0x2739b2(0x36b),new _0x2fad13[(_0x2739b2(0x53f))](null)),_0x58b0b3(this,'collabCursorState$',this['_collabCursorState$'][_0x2739b2(0x1eb)]());}[_0x2b1dc8(0x392)](_0x49b0b2){const _0x25be10=_0x2b1dc8,{unitID:_0x5e3e1e,memberID:_0x42848c,textRanges:_0x358b94}=_0x49b0b2,_0x105d05=_0x2338f2(_0x358b94),_0x5101d2={'unitID':_0x5e3e1e,'memberID':_0x42848c,'selection':_0x105d05};this[_0x25be10(0x36b)][_0x25be10(0x522)](_0x5101d2);}}var _0x14585d=Object['defineProperty'],_0x5b3185=Object['getOwnPropertyDescriptor'],_0x293ced=(_0x4faa11,_0x23359e,_0x3b99df,_0x40a069)=>{const _0x50b502=_0x2b1dc8;for(var _0x5c4c57=_0x40a069>0x1?void 0x0:_0x40a069?_0x5b3185(_0x23359e,_0x3b99df):_0x23359e,_0x59e239=_0x4faa11[_0x50b502(0x3b8)]-0x1,_0x39e9d2;_0x59e239>=0x0;_0x59e239--)(_0x39e9d2=_0x4faa11[_0x59e239])&&(_0x5c4c57=(_0x40a069?_0x39e9d2(_0x23359e,_0x3b99df,_0x5c4c57):_0x39e9d2(_0x5c4c57))||_0x5c4c57);return _0x40a069&&_0x5c4c57&&_0x14585d(_0x23359e,_0x3b99df,_0x5c4c57),_0x5c4c57;},_0x5ace0d=(_0x83c069,_0x462a87)=>(_0x574c5a,_0x177735)=>_0x462a87(_0x574c5a,_0x177735,_0x83c069);let _0x493ead=class{constructor(_0x163450,_0xca30b3){const _0xc10421=_0x2b1dc8;this[_0xc10421(0x4cd)]=_0x163450,this['_transformService']=_0xca30b3;}['transformSelections'](_0xd03440){const _0xff6478=_0x2b1dc8;var _0x3af576;const _0x250a69=this[_0xff6478(0x4cd)][_0xff6478(0x37f)](_0xc13db5[_0xff6478(0x4f6)]),_0x305209=(_0x3af576=_0x250a69[_0xff6478(0x502)]())!=null?_0x3af576:[];if(_0x305209[_0xff6478(0x3b8)]===0x0)return;const _0x4c903e=[{'id':_0xff6478(0x55c),'params':{'unitId':_0xd03440['unitID'],'actions':null,'textRanges':_0x305209}}],_0x13bf84=this[_0xff6478(0x29e)][_0xff6478(0x5a2)](_0xd03440,_0x4c903e);if(!_0xf29ce7[_0xff6478(0x18b)](_0x13bf84))throw _0x13bf84[_0xff6478(0x3e4)];const _0x47542d=_0x13bf84[_0xff6478(0x1a3)][0x0][_0xff6478(0x3ef)][_0xff6478(0x227)];Array[_0xff6478(0x38c)](_0x47542d)&&_0x47542d[_0xff6478(0x3b8)]&&_0x250a69['replaceTextRanges'](_0x47542d,!0x1);}};_0x493ead=_0x293ced([_0x5ace0d(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x5ace0d(0x1,_0xf29ce7[_0x2b1dc8(0x487)])],_0x493ead);const _0x412590=new Set([_0x872f07[_0x2b1dc8(0x4db)]['id']]);function _0x47f654(_0x39996c,_0x564506,_0x261cba,_0x58d773,_0x14d348){const _0x19c54f=_0x2b1dc8;var _0x802bd7,_0x16fd88,_0x4ff8a5,_0xdb8383;const _0x1589d8=[];for(const _0x43f3fe of _0x39996c)if(_0x412590[_0x19c54f(0x532)](_0x43f3fe['id'])){if(_0x1589d8[_0x19c54f(0x3b8)]>0x0)break;_0x1589d8[_0x19c54f(0x3fb)](_0x43f3fe);break;}else _0x1589d8[_0x19c54f(0x3fb)](_0x43f3fe);const _0xe7ecb3=(_0x16fd88=(_0x802bd7=_0x14d348[_0x19c54f(0x356)]())==null?void 0x0:_0x802bd7['userID'])!=null?_0x16fd88:_0x19c54f(0x47e),_0x4a4a3e=(_0xdb8383=(_0x4ff8a5=_0x14d348[_0x19c54f(0x356)]())==null?void 0x0:_0x4ff8a5[_0x19c54f(0x3a0)])!=null?_0xdb8383:'unknown';return{'changeset':{'unitID':_0x564506,'type':_0xf29ce7[_0x19c54f(0x43a)](_0x261cba['getUnitType'](_0x564506)),'baseRev':_0x58d773[_0x19c54f(0x1ee)](_0x564506),'revision':0x0,'userID':_0xe7ecb3,'memberID':_0x4a4a3e,'mutations':_0x1589d8},'pendingMutations':_0x39996c[_0x19c54f(0x234)](_0x1589d8[_0x19c54f(0x3b8)])};}function _0x4079e3(_0x193128,_0xdaa6d5,_0x14383e,_0x4e155a,_0x19f0aa){const _0x531f72=_0x2b1dc8;var _0x166c8c,_0x4a2292,_0x140e00,_0x35e80b;const _0x20b146=[_0x193128[_0x531f72(0x351)]((_0x17897f,_0x2d0ad5)=>{const _0x4af391=_0x531f72;var _0xfffbfb;const {id:_0x20d933}=_0x17897f,{id:_0x36ff5b,type:_0x22cd33}=_0x2d0ad5,_0x21fce6=(_0xfffbfb=_0x17897f[_0x4af391(0x3ef)])!=null?_0xfffbfb:{'actions':null},_0x1085fc=_0x2d0ad5[_0x4af391(0x3ef)];if(_0x20d933&&_0x20d933!==_0x36ff5b)throw new Error(_0x4af391(0x46e)+_0x20d933+_0x4af391(0x198)+_0x36ff5b+'.');return{..._0x17897f,'id':_0x36ff5b,'type':_0x22cd33,'params':{'unitId':_0x1085fc[_0x4af391(0x3af)],'textRanges':_0x1085fc['textRanges'],'actions':_0x5821d4[_0x4af391(0x597)][_0x4af391(0x5a4)](_0x21fce6[_0x4af391(0x493)],_0x1085fc[_0x4af391(0x493)])}};},{})],_0x33d5cc=(_0x4a2292=(_0x166c8c=_0x19f0aa[_0x531f72(0x356)]())==null?void 0x0:_0x166c8c[_0x531f72(0x46f)])!=null?_0x4a2292:'unknown',_0x54b1ee=(_0x35e80b=(_0x140e00=_0x19f0aa['getCurrentUser']())==null?void 0x0:_0x140e00['memberID'])!=null?_0x35e80b:'unknown';return{'changeset':{'unitID':_0xdaa6d5,'type':_0xf29ce7[_0x531f72(0x43a)](_0x14383e[_0x531f72(0x2b8)](_0xdaa6d5)),'baseRev':_0x4e155a['getCurrentRevOfUnit'](_0xdaa6d5),'revision':0x0,'userID':_0x33d5cc,'memberID':_0x54b1ee,'mutations':_0x20b146},'pendingMutations':[]};}const _0x28d154={'id':_0x872f07['EmptyMutation']['id'],'type':_0x5821d4[_0x2b1dc8(0x334)][_0x2b1dc8(0x544)],'params':{}};var _0x3cf485=Object[_0x2b1dc8(0x47b)],_0x3fa2a4=Object['getOwnPropertyDescriptor'],_0x1d43bf=(_0x478e5e,_0x5ce355,_0x2ee697,_0x14ed7d)=>{const _0x2b8aae=_0x2b1dc8;for(var _0x1d48a1=_0x14ed7d>0x1?void 0x0:_0x14ed7d?_0x3fa2a4(_0x5ce355,_0x2ee697):_0x5ce355,_0x2d3806=_0x478e5e[_0x2b8aae(0x3b8)]-0x1,_0x20f599;_0x2d3806>=0x0;_0x2d3806--)(_0x20f599=_0x478e5e[_0x2d3806])&&(_0x1d48a1=(_0x14ed7d?_0x20f599(_0x5ce355,_0x2ee697,_0x1d48a1):_0x20f599(_0x1d48a1))||_0x1d48a1);return _0x14ed7d&&_0x1d48a1&&_0x3cf485(_0x5ce355,_0x2ee697,_0x1d48a1),_0x1d48a1;},_0x396334=(_0x251529,_0x476a43)=>(_0x369e90,_0x2642c8)=>_0x476a43(_0x369e90,_0x2642c8,_0x251529),_0x109234=(_0x41a160=>(_0x41a160[_0x2b1dc8(0x525)]=_0x2b1dc8(0x212),_0x41a160['SYNCED']=_0x2b1dc8(0x549),_0x41a160[_0x2b1dc8(0x258)]='pending',_0x41a160[_0x2b1dc8(0x585)]=_0x2b1dc8(0x4dd),_0x41a160[_0x2b1dc8(0x2f8)]='awaiting_with_pending',_0x41a160['FETCH_MISS']=_0x2b1dc8(0x434),_0x41a160[_0x2b1dc8(0x5b0)]='conflict',_0x41a160['OFFLINE']=_0x2b1dc8(0x23d),_0x41a160))(_0x109234||{});class _0x80c12c{constructor(_0x3b2f7c,_0xe5feea,_0x440816,_0x5561ef,_0x3f7c2d,_0x3d7085,_0x2b6dd4,_0x4e9772,_0x5f46b8){const _0x506550=_0x2b1dc8;_0x58b0b3(this,_0x506550(0x4cc),null),_0x58b0b3(this,_0x506550(0x24c),[]),(this[_0x506550(0x3d4)]=_0x3b2f7c,this[_0x506550(0x4f1)]=_0xe5feea,this['_handler']=_0x3f7c2d,this[_0x506550(0x4f9)]=_0x3d7085,this[_0x506550(0x479)]=_0x2b6dd4,this[_0x506550(0x300)]=_0x4e9772,this[_0x506550(0x461)]=_0x5f46b8,this[_0x506550(0x4cc)]=_0x440816,this['_pendingMutations']=_0x5561ef);}['_checkMissing'](_0x170390){const _0xe90d97=_0x2b1dc8,_0x27b470=this[_0xe90d97(0x300)][_0xe90d97(0x1ee)](this[_0xe90d97(0x3d4)]);return _0x170390[_0xe90d97(0x1e2)]>_0x27b470+0x1?(this[_0xe90d97(0x1a1)][_0xe90d97(0x2fb)]({'from':_0x27b470,'to':_0x170390[_0xe90d97(0x1e2)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x31f942){const _0x3c18bc=_0x2b1dc8;this[_0x3c18bc(0x479)]['transformUndoRedo'](this['unitID'],_0x31f942);}[_0x2b1dc8(0x515)](_0x5ed29f){const _0x5f2356=_0x2b1dc8;var _0x521623,_0x1f4c5c;(_0x1f4c5c=(_0x521623=this[_0x5f2356(0x1a1)])[_0x5f2356(0x359)])==null||_0x1f4c5c[_0x5f2356(0x54a)](_0x521623,_0x5ed29f);}['_transformIMECache'](_0x54ab2e){const _0xa8a83d=_0x2b1dc8;var _0x2d63b5,_0x99bbd6;return(_0x99bbd6=(_0x2d63b5=this[_0xa8a83d(0x1a1)])['onTransformIME'])==null?void 0x0:_0x99bbd6[_0xa8a83d(0x54a)](_0x2d63b5,_0x54ab2e);}[_0x2b1dc8(0x4d7)](_0x221dcb){const _0xa54d37=_0x2b1dc8;var _0x459a8e,_0x43ee06,_0x1bebb4;return(_0x1bebb4=(_0x43ee06=(_0x459a8e=this[_0xa54d37(0x1a1)])[_0xa54d37(0x583)])==null?void 0x0:_0x43ee06[_0xa54d37(0x54a)](_0x459a8e,_0x221dcb))!=null?_0x1bebb4:_0x221dcb;}[_0x2b1dc8(0x1d8)](_0xbeef94){const _0x2e4d60=_0x2b1dc8;var _0x200122,_0x4b3fda;if(this[_0x2e4d60(0x4f1)]===_0x25ecad[_0x2e4d60(0x202)]){const {unitID:_0x40d9a2,mutations:_0x5f5828,memberID:_0x319cdc}=_0xbeef94,_0x3a449a=_0x5f5828[0x0]['params']['textRanges'];Array[_0x2e4d60(0x38c)](_0x3a449a)&&_0x3a449a[_0x2e4d60(0x3b8)]>0x0&&((_0x4b3fda=(_0x200122=this[_0x2e4d60(0x1a1)])[_0x2e4d60(0x553)])==null||_0x4b3fda[_0x2e4d60(0x54a)](_0x200122,{'unitID':_0x40d9a2,'memberID':_0x319cdc,'textRanges':_0x3a449a}));}}['_updateLocalCache'](){const _0x45d9b3=_0x2b1dc8;this[_0x45d9b3(0x461)][_0x45d9b3(0x1f4)](this['unitID'],this[_0x45d9b3(0x4f1)],this[_0x45d9b3(0x4cc)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x48a25f=_0x2b1dc8;return this[_0x48a25f(0x300)][_0x48a25f(0x1ee)](this[_0x48a25f(0x3d4)]);}[_0x2b1dc8(0x3b4)](){const _0x4d129a=_0x2b1dc8;this[_0x4d129a(0x300)]['incrementRevOfUnit'](this[_0x4d129a(0x3d4)]);}['_executeRemoteChangeset'](_0x518e89){const _0x1ab4a3=_0x2b1dc8;var _0x221290;const _0x24f703=this[_0x1ab4a3(0x4d7)](_0x518e89),_0x179a86=_0x5821d4[_0x1ab4a3(0x5b9)](_0x24f703['mutations'],this[_0x1ab4a3(0x4f9)],{'fromCollab':!0x0});if(!_0x179a86[_0x1ab4a3(0x39c)])throw _0x179a86[_0x1ab4a3(0x3e4)]instanceof Error?_0x179a86[_0x1ab4a3(0x3e4)]:new Error((_0x221290=_0x179a86[_0x1ab4a3(0x3e4)])!=null?_0x221290:_0x1ab4a3(0x55e));this[_0x1ab4a3(0x2f4)](_0x24f703),this['_transformUndoredo'](_0x518e89),this[_0x1ab4a3(0x515)](_0x24f703),this['_syncEditingCollabCursor'](_0x24f703),this[_0x1ab4a3(0x3b4)]();}}let _0x26314f=class extends _0x80c12c{constructor(_0x5aa94f,_0x3b6242,_0xac7639,_0x576cb1,_0xf1cf40,_0x2f7fdc,_0x34969e,_0x28c5cf,_0x324ad5,_0x55ccdd){const _0x4a2a83=_0x2b1dc8;super(_0x5aa94f,_0x3b6242,null,[],_0xac7639,_0x28c5cf,_0x34969e,_0x576cb1,_0xf1cf40),_0x58b0b3(this,_0x4a2a83(0x219),_0x4a2a83(0x549)),(this[_0x4a2a83(0x4cd)]=_0x2f7fdc,this[_0x4a2a83(0x26b)]=_0x324ad5,this['_transformService']=_0x55ccdd);}[_0x2b1dc8(0x551)](_0x44c889){const _0x42b588=_0x2b1dc8,_0x42136d=this[_0x42b588(0x4cd)][_0x42b588(0x281)](_0x1e758c,this[_0x42b588(0x3d4)],this[_0x42b588(0x4f1)],[_0x44c889],this[_0x42b588(0x1a1)]);return _0x42136d[_0x42b588(0x1ce)](),_0x42136d[_0x42b588(0x205)](),_0x42136d;}['onRemoteChangeset'](_0x144510){const _0x15e348=_0x2b1dc8;if(this['_checkMissing'](_0x144510))return this[_0x15e348(0x4cd)][_0x15e348(0x281)](_0x1ca0b2,this['unitID'],this['type'],null,[],null,[_0x144510],this[_0x15e348(0x1a1)]);try{const _0x18192e=this['_transformService'][_0x15e348(0x5a2)](_0x144510,[_0x28d154]);if(_0xf29ce7[_0x15e348(0x18b)](_0x18192e)){const {c1Prime:_0x192bf2}=_0x18192e;return this[_0x15e348(0x323)](_0x192bf2),this;}throw _0x18192e['error'];}catch(_0xa108e){return this['_logService']['error'](_0xa108e),this[_0x15e348(0x578)](!0x1);}}[_0x2b1dc8(0x578)](_0x1bc771){const _0x28e2cd=_0x2b1dc8;return this[_0x28e2cd(0x4cd)][_0x28e2cd(0x281)](_0x4d2dc0,this['unitID'],this[_0x28e2cd(0x4f1)],null,[],this[_0x28e2cd(0x1a1)],_0x1bc771);}[_0x2b1dc8(0x53c)](){const _0x5327a0=_0x2b1dc8;throw new Error(_0x5327a0(0x56a));}[_0x2b1dc8(0x2a0)](){const _0xaef502=_0x2b1dc8;throw new Error(_0xaef502(0x39a));}[_0x2b1dc8(0x529)](){const _0x528290=_0x2b1dc8;return this[_0x528290(0x4cd)]['createInstance'](_0x4421df,this['unitID'],this['type'],null,[],this[_0x528290(0x1a1)]);}['toggleOnline'](){return this;}[_0x2b1dc8(0x274)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x244f6e=_0x2b1dc8,_0x12b5d3=this[_0x244f6e(0x300)]['getCurrentRevOfUnit'](this['unitID']);return this[_0x244f6e(0x1a1)]['onMissingChangesets']({'from':_0x12b5d3,'to':0x0}),this[_0x244f6e(0x4cd)]['createInstance'](_0x1ca0b2,this['unitID'],this[_0x244f6e(0x4f1)],null,[],null,[],this[_0x244f6e(0x1a1)]);}};_0x26314f=_0x1d43bf([_0x396334(0x3,_0x5821d4['Inject'](_0xf29ce7['RevisionService'])),_0x396334(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x2ac)]),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0x9,_0xf29ce7[_0x2b1dc8(0x487)])],_0x26314f);let _0x1e758c=class extends _0x80c12c{constructor(_0x44c17f,_0x10c8cb,_0x2e7a43,_0x4705e8,_0x967b8b,_0x1dcb61,_0x451d03,_0xe0ee82,_0x58c3fd,_0x37aabf,_0x5b4e9b,_0x166105,_0x20fbc6,_0x1941fb){const _0x43287f=_0x2b1dc8;super(_0x44c17f,_0x10c8cb,null,_0x2e7a43,_0x4705e8,_0x37aabf,_0x1941fb,_0x1dcb61,_0x451d03),_0x58b0b3(this,_0x43287f(0x219),_0x43287f(0x248)),_0x58b0b3(this,_0x43287f(0x1e9),null),_0x58b0b3(this,_0x43287f(0x394),null),(this[_0x43287f(0x4cd)]=_0x967b8b,this[_0x43287f(0x293)]=_0xe0ee82,this[_0x43287f(0x26b)]=_0x58c3fd,this[_0x43287f(0x3aa)]=_0x5b4e9b,this[_0x43287f(0x29e)]=_0x166105,this[_0x43287f(0x267)]=_0x20fbc6);}[_0x2b1dc8(0x551)](_0x299a2c){const _0x25916d=_0x2b1dc8;return this[_0x25916d(0x24c)][_0x25916d(0x3fb)](_0x299a2c),this[_0x25916d(0x205)](),this;}[_0x2b1dc8(0x56e)](_0x2629e2){const _0x34071a=_0x2b1dc8;if(this[_0x34071a(0x485)](_0x2629e2))return this['_clearScheduledTask'](),this['_injector'][_0x34071a(0x281)](_0x1ca0b2,this[_0x34071a(0x3d4)],this[_0x34071a(0x4f1)],null,this[_0x34071a(0x24c)],null,[_0x2629e2],this['_handler']);try{const _0x38baa8=this['_transformService'][_0x34071a(0x5a2)](_0x2629e2,this[_0x34071a(0x24c)]);if(_0xf29ce7[_0x34071a(0x18b)](_0x38baa8)){const {c1Prime:_0x561a72,m2Prime:_0x474016}=_0x38baa8;this[_0x34071a(0x323)](_0x561a72);const _0x57cf98=this[_0x34071a(0x4cd)][_0x34071a(0x281)](_0x1e758c,this['unitID'],this[_0x34071a(0x4f1)],_0x474016,this[_0x34071a(0x1a1)]);return this[_0x34071a(0x19f)](),_0x57cf98['_schedule'](this[_0x34071a(0x1e9)]?Math[_0x34071a(0x35f)](0x0,new Date()[_0x34071a(0x58e)]()-this[_0x34071a(0x1e9)]):this['_getSendChangesetTimeout']()),_0x57cf98;}throw _0x38baa8[_0x34071a(0x3e4)];}catch(_0x39cae8){return this['_logService'][_0x34071a(0x3e4)](_0x39cae8),this[_0x34071a(0x578)](!0x1);}}[_0x2b1dc8(0x53c)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x2b1dc8(0x2a0)](){const _0x44b8a5=_0x2b1dc8;throw new Error(_0x44b8a5(0x49d));}[_0x2b1dc8(0x529)](){const _0x16b78b=_0x2b1dc8;return this[_0x16b78b(0x19f)](),this[_0x16b78b(0x4cd)]['createInstance'](_0x4421df,this[_0x16b78b(0x3d4)],this[_0x16b78b(0x4f1)],null,this['_pendingMutations'],this[_0x16b78b(0x1a1)]);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x1ce)](_0x35d4c5){const _0x53933a=_0x2b1dc8,_0x30f180=_0x35d4c5!=null?_0x35d4c5:this[_0x53933a(0x355)]();this['_scheduleTimestamp']=new Date()[_0x53933a(0x58e)](),this['_sendingTimer']=window['setTimeout'](()=>{const _0x138b01=_0x53933a;this['_clearScheduledTask']();let _0x479a44=null;switch(this[_0x138b01(0x4f1)]){case _0x25ecad['UNIVER_SHEET']:{_0x479a44=_0x47f654(this[_0x138b01(0x24c)],this['unitID'],this[_0x138b01(0x267)],this[_0x138b01(0x300)],this[_0x138b01(0x293)]);break;}case _0x25ecad[_0x138b01(0x202)]:{this[_0x138b01(0x24c)][_0x138b01(0x31f)](_0x59d4c0=>_0x59d4c0['id']===_0xc13db5['RichTextEditingMutation']['id'])?_0x479a44=_0x4079e3(this['_pendingMutations'],this[_0x138b01(0x3d4)],this[_0x138b01(0x267)],this[_0x138b01(0x300)],this['_memberService']):_0x479a44=_0x47f654(this[_0x138b01(0x24c)],this['unitID'],this['_univerInstanceService'],this[_0x138b01(0x300)],this['_memberService']);break;}default:throw new Error(_0x138b01(0x22f)+this['type']+_0x138b01(0x406));}const {changeset:_0x1876cd,pendingMutations:_0x3d3b4a}=_0x479a44;this[_0x138b01(0x1a1)][_0x138b01(0x50e)](_0x1876cd);const _0x52002a=_0x3d3b4a[_0x138b01(0x3b8)]?this[_0x138b01(0x4cd)]['createInstance'](_0x576a65,this[_0x138b01(0x3d4)],this[_0x138b01(0x4f1)],_0x1876cd,_0x3d3b4a,this[_0x138b01(0x1a1)]):this['_injector'][_0x138b01(0x281)](_0x248727,this['unitID'],this['type'],_0x1876cd,this[_0x138b01(0x1a1)]);_0x52002a[_0x138b01(0x205)](),this[_0x138b01(0x1a1)][_0x138b01(0x2d0)](this,_0x52002a);},_0x30f180);}[_0x2b1dc8(0x355)](){const _0x2731ea=_0x2b1dc8;var _0x4686af;const _0x35656f=this[_0x2731ea(0x3aa)][_0x2731ea(0x54b)](_0x451f80);return(_0x4686af=_0x35656f==null?void 0x0:_0x35656f[_0x2731ea(0x1e6)])!=null?_0x4686af:0x7d0;}[_0x2b1dc8(0x274)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2b1dc8(0x19f)](){const _0x598138=_0x2b1dc8;this[_0x598138(0x394)]!=null&&(clearTimeout(this[_0x598138(0x394)]),this[_0x598138(0x394)]=null);}['_onConflict'](_0x571143){const _0x2e18f6=_0x2b1dc8;return this[_0x2e18f6(0x19f)](),this[_0x2e18f6(0x4cd)][_0x2e18f6(0x281)](_0x4d2dc0,this['unitID'],this['type'],null,this[_0x2e18f6(0x24c)],this[_0x2e18f6(0x1a1)],_0x571143);}};_0x1e758c=_0x1d43bf([_0x396334(0x4,_0x5821d4['Inject'](_0x5821d4['Injector'])),_0x396334(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7['RevisionService'])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x35f626)),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0xa,_0x5821d4['IConfigService']),_0x396334(0xb,_0xf29ce7[_0x2b1dc8(0x487)]),_0x396334(0xc,_0x5821d4[_0x2b1dc8(0x486)]),_0x396334(0xd,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x1e758c);let _0x248727=class extends _0x80c12c{constructor(_0x36667d,_0x4ee252,_0x19f747,_0x412e65,_0x5fbeb1,_0x4fc120,_0x19281a,_0x29cf43,_0x271eb7,_0x42e1ab,_0x120ddb){const _0x444a8c=_0x2b1dc8;super(_0x36667d,_0x4ee252,_0x19f747,[],_0x412e65,_0x29cf43,_0x120ddb,_0x4fc120,_0x19281a),_0x58b0b3(this,_0x444a8c(0x219),_0x444a8c(0x4dd)),(this[_0x444a8c(0x4cd)]=_0x5fbeb1,this[_0x444a8c(0x26b)]=_0x271eb7,this[_0x444a8c(0x29e)]=_0x42e1ab);}[_0x2b1dc8(0x551)](_0x43fe40){const _0x408b88=_0x2b1dc8,_0x4d7353=this['_injector'][_0x408b88(0x281)](_0x576a65,this[_0x408b88(0x3d4)],this['type'],this['_awaitingChangeset'],[_0x43fe40],this[_0x408b88(0x1a1)]);return _0x4d7353['_updateLocalCache'](),_0x4d7353;}[_0x2b1dc8(0x56e)](_0x4e1e39){const _0x1b38a9=_0x2b1dc8;if(this[_0x1b38a9(0x485)](_0x4e1e39))return this[_0x1b38a9(0x4cd)][_0x1b38a9(0x281)](_0x1ca0b2,this['unitID'],this['type'],this[_0x1b38a9(0x4cc)],[],null,[_0x4e1e39],this['_handler']);try{const _0x4b6bd5=this[_0x1b38a9(0x29e)][_0x1b38a9(0x32b)]([_0x4e1e39],[this['_awaitingChangeset']],!0x1);if(_0xf29ce7[_0x1b38a9(0x56c)](_0x4b6bd5)){const {c1Prime:_0x19c3ad,c2Prime:_0x11a690}=_0x4b6bd5;this[_0x1b38a9(0x323)](_0x19c3ad[0x0]),_0x11a690[0x0][_0x1b38a9(0x1e1)]=this['_getCurrentRevision']();const _0x3462ce=this[_0x1b38a9(0x4cd)][_0x1b38a9(0x281)](_0x248727,this[_0x1b38a9(0x3d4)],this[_0x1b38a9(0x4f1)],_0x11a690[0x0],this[_0x1b38a9(0x1a1)]);return _0x3462ce['_updateLocalCache'](),_0x3462ce;}return this[_0x1b38a9(0x578)](!0x1);}catch(_0xf0a500){return this[_0x1b38a9(0x26b)][_0x1b38a9(0x3e4)](_0xf0a500),this[_0x1b38a9(0x578)](!0x1);}}[_0x2b1dc8(0x53c)](_0x117364){const _0x59abc9=_0x2b1dc8,_0x529f62=this[_0x59abc9(0x300)][_0x59abc9(0x1ee)](this[_0x59abc9(0x3d4)]);if(_0x117364[_0x59abc9(0x1e2)]<_0x529f62-0x1)return this;if(this[_0x59abc9(0x485)](_0x117364))return this['_injector'][_0x59abc9(0x281)](_0x1ca0b2,this['unitID'],this['type'],null,[],this[_0x59abc9(0x4cc)],[],this[_0x59abc9(0x1a1)]);this['_incrementRevisionNumber']();const _0x2f25ee=this[_0x59abc9(0x4cd)][_0x59abc9(0x281)](_0x26314f,this['unitID'],this[_0x59abc9(0x4f1)],this[_0x59abc9(0x1a1)]);return _0x2f25ee[_0x59abc9(0x205)](),_0x2f25ee;}[_0x2b1dc8(0x2a0)](_0x21495d){const _0x351523=_0x2b1dc8;return this[_0x351523(0x578)](!!(_0x21495d!=null&&_0x21495d[_0x351523(0x4c2)]));}[_0x2b1dc8(0x529)](){const _0x4e7334=_0x2b1dc8;return this['_injector'][_0x4e7334(0x281)](_0x4421df,this[_0x4e7334(0x3d4)],this['type'],this['_awaitingChangeset'],[],this[_0x4e7334(0x1a1)]);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x274)](){const _0xa33a9d=_0x2b1dc8;this[_0xa33a9d(0x1a1)][_0xa33a9d(0x50e)](this[_0xa33a9d(0x4cc)]);}[_0x2b1dc8(0x578)](_0x16113e){const _0x2b23ff=_0x2b1dc8;return this['_injector'][_0x2b23ff(0x281)](_0x4d2dc0,this['unitID'],this[_0x2b23ff(0x4f1)],this['_awaitingChangeset'],[],this['_handler'],_0x16113e);}};_0x248727=_0x1d43bf([_0x396334(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x5,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0x9,_0xf29ce7['ITransformService']),_0x396334(0xa,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x248727);let _0x576a65=class extends _0x80c12c{constructor(_0x130349,_0xe41cd8,_0x32cd96,_0x5dbd04,_0x4d789e,_0x4b817b,_0x36f6b0,_0x225b20,_0x59417e,_0x3dd4e5,_0x35f740,_0x5948d1){const _0x3c0981=_0x2b1dc8;super(_0x130349,_0xe41cd8,_0x32cd96,_0x5dbd04,_0x4d789e,_0x59417e,_0x5948d1,_0x36f6b0,_0x225b20),_0x58b0b3(this,_0x3c0981(0x219),_0x3c0981(0x572)),(this['_injector']=_0x4b817b,this[_0x3c0981(0x26b)]=_0x3dd4e5,this['_transformService']=_0x35f740);}[_0x2b1dc8(0x551)](_0x2b4484){const _0x84bc5b=_0x2b1dc8;return this[_0x84bc5b(0x24c)][_0x84bc5b(0x3fb)](_0x2b4484),this;}['onRemoteChangeset'](_0x1c2a0d){const _0x2a82b0=_0x2b1dc8;if(this[_0x2a82b0(0x485)](_0x1c2a0d))return this[_0x2a82b0(0x4cd)]['createInstance'](_0x1ca0b2,this['unitID'],this[_0x2a82b0(0x4f1)],this['_awaitingChangeset'],this[_0x2a82b0(0x24c)],null,[_0x1c2a0d],this[_0x2a82b0(0x1a1)]);try{const _0x35f157=this[_0x2a82b0(0x29e)]['transformChangesets']([_0x1c2a0d],[this['_awaitingChangeset']],!0x1);if(_0xf29ce7[_0x2a82b0(0x56c)](_0x35f157)){const {c1Prime:_0x38f2b8,c2Prime:_0x468305}=_0x35f157,_0x3b9b15=this[_0x2a82b0(0x29e)][_0x2a82b0(0x5a2)](_0x38f2b8[0x0],this[_0x2a82b0(0x24c)]);if(_0xf29ce7[_0x2a82b0(0x18b)](_0x3b9b15)){const {c1Prime:_0x4fe2eb,m2Prime:_0x1131f8}=_0x3b9b15;return this['_executeRemoteChangeset'](_0x4fe2eb),_0x468305[0x0]['baseRev']=this[_0x2a82b0(0x270)](),this[_0x2a82b0(0x4cd)][_0x2a82b0(0x281)](_0x576a65,this[_0x2a82b0(0x3d4)],this[_0x2a82b0(0x4f1)],_0x468305[0x0],_0x1131f8,this['_handler']);}throw _0x3b9b15[_0x2a82b0(0x3e4)];}throw _0x35f157['error'];}catch(_0x4ab814){return this[_0x2a82b0(0x26b)][_0x2a82b0(0x3e4)](_0x4ab814),this['_onConflict'](!0x1);}}[_0x2b1dc8(0x53c)](_0x2adf10){const _0x282a95=_0x2b1dc8;if(this[_0x282a95(0x485)](_0x2adf10))return this[_0x282a95(0x4cd)]['createInstance'](_0x1ca0b2,this[_0x282a95(0x3d4)],this['type'],null,this[_0x282a95(0x24c)],this[_0x282a95(0x4cc)],[],this[_0x282a95(0x1a1)]);this[_0x282a95(0x3b4)]();const _0x46df6f=this[_0x282a95(0x4cd)]['createInstance'](_0x1e758c,this['unitID'],this[_0x282a95(0x4f1)],this[_0x282a95(0x24c)],this[_0x282a95(0x1a1)]);return _0x46df6f[_0x282a95(0x1ce)](),_0x46df6f[_0x282a95(0x205)](),_0x46df6f;}[_0x2b1dc8(0x2a0)](_0x5eee53){const _0x47b790=_0x2b1dc8;return this[_0x47b790(0x578)](!!(_0x5eee53!=null&&_0x5eee53[_0x47b790(0x4c2)]));}[_0x2b1dc8(0x529)](){const _0x2455ad=_0x2b1dc8;return this[_0x2455ad(0x4cd)][_0x2455ad(0x281)](_0x4421df,this[_0x2455ad(0x3d4)],this[_0x2455ad(0x4f1)],this[_0x2455ad(0x4cc)],this[_0x2455ad(0x24c)],this[_0x2455ad(0x1a1)]);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x274)](){const _0x575bc4=_0x2b1dc8;this[_0x575bc4(0x1a1)][_0x575bc4(0x50e)](this['_awaitingChangeset']);}[_0x2b1dc8(0x578)](_0x31c31d){const _0x2c2b33=_0x2b1dc8;return this['_injector'][_0x2c2b33(0x281)](_0x4d2dc0,this['unitID'],this[_0x2c2b33(0x4f1)],null,this[_0x2c2b33(0x24c)],this[_0x2c2b33(0x1a1)],_0x31c31d);}};_0x576a65=_0x1d43bf([_0x396334(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x6,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0['LocalCacheService'])),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0xa,_0xf29ce7[_0x2b1dc8(0x487)]),_0x396334(0xb,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x576a65);let _0x4d2dc0=class extends _0x80c12c{constructor(_0x137e9c,_0x4f65f5,_0x2920b3,_0x3fa6fb,_0x43616c,_0x272426=!0x1,_0x469a42,_0x2a4f8,_0x57bb8e,_0x318983,_0x265b0f,_0x1898e3,_0x5006df){const _0xfec939=_0x2b1dc8;super(_0x137e9c,_0x4f65f5,_0x2920b3,_0x3fa6fb,_0x43616c,_0x2a4f8,_0x57bb8e,_0x265b0f,_0x318983),_0x58b0b3(this,_0xfec939(0x219),_0xfec939(0x555)),(this['_isPermissionRej']=_0x272426,this[_0xfec939(0x39f)]=_0x469a42,this[_0xfec939(0x2a6)]=_0x1898e3,this[_0xfec939(0x57c)]=_0x5006df,this[_0xfec939(0x4ef)](),this['_clearLocalCache'](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x2b1dc8(0x56e)](){return this;}[_0x2b1dc8(0x53c)](){return this;}[_0x2b1dc8(0x2a0)](){return this;}[_0x2b1dc8(0x529)](){return this;}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x274)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2b1dc8(0x47a)](){const _0x56f383=_0x2b1dc8;this['_localCacheService'][_0x56f383(0x1f4)](this['unitID'],this[_0x56f383(0x4f1)],null,[]);}[_0x2b1dc8(0x4ef)](){const _0x193555=_0x2b1dc8;this[_0x193555(0x326)]?this[_0x193555(0x57c)][_0x193555(0x221)]({'title':this[_0x193555(0x2a6)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':'error','duration':0x0}):this[_0x193555(0x57c)][_0x193555(0x221)]({'title':this[_0x193555(0x2a6)]['t'](_0x193555(0x2c4)),'content':this[_0x193555(0x2a6)]['t']('conflict.content'),'type':_0x193555(0x3e4),'duration':0x0});}[_0x2b1dc8(0x3c0)](){const _0x1f63d6=_0x2b1dc8;this[_0x1f63d6(0x39f)][_0x1f63d6(0x3f4)](new _0x872f07[(_0x1f63d6(0x4e6))](this['unitID'])['id'],!0x1);}};_0x4d2dc0=_0x1d43bf([_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['IPermissionService'])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x2ac)]),_0x396334(0x9,_0x5821d4['Inject'](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0xa,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0xb,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['LocaleService'])),_0x396334(0xc,_0x32b063[_0x2b1dc8(0x401)])],_0x4d2dc0);let _0x4421df=class extends _0x80c12c{constructor(_0x163a0e,_0xd9319,_0x3cedd4,_0x4ae58a,_0x233e72,_0x2b8629,_0x4d71e0,_0x65605c,_0x5c490d,_0x1053d9){const _0x37df31=_0x2b1dc8;super(_0x163a0e,_0xd9319,_0x3cedd4,_0x4ae58a,_0x233e72,_0x5c490d,_0x1053d9,_0x4d71e0,_0x65605c),_0x58b0b3(this,_0x37df31(0x219),_0x37df31(0x23d)),this['_injector']=_0x2b8629;}[_0x2b1dc8(0x551)](_0xa37514){const _0x5e57f4=_0x2b1dc8;return this[_0x5e57f4(0x24c)][_0x5e57f4(0x3fb)](_0xa37514),this['_updateLocalCache'](),this;}[_0x2b1dc8(0x56e)](_0x3b14c2){const _0x2c34dd=_0x2b1dc8;throw new Error(_0x2c34dd(0x32d));}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x2b1dc8(0x2a0)](){const _0x271664=_0x2b1dc8;throw new Error(_0x271664(0x19d));}[_0x2b1dc8(0x529)](){return this;}[_0x2b1dc8(0x534)](){const _0x40690b=_0x2b1dc8,{_injector:_0x364fef,_pendingMutations:_0xd16280,_awaitingChangeset:_0x48a604,unitID:_0x1a033b,_handler:_0x1337fa,type:_0x3c3d25}=this,_0x223c90=_0x2b7a9a(_0x364fef,_0x1a033b,_0x3c3d25,_0x48a604,_0xd16280,_0x1337fa);return _0x223c90 instanceof _0x1e758c?_0x223c90[_0x40690b(0x1ce)]():(_0x223c90 instanceof _0x576a65||_0x223c90 instanceof _0x248727)&&_0x223c90['resend'](),_0x223c90;}[_0x2b1dc8(0x274)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x4421df=_0x1d43bf([_0x396334(0x5,_0x5821d4['Inject'](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x4421df);let _0x1ca0b2=class extends _0x80c12c{constructor(_0x305341,_0x29b9eb,_0xdf1549,_0x5a89de,_0x2a2a36,_0x4c3c78,_0xf5d857,_0x46251b,_0x34c5c9,_0x3d47f6,_0x4febe3,_0x360ac0,_0x183d68,_0x384d58){const _0x29076c=_0x2b1dc8;super(_0x305341,_0x29b9eb,_0xdf1549,_0x5a89de,_0xf5d857,_0x360ac0,_0x183d68,_0x34c5c9,_0x3d47f6),_0x58b0b3(this,_0x29076c(0x219),_0x29076c(0x434)),(this[_0x29076c(0x200)]=_0x2a2a36,this[_0x29076c(0x3c1)]=_0x4c3c78,this[_0x29076c(0x4cd)]=_0x46251b,this['_logService']=_0x4febe3,this[_0x29076c(0x29e)]=_0x384d58);}['onMissedChangesetFetched'](_0x40c4e4){const _0x575a1a=_0x2b1dc8;try{const _0x3baac0=[..._0x40c4e4,...this[_0x575a1a(0x3c1)]],_0x30c276=[this[_0x575a1a(0x4cc)]||this['_acknowledgedAwaitingChangeset']][_0x575a1a(0x565)](_0x57eb98=>!!_0x57eb98);let _0x8e0445,_0x41d735;if(_0x30c276[_0x575a1a(0x3b8)]){const _0x5157a5=this[_0x575a1a(0x29e)]['transformChangesets'](_0x3baac0,_0x30c276,!0x1);if(!_0xf29ce7[_0x575a1a(0x56c)](_0x5157a5))throw _0x5157a5['error'];_0x8e0445=_0x5157a5['c1Prime'],_0x41d735=_0x5157a5['c2Prime'];}else _0x8e0445=_0x3baac0,_0x41d735=[];let _0x589b70=this[_0x575a1a(0x24c)];_0x8e0445[_0x575a1a(0x3bc)](_0x4ac41a=>{const _0x5be0ac=_0x575a1a;let _0x42897d;if(_0x589b70[_0x5be0ac(0x3b8)]){const _0x4f06fb=this['_transformService'][_0x5be0ac(0x5a2)](_0x4ac41a,_0x589b70);if(!_0xf29ce7['isTransformMutationsWithChangesetSuccess'](_0x4f06fb))throw _0x4f06fb[_0x5be0ac(0x3e4)];_0x42897d=_0x4f06fb[_0x5be0ac(0x37c)],_0x589b70=_0x4f06fb['m2Prime'];}else _0x42897d=_0x4ac41a;this['_executeRemoteChangeset'](_0x42897d);}),this['_acknowledgedAwaitingChangeset']&&this[_0x575a1a(0x3b4)](),this['_awaitingChangeset']&&_0x41d735[_0x575a1a(0x3b8)]&&(_0x41d735[0x0][_0x575a1a(0x1e1)]=this['_getCurrentRevision']());let _0x42a8bf;if(this['_awaitingChangeset']&&_0x589b70[_0x575a1a(0x3b8)]!==0x0)_0x42a8bf=this[_0x575a1a(0x4cd)]['createInstance'](_0x576a65,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],_0x41d735[0x0],_0x589b70,this[_0x575a1a(0x1a1)]);else{if(this[_0x575a1a(0x4cc)]&&_0x589b70[_0x575a1a(0x3b8)]===0x0)_0x41d735[0x0]['baseRev']=this[_0x575a1a(0x270)](),_0x42a8bf=this[_0x575a1a(0x4cd)][_0x575a1a(0x281)](_0x248727,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],_0x41d735[0x0],this[_0x575a1a(0x1a1)]);else{if(_0x589b70[_0x575a1a(0x3b8)]!==0x0){const _0x520d07=this[_0x575a1a(0x4cd)][_0x575a1a(0x281)](_0x1e758c,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],_0x589b70,this[_0x575a1a(0x1a1)]);_0x520d07[_0x575a1a(0x1ce)](),_0x42a8bf=_0x520d07;}else _0x42a8bf=this[_0x575a1a(0x4cd)][_0x575a1a(0x281)](_0x26314f,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],this[_0x575a1a(0x1a1)]);}}return _0x42a8bf[_0x575a1a(0x205)](),_0x42a8bf;}catch(_0x4c620b){return this['_logService'][_0x575a1a(0x3e4)](_0x575a1a(0x3e3),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4c620b),this['_injector']['createInstance'](_0x4d2dc0,this[_0x575a1a(0x3d4)],this['type'],this[_0x575a1a(0x4cc)],this['_pendingMutations'],this[_0x575a1a(0x1a1)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2b1dc8(0x551)](_0x219beb){const _0x35c07a=_0x2b1dc8;return this['_pendingMutations'][_0x35c07a(0x3fb)](_0x219beb),this;}['onRemoteChangeset'](_0x189d53){const _0x586044=_0x2b1dc8;return this[_0x586044(0x3c1)][_0x586044(0x3fb)](_0x189d53),this;}[_0x2b1dc8(0x53c)](_0x81a649){const _0x457726=_0x2b1dc8;if(this[_0x457726(0x4cc)])return this['_acknowledgedAwaitingChangeset']=this[_0x457726(0x4cc)],this[_0x457726(0x4cc)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2b1dc8(0x2a0)](_0x123237){const _0x57c0f3=_0x2b1dc8;return this[_0x57c0f3(0x578)](!!(_0x123237!=null&&_0x123237[_0x57c0f3(0x4c2)]));}[_0x2b1dc8(0x529)](){const _0x376ad6=_0x2b1dc8;return this[_0x376ad6(0x4cd)][_0x376ad6(0x281)](_0x4421df,this[_0x376ad6(0x3d4)],this[_0x376ad6(0x4f1)],this[_0x376ad6(0x4cc)],this[_0x376ad6(0x24c)],this['_handler']);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x578)](_0x279fa6){const _0xc266c4=_0x2b1dc8;return this[_0xc266c4(0x4cd)][_0xc266c4(0x281)](_0x4d2dc0,this[_0xc266c4(0x3d4)],this['type'],this[_0xc266c4(0x4cc)],this[_0xc266c4(0x24c)],this['_handler'],_0x279fa6);}};_0x1ca0b2=_0x1d43bf([_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x8,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0xa,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0xb,_0x5821d4['ICommandService']),_0x396334(0xc,_0x5821d4[_0x2b1dc8(0x2ac)]),_0x396334(0xd,_0xf29ce7['ITransformService'])],_0x1ca0b2);function _0x2b7a9a(_0x3fcce4,_0x3ce5da,_0x4b148b,_0x491e4f,_0x3b65e4,_0x506d2b){const _0x1919e1=_0x2b1dc8;return _0x491e4f&&_0x3b65e4[_0x1919e1(0x3b8)]?_0x3fcce4['createInstance'](_0x576a65,_0x3ce5da,_0x4b148b,_0x491e4f,_0x3b65e4,_0x506d2b):_0x491e4f?_0x3fcce4['createInstance'](_0x248727,_0x3ce5da,_0x4b148b,_0x491e4f,_0x506d2b):_0x3b65e4['length']?_0x3fcce4[_0x1919e1(0x281)](_0x1e758c,_0x3ce5da,_0x4b148b,_0x3b65e4,_0x506d2b):_0x3fcce4[_0x1919e1(0x281)](_0x26314f,_0x3ce5da,_0x4b148b,_0x506d2b);}var _0xdf79d2=Object[_0x2b1dc8(0x47b)],_0x538204=Object['getOwnPropertyDescriptor'],_0x4c63cf=(_0x125c7d,_0x569cf3,_0x507de2,_0x4d4dda)=>{for(var _0x149f8d=_0x4d4dda>0x1?void 0x0:_0x4d4dda?_0x538204(_0x569cf3,_0x507de2):_0x569cf3,_0x1549d9=_0x125c7d['length']-0x1,_0x542ed4;_0x1549d9>=0x0;_0x1549d9--)(_0x542ed4=_0x125c7d[_0x1549d9])&&(_0x149f8d=(_0x4d4dda?_0x542ed4(_0x569cf3,_0x507de2,_0x149f8d):_0x542ed4(_0x149f8d))||_0x149f8d);return _0x4d4dda&&_0x149f8d&&_0xdf79d2(_0x569cf3,_0x507de2,_0x149f8d),_0x149f8d;},_0x2f750f=(_0xf324f9,_0x27fa82)=>(_0x9bd275,_0x4ad3b2)=>_0x27fa82(_0x9bd275,_0x4ad3b2,_0xf324f9);_0x2010a0[_0x2b1dc8(0x259)]=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x1b92ee,_0x2b5d0c,_0x33d4a5,_0x5851fd,_0x39dcbf,_0x361ce6,_0x4d639d,_0x1e8699,_0x118bf5,_0x57a96a,_0x51752c,_0x35529e,_0x38d38d){const _0x550a94=_0x2b1dc8;super(),_0x58b0b3(this,_0x550a94(0x22c),new _0x2fad13[(_0x550a94(0x53f))](null)),_0x58b0b3(this,_0x550a94(0x501),this[_0x550a94(0x22c)][_0x550a94(0x1eb)]()),_0x58b0b3(this,_0x550a94(0x271)),_0x58b0b3(this,'_collaborationPaused',!0x1),_0x58b0b3(this,_0x550a94(0x20c),this['state$']['pipe'](_0x2fad13[_0x550a94(0x370)](_0x297ae3=>_0x297ae3?_0x297ae3['status']:_0x109234[_0x550a94(0x400)]),_0x2fad13[_0x550a94(0x1f6)](0x1))),_0x58b0b3(this,'_transitionLocked',!0x1),_0x58b0b3(this,_0x550a94(0x4a2),[]),(this['unitID']=_0x1b92ee,this['session']=_0x2b5d0c,this[_0x550a94(0x46b)]=_0x33d4a5,this[_0x550a94(0x4cd)]=_0x5851fd,this[_0x550a94(0x461)]=_0x39dcbf,this[_0x550a94(0x1a9)]=_0x361ce6,this[_0x550a94(0x2a6)]=_0x4d639d,this['_revisionService']=_0x1e8699,this[_0x550a94(0x26b)]=_0x118bf5,this[_0x550a94(0x4f9)]=_0x57a96a,this[_0x550a94(0x412)]=_0x51752c,this[_0x550a94(0x39f)]=_0x35529e,this[_0x550a94(0x311)]=_0x38d38d);}get[_0x2b1dc8(0x40c)](){const _0x2cdffb=_0x2b1dc8;return this[_0x2cdffb(0x271)];}async[_0x2b1dc8(0x3bd)](){const _0x2f2f62=_0x2b1dc8;if(this[_0x2f2f62(0x40c)])throw new Error(_0x2f2f62(0x31a));await this[_0x2f2f62(0x1dd)]();}[_0x2b1dc8(0x42a)](){const _0x370c79=_0x2b1dc8;return this[_0x370c79(0x268)]=!0x0,_0x5821d4['toDisposable'](()=>{const _0x276f99=_0x370c79;this[_0x276f99(0x268)]=!0x1,this[_0x276f99(0x547)]();});}[_0x2b1dc8(0x413)](_0x46d351){const _0x5517df=_0x2b1dc8;this[_0x5517df(0x271)]=_0x46d351,this['_state$']['next'](_0x46d351);}async['_init'](){const _0x546392=_0x2b1dc8;var _0x266b0a;this[_0x546392(0x413)](await this[_0x546392(0x3bf)]()),this[_0x546392(0x311)]&&((_0x266b0a=this['_singleActiveUnitService'])==null||_0x266b0a[_0x546392(0x35b)](this[_0x546392(0x3d4)]),this[_0x546392(0x470)](this['_singleActiveUnitService'][_0x546392(0x589)](this[_0x546392(0x3d4)])[_0x546392(0x358)](_0x5b3968=>{const _0x17a987=_0x546392;this[_0x17a987(0x26b)]['debug'](_0x17a987(0x308),_0x17a987(0x352),_0x5b3968),_0x5b3968===_0x100820[_0x17a987(0x4de)]?(this[_0x17a987(0x412)][_0x17a987(0x221)]({'content':this[_0x17a987(0x2a6)]['t']('collaboration.single-unit.warning'),'type':_0x2997c5['MessageType'][_0x17a987(0x414)]}),this['_permissionService'][_0x17a987(0x3f4)](new _0x872f07[(_0x17a987(0x4e6))](this[_0x17a987(0x3d4)])['id'],!0x1)):this['_permissionService'][_0x17a987(0x3f4)](new _0x872f07[(_0x17a987(0x4e6))](this[_0x17a987(0x3d4)])['id'],!0x0);})));let _0x345ebd=!0x1;return this['disposeWithMe'](this['session'][_0x546392(0x25e)][_0x546392(0x358)](_0x3926c8=>{const _0x7339cc=_0x546392;_0x3926c8===_0x58e615[_0x7339cc(0x3df)]?this[_0x7339cc(0x419)](_0x345ebd):_0x3926c8===_0x58e615[_0x7339cc(0x400)]&&(_0x345ebd=!0x0,this[_0x7339cc(0x1ac)]());})),this[_0x546392(0x470)](this[_0x546392(0x362)][_0x546392(0x51f)][_0x546392(0x358)](_0x2e4a83=>{const _0x44bc9b=_0x546392;try{switch(_0x2e4a83['eventID']){case _0xf29ce7[_0x44bc9b(0x25c)]['NEW_CHANGESETS']:{this[_0x44bc9b(0x249)](_0xf29ce7[_0x44bc9b(0x4d1)](_0x2e4a83[_0x44bc9b(0x210)]));break;}case _0xf29ce7['CollaborationEvent'][_0x44bc9b(0x296)]:{this[_0x44bc9b(0x1c0)](_0x2e4a83['data']);break;}case _0xf29ce7[_0x44bc9b(0x25c)]['CHANGESET_REJ']:{this[_0x44bc9b(0x520)]();break;}case _0xf29ce7['CollaborationEvent'][_0x44bc9b(0x228)]:{this[_0x44bc9b(0x396)](_0x2e4a83[_0x44bc9b(0x210)][_0x44bc9b(0x438)]['map'](_0x31bb89=>_0xf29ce7[_0x44bc9b(0x4d1)](_0x31bb89)));break;}case _0xf29ce7[_0x44bc9b(0x25c)][_0x44bc9b(0x427)]:this[_0x44bc9b(0x520)]({'isPermissionRej':!0x0});}}catch(_0x340fb0){throw console[_0x44bc9b(0x3e4)](_0x44bc9b(0x287),_0x340fb0),_0x340fb0;}})),this[_0x546392(0x271)];}[_0x2b1dc8(0x442)](){const _0x458b50=_0x2b1dc8;this[_0x458b50(0x507)]=!0x1;}[_0x2b1dc8(0x42b)](){const _0x280b94=_0x2b1dc8;if(this[_0x280b94(0x507)])throw new Error(_0x280b94(0x3d5));this[_0x280b94(0x507)]=!0x0;}[_0x2b1dc8(0x19e)](_0xfff50){const _0x50b704=_0x2b1dc8;this['_lockTransition'](),this[_0x50b704(0x413)](this[_0x50b704(0x271)][_0x50b704(0x551)](_0xfff50)),this['_unlockTransition']();}[_0x2b1dc8(0x249)](_0x358ffd){const _0x272d82=_0x2b1dc8;if(!(_0x358ffd[_0x272d82(0x1e2)]<=this[_0x272d82(0x300)][_0x272d82(0x1ee)](this[_0x272d82(0x3d4)]))){if(this[_0x272d82(0x268)]){this['_remoteChangesetQueue'][_0x272d82(0x3fb)](_0x358ffd);return;}this[_0x272d82(0x47c)](_0x358ffd);}}[_0x2b1dc8(0x547)](){const _0x4a0899=_0x2b1dc8;this[_0x4a0899(0x4a2)]['forEach'](_0x3c2e3f=>this['_applyRemoteChangeset'](_0x3c2e3f)),this[_0x4a0899(0x4a2)]=[];}[_0x2b1dc8(0x47c)](_0xe40999){const _0x32fc61=_0x2b1dc8,_0x2b1068=this[_0x32fc61(0x1a9)][_0x32fc61(0x232)][_0x32fc61(0x48e)](this[_0x32fc61(0x1a9)]['interceptor'][_0x32fc61(0x343)]()[_0x32fc61(0x32c)])(_0xe40999['mutations'],null)||_0xe40999[_0x32fc61(0x29c)],_0x30e907={..._0xe40999,'mutations':_0x2b1068};this[_0x32fc61(0x42b)](),this[_0x32fc61(0x413)](this[_0x32fc61(0x271)]['onRemoteChangeset'](_0x30e907)),this[_0x32fc61(0x442)]();}[_0x2b1dc8(0x1c0)](_0x1b1652){const _0x444e1b=_0x2b1dc8;this[_0x444e1b(0x42b)](),this[_0x444e1b(0x413)](this[_0x444e1b(0x271)][_0x444e1b(0x53c)](_0x1b1652)),this[_0x444e1b(0x442)]();}['_onRemoteRejected'](_0x37e477){const _0x2b02be=_0x2b1dc8;this[_0x2b02be(0x42b)](),this[_0x2b02be(0x413)](this[_0x2b02be(0x271)][_0x2b02be(0x2a0)](_0x37e477)),this[_0x2b02be(0x442)]();}[_0x2b1dc8(0x396)](_0x8fd471){const _0x280a4f=_0x2b1dc8;if(!(this['_state']instanceof _0x1ca0b2))throw new TypeError(_0x280a4f(0x411));const _0x33aa4e=_0x8fd471['map'](_0x20cea6=>{const _0x275581=_0x280a4f,_0x1c921f=this[_0x275581(0x1a9)]['interceptor'][_0x275581(0x48e)](this[_0x275581(0x1a9)]['interceptor']['getInterceptPoints']()[_0x275581(0x32c)])(_0x20cea6['mutations'],null)||_0x20cea6[_0x275581(0x29c)];return{..._0x20cea6,'mutations':_0x1c921f};});this[_0x280a4f(0x42b)](),this[_0x280a4f(0x413)](this[_0x280a4f(0x271)][_0x280a4f(0x3fe)](_0x33aa4e)),this['_unlockTransition']();}[_0x2b1dc8(0x1ac)](){const _0x4c85f0=_0x2b1dc8;this[_0x4c85f0(0x42b)](),this[_0x4c85f0(0x413)](this[_0x4c85f0(0x271)][_0x4c85f0(0x529)]()),this['_unlockTransition']();}['_toggleOnline'](_0xa05df6=!0x1){const _0x16224b=_0x2b1dc8;this[_0x16224b(0x42b)](),this[_0x16224b(0x413)](this[_0x16224b(0x271)][_0x16224b(0x534)]()),this['_unlockTransition']();const _0x577506=this[_0x16224b(0x271)];_0xa05df6&&_0x577506 instanceof _0x26314f&&(this[_0x16224b(0x42b)](),this[_0x16224b(0x413)](_0x577506[_0x16224b(0x432)]()),this[_0x16224b(0x442)]());}async[_0x2b1dc8(0x3bf)](){return new Promise(_0x1c1307=>{const _0x4f0c75=_0x5448;this[_0x4f0c75(0x362)][_0x4f0c75(0x25e)][_0x4f0c75(0x378)](_0x2fad13[_0x4f0c75(0x257)](0x1))[_0x4f0c75(0x358)](async _0x588c80=>{const _0x9dbc31=_0x4f0c75;_0x1c1307(await this[_0x9dbc31(0x592)](_0x588c80===_0x58e615['ONLINE']));});});}['_createHandler'](){const _0x5edc7b=this['unitID'];return{'onStateChange':(_0x12c441,_0x15391d)=>{const _0x3ffefa=_0x5448;if(_0x12c441!==this[_0x3ffefa(0x271)])throw new Error(_0x3ffefa(0x3e6)+_0x12c441['status']+_0x3ffefa(0x35d)+_0x15391d[_0x3ffefa(0x219)]+_0x3ffefa(0x4ff)+this['_state'][_0x3ffefa(0x219)]);this[_0x3ffefa(0x413)](_0x15391d);},'onSendChangeset':_0xdc1d6b=>{const _0x24967d=_0x5448,_0x282520={'eventID':_0xf29ce7[_0x24967d(0x25c)][_0x24967d(0x475)],'data':{'unitID':_0xdc1d6b[_0x24967d(0x3d4)],'unitType':this[_0x24967d(0x46b)],'changeset':_0xdc1d6b,'memberID':this[_0x24967d(0x362)][_0x24967d(0x58d)]()}};this['session']['send'](_0x282520,this['unitID']);},'onMissingChangesets':({from:_0x2cd089,to:_0x20672b})=>{const _0x3ac4b5=_0x5448;this[_0x3ac4b5(0x26b)][_0x3ac4b5(0x1dc)]('[CollaborationEntity]',_0x3ac4b5(0x514)+_0x2cd089+_0x3ac4b5(0x52a)+_0x20672b);const _0x10519b={'eventID':_0xf29ce7['CollaborationEvent'][_0x3ac4b5(0x3f2)],'data':{'unitID':_0x5edc7b,'unitType':this[_0x3ac4b5(0x46b)],'from':_0x2cd089,'to':_0x20672b}};this[_0x3ac4b5(0x362)][_0x3ac4b5(0x1d5)](_0x10519b,this['unitID']);}};}async[_0x2b1dc8(0x592)](_0x56358b){const _0x23a254=_0x2b1dc8;var _0x90ad58,_0x26f8d1;const _0x42bcf6=await this['_localCacheService'][_0x23a254(0x307)](this[_0x23a254(0x3d4)]),_0xd08c92=(_0x90ad58=_0x42bcf6==null?void 0x0:_0x42bcf6[_0x23a254(0x29c)])!=null?_0x90ad58:[],_0x614919=(_0x26f8d1=_0x42bcf6==null?void 0x0:_0x42bcf6[_0x23a254(0x48f)])!=null?_0x26f8d1:null,_0xc0f380=this[_0x23a254(0x3d4)];try{this['_replayCachedMutations'](_0x614919,_0xd08c92);}catch(_0x300398){this['_logService'][_0x23a254(0x3e4)](_0x300398);}const _0x5bceda=this['_createHandler']();if(_0x56358b){const _0x416cc2=_0x2b7a9a(this['_injector'],_0xc0f380,this[_0x23a254(0x46b)],_0x614919,_0xd08c92,_0x5bceda);return _0x416cc2 instanceof _0x1e758c?_0x416cc2[_0x23a254(0x1ce)]():(_0x416cc2 instanceof _0x576a65||_0x416cc2 instanceof _0x248727)&&_0x416cc2[_0x23a254(0x274)](),_0x416cc2;}return this[_0x23a254(0x4cd)][_0x23a254(0x281)](_0x4421df,_0xc0f380,this[_0x23a254(0x46b)],_0x614919,_0xd08c92,_0x5bceda);}[_0x2b1dc8(0x4ba)](_0x14a2d3,_0x57ccf4){const _0x1db588=_0x2b1dc8;var _0x268d6a,_0x111c5d;const _0x41c014=this['_compressMutationService'][_0x1db588(0x232)][_0x1db588(0x48e)](this[_0x1db588(0x1a9)][_0x1db588(0x232)][_0x1db588(0x343)]()['COMPRESS_MUTATION_APPLY']);(_0x268d6a=_0x41c014((_0x14a2d3==null?void 0x0:_0x14a2d3['mutations'])||[],null))==null||_0x268d6a[_0x1db588(0x3bc)](_0x150340=>this['_commandService'][_0x1db588(0x2a8)](_0x150340['id'],_0x150340['params'])),(_0x111c5d=_0x41c014(_0x57ccf4||[],null))==null||_0x111c5d[_0x1db588(0x3bc)](_0x30db5f=>this['_commandService'][_0x1db588(0x2a8)](_0x30db5f['id'],_0x30db5f[_0x1db588(0x3ef)]));}},_0x2010a0[_0x2b1dc8(0x259)]=_0x4c63cf([_0x2f750f(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x2f750f(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x2f750f(0x5,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x449)])),_0x2f750f(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x2f750f(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x253)])),_0x2f750f(0x8,_0x5821d4['ILogService']),_0x2f750f(0x9,_0x5821d4['ICommandService']),_0x2f750f(0xa,_0x32b063['IMessageService']),_0x2f750f(0xb,_0x5821d4[_0x2b1dc8(0x312)]),_0x2f750f(0xc,_0x5821d4['Optional'](_0x4442df))],_0x2010a0[_0x2b1dc8(0x259)]),_0x2010a0[_0x2b1dc8(0x194)]=class extends _0x2010a0['CollaborationEntity']{constructor(_0x386351,_0x2ab738,_0x2f30a2,_0x99f746,_0x3b1a15,_0x1868f4,_0x24b5e8,_0x7aedc,_0x297186,_0x3f29ee,_0x26f8ae,_0xaf8ec4,_0x546e49,_0x15ffaf,_0x36da34,_0x2aa7dc,_0x5eebae){const _0x1cf08e=_0x2b1dc8;super(_0x386351,_0x2f30a2,_0x2ab738,_0x99f746,_0x3b1a15,_0x1868f4,_0x24b5e8,_0x7aedc,_0x546e49,_0x15ffaf,_0x36da34,_0x2aa7dc,_0x5eebae),this[_0x1cf08e(0x3d4)]=_0x386351,this['type']=_0x2ab738,this[_0x1cf08e(0x262)]=_0x297186,this[_0x1cf08e(0x5b6)]=_0x3f29ee,this[_0x1cf08e(0x4ee)]=_0x26f8ae,this[_0x1cf08e(0x3a1)]=_0xaf8ec4;}['_createHandler'](){const _0x3175c1=_0x2b1dc8,_0x3a863f=super[_0x3175c1(0x425)]();return _0x3a863f[_0x3175c1(0x3e1)]=_0x5dbb87=>this[_0x3175c1(0x5b6)][_0x3175c1(0x51b)](_0x5dbb87),_0x3a863f['onTransformSelections']=_0x531c84=>this[_0x3175c1(0x4ee)]['transformSelections'](_0x531c84),_0x3a863f[_0x3175c1(0x553)]=_0x5936d0=>this['_docSyncEditingCollabCursorService'][_0x3175c1(0x392)](_0x5936d0),_0x3a863f[_0x3175c1(0x583)]=_0x32767e=>this[_0x3175c1(0x5b6)][_0x3175c1(0x381)](_0x32767e),_0x3a863f;}async[_0x2b1dc8(0x1dd)](){const _0x13ae49=_0x2b1dc8,_0x280c4e=await super[_0x13ae49(0x1dd)]();return this[_0x13ae49(0x470)](this[_0x13ae49(0x4f9)][_0x13ae49(0x44d)]((_0x39c486,_0x7302ba)=>{const _0x13dd3d=_0x13ae49;if(_0x39c486['type']!==_0x5821d4[_0x13dd3d(0x334)][_0x13dd3d(0x544)]||_0x7302ba!=null&&_0x7302ba[_0x13dd3d(0x247)]||_0x7302ba!=null&&_0x7302ba[_0x13dd3d(0x45a)])return;const _0x29dd76=_0x39c486[_0x13dd3d(0x3ef)];if((_0x29dd76==null?void 0x0:_0x29dd76[_0x13dd3d(0x3af)])!==this[_0x13dd3d(0x3d4)])return;let _0x12d4d6=_0x39c486;if(_0x12d4d6['id']===_0xc13db5['RichTextEditingMutation']['id']){const _0xd3b0e6=_0x12d4d6['params'];_0x12d4d6={'id':_0xc13db5[_0x13dd3d(0x483)]['id'],'type':_0x5821d4[_0x13dd3d(0x334)][_0x13dd3d(0x544)],'params':{'unitId':_0xd3b0e6[_0x13dd3d(0x3af)],'actions':_0xd3b0e6[_0x13dd3d(0x493)],'textRanges':null}};}const _0x54dbdd=this[_0x13dd3d(0x1a9)][_0x13dd3d(0x232)][_0x13dd3d(0x48e)](this[_0x13dd3d(0x1a9)]['interceptor'][_0x13dd3d(0x343)]()['COMPRESS_MUTATION_SEND'])([_0x12d4d6],null)||[_0x12d4d6];this[_0x13dd3d(0x19e)](_0x54dbdd[0x0]);})),_0x280c4e;}},_0x2010a0[_0x2b1dc8(0x194)]=_0x4c63cf([_0x2f750f(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x2f750f(0x4,_0x5821d4['Inject'](_0x2010a0[_0x2b1dc8(0x222)])),_0x2f750f(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x449)])),_0x2f750f(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x2f750f(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7['RevisionService'])),_0x2f750f(0x8,_0x5821d4[_0x2b1dc8(0x503)](_0x1123f9[_0x2b1dc8(0x376)])),_0x2f750f(0x9,_0x5821d4[_0x2b1dc8(0x503)](_0x203e1e)),_0x2f750f(0xa,_0x5821d4[_0x2b1dc8(0x503)](_0x493ead)),_0x2f750f(0xb,_0x5821d4[_0x2b1dc8(0x503)](_0x4ce206)),_0x2f750f(0xc,_0x5821d4[_0x2b1dc8(0x468)]),_0x2f750f(0xd,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x2f750f(0xe,_0x32b063[_0x2b1dc8(0x28a)]),_0x2f750f(0xf,_0x5821d4[_0x2b1dc8(0x312)]),_0x2f750f(0x10,_0x5821d4[_0x2b1dc8(0x264)](_0x4442df))],_0x2010a0[_0x2b1dc8(0x194)]),_0x2010a0['SheetCollaborationEntity']=class extends _0x2010a0[_0x2b1dc8(0x259)]{constructor(_0x25f146,_0x13fdd2,_0x2e5890,_0x54e259,_0x20564b,_0x11c87d,_0x4e3ae8,_0x31470c,_0x125a19,_0x22239a,_0x5d8d23,_0xb12989,_0x22425c,_0x2d0c94){const _0x5adce7=_0x2b1dc8;super(_0x25f146,_0x2e5890,_0x13fdd2,_0x54e259,_0x20564b,_0x11c87d,_0x4e3ae8,_0x31470c,_0x22239a,_0x5d8d23,_0xb12989,_0x22425c,_0x2d0c94),this[_0x5adce7(0x3d4)]=_0x25f146,this[_0x5adce7(0x4f1)]=_0x13fdd2,this[_0x5adce7(0x3f8)]=_0x125a19;}[_0x2b1dc8(0x425)](){const _0x5ab740=_0x2b1dc8,_0x5c055e=super['_createHandler']();return _0x5c055e[_0x5ab740(0x359)]=_0x1c51fc=>this[_0x5ab740(0x3f8)][_0x5ab740(0x5a5)](_0x1c51fc),_0x5c055e;}async['_init'](){const _0x3cc8e=_0x2b1dc8,_0x5e56b4=await super[_0x3cc8e(0x1dd)]();return this[_0x3cc8e(0x470)](this[_0x3cc8e(0x4f9)][_0x3cc8e(0x44d)]((_0x1bc973,_0x32c9bb)=>{const _0x23c5f5=_0x3cc8e;if(_0x1bc973[_0x23c5f5(0x4f1)]!==_0x5821d4[_0x23c5f5(0x334)][_0x23c5f5(0x544)]||_0x32c9bb!=null&&_0x32c9bb[_0x23c5f5(0x247)]||_0x32c9bb!=null&&_0x32c9bb[_0x23c5f5(0x45a)])return;const _0x52070=_0x1bc973[_0x23c5f5(0x3ef)];if((_0x52070==null?void 0x0:_0x52070[_0x23c5f5(0x3af)])!==this[_0x23c5f5(0x3d4)])return;const _0x37cbf1=_0x1bc973,_0x2c10f0=this['_compressMutationService'][_0x23c5f5(0x232)][_0x23c5f5(0x48e)](this[_0x23c5f5(0x1a9)]['interceptor'][_0x23c5f5(0x343)]()[_0x23c5f5(0x51d)])([_0x37cbf1],null)||[_0x37cbf1];this[_0x23c5f5(0x19e)](_0x2c10f0[0x0]);})),_0x5e56b4;}},_0x2010a0[_0x2b1dc8(0x467)]=_0x4c63cf([_0x2f750f(0x3,_0x5821d4['Inject'](_0x5821d4[_0x2b1dc8(0x291)])),_0x2f750f(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x2f750f(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x449)])),_0x2f750f(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x2f750f(0x7,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x2f750f(0x8,_0x5821d4[_0x2b1dc8(0x503)](_0x22d44e)),_0x2f750f(0x9,_0x5821d4[_0x2b1dc8(0x468)]),_0x2f750f(0xa,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x2f750f(0xb,_0x32b063[_0x2b1dc8(0x28a)]),_0x2f750f(0xc,_0x5821d4[_0x2b1dc8(0x312)]),_0x2f750f(0xd,_0x5821d4['Optional'](_0x4442df))],_0x2010a0[_0x2b1dc8(0x467)]);var _0x29c097=Object[_0x2b1dc8(0x47b)],_0x2beca1=Object['getOwnPropertyDescriptor'],_0x1f670f=(_0x5f22b0,_0x3c54e4,_0x3881f5,_0x5d635e)=>{const _0x2727e4=_0x2b1dc8;for(var _0x233ab2=_0x5d635e>0x1?void 0x0:_0x5d635e?_0x2beca1(_0x3c54e4,_0x3881f5):_0x3c54e4,_0x432baf=_0x5f22b0[_0x2727e4(0x3b8)]-0x1,_0x3958b4;_0x432baf>=0x0;_0x432baf--)(_0x3958b4=_0x5f22b0[_0x432baf])&&(_0x233ab2=(_0x5d635e?_0x3958b4(_0x3c54e4,_0x3881f5,_0x233ab2):_0x3958b4(_0x233ab2))||_0x233ab2);return _0x5d635e&&_0x233ab2&&_0x29c097(_0x3c54e4,_0x3881f5,_0x233ab2),_0x233ab2;},_0x55a6b6=(_0x48fd07,_0x3d10af)=>(_0x699525,_0x12fd2b)=>_0x3d10af(_0x699525,_0x12fd2b,_0x48fd07);_0x2010a0[_0x2b1dc8(0x1f8)]=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x41c2c1,_0x32684d,_0x830468){const _0x39bb81=_0x2b1dc8;super(),_0x58b0b3(this,'_entities',new Map()),_0x58b0b3(this,_0x39bb81(0x59f),new _0x2fad13['Subject']()),(this[_0x39bb81(0x4cd)]=_0x41c2c1,this[_0x39bb81(0x1e3)]=_0x32684d,this['_univerInstanceService']=_0x830468,this[_0x39bb81(0x1dd)]());}['dispose'](){const _0x285174=_0x2b1dc8;super[_0x285174(0x3a8)](),this['_entities'][_0x285174(0x3bc)](_0x38837f=>_0x38837f[_0x285174(0x3a8)]()),this['_entities'][_0x285174(0x4ec)]();}[_0x2b1dc8(0x37a)](_0x23a5e6){const _0x1e23c9=_0x2b1dc8;var _0xa9fa22;return(_0xa9fa22=this[_0x1e23c9(0x3d6)]['get'](_0x23a5e6))!=null?_0xa9fa22:null;}[_0x2b1dc8(0x44b)](_0x5f18a7){const _0x369ede=_0x2b1dc8,_0x109497=this[_0x369ede(0x37a)](_0x5f18a7);return _0x109497?_0x2fad13['of'](_0x109497):this[_0x369ede(0x59f)][_0x369ede(0x378)](_0xbf2513['filter'](_0x3d0523=>_0x3d0523[_0x369ede(0x3d4)]===_0x5f18a7));}['_init'](){const _0x5d30be=_0x2b1dc8;this[_0x5d30be(0x267)][_0x5d30be(0x34c)](_0x5821d4['UniverInstanceType'][_0x5d30be(0x3f1)])['pipe'](_0x2fad13[_0x5d30be(0x1de)](this[_0x5d30be(0x557)]),_0xbf2513['delay'](0x10))[_0x5d30be(0x358)](async _0x2492b8=>{const _0x17a1bf=_0x5d30be,_0x31b6c2=_0x2492b8[_0x17a1bf(0x28e)](),_0x2cae3e=await this['_startCollaboration'](_0x31b6c2,_0x25ecad['UNIVER_SHEET']);this['_entities'][_0x17a1bf(0x305)](_0x31b6c2,_0x2cae3e);}),this[_0x5d30be(0x267)][_0x5d30be(0x34c)](_0x5821d4['UniverInstanceType'][_0x5d30be(0x202)])[_0x5d30be(0x378)](_0x2fad13[_0x5d30be(0x1de)](this[_0x5d30be(0x557)]),_0xbf2513[_0x5d30be(0x3dd)](0x10))['pipe'](_0xbf2513['filter'](_0x2e1d3d=>!_0x2e1d3d[_0x5d30be(0x28e)]()[_0x5d30be(0x2aa)]('__')))[_0x5d30be(0x358)](async _0x5b13f1=>{const _0x32411b=_0x5d30be,_0x482086=_0x5b13f1[_0x32411b(0x28e)](),_0x2d9ad3=await this[_0x32411b(0x30c)](_0x482086,_0x25ecad['UNIVER_DOC']);this['_entities'][_0x32411b(0x305)](_0x482086,_0x2d9ad3);}),_0x2fad13['merge'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5821d4[_0x5d30be(0x566)][_0x5d30be(0x3f1)]),this['_univerInstanceService'][_0x5d30be(0x366)](_0x5821d4[_0x5d30be(0x566)][_0x5d30be(0x202)]))[_0x5d30be(0x378)](_0x2fad13[_0x5d30be(0x1de)](this['dispose$']))['subscribe'](_0x15a97b=>{const _0xf63c3f=_0x5d30be,_0x353b95=_0x15a97b[_0xf63c3f(0x28e)](),_0x50c9e7=this[_0xf63c3f(0x3d6)][_0xf63c3f(0x37f)](_0x353b95);_0x50c9e7&&(_0x50c9e7[_0xf63c3f(0x3a8)](),this['_entities'][_0xf63c3f(0x189)](_0x353b95));});}async[_0x2b1dc8(0x30c)](_0x16ad3a,_0x577314){const _0x1727dd=_0x2b1dc8,_0x4eee5d=await this[_0x1727dd(0x1e3)]['requireSession'](_0x16ad3a),_0x46ea74=this[_0x1727dd(0x4cd)][_0x1727dd(0x281)](this[_0x1727dd(0x4a9)](_0x577314),_0x16ad3a,_0x577314,_0x4eee5d);return await _0x46ea74[_0x1727dd(0x3bd)](),this['_entityInit$'][_0x1727dd(0x522)](_0x46ea74),_0x46ea74;}['_getCtorByUniverType'](_0x41beba){const _0x2d613f=_0x2b1dc8;switch(_0x41beba){case _0x25ecad['UNIVER_DOC']:return _0x2010a0[_0x2d613f(0x194)];case _0x25ecad[_0x2d613f(0x3f1)]:return _0x2010a0['SheetCollaborationEntity'];default:throw new Error(_0x2d613f(0x301)+_0x41beba);}}},_0x2010a0['CollaborationController']=_0x1f670f([_0x55a6b6(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x55a6b6(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x272)])),_0x55a6b6(0x2,_0x5821d4['IUniverInstanceService'])],_0x2010a0[_0x2b1dc8(0x1f8)]);const _0x279b8f=['purple300','jiqing500','verdancy600',_0x2b1dc8(0x255),_0x2b1dc8(0x240),'gold400'];class _0x38f88a extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(){const _0x16944b=_0x2b1dc8;super(...arguments),_0x58b0b3(this,_0x16944b(0x53b),new Map()),_0x58b0b3(this,_0x16944b(0x31c),0x0);}[_0x2b1dc8(0x1d7)](_0x117c71){const _0x6b7254=_0x2b1dc8;if(this['_assignedColors'][_0x6b7254(0x532)](_0x117c71))return this[_0x6b7254(0x53b)][_0x6b7254(0x37f)](_0x117c71);const _0xf26a5a=_0x279b8f[this[_0x6b7254(0x31c)]];return this[_0x6b7254(0x31c)]=(this['_colorIndex']+0x1)%_0x279b8f['length'],this['_assignedColors'][_0x6b7254(0x305)](_0x117c71,_0xf26a5a),_0xf26a5a;}}var _0x2cf266=Object['defineProperty'],_0xdec0d4=Object['getOwnPropertyDescriptor'],_0x19ae0f=(_0x241544,_0x1a64cd,_0x38a206,_0x218a8c)=>{for(var _0xe1bebb=_0x218a8c>0x1?void 0x0:_0x218a8c?_0xdec0d4(_0x1a64cd,_0x38a206):_0x1a64cd,_0x3c8172=_0x241544['length']-0x1,_0x153c49;_0x3c8172>=0x0;_0x3c8172--)(_0x153c49=_0x241544[_0x3c8172])&&(_0xe1bebb=(_0x218a8c?_0x153c49(_0x1a64cd,_0x38a206,_0xe1bebb):_0x153c49(_0xe1bebb))||_0xe1bebb);return _0x218a8c&&_0xe1bebb&&_0x2cf266(_0x1a64cd,_0x38a206,_0xe1bebb),_0xe1bebb;},_0x240408=(_0x467515,_0x316103)=>(_0x428244,_0x49ea44)=>_0x316103(_0x428244,_0x49ea44,_0x467515);const _0x3238d6=0x12c,_0x30e498=0x64,_0x4bddf8=()=>{let _0x34dc43=[],_0x3fdc97=!0x1;return _0x44664a=>{const _0x1c4a2a=_0x5448;_0x34dc43[_0x1c4a2a(0x3fb)](_0x44664a),_0x3fdc97||(_0x3fdc97=!0x0,setTimeout(()=>{_0x34dc43['forEach'](_0x4a2ebb=>_0x4a2ebb()),_0x34dc43=[],_0x3fdc97=!0x1;}));};};let _0x5b5ed2=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x40c63a,_0xefe44b,_0x5ae84,_0x28dfed,_0x515076,_0x8a0e2a,_0x34400c,_0xdfbc6d){const _0x2487ec=_0x2b1dc8;super(),_0x58b0b3(this,'_online',!0x1),_0x58b0b3(this,_0x2487ec(0x1dd),!0x1),_0x58b0b3(this,'_cursorInfo$',new _0x2fad13[(_0x2487ec(0x53f))](new Map())),_0x58b0b3(this,_0x2487ec(0x36d),this[_0x2487ec(0x350)][_0x2487ec(0x1eb)]()),_0x58b0b3(this,'_roomMembers$',new _0x2fad13[(_0x2487ec(0x53f))]([])),_0x58b0b3(this,_0x2487ec(0x4d5),this[_0x2487ec(0x24b)]['pipe'](_0x2fad13[_0x2487ec(0x2f7)](_0x3238d6))),_0x58b0b3(this,_0x2487ec(0x560),_0x5821d4[_0x2487ec(0x1fb)]((_0x197dbe,_0x4644d4)=>{const _0x5c7ebd=_0x2487ec,_0x53e25d={'eventID':_0xf29ce7[_0x5c7ebd(0x25c)][_0x5c7ebd(0x37e)],'data':{'unitID':this[_0x5c7ebd(0x3d4)],'memberID':this[_0x5c7ebd(0x433)][_0x5c7ebd(0x58d)](),'selection':_0x5c27f4[_0x5c7ebd(0x2a5)](_0x197dbe,_0x4644d4[_0x5c7ebd(0x2cd)])}};this[_0x5c7ebd(0x433)][_0x5c7ebd(0x1d5)](_0x53e25d,this[_0x5c7ebd(0x3d4)]);},_0x30e498)),(this[_0x2487ec(0x3d4)]=_0x40c63a,this[_0x2487ec(0x433)]=_0xefe44b,this[_0x2487ec(0x4cd)]=_0x5ae84,this['_colorAssignService']=_0x28dfed,this[_0x2487ec(0x293)]=_0x515076,this[_0x2487ec(0x267)]=_0x8a0e2a,this[_0x2487ec(0x4f9)]=_0x34400c,this[_0x2487ec(0x24a)]=_0xdfbc6d);}get[_0x2b1dc8(0x4b0)](){const _0x5bf783=_0x2b1dc8;return this[_0x5bf783(0x350)][_0x5bf783(0x244)]();}get['roomMembers'](){const _0x1894f1=_0x2b1dc8;return this[_0x1894f1(0x24b)][_0x1894f1(0x244)]();}['dispose'](){const _0x36778a=_0x2b1dc8;super[_0x36778a(0x3a8)](),this[_0x36778a(0x350)]['next'](new Map()),this[_0x36778a(0x350)][_0x36778a(0x424)](),this[_0x36778a(0x24b)][_0x36778a(0x522)]([]),this[_0x36778a(0x24b)][_0x36778a(0x424)]();}['init'](){const _0x152b47=_0x2b1dc8;this[_0x152b47(0x1dd)]||(this[_0x152b47(0x1dd)]=!0x0,this[_0x152b47(0x433)][_0x152b47(0x25e)]['pipe'](_0x2fad13[_0x152b47(0x1de)](this['dispose$']))['subscribe'](_0x1dd843=>{const _0x4f20bf=_0x152b47;_0x1dd843===_0x58e615[_0x4f20bf(0x3df)]?this[_0x4f20bf(0x419)]():this[_0x4f20bf(0x1ac)]();}),this[_0x152b47(0x433)][_0x152b47(0x51f)][_0x152b47(0x378)](_0x2fad13['takeUntil'](this[_0x152b47(0x557)]))['subscribe'](_0x355ec0=>{const _0x4cd51b=_0x152b47,_0xde5ed6=_0x355ec0['eventID'];_0xde5ed6===_0xf29ce7[_0x4cd51b(0x25c)]['UPDATE_CURSOR']&&this[_0x4cd51b(0x550)](_0x355ec0),_0xde5ed6===_0xf29ce7['CollaborationEvent'][_0x4cd51b(0x386)]&&this[_0x4cd51b(0x590)](_0x355ec0);}),this[_0x152b47(0x5af)](),this[_0x152b47(0x470)](this[_0x152b47(0x4f9)][_0x152b47(0x44d)](_0x50ca93=>{const _0x3fad8a=_0x152b47;if(this[_0x3fad8a(0x237)]&&_0x50ca93['id']===_0x872f07['SetSelectionsOperation']['id']&&_0x50ca93[_0x3fad8a(0x3ef)][_0x3fad8a(0x3af)]===this[_0x3fad8a(0x3d4)]){const _0x25c2b4=_0x50ca93['params'];this['_updateLocalCursor'](_0x25c2b4[_0x3fad8a(0x283)],_0x25c2b4[_0x3fad8a(0x3cd)][0x0]);}})));}[_0x2b1dc8(0x550)](_0x246746){const _0x2f86f9=_0x2b1dc8;var _0x53e3e2,_0x247039;const {memberID:_0x40100a,selection:_0x56b774}=_0x246746['data'],{sheetName:_0x4ae0cc,range:_0x45530c}=_0x5c27f4[_0x2f86f9(0x2ef)](_0x56b774),_0x3bbafb={'name':(_0x247039=(_0x53e3e2=this[_0x2f86f9(0x293)]['getMember'](this[_0x2f86f9(0x3d4)],_0x40100a))==null?void 0x0:_0x53e3e2['name'])!=null?_0x247039:_0x2f86f9(0x33d),'range':this[_0x2f86f9(0x1b5)](_0x4ae0cc,_0x45530c),'sheetID':_0x4ae0cc,'color':this[_0x2f86f9(0x4f0)][_0x2f86f9(0x1d7)](_0x40100a),'selection':_0x56b774},_0x3eb2ca=this[_0x2f86f9(0x4b0)];_0x3eb2ca['set'](_0x40100a,_0x3bbafb),this[_0x2f86f9(0x350)][_0x2f86f9(0x522)](_0x3eb2ca);}[_0x2b1dc8(0x590)](_0x2fd459){const _0x27e2e6=_0x2b1dc8,{memberID:_0x40ffd6}=_0x2fd459['data'],_0x2b3f1b=this[_0x27e2e6(0x4b0)];_0x2b3f1b['delete'](_0x40ffd6),this['_cursorInfo$'][_0x27e2e6(0x522)](_0x2b3f1b);}[_0x2b1dc8(0x1b5)](_0x522dd5,_0x2bf8c0){const _0x4893b0=_0x2b1dc8;var _0x4c779c,_0x26f4b6;const _0xe0c139=(_0x26f4b6=(_0x4c779c=this[_0x4893b0(0x267)][_0x4893b0(0x504)](this[_0x4893b0(0x3d4)]))==null?void 0x0:_0x4c779c['getSheetBySheetId'](_0x522dd5))==null?void 0x0:_0x26f4b6[_0x4893b0(0x2dc)]();return(_0xe0c139==null?void 0x0:_0xe0c139['find'](_0x3b7003=>_0x5821d4[_0x4893b0(0x3cc)][_0x4893b0(0x3f7)](_0x3b7003,_0x2bf8c0)))||_0x2bf8c0;}[_0x2b1dc8(0x5af)](){const _0x4c3579=_0x2b1dc8,_0x2f707e=new _0x5821d4['DisposableCollection'](),_0x5a6836=_0x4bddf8(),_0xce0dd7=()=>{const _0x2bea9a=_0x5448;_0x2f707e[_0x2bea9a(0x3a8)]();const _0x3ab056=(_0x346f4f,_0x153180,_0x4ba982,_0x580a37)=>{const _0x414cb3=_0x2bea9a;let _0x4f4375=[];switch(_0x346f4f['id']){case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x2e4)]:{_0x4f4375=_0x872f07[_0x414cb3(0x41d)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x469)]:{_0x4f4375=_0x872f07[_0x414cb3(0x524)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x482)]:{_0x4f4375=_0x872f07[_0x414cb3(0x2df)](_0x346f4f,_0x580a37);break;}case _0x872f07['EffectRefRangId'][_0x414cb3(0x573)]:{_0x4f4375=_0x872f07[_0x414cb3(0x2b0)](_0x346f4f,_0x580a37);break;}case _0x872f07['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x4f4375=_0x872f07['handleInsertRangeMoveRight'](_0x346f4f,_0x580a37);break;}case _0x872f07['EffectRefRangId'][_0x414cb3(0x1f7)]:{_0x4f4375=_0x872f07[_0x414cb3(0x496)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)]['MoveRangeCommandId']:{_0x4f4375=_0x872f07['handleMoveRange'](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x5b4)]:{_0x4f4375=_0x872f07[_0x414cb3(0x1be)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x32a)]:{_0x4f4375=_0x872f07[_0x414cb3(0x303)](_0x346f4f,_0x580a37);break;}}const _0x5c90d7=_0x872f07[_0x414cb3(0x2d2)](_0x4f4375,_0x580a37),_0x5e5dc1=this[_0x414cb3(0x4b0)][_0x414cb3(0x37f)](_0x153180);if(_0x5e5dc1&&_0x5c90d7){const _0x2dca0={..._0x5e5dc1,'range':_0x5c90d7};this[_0x414cb3(0x4b0)][_0x414cb3(0x305)](_0x153180,_0x2dca0),_0x5a6836(()=>{const _0x23e63b=_0x414cb3,_0x10487b=this['_refRangeService']['registerRefRange'](_0x5c90d7,_0x1dc33c=>(_0x10487b[_0x23e63b(0x3a8)](),_0x3ab056(_0x1dc33c,_0x153180,_0x4ba982,_0x5c90d7)));_0x2f707e[_0x23e63b(0x25b)](_0x10487b);});}return{'redos':[],'undos':[]};};this[_0x2bea9a(0x4b0)]['forEach']((_0x2d4aa8,_0x340d0f)=>{const _0x464163=_0x2bea9a,{range:_0x157a99,sheetID:_0x584aba}=_0x2d4aa8,_0x42a3ce=this[_0x464163(0x24a)][_0x464163(0x436)](_0x157a99,_0x5eaa3b=>(_0x42a3ce[_0x464163(0x3a8)](),_0x3ab056(_0x5eaa3b,_0x340d0f,_0x584aba,_0x157a99)));_0x2f707e['add'](_0x42a3ce);});};this[_0x4c3579(0x470)](_0x5821d4[_0x4c3579(0x1ed)](this[_0x4c3579(0x350)]['subscribe'](()=>{_0xce0dd7();})));}[_0x2b1dc8(0x419)](){const _0x2f5982=_0x2b1dc8;var _0x30451f,_0x5b3f30;if(this['_online']=!0x0,((_0x30451f=this[_0x2f5982(0x267)]['getFocusedUnit']())==null?void 0x0:_0x30451f['getUnitId']())!==this[_0x2f5982(0x3d4)])return;const _0x1e6da9=(_0x5b3f30=this[_0x2f5982(0x4cd)]['get'](_0x872f07[_0x2f5982(0x463)])[_0x2f5982(0x506)]())==null?void 0x0:_0x5b3f30[0x0],_0xc9478=this[_0x2f5982(0x267)][_0x2f5982(0x347)](_0x5821d4[_0x2f5982(0x566)][_0x2f5982(0x3f1)])[_0x2f5982(0x5a1)]();_0x1e6da9&&_0xc9478&&this[_0x2f5982(0x560)](_0xc9478[_0x2f5982(0x1c4)](),_0x1e6da9);}['_toggleOffline'](){const _0x40f776=_0x2b1dc8;this[_0x40f776(0x237)]=!0x1;}};_0x5b5ed2=_0x19ae0f([_0x240408(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x240408(0x3,_0x5821d4['Inject'](_0x38f88a)),_0x240408(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x35f626)),_0x240408(0x5,_0x5821d4['IUniverInstanceService']),_0x240408(0x6,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x240408(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x872f07[_0x2b1dc8(0x52d)]))],_0x5b5ed2);var _0x56710a=Object[_0x2b1dc8(0x47b)],_0x17d2ff=Object[_0x2b1dc8(0x299)],_0x356a35=(_0x20b692,_0x10abd2,_0x2773ca,_0x3c1e22)=>{const _0x11eb0a=_0x2b1dc8;for(var _0x23747e=_0x3c1e22>0x1?void 0x0:_0x3c1e22?_0x17d2ff(_0x10abd2,_0x2773ca):_0x10abd2,_0x5c9503=_0x20b692[_0x11eb0a(0x3b8)]-0x1,_0x52538c;_0x5c9503>=0x0;_0x5c9503--)(_0x52538c=_0x20b692[_0x5c9503])&&(_0x23747e=(_0x3c1e22?_0x52538c(_0x10abd2,_0x2773ca,_0x23747e):_0x52538c(_0x23747e))||_0x23747e);return _0x3c1e22&&_0x23747e&&_0x56710a(_0x10abd2,_0x2773ca,_0x23747e),_0x23747e;},_0x4bc69a=(_0x4f59db,_0x38a9ea)=>(_0x11fc2b,_0x23164e)=>_0x38a9ea(_0x11fc2b,_0x23164e,_0x4f59db);const _0x4bd513=0x12c,_0x151b86=0x64;let _0x357ca5=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x4f6d92,_0x4e5197,_0x4f6eda,_0x33ee14,_0x47f15c,_0x36cacd,_0x3b777f,_0x3f1769,_0x23979b){const _0x6153da=_0x2b1dc8;super(),_0x58b0b3(this,_0x6153da(0x237),!0x1),_0x58b0b3(this,_0x6153da(0x1dd),!0x1),_0x58b0b3(this,'_cursorInfo$',new _0x2fad13[(_0x6153da(0x53f))](new Map())),_0x58b0b3(this,_0x6153da(0x36d),this[_0x6153da(0x350)][_0x6153da(0x1eb)]()),_0x58b0b3(this,_0x6153da(0x24b),new _0x2fad13[(_0x6153da(0x53f))]([])),_0x58b0b3(this,'roomMembers$',this['_roomMembers$'][_0x6153da(0x378)](_0x2fad13[_0x6153da(0x2f7)](_0x4bd513))),_0x58b0b3(this,_0x6153da(0x560),_0x5821d4['debounce'](_0x5e50ee=>{const _0x3f2949=_0x6153da,_0x4a2619={'eventID':_0xf29ce7[_0x3f2949(0x25c)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3f2949(0x433)][_0x3f2949(0x58d)](),'selection':_0x2338f2(_0x5e50ee)}};this[_0x3f2949(0x433)][_0x3f2949(0x1d5)](_0x4a2619,this[_0x3f2949(0x3d4)]);},_0x151b86)),(this[_0x6153da(0x3d4)]=_0x4f6d92,this['_session']=_0x4e5197,this['_injector']=_0x4f6eda,this['_colorAssignService']=_0x33ee14,this[_0x6153da(0x293)]=_0x47f15c,this[_0x6153da(0x5ae)]=_0x36cacd,this[_0x6153da(0x29e)]=_0x3b777f,this['_univerInstanceService']=_0x3f1769,this[_0x6153da(0x4f9)]=_0x23979b);}get['cursorInfo'](){const _0x28daa2=_0x2b1dc8;return this['_cursorInfo$'][_0x28daa2(0x244)]();}get[_0x2b1dc8(0x1db)](){const _0xd40881=_0x2b1dc8;return this[_0xd40881(0x24b)]['getValue']();}[_0x2b1dc8(0x3a8)](){const _0x38a631=_0x2b1dc8;super['dispose'](),this[_0x38a631(0x350)][_0x38a631(0x522)](new Map()),this[_0x38a631(0x350)][_0x38a631(0x424)](),this['_roomMembers$'][_0x38a631(0x522)]([]),this[_0x38a631(0x24b)][_0x38a631(0x424)]();}['init'](){const _0x3d127f=_0x2b1dc8;this[_0x3d127f(0x1dd)]||(this[_0x3d127f(0x1dd)]=!0x0,this[_0x3d127f(0x433)][_0x3d127f(0x25e)][_0x3d127f(0x378)](_0x2fad13[_0x3d127f(0x1de)](this['dispose$']))[_0x3d127f(0x358)](_0x375374=>{const _0x3a5418=_0x3d127f;_0x375374===_0x58e615['ONLINE']?this[_0x3a5418(0x419)]():this[_0x3a5418(0x1ac)]();}),this[_0x3d127f(0x433)][_0x3d127f(0x51f)]['pipe'](_0x2fad13[_0x3d127f(0x1de)](this[_0x3d127f(0x557)]))[_0x3d127f(0x358)](_0x1b2aa1=>{const _0x3c60f4=_0x3d127f,_0x4806e7=_0x1b2aa1[_0x3c60f4(0x510)];_0x4806e7===_0xf29ce7[_0x3c60f4(0x25c)][_0x3c60f4(0x37e)]&&this[_0x3c60f4(0x550)](_0x1b2aa1),_0x4806e7===_0xf29ce7[_0x3c60f4(0x25c)][_0x3c60f4(0x386)]&&this[_0x3c60f4(0x590)](_0x1b2aa1);}),this[_0x3d127f(0x470)](this[_0x3d127f(0x4f9)][_0x3d127f(0x44d)](_0x4a116b=>{const _0x4f2408=_0x3d127f,_0x2aa8a3=_0x4a116b['params'];_0x2aa8a3!=null&&this[_0x4f2408(0x237)]&&_0x4a116b['id']===_0xc13db5[_0x4f2408(0x4ac)]['id']&&_0x2aa8a3[_0x4f2408(0x3af)]===this['unitID']&&_0x2aa8a3[_0x4f2408(0x3f0)]===!0x1&&this[_0x4f2408(0x560)](_0x2aa8a3[_0x4f2408(0x3ff)]);})),this[_0x3d127f(0x5ae)][_0x3d127f(0x505)][_0x3d127f(0x378)](_0x2fad13[_0x3d127f(0x1de)](this[_0x3d127f(0x557)]))['subscribe'](_0xf99ea=>{const _0x26d6ce=_0x3d127f;if((_0xf99ea==null?void 0x0:_0xf99ea['unitID'])!==this[_0x26d6ce(0x3d4)])return;const _0x3d28ef={'eventID':_0xf29ce7[_0x26d6ce(0x25c)][_0x26d6ce(0x37e)],'data':_0xf99ea};this[_0x26d6ce(0x550)](_0x3d28ef);}),this['disposeWithMe'](this[_0x3d127f(0x4f9)][_0x3d127f(0x44d)](_0x965dc3=>{const _0x3d3cac=_0x3d127f;if(_0x965dc3[_0x3d3cac(0x3ef)]==null)return;const _0x2f4244=_0x965dc3['params'];if(_0x965dc3['id']!==_0xc13db5[_0x3d3cac(0x483)]['id']||_0x2f4244[_0x3d3cac(0x3af)]!==this[_0x3d3cac(0x3d4)])return;const _0x14dcda={'id':_0x3d3cac(0x55c),'params':_0x2f4244},_0x4a1640=this[_0x3d3cac(0x4b0)];for(const [_0x2fc3bf,_0x3c3701]of _0x4a1640){const _0x983d60={'id':_0x3d3cac(0x55c),'params':{'unitId':this[_0x3d3cac(0x3d4)],'actions':null,'textRanges':_0x3c3701[_0x3d3cac(0x3ff)]}},_0x513f9b=this['_transformService'][_0x3d3cac(0x431)](_0x14dcda,_0x983d60,!0x1);if(_0xf29ce7['isTransformMutationFailure'](_0x513f9b))throw _0x513f9b['error'];_0x4a1640[_0x3d3cac(0x305)](_0x2fc3bf,{..._0x3c3701,'ranges':_0x513f9b[_0x3d3cac(0x1a3)][_0x3d3cac(0x3ef)][_0x3d3cac(0x227)]});}queueMicrotask(()=>{const _0x24f039=_0x3d3cac;this['_cursorInfo$'][_0x24f039(0x522)](_0x4a1640);});})));}['_onCursorUpdate'](_0x520431){const _0x5ddae6=_0x2b1dc8;var _0x51a698,_0x93244f;const {memberID:_0x53da65,selection:_0x274b20}=_0x520431[_0x5ddae6(0x210)],_0x186765=_0x357da9(_0x274b20),_0x127b90=(_0x93244f=(_0x51a698=this['_memberService'][_0x5ddae6(0x1d9)](this[_0x5ddae6(0x3d4)],_0x53da65))==null?void 0x0:_0x51a698[_0x5ddae6(0x593)])!=null?_0x93244f:'Unknown\x20user',_0x399d8f={'color':this[_0x5ddae6(0x4f0)][_0x5ddae6(0x1d7)](_0x53da65),'name':_0x127b90,'ranges':_0x186765},_0x9dc901=this[_0x5ddae6(0x4b0)];_0x9dc901[_0x5ddae6(0x305)](_0x53da65,_0x399d8f),this['_cursorInfo$'][_0x5ddae6(0x522)](_0x9dc901);}[_0x2b1dc8(0x590)](_0x171e75){const _0xf3108c=_0x2b1dc8,{memberID:_0x45cd5f}=_0x171e75[_0xf3108c(0x210)],_0x2ce6a4=this[_0xf3108c(0x4b0)];_0x2ce6a4[_0xf3108c(0x189)](_0x45cd5f),this['_cursorInfo$']['next'](_0x2ce6a4);}[_0x2b1dc8(0x419)](){const _0x5ca56e=_0x2b1dc8;var _0x191dac;if(this[_0x5ca56e(0x237)]=!0x0,((_0x191dac=this[_0x5ca56e(0x267)][_0x5ca56e(0x279)]())==null?void 0x0:_0x191dac[_0x5ca56e(0x28e)]())!==this[_0x5ca56e(0x3d4)])return;const _0x148199=this['_injector'][_0x5ca56e(0x37f)](_0xc13db5['DocSelectionManagerService'])[_0x5ca56e(0x502)]();Array[_0x5ca56e(0x38c)](_0x148199)&&_0x148199[_0x5ca56e(0x3b8)]>0x0&&this[_0x5ca56e(0x560)](_0x148199);}[_0x2b1dc8(0x1ac)](){this['_online']=!0x1;}};_0x357ca5=_0x356a35([_0x4bc69a(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x4bc69a(0x3,_0x5821d4['Inject'](_0x38f88a)),_0x4bc69a(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x35f626)),_0x4bc69a(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0x4ce206)),_0x4bc69a(0x6,_0xf29ce7['ITransformService']),_0x4bc69a(0x7,_0x5821d4[_0x2b1dc8(0x486)]),_0x4bc69a(0x8,_0x5821d4[_0x2b1dc8(0x2bf)])],_0x357ca5);var _0x9c2806=Object['defineProperty'],_0x19e8e2=Object[_0x2b1dc8(0x299)],_0x75d19e=(_0x4b1c80,_0xe77f77,_0x55c180,_0x35aef4)=>{const _0x27f31e=_0x2b1dc8;for(var _0x2ebd57=_0x35aef4>0x1?void 0x0:_0x35aef4?_0x19e8e2(_0xe77f77,_0x55c180):_0xe77f77,_0x182959=_0x4b1c80[_0x27f31e(0x3b8)]-0x1,_0xfede6f;_0x182959>=0x0;_0x182959--)(_0xfede6f=_0x4b1c80[_0x182959])&&(_0x2ebd57=(_0x35aef4?_0xfede6f(_0xe77f77,_0x55c180,_0x2ebd57):_0xfede6f(_0x2ebd57))||_0x2ebd57);return _0x35aef4&&_0x2ebd57&&_0x9c2806(_0xe77f77,_0x55c180,_0x2ebd57),_0x2ebd57;},_0x54c743=(_0x1007e5,_0x584533)=>(_0x4e3372,_0x576b7f)=>_0x584533(_0x4e3372,_0x576b7f,_0x1007e5);let _0x3ae120=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x504a35,_0x5d1244,_0x12548e){const _0x361e55=_0x2b1dc8;super(),_0x58b0b3(this,_0x361e55(0x3d6),new Map()),_0x58b0b3(this,'_entityInit$',new _0x2fad13[(_0x361e55(0x2ee))]()),(this[_0x361e55(0x267)]=_0x504a35,this[_0x361e55(0x4cd)]=_0x5d1244,this['_collabSessionService']=_0x12548e,this[_0x361e55(0x1dd)]());}['dispose'](){const _0x228e6a=_0x2b1dc8;super[_0x228e6a(0x3a8)](),this[_0x228e6a(0x59f)][_0x228e6a(0x424)](),this[_0x228e6a(0x3d6)]['forEach'](_0x3b7d5b=>_0x3b7d5b['dispose']());}[_0x2b1dc8(0x35e)](_0x58c463){const _0x4994ce=_0x2b1dc8;return this[_0x4994ce(0x3d6)]['has'](_0x58c463)?this['_entities']['get'](_0x58c463)[_0x4994ce(0x36d)]:this[_0x4994ce(0x59f)][_0x4994ce(0x378)](_0x2fad13[_0x4994ce(0x565)](_0x44ec55=>_0x44ec55[_0x4994ce(0x3d4)]===_0x58c463),_0x2fad13[_0x4994ce(0x304)](_0xb986b5=>_0xb986b5[_0x4994ce(0x36d)]));}[_0x2b1dc8(0x1dd)](){const _0x59206a=_0x2b1dc8;this[_0x59206a(0x267)]['getTypeOfUnitAdded$'](_0x5821d4['UniverInstanceType'][_0x59206a(0x3f1)])[_0x59206a(0x378)](_0x2fad13[_0x59206a(0x1de)](this[_0x59206a(0x557)]))[_0x59206a(0x358)](async _0x465451=>{const _0x4b0a28=_0x59206a,_0x126532=_0x465451[_0x4b0a28(0x28e)](),_0x108a2c=await this['_startSheetCollabCursor'](_0x126532);this[_0x4b0a28(0x59f)][_0x4b0a28(0x522)](_0x108a2c),this[_0x4b0a28(0x3d6)][_0x4b0a28(0x305)](_0x126532,_0x108a2c);}),this[_0x59206a(0x267)]['getTypeOfUnitAdded$'](_0x5821d4[_0x59206a(0x566)][_0x59206a(0x202)])[_0x59206a(0x378)](_0x2fad13['takeUntil'](this[_0x59206a(0x557)]))['pipe'](_0x2fad13[_0x59206a(0x565)](_0xacb260=>!_0xacb260[_0x59206a(0x28e)]()[_0x59206a(0x2aa)]('__')))[_0x59206a(0x358)](async _0x316290=>{const _0x51fa6a=_0x59206a,_0x5646d9=_0x316290[_0x51fa6a(0x28e)](),_0x3c6e70=await this[_0x51fa6a(0x4d9)](_0x5646d9);this['_entityInit$'][_0x51fa6a(0x522)](_0x3c6e70),this[_0x51fa6a(0x3d6)][_0x51fa6a(0x305)](_0x5646d9,_0x3c6e70);}),_0x2fad13[_0x59206a(0x2b4)](this['_univerInstanceService'][_0x59206a(0x366)](_0x5821d4[_0x59206a(0x566)][_0x59206a(0x202)]),this['_univerInstanceService'][_0x59206a(0x366)](_0x5821d4[_0x59206a(0x566)][_0x59206a(0x3f1)]))[_0x59206a(0x378)](_0x2fad13[_0x59206a(0x1de)](this[_0x59206a(0x557)]))['subscribe'](_0x416da8=>{const _0x4b9a18=_0x59206a,_0xbeed29=_0x416da8[_0x4b9a18(0x28e)](),_0x3639fe=this[_0x4b9a18(0x3d6)][_0x4b9a18(0x37f)](_0xbeed29);_0x3639fe&&(_0x3639fe[_0x4b9a18(0x3a8)](),this['_entities'][_0x4b9a18(0x189)](_0xbeed29));});}async[_0x2b1dc8(0x20d)](_0x286190){const _0x1fc778=_0x2b1dc8,_0x4e3442=await this[_0x1fc778(0x1e3)][_0x1fc778(0x4bc)](_0x286190),_0x4861fd=this['_injector']['createInstance'](_0x5b5ed2,_0x286190,_0x4e3442);return _0x4861fd[_0x1fc778(0x3bd)](),_0x4861fd;}async[_0x2b1dc8(0x4d9)](_0x277204){const _0x2ee20a=_0x2b1dc8,_0x38c86c=await this[_0x2ee20a(0x1e3)][_0x2ee20a(0x4bc)](_0x277204),_0x13be34=this[_0x2ee20a(0x4cd)][_0x2ee20a(0x281)](_0x357ca5,_0x277204,_0x38c86c);return _0x13be34[_0x2ee20a(0x3bd)](),_0x13be34;}};_0x3ae120=_0x75d19e([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4[_0x2b1dc8(0x4e1)][_0x2b1dc8(0x20b)],_0x3ae120),_0x54c743(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x54c743(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x54c743(0x2,_0x5821d4['Inject'](_0x2010a0[_0x2b1dc8(0x272)]))],_0x3ae120);const _0x134c72=0x14,_0x4c3566=0xc8,_0x547863=0x4,_0xb6b009=0x5;function _0x41811e(_0x324518,_0x19e1b8){const _0x38fd1=_0x2b1dc8;let {radius:_0x40bc94,width:_0x56e231,height:_0x1fc874}=_0x19e1b8;_0x40bc94=_0x40bc94!=null?_0x40bc94:0x0,_0x56e231=_0x56e231!=null?_0x56e231:0x1e,_0x1fc874=_0x1fc874!=null?_0x1fc874:0x1e;let _0x53b479=0x0,_0x3bc6e8=0x0,_0x447b12=0x0;_0x53b479=_0x3bc6e8=_0x447b12=Math[_0x38fd1(0x387)](_0x40bc94,_0x56e231/0x2,_0x1fc874/0x2),_0x324518[_0x38fd1(0x58c)](),_0x324518['moveTo'](_0x53b479,0x0),_0x324518[_0x38fd1(0x435)](_0x56e231-_0x3bc6e8,0x0),_0x324518['arc'](_0x56e231-_0x3bc6e8,_0x3bc6e8,_0x3bc6e8,Math['PI']*0x3/0x2,0x0,!0x1),_0x324518['lineTo'](_0x56e231,_0x1fc874-_0x447b12),_0x324518[_0x38fd1(0x215)](_0x56e231-_0x447b12,_0x1fc874-_0x447b12,_0x447b12,0x0,Math['PI']/0x2,!0x1),_0x324518[_0x38fd1(0x435)](0x0,_0x1fc874),_0x324518[_0x38fd1(0x435)](0x0,_0x53b479),_0x324518[_0x38fd1(0x215)](_0x53b479,_0x53b479,_0x53b479,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x324518['closePath'](),_0x19e1b8['fill']&&(_0x324518[_0x38fd1(0x42e)](),_0x324518[_0x38fd1(0x459)]=_0x19e1b8['fill'],_0x19e1b8[_0x38fd1(0x1cc)]==='evenodd'?_0x324518[_0x38fd1(0x3ee)](_0x38fd1(0x241)):_0x324518[_0x38fd1(0x3ee)](),_0x324518[_0x38fd1(0x399)]());}class _0x4ac80a extends _0x33b476[_0x2b1dc8(0x27c)]{constructor(_0x5a49b4,_0x4a0adb){const _0x255f94=_0x2b1dc8;super(_0x5a49b4,_0x4a0adb),_0x58b0b3(this,_0x255f94(0x1f9)),_0x58b0b3(this,_0x255f94(0x39e)),(this['color']=_0x4a0adb==null?void 0x0:_0x4a0adb[_0x255f94(0x1f9)],this[_0x255f94(0x39e)]=_0x4a0adb==null?void 0x0:_0x4a0adb['text']);}static['drawWith'](_0x4f865d,_0x1a5369){const _0x4fe773=_0x2b1dc8,{text:_0x36609d,color:_0x4cef3c}=_0x1a5369;_0x4f865d[_0x4fe773(0x42e)](),_0x4f865d['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x472525=_0x4f865d['measureText'](_0x36609d)[_0x4fe773(0x52b)],_0x44c718=Math[_0x4fe773(0x387)](_0x472525+0x2*_0x547863,_0x4c3566);_0x41811e(_0x4f865d,{'height':_0x134c72,'radius':0x4,'width':_0x44c718,'fill':_0x4cef3c,'evented':!0x1}),_0x4f865d['fillStyle']='#FFF';const _0x5544fc=_0x547863,_0x6a390d=_0x134c72-_0xb6b009,_0x129903=_0x4c3566-0x2*_0x547863;if(_0x472525>_0x129903){let _0x1adc9b='',_0x3f8b44=0x0;for(const _0x5c12fd of _0x36609d){const _0x4f8da7=_0x4f865d['measureText'](_0x5c12fd)[_0x4fe773(0x52b)];if(_0x3f8b44+_0x4f8da7<=_0x129903-_0x4f865d[_0x4fe773(0x18e)](_0x4fe773(0x409))['width'])_0x1adc9b+=_0x5c12fd,_0x3f8b44+=_0x4f8da7;else{_0x1adc9b+=_0x4fe773(0x409);break;}}_0x4f865d['fillText'](_0x1adc9b,_0x5544fc,_0x6a390d);}else _0x4f865d[_0x4fe773(0x53a)](_0x36609d,_0x5544fc,_0x6a390d);_0x4f865d[_0x4fe773(0x399)]();}['_draw'](_0x44d6a4){_0x4ac80a['drawWith'](_0x44d6a4,this);}}const _0xcd42bb=_0x2b1dc8(0x223),_0x46a752=_0x2b1dc8(0x4e2),_0x469d0c=_0x2b1dc8(0x43d),_0x3e86c1=0x6,_0x1289a4=1.5,_0x44f44f=0x4,_0xaac269=1.5,_0xbc0d8d=_0x2b1dc8(0x2cc);class _0x1b1542{constructor(_0x1ee8e6,_0x1d1345,_0x27d20b,_0x4610aa){const _0x5938af=_0x2b1dc8;_0x58b0b3(this,_0x5938af(0x2e6),[]),_0x58b0b3(this,'_anchor',null),_0x58b0b3(this,_0x5938af(0x21a),null),_0x58b0b3(this,_0x5938af(0x354),null),_0x58b0b3(this,'_hideTimer',null),_0x58b0b3(this,_0x5938af(0x3b5),null),(this[_0x5938af(0x55f)]=_0x1ee8e6,this[_0x5938af(0x297)]=_0x1d1345,this[_0x5938af(0x21e)]=_0x27d20b,this[_0x5938af(0x513)]=_0x4610aa,this[_0x5938af(0x3d0)]());}set[_0x2b1dc8(0x318)](_0x4015dd){const _0x118d80=_0x2b1dc8;_0x4015dd?(this[_0x118d80(0x354)]&&this[_0x118d80(0x354)]['hide'](),this[_0x118d80(0x21a)]&&this[_0x118d80(0x21a)][_0x118d80(0x221)]()):(this[_0x118d80(0x354)]&&this[_0x118d80(0x354)][_0x118d80(0x221)](),this[_0x118d80(0x21a)]&&this[_0x118d80(0x21a)][_0x118d80(0x5b7)]());}[_0x2b1dc8(0x3a8)](){const _0xe4fcd1=_0x2b1dc8;for(const _0x2354bc of this['_shapes'])_0x2354bc[_0xe4fcd1(0x3a8)]();this['_textBubble']&&this[_0xe4fcd1(0x21a)]['dispose'](),this[_0xe4fcd1(0x354)]&&this['_anchorDot'][_0xe4fcd1(0x3a8)](),this[_0xe4fcd1(0x548)]&&this[_0xe4fcd1(0x548)][_0xe4fcd1(0x3a8)](),this['_eventUnsubscribe']&&this[_0xe4fcd1(0x3b5)]();}[_0x2b1dc8(0x3d0)](){const _0x18a67e=_0x2b1dc8;var _0x1dc4ad;const {_docSkeleton:_0x222df5,_document:_0x2c03b4}=this,{color:_0x18484c,name:_0x4fb0b3,ranges:_0x426e57}=this[_0x18a67e(0x55f)],_0x925983=_0x2c03b4[_0x18a67e(0x31e)](),{docsLeft:_0x196e4c,docsTop:_0x19eaa8}=_0x925983,_0x410b53=new _0x1123f9['NodePositionConvertToCursor'](_0x925983,_0x222df5);for(const {startOffset:_0x2ea2dd,endOffset:_0x2ceaaf,collapsed:_0x39a014,isActive:_0x24106f}of _0x426e57){const _0x125ed8=_0x222df5[_0x18a67e(0x34d)](_0x2ea2dd),_0x235854=_0x222df5[_0x18a67e(0x34d)](_0x2ceaaf);if(_0x24106f){const {contentBoxPointGroup:_0x55ffa0}=_0x410b53['getRangePointData'](_0x235854,_0x235854);if(_0x55ffa0['length']===0x0)continue;this[_0x18a67e(0x51a)](_0x18484c,_0x55ffa0,_0x196e4c,_0x19eaa8,_0x4fb0b3),this[_0x18a67e(0x3b5)]=this[_0x18a67e(0x43b)]();}if(!_0x39a014&&_0x125ed8&&_0x235854){if(_0x1123f9[_0x18a67e(0x527)](_0x125ed8,_0x235854)){const _0x598ef5=new _0x1123f9[(_0x18a67e(0x3c9))](_0x925983,_0x222df5),{pointGroup:_0x4bf9e5}=(_0x1dc4ad=_0x598ef5[_0x18a67e(0x1cf)](_0x125ed8,_0x235854))!=null?_0x1dc4ad:{};if(_0x4bf9e5==null||_0x4bf9e5[_0x18a67e(0x3b8)]===0x0)continue;this[_0x18a67e(0x204)](_0x18484c,_0x4bf9e5,_0x196e4c,_0x19eaa8);}else{const {contentBoxPointGroup:_0x603e9d}=_0x410b53[_0x18a67e(0x1cf)](_0x125ed8,_0x235854);if(_0x603e9d['length']===0x0)continue;this[_0x18a67e(0x55a)](_0x18484c,_0x603e9d,_0x196e4c,_0x19eaa8);}}}}[_0x2b1dc8(0x51a)](_0x2e6869,_0x162c10,_0x538dbf,_0x526ebb,_0xc16b58){const _0x2c20ee=_0x2b1dc8,_0x4b6c69=this['_getAnchorBounding'](_0x162c10),{left:_0x2a666c,top:_0x416287,height:_0x125d16}=_0x4b6c69,_0x10e33c=this[_0x2c20ee(0x4c0)](),_0x21435=_0xaac269/_0x10e33c,_0x58a97d=new _0x33b476['Rect'](_0xcd42bb+_0x5821d4[_0x2c20ee(0x325)][_0x2c20ee(0x582)](_0x3e86c1),{'left':_0x2a666c+_0x538dbf-_0x21435,'top':_0x416287+_0x526ebb,'height':_0x125d16,'width':_0x1289a4,'fill':_0x2e6869||_0x33b476[_0x2c20ee(0x23f)](_0x5821d4[_0x2c20ee(0x3fa)][_0x2c20ee(0x331)],0x0),'strokeWidth':_0x21435,'stroke':_0xbc0d8d,'evented':!0x0});this['_anchor']=_0x58a97d,this[_0x2c20ee(0x297)][_0x2c20ee(0x2c0)](_0x58a97d,_0x1123f9[_0x2c20ee(0x5aa)]);const _0x3710e5=new _0x33b476[(_0x2c20ee(0x5b3))](_0xcd42bb+_0x5821d4[_0x2c20ee(0x325)][_0x2c20ee(0x582)](_0x3e86c1),{'left':_0x2a666c+_0x538dbf-_0x21435,'top':_0x416287+_0x526ebb-_0x44f44f/0x2,'height':_0x44f44f,'width':_0x44f44f,'fill':_0x2e6869||_0x33b476[_0x2c20ee(0x23f)](_0x5821d4['COLORS'][_0x2c20ee(0x331)],0x0),'strokeWidth':0x0,'stroke':_0x2e6869||_0x33b476['getColor'](_0x5821d4[_0x2c20ee(0x3fa)][_0x2c20ee(0x331)],0x0),'evented':!0x1});this[_0x2c20ee(0x354)]=_0x3710e5,this['_scene']['addObject'](_0x3710e5,_0x1123f9['TEXT_RANGE_LAYER_INDEX']);const _0x3f9de8=new _0x4ac80a(_0xcd42bb+_0x5821d4[_0x2c20ee(0x325)][_0x2c20ee(0x582)](_0x3e86c1),{'left':_0x2a666c+_0x538dbf-_0x21435,'top':_0x416287+_0x526ebb-_0x134c72,'text':_0xc16b58,'color':_0x2e6869});this['_textBubble']=_0x3f9de8,this[_0x2c20ee(0x297)]['addObject'](_0x3f9de8,_0x1123f9[_0x2c20ee(0x5aa)]),this['_hover']=!0x1;}['_handleHover'](){const _0xccdfdf=_0x2b1dc8,_0x39a4f4=this[_0xccdfdf(0x548)][_0xccdfdf(0x26a)][_0xccdfdf(0x30e)](()=>{this['_hover']=!0x0;}),_0x49374b=this[_0xccdfdf(0x548)][_0xccdfdf(0x420)][_0xccdfdf(0x30e)](()=>{const _0x34223b=_0xccdfdf;this[_0x34223b(0x3ea)]&&clearTimeout(this[_0x34223b(0x3ea)]),this[_0x34223b(0x3ea)]=setTimeout(()=>{const _0x4a8844=_0x34223b;this[_0x4a8844(0x318)]=!0x1;},0x7d0);});return()=>{const _0x510011=_0xccdfdf;_0x39a4f4[_0x510011(0x465)](),_0x49374b[_0x510011(0x465)]();};}['_drawTextRange'](_0x52717a,_0x6d4f18,_0x4add6c,_0x35593e){const _0x322be6=_0x2b1dc8,_0x1aa8ca=new _0x5821d4['ColorKit'](_0x52717a)[_0x322be6(0x30b)](0.2)[_0x322be6(0x46c)](),_0x1aaa48=new _0x33b476[(_0x322be6(0x302))](_0x46a752+_0x5821d4['Tools'][_0x322be6(0x582)](_0x3e86c1),{'pointsGroup':_0x6d4f18,'fill':_0x1aa8ca||_0x33b476[_0x322be6(0x23f)](_0x5821d4[_0x322be6(0x3fa)][_0x322be6(0x331)],0.2),'left':_0x4add6c,'top':_0x35593e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x322be6(0x2e6)][_0x322be6(0x3fb)](_0x1aaa48),this[_0x322be6(0x297)]['addObject'](_0x1aaa48,_0x1123f9[_0x322be6(0x5aa)]);}['_drawRectRange'](_0x51db07,_0x31d43b,_0x137fb1,_0x1bc96){const _0xfe517e=_0x2b1dc8,_0x7b1b3b=new _0x5821d4[(_0xfe517e(0x2d4))](_0x51db07)[_0xfe517e(0x30b)](0.2)[_0xfe517e(0x46c)](),_0xe873ef=new _0x33b476[(_0xfe517e(0x302))](_0x469d0c+_0x5821d4[_0xfe517e(0x325)][_0xfe517e(0x582)](_0x3e86c1),{'pointsGroup':_0x31d43b,'fill':_0x7b1b3b||_0x33b476[_0xfe517e(0x23f)](_0x5821d4[_0xfe517e(0x3fa)]['black'],0.2),'left':_0x137fb1,'top':_0x1bc96,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xfe517e(0x2e6)]['push'](_0xe873ef),this[_0xfe517e(0x297)][_0xfe517e(0x2c0)](_0xe873ef,_0x1123f9['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x1c430d){const _0x2ecb9a=_0x1c430d[0x0],_0x519f55=_0x2ecb9a[0x0],_0x16efa5=_0x2ecb9a[0x2],{x:_0x1cae8c,y:_0x295a68}=_0x519f55,{x:_0x2751cd,y:_0x712132}=_0x16efa5;return{'left':_0x1cae8c,'top':_0x295a68,'width':_0x2751cd-_0x1cae8c,'height':_0x712132-_0x295a68};}[_0x2b1dc8(0x4c0)](){const _0x579447=_0x2b1dc8,{scaleX:_0x102e7f,scaleY:_0x539b4f}=this['_scene'][_0x579447(0x243)]();return Math[_0x579447(0x35f)](_0x102e7f,_0x539b4f);}}var _0x805158=Object['defineProperty'],_0x2e8c1d=Object[_0x2b1dc8(0x299)],_0x13cb59=(_0x309afa,_0xbf0a03,_0x2f93f7,_0x48d5d8)=>{const _0x2610c1=_0x2b1dc8;for(var _0x3434aa=_0x48d5d8>0x1?void 0x0:_0x48d5d8?_0x2e8c1d(_0xbf0a03,_0x2f93f7):_0xbf0a03,_0x579f79=_0x309afa[_0x2610c1(0x3b8)]-0x1,_0x1ef227;_0x579f79>=0x0;_0x579f79--)(_0x1ef227=_0x309afa[_0x579f79])&&(_0x3434aa=(_0x48d5d8?_0x1ef227(_0xbf0a03,_0x2f93f7,_0x3434aa):_0x1ef227(_0x3434aa))||_0x3434aa);return _0x48d5d8&&_0x3434aa&&_0x805158(_0xbf0a03,_0x2f93f7,_0x3434aa),_0x3434aa;},_0x537ae=(_0x408249,_0x3e0eeb)=>(_0x49bbc3,_0x4d52a2)=>_0x3e0eeb(_0x49bbc3,_0x4d52a2,_0x408249);let _0x273e10=class extends _0x5821d4['RxDisposable']{constructor(_0x495c2d,_0x1fe902,_0x21b99e,_0x21ebee,_0x2686cd){const _0x5c8d1e=_0x2b1dc8;super(),_0x58b0b3(this,'_cursorShapes',[]),_0x58b0b3(this,_0x5c8d1e(0x361),[]),(this['_context']=_0x495c2d,this[_0x5c8d1e(0x3fd)]=_0x1fe902,this[_0x5c8d1e(0x458)]=_0x21b99e,this[_0x5c8d1e(0x4f9)]=_0x21ebee,this['_themeService']=_0x2686cd,this[_0x5c8d1e(0x1dd)]());}[_0x2b1dc8(0x1dd)](){const _0x243044=_0x2b1dc8,_0x328283=this[_0x243044(0x3ce)]['unitId'],_0x2feea1=this['_docSkeletonManagerService'];this[_0x243044(0x470)](_0x2fad13[_0x243044(0x2e7)]([this[_0x243044(0x458)]['getCollabCursors$'](_0x328283),this[_0x243044(0x490)][_0x243044(0x4a7)]])[_0x243044(0x378)](_0xbf2513[_0x243044(0x370)](([_0x46b1a9,_0x4d4125])=>({'skeleton':_0x2feea1[_0x243044(0x4ed)](),'cursors':[..._0x46b1a9[_0x243044(0x211)]()][_0x243044(0x384)](_0x3f715b=>({..._0x3f715b,'color':_0x4d4125[_0x3f715b[_0x243044(0x1f9)]]}))})))[_0x243044(0x358)](_0x417659=>{const _0xfc9c2f=_0x243044;if(this[_0xfc9c2f(0x4c9)](),_0x417659){const {skeleton:_0x2dbd7b,cursors:_0x21b115}=_0x417659;this[_0xfc9c2f(0x402)](_0x2dbd7b,_0x21b115);}})),this[_0x243044(0x2ec)](),this['_initCommandExecutedListener']();}[_0x2b1dc8(0x402)](_0x4fe15b,_0x42ec11){const _0x292eac=_0x2b1dc8,{scene:_0xcc20c1,mainComponent:_0x3972fe}=this[_0x292eac(0x3ce)],_0x4d984d=_0x42ec11[_0x292eac(0x370)](_0x5c7cd8=>new _0x1b1542(_0x5c7cd8,_0xcc20c1,_0x4fe15b,_0x3972fe));this[_0x292eac(0x516)]=_0x4d984d,this[_0x292eac(0x361)]=_0x42ec11;}[_0x2b1dc8(0x275)](){const _0x49b22c=_0x2b1dc8;this[_0x49b22c(0x4c9)]();const {scene:_0xc66360,mainComponent:_0xa8f5b5}=this[_0x49b22c(0x3ce)],_0x55e9cf=this[_0x49b22c(0x3fd)][_0x49b22c(0x4ed)](),_0x54f88d=this[_0x49b22c(0x361)]['map'](_0x4920c9=>new _0x1b1542(_0x4920c9,_0xc66360,_0x55e9cf,_0xa8f5b5));this['_cursorShapes']=_0x54f88d;}[_0x2b1dc8(0x4c9)](){const _0x474693=_0x2b1dc8;this[_0x474693(0x516)][_0x474693(0x3bc)](_0x5993bd=>_0x5993bd[_0x474693(0x3a8)]()),this[_0x474693(0x516)]=[];}[_0x2b1dc8(0x1a7)](){const _0x4d9b00=_0x2b1dc8,_0x5aeb0d=[_0x1123f9[_0x4d9b00(0x4c6)]['id']];this[_0x4d9b00(0x470)](this[_0x4d9b00(0x4f9)][_0x4d9b00(0x44d)](_0xdae325=>{const _0x6d4c3a=_0x4d9b00;_0x5aeb0d['includes'](_0xdae325['id'])&&_0xdae325[_0x6d4c3a(0x3ef)][_0x6d4c3a(0x3af)]===this[_0x6d4c3a(0x3ce)][_0x6d4c3a(0x3af)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x5a335e=_0x2b1dc8;this[_0x5a335e(0x470)](_0x5821d4['fromEventSubject'](this[_0x5a335e(0x3ce)][_0x5a335e(0x261)]['onTransformChange$'])[_0x5a335e(0x378)](_0xbf2513[_0x5a335e(0x565)](_0x4ef671=>_0x4ef671[_0x5a335e(0x4f1)]===_0x33b476[_0x5a335e(0x339)][_0x5a335e(0x327)]),_0xbf2513[_0x5a335e(0x4e4)](0x10))[_0x5a335e(0x358)](()=>{const _0x5c7042=_0x5a335e;this[_0x5c7042(0x275)]();}));}};_0x273e10=_0x13cb59([_0x5821d4['OnLifecycle'](_0x5821d4['LifecycleStages'][_0x2b1dc8(0x28b)],_0x273e10),_0x537ae(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0xc13db5[_0x2b1dc8(0x277)])),_0x537ae(0x2,_0x5821d4['Inject'](_0x3ae120)),_0x537ae(0x3,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x537ae(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x226)]))],_0x273e10);const _0x64c63b=0x1,_0x49efb0=1.5;class _0x22df64 extends _0x33b476[_0x2b1dc8(0x27c)]{constructor(_0x3b8769,_0x2b5d32){const _0x316a50=_0x2b1dc8;super(_0x3b8769,_0x2b5d32),_0x58b0b3(this,'_color'),_0x58b0b3(this,_0x316a50(0x344),!0x1),_0x58b0b3(this,_0x316a50(0x598)),_0x58b0b3(this,'_name',''),_0x58b0b3(this,_0x316a50(0x321),_0x316a50(0x398)),_0x58b0b3(this,_0x316a50(0x497)),(_0x2b5d32&&this[_0x316a50(0x360)](_0x2b5d32),this[_0x316a50(0x26a)][_0x316a50(0x30e)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x316a50(0x420)][_0x316a50(0x30e)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2b1dc8(0x360)](_0x2bdfb4){const _0x12ca4d=_0x2b1dc8;var _0x9c9c76,_0x50edc9,_0x9ba5d3,_0x5e52bc,_0x285646,_0x54813f;this[_0x12ca4d(0x4f3)]=(_0x9c9c76=_0x2bdfb4[_0x12ca4d(0x1f9)])!=null?_0x9c9c76:this[_0x12ca4d(0x4f3)],this['_hovered']=(_0x50edc9=_0x2bdfb4[_0x12ca4d(0x43f)])!=null?_0x50edc9:this['_hovered'],this[_0x12ca4d(0x598)]=(_0x9ba5d3=_0x2bdfb4['range'])!=null?_0x9ba5d3:this[_0x12ca4d(0x598)],this[_0x12ca4d(0x1df)]=(_0x5e52bc=_0x2bdfb4[_0x12ca4d(0x593)])!=null?_0x5e52bc:this[_0x12ca4d(0x1df)],this['_labelPosition']=(_0x285646=_0x2bdfb4[_0x12ca4d(0x49f)])!=null?_0x285646:this[_0x12ca4d(0x321)],this[_0x12ca4d(0x497)]=(_0x54813f=_0x2bdfb4['backgroundColor'])!=null?_0x54813f:this[_0x12ca4d(0x497)],this[_0x12ca4d(0x4f2)]({'width':_0x2bdfb4[_0x12ca4d(0x52b)],'height':_0x2bdfb4[_0x12ca4d(0x21f)]});}[_0x2b1dc8(0x2ca)](_0x41c1a2){const _0x4153ae=_0x2b1dc8,{row:_0x5a12ac,column:_0x3715d3}=_0x41c1a2;if(_0x5a12ac>=this[_0x4153ae(0x598)][_0x4153ae(0x27f)]&&_0x5a12ac<=this['_range'][_0x4153ae(0x563)]&&_0x3715d3>=this['_range'][_0x4153ae(0x3cb)]&&_0x3715d3<=this[_0x4153ae(0x598)][_0x4153ae(0x310)]){this[_0x4153ae(0x360)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2b1dc8(0x56b)](_0x2e3fcd){return!0x1;}[_0x2b1dc8(0x328)](_0x453e5e){const _0x3eed85=_0x2b1dc8;_0x33b476[_0x3eed85(0x5b3)][_0x3eed85(0x1f2)](_0x453e5e,{'width':this[_0x3eed85(0x52b)],'height':this['height'],'strokeWidth':_0x49efb0,'stroke':this[_0x3eed85(0x4f3)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3eed85(0x344)]&&(_0x453e5e[_0x3eed85(0x42e)](),_0x453e5e['transform'](0x1,0x0,0x0,0x1,this[_0x3eed85(0x52b)],this[_0x3eed85(0x321)]==='bottom'?0x0:-_0x134c72),_0x4ac80a[_0x3eed85(0x1f2)](_0x453e5e,{'text':this[_0x3eed85(0x1df)],'color':this[_0x3eed85(0x4f3)]}),_0x453e5e[_0x3eed85(0x399)]());}}var _0x39b69a=Object[_0x2b1dc8(0x47b)],_0x4d0ee8=Object[_0x2b1dc8(0x299)],_0x321021=(_0x1012de,_0x44453b,_0x596936,_0x4ff457)=>{for(var _0x32ecba=_0x4ff457>0x1?void 0x0:_0x4ff457?_0x4d0ee8(_0x44453b,_0x596936):_0x44453b,_0x28c642=_0x1012de['length']-0x1,_0x44913b;_0x28c642>=0x0;_0x28c642--)(_0x44913b=_0x1012de[_0x28c642])&&(_0x32ecba=(_0x4ff457?_0x44913b(_0x44453b,_0x596936,_0x32ecba):_0x44913b(_0x32ecba))||_0x32ecba);return _0x4ff457&&_0x32ecba&&_0x39b69a(_0x44453b,_0x596936,_0x32ecba),_0x32ecba;},_0x5e30af=(_0x11c7c9,_0x51a40a)=>(_0x52b080,_0x487c51)=>_0x51a40a(_0x52b080,_0x487c51,_0x11c7c9);const _0x140af5=0x1389;let _0x1264b5=class extends _0x5821d4['RxDisposable']{constructor(_0x23c6b7,_0x2a8049,_0x42fecd,_0x4cb0b0){const _0x1f9b80=_0x2b1dc8;super(),_0x58b0b3(this,_0x1f9b80(0x361),new Set()),_0x58b0b3(this,_0x1f9b80(0x44e),null),(this[_0x1f9b80(0x3ce)]=_0x23c6b7,this[_0x1f9b80(0x1fe)]=_0x2a8049,this['_collabCursorController']=_0x42fecd,this[_0x1f9b80(0x490)]=_0x4cb0b0,this[_0x1f9b80(0x1dd)]());}[_0x2b1dc8(0x1dd)](){const _0x48a1ca=_0x2b1dc8;this[_0x48a1ca(0x1fe)][_0x48a1ca(0x3a5)]['pipe'](_0xbf2513[_0x48a1ca(0x1de)](this['dispose$']),_0xbf2513[_0x48a1ca(0x304)](_0x452bb6=>{const _0x3e2f67=_0x48a1ca;if(_0x452bb6){const _0x32cbb2=_0x452bb6['sheetId'];return _0x2fad13['combineLatest'](this['_collabCursorController'][_0x3e2f67(0x35e)](this[_0x3e2f67(0x3ce)][_0x3e2f67(0x3af)]),this[_0x3e2f67(0x490)][_0x3e2f67(0x4a7)])[_0x3e2f67(0x378)](_0xbf2513[_0x3e2f67(0x370)](([_0x3a2c01,_0x474628])=>{const _0x543277=_0x3e2f67,_0x3eb47b=new Map();return _0x3a2c01[_0x543277(0x3bc)]((_0x18e954,_0x3d87c9)=>{const _0x39190f=_0x543277;if(_0x18e954['sheetID']===_0x32cbb2){const _0x5c9e82={..._0x18e954};_0x5c9e82[_0x39190f(0x1f9)]=_0x474628[_0x18e954[_0x39190f(0x1f9)]],_0x3eb47b[_0x39190f(0x305)](_0x3d87c9,_0x5c9e82);}}),{'skeleton':_0x452bb6,'cursors':_0x3eb47b};}));}return _0x2fad13['of']({'skeleton':null,'cursors':new Map()});}))[_0x48a1ca(0x358)](({skeleton:_0x43ba46,cursors:_0x2c12a4})=>{const _0x4ba117=_0x48a1ca;this['_removeCollabCursors'](),_0x43ba46&&this[_0x4ba117(0x402)](_0x43ba46,_0x2c12a4);}),this[_0x48a1ca(0x1fe)]['currentSkeleton$']['subscribe'](_0x58ee42=>{const _0x471eaf=_0x48a1ca;if(_0x58ee42==null)return;const {skeleton:_0x5a18a7}=_0x58ee42,{scene:_0x3fd56c}=this['_context'];_0x3fd56c[_0x471eaf(0x3b6)][_0x471eaf(0x30e)](_0x5821d4[_0x471eaf(0x1fb)](_0x22fa89=>{const _0x593cfd=_0x471eaf;var _0x6d9c66,_0x361f8d;const {offsetX:_0x3703e4,offsetY:_0x5e8b61}=_0x22fa89,{x:_0x3eb848,y:_0x4ffa6c}=_0x3fd56c[_0x593cfd(0x1f1)](_0x33b476[_0x593cfd(0x42c)][_0x593cfd(0x4e9)]([_0x3703e4,_0x5e8b61])),{scaleX:_0x3bb285,scaleY:_0x4099c3}=_0x3fd56c['getAncestorScale'](),_0x5430d6=_0x3fd56c['getViewport'](_0x15b72e[_0x593cfd(0x426)][_0x593cfd(0x25a)]),_0x1bb1d8=_0x3fd56c['getVpScrollXYInfoByPosToVp'](_0x33b476['Vector2'][_0x593cfd(0x4e9)]([_0x3eb848,_0x4ffa6c]),_0x5430d6),_0x59fa81=_0x5a18a7[_0x593cfd(0x225)](_0x3703e4,_0x5e8b61,_0x3bb285,_0x4099c3,_0x1bb1d8);((_0x6d9c66=this['_lastPointer'])==null?void 0x0:_0x6d9c66[_0x593cfd(0x512)])===_0x59fa81[_0x593cfd(0x512)]&&((_0x361f8d=this[_0x593cfd(0x44e)])==null?void 0x0:_0x361f8d[_0x593cfd(0x49e)])===_0x59fa81[_0x593cfd(0x49e)]||this['_cursors'][_0x593cfd(0x3bc)](_0xd0591f=>{const _0x1ed043=_0x593cfd;_0xd0591f[_0x1ed043(0x2ca)](_0x59fa81);});},0x64));});}[_0x2b1dc8(0x402)](_0x537b42,_0xf9518c){const _0x56367a=_0x2b1dc8;var _0x62d8f;const _0x980467=(_0x62d8f=this[_0x56367a(0x1fe)][_0x56367a(0x5a8)]())==null?void 0x0:_0x62d8f[_0x56367a(0x40d)];if(!_0x980467)return;const _0x551f70=this[_0x56367a(0x33e)]();if(!_0x551f70)return;this['_cursors'][_0x56367a(0x3bc)](_0x394ff2=>{const _0xf98e34=_0x56367a;_0x394ff2[_0xf98e34(0x57a)]();});const {scene:_0x26974f}=_0x551f70,_0x5eecfb=_0xa5681(Array['from'](_0xf9518c[_0x56367a(0x211)]()))[_0x56367a(0x370)](_0x575a34=>{const _0x5c0de7=_0x56367a,{color:_0x3db3b8,range:_0x55bdf4,name:_0x40041d,selection:_0x17e2bd,sheetID:_0x532241}=_0x575a34,{startColumn:_0x2bc374,startRow:_0x576efc,endColumn:_0x33b1bd,endRow:_0x36edec}=_0x55bdf4,_0x233f96=_0x15b72e[_0x5c0de7(0x2a9)](_0x576efc,_0x2bc374,_0x26974f,_0x980467),_0x1916bd=_0x15b72e[_0x5c0de7(0x2a9)](_0x36edec,_0x33b1bd,_0x26974f,_0x980467),{columnHeaderHeightAndMarginTop:_0x30252d}=_0x980467,{startX:_0x35aebe,startY:_0x45092f}=_0x233f96,{endX:_0x432479,endY:_0x4719d1}=_0x1916bd,_0x21970e=_0x432479-_0x35aebe,_0x528b72=_0x4719d1-_0x45092f,_0x1e7ba7={'labelPosition':_0x45092f-_0x30252d>=_0x134c72?'top':_0x5c0de7(0x43c),'sheetID':_0x532241,'range':_0x55bdf4,'color':_0x3db3b8,'name':_0x40041d,'selection':_0x17e2bd,'left':_0x35aebe,'top':_0x45092f,'width':_0x21970e,'height':_0x528b72,'evented':!0x1,'zIndex':_0x140af5};return new _0x22df64(_0x40041d,_0x1e7ba7);});_0x26974f[_0x56367a(0x2db)](_0x5eecfb,_0x64c63b),this[_0x56367a(0x361)]=new Set(_0x5eecfb);}['_removeCollabCursors'](){const _0x28b3a=_0x2b1dc8;var _0x47ea0a;(_0x47ea0a=this[_0x28b3a(0x361)])==null||_0x47ea0a[_0x28b3a(0x3bc)](_0x2ff74c=>_0x2ff74c['dispose']());}[_0x2b1dc8(0x33e)](){const _0x2e9792=_0x2b1dc8;return _0x15b72e['getSheetObject'](this['_context'][_0x2e9792(0x4d0)],this[_0x2e9792(0x3ce)]);}};_0x1264b5=_0x321021([_0x5e30af(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x15b72e[_0x2b1dc8(0x1c7)])),_0x5e30af(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x3ae120)),_0x5e30af(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['ThemeService']))],_0x1264b5);function _0xa5681(_0x1f5a9a){const _0x183cfc=_0x2b1dc8,_0x45f11b=new Map();return _0x1f5a9a[_0x183cfc(0x3bc)](_0x21f106=>{const _0xe2f739=_0x183cfc;if(_0x45f11b[_0xe2f739(0x532)](_0x21f106['selection'])){const _0x39fce4=_0x45f11b[_0xe2f739(0x37f)](_0x21f106['selection']);_0x39fce4['name']+=',\x20'+_0x21f106['name'];}else _0x45f11b['set'](_0x21f106[_0xe2f739(0x3e9)],_0x21f106);}),Array[_0x183cfc(0x282)](_0x45f11b[_0x183cfc(0x211)]());}var _0x365dc1=function(){const _0x2cd21a=_0x2b1dc8;return _0x365dc1=Object[_0x2cd21a(0x443)]||function(_0x1ecb72){const _0xb9c803=_0x2cd21a;for(var _0x5744d4,_0x1ae193=0x1,_0x2d4466=arguments[_0xb9c803(0x3b8)];_0x1ae193<_0x2d4466;_0x1ae193++){_0x5744d4=arguments[_0x1ae193];for(var _0x1d12f1 in _0x5744d4)Object['prototype'][_0xb9c803(0x418)][_0xb9c803(0x54a)](_0x5744d4,_0x1d12f1)&&(_0x1ecb72[_0x1d12f1]=_0x5744d4[_0x1d12f1]);}return _0x1ecb72;},_0x365dc1[_0x2cd21a(0x265)](this,arguments);},_0x320e20=function(_0x27ed81,_0x1db31c){const _0x218e0a=_0x2b1dc8;var _0x31d70f={};for(var _0x185636 in _0x27ed81)Object[_0x218e0a(0x595)][_0x218e0a(0x418)][_0x218e0a(0x54a)](_0x27ed81,_0x185636)&&_0x1db31c[_0x218e0a(0x2da)](_0x185636)<0x0&&(_0x31d70f[_0x185636]=_0x27ed81[_0x185636]);if(_0x27ed81!=null&&typeof Object[_0x218e0a(0x521)]=='function'){for(var _0x9c791=0x0,_0x185636=Object[_0x218e0a(0x521)](_0x27ed81);_0x9c791<_0x185636[_0x218e0a(0x3b8)];_0x9c791++)_0x1db31c['indexOf'](_0x185636[_0x9c791])<0x0&&Object[_0x218e0a(0x595)]['propertyIsEnumerable'][_0x218e0a(0x54a)](_0x27ed81,_0x185636[_0x9c791])&&(_0x31d70f[_0x185636[_0x9c791]]=_0x27ed81[_0x185636[_0x9c791]]);}return _0x31d70f;},_0x1a3f96=_0x5036b4[_0x2b1dc8(0x197)](function(_0x23da48,_0xbb73f4){const _0x37834f=_0x2b1dc8;var _0x29b235=_0x23da48[_0x37834f(0x188)],_0x499260=_0x23da48['id'],_0x41a34f=_0x23da48[_0x37834f(0x2e0)],_0xb1e2fb=_0x23da48[_0x37834f(0x393)],_0xea4e=_0x320e20(_0x23da48,['icon','id',_0x37834f(0x2e0),_0x37834f(0x393)]),_0x453505=_0x37834f(0x2af)[_0x37834f(0x2b5)](_0x499260,'\x20')['concat'](_0x41a34f||'')[_0x37834f(0x41a)](),_0x3a6fca=_0x5036b4[_0x37834f(0x341)]('_'[_0x37834f(0x2b5)](_0x501cde()));return _0xbdeab4(_0x29b235,''[_0x37834f(0x2b5)](_0x499260),{'defIds':_0x29b235['defIds'],'idSuffix':_0x3a6fca[_0x37834f(0x280)]},_0x365dc1({'ref':_0xbb73f4,'className':_0x453505},_0xea4e),_0xb1e2fb);});function _0xbdeab4(_0x483e06,_0x5ca37c,_0x114650,_0x24a3aa,_0x271337){const _0x45489f=_0x2b1dc8;return _0x5036b4[_0x45489f(0x3ac)](_0x483e06[_0x45489f(0x2c6)],_0x365dc1(_0x365dc1({'key':_0x5ca37c},_0x32c8e4(_0x483e06,_0x114650,_0x271337)),_0x24a3aa),(_0x11731c(_0x483e06,_0x114650)['children']||[])[_0x45489f(0x370)](function(_0x2cac3c,_0x1d2356){const _0x34ea5f=_0x45489f;return _0xbdeab4(_0x2cac3c,''[_0x34ea5f(0x2b5)](_0x5ca37c,'-')['concat'](_0x483e06[_0x34ea5f(0x2c6)],'-')['concat'](_0x1d2356),_0x114650,void 0x0,_0x271337);}));}function _0x32c8e4(_0x2947f5,_0x1416c6,_0x3a488e){const _0x4284fd=_0x2b1dc8;var _0x245f55=_0x365dc1({},_0x2947f5[_0x4284fd(0x4f8)]);_0x3a488e!=null&&_0x3a488e[_0x4284fd(0x488)]&&_0x245f55[_0x4284fd(0x3ee)]==='colorChannel1'&&(_0x245f55[_0x4284fd(0x3ee)]=_0x3a488e[_0x4284fd(0x488)]);var _0x399eb1=_0x1416c6[_0x4284fd(0x416)];return!_0x399eb1||_0x399eb1[_0x4284fd(0x3b8)]===0x0||(_0x2947f5['tag']===_0x4284fd(0x315)&&_0x245f55['xlink:href']&&(_0x245f55[_0x4284fd(0x44f)]=_0x245f55['xlink:href']+_0x1416c6[_0x4284fd(0x50f)]),Object[_0x4284fd(0x18c)](_0x245f55)[_0x4284fd(0x3bc)](function(_0x273002){const _0x4d3521=_0x4284fd;var _0x4521fe=_0x273002[0x0],_0x2a6862=_0x273002[0x1];typeof _0x2a6862==_0x4d3521(0x596)&&(_0x245f55[_0x4521fe]=_0x2a6862[_0x4d3521(0x1ef)](/url\(#(.*)\)/,_0x4d3521(0x50d)[_0x4d3521(0x2b5)](_0x1416c6[_0x4d3521(0x50f)],')')));})),_0x245f55;}function _0x11731c(_0x4315c9,_0x6490b){const _0xfb782b=_0x2b1dc8;var _0x1df07c,_0x3b6d23=_0x6490b[_0xfb782b(0x416)];return!_0x3b6d23||_0x3b6d23[_0xfb782b(0x3b8)]===0x0?_0x4315c9:_0x4315c9[_0xfb782b(0x2c6)]===_0xfb782b(0x1d1)&&(!((_0x1df07c=_0x4315c9[_0xfb782b(0x2bd)])===null||_0x1df07c===void 0x0)&&_0x1df07c[_0xfb782b(0x3b8)])?_0x365dc1(_0x365dc1({},_0x4315c9),{'children':_0x4315c9[_0xfb782b(0x2bd)][_0xfb782b(0x370)](function(_0x3ff066){const _0x327314=_0xfb782b;return typeof _0x3ff066[_0x327314(0x4f8)]['id']==_0x327314(0x596)&&_0x3b6d23&&_0x3b6d23[_0x327314(0x2da)](_0x3ff066['attrs']['id'])>-0x1?_0x365dc1(_0x365dc1({},_0x3ff066),{'attrs':_0x365dc1(_0x365dc1({},_0x3ff066[_0x327314(0x4f8)]),{'id':_0x3ff066['attrs']['id']+_0x6490b[_0x327314(0x50f)]})}):_0x3ff066;})}):_0x4315c9;}function _0x501cde(){const _0x3fe6e8=_0x2b1dc8;return Math[_0x3fe6e8(0x242)]()[_0x3fe6e8(0x531)](0x24)['substring'](0x2,0x8);}_0x1a3f96['displayName']=_0x2b1dc8(0x238);var _0x533df6={'tag':_0x2b1dc8(0x3c2),'attrs':{'fill':_0x2b1dc8(0x38b),'viewBox':_0x2b1dc8(0x263),'width':_0x2b1dc8(0x27d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x2b1dc8(0x440),'attrs':{'stroke':'currentColor','d':_0x2b1dc8(0x54d),'strokeLinecap':_0x2b1dc8(0x581),'strokeLinejoin':_0x2b1dc8(0x581),'strokeWidth':1.2}}]},{'tag':_0x2b1dc8(0x1d1),'attrs':{},'children':[{'tag':_0x2b1dc8(0x3d7),'attrs':{'id':_0x2b1dc8(0x4d3)},'children':[{'tag':'path','attrs':{'fill':_0x2b1dc8(0x3ec),'d':_0x2b1dc8(0x508)}}]}]}],'defIds':[_0x2b1dc8(0x4d3)]},_0x10e767=_0x5036b4[_0x2b1dc8(0x197)](function(_0xb28613,_0x40bd57){return _0x5036b4['createElement'](_0x1a3f96,Object['assign']({},_0xb28613,{'id':'off-line-single','ref':_0x40bd57,'icon':_0x533df6}));});_0x10e767[_0x2b1dc8(0x476)]=_0x2b1dc8(0x26f);var _0x3cee83={'tag':_0x2b1dc8(0x3c2),'attrs':{'fill':'none','viewBox':_0x2b1dc8(0x1ae),'width':'1em','height':_0x2b1dc8(0x27d)},'children':[{'tag':'g','attrs':{'clipPath':_0x2b1dc8(0x1bd)},'children':[{'tag':_0x2b1dc8(0x440),'attrs':{'stroke':_0x2b1dc8(0x518),'d':_0x2b1dc8(0x43e),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2b1dc8(0x1d1),'attrs':{},'children':[{'tag':_0x2b1dc8(0x3d7),'attrs':{'id':_0x2b1dc8(0x34f)},'children':[{'tag':_0x2b1dc8(0x440),'attrs':{'fill':_0x2b1dc8(0x3ec),'d':_0x2b1dc8(0x508),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2b1dc8(0x34f)]},_0x4535b5=_0x5036b4[_0x2b1dc8(0x197)](function(_0x123790,_0x3593da){const _0x2e6fb5=_0x2b1dc8;return _0x5036b4[_0x2e6fb5(0x3ac)](_0x1a3f96,Object[_0x2e6fb5(0x443)]({},_0x123790,{'id':_0x2e6fb5(0x1b2),'ref':_0x3593da,'icon':_0x3cee83}));});_0x4535b5['displayName']=_0x2b1dc8(0x19a);const _0x2bdd54={'onlineStatusIcon':_0x2b1dc8(0x368),'onlineStatusTitle':_0x2b1dc8(0x1f5),'onlineStatus':_0x2b1dc8(0x2f5),'online':_0x2b1dc8(0x519),'offline':_0x2b1dc8(0x372)};function _0x51d39f(_0xc767d){const _0x18060c=_0x2b1dc8;switch(_0xc767d){case _0x109234['OFFLINE']:return _0x18060c(0x295);case _0x109234['CONFLICT']:return _0x18060c(0x4c1);case _0x109234[_0x18060c(0x5bc)]:return'collabStatus.fetchMiss';case _0x109234['NOT_COLLAB']:return _0x18060c(0x246);case _0x109234[_0x18060c(0x258)]:case _0x109234[_0x18060c(0x585)]:case _0x109234['AWAITING_WITH_PENDING']:return _0x18060c(0x2e5);case _0x109234['SYNCED']:return'collabStatus.synced';}}function _0xf6cf50(_0x38290b){const _0x146dd4=_0x2b1dc8,{status$:_0x5df171}=_0x38290b,_0x297cc5=_0x32b063[_0x146dd4(0x306)](_0x5df171,_0x109234[_0x146dd4(0x525)]),_0x1d4daa=_0x5821d4[_0x146dd4(0x229)](_0x5821d4[_0x146dd4(0x27e)]),_0x52bcf4=_0x5821d4[_0x146dd4(0x229)](_0x2010a0[_0x146dd4(0x272)]),_0x1e6a2b=_0x297cc5!==_0x109234[_0x146dd4(0x400)],_0x513b00=_0x1d4daa['t'](_0x51d39f(_0x297cc5)),_0xc9dc7c=_0x46648e(_0x2bdd54[_0x146dd4(0x3e2)],{[_0x2bdd54[_0x146dd4(0x3c8)]]:_0x1e6a2b,[_0x2bdd54[_0x146dd4(0x23d)]]:!_0x1e6a2b}),_0xe9df26=_0x1e6a2b?_0x5036b4[_0x146dd4(0x3ac)](_0x4535b5,null):_0x5036b4[_0x146dd4(0x3ac)](_0x10e767,null),_0x599624=_0x5036b4['useCallback'](()=>{const _0x3933f7=_0x146dd4;_0x1e6a2b||_0x52bcf4[_0x3933f7(0x235)]();},[_0x1e6a2b,_0x52bcf4]);function _0x3d174d(){const _0x213acf=_0x146dd4;return _0x5036b4[_0x213acf(0x3ac)](_0x213acf(0x1ab),{'className':_0xc9dc7c,'onClick':_0x599624},_0x5036b4['createElement'](_0x213acf(0x1ab),{'className':_0x2bdd54['onlineStatusIcon']},_0xe9df26),_0x5036b4['createElement'](_0x213acf(0x1ab),{'className':_0x2bdd54[_0x213acf(0x4a0)]},_0x513b00));}return _0x1e6a2b?_0x3d174d():_0x5036b4[_0x146dd4(0x3ac)](_0x2997c5[_0x146dd4(0x2ab)],{'title':_0x1d4daa['t'](_0x146dd4(0x587))},_0x3d174d());}var _0x404338=Object[_0x2b1dc8(0x47b)],_0x3d4fea=Object[_0x2b1dc8(0x299)],_0x3ba70e=(_0x575cce,_0x1c0ebc,_0xb9cc6c,_0x449814)=>{const _0x44fbf0=_0x2b1dc8;for(var _0xd9ce24=_0x449814>0x1?void 0x0:_0x449814?_0x3d4fea(_0x1c0ebc,_0xb9cc6c):_0x1c0ebc,_0x55c47c=_0x575cce[_0x44fbf0(0x3b8)]-0x1,_0x2339f7;_0x55c47c>=0x0;_0x55c47c--)(_0x2339f7=_0x575cce[_0x55c47c])&&(_0xd9ce24=(_0x449814?_0x2339f7(_0x1c0ebc,_0xb9cc6c,_0xd9ce24):_0x2339f7(_0xd9ce24))||_0xd9ce24);return _0x449814&&_0xd9ce24&&_0x404338(_0x1c0ebc,_0xb9cc6c,_0xd9ce24),_0xd9ce24;},_0x58e372=(_0x191e64,_0x2ccb57)=>(_0xe01489,_0x455157)=>_0x2ccb57(_0xe01489,_0x455157,_0x191e64);_0x2010a0[_0x2b1dc8(0x2b3)]=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x312334,_0x78b0f2,_0x1f9d93,_0x13ae92){const _0x2b2e94=_0x2b1dc8;super(),_0x58b0b3(this,_0x2b2e94(0x21c),new _0x2fad13['BehaviorSubject'](_0x109234[_0x2b2e94(0x525)])),(this[_0x2b2e94(0x267)]=_0x312334,this[_0x2b2e94(0x38a)]=_0x78b0f2,this['_injector']=_0x1f9d93,this['_collaborationController']=_0x13ae92,this[_0x2b2e94(0x56f)](),this[_0x2b2e94(0x250)]());}[_0x2b1dc8(0x250)](){const _0x18aee3=_0x2b1dc8;this[_0x18aee3(0x470)](this[_0x18aee3(0x267)][_0x18aee3(0x44a)][_0x18aee3(0x378)](_0x2fad13[_0x18aee3(0x304)](()=>{const _0x275071=_0x18aee3,_0xeef935=this[_0x275071(0x267)][_0x275071(0x279)]();return _0xeef935?this[_0x275071(0x567)][_0x275071(0x44b)](_0xeef935['getUnitId']()):_0x2fad13['of'](null);}),_0x2fad13[_0x18aee3(0x304)](_0x24a756=>_0x24a756?_0x24a756[_0x18aee3(0x20c)]:_0x2fad13['of'](_0x109234['NOT_COLLAB'])))[_0x18aee3(0x358)](_0x553e0c=>{const _0x43e4b4=_0x18aee3;this[_0x43e4b4(0x21c)][_0x43e4b4(0x522)](_0x553e0c);}));}[_0x2b1dc8(0x56f)](){const _0x27cea0=_0x2b1dc8;this[_0x27cea0(0x470)](this['_uiPartsService']['registerComponent'](_0x32b063[_0x27cea0(0x192)][_0x27cea0(0x526)],()=>_0x5821d4[_0x27cea0(0x390)](_0x40b6e2({'status$':this['_status$'][_0x27cea0(0x1eb)]()}),this['_injector'])));}},_0x2010a0[_0x2b1dc8(0x2b3)]=_0x3ba70e([_0x58e372(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x58e372(0x1,_0x32b063[_0x2b1dc8(0x4e8)]),_0x58e372(0x2,_0x5821d4['Inject'](_0x5821d4['Injector'])),_0x58e372(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x1f8)]))],_0x2010a0['DesktopCollaborationStatusDisplayController']);function _0x40b6e2(_0x377d71){const {status$:_0x51348b}=_0x377d71;return function(){const _0xa8336b=_0x5448;return _0x5036b4[_0xa8336b(0x3ac)](_0xf6cf50,{'status$':_0x51348b});};}const _0x3b25ce=_0x5821d4[_0x2b1dc8(0x3b3)](_0x2b1dc8(0x1d4));var _0x3f114e=Object[_0x2b1dc8(0x47b)],_0x12efb7=Object[_0x2b1dc8(0x299)],_0x850c2c=(_0x47f5f0,_0x3ca395,_0x174349,_0x2e5b04)=>{const _0x9bc48f=_0x2b1dc8;for(var _0x4800b=_0x2e5b04>0x1?void 0x0:_0x2e5b04?_0x12efb7(_0x3ca395,_0x174349):_0x3ca395,_0x1d5a4a=_0x47f5f0[_0x9bc48f(0x3b8)]-0x1,_0x1829f4;_0x1d5a4a>=0x0;_0x1d5a4a--)(_0x1829f4=_0x47f5f0[_0x1d5a4a])&&(_0x4800b=(_0x2e5b04?_0x1829f4(_0x3ca395,_0x174349,_0x4800b):_0x1829f4(_0x4800b))||_0x4800b);return _0x2e5b04&&_0x4800b&&_0x3f114e(_0x3ca395,_0x174349,_0x4800b),_0x4800b;},_0x1fcd11=(_0x3b1cde,_0x34ce04)=>(_0xf36903,_0x279a15)=>_0x34ce04(_0xf36903,_0x279a15,_0x3b1cde);_0x2010a0[_0x2b1dc8(0x450)]=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x481c8a,_0x252098,_0x3eb87d,_0xe915e3,_0x2e67c6,_0x34e810){const _0x4509fe=_0x2b1dc8;super(),this[_0x4509fe(0x3d2)]=_0x481c8a,this[_0x4509fe(0x26b)]=_0x252098,this[_0x4509fe(0x4f9)]=_0x3eb87d,this[_0x4509fe(0x461)]=_0xe915e3,this[_0x4509fe(0x382)]=_0x2e67c6,_0x34e810?_0x34e810==null||_0x34e810[_0x4509fe(0x41e)]()[_0x4509fe(0x57d)](()=>this[_0x4509fe(0x1dd)]()):(this[_0x4509fe(0x26b)][_0x4509fe(0x1dc)](_0x4509fe(0x1aa),_0x4509fe(0x523)),this[_0x4509fe(0x1dd)]());}async[_0x2b1dc8(0x1dd)](){const _0x10d4dc=_0x2b1dc8,_0x3cd9b4=this[_0x10d4dc(0x3d2)][_0x10d4dc(0x324)](_0x10d4dc(0x4d0)),_0x229d0c=this[_0x10d4dc(0x3d2)]['getParam'](_0x10d4dc(0x4f1));if(!_0x3cd9b4||!_0x229d0c){this['_logService']['debug'](_0x10d4dc(0x1aa),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x229d0c)){case _0x25ecad[_0x10d4dc(0x3f1)]:{const _0x6dd27a=await this[_0x10d4dc(0x2fd)](_0x3cd9b4);this[_0x10d4dc(0x4d8)](_0x6dd27a);break;}case _0x25ecad[_0x10d4dc(0x202)]:{await this[_0x10d4dc(0x559)](_0x3cd9b4);break;}default:{this[_0x10d4dc(0x26b)][_0x10d4dc(0x3e4)](_0x10d4dc(0x1aa),_0x10d4dc(0x4bb));break;}}}async[_0x2b1dc8(0x4d8)](_0x335cf1){const _0x5c50c3=_0x2b1dc8;await this[_0x5c50c3(0x575)](_0x335cf1),_0x335cf1['activeSheet$'][_0x5c50c3(0x378)](_0x2fad13[_0x5c50c3(0x1de)](this['dispose$']))[_0x5c50c3(0x358)](_0x1a62a1=>{const _0x289884=_0x5c50c3;_0x1a62a1&&this[_0x289884(0x383)](_0x1a62a1);}),this[_0x5c50c3(0x3d2)][_0x5c50c3(0x1fa)]['pipe'](_0x2fad13[_0x5c50c3(0x1de)](this[_0x5c50c3(0x557)]))[_0x5c50c3(0x358)](()=>this[_0x5c50c3(0x575)](_0x335cf1));}[_0x2b1dc8(0x383)](_0x125e2e,_0x5a288f=!0x1){const _0x715056=_0x2b1dc8,_0x9fdf15=this[_0x715056(0x3d2)]['getParam'](_0x715056(0x332));_0x125e2e[_0x715056(0x1c4)]()!==_0x9fdf15&&this[_0x715056(0x3d2)][_0x715056(0x2d8)](_0x715056(0x332),_0x125e2e[_0x715056(0x1c4)](),_0x5a288f);}async['_updateSubUnitFromURLParams'](_0x1894a1){const _0x23f6a3=_0x2b1dc8;var _0x21b69a;const _0x5eb5aa=this[_0x23f6a3(0x3d2)][_0x23f6a3(0x324)](_0x23f6a3(0x332));if(!_0x5eb5aa||!_0x1894a1['getSheetBySheetId'](_0x5eb5aa)){const _0x962128=_0x1894a1[_0x23f6a3(0x556)]()[0x0],_0xf095f0=_0x1894a1[_0x23f6a3(0x3d8)](_0x962128);if(!_0xf095f0)return;this[_0x23f6a3(0x383)](_0xf095f0,!0x0),await this[_0x23f6a3(0x4f9)]['executeCommand'](_0x872f07[_0x23f6a3(0x216)]['id'],{'unitId':_0x1894a1[_0x23f6a3(0x28e)](),'subUnitId':_0x962128});return;}((_0x21b69a=_0x1894a1['getActiveSheet']())==null?void 0x0:_0x21b69a[_0x23f6a3(0x1c4)]())!==_0x5eb5aa&&await this[_0x23f6a3(0x4f9)][_0x23f6a3(0x2a8)](_0x872f07[_0x23f6a3(0x216)]['id'],{'unitId':_0x1894a1['getUnitId'](),'subUnitId':_0x5eb5aa});}async[_0x2b1dc8(0x2fd)](_0x1d1fa0){const _0x753516=_0x2b1dc8;let _0x33c168=0x0;const _0x1d5c83=await this[_0x753516(0x461)][_0x753516(0x307)](_0x1d1fa0);return _0x1d5c83&&(_0x1d5c83[_0x753516(0x48f)]||_0x1d5c83[_0x753516(0x29c)][_0x753516(0x3b8)]!==0x0)&&(_0x33c168=_0x1d5c83[_0x753516(0x18d)]),_0x33c168===0x0&&this[_0x753516(0x26b)][_0x753516(0x1dc)](_0x753516(0x1aa),_0x753516(0x3e5)),this[_0x753516(0x382)][_0x753516(0x3a9)](_0x1d1fa0,_0x33c168);}async[_0x2b1dc8(0x559)](_0x378987){const _0xfb9b33=_0x2b1dc8;let _0x597e39=0x0;const _0x50ab94=await this['_localCacheService'][_0xfb9b33(0x307)](_0x378987);return _0x50ab94&&(_0x50ab94['awaitingChangeset']||_0x50ab94[_0xfb9b33(0x29c)][_0xfb9b33(0x3b8)]!==0x0)&&(_0x597e39=_0x50ab94[_0xfb9b33(0x18d)]),_0x597e39===0x0&&this[_0xfb9b33(0x26b)][_0xfb9b33(0x1dc)]('[DataLoaderController]',_0xfb9b33(0x3e5)),this[_0xfb9b33(0x382)][_0xfb9b33(0x5b1)](_0x378987,_0x597e39);}},_0x2010a0[_0x2b1dc8(0x450)]=_0x850c2c([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4[_0x2b1dc8(0x4e1)][_0x2b1dc8(0x20b)],_0x2010a0[_0x2b1dc8(0x450)]),_0x1fcd11(0x0,_0x3b25ce),_0x1fcd11(0x1,_0x5821d4[_0x2b1dc8(0x468)]),_0x1fcd11(0x2,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x1fcd11(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x1fcd11(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x4c5)])),_0x1fcd11(0x5,_0x5821d4[_0x2b1dc8(0x264)](_0x1d2bd4[_0x2b1dc8(0x481)]))],_0x2010a0[_0x2b1dc8(0x450)]);var _0x2d3343=Object['defineProperty'],_0x1829be=Object[_0x2b1dc8(0x299)],_0x3d574f=(_0x1bcffe,_0x1c062c,_0x1967a0,_0x4dca03)=>{const _0x4c44f5=_0x2b1dc8;for(var _0x4429c7=_0x4dca03>0x1?void 0x0:_0x4dca03?_0x1829be(_0x1c062c,_0x1967a0):_0x1c062c,_0xb6b0a1=_0x1bcffe[_0x4c44f5(0x3b8)]-0x1,_0x28091e;_0xb6b0a1>=0x0;_0xb6b0a1--)(_0x28091e=_0x1bcffe[_0xb6b0a1])&&(_0x4429c7=(_0x4dca03?_0x28091e(_0x1c062c,_0x1967a0,_0x4429c7):_0x28091e(_0x4429c7))||_0x4429c7);return _0x4dca03&&_0x4429c7&&_0x2d3343(_0x1c062c,_0x1967a0,_0x4429c7),_0x4429c7;},_0xcccb84=(_0x3fa712,_0x39eedc)=>(_0x45a770,_0x3fd9b9)=>_0x39eedc(_0x45a770,_0x3fd9b9,_0x3fa712);const _0x5796e3=_0x2b1dc8(0x1a5),_0x195931='Univer';let _0x592f9e=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x18ea18,_0x2fa089){const _0x48d82b=_0x2b1dc8;super(),this[_0x48d82b(0x267)]=_0x18ea18,this['_configService']=_0x2fa089,this[_0x48d82b(0x1dd)]();}[_0x2b1dc8(0x1dd)](){const _0x57d90f=_0x2b1dc8;this[_0x57d90f(0x470)](_0x5821d4[_0x57d90f(0x1ed)](this[_0x57d90f(0x267)][_0x57d90f(0x44a)]['subscribe'](()=>{const _0x20cb43=_0x57d90f;var _0x5be1d8;const _0x590bae=this[_0x20cb43(0x267)][_0x20cb43(0x279)]();let _0x530c4d=(_0x5be1d8=this[_0x20cb43(0x3aa)][_0x20cb43(0x54b)](_0x5796e3))!=null?_0x5be1d8:_0x195931;_0x590bae instanceof _0x5821d4[_0x20cb43(0x45c)]&&(_0x530c4d=_0x590bae[_0x20cb43(0x593)]),document[_0x20cb43(0x320)]=_0x530c4d;})));}};_0x592f9e=_0x3d574f([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4['LifecycleStages'][_0x2b1dc8(0x1e4)],_0x592f9e),_0xcccb84(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0xcccb84(0x1,_0x5821d4['IConfigService'])],_0x592f9e);var _0x1eb891=Object['defineProperty'],_0x43ba00=Object['getOwnPropertyDescriptor'],_0x464913=(_0x5c4314,_0x1a6261,_0x556d77,_0x1fbf92)=>{const _0x83c90c=_0x2b1dc8;for(var _0x20e97c=_0x1fbf92>0x1?void 0x0:_0x1fbf92?_0x43ba00(_0x1a6261,_0x556d77):_0x1a6261,_0x37d150=_0x5c4314[_0x83c90c(0x3b8)]-0x1,_0x37e857;_0x37d150>=0x0;_0x37d150--)(_0x37e857=_0x5c4314[_0x37d150])&&(_0x20e97c=(_0x1fbf92?_0x37e857(_0x1a6261,_0x556d77,_0x20e97c):_0x37e857(_0x20e97c))||_0x20e97c);return _0x1fbf92&&_0x20e97c&&_0x1eb891(_0x1a6261,_0x556d77,_0x20e97c),_0x20e97c;},_0x350c37=(_0x4a858a,_0x249812)=>(_0x388437,_0x20cbd4)=>_0x249812(_0x388437,_0x20cbd4,_0x4a858a);let _0x36375a=class{constructor(_0xe75417,_0x1e1946,_0x31f797){const _0x212012=_0x2b1dc8;this[_0x212012(0x3aa)]=_0xe75417,this[_0x212012(0x208)]=_0x1e1946,this[_0x212012(0x1d3)]=_0x31f797,this['init']();}[_0x2b1dc8(0x3bd)](){const _0x270c6b=_0x2b1dc8;this[_0x270c6b(0x208)][_0x270c6b(0x45f)]({'priority':0x1,'interceptor':(_0x20bb70,_0x1264e9)=>_0x1264e9(_0x20bb70)[_0x270c6b(0x378)](_0x2fad13[_0x270c6b(0x36c)](async _0x114e22=>{const _0x5d5404=_0x270c6b,_0x304f86=_0x114e22;if(_0x304f86[_0x5d5404(0x219)]===0x191&&window[_0x5d5404(0x55b)](this[_0x5d5404(0x1d3)]['t']('auth.needGotoLoginAlert'))){const _0x94b676=window[_0x5d5404(0x345)](window[_0x5d5404(0x379)]['href']);window[_0x5d5404(0x379)][_0x5d5404(0x421)]=this['_getLoginPath']()+_0x5d5404(0x193)+_0x94b676;}return _0x304f86;}))});}['_getLoginPath'](){const _0x15ebf7=_0x2b1dc8;var _0x35597d,_0x5b98d3;const _0x3e69a2=this[_0x15ebf7(0x3aa)][_0x15ebf7(0x54b)](_0x4036af),_0xbdd01e=this[_0x15ebf7(0x3aa)][_0x15ebf7(0x54b)](_0x451f80);return(_0x5b98d3=(_0x35597d=_0xbdd01e==null?void 0x0:_0xbdd01e['loginUrlKey'])!=null?_0x35597d:_0x3e69a2)!=null?_0x5b98d3:_0x5525d8;}};_0x36375a=_0x464913([_0x350c37(0x0,_0x5821d4[_0x2b1dc8(0x47d)]),_0x350c37(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc['HTTPService'])),_0x350c37(0x2,_0x5821d4['Inject'](_0x5821d4['LocaleService']))],_0x36375a);var _0x2458f7=Object[_0x2b1dc8(0x47b)],_0xf7fe0d=Object[_0x2b1dc8(0x299)],_0xbecdb0=(_0x449e47,_0x227f8b,_0x391d62,_0x49954d)=>{const _0x3fb187=_0x2b1dc8;for(var _0x308b99=_0x49954d>0x1?void 0x0:_0x49954d?_0xf7fe0d(_0x227f8b,_0x391d62):_0x227f8b,_0x2a2ede=_0x449e47[_0x3fb187(0x3b8)]-0x1,_0x1c9412;_0x2a2ede>=0x0;_0x2a2ede--)(_0x1c9412=_0x449e47[_0x2a2ede])&&(_0x308b99=(_0x49954d?_0x1c9412(_0x227f8b,_0x391d62,_0x308b99):_0x1c9412(_0x308b99))||_0x308b99);return _0x49954d&&_0x308b99&&_0x2458f7(_0x227f8b,_0x391d62,_0x308b99),_0x308b99;},_0x2b3ea9=(_0x1a83db,_0x55a2f9)=>(_0x21ec38,_0x4a3c98)=>_0x55a2f9(_0x21ec38,_0x4a3c98,_0x1a83db);const _0x338186=_0x2b1dc8(0x4e0),_0xb848c2='/universer-api/authz';_0x2010a0['AuthzIoHttpService']=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x4ec081,_0x56cf1d){const _0x2ac599=_0x2b1dc8;super(),this[_0x2ac599(0x453)]=_0x4ec081,this[_0x2ac599(0x3aa)]=_0x56cf1d,this['_initMergeInterceptor']();}[_0x2b1dc8(0x2c5)](){const _0x480a3e=_0x2b1dc8,_0x5327f1=this;this['disposeWithMe'](this[_0x480a3e(0x453)][_0x480a3e(0x45f)]({'priority':0x3e7,'interceptor':_0x19a2cc[_0x480a3e(0x22a)]({'isMatch'(_0x36051b){const _0x11be2c=_0x480a3e;var _0x1b4bda;if(_0x36051b[_0x11be2c(0x3db)]===_0x11be2c(0x545)&&((_0x1b4bda=_0x36051b['requestParams'])!=null&&_0x1b4bda[_0x11be2c(0x2b7)])){const {objectID:_0x2c5903,objectType:_0x32c90a}=_0x36051b[_0x11be2c(0x3da)][_0x11be2c(0x2b7)]||{};if(!_0x2c5903||_0x32c90a===void 0x0)return!0x1;const _0x236e4d=_0x5327f1[_0x11be2c(0x195)]()+'/'+_0x32c90a+_0x11be2c(0x3ed)+_0x2c5903+_0x11be2c(0x4d4);if(_0x36051b[_0x11be2c(0x41c)]===_0x236e4d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x12c75d){const _0x2f4206=_0x480a3e;var _0x4f5fa4;return(_0x4f5fa4=_0x12c75d[_0x2f4206(0x3da)])==null?void 0x0:_0x4f5fa4[_0x2f4206(0x2b7)];},'mergeParamsToRequest'(_0x3905c2,_0x1f18ff){const _0x518627=_0x480a3e,_0x1aba22=_0x5327f1[_0x518627(0x195)]()+_0x518627(0x59e),_0x402919=_0x3905c2[_0x518627(0x351)]((_0x3cfac5,_0x1cc31a)=>{const _0x5bed04=_0x518627,{unitID:_0x3e79d6,objectID:_0x35e21,objectType:_0x18b62f,actions:_0x36175b}=_0x1cc31a;return _0x3cfac5[_0x3e79d6]||(_0x3cfac5[_0x3e79d6]={}),_0x3cfac5[_0x3e79d6][_0x35e21]||(_0x3cfac5[_0x3e79d6][_0x35e21]={'objectID':_0x35e21,'objectType':_0x18b62f,'actions':[]}),_0x3cfac5[_0x3e79d6][_0x35e21]['actions'][_0x5bed04(0x3fb)](..._0x36175b),_0x3cfac5;},{}),_0x26d1fd=[];for(const _0x419a8e in _0x402919)for(const _0x4ffafc in _0x402919[_0x419a8e]){const {actions:_0x25abe8,objectType:_0x41912e}=_0x402919[_0x419a8e][_0x4ffafc],_0x2539d6=[...new Set(_0x25abe8)];_0x26d1fd['push']({'unitID':_0x419a8e,'objectID':_0x4ffafc,'objectType':_0x41912e,'actions':_0x2539d6});}return new _0x19a2cc[(_0x518627(0x213))](_0x518627(0x545),_0x1aba22,{'headers':_0x1f18ff['headers'],'withCredentials':_0x1f18ff[_0x518627(0x367)],'responseType':_0x1f18ff['responseType'],'body':{'requests':_0x26d1fd}});}},{'distributeResult'(_0x3fbb24,_0x2d1b7f){const _0x5561cb=_0x480a3e,{objectActions:_0x540e2e}=_0x3fbb24;return _0x2d1b7f[_0x5561cb(0x370)](_0xe9e8e4=>{const _0x4bb8c0=_0x5561cb,{unitID:_0x5724fd,objectID:_0x2f61dc,actions:_0x5a29f7}=_0xe9e8e4,_0x2a0d59=_0x540e2e['find'](_0xa23782=>_0xa23782[_0x4bb8c0(0x3d4)]===_0x5724fd&&_0xa23782[_0x4bb8c0(0x1a0)]===_0x2f61dc),_0x3f820b=_0x5a29f7[_0x4bb8c0(0x370)](_0x36a162=>_0x2a0d59==null?void 0x0:_0x2a0d59[_0x4bb8c0(0x493)][_0x4bb8c0(0x190)](_0x55f62a=>_0x55f62a[_0x4bb8c0(0x3dc)]===_0x36a162))[_0x4bb8c0(0x565)](_0x19bec1=>!!_0x19bec1);return{'config':_0xe9e8e4,'result':{'actions':_0x3f820b,'error':_0x3fbb24['error']}};});}})}));}[_0x2b1dc8(0x195)](){const _0x190552=_0x2b1dc8;var _0x1ecb71,_0x5c3a0c;const _0x5206ad=this[_0x190552(0x3aa)][_0x190552(0x54b)](_0x338186),_0x2e551b=this[_0x190552(0x3aa)][_0x190552(0x54b)](_0x451f80);return(_0x5c3a0c=(_0x1ecb71=_0x2e551b==null?void 0x0:_0x2e551b[_0x190552(0x403)])!=null?_0x1ecb71:_0x5206ad)!=null?_0x5c3a0c:_0xb848c2;}async['create'](_0x1e39bf){const _0x1ec6fd=_0x2b1dc8,_0xe4c15d=this['_getAPIPrefixPath']()+'/'+_0x1e39bf[_0x1ec6fd(0x298)]+'/object';return(await this[_0x1ec6fd(0x453)]['post'](_0xe4c15d,{'body':_0x1e39bf}))[_0x1ec6fd(0x2b7)][_0x1ec6fd(0x1a0)]||'';}async['list'](_0x2f8157){const _0x590cb1=_0x2b1dc8,_0x1d51cf=this[_0x590cb1(0x195)]()+_0x590cb1(0x1ec);return(await this['_HTTPService'][_0x590cb1(0x533)](_0x1d51cf,{'body':_0x2f8157}))[_0x590cb1(0x2b7)]['objects'];}async[_0x2b1dc8(0x2ea)](_0x1ee5ee){const _0x3ab4b=_0x2b1dc8,_0x415f5=this[_0x3ab4b(0x195)]()+'/'+_0x1ee5ee[_0x3ab4b(0x298)]+_0x3ab4b(0x3ed)+_0x1ee5ee[_0x3ab4b(0x1a0)];await this['_HTTPService']['put'](_0x415f5,{'body':_0x1ee5ee});}async[_0x2b1dc8(0x1bf)](_0x543ad7){const _0x216e25=_0x2b1dc8,_0x438d2d=this[_0x216e25(0x195)]()+'/'+_0x543ad7[_0x216e25(0x298)]+_0x216e25(0x3ed)+_0x543ad7[_0x216e25(0x1a0)]+_0x216e25(0x4d4);return(await this[_0x216e25(0x453)][_0x216e25(0x533)](_0x438d2d,{'body':_0x543ad7}))['body'][_0x216e25(0x493)];}async[_0x2b1dc8(0x4aa)](_0x31020b){const _0x2d9a11=_0x2b1dc8,_0x1fbc0b=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x2d9a11(0x453)][_0x2d9a11(0x533)](_0x1fbc0b,{'body':{'requests':_0x31020b}}))[_0x2d9a11(0x2b7)][_0x2d9a11(0x452)];}async[_0x2b1dc8(0x59a)](_0x324fc0){const _0x2f592e=_0x2b1dc8,_0x255c8b=this[_0x2f592e(0x195)]()+'/'+_0x324fc0[_0x2f592e(0x298)]+_0x2f592e(0x254),_0x3efa5c=await this[_0x2f592e(0x453)][_0x2f592e(0x533)](_0x255c8b,{'body':_0x324fc0});return{'roles':_0x3efa5c['body'][_0x2f592e(0x2be)],'actions':_0x3efa5c['body'][_0x2f592e(0x493)]};}async[_0x2b1dc8(0x5a7)](_0x24c32e){const _0x4ef5d6=_0x2b1dc8,_0x597eef=this[_0x4ef5d6(0x195)]()+'/collaborator';await this[_0x4ef5d6(0x453)][_0x4ef5d6(0x189)](_0x597eef,{'params':{'collaboratorID':_0x24c32e[_0x4ef5d6(0x536)],'objectID':_0x24c32e[_0x4ef5d6(0x1a0)],'unitID':_0x24c32e[_0x4ef5d6(0x3d4)]}});}async['updateCollaborator'](_0x433c17){const _0x42d6d0=_0x2b1dc8,_0x12f689=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x42d6d0(0x453)]['patch'](_0x12f689,{'body':_0x433c17});}async[_0x2b1dc8(0x191)](_0xb5af24){const _0x4ba67c=_0x2b1dc8,_0x35f0c3=this[_0x4ba67c(0x195)]()+'/collaborator';await this[_0x4ba67c(0x453)][_0x4ba67c(0x533)](_0x35f0c3,{'body':_0xb5af24});}async[_0x2b1dc8(0x353)](_0x18c10f){const _0x3b2cbf=_0x2b1dc8,_0x4c6d45=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x3b2cbf(0x453)][_0x3b2cbf(0x37f)](_0x4c6d45,{'params':{'objectID':_0x18c10f[_0x3b2cbf(0x1a0)],'unitID':_0x18c10f[_0x3b2cbf(0x3d4)]}}))[_0x3b2cbf(0x2b7)][_0x3b2cbf(0x5ad)];}async[_0x2b1dc8(0x4af)](_0x363f4e){const _0x4b18e8=_0x2b1dc8,_0x5bb21b=this[_0x4b18e8(0x195)]()+_0x4b18e8(0x24e);await this[_0x4b18e8(0x453)][_0x4b18e8(0x28f)](_0x5bb21b,{'body':_0x363f4e});}},_0x2010a0[_0x2b1dc8(0x5a3)]=_0xbecdb0([_0x2b3ea9(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc['HTTPService'])),_0x2b3ea9(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['IConfigService']))],_0x2010a0['AuthzIoHttpService']);var _0xbd2595=Object[_0x2b1dc8(0x47b)],_0x5a46c4=Object[_0x2b1dc8(0x299)],_0x154a1a=(_0x20f0d4,_0x182e54,_0x394f4f,_0x16efd3)=>{const _0x53f184=_0x2b1dc8;for(var _0xa281d3=_0x16efd3>0x1?void 0x0:_0x16efd3?_0x5a46c4(_0x182e54,_0x394f4f):_0x182e54,_0x4adf5c=_0x20f0d4[_0x53f184(0x3b8)]-0x1,_0xf425f6;_0x4adf5c>=0x0;_0x4adf5c--)(_0xf425f6=_0x20f0d4[_0x4adf5c])&&(_0xa281d3=(_0x16efd3?_0xf425f6(_0x182e54,_0x394f4f,_0xa281d3):_0xf425f6(_0xa281d3))||_0xa281d3);return _0x16efd3&&_0xa281d3&&_0xbd2595(_0x182e54,_0x394f4f,_0xa281d3),_0xa281d3;},_0x277f14=(_0x549da6,_0x159e60)=>(_0x50ef63,_0x1acb9d)=>_0x159e60(_0x50ef63,_0x1acb9d,_0x549da6);let _0x1e0133=class{constructor(_0x5a1659){const _0x1d333b=_0x2b1dc8;this['_httpService']=_0x5a1659,this[_0x1d333b(0x2bc)]();}[_0x2b1dc8(0x2bc)](){const _0x200ca3=_0x2b1dc8;this[_0x200ca3(0x208)][_0x200ca3(0x45f)]({'interceptor':(_0x3a3b56,_0x329d30)=>{const _0x8da02c=_0x200ca3,_0x78e529=_0x3a3b56['headers'],_0x5014a7=_0x1c126e[_0x8da02c(0x30a)]();return _0x5014a7&&_0x78e529[_0x8da02c(0x305)](_0x8da02c(0x455),_0x5014a7),_0x329d30(_0x3a3b56);}});}};_0x1e0133=_0x154a1a([_0x277f14(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc['HTTPService']))],_0x1e0133);var _0x4e40e8=Object[_0x2b1dc8(0x47b)],_0x5662a7=Object[_0x2b1dc8(0x299)],_0x476d61=(_0xa272bb,_0x49c232,_0x351c70,_0x5567f6)=>{const _0x484d13=_0x2b1dc8;for(var _0x34e0ff=_0x5567f6>0x1?void 0x0:_0x5567f6?_0x5662a7(_0x49c232,_0x351c70):_0x49c232,_0x3a9241=_0xa272bb[_0x484d13(0x3b8)]-0x1,_0x193bfd;_0x3a9241>=0x0;_0x3a9241--)(_0x193bfd=_0xa272bb[_0x3a9241])&&(_0x34e0ff=(_0x5567f6?_0x193bfd(_0x49c232,_0x351c70,_0x34e0ff):_0x193bfd(_0x34e0ff))||_0x34e0ff);return _0x5567f6&&_0x34e0ff&&_0x4e40e8(_0x49c232,_0x351c70,_0x34e0ff),_0x34e0ff;},_0x204a98=(_0x22f7a0,_0x36568c)=>(_0x1781fb,_0x66405e)=>_0x36568c(_0x1781fb,_0x66405e,_0x22f7a0);const _0xf3cd32=['image/png',_0x2b1dc8(0x53e),_0x2b1dc8(0x408),'image/gif','image/bmp'],_0x55ef15=0x5*0x400*0x400,_0x22f4e0=_0x2b1dc8(0x278),_0x1cefdb='/universer-api/stream/file/upload',_0xf00546=_0x2b1dc8(0x4eb),_0x41175a=_0x2b1dc8(0x430);_0x2010a0['ImageIoService']=class{constructor(_0x1d2de9,_0x3a30d5,_0x3af8cf){const _0x2f168e=_0x2b1dc8;_0x58b0b3(this,_0x2f168e(0x26d),0x0),_0x58b0b3(this,_0x2f168e(0x252),new _0x2fad13[(_0x2f168e(0x2ee))]()),_0x58b0b3(this,_0x2f168e(0x357),this[_0x2f168e(0x252)]),_0x58b0b3(this,_0x2f168e(0x42d),new Map()),(this[_0x2f168e(0x208)]=_0x1d2de9,this[_0x2f168e(0x3aa)]=_0x3a30d5,this[_0x2f168e(0x267)]=_0x3af8cf);}[_0x2b1dc8(0x1ca)](_0x5c06f5){const _0x825c4=_0x2b1dc8;this[_0x825c4(0x26d)]=_0x5c06f5,this['_change$'][_0x825c4(0x522)](_0x5c06f5);}[_0x2b1dc8(0x24d)](_0x1acc3a,_0xa70e2c){const _0x3f4406=_0x2b1dc8;if(_0xa70e2c===_0x2b5006[_0x3f4406(0x451)][_0x3f4406(0x209)]){const _0x7778e1=new Image();return _0x7778e1['src']=_0x1acc3a,_0x7778e1;}return this['_imageSourceCache']['get'](_0x1acc3a);}[_0x2b1dc8(0x363)](_0x597038,_0x4762fc,_0x9979f5){const _0x5a5762=_0x2b1dc8;_0x4762fc===_0x2b5006['ImageSourceType']['BASE64']||_0x9979f5==null||this['_imageSourceCache'][_0x5a5762(0x305)](_0x597038,_0x9979f5);}async[_0x2b1dc8(0x3a7)](_0xf62a56){const _0x35f232=_0x2b1dc8;try{const _0x4b9adc=this[_0x35f232(0x4fc)](this['_getSignURL'](),''+_0xf62a56),_0x31a92c=(await this[_0x35f232(0x208)]['get'](_0x4b9adc))['body'];if(_0x31a92c['error']&&_0x31a92c['error'][_0x35f232(0x38f)]===_0x37b011['OK']){const _0x2cf5c6=new URL(_0x31a92c['url'],this['_getDownloadEndpointURL']())[_0x35f232(0x531)]();return Promise[_0x35f232(0x405)](_0x2cf5c6);}return Promise[_0x35f232(0x348)](_0x31a92c[_0x35f232(0x3e4)]);}catch(_0x1ef05d){return Promise[_0x35f232(0x348)](_0x1ef05d);}}async[_0x2b1dc8(0x52c)](_0xfe9482){const _0x380383=_0x2b1dc8;let _0xbb5ad1='';if(!_0xf3cd32[_0x380383(0x538)](_0xfe9482[_0x380383(0x4f1)]))return this[_0x380383(0x558)](),Promise[_0x380383(0x348)](new Error(_0x2b5006[_0x380383(0x56d)]['ERROR_IMAGE_TYPE']));if(_0xfe9482[_0x380383(0x199)]>_0x55ef15)return this['_decreaseWaiting'](),Promise[_0x380383(0x348)](new Error(_0x2b5006['ImageUploadStatusType'][_0x380383(0x49c)]));try{const _0x45986c=new FormData();_0x45986c[_0x380383(0x375)]('file',_0xfe9482);const _0x343e54=this['_univerInstanceService'][_0x380383(0x279)](),_0x440f40=_0x343e54==null?void 0x0:_0x343e54[_0x380383(0x28e)]();if(!_0x440f40)throw new Error(_0x380383(0x2b6));const _0x3dd992=this['_getUploadFileURL']()+'?size='+_0xfe9482[_0x380383(0x199)]['toString']()+'&source='+_0xe85c2c[_0x380383(0x4b2)]+_0x380383(0x54c)+encodeURIComponent(_0x440f40),_0x416f5f=await(await fetch(_0x3dd992,{'method':'POST','body':_0x45986c}))[_0x380383(0x2d1)]();if(typeof _0x416f5f[_0x380383(0x2dd)]!=_0x380383(0x596))return this[_0x380383(0x558)](),Promise['reject'](new Error(_0x2b5006['ImageUploadStatusType'][_0x380383(0x18f)]));_0xbb5ad1=_0x416f5f[_0x380383(0x2dd)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x2b5006[_0x380383(0x56d)]['ERROR_IMAGE']));}return new Promise((_0x401f56,_0x4c47f5)=>{const _0x1f2f21=_0x380383,_0x52b452=new FileReader();_0x52b452['readAsDataURL'](_0xfe9482),_0x52b452[_0x1f2f21(0x2fe)]=_0x509575=>{const _0x26051a=_0x1f2f21;var _0x35a410;const _0x3f4b8e=(_0x35a410=_0x509575['target'])==null?void 0x0:_0x35a410[_0x26051a(0x39c)];if(_0x3f4b8e==null){this[_0x26051a(0x558)](),_0x4c47f5(new Error(_0x2b5006['ImageUploadStatusType'][_0x26051a(0x18f)]));return;}const _0x256a14=_0x5821d4[_0x26051a(0x325)][_0x26051a(0x582)](0x6);_0x401f56({'imageId':_0x256a14,'imageSourceType':_0x2b5006['ImageSourceType'][_0x26051a(0x509)],'source':_0xbb5ad1,'base64Cache':_0x3f4b8e,'status':_0x2b5006[_0x26051a(0x56d)][_0x26051a(0x19c)]}),this[_0x26051a(0x558)]();};});}[_0x2b1dc8(0x4be)](){const _0x560e6d=_0x2b1dc8;var _0x5d8501,_0x43f0e0;const _0x4eda29=this['_configService']['getConfig'](_0x22f4e0),_0x39e25c=this[_0x560e6d(0x3aa)][_0x560e6d(0x54b)](_0x451f80);return(_0x43f0e0=(_0x5d8501=_0x39e25c==null?void 0x0:_0x39e25c[_0x560e6d(0x3b2)])!=null?_0x5d8501:_0x4eda29)!=null?_0x43f0e0:_0x1cefdb;}[_0x2b1dc8(0x39b)](){const _0x185a31=_0x2b1dc8;var _0x4a6de6,_0x5668cd;const _0x1a2272=this[_0x185a31(0x3aa)][_0x185a31(0x54b)](_0xf00546),_0x4c2634=this[_0x185a31(0x3aa)]['getConfig'](_0x451f80);return(_0x5668cd=(_0x4a6de6=_0x4c2634==null?void 0x0:_0x4c2634[_0x185a31(0x333)])!=null?_0x4a6de6:_0x1a2272)!=null?_0x5668cd:_0x41175a;}[_0x2b1dc8(0x1ba)](){const _0x4d6068=_0x2b1dc8;var _0x3e814f;const _0x26ac50=this[_0x4d6068(0x3aa)][_0x4d6068(0x54b)](_0x451f80);return(_0x3e814f=_0x26ac50==null?void 0x0:_0x26ac50[_0x4d6068(0x3bb)])!=null?_0x3e814f:location[_0x4d6068(0x445)];}[_0x2b1dc8(0x4fc)](_0x4b46fa,_0x4b698d){const _0x4b0238=_0x2b1dc8;return _0x4b46fa[_0x4b0238(0x1ef)]('{fileID}',_0x4b698d);}[_0x2b1dc8(0x558)](){const _0x4f53a0=_0x2b1dc8;this[_0x4f53a0(0x26d)]-=0x1,this[_0x4f53a0(0x252)][_0x4f53a0(0x522)](this[_0x4f53a0(0x26d)]);}},_0x2010a0[_0x2b1dc8(0x51e)]=_0x476d61([_0x204a98(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc[_0x2b1dc8(0x31b)])),_0x204a98(0x1,_0x5821d4['IConfigService']),_0x204a98(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x486)]))],_0x2010a0[_0x2b1dc8(0x51e)]);var _0x562b2c=Object[_0x2b1dc8(0x47b)],_0x1bd84a=Object[_0x2b1dc8(0x299)],_0x1f56af=(_0xa680c3,_0x5cd192,_0x2cb488,_0x311d6f)=>{for(var _0x50e24c=_0x311d6f>0x1?void 0x0:_0x311d6f?_0x1bd84a(_0x5cd192,_0x2cb488):_0x5cd192,_0x9cb72e=_0xa680c3['length']-0x1,_0x3972e0;_0x9cb72e>=0x0;_0x9cb72e--)(_0x3972e0=_0xa680c3[_0x9cb72e])&&(_0x50e24c=(_0x311d6f?_0x3972e0(_0x5cd192,_0x2cb488,_0x50e24c):_0x3972e0(_0x50e24c))||_0x50e24c);return _0x311d6f&&_0x50e24c&&_0x562b2c(_0x5cd192,_0x2cb488,_0x50e24c),_0x50e24c;},_0x2e79e8=(_0xcdb1f2,_0x25542d)=>(_0x1f77d3,_0x617bef)=>_0x25542d(_0x1f77d3,_0x617bef,_0xcdb1f2);let _0x5caecb=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x5c7b6d,_0x219a46,_0x57e760,_0x4d3a29,_0x2849ad){const _0x56b6fe=_0x2b1dc8;super(),this[_0x56b6fe(0x4cd)]=_0x5c7b6d,this[_0x56b6fe(0x267)]=_0x219a46,this[_0x56b6fe(0x39f)]=_0x57e760,this[_0x56b6fe(0x447)]=_0x4d3a29,this['_localeService']=_0x2849ad,this[_0x56b6fe(0x36a)](),this[_0x56b6fe(0x342)]();}[_0x2b1dc8(0x342)](){const _0x854e10=_0x2b1dc8,_0xfa2526=async _0x3bac74=>{const _0x37e4fd=_0x5448;(await this['_collaborationSessionService'][_0x37e4fd(0x4bc)](_0x3bac74))['event$']['pipe'](_0xbf2513[_0x37e4fd(0x565)](_0xc1672e=>_0xc1672e[_0x37e4fd(0x510)]===_0xf29ce7[_0x37e4fd(0x25c)][_0x37e4fd(0x29d)]),_0xbf2513[_0x37e4fd(0x1de)](this[_0x37e4fd(0x557)]))[_0x37e4fd(0x358)](_0x17c071=>{const _0x47bfdf=_0x37e4fd,_0x54530b=_0x17c071,{reason:_0x5a58d5}=_0x54530b[_0x47bfdf(0x210)];this[_0x47bfdf(0x4cd)][_0x47bfdf(0x37f)](_0x32b063['IMessageService'])[_0x47bfdf(0x221)]({'type':_0x2997c5[_0x47bfdf(0x410)][_0x47bfdf(0x4fb)],'content':this['_localeService']['t'](_0x47bfdf(0x364))+'('+_0x5a58d5+')'}),this[_0x47bfdf(0x39f)]['updatePermissionPoint'](new _0x872f07[(_0x47bfdf(0x4e6))](_0x3bac74)['id'],!0x1),this['_collaborationSessionService'][_0x47bfdf(0x52e)](_0x3bac74);});};_0x2fad13[_0x854e10(0x2b4)](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5821d4['UniverInstanceType'][_0x854e10(0x3f1)]),this[_0x854e10(0x267)]['getTypeOfUnitAdded$'](_0x5821d4['UniverInstanceType'][_0x854e10(0x202)]))[_0x854e10(0x378)](_0xbf2513[_0x854e10(0x370)](_0x2341f3=>_0x2341f3[_0x854e10(0x28e)]()),_0xbf2513[_0x854e10(0x565)](_0x2813cb=>!_0x5821d4[_0x854e10(0x217)](_0x2813cb)),_0xbf2513[_0x854e10(0x1de)](this['dispose$']))[_0x854e10(0x358)](_0x4cce10=>{_0xfa2526(_0x4cce10);});}[_0x2b1dc8(0x36a)](){const _0x3d8fdf=_0x2b1dc8,_0x5d7821=async _0x367654=>{const _0x351c58=_0x5448;(await this[_0x351c58(0x447)][_0x351c58(0x4bc)](_0x367654))[_0x351c58(0x51f)][_0x351c58(0x378)](_0xbf2513[_0x351c58(0x565)](_0x381567=>_0x381567['eventID']===_0xf29ce7[_0x351c58(0x25c)][_0x351c58(0x2de)]),_0xbf2513['takeUntil'](this[_0x351c58(0x557)]))[_0x351c58(0x358)](_0x4b9239=>{const _0x1fce72=_0x351c58,_0x3f0d4a=_0x4b9239,{objectId:_0x50ad62}=_0x3f0d4a[_0x1fce72(0x210)],_0x592284=this['_injector'][_0x1fce72(0x37f)](_0x15b72e['SheetPermissionInitController']);_0x50ad62===_0x367654?_0x592284['initWorkbookPermissionChange'](_0x367654):_0x592284['refreshPermission'](_0x367654,_0x50ad62);});};_0x2fad13[_0x3d8fdf(0x2b4)](this[_0x3d8fdf(0x267)][_0x3d8fdf(0x34c)](_0x5821d4[_0x3d8fdf(0x566)][_0x3d8fdf(0x3f1)]),this[_0x3d8fdf(0x267)][_0x3d8fdf(0x34c)](_0x5821d4[_0x3d8fdf(0x566)][_0x3d8fdf(0x202)]))[_0x3d8fdf(0x378)](_0xbf2513[_0x3d8fdf(0x370)](_0x1435fb=>_0x1435fb['getUnitId']()),_0xbf2513[_0x3d8fdf(0x565)](_0x12c435=>!_0x5821d4[_0x3d8fdf(0x217)](_0x12c435)),_0xbf2513[_0x3d8fdf(0x1de)](this[_0x3d8fdf(0x557)]))[_0x3d8fdf(0x358)](_0x5b1d81=>{_0x5d7821(_0x5b1d81);});}};_0x5caecb=_0x1f56af([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4['LifecycleStages']['Starting'],_0x5caecb),_0x2e79e8(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x2e79e8(0x1,_0x5821d4[_0x2b1dc8(0x486)]),_0x2e79e8(0x2,_0x5821d4[_0x2b1dc8(0x312)]),_0x2e79e8(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0['CollaborationSessionService'])),_0x2e79e8(0x4,_0x5821d4['Inject'](_0x5821d4[_0x2b1dc8(0x27e)]))],_0x5caecb);var _0x1a2fdf=Object['defineProperty'],_0x39303b=Object[_0x2b1dc8(0x299)],_0x3cc1f9=(_0x2eaa23,_0x29725c,_0x37cdf,_0x26c881)=>{const _0x5bbf59=_0x2b1dc8;for(var _0x289229=_0x26c881>0x1?void 0x0:_0x26c881?_0x39303b(_0x29725c,_0x37cdf):_0x29725c,_0x902edd=_0x2eaa23[_0x5bbf59(0x3b8)]-0x1,_0x56af06;_0x902edd>=0x0;_0x902edd--)(_0x56af06=_0x2eaa23[_0x902edd])&&(_0x289229=(_0x26c881?_0x56af06(_0x29725c,_0x37cdf,_0x289229):_0x56af06(_0x289229))||_0x289229);return _0x26c881&&_0x289229&&_0x1a2fdf(_0x29725c,_0x37cdf,_0x289229),_0x289229;},_0x22308c=(_0x33a120,_0x5e19dc)=>(_0x368404,_0x124901)=>_0x5e19dc(_0x368404,_0x124901,_0x33a120);_0x2010a0[_0x2b1dc8(0x23a)]=class{constructor(_0x4a37ba,_0x58689c){const _0x1dcdd2=_0x2b1dc8;this[_0x1dcdd2(0x3aa)]=_0x4a37ba,this[_0x1dcdd2(0x208)]=_0x58689c;}async['getUnitOnRev'](_0x5a3e3b,_0xad8337){const _0x58a33a=_0x2b1dc8;var _0x20c969;const {unitID:_0x607814,type:_0xbc3674,revision:_0x3c1bd3=0x0}=_0xad8337,_0x5efda3=this[_0x58a33a(0x1da)]()+'/'+_0xbc3674+_0x58a33a(0x24f)+_0x607814+'/rev/'+_0x3c1bd3,_0xb6d4f1=(await this['_httpService'][_0x58a33a(0x37f)](_0x5efda3))[_0x58a33a(0x2b7)],_0x3ad431=(_0x20c969=_0xb6d4f1[_0x58a33a(0x338)])==null?void 0x0:_0x20c969[_0x58a33a(0x2ad)];if(_0x3ad431){const _0x225e7f=_0x3ad431==null?void 0x0:_0x3ad431['originalMeta'],_0x3f1a90=_0xf29ce7[_0x58a33a(0x472)][_0x58a33a(0x546)](_0xf29ce7[_0x58a33a(0x2ff)](_0x225e7f));_0x3ad431[_0x58a33a(0x48d)]=_0x3f1a90,Object[_0x58a33a(0x18c)](_0x3ad431['sheets'])['forEach'](([,_0x2727ac])=>{const _0x4cc9ee=_0x58a33a,_0xea3569=_0x2727ac[_0x4cc9ee(0x48d)],_0x270489=_0xf29ce7[_0x4cc9ee(0x472)]['encode'](_0xf29ce7[_0x4cc9ee(0x2ff)](_0xea3569));_0x2727ac['originalMeta']=_0x270489;});}return _0xb6d4f1;}async[_0x2b1dc8(0x3e0)](_0x4b5cb1,_0x2a4e96){const _0x2bb373=_0x2b1dc8,{unitID:_0x5d8c30,type:_0x22dce9,blockID:_0x54f235}=_0x2a4e96,_0x290dc0=this['_getAPIPrefix']()+'/'+_0x22dce9+_0x2bb373(0x24f)+_0x5d8c30+_0x2bb373(0x1cd)+_0x54f235;return(await this[_0x2bb373(0x208)]['get'](_0x290dc0))[_0x2bb373(0x2b7)];}async[_0x2b1dc8(0x50c)](_0x14e117,_0x2c707c){const _0x26dcf9=_0x2b1dc8,{unitID:_0x17c9b5,type:_0x3eefe3,blockID:_0x4083fe}=_0x2c707c,_0x739480=this[_0x26dcf9(0x29b)]()+'/block/'+_0x3eefe3+_0x26dcf9(0x24f)+_0x17c9b5+_0x26dcf9(0x1cd)+_0x4083fe;return(await this[_0x26dcf9(0x208)][_0x26dcf9(0x37f)](_0x739480))[_0x26dcf9(0x2b7)];}async[_0x2b1dc8(0x3fc)](_0x4e46cc,_0x3c5daf){const _0x41ca94=_0x2b1dc8,{unitID:_0x41582c,type:_0x5bfe52,from:_0x2c0885,to:_0xbb2a93}=_0x3c5daf,_0x3f9c4a=this[_0x41ca94(0x29b)]()+'/'+_0x5bfe52+'/unit/'+_0x41582c+_0x41ca94(0x23b)+_0x2c0885+_0x41ca94(0x40b)+_0xbb2a93;return(await this[_0x41ca94(0x208)][_0x41ca94(0x37f)](_0x3f9c4a))[_0x41ca94(0x2b7)];}[_0x2b1dc8(0x1da)](){const _0x5317f6=_0x2b1dc8;var _0x3347d4;return(_0x3347d4=this[_0x5317f6(0x3aa)][_0x5317f6(0x54b)](_0x5457b5))!=null?_0x3347d4:this[_0x5317f6(0x29b)]();}[_0x2b1dc8(0x29b)](){const _0x58c843=_0x2b1dc8;var _0x17bb4c,_0x3e8873;const _0x34c6f8=this[_0x58c843(0x3aa)]['getConfig'](_0x22f28d),_0x27a1d6=this[_0x58c843(0x3aa)]['getConfig'](_0x451f80);return(_0x3e8873=(_0x17bb4c=_0x27a1d6==null?void 0x0:_0x27a1d6['snapshotServerUrl'])!=null?_0x17bb4c:_0x34c6f8)!=null?_0x3e8873:_0x34b7c6;}async[_0x2b1dc8(0x2e9)](_0x4ea4b5,_0x3fcf25){const _0x513319=_0x2b1dc8,_0x4b741f=_0x513319(0x1af)+_0x3fcf25['type']+_0x513319(0x24f)+_0x3fcf25[_0x513319(0x3d4)]+_0x513319(0x36f);return(await this[_0x513319(0x208)][_0x513319(0x37f)](_0x4b741f,{'params':{'resourceId':JSON[_0x513319(0x3f3)](_0x3fcf25[_0x513319(0x3de)])}}))['body'];}[_0x2b1dc8(0x562)](){const _0x546070=_0x2b1dc8;throw new Error(_0x546070(0x3d3));}[_0x2b1dc8(0x3be)](){const _0xc7fde7=_0x2b1dc8;throw new Error(_0xc7fde7(0x3d3));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2b1dc8(0x40f)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x2010a0[_0x2b1dc8(0x23a)]=_0x3cc1f9([_0x22308c(0x0,_0x5821d4[_0x2b1dc8(0x47d)]),_0x22308c(0x1,_0x5821d4['Inject'](_0x19a2cc[_0x2b1dc8(0x31b)]))],_0x2010a0[_0x2b1dc8(0x23a)]);var _0x3b3f8a=Object[_0x2b1dc8(0x47b)],_0x2df51a=Object[_0x2b1dc8(0x299)],_0x4a1679=(_0x262045,_0x2fca8d,_0x48bff7,_0x535194)=>{const _0x192ff5=_0x2b1dc8;for(var _0x230775=_0x535194>0x1?void 0x0:_0x535194?_0x2df51a(_0x2fca8d,_0x48bff7):_0x2fca8d,_0x8ba1c9=_0x262045[_0x192ff5(0x3b8)]-0x1,_0x555eeb;_0x8ba1c9>=0x0;_0x8ba1c9--)(_0x555eeb=_0x262045[_0x8ba1c9])&&(_0x230775=(_0x535194?_0x555eeb(_0x2fca8d,_0x48bff7,_0x230775):_0x555eeb(_0x230775))||_0x230775);return _0x535194&&_0x230775&&_0x3b3f8a(_0x2fca8d,_0x48bff7,_0x230775),_0x230775;},_0x3b2886=(_0x5bbd4e,_0x3f62eb)=>(_0x40fb69,_0x5f234b)=>_0x3f62eb(_0x40fb69,_0x5f234b,_0x5bbd4e);let _0x17bd31=class extends _0x5821d4['LocalUndoRedoService']{constructor(_0x1a83d6,_0x53a104,_0xac75ab,_0x4f8e04,_0x3c2304){const _0x69fbef=_0x2b1dc8;super(_0x1a83d6,_0x53a104,_0xac75ab),this[_0x69fbef(0x29e)]=_0x4f8e04,this[_0x69fbef(0x26b)]=_0x3c2304;}[_0x2b1dc8(0x571)](_0x3661f2,_0x5768c0){const _0x2689ca=_0x2b1dc8,_0x8303a6=this[_0x2689ca(0x3ad)](_0x3661f2);if(_0x8303a6)try{const _0x558dc3=this[_0x2689ca(0x499)](_0x8303a6,_0x5768c0);this[_0x2689ca(0x574)](_0x3661f2,_0x558dc3);}catch(_0x455af9){this[_0x2689ca(0x26b)]['error']('[CollaborationUndoRedoService]',_0x455af9),this[_0x2689ca(0x1c9)](_0x3661f2);}const _0x452218=this[_0x2689ca(0x224)](_0x3661f2);if(_0x452218)try{const _0x4a5b21=this[_0x2689ca(0x499)](_0x452218,_0x5768c0);this[_0x2689ca(0x57b)](_0x3661f2,_0x4a5b21);}catch(_0x10180a){this[_0x2689ca(0x26b)][_0x2689ca(0x3e4)](_0x10180a),this['_clearRedo'](_0x3661f2);}}[_0x2b1dc8(0x1c9)](_0x571e53){const _0x11b9fc=_0x2b1dc8,_0x27265c=this['_getUndoStack'](_0x571e53);_0x27265c&&(_0x27265c[_0x11b9fc(0x3b8)]=0x0,this[_0x11b9fc(0x1b8)]());}[_0x2b1dc8(0x2ae)](_0x46ddf3){const _0x4568ba=_0x2b1dc8,_0x3a7b4e=this[_0x4568ba(0x224)](_0x46ddf3);_0x3a7b4e&&(_0x3a7b4e[_0x4568ba(0x3b8)]=0x0,this[_0x4568ba(0x1b8)]());}[_0x2b1dc8(0x574)](_0x461d5b,_0x32ef73){const _0x1d676c=_0x2b1dc8;this[_0x1d676c(0x4b5)]['set'](_0x461d5b,_0x32ef73),this[_0x1d676c(0x1b8)]();}['_substituteRedoStack'](_0x128b81,_0x3b7685){const _0x51d704=_0x2b1dc8;this[_0x51d704(0x289)]['set'](_0x128b81,_0x3b7685),this[_0x51d704(0x1b8)]();}[_0x2b1dc8(0x499)](_0x403313,_0x331f55){const _0xd4ed96=_0x2b1dc8,_0x116ecb=[];let _0x328607=_0x331f55,_0xed75ab=_0x331f55;for(let _0x3ea73f=_0x403313[_0xd4ed96(0x3b8)]-0x1;_0x3ea73f>=0x0;_0x3ea73f--){const {unitID:_0x3dd0ee,undoMutations:_0x48803c,redoMutations:_0x49ab3f}=_0x403313[_0x3ea73f],_0x37fdb9=this[_0xd4ed96(0x29e)][_0xd4ed96(0x5a2)](_0x328607,_0x48803c),_0x3c9bc6=this[_0xd4ed96(0x29e)][_0xd4ed96(0x5a2)](_0xed75ab,_0x49ab3f);if(_0xf29ce7['isTransformMutationsWithChangesetFailure'](_0x37fdb9)||_0xf29ce7[_0xd4ed96(0x58f)](_0x3c9bc6)){this[_0xd4ed96(0x26b)][_0xd4ed96(0x3e4)]('[CollaborationUndoRedoService]',_0xd4ed96(0x4cf),_0x37fdb9,_0x3c9bc6);break;}_0x328607=_0x37fdb9[_0xd4ed96(0x37c)],_0xed75ab=_0x3c9bc6['c1Prime'],_0x116ecb[_0xd4ed96(0x3fb)]({'unitID':_0x3dd0ee,'undoMutations':_0x37fdb9['m2Prime'],'redoMutations':_0x3c9bc6[_0xd4ed96(0x1a3)]});}return _0x116ecb[_0xd4ed96(0x380)]();}};_0x17bd31=_0x4a1679([_0x3b2886(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x3b2886(0x1,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x3b2886(0x2,_0x5821d4['IContextService']),_0x3b2886(0x3,_0xf29ce7[_0x2b1dc8(0x487)]),_0x3b2886(0x4,_0x5821d4[_0x2b1dc8(0x468)])],_0x17bd31);class _0x239bf7 extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(){const _0x136898=_0x2b1dc8;super(),_0x58b0b3(this,_0x136898(0x1fa)),this[_0x136898(0x1fa)]=_0x2fad13[_0x136898(0x53d)](window,'popstate')['pipe'](_0x2fad13[_0x136898(0x1de)](this[_0x136898(0x557)]),_0x2fad13[_0x136898(0x1f6)](0x1),_0x2fad13[_0x136898(0x37b)](void 0x0));}[_0x2b1dc8(0x2d8)](_0x1902b0,_0x1b0638,_0x3a1de4=!0x1){const _0x31bfcf=_0x2b1dc8,_0x29833b=new URL(window['location'][_0x31bfcf(0x421)]);_0x29833b['searchParams'][_0x31bfcf(0x305)](_0x1902b0,_0x1b0638),_0x3a1de4?window['history'][_0x31bfcf(0x388)]('','',_0x29833b[_0x31bfcf(0x531)]()):window['history'][_0x31bfcf(0x349)]('','',_0x29833b[_0x31bfcf(0x531)]());}[_0x2b1dc8(0x5ab)](_0x41c1b7,_0xbfab45=!0x1){const _0x2a6584=_0x2b1dc8,_0x58c219=new URL(window[_0x2a6584(0x379)][_0x2a6584(0x421)]);_0x58c219['searchParams'][_0x2a6584(0x189)](_0x41c1b7),_0xbfab45?window[_0x2a6584(0x1e7)]['replaceState']('','',_0x58c219['toString']()):window[_0x2a6584(0x1e7)][_0x2a6584(0x349)]('','',_0x58c219['toString']());}['getParam'](_0x43156e){const _0x31ed10=_0x2b1dc8;var _0x8bfe6d;return(_0x8bfe6d=new URL(window[_0x31ed10(0x379)][_0x31ed10(0x421)])['searchParams'][_0x31ed10(0x37f)](_0x43156e))!=null?_0x8bfe6d:void 0x0;}}var _0xeec76e=Object[_0x2b1dc8(0x47b)],_0x4be45c=Object[_0x2b1dc8(0x299)],_0x1a9121=(_0x11ea0e,_0x5a0ab6,_0x2ee661)=>_0x5a0ab6 in _0x11ea0e?_0xeec76e(_0x11ea0e,_0x5a0ab6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ee661}):_0x11ea0e[_0x5a0ab6]=_0x2ee661,_0x5c9d00=(_0x94dcf2,_0x5bfe76,_0x1e7a21,_0x583544)=>{const _0x265b5a=_0x2b1dc8;for(var _0x31ab8c=_0x583544>0x1?void 0x0:_0x583544?_0x4be45c(_0x5bfe76,_0x1e7a21):_0x5bfe76,_0x3f8082=_0x94dcf2[_0x265b5a(0x3b8)]-0x1,_0xe55fd7;_0x3f8082>=0x0;_0x3f8082--)(_0xe55fd7=_0x94dcf2[_0x3f8082])&&(_0x31ab8c=(_0x583544?_0xe55fd7(_0x5bfe76,_0x1e7a21,_0x31ab8c):_0xe55fd7(_0x31ab8c))||_0x31ab8c);return _0x583544&&_0x31ab8c&&_0xeec76e(_0x5bfe76,_0x1e7a21,_0x31ab8c),_0x31ab8c;},_0x152187=(_0x5ac015,_0xba687f)=>(_0x54cdd1,_0x4bf3b6)=>_0xba687f(_0x54cdd1,_0x4bf3b6,_0x5ac015),_0x23eae8=(_0x303c74,_0x307a03,_0x11dc25)=>_0x1a9121(_0x303c74,_0x307a03+'',_0x11dc25);const _0x474b65=_0x2b1dc8(0x489);_0x2010a0['UniverCollaborationClientPlugin']=class extends _0x5821d4[_0x2b1dc8(0x495)]{constructor(_0x46ac15=_0x10e363,_0x1673cd,_0x1478ec,_0x269e43,_0xb69c4f){const _0x5079fb=_0x2b1dc8;super(),this[_0x5079fb(0x3c3)]=_0x46ac15,this['_logService']=_0x1673cd,this[_0x5079fb(0x29a)]=_0x1478ec,this[_0x5079fb(0x4cd)]=_0x269e43,this[_0x5079fb(0x3aa)]=_0xb69c4f;const {..._0x5eb392}=this['_config'];this['_configService'][_0x5079fb(0x336)](_0x451f80,_0x5eb392);}[_0x2b1dc8(0x4a3)](){this['_registerDependencies']();}[_0x2b1dc8(0x4df)](){const _0x48f7ae=_0x2b1dc8;this[_0x48f7ae(0x2f6)]();}[_0x2b1dc8(0x464)](){const _0x370faf=_0x2b1dc8;var _0x362631,_0x5c5fd1,_0x4433a5,_0x17fa60;this[_0x370faf(0x4cd)][_0x370faf(0x532)](_0x5821d4[_0x370faf(0x2ac)])&&this['_logService'][_0x370faf(0x3e4)]('[UniverCollaborationClientPlugin]',_0x370faf(0x4a6));let _0x468f24=[[_0x5821d4['IUndoRedoService'],{'useClass':_0x17bd31}],[_0x2010a0['CollaborationSessionService']],[_0x38f88a],[_0x19a2cc[_0x370faf(0x31b)]],[_0x3b25ce,{'useClass':_0x239bf7}],[_0x35f626],[_0x2010a0[_0x370faf(0x222)]],[_0x19a2cc[_0x370faf(0x22b)]],[_0x22d44e],[_0x493ead],[_0x203e1e],[_0x4ce206],[_0x36375a],[_0x1e0133],[_0x4bccc8],[_0x5caecb],[_0x5c41db,{'useClass':(_0x5c5fd1=(_0x362631=this[_0x370faf(0x3c3)])==null?void 0x0:_0x362631[_0x370faf(0x3eb)])!=null?_0x5c5fd1:_0x2010a0[_0x370faf(0x1ad)]}],[_0x19a2cc['IHTTPImplementation'],{'useClass':_0x19a2cc[_0x370faf(0x2e3)]}],[_0xf29ce7[_0x370faf(0x27a)],{'useClass':_0x2010a0['SnapshotServerOverHTTPService']}],[_0x5821d4[_0x370faf(0x26e)],{'useClass':_0x2010a0['AuthzIoHttpService']}],[_0x2b5006[_0x370faf(0x2f9)],{'useClass':_0x2010a0[_0x370faf(0x51e)]}],[_0x2010a0[_0x370faf(0x1f8)]],[_0x2010a0[_0x370faf(0x450)]],[_0x2010a0[_0x370faf(0x2b3)]],[_0x592f9e],[_0x3ae120]];(_0x4433a5=this[_0x370faf(0x3c3)])!=null&&_0x4433a5[_0x370faf(0x48c)]&&_0x468f24[_0x370faf(0x3fb)]([_0x4442df,{'useClass':_0x2dacc4}]),_0x468f24=_0x5821d4[_0x370faf(0x313)](_0x468f24,(_0x17fa60=this[_0x370faf(0x3c3)])==null?void 0x0:_0x17fa60[_0x370faf(0x46d)]),_0x468f24[_0x370faf(0x3bc)](_0x1d81c3=>this['_injector'][_0x370faf(0x25b)](_0x1d81c3)),this['_initModules']();}['_registerRenderDependencies'](){const _0x220968=_0x2b1dc8;this[_0x220968(0x470)](this[_0x220968(0x29a)][_0x220968(0x2cf)](_0x5821d4[_0x220968(0x566)]['UNIVER_DOC'],[_0x273e10])),this[_0x220968(0x470)](this['_renderManagerService'][_0x220968(0x2cf)](_0x5821d4['UniverInstanceType'][_0x220968(0x3f1)],[_0x1264b5]));}[_0x2b1dc8(0x3c4)](){const _0x33ab46=_0x2b1dc8;var _0x4423ff,_0x54fd49;this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x19a2cc[_0x33ab46(0x31b)])[_0x33ab46(0x45f)]({'priority':0x14,'interceptor':_0x19a2cc[_0x33ab46(0x5ac)]({'maxParallel':0x6})}),this['_injector']['get'](_0x1e0133),(_0x4423ff=this[_0x33ab46(0x3c3)])!=null&&_0x4423ff[_0x33ab46(0x391)]||this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x2010a0['LocalCacheService'])[_0x33ab46(0x1c3)](),(_0x54fd49=this[_0x33ab46(0x3c3)])!=null&&_0x54fd49[_0x33ab46(0x492)]&&this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x36375a),this['_injector'][_0x33ab46(0x37f)](_0x2010a0[_0x33ab46(0x1f8)]),this[_0x33ab46(0x4cd)][_0x33ab46(0x532)](_0x2010a0[_0x33ab46(0x2b3)])&&this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x2010a0[_0x33ab46(0x2b3)]);}},_0x23eae8(_0x2010a0['UniverCollaborationClientPlugin'],'pluginName',_0x474b65),_0x2010a0[_0x2b1dc8(0x4fa)]=_0x5c9d00([_0x5821d4[_0x2b1dc8(0x256)](_0xf29ce7[_0x2b1dc8(0x4dc)]),_0x152187(0x1,_0x5821d4['ILogService']),_0x152187(0x2,_0x33b476[_0x2b1dc8(0x294)]),_0x152187(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x152187(0x4,_0x5821d4[_0x2b1dc8(0x47d)])],_0x2010a0['UniverCollaborationClientPlugin']),_0x2010a0[_0x2b1dc8(0x4e0)]=_0x338186,_0x2010a0['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x5d7118,_0x2010a0['COLLAB_WEB_SOCKET_URL_KEY']=_0x26584f,_0x2010a0[_0x2b1dc8(0x47f)]=_0x109234,_0x2010a0[_0x2b1dc8(0x34b)]=_0xf6cf50,_0x2010a0[_0x2b1dc8(0x498)]=_0x4bccc8,_0x2010a0[_0x2b1dc8(0x528)]=_0x28f4bb,_0x2010a0[_0x2b1dc8(0x457)]=_0x58f797,_0x2010a0[_0x2b1dc8(0x2e1)]=_0x5c41db,_0x2010a0[_0x2b1dc8(0x373)]=_0x3b25ce,_0x2010a0[_0x2b1dc8(0x365)]=_0x120b3c,_0x2010a0['LOGIN_URL_KEY']=_0x4036af,_0x2010a0['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x183075,_0x2010a0[_0x2b1dc8(0x45b)]=_0x97fb7f,_0x2010a0[_0x2b1dc8(0x59d)]=_0x22f28d,_0x2010a0[_0x2b1dc8(0x577)]=_0x5457b5,_0x2010a0[_0x2b1dc8(0x591)]=_0x58e615,_0x2010a0[_0x2b1dc8(0x4b4)]=_0x22df64,_0x2010a0[_0x2b1dc8(0x389)]=_0x239bf7,_0x2010a0[_0x2b1dc8(0x4bd)]=_0x411e41,_0x2010a0[_0x2b1dc8(0x1c1)]=_0x4d079d,Object[_0x2b1dc8(0x47b)](_0x2010a0,Symbol['toStringTag'],{'value':_0x2b1dc8(0x3e8)});}));
|