@univerjs-pro/collaboration-client 0.1.15 → 0.1.16

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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x48c788=_0x1999;(function(_0x215475,_0x4f4e3f){const _0x4b2600=_0x1999,_0x1702c1=_0x215475();while(!![]){try{const _0x59281e=parseInt(_0x4b2600(0x48b))/0x1+parseInt(_0x4b2600(0x3fc))/0x2*(-parseInt(_0x4b2600(0x3c0))/0x3)+-parseInt(_0x4b2600(0x362))/0x4+-parseInt(_0x4b2600(0x499))/0x5*(-parseInt(_0x4b2600(0x447))/0x6)+-parseInt(_0x4b2600(0x474))/0x7+parseInt(_0x4b2600(0x460))/0x8+parseInt(_0x4b2600(0x2b6))/0x9;if(_0x59281e===_0x4f4e3f)break;else _0x1702c1['push'](_0x1702c1['shift']());}catch(_0x38d476){_0x1702c1['push'](_0x1702c1['shift']());}}}(_0x515a,0xb2ff4));var js=Object[_0x48c788(0x299)],Hs=(_0x1fdcf7,_0x4c62be,_0x3ad3c1)=>_0x4c62be in _0x1fdcf7?js(_0x1fdcf7,_0x4c62be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ad3c1}):_0x1fdcf7[_0x4c62be]=_0x3ad3c1,l=(_0x216e22,_0xe40aca,_0x11d4b2)=>(Hs(_0x216e22,typeof _0xe40aca!=_0x48c788(0x288)?_0xe40aca+'':_0xe40aca,_0x11d4b2),_0x11d4b2);import{Disposable as _0x5de86a,toDisposable as _0x308092,UniverInstanceType as _0x5b42a8,UserManagerService as _0x58e661,IUniverInstanceService as _0x5db99b,DisposableCollection as _0x53ebaa,IConfigService as _0x475c15,ILogService as _0xcf8387,ISnapshotServerService as _0x32765d,RxDisposable as _0x4f9c78,LocaleService as _0x7ef8c9,ILocalStorageService as _0x2bd6b3,Tools as _0x41ebb1,ICommandService as _0x26b7b1,JSONX as _0x44383b,IPermissionService as _0x4a2caa,IUndoRedoService as _0x3b301b,sequenceExecute as _0x196e3d,OnLifecycle as _0x4bcad5,LifecycleStages as _0xba774d,CommandType as _0x2210bc,Rectangle as _0x294f92,ThemeService as _0x58f756,Workbook as _0x55773e,textEncoder as _0x3e85fc,b64DecodeUnicode as _0x2a2404,LocalUndoRedoService as _0x2d3c98,IContextService as _0x4c77f7,COLORS as _0x375ede,ColorKit as _0x4176ec,Plugin as _0x12f480,IAuthzIoService as _0x49a670,mergeOverrideWithDependencies as _0x166e22,DependentOn as _0x5c5115}from'@univerjs/core';import{SelectionManagerService as _0x241ac5,SetSelectionsOperation as _0x576668,InsertSheetMutation as _0x183395,WorkbookEditablePermission as _0x301a89,RefRangeService as _0xd07635,EffectRefRangId as _0x3445c6,handleIRemoveRow as _0x2b7f87,handleIRemoveCol as _0x2f6da3,handleMoveRange as _0x4784f5,handleInsertRow as _0x4e6c23,handleInsertRangeMoveRight as _0x257710,handleInsertRangeMoveDown as _0x174883,handleInsertCol as _0x4ac67f,handleDeleteRangeMoveUp as _0xac4d22,handleDeleteRangeMoveLeft as _0x31225a,runRefRangeMutations as _0x477418,SetWorksheetActivateCommand as _0x27110d}from'@univerjs/sheets';import{MessageType as _0x16b663}from'@univerjs/design';import{IBeforeCloseService as _0x547f18,IMessageService as _0xcc97bb,INotificationService as _0x57524d,useObservable as _0x36db5c,BuiltInUIPart as _0x2ba420,IUIPartsService as _0x2d3342}from'@univerjs/ui';import{CollaborationEvent as _0x64674d,parseChangesetToProtocol as _0x4444c6,RevisionService as _0x2426c9,isTransformMutationFailure as _0x1ce5e8,isTransformMutationsWithChangesetSuccess as _0x13e3eb,ITransformService as _0x56e350,mapDocumentTypeToUniverType as _0x501378,isTransformChangesetsSuccess as _0x4a3135,CompressMutationService as _0x50d638,parseProtocolChangeset as _0x3a5484,SnapshotService as _0x3ae0d3,isTransformMutationsWithChangesetFailure as _0x120eeb,UniverCollaborationPlugin as _0x149281}from'@univerjs-pro/collaboration';import{Inject as _0x1df0bc,createIdentifier as _0x4e2518,Injector as _0x1883e3,Optional as _0x9cd523}from'@wendellhu/redi';import{merge as _0x10f2b0,Subject as _0x255156,BehaviorSubject as _0xac9643,distinctUntilChanged as _0xbaf3d7,fromEvent as _0x3afa96,of as _0x5aa699,takeUntil as _0x219692,debounceTime as _0x5b9b01,filter as _0x2b78dc,switchMap as _0x52b39c,combineLatest as _0x222f4d,shareReplay as _0x5bbc32,mapTo as _0x58db52,concatMap as _0x54d374}from'rxjs';import{map as _0x1262f1,takeUntil as _0x258fee,take as _0x332c11,filter as _0x2cc73f,delay as _0x1c5ec9,shareReplay as _0x43cd64,switchMap as _0x367f49}from'rxjs/operators';import{IMEInputManagerService as _0x5c948d,TextSelectionManagerService as _0x3953fa,serializeTextRange as _0x478cbe,DocStateChangeManagerService as _0x18b292,SetTextSelectionsOperation as _0x1d44c4,RichTextEditingMutation as _0x436bb5,getDocObject as _0x394f78,DocSkeletonManagerService as _0x495a4e}from'@univerjs/docs';import{HTTPService as _0x49edd2,WebSocketService as _0x15b3f3,IHTTPImplementation as _0x18e4ed,XHRHTTPImplementation as _0x1c4b96,ThresholdInterceptorFactory as _0x398469}from'@univerjs/network';import{ImageSourceType as _0x55f8db,ImageUploadStatusType as _0x3caa53,IImageIoService as _0x5863cd}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3f2fda,serializeRangeWithSheet as _0x14626b}from'@univerjs/engine-formula';import _0x12f611 from'lodash/debounce';import{Shape as _0x5760a1,Rect as _0x31e76b,Vector2 as _0x4c9069,IRenderManagerService as _0x205a7a,NodePositionConvertToCursor as _0x45e74b,getColor as _0x5139a9,TEXT_RANGE_LAYER_INDEX as _0x3507b6,RegularPolygon as _0x4b8859}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x46d514,VIEWPORT_KEY as _0x53f94c,getCoordByCell as _0x51cfa7,getSheetObject as _0x1f2c89}from'@univerjs/sheets-ui';import{useDependency as _0x34cfdc,connectInjector as _0x5168f0}from'@wendellhu/redi/react-bindings';import _0x537ca1,{forwardRef as _0x1302f5,useRef as _0x4b43df,createElement as _0x732030}from'react';import _0x37250f from'clsx';import{IRemoteInstanceService as _0x356d7e}from'@univerjs/rpc';const Wi=_0x48c788(0x497),Gi=_0x48c788(0x4a7),Yi=_0x48c788(0x37b),Ki=_0x48c788(0x1c4),Xi=0x7d0,Ji=_0x48c788(0x43c),zi=_0x48c788(0x2da),qi=_0x48c788(0x450),Zi=0x7530,ps=_0x48c788(0x307),Is=0x2710,Qi='RETRY_CONNECTING_INTERVAL',en=0x4e20,tn=_0x48c788(0x404),sn=0x3,nn=_0x48c788(0x347),rn=0x3e8,on=_0x48c788(0x36b),an='/universer-api/comb',cn=_0x48c788(0x494),hn=_0x48c788(0x424);var Es=(_0x2150ae=>(_0x2150ae[_0x2150ae['UNDEFINED']=0x0]=_0x48c788(0x254),_0x2150ae[_0x2150ae['OK']=0x1]='OK',_0x2150ae[_0x2150ae[_0x48c788(0x206)]=0x2]=_0x48c788(0x206),_0x2150ae[_0x2150ae[_0x48c788(0x353)]=0x3]=_0x48c788(0x353),_0x2150ae[_0x2150ae[_0x48c788(0x34e)]=0x4]=_0x48c788(0x34e),_0x2150ae[_0x2150ae[_0x48c788(0x1bd)]=0x5]=_0x48c788(0x1bd),_0x2150ae[_0x2150ae['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2150ae[_0x2150ae['INVALID_ARGUMENT']=0x7]=_0x48c788(0x3ca),_0x2150ae[_0x2150ae[_0x48c788(0x223)]=0x8]=_0x48c788(0x223),_0x2150ae[_0x2150ae[_0x48c788(0x31b)]=0x9]=_0x48c788(0x31b),_0x2150ae[_0x2150ae[_0x48c788(0x1c7)]=0x1389]=_0x48c788(0x1c7),_0x2150ae[_0x2150ae[_0x48c788(0x2bc)]=0x1771]=_0x48c788(0x2bc),_0x2150ae[_0x2150ae['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x2150ae[_0x2150ae[_0x48c788(0x3a6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2150ae[_0x2150ae['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x48c788(0x21b),_0x2150ae[_0x2150ae[_0x48c788(0x441)]=0x1b5c]=_0x48c788(0x441),_0x2150ae[_0x2150ae[_0x48c788(0x207)]=0x1f41]=_0x48c788(0x207),_0x2150ae[_0x2150ae[_0x48c788(0x2c7)]=0x2329]=_0x48c788(0x2c7),_0x2150ae[_0x2150ae[_0x48c788(0x3f2)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2150ae[_0x2150ae[_0x48c788(0x430)]=0x232b]=_0x48c788(0x430),_0x2150ae[_0x2150ae['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x48c788(0x208),_0x2150ae[_0x2150ae[_0x48c788(0x4c5)]=0x232d]=_0x48c788(0x4c5),_0x2150ae[_0x2150ae[_0x48c788(0x3c6)]=0x2711]=_0x48c788(0x3c6),_0x2150ae[_0x2150ae[_0x48c788(0x2db)]=0x2712]=_0x48c788(0x2db),_0x2150ae[_0x2150ae[_0x48c788(0x32b)]=-0x1]=_0x48c788(0x32b),_0x2150ae))(Es||{}),H=(_0x1a79d2=>(_0x1a79d2[_0x1a79d2[_0x48c788(0x3c2)]=0x0]=_0x48c788(0x3c2),_0x1a79d2[_0x1a79d2[_0x48c788(0x4d4)]=0x1]=_0x48c788(0x4d4),_0x1a79d2[_0x1a79d2['UNIVER_SHEET']=0x2]=_0x48c788(0x29e),_0x1a79d2[_0x1a79d2['UNIVER_SLIDE']=0x3]=_0x48c788(0x30f),_0x1a79d2[_0x1a79d2['UNRECOGNIZED']=-0x1]=_0x48c788(0x32b),_0x1a79d2))(H||{}),I=(_0x2a1e81=>(_0x2a1e81[_0x2a1e81['UNKNOWN_CMD']=0x0]=_0x48c788(0x46a),_0x2a1e81[_0x2a1e81['HELLO']=0x1]=_0x48c788(0x374),_0x2a1e81[_0x2a1e81['JOIN']=0x2]='JOIN',_0x2a1e81[_0x2a1e81[_0x48c788(0x3ad)]=0x3]=_0x48c788(0x3ad),_0x2a1e81[_0x2a1e81[_0x48c788(0x2a7)]=0x4]=_0x48c788(0x2a7),_0x2a1e81[_0x2a1e81[_0x48c788(0x412)]=0x5]='HEARTBEAT',_0x2a1e81[_0x2a1e81[_0x48c788(0x1f7)]=0x6]=_0x48c788(0x1f7),_0x2a1e81[_0x2a1e81[_0x48c788(0x32b)]=-0x1]=_0x48c788(0x32b),_0x2a1e81))(I||{}),Nt=(_0x433be2=>(_0x433be2[_0x433be2[_0x48c788(0x42d)]=0x0]=_0x48c788(0x42d),_0x433be2[_0x433be2['OK']=0x1]='OK',_0x433be2[_0x433be2[_0x48c788(0x1b5)]=0x2]='FAIL',_0x433be2[_0x433be2[_0x48c788(0x32b)]=-0x1]='UNRECOGNIZED',_0x433be2))(Nt||{}),ln=Object['defineProperty'],_n=Object[_0x48c788(0x2bd)],un=(_0x3892d3,_0x2f8bf1,_0x4da3ad,_0xfda2dd)=>{const _0xa1e0ff=_0x48c788;for(var _0x1bb37a=_0xfda2dd>0x1?void 0x0:_0xfda2dd?_n(_0x2f8bf1,_0x4da3ad):_0x2f8bf1,_0x1c8650=_0x3892d3[_0xa1e0ff(0x3c7)]-0x1,_0x3c56f2;_0x1c8650>=0x0;_0x1c8650--)(_0x3c56f2=_0x3892d3[_0x1c8650])&&(_0x1bb37a=(_0xfda2dd?_0x3c56f2(_0x2f8bf1,_0x4da3ad,_0x1bb37a):_0x3c56f2(_0x1bb37a))||_0x1bb37a);return _0xfda2dd&&_0x1bb37a&&ln(_0x2f8bf1,_0x4da3ad,_0x1bb37a),_0x1bb37a;},Vt=(_0x1fe1d7,_0x58578a)=>(_0x3fb384,_0x397d3c)=>_0x58578a(_0x3fb384,_0x397d3c,_0x1fe1d7);let ee=class extends _0x5de86a{constructor(_0x4fae7b,_0x27f9bb){const _0x2be683=_0x48c788;super(),l(this,'_roomMembers',new Map()),(this[_0x2be683(0x38c)]=_0x4fae7b,this['_userManagerService']=_0x27f9bb,this['disposeWithMe'](_0x308092(_0x10f2b0(this[_0x2be683(0x38c)][_0x2be683(0x2ea)](_0x5b42a8[_0x2be683(0x29e)])[_0x2be683(0x3bd)](_0x1262f1(_0x327ee2=>_0x327ee2[_0x2be683(0x451)]())),this[_0x2be683(0x38c)][_0x2be683(0x2ea)](_0x5b42a8[_0x2be683(0x4d4)])[_0x2be683(0x3bd)](_0x1262f1(_0x564d0a=>_0x564d0a[_0x2be683(0x451)]())),this[_0x2be683(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8['UNIVER_SLIDE'])['pipe'](_0x1262f1(_0x2593e8=>_0x2593e8[_0x2be683(0x451)]())))['subscribe'](_0x35b0dc=>this[_0x2be683(0x350)](_0x35b0dc)))));}[_0x48c788(0x3d5)](_0x3259a0){const _0x157862=_0x48c788;this[_0x157862(0x4d3)][_0x157862(0x3d5)](_0x3259a0);}[_0x48c788(0x310)](){const _0xa33a9d=_0x48c788;return this[_0xa33a9d(0x4d3)][_0xa33a9d(0x310)]();}[_0x48c788(0x294)](_0x4e62c7,_0x11db6a){const _0x50e287=_0x48c788;let _0x1a6151=this['_roomMembers']['get'](_0x4e62c7);_0x1a6151||(_0x1a6151=new dn(),this['_roomMembers'][_0x50e287(0x25a)](_0x4e62c7,_0x1a6151)),_0x1a6151['updateMember'](_0x11db6a);}[_0x48c788(0x44a)](_0x55fb48,_0xc6170){const _0x8a1a78=_0x48c788,_0x8bf657=this['_roomMembers'][_0x8a1a78(0x4ce)](_0x55fb48);_0x8bf657&&_0x8bf657[_0x8a1a78(0x44a)](_0xc6170);}[_0x48c788(0x1c8)](_0x26bf8c){const _0x102e29=_0x48c788;return this['_roomMembers'][_0x102e29(0x4ce)](_0x26bf8c);}[_0x48c788(0x395)](_0xcec623,_0x49d8f3){const _0x29259e=_0x48c788,_0x3f2073=this[_0x29259e(0x38b)][_0x29259e(0x4ce)](_0xcec623);if(_0x3f2073)return _0x3f2073[_0x29259e(0x395)](_0x49d8f3);}['_removeRoom'](_0x524ac7){const _0x2cac2a=_0x48c788,_0x206038=this[_0x2cac2a(0x38b)][_0x2cac2a(0x4ce)](_0x524ac7);_0x206038&&(_0x206038['dispose'](),this[_0x2cac2a(0x38b)][_0x2cac2a(0x388)](_0x524ac7));}[_0x48c788(0x46e)](){const _0x2b0b63=_0x48c788;this[_0x2b0b63(0x38b)][_0x2b0b63(0x244)](_0x2b6f1f=>_0x2b6f1f[_0x2b0b63(0x46e)]()),this[_0x2b0b63(0x38b)][_0x2b0b63(0x338)]();}};ee=un([Vt(0x0,_0x5db99b),Vt(0x1,_0x1df0bc(_0x58e661))],ee);class dn extends _0x5de86a{constructor(){const _0x53d8fe=_0x48c788;super(...arguments),l(this,_0x53d8fe(0x2e9),new Map());}['dispose'](){const _0xfef5e7=_0x48c788;this[_0xfef5e7(0x2e9)][_0xfef5e7(0x338)]();}[_0x48c788(0x294)](_0x3e363a){const _0x1fc194=_0x48c788;this['_members'][_0x1fc194(0x25a)](_0x3e363a[_0x1fc194(0x260)],_0x3e363a);}[_0x48c788(0x44a)](_0x2e602e){const _0x7bfdf2=_0x48c788;this[_0x7bfdf2(0x2e9)][_0x7bfdf2(0x388)](_0x2e602e);}[_0x48c788(0x395)](_0x148321){const _0x27ddfa=_0x48c788;return this[_0x27ddfa(0x2e9)][_0x27ddfa(0x4ce)](_0x148321);}}function fn(_0x315ea8){const _0x3208e9=_0x48c788;var _0x3b6a25,_0x4745f4,_0x140c9c,_0x2ffb95;const _0x425ea5=_0x315ea8[_0x3208e9(0x43e)],_0x5eb557=JSON[_0x3208e9(0x1f6)](_0x425ea5);switch(_0x5eb557['cmd']){case I[_0x3208e9(0x412)]:case I[_0x3208e9(0x374)]:{const _0x4ea048=_0x5eb557[_0x3208e9(0x2d6)];return{..._0x5eb557,'data':_0x4ea048,'cmd':_0x5eb557['cmd']};}case I[_0x3208e9(0x3a4)]:{const _0x264cbe=_0x5eb557['joinRsp'];return{..._0x5eb557,'data':_0x264cbe,'cmd':_0x5eb557[_0x3208e9(0x476)]};}case I[_0x3208e9(0x1f7)]:{const _0x56194d=_0x5eb557[_0x3208e9(0x3ec)];switch(_0x56194d[_0x3208e9(0x420)]){case _0x64674d[_0x3208e9(0x468)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x3b6a25=_0x56194d[_0x3208e9(0x4d2)])==null?void 0x0:_0x3b6a25['cs']},'cmd':_0x5eb557['cmd']};case _0x64674d[_0x3208e9(0x30a)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x4745f4=_0x56194d[_0x3208e9(0x3e0)])==null?void 0x0:_0x4745f4['cs']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x222)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x140c9c=_0x56194d['newCsEvent'])==null?void 0x0:_0x140c9c['cs']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x440)]:return{..._0x5eb557,'data':{..._0x56194d,'data':(_0x2ffb95=_0x56194d['csRejEvent'])==null?void 0x0:_0x2ffb95['cs']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x1ed)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x34d)]},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d['USERS_ENTER']:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d['joinEvent']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x22c)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x438)]},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x2ee)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x40c)]},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x1b8)]:case _0x64674d[_0x3208e9(0x3f5)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d['liveShareOperation']},'cmd':_0x5eb557[_0x3208e9(0x476)]};case _0x64674d[_0x3208e9(0x2d2)]:return{..._0x5eb557,'data':{..._0x56194d,'data':_0x56194d[_0x3208e9(0x40c)]},'cmd':_0x5eb557['cmd']};case _0x64674d[_0x3208e9(0x4a0)]:return{..._0x5eb557,'data':_0x56194d,'cmd':_0x5eb557[_0x3208e9(0x476)]};default:return _0x5eb557;}}default:return _0x5eb557;}}function gn(_0x46657f){const _0x397c09=_0x48c788;switch(_0x46657f[_0x397c09(0x476)]){case I['HEARTBEAT']:case I[_0x397c09(0x374)]:return JSON[_0x397c09(0x1ce)]({'cmd':_0x46657f['cmd'],'routeKey':_0x46657f[_0x397c09(0x423)]});case I[_0x397c09(0x2a7)]:{let _0x4233ae;switch(_0x46657f['data']['eventID']){case _0x64674d[_0x397c09(0x1ed)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x1ed)],'updateCursorEvent':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x22c)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x22c)],'leaveEvent':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d['USERS_ENTER']:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x4a1)],'joinEvent':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d['LIVESHARE_NEW_HOST']:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x2ee)],'liveShareNewHost':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x3f5)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x3f5)],'liveShareOperation':_0x46657f[_0x397c09(0x43e)]['data']};break;}case _0x64674d[_0x397c09(0x2d2)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x2d2)],'liveShareTerminate':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x3bb)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x3bb)],'liveShareRequestHost':_0x46657f['data'][_0x397c09(0x43e)]};break;}case _0x64674d[_0x397c09(0x1b8)]:{_0x4233ae={'eventID':_0x64674d[_0x397c09(0x1b8)]};break;}default:_0x4233ae={'eventID':_0x46657f[_0x397c09(0x43e)][_0x397c09(0x420)]};}return JSON['stringify']({'cmd':_0x46657f[_0x397c09(0x476)],'routeKey':_0x46657f['routeKey'],'collaMsg':_0x4233ae});}case I['JOIN']:return JSON[_0x397c09(0x1ce)]({'cmd':_0x46657f[_0x397c09(0x476)],'routeKey':_0x46657f[_0x397c09(0x423)],'joinReq':_0x46657f[_0x397c09(0x43e)]});case I[_0x397c09(0x3ad)]:return JSON['stringify']({'cmd':_0x46657f[_0x397c09(0x476)],'routeKey':_0x46657f[_0x397c09(0x423)],'leaveReq':_0x46657f[_0x397c09(0x43e)]});default:throw new Error(_0x397c09(0x1b4));}}var mn=Object['defineProperty'],Sn=Object[_0x48c788(0x2bd)],vn=(_0x4f8951,_0x3af5a1,_0xb0482a,_0x5f99fc)=>{for(var _0x4649d9=_0x5f99fc>0x1?void 0x0:_0x5f99fc?Sn(_0x3af5a1,_0xb0482a):_0x3af5a1,_0x3189b1=_0x4f8951['length']-0x1,_0x1f80c2;_0x3189b1>=0x0;_0x3189b1--)(_0x1f80c2=_0x4f8951[_0x3189b1])&&(_0x4649d9=(_0x5f99fc?_0x1f80c2(_0x3af5a1,_0xb0482a,_0x4649d9):_0x1f80c2(_0x4649d9))||_0x4649d9);return _0x5f99fc&&_0x4649d9&&mn(_0x3af5a1,_0xb0482a,_0x4649d9),_0x4649d9;},me=(_0x467d0c,_0x5f1764)=>(_0x33004a,_0x38b8fa)=>_0x5f1764(_0x33004a,_0x38b8fa,_0x467d0c);const Cs=_0x4e2518(_0x48c788(0x30b));function pn(_0x94027a,_0x34d377,_0x26d734){const _0x39561d=_0x48c788;return _0x94027a+'/'+_0x34d377+_0x39561d(0x327)+_0x26d734+_0x39561d(0x1fd);}let _t=class{constructor(_0x2af389,_0x2ae65c,_0x4b4e82,_0x2ca1cb,_0x1c36fa){const _0x224fa7=_0x48c788;this[_0x224fa7(0x4a9)]=_0x2af389,this[_0x224fa7(0x284)]=_0x2ae65c,this[_0x224fa7(0x35d)]=_0x4b4e82,this[_0x224fa7(0x2ad)]=_0x2ca1cb,this[_0x224fa7(0x220)]=_0x1c36fa;}[_0x48c788(0x242)](_0x3966b3){const _0x45c165=_0x48c788,_0x21d604=this[_0x45c165(0x284)][_0x45c165(0x242)](_0x3966b3);if(!_0x21d604)throw new Error(_0x45c165(0x357));const _0x306492=new _0x53ebaa(),_0x368957=new _0x255156();_0x306492['add'](_0x308092(_0x21d604[_0x45c165(0x4d7)][_0x45c165(0x237)](_0x5ef8a3=>_0x368957[_0x45c165(0x325)](_0x5ef8a3)))),_0x306492[_0x45c165(0x20d)](_0x308092(()=>_0x368957[_0x45c165(0x22e)]()));const _0x4b10f6=new _0x255156();_0x306492['add'](_0x308092(_0x21d604['error$'][_0x45c165(0x237)](_0x5b547f=>_0x4b10f6[_0x45c165(0x325)](_0x5b547f)))),_0x306492[_0x45c165(0x20d)](_0x308092(()=>_0x4b10f6[_0x45c165(0x22e)]()));const _0x4a8183=new _0x255156();_0x306492['add'](_0x308092(_0x21d604['message$']['subscribe'](_0x56c608=>{const _0x5393e1=_0x45c165,_0x4a143f=fn(_0x56c608);_0x4a8183[_0x5393e1(0x325)](_0x4a143f);}))),_0x306492[_0x45c165(0x20d)](_0x308092(()=>_0x4a8183[_0x45c165(0x22e)]()));const _0x4345b9=()=>{const _0x426e4b=_0x45c165;_0x4b10f6[_0x426e4b(0x325)](new Event(_0x426e4b(0x265))),_0x368957[_0x426e4b(0x325)](new CloseEvent(_0x426e4b(0x265))),_0x4f83e4[_0x426e4b(0x297)]();},_0x4f83e4={'memberID':'','close$':_0x368957[_0x45c165(0x1ec)](),'error$':_0x4b10f6[_0x45c165(0x1ec)](),'open$':_0x21d604[_0x45c165(0x34b)],'message$':_0x4a8183[_0x45c165(0x1ec)](),'send':_0x320b84=>{const _0x10220e=_0x45c165;if(_0x320b84[_0x10220e(0x476)]===I[_0x10220e(0x2a7)]){if(_0x320b84['data']['eventID']===_0x64674d[_0x10220e(0x250)]){this['_submitChangeset'](_0x4f83e4,_0x320b84[_0x10220e(0x43e)])['catch'](_0x40ca06=>{const _0x472ddf=_0x10220e;this[_0x472ddf(0x2ad)][_0x472ddf(0x1b3)](_0x40ca06),_0x4345b9();});return;}if(_0x320b84[_0x10220e(0x43e)][_0x10220e(0x420)]===_0x64674d[_0x10220e(0x251)]){const _0x10a549=_0x320b84['data'];this['_fetchMissChangesets'](_0x10a549)[_0x10220e(0x20e)](_0x1e4f0c=>{const _0x48c56e=_0x10220e;_0x4a8183['next']({'cmd':I[_0x48c56e(0x1f7)],'code':Nt['OK'],'routeKey':_0x10a549[_0x48c56e(0x43e)][_0x48c56e(0x2d3)],'routeType':'','data':{'eventID':_0x64674d[_0x48c56e(0x393)],'data':{'changesets':_0x1e4f0c}}});})[_0x10220e(0x2d7)](_0x560c7e=>{const _0x11d835=_0x10220e;this[_0x11d835(0x2ad)]['error'](_0x560c7e),_0x4345b9();});return;}}_0x21d604['send'](gn(_0x320b84));},'close':()=>{const _0x2f09a1=_0x45c165;_0x21d604[_0x2f09a1(0x297)](),_0x306492[_0x2f09a1(0x46e)]();}};return _0x4f83e4;}async[_0x48c788(0x221)](_0x1971e4,_0x20e0df){const _0x13eb8b=_0x48c788;var _0x2d0984;const {unitType:_0x39868f,unitID:_0x4dcfd8,changeset:_0x1ddcfb}=_0x20e0df[_0x13eb8b(0x43e)],_0x51095e={'unitID':_0x4dcfd8,'memberID':_0x1971e4[_0x13eb8b(0x260)],'type':_0x39868f,'changeset':_0x4444c6(_0x1ddcfb)},_0x25b9b4=pn((_0x2d0984=this[_0x13eb8b(0x35d)]['getConfig'](on))!=null?_0x2d0984:an,_0x39868f,_0x4dcfd8);try{await this[_0x13eb8b(0x4a9)][_0x13eb8b(0x4b4)](_0x25b9b4,{'body':_0x51095e});}catch(_0x2d8319){throw this[_0x13eb8b(0x2ad)]['error'](_0x13eb8b(0x402),'submit\x20changeset\x20error!'),_0x2d8319;}}async['_fetchMissChangesets'](_0x4ce042){const _0x592542=_0x48c788,{unitID:_0x1646ad,from:_0x364fcf,to:_0x4be44b,unitType:_0x21f0f7}=_0x4ce042[_0x592542(0x43e)];return(await this[_0x592542(0x220)][_0x592542(0x4bc)]({'metadata':void 0x0},{'unitID':_0x1646ad,'type':_0x21f0f7,'from':_0x364fcf,'to':_0x4be44b}))[_0x592542(0x49d)];}};_t=vn([me(0x0,_0x1df0bc(_0x49edd2)),me(0x1,_0x1df0bc(_0x15b3f3)),me(0x2,_0x475c15),me(0x3,_0xcf8387),me(0x4,_0x32765d)],_t);var In=Object[_0x48c788(0x299)],En=Object['getOwnPropertyDescriptor'],bs=(_0x159033,_0x32a3f2,_0x3524b4,_0x823a52)=>{const _0x5e20a3=_0x48c788;for(var _0x55e60c=_0x823a52>0x1?void 0x0:_0x823a52?En(_0x32a3f2,_0x3524b4):_0x32a3f2,_0x1fbd5d=_0x159033[_0x5e20a3(0x3c7)]-0x1,_0x44d992;_0x1fbd5d>=0x0;_0x1fbd5d--)(_0x44d992=_0x159033[_0x1fbd5d])&&(_0x55e60c=(_0x823a52?_0x44d992(_0x32a3f2,_0x3524b4,_0x55e60c):_0x44d992(_0x55e60c))||_0x55e60c);return _0x823a52&&_0x55e60c&&In(_0x32a3f2,_0x3524b4,_0x55e60c),_0x55e60c;},M=(_0x205c6f,_0x17e14e)=>(_0x232821,_0x5e1906)=>_0x17e14e(_0x232821,_0x5e1906,_0x205c6f),_e=(_0x18a672=>(_0x18a672[_0x18a672[_0x48c788(0x282)]=0x0]='IDLE',_0x18a672[_0x18a672[_0x48c788(0x377)]=0x1]=_0x48c788(0x377),_0x18a672[_0x18a672[_0x48c788(0x214)]=0x2]=_0x48c788(0x214),_0x18a672[_0x18a672['ONLINE']=0x3]=_0x48c788(0x431),_0x18a672))(_e||{});let ut=class extends _0x4f9c78{constructor(_0x499271,_0x3aee00,_0x2ec625,_0x10c206,_0x190329,_0x1cf9cd,_0x788ba3,_0x22df55){const _0x2e7fb5=_0x48c788;super(),l(this,'_sessionStatus$',new _0xac9643(0x0)),l(this,'sessionStatus$',this['_sessionStatus$'][_0x2e7fb5(0x1ec)]()),l(this,_0x2e7fb5(0x306),new _0x255156()),l(this,_0x2e7fb5(0x3d7),this[_0x2e7fb5(0x306)][_0x2e7fb5(0x1ec)]()),l(this,_0x2e7fb5(0x366)),l(this,_0x2e7fb5(0x4ab)),l(this,_0x2e7fb5(0x34a)),(this['_unitID']=_0x499271,this[_0x2e7fb5(0x2ad)]=_0x2ec625,this[_0x2e7fb5(0x3d2)]=_0x10c206,this[_0x2e7fb5(0x464)]=_0x190329,this['_configService']=_0x1cf9cd,this[_0x2e7fb5(0x314)]=_0x788ba3,this['_memberService']=_0x22df55,_0x3aee00[_0x2e7fb5(0x3bd)](_0x258fee(this[_0x2e7fb5(0x4c9)]))['subscribe'](_0x17cc5=>{const _0x19e1a1=_0x2e7fb5;var _0x5e595e;typeof _0x17cc5>'u'||(this[_0x19e1a1(0x366)]=_0x17cc5,_0x17cc5?(this['_joinRoom'](_0x17cc5),this[_0x19e1a1(0x4ab)]=this[_0x19e1a1(0x366)][_0x19e1a1(0x26c)]['subscribe'](_0x4d1e13=>{const _0x547918=_0x19e1a1;_0x4d1e13['routeKey']===this[_0x547918(0x318)]&&this[_0x547918(0x399)](_0x4d1e13);})):(this[_0x19e1a1(0x40d)][_0x19e1a1(0x325)](0x2),(_0x5e595e=this['_socketMessageSubscription'])==null||_0x5e595e[_0x19e1a1(0x1fa)](),this[_0x19e1a1(0x4ab)]=null));}),this[_0x2e7fb5(0x3e7)](this[_0x2e7fb5(0x3d2)][_0x2e7fb5(0x355)](()=>{const _0x1b0681=_0x2e7fb5;var _0x12bebb;(_0x12bebb=this['_socket'])==null||_0x12bebb[_0x1b0681(0x381)]({'cmd':I[_0x1b0681(0x3ad)],'data':{'roomID':this[_0x1b0681(0x318)]}});})));}get['sessionStatus'](){const _0x48becf=_0x48c788;return this[_0x48becf(0x40d)][_0x48becf(0x326)]();}[_0x48c788(0x329)](){const _0x45ff4b=_0x48c788;var _0x5e2203,_0x1019b1;return(_0x1019b1=(_0x5e2203=this['_socket'])==null?void 0x0:_0x5e2203[_0x45ff4b(0x260)])!=null?_0x1019b1:null;}[_0x48c788(0x46e)](){const _0x4a1ba6=_0x48c788;super[_0x4a1ba6(0x46e)](),this['dispose$'][_0x4a1ba6(0x325)](),this[_0x4a1ba6(0x4c9)][_0x4a1ba6(0x22e)]();}[_0x48c788(0x399)](_0x171629){const _0x16d1e5=_0x48c788;_0x171629['cmd']===I[_0x16d1e5(0x3a4)]?this[_0x16d1e5(0x389)](_0x171629):_0x171629[_0x16d1e5(0x476)]===I[_0x16d1e5(0x1f7)]&&this['_onRecvEvent'](_0x171629);}[_0x48c788(0x34c)](_0x70a1c3){const _0x4f2964=_0x48c788;this['_sessionStatus$'][_0x4f2964(0x325)](0x1),_0x70a1c3[_0x4f2964(0x381)]({'cmd':I[_0x4f2964(0x3a4)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x549e0a){const _0x2e2160=_0x48c788;var _0x3a30dd;if(_0x549e0a['code']===Nt['FAIL']){this['_messageService'][_0x2e2160(0x4d1)]({'type':_0x16b663['Warning'],'content':this[_0x2e2160(0x314)]['t'](_0x2e2160(0x2a8))}),this[_0x2e2160(0x40d)][_0x2e2160(0x325)](0x2);return;}this[_0x2e2160(0x40d)]['next'](0x3);const _0xf9d5e4=(_0x3a30dd=_0x549e0a[_0x2e2160(0x43e)][_0x2e2160(0x37d)][this[_0x2e2160(0x318)]])==null?void 0x0:_0x3a30dd['members'];_0xf9d5e4&&_0xf9d5e4['forEach'](_0x457190=>this[_0x2e2160(0x28e)]['updateMember'](this[_0x2e2160(0x318)],_0x457190));}[_0x48c788(0x296)](_0x1913eb){const _0x3abd4c=_0x48c788;try{const _0xa40855=_0x1913eb['data'];switch(_0xa40855[_0x3abd4c(0x420)]){case _0x64674d[_0x3abd4c(0x4a1)]:this[_0x3abd4c(0x21c)](_0xa40855),this[_0x3abd4c(0x306)][_0x3abd4c(0x325)](_0xa40855);break;case _0x64674d['USERS_LEAVE']:this['_onUserLeave'](_0xa40855),this['_event$'][_0x3abd4c(0x325)](_0xa40855);break;case _0x64674d[_0x3abd4c(0x30a)]:this['_clearCollaborationTimeoutTimer'](),this[_0x3abd4c(0x306)][_0x3abd4c(0x325)](_0xa40855);break;case _0x64674d[_0x3abd4c(0x4a0)]:this[_0x3abd4c(0x2ad)][_0x3abd4c(0x1b3)](_0x3abd4c(0x4b9)+JSON[_0x3abd4c(0x1ce)](_0xa40855)),this[_0x3abd4c(0x306)]['next'](_0xa40855);break;default:this['_event$']['next'](_0xa40855);}}catch(_0x4fce6e){this[_0x3abd4c(0x2ad)][_0x3abd4c(0x1b3)](_0x4fce6e,_0x1913eb);}}[_0x48c788(0x21c)](_0x58e997){const _0x557188=_0x48c788;this[_0x557188(0x28e)][_0x557188(0x294)](this[_0x557188(0x318)],_0x58e997['data']);}[_0x48c788(0x37e)](_0x4e8e6b){const _0xcc2f12=_0x48c788;this[_0xcc2f12(0x28e)]['removeMember'](this['_unitID'],_0x4e8e6b[_0xcc2f12(0x43e)][_0xcc2f12(0x260)]);}async[_0x48c788(0x381)](_0x509ef8,_0x5a00af){const _0x20df17=_0x48c788;if(this[_0x20df17(0x3ea)]!==0x3||!this[_0x20df17(0x366)])throw new Error(_0x20df17(0x273));try{_0x509ef8[_0x20df17(0x420)]===_0x64674d[_0x20df17(0x222)]&&this[_0x20df17(0x48e)](),this[_0x20df17(0x366)][_0x20df17(0x381)]({'cmd':I[_0x20df17(0x2a7)],'routeKey':_0x5a00af,'routeType':'','data':_0x509ef8});}catch(_0x26698d){this['_logService']['error'](_0x26698d);}}[_0x48c788(0x48e)](){const _0x89f5b8=_0x48c788;var _0x33f8dd;this[_0x89f5b8(0x34a)]=window['setTimeout'](()=>{const _0x4f4760=_0x89f5b8;this[_0x4f4760(0x34a)]=null,this[_0x4f4760(0x464)][_0x4f4760(0x4d1)]({'type':_0x16b663[_0x4f4760(0x3f9)],'content':this[_0x4f4760(0x314)]['t']('session.collaboration-timeout')});},(_0x33f8dd=this['_configService']['getConfig'](ps))!=null?_0x33f8dd:Is);}[_0x48c788(0x442)](){const _0x16ced2=_0x48c788;this[_0x16ced2(0x34a)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}};ut=bs([M(0x2,_0xcf8387),M(0x3,_0x547f18),M(0x4,_0xcc97bb),M(0x5,_0x475c15),M(0x6,_0x1df0bc(_0x7ef8c9)),M(0x7,_0x1df0bc(ee))],ut);let Re=class extends _0x5de86a{constructor(_0x55035b,_0x279e58,_0x192c32,_0x2dfc60,_0xcfde59,_0x12d2fc){const _0x43b04a=_0x48c788;super(),l(this,'_socket$',new _0xac9643(void 0x0)),l(this,_0x43b04a(0x408),new Map()),l(this,_0x43b04a(0x1ca),new _0xac9643(0x0)),l(this,_0x43b04a(0x44b),this[_0x43b04a(0x1ca)][_0x43b04a(0x1ec)]()),l(this,_0x43b04a(0x246),!0x1),l(this,_0x43b04a(0x40e)),l(this,'_timeoutTimer'),l(this,'_retryConnectingTimer'),l(this,_0x43b04a(0x3de),0x0),(this['_injector']=_0x55035b,this[_0x43b04a(0x314)]=_0x279e58,this['_messageService']=_0x192c32,this[_0x43b04a(0x2ad)]=_0x2dfc60,this[_0x43b04a(0x35d)]=_0xcfde59,this['_socketService']=_0x12d2fc);}get['_socket'](){const _0x4eecd1=_0x48c788;return this[_0x4eecd1(0x429)][_0x4eecd1(0x326)]();}[_0x48c788(0x46e)](){const _0x4b72ee=_0x48c788;super[_0x4b72ee(0x46e)](),this['_sessions'][_0x4b72ee(0x244)](_0xf1364d=>_0xf1364d['dispose']()),this[_0x4b72ee(0x408)]['clear'](),this[_0x4b72ee(0x1ca)][_0x4b72ee(0x22e)]();}async[_0x48c788(0x44c)](_0x7ec7fd){const _0x11b63e=_0x48c788;if(this['_sessions'][_0x11b63e(0x3f4)](_0x7ec7fd))return this[_0x11b63e(0x408)][_0x11b63e(0x4ce)](_0x7ec7fd);this[_0x11b63e(0x1ea)]();const _0x14dea4=this[_0x11b63e(0x2e1)][_0x11b63e(0x3a1)](ut,_0x7ec7fd,this[_0x11b63e(0x429)][_0x11b63e(0x1ec)]());return this[_0x11b63e(0x408)][_0x11b63e(0x25a)](_0x7ec7fd,_0x14dea4),_0x14dea4;}[_0x48c788(0x216)](){const _0x42a983=_0x48c788;var _0x157055;const _0x54c656=(_0x157055=this[_0x42a983(0x35d)][_0x42a983(0x2d9)](Ji))!=null?_0x157055:zi;return this[_0x42a983(0x2fb)][_0x42a983(0x242)](_0x54c656);}[_0x48c788(0x1ea)](){const _0x692473=_0x48c788;try{const _0x1f57bd=this['_createSocket']();if(_0x1f57bd){const _0x3730c9=_0x1f57bd[_0x692473(0x381)];_0x1f57bd[_0x692473(0x381)]=_0xcad733=>(this[_0x692473(0x205)](),_0x3730c9[_0x692473(0x321)](_0x1f57bd,[_0xcad733])),_0x1f57bd['message$'][_0x692473(0x237)](_0x2ce5f4=>this[_0x692473(0x373)](_0x1f57bd,_0x2ce5f4)),_0x1f57bd[_0x692473(0x248)][_0x692473(0x3bd)](_0x332c11(0x1))[_0x692473(0x237)](_0x1e0c59=>this[_0x692473(0x2ad)][_0x692473(0x1b3)]('[CollaborationSessionService]:\x20socket\x20error',_0x1e0c59)),_0x1f57bd[_0x692473(0x34b)]['pipe'](_0x332c11(0x1))[_0x692473(0x237)](()=>{const _0x19673c=_0x692473;this[_0x19673c(0x3db)](_0x1f57bd);}),_0x1f57bd['close$']['pipe'](_0x332c11(0x1))[_0x692473(0x237)](_0x3ead90=>{const _0x525d5e=_0x692473;this[_0x525d5e(0x2ad)][_0x525d5e(0x1b0)]('[CollaborationSessionService]','socket\x20close',_0x3ead90),this[_0x525d5e(0x2b1)]();});}}catch(_0x2437ee){this[_0x692473(0x2ad)][_0x692473(0x1b3)](_0x2437ee),this[_0x692473(0x2b1)]();}}['_onConnectionOpen'](_0x26a4d4){const _0x2fc99a=_0x48c788;this[_0x2fc99a(0x2ad)][_0x2fc99a(0x1b0)]('[CollaborationSessionService]',_0x2fc99a(0x38a)),_0x26a4d4[_0x2fc99a(0x381)]({'cmd':I[_0x2fc99a(0x374)]}),this[_0x2fc99a(0x205)]();}[_0x48c788(0x2b1)](){const _0x435fd5=_0x48c788;var _0x360773;this[_0x435fd5(0x1ca)]['next'](0x2),this[_0x435fd5(0x429)][_0x435fd5(0x325)](null),this[_0x435fd5(0x1f0)](),this[_0x435fd5(0x496)](),this[_0x435fd5(0x246)]=!0x1,this[_0x435fd5(0x3de)]<((_0x360773=this[_0x435fd5(0x35d)]['getConfig'](tn))!=null?_0x360773:sn)?(this[_0x435fd5(0x356)](this[_0x435fd5(0x3de)]),this[_0x435fd5(0x3de)]+=0x1):this[_0x435fd5(0x464)][_0x435fd5(0x4d1)]({'type':_0x16b663[_0x435fd5(0x3f9)],'content':this[_0x435fd5(0x314)]['t'](_0x435fd5(0x341))});}['_scheduleReconnection'](_0xc3d16b){const _0x7b544f=_0x48c788;var _0x558fa7;const _0x49f366=((_0x558fa7=this[_0x7b544f(0x35d)][_0x7b544f(0x2d9)](Qi))!=null?_0x558fa7:en)*0x2**_0xc3d16b;this['_messageService'][_0x7b544f(0x4d1)]({'type':_0x16b663[_0x7b544f(0x39e)],'content':this[_0x7b544f(0x314)]['t'](_0x7b544f(0x2f7))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x36aa59=_0x7b544f;this[_0x36aa59(0x1ea)](),clearTimeout(this[_0x36aa59(0x38d)]),this[_0x36aa59(0x38d)]=null;},_0x49f366);}[_0x48c788(0x205)](){const _0x2c992f=_0x48c788;var _0x45cd07;this[_0x2c992f(0x496)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x2c992f(0x217)](),(_0x45cd07=this['_configService'][_0x2c992f(0x2d9)](qi))!=null?_0x45cd07:Zi);}[_0x48c788(0x217)](){const _0x4ff502=_0x48c788;this['_socket'][_0x4ff502(0x381)]({'cmd':I[_0x4ff502(0x412)]}),this['_waitForHeartbeatResponse']();}[_0x48c788(0x3bc)](){const _0x362e3f=_0x48c788;var _0x6312ec;this[_0x362e3f(0x2ed)]=setTimeout(()=>this[_0x362e3f(0x2b1)](),(_0x6312ec=this[_0x362e3f(0x35d)][_0x362e3f(0x2d9)](ps))!=null?_0x6312ec:Is);}[_0x48c788(0x373)](_0x241b56,_0x3423d5){const _0x3347f2=_0x48c788,{cmd:_0x7d6fb5}=_0x3423d5;_0x7d6fb5===I[_0x3347f2(0x374)]&&!this[_0x3347f2(0x246)]&&(_0x241b56['memberID']=_0x3423d5[_0x3347f2(0x43e)][_0x3347f2(0x260)],this[_0x3347f2(0x429)][_0x3347f2(0x325)](_0x241b56),this['_status$'][_0x3347f2(0x325)](0x3),this[_0x3347f2(0x246)]=!0x0),_0x7d6fb5===I[_0x3347f2(0x412)]&&this['_clearTimeoutTimer'](),this[_0x3347f2(0x205)]();}[_0x48c788(0x496)](){const _0x3bc208=_0x48c788;this[_0x3bc208(0x40e)]!=null&&(clearTimeout(this[_0x3bc208(0x40e)]),this[_0x3bc208(0x40e)]=null);}[_0x48c788(0x1f0)](){const _0x43f55b=_0x48c788;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x43f55b(0x2ed)]),this[_0x43f55b(0x2ed)]=null);}};Re=bs([M(0x0,_0x1df0bc(_0x1883e3)),M(0x1,_0x1df0bc(_0x7ef8c9)),M(0x2,_0xcc97bb),M(0x3,_0xcf8387),M(0x4,_0x475c15),M(0x5,Cs)],Re);var Cn=Object[_0x48c788(0x299)],bn=Object[_0x48c788(0x2bd)],Rn=(_0x406580,_0x51016b,_0x12f31f,_0x118272)=>{const _0x4d735c=_0x48c788;for(var _0x3dd9c4=_0x118272>0x1?void 0x0:_0x118272?bn(_0x51016b,_0x12f31f):_0x51016b,_0x441c94=_0x406580[_0x4d735c(0x3c7)]-0x1,_0xb4953;_0x441c94>=0x0;_0x441c94--)(_0xb4953=_0x406580[_0x441c94])&&(_0x3dd9c4=(_0x118272?_0xb4953(_0x51016b,_0x12f31f,_0x3dd9c4):_0xb4953(_0x3dd9c4))||_0x3dd9c4);return _0x118272&&_0x3dd9c4&&Cn(_0x51016b,_0x12f31f,_0x3dd9c4),_0x3dd9c4;},Se=(_0x55639b,_0x9cf9f2)=>(_0x497a14,_0x5593df)=>_0x9cf9f2(_0x497a14,_0x5593df,_0x55639b);let D=class extends _0x5de86a{constructor(_0xdee53d,_0x25d618,_0x3bd6d6,_0x191bcc,_0x5a53f7){const _0x37d8d5=_0x48c788;super(),l(this,_0x37d8d5(0x24b),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x37d8d5(0x210),!0x1),(this['_configService']=_0xdee53d,this['_localStorageService']=_0x25d618,this['_beforeCloseService']=_0x3bd6d6,this[_0x37d8d5(0x314)]=_0x191bcc,this[_0x37d8d5(0x3f3)]=_0x5a53f7,this['_setupBeforeClosingHandler']());}[_0x48c788(0x2c2)](){const _0x1f8bfd=_0x48c788;this[_0x1f8bfd(0x210)]=!0x0;}[_0x48c788(0x385)](){this['_disabled']=!0x1;}[_0x48c788(0x46e)](){const _0x1b9442=_0x48c788;this[_0x1b9442(0x1b1)]()[_0x1b9442(0x20e)](()=>super['dispose']());}async[_0x48c788(0x256)](_0x2d55ef){const _0x5075b2=_0x48c788;return this[_0x5075b2(0x210)]?null:this[_0x5075b2(0x390)][_0x5075b2(0x434)](Wt(_0x2d55ef));}async[_0x48c788(0x4ad)](_0x71c877,_0x445578){const _0x5198f8=_0x48c788;return!!this[_0x5198f8(0x390)][_0x5198f8(0x4c3)](_0x71c877,_0x445578);}[_0x48c788(0x27d)](_0x143650,_0x314015,_0x32b444,_0x1cb048){const _0x17a358=_0x48c788,_0x2770d9=this[_0x17a358(0x3f3)][_0x17a358(0x4b1)](_0x143650);this['_cachedData'][_0x17a358(0x25a)](_0x143650,{'unitID':_0x143650,'type':_0x314015,'awaitingChangeset':_0x32b444,'mutations':_0x1cb048,'rev':_0x2770d9}),this[_0x17a358(0x3b2)][_0x17a358(0x3f4)](_0x143650)||this[_0x17a358(0x204)](_0x143650);}[_0x48c788(0x204)](_0x8c420d){const _0x16c240=_0x48c788,_0x708f04=this[_0x16c240(0x2fa)]();_0x708f04===0x0?this['_saveCache'](_0x8c420d):this['_saveTaskMap']['set'](_0x8c420d,setTimeout(()=>this[_0x16c240(0x309)](_0x8c420d),_0x708f04));}[_0x48c788(0x2fa)](){const _0x323f8e=_0x48c788;var _0x28db35;return(_0x28db35=this[_0x323f8e(0x35d)]['getConfig'](nn))!=null?_0x28db35:rn;}['_saveCache'](_0x166db3){const _0x2fe938=_0x48c788,_0x300782=this[_0x2fe938(0x3b2)]['get'](_0x166db3);return _0x300782!==void 0x0&&window[_0x2fe938(0x31e)](_0x300782),this[_0x2fe938(0x390)][_0x2fe938(0x4c3)](Wt(_0x166db3),this[_0x2fe938(0x24b)][_0x2fe938(0x4ce)](_0x166db3))['then'](()=>this['_saveTaskMap'][_0x2fe938(0x388)](_0x166db3));}async[_0x48c788(0x1b1)](){const _0x29c594=_0x48c788,_0x3303bf=[];this[_0x29c594(0x3b2)][_0x29c594(0x244)]((_0xff9a15,_0x2918e0)=>{const _0x4f421a=_0x29c594;window[_0x4f421a(0x31e)](_0xff9a15),_0x3303bf[_0x4f421a(0x3ae)](this[_0x4f421a(0x309)](_0x2918e0)[_0x4f421a(0x20e)](()=>{const _0x1eb245=_0x4f421a;this[_0x1eb245(0x3b2)]['delete'](_0x2918e0);}));}),await Promise[_0x29c594(0x42e)](_0x3303bf);}[_0x48c788(0x3ac)](){const _0x24ffe7=_0x48c788;this[_0x24ffe7(0x3e7)](this['_beforeCloseService'][_0x24ffe7(0x280)](()=>{const _0x21e1a1=_0x24ffe7;if(this[_0x21e1a1(0x3b2)][_0x21e1a1(0x457)])return this[_0x21e1a1(0x314)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Rn([Se(0x0,_0x475c15),Se(0x1,_0x2bd6b3),Se(0x2,_0x547f18),Se(0x3,_0x1df0bc(_0x7ef8c9)),Se(0x4,_0x1df0bc(_0x2426c9))],D);function Wt(_0x40d4ca){const _0x214737=_0x48c788;return _0x214737(0x31c)+_0x40d4ca;}const Xe=_0x4e2518('univer-pro.collaboration-client.single-active-unit-service');var Rs=(_0x18c0d8=>(_0x18c0d8[_0x18c0d8[_0x48c788(0x32a)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x18c0d8[_0x18c0d8['OTHER_CLIENTS_EDITING']=0x1]=_0x48c788(0x2cd),_0x18c0d8))(Rs||{});const Gt=0x7530,Yt=_0x48c788(0x200);class Tn extends _0x5de86a{constructor(){const _0x2c7e3c=_0x48c788;super(),l(this,_0x2c7e3c(0x3dd),_0x41ebb1[_0x2c7e3c(0x2e7)]()),l(this,_0x2c7e3c(0x4cf),new Set()),l(this,_0x2c7e3c(0x277),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x2c7e3c(0x211),new Map()),l(this,'_unitStatus',new Map()),this[_0x2c7e3c(0x340)]();}['dispose'](){const _0x110166=_0x48c788;super['dispose'](),this[_0x110166(0x211)][_0x110166(0x244)]((_0x294836,_0x4456c8)=>this[_0x110166(0x279)](_0x4456c8)),this['_heartbeatTimer']&&window[_0x110166(0x44f)](this[_0x110166(0x3b4)]);}[_0x48c788(0x36f)](_0x398cab){const _0x1bd2bf=_0x48c788;return this[_0x1bd2bf(0x482)](_0x398cab)[_0x1bd2bf(0x3bd)](_0xbaf3d7());}['editingUnit'](_0x43e838){const _0x417106=_0x48c788;this[_0x417106(0x4cf)]['size']===0x0&&this[_0x417106(0x3f0)](),this[_0x417106(0x4cf)][_0x417106(0x20d)](_0x43e838),this['_send']({'type':0x0,'memberID':this[_0x417106(0x3dd)],'unitIDs':[_0x43e838],'isForwarded':!0x1});}['disposeUnit'](_0x3dd344){const _0x4d0fe2=_0x48c788;this['_selfUnitIDs'][_0x4d0fe2(0x388)](_0x3dd344),this[_0x4d0fe2(0x4cf)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x4d0fe2(0x3b4)]);}[_0x48c788(0x340)](){const _0xa8666d=_0x48c788;this['disposeWithMe'](_0x308092(_0x3afa96(window,_0xa8666d(0x227))[_0xa8666d(0x237)](_0x307168=>{const _0x1cac98=_0xa8666d;if(_0x307168['key']!==Yt||!_0x307168[_0x1cac98(0x289)])return;const _0x75f909=JSON['parse'](_0x307168[_0x1cac98(0x289)]);this[_0x1cac98(0x1dd)](_0x75f909);}))),window[_0xa8666d(0x3c1)]('unload',()=>this[_0xa8666d(0x463)]({'type':0x1,'memberID':this[_0xa8666d(0x3dd)],'unitIDs':Array[_0xa8666d(0x444)](this[_0xa8666d(0x4cf)])}));}[_0x48c788(0x1dd)](_0x5c845c){const _0x26d8cf=_0x48c788;switch(_0x5c845c[_0x26d8cf(0x45b)]){case 0x0:this['_handleJoinEvent'](_0x5c845c);break;case 0x1:this[_0x26d8cf(0x1f1)](_0x5c845c);break;case 0x2:this[_0x26d8cf(0x328)](_0x5c845c);break;}}[_0x48c788(0x465)](_0x14ac01){const _0x11eb4a=_0x48c788,{unitIDs:_0x5b1f0a,memberID:_0x42ef08,isForwarded:_0xcd3ddc}=_0x14ac01;_0x5b1f0a['forEach'](_0x2dc694=>{const _0x47d507=_0x1999;if(!_0xcd3ddc&&this[_0x47d507(0x277)][_0x47d507(0x3f4)](_0x2dc694)&&this[_0x47d507(0x482)](_0x2dc694)[_0x47d507(0x325)](0x1),!this[_0x47d507(0x277)][_0x47d507(0x3f4)](_0x2dc694)||!this[_0x47d507(0x277)]['get'](_0x2dc694)[_0x47d507(0x3f4)](_0x42ef08)){const _0x161e49=this[_0x47d507(0x277)][_0x47d507(0x4ce)](_0x2dc694)||new Set();_0x161e49[_0x47d507(0x20d)](_0x42ef08),this[_0x47d507(0x277)]['set'](_0x2dc694,_0x161e49),this[_0x47d507(0x2ae)](_0x42ef08);}}),_0xcd3ddc||this[_0x11eb4a(0x463)]({'type':0x0,'memberID':this[_0x11eb4a(0x3dd)],'unitIDs':[...this[_0x11eb4a(0x4cf)]],'isForwarded':!0x0});}[_0x48c788(0x2ae)](_0xee7848){const _0x2e44cb=_0x48c788;this[_0x2e44cb(0x279)](_0xee7848);const _0x496387=window[_0x2e44cb(0x41b)](()=>{const _0x404b8c=_0x2e44cb;this[_0x404b8c(0x277)]['forEach'](_0x3adb09=>{const _0x4747bd=_0x404b8c;_0x3adb09[_0x4747bd(0x388)](_0xee7848);});},Gt*0x2);this[_0x2e44cb(0x211)][_0x2e44cb(0x25a)](_0xee7848,_0x496387);}[_0x48c788(0x279)](_0x41f55b){const _0x5a374e=_0x48c788;if(this[_0x5a374e(0x211)][_0x5a374e(0x3f4)](_0x41f55b)){const _0x199c10=this[_0x5a374e(0x211)][_0x5a374e(0x4ce)](_0x41f55b);_0x199c10&&window[_0x5a374e(0x31e)](_0x199c10),this[_0x5a374e(0x211)][_0x5a374e(0x25a)](_0x41f55b,null);}}[_0x48c788(0x1f1)](_0x4aef8a){const _0x524af4=_0x48c788,{memberID:_0x33a009,unitIDs:_0x163d0a}=_0x4aef8a;_0x163d0a[_0x524af4(0x244)](_0x1b4a99=>{const _0x561b4b=_0x524af4;var _0xb9a698;const _0xf9085f=this[_0x561b4b(0x277)][_0x561b4b(0x4ce)](_0x1b4a99);_0xf9085f&&(_0xf9085f['delete'](_0x33a009),(_0xb9a698=this[_0x561b4b(0x482)](_0x1b4a99))==null||_0xb9a698[_0x561b4b(0x325)](_0xf9085f['size']===0x0?0x0:0x1));}),this[_0x524af4(0x279)](_0x33a009);}[_0x48c788(0x328)](_0x7195f9){const _0xd909d9=_0x48c788;this[_0xd909d9(0x2ae)](_0x7195f9[_0xd909d9(0x260)]);}[_0x48c788(0x463)](_0x17a80d){const _0x54f68c=_0x48c788;localStorage[_0x54f68c(0x4c3)](Yt,JSON['stringify'](_0x17a80d));}[_0x48c788(0x3f0)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x2b9f2b=_0x1999;this[_0x2b9f2b(0x463)]({'type':0x2,'memberID':this[_0x2b9f2b(0x3dd)]});},Gt);}['_ensureSubject'](_0x4374e3){const _0x237968=_0x48c788;return this[_0x237968(0x274)][_0x237968(0x3f4)](_0x4374e3)||this[_0x237968(0x274)][_0x237968(0x25a)](_0x4374e3,new _0xac9643(0x0)),this[_0x237968(0x274)][_0x237968(0x4ce)](_0x4374e3);}}var On=Object['defineProperty'],Dn=Object['getOwnPropertyDescriptor'],wn=(_0x16dc72,_0x14d0c7,_0x3fefcf,_0x522936)=>{const _0x4f631e=_0x48c788;for(var _0x1f63b7=_0x522936>0x1?void 0x0:_0x522936?Dn(_0x14d0c7,_0x3fefcf):_0x14d0c7,_0x5c221b=_0x16dc72[_0x4f631e(0x3c7)]-0x1,_0xe4a641;_0x5c221b>=0x0;_0x5c221b--)(_0xe4a641=_0x16dc72[_0x5c221b])&&(_0x1f63b7=(_0x522936?_0xe4a641(_0x14d0c7,_0x3fefcf,_0x1f63b7):_0xe4a641(_0x1f63b7))||_0x1f63b7);return _0x522936&&_0x1f63b7&&On(_0x14d0c7,_0x3fefcf,_0x1f63b7),_0x1f63b7;},Kt=(_0x2e688a,_0x363b1c)=>(_0x1efe6f,_0x16784e)=>_0x363b1c(_0x1efe6f,_0x16784e,_0x2e688a);let ke=class{constructor(_0x5c18c8,_0x25c59){const _0x2c174a=_0x48c788;this[_0x2c174a(0x2e1)]=_0x5c18c8,this[_0x2c174a(0x231)]=_0x25c59;}[_0x48c788(0x1c5)](_0x4f888a){const _0x43222f=_0x48c788;this['_transformUndoRedoStack'](_0x4f888a),this[_0x43222f(0x47f)](_0x4f888a);}[_0x48c788(0x1cf)](_0x89c505){const _0x2aaa71=_0x48c788,_0x3e7106=this[_0x2aaa71(0x2e1)]['get'](_0x5c948d),{redoCache:_0x5f40ae}=_0x3e7106['getUndoRedoMutationParamsCache']();if(_0x5f40ae[_0x2aaa71(0x3c7)]===0x0)return _0x89c505;let _0x42b54f=_0x41ebb1[_0x2aaa71(0x3ba)](_0x89c505[_0x2aaa71(0x3b5)][0x0]);for(let _0x518fc4=0x0;_0x518fc4<_0x5f40ae[_0x2aaa71(0x3c7)];_0x518fc4++){const _0x2e831d={'id':'doc.mutation.rich-text-editing','params':{..._0x5f40ae[_0x518fc4]}},_0x2be7bd=this[_0x2aaa71(0x231)]['transformMutation'](_0x42b54f,_0x2e831d,!0x1);if(_0x1ce5e8(_0x2be7bd))throw _0x2be7bd[_0x2aaa71(0x1b3)];_0x42b54f=_0x2be7bd['m1Prime'];}return{..._0x41ebb1[_0x2aaa71(0x3ba)](_0x89c505),'mutations':[_0x42b54f]};}['_transformUndoRedoStack'](_0x7e96f2){const _0x4666e8=_0x48c788,_0x3ccd7b=this[_0x4666e8(0x2e1)][_0x4666e8(0x4ce)](_0x5c948d),{undoCache:_0x223918,redoCache:_0x2c397e}=_0x3ccd7b[_0x4666e8(0x411)]();if(_0x223918['length']===0x0||_0x2c397e[_0x4666e8(0x3c7)]===0x0)return;const _0x3d2dac=[],_0x5c3d1e=[];let _0x23837d=_0x41ebb1[_0x4666e8(0x3ba)](_0x7e96f2['mutations'][0x0]),_0x9c904a=_0x41ebb1['deepClone'](_0x7e96f2[_0x4666e8(0x3b5)][0x0]);for(let _0x200261=_0x223918[_0x4666e8(0x3c7)]-0x1;_0x200261>=0x0;_0x200261--){const _0x2182a9={'id':_0x4666e8(0x4b6),'params':{..._0x223918[_0x200261]}},_0x54916a={'id':_0x4666e8(0x4b6),'params':{..._0x2c397e[_0x200261]}},_0x5220e5=this[_0x4666e8(0x231)][_0x4666e8(0x33b)](_0x23837d,_0x2182a9,!0x1),_0x8b09bb=this[_0x4666e8(0x231)][_0x4666e8(0x33b)](_0x9c904a,_0x54916a,!0x1);if(_0x1ce5e8(_0x5220e5))throw _0x5220e5[_0x4666e8(0x1b3)];if(_0x1ce5e8(_0x8b09bb))throw _0x8b09bb[_0x4666e8(0x1b3)];_0x3d2dac[_0x4666e8(0x384)](_0x5220e5[_0x4666e8(0x1bc)][_0x4666e8(0x23e)]),_0x5c3d1e[_0x4666e8(0x384)](_0x8b09bb[_0x4666e8(0x1bc)][_0x4666e8(0x23e)]),_0x23837d=_0x5220e5[_0x4666e8(0x415)],_0x9c904a=_0x8b09bb[_0x4666e8(0x415)];}_0x3ccd7b[_0x4666e8(0x232)]({'undoCache':_0x3d2dac,'redoCache':_0x5c3d1e});}[_0x48c788(0x47f)](_0x1445ed){const _0x30ca54=_0x48c788,_0x3e9a38=this['_injector'][_0x30ca54(0x4ce)](_0x5c948d),_0x1f93b5=_0x3e9a38[_0x30ca54(0x233)]();if(_0x1f93b5==null)return;const _0x27fdf7=[{'id':_0x30ca54(0x4b6),'params':{'unitId':_0x1445ed[_0x30ca54(0x2d3)],'actions':null,'textRanges':[_0x1f93b5]}}],_0x57f087=this[_0x30ca54(0x231)][_0x30ca54(0x313)](_0x1445ed,_0x27fdf7);if(!_0x13e3eb(_0x57f087))throw _0x57f087[_0x30ca54(0x1b3)];const _0x17ca70=_0x57f087[_0x30ca54(0x1bc)][0x0][_0x30ca54(0x23e)]['textRanges'];Array[_0x30ca54(0x1c9)](_0x17ca70)&&_0x17ca70[_0x30ca54(0x3c7)]&&_0x3e9a38[_0x30ca54(0x1e5)](_0x17ca70[0x0]);}};ke=wn([Kt(0x0,_0x1df0bc(_0x1883e3)),Kt(0x1,_0x56e350)],ke);var Pn=Object[_0x48c788(0x299)],Nn=Object['getOwnPropertyDescriptor'],Mn=(_0xfa8bdc,_0x248571,_0x1ddd9f,_0x9df5ab)=>{const _0x53c845=_0x48c788;for(var _0x5c2e43=_0x9df5ab>0x1?void 0x0:_0x9df5ab?Nn(_0x248571,_0x1ddd9f):_0x248571,_0x356c4b=_0xfa8bdc[_0x53c845(0x3c7)]-0x1,_0x4be695;_0x356c4b>=0x0;_0x356c4b--)(_0x4be695=_0xfa8bdc[_0x356c4b])&&(_0x5c2e43=(_0x9df5ab?_0x4be695(_0x248571,_0x1ddd9f,_0x5c2e43):_0x4be695(_0x5c2e43))||_0x5c2e43);return _0x9df5ab&&_0x5c2e43&&Pn(_0x248571,_0x1ddd9f,_0x5c2e43),_0x5c2e43;},Xt=(_0x728457,_0x4e1d08)=>(_0x25f325,_0x1eefd4)=>_0x4e1d08(_0x25f325,_0x1eefd4,_0x728457);let Be=class{constructor(_0x6e782e,_0x4bf51a){const _0x182ceb=_0x48c788;this[_0x182ceb(0x2e1)]=_0x6e782e,this[_0x182ceb(0x231)]=_0x4bf51a;}['transformSelections'](_0x21aae1){const _0xe169da=_0x48c788;var _0xa1b684;const _0x4d1f8c=this[_0xe169da(0x2e1)][_0xe169da(0x4ce)](_0x3953fa),_0x557efb=(_0xa1b684=_0x4d1f8c[_0xe169da(0x2cf)]())!=null?_0xa1b684:[],_0x52977e=_0x557efb==null?void 0x0:_0x557efb['map'](_0x478cbe);if(_0x52977e['length']===0x0)return;const _0x39d0a0=[{'id':_0xe169da(0x4b6),'params':{'unitId':_0x21aae1[_0xe169da(0x2d3)],'actions':null,'textRanges':_0x52977e}}],_0x5be83e=this[_0xe169da(0x231)][_0xe169da(0x313)](_0x21aae1,_0x39d0a0);if(!_0x13e3eb(_0x5be83e))throw _0x5be83e['error'];const _0x3a020d=_0x5be83e[_0xe169da(0x1bc)][0x0][_0xe169da(0x23e)][_0xe169da(0x410)];Array[_0xe169da(0x1c9)](_0x3a020d)&&_0x3a020d['length']&&_0x4d1f8c[_0xe169da(0x275)](_0x3a020d,!0x1);}};Be=Mn([Xt(0x0,_0x1df0bc(_0x1883e3)),Xt(0x1,_0x56e350)],Be);function Ts(_0x4d459b){let _0x577c1a='';for(const _0x4f397f of _0x4d459b){const {startOffset:_0x48edc5,endOffset:_0x210d4b,isActive:_0x540baa}=_0x4f397f;_0x577c1a['length']&&(_0x577c1a+=','),_0x577c1a+=_0x48edc5+':'+_0x210d4b+':'+(_0x540baa?'1':'0');}return _0x577c1a;}function An(_0x273223){const _0x10ca0a=_0x48c788,_0x5b350b=_0x273223[_0x10ca0a(0x2c4)](','),_0x12ed03=[];for(const _0x39014a of _0x5b350b){const [_0xe88d6e,_0x456b3c,_0x4ea418]=_0x39014a[_0x10ca0a(0x2c4)](':');_0x12ed03[_0x10ca0a(0x3ae)]({'startOffset':Number(_0xe88d6e),'endOffset':Number(_0x456b3c),'collapsed':_0xe88d6e===_0x456b3c,'isActive':_0x4ea418==='1'});}return _0x12ed03[_0x10ca0a(0x364)](_0x49ebb6=>_0x49ebb6[_0x10ca0a(0x271)])||(_0x12ed03[0x0][_0x10ca0a(0x271)]=!0x0),_0x12ed03;}class Mt extends _0x4f9c78{constructor(){const _0x5f5a6d=_0x48c788;super(...arguments),l(this,'_collabCursorState$',new _0xac9643(null)),l(this,_0x5f5a6d(0x343),this[_0x5f5a6d(0x22d)]['asObservable']());}[_0x48c788(0x4d5)](_0x3ebd27){const _0x12b469=_0x48c788,{unitID:_0x2cb147,memberID:_0x464c15,textRanges:_0x1e3ff9}=_0x3ebd27,_0x131c48=Ts(_0x1e3ff9),_0x57c800={'unitID':_0x2cb147,'memberID':_0x464c15,'selection':_0x131c48};this[_0x12b469(0x22d)][_0x12b469(0x325)](_0x57c800);}}var yn=Object[_0x48c788(0x299)],Un=Object[_0x48c788(0x2bd)],Ln=(_0xf0633c,_0x4847de,_0x5d477e,_0x28d8fe)=>{for(var _0x1c81e0=_0x28d8fe>0x1?void 0x0:_0x28d8fe?Un(_0x4847de,_0x5d477e):_0x4847de,_0x223eb9=_0xf0633c['length']-0x1,_0x4d3e33;_0x223eb9>=0x0;_0x223eb9--)(_0x4d3e33=_0xf0633c[_0x223eb9])&&(_0x1c81e0=(_0x28d8fe?_0x4d3e33(_0x4847de,_0x5d477e,_0x1c81e0):_0x4d3e33(_0x1c81e0))||_0x1c81e0);return _0x28d8fe&&_0x1c81e0&&yn(_0x4847de,_0x5d477e,_0x1c81e0),_0x1c81e0;},Jt=(_0x3dd968,_0x389f5b)=>(_0x4d4608,_0x46d9cd)=>_0x389f5b(_0x4d4608,_0x46d9cd,_0x3dd968);let Ve=class{constructor(_0x2a5363,_0x4ad852){const _0x470500=_0x48c788;this['_injector']=_0x2a5363,this[_0x470500(0x231)]=_0x4ad852;}[_0x48c788(0x4a4)](_0x3322f2){const _0x49f720=_0x48c788;var _0x252ac3,_0x251192,_0x174cb4,_0x5f2e40;const _0x540fda=this[_0x49f720(0x2e1)]['get'](_0x241ac5),{pluginName:_0x19fc63,unitId:_0x5451d4,sheetId:_0x557de4}=_0x540fda[_0x49f720(0x342)]()||{},_0x1752df=(_0x252ac3=_0x540fda[_0x49f720(0x2cf)]())!=null?_0x252ac3:[];if(_0x1752df[_0x49f720(0x3c7)]===0x0||!_0x19fc63||!_0x5451d4||!_0x557de4)return;const _0x3db177=[{'id':_0x576668['id'],'params':{'unitId':_0x5451d4,'subUnitId':_0x557de4,'pluginName':_0x19fc63,'selections':_0x41ebb1[_0x49f720(0x3ba)](_0x1752df)}}],_0x4cf851=this[_0x49f720(0x231)][_0x49f720(0x313)](_0x3322f2,_0x3db177);if(!_0x13e3eb(_0x4cf851))throw _0x4cf851[_0x49f720(0x1b3)];const _0x183f3b=(_0x5f2e40=(_0x174cb4=(_0x251192=_0x4cf851['m2Prime'][0x0])==null?void 0x0:_0x251192['params'])==null?void 0x0:_0x174cb4['selections'])!=null?_0x5f2e40:_0x1752df;Array[_0x49f720(0x1c9)](_0x183f3b)&&_0x183f3b['length']&&this[_0x49f720(0x2e1)]['get'](_0x26b7b1)[_0x49f720(0x2df)](_0x576668['id'],{'unitId':_0x5451d4,'subUnitId':_0x557de4,'pluginName':_0x19fc63,'selections':_0x183f3b});}};Ve=Ln([Jt(0x0,_0x1df0bc(_0x1883e3)),Jt(0x1,_0x56e350)],Ve);const $n=new Set([_0x183395['id']]);function jn(_0x35d324,_0x425b1a,_0xdd05d0,_0x229a15,_0xd5a8bb){const _0xdc3185=_0x48c788;var _0xb7504a,_0x5b208e,_0x4526bc,_0x13dec5;const _0x1c3075=[];for(const _0x3e2091 of _0x35d324)if($n['has'](_0x3e2091['id'])){if(_0x1c3075[_0xdc3185(0x3c7)]>0x0)break;_0x1c3075[_0xdc3185(0x3ae)](_0x3e2091);break;}else _0x1c3075['push'](_0x3e2091);const _0x4cba91=(_0x5b208e=(_0xb7504a=_0xd5a8bb['getCurrentUser']())==null?void 0x0:_0xb7504a[_0xdc3185(0x473)])!=null?_0x5b208e:_0xdc3185(0x228),_0x490655=(_0x13dec5=(_0x4526bc=_0xd5a8bb[_0xdc3185(0x310)]())==null?void 0x0:_0x4526bc[_0xdc3185(0x260)])!=null?_0x13dec5:_0xdc3185(0x228);return{'changeset':{'unitID':_0x425b1a,'type':_0x501378(_0xdd05d0['getUnitType'](_0x425b1a)),'baseRev':_0x229a15[_0xdc3185(0x4b1)](_0x425b1a),'revision':0x0,'userID':_0x4cba91,'memberID':_0x490655,'mutations':_0x1c3075},'pendingMutations':_0x35d324['slice'](_0x1c3075[_0xdc3185(0x3c7)])};}function Hn(_0x3c1e43,_0x1141d6,_0x374fdc,_0x319f93,_0x35b27e){const _0x2ff7c3=_0x48c788;var _0x33336f,_0x507873,_0x25ebb6,_0x22f6a3;const _0x1dbf57=[_0x3c1e43['reduce']((_0x2417f3,_0x2e1a46)=>{const _0x14a827=_0x1999;var _0x466e14;const {id:_0x193547}=_0x2417f3,{id:_0xa66063,type:_0x218504}=_0x2e1a46,_0x357a47=(_0x466e14=_0x2417f3['params'])!=null?_0x466e14:{'actions':null},_0x9a5dcf=_0x2e1a46[_0x14a827(0x23e)];if(_0x193547&&_0x193547!==_0xa66063)throw new Error(_0x14a827(0x361)+_0x193547+_0x14a827(0x1da)+_0xa66063+'.');return{..._0x2417f3,'id':_0xa66063,'type':_0x218504,'params':{'unitId':_0x9a5dcf['unitId'],'textRanges':_0x9a5dcf[_0x14a827(0x410)],'actions':_0x44383b['compose'](_0x357a47[_0x14a827(0x25e)],_0x9a5dcf['actions'])}};},{})],_0x182cea=(_0x507873=(_0x33336f=_0x35b27e[_0x2ff7c3(0x310)]())==null?void 0x0:_0x33336f[_0x2ff7c3(0x473)])!=null?_0x507873:'unknown',_0xdaecef=(_0x22f6a3=(_0x25ebb6=_0x35b27e['getCurrentUser']())==null?void 0x0:_0x25ebb6[_0x2ff7c3(0x260)])!=null?_0x22f6a3:_0x2ff7c3(0x228);return{'changeset':{'unitID':_0x1141d6,'type':_0x501378(_0x374fdc[_0x2ff7c3(0x304)](_0x1141d6)),'baseRev':_0x319f93['getCurrentRevForDocument'](_0x1141d6),'revision':0x0,'userID':_0x182cea,'memberID':_0xdaecef,'mutations':_0x1dbf57},'pendingMutations':[]};}var xn=Object['defineProperty'],Fn=Object[_0x48c788(0x2bd)],ne=(_0xcd5b4,_0x13fa91,_0x5230f9,_0x5f37bb)=>{const _0x420c5f=_0x48c788;for(var _0x39b2cf=_0x5f37bb>0x1?void 0x0:_0x5f37bb?Fn(_0x13fa91,_0x5230f9):_0x13fa91,_0x22cf68=_0xcd5b4[_0x420c5f(0x3c7)]-0x1,_0x18edbf;_0x22cf68>=0x0;_0x22cf68--)(_0x18edbf=_0xcd5b4[_0x22cf68])&&(_0x39b2cf=(_0x5f37bb?_0x18edbf(_0x13fa91,_0x5230f9,_0x39b2cf):_0x18edbf(_0x39b2cf))||_0x39b2cf);return _0x5f37bb&&_0x39b2cf&&xn(_0x13fa91,_0x5230f9,_0x39b2cf),_0x39b2cf;},g=(_0x1f2511,_0x1d1104)=>(_0x1802c5,_0x2fe8a5)=>_0x1d1104(_0x1802c5,_0x2fe8a5,_0x1f2511),P=(_0x273d1f=>(_0x273d1f[_0x48c788(0x43a)]=_0x48c788(0x319),_0x273d1f[_0x48c788(0x21f)]='synced',_0x273d1f[_0x48c788(0x345)]=_0x48c788(0x2f5),_0x273d1f[_0x48c788(0x27e)]=_0x48c788(0x2ef),_0x273d1f[_0x48c788(0x45a)]='awaiting_with_pending',_0x273d1f[_0x48c788(0x29a)]=_0x48c788(0x409),_0x273d1f[_0x48c788(0x2ec)]=_0x48c788(0x3a2),_0x273d1f[_0x48c788(0x214)]=_0x48c788(0x25d),_0x273d1f))(P||{});class re{constructor(_0x2a9fc3,_0x13fcd4,_0x4447ae,_0x2bc9b5,_0x16d80b,_0x2bf6d4,_0x114242,_0x588b42,_0x5a68a7){const _0x455822=_0x48c788;l(this,'_awaitingChangeset',null),l(this,_0x455822(0x2cb),[]),(this['unitID']=_0x2a9fc3,this['type']=_0x13fcd4,this[_0x455822(0x43f)]=_0x16d80b,this[_0x455822(0x1e9)]=_0x2bf6d4,this[_0x455822(0x3b7)]=_0x114242,this[_0x455822(0x3f3)]=_0x588b42,this['_localCacheService']=_0x5a68a7,this[_0x455822(0x4ca)]=_0x4447ae,this[_0x455822(0x2cb)]=_0x2bc9b5);}['_checkMissing'](_0x55c252){const _0x351a5a=_0x48c788,_0x5a037f=this[_0x351a5a(0x3f3)]['getCurrentRevForDocument'](this[_0x351a5a(0x2d3)]);return _0x55c252[_0x351a5a(0x480)]>_0x5a037f+0x1?(this['_handler'][_0x351a5a(0x466)]({'from':_0x5a037f,'to':_0x55c252[_0x351a5a(0x480)]-0x1}),!0x0):!0x1;}[_0x48c788(0x363)](_0x24c5e8){const _0x19373d=_0x48c788;this['_undoRedoService'][_0x19373d(0x1d6)](this[_0x19373d(0x2d3)],_0x24c5e8);}['_transformSelections'](_0x8b5b58){const _0x1132d4=_0x48c788;var _0x3ad08c,_0x113568;(_0x113568=(_0x3ad08c=this['_handler'])[_0x1132d4(0x320)])==null||_0x113568['call'](_0x3ad08c,_0x8b5b58);}[_0x48c788(0x35e)](_0x5028e4){var _0x17516c,_0x507edd;return(_0x507edd=(_0x17516c=this['_handler'])['onTransformIME'])==null?void 0x0:_0x507edd['call'](_0x17516c,_0x5028e4);}['_transformRemoteChangesetByIMECache'](_0x5a65c0){const _0x4feefd=_0x48c788;var _0x2e64e1,_0x26c978,_0x463c5a;return(_0x463c5a=(_0x26c978=(_0x2e64e1=this[_0x4feefd(0x43f)])[_0x4feefd(0x2b9)])==null?void 0x0:_0x26c978[_0x4feefd(0x413)](_0x2e64e1,_0x5a65c0))!=null?_0x463c5a:_0x5a65c0;}[_0x48c788(0x1e2)](_0x20b6b7){const _0x414d90=_0x48c788;var _0x28873d,_0x35c99f;if(this[_0x414d90(0x45b)]===H[_0x414d90(0x4d4)]){const {unitID:_0x1a7a8b,mutations:_0x2299e3,memberID:_0x2692f8}=_0x20b6b7,_0x2448ee=_0x2299e3[0x0]['params']['textRanges'];Array[_0x414d90(0x1c9)](_0x2448ee)&&_0x2448ee[_0x414d90(0x3c7)]>0x0&&((_0x35c99f=(_0x28873d=this[_0x414d90(0x43f)])[_0x414d90(0x1ba)])==null||_0x35c99f[_0x414d90(0x413)](_0x28873d,{'unitID':_0x1a7a8b,'memberID':_0x2692f8,'textRanges':_0x2448ee}));}}[_0x48c788(0x4b3)](){const _0x572a95=_0x48c788;this['_localCacheService']['updateOfflineData'](this[_0x572a95(0x2d3)],this['type'],this[_0x572a95(0x4ca)],this[_0x572a95(0x2cb)]);}[_0x48c788(0x2bf)](){const _0x450183=_0x48c788;return this[_0x450183(0x3f3)][_0x450183(0x4b1)](this[_0x450183(0x2d3)]);}[_0x48c788(0x42a)](){const _0xac35f9=_0x48c788;this[_0xac35f9(0x3f3)]['incrementRevForDocument'](this[_0xac35f9(0x2d3)]);}[_0x48c788(0x1d3)](_0x5cd203){const _0x5ba5f7=_0x48c788;var _0x14fb1a;const _0x1dd5f7=this[_0x5ba5f7(0x2d1)](_0x5cd203),_0x5625ad=_0x196e3d(_0x1dd5f7[_0x5ba5f7(0x3b5)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5625ad[_0x5ba5f7(0x2eb)])throw _0x5625ad[_0x5ba5f7(0x1b3)]instanceof Error?_0x5625ad[_0x5ba5f7(0x1b3)]:new Error((_0x14fb1a=_0x5625ad[_0x5ba5f7(0x1b3)])!=null?_0x14fb1a:_0x5ba5f7(0x3b9));this[_0x5ba5f7(0x35e)](_0x1dd5f7),this[_0x5ba5f7(0x363)](_0x5cd203),this[_0x5ba5f7(0x40a)](_0x1dd5f7),this[_0x5ba5f7(0x1e2)](_0x1dd5f7),this[_0x5ba5f7(0x42a)]();}}let Te=class extends re{constructor(_0x4e87cf,_0x33e040,_0x306dc5,_0x59ef18,_0x38554d,_0x5aa3ba,_0x7a221d,_0x3b5c4d,_0x4d92ba){const _0x582fba=_0x48c788;super(_0x4e87cf,_0x33e040,null,[],_0x306dc5,_0x3b5c4d,_0x7a221d,_0x59ef18,_0x38554d),l(this,_0x582fba(0x4c6),_0x582fba(0x293)),(this['_injector']=_0x5aa3ba,this[_0x582fba(0x2ad)]=_0x4d92ba);}[_0x48c788(0x2d0)](_0x8e679c){const _0x5f4c4f=_0x48c788,_0x5a0acb=this['_injector']['createInstance'](B,this[_0x5f4c4f(0x2d3)],this[_0x5f4c4f(0x45b)],[_0x8e679c],this[_0x5f4c4f(0x43f)]);return _0x5a0acb[_0x5f4c4f(0x3af)](),_0x5a0acb[_0x5f4c4f(0x4b3)](),_0x5a0acb;}[_0x48c788(0x32e)](_0x1d1cdc){const _0x501227=_0x48c788;if(this[_0x501227(0x2e4)](_0x1d1cdc))return this[_0x501227(0x2e1)][_0x501227(0x3a1)](W,this[_0x501227(0x2d3)],this[_0x501227(0x45b)],null,[],null,[_0x1d1cdc],this[_0x501227(0x43f)]);try{return this[_0x501227(0x1d3)](_0x1d1cdc),this;}catch(_0x34697f){return this[_0x501227(0x2ad)][_0x501227(0x1b3)](_0x501227(0x349),_0x34697f),this;}}[_0x48c788(0x2ce)](){const _0x2afa00=_0x48c788;throw new Error(_0x2afa00(0x472));}[_0x48c788(0x21d)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x48c788(0x24d)](){const _0x292129=_0x48c788;return this[_0x292129(0x2e1)][_0x292129(0x3a1)](X,this[_0x292129(0x2d3)],this[_0x292129(0x45b)],null,[],this[_0x292129(0x43f)]);}[_0x48c788(0x3bf)](){return this;}[_0x48c788(0x20b)](){const _0x58ca36=_0x48c788;throw new Error(_0x58ca36(0x4c8));}};Te=ne([g(0x3,_0x1df0bc(_0x2426c9)),g(0x4,_0x1df0bc(D)),g(0x5,_0x1df0bc(_0x1883e3)),g(0x6,_0x3b301b),g(0x7,_0x26b7b1),g(0x8,_0xcf8387)],Te);let B=class extends re{constructor(_0x27c8bb,_0x2d2a28,_0x385aec,_0x5507c4,_0x24ed55,_0xd3d92b,_0x434ea8,_0x564b99,_0x31ceae,_0x4c5ae8,_0x11577a,_0x150f45,_0x564c4f,_0x29e129){const _0x1782f7=_0x48c788;super(_0x27c8bb,_0x2d2a28,null,_0x385aec,_0x5507c4,_0x4c5ae8,_0x29e129,_0xd3d92b,_0x434ea8),l(this,'status','pending'),l(this,_0x1782f7(0x2af),null),l(this,_0x1782f7(0x334),null),(this[_0x1782f7(0x2e1)]=_0x24ed55,this[_0x1782f7(0x28e)]=_0x564b99,this[_0x1782f7(0x2ad)]=_0x31ceae,this['_configService']=_0x11577a,this[_0x1782f7(0x231)]=_0x150f45,this[_0x1782f7(0x38c)]=_0x564c4f);}[_0x48c788(0x2d0)](_0x28ce2c){const _0x6d1723=_0x48c788;return this[_0x6d1723(0x2cb)][_0x6d1723(0x3ae)](_0x28ce2c),this[_0x6d1723(0x4b3)](),this;}['onRemoteChangeset'](_0x385151){const _0x231e13=_0x48c788;if(this[_0x231e13(0x2e4)](_0x385151))return this['_clearScheduledTask'](),this['_injector']['createInstance'](W,this['unitID'],this[_0x231e13(0x45b)],null,this[_0x231e13(0x2cb)],null,[_0x385151],this[_0x231e13(0x43f)]);try{const _0x30aa0d=this[_0x231e13(0x231)]['transformMutationsWithChangeset'](_0x385151,this['_pendingMutations']);if(_0x13e3eb(_0x30aa0d)){const {c1Prime:_0x2d1461,m2Prime:_0x364c9f}=_0x30aa0d;this[_0x231e13(0x1d3)](_0x2d1461);const _0x21e323=this['_injector'][_0x231e13(0x3a1)](B,this[_0x231e13(0x2d3)],this[_0x231e13(0x45b)],_0x364c9f,this['_handler']);return this[_0x231e13(0x2b8)](),_0x21e323[_0x231e13(0x3af)](this[_0x231e13(0x2af)]?Math[_0x231e13(0x249)](0x0,new Date()[_0x231e13(0x372)]()-this[_0x231e13(0x2af)]):this['_getSendChangesetTimeout']()),_0x21e323;}throw _0x30aa0d[_0x231e13(0x1b3)];}catch(_0x32608f){return this[_0x231e13(0x2ad)][_0x231e13(0x1b3)](_0x32608f),this['_onConflict'](!0x1);}}[_0x48c788(0x2ce)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x48c788(0x21d)](){const _0x98eab8=_0x48c788;throw new Error(_0x98eab8(0x42c));}[_0x48c788(0x24d)](){const _0x343171=_0x48c788;return this[_0x343171(0x2b8)](),this[_0x343171(0x2e1)][_0x343171(0x3a1)](X,this['unitID'],this[_0x343171(0x45b)],null,this['_pendingMutations'],this['_handler']);}[_0x48c788(0x3bf)](){return this;}[_0x48c788(0x3af)](_0x237eca){const _0x3a3710=_0x48c788;_0x237eca=_0x237eca!=null?_0x237eca:this['_getSendChangesetTimeout'](),this[_0x3a3710(0x2af)]=new Date()[_0x3a3710(0x372)](),this['_sendingTimer']=setTimeout(()=>{const _0x2ed838=_0x3a3710;this[_0x2ed838(0x2b8)]();let _0x38ae12=null;switch(this[_0x2ed838(0x45b)]){case H['UNIVER_SHEET']:{_0x38ae12=jn(this[_0x2ed838(0x2cb)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x2ed838(0x28e)]);break;}case H[_0x2ed838(0x4d4)]:{_0x38ae12=Hn(this['_pendingMutations'],this[_0x2ed838(0x2d3)],this['_univerInstanceService'],this['_revisionService'],this[_0x2ed838(0x28e)]);break;}default:throw new Error(_0x2ed838(0x455)+this[_0x2ed838(0x45b)]+_0x2ed838(0x2c9));}const {changeset:_0x88a6b9,pendingMutations:_0x3f0798}=_0x38ae12;this[_0x2ed838(0x43f)][_0x2ed838(0x445)](_0x88a6b9);const _0x7cb593=_0x3f0798[_0x2ed838(0x3c7)]?this[_0x2ed838(0x2e1)][_0x2ed838(0x3a1)](V,this[_0x2ed838(0x2d3)],this['type'],_0x88a6b9,_0x3f0798,this[_0x2ed838(0x43f)]):this['_injector'][_0x2ed838(0x3a1)](K,this[_0x2ed838(0x2d3)],this['type'],_0x88a6b9,this['_handler']);_0x7cb593[_0x2ed838(0x4b3)](),this[_0x2ed838(0x43f)][_0x2ed838(0x4d6)](this,_0x7cb593);},_0x237eca);}['_getSendChangesetTimeout'](){const _0x27ef74=_0x48c788;var _0x8b3bae;return(_0x8b3bae=this[_0x27ef74(0x35d)][_0x27ef74(0x2d9)](Ki))!=null?_0x8b3bae:Xi;}[_0x48c788(0x20b)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x48c788(0x2b8)](){const _0x39bce8=_0x48c788;this[_0x39bce8(0x334)]!=null&&(clearTimeout(this[_0x39bce8(0x334)]),this[_0x39bce8(0x334)]=null);}[_0x48c788(0x487)](_0xeb304){const _0x2a2817=_0x48c788;return this[_0x2a2817(0x2b8)](),this[_0x2a2817(0x2e1)][_0x2a2817(0x3a1)](te,this['unitID'],this[_0x2a2817(0x45b)],null,this[_0x2a2817(0x2cb)],this[_0x2a2817(0x43f)],_0xeb304);}};B=ne([g(0x4,_0x1df0bc(_0x1883e3)),g(0x5,_0x1df0bc(_0x2426c9)),g(0x6,_0x1df0bc(D)),g(0x7,_0x1df0bc(ee)),g(0x8,_0xcf8387),g(0x9,_0x26b7b1),g(0xa,_0x475c15),g(0xb,_0x56e350),g(0xc,_0x5db99b),g(0xd,_0x3b301b)],B);let K=class extends re{constructor(_0x19b606,_0xf21c04,_0xb65cba,_0x5633b6,_0x3d9c0b,_0x49c8f0,_0x796222,_0x4f3d9d,_0x4bc664,_0x264546,_0x2ec5d5){const _0x5ded68=_0x48c788;super(_0x19b606,_0xf21c04,_0xb65cba,[],_0x5633b6,_0x4f3d9d,_0x2ec5d5,_0x49c8f0,_0x796222),l(this,'status',_0x5ded68(0x2ef)),(this[_0x5ded68(0x2e1)]=_0x3d9c0b,this['_logService']=_0x4bc664,this['_transformService']=_0x264546);}[_0x48c788(0x2d0)](_0x4df284){const _0x4b9da0=_0x48c788,_0x118160=this['_injector']['createInstance'](V,this['unitID'],this[_0x4b9da0(0x45b)],this[_0x4b9da0(0x4ca)],[_0x4df284],this['_handler']);return _0x118160[_0x4b9da0(0x4b3)](),_0x118160;}[_0x48c788(0x32e)](_0x38ccf6){const _0x24c288=_0x48c788;if(this[_0x24c288(0x2e4)](_0x38ccf6))return this['_injector'][_0x24c288(0x3a1)](W,this[_0x24c288(0x2d3)],this[_0x24c288(0x45b)],this[_0x24c288(0x4ca)],[],null,[_0x38ccf6],this['_handler']);try{const _0x19f154=this['_transformService'][_0x24c288(0x3e3)]([_0x38ccf6],[this['_awaitingChangeset']],!0x1);if(_0x4a3135(_0x19f154)){const {c1Prime:_0x5edf5b,c2Prime:_0x4e3833}=_0x19f154;this[_0x24c288(0x1d3)](_0x5edf5b[0x0]),_0x4e3833[0x0][_0x24c288(0x391)]=this[_0x24c288(0x2bf)]();const _0x1612cf=this[_0x24c288(0x2e1)][_0x24c288(0x3a1)](K,this['unitID'],this[_0x24c288(0x45b)],_0x4e3833[0x0],this[_0x24c288(0x43f)]);return _0x1612cf[_0x24c288(0x4b3)](),_0x1612cf;}return this[_0x24c288(0x487)](!0x1);}catch(_0x207f73){return this['_logService'][_0x24c288(0x1b3)](_0x207f73),this[_0x24c288(0x487)](!0x1);}}[_0x48c788(0x2ce)](_0x569ed8){const _0x1503c2=_0x48c788,_0x400534=this[_0x1503c2(0x3f3)][_0x1503c2(0x4b1)](this['unitID']);if(_0x569ed8[_0x1503c2(0x480)]<_0x400534-0x1)return this;if(this[_0x1503c2(0x2e4)](_0x569ed8))return this[_0x1503c2(0x2e1)]['createInstance'](W,this[_0x1503c2(0x2d3)],this['type'],null,[],this[_0x1503c2(0x4ca)],[],this[_0x1503c2(0x43f)]);this[_0x1503c2(0x42a)]();const _0x572dee=this[_0x1503c2(0x2e1)][_0x1503c2(0x3a1)](Te,this[_0x1503c2(0x2d3)],this[_0x1503c2(0x45b)],this[_0x1503c2(0x43f)]);return _0x572dee['_updateLocalCache'](),_0x572dee;}[_0x48c788(0x21d)](_0x89b72d){const _0x5721a4=_0x48c788;return this[_0x5721a4(0x487)](!!(_0x89b72d!=null&&_0x89b72d['isPermissionRej']));}[_0x48c788(0x24d)](){const _0x58b164=_0x48c788;return this['_injector'][_0x58b164(0x3a1)](X,this['unitID'],this[_0x58b164(0x45b)],this[_0x58b164(0x4ca)],[],this[_0x58b164(0x43f)]);}['toggleOnline'](){return this;}[_0x48c788(0x20b)](){const _0x4dc279=_0x48c788;this[_0x4dc279(0x43f)][_0x4dc279(0x445)](this[_0x4dc279(0x4ca)]);}[_0x48c788(0x487)](_0x110f8a){const _0x5ca5b9=_0x48c788;return this[_0x5ca5b9(0x2e1)]['createInstance'](te,this['unitID'],this[_0x5ca5b9(0x45b)],this['_awaitingChangeset'],[],this[_0x5ca5b9(0x43f)],_0x110f8a);}};K=ne([g(0x4,_0x1df0bc(_0x1883e3)),g(0x5,_0x1df0bc(_0x2426c9)),g(0x6,_0x1df0bc(D)),g(0x7,_0x26b7b1),g(0x8,_0xcf8387),g(0x9,_0x56e350),g(0xa,_0x3b301b)],K);let V=class extends re{constructor(_0x4d3fc6,_0x2bc631,_0xfe23aa,_0x91ef69,_0xe95aa1,_0x5cbde3,_0x4684b6,_0x43c72c,_0xadfa43,_0x5984a9,_0xe6b803,_0x389a30){const _0x45b964=_0x48c788;super(_0x4d3fc6,_0x2bc631,_0xfe23aa,_0x91ef69,_0xe95aa1,_0xadfa43,_0x389a30,_0x4684b6,_0x43c72c),l(this,_0x45b964(0x4c6),'awaiting_with_pending'),(this['_injector']=_0x5cbde3,this['_logService']=_0x5984a9,this[_0x45b964(0x231)]=_0xe6b803);}[_0x48c788(0x2d0)](_0x1f60ab){const _0x2381bf=_0x48c788;return this['_pendingMutations'][_0x2381bf(0x3ae)](_0x1f60ab),this;}[_0x48c788(0x32e)](_0x1a0a9b){const _0x4ec2ee=_0x48c788;if(this[_0x4ec2ee(0x2e4)](_0x1a0a9b))return this[_0x4ec2ee(0x2e1)][_0x4ec2ee(0x3a1)](W,this[_0x4ec2ee(0x2d3)],this[_0x4ec2ee(0x45b)],this[_0x4ec2ee(0x4ca)],this[_0x4ec2ee(0x2cb)],null,[_0x1a0a9b],this[_0x4ec2ee(0x43f)]);try{const _0x1b79b3=this[_0x4ec2ee(0x231)][_0x4ec2ee(0x3e3)]([_0x1a0a9b],[this[_0x4ec2ee(0x4ca)]],!0x1);if(_0x4a3135(_0x1b79b3)){const {c1Prime:_0x5b5233,c2Prime:_0x19540e}=_0x1b79b3,_0x559f1b=this['_transformService'][_0x4ec2ee(0x313)](_0x5b5233[0x0],this['_pendingMutations']);if(_0x13e3eb(_0x559f1b)){const {c1Prime:_0x3a7c9c,m2Prime:_0x57fcee}=_0x559f1b;return this['_executeRemoteChangeset'](_0x3a7c9c),_0x19540e[0x0][_0x4ec2ee(0x391)]=this[_0x4ec2ee(0x2bf)](),this[_0x4ec2ee(0x2e1)][_0x4ec2ee(0x3a1)](V,this[_0x4ec2ee(0x2d3)],this[_0x4ec2ee(0x45b)],_0x19540e[0x0],_0x57fcee,this['_handler']);}throw _0x559f1b[_0x4ec2ee(0x1b3)];}throw _0x1b79b3[_0x4ec2ee(0x1b3)];}catch(_0x32a9e2){return this['_logService']['error'](_0x32a9e2),this[_0x4ec2ee(0x487)](!0x1);}}[_0x48c788(0x2ce)](_0x54f33f){const _0x48bb7d=_0x48c788;if(this[_0x48bb7d(0x2e4)](_0x54f33f))return this['_injector'][_0x48bb7d(0x3a1)](W,this[_0x48bb7d(0x2d3)],this['type'],null,this[_0x48bb7d(0x2cb)],this[_0x48bb7d(0x4ca)],[],this[_0x48bb7d(0x43f)]);this[_0x48bb7d(0x42a)]();const _0x408532=this[_0x48bb7d(0x2e1)][_0x48bb7d(0x3a1)](B,this['unitID'],this['type'],this[_0x48bb7d(0x2cb)],this[_0x48bb7d(0x43f)]);return _0x408532[_0x48bb7d(0x3af)](),_0x408532[_0x48bb7d(0x4b3)](),_0x408532;}[_0x48c788(0x21d)](_0x681803){const _0x3df7ab=_0x48c788;return this[_0x3df7ab(0x487)](!!(_0x681803!=null&&_0x681803['isPermissionRej']));}[_0x48c788(0x24d)](){const _0x2bb618=_0x48c788;return this[_0x2bb618(0x2e1)][_0x2bb618(0x3a1)](X,this[_0x2bb618(0x2d3)],this[_0x2bb618(0x45b)],this[_0x2bb618(0x4ca)],this[_0x2bb618(0x2cb)],this['_handler']);}[_0x48c788(0x3bf)](){return this;}['resend'](){const _0x552173=_0x48c788;this['_handler'][_0x552173(0x445)](this[_0x552173(0x4ca)]);}[_0x48c788(0x487)](_0x28e95f){const _0x212d43=_0x48c788;return this[_0x212d43(0x2e1)][_0x212d43(0x3a1)](te,this['unitID'],this['type'],null,this[_0x212d43(0x2cb)],this[_0x212d43(0x43f)],_0x28e95f);}};V=ne([g(0x5,_0x1df0bc(_0x1883e3)),g(0x6,_0x1df0bc(_0x2426c9)),g(0x7,_0x1df0bc(D)),g(0x8,_0x26b7b1),g(0x9,_0xcf8387),g(0xa,_0x56e350),g(0xb,_0x3b301b)],V);let te=class extends re{constructor(_0x5e3481,_0x4ee307,_0x5b59b5,_0x2bb1c1,_0x21379e,_0x31b492=!0x1,_0x4bf28e,_0x41b2a6,_0x1d91e1,_0x305e9c,_0x1b75c4,_0x53a4b6,_0x11fbd6){const _0x59f349=_0x48c788;super(_0x5e3481,_0x4ee307,_0x5b59b5,_0x2bb1c1,_0x21379e,_0x41b2a6,_0x1d91e1,_0x1b75c4,_0x305e9c),l(this,_0x59f349(0x4c6),'conflict'),(this[_0x59f349(0x32c)]=_0x31b492,this[_0x59f349(0x20c)]=_0x4bf28e,this[_0x59f349(0x314)]=_0x53a4b6,this[_0x59f349(0x39f)]=_0x11fbd6,this[_0x59f349(0x380)](),this[_0x59f349(0x1ff)](),this[_0x59f349(0x1d4)]());}[_0x48c788(0x2d0)](){return this;}[_0x48c788(0x32e)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x48c788(0x24d)](){return this;}['toggleOnline'](){return this;}[_0x48c788(0x20b)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x48c788(0x1ff)](){const _0x20ac0d=_0x48c788;this['_localCacheService'][_0x20ac0d(0x27d)](this[_0x20ac0d(0x2d3)],this[_0x20ac0d(0x45b)],null,[]);}[_0x48c788(0x380)](){const _0x146bb7=_0x48c788;this[_0x146bb7(0x32c)]?this['_notificationService'][_0x146bb7(0x4d1)]({'title':this['_localeService']['t'](_0x146bb7(0x498)),'content':this[_0x146bb7(0x314)]['t'](_0x146bb7(0x2a1)),'type':_0x146bb7(0x1b3),'duration':0x0}):this[_0x146bb7(0x39f)][_0x146bb7(0x4d1)]({'title':this['_localeService']['t'](_0x146bb7(0x383)),'content':this[_0x146bb7(0x314)]['t'](_0x146bb7(0x26b)),'type':_0x146bb7(0x1b3),'duration':0x0});}[_0x48c788(0x1d4)](){const _0x4262fa=_0x48c788;this[_0x4262fa(0x20c)][_0x4262fa(0x35b)](new _0x301a89(this[_0x4262fa(0x2d3)])['id'],!0x1);}};te=ne([g(0x6,_0x1df0bc(_0x4a2caa)),g(0x7,_0x26b7b1),g(0x8,_0x3b301b),g(0x9,_0x1df0bc(D)),g(0xa,_0x1df0bc(_0x2426c9)),g(0xb,_0x1df0bc(_0x7ef8c9)),g(0xc,_0x57524d)],te);let X=class extends re{constructor(_0x4d5341,_0x3b9ecb,_0x132442,_0x550d1e,_0x25078b,_0x52a5ef,_0x186e7a,_0x379a86,_0x2b0991,_0x4a603c){const _0x52e98a=_0x48c788;super(_0x4d5341,_0x3b9ecb,_0x132442,_0x550d1e,_0x25078b,_0x2b0991,_0x4a603c,_0x186e7a,_0x379a86),l(this,'status',_0x52e98a(0x25d)),this[_0x52e98a(0x2e1)]=_0x52a5ef;}['appendMutation'](_0x56b18f){const _0x31014f=_0x48c788;return this[_0x31014f(0x2cb)][_0x31014f(0x3ae)](_0x56b18f),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x251cb8){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x48c788(0x2ce)](){const _0x3b138a=_0x48c788;throw new Error(_0x3b138a(0x3d9));}[_0x48c788(0x21d)](){const _0x3c8af7=_0x48c788;throw new Error(_0x3c8af7(0x1e7));}[_0x48c788(0x24d)](){return this;}[_0x48c788(0x3bf)](){const _0x38af53=_0x48c788,{_injector:_0x1b8035,_pendingMutations:_0x111e9b,_awaitingChangeset:_0x29c046,unitID:_0x30b237,_handler:_0x10afc0,type:_0x43ac6e}=this,_0x15d722=Os(_0x1b8035,_0x30b237,_0x43ac6e,_0x29c046,_0x111e9b,_0x10afc0);return _0x15d722 instanceof B?_0x15d722[_0x38af53(0x3af)]():(_0x15d722 instanceof V||_0x15d722 instanceof K)&&_0x15d722[_0x38af53(0x20b)](),_0x15d722;}[_0x48c788(0x20b)](){const _0x700840=_0x48c788;throw new Error(_0x700840(0x290));}};X=ne([g(0x5,_0x1df0bc(_0x1883e3)),g(0x6,_0x1df0bc(_0x2426c9)),g(0x7,_0x1df0bc(D)),g(0x8,_0x26b7b1),g(0x9,_0x3b301b)],X);let W=class extends re{constructor(_0x2642ed,_0x27386b,_0x420c3f,_0x4d98ea,_0x33f261,_0x27b77e,_0x48305b,_0x4c3743,_0x527017,_0x47b696,_0x396c9e,_0x21bb53,_0x57e606,_0x5cc6d6){const _0x326ad7=_0x48c788;super(_0x2642ed,_0x27386b,_0x420c3f,_0x4d98ea,_0x48305b,_0x21bb53,_0x57e606,_0x527017,_0x47b696),l(this,_0x326ad7(0x4c6),_0x326ad7(0x409)),(this['_acknowledgedAwaitingChangeset']=_0x33f261,this[_0x326ad7(0x454)]=_0x27b77e,this['_injector']=_0x4c3743,this[_0x326ad7(0x2ad)]=_0x396c9e,this[_0x326ad7(0x231)]=_0x5cc6d6);}[_0x48c788(0x491)](_0x37ed7f){const _0x3985e5=_0x48c788;try{const _0x23c0e4=[..._0x37ed7f,...this[_0x3985e5(0x454)]],_0x1ab310=[this[_0x3985e5(0x4ca)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x38b076=>!!_0x38b076);let _0x24f03d,_0x35aa9c;if(_0x1ab310[_0x3985e5(0x3c7)]){const _0x26331a=this['_transformService'][_0x3985e5(0x3e3)](_0x23c0e4,_0x1ab310,!0x1);if(!_0x4a3135(_0x26331a))throw _0x26331a['error'];_0x24f03d=_0x26331a[_0x3985e5(0x3a9)],_0x35aa9c=_0x26331a[_0x3985e5(0x1f8)];}else _0x24f03d=_0x23c0e4,_0x35aa9c=[];let _0x1c48d2=this['_pendingMutations'];_0x24f03d['forEach'](_0x24ead7=>{const _0x50948f=_0x3985e5;let _0x5c82df;if(_0x1c48d2[_0x50948f(0x3c7)]){const _0x5ec44a=this[_0x50948f(0x231)]['transformMutationsWithChangeset'](_0x24ead7,_0x1c48d2);if(!_0x13e3eb(_0x5ec44a))throw _0x5ec44a[_0x50948f(0x1b3)];_0x5c82df=_0x5ec44a['c1Prime'],_0x1c48d2=_0x5ec44a[_0x50948f(0x1bc)];}else _0x5c82df=_0x24ead7;this['_executeRemoteChangeset'](_0x5c82df);}),this[_0x3985e5(0x378)]&&this['_incrementRevisionNumber'](),this[_0x3985e5(0x4ca)]&&_0x35aa9c[_0x3985e5(0x3c7)]&&(_0x35aa9c[0x0][_0x3985e5(0x391)]=this[_0x3985e5(0x2bf)]());let _0x162cef;if(this['_awaitingChangeset']&&_0x1c48d2['length']!==0x0)_0x162cef=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](V,this['unitID'],this['type'],_0x35aa9c[0x0],_0x1c48d2,this['_handler']);else{if(this[_0x3985e5(0x4ca)]&&_0x1c48d2['length']===0x0)_0x35aa9c[0x0][_0x3985e5(0x391)]=this['_getCurrentRevision'](),_0x162cef=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](K,this[_0x3985e5(0x2d3)],this[_0x3985e5(0x45b)],_0x35aa9c[0x0],this['_handler']);else{if(_0x1c48d2[_0x3985e5(0x3c7)]!==0x0){const _0x2d89e3=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](B,this[_0x3985e5(0x2d3)],this[_0x3985e5(0x45b)],_0x1c48d2,this[_0x3985e5(0x43f)]);_0x2d89e3['_schedule'](),_0x162cef=_0x2d89e3;}else _0x162cef=this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](Te,this['unitID'],this['type'],this[_0x3985e5(0x43f)]);}}return _0x162cef[_0x3985e5(0x4b3)](),_0x162cef;}catch(_0x5827be){return this['_logService'][_0x3985e5(0x1b3)](_0x3985e5(0x29f),_0x3985e5(0x4a3),_0x5827be),this[_0x3985e5(0x2e1)][_0x3985e5(0x3a1)](te,this['unitID'],this[_0x3985e5(0x45b)],this['_awaitingChangeset'],this[_0x3985e5(0x2cb)],this[_0x3985e5(0x43f)],!0x1);}}[_0x48c788(0x20b)](){const _0x280a04=_0x48c788;throw new Error(_0x280a04(0x1b6));}['appendMutation'](_0x1ce611){const _0x110689=_0x48c788;return this[_0x110689(0x2cb)][_0x110689(0x3ae)](_0x1ce611),this;}[_0x48c788(0x32e)](_0x16f949){const _0x4a4706=_0x48c788;return this[_0x4a4706(0x454)]['push'](_0x16f949),this;}['onRemoteAck'](_0x3c8b50){const _0x574ff4=_0x48c788;if(this[_0x574ff4(0x4ca)])return this[_0x574ff4(0x378)]=this[_0x574ff4(0x4ca)],this[_0x574ff4(0x4ca)]=null,this;throw new Error(_0x574ff4(0x2f8));}['onRemoteRej'](_0x515435){const _0x3d31a6=_0x48c788;return this[_0x3d31a6(0x487)](!!(_0x515435!=null&&_0x515435['isPermissionRej']));}[_0x48c788(0x24d)](){const _0x515a8b=_0x48c788;return this[_0x515a8b(0x2e1)][_0x515a8b(0x3a1)](X,this[_0x515a8b(0x2d3)],this['type'],this['_awaitingChangeset'],this[_0x515a8b(0x2cb)],this[_0x515a8b(0x43f)]);}['toggleOnline'](){return this;}[_0x48c788(0x487)](_0x4b78f2){const _0x5c8eb8=_0x48c788;return this[_0x5c8eb8(0x2e1)][_0x5c8eb8(0x3a1)](te,this['unitID'],this[_0x5c8eb8(0x45b)],this[_0x5c8eb8(0x4ca)],this['_pendingMutations'],this[_0x5c8eb8(0x43f)],_0x4b78f2);}};W=ne([g(0x7,_0x1df0bc(_0x1883e3)),g(0x8,_0x1df0bc(_0x2426c9)),g(0x9,_0x1df0bc(D)),g(0xa,_0xcf8387),g(0xb,_0x26b7b1),g(0xc,_0x3b301b),g(0xd,_0x56e350)],W);function Os(_0xe1e9b8,_0x2f6505,_0x4d0814,_0x597f73,_0x283dd6,_0x4b0181){const _0x3d4f27=_0x48c788;return _0x597f73&&_0x283dd6['length']?_0xe1e9b8[_0x3d4f27(0x3a1)](V,_0x2f6505,_0x4d0814,_0x597f73,_0x283dd6,_0x4b0181):_0x597f73?_0xe1e9b8[_0x3d4f27(0x3a1)](K,_0x2f6505,_0x4d0814,_0x597f73,_0x4b0181):_0x283dd6[_0x3d4f27(0x3c7)]?_0xe1e9b8['createInstance'](B,_0x2f6505,_0x4d0814,_0x283dd6,_0x4b0181):_0xe1e9b8[_0x3d4f27(0x3a1)](Te,_0x2f6505,_0x4d0814,_0x4b0181);}var kn=Object[_0x48c788(0x299)],Bn=Object['getOwnPropertyDescriptor'],Je=(_0x399c07,_0x12591c,_0x4d7d49,_0x360ea4)=>{for(var _0xb5a3da=_0x360ea4>0x1?void 0x0:_0x360ea4?Bn(_0x12591c,_0x4d7d49):_0x12591c,_0x436454=_0x399c07['length']-0x1,_0x4d2bd0;_0x436454>=0x0;_0x436454--)(_0x4d2bd0=_0x399c07[_0x436454])&&(_0xb5a3da=(_0x360ea4?_0x4d2bd0(_0x12591c,_0x4d7d49,_0xb5a3da):_0x4d2bd0(_0xb5a3da))||_0xb5a3da);return _0x360ea4&&_0xb5a3da&&kn(_0x12591c,_0x4d7d49,_0xb5a3da),_0xb5a3da;},S=(_0x375713,_0x56f009)=>(_0x5388cd,_0x176829)=>_0x56f009(_0x5388cd,_0x176829,_0x375713);let Ee=class extends _0x4f9c78{constructor(_0x35b7e1,_0x5a00dd,_0x126804){const _0x272dd3=_0x48c788;super(),l(this,_0x272dd3(0x27f),new Map()),l(this,_0x272dd3(0x4c4),new _0x255156()),(this[_0x272dd3(0x2e1)]=_0x35b7e1,this[_0x272dd3(0x3b6)]=_0x5a00dd,this['_univerInstanceService']=_0x126804,this['_init']());}[_0x48c788(0x46e)](){const _0x12faa3=_0x48c788;super[_0x12faa3(0x46e)](),this[_0x12faa3(0x27f)][_0x12faa3(0x244)](_0x1d3bb3=>_0x1d3bb3[_0x12faa3(0x46e)]()),this['_entities']['clear']();}[_0x48c788(0x1cd)](_0x20b411){const _0x1f2232=_0x48c788;var _0x15961c;return(_0x15961c=this[_0x1f2232(0x27f)]['get'](_0x20b411))!=null?_0x15961c:null;}[_0x48c788(0x36d)](_0x2d7317){const _0x29889c=_0x48c788,_0x432ef6=this[_0x29889c(0x1cd)](_0x2d7317);return _0x432ef6?_0x5aa699(_0x432ef6):this[_0x29889c(0x4c4)]['pipe'](_0x2cc73f(_0x37af90=>_0x37af90[_0x29889c(0x2d3)]===_0x2d7317));}[_0x48c788(0x340)](){const _0x11bab0=_0x48c788;this[_0x11bab0(0x38c)][_0x11bab0(0x3ce)](_0x5b42a8[_0x11bab0(0x29e)])[_0x11bab0(0x3bd)](_0x219692(this['dispose$']),_0x1c5ec9(0x10))[_0x11bab0(0x237)](async _0x35cff3=>{const _0xfb0969=_0x11bab0,_0x5d0fce=_0x35cff3['getUnitId'](),_0x393fee=await this[_0xfb0969(0x495)](_0x5d0fce,H[_0xfb0969(0x29e)]);this[_0xfb0969(0x27f)]['set'](_0x5d0fce,_0x393fee);}),this[_0x11bab0(0x38c)]['getTypeOfUnitAdded$'](_0x5b42a8[_0x11bab0(0x4d4)])['pipe'](_0x219692(this['dispose$']),_0x1c5ec9(0x10))[_0x11bab0(0x3bd)](_0x2cc73f(_0x5cff95=>!_0x5cff95[_0x11bab0(0x451)]()[_0x11bab0(0x458)]('__')))[_0x11bab0(0x237)](async _0x4633f0=>{const _0x5629c9=_0x11bab0,_0x4edd7c=_0x4633f0[_0x5629c9(0x451)](),_0x19988b=await this[_0x5629c9(0x495)](_0x4edd7c,H['UNIVER_DOC']);this[_0x5629c9(0x27f)]['set'](_0x4edd7c,_0x19988b);}),_0x10f2b0(this[_0x11bab0(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8[_0x11bab0(0x29e)]),this[_0x11bab0(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8['UNIVER_DOC']))[_0x11bab0(0x3bd)](_0x219692(this[_0x11bab0(0x4c9)]))['subscribe'](_0x28aa7f=>{const _0x1d4725=_0x11bab0,_0x33b9ea=_0x28aa7f[_0x1d4725(0x451)](),_0x36bf59=this[_0x1d4725(0x27f)][_0x1d4725(0x4ce)](_0x33b9ea);_0x36bf59&&(_0x36bf59['dispose'](),this['_entities']['delete'](_0x33b9ea));});}async['_startCollaboration'](_0x31147c,_0x59c4d0){const _0x4bfecc=_0x48c788,_0x1f70cf=await this[_0x4bfecc(0x3b6)][_0x4bfecc(0x44c)](_0x31147c),_0x455957=this[_0x4bfecc(0x2e1)][_0x4bfecc(0x3a1)](this[_0x4bfecc(0x2ab)](_0x59c4d0),_0x31147c,_0x59c4d0,_0x1f70cf);return await _0x455957[_0x4bfecc(0x400)](),this[_0x4bfecc(0x4c4)][_0x4bfecc(0x325)](_0x455957),_0x455957;}[_0x48c788(0x2ab)](_0x2182a2){const _0x48ccdb=_0x48c788;switch(_0x2182a2){case H[_0x48ccdb(0x4d4)]:return dt;case H[_0x48ccdb(0x29e)]:return ft;default:throw new Error(_0x48ccdb(0x406)+_0x2182a2);}}};Ee=Je([_0x4bcad5(_0xba774d['Starting'],Ee),S(0x0,_0x1df0bc(_0x1883e3)),S(0x1,_0x1df0bc(Re)),S(0x2,_0x5db99b)],Ee);let We=class extends _0x4f9c78{constructor(_0x56d8e2,_0x42c539,_0x33e227,_0x209b39,_0x4e10f4,_0x41792b,_0x413725,_0x380547,_0x3a2de5,_0x339ec0,_0x13ee5f,_0x43b853,_0x4f5996){const _0x299564=_0x48c788;super(),l(this,_0x299564(0x302),new _0xac9643(null)),l(this,'state$',this[_0x299564(0x302)][_0x299564(0x1ec)]()),l(this,'_state'),l(this,_0x299564(0x3e9),!0x1),l(this,_0x299564(0x44b),this['state$']['pipe'](_0x1262f1(_0x2fc5af=>_0x2fc5af?_0x2fc5af[_0x299564(0x4c6)]:P['OFFLINE']),_0x43cd64(0x1))),l(this,_0x299564(0x367),!0x1),l(this,_0x299564(0x32d),[]),(this[_0x299564(0x2d3)]=_0x56d8e2,this[_0x299564(0x201)]=_0x42c539,this[_0x299564(0x2f6)]=_0x33e227,this[_0x299564(0x2e1)]=_0x209b39,this[_0x299564(0x1eb)]=_0x4e10f4,this[_0x299564(0x36a)]=_0x41792b,this[_0x299564(0x314)]=_0x413725,this[_0x299564(0x3f3)]=_0x380547,this[_0x299564(0x2ad)]=_0x3a2de5,this[_0x299564(0x1e9)]=_0x339ec0,this[_0x299564(0x464)]=_0x13ee5f,this['_permissionService']=_0x43b853,this[_0x299564(0x28c)]=_0x4f5996);}get[_0x48c788(0x2a5)](){const _0x397db0=_0x48c788;return this[_0x397db0(0x2c5)];}async[_0x48c788(0x400)](){const _0x284ea8=_0x48c788;if(this[_0x284ea8(0x2a5)])throw new Error(_0x284ea8(0x4ba));await this[_0x284ea8(0x340)]();}['pauseCollaboration'](){const _0x339f02=_0x48c788;return this[_0x339f02(0x3e9)]=!0x0,_0x308092(()=>{const _0x46d411=_0x339f02;this['_collaborationPaused']=!0x1,this[_0x46d411(0x2f1)]();});}[_0x48c788(0x41a)](_0x4be9ec){const _0x59fbe9=_0x48c788;this[_0x59fbe9(0x2c5)]=_0x4be9ec,this['_state$'][_0x59fbe9(0x325)](_0x4be9ec);}async[_0x48c788(0x340)](){const _0x15858f=_0x48c788;var _0x5ac141;return this['_updateState'](await this['_createInitialState']()),this[_0x15858f(0x28c)]&&((_0x5ac141=this['_singleActiveUnitService'])==null||_0x5ac141[_0x15858f(0x1b2)](this[_0x15858f(0x2d3)]),this['disposeWithMe'](_0x308092(this[_0x15858f(0x28c)][_0x15858f(0x36f)](this[_0x15858f(0x2d3)])[_0x15858f(0x237)](_0x545c74=>{const _0x34c780=_0x15858f;this[_0x34c780(0x2ad)][_0x34c780(0x1b0)](_0x34c780(0x3a0),_0x34c780(0x4b0),_0x545c74),_0x545c74===Rs[_0x34c780(0x2cd)]?(this[_0x34c780(0x464)]['show']({'content':this[_0x34c780(0x314)]['t'](_0x34c780(0x2ba)),'type':_0x16b663[_0x34c780(0x39e)]}),this['_permissionService'][_0x34c780(0x35b)](new _0x301a89(this[_0x34c780(0x2d3)])['id'],!0x1)):this[_0x34c780(0x20c)][_0x34c780(0x35b)](new _0x301a89(this['unitID'])['id'],!0x0);})))),this[_0x15858f(0x3e7)](_0x308092(this[_0x15858f(0x2f6)][_0x15858f(0x449)][_0x15858f(0x237)](_0x213591=>{const _0x1f9ac8=_0x15858f;_0x213591===_e['ONLINE']?this[_0x1f9ac8(0x1d1)]():_0x213591===_e[_0x1f9ac8(0x214)]&&this['_toggleOffline']();}))),this['disposeWithMe'](_0x308092(this[_0x15858f(0x2f6)][_0x15858f(0x3d7)][_0x15858f(0x237)](_0x409737=>{const _0xe4bf05=_0x15858f;try{switch(_0x409737[_0xe4bf05(0x420)]){case _0x64674d[_0xe4bf05(0x222)]:{this[_0xe4bf05(0x2a0)](_0x3a5484(_0x409737[_0xe4bf05(0x43e)]));break;}case _0x64674d['CHANGESET_ACK']:{this['_onRemoteACK'](_0x409737[_0xe4bf05(0x43e)]);break;}case _0x64674d[_0xe4bf05(0x440)]:{this[_0xe4bf05(0x26e)]();break;}case _0x64674d[_0xe4bf05(0x393)]:{this[_0xe4bf05(0x261)](_0x409737['data'][_0xe4bf05(0x49d)][_0xe4bf05(0x3e8)](_0x3ba043=>_0x3a5484(_0x3ba043)));break;}case _0x64674d[_0xe4bf05(0x468)]:this[_0xe4bf05(0x26e)]({'isPermissionRej':!0x0});}}catch(_0x2b5520){throw console[_0xe4bf05(0x1b3)]('Error\x20on\x20receiving\x20event',_0x2b5520),_0x2b5520;}}))),this['_state'];}[_0x48c788(0x4c1)](){this['_transitionLocked']=!0x1;}[_0x48c788(0x2e8)](){const _0x10bc7b=_0x48c788;if(this[_0x10bc7b(0x367)])throw new Error(_0x10bc7b(0x29c));this[_0x10bc7b(0x367)]=!0x0;}['_onLocalMutation'](_0x587271){const _0x4a6541=_0x48c788;this[_0x4a6541(0x2e8)](),this[_0x4a6541(0x41a)](this[_0x4a6541(0x2c5)][_0x4a6541(0x2d0)](_0x587271)),this[_0x4a6541(0x4c1)]();}['_onRemoteChangeset'](_0x277916){const _0xa12697=_0x48c788;if(!(_0x277916[_0xa12697(0x480)]<=this[_0xa12697(0x3f3)][_0xa12697(0x4b1)](this['unitID']))){if(this[_0xa12697(0x3e9)]){this[_0xa12697(0x32d)][_0xa12697(0x3ae)](_0x277916);return;}this[_0xa12697(0x2ca)](_0x277916);}}['_exhaustRemoteChangesetQueue'](){const _0x24eb39=_0x48c788;this[_0x24eb39(0x32d)][_0x24eb39(0x244)](_0x4a63ff=>this[_0x24eb39(0x2ca)](_0x4a63ff)),this['_remoteChangesetQueue']=[];}[_0x48c788(0x2ca)](_0x1e834a){const _0x439501=_0x48c788,_0x119558=this[_0x439501(0x36a)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x439501(0x471)][_0x439501(0x238)]()[_0x439501(0x469)])(_0x1e834a[_0x439501(0x3b5)],null)||_0x1e834a[_0x439501(0x3b5)],_0x2be5b9={..._0x1e834a,'mutations':_0x119558};this[_0x439501(0x2e8)](),this[_0x439501(0x41a)](this[_0x439501(0x2c5)][_0x439501(0x32e)](_0x2be5b9)),this['_unlockTransition']();}[_0x48c788(0x33e)](_0x27b52a){const _0x4d5abb=_0x48c788;this[_0x4d5abb(0x2e8)](),this[_0x4d5abb(0x41a)](this[_0x4d5abb(0x2c5)][_0x4d5abb(0x2ce)](_0x27b52a)),this['_unlockTransition']();}[_0x48c788(0x26e)](_0x5d0438){const _0x461700=_0x48c788;this[_0x461700(0x2e8)](),this['_updateState'](this[_0x461700(0x2c5)]['onRemoteRej'](_0x5d0438)),this[_0x461700(0x4c1)]();}[_0x48c788(0x261)](_0x9bc30a){const _0x3307b6=_0x48c788;if(!(this['_state']instanceof W))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4e0dc2=_0x9bc30a[_0x3307b6(0x3e8)](_0x56c346=>{const _0x20f87d=_0x3307b6,_0x27429f=this[_0x20f87d(0x36a)][_0x20f87d(0x471)][_0x20f87d(0x4bb)](this['_compressMutationService']['interceptor'][_0x20f87d(0x238)]()[_0x20f87d(0x469)])(_0x56c346['mutations'],null)||_0x56c346[_0x20f87d(0x3b5)];return{..._0x56c346,'mutations':_0x27429f};});this['_lockTransition'](),this[_0x3307b6(0x41a)](this[_0x3307b6(0x2c5)]['onMissedChangesetFetched'](_0x4e0dc2)),this['_unlockTransition']();}[_0x48c788(0x41e)](){const _0x286250=_0x48c788;this[_0x286250(0x2e8)](),this[_0x286250(0x41a)](this[_0x286250(0x2c5)][_0x286250(0x24d)]()),this[_0x286250(0x4c1)]();}[_0x48c788(0x1d1)](){const _0x346dfd=_0x48c788;this[_0x346dfd(0x2e8)](),this[_0x346dfd(0x41a)](this['_state']['toggleOnline']()),this[_0x346dfd(0x4c1)]();}async[_0x48c788(0x276)](){return new Promise(_0x100451=>{const _0x27af16=_0x1999;this[_0x27af16(0x2f6)][_0x27af16(0x449)]['pipe'](_0x332c11(0x1))[_0x27af16(0x237)](async _0x391327=>{const _0x26cea3=_0x27af16;_0x100451(await this[_0x26cea3(0x419)](_0x391327===_e[_0x26cea3(0x431)]));});});}[_0x48c788(0x2a6)](){const _0x4761df=this['unitID'];return{'onStateChange':(_0x61b3f3,_0x4b5acf)=>{const _0x4385ab=_0x1999;if(_0x61b3f3!==this[_0x4385ab(0x2c5)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x61b3f3[_0x4385ab(0x4c6)]+'\x0aAfter:\x20'+_0x4b5acf[_0x4385ab(0x4c6)]+_0x4385ab(0x4cb)+this[_0x4385ab(0x2c5)]['status']);this[_0x4385ab(0x41a)](_0x4b5acf);},'onSendChangeset':_0x2af522=>{const _0x5656cf=_0x1999,_0x3be461={'eventID':_0x64674d[_0x5656cf(0x250)],'data':{'unitID':_0x2af522[_0x5656cf(0x2d3)],'unitType':this[_0x5656cf(0x201)],'changeset':_0x2af522,'memberID':this[_0x5656cf(0x2f6)][_0x5656cf(0x329)]()}};this['_session'][_0x5656cf(0x381)](_0x3be461,this['unitID']);},'onMissingChangesets':({from:_0x13154c,to:_0x380189})=>{const _0x18a1af=_0x1999;this[_0x18a1af(0x2ad)][_0x18a1af(0x1b0)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x13154c+'\x20to\x20'+_0x380189);const _0x1bae60={'eventID':_0x64674d[_0x18a1af(0x251)],'data':{'unitID':_0x4761df,'unitType':this[_0x18a1af(0x201)],'from':_0x13154c,'to':_0x380189}};this[_0x18a1af(0x2f6)][_0x18a1af(0x381)](_0x1bae60,this[_0x18a1af(0x2d3)]);}};}async['_createInitialStateImpl'](_0x41b9b3){const _0x1f9307=_0x48c788;var _0x5a3fd1,_0x54445e;const _0x8da2ce=await this['_localCacheService'][_0x1f9307(0x256)](this[_0x1f9307(0x2d3)]),_0x4e07ec=(_0x5a3fd1=_0x8da2ce==null?void 0x0:_0x8da2ce[_0x1f9307(0x3b5)])!=null?_0x5a3fd1:[],_0x1b2374=(_0x54445e=_0x8da2ce==null?void 0x0:_0x8da2ce[_0x1f9307(0x437)])!=null?_0x54445e:null,_0x1b5d3f=this[_0x1f9307(0x2d3)];try{this[_0x1f9307(0x448)](_0x1b2374,_0x4e07ec);}catch(_0x4b63d4){this[_0x1f9307(0x2ad)][_0x1f9307(0x1b3)](_0x4b63d4);}const _0x312d3c=this['_createHandler']();if(_0x41b9b3){const _0x4272d7=Os(this[_0x1f9307(0x2e1)],_0x1b5d3f,this[_0x1f9307(0x201)],_0x1b2374,_0x4e07ec,_0x312d3c);return _0x4272d7 instanceof B?_0x4272d7[_0x1f9307(0x3af)]():(_0x4272d7 instanceof V||_0x4272d7 instanceof K)&&_0x4272d7[_0x1f9307(0x20b)](),_0x4272d7;}return this[_0x1f9307(0x2e1)][_0x1f9307(0x3a1)](X,_0x1b5d3f,this[_0x1f9307(0x201)],_0x1b2374,_0x4e07ec,_0x312d3c);}[_0x48c788(0x448)](_0x4749a6,_0x3ce293){const _0x355458=_0x48c788;var _0x2813d6,_0x230ab9;const _0x4c8f9e=this['_compressMutationService']['interceptor'][_0x355458(0x4bb)](this[_0x355458(0x36a)][_0x355458(0x471)][_0x355458(0x238)]()[_0x355458(0x469)]);(_0x2813d6=_0x4c8f9e((_0x4749a6==null?void 0x0:_0x4749a6['mutations'])||[],null))==null||_0x2813d6[_0x355458(0x244)](_0x58a057=>this[_0x355458(0x1e9)][_0x355458(0x2df)](_0x58a057['id'],_0x58a057['params'])),(_0x230ab9=_0x4c8f9e(_0x3ce293||[],null))==null||_0x230ab9[_0x355458(0x244)](_0x3e2553=>this[_0x355458(0x1e9)][_0x355458(0x2df)](_0x3e2553['id'],_0x3e2553[_0x355458(0x23e)]));}};We=Je([S(0x3,_0x1df0bc(_0x1883e3)),S(0x4,_0x1df0bc(D)),S(0x5,_0x1df0bc(_0x50d638)),S(0x6,_0x1df0bc(_0x7ef8c9)),S(0x7,_0x1df0bc(_0x2426c9)),S(0x8,_0xcf8387),S(0x9,_0x26b7b1),S(0xa,_0xcc97bb),S(0xb,_0x4a2caa),S(0xc,_0x9cd523(Xe))],We);let dt=class extends We{constructor(_0x59d01e,_0x3bed7e,_0x1b9733,_0x51add4,_0x1db1b2,_0x162075,_0xe16ce9,_0x5613f9,_0x1de6af,_0x4f9ce5,_0x50171f,_0xcbe14e,_0x2c5239,_0x58dbab,_0x1a12dc,_0x277b4b,_0x29c847){const _0x456975=_0x48c788;super(_0x59d01e,_0x3bed7e,_0x1b9733,_0x51add4,_0x1db1b2,_0x162075,_0xe16ce9,_0x5613f9,_0x2c5239,_0x58dbab,_0x1a12dc,_0x277b4b,_0x29c847),this[_0x456975(0x2d3)]=_0x59d01e,this['type']=_0x3bed7e,this[_0x456975(0x2de)]=_0x1b9733,this[_0x456975(0x1f2)]=_0x1de6af,this[_0x456975(0x2dd)]=_0x4f9ce5,this[_0x456975(0x218)]=_0x50171f,this[_0x456975(0x2f3)]=_0xcbe14e;}[_0x48c788(0x2a6)](){const _0x5e183d=_0x48c788,_0x447f32=super[_0x5e183d(0x2a6)]();return _0x447f32['onTransformIME']=_0x129745=>this[_0x5e183d(0x2dd)][_0x5e183d(0x1c5)](_0x129745),_0x447f32[_0x5e183d(0x320)]=_0x1bc79c=>this[_0x5e183d(0x218)][_0x5e183d(0x4a4)](_0x1bc79c),_0x447f32[_0x5e183d(0x1ba)]=_0x42a108=>this[_0x5e183d(0x2f3)][_0x5e183d(0x4d5)](_0x42a108),_0x447f32[_0x5e183d(0x2b9)]=_0x25e177=>this[_0x5e183d(0x2dd)][_0x5e183d(0x1cf)](_0x25e177),_0x447f32;}async[_0x48c788(0x340)](){const _0x4e51d5=_0x48c788,_0x424676=await super[_0x4e51d5(0x340)]();return this[_0x4e51d5(0x1f2)][_0x4e51d5(0x1ee)]['pipe'](_0x219692(this[_0x4e51d5(0x4c9)]))[_0x4e51d5(0x237)](_0x3dd849=>{const _0x2bc24c=_0x4e51d5;if(_0x3dd849==null)return;const {unitId:_0x42a3f1,redoState:_0x14a792,commandId:_0x4aa04d}=_0x3dd849;if(_0x42a3f1!==this[_0x2bc24c(0x2d3)])return;const _0x52912b={'id':_0x4aa04d,'type':_0x2210bc['MUTATION'],'params':{'unitId':_0x42a3f1,'actions':_0x14a792['actions'],'textRanges':null}};this[_0x2bc24c(0x337)](_0x52912b);}),_0x424676;}};dt=Je([S(0x3,_0x1df0bc(_0x1883e3)),S(0x4,_0x1df0bc(D)),S(0x5,_0x1df0bc(_0x50d638)),S(0x6,_0x1df0bc(_0x7ef8c9)),S(0x7,_0x1df0bc(_0x2426c9)),S(0x8,_0x1df0bc(_0x18b292)),S(0x9,_0x1df0bc(ke)),S(0xa,_0x1df0bc(Be)),S(0xb,_0x1df0bc(Mt)),S(0xc,_0xcf8387),S(0xd,_0x26b7b1),S(0xe,_0xcc97bb),S(0xf,_0x4a2caa),S(0x10,_0x9cd523(Xe))],dt);let ft=class extends We{constructor(_0x2d8541,_0x12bd19,_0x5bc5b4,_0x5e2f03,_0x41f994,_0x39dc6e,_0x48d9a9,_0x316f61,_0x4069ff,_0x425d19,_0x474bca,_0x584fac,_0x3815a7,_0x892cde){const _0x7e46e7=_0x48c788;super(_0x2d8541,_0x12bd19,_0x5bc5b4,_0x5e2f03,_0x41f994,_0x39dc6e,_0x48d9a9,_0x316f61,_0x425d19,_0x474bca,_0x584fac,_0x3815a7,_0x892cde),this[_0x7e46e7(0x2d3)]=_0x2d8541,this[_0x7e46e7(0x45b)]=_0x12bd19,this[_0x7e46e7(0x2de)]=_0x5bc5b4,this[_0x7e46e7(0x4c0)]=_0x4069ff;}['_createHandler'](){const _0x114e86=_0x48c788,_0xbda31a=super['_createHandler']();return _0xbda31a[_0x114e86(0x320)]=_0x1d462c=>this[_0x114e86(0x4c0)][_0x114e86(0x4a4)](_0x1d462c),_0xbda31a;}async[_0x48c788(0x340)](){const _0xac461a=_0x48c788,_0x5de6cb=await super[_0xac461a(0x340)]();return this['disposeWithMe'](this[_0xac461a(0x1e9)]['onCommandExecuted']((_0x497816,_0x3effa9)=>{const _0x5bf770=_0xac461a;if(_0x497816[_0x5bf770(0x45b)]!==_0x2210bc['MUTATION']||_0x3effa9!=null&&_0x3effa9[_0x5bf770(0x1de)]||_0x3effa9!=null&&_0x3effa9['onlyLocal'])return;const _0x379318=_0x497816[_0x5bf770(0x23e)];if((_0x379318==null?void 0x0:_0x379318[_0x5bf770(0x1bf)])!==this[_0x5bf770(0x2d3)])return;const _0x46f20c=_0x497816,_0x49f3c0=this['_compressMutationService'][_0x5bf770(0x471)][_0x5bf770(0x4bb)](this['_compressMutationService'][_0x5bf770(0x471)]['getInterceptPoints']()[_0x5bf770(0x235)])([_0x46f20c],null)||[_0x46f20c];this[_0x5bf770(0x337)](_0x49f3c0[0x0]);})),_0x5de6cb;}};ft=Je([S(0x3,_0x1df0bc(_0x1883e3)),S(0x4,_0x1df0bc(D)),S(0x5,_0x1df0bc(_0x50d638)),S(0x6,_0x1df0bc(_0x7ef8c9)),S(0x7,_0x1df0bc(_0x2426c9)),S(0x8,_0x1df0bc(Ve)),S(0x9,_0xcf8387),S(0xa,_0x26b7b1),S(0xb,_0xcc97bb),S(0xc,_0x4a2caa),S(0xd,_0x9cd523(Xe))],ft);const zt=[_0x48c788(0x470),_0x48c788(0x213),_0x48c788(0x1cc),_0x48c788(0x22b),_0x48c788(0x3b0),_0x48c788(0x3d3)];class At extends _0x5de86a{constructor(){super(...arguments),l(this,'_assignedColors',new Map()),l(this,'_colorIndex',0x0);}[_0x48c788(0x33d)](_0x426d56){const _0x5be32f=_0x48c788;if(this['_assignedColors']['has'](_0x426d56))return this['_assignedColors'][_0x5be32f(0x4ce)](_0x426d56);const _0x2ea9b8=zt[this[_0x5be32f(0x31a)]];return this[_0x5be32f(0x31a)]=(this[_0x5be32f(0x31a)]+0x1)%zt[_0x5be32f(0x3c7)],this[_0x5be32f(0x42b)]['set'](_0x426d56,_0x2ea9b8),_0x2ea9b8;}}var Vn=Object[_0x48c788(0x299)],Wn=Object[_0x48c788(0x2bd)],Gn=(_0xbe5758,_0x372352,_0x4d6de4,_0x57bff1)=>{const _0x43312f=_0x48c788;for(var _0x1e06a8=_0x57bff1>0x1?void 0x0:_0x57bff1?Wn(_0x372352,_0x4d6de4):_0x372352,_0x21607b=_0xbe5758[_0x43312f(0x3c7)]-0x1,_0x35a111;_0x21607b>=0x0;_0x21607b--)(_0x35a111=_0xbe5758[_0x21607b])&&(_0x1e06a8=(_0x57bff1?_0x35a111(_0x372352,_0x4d6de4,_0x1e06a8):_0x35a111(_0x1e06a8))||_0x1e06a8);return _0x57bff1&&_0x1e06a8&&Vn(_0x372352,_0x4d6de4,_0x1e06a8),_0x1e06a8;},ae=(_0x4b6f0c,_0x51d61c)=>(_0x4f2368,_0x2405d3)=>_0x51d61c(_0x4f2368,_0x2405d3,_0x4b6f0c);const Yn=0x12c,Kn=0x64,Xn=()=>{let _0x55f95e=[],_0x2b47fc=!0x1;return _0x4dff51=>{const _0x434c97=_0x1999;_0x55f95e[_0x434c97(0x3ae)](_0x4dff51),_0x2b47fc||(_0x2b47fc=!0x0,setTimeout(()=>{const _0x360bea=_0x434c97;_0x55f95e[_0x360bea(0x244)](_0x20d6e6=>_0x20d6e6()),_0x55f95e=[],_0x2b47fc=!0x1;}));};};let gt=class extends _0x4f9c78{constructor(_0x3b2d6d,_0x3427d8,_0x53d653,_0x402a29,_0xa7be12,_0xa2b729,_0x5ea150,_0x469ca0){const _0x281bb1=_0x48c788;super(),l(this,_0x281bb1(0x26d),!0x1),l(this,_0x281bb1(0x340),!0x1),l(this,'_cursorInfo$',new _0xac9643(new Map())),l(this,_0x281bb1(0x268),this[_0x281bb1(0x322)][_0x281bb1(0x1ec)]()),l(this,_0x281bb1(0x396),new _0xac9643([])),l(this,_0x281bb1(0x360),this[_0x281bb1(0x396)]['pipe'](_0x5b9b01(Yn))),l(this,_0x281bb1(0x336),_0x12f611((_0x46c85e,_0x39c76b)=>{const _0x4481f4=_0x281bb1,_0x4659d8={'eventID':_0x64674d[_0x4481f4(0x1ed)],'data':{'unitID':this[_0x4481f4(0x2d3)],'memberID':this[_0x4481f4(0x2f6)][_0x4481f4(0x329)](),'selection':_0x14626b(_0x46c85e,_0x39c76b['range'])}};this[_0x4481f4(0x2f6)][_0x4481f4(0x381)](_0x4659d8,this[_0x4481f4(0x2d3)]);},Kn)),(this[_0x281bb1(0x2d3)]=_0x3b2d6d,this[_0x281bb1(0x2f6)]=_0x3427d8,this[_0x281bb1(0x2e1)]=_0x53d653,this[_0x281bb1(0x39d)]=_0x402a29,this['_memberService']=_0xa7be12,this[_0x281bb1(0x38c)]=_0xa2b729,this[_0x281bb1(0x1e9)]=_0x5ea150,this[_0x281bb1(0x30e)]=_0x469ca0);}get[_0x48c788(0x426)](){const _0x88bc65=_0x48c788;return this['_cursorInfo$'][_0x88bc65(0x326)]();}get['roomMembers'](){const _0x5ef64d=_0x48c788;return this[_0x5ef64d(0x396)][_0x5ef64d(0x326)]();}[_0x48c788(0x46e)](){const _0x3bc292=_0x48c788;super[_0x3bc292(0x46e)](),this[_0x3bc292(0x322)][_0x3bc292(0x325)](new Map()),this[_0x3bc292(0x322)][_0x3bc292(0x22e)](),this[_0x3bc292(0x396)][_0x3bc292(0x325)]([]),this['_roomMembers$'][_0x3bc292(0x22e)]();}[_0x48c788(0x400)](){const _0x3329be=_0x48c788;this[_0x3329be(0x340)]||(this['_init']=!0x0,this[_0x3329be(0x2f6)]['sessionStatus$'][_0x3329be(0x3bd)](_0x219692(this[_0x3329be(0x4c9)]))[_0x3329be(0x237)](_0x3aface=>{const _0x464693=_0x3329be;_0x3aface===_e[_0x464693(0x431)]?this[_0x464693(0x1d1)]():this[_0x464693(0x41e)]();}),this[_0x3329be(0x2f6)][_0x3329be(0x3d7)][_0x3329be(0x3bd)](_0x219692(this[_0x3329be(0x4c9)]))[_0x3329be(0x237)](_0x4e3854=>{const _0x42e1be=_0x3329be,_0xa13038=_0x4e3854[_0x42e1be(0x420)];_0xa13038===_0x64674d[_0x42e1be(0x1ed)]&&this[_0x42e1be(0x369)](_0x4e3854),_0xa13038===_0x64674d['USERS_LEAVE']&&this[_0x42e1be(0x202)](_0x4e3854);}),this[_0x3329be(0x28b)](),this[_0x3329be(0x3e7)](this[_0x3329be(0x1e9)][_0x3329be(0x24a)](_0x232f73=>{const _0x573526=_0x3329be;if(this[_0x573526(0x26d)]&&_0x232f73['id']===_0x576668['id']&&_0x232f73[_0x573526(0x23e)][_0x573526(0x1bf)]===this[_0x573526(0x2d3)]){const _0x1f9182=_0x232f73[_0x573526(0x23e)];this[_0x573526(0x336)](_0x1f9182[_0x573526(0x3eb)],_0x1f9182[_0x573526(0x2fc)][0x0]);}})));}[_0x48c788(0x369)](_0x46b6c0){const _0x20ee4f=_0x48c788;var _0x364ab4,_0x2c6970;const {memberID:_0x5abd02,selection:_0x1ea552}=_0x46b6c0[_0x20ee4f(0x43e)],{sheetName:_0x4fc6cf,range:_0x9cb8e}=_0x3f2fda(_0x1ea552),_0x229fd9={'name':(_0x2c6970=(_0x364ab4=this[_0x20ee4f(0x28e)][_0x20ee4f(0x395)](this[_0x20ee4f(0x2d3)],_0x5abd02))==null?void 0x0:_0x364ab4['name'])!=null?_0x2c6970:_0x20ee4f(0x2fd),'range':this[_0x20ee4f(0x308)](_0x4fc6cf,_0x9cb8e),'sheetID':_0x4fc6cf,'color':this[_0x20ee4f(0x39d)][_0x20ee4f(0x33d)](_0x5abd02),'selection':_0x1ea552},_0x2ce80=this['cursorInfo'];_0x2ce80[_0x20ee4f(0x25a)](_0x5abd02,_0x229fd9),this[_0x20ee4f(0x322)][_0x20ee4f(0x325)](_0x2ce80);}[_0x48c788(0x202)](_0x25ac35){const _0x1cabd6=_0x48c788,{memberID:_0x545636}=_0x25ac35[_0x1cabd6(0x43e)],_0x43f460=this[_0x1cabd6(0x426)];_0x43f460[_0x1cabd6(0x388)](_0x545636),this[_0x1cabd6(0x322)][_0x1cabd6(0x325)](_0x43f460);}[_0x48c788(0x308)](_0x92020,_0x168cf){const _0x12e443=_0x48c788;var _0x102388,_0x5247c4;const _0xdf84ca=(_0x5247c4=(_0x102388=this[_0x12e443(0x38c)]['getUniverSheetInstance'](this[_0x12e443(0x2d3)]))==null?void 0x0:_0x102388[_0x12e443(0x416)](_0x92020))==null?void 0x0:_0x5247c4[_0x12e443(0x283)]();return(_0xdf84ca==null?void 0x0:_0xdf84ca['find'](_0x229e15=>_0x294f92[_0x12e443(0x1c6)](_0x229e15,_0x168cf)))||_0x168cf;}[_0x48c788(0x28b)](){const _0x299b8e=_0x48c788,_0x45c380=new _0x53ebaa(),_0x4ab073=Xn(),_0x5b2520=()=>{const _0x391bce=_0x1999;_0x45c380[_0x391bce(0x46e)]();const _0x4436e5=(_0x20723d,_0x24a9fb,_0x5d3300,_0x5ca470)=>{const _0x1d31d7=_0x391bce;let _0x39b573=[];switch(_0x20723d['id']){case _0x3445c6['DeleteRangeMoveLeftCommandId']:{_0x39b573=_0x31225a(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x3b8)]:{_0x39b573=_0xac4d22(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x493)]:{_0x39b573=_0x4ac67f(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x3fe)]:{_0x39b573=_0x174883(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x39a)]:{_0x39b573=_0x257710(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x23d)]:{_0x39b573=_0x4e6c23(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x245)]:{_0x39b573=_0x4784f5(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x39c)]:{_0x39b573=_0x2f6da3(_0x20723d,_0x5ca470);break;}case _0x3445c6[_0x1d31d7(0x4d0)]:{_0x39b573=_0x2b7f87(_0x20723d,_0x5ca470);break;}}const _0x2e405b=_0x477418(_0x39b573,_0x5ca470),_0x389b11=this[_0x1d31d7(0x426)]['get'](_0x24a9fb);if(_0x389b11&&_0x2e405b){const _0x1fd40d={..._0x389b11,'range':_0x2e405b};this[_0x1d31d7(0x426)]['set'](_0x24a9fb,_0x1fd40d),_0x4ab073(()=>{const _0x50ddce=_0x1d31d7,_0x2a10fb=this[_0x50ddce(0x30e)][_0x50ddce(0x1f4)](_0x2e405b,_0x3677b2=>(_0x2a10fb[_0x50ddce(0x46e)](),_0x4436e5(_0x3677b2,_0x24a9fb,_0x5d3300,_0x2e405b)));_0x45c380[_0x50ddce(0x20d)](_0x2a10fb);});}return{'redos':[],'undos':[]};};this[_0x391bce(0x426)][_0x391bce(0x244)]((_0x20e836,_0x250284)=>{const _0xc31dcf=_0x391bce,{range:_0x5507b1,sheetID:_0x76ae45}=_0x20e836,_0x28e092=this[_0xc31dcf(0x30e)][_0xc31dcf(0x1f4)](_0x5507b1,_0x24056e=>(_0x28e092['dispose'](),_0x4436e5(_0x24056e,_0x250284,_0x76ae45,_0x5507b1)));_0x45c380[_0xc31dcf(0x20d)](_0x28e092);});};this[_0x299b8e(0x3e7)](_0x308092(this['_cursorInfo$'][_0x299b8e(0x237)](()=>{_0x5b2520();})));}[_0x48c788(0x1d1)](){const _0x764089=_0x48c788;var _0x1442a6,_0x1d7846;if(this[_0x764089(0x26d)]=!0x0,((_0x1442a6=this[_0x764089(0x38c)]['getFocusedUnit']())==null?void 0x0:_0x1442a6['getUnitId']())!==this['unitID'])return;const _0x1b1196=(_0x1d7846=this[_0x764089(0x2e1)][_0x764089(0x4ce)](_0x241ac5)[_0x764089(0x2cf)]())==null?void 0x0:_0x1d7846[0x0];_0x1b1196&&this['_updateLocalCursor'](this[_0x764089(0x38c)][_0x764089(0x287)](_0x5b42a8['UNIVER_SHEET'])['getActiveSheet']()[_0x764089(0x45f)](),_0x1b1196);}[_0x48c788(0x41e)](){this['_online']=!0x1;}};gt=Gn([ae(0x2,_0x1df0bc(_0x1883e3)),ae(0x3,_0x1df0bc(At)),ae(0x4,_0x1df0bc(ee)),ae(0x5,_0x5db99b),ae(0x6,_0x26b7b1),ae(0x7,_0x1df0bc(_0xd07635))],gt);var Jn=Object['defineProperty'],zn=Object[_0x48c788(0x2bd)],qn=(_0x2563c6,_0x4d823b,_0x1c52a0,_0x197f69)=>{const _0x3de05f=_0x48c788;for(var _0x5c5f7a=_0x197f69>0x1?void 0x0:_0x197f69?zn(_0x4d823b,_0x1c52a0):_0x4d823b,_0x3c66a7=_0x2563c6[_0x3de05f(0x3c7)]-0x1,_0x4b1984;_0x3c66a7>=0x0;_0x3c66a7--)(_0x4b1984=_0x2563c6[_0x3c66a7])&&(_0x5c5f7a=(_0x197f69?_0x4b1984(_0x4d823b,_0x1c52a0,_0x5c5f7a):_0x4b1984(_0x5c5f7a))||_0x5c5f7a);return _0x197f69&&_0x5c5f7a&&Jn(_0x4d823b,_0x1c52a0,_0x5c5f7a),_0x5c5f7a;},q=(_0x42630b,_0x1e0f73)=>(_0x4f74f7,_0x327704)=>_0x1e0f73(_0x4f74f7,_0x327704,_0x42630b);const Zn=0x12c,Qn=0x64;let mt=class extends _0x4f9c78{constructor(_0x27539a,_0x9f398a,_0x582dd4,_0x1bc537,_0x37ebe0,_0x42d176,_0x4d5f82,_0x4a752f,_0x51bd2b){const _0x52d4f4=_0x48c788;super(),l(this,_0x52d4f4(0x26d),!0x1),l(this,_0x52d4f4(0x340),!0x1),l(this,_0x52d4f4(0x322),new _0xac9643(new Map())),l(this,'cursorInfo$',this[_0x52d4f4(0x322)]['asObservable']()),l(this,_0x52d4f4(0x396),new _0xac9643([])),l(this,_0x52d4f4(0x360),this[_0x52d4f4(0x396)]['pipe'](_0x5b9b01(Zn))),l(this,_0x52d4f4(0x336),_0x12f611(_0x1cd1ac=>{const _0x4b756e=_0x52d4f4,_0x5ee5a9={'eventID':_0x64674d[_0x4b756e(0x1ed)],'data':{'unitID':this[_0x4b756e(0x2d3)],'memberID':this[_0x4b756e(0x2f6)][_0x4b756e(0x329)](),'selection':Ts(_0x1cd1ac)}};this[_0x4b756e(0x2f6)]['send'](_0x5ee5a9,this['unitID']);},Qn)),(this[_0x52d4f4(0x2d3)]=_0x27539a,this[_0x52d4f4(0x2f6)]=_0x9f398a,this[_0x52d4f4(0x2e1)]=_0x582dd4,this['_colorAssignService']=_0x1bc537,this[_0x52d4f4(0x28e)]=_0x37ebe0,this[_0x52d4f4(0x427)]=_0x42d176,this[_0x52d4f4(0x231)]=_0x4d5f82,this[_0x52d4f4(0x38c)]=_0x4a752f,this['_commandService']=_0x51bd2b);}get[_0x48c788(0x426)](){const _0x31e8ea=_0x48c788;return this['_cursorInfo$'][_0x31e8ea(0x326)]();}get['roomMembers'](){const _0x3756a4=_0x48c788;return this[_0x3756a4(0x396)]['getValue']();}['dispose'](){const _0x313c54=_0x48c788;super['dispose'](),this[_0x313c54(0x322)][_0x313c54(0x325)](new Map()),this[_0x313c54(0x322)][_0x313c54(0x22e)](),this['_roomMembers$'][_0x313c54(0x325)]([]),this[_0x313c54(0x396)][_0x313c54(0x22e)]();}[_0x48c788(0x400)](){const _0x4ef4c3=_0x48c788;this[_0x4ef4c3(0x340)]||(this[_0x4ef4c3(0x340)]=!0x0,this[_0x4ef4c3(0x2f6)][_0x4ef4c3(0x449)][_0x4ef4c3(0x3bd)](_0x219692(this[_0x4ef4c3(0x4c9)]))[_0x4ef4c3(0x237)](_0xb44fb7=>{const _0x57b90b=_0x4ef4c3;_0xb44fb7===_e[_0x57b90b(0x431)]?this[_0x57b90b(0x1d1)]():this[_0x57b90b(0x41e)]();}),this[_0x4ef4c3(0x2f6)][_0x4ef4c3(0x3d7)]['pipe'](_0x219692(this[_0x4ef4c3(0x4c9)]))[_0x4ef4c3(0x237)](_0x1930ef=>{const _0x126d40=_0x4ef4c3,_0x4fcd5d=_0x1930ef['eventID'];_0x4fcd5d===_0x64674d['UPDATE_CURSOR']&&this[_0x126d40(0x369)](_0x1930ef),_0x4fcd5d===_0x64674d[_0x126d40(0x22c)]&&this['_onCursorDelete'](_0x1930ef);}),this[_0x4ef4c3(0x3e7)](this[_0x4ef4c3(0x1e9)][_0x4ef4c3(0x24a)](_0x3a75cb=>{const _0x2844cf=_0x4ef4c3,_0x77782d=_0x3a75cb[_0x2844cf(0x23e)];_0x77782d!=null&&this[_0x2844cf(0x26d)]&&_0x3a75cb['id']===_0x1d44c4['id']&&_0x77782d[_0x2844cf(0x1bf)]===this[_0x2844cf(0x2d3)]&&_0x77782d[_0x2844cf(0x27c)]===!0x1&&this[_0x2844cf(0x336)](_0x77782d[_0x2844cf(0x1e1)]);})),this[_0x4ef4c3(0x427)]['collabCursorState$'][_0x4ef4c3(0x3bd)](_0x219692(this['dispose$']))[_0x4ef4c3(0x237)](_0x1e0f6c=>{const _0x55d6ff=_0x4ef4c3;if((_0x1e0f6c==null?void 0x0:_0x1e0f6c[_0x55d6ff(0x2d3)])!==this['unitID'])return;const _0xbd8998={'eventID':_0x64674d[_0x55d6ff(0x1ed)],'data':_0x1e0f6c};this[_0x55d6ff(0x369)](_0xbd8998);}),this[_0x4ef4c3(0x3e7)](this['_commandService'][_0x4ef4c3(0x24a)](_0x23bcf2=>{const _0x121076=_0x4ef4c3;if(_0x23bcf2[_0x121076(0x23e)]==null)return;const _0xe3547b=_0x23bcf2[_0x121076(0x23e)];if(_0x23bcf2['id']!==_0x436bb5['id']||_0xe3547b['unitId']!==this[_0x121076(0x2d3)])return;const _0x5d2fac={'id':_0x121076(0x4b6),'params':_0xe3547b},_0xdc0c40=this[_0x121076(0x426)];for(const [_0x380e95,_0x552fcd]of _0xdc0c40){const _0x5ce29f={'id':_0x121076(0x4b6),'params':{'unitId':this[_0x121076(0x2d3)],'actions':null,'textRanges':_0x552fcd[_0x121076(0x1e1)]}},_0x3734c3=this[_0x121076(0x231)][_0x121076(0x33b)](_0x5d2fac,_0x5ce29f,!0x1);if(_0x1ce5e8(_0x3734c3))throw _0x3734c3[_0x121076(0x1b3)];_0xdc0c40[_0x121076(0x25a)](_0x380e95,{..._0x552fcd,'ranges':_0x3734c3[_0x121076(0x1bc)]['params'][_0x121076(0x410)]});}queueMicrotask(()=>{const _0x3e6941=_0x121076;this[_0x3e6941(0x322)][_0x3e6941(0x325)](_0xdc0c40);});})));}[_0x48c788(0x369)](_0x139234){const _0x146f57=_0x48c788;var _0xa4f3e3,_0x52c636;const {memberID:_0x20a304,selection:_0x496487}=_0x139234['data'],_0xdec932=An(_0x496487),_0x2ef780=(_0x52c636=(_0xa4f3e3=this[_0x146f57(0x28e)][_0x146f57(0x395)](this[_0x146f57(0x2d3)],_0x20a304))==null?void 0x0:_0xa4f3e3[_0x146f57(0x2e3)])!=null?_0x52c636:'Unknown\x20user',_0x449330={'color':this['_colorAssignService'][_0x146f57(0x33d)](_0x20a304),'name':_0x2ef780,'ranges':_0xdec932},_0x4769d4=this[_0x146f57(0x426)];_0x4769d4[_0x146f57(0x25a)](_0x20a304,_0x449330),this[_0x146f57(0x322)][_0x146f57(0x325)](_0x4769d4);}[_0x48c788(0x202)](_0x4cc5c0){const _0x1389ac=_0x48c788,{memberID:_0x21c85b}=_0x4cc5c0[_0x1389ac(0x43e)],_0x15fdf1=this[_0x1389ac(0x426)];_0x15fdf1[_0x1389ac(0x388)](_0x21c85b),this['_cursorInfo$'][_0x1389ac(0x325)](_0x15fdf1);}['_toggleOnline'](){const _0x5b7df9=_0x48c788;var _0x4b8555;if(this[_0x5b7df9(0x26d)]=!0x0,((_0x4b8555=this['_univerInstanceService'][_0x5b7df9(0x1d2)]())==null?void 0x0:_0x4b8555['getUnitId']())!==this[_0x5b7df9(0x2d3)])return;const _0x1bd7e5=this['_injector'][_0x5b7df9(0x4ce)](_0x3953fa)[_0x5b7df9(0x2cf)](),_0x129612=_0x1bd7e5==null?void 0x0:_0x1bd7e5['map'](_0x478cbe);Array[_0x5b7df9(0x1c9)](_0x129612)&&_0x129612['length']>0x0&&this[_0x5b7df9(0x336)](_0x129612);}['_toggleOffline'](){const _0x11e117=_0x48c788;this[_0x11e117(0x26d)]=!0x1;}};mt=qn([q(0x2,_0x1df0bc(_0x1883e3)),q(0x3,_0x1df0bc(At)),q(0x4,_0x1df0bc(ee)),q(0x5,_0x1df0bc(Mt)),q(0x6,_0x56e350),q(0x7,_0x5db99b),q(0x8,_0x26b7b1)],mt);var er=Object[_0x48c788(0x299)],tr=Object[_0x48c788(0x2bd)],sr=(_0x4b9849,_0x28fe7a,_0x8e6422,_0x4062ac)=>{for(var _0x19e46e=_0x4062ac>0x1?void 0x0:_0x4062ac?tr(_0x28fe7a,_0x8e6422):_0x28fe7a,_0x6b90c5=_0x4b9849['length']-0x1,_0x23a17a;_0x6b90c5>=0x0;_0x6b90c5--)(_0x23a17a=_0x4b9849[_0x6b90c5])&&(_0x19e46e=(_0x4062ac?_0x23a17a(_0x28fe7a,_0x8e6422,_0x19e46e):_0x23a17a(_0x19e46e))||_0x19e46e);return _0x4062ac&&_0x19e46e&&er(_0x28fe7a,_0x8e6422,_0x19e46e),_0x19e46e;},st=(_0x127a08,_0x437065)=>(_0x4df320,_0x484af9)=>_0x437065(_0x4df320,_0x484af9,_0x127a08);let ue=class extends _0x4f9c78{constructor(_0x1b30eb,_0x55bfef,_0x3920b5){const _0x204fae=_0x48c788;super(),l(this,_0x204fae(0x27f),new Map()),l(this,'_entityInit$',new _0x255156()),(this['_univerInstanceService']=_0x1b30eb,this['_injector']=_0x55bfef,this['_collabSessionService']=_0x3920b5,this['_init']());}[_0x48c788(0x46e)](){const _0x5934af=_0x48c788;super[_0x5934af(0x46e)](),this[_0x5934af(0x4c4)][_0x5934af(0x22e)](),this[_0x5934af(0x27f)][_0x5934af(0x244)](_0x3b854c=>_0x3b854c[_0x5934af(0x46e)]());}[_0x48c788(0x4cd)](_0x6339fd){const _0xb595a4=_0x48c788;return this[_0xb595a4(0x27f)][_0xb595a4(0x3f4)](_0x6339fd)?this[_0xb595a4(0x27f)]['get'](_0x6339fd)[_0xb595a4(0x268)]:this[_0xb595a4(0x4c4)][_0xb595a4(0x3bd)](_0x2b78dc(_0x382d64=>_0x382d64[_0xb595a4(0x2d3)]===_0x6339fd),_0x52b39c(_0x176251=>_0x176251[_0xb595a4(0x268)]));}[_0x48c788(0x340)](){const _0x1a189b=_0x48c788;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5b42a8['UNIVER_SHEET'])[_0x1a189b(0x3bd)](_0x219692(this[_0x1a189b(0x4c9)]))[_0x1a189b(0x237)](async _0x2fcbd9=>{const _0xb83a46=_0x1a189b,_0x45877a=_0x2fcbd9['getUnitId'](),_0x3fdfd4=await this['_startSheetCollabCursor'](_0x45877a);this[_0xb83a46(0x4c4)]['next'](_0x3fdfd4),this[_0xb83a46(0x27f)][_0xb83a46(0x25a)](_0x45877a,_0x3fdfd4);}),this[_0x1a189b(0x38c)]['getTypeOfUnitAdded$'](_0x5b42a8['UNIVER_DOC'])[_0x1a189b(0x3bd)](_0x219692(this[_0x1a189b(0x4c9)]))[_0x1a189b(0x3bd)](_0x2b78dc(_0xdbb7eb=>!_0xdbb7eb[_0x1a189b(0x451)]()[_0x1a189b(0x458)]('__')))[_0x1a189b(0x237)](async _0x4dab01=>{const _0x39e6d4=_0x1a189b,_0x30ea47=_0x4dab01[_0x39e6d4(0x451)](),_0x3b4a62=await this[_0x39e6d4(0x439)](_0x30ea47);this[_0x39e6d4(0x4c4)][_0x39e6d4(0x325)](_0x3b4a62),this[_0x39e6d4(0x27f)]['set'](_0x30ea47,_0x3b4a62);}),_0x10f2b0(this[_0x1a189b(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8[_0x1a189b(0x4d4)]),this[_0x1a189b(0x38c)]['getTypeOfUnitDisposed$'](_0x5b42a8[_0x1a189b(0x29e)]))['pipe'](_0x219692(this['dispose$']))[_0x1a189b(0x237)](_0x3740cd=>{const _0x2a8e28=_0x1a189b,_0x37a302=_0x3740cd[_0x2a8e28(0x451)](),_0x1d1d8f=this[_0x2a8e28(0x27f)]['get'](_0x37a302);_0x1d1d8f&&(_0x1d1d8f[_0x2a8e28(0x46e)](),this[_0x2a8e28(0x27f)][_0x2a8e28(0x388)](_0x37a302));});}async[_0x48c788(0x1d0)](_0x112b73){const _0x4927cb=_0x48c788,_0x3a3961=await this['_collabSessionService']['requireSession'](_0x112b73),_0x3fec6a=this['_injector'][_0x4927cb(0x3a1)](gt,_0x112b73,_0x3a3961);return _0x3fec6a[_0x4927cb(0x400)](),_0x3fec6a;}async[_0x48c788(0x439)](_0x412c90){const _0x10e5ea=_0x48c788,_0x50adf2=await this[_0x10e5ea(0x3b6)][_0x10e5ea(0x44c)](_0x412c90),_0x5434d9=this[_0x10e5ea(0x2e1)][_0x10e5ea(0x3a1)](mt,_0x412c90,_0x50adf2);return _0x5434d9[_0x10e5ea(0x400)](),_0x5434d9;}};ue=sr([_0x4bcad5(_0xba774d[_0x48c788(0x48c)],ue),st(0x0,_0x5db99b),st(0x1,_0x1df0bc(_0x1883e3)),st(0x2,_0x1df0bc(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,ir=0x5;function nr(_0x467bf6,_0x48e039){const _0x45f58b=_0x48c788;let {radius:_0x5bc7bc,width:_0x21e168,height:_0x472314}=_0x48e039;_0x5bc7bc=_0x5bc7bc!=null?_0x5bc7bc:0x0,_0x21e168=_0x21e168!=null?_0x21e168:0x1e,_0x472314=_0x472314!=null?_0x472314:0x1e;let _0x53877f=0x0,_0x249d46=0x0,_0x1ed93d=0x0;_0x53877f=_0x249d46=_0x1ed93d=Math[_0x45f58b(0x462)](_0x5bc7bc,_0x21e168/0x2,_0x472314/0x2),_0x467bf6[_0x45f58b(0x3a3)](),_0x467bf6[_0x45f58b(0x2bb)](_0x53877f,0x0),_0x467bf6[_0x45f58b(0x257)](_0x21e168-_0x249d46,0x0),_0x467bf6['arc'](_0x21e168-_0x249d46,_0x249d46,_0x249d46,Math['PI']*0x3/0x2,0x0,!0x1),_0x467bf6['lineTo'](_0x21e168,_0x472314-_0x1ed93d),_0x467bf6[_0x45f58b(0x266)](_0x21e168-_0x1ed93d,_0x472314-_0x1ed93d,_0x1ed93d,0x0,Math['PI']/0x2,!0x1),_0x467bf6[_0x45f58b(0x257)](0x0,_0x472314),_0x467bf6[_0x45f58b(0x257)](0x0,_0x53877f),_0x467bf6['arc'](_0x53877f,_0x53877f,_0x53877f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x467bf6[_0x45f58b(0x224)](),_0x48e039[_0x45f58b(0x403)]&&(_0x467bf6[_0x45f58b(0x2c6)](),_0x467bf6[_0x45f58b(0x1c1)]=_0x48e039[_0x45f58b(0x403)],_0x48e039[_0x45f58b(0x453)]==='evenodd'?_0x467bf6['fill'](_0x45f58b(0x376)):_0x467bf6[_0x45f58b(0x403)](),_0x467bf6[_0x45f58b(0x461)]());}class ze extends _0x5760a1{constructor(_0x5ea5be,_0x163f22){const _0x1b0361=_0x48c788;super(_0x5ea5be,_0x163f22),l(this,_0x1b0361(0x295)),l(this,_0x1b0361(0x4a5)),(this[_0x1b0361(0x295)]=_0x163f22==null?void 0x0:_0x163f22[_0x1b0361(0x295)],this[_0x1b0361(0x4a5)]=_0x163f22==null?void 0x0:_0x163f22['text']);}static[_0x48c788(0x300)](_0x4858dd,_0x2b67ee){const _0x328e07=_0x48c788,{text:_0x187501,color:_0x19d075}=_0x2b67ee;_0x4858dd[_0x328e07(0x2c6)](),_0x4858dd['font']=_0x328e07(0x26f);const _0x54faa9=_0x4858dd['measureText'](_0x187501)[_0x328e07(0x1c3)],_0x2c095f=Math[_0x328e07(0x462)](_0x54faa9+0x2*it,qt);nr(_0x4858dd,{'height':Oe,'radius':0x4,'width':_0x2c095f,'fill':_0x19d075,'evented':!0x1}),_0x4858dd[_0x328e07(0x1c1)]=_0x328e07(0x421);const _0x2cd059=it,_0x1461bf=Oe-ir,_0x33eca5=qt-0x2*it;if(_0x54faa9>_0x33eca5){let _0x57e321='',_0x364fbf=0x0;for(const _0x4cf1a2 of _0x187501){const _0x68137d=_0x4858dd[_0x328e07(0x34f)](_0x4cf1a2)[_0x328e07(0x1c3)];if(_0x364fbf+_0x68137d<=_0x33eca5-_0x4858dd[_0x328e07(0x34f)](_0x328e07(0x4ac))['width'])_0x57e321+=_0x4cf1a2,_0x364fbf+=_0x68137d;else{_0x57e321+=_0x328e07(0x4ac);break;}}_0x4858dd[_0x328e07(0x432)](_0x57e321,_0x2cd059,_0x1461bf);}else _0x4858dd[_0x328e07(0x432)](_0x187501,_0x2cd059,_0x1461bf);_0x4858dd[_0x328e07(0x461)]();}[_0x48c788(0x3cb)](_0x329e0b){const _0x19ec4e=_0x48c788;ze[_0x19ec4e(0x300)](_0x329e0b,this);}}const rr=0x1,or=1.5;class ar extends _0x5760a1{constructor(_0x2868d2,_0x4eb94c){const _0x16c8cd=_0x48c788;super(_0x2868d2,_0x4eb94c),l(this,_0x16c8cd(0x1fe)),l(this,_0x16c8cd(0x37a),!0x1),l(this,_0x16c8cd(0x3aa)),l(this,'_name',''),l(this,_0x16c8cd(0x4b5),'top'),(_0x4eb94c&&this[_0x16c8cd(0x3cf)](_0x4eb94c),this['onPointerEnterObserver'][_0x16c8cd(0x20d)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x16c8cd(0x3f1)][_0x16c8cd(0x20d)](()=>this[_0x16c8cd(0x3cf)]({'hovered':!0x1})));}['setShapeProps'](_0x106826){const _0x290c76=_0x48c788;var _0xa5594b,_0x4c0fe7,_0x144192,_0x5c7397,_0x424e58;this[_0x290c76(0x1fe)]=(_0xa5594b=_0x106826[_0x290c76(0x295)])!=null?_0xa5594b:this[_0x290c76(0x1fe)],this['_hovered']=(_0x4c0fe7=_0x106826[_0x290c76(0x1f3)])!=null?_0x4c0fe7:this[_0x290c76(0x37a)],this[_0x290c76(0x3aa)]=(_0x144192=_0x106826[_0x290c76(0x479)])!=null?_0x144192:this[_0x290c76(0x3aa)],this['_name']=(_0x5c7397=_0x106826[_0x290c76(0x2e3)])!=null?_0x5c7397:this[_0x290c76(0x28f)],this[_0x290c76(0x4b5)]=(_0x424e58=_0x106826[_0x290c76(0x35c)])!=null?_0x424e58:this[_0x290c76(0x4b5)],this[_0x290c76(0x3a8)]({'width':_0x106826[_0x290c76(0x1c3)],'height':_0x106826[_0x290c76(0x4cc)]});}[_0x48c788(0x3df)](_0x5a80de){const _0x4f807c=_0x48c788,{row:_0x124eb2,column:_0x4eeec9}=_0x5a80de;if(_0x124eb2>=this['_range'][_0x4f807c(0x4af)]&&_0x124eb2<=this[_0x4f807c(0x3aa)][_0x4f807c(0x414)]&&_0x4eeec9>=this[_0x4f807c(0x3aa)][_0x4f807c(0x41c)]&&_0x4eeec9<=this[_0x4f807c(0x3aa)][_0x4f807c(0x3ff)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4f807c(0x3cf)]({'hovered':!0x1});}[_0x48c788(0x1fb)](_0x3b846c){return!0x1;}[_0x48c788(0x3cb)](_0x32ab72){const _0x77bd77=_0x48c788;_0x31e76b[_0x77bd77(0x300)](_0x32ab72,{'width':this[_0x77bd77(0x1c3)],'height':this[_0x77bd77(0x4cc)],'strokeWidth':or,'stroke':this[_0x77bd77(0x1fe)],'evented':!0x1}),this[_0x77bd77(0x37a)]&&(_0x32ab72[_0x77bd77(0x2c6)](),_0x32ab72[_0x77bd77(0x2b7)](0x1,0x0,0x0,0x1,this[_0x77bd77(0x1c3)],this['_labelPosition']===_0x77bd77(0x2f0)?0x0:-Oe),ze[_0x77bd77(0x300)](_0x32ab72,{'text':this[_0x77bd77(0x28f)],'color':this['_color']}),_0x32ab72[_0x77bd77(0x461)]());}}var cr=Object[_0x48c788(0x299)],hr=Object['getOwnPropertyDescriptor'],lr=(_0x528e65,_0x298afe,_0x42b7db,_0x21f2fc)=>{const _0x4210db=_0x48c788;for(var _0x1222dc=_0x21f2fc>0x1?void 0x0:_0x21f2fc?hr(_0x298afe,_0x42b7db):_0x298afe,_0x53aeb2=_0x528e65[_0x4210db(0x3c7)]-0x1,_0x2a1b98;_0x53aeb2>=0x0;_0x53aeb2--)(_0x2a1b98=_0x528e65[_0x53aeb2])&&(_0x1222dc=(_0x21f2fc?_0x2a1b98(_0x298afe,_0x42b7db,_0x1222dc):_0x2a1b98(_0x1222dc))||_0x1222dc);return _0x21f2fc&&_0x1222dc&&cr(_0x298afe,_0x42b7db,_0x1222dc),_0x1222dc;},Me=(_0x396e48,_0xa6036c)=>(_0x40d584,_0x150ed1)=>_0xa6036c(_0x40d584,_0x150ed1,_0x396e48);let $e=class extends _0x4f9c78{constructor(_0x4d945b,_0x1c49a9,_0x3ebe3f,_0x3fc779){const _0x2e034a=_0x48c788;super(),l(this,_0x2e034a(0x3da),new Set()),l(this,_0x2e034a(0x23f),null),(this[_0x2e034a(0x28a)]=_0x4d945b,this[_0x2e034a(0x38c)]=_0x1c49a9,this[_0x2e034a(0x3f8)]=_0x3ebe3f,this[_0x2e034a(0x4bd)]=_0x3fc779,this[_0x2e034a(0x340)]());}get[_0x48c788(0x417)](){const _0x40c69c=_0x48c788;return this[_0x40c69c(0x3f8)][_0x40c69c(0x436)](this[_0x40c69c(0x38c)][_0x40c69c(0x287)](_0x5b42a8['UNIVER_SHEET'])[_0x40c69c(0x451)]())['with'](_0x46d514);}get[_0x48c788(0x36e)](){const _0x35b7eb=_0x48c788;return this[_0x35b7eb(0x38c)][_0x35b7eb(0x287)](_0x5b42a8['UNIVER_SHEET'])[_0x35b7eb(0x451)]();}[_0x48c788(0x340)](){const _0x3838f4=_0x48c788;this[_0x3838f4(0x417)][_0x3838f4(0x312)][_0x3838f4(0x3bd)](_0x258fee(this['dispose$']),_0x367f49(_0x183330=>{const _0x53625d=_0x3838f4;if(_0x183330){const _0x3dafb2=_0x183330['sheetId'];return _0x222f4d(this[_0x53625d(0x28a)]['getCollabCursors$'](this[_0x53625d(0x36e)]),this['_themeService'][_0x53625d(0x45c)])[_0x53625d(0x3bd)](_0x1262f1(([_0x385cfc,_0x170fdf])=>{const _0x35a1ce=_0x53625d,_0x5f5df6=new Map();return _0x385cfc[_0x35a1ce(0x244)]((_0x210ac5,_0xbd22c)=>{const _0x1c212d=_0x35a1ce;if(_0x210ac5[_0x1c212d(0x1be)]===_0x3dafb2){const _0x466e0f={..._0x210ac5};_0x466e0f[_0x1c212d(0x295)]=_0x170fdf[_0x210ac5[_0x1c212d(0x295)]],_0x5f5df6[_0x1c212d(0x25a)](_0xbd22c,_0x466e0f);}}),{'skeleton':_0x183330,'cursors':_0x5f5df6};}));}return _0x5aa699({'skeleton':null,'cursors':new Map()});}))[_0x3838f4(0x237)](({skeleton:_0x4cdcb0,cursors:_0x29d864})=>{const _0x5592dc=_0x3838f4;this['_removeCollabCursors'](),_0x4cdcb0&&this[_0x5592dc(0x22f)](_0x4cdcb0,_0x29d864);}),this['_sheetSkeletonManagerService'][_0x3838f4(0x312)][_0x3838f4(0x237)](_0x408419=>{const _0x3b0453=_0x3838f4;if(_0x408419==null)return;const {skeleton:_0x37e7e7}=_0x408419,_0xd99d6=this[_0x3b0453(0x3f8)]['getRenderById'](this[_0x3b0453(0x36e)]),{scene:_0x1f6393}=_0xd99d6;_0x1f6393[_0x3b0453(0x2b5)][_0x3b0453(0x20d)](_0x12f611(_0x123e91=>{const _0x3f975c=_0x3b0453;var _0x3a481e,_0x2264d6;const {offsetX:_0x2c095b,offsetY:_0x2a36c4}=_0x123e91,{x:_0x4c4557,y:_0x4a5341}=_0x1f6393[_0x3f975c(0x485)](_0x4c9069[_0x3f975c(0x344)]([_0x2c095b,_0x2a36c4])),{scaleX:_0x3bea89,scaleY:_0x4e192f}=_0x1f6393['getAncestorScale'](),_0x2c1db3=_0x1f6393['getViewport'](_0x53f94c[_0x3f975c(0x2f4)]),_0x303b15=_0x1f6393[_0x3f975c(0x2b0)](_0x4c9069['FromArray']([_0x4c4557,_0x4a5341]),_0x2c1db3),_0x4efd6a=_0x37e7e7[_0x3f975c(0x358)](_0x2c095b,_0x2a36c4,_0x3bea89,_0x4e192f,_0x303b15);((_0x3a481e=this[_0x3f975c(0x23f)])==null?void 0x0:_0x3a481e[_0x3f975c(0x4be)])===_0x4efd6a['column']&&((_0x2264d6=this[_0x3f975c(0x23f)])==null?void 0x0:_0x2264d6[_0x3f975c(0x2fe)])===_0x4efd6a[_0x3f975c(0x2fe)]||this[_0x3f975c(0x3da)][_0x3f975c(0x244)](_0xb7ac82=>{const _0x3ea6ed=_0x3f975c;_0xb7ac82[_0x3ea6ed(0x3df)](_0x4efd6a);});},0x64));});}[_0x48c788(0x22f)](_0x2e905c,_0x3d42f4){const _0x2e8d02=_0x48c788;var _0x5ae661;const _0x24fea9=(_0x5ae661=this[_0x2e8d02(0x417)][_0x2e8d02(0x342)]())==null?void 0x0:_0x5ae661['skeleton'];if(!_0x24fea9)return;const _0x3a7b7a=this[_0x2e8d02(0x475)]();if(!_0x3a7b7a)return;this[_0x2e8d02(0x3da)][_0x2e8d02(0x244)](_0x457d4d=>{const _0x65148b=_0x2e8d02;_0x457d4d[_0x65148b(0x1f9)]();});const {scene:_0x431dd6}=_0x3a7b7a,_0x47473e=_r(Array[_0x2e8d02(0x444)](_0x3d42f4[_0x2e8d02(0x3ef)]()))[_0x2e8d02(0x3e8)](_0x2045ff=>{const _0x3a371b=_0x2e8d02,{color:_0x25b1ee,range:_0x49c3dd,name:_0x4d748c,selection:_0x20f2c6,sheetID:_0x169e74}=_0x2045ff,{startColumn:_0x36c47b,startRow:_0x2428df,endColumn:_0x35a1da,endRow:_0x1c93ed}=_0x49c3dd,_0x5a13eb=_0x51cfa7(_0x2428df,_0x36c47b,_0x431dd6,_0x24fea9),_0x36fe3f=_0x51cfa7(_0x1c93ed,_0x35a1da,_0x431dd6,_0x24fea9),{columnHeaderHeightAndMarginTop:_0x3a7000}=_0x24fea9,{startX:_0x3cf477,startY:_0x37d286}=_0x5a13eb,{endX:_0x10b576,endY:_0x2e3422}=_0x36fe3f,_0x1d88d6=_0x10b576-_0x3cf477,_0x3687fa=_0x2e3422-_0x37d286,_0x22948d={'labelPosition':_0x37d286-_0x3a7000>=Oe?'top':_0x3a371b(0x2f0),'sheetID':_0x169e74,'range':_0x49c3dd,'color':_0x25b1ee,'name':_0x4d748c,'selection':_0x20f2c6,'left':_0x3cf477,'top':_0x37d286,'width':_0x1d88d6,'height':_0x3687fa,'evented':!0x1};return new ar(_0x4d748c,_0x22948d);});_0x431dd6[_0x2e8d02(0x3a5)](_0x47473e,rr),this[_0x2e8d02(0x3da)]=new Set(_0x47473e);}[_0x48c788(0x4b7)](){const _0x180a38=_0x48c788;var _0x4bb56f;(_0x4bb56f=this[_0x180a38(0x3da)])==null||_0x4bb56f[_0x180a38(0x244)](_0x3a295f=>_0x3a295f[_0x180a38(0x46e)]());}[_0x48c788(0x475)](){const _0x378b12=_0x48c788;return _0x1f2c89(this[_0x378b12(0x38c)],this[_0x378b12(0x3f8)]);}};$e=lr([_0x4bcad5(_0xba774d[_0x48c788(0x44e)],$e),Me(0x0,_0x1df0bc(ue)),Me(0x1,_0x5db99b),Me(0x2,_0x205a7a),Me(0x3,_0x1df0bc(_0x58f756))],$e);function _r(_0x4c5402){const _0x568bce=_0x48c788,_0x381d94=new Map();return _0x4c5402['forEach'](_0x26d263=>{const _0x33e376=_0x1999;if(_0x381d94[_0x33e376(0x3f4)](_0x26d263[_0x33e376(0x42f)])){const _0x4a0fc1=_0x381d94[_0x33e376(0x4ce)](_0x26d263[_0x33e376(0x42f)]);_0x4a0fc1[_0x33e376(0x2e3)]+=',\x20'+_0x26d263['name'];}else _0x381d94['set'](_0x26d263['selection'],_0x26d263);}),Array[_0x568bce(0x444)](_0x381d94[_0x568bce(0x3ef)]());}function _0x1999(_0x2722fd,_0xdf3013){const _0x515a6b=_0x515a();return _0x1999=function(_0x199927,_0x11f5b6){_0x199927=_0x199927-0x1b0;let _0x372ef4=_0x515a6b[_0x199927];return _0x372ef4;},_0x1999(_0x2722fd,_0xdf3013);}var A=function(){const _0x1dc758=_0x48c788;return A=Object['assign']||function(_0x2367d4){const _0x1accec=_0x1999;for(var _0x493e45,_0x3c9ec6=0x1,_0x3c0819=arguments[_0x1accec(0x3c7)];_0x3c9ec6<_0x3c0819;_0x3c9ec6++){_0x493e45=arguments[_0x3c9ec6];for(var _0x350efe in _0x493e45)Object[_0x1accec(0x339)][_0x1accec(0x1fc)][_0x1accec(0x413)](_0x493e45,_0x350efe)&&(_0x2367d4[_0x350efe]=_0x493e45[_0x350efe]);}return _0x2367d4;},A[_0x1dc758(0x321)](this,arguments);},ur=function(_0x2b8287,_0x2f13a9){const _0x345e0c=_0x48c788;var _0x25578a={};for(var _0x5e1845 in _0x2b8287)Object[_0x345e0c(0x339)][_0x345e0c(0x1fc)][_0x345e0c(0x413)](_0x2b8287,_0x5e1845)&&_0x2f13a9[_0x345e0c(0x386)](_0x5e1845)<0x0&&(_0x25578a[_0x5e1845]=_0x2b8287[_0x5e1845]);if(_0x2b8287!=null&&typeof Object['getOwnPropertySymbols']==_0x345e0c(0x45e)){for(var _0x436623=0x0,_0x5e1845=Object[_0x345e0c(0x2c0)](_0x2b8287);_0x436623<_0x5e1845[_0x345e0c(0x3c7)];_0x436623++)_0x2f13a9[_0x345e0c(0x386)](_0x5e1845[_0x436623])<0x0&&Object[_0x345e0c(0x339)]['propertyIsEnumerable'][_0x345e0c(0x413)](_0x2b8287,_0x5e1845[_0x436623])&&(_0x25578a[_0x5e1845[_0x436623]]=_0x2b8287[_0x5e1845[_0x436623]]);}return _0x25578a;},yt=_0x1302f5(function(_0xae9627,_0x325e5b){const _0x20aedc=_0x48c788;var _0x1b3501=_0xae9627[_0x20aedc(0x330)],_0x1cd6ab=_0xae9627['id'],_0x631426=_0xae9627[_0x20aedc(0x1cb)],_0x7527c8=_0xae9627[_0x20aedc(0x3e2)],_0x1510cc=ur(_0xae9627,[_0x20aedc(0x330),'id',_0x20aedc(0x1cb),_0x20aedc(0x3e2)]),_0x176e70=_0x20aedc(0x3c5)[_0x20aedc(0x37f)](_0x1cd6ab,'\x20')[_0x20aedc(0x37f)](_0x631426||'')['trim'](),_0x175621=_0x4b43df('_'[_0x20aedc(0x37f)](gr()));return Ds(_0x1b3501,''[_0x20aedc(0x37f)](_0x1cd6ab),{'defIds':_0x1b3501['defIds'],'idSuffix':_0x175621['current']},A({'ref':_0x325e5b,'className':_0x176e70},_0x1510cc),_0x7527c8);});function Ds(_0x2f793e,_0x5c540e,_0xb00431,_0x4d31b2,_0x246da5){const _0x3617a2=_0x48c788;return _0x732030(_0x2f793e[_0x3617a2(0x203)],A(A({'key':_0x5c540e},dr(_0x2f793e,_0xb00431,_0x246da5)),_0x4d31b2),(fr(_0x2f793e,_0xb00431)['children']||[])[_0x3617a2(0x3e8)](function(_0x199e86,_0x37c8e7){const _0x3c1c38=_0x3617a2;return Ds(_0x199e86,''[_0x3c1c38(0x37f)](_0x5c540e,'-')[_0x3c1c38(0x37f)](_0x2f793e[_0x3c1c38(0x203)],'-')[_0x3c1c38(0x37f)](_0x37c8e7),_0xb00431,void 0x0,_0x246da5);}));}function dr(_0xc8ec44,_0x518b1c,_0x4df4e6){const _0x11711d=_0x48c788;var _0x595e40=A({},_0xc8ec44['attrs']);_0x4df4e6!=null&&_0x4df4e6['colorChannel1']&&_0x595e40[_0x11711d(0x403)]===_0x11711d(0x3d0)&&(_0x595e40[_0x11711d(0x403)]=_0x4df4e6['colorChannel1']);var _0x4a3336=_0x518b1c['defIds'];return!_0x4a3336||_0x4a3336[_0x11711d(0x3c7)]===0x0||(_0xc8ec44[_0x11711d(0x203)]===_0x11711d(0x278)&&_0x595e40[_0x11711d(0x2e5)]&&(_0x595e40['xlink:href']=_0x595e40[_0x11711d(0x2e5)]+_0x518b1c['idSuffix']),Object[_0x11711d(0x247)](_0x595e40)[_0x11711d(0x244)](function(_0x52033d){const _0x2bc626=_0x11711d;var _0xa66d97=_0x52033d[0x0],_0xfcfbb5=_0x52033d[0x1];typeof _0xfcfbb5==_0x2bc626(0x484)&&(_0x595e40[_0xa66d97]=_0xfcfbb5['replace'](/url\(#(.*)\)/,_0x2bc626(0x264)[_0x2bc626(0x37f)](_0x518b1c[_0x2bc626(0x25b)],')')));})),_0x595e40;}function fr(_0x8d3524,_0x431f36){const _0x49ccae=_0x48c788;var _0x10a3c5,_0x29cb8e=_0x431f36[_0x49ccae(0x21a)];return!_0x29cb8e||_0x29cb8e[_0x49ccae(0x3c7)]===0x0?_0x8d3524:_0x8d3524[_0x49ccae(0x203)]===_0x49ccae(0x3d4)&&(!((_0x10a3c5=_0x8d3524[_0x49ccae(0x4a6)])===null||_0x10a3c5===void 0x0)&&_0x10a3c5[_0x49ccae(0x3c7)])?A(A({},_0x8d3524),{'children':_0x8d3524[_0x49ccae(0x4a6)]['map'](function(_0x22806b){const _0x4310ea=_0x49ccae;return typeof _0x22806b[_0x4310ea(0x44d)]['id']=='string'&&_0x29cb8e&&_0x29cb8e[_0x4310ea(0x386)](_0x22806b['attrs']['id'])>-0x1?A(A({},_0x22806b),{'attrs':A(A({},_0x22806b[_0x4310ea(0x44d)]),{'id':_0x22806b['attrs']['id']+_0x431f36[_0x4310ea(0x25b)]})}):_0x22806b;})}):_0x8d3524;}function gr(){const _0x327e74=_0x48c788;return Math[_0x327e74(0x258)]()['toString'](0x24)[_0x327e74(0x394)](0x2,0x8);}yt[_0x48c788(0x2be)]=_0x48c788(0x30d);var mr={'tag':_0x48c788(0x20f),'attrs':{'fill':_0x48c788(0x49c),'viewBox':_0x48c788(0x49b),'width':_0x48c788(0x243),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x48c788(0x2e6)},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'stroke':'currentColor','d':_0x48c788(0x1e8),'strokeLinecap':_0x48c788(0x46b),'strokeLinejoin':_0x48c788(0x46b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x48c788(0x478),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'fill':_0x48c788(0x48a),'d':_0x48c788(0x1b7)}}]}]}],'defIds':[_0x48c788(0x241)]},ws=_0x1302f5(function(_0xfce199,_0x1065c4){const _0x12e0f3=_0x48c788;return _0x732030(yt,Object[_0x12e0f3(0x38f)]({},_0xfce199,{'id':_0x12e0f3(0x459),'ref':_0x1065c4,'icon':mr}));});ws[_0x48c788(0x2be)]=_0x48c788(0x2a3);var Sr={'tag':_0x48c788(0x20f),'attrs':{'fill':_0x48c788(0x49c),'viewBox':_0x48c788(0x428),'width':_0x48c788(0x243),'height':_0x48c788(0x243)},'children':[{'tag':'g','attrs':{'clipPath':_0x48c788(0x1e4)},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'stroke':_0x48c788(0x27a),'d':'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','strokeLinecap':'round','strokeLinejoin':_0x48c788(0x46b),'strokeWidth':1.2}}]},{'tag':_0x48c788(0x3d4),'attrs':{},'children':[{'tag':_0x48c788(0x478),'attrs':{'id':_0x48c788(0x35f)},'children':[{'tag':_0x48c788(0x1c0),'attrs':{'fill':_0x48c788(0x48a),'d':_0x48c788(0x1b7),'transform':_0x48c788(0x3ab)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ps=_0x1302f5(function(_0x47ab56,_0x5a1ec6){const _0x12f230=_0x48c788;return _0x732030(yt,Object[_0x12f230(0x38f)]({},_0x47ab56,{'id':'on-line-single','ref':_0x5a1ec6,'icon':Sr}));});Ps[_0x48c788(0x2be)]=_0x48c788(0x239);const vr='univer-online-status-icon',pr=_0x48c788(0x1db),Ir='univer-online-status',Er=_0x48c788(0x3ed),Cr=_0x48c788(0x47b),ve={'onlineStatusIcon':vr,'onlineStatusTitle':pr,'onlineStatus':Ir,'online':Er,'offline':Cr};function br(_0x239998){const _0x285600=_0x48c788;switch(_0x239998){case P[_0x285600(0x214)]:return _0x285600(0x370);case P[_0x285600(0x2ec)]:return'collabStatus.conflict';case P[_0x285600(0x29a)]:return _0x285600(0x4d8);case P[_0x285600(0x43a)]:return _0x285600(0x3d8);case P['PENDING']:case P['AWAITING']:case P[_0x285600(0x45a)]:return'collabStatus.syncing';case P['SYNCED']:return _0x285600(0x43d);}}function Rr(_0xd09431){const _0x3cdd99=_0x48c788,{status$:_0x13dbcb}=_0xd09431,_0x30b1c5=_0x36db5c(_0x13dbcb,P[_0x3cdd99(0x43a)]),_0x413443=_0x34cfdc(_0x7ef8c9),_0x5b3e2a=_0x30b1c5!==P['OFFLINE'],_0x593578=_0x413443['t'](br(_0x30b1c5)),_0x2174a6=_0x37250f(ve[_0x3cdd99(0x317)],{[ve['online']]:_0x5b3e2a,[ve['offline']]:!_0x5b3e2a}),_0x4e0057=_0x5b3e2a?_0x537ca1['createElement'](Ps,null):_0x537ca1['createElement'](ws,null);return _0x537ca1[_0x3cdd99(0x230)]('div',{'className':_0x2174a6},_0x537ca1[_0x3cdd99(0x230)](_0x3cdd99(0x311),{'className':ve[_0x3cdd99(0x23a)]},_0x4e0057),_0x537ca1[_0x3cdd99(0x230)]('div',{'className':ve[_0x3cdd99(0x368)]},_0x593578));}var Tr=Object['defineProperty'],Or=Object['getOwnPropertyDescriptor'],Dr=(_0x46faa4,_0x348477,_0x14bf99,_0x3f2ffc)=>{const _0x28070c=_0x48c788;for(var _0x12b9fe=_0x3f2ffc>0x1?void 0x0:_0x3f2ffc?Or(_0x348477,_0x14bf99):_0x348477,_0x5a01a8=_0x46faa4[_0x28070c(0x3c7)]-0x1,_0x31a073;_0x5a01a8>=0x0;_0x5a01a8--)(_0x31a073=_0x46faa4[_0x5a01a8])&&(_0x12b9fe=(_0x3f2ffc?_0x31a073(_0x348477,_0x14bf99,_0x12b9fe):_0x31a073(_0x12b9fe))||_0x12b9fe);return _0x3f2ffc&&_0x12b9fe&&Tr(_0x348477,_0x14bf99,_0x12b9fe),_0x12b9fe;},Ae=(_0x4e4e48,_0x3c2d26)=>(_0x54e85f,_0xecaad0)=>_0x3c2d26(_0x54e85f,_0xecaad0,_0x4e4e48);let je=class extends _0x5de86a{constructor(_0x312687,_0x32b041,_0x304733,_0x5b794f){const _0x4dba21=_0x48c788;super(),l(this,_0x4dba21(0x1ca),new _0xac9643(P[_0x4dba21(0x43a)])),(this['_univerInstanceService']=_0x312687,this[_0x4dba21(0x375)]=_0x32b041,this[_0x4dba21(0x2e1)]=_0x304733,this[_0x4dba21(0x346)]=_0x5b794f,this[_0x4dba21(0x2a9)](),this[_0x4dba21(0x3e4)]());}['_initStatusComponent'](){const _0x27edc8=_0x48c788;this[_0x27edc8(0x3e7)](this['_uiPartsService'][_0x27edc8(0x2b3)](_0x2ba420[_0x27edc8(0x253)],()=>_0x5168f0(wr({'status$':this[_0x27edc8(0x1ca)][_0x27edc8(0x1ec)]()}),this[_0x27edc8(0x2e1)])));}[_0x48c788(0x3e4)](){const _0x137ec2=_0x48c788;this[_0x137ec2(0x3e7)](_0x308092(this['_univerInstanceService'][_0x137ec2(0x4ae)][_0x137ec2(0x3bd)](_0x52b39c(()=>{const _0x4f2fcd=_0x137ec2,_0x3de06b=this[_0x4f2fcd(0x38c)]['getFocusedUnit']();return _0x3de06b?this[_0x4f2fcd(0x346)][_0x4f2fcd(0x36d)](_0x3de06b[_0x4f2fcd(0x451)]()):_0x5aa699(null);}),_0x52b39c(_0x9e1ade=>_0x9e1ade?_0x9e1ade[_0x137ec2(0x44b)]:_0x5aa699(P[_0x137ec2(0x43a)])))['subscribe'](_0x155b96=>{const _0x11c7a1=_0x137ec2;this[_0x11c7a1(0x1ca)][_0x11c7a1(0x325)](_0x155b96);})));}};je=Dr([_0x4bcad5(_0xba774d['Starting'],je),Ae(0x0,_0x5db99b),Ae(0x1,_0x2d3342),Ae(0x2,_0x1df0bc(_0x1883e3)),Ae(0x3,_0x1df0bc(Ee))],je);function wr(_0x1fa64d){const {status$:_0x520483}=_0x1fa64d;return function(){const _0x5987b6=_0x1999;return _0x537ca1[_0x5987b6(0x230)](Rr,{'status$':_0x520483});};}const Ns=_0x4e2518(_0x48c788(0x49a));var Pr=Object[_0x48c788(0x299)],Nr=Object[_0x48c788(0x2bd)],Mr=(_0x1fdbf0,_0x1a9a33,_0x1b8bb7,_0x51c615)=>{const _0x309e4d=_0x48c788;for(var _0x5049e5=_0x51c615>0x1?void 0x0:_0x51c615?Nr(_0x1a9a33,_0x1b8bb7):_0x1a9a33,_0x29379c=_0x1fdbf0[_0x309e4d(0x3c7)]-0x1,_0x49764f;_0x29379c>=0x0;_0x29379c--)(_0x49764f=_0x1fdbf0[_0x29379c])&&(_0x5049e5=(_0x51c615?_0x49764f(_0x1a9a33,_0x1b8bb7,_0x5049e5):_0x49764f(_0x5049e5))||_0x5049e5);return _0x51c615&&_0x5049e5&&Pr(_0x1a9a33,_0x1b8bb7,_0x5049e5),_0x5049e5;},ce=(_0x455987,_0x32fc03)=>(_0x51e4ef,_0x410088)=>_0x32fc03(_0x51e4ef,_0x410088,_0x455987);let He=class extends _0x4f9c78{constructor(_0x2e8d60,_0x47f45b,_0x5524f8,_0x2ac9a5,_0x2aaf52,_0x42a868){const _0xc41387=_0x48c788;super(),this[_0xc41387(0x351)]=_0x2e8d60,this['_logService']=_0x47f45b,this['_commandService']=_0x5524f8,this[_0xc41387(0x1eb)]=_0x2ac9a5,this['_snapshotService']=_0x2aaf52,_0x42a868?_0x42a868==null||_0x42a868[_0xc41387(0x31d)]()['then'](()=>this[_0xc41387(0x340)]()):(this[_0xc41387(0x2ad)][_0xc41387(0x1b0)](_0xc41387(0x398),_0xc41387(0x281)),this[_0xc41387(0x340)]());}async[_0x48c788(0x340)](){const _0x136aa7=_0x48c788,_0x21b6c8=this[_0x136aa7(0x351)][_0x136aa7(0x240)](_0x136aa7(0x272)),_0x2430b5=this[_0x136aa7(0x351)]['getParam'](_0x136aa7(0x45b));if(!_0x21b6c8||!_0x2430b5){this['_logService'][_0x136aa7(0x1b0)](_0x136aa7(0x398),_0x136aa7(0x48d));return;}switch(Number(_0x2430b5)){case H['UNIVER_SHEET']:{const _0x4cc55d=await this['_loadSheet'](_0x21b6c8);this[_0x136aa7(0x32f)](_0x4cc55d);break;}case H['UNIVER_DOC']:{await this[_0x136aa7(0x2c8)](_0x21b6c8);break;}default:{this[_0x136aa7(0x2ad)][_0x136aa7(0x1b3)](_0x136aa7(0x398),_0x136aa7(0x2e2));break;}}}async[_0x48c788(0x32f)](_0x2e0544){const _0x253028=_0x48c788;await this['_updateSubUnitFromURLParams'](_0x2e0544),_0x2e0544[_0x253028(0x401)][_0x253028(0x3bd)](_0x219692(this['dispose$']))['subscribe'](_0x284df0=>{_0x284df0&&this['_updateURLWithCurrentState'](_0x284df0);}),this[_0x253028(0x351)][_0x253028(0x215)][_0x253028(0x3bd)](_0x219692(this[_0x253028(0x4c9)]))[_0x253028(0x237)](()=>this['_updateSubUnitFromURLParams'](_0x2e0544));}['_updateURLWithCurrentState'](_0x241066,_0x8831ba=!0x1){const _0x1bda8d=_0x48c788,_0x2ee356=this[_0x1bda8d(0x351)][_0x1bda8d(0x240)](_0x1bda8d(0x226));_0x241066[_0x1bda8d(0x45f)]()!==_0x2ee356&&this[_0x1bda8d(0x351)]['setParam'](_0x1bda8d(0x226),_0x241066[_0x1bda8d(0x45f)](),_0x8831ba);}async[_0x48c788(0x4c2)](_0xbd8b31){const _0x2a7c0c=_0x48c788,_0x9a5a8b=this[_0x2a7c0c(0x351)][_0x2a7c0c(0x240)]('subunit');if(!_0x9a5a8b||!_0xbd8b31[_0x2a7c0c(0x416)](_0x9a5a8b)){this[_0x2a7c0c(0x3a7)](_0xbd8b31['getActiveSheet'](),!0x0);return;}_0xbd8b31[_0x2a7c0c(0x354)]()[_0x2a7c0c(0x45f)]()!==_0x9a5a8b&&await this[_0x2a7c0c(0x1e9)][_0x2a7c0c(0x2df)](_0x27110d['id'],{'unitId':_0xbd8b31[_0x2a7c0c(0x451)](),'subUnitId':_0x9a5a8b});}async[_0x48c788(0x397)](_0x13d1ea){const _0x458978=_0x48c788;let _0x173568=0x0;const _0x547ec2=await this[_0x458978(0x1eb)][_0x458978(0x256)](_0x13d1ea);return _0x547ec2&&(_0x547ec2['awaitingChangeset']||_0x547ec2[_0x458978(0x3b5)][_0x458978(0x3c7)]!==0x0)&&(_0x173568=_0x547ec2['rev']),_0x173568===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x458978(0x35a)),this['_snapshotService'][_0x458978(0x212)](_0x13d1ea,_0x173568);}async['_loadDoc'](_0x2cfd9a){const _0x2ce0b0=_0x48c788;let _0x1f2d52=0x0;const _0x52e693=await this[_0x2ce0b0(0x1eb)][_0x2ce0b0(0x256)](_0x2cfd9a);return _0x52e693&&(_0x52e693['awaitingChangeset']||_0x52e693[_0x2ce0b0(0x3b5)]['length']!==0x0)&&(_0x1f2d52=_0x52e693[_0x2ce0b0(0x4c7)]),_0x1f2d52===0x0&&this[_0x2ce0b0(0x2ad)][_0x2ce0b0(0x1b0)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadDoc'](_0x2cfd9a,_0x1f2d52);}};He=Mr([_0x4bcad5(_0xba774d[_0x48c788(0x48c)],He),ce(0x0,Ns),ce(0x1,_0xcf8387),ce(0x2,_0x26b7b1),ce(0x3,_0x1df0bc(D)),ce(0x4,_0x1df0bc(_0x3ae0d3)),ce(0x5,_0x9cd523(_0x356d7e))],He);var Ar=Object['defineProperty'],yr=Object[_0x48c788(0x2bd)],Ur=(_0xf42cb9,_0x3b225b,_0x40eb48,_0x5a39ab)=>{const _0x5bdef7=_0x48c788;for(var _0x2c118d=_0x5a39ab>0x1?void 0x0:_0x5a39ab?yr(_0x3b225b,_0x40eb48):_0x3b225b,_0x1e0cdc=_0xf42cb9[_0x5bdef7(0x3c7)]-0x1,_0x185e29;_0x1e0cdc>=0x0;_0x1e0cdc--)(_0x185e29=_0xf42cb9[_0x1e0cdc])&&(_0x2c118d=(_0x5a39ab?_0x185e29(_0x3b225b,_0x40eb48,_0x2c118d):_0x185e29(_0x2c118d))||_0x2c118d);return _0x5a39ab&&_0x2c118d&&Ar(_0x3b225b,_0x40eb48,_0x2c118d),_0x2c118d;},Zt=(_0x176351,_0x5dcc28)=>(_0x13601a,_0x46fbe4)=>_0x5dcc28(_0x13601a,_0x46fbe4,_0x176351);const Lr='DEFAULT_FILE_NAME',$r=_0x48c788(0x2dc);let xe=class extends _0x5de86a{constructor(_0x296329,_0x2da230){super(),this['_univerInstanceService']=_0x296329,this['_configService']=_0x2da230,this['_init']();}[_0x48c788(0x340)](){const _0x7bfd06=_0x48c788;this[_0x7bfd06(0x3e7)](_0x308092(this[_0x7bfd06(0x38c)][_0x7bfd06(0x4ae)][_0x7bfd06(0x237)](()=>{const _0x246a30=_0x7bfd06;var _0x291627;const _0x2b0c5b=this[_0x246a30(0x38c)][_0x246a30(0x1d2)]();let _0x4b88e0=(_0x291627=this[_0x246a30(0x35d)][_0x246a30(0x2d9)](Lr))!=null?_0x291627:$r;_0x2b0c5b instanceof _0x55773e&&(_0x4b88e0=_0x2b0c5b[_0x246a30(0x2e3)]),document[_0x246a30(0x255)]=_0x4b88e0;})));}};xe=Ur([_0x4bcad5(_0xba774d[_0x48c788(0x1f5)],xe),Zt(0x0,_0x5db99b),Zt(0x1,_0x475c15)],xe);var jr=Object['defineProperty'],Hr=Object[_0x48c788(0x2bd)],xr=(_0x5de854,_0x5295b2,_0x2550c1,_0x2ce56b)=>{const _0x5d2fef=_0x48c788;for(var _0x55475c=_0x2ce56b>0x1?void 0x0:_0x2ce56b?Hr(_0x5295b2,_0x2550c1):_0x5295b2,_0x52eb83=_0x5de854[_0x5d2fef(0x3c7)]-0x1,_0xe6292f;_0x52eb83>=0x0;_0x52eb83--)(_0xe6292f=_0x5de854[_0x52eb83])&&(_0x55475c=(_0x2ce56b?_0xe6292f(_0x5295b2,_0x2550c1,_0x55475c):_0xe6292f(_0x55475c))||_0x55475c);return _0x2ce56b&&_0x55475c&&jr(_0x5295b2,_0x2550c1,_0x55475c),_0x55475c;},Qt=(_0x5d5521,_0x4a65cd)=>(_0x48f11e,_0xfa40f8)=>_0x4a65cd(_0x48f11e,_0xfa40f8,_0x5d5521);let St=class{constructor(_0x573264,_0x8df043){const _0x47171b=_0x48c788;this[_0x47171b(0x35d)]=_0x573264,this[_0x47171b(0x33f)]=_0x8df043;}async[_0x48c788(0x47e)](_0x13ffdc,_0x5119f2){const _0x427ba8=_0x48c788;var _0x58eee4;const {unitID:_0x45c0bd,type:_0x3f5101,revision:_0x1b0ddd=0x0}=_0x5119f2,_0xe8df43=this[_0x427ba8(0x285)]()+'/'+_0x3f5101+_0x427ba8(0x327)+_0x45c0bd+_0x427ba8(0x2b2)+(_0x1b0ddd===0x1?0x0:_0x1b0ddd),_0x47e5eb=(await this[_0x427ba8(0x33f)]['get'](_0xe8df43))[_0x427ba8(0x1ef)],_0xfa88ad=(_0x58eee4=_0x47e5eb[_0x427ba8(0x477)])==null?void 0x0:_0x58eee4[_0x427ba8(0x2c1)];if(_0xfa88ad){const _0x3e5170=_0xfa88ad==null?void 0x0:_0xfa88ad['originalMeta'],_0x68b94d=_0x3e85fc[_0x427ba8(0x301)](_0x2a2404(_0x3e5170));_0xfa88ad[_0x427ba8(0x40f)]=_0x68b94d,Object[_0x427ba8(0x247)](_0xfa88ad[_0x427ba8(0x229)])[_0x427ba8(0x244)](([,_0x41a177])=>{const _0x5241d1=_0x427ba8,_0x2282f4=_0x41a177[_0x5241d1(0x40f)],_0x242583=_0x3e85fc[_0x5241d1(0x301)](_0x2a2404(_0x2282f4));_0x41a177[_0x5241d1(0x40f)]=_0x242583;});}return _0x47e5eb;}async[_0x48c788(0x4d9)](_0x1d5de1,_0x7a6dcd){const _0x5d2c37=_0x48c788,{unitID:_0x10ad4c,type:_0x28de84,blockID:_0x42dc23}=_0x7a6dcd,_0x50de77=this[_0x5d2c37(0x30c)]()+'/'+_0x28de84+_0x5d2c37(0x327)+_0x10ad4c+_0x5d2c37(0x4a8)+_0x42dc23;return(await this[_0x5d2c37(0x33f)][_0x5d2c37(0x4ce)](_0x50de77))[_0x5d2c37(0x1ef)];}async[_0x48c788(0x4bc)](_0x46c29c,_0x576009){const _0x36bf84=_0x48c788,{unitID:_0x4a8b9e,type:_0x37dc18,from:_0x1f60b8,to:_0x390c0b}=_0x576009,_0x3abaa1=this[_0x36bf84(0x30c)]()+'/'+_0x37dc18+'/unit/'+_0x4a8b9e+_0x36bf84(0x433)+_0x1f60b8+_0x36bf84(0x3e1)+_0x390c0b;return(await this['_httpService'][_0x36bf84(0x4ce)](_0x3abaa1))['body'];}[_0x48c788(0x285)](){const _0x452044=_0x48c788;var _0x593375;return(_0x593375=this[_0x452044(0x35d)][_0x452044(0x2d9)](Yi))!=null?_0x593375:this[_0x452044(0x30c)]();}['_getAPIPrefix'](){const _0x3d5b75=_0x48c788;var _0x2a1784;return(_0x2a1784=this[_0x3d5b75(0x35d)][_0x3d5b75(0x2d9)](Wi))!=null?_0x2a1784:Gi;}async['getResourcesRequest'](_0x2a0285,_0x31a5c4){const _0x22eaac=_0x48c788,_0x1b51f5=_0x22eaac(0x483)+_0x31a5c4[_0x22eaac(0x45b)]+_0x22eaac(0x327)+_0x31a5c4[_0x22eaac(0x2d3)]+_0x22eaac(0x33a);return(await this['_httpService']['get'](_0x1b51f5,{'params':{'resourceId':JSON[_0x22eaac(0x1ce)](_0x31a5c4[_0x22eaac(0x2d5)])}}))[_0x22eaac(0x1ef)];}[_0x48c788(0x46d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x48c788(0x25f)](){const _0x5303b4=_0x48c788;throw new Error(_0x5303b4(0x49f));}['saveChangeset'](){const _0x3087d7=_0x48c788;throw new Error(_0x3087d7(0x49f));}};St=xr([Qt(0x0,_0x475c15),Qt(0x1,_0x1df0bc(_0x49edd2))],St);var Fr=Object[_0x48c788(0x299)],kr=Object[_0x48c788(0x2bd)],Br=(_0x3f2cf2,_0x432c6a,_0x25e1fc,_0x3778c1)=>{const _0x31eb20=_0x48c788;for(var _0x21406e=_0x3778c1>0x1?void 0x0:_0x3778c1?kr(_0x432c6a,_0x25e1fc):_0x432c6a,_0x2a0ec4=_0x3f2cf2[_0x31eb20(0x3c7)]-0x1,_0xe356e1;_0x2a0ec4>=0x0;_0x2a0ec4--)(_0xe356e1=_0x3f2cf2[_0x2a0ec4])&&(_0x21406e=(_0x3778c1?_0xe356e1(_0x432c6a,_0x25e1fc,_0x21406e):_0xe356e1(_0x21406e))||_0x21406e);return _0x3778c1&&_0x21406e&&Fr(_0x432c6a,_0x25e1fc,_0x21406e),_0x21406e;},pe=(_0x285064,_0xd941eb)=>(_0x36f4b0,_0x371319)=>_0xd941eb(_0x36f4b0,_0x371319,_0x285064);let vt=class extends _0x2d3c98{constructor(_0x3538f3,_0x43a9ed,_0x3e53af,_0x402835,_0x287f14){const _0x33e477=_0x48c788;super(_0x3538f3,_0x43a9ed,_0x3e53af),this[_0x33e477(0x231)]=_0x402835,this[_0x33e477(0x2ad)]=_0x287f14;}['transformUndoRedo'](_0x2986f6,_0x45c3e3){const _0x4dbc7a=_0x48c788,_0x307ace=this[_0x4dbc7a(0x1d7)](_0x2986f6);if(_0x307ace)try{const _0x44affb=this[_0x4dbc7a(0x38e)](_0x307ace,_0x45c3e3);this[_0x4dbc7a(0x3c9)](_0x2986f6,_0x44affb);}catch(_0x20d379){this['_logService'][_0x4dbc7a(0x1b3)](_0x4dbc7a(0x331),_0x20d379),this[_0x4dbc7a(0x387)](_0x2986f6);}const _0x2ce57f=this['_getRedoStack'](_0x2986f6);if(_0x2ce57f)try{const _0x262a3c=this[_0x4dbc7a(0x38e)](_0x2ce57f,_0x45c3e3);this['_substituteRedoStack'](_0x2986f6,_0x262a3c);}catch(_0x5a8c34){this['_logService'][_0x4dbc7a(0x1b3)](_0x5a8c34),this[_0x4dbc7a(0x33c)](_0x2986f6);}}[_0x48c788(0x387)](_0x1c0f80){const _0xae04ed=_0x48c788,_0x598abc=this[_0xae04ed(0x1d7)](_0x1c0f80);_0x598abc&&(_0x598abc['length']=0x0,this[_0xae04ed(0x3e6)]());}[_0x48c788(0x33c)](_0x323571){const _0x335908=_0x48c788,_0x342d40=this[_0x335908(0x23c)](_0x323571);_0x342d40&&(_0x342d40[_0x335908(0x3c7)]=0x0,this[_0x335908(0x3e6)]());}[_0x48c788(0x3c9)](_0x12ea17,_0xebd923){const _0x2ed85f=_0x48c788;this[_0x2ed85f(0x209)]['set'](_0x12ea17,_0xebd923),this[_0x2ed85f(0x3e6)]();}[_0x48c788(0x382)](_0x18a810,_0x1a6c4a){const _0x431d6d=_0x48c788;this[_0x431d6d(0x4b2)][_0x431d6d(0x25a)](_0x18a810,_0x1a6c4a),this[_0x431d6d(0x3e6)]();}[_0x48c788(0x38e)](_0x6f299d,_0x2a1bf2){const _0x2bf3e1=_0x48c788,_0x28167e=[];let _0x4fe984=_0x2a1bf2,_0x31a2ce=_0x2a1bf2;for(let _0xbcfb61=_0x6f299d[_0x2bf3e1(0x3c7)]-0x1;_0xbcfb61>=0x0;_0xbcfb61--){const {unitID:_0x538fb3,undoMutations:_0x5a192f,redoMutations:_0x89a157}=_0x6f299d[_0xbcfb61],_0x432a52=this[_0x2bf3e1(0x231)][_0x2bf3e1(0x313)](_0x4fe984,_0x5a192f),_0x55bdd7=this[_0x2bf3e1(0x231)][_0x2bf3e1(0x313)](_0x31a2ce,_0x89a157);if(_0x120eeb(_0x432a52)||_0x120eeb(_0x55bdd7)){this[_0x2bf3e1(0x2ad)][_0x2bf3e1(0x1b3)](_0x2bf3e1(0x331),_0x2bf3e1(0x3fb),_0x432a52,_0x55bdd7);break;}_0x4fe984=_0x432a52[_0x2bf3e1(0x3a9)],_0x31a2ce=_0x55bdd7[_0x2bf3e1(0x3a9)],_0x28167e[_0x2bf3e1(0x3ae)]({'unitID':_0x538fb3,'undoMutations':_0x432a52[_0x2bf3e1(0x1bc)],'redoMutations':_0x55bdd7['m2Prime']});}return _0x28167e[_0x2bf3e1(0x24c)]();}};vt=Br([pe(0x0,_0x5db99b),pe(0x1,_0x26b7b1),pe(0x2,_0x4c77f7),pe(0x3,_0x56e350),pe(0x4,_0xcf8387)],vt);class Vr extends _0x4f9c78{constructor(){const _0x4c9caf=_0x48c788;super(),l(this,'urlChange$'),this[_0x4c9caf(0x215)]=_0x3afa96(window,_0x4c9caf(0x2ff))[_0x4c9caf(0x3bd)](_0x219692(this[_0x4c9caf(0x4c9)]),_0x5bbc32(0x1),_0x58db52(void 0x0));}[_0x48c788(0x492)](_0x41ddb5,_0x1978a9,_0x2df3aa=!0x1){const _0x59e14a=_0x48c788,_0x147314=new URL(window[_0x59e14a(0x2a2)][_0x59e14a(0x29d)]);_0x147314[_0x59e14a(0x422)][_0x59e14a(0x25a)](_0x41ddb5,_0x1978a9),_0x2df3aa?window[_0x59e14a(0x47d)][_0x59e14a(0x303)]('','',_0x147314[_0x59e14a(0x1e6)]()):window[_0x59e14a(0x47d)][_0x59e14a(0x4bf)]('','',_0x147314['toString']());}[_0x48c788(0x48f)](_0x48295a,_0x393afe=!0x1){const _0x503848=_0x48c788,_0x28c732=new URL(window[_0x503848(0x2a2)][_0x503848(0x29d)]);_0x28c732[_0x503848(0x422)][_0x503848(0x388)](_0x48295a),_0x393afe?window[_0x503848(0x47d)]['replaceState']('','',_0x28c732[_0x503848(0x1e6)]()):window[_0x503848(0x47d)]['pushState']('','',_0x28c732[_0x503848(0x1e6)]());}['getParam'](_0x49d719){const _0x578a02=_0x48c788;var _0x29d009;return(_0x29d009=new URL(window[_0x578a02(0x2a2)][_0x578a02(0x29d)])[_0x578a02(0x422)][_0x578a02(0x4ce)](_0x49d719))!=null?_0x29d009:void 0x0;}}const nt=_0x48c788(0x1c2),Wr='collab-text-range-',ye=0x6,Gr=1.5,rt=0x4,Yr=1.5,Kr=_0x48c788(0x2cc);class Xr{constructor(_0xa1ed61,_0x561504,_0x1b3d89,_0x1401c5){const _0x10db7b=_0x48c788;l(this,_0x10db7b(0x4a2),[]),l(this,'_anchor',null),l(this,_0x10db7b(0x348),null),l(this,_0x10db7b(0x41d),null),l(this,_0x10db7b(0x29b),null),l(this,_0x10db7b(0x3c3),null),(this[_0x10db7b(0x3fa)]=_0xa1ed61,this[_0x10db7b(0x359)]=_0x561504,this[_0x10db7b(0x23b)]=_0x1b3d89,this[_0x10db7b(0x24e)]=_0x1401c5,this['_render']());}set[_0x48c788(0x1d8)](_0x40dd15){const _0xdd1bc8=_0x48c788;_0x40dd15?(this[_0xdd1bc8(0x41d)]&&this[_0xdd1bc8(0x41d)][_0xdd1bc8(0x1d5)](),this['_textBubble']&&this['_textBubble'][_0xdd1bc8(0x4d1)]()):(this['_anchorDot']&&this[_0xdd1bc8(0x41d)][_0xdd1bc8(0x4d1)](),this[_0xdd1bc8(0x348)]&&this[_0xdd1bc8(0x348)]['hide']());}[_0x48c788(0x46e)](){const _0x1efcaa=_0x48c788;for(const _0x233cbb of this[_0x1efcaa(0x4a2)])_0x233cbb[_0x1efcaa(0x46e)]();this['_textBubble']&&this[_0x1efcaa(0x348)]['dispose'](),this[_0x1efcaa(0x41d)]&&this[_0x1efcaa(0x41d)]['dispose'](),this['_anchor']&&this[_0x1efcaa(0x219)][_0x1efcaa(0x46e)](),this[_0x1efcaa(0x3c3)]&&this[_0x1efcaa(0x3c3)]();}[_0x48c788(0x3dc)](){const _0x456cea=_0x48c788,{_docSkeleton:_0x2f3e00,_document:_0xa35ddc}=this,{color:_0x50df77,name:_0x3b1c6a,ranges:_0x58e542}=this['_cursor'],_0x2607e2=_0xa35ddc['getOffsetConfig'](),{docsLeft:_0x584c35,docsTop:_0x10758e}=_0x2607e2,_0x58566e=new _0x45e74b(_0x2607e2,_0x2f3e00);for(const {startOffset:_0x45f5e7,endOffset:_0x4b0611,collapsed:_0x3ed7b9,isActive:_0x22241d}of _0x58e542){const _0x4a8872=_0x2f3e00['findNodePositionByCharIndex'](_0x45f5e7),_0x2fd192=_0x2f3e00[_0x456cea(0x315)](_0x4b0611);if(_0x22241d){const {contentBoxPointGroup:_0x5903f8}=_0x58566e[_0x456cea(0x25c)](_0x2fd192,_0x2fd192);if(_0x5903f8[_0x456cea(0x3c7)]===0x0)continue;this['_drawAnchor'](_0x50df77,_0x5903f8,_0x584c35,_0x10758e,_0x3b1c6a),this[_0x456cea(0x3c3)]=this['_handleHover']();}if(!_0x3ed7b9){const {contentBoxPointGroup:_0x4e6cf4}=_0x58566e['getRangePointData'](_0x4a8872,_0x2fd192);if(_0x4e6cf4['length']===0x0)continue;this[_0x456cea(0x443)](_0x50df77,_0x4e6cf4,_0x584c35,_0x10758e);}}}[_0x48c788(0x41f)](_0x23ae36,_0x4999a2,_0x3bc7ee,_0x48921c,_0x54214d){const _0x99d472=_0x48c788,_0x185e1d=this[_0x99d472(0x365)](_0x4999a2),{left:_0x4fcccb,top:_0x3930ed,height:_0x55d0f8}=_0x185e1d,_0x1479f3=this[_0x99d472(0x2b4)](),_0x51e39e=Yr/_0x1479f3,_0x2e57f5=new _0x31e76b(nt+_0x41ebb1[_0x99d472(0x2e7)](ye),{'left':_0x4fcccb+_0x3bc7ee-_0x51e39e,'top':_0x3930ed+_0x48921c,'height':_0x55d0f8,'width':Gr,'fill':_0x23ae36||_0x5139a9(_0x375ede[_0x99d472(0x3fd)],0x0),'strokeWidth':_0x51e39e,'stroke':Kr,'evented':!0x0});this[_0x99d472(0x219)]=_0x2e57f5,this[_0x99d472(0x359)]['addObject'](_0x2e57f5,_0x3507b6);const _0x272dc8=new _0x31e76b(nt+_0x41ebb1[_0x99d472(0x2e7)](ye),{'left':_0x4fcccb+_0x3bc7ee-_0x51e39e,'top':_0x3930ed+_0x48921c-rt/0x2,'height':rt,'width':rt,'fill':_0x23ae36||_0x5139a9(_0x375ede[_0x99d472(0x3fd)],0x0),'strokeWidth':0x0,'stroke':_0x23ae36||_0x5139a9(_0x375ede[_0x99d472(0x3fd)],0x0),'evented':!0x1});this[_0x99d472(0x41d)]=_0x272dc8,this[_0x99d472(0x359)][_0x99d472(0x286)](_0x272dc8,_0x3507b6);const _0x3ce4e0=new ze(nt+_0x41ebb1[_0x99d472(0x2e7)](ye),{'left':_0x4fcccb+_0x3bc7ee-_0x51e39e,'top':_0x3930ed+_0x48921c-Oe,'text':_0x54214d,'color':_0x23ae36});this[_0x99d472(0x348)]=_0x3ce4e0,this[_0x99d472(0x359)]['addObject'](_0x3ce4e0,_0x3507b6),this[_0x99d472(0x1d8)]=!0x1;}[_0x48c788(0x467)](){const _0x21420e=_0x48c788,_0x1ef738=this[_0x21420e(0x219)][_0x21420e(0x291)][_0x21420e(0x20d)](()=>{const _0x579f31=_0x21420e;this[_0x579f31(0x1d8)]=!0x0;}),_0x548c26=this['_anchor']['onPointerLeaveObserver'][_0x21420e(0x20d)](()=>{const _0x24bf53=_0x21420e;this[_0x24bf53(0x29b)]&&clearTimeout(this[_0x24bf53(0x29b)]),this[_0x24bf53(0x29b)]=setTimeout(()=>{const _0x41994d=_0x24bf53;this[_0x41994d(0x1d8)]=!0x1;},0x7d0);});return()=>{const _0x256721=_0x21420e;var _0x51681c,_0x5716d2;(_0x51681c=this['_anchor'])==null||_0x51681c['onPointerEnterObserver']['remove'](_0x1ef738),(_0x5716d2=this[_0x256721(0x219)])==null||_0x5716d2[_0x256721(0x3f1)]['remove'](_0x548c26);};}[_0x48c788(0x443)](_0x4c9a6a,_0x78349a,_0x4ad5f6,_0x2563bd){const _0x294729=_0x48c788,_0x2e29be=new _0x4176ec(_0x4c9a6a)[_0x294729(0x3b1)](0.2)[_0x294729(0x3f7)](),_0x1ad242=new _0x4b8859(Wr+_0x41ebb1[_0x294729(0x2e7)](ye),{'pointsGroup':_0x78349a,'fill':_0x2e29be||_0x5139a9(_0x375ede['black'],0.2),'left':_0x4ad5f6,'top':_0x2563bd,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1ad242),this[_0x294729(0x359)][_0x294729(0x286)](_0x1ad242,_0x3507b6);}[_0x48c788(0x365)](_0x11b65c){const _0x229d2b=_0x11b65c[0x0],_0x4b3abe=_0x229d2b[0x0],_0x1c4f85=_0x229d2b[0x2],{x:_0x5da343,y:_0x416326}=_0x4b3abe,{x:_0x3474f5,y:_0x49ec15}=_0x1c4f85;return{'left':_0x5da343,'top':_0x416326,'width':_0x3474f5-_0x5da343,'height':_0x49ec15-_0x416326};}['_getScale'](){const _0x251169=_0x48c788,{scaleX:_0x2c6d8d,scaleY:_0x48bd61}=this[_0x251169(0x359)][_0x251169(0x324)]();return Math[_0x251169(0x249)](_0x2c6d8d,_0x48bd61);}}var Jr=Object[_0x48c788(0x299)],zr=Object[_0x48c788(0x2bd)],qr=(_0x94543c,_0x2021d8,_0x34dadc,_0x1a8a33)=>{const _0x2c81cc=_0x48c788;for(var _0x16dbf9=_0x1a8a33>0x1?void 0x0:_0x1a8a33?zr(_0x2021d8,_0x34dadc):_0x2021d8,_0x155d10=_0x94543c[_0x2c81cc(0x3c7)]-0x1,_0x577f1a;_0x155d10>=0x0;_0x155d10--)(_0x577f1a=_0x94543c[_0x155d10])&&(_0x16dbf9=(_0x1a8a33?_0x577f1a(_0x2021d8,_0x34dadc,_0x16dbf9):_0x577f1a(_0x16dbf9))||_0x16dbf9);return _0x1a8a33&&_0x16dbf9&&Jr(_0x2021d8,_0x34dadc,_0x16dbf9),_0x16dbf9;},Ie=(_0x51e2ef,_0x798979)=>(_0x1f6f8b,_0x30ffcc)=>_0x798979(_0x1f6f8b,_0x30ffcc,_0x51e2ef);let Fe=class extends _0x4f9c78{constructor(_0x16897c,_0x553e4e,_0x3c8b07,_0x3311b3,_0x25e1ca){const _0x173dbb=_0x48c788;super(),l(this,_0x173dbb(0x3da),[]),(this['_collabCursorController']=_0x16897c,this[_0x173dbb(0x38c)]=_0x553e4e,this[_0x173dbb(0x3f8)]=_0x3c8b07,this[_0x173dbb(0x1e3)]=_0x3311b3,this['_themeService']=_0x25e1ca,this[_0x173dbb(0x340)]());}[_0x48c788(0x340)](){const _0x432553=_0x48c788;this[_0x432553(0x1e3)]['currentSkeleton$'][_0x432553(0x3bd)](_0x258fee(this[_0x432553(0x4c9)]),_0x367f49(_0x54c944=>{const _0x21c9ba=_0x432553;if(_0x54c944){const {unitId:_0x8c9e3d}=_0x54c944;return _0x222f4d(this['_collabCursorController'][_0x21c9ba(0x4cd)](_0x8c9e3d),this['_themeService'][_0x21c9ba(0x45c)])[_0x21c9ba(0x3bd)](_0x1262f1(([_0x4fecb2,_0xab00e4])=>({'skeleton':_0x54c944,'cursors':[..._0x4fecb2['values']()]['flatMap'](_0x247b85=>({..._0x247b85,'color':_0xab00e4[_0x247b85[_0x21c9ba(0x295)]]}))})));}return _0x5aa699({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0xf09cac,cursors:_0x398019})=>{const _0x45618d=_0x432553;this[_0x45618d(0x4b7)](),_0xf09cac&&this['_updateCollabCursors'](_0xf09cac[_0x45618d(0x407)],_0x398019);});}[_0x48c788(0x22f)](_0x3e0350,_0x229265){const _0x2425dc=_0x48c788,_0x468695=this[_0x2425dc(0x4aa)]();if(_0x468695==null)return;const {scene:_0x54da54,document:_0x3f941d}=_0x468695,_0x535d64=_0x229265[_0x2425dc(0x3e8)](_0x10ffa6=>new Xr(_0x10ffa6,_0x54da54,_0x3e0350,_0x3f941d));this[_0x2425dc(0x3da)]=_0x535d64;}['_removeCollabCursors'](){const _0x2bcd9f=_0x48c788;this[_0x2bcd9f(0x3da)]['forEach'](_0x729f2e=>_0x729f2e[_0x2bcd9f(0x46e)]()),this[_0x2bcd9f(0x3da)]=[];}['_getDocObject'](){return _0x394f78(this['_univerInstanceService'],this['_renderManagerService']);}};Fe=qr([_0x4bcad5(_0xba774d['Steady'],Fe),Ie(0x0,_0x1df0bc(ue)),Ie(0x1,_0x5db99b),Ie(0x2,_0x205a7a),Ie(0x3,_0x1df0bc(_0x495a4e)),Ie(0x4,_0x1df0bc(_0x58f756))],Fe);var Zr=Object[_0x48c788(0x299)],Qr=Object['getOwnPropertyDescriptor'],eo=(_0x23a13a,_0x31c6a9,_0x164c01,_0xe36094)=>{const _0x435066=_0x48c788;for(var _0xd62053=_0xe36094>0x1?void 0x0:_0xe36094?Qr(_0x31c6a9,_0x164c01):_0x31c6a9,_0x4f1983=_0x23a13a[_0x435066(0x3c7)]-0x1,_0x21d5ee;_0x4f1983>=0x0;_0x4f1983--)(_0x21d5ee=_0x23a13a[_0x4f1983])&&(_0xd62053=(_0xe36094?_0x21d5ee(_0x31c6a9,_0x164c01,_0xd62053):_0x21d5ee(_0xd62053))||_0xd62053);return _0xe36094&&_0xd62053&&Zr(_0x31c6a9,_0x164c01,_0xd62053),_0xd62053;},ot=(_0x339d66,_0x2193f2)=>(_0x3a5d9d,_0x44f1d4)=>_0x2193f2(_0x3a5d9d,_0x44f1d4,_0x339d66);let Ge=class{constructor(_0x10d0c1,_0x2eb89a,_0x297063){const _0x18b27e=_0x48c788;this['_configService']=_0x10d0c1,this[_0x18b27e(0x33f)]=_0x2eb89a,this[_0x18b27e(0x2d8)]=_0x297063,this[_0x18b27e(0x400)]();}[_0x48c788(0x400)](){const _0x4a0a96=_0x48c788;this[_0x4a0a96(0x33f)][_0x4a0a96(0x3f6)]({'priority':0x1,'interceptor':(_0x2fb61e,_0x223cad)=>_0x223cad(_0x2fb61e)[_0x4a0a96(0x3bd)](_0x54d374(async _0x2180ae=>{const _0xec8fb3=_0x4a0a96,_0x5efc32=_0x2180ae;if(_0x5efc32[_0xec8fb3(0x4c6)]===0x191&&window[_0xec8fb3(0x31f)](this['localeService']['t'](_0xec8fb3(0x2f2)))){const _0x466a6f=window['encodeURIComponent'](window[_0xec8fb3(0x2a2)][_0xec8fb3(0x29d)]);window[_0xec8fb3(0x2a2)][_0xec8fb3(0x29d)]=this[_0xec8fb3(0x4b8)]()+_0xec8fb3(0x3b3)+_0x466a6f;}return _0x5efc32;}))});}['_getLoginPath'](){const _0x582cc3=_0x48c788;var _0x250914;return(_0x250914=this[_0x582cc3(0x35d)][_0x582cc3(0x2d9)](cn))!=null?_0x250914:hn;}};Ge=eo([ot(0x0,_0x475c15),ot(0x1,_0x1df0bc(_0x49edd2)),ot(0x2,_0x1df0bc(_0x7ef8c9))],Ge);var to=Object[_0x48c788(0x299)],so=Object[_0x48c788(0x2bd)],io=(_0x1c209b,_0x4ad525,_0xf3806e,_0x187506)=>{for(var _0x4d25c5=_0x187506>0x1?void 0x0:_0x187506?so(_0x4ad525,_0xf3806e):_0x4ad525,_0x3ec73a=_0x1c209b['length']-0x1,_0x577373;_0x3ec73a>=0x0;_0x3ec73a--)(_0x577373=_0x1c209b[_0x3ec73a])&&(_0x4d25c5=(_0x187506?_0x577373(_0x4ad525,_0xf3806e,_0x4d25c5):_0x577373(_0x4d25c5))||_0x4d25c5);return _0x187506&&_0x4d25c5&&to(_0x4ad525,_0xf3806e,_0x4d25c5),_0x4d25c5;},es=(_0x335c4a,_0x2db89c)=>(_0x1cdf6e,_0x5eb20e)=>_0x2db89c(_0x1cdf6e,_0x5eb20e,_0x335c4a);const no='AUTHZ_URL_KEY',ro=_0x48c788(0x1b9);let pt=class{constructor(_0x4040a4,_0x7b6954){this['_HTTPService']=_0x4040a4,this['_configService']=_0x7b6954;}[_0x48c788(0x392)](){const _0xd0dbd5=_0x48c788;var _0x3ad1b2;return(_0x3ad1b2=this[_0xd0dbd5(0x35d)][_0xd0dbd5(0x2d9)](no))!=null?_0x3ad1b2:ro;}async['create'](_0x1db738){const _0x4394a4=_0x48c788,_0x2c8ad2=this[_0x4394a4(0x392)]()+'/'+_0x1db738[_0x4394a4(0x456)]+_0x4394a4(0x3cd);return(await this[_0x4394a4(0x270)][_0x4394a4(0x4b4)](_0x2c8ad2,{'body':_0x1db738}))[_0x4394a4(0x1ef)][_0x4394a4(0x3d1)]||'';}async[_0x48c788(0x20a)](_0x16e440){const _0x1b03fc=_0x48c788,_0x1344f9=this[_0x1b03fc(0x392)]()+'/-/object/list';return(await this['_HTTPService']['post'](_0x1344f9,{'body':_0x16e440}))['body'][_0x1b03fc(0x28d)];}async[_0x48c788(0x47c)](_0x5267d1){const _0x495b4f=_0x48c788,_0x132d43=this[_0x495b4f(0x392)]()+'/'+_0x5267d1[_0x495b4f(0x456)]+'/object/'+_0x5267d1['objectID'];await this[_0x495b4f(0x270)][_0x495b4f(0x24f)](_0x132d43,{'body':_0x5267d1});}async[_0x48c788(0x2ac)](_0x141d15){const _0x96c15c=_0x48c788,_0x595e14=this[_0x96c15c(0x392)]()+'/'+_0x141d15[_0x96c15c(0x456)]+_0x96c15c(0x45d)+_0x141d15[_0x96c15c(0x3d1)]+_0x96c15c(0x3be);return(await this[_0x96c15c(0x270)][_0x96c15c(0x4b4)](_0x595e14,{'body':_0x141d15}))[_0x96c15c(0x1ef)]['actions'];}async['batchAllowed'](_0x433588){const _0x3b5388=_0x48c788,_0x3013f5=this[_0x3b5388(0x392)]()+_0x3b5388(0x3cc);return(await this['_HTTPService']['post'](_0x3013f5,{'body':{'requests':_0x433588}}))['body'][_0x3b5388(0x262)];}async[_0x48c788(0x316)](_0x54880b){const _0x34824d=_0x48c788,_0x35f98e=this[_0x34824d(0x392)]()+'/'+_0x54880b[_0x34824d(0x456)]+_0x34824d(0x2e0),_0x12aef8=await this[_0x34824d(0x270)][_0x34824d(0x4b4)](_0x35f98e,{'body':_0x54880b});return{'roles':_0x12aef8['body'][_0x34824d(0x486)],'actions':_0x12aef8[_0x34824d(0x1ef)][_0x34824d(0x25e)]};}async[_0x48c788(0x3e5)](_0x407563){const _0x5cfb59=_0x48c788,_0x5ea835=this[_0x5cfb59(0x392)]()+'/collaborator';await this[_0x5cfb59(0x270)][_0x5cfb59(0x388)](_0x5ea835,{'params':{'collaboratorID':_0x407563[_0x5cfb59(0x1df)],'objectID':_0x407563[_0x5cfb59(0x3d1)],'unitID':_0x407563[_0x5cfb59(0x2d3)]}});}async['updateCollaborator'](_0x1a48c4){const _0x4bddd0=_0x48c788,_0x4db9fd=this[_0x4bddd0(0x392)]()+'/collaborator';await this[_0x4bddd0(0x270)][_0x4bddd0(0x1e0)](_0x4db9fd,{'body':_0x1a48c4});}async['createCollaborator'](_0x8cb4c8){const _0x12cc45=_0x48c788,_0xbf14b2=this[_0x12cc45(0x392)]()+_0x12cc45(0x446);await this[_0x12cc45(0x270)][_0x12cc45(0x4b4)](_0xbf14b2,{'body':_0x8cb4c8});}async[_0x48c788(0x46f)](_0x2c1468){const _0x4e7db5=_0x48c788,_0x1705f7=this[_0x4e7db5(0x392)]()+_0x4e7db5(0x446);return(await this[_0x4e7db5(0x270)]['get'](_0x1705f7,{'params':{'objectID':_0x2c1468[_0x4e7db5(0x3d1)],'unitID':_0x2c1468['unitID']}}))[_0x4e7db5(0x1ef)][_0x4e7db5(0x269)];}async[_0x48c788(0x259)](_0x513486){const _0x21a1e7=_0x48c788,_0xdec4b9=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x21a1e7(0x270)]['put'](_0xdec4b9,{'body':_0x513486});}};pt=io([es(0x0,_0x1df0bc(_0x49edd2)),es(0x1,_0x1df0bc(_0x475c15))],pt);var oo=Object[_0x48c788(0x299)],ao=Object['getOwnPropertyDescriptor'],co=(_0x52465c,_0x41107c,_0x590fd2,_0x5488dc)=>{const _0x13343f=_0x48c788;for(var _0x5259da=_0x5488dc>0x1?void 0x0:_0x5488dc?ao(_0x41107c,_0x590fd2):_0x41107c,_0x39d29d=_0x52465c[_0x13343f(0x3c7)]-0x1,_0x23b274;_0x39d29d>=0x0;_0x39d29d--)(_0x23b274=_0x52465c[_0x39d29d])&&(_0x5259da=(_0x5488dc?_0x23b274(_0x41107c,_0x590fd2,_0x5259da):_0x23b274(_0x5259da))||_0x5259da);return _0x5488dc&&_0x5259da&&oo(_0x41107c,_0x590fd2,_0x5259da),_0x5259da;},ts=(_0x5833d3,_0x940302)=>(_0x375fa4,_0x3ae9e0)=>_0x940302(_0x375fa4,_0x3ae9e0,_0x5833d3);const ho=['image/png','image/jpeg',_0x48c788(0x27b),_0x48c788(0x2a4),_0x48c788(0x3c8)],lo=0x5*0x400*0x400,_o=_0x48c788(0x21e),uo=_0x48c788(0x1dc),fo=_0x48c788(0x2c3),go=_0x48c788(0x2aa);let It=class{constructor(_0x582c7b,_0x151399){const _0x31a9a7=_0x48c788;l(this,'_waitCount',0x0),l(this,_0x31a9a7(0x225),new _0x255156()),l(this,_0x31a9a7(0x335),this[_0x31a9a7(0x225)]),l(this,_0x31a9a7(0x47a),new Map()),(this['_httpService']=_0x582c7b,this['_configService']=_0x151399);}[_0x48c788(0x36c)](_0x45c10c){const _0x3b4dd6=_0x48c788;this[_0x3b4dd6(0x435)]=_0x45c10c,this[_0x3b4dd6(0x225)][_0x3b4dd6(0x325)](_0x45c10c);}[_0x48c788(0x2d4)](_0x340fda,_0x38b7c5){const _0x7993f0=_0x48c788;if(_0x38b7c5===_0x55f8db['BASE64']){const _0x203b93=new Image();return _0x203b93[_0x7993f0(0x488)]=_0x340fda,_0x203b93;}return this['_imageSourceCache'][_0x7993f0(0x4ce)](_0x340fda);}['addImageSourceCache'](_0xbfd90,_0x40cc70,_0x58e93d){const _0x3b7589=_0x48c788;_0x40cc70===_0x55f8db[_0x3b7589(0x332)]||_0x58e93d==null||this['_imageSourceCache'][_0x3b7589(0x25a)](_0xbfd90,_0x58e93d);}async[_0x48c788(0x39b)](_0x3f6a4c){const _0x4769e4=_0x48c788;try{const _0x3c4453=this[_0x4769e4(0x292)](this[_0x4769e4(0x379)](),''+_0x3f6a4c),_0xa3a576=(await this['_httpService'][_0x4769e4(0x4ce)](_0x3c4453))[_0x4769e4(0x1ef)];return _0xa3a576[_0x4769e4(0x1b3)]&&_0xa3a576['error']['code']===Es['OK']?Promise[_0x4769e4(0x49e)](_0xa3a576['url']):Promise['reject'](_0xa3a576[_0x4769e4(0x1b3)]);}catch(_0x460b79){return Promise[_0x4769e4(0x333)](_0x460b79);}}async[_0x48c788(0x352)](_0x275e51){const _0x598388=_0x48c788;let _0x1711e4='';if(!ho[_0x598388(0x418)](_0x275e51['type']))return this[_0x598388(0x267)](),Promise[_0x598388(0x333)](new Error(_0x3caa53[_0x598388(0x22a)]));if(_0x275e51[_0x598388(0x457)]>lo)return this[_0x598388(0x267)](),Promise['reject'](new Error(_0x3caa53[_0x598388(0x236)]));try{const _0x5e5bf5=new FormData();_0x5e5bf5['append']('file',_0x275e51);const _0x355e1f=this[_0x598388(0x37c)]()+_0x598388(0x43b)+_0x275e51[_0x598388(0x457)][_0x598388(0x1e6)](),_0x2dd881=await(await fetch(_0x355e1f,{'method':_0x598388(0x2f9),'body':_0x5e5bf5}))[_0x598388(0x234)]();if(typeof _0x2dd881[_0x598388(0x298)]!=_0x598388(0x484))return this[_0x598388(0x267)](),Promise['reject'](new Error(_0x3caa53[_0x598388(0x1bb)]));_0x1711e4=_0x2dd881[_0x598388(0x298)];}catch{return this[_0x598388(0x267)](),Promise[_0x598388(0x333)](new Error(_0x3caa53[_0x598388(0x1bb)]));}return new Promise((_0x53bbe9,_0x3d4063)=>{const _0x595a10=_0x598388,_0x105f19=new FileReader();_0x105f19[_0x595a10(0x3d6)](_0x275e51),_0x105f19[_0x595a10(0x490)]=_0x139582=>{const _0x3590f0=_0x595a10;var _0x161cfa;const _0xf8589e=(_0x161cfa=_0x139582['target'])==null?void 0x0:_0x161cfa['result'];if(_0xf8589e==null){this[_0x3590f0(0x267)](),_0x3d4063(new Error(_0x3caa53[_0x3590f0(0x1bb)]));return;}const _0x287a0d=_0x41ebb1[_0x3590f0(0x2e7)](0x6);_0x53bbe9({'imageId':_0x287a0d,'imageSourceType':_0x55f8db[_0x3590f0(0x405)],'source':_0x1711e4,'base64Cache':_0xf8589e,'status':_0x3caa53[_0x3590f0(0x40b)]}),this[_0x3590f0(0x267)]();};});}['_getUploadFileURL'](){const _0x42950b=_0x48c788;var _0x60ac54;return(_0x60ac54=this[_0x42950b(0x35d)][_0x42950b(0x2d9)](_o))!=null?_0x60ac54:uo;}[_0x48c788(0x379)](){const _0x4ef9f1=_0x48c788;var _0x15bd32;return(_0x15bd32=this['_configService'][_0x4ef9f1(0x2d9)](fo))!=null?_0x15bd32:go;}['_replaceFileID'](_0x2cf260,_0x442635){const _0x180224=_0x48c788;return _0x2cf260[_0x180224(0x263)](_0x180224(0x252),_0x442635);}['_decreaseWaiting'](){const _0x506eec=_0x48c788;this[_0x506eec(0x435)]-=0x1,this[_0x506eec(0x225)][_0x506eec(0x325)](this[_0x506eec(0x435)]);}};It=co([ts(0x0,_0x1df0bc(_0x49edd2)),ts(0x1,_0x475c15)],It);function _0x515a(){const _0x2cbaaf=['interceptor','[SyncedState]:\x20received\x20acknowledgement.','userID','6106485hTZRTN','_getSheetObject','cmd','snapshot','clipPath','range','_imageSourceCache','univer-offline','update','history','getUnitOnRev','_transformPreviousActiveRange','revision','pluginName','_ensureSubject','/universer-api/snapshot/','string','getRelativeCoord','roles','_onConflict','src','UNIVER_COLLABORATION_CLIENT_PLUGIN','#fff','212238uMBKzX','Starting','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_scheduleCollaborationTimeoutTimer','removeParam','onload','onMissedChangesetFetched','setParam','InsertColCommandId','LOGIN_URL_KEY','_startCollaboration','_clearHeartbeatTimer','SNAPSHOT_SERVER_URL_KEY','permission.title','1014655poAXjc','uni.network.url-service','0\x200\x2016\x2016','none','changesets','resolve','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','MSG_FOR_ERROR','USERS_ENTER','_shapes','failed\x20to\x20apply\x20missed\x20changesets!','transformSelections','text','children','/universer-api/snapshot','/block/','_http','_getDocObject','_socketMessageSubscription','...','saveOfflineData','focused$','startRow','editing\x20status\x20changed\x20to','getCurrentRevForDocument','_redoStacks','_updateLocalCache','post','_labelPosition','doc.mutation.rich-text-editing','_removeCollabCursors','_getLoginPath','save\x20fail\x20reason\x20is\x20','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','fetchThroughInterceptors','fetchMissingChangesets','_themeService','column','pushState','_sheetTransformSelectionsService','_unlockTransition','_updateSubUnitFromURLParams','setItem','_entityInit$','LICENSE_DISTRO_REJECTED','status','rev','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose$','_awaitingChangeset','\x0aCurrent:\x20','height','getCollabCursors$','get','_selfUnitIDs','RemoveRowCommandId','show','permissionRejEvent','_userManagerService','UNIVER_DOC','syncEditingCollabCursor','onStateChange','close$','collabStatus.fetchMiss','getSheetBlock','debug','_exhaustSavingTask','editingUnit','error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','FAIL','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','M0\x200H16V16H0z','LIVESHARE_FETCH_OPERATIONS','/universer-api/authz','onSyncEditingCollabCursor','ERROR_IMAGE','m2Prime','UNAUTHENTICATED','sheetID','unitId','path','fillStyle','collab-text-anchor-','width','SEND_CHANGESET_TIMEOUT','transformIMECache','contains','CHANGESET_REVISION_CONFILICT','getRoom','isArray','_status$','className','verdancy600','getCollabEntity','stringify','transformRemoteChangeset','_startSheetCollabCursor','_toggleOnline','getFocusedUnit','_executeRemoteChangeset','_disableEditing','hide','transformUndoRedo','_getUndoStack','_hover','_initModules','\x20-\x20','univer-online-status-title','/universer-api/stream/file/upload','_handleEvent','fromCollab','collaboratorID','patch','ranges','_syncEditingCollabCursor','_docSkeletonManagerService','url(#on-line-single_clip0_910_349)','setActiveRange','toString','[OfflineState]:\x20received\x20rejection.','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','_commandService','_tryEnsureSocket','_localCacheService','asObservable','UPDATE_CURSOR','docStateChange$','body','_clearTimeoutTimer','_handleLeaveEvent','_docStateChangeManagerService','hovered','registerRefRange','Ready','parse','RECV','c2Prime','makeDirty','unsubscribe','triggerDblclick','hasOwnProperty','/new_changes','_color','_clearLocalCache','ACTIVE_UNIT_EVENT_CHANNEL','_type','_onCursorDelete','tag','_scheduleSaving','_rescheduleHeartbeatEvent','INTERNAL_ERROR','CONNECTOR_DATA_TOO_LARGE','LICENSE_EXPORT_SIZE_EXCEEDED','_undoStacks','list','resend','_permissionService','add','then','svg','_disabled','_clearOtherTimers','loadSheet','jiqing500','OFFLINE','urlChange$','_createSocket','_sendHeartbeat','_docTransformSelectionsService','_anchor','defIds','APPLY_REVISION_CONFILICT','_onUserJoin','onRemoteRej','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','SYNCED','_snapshotServerService','_submitChangeset','NEW_CHANGESETS','TOO_MANY_REQUESTS','closePath','_change$','subunit','storage','unknown','sheets','ERROR_IMAGE_TYPE','red300','USERS_LEAVE','_collabCursorState$','complete','_updateCollabCursors','createElement','_transformService','setUndoRedoMutationParamsCache','getActiveRange','json','COMPRESS_MUTATION_SEND','ERROR_EXCEED_SIZE','subscribe','getInterceptPoints','OnLineSingle','onlineStatusIcon','_docSkeleton','_getRedoStack','InsertRowCommandId','params','_lastPointer','getParam','off-line-single_clip0_910_343','createSocket','1em','forEach','MoveRangeCommandId','_socketReady','entries','error$','max','onCommandExecuted','_cachedData','reverse','toggleOffline','_document','put','SUBMIT_CHANGESET','FETCH_MISSING','{fileID}','HEADER_MENU','UNDEFINED','title','loadOfflineData','lineTo','random','putCollaborators','set','idSuffix','getRangePointData','offline','actions','saveSheetBlock','memberID','_onFetchMissResult','objectActions','replace','url(#$1','connection\x20error','arc','_decreaseWaiting','cursorInfo$','collaborators','socketService','conflict.content','message$','_online','_onRemoteRejected','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_HTTPService','isActive','unit','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_unitStatus','replaceTextRanges','_createInitialState','_unitOnClients','use','_removeClearOtherTimer','currentColor','image/jpg','isEditing','updateOfflineData','AWAITING','_entities','registerBeforeClose','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','IDLE','getMergeData','_ws','_getSnapshotAPIPrefix','addObject','getCurrentUnitForType','symbol','newValue','_collabCursorController','_onRefRangeChange','_singleActiveUnitService','objects','_memberService','_name','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onPointerEnterObserver','_replaceFileID','synced','updateMember','color','_onRecvEvent','close','FileId','defineProperty','FETCH_MISS','_hideTimer','[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.','href','UNIVER_SHEET','[FetchMissState]','_onRemoteChangeset','permission.content','location','OffLineSingle','image/gif','state','_createHandler','INGEST','session.room-full','_initStatusComponent','/universer-api/file/{fileID}/sign-url','_getCtorByUniverType','allowed','_logService','_scheduleClearOtherTimer','_scheduleTimestamp','getScrollXYByRelativeCoords','_onConnectionFailed','/rev/','registerComponent','_getScale','onPointerMoveObserver','18434862Vppmdq','transform','_clearScheduledTask','onTransformRemoteChangesetByIMECache','collaboration.single-unit.warning','moveTo','SNAPSHOT_INVALID_SNAPSHOT','getOwnPropertyDescriptor','displayName','_getCurrentRevision','getOwnPropertySymbols','workbook','disableLocalCache','EXCHANGE_SIGN_URL_SERVER_URL_KEY','split','_state','save','LICENSE_MAX_UNITS_EXCEEDED','_loadDoc','\x20in\x20_schedule.','_applyRemoteChangeset','_pendingMutations','rgba(255,\x20255,\x20255,\x200.01)','OTHER_CLIENTS_EDITING','onRemoteAck','getSelections','appendMutation','_transformRemoteChangesetByIMECache','LIVESHARE_TERMINATE','unitID','getImageSourceCache','resourceIDs','infoRsp','catch','localeService','getConfig','ws://127.0.0.1:8000/universer-api/comb/connect','YUUMI_URL_COL_OUT_OF_RANGE','Univer','_docTransformIMECacheService','session','executeCommand','/role','_injector','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','_checkMissing','xlink:href','url(#off-line-single_clip0_910_343)','generateRandomId','_lockTransition','_members','getTypeOfUnitDisposed$','result','CONFLICT','_timeoutTimer','LIVESHARE_NEW_HOST','awaiting','bottom','_exhaustRemoteChangesetQueue','auth.needGotoLoginAlert','_docSyncEditingCollabCursorService','VIEW_MAIN','pending','_session','session.will-retry','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','POST','_getSaveTimeout','_socketService','selections','Unknown\x20user','row','popstate','drawWith','encode','_state$','replaceState','getUnitType','[UniverCollaborationClientPlugin]','_event$','HEARTBEAT_TIMEOUT','_getMergeRange','_saveCache','CHANGESET_ACK','univer-pro.collaboration-client-socket-service','_getAPIPrefix','UniverIcon','_refRangeService','UNIVER_SLIDE','getCurrentUser','div','currentSkeleton$','transformMutationsWithChangeset','_localeService','findNodePositionByCharIndex','listRoles','onlineStatus','_unitID','not_collab','_colorIndex','COMPLETION_FINISHED','unit-cache-','whenReady','clearTimeout','confirm','onTransformSelections','apply','_cursorInfo$','enableAuthServer','getAncestorScale','next','getValue','/unit/','_handleHeartbeatEvent','getMemberID','NO_OTHER_CLIENTS_EDITING','UNRECOGNIZED','_isPermissionRej','_remoteChangesetQueue','onRemoteChangeset','_setupSubUnitSync','icon','[CollaborationUndoRedoService]','BASE64','reject','_sendingTimer','change$','_updateLocalCursor','_onLocalMutation','clear','prototype','/resources','transformMutation','_clearRedo','assignAColorForMemberID','_onRemoteACK','_httpService','_init','session.connection-failed','getCurrent','collabCursorState$','FromArray','PENDING','_collaborationController','LOCAL_CACHE_INTERVAL','_textBubble','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_collaborationTimeoutTimer','open$','_joinRoom','updateCursorEvent','NOT_FOUND','measureText','_removeRoom','_urlService','saveImage','PERMISSION_DENIED','getActiveSheet','registerOnClose','_scheduleReconnection','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getCellPositionByOffset','_scene','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','updatePermissionPoint','labelPosition','_configService','_transformIMECache','on-line-single_clip0_910_349','roomMembers$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','5667528PCUapZ','_transformUndoredo','some','_getAnchorBounding','_socket','_transitionLocked','onlineStatusTitle','_onCursorUpdate','_compressMutationService','COLLAB_SUBMIT_CHANGESET_URL','setWaitCount','getCollabEntity$','_unitId','getUnitStatus$','collabStatus.offline','collaborationUniverTypes','getTime','_onMessage','HELLO','_uiPartsService','evenodd','JOINING','_acknowledgedAwaitingChangeset','_getSignURL','_hovered','SNAPSHOT_URL_KEY','_getUploadFileURL','roomInfos','_onUserLeave','concat','_showConflictNotification','send','_substituteRedoStack','conflict.title','unshift','enableLocalCache','indexOf','_clearUndo','delete','_onJoinRoomEvent','socket\x20open.','_roomMembers','_univerInstanceService','_retryConnectingTimer','_transformStack','assign','_localStorageService','baseRev','_getAPIPrefixPath','PSEUDO_FETCH_MISSING_RESULT','substring','getMember','_roomMembers$','_loadSheet','[DataLoaderController]','_onCombEvent','InsertRangeMoveRightCommandId','getImage','RemoveColCommandId','_colorAssignService','Warning','_notificationService','[CollaborationEntity]','createInstance','conflict','beginPath','JOIN','addObjects','APPLY_NON_SEQUENTIAL_REVISION','_updateURLWithCurrentState','transformByState','c1Prime','_range','translate(.97)','_setupBeforeClosingHandler','LEAVE','push','_schedule','blue400','setAlpha','_saveTaskMap','?url=','_heartbeatTimer','mutations','_collabSessionService','_undoRedoService','DeleteRangeMoveUpCommandId','[CollaborationState]:\x20apply\x20error!','deepClone','LIVESHARE_REQUEST_HOST','_waitForHeartbeatResponse','pipe','/allowed','toggleOnline','33282rFpMpr','addEventListener','UNIVER_UNKNOWN','_eventUnsubscribe','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','univerjs-icon\x20univerjs-icon-','YUUMI_UNABLE_LOAD_URL','length','image/bmp','_substituteUndoStack','INVALID_ARGUMENT','_draw','/-/object/-/batch_allowed','/object','getTypeOfUnitAdded$','setShapeProps','colorChannel1','objectID','_beforeCloseService','gold400','defs','setCurrentUser','readAsDataURL','event$','collabStatus.notCollab','[OfflineState]:\x20received\x20acknowledgement.','_cursors','_onConnectionOpen','_render','_id','_retryCount','onMouseMove','csAckEvent','&to=','extend','transformChangesets','_initStatusListener','deleteCollaborator','_updateStatus','disposeWithMe','map','_collaborationPaused','sessionStatus','subUnitId','collaMsg','univer-online','enableOfflineEditing','values','_scheduleHeartbeat','onPointerLeaveObserver','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_revisionService','has','LIVESHARE_OPERATION','registerHTTPInterceptor','toRgbString','_renderManagerService','Error','_cursor','transformStack\x20failed!','178KVvZQM','black','InsertRangeMoveDownCommandId','endColumn','init','activeSheet$','[CollaborationSession]','fill','RETRY_CONNECTING_MAX_COUNT','UUID','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','skeleton','_sessions','fetch_missing','_transformSelections','SUCCUSS','liveShareNewHost','_sessionStatus$','_sendHeartbeatTimer','originalMeta','textRanges','getUndoRedoMutationParamsCache','HEARTBEAT','call','endRow','m1Prime','getSheetBySheetId','_sheetSkeletonManagerService','includes','_createInitialStateImpl','_updateState','setTimeout','startColumn','_anchorDot','_toggleOffline','_drawAnchor','eventID','#FFF','searchParams','routeKey','/universer-api/oidc/authpage','override','cursorInfo','_syncEditingCollabCursorService','0\x200\x2017\x2016','_socket$','_incrementRevisionNumber','_assignedColors','[PendingState]:\x20received\x20rejection.','UNKNOWN_CODE','all','selection','LICENSE_IMPORT_SIZE_EXCEEDED','ONLINE','fillText','/fetchmissing?from=','getItem','_waitCount','getRenderById','awaitingChangeset','leaveEvent','_startDocCollabCursor','NOT_COLLAB','?size=','COLLAB_WEB_SOCKET_URL','collabStatus.synced','data','_handler','CHANGESET_REJ','APPLY_PERMISSION_DENIED','_clearCollaborationTimeoutTimer','_drawRange','from','onSendChangeset','/collaborator','12mPJSdZ','_replayCachedMutations','sessionStatus$','removeMember','status$','requireSession','attrs','Steady','clearInterval','HEARTBEAT_INTERVAL','getUnitId','_config','fillRule','_queuedRemoteChangesets','[PendingState]:\x20unhandled\x20univer\x20type:\x20','objectType','size','startsWith','off-line-single','AWAITING_WITH_PENDING','type','currentTheme$','/object/','function','getSheetId','10746856nUjyhq','restore','min','_send','_messageService','_handleJoinEvent','onMissingChangesets','_handleHover','PERMISSION_REJ','COMPRESS_MUTATION_APPLY','UNKNOWN_CMD','round','onStarting','saveSnapshot','dispose','listCollaborators','purple300'];_0x515a=function(){return _0x2cbaaf;};return _0x515a();}var Ms=Object['defineProperty'],mo=Object[_0x48c788(0x2bd)],So=(_0x275e94,_0x531c6e,_0x1cd5f7)=>_0x531c6e in _0x275e94?Ms(_0x275e94,_0x531c6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cd5f7}):_0x275e94[_0x531c6e]=_0x1cd5f7,vo=(_0x2889ba,_0x254b7d,_0x20260c,_0x50f7ac)=>{const _0x14d88e=_0x48c788;for(var _0x2b3a7f=_0x50f7ac>0x1?void 0x0:_0x50f7ac?mo(_0x254b7d,_0x20260c):_0x254b7d,_0x4561d8=_0x2889ba[_0x14d88e(0x3c7)]-0x1,_0xeed04d;_0x4561d8>=0x0;_0x4561d8--)(_0xeed04d=_0x2889ba[_0x4561d8])&&(_0x2b3a7f=(_0x50f7ac?_0xeed04d(_0x254b7d,_0x20260c,_0x2b3a7f):_0xeed04d(_0x2b3a7f))||_0x2b3a7f);return _0x50f7ac&&_0x2b3a7f&&Ms(_0x254b7d,_0x20260c,_0x2b3a7f),_0x2b3a7f;},ss=(_0x549925,_0x41890c)=>(_0x1fe467,_0x2f96c4)=>_0x41890c(_0x1fe467,_0x2f96c4,_0x549925),po=(_0x41e830,_0x4a3ab0,_0x3170c6)=>(So(_0x41e830,_0x4a3ab0+'',_0x3170c6),_0x3170c6);const Io=_0x48c788(0x489);let Et=class extends _0x12f480{constructor(_0x4afdb6,_0xf03803,_0x2f53be){const _0x403b9b=_0x48c788;super(),this[_0x403b9b(0x452)]=_0x4afdb6,this[_0x403b9b(0x2ad)]=_0xf03803,this[_0x403b9b(0x2e1)]=_0x2f53be;}[_0x48c788(0x46c)](_0x5edeb7){const _0xe0250b=_0x48c788;var _0x3be023,_0x3de2d6,_0x538ac9,_0x2ddb57,_0x41d844;_0x5edeb7[_0xe0250b(0x3f4)](_0x3b301b)&&this[_0xe0250b(0x2ad)][_0xe0250b(0x1b3)](_0xe0250b(0x305),_0xe0250b(0x3c4));let _0x1a6bd1=[[_0x3b301b,{'useClass':vt}],[Re],[At],[_0x49edd2],[Ns,{'useClass':Vr}],[ee],[D],[_0x15b3f3],[Ve],[Be],[ke],[Mt],[Ge],[Cs,{'useClass':(_0x3de2d6=(_0x3be023=this[_0xe0250b(0x452)])==null?void 0x0:_0x3be023[_0xe0250b(0x26a)])!=null?_0x3de2d6:_t}],[_0x18e4ed,{'useClass':_0x1c4b96}],[_0x32765d,{'useClass':St}],[_0x49a670,{'useClass':pt}],[_0x5863cd,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x538ac9=this[_0xe0250b(0x452)])!=null&&_0x538ac9['enableSingleActiveInstanceLock']&&_0x1a6bd1[_0xe0250b(0x3ae)]([Xe,{'useClass':Tn}]),((_0x2ddb57=this[_0xe0250b(0x452)])==null?void 0x0:_0x2ddb57[_0xe0250b(0x371)])==null||this['_config'][_0xe0250b(0x371)]['includes'](_0x5b42a8[_0xe0250b(0x29e)])?_0x1a6bd1['push']([$e]):this[_0xe0250b(0x452)]['collaborationUniverTypes'][_0xe0250b(0x418)](_0x5b42a8[_0xe0250b(0x4d4)])&&_0x1a6bd1['push']([Fe]),_0x1a6bd1=_0x166e22(_0x1a6bd1,(_0x41d844=this[_0xe0250b(0x452)])==null?void 0x0:_0x41d844[_0xe0250b(0x425)]),_0x1a6bd1[_0xe0250b(0x244)](_0x27975a=>_0x5edeb7[_0xe0250b(0x20d)](_0x27975a)),_0x5edeb7[_0xe0250b(0x4ce)](_0x49edd2)[_0xe0250b(0x3f6)]({'priority':0x14,'interceptor':_0x398469({'maxParallel':0x6})}),this[_0xe0250b(0x1d9)]();}['_initModules'](){const _0x36c369=_0x48c788;var _0x5d6634,_0x5890a1;(_0x5d6634=this[_0x36c369(0x452)])!=null&&_0x5d6634[_0x36c369(0x3ee)]||this[_0x36c369(0x2e1)][_0x36c369(0x4ce)](D)[_0x36c369(0x2c2)](),(_0x5890a1=this[_0x36c369(0x452)])!=null&&_0x5890a1[_0x36c369(0x323)]&&this[_0x36c369(0x2e1)]['get'](Ge);}};po(Et,_0x48c788(0x481),Io),Et=vo([_0x5c5115(_0x149281),ss(0x1,_0xcf8387),ss(0x2,_0x1df0bc(_0x1883e3))],Et);export{no as AUTHZ_URL_KEY,pt as AuthzIoHttpService,on as COLLAB_SUBMIT_CHANGESET_URL_KEY,Ji as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Rr as CollaborationStatusDisplay,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,ps as HEARTBEAT_TIMEOUT_KEY,Cs as ICollaborationSocketService,Ns as IURLService,nn as LOCAL_CACHE_INTERVAL_KEY,cn as LOGIN_URL_KEY,D as LocalCacheService,Ki as SEND_CHANGESET_TIMEOUT_KEY,Wi as SNAPSHOT_SERVER_URL_KEY,Yi as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Vr as WebURLService,fn as deserializeToCombResponse,gn as serializeCombRequest};
1
+ const _0x3bdab3=_0x92e7;(function(_0x5395a6,_0x16e90e){const _0x3083ee=_0x92e7,_0x136503=_0x5395a6();while(!![]){try{const _0x1a9216=-parseInt(_0x3083ee(0x28a))/0x1+parseInt(_0x3083ee(0x326))/0x2+-parseInt(_0x3083ee(0x3b4))/0x3*(parseInt(_0x3083ee(0x293))/0x4)+-parseInt(_0x3083ee(0x1ee))/0x5*(parseInt(_0x3083ee(0x38d))/0x6)+parseInt(_0x3083ee(0x109))/0x7+parseInt(_0x3083ee(0x290))/0x8*(parseInt(_0x3083ee(0x278))/0x9)+parseInt(_0x3083ee(0x3a2))/0xa;if(_0x1a9216===_0x16e90e)break;else _0x136503['push'](_0x136503['shift']());}catch(_0x41bb75){_0x136503['push'](_0x136503['shift']());}}}(_0x25d0,0xefed5));var js=Object[_0x3bdab3(0x162)],Hs=(_0x3069d9,_0x55f9f4,_0x132ea8)=>_0x55f9f4 in _0x3069d9?js(_0x3069d9,_0x55f9f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x132ea8}):_0x3069d9[_0x55f9f4]=_0x132ea8,l=(_0x6b344c,_0x40aeb7,_0x50bcb4)=>Hs(_0x6b344c,typeof _0x40aeb7!=_0x3bdab3(0x1f4)?_0x40aeb7+'':_0x40aeb7,_0x50bcb4);import{Disposable as _0x292c4b,toDisposable as _0x439c9a,UniverInstanceType as _0x3ba52b,UserManagerService as _0x1f7d66,IUniverInstanceService as _0x173bd8,DisposableCollection as _0x308b9c,IConfigService as _0x37d874,ILogService as _0x2cecb4,ISnapshotServerService as _0x4d41e7,RxDisposable as _0x300f85,LocaleService as _0x25e6c6,ILocalStorageService as _0x5b24bc,Tools as _0x572ff7,ICommandService as _0x5ba974,JSONX as _0x526e13,IPermissionService as _0x4ac7e0,IUndoRedoService as _0x1de145,sequenceExecute as _0x35931d,OnLifecycle as _0x516125,LifecycleStages as _0x3c792f,CommandType as _0x4ea69f,Rectangle as _0x262b85,ThemeService as _0x588548,Workbook as _0x40c937,textEncoder as _0x218b7d,b64DecodeUnicode as _0x14b7ab,LocalUndoRedoService as _0x3147c1,IContextService as _0x5b7487,COLORS as _0x1d3c6f,ColorKit as _0x2b14c0,Plugin as _0x454bd9,IAuthzIoService as _0x26ad23,mergeOverrideWithDependencies as _0xfb808f,DependentOn as _0x11cd6}from'@univerjs/core';import{SelectionManagerService as _0x24c085,SetSelectionsOperation as _0x2a3a91,InsertSheetMutation as _0x21601c,WorkbookEditablePermission as _0x2a2a3d,RefRangeService as _0x4bc4de,EffectRefRangId as _0x1cd245,handleIRemoveRow as _0x3c04cd,handleIRemoveCol as _0x321d78,handleMoveRange as _0xda0b52,handleInsertRow as _0x152d72,handleInsertRangeMoveRight as _0xa36c52,handleInsertRangeMoveDown as _0x343dcb,handleInsertCol as _0x291d27,handleDeleteRangeMoveUp as _0x2a22df,handleDeleteRangeMoveLeft as _0x4b07cd,runRefRangeMutations as _0x4c1838,SetWorksheetActivateCommand as _0x40335c}from'@univerjs/sheets';import{MessageType as _0x32f68a}from'@univerjs/design';import{IBeforeCloseService as _0xb59960,IMessageService as _0x2ac335,INotificationService as _0x39c5e1,useObservable as _0x52c0a4,BuiltInUIPart as _0x403b57,IUIPartsService as _0x8b992a}from'@univerjs/ui';import{CollaborationEvent as _0x19dc79,parseChangesetToProtocol as _0x155865,RevisionService as _0x54c94d,isTransformMutationFailure as _0x3295bd,isTransformMutationsWithChangesetSuccess as _0x155e17,ITransformService as _0x539a09,mapDocumentTypeToUniverType as _0x4c5ba5,isTransformChangesetsSuccess as _0x36d671,CompressMutationService as _0x130ad1,parseProtocolChangeset as _0x17d674,SnapshotService as _0x4471bc,isTransformMutationsWithChangesetFailure as _0x39e768,UniverCollaborationPlugin as _0x40a55a}from'@univerjs-pro/collaboration';import{Inject as _0x279e5b,createIdentifier as _0x3ce7c5,Injector as _0x5df577,Optional as _0x4100a2}from'@wendellhu/redi';import{merge as _0x1ddc59,Subject as _0x4a8f66,BehaviorSubject as _0x2fb415,distinctUntilChanged as _0x24f1b5,fromEvent as _0xb88582,of as _0x442f94,takeUntil as _0x352c23,debounceTime as _0x2e32ca,filter as _0x1402ad,switchMap as _0x659f37,combineLatest as _0x499f91,shareReplay as _0x260592,mapTo as _0x57165d,concatMap as _0x3298d9}from'rxjs';import{map as _0x5de95e,takeUntil as _0xdf0e3e,take as _0x319274,filter as _0x748e3b,delay as _0x251b05,shareReplay as _0x1a58cf,switchMap as _0x40ba52}from'rxjs/operators';import{IMEInputManagerService as _0x4a03ac,TextSelectionManagerService as _0x23f9d5,serializeTextRange as _0x53dc05,DocStateChangeManagerService as _0x520590,SetTextSelectionsOperation as _0x3c0d3c,RichTextEditingMutation as _0xe7b6e2,getDocObject as _0x3089e4,DocSkeletonManagerService as _0x27e0a0}from'@univerjs/docs';import{HTTPService as _0x24b00a,WebSocketService as _0x2a4381,IHTTPImplementation as _0x3ebb40,XHRHTTPImplementation as _0x5cf0a1,ThresholdInterceptorFactory as _0x344db4}from'@univerjs/network';import{ImageSourceType as _0xd025b9,ImageUploadStatusType as _0x34894f,IImageIoService as _0x401699}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0xa7c92b,serializeRangeWithSheet as _0x329641}from'@univerjs/engine-formula';import _0x2ebe29 from'lodash/debounce';import{Shape as _0x1c658f,Rect as _0x11ad62,Vector2 as _0x4fff35,IRenderManagerService as _0x4c72a4,NodePositionConvertToCursor as _0x7f1a71,getColor as _0x40bb34,TEXT_RANGE_LAYER_INDEX as _0x2c9f4c,RegularPolygon as _0x566c8a}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x516270,VIEWPORT_KEY as _0x6dbc23,getCoordByCell as _0x334eac,getSheetObject as _0x9bd77f}from'@univerjs/sheets-ui';import{useDependency as _0x35026c,connectInjector as _0x266534}from'@wendellhu/redi/react-bindings';import _0x3f5d4a,{forwardRef as _0x1c2ff9,useRef as _0xbd3c86,createElement as _0x58bacf}from'react';import _0x52a9a7 from'clsx';import{IRemoteInstanceService as _0x126341}from'@univerjs/rpc';const Wi=_0x3bdab3(0x20e),Gi=_0x3bdab3(0x357),Yi=_0x3bdab3(0x153),Ki=_0x3bdab3(0xf7),Xi=0x7d0,Ji=_0x3bdab3(0x294),zi=_0x3bdab3(0x1bf),Zi=_0x3bdab3(0x396),qi=0x7530,ps=_0x3bdab3(0x1ff),Is=0x2710,Qi='RETRY_CONNECTING_INTERVAL',en=0x4e20,tn='RETRY_CONNECTING_MAX_COUNT',sn=0x3,nn=_0x3bdab3(0x1fb),rn=0x3e8,on='COLLAB_SUBMIT_CHANGESET_URL',an=_0x3bdab3(0x375),cn='LOGIN_URL_KEY',hn='/universer-api/oidc/authpage';var Es=(_0x27d767=>(_0x27d767[_0x27d767[_0x3bdab3(0x33b)]=0x0]=_0x3bdab3(0x33b),_0x27d767[_0x27d767['OK']=0x1]='OK',_0x27d767[_0x27d767[_0x3bdab3(0x256)]=0x2]=_0x3bdab3(0x256),_0x27d767[_0x27d767[_0x3bdab3(0x2b2)]=0x3]=_0x3bdab3(0x2b2),_0x27d767[_0x27d767[_0x3bdab3(0xc3)]=0x4]=_0x3bdab3(0xc3),_0x27d767[_0x27d767[_0x3bdab3(0x338)]=0x5]=_0x3bdab3(0x338),_0x27d767[_0x27d767['ALREADY_EXISTS']=0x6]=_0x3bdab3(0x1c4),_0x27d767[_0x27d767[_0x3bdab3(0x3a6)]=0x7]=_0x3bdab3(0x3a6),_0x27d767[_0x27d767['TOO_MANY_REQUESTS']=0x8]=_0x3bdab3(0x170),_0x27d767[_0x27d767[_0x3bdab3(0x360)]=0x9]='COMPLETION_FINISHED',_0x27d767[_0x27d767[_0x3bdab3(0x2d3)]=0x1389]=_0x3bdab3(0x2d3),_0x27d767[_0x27d767['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3bdab3(0x2c3),_0x27d767[_0x27d767[_0x3bdab3(0x208)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x27d767[_0x27d767['APPLY_REJECT']=0x1b59]=_0x3bdab3(0x2e7),_0x27d767[_0x27d767['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x3bdab3(0x364),_0x27d767[_0x27d767[_0x3bdab3(0x3b2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x27d767[_0x27d767[_0x3bdab3(0x266)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x27d767[_0x27d767['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3bdab3(0x222),_0x27d767[_0x27d767[_0x3bdab3(0x2a4)]=0x2329]=_0x3bdab3(0x2a4),_0x27d767[_0x27d767[_0x3bdab3(0x129)]=0x232a]=_0x3bdab3(0x129),_0x27d767[_0x27d767[_0x3bdab3(0x12f)]=0x232b]=_0x3bdab3(0x12f),_0x27d767[_0x27d767[_0x3bdab3(0x35f)]=0x232c]=_0x3bdab3(0x35f),_0x27d767[_0x27d767[_0x3bdab3(0x219)]=0x232d]=_0x3bdab3(0x219),_0x27d767[_0x27d767[_0x3bdab3(0x20b)]=0x2711]=_0x3bdab3(0x20b),_0x27d767[_0x27d767[_0x3bdab3(0x211)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x27d767[_0x27d767[_0x3bdab3(0x2fd)]=-0x1]='UNRECOGNIZED',_0x27d767))(Es||{}),H=(_0x364520=>(_0x364520[_0x364520[_0x3bdab3(0x9a)]=0x0]=_0x3bdab3(0x9a),_0x364520[_0x364520[_0x3bdab3(0x1a4)]=0x1]='UNIVER_DOC',_0x364520[_0x364520['UNIVER_SHEET']=0x2]=_0x3bdab3(0x38c),_0x364520[_0x364520['UNIVER_SLIDE']=0x3]=_0x3bdab3(0x372),_0x364520[_0x364520['UNRECOGNIZED']=-0x1]=_0x3bdab3(0x2fd),_0x364520))(H||{}),I=(_0x402a7a=>(_0x402a7a[_0x402a7a[_0x3bdab3(0x2d4)]=0x0]=_0x3bdab3(0x2d4),_0x402a7a[_0x402a7a[_0x3bdab3(0x190)]=0x1]=_0x3bdab3(0x190),_0x402a7a[_0x402a7a[_0x3bdab3(0x2d6)]=0x2]=_0x3bdab3(0x2d6),_0x402a7a[_0x402a7a[_0x3bdab3(0x243)]=0x3]=_0x3bdab3(0x243),_0x402a7a[_0x402a7a[_0x3bdab3(0x23e)]=0x4]='INGEST',_0x402a7a[_0x402a7a[_0x3bdab3(0x325)]=0x5]=_0x3bdab3(0x325),_0x402a7a[_0x402a7a[_0x3bdab3(0x144)]=0x6]=_0x3bdab3(0x144),_0x402a7a[_0x402a7a[_0x3bdab3(0x2fd)]=-0x1]=_0x3bdab3(0x2fd),_0x402a7a))(I||{}),Nt=(_0x7744b2=>(_0x7744b2[_0x7744b2[_0x3bdab3(0xbf)]=0x0]=_0x3bdab3(0xbf),_0x7744b2[_0x7744b2['OK']=0x1]='OK',_0x7744b2[_0x7744b2[_0x3bdab3(0x165)]=0x2]=_0x3bdab3(0x165),_0x7744b2[_0x7744b2[_0x3bdab3(0x2fd)]=-0x1]='UNRECOGNIZED',_0x7744b2))(Nt||{}),ln=Object[_0x3bdab3(0x162)],_n=Object[_0x3bdab3(0x123)],un=(_0x3a9af2,_0x1dbbb9,_0x16dde1,_0x520b7d)=>{for(var _0x514c10=_0x520b7d>0x1?void 0x0:_0x520b7d?_n(_0x1dbbb9,_0x16dde1):_0x1dbbb9,_0x59c707=_0x3a9af2['length']-0x1,_0x3e74de;_0x59c707>=0x0;_0x59c707--)(_0x3e74de=_0x3a9af2[_0x59c707])&&(_0x514c10=(_0x520b7d?_0x3e74de(_0x1dbbb9,_0x16dde1,_0x514c10):_0x3e74de(_0x514c10))||_0x514c10);return _0x520b7d&&_0x514c10&&ln(_0x1dbbb9,_0x16dde1,_0x514c10),_0x514c10;},Vt=(_0x4d033a,_0x2e905f)=>(_0x2c0487,_0x295d4a)=>_0x2e905f(_0x2c0487,_0x295d4a,_0x4d033a);let ee=class extends _0x292c4b{constructor(_0x245310,_0x209c2a){const _0x1fbcad=_0x3bdab3;super(),l(this,_0x1fbcad(0x398),new Map()),(this[_0x1fbcad(0xa4)]=_0x245310,this[_0x1fbcad(0x13b)]=_0x209c2a,this['disposeWithMe'](_0x439c9a(_0x1ddc59(this[_0x1fbcad(0xa4)]['getTypeOfUnitDisposed$'](_0x3ba52b[_0x1fbcad(0x38c)])['pipe'](_0x5de95e(_0x187c74=>_0x187c74[_0x1fbcad(0x100)]())),this[_0x1fbcad(0xa4)][_0x1fbcad(0x236)](_0x3ba52b[_0x1fbcad(0x1a4)])[_0x1fbcad(0x19c)](_0x5de95e(_0xbbdb3c=>_0xbbdb3c[_0x1fbcad(0x100)]())),this[_0x1fbcad(0xa4)][_0x1fbcad(0x236)](_0x3ba52b[_0x1fbcad(0x372)])[_0x1fbcad(0x19c)](_0x5de95e(_0x4aa6f5=>_0x4aa6f5['getUnitId']())))[_0x1fbcad(0x2b5)](_0xf9a0af=>this[_0x1fbcad(0x159)](_0xf9a0af)))));}[_0x3bdab3(0x383)](_0x590ab2){const _0x4cf5a1=_0x3bdab3;this[_0x4cf5a1(0x13b)][_0x4cf5a1(0x383)](_0x590ab2);}['getCurrentUser'](){const _0xd6da8c=_0x3bdab3;return this[_0xd6da8c(0x13b)][_0xd6da8c(0x246)]();}[_0x3bdab3(0x1ac)](_0x542c45,_0x1e8135){const _0x1cb97d=_0x3bdab3;let _0x542676=this[_0x1cb97d(0x398)][_0x1cb97d(0x132)](_0x542c45);_0x542676||(_0x542676=new dn(),this[_0x1cb97d(0x398)][_0x1cb97d(0x156)](_0x542c45,_0x542676)),_0x542676[_0x1cb97d(0x1ac)](_0x1e8135);}['removeMember'](_0x26dc86,_0xac2901){const _0x3f0194=_0x3bdab3,_0x258372=this[_0x3f0194(0x398)][_0x3f0194(0x132)](_0x26dc86);_0x258372&&_0x258372[_0x3f0194(0xe0)](_0xac2901);}[_0x3bdab3(0x297)](_0x7d0d9f){const _0x23a828=_0x3bdab3;return this[_0x23a828(0x398)][_0x23a828(0x132)](_0x7d0d9f);}['getMember'](_0x5cb501,_0x771b70){const _0x8a95bc=_0x3bdab3,_0x1c8755=this['_roomMembers'][_0x8a95bc(0x132)](_0x5cb501);if(_0x1c8755)return _0x1c8755[_0x8a95bc(0x195)](_0x771b70);}['_removeRoom'](_0x15acb9){const _0x1b06fb=_0x3bdab3,_0x356585=this[_0x1b06fb(0x398)][_0x1b06fb(0x132)](_0x15acb9);_0x356585&&(_0x356585[_0x1b06fb(0x328)](),this[_0x1b06fb(0x398)]['delete'](_0x15acb9));}[_0x3bdab3(0x328)](){const _0x5563f5=_0x3bdab3;this[_0x5563f5(0x398)][_0x5563f5(0x2fa)](_0x4774dc=>_0x4774dc[_0x5563f5(0x328)]()),this[_0x5563f5(0x398)][_0x5563f5(0x2f8)]();}};ee=un([Vt(0x0,_0x173bd8),Vt(0x1,_0x279e5b(_0x1f7d66))],ee);class dn extends _0x292c4b{constructor(){const _0x435458=_0x3bdab3;super(...arguments),l(this,_0x435458(0x198),new Map());}[_0x3bdab3(0x328)](){const _0x5e5617=_0x3bdab3;this[_0x5e5617(0x198)][_0x5e5617(0x2f8)]();}[_0x3bdab3(0x1ac)](_0x14a970){const _0x3586ff=_0x3bdab3;this[_0x3586ff(0x198)]['set'](_0x14a970['memberID'],_0x14a970);}[_0x3bdab3(0xe0)](_0x1298da){const _0x57516f=_0x3bdab3;this['_members'][_0x57516f(0xfc)](_0x1298da);}['getMember'](_0x4fbda6){const _0x43ee56=_0x3bdab3;return this[_0x43ee56(0x198)]['get'](_0x4fbda6);}}function fn(_0x5cc33b){const _0x5c54dd=_0x3bdab3;var _0x4105e6,_0x36b138,_0x408594,_0x4b6f7b;const _0x34b1f0=_0x5cc33b[_0x5c54dd(0x3ac)],_0x2a244f=JSON[_0x5c54dd(0x332)](_0x34b1f0);switch(_0x2a244f[_0x5c54dd(0x225)]){case I[_0x5c54dd(0x325)]:case I[_0x5c54dd(0x190)]:{const _0x2b18d1=_0x2a244f[_0x5c54dd(0x30a)];return{..._0x2a244f,'data':_0x2b18d1,'cmd':_0x2a244f['cmd']};}case I[_0x5c54dd(0x2d6)]:{const _0x436090=_0x2a244f['joinRsp'];return{..._0x2a244f,'data':_0x436090,'cmd':_0x2a244f[_0x5c54dd(0x225)]};}case I['RECV']:{const _0x45ffce=_0x2a244f[_0x5c54dd(0x105)];switch(_0x45ffce['eventID']){case _0x19dc79[_0x5c54dd(0x3a5)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':(_0x4105e6=_0x45ffce[_0x5c54dd(0x1dc)])==null?void 0x0:_0x4105e6['cs']},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79['CHANGESET_ACK']:return{..._0x2a244f,'data':{..._0x45ffce,'data':(_0x36b138=_0x45ffce[_0x5c54dd(0x24a)])==null?void 0x0:_0x36b138['cs']},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0x2fc)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':(_0x408594=_0x45ffce[_0x5c54dd(0xc0)])==null?void 0x0:_0x408594['cs']},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0xca)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':(_0x4b6f7b=_0x45ffce[_0x5c54dd(0x19a)])==null?void 0x0:_0x4b6f7b['cs']},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0x38e)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce[_0x5c54dd(0x2c2)]},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0xc5)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce[_0x5c54dd(0x13e)]},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0xcd)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce[_0x5c54dd(0x2b9)]},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0x30c)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce[_0x5c54dd(0x15a)]},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0x2a3)]:case _0x19dc79[_0x5c54dd(0xd9)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce[_0x5c54dd(0x2a2)]},'cmd':_0x2a244f['cmd']};case _0x19dc79['LIVESHARE_TERMINATE']:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce['liveShareNewHost']},'cmd':_0x2a244f['cmd']};case _0x19dc79['MSG_FOR_ERROR']:return{..._0x2a244f,'data':_0x45ffce,'cmd':_0x2a244f[_0x5c54dd(0x225)]};default:return _0x2a244f;}}default:return _0x2a244f;}}function gn(_0x1adfb5){const _0xeb8b69=_0x3bdab3;switch(_0x1adfb5[_0xeb8b69(0x225)]){case I[_0xeb8b69(0x325)]:case I['HELLO']:return JSON[_0xeb8b69(0xc8)]({'cmd':_0x1adfb5[_0xeb8b69(0x225)],'routeKey':_0x1adfb5['routeKey']});case I[_0xeb8b69(0x23e)]:{let _0xc1fee0;switch(_0x1adfb5[_0xeb8b69(0x3ac)][_0xeb8b69(0xd4)]){case _0x19dc79[_0xeb8b69(0x38e)]:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0x38e)],'updateCursorEvent':_0x1adfb5[_0xeb8b69(0x3ac)]['data']};break;}case _0x19dc79[_0xeb8b69(0xcd)]:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0xcd)],'leaveEvent':_0x1adfb5['data']['data']};break;}case _0x19dc79['USERS_ENTER']:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0xc5)],'joinEvent':_0x1adfb5[_0xeb8b69(0x3ac)][_0xeb8b69(0x3ac)]};break;}case _0x19dc79[_0xeb8b69(0x30c)]:{_0xc1fee0={'eventID':_0x19dc79['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x1adfb5[_0xeb8b69(0x3ac)][_0xeb8b69(0x3ac)]};break;}case _0x19dc79[_0xeb8b69(0xd9)]:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0xd9)],'liveShareOperation':_0x1adfb5['data']['data']};break;}case _0x19dc79[_0xeb8b69(0x17b)]:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0x17b)],'liveShareTerminate':_0x1adfb5[_0xeb8b69(0x3ac)][_0xeb8b69(0x3ac)]};break;}case _0x19dc79[_0xeb8b69(0x11e)]:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0x11e)],'liveShareRequestHost':_0x1adfb5[_0xeb8b69(0x3ac)][_0xeb8b69(0x3ac)]};break;}case _0x19dc79['LIVESHARE_FETCH_OPERATIONS']:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0x2a3)]};break;}default:_0xc1fee0={'eventID':_0x1adfb5['data'][_0xeb8b69(0xd4)]};}return JSON['stringify']({'cmd':_0x1adfb5['cmd'],'routeKey':_0x1adfb5['routeKey'],'collaMsg':_0xc1fee0});}case I[_0xeb8b69(0x2d6)]:return JSON[_0xeb8b69(0xc8)]({'cmd':_0x1adfb5[_0xeb8b69(0x225)],'routeKey':_0x1adfb5['routeKey'],'joinReq':_0x1adfb5[_0xeb8b69(0x3ac)]});case I[_0xeb8b69(0x243)]:return JSON[_0xeb8b69(0xc8)]({'cmd':_0x1adfb5['cmd'],'routeKey':_0x1adfb5[_0xeb8b69(0x3b0)],'leaveReq':_0x1adfb5[_0xeb8b69(0x3ac)]});default:throw new Error(_0xeb8b69(0x1a6));}}var mn=Object[_0x3bdab3(0x162)],Sn=Object[_0x3bdab3(0x123)],vn=(_0x340b64,_0x2f2b8a,_0x1c68bd,_0x2d60e7)=>{const _0x56c64e=_0x3bdab3;for(var _0x23869a=_0x2d60e7>0x1?void 0x0:_0x2d60e7?Sn(_0x2f2b8a,_0x1c68bd):_0x2f2b8a,_0x10c062=_0x340b64[_0x56c64e(0x2d9)]-0x1,_0x507c9c;_0x10c062>=0x0;_0x10c062--)(_0x507c9c=_0x340b64[_0x10c062])&&(_0x23869a=(_0x2d60e7?_0x507c9c(_0x2f2b8a,_0x1c68bd,_0x23869a):_0x507c9c(_0x23869a))||_0x23869a);return _0x2d60e7&&_0x23869a&&mn(_0x2f2b8a,_0x1c68bd,_0x23869a),_0x23869a;},me=(_0x221ce7,_0x1fb7b6)=>(_0xf198d,_0x294ce2)=>_0x1fb7b6(_0xf198d,_0x294ce2,_0x221ce7);const Cs=_0x3ce7c5(_0x3bdab3(0x353));function pn(_0x44b83d,_0x2f53f9,_0x45ac74){const _0x53b58d=_0x3bdab3;return _0x44b83d+'/'+_0x2f53f9+'/unit/'+_0x45ac74+_0x53b58d(0x27e);}let _t=class{constructor(_0x3abf98,_0x104898,_0x42429e,_0x11e31f,_0x26554a){const _0x24f324=_0x3bdab3;this[_0x24f324(0x104)]=_0x3abf98,this['_ws']=_0x104898,this[_0x24f324(0x1bd)]=_0x42429e,this['_logService']=_0x11e31f,this[_0x24f324(0x28e)]=_0x26554a;}['createSocket'](_0x334843){const _0x4f591a=_0x3bdab3,_0x23ad16=this[_0x4f591a(0x21e)][_0x4f591a(0x28c)](_0x334843);if(!_0x23ad16)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x54bd38=new _0x308b9c(),_0x2f2569=new _0x4a8f66();_0x54bd38[_0x4f591a(0x20d)](_0x439c9a(_0x23ad16[_0x4f591a(0x23d)]['subscribe'](_0x3b7062=>_0x2f2569['next'](_0x3b7062)))),_0x54bd38[_0x4f591a(0x20d)](_0x439c9a(()=>_0x2f2569['complete']()));const _0x5be500=new _0x4a8f66();_0x54bd38[_0x4f591a(0x20d)](_0x439c9a(_0x23ad16[_0x4f591a(0x3ad)][_0x4f591a(0x2b5)](_0x31748e=>_0x5be500[_0x4f591a(0x1c7)](_0x31748e)))),_0x54bd38['add'](_0x439c9a(()=>_0x5be500[_0x4f591a(0x1fc)]()));const _0x3f9e68=new _0x4a8f66();_0x54bd38['add'](_0x439c9a(_0x23ad16[_0x4f591a(0x2f5)][_0x4f591a(0x2b5)](_0x196b67=>{const _0x4dc142=_0x4f591a,_0x2bf4b2=fn(_0x196b67);_0x3f9e68[_0x4dc142(0x1c7)](_0x2bf4b2);}))),_0x54bd38[_0x4f591a(0x20d)](_0x439c9a(()=>_0x3f9e68[_0x4f591a(0x1fc)]()));const _0x22d805=()=>{const _0x1ba7e6=_0x4f591a;_0x5be500[_0x1ba7e6(0x1c7)](new Event(_0x1ba7e6(0x309))),_0x2f2569[_0x1ba7e6(0x1c7)](new CloseEvent(_0x1ba7e6(0x309))),_0x13bd40[_0x1ba7e6(0x34a)]();},_0x13bd40={'memberID':'','close$':_0x2f2569['asObservable'](),'error$':_0x5be500[_0x4f591a(0x267)](),'open$':_0x23ad16[_0x4f591a(0x17c)],'message$':_0x3f9e68[_0x4f591a(0x267)](),'send':_0x31f463=>{const _0x1cc316=_0x4f591a;if(_0x31f463[_0x1cc316(0x225)]===I[_0x1cc316(0x23e)]){if(_0x31f463[_0x1cc316(0x3ac)][_0x1cc316(0xd4)]===_0x19dc79[_0x1cc316(0x395)]){this[_0x1cc316(0x1df)](_0x13bd40,_0x31f463['data'])[_0x1cc316(0x141)](_0x1ca83d=>{const _0x393aaa=_0x1cc316;this[_0x393aaa(0x140)]['error'](_0x1ca83d),_0x22d805();});return;}if(_0x31f463[_0x1cc316(0x3ac)]['eventID']===_0x19dc79[_0x1cc316(0xd8)]){const _0x1891e3=_0x31f463[_0x1cc316(0x3ac)];this['_fetchMissChangesets'](_0x1891e3)[_0x1cc316(0xcc)](_0x1a85df=>{const _0x30df9b=_0x1cc316;_0x3f9e68[_0x30df9b(0x1c7)]({'cmd':I[_0x30df9b(0x144)],'code':Nt['OK'],'routeKey':_0x1891e3[_0x30df9b(0x3ac)][_0x30df9b(0x227)],'routeType':'','data':{'eventID':_0x19dc79[_0x30df9b(0xa5)],'data':{'changesets':_0x1a85df}}});})[_0x1cc316(0x141)](_0x4024bf=>{const _0xc2d05=_0x1cc316;this[_0xc2d05(0x140)]['error'](_0x4024bf),_0x22d805();});return;}}_0x23ad16[_0x1cc316(0x204)](gn(_0x31f463));},'close':()=>{const _0x47b5e5=_0x4f591a;_0x23ad16[_0x47b5e5(0x34a)](),_0x54bd38['dispose']();}};return _0x13bd40;}async[_0x3bdab3(0x1df)](_0x354ee0,_0xac9186){const _0x68b62d=_0x3bdab3;var _0x518ddc;const {unitType:_0x3a4241,unitID:_0x20e771,changeset:_0x42792a}=_0xac9186[_0x68b62d(0x3ac)],_0x435025={'unitID':_0x20e771,'memberID':_0x354ee0['memberID'],'type':_0x3a4241,'changeset':_0x155865(_0x42792a)},_0x1ded83=pn((_0x518ddc=this[_0x68b62d(0x1bd)][_0x68b62d(0x384)](on))!=null?_0x518ddc:an,_0x3a4241,_0x20e771);try{await this['_http'][_0x68b62d(0xc7)](_0x1ded83,{'body':_0x435025});}catch(_0x40b614){throw this['_logService'][_0x68b62d(0x127)](_0x68b62d(0x26a),_0x68b62d(0x280)),_0x40b614;}}async[_0x3bdab3(0x18c)](_0x2196ac){const _0xce64c=_0x3bdab3,{unitID:_0x19d564,from:_0x951434,to:_0x4d2b21,unitType:_0x5b1d1d}=_0x2196ac[_0xce64c(0x3ac)];return(await this[_0xce64c(0x28e)][_0xce64c(0x111)]({'metadata':void 0x0},{'unitID':_0x19d564,'type':_0x5b1d1d,'from':_0x951434,'to':_0x4d2b21}))[_0xce64c(0x97)];}};_t=vn([me(0x0,_0x279e5b(_0x24b00a)),me(0x1,_0x279e5b(_0x2a4381)),me(0x2,_0x37d874),me(0x3,_0x2cecb4),me(0x4,_0x4d41e7)],_t);var In=Object['defineProperty'],En=Object['getOwnPropertyDescriptor'],bs=(_0x2f5107,_0x29db15,_0x3a04ef,_0x141d5b)=>{const _0x55ec8e=_0x3bdab3;for(var _0xcd641b=_0x141d5b>0x1?void 0x0:_0x141d5b?En(_0x29db15,_0x3a04ef):_0x29db15,_0x2507cd=_0x2f5107[_0x55ec8e(0x2d9)]-0x1,_0x208d44;_0x2507cd>=0x0;_0x2507cd--)(_0x208d44=_0x2f5107[_0x2507cd])&&(_0xcd641b=(_0x141d5b?_0x208d44(_0x29db15,_0x3a04ef,_0xcd641b):_0x208d44(_0xcd641b))||_0xcd641b);return _0x141d5b&&_0xcd641b&&In(_0x29db15,_0x3a04ef,_0xcd641b),_0xcd641b;},M=(_0x579d0d,_0x2fd766)=>(_0xcfe768,_0x2992da)=>_0x2fd766(_0xcfe768,_0x2992da,_0x579d0d),_e=(_0x170f28=>(_0x170f28[_0x170f28[_0x3bdab3(0x1c8)]=0x0]='IDLE',_0x170f28[_0x170f28['JOINING']=0x1]=_0x3bdab3(0x284),_0x170f28[_0x170f28[_0x3bdab3(0x37a)]=0x2]='OFFLINE',_0x170f28[_0x170f28[_0x3bdab3(0x121)]=0x3]=_0x3bdab3(0x121),_0x170f28))(_e||{});let ut=class extends _0x300f85{constructor(_0x147724,_0x33558f,_0x559bcc,_0x3294d0,_0xdb394,_0x370f3f,_0x3d15a8,_0x9d152a){const _0x1975c8=_0x3bdab3;super(),l(this,_0x1975c8(0x27f),new _0x2fb415(0x0)),l(this,_0x1975c8(0x14a),this[_0x1975c8(0x27f)][_0x1975c8(0x267)]()),l(this,'_event$',new _0x4a8f66()),l(this,_0x1975c8(0x126),this[_0x1975c8(0x1c2)][_0x1975c8(0x267)]()),l(this,_0x1975c8(0x3be)),l(this,_0x1975c8(0x10f)),l(this,_0x1975c8(0x18f)),(this[_0x1975c8(0x202)]=_0x147724,this['_logService']=_0x559bcc,this['_beforeCloseService']=_0x3294d0,this[_0x1975c8(0x2c7)]=_0xdb394,this[_0x1975c8(0x1bd)]=_0x370f3f,this[_0x1975c8(0x26d)]=_0x3d15a8,this[_0x1975c8(0x2b0)]=_0x9d152a,_0x33558f[_0x1975c8(0x19c)](_0xdf0e3e(this[_0x1975c8(0x99)]))[_0x1975c8(0x2b5)](_0x2257c0=>{const _0x4a6972=_0x1975c8;var _0x59ab5b;typeof _0x2257c0>'u'||(this[_0x4a6972(0x3be)]=_0x2257c0,_0x2257c0?(this[_0x4a6972(0x106)](_0x2257c0),this['_socketMessageSubscription']=this[_0x4a6972(0x3be)][_0x4a6972(0x2f5)][_0x4a6972(0x2b5)](_0x3df569=>{const _0xc36351=_0x4a6972;_0x3df569[_0xc36351(0x3b0)]===this[_0xc36351(0x202)]&&this[_0xc36351(0x281)](_0x3df569);})):(this['_sessionStatus$']['next'](0x2),(_0x59ab5b=this['_socketMessageSubscription'])==null||_0x59ab5b[_0x4a6972(0x39a)](),this[_0x4a6972(0x10f)]=null));}),this[_0x1975c8(0x18d)](this[_0x1975c8(0x1e0)][_0x1975c8(0x2cb)](()=>{const _0x34fade=_0x1975c8;var _0x2a12f5;(_0x2a12f5=this[_0x34fade(0x3be)])==null||_0x2a12f5['send']({'cmd':I[_0x34fade(0x243)],'data':{'roomID':this['_unitID']}});})));}get[_0x3bdab3(0x317)](){const _0xe54b2d=_0x3bdab3;return this['_sessionStatus$'][_0xe54b2d(0x298)]();}['getMemberID'](){const _0x8d139=_0x3bdab3;var _0x1a452a,_0x22abf7;return(_0x22abf7=(_0x1a452a=this['_socket'])==null?void 0x0:_0x1a452a[_0x8d139(0x230)])!=null?_0x22abf7:null;}[_0x3bdab3(0x328)](){const _0x4f99a2=_0x3bdab3;super[_0x4f99a2(0x328)](),this[_0x4f99a2(0x99)][_0x4f99a2(0x1c7)](),this[_0x4f99a2(0x99)][_0x4f99a2(0x1fc)]();}[_0x3bdab3(0x281)](_0x242c41){const _0x27c766=_0x3bdab3;_0x242c41[_0x27c766(0x225)]===I[_0x27c766(0x2d6)]?this[_0x27c766(0xe9)](_0x242c41):_0x242c41[_0x27c766(0x225)]===I[_0x27c766(0x144)]&&this[_0x27c766(0xd7)](_0x242c41);}[_0x3bdab3(0x106)](_0x409f18){const _0x4f42ac=_0x3bdab3;this[_0x4f42ac(0x27f)][_0x4f42ac(0x1c7)](0x1),_0x409f18[_0x4f42ac(0x204)]({'cmd':I[_0x4f42ac(0x2d6)],'routeKey':this[_0x4f42ac(0x202)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4f42ac(0x202)]}]}});}['_onJoinRoomEvent'](_0x38db1b){const _0x1836cb=_0x3bdab3;var _0x5228d0;if(_0x38db1b['code']===Nt[_0x1836cb(0x165)]){this['_messageService'][_0x1836cb(0x270)]({'type':_0x32f68a['Warning'],'content':this[_0x1836cb(0x26d)]['t'](_0x1836cb(0xdc))}),this[_0x1836cb(0x27f)]['next'](0x2);return;}this[_0x1836cb(0x27f)][_0x1836cb(0x1c7)](0x3);const _0xafc5ee=(_0x5228d0=_0x38db1b['data']['roomInfos'][this[_0x1836cb(0x202)]])==null?void 0x0:_0x5228d0[_0x1836cb(0x2ba)];_0xafc5ee&&_0xafc5ee[_0x1836cb(0x2fa)](_0x5d4b8e=>this[_0x1836cb(0x2b0)][_0x1836cb(0x1ac)](this[_0x1836cb(0x202)],_0x5d4b8e));}[_0x3bdab3(0xd7)](_0x21128f){const _0x33fa31=_0x3bdab3;try{const _0x211fd4=_0x21128f[_0x33fa31(0x3ac)];switch(_0x211fd4[_0x33fa31(0xd4)]){case _0x19dc79[_0x33fa31(0xc5)]:this['_onUserJoin'](_0x211fd4),this[_0x33fa31(0x1c2)][_0x33fa31(0x1c7)](_0x211fd4);break;case _0x19dc79[_0x33fa31(0xcd)]:this['_onUserLeave'](_0x211fd4),this['_event$'][_0x33fa31(0x1c7)](_0x211fd4);break;case _0x19dc79[_0x33fa31(0x2b3)]:this['_clearCollaborationTimeoutTimer'](),this[_0x33fa31(0x1c2)][_0x33fa31(0x1c7)](_0x211fd4);break;case _0x19dc79[_0x33fa31(0x3b5)]:this[_0x33fa31(0x140)]['error'](_0x33fa31(0x12b)+JSON[_0x33fa31(0xc8)](_0x211fd4)),this['_event$'][_0x33fa31(0x1c7)](_0x211fd4);break;default:this[_0x33fa31(0x1c2)][_0x33fa31(0x1c7)](_0x211fd4);}}catch(_0x39b2b3){this[_0x33fa31(0x140)]['error'](_0x39b2b3,_0x21128f);}}[_0x3bdab3(0x16b)](_0x3aca3c){const _0x12976a=_0x3bdab3;this[_0x12976a(0x2b0)][_0x12976a(0x1ac)](this[_0x12976a(0x202)],_0x3aca3c[_0x12976a(0x3ac)]);}[_0x3bdab3(0x361)](_0x13aead){const _0x56db27=_0x3bdab3;this[_0x56db27(0x2b0)][_0x56db27(0xe0)](this[_0x56db27(0x202)],_0x13aead[_0x56db27(0x3ac)]['memberID']);}async[_0x3bdab3(0x204)](_0x38f2f2,_0xf4fc91){const _0x5d878b=_0x3bdab3;if(this[_0x5d878b(0x317)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x38f2f2[_0x5d878b(0xd4)]===_0x19dc79['NEW_CHANGESETS']&&this[_0x5d878b(0x382)](),this[_0x5d878b(0x3be)]['send']({'cmd':I[_0x5d878b(0x23e)],'routeKey':_0xf4fc91,'routeType':'','data':_0x38f2f2});}catch(_0x330976){this[_0x5d878b(0x140)][_0x5d878b(0x127)](_0x330976);}}[_0x3bdab3(0x382)](){const _0x2ce1c6=_0x3bdab3;var _0x34320c;this[_0x2ce1c6(0x18f)]=window[_0x2ce1c6(0x1b1)](()=>{const _0x1168b4=_0x2ce1c6;this[_0x1168b4(0x18f)]=null,this[_0x1168b4(0x2c7)][_0x1168b4(0x270)]({'type':_0x32f68a[_0x1168b4(0x1cb)],'content':this[_0x1168b4(0x26d)]['t']('session.collaboration-timeout')});},(_0x34320c=this[_0x2ce1c6(0x1bd)][_0x2ce1c6(0x384)](ps))!=null?_0x34320c:Is);}[_0x3bdab3(0x26f)](){const _0x4c1d80=_0x3bdab3;this[_0x4c1d80(0x18f)]&&(clearTimeout(this[_0x4c1d80(0x18f)]),this['_collaborationTimeoutTimer']=null);}};ut=bs([M(0x2,_0x2cecb4),M(0x3,_0xb59960),M(0x4,_0x2ac335),M(0x5,_0x37d874),M(0x6,_0x279e5b(_0x25e6c6)),M(0x7,_0x279e5b(ee))],ut);let Re=class extends _0x292c4b{constructor(_0x1e1e10,_0x490f3d,_0xf460df,_0x18bf6f,_0x28f0c3,_0x393c8b){const _0x270de6=_0x3bdab3;super(),l(this,_0x270de6(0x1ca),new _0x2fb415(void 0x0)),l(this,_0x270de6(0x177),new Map()),l(this,_0x270de6(0x3c1),new _0x2fb415(0x0)),l(this,_0x270de6(0x21b),this[_0x270de6(0x3c1)]['asObservable']()),l(this,_0x270de6(0x25e),!0x1),l(this,'_sendHeartbeatTimer'),l(this,_0x270de6(0x15e)),l(this,_0x270de6(0x207)),l(this,_0x270de6(0x38b),0x0),(this['_injector']=_0x1e1e10,this[_0x270de6(0x26d)]=_0x490f3d,this[_0x270de6(0x2c7)]=_0xf460df,this[_0x270de6(0x140)]=_0x18bf6f,this[_0x270de6(0x1bd)]=_0x28f0c3,this[_0x270de6(0x242)]=_0x393c8b);}get[_0x3bdab3(0x3be)](){const _0x1b99be=_0x3bdab3;return this[_0x1b99be(0x1ca)][_0x1b99be(0x298)]();}['dispose'](){const _0x313cb7=_0x3bdab3;super[_0x313cb7(0x328)](),this[_0x313cb7(0x177)][_0x313cb7(0x2fa)](_0x14e61a=>_0x14e61a['dispose']()),this[_0x313cb7(0x177)][_0x313cb7(0x2f8)](),this['_status$'][_0x313cb7(0x1fc)]();}async[_0x3bdab3(0x276)](_0x49a69a){const _0xc5b9a4=_0x3bdab3;if(this[_0xc5b9a4(0x177)][_0xc5b9a4(0x27c)](_0x49a69a))return this['_sessions'][_0xc5b9a4(0x132)](_0x49a69a);this[_0xc5b9a4(0x24b)]();const _0xbe35a6=this[_0xc5b9a4(0x191)]['createInstance'](ut,_0x49a69a,this['_socket$'][_0xc5b9a4(0x267)]());return this['_sessions'][_0xc5b9a4(0x156)](_0x49a69a,_0xbe35a6),_0xbe35a6;}[_0x3bdab3(0x1e6)](){const _0x55652c=_0x3bdab3;var _0x145859;const _0x458e9f=(_0x145859=this[_0x55652c(0x1bd)][_0x55652c(0x384)](Ji))!=null?_0x145859:zi;return this[_0x55652c(0x242)]['createSocket'](_0x458e9f);}['_tryEnsureSocket'](){const _0x2d2fde=_0x3bdab3;try{const _0x38b686=this[_0x2d2fde(0x1e6)]();if(_0x38b686){const _0x14038=_0x38b686[_0x2d2fde(0x204)];_0x38b686[_0x2d2fde(0x204)]=_0x126fef=>(this[_0x2d2fde(0x192)](),_0x14038['apply'](_0x38b686,[_0x126fef])),_0x38b686['message$']['subscribe'](_0x540535=>this['_onMessage'](_0x38b686,_0x540535)),_0x38b686[_0x2d2fde(0x3ad)][_0x2d2fde(0x19c)](_0x319274(0x1))[_0x2d2fde(0x2b5)](_0x5355fe=>this[_0x2d2fde(0x140)]['error'](_0x2d2fde(0x2a7),_0x5355fe)),_0x38b686[_0x2d2fde(0x17c)][_0x2d2fde(0x19c)](_0x319274(0x1))[_0x2d2fde(0x2b5)](()=>{this['_onConnectionOpen'](_0x38b686);}),_0x38b686[_0x2d2fde(0x23d)][_0x2d2fde(0x19c)](_0x319274(0x1))['subscribe'](_0x1e139e=>{const _0x2b5f15=_0x2d2fde;this[_0x2b5f15(0x140)][_0x2b5f15(0x23b)]('[CollaborationSessionService]','socket\x20close',_0x1e139e),this['_onConnectionFailed']();});}}catch(_0x58ce5f){this[_0x2d2fde(0x140)][_0x2d2fde(0x127)](_0x58ce5f),this[_0x2d2fde(0x168)]();}}[_0x3bdab3(0xee)](_0x2d0132){const _0x3bf175=_0x3bdab3;this[_0x3bf175(0x140)][_0x3bf175(0x23b)](_0x3bf175(0xb4),_0x3bf175(0x3a8)),_0x2d0132['send']({'cmd':I[_0x3bf175(0x190)]}),this[_0x3bf175(0x192)]();}[_0x3bdab3(0x168)](){const _0x48e760=_0x3bdab3;var _0x17fd9a;this[_0x48e760(0x3c1)]['next'](0x2),this['_socket$']['next'](null),this['_clearTimeoutTimer'](),this[_0x48e760(0x251)](),this[_0x48e760(0x25e)]=!0x1,this[_0x48e760(0x38b)]<((_0x17fd9a=this[_0x48e760(0x1bd)][_0x48e760(0x384)](tn))!=null?_0x17fd9a:sn)?(this[_0x48e760(0x2af)](this[_0x48e760(0x38b)]),this[_0x48e760(0x38b)]+=0x1):this[_0x48e760(0x2c7)][_0x48e760(0x270)]({'type':_0x32f68a[_0x48e760(0x1cb)],'content':this[_0x48e760(0x26d)]['t'](_0x48e760(0x151))});}[_0x3bdab3(0x2af)](_0x4dc1e4){const _0x1a5138=_0x3bdab3;var _0x27eda5;const _0x33f267=((_0x27eda5=this[_0x1a5138(0x1bd)][_0x1a5138(0x384)](Qi))!=null?_0x27eda5:en)*0x2**_0x4dc1e4;this[_0x1a5138(0x2c7)]['show']({'type':_0x32f68a[_0x1a5138(0x13d)],'content':this[_0x1a5138(0x26d)]['t'](_0x1a5138(0x241))}),this[_0x1a5138(0x207)]=setTimeout(()=>{const _0x122113=_0x1a5138;this['_tryEnsureSocket'](),clearTimeout(this[_0x122113(0x207)]),this[_0x122113(0x207)]=null;},_0x33f267);}[_0x3bdab3(0x192)](){const _0x2c701f=_0x3bdab3;var _0x15cf28;this[_0x2c701f(0x251)](),this[_0x2c701f(0x250)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x15cf28=this[_0x2c701f(0x1bd)][_0x2c701f(0x384)](Zi))!=null?_0x15cf28:qi);}[_0x3bdab3(0x21d)](){const _0x30eaa9=_0x3bdab3;this[_0x30eaa9(0x3be)][_0x30eaa9(0x204)]({'cmd':I[_0x30eaa9(0x325)]}),this['_waitForHeartbeatResponse']();}[_0x3bdab3(0xfb)](){const _0x49054f=_0x3bdab3;var _0x180bf1;this[_0x49054f(0x15e)]=setTimeout(()=>this[_0x49054f(0x168)](),(_0x180bf1=this['_configService'][_0x49054f(0x384)](ps))!=null?_0x180bf1:Is);}[_0x3bdab3(0x130)](_0x273ee6,_0x2ed61f){const _0x40e04d=_0x3bdab3,{cmd:_0x85c96e}=_0x2ed61f;_0x85c96e===I['HELLO']&&!this[_0x40e04d(0x25e)]&&(_0x273ee6['memberID']=_0x2ed61f[_0x40e04d(0x3ac)][_0x40e04d(0x230)],this[_0x40e04d(0x1ca)][_0x40e04d(0x1c7)](_0x273ee6),this[_0x40e04d(0x3c1)]['next'](0x3),this['_socketReady']=!0x0),_0x85c96e===I['HEARTBEAT']&&this[_0x40e04d(0x378)](),this[_0x40e04d(0x192)]();}[_0x3bdab3(0x251)](){const _0x5df82d=_0x3bdab3;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x5df82d(0x250)]),this[_0x5df82d(0x250)]=null);}[_0x3bdab3(0x378)](){const _0x1740c3=_0x3bdab3;this[_0x1740c3(0x15e)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x1740c3(0x15e)]=null);}};Re=bs([M(0x0,_0x279e5b(_0x5df577)),M(0x1,_0x279e5b(_0x25e6c6)),M(0x2,_0x2ac335),M(0x3,_0x2cecb4),M(0x4,_0x37d874),M(0x5,Cs)],Re);var Cn=Object[_0x3bdab3(0x162)],bn=Object[_0x3bdab3(0x123)],Rn=(_0xd1e38b,_0x27efd1,_0x46c007,_0x181dfe)=>{for(var _0x2276d5=_0x181dfe>0x1?void 0x0:_0x181dfe?bn(_0x27efd1,_0x46c007):_0x27efd1,_0x56043f=_0xd1e38b['length']-0x1,_0x13516f;_0x56043f>=0x0;_0x56043f--)(_0x13516f=_0xd1e38b[_0x56043f])&&(_0x2276d5=(_0x181dfe?_0x13516f(_0x27efd1,_0x46c007,_0x2276d5):_0x13516f(_0x2276d5))||_0x2276d5);return _0x181dfe&&_0x2276d5&&Cn(_0x27efd1,_0x46c007,_0x2276d5),_0x2276d5;},Se=(_0x1f3786,_0x29da9e)=>(_0x34d396,_0x5a9383)=>_0x29da9e(_0x34d396,_0x5a9383,_0x1f3786);let D=class extends _0x292c4b{constructor(_0x5e7af6,_0x59e6eb,_0xc673e5,_0x2cdce9,_0x2ad7d9){const _0x2101ef=_0x3bdab3;super(),l(this,_0x2101ef(0x1b0),new Map()),l(this,_0x2101ef(0x28f),new Map()),l(this,_0x2101ef(0x3b1),!0x1),(this[_0x2101ef(0x1bd)]=_0x5e7af6,this[_0x2101ef(0x32d)]=_0x59e6eb,this[_0x2101ef(0x1e0)]=_0xc673e5,this[_0x2101ef(0x26d)]=_0x2cdce9,this[_0x2101ef(0x118)]=_0x2ad7d9,this[_0x2101ef(0x147)]());}[_0x3bdab3(0x2e6)](){const _0x4c1100=_0x3bdab3;this[_0x4c1100(0x3b1)]=!0x0;}[_0x3bdab3(0x264)](){const _0x4534d5=_0x3bdab3;this[_0x4534d5(0x3b1)]=!0x1;}[_0x3bdab3(0x328)](){const _0x4140fa=_0x3bdab3;this[_0x4140fa(0x210)]()[_0x4140fa(0xcc)](()=>super[_0x4140fa(0x328)]());}async[_0x3bdab3(0x2a5)](_0x5b3ea6){const _0x76ecc=_0x3bdab3;return this[_0x76ecc(0x3b1)]?null:this[_0x76ecc(0x32d)]['getItem'](Wt(_0x5b3ea6));}async[_0x3bdab3(0x107)](_0x356f39,_0x557e53){const _0x3e43ec=_0x3bdab3;return!!this[_0x3e43ec(0x32d)][_0x3e43ec(0x172)](_0x356f39,_0x557e53);}[_0x3bdab3(0x124)](_0x487617,_0x34b5f1,_0x4ab194,_0x349df6){const _0x3927a6=_0x3bdab3,_0x429eba=this['_revisionService']['getCurrentRevForDocument'](_0x487617);this[_0x3927a6(0x1b0)][_0x3927a6(0x156)](_0x487617,{'unitID':_0x487617,'type':_0x34b5f1,'awaitingChangeset':_0x4ab194,'mutations':_0x349df6,'rev':_0x429eba}),this[_0x3927a6(0x28f)][_0x3927a6(0x27c)](_0x487617)||this[_0x3927a6(0xc2)](_0x487617);}[_0x3bdab3(0xc2)](_0x3a95e4){const _0x2913aa=_0x3bdab3,_0x57f089=this[_0x2913aa(0x2ca)]();_0x57f089===0x0?this[_0x2913aa(0xec)](_0x3a95e4):this['_saveTaskMap']['set'](_0x3a95e4,setTimeout(()=>this['_saveCache'](_0x3a95e4),_0x57f089));}[_0x3bdab3(0x2ca)](){const _0x4b3153=_0x3bdab3;var _0x30503e;return(_0x30503e=this[_0x4b3153(0x1bd)][_0x4b3153(0x384)](nn))!=null?_0x30503e:rn;}[_0x3bdab3(0xec)](_0x1fcfe1){const _0x268742=_0x3bdab3,_0x1e26fe=this[_0x268742(0x28f)][_0x268742(0x132)](_0x1fcfe1);return _0x1e26fe!==void 0x0&&window[_0x268742(0x1b3)](_0x1e26fe),this[_0x268742(0x32d)][_0x268742(0x172)](Wt(_0x1fcfe1),this[_0x268742(0x1b0)]['get'](_0x1fcfe1))[_0x268742(0xcc)](()=>this[_0x268742(0x28f)]['delete'](_0x1fcfe1));}async[_0x3bdab3(0x210)](){const _0x22b54=_0x3bdab3,_0x83019d=[];this['_saveTaskMap'][_0x22b54(0x2fa)]((_0x2c4791,_0x2a7d8d)=>{const _0x58fbbb=_0x22b54;window[_0x58fbbb(0x1b3)](_0x2c4791),_0x83019d[_0x58fbbb(0x37d)](this[_0x58fbbb(0xec)](_0x2a7d8d)[_0x58fbbb(0xcc)](()=>{const _0x556034=_0x58fbbb;this[_0x556034(0x28f)][_0x556034(0xfc)](_0x2a7d8d);}));}),await Promise['all'](_0x83019d);}[_0x3bdab3(0x147)](){const _0x81393=_0x3bdab3;this[_0x81393(0x18d)](this[_0x81393(0x1e0)][_0x81393(0x39d)](()=>{const _0x2c15b1=_0x81393;if(this[_0x2c15b1(0x28f)][_0x2c15b1(0x316)])return this['_localeService']['t'](_0x2c15b1(0x1a7));}));}};D=Rn([Se(0x0,_0x37d874),Se(0x1,_0x5b24bc),Se(0x2,_0xb59960),Se(0x3,_0x279e5b(_0x25e6c6)),Se(0x4,_0x279e5b(_0x54c94d))],D);function Wt(_0x1c3d70){const _0x47454e=_0x3bdab3;return _0x47454e(0x282)+_0x1c3d70;}const Xe=_0x3ce7c5(_0x3bdab3(0x217));function _0x92e7(_0x1de3e4,_0x61b3d5){const _0x25d07a=_0x25d0();return _0x92e7=function(_0x92e77f,_0x5e83dd){_0x92e77f=_0x92e77f-0x95;let _0x92513d=_0x25d07a[_0x92e77f];return _0x92513d;},_0x92e7(_0x1de3e4,_0x61b3d5);}var Rs=(_0x6627c8=>(_0x6627c8[_0x6627c8[_0x3bdab3(0x214)]=0x0]=_0x3bdab3(0x214),_0x6627c8[_0x6627c8[_0x3bdab3(0x2c5)]=0x1]=_0x3bdab3(0x2c5),_0x6627c8))(Rs||{});const Gt=0x7530,Yt=_0x3bdab3(0x347);class Tn extends _0x292c4b{constructor(){const _0x311aeb=_0x3bdab3;super(),l(this,_0x311aeb(0x260),_0x572ff7[_0x311aeb(0x206)]()),l(this,_0x311aeb(0x36a),new Set()),l(this,_0x311aeb(0x2fb),new Map()),l(this,_0x311aeb(0x12e),null),l(this,_0x311aeb(0x226),new Map()),l(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x38d70f=_0x3bdab3;super[_0x38d70f(0x328)](),this['_clearOtherTimers'][_0x38d70f(0x2fa)]((_0x45d04c,_0x31c32c)=>this[_0x38d70f(0x10e)](_0x31c32c)),this[_0x38d70f(0x12e)]&&window[_0x38d70f(0x197)](this[_0x38d70f(0x12e)]);}['getUnitStatus$'](_0x586fc4){const _0x4378b=_0x3bdab3;return this[_0x4378b(0x221)](_0x586fc4)[_0x4378b(0x19c)](_0x24f1b5());}[_0x3bdab3(0x234)](_0x180d62){const _0x456f4b=_0x3bdab3;this['_selfUnitIDs'][_0x456f4b(0x316)]===0x0&&this['_scheduleHeartbeat'](),this[_0x456f4b(0x36a)][_0x456f4b(0x20d)](_0x180d62),this[_0x456f4b(0x188)]({'type':0x0,'memberID':this[_0x456f4b(0x260)],'unitIDs':[_0x180d62],'isForwarded':!0x1});}[_0x3bdab3(0x16a)](_0x5b7656){const _0x39575a=_0x3bdab3;this[_0x39575a(0x36a)][_0x39575a(0xfc)](_0x5b7656),this[_0x39575a(0x36a)][_0x39575a(0x316)]===0x0&&this[_0x39575a(0x12e)]&&window[_0x39575a(0x197)](this[_0x39575a(0x12e)]);}[_0x3bdab3(0x10d)](){const _0x37035a=_0x3bdab3;this[_0x37035a(0x18d)](_0x439c9a(_0xb88582(window,_0x37035a(0x108))['subscribe'](_0x3ad70f=>{const _0x7dbc95=_0x37035a;if(_0x3ad70f[_0x7dbc95(0xf3)]!==Yt||!_0x3ad70f['newValue'])return;const _0x172cef=JSON[_0x7dbc95(0x332)](_0x3ad70f[_0x7dbc95(0x1aa)]);this[_0x7dbc95(0x380)](_0x172cef);}))),window[_0x37035a(0x345)]('unload',()=>this[_0x37035a(0x188)]({'type':0x1,'memberID':this[_0x37035a(0x260)],'unitIDs':Array[_0x37035a(0x2c8)](this['_selfUnitIDs'])}));}[_0x3bdab3(0x380)](_0x41f72b){const _0x5195c7=_0x3bdab3;switch(_0x41f72b[_0x5195c7(0x2ec)]){case 0x0:this[_0x5195c7(0xdb)](_0x41f72b);break;case 0x1:this[_0x5195c7(0x22e)](_0x41f72b);break;case 0x2:this[_0x5195c7(0x2be)](_0x41f72b);break;}}[_0x3bdab3(0xdb)](_0x2774cf){const _0x477765=_0x3bdab3,{unitIDs:_0x541d78,memberID:_0x49ac0a,isForwarded:_0x1196de}=_0x2774cf;_0x541d78['forEach'](_0x11016d=>{const _0x35e2b9=_0x92e7;if(!_0x1196de&&this[_0x35e2b9(0x2fb)][_0x35e2b9(0x27c)](_0x11016d)&&this[_0x35e2b9(0x221)](_0x11016d)[_0x35e2b9(0x1c7)](0x1),!this[_0x35e2b9(0x2fb)][_0x35e2b9(0x27c)](_0x11016d)||!this[_0x35e2b9(0x2fb)][_0x35e2b9(0x132)](_0x11016d)[_0x35e2b9(0x27c)](_0x49ac0a)){const _0x3f6115=this[_0x35e2b9(0x2fb)]['get'](_0x11016d)||new Set();_0x3f6115[_0x35e2b9(0x20d)](_0x49ac0a),this[_0x35e2b9(0x2fb)][_0x35e2b9(0x156)](_0x11016d,_0x3f6115),this[_0x35e2b9(0xeb)](_0x49ac0a);}}),_0x1196de||this[_0x477765(0x188)]({'type':0x0,'memberID':this[_0x477765(0x260)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3bdab3(0xeb)](_0x30545e){const _0xd0c299=_0x3bdab3;this['_removeClearOtherTimer'](_0x30545e);const _0x597352=window[_0xd0c299(0x1b1)](()=>{const _0x4868d5=_0xd0c299;this['_unitOnClients'][_0x4868d5(0x2fa)](_0x53dbf9=>{const _0xa87be7=_0x4868d5;_0x53dbf9[_0xa87be7(0xfc)](_0x30545e);});},Gt*0x2);this[_0xd0c299(0x226)][_0xd0c299(0x156)](_0x30545e,_0x597352);}['_removeClearOtherTimer'](_0x53adf8){const _0x5b00a8=_0x3bdab3;if(this[_0x5b00a8(0x226)][_0x5b00a8(0x27c)](_0x53adf8)){const _0x55362a=this[_0x5b00a8(0x226)][_0x5b00a8(0x132)](_0x53adf8);_0x55362a&&window['clearTimeout'](_0x55362a),this[_0x5b00a8(0x226)][_0x5b00a8(0x156)](_0x53adf8,null);}}[_0x3bdab3(0x22e)](_0x4c1bf9){const _0x35bf0e=_0x3bdab3,{memberID:_0x55aa1f,unitIDs:_0x4167af}=_0x4c1bf9;_0x4167af['forEach'](_0x1b7a1f=>{const _0xdab2e5=_0x92e7;var _0x4b0da5;const _0x48c199=this[_0xdab2e5(0x2fb)]['get'](_0x1b7a1f);_0x48c199&&(_0x48c199[_0xdab2e5(0xfc)](_0x55aa1f),(_0x4b0da5=this[_0xdab2e5(0x221)](_0x1b7a1f))==null||_0x4b0da5[_0xdab2e5(0x1c7)](_0x48c199[_0xdab2e5(0x316)]===0x0?0x0:0x1));}),this[_0x35bf0e(0x10e)](_0x55aa1f);}['_handleHeartbeatEvent'](_0x360804){const _0x3e35d0=_0x3bdab3;this[_0x3e35d0(0xeb)](_0x360804['memberID']);}[_0x3bdab3(0x188)](_0x5cb861){const _0x22c5c2=_0x3bdab3;localStorage['setItem'](Yt,JSON[_0x22c5c2(0xc8)](_0x5cb861));}[_0x3bdab3(0x389)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x197e4f=_0x92e7;this[_0x197e4f(0x188)]({'type':0x2,'memberID':this[_0x197e4f(0x260)]});},Gt);}[_0x3bdab3(0x221)](_0x3152d6){const _0x149765=_0x3bdab3;return this[_0x149765(0xa8)][_0x149765(0x27c)](_0x3152d6)||this[_0x149765(0xa8)][_0x149765(0x156)](_0x3152d6,new _0x2fb415(0x0)),this[_0x149765(0xa8)][_0x149765(0x132)](_0x3152d6);}}var On=Object['defineProperty'],Dn=Object[_0x3bdab3(0x123)],wn=(_0x20f457,_0x290eec,_0x3178c7,_0x1af188)=>{const _0x33e9c2=_0x3bdab3;for(var _0x5e0853=_0x1af188>0x1?void 0x0:_0x1af188?Dn(_0x290eec,_0x3178c7):_0x290eec,_0x4f17e1=_0x20f457[_0x33e9c2(0x2d9)]-0x1,_0x31f35d;_0x4f17e1>=0x0;_0x4f17e1--)(_0x31f35d=_0x20f457[_0x4f17e1])&&(_0x5e0853=(_0x1af188?_0x31f35d(_0x290eec,_0x3178c7,_0x5e0853):_0x31f35d(_0x5e0853))||_0x5e0853);return _0x1af188&&_0x5e0853&&On(_0x290eec,_0x3178c7,_0x5e0853),_0x5e0853;},Kt=(_0x2adcd7,_0x46707e)=>(_0x3c0f87,_0x1e8399)=>_0x46707e(_0x3c0f87,_0x1e8399,_0x2adcd7);let ke=class{constructor(_0x495cd6,_0x75e17){const _0x40b019=_0x3bdab3;this[_0x40b019(0x191)]=_0x495cd6,this[_0x40b019(0x2ef)]=_0x75e17;}[_0x3bdab3(0x1fa)](_0xfc9a95){const _0x5a12c7=_0x3bdab3;this[_0x5a12c7(0x3a9)](_0xfc9a95),this['_transformPreviousActiveRange'](_0xfc9a95);}['transformRemoteChangeset'](_0x5cba6a){const _0x48fe79=_0x3bdab3,_0x2aab35=this[_0x48fe79(0x191)][_0x48fe79(0x132)](_0x4a03ac),{redoCache:_0x3a92a6}=_0x2aab35[_0x48fe79(0x3c0)]();if(_0x3a92a6[_0x48fe79(0x2d9)]===0x0)return _0x5cba6a;let _0x490019=_0x572ff7[_0x48fe79(0x1ad)](_0x5cba6a[_0x48fe79(0x295)][0x0]);for(let _0x53cd00=0x0;_0x53cd00<_0x3a92a6['length'];_0x53cd00++){const _0x31aaf4={'id':_0x48fe79(0x22b),'params':{..._0x3a92a6[_0x53cd00]}},_0xb8616d=this[_0x48fe79(0x2ef)][_0x48fe79(0x18e)](_0x490019,_0x31aaf4,!0x1);if(_0x3295bd(_0xb8616d))throw _0xb8616d[_0x48fe79(0x127)];_0x490019=_0xb8616d[_0x48fe79(0x2de)];}return{..._0x572ff7[_0x48fe79(0x1ad)](_0x5cba6a),'mutations':[_0x490019]};}[_0x3bdab3(0x3a9)](_0x3b3e63){const _0x3cee68=_0x3bdab3,_0x311c62=this['_injector'][_0x3cee68(0x132)](_0x4a03ac),{undoCache:_0x475f31,redoCache:_0x449107}=_0x311c62['getUndoRedoMutationParamsCache']();if(_0x475f31[_0x3cee68(0x2d9)]===0x0||_0x449107[_0x3cee68(0x2d9)]===0x0)return;const _0x48e747=[],_0x1a48f4=[];let _0x20fa42=_0x572ff7[_0x3cee68(0x1ad)](_0x3b3e63[_0x3cee68(0x295)][0x0]),_0x3017cc=_0x572ff7[_0x3cee68(0x1ad)](_0x3b3e63[_0x3cee68(0x295)][0x0]);for(let _0x56512f=_0x475f31[_0x3cee68(0x2d9)]-0x1;_0x56512f>=0x0;_0x56512f--){const _0x4506c3={'id':_0x3cee68(0x22b),'params':{..._0x475f31[_0x56512f]}},_0x26c3c2={'id':_0x3cee68(0x22b),'params':{..._0x449107[_0x56512f]}},_0x4ff385=this[_0x3cee68(0x2ef)][_0x3cee68(0x18e)](_0x20fa42,_0x4506c3,!0x1),_0x10aa11=this[_0x3cee68(0x2ef)][_0x3cee68(0x18e)](_0x3017cc,_0x26c3c2,!0x1);if(_0x3295bd(_0x4ff385))throw _0x4ff385[_0x3cee68(0x127)];if(_0x3295bd(_0x10aa11))throw _0x10aa11[_0x3cee68(0x127)];_0x48e747['unshift'](_0x4ff385[_0x3cee68(0x32f)][_0x3cee68(0x3bd)]),_0x1a48f4[_0x3cee68(0x240)](_0x10aa11['m2Prime']['params']),_0x20fa42=_0x4ff385[_0x3cee68(0x2de)],_0x3017cc=_0x10aa11[_0x3cee68(0x2de)];}_0x311c62['setUndoRedoMutationParamsCache']({'undoCache':_0x48e747,'redoCache':_0x1a48f4});}[_0x3bdab3(0x114)](_0x25255a){const _0x25abb2=_0x3bdab3,_0x246bf9=this[_0x25abb2(0x191)][_0x25abb2(0x132)](_0x4a03ac),_0x4a5bfc=_0x246bf9[_0x25abb2(0x258)]();if(_0x4a5bfc==null)return;const _0x552754=[{'id':_0x25abb2(0x22b),'params':{'unitId':_0x25255a[_0x25abb2(0x227)],'actions':null,'textRanges':[_0x4a5bfc]}}],_0xbd39a5=this[_0x25abb2(0x2ef)][_0x25abb2(0x2cd)](_0x25255a,_0x552754);if(!_0x155e17(_0xbd39a5))throw _0xbd39a5[_0x25abb2(0x127)];const _0x3404b5=_0xbd39a5[_0x25abb2(0x32f)][0x0][_0x25abb2(0x3bd)][_0x25abb2(0x254)];Array[_0x25abb2(0x2c1)](_0x3404b5)&&_0x3404b5[_0x25abb2(0x2d9)]&&_0x246bf9[_0x25abb2(0xc1)](_0x3404b5[0x0]);}};ke=wn([Kt(0x0,_0x279e5b(_0x5df577)),Kt(0x1,_0x539a09)],ke);var Pn=Object[_0x3bdab3(0x162)],Nn=Object[_0x3bdab3(0x123)],Mn=(_0x3edd54,_0x35b619,_0x4ab0e3,_0x1a72af)=>{const _0x5b2426=_0x3bdab3;for(var _0x2fb985=_0x1a72af>0x1?void 0x0:_0x1a72af?Nn(_0x35b619,_0x4ab0e3):_0x35b619,_0x506ff2=_0x3edd54[_0x5b2426(0x2d9)]-0x1,_0x39a829;_0x506ff2>=0x0;_0x506ff2--)(_0x39a829=_0x3edd54[_0x506ff2])&&(_0x2fb985=(_0x1a72af?_0x39a829(_0x35b619,_0x4ab0e3,_0x2fb985):_0x39a829(_0x2fb985))||_0x2fb985);return _0x1a72af&&_0x2fb985&&Pn(_0x35b619,_0x4ab0e3,_0x2fb985),_0x2fb985;},Xt=(_0x2b18f3,_0x11e53a)=>(_0x514e80,_0x336039)=>_0x11e53a(_0x514e80,_0x336039,_0x2b18f3);let Be=class{constructor(_0x5cdfdd,_0x50808e){const _0x48818a=_0x3bdab3;this[_0x48818a(0x191)]=_0x5cdfdd,this[_0x48818a(0x2ef)]=_0x50808e;}[_0x3bdab3(0xb8)](_0x5c7fc0){const _0x85a493=_0x3bdab3;var _0x51610f;const _0x233757=this[_0x85a493(0x191)][_0x85a493(0x132)](_0x23f9d5),_0x206395=(_0x51610f=_0x233757['getSelections']())!=null?_0x51610f:[],_0x4083ac=_0x206395==null?void 0x0:_0x206395[_0x85a493(0x3bc)](_0x53dc05);if(_0x4083ac['length']===0x0)return;const _0x36994b=[{'id':_0x85a493(0x22b),'params':{'unitId':_0x5c7fc0[_0x85a493(0x227)],'actions':null,'textRanges':_0x4083ac}}],_0x4bf2a4=this[_0x85a493(0x2ef)][_0x85a493(0x2cd)](_0x5c7fc0,_0x36994b);if(!_0x155e17(_0x4bf2a4))throw _0x4bf2a4[_0x85a493(0x127)];const _0x48e123=_0x4bf2a4[_0x85a493(0x32f)][0x0][_0x85a493(0x3bd)][_0x85a493(0x254)];Array[_0x85a493(0x2c1)](_0x48e123)&&_0x48e123[_0x85a493(0x2d9)]&&_0x233757[_0x85a493(0x32e)](_0x48e123,!0x1);}};Be=Mn([Xt(0x0,_0x279e5b(_0x5df577)),Xt(0x1,_0x539a09)],Be);function Ts(_0x33e1ae){const _0x506862=_0x3bdab3;let _0x279882='';for(const _0x18e218 of _0x33e1ae){const {startOffset:_0x5ba2ef,endOffset:_0x311cfb,isActive:_0x1ccb74}=_0x18e218;_0x279882[_0x506862(0x2d9)]&&(_0x279882+=','),_0x279882+=_0x5ba2ef+':'+_0x311cfb+':'+(_0x1ccb74?'1':'0');}return _0x279882;}function An(_0x593583){const _0x4a184b=_0x3bdab3,_0xbd048a=_0x593583[_0x4a184b(0x10b)](','),_0x1d2bc2=[];for(const _0x59c82d of _0xbd048a){const [_0x480385,_0x9a040c,_0x3511f2]=_0x59c82d[_0x4a184b(0x10b)](':');_0x1d2bc2['push']({'startOffset':Number(_0x480385),'endOffset':Number(_0x9a040c),'collapsed':_0x480385===_0x9a040c,'isActive':_0x3511f2==='1'});}return _0x1d2bc2['some'](_0x23991b=>_0x23991b['isActive'])||(_0x1d2bc2[0x0][_0x4a184b(0x1f5)]=!0x0),_0x1d2bc2;}class Mt extends _0x300f85{constructor(){const _0x184d3e=_0x3bdab3;super(...arguments),l(this,_0x184d3e(0x215),new _0x2fb415(null)),l(this,_0x184d3e(0x2a0),this[_0x184d3e(0x215)][_0x184d3e(0x267)]());}[_0x3bdab3(0x31c)](_0x303a26){const _0x25854f=_0x3bdab3,{unitID:_0x15faba,memberID:_0x4d0da3,textRanges:_0x39516c}=_0x303a26,_0x3c310e=Ts(_0x39516c),_0x1f2f98={'unitID':_0x15faba,'memberID':_0x4d0da3,'selection':_0x3c310e};this[_0x25854f(0x215)][_0x25854f(0x1c7)](_0x1f2f98);}}var yn=Object[_0x3bdab3(0x162)],Un=Object['getOwnPropertyDescriptor'],Ln=(_0x40b91e,_0x5422a4,_0x52cede,_0x38258f)=>{const _0x1fd0ad=_0x3bdab3;for(var _0xbe7c4b=_0x38258f>0x1?void 0x0:_0x38258f?Un(_0x5422a4,_0x52cede):_0x5422a4,_0x3e4a97=_0x40b91e[_0x1fd0ad(0x2d9)]-0x1,_0x2ab23c;_0x3e4a97>=0x0;_0x3e4a97--)(_0x2ab23c=_0x40b91e[_0x3e4a97])&&(_0xbe7c4b=(_0x38258f?_0x2ab23c(_0x5422a4,_0x52cede,_0xbe7c4b):_0x2ab23c(_0xbe7c4b))||_0xbe7c4b);return _0x38258f&&_0xbe7c4b&&yn(_0x5422a4,_0x52cede,_0xbe7c4b),_0xbe7c4b;},Jt=(_0x271000,_0x309849)=>(_0x5728ce,_0xb9e011)=>_0x309849(_0x5728ce,_0xb9e011,_0x271000);let Ve=class{constructor(_0x28eaea,_0x3621e0){const _0x4f2c7f=_0x3bdab3;this['_injector']=_0x28eaea,this[_0x4f2c7f(0x2ef)]=_0x3621e0;}[_0x3bdab3(0xb8)](_0x1e3bad){const _0x53747e=_0x3bdab3;var _0x5e5024,_0x1a3616,_0x1a1f60,_0x1af1ac;const _0x4c02df=this[_0x53747e(0x191)]['get'](_0x24c085),{pluginName:_0x406f98,unitId:_0x36fdf6,sheetId:_0x428d18}=_0x4c02df[_0x53747e(0xfe)]()||{},_0x557381=(_0x5e5024=_0x4c02df[_0x53747e(0x3a1)]())!=null?_0x5e5024:[];if(_0x557381[_0x53747e(0x2d9)]===0x0||!_0x406f98||!_0x36fdf6||!_0x428d18)return;const _0x1c88a9=[{'id':_0x2a3a91['id'],'params':{'unitId':_0x36fdf6,'subUnitId':_0x428d18,'pluginName':_0x406f98,'selections':_0x572ff7[_0x53747e(0x1ad)](_0x557381)}}],_0x34e6fc=this[_0x53747e(0x2ef)][_0x53747e(0x2cd)](_0x1e3bad,_0x1c88a9);if(!_0x155e17(_0x34e6fc))throw _0x34e6fc['error'];const _0x39aeef=(_0x1af1ac=(_0x1a1f60=(_0x1a3616=_0x34e6fc[_0x53747e(0x32f)][0x0])==null?void 0x0:_0x1a3616[_0x53747e(0x3bd)])==null?void 0x0:_0x1a1f60[_0x53747e(0x218)])!=null?_0x1af1ac:_0x557381;Array[_0x53747e(0x2c1)](_0x39aeef)&&_0x39aeef['length']&&this[_0x53747e(0x191)][_0x53747e(0x132)](_0x5ba974)['executeCommand'](_0x2a3a91['id'],{'unitId':_0x36fdf6,'subUnitId':_0x428d18,'pluginName':_0x406f98,'selections':_0x39aeef});}};Ve=Ln([Jt(0x0,_0x279e5b(_0x5df577)),Jt(0x1,_0x539a09)],Ve);const $n=new Set([_0x21601c['id']]);function jn(_0x5c2834,_0x507d52,_0x50fb1a,_0x3b22d3,_0x17a51a){const _0x42bb39=_0x3bdab3;var _0x11e2a2,_0x299c30,_0x5e3b04,_0x226064;const _0x1ece3d=[];for(const _0x5eaec of _0x5c2834)if($n[_0x42bb39(0x27c)](_0x5eaec['id'])){if(_0x1ece3d['length']>0x0)break;_0x1ece3d[_0x42bb39(0x37d)](_0x5eaec);break;}else _0x1ece3d[_0x42bb39(0x37d)](_0x5eaec);const _0x312e3b=(_0x299c30=(_0x11e2a2=_0x17a51a[_0x42bb39(0x246)]())==null?void 0x0:_0x11e2a2[_0x42bb39(0x223)])!=null?_0x299c30:_0x42bb39(0x2f0),_0x55f7dd=(_0x226064=(_0x5e3b04=_0x17a51a[_0x42bb39(0x246)]())==null?void 0x0:_0x5e3b04['memberID'])!=null?_0x226064:_0x42bb39(0x2f0);return{'changeset':{'unitID':_0x507d52,'type':_0x4c5ba5(_0x50fb1a['getUnitType'](_0x507d52)),'baseRev':_0x3b22d3[_0x42bb39(0x3b3)](_0x507d52),'revision':0x0,'userID':_0x312e3b,'memberID':_0x55f7dd,'mutations':_0x1ece3d},'pendingMutations':_0x5c2834[_0x42bb39(0x245)](_0x1ece3d[_0x42bb39(0x2d9)])};}function Hn(_0x530388,_0x4e3d0a,_0x280e6e,_0x27e383,_0x39b089){const _0x540d30=_0x3bdab3;var _0x22de2b,_0x50f0f8,_0x414591,_0xeb80a9;const _0xede70b=[_0x530388[_0x540d30(0x1bc)]((_0x221c34,_0x167c2a)=>{const _0x2fb16a=_0x540d30;var _0x2dcf81;const {id:_0x399b43}=_0x221c34,{id:_0x3d0d93,type:_0x5226d1}=_0x167c2a,_0xb63a0=(_0x2dcf81=_0x221c34[_0x2fb16a(0x3bd)])!=null?_0x2dcf81:{'actions':null},_0x3ba6e4=_0x167c2a[_0x2fb16a(0x3bd)];if(_0x399b43&&_0x399b43!==_0x3d0d93)throw new Error(_0x2fb16a(0x39b)+_0x399b43+_0x2fb16a(0x1a9)+_0x3d0d93+'.');return{..._0x221c34,'id':_0x3d0d93,'type':_0x5226d1,'params':{'unitId':_0x3ba6e4[_0x2fb16a(0x13f)],'textRanges':_0x3ba6e4[_0x2fb16a(0x254)],'actions':_0x526e13[_0x2fb16a(0x1c5)](_0xb63a0['actions'],_0x3ba6e4[_0x2fb16a(0x303)])}};},{})],_0x45d6db=(_0x50f0f8=(_0x22de2b=_0x39b089['getCurrentUser']())==null?void 0x0:_0x22de2b['userID'])!=null?_0x50f0f8:_0x540d30(0x2f0),_0x54686b=(_0xeb80a9=(_0x414591=_0x39b089[_0x540d30(0x246)]())==null?void 0x0:_0x414591[_0x540d30(0x230)])!=null?_0xeb80a9:_0x540d30(0x2f0);return{'changeset':{'unitID':_0x4e3d0a,'type':_0x4c5ba5(_0x280e6e[_0x540d30(0x203)](_0x4e3d0a)),'baseRev':_0x27e383['getCurrentRevForDocument'](_0x4e3d0a),'revision':0x0,'userID':_0x45d6db,'memberID':_0x54686b,'mutations':_0xede70b},'pendingMutations':[]};}var xn=Object[_0x3bdab3(0x162)],Fn=Object['getOwnPropertyDescriptor'],ne=(_0x325bf0,_0x587005,_0x48f402,_0xfbb8f8)=>{const _0x172f33=_0x3bdab3;for(var _0x31b20e=_0xfbb8f8>0x1?void 0x0:_0xfbb8f8?Fn(_0x587005,_0x48f402):_0x587005,_0x2c5dad=_0x325bf0[_0x172f33(0x2d9)]-0x1,_0x4ccdd6;_0x2c5dad>=0x0;_0x2c5dad--)(_0x4ccdd6=_0x325bf0[_0x2c5dad])&&(_0x31b20e=(_0xfbb8f8?_0x4ccdd6(_0x587005,_0x48f402,_0x31b20e):_0x4ccdd6(_0x31b20e))||_0x31b20e);return _0xfbb8f8&&_0x31b20e&&xn(_0x587005,_0x48f402,_0x31b20e),_0x31b20e;},g=(_0xfd1b0c,_0x253d09)=>(_0x5858b3,_0xb01f7c)=>_0x253d09(_0x5858b3,_0xb01f7c,_0xfd1b0c),P=(_0x553c69=>(_0x553c69[_0x3bdab3(0x15c)]=_0x3bdab3(0x1cc),_0x553c69[_0x3bdab3(0x29c)]=_0x3bdab3(0x288),_0x553c69['PENDING']=_0x3bdab3(0xd3),_0x553c69[_0x3bdab3(0x263)]=_0x3bdab3(0x32c),_0x553c69[_0x3bdab3(0x1a2)]='awaiting_with_pending',_0x553c69[_0x3bdab3(0x11f)]=_0x3bdab3(0x2f9),_0x553c69[_0x3bdab3(0x19e)]=_0x3bdab3(0x1e1),_0x553c69[_0x3bdab3(0x37a)]=_0x3bdab3(0x29e),_0x553c69))(P||{});class re{constructor(_0x9683a1,_0x5ce43c,_0x2c1000,_0x4fbbd0,_0x185c1d,_0x218d11,_0x3b72b8,_0x44bba7,_0x18278b){const _0x552416=_0x3bdab3;l(this,_0x552416(0x2a8),null),l(this,_0x552416(0x14d),[]),(this['unitID']=_0x9683a1,this[_0x552416(0x2ec)]=_0x5ce43c,this[_0x552416(0x37e)]=_0x185c1d,this[_0x552416(0x200)]=_0x218d11,this[_0x552416(0x381)]=_0x3b72b8,this[_0x552416(0x118)]=_0x44bba7,this[_0x552416(0x334)]=_0x18278b,this[_0x552416(0x2a8)]=_0x2c1000,this[_0x552416(0x14d)]=_0x4fbbd0);}['_checkMissing'](_0x529a72){const _0xba6748=_0x3bdab3,_0x297c84=this[_0xba6748(0x118)][_0xba6748(0x3b3)](this[_0xba6748(0x227)]);return _0x529a72[_0xba6748(0x1a0)]>_0x297c84+0x1?(this[_0xba6748(0x37e)]['onMissingChangesets']({'from':_0x297c84,'to':_0x529a72[_0xba6748(0x1a0)]-0x1}),!0x0):!0x1;}[_0x3bdab3(0x38a)](_0x2341da){const _0x2f349a=_0x3bdab3;this[_0x2f349a(0x381)][_0x2f349a(0x30f)](this[_0x2f349a(0x227)],_0x2341da);}[_0x3bdab3(0x283)](_0x57fcd0){const _0x1d29c9=_0x3bdab3;var _0x17e6f5,_0x496dc8;(_0x496dc8=(_0x17e6f5=this[_0x1d29c9(0x37e)])['onTransformSelections'])==null||_0x496dc8['call'](_0x17e6f5,_0x57fcd0);}[_0x3bdab3(0x2b4)](_0x2e360f){const _0x45bb53=_0x3bdab3;var _0x52a24c,_0x506fae;return(_0x506fae=(_0x52a24c=this['_handler'])['onTransformIME'])==null?void 0x0:_0x506fae[_0x45bb53(0x1e2)](_0x52a24c,_0x2e360f);}[_0x3bdab3(0xe8)](_0x2ea1cb){const _0x474f0b=_0x3bdab3;var _0x1767ac,_0x2f9c25,_0x2e2040;return(_0x2e2040=(_0x2f9c25=(_0x1767ac=this[_0x474f0b(0x37e)])[_0x474f0b(0x2bf)])==null?void 0x0:_0x2f9c25['call'](_0x1767ac,_0x2ea1cb))!=null?_0x2e2040:_0x2ea1cb;}[_0x3bdab3(0xa1)](_0x10dd0b){const _0x1d87d1=_0x3bdab3;var _0x23239a,_0x1a7bf6;if(this[_0x1d87d1(0x2ec)]===H[_0x1d87d1(0x1a4)]){const {unitID:_0x217c63,mutations:_0xc3051d,memberID:_0x5843c0}=_0x10dd0b,_0x1fd7ab=_0xc3051d[0x0][_0x1d87d1(0x3bd)][_0x1d87d1(0x254)];Array[_0x1d87d1(0x2c1)](_0x1fd7ab)&&_0x1fd7ab[_0x1d87d1(0x2d9)]>0x0&&((_0x1a7bf6=(_0x23239a=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x1a7bf6[_0x1d87d1(0x1e2)](_0x23239a,{'unitID':_0x217c63,'memberID':_0x5843c0,'textRanges':_0x1fd7ab}));}}['_updateLocalCache'](){const _0x35f5ae=_0x3bdab3;this[_0x35f5ae(0x334)][_0x35f5ae(0x124)](this[_0x35f5ae(0x227)],this[_0x35f5ae(0x2ec)],this['_awaitingChangeset'],this[_0x35f5ae(0x14d)]);}[_0x3bdab3(0x2d0)](){const _0x3b4924=_0x3bdab3;return this[_0x3b4924(0x118)][_0x3b4924(0x3b3)](this['unitID']);}[_0x3bdab3(0xa3)](){const _0x14a2a8=_0x3bdab3;this['_revisionService'][_0x14a2a8(0x161)](this[_0x14a2a8(0x227)]);}[_0x3bdab3(0x2e3)](_0x3c8960){const _0x90b60b=_0x3bdab3;var _0x20f910;const _0x496c29=this[_0x90b60b(0xe8)](_0x3c8960),_0x28c630=_0x35931d(_0x496c29['mutations'],this[_0x90b60b(0x200)],{'fromCollab':!0x0});if(!_0x28c630[_0x90b60b(0x20c)])throw _0x28c630['error']instanceof Error?_0x28c630['error']:new Error((_0x20f910=_0x28c630[_0x90b60b(0x127)])!=null?_0x20f910:_0x90b60b(0xe4));this[_0x90b60b(0x2b4)](_0x496c29),this[_0x90b60b(0x38a)](_0x3c8960),this['_transformSelections'](_0x496c29),this['_syncEditingCollabCursor'](_0x496c29),this[_0x90b60b(0xa3)]();}}let Te=class extends re{constructor(_0x496aea,_0x56e1e1,_0x5309ad,_0x417c27,_0x54f74a,_0x4327c2,_0x4f23a3,_0x4ffbb5,_0x3eb983){const _0x5dcaa6=_0x3bdab3;super(_0x496aea,_0x56e1e1,null,[],_0x5309ad,_0x4ffbb5,_0x4f23a3,_0x417c27,_0x54f74a),l(this,_0x5dcaa6(0x186),_0x5dcaa6(0x288)),(this[_0x5dcaa6(0x191)]=_0x4327c2,this[_0x5dcaa6(0x140)]=_0x3eb983);}[_0x3bdab3(0x17f)](_0x21ad6e){const _0x216438=_0x3bdab3,_0x27700e=this[_0x216438(0x191)][_0x216438(0x2c9)](B,this[_0x216438(0x227)],this[_0x216438(0x2ec)],[_0x21ad6e],this['_handler']);return _0x27700e[_0x216438(0x1da)](),_0x27700e[_0x216438(0xed)](),_0x27700e;}['onRemoteChangeset'](_0x2a3824){const _0x285f46=_0x3bdab3;if(this[_0x285f46(0x1af)](_0x2a3824))return this[_0x285f46(0x191)][_0x285f46(0x2c9)](W,this['unitID'],this[_0x285f46(0x2ec)],null,[],null,[_0x2a3824],this['_handler']);try{return this['_executeRemoteChangeset'](_0x2a3824),this;}catch(_0x38c36e){return this[_0x285f46(0x140)]['error'](_0x285f46(0xcf),_0x38c36e),this;}}[_0x3bdab3(0xc6)](){const _0x1943c8=_0x3bdab3;throw new Error(_0x1943c8(0x2a1));}[_0x3bdab3(0x179)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x3bdab3(0x11b)](){const _0xdcf10d=_0x3bdab3;return this[_0xdcf10d(0x191)][_0xdcf10d(0x2c9)](X,this[_0xdcf10d(0x227)],this['type'],null,[],this[_0xdcf10d(0x37e)]);}[_0x3bdab3(0x189)](){return this;}[_0x3bdab3(0x29d)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Te=ne([g(0x3,_0x279e5b(_0x54c94d)),g(0x4,_0x279e5b(D)),g(0x5,_0x279e5b(_0x5df577)),g(0x6,_0x1de145),g(0x7,_0x5ba974),g(0x8,_0x2cecb4)],Te);let B=class extends re{constructor(_0x42bf38,_0x2b8fd0,_0x48de19,_0x4a71fc,_0xab2486,_0x5cf7de,_0x5f146d,_0x2d4077,_0xa17f65,_0x3fb346,_0x12b5c7,_0xd5a5f4,_0x2530af,_0x45b2d0){const _0xa91b43=_0x3bdab3;super(_0x42bf38,_0x2b8fd0,null,_0x48de19,_0x4a71fc,_0x3fb346,_0x45b2d0,_0x5cf7de,_0x5f146d),l(this,_0xa91b43(0x186),_0xa91b43(0xd3)),l(this,_0xa91b43(0x14f),null),l(this,_0xa91b43(0x136),null),(this[_0xa91b43(0x191)]=_0xab2486,this['_memberService']=_0x2d4077,this[_0xa91b43(0x140)]=_0xa17f65,this['_configService']=_0x12b5c7,this[_0xa91b43(0x2ef)]=_0xd5a5f4,this[_0xa91b43(0xa4)]=_0x2530af);}[_0x3bdab3(0x17f)](_0xd6e08b){const _0x51d8b8=_0x3bdab3;return this[_0x51d8b8(0x14d)]['push'](_0xd6e08b),this[_0x51d8b8(0xed)](),this;}[_0x3bdab3(0x327)](_0x346268){const _0x4ecba5=_0x3bdab3;if(this[_0x4ecba5(0x1af)](_0x346268))return this[_0x4ecba5(0xda)](),this[_0x4ecba5(0x191)]['createInstance'](W,this['unitID'],this[_0x4ecba5(0x2ec)],null,this['_pendingMutations'],null,[_0x346268],this[_0x4ecba5(0x37e)]);try{const _0x54d198=this[_0x4ecba5(0x2ef)]['transformMutationsWithChangeset'](_0x346268,this[_0x4ecba5(0x14d)]);if(_0x155e17(_0x54d198)){const {c1Prime:_0x7a79ef,m2Prime:_0x1ef69a}=_0x54d198;this['_executeRemoteChangeset'](_0x7a79ef);const _0x1926eb=this[_0x4ecba5(0x191)][_0x4ecba5(0x2c9)](B,this[_0x4ecba5(0x227)],this[_0x4ecba5(0x2ec)],_0x1ef69a,this['_handler']);return this[_0x4ecba5(0xda)](),_0x1926eb[_0x4ecba5(0x1da)](this[_0x4ecba5(0x14f)]?Math['max'](0x0,new Date()['getTime']()-this[_0x4ecba5(0x14f)]):this['_getSendChangesetTimeout']()),_0x1926eb;}throw _0x54d198[_0x4ecba5(0x127)];}catch(_0x315a87){return this[_0x4ecba5(0x140)][_0x4ecba5(0x127)](_0x315a87),this['_onConflict'](!0x1);}}[_0x3bdab3(0xc6)](){const _0x55b167=_0x3bdab3;throw new Error(_0x55b167(0x252));}[_0x3bdab3(0x179)](){const _0x449073=_0x3bdab3;throw new Error(_0x449073(0x33f));}['toggleOffline'](){const _0x1cf5e1=_0x3bdab3;return this[_0x1cf5e1(0xda)](),this[_0x1cf5e1(0x191)][_0x1cf5e1(0x2c9)](X,this[_0x1cf5e1(0x227)],this[_0x1cf5e1(0x2ec)],null,this[_0x1cf5e1(0x14d)],this[_0x1cf5e1(0x37e)]);}['toggleOnline'](){return this;}[_0x3bdab3(0x1da)](_0x119030){const _0x5dd7f0=_0x3bdab3;_0x119030=_0x119030!=null?_0x119030:this['_getSendChangesetTimeout'](),this[_0x5dd7f0(0x14f)]=new Date()[_0x5dd7f0(0x24c)](),this[_0x5dd7f0(0x136)]=setTimeout(()=>{const _0x4c7523=_0x5dd7f0;this[_0x4c7523(0xda)]();let _0x4a55f6=null;switch(this[_0x4c7523(0x2ec)]){case H[_0x4c7523(0x38c)]:{_0x4a55f6=jn(this[_0x4c7523(0x14d)],this[_0x4c7523(0x227)],this[_0x4c7523(0xa4)],this[_0x4c7523(0x118)],this['_memberService']);break;}case H['UNIVER_DOC']:{_0x4a55f6=Hn(this['_pendingMutations'],this[_0x4c7523(0x227)],this['_univerInstanceService'],this[_0x4c7523(0x118)],this[_0x4c7523(0x2b0)]);break;}default:throw new Error(_0x4c7523(0xe3)+this[_0x4c7523(0x2ec)]+_0x4c7523(0x2b8));}const {changeset:_0x9c08f7,pendingMutations:_0x2c3b57}=_0x4a55f6;this[_0x4c7523(0x37e)]['onSendChangeset'](_0x9c08f7);const _0x5ee6d2=_0x2c3b57['length']?this[_0x4c7523(0x191)][_0x4c7523(0x2c9)](V,this[_0x4c7523(0x227)],this[_0x4c7523(0x2ec)],_0x9c08f7,_0x2c3b57,this[_0x4c7523(0x37e)]):this[_0x4c7523(0x191)][_0x4c7523(0x2c9)](K,this[_0x4c7523(0x227)],this[_0x4c7523(0x2ec)],_0x9c08f7,this[_0x4c7523(0x37e)]);_0x5ee6d2['_updateLocalCache'](),this[_0x4c7523(0x37e)]['onStateChange'](this,_0x5ee6d2);},_0x119030);}[_0x3bdab3(0xba)](){const _0x1cbc8d=_0x3bdab3;var _0x3df25e;return(_0x3df25e=this[_0x1cbc8d(0x1bd)][_0x1cbc8d(0x384)](Ki))!=null?_0x3df25e:Xi;}[_0x3bdab3(0x29d)](){const _0x4f6146=_0x3bdab3;throw new Error(_0x4f6146(0x13a));}[_0x3bdab3(0xda)](){const _0x368d59=_0x3bdab3;this[_0x368d59(0x136)]!=null&&(clearTimeout(this[_0x368d59(0x136)]),this['_sendingTimer']=null);}['_onConflict'](_0x33637b){const _0x25739c=_0x3bdab3;return this[_0x25739c(0xda)](),this['_injector'][_0x25739c(0x2c9)](te,this[_0x25739c(0x227)],this[_0x25739c(0x2ec)],null,this['_pendingMutations'],this[_0x25739c(0x37e)],_0x33637b);}};B=ne([g(0x4,_0x279e5b(_0x5df577)),g(0x5,_0x279e5b(_0x54c94d)),g(0x6,_0x279e5b(D)),g(0x7,_0x279e5b(ee)),g(0x8,_0x2cecb4),g(0x9,_0x5ba974),g(0xa,_0x37d874),g(0xb,_0x539a09),g(0xc,_0x173bd8),g(0xd,_0x1de145)],B);let K=class extends re{constructor(_0xd2cf22,_0x3393f4,_0x55279a,_0x41c40c,_0x8ca448,_0x512a88,_0x3264cf,_0x1548f3,_0x265da4,_0x3f27ee,_0x54dce4){const _0x25a3d3=_0x3bdab3;super(_0xd2cf22,_0x3393f4,_0x55279a,[],_0x41c40c,_0x1548f3,_0x54dce4,_0x512a88,_0x3264cf),l(this,'status',_0x25a3d3(0x32c)),(this['_injector']=_0x8ca448,this[_0x25a3d3(0x140)]=_0x265da4,this[_0x25a3d3(0x2ef)]=_0x3f27ee);}[_0x3bdab3(0x17f)](_0x59743f){const _0x12ab3e=_0x3bdab3,_0x5604ea=this['_injector'][_0x12ab3e(0x2c9)](V,this[_0x12ab3e(0x227)],this[_0x12ab3e(0x2ec)],this['_awaitingChangeset'],[_0x59743f],this[_0x12ab3e(0x37e)]);return _0x5604ea[_0x12ab3e(0xed)](),_0x5604ea;}[_0x3bdab3(0x327)](_0x13e139){const _0x48cd4a=_0x3bdab3;if(this[_0x48cd4a(0x1af)](_0x13e139))return this[_0x48cd4a(0x191)][_0x48cd4a(0x2c9)](W,this['unitID'],this[_0x48cd4a(0x2ec)],this[_0x48cd4a(0x2a8)],[],null,[_0x13e139],this[_0x48cd4a(0x37e)]);try{const _0x5ceac5=this[_0x48cd4a(0x2ef)][_0x48cd4a(0x1c0)]([_0x13e139],[this[_0x48cd4a(0x2a8)]],!0x1);if(_0x36d671(_0x5ceac5)){const {c1Prime:_0xc0adac,c2Prime:_0x115d0b}=_0x5ceac5;this[_0x48cd4a(0x2e3)](_0xc0adac[0x0]),_0x115d0b[0x0]['baseRev']=this[_0x48cd4a(0x2d0)]();const _0x1746f9=this[_0x48cd4a(0x191)]['createInstance'](K,this[_0x48cd4a(0x227)],this[_0x48cd4a(0x2ec)],_0x115d0b[0x0],this['_handler']);return _0x1746f9[_0x48cd4a(0xed)](),_0x1746f9;}return this['_onConflict'](!0x1);}catch(_0x260763){return this[_0x48cd4a(0x140)][_0x48cd4a(0x127)](_0x260763),this[_0x48cd4a(0x113)](!0x1);}}[_0x3bdab3(0xc6)](_0x32d007){const _0x526f6e=_0x3bdab3,_0x2bccb7=this['_revisionService'][_0x526f6e(0x3b3)](this['unitID']);if(_0x32d007[_0x526f6e(0x1a0)]<_0x2bccb7-0x1)return this;if(this[_0x526f6e(0x1af)](_0x32d007))return this[_0x526f6e(0x191)][_0x526f6e(0x2c9)](W,this[_0x526f6e(0x227)],this[_0x526f6e(0x2ec)],null,[],this[_0x526f6e(0x2a8)],[],this[_0x526f6e(0x37e)]);this[_0x526f6e(0xa3)]();const _0xf6883d=this[_0x526f6e(0x191)][_0x526f6e(0x2c9)](Te,this[_0x526f6e(0x227)],this[_0x526f6e(0x2ec)],this[_0x526f6e(0x37e)]);return _0xf6883d['_updateLocalCache'](),_0xf6883d;}[_0x3bdab3(0x179)](_0x1c42c1){const _0x2b9b44=_0x3bdab3;return this[_0x2b9b44(0x113)](!!(_0x1c42c1!=null&&_0x1c42c1['isPermissionRej']));}[_0x3bdab3(0x11b)](){const _0x4b4a45=_0x3bdab3;return this[_0x4b4a45(0x191)]['createInstance'](X,this[_0x4b4a45(0x227)],this[_0x4b4a45(0x2ec)],this[_0x4b4a45(0x2a8)],[],this['_handler']);}[_0x3bdab3(0x189)](){return this;}[_0x3bdab3(0x29d)](){const _0x365989=_0x3bdab3;this[_0x365989(0x37e)]['onSendChangeset'](this[_0x365989(0x2a8)]);}[_0x3bdab3(0x113)](_0x4d211e){const _0x560772=_0x3bdab3;return this['_injector'][_0x560772(0x2c9)](te,this[_0x560772(0x227)],this[_0x560772(0x2ec)],this['_awaitingChangeset'],[],this[_0x560772(0x37e)],_0x4d211e);}};K=ne([g(0x4,_0x279e5b(_0x5df577)),g(0x5,_0x279e5b(_0x54c94d)),g(0x6,_0x279e5b(D)),g(0x7,_0x5ba974),g(0x8,_0x2cecb4),g(0x9,_0x539a09),g(0xa,_0x1de145)],K);let V=class extends re{constructor(_0x47f35e,_0x57b089,_0x1758c2,_0x525ae9,_0x2be62d,_0x327c83,_0x41bb83,_0x2e175a,_0x45f7f8,_0x217139,_0x535124,_0x327e7b){const _0x8482d1=_0x3bdab3;super(_0x47f35e,_0x57b089,_0x1758c2,_0x525ae9,_0x2be62d,_0x45f7f8,_0x327e7b,_0x41bb83,_0x2e175a),l(this,_0x8482d1(0x186),'awaiting_with_pending'),(this['_injector']=_0x327c83,this['_logService']=_0x217139,this[_0x8482d1(0x2ef)]=_0x535124);}['appendMutation'](_0x21fcd6){const _0x117b62=_0x3bdab3;return this[_0x117b62(0x14d)][_0x117b62(0x37d)](_0x21fcd6),this;}[_0x3bdab3(0x327)](_0x42c8c7){const _0x536e55=_0x3bdab3;if(this[_0x536e55(0x1af)](_0x42c8c7))return this[_0x536e55(0x191)][_0x536e55(0x2c9)](W,this[_0x536e55(0x227)],this[_0x536e55(0x2ec)],this[_0x536e55(0x2a8)],this[_0x536e55(0x14d)],null,[_0x42c8c7],this[_0x536e55(0x37e)]);try{const _0x382339=this['_transformService']['transformChangesets']([_0x42c8c7],[this[_0x536e55(0x2a8)]],!0x1);if(_0x36d671(_0x382339)){const {c1Prime:_0x835289,c2Prime:_0x25b37a}=_0x382339,_0x3b601e=this[_0x536e55(0x2ef)]['transformMutationsWithChangeset'](_0x835289[0x0],this[_0x536e55(0x14d)]);if(_0x155e17(_0x3b601e)){const {c1Prime:_0x2446de,m2Prime:_0x3d22c0}=_0x3b601e;return this[_0x536e55(0x2e3)](_0x2446de),_0x25b37a[0x0][_0x536e55(0x397)]=this[_0x536e55(0x2d0)](),this['_injector'][_0x536e55(0x2c9)](V,this[_0x536e55(0x227)],this[_0x536e55(0x2ec)],_0x25b37a[0x0],_0x3d22c0,this[_0x536e55(0x37e)]);}throw _0x3b601e[_0x536e55(0x127)];}throw _0x382339[_0x536e55(0x127)];}catch(_0x1d9e13){return this[_0x536e55(0x140)]['error'](_0x1d9e13),this[_0x536e55(0x113)](!0x1);}}[_0x3bdab3(0xc6)](_0x1822ee){const _0x1b7b30=_0x3bdab3;if(this[_0x1b7b30(0x1af)](_0x1822ee))return this[_0x1b7b30(0x191)][_0x1b7b30(0x2c9)](W,this[_0x1b7b30(0x227)],this['type'],null,this[_0x1b7b30(0x14d)],this[_0x1b7b30(0x2a8)],[],this[_0x1b7b30(0x37e)]);this[_0x1b7b30(0xa3)]();const _0x5bdc38=this[_0x1b7b30(0x191)][_0x1b7b30(0x2c9)](B,this[_0x1b7b30(0x227)],this[_0x1b7b30(0x2ec)],this[_0x1b7b30(0x14d)],this['_handler']);return _0x5bdc38['_schedule'](),_0x5bdc38[_0x1b7b30(0xed)](),_0x5bdc38;}[_0x3bdab3(0x179)](_0x39cf53){const _0x488af0=_0x3bdab3;return this[_0x488af0(0x113)](!!(_0x39cf53!=null&&_0x39cf53['isPermissionRej']));}['toggleOffline'](){const _0x5a3358=_0x3bdab3;return this['_injector'][_0x5a3358(0x2c9)](X,this[_0x5a3358(0x227)],this[_0x5a3358(0x2ec)],this[_0x5a3358(0x2a8)],this[_0x5a3358(0x14d)],this[_0x5a3358(0x37e)]);}['toggleOnline'](){return this;}[_0x3bdab3(0x29d)](){const _0x5bf767=_0x3bdab3;this[_0x5bf767(0x37e)][_0x5bf767(0x259)](this[_0x5bf767(0x2a8)]);}[_0x3bdab3(0x113)](_0x5e5ef1){const _0xe7f8bc=_0x3bdab3;return this[_0xe7f8bc(0x191)]['createInstance'](te,this[_0xe7f8bc(0x227)],this[_0xe7f8bc(0x2ec)],null,this['_pendingMutations'],this[_0xe7f8bc(0x37e)],_0x5e5ef1);}};V=ne([g(0x5,_0x279e5b(_0x5df577)),g(0x6,_0x279e5b(_0x54c94d)),g(0x7,_0x279e5b(D)),g(0x8,_0x5ba974),g(0x9,_0x2cecb4),g(0xa,_0x539a09),g(0xb,_0x1de145)],V);let te=class extends re{constructor(_0x169fac,_0x5ab5c6,_0x5794e9,_0x5294e2,_0x281096,_0x2a69ff=!0x1,_0x181106,_0x3fdb1d,_0x172e78,_0x47080c,_0x2da9ea,_0x5cc7b1,_0x13500e){const _0xf86f6=_0x3bdab3;super(_0x169fac,_0x5ab5c6,_0x5794e9,_0x5294e2,_0x281096,_0x3fdb1d,_0x172e78,_0x2da9ea,_0x47080c),l(this,_0xf86f6(0x186),_0xf86f6(0x1e1)),(this[_0xf86f6(0xbe)]=_0x2a69ff,this[_0xf86f6(0x9d)]=_0x181106,this[_0xf86f6(0x26d)]=_0x5cc7b1,this[_0xf86f6(0xf6)]=_0x13500e,this[_0xf86f6(0x1ba)](),this[_0xf86f6(0x163)](),this['_disableEditing']());}[_0x3bdab3(0x17f)](){return this;}['onRemoteChangeset'](){return this;}[_0x3bdab3(0xc6)](){return this;}[_0x3bdab3(0x179)](){return this;}['toggleOffline'](){return this;}[_0x3bdab3(0x189)](){return this;}[_0x3bdab3(0x29d)](){const _0x24c0a6=_0x3bdab3;throw new Error(_0x24c0a6(0x349));}[_0x3bdab3(0x163)](){const _0x297214=_0x3bdab3;this[_0x297214(0x334)][_0x297214(0x124)](this[_0x297214(0x227)],this[_0x297214(0x2ec)],null,[]);}[_0x3bdab3(0x1ba)](){const _0x79fa3c=_0x3bdab3;this[_0x79fa3c(0xbe)]?this[_0x79fa3c(0xf6)][_0x79fa3c(0x270)]({'title':this[_0x79fa3c(0x26d)]['t']('permission.title'),'content':this[_0x79fa3c(0x26d)]['t'](_0x79fa3c(0x1a8)),'type':_0x79fa3c(0x127),'duration':0x0}):this[_0x79fa3c(0xf6)][_0x79fa3c(0x270)]({'title':this[_0x79fa3c(0x26d)]['t'](_0x79fa3c(0xbc)),'content':this['_localeService']['t'](_0x79fa3c(0xea)),'type':'error','duration':0x0});}[_0x3bdab3(0x2cf)](){const _0x259a2c=_0x3bdab3;this[_0x259a2c(0x9d)][_0x259a2c(0xb3)](new _0x2a2a3d(this[_0x259a2c(0x227)])['id'],!0x1);}};te=ne([g(0x6,_0x279e5b(_0x4ac7e0)),g(0x7,_0x5ba974),g(0x8,_0x1de145),g(0x9,_0x279e5b(D)),g(0xa,_0x279e5b(_0x54c94d)),g(0xb,_0x279e5b(_0x25e6c6)),g(0xc,_0x39c5e1)],te);let X=class extends re{constructor(_0x2e4f86,_0x27344e,_0x14d73d,_0x1d70e1,_0xd8f531,_0xcc250d,_0x8d9022,_0xb53583,_0x5027ce,_0x382126){const _0x5e093d=_0x3bdab3;super(_0x2e4f86,_0x27344e,_0x14d73d,_0x1d70e1,_0xd8f531,_0x5027ce,_0x382126,_0x8d9022,_0xb53583),l(this,_0x5e093d(0x186),_0x5e093d(0x29e)),this[_0x5e093d(0x191)]=_0xcc250d;}[_0x3bdab3(0x17f)](_0x135099){const _0x1f84c2=_0x3bdab3;return this['_pendingMutations'][_0x1f84c2(0x37d)](_0x135099),this[_0x1f84c2(0xed)](),this;}[_0x3bdab3(0x327)](_0x58f0fb){const _0x5ef5ae=_0x3bdab3;throw new Error(_0x5ef5ae(0xa6));}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x519dd6=_0x3bdab3;throw new Error(_0x519dd6(0x14e));}[_0x3bdab3(0x11b)](){return this;}[_0x3bdab3(0x189)](){const _0x1de3c9=_0x3bdab3,{_injector:_0x3a1194,_pendingMutations:_0x325c98,_awaitingChangeset:_0x210a17,unitID:_0x56a7e5,_handler:_0x193b89,type:_0xa1c395}=this,_0xfb1c97=Os(_0x3a1194,_0x56a7e5,_0xa1c395,_0x210a17,_0x325c98,_0x193b89);return _0xfb1c97 instanceof B?_0xfb1c97[_0x1de3c9(0x1da)]():(_0xfb1c97 instanceof V||_0xfb1c97 instanceof K)&&_0xfb1c97[_0x1de3c9(0x29d)](),_0xfb1c97;}['resend'](){const _0x3b3606=_0x3bdab3;throw new Error(_0x3b3606(0x35c));}};X=ne([g(0x5,_0x279e5b(_0x5df577)),g(0x6,_0x279e5b(_0x54c94d)),g(0x7,_0x279e5b(D)),g(0x8,_0x5ba974),g(0x9,_0x1de145)],X);let W=class extends re{constructor(_0x3f6a3d,_0xd0d56a,_0x2cd6fa,_0x6d2c3d,_0x4d66d5,_0x2ba6a8,_0x562016,_0x441371,_0x1fb54c,_0x28d51a,_0x4e3fe3,_0x3d95b1,_0x189672,_0x569e83){const _0x41a712=_0x3bdab3;super(_0x3f6a3d,_0xd0d56a,_0x2cd6fa,_0x6d2c3d,_0x562016,_0x3d95b1,_0x189672,_0x1fb54c,_0x28d51a),l(this,_0x41a712(0x186),'fetch_missing'),(this[_0x41a712(0x2ae)]=_0x4d66d5,this[_0x41a712(0x115)]=_0x2ba6a8,this[_0x41a712(0x191)]=_0x441371,this[_0x41a712(0x140)]=_0x4e3fe3,this['_transformService']=_0x569e83);}[_0x3bdab3(0x31a)](_0x481310){const _0x4c9bef=_0x3bdab3;try{const _0x16d6cf=[..._0x481310,...this[_0x4c9bef(0x115)]],_0x3f9452=[this['_awaitingChangeset']||this[_0x4c9bef(0x2ae)]]['filter'](_0x2898fc=>!!_0x2898fc);let _0x48e326,_0x15baba;if(_0x3f9452[_0x4c9bef(0x2d9)]){const _0x14a916=this[_0x4c9bef(0x2ef)][_0x4c9bef(0x1c0)](_0x16d6cf,_0x3f9452,!0x1);if(!_0x36d671(_0x14a916))throw _0x14a916[_0x4c9bef(0x127)];_0x48e326=_0x14a916['c1Prime'],_0x15baba=_0x14a916[_0x4c9bef(0x3a4)];}else _0x48e326=_0x16d6cf,_0x15baba=[];let _0x4e1220=this[_0x4c9bef(0x14d)];_0x48e326['forEach'](_0x1709f8=>{const _0x131fe1=_0x4c9bef;let _0x43264d;if(_0x4e1220[_0x131fe1(0x2d9)]){const _0x37c352=this[_0x131fe1(0x2ef)]['transformMutationsWithChangeset'](_0x1709f8,_0x4e1220);if(!_0x155e17(_0x37c352))throw _0x37c352[_0x131fe1(0x127)];_0x43264d=_0x37c352['c1Prime'],_0x4e1220=_0x37c352[_0x131fe1(0x32f)];}else _0x43264d=_0x1709f8;this[_0x131fe1(0x2e3)](_0x43264d);}),this['_acknowledgedAwaitingChangeset']&&this[_0x4c9bef(0xa3)](),this[_0x4c9bef(0x2a8)]&&_0x15baba[_0x4c9bef(0x2d9)]&&(_0x15baba[0x0]['baseRev']=this[_0x4c9bef(0x2d0)]());let _0x2f30db;if(this[_0x4c9bef(0x2a8)]&&_0x4e1220[_0x4c9bef(0x2d9)]!==0x0)_0x2f30db=this['_injector'][_0x4c9bef(0x2c9)](V,this[_0x4c9bef(0x227)],this['type'],_0x15baba[0x0],_0x4e1220,this[_0x4c9bef(0x37e)]);else{if(this[_0x4c9bef(0x2a8)]&&_0x4e1220[_0x4c9bef(0x2d9)]===0x0)_0x15baba[0x0][_0x4c9bef(0x397)]=this['_getCurrentRevision'](),_0x2f30db=this['_injector'][_0x4c9bef(0x2c9)](K,this[_0x4c9bef(0x227)],this[_0x4c9bef(0x2ec)],_0x15baba[0x0],this[_0x4c9bef(0x37e)]);else{if(_0x4e1220[_0x4c9bef(0x2d9)]!==0x0){const _0x4601d2=this['_injector'][_0x4c9bef(0x2c9)](B,this[_0x4c9bef(0x227)],this[_0x4c9bef(0x2ec)],_0x4e1220,this[_0x4c9bef(0x37e)]);_0x4601d2[_0x4c9bef(0x1da)](),_0x2f30db=_0x4601d2;}else _0x2f30db=this[_0x4c9bef(0x191)][_0x4c9bef(0x2c9)](Te,this[_0x4c9bef(0x227)],this[_0x4c9bef(0x2ec)],this[_0x4c9bef(0x37e)]);}}return _0x2f30db['_updateLocalCache'](),_0x2f30db;}catch(_0x296108){return this['_logService'][_0x4c9bef(0x127)](_0x4c9bef(0x306),_0x4c9bef(0x358),_0x296108),this[_0x4c9bef(0x191)][_0x4c9bef(0x2c9)](te,this[_0x4c9bef(0x227)],this[_0x4c9bef(0x2ec)],this[_0x4c9bef(0x2a8)],this[_0x4c9bef(0x14d)],this[_0x4c9bef(0x37e)],!0x1);}}['resend'](){const _0x12961e=_0x3bdab3;throw new Error(_0x12961e(0x224));}[_0x3bdab3(0x17f)](_0x5e2961){const _0x4f0cc0=_0x3bdab3;return this[_0x4f0cc0(0x14d)][_0x4f0cc0(0x37d)](_0x5e2961),this;}[_0x3bdab3(0x327)](_0x2b11b1){const _0xffafcb=_0x3bdab3;return this[_0xffafcb(0x115)][_0xffafcb(0x37d)](_0x2b11b1),this;}[_0x3bdab3(0xc6)](_0x39bfea){const _0x5a9fa9=_0x3bdab3;if(this[_0x5a9fa9(0x2a8)])return this[_0x5a9fa9(0x2ae)]=this[_0x5a9fa9(0x2a8)],this[_0x5a9fa9(0x2a8)]=null,this;throw new Error(_0x5a9fa9(0xb9));}[_0x3bdab3(0x179)](_0x485d40){const _0x537d99=_0x3bdab3;return this[_0x537d99(0x113)](!!(_0x485d40!=null&&_0x485d40[_0x537d99(0x337)]));}[_0x3bdab3(0x11b)](){const _0x3d0835=_0x3bdab3;return this[_0x3d0835(0x191)][_0x3d0835(0x2c9)](X,this['unitID'],this[_0x3d0835(0x2ec)],this[_0x3d0835(0x2a8)],this['_pendingMutations'],this[_0x3d0835(0x37e)]);}[_0x3bdab3(0x189)](){return this;}['_onConflict'](_0x2a2f61){const _0xad77b2=_0x3bdab3;return this['_injector'][_0xad77b2(0x2c9)](te,this[_0xad77b2(0x227)],this[_0xad77b2(0x2ec)],this[_0xad77b2(0x2a8)],this[_0xad77b2(0x14d)],this['_handler'],_0x2a2f61);}};W=ne([g(0x7,_0x279e5b(_0x5df577)),g(0x8,_0x279e5b(_0x54c94d)),g(0x9,_0x279e5b(D)),g(0xa,_0x2cecb4),g(0xb,_0x5ba974),g(0xc,_0x1de145),g(0xd,_0x539a09)],W);function Os(_0x143b76,_0x377c50,_0x478f89,_0x14804b,_0x141bac,_0x281af5){const _0x85594d=_0x3bdab3;return _0x14804b&&_0x141bac[_0x85594d(0x2d9)]?_0x143b76[_0x85594d(0x2c9)](V,_0x377c50,_0x478f89,_0x14804b,_0x141bac,_0x281af5):_0x14804b?_0x143b76['createInstance'](K,_0x377c50,_0x478f89,_0x14804b,_0x281af5):_0x141bac[_0x85594d(0x2d9)]?_0x143b76[_0x85594d(0x2c9)](B,_0x377c50,_0x478f89,_0x141bac,_0x281af5):_0x143b76[_0x85594d(0x2c9)](Te,_0x377c50,_0x478f89,_0x281af5);}var kn=Object[_0x3bdab3(0x162)],Bn=Object[_0x3bdab3(0x123)],Je=(_0xa60043,_0x2c269b,_0x189b14,_0x11cb99)=>{const _0x82c645=_0x3bdab3;for(var _0x44af81=_0x11cb99>0x1?void 0x0:_0x11cb99?Bn(_0x2c269b,_0x189b14):_0x2c269b,_0xe299ee=_0xa60043[_0x82c645(0x2d9)]-0x1,_0x3262d7;_0xe299ee>=0x0;_0xe299ee--)(_0x3262d7=_0xa60043[_0xe299ee])&&(_0x44af81=(_0x11cb99?_0x3262d7(_0x2c269b,_0x189b14,_0x44af81):_0x3262d7(_0x44af81))||_0x44af81);return _0x11cb99&&_0x44af81&&kn(_0x2c269b,_0x189b14,_0x44af81),_0x44af81;},S=(_0x43bbf6,_0x36ee54)=>(_0x5453fa,_0x4573c5)=>_0x36ee54(_0x5453fa,_0x4573c5,_0x43bbf6);let Ee=class extends _0x300f85{constructor(_0x3ced5a,_0x38b9a7,_0x20687f){const _0xe2e02b=_0x3bdab3;super(),l(this,_0xe2e02b(0x255),new Map()),l(this,'_entityInit$',new _0x4a8f66()),(this[_0xe2e02b(0x191)]=_0x3ced5a,this['_collabSessionService']=_0x38b9a7,this[_0xe2e02b(0xa4)]=_0x20687f,this[_0xe2e02b(0x10d)]());}[_0x3bdab3(0x328)](){const _0x8b20fe=_0x3bdab3;super[_0x8b20fe(0x328)](),this['_entities']['forEach'](_0x436e3e=>_0x436e3e[_0x8b20fe(0x328)]()),this[_0x8b20fe(0x255)]['clear']();}[_0x3bdab3(0x22f)](_0x1157d0){const _0x489352=_0x3bdab3;var _0x34560f;return(_0x34560f=this[_0x489352(0x255)][_0x489352(0x132)](_0x1157d0))!=null?_0x34560f:null;}[_0x3bdab3(0x149)](_0x2934a3){const _0x4eb38b=_0x3bdab3,_0x49cd67=this[_0x4eb38b(0x22f)](_0x2934a3);return _0x49cd67?_0x442f94(_0x49cd67):this[_0x4eb38b(0x390)]['pipe'](_0x748e3b(_0x2db6af=>_0x2db6af[_0x4eb38b(0x227)]===_0x2934a3));}['_init'](){const _0x30f2e6=_0x3bdab3;this[_0x30f2e6(0xa4)][_0x30f2e6(0x322)](_0x3ba52b[_0x30f2e6(0x38c)])[_0x30f2e6(0x19c)](_0x352c23(this[_0x30f2e6(0x99)]),_0x251b05(0x10))['subscribe'](async _0x93087d=>{const _0x36cda8=_0x30f2e6,_0x5c7d30=_0x93087d[_0x36cda8(0x100)](),_0x25df4e=await this[_0x36cda8(0x28d)](_0x5c7d30,H[_0x36cda8(0x38c)]);this['_entities'][_0x36cda8(0x156)](_0x5c7d30,_0x25df4e);}),this[_0x30f2e6(0xa4)]['getTypeOfUnitAdded$'](_0x3ba52b[_0x30f2e6(0x1a4)])[_0x30f2e6(0x19c)](_0x352c23(this[_0x30f2e6(0x99)]),_0x251b05(0x10))['pipe'](_0x748e3b(_0x129554=>!_0x129554['getUnitId']()[_0x30f2e6(0x1ea)]('__')))[_0x30f2e6(0x2b5)](async _0x13377d=>{const _0x1dd3ab=_0x30f2e6,_0x3a3ee0=_0x13377d[_0x1dd3ab(0x100)](),_0x6a844f=await this[_0x1dd3ab(0x28d)](_0x3a3ee0,H['UNIVER_DOC']);this[_0x1dd3ab(0x255)][_0x1dd3ab(0x156)](_0x3a3ee0,_0x6a844f);}),_0x1ddc59(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3ba52b[_0x30f2e6(0x38c)]),this[_0x30f2e6(0xa4)][_0x30f2e6(0x236)](_0x3ba52b[_0x30f2e6(0x1a4)]))[_0x30f2e6(0x19c)](_0x352c23(this[_0x30f2e6(0x99)]))[_0x30f2e6(0x2b5)](_0x314de4=>{const _0xbae8c0=_0x30f2e6,_0x3e9fc2=_0x314de4[_0xbae8c0(0x100)](),_0x36aa38=this[_0xbae8c0(0x255)]['get'](_0x3e9fc2);_0x36aa38&&(_0x36aa38[_0xbae8c0(0x328)](),this[_0xbae8c0(0x255)][_0xbae8c0(0xfc)](_0x3e9fc2));});}async[_0x3bdab3(0x28d)](_0x4b1b5a,_0x25f554){const _0x33b5d7=_0x3bdab3,_0x130171=await this[_0x33b5d7(0x33a)]['requireSession'](_0x4b1b5a),_0x280af8=this['_injector'][_0x33b5d7(0x2c9)](this[_0x33b5d7(0x158)](_0x25f554),_0x4b1b5a,_0x25f554,_0x130171);return await _0x280af8[_0x33b5d7(0x220)](),this[_0x33b5d7(0x390)][_0x33b5d7(0x1c7)](_0x280af8),_0x280af8;}[_0x3bdab3(0x158)](_0x2ffb43){const _0x27850a=_0x3bdab3;switch(_0x2ffb43){case H['UNIVER_DOC']:return dt;case H[_0x27850a(0x38c)]:return ft;default:throw new Error(_0x27850a(0x1e4)+_0x2ffb43);}}};Ee=Je([_0x516125(_0x3c792f[_0x3bdab3(0x335)],Ee),S(0x0,_0x279e5b(_0x5df577)),S(0x1,_0x279e5b(Re)),S(0x2,_0x173bd8)],Ee);let We=class extends _0x300f85{constructor(_0x253018,_0x51a34f,_0x4751c6,_0xbca7e2,_0x118e16,_0x3de4f8,_0x55fede,_0x388e51,_0x50963a,_0x37935e,_0x51f3b4,_0x5941ac,_0x1f6a7c){const _0x3b56c9=_0x3bdab3;super(),l(this,_0x3b56c9(0x366),new _0x2fb415(null)),l(this,'state$',this[_0x3b56c9(0x366)][_0x3b56c9(0x267)]()),l(this,_0x3b56c9(0x312)),l(this,_0x3b56c9(0xff),!0x1),l(this,_0x3b56c9(0x21b),this[_0x3b56c9(0x248)][_0x3b56c9(0x19c)](_0x5de95e(_0x553aed=>_0x553aed?_0x553aed['status']:P[_0x3b56c9(0x37a)]),_0x1a58cf(0x1))),l(this,_0x3b56c9(0xde),!0x1),l(this,_0x3b56c9(0x29a),[]),(this['unitID']=_0x253018,this[_0x3b56c9(0x37c)]=_0x51a34f,this['_session']=_0x4751c6,this[_0x3b56c9(0x191)]=_0xbca7e2,this[_0x3b56c9(0x334)]=_0x118e16,this[_0x3b56c9(0x355)]=_0x3de4f8,this[_0x3b56c9(0x26d)]=_0x55fede,this[_0x3b56c9(0x118)]=_0x388e51,this[_0x3b56c9(0x140)]=_0x50963a,this['_commandService']=_0x37935e,this[_0x3b56c9(0x2c7)]=_0x51f3b4,this[_0x3b56c9(0x9d)]=_0x5941ac,this[_0x3b56c9(0x35a)]=_0x1f6a7c);}get[_0x3bdab3(0x36d)](){const _0x91af8d=_0x3bdab3;return this[_0x91af8d(0x312)];}async[_0x3bdab3(0x220)](){const _0x3ea500=_0x3bdab3;if(this[_0x3ea500(0x36d)])throw new Error(_0x3ea500(0x11c));await this[_0x3ea500(0x10d)]();}[_0x3bdab3(0xb7)](){const _0x828c76=_0x3bdab3;return this[_0x828c76(0xff)]=!0x0,_0x439c9a(()=>{const _0x33f513=_0x828c76;this[_0x33f513(0xff)]=!0x1,this[_0x33f513(0x1a3)]();});}['_updateState'](_0x58916f){const _0x16d8f5=_0x3bdab3;this['_state']=_0x58916f,this[_0x16d8f5(0x366)][_0x16d8f5(0x1c7)](_0x58916f);}async[_0x3bdab3(0x10d)](){const _0x2e14c6=_0x3bdab3;var _0x3cc725;return this[_0x2e14c6(0x2db)](await this[_0x2e14c6(0x2eb)]()),this[_0x2e14c6(0x35a)]&&((_0x3cc725=this['_singleActiveUnitService'])==null||_0x3cc725[_0x2e14c6(0x234)](this[_0x2e14c6(0x227)]),this['disposeWithMe'](_0x439c9a(this[_0x2e14c6(0x35a)][_0x2e14c6(0x169)](this[_0x2e14c6(0x227)])[_0x2e14c6(0x2b5)](_0x53972f=>{const _0x157fe3=_0x2e14c6;this['_logService'][_0x157fe3(0x23b)](_0x157fe3(0x38f),'editing\x20status\x20changed\x20to',_0x53972f),_0x53972f===Rs[_0x157fe3(0x2c5)]?(this[_0x157fe3(0x2c7)][_0x157fe3(0x270)]({'content':this[_0x157fe3(0x26d)]['t'](_0x157fe3(0x1f9)),'type':_0x32f68a[_0x157fe3(0x13d)]}),this[_0x157fe3(0x9d)][_0x157fe3(0xb3)](new _0x2a2a3d(this[_0x157fe3(0x227)])['id'],!0x1)):this[_0x157fe3(0x9d)][_0x157fe3(0xb3)](new _0x2a2a3d(this[_0x157fe3(0x227)])['id'],!0x0);})))),this['disposeWithMe'](_0x439c9a(this[_0x2e14c6(0x232)]['sessionStatus$'][_0x2e14c6(0x2b5)](_0x12b059=>{const _0x173ef5=_0x2e14c6;_0x12b059===_e[_0x173ef5(0x121)]?this['_toggleOnline']():_0x12b059===_e[_0x173ef5(0x37a)]&&this[_0x173ef5(0xd0)]();}))),this['disposeWithMe'](_0x439c9a(this[_0x2e14c6(0x232)][_0x2e14c6(0x126)]['subscribe'](_0x4c2919=>{const _0x149cea=_0x2e14c6;try{switch(_0x4c2919[_0x149cea(0xd4)]){case _0x19dc79[_0x149cea(0x2fc)]:{this[_0x149cea(0x1d8)](_0x17d674(_0x4c2919[_0x149cea(0x3ac)]));break;}case _0x19dc79[_0x149cea(0x2b3)]:{this['_onRemoteACK'](_0x4c2919['data']);break;}case _0x19dc79[_0x149cea(0xca)]:{this['_onRemoteRejected']();break;}case _0x19dc79[_0x149cea(0xa5)]:{this[_0x149cea(0x101)](_0x4c2919[_0x149cea(0x3ac)]['changesets']['map'](_0x5c4e79=>_0x17d674(_0x5c4e79)));break;}case _0x19dc79[_0x149cea(0x3a5)]:this[_0x149cea(0x157)]({'isPermissionRej':!0x0});}}catch(_0x18c0e7){throw console['error']('Error\x20on\x20receiving\x20event',_0x18c0e7),_0x18c0e7;}}))),this[_0x2e14c6(0x312)];}[_0x3bdab3(0x117)](){const _0x17cf00=_0x3bdab3;this[_0x17cf00(0xde)]=!0x1;}[_0x3bdab3(0x362)](){const _0x19dc5f=_0x3bdab3;if(this[_0x19dc5f(0xde)])throw new Error(_0x19dc5f(0xc9));this[_0x19dc5f(0xde)]=!0x0;}[_0x3bdab3(0x1ec)](_0x49a1fe){const _0x531a98=_0x3bdab3;this[_0x531a98(0x362)](),this[_0x531a98(0x2db)](this[_0x531a98(0x312)][_0x531a98(0x17f)](_0x49a1fe)),this['_unlockTransition']();}[_0x3bdab3(0x1d8)](_0x28e07c){const _0x1ba8eb=_0x3bdab3;if(!(_0x28e07c[_0x1ba8eb(0x1a0)]<=this[_0x1ba8eb(0x118)][_0x1ba8eb(0x3b3)](this['unitID']))){if(this[_0x1ba8eb(0xff)]){this['_remoteChangesetQueue']['push'](_0x28e07c);return;}this[_0x1ba8eb(0x1f0)](_0x28e07c);}}[_0x3bdab3(0x1a3)](){const _0x5d07d4=_0x3bdab3;this['_remoteChangesetQueue'][_0x5d07d4(0x2fa)](_0x276041=>this[_0x5d07d4(0x1f0)](_0x276041)),this[_0x5d07d4(0x29a)]=[];}['_applyRemoteChangeset'](_0x5cbd4b){const _0x526d52=_0x3bdab3,_0x41493e=this['_compressMutationService'][_0x526d52(0x1ef)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x526d52(0x1ef)][_0x526d52(0x26e)]()[_0x526d52(0x196)])(_0x5cbd4b[_0x526d52(0x295)],null)||_0x5cbd4b['mutations'],_0x2e03fb={..._0x5cbd4b,'mutations':_0x41493e};this[_0x526d52(0x362)](),this[_0x526d52(0x2db)](this[_0x526d52(0x312)][_0x526d52(0x327)](_0x2e03fb)),this[_0x526d52(0x117)]();}['_onRemoteACK'](_0x31249c){const _0x4a20a2=_0x3bdab3;this['_lockTransition'](),this[_0x4a20a2(0x2db)](this['_state']['onRemoteAck'](_0x31249c)),this[_0x4a20a2(0x117)]();}[_0x3bdab3(0x157)](_0x15def0){const _0x3b01a3=_0x3bdab3;this[_0x3b01a3(0x362)](),this['_updateState'](this[_0x3b01a3(0x312)][_0x3b01a3(0x179)](_0x15def0)),this[_0x3b01a3(0x117)]();}[_0x3bdab3(0x101)](_0x570018){const _0x591522=_0x3bdab3;if(!(this[_0x591522(0x312)]instanceof W))throw new TypeError(_0x591522(0x167));const _0x2d00ed=_0x570018['map'](_0x3a015f=>{const _0x4f7aea=_0x591522,_0x3a5676=this[_0x4f7aea(0x355)]['interceptor'][_0x4f7aea(0x344)](this[_0x4f7aea(0x355)][_0x4f7aea(0x1ef)][_0x4f7aea(0x26e)]()[_0x4f7aea(0x196)])(_0x3a015f['mutations'],null)||_0x3a015f[_0x4f7aea(0x295)];return{..._0x3a015f,'mutations':_0x3a5676};});this[_0x591522(0x362)](),this[_0x591522(0x2db)](this[_0x591522(0x312)]['onMissedChangesetFetched'](_0x2d00ed)),this[_0x591522(0x117)]();}[_0x3bdab3(0xd0)](){const _0xd45ee1=_0x3bdab3;this['_lockTransition'](),this[_0xd45ee1(0x2db)](this[_0xd45ee1(0x312)][_0xd45ee1(0x11b)]()),this[_0xd45ee1(0x117)]();}['_toggleOnline'](){const _0x53bfa5=_0x3bdab3;this[_0x53bfa5(0x362)](),this[_0x53bfa5(0x2db)](this[_0x53bfa5(0x312)][_0x53bfa5(0x189)]()),this[_0x53bfa5(0x117)]();}async['_createInitialState'](){return new Promise(_0x2df48a=>{const _0x4fd516=_0x92e7;this['_session']['sessionStatus$'][_0x4fd516(0x19c)](_0x319274(0x1))[_0x4fd516(0x2b5)](async _0x5d6358=>{const _0xd5789a=_0x4fd516;_0x2df48a(await this[_0xd5789a(0x1c6)](_0x5d6358===_e[_0xd5789a(0x121)]));});});}[_0x3bdab3(0x1d0)](){const _0x5e0007=this['unitID'];return{'onStateChange':(_0x5be172,_0x39424f)=>{const _0xd59f6a=_0x92e7;if(_0x5be172!==this['_state'])throw new Error(_0xd59f6a(0x296)+_0x5be172[_0xd59f6a(0x186)]+_0xd59f6a(0x2dc)+_0x39424f['status']+'\x0aCurrent:\x20'+this[_0xd59f6a(0x312)][_0xd59f6a(0x186)]);this['_updateState'](_0x39424f);},'onSendChangeset':_0x201413=>{const _0x1aba8d=_0x92e7,_0x478d74={'eventID':_0x19dc79[_0x1aba8d(0x395)],'data':{'unitID':_0x201413[_0x1aba8d(0x227)],'unitType':this['_type'],'changeset':_0x201413,'memberID':this['_session'][_0x1aba8d(0x14c)]()}};this[_0x1aba8d(0x232)][_0x1aba8d(0x204)](_0x478d74,this[_0x1aba8d(0x227)]);},'onMissingChangesets':({from:_0x1fce68,to:_0x551f11})=>{const _0x49495a=_0x92e7;this[_0x49495a(0x140)]['debug'](_0x49495a(0x38f),_0x49495a(0x2df)+_0x1fce68+_0x49495a(0x96)+_0x551f11);const _0x2df5e1={'eventID':_0x19dc79['FETCH_MISSING'],'data':{'unitID':_0x5e0007,'unitType':this[_0x49495a(0x37c)],'from':_0x1fce68,'to':_0x551f11}};this['_session'][_0x49495a(0x204)](_0x2df5e1,this[_0x49495a(0x227)]);}};}async['_createInitialStateImpl'](_0x2f9086){const _0x57ca3a=_0x3bdab3;var _0x8a0bce,_0x4a6540;const _0x16a6ad=await this[_0x57ca3a(0x334)][_0x57ca3a(0x2a5)](this[_0x57ca3a(0x227)]),_0x58fb82=(_0x8a0bce=_0x16a6ad==null?void 0x0:_0x16a6ad[_0x57ca3a(0x295)])!=null?_0x8a0bce:[],_0x10e0ca=(_0x4a6540=_0x16a6ad==null?void 0x0:_0x16a6ad['awaitingChangeset'])!=null?_0x4a6540:null,_0x3aedb1=this[_0x57ca3a(0x227)];try{this[_0x57ca3a(0x237)](_0x10e0ca,_0x58fb82);}catch(_0x2d66a6){this[_0x57ca3a(0x140)][_0x57ca3a(0x127)](_0x2d66a6);}const _0x1162d5=this[_0x57ca3a(0x1d0)]();if(_0x2f9086){const _0x4bf1bf=Os(this[_0x57ca3a(0x191)],_0x3aedb1,this[_0x57ca3a(0x37c)],_0x10e0ca,_0x58fb82,_0x1162d5);return _0x4bf1bf instanceof B?_0x4bf1bf['_schedule']():(_0x4bf1bf instanceof V||_0x4bf1bf instanceof K)&&_0x4bf1bf[_0x57ca3a(0x29d)](),_0x4bf1bf;}return this['_injector'][_0x57ca3a(0x2c9)](X,_0x3aedb1,this[_0x57ca3a(0x37c)],_0x10e0ca,_0x58fb82,_0x1162d5);}['_replayCachedMutations'](_0x8d762a,_0x46e6e5){const _0x423db2=_0x3bdab3;var _0x29e2ee,_0x47e9cf;const _0x39d06c=this[_0x423db2(0x355)][_0x423db2(0x1ef)][_0x423db2(0x344)](this[_0x423db2(0x355)][_0x423db2(0x1ef)][_0x423db2(0x26e)]()[_0x423db2(0x196)]);(_0x29e2ee=_0x39d06c((_0x8d762a==null?void 0x0:_0x8d762a[_0x423db2(0x295)])||[],null))==null||_0x29e2ee[_0x423db2(0x2fa)](_0x26ea4e=>this[_0x423db2(0x200)][_0x423db2(0x24e)](_0x26ea4e['id'],_0x26ea4e[_0x423db2(0x3bd)])),(_0x47e9cf=_0x39d06c(_0x46e6e5||[],null))==null||_0x47e9cf['forEach'](_0x5b7b08=>this['_commandService'][_0x423db2(0x24e)](_0x5b7b08['id'],_0x5b7b08[_0x423db2(0x3bd)]));}};We=Je([S(0x3,_0x279e5b(_0x5df577)),S(0x4,_0x279e5b(D)),S(0x5,_0x279e5b(_0x130ad1)),S(0x6,_0x279e5b(_0x25e6c6)),S(0x7,_0x279e5b(_0x54c94d)),S(0x8,_0x2cecb4),S(0x9,_0x5ba974),S(0xa,_0x2ac335),S(0xb,_0x4ac7e0),S(0xc,_0x4100a2(Xe))],We);let dt=class extends We{constructor(_0x3cee47,_0x70104c,_0x45d4e9,_0x2ca119,_0xf63f98,_0x2be705,_0x5d08b2,_0x56af60,_0x3d466b,_0x591b89,_0x30fe20,_0x2f4837,_0xb47b22,_0x34cd4a,_0x41906e,_0x33355e,_0x31bd3a){const _0x5c5110=_0x3bdab3;super(_0x3cee47,_0x70104c,_0x45d4e9,_0x2ca119,_0xf63f98,_0x2be705,_0x5d08b2,_0x56af60,_0xb47b22,_0x34cd4a,_0x41906e,_0x33355e,_0x31bd3a),this[_0x5c5110(0x227)]=_0x3cee47,this[_0x5c5110(0x2ec)]=_0x70104c,this[_0x5c5110(0x273)]=_0x45d4e9,this[_0x5c5110(0x2c0)]=_0x3d466b,this['_docTransformIMECacheService']=_0x591b89,this[_0x5c5110(0xac)]=_0x30fe20,this[_0x5c5110(0x261)]=_0x2f4837;}[_0x3bdab3(0x1d0)](){const _0x417c1d=_0x3bdab3,_0xcd28d9=super['_createHandler']();return _0xcd28d9[_0x417c1d(0x1db)]=_0x2c6271=>this['_docTransformIMECacheService'][_0x417c1d(0x1fa)](_0x2c6271),_0xcd28d9[_0x417c1d(0x1b8)]=_0x3d81ef=>this[_0x417c1d(0xac)][_0x417c1d(0xb8)](_0x3d81ef),_0xcd28d9[_0x417c1d(0xaa)]=_0x1d6588=>this['_docSyncEditingCollabCursorService'][_0x417c1d(0x31c)](_0x1d6588),_0xcd28d9[_0x417c1d(0x2bf)]=_0x32e1bd=>this[_0x417c1d(0x323)][_0x417c1d(0xd5)](_0x32e1bd),_0xcd28d9;}async[_0x3bdab3(0x10d)](){const _0x585c2d=_0x3bdab3,_0x56fd51=await super[_0x585c2d(0x10d)]();return this[_0x585c2d(0x2c0)][_0x585c2d(0x19b)][_0x585c2d(0x19c)](_0x352c23(this[_0x585c2d(0x99)]))[_0x585c2d(0x2b5)](_0x4d8b84=>{const _0xe5a1bd=_0x585c2d;if(_0x4d8b84==null)return;const {unitId:_0x36bc30,redoState:_0x3dc693,commandId:_0xaa6752}=_0x4d8b84;if(_0x36bc30!==this[_0xe5a1bd(0x227)])return;const _0x55e485={'id':_0xaa6752,'type':_0x4ea69f[_0xe5a1bd(0x350)],'params':{'unitId':_0x36bc30,'actions':_0x3dc693['actions'],'textRanges':null}};this[_0xe5a1bd(0x1ec)](_0x55e485);}),_0x56fd51;}};dt=Je([S(0x3,_0x279e5b(_0x5df577)),S(0x4,_0x279e5b(D)),S(0x5,_0x279e5b(_0x130ad1)),S(0x6,_0x279e5b(_0x25e6c6)),S(0x7,_0x279e5b(_0x54c94d)),S(0x8,_0x279e5b(_0x520590)),S(0x9,_0x279e5b(ke)),S(0xa,_0x279e5b(Be)),S(0xb,_0x279e5b(Mt)),S(0xc,_0x2cecb4),S(0xd,_0x5ba974),S(0xe,_0x2ac335),S(0xf,_0x4ac7e0),S(0x10,_0x4100a2(Xe))],dt);let ft=class extends We{constructor(_0x211d17,_0x25277b,_0x544a49,_0x30a71b,_0x5a6521,_0x5a2539,_0x586d54,_0x5b7bb1,_0x536146,_0x1c8c60,_0x255879,_0x3f4571,_0x17e607,_0x6eddb0){const _0x28110a=_0x3bdab3;super(_0x211d17,_0x25277b,_0x544a49,_0x30a71b,_0x5a6521,_0x5a2539,_0x586d54,_0x5b7bb1,_0x1c8c60,_0x255879,_0x3f4571,_0x17e607,_0x6eddb0),this[_0x28110a(0x227)]=_0x211d17,this['type']=_0x25277b,this['session']=_0x544a49,this[_0x28110a(0x34e)]=_0x536146;}['_createHandler'](){const _0x414e5b=_0x3bdab3,_0x4e7590=super['_createHandler']();return _0x4e7590[_0x414e5b(0x1b8)]=_0xd9e45=>this[_0x414e5b(0x34e)][_0x414e5b(0xb8)](_0xd9e45),_0x4e7590;}async['_init'](){const _0x1ea437=_0x3bdab3,_0x4d8343=await super[_0x1ea437(0x10d)]();return this[_0x1ea437(0x18d)](this[_0x1ea437(0x200)][_0x1ea437(0x386)]((_0x4b75d7,_0x482d28)=>{const _0x2d48a4=_0x1ea437;if(_0x4b75d7['type']!==_0x4ea69f[_0x2d48a4(0x350)]||_0x482d28!=null&&_0x482d28['fromCollab']||_0x482d28!=null&&_0x482d28['onlyLocal'])return;const _0x171a9e=_0x4b75d7[_0x2d48a4(0x3bd)];if((_0x171a9e==null?void 0x0:_0x171a9e[_0x2d48a4(0x13f)])!==this['unitID'])return;const _0x542d57=_0x4b75d7,_0x970f01=this[_0x2d48a4(0x355)][_0x2d48a4(0x1ef)][_0x2d48a4(0x344)](this['_compressMutationService']['interceptor'][_0x2d48a4(0x26e)]()['COMPRESS_MUTATION_SEND'])([_0x542d57],null)||[_0x542d57];this[_0x2d48a4(0x1ec)](_0x970f01[0x0]);})),_0x4d8343;}};ft=Je([S(0x3,_0x279e5b(_0x5df577)),S(0x4,_0x279e5b(D)),S(0x5,_0x279e5b(_0x130ad1)),S(0x6,_0x279e5b(_0x25e6c6)),S(0x7,_0x279e5b(_0x54c94d)),S(0x8,_0x279e5b(Ve)),S(0x9,_0x2cecb4),S(0xa,_0x5ba974),S(0xb,_0x2ac335),S(0xc,_0x4ac7e0),S(0xd,_0x4100a2(Xe))],ft);const zt=[_0x3bdab3(0x128),_0x3bdab3(0x164),_0x3bdab3(0x182),_0x3bdab3(0x301),_0x3bdab3(0x16e),_0x3bdab3(0x310)];class At extends _0x292c4b{constructor(){const _0x11a5ee=_0x3bdab3;super(...arguments),l(this,_0x11a5ee(0x160),new Map()),l(this,_0x11a5ee(0x387),0x0);}[_0x3bdab3(0x2f3)](_0x52d64b){const _0x1f3a41=_0x3bdab3;if(this[_0x1f3a41(0x160)][_0x1f3a41(0x27c)](_0x52d64b))return this[_0x1f3a41(0x160)][_0x1f3a41(0x132)](_0x52d64b);const _0x7af692=zt[this['_colorIndex']];return this[_0x1f3a41(0x387)]=(this['_colorIndex']+0x1)%zt[_0x1f3a41(0x2d9)],this[_0x1f3a41(0x160)][_0x1f3a41(0x156)](_0x52d64b,_0x7af692),_0x7af692;}}var Vn=Object[_0x3bdab3(0x162)],Wn=Object[_0x3bdab3(0x123)],Gn=(_0x4c437b,_0x373acd,_0x2e1207,_0x32801d)=>{const _0x149802=_0x3bdab3;for(var _0x19133d=_0x32801d>0x1?void 0x0:_0x32801d?Wn(_0x373acd,_0x2e1207):_0x373acd,_0x373a99=_0x4c437b[_0x149802(0x2d9)]-0x1,_0x4e59ea;_0x373a99>=0x0;_0x373a99--)(_0x4e59ea=_0x4c437b[_0x373a99])&&(_0x19133d=(_0x32801d?_0x4e59ea(_0x373acd,_0x2e1207,_0x19133d):_0x4e59ea(_0x19133d))||_0x19133d);return _0x32801d&&_0x19133d&&Vn(_0x373acd,_0x2e1207,_0x19133d),_0x19133d;},ae=(_0x4ca1ef,_0x59bd9d)=>(_0x3229cc,_0x42848a)=>_0x59bd9d(_0x3229cc,_0x42848a,_0x4ca1ef);const Yn=0x12c,Kn=0x64,Xn=()=>{let _0x239317=[],_0x1c05d2=!0x1;return _0x409b59=>{const _0x5d6895=_0x92e7;_0x239317[_0x5d6895(0x37d)](_0x409b59),_0x1c05d2||(_0x1c05d2=!0x0,setTimeout(()=>{_0x239317['forEach'](_0x344fc9=>_0x344fc9()),_0x239317=[],_0x1c05d2=!0x1;}));};};let gt=class extends _0x300f85{constructor(_0x5ca32c,_0x95a0fd,_0x525152,_0x48f1e6,_0xa74770,_0x317725,_0x115cef,_0x1806fe){const _0x5799bf=_0x3bdab3;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,_0x5799bf(0x12d),new _0x2fb415(new Map())),l(this,_0x5799bf(0x17d),this[_0x5799bf(0x12d)][_0x5799bf(0x267)]()),l(this,_0x5799bf(0x36e),new _0x2fb415([])),l(this,_0x5799bf(0x30d),this[_0x5799bf(0x36e)][_0x5799bf(0x19c)](_0x2e32ca(Yn))),l(this,_0x5799bf(0x173),_0x2ebe29((_0x502d00,_0x51760d)=>{const _0x5b42aa=_0x5799bf,_0x3a9b21={'eventID':_0x19dc79[_0x5b42aa(0x38e)],'data':{'unitID':this[_0x5b42aa(0x227)],'memberID':this[_0x5b42aa(0x232)][_0x5b42aa(0x14c)](),'selection':_0x329641(_0x502d00,_0x51760d[_0x5b42aa(0x34d)])}};this[_0x5b42aa(0x232)][_0x5b42aa(0x204)](_0x3a9b21,this['unitID']);},Kn)),(this[_0x5799bf(0x227)]=_0x5ca32c,this['_session']=_0x95a0fd,this[_0x5799bf(0x191)]=_0x525152,this['_colorAssignService']=_0x48f1e6,this[_0x5799bf(0x2b0)]=_0xa74770,this[_0x5799bf(0xa4)]=_0x317725,this['_commandService']=_0x115cef,this[_0x5799bf(0x22c)]=_0x1806fe);}get[_0x3bdab3(0x1b2)](){const _0x5df2ae=_0x3bdab3;return this[_0x5df2ae(0x12d)][_0x5df2ae(0x298)]();}get['roomMembers'](){const _0x2b6310=_0x3bdab3;return this[_0x2b6310(0x36e)][_0x2b6310(0x298)]();}['dispose'](){const _0x44b95e=_0x3bdab3;super[_0x44b95e(0x328)](),this[_0x44b95e(0x12d)][_0x44b95e(0x1c7)](new Map()),this[_0x44b95e(0x12d)][_0x44b95e(0x1fc)](),this[_0x44b95e(0x36e)][_0x44b95e(0x1c7)]([]),this['_roomMembers$'][_0x44b95e(0x1fc)]();}[_0x3bdab3(0x220)](){const _0x2aa18e=_0x3bdab3;this[_0x2aa18e(0x10d)]||(this[_0x2aa18e(0x10d)]=!0x0,this[_0x2aa18e(0x232)][_0x2aa18e(0x14a)][_0x2aa18e(0x19c)](_0x352c23(this['dispose$']))[_0x2aa18e(0x2b5)](_0x302f3d=>{const _0xc77e72=_0x2aa18e;_0x302f3d===_e[_0xc77e72(0x121)]?this[_0xc77e72(0xd2)]():this[_0xc77e72(0xd0)]();}),this[_0x2aa18e(0x232)][_0x2aa18e(0x126)][_0x2aa18e(0x19c)](_0x352c23(this[_0x2aa18e(0x99)]))[_0x2aa18e(0x2b5)](_0x441e57=>{const _0x2c2cc3=_0x2aa18e,_0x5a22e8=_0x441e57['eventID'];_0x5a22e8===_0x19dc79[_0x2c2cc3(0x38e)]&&this[_0x2c2cc3(0x137)](_0x441e57),_0x5a22e8===_0x19dc79['USERS_LEAVE']&&this['_onCursorDelete'](_0x441e57);}),this[_0x2aa18e(0x148)](),this[_0x2aa18e(0x18d)](this['_commandService'][_0x2aa18e(0x386)](_0x36cdba=>{const _0x136a1b=_0x2aa18e;if(this[_0x136a1b(0x314)]&&_0x36cdba['id']===_0x2a3a91['id']&&_0x36cdba[_0x136a1b(0x3bd)][_0x136a1b(0x13f)]===this[_0x136a1b(0x227)]){const _0x4fab9d=_0x36cdba[_0x136a1b(0x3bd)];this[_0x136a1b(0x173)](_0x4fab9d[_0x136a1b(0xe2)],_0x4fab9d['selections'][0x0]);}})));}[_0x3bdab3(0x137)](_0x64cbf){const _0x4f5670=_0x3bdab3;var _0x5d3594,_0x5df887;const {memberID:_0x397119,selection:_0x202cd0}=_0x64cbf[_0x4f5670(0x3ac)],{sheetName:_0x4851a2,range:_0x46555a}=_0xa7c92b(_0x202cd0),_0x35b11c={'name':(_0x5df887=(_0x5d3594=this['_memberService'][_0x4f5670(0x195)](this[_0x4f5670(0x227)],_0x397119))==null?void 0x0:_0x5d3594['name'])!=null?_0x5df887:'Unknown\x20user','range':this['_getMergeRange'](_0x4851a2,_0x46555a),'sheetID':_0x4851a2,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x397119),'selection':_0x202cd0},_0x591094=this[_0x4f5670(0x1b2)];_0x591094[_0x4f5670(0x156)](_0x397119,_0x35b11c),this[_0x4f5670(0x12d)][_0x4f5670(0x1c7)](_0x591094);}['_onCursorDelete'](_0x1f111c){const _0x5befd1=_0x3bdab3,{memberID:_0x496878}=_0x1f111c[_0x5befd1(0x3ac)],_0x460c60=this[_0x5befd1(0x1b2)];_0x460c60[_0x5befd1(0xfc)](_0x496878),this[_0x5befd1(0x12d)][_0x5befd1(0x1c7)](_0x460c60);}['_getMergeRange'](_0xc327f4,_0x4ffdf1){const _0x73f03c=_0x3bdab3;var _0x1153d8,_0x4357be;const _0x17388b=(_0x4357be=(_0x1153d8=this['_univerInstanceService'][_0x73f03c(0x3b9)](this['unitID']))==null?void 0x0:_0x1153d8[_0x73f03c(0x2e2)](_0xc327f4))==null?void 0x0:_0x4357be[_0x73f03c(0x1f3)]();return(_0x17388b==null?void 0x0:_0x17388b[_0x73f03c(0x3a0)](_0x669a79=>_0x262b85[_0x73f03c(0x257)](_0x669a79,_0x4ffdf1)))||_0x4ffdf1;}[_0x3bdab3(0x148)](){const _0x521e05=_0x3bdab3,_0x37c4f7=new _0x308b9c(),_0x4d8cde=Xn(),_0x54d3ae=()=>{const _0x341dec=_0x92e7;_0x37c4f7['dispose']();const _0x2b301d=(_0x18236b,_0x49bc2b,_0x45b05f,_0x52d673)=>{const _0x446c9c=_0x92e7;let _0x2516de=[];switch(_0x18236b['id']){case _0x1cd245[_0x446c9c(0xf5)]:{_0x2516de=_0x4b07cd(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0x36f)]:{_0x2516de=_0x2a22df(_0x18236b,_0x52d673);break;}case _0x1cd245['InsertColCommandId']:{_0x2516de=_0x291d27(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0x25c)]:{_0x2516de=_0x343dcb(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0x2ac)]:{_0x2516de=_0xa36c52(_0x18236b,_0x52d673);break;}case _0x1cd245['InsertRowCommandId']:{_0x2516de=_0x152d72(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0x133)]:{_0x2516de=_0xda0b52(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0x1e3)]:{_0x2516de=_0x321d78(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0xdd)]:{_0x2516de=_0x3c04cd(_0x18236b,_0x52d673);break;}}const _0x473ffa=_0x4c1838(_0x2516de,_0x52d673),_0x484d49=this[_0x446c9c(0x1b2)][_0x446c9c(0x132)](_0x49bc2b);if(_0x484d49&&_0x473ffa){const _0x17b52f={..._0x484d49,'range':_0x473ffa};this[_0x446c9c(0x1b2)][_0x446c9c(0x156)](_0x49bc2b,_0x17b52f),_0x4d8cde(()=>{const _0x2960ea=_0x446c9c,_0x57518f=this['_refRangeService']['registerRefRange'](_0x473ffa,_0x394559=>(_0x57518f[_0x2960ea(0x328)](),_0x2b301d(_0x394559,_0x49bc2b,_0x45b05f,_0x473ffa)));_0x37c4f7['add'](_0x57518f);});}return{'redos':[],'undos':[]};};this[_0x341dec(0x1b2)][_0x341dec(0x2fa)]((_0x300f30,_0x4f52f6)=>{const {range:_0x474827,sheetID:_0x2a694f}=_0x300f30,_0x4354d0=this['_refRangeService']['registerRefRange'](_0x474827,_0x353c9a=>(_0x4354d0['dispose'](),_0x2b301d(_0x353c9a,_0x4f52f6,_0x2a694f,_0x474827)));_0x37c4f7['add'](_0x4354d0);});};this[_0x521e05(0x18d)](_0x439c9a(this[_0x521e05(0x12d)]['subscribe'](()=>{_0x54d3ae();})));}[_0x3bdab3(0xd2)](){const _0x19b644=_0x3bdab3;var _0x5b4ef2,_0x419221;if(this[_0x19b644(0x314)]=!0x0,((_0x5b4ef2=this[_0x19b644(0xa4)]['getFocusedUnit']())==null?void 0x0:_0x5b4ef2[_0x19b644(0x100)]())!==this[_0x19b644(0x227)])return;const _0x16ad8f=(_0x419221=this[_0x19b644(0x191)]['get'](_0x24c085)[_0x19b644(0x3a1)]())==null?void 0x0:_0x419221[0x0],_0x43151b=this[_0x19b644(0xa4)]['getCurrentUnitForType'](_0x3ba52b[_0x19b644(0x38c)])[_0x19b644(0x308)]();_0x16ad8f&&_0x43151b&&this[_0x19b644(0x173)](_0x43151b[_0x19b644(0x13c)](),_0x16ad8f);}['_toggleOffline'](){this['_online']=!0x1;}};gt=Gn([ae(0x2,_0x279e5b(_0x5df577)),ae(0x3,_0x279e5b(At)),ae(0x4,_0x279e5b(ee)),ae(0x5,_0x173bd8),ae(0x6,_0x5ba974),ae(0x7,_0x279e5b(_0x4bc4de))],gt);var Jn=Object[_0x3bdab3(0x162)],zn=Object[_0x3bdab3(0x123)],Zn=(_0x55eeb8,_0x6404f6,_0x924f62,_0x5ab018)=>{const _0xd8bbe8=_0x3bdab3;for(var _0x55d794=_0x5ab018>0x1?void 0x0:_0x5ab018?zn(_0x6404f6,_0x924f62):_0x6404f6,_0x140cb4=_0x55eeb8[_0xd8bbe8(0x2d9)]-0x1,_0xc501b8;_0x140cb4>=0x0;_0x140cb4--)(_0xc501b8=_0x55eeb8[_0x140cb4])&&(_0x55d794=(_0x5ab018?_0xc501b8(_0x6404f6,_0x924f62,_0x55d794):_0xc501b8(_0x55d794))||_0x55d794);return _0x5ab018&&_0x55d794&&Jn(_0x6404f6,_0x924f62,_0x55d794),_0x55d794;},Z=(_0x1c85f9,_0x4c06f7)=>(_0xb625d8,_0x5f0180)=>_0x4c06f7(_0xb625d8,_0x5f0180,_0x1c85f9);const qn=0x12c,Qn=0x64;let mt=class extends _0x300f85{constructor(_0x508d77,_0x396703,_0x14bb80,_0x250aa6,_0x545936,_0x473783,_0x4b5eca,_0xec841,_0x4c43b5){const _0x3ecc84=_0x3bdab3;super(),l(this,_0x3ecc84(0x314),!0x1),l(this,_0x3ecc84(0x10d),!0x1),l(this,_0x3ecc84(0x12d),new _0x2fb415(new Map())),l(this,_0x3ecc84(0x17d),this[_0x3ecc84(0x12d)][_0x3ecc84(0x267)]()),l(this,_0x3ecc84(0x36e),new _0x2fb415([])),l(this,'roomMembers$',this[_0x3ecc84(0x36e)][_0x3ecc84(0x19c)](_0x2e32ca(qn))),l(this,_0x3ecc84(0x173),_0x2ebe29(_0x1be18b=>{const _0x50d496=_0x3ecc84,_0x560223={'eventID':_0x19dc79[_0x50d496(0x38e)],'data':{'unitID':this[_0x50d496(0x227)],'memberID':this['_session'][_0x50d496(0x14c)](),'selection':Ts(_0x1be18b)}};this[_0x50d496(0x232)]['send'](_0x560223,this[_0x50d496(0x227)]);},Qn)),(this[_0x3ecc84(0x227)]=_0x508d77,this[_0x3ecc84(0x232)]=_0x396703,this[_0x3ecc84(0x191)]=_0x14bb80,this[_0x3ecc84(0xf9)]=_0x250aa6,this[_0x3ecc84(0x2b0)]=_0x545936,this[_0x3ecc84(0x213)]=_0x473783,this[_0x3ecc84(0x2ef)]=_0x4b5eca,this[_0x3ecc84(0xa4)]=_0xec841,this[_0x3ecc84(0x200)]=_0x4c43b5);}get[_0x3bdab3(0x1b2)](){const _0x5c5946=_0x3bdab3;return this[_0x5c5946(0x12d)][_0x5c5946(0x298)]();}get['roomMembers'](){const _0x34a8ac=_0x3bdab3;return this[_0x34a8ac(0x36e)]['getValue']();}[_0x3bdab3(0x328)](){const _0x479afa=_0x3bdab3;super[_0x479afa(0x328)](),this[_0x479afa(0x12d)][_0x479afa(0x1c7)](new Map()),this[_0x479afa(0x12d)]['complete'](),this[_0x479afa(0x36e)][_0x479afa(0x1c7)]([]),this[_0x479afa(0x36e)][_0x479afa(0x1fc)]();}[_0x3bdab3(0x220)](){const _0x41e3c2=_0x3bdab3;this[_0x41e3c2(0x10d)]||(this[_0x41e3c2(0x10d)]=!0x0,this[_0x41e3c2(0x232)][_0x41e3c2(0x14a)][_0x41e3c2(0x19c)](_0x352c23(this[_0x41e3c2(0x99)]))[_0x41e3c2(0x2b5)](_0xd34c4d=>{const _0x4e1773=_0x41e3c2;_0xd34c4d===_e[_0x4e1773(0x121)]?this[_0x4e1773(0xd2)]():this[_0x4e1773(0xd0)]();}),this['_session'][_0x41e3c2(0x126)]['pipe'](_0x352c23(this[_0x41e3c2(0x99)]))[_0x41e3c2(0x2b5)](_0x3057cd=>{const _0x1d7ba5=_0x41e3c2,_0x6ad486=_0x3057cd['eventID'];_0x6ad486===_0x19dc79[_0x1d7ba5(0x38e)]&&this[_0x1d7ba5(0x137)](_0x3057cd),_0x6ad486===_0x19dc79['USERS_LEAVE']&&this[_0x1d7ba5(0x1f7)](_0x3057cd);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2a7ea5=>{const _0x9c9ac9=_0x41e3c2,_0x3f4f2e=_0x2a7ea5[_0x9c9ac9(0x3bd)];_0x3f4f2e!=null&&this[_0x9c9ac9(0x314)]&&_0x2a7ea5['id']===_0x3c0d3c['id']&&_0x3f4f2e[_0x9c9ac9(0x13f)]===this[_0x9c9ac9(0x227)]&&_0x3f4f2e['isEditing']===!0x1&&this[_0x9c9ac9(0x173)](_0x3f4f2e['ranges']);})),this['_syncEditingCollabCursorService'][_0x41e3c2(0x2a0)][_0x41e3c2(0x19c)](_0x352c23(this[_0x41e3c2(0x99)]))[_0x41e3c2(0x2b5)](_0x168e00=>{const _0x5b6994=_0x41e3c2;if((_0x168e00==null?void 0x0:_0x168e00[_0x5b6994(0x227)])!==this[_0x5b6994(0x227)])return;const _0x30b6e7={'eventID':_0x19dc79[_0x5b6994(0x38e)],'data':_0x168e00};this[_0x5b6994(0x137)](_0x30b6e7);}),this[_0x41e3c2(0x18d)](this[_0x41e3c2(0x200)]['onCommandExecuted'](_0x5ee84b=>{const _0x2aa525=_0x41e3c2;if(_0x5ee84b[_0x2aa525(0x3bd)]==null)return;const _0x19b665=_0x5ee84b[_0x2aa525(0x3bd)];if(_0x5ee84b['id']!==_0xe7b6e2['id']||_0x19b665[_0x2aa525(0x13f)]!==this[_0x2aa525(0x227)])return;const _0x3100d8={'id':_0x2aa525(0x22b),'params':_0x19b665},_0x329bde=this['cursorInfo'];for(const [_0x433e87,_0x3c6e06]of _0x329bde){const _0x3eac33={'id':_0x2aa525(0x22b),'params':{'unitId':this[_0x2aa525(0x227)],'actions':null,'textRanges':_0x3c6e06['ranges']}},_0xb9190d=this[_0x2aa525(0x2ef)][_0x2aa525(0x18e)](_0x3100d8,_0x3eac33,!0x1);if(_0x3295bd(_0xb9190d))throw _0xb9190d[_0x2aa525(0x127)];_0x329bde[_0x2aa525(0x156)](_0x433e87,{..._0x3c6e06,'ranges':_0xb9190d[_0x2aa525(0x32f)][_0x2aa525(0x3bd)][_0x2aa525(0x254)]});}queueMicrotask(()=>{const _0x2374de=_0x2aa525;this['_cursorInfo$'][_0x2374de(0x1c7)](_0x329bde);});})));}['_onCursorUpdate'](_0x5ae41d){const _0x405954=_0x3bdab3;var _0x10087e,_0x5aef0c;const {memberID:_0x1ff6bc,selection:_0x5df1b8}=_0x5ae41d[_0x405954(0x3ac)],_0x242194=An(_0x5df1b8),_0x51aa9c=(_0x5aef0c=(_0x10087e=this[_0x405954(0x2b0)]['getMember'](this['unitID'],_0x1ff6bc))==null?void 0x0:_0x10087e[_0x405954(0x394)])!=null?_0x5aef0c:_0x405954(0x32a),_0x168567={'color':this[_0x405954(0xf9)][_0x405954(0x2f3)](_0x1ff6bc),'name':_0x51aa9c,'ranges':_0x242194},_0x4cf57e=this[_0x405954(0x1b2)];_0x4cf57e[_0x405954(0x156)](_0x1ff6bc,_0x168567),this[_0x405954(0x12d)][_0x405954(0x1c7)](_0x4cf57e);}[_0x3bdab3(0x1f7)](_0x1d1d94){const _0x707235=_0x3bdab3,{memberID:_0x2c9ae9}=_0x1d1d94[_0x707235(0x3ac)],_0x1bf7d5=this[_0x707235(0x1b2)];_0x1bf7d5[_0x707235(0xfc)](_0x2c9ae9),this[_0x707235(0x12d)][_0x707235(0x1c7)](_0x1bf7d5);}[_0x3bdab3(0xd2)](){const _0x38959b=_0x3bdab3;var _0x423e25;if(this['_online']=!0x0,((_0x423e25=this[_0x38959b(0xa4)][_0x38959b(0x289)]())==null?void 0x0:_0x423e25[_0x38959b(0x100)]())!==this[_0x38959b(0x227)])return;const _0x445ec9=this['_injector'][_0x38959b(0x132)](_0x23f9d5)[_0x38959b(0x3a1)](),_0x3543bc=_0x445ec9==null?void 0x0:_0x445ec9['map'](_0x53dc05);Array[_0x38959b(0x2c1)](_0x3543bc)&&_0x3543bc[_0x38959b(0x2d9)]>0x0&&this[_0x38959b(0x173)](_0x3543bc);}[_0x3bdab3(0xd0)](){const _0x5f3fb4=_0x3bdab3;this[_0x5f3fb4(0x314)]=!0x1;}};mt=Zn([Z(0x2,_0x279e5b(_0x5df577)),Z(0x3,_0x279e5b(At)),Z(0x4,_0x279e5b(ee)),Z(0x5,_0x279e5b(Mt)),Z(0x6,_0x539a09),Z(0x7,_0x173bd8),Z(0x8,_0x5ba974)],mt);var er=Object[_0x3bdab3(0x162)],tr=Object['getOwnPropertyDescriptor'],sr=(_0xff6ef7,_0xfa4137,_0x1872bd,_0x395967)=>{const _0x584101=_0x3bdab3;for(var _0x316d17=_0x395967>0x1?void 0x0:_0x395967?tr(_0xfa4137,_0x1872bd):_0xfa4137,_0x3a893d=_0xff6ef7[_0x584101(0x2d9)]-0x1,_0x4e6f3c;_0x3a893d>=0x0;_0x3a893d--)(_0x4e6f3c=_0xff6ef7[_0x3a893d])&&(_0x316d17=(_0x395967?_0x4e6f3c(_0xfa4137,_0x1872bd,_0x316d17):_0x4e6f3c(_0x316d17))||_0x316d17);return _0x395967&&_0x316d17&&er(_0xfa4137,_0x1872bd,_0x316d17),_0x316d17;},st=(_0x1c3d6a,_0x220179)=>(_0x4d0dc5,_0x3d9fd9)=>_0x220179(_0x4d0dc5,_0x3d9fd9,_0x1c3d6a);let ue=class extends _0x300f85{constructor(_0x313390,_0x481518,_0x2ad179){const _0x524842=_0x3bdab3;super(),l(this,_0x524842(0x255),new Map()),l(this,_0x524842(0x390),new _0x4a8f66()),(this[_0x524842(0xa4)]=_0x313390,this[_0x524842(0x191)]=_0x481518,this['_collabSessionService']=_0x2ad179,this[_0x524842(0x10d)]());}['dispose'](){const _0x30ec10=_0x3bdab3;super[_0x30ec10(0x328)](),this[_0x30ec10(0x390)][_0x30ec10(0x1fc)](),this[_0x30ec10(0x255)][_0x30ec10(0x2fa)](_0xadc954=>_0xadc954[_0x30ec10(0x328)]());}[_0x3bdab3(0x299)](_0x357466){const _0x5005c4=_0x3bdab3;return this[_0x5005c4(0x255)][_0x5005c4(0x27c)](_0x357466)?this[_0x5005c4(0x255)]['get'](_0x357466)[_0x5005c4(0x17d)]:this[_0x5005c4(0x390)][_0x5005c4(0x19c)](_0x1402ad(_0x5411c9=>_0x5411c9['unitID']===_0x357466),_0x659f37(_0x427217=>_0x427217[_0x5005c4(0x17d)]));}['_init'](){const _0x27e4d3=_0x3bdab3;this[_0x27e4d3(0xa4)]['getTypeOfUnitAdded$'](_0x3ba52b[_0x27e4d3(0x38c)])[_0x27e4d3(0x19c)](_0x352c23(this[_0x27e4d3(0x99)]))[_0x27e4d3(0x2b5)](async _0x4cc720=>{const _0x198e7f=_0x27e4d3,_0x39a2fe=_0x4cc720['getUnitId'](),_0x4feed2=await this['_startSheetCollabCursor'](_0x39a2fe);this[_0x198e7f(0x390)]['next'](_0x4feed2),this[_0x198e7f(0x255)][_0x198e7f(0x156)](_0x39a2fe,_0x4feed2);}),this[_0x27e4d3(0xa4)][_0x27e4d3(0x322)](_0x3ba52b[_0x27e4d3(0x1a4)])[_0x27e4d3(0x19c)](_0x352c23(this[_0x27e4d3(0x99)]))['pipe'](_0x1402ad(_0x278dac=>!_0x278dac[_0x27e4d3(0x100)]()[_0x27e4d3(0x1ea)]('__')))[_0x27e4d3(0x2b5)](async _0x6ff4f2=>{const _0x21ea74=_0x27e4d3,_0x33e82d=_0x6ff4f2[_0x21ea74(0x100)](),_0x2f0ff2=await this[_0x21ea74(0x142)](_0x33e82d);this[_0x21ea74(0x390)][_0x21ea74(0x1c7)](_0x2f0ff2),this[_0x21ea74(0x255)]['set'](_0x33e82d,_0x2f0ff2);}),_0x1ddc59(this[_0x27e4d3(0xa4)]['getTypeOfUnitDisposed$'](_0x3ba52b[_0x27e4d3(0x1a4)]),this[_0x27e4d3(0xa4)][_0x27e4d3(0x236)](_0x3ba52b[_0x27e4d3(0x38c)]))[_0x27e4d3(0x19c)](_0x352c23(this[_0x27e4d3(0x99)]))[_0x27e4d3(0x2b5)](_0x21b184=>{const _0x5c7009=_0x27e4d3,_0x5d1692=_0x21b184['getUnitId'](),_0x123ea9=this[_0x5c7009(0x255)]['get'](_0x5d1692);_0x123ea9&&(_0x123ea9[_0x5c7009(0x328)](),this['_entities'][_0x5c7009(0xfc)](_0x5d1692));});}async[_0x3bdab3(0x10c)](_0x2c28f0){const _0x20d4a2=_0x3bdab3,_0x2fc84a=await this['_collabSessionService']['requireSession'](_0x2c28f0),_0x5b43b7=this['_injector'][_0x20d4a2(0x2c9)](gt,_0x2c28f0,_0x2fc84a);return _0x5b43b7[_0x20d4a2(0x220)](),_0x5b43b7;}async[_0x3bdab3(0x142)](_0x285eb3){const _0x55447c=_0x3bdab3,_0x2fb440=await this[_0x55447c(0x33a)][_0x55447c(0x276)](_0x285eb3),_0xaa257f=this[_0x55447c(0x191)][_0x55447c(0x2c9)](mt,_0x285eb3,_0x2fb440);return _0xaa257f[_0x55447c(0x220)](),_0xaa257f;}};ue=sr([_0x516125(_0x3c792f[_0x3bdab3(0x335)],ue),st(0x0,_0x173bd8),st(0x1,_0x279e5b(_0x5df577)),st(0x2,_0x279e5b(Re))],ue);const Oe=0x14,Zt=0xc8,it=0x4,ir=0x5;function nr(_0x4321b5,_0x18f17d){const _0x4b3fc7=_0x3bdab3;let {radius:_0x494b7b,width:_0x269b50,height:_0x1d1701}=_0x18f17d;_0x494b7b=_0x494b7b!=null?_0x494b7b:0x0,_0x269b50=_0x269b50!=null?_0x269b50:0x1e,_0x1d1701=_0x1d1701!=null?_0x1d1701:0x1e;let _0x55af7e=0x0,_0x148e94=0x0,_0x1222ea=0x0;_0x55af7e=_0x148e94=_0x1222ea=Math[_0x4b3fc7(0x2b7)](_0x494b7b,_0x269b50/0x2,_0x1d1701/0x2),_0x4321b5[_0x4b3fc7(0x9b)](),_0x4321b5[_0x4b3fc7(0x1b9)](_0x55af7e,0x0),_0x4321b5[_0x4b3fc7(0x34c)](_0x269b50-_0x148e94,0x0),_0x4321b5[_0x4b3fc7(0xcb)](_0x269b50-_0x148e94,_0x148e94,_0x148e94,Math['PI']*0x3/0x2,0x0,!0x1),_0x4321b5[_0x4b3fc7(0x34c)](_0x269b50,_0x1d1701-_0x1222ea),_0x4321b5[_0x4b3fc7(0xcb)](_0x269b50-_0x1222ea,_0x1d1701-_0x1222ea,_0x1222ea,0x0,Math['PI']/0x2,!0x1),_0x4321b5[_0x4b3fc7(0x34c)](0x0,_0x1d1701),_0x4321b5[_0x4b3fc7(0x34c)](0x0,_0x55af7e),_0x4321b5[_0x4b3fc7(0xcb)](_0x55af7e,_0x55af7e,_0x55af7e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4321b5['closePath'](),_0x18f17d[_0x4b3fc7(0x110)]&&(_0x4321b5[_0x4b3fc7(0x143)](),_0x4321b5[_0x4b3fc7(0x16c)]=_0x18f17d[_0x4b3fc7(0x110)],_0x18f17d['fillRule']===_0x4b3fc7(0x286)?_0x4321b5[_0x4b3fc7(0x110)](_0x4b3fc7(0x286)):_0x4321b5[_0x4b3fc7(0x110)](),_0x4321b5['restore']());}function _0x25d0(){const _0xd343da=['unitID','getScrollXYByRelativeCoords','ensureActiveSheet','values','doc.mutation.rich-text-editing','_refRangeService','rev','_handleLeaveEvent','getCollabEntity','memberID','_updateCollabCursors','_session','/block/','editingUnit','localeService','getTypeOfUnitDisposed$','_replayCachedMutations','[UniverCollaborationClientPlugin]','_waitCount','awaitingChangeset','debug','...','close$','INGEST','onlineStatusTitle','unshift','session.will-retry','_socketService','LEAVE','_drawAnchor','slice','getCurrentUser','restore','state$','VIEW_MAIN','csAckEvent','_tryEnsureSocket','getTime','univerjs-icon\x20univerjs-icon-','executeCommand','currentTheme$','_sendHeartbeatTimer','_clearHeartbeatTimer','[PendingState]:\x20received\x20acknowledgement.','urlChange$','textRanges','_entities','INTERNAL_ERROR','contains','getActiveRange','onSendChangeset','_name','/fetchmissing?from=','InsertRangeMoveDownCommandId','objectActions','_socketReady','translate(.97)','_id','_docSyncEditingCollabCursorService','ERROR_EXCEED_SIZE','AWAITING','enableLocalCache','enableOfflineEditing','APPLY_PERMISSION_DENIED','asObservable','random','listRoles','[CollaborationSession]','UUID','univer-online-status-title','_localeService','getInterceptPoints','_clearCollaborationTimeoutTimer','show','onlineStatusIcon','substring','session','loadSheet','univer-online-status-icon','requireSession','collabStatus.fetchMiss','252zshipC','displayName','currentColor','skeleton','has','image/jpeg','/new_changes','_sessionStatus$','submit\x20changeset\x20error!','_onCombEvent','unit-cache-','_transformSelections','JOINING','width','evenodd','_getSheetObject','synced','getFocusedUnit','1313228jbmVDJ','_getRedoStack','createSocket','_startCollaboration','_snapshotServerService','_saveTaskMap','303864AfaZQi','/role','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','1739436piNeMT','COLLAB_WEB_SOCKET_URL','mutations','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getRoom','getValue','getCollabCursors$','_remoteChangesetQueue','measureText','SYNCED','resend','offline','collabStatus.offline','collabCursorState$','[SyncedState]:\x20received\x20acknowledgement.','liveShareOperation','LIVESHARE_FETCH_OPERATIONS','LICENSE_MAX_UNITS_EXCEEDED','loadOfflineData','children','[CollaborationSessionService]:\x20socket\x20error','_awaitingChangeset','transformByState','_hideTimer','sheetID','InsertRangeMoveRightCommandId','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','_acknowledgedAwaitingChangeset','_scheduleReconnection','_memberService','collabStatus.synced','PERMISSION_DENIED','CHANGESET_ACK','_transformIMECache','subscribe','collaboratorID','min','\x20in\x20_schedule.','leaveEvent','members','colorChannel1','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_clearUndo','_handleHeartbeatEvent','onTransformRemoteChangesetByIMECache','_docStateChangeManagerService','isArray','updateCursorEvent','SNAPSHOT_INVALID_SNAPSHOT','makeDirty','OTHER_CLIENTS_EDITING','_eventUnsubscribe','_messageService','from','createInstance','_getSaveTimeout','registerOnClose','_hovered','transformMutationsWithChangeset','_docSkeleton','_disableEditing','_getCurrentRevision','image/gif','sheetId','CHANGESET_REVISION_CONFILICT','UNKNOWN_CMD','_initStatusListener','JOIN','_uiPartsService','_getScale','length','focused$','_updateState','\x0aAfter:\x20','_sheetSkeletonManagerService','m1Prime','fetching\x20missing\x20changesets\x20from\x20','/-/object/list','getImage','getSheetBySheetId','_executeRemoteChangeset','loadDoc','_collabCursorController','disableLocalCache','APPLY_REJECT','_shapes','_getAPIPrefixPath','toString','_createInitialState','type','drawWith','&to=','_transformService','unknown','use','ERROR_IMAGE','assignAColorForMemberID','fillText','message$','_renderManagerService','/resources','clear','fetch_missing','forEach','_unitOnClients','NEW_CHANGESETS','UNRECOGNIZED','FileId','_setupSubUnitSync','top','red300','title','actions','string','text','[FetchMissState]','c1Prime','getActiveSheet','connection\x20error','infoRsp','collaborationUniverTypes','LIVESHARE_NEW_HOST','roomMembers$','/universer-api/stream/file/upload','transformUndoRedo','gold400','_initModules','_state','reject','_online','addImageSourceCache','size','sessionStatus','image/png','OffLineSingle','onMissedChangesetFetched','getImageSourceCache','syncEditingCollabCursor','[DataLoaderController]','_draw','_HTTPService','_getDocObject','Univer','getTypeOfUnitAdded$','_docTransformIMECacheService','0\x200\x2016\x2016','HEARTBEAT','1359866QOoUcY','onRemoteChangeset','dispose','replace','Unknown\x20user','{fileID}','awaiting','_localStorageService','replaceTextRanges','m2Prime','0\x200\x2017\x2016','findNodePositionByCharIndex','parse','getParam','_localCacheService','Starting','UniverIcon','isPermissionRej','UNAUTHENTICATED','startRow','_collabSessionService','UNDEFINED','off-line-single_clip0_910_343','_range','href','[PendingState]:\x20received\x20rejection.','_getAnchorBounding','selection','snapshot','popstate','fetchThroughInterceptors','addEventListener','socketService','ACTIVE_UNIT_EVENT_CHANNEL','endColumn','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','close','subunit','lineTo','range','_sheetTransformSelectionsService','M0\x200H16V16H0z','MUTATION','currentSkeleton$','sheets','univer-pro.collaboration-client-socket-service','rgba(255,\x20255,\x20255,\x200.01)','_compressMutationService','Ready','/universer-api/snapshot','failed\x20to\x20apply\x20missed\x20changesets!','_change$','_singleActiveUnitService','_imageSourceCache','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','getViewport','#fff','LICENSE_EXPORT_SIZE_EXCEEDED','COMPLETION_FINISHED','_onUserLeave','_lockTransition','_loadDoc','APPLY_NON_SEQUENTIAL_REVISION','activeSheet$','_state$','_initStatusComponent','saveSnapshot','div','_selfUnitIDs','clipPath','idSuffix','state','_roomMembers$','DeleteRangeMoveUpCommandId','setShapeProps','createElement','UNIVER_SLIDE','url(#on-line-single_clip0_910_349)','_color','/universer-api/comb','?size=','collabStatus.syncing','_clearTimeoutTimer','registerHTTPInterceptor','OFFLINE','_getUploadFileURL','_type','push','_handler','transformStack\x20failed!','_handleEvent','_undoRedoService','_scheduleCollaborationTimeoutTimer','setCurrentUser','getConfig','patch','onCommandExecuted','_colorIndex','objects','_scheduleHeartbeat','_transformUndoredo','_retryCount','UNIVER_SHEET','11558622ccGiMi','UPDATE_CURSOR','[CollaborationEntity]','_entityInit$','/unit/','path','hovered','name','SUBMIT_CHANGESET','HEARTBEAT_INTERVAL','baseRev','_roomMembers','tag','unsubscribe','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','extend','registerBeforeClose','onPointerEnterObserver','black','find','getSelections','17180420fypTtt','_decreaseWaiting','c2Prime','PERMISSION_REJ','INVALID_ARGUMENT','create','socket\x20open.','_transformUndoRedoStack','_getUndoStack','1em','data','error$','hasOwnProperty','encode','routeKey','_disabled','APPLY_REVISION_CONFILICT','getCurrentRevForDocument','3qCmapA','MSG_FOR_ERROR','Steady','/object/','color','getUniverSheetInstance','/universer-api/file/{fileID}/sign-url','getOwnPropertySymbols','map','params','_socket','searchParams','getUndoRedoMutationParamsCache','_status$','triggerDblclick','\x20to\x20','changesets','univer-online-status','dispose$','UNIVER_UNKNOWN','beginPath','setParam','_permissionService','?url=','indexOf','_collaborationController','_syncEditingCollabCursor','/collaborator','_incrementRevisionNumber','_univerInstanceService','PSEUDO_FETCH_MISSING_RESULT','[OfflineState]:\x20received\x20changeset.','_anchorDot','_unitStatus','_transformStack','onSyncEditingCollabCursor','/rev/','_docTransformSelectionsService','endRow','_removeCollabCursors','SUCCUSS','_textBubble','_updateURLWithCurrentState','_redoStacks','updatePermissionPoint','[CollaborationSessionService]','addObject','json','pauseCollaboration','transformSelections','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_getSendChangesetTimeout','onPointerMoveObserver','conflict.title','_getLoginPath','_isPermissionRej','UNKNOWN_CODE','newCsEvent','setActiveRange','_scheduleSaving','NOT_FOUND','_unitId','USERS_ENTER','onRemoteAck','post','stringify','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','CHANGESET_REJ','arc','then','USERS_LEAVE','collaborators','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_toggleOffline','enableAuthServer','_toggleOnline','pending','eventID','transformRemoteChangeset','_substituteRedoStack','_onRecvEvent','FETCH_MISSING','LIVESHARE_OPERATION','_clearScheduledTask','_handleJoinEvent','session.room-full','RemoveRowCommandId','_transitionLocked','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','removeMember','_updateStatus','subUnitId','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationState]:\x20apply\x20error!','defs','_getAPIPrefix','[CollaborationUndoRedoService]','_transformRemoteChangesetByIMECache','_onJoinRoomEvent','conflict.content','_scheduleClearOtherTimer','_saveCache','_updateLocalCache','_onConnectionOpen','FromArray','body','_lastPointer','saveImage','key','_cursors','DeleteRangeMoveLeftCommandId','_notificationService','SEND_CHANGESET_TIMEOUT','unit','_colorAssignService','url','_waitForHeartbeatResponse','delete','row','getCurrent','_collaborationPaused','getUnitId','_onFetchMissResult','onload','HEADER_MENU','_http','collaMsg','_joinRoom','saveOfflineData','storage','8370362jjphzI','collab-text-anchor-','split','_startSheetCollabCursor','_init','_removeClearOtherTimer','_socketMessageSubscription','fill','fetchMissingChangesets','flatMap','_onConflict','_transformPreviousActiveRange','_queuedRemoteChangesets','assign','_unlockTransition','_revisionService','none','collabStatus.notCollab','toggleOffline','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','src','LIVESHARE_REQUEST_HOST','FETCH_MISS','originalMeta','ONLINE','entries','getOwnPropertyDescriptor','updateOfflineData','apply','event$','error','purple300','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','prototype','save\x20fail\x20reason\x20is\x20','icon','_cursorInfo$','_heartbeatTimer','LICENSE_IMPORT_SIZE_EXCEEDED','_onMessage','_clearRedo','get','MoveRangeCommandId','PENDING','/universer-api/snapshot/','_sendingTimer','_onCursorUpdate','url(#off-line-single_clip0_910_343)','_urlService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_userManagerService','getSheetId','Warning','joinEvent','unitId','_logService','catch','_startDocCollabCursor','save','RECV','column','transform','_setupBeforeClosingHandler','_onRefRangeChange','getCollabEntity$','sessionStatus$','_cursor','getMemberID','_pendingMutations','[OfflineState]:\x20received\x20rejection.','_scheduleTimestamp','_substituteUndoStack','session.connection-failed','onPointerLeaveObserver','SNAPSHOT_URL_KEY','off-line-single','_httpService','set','_onRemoteRejected','_getCtorByUniverType','_removeRoom','liveShareNewHost','onMouseMove','NOT_COLLAB','encodeURIComponent','_timeoutTimer','collabStatus.conflict','_assignedColors','incrementRevForDocument','defineProperty','_clearLocalCache','jiqing500','FAIL','getUnitOnRev','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_onConnectionFailed','getUnitStatus$','disposeUnit','_onUserJoin','fillStyle','getRangePointData','blue400','EXCHANGE_SIGN_URL_SERVER_URL_KEY','TOO_MANY_REQUESTS','workbook','setItem','_updateLocalCursor','with','getSheetBlock','_loadSheet','_sessions','_anchor','onRemoteRej','deleteCollaborator','LIVESHARE_TERMINATE','open$','cursorInfo$','onlineStatus','appendMutation','objectType','resolve','verdancy600','removeParam','xlink:href','#FFF','status','objectID','_send','toggleOnline','getCellPositionByOffset','allowed','_fetchMissChangesets','disposeWithMe','transformMutation','_collaborationTimeoutTimer','HELLO','_injector','_rescheduleHeartbeatEvent','pushState','_snapshotService','getMember','COMPRESS_MUTATION_APPLY','clearInterval','_members','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','csRejEvent','docStateChange$','pipe','history','CONFLICT','BASE64','revision','getCurrentUnitForType','AWAITING_WITH_PENDING','_exhaustRemoteChangesetQueue','UNIVER_DOC','location','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','collaboration-client.offline-data-not-saved','permission.content','\x20-\x20','newValue','concat','updateMember','deepClone','_replaceFileID','_checkMissing','_cachedData','setTimeout','cursorInfo','clearTimeout','propertyIsEnumerable','/universer-api/authz','round','roles','onTransformSelections','moveTo','_showConflictNotification','includes','reduce','_configService','getOffsetConfig','ws://127.0.0.1:8000/universer-api/comb/connect','transformChangesets','resourceIDs','_event$','hide','ALREADY_EXISTS','compose','_createInitialStateImpl','next','IDLE','addObjects','_socket$','Error','not_collab','putCollaborators','_docSkeletonManagerService','function','_createHandler','image/jpg','confirm','_render','svg','_themeService','_config','_getSnapshotAPIPrefix','_onRemoteChangeset','batchAllowed','_schedule','onTransformIME','permissionRejEvent','override','replaceState','_submitChangeset','_beforeCloseService','conflict','call','RemoveColCommandId','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','defIds','_createSocket','image/bmp','getRenderById','saveChangeset','startsWith','_labelPosition','_onLocalMutation','auth.needGotoLoginAlert','5ijbLJv','interceptor','_applyRemoteChangeset','onStarting','_scene','getMergeData','symbol','isActive','/-/object/-/batch_allowed','_onCursorDelete','listCollaborators','collaboration.single-unit.warning','transformIMECache','LOCAL_CACHE_INTERVAL','complete','_updateSubUnitFromURLParams','_drawRange','HEARTBEAT_TIMEOUT','_commandService','append','_unitID','getUnitType','send','bottom','generateRandomId','_retryConnectingTimer','SNAPSHOT_HAS_BEEN_REMOVED','attrs','updateCollaborator','YUUMI_UNABLE_LOAD_URL','result','add','SNAPSHOT_SERVER_URL_KEY','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_exhaustSavingTask','YUUMI_URL_COL_OUT_OF_RANGE','on-line-single_clip0_910_349','_syncEditingCollabCursorService','NO_OTHER_CLIENTS_EDITING','_collabCursorState$','height','univer-pro.collaboration-client.single-active-unit-service','selections','LICENSE_DISTRO_REJECTED','getAncestorScale','status$','_hover','_sendHeartbeat','_ws','/object','init','_ensureSubject','CONNECTOR_DATA_TOO_LARGE','userID','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','cmd','_clearOtherTimers'];_0x25d0=function(){return _0xd343da;};return _0x25d0();}class ze extends _0x1c658f{constructor(_0xfcf870,_0x53a6f4){const _0x251259=_0x3bdab3;super(_0xfcf870,_0x53a6f4),l(this,_0x251259(0x3b8)),l(this,_0x251259(0x305)),(this['color']=_0x53a6f4==null?void 0x0:_0x53a6f4['color'],this[_0x251259(0x305)]=_0x53a6f4==null?void 0x0:_0x53a6f4[_0x251259(0x305)]);}static[_0x3bdab3(0x2ed)](_0x446f7f,_0x13795f){const _0x1f533a=_0x3bdab3,{text:_0x4b9cdd,color:_0x51289c}=_0x13795f;_0x446f7f[_0x1f533a(0x143)](),_0x446f7f['font']=_0x1f533a(0x199);const _0x5d8e95=_0x446f7f[_0x1f533a(0x29b)](_0x4b9cdd)[_0x1f533a(0x285)],_0x554029=Math['min'](_0x5d8e95+0x2*it,Zt);nr(_0x446f7f,{'height':Oe,'radius':0x4,'width':_0x554029,'fill':_0x51289c,'evented':!0x1}),_0x446f7f[_0x1f533a(0x16c)]=_0x1f533a(0x185);const _0x1aa069=it,_0x2b9db6=Oe-ir,_0x33e152=Zt-0x2*it;if(_0x5d8e95>_0x33e152){let _0x31cfa4='',_0x44a954=0x0;for(const _0x29e764 of _0x4b9cdd){const _0x4a3941=_0x446f7f[_0x1f533a(0x29b)](_0x29e764)[_0x1f533a(0x285)];if(_0x44a954+_0x4a3941<=_0x33e152-_0x446f7f['measureText'](_0x1f533a(0x23c))[_0x1f533a(0x285)])_0x31cfa4+=_0x29e764,_0x44a954+=_0x4a3941;else{_0x31cfa4+=_0x1f533a(0x23c);break;}}_0x446f7f['fillText'](_0x31cfa4,_0x1aa069,_0x2b9db6);}else _0x446f7f[_0x1f533a(0x2f4)](_0x4b9cdd,_0x1aa069,_0x2b9db6);_0x446f7f[_0x1f533a(0x247)]();}[_0x3bdab3(0x31e)](_0x53b478){const _0x52cc3d=_0x3bdab3;ze[_0x52cc3d(0x2ed)](_0x53b478,this);}}const rr=0x1,or=1.5;class ar extends _0x1c658f{constructor(_0x5c172a,_0x4fa0d1){const _0x10be39=_0x3bdab3;super(_0x5c172a,_0x4fa0d1),l(this,_0x10be39(0x374)),l(this,_0x10be39(0x2cc),!0x1),l(this,_0x10be39(0x33d)),l(this,_0x10be39(0x25a),''),l(this,_0x10be39(0x1eb),_0x10be39(0x300)),(_0x4fa0d1&&this[_0x10be39(0x370)](_0x4fa0d1),this['onPointerEnterObserver'][_0x10be39(0x20d)](()=>this[_0x10be39(0x370)]({'hovered':!0x0})),this[_0x10be39(0x152)][_0x10be39(0x20d)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3bdab3(0x370)](_0x3aff1d){const _0x59c659=_0x3bdab3;var _0x2cd15f,_0xaa2993,_0x37d0e7,_0xa4a7f4,_0x195feb;this[_0x59c659(0x374)]=(_0x2cd15f=_0x3aff1d[_0x59c659(0x3b8)])!=null?_0x2cd15f:this['_color'],this[_0x59c659(0x2cc)]=(_0xaa2993=_0x3aff1d[_0x59c659(0x393)])!=null?_0xaa2993:this[_0x59c659(0x2cc)],this[_0x59c659(0x33d)]=(_0x37d0e7=_0x3aff1d[_0x59c659(0x34d)])!=null?_0x37d0e7:this[_0x59c659(0x33d)],this[_0x59c659(0x25a)]=(_0xa4a7f4=_0x3aff1d[_0x59c659(0x394)])!=null?_0xa4a7f4:this[_0x59c659(0x25a)],this[_0x59c659(0x1eb)]=(_0x195feb=_0x3aff1d['labelPosition'])!=null?_0x195feb:this['_labelPosition'],this[_0x59c659(0x2a9)]({'width':_0x3aff1d[_0x59c659(0x285)],'height':_0x3aff1d['height']});}['onMouseMove'](_0x399302){const _0x587e83=_0x3bdab3,{row:_0x2a32e7,column:_0x3bd8f0}=_0x399302;if(_0x2a32e7>=this[_0x587e83(0x33d)][_0x587e83(0x339)]&&_0x2a32e7<=this[_0x587e83(0x33d)][_0x587e83(0xad)]&&_0x3bd8f0>=this['_range']['startColumn']&&_0x3bd8f0<=this['_range'][_0x587e83(0x348)]){this[_0x587e83(0x370)]({'hovered':!0x0});return;}this[_0x587e83(0x370)]({'hovered':!0x1});}[_0x3bdab3(0x95)](_0x2eaf12){return!0x1;}[_0x3bdab3(0x31e)](_0x3cb1b1){const _0x1d597e=_0x3bdab3;_0x11ad62[_0x1d597e(0x2ed)](_0x3cb1b1,{'width':this['width'],'height':this[_0x1d597e(0x216)],'strokeWidth':or,'stroke':this[_0x1d597e(0x374)],'evented':!0x1}),this['_hovered']&&(_0x3cb1b1['save'](),_0x3cb1b1[_0x1d597e(0x146)](0x1,0x0,0x0,0x1,this[_0x1d597e(0x285)],this[_0x1d597e(0x1eb)]===_0x1d597e(0x205)?0x0:-Oe),ze[_0x1d597e(0x2ed)](_0x3cb1b1,{'text':this[_0x1d597e(0x25a)],'color':this[_0x1d597e(0x374)]}),_0x3cb1b1[_0x1d597e(0x247)]());}}var cr=Object[_0x3bdab3(0x162)],hr=Object[_0x3bdab3(0x123)],lr=(_0x30f689,_0x5acad6,_0x2e9fb1,_0x2decff)=>{const _0x52d229=_0x3bdab3;for(var _0x2a2948=_0x2decff>0x1?void 0x0:_0x2decff?hr(_0x5acad6,_0x2e9fb1):_0x5acad6,_0x561e97=_0x30f689[_0x52d229(0x2d9)]-0x1,_0x240971;_0x561e97>=0x0;_0x561e97--)(_0x240971=_0x30f689[_0x561e97])&&(_0x2a2948=(_0x2decff?_0x240971(_0x5acad6,_0x2e9fb1,_0x2a2948):_0x240971(_0x2a2948))||_0x2a2948);return _0x2decff&&_0x2a2948&&cr(_0x5acad6,_0x2e9fb1,_0x2a2948),_0x2a2948;},Me=(_0x38f2a6,_0x547f33)=>(_0x4ea7c8,_0x173592)=>_0x547f33(_0x4ea7c8,_0x173592,_0x38f2a6);const _r=0x1389;let $e=class extends _0x300f85{constructor(_0x37f79d,_0x48f62c,_0x4382fe,_0x8fb25e){const _0xac9491=_0x3bdab3;super(),l(this,_0xac9491(0xf4),new Set()),l(this,_0xac9491(0xf1),null),(this[_0xac9491(0x2e5)]=_0x37f79d,this[_0xac9491(0xa4)]=_0x48f62c,this[_0xac9491(0x2f6)]=_0x4382fe,this['_themeService']=_0x8fb25e,this[_0xac9491(0x10d)]());}get['_sheetSkeletonManagerService'](){const _0xd7c524=_0x3bdab3;return this['_renderManagerService']['getRenderById'](this['_univerInstanceService'][_0xd7c524(0x1a1)](_0x3ba52b[_0xd7c524(0x38c)])[_0xd7c524(0x100)]())[_0xd7c524(0x174)](_0x516270);}get[_0x3bdab3(0xc4)](){const _0x58a939=_0x3bdab3;return this['_univerInstanceService'][_0x58a939(0x1a1)](_0x3ba52b[_0x58a939(0x38c)])[_0x58a939(0x100)]();}[_0x3bdab3(0x10d)](){const _0x4b9b24=_0x3bdab3;this['_sheetSkeletonManagerService'][_0x4b9b24(0x351)][_0x4b9b24(0x19c)](_0xdf0e3e(this[_0x4b9b24(0x99)]),_0x40ba52(_0x1dfb23=>{const _0x21188c=_0x4b9b24;if(_0x1dfb23){const _0x42e729=_0x1dfb23[_0x21188c(0x2d2)];return _0x499f91(this['_collabCursorController']['getCollabCursors$'](this[_0x21188c(0xc4)]),this[_0x21188c(0x1d5)]['currentTheme$'])[_0x21188c(0x19c)](_0x5de95e(([_0x5b7724,_0x367050])=>{const _0x421016=_0x21188c,_0xa043ba=new Map();return _0x5b7724[_0x421016(0x2fa)]((_0x1c468d,_0x50db83)=>{const _0x35a83a=_0x421016;if(_0x1c468d[_0x35a83a(0x2ab)]===_0x42e729){const _0xa104fd={..._0x1c468d};_0xa104fd[_0x35a83a(0x3b8)]=_0x367050[_0x1c468d['color']],_0xa043ba['set'](_0x50db83,_0xa104fd);}}),{'skeleton':_0x1dfb23,'cursors':_0xa043ba};}));}return _0x442f94({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x528da5,cursors:_0x2c0cbf})=>{const _0x21ce2e=_0x4b9b24;this['_removeCollabCursors'](),_0x528da5&&this[_0x21ce2e(0x231)](_0x528da5,_0x2c0cbf);}),this[_0x4b9b24(0x2dd)][_0x4b9b24(0x351)][_0x4b9b24(0x2b5)](_0x52a191=>{const _0x3c7b27=_0x4b9b24;if(_0x52a191==null)return;const {skeleton:_0x176107}=_0x52a191,_0x2de9dc=this[_0x3c7b27(0x2f6)][_0x3c7b27(0x1e8)](this[_0x3c7b27(0xc4)]),{scene:_0x2978e2}=_0x2de9dc;_0x2978e2[_0x3c7b27(0xbb)][_0x3c7b27(0x20d)](_0x2ebe29(_0x47b41e=>{const _0x493e75=_0x3c7b27;var _0x5d2edb,_0x14455c;const {offsetX:_0x1b6a61,offsetY:_0x28d222}=_0x47b41e,{x:_0x4cc8ee,y:_0x5adfcd}=_0x2978e2['getRelativeCoord'](_0x4fff35[_0x493e75(0xef)]([_0x1b6a61,_0x28d222])),{scaleX:_0x175fd5,scaleY:_0x185dea}=_0x2978e2[_0x493e75(0x21a)](),_0x52cae1=_0x2978e2[_0x493e75(0x35d)](_0x6dbc23[_0x493e75(0x249)]),_0x4fd9a4=_0x2978e2[_0x493e75(0x228)](_0x4fff35['FromArray']([_0x4cc8ee,_0x5adfcd]),_0x52cae1),_0x4e0596=_0x176107[_0x493e75(0x18a)](_0x1b6a61,_0x28d222,_0x175fd5,_0x185dea,_0x4fd9a4);((_0x5d2edb=this[_0x493e75(0xf1)])==null?void 0x0:_0x5d2edb['column'])===_0x4e0596[_0x493e75(0x145)]&&((_0x14455c=this[_0x493e75(0xf1)])==null?void 0x0:_0x14455c[_0x493e75(0xfd)])===_0x4e0596[_0x493e75(0xfd)]||this[_0x493e75(0xf4)][_0x493e75(0x2fa)](_0x511ec1=>{const _0x149520=_0x493e75;_0x511ec1[_0x149520(0x15b)](_0x4e0596);});},0x64));});}[_0x3bdab3(0x231)](_0x2d1cbb,_0x269083){const _0x27f8a8=_0x3bdab3;var _0x1192e6;const _0x556d27=(_0x1192e6=this[_0x27f8a8(0x2dd)][_0x27f8a8(0xfe)]())==null?void 0x0:_0x1192e6[_0x27f8a8(0x27b)];if(!_0x556d27)return;const _0x24df20=this[_0x27f8a8(0x287)]();if(!_0x24df20)return;this[_0x27f8a8(0xf4)][_0x27f8a8(0x2fa)](_0x1d683f=>{const _0x5ea8d3=_0x27f8a8;_0x1d683f[_0x5ea8d3(0x2c4)]();});const {scene:_0x3f1b29}=_0x24df20,_0x168c95=ur(Array[_0x27f8a8(0x2c8)](_0x269083['values']()))[_0x27f8a8(0x3bc)](_0x5ce35d=>{const _0x36d5c3=_0x27f8a8,{color:_0x1306f1,range:_0x13c0ad,name:_0xa0fc4c,selection:_0x342b1e,sheetID:_0x50c50c}=_0x5ce35d,{startColumn:_0x4708d0,startRow:_0x158aca,endColumn:_0x5babeb,endRow:_0xbf424c}=_0x13c0ad,_0x337eeb=_0x334eac(_0x158aca,_0x4708d0,_0x3f1b29,_0x556d27),_0x212081=_0x334eac(_0xbf424c,_0x5babeb,_0x3f1b29,_0x556d27),{columnHeaderHeightAndMarginTop:_0x51d08a}=_0x556d27,{startX:_0x5641d6,startY:_0x4917ed}=_0x337eeb,{endX:_0x461d38,endY:_0xd6bf65}=_0x212081,_0x28c7b4=_0x461d38-_0x5641d6,_0xe0e736=_0xd6bf65-_0x4917ed,_0x45f6bd={'labelPosition':_0x4917ed-_0x51d08a>=Oe?_0x36d5c3(0x300):_0x36d5c3(0x205),'sheetID':_0x50c50c,'range':_0x13c0ad,'color':_0x1306f1,'name':_0xa0fc4c,'selection':_0x342b1e,'left':_0x5641d6,'top':_0x4917ed,'width':_0x28c7b4,'height':_0xe0e736,'evented':!0x1,'zIndex':_r};return new ar(_0xa0fc4c,_0x45f6bd);});_0x3f1b29[_0x27f8a8(0x1c9)](_0x168c95,rr),this[_0x27f8a8(0xf4)]=new Set(_0x168c95);}[_0x3bdab3(0xae)](){const _0x2dfa6d=_0x3bdab3;var _0x320c05;(_0x320c05=this[_0x2dfa6d(0xf4)])==null||_0x320c05[_0x2dfa6d(0x2fa)](_0x29367c=>_0x29367c[_0x2dfa6d(0x328)]());}[_0x3bdab3(0x287)](){const _0x3be113=_0x3bdab3;return _0x9bd77f(this[_0x3be113(0xa4)],this[_0x3be113(0x2f6)]);}};$e=lr([_0x516125(_0x3c792f[_0x3bdab3(0x3b6)],$e),Me(0x0,_0x279e5b(ue)),Me(0x1,_0x173bd8),Me(0x2,_0x4c72a4),Me(0x3,_0x279e5b(_0x588548))],$e);function ur(_0x3643e5){const _0x4efd26=_0x3bdab3,_0x339cfb=new Map();return _0x3643e5[_0x4efd26(0x2fa)](_0x351194=>{const _0x4e3007=_0x4efd26;if(_0x339cfb[_0x4e3007(0x27c)](_0x351194[_0x4e3007(0x341)])){const _0x56ac24=_0x339cfb['get'](_0x351194[_0x4e3007(0x341)]);_0x56ac24[_0x4e3007(0x394)]+=',\x20'+_0x351194[_0x4e3007(0x394)];}else _0x339cfb[_0x4e3007(0x156)](_0x351194[_0x4e3007(0x341)],_0x351194);}),Array[_0x4efd26(0x2c8)](_0x339cfb[_0x4efd26(0x22a)]());}var A=function(){const _0x868400=_0x3bdab3;return A=Object[_0x868400(0x116)]||function(_0x378f48){const _0x50f591=_0x868400;for(var _0x9a5e5b,_0x26ba2c=0x1,_0x41650f=arguments[_0x50f591(0x2d9)];_0x26ba2c<_0x41650f;_0x26ba2c++){_0x9a5e5b=arguments[_0x26ba2c];for(var _0x522a34 in _0x9a5e5b)Object[_0x50f591(0x12a)]['hasOwnProperty']['call'](_0x9a5e5b,_0x522a34)&&(_0x378f48[_0x522a34]=_0x9a5e5b[_0x522a34]);}return _0x378f48;},A[_0x868400(0x125)](this,arguments);},dr=function(_0x5e70ac,_0x48f8a9){const _0x11ac06=_0x3bdab3;var _0x37dd9b={};for(var _0x18993b in _0x5e70ac)Object['prototype'][_0x11ac06(0x3ae)][_0x11ac06(0x1e2)](_0x5e70ac,_0x18993b)&&_0x48f8a9[_0x11ac06(0x9f)](_0x18993b)<0x0&&(_0x37dd9b[_0x18993b]=_0x5e70ac[_0x18993b]);if(_0x5e70ac!=null&&typeof Object['getOwnPropertySymbols']==_0x11ac06(0x1cf)){for(var _0x4c5529=0x0,_0x18993b=Object[_0x11ac06(0x3bb)](_0x5e70ac);_0x4c5529<_0x18993b[_0x11ac06(0x2d9)];_0x4c5529++)_0x48f8a9[_0x11ac06(0x9f)](_0x18993b[_0x4c5529])<0x0&&Object['prototype'][_0x11ac06(0x1b4)][_0x11ac06(0x1e2)](_0x5e70ac,_0x18993b[_0x4c5529])&&(_0x37dd9b[_0x18993b[_0x4c5529]]=_0x5e70ac[_0x18993b[_0x4c5529]]);}return _0x37dd9b;},yt=_0x1c2ff9(function(_0x5ce6d9,_0x426ea1){const _0x58b786=_0x3bdab3;var _0x7cdde2=_0x5ce6d9[_0x58b786(0x12c)],_0x206225=_0x5ce6d9['id'],_0x1f5b79=_0x5ce6d9['className'],_0x294ab0=_0x5ce6d9[_0x58b786(0x39c)],_0x3b8964=dr(_0x5ce6d9,[_0x58b786(0x12c),'id','className','extend']),_0x4af0b2=_0x58b786(0x24d)[_0x58b786(0x1ab)](_0x206225,'\x20')[_0x58b786(0x1ab)](_0x1f5b79||'')['trim'](),_0x40b8a7=_0xbd3c86('_'[_0x58b786(0x1ab)](mr()));return Ds(_0x7cdde2,''[_0x58b786(0x1ab)](_0x206225),{'defIds':_0x7cdde2[_0x58b786(0x1e5)],'idSuffix':_0x40b8a7['current']},A({'ref':_0x426ea1,'className':_0x4af0b2},_0x3b8964),_0x294ab0);});function Ds(_0x5ac99f,_0x170dc4,_0x509860,_0x27fc57,_0x11fe0b){const _0x13cc37=_0x3bdab3;return _0x58bacf(_0x5ac99f[_0x13cc37(0x399)],A(A({'key':_0x170dc4},fr(_0x5ac99f,_0x509860,_0x11fe0b)),_0x27fc57),(gr(_0x5ac99f,_0x509860)[_0x13cc37(0x2a6)]||[])[_0x13cc37(0x3bc)](function(_0x2f8c4f,_0xf7646a){const _0xe42183=_0x13cc37;return Ds(_0x2f8c4f,''[_0xe42183(0x1ab)](_0x170dc4,'-')['concat'](_0x5ac99f['tag'],'-')[_0xe42183(0x1ab)](_0xf7646a),_0x509860,void 0x0,_0x11fe0b);}));}function fr(_0x481cdc,_0x1c7559,_0x497d03){const _0x242b82=_0x3bdab3;var _0x15d581=A({},_0x481cdc[_0x242b82(0x209)]);_0x497d03!=null&&_0x497d03['colorChannel1']&&_0x15d581[_0x242b82(0x110)]==='colorChannel1'&&(_0x15d581[_0x242b82(0x110)]=_0x497d03[_0x242b82(0x2bb)]);var _0x3330c8=_0x1c7559[_0x242b82(0x1e5)];return!_0x3330c8||_0x3330c8['length']===0x0||(_0x481cdc[_0x242b82(0x399)]===_0x242b82(0x2f1)&&_0x15d581[_0x242b82(0x184)]&&(_0x15d581['xlink:href']=_0x15d581[_0x242b82(0x184)]+_0x1c7559['idSuffix']),Object[_0x242b82(0x122)](_0x15d581)[_0x242b82(0x2fa)](function(_0xf0efef){const _0x36a48e=_0x242b82;var _0x7837cc=_0xf0efef[0x0],_0x4966b8=_0xf0efef[0x1];typeof _0x4966b8==_0x36a48e(0x304)&&(_0x15d581[_0x7837cc]=_0x4966b8[_0x36a48e(0x329)](/url\(#(.*)\)/,'url(#$1'[_0x36a48e(0x1ab)](_0x1c7559[_0x36a48e(0x36c)],')')));})),_0x15d581;}function gr(_0x16856f,_0xdf78ab){const _0x30ae91=_0x3bdab3;var _0x59a4db,_0x122a9f=_0xdf78ab['defIds'];return!_0x122a9f||_0x122a9f['length']===0x0?_0x16856f:_0x16856f[_0x30ae91(0x399)]==='defs'&&(!((_0x59a4db=_0x16856f[_0x30ae91(0x2a6)])===null||_0x59a4db===void 0x0)&&_0x59a4db[_0x30ae91(0x2d9)])?A(A({},_0x16856f),{'children':_0x16856f[_0x30ae91(0x2a6)][_0x30ae91(0x3bc)](function(_0x4dfa5f){const _0x3bd713=_0x30ae91;return typeof _0x4dfa5f['attrs']['id']=='string'&&_0x122a9f&&_0x122a9f[_0x3bd713(0x9f)](_0x4dfa5f[_0x3bd713(0x209)]['id'])>-0x1?A(A({},_0x4dfa5f),{'attrs':A(A({},_0x4dfa5f[_0x3bd713(0x209)]),{'id':_0x4dfa5f[_0x3bd713(0x209)]['id']+_0xdf78ab[_0x3bd713(0x36c)]})}):_0x4dfa5f;})}):_0x16856f;}function mr(){const _0x5420cb=_0x3bdab3;return Math[_0x5420cb(0x268)]()[_0x5420cb(0x2ea)](0x24)[_0x5420cb(0x272)](0x2,0x8);}yt[_0x3bdab3(0x279)]=_0x3bdab3(0x336);var Sr={'tag':'svg','attrs':{'fill':_0x3bdab3(0x119),'viewBox':_0x3bdab3(0x324),'width':_0x3bdab3(0x3ab),'height':_0x3bdab3(0x3ab)},'children':[{'tag':'g','attrs':{'clipPath':_0x3bdab3(0x138)},'children':[{'tag':'path','attrs':{'stroke':_0x3bdab3(0x27a),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3bdab3(0x1b6),'strokeLinejoin':_0x3bdab3(0x1b6),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3bdab3(0x36b),'attrs':{'id':_0x3bdab3(0x33c)},'children':[{'tag':_0x3bdab3(0x392),'attrs':{'fill':_0x3bdab3(0x35e),'d':_0x3bdab3(0x34f)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ws=_0x1c2ff9(function(_0x2deeb0,_0x39c815){const _0x34125e=_0x3bdab3;return _0x58bacf(yt,Object['assign']({},_0x2deeb0,{'id':_0x34125e(0x154),'ref':_0x39c815,'icon':Sr}));});ws['displayName']=_0x3bdab3(0x319);var vr={'tag':_0x3bdab3(0x1d4),'attrs':{'fill':_0x3bdab3(0x119),'viewBox':_0x3bdab3(0x330),'width':_0x3bdab3(0x3ab),'height':_0x3bdab3(0x3ab)},'children':[{'tag':'g','attrs':{'clipPath':_0x3bdab3(0x373)},'children':[{'tag':_0x3bdab3(0x392),'attrs':{'stroke':_0x3bdab3(0x27a),'d':_0x3bdab3(0x2ad),'strokeLinecap':_0x3bdab3(0x1b6),'strokeLinejoin':_0x3bdab3(0x1b6),'strokeWidth':1.2}}]},{'tag':_0x3bdab3(0xe5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3bdab3(0x212)},'children':[{'tag':_0x3bdab3(0x392),'attrs':{'fill':_0x3bdab3(0x35e),'d':_0x3bdab3(0x34f),'transform':_0x3bdab3(0x25f)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ps=_0x1c2ff9(function(_0x2ad6e4,_0x2fbf51){const _0x33e3b5=_0x3bdab3;return _0x58bacf(yt,Object[_0x33e3b5(0x116)]({},_0x2ad6e4,{'id':'on-line-single','ref':_0x2fbf51,'icon':vr}));});Ps[_0x3bdab3(0x279)]='OnLineSingle';const pr=_0x3bdab3(0x275),Ir=_0x3bdab3(0x26c),Er=_0x3bdab3(0x98),Cr='univer-online',br='univer-offline',ve={'onlineStatusIcon':pr,'onlineStatusTitle':Ir,'onlineStatus':Er,'online':Cr,'offline':br};function Rr(_0x23b8cc){const _0x394e76=_0x3bdab3;switch(_0x23b8cc){case P[_0x394e76(0x37a)]:return _0x394e76(0x29f);case P[_0x394e76(0x19e)]:return _0x394e76(0x15f);case P['FETCH_MISS']:return _0x394e76(0x277);case P[_0x394e76(0x15c)]:return _0x394e76(0x11a);case P[_0x394e76(0x134)]:case P[_0x394e76(0x263)]:case P[_0x394e76(0x1a2)]:return _0x394e76(0x377);case P[_0x394e76(0x29c)]:return _0x394e76(0x2b1);}}function Tr(_0x3ce188){const _0x308f45=_0x3bdab3,{status$:_0x46440d}=_0x3ce188,_0x4c6059=_0x52c0a4(_0x46440d,P[_0x308f45(0x15c)]),_0x134474=_0x35026c(_0x25e6c6),_0x1d2142=_0x4c6059!==P[_0x308f45(0x37a)],_0x175367=_0x134474['t'](Rr(_0x4c6059)),_0x473f2d=_0x52a9a7(ve[_0x308f45(0x17e)],{[ve['online']]:_0x1d2142,[ve[_0x308f45(0x29e)]]:!_0x1d2142}),_0x4eebdd=_0x1d2142?_0x3f5d4a[_0x308f45(0x371)](Ps,null):_0x3f5d4a['createElement'](ws,null);return _0x3f5d4a[_0x308f45(0x371)](_0x308f45(0x369),{'className':_0x473f2d},_0x3f5d4a[_0x308f45(0x371)](_0x308f45(0x369),{'className':ve[_0x308f45(0x271)]},_0x4eebdd),_0x3f5d4a[_0x308f45(0x371)]('div',{'className':ve[_0x308f45(0x23f)]},_0x175367));}var Or=Object[_0x3bdab3(0x162)],Dr=Object[_0x3bdab3(0x123)],wr=(_0x2b3e77,_0x2c23f2,_0xa3eedb,_0x1c976b)=>{for(var _0x19ce3d=_0x1c976b>0x1?void 0x0:_0x1c976b?Dr(_0x2c23f2,_0xa3eedb):_0x2c23f2,_0x5cf8e6=_0x2b3e77['length']-0x1,_0x566a7d;_0x5cf8e6>=0x0;_0x5cf8e6--)(_0x566a7d=_0x2b3e77[_0x5cf8e6])&&(_0x19ce3d=(_0x1c976b?_0x566a7d(_0x2c23f2,_0xa3eedb,_0x19ce3d):_0x566a7d(_0x19ce3d))||_0x19ce3d);return _0x1c976b&&_0x19ce3d&&Or(_0x2c23f2,_0xa3eedb,_0x19ce3d),_0x19ce3d;},Ae=(_0x7a6746,_0x3b29dc)=>(_0x28ec69,_0x11b5f5)=>_0x3b29dc(_0x28ec69,_0x11b5f5,_0x7a6746);let je=class extends _0x292c4b{constructor(_0x306d62,_0x2c1b5c,_0x58e517,_0x5dd7a0){const _0x3f8cd6=_0x3bdab3;super(),l(this,_0x3f8cd6(0x3c1),new _0x2fb415(P['NOT_COLLAB'])),(this[_0x3f8cd6(0xa4)]=_0x306d62,this['_uiPartsService']=_0x2c1b5c,this[_0x3f8cd6(0x191)]=_0x58e517,this[_0x3f8cd6(0xa0)]=_0x5dd7a0,this[_0x3f8cd6(0x367)](),this[_0x3f8cd6(0x2d5)]());}[_0x3bdab3(0x367)](){const _0x4fefd3=_0x3bdab3;this[_0x4fefd3(0x18d)](this[_0x4fefd3(0x2d7)]['registerComponent'](_0x403b57[_0x4fefd3(0x103)],()=>_0x266534(Pr({'status$':this[_0x4fefd3(0x3c1)][_0x4fefd3(0x267)]()}),this[_0x4fefd3(0x191)])));}[_0x3bdab3(0x2d5)](){const _0x171580=_0x3bdab3;this['disposeWithMe'](_0x439c9a(this['_univerInstanceService']['focused$'][_0x171580(0x19c)](_0x659f37(()=>{const _0x470687=_0x171580,_0x304a7f=this[_0x470687(0xa4)][_0x470687(0x289)]();return _0x304a7f?this[_0x470687(0xa0)][_0x470687(0x149)](_0x304a7f[_0x470687(0x100)]()):_0x442f94(null);}),_0x659f37(_0x33c674=>_0x33c674?_0x33c674[_0x171580(0x21b)]:_0x442f94(P[_0x171580(0x15c)])))[_0x171580(0x2b5)](_0x5b6e56=>{const _0x577842=_0x171580;this[_0x577842(0x3c1)][_0x577842(0x1c7)](_0x5b6e56);})));}};je=wr([_0x516125(_0x3c792f[_0x3bdab3(0x335)],je),Ae(0x0,_0x173bd8),Ae(0x1,_0x8b992a),Ae(0x2,_0x279e5b(_0x5df577)),Ae(0x3,_0x279e5b(Ee))],je);function Pr(_0x280925){const {status$:_0x176643}=_0x280925;return function(){const _0x4ec816=_0x92e7;return _0x3f5d4a[_0x4ec816(0x371)](Tr,{'status$':_0x176643});};}const Ns=_0x3ce7c5('uni.network.url-service');var Nr=Object[_0x3bdab3(0x162)],Mr=Object[_0x3bdab3(0x123)],Ar=(_0xdc6cd6,_0x1201c6,_0x25d8a9,_0x596528)=>{const _0x1ee190=_0x3bdab3;for(var _0x251a06=_0x596528>0x1?void 0x0:_0x596528?Mr(_0x1201c6,_0x25d8a9):_0x1201c6,_0x1ddfd3=_0xdc6cd6[_0x1ee190(0x2d9)]-0x1,_0xe4914b;_0x1ddfd3>=0x0;_0x1ddfd3--)(_0xe4914b=_0xdc6cd6[_0x1ddfd3])&&(_0x251a06=(_0x596528?_0xe4914b(_0x1201c6,_0x25d8a9,_0x251a06):_0xe4914b(_0x251a06))||_0x251a06);return _0x596528&&_0x251a06&&Nr(_0x1201c6,_0x25d8a9,_0x251a06),_0x251a06;},ce=(_0x24bdcb,_0xf7621d)=>(_0x5b30fd,_0x5fca10)=>_0xf7621d(_0x5b30fd,_0x5fca10,_0x24bdcb);let He=class extends _0x300f85{constructor(_0x30b866,_0x4f1547,_0x5a2613,_0x5aaa3d,_0x448cb2,_0x12b2d6){const _0x125b24=_0x3bdab3;super(),this[_0x125b24(0x139)]=_0x30b866,this[_0x125b24(0x140)]=_0x4f1547,this[_0x125b24(0x200)]=_0x5a2613,this[_0x125b24(0x334)]=_0x5aaa3d,this['_snapshotService']=_0x448cb2,_0x12b2d6?_0x12b2d6==null||_0x12b2d6['whenReady']()[_0x125b24(0xcc)](()=>this[_0x125b24(0x10d)]()):(this[_0x125b24(0x140)][_0x125b24(0x23b)](_0x125b24(0x31d),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x125b24(0x10d)]());}async['_init'](){const _0x38d4d6=_0x3bdab3,_0x26516d=this['_urlService'][_0x38d4d6(0x333)](_0x38d4d6(0xf8)),_0xa20818=this[_0x38d4d6(0x139)][_0x38d4d6(0x333)](_0x38d4d6(0x2ec));if(!_0x26516d||!_0xa20818){this[_0x38d4d6(0x140)][_0x38d4d6(0x23b)](_0x38d4d6(0x31d),_0x38d4d6(0xdf));return;}switch(Number(_0xa20818)){case H['UNIVER_SHEET']:{const _0x1389f7=await this[_0x38d4d6(0x176)](_0x26516d);this[_0x38d4d6(0x2ff)](_0x1389f7);break;}case H[_0x38d4d6(0x1a4)]:{await this[_0x38d4d6(0x363)](_0x26516d);break;}default:{this['_logService']['error'](_0x38d4d6(0x31d),_0x38d4d6(0x2bc));break;}}}async[_0x3bdab3(0x2ff)](_0x5780be){const _0x28a99a=_0x3bdab3;await this[_0x28a99a(0x1fd)](_0x5780be),_0x5780be[_0x28a99a(0x365)]['pipe'](_0x352c23(this[_0x28a99a(0x99)]))[_0x28a99a(0x2b5)](_0x1217c1=>{_0x1217c1&&this['_updateURLWithCurrentState'](_0x1217c1);}),this[_0x28a99a(0x139)][_0x28a99a(0x253)][_0x28a99a(0x19c)](_0x352c23(this[_0x28a99a(0x99)]))[_0x28a99a(0x2b5)](()=>this['_updateSubUnitFromURLParams'](_0x5780be));}[_0x3bdab3(0xb1)](_0x357468,_0x498930=!0x1){const _0x3ed005=_0x3bdab3,_0x19825a=this[_0x3ed005(0x139)][_0x3ed005(0x333)]('subunit');_0x357468[_0x3ed005(0x13c)]()!==_0x19825a&&this[_0x3ed005(0x139)][_0x3ed005(0x9c)](_0x3ed005(0x34b),_0x357468['getSheetId'](),_0x498930);}async[_0x3bdab3(0x1fd)](_0x3b3cad){const _0x259ae1=_0x3bdab3;var _0x4fcbcd;const _0x9ca1a2=this[_0x259ae1(0x139)]['getParam'](_0x259ae1(0x34b));if(!_0x9ca1a2||!_0x3b3cad['getSheetBySheetId'](_0x9ca1a2)){this['_updateURLWithCurrentState'](_0x3b3cad[_0x259ae1(0x229)](),!0x0);return;}((_0x4fcbcd=_0x3b3cad[_0x259ae1(0x308)]())==null?void 0x0:_0x4fcbcd[_0x259ae1(0x13c)]())!==_0x9ca1a2&&await this[_0x259ae1(0x200)]['executeCommand'](_0x40335c['id'],{'unitId':_0x3b3cad[_0x259ae1(0x100)](),'subUnitId':_0x9ca1a2});}async['_loadSheet'](_0x1c3e1d){const _0x453ef3=_0x3bdab3;let _0x32dd52=0x0;const _0x4ca4b7=await this['_localCacheService']['loadOfflineData'](_0x1c3e1d);return _0x4ca4b7&&(_0x4ca4b7[_0x453ef3(0x23a)]||_0x4ca4b7[_0x453ef3(0x295)][_0x453ef3(0x2d9)]!==0x0)&&(_0x32dd52=_0x4ca4b7['rev']),_0x32dd52===0x0&&this[_0x453ef3(0x140)][_0x453ef3(0x23b)]('[DataLoaderController]',_0x453ef3(0x20f)),this[_0x453ef3(0x194)][_0x453ef3(0x274)](_0x1c3e1d,_0x32dd52);}async[_0x3bdab3(0x363)](_0x211d92){const _0x345dc3=_0x3bdab3;let _0x55e5b1=0x0;const _0x2507fe=await this[_0x345dc3(0x334)]['loadOfflineData'](_0x211d92);return _0x2507fe&&(_0x2507fe[_0x345dc3(0x23a)]||_0x2507fe['mutations'][_0x345dc3(0x2d9)]!==0x0)&&(_0x55e5b1=_0x2507fe[_0x345dc3(0x22d)]),_0x55e5b1===0x0&&this[_0x345dc3(0x140)][_0x345dc3(0x23b)](_0x345dc3(0x31d),_0x345dc3(0x20f)),this[_0x345dc3(0x194)][_0x345dc3(0x2e4)](_0x211d92,_0x55e5b1);}};He=Ar([_0x516125(_0x3c792f['Starting'],He),ce(0x0,Ns),ce(0x1,_0x2cecb4),ce(0x2,_0x5ba974),ce(0x3,_0x279e5b(D)),ce(0x4,_0x279e5b(_0x4471bc)),ce(0x5,_0x4100a2(_0x126341))],He);var yr=Object['defineProperty'],Ur=Object['getOwnPropertyDescriptor'],Lr=(_0x19d8e2,_0x3039e4,_0x5937af,_0x50c650)=>{for(var _0x16b8f2=_0x50c650>0x1?void 0x0:_0x50c650?Ur(_0x3039e4,_0x5937af):_0x3039e4,_0xdfba47=_0x19d8e2['length']-0x1,_0x3dc225;_0xdfba47>=0x0;_0xdfba47--)(_0x3dc225=_0x19d8e2[_0xdfba47])&&(_0x16b8f2=(_0x50c650?_0x3dc225(_0x3039e4,_0x5937af,_0x16b8f2):_0x3dc225(_0x16b8f2))||_0x16b8f2);return _0x50c650&&_0x16b8f2&&yr(_0x3039e4,_0x5937af,_0x16b8f2),_0x16b8f2;},qt=(_0xabe853,_0x319ec0)=>(_0x3fcdcc,_0x367d13)=>_0x319ec0(_0x3fcdcc,_0x367d13,_0xabe853);const $r='DEFAULT_FILE_NAME',jr=_0x3bdab3(0x321);let xe=class extends _0x292c4b{constructor(_0x2f2aa8,_0x26600d){const _0x42c8f3=_0x3bdab3;super(),this['_univerInstanceService']=_0x2f2aa8,this['_configService']=_0x26600d,this[_0x42c8f3(0x10d)]();}[_0x3bdab3(0x10d)](){const _0x5e9273=_0x3bdab3;this['disposeWithMe'](_0x439c9a(this[_0x5e9273(0xa4)][_0x5e9273(0x2da)][_0x5e9273(0x2b5)](()=>{const _0x216862=_0x5e9273;var _0xfd44a9;const _0x8a7ab9=this[_0x216862(0xa4)]['getFocusedUnit']();let _0x2cfed6=(_0xfd44a9=this[_0x216862(0x1bd)][_0x216862(0x384)]($r))!=null?_0xfd44a9:jr;_0x8a7ab9 instanceof _0x40c937&&(_0x2cfed6=_0x8a7ab9[_0x216862(0x394)]),document[_0x216862(0x302)]=_0x2cfed6;})));}};xe=Lr([_0x516125(_0x3c792f[_0x3bdab3(0x356)],xe),qt(0x0,_0x173bd8),qt(0x1,_0x37d874)],xe);var Hr=Object[_0x3bdab3(0x162)],xr=Object[_0x3bdab3(0x123)],Fr=(_0x2dfc88,_0x493c96,_0x4b7a8a,_0x1e3c53)=>{const _0x2f8a91=_0x3bdab3;for(var _0x4577a3=_0x1e3c53>0x1?void 0x0:_0x1e3c53?xr(_0x493c96,_0x4b7a8a):_0x493c96,_0x4ff376=_0x2dfc88[_0x2f8a91(0x2d9)]-0x1,_0x49c26e;_0x4ff376>=0x0;_0x4ff376--)(_0x49c26e=_0x2dfc88[_0x4ff376])&&(_0x4577a3=(_0x1e3c53?_0x49c26e(_0x493c96,_0x4b7a8a,_0x4577a3):_0x49c26e(_0x4577a3))||_0x4577a3);return _0x1e3c53&&_0x4577a3&&Hr(_0x493c96,_0x4b7a8a,_0x4577a3),_0x4577a3;},Qt=(_0x302def,_0x2f50ef)=>(_0x5c3ce8,_0x305e67)=>_0x2f50ef(_0x5c3ce8,_0x305e67,_0x302def);let St=class{constructor(_0x45b33b,_0x3ba7da){const _0x204e31=_0x3bdab3;this[_0x204e31(0x1bd)]=_0x45b33b,this['_httpService']=_0x3ba7da;}async[_0x3bdab3(0x166)](_0x51c871,_0xbac08f){const _0x2dfcfd=_0x3bdab3;var _0xcd34ac;const {unitID:_0x15f8ba,type:_0x2aa52f,revision:_0x285547=0x0}=_0xbac08f,_0x2154bc=this[_0x2dfcfd(0x1d7)]()+'/'+_0x2aa52f+_0x2dfcfd(0x391)+_0x15f8ba+_0x2dfcfd(0xab)+(_0x285547===0x1?0x0:_0x285547),_0x7eb9c1=(await this[_0x2dfcfd(0x155)]['get'](_0x2154bc))[_0x2dfcfd(0xf0)],_0x2c23d7=(_0xcd34ac=_0x7eb9c1[_0x2dfcfd(0x342)])==null?void 0x0:_0xcd34ac[_0x2dfcfd(0x171)];if(_0x2c23d7){const _0x5cf326=_0x2c23d7==null?void 0x0:_0x2c23d7[_0x2dfcfd(0x120)],_0x45bf99=_0x218b7d[_0x2dfcfd(0x3af)](_0x14b7ab(_0x5cf326));_0x2c23d7['originalMeta']=_0x45bf99,Object[_0x2dfcfd(0x122)](_0x2c23d7[_0x2dfcfd(0x352)])[_0x2dfcfd(0x2fa)](([,_0x31baa0])=>{const _0x1ad73e=_0x2dfcfd,_0x59e3bc=_0x31baa0[_0x1ad73e(0x120)],_0xc967b9=_0x218b7d[_0x1ad73e(0x3af)](_0x14b7ab(_0x59e3bc));_0x31baa0[_0x1ad73e(0x120)]=_0xc967b9;});}return _0x7eb9c1;}async[_0x3bdab3(0x175)](_0x37027c,_0x3d8446){const _0x241d9f=_0x3bdab3,{unitID:_0x3e92ba,type:_0x309637,blockID:_0x7bfc39}=_0x3d8446,_0xbfcbf4=this[_0x241d9f(0xe6)]()+'/'+_0x309637+_0x241d9f(0x391)+_0x3e92ba+_0x241d9f(0x233)+_0x7bfc39;return(await this[_0x241d9f(0x155)][_0x241d9f(0x132)](_0xbfcbf4))['body'];}async[_0x3bdab3(0x111)](_0x5cef9d,_0x18b9d6){const _0x33ea73=_0x3bdab3,{unitID:_0x30fcbe,type:_0x545ab5,from:_0x5c2a6d,to:_0x374c65}=_0x18b9d6,_0x5bd3ed=this['_getAPIPrefix']()+'/'+_0x545ab5+_0x33ea73(0x391)+_0x30fcbe+_0x33ea73(0x25b)+_0x5c2a6d+_0x33ea73(0x2ee)+_0x374c65;return(await this[_0x33ea73(0x155)][_0x33ea73(0x132)](_0x5bd3ed))[_0x33ea73(0xf0)];}['_getSnapshotAPIPrefix'](){const _0x30662a=_0x3bdab3;var _0x353d53;return(_0x353d53=this[_0x30662a(0x1bd)][_0x30662a(0x384)](Yi))!=null?_0x353d53:this['_getAPIPrefix']();}[_0x3bdab3(0xe6)](){const _0x149f03=_0x3bdab3;var _0x298c0d;return(_0x298c0d=this[_0x149f03(0x1bd)][_0x149f03(0x384)](Wi))!=null?_0x298c0d:Gi;}async['getResourcesRequest'](_0x122411,_0x192bb7){const _0x5ec987=_0x3bdab3,_0xfe92d5=_0x5ec987(0x135)+_0x192bb7['type']+_0x5ec987(0x391)+_0x192bb7['unitID']+_0x5ec987(0x2f7);return(await this[_0x5ec987(0x155)][_0x5ec987(0x132)](_0xfe92d5,{'params':{'resourceId':JSON['stringify'](_0x192bb7[_0x5ec987(0x1c1)])}}))[_0x5ec987(0xf0)];}[_0x3bdab3(0x368)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x4471d3=_0x3bdab3;throw new Error(_0x4471d3(0x292));}[_0x3bdab3(0x1e9)](){const _0x8d6e8d=_0x3bdab3;throw new Error(_0x8d6e8d(0x292));}};St=Fr([Qt(0x0,_0x37d874),Qt(0x1,_0x279e5b(_0x24b00a))],St);var kr=Object[_0x3bdab3(0x162)],Br=Object[_0x3bdab3(0x123)],Vr=(_0x542840,_0x1173c3,_0x2913f9,_0x2c1f9c)=>{const _0xd834c7=_0x3bdab3;for(var _0x3aa000=_0x2c1f9c>0x1?void 0x0:_0x2c1f9c?Br(_0x1173c3,_0x2913f9):_0x1173c3,_0x127441=_0x542840[_0xd834c7(0x2d9)]-0x1,_0x47d424;_0x127441>=0x0;_0x127441--)(_0x47d424=_0x542840[_0x127441])&&(_0x3aa000=(_0x2c1f9c?_0x47d424(_0x1173c3,_0x2913f9,_0x3aa000):_0x47d424(_0x3aa000))||_0x3aa000);return _0x2c1f9c&&_0x3aa000&&kr(_0x1173c3,_0x2913f9,_0x3aa000),_0x3aa000;},pe=(_0x1c0fbf,_0x90976c)=>(_0x4d00ce,_0x4e0b87)=>_0x90976c(_0x4d00ce,_0x4e0b87,_0x1c0fbf);let vt=class extends _0x3147c1{constructor(_0x2a3cef,_0x52917d,_0x265346,_0x4acfd1,_0x576a0b){const _0x38209e=_0x3bdab3;super(_0x2a3cef,_0x52917d,_0x265346),this[_0x38209e(0x2ef)]=_0x4acfd1,this[_0x38209e(0x140)]=_0x576a0b;}[_0x3bdab3(0x30f)](_0x55ead4,_0x1591e1){const _0x5c42f4=_0x3bdab3,_0x404c7d=this[_0x5c42f4(0x3aa)](_0x55ead4);if(_0x404c7d)try{const _0x35b7d4=this['_transformStack'](_0x404c7d,_0x1591e1);this[_0x5c42f4(0x150)](_0x55ead4,_0x35b7d4);}catch(_0x5291fc){this[_0x5c42f4(0x140)][_0x5c42f4(0x127)]('[CollaborationUndoRedoService]',_0x5291fc),this['_clearUndo'](_0x55ead4);}const _0x1c3566=this[_0x5c42f4(0x28b)](_0x55ead4);if(_0x1c3566)try{const _0x4ead61=this[_0x5c42f4(0xa9)](_0x1c3566,_0x1591e1);this['_substituteRedoStack'](_0x55ead4,_0x4ead61);}catch(_0x19e4cd){this['_logService']['error'](_0x19e4cd),this[_0x5c42f4(0x131)](_0x55ead4);}}[_0x3bdab3(0x2bd)](_0x196b78){const _0x7ae6be=_0x3bdab3,_0x205a56=this[_0x7ae6be(0x3aa)](_0x196b78);_0x205a56&&(_0x205a56[_0x7ae6be(0x2d9)]=0x0,this[_0x7ae6be(0xe1)]());}[_0x3bdab3(0x131)](_0x38f01c){const _0x5a14ff=_0x3bdab3,_0x19d08f=this[_0x5a14ff(0x28b)](_0x38f01c);_0x19d08f&&(_0x19d08f[_0x5a14ff(0x2d9)]=0x0,this[_0x5a14ff(0xe1)]());}[_0x3bdab3(0x150)](_0x9c3602,_0x13575b){const _0x22aa01=_0x3bdab3;this['_undoStacks'][_0x22aa01(0x156)](_0x9c3602,_0x13575b),this[_0x22aa01(0xe1)]();}[_0x3bdab3(0xd6)](_0x5a8534,_0x5cf82c){const _0x2de04f=_0x3bdab3;this[_0x2de04f(0xb2)][_0x2de04f(0x156)](_0x5a8534,_0x5cf82c),this[_0x2de04f(0xe1)]();}['_transformStack'](_0xcb156,_0x538dab){const _0x32e297=_0x3bdab3,_0x3aa757=[];let _0x562481=_0x538dab,_0x748c11=_0x538dab;for(let _0x7164a2=_0xcb156['length']-0x1;_0x7164a2>=0x0;_0x7164a2--){const {unitID:_0x2b8b0e,undoMutations:_0x4b3f93,redoMutations:_0x3ce05a}=_0xcb156[_0x7164a2],_0x1da3ef=this[_0x32e297(0x2ef)][_0x32e297(0x2cd)](_0x562481,_0x4b3f93),_0x1f1611=this[_0x32e297(0x2ef)]['transformMutationsWithChangeset'](_0x748c11,_0x3ce05a);if(_0x39e768(_0x1da3ef)||_0x39e768(_0x1f1611)){this[_0x32e297(0x140)]['error'](_0x32e297(0xe7),_0x32e297(0x37f),_0x1da3ef,_0x1f1611);break;}_0x562481=_0x1da3ef[_0x32e297(0x307)],_0x748c11=_0x1f1611[_0x32e297(0x307)],_0x3aa757[_0x32e297(0x37d)]({'unitID':_0x2b8b0e,'undoMutations':_0x1da3ef['m2Prime'],'redoMutations':_0x1f1611[_0x32e297(0x32f)]});}return _0x3aa757['reverse']();}};vt=Vr([pe(0x0,_0x173bd8),pe(0x1,_0x5ba974),pe(0x2,_0x5b7487),pe(0x3,_0x539a09),pe(0x4,_0x2cecb4)],vt);class Wr extends _0x300f85{constructor(){const _0x59fec0=_0x3bdab3;super(),l(this,'urlChange$'),this[_0x59fec0(0x253)]=_0xb88582(window,_0x59fec0(0x343))[_0x59fec0(0x19c)](_0x352c23(this[_0x59fec0(0x99)]),_0x260592(0x1),_0x57165d(void 0x0));}['setParam'](_0x25176e,_0x20993f,_0x1ee20a=!0x1){const _0x4fa4df=_0x3bdab3,_0x2b9e4a=new URL(window[_0x4fa4df(0x1a5)][_0x4fa4df(0x33e)]);_0x2b9e4a['searchParams'][_0x4fa4df(0x156)](_0x25176e,_0x20993f),_0x1ee20a?window[_0x4fa4df(0x19d)][_0x4fa4df(0x1de)]('','',_0x2b9e4a[_0x4fa4df(0x2ea)]()):window['history'][_0x4fa4df(0x193)]('','',_0x2b9e4a[_0x4fa4df(0x2ea)]());}[_0x3bdab3(0x183)](_0x30245b,_0x21efc6=!0x1){const _0x2585e5=_0x3bdab3,_0x4d23d9=new URL(window[_0x2585e5(0x1a5)][_0x2585e5(0x33e)]);_0x4d23d9[_0x2585e5(0x3bf)][_0x2585e5(0xfc)](_0x30245b),_0x21efc6?window['history']['replaceState']('','',_0x4d23d9['toString']()):window[_0x2585e5(0x19d)]['pushState']('','',_0x4d23d9[_0x2585e5(0x2ea)]());}['getParam'](_0x1bec23){const _0x29d3cc=_0x3bdab3;var _0x432d49;return(_0x432d49=new URL(window[_0x29d3cc(0x1a5)]['href'])[_0x29d3cc(0x3bf)][_0x29d3cc(0x132)](_0x1bec23))!=null?_0x432d49:void 0x0;}}const nt=_0x3bdab3(0x10a),Gr='collab-text-range-',ye=0x6,Yr=1.5,rt=0x4,Kr=1.5,Xr=_0x3bdab3(0x354);class Jr{constructor(_0x5992e2,_0x525e56,_0x21054f,_0x13cd9b){const _0x5c0b6f=_0x3bdab3;l(this,_0x5c0b6f(0x2e8),[]),l(this,_0x5c0b6f(0x178),null),l(this,'_textBubble',null),l(this,_0x5c0b6f(0xa7),null),l(this,_0x5c0b6f(0x2aa),null),l(this,_0x5c0b6f(0x2c6),null),(this[_0x5c0b6f(0x14b)]=_0x5992e2,this[_0x5c0b6f(0x1f2)]=_0x525e56,this[_0x5c0b6f(0x2ce)]=_0x21054f,this['_document']=_0x13cd9b,this[_0x5c0b6f(0x1d3)]());}set[_0x3bdab3(0x21c)](_0x4867c0){const _0x45cd13=_0x3bdab3;_0x4867c0?(this['_anchorDot']&&this[_0x45cd13(0xa7)][_0x45cd13(0x1c3)](),this['_textBubble']&&this[_0x45cd13(0xb0)][_0x45cd13(0x270)]()):(this['_anchorDot']&&this['_anchorDot']['show'](),this['_textBubble']&&this['_textBubble'][_0x45cd13(0x1c3)]());}['dispose'](){const _0x148ce7=_0x3bdab3;for(const _0x11ac2f of this[_0x148ce7(0x2e8)])_0x11ac2f[_0x148ce7(0x328)]();this['_textBubble']&&this['_textBubble'][_0x148ce7(0x328)](),this[_0x148ce7(0xa7)]&&this[_0x148ce7(0xa7)][_0x148ce7(0x328)](),this[_0x148ce7(0x178)]&&this[_0x148ce7(0x178)][_0x148ce7(0x328)](),this[_0x148ce7(0x2c6)]&&this[_0x148ce7(0x2c6)]();}[_0x3bdab3(0x1d3)](){const _0x36ac19=_0x3bdab3,{_docSkeleton:_0x42843a,_document:_0x40e051}=this,{color:_0x1ba968,name:_0x5100e5,ranges:_0xdadae6}=this[_0x36ac19(0x14b)],_0x25bd02=_0x40e051[_0x36ac19(0x1be)](),{docsLeft:_0x569092,docsTop:_0x36b213}=_0x25bd02,_0x3b3d55=new _0x7f1a71(_0x25bd02,_0x42843a);for(const {startOffset:_0x27d195,endOffset:_0x1ed8ad,collapsed:_0x42d57b,isActive:_0xf7a8a0}of _0xdadae6){const _0x1f860e=_0x42843a['findNodePositionByCharIndex'](_0x27d195),_0x109457=_0x42843a[_0x36ac19(0x331)](_0x1ed8ad);if(_0xf7a8a0){const {contentBoxPointGroup:_0x1293ce}=_0x3b3d55[_0x36ac19(0x16d)](_0x109457,_0x109457);if(_0x1293ce[_0x36ac19(0x2d9)]===0x0)continue;this['_drawAnchor'](_0x1ba968,_0x1293ce,_0x569092,_0x36b213,_0x5100e5),this[_0x36ac19(0x2c6)]=this['_handleHover']();}if(!_0x42d57b){const {contentBoxPointGroup:_0xa2f393}=_0x3b3d55[_0x36ac19(0x16d)](_0x1f860e,_0x109457);if(_0xa2f393[_0x36ac19(0x2d9)]===0x0)continue;this[_0x36ac19(0x1fe)](_0x1ba968,_0xa2f393,_0x569092,_0x36b213);}}}[_0x3bdab3(0x244)](_0x44c557,_0x261b0b,_0x137bf7,_0x25ee56,_0x52a59e){const _0x26f0dd=_0x3bdab3,_0x2eca0b=this[_0x26f0dd(0x340)](_0x261b0b),{left:_0x20e47c,top:_0x21c513,height:_0x4aae74}=_0x2eca0b,_0x764569=this[_0x26f0dd(0x2d8)](),_0x4c1b30=Kr/_0x764569,_0x2297e9=new _0x11ad62(nt+_0x572ff7[_0x26f0dd(0x206)](ye),{'left':_0x20e47c+_0x137bf7-_0x4c1b30,'top':_0x21c513+_0x25ee56,'height':_0x4aae74,'width':Yr,'fill':_0x44c557||_0x40bb34(_0x1d3c6f[_0x26f0dd(0x39f)],0x0),'strokeWidth':_0x4c1b30,'stroke':Xr,'evented':!0x0});this[_0x26f0dd(0x178)]=_0x2297e9,this['_scene'][_0x26f0dd(0xb5)](_0x2297e9,_0x2c9f4c);const _0x39c3ce=new _0x11ad62(nt+_0x572ff7['generateRandomId'](ye),{'left':_0x20e47c+_0x137bf7-_0x4c1b30,'top':_0x21c513+_0x25ee56-rt/0x2,'height':rt,'width':rt,'fill':_0x44c557||_0x40bb34(_0x1d3c6f['black'],0x0),'strokeWidth':0x0,'stroke':_0x44c557||_0x40bb34(_0x1d3c6f[_0x26f0dd(0x39f)],0x0),'evented':!0x1});this[_0x26f0dd(0xa7)]=_0x39c3ce,this['_scene']['addObject'](_0x39c3ce,_0x2c9f4c);const _0x3af038=new ze(nt+_0x572ff7['generateRandomId'](ye),{'left':_0x20e47c+_0x137bf7-_0x4c1b30,'top':_0x21c513+_0x25ee56-Oe,'text':_0x52a59e,'color':_0x44c557});this['_textBubble']=_0x3af038,this['_scene'][_0x26f0dd(0xb5)](_0x3af038,_0x2c9f4c),this[_0x26f0dd(0x21c)]=!0x1;}['_handleHover'](){const _0x202930=_0x3bdab3,_0x34448e=this['_anchor'][_0x202930(0x39e)][_0x202930(0x20d)](()=>{const _0x5628e9=_0x202930;this[_0x5628e9(0x21c)]=!0x0;}),_0x312ad0=this[_0x202930(0x178)]['onPointerLeaveObserver']['add'](()=>{const _0x2bfbe9=_0x202930;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x2bfbe9(0x2aa)]=setTimeout(()=>{const _0x57e09c=_0x2bfbe9;this[_0x57e09c(0x21c)]=!0x1;},0x7d0);});return()=>{const _0x1a232b=_0x202930;var _0x50625b,_0x214294;(_0x50625b=this[_0x1a232b(0x178)])==null||_0x50625b[_0x1a232b(0x39e)]['remove'](_0x34448e),(_0x214294=this['_anchor'])==null||_0x214294['onPointerLeaveObserver']['remove'](_0x312ad0);};}[_0x3bdab3(0x1fe)](_0x48993e,_0x3baae5,_0x44c78d,_0x5ed90f){const _0x3dda06=_0x3bdab3,_0x1ccf4b=new _0x2b14c0(_0x48993e)['setAlpha'](0.2)['toRgbString'](),_0x59206b=new _0x566c8a(Gr+_0x572ff7[_0x3dda06(0x206)](ye),{'pointsGroup':_0x3baae5,'fill':_0x1ccf4b||_0x40bb34(_0x1d3c6f[_0x3dda06(0x39f)],0.2),'left':_0x44c78d,'top':_0x5ed90f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3dda06(0x2e8)][_0x3dda06(0x37d)](_0x59206b),this['_scene'][_0x3dda06(0xb5)](_0x59206b,_0x2c9f4c);}[_0x3bdab3(0x340)](_0x54a251){const _0x2df4ed=_0x54a251[0x0],_0x7aaf24=_0x2df4ed[0x0],_0x5ade68=_0x2df4ed[0x2],{x:_0xbe71e6,y:_0x2bbcbc}=_0x7aaf24,{x:_0x329196,y:_0x46c027}=_0x5ade68;return{'left':_0xbe71e6,'top':_0x2bbcbc,'width':_0x329196-_0xbe71e6,'height':_0x46c027-_0x2bbcbc};}['_getScale'](){const _0x198957=_0x3bdab3,{scaleX:_0x2c9c3e,scaleY:_0x18fe99}=this[_0x198957(0x1f2)][_0x198957(0x21a)]();return Math['max'](_0x2c9c3e,_0x18fe99);}}var zr=Object['defineProperty'],Zr=Object['getOwnPropertyDescriptor'],qr=(_0x46778d,_0xf33646,_0x5dbb2b,_0x208b30)=>{const _0x17a85c=_0x3bdab3;for(var _0x5d20da=_0x208b30>0x1?void 0x0:_0x208b30?Zr(_0xf33646,_0x5dbb2b):_0xf33646,_0x529458=_0x46778d[_0x17a85c(0x2d9)]-0x1,_0x273374;_0x529458>=0x0;_0x529458--)(_0x273374=_0x46778d[_0x529458])&&(_0x5d20da=(_0x208b30?_0x273374(_0xf33646,_0x5dbb2b,_0x5d20da):_0x273374(_0x5d20da))||_0x5d20da);return _0x208b30&&_0x5d20da&&zr(_0xf33646,_0x5dbb2b,_0x5d20da),_0x5d20da;},Ie=(_0x11e327,_0xf09492)=>(_0x4e8e42,_0x428823)=>_0xf09492(_0x4e8e42,_0x428823,_0x11e327);let Fe=class extends _0x300f85{constructor(_0x4ba065,_0x553a73,_0x154538,_0x38428d,_0x1d1759){const _0x40582c=_0x3bdab3;super(),l(this,_0x40582c(0xf4),[]),(this['_collabCursorController']=_0x4ba065,this[_0x40582c(0xa4)]=_0x553a73,this[_0x40582c(0x2f6)]=_0x154538,this[_0x40582c(0x1ce)]=_0x38428d,this[_0x40582c(0x1d5)]=_0x1d1759,this[_0x40582c(0x10d)]());}[_0x3bdab3(0x10d)](){const _0x4dc9f3=_0x3bdab3;this[_0x4dc9f3(0x1ce)][_0x4dc9f3(0x351)]['pipe'](_0xdf0e3e(this['dispose$']),_0x40ba52(_0x2e62db=>{const _0x1b6c72=_0x4dc9f3;if(_0x2e62db){const {unitId:_0x691bd9}=_0x2e62db;return _0x499f91(this[_0x1b6c72(0x2e5)][_0x1b6c72(0x299)](_0x691bd9),this[_0x1b6c72(0x1d5)][_0x1b6c72(0x24f)])[_0x1b6c72(0x19c)](_0x5de95e(([_0x5537f8,_0x151f66])=>({'skeleton':_0x2e62db,'cursors':[..._0x5537f8['values']()][_0x1b6c72(0x112)](_0x1d1a3d=>({..._0x1d1a3d,'color':_0x151f66[_0x1d1a3d[_0x1b6c72(0x3b8)]]}))})));}return _0x442f94({'skeleton':null,'cursors':[]});}))[_0x4dc9f3(0x2b5)](({skeleton:_0x4a79ba,cursors:_0x55d6b1})=>{const _0x2a67d1=_0x4dc9f3;this['_removeCollabCursors'](),_0x4a79ba&&this[_0x2a67d1(0x231)](_0x4a79ba[_0x2a67d1(0x27b)],_0x55d6b1);});}[_0x3bdab3(0x231)](_0x21183d,_0x5a5923){const _0x2a2166=_0x3bdab3,_0x489ceb=this[_0x2a2166(0x320)]();if(_0x489ceb==null)return;const {scene:_0xfb8f80,document:_0x20f91b}=_0x489ceb,_0x1a2dfc=_0x5a5923[_0x2a2166(0x3bc)](_0x48f5d1=>new Jr(_0x48f5d1,_0xfb8f80,_0x21183d,_0x20f91b));this[_0x2a2166(0xf4)]=_0x1a2dfc;}[_0x3bdab3(0xae)](){const _0x4e4441=_0x3bdab3;this[_0x4e4441(0xf4)][_0x4e4441(0x2fa)](_0x306233=>_0x306233[_0x4e4441(0x328)]()),this['_cursors']=[];}[_0x3bdab3(0x320)](){const _0x58a40c=_0x3bdab3;return _0x3089e4(this[_0x58a40c(0xa4)],this[_0x58a40c(0x2f6)]);}};Fe=qr([_0x516125(_0x3c792f['Steady'],Fe),Ie(0x0,_0x279e5b(ue)),Ie(0x1,_0x173bd8),Ie(0x2,_0x4c72a4),Ie(0x3,_0x279e5b(_0x27e0a0)),Ie(0x4,_0x279e5b(_0x588548))],Fe);var Qr=Object[_0x3bdab3(0x162)],eo=Object[_0x3bdab3(0x123)],to=(_0x503343,_0xa8678c,_0x7b8978,_0x1ce810)=>{const _0x355756=_0x3bdab3;for(var _0x1b0b5a=_0x1ce810>0x1?void 0x0:_0x1ce810?eo(_0xa8678c,_0x7b8978):_0xa8678c,_0x8a8642=_0x503343[_0x355756(0x2d9)]-0x1,_0x50a0b0;_0x8a8642>=0x0;_0x8a8642--)(_0x50a0b0=_0x503343[_0x8a8642])&&(_0x1b0b5a=(_0x1ce810?_0x50a0b0(_0xa8678c,_0x7b8978,_0x1b0b5a):_0x50a0b0(_0x1b0b5a))||_0x1b0b5a);return _0x1ce810&&_0x1b0b5a&&Qr(_0xa8678c,_0x7b8978,_0x1b0b5a),_0x1b0b5a;},ot=(_0x2b560f,_0x2bc018)=>(_0x2de406,_0x135d1c)=>_0x2bc018(_0x2de406,_0x135d1c,_0x2b560f);let Ge=class{constructor(_0x9016e5,_0x3bc5ed,_0x490a76){const _0x45be07=_0x3bdab3;this[_0x45be07(0x1bd)]=_0x9016e5,this[_0x45be07(0x155)]=_0x3bc5ed,this[_0x45be07(0x235)]=_0x490a76,this['init']();}[_0x3bdab3(0x220)](){const _0xb273ff=_0x3bdab3;this[_0xb273ff(0x155)][_0xb273ff(0x379)]({'priority':0x1,'interceptor':(_0x4d17f9,_0x275dfc)=>_0x275dfc(_0x4d17f9)[_0xb273ff(0x19c)](_0x3298d9(async _0x406936=>{const _0x4fab63=_0xb273ff,_0x520cea=_0x406936;if(_0x520cea[_0x4fab63(0x186)]===0x191&&window[_0x4fab63(0x1d2)](this[_0x4fab63(0x235)]['t'](_0x4fab63(0x1ed)))){const _0x329f71=window[_0x4fab63(0x15d)](window['location']['href']);window[_0x4fab63(0x1a5)][_0x4fab63(0x33e)]=this['_getLoginPath']()+_0x4fab63(0x9e)+_0x329f71;}return _0x520cea;}))});}[_0x3bdab3(0xbd)](){const _0x28b238=_0x3bdab3;var _0x2e8b67;return(_0x2e8b67=this[_0x28b238(0x1bd)]['getConfig'](cn))!=null?_0x2e8b67:hn;}};Ge=to([ot(0x0,_0x37d874),ot(0x1,_0x279e5b(_0x24b00a)),ot(0x2,_0x279e5b(_0x25e6c6))],Ge);var so=Object[_0x3bdab3(0x162)],io=Object[_0x3bdab3(0x123)],no=(_0x339a3d,_0x2530d1,_0x5f501c,_0x57741a)=>{const _0x6ecb3f=_0x3bdab3;for(var _0x1230b7=_0x57741a>0x1?void 0x0:_0x57741a?io(_0x2530d1,_0x5f501c):_0x2530d1,_0x4172d6=_0x339a3d[_0x6ecb3f(0x2d9)]-0x1,_0x36b2d7;_0x4172d6>=0x0;_0x4172d6--)(_0x36b2d7=_0x339a3d[_0x4172d6])&&(_0x1230b7=(_0x57741a?_0x36b2d7(_0x2530d1,_0x5f501c,_0x1230b7):_0x36b2d7(_0x1230b7))||_0x1230b7);return _0x57741a&&_0x1230b7&&so(_0x2530d1,_0x5f501c,_0x1230b7),_0x1230b7;},es=(_0x38b965,_0x548387)=>(_0x6f7d69,_0x7ec24e)=>_0x548387(_0x6f7d69,_0x7ec24e,_0x38b965);const ro='AUTHZ_URL_KEY',oo=_0x3bdab3(0x1b5);let pt=class{constructor(_0x522a22,_0x409fe5){const _0x3fa0df=_0x3bdab3;this[_0x3fa0df(0x31f)]=_0x522a22,this[_0x3fa0df(0x1bd)]=_0x409fe5;}[_0x3bdab3(0x2e9)](){const _0x3b61c6=_0x3bdab3;var _0x2be8c7;return(_0x2be8c7=this[_0x3b61c6(0x1bd)]['getConfig'](ro))!=null?_0x2be8c7:oo;}async[_0x3bdab3(0x3a7)](_0x533204){const _0x356724=_0x3bdab3,_0x3b6d6e=this[_0x356724(0x2e9)]()+'/'+_0x533204['objectType']+_0x356724(0x21f);return(await this[_0x356724(0x31f)]['post'](_0x3b6d6e,{'body':_0x533204}))[_0x356724(0xf0)][_0x356724(0x187)]||'';}async['list'](_0x3af812){const _0x669341=_0x3bdab3,_0x15c7c6=this[_0x669341(0x2e9)]()+_0x669341(0x2e0);return(await this['_HTTPService']['post'](_0x15c7c6,{'body':_0x3af812}))['body'][_0x669341(0x388)];}async['update'](_0x7c2612){const _0xf514fa=_0x3bdab3,_0xc29f22=this['_getAPIPrefixPath']()+'/'+_0x7c2612['objectType']+_0xf514fa(0x3b7)+_0x7c2612[_0xf514fa(0x187)];await this[_0xf514fa(0x31f)]['put'](_0xc29f22,{'body':_0x7c2612});}async[_0x3bdab3(0x18b)](_0x47954a){const _0x1cb7d8=_0x3bdab3,_0x340fc3=this[_0x1cb7d8(0x2e9)]()+'/'+_0x47954a[_0x1cb7d8(0x180)]+_0x1cb7d8(0x3b7)+_0x47954a[_0x1cb7d8(0x187)]+'/allowed';return(await this[_0x1cb7d8(0x31f)][_0x1cb7d8(0xc7)](_0x340fc3,{'body':_0x47954a}))['body'][_0x1cb7d8(0x303)];}async[_0x3bdab3(0x1d9)](_0x3fdf7a){const _0x431228=_0x3bdab3,_0x7e9719=this['_getAPIPrefixPath']()+_0x431228(0x1f6);return(await this[_0x431228(0x31f)][_0x431228(0xc7)](_0x7e9719,{'body':{'requests':_0x3fdf7a}}))[_0x431228(0xf0)][_0x431228(0x25d)];}async[_0x3bdab3(0x269)](_0x2a7ad7){const _0x1a4662=_0x3bdab3,_0x4e35b8=this[_0x1a4662(0x2e9)]()+'/'+_0x2a7ad7['objectType']+_0x1a4662(0x291),_0x399fe2=await this['_HTTPService'][_0x1a4662(0xc7)](_0x4e35b8,{'body':_0x2a7ad7});return{'roles':_0x399fe2[_0x1a4662(0xf0)][_0x1a4662(0x1b7)],'actions':_0x399fe2[_0x1a4662(0xf0)]['actions']};}async[_0x3bdab3(0x17a)](_0x2371ef){const _0x240ef2=_0x3bdab3,_0x23636d=this[_0x240ef2(0x2e9)]()+_0x240ef2(0xa2);await this['_HTTPService'][_0x240ef2(0xfc)](_0x23636d,{'params':{'collaboratorID':_0x2371ef[_0x240ef2(0x2b6)],'objectID':_0x2371ef[_0x240ef2(0x187)],'unitID':_0x2371ef[_0x240ef2(0x227)]}});}async[_0x3bdab3(0x20a)](_0x1e1f52){const _0x4fa762=_0x3bdab3,_0x2ba686=this[_0x4fa762(0x2e9)]()+_0x4fa762(0xa2);await this[_0x4fa762(0x31f)][_0x4fa762(0x385)](_0x2ba686,{'body':_0x1e1f52});}async['createCollaborator'](_0x5d5e30){const _0x44a461=_0x3bdab3,_0x2c0641=this[_0x44a461(0x2e9)]()+_0x44a461(0xa2);await this[_0x44a461(0x31f)][_0x44a461(0xc7)](_0x2c0641,{'body':_0x5d5e30});}async[_0x3bdab3(0x1f8)](_0x16a140){const _0x4ee5fa=_0x3bdab3,_0x415545=this[_0x4ee5fa(0x2e9)]()+_0x4ee5fa(0xa2);return(await this[_0x4ee5fa(0x31f)][_0x4ee5fa(0x132)](_0x415545,{'params':{'objectID':_0x16a140[_0x4ee5fa(0x187)],'unitID':_0x16a140[_0x4ee5fa(0x227)]}}))[_0x4ee5fa(0xf0)][_0x4ee5fa(0xce)];}async[_0x3bdab3(0x1cd)](_0x305d70){const _0x21c861=_0x3bdab3,_0x4528d0=this[_0x21c861(0x2e9)]()+_0x21c861(0xa2);await this[_0x21c861(0x31f)]['put'](_0x4528d0,{'body':_0x305d70});}};pt=no([es(0x0,_0x279e5b(_0x24b00a)),es(0x1,_0x279e5b(_0x37d874))],pt);var ao=Object[_0x3bdab3(0x162)],co=Object[_0x3bdab3(0x123)],ho=(_0x2e5d8e,_0x55ac98,_0x20bc82,_0x9eb0a1)=>{for(var _0x1f1e1a=_0x9eb0a1>0x1?void 0x0:_0x9eb0a1?co(_0x55ac98,_0x20bc82):_0x55ac98,_0x2c9e3f=_0x2e5d8e['length']-0x1,_0x17a2cf;_0x2c9e3f>=0x0;_0x2c9e3f--)(_0x17a2cf=_0x2e5d8e[_0x2c9e3f])&&(_0x1f1e1a=(_0x9eb0a1?_0x17a2cf(_0x55ac98,_0x20bc82,_0x1f1e1a):_0x17a2cf(_0x1f1e1a))||_0x1f1e1a);return _0x9eb0a1&&_0x1f1e1a&&ao(_0x55ac98,_0x20bc82,_0x1f1e1a),_0x1f1e1a;},ts=(_0x2b1011,_0x2acdbb)=>(_0x1825d8,_0x35ce8a)=>_0x2acdbb(_0x1825d8,_0x35ce8a,_0x2b1011);const lo=[_0x3bdab3(0x318),_0x3bdab3(0x27d),_0x3bdab3(0x1d1),_0x3bdab3(0x2d1),_0x3bdab3(0x1e7)],_o=0x5*0x400*0x400,uo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',fo=_0x3bdab3(0x30e),go=_0x3bdab3(0x16f),mo=_0x3bdab3(0x3ba);let It=class{constructor(_0x34b4f7,_0x5d2be2){const _0x516033=_0x3bdab3;l(this,_0x516033(0x239),0x0),l(this,_0x516033(0x359),new _0x4a8f66()),l(this,'change$',this[_0x516033(0x359)]),l(this,_0x516033(0x35b),new Map()),(this[_0x516033(0x155)]=_0x34b4f7,this[_0x516033(0x1bd)]=_0x5d2be2);}['setWaitCount'](_0x44cdc9){const _0x43a589=_0x3bdab3;this[_0x43a589(0x239)]=_0x44cdc9,this[_0x43a589(0x359)][_0x43a589(0x1c7)](_0x44cdc9);}[_0x3bdab3(0x31b)](_0x4328b6,_0x38a4e0){const _0x7734d5=_0x3bdab3;if(_0x38a4e0===_0xd025b9[_0x7734d5(0x19f)]){const _0x10aee9=new Image();return _0x10aee9[_0x7734d5(0x11d)]=_0x4328b6,_0x10aee9;}return this[_0x7734d5(0x35b)][_0x7734d5(0x132)](_0x4328b6);}[_0x3bdab3(0x315)](_0x173b95,_0x135ab2,_0x2f4d53){const _0x50590c=_0x3bdab3;_0x135ab2===_0xd025b9[_0x50590c(0x19f)]||_0x2f4d53==null||this['_imageSourceCache']['set'](_0x173b95,_0x2f4d53);}async[_0x3bdab3(0x2e1)](_0x48a3e7){const _0x235155=_0x3bdab3;try{const _0x3b1761=this[_0x235155(0x1ae)](this['_getSignURL'](),''+_0x48a3e7),_0x4cd1f1=(await this['_httpService'][_0x235155(0x132)](_0x3b1761))[_0x235155(0xf0)];return _0x4cd1f1[_0x235155(0x127)]&&_0x4cd1f1[_0x235155(0x127)]['code']===Es['OK']?Promise[_0x235155(0x181)](_0x4cd1f1[_0x235155(0xfa)]):Promise['reject'](_0x4cd1f1['error']);}catch(_0x23dd84){return Promise[_0x235155(0x313)](_0x23dd84);}}async[_0x3bdab3(0xf2)](_0x45f882){const _0x3a602b=_0x3bdab3;let _0x54301a='';if(!lo[_0x3a602b(0x1bb)](_0x45f882[_0x3a602b(0x2ec)]))return this['_decreaseWaiting'](),Promise[_0x3a602b(0x313)](new Error(_0x34894f['ERROR_IMAGE_TYPE']));if(_0x45f882[_0x3a602b(0x316)]>_o)return this['_decreaseWaiting'](),Promise[_0x3a602b(0x313)](new Error(_0x34894f[_0x3a602b(0x262)]));try{const _0x1c235d=new FormData();_0x1c235d[_0x3a602b(0x201)]('file',_0x45f882);const _0x31dcb4=this[_0x3a602b(0x37b)]()+_0x3a602b(0x376)+_0x45f882[_0x3a602b(0x316)]['toString'](),_0x183b5c=await(await fetch(_0x31dcb4,{'method':'POST','body':_0x1c235d}))[_0x3a602b(0xb6)]();if(typeof _0x183b5c['FileId']!=_0x3a602b(0x304))return this[_0x3a602b(0x3a3)](),Promise[_0x3a602b(0x313)](new Error(_0x34894f['ERROR_IMAGE']));_0x54301a=_0x183b5c[_0x3a602b(0x2fe)];}catch{return this[_0x3a602b(0x3a3)](),Promise[_0x3a602b(0x313)](new Error(_0x34894f['ERROR_IMAGE']));}return new Promise((_0x2e835f,_0x1e95c0)=>{const _0x37173f=_0x3a602b,_0x345a78=new FileReader();_0x345a78['readAsDataURL'](_0x45f882),_0x345a78[_0x37173f(0x102)]=_0x7090d5=>{const _0x2140ca=_0x37173f;var _0x61709e;const _0x2abbc1=(_0x61709e=_0x7090d5['target'])==null?void 0x0:_0x61709e[_0x2140ca(0x20c)];if(_0x2abbc1==null){this[_0x2140ca(0x3a3)](),_0x1e95c0(new Error(_0x34894f[_0x2140ca(0x2f2)]));return;}const _0x287ac6=_0x572ff7[_0x2140ca(0x206)](0x6);_0x2e835f({'imageId':_0x287ac6,'imageSourceType':_0xd025b9[_0x2140ca(0x26b)],'source':_0x54301a,'base64Cache':_0x2abbc1,'status':_0x34894f[_0x2140ca(0xaf)]}),this[_0x2140ca(0x3a3)]();};});}[_0x3bdab3(0x37b)](){const _0x13ac52=_0x3bdab3;var _0x3fd8d0;return(_0x3fd8d0=this[_0x13ac52(0x1bd)][_0x13ac52(0x384)](uo))!=null?_0x3fd8d0:fo;}['_getSignURL'](){const _0x443698=_0x3bdab3;var _0x10f05e;return(_0x10f05e=this['_configService'][_0x443698(0x384)](go))!=null?_0x10f05e:mo;}[_0x3bdab3(0x1ae)](_0x378ad5,_0x4e376a){const _0x4f529b=_0x3bdab3;return _0x378ad5[_0x4f529b(0x329)](_0x4f529b(0x32b),_0x4e376a);}['_decreaseWaiting'](){const _0x5eae37=_0x3bdab3;this['_waitCount']-=0x1,this[_0x5eae37(0x359)][_0x5eae37(0x1c7)](this[_0x5eae37(0x239)]);}};It=ho([ts(0x0,_0x279e5b(_0x24b00a)),ts(0x1,_0x37d874)],It);var Ms=Object[_0x3bdab3(0x162)],So=Object[_0x3bdab3(0x123)],vo=(_0x57f6e0,_0x14942e,_0x26b31c)=>_0x14942e in _0x57f6e0?Ms(_0x57f6e0,_0x14942e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26b31c}):_0x57f6e0[_0x14942e]=_0x26b31c,po=(_0x3e1028,_0x2a1d78,_0x4c579f,_0x5ca8fb)=>{const _0x3ff3f2=_0x3bdab3;for(var _0x1c107c=_0x5ca8fb>0x1?void 0x0:_0x5ca8fb?So(_0x2a1d78,_0x4c579f):_0x2a1d78,_0x42961f=_0x3e1028[_0x3ff3f2(0x2d9)]-0x1,_0x13bb0b;_0x42961f>=0x0;_0x42961f--)(_0x13bb0b=_0x3e1028[_0x42961f])&&(_0x1c107c=(_0x5ca8fb?_0x13bb0b(_0x2a1d78,_0x4c579f,_0x1c107c):_0x13bb0b(_0x1c107c))||_0x1c107c);return _0x5ca8fb&&_0x1c107c&&Ms(_0x2a1d78,_0x4c579f,_0x1c107c),_0x1c107c;},ss=(_0x4d2df8,_0x5ba593)=>(_0x343e92,_0x43c30f)=>_0x5ba593(_0x343e92,_0x43c30f,_0x4d2df8),Io=(_0x41490d,_0x4772e0,_0x39d4d5)=>vo(_0x41490d,_0x4772e0+'',_0x39d4d5);const Eo='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Et=class extends _0x454bd9{constructor(_0x50f370,_0x5e2bc3,_0x4fe1d0){const _0x299922=_0x3bdab3;super(),this[_0x299922(0x1d6)]=_0x50f370,this['_logService']=_0x5e2bc3,this[_0x299922(0x191)]=_0x4fe1d0;}[_0x3bdab3(0x1f1)](_0x1cd171){const _0x6fdb6b=_0x3bdab3;var _0x4307da,_0x2d0d3c,_0x49da95,_0x20ffeb,_0x38c5ac;_0x1cd171[_0x6fdb6b(0x27c)](_0x1de145)&&this['_logService'][_0x6fdb6b(0x127)](_0x6fdb6b(0x238),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3fb711=[[_0x1de145,{'useClass':vt}],[Re],[At],[_0x24b00a],[Ns,{'useClass':Wr}],[ee],[D],[_0x2a4381],[Ve],[Be],[ke],[Mt],[Ge],[Cs,{'useClass':(_0x2d0d3c=(_0x4307da=this[_0x6fdb6b(0x1d6)])==null?void 0x0:_0x4307da[_0x6fdb6b(0x346)])!=null?_0x2d0d3c:_t}],[_0x3ebb40,{'useClass':_0x5cf0a1}],[_0x4d41e7,{'useClass':St}],[_0x26ad23,{'useClass':pt}],[_0x401699,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x49da95=this[_0x6fdb6b(0x1d6)])!=null&&_0x49da95['enableSingleActiveInstanceLock']&&_0x3fb711['push']([Xe,{'useClass':Tn}]),((_0x20ffeb=this[_0x6fdb6b(0x1d6)])==null?void 0x0:_0x20ffeb[_0x6fdb6b(0x30b)])==null||this[_0x6fdb6b(0x1d6)]['collaborationUniverTypes'][_0x6fdb6b(0x1bb)](_0x3ba52b[_0x6fdb6b(0x38c)])?_0x3fb711['push']([$e]):this[_0x6fdb6b(0x1d6)][_0x6fdb6b(0x30b)][_0x6fdb6b(0x1bb)](_0x3ba52b[_0x6fdb6b(0x1a4)])&&_0x3fb711[_0x6fdb6b(0x37d)]([Fe]),_0x3fb711=_0xfb808f(_0x3fb711,(_0x38c5ac=this[_0x6fdb6b(0x1d6)])==null?void 0x0:_0x38c5ac[_0x6fdb6b(0x1dd)]),_0x3fb711[_0x6fdb6b(0x2fa)](_0x52ef60=>_0x1cd171[_0x6fdb6b(0x20d)](_0x52ef60)),_0x1cd171[_0x6fdb6b(0x132)](_0x24b00a)[_0x6fdb6b(0x379)]({'priority':0x14,'interceptor':_0x344db4({'maxParallel':0x6})}),this[_0x6fdb6b(0x311)]();}[_0x3bdab3(0x311)](){const _0x44b14b=_0x3bdab3;var _0x4ee39f,_0x4af391;(_0x4ee39f=this[_0x44b14b(0x1d6)])!=null&&_0x4ee39f[_0x44b14b(0x265)]||this[_0x44b14b(0x191)][_0x44b14b(0x132)](D)[_0x44b14b(0x2e6)](),(_0x4af391=this[_0x44b14b(0x1d6)])!=null&&_0x4af391[_0x44b14b(0xd1)]&&this[_0x44b14b(0x191)][_0x44b14b(0x132)](Ge);}};Io(Et,'pluginName',Eo),Et=po([_0x11cd6(_0x40a55a),ss(0x1,_0x2cecb4),ss(0x2,_0x279e5b(_0x5df577))],Et);export{ro as AUTHZ_URL_KEY,pt as AuthzIoHttpService,on as COLLAB_SUBMIT_CHANGESET_URL_KEY,Ji as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Tr as CollaborationStatusDisplay,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,Zi as HEARTBEAT_INTERVAL_KEY,ps as HEARTBEAT_TIMEOUT_KEY,Cs as ICollaborationSocketService,Ns as IURLService,nn as LOCAL_CACHE_INTERVAL_KEY,cn as LOGIN_URL_KEY,D as LocalCacheService,Ki as SEND_CHANGESET_TIMEOUT_KEY,Wi as SNAPSHOT_SERVER_URL_KEY,Yi as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Wr as WebURLService,fn as deserializeToCombResponse,gn as serializeCombRequest};