@univerjs-pro/collaboration-client 0.1.15 → 0.1.17
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 _0x35fe9a=_0x2564;(function(_0x173702,_0x53903f){const _0x44851f=_0x2564,_0xb1b556=_0x173702();while(!![]){try{const _0x8018f3=parseInt(_0x44851f(0x2ce))/0x1*(-parseInt(_0x44851f(0x419))/0x2)+-parseInt(_0x44851f(0x202))/0x3*(parseInt(_0x44851f(0x2a9))/0x4)+-parseInt(_0x44851f(0x276))/0x5+-parseInt(_0x44851f(0x453))/0x6*(parseInt(_0x44851f(0x258))/0x7)+-parseInt(_0x44851f(0x21a))/0x8*(parseInt(_0x44851f(0x475))/0x9)+parseInt(_0x44851f(0x1df))/0xa+parseInt(_0x44851f(0x3fa))/0xb;if(_0x8018f3===_0x53903f)break;else _0xb1b556['push'](_0xb1b556['shift']());}catch(_0x3ece13){_0xb1b556['push'](_0xb1b556['shift']());}}}(_0x4643,0x9b32b));var Hs=Object[_0x35fe9a(0x448)],xs=(_0x33801f,_0x116e74,_0x5e0baa)=>_0x116e74 in _0x33801f?Hs(_0x33801f,_0x116e74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e0baa}):_0x33801f[_0x116e74]=_0x5e0baa,l=(_0x4586f6,_0x49a051,_0x23d19b)=>xs(_0x4586f6,typeof _0x49a051!=_0x35fe9a(0x441)?_0x49a051+'':_0x49a051,_0x23d19b);import{Disposable as _0x2b2023,toDisposable as _0x5b60bf,UniverInstanceType as _0x9a39b6,UserManagerService as _0x570ca3,IUniverInstanceService as _0x1ffae8,DisposableCollection as _0x282665,IConfigService as _0x4e019d,ILogService as _0x294e85,ISnapshotServerService as _0x1f3aa6,RxDisposable as _0x2f203c,LocaleService as _0x210cec,ILocalStorageService as _0x42b234,Tools as _0x295a4b,ICommandService as _0x373f07,JSONX as _0x260909,IPermissionService as _0x58ae2b,IUndoRedoService as _0x4b7ddb,sequenceExecute as _0x299d45,OnLifecycle as _0x47af0a,LifecycleStages as _0x550976,CommandType as _0x4c88fc,Rectangle as _0x22f9e9,ThemeService as _0x166891,Workbook as _0x23594e,textEncoder as _0x3071b6,b64DecodeUnicode as _0x42e26e,LocalUndoRedoService as _0x3e7dac,IContextService as _0x559f35,COLORS as _0x1e8e1f,ColorKit as _0x2de130,Plugin as _0x3c1164,IAuthzIoService as _0x5c7307,mergeOverrideWithDependencies as _0x3e3d43,DependentOn as _0x19f942}from'@univerjs/core';import{SelectionManagerService as _0x5927f3,SetSelectionsOperation as _0x49c1dc,InsertSheetMutation as _0x3307b6,WorkbookEditablePermission as _0x1a9d94,RefRangeService as _0x3cc16f,EffectRefRangId as _0x4d5b56,handleIRemoveRow as _0x16f5d1,handleIRemoveCol as _0x22f603,handleMoveRange as _0x3fb244,handleInsertRow as _0x448db0,handleInsertRangeMoveRight as _0x5b1c01,handleInsertRangeMoveDown as _0x153b04,handleInsertCol as _0x35ab5a,handleDeleteRangeMoveUp as _0x1e2cc5,handleDeleteRangeMoveLeft as _0x6ca0a5,runRefRangeMutations as _0x577367,SetWorksheetActivateCommand as _0x34d4ad}from'@univerjs/sheets';import{MessageType as _0x1b5516}from'@univerjs/design';import{IBeforeCloseService as _0x551edb,IMessageService as _0x22dc6a,INotificationService as _0x463aaa,useObservable as _0x2fb9fb,BuiltInUIPart as _0x851c42,IUIPartsService as _0x1edecf}from'@univerjs/ui';import{CollaborationEvent as _0x20b5fc,parseChangesetToProtocol as _0x45ae1b,RevisionService as _0x53eb10,isTransformMutationFailure as _0x560f2f,isTransformMutationsWithChangesetSuccess as _0x44a64c,ITransformService as _0x56176b,mapDocumentTypeToUniverType as _0xa9e329,isTransformChangesetsSuccess as _0x54bce7,CompressMutationService as _0x3c2828,parseProtocolChangeset as _0x41e0db,SnapshotService as _0x4b1ee5,isTransformMutationsWithChangesetFailure as _0x4f854d,UniverCollaborationPlugin as _0xc5e94c}from'@univerjs-pro/collaboration';import{Inject as _0x5b3e40,createIdentifier as _0x83cf67,Injector as _0x331eca,Optional as _0xb29030}from'@wendellhu/redi';import{merge as _0x17d598,Subject as _0x3da7e9,BehaviorSubject as _0x316dfa,distinctUntilChanged as _0x199d88,fromEvent as _0x4ba866,of as _0x214b8f,takeUntil as _0x2c14e9,debounceTime as _0x4831d6,filter as _0x37e932,switchMap as _0x13231a,combineLatest as _0x409cac,shareReplay as _0x436a17,mapTo as _0x49a35c,concatMap as _0x36cfb9}from'rxjs';import{map as _0x134cb9,takeUntil as _0x479f07,take as _0x403f5b,filter as _0xa67359,delay as _0x4d03e2,shareReplay as _0x25b33b,switchMap as _0x443800}from'rxjs/operators';import{IMEInputManagerService as _0x3524fa,TextSelectionManagerService as _0x200457,serializeTextRange as _0x3dee4a,DocStateChangeManagerService as _0xa21473,SetTextSelectionsOperation as _0x30703b,RichTextEditingMutation as _0x250ba2,getDocObject as _0x1fda07,DocSkeletonManagerService as _0x59817c}from'@univerjs/docs';import{HTTPService as _0x588bfd,WebSocketService as _0x5509e6,IHTTPImplementation as _0x26f8d2,XHRHTTPImplementation as _0x199929,ThresholdInterceptorFactory as _0x3318df}from'@univerjs/network';import{ImageSourceType as _0x356a4c,ImageUploadStatusType as _0x2be5ef,IImageIoService as _0x1f3428}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3fe7cb,serializeRangeWithSheet as _0x1c04be}from'@univerjs/engine-formula';import _0x20a066 from'lodash/debounce';import{Shape as _0x1205b1,Rect as _0x2d9440,Vector2 as _0x4b9227,IRenderManagerService as _0x458795,NodePositionConvertToCursor as _0x7277fa,getColor as _0x57b7c5,TEXT_RANGE_LAYER_INDEX as _0x5e3717,RegularPolygon as _0x530d78}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x21497f,VIEWPORT_KEY as _0x247610,getCoordByCell as _0x4b86c2,getSheetObject as _0xd1a85}from'@univerjs/sheets-ui';import{useDependency as _0x2e2170,connectInjector as _0x4cf379}from'@wendellhu/redi/react-bindings';import _0x43d382,{forwardRef as _0x4c1e67,useRef as _0x2a4631,createElement as _0xc09f89}from'react';import _0x1e7826 from'clsx';import{IRemoteInstanceService as _0x32c3f9}from'@univerjs/rpc';const Wi=_0x35fe9a(0x30e),Gi=_0x35fe9a(0x2e2),Yi=_0x35fe9a(0x3dd),Ki=_0x35fe9a(0x3c9),Xi=0x7d0,Ji=_0x35fe9a(0x294),zi=_0x35fe9a(0x17d),Zi=_0x35fe9a(0x43d),qi=0x7530,Is=_0x35fe9a(0x194),Es=0x2710,Qi=_0x35fe9a(0x2f2),en=0x4e20,tn=_0x35fe9a(0x3d2),sn=0x3,nn='LOCAL_CACHE_INTERVAL',rn=0x3e8,on='COLLAB_SUBMIT_CHANGESET_URL',an=_0x35fe9a(0x424),cn='LOGIN_URL_KEY',hn=_0x35fe9a(0x288);var Cs=(_0x389e05=>(_0x389e05[_0x389e05[_0x35fe9a(0x2d6)]=0x0]=_0x35fe9a(0x2d6),_0x389e05[_0x389e05['OK']=0x1]='OK',_0x389e05[_0x389e05[_0x35fe9a(0x2f4)]=0x2]='INTERNAL_ERROR',_0x389e05[_0x389e05[_0x35fe9a(0x39c)]=0x3]=_0x35fe9a(0x39c),_0x389e05[_0x389e05[_0x35fe9a(0x192)]=0x4]=_0x35fe9a(0x192),_0x389e05[_0x389e05[_0x35fe9a(0x342)]=0x5]=_0x35fe9a(0x342),_0x389e05[_0x389e05['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x389e05[_0x389e05['INVALID_ARGUMENT']=0x7]=_0x35fe9a(0x2a2),_0x389e05[_0x389e05[_0x35fe9a(0x389)]=0x8]=_0x35fe9a(0x389),_0x389e05[_0x389e05[_0x35fe9a(0x3b7)]=0x9]='COMPLETION_FINISHED',_0x389e05[_0x389e05['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x35fe9a(0x3f4),_0x389e05[_0x389e05['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x35fe9a(0x281),_0x389e05[_0x389e05[_0x35fe9a(0x35d)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x389e05[_0x389e05[_0x35fe9a(0x3b6)]=0x1b59]=_0x35fe9a(0x3b6),_0x389e05[_0x389e05[_0x35fe9a(0x31a)]=0x1b5a]=_0x35fe9a(0x31a),_0x389e05[_0x389e05[_0x35fe9a(0x1ba)]=0x1b5b]=_0x35fe9a(0x1ba),_0x389e05[_0x389e05[_0x35fe9a(0x1ad)]=0x1b5c]=_0x35fe9a(0x1ad),_0x389e05[_0x389e05[_0x35fe9a(0x1a8)]=0x1f41]=_0x35fe9a(0x1a8),_0x389e05[_0x389e05[_0x35fe9a(0x374)]=0x2329]=_0x35fe9a(0x374),_0x389e05[_0x389e05['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x35fe9a(0x42c),_0x389e05[_0x389e05[_0x35fe9a(0x1c9)]=0x232b]=_0x35fe9a(0x1c9),_0x389e05[_0x389e05['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x35fe9a(0x1f0),_0x389e05[_0x389e05[_0x35fe9a(0x297)]=0x232d]=_0x35fe9a(0x297),_0x389e05[_0x389e05['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x389e05[_0x389e05[_0x35fe9a(0x1d0)]=0x2712]=_0x35fe9a(0x1d0),_0x389e05[_0x389e05[_0x35fe9a(0x1d1)]=-0x1]=_0x35fe9a(0x1d1),_0x389e05))(Cs||{}),H=(_0x3541c4=>(_0x3541c4[_0x3541c4[_0x35fe9a(0x1d9)]=0x0]=_0x35fe9a(0x1d9),_0x3541c4[_0x3541c4[_0x35fe9a(0x1f2)]=0x1]=_0x35fe9a(0x1f2),_0x3541c4[_0x3541c4[_0x35fe9a(0x339)]=0x2]='UNIVER_SHEET',_0x3541c4[_0x3541c4[_0x35fe9a(0x409)]=0x3]='UNIVER_SLIDE',_0x3541c4[_0x3541c4[_0x35fe9a(0x1d1)]=-0x1]='UNRECOGNIZED',_0x3541c4))(H||{}),I=(_0x5d257c=>(_0x5d257c[_0x5d257c[_0x35fe9a(0x3af)]=0x0]=_0x35fe9a(0x3af),_0x5d257c[_0x5d257c[_0x35fe9a(0x3e0)]=0x1]=_0x35fe9a(0x3e0),_0x5d257c[_0x5d257c[_0x35fe9a(0x308)]=0x2]=_0x35fe9a(0x308),_0x5d257c[_0x5d257c['LEAVE']=0x3]=_0x35fe9a(0x466),_0x5d257c[_0x5d257c[_0x35fe9a(0x2a0)]=0x4]=_0x35fe9a(0x2a0),_0x5d257c[_0x5d257c[_0x35fe9a(0x43e)]=0x5]='HEARTBEAT',_0x5d257c[_0x5d257c[_0x35fe9a(0x429)]=0x6]=_0x35fe9a(0x429),_0x5d257c[_0x5d257c[_0x35fe9a(0x1d1)]=-0x1]=_0x35fe9a(0x1d1),_0x5d257c))(I||{}),Nt=(_0x4fbfb7=>(_0x4fbfb7[_0x4fbfb7[_0x35fe9a(0x408)]=0x0]=_0x35fe9a(0x408),_0x4fbfb7[_0x4fbfb7['OK']=0x1]='OK',_0x4fbfb7[_0x4fbfb7[_0x35fe9a(0x27b)]=0x2]=_0x35fe9a(0x27b),_0x4fbfb7[_0x4fbfb7[_0x35fe9a(0x1d1)]=-0x1]=_0x35fe9a(0x1d1),_0x4fbfb7))(Nt||{}),ln=Object['defineProperty'],_n=Object['getOwnPropertyDescriptor'],un=(_0x46ac4b,_0x2d2cb9,_0x1ae8b0,_0x2d0819)=>{const _0x37e049=_0x35fe9a;for(var _0xe10675=_0x2d0819>0x1?void 0x0:_0x2d0819?_n(_0x2d2cb9,_0x1ae8b0):_0x2d2cb9,_0x25a989=_0x46ac4b[_0x37e049(0x443)]-0x1,_0x419160;_0x25a989>=0x0;_0x25a989--)(_0x419160=_0x46ac4b[_0x25a989])&&(_0xe10675=(_0x2d0819?_0x419160(_0x2d2cb9,_0x1ae8b0,_0xe10675):_0x419160(_0xe10675))||_0xe10675);return _0x2d0819&&_0xe10675&&ln(_0x2d2cb9,_0x1ae8b0,_0xe10675),_0xe10675;},Wt=(_0x50b654,_0x102bd8)=>(_0x38e2f1,_0x3bb15f)=>_0x102bd8(_0x38e2f1,_0x3bb15f,_0x50b654);let ee=class extends _0x2b2023{constructor(_0x489be9,_0x2d1901){const _0x459e6f=_0x35fe9a;super(),l(this,_0x459e6f(0x2dd),new Map()),(this[_0x459e6f(0x262)]=_0x489be9,this['_userManagerService']=_0x2d1901,this['disposeWithMe'](_0x5b60bf(_0x17d598(this[_0x459e6f(0x262)]['getTypeOfUnitDisposed$'](_0x9a39b6[_0x459e6f(0x339)])[_0x459e6f(0x332)](_0x134cb9(_0x30e9df=>_0x30e9df[_0x459e6f(0x22b)]())),this[_0x459e6f(0x262)]['getTypeOfUnitDisposed$'](_0x9a39b6['UNIVER_DOC'])[_0x459e6f(0x332)](_0x134cb9(_0x482809=>_0x482809[_0x459e6f(0x22b)]())),this[_0x459e6f(0x262)][_0x459e6f(0x3d9)](_0x9a39b6[_0x459e6f(0x409)])[_0x459e6f(0x332)](_0x134cb9(_0x46e983=>_0x46e983[_0x459e6f(0x22b)]())))[_0x459e6f(0x40e)](_0x52da91=>this['_removeRoom'](_0x52da91)))));}['setCurrentUser'](_0x1b957e){const _0x3b116c=_0x35fe9a;this[_0x3b116c(0x1ca)]['setCurrentUser'](_0x1b957e);}[_0x35fe9a(0x2d2)](){const _0x29945f=_0x35fe9a;return this[_0x29945f(0x1ca)][_0x29945f(0x2d2)]();}['updateMember'](_0x1308f2,_0x5db50b){const _0x130c36=_0x35fe9a;let _0x49b357=this[_0x130c36(0x2dd)][_0x130c36(0x3e8)](_0x1308f2);_0x49b357||(_0x49b357=new dn(),this[_0x130c36(0x2dd)][_0x130c36(0x445)](_0x1308f2,_0x49b357)),_0x49b357[_0x130c36(0x37c)](_0x5db50b);}[_0x35fe9a(0x387)](_0x4773b9,_0x16b486){const _0x201ec2=_0x35fe9a,_0x5642d3=this[_0x201ec2(0x2dd)][_0x201ec2(0x3e8)](_0x4773b9);_0x5642d3&&_0x5642d3[_0x201ec2(0x387)](_0x16b486);}['getRoom'](_0x10b0df){const _0xe0c1e0=_0x35fe9a;return this[_0xe0c1e0(0x2dd)][_0xe0c1e0(0x3e8)](_0x10b0df);}[_0x35fe9a(0x286)](_0x1e7a3b,_0x3b449c){const _0x4bbe15=_0x35fe9a,_0x2db9b2=this[_0x4bbe15(0x2dd)][_0x4bbe15(0x3e8)](_0x1e7a3b);if(_0x2db9b2)return _0x2db9b2[_0x4bbe15(0x286)](_0x3b449c);}[_0x35fe9a(0x1a1)](_0x5eae4d){const _0x2fe374=_0x35fe9a,_0x3b0270=this[_0x2fe374(0x2dd)]['get'](_0x5eae4d);_0x3b0270&&(_0x3b0270[_0x2fe374(0x264)](),this['_roomMembers'][_0x2fe374(0x46f)](_0x5eae4d));}['dispose'](){const _0x28a8da=_0x35fe9a;this['_roomMembers'][_0x28a8da(0x2b2)](_0x20d849=>_0x20d849[_0x28a8da(0x264)]()),this[_0x28a8da(0x2dd)][_0x28a8da(0x3e9)]();}};ee=un([Wt(0x0,_0x1ffae8),Wt(0x1,_0x5b3e40(_0x570ca3))],ee);class dn extends _0x2b2023{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x5de29f=_0x35fe9a;this['_members'][_0x5de29f(0x3e9)]();}['updateMember'](_0x54740d){const _0x3c537a=_0x35fe9a;this[_0x3c537a(0x191)]['set'](_0x54740d['memberID'],_0x54740d);}[_0x35fe9a(0x387)](_0x5d1a8b){const _0x3c7b15=_0x35fe9a;this[_0x3c7b15(0x191)][_0x3c7b15(0x46f)](_0x5d1a8b);}[_0x35fe9a(0x286)](_0x1f65dc){const _0x1bd5b3=_0x35fe9a;return this['_members'][_0x1bd5b3(0x3e8)](_0x1f65dc);}}function fn(_0x159537){const _0x2d5568=_0x35fe9a;var _0x2b30b4,_0x23b684,_0x2f8215,_0x3b5491;const _0x2dc638=_0x159537[_0x2d5568(0x2c5)],_0x86188a=JSON[_0x2d5568(0x24c)](_0x2dc638);switch(_0x86188a[_0x2d5568(0x34f)]){case I[_0x2d5568(0x43e)]:case I[_0x2d5568(0x3e0)]:{const _0x2ebcbe=_0x86188a[_0x2d5568(0x2c2)];return{..._0x86188a,'data':_0x2ebcbe,'cmd':_0x86188a[_0x2d5568(0x34f)]};}case I[_0x2d5568(0x308)]:{const _0x12d16e=_0x86188a[_0x2d5568(0x1c0)];return{..._0x86188a,'data':_0x12d16e,'cmd':_0x86188a[_0x2d5568(0x34f)]};}case I[_0x2d5568(0x429)]:{const _0x5935b4=_0x86188a['collaMsg'];switch(_0x5935b4['eventID']){case _0x20b5fc['PERMISSION_REJ']:return{..._0x86188a,'data':{..._0x5935b4,'data':(_0x2b30b4=_0x5935b4[_0x2d5568(0x3f1)])==null?void 0x0:_0x2b30b4['cs']},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc['CHANGESET_ACK']:return{..._0x86188a,'data':{..._0x5935b4,'data':(_0x23b684=_0x5935b4[_0x2d5568(0x37f)])==null?void 0x0:_0x23b684['cs']},'cmd':_0x86188a['cmd']};case _0x20b5fc[_0x2d5568(0x178)]:return{..._0x86188a,'data':{..._0x5935b4,'data':(_0x2f8215=_0x5935b4[_0x2d5568(0x280)])==null?void 0x0:_0x2f8215['cs']},'cmd':_0x86188a['cmd']};case _0x20b5fc[_0x2d5568(0x205)]:return{..._0x86188a,'data':{..._0x5935b4,'data':(_0x3b5491=_0x5935b4[_0x2d5568(0x3a3)])==null?void 0x0:_0x3b5491['cs']},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc[_0x2d5568(0x41f)]:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x239)]},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc['USERS_ENTER']:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x43a)]},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc[_0x2d5568(0x42e)]:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x3f7)]},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc[_0x2d5568(0x1f5)]:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x230)]},'cmd':_0x86188a['cmd']};case _0x20b5fc['LIVESHARE_FETCH_OPERATIONS']:case _0x20b5fc[_0x2d5568(0x47b)]:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x304)]},'cmd':_0x86188a['cmd']};case _0x20b5fc['LIVESHARE_TERMINATE']:return{..._0x86188a,'data':{..._0x5935b4,'data':_0x5935b4[_0x2d5568(0x230)]},'cmd':_0x86188a[_0x2d5568(0x34f)]};case _0x20b5fc['MSG_FOR_ERROR']:return{..._0x86188a,'data':_0x5935b4,'cmd':_0x86188a[_0x2d5568(0x34f)]};default:return _0x86188a;}}default:return _0x86188a;}}function gn(_0x4dc980){const _0x35baa0=_0x35fe9a;switch(_0x4dc980[_0x35baa0(0x34f)]){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x35baa0(0x2ea)]({'cmd':_0x4dc980[_0x35baa0(0x34f)],'routeKey':_0x4dc980[_0x35baa0(0x3f3)]});case I[_0x35baa0(0x2a0)]:{let _0x154394;switch(_0x4dc980[_0x35baa0(0x2c5)]['eventID']){case _0x20b5fc[_0x35baa0(0x41f)]:{_0x154394={'eventID':_0x20b5fc[_0x35baa0(0x41f)],'updateCursorEvent':_0x4dc980[_0x35baa0(0x2c5)][_0x35baa0(0x2c5)]};break;}case _0x20b5fc['USERS_LEAVE']:{_0x154394={'eventID':_0x20b5fc['USERS_LEAVE'],'leaveEvent':_0x4dc980[_0x35baa0(0x2c5)][_0x35baa0(0x2c5)]};break;}case _0x20b5fc['USERS_ENTER']:{_0x154394={'eventID':_0x20b5fc['USERS_ENTER'],'joinEvent':_0x4dc980['data']['data']};break;}case _0x20b5fc[_0x35baa0(0x1f5)]:{_0x154394={'eventID':_0x20b5fc[_0x35baa0(0x1f5)],'liveShareNewHost':_0x4dc980['data'][_0x35baa0(0x2c5)]};break;}case _0x20b5fc[_0x35baa0(0x47b)]:{_0x154394={'eventID':_0x20b5fc[_0x35baa0(0x47b)],'liveShareOperation':_0x4dc980['data'][_0x35baa0(0x2c5)]};break;}case _0x20b5fc[_0x35baa0(0x1ed)]:{_0x154394={'eventID':_0x20b5fc['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x4dc980[_0x35baa0(0x2c5)][_0x35baa0(0x2c5)]};break;}case _0x20b5fc[_0x35baa0(0x3ec)]:{_0x154394={'eventID':_0x20b5fc['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x4dc980[_0x35baa0(0x2c5)]['data']};break;}case _0x20b5fc['LIVESHARE_FETCH_OPERATIONS']:{_0x154394={'eventID':_0x20b5fc['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x154394={'eventID':_0x4dc980['data'][_0x35baa0(0x1b6)]};}return JSON[_0x35baa0(0x2ea)]({'cmd':_0x4dc980[_0x35baa0(0x34f)],'routeKey':_0x4dc980[_0x35baa0(0x3f3)],'collaMsg':_0x154394});}case I[_0x35baa0(0x308)]:return JSON['stringify']({'cmd':_0x4dc980[_0x35baa0(0x34f)],'routeKey':_0x4dc980[_0x35baa0(0x3f3)],'joinReq':_0x4dc980[_0x35baa0(0x2c5)]});case I['LEAVE']:return JSON[_0x35baa0(0x2ea)]({'cmd':_0x4dc980[_0x35baa0(0x34f)],'routeKey':_0x4dc980[_0x35baa0(0x3f3)],'leaveReq':_0x4dc980[_0x35baa0(0x2c5)]});default:throw new Error(_0x35baa0(0x267));}}var mn=Object[_0x35fe9a(0x448)],Sn=Object[_0x35fe9a(0x1db)],vn=(_0x5c5774,_0xd9c7b7,_0x2acca8,_0x428e70)=>{const _0x55ca91=_0x35fe9a;for(var _0x52ad0c=_0x428e70>0x1?void 0x0:_0x428e70?Sn(_0xd9c7b7,_0x2acca8):_0xd9c7b7,_0x55e912=_0x5c5774[_0x55ca91(0x443)]-0x1,_0x51de58;_0x55e912>=0x0;_0x55e912--)(_0x51de58=_0x5c5774[_0x55e912])&&(_0x52ad0c=(_0x428e70?_0x51de58(_0xd9c7b7,_0x2acca8,_0x52ad0c):_0x51de58(_0x52ad0c))||_0x52ad0c);return _0x428e70&&_0x52ad0c&&mn(_0xd9c7b7,_0x2acca8,_0x52ad0c),_0x52ad0c;},me=(_0x57ce81,_0x55ad1a)=>(_0x1c6daa,_0x6bd26e)=>_0x55ad1a(_0x1c6daa,_0x6bd26e,_0x57ce81);const bs=_0x83cf67(_0x35fe9a(0x20d));function pn(_0x1a744e,_0x300928,_0x719179){const _0x2ce366=_0x35fe9a;return _0x1a744e+'/'+_0x300928+_0x2ce366(0x220)+_0x719179+_0x2ce366(0x3c1);}let _t=class{constructor(_0x5e872f,_0x5ad8ea,_0x417e2d,_0x4c3410,_0x2f4c0a){const _0x3f9404=_0x35fe9a;this[_0x3f9404(0x32c)]=_0x5e872f,this[_0x3f9404(0x20b)]=_0x5ad8ea,this[_0x3f9404(0x449)]=_0x417e2d,this[_0x3f9404(0x248)]=_0x4c3410,this[_0x3f9404(0x37e)]=_0x2f4c0a;}[_0x35fe9a(0x46a)](_0xeb53d9){const _0x4475cf=_0x35fe9a,_0x137f79=this[_0x4475cf(0x20b)][_0x4475cf(0x46a)](_0xeb53d9);if(!_0x137f79)throw new Error(_0x4475cf(0x2eb));const _0x4f409f=new _0x282665(),_0x5ae02c=new _0x3da7e9();_0x4f409f[_0x4475cf(0x1f1)](_0x5b60bf(_0x137f79['close$'][_0x4475cf(0x40e)](_0x50646e=>_0x5ae02c['next'](_0x50646e)))),_0x4f409f['add'](_0x5b60bf(()=>_0x5ae02c[_0x4475cf(0x2e1)]()));const _0x3ef823=new _0x3da7e9();_0x4f409f['add'](_0x5b60bf(_0x137f79['error$']['subscribe'](_0x569e5b=>_0x3ef823[_0x4475cf(0x3be)](_0x569e5b)))),_0x4f409f[_0x4475cf(0x1f1)](_0x5b60bf(()=>_0x3ef823[_0x4475cf(0x2e1)]()));const _0x24381c=new _0x3da7e9();_0x4f409f['add'](_0x5b60bf(_0x137f79['message$'][_0x4475cf(0x40e)](_0x85cea3=>{const _0x43bbd3=fn(_0x85cea3);_0x24381c['next'](_0x43bbd3);}))),_0x4f409f[_0x4475cf(0x1f1)](_0x5b60bf(()=>_0x24381c[_0x4475cf(0x2e1)]()));const _0x286cd4=()=>{const _0x46edaa=_0x4475cf;_0x3ef823[_0x46edaa(0x3be)](new Event('connection\x20error')),_0x5ae02c[_0x46edaa(0x3be)](new CloseEvent(_0x46edaa(0x36d))),_0xf72b0d['close']();},_0xf72b0d={'memberID':'','close$':_0x5ae02c[_0x4475cf(0x36f)](),'error$':_0x3ef823[_0x4475cf(0x36f)](),'open$':_0x137f79[_0x4475cf(0x40a)],'message$':_0x24381c['asObservable'](),'send':_0x46f75b=>{const _0x476ba8=_0x4475cf;if(_0x46f75b[_0x476ba8(0x34f)]===I[_0x476ba8(0x2a0)]){if(_0x46f75b[_0x476ba8(0x2c5)][_0x476ba8(0x1b6)]===_0x20b5fc[_0x476ba8(0x1b1)]){this['_submitChangeset'](_0xf72b0d,_0x46f75b[_0x476ba8(0x2c5)])[_0x476ba8(0x18f)](_0x1ecf90=>{const _0x1ac14c=_0x476ba8;this[_0x1ac14c(0x248)][_0x1ac14c(0x185)](_0x1ecf90),_0x286cd4();});return;}if(_0x46f75b['data']['eventID']===_0x20b5fc[_0x476ba8(0x20a)]){const _0x5a870a=_0x46f75b[_0x476ba8(0x2c5)];this[_0x476ba8(0x257)](_0x5a870a)['then'](_0x13446a=>{const _0x4295d0=_0x476ba8;_0x24381c[_0x4295d0(0x3be)]({'cmd':I[_0x4295d0(0x429)],'code':Nt['OK'],'routeKey':_0x5a870a['data'][_0x4295d0(0x19e)],'routeType':'','data':{'eventID':_0x20b5fc['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x13446a}}});})[_0x476ba8(0x18f)](_0x5dbc1c=>{const _0x29ea6e=_0x476ba8;this[_0x29ea6e(0x248)]['error'](_0x5dbc1c),_0x286cd4();});return;}}_0x137f79['send'](gn(_0x46f75b));},'close':()=>{_0x137f79['close'](),_0x4f409f['dispose']();}};return _0xf72b0d;}async[_0x35fe9a(0x2f8)](_0x26a89d,_0x257ecf){const _0x41ac2c=_0x35fe9a;var _0x1800e1;const {unitType:_0x33266d,unitID:_0xa3e3c4,changeset:_0x45c28d}=_0x257ecf[_0x41ac2c(0x2c5)],_0x184ded={'unitID':_0xa3e3c4,'memberID':_0x26a89d[_0x41ac2c(0x311)],'type':_0x33266d,'changeset':_0x45ae1b(_0x45c28d)},_0x3bf383=pn((_0x1800e1=this[_0x41ac2c(0x449)][_0x41ac2c(0x358)](on))!=null?_0x1800e1:an,_0x33266d,_0xa3e3c4);try{await this[_0x41ac2c(0x32c)]['post'](_0x3bf383,{'body':_0x184ded});}catch(_0x10e9e7){throw this[_0x41ac2c(0x248)][_0x41ac2c(0x185)](_0x41ac2c(0x38d),_0x41ac2c(0x1a5)),_0x10e9e7;}}async[_0x35fe9a(0x257)](_0x15cc80){const _0x4aa42f=_0x35fe9a,{unitID:_0x43f2d8,from:_0x3b50fb,to:_0x5da3d6,unitType:_0x41405c}=_0x15cc80[_0x4aa42f(0x2c5)];return(await this[_0x4aa42f(0x37e)][_0x4aa42f(0x3c5)]({'metadata':void 0x0},{'unitID':_0x43f2d8,'type':_0x41405c,'from':_0x3b50fb,'to':_0x5da3d6}))['changesets'];}};_t=vn([me(0x0,_0x5b3e40(_0x588bfd)),me(0x1,_0x5b3e40(_0x5509e6)),me(0x2,_0x4e019d),me(0x3,_0x294e85),me(0x4,_0x1f3aa6)],_t);var In=Object[_0x35fe9a(0x448)],En=Object[_0x35fe9a(0x1db)],Rs=(_0x38c7f9,_0x514e07,_0xf4039a,_0x41ec8a)=>{const _0x27fa50=_0x35fe9a;for(var _0x190325=_0x41ec8a>0x1?void 0x0:_0x41ec8a?En(_0x514e07,_0xf4039a):_0x514e07,_0x474f5a=_0x38c7f9[_0x27fa50(0x443)]-0x1,_0x158df0;_0x474f5a>=0x0;_0x474f5a--)(_0x158df0=_0x38c7f9[_0x474f5a])&&(_0x190325=(_0x41ec8a?_0x158df0(_0x514e07,_0xf4039a,_0x190325):_0x158df0(_0x190325))||_0x190325);return _0x41ec8a&&_0x190325&&In(_0x514e07,_0xf4039a,_0x190325),_0x190325;},M=(_0x5cd5b9,_0x2dacfb)=>(_0x53ddd9,_0x41fa3d)=>_0x2dacfb(_0x53ddd9,_0x41fa3d,_0x5cd5b9),_e=(_0x1f46c5=>(_0x1f46c5[_0x1f46c5[_0x35fe9a(0x3ab)]=0x0]=_0x35fe9a(0x3ab),_0x1f46c5[_0x1f46c5[_0x35fe9a(0x439)]=0x1]=_0x35fe9a(0x439),_0x1f46c5[_0x1f46c5[_0x35fe9a(0x2e8)]=0x2]=_0x35fe9a(0x2e8),_0x1f46c5[_0x1f46c5[_0x35fe9a(0x3fc)]=0x3]=_0x35fe9a(0x3fc),_0x1f46c5))(_e||{});let ut=class extends _0x2f203c{constructor(_0x130c5d,_0x5d6a15,_0x5d09f6,_0x14f973,_0x588560,_0x14e065,_0x22e032,_0x5e1111){const _0x502b5d=_0x35fe9a;super(),l(this,_0x502b5d(0x16c),new _0x316dfa(0x0)),l(this,'sessionStatus$',this[_0x502b5d(0x16c)][_0x502b5d(0x36f)]()),l(this,_0x502b5d(0x451),new _0x3da7e9()),l(this,_0x502b5d(0x3c4),this[_0x502b5d(0x451)][_0x502b5d(0x36f)]()),l(this,_0x502b5d(0x370)),l(this,'_socketMessageSubscription'),l(this,_0x502b5d(0x22e)),(this['_unitID']=_0x130c5d,this['_logService']=_0x5d09f6,this['_beforeCloseService']=_0x14f973,this[_0x502b5d(0x3a2)]=_0x588560,this['_configService']=_0x14e065,this[_0x502b5d(0x480)]=_0x22e032,this[_0x502b5d(0x367)]=_0x5e1111,_0x5d6a15[_0x502b5d(0x332)](_0x479f07(this[_0x502b5d(0x3b0)]))['subscribe'](_0x38a00f=>{const _0x1fd1f7=_0x502b5d;var _0x29e819;typeof _0x38a00f>'u'||(this[_0x1fd1f7(0x370)]=_0x38a00f,_0x38a00f?(this[_0x1fd1f7(0x307)](_0x38a00f),this[_0x1fd1f7(0x251)]=this[_0x1fd1f7(0x370)]['message$'][_0x1fd1f7(0x40e)](_0x316d4f=>{const _0x36bd35=_0x1fd1f7;_0x316d4f['routeKey']===this[_0x36bd35(0x397)]&&this[_0x36bd35(0x2ca)](_0x316d4f);})):(this[_0x1fd1f7(0x16c)][_0x1fd1f7(0x3be)](0x2),(_0x29e819=this[_0x1fd1f7(0x251)])==null||_0x29e819[_0x1fd1f7(0x3e6)](),this[_0x1fd1f7(0x251)]=null));}),this['disposeWithMe'](this[_0x502b5d(0x30f)][_0x502b5d(0x3a0)](()=>{const _0x391006=_0x502b5d;var _0x20cae7;(_0x20cae7=this['_socket'])==null||_0x20cae7[_0x391006(0x36c)]({'cmd':I[_0x391006(0x466)],'data':{'roomID':this[_0x391006(0x397)]}});})));}get['sessionStatus'](){const _0x12be27=_0x35fe9a;return this['_sessionStatus$'][_0x12be27(0x293)]();}[_0x35fe9a(0x3e4)](){var _0x499792,_0xa5c9a8;return(_0xa5c9a8=(_0x499792=this['_socket'])==null?void 0x0:_0x499792['memberID'])!=null?_0xa5c9a8:null;}['dispose'](){const _0x121571=_0x35fe9a;super['dispose'](),this[_0x121571(0x3b0)]['next'](),this['dispose$'][_0x121571(0x2e1)]();}[_0x35fe9a(0x2ca)](_0x28dc7b){const _0x5a7de7=_0x35fe9a;_0x28dc7b[_0x5a7de7(0x34f)]===I[_0x5a7de7(0x308)]?this[_0x5a7de7(0x1e3)](_0x28dc7b):_0x28dc7b[_0x5a7de7(0x34f)]===I[_0x5a7de7(0x429)]&&this[_0x5a7de7(0x2ed)](_0x28dc7b);}[_0x35fe9a(0x307)](_0x5da316){const _0x1feaad=_0x35fe9a;this[_0x1feaad(0x16c)][_0x1feaad(0x3be)](0x1),_0x5da316[_0x1feaad(0x36c)]({'cmd':I[_0x1feaad(0x308)],'routeKey':this[_0x1feaad(0x397)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1feaad(0x397)]}]}});}[_0x35fe9a(0x1e3)](_0x52ff3e){const _0xa162b0=_0x35fe9a;var _0x3e4b70;if(_0x52ff3e[_0xa162b0(0x19d)]===Nt[_0xa162b0(0x27b)]){this[_0xa162b0(0x3a2)][_0xa162b0(0x18c)]({'type':_0x1b5516[_0xa162b0(0x353)],'content':this['_localeService']['t']('session.room-full')}),this['_sessionStatus$'][_0xa162b0(0x3be)](0x2);return;}this[_0xa162b0(0x16c)][_0xa162b0(0x3be)](0x3);const _0xe204a2=(_0x3e4b70=_0x52ff3e[_0xa162b0(0x2c5)][_0xa162b0(0x275)][this['_unitID']])==null?void 0x0:_0x3e4b70['members'];_0xe204a2&&_0xe204a2['forEach'](_0x3f8344=>this[_0xa162b0(0x367)][_0xa162b0(0x37c)](this[_0xa162b0(0x397)],_0x3f8344));}[_0x35fe9a(0x2ed)](_0x13e344){const _0x286d70=_0x35fe9a;try{const _0xd2c3e2=_0x13e344[_0x286d70(0x2c5)];switch(_0xd2c3e2['eventID']){case _0x20b5fc[_0x286d70(0x16e)]:this[_0x286d70(0x3e3)](_0xd2c3e2),this[_0x286d70(0x451)][_0x286d70(0x3be)](_0xd2c3e2);break;case _0x20b5fc[_0x286d70(0x42e)]:this[_0x286d70(0x436)](_0xd2c3e2),this[_0x286d70(0x451)][_0x286d70(0x3be)](_0xd2c3e2);break;case _0x20b5fc[_0x286d70(0x315)]:this[_0x286d70(0x2d4)](),this[_0x286d70(0x451)][_0x286d70(0x3be)](_0xd2c3e2);break;case _0x20b5fc[_0x286d70(0x3d8)]:this[_0x286d70(0x248)][_0x286d70(0x185)](_0x286d70(0x29e)+JSON[_0x286d70(0x2ea)](_0xd2c3e2)),this[_0x286d70(0x451)][_0x286d70(0x3be)](_0xd2c3e2);break;default:this[_0x286d70(0x451)][_0x286d70(0x3be)](_0xd2c3e2);}}catch(_0x32295b){this[_0x286d70(0x248)][_0x286d70(0x185)](_0x32295b,_0x13e344);}}['_onUserJoin'](_0x363e0a){const _0x304ba5=_0x35fe9a;this[_0x304ba5(0x367)][_0x304ba5(0x37c)](this[_0x304ba5(0x397)],_0x363e0a[_0x304ba5(0x2c5)]);}[_0x35fe9a(0x436)](_0x4450cd){const _0x191573=_0x35fe9a;this[_0x191573(0x367)]['removeMember'](this[_0x191573(0x397)],_0x4450cd[_0x191573(0x2c5)]['memberID']);}async[_0x35fe9a(0x36c)](_0x277557,_0x326a82){const _0x437fc4=_0x35fe9a;if(this[_0x437fc4(0x1d5)]!==0x3||!this['_socket'])throw new Error(_0x437fc4(0x2c9));try{_0x277557[_0x437fc4(0x1b6)]===_0x20b5fc['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x437fc4(0x370)][_0x437fc4(0x36c)]({'cmd':I['INGEST'],'routeKey':_0x326a82,'routeType':'','data':_0x277557});}catch(_0x23affc){this['_logService']['error'](_0x23affc);}}[_0x35fe9a(0x18b)](){const _0x56f5d5=_0x35fe9a;var _0x5f6497;this[_0x56f5d5(0x22e)]=window[_0x56f5d5(0x1d7)](()=>{const _0xc4c26a=_0x56f5d5;this[_0xc4c26a(0x22e)]=null,this[_0xc4c26a(0x3a2)][_0xc4c26a(0x18c)]({'type':_0x1b5516[_0xc4c26a(0x33d)],'content':this[_0xc4c26a(0x480)]['t']('session.collaboration-timeout')});},(_0x5f6497=this['_configService']['getConfig'](Is))!=null?_0x5f6497:Es);}[_0x35fe9a(0x2d4)](){const _0x3380a8=_0x35fe9a;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x3380a8(0x22e)]=null);}};ut=Rs([M(0x2,_0x294e85),M(0x3,_0x551edb),M(0x4,_0x22dc6a),M(0x5,_0x4e019d),M(0x6,_0x5b3e40(_0x210cec)),M(0x7,_0x5b3e40(ee))],ut);function _0x2564(_0xcc8570,_0xc7ce21){const _0x4643dc=_0x4643();return _0x2564=function(_0x25644e,_0x252828){_0x25644e=_0x25644e-0x16c;let _0x26c994=_0x4643dc[_0x25644e];return _0x26c994;},_0x2564(_0xcc8570,_0xc7ce21);}let Re=class extends _0x2b2023{constructor(_0xb71562,_0x513028,_0x2ca4d7,_0x220048,_0xcc5aaf,_0x5d9b09){const _0x587d2b=_0x35fe9a;super(),l(this,_0x587d2b(0x3a5),new _0x316dfa(void 0x0)),l(this,_0x587d2b(0x21e),new Map()),l(this,_0x587d2b(0x186),new _0x316dfa(0x0)),l(this,'status$',this[_0x587d2b(0x186)]['asObservable']()),l(this,'_socketReady',!0x1),l(this,_0x587d2b(0x38a)),l(this,'_timeoutTimer'),l(this,_0x587d2b(0x37b)),l(this,'_retryCount',0x0),(this[_0x587d2b(0x325)]=_0xb71562,this[_0x587d2b(0x480)]=_0x513028,this[_0x587d2b(0x3a2)]=_0x2ca4d7,this[_0x587d2b(0x248)]=_0x220048,this[_0x587d2b(0x449)]=_0xcc5aaf,this[_0x587d2b(0x20c)]=_0x5d9b09);}get[_0x35fe9a(0x370)](){const _0x46f133=_0x35fe9a;return this[_0x46f133(0x3a5)][_0x46f133(0x293)]();}[_0x35fe9a(0x264)](){const _0x24463d=_0x35fe9a;super['dispose'](),this[_0x24463d(0x21e)][_0x24463d(0x2b2)](_0x5add0d=>_0x5add0d[_0x24463d(0x264)]()),this[_0x24463d(0x21e)]['clear'](),this[_0x24463d(0x186)][_0x24463d(0x2e1)]();}async[_0x35fe9a(0x2ef)](_0x476c8e){const _0x3974a6=_0x35fe9a;if(this['_sessions'][_0x3974a6(0x189)](_0x476c8e))return this[_0x3974a6(0x21e)][_0x3974a6(0x3e8)](_0x476c8e);this[_0x3974a6(0x43c)]();const _0x44fb1f=this['_injector'][_0x3974a6(0x26b)](ut,_0x476c8e,this[_0x3974a6(0x3a5)][_0x3974a6(0x36f)]());return this[_0x3974a6(0x21e)]['set'](_0x476c8e,_0x44fb1f),_0x44fb1f;}[_0x35fe9a(0x30d)](){var _0x266e5a;const _0x28d13c=(_0x266e5a=this['_configService']['getConfig'](Ji))!=null?_0x266e5a:zi;return this['_socketService']['createSocket'](_0x28d13c);}['_tryEnsureSocket'](){const _0x3a31a3=_0x35fe9a;try{const _0x5477c3=this[_0x3a31a3(0x30d)]();if(_0x5477c3){const _0x3b9881=_0x5477c3[_0x3a31a3(0x36c)];_0x5477c3['send']=_0x549609=>(this[_0x3a31a3(0x331)](),_0x3b9881[_0x3a31a3(0x22d)](_0x5477c3,[_0x549609])),_0x5477c3[_0x3a31a3(0x43b)][_0x3a31a3(0x40e)](_0x176f56=>this['_onMessage'](_0x5477c3,_0x176f56)),_0x5477c3['error$'][_0x3a31a3(0x332)](_0x403f5b(0x1))[_0x3a31a3(0x40e)](_0x53dbce=>this[_0x3a31a3(0x248)]['error'](_0x3a31a3(0x34a),_0x53dbce)),_0x5477c3[_0x3a31a3(0x40a)][_0x3a31a3(0x332)](_0x403f5b(0x1))['subscribe'](()=>{const _0x25fa9f=_0x3a31a3;this[_0x25fa9f(0x1e7)](_0x5477c3);}),_0x5477c3[_0x3a31a3(0x2ba)][_0x3a31a3(0x332)](_0x403f5b(0x1))['subscribe'](_0x4f4655=>{const _0x22a2e2=_0x3a31a3;this[_0x22a2e2(0x248)]['debug']('[CollaborationSessionService]',_0x22a2e2(0x2f0),_0x4f4655),this[_0x22a2e2(0x1aa)]();});}}catch(_0x2532d0){this[_0x3a31a3(0x248)][_0x3a31a3(0x185)](_0x2532d0),this[_0x3a31a3(0x1aa)]();}}['_onConnectionOpen'](_0x39ae89){const _0x37af0b=_0x35fe9a;this['_logService'][_0x37af0b(0x28f)]('[CollaborationSessionService]',_0x37af0b(0x469)),_0x39ae89[_0x37af0b(0x36c)]({'cmd':I[_0x37af0b(0x3e0)]}),this['_rescheduleHeartbeatEvent']();}[_0x35fe9a(0x1aa)](){const _0x32d039=_0x35fe9a;var _0x37891f;this[_0x32d039(0x186)][_0x32d039(0x3be)](0x2),this[_0x32d039(0x3a5)]['next'](null),this[_0x32d039(0x3f9)](),this[_0x32d039(0x274)](),this[_0x32d039(0x23f)]=!0x1,this[_0x32d039(0x2a3)]<((_0x37891f=this['_configService'][_0x32d039(0x358)](tn))!=null?_0x37891f:sn)?(this[_0x32d039(0x1fb)](this[_0x32d039(0x2a3)]),this['_retryCount']+=0x1):this['_messageService'][_0x32d039(0x18c)]({'type':_0x1b5516[_0x32d039(0x33d)],'content':this['_localeService']['t'](_0x32d039(0x3a8))});}[_0x35fe9a(0x1fb)](_0x1a5f10){const _0x1ce5d1=_0x35fe9a;var _0x3f76fe;const _0x11e44b=((_0x3f76fe=this[_0x1ce5d1(0x449)][_0x1ce5d1(0x358)](Qi))!=null?_0x3f76fe:en)*0x2**_0x1a5f10;this[_0x1ce5d1(0x3a2)][_0x1ce5d1(0x18c)]({'type':_0x1b5516['Warning'],'content':this['_localeService']['t'](_0x1ce5d1(0x412))}),this[_0x1ce5d1(0x37b)]=setTimeout(()=>{const _0x26650c=_0x1ce5d1;this[_0x26650c(0x43c)](),clearTimeout(this['_retryConnectingTimer']),this[_0x26650c(0x37b)]=null;},_0x11e44b);}[_0x35fe9a(0x331)](){const _0x368d49=_0x35fe9a;var _0x1b98c4;this[_0x368d49(0x274)](),this[_0x368d49(0x38a)]=setTimeout(()=>this[_0x368d49(0x476)](),(_0x1b98c4=this['_configService'][_0x368d49(0x358)](Zi))!=null?_0x1b98c4:qi);}[_0x35fe9a(0x476)](){const _0x58103b=_0x35fe9a;this['_socket'][_0x58103b(0x36c)]({'cmd':I[_0x58103b(0x43e)]}),this[_0x58103b(0x379)]();}[_0x35fe9a(0x379)](){const _0x514f5a=_0x35fe9a;var _0x22448e;this[_0x514f5a(0x223)]=setTimeout(()=>this[_0x514f5a(0x1aa)](),(_0x22448e=this[_0x514f5a(0x449)][_0x514f5a(0x358)](Is))!=null?_0x22448e:Es);}['_onMessage'](_0x21ae3f,_0x2d34bd){const _0x395d58=_0x35fe9a,{cmd:_0x480dd3}=_0x2d34bd;_0x480dd3===I['HELLO']&&!this[_0x395d58(0x23f)]&&(_0x21ae3f[_0x395d58(0x311)]=_0x2d34bd['data'][_0x395d58(0x311)],this[_0x395d58(0x3a5)][_0x395d58(0x3be)](_0x21ae3f),this[_0x395d58(0x186)]['next'](0x3),this[_0x395d58(0x23f)]=!0x0),_0x480dd3===I[_0x395d58(0x43e)]&&this[_0x395d58(0x3f9)](),this[_0x395d58(0x331)]();}[_0x35fe9a(0x274)](){const _0x3bd114=_0x35fe9a;this[_0x3bd114(0x38a)]!=null&&(clearTimeout(this[_0x3bd114(0x38a)]),this[_0x3bd114(0x38a)]=null);}[_0x35fe9a(0x3f9)](){const _0x236046=_0x35fe9a;this[_0x236046(0x223)]!=null&&(clearTimeout(this[_0x236046(0x223)]),this[_0x236046(0x223)]=null);}};Re=Rs([M(0x0,_0x5b3e40(_0x331eca)),M(0x1,_0x5b3e40(_0x210cec)),M(0x2,_0x22dc6a),M(0x3,_0x294e85),M(0x4,_0x4e019d),M(0x5,bs)],Re);var Cn=Object[_0x35fe9a(0x448)],bn=Object[_0x35fe9a(0x1db)],Rn=(_0x59aeef,_0x47042d,_0x5eb851,_0x198d0e)=>{const _0x2f8cec=_0x35fe9a;for(var _0x1a9087=_0x198d0e>0x1?void 0x0:_0x198d0e?bn(_0x47042d,_0x5eb851):_0x47042d,_0x25b95f=_0x59aeef[_0x2f8cec(0x443)]-0x1,_0x402bfc;_0x25b95f>=0x0;_0x25b95f--)(_0x402bfc=_0x59aeef[_0x25b95f])&&(_0x1a9087=(_0x198d0e?_0x402bfc(_0x47042d,_0x5eb851,_0x1a9087):_0x402bfc(_0x1a9087))||_0x1a9087);return _0x198d0e&&_0x1a9087&&Cn(_0x47042d,_0x5eb851,_0x1a9087),_0x1a9087;},Se=(_0x47fb72,_0x124b5d)=>(_0x2c9f0c,_0x47825d)=>_0x124b5d(_0x2c9f0c,_0x47825d,_0x47fb72);let D=class extends _0x2b2023{constructor(_0x189e88,_0x150fb3,_0x36c0cb,_0x2f2137,_0x40c6dd){const _0x20d432=_0x35fe9a;super(),l(this,'_cachedData',new Map()),l(this,_0x20d432(0x1b4),new Map()),l(this,_0x20d432(0x2d7),!0x1),(this[_0x20d432(0x449)]=_0x189e88,this[_0x20d432(0x1f9)]=_0x150fb3,this['_beforeCloseService']=_0x36c0cb,this['_localeService']=_0x2f2137,this['_revisionService']=_0x40c6dd,this['_setupBeforeClosingHandler']());}[_0x35fe9a(0x3a1)](){const _0x40cf79=_0x35fe9a;this[_0x40cf79(0x2d7)]=!0x0;}[_0x35fe9a(0x1c4)](){this['_disabled']=!0x1;}[_0x35fe9a(0x264)](){const _0x4b5f6b=_0x35fe9a;this[_0x4b5f6b(0x259)]()[_0x4b5f6b(0x375)](()=>super[_0x4b5f6b(0x264)]());}async[_0x35fe9a(0x299)](_0x1358dd){const _0x516859=_0x35fe9a;return this['_disabled']?null:this[_0x516859(0x1f9)]['getItem'](Gt(_0x1358dd));}async[_0x35fe9a(0x1f8)](_0x70b31f,_0xdc6612){const _0x52df53=_0x35fe9a;return!!this[_0x52df53(0x1f9)][_0x52df53(0x444)](_0x70b31f,_0xdc6612);}['updateOfflineData'](_0x1fe20c,_0x2b709e,_0x4f9f76,_0x719d6b){const _0x237906=_0x35fe9a,_0x1e7121=this[_0x237906(0x398)][_0x237906(0x1ae)](_0x1fe20c);this[_0x237906(0x22c)][_0x237906(0x445)](_0x1fe20c,{'unitID':_0x1fe20c,'type':_0x2b709e,'awaitingChangeset':_0x4f9f76,'mutations':_0x719d6b,'rev':_0x1e7121}),this['_saveTaskMap'][_0x237906(0x189)](_0x1fe20c)||this[_0x237906(0x3bb)](_0x1fe20c);}[_0x35fe9a(0x3bb)](_0x41f399){const _0x6b78ae=_0x35fe9a,_0x11c688=this[_0x6b78ae(0x19f)]();_0x11c688===0x0?this[_0x6b78ae(0x3ea)](_0x41f399):this[_0x6b78ae(0x1b4)]['set'](_0x41f399,setTimeout(()=>this[_0x6b78ae(0x3ea)](_0x41f399),_0x11c688));}[_0x35fe9a(0x19f)](){const _0xbceae7=_0x35fe9a;var _0x3e72d0;return(_0x3e72d0=this[_0xbceae7(0x449)]['getConfig'](nn))!=null?_0x3e72d0:rn;}['_saveCache'](_0x6474c){const _0x2cd054=_0x35fe9a,_0x5e3bac=this[_0x2cd054(0x1b4)][_0x2cd054(0x3e8)](_0x6474c);return _0x5e3bac!==void 0x0&&window[_0x2cd054(0x197)](_0x5e3bac),this[_0x2cd054(0x1f9)][_0x2cd054(0x444)](Gt(_0x6474c),this[_0x2cd054(0x22c)][_0x2cd054(0x3e8)](_0x6474c))[_0x2cd054(0x375)](()=>this['_saveTaskMap'][_0x2cd054(0x46f)](_0x6474c));}async[_0x35fe9a(0x259)](){const _0xd02bc=_0x35fe9a,_0x394601=[];this['_saveTaskMap'][_0xd02bc(0x2b2)]((_0x294234,_0x56b3cf)=>{const _0x2cc3e6=_0xd02bc;window[_0x2cc3e6(0x197)](_0x294234),_0x394601['push'](this['_saveCache'](_0x56b3cf)['then'](()=>{const _0x157c01=_0x2cc3e6;this[_0x157c01(0x1b4)][_0x157c01(0x46f)](_0x56b3cf);}));}),await Promise['all'](_0x394601);}['_setupBeforeClosingHandler'](){const _0x113cb5=_0x35fe9a;this['disposeWithMe'](this['_beforeCloseService'][_0x113cb5(0x16d)](()=>{const _0x25dc41=_0x113cb5;if(this[_0x25dc41(0x1b4)][_0x25dc41(0x2a8)])return this['_localeService']['t'](_0x25dc41(0x2b7));}));}};D=Rn([Se(0x0,_0x4e019d),Se(0x1,_0x42b234),Se(0x2,_0x551edb),Se(0x3,_0x5b3e40(_0x210cec)),Se(0x4,_0x5b3e40(_0x53eb10))],D);function Gt(_0x32cc6e){const _0x54ff89=_0x35fe9a;return _0x54ff89(0x1b7)+_0x32cc6e;}const Xe=_0x83cf67(_0x35fe9a(0x3d4));var Ts=(_0x14a2e6=>(_0x14a2e6[_0x14a2e6['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x35fe9a(0x47c),_0x14a2e6[_0x14a2e6[_0x35fe9a(0x416)]=0x1]=_0x35fe9a(0x416),_0x14a2e6))(Ts||{});const Yt=0x7530,Kt=_0x35fe9a(0x20e);class Tn extends _0x2b2023{constructor(){const _0x3bafa3=_0x35fe9a;super(),l(this,_0x3bafa3(0x23d),_0x295a4b['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,_0x3bafa3(0x1c5),new Map()),l(this,_0x3bafa3(0x3cf),null),l(this,_0x3bafa3(0x41a),new Map()),l(this,_0x3bafa3(0x39f),new Map()),this[_0x3bafa3(0x31f)]();}[_0x35fe9a(0x264)](){const _0x581520=_0x35fe9a;super[_0x581520(0x264)](),this[_0x581520(0x41a)][_0x581520(0x2b2)]((_0x5c8919,_0x4db45b)=>this[_0x581520(0x418)](_0x4db45b)),this[_0x581520(0x3cf)]&&window[_0x581520(0x47f)](this[_0x581520(0x3cf)]);}[_0x35fe9a(0x1b0)](_0x5f1bea){const _0x58d48b=_0x35fe9a;return this[_0x58d48b(0x2ee)](_0x5f1bea)[_0x58d48b(0x332)](_0x199d88());}['editingUnit'](_0x83695c){const _0x2b1d34=_0x35fe9a;this[_0x2b1d34(0x390)]['size']===0x0&&this[_0x2b1d34(0x3c8)](),this[_0x2b1d34(0x390)][_0x2b1d34(0x1f1)](_0x83695c),this[_0x2b1d34(0x43f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x83695c],'isForwarded':!0x1});}['disposeUnit'](_0x28435a){const _0x7f01f0=_0x35fe9a;this[_0x7f01f0(0x390)][_0x7f01f0(0x46f)](_0x28435a),this[_0x7f01f0(0x390)][_0x7f01f0(0x2a8)]===0x0&&this[_0x7f01f0(0x3cf)]&&window[_0x7f01f0(0x47f)](this[_0x7f01f0(0x3cf)]);}[_0x35fe9a(0x31f)](){const _0x467ec7=_0x35fe9a;this[_0x467ec7(0x382)](_0x5b60bf(_0x4ba866(window,_0x467ec7(0x327))[_0x467ec7(0x40e)](_0x10d158=>{const _0x33b02b=_0x467ec7;if(_0x10d158[_0x33b02b(0x263)]!==Kt||!_0x10d158[_0x33b02b(0x357)])return;const _0x5558fe=JSON['parse'](_0x10d158[_0x33b02b(0x357)]);this['_handleEvent'](_0x5558fe);}))),window['addEventListener']('unload',()=>this[_0x467ec7(0x43f)]({'type':0x1,'memberID':this[_0x467ec7(0x23d)],'unitIDs':Array['from'](this[_0x467ec7(0x390)])}));}[_0x35fe9a(0x38b)](_0x11e5c4){const _0xf7d5fb=_0x35fe9a;switch(_0x11e5c4['type']){case 0x0:this[_0xf7d5fb(0x333)](_0x11e5c4);break;case 0x1:this[_0xf7d5fb(0x182)](_0x11e5c4);break;case 0x2:this['_handleHeartbeatEvent'](_0x11e5c4);break;}}[_0x35fe9a(0x333)](_0x1a65a7){const _0x4aae0c=_0x35fe9a,{unitIDs:_0x1d1b74,memberID:_0xc8f1bf,isForwarded:_0x2bd8b5}=_0x1a65a7;_0x1d1b74[_0x4aae0c(0x2b2)](_0x2bd9fc=>{const _0x5a44cb=_0x4aae0c;if(!_0x2bd8b5&&this['_unitOnClients'][_0x5a44cb(0x189)](_0x2bd9fc)&&this['_ensureSubject'](_0x2bd9fc)[_0x5a44cb(0x3be)](0x1),!this[_0x5a44cb(0x1c5)][_0x5a44cb(0x189)](_0x2bd9fc)||!this[_0x5a44cb(0x1c5)][_0x5a44cb(0x3e8)](_0x2bd9fc)[_0x5a44cb(0x189)](_0xc8f1bf)){const _0x166960=this['_unitOnClients']['get'](_0x2bd9fc)||new Set();_0x166960[_0x5a44cb(0x1f1)](_0xc8f1bf),this[_0x5a44cb(0x1c5)][_0x5a44cb(0x445)](_0x2bd9fc,_0x166960),this[_0x5a44cb(0x3e7)](_0xc8f1bf);}}),_0x2bd8b5||this['_send']({'type':0x0,'memberID':this[_0x4aae0c(0x23d)],'unitIDs':[...this[_0x4aae0c(0x390)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x585ed3){const _0x1af648=_0x35fe9a;this[_0x1af648(0x418)](_0x585ed3);const _0x4d3933=window['setTimeout'](()=>{const _0x45fe77=_0x1af648;this[_0x45fe77(0x1c5)][_0x45fe77(0x2b2)](_0x556a70=>{_0x556a70['delete'](_0x585ed3);});},Yt*0x2);this[_0x1af648(0x41a)]['set'](_0x585ed3,_0x4d3933);}[_0x35fe9a(0x418)](_0x21428c){const _0x5108ae=_0x35fe9a;if(this[_0x5108ae(0x41a)][_0x5108ae(0x189)](_0x21428c)){const _0x1ffda=this[_0x5108ae(0x41a)][_0x5108ae(0x3e8)](_0x21428c);_0x1ffda&&window[_0x5108ae(0x197)](_0x1ffda),this[_0x5108ae(0x41a)][_0x5108ae(0x445)](_0x21428c,null);}}['_handleLeaveEvent'](_0x28a97f){const _0x5ae6f9=_0x35fe9a,{memberID:_0x37aef0,unitIDs:_0x421f3b}=_0x28a97f;_0x421f3b[_0x5ae6f9(0x2b2)](_0x2ea7e8=>{const _0x295acb=_0x5ae6f9;var _0x3f5b51;const _0x32dfad=this[_0x295acb(0x1c5)][_0x295acb(0x3e8)](_0x2ea7e8);_0x32dfad&&(_0x32dfad[_0x295acb(0x46f)](_0x37aef0),(_0x3f5b51=this[_0x295acb(0x2ee)](_0x2ea7e8))==null||_0x3f5b51[_0x295acb(0x3be)](_0x32dfad[_0x295acb(0x2a8)]===0x0?0x0:0x1));}),this[_0x5ae6f9(0x418)](_0x37aef0);}[_0x35fe9a(0x241)](_0x3b7b11){const _0xda9e9d=_0x35fe9a;this[_0xda9e9d(0x3e7)](_0x3b7b11[_0xda9e9d(0x311)]);}[_0x35fe9a(0x43f)](_0x263ffb){const _0x2129e1=_0x35fe9a;localStorage['setItem'](Kt,JSON[_0x2129e1(0x2ea)](_0x263ffb));}['_scheduleHeartbeat'](){const _0x3d7488=_0x35fe9a;this[_0x3d7488(0x3cf)]=window[_0x3d7488(0x3db)](()=>{const _0x15c7d4=_0x3d7488;this[_0x15c7d4(0x43f)]({'type':0x2,'memberID':this[_0x15c7d4(0x23d)]});},Yt);}['_ensureSubject'](_0x3bef64){const _0x9502c=_0x35fe9a;return this['_unitStatus']['has'](_0x3bef64)||this[_0x9502c(0x39f)][_0x9502c(0x445)](_0x3bef64,new _0x316dfa(0x0)),this[_0x9502c(0x39f)][_0x9502c(0x3e8)](_0x3bef64);}}var On=Object[_0x35fe9a(0x448)],Dn=Object[_0x35fe9a(0x1db)],wn=(_0x22c8e6,_0x42f2d3,_0x5af258,_0x1251c1)=>{const _0x6938cb=_0x35fe9a;for(var _0x49e923=_0x1251c1>0x1?void 0x0:_0x1251c1?Dn(_0x42f2d3,_0x5af258):_0x42f2d3,_0x15691c=_0x22c8e6[_0x6938cb(0x443)]-0x1,_0x5a9bd4;_0x15691c>=0x0;_0x15691c--)(_0x5a9bd4=_0x22c8e6[_0x15691c])&&(_0x49e923=(_0x1251c1?_0x5a9bd4(_0x42f2d3,_0x5af258,_0x49e923):_0x5a9bd4(_0x49e923))||_0x49e923);return _0x1251c1&&_0x49e923&&On(_0x42f2d3,_0x5af258,_0x49e923),_0x49e923;},Xt=(_0x109240,_0x2f32dd)=>(_0x8baad8,_0x3bbda8)=>_0x2f32dd(_0x8baad8,_0x3bbda8,_0x109240);let Be=class{constructor(_0x19ba89,_0x321a15){const _0x17f14b=_0x35fe9a;this[_0x17f14b(0x325)]=_0x19ba89,this[_0x17f14b(0x348)]=_0x321a15;}[_0x35fe9a(0x42f)](_0x2e5d33){const _0x708cd4=_0x35fe9a;this[_0x708cd4(0x292)](_0x2e5d33),this[_0x708cd4(0x2b9)](_0x2e5d33);}['transformRemoteChangeset'](_0x1e2ada){const _0x28baa6=_0x35fe9a,_0x1d9f0d=this['_injector']['get'](_0x3524fa),{redoCache:_0x3403b}=_0x1d9f0d[_0x28baa6(0x34d)]();if(_0x3403b[_0x28baa6(0x443)]===0x0)return _0x1e2ada;let _0x58a416=_0x295a4b[_0x28baa6(0x1c1)](_0x1e2ada[_0x28baa6(0x3e5)][0x0]);for(let _0x4ee20d=0x0;_0x4ee20d<_0x3403b[_0x28baa6(0x443)];_0x4ee20d++){const _0xf5e860={'id':_0x28baa6(0x212),'params':{..._0x3403b[_0x4ee20d]}},_0x245f49=this['_transformService'][_0x28baa6(0x1ac)](_0x58a416,_0xf5e860,!0x1);if(_0x560f2f(_0x245f49))throw _0x245f49[_0x28baa6(0x185)];_0x58a416=_0x245f49[_0x28baa6(0x226)];}return{..._0x295a4b[_0x28baa6(0x1c1)](_0x1e2ada),'mutations':[_0x58a416]};}[_0x35fe9a(0x292)](_0x1fbead){const _0x4a1ff7=_0x35fe9a,_0x262e8e=this[_0x4a1ff7(0x325)][_0x4a1ff7(0x3e8)](_0x3524fa),{undoCache:_0x21fbde,redoCache:_0x3f16ac}=_0x262e8e[_0x4a1ff7(0x34d)]();if(_0x21fbde['length']===0x0||_0x3f16ac['length']===0x0)return;const _0x438762=[],_0x27e0fb=[];let _0x38494f=_0x295a4b['deepClone'](_0x1fbead['mutations'][0x0]),_0x24a093=_0x295a4b[_0x4a1ff7(0x1c1)](_0x1fbead['mutations'][0x0]);for(let _0x5105c1=_0x21fbde[_0x4a1ff7(0x443)]-0x1;_0x5105c1>=0x0;_0x5105c1--){const _0x5a6e39={'id':_0x4a1ff7(0x212),'params':{..._0x21fbde[_0x5105c1]}},_0x5d8120={'id':_0x4a1ff7(0x212),'params':{..._0x3f16ac[_0x5105c1]}},_0x2fb313=this[_0x4a1ff7(0x348)][_0x4a1ff7(0x1ac)](_0x38494f,_0x5a6e39,!0x1),_0x3cfd39=this['_transformService']['transformMutation'](_0x24a093,_0x5d8120,!0x1);if(_0x560f2f(_0x2fb313))throw _0x2fb313['error'];if(_0x560f2f(_0x3cfd39))throw _0x3cfd39['error'];_0x438762[_0x4a1ff7(0x484)](_0x2fb313[_0x4a1ff7(0x3b5)]['params']),_0x27e0fb[_0x4a1ff7(0x484)](_0x3cfd39['m2Prime'][_0x4a1ff7(0x3b4)]),_0x38494f=_0x2fb313[_0x4a1ff7(0x226)],_0x24a093=_0x3cfd39['m1Prime'];}_0x262e8e[_0x4a1ff7(0x3ef)]({'undoCache':_0x438762,'redoCache':_0x27e0fb});}['_transformPreviousActiveRange'](_0xeece1){const _0x281af4=_0x35fe9a,_0x520874=this[_0x281af4(0x325)][_0x281af4(0x3e8)](_0x3524fa),_0x21f5b4=_0x520874[_0x281af4(0x233)]();if(_0x21f5b4==null)return;const _0x31896e=[{'id':_0x281af4(0x212),'params':{'unitId':_0xeece1[_0x281af4(0x19e)],'actions':null,'textRanges':[_0x21f5b4]}}],_0x144014=this[_0x281af4(0x348)][_0x281af4(0x1ff)](_0xeece1,_0x31896e);if(!_0x44a64c(_0x144014))throw _0x144014[_0x281af4(0x185)];const _0x2b3dd5=_0x144014[_0x281af4(0x3b5)][0x0][_0x281af4(0x3b4)][_0x281af4(0x1ee)];Array[_0x281af4(0x3ff)](_0x2b3dd5)&&_0x2b3dd5[_0x281af4(0x443)]&&_0x520874[_0x281af4(0x26e)](_0x2b3dd5[0x0]);}};Be=wn([Xt(0x0,_0x5b3e40(_0x331eca)),Xt(0x1,_0x56176b)],Be);var Pn=Object[_0x35fe9a(0x448)],Nn=Object['getOwnPropertyDescriptor'],Mn=(_0x39bfa8,_0x4023a5,_0x187b5b,_0x2df810)=>{const _0x9b5f45=_0x35fe9a;for(var _0x4cca8a=_0x2df810>0x1?void 0x0:_0x2df810?Nn(_0x4023a5,_0x187b5b):_0x4023a5,_0xb74583=_0x39bfa8[_0x9b5f45(0x443)]-0x1,_0x7de6f9;_0xb74583>=0x0;_0xb74583--)(_0x7de6f9=_0x39bfa8[_0xb74583])&&(_0x4cca8a=(_0x2df810?_0x7de6f9(_0x4023a5,_0x187b5b,_0x4cca8a):_0x7de6f9(_0x4cca8a))||_0x4cca8a);return _0x2df810&&_0x4cca8a&&Pn(_0x4023a5,_0x187b5b,_0x4cca8a),_0x4cca8a;},Jt=(_0x365909,_0x1ec220)=>(_0x286ed0,_0x277d9b)=>_0x1ec220(_0x286ed0,_0x277d9b,_0x365909);let Ve=class{constructor(_0x485b43,_0x2e15e6){const _0x54a9a1=_0x35fe9a;this['_injector']=_0x485b43,this[_0x54a9a1(0x348)]=_0x2e15e6;}['transformSelections'](_0x373d6f){const _0x5a82dd=_0x35fe9a;var _0x4d148f;const _0x320421=this[_0x5a82dd(0x325)][_0x5a82dd(0x3e8)](_0x200457),_0xcc3be9=(_0x4d148f=_0x320421['getSelections']())!=null?_0x4d148f:[],_0x238c3c=_0xcc3be9==null?void 0x0:_0xcc3be9[_0x5a82dd(0x240)](_0x3dee4a);if(_0x238c3c[_0x5a82dd(0x443)]===0x0)return;const _0x229e0e=[{'id':_0x5a82dd(0x212),'params':{'unitId':_0x373d6f[_0x5a82dd(0x19e)],'actions':null,'textRanges':_0x238c3c}}],_0x15a812=this[_0x5a82dd(0x348)][_0x5a82dd(0x1ff)](_0x373d6f,_0x229e0e);if(!_0x44a64c(_0x15a812))throw _0x15a812[_0x5a82dd(0x185)];const _0x5312eb=_0x15a812[_0x5a82dd(0x3b5)][0x0][_0x5a82dd(0x3b4)][_0x5a82dd(0x1ee)];Array['isArray'](_0x5312eb)&&_0x5312eb[_0x5a82dd(0x443)]&&_0x320421['replaceTextRanges'](_0x5312eb,!0x1);}};Ve=Mn([Jt(0x0,_0x5b3e40(_0x331eca)),Jt(0x1,_0x56176b)],Ve);function Os(_0x2a89eb){let _0x3d0e22='';for(const _0x54e3e8 of _0x2a89eb){const {startOffset:_0x2a61d3,endOffset:_0x568553,isActive:_0x2fce0d}=_0x54e3e8;_0x3d0e22['length']&&(_0x3d0e22+=','),_0x3d0e22+=_0x2a61d3+':'+_0x568553+':'+(_0x2fce0d?'1':'0');}return _0x3d0e22;}function An(_0x2555c3){const _0x385d14=_0x35fe9a,_0x5002c3=_0x2555c3[_0x385d14(0x290)](','),_0x3ac0c1=[];for(const _0x2d7c30 of _0x5002c3){const [_0x113306,_0x127017,_0x4e7f61]=_0x2d7c30['split'](':');_0x3ac0c1[_0x385d14(0x472)]({'startOffset':Number(_0x113306),'endOffset':Number(_0x127017),'collapsed':_0x113306===_0x127017,'isActive':_0x4e7f61==='1'});}return _0x3ac0c1['some'](_0x207351=>_0x207351[_0x385d14(0x2e9)])||(_0x3ac0c1[0x0]['isActive']=!0x0),_0x3ac0c1;}class Mt extends _0x2f203c{constructor(){const _0x37d5ce=_0x35fe9a;super(...arguments),l(this,_0x37d5ce(0x266),new _0x316dfa(null)),l(this,_0x37d5ce(0x2b8),this['_collabCursorState$'][_0x37d5ce(0x36f)]());}['syncEditingCollabCursor'](_0x56f5da){const _0x90349c=_0x35fe9a,{unitID:_0x5a7273,memberID:_0x446f56,textRanges:_0x10564d}=_0x56f5da,_0x476a5d=Os(_0x10564d),_0x251079={'unitID':_0x5a7273,'memberID':_0x446f56,'selection':_0x476a5d};this[_0x90349c(0x266)][_0x90349c(0x3be)](_0x251079);}}var yn=Object[_0x35fe9a(0x448)],Un=Object[_0x35fe9a(0x1db)],Ln=(_0x25fad9,_0xb46a5e,_0x1e8895,_0x5296fd)=>{for(var _0xa96006=_0x5296fd>0x1?void 0x0:_0x5296fd?Un(_0xb46a5e,_0x1e8895):_0xb46a5e,_0x451e44=_0x25fad9['length']-0x1,_0x1f43f4;_0x451e44>=0x0;_0x451e44--)(_0x1f43f4=_0x25fad9[_0x451e44])&&(_0xa96006=(_0x5296fd?_0x1f43f4(_0xb46a5e,_0x1e8895,_0xa96006):_0x1f43f4(_0xa96006))||_0xa96006);return _0x5296fd&&_0xa96006&&yn(_0xb46a5e,_0x1e8895,_0xa96006),_0xa96006;},zt=(_0x355ed3,_0x5dd510)=>(_0x5c4e95,_0x40387a)=>_0x5dd510(_0x5c4e95,_0x40387a,_0x355ed3);let ke=class{constructor(_0x10a266,_0x1d9503){const _0x3e16d8=_0x35fe9a;this[_0x3e16d8(0x325)]=_0x10a266,this[_0x3e16d8(0x348)]=_0x1d9503;}[_0x35fe9a(0x273)](_0x5b488f){const _0x374f50=_0x35fe9a;var _0x3fef8e,_0x1d7f90,_0x44b42c,_0xa95d3c;const _0x56dd6e=this[_0x374f50(0x325)][_0x374f50(0x3e8)](_0x5927f3),{pluginName:_0x5b2ecd,unitId:_0x2a18f1,sheetId:_0xa7b2c5}=_0x56dd6e[_0x374f50(0x2cc)]()||{},_0x5b54e4=(_0x3fef8e=_0x56dd6e['getSelections']())!=null?_0x3fef8e:[];if(_0x5b54e4['length']===0x0||!_0x5b2ecd||!_0x2a18f1||!_0xa7b2c5)return;const _0x33c943=[{'id':_0x49c1dc['id'],'params':{'unitId':_0x2a18f1,'subUnitId':_0xa7b2c5,'pluginName':_0x5b2ecd,'selections':_0x295a4b[_0x374f50(0x1c1)](_0x5b54e4)}}],_0x2b40f6=this['_transformService'][_0x374f50(0x1ff)](_0x5b488f,_0x33c943);if(!_0x44a64c(_0x2b40f6))throw _0x2b40f6['error'];const _0x644814=(_0xa95d3c=(_0x44b42c=(_0x1d7f90=_0x2b40f6[_0x374f50(0x3b5)][0x0])==null?void 0x0:_0x1d7f90[_0x374f50(0x3b4)])==null?void 0x0:_0x44b42c[_0x374f50(0x289)])!=null?_0xa95d3c:_0x5b54e4;Array[_0x374f50(0x3ff)](_0x644814)&&_0x644814[_0x374f50(0x443)]&&this['_injector']['get'](_0x373f07)[_0x374f50(0x356)](_0x49c1dc['id'],{'unitId':_0x2a18f1,'subUnitId':_0xa7b2c5,'pluginName':_0x5b2ecd,'selections':_0x644814});}};ke=Ln([zt(0x0,_0x5b3e40(_0x331eca)),zt(0x1,_0x56176b)],ke);const $n=new Set([_0x3307b6['id']]);function jn(_0x4818c7,_0x325b3b,_0x501dfd,_0x444f1e,_0x194334){const _0x2c1c2d=_0x35fe9a;var _0x38ac39,_0x27ffbf,_0x4c3f26,_0x521b0d;const _0x181f45=[];for(const _0xbf3054 of _0x4818c7)if($n[_0x2c1c2d(0x189)](_0xbf3054['id'])){if(_0x181f45[_0x2c1c2d(0x443)]>0x0)break;_0x181f45[_0x2c1c2d(0x472)](_0xbf3054);break;}else _0x181f45['push'](_0xbf3054);const _0x205f65=(_0x27ffbf=(_0x38ac39=_0x194334[_0x2c1c2d(0x2d2)]())==null?void 0x0:_0x38ac39[_0x2c1c2d(0x427)])!=null?_0x27ffbf:_0x2c1c2d(0x2ab),_0x92f0e1=(_0x521b0d=(_0x4c3f26=_0x194334[_0x2c1c2d(0x2d2)]())==null?void 0x0:_0x4c3f26['memberID'])!=null?_0x521b0d:'unknown';return{'changeset':{'unitID':_0x325b3b,'type':_0xa9e329(_0x501dfd['getUnitType'](_0x325b3b)),'baseRev':_0x444f1e['getCurrentRevForDocument'](_0x325b3b),'revision':0x0,'userID':_0x205f65,'memberID':_0x92f0e1,'mutations':_0x181f45},'pendingMutations':_0x4818c7['slice'](_0x181f45[_0x2c1c2d(0x443)])};}function Hn(_0x3102fd,_0x5dde1c,_0xd564cb,_0x5bd6c8,_0x96c16){const _0x4af627=_0x35fe9a;var _0x484954,_0x192103,_0x3c5153,_0x4cc10e;const _0x4c4341=[_0x3102fd[_0x4af627(0x25c)]((_0x540271,_0x2395e0)=>{const _0x2fa58e=_0x4af627;var _0x32de99;const {id:_0x57975d}=_0x540271,{id:_0xdc33a6,type:_0x20df93}=_0x2395e0,_0x3b51fe=(_0x32de99=_0x540271[_0x2fa58e(0x3b4)])!=null?_0x32de99:{'actions':null},_0x4cd8e7=_0x2395e0['params'];if(_0x57975d&&_0x57975d!==_0xdc33a6)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x57975d+'\x20-\x20'+_0xdc33a6+'.');return{..._0x540271,'id':_0xdc33a6,'type':_0x20df93,'params':{'unitId':_0x4cd8e7[_0x2fa58e(0x45b)],'textRanges':_0x4cd8e7[_0x2fa58e(0x1ee)],'actions':_0x260909['compose'](_0x3b51fe[_0x2fa58e(0x33e)],_0x4cd8e7[_0x2fa58e(0x33e)])}};},{})],_0x4f70cf=(_0x192103=(_0x484954=_0x96c16['getCurrentUser']())==null?void 0x0:_0x484954[_0x4af627(0x427)])!=null?_0x192103:'unknown',_0x554a52=(_0x4cc10e=(_0x3c5153=_0x96c16['getCurrentUser']())==null?void 0x0:_0x3c5153[_0x4af627(0x311)])!=null?_0x4cc10e:'unknown';return{'changeset':{'unitID':_0x5dde1c,'type':_0xa9e329(_0xd564cb[_0x4af627(0x2d5)](_0x5dde1c)),'baseRev':_0x5bd6c8[_0x4af627(0x1ae)](_0x5dde1c),'revision':0x0,'userID':_0x4f70cf,'memberID':_0x554a52,'mutations':_0x4c4341},'pendingMutations':[]};}var xn=Object[_0x35fe9a(0x448)],Fn=Object[_0x35fe9a(0x1db)],ne=(_0x3ff436,_0x33b105,_0x394efd,_0x1d7c89)=>{for(var _0x3b3c07=_0x1d7c89>0x1?void 0x0:_0x1d7c89?Fn(_0x33b105,_0x394efd):_0x33b105,_0x5e782c=_0x3ff436['length']-0x1,_0x38e62a;_0x5e782c>=0x0;_0x5e782c--)(_0x38e62a=_0x3ff436[_0x5e782c])&&(_0x3b3c07=(_0x1d7c89?_0x38e62a(_0x33b105,_0x394efd,_0x3b3c07):_0x38e62a(_0x3b3c07))||_0x3b3c07);return _0x1d7c89&&_0x3b3c07&&xn(_0x33b105,_0x394efd,_0x3b3c07),_0x3b3c07;},g=(_0x2adf8a,_0x3053ed)=>(_0x318ba4,_0x431906)=>_0x3053ed(_0x318ba4,_0x431906,_0x2adf8a),P=(_0x1be373=>(_0x1be373['NOT_COLLAB']='not_collab',_0x1be373[_0x35fe9a(0x242)]=_0x35fe9a(0x465),_0x1be373['PENDING']=_0x35fe9a(0x45f),_0x1be373[_0x35fe9a(0x1e1)]=_0x35fe9a(0x1dd),_0x1be373[_0x35fe9a(0x24d)]=_0x35fe9a(0x25e),_0x1be373['FETCH_MISS']=_0x35fe9a(0x3a9),_0x1be373[_0x35fe9a(0x24f)]='conflict',_0x1be373[_0x35fe9a(0x2e8)]='offline',_0x1be373))(P||{});class re{constructor(_0x4c6622,_0x467e13,_0x5ee1e8,_0x2f053c,_0x55da8e,_0x41ffcd,_0x59be42,_0x33b9d2,_0x5079d1){const _0x2a4dc8=_0x35fe9a;l(this,_0x2a4dc8(0x40b),null),l(this,_0x2a4dc8(0x41d),[]),(this[_0x2a4dc8(0x19e)]=_0x4c6622,this[_0x2a4dc8(0x279)]=_0x467e13,this[_0x2a4dc8(0x28a)]=_0x55da8e,this[_0x2a4dc8(0x3d3)]=_0x41ffcd,this[_0x2a4dc8(0x40c)]=_0x59be42,this[_0x2a4dc8(0x398)]=_0x33b9d2,this[_0x2a4dc8(0x3d7)]=_0x5079d1,this[_0x2a4dc8(0x40b)]=_0x5ee1e8,this[_0x2a4dc8(0x41d)]=_0x2f053c);}['_checkMissing'](_0x5247c7){const _0x212ac6=_0x35fe9a,_0x33ab47=this['_revisionService'][_0x212ac6(0x1ae)](this[_0x212ac6(0x19e)]);return _0x5247c7[_0x212ac6(0x232)]>_0x33ab47+0x1?(this[_0x212ac6(0x28a)]['onMissingChangesets']({'from':_0x33ab47,'to':_0x5247c7[_0x212ac6(0x232)]-0x1}),!0x0):!0x1;}[_0x35fe9a(0x364)](_0x253bdd){const _0x3c46ee=_0x35fe9a;this['_undoRedoService'][_0x3c46ee(0x28e)](this[_0x3c46ee(0x19e)],_0x253bdd);}[_0x35fe9a(0x30c)](_0x1ce1ec){const _0x57efb1=_0x35fe9a;var _0x16be2c,_0x2f03a2;(_0x2f03a2=(_0x16be2c=this['_handler'])[_0x57efb1(0x1d4)])==null||_0x2f03a2['call'](_0x16be2c,_0x1ce1ec);}[_0x35fe9a(0x340)](_0x3a3c87){const _0x51036e=_0x35fe9a;var _0x330e86,_0x57b057;return(_0x57b057=(_0x330e86=this[_0x51036e(0x28a)])['onTransformIME'])==null?void 0x0:_0x57b057['call'](_0x330e86,_0x3a3c87);}[_0x35fe9a(0x450)](_0x4c56a2){const _0x10f6c7=_0x35fe9a;var _0xe28fc9,_0x2cd88a,_0x30e154;return(_0x30e154=(_0x2cd88a=(_0xe28fc9=this[_0x10f6c7(0x28a)])[_0x10f6c7(0x371)])==null?void 0x0:_0x2cd88a[_0x10f6c7(0x341)](_0xe28fc9,_0x4c56a2))!=null?_0x30e154:_0x4c56a2;}['_syncEditingCollabCursor'](_0x7f9030){const _0x78db3d=_0x35fe9a;var _0x55ab2b,_0x14404;if(this[_0x78db3d(0x279)]===H[_0x78db3d(0x1f2)]){const {unitID:_0x518aa4,mutations:_0x12563e,memberID:_0x93f9de}=_0x7f9030,_0x229132=_0x12563e[0x0][_0x78db3d(0x3b4)][_0x78db3d(0x1ee)];Array['isArray'](_0x229132)&&_0x229132[_0x78db3d(0x443)]>0x0&&((_0x14404=(_0x55ab2b=this[_0x78db3d(0x28a)])[_0x78db3d(0x176)])==null||_0x14404[_0x78db3d(0x341)](_0x55ab2b,{'unitID':_0x518aa4,'memberID':_0x93f9de,'textRanges':_0x229132}));}}[_0x35fe9a(0x271)](){const _0x41df8c=_0x35fe9a;this[_0x41df8c(0x3d7)][_0x41df8c(0x329)](this[_0x41df8c(0x19e)],this[_0x41df8c(0x279)],this[_0x41df8c(0x40b)],this[_0x41df8c(0x41d)]);}[_0x35fe9a(0x1f4)](){const _0x185e04=_0x35fe9a;return this['_revisionService'][_0x185e04(0x1ae)](this[_0x185e04(0x19e)]);}['_incrementRevisionNumber'](){const _0x433616=_0x35fe9a;this[_0x433616(0x398)][_0x433616(0x479)](this[_0x433616(0x19e)]);}[_0x35fe9a(0x3a4)](_0x45e3d5){const _0x149d71=_0x35fe9a;var _0x2a0485;const _0x5d35ca=this[_0x149d71(0x450)](_0x45e3d5),_0x71666a=_0x299d45(_0x5d35ca['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x71666a[_0x149d71(0x39a)])throw _0x71666a[_0x149d71(0x185)]instanceof Error?_0x71666a[_0x149d71(0x185)]:new Error((_0x2a0485=_0x71666a['error'])!=null?_0x2a0485:_0x149d71(0x440));this[_0x149d71(0x340)](_0x5d35ca),this[_0x149d71(0x364)](_0x45e3d5),this['_transformSelections'](_0x5d35ca),this[_0x149d71(0x33c)](_0x5d35ca),this[_0x149d71(0x338)]();}}let Te=class extends re{constructor(_0x5def5c,_0x29cb24,_0x72b4bd,_0x4d3f4a,_0x281850,_0x341084,_0x3710ea,_0x2a9704,_0x27c5c2){const _0x4956de=_0x35fe9a;super(_0x5def5c,_0x29cb24,null,[],_0x72b4bd,_0x2a9704,_0x3710ea,_0x4d3f4a,_0x281850),l(this,'status',_0x4956de(0x465)),(this[_0x4956de(0x325)]=_0x341084,this['_logService']=_0x27c5c2);}[_0x35fe9a(0x483)](_0x3968dc){const _0x2f9452=_0x35fe9a,_0x3cb9c1=this['_injector'][_0x2f9452(0x26b)](V,this[_0x2f9452(0x19e)],this['type'],[_0x3968dc],this[_0x2f9452(0x28a)]);return _0x3cb9c1['_schedule'](),_0x3cb9c1[_0x2f9452(0x271)](),_0x3cb9c1;}['onRemoteChangeset'](_0xf55b08){const _0x46253a=_0x35fe9a;if(this[_0x46253a(0x195)](_0xf55b08))return this[_0x46253a(0x325)][_0x46253a(0x26b)](W,this[_0x46253a(0x19e)],this[_0x46253a(0x279)],null,[],null,[_0xf55b08],this[_0x46253a(0x28a)]);try{return this[_0x46253a(0x3a4)](_0xf55b08),this;}catch(_0x31de40){return this[_0x46253a(0x248)][_0x46253a(0x185)](_0x46253a(0x25a),_0x31de40),this;}}[_0x35fe9a(0x3ca)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0xa3d55f=_0x35fe9a;throw new Error(_0xa3d55f(0x373));}['toggleOffline'](){const _0x2956c7=_0x35fe9a;return this[_0x2956c7(0x325)]['createInstance'](X,this['unitID'],this[_0x2956c7(0x279)],null,[],this[_0x2956c7(0x28a)]);}[_0x35fe9a(0x1fc)](){return this;}[_0x35fe9a(0x261)](){const _0x4d3daa=_0x35fe9a;throw new Error(_0x4d3daa(0x183));}};Te=ne([g(0x3,_0x5b3e40(_0x53eb10)),g(0x4,_0x5b3e40(D)),g(0x5,_0x5b3e40(_0x331eca)),g(0x6,_0x4b7ddb),g(0x7,_0x373f07),g(0x8,_0x294e85)],Te);let V=class extends re{constructor(_0x590673,_0x28cdd5,_0x1649ce,_0x1aa643,_0x57f578,_0x476e44,_0x2b918a,_0x274a75,_0x24eccd,_0x343f63,_0x4b7ccb,_0x37c506,_0x261ce9,_0x31cdea){const _0x122469=_0x35fe9a;super(_0x590673,_0x28cdd5,null,_0x1649ce,_0x1aa643,_0x343f63,_0x31cdea,_0x476e44,_0x2b918a),l(this,_0x122469(0x30b),_0x122469(0x45f)),l(this,'_scheduleTimestamp',null),l(this,'_sendingTimer',null),(this[_0x122469(0x325)]=_0x57f578,this[_0x122469(0x367)]=_0x274a75,this[_0x122469(0x248)]=_0x24eccd,this['_configService']=_0x4b7ccb,this[_0x122469(0x348)]=_0x37c506,this[_0x122469(0x262)]=_0x261ce9);}['appendMutation'](_0x44325c){const _0x5ac266=_0x35fe9a;return this['_pendingMutations'][_0x5ac266(0x472)](_0x44325c),this[_0x5ac266(0x271)](),this;}[_0x35fe9a(0x399)](_0x193824){const _0x2b8d21=_0x35fe9a;if(this['_checkMissing'](_0x193824))return this['_clearScheduledTask'](),this['_injector'][_0x2b8d21(0x26b)](W,this[_0x2b8d21(0x19e)],this[_0x2b8d21(0x279)],null,this[_0x2b8d21(0x41d)],null,[_0x193824],this[_0x2b8d21(0x28a)]);try{const _0x3c2cbd=this[_0x2b8d21(0x348)]['transformMutationsWithChangeset'](_0x193824,this[_0x2b8d21(0x41d)]);if(_0x44a64c(_0x3c2cbd)){const {c1Prime:_0x36cd3b,m2Prime:_0x5ac34a}=_0x3c2cbd;this[_0x2b8d21(0x3a4)](_0x36cd3b);const _0x5cb954=this[_0x2b8d21(0x325)][_0x2b8d21(0x26b)](V,this['unitID'],this[_0x2b8d21(0x279)],_0x5ac34a,this[_0x2b8d21(0x28a)]);return this[_0x2b8d21(0x27f)](),_0x5cb954[_0x2b8d21(0x1ec)](this['_scheduleTimestamp']?Math['max'](0x0,new Date()[_0x2b8d21(0x1af)]()-this[_0x2b8d21(0x1c6)]):this[_0x2b8d21(0x343)]()),_0x5cb954;}throw _0x3c2cbd[_0x2b8d21(0x185)];}catch(_0x37c7c6){return this[_0x2b8d21(0x248)]['error'](_0x37c7c6),this[_0x2b8d21(0x207)](!0x1);}}[_0x35fe9a(0x3ca)](){const _0x405ecb=_0x35fe9a;throw new Error(_0x405ecb(0x16f));}['onRemoteRej'](){const _0x518beb=_0x35fe9a;throw new Error(_0x518beb(0x238));}[_0x35fe9a(0x23b)](){const _0x38517d=_0x35fe9a;return this[_0x38517d(0x27f)](),this[_0x38517d(0x325)][_0x38517d(0x26b)](X,this[_0x38517d(0x19e)],this[_0x38517d(0x279)],null,this[_0x38517d(0x41d)],this['_handler']);}[_0x35fe9a(0x1fc)](){return this;}[_0x35fe9a(0x1ec)](_0x25677c){const _0x1b0204=_0x35fe9a;_0x25677c=_0x25677c!=null?_0x25677c:this[_0x1b0204(0x343)](),this['_scheduleTimestamp']=new Date()[_0x1b0204(0x1af)](),this[_0x1b0204(0x236)]=setTimeout(()=>{const _0x3063e4=_0x1b0204;this[_0x3063e4(0x27f)]();let _0x1a8e96=null;switch(this[_0x3063e4(0x279)]){case H[_0x3063e4(0x339)]:{_0x1a8e96=jn(this[_0x3063e4(0x41d)],this[_0x3063e4(0x19e)],this['_univerInstanceService'],this[_0x3063e4(0x398)],this[_0x3063e4(0x367)]);break;}case H[_0x3063e4(0x1f2)]:{_0x1a8e96=Hn(this[_0x3063e4(0x41d)],this[_0x3063e4(0x19e)],this['_univerInstanceService'],this[_0x3063e4(0x398)],this[_0x3063e4(0x367)]);break;}default:throw new Error(_0x3063e4(0x406)+this[_0x3063e4(0x279)]+_0x3063e4(0x22f));}const {changeset:_0x511277,pendingMutations:_0x1387ee}=_0x1a8e96;this[_0x3063e4(0x28a)][_0x3063e4(0x3f8)](_0x511277);const _0x44e3d6=_0x1387ee[_0x3063e4(0x443)]?this[_0x3063e4(0x325)]['createInstance'](k,this['unitID'],this[_0x3063e4(0x279)],_0x511277,_0x1387ee,this[_0x3063e4(0x28a)]):this[_0x3063e4(0x325)]['createInstance'](K,this[_0x3063e4(0x19e)],this[_0x3063e4(0x279)],_0x511277,this[_0x3063e4(0x28a)]);_0x44e3d6[_0x3063e4(0x271)](),this[_0x3063e4(0x28a)]['onStateChange'](this,_0x44e3d6);},_0x25677c);}[_0x35fe9a(0x343)](){const _0x5555a6=_0x35fe9a;var _0x259283;return(_0x259283=this[_0x5555a6(0x449)][_0x5555a6(0x358)](Ki))!=null?_0x259283:Xi;}['resend'](){const _0x459a2f=_0x35fe9a;throw new Error(_0x459a2f(0x405));}[_0x35fe9a(0x27f)](){const _0x2eb21f=_0x35fe9a;this[_0x2eb21f(0x236)]!=null&&(clearTimeout(this[_0x2eb21f(0x236)]),this[_0x2eb21f(0x236)]=null);}[_0x35fe9a(0x207)](_0xd46dd){const _0x3948a7=_0x35fe9a;return this[_0x3948a7(0x27f)](),this[_0x3948a7(0x325)][_0x3948a7(0x26b)](te,this[_0x3948a7(0x19e)],this[_0x3948a7(0x279)],null,this[_0x3948a7(0x41d)],this['_handler'],_0xd46dd);}};V=ne([g(0x4,_0x5b3e40(_0x331eca)),g(0x5,_0x5b3e40(_0x53eb10)),g(0x6,_0x5b3e40(D)),g(0x7,_0x5b3e40(ee)),g(0x8,_0x294e85),g(0x9,_0x373f07),g(0xa,_0x4e019d),g(0xb,_0x56176b),g(0xc,_0x1ffae8),g(0xd,_0x4b7ddb)],V);let K=class extends re{constructor(_0xeda805,_0x35cbdf,_0xa9bc05,_0x45038f,_0x456af1,_0x2178ad,_0x528148,_0xe0ebe5,_0x5a7afa,_0x137a8a,_0x18d535){const _0x2d27aa=_0x35fe9a;super(_0xeda805,_0x35cbdf,_0xa9bc05,[],_0x45038f,_0xe0ebe5,_0x18d535,_0x2178ad,_0x528148),l(this,'status',_0x2d27aa(0x1dd)),(this[_0x2d27aa(0x325)]=_0x456af1,this[_0x2d27aa(0x248)]=_0x5a7afa,this[_0x2d27aa(0x348)]=_0x137a8a);}[_0x35fe9a(0x483)](_0x3ba77e){const _0x38b512=_0x35fe9a,_0x3ae36b=this[_0x38b512(0x325)][_0x38b512(0x26b)](k,this[_0x38b512(0x19e)],this[_0x38b512(0x279)],this[_0x38b512(0x40b)],[_0x3ba77e],this[_0x38b512(0x28a)]);return _0x3ae36b[_0x38b512(0x271)](),_0x3ae36b;}[_0x35fe9a(0x399)](_0x261b23){const _0x1d11ca=_0x35fe9a;if(this[_0x1d11ca(0x195)](_0x261b23))return this[_0x1d11ca(0x325)]['createInstance'](W,this[_0x1d11ca(0x19e)],this[_0x1d11ca(0x279)],this['_awaitingChangeset'],[],null,[_0x261b23],this[_0x1d11ca(0x28a)]);try{const _0x1db8eb=this[_0x1d11ca(0x348)][_0x1d11ca(0x3df)]([_0x261b23],[this[_0x1d11ca(0x40b)]],!0x1);if(_0x54bce7(_0x1db8eb)){const {c1Prime:_0x3b84e5,c2Prime:_0x4cf114}=_0x1db8eb;this['_executeRemoteChangeset'](_0x3b84e5[0x0]),_0x4cf114[0x0][_0x1d11ca(0x35c)]=this['_getCurrentRevision']();const _0x22800a=this[_0x1d11ca(0x325)]['createInstance'](K,this[_0x1d11ca(0x19e)],this[_0x1d11ca(0x279)],_0x4cf114[0x0],this[_0x1d11ca(0x28a)]);return _0x22800a[_0x1d11ca(0x271)](),_0x22800a;}return this[_0x1d11ca(0x207)](!0x1);}catch(_0x34b3c3){return this[_0x1d11ca(0x248)][_0x1d11ca(0x185)](_0x34b3c3),this['_onConflict'](!0x1);}}[_0x35fe9a(0x3ca)](_0x5b76f7){const _0x42eee0=_0x35fe9a,_0x597dae=this[_0x42eee0(0x398)][_0x42eee0(0x1ae)](this[_0x42eee0(0x19e)]);if(_0x5b76f7[_0x42eee0(0x232)]<_0x597dae-0x1)return this;if(this[_0x42eee0(0x195)](_0x5b76f7))return this['_injector'][_0x42eee0(0x26b)](W,this[_0x42eee0(0x19e)],this[_0x42eee0(0x279)],null,[],this[_0x42eee0(0x40b)],[],this[_0x42eee0(0x28a)]);this[_0x42eee0(0x338)]();const _0x3f05d8=this[_0x42eee0(0x325)][_0x42eee0(0x26b)](Te,this['unitID'],this[_0x42eee0(0x279)],this[_0x42eee0(0x28a)]);return _0x3f05d8[_0x42eee0(0x271)](),_0x3f05d8;}['onRemoteRej'](_0x240be7){return this['_onConflict'](!!(_0x240be7!=null&&_0x240be7['isPermissionRej']));}[_0x35fe9a(0x23b)](){const _0x48aeaa=_0x35fe9a;return this[_0x48aeaa(0x325)][_0x48aeaa(0x26b)](X,this[_0x48aeaa(0x19e)],this[_0x48aeaa(0x279)],this[_0x48aeaa(0x40b)],[],this[_0x48aeaa(0x28a)]);}[_0x35fe9a(0x1fc)](){return this;}['resend'](){const _0xca2dab=_0x35fe9a;this[_0xca2dab(0x28a)][_0xca2dab(0x3f8)](this[_0xca2dab(0x40b)]);}['_onConflict'](_0x393979){const _0x54d4c3=_0x35fe9a;return this[_0x54d4c3(0x325)][_0x54d4c3(0x26b)](te,this[_0x54d4c3(0x19e)],this[_0x54d4c3(0x279)],this[_0x54d4c3(0x40b)],[],this[_0x54d4c3(0x28a)],_0x393979);}};K=ne([g(0x4,_0x5b3e40(_0x331eca)),g(0x5,_0x5b3e40(_0x53eb10)),g(0x6,_0x5b3e40(D)),g(0x7,_0x373f07),g(0x8,_0x294e85),g(0x9,_0x56176b),g(0xa,_0x4b7ddb)],K);let k=class extends re{constructor(_0x3c9d43,_0x1d732b,_0x26e1df,_0x354382,_0x4b195c,_0x24355d,_0x14babd,_0x344fab,_0xc22f86,_0xf74e2d,_0xfa0044,_0x328e79){const _0x1ac6ee=_0x35fe9a;super(_0x3c9d43,_0x1d732b,_0x26e1df,_0x354382,_0x4b195c,_0xc22f86,_0x328e79,_0x14babd,_0x344fab),l(this,_0x1ac6ee(0x30b),_0x1ac6ee(0x25e)),(this[_0x1ac6ee(0x325)]=_0x24355d,this['_logService']=_0xf74e2d,this[_0x1ac6ee(0x348)]=_0xfa0044);}[_0x35fe9a(0x483)](_0x53fbd9){const _0x1a0f9c=_0x35fe9a;return this[_0x1a0f9c(0x41d)][_0x1a0f9c(0x472)](_0x53fbd9),this;}[_0x35fe9a(0x399)](_0x51c52d){const _0x2166fa=_0x35fe9a;if(this[_0x2166fa(0x195)](_0x51c52d))return this[_0x2166fa(0x325)][_0x2166fa(0x26b)](W,this[_0x2166fa(0x19e)],this['type'],this[_0x2166fa(0x40b)],this[_0x2166fa(0x41d)],null,[_0x51c52d],this[_0x2166fa(0x28a)]);try{const _0x2a3459=this[_0x2166fa(0x348)][_0x2166fa(0x3df)]([_0x51c52d],[this[_0x2166fa(0x40b)]],!0x1);if(_0x54bce7(_0x2a3459)){const {c1Prime:_0x6babba,c2Prime:_0x3b2a9c}=_0x2a3459,_0x3b7e51=this[_0x2166fa(0x348)]['transformMutationsWithChangeset'](_0x6babba[0x0],this['_pendingMutations']);if(_0x44a64c(_0x3b7e51)){const {c1Prime:_0x48a0f3,m2Prime:_0x296e2a}=_0x3b7e51;return this['_executeRemoteChangeset'](_0x48a0f3),_0x3b2a9c[0x0][_0x2166fa(0x35c)]=this[_0x2166fa(0x1f4)](),this[_0x2166fa(0x325)][_0x2166fa(0x26b)](k,this['unitID'],this[_0x2166fa(0x279)],_0x3b2a9c[0x0],_0x296e2a,this[_0x2166fa(0x28a)]);}throw _0x3b7e51[_0x2166fa(0x185)];}throw _0x2a3459[_0x2166fa(0x185)];}catch(_0x591489){return this['_logService'][_0x2166fa(0x185)](_0x591489),this[_0x2166fa(0x207)](!0x1);}}['onRemoteAck'](_0x3ba155){const _0xbb4a34=_0x35fe9a;if(this[_0xbb4a34(0x195)](_0x3ba155))return this[_0xbb4a34(0x325)][_0xbb4a34(0x26b)](W,this[_0xbb4a34(0x19e)],this[_0xbb4a34(0x279)],null,this[_0xbb4a34(0x41d)],this[_0xbb4a34(0x40b)],[],this[_0xbb4a34(0x28a)]);this[_0xbb4a34(0x338)]();const _0xa27c6a=this['_injector'][_0xbb4a34(0x26b)](V,this[_0xbb4a34(0x19e)],this[_0xbb4a34(0x279)],this[_0xbb4a34(0x41d)],this['_handler']);return _0xa27c6a['_schedule'](),_0xa27c6a['_updateLocalCache'](),_0xa27c6a;}[_0x35fe9a(0x170)](_0x162814){const _0x3e8764=_0x35fe9a;return this[_0x3e8764(0x207)](!!(_0x162814!=null&&_0x162814[_0x3e8764(0x2a1)]));}[_0x35fe9a(0x23b)](){const _0x24a57c=_0x35fe9a;return this[_0x24a57c(0x325)][_0x24a57c(0x26b)](X,this[_0x24a57c(0x19e)],this['type'],this[_0x24a57c(0x40b)],this[_0x24a57c(0x41d)],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x478107=_0x35fe9a;this[_0x478107(0x28a)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x35fe9a(0x207)](_0x2b1c9a){const _0x1d037f=_0x35fe9a;return this['_injector'][_0x1d037f(0x26b)](te,this[_0x1d037f(0x19e)],this[_0x1d037f(0x279)],null,this[_0x1d037f(0x41d)],this[_0x1d037f(0x28a)],_0x2b1c9a);}};k=ne([g(0x5,_0x5b3e40(_0x331eca)),g(0x6,_0x5b3e40(_0x53eb10)),g(0x7,_0x5b3e40(D)),g(0x8,_0x373f07),g(0x9,_0x294e85),g(0xa,_0x56176b),g(0xb,_0x4b7ddb)],k);let te=class extends re{constructor(_0x32ffdd,_0x527e6a,_0x19e900,_0x1cd654,_0x526f9b,_0x587b50=!0x1,_0x2245e4,_0x373750,_0x4813e2,_0x48cfaf,_0x17c24e,_0x133488,_0xa87837){const _0x18d53c=_0x35fe9a;super(_0x32ffdd,_0x527e6a,_0x19e900,_0x1cd654,_0x526f9b,_0x373750,_0x4813e2,_0x17c24e,_0x48cfaf),l(this,_0x18d53c(0x30b),_0x18d53c(0x41b)),(this[_0x18d53c(0x355)]=_0x587b50,this['_permissionService']=_0x2245e4,this[_0x18d53c(0x480)]=_0x133488,this[_0x18d53c(0x2c8)]=_0xa87837,this[_0x18d53c(0x365)](),this[_0x18d53c(0x32d)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x35fe9a(0x399)](){return this;}['onRemoteAck'](){return this;}[_0x35fe9a(0x170)](){return this;}[_0x35fe9a(0x23b)](){return this;}[_0x35fe9a(0x1fc)](){return this;}['resend'](){const _0xc2a756=_0x35fe9a;throw new Error(_0xc2a756(0x321));}[_0x35fe9a(0x32d)](){const _0x51cb3a=_0x35fe9a;this[_0x51cb3a(0x3d7)][_0x51cb3a(0x329)](this[_0x51cb3a(0x19e)],this[_0x51cb3a(0x279)],null,[]);}['_showConflictNotification'](){const _0x496149=_0x35fe9a;this['_isPermissionRej']?this[_0x496149(0x2c8)][_0x496149(0x18c)]({'title':this[_0x496149(0x480)]['t'](_0x496149(0x175)),'content':this[_0x496149(0x480)]['t'](_0x496149(0x1a9)),'type':_0x496149(0x185),'duration':0x0}):this[_0x496149(0x2c8)][_0x496149(0x18c)]({'title':this[_0x496149(0x480)]['t'](_0x496149(0x32b)),'content':this[_0x496149(0x480)]['t']('conflict.content'),'type':_0x496149(0x185),'duration':0x0});}['_disableEditing'](){const _0x48d743=_0x35fe9a;this['_permissionService']['updatePermissionPoint'](new _0x1a9d94(this[_0x48d743(0x19e)])['id'],!0x1);}};te=ne([g(0x6,_0x5b3e40(_0x58ae2b)),g(0x7,_0x373f07),g(0x8,_0x4b7ddb),g(0x9,_0x5b3e40(D)),g(0xa,_0x5b3e40(_0x53eb10)),g(0xb,_0x5b3e40(_0x210cec)),g(0xc,_0x463aaa)],te);let X=class extends re{constructor(_0x45e428,_0x367cb4,_0x12b97a,_0x6217b6,_0x1464b8,_0x392563,_0x5df82d,_0x57ca36,_0x486c71,_0x2a148f){const _0x2205c4=_0x35fe9a;super(_0x45e428,_0x367cb4,_0x12b97a,_0x6217b6,_0x1464b8,_0x486c71,_0x2a148f,_0x5df82d,_0x57ca36),l(this,_0x2205c4(0x30b),_0x2205c4(0x209)),this[_0x2205c4(0x325)]=_0x392563;}['appendMutation'](_0x16c485){const _0x25e4bd=_0x35fe9a;return this['_pendingMutations'][_0x25e4bd(0x472)](_0x16c485),this[_0x25e4bd(0x271)](),this;}[_0x35fe9a(0x399)](_0x4b95a3){const _0x27a625=_0x35fe9a;throw new Error(_0x27a625(0x401));}['onRemoteAck'](){const _0x24206f=_0x35fe9a;throw new Error(_0x24206f(0x24e));}['onRemoteRej'](){const _0x1fd7d8=_0x35fe9a;throw new Error(_0x1fd7d8(0x23a));}[_0x35fe9a(0x23b)](){return this;}[_0x35fe9a(0x1fc)](){const _0xc6bea9=_0x35fe9a,{_injector:_0x370b11,_pendingMutations:_0x1ca2c5,_awaitingChangeset:_0x53ce15,unitID:_0x55cc57,_handler:_0x5e0ffb,type:_0x59106a}=this,_0x287c6f=Ds(_0x370b11,_0x55cc57,_0x59106a,_0x53ce15,_0x1ca2c5,_0x5e0ffb);return _0x287c6f instanceof V?_0x287c6f['_schedule']():(_0x287c6f instanceof k||_0x287c6f instanceof K)&&_0x287c6f[_0xc6bea9(0x261)](),_0x287c6f;}[_0x35fe9a(0x261)](){const _0x5efb2d=_0x35fe9a;throw new Error(_0x5efb2d(0x35f));}};X=ne([g(0x5,_0x5b3e40(_0x331eca)),g(0x6,_0x5b3e40(_0x53eb10)),g(0x7,_0x5b3e40(D)),g(0x8,_0x373f07),g(0x9,_0x4b7ddb)],X);let W=class extends re{constructor(_0x511f3b,_0x40ae49,_0x1fb48e,_0x508d2b,_0x55debf,_0x19659a,_0x2cb663,_0x3fa439,_0x515041,_0x4d31ac,_0x17a94e,_0x116725,_0x12054e,_0x24e350){const _0x287532=_0x35fe9a;super(_0x511f3b,_0x40ae49,_0x1fb48e,_0x508d2b,_0x2cb663,_0x116725,_0x12054e,_0x515041,_0x4d31ac),l(this,_0x287532(0x30b),'fetch_missing'),(this[_0x287532(0x377)]=_0x55debf,this[_0x287532(0x1fa)]=_0x19659a,this[_0x287532(0x325)]=_0x3fa439,this['_logService']=_0x17a94e,this['_transformService']=_0x24e350);}[_0x35fe9a(0x460)](_0x3b5439){const _0x5197a3=_0x35fe9a;try{const _0x311eb5=[..._0x3b5439,...this['_queuedRemoteChangesets']],_0x5433d8=[this[_0x5197a3(0x40b)]||this[_0x5197a3(0x377)]]['filter'](_0x324dea=>!!_0x324dea);let _0x241611,_0x4b7af5;if(_0x5433d8[_0x5197a3(0x443)]){const _0x4af420=this[_0x5197a3(0x348)]['transformChangesets'](_0x311eb5,_0x5433d8,!0x1);if(!_0x54bce7(_0x4af420))throw _0x4af420[_0x5197a3(0x185)];_0x241611=_0x4af420[_0x5197a3(0x2fa)],_0x4b7af5=_0x4af420[_0x5197a3(0x224)];}else _0x241611=_0x311eb5,_0x4b7af5=[];let _0x5a0a7b=this[_0x5197a3(0x41d)];_0x241611[_0x5197a3(0x2b2)](_0x2d53e2=>{const _0x404650=_0x5197a3;let _0x4c4118;if(_0x5a0a7b['length']){const _0x1a5dfe=this[_0x404650(0x348)][_0x404650(0x1ff)](_0x2d53e2,_0x5a0a7b);if(!_0x44a64c(_0x1a5dfe))throw _0x1a5dfe['error'];_0x4c4118=_0x1a5dfe[_0x404650(0x2fa)],_0x5a0a7b=_0x1a5dfe[_0x404650(0x3b5)];}else _0x4c4118=_0x2d53e2;this[_0x404650(0x3a4)](_0x4c4118);}),this[_0x5197a3(0x377)]&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x4b7af5['length']&&(_0x4b7af5[0x0][_0x5197a3(0x35c)]=this[_0x5197a3(0x1f4)]());let _0x42e616;if(this[_0x5197a3(0x40b)]&&_0x5a0a7b[_0x5197a3(0x443)]!==0x0)_0x42e616=this['_injector'][_0x5197a3(0x26b)](k,this[_0x5197a3(0x19e)],this[_0x5197a3(0x279)],_0x4b7af5[0x0],_0x5a0a7b,this[_0x5197a3(0x28a)]);else{if(this[_0x5197a3(0x40b)]&&_0x5a0a7b[_0x5197a3(0x443)]===0x0)_0x4b7af5[0x0][_0x5197a3(0x35c)]=this[_0x5197a3(0x1f4)](),_0x42e616=this['_injector'][_0x5197a3(0x26b)](K,this['unitID'],this[_0x5197a3(0x279)],_0x4b7af5[0x0],this['_handler']);else{if(_0x5a0a7b['length']!==0x0){const _0x1b9a10=this[_0x5197a3(0x325)][_0x5197a3(0x26b)](V,this[_0x5197a3(0x19e)],this[_0x5197a3(0x279)],_0x5a0a7b,this['_handler']);_0x1b9a10[_0x5197a3(0x1ec)](),_0x42e616=_0x1b9a10;}else _0x42e616=this['_injector'][_0x5197a3(0x26b)](Te,this[_0x5197a3(0x19e)],this[_0x5197a3(0x279)],this[_0x5197a3(0x28a)]);}}return _0x42e616['_updateLocalCache'](),_0x42e616;}catch(_0x3cd3d8){return this[_0x5197a3(0x248)]['error'](_0x5197a3(0x457),_0x5197a3(0x432),_0x3cd3d8),this[_0x5197a3(0x325)]['createInstance'](te,this['unitID'],this[_0x5197a3(0x279)],this['_awaitingChangeset'],this[_0x5197a3(0x41d)],this[_0x5197a3(0x28a)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x35fe9a(0x483)](_0x408bd1){const _0x280485=_0x35fe9a;return this['_pendingMutations'][_0x280485(0x472)](_0x408bd1),this;}['onRemoteChangeset'](_0x3dde37){const _0x834b29=_0x35fe9a;return this[_0x834b29(0x1fa)][_0x834b29(0x472)](_0x3dde37),this;}[_0x35fe9a(0x3ca)](_0x2aad08){const _0x4f7432=_0x35fe9a;if(this['_awaitingChangeset'])return this[_0x4f7432(0x377)]=this[_0x4f7432(0x40b)],this[_0x4f7432(0x40b)]=null,this;throw new Error(_0x4f7432(0x3b3));}['onRemoteRej'](_0x1b5cc9){const _0x11ed18=_0x35fe9a;return this[_0x11ed18(0x207)](!!(_0x1b5cc9!=null&&_0x1b5cc9['isPermissionRej']));}['toggleOffline'](){const _0x44f488=_0x35fe9a;return this[_0x44f488(0x325)][_0x44f488(0x26b)](X,this['unitID'],this['type'],this[_0x44f488(0x40b)],this[_0x44f488(0x41d)],this['_handler']);}[_0x35fe9a(0x1fc)](){return this;}[_0x35fe9a(0x207)](_0x167fcf){const _0x3a1882=_0x35fe9a;return this[_0x3a1882(0x325)][_0x3a1882(0x26b)](te,this[_0x3a1882(0x19e)],this[_0x3a1882(0x279)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3a1882(0x28a)],_0x167fcf);}};W=ne([g(0x7,_0x5b3e40(_0x331eca)),g(0x8,_0x5b3e40(_0x53eb10)),g(0x9,_0x5b3e40(D)),g(0xa,_0x294e85),g(0xb,_0x373f07),g(0xc,_0x4b7ddb),g(0xd,_0x56176b)],W);function Ds(_0x3f47d4,_0x3f6af1,_0x4ea4ae,_0x512261,_0x3674c3,_0x512f01){const _0x76b8c1=_0x35fe9a;return _0x512261&&_0x3674c3[_0x76b8c1(0x443)]?_0x3f47d4['createInstance'](k,_0x3f6af1,_0x4ea4ae,_0x512261,_0x3674c3,_0x512f01):_0x512261?_0x3f47d4[_0x76b8c1(0x26b)](K,_0x3f6af1,_0x4ea4ae,_0x512261,_0x512f01):_0x3674c3[_0x76b8c1(0x443)]?_0x3f47d4[_0x76b8c1(0x26b)](V,_0x3f6af1,_0x4ea4ae,_0x3674c3,_0x512f01):_0x3f47d4[_0x76b8c1(0x26b)](Te,_0x3f6af1,_0x4ea4ae,_0x512f01);}var Bn=Object[_0x35fe9a(0x448)],Vn=Object[_0x35fe9a(0x1db)],Je=(_0x53e9af,_0x5e8ca5,_0x1aa74e,_0x41c062)=>{for(var _0x1c4490=_0x41c062>0x1?void 0x0:_0x41c062?Vn(_0x5e8ca5,_0x1aa74e):_0x5e8ca5,_0x5ff0fa=_0x53e9af['length']-0x1,_0x34d830;_0x5ff0fa>=0x0;_0x5ff0fa--)(_0x34d830=_0x53e9af[_0x5ff0fa])&&(_0x1c4490=(_0x41c062?_0x34d830(_0x5e8ca5,_0x1aa74e,_0x1c4490):_0x34d830(_0x1c4490))||_0x1c4490);return _0x41c062&&_0x1c4490&&Bn(_0x5e8ca5,_0x1aa74e,_0x1c4490),_0x1c4490;},S=(_0x384d08,_0x532e8d)=>(_0x222bac,_0x4ac440)=>_0x532e8d(_0x222bac,_0x4ac440,_0x384d08);let Ee=class extends _0x2f203c{constructor(_0x3c9cc7,_0x50f02b,_0x11f4b3){const _0x14d83f=_0x35fe9a;super(),l(this,_0x14d83f(0x3b1),new Map()),l(this,_0x14d83f(0x24b),new _0x3da7e9()),(this['_injector']=_0x3c9cc7,this[_0x14d83f(0x2bf)]=_0x50f02b,this['_univerInstanceService']=_0x11f4b3,this[_0x14d83f(0x31f)]());}[_0x35fe9a(0x264)](){const _0x2e3485=_0x35fe9a;super[_0x2e3485(0x264)](),this['_entities'][_0x2e3485(0x2b2)](_0x5cfd99=>_0x5cfd99['dispose']()),this[_0x2e3485(0x3b1)][_0x2e3485(0x3e9)]();}[_0x35fe9a(0x3ac)](_0x19f207){const _0x4d35d9=_0x35fe9a;var _0x9a9b8d;return(_0x9a9b8d=this[_0x4d35d9(0x3b1)][_0x4d35d9(0x3e8)](_0x19f207))!=null?_0x9a9b8d:null;}['getCollabEntity$'](_0x5d2685){const _0x39edc7=_0x35fe9a,_0x439f14=this[_0x39edc7(0x3ac)](_0x5d2685);return _0x439f14?_0x214b8f(_0x439f14):this['_entityInit$'][_0x39edc7(0x332)](_0xa67359(_0x21bff6=>_0x21bff6['unitID']===_0x5d2685));}[_0x35fe9a(0x31f)](){const _0x409c94=_0x35fe9a;this[_0x409c94(0x262)]['getTypeOfUnitAdded$'](_0x9a39b6[_0x409c94(0x339)])[_0x409c94(0x332)](_0x2c14e9(this[_0x409c94(0x3b0)]),_0x4d03e2(0x10))[_0x409c94(0x40e)](async _0xcf84e7=>{const _0x20dc19=_0x409c94,_0x539a12=_0xcf84e7['getUnitId'](),_0x435dc3=await this[_0x20dc19(0x254)](_0x539a12,H[_0x20dc19(0x339)]);this[_0x20dc19(0x3b1)][_0x20dc19(0x445)](_0x539a12,_0x435dc3);}),this['_univerInstanceService'][_0x409c94(0x246)](_0x9a39b6[_0x409c94(0x1f2)])[_0x409c94(0x332)](_0x2c14e9(this['dispose$']),_0x4d03e2(0x10))[_0x409c94(0x332)](_0xa67359(_0x7033d7=>!_0x7033d7[_0x409c94(0x22b)]()[_0x409c94(0x421)]('__')))['subscribe'](async _0x312dd9=>{const _0x1dadb3=_0x409c94,_0x1f271f=_0x312dd9[_0x1dadb3(0x22b)](),_0x400322=await this[_0x1dadb3(0x254)](_0x1f271f,H[_0x1dadb3(0x1f2)]);this['_entities'][_0x1dadb3(0x445)](_0x1f271f,_0x400322);}),_0x17d598(this[_0x409c94(0x262)]['getTypeOfUnitDisposed$'](_0x9a39b6[_0x409c94(0x339)]),this[_0x409c94(0x262)][_0x409c94(0x3d9)](_0x9a39b6[_0x409c94(0x1f2)]))[_0x409c94(0x332)](_0x2c14e9(this[_0x409c94(0x3b0)]))[_0x409c94(0x40e)](_0x1fdb82=>{const _0x5fd36b=_0x409c94,_0xafcc6e=_0x1fdb82[_0x5fd36b(0x22b)](),_0x17363c=this[_0x5fd36b(0x3b1)][_0x5fd36b(0x3e8)](_0xafcc6e);_0x17363c&&(_0x17363c[_0x5fd36b(0x264)](),this['_entities']['delete'](_0xafcc6e));});}async[_0x35fe9a(0x254)](_0x59551a,_0x1bd32e){const _0x3e1c4a=_0x35fe9a,_0x67cb75=await this[_0x3e1c4a(0x2bf)][_0x3e1c4a(0x2ef)](_0x59551a),_0x1773bd=this[_0x3e1c4a(0x325)][_0x3e1c4a(0x26b)](this['_getCtorByUniverType'](_0x1bd32e),_0x59551a,_0x1bd32e,_0x67cb75);return await _0x1773bd[_0x3e1c4a(0x2fb)](),this[_0x3e1c4a(0x24b)][_0x3e1c4a(0x3be)](_0x1773bd),_0x1773bd;}[_0x35fe9a(0x199)](_0x293c21){const _0x534403=_0x35fe9a;switch(_0x293c21){case H[_0x534403(0x1f2)]:return dt;case H[_0x534403(0x339)]:return ft;default:throw new Error(_0x534403(0x2a5)+_0x293c21);}}};Ee=Je([_0x47af0a(_0x550976['Starting'],Ee),S(0x0,_0x5b3e40(_0x331eca)),S(0x1,_0x5b3e40(Re)),S(0x2,_0x1ffae8)],Ee);let We=class extends _0x2f203c{constructor(_0x3dd122,_0x2d3634,_0x2a02d1,_0x54c5e0,_0xb92134,_0x34e13d,_0x509720,_0x35c86c,_0x58a33f,_0x44a315,_0x28831b,_0x2d6cfb,_0x208a43){const _0x8d1c13=_0x35fe9a;super(),l(this,'_state$',new _0x316dfa(null)),l(this,_0x8d1c13(0x36b),this['_state$']['asObservable']()),l(this,_0x8d1c13(0x17e)),l(this,_0x8d1c13(0x256),!0x1),l(this,_0x8d1c13(0x287),this[_0x8d1c13(0x36b)][_0x8d1c13(0x332)](_0x134cb9(_0x51b31b=>_0x51b31b?_0x51b31b[_0x8d1c13(0x30b)]:P[_0x8d1c13(0x2e8)]),_0x25b33b(0x1))),l(this,_0x8d1c13(0x269),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x8d1c13(0x19e)]=_0x3dd122,this[_0x8d1c13(0x2c4)]=_0x2d3634,this['_session']=_0x2a02d1,this[_0x8d1c13(0x325)]=_0x54c5e0,this['_localCacheService']=_0xb92134,this[_0x8d1c13(0x330)]=_0x34e13d,this[_0x8d1c13(0x480)]=_0x509720,this[_0x8d1c13(0x398)]=_0x35c86c,this['_logService']=_0x58a33f,this[_0x8d1c13(0x3d3)]=_0x44a315,this[_0x8d1c13(0x3a2)]=_0x28831b,this[_0x8d1c13(0x31b)]=_0x2d6cfb,this[_0x8d1c13(0x477)]=_0x208a43);}get[_0x35fe9a(0x19c)](){const _0x33c4a3=_0x35fe9a;return this[_0x33c4a3(0x17e)];}async['init'](){const _0x1188cb=_0x35fe9a;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x1188cb(0x31f)]();}[_0x35fe9a(0x285)](){const _0x23df02=_0x35fe9a;return this[_0x23df02(0x256)]=!0x0,_0x5b60bf(()=>{const _0x5e051c=_0x23df02;this[_0x5e051c(0x256)]=!0x1,this[_0x5e051c(0x3a6)]();});}['_updateState'](_0x1c5145){const _0x1e539b=_0x35fe9a;this[_0x1e539b(0x17e)]=_0x1c5145,this['_state$'][_0x1e539b(0x3be)](_0x1c5145);}async[_0x35fe9a(0x31f)](){const _0x4b1004=_0x35fe9a;var _0x2844aa;return this[_0x4b1004(0x3c2)](await this[_0x4b1004(0x28b)]()),this[_0x4b1004(0x477)]&&((_0x2844aa=this[_0x4b1004(0x477)])==null||_0x2844aa['editingUnit'](this[_0x4b1004(0x19e)]),this[_0x4b1004(0x382)](_0x5b60bf(this[_0x4b1004(0x477)][_0x4b1004(0x1b0)](this[_0x4b1004(0x19e)])[_0x4b1004(0x40e)](_0x2eafb2=>{const _0x4fd91e=_0x4b1004;this[_0x4fd91e(0x248)][_0x4fd91e(0x28f)](_0x4fd91e(0x313),'editing\x20status\x20changed\x20to',_0x2eafb2),_0x2eafb2===Ts[_0x4fd91e(0x416)]?(this[_0x4fd91e(0x3a2)][_0x4fd91e(0x18c)]({'content':this[_0x4fd91e(0x480)]['t']('collaboration.single-unit.warning'),'type':_0x1b5516['Warning']}),this[_0x4fd91e(0x31b)][_0x4fd91e(0x265)](new _0x1a9d94(this[_0x4fd91e(0x19e)])['id'],!0x1)):this[_0x4fd91e(0x31b)][_0x4fd91e(0x265)](new _0x1a9d94(this[_0x4fd91e(0x19e)])['id'],!0x0);})))),this[_0x4b1004(0x382)](_0x5b60bf(this['_session'][_0x4b1004(0x227)]['subscribe'](_0x4892f9=>{const _0x57908e=_0x4b1004;_0x4892f9===_e[_0x57908e(0x3fc)]?this[_0x57908e(0x25d)]():_0x4892f9===_e[_0x57908e(0x2e8)]&&this['_toggleOffline']();}))),this['disposeWithMe'](_0x5b60bf(this['_session'][_0x4b1004(0x3c4)][_0x4b1004(0x40e)](_0x5f3c2b=>{const _0x215dac=_0x4b1004;try{switch(_0x5f3c2b[_0x215dac(0x1b6)]){case _0x20b5fc[_0x215dac(0x178)]:{this[_0x215dac(0x40f)](_0x41e0db(_0x5f3c2b[_0x215dac(0x2c5)]));break;}case _0x20b5fc[_0x215dac(0x315)]:{this['_onRemoteACK'](_0x5f3c2b[_0x215dac(0x2c5)]);break;}case _0x20b5fc[_0x215dac(0x205)]:{this[_0x215dac(0x19a)]();break;}case _0x20b5fc[_0x215dac(0x29c)]:{this[_0x215dac(0x252)](_0x5f3c2b[_0x215dac(0x2c5)]['changesets'][_0x215dac(0x240)](_0x29dfc5=>_0x41e0db(_0x29dfc5)));break;}case _0x20b5fc[_0x215dac(0x380)]:this[_0x215dac(0x19a)]({'isPermissionRej':!0x0});}}catch(_0x2b3102){throw console[_0x215dac(0x185)]('Error\x20on\x20receiving\x20event',_0x2b3102),_0x2b3102;}}))),this[_0x4b1004(0x17e)];}[_0x35fe9a(0x44d)](){this['_transitionLocked']=!0x1;}[_0x35fe9a(0x225)](){const _0x3f51a9=_0x35fe9a;if(this[_0x3f51a9(0x269)])throw new Error(_0x3f51a9(0x2b1));this[_0x3f51a9(0x269)]=!0x0;}['_onLocalMutation'](_0x550026){const _0x8f90f9=_0x35fe9a;this['_lockTransition'](),this[_0x8f90f9(0x3c2)](this[_0x8f90f9(0x17e)]['appendMutation'](_0x550026)),this['_unlockTransition']();}[_0x35fe9a(0x40f)](_0x2b5ba2){const _0x398119=_0x35fe9a;if(!(_0x2b5ba2[_0x398119(0x232)]<=this[_0x398119(0x398)][_0x398119(0x1ae)](this['unitID']))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x2b5ba2);return;}this[_0x398119(0x2e3)](_0x2b5ba2);}}[_0x35fe9a(0x3a6)](){const _0x32361a=_0x35fe9a;this[_0x32361a(0x3cc)][_0x32361a(0x2b2)](_0x3c3422=>this[_0x32361a(0x2e3)](_0x3c3422)),this[_0x32361a(0x3cc)]=[];}[_0x35fe9a(0x2e3)](_0x432f74){const _0x276766=_0x35fe9a,_0x3b773b=this[_0x276766(0x330)][_0x276766(0x385)][_0x276766(0x2f3)](this[_0x276766(0x330)]['interceptor']['getInterceptPoints']()[_0x276766(0x46b)])(_0x432f74[_0x276766(0x3e5)],null)||_0x432f74[_0x276766(0x3e5)],_0x5397a0={..._0x432f74,'mutations':_0x3b773b};this['_lockTransition'](),this[_0x276766(0x3c2)](this[_0x276766(0x17e)][_0x276766(0x399)](_0x5397a0)),this['_unlockTransition']();}['_onRemoteACK'](_0x15620f){const _0x4c5047=_0x35fe9a;this['_lockTransition'](),this[_0x4c5047(0x3c2)](this[_0x4c5047(0x17e)]['onRemoteAck'](_0x15620f)),this[_0x4c5047(0x44d)]();}[_0x35fe9a(0x19a)](_0x161845){const _0xea1af=_0x35fe9a;this[_0xea1af(0x225)](),this['_updateState'](this[_0xea1af(0x17e)]['onRemoteRej'](_0x161845)),this[_0xea1af(0x44d)]();}['_onFetchMissResult'](_0x330901){const _0x2c711e=_0x35fe9a;if(!(this[_0x2c711e(0x17e)]instanceof W))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x1879b5=_0x330901['map'](_0x30fc23=>{const _0x22f02b=_0x2c711e,_0x1df176=this[_0x22f02b(0x330)][_0x22f02b(0x385)][_0x22f02b(0x2f3)](this[_0x22f02b(0x330)]['interceptor'][_0x22f02b(0x404)]()[_0x22f02b(0x46b)])(_0x30fc23[_0x22f02b(0x3e5)],null)||_0x30fc23['mutations'];return{..._0x30fc23,'mutations':_0x1df176};});this['_lockTransition'](),this[_0x2c711e(0x3c2)](this[_0x2c711e(0x17e)]['onMissedChangesetFetched'](_0x1879b5)),this[_0x2c711e(0x44d)]();}[_0x35fe9a(0x425)](){const _0xd24235=_0x35fe9a;this[_0xd24235(0x225)](),this['_updateState'](this[_0xd24235(0x17e)][_0xd24235(0x23b)]()),this[_0xd24235(0x44d)]();}[_0x35fe9a(0x25d)](){const _0x3ec1d7=_0x35fe9a;this['_lockTransition'](),this[_0x3ec1d7(0x3c2)](this['_state'][_0x3ec1d7(0x1fc)]()),this[_0x3ec1d7(0x44d)]();}async['_createInitialState'](){return new Promise(_0x2f07a4=>{const _0xd5855a=_0x2564;this[_0xd5855a(0x222)][_0xd5855a(0x227)][_0xd5855a(0x332)](_0x403f5b(0x1))[_0xd5855a(0x40e)](async _0x3d0a25=>{const _0x1735ba=_0xd5855a;_0x2f07a4(await this[_0x1735ba(0x464)](_0x3d0a25===_e[_0x1735ba(0x3fc)]));});});}[_0x35fe9a(0x1cc)](){const _0x5e4d6b=_0x35fe9a,_0x1bb934=this[_0x5e4d6b(0x19e)];return{'onStateChange':(_0x45e641,_0x53cdd9)=>{const _0x1e0707=_0x5e4d6b;if(_0x45e641!==this[_0x1e0707(0x17e)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x45e641['status']+_0x1e0707(0x201)+_0x53cdd9[_0x1e0707(0x30b)]+_0x1e0707(0x35e)+this[_0x1e0707(0x17e)][_0x1e0707(0x30b)]);this[_0x1e0707(0x3c2)](_0x53cdd9);},'onSendChangeset':_0x57ae7d=>{const _0x490b4f=_0x5e4d6b,_0x185b1b={'eventID':_0x20b5fc[_0x490b4f(0x1b1)],'data':{'unitID':_0x57ae7d[_0x490b4f(0x19e)],'unitType':this[_0x490b4f(0x2c4)],'changeset':_0x57ae7d,'memberID':this['_session']['getMemberID']()}};this[_0x490b4f(0x222)][_0x490b4f(0x36c)](_0x185b1b,this['unitID']);},'onMissingChangesets':({from:_0x1a8f59,to:_0x5b513a})=>{const _0x42b962=_0x5e4d6b;this[_0x42b962(0x248)]['debug']('[CollaborationEntity]',_0x42b962(0x1fe)+_0x1a8f59+_0x42b962(0x1c3)+_0x5b513a);const _0x25b59d={'eventID':_0x20b5fc[_0x42b962(0x20a)],'data':{'unitID':_0x1bb934,'unitType':this[_0x42b962(0x2c4)],'from':_0x1a8f59,'to':_0x5b513a}};this[_0x42b962(0x222)]['send'](_0x25b59d,this[_0x42b962(0x19e)]);}};}async[_0x35fe9a(0x464)](_0x5bf3e1){const _0x298000=_0x35fe9a;var _0x25eabc,_0x545f68;const _0x22da4e=await this[_0x298000(0x3d7)][_0x298000(0x299)](this['unitID']),_0x317c6c=(_0x25eabc=_0x22da4e==null?void 0x0:_0x22da4e[_0x298000(0x3e5)])!=null?_0x25eabc:[],_0x398fee=(_0x545f68=_0x22da4e==null?void 0x0:_0x22da4e[_0x298000(0x2be)])!=null?_0x545f68:null,_0x12bf5d=this[_0x298000(0x19e)];try{this[_0x298000(0x305)](_0x398fee,_0x317c6c);}catch(_0x2af1c5){this[_0x298000(0x248)]['error'](_0x2af1c5);}const _0x35bd88=this[_0x298000(0x1cc)]();if(_0x5bf3e1){const _0x1f9a9e=Ds(this[_0x298000(0x325)],_0x12bf5d,this[_0x298000(0x2c4)],_0x398fee,_0x317c6c,_0x35bd88);return _0x1f9a9e instanceof V?_0x1f9a9e[_0x298000(0x1ec)]():(_0x1f9a9e instanceof k||_0x1f9a9e instanceof K)&&_0x1f9a9e['resend'](),_0x1f9a9e;}return this['_injector'][_0x298000(0x26b)](X,_0x12bf5d,this[_0x298000(0x2c4)],_0x398fee,_0x317c6c,_0x35bd88);}['_replayCachedMutations'](_0x239471,_0x23b787){const _0x4ee0c7=_0x35fe9a;var _0x5ec58d,_0x3eb002;const _0xa55229=this[_0x4ee0c7(0x330)][_0x4ee0c7(0x385)][_0x4ee0c7(0x2f3)](this[_0x4ee0c7(0x330)][_0x4ee0c7(0x385)][_0x4ee0c7(0x404)]()[_0x4ee0c7(0x46b)]);(_0x5ec58d=_0xa55229((_0x239471==null?void 0x0:_0x239471[_0x4ee0c7(0x3e5)])||[],null))==null||_0x5ec58d['forEach'](_0x513d36=>this[_0x4ee0c7(0x3d3)][_0x4ee0c7(0x356)](_0x513d36['id'],_0x513d36[_0x4ee0c7(0x3b4)])),(_0x3eb002=_0xa55229(_0x23b787||[],null))==null||_0x3eb002[_0x4ee0c7(0x2b2)](_0x30e3e6=>this[_0x4ee0c7(0x3d3)]['executeCommand'](_0x30e3e6['id'],_0x30e3e6['params']));}};We=Je([S(0x3,_0x5b3e40(_0x331eca)),S(0x4,_0x5b3e40(D)),S(0x5,_0x5b3e40(_0x3c2828)),S(0x6,_0x5b3e40(_0x210cec)),S(0x7,_0x5b3e40(_0x53eb10)),S(0x8,_0x294e85),S(0x9,_0x373f07),S(0xa,_0x22dc6a),S(0xb,_0x58ae2b),S(0xc,_0xb29030(Xe))],We);let dt=class extends We{constructor(_0xe0633e,_0x307876,_0x64fdd0,_0x31de07,_0x4a3265,_0x141a00,_0x53b2fe,_0x450416,_0x455383,_0x1944ce,_0x13ea40,_0x12f754,_0x23f6b9,_0x36b6fe,_0xdddf1e,_0x4e62ee,_0x41512d){const _0x141dcd=_0x35fe9a;super(_0xe0633e,_0x307876,_0x64fdd0,_0x31de07,_0x4a3265,_0x141a00,_0x53b2fe,_0x450416,_0x23f6b9,_0x36b6fe,_0xdddf1e,_0x4e62ee,_0x41512d),this[_0x141dcd(0x19e)]=_0xe0633e,this[_0x141dcd(0x279)]=_0x307876,this[_0x141dcd(0x1d6)]=_0x64fdd0,this['_docStateChangeManagerService']=_0x455383,this[_0x141dcd(0x422)]=_0x1944ce,this[_0x141dcd(0x3aa)]=_0x13ea40,this['_docSyncEditingCollabCursorService']=_0x12f754;}['_createHandler'](){const _0x16e1f5=_0x35fe9a,_0x21aa94=super[_0x16e1f5(0x1cc)]();return _0x21aa94['onTransformIME']=_0x2b0914=>this[_0x16e1f5(0x422)][_0x16e1f5(0x42f)](_0x2b0914),_0x21aa94[_0x16e1f5(0x1d4)]=_0x422264=>this[_0x16e1f5(0x3aa)][_0x16e1f5(0x273)](_0x422264),_0x21aa94[_0x16e1f5(0x176)]=_0x1e5a5c=>this[_0x16e1f5(0x1ef)][_0x16e1f5(0x324)](_0x1e5a5c),_0x21aa94[_0x16e1f5(0x371)]=_0xe3e015=>this['_docTransformIMECacheService'][_0x16e1f5(0x1e8)](_0xe3e015),_0x21aa94;}async[_0x35fe9a(0x31f)](){const _0x9bd343=_0x35fe9a,_0x50f1bc=await super[_0x9bd343(0x31f)]();return this[_0x9bd343(0x3e1)][_0x9bd343(0x316)]['pipe'](_0x2c14e9(this[_0x9bd343(0x3b0)]))['subscribe'](_0x28ae1e=>{const _0x560958=_0x9bd343;if(_0x28ae1e==null)return;const {unitId:_0x3a893b,redoState:_0x4d0b7a,commandId:_0x21b458}=_0x28ae1e;if(_0x3a893b!==this[_0x560958(0x19e)])return;const _0x35dd0d={'id':_0x21b458,'type':_0x4c88fc[_0x560958(0x18e)],'params':{'unitId':_0x3a893b,'actions':_0x4d0b7a[_0x560958(0x33e)],'textRanges':null}};this['_onLocalMutation'](_0x35dd0d);}),_0x50f1bc;}};dt=Je([S(0x3,_0x5b3e40(_0x331eca)),S(0x4,_0x5b3e40(D)),S(0x5,_0x5b3e40(_0x3c2828)),S(0x6,_0x5b3e40(_0x210cec)),S(0x7,_0x5b3e40(_0x53eb10)),S(0x8,_0x5b3e40(_0xa21473)),S(0x9,_0x5b3e40(Be)),S(0xa,_0x5b3e40(Ve)),S(0xb,_0x5b3e40(Mt)),S(0xc,_0x294e85),S(0xd,_0x373f07),S(0xe,_0x22dc6a),S(0xf,_0x58ae2b),S(0x10,_0xb29030(Xe))],dt);let ft=class extends We{constructor(_0x4f1ca8,_0x439825,_0x53fd62,_0x11d05d,_0x4aaf77,_0x1143a4,_0x16bce2,_0x54223f,_0x5d1025,_0x579f05,_0x1fb2f2,_0x1d7f0c,_0xf99392,_0x1b9cbf){const _0x3d8f0a=_0x35fe9a;super(_0x4f1ca8,_0x439825,_0x53fd62,_0x11d05d,_0x4aaf77,_0x1143a4,_0x16bce2,_0x54223f,_0x579f05,_0x1fb2f2,_0x1d7f0c,_0xf99392,_0x1b9cbf),this[_0x3d8f0a(0x19e)]=_0x4f1ca8,this[_0x3d8f0a(0x279)]=_0x439825,this['session']=_0x53fd62,this[_0x3d8f0a(0x200)]=_0x5d1025;}[_0x35fe9a(0x1cc)](){const _0x2582c9=_0x35fe9a,_0x59881e=super[_0x2582c9(0x1cc)]();return _0x59881e[_0x2582c9(0x1d4)]=_0xb21171=>this[_0x2582c9(0x200)][_0x2582c9(0x273)](_0xb21171),_0x59881e;}async[_0x35fe9a(0x31f)](){const _0x32e346=_0x35fe9a,_0x17c667=await super['_init']();return this[_0x32e346(0x382)](this[_0x32e346(0x3d3)][_0x32e346(0x384)]((_0x33d4c3,_0x3f7820)=>{const _0x4ddb23=_0x32e346;if(_0x33d4c3[_0x4ddb23(0x279)]!==_0x4c88fc['MUTATION']||_0x3f7820!=null&&_0x3f7820[_0x4ddb23(0x217)]||_0x3f7820!=null&&_0x3f7820[_0x4ddb23(0x21f)])return;const _0x2d36f9=_0x33d4c3[_0x4ddb23(0x3b4)];if((_0x2d36f9==null?void 0x0:_0x2d36f9[_0x4ddb23(0x45b)])!==this[_0x4ddb23(0x19e)])return;const _0x44b8e7=_0x33d4c3,_0x4df3ea=this[_0x4ddb23(0x330)][_0x4ddb23(0x385)][_0x4ddb23(0x2f3)](this[_0x4ddb23(0x330)][_0x4ddb23(0x385)][_0x4ddb23(0x404)]()[_0x4ddb23(0x173)])([_0x44b8e7],null)||[_0x44b8e7];this[_0x4ddb23(0x44b)](_0x4df3ea[0x0]);})),_0x17c667;}};ft=Je([S(0x3,_0x5b3e40(_0x331eca)),S(0x4,_0x5b3e40(D)),S(0x5,_0x5b3e40(_0x3c2828)),S(0x6,_0x5b3e40(_0x210cec)),S(0x7,_0x5b3e40(_0x53eb10)),S(0x8,_0x5b3e40(ke)),S(0x9,_0x294e85),S(0xa,_0x373f07),S(0xb,_0x22dc6a),S(0xc,_0x58ae2b),S(0xd,_0xb29030(Xe))],ft);const Zt=[_0x35fe9a(0x336),'jiqing500',_0x35fe9a(0x326),_0x35fe9a(0x1e2),_0x35fe9a(0x1d2),_0x35fe9a(0x17f)];class At extends _0x2b2023{constructor(){const _0x245e8e=_0x35fe9a;super(...arguments),l(this,_0x245e8e(0x46d),new Map()),l(this,_0x245e8e(0x2c6),0x0);}[_0x35fe9a(0x38f)](_0x513080){const _0x19c61a=_0x35fe9a;if(this[_0x19c61a(0x46d)][_0x19c61a(0x189)](_0x513080))return this[_0x19c61a(0x46d)]['get'](_0x513080);const _0x45cbcc=Zt[this[_0x19c61a(0x2c6)]];return this[_0x19c61a(0x2c6)]=(this[_0x19c61a(0x2c6)]+0x1)%Zt['length'],this[_0x19c61a(0x46d)][_0x19c61a(0x445)](_0x513080,_0x45cbcc),_0x45cbcc;}}var kn=Object['defineProperty'],Wn=Object['getOwnPropertyDescriptor'],Gn=(_0x3f9bdb,_0x323d86,_0x43ad53,_0x8be58b)=>{for(var _0x2d2fa7=_0x8be58b>0x1?void 0x0:_0x8be58b?Wn(_0x323d86,_0x43ad53):_0x323d86,_0x5a2544=_0x3f9bdb['length']-0x1,_0x560753;_0x5a2544>=0x0;_0x5a2544--)(_0x560753=_0x3f9bdb[_0x5a2544])&&(_0x2d2fa7=(_0x8be58b?_0x560753(_0x323d86,_0x43ad53,_0x2d2fa7):_0x560753(_0x2d2fa7))||_0x2d2fa7);return _0x8be58b&&_0x2d2fa7&&kn(_0x323d86,_0x43ad53,_0x2d2fa7),_0x2d2fa7;},ae=(_0x4884e1,_0xba41ff)=>(_0x360f72,_0x4b9812)=>_0xba41ff(_0x360f72,_0x4b9812,_0x4884e1);const Yn=0x12c,Kn=0x64,Xn=()=>{let _0x1f79f0=[],_0x3709fe=!0x1;return _0x8a1ac=>{_0x1f79f0['push'](_0x8a1ac),_0x3709fe||(_0x3709fe=!0x0,setTimeout(()=>{_0x1f79f0['forEach'](_0x7b7820=>_0x7b7820()),_0x1f79f0=[],_0x3709fe=!0x1;}));};};let gt=class extends _0x2f203c{constructor(_0x2164f2,_0x424688,_0x20a0a0,_0x39bdac,_0x294bfd,_0x583c58,_0x1ed166,_0x273a46){const _0x21fbdc=_0x35fe9a;super(),l(this,_0x21fbdc(0x411),!0x1),l(this,'_init',!0x1),l(this,_0x21fbdc(0x42b),new _0x316dfa(new Map())),l(this,_0x21fbdc(0x403),this[_0x21fbdc(0x42b)][_0x21fbdc(0x36f)]()),l(this,'_roomMembers$',new _0x316dfa([])),l(this,'roomMembers$',this[_0x21fbdc(0x417)][_0x21fbdc(0x332)](_0x4831d6(Yn))),l(this,_0x21fbdc(0x172),_0x20a066((_0x3f23f,_0x13207d)=>{const _0x3b1641=_0x21fbdc,_0x317c3f={'eventID':_0x20b5fc['UPDATE_CURSOR'],'data':{'unitID':this[_0x3b1641(0x19e)],'memberID':this['_session'][_0x3b1641(0x3e4)](),'selection':_0x1c04be(_0x3f23f,_0x13207d[_0x3b1641(0x1b8)])}};this[_0x3b1641(0x222)][_0x3b1641(0x36c)](_0x317c3f,this['unitID']);},Kn)),(this[_0x21fbdc(0x19e)]=_0x2164f2,this['_session']=_0x424688,this[_0x21fbdc(0x325)]=_0x20a0a0,this[_0x21fbdc(0x45a)]=_0x39bdac,this[_0x21fbdc(0x367)]=_0x294bfd,this['_univerInstanceService']=_0x583c58,this[_0x21fbdc(0x3d3)]=_0x1ed166,this[_0x21fbdc(0x430)]=_0x273a46);}get['cursorInfo'](){const _0x3c551a=_0x35fe9a;return this[_0x3c551a(0x42b)][_0x3c551a(0x293)]();}get[_0x35fe9a(0x25b)](){const _0x4243e2=_0x35fe9a;return this[_0x4243e2(0x417)][_0x4243e2(0x293)]();}[_0x35fe9a(0x264)](){const _0x4bc937=_0x35fe9a;super[_0x4bc937(0x264)](),this[_0x4bc937(0x42b)][_0x4bc937(0x3be)](new Map()),this['_cursorInfo$'][_0x4bc937(0x2e1)](),this[_0x4bc937(0x417)][_0x4bc937(0x3be)]([]),this['_roomMembers$'][_0x4bc937(0x2e1)]();}[_0x35fe9a(0x2fb)](){const _0x158436=_0x35fe9a;this[_0x158436(0x31f)]||(this[_0x158436(0x31f)]=!0x0,this[_0x158436(0x222)][_0x158436(0x227)]['pipe'](_0x2c14e9(this['dispose$']))[_0x158436(0x40e)](_0x2ea144=>{const _0x5ec6f9=_0x158436;_0x2ea144===_e[_0x5ec6f9(0x3fc)]?this[_0x5ec6f9(0x25d)]():this['_toggleOffline']();}),this[_0x158436(0x222)][_0x158436(0x3c4)][_0x158436(0x332)](_0x2c14e9(this[_0x158436(0x3b0)]))[_0x158436(0x40e)](_0x59f59c=>{const _0x5c0cf2=_0x158436,_0x462715=_0x59f59c[_0x5c0cf2(0x1b6)];_0x462715===_0x20b5fc['UPDATE_CURSOR']&&this[_0x5c0cf2(0x181)](_0x59f59c),_0x462715===_0x20b5fc[_0x5c0cf2(0x42e)]&&this[_0x5c0cf2(0x3da)](_0x59f59c);}),this[_0x158436(0x3fe)](),this[_0x158436(0x382)](this['_commandService'][_0x158436(0x384)](_0x3fcfc0=>{const _0x2683bd=_0x158436;if(this[_0x2683bd(0x411)]&&_0x3fcfc0['id']===_0x49c1dc['id']&&_0x3fcfc0[_0x2683bd(0x3b4)]['unitId']===this[_0x2683bd(0x19e)]){const _0x3b317e=_0x3fcfc0[_0x2683bd(0x3b4)];this[_0x2683bd(0x172)](_0x3b317e[_0x2683bd(0x362)],_0x3b317e[_0x2683bd(0x289)][0x0]);}})));}['_onCursorUpdate'](_0x498078){const _0x8f1860=_0x35fe9a;var _0x245d98,_0xe9037b;const {memberID:_0x456f6c,selection:_0x521c45}=_0x498078[_0x8f1860(0x2c5)],{sheetName:_0x37388c,range:_0x55dfc0}=_0x3fe7cb(_0x521c45),_0x24b88c={'name':(_0xe9037b=(_0x245d98=this[_0x8f1860(0x367)][_0x8f1860(0x286)](this[_0x8f1860(0x19e)],_0x456f6c))==null?void 0x0:_0x245d98[_0x8f1860(0x2f9)])!=null?_0xe9037b:_0x8f1860(0x1b3),'range':this['_getMergeRange'](_0x37388c,_0x55dfc0),'sheetID':_0x37388c,'color':this[_0x8f1860(0x45a)][_0x8f1860(0x38f)](_0x456f6c),'selection':_0x521c45},_0x12c76d=this[_0x8f1860(0x1dc)];_0x12c76d[_0x8f1860(0x445)](_0x456f6c,_0x24b88c),this[_0x8f1860(0x42b)]['next'](_0x12c76d);}['_onCursorDelete'](_0xfb914a){const _0x4ab518=_0x35fe9a,{memberID:_0x4ba074}=_0xfb914a[_0x4ab518(0x2c5)],_0x24afe3=this[_0x4ab518(0x1dc)];_0x24afe3[_0x4ab518(0x46f)](_0x4ba074),this[_0x4ab518(0x42b)][_0x4ab518(0x3be)](_0x24afe3);}['_getMergeRange'](_0xfc807c,_0x4f15b9){const _0x18c05c=_0x35fe9a;var _0x27b921,_0x334a1b;const _0x5d3030=(_0x334a1b=(_0x27b921=this[_0x18c05c(0x262)][_0x18c05c(0x3d0)](this[_0x18c05c(0x19e)]))==null?void 0x0:_0x27b921[_0x18c05c(0x3cd)](_0xfc807c))==null?void 0x0:_0x334a1b[_0x18c05c(0x18d)]();return(_0x5d3030==null?void 0x0:_0x5d3030[_0x18c05c(0x394)](_0x27d56a=>_0x22f9e9[_0x18c05c(0x45c)](_0x27d56a,_0x4f15b9)))||_0x4f15b9;}[_0x35fe9a(0x3fe)](){const _0x2ac2d1=_0x35fe9a,_0x13ef24=new _0x282665(),_0x28f44b=Xn(),_0x530b77=()=>{const _0x3aa362=_0x2564;_0x13ef24[_0x3aa362(0x264)]();const _0x1ddacf=(_0x4c8ae2,_0x58793f,_0x5cbf05,_0x2f5469)=>{const _0x1d5851=_0x3aa362;let _0x5418da=[];switch(_0x4c8ae2['id']){case _0x4d5b56['DeleteRangeMoveLeftCommandId']:{_0x5418da=_0x6ca0a5(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56[_0x1d5851(0x34b)]:{_0x5418da=_0x1e2cc5(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56['InsertColCommandId']:{_0x5418da=_0x35ab5a(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56['InsertRangeMoveDownCommandId']:{_0x5418da=_0x153b04(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56[_0x1d5851(0x208)]:{_0x5418da=_0x5b1c01(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56[_0x1d5851(0x20f)]:{_0x5418da=_0x448db0(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56['MoveRangeCommandId']:{_0x5418da=_0x3fb244(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56[_0x1d5851(0x41e)]:{_0x5418da=_0x22f603(_0x4c8ae2,_0x2f5469);break;}case _0x4d5b56[_0x1d5851(0x2dc)]:{_0x5418da=_0x16f5d1(_0x4c8ae2,_0x2f5469);break;}}const _0x470f9f=_0x577367(_0x5418da,_0x2f5469),_0x4ae27a=this[_0x1d5851(0x1dc)][_0x1d5851(0x3e8)](_0x58793f);if(_0x4ae27a&&_0x470f9f){const _0x86af69={..._0x4ae27a,'range':_0x470f9f};this[_0x1d5851(0x1dc)][_0x1d5851(0x445)](_0x58793f,_0x86af69),_0x28f44b(()=>{const _0x28b673=_0x1d5851,_0x4ce874=this[_0x28b673(0x430)]['registerRefRange'](_0x470f9f,_0x54037a=>(_0x4ce874[_0x28b673(0x264)](),_0x1ddacf(_0x54037a,_0x58793f,_0x5cbf05,_0x470f9f)));_0x13ef24[_0x28b673(0x1f1)](_0x4ce874);});}return{'redos':[],'undos':[]};};this[_0x3aa362(0x1dc)][_0x3aa362(0x2b2)]((_0x46e048,_0x10a133)=>{const _0x223a33=_0x3aa362,{range:_0x30f1f5,sheetID:_0x3a05bc}=_0x46e048,_0x1a1b1c=this[_0x223a33(0x430)]['registerRefRange'](_0x30f1f5,_0x24e309=>(_0x1a1b1c[_0x223a33(0x264)](),_0x1ddacf(_0x24e309,_0x10a133,_0x3a05bc,_0x30f1f5)));_0x13ef24[_0x223a33(0x1f1)](_0x1a1b1c);});};this[_0x2ac2d1(0x382)](_0x5b60bf(this[_0x2ac2d1(0x42b)][_0x2ac2d1(0x40e)](()=>{_0x530b77();})));}[_0x35fe9a(0x25d)](){const _0x5329ef=_0x35fe9a;var _0x1986e8,_0x52f3c1;if(this[_0x5329ef(0x411)]=!0x0,((_0x1986e8=this[_0x5329ef(0x262)]['getFocusedUnit']())==null?void 0x0:_0x1986e8[_0x5329ef(0x22b)]())!==this[_0x5329ef(0x19e)])return;const _0x34d559=(_0x52f3c1=this[_0x5329ef(0x325)][_0x5329ef(0x3e8)](_0x5927f3)[_0x5329ef(0x347)]())==null?void 0x0:_0x52f3c1[0x0],_0x52363c=this[_0x5329ef(0x262)][_0x5329ef(0x395)](_0x9a39b6[_0x5329ef(0x339)])[_0x5329ef(0x255)]();_0x34d559&&_0x52363c&&this[_0x5329ef(0x172)](_0x52363c[_0x5329ef(0x1b2)](),_0x34d559);}[_0x35fe9a(0x425)](){this['_online']=!0x1;}};function _0x4643(){const _0x18fe6e=['_init','svg','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','className','url(#$1','syncEditingCollabCursor','_injector','verdancy600','storage','extend','updateOfflineData','round','conflict.title','_http','_clearLocalCache','pushState','_scene','_compressMutationService','_rescheduleHeartbeatEvent','pipe','_handleJoinEvent','ERROR_IMAGE_TYPE','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','purple300','indexOf','_incrementRevisionNumber','UNIVER_SHEET','univer-online','startColumn','_syncEditingCollabCursor','Error','actions','collaborators','_transformIMECache','call','UNAUTHENTICATED','_getSendChangesetTimeout','target','restore','/object/','getSelections','_transformService','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','[CollaborationSessionService]:\x20socket\x20error','DeleteRangeMoveUpCommandId','collab-text-range-','getUndoRedoMutationParamsCache','_lastPointer','cmd','rgba(255,\x20255,\x20255,\x200.01)','getUnhiddenWorksheets','generateRandomId','Warning','onMouseMove','_isPermissionRej','executeCommand','newValue','getConfig','workbook','currentColor','_hover','baseRev','SNAPSHOT_HAS_BEEN_REMOVED','\x0aCurrent:\x20','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','univer-online-status','_docSkeletonManagerService','subUnitId','_drawAnchor','_transformUndoredo','_showConflictNotification','arc','_memberService','localeService','_updateURLWithCurrentState','?size=','state$','send','connection\x20error','_decreaseWaiting','asObservable','_socket','onTransformRemoteChangesetByIMECache','bottom','[SyncedState]:\x20received\x20rejection.','LICENSE_MAX_UNITS_EXCEEDED','then','/universer-api/stream/file/upload','_acknowledgedAwaitingChangeset','collaborationUniverTypes','_waitForHeartbeatResponse','getOwnPropertySymbols','_retryConnectingTimer','updateMember','propertyIsEnumerable','_snapshotServerService','csAckEvent','PERMISSION_REJ','registerHTTPInterceptor','disposeWithMe','values','onCommandExecuted','interceptor','_loadDoc','removeMember','getResourcesRequest','TOO_MANY_REQUESTS','_sendHeartbeatTimer','_handleEvent','row','[CollaborationSession]','change$','assignAColorForMemberID','_selfUnitIDs','_httpService','/-/object/-/batch_allowed','/object','find','getCurrentUnitForType','defIds','_unitID','_revisionService','onRemoteChangeset','result','_getAPIPrefixPath','PERMISSION_DENIED','_getAPIPrefix','makeDirty','_unitStatus','registerOnClose','disableLocalCache','_messageService','csRejEvent','_executeRemoteChangeset','_socket$','_exhaustRemoteChangesetQueue','url','session.connection-failed','fetch_missing','_docTransformSelectionsService','IDLE','getCollabEntity','_removeCollabCursors','collabStatus.offline','UNKNOWN_CMD','dispose$','_entities','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','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','params','m2Prime','APPLY_REJECT','COMPLETION_FINISHED','post','getCollabEntity$','resourceIDs','_scheduleSaving','readAsDataURL','_substituteRedoStack','next','_replaceFileID','on-line-single','/new_changes','_updateState','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','event$','fetchMissingChangesets','registerComponent','getDataModel','_scheduleHeartbeat','SEND_CHANGESET_TIMEOUT','onRemoteAck','addImageSourceCache','_remoteChangesetQueue','getSheetBySheetId','entries','_heartbeatTimer','getUniverSheetInstance','update','RETRY_CONNECTING_MAX_COUNT','_commandService','univer-pro.collaboration-client.single-active-unit-service','column','urlChange$','_localCacheService','MSG_FOR_ERROR','getTypeOfUnitDisposed$','_onCursorDelete','setInterval','objectID','SNAPSHOT_URL_KEY','_getUploadFileURL','transformChangesets','HELLO','_docStateChangeManagerService','enableOfflineEditing','_onUserJoin','getMemberID','mutations','unsubscribe','_scheduleClearOtherTimer','get','clear','_saveCache','ranges','LIVESHARE_REQUEST_HOST','addObject','currentSkeleton$','setUndoRedoMutationParamsCache','collaboratorID','permissionRejEvent','putCollaborators','routeKey','CHANGESET_REVISION_CONFILICT','objectActions','_getSnapshotAPIPrefix','leaveEvent','onSendChangeset','_clearTimeoutTimer','48107774fUtykI','_getUndoStack','ONLINE','ERROR_IMAGE','_onRefRangeChange','isArray','confirm','[OfflineState]:\x20received\x20changeset.','uni.network.url-service','cursorInfo$','getInterceptPoints','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[PendingState]:\x20unhandled\x20univer\x20type:\x20','FileId','UNKNOWN_CODE','UNIVER_SLIDE','open$','_awaitingChangeset','_undoRedoService','hovered','subscribe','_onRemoteChangeset','_drawRange','_online','session.will-retry','resolve','triggerDblclick','getRenderById','OTHER_CLIENTS_EDITING','_roomMembers$','_removeClearOtherTimer','46AnjcPP','_clearOtherTimers','conflict','originalMeta','_pendingMutations','RemoveColCommandId','UPDATE_CURSOR','prototype','startsWith','_docTransformIMECacheService','getImageSourceCache','/universer-api/comb','_toggleOffline','_document','userID','none','RECV','fillText','_cursorInfo$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','[DataLoaderController]','USERS_LEAVE','transformIMECache','_refRangeService','/universer-api/authz','failed\x20to\x20apply\x20missed\x20changesets!','_syncEditingCollabCursorService','addObjects','image/png','_onUserLeave','location','_hovered','JOINING','joinEvent','message$','_tryEnsureSocket','HEARTBEAT_INTERVAL','HEARTBEAT','_send','[CollaborationState]:\x20apply\x20error!','symbol','_urlService','length','setItem','set','FromArray','href','defineProperty','_configService','Starting','_onLocalMutation','objectType','_unlockTransition','startRow','subscribeEvent','_transformRemoteChangesetByIMECache','_event$','socketService','438pztSEY','file','list','M0\x200H16V16H0z','[FetchMissState]','_anchor','_render','_colorAssignService','unitId','contains','_shapes','assign','pending','onMissedChangesetFetched','/universer-api/file/{fileID}/sign-url','getImage','fillRule','_createInitialStateImpl','synced','LEAVE','xlink:href','_range','socket\x20open.','createSocket','COMPRESS_MUTATION_APPLY','encodeURIComponent','_assignedColors','popstate','delete','OffLineSingle','collabStatus.syncing','push','DEFAULT_FILE_NAME','/resources','40518IsuvYa','_sendHeartbeat','_singleActiveUnitService','_name','incrementRevForDocument','getRangePointData','LIVESHARE_OPERATION','NO_OTHER_CLIENTS_EDITING','loadDoc','put','clearInterval','_localeService','subunit','patch','appendMutation','unshift','_sessionStatus$','registerBeforeClose','USERS_ENTER','[PendingState]:\x20received\x20acknowledgement.','onRemoteRej','save','_updateLocalCursor','COMPRESS_MUTATION_SEND','_anchorDot','permission.title','onSyncEditingCollabCursor','children','NEW_CHANGESETS','div','allowed','on-line-single_clip0_910_349','findNodePositionByCharIndex','ws://127.0.0.1:8000/universer-api/comb/connect','_state','gold400','_getRedoStack','_onCursorUpdate','_handleLeaveEvent','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','getScrollXYByRelativeCoords','error','_status$','_unitId','getViewModel','has','json','_scheduleCollaborationTimeoutTimer','show','getMergeData','MUTATION','catch','_setupSubUnitSync','_members','NOT_FOUND','_loadSheet','HEARTBEAT_TIMEOUT','_checkMissing','lineTo','clearTimeout','_collaborationController','_getCtorByUniverType','_onRemoteRejected','text','state','code','unitID','_getSaveTimeout','Ready','_removeRoom','isEditing','loadSheet','whenReady','submit\x20changeset\x20error!','listCollaborators','_hideTimer','CONNECTOR_DATA_TOO_LARGE','permission.content','_onConnectionFailed','_getScale','transformMutation','APPLY_PERMISSION_DENIED','getCurrentRevForDocument','getTime','getUnitStatus$','SUBMIT_CHANGESET','getSheetId','Unknown\x20user','_saveTaskMap','univer-online-status-title','eventID','unit-cache-','range','HEADER_MENU','APPLY_REVISION_CONFILICT','activeSheet$','path','univerjs-icon\x20univerjs-icon-','setAlpha','clipPath','joinRsp','deepClone','pluginName','\x20to\x20','enableLocalCache','_unitOnClients','_scheduleTimestamp','getOffsetConfig','collabStatus.fetchMiss','LICENSE_IMPORT_SIZE_EXCEEDED','_userManagerService','_themeService','_createHandler','_waitCount','saveSheetBlock','deleteCollaborator','YUUMI_URL_COL_OUT_OF_RANGE','UNRECOGNIZED','blue400','random','onTransformSelections','sessionStatus','session','setTimeout','displayName','UNIVER_UNKNOWN','online','getOwnPropertyDescriptor','cursorInfo','awaiting','_getSignURL','8020880owyrQp','_getAnchorBounding','AWAITING','red300','_onJoinRoomEvent','[CollaborationUndoRedoService]','_draw','removeParam','_onConnectionOpen','transformRemoteChangeset','transformByState','includes','_imageSourceCache','_schedule','LIVESHARE_TERMINATE','textRanges','_docSyncEditingCollabCursorService','LICENSE_EXPORT_SIZE_EXCEEDED','add','UNIVER_DOC','listRoles','_getCurrentRevision','LIVESHARE_NEW_HOST','UniverIcon','_initStatusComponent','saveOfflineData','_localStorageService','_queuedRemoteChangesets','_scheduleReconnection','toggleOnline','top','fetching\x20missing\x20changesets\x20from\x20','transformMutationsWithChangeset','_sheetTransformSelectionsService','\x0aAfter:\x20','123lvVwNt','_getSheetObject','history','CHANGESET_REJ','defs','_onConflict','InsertRangeMoveRightCommandId','offline','FETCH_MISSING','_ws','_socketService','univer-pro.collaboration-client-socket-service','ACTIVE_UNIT_EVENT_CHANNEL','InsertRowCommandId','#FFF','replace','doc.mutation.rich-text-editing','currentTheme$','_collabCursorController','_redoStacks','[UniverCollaborationClientPlugin]','fromCollab','OnLineSingle','replaceState','1840kYwwQB','attrs','reject','_textBubble','_sessions','onlyLocal','/unit/','_updateStatus','_session','_timeoutTimer','c2Prime','_lockTransition','m1Prime','sessionStatus$','height','/rev/','measureText','getUnitId','_cachedData','apply','_collaborationTimeoutTimer','\x20in\x20_schedule.','liveShareNewHost','NOT_COLLAB','revision','getActiveRange','setWaitCount','endColumn','_sendingTimer','endRow','[PendingState]:\x20received\x20rejection.','updateCursorEvent','[OfflineState]:\x20received\x20rejection.','toggleOffline','colorChannel1','_id','/allowed','_socketReady','map','_handleHeartbeatEvent','SYNCED','evenodd','image/bmp','toString','getTypeOfUnitAdded$','_labelPosition','_logService','sheets','/collaborator','_entityInit$','parse','AWAITING_WITH_PENDING','[OfflineState]:\x20received\x20acknowledgement.','CONFLICT','_transformStack','_socketMessageSubscription','_onFetchMissResult','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_startCollaboration','getActiveSheet','_collaborationPaused','_fetchMissChangesets','42840hfVWas','_exhaustSavingTask','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','roomMembers','reduce','_toggleOnline','awaiting_with_pending','min','url(#off-line-single_clip0_910_343)','resend','_univerInstanceService','key','dispose','updatePermissionPoint','_collabCursorState$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getCellPositionByOffset','_transitionLocked','create','createInstance','_substituteUndoStack','setShapeProps','setActiveRange','translate(.97)','1em','_updateLocalCache','?url=','transformSelections','_clearHeartbeatTimer','roomInfos','5448190HEBbxN','_cursors','width','type','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','FAIL','string','transform','hide','_clearScheduledTask','newCsEvent','SNAPSHOT_INVALID_SNAPSHOT','use','setParam','concat','pauseCollaboration','getMember','status$','/universer-api/oidc/authpage','selections','_handler','_createInitialState','_HTTPService','fillStyle','transformUndoRedo','debug','split','_config','_transformUndoRedoStack','getValue','COLLAB_WEB_SOCKET_URL','createCollaborator','saveChangeset','LICENSE_DISTRO_REJECTED','PENDING','loadOfflineData','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','PSEUDO_FETCH_MISSING_RESULT','_snapshotService','save\x20fail\x20reason\x20is\x20','_color','INGEST','isPermissionRej','INVALID_ARGUMENT','_retryCount','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_updateCollabCursors','getUnitOnRev','size','123040mtduWA','fill','unknown','off-line-single_clip0_910_343','getCollabCursors$','encode','univer-offline','collab-text-anchor-','[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.','forEach','closePath','collabStatus.synced','VIEW_MAIN','UNIVER_COLLABORATION_CLIENT_PLUGIN','collaboration-client.offline-data-not-saved','collabCursorState$','_transformPreviousActiveRange','close$','max','_change$','black','awaitingChangeset','_collabSessionService','{fileID}','/fetchmissing?from=','infoRsp','_renderManagerService','_type','data','_colorIndex','collabStatus.notCollab','_notificationService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_onCombEvent','_getDocObject','getCurrent','_clearRedo','30731BOCFwT','onload','with','_startSheetCollabCursor','getCurrentUser','createElement','_clearCollaborationTimeoutTimer','getUnitType','UNDEFINED','_disabled','roles','...','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_cursor','RemoveRowCommandId','_roomMembers','UUID','enableAuthServer','image/jpeg','complete','/universer-api/snapshot','_applyRemoteChangeset','body','onPointerLeave$','onPointerEnter$','drawWith','OFFLINE','isActive','stringify','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','0\x200\x2017\x2016','_onRecvEvent','_ensureSubject','requireSession','socket\x20close','/-/object/list','RETRY_CONNECTING_INTERVAL','fetchThroughInterceptors','INTERNAL_ERROR','tag','url(#on-line-single_clip0_910_349)','searchParams','_submitChangeset','name','c1Prime','init','from','focused$','_initStatusListener','ERROR_EXCEED_SIZE','rev','snapshot','getAncestorScale','selection','liveShareOperation','_replayCachedMutations','_initModules','_joinRoom','JOIN','color','idSuffix','status','_transformSelections','_createSocket','SNAPSHOT_SERVER_URL_KEY','_beforeCloseService','collabStatus.conflict','memberID','_sheetSkeletonManagerService','[CollaborationEntity]','univer-online-status-icon','CHANGESET_ACK','docStateChange$','_handleHover','off-line-single','_clearUndo','APPLY_NON_SEQUENTIAL_REVISION','_permissionService','_updateSubUnitFromURLParams','_uiPartsService','getParam'];_0x4643=function(){return _0x18fe6e;};return _0x4643();}gt=Gn([ae(0x2,_0x5b3e40(_0x331eca)),ae(0x3,_0x5b3e40(At)),ae(0x4,_0x5b3e40(ee)),ae(0x5,_0x1ffae8),ae(0x6,_0x373f07),ae(0x7,_0x5b3e40(_0x3cc16f))],gt);var Jn=Object['defineProperty'],zn=Object[_0x35fe9a(0x1db)],Zn=(_0x3a9b46,_0x2a6f85,_0x370c68,_0x52d004)=>{const _0x2bf41b=_0x35fe9a;for(var _0x240517=_0x52d004>0x1?void 0x0:_0x52d004?zn(_0x2a6f85,_0x370c68):_0x2a6f85,_0x853d11=_0x3a9b46[_0x2bf41b(0x443)]-0x1,_0x257f6f;_0x853d11>=0x0;_0x853d11--)(_0x257f6f=_0x3a9b46[_0x853d11])&&(_0x240517=(_0x52d004?_0x257f6f(_0x2a6f85,_0x370c68,_0x240517):_0x257f6f(_0x240517))||_0x240517);return _0x52d004&&_0x240517&&Jn(_0x2a6f85,_0x370c68,_0x240517),_0x240517;},Z=(_0xd104fd,_0x373ae7)=>(_0x3cc542,_0x342f30)=>_0x373ae7(_0x3cc542,_0x342f30,_0xd104fd);const qn=0x12c,Qn=0x64;let mt=class extends _0x2f203c{constructor(_0x419d71,_0x474b56,_0x5c0d44,_0x21eb2a,_0x53b424,_0x578ec8,_0x209210,_0x4713db,_0x2827fb){const _0x492e08=_0x35fe9a;super(),l(this,_0x492e08(0x411),!0x1),l(this,_0x492e08(0x31f),!0x1),l(this,_0x492e08(0x42b),new _0x316dfa(new Map())),l(this,_0x492e08(0x403),this[_0x492e08(0x42b)][_0x492e08(0x36f)]()),l(this,_0x492e08(0x417),new _0x316dfa([])),l(this,'roomMembers$',this['_roomMembers$'][_0x492e08(0x332)](_0x4831d6(qn))),l(this,_0x492e08(0x172),_0x20a066(_0x562a49=>{const _0x24ac59=_0x492e08,_0x25cac6={'eventID':_0x20b5fc[_0x24ac59(0x41f)],'data':{'unitID':this[_0x24ac59(0x19e)],'memberID':this[_0x24ac59(0x222)][_0x24ac59(0x3e4)](),'selection':Os(_0x562a49)}};this[_0x24ac59(0x222)][_0x24ac59(0x36c)](_0x25cac6,this[_0x24ac59(0x19e)]);},Qn)),(this[_0x492e08(0x19e)]=_0x419d71,this[_0x492e08(0x222)]=_0x474b56,this['_injector']=_0x5c0d44,this[_0x492e08(0x45a)]=_0x21eb2a,this[_0x492e08(0x367)]=_0x53b424,this['_syncEditingCollabCursorService']=_0x578ec8,this['_transformService']=_0x209210,this[_0x492e08(0x262)]=_0x4713db,this[_0x492e08(0x3d3)]=_0x2827fb);}get[_0x35fe9a(0x1dc)](){const _0x1d832c=_0x35fe9a;return this['_cursorInfo$'][_0x1d832c(0x293)]();}get['roomMembers'](){const _0x27c95d=_0x35fe9a;return this[_0x27c95d(0x417)][_0x27c95d(0x293)]();}[_0x35fe9a(0x264)](){const _0x170c26=_0x35fe9a;super[_0x170c26(0x264)](),this[_0x170c26(0x42b)]['next'](new Map()),this[_0x170c26(0x42b)][_0x170c26(0x2e1)](),this['_roomMembers$'][_0x170c26(0x3be)]([]),this['_roomMembers$'][_0x170c26(0x2e1)]();}[_0x35fe9a(0x2fb)](){const _0x4d19ee=_0x35fe9a;this[_0x4d19ee(0x31f)]||(this[_0x4d19ee(0x31f)]=!0x0,this[_0x4d19ee(0x222)][_0x4d19ee(0x227)][_0x4d19ee(0x332)](_0x2c14e9(this[_0x4d19ee(0x3b0)]))[_0x4d19ee(0x40e)](_0x5cb063=>{const _0x3973a9=_0x4d19ee;_0x5cb063===_e[_0x3973a9(0x3fc)]?this[_0x3973a9(0x25d)]():this[_0x3973a9(0x425)]();}),this['_session'][_0x4d19ee(0x3c4)][_0x4d19ee(0x332)](_0x2c14e9(this[_0x4d19ee(0x3b0)]))['subscribe'](_0x3d0b70=>{const _0x1021d1=_0x4d19ee,_0x2b673f=_0x3d0b70[_0x1021d1(0x1b6)];_0x2b673f===_0x20b5fc['UPDATE_CURSOR']&&this[_0x1021d1(0x181)](_0x3d0b70),_0x2b673f===_0x20b5fc['USERS_LEAVE']&&this[_0x1021d1(0x3da)](_0x3d0b70);}),this[_0x4d19ee(0x382)](this[_0x4d19ee(0x3d3)]['onCommandExecuted'](_0x2dd00b=>{const _0x9d9f8c=_0x4d19ee,_0x2871b2=_0x2dd00b[_0x9d9f8c(0x3b4)];_0x2871b2!=null&&this[_0x9d9f8c(0x411)]&&_0x2dd00b['id']===_0x30703b['id']&&_0x2871b2['unitId']===this[_0x9d9f8c(0x19e)]&&_0x2871b2[_0x9d9f8c(0x1a2)]===!0x1&&this['_updateLocalCursor'](_0x2871b2[_0x9d9f8c(0x3eb)]);})),this[_0x4d19ee(0x433)][_0x4d19ee(0x2b8)][_0x4d19ee(0x332)](_0x2c14e9(this[_0x4d19ee(0x3b0)]))[_0x4d19ee(0x40e)](_0x2900b2=>{const _0x31b5dd=_0x4d19ee;if((_0x2900b2==null?void 0x0:_0x2900b2[_0x31b5dd(0x19e)])!==this[_0x31b5dd(0x19e)])return;const _0x39c48d={'eventID':_0x20b5fc[_0x31b5dd(0x41f)],'data':_0x2900b2};this[_0x31b5dd(0x181)](_0x39c48d);}),this[_0x4d19ee(0x382)](this[_0x4d19ee(0x3d3)]['onCommandExecuted'](_0x5d82b7=>{const _0x3b361e=_0x4d19ee;if(_0x5d82b7['params']==null)return;const _0x3264db=_0x5d82b7['params'];if(_0x5d82b7['id']!==_0x250ba2['id']||_0x3264db['unitId']!==this['unitID'])return;const _0x13ad63={'id':_0x3b361e(0x212),'params':_0x3264db},_0x19d15d=this[_0x3b361e(0x1dc)];for(const [_0x2402e5,_0x5ad852]of _0x19d15d){const _0x2e0cfa={'id':_0x3b361e(0x212),'params':{'unitId':this[_0x3b361e(0x19e)],'actions':null,'textRanges':_0x5ad852[_0x3b361e(0x3eb)]}},_0x17c680=this[_0x3b361e(0x348)][_0x3b361e(0x1ac)](_0x13ad63,_0x2e0cfa,!0x1);if(_0x560f2f(_0x17c680))throw _0x17c680[_0x3b361e(0x185)];_0x19d15d['set'](_0x2402e5,{..._0x5ad852,'ranges':_0x17c680['m2Prime'][_0x3b361e(0x3b4)]['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x19d15d);});})));}['_onCursorUpdate'](_0x5b3d65){const _0x446502=_0x35fe9a;var _0x42f72d,_0x1d8798;const {memberID:_0xe03f08,selection:_0x3b3242}=_0x5b3d65[_0x446502(0x2c5)],_0x501ab2=An(_0x3b3242),_0x59ba2a=(_0x1d8798=(_0x42f72d=this[_0x446502(0x367)][_0x446502(0x286)](this[_0x446502(0x19e)],_0xe03f08))==null?void 0x0:_0x42f72d[_0x446502(0x2f9)])!=null?_0x1d8798:_0x446502(0x1b3),_0x557eb0={'color':this[_0x446502(0x45a)]['assignAColorForMemberID'](_0xe03f08),'name':_0x59ba2a,'ranges':_0x501ab2},_0x29ef86=this[_0x446502(0x1dc)];_0x29ef86[_0x446502(0x445)](_0xe03f08,_0x557eb0),this['_cursorInfo$'][_0x446502(0x3be)](_0x29ef86);}[_0x35fe9a(0x3da)](_0x2ffdfa){const _0x33d72d=_0x35fe9a,{memberID:_0x2fb05e}=_0x2ffdfa[_0x33d72d(0x2c5)],_0x413dd0=this[_0x33d72d(0x1dc)];_0x413dd0[_0x33d72d(0x46f)](_0x2fb05e),this[_0x33d72d(0x42b)][_0x33d72d(0x3be)](_0x413dd0);}[_0x35fe9a(0x25d)](){const _0x118a85=_0x35fe9a;var _0x32312b;if(this[_0x118a85(0x411)]=!0x0,((_0x32312b=this[_0x118a85(0x262)]['getFocusedUnit']())==null?void 0x0:_0x32312b[_0x118a85(0x22b)]())!==this[_0x118a85(0x19e)])return;const _0x648a16=this['_injector'][_0x118a85(0x3e8)](_0x200457)[_0x118a85(0x347)](),_0x517ef4=_0x648a16==null?void 0x0:_0x648a16[_0x118a85(0x240)](_0x3dee4a);Array['isArray'](_0x517ef4)&&_0x517ef4['length']>0x0&&this[_0x118a85(0x172)](_0x517ef4);}[_0x35fe9a(0x425)](){const _0x256dce=_0x35fe9a;this[_0x256dce(0x411)]=!0x1;}};mt=Zn([Z(0x2,_0x5b3e40(_0x331eca)),Z(0x3,_0x5b3e40(At)),Z(0x4,_0x5b3e40(ee)),Z(0x5,_0x5b3e40(Mt)),Z(0x6,_0x56176b),Z(0x7,_0x1ffae8),Z(0x8,_0x373f07)],mt);var er=Object[_0x35fe9a(0x448)],tr=Object[_0x35fe9a(0x1db)],sr=(_0x2743b0,_0xd979dc,_0x1f6d21,_0x4d3f8e)=>{const _0x1fcf64=_0x35fe9a;for(var _0x20de6c=_0x4d3f8e>0x1?void 0x0:_0x4d3f8e?tr(_0xd979dc,_0x1f6d21):_0xd979dc,_0x16e0bb=_0x2743b0[_0x1fcf64(0x443)]-0x1,_0x3d5fa4;_0x16e0bb>=0x0;_0x16e0bb--)(_0x3d5fa4=_0x2743b0[_0x16e0bb])&&(_0x20de6c=(_0x4d3f8e?_0x3d5fa4(_0xd979dc,_0x1f6d21,_0x20de6c):_0x3d5fa4(_0x20de6c))||_0x20de6c);return _0x4d3f8e&&_0x20de6c&&er(_0xd979dc,_0x1f6d21,_0x20de6c),_0x20de6c;},st=(_0x50467f,_0x2876cf)=>(_0x2509be,_0x21ffb7)=>_0x2876cf(_0x2509be,_0x21ffb7,_0x50467f);let ue=class extends _0x2f203c{constructor(_0x322a2a,_0x1cc7c3,_0x5142fe){const _0x4153b2=_0x35fe9a;super(),l(this,_0x4153b2(0x3b1),new Map()),l(this,_0x4153b2(0x24b),new _0x3da7e9()),(this[_0x4153b2(0x262)]=_0x322a2a,this[_0x4153b2(0x325)]=_0x1cc7c3,this['_collabSessionService']=_0x5142fe,this['_init']());}[_0x35fe9a(0x264)](){const _0xd2225b=_0x35fe9a;super['dispose'](),this[_0xd2225b(0x24b)][_0xd2225b(0x2e1)](),this[_0xd2225b(0x3b1)][_0xd2225b(0x2b2)](_0x4bb718=>_0x4bb718[_0xd2225b(0x264)]());}[_0x35fe9a(0x2ad)](_0x195496){const _0x3477bf=_0x35fe9a;return this[_0x3477bf(0x3b1)][_0x3477bf(0x189)](_0x195496)?this[_0x3477bf(0x3b1)][_0x3477bf(0x3e8)](_0x195496)[_0x3477bf(0x403)]:this['_entityInit$'][_0x3477bf(0x332)](_0x37e932(_0x14a0ff=>_0x14a0ff[_0x3477bf(0x19e)]===_0x195496),_0x13231a(_0x314aee=>_0x314aee['cursorInfo$']));}[_0x35fe9a(0x31f)](){const _0x59a8d8=_0x35fe9a;this['_univerInstanceService'][_0x59a8d8(0x246)](_0x9a39b6['UNIVER_SHEET'])[_0x59a8d8(0x332)](_0x2c14e9(this[_0x59a8d8(0x3b0)]))['subscribe'](async _0x3d1cd2=>{const _0x4cae7d=_0x59a8d8,_0x24c2ad=_0x3d1cd2[_0x4cae7d(0x22b)](),_0x865a5f=await this[_0x4cae7d(0x2d1)](_0x24c2ad);this[_0x4cae7d(0x24b)][_0x4cae7d(0x3be)](_0x865a5f),this[_0x4cae7d(0x3b1)]['set'](_0x24c2ad,_0x865a5f);}),this[_0x59a8d8(0x262)][_0x59a8d8(0x246)](_0x9a39b6[_0x59a8d8(0x1f2)])[_0x59a8d8(0x332)](_0x2c14e9(this[_0x59a8d8(0x3b0)]))['pipe'](_0x37e932(_0x5e4ade=>!_0x5e4ade['getUnitId']()[_0x59a8d8(0x421)]('__')))['subscribe'](async _0x8135f2=>{const _0x5b4cac=_0x59a8d8,_0x3b2517=_0x8135f2['getUnitId'](),_0xb70078=await this['_startDocCollabCursor'](_0x3b2517);this[_0x5b4cac(0x24b)][_0x5b4cac(0x3be)](_0xb70078),this[_0x5b4cac(0x3b1)][_0x5b4cac(0x445)](_0x3b2517,_0xb70078);}),_0x17d598(this[_0x59a8d8(0x262)]['getTypeOfUnitDisposed$'](_0x9a39b6[_0x59a8d8(0x1f2)]),this[_0x59a8d8(0x262)][_0x59a8d8(0x3d9)](_0x9a39b6[_0x59a8d8(0x339)]))[_0x59a8d8(0x332)](_0x2c14e9(this[_0x59a8d8(0x3b0)]))['subscribe'](_0x5d724d=>{const _0x193fcd=_0x59a8d8,_0x29041b=_0x5d724d[_0x193fcd(0x22b)](),_0x493ac8=this[_0x193fcd(0x3b1)][_0x193fcd(0x3e8)](_0x29041b);_0x493ac8&&(_0x493ac8[_0x193fcd(0x264)](),this[_0x193fcd(0x3b1)]['delete'](_0x29041b));});}async[_0x35fe9a(0x2d1)](_0x4d027d){const _0x2d2cce=_0x35fe9a,_0xbd32ae=await this[_0x2d2cce(0x2bf)][_0x2d2cce(0x2ef)](_0x4d027d),_0x5ed976=this[_0x2d2cce(0x325)][_0x2d2cce(0x26b)](gt,_0x4d027d,_0xbd32ae);return _0x5ed976[_0x2d2cce(0x2fb)](),_0x5ed976;}async['_startDocCollabCursor'](_0x3a3f50){const _0x1a2187=_0x35fe9a,_0x2bace5=await this[_0x1a2187(0x2bf)]['requireSession'](_0x3a3f50),_0x51807b=this['_injector'][_0x1a2187(0x26b)](mt,_0x3a3f50,_0x2bace5);return _0x51807b['init'](),_0x51807b;}};ue=sr([_0x47af0a(_0x550976[_0x35fe9a(0x44a)],ue),st(0x0,_0x1ffae8),st(0x1,_0x5b3e40(_0x331eca)),st(0x2,_0x5b3e40(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,ir=0x5;function nr(_0x330738,_0x3d09fe){const _0x22e13c=_0x35fe9a;let {radius:_0x3057fa,width:_0x1fceb9,height:_0x33bdf8}=_0x3d09fe;_0x3057fa=_0x3057fa!=null?_0x3057fa:0x0,_0x1fceb9=_0x1fceb9!=null?_0x1fceb9:0x1e,_0x33bdf8=_0x33bdf8!=null?_0x33bdf8:0x1e;let _0x12268a=0x0,_0x4239e7=0x0,_0x3252ee=0x0;_0x12268a=_0x4239e7=_0x3252ee=Math[_0x22e13c(0x25f)](_0x3057fa,_0x1fceb9/0x2,_0x33bdf8/0x2),_0x330738['beginPath'](),_0x330738['moveTo'](_0x12268a,0x0),_0x330738[_0x22e13c(0x196)](_0x1fceb9-_0x4239e7,0x0),_0x330738[_0x22e13c(0x366)](_0x1fceb9-_0x4239e7,_0x4239e7,_0x4239e7,Math['PI']*0x3/0x2,0x0,!0x1),_0x330738[_0x22e13c(0x196)](_0x1fceb9,_0x33bdf8-_0x3252ee),_0x330738[_0x22e13c(0x366)](_0x1fceb9-_0x3252ee,_0x33bdf8-_0x3252ee,_0x3252ee,0x0,Math['PI']/0x2,!0x1),_0x330738[_0x22e13c(0x196)](0x0,_0x33bdf8),_0x330738[_0x22e13c(0x196)](0x0,_0x12268a),_0x330738[_0x22e13c(0x366)](_0x12268a,_0x12268a,_0x12268a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x330738[_0x22e13c(0x2b3)](),_0x3d09fe[_0x22e13c(0x2aa)]&&(_0x330738[_0x22e13c(0x171)](),_0x330738[_0x22e13c(0x28d)]=_0x3d09fe[_0x22e13c(0x2aa)],_0x3d09fe[_0x22e13c(0x463)]===_0x22e13c(0x243)?_0x330738[_0x22e13c(0x2aa)]('evenodd'):_0x330738[_0x22e13c(0x2aa)](),_0x330738[_0x22e13c(0x345)]());}class ze extends _0x1205b1{constructor(_0x326a2c,_0x328012){const _0x456c41=_0x35fe9a;super(_0x326a2c,_0x328012),l(this,'color'),l(this,_0x456c41(0x19b)),(this[_0x456c41(0x309)]=_0x328012==null?void 0x0:_0x328012['color'],this['text']=_0x328012==null?void 0x0:_0x328012['text']);}static[_0x35fe9a(0x2e7)](_0x52e2c5,_0x1b056e){const _0x319e6a=_0x35fe9a,{text:_0x3012cc,color:_0x452cff}=_0x1b056e;_0x52e2c5[_0x319e6a(0x171)](),_0x52e2c5['font']=_0x319e6a(0x253);const _0x4f9f43=_0x52e2c5[_0x319e6a(0x22a)](_0x3012cc)[_0x319e6a(0x278)],_0x1f5526=Math[_0x319e6a(0x25f)](_0x4f9f43+0x2*it,qt);nr(_0x52e2c5,{'height':Oe,'radius':0x4,'width':_0x1f5526,'fill':_0x452cff,'evented':!0x1}),_0x52e2c5[_0x319e6a(0x28d)]=_0x319e6a(0x210);const _0x3d7766=it,_0x1aeec1=Oe-ir,_0x541cc0=qt-0x2*it;if(_0x4f9f43>_0x541cc0){let _0x24a309='',_0x34ab3b=0x0;for(const _0x2b0991 of _0x3012cc){const _0x1cc38c=_0x52e2c5['measureText'](_0x2b0991)[_0x319e6a(0x278)];if(_0x34ab3b+_0x1cc38c<=_0x541cc0-_0x52e2c5[_0x319e6a(0x22a)](_0x319e6a(0x2d9))[_0x319e6a(0x278)])_0x24a309+=_0x2b0991,_0x34ab3b+=_0x1cc38c;else{_0x24a309+=_0x319e6a(0x2d9);break;}}_0x52e2c5[_0x319e6a(0x42a)](_0x24a309,_0x3d7766,_0x1aeec1);}else _0x52e2c5['fillText'](_0x3012cc,_0x3d7766,_0x1aeec1);_0x52e2c5[_0x319e6a(0x345)]();}[_0x35fe9a(0x1e5)](_0x466ae8){const _0x36476d=_0x35fe9a;ze[_0x36476d(0x2e7)](_0x466ae8,this);}}const rr=0x1,or=1.5;class ar extends _0x1205b1{constructor(_0x548135,_0x40d7f0){const _0x50ad88=_0x35fe9a;super(_0x548135,_0x40d7f0),l(this,_0x50ad88(0x29f)),l(this,_0x50ad88(0x438),!0x1),l(this,_0x50ad88(0x468)),l(this,'_name',''),l(this,_0x50ad88(0x247),'top'),(_0x40d7f0&&this[_0x50ad88(0x26d)](_0x40d7f0),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x50ad88(0x26d)]({'hovered':!0x0})),this[_0x50ad88(0x2e5)][_0x50ad88(0x44f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x35fe9a(0x26d)](_0x44529a){const _0x33a8ea=_0x35fe9a;var _0x19cace,_0x3ff214,_0xf559d0,_0x391296,_0x21285a;this[_0x33a8ea(0x29f)]=(_0x19cace=_0x44529a[_0x33a8ea(0x309)])!=null?_0x19cace:this['_color'],this[_0x33a8ea(0x438)]=(_0x3ff214=_0x44529a[_0x33a8ea(0x40d)])!=null?_0x3ff214:this[_0x33a8ea(0x438)],this[_0x33a8ea(0x468)]=(_0xf559d0=_0x44529a[_0x33a8ea(0x1b8)])!=null?_0xf559d0:this[_0x33a8ea(0x468)],this[_0x33a8ea(0x478)]=(_0x391296=_0x44529a[_0x33a8ea(0x2f9)])!=null?_0x391296:this[_0x33a8ea(0x478)],this[_0x33a8ea(0x247)]=(_0x21285a=_0x44529a['labelPosition'])!=null?_0x21285a:this[_0x33a8ea(0x247)],this[_0x33a8ea(0x1e9)]({'width':_0x44529a[_0x33a8ea(0x278)],'height':_0x44529a['height']});}[_0x35fe9a(0x354)](_0x3f868a){const _0x48e6eb=_0x35fe9a,{row:_0x280f42,column:_0x255de8}=_0x3f868a;if(_0x280f42>=this['_range'][_0x48e6eb(0x44e)]&&_0x280f42<=this[_0x48e6eb(0x468)][_0x48e6eb(0x237)]&&_0x255de8>=this[_0x48e6eb(0x468)][_0x48e6eb(0x33b)]&&_0x255de8<=this['_range'][_0x48e6eb(0x235)]){this[_0x48e6eb(0x26d)]({'hovered':!0x0});return;}this[_0x48e6eb(0x26d)]({'hovered':!0x1});}[_0x35fe9a(0x414)](_0x1cb258){return!0x1;}[_0x35fe9a(0x1e5)](_0x1f463a){const _0x45bbcc=_0x35fe9a;_0x2d9440['drawWith'](_0x1f463a,{'width':this[_0x45bbcc(0x278)],'height':this[_0x45bbcc(0x228)],'strokeWidth':or,'stroke':this['_color'],'evented':!0x1}),this[_0x45bbcc(0x438)]&&(_0x1f463a[_0x45bbcc(0x171)](),_0x1f463a[_0x45bbcc(0x27d)](0x1,0x0,0x0,0x1,this[_0x45bbcc(0x278)],this['_labelPosition']===_0x45bbcc(0x372)?0x0:-Oe),ze[_0x45bbcc(0x2e7)](_0x1f463a,{'text':this[_0x45bbcc(0x478)],'color':this[_0x45bbcc(0x29f)]}),_0x1f463a[_0x45bbcc(0x345)]());}}var cr=Object['defineProperty'],hr=Object[_0x35fe9a(0x1db)],lr=(_0x4421d5,_0x553dfc,_0x298423,_0x5108b6)=>{for(var _0x187094=_0x5108b6>0x1?void 0x0:_0x5108b6?hr(_0x553dfc,_0x298423):_0x553dfc,_0x58da24=_0x4421d5['length']-0x1,_0xfc9084;_0x58da24>=0x0;_0x58da24--)(_0xfc9084=_0x4421d5[_0x58da24])&&(_0x187094=(_0x5108b6?_0xfc9084(_0x553dfc,_0x298423,_0x187094):_0xfc9084(_0x187094))||_0x187094);return _0x5108b6&&_0x187094&&cr(_0x553dfc,_0x298423,_0x187094),_0x187094;},Me=(_0x1eae12,_0xe4eace)=>(_0x9010d0,_0x4b4559)=>_0xe4eace(_0x9010d0,_0x4b4559,_0x1eae12);const _r=0x1389;let $e=class extends _0x2f203c{constructor(_0x1e862a,_0x1582c3,_0x45295d,_0x33d52d){const _0x1708a9=_0x35fe9a;super(),l(this,'_cursors',new Set()),l(this,_0x1708a9(0x34e),null),(this[_0x1708a9(0x214)]=_0x1e862a,this[_0x1708a9(0x262)]=_0x1582c3,this[_0x1708a9(0x2c3)]=_0x45295d,this[_0x1708a9(0x1cb)]=_0x33d52d,this['_init']());}get[_0x35fe9a(0x312)](){const _0x5be68e=_0x35fe9a;return this[_0x5be68e(0x2c3)][_0x5be68e(0x415)](this[_0x5be68e(0x262)][_0x5be68e(0x395)](_0x9a39b6[_0x5be68e(0x339)])['getUnitId']())[_0x5be68e(0x2d0)](_0x21497f);}get[_0x35fe9a(0x187)](){const _0x8fa49d=_0x35fe9a;return this[_0x8fa49d(0x262)][_0x8fa49d(0x395)](_0x9a39b6[_0x8fa49d(0x339)])[_0x8fa49d(0x22b)]();}[_0x35fe9a(0x31f)](){const _0x227b60=_0x35fe9a;this['_sheetSkeletonManagerService'][_0x227b60(0x3ee)][_0x227b60(0x332)](_0x479f07(this[_0x227b60(0x3b0)]),_0x443800(_0x5b0bf0=>{const _0x555bd1=_0x227b60;if(_0x5b0bf0){const _0x1ebed3=_0x5b0bf0['sheetId'];return _0x409cac(this['_collabCursorController'][_0x555bd1(0x2ad)](this[_0x555bd1(0x187)]),this[_0x555bd1(0x1cb)][_0x555bd1(0x213)])[_0x555bd1(0x332)](_0x134cb9(([_0x109de9,_0x38ae64])=>{const _0x38d655=_0x555bd1,_0x58201d=new Map();return _0x109de9[_0x38d655(0x2b2)]((_0x55077f,_0x2ceae9)=>{const _0x22b0bf=_0x38d655;if(_0x55077f['sheetID']===_0x1ebed3){const _0x4e91ee={..._0x55077f};_0x4e91ee[_0x22b0bf(0x309)]=_0x38ae64[_0x55077f['color']],_0x58201d[_0x22b0bf(0x445)](_0x2ceae9,_0x4e91ee);}}),{'skeleton':_0x5b0bf0,'cursors':_0x58201d};}));}return _0x214b8f({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3517ad,cursors:_0x20d5b1})=>{const _0x597726=_0x227b60;this[_0x597726(0x3ad)](),_0x3517ad&&this['_updateCollabCursors'](_0x3517ad,_0x20d5b1);}),this['_sheetSkeletonManagerService'][_0x227b60(0x3ee)][_0x227b60(0x40e)](_0x1416c7=>{const _0x2c221b=_0x227b60;if(_0x1416c7==null)return;const {skeleton:_0xe63a44}=_0x1416c7,_0x1c086d=this[_0x2c221b(0x2c3)][_0x2c221b(0x415)](this[_0x2c221b(0x187)]),{scene:_0x158e03}=_0x1c086d;_0x158e03['onPointerMove$'][_0x2c221b(0x44f)](_0x20a066(_0x255b3f=>{const _0x451f20=_0x2c221b;var _0x447ef1,_0x54d4fd;const {offsetX:_0x223a47,offsetY:_0x1944b1}=_0x255b3f,{x:_0x3046db,y:_0x2e1878}=_0x158e03['getRelativeCoord'](_0x4b9227[_0x451f20(0x446)]([_0x223a47,_0x1944b1])),{scaleX:_0x2810f1,scaleY:_0x453eed}=_0x158e03[_0x451f20(0x302)](),_0x17ea1d=_0x158e03['getViewport'](_0x247610[_0x451f20(0x2b5)]),_0x4a5d90=_0x158e03[_0x451f20(0x184)](_0x4b9227[_0x451f20(0x446)]([_0x3046db,_0x2e1878]),_0x17ea1d),_0x4e31e1=_0xe63a44[_0x451f20(0x268)](_0x223a47,_0x1944b1,_0x2810f1,_0x453eed,_0x4a5d90);((_0x447ef1=this[_0x451f20(0x34e)])==null?void 0x0:_0x447ef1['column'])===_0x4e31e1[_0x451f20(0x3d5)]&&((_0x54d4fd=this[_0x451f20(0x34e)])==null?void 0x0:_0x54d4fd[_0x451f20(0x38c)])===_0x4e31e1[_0x451f20(0x38c)]||this[_0x451f20(0x277)][_0x451f20(0x2b2)](_0x745ded=>{const _0x5c9ec8=_0x451f20;_0x745ded[_0x5c9ec8(0x354)](_0x4e31e1);});},0x64));});}[_0x35fe9a(0x2a6)](_0x3e79a9,_0x159413){const _0x9291cf=_0x35fe9a;var _0x8bfe97;const _0x166ed6=(_0x8bfe97=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x8bfe97['skeleton'];if(!_0x166ed6)return;const _0x3ded28=this[_0x9291cf(0x203)]();if(!_0x3ded28)return;this[_0x9291cf(0x277)][_0x9291cf(0x2b2)](_0x41736a=>{const _0x11b034=_0x9291cf;_0x41736a[_0x11b034(0x39e)]();});const {scene:_0x301d0e}=_0x3ded28,_0x31059d=ur(Array['from'](_0x159413[_0x9291cf(0x383)]()))[_0x9291cf(0x240)](_0x42c8ce=>{const _0x20a57d=_0x9291cf,{color:_0x2674fe,range:_0x399cb9,name:_0x47f5a2,selection:_0x47560c,sheetID:_0x2873f9}=_0x42c8ce,{startColumn:_0x411d58,startRow:_0x4a829c,endColumn:_0x641701,endRow:_0x38055f}=_0x399cb9,_0x33de70=_0x4b86c2(_0x4a829c,_0x411d58,_0x301d0e,_0x166ed6),_0x554e27=_0x4b86c2(_0x38055f,_0x641701,_0x301d0e,_0x166ed6),{columnHeaderHeightAndMarginTop:_0x4d6da8}=_0x166ed6,{startX:_0xc6be6d,startY:_0x482d41}=_0x33de70,{endX:_0x5179d5,endY:_0x3d48c1}=_0x554e27,_0xbdcc3a=_0x5179d5-_0xc6be6d,_0x29197e=_0x3d48c1-_0x482d41,_0x4ca691={'labelPosition':_0x482d41-_0x4d6da8>=Oe?_0x20a57d(0x1fd):_0x20a57d(0x372),'sheetID':_0x2873f9,'range':_0x399cb9,'color':_0x2674fe,'name':_0x47f5a2,'selection':_0x47560c,'left':_0xc6be6d,'top':_0x482d41,'width':_0xbdcc3a,'height':_0x29197e,'evented':!0x1,'zIndex':_r};return new ar(_0x47f5a2,_0x4ca691);});_0x301d0e[_0x9291cf(0x434)](_0x31059d,rr),this[_0x9291cf(0x277)]=new Set(_0x31059d);}['_removeCollabCursors'](){const _0x349d08=_0x35fe9a;var _0xbbfa3;(_0xbbfa3=this[_0x349d08(0x277)])==null||_0xbbfa3[_0x349d08(0x2b2)](_0x4ba7d6=>_0x4ba7d6[_0x349d08(0x264)]());}['_getSheetObject'](){return _0xd1a85(this['_univerInstanceService'],this['_renderManagerService']);}};$e=lr([_0x47af0a(_0x550976['Steady'],$e),Me(0x0,_0x5b3e40(ue)),Me(0x1,_0x1ffae8),Me(0x2,_0x458795),Me(0x3,_0x5b3e40(_0x166891))],$e);function ur(_0x2373e5){const _0x526365=_0x35fe9a,_0x3eb6a6=new Map();return _0x2373e5[_0x526365(0x2b2)](_0x38c8cf=>{const _0x4b4b3e=_0x526365;if(_0x3eb6a6['has'](_0x38c8cf['selection'])){const _0x2fb310=_0x3eb6a6[_0x4b4b3e(0x3e8)](_0x38c8cf[_0x4b4b3e(0x303)]);_0x2fb310['name']+=',\x20'+_0x38c8cf[_0x4b4b3e(0x2f9)];}else _0x3eb6a6['set'](_0x38c8cf[_0x4b4b3e(0x303)],_0x38c8cf);}),Array[_0x526365(0x2fc)](_0x3eb6a6[_0x526365(0x383)]());}var A=function(){const _0xe47c99=_0x35fe9a;return A=Object[_0xe47c99(0x45e)]||function(_0x5b03d0){const _0x525b31=_0xe47c99;for(var _0x10a10a,_0x3f0319=0x1,_0x5353a1=arguments[_0x525b31(0x443)];_0x3f0319<_0x5353a1;_0x3f0319++){_0x10a10a=arguments[_0x3f0319];for(var _0x395c4b in _0x10a10a)Object[_0x525b31(0x420)]['hasOwnProperty'][_0x525b31(0x341)](_0x10a10a,_0x395c4b)&&(_0x5b03d0[_0x395c4b]=_0x10a10a[_0x395c4b]);}return _0x5b03d0;},A[_0xe47c99(0x22d)](this,arguments);},dr=function(_0x2c0e44,_0x38512a){const _0x87c597=_0x35fe9a;var _0x1d1eba={};for(var _0x5c102a in _0x2c0e44)Object[_0x87c597(0x420)]['hasOwnProperty'][_0x87c597(0x341)](_0x2c0e44,_0x5c102a)&&_0x38512a[_0x87c597(0x337)](_0x5c102a)<0x0&&(_0x1d1eba[_0x5c102a]=_0x2c0e44[_0x5c102a]);if(_0x2c0e44!=null&&typeof Object[_0x87c597(0x37a)]=='function'){for(var _0x298856=0x0,_0x5c102a=Object[_0x87c597(0x37a)](_0x2c0e44);_0x298856<_0x5c102a[_0x87c597(0x443)];_0x298856++)_0x38512a[_0x87c597(0x337)](_0x5c102a[_0x298856])<0x0&&Object['prototype'][_0x87c597(0x37d)]['call'](_0x2c0e44,_0x5c102a[_0x298856])&&(_0x1d1eba[_0x5c102a[_0x298856]]=_0x2c0e44[_0x5c102a[_0x298856]]);}return _0x1d1eba;},yt=_0x4c1e67(function(_0x34dff9,_0x1f95e9){const _0x55b833=_0x35fe9a;var _0xefc9eb=_0x34dff9['icon'],_0x42d6e2=_0x34dff9['id'],_0x1a3603=_0x34dff9['className'],_0x186660=_0x34dff9['extend'],_0x57ac75=dr(_0x34dff9,['icon','id',_0x55b833(0x322),_0x55b833(0x328)]),_0x586fc9=_0x55b833(0x1bd)[_0x55b833(0x284)](_0x42d6e2,'\x20')['concat'](_0x1a3603||'')['trim'](),_0x3d7f4a=_0x2a4631('_'[_0x55b833(0x284)](mr()));return ws(_0xefc9eb,''['concat'](_0x42d6e2),{'defIds':_0xefc9eb[_0x55b833(0x396)],'idSuffix':_0x3d7f4a['current']},A({'ref':_0x1f95e9,'className':_0x586fc9},_0x57ac75),_0x186660);});function ws(_0x49ef54,_0x5a6ea8,_0x281975,_0xe135f9,_0x5c5d43){const _0x46e63d=_0x35fe9a;return _0xc09f89(_0x49ef54['tag'],A(A({'key':_0x5a6ea8},fr(_0x49ef54,_0x281975,_0x5c5d43)),_0xe135f9),(gr(_0x49ef54,_0x281975)[_0x46e63d(0x177)]||[])[_0x46e63d(0x240)](function(_0x19aa5b,_0x17f34d){const _0x1922a4=_0x46e63d;return ws(_0x19aa5b,''[_0x1922a4(0x284)](_0x5a6ea8,'-')[_0x1922a4(0x284)](_0x49ef54[_0x1922a4(0x2f5)],'-')[_0x1922a4(0x284)](_0x17f34d),_0x281975,void 0x0,_0x5c5d43);}));}function fr(_0x39a56b,_0x3a4cde,_0x5170db){const _0x195193=_0x35fe9a;var _0x4cab03=A({},_0x39a56b[_0x195193(0x21b)]);_0x5170db!=null&&_0x5170db[_0x195193(0x23c)]&&_0x4cab03[_0x195193(0x2aa)]===_0x195193(0x23c)&&(_0x4cab03['fill']=_0x5170db[_0x195193(0x23c)]);var _0x48c92c=_0x3a4cde['defIds'];return!_0x48c92c||_0x48c92c[_0x195193(0x443)]===0x0||(_0x39a56b[_0x195193(0x2f5)]===_0x195193(0x282)&&_0x4cab03[_0x195193(0x467)]&&(_0x4cab03[_0x195193(0x467)]=_0x4cab03[_0x195193(0x467)]+_0x3a4cde[_0x195193(0x30a)]),Object['entries'](_0x4cab03)['forEach'](function(_0x50be47){const _0x32ca9f=_0x195193;var _0x399cb1=_0x50be47[0x0],_0x21a4e6=_0x50be47[0x1];typeof _0x21a4e6==_0x32ca9f(0x27c)&&(_0x4cab03[_0x399cb1]=_0x21a4e6[_0x32ca9f(0x211)](/url\(#(.*)\)/,_0x32ca9f(0x323)['concat'](_0x3a4cde[_0x32ca9f(0x30a)],')')));})),_0x4cab03;}function gr(_0x32d52d,_0x4538f6){const _0x113e96=_0x35fe9a;var _0x3ac9c9,_0x395a55=_0x4538f6[_0x113e96(0x396)];return!_0x395a55||_0x395a55[_0x113e96(0x443)]===0x0?_0x32d52d:_0x32d52d[_0x113e96(0x2f5)]==='defs'&&(!((_0x3ac9c9=_0x32d52d['children'])===null||_0x3ac9c9===void 0x0)&&_0x3ac9c9[_0x113e96(0x443)])?A(A({},_0x32d52d),{'children':_0x32d52d[_0x113e96(0x177)][_0x113e96(0x240)](function(_0x1d4100){const _0x242cd2=_0x113e96;return typeof _0x1d4100[_0x242cd2(0x21b)]['id']==_0x242cd2(0x27c)&&_0x395a55&&_0x395a55[_0x242cd2(0x337)](_0x1d4100[_0x242cd2(0x21b)]['id'])>-0x1?A(A({},_0x1d4100),{'attrs':A(A({},_0x1d4100['attrs']),{'id':_0x1d4100[_0x242cd2(0x21b)]['id']+_0x4538f6[_0x242cd2(0x30a)]})}):_0x1d4100;})}):_0x32d52d;}function mr(){const _0x3548b7=_0x35fe9a;return Math[_0x3548b7(0x1d3)]()['toString'](0x24)['substring'](0x2,0x8);}yt[_0x35fe9a(0x1d8)]=_0x35fe9a(0x1f6);var Sr={'tag':_0x35fe9a(0x320),'attrs':{'fill':_0x35fe9a(0x428),'viewBox':'0\x200\x2016\x2016','width':_0x35fe9a(0x270),'height':_0x35fe9a(0x270)},'children':[{'tag':'g','attrs':{'clipPath':_0x35fe9a(0x260)},'children':[{'tag':_0x35fe9a(0x1bc),'attrs':{'stroke':_0x35fe9a(0x35a),'d':_0x35fe9a(0x349),'strokeLinecap':_0x35fe9a(0x32a),'strokeLinejoin':_0x35fe9a(0x32a),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x35fe9a(0x1bc),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x35fe9a(0x2ac)]},Ps=_0x4c1e67(function(_0x29eeef,_0x315086){const _0x452a28=_0x35fe9a;return _0xc09f89(yt,Object[_0x452a28(0x45e)]({},_0x29eeef,{'id':_0x452a28(0x318),'ref':_0x315086,'icon':Sr}));});Ps['displayName']=_0x35fe9a(0x470);var vr={'tag':_0x35fe9a(0x320),'attrs':{'fill':_0x35fe9a(0x428),'viewBox':_0x35fe9a(0x2ec),'width':_0x35fe9a(0x270),'height':_0x35fe9a(0x270)},'children':[{'tag':'g','attrs':{'clipPath':_0x35fe9a(0x2f6)},'children':[{'tag':_0x35fe9a(0x1bc),'attrs':{'stroke':_0x35fe9a(0x35a),'d':_0x35fe9a(0x3b2),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x35fe9a(0x206),'attrs':{},'children':[{'tag':_0x35fe9a(0x1bf),'attrs':{'id':_0x35fe9a(0x17b)},'children':[{'tag':_0x35fe9a(0x1bc),'attrs':{'fill':'#fff','d':_0x35fe9a(0x456),'transform':_0x35fe9a(0x26f)}}]}]}],'defIds':[_0x35fe9a(0x17b)]},Ns=_0x4c1e67(function(_0x5c5ec2,_0x52b8b5){const _0x113092=_0x35fe9a;return _0xc09f89(yt,Object[_0x113092(0x45e)]({},_0x5c5ec2,{'id':_0x113092(0x3c0),'ref':_0x52b8b5,'icon':vr}));});Ns[_0x35fe9a(0x1d8)]=_0x35fe9a(0x218);const pr=_0x35fe9a(0x314),Ir=_0x35fe9a(0x1b5),Er=_0x35fe9a(0x360),Cr=_0x35fe9a(0x33a),br=_0x35fe9a(0x2af),ve={'onlineStatusIcon':pr,'onlineStatusTitle':Ir,'onlineStatus':Er,'online':Cr,'offline':br};function Rr(_0x1543f0){const _0x14f9ab=_0x35fe9a;switch(_0x1543f0){case P[_0x14f9ab(0x2e8)]:return _0x14f9ab(0x3ae);case P[_0x14f9ab(0x24f)]:return _0x14f9ab(0x310);case P['FETCH_MISS']:return _0x14f9ab(0x1c8);case P[_0x14f9ab(0x231)]:return _0x14f9ab(0x2c7);case P[_0x14f9ab(0x298)]:case P['AWAITING']:case P[_0x14f9ab(0x24d)]:return _0x14f9ab(0x471);case P[_0x14f9ab(0x242)]:return _0x14f9ab(0x2b4);}}function Tr(_0x23cbbb){const _0x9046d=_0x35fe9a,{status$:_0x2ccadc}=_0x23cbbb,_0x105b96=_0x2fb9fb(_0x2ccadc,P['NOT_COLLAB']),_0x3d36d5=_0x2e2170(_0x210cec),_0x1725d1=_0x105b96!==P[_0x9046d(0x2e8)],_0x141278=_0x3d36d5['t'](Rr(_0x105b96)),_0x2f1a54=_0x1e7826(ve['onlineStatus'],{[ve[_0x9046d(0x1da)]]:_0x1725d1,[ve['offline']]:!_0x1725d1}),_0x2c4981=_0x1725d1?_0x43d382['createElement'](Ns,null):_0x43d382['createElement'](Ps,null);return _0x43d382[_0x9046d(0x2d3)](_0x9046d(0x179),{'className':_0x2f1a54},_0x43d382[_0x9046d(0x2d3)](_0x9046d(0x179),{'className':ve['onlineStatusIcon']},_0x2c4981),_0x43d382[_0x9046d(0x2d3)](_0x9046d(0x179),{'className':ve['onlineStatusTitle']},_0x141278));}var Or=Object[_0x35fe9a(0x448)],Dr=Object[_0x35fe9a(0x1db)],wr=(_0x307719,_0x26d738,_0x354cac,_0x299db4)=>{for(var _0x5cece9=_0x299db4>0x1?void 0x0:_0x299db4?Dr(_0x26d738,_0x354cac):_0x26d738,_0x467e6d=_0x307719['length']-0x1,_0x407c21;_0x467e6d>=0x0;_0x467e6d--)(_0x407c21=_0x307719[_0x467e6d])&&(_0x5cece9=(_0x299db4?_0x407c21(_0x26d738,_0x354cac,_0x5cece9):_0x407c21(_0x5cece9))||_0x5cece9);return _0x299db4&&_0x5cece9&&Or(_0x26d738,_0x354cac,_0x5cece9),_0x5cece9;},Ae=(_0x182fcb,_0x560a49)=>(_0x2a0ad0,_0x359e86)=>_0x560a49(_0x2a0ad0,_0x359e86,_0x182fcb);let je=class extends _0x2b2023{constructor(_0x2c80b8,_0x58a2ae,_0x223436,_0x53d565){const _0x3fd854=_0x35fe9a;super(),l(this,_0x3fd854(0x186),new _0x316dfa(P[_0x3fd854(0x231)])),(this['_univerInstanceService']=_0x2c80b8,this[_0x3fd854(0x31d)]=_0x58a2ae,this['_injector']=_0x223436,this[_0x3fd854(0x198)]=_0x53d565,this[_0x3fd854(0x1f7)](),this[_0x3fd854(0x2fe)]());}[_0x35fe9a(0x1f7)](){const _0x4eef31=_0x35fe9a;this[_0x4eef31(0x382)](this[_0x4eef31(0x31d)][_0x4eef31(0x3c6)](_0x851c42[_0x4eef31(0x1b9)],()=>_0x4cf379(Pr({'status$':this['_status$'][_0x4eef31(0x36f)]()}),this[_0x4eef31(0x325)])));}['_initStatusListener'](){const _0x22df4c=_0x35fe9a;this[_0x22df4c(0x382)](_0x5b60bf(this[_0x22df4c(0x262)][_0x22df4c(0x2fd)]['pipe'](_0x13231a(()=>{const _0xea05b5=_0x22df4c,_0x28a97d=this[_0xea05b5(0x262)]['getFocusedUnit']();return _0x28a97d?this['_collaborationController'][_0xea05b5(0x3b9)](_0x28a97d[_0xea05b5(0x22b)]()):_0x214b8f(null);}),_0x13231a(_0xe9f8bf=>_0xe9f8bf?_0xe9f8bf['status$']:_0x214b8f(P['NOT_COLLAB'])))['subscribe'](_0x19a080=>{const _0x64d07=_0x22df4c;this[_0x64d07(0x186)]['next'](_0x19a080);})));}};je=wr([_0x47af0a(_0x550976[_0x35fe9a(0x44a)],je),Ae(0x0,_0x1ffae8),Ae(0x1,_0x1edecf),Ae(0x2,_0x5b3e40(_0x331eca)),Ae(0x3,_0x5b3e40(Ee))],je);function Pr(_0x42d173){const {status$:_0x513494}=_0x42d173;return function(){const _0x4b8eea=_0x2564;return _0x43d382[_0x4b8eea(0x2d3)](Tr,{'status$':_0x513494});};}const Ms=_0x83cf67(_0x35fe9a(0x402));var Nr=Object[_0x35fe9a(0x448)],Mr=Object[_0x35fe9a(0x1db)],Ar=(_0x111929,_0x127343,_0x395fd7,_0x4b9a08)=>{const _0x35757c=_0x35fe9a;for(var _0x17ca1e=_0x4b9a08>0x1?void 0x0:_0x4b9a08?Mr(_0x127343,_0x395fd7):_0x127343,_0xdff059=_0x111929[_0x35757c(0x443)]-0x1,_0x18a694;_0xdff059>=0x0;_0xdff059--)(_0x18a694=_0x111929[_0xdff059])&&(_0x17ca1e=(_0x4b9a08?_0x18a694(_0x127343,_0x395fd7,_0x17ca1e):_0x18a694(_0x17ca1e))||_0x17ca1e);return _0x4b9a08&&_0x17ca1e&&Nr(_0x127343,_0x395fd7,_0x17ca1e),_0x17ca1e;},ce=(_0x54c2a3,_0x356a76)=>(_0x3f7a7d,_0x34f249)=>_0x356a76(_0x3f7a7d,_0x34f249,_0x54c2a3);let He=class extends _0x2f203c{constructor(_0x1258c2,_0x258f39,_0x7873a8,_0x1b32dc,_0x592692,_0x2c4d23){const _0x5c50df=_0x35fe9a;super(),this[_0x5c50df(0x442)]=_0x1258c2,this[_0x5c50df(0x248)]=_0x258f39,this[_0x5c50df(0x3d3)]=_0x7873a8,this[_0x5c50df(0x3d7)]=_0x1b32dc,this[_0x5c50df(0x29d)]=_0x592692,_0x2c4d23?_0x2c4d23==null||_0x2c4d23[_0x5c50df(0x1a4)]()['then'](()=>this[_0x5c50df(0x31f)]()):(this[_0x5c50df(0x248)][_0x5c50df(0x28f)](_0x5c50df(0x42d),_0x5c50df(0x2da)),this[_0x5c50df(0x31f)]());}async[_0x35fe9a(0x31f)](){const _0x2ddae3=_0x35fe9a,_0x2dfc83=this[_0x2ddae3(0x442)][_0x2ddae3(0x31e)]('unit'),_0x4b4f11=this[_0x2ddae3(0x442)][_0x2ddae3(0x31e)](_0x2ddae3(0x279));if(!_0x2dfc83||!_0x4b4f11){this[_0x2ddae3(0x248)][_0x2ddae3(0x28f)]('[DataLoaderController]',_0x2ddae3(0x29b));return;}switch(Number(_0x4b4f11)){case H[_0x2ddae3(0x339)]:{const _0x574663=await this[_0x2ddae3(0x193)](_0x2dfc83);this['_setupSubUnitSync'](_0x574663);break;}case H[_0x2ddae3(0x1f2)]:{await this[_0x2ddae3(0x386)](_0x2dfc83);break;}default:{this[_0x2ddae3(0x248)][_0x2ddae3(0x185)](_0x2ddae3(0x42d),_0x2ddae3(0x27a));break;}}}async[_0x35fe9a(0x190)](_0x2bd6b9){const _0x16edb1=_0x35fe9a;await this['_updateSubUnitFromURLParams'](_0x2bd6b9),_0x2bd6b9[_0x16edb1(0x1bb)][_0x16edb1(0x332)](_0x2c14e9(this[_0x16edb1(0x3b0)]))['subscribe'](_0x4019eb=>{_0x4019eb&&this['_updateURLWithCurrentState'](_0x4019eb);}),this['_urlService'][_0x16edb1(0x3d6)][_0x16edb1(0x332)](_0x2c14e9(this[_0x16edb1(0x3b0)]))['subscribe'](()=>this[_0x16edb1(0x31c)](_0x2bd6b9));}['_updateURLWithCurrentState'](_0x40e17b,_0x51f634=!0x1){const _0x4de8c5=_0x35fe9a,_0x2da77a=this[_0x4de8c5(0x442)][_0x4de8c5(0x31e)]('subunit');_0x40e17b[_0x4de8c5(0x1b2)]()!==_0x2da77a&&this[_0x4de8c5(0x442)]['setParam'](_0x4de8c5(0x481),_0x40e17b[_0x4de8c5(0x1b2)](),_0x51f634);}async['_updateSubUnitFromURLParams'](_0x483578){const _0x3b4521=_0x35fe9a;var _0x3e9382;const _0x20eee6=this['_urlService'][_0x3b4521(0x31e)]('subunit');if(!_0x20eee6||!_0x483578['getSheetBySheetId'](_0x20eee6)){const _0x4a2d34=_0x483578[_0x3b4521(0x351)]()[0x0],_0xb352bc=_0x483578[_0x3b4521(0x3cd)](_0x4a2d34);if(!_0xb352bc)return;this[_0x3b4521(0x369)](_0xb352bc,!0x0),await this[_0x3b4521(0x3d3)]['executeCommand'](_0x34d4ad['id'],{'unitId':_0x483578['getUnitId'](),'subUnitId':_0x4a2d34});return;}((_0x3e9382=_0x483578[_0x3b4521(0x255)]())==null?void 0x0:_0x3e9382[_0x3b4521(0x1b2)]())!==_0x20eee6&&await this[_0x3b4521(0x3d3)][_0x3b4521(0x356)](_0x34d4ad['id'],{'unitId':_0x483578[_0x3b4521(0x22b)](),'subUnitId':_0x20eee6});}async[_0x35fe9a(0x193)](_0x298a1c){const _0x2b6bf4=_0x35fe9a;let _0x11ac24=0x0;const _0xe2d1dc=await this[_0x2b6bf4(0x3d7)][_0x2b6bf4(0x299)](_0x298a1c);return _0xe2d1dc&&(_0xe2d1dc[_0x2b6bf4(0x2be)]||_0xe2d1dc['mutations'][_0x2b6bf4(0x443)]!==0x0)&&(_0x11ac24=_0xe2d1dc[_0x2b6bf4(0x300)]),_0x11ac24===0x0&&this[_0x2b6bf4(0x248)][_0x2b6bf4(0x28f)]('[DataLoaderController]',_0x2b6bf4(0x3c3)),this[_0x2b6bf4(0x29d)][_0x2b6bf4(0x1a3)](_0x298a1c,_0x11ac24);}async[_0x35fe9a(0x386)](_0x492479){const _0x5f8ff6=_0x35fe9a;let _0x101f09=0x0;const _0x535d16=await this[_0x5f8ff6(0x3d7)][_0x5f8ff6(0x299)](_0x492479);return _0x535d16&&(_0x535d16[_0x5f8ff6(0x2be)]||_0x535d16[_0x5f8ff6(0x3e5)][_0x5f8ff6(0x443)]!==0x0)&&(_0x101f09=_0x535d16[_0x5f8ff6(0x300)]),_0x101f09===0x0&&this[_0x5f8ff6(0x248)]['debug'](_0x5f8ff6(0x42d),_0x5f8ff6(0x3c3)),this[_0x5f8ff6(0x29d)][_0x5f8ff6(0x47d)](_0x492479,_0x101f09);}};He=Ar([_0x47af0a(_0x550976[_0x35fe9a(0x44a)],He),ce(0x0,Ms),ce(0x1,_0x294e85),ce(0x2,_0x373f07),ce(0x3,_0x5b3e40(D)),ce(0x4,_0x5b3e40(_0x4b1ee5)),ce(0x5,_0xb29030(_0x32c3f9))],He);var yr=Object[_0x35fe9a(0x448)],Ur=Object[_0x35fe9a(0x1db)],Lr=(_0x6b78b2,_0x3c69f2,_0x5d78fe,_0x5bb0f0)=>{const _0x1804cf=_0x35fe9a;for(var _0x58e18c=_0x5bb0f0>0x1?void 0x0:_0x5bb0f0?Ur(_0x3c69f2,_0x5d78fe):_0x3c69f2,_0x36d887=_0x6b78b2[_0x1804cf(0x443)]-0x1,_0x553669;_0x36d887>=0x0;_0x36d887--)(_0x553669=_0x6b78b2[_0x36d887])&&(_0x58e18c=(_0x5bb0f0?_0x553669(_0x3c69f2,_0x5d78fe,_0x58e18c):_0x553669(_0x58e18c))||_0x58e18c);return _0x5bb0f0&&_0x58e18c&&yr(_0x3c69f2,_0x5d78fe,_0x58e18c),_0x58e18c;},Qt=(_0x10d3cf,_0xb22dec)=>(_0x477f52,_0x10fdf6)=>_0xb22dec(_0x477f52,_0x10fdf6,_0x10d3cf);const $r=_0x35fe9a(0x473),jr='Univer';let xe=class extends _0x2b2023{constructor(_0x52f599,_0x580120){const _0x2e4255=_0x35fe9a;super(),this['_univerInstanceService']=_0x52f599,this['_configService']=_0x580120,this[_0x2e4255(0x31f)]();}['_init'](){const _0x357336=_0x35fe9a;this['disposeWithMe'](_0x5b60bf(this[_0x357336(0x262)][_0x357336(0x2fd)]['subscribe'](()=>{const _0x4b57bf=_0x357336;var _0x3e7e79;const _0x1c62f0=this[_0x4b57bf(0x262)]['getFocusedUnit']();let _0x2f0ecd=(_0x3e7e79=this[_0x4b57bf(0x449)][_0x4b57bf(0x358)]($r))!=null?_0x3e7e79:jr;_0x1c62f0 instanceof _0x23594e&&(_0x2f0ecd=_0x1c62f0['name']),document['title']=_0x2f0ecd;})));}};xe=Lr([_0x47af0a(_0x550976[_0x35fe9a(0x1a0)],xe),Qt(0x0,_0x1ffae8),Qt(0x1,_0x4e019d)],xe);var Hr=Object[_0x35fe9a(0x448)],xr=Object[_0x35fe9a(0x1db)],Fr=(_0x7805df,_0x1be6d2,_0x53a440,_0x44614e)=>{for(var _0x5d48f3=_0x44614e>0x1?void 0x0:_0x44614e?xr(_0x1be6d2,_0x53a440):_0x1be6d2,_0x18ab8f=_0x7805df['length']-0x1,_0x47081e;_0x18ab8f>=0x0;_0x18ab8f--)(_0x47081e=_0x7805df[_0x18ab8f])&&(_0x5d48f3=(_0x44614e?_0x47081e(_0x1be6d2,_0x53a440,_0x5d48f3):_0x47081e(_0x5d48f3))||_0x5d48f3);return _0x44614e&&_0x5d48f3&&Hr(_0x1be6d2,_0x53a440,_0x5d48f3),_0x5d48f3;},es=(_0x2ac4a3,_0xc75419)=>(_0x547484,_0x1632da)=>_0xc75419(_0x547484,_0x1632da,_0x2ac4a3);let St=class{constructor(_0x534060,_0x1c3e96){const _0x2ccb12=_0x35fe9a;this[_0x2ccb12(0x449)]=_0x534060,this[_0x2ccb12(0x391)]=_0x1c3e96;}async[_0x35fe9a(0x2a7)](_0xf928e4,_0x214231){const _0x5885bf=_0x35fe9a;var _0x41ed2b;const {unitID:_0x33bb92,type:_0x24a51d,revision:_0x54c295=0x0}=_0x214231,_0x564b73=this[_0x5885bf(0x3f6)]()+'/'+_0x24a51d+_0x5885bf(0x220)+_0x33bb92+_0x5885bf(0x229)+(_0x54c295===0x1?0x0:_0x54c295),_0x343a55=(await this['_httpService'][_0x5885bf(0x3e8)](_0x564b73))[_0x5885bf(0x2e4)],_0x29a9b0=(_0x41ed2b=_0x343a55[_0x5885bf(0x301)])==null?void 0x0:_0x41ed2b[_0x5885bf(0x359)];if(_0x29a9b0){const _0x2e82ca=_0x29a9b0==null?void 0x0:_0x29a9b0[_0x5885bf(0x41c)],_0x3f95a9=_0x3071b6[_0x5885bf(0x2ae)](_0x42e26e(_0x2e82ca));_0x29a9b0[_0x5885bf(0x41c)]=_0x3f95a9,Object[_0x5885bf(0x3ce)](_0x29a9b0[_0x5885bf(0x249)])[_0x5885bf(0x2b2)](([,_0x56902f])=>{const _0x54e0c8=_0x5885bf,_0x34f538=_0x56902f[_0x54e0c8(0x41c)],_0x138b3e=_0x3071b6['encode'](_0x42e26e(_0x34f538));_0x56902f[_0x54e0c8(0x41c)]=_0x138b3e;});}return _0x343a55;}async['getSheetBlock'](_0x2989e2,_0x17bde2){const _0x42cef1=_0x35fe9a,{unitID:_0x34b462,type:_0x4f24ab,blockID:_0x2cce1f}=_0x17bde2,_0x4e3ead=this['_getAPIPrefix']()+'/'+_0x4f24ab+'/unit/'+_0x34b462+'/block/'+_0x2cce1f;return(await this[_0x42cef1(0x391)][_0x42cef1(0x3e8)](_0x4e3ead))['body'];}async[_0x35fe9a(0x3c5)](_0x49f9a0,_0x54ce97){const _0x3f3e0d=_0x35fe9a,{unitID:_0x4fc3a6,type:_0x324b48,from:_0x6b86ec,to:_0x3c7e2e}=_0x54ce97,_0x4cd8ca=this['_getAPIPrefix']()+'/'+_0x324b48+_0x3f3e0d(0x220)+_0x4fc3a6+_0x3f3e0d(0x2c1)+_0x6b86ec+'&to='+_0x3c7e2e;return(await this[_0x3f3e0d(0x391)][_0x3f3e0d(0x3e8)](_0x4cd8ca))[_0x3f3e0d(0x2e4)];}[_0x35fe9a(0x3f6)](){const _0x455f46=_0x35fe9a;var _0x2b400f;return(_0x2b400f=this['_configService']['getConfig'](Yi))!=null?_0x2b400f:this[_0x455f46(0x39d)]();}[_0x35fe9a(0x39d)](){const _0x560f6a=_0x35fe9a;var _0x3284f4;return(_0x3284f4=this[_0x560f6a(0x449)][_0x560f6a(0x358)](Wi))!=null?_0x3284f4:Gi;}async[_0x35fe9a(0x388)](_0x3b20ab,_0x506caa){const _0x94660c=_0x35fe9a,_0x4dad14='/universer-api/snapshot/'+_0x506caa['type']+_0x94660c(0x220)+_0x506caa[_0x94660c(0x19e)]+_0x94660c(0x474);return(await this['_httpService'][_0x94660c(0x3e8)](_0x4dad14,{'params':{'resourceId':JSON['stringify'](_0x506caa[_0x94660c(0x3ba)])}}))['body'];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x35fe9a(0x1ce)](){const _0x39be73=_0x35fe9a;throw new Error(_0x39be73(0x2a4));}[_0x35fe9a(0x296)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};St=Fr([es(0x0,_0x4e019d),es(0x1,_0x5b3e40(_0x588bfd))],St);var Br=Object[_0x35fe9a(0x448)],Vr=Object[_0x35fe9a(0x1db)],kr=(_0x19ffda,_0x3e3676,_0x2c8340,_0x1e024c)=>{const _0x158199=_0x35fe9a;for(var _0x3726a1=_0x1e024c>0x1?void 0x0:_0x1e024c?Vr(_0x3e3676,_0x2c8340):_0x3e3676,_0x26c914=_0x19ffda[_0x158199(0x443)]-0x1,_0x5c18d1;_0x26c914>=0x0;_0x26c914--)(_0x5c18d1=_0x19ffda[_0x26c914])&&(_0x3726a1=(_0x1e024c?_0x5c18d1(_0x3e3676,_0x2c8340,_0x3726a1):_0x5c18d1(_0x3726a1))||_0x3726a1);return _0x1e024c&&_0x3726a1&&Br(_0x3e3676,_0x2c8340,_0x3726a1),_0x3726a1;},pe=(_0x3d3c5e,_0x1acc8a)=>(_0xf3c2b2,_0x33a38a)=>_0x1acc8a(_0xf3c2b2,_0x33a38a,_0x3d3c5e);let vt=class extends _0x3e7dac{constructor(_0x41ff57,_0x43b28b,_0x3dcdb3,_0x43d93f,_0x5e1a58){const _0x57ee2b=_0x35fe9a;super(_0x41ff57,_0x43b28b,_0x3dcdb3),this['_transformService']=_0x43d93f,this[_0x57ee2b(0x248)]=_0x5e1a58;}['transformUndoRedo'](_0x14ea5a,_0x6865ed){const _0x4dafa8=_0x35fe9a,_0x580712=this[_0x4dafa8(0x3fb)](_0x14ea5a);if(_0x580712)try{const _0x2c47c8=this[_0x4dafa8(0x250)](_0x580712,_0x6865ed);this['_substituteUndoStack'](_0x14ea5a,_0x2c47c8);}catch(_0x55991f){this[_0x4dafa8(0x248)][_0x4dafa8(0x185)](_0x4dafa8(0x1e4),_0x55991f),this[_0x4dafa8(0x319)](_0x14ea5a);}const _0x583dd1=this[_0x4dafa8(0x180)](_0x14ea5a);if(_0x583dd1)try{const _0x37ba2c=this[_0x4dafa8(0x250)](_0x583dd1,_0x6865ed);this[_0x4dafa8(0x3bd)](_0x14ea5a,_0x37ba2c);}catch(_0x242d11){this[_0x4dafa8(0x248)][_0x4dafa8(0x185)](_0x242d11),this[_0x4dafa8(0x2cd)](_0x14ea5a);}}['_clearUndo'](_0x12818f){const _0xc51479=_0x35fe9a,_0x12330c=this['_getUndoStack'](_0x12818f);_0x12330c&&(_0x12330c[_0xc51479(0x443)]=0x0,this[_0xc51479(0x221)]());}[_0x35fe9a(0x2cd)](_0x88292f){const _0x228fe0=_0x35fe9a,_0x452935=this['_getRedoStack'](_0x88292f);_0x452935&&(_0x452935[_0x228fe0(0x443)]=0x0,this[_0x228fe0(0x221)]());}[_0x35fe9a(0x26c)](_0x2d6c26,_0x4fcd7b){const _0x4de874=_0x35fe9a;this['_undoStacks'][_0x4de874(0x445)](_0x2d6c26,_0x4fcd7b),this[_0x4de874(0x221)]();}['_substituteRedoStack'](_0x1b62d1,_0x20f62f){const _0x5d08ea=_0x35fe9a;this[_0x5d08ea(0x215)][_0x5d08ea(0x445)](_0x1b62d1,_0x20f62f),this[_0x5d08ea(0x221)]();}[_0x35fe9a(0x250)](_0x117267,_0x30c34d){const _0x22cf54=_0x35fe9a,_0x3154e0=[];let _0x15848c=_0x30c34d,_0x5f35b5=_0x30c34d;for(let _0x4a8769=_0x117267['length']-0x1;_0x4a8769>=0x0;_0x4a8769--){const {unitID:_0x12a395,undoMutations:_0x278ee7,redoMutations:_0x40ef3e}=_0x117267[_0x4a8769],_0x3e9260=this[_0x22cf54(0x348)]['transformMutationsWithChangeset'](_0x15848c,_0x278ee7),_0x4a58bf=this[_0x22cf54(0x348)][_0x22cf54(0x1ff)](_0x5f35b5,_0x40ef3e);if(_0x4f854d(_0x3e9260)||_0x4f854d(_0x4a58bf)){this[_0x22cf54(0x248)][_0x22cf54(0x185)](_0x22cf54(0x1e4),'transformStack\x20failed!',_0x3e9260,_0x4a58bf);break;}_0x15848c=_0x3e9260['c1Prime'],_0x5f35b5=_0x4a58bf[_0x22cf54(0x2fa)],_0x3154e0['push']({'unitID':_0x12a395,'undoMutations':_0x3e9260['m2Prime'],'redoMutations':_0x4a58bf[_0x22cf54(0x3b5)]});}return _0x3154e0['reverse']();}};vt=kr([pe(0x0,_0x1ffae8),pe(0x1,_0x373f07),pe(0x2,_0x559f35),pe(0x3,_0x56176b),pe(0x4,_0x294e85)],vt);class Wr extends _0x2f203c{constructor(){const _0x44c162=_0x35fe9a;super(),l(this,_0x44c162(0x3d6)),this[_0x44c162(0x3d6)]=_0x4ba866(window,_0x44c162(0x46e))[_0x44c162(0x332)](_0x2c14e9(this[_0x44c162(0x3b0)]),_0x436a17(0x1),_0x49a35c(void 0x0));}[_0x35fe9a(0x283)](_0x2fcbd3,_0x5aed24,_0x2ca1d0=!0x1){const _0x31b15a=_0x35fe9a,_0xa4854e=new URL(window[_0x31b15a(0x437)]['href']);_0xa4854e[_0x31b15a(0x2f7)]['set'](_0x2fcbd3,_0x5aed24),_0x2ca1d0?window['history']['replaceState']('','',_0xa4854e['toString']()):window[_0x31b15a(0x204)][_0x31b15a(0x32e)]('','',_0xa4854e['toString']());}[_0x35fe9a(0x1e6)](_0x5909a5,_0x24806b=!0x1){const _0x3c8159=_0x35fe9a,_0x22cb0e=new URL(window[_0x3c8159(0x437)][_0x3c8159(0x447)]);_0x22cb0e['searchParams'][_0x3c8159(0x46f)](_0x5909a5),_0x24806b?window[_0x3c8159(0x204)][_0x3c8159(0x219)]('','',_0x22cb0e[_0x3c8159(0x245)]()):window[_0x3c8159(0x204)]['pushState']('','',_0x22cb0e[_0x3c8159(0x245)]());}[_0x35fe9a(0x31e)](_0x5a214d){const _0xc28006=_0x35fe9a;var _0x231aa4;return(_0x231aa4=new URL(window['location']['href'])[_0xc28006(0x2f7)][_0xc28006(0x3e8)](_0x5a214d))!=null?_0x231aa4:void 0x0;}}const nt=_0x35fe9a(0x2b0),Gr=_0x35fe9a(0x34c),ye=0x6,Yr=1.5,rt=0x4,Kr=1.5,Xr=_0x35fe9a(0x350);class Jr{constructor(_0x2f1998,_0x2b648d,_0x2828be,_0x2ce04f){const _0x29def1=_0x35fe9a;l(this,'_shapes',[]),l(this,_0x29def1(0x458),null),l(this,'_textBubble',null),l(this,_0x29def1(0x174),null),l(this,_0x29def1(0x1a7),null),l(this,'_eventUnsubscribe',null),(this[_0x29def1(0x2db)]=_0x2f1998,this[_0x29def1(0x32f)]=_0x2b648d,this['_docSkeleton']=_0x2828be,this[_0x29def1(0x426)]=_0x2ce04f,this[_0x29def1(0x459)]());}set[_0x35fe9a(0x35b)](_0x92f87e){const _0x49016f=_0x35fe9a;_0x92f87e?(this['_anchorDot']&&this[_0x49016f(0x174)]['hide'](),this[_0x49016f(0x21d)]&&this['_textBubble'][_0x49016f(0x18c)]()):(this['_anchorDot']&&this[_0x49016f(0x174)][_0x49016f(0x18c)](),this['_textBubble']&&this[_0x49016f(0x21d)][_0x49016f(0x27e)]());}[_0x35fe9a(0x264)](){const _0x5c8082=_0x35fe9a;for(const _0x2a668e of this[_0x5c8082(0x45d)])_0x2a668e[_0x5c8082(0x264)]();this[_0x5c8082(0x21d)]&&this[_0x5c8082(0x21d)][_0x5c8082(0x264)](),this[_0x5c8082(0x174)]&&this[_0x5c8082(0x174)]['dispose'](),this['_anchor']&&this[_0x5c8082(0x458)][_0x5c8082(0x264)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x35fe9a(0x459)](){const _0x382883=_0x35fe9a,{_docSkeleton:_0x1532cc,_document:_0x174427}=this,{color:_0x2238ef,name:_0x1c1fd0,ranges:_0x5a0bc8}=this[_0x382883(0x2db)],_0x3617f1=_0x174427[_0x382883(0x1c7)](),{docsLeft:_0x1d6efe,docsTop:_0x4ba5d0}=_0x3617f1,_0x178123=new _0x7277fa(_0x3617f1,_0x1532cc);for(const {startOffset:_0x526e3c,endOffset:_0x5c2a08,collapsed:_0x506b29,isActive:_0x11a87a}of _0x5a0bc8){const _0x3018e5=_0x1532cc[_0x382883(0x17c)](_0x526e3c),_0x34e164=_0x1532cc['findNodePositionByCharIndex'](_0x5c2a08);if(_0x11a87a){const {contentBoxPointGroup:_0x572187}=_0x178123[_0x382883(0x47a)](_0x34e164,_0x34e164);if(_0x572187[_0x382883(0x443)]===0x0)continue;this[_0x382883(0x363)](_0x2238ef,_0x572187,_0x1d6efe,_0x4ba5d0,_0x1c1fd0),this['_eventUnsubscribe']=this[_0x382883(0x317)]();}if(!_0x506b29){const {contentBoxPointGroup:_0x407a25}=_0x178123[_0x382883(0x47a)](_0x3018e5,_0x34e164);if(_0x407a25[_0x382883(0x443)]===0x0)continue;this['_drawRange'](_0x2238ef,_0x407a25,_0x1d6efe,_0x4ba5d0);}}}['_drawAnchor'](_0x2dd256,_0x319159,_0x2edb7f,_0x288109,_0x234a10){const _0x291f81=_0x35fe9a,_0x3e1324=this[_0x291f81(0x1e0)](_0x319159),{left:_0x5d056d,top:_0x55251d,height:_0x4974f0}=_0x3e1324,_0x1bc5bf=this[_0x291f81(0x1ab)](),_0x16aed2=Kr/_0x1bc5bf,_0x1de903=new _0x2d9440(nt+_0x295a4b[_0x291f81(0x352)](ye),{'left':_0x5d056d+_0x2edb7f-_0x16aed2,'top':_0x55251d+_0x288109,'height':_0x4974f0,'width':Yr,'fill':_0x2dd256||_0x57b7c5(_0x1e8e1f[_0x291f81(0x2bd)],0x0),'strokeWidth':_0x16aed2,'stroke':Xr,'evented':!0x0});this[_0x291f81(0x458)]=_0x1de903,this[_0x291f81(0x32f)]['addObject'](_0x1de903,_0x5e3717);const _0x5d97f9=new _0x2d9440(nt+_0x295a4b[_0x291f81(0x352)](ye),{'left':_0x5d056d+_0x2edb7f-_0x16aed2,'top':_0x55251d+_0x288109-rt/0x2,'height':rt,'width':rt,'fill':_0x2dd256||_0x57b7c5(_0x1e8e1f[_0x291f81(0x2bd)],0x0),'strokeWidth':0x0,'stroke':_0x2dd256||_0x57b7c5(_0x1e8e1f[_0x291f81(0x2bd)],0x0),'evented':!0x1});this[_0x291f81(0x174)]=_0x5d97f9,this[_0x291f81(0x32f)][_0x291f81(0x3ed)](_0x5d97f9,_0x5e3717);const _0x51f8fe=new ze(nt+_0x295a4b[_0x291f81(0x352)](ye),{'left':_0x5d056d+_0x2edb7f-_0x16aed2,'top':_0x55251d+_0x288109-Oe,'text':_0x234a10,'color':_0x2dd256});this[_0x291f81(0x21d)]=_0x51f8fe,this['_scene'][_0x291f81(0x3ed)](_0x51f8fe,_0x5e3717),this['_hover']=!0x1;}['_handleHover'](){const _0x591f68=_0x35fe9a,_0x1e0b8b=this['_anchor'][_0x591f68(0x2e6)]['subscribeEvent'](()=>{const _0x18388f=_0x591f68;this[_0x18388f(0x35b)]=!0x0;}),_0x254c84=this[_0x591f68(0x458)][_0x591f68(0x2e5)]['subscribeEvent'](()=>{const _0x2c4cb3=_0x591f68;this[_0x2c4cb3(0x1a7)]&&clearTimeout(this[_0x2c4cb3(0x1a7)]),this[_0x2c4cb3(0x1a7)]=setTimeout(()=>{const _0x69f1a1=_0x2c4cb3;this[_0x69f1a1(0x35b)]=!0x1;},0x7d0);});return()=>{_0x1e0b8b['unsubscribe'](),_0x254c84['unsubscribe']();};}[_0x35fe9a(0x410)](_0x16dc65,_0x1faec8,_0x2973d6,_0x1da079){const _0x5c066c=_0x35fe9a,_0x5095ab=new _0x2de130(_0x16dc65)[_0x5c066c(0x1be)](0.2)['toRgbString'](),_0x5662ea=new _0x530d78(Gr+_0x295a4b[_0x5c066c(0x352)](ye),{'pointsGroup':_0x1faec8,'fill':_0x5095ab||_0x57b7c5(_0x1e8e1f[_0x5c066c(0x2bd)],0.2),'left':_0x2973d6,'top':_0x1da079,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c066c(0x45d)][_0x5c066c(0x472)](_0x5662ea),this[_0x5c066c(0x32f)]['addObject'](_0x5662ea,_0x5e3717);}[_0x35fe9a(0x1e0)](_0x3a89b3){const _0x1934ee=_0x3a89b3[0x0],_0x171d14=_0x1934ee[0x0],_0x26c86f=_0x1934ee[0x2],{x:_0x2f149c,y:_0x1aabab}=_0x171d14,{x:_0x14d903,y:_0x576314}=_0x26c86f;return{'left':_0x2f149c,'top':_0x1aabab,'width':_0x14d903-_0x2f149c,'height':_0x576314-_0x1aabab};}[_0x35fe9a(0x1ab)](){const _0x91c450=_0x35fe9a,{scaleX:_0x4d66b3,scaleY:_0x114ba2}=this['_scene'][_0x91c450(0x302)]();return Math[_0x91c450(0x2bb)](_0x4d66b3,_0x114ba2);}}var zr=Object[_0x35fe9a(0x448)],Zr=Object[_0x35fe9a(0x1db)],qr=(_0x519338,_0x340848,_0x150658,_0x3b24b2)=>{const _0x6a4eb2=_0x35fe9a;for(var _0x5957dd=_0x3b24b2>0x1?void 0x0:_0x3b24b2?Zr(_0x340848,_0x150658):_0x340848,_0x30ea13=_0x519338[_0x6a4eb2(0x443)]-0x1,_0x341bf6;_0x30ea13>=0x0;_0x30ea13--)(_0x341bf6=_0x519338[_0x30ea13])&&(_0x5957dd=(_0x3b24b2?_0x341bf6(_0x340848,_0x150658,_0x5957dd):_0x341bf6(_0x5957dd))||_0x5957dd);return _0x3b24b2&&_0x5957dd&&zr(_0x340848,_0x150658,_0x5957dd),_0x5957dd;},Ie=(_0x385f53,_0x108d09)=>(_0x30a864,_0x176789)=>_0x108d09(_0x30a864,_0x176789,_0x385f53);let Fe=class extends _0x2f203c{constructor(_0xa495ad,_0x49b35d,_0x250be8,_0x337fab,_0x1bbd73){const _0x4f10f4=_0x35fe9a;super(),l(this,_0x4f10f4(0x277),[]),(this[_0x4f10f4(0x214)]=_0xa495ad,this[_0x4f10f4(0x262)]=_0x49b35d,this[_0x4f10f4(0x2c3)]=_0x250be8,this['_docSkeletonManagerService']=_0x337fab,this[_0x4f10f4(0x1cb)]=_0x1bbd73,this['_init']());}[_0x35fe9a(0x31f)](){const _0x3c4607=_0x35fe9a;this[_0x3c4607(0x361)][_0x3c4607(0x3ee)][_0x3c4607(0x332)](_0x479f07(this[_0x3c4607(0x3b0)]),_0x443800(_0x10624f=>{const _0x3f4bcf=_0x3c4607;if(_0x10624f){const _0x5cf7ff=_0x10624f[_0x3f4bcf(0x188)]()[_0x3f4bcf(0x3c7)]()[_0x3f4bcf(0x22b)]();return _0x409cac(this[_0x3f4bcf(0x214)]['getCollabCursors$'](_0x5cf7ff),this[_0x3f4bcf(0x1cb)][_0x3f4bcf(0x213)])[_0x3f4bcf(0x332)](_0x134cb9(([_0x5a6077,_0x408a2c])=>({'skeleton':_0x10624f,'cursors':[..._0x5a6077[_0x3f4bcf(0x383)]()]['flatMap'](_0x2e00a2=>({..._0x2e00a2,'color':_0x408a2c[_0x2e00a2[_0x3f4bcf(0x309)]]}))})));}return _0x214b8f({'skeleton':null,'cursors':[]});}))[_0x3c4607(0x40e)](({skeleton:_0x50fbdf,cursors:_0x3533a0})=>{const _0x3cee2c=_0x3c4607;this[_0x3cee2c(0x3ad)](),_0x50fbdf&&this[_0x3cee2c(0x2a6)](_0x50fbdf,_0x3533a0);});}[_0x35fe9a(0x2a6)](_0xfde157,_0x16bbdb){const _0x1b9513=_0x35fe9a,_0x53f8ec=this[_0x1b9513(0x2cb)]();if(_0x53f8ec==null)return;const {scene:_0x121ec8,document:_0x32e4fd}=_0x53f8ec,_0x1f3c2d=_0x16bbdb[_0x1b9513(0x240)](_0xc2ec5b=>new Jr(_0xc2ec5b,_0x121ec8,_0xfde157,_0x32e4fd));this[_0x1b9513(0x277)]=_0x1f3c2d;}[_0x35fe9a(0x3ad)](){const _0x2f874d=_0x35fe9a;this[_0x2f874d(0x277)][_0x2f874d(0x2b2)](_0x66d594=>_0x66d594[_0x2f874d(0x264)]()),this[_0x2f874d(0x277)]=[];}[_0x35fe9a(0x2cb)](){const _0xc4912c=_0x35fe9a;return _0x1fda07(this[_0xc4912c(0x262)],this['_renderManagerService']);}};Fe=qr([_0x47af0a(_0x550976['Steady'],Fe),Ie(0x0,_0x5b3e40(ue)),Ie(0x1,_0x1ffae8),Ie(0x2,_0x458795),Ie(0x3,_0x5b3e40(_0x59817c)),Ie(0x4,_0x5b3e40(_0x166891))],Fe);var Qr=Object[_0x35fe9a(0x448)],eo=Object['getOwnPropertyDescriptor'],to=(_0xc1dfd9,_0x555e75,_0x55867f,_0x4cd490)=>{const _0x5d9582=_0x35fe9a;for(var _0x9adbc0=_0x4cd490>0x1?void 0x0:_0x4cd490?eo(_0x555e75,_0x55867f):_0x555e75,_0x20d7ba=_0xc1dfd9[_0x5d9582(0x443)]-0x1,_0x42c6ac;_0x20d7ba>=0x0;_0x20d7ba--)(_0x42c6ac=_0xc1dfd9[_0x20d7ba])&&(_0x9adbc0=(_0x4cd490?_0x42c6ac(_0x555e75,_0x55867f,_0x9adbc0):_0x42c6ac(_0x9adbc0))||_0x9adbc0);return _0x4cd490&&_0x9adbc0&&Qr(_0x555e75,_0x55867f,_0x9adbc0),_0x9adbc0;},ot=(_0x4303b7,_0x2f495a)=>(_0x1a4df8,_0x473ea3)=>_0x2f495a(_0x1a4df8,_0x473ea3,_0x4303b7);let Ge=class{constructor(_0x45cf6e,_0x418a5e,_0x5f4ea1){const _0xbc706=_0x35fe9a;this[_0xbc706(0x449)]=_0x45cf6e,this['_httpService']=_0x418a5e,this[_0xbc706(0x368)]=_0x5f4ea1,this[_0xbc706(0x2fb)]();}[_0x35fe9a(0x2fb)](){const _0x1fb032=_0x35fe9a;this[_0x1fb032(0x391)][_0x1fb032(0x381)]({'priority':0x1,'interceptor':(_0xafb920,_0x22e64c)=>_0x22e64c(_0xafb920)[_0x1fb032(0x332)](_0x36cfb9(async _0x4d890a=>{const _0x4f1dde=_0x1fb032,_0xcda12e=_0x4d890a;if(_0xcda12e[_0x4f1dde(0x30b)]===0x191&&window[_0x4f1dde(0x400)](this[_0x4f1dde(0x368)]['t']('auth.needGotoLoginAlert'))){const _0x19491b=window[_0x4f1dde(0x46c)](window[_0x4f1dde(0x437)]['href']);window[_0x4f1dde(0x437)][_0x4f1dde(0x447)]=this['_getLoginPath']()+_0x4f1dde(0x272)+_0x19491b;}return _0xcda12e;}))});}['_getLoginPath'](){const _0x2e05e7=_0x35fe9a;var _0x1d2199;return(_0x1d2199=this['_configService'][_0x2e05e7(0x358)](cn))!=null?_0x1d2199:hn;}};Ge=to([ot(0x0,_0x4e019d),ot(0x1,_0x5b3e40(_0x588bfd)),ot(0x2,_0x5b3e40(_0x210cec))],Ge);var so=Object[_0x35fe9a(0x448)],io=Object['getOwnPropertyDescriptor'],no=(_0x1ff3a3,_0x3c06df,_0x5e91f3,_0x1bca1e)=>{const _0x1b0a16=_0x35fe9a;for(var _0x3dc067=_0x1bca1e>0x1?void 0x0:_0x1bca1e?io(_0x3c06df,_0x5e91f3):_0x3c06df,_0x134440=_0x1ff3a3[_0x1b0a16(0x443)]-0x1,_0x10afe5;_0x134440>=0x0;_0x134440--)(_0x10afe5=_0x1ff3a3[_0x134440])&&(_0x3dc067=(_0x1bca1e?_0x10afe5(_0x3c06df,_0x5e91f3,_0x3dc067):_0x10afe5(_0x3dc067))||_0x3dc067);return _0x1bca1e&&_0x3dc067&&so(_0x3c06df,_0x5e91f3,_0x3dc067),_0x3dc067;},ts=(_0x99f512,_0x3624e5)=>(_0x162f32,_0x21f4b6)=>_0x3624e5(_0x162f32,_0x21f4b6,_0x99f512);const ro='AUTHZ_URL_KEY',oo=_0x35fe9a(0x431);let pt=class{constructor(_0x3ce20e,_0x2ea3a8){const _0x25214b=_0x35fe9a;this[_0x25214b(0x28c)]=_0x3ce20e,this[_0x25214b(0x449)]=_0x2ea3a8;}[_0x35fe9a(0x39b)](){const _0x38fa70=_0x35fe9a;var _0x345c01;return(_0x345c01=this[_0x38fa70(0x449)][_0x38fa70(0x358)](ro))!=null?_0x345c01:oo;}async[_0x35fe9a(0x26a)](_0x4077b7){const _0x5cf8d9=_0x35fe9a,_0x58cde6=this['_getAPIPrefixPath']()+'/'+_0x4077b7[_0x5cf8d9(0x44c)]+_0x5cf8d9(0x393);return(await this['_HTTPService'][_0x5cf8d9(0x3b8)](_0x58cde6,{'body':_0x4077b7}))[_0x5cf8d9(0x2e4)][_0x5cf8d9(0x3dc)]||'';}async[_0x35fe9a(0x455)](_0x4db5d5){const _0x4565de=_0x35fe9a,_0x7f121e=this[_0x4565de(0x39b)]()+_0x4565de(0x2f1);return(await this[_0x4565de(0x28c)]['post'](_0x7f121e,{'body':_0x4db5d5}))[_0x4565de(0x2e4)]['objects'];}async[_0x35fe9a(0x3d1)](_0x5b2202){const _0x42bf7b=_0x35fe9a,_0x363ae7=this[_0x42bf7b(0x39b)]()+'/'+_0x5b2202['objectType']+'/object/'+_0x5b2202[_0x42bf7b(0x3dc)];await this[_0x42bf7b(0x28c)][_0x42bf7b(0x47e)](_0x363ae7,{'body':_0x5b2202});}async[_0x35fe9a(0x17a)](_0x33dccf){const _0x4a27ce=_0x35fe9a,_0x2d1151=this[_0x4a27ce(0x39b)]()+'/'+_0x33dccf[_0x4a27ce(0x44c)]+_0x4a27ce(0x346)+_0x33dccf[_0x4a27ce(0x3dc)]+_0x4a27ce(0x23e);return(await this[_0x4a27ce(0x28c)][_0x4a27ce(0x3b8)](_0x2d1151,{'body':_0x33dccf}))['body'][_0x4a27ce(0x33e)];}async['batchAllowed'](_0x54fed7){const _0x34678b=_0x35fe9a,_0x644c17=this[_0x34678b(0x39b)]()+_0x34678b(0x392);return(await this['_HTTPService'][_0x34678b(0x3b8)](_0x644c17,{'body':{'requests':_0x54fed7}}))[_0x34678b(0x2e4)][_0x34678b(0x3f5)];}async[_0x35fe9a(0x1f3)](_0x43cdf6){const _0x53bb03=_0x35fe9a,_0x570fc4=this['_getAPIPrefixPath']()+'/'+_0x43cdf6['objectType']+'/role',_0x5f3f23=await this[_0x53bb03(0x28c)][_0x53bb03(0x3b8)](_0x570fc4,{'body':_0x43cdf6});return{'roles':_0x5f3f23[_0x53bb03(0x2e4)][_0x53bb03(0x2d8)],'actions':_0x5f3f23[_0x53bb03(0x2e4)][_0x53bb03(0x33e)]};}async[_0x35fe9a(0x1cf)](_0x4f00bb){const _0x4b9f0d=_0x35fe9a,_0x15b043=this[_0x4b9f0d(0x39b)]()+_0x4b9f0d(0x24a);await this[_0x4b9f0d(0x28c)][_0x4b9f0d(0x46f)](_0x15b043,{'params':{'collaboratorID':_0x4f00bb[_0x4b9f0d(0x3f0)],'objectID':_0x4f00bb[_0x4b9f0d(0x3dc)],'unitID':_0x4f00bb[_0x4b9f0d(0x19e)]}});}async['updateCollaborator'](_0x1a5125){const _0x5d4f7e=_0x35fe9a,_0x382a64=this['_getAPIPrefixPath']()+_0x5d4f7e(0x24a);await this[_0x5d4f7e(0x28c)][_0x5d4f7e(0x482)](_0x382a64,{'body':_0x1a5125});}async[_0x35fe9a(0x295)](_0x288425){const _0x83042d=_0x35fe9a,_0xf9c804=this[_0x83042d(0x39b)]()+_0x83042d(0x24a);await this[_0x83042d(0x28c)][_0x83042d(0x3b8)](_0xf9c804,{'body':_0x288425});}async[_0x35fe9a(0x1a6)](_0x5d96fc){const _0x4b061f=_0x35fe9a,_0x3cbb8c=this[_0x4b061f(0x39b)]()+_0x4b061f(0x24a);return(await this[_0x4b061f(0x28c)][_0x4b061f(0x3e8)](_0x3cbb8c,{'params':{'objectID':_0x5d96fc[_0x4b061f(0x3dc)],'unitID':_0x5d96fc[_0x4b061f(0x19e)]}}))[_0x4b061f(0x2e4)][_0x4b061f(0x33f)];}async[_0x35fe9a(0x3f2)](_0x5bdbc4){const _0x1bc1b7=_0x35fe9a,_0x3fcc83=this[_0x1bc1b7(0x39b)]()+_0x1bc1b7(0x24a);await this[_0x1bc1b7(0x28c)][_0x1bc1b7(0x47e)](_0x3fcc83,{'body':_0x5bdbc4});}};pt=no([ts(0x0,_0x5b3e40(_0x588bfd)),ts(0x1,_0x5b3e40(_0x4e019d))],pt);var ao=Object['defineProperty'],co=Object[_0x35fe9a(0x1db)],ho=(_0x126a0d,_0x1686ca,_0x2a64f2,_0x22b4de)=>{const _0x5bfcbd=_0x35fe9a;for(var _0x5031ec=_0x22b4de>0x1?void 0x0:_0x22b4de?co(_0x1686ca,_0x2a64f2):_0x1686ca,_0x1c4ef8=_0x126a0d[_0x5bfcbd(0x443)]-0x1,_0x50006c;_0x1c4ef8>=0x0;_0x1c4ef8--)(_0x50006c=_0x126a0d[_0x1c4ef8])&&(_0x5031ec=(_0x22b4de?_0x50006c(_0x1686ca,_0x2a64f2,_0x5031ec):_0x50006c(_0x5031ec))||_0x5031ec);return _0x22b4de&&_0x5031ec&&ao(_0x1686ca,_0x2a64f2,_0x5031ec),_0x5031ec;},ss=(_0x168bd6,_0x6448ee)=>(_0x27bc34,_0x5f18a4)=>_0x6448ee(_0x27bc34,_0x5f18a4,_0x168bd6);const lo=[_0x35fe9a(0x435),_0x35fe9a(0x2e0),'image/jpg','image/gif',_0x35fe9a(0x244)],_o=0x5*0x400*0x400,uo=_0x35fe9a(0x29a),fo=_0x35fe9a(0x376),go='EXCHANGE_SIGN_URL_SERVER_URL_KEY',mo=_0x35fe9a(0x461);let It=class{constructor(_0x314707,_0x40731c){const _0x1fef7d=_0x35fe9a;l(this,_0x1fef7d(0x1cd),0x0),l(this,'_change$',new _0x3da7e9()),l(this,_0x1fef7d(0x38e),this[_0x1fef7d(0x2bc)]),l(this,_0x1fef7d(0x1eb),new Map()),(this[_0x1fef7d(0x391)]=_0x314707,this[_0x1fef7d(0x449)]=_0x40731c);}[_0x35fe9a(0x234)](_0x2c1642){const _0x30ce77=_0x35fe9a;this[_0x30ce77(0x1cd)]=_0x2c1642,this[_0x30ce77(0x2bc)][_0x30ce77(0x3be)](_0x2c1642);}[_0x35fe9a(0x423)](_0xb515f2,_0x129911){const _0x35a7fc=_0x35fe9a;if(_0x129911===_0x356a4c['BASE64']){const _0x3080bc=new Image();return _0x3080bc['src']=_0xb515f2,_0x3080bc;}return this[_0x35a7fc(0x1eb)][_0x35a7fc(0x3e8)](_0xb515f2);}[_0x35fe9a(0x3cb)](_0x365e9b,_0x378a08,_0x1087ce){const _0x2d771e=_0x35fe9a;_0x378a08===_0x356a4c['BASE64']||_0x1087ce==null||this[_0x2d771e(0x1eb)][_0x2d771e(0x445)](_0x365e9b,_0x1087ce);}async[_0x35fe9a(0x462)](_0x47f6a8){const _0x45f3f4=_0x35fe9a;try{const _0x577582=this[_0x45f3f4(0x3bf)](this[_0x45f3f4(0x1de)](),''+_0x47f6a8),_0x159520=(await this['_httpService']['get'](_0x577582))[_0x45f3f4(0x2e4)];return _0x159520[_0x45f3f4(0x185)]&&_0x159520['error'][_0x45f3f4(0x19d)]===Cs['OK']?Promise[_0x45f3f4(0x413)](_0x159520[_0x45f3f4(0x3a7)]):Promise[_0x45f3f4(0x21c)](_0x159520[_0x45f3f4(0x185)]);}catch(_0x237be2){return Promise[_0x45f3f4(0x21c)](_0x237be2);}}async['saveImage'](_0x2f3b42){const _0x56c6f7=_0x35fe9a;let _0x4d7935='';if(!lo['includes'](_0x2f3b42[_0x56c6f7(0x279)]))return this[_0x56c6f7(0x36e)](),Promise[_0x56c6f7(0x21c)](new Error(_0x2be5ef[_0x56c6f7(0x334)]));if(_0x2f3b42[_0x56c6f7(0x2a8)]>_o)return this['_decreaseWaiting'](),Promise[_0x56c6f7(0x21c)](new Error(_0x2be5ef[_0x56c6f7(0x2ff)]));try{const _0x468820=new FormData();_0x468820['append'](_0x56c6f7(0x454),_0x2f3b42);const _0x45d223=this[_0x56c6f7(0x3de)]()+_0x56c6f7(0x36a)+_0x2f3b42[_0x56c6f7(0x2a8)][_0x56c6f7(0x245)](),_0x5a5cdd=await(await fetch(_0x45d223,{'method':'POST','body':_0x468820}))[_0x56c6f7(0x18a)]();if(typeof _0x5a5cdd[_0x56c6f7(0x407)]!='string')return this[_0x56c6f7(0x36e)](),Promise['reject'](new Error(_0x2be5ef[_0x56c6f7(0x3fd)]));_0x4d7935=_0x5a5cdd[_0x56c6f7(0x407)];}catch{return this[_0x56c6f7(0x36e)](),Promise[_0x56c6f7(0x21c)](new Error(_0x2be5ef['ERROR_IMAGE']));}return new Promise((_0x29a706,_0x374a6e)=>{const _0x35e019=_0x56c6f7,_0xe3fa98=new FileReader();_0xe3fa98[_0x35e019(0x3bc)](_0x2f3b42),_0xe3fa98[_0x35e019(0x2cf)]=_0xd1b142=>{const _0x54e478=_0x35e019;var _0x5678b8;const _0x16890e=(_0x5678b8=_0xd1b142[_0x54e478(0x344)])==null?void 0x0:_0x5678b8['result'];if(_0x16890e==null){this[_0x54e478(0x36e)](),_0x374a6e(new Error(_0x2be5ef[_0x54e478(0x3fd)]));return;}const _0x14a6e9=_0x295a4b[_0x54e478(0x352)](0x6);_0x29a706({'imageId':_0x14a6e9,'imageSourceType':_0x356a4c[_0x54e478(0x2de)],'source':_0x4d7935,'base64Cache':_0x16890e,'status':_0x2be5ef['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x35fe9a(0x3de)](){const _0x3ac007=_0x35fe9a;var _0x3fb5ba;return(_0x3fb5ba=this[_0x3ac007(0x449)][_0x3ac007(0x358)](uo))!=null?_0x3fb5ba:fo;}[_0x35fe9a(0x1de)](){const _0x2cdd73=_0x35fe9a;var _0x165971;return(_0x165971=this[_0x2cdd73(0x449)]['getConfig'](go))!=null?_0x165971:mo;}[_0x35fe9a(0x3bf)](_0x8f4fe9,_0x4c67b7){const _0x40c294=_0x35fe9a;return _0x8f4fe9[_0x40c294(0x211)](_0x40c294(0x2c0),_0x4c67b7);}[_0x35fe9a(0x36e)](){const _0x2183b5=_0x35fe9a;this['_waitCount']-=0x1,this['_change$'][_0x2183b5(0x3be)](this[_0x2183b5(0x1cd)]);}};It=ho([ss(0x0,_0x5b3e40(_0x588bfd)),ss(0x1,_0x4e019d)],It);var As=Object[_0x35fe9a(0x448)],So=Object[_0x35fe9a(0x1db)],vo=(_0x4c8a66,_0xf9cea6,_0x5f31bf)=>_0xf9cea6 in _0x4c8a66?As(_0x4c8a66,_0xf9cea6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f31bf}):_0x4c8a66[_0xf9cea6]=_0x5f31bf,po=(_0x5c5c6d,_0x407f07,_0xc0fcf5,_0x325b7b)=>{const _0x4843ac=_0x35fe9a;for(var _0x29f7b2=_0x325b7b>0x1?void 0x0:_0x325b7b?So(_0x407f07,_0xc0fcf5):_0x407f07,_0x330941=_0x5c5c6d[_0x4843ac(0x443)]-0x1,_0x418975;_0x330941>=0x0;_0x330941--)(_0x418975=_0x5c5c6d[_0x330941])&&(_0x29f7b2=(_0x325b7b?_0x418975(_0x407f07,_0xc0fcf5,_0x29f7b2):_0x418975(_0x29f7b2))||_0x29f7b2);return _0x325b7b&&_0x29f7b2&&As(_0x407f07,_0xc0fcf5,_0x29f7b2),_0x29f7b2;},is=(_0x151adc,_0x82060f)=>(_0x1a9226,_0x53c18e)=>_0x82060f(_0x1a9226,_0x53c18e,_0x151adc),Io=(_0x529965,_0x1c2b40,_0x402909)=>vo(_0x529965,_0x1c2b40+'',_0x402909);const Eo=_0x35fe9a(0x2b6);let Et=class extends _0x3c1164{constructor(_0x1bfae0,_0x335f54,_0x44d18e){const _0x26d811=_0x35fe9a;super(),this[_0x26d811(0x291)]=_0x1bfae0,this[_0x26d811(0x248)]=_0x335f54,this[_0x26d811(0x325)]=_0x44d18e;}['onStarting'](_0x28a4ff){const _0xd9b4c2=_0x35fe9a;var _0x3110bc,_0x2653d4,_0xec8871,_0x5cff5a,_0xf5ce63;_0x28a4ff[_0xd9b4c2(0x189)](_0x4b7ddb)&&this[_0xd9b4c2(0x248)][_0xd9b4c2(0x185)](_0xd9b4c2(0x216),_0xd9b4c2(0x335));let _0x4b2abd=[[_0x4b7ddb,{'useClass':vt}],[Re],[At],[_0x588bfd],[Ms,{'useClass':Wr}],[ee],[D],[_0x5509e6],[ke],[Ve],[Be],[Mt],[Ge],[bs,{'useClass':(_0x2653d4=(_0x3110bc=this[_0xd9b4c2(0x291)])==null?void 0x0:_0x3110bc[_0xd9b4c2(0x452)])!=null?_0x2653d4:_t}],[_0x26f8d2,{'useClass':_0x199929}],[_0x1f3aa6,{'useClass':St}],[_0x5c7307,{'useClass':pt}],[_0x1f3428,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0xec8871=this[_0xd9b4c2(0x291)])!=null&&_0xec8871['enableSingleActiveInstanceLock']&&_0x4b2abd['push']([Xe,{'useClass':Tn}]),((_0x5cff5a=this[_0xd9b4c2(0x291)])==null?void 0x0:_0x5cff5a['collaborationUniverTypes'])==null||this[_0xd9b4c2(0x291)][_0xd9b4c2(0x378)][_0xd9b4c2(0x1ea)](_0x9a39b6['UNIVER_SHEET'])?_0x4b2abd[_0xd9b4c2(0x472)]([$e]):this[_0xd9b4c2(0x291)][_0xd9b4c2(0x378)][_0xd9b4c2(0x1ea)](_0x9a39b6[_0xd9b4c2(0x1f2)])&&_0x4b2abd[_0xd9b4c2(0x472)]([Fe]),_0x4b2abd=_0x3e3d43(_0x4b2abd,(_0xf5ce63=this['_config'])==null?void 0x0:_0xf5ce63['override']),_0x4b2abd[_0xd9b4c2(0x2b2)](_0x2a8330=>_0x28a4ff['add'](_0x2a8330)),_0x28a4ff[_0xd9b4c2(0x3e8)](_0x588bfd)[_0xd9b4c2(0x381)]({'priority':0x14,'interceptor':_0x3318df({'maxParallel':0x6})}),this[_0xd9b4c2(0x306)]();}['_initModules'](){const _0x14d5d5=_0x35fe9a;var _0x43879e,_0x28c117;(_0x43879e=this['_config'])!=null&&_0x43879e[_0x14d5d5(0x3e2)]||this[_0x14d5d5(0x325)][_0x14d5d5(0x3e8)](D)[_0x14d5d5(0x3a1)](),(_0x28c117=this['_config'])!=null&&_0x28c117[_0x14d5d5(0x2df)]&&this[_0x14d5d5(0x325)][_0x14d5d5(0x3e8)](Ge);}};Io(Et,_0x35fe9a(0x1c2),Eo),Et=po([_0x19f942(_0xc5e94c),is(0x1,_0x294e85),is(0x2,_0x5b3e40(_0x331eca))],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,Is as HEARTBEAT_TIMEOUT_KEY,bs as ICollaborationSocketService,Ms 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};
|