@univerjs-pro/collaboration-client 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4d300e=_0x3069;(function(_0xa59fad,_0x5ea225){const _0x3854e2=_0x3069,_0x515c1a=_0xa59fad();while(!![]){try{const _0x599856=parseInt(_0x3854e2(0x322))/0x1*(parseInt(_0x3854e2(0x1e1))/0x2)+-parseInt(_0x3854e2(0x289))/0x3+-parseInt(_0x3854e2(0x2fd))/0x4+parseInt(_0x3854e2(0x2ba))/0x5+-parseInt(_0x3854e2(0x416))/0x6*(-parseInt(_0x3854e2(0x1ed))/0x7)+-parseInt(_0x3854e2(0x34d))/0x8+parseInt(_0x3854e2(0x379))/0x9;if(_0x599856===_0x5ea225)break;else _0x515c1a['push'](_0x515c1a['shift']());}catch(_0x30fccf){_0x515c1a['push'](_0x515c1a['shift']());}}}(_0x2cce,0x8a7f1));var xs=Object[_0x4d300e(0x26c)],Fs=(_0x127230,_0x32b1c6,_0x55c401)=>_0x32b1c6 in _0x127230?xs(_0x127230,_0x32b1c6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55c401}):_0x127230[_0x32b1c6]=_0x55c401,l=(_0x18a0cc,_0x2d9477,_0x23bbe4)=>Fs(_0x18a0cc,typeof _0x2d9477!='symbol'?_0x2d9477+'':_0x2d9477,_0x23bbe4);import{Disposable as _0x277f24,toDisposable as _0x3505c8,UniverInstanceType as _0x590cf1,UserManagerService as _0x306136,IUniverInstanceService as _0x54cb93,DisposableCollection as _0x12667e,IConfigService as _0xf370fc,ILogService as _0x1546f9,ISnapshotServerService as _0x2c8ca6,RxDisposable as _0x523d01,LocaleService as _0x399826,ILocalStorageService as _0x3d7655,Tools as _0x2f7711,ICommandService as _0x11685c,JSONX as _0x17ac43,IPermissionService as _0x23c04e,IUndoRedoService as _0x26da0d,sequenceExecute as _0x596504,OnLifecycle as _0x571911,LifecycleStages as _0x4f7ed2,CommandType as _0x275930,Rectangle as _0x3dbb71,ThemeService as _0x359dbb,Workbook as _0x26b2b6,textEncoder as _0x19960f,b64DecodeUnicode as _0x53efc0,LocalUndoRedoService as _0x20f3f2,IContextService as _0x1d92a1,COLORS as _0x287eb6,ColorKit as _0x103dab,Plugin as _0x33aefa,IAuthzIoService as _0x1e1021,mergeOverrideWithDependencies as _0x30c093,DependentOn as _0x52343f}from'@univerjs/core';import{SelectionManagerService as _0x3a06f8,SetSelectionsOperation as _0x3c9caa,InsertSheetMutation as _0x52f5cc,WorkbookEditablePermission as _0x4e8e4c,RefRangeService as _0x4619c7,EffectRefRangId as _0x298da2,handleIRemoveRow as _0x15fe12,handleIRemoveCol as _0x3ae47d,handleMoveRange as _0x19143a,handleInsertRow as _0x1f54fa,handleInsertRangeMoveRight as _0x58fd8c,handleInsertRangeMoveDown as _0x2e43b5,handleInsertCol as _0x4f5a34,handleDeleteRangeMoveUp as _0x4c9c37,handleDeleteRangeMoveLeft as _0x3ebd17,runRefRangeMutations as _0xce03aa,SetWorksheetActivateCommand as _0x14436f}from'@univerjs/sheets';import{MessageType as _0x1ae78a}from'@univerjs/design';import{IBeforeCloseService as _0x396b8f,IMessageService as _0x2654c7,INotificationService as _0x41d64a,useObservable as _0x4758ca,BuiltInUIPart as _0x5410b4,IUIPartsService as _0x573341}from'@univerjs/ui';import{CollaborationEvent as _0x2132ab,parseChangesetToProtocol as _0x552331,RevisionService as _0x3ae57a,isTransformMutationFailure as _0x4e913c,isTransformMutationsWithChangesetSuccess as _0x23d1f2,ITransformService as _0x18339f,mapDocumentTypeToUniverType as _0xa15fc0,isTransformChangesetsSuccess as _0x5c0a92,CompressMutationService as _0x8d6b01,parseProtocolChangeset as _0x18efab,SnapshotService as _0x49bc92,isTransformMutationsWithChangesetFailure as _0x156a19,UniverCollaborationPlugin as _0x13f0c4}from'@univerjs-pro/collaboration';import{Inject as _0x5ee80d,createIdentifier as _0x5add15,Injector as _0x1fa2c4,Optional as _0x23081c}from'@wendellhu/redi';import{merge as _0x1b5032,Subject as _0x4b8ba0,BehaviorSubject as _0x25861f,distinctUntilChanged as _0xcaa6e8,fromEvent as _0x36be47,of as _0xd6321,takeUntil as _0x516ad9,debounceTime as _0x1d740e,filter as _0x2e93ef,switchMap as _0x3ed5d8,combineLatest as _0x18a14e,shareReplay as _0x1967c6,mapTo as _0x3ed718,concatMap as _0x7c3684}from'rxjs';import{map as _0x50cc5c,takeUntil as _0xa17723,take as _0x4b46b5,filter as _0x299caa,delay as _0x1ee433,shareReplay as _0x2c07c4,switchMap as _0x2e181c}from'rxjs/operators';import{IMEInputManagerService as _0x42b0ac,TextSelectionManagerService as _0x1be661,serializeTextRange as _0x4e7f89,DocStateChangeManagerService as _0x3a2339,SetTextSelectionsOperation as _0x4d434a,RichTextEditingMutation as _0x417fd3,getDocObject as _0x215a5f,DocSkeletonManagerService as _0x4a3eee}from'@univerjs/docs';import{HTTPService as _0x27e9f9,WebSocketService as _0x57dd41,IHTTPImplementation as _0x3494a9,XHRHTTPImplementation as _0x4de81b,ThresholdInterceptorFactory as _0x7c5f10}from'@univerjs/network';import{ImageSourceType as _0x3720a4,ImageUploadStatusType as _0x4ac875,IImageIoService as _0x262711}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x23934b,serializeRangeWithSheet as _0x400de7}from'@univerjs/engine-formula';import _0x3a382a from'lodash/debounce';import{Shape as _0x27910d,Rect as _0x45d0de,Vector2 as _0x24d450,IRenderManagerService as _0x7e7d56,NodePositionConvertToCursor as _0x5e74f1,getColor as _0x284be6,TEXT_RANGE_LAYER_INDEX as _0x28640a,RegularPolygon as _0x7bfc95}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x27eca1,VIEWPORT_KEY as _0x9ec2a1,getCoordByCell as _0x2d7856,getSheetObject as _0x5d50ce}from'@univerjs/sheets-ui';import{useDependency as _0x339be7,connectInjector as _0x5be459}from'@wendellhu/redi/react-bindings';import _0x408d9c,{forwardRef as _0x4af26f,useRef as _0x4bbe78,createElement as _0x3c3c17}from'react';import _0x493b4a from'clsx';import{IRemoteInstanceService as _0x4e1b40}from'@univerjs/rpc';const Gi='SNAPSHOT_SERVER_URL_KEY',Yi=_0x4d300e(0x427),Ki=_0x4d300e(0x3c9),Xi=_0x4d300e(0x401),Ji=0x7d0,zi='COLLAB_WEB_SOCKET_URL',Zi=_0x4d300e(0x2f2),qi='HEARTBEAT_INTERVAL',Qi=0x7530,Is=_0x4d300e(0x387),Es=0x2710,en=_0x4d300e(0x2e5),tn=0x4e20,sn='RETRY_CONNECTING_MAX_COUNT',nn=0x3,rn=_0x4d300e(0x2f7),on=0x3e8,an=_0x4d300e(0x3e5),cn=_0x4d300e(0x449),hn='LOGIN_URL_KEY',ln=_0x4d300e(0x30a);var Cs=(_0x885bc0=>(_0x885bc0[_0x885bc0['UNDEFINED']=0x0]=_0x4d300e(0x356),_0x885bc0[_0x885bc0['OK']=0x1]='OK',_0x885bc0[_0x885bc0[_0x4d300e(0x305)]=0x2]=_0x4d300e(0x305),_0x885bc0[_0x885bc0[_0x4d300e(0x2bb)]=0x3]='PERMISSION_DENIED',_0x885bc0[_0x885bc0['NOT_FOUND']=0x4]=_0x4d300e(0x1d0),_0x885bc0[_0x885bc0[_0x4d300e(0x2ab)]=0x5]=_0x4d300e(0x2ab),_0x885bc0[_0x885bc0[_0x4d300e(0x3d6)]=0x6]=_0x4d300e(0x3d6),_0x885bc0[_0x885bc0[_0x4d300e(0x2c4)]=0x7]=_0x4d300e(0x2c4),_0x885bc0[_0x885bc0[_0x4d300e(0x453)]=0x8]=_0x4d300e(0x453),_0x885bc0[_0x885bc0[_0x4d300e(0x37f)]=0x9]=_0x4d300e(0x37f),_0x885bc0[_0x885bc0[_0x4d300e(0x22c)]=0x1389]=_0x4d300e(0x22c),_0x885bc0[_0x885bc0[_0x4d300e(0x3f6)]=0x1771]=_0x4d300e(0x3f6),_0x885bc0[_0x885bc0[_0x4d300e(0x452)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x885bc0[_0x885bc0[_0x4d300e(0x285)]=0x1b59]=_0x4d300e(0x285),_0x885bc0[_0x885bc0[_0x4d300e(0x301)]=0x1b5a]=_0x4d300e(0x301),_0x885bc0[_0x885bc0['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4d300e(0x3a4),_0x885bc0[_0x885bc0[_0x4d300e(0x43a)]=0x1b5c]=_0x4d300e(0x43a),_0x885bc0[_0x885bc0[_0x4d300e(0x30f)]=0x1f41]=_0x4d300e(0x30f),_0x885bc0[_0x885bc0[_0x4d300e(0x22f)]=0x2329]=_0x4d300e(0x22f),_0x885bc0[_0x885bc0[_0x4d300e(0x1e3)]=0x232a]=_0x4d300e(0x1e3),_0x885bc0[_0x885bc0['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x885bc0[_0x885bc0[_0x4d300e(0x355)]=0x232c]=_0x4d300e(0x355),_0x885bc0[_0x885bc0['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x885bc0[_0x885bc0[_0x4d300e(0x37d)]=0x2711]=_0x4d300e(0x37d),_0x885bc0[_0x885bc0[_0x4d300e(0x29e)]=0x2712]=_0x4d300e(0x29e),_0x885bc0[_0x885bc0[_0x4d300e(0x405)]=-0x1]=_0x4d300e(0x405),_0x885bc0))(Cs||{}),H=(_0x4a0ceb=>(_0x4a0ceb[_0x4a0ceb[_0x4d300e(0x41d)]=0x0]=_0x4d300e(0x41d),_0x4a0ceb[_0x4a0ceb[_0x4d300e(0x2aa)]=0x1]='UNIVER_DOC',_0x4a0ceb[_0x4a0ceb[_0x4d300e(0x282)]=0x2]=_0x4d300e(0x282),_0x4a0ceb[_0x4a0ceb[_0x4d300e(0x295)]=0x3]='UNIVER_SLIDE',_0x4a0ceb[_0x4a0ceb['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x4a0ceb))(H||{}),I=(_0x25c0e5=>(_0x25c0e5[_0x25c0e5[_0x4d300e(0x3a6)]=0x0]=_0x4d300e(0x3a6),_0x25c0e5[_0x25c0e5[_0x4d300e(0x469)]=0x1]='HELLO',_0x25c0e5[_0x25c0e5[_0x4d300e(0x260)]=0x2]='JOIN',_0x25c0e5[_0x25c0e5[_0x4d300e(0x389)]=0x3]=_0x4d300e(0x389),_0x25c0e5[_0x25c0e5['INGEST']=0x4]=_0x4d300e(0x1d7),_0x25c0e5[_0x25c0e5[_0x4d300e(0x380)]=0x5]=_0x4d300e(0x380),_0x25c0e5[_0x25c0e5['RECV']=0x6]=_0x4d300e(0x2d8),_0x25c0e5[_0x25c0e5['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x25c0e5))(I||{}),Nt=(_0x56cad3=>(_0x56cad3[_0x56cad3[_0x4d300e(0x218)]=0x0]='UNKNOWN_CODE',_0x56cad3[_0x56cad3['OK']=0x1]='OK',_0x56cad3[_0x56cad3[_0x4d300e(0x468)]=0x2]='FAIL',_0x56cad3[_0x56cad3[_0x4d300e(0x405)]=-0x1]=_0x4d300e(0x405),_0x56cad3))(Nt||{}),_n=Object[_0x4d300e(0x26c)],un=Object['getOwnPropertyDescriptor'],dn=(_0x2a0fa7,_0x10e8d3,_0x3c88ef,_0x179364)=>{const _0x4accba=_0x4d300e;for(var _0x49480a=_0x179364>0x1?void 0x0:_0x179364?un(_0x10e8d3,_0x3c88ef):_0x10e8d3,_0x312ef8=_0x2a0fa7[_0x4accba(0x1b8)]-0x1,_0x15f203;_0x312ef8>=0x0;_0x312ef8--)(_0x15f203=_0x2a0fa7[_0x312ef8])&&(_0x49480a=(_0x179364?_0x15f203(_0x10e8d3,_0x3c88ef,_0x49480a):_0x15f203(_0x49480a))||_0x49480a);return _0x179364&&_0x49480a&&_n(_0x10e8d3,_0x3c88ef,_0x49480a),_0x49480a;},Wt=(_0x163d8d,_0x1c9cbc)=>(_0x25da8e,_0x57b449)=>_0x1c9cbc(_0x25da8e,_0x57b449,_0x163d8d);let ee=class extends _0x277f24{constructor(_0x505e19,_0x4cf2e7){const _0x38e575=_0x4d300e;super(),l(this,_0x38e575(0x426),new Map()),(this[_0x38e575(0x229)]=_0x505e19,this[_0x38e575(0x3bd)]=_0x4cf2e7,this[_0x38e575(0x1a4)](_0x3505c8(_0x1b5032(this[_0x38e575(0x229)][_0x38e575(0x376)](_0x590cf1['UNIVER_SHEET'])[_0x38e575(0x21f)](_0x50cc5c(_0x27c08e=>_0x27c08e[_0x38e575(0x419)]())),this['_univerInstanceService'][_0x38e575(0x376)](_0x590cf1[_0x38e575(0x2aa)])[_0x38e575(0x21f)](_0x50cc5c(_0x12bb2f=>_0x12bb2f[_0x38e575(0x419)]())),this[_0x38e575(0x229)][_0x38e575(0x376)](_0x590cf1[_0x38e575(0x295)])['pipe'](_0x50cc5c(_0x3742ae=>_0x3742ae[_0x38e575(0x419)]())))[_0x38e575(0x253)](_0x4d9e5e=>this[_0x38e575(0x21b)](_0x4d9e5e)))));}['setCurrentUser'](_0x28f3aa){const _0x5208b0=_0x4d300e;this[_0x5208b0(0x3bd)]['setCurrentUser'](_0x28f3aa);}[_0x4d300e(0x290)](){const _0x5d9d16=_0x4d300e;return this[_0x5d9d16(0x3bd)][_0x5d9d16(0x290)]();}[_0x4d300e(0x37e)](_0x13dba9,_0x1413ab){const _0x34e9cc=_0x4d300e;let _0x5d5ad0=this[_0x34e9cc(0x426)]['get'](_0x13dba9);_0x5d5ad0||(_0x5d5ad0=new fn(),this[_0x34e9cc(0x426)]['set'](_0x13dba9,_0x5d5ad0)),_0x5d5ad0[_0x34e9cc(0x37e)](_0x1413ab);}[_0x4d300e(0x2d6)](_0x4394b1,_0x4083f5){const _0xa040d=_0x4d300e,_0xe0351d=this[_0xa040d(0x426)][_0xa040d(0x23f)](_0x4394b1);_0xe0351d&&_0xe0351d[_0xa040d(0x2d6)](_0x4083f5);}[_0x4d300e(0x2bf)](_0x5422a1){const _0x4357ce=_0x4d300e;return this['_roomMembers'][_0x4357ce(0x23f)](_0x5422a1);}[_0x4d300e(0x3a2)](_0x47e7bb,_0xa69dc0){const _0x5f0511=_0x4d300e,_0x3981aa=this[_0x5f0511(0x426)]['get'](_0x47e7bb);if(_0x3981aa)return _0x3981aa[_0x5f0511(0x3a2)](_0xa69dc0);}[_0x4d300e(0x21b)](_0x555da1){const _0x259395=_0x4d300e,_0x1be0fb=this[_0x259395(0x426)][_0x259395(0x23f)](_0x555da1);_0x1be0fb&&(_0x1be0fb[_0x259395(0x27d)](),this['_roomMembers'][_0x259395(0x284)](_0x555da1));}[_0x4d300e(0x27d)](){const _0x1ee425=_0x4d300e;this['_roomMembers'][_0x1ee425(0x2b7)](_0x266a81=>_0x266a81[_0x1ee425(0x27d)]()),this[_0x1ee425(0x426)][_0x1ee425(0x1c1)]();}};ee=dn([Wt(0x0,_0x54cb93),Wt(0x1,_0x5ee80d(_0x306136))],ee);class fn extends _0x277f24{constructor(){super(...arguments),l(this,'_members',new Map());}[_0x4d300e(0x27d)](){const _0x122c24=_0x4d300e;this[_0x122c24(0x1f9)]['clear']();}[_0x4d300e(0x37e)](_0x5e05e0){const _0x3536bb=_0x4d300e;this[_0x3536bb(0x1f9)][_0x3536bb(0x1ef)](_0x5e05e0['memberID'],_0x5e05e0);}[_0x4d300e(0x2d6)](_0x204f2d){const _0x2a9ac1=_0x4d300e;this[_0x2a9ac1(0x1f9)][_0x2a9ac1(0x284)](_0x204f2d);}['getMember'](_0x551079){const _0x152819=_0x4d300e;return this[_0x152819(0x1f9)][_0x152819(0x23f)](_0x551079);}}function gn(_0x4f5e2f){const _0x40fb77=_0x4d300e;var _0xa50e8c,_0x380adf,_0x4d0802,_0x21e3d2;const _0x1b34d6=_0x4f5e2f['data'],_0x17f433=JSON[_0x40fb77(0x180)](_0x1b34d6);switch(_0x17f433[_0x40fb77(0x2a8)]){case I[_0x40fb77(0x380)]:case I[_0x40fb77(0x469)]:{const _0x215cad=_0x17f433[_0x40fb77(0x2fa)];return{..._0x17f433,'data':_0x215cad,'cmd':_0x17f433['cmd']};}case I[_0x40fb77(0x260)]:{const _0x472fe4=_0x17f433[_0x40fb77(0x41e)];return{..._0x17f433,'data':_0x472fe4,'cmd':_0x17f433[_0x40fb77(0x2a8)]};}case I[_0x40fb77(0x2d8)]:{const _0x49ae28=_0x17f433['collaMsg'];switch(_0x49ae28[_0x40fb77(0x36d)]){case _0x2132ab['PERMISSION_REJ']:return{..._0x17f433,'data':{..._0x49ae28,'data':(_0xa50e8c=_0x49ae28[_0x40fb77(0x2f3)])==null?void 0x0:_0xa50e8c['cs']},'cmd':_0x17f433[_0x40fb77(0x2a8)]};case _0x2132ab[_0x40fb77(0x321)]:return{..._0x17f433,'data':{..._0x49ae28,'data':(_0x380adf=_0x49ae28[_0x40fb77(0x2ae)])==null?void 0x0:_0x380adf['cs']},'cmd':_0x17f433['cmd']};case _0x2132ab[_0x40fb77(0x236)]:return{..._0x17f433,'data':{..._0x49ae28,'data':(_0x4d0802=_0x49ae28[_0x40fb77(0x1c5)])==null?void 0x0:_0x4d0802['cs']},'cmd':_0x17f433[_0x40fb77(0x2a8)]};case _0x2132ab['CHANGESET_REJ']:return{..._0x17f433,'data':{..._0x49ae28,'data':(_0x21e3d2=_0x49ae28[_0x40fb77(0x1a6)])==null?void 0x0:_0x21e3d2['cs']},'cmd':_0x17f433[_0x40fb77(0x2a8)]};case _0x2132ab[_0x40fb77(0x20e)]:return{..._0x17f433,'data':{..._0x49ae28,'data':_0x49ae28['updateCursorEvent']},'cmd':_0x17f433[_0x40fb77(0x2a8)]};case _0x2132ab['USERS_ENTER']:return{..._0x17f433,'data':{..._0x49ae28,'data':_0x49ae28['joinEvent']},'cmd':_0x17f433[_0x40fb77(0x2a8)]};case _0x2132ab[_0x40fb77(0x24c)]:return{..._0x17f433,'data':{..._0x49ae28,'data':_0x49ae28[_0x40fb77(0x489)]},'cmd':_0x17f433[_0x40fb77(0x2a8)]};case _0x2132ab[_0x40fb77(0x3d8)]:return{..._0x17f433,'data':{..._0x49ae28,'data':_0x49ae28[_0x40fb77(0x1b9)]},'cmd':_0x17f433[_0x40fb77(0x2a8)]};case _0x2132ab['LIVESHARE_FETCH_OPERATIONS']:case _0x2132ab[_0x40fb77(0x27a)]:return{..._0x17f433,'data':{..._0x49ae28,'data':_0x49ae28[_0x40fb77(0x35f)]},'cmd':_0x17f433[_0x40fb77(0x2a8)]};case _0x2132ab[_0x40fb77(0x354)]:return{..._0x17f433,'data':{..._0x49ae28,'data':_0x49ae28[_0x40fb77(0x1b9)]},'cmd':_0x17f433[_0x40fb77(0x2a8)]};case _0x2132ab[_0x40fb77(0x251)]:return{..._0x17f433,'data':_0x49ae28,'cmd':_0x17f433[_0x40fb77(0x2a8)]};case _0x2132ab[_0x40fb77(0x38d)]:return{..._0x17f433,'data':{..._0x49ae28,'data':_0x49ae28[_0x40fb77(0x490)]},'cmd':_0x17f433[_0x40fb77(0x2a8)]};default:return _0x17f433;}}default:return _0x17f433;}}function mn(_0x4da0eb){const _0x387f05=_0x4d300e;switch(_0x4da0eb['cmd']){case I[_0x387f05(0x380)]:case I[_0x387f05(0x469)]:return JSON[_0x387f05(0x3ae)]({'cmd':_0x4da0eb[_0x387f05(0x2a8)],'routeKey':_0x4da0eb[_0x387f05(0x302)]});case I['INGEST']:{let _0xbc20;switch(_0x4da0eb[_0x387f05(0x3eb)][_0x387f05(0x36d)]){case _0x2132ab[_0x387f05(0x20e)]:{_0xbc20={'eventID':_0x2132ab[_0x387f05(0x20e)],'updateCursorEvent':_0x4da0eb[_0x387f05(0x3eb)]['data']};break;}case _0x2132ab[_0x387f05(0x24c)]:{_0xbc20={'eventID':_0x2132ab['USERS_LEAVE'],'leaveEvent':_0x4da0eb[_0x387f05(0x3eb)][_0x387f05(0x3eb)]};break;}case _0x2132ab[_0x387f05(0x2c8)]:{_0xbc20={'eventID':_0x2132ab[_0x387f05(0x2c8)],'joinEvent':_0x4da0eb[_0x387f05(0x3eb)][_0x387f05(0x3eb)]};break;}case _0x2132ab[_0x387f05(0x3d8)]:{_0xbc20={'eventID':_0x2132ab[_0x387f05(0x3d8)],'liveShareNewHost':_0x4da0eb[_0x387f05(0x3eb)]['data']};break;}case _0x2132ab[_0x387f05(0x27a)]:{_0xbc20={'eventID':_0x2132ab[_0x387f05(0x27a)],'liveShareOperation':_0x4da0eb[_0x387f05(0x3eb)]['data']};break;}case _0x2132ab[_0x387f05(0x354)]:{_0xbc20={'eventID':_0x2132ab[_0x387f05(0x354)],'liveShareTerminate':_0x4da0eb[_0x387f05(0x3eb)]['data']};break;}case _0x2132ab[_0x387f05(0x2c1)]:{_0xbc20={'eventID':_0x2132ab[_0x387f05(0x2c1)],'liveShareRequestHost':_0x4da0eb[_0x387f05(0x3eb)]['data']};break;}case _0x2132ab[_0x387f05(0x186)]:{_0xbc20={'eventID':_0x2132ab[_0x387f05(0x186)]};break;}default:_0xbc20={'eventID':_0x4da0eb['data'][_0x387f05(0x36d)]};}return JSON['stringify']({'cmd':_0x4da0eb[_0x387f05(0x2a8)],'routeKey':_0x4da0eb[_0x387f05(0x302)],'collaMsg':_0xbc20});}case I['JOIN']:return JSON[_0x387f05(0x3ae)]({'cmd':_0x4da0eb[_0x387f05(0x2a8)],'routeKey':_0x4da0eb[_0x387f05(0x302)],'joinReq':_0x4da0eb['data']});case I[_0x387f05(0x389)]:return JSON[_0x387f05(0x3ae)]({'cmd':_0x4da0eb[_0x387f05(0x2a8)],'routeKey':_0x4da0eb[_0x387f05(0x302)],'leaveReq':_0x4da0eb['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Sn=Object[_0x4d300e(0x26c)],vn=Object['getOwnPropertyDescriptor'],pn=(_0xef4a66,_0x31b7e7,_0x5812d5,_0x1c7fdb)=>{const _0x55504e=_0x4d300e;for(var _0x70e36a=_0x1c7fdb>0x1?void 0x0:_0x1c7fdb?vn(_0x31b7e7,_0x5812d5):_0x31b7e7,_0x21dba7=_0xef4a66[_0x55504e(0x1b8)]-0x1,_0x2f98c3;_0x21dba7>=0x0;_0x21dba7--)(_0x2f98c3=_0xef4a66[_0x21dba7])&&(_0x70e36a=(_0x1c7fdb?_0x2f98c3(_0x31b7e7,_0x5812d5,_0x70e36a):_0x2f98c3(_0x70e36a))||_0x70e36a);return _0x1c7fdb&&_0x70e36a&&Sn(_0x31b7e7,_0x5812d5,_0x70e36a),_0x70e36a;},me=(_0x11de89,_0x480d50)=>(_0xe31336,_0xbcc3ba)=>_0x480d50(_0xe31336,_0xbcc3ba,_0x11de89);const bs=_0x5add15(_0x4d300e(0x1e8));function In(_0x4eebfd,_0xd605b5,_0x361e20){const _0x132527=_0x4d300e;return _0x4eebfd+'/'+_0xd605b5+_0x132527(0x465)+_0x361e20+_0x132527(0x1a3);}let _t=class{constructor(_0x343209,_0x310051,_0x24b21e,_0x4faaec,_0x406955){const _0x1098e7=_0x4d300e;this[_0x1098e7(0x22a)]=_0x343209,this[_0x1098e7(0x199)]=_0x310051,this[_0x1098e7(0x40e)]=_0x24b21e,this[_0x1098e7(0x439)]=_0x4faaec,this[_0x1098e7(0x407)]=_0x406955;}[_0x4d300e(0x32f)](_0xdef28d){const _0x291915=_0x4d300e,_0x425acf=this[_0x291915(0x199)]['createSocket'](_0xdef28d);if(!_0x425acf)throw new Error(_0x291915(0x422));const _0x3fc1ca=new _0x12667e(),_0x1ab90d=new _0x4b8ba0();_0x3fc1ca[_0x291915(0x349)](_0x3505c8(_0x425acf[_0x291915(0x38c)]['subscribe'](_0x4cf95e=>_0x1ab90d['next'](_0x4cf95e)))),_0x3fc1ca[_0x291915(0x349)](_0x3505c8(()=>_0x1ab90d['complete']()));const _0x54e208=new _0x4b8ba0();_0x3fc1ca[_0x291915(0x349)](_0x3505c8(_0x425acf[_0x291915(0x248)][_0x291915(0x253)](_0x528c9c=>_0x54e208[_0x291915(0x3bf)](_0x528c9c)))),_0x3fc1ca[_0x291915(0x349)](_0x3505c8(()=>_0x54e208['complete']()));const _0x962b31=new _0x4b8ba0();_0x3fc1ca[_0x291915(0x349)](_0x3505c8(_0x425acf[_0x291915(0x418)][_0x291915(0x253)](_0xfee512=>{const _0xc07df4=_0x291915,_0x2063ea=gn(_0xfee512);_0x962b31[_0xc07df4(0x3bf)](_0x2063ea);}))),_0x3fc1ca[_0x291915(0x349)](_0x3505c8(()=>_0x962b31[_0x291915(0x250)]()));const _0x5cd2f3=()=>{const _0x478a71=_0x291915;_0x54e208['next'](new Event(_0x478a71(0x1f3))),_0x1ab90d[_0x478a71(0x3bf)](new CloseEvent('connection\x20error')),_0x15b50d['close']();},_0x15b50d={'memberID':'','close$':_0x1ab90d[_0x291915(0x1a8)](),'error$':_0x54e208['asObservable'](),'open$':_0x425acf[_0x291915(0x22e)],'message$':_0x962b31[_0x291915(0x1a8)](),'send':_0xab3fb2=>{const _0x20b574=_0x291915;if(_0xab3fb2[_0x20b574(0x2a8)]===I[_0x20b574(0x1d7)]){if(_0xab3fb2[_0x20b574(0x3eb)][_0x20b574(0x36d)]===_0x2132ab[_0x20b574(0x283)]){this[_0x20b574(0x483)](_0x15b50d,_0xab3fb2[_0x20b574(0x3eb)])[_0x20b574(0x2c0)](_0x56f5c7=>{const _0xd76d34=_0x20b574;this[_0xd76d34(0x439)]['error'](_0x56f5c7),_0x5cd2f3();});return;}if(_0xab3fb2[_0x20b574(0x3eb)][_0x20b574(0x36d)]===_0x2132ab[_0x20b574(0x271)]){const _0x48205e=_0xab3fb2['data'];this[_0x20b574(0x2b8)](_0x48205e)[_0x20b574(0x415)](_0x5a5c5c=>{const _0x5607d9=_0x20b574;_0x962b31[_0x5607d9(0x3bf)]({'cmd':I[_0x5607d9(0x2d8)],'code':Nt['OK'],'routeKey':_0x48205e['data'][_0x5607d9(0x1c8)],'routeType':'','data':{'eventID':_0x2132ab['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5a5c5c}}});})[_0x20b574(0x2c0)](_0x361e54=>{const _0x1092f2=_0x20b574;this[_0x1092f2(0x439)][_0x1092f2(0x3d0)](_0x361e54),_0x5cd2f3();});return;}}_0x425acf[_0x20b574(0x370)](mn(_0xab3fb2));},'close':()=>{const _0x3f6ca9=_0x291915;_0x425acf[_0x3f6ca9(0x1cb)](),_0x3fc1ca[_0x3f6ca9(0x27d)]();}};return _0x15b50d;}async['_submitChangeset'](_0x41a8a1,_0x1815b7){const _0x3701e0=_0x4d300e;var _0x37ccb0;const {unitType:_0x5bd8a2,unitID:_0x138154,changeset:_0x5f2041}=_0x1815b7[_0x3701e0(0x3eb)],_0x4a9793={'unitID':_0x138154,'memberID':_0x41a8a1['memberID'],'type':_0x5bd8a2,'changeset':_0x552331(_0x5f2041)},_0x2b2ec6=In((_0x37ccb0=this[_0x3701e0(0x40e)]['getConfig'](an))!=null?_0x37ccb0:cn,_0x5bd8a2,_0x138154);try{await this[_0x3701e0(0x22a)]['post'](_0x2b2ec6,{'body':_0x4a9793});}catch(_0x249009){throw this[_0x3701e0(0x439)]['error'](_0x3701e0(0x2f6),'submit\x20changeset\x20error!'),_0x249009;}}async['_fetchMissChangesets'](_0x41ae05){const _0x466fae=_0x4d300e,{unitID:_0x53c7ca,from:_0x37e22a,to:_0x560016,unitType:_0x4d1a30}=_0x41ae05[_0x466fae(0x3eb)];return(await this[_0x466fae(0x407)][_0x466fae(0x375)]({'metadata':void 0x0},{'unitID':_0x53c7ca,'type':_0x4d1a30,'from':_0x37e22a,'to':_0x560016}))['changesets'];}};_t=pn([me(0x0,_0x5ee80d(_0x27e9f9)),me(0x1,_0x5ee80d(_0x57dd41)),me(0x2,_0xf370fc),me(0x3,_0x1546f9),me(0x4,_0x2c8ca6)],_t);class Rs{constructor(){const _0x8a055a=_0x4d300e;l(this,'_commentUpdate$',new _0x4b8ba0()),l(this,_0x8a055a(0x174),this['_commentUpdate$'][_0x8a055a(0x1a8)]());}[_0x4d300e(0x34e)](_0x41d559){const _0x1ef487=_0x4d300e;this[_0x1ef487(0x25e)]['next'](_0x41d559);}}var En=Object[_0x4d300e(0x26c)],Cn=Object[_0x4d300e(0x368)],Ts=(_0x2a1395,_0x5e84e5,_0x641000,_0xfed6d9)=>{for(var _0x47ca3d=_0xfed6d9>0x1?void 0x0:_0xfed6d9?Cn(_0x5e84e5,_0x641000):_0x5e84e5,_0x5ea534=_0x2a1395['length']-0x1,_0x42fa03;_0x5ea534>=0x0;_0x5ea534--)(_0x42fa03=_0x2a1395[_0x5ea534])&&(_0x47ca3d=(_0xfed6d9?_0x42fa03(_0x5e84e5,_0x641000,_0x47ca3d):_0x42fa03(_0x47ca3d))||_0x47ca3d);return _0xfed6d9&&_0x47ca3d&&En(_0x5e84e5,_0x641000,_0x47ca3d),_0x47ca3d;},M=(_0x5b940f,_0x4a9940)=>(_0x15d4f2,_0x5690da)=>_0x4a9940(_0x15d4f2,_0x5690da,_0x5b940f),_e=(_0x115248=>(_0x115248[_0x115248[_0x4d300e(0x1c0)]=0x0]='IDLE',_0x115248[_0x115248[_0x4d300e(0x259)]=0x1]='JOINING',_0x115248[_0x115248[_0x4d300e(0x23c)]=0x2]=_0x4d300e(0x23c),_0x115248[_0x115248['ONLINE']=0x3]=_0x4d300e(0x28b),_0x115248))(_e||{});let ut=class extends _0x523d01{constructor(_0x22bbaa,_0x2e1fd8,_0x4f2421,_0xcc0e01,_0x519874,_0x13b252,_0x486453,_0x2dd747,_0x30c38f){const _0x2ab007=_0x4d300e;super(),l(this,'_sessionStatus$',new _0x25861f(0x0)),l(this,_0x2ab007(0x381),this[_0x2ab007(0x38a)][_0x2ab007(0x1a8)]()),l(this,_0x2ab007(0x19d),new _0x4b8ba0()),l(this,_0x2ab007(0x48b),this[_0x2ab007(0x19d)][_0x2ab007(0x1a8)]()),l(this,_0x2ab007(0x2dd)),l(this,_0x2ab007(0x3b7)),l(this,'_collaborationTimeoutTimer'),(this[_0x2ab007(0x3c8)]=_0x22bbaa,this[_0x2ab007(0x439)]=_0x4f2421,this[_0x2ab007(0x3ea)]=_0xcc0e01,this['_messageService']=_0x519874,this[_0x2ab007(0x40e)]=_0x13b252,this['_localeService']=_0x486453,this[_0x2ab007(0x29b)]=_0x2dd747,this['_commentService']=_0x30c38f,_0x2e1fd8['pipe'](_0xa17723(this[_0x2ab007(0x3b2)]))[_0x2ab007(0x253)](_0x33b01c=>{const _0x320bfb=_0x2ab007;var _0x273ed1;typeof _0x33b01c>'u'||(this[_0x320bfb(0x2dd)]=_0x33b01c,_0x33b01c?(this['_joinRoom'](_0x33b01c),this['_socketMessageSubscription']=this[_0x320bfb(0x2dd)]['message$']['subscribe'](_0xab66b5=>{const _0x513f55=_0x320bfb;_0xab66b5['routeKey']===this[_0x513f55(0x3c8)]&&this[_0x513f55(0x39c)](_0xab66b5);})):(this[_0x320bfb(0x38a)][_0x320bfb(0x3bf)](0x2),(_0x273ed1=this['_socketMessageSubscription'])==null||_0x273ed1[_0x320bfb(0x2cc)](),this[_0x320bfb(0x3b7)]=null));}),this[_0x2ab007(0x1a4)](this[_0x2ab007(0x3ea)][_0x2ab007(0x404)](()=>{const _0x46da4d=_0x2ab007;var _0x3773ae;(_0x3773ae=this['_socket'])==null||_0x3773ae[_0x46da4d(0x370)]({'cmd':I[_0x46da4d(0x389)],'data':{'roomID':this[_0x46da4d(0x3c8)]}});})));}get[_0x4d300e(0x2b0)](){const _0x60b55d=_0x4d300e;return this['_sessionStatus$'][_0x60b55d(0x291)]();}[_0x4d300e(0x43f)](){const _0x308c7e=_0x4d300e;var _0x263c3f,_0x152031;return(_0x152031=(_0x263c3f=this[_0x308c7e(0x2dd)])==null?void 0x0:_0x263c3f[_0x308c7e(0x18b)])!=null?_0x152031:null;}[_0x4d300e(0x27d)](){const _0x3dd1a8=_0x4d300e;super[_0x3dd1a8(0x27d)](),this[_0x3dd1a8(0x3b2)][_0x3dd1a8(0x3bf)](),this[_0x3dd1a8(0x3b2)][_0x3dd1a8(0x250)]();}['_onCombEvent'](_0x2168cc){const _0x27407b=_0x4d300e;_0x2168cc[_0x27407b(0x2a8)]===I['JOIN']?this[_0x27407b(0x18d)](_0x2168cc):_0x2168cc[_0x27407b(0x2a8)]===I['RECV']&&this['_onRecvEvent'](_0x2168cc);}[_0x4d300e(0x46a)](_0x52cf32){const _0x42707d=_0x4d300e;this[_0x42707d(0x38a)][_0x42707d(0x3bf)](0x1),_0x52cf32[_0x42707d(0x370)]({'cmd':I['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x42707d(0x3c8)]}]}});}[_0x4d300e(0x18d)](_0x50f647){const _0xc42f72=_0x4d300e;var _0xa52c9a;if(_0x50f647[_0xc42f72(0x378)]===Nt[_0xc42f72(0x468)]){this[_0xc42f72(0x22d)][_0xc42f72(0x1c6)]({'type':_0x1ae78a[_0xc42f72(0x298)],'content':this['_localeService']['t']('session.room-full')}),this[_0xc42f72(0x38a)][_0xc42f72(0x3bf)](0x2);return;}this[_0xc42f72(0x38a)][_0xc42f72(0x3bf)](0x3);const _0x5e477f=(_0xa52c9a=_0x50f647[_0xc42f72(0x3eb)][_0xc42f72(0x2fe)][this[_0xc42f72(0x3c8)]])==null?void 0x0:_0xa52c9a[_0xc42f72(0x1cd)];_0x5e477f&&_0x5e477f[_0xc42f72(0x2b7)](_0x55d8f3=>this[_0xc42f72(0x29b)][_0xc42f72(0x37e)](this[_0xc42f72(0x3c8)],_0x55d8f3));}[_0x4d300e(0x230)](_0x31a0c8){const _0x554b7f=_0x4d300e;try{const _0x225b43=_0x31a0c8[_0x554b7f(0x3eb)];switch(_0x225b43[_0x554b7f(0x36d)]){case _0x2132ab['USERS_ENTER']:this[_0x554b7f(0x3c3)](_0x225b43),this[_0x554b7f(0x19d)][_0x554b7f(0x3bf)](_0x225b43);break;case _0x2132ab[_0x554b7f(0x24c)]:this[_0x554b7f(0x223)](_0x225b43),this['_event$'][_0x554b7f(0x3bf)](_0x225b43);break;case _0x2132ab[_0x554b7f(0x321)]:this[_0x554b7f(0x16e)](),this[_0x554b7f(0x19d)][_0x554b7f(0x3bf)](_0x225b43);break;case _0x2132ab[_0x554b7f(0x251)]:this['_logService'][_0x554b7f(0x3d0)](_0x554b7f(0x36e)+JSON[_0x554b7f(0x3ae)](_0x225b43)),this[_0x554b7f(0x19d)]['next'](_0x225b43);break;case _0x2132ab[_0x554b7f(0x38d)]:this['_commentService']['onCommentUpdate'](_0x225b43[_0x554b7f(0x3eb)]),this[_0x554b7f(0x19d)][_0x554b7f(0x3bf)](_0x225b43);break;default:this[_0x554b7f(0x19d)][_0x554b7f(0x3bf)](_0x225b43);}}catch(_0x4316bc){this[_0x554b7f(0x439)][_0x554b7f(0x3d0)](_0x4316bc,_0x31a0c8);}}['_onUserJoin'](_0x55f414){const _0x38b2a5=_0x4d300e;this[_0x38b2a5(0x29b)][_0x38b2a5(0x37e)](this[_0x38b2a5(0x3c8)],_0x55f414[_0x38b2a5(0x3eb)]);}[_0x4d300e(0x223)](_0x43c7ed){const _0x54c88d=_0x4d300e;this['_memberService']['removeMember'](this[_0x54c88d(0x3c8)],_0x43c7ed[_0x54c88d(0x3eb)][_0x54c88d(0x18b)]);}async[_0x4d300e(0x370)](_0x1f3e96,_0x23a42e){const _0x32b08f=_0x4d300e;if(this['sessionStatus']!==0x3||!this[_0x32b08f(0x2dd)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x1f3e96[_0x32b08f(0x36d)]===_0x2132ab['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x32b08f(0x2dd)][_0x32b08f(0x370)]({'cmd':I[_0x32b08f(0x1d7)],'routeKey':_0x23a42e,'routeType':'','data':_0x1f3e96});}catch(_0x59e813){this[_0x32b08f(0x439)][_0x32b08f(0x3d0)](_0x59e813);}}['_scheduleCollaborationTimeoutTimer'](){const _0x55a800=_0x4d300e;var _0x36b66c;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x717960=_0x3069;this[_0x717960(0x19f)]=null,this[_0x717960(0x22d)][_0x717960(0x1c6)]({'type':_0x1ae78a[_0x717960(0x1a5)],'content':this[_0x717960(0x1fd)]['t'](_0x717960(0x3f9))});},(_0x36b66c=this[_0x55a800(0x40e)][_0x55a800(0x377)](Is))!=null?_0x36b66c:Es);}[_0x4d300e(0x16e)](){const _0x1a5b2a=_0x4d300e;this[_0x1a5b2a(0x19f)]&&(clearTimeout(this[_0x1a5b2a(0x19f)]),this[_0x1a5b2a(0x19f)]=null);}};ut=Ts([M(0x2,_0x1546f9),M(0x3,_0x396b8f),M(0x4,_0x2654c7),M(0x5,_0xf370fc),M(0x6,_0x5ee80d(_0x399826)),M(0x7,_0x5ee80d(ee)),M(0x8,_0x5ee80d(Rs))],ut);let Re=class extends _0x277f24{constructor(_0x4771a8,_0x2745d9,_0x3e683b,_0x55311c,_0x3652ef,_0x10bb52){const _0x2dea2a=_0x4d300e;super(),l(this,_0x2dea2a(0x30c),new _0x25861f(void 0x0)),l(this,_0x2dea2a(0x47c),new Map()),l(this,_0x2dea2a(0x458),new _0x25861f(0x0)),l(this,'status$',this[_0x2dea2a(0x458)][_0x2dea2a(0x1a8)]()),l(this,_0x2dea2a(0x350),!0x1),l(this,_0x2dea2a(0x2e0)),l(this,_0x2dea2a(0x3a3)),l(this,'_retryConnectingTimer'),l(this,_0x2dea2a(0x442),0x0),(this[_0x2dea2a(0x3ef)]=_0x4771a8,this[_0x2dea2a(0x1fd)]=_0x2745d9,this[_0x2dea2a(0x22d)]=_0x3e683b,this[_0x2dea2a(0x439)]=_0x55311c,this[_0x2dea2a(0x40e)]=_0x3652ef,this[_0x2dea2a(0x1a9)]=_0x10bb52);}get[_0x4d300e(0x2dd)](){return this['_socket$']['getValue']();}[_0x4d300e(0x27d)](){const _0x3b275f=_0x4d300e;super[_0x3b275f(0x27d)](),this[_0x3b275f(0x47c)][_0x3b275f(0x2b7)](_0x341f02=>_0x341f02[_0x3b275f(0x27d)]()),this['_sessions']['clear'](),this[_0x3b275f(0x458)][_0x3b275f(0x250)]();}async[_0x4d300e(0x195)](_0x43ffa5){const _0x4353c6=_0x4d300e;if(this[_0x4353c6(0x47c)]['has'](_0x43ffa5))return this[_0x4353c6(0x47c)][_0x4353c6(0x23f)](_0x43ffa5);this[_0x4353c6(0x392)]();const _0x401d8d=this[_0x4353c6(0x3ef)]['createInstance'](ut,_0x43ffa5,this['_socket$']['asObservable']());return this[_0x4353c6(0x47c)]['set'](_0x43ffa5,_0x401d8d),_0x401d8d;}[_0x4d300e(0x255)](){const _0x3834f8=_0x4d300e;var _0x111466;const _0xc5ee92=(_0x111466=this[_0x3834f8(0x40e)][_0x3834f8(0x377)](zi))!=null?_0x111466:Zi;return this[_0x3834f8(0x1a9)][_0x3834f8(0x32f)](_0xc5ee92);}[_0x4d300e(0x392)](){const _0x216e0d=_0x4d300e;try{const _0x19002a=this[_0x216e0d(0x255)]();if(_0x19002a){const _0x430d3a=_0x19002a['send'];_0x19002a['send']=_0x1e3afe=>(this['_rescheduleHeartbeatEvent'](),_0x430d3a[_0x216e0d(0x398)](_0x19002a,[_0x1e3afe])),_0x19002a[_0x216e0d(0x418)][_0x216e0d(0x253)](_0x10484a=>this[_0x216e0d(0x40a)](_0x19002a,_0x10484a)),_0x19002a[_0x216e0d(0x248)][_0x216e0d(0x21f)](_0x4b46b5(0x1))[_0x216e0d(0x253)](_0x8e17f7=>this[_0x216e0d(0x439)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x8e17f7)),_0x19002a[_0x216e0d(0x22e)]['pipe'](_0x4b46b5(0x1))[_0x216e0d(0x253)](()=>{const _0x13cf98=_0x216e0d;this[_0x13cf98(0x1a2)](_0x19002a);}),_0x19002a[_0x216e0d(0x38c)]['pipe'](_0x4b46b5(0x1))['subscribe'](_0x595e3d=>{const _0x2f3f32=_0x216e0d;this[_0x2f3f32(0x439)][_0x2f3f32(0x238)](_0x2f3f32(0x331),_0x2f3f32(0x436),_0x595e3d),this[_0x2f3f32(0x2d0)]();});}}catch(_0x50ec59){this[_0x216e0d(0x439)][_0x216e0d(0x3d0)](_0x50ec59),this[_0x216e0d(0x2d0)]();}}[_0x4d300e(0x1a2)](_0xfdb9fd){const _0x1ebb6a=_0x4d300e;this[_0x1ebb6a(0x439)][_0x1ebb6a(0x238)](_0x1ebb6a(0x331),'socket\x20open.'),_0xfdb9fd[_0x1ebb6a(0x370)]({'cmd':I['HELLO']}),this[_0x1ebb6a(0x3e1)]();}[_0x4d300e(0x2d0)](){const _0x346ea2=_0x4d300e;var _0x18f745;this[_0x346ea2(0x458)][_0x346ea2(0x3bf)](0x2),this[_0x346ea2(0x30c)]['next'](null),this['_clearTimeoutTimer'](),this[_0x346ea2(0x48d)](),this['_socketReady']=!0x1,this[_0x346ea2(0x442)]<((_0x18f745=this[_0x346ea2(0x40e)]['getConfig'](sn))!=null?_0x18f745:nn)?(this[_0x346ea2(0x210)](this[_0x346ea2(0x442)]),this[_0x346ea2(0x442)]+=0x1):this['_messageService']['show']({'type':_0x1ae78a[_0x346ea2(0x1a5)],'content':this[_0x346ea2(0x1fd)]['t']('session.connection-failed')});}['_scheduleReconnection'](_0xc9f3a8){const _0x45423b=_0x4d300e;var _0x2666c9;const _0x1ed9bb=((_0x2666c9=this[_0x45423b(0x40e)][_0x45423b(0x377)](en))!=null?_0x2666c9:tn)*0x2**_0xc9f3a8;this[_0x45423b(0x22d)]['show']({'type':_0x1ae78a['Warning'],'content':this['_localeService']['t'](_0x45423b(0x1c9))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x4370c1=_0x45423b;this[_0x4370c1(0x392)](),clearTimeout(this['_retryConnectingTimer']),this[_0x4370c1(0x3d9)]=null;},_0x1ed9bb);}[_0x4d300e(0x3e1)](){const _0x13ffdb=_0x4d300e;var _0x3fd21a;this[_0x13ffdb(0x48d)](),this[_0x13ffdb(0x2e0)]=setTimeout(()=>this[_0x13ffdb(0x463)](),(_0x3fd21a=this[_0x13ffdb(0x40e)]['getConfig'](qi))!=null?_0x3fd21a:Qi);}['_sendHeartbeat'](){const _0x756387=_0x4d300e;this[_0x756387(0x2dd)][_0x756387(0x370)]({'cmd':I[_0x756387(0x380)]}),this[_0x756387(0x344)]();}[_0x4d300e(0x344)](){const _0xf2e090=_0x4d300e;var _0x3ee4d1;this['_timeoutTimer']=setTimeout(()=>this[_0xf2e090(0x2d0)](),(_0x3ee4d1=this['_configService'][_0xf2e090(0x377)](Is))!=null?_0x3ee4d1:Es);}[_0x4d300e(0x40a)](_0x4a5854,_0x2a50bd){const _0xb86081=_0x4d300e,{cmd:_0x1e1ee2}=_0x2a50bd;_0x1e1ee2===I[_0xb86081(0x469)]&&!this[_0xb86081(0x350)]&&(_0x4a5854[_0xb86081(0x18b)]=_0x2a50bd[_0xb86081(0x3eb)][_0xb86081(0x18b)],this[_0xb86081(0x30c)][_0xb86081(0x3bf)](_0x4a5854),this[_0xb86081(0x458)][_0xb86081(0x3bf)](0x3),this[_0xb86081(0x350)]=!0x0),_0x1e1ee2===I[_0xb86081(0x380)]&&this[_0xb86081(0x391)](),this[_0xb86081(0x3e1)]();}[_0x4d300e(0x48d)](){const _0x41717a=_0x4d300e;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x41717a(0x2e0)]=null);}[_0x4d300e(0x391)](){const _0x1d6a9f=_0x4d300e;this[_0x1d6a9f(0x3a3)]!=null&&(clearTimeout(this[_0x1d6a9f(0x3a3)]),this[_0x1d6a9f(0x3a3)]=null);}};Re=Ts([M(0x0,_0x5ee80d(_0x1fa2c4)),M(0x1,_0x5ee80d(_0x399826)),M(0x2,_0x2654c7),M(0x3,_0x1546f9),M(0x4,_0xf370fc),M(0x5,bs)],Re);var bn=Object[_0x4d300e(0x26c)],Rn=Object[_0x4d300e(0x368)],Tn=(_0x468bd0,_0x2e260c,_0x2e05f8,_0x25183e)=>{const _0x31e0da=_0x4d300e;for(var _0x4d0f81=_0x25183e>0x1?void 0x0:_0x25183e?Rn(_0x2e260c,_0x2e05f8):_0x2e260c,_0x105eeb=_0x468bd0[_0x31e0da(0x1b8)]-0x1,_0x410259;_0x105eeb>=0x0;_0x105eeb--)(_0x410259=_0x468bd0[_0x105eeb])&&(_0x4d0f81=(_0x25183e?_0x410259(_0x2e260c,_0x2e05f8,_0x4d0f81):_0x410259(_0x4d0f81))||_0x4d0f81);return _0x25183e&&_0x4d0f81&&bn(_0x2e260c,_0x2e05f8,_0x4d0f81),_0x4d0f81;},Se=(_0x36a1a2,_0x180c67)=>(_0x20f322,_0x1dfd48)=>_0x180c67(_0x20f322,_0x1dfd48,_0x36a1a2);let D=class extends _0x277f24{constructor(_0x1b01f7,_0x542d3c,_0x356b40,_0x299c98,_0x1ae722){const _0x1e0d44=_0x4d300e;super(),l(this,_0x1e0d44(0x211),new Map()),l(this,_0x1e0d44(0x46f),new Map()),l(this,'_disabled',!0x1),(this[_0x1e0d44(0x40e)]=_0x1b01f7,this[_0x1e0d44(0x45c)]=_0x542d3c,this[_0x1e0d44(0x3ea)]=_0x356b40,this[_0x1e0d44(0x1fd)]=_0x299c98,this[_0x1e0d44(0x335)]=_0x1ae722,this[_0x1e0d44(0x437)]());}['disableLocalCache'](){const _0x4141c9=_0x4d300e;this[_0x4141c9(0x1e4)]=!0x0;}[_0x4d300e(0x182)](){const _0x49ce60=_0x4d300e;this[_0x49ce60(0x1e4)]=!0x1;}['dispose'](){const _0x492c14=_0x4d300e;this['_exhaustSavingTask']()[_0x492c14(0x415)](()=>super['dispose']());}async['loadOfflineData'](_0x51aabd){const _0x3114b4=_0x4d300e;return this['_disabled']?null:this[_0x3114b4(0x45c)][_0x3114b4(0x3ba)](Gt(_0x51aabd));}async[_0x4d300e(0x2de)](_0xb9c1ed,_0x5253ef){const _0x2d21dd=_0x4d300e;return!!this[_0x2d21dd(0x45c)]['setItem'](_0xb9c1ed,_0x5253ef);}[_0x4d300e(0x173)](_0x1648d7,_0x5872d8,_0x2a103b,_0x5db3aa){const _0x227a7f=_0x4d300e,_0x23375c=this[_0x227a7f(0x335)][_0x227a7f(0x1ee)](_0x1648d7);this[_0x227a7f(0x211)][_0x227a7f(0x1ef)](_0x1648d7,{'unitID':_0x1648d7,'type':_0x5872d8,'awaitingChangeset':_0x2a103b,'mutations':_0x5db3aa,'rev':_0x23375c}),this[_0x227a7f(0x46f)][_0x227a7f(0x181)](_0x1648d7)||this[_0x227a7f(0x3dd)](_0x1648d7);}[_0x4d300e(0x3dd)](_0x50401d){const _0x57cb40=_0x4d300e,_0x15b8f5=this[_0x57cb40(0x292)]();_0x15b8f5===0x0?this[_0x57cb40(0x411)](_0x50401d):this[_0x57cb40(0x46f)][_0x57cb40(0x1ef)](_0x50401d,setTimeout(()=>this[_0x57cb40(0x411)](_0x50401d),_0x15b8f5));}[_0x4d300e(0x292)](){const _0x14e84e=_0x4d300e;var _0x5d9669;return(_0x5d9669=this['_configService'][_0x14e84e(0x377)](rn))!=null?_0x5d9669:on;}[_0x4d300e(0x411)](_0x501854){const _0x5f0b7e=_0x4d300e,_0x38c245=this[_0x5f0b7e(0x46f)]['get'](_0x501854);return _0x38c245!==void 0x0&&window[_0x5f0b7e(0x1ae)](_0x38c245),this[_0x5f0b7e(0x45c)][_0x5f0b7e(0x39d)](Gt(_0x501854),this['_cachedData'][_0x5f0b7e(0x23f)](_0x501854))['then'](()=>this[_0x5f0b7e(0x46f)]['delete'](_0x501854));}async[_0x4d300e(0x396)](){const _0x288c02=_0x4d300e,_0x1fe5c1=[];this['_saveTaskMap'][_0x288c02(0x2b7)]((_0x3c24d1,_0x372e5e)=>{const _0x3093ce=_0x288c02;window[_0x3093ce(0x1ae)](_0x3c24d1),_0x1fe5c1[_0x3093ce(0x445)](this[_0x3093ce(0x411)](_0x372e5e)[_0x3093ce(0x415)](()=>{const _0x41e8b9=_0x3093ce;this[_0x41e8b9(0x46f)][_0x41e8b9(0x284)](_0x372e5e);}));}),await Promise[_0x288c02(0x320)](_0x1fe5c1);}['_setupBeforeClosingHandler'](){const _0x3cb0fb=_0x4d300e;this['disposeWithMe'](this[_0x3cb0fb(0x3ea)][_0x3cb0fb(0x484)](()=>{const _0x4824f=_0x3cb0fb;if(this[_0x4824f(0x46f)][_0x4824f(0x17b)])return this[_0x4824f(0x1fd)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Tn([Se(0x0,_0xf370fc),Se(0x1,_0x3d7655),Se(0x2,_0x396b8f),Se(0x3,_0x5ee80d(_0x399826)),Se(0x4,_0x5ee80d(_0x3ae57a))],D);function Gt(_0x37ae51){const _0x4b4248=_0x4d300e;return _0x4b4248(0x494)+_0x37ae51;}const Xe=_0x5add15(_0x4d300e(0x2ec));var Os=(_0x2d35d9=>(_0x2d35d9[_0x2d35d9[_0x4d300e(0x311)]=0x0]=_0x4d300e(0x311),_0x2d35d9[_0x2d35d9[_0x4d300e(0x2f0)]=0x1]=_0x4d300e(0x2f0),_0x2d35d9))(Os||{});const Yt=0x7530,Kt='ACTIVE_UNIT_EVENT_CHANNEL';class On extends _0x277f24{constructor(){const _0x228976=_0x4d300e;super(),l(this,'_id',_0x2f7711[_0x228976(0x347)]()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,'_heartbeatTimer',null),l(this,'_clearOtherTimers',new Map()),l(this,_0x228976(0x318),new Map()),this['_init']();}[_0x4d300e(0x27d)](){const _0x19d044=_0x4d300e;super[_0x19d044(0x27d)](),this[_0x19d044(0x329)][_0x19d044(0x2b7)]((_0xfd54c1,_0x587648)=>this[_0x19d044(0x1f7)](_0x587648)),this[_0x19d044(0x348)]&&window[_0x19d044(0x330)](this[_0x19d044(0x348)]);}['getUnitStatus$'](_0x56ec73){const _0x1748db=_0x4d300e;return this[_0x1748db(0x386)](_0x56ec73)['pipe'](_0xcaa6e8());}[_0x4d300e(0x42c)](_0x2a8a36){const _0x34d446=_0x4d300e;this[_0x34d446(0x42d)][_0x34d446(0x17b)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x34d446(0x349)](_0x2a8a36),this[_0x34d446(0x499)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2a8a36],'isForwarded':!0x1});}[_0x4d300e(0x228)](_0x218917){const _0x5ebe19=_0x4d300e;this[_0x5ebe19(0x42d)]['delete'](_0x218917),this[_0x5ebe19(0x42d)]['size']===0x0&&this[_0x5ebe19(0x348)]&&window['clearInterval'](this[_0x5ebe19(0x348)]);}[_0x4d300e(0x1e2)](){const _0x56a605=_0x4d300e;this['disposeWithMe'](_0x3505c8(_0x36be47(window,_0x56a605(0x431))[_0x56a605(0x253)](_0x3d536c=>{const _0x544eb5=_0x56a605;if(_0x3d536c[_0x544eb5(0x454)]!==Kt||!_0x3d536c['newValue'])return;const _0x10b70e=JSON['parse'](_0x3d536c[_0x544eb5(0x226)]);this[_0x544eb5(0x297)](_0x10b70e);}))),window[_0x56a605(0x496)](_0x56a605(0x219),()=>this[_0x56a605(0x499)]({'type':0x1,'memberID':this[_0x56a605(0x34a)],'unitIDs':Array['from'](this[_0x56a605(0x42d)])}));}['_handleEvent'](_0x127196){const _0x147c5e=_0x4d300e;switch(_0x127196['type']){case 0x0:this['_handleJoinEvent'](_0x127196);break;case 0x1:this['_handleLeaveEvent'](_0x127196);break;case 0x2:this[_0x147c5e(0x2fc)](_0x127196);break;}}[_0x4d300e(0x338)](_0x2e8a4e){const _0x586696=_0x4d300e,{unitIDs:_0x1506c4,memberID:_0x3a430a,isForwarded:_0x1c7511}=_0x2e8a4e;_0x1506c4[_0x586696(0x2b7)](_0x14ad53=>{const _0x147448=_0x586696;if(!_0x1c7511&&this[_0x147448(0x296)]['has'](_0x14ad53)&&this[_0x147448(0x386)](_0x14ad53)[_0x147448(0x3bf)](0x1),!this[_0x147448(0x296)]['has'](_0x14ad53)||!this[_0x147448(0x296)][_0x147448(0x23f)](_0x14ad53)[_0x147448(0x181)](_0x3a430a)){const _0x49c703=this[_0x147448(0x296)][_0x147448(0x23f)](_0x14ad53)||new Set();_0x49c703[_0x147448(0x349)](_0x3a430a),this['_unitOnClients']['set'](_0x14ad53,_0x49c703),this[_0x147448(0x451)](_0x3a430a);}}),_0x1c7511||this[_0x586696(0x499)]({'type':0x0,'memberID':this[_0x586696(0x34a)],'unitIDs':[...this[_0x586696(0x42d)]],'isForwarded':!0x0});}[_0x4d300e(0x451)](_0x20fc14){const _0xd5ef21=_0x4d300e;this[_0xd5ef21(0x1f7)](_0x20fc14);const _0x2294a9=window[_0xd5ef21(0x2ce)](()=>{const _0x3ef67e=_0xd5ef21;this[_0x3ef67e(0x296)][_0x3ef67e(0x2b7)](_0x4c09c3=>{_0x4c09c3['delete'](_0x20fc14);});},Yt*0x2);this[_0xd5ef21(0x329)][_0xd5ef21(0x1ef)](_0x20fc14,_0x2294a9);}[_0x4d300e(0x1f7)](_0x47cbb9){const _0x1c2caa=_0x4d300e;if(this[_0x1c2caa(0x329)][_0x1c2caa(0x181)](_0x47cbb9)){const _0x26daab=this[_0x1c2caa(0x329)][_0x1c2caa(0x23f)](_0x47cbb9);_0x26daab&&window['clearTimeout'](_0x26daab),this['_clearOtherTimers'][_0x1c2caa(0x1ef)](_0x47cbb9,null);}}[_0x4d300e(0x42f)](_0x335908){const _0x280f37=_0x4d300e,{memberID:_0xd23bc6,unitIDs:_0x2c2091}=_0x335908;_0x2c2091[_0x280f37(0x2b7)](_0x6d7900=>{const _0x27711c=_0x280f37;var _0x59263c;const _0xd44ec8=this[_0x27711c(0x296)]['get'](_0x6d7900);_0xd44ec8&&(_0xd44ec8[_0x27711c(0x284)](_0xd23bc6),(_0x59263c=this[_0x27711c(0x386)](_0x6d7900))==null||_0x59263c[_0x27711c(0x3bf)](_0xd44ec8[_0x27711c(0x17b)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0xd23bc6);}[_0x4d300e(0x2fc)](_0x410a40){const _0x1ba832=_0x4d300e;this[_0x1ba832(0x451)](_0x410a40['memberID']);}['_send'](_0x838491){const _0x1cc9a0=_0x4d300e;localStorage[_0x1cc9a0(0x39d)](Kt,JSON[_0x1cc9a0(0x3ae)](_0x838491));}['_scheduleHeartbeat'](){const _0x4cf45d=_0x4d300e;this['_heartbeatTimer']=window[_0x4cf45d(0x21e)](()=>{const _0x500109=_0x4cf45d;this[_0x500109(0x499)]({'type':0x2,'memberID':this[_0x500109(0x34a)]});},Yt);}['_ensureSubject'](_0x1366a1){const _0x2c096c=_0x4d300e;return this['_unitStatus'][_0x2c096c(0x181)](_0x1366a1)||this[_0x2c096c(0x318)][_0x2c096c(0x1ef)](_0x1366a1,new _0x25861f(0x0)),this['_unitStatus'][_0x2c096c(0x23f)](_0x1366a1);}}var Dn=Object[_0x4d300e(0x26c)],wn=Object[_0x4d300e(0x368)],Pn=(_0x1ae311,_0x2f2d81,_0x49166f,_0x3f0f23)=>{const _0x5e52d4=_0x4d300e;for(var _0x2527b3=_0x3f0f23>0x1?void 0x0:_0x3f0f23?wn(_0x2f2d81,_0x49166f):_0x2f2d81,_0x396087=_0x1ae311[_0x5e52d4(0x1b8)]-0x1,_0x134422;_0x396087>=0x0;_0x396087--)(_0x134422=_0x1ae311[_0x396087])&&(_0x2527b3=(_0x3f0f23?_0x134422(_0x2f2d81,_0x49166f,_0x2527b3):_0x134422(_0x2527b3))||_0x2527b3);return _0x3f0f23&&_0x2527b3&&Dn(_0x2f2d81,_0x49166f,_0x2527b3),_0x2527b3;},Xt=(_0x5b1cdf,_0x197c8c)=>(_0x4dc642,_0x40d31a)=>_0x197c8c(_0x4dc642,_0x40d31a,_0x5b1cdf);let Be=class{constructor(_0xa8beb,_0xbfdb0b){const _0x18e0dc=_0x4d300e;this[_0x18e0dc(0x3ef)]=_0xa8beb,this[_0x18e0dc(0x47f)]=_0xbfdb0b;}[_0x4d300e(0x2cd)](_0xde9718){const _0x35c5d9=_0x4d300e;this['_transformUndoRedoStack'](_0xde9718),this[_0x35c5d9(0x486)](_0xde9718);}['transformRemoteChangeset'](_0x10422f){const _0x348c59=_0x4d300e,_0x5014b1=this[_0x348c59(0x3ef)][_0x348c59(0x23f)](_0x42b0ac),{redoCache:_0x4ea75d}=_0x5014b1['getUndoRedoMutationParamsCache']();if(_0x4ea75d[_0x348c59(0x1b8)]===0x0)return _0x10422f;let _0x2f51eb=_0x2f7711[_0x348c59(0x336)](_0x10422f['mutations'][0x0]);for(let _0x1633c6=0x0;_0x1633c6<_0x4ea75d['length'];_0x1633c6++){const _0x20e721={'id':_0x348c59(0x19a),'params':{..._0x4ea75d[_0x1633c6]}},_0x5cd9e8=this['_transformService'][_0x348c59(0x240)](_0x2f51eb,_0x20e721,!0x1);if(_0x4e913c(_0x5cd9e8))throw _0x5cd9e8[_0x348c59(0x3d0)];_0x2f51eb=_0x5cd9e8['m1Prime'];}return{..._0x2f7711['deepClone'](_0x10422f),'mutations':[_0x2f51eb]};}[_0x4d300e(0x3bc)](_0x1631d0){const _0x6c036c=_0x4d300e,_0x1700a8=this[_0x6c036c(0x3ef)][_0x6c036c(0x23f)](_0x42b0ac),{undoCache:_0x18650a,redoCache:_0x26bbe1}=_0x1700a8[_0x6c036c(0x30b)]();if(_0x18650a[_0x6c036c(0x1b8)]===0x0||_0x26bbe1[_0x6c036c(0x1b8)]===0x0)return;const _0x286f7e=[],_0x204204=[];let _0x22cfe9=_0x2f7711['deepClone'](_0x1631d0[_0x6c036c(0x2ff)][0x0]),_0x69c3c4=_0x2f7711['deepClone'](_0x1631d0[_0x6c036c(0x2ff)][0x0]);for(let _0x25423=_0x18650a['length']-0x1;_0x25423>=0x0;_0x25423--){const _0x5ecc11={'id':_0x6c036c(0x19a),'params':{..._0x18650a[_0x25423]}},_0x115386={'id':_0x6c036c(0x19a),'params':{..._0x26bbe1[_0x25423]}},_0xcfed29=this['_transformService'][_0x6c036c(0x240)](_0x22cfe9,_0x5ecc11,!0x1),_0x3f52d6=this['_transformService'][_0x6c036c(0x240)](_0x69c3c4,_0x115386,!0x1);if(_0x4e913c(_0xcfed29))throw _0xcfed29[_0x6c036c(0x3d0)];if(_0x4e913c(_0x3f52d6))throw _0x3f52d6[_0x6c036c(0x3d0)];_0x286f7e[_0x6c036c(0x16a)](_0xcfed29[_0x6c036c(0x3ec)][_0x6c036c(0x46e)]),_0x204204[_0x6c036c(0x16a)](_0x3f52d6[_0x6c036c(0x3ec)][_0x6c036c(0x46e)]),_0x22cfe9=_0xcfed29[_0x6c036c(0x1bf)],_0x69c3c4=_0x3f52d6['m1Prime'];}_0x1700a8[_0x6c036c(0x221)]({'undoCache':_0x286f7e,'redoCache':_0x204204});}[_0x4d300e(0x486)](_0x34f947){const _0x4ca40c=_0x4d300e,_0x1fa7d4=this['_injector'][_0x4ca40c(0x23f)](_0x42b0ac),_0x42df76=_0x1fa7d4[_0x4ca40c(0x1fa)]();if(_0x42df76==null)return;const _0xc0687c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x34f947[_0x4ca40c(0x1c8)],'actions':null,'textRanges':[_0x42df76]}}],_0xb500ca=this[_0x4ca40c(0x47f)][_0x4ca40c(0x360)](_0x34f947,_0xc0687c);if(!_0x23d1f2(_0xb500ca))throw _0xb500ca[_0x4ca40c(0x3d0)];const _0x565f77=_0xb500ca[_0x4ca40c(0x3ec)][0x0][_0x4ca40c(0x46e)]['textRanges'];Array[_0x4ca40c(0x1ff)](_0x565f77)&&_0x565f77[_0x4ca40c(0x1b8)]&&_0x1fa7d4[_0x4ca40c(0x365)](_0x565f77[0x0]);}};Be=Pn([Xt(0x0,_0x5ee80d(_0x1fa2c4)),Xt(0x1,_0x18339f)],Be);var Nn=Object[_0x4d300e(0x26c)],Mn=Object[_0x4d300e(0x368)],An=(_0x1a3bca,_0x158603,_0x2671ab,_0x5943ce)=>{const _0xe7c75=_0x4d300e;for(var _0x47f12a=_0x5943ce>0x1?void 0x0:_0x5943ce?Mn(_0x158603,_0x2671ab):_0x158603,_0x8952d9=_0x1a3bca[_0xe7c75(0x1b8)]-0x1,_0x312885;_0x8952d9>=0x0;_0x8952d9--)(_0x312885=_0x1a3bca[_0x8952d9])&&(_0x47f12a=(_0x5943ce?_0x312885(_0x158603,_0x2671ab,_0x47f12a):_0x312885(_0x47f12a))||_0x47f12a);return _0x5943ce&&_0x47f12a&&Nn(_0x158603,_0x2671ab,_0x47f12a),_0x47f12a;},Jt=(_0x10dece,_0x4fe194)=>(_0x569488,_0x588766)=>_0x4fe194(_0x569488,_0x588766,_0x10dece);let ke=class{constructor(_0x5ba5e5,_0x11fb28){const _0x444195=_0x4d300e;this[_0x444195(0x3ef)]=_0x5ba5e5,this[_0x444195(0x47f)]=_0x11fb28;}[_0x4d300e(0x340)](_0x395b7b){const _0x1d7703=_0x4d300e;var _0x80d97;const _0x2e8792=this['_injector'][_0x1d7703(0x23f)](_0x1be661),_0x48909b=(_0x80d97=_0x2e8792[_0x1d7703(0x33a)]())!=null?_0x80d97:[],_0x5c3592=_0x48909b==null?void 0x0:_0x48909b[_0x1d7703(0x233)](_0x4e7f89);if(_0x5c3592['length']===0x0)return;const _0x48b00e=[{'id':_0x1d7703(0x19a),'params':{'unitId':_0x395b7b['unitID'],'actions':null,'textRanges':_0x5c3592}}],_0x46c374=this[_0x1d7703(0x47f)][_0x1d7703(0x360)](_0x395b7b,_0x48b00e);if(!_0x23d1f2(_0x46c374))throw _0x46c374['error'];const _0x426beb=_0x46c374['m2Prime'][0x0]['params']['textRanges'];Array[_0x1d7703(0x1ff)](_0x426beb)&&_0x426beb['length']&&_0x2e8792[_0x1d7703(0x327)](_0x426beb,!0x1);}};ke=An([Jt(0x0,_0x5ee80d(_0x1fa2c4)),Jt(0x1,_0x18339f)],ke);function Ds(_0x1faa82){const _0x4a9d46=_0x4d300e;let _0x12da27='';for(const _0x562f10 of _0x1faa82){const {startOffset:_0x210688,endOffset:_0x1fd46f,isActive:_0x565a98}=_0x562f10;_0x12da27[_0x4a9d46(0x1b8)]&&(_0x12da27+=','),_0x12da27+=_0x210688+':'+_0x1fd46f+':'+(_0x565a98?'1':'0');}return _0x12da27;}function yn(_0x17d9e3){const _0xc0f27e=_0x4d300e,_0x3f2b48=_0x17d9e3['split'](','),_0x2e8095=[];for(const _0x235292 of _0x3f2b48){const [_0x18123a,_0x13eef7,_0x1d5acd]=_0x235292[_0xc0f27e(0x2ad)](':');_0x2e8095[_0xc0f27e(0x445)]({'startOffset':Number(_0x18123a),'endOffset':Number(_0x13eef7),'collapsed':_0x18123a===_0x13eef7,'isActive':_0x1d5acd==='1'});}return _0x2e8095[_0xc0f27e(0x26a)](_0x9639ab=>_0x9639ab['isActive'])||(_0x2e8095[0x0][_0xc0f27e(0x443)]=!0x0),_0x2e8095;}class Mt extends _0x523d01{constructor(){const _0x49b336=_0x4d300e;super(...arguments),l(this,'_collabCursorState$',new _0x25861f(null)),l(this,_0x49b336(0x189),this[_0x49b336(0x21d)][_0x49b336(0x1a8)]());}[_0x4d300e(0x341)](_0x5cd000){const _0x3b6329=_0x4d300e,{unitID:_0x2a2d27,memberID:_0x51df1e,textRanges:_0x5d7934}=_0x5cd000,_0x2a6c77=Ds(_0x5d7934),_0x5a9c14={'unitID':_0x2a2d27,'memberID':_0x51df1e,'selection':_0x2a6c77};this[_0x3b6329(0x21d)]['next'](_0x5a9c14);}}var Un=Object[_0x4d300e(0x26c)],Ln=Object[_0x4d300e(0x368)],$n=(_0x3db8d7,_0x56b8d8,_0x285092,_0x4761df)=>{const _0x3ee6cd=_0x4d300e;for(var _0x27467f=_0x4761df>0x1?void 0x0:_0x4761df?Ln(_0x56b8d8,_0x285092):_0x56b8d8,_0x34b5f2=_0x3db8d7[_0x3ee6cd(0x1b8)]-0x1,_0x42ebea;_0x34b5f2>=0x0;_0x34b5f2--)(_0x42ebea=_0x3db8d7[_0x34b5f2])&&(_0x27467f=(_0x4761df?_0x42ebea(_0x56b8d8,_0x285092,_0x27467f):_0x42ebea(_0x27467f))||_0x27467f);return _0x4761df&&_0x27467f&&Un(_0x56b8d8,_0x285092,_0x27467f),_0x27467f;},zt=(_0x11f9ef,_0x5ed2a8)=>(_0x1d3c18,_0x33185b)=>_0x5ed2a8(_0x1d3c18,_0x33185b,_0x11f9ef);let Ve=class{constructor(_0xab5845,_0x40ceb9){const _0x2e9884=_0x4d300e;this[_0x2e9884(0x3ef)]=_0xab5845,this[_0x2e9884(0x47f)]=_0x40ceb9;}[_0x4d300e(0x340)](_0x9cc33c){const _0x4ea50b=_0x4d300e;var _0x52bce0,_0x48013b,_0x204262,_0x1b1bb1;const _0x5ac80f=this[_0x4ea50b(0x3ef)]['get'](_0x3a06f8),{pluginName:_0x5123a,unitId:_0xf9c6d5,sheetId:_0x428e03}=_0x5ac80f[_0x4ea50b(0x267)]()||{},_0xf338a8=(_0x52bce0=_0x5ac80f[_0x4ea50b(0x33a)]())!=null?_0x52bce0:[];if(_0xf338a8[_0x4ea50b(0x1b8)]===0x0||!_0x5123a||!_0xf9c6d5||!_0x428e03)return;const _0x26c9b4=[{'id':_0x3c9caa['id'],'params':{'unitId':_0xf9c6d5,'subUnitId':_0x428e03,'pluginName':_0x5123a,'selections':_0x2f7711[_0x4ea50b(0x336)](_0xf338a8)}}],_0x5894e1=this['_transformService'][_0x4ea50b(0x360)](_0x9cc33c,_0x26c9b4);if(!_0x23d1f2(_0x5894e1))throw _0x5894e1['error'];const _0x75fc0e=(_0x1b1bb1=(_0x204262=(_0x48013b=_0x5894e1[_0x4ea50b(0x3ec)][0x0])==null?void 0x0:_0x48013b['params'])==null?void 0x0:_0x204262[_0x4ea50b(0x170)])!=null?_0x1b1bb1:_0xf338a8;Array[_0x4ea50b(0x1ff)](_0x75fc0e)&&_0x75fc0e[_0x4ea50b(0x1b8)]&&this[_0x4ea50b(0x3ef)][_0x4ea50b(0x23f)](_0x11685c)['executeCommand'](_0x3c9caa['id'],{'unitId':_0xf9c6d5,'subUnitId':_0x428e03,'pluginName':_0x5123a,'selections':_0x75fc0e});}};Ve=$n([zt(0x0,_0x5ee80d(_0x1fa2c4)),zt(0x1,_0x18339f)],Ve);const jn=new Set([_0x52f5cc['id']]);function Hn(_0x3b2628,_0x4ede13,_0xcecef7,_0x53ba39,_0x3913ad){const _0x5f3016=_0x4d300e;var _0x4ad353,_0x30a6d6,_0x5673d2,_0x54c808;const _0xa7b0ea=[];for(const _0x572cf3 of _0x3b2628)if(jn[_0x5f3016(0x181)](_0x572cf3['id'])){if(_0xa7b0ea[_0x5f3016(0x1b8)]>0x0)break;_0xa7b0ea['push'](_0x572cf3);break;}else _0xa7b0ea[_0x5f3016(0x445)](_0x572cf3);const _0x13c245=(_0x30a6d6=(_0x4ad353=_0x3913ad[_0x5f3016(0x290)]())==null?void 0x0:_0x4ad353[_0x5f3016(0x1bc)])!=null?_0x30a6d6:_0x5f3016(0x2e3),_0x19ba52=(_0x54c808=(_0x5673d2=_0x3913ad[_0x5f3016(0x290)]())==null?void 0x0:_0x5673d2['memberID'])!=null?_0x54c808:_0x5f3016(0x2e3);return{'changeset':{'unitID':_0x4ede13,'type':_0xa15fc0(_0xcecef7[_0x5f3016(0x28c)](_0x4ede13)),'baseRev':_0x53ba39['getCurrentRevForDocument'](_0x4ede13),'revision':0x0,'userID':_0x13c245,'memberID':_0x19ba52,'mutations':_0xa7b0ea},'pendingMutations':_0x3b2628[_0x5f3016(0x35d)](_0xa7b0ea[_0x5f3016(0x1b8)])};}function xn(_0xcdce2d,_0x3a3495,_0x16596f,_0x139704,_0x247cac){const _0x9f69f3=_0x4d300e;var _0x4b14f7,_0x2bf79f,_0x403fb6,_0x50b8d3;const _0x4ddd5a=[_0xcdce2d[_0x9f69f3(0x17e)]((_0x5570ac,_0x246252)=>{const _0x3330a8=_0x9f69f3;var _0x2e4107;const {id:_0x1a71ab}=_0x5570ac,{id:_0x4275e9,type:_0x245d68}=_0x246252,_0x2fd7b1=(_0x2e4107=_0x5570ac[_0x3330a8(0x46e)])!=null?_0x2e4107:{'actions':null},_0xb9e366=_0x246252[_0x3330a8(0x46e)];if(_0x1a71ab&&_0x1a71ab!==_0x4275e9)throw new Error(_0x3330a8(0x232)+_0x1a71ab+_0x3330a8(0x300)+_0x4275e9+'.');return{..._0x5570ac,'id':_0x4275e9,'type':_0x245d68,'params':{'unitId':_0xb9e366[_0x3330a8(0x36b)],'textRanges':_0xb9e366[_0x3330a8(0x26e)],'actions':_0x17ac43[_0x3330a8(0x1f2)](_0x2fd7b1['actions'],_0xb9e366[_0x3330a8(0x44e)])}};},{})],_0x55c099=(_0x2bf79f=(_0x4b14f7=_0x247cac[_0x9f69f3(0x290)]())==null?void 0x0:_0x4b14f7['userID'])!=null?_0x2bf79f:_0x9f69f3(0x2e3),_0x25feb3=(_0x50b8d3=(_0x403fb6=_0x247cac[_0x9f69f3(0x290)]())==null?void 0x0:_0x403fb6[_0x9f69f3(0x18b)])!=null?_0x50b8d3:_0x9f69f3(0x2e3);return{'changeset':{'unitID':_0x3a3495,'type':_0xa15fc0(_0x16596f[_0x9f69f3(0x28c)](_0x3a3495)),'baseRev':_0x139704[_0x9f69f3(0x1ee)](_0x3a3495),'revision':0x0,'userID':_0x55c099,'memberID':_0x25feb3,'mutations':_0x4ddd5a},'pendingMutations':[]};}var Fn=Object['defineProperty'],Bn=Object[_0x4d300e(0x368)],ne=(_0xf280fc,_0x536b4a,_0x2e118c,_0x200702)=>{const _0x357bfa=_0x4d300e;for(var _0x18465c=_0x200702>0x1?void 0x0:_0x200702?Bn(_0x536b4a,_0x2e118c):_0x536b4a,_0xf6e185=_0xf280fc[_0x357bfa(0x1b8)]-0x1,_0x390d13;_0xf6e185>=0x0;_0xf6e185--)(_0x390d13=_0xf280fc[_0xf6e185])&&(_0x18465c=(_0x200702?_0x390d13(_0x536b4a,_0x2e118c,_0x18465c):_0x390d13(_0x18465c))||_0x18465c);return _0x200702&&_0x18465c&&Fn(_0x536b4a,_0x2e118c,_0x18465c),_0x18465c;},g=(_0x4671c7,_0x166b43)=>(_0x2bb902,_0x272589)=>_0x166b43(_0x2bb902,_0x272589,_0x4671c7),P=(_0x221c68=>(_0x221c68[_0x4d300e(0x410)]=_0x4d300e(0x3f7),_0x221c68['SYNCED']=_0x4d300e(0x1b0),_0x221c68[_0x4d300e(0x2da)]=_0x4d300e(0x3e8),_0x221c68[_0x4d300e(0x37c)]=_0x4d300e(0x409),_0x221c68['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x221c68[_0x4d300e(0x2b6)]='fetch_missing',_0x221c68[_0x4d300e(0x286)]=_0x4d300e(0x277),_0x221c68['OFFLINE']=_0x4d300e(0x339),_0x221c68))(P||{});class re{constructor(_0x1ffc42,_0x57402e,_0xb8ac23,_0x57fe80,_0xef7aa8,_0x17a898,_0x10a6d8,_0x353e0e,_0x5496ec){const _0x54601a=_0x4d300e;l(this,_0x54601a(0x172),null),l(this,_0x54601a(0x1ad),[]),(this[_0x54601a(0x1c8)]=_0x1ffc42,this['type']=_0x57402e,this[_0x54601a(0x1ca)]=_0xef7aa8,this[_0x54601a(0x39f)]=_0x17a898,this[_0x54601a(0x31b)]=_0x10a6d8,this[_0x54601a(0x335)]=_0x353e0e,this[_0x54601a(0x3d5)]=_0x5496ec,this[_0x54601a(0x172)]=_0xb8ac23,this[_0x54601a(0x1ad)]=_0x57fe80);}[_0x4d300e(0x49b)](_0x4ee820){const _0x19942a=_0x4d300e,_0x7ffa3=this['_revisionService'][_0x19942a(0x1ee)](this[_0x19942a(0x1c8)]);return _0x4ee820['revision']>_0x7ffa3+0x1?(this[_0x19942a(0x1ca)][_0x19942a(0x399)]({'from':_0x7ffa3,'to':_0x4ee820[_0x19942a(0x3f8)]-0x1}),!0x0):!0x1;}[_0x4d300e(0x3be)](_0x1b645e){const _0x9b986a=_0x4d300e;this[_0x9b986a(0x31b)][_0x9b986a(0x42a)](this['unitID'],_0x1b645e);}['_transformSelections'](_0x19bfce){const _0x137102=_0x4d300e;var _0x4e5640,_0x310604;(_0x310604=(_0x4e5640=this[_0x137102(0x1ca)])[_0x137102(0x48c)])==null||_0x310604['call'](_0x4e5640,_0x19bfce);}['_transformIMECache'](_0x599195){const _0x3b449e=_0x4d300e;var _0x9df191,_0x4b5c69;return(_0x4b5c69=(_0x9df191=this[_0x3b449e(0x1ca)])[_0x3b449e(0x412)])==null?void 0x0:_0x4b5c69[_0x3b449e(0x263)](_0x9df191,_0x599195);}[_0x4d300e(0x37a)](_0x11d142){const _0x575b59=_0x4d300e;var _0x440668,_0x45b747,_0x5b94aa;return(_0x5b94aa=(_0x45b747=(_0x440668=this[_0x575b59(0x1ca)])[_0x575b59(0x1de)])==null?void 0x0:_0x45b747[_0x575b59(0x263)](_0x440668,_0x11d142))!=null?_0x5b94aa:_0x11d142;}[_0x4d300e(0x417)](_0x112926){const _0x57731b=_0x4d300e;var _0xb3d9db,_0x28695a;if(this[_0x57731b(0x310)]===H['UNIVER_DOC']){const {unitID:_0x3b2dea,mutations:_0x5d4194,memberID:_0x52d994}=_0x112926,_0x2bdd93=_0x5d4194[0x0][_0x57731b(0x46e)][_0x57731b(0x26e)];Array['isArray'](_0x2bdd93)&&_0x2bdd93[_0x57731b(0x1b8)]>0x0&&((_0x28695a=(_0xb3d9db=this[_0x57731b(0x1ca)])['onSyncEditingCollabCursor'])==null||_0x28695a['call'](_0xb3d9db,{'unitID':_0x3b2dea,'memberID':_0x52d994,'textRanges':_0x2bdd93}));}}[_0x4d300e(0x280)](){const _0x1f02d8=_0x4d300e;this[_0x1f02d8(0x3d5)][_0x1f02d8(0x173)](this[_0x1f02d8(0x1c8)],this[_0x1f02d8(0x310)],this['_awaitingChangeset'],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x173532=_0x4d300e;return this[_0x173532(0x335)][_0x173532(0x1ee)](this[_0x173532(0x1c8)]);}['_incrementRevisionNumber'](){const _0x52fd3e=_0x4d300e;this[_0x52fd3e(0x335)]['incrementRevForDocument'](this[_0x52fd3e(0x1c8)]);}[_0x4d300e(0x3b5)](_0x26296d){const _0x932c5c=_0x4d300e;var _0x5940da;const _0x4d524b=this[_0x932c5c(0x37a)](_0x26296d),_0x2656a6=_0x596504(_0x4d524b[_0x932c5c(0x2ff)],this[_0x932c5c(0x39f)],{'fromCollab':!0x0});if(!_0x2656a6[_0x932c5c(0x216)])throw _0x2656a6[_0x932c5c(0x3d0)]instanceof Error?_0x2656a6[_0x932c5c(0x3d0)]:new Error((_0x5940da=_0x2656a6['error'])!=null?_0x5940da:'[CollaborationState]:\x20apply\x20error!');this[_0x932c5c(0x258)](_0x4d524b),this[_0x932c5c(0x3be)](_0x26296d),this[_0x932c5c(0x1cc)](_0x4d524b),this['_syncEditingCollabCursor'](_0x4d524b),this[_0x932c5c(0x2f4)]();}}let Te=class extends re{constructor(_0x53a288,_0x238ced,_0x325175,_0x23a35c,_0x3355d1,_0x3e7c30,_0x4acd12,_0x40ce9b,_0x3e1c10){const _0x39d93d=_0x4d300e;super(_0x53a288,_0x238ced,null,[],_0x325175,_0x40ce9b,_0x4acd12,_0x23a35c,_0x3355d1),l(this,_0x39d93d(0x3aa),'synced'),(this[_0x39d93d(0x3ef)]=_0x3e7c30,this[_0x39d93d(0x439)]=_0x3e1c10);}[_0x4d300e(0x43c)](_0x2b8182){const _0x3d4f46=_0x4d300e,_0x596a7b=this['_injector'][_0x3d4f46(0x220)](k,this[_0x3d4f46(0x1c8)],this[_0x3d4f46(0x310)],[_0x2b8182],this[_0x3d4f46(0x1ca)]);return _0x596a7b[_0x3d4f46(0x471)](),_0x596a7b[_0x3d4f46(0x280)](),_0x596a7b;}[_0x4d300e(0x497)](_0x662010){const _0x55296f=_0x4d300e;if(this[_0x55296f(0x49b)](_0x662010))return this[_0x55296f(0x3ef)]['createInstance'](W,this[_0x55296f(0x1c8)],this[_0x55296f(0x310)],null,[],null,[_0x662010],this[_0x55296f(0x1ca)]);try{return this['_executeRemoteChangeset'](_0x662010),this;}catch(_0x8f7711){return this[_0x55296f(0x439)][_0x55296f(0x3d0)]('[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.',_0x8f7711),this;}}[_0x4d300e(0x3e4)](){const _0x14ef2d=_0x4d300e;throw new Error(_0x14ef2d(0x23b));}[_0x4d300e(0x183)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x5cee25=_0x4d300e;return this['_injector'][_0x5cee25(0x220)](J,this['unitID'],this[_0x5cee25(0x310)],null,[],this[_0x5cee25(0x1ca)]);}['toggleOnline'](){return this;}[_0x4d300e(0x18e)](){const _0x27b074=_0x4d300e;throw new Error(_0x27b074(0x17c));}};Te=ne([g(0x3,_0x5ee80d(_0x3ae57a)),g(0x4,_0x5ee80d(D)),g(0x5,_0x5ee80d(_0x1fa2c4)),g(0x6,_0x26da0d),g(0x7,_0x11685c),g(0x8,_0x1546f9)],Te);let k=class extends re{constructor(_0x33d40d,_0x1c0b20,_0x459e1c,_0x2ca1a9,_0xdf308,_0x321117,_0x347e1f,_0x3ca338,_0x54dba8,_0x4617b9,_0x4f25c5,_0x51dd36,_0x4b3cae,_0x1204c7){const _0x18f84f=_0x4d300e;super(_0x33d40d,_0x1c0b20,null,_0x459e1c,_0x2ca1a9,_0x4617b9,_0x1204c7,_0x321117,_0x347e1f),l(this,_0x18f84f(0x3aa),_0x18f84f(0x3e8)),l(this,_0x18f84f(0x472),null),l(this,'_sendingTimer',null),(this[_0x18f84f(0x3ef)]=_0xdf308,this[_0x18f84f(0x29b)]=_0x3ca338,this[_0x18f84f(0x439)]=_0x54dba8,this[_0x18f84f(0x40e)]=_0x4f25c5,this['_transformService']=_0x51dd36,this[_0x18f84f(0x229)]=_0x4b3cae);}[_0x4d300e(0x43c)](_0x49d604){const _0x56ecdd=_0x4d300e;return this[_0x56ecdd(0x1ad)][_0x56ecdd(0x445)](_0x49d604),this[_0x56ecdd(0x280)](),this;}[_0x4d300e(0x497)](_0x7ca63b){const _0x8c6401=_0x4d300e;if(this[_0x8c6401(0x49b)](_0x7ca63b))return this[_0x8c6401(0x1ab)](),this['_injector'][_0x8c6401(0x220)](W,this[_0x8c6401(0x1c8)],this[_0x8c6401(0x310)],null,this[_0x8c6401(0x1ad)],null,[_0x7ca63b],this[_0x8c6401(0x1ca)]);try{const _0x2c05a0=this['_transformService'][_0x8c6401(0x360)](_0x7ca63b,this[_0x8c6401(0x1ad)]);if(_0x23d1f2(_0x2c05a0)){const {c1Prime:_0xf5995f,m2Prime:_0x2fb361}=_0x2c05a0;this[_0x8c6401(0x3b5)](_0xf5995f);const _0x364e62=this['_injector'][_0x8c6401(0x220)](k,this['unitID'],this[_0x8c6401(0x310)],_0x2fb361,this[_0x8c6401(0x1ca)]);return this[_0x8c6401(0x1ab)](),_0x364e62[_0x8c6401(0x471)](this[_0x8c6401(0x472)]?Math[_0x8c6401(0x39e)](0x0,new Date()[_0x8c6401(0x2d2)]()-this[_0x8c6401(0x472)]):this[_0x8c6401(0x2e8)]()),_0x364e62;}throw _0x2c05a0['error'];}catch(_0x30b4af){return this[_0x8c6401(0x439)]['error'](_0x30b4af),this[_0x8c6401(0x3c6)](!0x1);}}[_0x4d300e(0x3e4)](){const _0x8ddf4f=_0x4d300e;throw new Error(_0x8ddf4f(0x20f));}[_0x4d300e(0x183)](){const _0x212e7d=_0x4d300e;throw new Error(_0x212e7d(0x1b5));}[_0x4d300e(0x428)](){const _0x596210=_0x4d300e;return this[_0x596210(0x1ab)](),this[_0x596210(0x3ef)]['createInstance'](J,this[_0x596210(0x1c8)],this['type'],null,this[_0x596210(0x1ad)],this['_handler']);}[_0x4d300e(0x40c)](){return this;}['_schedule'](_0x3b0317){const _0x1943e2=_0x4d300e;_0x3b0317=_0x3b0317!=null?_0x3b0317:this[_0x1943e2(0x2e8)](),this['_scheduleTimestamp']=new Date()[_0x1943e2(0x2d2)](),this[_0x1943e2(0x309)]=setTimeout(()=>{const _0x29cdc6=_0x1943e2;this[_0x29cdc6(0x1ab)]();let _0x194411=null;switch(this[_0x29cdc6(0x310)]){case H['UNIVER_SHEET']:{_0x194411=Hn(this[_0x29cdc6(0x1ad)],this[_0x29cdc6(0x1c8)],this[_0x29cdc6(0x229)],this[_0x29cdc6(0x335)],this[_0x29cdc6(0x29b)]);break;}case H[_0x29cdc6(0x2aa)]:{_0x194411=xn(this[_0x29cdc6(0x1ad)],this[_0x29cdc6(0x1c8)],this[_0x29cdc6(0x229)],this[_0x29cdc6(0x335)],this[_0x29cdc6(0x29b)]);break;}default:throw new Error(_0x29cdc6(0x2d5)+this['type']+_0x29cdc6(0x408));}const {changeset:_0x5c1f21,pendingMutations:_0x4d91d9}=_0x194411;this[_0x29cdc6(0x1ca)]['onSendChangeset'](_0x5c1f21);const _0x12ebd9=_0x4d91d9[_0x29cdc6(0x1b8)]?this[_0x29cdc6(0x3ef)][_0x29cdc6(0x220)](V,this['unitID'],this['type'],_0x5c1f21,_0x4d91d9,this[_0x29cdc6(0x1ca)]):this[_0x29cdc6(0x3ef)]['createInstance'](X,this['unitID'],this[_0x29cdc6(0x310)],_0x5c1f21,this[_0x29cdc6(0x1ca)]);_0x12ebd9[_0x29cdc6(0x280)](),this[_0x29cdc6(0x1ca)]['onStateChange'](this,_0x12ebd9);},_0x3b0317);}[_0x4d300e(0x2e8)](){const _0x41e970=_0x4d300e;var _0x2da528;return(_0x2da528=this[_0x41e970(0x40e)][_0x41e970(0x377)](Xi))!=null?_0x2da528:Ji;}[_0x4d300e(0x18e)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4d300e(0x1ab)](){const _0x2a0707=_0x4d300e;this[_0x2a0707(0x309)]!=null&&(clearTimeout(this[_0x2a0707(0x309)]),this[_0x2a0707(0x309)]=null);}[_0x4d300e(0x3c6)](_0x128d66){const _0x59639c=_0x4d300e;return this[_0x59639c(0x1ab)](),this[_0x59639c(0x3ef)][_0x59639c(0x220)](te,this[_0x59639c(0x1c8)],this['type'],null,this[_0x59639c(0x1ad)],this['_handler'],_0x128d66);}};k=ne([g(0x4,_0x5ee80d(_0x1fa2c4)),g(0x5,_0x5ee80d(_0x3ae57a)),g(0x6,_0x5ee80d(D)),g(0x7,_0x5ee80d(ee)),g(0x8,_0x1546f9),g(0x9,_0x11685c),g(0xa,_0xf370fc),g(0xb,_0x18339f),g(0xc,_0x54cb93),g(0xd,_0x26da0d)],k);let X=class extends re{constructor(_0xaa3523,_0x38e1ca,_0x201d18,_0x4170c0,_0x33689f,_0x422818,_0x3a3794,_0x4fa4d2,_0x351034,_0xfba8dd,_0x359205){const _0x238f92=_0x4d300e;super(_0xaa3523,_0x38e1ca,_0x201d18,[],_0x4170c0,_0x4fa4d2,_0x359205,_0x422818,_0x3a3794),l(this,'status',_0x238f92(0x409)),(this[_0x238f92(0x3ef)]=_0x33689f,this[_0x238f92(0x439)]=_0x351034,this[_0x238f92(0x47f)]=_0xfba8dd);}[_0x4d300e(0x43c)](_0x4214e1){const _0x2029a0=_0x4d300e,_0x4be798=this[_0x2029a0(0x3ef)][_0x2029a0(0x220)](V,this['unitID'],this[_0x2029a0(0x310)],this[_0x2029a0(0x172)],[_0x4214e1],this[_0x2029a0(0x1ca)]);return _0x4be798[_0x2029a0(0x280)](),_0x4be798;}[_0x4d300e(0x497)](_0x38f62c){const _0x88b046=_0x4d300e;if(this[_0x88b046(0x49b)](_0x38f62c))return this[_0x88b046(0x3ef)][_0x88b046(0x220)](W,this[_0x88b046(0x1c8)],this[_0x88b046(0x310)],this[_0x88b046(0x172)],[],null,[_0x38f62c],this[_0x88b046(0x1ca)]);try{const _0xb96094=this[_0x88b046(0x47f)]['transformChangesets']([_0x38f62c],[this[_0x88b046(0x172)]],!0x1);if(_0x5c0a92(_0xb96094)){const {c1Prime:_0x49bdc8,c2Prime:_0x14bea2}=_0xb96094;this[_0x88b046(0x3b5)](_0x49bdc8[0x0]),_0x14bea2[0x0]['baseRev']=this[_0x88b046(0x18c)]();const _0x23c2f2=this[_0x88b046(0x3ef)][_0x88b046(0x220)](X,this['unitID'],this[_0x88b046(0x310)],_0x14bea2[0x0],this[_0x88b046(0x1ca)]);return _0x23c2f2[_0x88b046(0x280)](),_0x23c2f2;}return this[_0x88b046(0x3c6)](!0x1);}catch(_0x32f50d){return this[_0x88b046(0x439)]['error'](_0x32f50d),this[_0x88b046(0x3c6)](!0x1);}}[_0x4d300e(0x3e4)](_0x14c453){const _0x30538b=_0x4d300e,_0x49b0a4=this[_0x30538b(0x335)][_0x30538b(0x1ee)](this[_0x30538b(0x1c8)]);if(_0x14c453['revision']<_0x49b0a4-0x1)return this;if(this[_0x30538b(0x49b)](_0x14c453))return this[_0x30538b(0x3ef)][_0x30538b(0x220)](W,this['unitID'],this[_0x30538b(0x310)],null,[],this[_0x30538b(0x172)],[],this[_0x30538b(0x1ca)]);this['_incrementRevisionNumber']();const _0x36a8d4=this['_injector'][_0x30538b(0x220)](Te,this[_0x30538b(0x1c8)],this[_0x30538b(0x310)],this[_0x30538b(0x1ca)]);return _0x36a8d4['_updateLocalCache'](),_0x36a8d4;}[_0x4d300e(0x183)](_0xe94907){const _0x102993=_0x4d300e;return this[_0x102993(0x3c6)](!!(_0xe94907!=null&&_0xe94907[_0x102993(0x1b2)]));}['toggleOffline'](){const _0x18740b=_0x4d300e;return this[_0x18740b(0x3ef)][_0x18740b(0x220)](J,this[_0x18740b(0x1c8)],this[_0x18740b(0x310)],this[_0x18740b(0x172)],[],this['_handler']);}[_0x4d300e(0x40c)](){return this;}[_0x4d300e(0x18e)](){const _0x39d4e9=_0x4d300e;this[_0x39d4e9(0x1ca)][_0x39d4e9(0x424)](this[_0x39d4e9(0x172)]);}[_0x4d300e(0x3c6)](_0x1406b6){const _0x1e3c7c=_0x4d300e;return this['_injector'][_0x1e3c7c(0x220)](te,this[_0x1e3c7c(0x1c8)],this[_0x1e3c7c(0x310)],this[_0x1e3c7c(0x172)],[],this['_handler'],_0x1406b6);}};X=ne([g(0x4,_0x5ee80d(_0x1fa2c4)),g(0x5,_0x5ee80d(_0x3ae57a)),g(0x6,_0x5ee80d(D)),g(0x7,_0x11685c),g(0x8,_0x1546f9),g(0x9,_0x18339f),g(0xa,_0x26da0d)],X);let V=class extends re{constructor(_0x563c2b,_0x37ce36,_0x119729,_0x435256,_0x20d7b9,_0x5579e2,_0x1bbbc4,_0x168544,_0x2e4302,_0x41cca0,_0x5ec8d8,_0x1ce2c1){const _0x1f5ab9=_0x4d300e;super(_0x563c2b,_0x37ce36,_0x119729,_0x435256,_0x20d7b9,_0x2e4302,_0x1ce2c1,_0x1bbbc4,_0x168544),l(this,_0x1f5ab9(0x3aa),_0x1f5ab9(0x3b4)),(this[_0x1f5ab9(0x3ef)]=_0x5579e2,this['_logService']=_0x41cca0,this['_transformService']=_0x5ec8d8);}[_0x4d300e(0x43c)](_0x30eb17){const _0x285691=_0x4d300e;return this['_pendingMutations'][_0x285691(0x445)](_0x30eb17),this;}[_0x4d300e(0x497)](_0xf54f63){const _0x34f681=_0x4d300e;if(this[_0x34f681(0x49b)](_0xf54f63))return this['_injector'][_0x34f681(0x220)](W,this['unitID'],this['type'],this[_0x34f681(0x172)],this[_0x34f681(0x1ad)],null,[_0xf54f63],this[_0x34f681(0x1ca)]);try{const _0x383323=this[_0x34f681(0x47f)][_0x34f681(0x33b)]([_0xf54f63],[this[_0x34f681(0x172)]],!0x1);if(_0x5c0a92(_0x383323)){const {c1Prime:_0x462cb8,c2Prime:_0x249e51}=_0x383323,_0x4c122a=this[_0x34f681(0x47f)][_0x34f681(0x360)](_0x462cb8[0x0],this[_0x34f681(0x1ad)]);if(_0x23d1f2(_0x4c122a)){const {c1Prime:_0x56a57e,m2Prime:_0x53badf}=_0x4c122a;return this['_executeRemoteChangeset'](_0x56a57e),_0x249e51[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x34f681(0x3ef)][_0x34f681(0x220)](V,this['unitID'],this['type'],_0x249e51[0x0],_0x53badf,this[_0x34f681(0x1ca)]);}throw _0x4c122a[_0x34f681(0x3d0)];}throw _0x383323['error'];}catch(_0x3b559d){return this[_0x34f681(0x439)][_0x34f681(0x3d0)](_0x3b559d),this['_onConflict'](!0x1);}}[_0x4d300e(0x3e4)](_0x101dd4){const _0x182d3b=_0x4d300e;if(this[_0x182d3b(0x49b)](_0x101dd4))return this[_0x182d3b(0x3ef)][_0x182d3b(0x220)](W,this['unitID'],this['type'],null,this[_0x182d3b(0x1ad)],this[_0x182d3b(0x172)],[],this['_handler']);this[_0x182d3b(0x2f4)]();const _0x5e8578=this['_injector'][_0x182d3b(0x220)](k,this[_0x182d3b(0x1c8)],this['type'],this[_0x182d3b(0x1ad)],this[_0x182d3b(0x1ca)]);return _0x5e8578[_0x182d3b(0x471)](),_0x5e8578[_0x182d3b(0x280)](),_0x5e8578;}['onRemoteRej'](_0x279c45){const _0x6ff74a=_0x4d300e;return this[_0x6ff74a(0x3c6)](!!(_0x279c45!=null&&_0x279c45[_0x6ff74a(0x1b2)]));}[_0x4d300e(0x428)](){const _0x2ba01e=_0x4d300e;return this[_0x2ba01e(0x3ef)]['createInstance'](J,this[_0x2ba01e(0x1c8)],this[_0x2ba01e(0x310)],this['_awaitingChangeset'],this[_0x2ba01e(0x1ad)],this[_0x2ba01e(0x1ca)]);}['toggleOnline'](){return this;}[_0x4d300e(0x18e)](){const _0x20108a=_0x4d300e;this[_0x20108a(0x1ca)]['onSendChangeset'](this[_0x20108a(0x172)]);}[_0x4d300e(0x3c6)](_0x46ae5a){const _0x2670d4=_0x4d300e;return this[_0x2670d4(0x3ef)][_0x2670d4(0x220)](te,this[_0x2670d4(0x1c8)],this[_0x2670d4(0x310)],null,this[_0x2670d4(0x1ad)],this[_0x2670d4(0x1ca)],_0x46ae5a);}};V=ne([g(0x5,_0x5ee80d(_0x1fa2c4)),g(0x6,_0x5ee80d(_0x3ae57a)),g(0x7,_0x5ee80d(D)),g(0x8,_0x11685c),g(0x9,_0x1546f9),g(0xa,_0x18339f),g(0xb,_0x26da0d)],V);let te=class extends re{constructor(_0x558cdf,_0x1a46ba,_0x455383,_0x108245,_0x36c858,_0x89776e=!0x1,_0x2b158f,_0x1c51dc,_0x16963a,_0x5b4628,_0x1cb6a5,_0x32a1d4,_0x176e73){const _0x5a22c6=_0x4d300e;super(_0x558cdf,_0x1a46ba,_0x455383,_0x108245,_0x36c858,_0x1c51dc,_0x16963a,_0x1cb6a5,_0x5b4628),l(this,_0x5a22c6(0x3aa),_0x5a22c6(0x277)),(this[_0x5a22c6(0x44d)]=_0x89776e,this[_0x5a22c6(0x319)]=_0x2b158f,this[_0x5a22c6(0x1fd)]=_0x32a1d4,this[_0x5a22c6(0x208)]=_0x176e73,this[_0x5a22c6(0x38e)](),this[_0x5a22c6(0x1a1)](),this[_0x5a22c6(0x369)]());}[_0x4d300e(0x43c)](){return this;}['onRemoteChangeset'](){return this;}[_0x4d300e(0x3e4)](){return this;}['onRemoteRej'](){return this;}[_0x4d300e(0x428)](){return this;}[_0x4d300e(0x40c)](){return this;}[_0x4d300e(0x18e)](){const _0x373c82=_0x4d300e;throw new Error(_0x373c82(0x194));}[_0x4d300e(0x1a1)](){const _0x4ab884=_0x4d300e;this['_localCacheService'][_0x4ab884(0x173)](this['unitID'],this[_0x4ab884(0x310)],null,[]);}['_showConflictNotification'](){const _0x3fd18f=_0x4d300e;this[_0x3fd18f(0x44d)]?this['_notificationService']['show']({'title':this['_localeService']['t'](_0x3fd18f(0x1d1)),'content':this['_localeService']['t']('permission.content'),'type':_0x3fd18f(0x3d0),'duration':0x0}):this[_0x3fd18f(0x208)]['show']({'title':this[_0x3fd18f(0x1fd)]['t']('conflict.title'),'content':this[_0x3fd18f(0x1fd)]['t']('conflict.content'),'type':_0x3fd18f(0x3d0),'duration':0x0});}['_disableEditing'](){const _0xf96491=_0x4d300e;this['_permissionService'][_0xf96491(0x438)](new _0x4e8e4c(this[_0xf96491(0x1c8)])['id'],!0x1);}};te=ne([g(0x6,_0x5ee80d(_0x23c04e)),g(0x7,_0x11685c),g(0x8,_0x26da0d),g(0x9,_0x5ee80d(D)),g(0xa,_0x5ee80d(_0x3ae57a)),g(0xb,_0x5ee80d(_0x399826)),g(0xc,_0x41d64a)],te);function _0x2cce(){const _0x3d77ce=['replaceState','send','_compressMutationService','readAsDataURL','_loadDoc','collabStatus.notCollab','fetchMissingChangesets','getTypeOfUnitDisposed$','getConfig','code','9079155zVNIMB','_transformRemoteChangesetByIMECache','localeService','AWAITING','YUUMI_UNABLE_LOAD_URL','updateMember','COMPLETION_FINISHED','HEARTBEAT','sessionStatus$','xlink:href','_substituteUndoStack','_HTTPService','roles','_ensureSubject','HEARTBEAT_TIMEOUT','awaitingChangeset','LEAVE','_sessionStatus$','onlineStatusTitle','close$','COMMENT_UPDATE','_showConflictNotification','makeDirty','reject','_clearTimeoutTimer','_tryEnsureSocket','_updateSubUnitFromURLParams','verdancy600','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_exhaustSavingTask','list','apply','onMissingChangesets','_exhaustRemoteChangesetQueue','_onCursorDelete','_onCombEvent','setItem','max','_commandService','0\x200\x2016\x2016','_drawRange','getMember','_timeoutTimer','APPLY_REVISION_CONFILICT','setParam','UNKNOWN_CMD','sheets','AWAITING_WITH_PENDING','_updateCollabCursors','status','_snapshotService','off-line-single_clip0_910_343','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','stringify','AUTHZ_URL_KEY','arc','_docTransformSelectionsService','dispose$','objectType','awaiting_with_pending','_executeRemoteChangeset','getDataModel','_socketMessageSubscription','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_online','getItem','_substituteRedoStack','_transformUndoRedoStack','_userManagerService','_transformUndoredo','next','_clearUndo','/-/object/list','jiqing500','_onUserJoin','getActiveSheet','_queuedRemoteChangesets','_onConflict','_startCollaboration','_unitID','SNAPSHOT_URL_KEY','_anchor','M0\x200H16V16H0z','_cursors','setShapeProps','url(#$1','uni.network.url-service','error','font','fillStyle','range','updateCollaborator','_localCacheService','ALREADY_EXISTS','BASE64','LIVESHARE_NEW_HOST','_retryConnectingTimer','_acknowledgedAwaitingChangeset','{fileID}','getInterceptPoints','_scheduleSaving','collaboratorID','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','saveImage','_rescheduleHeartbeatEvent','black','snapshot','onRemoteAck','COLLAB_SUBMIT_CHANGESET_URL','enableSingleActiveInstanceLock','_getMergeRange','pending','string','_beforeCloseService','data','m2Prime','_shapes','/rev/','_injector','find','_entities','bottom','createCollaborator','isEditing','setWaitCount','SNAPSHOT_INVALID_SNAPSHOT','not_collab','revision','session.collaboration-timeout','_sheetTransformSelectionsService','_handleHover','use','removeParam','_collaborationController','_roomMembers$','_removeCollabCursors','SEND_CHANGESET_TIMEOUT','PERMISSION_REJ','getUnhiddenWorksheets','registerOnClose','UNRECOGNIZED','_eventUnsubscribe','_snapshotServerService','\x20in\x20_schedule.','awaiting','_onMessage','getSheetBySheetId','toggleOnline','propertyIsEnumerable','_configService','_httpService','NOT_COLLAB','_saveCache','onTransformIME','onload','subscribeEvent','then','1464702mSLJEf','_syncEditingCollabCursor','message$','getUnitId','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','DeleteRangeMoveLeftCommandId','override','UNIVER_UNKNOWN','joinRsp','PSEUDO_FETCH_MISSING_RESULT','OffLineSingle','_unlockTransition','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','indexOf','onSendChangeset','[DataLoaderController]','_roomMembers','/universer-api/snapshot','toggleOffline','...','transformUndoRedo','/object','editingUnit','_selfUnitIDs','flatMap','_handleLeaveEvent','onPointerLeave$','storage','body','getCollabEntity','defIds','_toggleOffline','socket\x20close','_setupBeforeClosingHandler','updatePermissionPoint','_logService','APPLY_PERMISSION_DENIED','_startDocCollabCursor','appendMutation','/universer-api/stream/file/upload','entries','getMemberID','_session','put','_retryCount','isActive','icon','push','_docTransformIMECacheService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','cursorInfo','/universer-api/comb','_scene','c1Prime','univer-online','_isPermissionRej','actions','color','[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.','_scheduleClearOtherTimer','SNAPSHOT_HAS_BEEN_REMOVED','TOO_MANY_REQUESTS','key','image/jpeg','substring','Steady','_status$','path','?url=','_textBubble','_localStorageService','CHANGESET_REJ','change$','getScrollXYByRelativeCoords','_onFetchMissResult','getOffsetConfig','_document','_sendHeartbeat','filter','/unit/','pushState','listRoles','FAIL','HELLO','_joinRoom','saveSheetBlock','hasOwnProperty','registerComponent','params','_saveTaskMap','collaborationUniverTypes','_schedule','_scheduleTimestamp','fetching\x20missing\x20changesets\x20from\x20','endColumn','saveChangeset','collaboration.single-unit.warning','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_renderManagerService','_updateLocalCursor','loadDoc','collab-text-anchor-','_sessions','startsWith','_getSignURL','_transformService','_drawAnchor','none','_cursorInfo$','_submitChangeset','registerBeforeClose','startRow','_transformPreviousActiveRange','_waitCount','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','leaveEvent','getRangePointData','event$','onTransformSelections','_clearHeartbeatTimer','interceptor','getImageSourceCache','commentUpdateEvent','_onRefRangeChange','\x20to\x20','listCollaborators','unit-cache-','SYNCED','addEventListener','onRemoteChangeset','location','_send','_redoStacks','_checkMissing','getCurrentUnitForType','unshift','session','unit','_change$','_clearCollaborationTimeoutTimer','idSuffix','selections','with','_awaitingChangeset','updateOfflineData','commentUpdate$','_remoteChangesetQueue','image/gif','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Unknown\x20user','createElement','getFocusedUnit','size','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/role','reduce','selection','parse','has','enableLocalCache','onRemoteRej','_initStatusComponent','_createHandler','LIVESHARE_FETCH_OPERATIONS','confirm','_unitId','collabCursorState$','getMergeData','memberID','_getCurrentRevision','_onJoinRoomEvent','resend','collabStatus.conflict','toRgbString','roomMembers','random','univer-online-status-title','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','requireSession','ranges','_createInitialStateImpl','gold400','_ws','doc.mutation.rich-text-editing','row','_state','_event$','colorChannel1','_collaborationTimeoutTimer','saveSnapshot','_clearLocalCache','_onConnectionOpen','/new_changes','disposeWithMe','Error','csRejEvent','toString','asObservable','_socketService','objects','_clearScheduledTask','values','_pendingMutations','clearTimeout','getCollabEntity$','synced','\x0aAfter:\x20','isPermissionRej','_onRemoteACK','_setupSubUnitSync','[PendingState]:\x20received\x20rejection.','closePath','_updateURLWithCurrentState','length','liveShareNewHost','_startSheetCollabCursor','labelPosition','userID','_sheetSkeletonManagerService','pluginName','m1Prime','IDLE','clear','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','clipPath','_render','newCsEvent','show','_name','unitID','session.will-retry','_handler','close','_transformSelections','members','className','drawWith','NOT_FOUND','permission.title','_type','_hover','assignAColorForMemberID','_draw','endRow','INGEST','COMPRESS_MUTATION_SEND','target','_refRangeService','_config','VIEW_MAIN','editing\x20status\x20changed\x20to','onTransformRemoteChangesetByIMECache','getUnitStatus$','searchParams','33274zMnPfQ','_init','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_disabled','onStarting','url(#on-line-single_clip0_910_349)','getResourcesRequest','univer-pro.collaboration-client-socket-service','_updateState','enableAuthServer','encode','_colorIndex','21wGZjMw','getCurrentRevForDocument','set','fillRule','1em','compose','connection\x20error','url','rev','MoveRangeCommandId','_removeClearOtherTimer','_onCursorUpdate','_members','getActiveRange','executeCommand','originalMeta','_localeService','purple300','isArray','includes','activeSheet$','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','onPointerMove$','_clearRedo','[OfflineState]:\x20received\x20changeset.','onSyncEditingCollabCursor','/block/','_notificationService','collab-text-range-','_initModules','_docSyncEditingCollabCursorService','docStateChange$','onMissedChangesetFetched','UPDATE_CURSOR','[PendingState]:\x20received\x20acknowledgement.','_scheduleReconnection','_cachedData','currentTheme$','hide','_collabCursorController','_docSkeletonManagerService','result','OnLineSingle','UNKNOWN_CODE','unload','src','_removeRoom','getViewModel','_collabCursorState$','setInterval','pipe','createInstance','setUndoRedoMutationParamsCache','_getSnapshotAPIPrefix','_onUserLeave','_transitionLocked','_anchorDot','newValue','_applyRemoteChangeset','disposeUnit','_univerInstanceService','_http','_getScale','CHANGESET_REVISION_CONFILICT','_messageService','open$','LICENSE_MAX_UNITS_EXCEEDED','_onRecvEvent','/object/','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','map','loadOfflineData','_collabSessionService','NEW_CHANGESETS','_labelPosition','debug','baseRev','fill','[SyncedState]:\x20received\x20acknowledgement.','OFFLINE','_lockTransition','_entityInit$','get','transformMutation','url(#off-line-single_clip0_910_343)','pauseCollaboration','SUCCUSS','width','transform','allowed','getSheetBlock','error$','_replaceFileID','translate(.97)','_syncEditingCollabCursorService','USERS_LEAVE','enableOfflineEditing','onlineStatusIcon','_getRedoStack','complete','MSG_FOR_ERROR','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','subscribe','FileId','_createSocket','Error\x20on\x20receiving\x20event','attrs','_transformIMECache','JOINING','_initStatusListener','?size=','subUnitId','resourceIDs','_commentUpdate$','InsertRangeMoveRightCommandId','JOIN','_uiPartsService','_getUndoStack','call','_themeService','univerjs-icon\x20univerjs-icon-','onlyLocal','getCurrent','[OfflineState]:\x20received\x20rejection.','/fetchmissing?from=','some','_cursor','defineProperty','tag','textRanges','fetch_missing','_getAPIPrefix','FETCH_MISSING','onMouseMove','sheetID','status$','subunit','div','conflict','univer-online-status','concat','LIVESHARE_OPERATION','restore','[FetchMissState]','dispose','history','currentSkeleton$','_updateLocalCache','displayName','UNIVER_SHEET','SUBMIT_CHANGESET','delete','APPLY_REJECT','CONFLICT','transformByState','children','2635434oiyNpn','fetchThroughInterceptors','ONLINE','getUnitType','round','urlChange$','ERROR_IMAGE','getCurrentUser','getValue','_getSaveTimeout','_getAPIPrefixPath','encodeURIComponent','UNIVER_SLIDE','_unitOnClients','_handleEvent','Warning','getRenderById','InsertRowCommandId','_memberService','update','current','YUUMI_URL_COL_OUT_OF_RANGE','append','/collaborator','getOwnPropertySymbols','[CollaborationEntity]','InsertRangeMoveDownCommandId','svg','getCollabCursors$','text','univer-offline','cmd','_imageSourceCache','UNIVER_DOC','UNAUTHENTICATED','_collaborationPaused','split','csAckEvent','assign','sessionStatus','measureText','getParam','_lastPointer','resolve','collabStatus.fetchMiss','FETCH_MISS','forEach','_fetchMissChangesets','getUniverSheetInstance','5193790IAuExD','PERMISSION_DENIED','collabStatus.offline','0\x200\x2017\x2016','/universer-api/snapshot/','getRoom','catch','LIVESHARE_REQUEST_HOST','findNodePositionByCharIndex','_replayCachedMutations','INVALID_ARGUMENT','href','currentColor','_color','USERS_ENTER','create','_docStateChangeManagerService','auth.needGotoLoginAlert','unsubscribe','transformIMECache','setTimeout','loadSheet','_onConnectionFailed','file','getTime','focused$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[PendingState]:\x20unhandled\x20univer\x20type:\x20','removeMember','_decreaseWaiting','RECV','_onLocalMutation','PENDING','COMPRESS_MUTATION_APPLY','getTypeOfUnitAdded$','_socket','saveOfflineData','registerHTTPInterceptor','_sendHeartbeatTimer','_getDocObject','_state$','unknown','moveTo','RETRY_CONNECTING_INTERVAL','[UniverCollaborationClientPlugin]','blue400','_getSendChangesetTimeout','collaborators','off-line-single','save','univer-pro.collaboration-client.single-active-unit-service','_getLoginPath','getAncestorScale','_onRemoteChangeset','OTHER_CLIENTS_EDITING','DeleteRangeMoveUpCommandId','ws://127.0.0.1:8000/universer-api/comb/connect','permissionRejEvent','_incrementRevisionNumber','online','[CollaborationSession]','LOCAL_CACHE_INTERVAL','setAlpha','MUTATION','infoRsp','Univer','_handleHeartbeatEvent','4317740qXUNAg','roomInfos','mutations','\x20-\x20','APPLY_NON_SEQUENTIAL_REVISION','routeKey','from','batchAllowed','INTERNAL_ERROR','FromArray','/universer-api/file/{fileID}/sign-url','_loadSheet','_sendingTimer','/universer-api/oidc/authpage','getUndoRedoMutationParamsCache','_socket$','_hovered','Starting','CONNECTOR_DATA_TOO_LARGE','type','NO_OTHER_CLIENTS_EDITING','_singleActiveUnitService','POST','_getAnchorBounding','getSheetId','state','onPointerEnter$','_unitStatus','_permissionService','_range','_undoRedoService','_urlService','_hideTimer','onCommandExecuted','workbook','all','CHANGESET_ACK','52UzSvDS','getRelativeCoord','init','_toggleOnline','name','replaceTextRanges','_transformStack','_clearOtherTimers','image/bmp','collabStatus.synced','height','_createInitialState','defs','createSocket','clearInterval','[CollaborationSessionService]','_getCtorByUniverType','/-/object/-/batch_allowed','_assignedColors','_revisionService','deepClone','fillText','_handleJoinEvent','offline','getSelections','transformChangesets','registerRefRange','InsertColCommandId','transformRemoteChangeset','replace','transformSelections','syncEditingCollabCursor','objectID','hovered','_waitForHeartbeatResponse','getUnitOnRev','\x0aCurrent:\x20','generateRandomId','_heartbeatTimer','add','_id','addObject','&to=','8958672STjuUO','onCommentUpdate','_colorAssignService','_socketReady','UUID','startColumn','EXCHANGE_SIGN_URL_SERVER_URL_KEY','LIVESHARE_TERMINATE','LICENSE_EXPORT_SIZE_EXCEEDED','UNDEFINED','[CollaborationUndoRedoService]','state$','_getUploadFileURL','_docSkeleton','_updateStatus','DEFAULT_FILE_NAME','slice','_onRemoteRejected','liveShareOperation','transformMutationsWithChangeset','lineTo','post','disableLocalCache','cursorInfo$','setActiveRange','column','extend','getOwnPropertyDescriptor','_disableEditing','prototype','unitId','HEADER_MENU','eventID','save\x20fail\x20reason\x20is\x20'];_0x2cce=function(){return _0x3d77ce;};return _0x2cce();}let J=class extends re{constructor(_0x1f2b42,_0x29582f,_0x4d6248,_0x42a735,_0x33bb63,_0x59e407,_0x12d6a8,_0x5b041b,_0x5affd1,_0x3ccc2a){const _0xb4d90b=_0x4d300e;super(_0x1f2b42,_0x29582f,_0x4d6248,_0x42a735,_0x33bb63,_0x5affd1,_0x3ccc2a,_0x12d6a8,_0x5b041b),l(this,'status',_0xb4d90b(0x339)),this['_injector']=_0x59e407;}[_0x4d300e(0x43c)](_0x31a950){const _0x4a9de7=_0x4d300e;return this[_0x4a9de7(0x1ad)][_0x4a9de7(0x445)](_0x31a950),this[_0x4a9de7(0x280)](),this;}['onRemoteChangeset'](_0x2fed82){const _0x4aad37=_0x4d300e;throw new Error(_0x4aad37(0x205));}[_0x4d300e(0x3e4)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x4d300e(0x183)](){const _0x10454c=_0x4d300e;throw new Error(_0x10454c(0x268));}[_0x4d300e(0x428)](){return this;}['toggleOnline'](){const _0x38c229=_0x4d300e,{_injector:_0xbf036c,_pendingMutations:_0x120bfb,_awaitingChangeset:_0x3f6a10,unitID:_0x2afc48,_handler:_0x2bbdc1,type:_0x496536}=this,_0x124f19=ws(_0xbf036c,_0x2afc48,_0x496536,_0x3f6a10,_0x120bfb,_0x2bbdc1);return _0x124f19 instanceof k?_0x124f19[_0x38c229(0x471)]():(_0x124f19 instanceof V||_0x124f19 instanceof X)&&_0x124f19[_0x38c229(0x18e)](),_0x124f19;}[_0x4d300e(0x18e)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};J=ne([g(0x5,_0x5ee80d(_0x1fa2c4)),g(0x6,_0x5ee80d(_0x3ae57a)),g(0x7,_0x5ee80d(D)),g(0x8,_0x11685c),g(0x9,_0x26da0d)],J);let W=class extends re{constructor(_0x131ed8,_0x10a775,_0x5b69a7,_0x10a9ef,_0x3395e8,_0x24abce,_0x3b044b,_0x185acb,_0x5e8885,_0x4c9400,_0x29b7bc,_0x3dd803,_0x5c5f44,_0x2442f8){const _0x208991=_0x4d300e;super(_0x131ed8,_0x10a775,_0x5b69a7,_0x10a9ef,_0x3b044b,_0x3dd803,_0x5c5f44,_0x5e8885,_0x4c9400),l(this,'status',_0x208991(0x26f)),(this[_0x208991(0x3da)]=_0x3395e8,this[_0x208991(0x3c5)]=_0x24abce,this[_0x208991(0x3ef)]=_0x185acb,this['_logService']=_0x29b7bc,this[_0x208991(0x47f)]=_0x2442f8);}['onMissedChangesetFetched'](_0x4da910){const _0x5adf56=_0x4d300e;try{const _0x31674b=[..._0x4da910,...this[_0x5adf56(0x3c5)]],_0x1d03fe=[this[_0x5adf56(0x172)]||this[_0x5adf56(0x3da)]][_0x5adf56(0x464)](_0xc7436a=>!!_0xc7436a);let _0xa43574,_0x863d06;if(_0x1d03fe['length']){const _0x532b16=this['_transformService'][_0x5adf56(0x33b)](_0x31674b,_0x1d03fe,!0x1);if(!_0x5c0a92(_0x532b16))throw _0x532b16[_0x5adf56(0x3d0)];_0xa43574=_0x532b16[_0x5adf56(0x44b)],_0x863d06=_0x532b16['c2Prime'];}else _0xa43574=_0x31674b,_0x863d06=[];let _0x466660=this[_0x5adf56(0x1ad)];_0xa43574[_0x5adf56(0x2b7)](_0x4e6c4a=>{const _0x4fb4bd=_0x5adf56;let _0x275971;if(_0x466660[_0x4fb4bd(0x1b8)]){const _0x17c341=this[_0x4fb4bd(0x47f)]['transformMutationsWithChangeset'](_0x4e6c4a,_0x466660);if(!_0x23d1f2(_0x17c341))throw _0x17c341[_0x4fb4bd(0x3d0)];_0x275971=_0x17c341[_0x4fb4bd(0x44b)],_0x466660=_0x17c341[_0x4fb4bd(0x3ec)];}else _0x275971=_0x4e6c4a;this[_0x4fb4bd(0x3b5)](_0x275971);}),this[_0x5adf56(0x3da)]&&this[_0x5adf56(0x2f4)](),this[_0x5adf56(0x172)]&&_0x863d06[_0x5adf56(0x1b8)]&&(_0x863d06[0x0][_0x5adf56(0x239)]=this[_0x5adf56(0x18c)]());let _0xc45cdb;if(this[_0x5adf56(0x172)]&&_0x466660[_0x5adf56(0x1b8)]!==0x0)_0xc45cdb=this[_0x5adf56(0x3ef)][_0x5adf56(0x220)](V,this[_0x5adf56(0x1c8)],this[_0x5adf56(0x310)],_0x863d06[0x0],_0x466660,this[_0x5adf56(0x1ca)]);else{if(this[_0x5adf56(0x172)]&&_0x466660['length']===0x0)_0x863d06[0x0][_0x5adf56(0x239)]=this[_0x5adf56(0x18c)](),_0xc45cdb=this[_0x5adf56(0x3ef)][_0x5adf56(0x220)](X,this[_0x5adf56(0x1c8)],this[_0x5adf56(0x310)],_0x863d06[0x0],this['_handler']);else{if(_0x466660[_0x5adf56(0x1b8)]!==0x0){const _0x7d8b7b=this['_injector']['createInstance'](k,this[_0x5adf56(0x1c8)],this[_0x5adf56(0x310)],_0x466660,this[_0x5adf56(0x1ca)]);_0x7d8b7b['_schedule'](),_0xc45cdb=_0x7d8b7b;}else _0xc45cdb=this[_0x5adf56(0x3ef)][_0x5adf56(0x220)](Te,this['unitID'],this['type'],this[_0x5adf56(0x1ca)]);}}return _0xc45cdb[_0x5adf56(0x280)](),_0xc45cdb;}catch(_0x1471c9){return this[_0x5adf56(0x439)]['error'](_0x5adf56(0x27c),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1471c9),this[_0x5adf56(0x3ef)][_0x5adf56(0x220)](te,this[_0x5adf56(0x1c8)],this[_0x5adf56(0x310)],this[_0x5adf56(0x172)],this[_0x5adf56(0x1ad)],this[_0x5adf56(0x1ca)],!0x1);}}[_0x4d300e(0x18e)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x3264dc){const _0x4cdcc8=_0x4d300e;return this['_pendingMutations'][_0x4cdcc8(0x445)](_0x3264dc),this;}[_0x4d300e(0x497)](_0x505f67){const _0x3ed372=_0x4d300e;return this[_0x3ed372(0x3c5)][_0x3ed372(0x445)](_0x505f67),this;}['onRemoteAck'](_0x365c3b){const _0x1d074f=_0x4d300e;if(this[_0x1d074f(0x172)])return this[_0x1d074f(0x3da)]=this[_0x1d074f(0x172)],this[_0x1d074f(0x172)]=null,this;throw new Error(_0x1d074f(0x41a));}[_0x4d300e(0x183)](_0x1369c3){const _0x2cf110=_0x4d300e;return this[_0x2cf110(0x3c6)](!!(_0x1369c3!=null&&_0x1369c3[_0x2cf110(0x1b2)]));}[_0x4d300e(0x428)](){const _0x10b00c=_0x4d300e;return this[_0x10b00c(0x3ef)][_0x10b00c(0x220)](J,this[_0x10b00c(0x1c8)],this[_0x10b00c(0x310)],this[_0x10b00c(0x172)],this[_0x10b00c(0x1ad)],this[_0x10b00c(0x1ca)]);}[_0x4d300e(0x40c)](){return this;}[_0x4d300e(0x3c6)](_0x848c97){const _0x39fb7c=_0x4d300e;return this['_injector'][_0x39fb7c(0x220)](te,this['unitID'],this['type'],this[_0x39fb7c(0x172)],this['_pendingMutations'],this['_handler'],_0x848c97);}};W=ne([g(0x7,_0x5ee80d(_0x1fa2c4)),g(0x8,_0x5ee80d(_0x3ae57a)),g(0x9,_0x5ee80d(D)),g(0xa,_0x1546f9),g(0xb,_0x11685c),g(0xc,_0x26da0d),g(0xd,_0x18339f)],W);function ws(_0x4a47f8,_0x384225,_0x7879a0,_0x330ac0,_0xa96a9e,_0x3d170f){const _0x1a1d0a=_0x4d300e;return _0x330ac0&&_0xa96a9e[_0x1a1d0a(0x1b8)]?_0x4a47f8[_0x1a1d0a(0x220)](V,_0x384225,_0x7879a0,_0x330ac0,_0xa96a9e,_0x3d170f):_0x330ac0?_0x4a47f8[_0x1a1d0a(0x220)](X,_0x384225,_0x7879a0,_0x330ac0,_0x3d170f):_0xa96a9e[_0x1a1d0a(0x1b8)]?_0x4a47f8['createInstance'](k,_0x384225,_0x7879a0,_0xa96a9e,_0x3d170f):_0x4a47f8[_0x1a1d0a(0x220)](Te,_0x384225,_0x7879a0,_0x3d170f);}var kn=Object[_0x4d300e(0x26c)],Vn=Object[_0x4d300e(0x368)],Je=(_0x3cfde6,_0x3cc6bc,_0x33dbfa,_0x4b2961)=>{const _0x2e7ae5=_0x4d300e;for(var _0x19e2ec=_0x4b2961>0x1?void 0x0:_0x4b2961?Vn(_0x3cc6bc,_0x33dbfa):_0x3cc6bc,_0x289545=_0x3cfde6[_0x2e7ae5(0x1b8)]-0x1,_0x1d42f4;_0x289545>=0x0;_0x289545--)(_0x1d42f4=_0x3cfde6[_0x289545])&&(_0x19e2ec=(_0x4b2961?_0x1d42f4(_0x3cc6bc,_0x33dbfa,_0x19e2ec):_0x1d42f4(_0x19e2ec))||_0x19e2ec);return _0x4b2961&&_0x19e2ec&&kn(_0x3cc6bc,_0x33dbfa,_0x19e2ec),_0x19e2ec;},S=(_0x4e7fae,_0x1f1026)=>(_0x4b02aa,_0x4fad68)=>_0x1f1026(_0x4b02aa,_0x4fad68,_0x4e7fae);let Ee=class extends _0x523d01{constructor(_0x6fa71f,_0x34ef0a,_0x5ad686){const _0x3bff73=_0x4d300e;super(),l(this,_0x3bff73(0x3f1),new Map()),l(this,'_entityInit$',new _0x4b8ba0()),(this[_0x3bff73(0x3ef)]=_0x6fa71f,this[_0x3bff73(0x235)]=_0x34ef0a,this[_0x3bff73(0x229)]=_0x5ad686,this[_0x3bff73(0x1e2)]());}[_0x4d300e(0x27d)](){const _0x2a3fc1=_0x4d300e;super[_0x2a3fc1(0x27d)](),this['_entities']['forEach'](_0x38176b=>_0x38176b[_0x2a3fc1(0x27d)]()),this[_0x2a3fc1(0x3f1)][_0x2a3fc1(0x1c1)]();}[_0x4d300e(0x433)](_0x5eccbc){const _0x39a24d=_0x4d300e;var _0x24c1b7;return(_0x24c1b7=this[_0x39a24d(0x3f1)][_0x39a24d(0x23f)](_0x5eccbc))!=null?_0x24c1b7:null;}[_0x4d300e(0x1af)](_0x59aa56){const _0x22eb33=_0x4d300e,_0x579ee3=this[_0x22eb33(0x433)](_0x59aa56);return _0x579ee3?_0xd6321(_0x579ee3):this[_0x22eb33(0x23e)][_0x22eb33(0x21f)](_0x299caa(_0x1ac486=>_0x1ac486[_0x22eb33(0x1c8)]===_0x59aa56));}[_0x4d300e(0x1e2)](){const _0x49fbe8=_0x4d300e;this[_0x49fbe8(0x229)]['getTypeOfUnitAdded$'](_0x590cf1['UNIVER_SHEET'])[_0x49fbe8(0x21f)](_0x516ad9(this[_0x49fbe8(0x3b2)]),_0x1ee433(0x10))[_0x49fbe8(0x253)](async _0x41e6a9=>{const _0x5b9488=_0x49fbe8,_0x224c64=_0x41e6a9[_0x5b9488(0x419)](),_0x8a4423=await this['_startCollaboration'](_0x224c64,H[_0x5b9488(0x282)]);this[_0x5b9488(0x3f1)][_0x5b9488(0x1ef)](_0x224c64,_0x8a4423);}),this[_0x49fbe8(0x229)][_0x49fbe8(0x2dc)](_0x590cf1[_0x49fbe8(0x2aa)])[_0x49fbe8(0x21f)](_0x516ad9(this['dispose$']),_0x1ee433(0x10))[_0x49fbe8(0x21f)](_0x299caa(_0x2f4055=>!_0x2f4055[_0x49fbe8(0x419)]()[_0x49fbe8(0x47d)]('__')))['subscribe'](async _0x37634c=>{const _0x594d5c=_0x49fbe8,_0x4ba294=_0x37634c[_0x594d5c(0x419)](),_0xfeb645=await this[_0x594d5c(0x3c7)](_0x4ba294,H['UNIVER_DOC']);this['_entities']['set'](_0x4ba294,_0xfeb645);}),_0x1b5032(this[_0x49fbe8(0x229)]['getTypeOfUnitDisposed$'](_0x590cf1['UNIVER_SHEET']),this[_0x49fbe8(0x229)][_0x49fbe8(0x376)](_0x590cf1['UNIVER_DOC']))[_0x49fbe8(0x21f)](_0x516ad9(this[_0x49fbe8(0x3b2)]))[_0x49fbe8(0x253)](_0x4cad24=>{const _0xa24613=_0x49fbe8,_0xb1d36d=_0x4cad24[_0xa24613(0x419)](),_0x37d890=this[_0xa24613(0x3f1)][_0xa24613(0x23f)](_0xb1d36d);_0x37d890&&(_0x37d890[_0xa24613(0x27d)](),this[_0xa24613(0x3f1)][_0xa24613(0x284)](_0xb1d36d));});}async['_startCollaboration'](_0x50d3c2,_0x466b09){const _0x219702=_0x4d300e,_0x508537=await this[_0x219702(0x235)]['requireSession'](_0x50d3c2),_0x71bf13=this[_0x219702(0x3ef)][_0x219702(0x220)](this[_0x219702(0x332)](_0x466b09),_0x50d3c2,_0x466b09,_0x508537);return await _0x71bf13[_0x219702(0x324)](),this[_0x219702(0x23e)][_0x219702(0x3bf)](_0x71bf13),_0x71bf13;}[_0x4d300e(0x332)](_0x5a49ea){const _0xeec0a8=_0x4d300e;switch(_0x5a49ea){case H[_0xeec0a8(0x2aa)]:return dt;case H['UNIVER_SHEET']:return ft;default:throw new Error(_0xeec0a8(0x1c2)+_0x5a49ea);}}};Ee=Je([_0x571911(_0x4f7ed2['Starting'],Ee),S(0x0,_0x5ee80d(_0x1fa2c4)),S(0x1,_0x5ee80d(Re)),S(0x2,_0x54cb93)],Ee);let We=class extends _0x523d01{constructor(_0x447bff,_0x5c53c1,_0x107e85,_0x447f3f,_0x46a7d8,_0x347650,_0x5a34a9,_0x3dadbf,_0x3025f2,_0x337b2a,_0x229f9c,_0x3a864f,_0x58b2e4){const _0x233b4b=_0x4d300e;super(),l(this,_0x233b4b(0x2e2),new _0x25861f(null)),l(this,_0x233b4b(0x358),this['_state$'][_0x233b4b(0x1a8)]()),l(this,_0x233b4b(0x19c)),l(this,_0x233b4b(0x2ac),!0x1),l(this,'status$',this[_0x233b4b(0x358)][_0x233b4b(0x21f)](_0x50cc5c(_0x56102b=>_0x56102b?_0x56102b['status']:P['OFFLINE']),_0x2c07c4(0x1))),l(this,_0x233b4b(0x224),!0x1),l(this,_0x233b4b(0x175),[]),(this['unitID']=_0x447bff,this[_0x233b4b(0x1d2)]=_0x5c53c1,this[_0x233b4b(0x440)]=_0x107e85,this[_0x233b4b(0x3ef)]=_0x447f3f,this[_0x233b4b(0x3d5)]=_0x46a7d8,this[_0x233b4b(0x371)]=_0x347650,this['_localeService']=_0x5a34a9,this[_0x233b4b(0x335)]=_0x3dadbf,this['_logService']=_0x3025f2,this['_commandService']=_0x337b2a,this[_0x233b4b(0x22d)]=_0x229f9c,this[_0x233b4b(0x319)]=_0x3a864f,this[_0x233b4b(0x312)]=_0x58b2e4);}get[_0x4d300e(0x316)](){return this['_state'];}async[_0x4d300e(0x324)](){const _0x550576=_0x4d300e;if(this['state'])throw new Error(_0x550576(0x477));await this['_init']();}[_0x4d300e(0x242)](){const _0x3bbb67=_0x4d300e;return this[_0x3bbb67(0x2ac)]=!0x0,_0x3505c8(()=>{const _0xf5db08=_0x3bbb67;this[_0xf5db08(0x2ac)]=!0x1,this[_0xf5db08(0x39a)]();});}[_0x4d300e(0x1e9)](_0x158c38){const _0x40bfdf=_0x4d300e;this['_state']=_0x158c38,this[_0x40bfdf(0x2e2)]['next'](_0x158c38);}async[_0x4d300e(0x1e2)](){const _0x32541d=_0x4d300e;var _0x5e02ff;return this[_0x32541d(0x1e9)](await this[_0x32541d(0x32d)]()),this[_0x32541d(0x312)]&&((_0x5e02ff=this['_singleActiveUnitService'])==null||_0x5e02ff['editingUnit'](this[_0x32541d(0x1c8)]),this[_0x32541d(0x1a4)](_0x3505c8(this[_0x32541d(0x312)][_0x32541d(0x1df)](this['unitID'])[_0x32541d(0x253)](_0x321198=>{const _0x2f5a52=_0x32541d;this['_logService'][_0x2f5a52(0x238)]('[CollaborationEntity]',_0x2f5a52(0x1dd),_0x321198),_0x321198===Os['OTHER_CLIENTS_EDITING']?(this[_0x2f5a52(0x22d)][_0x2f5a52(0x1c6)]({'content':this['_localeService']['t'](_0x2f5a52(0x476)),'type':_0x1ae78a['Warning']}),this['_permissionService'][_0x2f5a52(0x438)](new _0x4e8e4c(this[_0x2f5a52(0x1c8)])['id'],!0x1)):this['_permissionService'][_0x2f5a52(0x438)](new _0x4e8e4c(this[_0x2f5a52(0x1c8)])['id'],!0x0);})))),this[_0x32541d(0x1a4)](_0x3505c8(this[_0x32541d(0x440)][_0x32541d(0x381)][_0x32541d(0x253)](_0x18019d=>{const _0x16a98a=_0x32541d;_0x18019d===_e[_0x16a98a(0x28b)]?this[_0x16a98a(0x325)]():_0x18019d===_e['OFFLINE']&&this[_0x16a98a(0x435)]();}))),this[_0x32541d(0x1a4)](_0x3505c8(this['_session'][_0x32541d(0x48b)][_0x32541d(0x253)](_0x5ef293=>{const _0x5ce3df=_0x32541d;try{switch(_0x5ef293[_0x5ce3df(0x36d)]){case _0x2132ab['NEW_CHANGESETS']:{this[_0x5ce3df(0x2ef)](_0x18efab(_0x5ef293[_0x5ce3df(0x3eb)]));break;}case _0x2132ab[_0x5ce3df(0x321)]:{this['_onRemoteACK'](_0x5ef293[_0x5ce3df(0x3eb)]);break;}case _0x2132ab[_0x5ce3df(0x45d)]:{this['_onRemoteRejected']();break;}case _0x2132ab[_0x5ce3df(0x41f)]:{this['_onFetchMissResult'](_0x5ef293['data']['changesets']['map'](_0x2dd8d3=>_0x18efab(_0x2dd8d3)));break;}case _0x2132ab[_0x5ce3df(0x402)]:this[_0x5ce3df(0x35e)]({'isPermissionRej':!0x0});}}catch(_0x4f09a9){throw console[_0x5ce3df(0x3d0)](_0x5ce3df(0x256),_0x4f09a9),_0x4f09a9;}}))),this['_state'];}[_0x4d300e(0x421)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x1cea03=_0x4d300e;if(this['_transitionLocked'])throw new Error(_0x1cea03(0x450));this[_0x1cea03(0x224)]=!0x0;}[_0x4d300e(0x2d9)](_0x21a09d){const _0x25232c=_0x4d300e;this[_0x25232c(0x23d)](),this['_updateState'](this[_0x25232c(0x19c)][_0x25232c(0x43c)](_0x21a09d)),this[_0x25232c(0x421)]();}[_0x4d300e(0x2ef)](_0x14f84b){const _0x43da50=_0x4d300e;if(!(_0x14f84b[_0x43da50(0x3f8)]<=this['_revisionService'][_0x43da50(0x1ee)](this[_0x43da50(0x1c8)]))){if(this[_0x43da50(0x2ac)]){this[_0x43da50(0x175)][_0x43da50(0x445)](_0x14f84b);return;}this['_applyRemoteChangeset'](_0x14f84b);}}['_exhaustRemoteChangesetQueue'](){const _0x3570ae=_0x4d300e;this[_0x3570ae(0x175)][_0x3570ae(0x2b7)](_0x1170fe=>this['_applyRemoteChangeset'](_0x1170fe)),this[_0x3570ae(0x175)]=[];}[_0x4d300e(0x227)](_0x4a8fa7){const _0xcf8613=_0x4d300e,_0x22e2bf=this[_0xcf8613(0x371)]['interceptor'][_0xcf8613(0x28a)](this['_compressMutationService'][_0xcf8613(0x48e)]['getInterceptPoints']()[_0xcf8613(0x2db)])(_0x4a8fa7[_0xcf8613(0x2ff)],null)||_0x4a8fa7[_0xcf8613(0x2ff)],_0x4b7509={..._0x4a8fa7,'mutations':_0x22e2bf};this['_lockTransition'](),this[_0xcf8613(0x1e9)](this[_0xcf8613(0x19c)][_0xcf8613(0x497)](_0x4b7509)),this[_0xcf8613(0x421)]();}[_0x4d300e(0x1b3)](_0x5a4afa){const _0x2c3301=_0x4d300e;this['_lockTransition'](),this[_0x2c3301(0x1e9)](this[_0x2c3301(0x19c)][_0x2c3301(0x3e4)](_0x5a4afa)),this[_0x2c3301(0x421)]();}[_0x4d300e(0x35e)](_0xb05d50){const _0x397d73=_0x4d300e;this['_lockTransition'](),this[_0x397d73(0x1e9)](this[_0x397d73(0x19c)]['onRemoteRej'](_0xb05d50)),this[_0x397d73(0x421)]();}[_0x4d300e(0x460)](_0x1356bd){const _0x476352=_0x4d300e;if(!(this['_state']instanceof W))throw new TypeError(_0x476352(0x2d4));const _0x2b6f4a=_0x1356bd[_0x476352(0x233)](_0x294bb5=>{const _0x211eb8=_0x476352,_0x41ddd3=this[_0x211eb8(0x371)][_0x211eb8(0x48e)]['fetchThroughInterceptors'](this[_0x211eb8(0x371)][_0x211eb8(0x48e)][_0x211eb8(0x3dc)]()[_0x211eb8(0x2db)])(_0x294bb5[_0x211eb8(0x2ff)],null)||_0x294bb5['mutations'];return{..._0x294bb5,'mutations':_0x41ddd3};});this['_lockTransition'](),this['_updateState'](this['_state'][_0x476352(0x20d)](_0x2b6f4a)),this[_0x476352(0x421)]();}[_0x4d300e(0x435)](){const _0x555f71=_0x4d300e;this[_0x555f71(0x23d)](),this[_0x555f71(0x1e9)](this[_0x555f71(0x19c)]['toggleOffline']()),this[_0x555f71(0x421)]();}['_toggleOnline'](){const _0x112d19=_0x4d300e;this[_0x112d19(0x23d)](),this[_0x112d19(0x1e9)](this[_0x112d19(0x19c)][_0x112d19(0x40c)]()),this['_unlockTransition']();}async[_0x4d300e(0x32d)](){return new Promise(_0xe360b6=>{const _0x24e3ee=_0x3069;this[_0x24e3ee(0x440)][_0x24e3ee(0x381)]['pipe'](_0x4b46b5(0x1))[_0x24e3ee(0x253)](async _0x2c99d1=>{const _0x325547=_0x24e3ee;_0xe360b6(await this['_createInitialStateImpl'](_0x2c99d1===_e[_0x325547(0x28b)]));});});}['_createHandler'](){const _0x3e6df9=_0x4d300e,_0x56afb0=this[_0x3e6df9(0x1c8)];return{'onStateChange':(_0x39f776,_0xe484b8)=>{const _0x20a780=_0x3e6df9;if(_0x39f776!==this[_0x20a780(0x19c)])throw new Error(_0x20a780(0x3b8)+_0x39f776['status']+_0x20a780(0x1b1)+_0xe484b8[_0x20a780(0x3aa)]+_0x20a780(0x346)+this['_state'][_0x20a780(0x3aa)]);this[_0x20a780(0x1e9)](_0xe484b8);},'onSendChangeset':_0x34f5c7=>{const _0x4861f7=_0x3e6df9,_0x5a7d7f={'eventID':_0x2132ab[_0x4861f7(0x283)],'data':{'unitID':_0x34f5c7['unitID'],'unitType':this[_0x4861f7(0x1d2)],'changeset':_0x34f5c7,'memberID':this[_0x4861f7(0x440)][_0x4861f7(0x43f)]()}};this[_0x4861f7(0x440)][_0x4861f7(0x370)](_0x5a7d7f,this[_0x4861f7(0x1c8)]);},'onMissingChangesets':({from:_0x4e3aff,to:_0x1dc5f1})=>{const _0x134b17=_0x3e6df9;this[_0x134b17(0x439)][_0x134b17(0x238)](_0x134b17(0x2a2),_0x134b17(0x473)+_0x4e3aff+_0x134b17(0x492)+_0x1dc5f1);const _0x319453={'eventID':_0x2132ab[_0x134b17(0x271)],'data':{'unitID':_0x56afb0,'unitType':this[_0x134b17(0x1d2)],'from':_0x4e3aff,'to':_0x1dc5f1}};this[_0x134b17(0x440)][_0x134b17(0x370)](_0x319453,this[_0x134b17(0x1c8)]);}};}async[_0x4d300e(0x197)](_0x536800){const _0x5fc324=_0x4d300e;var _0x534687,_0x5d552f;const _0x174575=await this['_localCacheService'][_0x5fc324(0x234)](this[_0x5fc324(0x1c8)]),_0x759db2=(_0x534687=_0x174575==null?void 0x0:_0x174575[_0x5fc324(0x2ff)])!=null?_0x534687:[],_0x1f4eca=(_0x5d552f=_0x174575==null?void 0x0:_0x174575[_0x5fc324(0x388)])!=null?_0x5d552f:null,_0x29ce0b=this[_0x5fc324(0x1c8)];try{this[_0x5fc324(0x2c3)](_0x1f4eca,_0x759db2);}catch(_0x44e635){this[_0x5fc324(0x439)][_0x5fc324(0x3d0)](_0x44e635);}const _0x21dcfa=this['_createHandler']();if(_0x536800){const _0x3d1c93=ws(this[_0x5fc324(0x3ef)],_0x29ce0b,this[_0x5fc324(0x1d2)],_0x1f4eca,_0x759db2,_0x21dcfa);return _0x3d1c93 instanceof k?_0x3d1c93[_0x5fc324(0x471)]():(_0x3d1c93 instanceof V||_0x3d1c93 instanceof X)&&_0x3d1c93['resend'](),_0x3d1c93;}return this[_0x5fc324(0x3ef)][_0x5fc324(0x220)](J,_0x29ce0b,this[_0x5fc324(0x1d2)],_0x1f4eca,_0x759db2,_0x21dcfa);}[_0x4d300e(0x2c3)](_0x512206,_0x38bb90){const _0x5d48af=_0x4d300e;var _0x530743,_0xf522f0;const _0xc51612=this[_0x5d48af(0x371)][_0x5d48af(0x48e)][_0x5d48af(0x28a)](this[_0x5d48af(0x371)][_0x5d48af(0x48e)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x530743=_0xc51612((_0x512206==null?void 0x0:_0x512206[_0x5d48af(0x2ff)])||[],null))==null||_0x530743[_0x5d48af(0x2b7)](_0x25933d=>this[_0x5d48af(0x39f)][_0x5d48af(0x1fb)](_0x25933d['id'],_0x25933d[_0x5d48af(0x46e)])),(_0xf522f0=_0xc51612(_0x38bb90||[],null))==null||_0xf522f0[_0x5d48af(0x2b7)](_0x34db4a=>this[_0x5d48af(0x39f)]['executeCommand'](_0x34db4a['id'],_0x34db4a[_0x5d48af(0x46e)]));}};We=Je([S(0x3,_0x5ee80d(_0x1fa2c4)),S(0x4,_0x5ee80d(D)),S(0x5,_0x5ee80d(_0x8d6b01)),S(0x6,_0x5ee80d(_0x399826)),S(0x7,_0x5ee80d(_0x3ae57a)),S(0x8,_0x1546f9),S(0x9,_0x11685c),S(0xa,_0x2654c7),S(0xb,_0x23c04e),S(0xc,_0x23081c(Xe))],We);let dt=class extends We{constructor(_0x4cd9b6,_0x424f10,_0xee07bb,_0x595018,_0x2bf1cc,_0x57be32,_0x4a8561,_0x52241b,_0x5c5363,_0x435f53,_0x58e7b3,_0xfc923d,_0x182369,_0x9fb7fa,_0x443c09,_0x1903dd,_0x124fcd){const _0x1da208=_0x4d300e;super(_0x4cd9b6,_0x424f10,_0xee07bb,_0x595018,_0x2bf1cc,_0x57be32,_0x4a8561,_0x52241b,_0x182369,_0x9fb7fa,_0x443c09,_0x1903dd,_0x124fcd),this[_0x1da208(0x1c8)]=_0x4cd9b6,this[_0x1da208(0x310)]=_0x424f10,this[_0x1da208(0x16b)]=_0xee07bb,this['_docStateChangeManagerService']=_0x5c5363,this[_0x1da208(0x446)]=_0x435f53,this[_0x1da208(0x3b1)]=_0x58e7b3,this[_0x1da208(0x20b)]=_0xfc923d;}[_0x4d300e(0x185)](){const _0x3ac084=_0x4d300e,_0x35eb7b=super['_createHandler']();return _0x35eb7b['onTransformIME']=_0x45a9c6=>this['_docTransformIMECacheService'][_0x3ac084(0x2cd)](_0x45a9c6),_0x35eb7b[_0x3ac084(0x48c)]=_0x480a0c=>this[_0x3ac084(0x3b1)]['transformSelections'](_0x480a0c),_0x35eb7b[_0x3ac084(0x206)]=_0x3cef4d=>this[_0x3ac084(0x20b)][_0x3ac084(0x341)](_0x3cef4d),_0x35eb7b[_0x3ac084(0x1de)]=_0x3a7dd9=>this[_0x3ac084(0x446)][_0x3ac084(0x33e)](_0x3a7dd9),_0x35eb7b;}async[_0x4d300e(0x1e2)](){const _0x14179b=_0x4d300e,_0x593847=await super['_init']();return this[_0x14179b(0x2ca)][_0x14179b(0x20c)][_0x14179b(0x21f)](_0x516ad9(this[_0x14179b(0x3b2)]))[_0x14179b(0x253)](_0x56503f=>{const _0xfa0fa2=_0x14179b;if(_0x56503f==null)return;const {unitId:_0x5b336d,redoState:_0xe34183,commandId:_0x55b087}=_0x56503f;if(_0x5b336d!==this[_0xfa0fa2(0x1c8)])return;const _0x3b951e={'id':_0x55b087,'type':_0x275930['MUTATION'],'params':{'unitId':_0x5b336d,'actions':_0xe34183[_0xfa0fa2(0x44e)],'textRanges':null}};this[_0xfa0fa2(0x2d9)](_0x3b951e);}),_0x593847;}};function _0x3069(_0x1d9c62,_0x4c7e1d){const _0x2ccecb=_0x2cce();return _0x3069=function(_0x306942,_0x3833ad){_0x306942=_0x306942-0x169;let _0x1b9236=_0x2ccecb[_0x306942];return _0x1b9236;},_0x3069(_0x1d9c62,_0x4c7e1d);}dt=Je([S(0x3,_0x5ee80d(_0x1fa2c4)),S(0x4,_0x5ee80d(D)),S(0x5,_0x5ee80d(_0x8d6b01)),S(0x6,_0x5ee80d(_0x399826)),S(0x7,_0x5ee80d(_0x3ae57a)),S(0x8,_0x5ee80d(_0x3a2339)),S(0x9,_0x5ee80d(Be)),S(0xa,_0x5ee80d(ke)),S(0xb,_0x5ee80d(Mt)),S(0xc,_0x1546f9),S(0xd,_0x11685c),S(0xe,_0x2654c7),S(0xf,_0x23c04e),S(0x10,_0x23081c(Xe))],dt);let ft=class extends We{constructor(_0x58736d,_0x2b205c,_0x402d01,_0x45c381,_0x59f758,_0x476f3b,_0x2da035,_0x25801c,_0x515d9d,_0x33da5e,_0x207a6c,_0x39b154,_0x56950c,_0x4e3dbf){const _0x4e6e71=_0x4d300e;super(_0x58736d,_0x2b205c,_0x402d01,_0x45c381,_0x59f758,_0x476f3b,_0x2da035,_0x25801c,_0x33da5e,_0x207a6c,_0x39b154,_0x56950c,_0x4e3dbf),this[_0x4e6e71(0x1c8)]=_0x58736d,this[_0x4e6e71(0x310)]=_0x2b205c,this[_0x4e6e71(0x16b)]=_0x402d01,this[_0x4e6e71(0x3fa)]=_0x515d9d;}[_0x4d300e(0x185)](){const _0x3bb47c=_0x4d300e,_0x4f059a=super['_createHandler']();return _0x4f059a[_0x3bb47c(0x48c)]=_0x3c793a=>this[_0x3bb47c(0x3fa)]['transformSelections'](_0x3c793a),_0x4f059a;}async['_init'](){const _0x3fadd6=_0x4d300e,_0x3f8d00=await super[_0x3fadd6(0x1e2)]();return this['disposeWithMe'](this[_0x3fadd6(0x39f)]['onCommandExecuted']((_0xbc7697,_0x4e0776)=>{const _0x292b2b=_0x3fadd6;if(_0xbc7697[_0x292b2b(0x310)]!==_0x275930[_0x292b2b(0x2f9)]||_0x4e0776!=null&&_0x4e0776['fromCollab']||_0x4e0776!=null&&_0x4e0776[_0x292b2b(0x266)])return;const _0x1fd707=_0xbc7697[_0x292b2b(0x46e)];if((_0x1fd707==null?void 0x0:_0x1fd707[_0x292b2b(0x36b)])!==this[_0x292b2b(0x1c8)])return;const _0x33f3c3=_0xbc7697,_0x1d6c11=this[_0x292b2b(0x371)][_0x292b2b(0x48e)][_0x292b2b(0x28a)](this[_0x292b2b(0x371)]['interceptor'][_0x292b2b(0x3dc)]()[_0x292b2b(0x1d8)])([_0x33f3c3],null)||[_0x33f3c3];this[_0x292b2b(0x2d9)](_0x1d6c11[0x0]);})),_0x3f8d00;}};ft=Je([S(0x3,_0x5ee80d(_0x1fa2c4)),S(0x4,_0x5ee80d(D)),S(0x5,_0x5ee80d(_0x8d6b01)),S(0x6,_0x5ee80d(_0x399826)),S(0x7,_0x5ee80d(_0x3ae57a)),S(0x8,_0x5ee80d(Ve)),S(0x9,_0x1546f9),S(0xa,_0x11685c),S(0xb,_0x2654c7),S(0xc,_0x23c04e),S(0xd,_0x23081c(Xe))],ft);const Zt=[_0x4d300e(0x1fe),_0x4d300e(0x3c2),_0x4d300e(0x394),'red300',_0x4d300e(0x2e7),_0x4d300e(0x198)];class At extends _0x277f24{constructor(){const _0x4b2b87=_0x4d300e;super(...arguments),l(this,_0x4b2b87(0x334),new Map()),l(this,_0x4b2b87(0x1ec),0x0);}[_0x4d300e(0x1d4)](_0x598be0){const _0x361378=_0x4d300e;if(this[_0x361378(0x334)][_0x361378(0x181)](_0x598be0))return this[_0x361378(0x334)]['get'](_0x598be0);const _0x4b904d=Zt[this[_0x361378(0x1ec)]];return this[_0x361378(0x1ec)]=(this[_0x361378(0x1ec)]+0x1)%Zt[_0x361378(0x1b8)],this[_0x361378(0x334)][_0x361378(0x1ef)](_0x598be0,_0x4b904d),_0x4b904d;}}var Wn=Object['defineProperty'],Gn=Object['getOwnPropertyDescriptor'],Yn=(_0x478917,_0x3773b4,_0x5f00b7,_0x154f15)=>{const _0x53de95=_0x4d300e;for(var _0x205b90=_0x154f15>0x1?void 0x0:_0x154f15?Gn(_0x3773b4,_0x5f00b7):_0x3773b4,_0x827f54=_0x478917[_0x53de95(0x1b8)]-0x1,_0x235989;_0x827f54>=0x0;_0x827f54--)(_0x235989=_0x478917[_0x827f54])&&(_0x205b90=(_0x154f15?_0x235989(_0x3773b4,_0x5f00b7,_0x205b90):_0x235989(_0x205b90))||_0x205b90);return _0x154f15&&_0x205b90&&Wn(_0x3773b4,_0x5f00b7,_0x205b90),_0x205b90;},ae=(_0x528f26,_0x6e1224)=>(_0xef6ae9,_0x1f6309)=>_0x6e1224(_0xef6ae9,_0x1f6309,_0x528f26);const Kn=0x12c,Xn=0x64,Jn=()=>{let _0x2a7a3d=[],_0x3c9525=!0x1;return _0x33e771=>{const _0x426c84=_0x3069;_0x2a7a3d[_0x426c84(0x445)](_0x33e771),_0x3c9525||(_0x3c9525=!0x0,setTimeout(()=>{const _0x163963=_0x426c84;_0x2a7a3d[_0x163963(0x2b7)](_0x22ab8e=>_0x22ab8e()),_0x2a7a3d=[],_0x3c9525=!0x1;}));};};let gt=class extends _0x523d01{constructor(_0x51287d,_0x50a011,_0x476696,_0x54d72d,_0x9cf4d1,_0x157f09,_0x532918,_0x31cc03){const _0x228eaa=_0x4d300e;super(),l(this,_0x228eaa(0x3b9),!0x1),l(this,_0x228eaa(0x1e2),!0x1),l(this,_0x228eaa(0x482),new _0x25861f(new Map())),l(this,_0x228eaa(0x364),this[_0x228eaa(0x482)][_0x228eaa(0x1a8)]()),l(this,_0x228eaa(0x3ff),new _0x25861f([])),l(this,'roomMembers$',this[_0x228eaa(0x3ff)][_0x228eaa(0x21f)](_0x1d740e(Kn))),l(this,_0x228eaa(0x479),_0x3a382a((_0x4ae723,_0x3323e2)=>{const _0x4e2298=_0x228eaa,_0x33677a={'eventID':_0x2132ab[_0x4e2298(0x20e)],'data':{'unitID':this[_0x4e2298(0x1c8)],'memberID':this[_0x4e2298(0x440)][_0x4e2298(0x43f)](),'selection':_0x400de7(_0x4ae723,_0x3323e2[_0x4e2298(0x3d3)])}};this[_0x4e2298(0x440)]['send'](_0x33677a,this[_0x4e2298(0x1c8)]);},Xn)),(this[_0x228eaa(0x1c8)]=_0x51287d,this[_0x228eaa(0x440)]=_0x50a011,this[_0x228eaa(0x3ef)]=_0x476696,this[_0x228eaa(0x34f)]=_0x54d72d,this[_0x228eaa(0x29b)]=_0x9cf4d1,this[_0x228eaa(0x229)]=_0x157f09,this['_commandService']=_0x532918,this[_0x228eaa(0x1da)]=_0x31cc03);}get[_0x4d300e(0x448)](){const _0x47abdb=_0x4d300e;return this[_0x47abdb(0x482)][_0x47abdb(0x291)]();}get[_0x4d300e(0x191)](){const _0x45f605=_0x4d300e;return this[_0x45f605(0x3ff)][_0x45f605(0x291)]();}[_0x4d300e(0x27d)](){const _0x5b56e1=_0x4d300e;super['dispose'](),this[_0x5b56e1(0x482)][_0x5b56e1(0x3bf)](new Map()),this[_0x5b56e1(0x482)]['complete'](),this[_0x5b56e1(0x3ff)][_0x5b56e1(0x3bf)]([]),this[_0x5b56e1(0x3ff)][_0x5b56e1(0x250)]();}[_0x4d300e(0x324)](){const _0xa81fc7=_0x4d300e;this[_0xa81fc7(0x1e2)]||(this[_0xa81fc7(0x1e2)]=!0x0,this['_session']['sessionStatus$'][_0xa81fc7(0x21f)](_0x516ad9(this['dispose$']))[_0xa81fc7(0x253)](_0x59b9b4=>{const _0x3e60bf=_0xa81fc7;_0x59b9b4===_e[_0x3e60bf(0x28b)]?this[_0x3e60bf(0x325)]():this[_0x3e60bf(0x435)]();}),this[_0xa81fc7(0x440)][_0xa81fc7(0x48b)][_0xa81fc7(0x21f)](_0x516ad9(this['dispose$']))[_0xa81fc7(0x253)](_0x19367b=>{const _0x508698=_0xa81fc7,_0x45db1c=_0x19367b[_0x508698(0x36d)];_0x45db1c===_0x2132ab['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x19367b),_0x45db1c===_0x2132ab['USERS_LEAVE']&&this[_0x508698(0x39b)](_0x19367b);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0xa81fc7(0x39f)][_0xa81fc7(0x31e)](_0x371e61=>{const _0x545b38=_0xa81fc7;if(this[_0x545b38(0x3b9)]&&_0x371e61['id']===_0x3c9caa['id']&&_0x371e61[_0x545b38(0x46e)][_0x545b38(0x36b)]===this['unitID']){const _0x286cf7=_0x371e61[_0x545b38(0x46e)];this['_updateLocalCursor'](_0x286cf7[_0x545b38(0x25c)],_0x286cf7[_0x545b38(0x170)][0x0]);}})));}[_0x4d300e(0x1f8)](_0x4ba133){const _0x2e32de=_0x4d300e;var _0x410050,_0x43c7d1;const {memberID:_0x1c7006,selection:_0x4368c}=_0x4ba133[_0x2e32de(0x3eb)],{sheetName:_0xa99a9c,range:_0x399be2}=_0x23934b(_0x4368c),_0x419177={'name':(_0x43c7d1=(_0x410050=this[_0x2e32de(0x29b)][_0x2e32de(0x3a2)](this[_0x2e32de(0x1c8)],_0x1c7006))==null?void 0x0:_0x410050[_0x2e32de(0x326)])!=null?_0x43c7d1:_0x2e32de(0x178),'range':this['_getMergeRange'](_0xa99a9c,_0x399be2),'sheetID':_0xa99a9c,'color':this[_0x2e32de(0x34f)][_0x2e32de(0x1d4)](_0x1c7006),'selection':_0x4368c},_0x1b3d5a=this[_0x2e32de(0x448)];_0x1b3d5a[_0x2e32de(0x1ef)](_0x1c7006,_0x419177),this[_0x2e32de(0x482)]['next'](_0x1b3d5a);}[_0x4d300e(0x39b)](_0x246807){const _0x397e9e=_0x4d300e,{memberID:_0x5396a2}=_0x246807[_0x397e9e(0x3eb)],_0x449b5e=this[_0x397e9e(0x448)];_0x449b5e[_0x397e9e(0x284)](_0x5396a2),this[_0x397e9e(0x482)][_0x397e9e(0x3bf)](_0x449b5e);}[_0x4d300e(0x3e7)](_0x2f6fa1,_0x45ea6c){const _0x779d6=_0x4d300e;var _0x1fa6ec,_0x2607b4;const _0x5aa77d=(_0x2607b4=(_0x1fa6ec=this['_univerInstanceService'][_0x779d6(0x2b9)](this[_0x779d6(0x1c8)]))==null?void 0x0:_0x1fa6ec['getSheetBySheetId'](_0x2f6fa1))==null?void 0x0:_0x2607b4[_0x779d6(0x18a)]();return(_0x5aa77d==null?void 0x0:_0x5aa77d[_0x779d6(0x3f0)](_0x27f8a4=>_0x3dbb71['contains'](_0x27f8a4,_0x45ea6c)))||_0x45ea6c;}[_0x4d300e(0x491)](){const _0x2114b1=_0x4d300e,_0x256000=new _0x12667e(),_0x448ebe=Jn(),_0x4258a3=()=>{const _0x25a4c0=_0x3069;_0x256000[_0x25a4c0(0x27d)]();const _0x49dcee=(_0x39c8ca,_0x4a5fa7,_0x20cc56,_0x18c32c)=>{const _0x122a25=_0x25a4c0;let _0x332b4c=[];switch(_0x39c8ca['id']){case _0x298da2[_0x122a25(0x41b)]:{_0x332b4c=_0x3ebd17(_0x39c8ca,_0x18c32c);break;}case _0x298da2[_0x122a25(0x2f1)]:{_0x332b4c=_0x4c9c37(_0x39c8ca,_0x18c32c);break;}case _0x298da2[_0x122a25(0x33d)]:{_0x332b4c=_0x4f5a34(_0x39c8ca,_0x18c32c);break;}case _0x298da2[_0x122a25(0x2a3)]:{_0x332b4c=_0x2e43b5(_0x39c8ca,_0x18c32c);break;}case _0x298da2[_0x122a25(0x25f)]:{_0x332b4c=_0x58fd8c(_0x39c8ca,_0x18c32c);break;}case _0x298da2[_0x122a25(0x29a)]:{_0x332b4c=_0x1f54fa(_0x39c8ca,_0x18c32c);break;}case _0x298da2[_0x122a25(0x1f6)]:{_0x332b4c=_0x19143a(_0x39c8ca,_0x18c32c);break;}case _0x298da2['RemoveColCommandId']:{_0x332b4c=_0x3ae47d(_0x39c8ca,_0x18c32c);break;}case _0x298da2['RemoveRowCommandId']:{_0x332b4c=_0x15fe12(_0x39c8ca,_0x18c32c);break;}}const _0x214c09=_0xce03aa(_0x332b4c,_0x18c32c),_0x297357=this[_0x122a25(0x448)][_0x122a25(0x23f)](_0x4a5fa7);if(_0x297357&&_0x214c09){const _0x4a5133={..._0x297357,'range':_0x214c09};this[_0x122a25(0x448)][_0x122a25(0x1ef)](_0x4a5fa7,_0x4a5133),_0x448ebe(()=>{const _0x189212=_0x122a25,_0x9b8da=this[_0x189212(0x1da)]['registerRefRange'](_0x214c09,_0x22f2d3=>(_0x9b8da['dispose'](),_0x49dcee(_0x22f2d3,_0x4a5fa7,_0x20cc56,_0x214c09)));_0x256000['add'](_0x9b8da);});}return{'redos':[],'undos':[]};};this[_0x25a4c0(0x448)][_0x25a4c0(0x2b7)]((_0x15333b,_0x2773b9)=>{const _0xbd9463=_0x25a4c0,{range:_0x1e69cc,sheetID:_0x394bd4}=_0x15333b,_0x2fc091=this[_0xbd9463(0x1da)][_0xbd9463(0x33c)](_0x1e69cc,_0xede636=>(_0x2fc091[_0xbd9463(0x27d)](),_0x49dcee(_0xede636,_0x2773b9,_0x394bd4,_0x1e69cc)));_0x256000[_0xbd9463(0x349)](_0x2fc091);});};this[_0x2114b1(0x1a4)](_0x3505c8(this[_0x2114b1(0x482)][_0x2114b1(0x253)](()=>{_0x4258a3();})));}[_0x4d300e(0x325)](){const _0x4d36da=_0x4d300e;var _0x34f348,_0x24fa5e;if(this[_0x4d36da(0x3b9)]=!0x0,((_0x34f348=this[_0x4d36da(0x229)][_0x4d36da(0x17a)]())==null?void 0x0:_0x34f348['getUnitId']())!==this['unitID'])return;const _0x5987c0=(_0x24fa5e=this[_0x4d36da(0x3ef)][_0x4d36da(0x23f)](_0x3a06f8)['getSelections']())==null?void 0x0:_0x24fa5e[0x0],_0x567c34=this[_0x4d36da(0x229)][_0x4d36da(0x169)](_0x590cf1[_0x4d36da(0x282)])[_0x4d36da(0x3c4)]();_0x5987c0&&_0x567c34&&this[_0x4d36da(0x479)](_0x567c34['getSheetId'](),_0x5987c0);}[_0x4d300e(0x435)](){const _0x1e5f31=_0x4d300e;this[_0x1e5f31(0x3b9)]=!0x1;}};gt=Yn([ae(0x2,_0x5ee80d(_0x1fa2c4)),ae(0x3,_0x5ee80d(At)),ae(0x4,_0x5ee80d(ee)),ae(0x5,_0x54cb93),ae(0x6,_0x11685c),ae(0x7,_0x5ee80d(_0x4619c7))],gt);var zn=Object[_0x4d300e(0x26c)],Zn=Object['getOwnPropertyDescriptor'],qn=(_0x276b81,_0x323685,_0x6d377c,_0x3305a4)=>{for(var _0x5a9c77=_0x3305a4>0x1?void 0x0:_0x3305a4?Zn(_0x323685,_0x6d377c):_0x323685,_0x2b0640=_0x276b81['length']-0x1,_0x34a0e2;_0x2b0640>=0x0;_0x2b0640--)(_0x34a0e2=_0x276b81[_0x2b0640])&&(_0x5a9c77=(_0x3305a4?_0x34a0e2(_0x323685,_0x6d377c,_0x5a9c77):_0x34a0e2(_0x5a9c77))||_0x5a9c77);return _0x3305a4&&_0x5a9c77&&zn(_0x323685,_0x6d377c,_0x5a9c77),_0x5a9c77;},q=(_0x44b43b,_0x4153e6)=>(_0x3dafad,_0x5667ca)=>_0x4153e6(_0x3dafad,_0x5667ca,_0x44b43b);const Qn=0x12c,er=0x64;let mt=class extends _0x523d01{constructor(_0x1cb061,_0x194ce3,_0x328b9b,_0x46bd6e,_0x4330c7,_0x576843,_0x166299,_0x5379a6,_0x3bb120){const _0x43342c=_0x4d300e;super(),l(this,_0x43342c(0x3b9),!0x1),l(this,_0x43342c(0x1e2),!0x1),l(this,_0x43342c(0x482),new _0x25861f(new Map())),l(this,_0x43342c(0x364),this[_0x43342c(0x482)][_0x43342c(0x1a8)]()),l(this,_0x43342c(0x3ff),new _0x25861f([])),l(this,'roomMembers$',this[_0x43342c(0x3ff)][_0x43342c(0x21f)](_0x1d740e(Qn))),l(this,_0x43342c(0x479),_0x3a382a(_0x10dc6c=>{const _0x2f893c=_0x43342c,_0x2da2b6={'eventID':_0x2132ab[_0x2f893c(0x20e)],'data':{'unitID':this[_0x2f893c(0x1c8)],'memberID':this['_session']['getMemberID'](),'selection':Ds(_0x10dc6c)}};this[_0x2f893c(0x440)][_0x2f893c(0x370)](_0x2da2b6,this[_0x2f893c(0x1c8)]);},er)),(this['unitID']=_0x1cb061,this[_0x43342c(0x440)]=_0x194ce3,this[_0x43342c(0x3ef)]=_0x328b9b,this[_0x43342c(0x34f)]=_0x46bd6e,this['_memberService']=_0x4330c7,this[_0x43342c(0x24b)]=_0x576843,this['_transformService']=_0x166299,this[_0x43342c(0x229)]=_0x5379a6,this[_0x43342c(0x39f)]=_0x3bb120);}get[_0x4d300e(0x448)](){const _0x380e25=_0x4d300e;return this[_0x380e25(0x482)]['getValue']();}get[_0x4d300e(0x191)](){const _0x184223=_0x4d300e;return this['_roomMembers$'][_0x184223(0x291)]();}[_0x4d300e(0x27d)](){const _0x5f3f1c=_0x4d300e;super[_0x5f3f1c(0x27d)](),this[_0x5f3f1c(0x482)][_0x5f3f1c(0x3bf)](new Map()),this[_0x5f3f1c(0x482)]['complete'](),this[_0x5f3f1c(0x3ff)][_0x5f3f1c(0x3bf)]([]),this[_0x5f3f1c(0x3ff)][_0x5f3f1c(0x250)]();}[_0x4d300e(0x324)](){const _0x50056b=_0x4d300e;this[_0x50056b(0x1e2)]||(this[_0x50056b(0x1e2)]=!0x0,this[_0x50056b(0x440)]['sessionStatus$'][_0x50056b(0x21f)](_0x516ad9(this['dispose$']))['subscribe'](_0x5f1860=>{const _0x2d11b5=_0x50056b;_0x5f1860===_e[_0x2d11b5(0x28b)]?this[_0x2d11b5(0x325)]():this[_0x2d11b5(0x435)]();}),this['_session']['event$'][_0x50056b(0x21f)](_0x516ad9(this[_0x50056b(0x3b2)]))[_0x50056b(0x253)](_0x506f4a=>{const _0x4e45ca=_0x50056b,_0x33e762=_0x506f4a[_0x4e45ca(0x36d)];_0x33e762===_0x2132ab[_0x4e45ca(0x20e)]&&this['_onCursorUpdate'](_0x506f4a),_0x33e762===_0x2132ab[_0x4e45ca(0x24c)]&&this[_0x4e45ca(0x39b)](_0x506f4a);}),this[_0x50056b(0x1a4)](this[_0x50056b(0x39f)][_0x50056b(0x31e)](_0x454af5=>{const _0x49af56=_0x50056b,_0x59f745=_0x454af5['params'];_0x59f745!=null&&this[_0x49af56(0x3b9)]&&_0x454af5['id']===_0x4d434a['id']&&_0x59f745['unitId']===this[_0x49af56(0x1c8)]&&_0x59f745[_0x49af56(0x3f4)]===!0x1&&this['_updateLocalCursor'](_0x59f745[_0x49af56(0x196)]);})),this[_0x50056b(0x24b)][_0x50056b(0x189)][_0x50056b(0x21f)](_0x516ad9(this[_0x50056b(0x3b2)]))[_0x50056b(0x253)](_0x3b9dd4=>{const _0x5758fe=_0x50056b;if((_0x3b9dd4==null?void 0x0:_0x3b9dd4[_0x5758fe(0x1c8)])!==this[_0x5758fe(0x1c8)])return;const _0x1bbb14={'eventID':_0x2132ab[_0x5758fe(0x20e)],'data':_0x3b9dd4};this[_0x5758fe(0x1f8)](_0x1bbb14);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x5908c3=>{const _0x183e02=_0x50056b;if(_0x5908c3[_0x183e02(0x46e)]==null)return;const _0x1921ed=_0x5908c3[_0x183e02(0x46e)];if(_0x5908c3['id']!==_0x417fd3['id']||_0x1921ed['unitId']!==this[_0x183e02(0x1c8)])return;const _0x3decad={'id':'doc.mutation.rich-text-editing','params':_0x1921ed},_0x4948f2=this[_0x183e02(0x448)];for(const [_0x6780e,_0x22fc21]of _0x4948f2){const _0x8d9832={'id':_0x183e02(0x19a),'params':{'unitId':this[_0x183e02(0x1c8)],'actions':null,'textRanges':_0x22fc21[_0x183e02(0x196)]}},_0x140674=this[_0x183e02(0x47f)][_0x183e02(0x240)](_0x3decad,_0x8d9832,!0x1);if(_0x4e913c(_0x140674))throw _0x140674[_0x183e02(0x3d0)];_0x4948f2[_0x183e02(0x1ef)](_0x6780e,{..._0x22fc21,'ranges':_0x140674[_0x183e02(0x3ec)]['params'][_0x183e02(0x26e)]});}queueMicrotask(()=>{const _0x11a8e1=_0x183e02;this[_0x11a8e1(0x482)][_0x11a8e1(0x3bf)](_0x4948f2);});})));}['_onCursorUpdate'](_0x252da7){const _0x36edaa=_0x4d300e;var _0x409315,_0x11048b;const {memberID:_0x317178,selection:_0x4fb8fd}=_0x252da7[_0x36edaa(0x3eb)],_0x344d44=yn(_0x4fb8fd),_0x1acbd3=(_0x11048b=(_0x409315=this[_0x36edaa(0x29b)][_0x36edaa(0x3a2)](this['unitID'],_0x317178))==null?void 0x0:_0x409315[_0x36edaa(0x326)])!=null?_0x11048b:_0x36edaa(0x178),_0x3b67fa={'color':this['_colorAssignService'][_0x36edaa(0x1d4)](_0x317178),'name':_0x1acbd3,'ranges':_0x344d44},_0x133626=this[_0x36edaa(0x448)];_0x133626['set'](_0x317178,_0x3b67fa),this[_0x36edaa(0x482)][_0x36edaa(0x3bf)](_0x133626);}['_onCursorDelete'](_0x48342a){const _0x194441=_0x4d300e,{memberID:_0x4650b1}=_0x48342a['data'],_0x46ea27=this[_0x194441(0x448)];_0x46ea27[_0x194441(0x284)](_0x4650b1),this[_0x194441(0x482)][_0x194441(0x3bf)](_0x46ea27);}[_0x4d300e(0x325)](){const _0x228377=_0x4d300e;var _0xee1c33;if(this[_0x228377(0x3b9)]=!0x0,((_0xee1c33=this[_0x228377(0x229)][_0x228377(0x17a)]())==null?void 0x0:_0xee1c33[_0x228377(0x419)]())!==this['unitID'])return;const _0x474a64=this[_0x228377(0x3ef)][_0x228377(0x23f)](_0x1be661)['getSelections'](),_0x8d6383=_0x474a64==null?void 0x0:_0x474a64[_0x228377(0x233)](_0x4e7f89);Array[_0x228377(0x1ff)](_0x8d6383)&&_0x8d6383[_0x228377(0x1b8)]>0x0&&this[_0x228377(0x479)](_0x8d6383);}[_0x4d300e(0x435)](){const _0x15484b=_0x4d300e;this[_0x15484b(0x3b9)]=!0x1;}};mt=qn([q(0x2,_0x5ee80d(_0x1fa2c4)),q(0x3,_0x5ee80d(At)),q(0x4,_0x5ee80d(ee)),q(0x5,_0x5ee80d(Mt)),q(0x6,_0x18339f),q(0x7,_0x54cb93),q(0x8,_0x11685c)],mt);var tr=Object['defineProperty'],sr=Object[_0x4d300e(0x368)],ir=(_0x7b8311,_0x492082,_0x2ceb3,_0x2bc2b2)=>{const _0x730251=_0x4d300e;for(var _0x142d8d=_0x2bc2b2>0x1?void 0x0:_0x2bc2b2?sr(_0x492082,_0x2ceb3):_0x492082,_0x1b7aec=_0x7b8311[_0x730251(0x1b8)]-0x1,_0x3cd29d;_0x1b7aec>=0x0;_0x1b7aec--)(_0x3cd29d=_0x7b8311[_0x1b7aec])&&(_0x142d8d=(_0x2bc2b2?_0x3cd29d(_0x492082,_0x2ceb3,_0x142d8d):_0x3cd29d(_0x142d8d))||_0x142d8d);return _0x2bc2b2&&_0x142d8d&&tr(_0x492082,_0x2ceb3,_0x142d8d),_0x142d8d;},st=(_0x2d1bd0,_0x18d997)=>(_0x169da3,_0x30b167)=>_0x18d997(_0x169da3,_0x30b167,_0x2d1bd0);let ue=class extends _0x523d01{constructor(_0x45c240,_0x1a639d,_0x11c8a2){const _0x54902b=_0x4d300e;super(),l(this,'_entities',new Map()),l(this,_0x54902b(0x23e),new _0x4b8ba0()),(this[_0x54902b(0x229)]=_0x45c240,this['_injector']=_0x1a639d,this[_0x54902b(0x235)]=_0x11c8a2,this[_0x54902b(0x1e2)]());}[_0x4d300e(0x27d)](){const _0x2a5bfb=_0x4d300e;super[_0x2a5bfb(0x27d)](),this[_0x2a5bfb(0x23e)]['complete'](),this[_0x2a5bfb(0x3f1)]['forEach'](_0x12aa77=>_0x12aa77[_0x2a5bfb(0x27d)]());}[_0x4d300e(0x2a5)](_0x27fae3){const _0x9ca9bc=_0x4d300e;return this[_0x9ca9bc(0x3f1)][_0x9ca9bc(0x181)](_0x27fae3)?this['_entities'][_0x9ca9bc(0x23f)](_0x27fae3)[_0x9ca9bc(0x364)]:this[_0x9ca9bc(0x23e)][_0x9ca9bc(0x21f)](_0x2e93ef(_0xf61ace=>_0xf61ace[_0x9ca9bc(0x1c8)]===_0x27fae3),_0x3ed5d8(_0x471c00=>_0x471c00[_0x9ca9bc(0x364)]));}[_0x4d300e(0x1e2)](){const _0x4ef30e=_0x4d300e;this[_0x4ef30e(0x229)]['getTypeOfUnitAdded$'](_0x590cf1['UNIVER_SHEET'])[_0x4ef30e(0x21f)](_0x516ad9(this[_0x4ef30e(0x3b2)]))['subscribe'](async _0x133b19=>{const _0x4e9a97=_0x4ef30e,_0x431316=_0x133b19['getUnitId'](),_0x1ae891=await this['_startSheetCollabCursor'](_0x431316);this['_entityInit$']['next'](_0x1ae891),this[_0x4e9a97(0x3f1)][_0x4e9a97(0x1ef)](_0x431316,_0x1ae891);}),this[_0x4ef30e(0x229)][_0x4ef30e(0x2dc)](_0x590cf1[_0x4ef30e(0x2aa)])[_0x4ef30e(0x21f)](_0x516ad9(this[_0x4ef30e(0x3b2)]))[_0x4ef30e(0x21f)](_0x2e93ef(_0x2459c5=>!_0x2459c5[_0x4ef30e(0x419)]()[_0x4ef30e(0x47d)]('__')))[_0x4ef30e(0x253)](async _0x2b3b27=>{const _0x4eecdd=_0x4ef30e,_0x116da0=_0x2b3b27[_0x4eecdd(0x419)](),_0x55d9c9=await this[_0x4eecdd(0x43b)](_0x116da0);this['_entityInit$'][_0x4eecdd(0x3bf)](_0x55d9c9),this[_0x4eecdd(0x3f1)][_0x4eecdd(0x1ef)](_0x116da0,_0x55d9c9);}),_0x1b5032(this[_0x4ef30e(0x229)][_0x4ef30e(0x376)](_0x590cf1[_0x4ef30e(0x2aa)]),this[_0x4ef30e(0x229)][_0x4ef30e(0x376)](_0x590cf1[_0x4ef30e(0x282)]))[_0x4ef30e(0x21f)](_0x516ad9(this[_0x4ef30e(0x3b2)]))['subscribe'](_0x4b02f0=>{const _0x5a55a4=_0x4ef30e,_0x3680aa=_0x4b02f0[_0x5a55a4(0x419)](),_0x3ff37b=this[_0x5a55a4(0x3f1)]['get'](_0x3680aa);_0x3ff37b&&(_0x3ff37b['dispose'](),this['_entities']['delete'](_0x3680aa));});}async[_0x4d300e(0x1ba)](_0x3a3686){const _0x1a97d6=_0x4d300e,_0x30853c=await this['_collabSessionService']['requireSession'](_0x3a3686),_0x5c7bc5=this[_0x1a97d6(0x3ef)][_0x1a97d6(0x220)](gt,_0x3a3686,_0x30853c);return _0x5c7bc5['init'](),_0x5c7bc5;}async[_0x4d300e(0x43b)](_0x15a7f3){const _0x4f777c=_0x4d300e,_0x2c397f=await this[_0x4f777c(0x235)][_0x4f777c(0x195)](_0x15a7f3),_0x2d752a=this[_0x4f777c(0x3ef)][_0x4f777c(0x220)](mt,_0x15a7f3,_0x2c397f);return _0x2d752a[_0x4f777c(0x324)](),_0x2d752a;}};ue=ir([_0x571911(_0x4f7ed2[_0x4d300e(0x30e)],ue),st(0x0,_0x54cb93),st(0x1,_0x5ee80d(_0x1fa2c4)),st(0x2,_0x5ee80d(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,nr=0x5;function rr(_0xf9d83,_0x51d61e){const _0x564ff7=_0x4d300e;let {radius:_0x16576d,width:_0x4bcc24,height:_0x38d29e}=_0x51d61e;_0x16576d=_0x16576d!=null?_0x16576d:0x0,_0x4bcc24=_0x4bcc24!=null?_0x4bcc24:0x1e,_0x38d29e=_0x38d29e!=null?_0x38d29e:0x1e;let _0x177f59=0x0,_0x3417fc=0x0,_0x233d2b=0x0;_0x177f59=_0x3417fc=_0x233d2b=Math['min'](_0x16576d,_0x4bcc24/0x2,_0x38d29e/0x2),_0xf9d83['beginPath'](),_0xf9d83[_0x564ff7(0x2e4)](_0x177f59,0x0),_0xf9d83[_0x564ff7(0x361)](_0x4bcc24-_0x3417fc,0x0),_0xf9d83['arc'](_0x4bcc24-_0x3417fc,_0x3417fc,_0x3417fc,Math['PI']*0x3/0x2,0x0,!0x1),_0xf9d83[_0x564ff7(0x361)](_0x4bcc24,_0x38d29e-_0x233d2b),_0xf9d83[_0x564ff7(0x3b0)](_0x4bcc24-_0x233d2b,_0x38d29e-_0x233d2b,_0x233d2b,0x0,Math['PI']/0x2,!0x1),_0xf9d83[_0x564ff7(0x361)](0x0,_0x38d29e),_0xf9d83[_0x564ff7(0x361)](0x0,_0x177f59),_0xf9d83[_0x564ff7(0x3b0)](_0x177f59,_0x177f59,_0x177f59,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xf9d83[_0x564ff7(0x1b6)](),_0x51d61e[_0x564ff7(0x23a)]&&(_0xf9d83['save'](),_0xf9d83[_0x564ff7(0x3d2)]=_0x51d61e[_0x564ff7(0x23a)],_0x51d61e[_0x564ff7(0x1f0)]==='evenodd'?_0xf9d83[_0x564ff7(0x23a)]('evenodd'):_0xf9d83[_0x564ff7(0x23a)](),_0xf9d83[_0x564ff7(0x27b)]());}class ze extends _0x27910d{constructor(_0x543363,_0x3bb6d6){const _0x5db042=_0x4d300e;super(_0x543363,_0x3bb6d6),l(this,_0x5db042(0x44f)),l(this,_0x5db042(0x2a6)),(this[_0x5db042(0x44f)]=_0x3bb6d6==null?void 0x0:_0x3bb6d6[_0x5db042(0x44f)],this[_0x5db042(0x2a6)]=_0x3bb6d6==null?void 0x0:_0x3bb6d6['text']);}static[_0x4d300e(0x1cf)](_0x32bd85,_0x416704){const _0x3a8b77=_0x4d300e,{text:_0x4b3563,color:_0x3c9cf0}=_0x416704;_0x32bd85[_0x3a8b77(0x2eb)](),_0x32bd85[_0x3a8b77(0x3d1)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5a60ff=_0x32bd85[_0x3a8b77(0x2b1)](_0x4b3563)[_0x3a8b77(0x244)],_0x4211c4=Math['min'](_0x5a60ff+0x2*it,qt);rr(_0x32bd85,{'height':Oe,'radius':0x4,'width':_0x4211c4,'fill':_0x3c9cf0,'evented':!0x1}),_0x32bd85[_0x3a8b77(0x3d2)]='#FFF';const _0x32adf0=it,_0x4de812=Oe-nr,_0x1c7c05=qt-0x2*it;if(_0x5a60ff>_0x1c7c05){let _0x3d9af1='',_0x46fb05=0x0;for(const _0x56dd0f of _0x4b3563){const _0x1f4fa8=_0x32bd85[_0x3a8b77(0x2b1)](_0x56dd0f)[_0x3a8b77(0x244)];if(_0x46fb05+_0x1f4fa8<=_0x1c7c05-_0x32bd85[_0x3a8b77(0x2b1)](_0x3a8b77(0x429))[_0x3a8b77(0x244)])_0x3d9af1+=_0x56dd0f,_0x46fb05+=_0x1f4fa8;else{_0x3d9af1+=_0x3a8b77(0x429);break;}}_0x32bd85[_0x3a8b77(0x337)](_0x3d9af1,_0x32adf0,_0x4de812);}else _0x32bd85[_0x3a8b77(0x337)](_0x4b3563,_0x32adf0,_0x4de812);_0x32bd85['restore']();}['_draw'](_0x3bf34d){const _0x1f7947=_0x4d300e;ze[_0x1f7947(0x1cf)](_0x3bf34d,this);}}const or=0x1,ar=1.5;class cr extends _0x27910d{constructor(_0x23f86c,_0x56f09c){const _0x57c00f=_0x4d300e;super(_0x23f86c,_0x56f09c),l(this,_0x57c00f(0x2c7)),l(this,_0x57c00f(0x30d),!0x1),l(this,_0x57c00f(0x31a)),l(this,_0x57c00f(0x1c7),''),l(this,'_labelPosition','top'),(_0x56f09c&&this[_0x57c00f(0x3cd)](_0x56f09c),this[_0x57c00f(0x317)][_0x57c00f(0x414)](()=>this[_0x57c00f(0x3cd)]({'hovered':!0x0})),this[_0x57c00f(0x430)]['subscribeEvent'](()=>this[_0x57c00f(0x3cd)]({'hovered':!0x1})));}[_0x4d300e(0x3cd)](_0x29ab85){const _0x100b78=_0x4d300e;var _0x4bd2fb,_0x37b0b3,_0x2b3e69,_0x3546df,_0x597ea0;this[_0x100b78(0x2c7)]=(_0x4bd2fb=_0x29ab85[_0x100b78(0x44f)])!=null?_0x4bd2fb:this[_0x100b78(0x2c7)],this[_0x100b78(0x30d)]=(_0x37b0b3=_0x29ab85[_0x100b78(0x343)])!=null?_0x37b0b3:this[_0x100b78(0x30d)],this['_range']=(_0x2b3e69=_0x29ab85[_0x100b78(0x3d3)])!=null?_0x2b3e69:this[_0x100b78(0x31a)],this[_0x100b78(0x1c7)]=(_0x3546df=_0x29ab85['name'])!=null?_0x3546df:this[_0x100b78(0x1c7)],this[_0x100b78(0x237)]=(_0x597ea0=_0x29ab85[_0x100b78(0x1bb)])!=null?_0x597ea0:this[_0x100b78(0x237)],this[_0x100b78(0x287)]({'width':_0x29ab85[_0x100b78(0x244)],'height':_0x29ab85[_0x100b78(0x32c)]});}[_0x4d300e(0x272)](_0x43038b){const _0x496d6b=_0x4d300e,{row:_0xde55eb,column:_0x1250d8}=_0x43038b;if(_0xde55eb>=this[_0x496d6b(0x31a)][_0x496d6b(0x485)]&&_0xde55eb<=this['_range'][_0x496d6b(0x1d6)]&&_0x1250d8>=this['_range'][_0x496d6b(0x352)]&&_0x1250d8<=this[_0x496d6b(0x31a)][_0x496d6b(0x474)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x496d6b(0x3cd)]({'hovered':!0x1});}['triggerDblclick'](_0xef4287){return!0x1;}[_0x4d300e(0x1d5)](_0x2d83fc){const _0x422a79=_0x4d300e;_0x45d0de[_0x422a79(0x1cf)](_0x2d83fc,{'width':this['width'],'height':this[_0x422a79(0x32c)],'strokeWidth':ar,'stroke':this['_color'],'evented':!0x1}),this[_0x422a79(0x30d)]&&(_0x2d83fc[_0x422a79(0x2eb)](),_0x2d83fc[_0x422a79(0x245)](0x1,0x0,0x0,0x1,this[_0x422a79(0x244)],this['_labelPosition']===_0x422a79(0x3f2)?0x0:-Oe),ze[_0x422a79(0x1cf)](_0x2d83fc,{'text':this[_0x422a79(0x1c7)],'color':this['_color']}),_0x2d83fc[_0x422a79(0x27b)]());}}var hr=Object['defineProperty'],lr=Object['getOwnPropertyDescriptor'],_r=(_0x86396b,_0x50055a,_0x493f1e,_0x2a945a)=>{const _0x1ebddb=_0x4d300e;for(var _0x4a518d=_0x2a945a>0x1?void 0x0:_0x2a945a?lr(_0x50055a,_0x493f1e):_0x50055a,_0x5813d4=_0x86396b[_0x1ebddb(0x1b8)]-0x1,_0x2fa6ae;_0x5813d4>=0x0;_0x5813d4--)(_0x2fa6ae=_0x86396b[_0x5813d4])&&(_0x4a518d=(_0x2a945a?_0x2fa6ae(_0x50055a,_0x493f1e,_0x4a518d):_0x2fa6ae(_0x4a518d))||_0x4a518d);return _0x2a945a&&_0x4a518d&&hr(_0x50055a,_0x493f1e,_0x4a518d),_0x4a518d;},Me=(_0x586a21,_0x346d07)=>(_0x2bada6,_0x251277)=>_0x346d07(_0x2bada6,_0x251277,_0x586a21);const ur=0x1389;let $e=class extends _0x523d01{constructor(_0x45cff6,_0x41384f,_0x2c76e9,_0x4bce81){const _0x221511=_0x4d300e;super(),l(this,_0x221511(0x3cc),new Set()),l(this,'_lastPointer',null),(this[_0x221511(0x214)]=_0x45cff6,this[_0x221511(0x229)]=_0x41384f,this[_0x221511(0x478)]=_0x2c76e9,this[_0x221511(0x264)]=_0x4bce81,this[_0x221511(0x1e2)]());}get[_0x4d300e(0x1bd)](){const _0x227944=_0x4d300e;return this[_0x227944(0x478)][_0x227944(0x299)](this[_0x227944(0x229)][_0x227944(0x169)](_0x590cf1[_0x227944(0x282)])[_0x227944(0x419)]())[_0x227944(0x171)](_0x27eca1);}get[_0x4d300e(0x188)](){const _0x1ce06c=_0x4d300e;return this[_0x1ce06c(0x229)]['getCurrentUnitForType'](_0x590cf1[_0x1ce06c(0x282)])[_0x1ce06c(0x419)]();}[_0x4d300e(0x1e2)](){const _0x2c1e80=_0x4d300e;this[_0x2c1e80(0x1bd)][_0x2c1e80(0x27f)]['pipe'](_0xa17723(this[_0x2c1e80(0x3b2)]),_0x2e181c(_0x12d989=>{const _0x6b48b0=_0x2c1e80;if(_0x12d989){const _0x3aa32c=_0x12d989['sheetId'];return _0x18a14e(this[_0x6b48b0(0x214)][_0x6b48b0(0x2a5)](this[_0x6b48b0(0x188)]),this['_themeService'][_0x6b48b0(0x212)])['pipe'](_0x50cc5c(([_0xa99075,_0x39dacf])=>{const _0x3738bb=new Map();return _0xa99075['forEach']((_0x1dcdce,_0x4fa4e5)=>{const _0xbcdd87=_0x3069;if(_0x1dcdce[_0xbcdd87(0x273)]===_0x3aa32c){const _0x28b8bc={..._0x1dcdce};_0x28b8bc['color']=_0x39dacf[_0x1dcdce[_0xbcdd87(0x44f)]],_0x3738bb[_0xbcdd87(0x1ef)](_0x4fa4e5,_0x28b8bc);}}),{'skeleton':_0x12d989,'cursors':_0x3738bb};}));}return _0xd6321({'skeleton':null,'cursors':new Map()});}))[_0x2c1e80(0x253)](({skeleton:_0x3091f8,cursors:_0x419bb1})=>{const _0x250832=_0x2c1e80;this[_0x250832(0x400)](),_0x3091f8&&this[_0x250832(0x3a9)](_0x3091f8,_0x419bb1);}),this[_0x2c1e80(0x1bd)]['currentSkeleton$'][_0x2c1e80(0x253)](_0x545114=>{const _0x3b8b7f=_0x2c1e80;if(_0x545114==null)return;const {skeleton:_0x335d1a}=_0x545114,_0x55ec0a=this[_0x3b8b7f(0x478)][_0x3b8b7f(0x299)](this[_0x3b8b7f(0x188)]),{scene:_0x4682c3}=_0x55ec0a;_0x4682c3[_0x3b8b7f(0x203)]['subscribeEvent'](_0x3a382a(_0x10a16d=>{const _0x4b5da4=_0x3b8b7f;var _0x4e1245,_0x4ee5c0;const {offsetX:_0x1ce558,offsetY:_0x5f5ca6}=_0x10a16d,{x:_0x3089d0,y:_0x436cf4}=_0x4682c3[_0x4b5da4(0x323)](_0x24d450[_0x4b5da4(0x306)]([_0x1ce558,_0x5f5ca6])),{scaleX:_0x78d66e,scaleY:_0x32a77c}=_0x4682c3[_0x4b5da4(0x2ee)](),_0x5d7421=_0x4682c3['getViewport'](_0x9ec2a1[_0x4b5da4(0x1dc)]),_0x35d4de=_0x4682c3[_0x4b5da4(0x45f)](_0x24d450[_0x4b5da4(0x306)]([_0x3089d0,_0x436cf4]),_0x5d7421),_0x2b1dd2=_0x335d1a['getCellPositionByOffset'](_0x1ce558,_0x5f5ca6,_0x78d66e,_0x32a77c,_0x35d4de);((_0x4e1245=this[_0x4b5da4(0x2b3)])==null?void 0x0:_0x4e1245[_0x4b5da4(0x366)])===_0x2b1dd2['column']&&((_0x4ee5c0=this[_0x4b5da4(0x2b3)])==null?void 0x0:_0x4ee5c0[_0x4b5da4(0x19b)])===_0x2b1dd2[_0x4b5da4(0x19b)]||this[_0x4b5da4(0x3cc)][_0x4b5da4(0x2b7)](_0x2f32fb=>{_0x2f32fb['onMouseMove'](_0x2b1dd2);});},0x64));});}[_0x4d300e(0x3a9)](_0x265701,_0x47847c){const _0x47d510=_0x4d300e;var _0x1217f7;const _0x4858ad=(_0x1217f7=this[_0x47d510(0x1bd)]['getCurrent']())==null?void 0x0:_0x1217f7['skeleton'];if(!_0x4858ad)return;const _0x945392=this['_getSheetObject']();if(!_0x945392)return;this['_cursors'][_0x47d510(0x2b7)](_0x19e57d=>{const _0x19247a=_0x47d510;_0x19e57d[_0x19247a(0x38f)]();});const {scene:_0x263f38}=_0x945392,_0x5842f3=dr(Array['from'](_0x47847c[_0x47d510(0x1ac)]()))[_0x47d510(0x233)](_0x24e24=>{const {color:_0x21a787,range:_0x406bce,name:_0x5c9858,selection:_0x213808,sheetID:_0x36c970}=_0x24e24,{startColumn:_0x58c0d0,startRow:_0xbf0a7,endColumn:_0x3060f0,endRow:_0x1772cd}=_0x406bce,_0x5e5309=_0x2d7856(_0xbf0a7,_0x58c0d0,_0x263f38,_0x4858ad),_0x17998d=_0x2d7856(_0x1772cd,_0x3060f0,_0x263f38,_0x4858ad),{columnHeaderHeightAndMarginTop:_0x47f053}=_0x4858ad,{startX:_0x3da736,startY:_0x5cc589}=_0x5e5309,{endX:_0x39100b,endY:_0x1d25c8}=_0x17998d,_0x20698a=_0x39100b-_0x3da736,_0x434d3d=_0x1d25c8-_0x5cc589,_0x493fa2={'labelPosition':_0x5cc589-_0x47f053>=Oe?'top':'bottom','sheetID':_0x36c970,'range':_0x406bce,'color':_0x21a787,'name':_0x5c9858,'selection':_0x213808,'left':_0x3da736,'top':_0x5cc589,'width':_0x20698a,'height':_0x434d3d,'evented':!0x1,'zIndex':ur};return new cr(_0x5c9858,_0x493fa2);});_0x263f38['addObjects'](_0x5842f3,or),this[_0x47d510(0x3cc)]=new Set(_0x5842f3);}[_0x4d300e(0x400)](){const _0x16a011=_0x4d300e;var _0x1a375b;(_0x1a375b=this['_cursors'])==null||_0x1a375b[_0x16a011(0x2b7)](_0x339c3d=>_0x339c3d[_0x16a011(0x27d)]());}['_getSheetObject'](){const _0x86958=_0x4d300e;return _0x5d50ce(this[_0x86958(0x229)],this[_0x86958(0x478)]);}};$e=_r([_0x571911(_0x4f7ed2[_0x4d300e(0x457)],$e),Me(0x0,_0x5ee80d(ue)),Me(0x1,_0x54cb93),Me(0x2,_0x7e7d56),Me(0x3,_0x5ee80d(_0x359dbb))],$e);function dr(_0x1465c4){const _0x3afe16=_0x4d300e,_0x4ac7e5=new Map();return _0x1465c4[_0x3afe16(0x2b7)](_0x50496a=>{const _0x182fee=_0x3afe16;if(_0x4ac7e5[_0x182fee(0x181)](_0x50496a[_0x182fee(0x17f)])){const _0x2bb024=_0x4ac7e5[_0x182fee(0x23f)](_0x50496a[_0x182fee(0x17f)]);_0x2bb024['name']+=',\x20'+_0x50496a['name'];}else _0x4ac7e5['set'](_0x50496a[_0x182fee(0x17f)],_0x50496a);}),Array[_0x3afe16(0x303)](_0x4ac7e5['values']());}var A=function(){const _0x454ed7=_0x4d300e;return A=Object[_0x454ed7(0x2af)]||function(_0x123c43){const _0x162b43=_0x454ed7;for(var _0xb6849d,_0x43d5e6=0x1,_0x4c0337=arguments[_0x162b43(0x1b8)];_0x43d5e6<_0x4c0337;_0x43d5e6++){_0xb6849d=arguments[_0x43d5e6];for(var _0x206cd6 in _0xb6849d)Object[_0x162b43(0x36a)][_0x162b43(0x46c)]['call'](_0xb6849d,_0x206cd6)&&(_0x123c43[_0x206cd6]=_0xb6849d[_0x206cd6]);}return _0x123c43;},A[_0x454ed7(0x398)](this,arguments);},fr=function(_0x2d936d,_0x3891cc){const _0x15a48d=_0x4d300e;var _0x457753={};for(var _0x50fb8d in _0x2d936d)Object[_0x15a48d(0x36a)][_0x15a48d(0x46c)]['call'](_0x2d936d,_0x50fb8d)&&_0x3891cc[_0x15a48d(0x423)](_0x50fb8d)<0x0&&(_0x457753[_0x50fb8d]=_0x2d936d[_0x50fb8d]);if(_0x2d936d!=null&&typeof Object[_0x15a48d(0x2a1)]=='function'){for(var _0x459bfc=0x0,_0x50fb8d=Object[_0x15a48d(0x2a1)](_0x2d936d);_0x459bfc<_0x50fb8d[_0x15a48d(0x1b8)];_0x459bfc++)_0x3891cc[_0x15a48d(0x423)](_0x50fb8d[_0x459bfc])<0x0&&Object['prototype'][_0x15a48d(0x40d)][_0x15a48d(0x263)](_0x2d936d,_0x50fb8d[_0x459bfc])&&(_0x457753[_0x50fb8d[_0x459bfc]]=_0x2d936d[_0x50fb8d[_0x459bfc]]);}return _0x457753;},yt=_0x4af26f(function(_0x4a5819,_0x294757){const _0x1c7661=_0x4d300e;var _0x43bdf6=_0x4a5819['icon'],_0x2cb684=_0x4a5819['id'],_0x1ce415=_0x4a5819['className'],_0x53e5f6=_0x4a5819[_0x1c7661(0x367)],_0x50007d=fr(_0x4a5819,[_0x1c7661(0x444),'id',_0x1c7661(0x1ce),'extend']),_0x27397c=_0x1c7661(0x265)[_0x1c7661(0x279)](_0x2cb684,'\x20')[_0x1c7661(0x279)](_0x1ce415||'')['trim'](),_0xf0fb0e=_0x4bbe78('_'[_0x1c7661(0x279)](Sr()));return Ps(_0x43bdf6,''['concat'](_0x2cb684),{'defIds':_0x43bdf6[_0x1c7661(0x434)],'idSuffix':_0xf0fb0e[_0x1c7661(0x29d)]},A({'ref':_0x294757,'className':_0x27397c},_0x50007d),_0x53e5f6);});function Ps(_0x3c5d7d,_0x5ca3ad,_0x2feec3,_0x35bb20,_0x1aefc1){const _0x500dad=_0x4d300e;return _0x3c3c17(_0x3c5d7d['tag'],A(A({'key':_0x5ca3ad},gr(_0x3c5d7d,_0x2feec3,_0x1aefc1)),_0x35bb20),(mr(_0x3c5d7d,_0x2feec3)[_0x500dad(0x288)]||[])[_0x500dad(0x233)](function(_0x12bec4,_0x417520){const _0x4f1c06=_0x500dad;return Ps(_0x12bec4,''[_0x4f1c06(0x279)](_0x5ca3ad,'-')[_0x4f1c06(0x279)](_0x3c5d7d['tag'],'-')[_0x4f1c06(0x279)](_0x417520),_0x2feec3,void 0x0,_0x1aefc1);}));}function gr(_0xc5b4c3,_0x5388b4,_0x12e154){const _0x4fbcb3=_0x4d300e;var _0x20b195=A({},_0xc5b4c3[_0x4fbcb3(0x257)]);_0x12e154!=null&&_0x12e154['colorChannel1']&&_0x20b195[_0x4fbcb3(0x23a)]===_0x4fbcb3(0x19e)&&(_0x20b195[_0x4fbcb3(0x23a)]=_0x12e154[_0x4fbcb3(0x19e)]);var _0x5dd32b=_0x5388b4[_0x4fbcb3(0x434)];return!_0x5dd32b||_0x5dd32b[_0x4fbcb3(0x1b8)]===0x0||(_0xc5b4c3[_0x4fbcb3(0x26d)]===_0x4fbcb3(0x3fc)&&_0x20b195['xlink:href']&&(_0x20b195[_0x4fbcb3(0x382)]=_0x20b195[_0x4fbcb3(0x382)]+_0x5388b4[_0x4fbcb3(0x16f)]),Object[_0x4fbcb3(0x43e)](_0x20b195)['forEach'](function(_0x4b134a){const _0x569a42=_0x4fbcb3;var _0x1b6c7a=_0x4b134a[0x0],_0x1daa17=_0x4b134a[0x1];typeof _0x1daa17==_0x569a42(0x3e9)&&(_0x20b195[_0x1b6c7a]=_0x1daa17[_0x569a42(0x33f)](/url\(#(.*)\)/,_0x569a42(0x3ce)['concat'](_0x5388b4[_0x569a42(0x16f)],')')));})),_0x20b195;}function mr(_0x14b426,_0xb6aeda){const _0x34a679=_0x4d300e;var _0x172344,_0x5b9944=_0xb6aeda[_0x34a679(0x434)];return!_0x5b9944||_0x5b9944[_0x34a679(0x1b8)]===0x0?_0x14b426:_0x14b426[_0x34a679(0x26d)]===_0x34a679(0x32e)&&(!((_0x172344=_0x14b426[_0x34a679(0x288)])===null||_0x172344===void 0x0)&&_0x172344['length'])?A(A({},_0x14b426),{'children':_0x14b426[_0x34a679(0x288)][_0x34a679(0x233)](function(_0x200ca3){const _0x54ba4a=_0x34a679;return typeof _0x200ca3[_0x54ba4a(0x257)]['id']==_0x54ba4a(0x3e9)&&_0x5b9944&&_0x5b9944['indexOf'](_0x200ca3[_0x54ba4a(0x257)]['id'])>-0x1?A(A({},_0x200ca3),{'attrs':A(A({},_0x200ca3[_0x54ba4a(0x257)]),{'id':_0x200ca3['attrs']['id']+_0xb6aeda[_0x54ba4a(0x16f)]})}):_0x200ca3;})}):_0x14b426;}function Sr(){const _0x382bfe=_0x4d300e;return Math[_0x382bfe(0x192)]()['toString'](0x24)[_0x382bfe(0x456)](0x2,0x8);}yt[_0x4d300e(0x281)]='UniverIcon';var vr={'tag':'svg','attrs':{'fill':_0x4d300e(0x481),'viewBox':_0x4d300e(0x3a0),'width':'1em','height':_0x4d300e(0x1f1)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d300e(0x241)},'children':[{'tag':_0x4d300e(0x459),'attrs':{'stroke':_0x4d300e(0x2c6),'d':_0x4d300e(0x202),'strokeLinecap':_0x4d300e(0x28d),'strokeLinejoin':_0x4d300e(0x28d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4d300e(0x1c3),'attrs':{'id':_0x4d300e(0x3ac)},'children':[{'tag':_0x4d300e(0x459),'attrs':{'fill':'#fff','d':_0x4d300e(0x3cb)}}]}]}],'defIds':[_0x4d300e(0x3ac)]},Ns=_0x4af26f(function(_0x7ace9b,_0x36a6ae){const _0x21fb3e=_0x4d300e;return _0x3c3c17(yt,Object[_0x21fb3e(0x2af)]({},_0x7ace9b,{'id':_0x21fb3e(0x2ea),'ref':_0x36a6ae,'icon':vr}));});Ns[_0x4d300e(0x281)]=_0x4d300e(0x420);var pr={'tag':_0x4d300e(0x2a4),'attrs':{'fill':'none','viewBox':_0x4d300e(0x2bd),'width':_0x4d300e(0x1f1),'height':_0x4d300e(0x1f1)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d300e(0x1e6)},'children':[{'tag':_0x4d300e(0x459),'attrs':{'stroke':_0x4d300e(0x2c6),'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':_0x4d300e(0x28d),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4d300e(0x32e),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4d300e(0x459),'attrs':{'fill':'#fff','d':_0x4d300e(0x3cb),'transform':_0x4d300e(0x24a)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ms=_0x4af26f(function(_0x20e496,_0x4fb4a6){const _0x78b26e=_0x4d300e;return _0x3c3c17(yt,Object[_0x78b26e(0x2af)]({},_0x20e496,{'id':'on-line-single','ref':_0x4fb4a6,'icon':pr}));});Ms[_0x4d300e(0x281)]=_0x4d300e(0x217);const Ir='univer-online-status-icon',Er=_0x4d300e(0x193),Cr=_0x4d300e(0x278),br=_0x4d300e(0x44c),Rr=_0x4d300e(0x2a7),ve={'onlineStatusIcon':Ir,'onlineStatusTitle':Er,'onlineStatus':Cr,'online':br,'offline':Rr};function Tr(_0x5648df){const _0x569c88=_0x4d300e;switch(_0x5648df){case P[_0x569c88(0x23c)]:return _0x569c88(0x2bc);case P[_0x569c88(0x286)]:return _0x569c88(0x18f);case P[_0x569c88(0x2b6)]:return _0x569c88(0x2b5);case P[_0x569c88(0x410)]:return _0x569c88(0x374);case P[_0x569c88(0x2da)]:case P[_0x569c88(0x37c)]:case P[_0x569c88(0x3a8)]:return'collabStatus.syncing';case P[_0x569c88(0x495)]:return _0x569c88(0x32b);}}function Or(_0x2e6584){const _0x29438d=_0x4d300e,{status$:_0x3c7ccc}=_0x2e6584,_0x4638df=_0x4758ca(_0x3c7ccc,P[_0x29438d(0x410)]),_0xf181ab=_0x339be7(_0x399826),_0x278d0a=_0x4638df!==P[_0x29438d(0x23c)],_0x333c0b=_0xf181ab['t'](Tr(_0x4638df)),_0x1380c6=_0x493b4a(ve['onlineStatus'],{[ve[_0x29438d(0x2f5)]]:_0x278d0a,[ve[_0x29438d(0x339)]]:!_0x278d0a}),_0x10fe2a=_0x278d0a?_0x408d9c['createElement'](Ms,null):_0x408d9c['createElement'](Ns,null);return _0x408d9c[_0x29438d(0x179)](_0x29438d(0x276),{'className':_0x1380c6},_0x408d9c[_0x29438d(0x179)](_0x29438d(0x276),{'className':ve[_0x29438d(0x24e)]},_0x10fe2a),_0x408d9c[_0x29438d(0x179)]('div',{'className':ve[_0x29438d(0x38b)]},_0x333c0b));}var Dr=Object['defineProperty'],wr=Object[_0x4d300e(0x368)],Pr=(_0x483b2c,_0x22394a,_0x37c62c,_0x40fde9)=>{const _0x567ce5=_0x4d300e;for(var _0xe88b7e=_0x40fde9>0x1?void 0x0:_0x40fde9?wr(_0x22394a,_0x37c62c):_0x22394a,_0x573871=_0x483b2c[_0x567ce5(0x1b8)]-0x1,_0x372619;_0x573871>=0x0;_0x573871--)(_0x372619=_0x483b2c[_0x573871])&&(_0xe88b7e=(_0x40fde9?_0x372619(_0x22394a,_0x37c62c,_0xe88b7e):_0x372619(_0xe88b7e))||_0xe88b7e);return _0x40fde9&&_0xe88b7e&&Dr(_0x22394a,_0x37c62c,_0xe88b7e),_0xe88b7e;},Ae=(_0x25f832,_0x1cfb6d)=>(_0x3f32c1,_0x4c7f38)=>_0x1cfb6d(_0x3f32c1,_0x4c7f38,_0x25f832);let je=class extends _0x277f24{constructor(_0x38774e,_0xb56eb9,_0x22603e,_0x1da0d9){const _0x4c77b8=_0x4d300e;super(),l(this,_0x4c77b8(0x458),new _0x25861f(P[_0x4c77b8(0x410)])),(this['_univerInstanceService']=_0x38774e,this[_0x4c77b8(0x261)]=_0xb56eb9,this[_0x4c77b8(0x3ef)]=_0x22603e,this[_0x4c77b8(0x3fe)]=_0x1da0d9,this[_0x4c77b8(0x184)](),this['_initStatusListener']());}[_0x4d300e(0x184)](){const _0x380a90=_0x4d300e;this['disposeWithMe'](this['_uiPartsService'][_0x380a90(0x46d)](_0x5410b4[_0x380a90(0x36c)],()=>_0x5be459(Nr({'status$':this[_0x380a90(0x458)][_0x380a90(0x1a8)]()}),this[_0x380a90(0x3ef)])));}[_0x4d300e(0x25a)](){const _0x3fcbf7=_0x4d300e;this[_0x3fcbf7(0x1a4)](_0x3505c8(this[_0x3fcbf7(0x229)][_0x3fcbf7(0x2d3)]['pipe'](_0x3ed5d8(()=>{const _0x3b2a37=_0x3fcbf7,_0x64dbf8=this[_0x3b2a37(0x229)][_0x3b2a37(0x17a)]();return _0x64dbf8?this['_collaborationController'][_0x3b2a37(0x1af)](_0x64dbf8['getUnitId']()):_0xd6321(null);}),_0x3ed5d8(_0x1baa1e=>_0x1baa1e?_0x1baa1e[_0x3fcbf7(0x274)]:_0xd6321(P['NOT_COLLAB'])))[_0x3fcbf7(0x253)](_0xf42309=>{const _0x19be3e=_0x3fcbf7;this[_0x19be3e(0x458)]['next'](_0xf42309);})));}};je=Pr([_0x571911(_0x4f7ed2[_0x4d300e(0x30e)],je),Ae(0x0,_0x54cb93),Ae(0x1,_0x573341),Ae(0x2,_0x5ee80d(_0x1fa2c4)),Ae(0x3,_0x5ee80d(Ee))],je);function Nr(_0x3c503d){const {status$:_0x3cf99d}=_0x3c503d;return function(){const _0x260c73=_0x3069;return _0x408d9c[_0x260c73(0x179)](Or,{'status$':_0x3cf99d});};}const As=_0x5add15(_0x4d300e(0x3cf));var Mr=Object[_0x4d300e(0x26c)],Ar=Object[_0x4d300e(0x368)],yr=(_0x245be2,_0x288fa5,_0x5b76b1,_0x1952cd)=>{for(var _0x10e8cb=_0x1952cd>0x1?void 0x0:_0x1952cd?Ar(_0x288fa5,_0x5b76b1):_0x288fa5,_0xc8eb11=_0x245be2['length']-0x1,_0x3c1933;_0xc8eb11>=0x0;_0xc8eb11--)(_0x3c1933=_0x245be2[_0xc8eb11])&&(_0x10e8cb=(_0x1952cd?_0x3c1933(_0x288fa5,_0x5b76b1,_0x10e8cb):_0x3c1933(_0x10e8cb))||_0x10e8cb);return _0x1952cd&&_0x10e8cb&&Mr(_0x288fa5,_0x5b76b1,_0x10e8cb),_0x10e8cb;},ce=(_0x5b183d,_0x2f1fae)=>(_0xc3defb,_0x5cd144)=>_0x2f1fae(_0xc3defb,_0x5cd144,_0x5b183d);let He=class extends _0x523d01{constructor(_0x1bba6d,_0x4b17a6,_0x4ebfb6,_0x3511a8,_0x3b85ee,_0x25cd82){const _0x18accc=_0x4d300e;super(),this[_0x18accc(0x31c)]=_0x1bba6d,this['_logService']=_0x4b17a6,this[_0x18accc(0x39f)]=_0x4ebfb6,this[_0x18accc(0x3d5)]=_0x3511a8,this[_0x18accc(0x3ab)]=_0x3b85ee,_0x25cd82?_0x25cd82==null||_0x25cd82['whenReady']()[_0x18accc(0x415)](()=>this[_0x18accc(0x1e2)]()):(this[_0x18accc(0x439)][_0x18accc(0x238)]('[DataLoaderController]',_0x18accc(0x3ad)),this[_0x18accc(0x1e2)]());}async[_0x4d300e(0x1e2)](){const _0x309c08=_0x4d300e,_0x93fa1f=this[_0x309c08(0x31c)][_0x309c08(0x2b2)](_0x309c08(0x16c)),_0x2dcbcd=this[_0x309c08(0x31c)][_0x309c08(0x2b2)](_0x309c08(0x310));if(!_0x93fa1f||!_0x2dcbcd){this[_0x309c08(0x439)][_0x309c08(0x238)]('[DataLoaderController]',_0x309c08(0x177));return;}switch(Number(_0x2dcbcd)){case H[_0x309c08(0x282)]:{const _0x1bc710=await this[_0x309c08(0x308)](_0x93fa1f);this[_0x309c08(0x1b4)](_0x1bc710);break;}case H[_0x309c08(0x2aa)]:{await this[_0x309c08(0x373)](_0x93fa1f);break;}default:{this[_0x309c08(0x439)]['error'](_0x309c08(0x425),_0x309c08(0x447));break;}}}async[_0x4d300e(0x1b4)](_0x489565){const _0x33e65b=_0x4d300e;await this[_0x33e65b(0x393)](_0x489565),_0x489565[_0x33e65b(0x201)][_0x33e65b(0x21f)](_0x516ad9(this[_0x33e65b(0x3b2)]))['subscribe'](_0x3b4c85=>{const _0x21ce1f=_0x33e65b;_0x3b4c85&&this[_0x21ce1f(0x1b7)](_0x3b4c85);}),this['_urlService']['urlChange$'][_0x33e65b(0x21f)](_0x516ad9(this[_0x33e65b(0x3b2)]))[_0x33e65b(0x253)](()=>this['_updateSubUnitFromURLParams'](_0x489565));}[_0x4d300e(0x1b7)](_0x2b681e,_0x10dfd2=!0x1){const _0x50ebcd=_0x4d300e,_0x367651=this['_urlService'][_0x50ebcd(0x2b2)](_0x50ebcd(0x275));_0x2b681e['getSheetId']()!==_0x367651&&this[_0x50ebcd(0x31c)][_0x50ebcd(0x3a5)](_0x50ebcd(0x275),_0x2b681e[_0x50ebcd(0x315)](),_0x10dfd2);}async[_0x4d300e(0x393)](_0x29d75a){const _0x3b287e=_0x4d300e;var _0x22c79a;const _0x2498bf=this['_urlService'][_0x3b287e(0x2b2)](_0x3b287e(0x275));if(!_0x2498bf||!_0x29d75a[_0x3b287e(0x40b)](_0x2498bf)){const _0x49b2a7=_0x29d75a[_0x3b287e(0x403)]()[0x0],_0x3d41ed=_0x29d75a[_0x3b287e(0x40b)](_0x49b2a7);if(!_0x3d41ed)return;this[_0x3b287e(0x1b7)](_0x3d41ed,!0x0),await this[_0x3b287e(0x39f)][_0x3b287e(0x1fb)](_0x14436f['id'],{'unitId':_0x29d75a['getUnitId'](),'subUnitId':_0x49b2a7});return;}((_0x22c79a=_0x29d75a['getActiveSheet']())==null?void 0x0:_0x22c79a['getSheetId']())!==_0x2498bf&&await this[_0x3b287e(0x39f)]['executeCommand'](_0x14436f['id'],{'unitId':_0x29d75a[_0x3b287e(0x419)](),'subUnitId':_0x2498bf});}async['_loadSheet'](_0x5ee11a){const _0x2d8e32=_0x4d300e;let _0x557f31=0x0;const _0x5c19b3=await this['_localCacheService'][_0x2d8e32(0x234)](_0x5ee11a);return _0x5c19b3&&(_0x5c19b3[_0x2d8e32(0x388)]||_0x5c19b3[_0x2d8e32(0x2ff)]['length']!==0x0)&&(_0x557f31=_0x5c19b3['rev']),_0x557f31===0x0&&this[_0x2d8e32(0x439)][_0x2d8e32(0x238)](_0x2d8e32(0x425),_0x2d8e32(0x252)),this[_0x2d8e32(0x3ab)][_0x2d8e32(0x2cf)](_0x5ee11a,_0x557f31);}async['_loadDoc'](_0x38f99e){const _0x527f27=_0x4d300e;let _0x136835=0x0;const _0x3ad769=await this[_0x527f27(0x3d5)][_0x527f27(0x234)](_0x38f99e);return _0x3ad769&&(_0x3ad769['awaitingChangeset']||_0x3ad769[_0x527f27(0x2ff)][_0x527f27(0x1b8)]!==0x0)&&(_0x136835=_0x3ad769[_0x527f27(0x1f5)]),_0x136835===0x0&&this[_0x527f27(0x439)]['debug'](_0x527f27(0x425),_0x527f27(0x252)),this[_0x527f27(0x3ab)][_0x527f27(0x47a)](_0x38f99e,_0x136835);}};He=yr([_0x571911(_0x4f7ed2['Starting'],He),ce(0x0,As),ce(0x1,_0x1546f9),ce(0x2,_0x11685c),ce(0x3,_0x5ee80d(D)),ce(0x4,_0x5ee80d(_0x49bc92)),ce(0x5,_0x23081c(_0x4e1b40))],He);var Ur=Object[_0x4d300e(0x26c)],Lr=Object[_0x4d300e(0x368)],$r=(_0x2499d9,_0x4a7fda,_0x22a4a9,_0x2726a7)=>{const _0x2657c2=_0x4d300e;for(var _0x139ebf=_0x2726a7>0x1?void 0x0:_0x2726a7?Lr(_0x4a7fda,_0x22a4a9):_0x4a7fda,_0x1f125d=_0x2499d9[_0x2657c2(0x1b8)]-0x1,_0x108784;_0x1f125d>=0x0;_0x1f125d--)(_0x108784=_0x2499d9[_0x1f125d])&&(_0x139ebf=(_0x2726a7?_0x108784(_0x4a7fda,_0x22a4a9,_0x139ebf):_0x108784(_0x139ebf))||_0x139ebf);return _0x2726a7&&_0x139ebf&&Ur(_0x4a7fda,_0x22a4a9,_0x139ebf),_0x139ebf;},Qt=(_0x5de6b2,_0xc2c54d)=>(_0x27ee1a,_0x1fedc5)=>_0xc2c54d(_0x27ee1a,_0x1fedc5,_0x5de6b2);const jr=_0x4d300e(0x35c),Hr=_0x4d300e(0x2fb);let xe=class extends _0x277f24{constructor(_0x30a239,_0xbb970c){const _0x28850e=_0x4d300e;super(),this[_0x28850e(0x229)]=_0x30a239,this[_0x28850e(0x40e)]=_0xbb970c,this[_0x28850e(0x1e2)]();}['_init'](){const _0x1de34f=_0x4d300e;this[_0x1de34f(0x1a4)](_0x3505c8(this[_0x1de34f(0x229)][_0x1de34f(0x2d3)][_0x1de34f(0x253)](()=>{const _0x526b4d=_0x1de34f;var _0x4a2d98;const _0x3977e4=this[_0x526b4d(0x229)][_0x526b4d(0x17a)]();let _0x29326f=(_0x4a2d98=this['_configService']['getConfig'](jr))!=null?_0x4a2d98:Hr;_0x3977e4 instanceof _0x26b2b6&&(_0x29326f=_0x3977e4[_0x526b4d(0x326)]),document['title']=_0x29326f;})));}};xe=$r([_0x571911(_0x4f7ed2['Ready'],xe),Qt(0x0,_0x54cb93),Qt(0x1,_0xf370fc)],xe);var xr=Object[_0x4d300e(0x26c)],Fr=Object[_0x4d300e(0x368)],Br=(_0xb3662b,_0x1aacbb,_0x4f59fc,_0x2ba075)=>{for(var _0x1a2246=_0x2ba075>0x1?void 0x0:_0x2ba075?Fr(_0x1aacbb,_0x4f59fc):_0x1aacbb,_0x4e04bd=_0xb3662b['length']-0x1,_0x2adb35;_0x4e04bd>=0x0;_0x4e04bd--)(_0x2adb35=_0xb3662b[_0x4e04bd])&&(_0x1a2246=(_0x2ba075?_0x2adb35(_0x1aacbb,_0x4f59fc,_0x1a2246):_0x2adb35(_0x1a2246))||_0x1a2246);return _0x2ba075&&_0x1a2246&&xr(_0x1aacbb,_0x4f59fc,_0x1a2246),_0x1a2246;},es=(_0x57afac,_0x5739e8)=>(_0x5c2a96,_0x4348db)=>_0x5739e8(_0x5c2a96,_0x4348db,_0x57afac);let St=class{constructor(_0x35aa80,_0x2b4bc8){const _0x4db603=_0x4d300e;this['_configService']=_0x35aa80,this[_0x4db603(0x40f)]=_0x2b4bc8;}async[_0x4d300e(0x345)](_0x42681b,_0x89f599){const _0x5e159e=_0x4d300e;var _0x49926b;const {unitID:_0x433c06,type:_0x32ca52,revision:_0x2adea6=0x0}=_0x89f599,_0x110fb2=this['_getSnapshotAPIPrefix']()+'/'+_0x32ca52+_0x5e159e(0x465)+_0x433c06+_0x5e159e(0x3ee)+(_0x2adea6===0x1?0x0:_0x2adea6),_0x25becc=(await this[_0x5e159e(0x40f)][_0x5e159e(0x23f)](_0x110fb2))[_0x5e159e(0x432)],_0x45c252=(_0x49926b=_0x25becc[_0x5e159e(0x3e3)])==null?void 0x0:_0x49926b[_0x5e159e(0x31f)];if(_0x45c252){const _0x40ecd1=_0x45c252==null?void 0x0:_0x45c252[_0x5e159e(0x1fc)],_0x5c515d=_0x19960f['encode'](_0x53efc0(_0x40ecd1));_0x45c252['originalMeta']=_0x5c515d,Object[_0x5e159e(0x43e)](_0x45c252[_0x5e159e(0x3a7)])[_0x5e159e(0x2b7)](([,_0x1b5745])=>{const _0x404789=_0x5e159e,_0x3135a7=_0x1b5745[_0x404789(0x1fc)],_0x14018d=_0x19960f[_0x404789(0x1eb)](_0x53efc0(_0x3135a7));_0x1b5745[_0x404789(0x1fc)]=_0x14018d;});}return _0x25becc;}async[_0x4d300e(0x247)](_0x10c584,_0x15d012){const _0x3549bf=_0x4d300e,{unitID:_0x3310f8,type:_0x25650a,blockID:_0x2edfbd}=_0x15d012,_0x2d6b02=this['_getAPIPrefix']()+'/'+_0x25650a+_0x3549bf(0x465)+_0x3310f8+_0x3549bf(0x207)+_0x2edfbd;return(await this[_0x3549bf(0x40f)][_0x3549bf(0x23f)](_0x2d6b02))[_0x3549bf(0x432)];}async[_0x4d300e(0x375)](_0x478b25,_0x69593){const _0x8673eb=_0x4d300e,{unitID:_0x49bc27,type:_0x4618b9,from:_0x4d7c56,to:_0x4c526e}=_0x69593,_0x9b4cff=this[_0x8673eb(0x270)]()+'/'+_0x4618b9+_0x8673eb(0x465)+_0x49bc27+_0x8673eb(0x269)+_0x4d7c56+_0x8673eb(0x34c)+_0x4c526e;return(await this[_0x8673eb(0x40f)][_0x8673eb(0x23f)](_0x9b4cff))[_0x8673eb(0x432)];}[_0x4d300e(0x222)](){var _0x52845d;return(_0x52845d=this['_configService']['getConfig'](Ki))!=null?_0x52845d:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x10f82f=_0x4d300e;var _0x3c7e86;return(_0x3c7e86=this[_0x10f82f(0x40e)][_0x10f82f(0x377)](Gi))!=null?_0x3c7e86:Yi;}async[_0x4d300e(0x1e7)](_0x189aa0,_0x491acb){const _0x22aa3f=_0x4d300e,_0x42d34d=_0x22aa3f(0x2be)+_0x491acb[_0x22aa3f(0x310)]+'/unit/'+_0x491acb[_0x22aa3f(0x1c8)]+'/resources';return(await this[_0x22aa3f(0x40f)][_0x22aa3f(0x23f)](_0x42d34d,{'params':{'resourceId':JSON[_0x22aa3f(0x3ae)](_0x491acb[_0x22aa3f(0x25d)])}}))[_0x22aa3f(0x432)];}[_0x4d300e(0x1a0)](){const _0x5e3a9f=_0x4d300e;throw new Error(_0x5e3a9f(0x395));}[_0x4d300e(0x46b)](){const _0x561e12=_0x4d300e;throw new Error(_0x561e12(0x395));}[_0x4d300e(0x475)](){const _0x3a0713=_0x4d300e;throw new Error(_0x3a0713(0x395));}};St=Br([es(0x0,_0xf370fc),es(0x1,_0x5ee80d(_0x27e9f9))],St);var kr=Object[_0x4d300e(0x26c)],Vr=Object['getOwnPropertyDescriptor'],Wr=(_0x4436a8,_0x4f6e39,_0x23c25a,_0x10fd20)=>{const _0x5e1fdd=_0x4d300e;for(var _0x37d0a8=_0x10fd20>0x1?void 0x0:_0x10fd20?Vr(_0x4f6e39,_0x23c25a):_0x4f6e39,_0x459aba=_0x4436a8[_0x5e1fdd(0x1b8)]-0x1,_0xcb0b8b;_0x459aba>=0x0;_0x459aba--)(_0xcb0b8b=_0x4436a8[_0x459aba])&&(_0x37d0a8=(_0x10fd20?_0xcb0b8b(_0x4f6e39,_0x23c25a,_0x37d0a8):_0xcb0b8b(_0x37d0a8))||_0x37d0a8);return _0x10fd20&&_0x37d0a8&&kr(_0x4f6e39,_0x23c25a,_0x37d0a8),_0x37d0a8;},pe=(_0x18b460,_0x118a52)=>(_0x56194b,_0x3720b3)=>_0x118a52(_0x56194b,_0x3720b3,_0x18b460);let vt=class extends _0x20f3f2{constructor(_0x563b22,_0x393877,_0x264163,_0x3f1d69,_0x17ef2a){const _0xf3f812=_0x4d300e;super(_0x563b22,_0x393877,_0x264163),this[_0xf3f812(0x47f)]=_0x3f1d69,this[_0xf3f812(0x439)]=_0x17ef2a;}[_0x4d300e(0x42a)](_0x535750,_0xbe0289){const _0x591790=_0x4d300e,_0x1b1319=this[_0x591790(0x262)](_0x535750);if(_0x1b1319)try{const _0x344b89=this[_0x591790(0x328)](_0x1b1319,_0xbe0289);this[_0x591790(0x383)](_0x535750,_0x344b89);}catch(_0x164160){this[_0x591790(0x439)][_0x591790(0x3d0)](_0x591790(0x357),_0x164160),this[_0x591790(0x3c0)](_0x535750);}const _0x31b08f=this[_0x591790(0x24f)](_0x535750);if(_0x31b08f)try{const _0x551450=this[_0x591790(0x328)](_0x31b08f,_0xbe0289);this[_0x591790(0x3bb)](_0x535750,_0x551450);}catch(_0xa1d87f){this['_logService'][_0x591790(0x3d0)](_0xa1d87f),this['_clearRedo'](_0x535750);}}['_clearUndo'](_0x55830c){const _0x6dce25=_0x4d300e,_0x2f32b3=this[_0x6dce25(0x262)](_0x55830c);_0x2f32b3&&(_0x2f32b3['length']=0x0,this[_0x6dce25(0x35b)]());}[_0x4d300e(0x204)](_0x169584){const _0x4a5952=_0x4d300e,_0x13e7b3=this[_0x4a5952(0x24f)](_0x169584);_0x13e7b3&&(_0x13e7b3[_0x4a5952(0x1b8)]=0x0,this['_updateStatus']());}[_0x4d300e(0x383)](_0x4cd124,_0x3d527c){const _0xbe4c31=_0x4d300e;this['_undoStacks'][_0xbe4c31(0x1ef)](_0x4cd124,_0x3d527c),this[_0xbe4c31(0x35b)]();}[_0x4d300e(0x3bb)](_0x274bec,_0x2a8ddc){const _0x55533a=_0x4d300e;this[_0x55533a(0x49a)][_0x55533a(0x1ef)](_0x274bec,_0x2a8ddc),this[_0x55533a(0x35b)]();}[_0x4d300e(0x328)](_0x2bb03c,_0x3666a2){const _0xbd9c16=_0x4d300e,_0x188754=[];let _0x54b676=_0x3666a2,_0x5262fe=_0x3666a2;for(let _0x57c7c8=_0x2bb03c[_0xbd9c16(0x1b8)]-0x1;_0x57c7c8>=0x0;_0x57c7c8--){const {unitID:_0xcdcdc5,undoMutations:_0x4e94d3,redoMutations:_0x3f3a32}=_0x2bb03c[_0x57c7c8],_0x248bbf=this[_0xbd9c16(0x47f)][_0xbd9c16(0x360)](_0x54b676,_0x4e94d3),_0x271ca9=this[_0xbd9c16(0x47f)][_0xbd9c16(0x360)](_0x5262fe,_0x3f3a32);if(_0x156a19(_0x248bbf)||_0x156a19(_0x271ca9)){this[_0xbd9c16(0x439)][_0xbd9c16(0x3d0)](_0xbd9c16(0x357),'transformStack\x20failed!',_0x248bbf,_0x271ca9);break;}_0x54b676=_0x248bbf[_0xbd9c16(0x44b)],_0x5262fe=_0x271ca9[_0xbd9c16(0x44b)],_0x188754[_0xbd9c16(0x445)]({'unitID':_0xcdcdc5,'undoMutations':_0x248bbf[_0xbd9c16(0x3ec)],'redoMutations':_0x271ca9[_0xbd9c16(0x3ec)]});}return _0x188754['reverse']();}};vt=Wr([pe(0x0,_0x54cb93),pe(0x1,_0x11685c),pe(0x2,_0x1d92a1),pe(0x3,_0x18339f),pe(0x4,_0x1546f9)],vt);class Gr extends _0x523d01{constructor(){const _0x100d6c=_0x4d300e;super(),l(this,_0x100d6c(0x28e)),this[_0x100d6c(0x28e)]=_0x36be47(window,'popstate')[_0x100d6c(0x21f)](_0x516ad9(this[_0x100d6c(0x3b2)]),_0x1967c6(0x1),_0x3ed718(void 0x0));}[_0x4d300e(0x3a5)](_0x4ee777,_0x34a0e5,_0x51fccd=!0x1){const _0x27b3cc=_0x4d300e,_0x574980=new URL(window[_0x27b3cc(0x498)]['href']);_0x574980[_0x27b3cc(0x1e0)][_0x27b3cc(0x1ef)](_0x4ee777,_0x34a0e5),_0x51fccd?window[_0x27b3cc(0x27e)][_0x27b3cc(0x36f)]('','',_0x574980[_0x27b3cc(0x1a7)]()):window[_0x27b3cc(0x27e)][_0x27b3cc(0x466)]('','',_0x574980[_0x27b3cc(0x1a7)]());}[_0x4d300e(0x3fd)](_0x471a04,_0x2dac3d=!0x1){const _0x4ea665=_0x4d300e,_0xb8c706=new URL(window[_0x4ea665(0x498)][_0x4ea665(0x2c5)]);_0xb8c706['searchParams']['delete'](_0x471a04),_0x2dac3d?window['history']['replaceState']('','',_0xb8c706[_0x4ea665(0x1a7)]()):window[_0x4ea665(0x27e)]['pushState']('','',_0xb8c706[_0x4ea665(0x1a7)]());}[_0x4d300e(0x2b2)](_0x3c428d){const _0x32a990=_0x4d300e;var _0x190cd8;return(_0x190cd8=new URL(window[_0x32a990(0x498)][_0x32a990(0x2c5)])[_0x32a990(0x1e0)][_0x32a990(0x23f)](_0x3c428d))!=null?_0x190cd8:void 0x0;}}const nt=_0x4d300e(0x47b),Yr=_0x4d300e(0x209),ye=0x6,Kr=1.5,rt=0x4,Xr=1.5,Jr='rgba(255,\x20255,\x20255,\x200.01)';class zr{constructor(_0x48b6c5,_0x3bfb72,_0x1f271c,_0xd9cbfc){const _0x2bf89b=_0x4d300e;l(this,_0x2bf89b(0x3ed),[]),l(this,_0x2bf89b(0x3ca),null),l(this,'_textBubble',null),l(this,_0x2bf89b(0x225),null),l(this,_0x2bf89b(0x31d),null),l(this,_0x2bf89b(0x406),null),(this[_0x2bf89b(0x26b)]=_0x48b6c5,this['_scene']=_0x3bfb72,this[_0x2bf89b(0x35a)]=_0x1f271c,this[_0x2bf89b(0x462)]=_0xd9cbfc,this[_0x2bf89b(0x1c4)]());}set[_0x4d300e(0x1d3)](_0x20a890){const _0x4cda53=_0x4d300e;_0x20a890?(this[_0x4cda53(0x225)]&&this['_anchorDot']['hide'](),this[_0x4cda53(0x45b)]&&this[_0x4cda53(0x45b)]['show']()):(this[_0x4cda53(0x225)]&&this[_0x4cda53(0x225)]['show'](),this[_0x4cda53(0x45b)]&&this[_0x4cda53(0x45b)][_0x4cda53(0x213)]());}[_0x4d300e(0x27d)](){const _0x134a0f=_0x4d300e;for(const _0x11b0b6 of this[_0x134a0f(0x3ed)])_0x11b0b6[_0x134a0f(0x27d)]();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x134a0f(0x225)]&&this[_0x134a0f(0x225)][_0x134a0f(0x27d)](),this[_0x134a0f(0x3ca)]&&this[_0x134a0f(0x3ca)][_0x134a0f(0x27d)](),this[_0x134a0f(0x406)]&&this[_0x134a0f(0x406)]();}[_0x4d300e(0x1c4)](){const _0x47506d=_0x4d300e,{_docSkeleton:_0x52c5d7,_document:_0x1e5441}=this,{color:_0x2dbf58,name:_0x364aa8,ranges:_0x406e64}=this['_cursor'],_0x216c67=_0x1e5441[_0x47506d(0x461)](),{docsLeft:_0x49eb40,docsTop:_0x5706f8}=_0x216c67,_0x56abae=new _0x5e74f1(_0x216c67,_0x52c5d7);for(const {startOffset:_0x62645f,endOffset:_0x2edc84,collapsed:_0x55c215,isActive:_0x508852}of _0x406e64){const _0x397ef6=_0x52c5d7[_0x47506d(0x2c2)](_0x62645f),_0x309c0a=_0x52c5d7[_0x47506d(0x2c2)](_0x2edc84);if(_0x508852){const {contentBoxPointGroup:_0x4aaf19}=_0x56abae[_0x47506d(0x48a)](_0x309c0a,_0x309c0a);if(_0x4aaf19[_0x47506d(0x1b8)]===0x0)continue;this[_0x47506d(0x480)](_0x2dbf58,_0x4aaf19,_0x49eb40,_0x5706f8,_0x364aa8),this[_0x47506d(0x406)]=this['_handleHover']();}if(!_0x55c215){const {contentBoxPointGroup:_0x20bcae}=_0x56abae['getRangePointData'](_0x397ef6,_0x309c0a);if(_0x20bcae[_0x47506d(0x1b8)]===0x0)continue;this[_0x47506d(0x3a1)](_0x2dbf58,_0x20bcae,_0x49eb40,_0x5706f8);}}}[_0x4d300e(0x480)](_0xc51157,_0x2ca317,_0x1dbb3c,_0xc9bd3e,_0xcee7ce){const _0x5182c7=_0x4d300e,_0x4357f6=this[_0x5182c7(0x314)](_0x2ca317),{left:_0x5c662e,top:_0x47a14a,height:_0x5a1dbd}=_0x4357f6,_0x5a7baf=this[_0x5182c7(0x22b)](),_0x2b3a92=Xr/_0x5a7baf,_0x55a5f9=new _0x45d0de(nt+_0x2f7711[_0x5182c7(0x347)](ye),{'left':_0x5c662e+_0x1dbb3c-_0x2b3a92,'top':_0x47a14a+_0xc9bd3e,'height':_0x5a1dbd,'width':Kr,'fill':_0xc51157||_0x284be6(_0x287eb6[_0x5182c7(0x3e2)],0x0),'strokeWidth':_0x2b3a92,'stroke':Jr,'evented':!0x0});this[_0x5182c7(0x3ca)]=_0x55a5f9,this[_0x5182c7(0x44a)][_0x5182c7(0x34b)](_0x55a5f9,_0x28640a);const _0xbb6882=new _0x45d0de(nt+_0x2f7711['generateRandomId'](ye),{'left':_0x5c662e+_0x1dbb3c-_0x2b3a92,'top':_0x47a14a+_0xc9bd3e-rt/0x2,'height':rt,'width':rt,'fill':_0xc51157||_0x284be6(_0x287eb6['black'],0x0),'strokeWidth':0x0,'stroke':_0xc51157||_0x284be6(_0x287eb6[_0x5182c7(0x3e2)],0x0),'evented':!0x1});this[_0x5182c7(0x225)]=_0xbb6882,this[_0x5182c7(0x44a)][_0x5182c7(0x34b)](_0xbb6882,_0x28640a);const _0x54023d=new ze(nt+_0x2f7711[_0x5182c7(0x347)](ye),{'left':_0x5c662e+_0x1dbb3c-_0x2b3a92,'top':_0x47a14a+_0xc9bd3e-Oe,'text':_0xcee7ce,'color':_0xc51157});this['_textBubble']=_0x54023d,this[_0x5182c7(0x44a)]['addObject'](_0x54023d,_0x28640a),this[_0x5182c7(0x1d3)]=!0x1;}[_0x4d300e(0x3fb)](){const _0x3764b3=_0x4d300e,_0x113280=this[_0x3764b3(0x3ca)][_0x3764b3(0x317)]['subscribeEvent'](()=>{const _0x381618=_0x3764b3;this[_0x381618(0x1d3)]=!0x0;}),_0x1e2284=this['_anchor'][_0x3764b3(0x430)][_0x3764b3(0x414)](()=>{const _0x331edb=_0x3764b3;this[_0x331edb(0x31d)]&&clearTimeout(this[_0x331edb(0x31d)]),this['_hideTimer']=setTimeout(()=>{const _0x3e95f0=_0x331edb;this[_0x3e95f0(0x1d3)]=!0x1;},0x7d0);});return()=>{const _0x254abb=_0x3764b3;_0x113280[_0x254abb(0x2cc)](),_0x1e2284[_0x254abb(0x2cc)]();};}[_0x4d300e(0x3a1)](_0x59b902,_0x5ace49,_0x288d95,_0x51e69a){const _0x4dce02=_0x4d300e,_0x199aef=new _0x103dab(_0x59b902)[_0x4dce02(0x2f8)](0.2)[_0x4dce02(0x190)](),_0x483bd6=new _0x7bfc95(Yr+_0x2f7711[_0x4dce02(0x347)](ye),{'pointsGroup':_0x5ace49,'fill':_0x199aef||_0x284be6(_0x287eb6[_0x4dce02(0x3e2)],0.2),'left':_0x288d95,'top':_0x51e69a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4dce02(0x445)](_0x483bd6),this[_0x4dce02(0x44a)][_0x4dce02(0x34b)](_0x483bd6,_0x28640a);}[_0x4d300e(0x314)](_0x36f2cc){const _0x5cd942=_0x36f2cc[0x0],_0x1fdfe1=_0x5cd942[0x0],_0xfe2cbe=_0x5cd942[0x2],{x:_0x5710a2,y:_0x481b66}=_0x1fdfe1,{x:_0x235d6f,y:_0x4525d2}=_0xfe2cbe;return{'left':_0x5710a2,'top':_0x481b66,'width':_0x235d6f-_0x5710a2,'height':_0x4525d2-_0x481b66};}[_0x4d300e(0x22b)](){const _0xd4f0a5=_0x4d300e,{scaleX:_0xc4dd01,scaleY:_0xd9725a}=this[_0xd4f0a5(0x44a)][_0xd4f0a5(0x2ee)]();return Math[_0xd4f0a5(0x39e)](_0xc4dd01,_0xd9725a);}}var Zr=Object['defineProperty'],qr=Object[_0x4d300e(0x368)],Qr=(_0x5c3b54,_0x2de1eb,_0x25bcc2,_0x22c57f)=>{const _0x2ac152=_0x4d300e;for(var _0x2612e1=_0x22c57f>0x1?void 0x0:_0x22c57f?qr(_0x2de1eb,_0x25bcc2):_0x2de1eb,_0x2e636c=_0x5c3b54[_0x2ac152(0x1b8)]-0x1,_0x38315e;_0x2e636c>=0x0;_0x2e636c--)(_0x38315e=_0x5c3b54[_0x2e636c])&&(_0x2612e1=(_0x22c57f?_0x38315e(_0x2de1eb,_0x25bcc2,_0x2612e1):_0x38315e(_0x2612e1))||_0x2612e1);return _0x22c57f&&_0x2612e1&&Zr(_0x2de1eb,_0x25bcc2,_0x2612e1),_0x2612e1;},Ie=(_0x2659a8,_0x40ab30)=>(_0x51d8a4,_0x1e5ac9)=>_0x40ab30(_0x51d8a4,_0x1e5ac9,_0x2659a8);let Fe=class extends _0x523d01{constructor(_0x56c224,_0x4b48e5,_0x3b48f7,_0x2c6aeb,_0x5e9720){const _0x4703d8=_0x4d300e;super(),l(this,_0x4703d8(0x3cc),[]),(this['_collabCursorController']=_0x56c224,this[_0x4703d8(0x229)]=_0x4b48e5,this[_0x4703d8(0x478)]=_0x3b48f7,this['_docSkeletonManagerService']=_0x2c6aeb,this[_0x4703d8(0x264)]=_0x5e9720,this[_0x4703d8(0x1e2)]());}[_0x4d300e(0x1e2)](){const _0x588d0c=_0x4d300e;this[_0x588d0c(0x215)]['currentSkeleton$'][_0x588d0c(0x21f)](_0xa17723(this['dispose$']),_0x2e181c(_0x3564a7=>{const _0x329d9f=_0x588d0c;if(_0x3564a7){const _0x197eb1=_0x3564a7[_0x329d9f(0x21c)]()[_0x329d9f(0x3b6)]()[_0x329d9f(0x419)]();return _0x18a14e(this[_0x329d9f(0x214)][_0x329d9f(0x2a5)](_0x197eb1),this[_0x329d9f(0x264)][_0x329d9f(0x212)])['pipe'](_0x50cc5c(([_0x491d52,_0xfac97d])=>({'skeleton':_0x3564a7,'cursors':[..._0x491d52['values']()][_0x329d9f(0x42e)](_0x40c050=>({..._0x40c050,'color':_0xfac97d[_0x40c050[_0x329d9f(0x44f)]]}))})));}return _0xd6321({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x44fa1e,cursors:_0x5a17a5})=>{const _0x436760=_0x588d0c;this['_removeCollabCursors'](),_0x44fa1e&&this[_0x436760(0x3a9)](_0x44fa1e,_0x5a17a5);});}[_0x4d300e(0x3a9)](_0x21e228,_0x329b70){const _0x120902=_0x4d300e,_0x20a5d8=this[_0x120902(0x2e1)]();if(_0x20a5d8==null)return;const {scene:_0x17c136,document:_0x8cfbd4}=_0x20a5d8,_0x27d055=_0x329b70[_0x120902(0x233)](_0x3c557d=>new zr(_0x3c557d,_0x17c136,_0x21e228,_0x8cfbd4));this[_0x120902(0x3cc)]=_0x27d055;}[_0x4d300e(0x400)](){const _0x20d02a=_0x4d300e;this[_0x20d02a(0x3cc)]['forEach'](_0x220d99=>_0x220d99['dispose']()),this[_0x20d02a(0x3cc)]=[];}[_0x4d300e(0x2e1)](){const _0x4bfa1f=_0x4d300e;return _0x215a5f(this[_0x4bfa1f(0x229)],this[_0x4bfa1f(0x478)]);}};Fe=Qr([_0x571911(_0x4f7ed2[_0x4d300e(0x457)],Fe),Ie(0x0,_0x5ee80d(ue)),Ie(0x1,_0x54cb93),Ie(0x2,_0x7e7d56),Ie(0x3,_0x5ee80d(_0x4a3eee)),Ie(0x4,_0x5ee80d(_0x359dbb))],Fe);var eo=Object['defineProperty'],to=Object[_0x4d300e(0x368)],so=(_0x5cc049,_0x32ed40,_0x3803e0,_0x2f04d0)=>{const _0x3a29b0=_0x4d300e;for(var _0x5f41fc=_0x2f04d0>0x1?void 0x0:_0x2f04d0?to(_0x32ed40,_0x3803e0):_0x32ed40,_0x23b631=_0x5cc049[_0x3a29b0(0x1b8)]-0x1,_0x18b0ac;_0x23b631>=0x0;_0x23b631--)(_0x18b0ac=_0x5cc049[_0x23b631])&&(_0x5f41fc=(_0x2f04d0?_0x18b0ac(_0x32ed40,_0x3803e0,_0x5f41fc):_0x18b0ac(_0x5f41fc))||_0x5f41fc);return _0x2f04d0&&_0x5f41fc&&eo(_0x32ed40,_0x3803e0,_0x5f41fc),_0x5f41fc;},ot=(_0x427f1b,_0x1dbe5d)=>(_0x3ba35c,_0x58ef45)=>_0x1dbe5d(_0x3ba35c,_0x58ef45,_0x427f1b);let Ge=class{constructor(_0x48be71,_0x315d8f,_0x2fee84){const _0x5850e2=_0x4d300e;this['_configService']=_0x48be71,this[_0x5850e2(0x40f)]=_0x315d8f,this[_0x5850e2(0x37b)]=_0x2fee84,this['init']();}[_0x4d300e(0x324)](){const _0x189f1f=_0x4d300e;this[_0x189f1f(0x40f)][_0x189f1f(0x2df)]({'priority':0x1,'interceptor':(_0x236040,_0x23f220)=>_0x23f220(_0x236040)[_0x189f1f(0x21f)](_0x7c3684(async _0x4e245e=>{const _0x299155=_0x189f1f,_0x3a8918=_0x4e245e;if(_0x3a8918['status']===0x191&&window[_0x299155(0x187)](this[_0x299155(0x37b)]['t'](_0x299155(0x2cb)))){const _0x3c3d90=window[_0x299155(0x294)](window[_0x299155(0x498)][_0x299155(0x2c5)]);window[_0x299155(0x498)][_0x299155(0x2c5)]=this[_0x299155(0x2ed)]()+_0x299155(0x45a)+_0x3c3d90;}return _0x3a8918;}))});}['_getLoginPath'](){const _0x50f462=_0x4d300e;var _0x17f270;return(_0x17f270=this[_0x50f462(0x40e)]['getConfig'](hn))!=null?_0x17f270:ln;}};Ge=so([ot(0x0,_0xf370fc),ot(0x1,_0x5ee80d(_0x27e9f9)),ot(0x2,_0x5ee80d(_0x399826))],Ge);var io=Object[_0x4d300e(0x26c)],no=Object[_0x4d300e(0x368)],ro=(_0x1d4270,_0x48f9b5,_0x45a925,_0x4ddd6f)=>{const _0x56eecd=_0x4d300e;for(var _0x5113bd=_0x4ddd6f>0x1?void 0x0:_0x4ddd6f?no(_0x48f9b5,_0x45a925):_0x48f9b5,_0x4f32c4=_0x1d4270[_0x56eecd(0x1b8)]-0x1,_0x182eb9;_0x4f32c4>=0x0;_0x4f32c4--)(_0x182eb9=_0x1d4270[_0x4f32c4])&&(_0x5113bd=(_0x4ddd6f?_0x182eb9(_0x48f9b5,_0x45a925,_0x5113bd):_0x182eb9(_0x5113bd))||_0x5113bd);return _0x4ddd6f&&_0x5113bd&&io(_0x48f9b5,_0x45a925,_0x5113bd),_0x5113bd;},ts=(_0x35e36f,_0x5691a6)=>(_0x279750,_0x578900)=>_0x5691a6(_0x279750,_0x578900,_0x35e36f);const oo=_0x4d300e(0x3af),ao='/universer-api/authz';let pt=class{constructor(_0x52c3a2,_0x37c278){const _0x4ce95b=_0x4d300e;this['_HTTPService']=_0x52c3a2,this[_0x4ce95b(0x40e)]=_0x37c278;}[_0x4d300e(0x293)](){const _0x21fb69=_0x4d300e;var _0x2423ac;return(_0x2423ac=this[_0x21fb69(0x40e)][_0x21fb69(0x377)](oo))!=null?_0x2423ac:ao;}async[_0x4d300e(0x2c9)](_0x3ed820){const _0x41ba3b=_0x4d300e,_0x5220ba=this[_0x41ba3b(0x293)]()+'/'+_0x3ed820[_0x41ba3b(0x3b3)]+_0x41ba3b(0x42b);return(await this[_0x41ba3b(0x384)][_0x41ba3b(0x362)](_0x5220ba,{'body':_0x3ed820}))[_0x41ba3b(0x432)]['objectID']||'';}async[_0x4d300e(0x397)](_0x36ef89){const _0x2b2929=_0x4d300e,_0x1732e1=this[_0x2b2929(0x293)]()+_0x2b2929(0x3c1);return(await this[_0x2b2929(0x384)][_0x2b2929(0x362)](_0x1732e1,{'body':_0x36ef89}))['body'][_0x2b2929(0x1aa)];}async[_0x4d300e(0x29c)](_0x8be5bf){const _0x49bced=_0x4d300e,_0xf236bb=this[_0x49bced(0x293)]()+'/'+_0x8be5bf[_0x49bced(0x3b3)]+_0x49bced(0x231)+_0x8be5bf[_0x49bced(0x342)];await this[_0x49bced(0x384)][_0x49bced(0x441)](_0xf236bb,{'body':_0x8be5bf});}async[_0x4d300e(0x246)](_0x9996ab){const _0x103660=_0x4d300e,_0x65f39d=this[_0x103660(0x293)]()+'/'+_0x9996ab['objectType']+_0x103660(0x231)+_0x9996ab[_0x103660(0x342)]+'/allowed';return(await this[_0x103660(0x384)][_0x103660(0x362)](_0x65f39d,{'body':_0x9996ab}))[_0x103660(0x432)][_0x103660(0x44e)];}async[_0x4d300e(0x304)](_0x1c4be5){const _0x1dd07f=_0x4d300e,_0x432277=this[_0x1dd07f(0x293)]()+_0x1dd07f(0x333);return(await this[_0x1dd07f(0x384)]['post'](_0x432277,{'body':{'requests':_0x1c4be5}}))[_0x1dd07f(0x432)]['objectActions'];}async[_0x4d300e(0x467)](_0x3f6a7f){const _0x50742d=_0x4d300e,_0x583d3d=this[_0x50742d(0x293)]()+'/'+_0x3f6a7f[_0x50742d(0x3b3)]+_0x50742d(0x17d),_0x52e871=await this[_0x50742d(0x384)][_0x50742d(0x362)](_0x583d3d,{'body':_0x3f6a7f});return{'roles':_0x52e871[_0x50742d(0x432)][_0x50742d(0x385)],'actions':_0x52e871['body'][_0x50742d(0x44e)]};}async['deleteCollaborator'](_0x395e3f){const _0x5830db=_0x4d300e,_0x11a2a4=this[_0x5830db(0x293)]()+_0x5830db(0x2a0);await this[_0x5830db(0x384)][_0x5830db(0x284)](_0x11a2a4,{'params':{'collaboratorID':_0x395e3f[_0x5830db(0x3de)],'objectID':_0x395e3f[_0x5830db(0x342)],'unitID':_0x395e3f['unitID']}});}async[_0x4d300e(0x3d4)](_0x196fa9){const _0x429735=_0x4d300e,_0x56f9b0=this[_0x429735(0x293)]()+'/collaborator';await this[_0x429735(0x384)]['patch'](_0x56f9b0,{'body':_0x196fa9});}async[_0x4d300e(0x3f3)](_0x2b8b6e){const _0x9ae190=_0x4d300e,_0x3bf14d=this[_0x9ae190(0x293)]()+_0x9ae190(0x2a0);await this[_0x9ae190(0x384)][_0x9ae190(0x362)](_0x3bf14d,{'body':_0x2b8b6e});}async[_0x4d300e(0x493)](_0x5dab34){const _0x325939=_0x4d300e,_0x4a0122=this[_0x325939(0x293)]()+_0x325939(0x2a0);return(await this['_HTTPService'][_0x325939(0x23f)](_0x4a0122,{'params':{'objectID':_0x5dab34[_0x325939(0x342)],'unitID':_0x5dab34[_0x325939(0x1c8)]}}))['body'][_0x325939(0x2e9)];}async['putCollaborators'](_0x4a3eca){const _0x245247=_0x4d300e,_0x225eb4=this[_0x245247(0x293)]()+_0x245247(0x2a0);await this['_HTTPService']['put'](_0x225eb4,{'body':_0x4a3eca});}};pt=ro([ts(0x0,_0x5ee80d(_0x27e9f9)),ts(0x1,_0x5ee80d(_0xf370fc))],pt);var co=Object[_0x4d300e(0x26c)],ho=Object[_0x4d300e(0x368)],lo=(_0x318a53,_0x21791d,_0x106c17,_0x320628)=>{for(var _0x487afe=_0x320628>0x1?void 0x0:_0x320628?ho(_0x21791d,_0x106c17):_0x21791d,_0x4abdd2=_0x318a53['length']-0x1,_0x5e8132;_0x4abdd2>=0x0;_0x4abdd2--)(_0x5e8132=_0x318a53[_0x4abdd2])&&(_0x487afe=(_0x320628?_0x5e8132(_0x21791d,_0x106c17,_0x487afe):_0x5e8132(_0x487afe))||_0x487afe);return _0x320628&&_0x487afe&&co(_0x21791d,_0x106c17,_0x487afe),_0x487afe;},ss=(_0x3e5c6f,_0x4420fc)=>(_0x4d95f5,_0x22c01c)=>_0x4420fc(_0x4d95f5,_0x22c01c,_0x3e5c6f);const _o=['image/png',_0x4d300e(0x455),'image/jpg',_0x4d300e(0x176),_0x4d300e(0x32a)],uo=0x5*0x400*0x400,fo=_0x4d300e(0x3df),go=_0x4d300e(0x43d),mo=_0x4d300e(0x353),So=_0x4d300e(0x307);let It=class{constructor(_0x58de5e,_0x59fcf3){const _0x125a30=_0x4d300e;l(this,'_waitCount',0x0),l(this,_0x125a30(0x16d),new _0x4b8ba0()),l(this,_0x125a30(0x45e),this['_change$']),l(this,_0x125a30(0x2a9),new Map()),(this['_httpService']=_0x58de5e,this[_0x125a30(0x40e)]=_0x59fcf3);}[_0x4d300e(0x3f5)](_0x1d04f6){const _0x5f0e6b=_0x4d300e;this[_0x5f0e6b(0x487)]=_0x1d04f6,this[_0x5f0e6b(0x16d)][_0x5f0e6b(0x3bf)](_0x1d04f6);}[_0x4d300e(0x48f)](_0x5d0c94,_0x1b4ab2){const _0x4fffd8=_0x4d300e;if(_0x1b4ab2===_0x3720a4[_0x4fffd8(0x3d7)]){const _0x5b750d=new Image();return _0x5b750d[_0x4fffd8(0x21a)]=_0x5d0c94,_0x5b750d;}return this['_imageSourceCache'][_0x4fffd8(0x23f)](_0x5d0c94);}['addImageSourceCache'](_0x47cfeb,_0x59bb08,_0x2a528e){const _0x531611=_0x4d300e;_0x59bb08===_0x3720a4[_0x531611(0x3d7)]||_0x2a528e==null||this[_0x531611(0x2a9)]['set'](_0x47cfeb,_0x2a528e);}async['getImage'](_0x53f7a6){const _0x5a4382=_0x4d300e;try{const _0x1c60df=this[_0x5a4382(0x249)](this['_getSignURL'](),''+_0x53f7a6),_0x3dd2b8=(await this[_0x5a4382(0x40f)][_0x5a4382(0x23f)](_0x1c60df))[_0x5a4382(0x432)];return _0x3dd2b8['error']&&_0x3dd2b8[_0x5a4382(0x3d0)]['code']===Cs['OK']?Promise[_0x5a4382(0x2b4)](_0x3dd2b8[_0x5a4382(0x1f4)]):Promise[_0x5a4382(0x390)](_0x3dd2b8['error']);}catch(_0x34ebc9){return Promise[_0x5a4382(0x390)](_0x34ebc9);}}async[_0x4d300e(0x3e0)](_0x145631){const _0x34bf3b=_0x4d300e;let _0xa004e4='';if(!_o[_0x34bf3b(0x200)](_0x145631[_0x34bf3b(0x310)]))return this[_0x34bf3b(0x2d7)](),Promise['reject'](new Error(_0x4ac875['ERROR_IMAGE_TYPE']));if(_0x145631[_0x34bf3b(0x17b)]>uo)return this[_0x34bf3b(0x2d7)](),Promise[_0x34bf3b(0x390)](new Error(_0x4ac875['ERROR_EXCEED_SIZE']));try{const _0x568cd1=new FormData();_0x568cd1[_0x34bf3b(0x29f)](_0x34bf3b(0x2d1),_0x145631);const _0x4a93c6=this[_0x34bf3b(0x359)]()+_0x34bf3b(0x25b)+_0x145631[_0x34bf3b(0x17b)][_0x34bf3b(0x1a7)](),_0x4a5d30=await(await fetch(_0x4a93c6,{'method':_0x34bf3b(0x313),'body':_0x568cd1}))['json']();if(typeof _0x4a5d30[_0x34bf3b(0x254)]!='string')return this['_decreaseWaiting'](),Promise[_0x34bf3b(0x390)](new Error(_0x4ac875[_0x34bf3b(0x28f)]));_0xa004e4=_0x4a5d30[_0x34bf3b(0x254)];}catch{return this[_0x34bf3b(0x2d7)](),Promise['reject'](new Error(_0x4ac875[_0x34bf3b(0x28f)]));}return new Promise((_0x3c5e60,_0x478396)=>{const _0x4fbb2a=_0x34bf3b,_0xb0e1a6=new FileReader();_0xb0e1a6[_0x4fbb2a(0x372)](_0x145631),_0xb0e1a6[_0x4fbb2a(0x413)]=_0x4305ee=>{const _0x4d1369=_0x4fbb2a;var _0x20575d;const _0x57da68=(_0x20575d=_0x4305ee[_0x4d1369(0x1d9)])==null?void 0x0:_0x20575d[_0x4d1369(0x216)];if(_0x57da68==null){this[_0x4d1369(0x2d7)](),_0x478396(new Error(_0x4ac875[_0x4d1369(0x28f)]));return;}const _0x57c0bb=_0x2f7711[_0x4d1369(0x347)](0x6);_0x3c5e60({'imageId':_0x57c0bb,'imageSourceType':_0x3720a4[_0x4d1369(0x351)],'source':_0xa004e4,'base64Cache':_0x57da68,'status':_0x4ac875[_0x4d1369(0x243)]}),this[_0x4d1369(0x2d7)]();};});}[_0x4d300e(0x359)](){const _0x239026=_0x4d300e;var _0x9a33af;return(_0x9a33af=this[_0x239026(0x40e)][_0x239026(0x377)](fo))!=null?_0x9a33af:go;}[_0x4d300e(0x47e)](){const _0x23b377=_0x4d300e;var _0x437398;return(_0x437398=this[_0x23b377(0x40e)][_0x23b377(0x377)](mo))!=null?_0x437398:So;}[_0x4d300e(0x249)](_0x43bdb1,_0x576f3b){const _0x420ecc=_0x4d300e;return _0x43bdb1[_0x420ecc(0x33f)](_0x420ecc(0x3db),_0x576f3b);}[_0x4d300e(0x2d7)](){const _0x347642=_0x4d300e;this['_waitCount']-=0x1,this[_0x347642(0x16d)][_0x347642(0x3bf)](this[_0x347642(0x487)]);}};It=lo([ss(0x0,_0x5ee80d(_0x27e9f9)),ss(0x1,_0xf370fc)],It);var ys=Object[_0x4d300e(0x26c)],vo=Object['getOwnPropertyDescriptor'],po=(_0x56991c,_0x2c5f88,_0x1ba2ea)=>_0x2c5f88 in _0x56991c?ys(_0x56991c,_0x2c5f88,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ba2ea}):_0x56991c[_0x2c5f88]=_0x1ba2ea,Io=(_0x40bbbf,_0x1e4fa2,_0x14ee30,_0x37a498)=>{const _0x16f9ad=_0x4d300e;for(var _0x4d5adc=_0x37a498>0x1?void 0x0:_0x37a498?vo(_0x1e4fa2,_0x14ee30):_0x1e4fa2,_0xa0838f=_0x40bbbf[_0x16f9ad(0x1b8)]-0x1,_0x3b01ab;_0xa0838f>=0x0;_0xa0838f--)(_0x3b01ab=_0x40bbbf[_0xa0838f])&&(_0x4d5adc=(_0x37a498?_0x3b01ab(_0x1e4fa2,_0x14ee30,_0x4d5adc):_0x3b01ab(_0x4d5adc))||_0x4d5adc);return _0x37a498&&_0x4d5adc&&ys(_0x1e4fa2,_0x14ee30,_0x4d5adc),_0x4d5adc;},is=(_0x15fb6d,_0x2764db)=>(_0x8e92bc,_0xa6d246)=>_0x2764db(_0x8e92bc,_0xa6d246,_0x15fb6d),Eo=(_0x4902af,_0x1e18fe,_0x51e2dd)=>po(_0x4902af,_0x1e18fe+'',_0x51e2dd);const Co='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Et=class extends _0x33aefa{constructor(_0x4c6c19,_0x174fd5,_0x337a61){const _0x26c2f1=_0x4d300e;super(),this[_0x26c2f1(0x1db)]=_0x4c6c19,this[_0x26c2f1(0x439)]=_0x174fd5,this[_0x26c2f1(0x3ef)]=_0x337a61;}[_0x4d300e(0x1e5)](_0x19b956){const _0x382af1=_0x4d300e;var _0xf913b,_0x2a2f69,_0x18117e,_0x584d49,_0x32f92f;_0x19b956['has'](_0x26da0d)&&this[_0x382af1(0x439)][_0x382af1(0x3d0)](_0x382af1(0x2e6),_0x382af1(0x488));let _0x2af8cd=[[_0x26da0d,{'useClass':vt}],[Re],[At],[_0x27e9f9],[As,{'useClass':Gr}],[ee],[D],[_0x57dd41],[Ve],[ke],[Be],[Mt],[Ge],[Rs],[bs,{'useClass':(_0x2a2f69=(_0xf913b=this[_0x382af1(0x1db)])==null?void 0x0:_0xf913b['socketService'])!=null?_0x2a2f69:_t}],[_0x3494a9,{'useClass':_0x4de81b}],[_0x2c8ca6,{'useClass':St}],[_0x1e1021,{'useClass':pt}],[_0x262711,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x18117e=this['_config'])!=null&&_0x18117e[_0x382af1(0x3e6)]&&_0x2af8cd[_0x382af1(0x445)]([Xe,{'useClass':On}]),((_0x584d49=this['_config'])==null?void 0x0:_0x584d49['collaborationUniverTypes'])==null||this[_0x382af1(0x1db)][_0x382af1(0x470)][_0x382af1(0x200)](_0x590cf1[_0x382af1(0x282)])?_0x2af8cd[_0x382af1(0x445)]([$e]):this[_0x382af1(0x1db)][_0x382af1(0x470)][_0x382af1(0x200)](_0x590cf1[_0x382af1(0x2aa)])&&_0x2af8cd['push']([Fe]),_0x2af8cd=_0x30c093(_0x2af8cd,(_0x32f92f=this[_0x382af1(0x1db)])==null?void 0x0:_0x32f92f[_0x382af1(0x41c)]),_0x2af8cd[_0x382af1(0x2b7)](_0x48b60f=>_0x19b956[_0x382af1(0x349)](_0x48b60f)),_0x19b956['get'](_0x27e9f9)[_0x382af1(0x2df)]({'priority':0x14,'interceptor':_0x7c5f10({'maxParallel':0x6})}),this[_0x382af1(0x20a)]();}[_0x4d300e(0x20a)](){const _0x16246f=_0x4d300e;var _0x5bd184,_0x18b690;(_0x5bd184=this[_0x16246f(0x1db)])!=null&&_0x5bd184[_0x16246f(0x24d)]||this[_0x16246f(0x3ef)][_0x16246f(0x23f)](D)[_0x16246f(0x363)](),(_0x18b690=this[_0x16246f(0x1db)])!=null&&_0x18b690[_0x16246f(0x1ea)]&&this[_0x16246f(0x3ef)][_0x16246f(0x23f)](Ge);}};Eo(Et,_0x4d300e(0x1be),Co),Et=Io([_0x52343f(_0x13f0c4),is(0x1,_0x1546f9),is(0x2,_0x5ee80d(_0x1fa2c4))],Et);export{oo as AUTHZ_URL_KEY,pt as AuthzIoHttpService,an as COLLAB_SUBMIT_CHANGESET_URL_KEY,zi as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Or as CollaborationStatusDisplay,Rs as CommentService,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,Is as HEARTBEAT_TIMEOUT_KEY,bs as ICollaborationSocketService,As as IURLService,rn as LOCAL_CACHE_INTERVAL_KEY,hn as LOGIN_URL_KEY,D as LocalCacheService,Xi as SEND_CHANGESET_TIMEOUT_KEY,Gi as SNAPSHOT_SERVER_URL_KEY,Ki as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Gr as WebURLService,gn as deserializeToCombResponse,mn as serializeCombRequest};
1
+ const _0x51fc53=_0x5e69;(function(_0x30ab14,_0x2eb2b9){const _0x1f6736=_0x5e69,_0x1dbc37=_0x30ab14();while(!![]){try{const _0xfa9a67=parseInt(_0x1f6736(0x2df))/0x1+parseInt(_0x1f6736(0x88))/0x2*(-parseInt(_0x1f6736(0x12f))/0x3)+-parseInt(_0x1f6736(0xe8))/0x4+-parseInt(_0x1f6736(0x1f1))/0x5*(-parseInt(_0x1f6736(0x363))/0x6)+-parseInt(_0x1f6736(0x15b))/0x7*(parseInt(_0x1f6736(0x2d6))/0x8)+-parseInt(_0x1f6736(0x26d))/0x9*(parseInt(_0x1f6736(0xe1))/0xa)+-parseInt(_0x1f6736(0x389))/0xb*(-parseInt(_0x1f6736(0x1c2))/0xc);if(_0xfa9a67===_0x2eb2b9)break;else _0x1dbc37['push'](_0x1dbc37['shift']());}catch(_0x5020ab){_0x1dbc37['push'](_0x1dbc37['shift']());}}}(_0x18ca,0x42df1));var xs=Object[_0x51fc53(0x18f)],Fs=(_0xa1e703,_0x30b155,_0x469b1c)=>_0x30b155 in _0xa1e703?xs(_0xa1e703,_0x30b155,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x469b1c}):_0xa1e703[_0x30b155]=_0x469b1c,l=(_0x507786,_0x45adc2,_0x38a3fa)=>Fs(_0x507786,typeof _0x45adc2!='symbol'?_0x45adc2+'':_0x45adc2,_0x38a3fa);import{Disposable as _0x10a29c,toDisposable as _0x2f2f24,UniverInstanceType as _0x3504ec,UserManagerService as _0x1b79c3,IUniverInstanceService as _0x373907,DisposableCollection as _0x3ab8a8,IConfigService as _0x5977ca,ILogService as _0x3cb271,ISnapshotServerService as _0x3ad936,RxDisposable as _0x521c86,LocaleService as _0x201091,ILocalStorageService as _0x2cad44,Tools as _0x4cfbd7,ICommandService as _0x568418,JSONX as _0xe185f6,IPermissionService as _0x57bd86,IUndoRedoService as _0x5815e0,sequenceExecute as _0x4bf5fd,OnLifecycle as _0x47ad3a,LifecycleStages as _0x34068b,CommandType as _0x1b1270,Rectangle as _0x1fb77c,ThemeService as _0x522711,Workbook as _0x3b5c47,textEncoder as _0x56aec7,b64DecodeUnicode as _0x5ad4b1,LocalUndoRedoService as _0x31c064,IContextService as _0x187fc2,COLORS as _0x131343,ColorKit as _0x3dc381,Plugin as _0x5ab657,IAuthzIoService as _0x5c087b,mergeOverrideWithDependencies as _0xd86ae6,DependentOn as _0x2e4016}from'@univerjs/core';import{SelectionManagerService as _0x5c112f,SetSelectionsOperation as _0x2708b7,InsertSheetMutation as _0x75b52d,WorkbookEditablePermission as _0x4b6c4e,RefRangeService as _0x4cc8b2,EffectRefRangId as _0x4d5ced,handleIRemoveRow as _0x1d7ce0,handleIRemoveCol as _0x122c4c,handleMoveRange as _0x511a99,handleInsertRow as _0x254106,handleInsertRangeMoveRight as _0x4c1408,handleInsertRangeMoveDown as _0x268953,handleInsertCol as _0x3b1ac8,handleDeleteRangeMoveUp as _0x5c5378,handleDeleteRangeMoveLeft as _0x3ca06c,runRefRangeMutations as _0x3711ba,SetWorksheetActivateCommand as _0x1c5f90}from'@univerjs/sheets';import{MessageType as _0x1587ba}from'@univerjs/design';import{IBeforeCloseService as _0x5e3e8f,IMessageService as _0xf8e37a,INotificationService as _0x3c139b,useObservable as _0x282297,BuiltInUIPart as _0x4e424f,IUIPartsService as _0x117aca}from'@univerjs/ui';import{CollaborationEvent as _0x1b5c65,parseChangesetToProtocol as _0x57e4b9,RevisionService as _0x4d36b1,isTransformMutationFailure as _0xcc662a,isTransformMutationsWithChangesetSuccess as _0x5a8972,ITransformService as _0x425e9b,mapDocumentTypeToUniverType as _0x23bb45,isTransformChangesetsSuccess as _0x4b3216,CompressMutationService as _0x2c81ea,parseProtocolChangeset as _0x8dccd4,SnapshotService as _0x3cc45f,isTransformMutationsWithChangesetFailure as _0x4c2f5b,UniverCollaborationPlugin as _0x114daf}from'@univerjs-pro/collaboration';import{Inject as _0x4a7404,createIdentifier as _0xf73999,Injector as _0x44b6b8,Optional as _0x19d484}from'@wendellhu/redi';import{merge as _0x124107,Subject as _0x5da41e,BehaviorSubject as _0x5d7d96,distinctUntilChanged as _0xe50b30,fromEvent as _0x1860dc,of as _0xdadc8c,takeUntil as _0x1603a2,debounceTime as _0x4c0f1b,filter as _0x5f5348,switchMap as _0x8b3a32,combineLatest as _0x73b353,shareReplay as _0xcf2b53,mapTo as _0x154121,concatMap as _0x22cd34}from'rxjs';import{map as _0x1db2aa,takeUntil as _0x430c3c,take as _0x51a597,filter as _0x1b26e7,delay as _0x54f844,shareReplay as _0x4b3c1f,switchMap as _0xb49a6c}from'rxjs/operators';import{IMEInputManagerService as _0x57e020,TextSelectionManagerService as _0x58dacd,serializeTextRange as _0x2646e0,DocStateChangeManagerService as _0x47f8d9,SetTextSelectionsOperation as _0xf9fdf8,RichTextEditingMutation as _0x47707c,getDocObject as _0x3248cd,DocSkeletonManagerService as _0x46f5a8}from'@univerjs/docs';import{HTTPService as _0x142257,WebSocketService as _0x1e9f90,IHTTPImplementation as _0x38690b,XHRHTTPImplementation as _0x443f73,ThresholdInterceptorFactory as _0x5bab19}from'@univerjs/network';import{ImageSourceType as _0x3a239e,ImageUploadStatusType as _0x59dd1c,IImageIoService as _0x18bd4e}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x285859,serializeRangeWithSheet as _0x273a62}from'@univerjs/engine-formula';import _0x507539 from'lodash/debounce';import{Shape as _0xe13222,Rect as _0xbeb8e4,Vector2 as _0x44f5c0,IRenderManagerService as _0x39c4de,NodePositionConvertToCursor as _0x1dca35,getColor as _0x43e11f,TEXT_RANGE_LAYER_INDEX as _0x337814,RegularPolygon as _0x3c2aad}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x358cc7,VIEWPORT_KEY as _0x1940ad,getCoordByCell as _0x35114e,getSheetObject as _0x23f9f7}from'@univerjs/sheets-ui';import{useDependency as _0x1d48ce,connectInjector as _0x50255b}from'@wendellhu/redi/react-bindings';import _0x1c416c,{forwardRef as _0x4ddef2,useRef as _0x4ff318,createElement as _0x153699}from'react';import _0x1a2218 from'clsx';import{IRemoteInstanceService as _0x34d98a}from'@univerjs/rpc';const Gi=_0x51fc53(0x136),Yi=_0x51fc53(0x22a),Ki=_0x51fc53(0x110),Xi=_0x51fc53(0x339),Ji=0x7d0,zi=_0x51fc53(0xdf),Zi=_0x51fc53(0x3a0),qi=_0x51fc53(0x162),Qi=0x7530,Is='HEARTBEAT_TIMEOUT',Es=0x2710,en=_0x51fc53(0x93),tn=0x4e20,sn='RETRY_CONNECTING_MAX_COUNT',nn=0x3,rn=_0x51fc53(0xff),on=0x3e8,an='COLLAB_SUBMIT_CHANGESET_URL',cn=_0x51fc53(0x26a),hn=_0x51fc53(0x384),ln=_0x51fc53(0x258);var Cs=(_0x2bbe97=>(_0x2bbe97[_0x2bbe97['UNDEFINED']=0x0]=_0x51fc53(0x396),_0x2bbe97[_0x2bbe97['OK']=0x1]='OK',_0x2bbe97[_0x2bbe97[_0x51fc53(0x1df)]=0x2]=_0x51fc53(0x1df),_0x2bbe97[_0x2bbe97[_0x51fc53(0x14c)]=0x3]=_0x51fc53(0x14c),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2f9)]=0x4]='NOT_FOUND',_0x2bbe97[_0x2bbe97[_0x51fc53(0x86)]=0x5]=_0x51fc53(0x86),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2fc)]=0x6]=_0x51fc53(0x2fc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x366)]=0x7]=_0x51fc53(0x366),_0x2bbe97[_0x2bbe97['TOO_MANY_REQUESTS']=0x8]=_0x51fc53(0x2a2),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1fa)]=0x9]=_0x51fc53(0x1fa),_0x2bbe97[_0x2bbe97['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x51fc53(0x311),_0x2bbe97[_0x2bbe97['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x51fc53(0x208),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1cb)]=0x1772]=_0x51fc53(0x1cb),_0x2bbe97[_0x2bbe97[_0x51fc53(0x101)]=0x1b59]=_0x51fc53(0x101),_0x2bbe97[_0x2bbe97[_0x51fc53(0x163)]=0x1b5a]=_0x51fc53(0x163),_0x2bbe97[_0x2bbe97[_0x51fc53(0x30b)]=0x1b5b]=_0x51fc53(0x30b),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1dc)]=0x1b5c]=_0x51fc53(0x1dc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2e2)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2bbe97[_0x2bbe97[_0x51fc53(0x2c8)]=0x2329]=_0x51fc53(0x2c8),_0x2bbe97[_0x2bbe97[_0x51fc53(0xbc)]=0x232a]=_0x51fc53(0xbc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x31b)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2bbe97[_0x2bbe97[_0x51fc53(0xfb)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2bbe97[_0x2bbe97[_0x51fc53(0x156)]=0x232d]=_0x51fc53(0x156),_0x2bbe97[_0x2bbe97[_0x51fc53(0x305)]=0x2711]=_0x51fc53(0x305),_0x2bbe97[_0x2bbe97[_0x51fc53(0x215)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2bbe97[_0x2bbe97['UNRECOGNIZED']=-0x1]=_0x51fc53(0x1cc),_0x2bbe97))(Cs||{}),H=(_0x5551e4=>(_0x5551e4[_0x5551e4[_0x51fc53(0xb7)]=0x0]=_0x51fc53(0xb7),_0x5551e4[_0x5551e4[_0x51fc53(0x32c)]=0x1]=_0x51fc53(0x32c),_0x5551e4[_0x5551e4['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0x5551e4[_0x5551e4[_0x51fc53(0x28c)]=0x3]=_0x51fc53(0x28c),_0x5551e4[_0x5551e4[_0x51fc53(0x1cc)]=-0x1]=_0x51fc53(0x1cc),_0x5551e4))(H||{}),I=(_0x31342f=>(_0x31342f[_0x31342f[_0x51fc53(0x13d)]=0x0]=_0x51fc53(0x13d),_0x31342f[_0x31342f[_0x51fc53(0x2bd)]=0x1]=_0x51fc53(0x2bd),_0x31342f[_0x31342f[_0x51fc53(0x8f)]=0x2]=_0x51fc53(0x8f),_0x31342f[_0x31342f[_0x51fc53(0xd8)]=0x3]=_0x51fc53(0xd8),_0x31342f[_0x31342f[_0x51fc53(0x91)]=0x4]=_0x51fc53(0x91),_0x31342f[_0x31342f['HEARTBEAT']=0x5]=_0x51fc53(0x199),_0x31342f[_0x31342f[_0x51fc53(0x326)]=0x6]='RECV',_0x31342f[_0x31342f[_0x51fc53(0x1cc)]=-0x1]=_0x51fc53(0x1cc),_0x31342f))(I||{}),Nt=(_0x119e9e=>(_0x119e9e[_0x119e9e[_0x51fc53(0x29e)]=0x0]='UNKNOWN_CODE',_0x119e9e[_0x119e9e['OK']=0x1]='OK',_0x119e9e[_0x119e9e[_0x51fc53(0xe9)]=0x2]='FAIL',_0x119e9e[_0x119e9e['UNRECOGNIZED']=-0x1]=_0x51fc53(0x1cc),_0x119e9e))(Nt||{}),_n=Object[_0x51fc53(0x18f)],un=Object[_0x51fc53(0x340)],dn=(_0x12cfea,_0x4177df,_0x19c5b6,_0x2cbe38)=>{const _0x4c38bf=_0x51fc53;for(var _0x28a436=_0x2cbe38>0x1?void 0x0:_0x2cbe38?un(_0x4177df,_0x19c5b6):_0x4177df,_0x21ebc0=_0x12cfea[_0x4c38bf(0x2c6)]-0x1,_0x2ec73c;_0x21ebc0>=0x0;_0x21ebc0--)(_0x2ec73c=_0x12cfea[_0x21ebc0])&&(_0x28a436=(_0x2cbe38?_0x2ec73c(_0x4177df,_0x19c5b6,_0x28a436):_0x2ec73c(_0x28a436))||_0x28a436);return _0x2cbe38&&_0x28a436&&_n(_0x4177df,_0x19c5b6,_0x28a436),_0x28a436;},Wt=(_0x31bccb,_0x251bae)=>(_0x7c12c0,_0x564b5a)=>_0x251bae(_0x7c12c0,_0x564b5a,_0x31bccb);let ee=class extends _0x10a29c{constructor(_0x280fbf,_0x4c0b4a){const _0xa9a552=_0x51fc53;super(),l(this,_0xa9a552(0x18b),new Map()),(this[_0xa9a552(0xa0)]=_0x280fbf,this[_0xa9a552(0x2a7)]=_0x4c0b4a,this[_0xa9a552(0x294)](_0x2f2f24(_0x124107(this[_0xa9a552(0xa0)]['getTypeOfUnitDisposed$'](_0x3504ec['UNIVER_SHEET'])['pipe'](_0x1db2aa(_0x139b88=>_0x139b88[_0xa9a552(0x244)]())),this[_0xa9a552(0xa0)][_0xa9a552(0x280)](_0x3504ec['UNIVER_DOC'])['pipe'](_0x1db2aa(_0x53dbe2=>_0x53dbe2[_0xa9a552(0x244)]())),this[_0xa9a552(0xa0)]['getTypeOfUnitDisposed$'](_0x3504ec[_0xa9a552(0x28c)])[_0xa9a552(0x2c3)](_0x1db2aa(_0x116d1f=>_0x116d1f[_0xa9a552(0x244)]())))['subscribe'](_0x1c61ee=>this['_removeRoom'](_0x1c61ee)))));}['setCurrentUser'](_0x466bdc){const _0x20f8de=_0x51fc53;this['_userManagerService'][_0x20f8de(0x20b)](_0x466bdc);}[_0x51fc53(0x328)](){const _0x32aaa7=_0x51fc53;return this[_0x32aaa7(0x2a7)]['getCurrentUser']();}[_0x51fc53(0x2e9)](_0x36920c,_0xc51979){const _0x1c9fa4=_0x51fc53;let _0x28bbcd=this[_0x1c9fa4(0x18b)][_0x1c9fa4(0x151)](_0x36920c);_0x28bbcd||(_0x28bbcd=new fn(),this[_0x1c9fa4(0x18b)][_0x1c9fa4(0x38f)](_0x36920c,_0x28bbcd)),_0x28bbcd[_0x1c9fa4(0x2e9)](_0xc51979);}[_0x51fc53(0x3be)](_0x5b3f5a,_0x495601){const _0x5bc1e7=_0x51fc53,_0x252296=this[_0x5bc1e7(0x18b)]['get'](_0x5b3f5a);_0x252296&&_0x252296['removeMember'](_0x495601);}[_0x51fc53(0x9c)](_0x4dbc98){return this['_roomMembers']['get'](_0x4dbc98);}[_0x51fc53(0xb6)](_0x3740fd,_0x21d6cb){const _0x55f914=_0x51fc53,_0x330cd8=this['_roomMembers'][_0x55f914(0x151)](_0x3740fd);if(_0x330cd8)return _0x330cd8[_0x55f914(0xb6)](_0x21d6cb);}[_0x51fc53(0x1ce)](_0x63522c){const _0x158a03=_0x51fc53,_0x13770e=this[_0x158a03(0x18b)][_0x158a03(0x151)](_0x63522c);_0x13770e&&(_0x13770e[_0x158a03(0x232)](),this[_0x158a03(0x18b)][_0x158a03(0x209)](_0x63522c));}[_0x51fc53(0x232)](){const _0x4ad3c1=_0x51fc53;this['_roomMembers'][_0x4ad3c1(0x124)](_0x42205e=>_0x42205e[_0x4ad3c1(0x232)]()),this[_0x4ad3c1(0x18b)][_0x4ad3c1(0x362)]();}};ee=dn([Wt(0x0,_0x373907),Wt(0x1,_0x4a7404(_0x1b79c3))],ee);class fn extends _0x10a29c{constructor(){const _0x51f169=_0x51fc53;super(...arguments),l(this,_0x51f169(0x236),new Map());}[_0x51fc53(0x232)](){const _0x157fbb=_0x51fc53;this[_0x157fbb(0x236)][_0x157fbb(0x362)]();}[_0x51fc53(0x2e9)](_0x5c0d1c){const _0x2d9539=_0x51fc53;this[_0x2d9539(0x236)]['set'](_0x5c0d1c[_0x2d9539(0x2ae)],_0x5c0d1c);}['removeMember'](_0x58467e){const _0x20bd8d=_0x51fc53;this[_0x20bd8d(0x236)][_0x20bd8d(0x209)](_0x58467e);}['getMember'](_0x4d6c55){const _0x168702=_0x51fc53;return this[_0x168702(0x236)]['get'](_0x4d6c55);}}function gn(_0x625b64){const _0x36f53e=_0x51fc53;var _0x2ba538,_0x1ef87e,_0x56e9dc,_0x715033;const _0x21e83a=_0x625b64[_0x36f53e(0x94)],_0x33dad9=JSON[_0x36f53e(0x2dd)](_0x21e83a);switch(_0x33dad9['cmd']){case I[_0x36f53e(0x199)]:case I['HELLO']:{const _0x31b8b5=_0x33dad9[_0x36f53e(0x1fc)];return{..._0x33dad9,'data':_0x31b8b5,'cmd':_0x33dad9[_0x36f53e(0x39c)]};}case I[_0x36f53e(0x8f)]:{const _0x28ab81=_0x33dad9['joinRsp'];return{..._0x33dad9,'data':_0x28ab81,'cmd':_0x33dad9[_0x36f53e(0x39c)]};}case I[_0x36f53e(0x326)]:{const _0x46e464=_0x33dad9[_0x36f53e(0xc3)];switch(_0x46e464[_0x36f53e(0x1ec)]){case _0x1b5c65[_0x36f53e(0x274)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x2ba538=_0x46e464[_0x36f53e(0x2c2)])==null?void 0x0:_0x2ba538['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65['CHANGESET_ACK']:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x1ef87e=_0x46e464['csAckEvent'])==null?void 0x0:_0x1ef87e['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x250)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x56e9dc=_0x46e464[_0x36f53e(0x276)])==null?void 0x0:_0x56e9dc['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x34a)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x715033=_0x46e464[_0x36f53e(0x1d2)])==null?void 0x0:_0x715033['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x235)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x128)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x2cf)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x81)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x312)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464['leaveEvent']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x213)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x201)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x18e)]:case _0x1b5c65[_0x36f53e(0x2ff)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x98)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x2e6)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x201)]},'cmd':_0x33dad9['cmd']};case _0x1b5c65[_0x36f53e(0x278)]:return{..._0x33dad9,'data':_0x46e464,'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65['COMMENT_UPDATE']:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x1d6)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};default:return _0x33dad9;}}default:return _0x33dad9;}}function mn(_0x3d01d3){const _0xad44c4=_0x51fc53;switch(_0x3d01d3[_0xad44c4(0x39c)]){case I[_0xad44c4(0x199)]:case I[_0xad44c4(0x2bd)]:return JSON['stringify']({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3['routeKey']});case I[_0xad44c4(0x91)]:{let _0x1ba6ef;switch(_0x3d01d3[_0xad44c4(0x94)]['eventID']){case _0x1b5c65[_0xad44c4(0x235)]:{_0x1ba6ef={'eventID':_0x1b5c65['UPDATE_CURSOR'],'updateCursorEvent':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x312)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x312)],'leaveEvent':_0x3d01d3['data'][_0xad44c4(0x94)]};break;}case _0x1b5c65['USERS_ENTER']:{_0x1ba6ef={'eventID':_0x1b5c65['USERS_ENTER'],'joinEvent':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x213)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x213)],'liveShareNewHost':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x2ff)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x2ff)],'liveShareOperation':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65['LIVESHARE_TERMINATE']:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x2e6)],'liveShareTerminate':_0x3d01d3['data'][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0xdc)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0xdc)],'liveShareRequestHost':_0x3d01d3[_0xad44c4(0x94)]['data']};break;}case _0x1b5c65[_0xad44c4(0x18e)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x18e)]};break;}default:_0x1ba6ef={'eventID':_0x3d01d3[_0xad44c4(0x94)]['eventID']};}return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3[_0xad44c4(0x16e)],'collaMsg':_0x1ba6ef});}case I[_0xad44c4(0x8f)]:return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3['routeKey'],'joinReq':_0x3d01d3[_0xad44c4(0x94)]});case I['LEAVE']:return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3['cmd'],'routeKey':_0x3d01d3[_0xad44c4(0x16e)],'leaveReq':_0x3d01d3[_0xad44c4(0x94)]});default:throw new Error(_0xad44c4(0x1b8));}}var Sn=Object[_0x51fc53(0x18f)],vn=Object[_0x51fc53(0x340)],pn=(_0x307a4b,_0x2a2ec9,_0x144e69,_0x1290e5)=>{const _0x363349=_0x51fc53;for(var _0x52b4a7=_0x1290e5>0x1?void 0x0:_0x1290e5?vn(_0x2a2ec9,_0x144e69):_0x2a2ec9,_0x32295a=_0x307a4b[_0x363349(0x2c6)]-0x1,_0x385801;_0x32295a>=0x0;_0x32295a--)(_0x385801=_0x307a4b[_0x32295a])&&(_0x52b4a7=(_0x1290e5?_0x385801(_0x2a2ec9,_0x144e69,_0x52b4a7):_0x385801(_0x52b4a7))||_0x52b4a7);return _0x1290e5&&_0x52b4a7&&Sn(_0x2a2ec9,_0x144e69,_0x52b4a7),_0x52b4a7;},me=(_0xb5b8e4,_0x27fdc1)=>(_0x33dea8,_0x2aa7ae)=>_0x27fdc1(_0x33dea8,_0x2aa7ae,_0xb5b8e4);const bs=_0xf73999(_0x51fc53(0x1ab));function In(_0x2c27d4,_0x103280,_0x517779){const _0x57aa84=_0x51fc53;return _0x2c27d4+'/'+_0x103280+_0x57aa84(0xea)+_0x517779+_0x57aa84(0x34f);}let _t=class{constructor(_0x2dc970,_0x3c3530,_0x3d8209,_0x561a0c,_0x2d0e74){const _0x18e5d4=_0x51fc53;this[_0x18e5d4(0x36a)]=_0x2dc970,this[_0x18e5d4(0x3a1)]=_0x3c3530,this[_0x18e5d4(0x2c4)]=_0x3d8209,this[_0x18e5d4(0x37c)]=_0x561a0c,this[_0x18e5d4(0x240)]=_0x2d0e74;}[_0x51fc53(0xec)](_0x4b7237){const _0x332eb8=_0x51fc53,_0x359e4c=this[_0x332eb8(0x3a1)][_0x332eb8(0xec)](_0x4b7237);if(!_0x359e4c)throw new Error(_0x332eb8(0x2e7));const _0x213e23=new _0x3ab8a8(),_0x173e06=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xa2)][_0x332eb8(0x202)](_0x447a51=>_0x173e06[_0x332eb8(0x275)](_0x447a51)))),_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(()=>_0x173e06[_0x332eb8(0x349)]()));const _0x2bf0f5=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xed)][_0x332eb8(0x202)](_0x455877=>_0x2bf0f5[_0x332eb8(0x275)](_0x455877)))),_0x213e23['add'](_0x2f2f24(()=>_0x2bf0f5[_0x332eb8(0x349)]()));const _0xb502bd=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xbe)][_0x332eb8(0x202)](_0x599af1=>{const _0x4054c7=_0x332eb8,_0x1fa8eb=gn(_0x599af1);_0xb502bd[_0x4054c7(0x275)](_0x1fa8eb);}))),_0x213e23['add'](_0x2f2f24(()=>_0xb502bd[_0x332eb8(0x349)]()));const _0x4caf5d=()=>{const _0x3aa63e=_0x332eb8;_0x2bf0f5[_0x3aa63e(0x275)](new Event(_0x3aa63e(0x217))),_0x173e06['next'](new CloseEvent('connection\x20error')),_0x3b6fb6[_0x3aa63e(0x3b2)]();},_0x3b6fb6={'memberID':'','close$':_0x173e06['asObservable'](),'error$':_0x2bf0f5['asObservable'](),'open$':_0x359e4c[_0x332eb8(0x34c)],'message$':_0xb502bd[_0x332eb8(0xc8)](),'send':_0x1ad2ff=>{const _0x21a41a=_0x332eb8;if(_0x1ad2ff[_0x21a41a(0x39c)]===I[_0x21a41a(0x91)]){if(_0x1ad2ff[_0x21a41a(0x94)][_0x21a41a(0x1ec)]===_0x1b5c65[_0x21a41a(0x255)]){this['_submitChangeset'](_0x3b6fb6,_0x1ad2ff['data'])['catch'](_0x386c5e=>{const _0x16f7dc=_0x21a41a;this[_0x16f7dc(0x37c)][_0x16f7dc(0x24d)](_0x386c5e),_0x4caf5d();});return;}if(_0x1ad2ff[_0x21a41a(0x94)][_0x21a41a(0x1ec)]===_0x1b5c65[_0x21a41a(0x282)]){const _0xabc340=_0x1ad2ff[_0x21a41a(0x94)];this[_0x21a41a(0xe6)](_0xabc340)[_0x21a41a(0xf4)](_0x10d7ed=>{const _0x8b1cf=_0x21a41a;_0xb502bd['next']({'cmd':I['RECV'],'code':Nt['OK'],'routeKey':_0xabc340[_0x8b1cf(0x94)][_0x8b1cf(0x1b1)],'routeType':'','data':{'eventID':_0x1b5c65['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x10d7ed}}});})[_0x21a41a(0x12e)](_0x15c6df=>{this['_logService']['error'](_0x15c6df),_0x4caf5d();});return;}}_0x359e4c['send'](mn(_0x1ad2ff));},'close':()=>{const _0x4baab3=_0x332eb8;_0x359e4c[_0x4baab3(0x3b2)](),_0x213e23['dispose']();}};return _0x3b6fb6;}async[_0x51fc53(0x21d)](_0x9c9a33,_0x2e326b){const _0x1d325b=_0x51fc53;var _0x5b3d90;const {unitType:_0x7667f1,unitID:_0x55d40a,changeset:_0x5de31a}=_0x2e326b[_0x1d325b(0x94)],_0x1218e8={'unitID':_0x55d40a,'memberID':_0x9c9a33[_0x1d325b(0x2ae)],'type':_0x7667f1,'changeset':_0x57e4b9(_0x5de31a)},_0xc79cd2=In((_0x5b3d90=this[_0x1d325b(0x2c4)]['getConfig'](an))!=null?_0x5b3d90:cn,_0x7667f1,_0x55d40a);try{await this[_0x1d325b(0x36a)][_0x1d325b(0x13a)](_0xc79cd2,{'body':_0x1218e8});}catch(_0x13b27d){throw this[_0x1d325b(0x37c)][_0x1d325b(0x24d)](_0x1d325b(0x13c),'submit\x20changeset\x20error!'),_0x13b27d;}}async[_0x51fc53(0xe6)](_0x957d4){const _0x2d7a0f=_0x51fc53,{unitID:_0x5a5310,from:_0x3f240c,to:_0x2f5434,unitType:_0x465e43}=_0x957d4[_0x2d7a0f(0x94)];return(await this[_0x2d7a0f(0x240)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5a5310,'type':_0x465e43,'from':_0x3f240c,'to':_0x2f5434}))[_0x2d7a0f(0xa3)];}};_t=pn([me(0x0,_0x4a7404(_0x142257)),me(0x1,_0x4a7404(_0x1e9f90)),me(0x2,_0x5977ca),me(0x3,_0x3cb271),me(0x4,_0x3ad936)],_t);class Rs{constructor(){const _0x6d3833=_0x51fc53;l(this,_0x6d3833(0x17b),new _0x5da41e()),l(this,_0x6d3833(0x368),this[_0x6d3833(0x17b)][_0x6d3833(0xc8)]());}[_0x51fc53(0x2b7)](_0x3899c8){const _0x19c6fa=_0x51fc53;this[_0x19c6fa(0x17b)][_0x19c6fa(0x275)](_0x3899c8);}}var En=Object[_0x51fc53(0x18f)],Cn=Object[_0x51fc53(0x340)],Ts=(_0x142f6a,_0x5a5578,_0x2706e3,_0x5b1465)=>{const _0x32dbe9=_0x51fc53;for(var _0x4cd2bc=_0x5b1465>0x1?void 0x0:_0x5b1465?Cn(_0x5a5578,_0x2706e3):_0x5a5578,_0x95d271=_0x142f6a[_0x32dbe9(0x2c6)]-0x1,_0x2e83b6;_0x95d271>=0x0;_0x95d271--)(_0x2e83b6=_0x142f6a[_0x95d271])&&(_0x4cd2bc=(_0x5b1465?_0x2e83b6(_0x5a5578,_0x2706e3,_0x4cd2bc):_0x2e83b6(_0x4cd2bc))||_0x4cd2bc);return _0x5b1465&&_0x4cd2bc&&En(_0x5a5578,_0x2706e3,_0x4cd2bc),_0x4cd2bc;},M=(_0x2bafae,_0x495728)=>(_0x1e5ebf,_0x36922b)=>_0x495728(_0x1e5ebf,_0x36922b,_0x2bafae),_e=(_0x22e537=>(_0x22e537[_0x22e537[_0x51fc53(0x19e)]=0x0]=_0x51fc53(0x19e),_0x22e537[_0x22e537[_0x51fc53(0x1f0)]=0x1]=_0x51fc53(0x1f0),_0x22e537[_0x22e537['OFFLINE']=0x2]=_0x51fc53(0x319),_0x22e537[_0x22e537[_0x51fc53(0x31f)]=0x3]=_0x51fc53(0x31f),_0x22e537))(_e||{});let ut=class extends _0x521c86{constructor(_0x413e95,_0x3d2b71,_0x391204,_0x48e34e,_0x211f28,_0x48575c,_0x481ca0,_0x40760b,_0x7126c9){const _0x4f3a4b=_0x51fc53;super(),l(this,_0x4f3a4b(0x80),new _0x5d7d96(0x0)),l(this,_0x4f3a4b(0x334),this[_0x4f3a4b(0x80)][_0x4f3a4b(0xc8)]()),l(this,'_event$',new _0x5da41e()),l(this,_0x4f3a4b(0x374),this[_0x4f3a4b(0x108)][_0x4f3a4b(0xc8)]()),l(this,_0x4f3a4b(0x2d4)),l(this,_0x4f3a4b(0x3b5)),l(this,_0x4f3a4b(0xa8)),(this[_0x4f3a4b(0x247)]=_0x413e95,this[_0x4f3a4b(0x37c)]=_0x391204,this[_0x4f3a4b(0x32b)]=_0x48e34e,this['_messageService']=_0x211f28,this[_0x4f3a4b(0x2c4)]=_0x48575c,this[_0x4f3a4b(0x344)]=_0x481ca0,this['_memberService']=_0x40760b,this['_commentService']=_0x7126c9,_0x3d2b71['pipe'](_0x430c3c(this[_0x4f3a4b(0x200)]))[_0x4f3a4b(0x202)](_0x40d585=>{const _0x225d5e=_0x4f3a4b;var _0x2b562e;typeof _0x40d585>'u'||(this[_0x225d5e(0x2d4)]=_0x40d585,_0x40d585?(this['_joinRoom'](_0x40d585),this[_0x225d5e(0x3b5)]=this['_socket']['message$'][_0x225d5e(0x202)](_0x51ec99=>{const _0x53500f=_0x225d5e;_0x51ec99[_0x53500f(0x16e)]===this[_0x53500f(0x247)]&&this[_0x53500f(0x132)](_0x51ec99);})):(this['_sessionStatus$'][_0x225d5e(0x275)](0x2),(_0x2b562e=this[_0x225d5e(0x3b5)])==null||_0x2b562e[_0x225d5e(0x11a)](),this[_0x225d5e(0x3b5)]=null));}),this[_0x4f3a4b(0x294)](this[_0x4f3a4b(0x32b)]['registerOnClose'](()=>{const _0x1348b0=_0x4f3a4b;var _0x5ffc29;(_0x5ffc29=this['_socket'])==null||_0x5ffc29[_0x1348b0(0x39e)]({'cmd':I[_0x1348b0(0xd8)],'data':{'roomID':this['_unitID']}});})));}get[_0x51fc53(0x193)](){const _0x48ae59=_0x51fc53;return this[_0x48ae59(0x80)]['getValue']();}[_0x51fc53(0x2be)](){const _0x18d724=_0x51fc53;var _0x1e6566,_0x2649b6;return(_0x2649b6=(_0x1e6566=this[_0x18d724(0x2d4)])==null?void 0x0:_0x1e6566[_0x18d724(0x2ae)])!=null?_0x2649b6:null;}[_0x51fc53(0x232)](){const _0x23f27c=_0x51fc53;super[_0x23f27c(0x232)](),this[_0x23f27c(0x200)][_0x23f27c(0x275)](),this[_0x23f27c(0x200)][_0x23f27c(0x349)]();}[_0x51fc53(0x132)](_0x2d8a37){const _0x10b636=_0x51fc53;_0x2d8a37['cmd']===I[_0x10b636(0x8f)]?this['_onJoinRoomEvent'](_0x2d8a37):_0x2d8a37[_0x10b636(0x39c)]===I[_0x10b636(0x326)]&&this[_0x10b636(0x147)](_0x2d8a37);}[_0x51fc53(0x225)](_0x5e6d12){const _0x1d6044=_0x51fc53;this[_0x1d6044(0x80)][_0x1d6044(0x275)](0x1),_0x5e6d12[_0x1d6044(0x39e)]({'cmd':I[_0x1d6044(0x8f)],'routeKey':this[_0x1d6044(0x247)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1d6044(0x247)]}]}});}[_0x51fc53(0x167)](_0x3c97fa){const _0x35c135=_0x51fc53;var _0x5374c9;if(_0x3c97fa[_0x35c135(0x141)]===Nt[_0x35c135(0xe9)]){this[_0x35c135(0x383)][_0x35c135(0x25c)]({'type':_0x1587ba[_0x35c135(0x10e)],'content':this[_0x35c135(0x344)]['t'](_0x35c135(0x246))}),this[_0x35c135(0x80)][_0x35c135(0x275)](0x2);return;}this[_0x35c135(0x80)][_0x35c135(0x275)](0x3);const _0x10b106=(_0x5374c9=_0x3c97fa[_0x35c135(0x94)][_0x35c135(0x1ba)][this[_0x35c135(0x247)]])==null?void 0x0:_0x5374c9[_0x35c135(0x327)];_0x10b106&&_0x10b106[_0x35c135(0x124)](_0x4ee42a=>this[_0x35c135(0x12b)][_0x35c135(0x2e9)](this[_0x35c135(0x247)],_0x4ee42a));}[_0x51fc53(0x147)](_0x129f53){const _0xaba17d=_0x51fc53;try{const _0x332959=_0x129f53[_0xaba17d(0x94)];switch(_0x332959['eventID']){case _0x1b5c65[_0xaba17d(0x2cf)]:this[_0xaba17d(0x335)](_0x332959),this[_0xaba17d(0x108)][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0x312)]:this[_0xaba17d(0x2ba)](_0x332959),this['_event$'][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0xf1)]:this[_0xaba17d(0x39b)](),this[_0xaba17d(0x108)]['next'](_0x332959);break;case _0x1b5c65[_0xaba17d(0x278)]:this[_0xaba17d(0x37c)][_0xaba17d(0x24d)](_0xaba17d(0x286)+JSON[_0xaba17d(0x2ea)](_0x332959)),this['_event$'][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0x33c)]:this[_0xaba17d(0x27e)]['onCommentUpdate'](_0x332959[_0xaba17d(0x94)]),this[_0xaba17d(0x108)][_0xaba17d(0x275)](_0x332959);break;default:this[_0xaba17d(0x108)]['next'](_0x332959);}}catch(_0x14ae88){this[_0xaba17d(0x37c)][_0xaba17d(0x24d)](_0x14ae88,_0x129f53);}}[_0x51fc53(0x335)](_0x3bf62d){const _0x117a0c=_0x51fc53;this['_memberService']['updateMember'](this[_0x117a0c(0x247)],_0x3bf62d['data']);}['_onUserLeave'](_0x3c541f){const _0x1bbce7=_0x51fc53;this['_memberService'][_0x1bbce7(0x3be)](this[_0x1bbce7(0x247)],_0x3c541f[_0x1bbce7(0x94)]['memberID']);}async[_0x51fc53(0x39e)](_0x34c323,_0x505b51){const _0x26e5ea=_0x51fc53;if(this['sessionStatus']!==0x3||!this[_0x26e5ea(0x2d4)])throw new Error(_0x26e5ea(0xd0));try{_0x34c323[_0x26e5ea(0x1ec)]===_0x1b5c65[_0x26e5ea(0x250)]&&this['_scheduleCollaborationTimeoutTimer'](),this['_socket'][_0x26e5ea(0x39e)]({'cmd':I['INGEST'],'routeKey':_0x505b51,'routeType':'','data':_0x34c323});}catch(_0x154e0e){this[_0x26e5ea(0x37c)][_0x26e5ea(0x24d)](_0x154e0e);}}[_0x51fc53(0x376)](){const _0x44066f=_0x51fc53;var _0x363057;this[_0x44066f(0xa8)]=window[_0x44066f(0x3a6)](()=>{const _0x4dcbfb=_0x44066f;this[_0x4dcbfb(0xa8)]=null,this[_0x4dcbfb(0x383)]['show']({'type':_0x1587ba[_0x4dcbfb(0x228)],'content':this[_0x4dcbfb(0x344)]['t'](_0x4dcbfb(0x2f7))});},(_0x363057=this['_configService'][_0x44066f(0xf0)](Is))!=null?_0x363057:Es);}['_clearCollaborationTimeoutTimer'](){const _0x3b3e29=_0x51fc53;this[_0x3b3e29(0xa8)]&&(clearTimeout(this[_0x3b3e29(0xa8)]),this[_0x3b3e29(0xa8)]=null);}};ut=Ts([M(0x2,_0x3cb271),M(0x3,_0x5e3e8f),M(0x4,_0xf8e37a),M(0x5,_0x5977ca),M(0x6,_0x4a7404(_0x201091)),M(0x7,_0x4a7404(ee)),M(0x8,_0x4a7404(Rs))],ut);let Re=class extends _0x10a29c{constructor(_0x19f937,_0x3c19bd,_0x24444a,_0x2534e9,_0x1e794f,_0x47e360){const _0xe3e856=_0x51fc53;super(),l(this,_0xe3e856(0x175),new _0x5d7d96(void 0x0)),l(this,_0xe3e856(0x154),new Map()),l(this,_0xe3e856(0x22f),new _0x5d7d96(0x0)),l(this,_0xe3e856(0x214),this[_0xe3e856(0x22f)][_0xe3e856(0xc8)]()),l(this,_0xe3e856(0x2a0),!0x1),l(this,_0xe3e856(0x1ac)),l(this,'_timeoutTimer'),l(this,_0xe3e856(0xfc)),l(this,_0xe3e856(0x10c),0x0),(this[_0xe3e856(0x342)]=_0x19f937,this[_0xe3e856(0x344)]=_0x3c19bd,this['_messageService']=_0x24444a,this[_0xe3e856(0x37c)]=_0x2534e9,this[_0xe3e856(0x2c4)]=_0x1e794f,this[_0xe3e856(0x137)]=_0x47e360);}get[_0x51fc53(0x2d4)](){const _0x1a8270=_0x51fc53;return this[_0x1a8270(0x175)]['getValue']();}['dispose'](){const _0x4cef4a=_0x51fc53;super[_0x4cef4a(0x232)](),this[_0x4cef4a(0x154)]['forEach'](_0x2531a4=>_0x2531a4['dispose']()),this[_0x4cef4a(0x154)]['clear'](),this[_0x4cef4a(0x22f)]['complete']();}async[_0x51fc53(0x1ad)](_0x347b88){const _0x18f65a=_0x51fc53;if(this['_sessions'][_0x18f65a(0x16c)](_0x347b88))return this[_0x18f65a(0x154)][_0x18f65a(0x151)](_0x347b88);this['_tryEnsureSocket']();const _0x5ba317=this[_0x18f65a(0x342)][_0x18f65a(0x3ba)](ut,_0x347b88,this[_0x18f65a(0x175)]['asObservable']());return this[_0x18f65a(0x154)][_0x18f65a(0x38f)](_0x347b88,_0x5ba317),_0x5ba317;}[_0x51fc53(0x35a)](){const _0x1b76fb=_0x51fc53;var _0x5859c4;const _0xee86b7=(_0x5859c4=this[_0x1b76fb(0x2c4)]['getConfig'](zi))!=null?_0x5859c4:Zi;return this[_0x1b76fb(0x137)]['createSocket'](_0xee86b7);}[_0x51fc53(0x2b1)](){const _0x7be8a7=_0x51fc53;try{const _0x1a8eb4=this[_0x7be8a7(0x35a)]();if(_0x1a8eb4){const _0x2a80ee=_0x1a8eb4[_0x7be8a7(0x39e)];_0x1a8eb4[_0x7be8a7(0x39e)]=_0x138009=>(this[_0x7be8a7(0x13b)](),_0x2a80ee[_0x7be8a7(0x89)](_0x1a8eb4,[_0x138009])),_0x1a8eb4[_0x7be8a7(0xbe)]['subscribe'](_0x34cc2f=>this[_0x7be8a7(0x135)](_0x1a8eb4,_0x34cc2f)),_0x1a8eb4[_0x7be8a7(0xed)][_0x7be8a7(0x2c3)](_0x51a597(0x1))[_0x7be8a7(0x202)](_0x282a10=>this[_0x7be8a7(0x37c)]['error'](_0x7be8a7(0x1b0),_0x282a10)),_0x1a8eb4[_0x7be8a7(0x34c)][_0x7be8a7(0x2c3)](_0x51a597(0x1))[_0x7be8a7(0x202)](()=>{const _0x4f62fd=_0x7be8a7;this[_0x4f62fd(0x1e9)](_0x1a8eb4);}),_0x1a8eb4['close$']['pipe'](_0x51a597(0x1))['subscribe'](_0x2594a1=>{const _0x52249b=_0x7be8a7;this[_0x52249b(0x37c)][_0x52249b(0x35e)](_0x52249b(0x365),_0x52249b(0x35c),_0x2594a1),this[_0x52249b(0x386)]();});}}catch(_0x3375aa){this[_0x7be8a7(0x37c)][_0x7be8a7(0x24d)](_0x3375aa),this[_0x7be8a7(0x386)]();}}['_onConnectionOpen'](_0xfc0b9){const _0x32ce5e=_0x51fc53;this['_logService'][_0x32ce5e(0x35e)](_0x32ce5e(0x365),_0x32ce5e(0xd7)),_0xfc0b9[_0x32ce5e(0x39e)]({'cmd':I['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x51fc53(0x386)](){const _0x1c6a80=_0x51fc53;var _0x4bdcb4;this['_status$'][_0x1c6a80(0x275)](0x2),this['_socket$'][_0x1c6a80(0x275)](null),this[_0x1c6a80(0x2f6)](),this['_clearHeartbeatTimer'](),this[_0x1c6a80(0x2a0)]=!0x1,this[_0x1c6a80(0x10c)]<((_0x4bdcb4=this['_configService']['getConfig'](sn))!=null?_0x4bdcb4:nn)?(this[_0x1c6a80(0x164)](this[_0x1c6a80(0x10c)]),this['_retryCount']+=0x1):this[_0x1c6a80(0x383)][_0x1c6a80(0x25c)]({'type':_0x1587ba[_0x1c6a80(0x228)],'content':this[_0x1c6a80(0x344)]['t'](_0x1c6a80(0x273))});}[_0x51fc53(0x164)](_0x128694){const _0x353d51=_0x51fc53;var _0x1301ac;const _0x12e307=((_0x1301ac=this['_configService'][_0x353d51(0xf0)](en))!=null?_0x1301ac:tn)*0x2**_0x128694;this['_messageService']['show']({'type':_0x1587ba[_0x353d51(0x10e)],'content':this[_0x353d51(0x344)]['t']('session.will-retry')}),this[_0x353d51(0xfc)]=setTimeout(()=>{const _0x547c2f=_0x353d51;this[_0x547c2f(0x2b1)](),clearTimeout(this[_0x547c2f(0xfc)]),this[_0x547c2f(0xfc)]=null;},_0x12e307);}[_0x51fc53(0x13b)](){const _0x13ad1d=_0x51fc53;var _0x1e61df;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x13ad1d(0x144)](),(_0x1e61df=this['_configService']['getConfig'](qi))!=null?_0x1e61df:Qi);}[_0x51fc53(0x144)](){const _0x4329e4=_0x51fc53;this[_0x4329e4(0x2d4)][_0x4329e4(0x39e)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x51fc53(0x116)](){const _0x18a740=_0x51fc53;var _0x165bd6;this['_timeoutTimer']=setTimeout(()=>this[_0x18a740(0x386)](),(_0x165bd6=this[_0x18a740(0x2c4)][_0x18a740(0xf0)](Is))!=null?_0x165bd6:Es);}[_0x51fc53(0x135)](_0x4df3d9,_0x7e37ff){const _0x1c1b98=_0x51fc53,{cmd:_0x560cc9}=_0x7e37ff;_0x560cc9===I['HELLO']&&!this[_0x1c1b98(0x2a0)]&&(_0x4df3d9['memberID']=_0x7e37ff[_0x1c1b98(0x94)][_0x1c1b98(0x2ae)],this[_0x1c1b98(0x175)][_0x1c1b98(0x275)](_0x4df3d9),this[_0x1c1b98(0x22f)][_0x1c1b98(0x275)](0x3),this[_0x1c1b98(0x2a0)]=!0x0),_0x560cc9===I[_0x1c1b98(0x199)]&&this[_0x1c1b98(0x2f6)](),this[_0x1c1b98(0x13b)]();}[_0x51fc53(0x263)](){const _0x2fb33f=_0x51fc53;this[_0x2fb33f(0x1ac)]!=null&&(clearTimeout(this[_0x2fb33f(0x1ac)]),this[_0x2fb33f(0x1ac)]=null);}['_clearTimeoutTimer'](){const _0x4005a2=_0x51fc53;this[_0x4005a2(0x249)]!=null&&(clearTimeout(this[_0x4005a2(0x249)]),this[_0x4005a2(0x249)]=null);}};Re=Ts([M(0x0,_0x4a7404(_0x44b6b8)),M(0x1,_0x4a7404(_0x201091)),M(0x2,_0xf8e37a),M(0x3,_0x3cb271),M(0x4,_0x5977ca),M(0x5,bs)],Re);var bn=Object[_0x51fc53(0x18f)],Rn=Object[_0x51fc53(0x340)],Tn=(_0x567d13,_0x51e00e,_0x3ae3b7,_0x2c22f9)=>{const _0x336913=_0x51fc53;for(var _0x4b5261=_0x2c22f9>0x1?void 0x0:_0x2c22f9?Rn(_0x51e00e,_0x3ae3b7):_0x51e00e,_0x30ad2c=_0x567d13[_0x336913(0x2c6)]-0x1,_0x1d3cd9;_0x30ad2c>=0x0;_0x30ad2c--)(_0x1d3cd9=_0x567d13[_0x30ad2c])&&(_0x4b5261=(_0x2c22f9?_0x1d3cd9(_0x51e00e,_0x3ae3b7,_0x4b5261):_0x1d3cd9(_0x4b5261))||_0x4b5261);return _0x2c22f9&&_0x4b5261&&bn(_0x51e00e,_0x3ae3b7,_0x4b5261),_0x4b5261;},Se=(_0x1f0453,_0x2c89cc)=>(_0x15837b,_0x1fbf3a)=>_0x2c89cc(_0x15837b,_0x1fbf3a,_0x1f0453);let D=class extends _0x10a29c{constructor(_0x3bc7c1,_0x33a536,_0x439f48,_0x5dc724,_0x1cd876){const _0x1ee388=_0x51fc53;super(),l(this,_0x1ee388(0x271),new Map()),l(this,_0x1ee388(0x171),new Map()),l(this,_0x1ee388(0x231),!0x1),(this[_0x1ee388(0x2c4)]=_0x3bc7c1,this[_0x1ee388(0x1a6)]=_0x33a536,this['_beforeCloseService']=_0x439f48,this['_localeService']=_0x5dc724,this[_0x1ee388(0x2f2)]=_0x1cd876,this['_setupBeforeClosingHandler']());}[_0x51fc53(0x329)](){const _0x588f9a=_0x51fc53;this[_0x588f9a(0x231)]=!0x0;}[_0x51fc53(0x1a8)](){const _0x160a0d=_0x51fc53;this[_0x160a0d(0x231)]=!0x1;}['dispose'](){const _0x299d9e=_0x51fc53;this[_0x299d9e(0xc2)]()[_0x299d9e(0xf4)](()=>super[_0x299d9e(0x232)]());}async[_0x51fc53(0x2e5)](_0x18cbd0){const _0x4fc89c=_0x51fc53;return this[_0x4fc89c(0x231)]?null:this[_0x4fc89c(0x1a6)][_0x4fc89c(0xde)](Gt(_0x18cbd0));}async[_0x51fc53(0x16a)](_0x48dc6a,_0x507d95){const _0x479067=_0x51fc53;return!!this[_0x479067(0x1a6)]['setItem'](_0x48dc6a,_0x507d95);}[_0x51fc53(0x256)](_0x249895,_0x147b95,_0x349cc0,_0x383e79){const _0x419f21=_0x51fc53,_0x17cdd5=this[_0x419f21(0x2f2)]['getCurrentRevForDocument'](_0x249895);this[_0x419f21(0x271)][_0x419f21(0x38f)](_0x249895,{'unitID':_0x249895,'type':_0x147b95,'awaitingChangeset':_0x349cc0,'mutations':_0x383e79,'rev':_0x17cdd5}),this[_0x419f21(0x171)][_0x419f21(0x16c)](_0x249895)||this['_scheduleSaving'](_0x249895);}[_0x51fc53(0x1a9)](_0x58f04b){const _0x4de993=_0x51fc53,_0x6ef425=this[_0x4de993(0x226)]();_0x6ef425===0x0?this[_0x4de993(0x2d0)](_0x58f04b):this['_saveTaskMap'][_0x4de993(0x38f)](_0x58f04b,setTimeout(()=>this[_0x4de993(0x2d0)](_0x58f04b),_0x6ef425));}[_0x51fc53(0x226)](){const _0x277e5c=_0x51fc53;var _0x1cc550;return(_0x1cc550=this['_configService'][_0x277e5c(0xf0)](rn))!=null?_0x1cc550:on;}[_0x51fc53(0x2d0)](_0x3fbb24){const _0x2f3dd5=_0x51fc53,_0x364435=this['_saveTaskMap'][_0x2f3dd5(0x151)](_0x3fbb24);return _0x364435!==void 0x0&&window[_0x2f3dd5(0x20c)](_0x364435),this['_localStorageService'][_0x2f3dd5(0x2f0)](Gt(_0x3fbb24),this['_cachedData']['get'](_0x3fbb24))[_0x2f3dd5(0xf4)](()=>this[_0x2f3dd5(0x171)][_0x2f3dd5(0x209)](_0x3fbb24));}async[_0x51fc53(0xc2)](){const _0x1d72f8=_0x51fc53,_0x5645e8=[];this[_0x1d72f8(0x171)]['forEach']((_0x2f3708,_0xe0c2b3)=>{const _0x57dfb6=_0x1d72f8;window[_0x57dfb6(0x20c)](_0x2f3708),_0x5645e8[_0x57dfb6(0x19d)](this['_saveCache'](_0xe0c2b3)[_0x57dfb6(0xf4)](()=>{const _0x1c8d49=_0x57dfb6;this['_saveTaskMap'][_0x1c8d49(0x209)](_0xe0c2b3);}));}),await Promise[_0x1d72f8(0x97)](_0x5645e8);}[_0x51fc53(0x17a)](){const _0x37d21d=_0x51fc53;this[_0x37d21d(0x294)](this[_0x37d21d(0x32b)][_0x37d21d(0x125)](()=>{const _0x2c3598=_0x37d21d;if(this[_0x2c3598(0x171)][_0x2c3598(0x23a)])return this[_0x2c3598(0x344)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Tn([Se(0x0,_0x5977ca),Se(0x1,_0x2cad44),Se(0x2,_0x5e3e8f),Se(0x3,_0x4a7404(_0x201091)),Se(0x4,_0x4a7404(_0x4d36b1))],D);function _0x18ca(){const _0x5199ce=['/universer-api/comb','_syncEditingCollabCursorService','round','9RGpKre','getTypeOfUnitAdded$','getInterceptPoints','/collaborator','_cachedData','permission.content','session.connection-failed','PERMISSION_REJ','next','newCsEvent','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','MSG_FOR_ERROR','_urlService','_unitOnClients','_name','onStarting','_renderManagerService','_commentService','_anchorDot','getTypeOfUnitDisposed$','_createInitialStateImpl','FETCH_MISSING','href','_localCacheService','fillText','save\x20fail\x20reason\x20is\x20','getSelections','string','labelPosition','fetchMissingChangesets','collaboratorID','UNIVER_SLIDE','_clearRedo','height','setParam','createElement','_onCursorUpdate','_updateState','_isPermissionRej','disposeWithMe','unshift','[CollaborationState]:\x20apply\x20error!','image/bmp','_getUploadFileURL','Error\x20on\x20receiving\x20event','Univer','_clearOtherTimers','_session','_loadSheet','UNKNOWN_CODE','fill','_socketReady','svg','TOO_MANY_REQUESTS','_entities','unload','_handleHeartbeatEvent','onRemoteAck','_userManagerService','tag','_docStateChangeManagerService','listCollaborators','_getUndoStack','_waitCount','random','memberID','unitId','originalMeta','_tryEnsureSocket','getImage','\x20-\x20','black','univer-online-status','attrs','onCommentUpdate','_createInitialState','idSuffix','_onUserLeave','removeParam','getCollabCursors$','HELLO','getMemberID','univer-offline','_getSendChangesetTimeout','[SyncedState]:\x20received\x20rejection.','permissionRejEvent','pipe','_configService','ERROR_IMAGE','length','localeService','LICENSE_MAX_UNITS_EXCEEDED','_scene','getUndoRedoMutationParamsCache','_selfUnitIDs','encode','type','[UniverCollaborationClientPlugin]','USERS_ENTER','_saveCache','Ready','addObjects','resourceIDs','_socket','isPermissionRej','8544XNwcKf','subscribeEvent','setShapeProps','roles','readAsDataURL','drawWith','_startSheetCollabCursor','parse','_getLoginPath','97296krqYso','objectActions','_notificationService','CONNECTOR_DATA_TOO_LARGE','_draw','conflict.title','loadOfflineData','LIVESHARE_TERMINATE','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_substituteUndoStack','updateMember','stringify','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','propertyIsEnumerable','getFocusedUnit','collaborators','onTransformSelections','setItem','getCurrentRevForDocument','_revisionService','/resources','_startDocCollabCursor','range','_clearTimeoutTimer','session.collaboration-timeout','_transformSelections','NOT_FOUND','selection','offline','ALREADY_EXISTS','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onRemoteChangeset','LIVESHARE_OPERATION','generateRandomId','uni.network.url-service','textRanges','_updateLocalCache','[CollaborationEntity]','YUUMI_UNABLE_LOAD_URL','baseRev','_getDocObject','getRenderById','_disableEditing','_send','APPLY_REVISION_CONFILICT','_onRefRangeChange','hasOwnProperty','startsWith','m2Prime','_handler','CHANGESET_REVISION_CONFILICT','USERS_LEAVE','toRgbString','onTransformRemoteChangesetByIMECache','_undoStacks','subunit','hide','collabCursorState$','OFFLINE','_decreaseWaiting','LICENSE_IMPORT_SIZE_EXCEEDED','_onConflict','/fetchmissing?from=','deleteCollaborator','ONLINE','getCurrent','MUTATION','_httpService','_document','setWaitCount','univer-online-status-title','RECV','members','getCurrentUser','disableLocalCache','pauseCollaboration','_beforeCloseService','UNIVER_DOC','flatMap','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','image/jpg','_HTTPService','_state$','objectID','loadDoc','sessionStatus$','_onUserJoin','fillStyle','failed\x20to\x20apply\x20missed\x20changesets!','toggleOnline','SEND_CHANGESET_TIMEOUT','univerjs-icon\x20univerjs-icon-','_getAPIPrefix','COMMENT_UPDATE','_docSkeletonManagerService','assignAColorForMemberID','_anchor','getOwnPropertyDescriptor','div','_injector','_toggleOnline','_localeService','_setupSubUnitSync','OTHER_CLIENTS_EDITING','appendMutation','_onRemoteRejected','complete','CHANGESET_REJ','off-line-single_clip0_910_343','open$','collabStatus.syncing','isArray','/new_changes','&to=','UNIVER_SHEET','_transformRemoteChangesetByIMECache','_createHandler','activeSheet$','_transformPreviousActiveRange','onStateChange','RemoveColCommandId','incrementRevForDocument','_refRangeService','_createSocket','_updateLocalCursor','socket\x20close','color','debug','_shapes','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','awaiting','clear','2651088ywRbwD','_scheduleHeartbeat','[CollaborationSessionService]','INVALID_ARGUMENT','findNodePositionByCharIndex','commentUpdate$','saveChangeset','_http','_entityInit$','onSendChangeset','_onCursorDelete','editing\x20status\x20changed\x20to','_roomMembers$','onTransformIME','_redoStacks','startColumn','_acknowledgedAwaitingChangeset','event$','setAlpha','_scheduleCollaborationTimeoutTimer','DeleteRangeMoveUpCommandId','displayName','onRemoteChangeset','path','_transitionLocked','_logService','getActiveRange','?url=','InsertRangeMoveDownCommandId','_init','_onFetchMissResult','[PendingState]:\x20received\x20acknowledgement.','_messageService','LOGIN_URL_KEY','min','_onConnectionFailed','unit','synced','6758257YqGhFL','/universer-api/snapshot/','getViewModel','_unitStatus','[FetchMissState]','_queuedRemoteChangesets','set','_cursorInfo$','currentSkeleton$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_awaitingChangeset','PENDING','_sheetSkeletonManagerService','UNDEFINED','ranges','red300','children','\x20to\x20','_clearCollaborationTimeoutTimer','cmd','slice','send','_docTransformSelectionsService','ws://127.0.0.1:8000/universer-api/comb/connect','_ws','/universer-api/stream/file/upload','indexOf','name','_incrementRevisionNumber','setTimeout','_labelPosition','defIds','getSheetBySheetId','Unknown\x20user','c1Prime','[DataLoaderController]','newValue','_docSkeleton','xlink:href','getCollabEntity$','onPointerLeave$','close','registerComponent','_ensureSubject','_socketMessageSubscription','getUnitType','isEditing','url(#off-line-single_clip0_910_343)','replace','createInstance','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','collabStatus.notCollab','transformMutationsWithChangeset','removeMember','collab-text-anchor-','_sessionStatus$','joinEvent','_id','_executeRemoteChangeset','_collabCursorController','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UNAUTHENTICATED','makeDirty','9326xNooEb','apply','_unitId','image/png','Steady','/block/','onMouseMove','JOIN','_sendingTimer','INGEST','substring','RETRY_CONNECTING_INTERVAL','data','_clearLocalCache','OffLineSingle','all','liveShareOperation','snapshot','[SyncedState]:\x20received\x20acknowledgement.','_substituteRedoStack','getRoom','COMPRESS_MUTATION_SEND','_collaborationController','_replaceFileID','_univerInstanceService','_textBubble','close$','changesets','function','_permissionService','collabStatus.conflict','_color','_collaborationTimeoutTimer','_replayCachedMutations','executeCommand','map','json','_type','use','revision','getViewport','/object','interceptor','_eventUnsubscribe','onCommandExecuted','awaiting_with_pending','getMember','UNIVER_UNKNOWN','/allowed','_removeCollabCursors','urlChange$','_getSnapshotAPIPrefix','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','[CollaborationUndoRedoService]','message$','endRow','onload','off-line-single','_exhaustSavingTask','collaMsg','_updateCollabCursors','transformSelections','\x0aCurrent:\x20','mutations','asObservable','src','_scheduleTimestamp','conflict','_hover','getOwnPropertySymbols','getCellPositionByOffset','_config','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','fetchThroughInterceptors','fromCollab','_cursors','_uiPartsService','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_hovered','socket\x20open.','LEAVE','with','_getSheetObject','_toggleOffline','LIVESHARE_REQUEST_HOST','pending','getItem','COLLAB_WEB_SOCKET_URL','objectType','5342630naCUdn','replaceState','[PendingState]:\x20received\x20rejection.','SYNCED','icon','_fetchMissChangesets','add','2084656ThyvmU','FAIL','/unit/','NOT_COLLAB','createSocket','error$','jiqing500','setActiveRange','getConfig','CHANGESET_ACK','session','selections','then','translate(.97)','NO_OTHER_CLIENTS_EDITING','[OfflineState]:\x20received\x20changeset.','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','blue400','entries','LICENSE_EXPORT_SIZE_EXCEEDED','_retryConnectingTimer','_removeClearOtherTimer','moveTo','LOCAL_CACHE_INTERVAL','pushState','APPLY_REJECT','_transformService','split','addObject','FileId','setUndoRedoMutationParamsCache','collabStatus.synced','_event$','_singleActiveUnitService','confirm','sheetId','_retryCount','_updateStatus','Warning','_handleLeaveEvent','SNAPSHOT_URL_KEY','focused$','storage','_commandService','_applyRemoteChangeset','_clearUndo','_waitForHeartbeatResponse','file','_getMergeRange','_sheetTransformSelectionsService','unsubscribe','_handleEvent','_getSignURL','Starting','includes','clearInterval','/universer-api/authz','values','row','cursorInfo$','forEach','registerBeforeClose','onSyncEditingCollabCursor','font','updateCursorEvent','cursorInfo','current','_memberService','_updateSubUnitFromURLParams','onMissingChangesets','catch','30KvsGIM','ERROR_EXCEED_SIZE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onCombEvent','_exhaustRemoteChangesetQueue','[OfflineState]:\x20received\x20acknowledgement.','_onMessage','SNAPSHOT_SERVER_URL_KEY','_socketService','InsertRangeMoveRightCommandId','replaceTextRanges','post','_rescheduleHeartbeatEvent','[CollaborationSession]','UNKNOWN_CMD','_transformStack','_compressMutationService','url(#on-line-single_clip0_910_349)','code','some','fetch_missing','_sendHeartbeat','colorChannel1','1em','_onRecvEvent','_getCtorByUniverType','updateCollaborator','_handleHover','concat','PERMISSION_DENIED','ACTIVE_UNIT_EVENT_CHANNEL','_onRemoteACK','image/gif','hovered','get','doc.mutation.rich-text-editing','closePath','_sessions','addImageSourceCache','LICENSE_DISTRO_REJECTED','gold400','_schedule','arc','onlineStatusTitle','2569DFSqzp','_getScale','getTime','getValue','bottom','batchAllowed','_getCurrentRevision','HEARTBEAT_INTERVAL','APPLY_NON_SEQUENTIAL_REVISION','_scheduleReconnection','measureText','getMergeData','_onJoinRoomEvent','append','onPointerEnter$','saveOfflineData','_themeService','has','_syncEditingCollabCursor','routeKey','_clearScheduledTask','change$','_saveTaskMap','startRow','_state','_initStatusListener','_socket$','COMPRESS_MUTATION_APPLY','transformByState','toggleOffline','getCollabEntity','_setupBeforeClosingHandler','_commentUpdate$','from','width','FromArray','enableAuthServer','AWAITING','state','lineTo','deepClone','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','call','triggerDblclick','editingUnit','awaitingChangeset','_cursor','_render','_roomMembers','_transformUndoRedoStack','fillRule','LIVESHARE_FETCH_OPERATIONS','defineProperty','_imageSourceCache','init','url','sessionStatus','registerHTTPInterceptor','onlineStatusIcon','_handleJoinEvent','resend','_initModules','HEARTBEAT','put','encodeURIComponent','actions','push','IDLE','currentColor','univer-online','trim','AWAITING_WITH_PENDING','unit-cache-','_lastPointer','result','_localStorageService','currentTheme$','enableLocalCache','_scheduleSaving','[OfflineState]:\x20received\x20rejection.','univer-pro.collaboration-client-socket-service','_sendHeartbeatTimer','requireSession','saveImage','/object/','[CollaborationSessionService]:\x20socket\x20error','unitID','_collabSessionService','whenReady','purple300','_getAnchorBounding','sheets','syncEditingCollabCursor','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','popstate','roomInfos','reject','_undoRedoService','toString','_transformIMECache','_docSyncEditingCollabCursorService','OnLineSingle','roomMembers$','24vlsADW','_hideTimer','getCurrentUnitForType','rgba(255,\x20255,\x20255,\x200.01)','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_onLocalMutation','params','socketService','onRemoteRej','SNAPSHOT_HAS_BEEN_REMOVED','UNRECOGNIZED','getRangePointData','_removeRoom','title','collab-text-range-','on-line-single_clip0_910_349','csRejEvent','update','column','extend','commentUpdateEvent','saveSnapshot','getDataModel','online','resolve','EXCHANGE_SIGN_URL_SERVER_URL_KEY','APPLY_PERMISSION_DENIED','_docTransformIMECacheService','_remoteChangesetQueue','INTERNAL_ERROR','_lockTransition','find','UUID','getActiveSheet','_pendingMutations','_snapshotService','ERROR_IMAGE_TYPE','_colorAssignService','_checkMissing','_onConnectionOpen','userID','rev','eventID','unknown','getUnitStatus$','getSheetId','JOINING','5kwoUmp','save','_range','onlyLocal','prototype','updatePermissionPoint','verdancy600','_unlockTransition','patch','COMPLETION_FINISHED','_getAPIPrefixPath','infoRsp','_colorIndex','createCollaborator','image/jpeg','dispose$','liveShareNewHost','subscribe','_loadDoc','reverse','filter','onPointerMove$','top','SNAPSHOT_INVALID_SNAPSHOT','delete','not_collab','setCurrentUser','clearTimeout','MoveRangeCommandId','/rev/','CONFLICT','collaboration.single-unit.warning','body','_getRedoStack','LIVESHARE_NEW_HOST','status$','YUUMI_URL_COL_OUT_OF_RANGE','max','connection\x20error','_collaborationPaused','assign','roomMembers','enableOfflineEditing','transformChangesets','_submitChangeset','location','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','history','className','onlineStatus','_startCollaboration','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_joinRoom','_getSaveTimeout','_change$','Error','...','/universer-api/snapshot','univer-pro.collaboration-client.single-active-unit-service','transformIMECache','M0\x200H16V16H0z','getParam','_status$','saveSheetBlock','_disabled','dispose','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','#fff','UPDATE_CURSOR','_members','UNIVER_COLLABORATION_CLIENT_PLUGIN','univer-online-status-icon','_heartbeatTimer','size','workbook','_assignedColors','collaborationUniverTypes','collabStatus.offline','HEADER_MENU','_snapshotServerService','{fileID}','getAncestorScale','_transformUndoredo','getUnitId','state$','session.room-full','_unitID','text','_timeoutTimer','addEventListener','getUnhiddenWorksheets','auth.needGotoLoginAlert','error','target','searchParams','NEW_CHANGESETS','clipPath','FETCH_MISS','status','getResourcesRequest','SUBMIT_CHANGESET','updateOfflineData','conflict.content','/universer-api/oidc/authpage','transformMutation','evenodd','_updateURLWithCurrentState','show','m1Prime','_drawAnchor','beginPath','_scheduleClearOtherTimer','restore','_drawRange','_clearHeartbeatTimer','defs','_online','none','fetching\x20missing\x20changesets\x20from\x20','sheetID','PSEUDO_FETCH_MISSING_RESULT'];_0x18ca=function(){return _0x5199ce;};return _0x18ca();}function Gt(_0x3c0871){const _0x24e7d0=_0x51fc53;return _0x24e7d0(0x1a3)+_0x3c0871;}const Xe=_0xf73999(_0x51fc53(0x22b));var Os=(_0x14b6ec=>(_0x14b6ec[_0x14b6ec[_0x51fc53(0xf6)]=0x0]=_0x51fc53(0xf6),_0x14b6ec[_0x14b6ec['OTHER_CLIENTS_EDITING']=0x1]=_0x51fc53(0x346),_0x14b6ec))(Os||{});const Yt=0x7530,Kt=_0x51fc53(0x14d);class On extends _0x10a29c{constructor(){const _0x49237e=_0x51fc53;super(),l(this,_0x49237e(0x82),_0x4cfbd7['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x49237e(0x239),null),l(this,_0x49237e(0x29b),new Map()),l(this,_0x49237e(0x38c),new Map()),this['_init']();}[_0x51fc53(0x232)](){const _0x3859b4=_0x51fc53;super[_0x3859b4(0x232)](),this['_clearOtherTimers']['forEach']((_0x27c810,_0x439676)=>this[_0x3859b4(0xfd)](_0x439676)),this[_0x3859b4(0x239)]&&window[_0x3859b4(0x11f)](this[_0x3859b4(0x239)]);}['getUnitStatus$'](_0x4dfe60){const _0x4dedd9=_0x51fc53;return this[_0x4dedd9(0x3b4)](_0x4dfe60)['pipe'](_0xe50b30());}[_0x51fc53(0x187)](_0x5a27a2){const _0x256a06=_0x51fc53;this['_selfUnitIDs'][_0x256a06(0x23a)]===0x0&&this[_0x256a06(0x364)](),this[_0x256a06(0x2cb)][_0x256a06(0xe7)](_0x5a27a2),this[_0x256a06(0x30a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5a27a2],'isForwarded':!0x1});}['disposeUnit'](_0x3c14fc){const _0x4e764c=_0x51fc53;this[_0x4e764c(0x2cb)][_0x4e764c(0x209)](_0x3c14fc),this['_selfUnitIDs'][_0x4e764c(0x23a)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x4e764c(0x239)]);}['_init'](){const _0x1c3f3d=_0x51fc53;this['disposeWithMe'](_0x2f2f24(_0x1860dc(window,_0x1c3f3d(0x112))['subscribe'](_0x7d2cc7=>{const _0x1a3858=_0x1c3f3d;if(_0x7d2cc7['key']!==Kt||!_0x7d2cc7[_0x1a3858(0x3ad)])return;const _0x3e9850=JSON[_0x1a3858(0x2dd)](_0x7d2cc7[_0x1a3858(0x3ad)]);this['_handleEvent'](_0x3e9850);}))),window[_0x1c3f3d(0x24a)](_0x1c3f3d(0x2a4),()=>this[_0x1c3f3d(0x30a)]({'type':0x1,'memberID':this[_0x1c3f3d(0x82)],'unitIDs':Array[_0x1c3f3d(0x17c)](this[_0x1c3f3d(0x2cb)])}));}[_0x51fc53(0x11b)](_0x5b6daf){const _0x461a1f=_0x51fc53;switch(_0x5b6daf[_0x461a1f(0x2cd)]){case 0x0:this['_handleJoinEvent'](_0x5b6daf);break;case 0x1:this[_0x461a1f(0x10f)](_0x5b6daf);break;case 0x2:this[_0x461a1f(0x2a5)](_0x5b6daf);break;}}[_0x51fc53(0x196)](_0x40c84b){const _0x43ecce=_0x51fc53,{unitIDs:_0x34bfed,memberID:_0x4b8c4f,isForwarded:_0x1dd111}=_0x40c84b;_0x34bfed[_0x43ecce(0x124)](_0x2432f6=>{const _0x51f5fe=_0x43ecce;if(!_0x1dd111&&this[_0x51f5fe(0x27a)][_0x51f5fe(0x16c)](_0x2432f6)&&this[_0x51f5fe(0x3b4)](_0x2432f6)[_0x51f5fe(0x275)](0x1),!this['_unitOnClients'][_0x51f5fe(0x16c)](_0x2432f6)||!this[_0x51f5fe(0x27a)][_0x51f5fe(0x151)](_0x2432f6)[_0x51f5fe(0x16c)](_0x4b8c4f)){const _0x787785=this[_0x51f5fe(0x27a)][_0x51f5fe(0x151)](_0x2432f6)||new Set();_0x787785[_0x51f5fe(0xe7)](_0x4b8c4f),this[_0x51f5fe(0x27a)][_0x51f5fe(0x38f)](_0x2432f6,_0x787785),this[_0x51f5fe(0x260)](_0x4b8c4f);}}),_0x1dd111||this[_0x43ecce(0x30a)]({'type':0x0,'memberID':this[_0x43ecce(0x82)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x291848){const _0x5977ce=_0x51fc53;this[_0x5977ce(0xfd)](_0x291848);const _0x19d883=window[_0x5977ce(0x3a6)](()=>{this['_unitOnClients']['forEach'](_0x78235e=>{_0x78235e['delete'](_0x291848);});},Yt*0x2);this[_0x5977ce(0x29b)][_0x5977ce(0x38f)](_0x291848,_0x19d883);}[_0x51fc53(0xfd)](_0x3c7be8){const _0x2b7579=_0x51fc53;if(this[_0x2b7579(0x29b)]['has'](_0x3c7be8)){const _0x1d4b8c=this[_0x2b7579(0x29b)]['get'](_0x3c7be8);_0x1d4b8c&&window[_0x2b7579(0x20c)](_0x1d4b8c),this['_clearOtherTimers']['set'](_0x3c7be8,null);}}[_0x51fc53(0x10f)](_0x3c1122){const _0x1cc5cd=_0x51fc53,{memberID:_0x593a24,unitIDs:_0x2b8915}=_0x3c1122;_0x2b8915[_0x1cc5cd(0x124)](_0x5f090d=>{const _0x5b2608=_0x1cc5cd;var _0x38c161;const _0x2fdd01=this[_0x5b2608(0x27a)][_0x5b2608(0x151)](_0x5f090d);_0x2fdd01&&(_0x2fdd01[_0x5b2608(0x209)](_0x593a24),(_0x38c161=this[_0x5b2608(0x3b4)](_0x5f090d))==null||_0x38c161[_0x5b2608(0x275)](_0x2fdd01[_0x5b2608(0x23a)]===0x0?0x0:0x1));}),this[_0x1cc5cd(0xfd)](_0x593a24);}[_0x51fc53(0x2a5)](_0x3b0b2d){const _0x4796f8=_0x51fc53;this[_0x4796f8(0x260)](_0x3b0b2d['memberID']);}['_send'](_0x8e176){const _0x5dd6d1=_0x51fc53;localStorage[_0x5dd6d1(0x2f0)](Kt,JSON[_0x5dd6d1(0x2ea)](_0x8e176));}[_0x51fc53(0x364)](){const _0x19b02e=_0x51fc53;this[_0x19b02e(0x239)]=window['setInterval'](()=>{const _0x34e71b=_0x19b02e;this[_0x34e71b(0x30a)]({'type':0x2,'memberID':this['_id']});},Yt);}[_0x51fc53(0x3b4)](_0x3cc3df){const _0xcfe4fd=_0x51fc53;return this[_0xcfe4fd(0x38c)]['has'](_0x3cc3df)||this[_0xcfe4fd(0x38c)][_0xcfe4fd(0x38f)](_0x3cc3df,new _0x5d7d96(0x0)),this['_unitStatus']['get'](_0x3cc3df);}}var Dn=Object[_0x51fc53(0x18f)],wn=Object[_0x51fc53(0x340)],Pn=(_0x4e5240,_0x28b81d,_0xb8902e,_0x3612cf)=>{const _0x51711a=_0x51fc53;for(var _0x41a75a=_0x3612cf>0x1?void 0x0:_0x3612cf?wn(_0x28b81d,_0xb8902e):_0x28b81d,_0x1d8464=_0x4e5240[_0x51711a(0x2c6)]-0x1,_0x5637e6;_0x1d8464>=0x0;_0x1d8464--)(_0x5637e6=_0x4e5240[_0x1d8464])&&(_0x41a75a=(_0x3612cf?_0x5637e6(_0x28b81d,_0xb8902e,_0x41a75a):_0x5637e6(_0x41a75a))||_0x41a75a);return _0x3612cf&&_0x41a75a&&Dn(_0x28b81d,_0xb8902e,_0x41a75a),_0x41a75a;},Xt=(_0x58e8a0,_0x5a4309)=>(_0x3d8b53,_0x3e0243)=>_0x5a4309(_0x3d8b53,_0x3e0243,_0x58e8a0);let Be=class{constructor(_0xa87404,_0x16bc1b){const _0x3b4e86=_0x51fc53;this[_0x3b4e86(0x342)]=_0xa87404,this[_0x3b4e86(0x102)]=_0x16bc1b;}[_0x51fc53(0x22c)](_0x4dc2c3){const _0x9d7dba=_0x51fc53;this[_0x9d7dba(0x18c)](_0x4dc2c3),this[_0x9d7dba(0x355)](_0x4dc2c3);}['transformRemoteChangeset'](_0x434645){const _0x368178=_0x51fc53,_0x5d26a2=this[_0x368178(0x342)][_0x368178(0x151)](_0x57e020),{redoCache:_0x3a1135}=_0x5d26a2[_0x368178(0x2ca)]();if(_0x3a1135[_0x368178(0x2c6)]===0x0)return _0x434645;let _0x1647c0=_0x4cfbd7[_0x368178(0x183)](_0x434645['mutations'][0x0]);for(let _0x3f0c09=0x0;_0x3f0c09<_0x3a1135[_0x368178(0x2c6)];_0x3f0c09++){const _0x36e7d1={'id':_0x368178(0x152),'params':{..._0x3a1135[_0x3f0c09]}},_0x4623e8=this[_0x368178(0x102)][_0x368178(0x259)](_0x1647c0,_0x36e7d1,!0x1);if(_0xcc662a(_0x4623e8))throw _0x4623e8['error'];_0x1647c0=_0x4623e8[_0x368178(0x25d)];}return{..._0x4cfbd7[_0x368178(0x183)](_0x434645),'mutations':[_0x1647c0]};}[_0x51fc53(0x18c)](_0x5b0e0d){const _0x3ade08=_0x51fc53,_0x442ab2=this['_injector'][_0x3ade08(0x151)](_0x57e020),{undoCache:_0x2ec6cb,redoCache:_0x2a8beb}=_0x442ab2[_0x3ade08(0x2ca)]();if(_0x2ec6cb[_0x3ade08(0x2c6)]===0x0||_0x2a8beb[_0x3ade08(0x2c6)]===0x0)return;const _0x204a77=[],_0x2e4a7f=[];let _0x2d1d6c=_0x4cfbd7['deepClone'](_0x5b0e0d[_0x3ade08(0xc7)][0x0]),_0x24e2ef=_0x4cfbd7[_0x3ade08(0x183)](_0x5b0e0d[_0x3ade08(0xc7)][0x0]);for(let _0x357fc8=_0x2ec6cb[_0x3ade08(0x2c6)]-0x1;_0x357fc8>=0x0;_0x357fc8--){const _0x21c12b={'id':_0x3ade08(0x152),'params':{..._0x2ec6cb[_0x357fc8]}},_0x352d1c={'id':_0x3ade08(0x152),'params':{..._0x2a8beb[_0x357fc8]}},_0x275625=this['_transformService'][_0x3ade08(0x259)](_0x2d1d6c,_0x21c12b,!0x1),_0x4a3cb9=this[_0x3ade08(0x102)]['transformMutation'](_0x24e2ef,_0x352d1c,!0x1);if(_0xcc662a(_0x275625))throw _0x275625['error'];if(_0xcc662a(_0x4a3cb9))throw _0x4a3cb9[_0x3ade08(0x24d)];_0x204a77[_0x3ade08(0x295)](_0x275625[_0x3ade08(0x30f)][_0x3ade08(0x1c8)]),_0x2e4a7f[_0x3ade08(0x295)](_0x4a3cb9[_0x3ade08(0x30f)][_0x3ade08(0x1c8)]),_0x2d1d6c=_0x275625['m1Prime'],_0x24e2ef=_0x4a3cb9['m1Prime'];}_0x442ab2[_0x3ade08(0x106)]({'undoCache':_0x204a77,'redoCache':_0x2e4a7f});}[_0x51fc53(0x355)](_0x1d909d){const _0x29acee=_0x51fc53,_0x203f23=this['_injector']['get'](_0x57e020),_0x1b8b0f=_0x203f23[_0x29acee(0x37d)]();if(_0x1b8b0f==null)return;const _0xdaf90d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d909d['unitID'],'actions':null,'textRanges':[_0x1b8b0f]}}],_0x4d21e4=this[_0x29acee(0x102)][_0x29acee(0x3bd)](_0x1d909d,_0xdaf90d);if(!_0x5a8972(_0x4d21e4))throw _0x4d21e4[_0x29acee(0x24d)];const _0x3d0133=_0x4d21e4['m2Prime'][0x0][_0x29acee(0x1c8)]['textRanges'];Array[_0x29acee(0x34e)](_0x3d0133)&&_0x3d0133[_0x29acee(0x2c6)]&&_0x203f23[_0x29acee(0xef)](_0x3d0133[0x0]);}};Be=Pn([Xt(0x0,_0x4a7404(_0x44b6b8)),Xt(0x1,_0x425e9b)],Be);var Nn=Object[_0x51fc53(0x18f)],Mn=Object[_0x51fc53(0x340)],An=(_0x3033e3,_0x9fb173,_0x595868,_0x19eb0a)=>{const _0x5c4466=_0x51fc53;for(var _0x3aaf3f=_0x19eb0a>0x1?void 0x0:_0x19eb0a?Mn(_0x9fb173,_0x595868):_0x9fb173,_0x1c1261=_0x3033e3[_0x5c4466(0x2c6)]-0x1,_0x208511;_0x1c1261>=0x0;_0x1c1261--)(_0x208511=_0x3033e3[_0x1c1261])&&(_0x3aaf3f=(_0x19eb0a?_0x208511(_0x9fb173,_0x595868,_0x3aaf3f):_0x208511(_0x3aaf3f))||_0x3aaf3f);return _0x19eb0a&&_0x3aaf3f&&Nn(_0x9fb173,_0x595868,_0x3aaf3f),_0x3aaf3f;},Jt=(_0x2a144a,_0x51e388)=>(_0x48f78a,_0x2e66b7)=>_0x51e388(_0x48f78a,_0x2e66b7,_0x2a144a);let ke=class{constructor(_0x46c0b1,_0x26f919){const _0x563856=_0x51fc53;this[_0x563856(0x342)]=_0x46c0b1,this[_0x563856(0x102)]=_0x26f919;}[_0x51fc53(0xc5)](_0x3cd0a2){const _0x33ed89=_0x51fc53;var _0x5c1e20;const _0x342702=this['_injector'][_0x33ed89(0x151)](_0x58dacd),_0x49f6d4=(_0x5c1e20=_0x342702[_0x33ed89(0x287)]())!=null?_0x5c1e20:[],_0xaeb166=_0x49f6d4==null?void 0x0:_0x49f6d4['map'](_0x2646e0);if(_0xaeb166[_0x33ed89(0x2c6)]===0x0)return;const _0x37e9e6=[{'id':_0x33ed89(0x152),'params':{'unitId':_0x3cd0a2['unitID'],'actions':null,'textRanges':_0xaeb166}}],_0x12f21a=this['_transformService'][_0x33ed89(0x3bd)](_0x3cd0a2,_0x37e9e6);if(!_0x5a8972(_0x12f21a))throw _0x12f21a[_0x33ed89(0x24d)];const _0x1a4ca7=_0x12f21a['m2Prime'][0x0]['params'][_0x33ed89(0x302)];Array['isArray'](_0x1a4ca7)&&_0x1a4ca7[_0x33ed89(0x2c6)]&&_0x342702[_0x33ed89(0x139)](_0x1a4ca7,!0x1);}};ke=An([Jt(0x0,_0x4a7404(_0x44b6b8)),Jt(0x1,_0x425e9b)],ke);function Ds(_0x17017c){const _0x3ee394=_0x51fc53;let _0x229727='';for(const _0x36b906 of _0x17017c){const {startOffset:_0x3519d1,endOffset:_0x605cf3,isActive:_0x2d623d}=_0x36b906;_0x229727[_0x3ee394(0x2c6)]&&(_0x229727+=','),_0x229727+=_0x3519d1+':'+_0x605cf3+':'+(_0x2d623d?'1':'0');}return _0x229727;}function yn(_0x326d52){const _0xe03a6a=_0x51fc53,_0x58a7f9=_0x326d52['split'](','),_0x370780=[];for(const _0x1decca of _0x58a7f9){const [_0x1a3ad3,_0x3a33e0,_0x1fceec]=_0x1decca[_0xe03a6a(0x103)](':');_0x370780[_0xe03a6a(0x19d)]({'startOffset':Number(_0x1a3ad3),'endOffset':Number(_0x3a33e0),'collapsed':_0x1a3ad3===_0x3a33e0,'isActive':_0x1fceec==='1'});}return _0x370780[_0xe03a6a(0x142)](_0x1ad813=>_0x1ad813['isActive'])||(_0x370780[0x0]['isActive']=!0x0),_0x370780;}class Mt extends _0x521c86{constructor(){const _0x37c41e=_0x51fc53;super(...arguments),l(this,'_collabCursorState$',new _0x5d7d96(null)),l(this,_0x37c41e(0x318),this['_collabCursorState$']['asObservable']());}[_0x51fc53(0x1b7)](_0xc92d27){const _0x4cb7c2=_0x51fc53,{unitID:_0x4c5bbd,memberID:_0x5c0e5d,textRanges:_0x3f6bea}=_0xc92d27,_0x48a16e=Ds(_0x3f6bea),_0x33a97f={'unitID':_0x4c5bbd,'memberID':_0x5c0e5d,'selection':_0x48a16e};this['_collabCursorState$'][_0x4cb7c2(0x275)](_0x33a97f);}}var Un=Object['defineProperty'],Ln=Object[_0x51fc53(0x340)],$n=(_0x7a8adb,_0xcb8aae,_0x1d44f9,_0x5ad8b0)=>{for(var _0x4ef787=_0x5ad8b0>0x1?void 0x0:_0x5ad8b0?Ln(_0xcb8aae,_0x1d44f9):_0xcb8aae,_0xa23060=_0x7a8adb['length']-0x1,_0x2a1bf3;_0xa23060>=0x0;_0xa23060--)(_0x2a1bf3=_0x7a8adb[_0xa23060])&&(_0x4ef787=(_0x5ad8b0?_0x2a1bf3(_0xcb8aae,_0x1d44f9,_0x4ef787):_0x2a1bf3(_0x4ef787))||_0x4ef787);return _0x5ad8b0&&_0x4ef787&&Un(_0xcb8aae,_0x1d44f9,_0x4ef787),_0x4ef787;},zt=(_0x1a2c06,_0x40049e)=>(_0x21259b,_0x5715c6)=>_0x40049e(_0x21259b,_0x5715c6,_0x1a2c06);let Ve=class{constructor(_0x6f73d7,_0x31a3ec){const _0x393549=_0x51fc53;this[_0x393549(0x342)]=_0x6f73d7,this[_0x393549(0x102)]=_0x31a3ec;}['transformSelections'](_0x172c0a){const _0x5c4a95=_0x51fc53;var _0x1a8411,_0x4ce5e8,_0xaf891c,_0x226827;const _0x34f67d=this['_injector'][_0x5c4a95(0x151)](_0x5c112f),{pluginName:_0x1dd79c,unitId:_0x49526d,sheetId:_0x3c9017}=_0x34f67d[_0x5c4a95(0x320)]()||{},_0x21db35=(_0x1a8411=_0x34f67d[_0x5c4a95(0x287)]())!=null?_0x1a8411:[];if(_0x21db35[_0x5c4a95(0x2c6)]===0x0||!_0x1dd79c||!_0x49526d||!_0x3c9017)return;const _0x5d0210=[{'id':_0x2708b7['id'],'params':{'unitId':_0x49526d,'subUnitId':_0x3c9017,'pluginName':_0x1dd79c,'selections':_0x4cfbd7[_0x5c4a95(0x183)](_0x21db35)}}],_0x58759b=this[_0x5c4a95(0x102)][_0x5c4a95(0x3bd)](_0x172c0a,_0x5d0210);if(!_0x5a8972(_0x58759b))throw _0x58759b['error'];const _0x29ce31=(_0x226827=(_0xaf891c=(_0x4ce5e8=_0x58759b['m2Prime'][0x0])==null?void 0x0:_0x4ce5e8[_0x5c4a95(0x1c8)])==null?void 0x0:_0xaf891c[_0x5c4a95(0xf3)])!=null?_0x226827:_0x21db35;Array[_0x5c4a95(0x34e)](_0x29ce31)&&_0x29ce31['length']&&this[_0x5c4a95(0x342)][_0x5c4a95(0x151)](_0x568418)[_0x5c4a95(0xaa)](_0x2708b7['id'],{'unitId':_0x49526d,'subUnitId':_0x3c9017,'pluginName':_0x1dd79c,'selections':_0x29ce31});}};Ve=$n([zt(0x0,_0x4a7404(_0x44b6b8)),zt(0x1,_0x425e9b)],Ve);const jn=new Set([_0x75b52d['id']]);function Hn(_0xee69da,_0x609f36,_0x276c32,_0x1ae9bb,_0x386944){const _0x48fff9=_0x51fc53;var _0xa2c052,_0x1491c0,_0x813fa1,_0x25d687;const _0x2f6267=[];for(const _0x27d4bb of _0xee69da)if(jn[_0x48fff9(0x16c)](_0x27d4bb['id'])){if(_0x2f6267[_0x48fff9(0x2c6)]>0x0)break;_0x2f6267['push'](_0x27d4bb);break;}else _0x2f6267[_0x48fff9(0x19d)](_0x27d4bb);const _0x265215=(_0x1491c0=(_0xa2c052=_0x386944[_0x48fff9(0x328)]())==null?void 0x0:_0xa2c052[_0x48fff9(0x1ea)])!=null?_0x1491c0:_0x48fff9(0x1ed),_0x4ff4f4=(_0x25d687=(_0x813fa1=_0x386944[_0x48fff9(0x328)]())==null?void 0x0:_0x813fa1[_0x48fff9(0x2ae)])!=null?_0x25d687:_0x48fff9(0x1ed);return{'changeset':{'unitID':_0x609f36,'type':_0x23bb45(_0x276c32['getUnitType'](_0x609f36)),'baseRev':_0x1ae9bb[_0x48fff9(0x2f1)](_0x609f36),'revision':0x0,'userID':_0x265215,'memberID':_0x4ff4f4,'mutations':_0x2f6267},'pendingMutations':_0xee69da[_0x48fff9(0x39d)](_0x2f6267[_0x48fff9(0x2c6)])};}function xn(_0x16afcb,_0x2058c8,_0x2b750a,_0x537a1a,_0x59ba1d){const _0x230af8=_0x51fc53;var _0x266713,_0x2f2171,_0x464a27,_0x1a8523;const _0x28b895=[_0x16afcb['reduce']((_0x34db57,_0x3d6063)=>{const _0x6849f6=_0x5e69;var _0x1d84cc;const {id:_0xe47810}=_0x34db57,{id:_0x43bb00,type:_0x1437bf}=_0x3d6063,_0x56de3b=(_0x1d84cc=_0x34db57[_0x6849f6(0x1c8)])!=null?_0x1d84cc:{'actions':null},_0x6cb9b9=_0x3d6063[_0x6849f6(0x1c8)];if(_0xe47810&&_0xe47810!==_0x43bb00)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0xe47810+_0x6849f6(0x2b3)+_0x43bb00+'.');return{..._0x34db57,'id':_0x43bb00,'type':_0x1437bf,'params':{'unitId':_0x6cb9b9['unitId'],'textRanges':_0x6cb9b9[_0x6849f6(0x302)],'actions':_0xe185f6['compose'](_0x56de3b[_0x6849f6(0x19c)],_0x6cb9b9[_0x6849f6(0x19c)])}};},{})],_0x4fefa4=(_0x2f2171=(_0x266713=_0x59ba1d[_0x230af8(0x328)]())==null?void 0x0:_0x266713[_0x230af8(0x1ea)])!=null?_0x2f2171:_0x230af8(0x1ed),_0x5af5b4=(_0x1a8523=(_0x464a27=_0x59ba1d[_0x230af8(0x328)]())==null?void 0x0:_0x464a27[_0x230af8(0x2ae)])!=null?_0x1a8523:'unknown';return{'changeset':{'unitID':_0x2058c8,'type':_0x23bb45(_0x2b750a[_0x230af8(0x3b6)](_0x2058c8)),'baseRev':_0x537a1a[_0x230af8(0x2f1)](_0x2058c8),'revision':0x0,'userID':_0x4fefa4,'memberID':_0x5af5b4,'mutations':_0x28b895},'pendingMutations':[]};}var Fn=Object[_0x51fc53(0x18f)],Bn=Object[_0x51fc53(0x340)],ne=(_0x409c80,_0x4ba946,_0x46bbc2,_0x393195)=>{for(var _0x13b711=_0x393195>0x1?void 0x0:_0x393195?Bn(_0x4ba946,_0x46bbc2):_0x4ba946,_0xdf54a3=_0x409c80['length']-0x1,_0x456d6f;_0xdf54a3>=0x0;_0xdf54a3--)(_0x456d6f=_0x409c80[_0xdf54a3])&&(_0x13b711=(_0x393195?_0x456d6f(_0x4ba946,_0x46bbc2,_0x13b711):_0x456d6f(_0x13b711))||_0x13b711);return _0x393195&&_0x13b711&&Fn(_0x4ba946,_0x46bbc2,_0x13b711),_0x13b711;},g=(_0x4c5a63,_0x260f70)=>(_0x4485f3,_0x382513)=>_0x260f70(_0x4485f3,_0x382513,_0x4c5a63),P=(_0x18d067=>(_0x18d067[_0x51fc53(0xeb)]=_0x51fc53(0x20a),_0x18d067[_0x51fc53(0xe4)]=_0x51fc53(0x388),_0x18d067['PENDING']=_0x51fc53(0xdd),_0x18d067[_0x51fc53(0x180)]=_0x51fc53(0x361),_0x18d067[_0x51fc53(0x1a2)]='awaiting_with_pending',_0x18d067['FETCH_MISS']=_0x51fc53(0x143),_0x18d067[_0x51fc53(0x20f)]=_0x51fc53(0xcb),_0x18d067[_0x51fc53(0x319)]='offline',_0x18d067))(P||{});class re{constructor(_0x766915,_0x1b62cd,_0x583917,_0x2b9efc,_0x29b4b6,_0x147355,_0x3e3169,_0x4b6189,_0x6fb4ab){const _0x3ad224=_0x51fc53;l(this,_0x3ad224(0x393),null),l(this,_0x3ad224(0x1e4),[]),(this[_0x3ad224(0x1b1)]=_0x766915,this[_0x3ad224(0x2cd)]=_0x1b62cd,this[_0x3ad224(0x310)]=_0x29b4b6,this[_0x3ad224(0x113)]=_0x147355,this[_0x3ad224(0x1bc)]=_0x3e3169,this[_0x3ad224(0x2f2)]=_0x4b6189,this[_0x3ad224(0x284)]=_0x6fb4ab,this[_0x3ad224(0x393)]=_0x583917,this[_0x3ad224(0x1e4)]=_0x2b9efc);}[_0x51fc53(0x1e8)](_0x53440a){const _0x254257=_0x51fc53,_0x204f8c=this[_0x254257(0x2f2)][_0x254257(0x2f1)](this['unitID']);return _0x53440a[_0x254257(0xaf)]>_0x204f8c+0x1?(this[_0x254257(0x310)][_0x254257(0x12d)]({'from':_0x204f8c,'to':_0x53440a[_0x254257(0xaf)]-0x1}),!0x0):!0x1;}[_0x51fc53(0x243)](_0x16ef5b){const _0x121481=_0x51fc53;this[_0x121481(0x1bc)]['transformUndoRedo'](this['unitID'],_0x16ef5b);}[_0x51fc53(0x2f8)](_0x785818){const _0x36107a=_0x51fc53;var _0x2ea8b8,_0x2b62e0;(_0x2b62e0=(_0x2ea8b8=this['_handler'])[_0x36107a(0x2ef)])==null||_0x2b62e0[_0x36107a(0x185)](_0x2ea8b8,_0x785818);}[_0x51fc53(0x1be)](_0xe0237b){const _0x1d1269=_0x51fc53;var _0xd9f6a3,_0x265bdc;return(_0x265bdc=(_0xd9f6a3=this[_0x1d1269(0x310)])[_0x1d1269(0x370)])==null?void 0x0:_0x265bdc[_0x1d1269(0x185)](_0xd9f6a3,_0xe0237b);}['_transformRemoteChangesetByIMECache'](_0xfe9400){const _0x12a99b=_0x51fc53;var _0x36a775,_0x2b5588,_0x39c9dd;return(_0x39c9dd=(_0x2b5588=(_0x36a775=this[_0x12a99b(0x310)])[_0x12a99b(0x314)])==null?void 0x0:_0x2b5588[_0x12a99b(0x185)](_0x36a775,_0xfe9400))!=null?_0x39c9dd:_0xfe9400;}[_0x51fc53(0x16d)](_0x54c5c4){const _0xb3eeee=_0x51fc53;var _0x1bdc49,_0xba77b0;if(this[_0xb3eeee(0x2cd)]===H[_0xb3eeee(0x32c)]){const {unitID:_0x3b9d97,mutations:_0x54aa5e,memberID:_0x30db9b}=_0x54c5c4,_0x26dffc=_0x54aa5e[0x0][_0xb3eeee(0x1c8)][_0xb3eeee(0x302)];Array['isArray'](_0x26dffc)&&_0x26dffc[_0xb3eeee(0x2c6)]>0x0&&((_0xba77b0=(_0x1bdc49=this['_handler'])[_0xb3eeee(0x126)])==null||_0xba77b0[_0xb3eeee(0x185)](_0x1bdc49,{'unitID':_0x3b9d97,'memberID':_0x30db9b,'textRanges':_0x26dffc}));}}[_0x51fc53(0x303)](){const _0x4716e2=_0x51fc53;this[_0x4716e2(0x284)][_0x4716e2(0x256)](this['unitID'],this[_0x4716e2(0x2cd)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x51fc53(0x161)](){const _0xf35fa8=_0x51fc53;return this[_0xf35fa8(0x2f2)]['getCurrentRevForDocument'](this[_0xf35fa8(0x1b1)]);}[_0x51fc53(0x3a5)](){const _0x154262=_0x51fc53;this[_0x154262(0x2f2)][_0x154262(0x358)](this[_0x154262(0x1b1)]);}['_executeRemoteChangeset'](_0x365ec3){const _0x14c38=_0x51fc53;var _0x446ce8;const _0xbb0777=this[_0x14c38(0x352)](_0x365ec3),_0x213e31=_0x4bf5fd(_0xbb0777[_0x14c38(0xc7)],this[_0x14c38(0x113)],{'fromCollab':!0x0});if(!_0x213e31['result'])throw _0x213e31[_0x14c38(0x24d)]instanceof Error?_0x213e31[_0x14c38(0x24d)]:new Error((_0x446ce8=_0x213e31[_0x14c38(0x24d)])!=null?_0x446ce8:_0x14c38(0x296));this[_0x14c38(0x1be)](_0xbb0777),this['_transformUndoredo'](_0x365ec3),this[_0x14c38(0x2f8)](_0xbb0777),this[_0x14c38(0x16d)](_0xbb0777),this[_0x14c38(0x3a5)]();}}let Te=class extends re{constructor(_0x42391d,_0x1cb562,_0x2abd49,_0x203f07,_0x4b67f0,_0x38b59b,_0x593d29,_0x12b8a5,_0x11bb7d){const _0x2c2323=_0x51fc53;super(_0x42391d,_0x1cb562,null,[],_0x2abd49,_0x12b8a5,_0x593d29,_0x203f07,_0x4b67f0),l(this,_0x2c2323(0x253),_0x2c2323(0x388)),(this[_0x2c2323(0x342)]=_0x38b59b,this[_0x2c2323(0x37c)]=_0x11bb7d);}['appendMutation'](_0x48c299){const _0x36d2c7=_0x51fc53,_0x39fdea=this[_0x36d2c7(0x342)][_0x36d2c7(0x3ba)](k,this['unitID'],this[_0x36d2c7(0x2cd)],[_0x48c299],this['_handler']);return _0x39fdea[_0x36d2c7(0x158)](),_0x39fdea[_0x36d2c7(0x303)](),_0x39fdea;}[_0x51fc53(0x379)](_0x5d0ebc){const _0x196053=_0x51fc53;if(this['_checkMissing'](_0x5d0ebc))return this[_0x196053(0x342)][_0x196053(0x3ba)](W,this[_0x196053(0x1b1)],this[_0x196053(0x2cd)],null,[],null,[_0x5d0ebc],this[_0x196053(0x310)]);try{return this['_executeRemoteChangeset'](_0x5d0ebc),this;}catch(_0x4db34e){return this[_0x196053(0x37c)]['error'](_0x196053(0x32e),_0x4db34e),this;}}[_0x51fc53(0x2a6)](){const _0x104c09=_0x51fc53;throw new Error(_0x104c09(0x9a));}[_0x51fc53(0x1ca)](){const _0x12f907=_0x51fc53;throw new Error(_0x12f907(0x2c1));}['toggleOffline'](){const _0xcb96b0=_0x51fc53;return this['_injector'][_0xcb96b0(0x3ba)](J,this[_0xcb96b0(0x1b1)],this[_0xcb96b0(0x2cd)],null,[],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x197)](){const _0x48711b=_0x51fc53;throw new Error(_0x48711b(0x3bb));}};Te=ne([g(0x3,_0x4a7404(_0x4d36b1)),g(0x4,_0x4a7404(D)),g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x5815e0),g(0x7,_0x568418),g(0x8,_0x3cb271)],Te);let k=class extends re{constructor(_0x17461f,_0x4eb8d0,_0x268498,_0x4baa6c,_0x5ecb8d,_0x3930bc,_0x4c3dfa,_0x215338,_0x4d1a2b,_0x3e5f2a,_0x10b2af,_0x347cd7,_0x37f11c,_0x1e36ea){const _0x1f76dc=_0x51fc53;super(_0x17461f,_0x4eb8d0,null,_0x268498,_0x4baa6c,_0x3e5f2a,_0x1e36ea,_0x3930bc,_0x4c3dfa),l(this,'status',_0x1f76dc(0xdd)),l(this,_0x1f76dc(0xca),null),l(this,_0x1f76dc(0x90),null),(this[_0x1f76dc(0x342)]=_0x5ecb8d,this['_memberService']=_0x215338,this['_logService']=_0x4d1a2b,this['_configService']=_0x10b2af,this[_0x1f76dc(0x102)]=_0x347cd7,this[_0x1f76dc(0xa0)]=_0x37f11c);}[_0x51fc53(0x347)](_0x392744){const _0x56620a=_0x51fc53;return this[_0x56620a(0x1e4)]['push'](_0x392744),this[_0x56620a(0x303)](),this;}[_0x51fc53(0x379)](_0x1aa55d){const _0x2cd8bb=_0x51fc53;if(this['_checkMissing'](_0x1aa55d))return this[_0x2cd8bb(0x16f)](),this[_0x2cd8bb(0x342)][_0x2cd8bb(0x3ba)](W,this[_0x2cd8bb(0x1b1)],this[_0x2cd8bb(0x2cd)],null,this['_pendingMutations'],null,[_0x1aa55d],this[_0x2cd8bb(0x310)]);try{const _0x2fb56d=this['_transformService'][_0x2cd8bb(0x3bd)](_0x1aa55d,this['_pendingMutations']);if(_0x5a8972(_0x2fb56d)){const {c1Prime:_0x2c0285,m2Prime:_0xbc9b44}=_0x2fb56d;this[_0x2cd8bb(0x83)](_0x2c0285);const _0x19731f=this[_0x2cd8bb(0x342)][_0x2cd8bb(0x3ba)](k,this['unitID'],this[_0x2cd8bb(0x2cd)],_0xbc9b44,this['_handler']);return this[_0x2cd8bb(0x16f)](),_0x19731f[_0x2cd8bb(0x158)](this[_0x2cd8bb(0xca)]?Math[_0x2cd8bb(0x216)](0x0,new Date()[_0x2cd8bb(0x15d)]()-this[_0x2cd8bb(0xca)]):this[_0x2cd8bb(0x2c0)]()),_0x19731f;}throw _0x2fb56d[_0x2cd8bb(0x24d)];}catch(_0x458c51){return this[_0x2cd8bb(0x37c)][_0x2cd8bb(0x24d)](_0x458c51),this[_0x2cd8bb(0x31c)](!0x1);}}['onRemoteAck'](){const _0x333574=_0x51fc53;throw new Error(_0x333574(0x382));}['onRemoteRej'](){const _0x3058e1=_0x51fc53;throw new Error(_0x3058e1(0xe3));}[_0x51fc53(0x178)](){const _0x2b9f7a=_0x51fc53;return this[_0x2b9f7a(0x16f)](),this[_0x2b9f7a(0x342)][_0x2b9f7a(0x3ba)](J,this[_0x2b9f7a(0x1b1)],this[_0x2b9f7a(0x2cd)],null,this[_0x2b9f7a(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x158)](_0x3b95f9){const _0x58ae07=_0x51fc53;_0x3b95f9=_0x3b95f9!=null?_0x3b95f9:this['_getSendChangesetTimeout'](),this[_0x58ae07(0xca)]=new Date()[_0x58ae07(0x15d)](),this[_0x58ae07(0x90)]=setTimeout(()=>{const _0x15fc1b=_0x58ae07;this['_clearScheduledTask']();let _0x3d5bac=null;switch(this['type']){case H[_0x15fc1b(0x351)]:{_0x3d5bac=Hn(this[_0x15fc1b(0x1e4)],this['unitID'],this[_0x15fc1b(0xa0)],this[_0x15fc1b(0x2f2)],this[_0x15fc1b(0x12b)]);break;}case H[_0x15fc1b(0x32c)]:{_0x3d5bac=xn(this[_0x15fc1b(0x1e4)],this[_0x15fc1b(0x1b1)],this[_0x15fc1b(0xa0)],this[_0x15fc1b(0x2f2)],this['_memberService']);break;}default:throw new Error(_0x15fc1b(0x131)+this[_0x15fc1b(0x2cd)]+'\x20in\x20_schedule.');}const {changeset:_0x50ffe0,pendingMutations:_0x25c013}=_0x3d5bac;this[_0x15fc1b(0x310)][_0x15fc1b(0x36c)](_0x50ffe0);const _0x55a26d=_0x25c013[_0x15fc1b(0x2c6)]?this['_injector'][_0x15fc1b(0x3ba)](V,this[_0x15fc1b(0x1b1)],this['type'],_0x50ffe0,_0x25c013,this['_handler']):this['_injector'][_0x15fc1b(0x3ba)](X,this[_0x15fc1b(0x1b1)],this['type'],_0x50ffe0,this[_0x15fc1b(0x310)]);_0x55a26d[_0x15fc1b(0x303)](),this[_0x15fc1b(0x310)][_0x15fc1b(0x356)](this,_0x55a26d);},_0x3b95f9);}[_0x51fc53(0x2c0)](){const _0x5f4ff9=_0x51fc53;var _0x42de14;return(_0x42de14=this[_0x5f4ff9(0x2c4)][_0x5f4ff9(0xf0)](Xi))!=null?_0x42de14:Ji;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x51fc53(0x16f)](){const _0x3d9928=_0x51fc53;this[_0x3d9928(0x90)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x51fc53(0x31c)](_0x3bce27){const _0x5281db=_0x51fc53;return this[_0x5281db(0x16f)](),this[_0x5281db(0x342)]['createInstance'](te,this[_0x5281db(0x1b1)],this[_0x5281db(0x2cd)],null,this[_0x5281db(0x1e4)],this['_handler'],_0x3bce27);}};k=ne([g(0x4,_0x4a7404(_0x44b6b8)),g(0x5,_0x4a7404(_0x4d36b1)),g(0x6,_0x4a7404(D)),g(0x7,_0x4a7404(ee)),g(0x8,_0x3cb271),g(0x9,_0x568418),g(0xa,_0x5977ca),g(0xb,_0x425e9b),g(0xc,_0x373907),g(0xd,_0x5815e0)],k);let X=class extends re{constructor(_0x43166f,_0x4e937d,_0x4a67cd,_0x38aaac,_0x45dd49,_0xaf4e62,_0x2cdb63,_0x126f63,_0x2df3db,_0x215e17,_0x25805b){const _0x4853c8=_0x51fc53;super(_0x43166f,_0x4e937d,_0x4a67cd,[],_0x38aaac,_0x126f63,_0x25805b,_0xaf4e62,_0x2cdb63),l(this,'status',_0x4853c8(0x361)),(this['_injector']=_0x45dd49,this[_0x4853c8(0x37c)]=_0x2df3db,this['_transformService']=_0x215e17);}['appendMutation'](_0x65515c){const _0x452c1c=_0x51fc53,_0x2b1ab7=this[_0x452c1c(0x342)][_0x452c1c(0x3ba)](V,this['unitID'],this['type'],this[_0x452c1c(0x393)],[_0x65515c],this[_0x452c1c(0x310)]);return _0x2b1ab7[_0x452c1c(0x303)](),_0x2b1ab7;}['onRemoteChangeset'](_0x1dfbf0){const _0x48355b=_0x51fc53;if(this[_0x48355b(0x1e8)](_0x1dfbf0))return this[_0x48355b(0x342)][_0x48355b(0x3ba)](W,this['unitID'],this[_0x48355b(0x2cd)],this[_0x48355b(0x393)],[],null,[_0x1dfbf0],this[_0x48355b(0x310)]);try{const _0x5c6b68=this[_0x48355b(0x102)]['transformChangesets']([_0x1dfbf0],[this['_awaitingChangeset']],!0x1);if(_0x4b3216(_0x5c6b68)){const {c1Prime:_0x427238,c2Prime:_0x3f66ef}=_0x5c6b68;this[_0x48355b(0x83)](_0x427238[0x0]),_0x3f66ef[0x0][_0x48355b(0x306)]=this[_0x48355b(0x161)]();const _0x184ed8=this[_0x48355b(0x342)][_0x48355b(0x3ba)](X,this['unitID'],this[_0x48355b(0x2cd)],_0x3f66ef[0x0],this[_0x48355b(0x310)]);return _0x184ed8[_0x48355b(0x303)](),_0x184ed8;}return this[_0x48355b(0x31c)](!0x1);}catch(_0x5645b7){return this[_0x48355b(0x37c)][_0x48355b(0x24d)](_0x5645b7),this[_0x48355b(0x31c)](!0x1);}}[_0x51fc53(0x2a6)](_0x180d91){const _0x152522=_0x51fc53,_0x25b94e=this[_0x152522(0x2f2)]['getCurrentRevForDocument'](this[_0x152522(0x1b1)]);if(_0x180d91[_0x152522(0xaf)]<_0x25b94e-0x1)return this;if(this[_0x152522(0x1e8)](_0x180d91))return this[_0x152522(0x342)][_0x152522(0x3ba)](W,this['unitID'],this[_0x152522(0x2cd)],null,[],this[_0x152522(0x393)],[],this[_0x152522(0x310)]);this[_0x152522(0x3a5)]();const _0x5ace1e=this['_injector'][_0x152522(0x3ba)](Te,this[_0x152522(0x1b1)],this['type'],this[_0x152522(0x310)]);return _0x5ace1e[_0x152522(0x303)](),_0x5ace1e;}[_0x51fc53(0x1ca)](_0x5aa84f){const _0xf9b54f=_0x51fc53;return this['_onConflict'](!!(_0x5aa84f!=null&&_0x5aa84f[_0xf9b54f(0x2d5)]));}[_0x51fc53(0x178)](){const _0x3de89e=_0x51fc53;return this[_0x3de89e(0x342)][_0x3de89e(0x3ba)](J,this[_0x3de89e(0x1b1)],this['type'],this[_0x3de89e(0x393)],[],this[_0x3de89e(0x310)]);}[_0x51fc53(0x338)](){return this;}['resend'](){const _0x3cd03a=_0x51fc53;this[_0x3cd03a(0x310)][_0x3cd03a(0x36c)](this[_0x3cd03a(0x393)]);}['_onConflict'](_0x261c93){const _0x411518=_0x51fc53;return this[_0x411518(0x342)]['createInstance'](te,this['unitID'],this[_0x411518(0x2cd)],this['_awaitingChangeset'],[],this[_0x411518(0x310)],_0x261c93);}};X=ne([g(0x4,_0x4a7404(_0x44b6b8)),g(0x5,_0x4a7404(_0x4d36b1)),g(0x6,_0x4a7404(D)),g(0x7,_0x568418),g(0x8,_0x3cb271),g(0x9,_0x425e9b),g(0xa,_0x5815e0)],X);let V=class extends re{constructor(_0x33b412,_0x5771d4,_0x579b7f,_0x1ed133,_0x2dc007,_0x2ebab4,_0x498cdc,_0x395e61,_0x254117,_0xa54aa2,_0x4f6574,_0x3ebfc8){const _0x3eec32=_0x51fc53;super(_0x33b412,_0x5771d4,_0x579b7f,_0x1ed133,_0x2dc007,_0x254117,_0x3ebfc8,_0x498cdc,_0x395e61),l(this,_0x3eec32(0x253),_0x3eec32(0xb5)),(this[_0x3eec32(0x342)]=_0x2ebab4,this['_logService']=_0xa54aa2,this['_transformService']=_0x4f6574);}[_0x51fc53(0x347)](_0x2de94b){const _0x4603aa=_0x51fc53;return this[_0x4603aa(0x1e4)]['push'](_0x2de94b),this;}['onRemoteChangeset'](_0x491296){const _0x3da192=_0x51fc53;if(this[_0x3da192(0x1e8)](_0x491296))return this[_0x3da192(0x342)][_0x3da192(0x3ba)](W,this[_0x3da192(0x1b1)],this[_0x3da192(0x2cd)],this['_awaitingChangeset'],this[_0x3da192(0x1e4)],null,[_0x491296],this[_0x3da192(0x310)]);try{const _0x569b49=this[_0x3da192(0x102)][_0x3da192(0x21c)]([_0x491296],[this['_awaitingChangeset']],!0x1);if(_0x4b3216(_0x569b49)){const {c1Prime:_0x2d71ba,c2Prime:_0x20c268}=_0x569b49,_0x1772d9=this[_0x3da192(0x102)][_0x3da192(0x3bd)](_0x2d71ba[0x0],this[_0x3da192(0x1e4)]);if(_0x5a8972(_0x1772d9)){const {c1Prime:_0x494a5c,m2Prime:_0xd8e518}=_0x1772d9;return this[_0x3da192(0x83)](_0x494a5c),_0x20c268[0x0][_0x3da192(0x306)]=this[_0x3da192(0x161)](),this[_0x3da192(0x342)][_0x3da192(0x3ba)](V,this[_0x3da192(0x1b1)],this[_0x3da192(0x2cd)],_0x20c268[0x0],_0xd8e518,this[_0x3da192(0x310)]);}throw _0x1772d9[_0x3da192(0x24d)];}throw _0x569b49['error'];}catch(_0x3035b5){return this[_0x3da192(0x37c)][_0x3da192(0x24d)](_0x3035b5),this[_0x3da192(0x31c)](!0x1);}}[_0x51fc53(0x2a6)](_0x2ca0d1){const _0x1e878f=_0x51fc53;if(this[_0x1e878f(0x1e8)](_0x2ca0d1))return this[_0x1e878f(0x342)][_0x1e878f(0x3ba)](W,this[_0x1e878f(0x1b1)],this[_0x1e878f(0x2cd)],null,this[_0x1e878f(0x1e4)],this[_0x1e878f(0x393)],[],this['_handler']);this[_0x1e878f(0x3a5)]();const _0x39845d=this[_0x1e878f(0x342)][_0x1e878f(0x3ba)](k,this[_0x1e878f(0x1b1)],this['type'],this[_0x1e878f(0x1e4)],this['_handler']);return _0x39845d[_0x1e878f(0x158)](),_0x39845d[_0x1e878f(0x303)](),_0x39845d;}[_0x51fc53(0x1ca)](_0x3a499c){const _0x22fa60=_0x51fc53;return this['_onConflict'](!!(_0x3a499c!=null&&_0x3a499c[_0x22fa60(0x2d5)]));}[_0x51fc53(0x178)](){const _0x425e3c=_0x51fc53;return this['_injector'][_0x425e3c(0x3ba)](J,this[_0x425e3c(0x1b1)],this[_0x425e3c(0x2cd)],this[_0x425e3c(0x393)],this[_0x425e3c(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x197)](){const _0x3075f3=_0x51fc53;this[_0x3075f3(0x310)][_0x3075f3(0x36c)](this[_0x3075f3(0x393)]);}[_0x51fc53(0x31c)](_0x3cd73e){const _0xe7b5a4=_0x51fc53;return this[_0xe7b5a4(0x342)][_0xe7b5a4(0x3ba)](te,this[_0xe7b5a4(0x1b1)],this[_0xe7b5a4(0x2cd)],null,this['_pendingMutations'],this[_0xe7b5a4(0x310)],_0x3cd73e);}};V=ne([g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x4a7404(_0x4d36b1)),g(0x7,_0x4a7404(D)),g(0x8,_0x568418),g(0x9,_0x3cb271),g(0xa,_0x425e9b),g(0xb,_0x5815e0)],V);let te=class extends re{constructor(_0x5b9f1e,_0x1b45eb,_0x37e8d7,_0x4c5b9d,_0x1c68f8,_0x1a9594=!0x1,_0x3e27c5,_0x2eadc2,_0xd06a45,_0x422384,_0x40aaf2,_0x4e73a7,_0x40ecac){const _0x7fe423=_0x51fc53;super(_0x5b9f1e,_0x1b45eb,_0x37e8d7,_0x4c5b9d,_0x1c68f8,_0x2eadc2,_0xd06a45,_0x40aaf2,_0x422384),l(this,'status',_0x7fe423(0xcb)),(this[_0x7fe423(0x293)]=_0x1a9594,this[_0x7fe423(0xa5)]=_0x3e27c5,this[_0x7fe423(0x344)]=_0x4e73a7,this[_0x7fe423(0x2e1)]=_0x40ecac,this['_showConflictNotification'](),this[_0x7fe423(0x95)](),this[_0x7fe423(0x309)]());}[_0x51fc53(0x347)](){return this;}[_0x51fc53(0x379)](){return this;}[_0x51fc53(0x2a6)](){return this;}[_0x51fc53(0x1ca)](){return this;}[_0x51fc53(0x178)](){return this;}[_0x51fc53(0x338)](){return this;}['resend'](){const _0x545401=_0x51fc53;throw new Error(_0x545401(0xf8));}[_0x51fc53(0x95)](){const _0x5e14ef=_0x51fc53;this[_0x5e14ef(0x284)][_0x5e14ef(0x256)](this[_0x5e14ef(0x1b1)],this[_0x5e14ef(0x2cd)],null,[]);}['_showConflictNotification'](){const _0x35e70a=_0x51fc53;this[_0x35e70a(0x293)]?this[_0x35e70a(0x2e1)][_0x35e70a(0x25c)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x35e70a(0x344)]['t'](_0x35e70a(0x272)),'type':_0x35e70a(0x24d),'duration':0x0}):this['_notificationService'][_0x35e70a(0x25c)]({'title':this[_0x35e70a(0x344)]['t'](_0x35e70a(0x2e4)),'content':this['_localeService']['t'](_0x35e70a(0x257)),'type':_0x35e70a(0x24d),'duration':0x0});}[_0x51fc53(0x309)](){const _0x248c15=_0x51fc53;this[_0x248c15(0xa5)][_0x248c15(0x1f6)](new _0x4b6c4e(this['unitID'])['id'],!0x1);}};te=ne([g(0x6,_0x4a7404(_0x57bd86)),g(0x7,_0x568418),g(0x8,_0x5815e0),g(0x9,_0x4a7404(D)),g(0xa,_0x4a7404(_0x4d36b1)),g(0xb,_0x4a7404(_0x201091)),g(0xc,_0x3c139b)],te);let J=class extends re{constructor(_0xac715,_0x47b453,_0xd77c4,_0x1c581c,_0x221ccb,_0x1518bb,_0x4fb248,_0x554b18,_0x5a8840,_0x3759b0){const _0x29739c=_0x51fc53;super(_0xac715,_0x47b453,_0xd77c4,_0x1c581c,_0x221ccb,_0x5a8840,_0x3759b0,_0x4fb248,_0x554b18),l(this,'status',_0x29739c(0x2fb)),this[_0x29739c(0x342)]=_0x1518bb;}['appendMutation'](_0x244ca9){const _0x162fd1=_0x51fc53;return this[_0x162fd1(0x1e4)][_0x162fd1(0x19d)](_0x244ca9),this[_0x162fd1(0x303)](),this;}[_0x51fc53(0x379)](_0x47beee){const _0x1814be=_0x51fc53;throw new Error(_0x1814be(0xf7));}[_0x51fc53(0x2a6)](){const _0x1d3ac0=_0x51fc53;throw new Error(_0x1d3ac0(0x134));}[_0x51fc53(0x1ca)](){const _0x46fe7c=_0x51fc53;throw new Error(_0x46fe7c(0x1aa));}['toggleOffline'](){return this;}[_0x51fc53(0x338)](){const _0x390e97=_0x51fc53,{_injector:_0x52b0c4,_pendingMutations:_0x25072b,_awaitingChangeset:_0x20455e,unitID:_0x5e8d03,_handler:_0xbd0199,type:_0x5ad599}=this,_0x44c8cb=ws(_0x52b0c4,_0x5e8d03,_0x5ad599,_0x20455e,_0x25072b,_0xbd0199);return _0x44c8cb instanceof k?_0x44c8cb[_0x390e97(0x158)]():(_0x44c8cb instanceof V||_0x44c8cb instanceof X)&&_0x44c8cb[_0x390e97(0x197)](),_0x44c8cb;}[_0x51fc53(0x197)](){const _0x242e90=_0x51fc53;throw new Error(_0x242e90(0x224));}};J=ne([g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x4a7404(_0x4d36b1)),g(0x7,_0x4a7404(D)),g(0x8,_0x568418),g(0x9,_0x5815e0)],J);let W=class extends re{constructor(_0x1712b8,_0x1b284e,_0x51cc49,_0x329fe8,_0xd04850,_0x8299f6,_0x408a19,_0x31b5c3,_0x4b53de,_0x31531,_0x57d064,_0x26e2d8,_0x2d1b51,_0x2782a1){const _0x1561fe=_0x51fc53;super(_0x1712b8,_0x1b284e,_0x51cc49,_0x329fe8,_0x408a19,_0x26e2d8,_0x2d1b51,_0x4b53de,_0x31531),l(this,'status',_0x1561fe(0x143)),(this[_0x1561fe(0x373)]=_0xd04850,this[_0x1561fe(0x38e)]=_0x8299f6,this[_0x1561fe(0x342)]=_0x31b5c3,this['_logService']=_0x57d064,this[_0x1561fe(0x102)]=_0x2782a1);}['onMissedChangesetFetched'](_0x5bbeb1){const _0x22323b=_0x51fc53;try{const _0x3d10ec=[..._0x5bbeb1,...this[_0x22323b(0x38e)]],_0x1b4607=[this[_0x22323b(0x393)]||this['_acknowledgedAwaitingChangeset']][_0x22323b(0x205)](_0x527786=>!!_0x527786);let _0x3b29cf,_0x144527;if(_0x1b4607[_0x22323b(0x2c6)]){const _0x5089ce=this[_0x22323b(0x102)][_0x22323b(0x21c)](_0x3d10ec,_0x1b4607,!0x1);if(!_0x4b3216(_0x5089ce))throw _0x5089ce['error'];_0x3b29cf=_0x5089ce[_0x22323b(0x3ab)],_0x144527=_0x5089ce['c2Prime'];}else _0x3b29cf=_0x3d10ec,_0x144527=[];let _0x19631a=this['_pendingMutations'];_0x3b29cf[_0x22323b(0x124)](_0x434f8f=>{const _0x420857=_0x22323b;let _0x5a7696;if(_0x19631a[_0x420857(0x2c6)]){const _0x5d312c=this[_0x420857(0x102)][_0x420857(0x3bd)](_0x434f8f,_0x19631a);if(!_0x5a8972(_0x5d312c))throw _0x5d312c[_0x420857(0x24d)];_0x5a7696=_0x5d312c[_0x420857(0x3ab)],_0x19631a=_0x5d312c[_0x420857(0x30f)];}else _0x5a7696=_0x434f8f;this[_0x420857(0x83)](_0x5a7696);}),this[_0x22323b(0x373)]&&this[_0x22323b(0x3a5)](),this[_0x22323b(0x393)]&&_0x144527[_0x22323b(0x2c6)]&&(_0x144527[0x0][_0x22323b(0x306)]=this['_getCurrentRevision']());let _0x34f724;if(this[_0x22323b(0x393)]&&_0x19631a['length']!==0x0)_0x34f724=this[_0x22323b(0x342)][_0x22323b(0x3ba)](V,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],_0x144527[0x0],_0x19631a,this[_0x22323b(0x310)]);else{if(this['_awaitingChangeset']&&_0x19631a[_0x22323b(0x2c6)]===0x0)_0x144527[0x0][_0x22323b(0x306)]=this['_getCurrentRevision'](),_0x34f724=this[_0x22323b(0x342)][_0x22323b(0x3ba)](X,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],_0x144527[0x0],this[_0x22323b(0x310)]);else{if(_0x19631a[_0x22323b(0x2c6)]!==0x0){const _0xe94e8=this[_0x22323b(0x342)][_0x22323b(0x3ba)](k,this[_0x22323b(0x1b1)],this['type'],_0x19631a,this['_handler']);_0xe94e8[_0x22323b(0x158)](),_0x34f724=_0xe94e8;}else _0x34f724=this[_0x22323b(0x342)]['createInstance'](Te,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],this[_0x22323b(0x310)]);}}return _0x34f724[_0x22323b(0x303)](),_0x34f724;}catch(_0x5626cd){return this[_0x22323b(0x37c)][_0x22323b(0x24d)](_0x22323b(0x38d),_0x22323b(0x337),_0x5626cd),this[_0x22323b(0x342)][_0x22323b(0x3ba)](te,this['unitID'],this[_0x22323b(0x2cd)],this[_0x22323b(0x393)],this[_0x22323b(0x1e4)],this[_0x22323b(0x310)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x395d60){const _0x460094=_0x51fc53;return this[_0x460094(0x1e4)][_0x460094(0x19d)](_0x395d60),this;}[_0x51fc53(0x379)](_0x51730d){const _0x1d5ace=_0x51fc53;return this['_queuedRemoteChangesets'][_0x1d5ace(0x19d)](_0x51730d),this;}[_0x51fc53(0x2a6)](_0x386fb5){const _0x11de99=_0x51fc53;if(this[_0x11de99(0x393)])return this[_0x11de99(0x373)]=this['_awaitingChangeset'],this[_0x11de99(0x393)]=null,this;throw new Error(_0x11de99(0x2eb));}[_0x51fc53(0x1ca)](_0x3e24c6){const _0x51d9f6=_0x51fc53;return this[_0x51d9f6(0x31c)](!!(_0x3e24c6!=null&&_0x3e24c6['isPermissionRej']));}[_0x51fc53(0x178)](){const _0x3064d5=_0x51fc53;return this[_0x3064d5(0x342)][_0x3064d5(0x3ba)](J,this[_0x3064d5(0x1b1)],this['type'],this[_0x3064d5(0x393)],this[_0x3064d5(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x31c)](_0x3bc574){const _0x4e9827=_0x51fc53;return this[_0x4e9827(0x342)]['createInstance'](te,this[_0x4e9827(0x1b1)],this[_0x4e9827(0x2cd)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x3bc574);}};W=ne([g(0x7,_0x4a7404(_0x44b6b8)),g(0x8,_0x4a7404(_0x4d36b1)),g(0x9,_0x4a7404(D)),g(0xa,_0x3cb271),g(0xb,_0x568418),g(0xc,_0x5815e0),g(0xd,_0x425e9b)],W);function ws(_0x588fc4,_0x1b8dae,_0x538561,_0x1a292d,_0x552759,_0x54d676){const _0x1d0814=_0x51fc53;return _0x1a292d&&_0x552759[_0x1d0814(0x2c6)]?_0x588fc4[_0x1d0814(0x3ba)](V,_0x1b8dae,_0x538561,_0x1a292d,_0x552759,_0x54d676):_0x1a292d?_0x588fc4[_0x1d0814(0x3ba)](X,_0x1b8dae,_0x538561,_0x1a292d,_0x54d676):_0x552759[_0x1d0814(0x2c6)]?_0x588fc4['createInstance'](k,_0x1b8dae,_0x538561,_0x552759,_0x54d676):_0x588fc4[_0x1d0814(0x3ba)](Te,_0x1b8dae,_0x538561,_0x54d676);}var kn=Object[_0x51fc53(0x18f)],Vn=Object[_0x51fc53(0x340)],Je=(_0xcf5d72,_0x5f10c7,_0x2a3600,_0xd59185)=>{const _0x362a0f=_0x51fc53;for(var _0x418415=_0xd59185>0x1?void 0x0:_0xd59185?Vn(_0x5f10c7,_0x2a3600):_0x5f10c7,_0x1e804e=_0xcf5d72[_0x362a0f(0x2c6)]-0x1,_0x3c60fe;_0x1e804e>=0x0;_0x1e804e--)(_0x3c60fe=_0xcf5d72[_0x1e804e])&&(_0x418415=(_0xd59185?_0x3c60fe(_0x5f10c7,_0x2a3600,_0x418415):_0x3c60fe(_0x418415))||_0x418415);return _0xd59185&&_0x418415&&kn(_0x5f10c7,_0x2a3600,_0x418415),_0x418415;},S=(_0x54158f,_0x1ea78c)=>(_0x3a5bbe,_0x1b06f0)=>_0x1ea78c(_0x3a5bbe,_0x1b06f0,_0x54158f);let Ee=class extends _0x521c86{constructor(_0x4858bb,_0x136d11,_0x2d2c03){const _0x1515b7=_0x51fc53;super(),l(this,'_entities',new Map()),l(this,_0x1515b7(0x36b),new _0x5da41e()),(this[_0x1515b7(0x342)]=_0x4858bb,this[_0x1515b7(0x1b2)]=_0x136d11,this[_0x1515b7(0xa0)]=_0x2d2c03,this[_0x1515b7(0x380)]());}[_0x51fc53(0x232)](){const _0x625a8c=_0x51fc53;super[_0x625a8c(0x232)](),this[_0x625a8c(0x2a3)]['forEach'](_0xc7c1cc=>_0xc7c1cc['dispose']()),this['_entities'][_0x625a8c(0x362)]();}[_0x51fc53(0x179)](_0x1f1f5b){const _0x1cb938=_0x51fc53;var _0x276cde;return(_0x276cde=this[_0x1cb938(0x2a3)][_0x1cb938(0x151)](_0x1f1f5b))!=null?_0x276cde:null;}[_0x51fc53(0x3b0)](_0x317eec){const _0x2d9566=_0x51fc53,_0x5093cc=this[_0x2d9566(0x179)](_0x317eec);return _0x5093cc?_0xdadc8c(_0x5093cc):this['_entityInit$'][_0x2d9566(0x2c3)](_0x1b26e7(_0x20e91a=>_0x20e91a['unitID']===_0x317eec));}['_init'](){const _0x550356=_0x51fc53;this[_0x550356(0xa0)][_0x550356(0x26e)](_0x3504ec[_0x550356(0x351)])[_0x550356(0x2c3)](_0x1603a2(this['dispose$']),_0x54f844(0x10))[_0x550356(0x202)](async _0x5ca819=>{const _0x2d0389=_0x550356,_0x3fe74e=_0x5ca819['getUnitId'](),_0x3e7586=await this[_0x2d0389(0x223)](_0x3fe74e,H[_0x2d0389(0x351)]);this[_0x2d0389(0x2a3)][_0x2d0389(0x38f)](_0x3fe74e,_0x3e7586);}),this[_0x550356(0xa0)][_0x550356(0x26e)](_0x3504ec['UNIVER_DOC'])[_0x550356(0x2c3)](_0x1603a2(this[_0x550356(0x200)]),_0x54f844(0x10))[_0x550356(0x2c3)](_0x1b26e7(_0x1c26ff=>!_0x1c26ff[_0x550356(0x244)]()[_0x550356(0x30e)]('__')))[_0x550356(0x202)](async _0x4f0c16=>{const _0x3ea925=_0x550356,_0x3289bf=_0x4f0c16[_0x3ea925(0x244)](),_0x27b24c=await this[_0x3ea925(0x223)](_0x3289bf,H[_0x3ea925(0x32c)]);this[_0x3ea925(0x2a3)][_0x3ea925(0x38f)](_0x3289bf,_0x27b24c);}),_0x124107(this[_0x550356(0xa0)][_0x550356(0x280)](_0x3504ec[_0x550356(0x351)]),this[_0x550356(0xa0)][_0x550356(0x280)](_0x3504ec[_0x550356(0x32c)]))[_0x550356(0x2c3)](_0x1603a2(this['dispose$']))[_0x550356(0x202)](_0x436d46=>{const _0x29c6ea=_0x550356,_0x16eafd=_0x436d46[_0x29c6ea(0x244)](),_0x53d8f6=this[_0x29c6ea(0x2a3)]['get'](_0x16eafd);_0x53d8f6&&(_0x53d8f6[_0x29c6ea(0x232)](),this[_0x29c6ea(0x2a3)][_0x29c6ea(0x209)](_0x16eafd));});}async[_0x51fc53(0x223)](_0x4591bf,_0x2f97fe){const _0x44a542=_0x51fc53,_0x1a50f4=await this[_0x44a542(0x1b2)][_0x44a542(0x1ad)](_0x4591bf),_0x8aff8f=this[_0x44a542(0x342)][_0x44a542(0x3ba)](this[_0x44a542(0x148)](_0x2f97fe),_0x4591bf,_0x2f97fe,_0x1a50f4);return await _0x8aff8f['init'](),this[_0x44a542(0x36b)][_0x44a542(0x275)](_0x8aff8f),_0x8aff8f;}['_getCtorByUniverType'](_0x2723b6){const _0x43551e=_0x51fc53;switch(_0x2723b6){case H[_0x43551e(0x32c)]:return dt;case H['UNIVER_SHEET']:return ft;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2723b6);}}};Ee=Je([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],Ee),S(0x0,_0x4a7404(_0x44b6b8)),S(0x1,_0x4a7404(Re)),S(0x2,_0x373907)],Ee);let We=class extends _0x521c86{constructor(_0x532bf4,_0x1c7be0,_0xea7505,_0x1b6bba,_0x46d0c1,_0x2dbdd7,_0x27152b,_0x529f52,_0x1089c5,_0x3f06b0,_0x5608a4,_0xf93f36,_0x166aa7){const _0xe23846=_0x51fc53;super(),l(this,'_state$',new _0x5d7d96(null)),l(this,_0xe23846(0x245),this[_0xe23846(0x331)]['asObservable']()),l(this,_0xe23846(0x173)),l(this,'_collaborationPaused',!0x1),l(this,_0xe23846(0x214),this[_0xe23846(0x245)][_0xe23846(0x2c3)](_0x1db2aa(_0x1b7339=>_0x1b7339?_0x1b7339[_0xe23846(0x253)]:P['OFFLINE']),_0x4b3c1f(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0xe23846(0x1de),[]),(this['unitID']=_0x532bf4,this['_type']=_0x1c7be0,this[_0xe23846(0x29c)]=_0xea7505,this[_0xe23846(0x342)]=_0x1b6bba,this[_0xe23846(0x284)]=_0x46d0c1,this[_0xe23846(0x13f)]=_0x2dbdd7,this[_0xe23846(0x344)]=_0x27152b,this[_0xe23846(0x2f2)]=_0x529f52,this[_0xe23846(0x37c)]=_0x1089c5,this[_0xe23846(0x113)]=_0x3f06b0,this[_0xe23846(0x383)]=_0x5608a4,this['_permissionService']=_0xf93f36,this[_0xe23846(0x109)]=_0x166aa7);}get[_0x51fc53(0x181)](){const _0x4b3df6=_0x51fc53;return this[_0x4b3df6(0x173)];}async[_0x51fc53(0x191)](){const _0x46ab6c=_0x51fc53;if(this['state'])throw new Error(_0x46ab6c(0x360));await this[_0x46ab6c(0x380)]();}[_0x51fc53(0x32a)](){return this['_collaborationPaused']=!0x0,_0x2f2f24(()=>{const _0x2b6eb2=_0x5e69;this[_0x2b6eb2(0x218)]=!0x1,this[_0x2b6eb2(0x133)]();});}[_0x51fc53(0x292)](_0x1bc89b){const _0x1ea275=_0x51fc53;this[_0x1ea275(0x173)]=_0x1bc89b,this['_state$'][_0x1ea275(0x275)](_0x1bc89b);}async['_init'](){const _0x3b9cb2=_0x51fc53;var _0x4dd910;return this[_0x3b9cb2(0x292)](await this[_0x3b9cb2(0x2b8)]()),this[_0x3b9cb2(0x109)]&&((_0x4dd910=this['_singleActiveUnitService'])==null||_0x4dd910[_0x3b9cb2(0x187)](this[_0x3b9cb2(0x1b1)]),this['disposeWithMe'](_0x2f2f24(this['_singleActiveUnitService'][_0x3b9cb2(0x1ee)](this['unitID'])['subscribe'](_0x5b00fa=>{const _0x39fb22=_0x3b9cb2;this[_0x39fb22(0x37c)][_0x39fb22(0x35e)](_0x39fb22(0x304),_0x39fb22(0x36e),_0x5b00fa),_0x5b00fa===Os[_0x39fb22(0x346)]?(this[_0x39fb22(0x383)][_0x39fb22(0x25c)]({'content':this['_localeService']['t'](_0x39fb22(0x210)),'type':_0x1587ba[_0x39fb22(0x10e)]}),this['_permissionService'][_0x39fb22(0x1f6)](new _0x4b6c4e(this[_0x39fb22(0x1b1)])['id'],!0x1)):this[_0x39fb22(0xa5)][_0x39fb22(0x1f6)](new _0x4b6c4e(this[_0x39fb22(0x1b1)])['id'],!0x0);})))),this[_0x3b9cb2(0x294)](_0x2f2f24(this[_0x3b9cb2(0x29c)][_0x3b9cb2(0x334)][_0x3b9cb2(0x202)](_0x2ed8f9=>{const _0x3b7be7=_0x3b9cb2;_0x2ed8f9===_e[_0x3b7be7(0x31f)]?this[_0x3b7be7(0x343)]():_0x2ed8f9===_e[_0x3b7be7(0x319)]&&this[_0x3b7be7(0xdb)]();}))),this[_0x3b9cb2(0x294)](_0x2f2f24(this[_0x3b9cb2(0x29c)]['event$'][_0x3b9cb2(0x202)](_0x10b7aa=>{const _0x1bd9e0=_0x3b9cb2;try{switch(_0x10b7aa[_0x1bd9e0(0x1ec)]){case _0x1b5c65[_0x1bd9e0(0x250)]:{this['_onRemoteChangeset'](_0x8dccd4(_0x10b7aa['data']));break;}case _0x1b5c65[_0x1bd9e0(0xf1)]:{this[_0x1bd9e0(0x14e)](_0x10b7aa[_0x1bd9e0(0x94)]);break;}case _0x1b5c65['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x1b5c65[_0x1bd9e0(0x269)]:{this[_0x1bd9e0(0x381)](_0x10b7aa[_0x1bd9e0(0x94)][_0x1bd9e0(0xa3)][_0x1bd9e0(0xab)](_0x3b46dd=>_0x8dccd4(_0x3b46dd)));break;}case _0x1b5c65[_0x1bd9e0(0x274)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x5d532c){throw console[_0x1bd9e0(0x24d)](_0x1bd9e0(0x299),_0x5d532c),_0x5d532c;}}))),this[_0x3b9cb2(0x173)];}['_unlockTransition'](){const _0x480a08=_0x51fc53;this[_0x480a08(0x37b)]=!0x1;}['_lockTransition'](){const _0x59d763=_0x51fc53;if(this[_0x59d763(0x37b)])throw new Error('[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.');this[_0x59d763(0x37b)]=!0x0;}[_0x51fc53(0x1c7)](_0x213c99){const _0x3d1d7d=_0x51fc53;this['_lockTransition'](),this[_0x3d1d7d(0x292)](this[_0x3d1d7d(0x173)]['appendMutation'](_0x213c99)),this[_0x3d1d7d(0x1f8)]();}[_0x51fc53(0x2fe)](_0x59b55b){const _0x312a42=_0x51fc53;if(!(_0x59b55b['revision']<=this['_revisionService'][_0x312a42(0x2f1)](this[_0x312a42(0x1b1)]))){if(this['_collaborationPaused']){this[_0x312a42(0x1de)]['push'](_0x59b55b);return;}this[_0x312a42(0x114)](_0x59b55b);}}[_0x51fc53(0x133)](){const _0x3fd6f8=_0x51fc53;this[_0x3fd6f8(0x1de)]['forEach'](_0x1a03ad=>this['_applyRemoteChangeset'](_0x1a03ad)),this['_remoteChangesetQueue']=[];}[_0x51fc53(0x114)](_0x5c3628){const _0x3c3cf9=_0x51fc53,_0x2dec41=this[_0x3c3cf9(0x13f)][_0x3c3cf9(0xb2)]['fetchThroughInterceptors'](this[_0x3c3cf9(0x13f)][_0x3c3cf9(0xb2)]['getInterceptPoints']()[_0x3c3cf9(0x176)])(_0x5c3628[_0x3c3cf9(0xc7)],null)||_0x5c3628[_0x3c3cf9(0xc7)],_0x65bb5e={..._0x5c3628,'mutations':_0x2dec41};this['_lockTransition'](),this['_updateState'](this[_0x3c3cf9(0x173)]['onRemoteChangeset'](_0x65bb5e)),this[_0x3c3cf9(0x1f8)]();}['_onRemoteACK'](_0x2643b4){const _0x1ecaf7=_0x51fc53;this['_lockTransition'](),this[_0x1ecaf7(0x292)](this['_state']['onRemoteAck'](_0x2643b4)),this[_0x1ecaf7(0x1f8)]();}[_0x51fc53(0x348)](_0xb08dc9){const _0x232985=_0x51fc53;this['_lockTransition'](),this['_updateState'](this[_0x232985(0x173)][_0x232985(0x1ca)](_0xb08dc9)),this[_0x232985(0x1f8)]();}[_0x51fc53(0x381)](_0x26fa7a){const _0x10eb42=_0x51fc53;if(!(this['_state']instanceof W))throw new TypeError(_0x10eb42(0x21f));const _0xd0b61c=_0x26fa7a[_0x10eb42(0xab)](_0x3b2b77=>{const _0x334297=_0x10eb42,_0x476365=this[_0x334297(0x13f)][_0x334297(0xb2)][_0x334297(0xd1)](this[_0x334297(0x13f)]['interceptor'][_0x334297(0x26f)]()[_0x334297(0x176)])(_0x3b2b77[_0x334297(0xc7)],null)||_0x3b2b77[_0x334297(0xc7)];return{..._0x3b2b77,'mutations':_0x476365};});this[_0x10eb42(0x1e0)](),this[_0x10eb42(0x292)](this[_0x10eb42(0x173)]['onMissedChangesetFetched'](_0xd0b61c)),this[_0x10eb42(0x1f8)]();}[_0x51fc53(0xdb)](){const _0x27f2bf=_0x51fc53;this[_0x27f2bf(0x1e0)](),this[_0x27f2bf(0x292)](this[_0x27f2bf(0x173)][_0x27f2bf(0x178)]()),this[_0x27f2bf(0x1f8)]();}['_toggleOnline'](){const _0x33ddb9=_0x51fc53;this[_0x33ddb9(0x1e0)](),this[_0x33ddb9(0x292)](this[_0x33ddb9(0x173)][_0x33ddb9(0x338)]()),this[_0x33ddb9(0x1f8)]();}async[_0x51fc53(0x2b8)](){return new Promise(_0x351c8b=>{const _0xccf4f8=_0x5e69;this[_0xccf4f8(0x29c)][_0xccf4f8(0x334)][_0xccf4f8(0x2c3)](_0x51a597(0x1))[_0xccf4f8(0x202)](async _0x80a9f9=>{const _0x1c8939=_0xccf4f8;_0x351c8b(await this[_0x1c8939(0x281)](_0x80a9f9===_e[_0x1c8939(0x31f)]));});});}[_0x51fc53(0x353)](){const _0x3335e9=_0x51fc53,_0x55a1d5=this[_0x3335e9(0x1b1)];return{'onStateChange':(_0x4bc620,_0x5abb10)=>{const _0xdc3f7d=_0x3335e9;if(_0x4bc620!==this['_state'])throw new Error(_0xdc3f7d(0xd5)+_0x4bc620[_0xdc3f7d(0x253)]+'\x0aAfter:\x20'+_0x5abb10['status']+_0xdc3f7d(0xc6)+this[_0xdc3f7d(0x173)][_0xdc3f7d(0x253)]);this['_updateState'](_0x5abb10);},'onSendChangeset':_0x2ff008=>{const _0x19e233=_0x3335e9,_0x4ce3da={'eventID':_0x1b5c65[_0x19e233(0x255)],'data':{'unitID':_0x2ff008[_0x19e233(0x1b1)],'unitType':this[_0x19e233(0xad)],'changeset':_0x2ff008,'memberID':this[_0x19e233(0x29c)]['getMemberID']()}};this[_0x19e233(0x29c)][_0x19e233(0x39e)](_0x4ce3da,this[_0x19e233(0x1b1)]);},'onMissingChangesets':({from:_0x26cc95,to:_0x5f0301})=>{const _0x5303c9=_0x3335e9;this[_0x5303c9(0x37c)]['debug'](_0x5303c9(0x304),_0x5303c9(0x267)+_0x26cc95+_0x5303c9(0x39a)+_0x5f0301);const _0x4c1895={'eventID':_0x1b5c65[_0x5303c9(0x282)],'data':{'unitID':_0x55a1d5,'unitType':this[_0x5303c9(0xad)],'from':_0x26cc95,'to':_0x5f0301}};this[_0x5303c9(0x29c)][_0x5303c9(0x39e)](_0x4c1895,this[_0x5303c9(0x1b1)]);}};}async[_0x51fc53(0x281)](_0x1eaf27){const _0x3a5b9a=_0x51fc53;var _0x46ddcc,_0x231b95;const _0xbc676a=await this[_0x3a5b9a(0x284)]['loadOfflineData'](this['unitID']),_0xb7926f=(_0x46ddcc=_0xbc676a==null?void 0x0:_0xbc676a[_0x3a5b9a(0xc7)])!=null?_0x46ddcc:[],_0x4beb68=(_0x231b95=_0xbc676a==null?void 0x0:_0xbc676a[_0x3a5b9a(0x188)])!=null?_0x231b95:null,_0x2eb10d=this['unitID'];try{this[_0x3a5b9a(0xa9)](_0x4beb68,_0xb7926f);}catch(_0x274cb9){this[_0x3a5b9a(0x37c)][_0x3a5b9a(0x24d)](_0x274cb9);}const _0x451806=this['_createHandler']();if(_0x1eaf27){const _0x578a6f=ws(this['_injector'],_0x2eb10d,this['_type'],_0x4beb68,_0xb7926f,_0x451806);return _0x578a6f instanceof k?_0x578a6f[_0x3a5b9a(0x158)]():(_0x578a6f instanceof V||_0x578a6f instanceof X)&&_0x578a6f[_0x3a5b9a(0x197)](),_0x578a6f;}return this[_0x3a5b9a(0x342)][_0x3a5b9a(0x3ba)](J,_0x2eb10d,this['_type'],_0x4beb68,_0xb7926f,_0x451806);}[_0x51fc53(0xa9)](_0x238e13,_0x294021){const _0x29bf08=_0x51fc53;var _0x3da9f9,_0x46dcb9;const _0xc4b6c4=this[_0x29bf08(0x13f)]['interceptor'][_0x29bf08(0xd1)](this['_compressMutationService'][_0x29bf08(0xb2)][_0x29bf08(0x26f)]()['COMPRESS_MUTATION_APPLY']);(_0x3da9f9=_0xc4b6c4((_0x238e13==null?void 0x0:_0x238e13[_0x29bf08(0xc7)])||[],null))==null||_0x3da9f9['forEach'](_0x3df3df=>this['_commandService'][_0x29bf08(0xaa)](_0x3df3df['id'],_0x3df3df[_0x29bf08(0x1c8)])),(_0x46dcb9=_0xc4b6c4(_0x294021||[],null))==null||_0x46dcb9[_0x29bf08(0x124)](_0x3fddbf=>this[_0x29bf08(0x113)][_0x29bf08(0xaa)](_0x3fddbf['id'],_0x3fddbf[_0x29bf08(0x1c8)]));}};We=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x3cb271),S(0x9,_0x568418),S(0xa,_0xf8e37a),S(0xb,_0x57bd86),S(0xc,_0x19d484(Xe))],We);let dt=class extends We{constructor(_0x239e45,_0x31f25c,_0x4958bd,_0x1be5c9,_0x4144e9,_0x9729df,_0x22eb3a,_0x576e58,_0x183a2e,_0xc3c177,_0x2d4624,_0x15373c,_0x13c950,_0x44d744,_0x11c0d5,_0x363f57,_0xe2344d){const _0x23e2b0=_0x51fc53;super(_0x239e45,_0x31f25c,_0x4958bd,_0x1be5c9,_0x4144e9,_0x9729df,_0x22eb3a,_0x576e58,_0x13c950,_0x44d744,_0x11c0d5,_0x363f57,_0xe2344d),this[_0x23e2b0(0x1b1)]=_0x239e45,this['type']=_0x31f25c,this[_0x23e2b0(0xf2)]=_0x4958bd,this[_0x23e2b0(0x2a9)]=_0x183a2e,this[_0x23e2b0(0x1dd)]=_0xc3c177,this[_0x23e2b0(0x39f)]=_0x2d4624,this[_0x23e2b0(0x1bf)]=_0x15373c;}[_0x51fc53(0x353)](){const _0x48c16a=_0x51fc53,_0x258bcd=super[_0x48c16a(0x353)]();return _0x258bcd['onTransformIME']=_0x5789eb=>this[_0x48c16a(0x1dd)][_0x48c16a(0x22c)](_0x5789eb),_0x258bcd[_0x48c16a(0x2ef)]=_0x4e928c=>this[_0x48c16a(0x39f)][_0x48c16a(0xc5)](_0x4e928c),_0x258bcd['onSyncEditingCollabCursor']=_0x36ceeb=>this[_0x48c16a(0x1bf)]['syncEditingCollabCursor'](_0x36ceeb),_0x258bcd[_0x48c16a(0x314)]=_0x590aef=>this[_0x48c16a(0x1dd)]['transformRemoteChangeset'](_0x590aef),_0x258bcd;}async['_init'](){const _0x10924b=_0x51fc53,_0x4b142b=await super[_0x10924b(0x380)]();return this[_0x10924b(0x2a9)]['docStateChange$'][_0x10924b(0x2c3)](_0x1603a2(this[_0x10924b(0x200)]))[_0x10924b(0x202)](_0x520386=>{const _0x329d56=_0x10924b;if(_0x520386==null)return;const {unitId:_0x69d44f,redoState:_0x488da1,commandId:_0x5a0485}=_0x520386;if(_0x69d44f!==this['unitID'])return;const _0x57cf4e={'id':_0x5a0485,'type':_0x1b1270['MUTATION'],'params':{'unitId':_0x69d44f,'actions':_0x488da1['actions'],'textRanges':null}};this[_0x329d56(0x1c7)](_0x57cf4e);}),_0x4b142b;}};dt=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x4a7404(_0x47f8d9)),S(0x9,_0x4a7404(Be)),S(0xa,_0x4a7404(ke)),S(0xb,_0x4a7404(Mt)),S(0xc,_0x3cb271),S(0xd,_0x568418),S(0xe,_0xf8e37a),S(0xf,_0x57bd86),S(0x10,_0x19d484(Xe))],dt);let ft=class extends We{constructor(_0x5038e2,_0x44ef1a,_0x262956,_0x2b1775,_0x1242a8,_0x108ecd,_0x476ad3,_0x1bb191,_0x23ceb4,_0x276e50,_0x236953,_0x75f7de,_0x429535,_0x44bebb){const _0x2f954c=_0x51fc53;super(_0x5038e2,_0x44ef1a,_0x262956,_0x2b1775,_0x1242a8,_0x108ecd,_0x476ad3,_0x1bb191,_0x276e50,_0x236953,_0x75f7de,_0x429535,_0x44bebb),this[_0x2f954c(0x1b1)]=_0x5038e2,this[_0x2f954c(0x2cd)]=_0x44ef1a,this[_0x2f954c(0xf2)]=_0x262956,this[_0x2f954c(0x119)]=_0x23ceb4;}[_0x51fc53(0x353)](){const _0x9b3ba3=_0x51fc53,_0x6f5b46=super[_0x9b3ba3(0x353)]();return _0x6f5b46[_0x9b3ba3(0x2ef)]=_0x2605e8=>this['_sheetTransformSelectionsService'][_0x9b3ba3(0xc5)](_0x2605e8),_0x6f5b46;}async[_0x51fc53(0x380)](){const _0xb121fa=_0x51fc53,_0x31fa82=await super['_init']();return this[_0xb121fa(0x294)](this['_commandService'][_0xb121fa(0xb4)]((_0x5f0589,_0x22380a)=>{const _0x26f5c5=_0xb121fa;if(_0x5f0589[_0x26f5c5(0x2cd)]!==_0x1b1270[_0x26f5c5(0x321)]||_0x22380a!=null&&_0x22380a[_0x26f5c5(0xd2)]||_0x22380a!=null&&_0x22380a[_0x26f5c5(0x1f4)])return;const _0x5cfec5=_0x5f0589['params'];if((_0x5cfec5==null?void 0x0:_0x5cfec5[_0x26f5c5(0x2af)])!==this[_0x26f5c5(0x1b1)])return;const _0x285eba=_0x5f0589,_0x499d8d=this[_0x26f5c5(0x13f)]['interceptor'][_0x26f5c5(0xd1)](this[_0x26f5c5(0x13f)]['interceptor']['getInterceptPoints']()[_0x26f5c5(0x9d)])([_0x285eba],null)||[_0x285eba];this['_onLocalMutation'](_0x499d8d[0x0]);})),_0x31fa82;}};ft=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x4a7404(Ve)),S(0x9,_0x3cb271),S(0xa,_0x568418),S(0xb,_0xf8e37a),S(0xc,_0x57bd86),S(0xd,_0x19d484(Xe))],ft);const Zt=[_0x51fc53(0x1b4),_0x51fc53(0xee),_0x51fc53(0x1f7),_0x51fc53(0x398),_0x51fc53(0xf9),_0x51fc53(0x157)];class At extends _0x10a29c{constructor(){const _0x2f803a=_0x51fc53;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x2f803a(0x1fd),0x0);}[_0x51fc53(0x33e)](_0x349a9e){const _0x42d247=_0x51fc53;if(this[_0x42d247(0x23c)][_0x42d247(0x16c)](_0x349a9e))return this[_0x42d247(0x23c)]['get'](_0x349a9e);const _0x81c09f=Zt[this[_0x42d247(0x1fd)]];return this[_0x42d247(0x1fd)]=(this[_0x42d247(0x1fd)]+0x1)%Zt['length'],this['_assignedColors'][_0x42d247(0x38f)](_0x349a9e,_0x81c09f),_0x81c09f;}}var Wn=Object[_0x51fc53(0x18f)],Gn=Object['getOwnPropertyDescriptor'],Yn=(_0x42a44f,_0x344411,_0x35fce5,_0x1b1d21)=>{const _0x2ed7d9=_0x51fc53;for(var _0xb21d67=_0x1b1d21>0x1?void 0x0:_0x1b1d21?Gn(_0x344411,_0x35fce5):_0x344411,_0x151a36=_0x42a44f[_0x2ed7d9(0x2c6)]-0x1,_0x2fd955;_0x151a36>=0x0;_0x151a36--)(_0x2fd955=_0x42a44f[_0x151a36])&&(_0xb21d67=(_0x1b1d21?_0x2fd955(_0x344411,_0x35fce5,_0xb21d67):_0x2fd955(_0xb21d67))||_0xb21d67);return _0x1b1d21&&_0xb21d67&&Wn(_0x344411,_0x35fce5,_0xb21d67),_0xb21d67;},ae=(_0x17c992,_0x465f79)=>(_0xc61445,_0x4d00a9)=>_0x465f79(_0xc61445,_0x4d00a9,_0x17c992);const Kn=0x12c,Xn=0x64,Jn=()=>{let _0x2a308a=[],_0x58cd30=!0x1;return _0x2744b5=>{const _0x351a13=_0x5e69;_0x2a308a[_0x351a13(0x19d)](_0x2744b5),_0x58cd30||(_0x58cd30=!0x0,setTimeout(()=>{_0x2a308a['forEach'](_0x1b79b6=>_0x1b79b6()),_0x2a308a=[],_0x58cd30=!0x1;}));};};let gt=class extends _0x521c86{constructor(_0x16267d,_0x5e4917,_0x2c91a4,_0x1899bd,_0x57e804,_0x13c74a,_0x5be64b,_0x7e9100){const _0x41e6dd=_0x51fc53;super(),l(this,_0x41e6dd(0x265),!0x1),l(this,'_init',!0x1),l(this,_0x41e6dd(0x390),new _0x5d7d96(new Map())),l(this,_0x41e6dd(0x123),this[_0x41e6dd(0x390)][_0x41e6dd(0xc8)]()),l(this,_0x41e6dd(0x36f),new _0x5d7d96([])),l(this,_0x41e6dd(0x1c1),this[_0x41e6dd(0x36f)][_0x41e6dd(0x2c3)](_0x4c0f1b(Kn))),l(this,'_updateLocalCursor',_0x507539((_0x5b7588,_0x1a5957)=>{const _0x377ff5=_0x41e6dd,_0x283005={'eventID':_0x1b5c65[_0x377ff5(0x235)],'data':{'unitID':this[_0x377ff5(0x1b1)],'memberID':this[_0x377ff5(0x29c)][_0x377ff5(0x2be)](),'selection':_0x273a62(_0x5b7588,_0x1a5957[_0x377ff5(0x2f5)])}};this[_0x377ff5(0x29c)]['send'](_0x283005,this['unitID']);},Xn)),(this[_0x41e6dd(0x1b1)]=_0x16267d,this['_session']=_0x5e4917,this[_0x41e6dd(0x342)]=_0x2c91a4,this[_0x41e6dd(0x1e7)]=_0x1899bd,this[_0x41e6dd(0x12b)]=_0x57e804,this['_univerInstanceService']=_0x13c74a,this[_0x41e6dd(0x113)]=_0x5be64b,this[_0x41e6dd(0x359)]=_0x7e9100);}get[_0x51fc53(0x129)](){const _0x13eef4=_0x51fc53;return this['_cursorInfo$'][_0x13eef4(0x15e)]();}get[_0x51fc53(0x21a)](){return this['_roomMembers$']['getValue']();}[_0x51fc53(0x232)](){const _0x764b94=_0x51fc53;super['dispose'](),this[_0x764b94(0x390)][_0x764b94(0x275)](new Map()),this['_cursorInfo$'][_0x764b94(0x349)](),this[_0x764b94(0x36f)][_0x764b94(0x275)]([]),this['_roomMembers$'][_0x764b94(0x349)]();}[_0x51fc53(0x191)](){const _0x190c6d=_0x51fc53;this[_0x190c6d(0x380)]||(this[_0x190c6d(0x380)]=!0x0,this['_session'][_0x190c6d(0x334)]['pipe'](_0x1603a2(this[_0x190c6d(0x200)]))[_0x190c6d(0x202)](_0xa5815=>{const _0x2f2f60=_0x190c6d;_0xa5815===_e[_0x2f2f60(0x31f)]?this[_0x2f2f60(0x343)]():this[_0x2f2f60(0xdb)]();}),this[_0x190c6d(0x29c)][_0x190c6d(0x374)][_0x190c6d(0x2c3)](_0x1603a2(this[_0x190c6d(0x200)]))[_0x190c6d(0x202)](_0x523cf3=>{const _0x16d229=_0x190c6d,_0x133b26=_0x523cf3[_0x16d229(0x1ec)];_0x133b26===_0x1b5c65[_0x16d229(0x235)]&&this[_0x16d229(0x291)](_0x523cf3),_0x133b26===_0x1b5c65[_0x16d229(0x312)]&&this[_0x16d229(0x36d)](_0x523cf3);}),this['_onRefRangeChange'](),this[_0x190c6d(0x294)](this[_0x190c6d(0x113)][_0x190c6d(0xb4)](_0x330dd9=>{const _0x50bbe3=_0x190c6d;if(this['_online']&&_0x330dd9['id']===_0x2708b7['id']&&_0x330dd9[_0x50bbe3(0x1c8)][_0x50bbe3(0x2af)]===this['unitID']){const _0x53f812=_0x330dd9[_0x50bbe3(0x1c8)];this[_0x50bbe3(0x35b)](_0x53f812['subUnitId'],_0x53f812[_0x50bbe3(0xf3)][0x0]);}})));}[_0x51fc53(0x291)](_0x493591){const _0x44d83d=_0x51fc53;var _0x40a451,_0x109c58;const {memberID:_0x4d5469,selection:_0x5aeb02}=_0x493591[_0x44d83d(0x94)],{sheetName:_0x4183db,range:_0x44a707}=_0x285859(_0x5aeb02),_0x50dc69={'name':(_0x109c58=(_0x40a451=this[_0x44d83d(0x12b)][_0x44d83d(0xb6)](this[_0x44d83d(0x1b1)],_0x4d5469))==null?void 0x0:_0x40a451[_0x44d83d(0x3a4)])!=null?_0x109c58:_0x44d83d(0x3aa),'range':this['_getMergeRange'](_0x4183db,_0x44a707),'sheetID':_0x4183db,'color':this['_colorAssignService'][_0x44d83d(0x33e)](_0x4d5469),'selection':_0x5aeb02},_0x48b6b4=this[_0x44d83d(0x129)];_0x48b6b4['set'](_0x4d5469,_0x50dc69),this[_0x44d83d(0x390)]['next'](_0x48b6b4);}[_0x51fc53(0x36d)](_0x47bb2e){const _0xaedcd7=_0x51fc53,{memberID:_0x2ddfe4}=_0x47bb2e[_0xaedcd7(0x94)],_0x2b0809=this[_0xaedcd7(0x129)];_0x2b0809['delete'](_0x2ddfe4),this['_cursorInfo$'][_0xaedcd7(0x275)](_0x2b0809);}[_0x51fc53(0x118)](_0x5f42f7,_0x5e0365){const _0x2129a6=_0x51fc53;var _0x386826,_0x5f3d3e;const _0x5435b4=(_0x5f3d3e=(_0x386826=this[_0x2129a6(0xa0)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x386826[_0x2129a6(0x3a9)](_0x5f42f7))==null?void 0x0:_0x5f3d3e[_0x2129a6(0x166)]();return(_0x5435b4==null?void 0x0:_0x5435b4[_0x2129a6(0x1e1)](_0x1bb7b1=>_0x1fb77c['contains'](_0x1bb7b1,_0x5e0365)))||_0x5e0365;}[_0x51fc53(0x30c)](){const _0x4b2589=_0x51fc53,_0x449b3f=new _0x3ab8a8(),_0x1ad303=Jn(),_0x4e123a=()=>{const _0x5f3655=_0x5e69;_0x449b3f['dispose']();const _0x6a4240=(_0x525892,_0x46c308,_0x55faac,_0xb0be62)=>{const _0x13c14c=_0x5e69;let _0x532400=[];switch(_0x525892['id']){case _0x4d5ced['DeleteRangeMoveLeftCommandId']:{_0x532400=_0x3ca06c(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x377)]:{_0x532400=_0x5c5378(_0x525892,_0xb0be62);break;}case _0x4d5ced['InsertColCommandId']:{_0x532400=_0x3b1ac8(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x37f)]:{_0x532400=_0x268953(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x138)]:{_0x532400=_0x4c1408(_0x525892,_0xb0be62);break;}case _0x4d5ced['InsertRowCommandId']:{_0x532400=_0x254106(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x20d)]:{_0x532400=_0x511a99(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x357)]:{_0x532400=_0x122c4c(_0x525892,_0xb0be62);break;}case _0x4d5ced['RemoveRowCommandId']:{_0x532400=_0x1d7ce0(_0x525892,_0xb0be62);break;}}const _0x2f0e50=_0x3711ba(_0x532400,_0xb0be62),_0x1e8bc9=this['cursorInfo'][_0x13c14c(0x151)](_0x46c308);if(_0x1e8bc9&&_0x2f0e50){const _0x2522e8={..._0x1e8bc9,'range':_0x2f0e50};this[_0x13c14c(0x129)][_0x13c14c(0x38f)](_0x46c308,_0x2522e8),_0x1ad303(()=>{const _0x2aa25a=_0x13c14c,_0x5293f9=this[_0x2aa25a(0x359)]['registerRefRange'](_0x2f0e50,_0x56b6cb=>(_0x5293f9[_0x2aa25a(0x232)](),_0x6a4240(_0x56b6cb,_0x46c308,_0x55faac,_0x2f0e50)));_0x449b3f[_0x2aa25a(0xe7)](_0x5293f9);});}return{'redos':[],'undos':[]};};this[_0x5f3655(0x129)]['forEach']((_0x12ea26,_0x3738d5)=>{const _0x554688=_0x5f3655,{range:_0x32b9e6,sheetID:_0x43ba2a}=_0x12ea26,_0x5720fa=this[_0x554688(0x359)]['registerRefRange'](_0x32b9e6,_0x1a27ff=>(_0x5720fa[_0x554688(0x232)](),_0x6a4240(_0x1a27ff,_0x3738d5,_0x43ba2a,_0x32b9e6)));_0x449b3f['add'](_0x5720fa);});};this['disposeWithMe'](_0x2f2f24(this['_cursorInfo$'][_0x4b2589(0x202)](()=>{_0x4e123a();})));}['_toggleOnline'](){const _0x12b419=_0x51fc53;var _0x41d9e4,_0x50020e;if(this['_online']=!0x0,((_0x41d9e4=this['_univerInstanceService'][_0x12b419(0x2ed)]())==null?void 0x0:_0x41d9e4[_0x12b419(0x244)]())!==this[_0x12b419(0x1b1)])return;const _0x420067=(_0x50020e=this[_0x12b419(0x342)][_0x12b419(0x151)](_0x5c112f)['getSelections']())==null?void 0x0:_0x50020e[0x0],_0x4d0d62=this[_0x12b419(0xa0)][_0x12b419(0x1c4)](_0x3504ec[_0x12b419(0x351)])[_0x12b419(0x1e3)]();_0x420067&&_0x4d0d62&&this[_0x12b419(0x35b)](_0x4d0d62[_0x12b419(0x1ef)](),_0x420067);}['_toggleOffline'](){this['_online']=!0x1;}};gt=Yn([ae(0x2,_0x4a7404(_0x44b6b8)),ae(0x3,_0x4a7404(At)),ae(0x4,_0x4a7404(ee)),ae(0x5,_0x373907),ae(0x6,_0x568418),ae(0x7,_0x4a7404(_0x4cc8b2))],gt);var zn=Object[_0x51fc53(0x18f)],Zn=Object[_0x51fc53(0x340)],qn=(_0x2eda3c,_0x5beead,_0x42fed4,_0x904a0f)=>{for(var _0x1dc33b=_0x904a0f>0x1?void 0x0:_0x904a0f?Zn(_0x5beead,_0x42fed4):_0x5beead,_0x438064=_0x2eda3c['length']-0x1,_0x4553c0;_0x438064>=0x0;_0x438064--)(_0x4553c0=_0x2eda3c[_0x438064])&&(_0x1dc33b=(_0x904a0f?_0x4553c0(_0x5beead,_0x42fed4,_0x1dc33b):_0x4553c0(_0x1dc33b))||_0x1dc33b);return _0x904a0f&&_0x1dc33b&&zn(_0x5beead,_0x42fed4,_0x1dc33b),_0x1dc33b;},q=(_0x3718ed,_0x3ac559)=>(_0x19d97a,_0x46bb13)=>_0x3ac559(_0x19d97a,_0x46bb13,_0x3718ed);const Qn=0x12c,er=0x64;let mt=class extends _0x521c86{constructor(_0x4d4d77,_0x504630,_0x1bf532,_0x5e5237,_0x85fb5f,_0x25d8f4,_0xa3212,_0x12fe7f,_0x7c7fba){const _0x11856e=_0x51fc53;super(),l(this,_0x11856e(0x265),!0x1),l(this,'_init',!0x1),l(this,_0x11856e(0x390),new _0x5d7d96(new Map())),l(this,_0x11856e(0x123),this['_cursorInfo$'][_0x11856e(0xc8)]()),l(this,_0x11856e(0x36f),new _0x5d7d96([])),l(this,'roomMembers$',this[_0x11856e(0x36f)][_0x11856e(0x2c3)](_0x4c0f1b(Qn))),l(this,_0x11856e(0x35b),_0x507539(_0x116c0b=>{const _0x13f293=_0x11856e,_0x4d2825={'eventID':_0x1b5c65[_0x13f293(0x235)],'data':{'unitID':this[_0x13f293(0x1b1)],'memberID':this[_0x13f293(0x29c)][_0x13f293(0x2be)](),'selection':Ds(_0x116c0b)}};this[_0x13f293(0x29c)][_0x13f293(0x39e)](_0x4d2825,this[_0x13f293(0x1b1)]);},er)),(this['unitID']=_0x4d4d77,this[_0x11856e(0x29c)]=_0x504630,this[_0x11856e(0x342)]=_0x1bf532,this[_0x11856e(0x1e7)]=_0x5e5237,this['_memberService']=_0x85fb5f,this[_0x11856e(0x26b)]=_0x25d8f4,this[_0x11856e(0x102)]=_0xa3212,this[_0x11856e(0xa0)]=_0x12fe7f,this[_0x11856e(0x113)]=_0x7c7fba);}get[_0x51fc53(0x129)](){return this['_cursorInfo$']['getValue']();}get[_0x51fc53(0x21a)](){const _0x252811=_0x51fc53;return this['_roomMembers$'][_0x252811(0x15e)]();}[_0x51fc53(0x232)](){const _0x470fab=_0x51fc53;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x470fab(0x390)][_0x470fab(0x349)](),this[_0x470fab(0x36f)][_0x470fab(0x275)]([]),this[_0x470fab(0x36f)][_0x470fab(0x349)]();}[_0x51fc53(0x191)](){const _0x4ac27a=_0x51fc53;this['_init']||(this[_0x4ac27a(0x380)]=!0x0,this[_0x4ac27a(0x29c)][_0x4ac27a(0x334)]['pipe'](_0x1603a2(this['dispose$']))[_0x4ac27a(0x202)](_0x20bf77=>{const _0x59397e=_0x4ac27a;_0x20bf77===_e[_0x59397e(0x31f)]?this[_0x59397e(0x343)]():this[_0x59397e(0xdb)]();}),this[_0x4ac27a(0x29c)][_0x4ac27a(0x374)]['pipe'](_0x1603a2(this[_0x4ac27a(0x200)]))[_0x4ac27a(0x202)](_0x102487=>{const _0xae4603=_0x4ac27a,_0xef96f4=_0x102487[_0xae4603(0x1ec)];_0xef96f4===_0x1b5c65[_0xae4603(0x235)]&&this[_0xae4603(0x291)](_0x102487),_0xef96f4===_0x1b5c65[_0xae4603(0x312)]&&this['_onCursorDelete'](_0x102487);}),this[_0x4ac27a(0x294)](this['_commandService'][_0x4ac27a(0xb4)](_0x9fad96=>{const _0x10f041=_0x4ac27a,_0x15eea9=_0x9fad96[_0x10f041(0x1c8)];_0x15eea9!=null&&this[_0x10f041(0x265)]&&_0x9fad96['id']===_0xf9fdf8['id']&&_0x15eea9[_0x10f041(0x2af)]===this[_0x10f041(0x1b1)]&&_0x15eea9[_0x10f041(0x3b7)]===!0x1&&this[_0x10f041(0x35b)](_0x15eea9[_0x10f041(0x397)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x4ac27a(0x2c3)](_0x1603a2(this['dispose$']))['subscribe'](_0x38f165=>{const _0xa92e70=_0x4ac27a;if((_0x38f165==null?void 0x0:_0x38f165[_0xa92e70(0x1b1)])!==this['unitID'])return;const _0x48bb18={'eventID':_0x1b5c65[_0xa92e70(0x235)],'data':_0x38f165};this['_onCursorUpdate'](_0x48bb18);}),this[_0x4ac27a(0x294)](this[_0x4ac27a(0x113)]['onCommandExecuted'](_0x2c17ff=>{const _0x10a3ce=_0x4ac27a;if(_0x2c17ff[_0x10a3ce(0x1c8)]==null)return;const _0x28666f=_0x2c17ff[_0x10a3ce(0x1c8)];if(_0x2c17ff['id']!==_0x47707c['id']||_0x28666f[_0x10a3ce(0x2af)]!==this[_0x10a3ce(0x1b1)])return;const _0x5ccb40={'id':'doc.mutation.rich-text-editing','params':_0x28666f},_0x975ae6=this[_0x10a3ce(0x129)];for(const [_0xb58826,_0x502c2a]of _0x975ae6){const _0xd06274={'id':_0x10a3ce(0x152),'params':{'unitId':this[_0x10a3ce(0x1b1)],'actions':null,'textRanges':_0x502c2a['ranges']}},_0x4d3d95=this[_0x10a3ce(0x102)][_0x10a3ce(0x259)](_0x5ccb40,_0xd06274,!0x1);if(_0xcc662a(_0x4d3d95))throw _0x4d3d95[_0x10a3ce(0x24d)];_0x975ae6[_0x10a3ce(0x38f)](_0xb58826,{..._0x502c2a,'ranges':_0x4d3d95[_0x10a3ce(0x30f)][_0x10a3ce(0x1c8)]['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x975ae6);});})));}[_0x51fc53(0x291)](_0x449117){const _0x1ce48e=_0x51fc53;var _0x445fed,_0x1e45c5;const {memberID:_0xa5bd47,selection:_0x5e2fd4}=_0x449117[_0x1ce48e(0x94)],_0x2965b5=yn(_0x5e2fd4),_0x3dff43=(_0x1e45c5=(_0x445fed=this[_0x1ce48e(0x12b)][_0x1ce48e(0xb6)](this[_0x1ce48e(0x1b1)],_0xa5bd47))==null?void 0x0:_0x445fed[_0x1ce48e(0x3a4)])!=null?_0x1e45c5:_0x1ce48e(0x3aa),_0x408f91={'color':this[_0x1ce48e(0x1e7)][_0x1ce48e(0x33e)](_0xa5bd47),'name':_0x3dff43,'ranges':_0x2965b5},_0x3fc317=this[_0x1ce48e(0x129)];_0x3fc317[_0x1ce48e(0x38f)](_0xa5bd47,_0x408f91),this[_0x1ce48e(0x390)][_0x1ce48e(0x275)](_0x3fc317);}[_0x51fc53(0x36d)](_0x8ffa4a){const _0x1d09ec=_0x51fc53,{memberID:_0x17612f}=_0x8ffa4a[_0x1d09ec(0x94)],_0x5651fd=this[_0x1d09ec(0x129)];_0x5651fd[_0x1d09ec(0x209)](_0x17612f),this[_0x1d09ec(0x390)][_0x1d09ec(0x275)](_0x5651fd);}[_0x51fc53(0x343)](){const _0x257fc0=_0x51fc53;var _0x396b0c;if(this[_0x257fc0(0x265)]=!0x0,((_0x396b0c=this[_0x257fc0(0xa0)][_0x257fc0(0x2ed)]())==null?void 0x0:_0x396b0c[_0x257fc0(0x244)]())!==this[_0x257fc0(0x1b1)])return;const _0x7489c=this[_0x257fc0(0x342)][_0x257fc0(0x151)](_0x58dacd)[_0x257fc0(0x287)](),_0x19fa19=_0x7489c==null?void 0x0:_0x7489c[_0x257fc0(0xab)](_0x2646e0);Array[_0x257fc0(0x34e)](_0x19fa19)&&_0x19fa19[_0x257fc0(0x2c6)]>0x0&&this[_0x257fc0(0x35b)](_0x19fa19);}[_0x51fc53(0xdb)](){this['_online']=!0x1;}};mt=qn([q(0x2,_0x4a7404(_0x44b6b8)),q(0x3,_0x4a7404(At)),q(0x4,_0x4a7404(ee)),q(0x5,_0x4a7404(Mt)),q(0x6,_0x425e9b),q(0x7,_0x373907),q(0x8,_0x568418)],mt);var tr=Object[_0x51fc53(0x18f)],sr=Object[_0x51fc53(0x340)],ir=(_0x2174f9,_0x114a2f,_0x2cca36,_0x328a34)=>{const _0x22bae8=_0x51fc53;for(var _0x24ea18=_0x328a34>0x1?void 0x0:_0x328a34?sr(_0x114a2f,_0x2cca36):_0x114a2f,_0x41aaf8=_0x2174f9[_0x22bae8(0x2c6)]-0x1,_0x38e70e;_0x41aaf8>=0x0;_0x41aaf8--)(_0x38e70e=_0x2174f9[_0x41aaf8])&&(_0x24ea18=(_0x328a34?_0x38e70e(_0x114a2f,_0x2cca36,_0x24ea18):_0x38e70e(_0x24ea18))||_0x24ea18);return _0x328a34&&_0x24ea18&&tr(_0x114a2f,_0x2cca36,_0x24ea18),_0x24ea18;},st=(_0x49ac3c,_0xdd4983)=>(_0x1336a4,_0x20ad2a)=>_0xdd4983(_0x1336a4,_0x20ad2a,_0x49ac3c);let ue=class extends _0x521c86{constructor(_0x48ff91,_0xbffab7,_0x3769f3){const _0x396468=_0x51fc53;super(),l(this,_0x396468(0x2a3),new Map()),l(this,_0x396468(0x36b),new _0x5da41e()),(this[_0x396468(0xa0)]=_0x48ff91,this[_0x396468(0x342)]=_0xbffab7,this['_collabSessionService']=_0x3769f3,this[_0x396468(0x380)]());}[_0x51fc53(0x232)](){const _0x3399af=_0x51fc53;super[_0x3399af(0x232)](),this['_entityInit$'][_0x3399af(0x349)](),this[_0x3399af(0x2a3)][_0x3399af(0x124)](_0x29f176=>_0x29f176['dispose']());}[_0x51fc53(0x2bc)](_0x3456da){const _0x5e39eb=_0x51fc53;return this[_0x5e39eb(0x2a3)]['has'](_0x3456da)?this[_0x5e39eb(0x2a3)][_0x5e39eb(0x151)](_0x3456da)['cursorInfo$']:this['_entityInit$'][_0x5e39eb(0x2c3)](_0x5f5348(_0x4a906d=>_0x4a906d[_0x5e39eb(0x1b1)]===_0x3456da),_0x8b3a32(_0x35996a=>_0x35996a[_0x5e39eb(0x123)]));}['_init'](){const _0x3662cf=_0x51fc53;this[_0x3662cf(0xa0)][_0x3662cf(0x26e)](_0x3504ec[_0x3662cf(0x351)])[_0x3662cf(0x2c3)](_0x1603a2(this[_0x3662cf(0x200)]))['subscribe'](async _0x522fad=>{const _0x81872f=_0x3662cf,_0xffac7e=_0x522fad[_0x81872f(0x244)](),_0x3a10df=await this[_0x81872f(0x2dc)](_0xffac7e);this[_0x81872f(0x36b)][_0x81872f(0x275)](_0x3a10df),this['_entities'][_0x81872f(0x38f)](_0xffac7e,_0x3a10df);}),this[_0x3662cf(0xa0)][_0x3662cf(0x26e)](_0x3504ec['UNIVER_DOC'])[_0x3662cf(0x2c3)](_0x1603a2(this['dispose$']))[_0x3662cf(0x2c3)](_0x5f5348(_0x36230e=>!_0x36230e['getUnitId']()[_0x3662cf(0x30e)]('__')))[_0x3662cf(0x202)](async _0x23d05a=>{const _0x5f3def=_0x3662cf,_0x1a4177=_0x23d05a['getUnitId'](),_0x2f73b1=await this[_0x5f3def(0x2f4)](_0x1a4177);this[_0x5f3def(0x36b)]['next'](_0x2f73b1),this[_0x5f3def(0x2a3)][_0x5f3def(0x38f)](_0x1a4177,_0x2f73b1);}),_0x124107(this[_0x3662cf(0xa0)][_0x3662cf(0x280)](_0x3504ec[_0x3662cf(0x32c)]),this['_univerInstanceService'][_0x3662cf(0x280)](_0x3504ec[_0x3662cf(0x351)]))['pipe'](_0x1603a2(this[_0x3662cf(0x200)]))['subscribe'](_0x19fcc4=>{const _0x424b2b=_0x3662cf,_0x1de6b9=_0x19fcc4[_0x424b2b(0x244)](),_0xd23773=this[_0x424b2b(0x2a3)]['get'](_0x1de6b9);_0xd23773&&(_0xd23773['dispose'](),this['_entities']['delete'](_0x1de6b9));});}async[_0x51fc53(0x2dc)](_0x2d916f){const _0x1d3b00=_0x51fc53,_0x5d6148=await this[_0x1d3b00(0x1b2)][_0x1d3b00(0x1ad)](_0x2d916f),_0x230c34=this[_0x1d3b00(0x342)][_0x1d3b00(0x3ba)](gt,_0x2d916f,_0x5d6148);return _0x230c34[_0x1d3b00(0x191)](),_0x230c34;}async[_0x51fc53(0x2f4)](_0x132616){const _0x1c6fb5=_0x51fc53,_0x580c56=await this['_collabSessionService'][_0x1c6fb5(0x1ad)](_0x132616),_0x4bff1f=this['_injector'][_0x1c6fb5(0x3ba)](mt,_0x132616,_0x580c56);return _0x4bff1f[_0x1c6fb5(0x191)](),_0x4bff1f;}};ue=ir([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],ue),st(0x0,_0x373907),st(0x1,_0x4a7404(_0x44b6b8)),st(0x2,_0x4a7404(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,nr=0x5;function rr(_0x535e5c,_0x7f9b40){const _0xbb9818=_0x51fc53;let {radius:_0x59ee42,width:_0x182805,height:_0x5840b4}=_0x7f9b40;_0x59ee42=_0x59ee42!=null?_0x59ee42:0x0,_0x182805=_0x182805!=null?_0x182805:0x1e,_0x5840b4=_0x5840b4!=null?_0x5840b4:0x1e;let _0xc9c179=0x0,_0x27d5e3=0x0,_0x1b4264=0x0;_0xc9c179=_0x27d5e3=_0x1b4264=Math[_0xbb9818(0x385)](_0x59ee42,_0x182805/0x2,_0x5840b4/0x2),_0x535e5c[_0xbb9818(0x25f)](),_0x535e5c[_0xbb9818(0xfe)](_0xc9c179,0x0),_0x535e5c[_0xbb9818(0x182)](_0x182805-_0x27d5e3,0x0),_0x535e5c[_0xbb9818(0x159)](_0x182805-_0x27d5e3,_0x27d5e3,_0x27d5e3,Math['PI']*0x3/0x2,0x0,!0x1),_0x535e5c[_0xbb9818(0x182)](_0x182805,_0x5840b4-_0x1b4264),_0x535e5c['arc'](_0x182805-_0x1b4264,_0x5840b4-_0x1b4264,_0x1b4264,0x0,Math['PI']/0x2,!0x1),_0x535e5c[_0xbb9818(0x182)](0x0,_0x5840b4),_0x535e5c[_0xbb9818(0x182)](0x0,_0xc9c179),_0x535e5c['arc'](_0xc9c179,_0xc9c179,_0xc9c179,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x535e5c[_0xbb9818(0x153)](),_0x7f9b40[_0xbb9818(0x29f)]&&(_0x535e5c[_0xbb9818(0x1f2)](),_0x535e5c[_0xbb9818(0x336)]=_0x7f9b40[_0xbb9818(0x29f)],_0x7f9b40[_0xbb9818(0x18d)]===_0xbb9818(0x25a)?_0x535e5c[_0xbb9818(0x29f)](_0xbb9818(0x25a)):_0x535e5c[_0xbb9818(0x29f)](),_0x535e5c[_0xbb9818(0x261)]());}class ze extends _0xe13222{constructor(_0x340efa,_0x4920dd){const _0x414ca2=_0x51fc53;super(_0x340efa,_0x4920dd),l(this,_0x414ca2(0x35d)),l(this,_0x414ca2(0x248)),(this[_0x414ca2(0x35d)]=_0x4920dd==null?void 0x0:_0x4920dd[_0x414ca2(0x35d)],this['text']=_0x4920dd==null?void 0x0:_0x4920dd[_0x414ca2(0x248)]);}static['drawWith'](_0x535c8b,_0x3f9887){const _0x3b3063=_0x51fc53,{text:_0x2d2828,color:_0x93ea6e}=_0x3f9887;_0x535c8b['save'](),_0x535c8b[_0x3b3063(0x127)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x354148=_0x535c8b[_0x3b3063(0x165)](_0x2d2828)[_0x3b3063(0x17d)],_0x12cbce=Math[_0x3b3063(0x385)](_0x354148+0x2*it,qt);rr(_0x535c8b,{'height':Oe,'radius':0x4,'width':_0x12cbce,'fill':_0x93ea6e,'evented':!0x1}),_0x535c8b[_0x3b3063(0x336)]='#FFF';const _0x30e33a=it,_0x168a59=Oe-nr,_0x43f098=qt-0x2*it;if(_0x354148>_0x43f098){let _0x35c391='',_0xfee248=0x0;for(const _0x125aaf of _0x2d2828){const _0xbeede7=_0x535c8b[_0x3b3063(0x165)](_0x125aaf)['width'];if(_0xfee248+_0xbeede7<=_0x43f098-_0x535c8b[_0x3b3063(0x165)]('...')[_0x3b3063(0x17d)])_0x35c391+=_0x125aaf,_0xfee248+=_0xbeede7;else{_0x35c391+=_0x3b3063(0x229);break;}}_0x535c8b['fillText'](_0x35c391,_0x30e33a,_0x168a59);}else _0x535c8b[_0x3b3063(0x285)](_0x2d2828,_0x30e33a,_0x168a59);_0x535c8b[_0x3b3063(0x261)]();}[_0x51fc53(0x2e3)](_0x1d08fc){ze['drawWith'](_0x1d08fc,this);}}const or=0x1,ar=1.5;class cr extends _0xe13222{constructor(_0x3353aa,_0x256d29){const _0x672f77=_0x51fc53;super(_0x3353aa,_0x256d29),l(this,_0x672f77(0xa7)),l(this,'_hovered',!0x1),l(this,_0x672f77(0x1f3)),l(this,_0x672f77(0x27b),''),l(this,_0x672f77(0x3a7),_0x672f77(0x207)),(_0x256d29&&this['setShapeProps'](_0x256d29),this['onPointerEnter$'][_0x672f77(0x2d7)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x672f77(0x2d8)]({'hovered':!0x1})));}[_0x51fc53(0x2d8)](_0x5c52f4){const _0xd40927=_0x51fc53;var _0x438ea9,_0x324dd8,_0xa989fc,_0x1e5d03,_0xdb1914;this[_0xd40927(0xa7)]=(_0x438ea9=_0x5c52f4['color'])!=null?_0x438ea9:this[_0xd40927(0xa7)],this[_0xd40927(0xd6)]=(_0x324dd8=_0x5c52f4[_0xd40927(0x150)])!=null?_0x324dd8:this['_hovered'],this[_0xd40927(0x1f3)]=(_0xa989fc=_0x5c52f4[_0xd40927(0x2f5)])!=null?_0xa989fc:this[_0xd40927(0x1f3)],this['_name']=(_0x1e5d03=_0x5c52f4[_0xd40927(0x3a4)])!=null?_0x1e5d03:this['_name'],this[_0xd40927(0x3a7)]=(_0xdb1914=_0x5c52f4[_0xd40927(0x289)])!=null?_0xdb1914:this[_0xd40927(0x3a7)],this[_0xd40927(0x177)]({'width':_0x5c52f4[_0xd40927(0x17d)],'height':_0x5c52f4[_0xd40927(0x28e)]});}[_0x51fc53(0x8e)](_0x31028a){const _0x55721=_0x51fc53,{row:_0x522b40,column:_0x57e37f}=_0x31028a;if(_0x522b40>=this[_0x55721(0x1f3)][_0x55721(0x172)]&&_0x522b40<=this[_0x55721(0x1f3)][_0x55721(0xbf)]&&_0x57e37f>=this[_0x55721(0x1f3)][_0x55721(0x372)]&&_0x57e37f<=this[_0x55721(0x1f3)]['endColumn']){this[_0x55721(0x2d8)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x51fc53(0x186)](_0x291167){return!0x1;}[_0x51fc53(0x2e3)](_0x8cd591){const _0x2f7fe1=_0x51fc53;_0xbeb8e4[_0x2f7fe1(0x2db)](_0x8cd591,{'width':this['width'],'height':this[_0x2f7fe1(0x28e)],'strokeWidth':ar,'stroke':this[_0x2f7fe1(0xa7)],'evented':!0x1}),this[_0x2f7fe1(0xd6)]&&(_0x8cd591[_0x2f7fe1(0x1f2)](),_0x8cd591['transform'](0x1,0x0,0x0,0x1,this[_0x2f7fe1(0x17d)],this[_0x2f7fe1(0x3a7)]==='bottom'?0x0:-Oe),ze[_0x2f7fe1(0x2db)](_0x8cd591,{'text':this[_0x2f7fe1(0x27b)],'color':this['_color']}),_0x8cd591[_0x2f7fe1(0x261)]());}}var hr=Object[_0x51fc53(0x18f)],lr=Object['getOwnPropertyDescriptor'],_r=(_0x1fbf33,_0x5116ed,_0x223ae4,_0xc060fd)=>{for(var _0x4f2877=_0xc060fd>0x1?void 0x0:_0xc060fd?lr(_0x5116ed,_0x223ae4):_0x5116ed,_0x1139ae=_0x1fbf33['length']-0x1,_0x3068d1;_0x1139ae>=0x0;_0x1139ae--)(_0x3068d1=_0x1fbf33[_0x1139ae])&&(_0x4f2877=(_0xc060fd?_0x3068d1(_0x5116ed,_0x223ae4,_0x4f2877):_0x3068d1(_0x4f2877))||_0x4f2877);return _0xc060fd&&_0x4f2877&&hr(_0x5116ed,_0x223ae4,_0x4f2877),_0x4f2877;},Me=(_0x8da0eb,_0x1c16b9)=>(_0x3312c8,_0x2ea4ec)=>_0x1c16b9(_0x3312c8,_0x2ea4ec,_0x8da0eb);const ur=0x1389;let $e=class extends _0x521c86{constructor(_0x43d546,_0x57d2ff,_0x55fefa,_0x1e6a10){const _0xf4fce9=_0x51fc53;super(),l(this,'_cursors',new Set()),l(this,'_lastPointer',null),(this['_collabCursorController']=_0x43d546,this['_univerInstanceService']=_0x57d2ff,this[_0xf4fce9(0x27d)]=_0x55fefa,this[_0xf4fce9(0x16b)]=_0x1e6a10,this['_init']());}get['_sheetSkeletonManagerService'](){const _0x299fa8=_0x51fc53;return this[_0x299fa8(0x27d)][_0x299fa8(0x308)](this[_0x299fa8(0xa0)][_0x299fa8(0x1c4)](_0x3504ec[_0x299fa8(0x351)])['getUnitId']())[_0x299fa8(0xd9)](_0x358cc7);}get[_0x51fc53(0x8a)](){const _0x697036=_0x51fc53;return this['_univerInstanceService'][_0x697036(0x1c4)](_0x3504ec[_0x697036(0x351)])[_0x697036(0x244)]();}[_0x51fc53(0x380)](){const _0x339dc1=_0x51fc53;this[_0x339dc1(0x395)]['currentSkeleton$'][_0x339dc1(0x2c3)](_0x430c3c(this[_0x339dc1(0x200)]),_0xb49a6c(_0x26becb=>{const _0x28a310=_0x339dc1;if(_0x26becb){const _0x519ce9=_0x26becb[_0x28a310(0x10b)];return _0x73b353(this[_0x28a310(0x84)][_0x28a310(0x2bc)](this[_0x28a310(0x8a)]),this['_themeService'][_0x28a310(0x1a7)])[_0x28a310(0x2c3)](_0x1db2aa(([_0x15e3ad,_0x5c2de4])=>{const _0x1cf9f2=_0x28a310,_0x16c63b=new Map();return _0x15e3ad[_0x1cf9f2(0x124)]((_0x43ce0e,_0x342e24)=>{const _0x53c782=_0x1cf9f2;if(_0x43ce0e[_0x53c782(0x268)]===_0x519ce9){const _0x569709={..._0x43ce0e};_0x569709['color']=_0x5c2de4[_0x43ce0e[_0x53c782(0x35d)]],_0x16c63b[_0x53c782(0x38f)](_0x342e24,_0x569709);}}),{'skeleton':_0x26becb,'cursors':_0x16c63b};}));}return _0xdadc8c({'skeleton':null,'cursors':new Map()});}))[_0x339dc1(0x202)](({skeleton:_0x37d754,cursors:_0x5286eb})=>{const _0x401e8f=_0x339dc1;this[_0x401e8f(0xb9)](),_0x37d754&&this['_updateCollabCursors'](_0x37d754,_0x5286eb);}),this[_0x339dc1(0x395)][_0x339dc1(0x391)]['subscribe'](_0x308078=>{const _0x42689b=_0x339dc1;if(_0x308078==null)return;const {skeleton:_0x41ea67}=_0x308078,_0xe670e6=this[_0x42689b(0x27d)][_0x42689b(0x308)](this['_unitId']),{scene:_0x573c37}=_0xe670e6;_0x573c37[_0x42689b(0x206)][_0x42689b(0x2d7)](_0x507539(_0x4533b8=>{const _0x4a6fd7=_0x42689b;var _0x5d0432,_0x4d553b;const {offsetX:_0x5478a3,offsetY:_0x2db033}=_0x4533b8,{x:_0x17f3b7,y:_0x1f7907}=_0x573c37['getRelativeCoord'](_0x44f5c0['FromArray']([_0x5478a3,_0x2db033])),{scaleX:_0x17cc86,scaleY:_0x12b64d}=_0x573c37[_0x4a6fd7(0x242)](),_0x36fce9=_0x573c37[_0x4a6fd7(0xb0)](_0x1940ad['VIEW_MAIN']),_0x21fb64=_0x573c37['getScrollXYByRelativeCoords'](_0x44f5c0[_0x4a6fd7(0x17e)]([_0x17f3b7,_0x1f7907]),_0x36fce9),_0x53dbea=_0x41ea67[_0x4a6fd7(0xce)](_0x5478a3,_0x2db033,_0x17cc86,_0x12b64d,_0x21fb64);((_0x5d0432=this[_0x4a6fd7(0x1a4)])==null?void 0x0:_0x5d0432['column'])===_0x53dbea[_0x4a6fd7(0x1d4)]&&((_0x4d553b=this[_0x4a6fd7(0x1a4)])==null?void 0x0:_0x4d553b[_0x4a6fd7(0x122)])===_0x53dbea[_0x4a6fd7(0x122)]||this[_0x4a6fd7(0xd3)]['forEach'](_0x4057c7=>{_0x4057c7['onMouseMove'](_0x53dbea);});},0x64));});}[_0x51fc53(0xc4)](_0x2fbfa7,_0xb11876){const _0x58da8e=_0x51fc53;var _0x3059d4;const _0x5349a6=(_0x3059d4=this[_0x58da8e(0x395)]['getCurrent']())==null?void 0x0:_0x3059d4['skeleton'];if(!_0x5349a6)return;const _0x40b704=this['_getSheetObject']();if(!_0x40b704)return;this[_0x58da8e(0xd3)][_0x58da8e(0x124)](_0x317dee=>{const _0x203073=_0x58da8e;_0x317dee[_0x203073(0x87)]();});const {scene:_0x219eb3}=_0x40b704,_0x27bc5f=dr(Array[_0x58da8e(0x17c)](_0xb11876[_0x58da8e(0x121)]()))['map'](_0x32bdd9=>{const _0x3b1a7d=_0x58da8e,{color:_0x231419,range:_0x4df615,name:_0x4a67bb,selection:_0x18dfde,sheetID:_0x30322f}=_0x32bdd9,{startColumn:_0x19e03b,startRow:_0x143db8,endColumn:_0x1fcb35,endRow:_0x263bf5}=_0x4df615,_0x1853f5=_0x35114e(_0x143db8,_0x19e03b,_0x219eb3,_0x5349a6),_0x5e7572=_0x35114e(_0x263bf5,_0x1fcb35,_0x219eb3,_0x5349a6),{columnHeaderHeightAndMarginTop:_0x27de2b}=_0x5349a6,{startX:_0x4c30df,startY:_0x3497a0}=_0x1853f5,{endX:_0x1ed194,endY:_0x343bd0}=_0x5e7572,_0x2e394a=_0x1ed194-_0x4c30df,_0x405997=_0x343bd0-_0x3497a0,_0x5e244a={'labelPosition':_0x3497a0-_0x27de2b>=Oe?_0x3b1a7d(0x207):_0x3b1a7d(0x15f),'sheetID':_0x30322f,'range':_0x4df615,'color':_0x231419,'name':_0x4a67bb,'selection':_0x18dfde,'left':_0x4c30df,'top':_0x3497a0,'width':_0x2e394a,'height':_0x405997,'evented':!0x1,'zIndex':ur};return new cr(_0x4a67bb,_0x5e244a);});_0x219eb3[_0x58da8e(0x2d2)](_0x27bc5f,or),this[_0x58da8e(0xd3)]=new Set(_0x27bc5f);}['_removeCollabCursors'](){const _0xfe6433=_0x51fc53;var _0x3f34eb;(_0x3f34eb=this[_0xfe6433(0xd3)])==null||_0x3f34eb[_0xfe6433(0x124)](_0x23c211=>_0x23c211[_0xfe6433(0x232)]());}[_0x51fc53(0xda)](){const _0x10e864=_0x51fc53;return _0x23f9f7(this[_0x10e864(0xa0)],this[_0x10e864(0x27d)]);}};$e=_r([_0x47ad3a(_0x34068b['Steady'],$e),Me(0x0,_0x4a7404(ue)),Me(0x1,_0x373907),Me(0x2,_0x39c4de),Me(0x3,_0x4a7404(_0x522711))],$e);function dr(_0x2c89bc){const _0x1d7afe=_0x51fc53,_0x4592c5=new Map();return _0x2c89bc[_0x1d7afe(0x124)](_0x43e3d2=>{const _0x34d619=_0x1d7afe;if(_0x4592c5['has'](_0x43e3d2[_0x34d619(0x2fa)])){const _0x29fc3d=_0x4592c5['get'](_0x43e3d2[_0x34d619(0x2fa)]);_0x29fc3d[_0x34d619(0x3a4)]+=',\x20'+_0x43e3d2[_0x34d619(0x3a4)];}else _0x4592c5[_0x34d619(0x38f)](_0x43e3d2[_0x34d619(0x2fa)],_0x43e3d2);}),Array[_0x1d7afe(0x17c)](_0x4592c5['values']());}var A=function(){const _0x79621e=_0x51fc53;return A=Object['assign']||function(_0x549077){const _0x3e2223=_0x5e69;for(var _0x26d046,_0x3a3589=0x1,_0x4adb0d=arguments[_0x3e2223(0x2c6)];_0x3a3589<_0x4adb0d;_0x3a3589++){_0x26d046=arguments[_0x3a3589];for(var _0x4941fc in _0x26d046)Object[_0x3e2223(0x1f5)][_0x3e2223(0x30d)][_0x3e2223(0x185)](_0x26d046,_0x4941fc)&&(_0x549077[_0x4941fc]=_0x26d046[_0x4941fc]);}return _0x549077;},A[_0x79621e(0x89)](this,arguments);},fr=function(_0x4b4096,_0xea3534){const _0x3e3353=_0x51fc53;var _0x13001b={};for(var _0x51f7fa in _0x4b4096)Object[_0x3e3353(0x1f5)][_0x3e3353(0x30d)][_0x3e3353(0x185)](_0x4b4096,_0x51f7fa)&&_0xea3534[_0x3e3353(0x3a3)](_0x51f7fa)<0x0&&(_0x13001b[_0x51f7fa]=_0x4b4096[_0x51f7fa]);if(_0x4b4096!=null&&typeof Object[_0x3e3353(0xcd)]==_0x3e3353(0xa4)){for(var _0x4f7290=0x0,_0x51f7fa=Object['getOwnPropertySymbols'](_0x4b4096);_0x4f7290<_0x51f7fa[_0x3e3353(0x2c6)];_0x4f7290++)_0xea3534[_0x3e3353(0x3a3)](_0x51f7fa[_0x4f7290])<0x0&&Object['prototype'][_0x3e3353(0x2ec)][_0x3e3353(0x185)](_0x4b4096,_0x51f7fa[_0x4f7290])&&(_0x13001b[_0x51f7fa[_0x4f7290]]=_0x4b4096[_0x51f7fa[_0x4f7290]]);}return _0x13001b;},yt=_0x4ddef2(function(_0x4152db,_0x5b62cd){const _0x1c90e3=_0x51fc53;var _0x795ccf=_0x4152db[_0x1c90e3(0xe5)],_0x58eafc=_0x4152db['id'],_0x276460=_0x4152db['className'],_0x32335e=_0x4152db[_0x1c90e3(0x1d5)],_0x4c297f=fr(_0x4152db,[_0x1c90e3(0xe5),'id',_0x1c90e3(0x221),_0x1c90e3(0x1d5)]),_0x4367ba=_0x1c90e3(0x33a)['concat'](_0x58eafc,'\x20')[_0x1c90e3(0x14b)](_0x276460||'')[_0x1c90e3(0x1a1)](),_0x535ae3=_0x4ff318('_'[_0x1c90e3(0x14b)](Sr()));return Ps(_0x795ccf,''['concat'](_0x58eafc),{'defIds':_0x795ccf[_0x1c90e3(0x3a8)],'idSuffix':_0x535ae3[_0x1c90e3(0x12a)]},A({'ref':_0x5b62cd,'className':_0x4367ba},_0x4c297f),_0x32335e);});function Ps(_0x161100,_0x524be1,_0x61179f,_0x354ec7,_0x344b96){const _0x1202f7=_0x51fc53;return _0x153699(_0x161100['tag'],A(A({'key':_0x524be1},gr(_0x161100,_0x61179f,_0x344b96)),_0x354ec7),(mr(_0x161100,_0x61179f)[_0x1202f7(0x399)]||[])['map'](function(_0x5919b7,_0x5ec9cb){const _0x1cddc1=_0x1202f7;return Ps(_0x5919b7,''[_0x1cddc1(0x14b)](_0x524be1,'-')[_0x1cddc1(0x14b)](_0x161100[_0x1cddc1(0x2a8)],'-')[_0x1cddc1(0x14b)](_0x5ec9cb),_0x61179f,void 0x0,_0x344b96);}));}function gr(_0x2c4255,_0x41dc9a,_0x434256){const _0x3b4b96=_0x51fc53;var _0x3a661b=A({},_0x2c4255[_0x3b4b96(0x2b6)]);_0x434256!=null&&_0x434256[_0x3b4b96(0x145)]&&_0x3a661b[_0x3b4b96(0x29f)]===_0x3b4b96(0x145)&&(_0x3a661b['fill']=_0x434256[_0x3b4b96(0x145)]);var _0x3836a5=_0x41dc9a[_0x3b4b96(0x3a8)];return!_0x3836a5||_0x3836a5[_0x3b4b96(0x2c6)]===0x0||(_0x2c4255[_0x3b4b96(0x2a8)]===_0x3b4b96(0xae)&&_0x3a661b['xlink:href']&&(_0x3a661b['xlink:href']=_0x3a661b[_0x3b4b96(0x3af)]+_0x41dc9a['idSuffix']),Object[_0x3b4b96(0xfa)](_0x3a661b)[_0x3b4b96(0x124)](function(_0x16546e){const _0x1262e4=_0x3b4b96;var _0x542b83=_0x16546e[0x0],_0x2849e1=_0x16546e[0x1];typeof _0x2849e1=='string'&&(_0x3a661b[_0x542b83]=_0x2849e1['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1262e4(0x14b)](_0x41dc9a[_0x1262e4(0x2b9)],')')));})),_0x3a661b;}function mr(_0x758884,_0x189473){const _0x2127ae=_0x51fc53;var _0x35dc68,_0x229f61=_0x189473[_0x2127ae(0x3a8)];return!_0x229f61||_0x229f61[_0x2127ae(0x2c6)]===0x0?_0x758884:_0x758884['tag']===_0x2127ae(0x264)&&(!((_0x35dc68=_0x758884[_0x2127ae(0x399)])===null||_0x35dc68===void 0x0)&&_0x35dc68[_0x2127ae(0x2c6)])?A(A({},_0x758884),{'children':_0x758884['children'][_0x2127ae(0xab)](function(_0x2e403f){const _0x289a73=_0x2127ae;return typeof _0x2e403f['attrs']['id']==_0x289a73(0x288)&&_0x229f61&&_0x229f61[_0x289a73(0x3a3)](_0x2e403f[_0x289a73(0x2b6)]['id'])>-0x1?A(A({},_0x2e403f),{'attrs':A(A({},_0x2e403f['attrs']),{'id':_0x2e403f['attrs']['id']+_0x189473[_0x289a73(0x2b9)]})}):_0x2e403f;})}):_0x758884;}function Sr(){const _0x3ae5ab=_0x51fc53;return Math[_0x3ae5ab(0x2ad)]()[_0x3ae5ab(0x1bd)](0x24)[_0x3ae5ab(0x92)](0x2,0x8);}yt[_0x51fc53(0x378)]='UniverIcon';function _0x5e69(_0x30d931,_0xefada2){const _0x18ca5f=_0x18ca();return _0x5e69=function(_0x5e69b9,_0x441c8c){_0x5e69b9=_0x5e69b9-0x80;let _0x458a81=_0x18ca5f[_0x5e69b9];return _0x458a81;},_0x5e69(_0x30d931,_0xefada2);}var vr={'tag':_0x51fc53(0x2a1),'attrs':{'fill':_0x51fc53(0x266),'viewBox':'0\x200\x2016\x2016','width':_0x51fc53(0x146),'height':_0x51fc53(0x146)},'children':[{'tag':'g','attrs':{'clipPath':_0x51fc53(0x3b8)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x51fc53(0x26c),'strokeLinejoin':_0x51fc53(0x26c),'strokeWidth':1.2}}]},{'tag':_0x51fc53(0x264),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x51fc53(0x34b)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'fill':_0x51fc53(0x234),'d':_0x51fc53(0x22d)}}]}]}],'defIds':[_0x51fc53(0x34b)]},Ns=_0x4ddef2(function(_0x109bf0,_0x4d8066){const _0xb6655c=_0x51fc53;return _0x153699(yt,Object[_0xb6655c(0x219)]({},_0x109bf0,{'id':_0xb6655c(0xc1),'ref':_0x4d8066,'icon':vr}));});Ns[_0x51fc53(0x378)]=_0x51fc53(0x96);var pr={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x51fc53(0x146)},'children':[{'tag':'g','attrs':{'clipPath':_0x51fc53(0x140)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'stroke':_0x51fc53(0x19f),'d':_0x51fc53(0x233),'strokeLinecap':_0x51fc53(0x26c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x51fc53(0x264),'attrs':{},'children':[{'tag':_0x51fc53(0x251),'attrs':{'id':_0x51fc53(0x1d1)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'fill':_0x51fc53(0x234),'d':_0x51fc53(0x22d),'transform':_0x51fc53(0xf5)}}]}]}],'defIds':[_0x51fc53(0x1d1)]},Ms=_0x4ddef2(function(_0x4c081f,_0x288b96){const _0xca04e9=_0x51fc53;return _0x153699(yt,Object[_0xca04e9(0x219)]({},_0x4c081f,{'id':'on-line-single','ref':_0x288b96,'icon':pr}));});Ms[_0x51fc53(0x378)]=_0x51fc53(0x1c0);const Ir=_0x51fc53(0x238),Er=_0x51fc53(0x325),Cr=_0x51fc53(0x2b5),br=_0x51fc53(0x1a0),Rr=_0x51fc53(0x2bf),ve={'onlineStatusIcon':Ir,'onlineStatusTitle':Er,'onlineStatus':Cr,'online':br,'offline':Rr};function Tr(_0xc36a94){const _0x573b10=_0x51fc53;switch(_0xc36a94){case P[_0x573b10(0x319)]:return _0x573b10(0x23e);case P[_0x573b10(0x20f)]:return _0x573b10(0xa6);case P[_0x573b10(0x252)]:return'collabStatus.fetchMiss';case P[_0x573b10(0xeb)]:return _0x573b10(0x3bc);case P[_0x573b10(0x394)]:case P[_0x573b10(0x180)]:case P['AWAITING_WITH_PENDING']:return _0x573b10(0x34d);case P['SYNCED']:return _0x573b10(0x107);}}function Or(_0x4f956d){const _0x5f5983=_0x51fc53,{status$:_0x230f30}=_0x4f956d,_0x331352=_0x282297(_0x230f30,P['NOT_COLLAB']),_0x33bfd0=_0x1d48ce(_0x201091),_0x38a066=_0x331352!==P[_0x5f5983(0x319)],_0x112ae7=_0x33bfd0['t'](Tr(_0x331352)),_0x4b19dd=_0x1a2218(ve[_0x5f5983(0x222)],{[ve[_0x5f5983(0x1d9)]]:_0x38a066,[ve[_0x5f5983(0x2fb)]]:!_0x38a066}),_0x4bac27=_0x38a066?_0x1c416c['createElement'](Ms,null):_0x1c416c[_0x5f5983(0x290)](Ns,null);return _0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':_0x4b19dd},_0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':ve[_0x5f5983(0x195)]},_0x4bac27),_0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':ve[_0x5f5983(0x15a)]},_0x112ae7));}var Dr=Object[_0x51fc53(0x18f)],wr=Object[_0x51fc53(0x340)],Pr=(_0x2a247,_0x6d9707,_0x222b8e,_0x2b8ebe)=>{for(var _0x434790=_0x2b8ebe>0x1?void 0x0:_0x2b8ebe?wr(_0x6d9707,_0x222b8e):_0x6d9707,_0x146a4c=_0x2a247['length']-0x1,_0x4d9272;_0x146a4c>=0x0;_0x146a4c--)(_0x4d9272=_0x2a247[_0x146a4c])&&(_0x434790=(_0x2b8ebe?_0x4d9272(_0x6d9707,_0x222b8e,_0x434790):_0x4d9272(_0x434790))||_0x434790);return _0x2b8ebe&&_0x434790&&Dr(_0x6d9707,_0x222b8e,_0x434790),_0x434790;},Ae=(_0x18fc78,_0x83c89)=>(_0x39da67,_0x4f4f79)=>_0x83c89(_0x39da67,_0x4f4f79,_0x18fc78);let je=class extends _0x10a29c{constructor(_0x455b1f,_0x4c2f54,_0x25fb6c,_0x3ef996){const _0x5b5f8f=_0x51fc53;super(),l(this,_0x5b5f8f(0x22f),new _0x5d7d96(P['NOT_COLLAB'])),(this['_univerInstanceService']=_0x455b1f,this['_uiPartsService']=_0x4c2f54,this[_0x5b5f8f(0x342)]=_0x25fb6c,this[_0x5b5f8f(0x9e)]=_0x3ef996,this['_initStatusComponent'](),this[_0x5b5f8f(0x174)]());}['_initStatusComponent'](){const _0x490279=_0x51fc53;this[_0x490279(0x294)](this[_0x490279(0xd4)][_0x490279(0x3b3)](_0x4e424f[_0x490279(0x23f)],()=>_0x50255b(Nr({'status$':this[_0x490279(0x22f)][_0x490279(0xc8)]()}),this[_0x490279(0x342)])));}['_initStatusListener'](){const _0x12adb9=_0x51fc53;this[_0x12adb9(0x294)](_0x2f2f24(this['_univerInstanceService']['focused$']['pipe'](_0x8b3a32(()=>{const _0x3be649=_0x12adb9,_0x3d22f2=this[_0x3be649(0xa0)]['getFocusedUnit']();return _0x3d22f2?this[_0x3be649(0x9e)]['getCollabEntity$'](_0x3d22f2['getUnitId']()):_0xdadc8c(null);}),_0x8b3a32(_0x3670b1=>_0x3670b1?_0x3670b1[_0x12adb9(0x214)]:_0xdadc8c(P['NOT_COLLAB'])))[_0x12adb9(0x202)](_0x181662=>{const _0x5e5c1f=_0x12adb9;this[_0x5e5c1f(0x22f)][_0x5e5c1f(0x275)](_0x181662);})));}};je=Pr([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],je),Ae(0x0,_0x373907),Ae(0x1,_0x117aca),Ae(0x2,_0x4a7404(_0x44b6b8)),Ae(0x3,_0x4a7404(Ee))],je);function Nr(_0x5a4154){const {status$:_0x2f96fb}=_0x5a4154;return function(){return _0x1c416c['createElement'](Or,{'status$':_0x2f96fb});};}const As=_0xf73999(_0x51fc53(0x301));var Mr=Object[_0x51fc53(0x18f)],Ar=Object[_0x51fc53(0x340)],yr=(_0x51e44c,_0x2b1ebf,_0x483dae,_0x5f03c3)=>{const _0x38020f=_0x51fc53;for(var _0x71929f=_0x5f03c3>0x1?void 0x0:_0x5f03c3?Ar(_0x2b1ebf,_0x483dae):_0x2b1ebf,_0x1bc5dc=_0x51e44c[_0x38020f(0x2c6)]-0x1,_0x1a6a17;_0x1bc5dc>=0x0;_0x1bc5dc--)(_0x1a6a17=_0x51e44c[_0x1bc5dc])&&(_0x71929f=(_0x5f03c3?_0x1a6a17(_0x2b1ebf,_0x483dae,_0x71929f):_0x1a6a17(_0x71929f))||_0x71929f);return _0x5f03c3&&_0x71929f&&Mr(_0x2b1ebf,_0x483dae,_0x71929f),_0x71929f;},ce=(_0x2ff182,_0x23b1cd)=>(_0x1bb43b,_0x2a54be)=>_0x23b1cd(_0x1bb43b,_0x2a54be,_0x2ff182);let He=class extends _0x521c86{constructor(_0x1f4552,_0x25ad50,_0x3b73f9,_0x415fa9,_0x35c61a,_0xddd937){const _0x34c295=_0x51fc53;super(),this[_0x34c295(0x279)]=_0x1f4552,this[_0x34c295(0x37c)]=_0x25ad50,this[_0x34c295(0x113)]=_0x3b73f9,this[_0x34c295(0x284)]=_0x415fa9,this[_0x34c295(0x1e5)]=_0x35c61a,_0xddd937?_0xddd937==null||_0xddd937[_0x34c295(0x1b3)]()[_0x34c295(0xf4)](()=>this[_0x34c295(0x380)]()):(this[_0x34c295(0x37c)][_0x34c295(0x35e)]('[DataLoaderController]',_0x34c295(0x85)),this[_0x34c295(0x380)]());}async[_0x51fc53(0x380)](){const _0x2ded31=_0x51fc53,_0x24f778=this[_0x2ded31(0x279)][_0x2ded31(0x22e)](_0x2ded31(0x387)),_0x19c660=this[_0x2ded31(0x279)][_0x2ded31(0x22e)](_0x2ded31(0x2cd));if(!_0x24f778||!_0x19c660){this[_0x2ded31(0x37c)][_0x2ded31(0x35e)](_0x2ded31(0x3ac),_0x2ded31(0x184));return;}switch(Number(_0x19c660)){case H[_0x2ded31(0x351)]:{const _0x2064a4=await this['_loadSheet'](_0x24f778);this[_0x2ded31(0x345)](_0x2064a4);break;}case H[_0x2ded31(0x32c)]:{await this[_0x2ded31(0x203)](_0x24f778);break;}default:{this['_logService'][_0x2ded31(0x24d)]('[DataLoaderController]',_0x2ded31(0x277));break;}}}async[_0x51fc53(0x345)](_0x50a5e9){const _0x3e06ab=_0x51fc53;await this[_0x3e06ab(0x12c)](_0x50a5e9),_0x50a5e9[_0x3e06ab(0x354)][_0x3e06ab(0x2c3)](_0x1603a2(this[_0x3e06ab(0x200)]))[_0x3e06ab(0x202)](_0x553bb4=>{const _0x574176=_0x3e06ab;_0x553bb4&&this[_0x574176(0x25b)](_0x553bb4);}),this[_0x3e06ab(0x279)][_0x3e06ab(0xba)][_0x3e06ab(0x2c3)](_0x1603a2(this[_0x3e06ab(0x200)]))[_0x3e06ab(0x202)](()=>this['_updateSubUnitFromURLParams'](_0x50a5e9));}[_0x51fc53(0x25b)](_0x506a2b,_0x3bdb78=!0x1){const _0x1b4205=_0x51fc53,_0x185655=this[_0x1b4205(0x279)][_0x1b4205(0x22e)]('subunit');_0x506a2b[_0x1b4205(0x1ef)]()!==_0x185655&&this[_0x1b4205(0x279)][_0x1b4205(0x28f)](_0x1b4205(0x316),_0x506a2b['getSheetId'](),_0x3bdb78);}async['_updateSubUnitFromURLParams'](_0x3f4eb2){const _0xb156e0=_0x51fc53;var _0x300e7b;const _0x5e6a73=this[_0xb156e0(0x279)][_0xb156e0(0x22e)](_0xb156e0(0x316));if(!_0x5e6a73||!_0x3f4eb2[_0xb156e0(0x3a9)](_0x5e6a73)){const _0x5aa068=_0x3f4eb2[_0xb156e0(0x24b)]()[0x0],_0x14efbf=_0x3f4eb2[_0xb156e0(0x3a9)](_0x5aa068);if(!_0x14efbf)return;this['_updateURLWithCurrentState'](_0x14efbf,!0x0),await this[_0xb156e0(0x113)][_0xb156e0(0xaa)](_0x1c5f90['id'],{'unitId':_0x3f4eb2['getUnitId'](),'subUnitId':_0x5aa068});return;}((_0x300e7b=_0x3f4eb2['getActiveSheet']())==null?void 0x0:_0x300e7b[_0xb156e0(0x1ef)]())!==_0x5e6a73&&await this[_0xb156e0(0x113)]['executeCommand'](_0x1c5f90['id'],{'unitId':_0x3f4eb2['getUnitId'](),'subUnitId':_0x5e6a73});}async[_0x51fc53(0x29d)](_0x1ff1b8){const _0x48b6ce=_0x51fc53;let _0x50a719=0x0;const _0x40fc5f=await this[_0x48b6ce(0x284)]['loadOfflineData'](_0x1ff1b8);return _0x40fc5f&&(_0x40fc5f[_0x48b6ce(0x188)]||_0x40fc5f[_0x48b6ce(0xc7)][_0x48b6ce(0x2c6)]!==0x0)&&(_0x50a719=_0x40fc5f[_0x48b6ce(0x1eb)]),_0x50a719===0x0&&this[_0x48b6ce(0x37c)][_0x48b6ce(0x35e)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x1ff1b8,_0x50a719);}async[_0x51fc53(0x203)](_0x430c00){const _0x48f4fc=_0x51fc53;let _0x198595=0x0;const _0x44481b=await this['_localCacheService'][_0x48f4fc(0x2e5)](_0x430c00);return _0x44481b&&(_0x44481b[_0x48f4fc(0x188)]||_0x44481b['mutations'][_0x48f4fc(0x2c6)]!==0x0)&&(_0x198595=_0x44481b['rev']),_0x198595===0x0&&this[_0x48f4fc(0x37c)][_0x48f4fc(0x35e)](_0x48f4fc(0x3ac),_0x48f4fc(0x2fd)),this[_0x48f4fc(0x1e5)][_0x48f4fc(0x333)](_0x430c00,_0x198595);}};He=yr([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],He),ce(0x0,As),ce(0x1,_0x3cb271),ce(0x2,_0x568418),ce(0x3,_0x4a7404(D)),ce(0x4,_0x4a7404(_0x3cc45f)),ce(0x5,_0x19d484(_0x34d98a))],He);var Ur=Object['defineProperty'],Lr=Object[_0x51fc53(0x340)],$r=(_0x1ce377,_0x5d8daf,_0x4de595,_0x5ab057)=>{const _0x36d585=_0x51fc53;for(var _0x275d5c=_0x5ab057>0x1?void 0x0:_0x5ab057?Lr(_0x5d8daf,_0x4de595):_0x5d8daf,_0x496754=_0x1ce377[_0x36d585(0x2c6)]-0x1,_0x493bf2;_0x496754>=0x0;_0x496754--)(_0x493bf2=_0x1ce377[_0x496754])&&(_0x275d5c=(_0x5ab057?_0x493bf2(_0x5d8daf,_0x4de595,_0x275d5c):_0x493bf2(_0x275d5c))||_0x275d5c);return _0x5ab057&&_0x275d5c&&Ur(_0x5d8daf,_0x4de595,_0x275d5c),_0x275d5c;},Qt=(_0x37c3f1,_0x2b9945)=>(_0x3356e6,_0x384723)=>_0x2b9945(_0x3356e6,_0x384723,_0x37c3f1);const jr='DEFAULT_FILE_NAME',Hr=_0x51fc53(0x29a);let xe=class extends _0x10a29c{constructor(_0x37cdb1,_0x240c4a){const _0x1dd3f7=_0x51fc53;super(),this[_0x1dd3f7(0xa0)]=_0x37cdb1,this['_configService']=_0x240c4a,this['_init']();}[_0x51fc53(0x380)](){const _0xfe6601=_0x51fc53;this[_0xfe6601(0x294)](_0x2f2f24(this['_univerInstanceService'][_0xfe6601(0x111)][_0xfe6601(0x202)](()=>{const _0x31a84b=_0xfe6601;var _0x1292e7;const _0x533c53=this['_univerInstanceService'][_0x31a84b(0x2ed)]();let _0x3ed0c4=(_0x1292e7=this[_0x31a84b(0x2c4)][_0x31a84b(0xf0)](jr))!=null?_0x1292e7:Hr;_0x533c53 instanceof _0x3b5c47&&(_0x3ed0c4=_0x533c53[_0x31a84b(0x3a4)]),document[_0x31a84b(0x1cf)]=_0x3ed0c4;})));}};xe=$r([_0x47ad3a(_0x34068b[_0x51fc53(0x2d1)],xe),Qt(0x0,_0x373907),Qt(0x1,_0x5977ca)],xe);var xr=Object[_0x51fc53(0x18f)],Fr=Object[_0x51fc53(0x340)],Br=(_0x43b690,_0x2eb3d8,_0x33a336,_0x426f83)=>{const _0x534fd5=_0x51fc53;for(var _0x24b915=_0x426f83>0x1?void 0x0:_0x426f83?Fr(_0x2eb3d8,_0x33a336):_0x2eb3d8,_0x1255e5=_0x43b690[_0x534fd5(0x2c6)]-0x1,_0x16118e;_0x1255e5>=0x0;_0x1255e5--)(_0x16118e=_0x43b690[_0x1255e5])&&(_0x24b915=(_0x426f83?_0x16118e(_0x2eb3d8,_0x33a336,_0x24b915):_0x16118e(_0x24b915))||_0x24b915);return _0x426f83&&_0x24b915&&xr(_0x2eb3d8,_0x33a336,_0x24b915),_0x24b915;},es=(_0x244d66,_0x392929)=>(_0x3748d4,_0x44fe15)=>_0x392929(_0x3748d4,_0x44fe15,_0x244d66);let St=class{constructor(_0x795034,_0x2352e6){const _0x4e8660=_0x51fc53;this[_0x4e8660(0x2c4)]=_0x795034,this[_0x4e8660(0x322)]=_0x2352e6;}async['getUnitOnRev'](_0x3ab2de,_0xc9e530){const _0x4d3fa0=_0x51fc53;var _0x3e2fcd;const {unitID:_0x4e90a4,type:_0x1e485f,revision:_0x125bea=0x0}=_0xc9e530,_0x51bafb=this['_getSnapshotAPIPrefix']()+'/'+_0x1e485f+_0x4d3fa0(0xea)+_0x4e90a4+_0x4d3fa0(0x20e)+(_0x125bea===0x1?0x0:_0x125bea),_0x5b1371=(await this[_0x4d3fa0(0x322)][_0x4d3fa0(0x151)](_0x51bafb))['body'],_0x2be83f=(_0x3e2fcd=_0x5b1371[_0x4d3fa0(0x99)])==null?void 0x0:_0x3e2fcd[_0x4d3fa0(0x23b)];if(_0x2be83f){const _0x13647f=_0x2be83f==null?void 0x0:_0x2be83f[_0x4d3fa0(0x2b0)],_0x241104=_0x56aec7[_0x4d3fa0(0x2cc)](_0x5ad4b1(_0x13647f));_0x2be83f['originalMeta']=_0x241104,Object[_0x4d3fa0(0xfa)](_0x2be83f[_0x4d3fa0(0x1b6)])[_0x4d3fa0(0x124)](([,_0x488581])=>{const _0x571898=_0x4d3fa0,_0x989d14=_0x488581[_0x571898(0x2b0)],_0x2cec61=_0x56aec7[_0x571898(0x2cc)](_0x5ad4b1(_0x989d14));_0x488581[_0x571898(0x2b0)]=_0x2cec61;});}return _0x5b1371;}async['getSheetBlock'](_0x221d6e,_0x5c783e){const _0x34c514=_0x51fc53,{unitID:_0x20350f,type:_0x43208e,blockID:_0x38a3dc}=_0x5c783e,_0xb5c9f7=this[_0x34c514(0x33b)]()+'/'+_0x43208e+_0x34c514(0xea)+_0x20350f+_0x34c514(0x8d)+_0x38a3dc;return(await this['_httpService']['get'](_0xb5c9f7))[_0x34c514(0x211)];}async[_0x51fc53(0x28a)](_0x1d821a,_0x2bc082){const _0x7b4403=_0x51fc53,{unitID:_0x56673c,type:_0x4051c9,from:_0x128600,to:_0x12a5f8}=_0x2bc082,_0x290ee7=this[_0x7b4403(0x33b)]()+'/'+_0x4051c9+_0x7b4403(0xea)+_0x56673c+_0x7b4403(0x31d)+_0x128600+_0x7b4403(0x350)+_0x12a5f8;return(await this[_0x7b4403(0x322)]['get'](_0x290ee7))['body'];}[_0x51fc53(0xbb)](){const _0x4e9cbe=_0x51fc53;var _0x3d17f8;return(_0x3d17f8=this[_0x4e9cbe(0x2c4)][_0x4e9cbe(0xf0)](Ki))!=null?_0x3d17f8:this[_0x4e9cbe(0x33b)]();}[_0x51fc53(0x33b)](){const _0x4d2c34=_0x51fc53;var _0x6a4d0e;return(_0x6a4d0e=this['_configService'][_0x4d2c34(0xf0)](Gi))!=null?_0x6a4d0e:Yi;}async[_0x51fc53(0x254)](_0x5aab87,_0xffd7){const _0x508352=_0x51fc53,_0x19770a=_0x508352(0x38a)+_0xffd7[_0x508352(0x2cd)]+_0x508352(0xea)+_0xffd7[_0x508352(0x1b1)]+_0x508352(0x2f3);return(await this[_0x508352(0x322)][_0x508352(0x151)](_0x19770a,{'params':{'resourceId':JSON[_0x508352(0x2ea)](_0xffd7[_0x508352(0x2d3)])}}))['body'];}[_0x51fc53(0x1d7)](){const _0x1a18ca=_0x51fc53;throw new Error(_0x1a18ca(0x392));}[_0x51fc53(0x230)](){const _0x184597=_0x51fc53;throw new Error(_0x184597(0x392));}[_0x51fc53(0x369)](){const _0x1f601b=_0x51fc53;throw new Error(_0x1f601b(0x392));}};St=Br([es(0x0,_0x5977ca),es(0x1,_0x4a7404(_0x142257))],St);var kr=Object[_0x51fc53(0x18f)],Vr=Object[_0x51fc53(0x340)],Wr=(_0x2cf364,_0x1b30a4,_0x17ed22,_0x28bf95)=>{const _0x56421c=_0x51fc53;for(var _0x5158a1=_0x28bf95>0x1?void 0x0:_0x28bf95?Vr(_0x1b30a4,_0x17ed22):_0x1b30a4,_0x5a074b=_0x2cf364[_0x56421c(0x2c6)]-0x1,_0x2bc17b;_0x5a074b>=0x0;_0x5a074b--)(_0x2bc17b=_0x2cf364[_0x5a074b])&&(_0x5158a1=(_0x28bf95?_0x2bc17b(_0x1b30a4,_0x17ed22,_0x5158a1):_0x2bc17b(_0x5158a1))||_0x5158a1);return _0x28bf95&&_0x5158a1&&kr(_0x1b30a4,_0x17ed22,_0x5158a1),_0x5158a1;},pe=(_0x3b77c7,_0x5d4d44)=>(_0x529849,_0x2f263b)=>_0x5d4d44(_0x529849,_0x2f263b,_0x3b77c7);let vt=class extends _0x31c064{constructor(_0x3aa2d0,_0x45875b,_0x1a7b6f,_0x13716e,_0x169bd9){const _0x2d4c9a=_0x51fc53;super(_0x3aa2d0,_0x45875b,_0x1a7b6f),this[_0x2d4c9a(0x102)]=_0x13716e,this[_0x2d4c9a(0x37c)]=_0x169bd9;}['transformUndoRedo'](_0x5d4d3d,_0x420bf3){const _0x63f982=_0x51fc53,_0xb30bad=this['_getUndoStack'](_0x5d4d3d);if(_0xb30bad)try{const _0xb4686b=this[_0x63f982(0x13e)](_0xb30bad,_0x420bf3);this[_0x63f982(0x2e8)](_0x5d4d3d,_0xb4686b);}catch(_0x212bec){this[_0x63f982(0x37c)][_0x63f982(0x24d)]('[CollaborationUndoRedoService]',_0x212bec),this[_0x63f982(0x115)](_0x5d4d3d);}const _0x2c305c=this[_0x63f982(0x212)](_0x5d4d3d);if(_0x2c305c)try{const _0x25b781=this[_0x63f982(0x13e)](_0x2c305c,_0x420bf3);this[_0x63f982(0x9b)](_0x5d4d3d,_0x25b781);}catch(_0x6ff79f){this[_0x63f982(0x37c)][_0x63f982(0x24d)](_0x6ff79f),this['_clearRedo'](_0x5d4d3d);}}['_clearUndo'](_0x5dd228){const _0x8b4927=_0x51fc53,_0x5b413f=this[_0x8b4927(0x2ab)](_0x5dd228);_0x5b413f&&(_0x5b413f[_0x8b4927(0x2c6)]=0x0,this['_updateStatus']());}[_0x51fc53(0x28d)](_0x37adb9){const _0x30b986=_0x51fc53,_0x4c8b3a=this[_0x30b986(0x212)](_0x37adb9);_0x4c8b3a&&(_0x4c8b3a[_0x30b986(0x2c6)]=0x0,this[_0x30b986(0x10d)]());}[_0x51fc53(0x2e8)](_0x2ab625,_0x2adda5){const _0x2e7c85=_0x51fc53;this[_0x2e7c85(0x315)][_0x2e7c85(0x38f)](_0x2ab625,_0x2adda5),this[_0x2e7c85(0x10d)]();}['_substituteRedoStack'](_0x6f5f2d,_0x231683){const _0x318bfd=_0x51fc53;this[_0x318bfd(0x371)][_0x318bfd(0x38f)](_0x6f5f2d,_0x231683),this[_0x318bfd(0x10d)]();}['_transformStack'](_0x448282,_0x3c920d){const _0x45310d=_0x51fc53,_0x9391aa=[];let _0x489b8b=_0x3c920d,_0x275dfb=_0x3c920d;for(let _0xcda683=_0x448282['length']-0x1;_0xcda683>=0x0;_0xcda683--){const {unitID:_0x5db419,undoMutations:_0x2a10b0,redoMutations:_0x173387}=_0x448282[_0xcda683],_0x30349c=this[_0x45310d(0x102)][_0x45310d(0x3bd)](_0x489b8b,_0x2a10b0),_0x4749c2=this['_transformService'][_0x45310d(0x3bd)](_0x275dfb,_0x173387);if(_0x4c2f5b(_0x30349c)||_0x4c2f5b(_0x4749c2)){this['_logService'][_0x45310d(0x24d)](_0x45310d(0xbd),'transformStack\x20failed!',_0x30349c,_0x4749c2);break;}_0x489b8b=_0x30349c[_0x45310d(0x3ab)],_0x275dfb=_0x4749c2[_0x45310d(0x3ab)],_0x9391aa[_0x45310d(0x19d)]({'unitID':_0x5db419,'undoMutations':_0x30349c['m2Prime'],'redoMutations':_0x4749c2[_0x45310d(0x30f)]});}return _0x9391aa[_0x45310d(0x204)]();}};vt=Wr([pe(0x0,_0x373907),pe(0x1,_0x568418),pe(0x2,_0x187fc2),pe(0x3,_0x425e9b),pe(0x4,_0x3cb271)],vt);class Gr extends _0x521c86{constructor(){const _0xee9426=_0x51fc53;super(),l(this,_0xee9426(0xba)),this[_0xee9426(0xba)]=_0x1860dc(window,_0xee9426(0x1b9))[_0xee9426(0x2c3)](_0x1603a2(this[_0xee9426(0x200)]),_0xcf2b53(0x1),_0x154121(void 0x0));}[_0x51fc53(0x28f)](_0x4906b2,_0x11a59f,_0x596a9a=!0x1){const _0xbbedff=_0x51fc53,_0x328294=new URL(window[_0xbbedff(0x21e)][_0xbbedff(0x283)]);_0x328294[_0xbbedff(0x24f)]['set'](_0x4906b2,_0x11a59f),_0x596a9a?window[_0xbbedff(0x220)][_0xbbedff(0xe2)]('','',_0x328294[_0xbbedff(0x1bd)]()):window[_0xbbedff(0x220)][_0xbbedff(0x100)]('','',_0x328294[_0xbbedff(0x1bd)]());}[_0x51fc53(0x2bb)](_0x564215,_0x452a9c=!0x1){const _0x4b1fa5=_0x51fc53,_0x383b71=new URL(window[_0x4b1fa5(0x21e)][_0x4b1fa5(0x283)]);_0x383b71[_0x4b1fa5(0x24f)][_0x4b1fa5(0x209)](_0x564215),_0x452a9c?window[_0x4b1fa5(0x220)]['replaceState']('','',_0x383b71[_0x4b1fa5(0x1bd)]()):window[_0x4b1fa5(0x220)][_0x4b1fa5(0x100)]('','',_0x383b71[_0x4b1fa5(0x1bd)]());}[_0x51fc53(0x22e)](_0x4df53e){const _0x25b318=_0x51fc53;var _0x34bfe9;return(_0x34bfe9=new URL(window['location']['href'])[_0x25b318(0x24f)][_0x25b318(0x151)](_0x4df53e))!=null?_0x34bfe9:void 0x0;}}const nt=_0x51fc53(0x3bf),Yr=_0x51fc53(0x1d0),ye=0x6,Kr=1.5,rt=0x4,Xr=1.5,Jr=_0x51fc53(0x1c5);class zr{constructor(_0x5b3b58,_0x44b679,_0x15d0f7,_0x3034a3){const _0x76bfed=_0x51fc53;l(this,_0x76bfed(0x35f),[]),l(this,_0x76bfed(0x33f),null),l(this,_0x76bfed(0xa1),null),l(this,_0x76bfed(0x27f),null),l(this,_0x76bfed(0x1c3),null),l(this,'_eventUnsubscribe',null),(this[_0x76bfed(0x189)]=_0x5b3b58,this[_0x76bfed(0x2c9)]=_0x44b679,this[_0x76bfed(0x3ae)]=_0x15d0f7,this[_0x76bfed(0x323)]=_0x3034a3,this[_0x76bfed(0x18a)]());}set['_hover'](_0x36f882){const _0x5a86ef=_0x51fc53;_0x36f882?(this[_0x5a86ef(0x27f)]&&this[_0x5a86ef(0x27f)][_0x5a86ef(0x317)](),this['_textBubble']&&this[_0x5a86ef(0xa1)]['show']()):(this['_anchorDot']&&this[_0x5a86ef(0x27f)][_0x5a86ef(0x25c)](),this[_0x5a86ef(0xa1)]&&this[_0x5a86ef(0xa1)][_0x5a86ef(0x317)]());}[_0x51fc53(0x232)](){const _0x582a7f=_0x51fc53;for(const _0x22a518 of this[_0x582a7f(0x35f)])_0x22a518['dispose']();this[_0x582a7f(0xa1)]&&this[_0x582a7f(0xa1)]['dispose'](),this[_0x582a7f(0x27f)]&&this[_0x582a7f(0x27f)][_0x582a7f(0x232)](),this[_0x582a7f(0x33f)]&&this['_anchor'][_0x582a7f(0x232)](),this[_0x582a7f(0xb3)]&&this[_0x582a7f(0xb3)]();}['_render'](){const _0x2b3224=_0x51fc53,{_docSkeleton:_0x344251,_document:_0x5b9fbb}=this,{color:_0x16170b,name:_0x273f87,ranges:_0x2e431b}=this[_0x2b3224(0x189)],_0x4a42eb=_0x5b9fbb['getOffsetConfig'](),{docsLeft:_0x48cb86,docsTop:_0x5a33b6}=_0x4a42eb,_0x2a5417=new _0x1dca35(_0x4a42eb,_0x344251);for(const {startOffset:_0x1a81d3,endOffset:_0x2de3c7,collapsed:_0x5f0ec4,isActive:_0x22765c}of _0x2e431b){const _0x194e97=_0x344251[_0x2b3224(0x367)](_0x1a81d3),_0xe9f137=_0x344251[_0x2b3224(0x367)](_0x2de3c7);if(_0x22765c){const {contentBoxPointGroup:_0x3bf2d5}=_0x2a5417['getRangePointData'](_0xe9f137,_0xe9f137);if(_0x3bf2d5[_0x2b3224(0x2c6)]===0x0)continue;this[_0x2b3224(0x25e)](_0x16170b,_0x3bf2d5,_0x48cb86,_0x5a33b6,_0x273f87),this['_eventUnsubscribe']=this[_0x2b3224(0x14a)]();}if(!_0x5f0ec4){const {contentBoxPointGroup:_0x26098f}=_0x2a5417[_0x2b3224(0x1cd)](_0x194e97,_0xe9f137);if(_0x26098f[_0x2b3224(0x2c6)]===0x0)continue;this[_0x2b3224(0x262)](_0x16170b,_0x26098f,_0x48cb86,_0x5a33b6);}}}[_0x51fc53(0x25e)](_0x285c9d,_0x58b1a8,_0x4bf05e,_0x16ef25,_0x351c4c){const _0x53dfc4=_0x51fc53,_0x4a180c=this[_0x53dfc4(0x1b5)](_0x58b1a8),{left:_0x3df936,top:_0x4f504d,height:_0x5af7f0}=_0x4a180c,_0x24ed40=this['_getScale'](),_0x14488d=Xr/_0x24ed40,_0x3b46d9=new _0xbeb8e4(nt+_0x4cfbd7['generateRandomId'](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25,'height':_0x5af7f0,'width':Kr,'fill':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'strokeWidth':_0x14488d,'stroke':Jr,'evented':!0x0});this['_anchor']=_0x3b46d9,this['_scene'][_0x53dfc4(0x104)](_0x3b46d9,_0x337814);const _0x29f7e5=new _0xbeb8e4(nt+_0x4cfbd7['generateRandomId'](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25-rt/0x2,'height':rt,'width':rt,'fill':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'strokeWidth':0x0,'stroke':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'evented':!0x1});this[_0x53dfc4(0x27f)]=_0x29f7e5,this[_0x53dfc4(0x2c9)][_0x53dfc4(0x104)](_0x29f7e5,_0x337814);const _0xcab3c4=new ze(nt+_0x4cfbd7[_0x53dfc4(0x300)](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25-Oe,'text':_0x351c4c,'color':_0x285c9d});this[_0x53dfc4(0xa1)]=_0xcab3c4,this[_0x53dfc4(0x2c9)][_0x53dfc4(0x104)](_0xcab3c4,_0x337814),this[_0x53dfc4(0xcc)]=!0x1;}[_0x51fc53(0x14a)](){const _0x463eea=_0x51fc53,_0xe36abd=this[_0x463eea(0x33f)][_0x463eea(0x169)][_0x463eea(0x2d7)](()=>{this['_hover']=!0x0;}),_0x35ac9a=this['_anchor'][_0x463eea(0x3b1)]['subscribeEvent'](()=>{const _0x8d9d23=_0x463eea;this[_0x8d9d23(0x1c3)]&&clearTimeout(this[_0x8d9d23(0x1c3)]),this['_hideTimer']=setTimeout(()=>{const _0x2a6c33=_0x8d9d23;this[_0x2a6c33(0xcc)]=!0x1;},0x7d0);});return()=>{const _0x355fdd=_0x463eea;_0xe36abd[_0x355fdd(0x11a)](),_0x35ac9a[_0x355fdd(0x11a)]();};}[_0x51fc53(0x262)](_0x45c19e,_0x31005a,_0xe1c3f0,_0x208414){const _0x3a0318=_0x51fc53,_0xf823d=new _0x3dc381(_0x45c19e)[_0x3a0318(0x375)](0.2)[_0x3a0318(0x313)](),_0x5a3d3b=new _0x3c2aad(Yr+_0x4cfbd7[_0x3a0318(0x300)](ye),{'pointsGroup':_0x31005a,'fill':_0xf823d||_0x43e11f(_0x131343[_0x3a0318(0x2b4)],0.2),'left':_0xe1c3f0,'top':_0x208414,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a0318(0x35f)][_0x3a0318(0x19d)](_0x5a3d3b),this[_0x3a0318(0x2c9)][_0x3a0318(0x104)](_0x5a3d3b,_0x337814);}[_0x51fc53(0x1b5)](_0x4098da){const _0x31ae0b=_0x4098da[0x0],_0x491a82=_0x31ae0b[0x0],_0x40c974=_0x31ae0b[0x2],{x:_0x2d6929,y:_0x11a22e}=_0x491a82,{x:_0x2f0026,y:_0x1c04a6}=_0x40c974;return{'left':_0x2d6929,'top':_0x11a22e,'width':_0x2f0026-_0x2d6929,'height':_0x1c04a6-_0x11a22e};}[_0x51fc53(0x15c)](){const _0x60938d=_0x51fc53,{scaleX:_0x5e995c,scaleY:_0x333b77}=this['_scene'][_0x60938d(0x242)]();return Math[_0x60938d(0x216)](_0x5e995c,_0x333b77);}}var Zr=Object[_0x51fc53(0x18f)],qr=Object[_0x51fc53(0x340)],Qr=(_0x4dd2bf,_0x2d4317,_0x41fbed,_0x1f3d6d)=>{const _0x4d8756=_0x51fc53;for(var _0x2b95b1=_0x1f3d6d>0x1?void 0x0:_0x1f3d6d?qr(_0x2d4317,_0x41fbed):_0x2d4317,_0x45ace2=_0x4dd2bf[_0x4d8756(0x2c6)]-0x1,_0x5cfa7;_0x45ace2>=0x0;_0x45ace2--)(_0x5cfa7=_0x4dd2bf[_0x45ace2])&&(_0x2b95b1=(_0x1f3d6d?_0x5cfa7(_0x2d4317,_0x41fbed,_0x2b95b1):_0x5cfa7(_0x2b95b1))||_0x2b95b1);return _0x1f3d6d&&_0x2b95b1&&Zr(_0x2d4317,_0x41fbed,_0x2b95b1),_0x2b95b1;},Ie=(_0x17d987,_0x3d87d0)=>(_0x2c24b7,_0x22380c)=>_0x3d87d0(_0x2c24b7,_0x22380c,_0x17d987);let Fe=class extends _0x521c86{constructor(_0x34c42b,_0x2527df,_0x58cbde,_0x566d10,_0x1ebbea){const _0x2ecbb8=_0x51fc53;super(),l(this,_0x2ecbb8(0xd3),[]),(this[_0x2ecbb8(0x84)]=_0x34c42b,this[_0x2ecbb8(0xa0)]=_0x2527df,this[_0x2ecbb8(0x27d)]=_0x58cbde,this[_0x2ecbb8(0x33d)]=_0x566d10,this[_0x2ecbb8(0x16b)]=_0x1ebbea,this[_0x2ecbb8(0x380)]());}[_0x51fc53(0x380)](){const _0x17cf66=_0x51fc53;this['_docSkeletonManagerService'][_0x17cf66(0x391)][_0x17cf66(0x2c3)](_0x430c3c(this[_0x17cf66(0x200)]),_0xb49a6c(_0x479d67=>{const _0x540c3d=_0x17cf66;if(_0x479d67){const _0x4e9172=_0x479d67[_0x540c3d(0x38b)]()[_0x540c3d(0x1d8)]()['getUnitId']();return _0x73b353(this[_0x540c3d(0x84)]['getCollabCursors$'](_0x4e9172),this['_themeService'][_0x540c3d(0x1a7)])['pipe'](_0x1db2aa(([_0x5849ec,_0x3fa34e])=>({'skeleton':_0x479d67,'cursors':[..._0x5849ec['values']()][_0x540c3d(0x32d)](_0x3e94e9=>({..._0x3e94e9,'color':_0x3fa34e[_0x3e94e9['color']]}))})));}return _0xdadc8c({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x23c430,cursors:_0x18e555})=>{const _0x3769c0=_0x17cf66;this['_removeCollabCursors'](),_0x23c430&&this[_0x3769c0(0xc4)](_0x23c430,_0x18e555);});}['_updateCollabCursors'](_0xafc56f,_0x410077){const _0x310c98=_0x51fc53,_0x3db473=this['_getDocObject']();if(_0x3db473==null)return;const {scene:_0xebc0b4,document:_0x5bfcdd}=_0x3db473,_0x1c103e=_0x410077[_0x310c98(0xab)](_0x3b6563=>new zr(_0x3b6563,_0xebc0b4,_0xafc56f,_0x5bfcdd));this[_0x310c98(0xd3)]=_0x1c103e;}[_0x51fc53(0xb9)](){const _0x5ce5a1=_0x51fc53;this[_0x5ce5a1(0xd3)][_0x5ce5a1(0x124)](_0x2dc77b=>_0x2dc77b[_0x5ce5a1(0x232)]()),this[_0x5ce5a1(0xd3)]=[];}[_0x51fc53(0x307)](){return _0x3248cd(this['_univerInstanceService'],this['_renderManagerService']);}};Fe=Qr([_0x47ad3a(_0x34068b[_0x51fc53(0x8c)],Fe),Ie(0x0,_0x4a7404(ue)),Ie(0x1,_0x373907),Ie(0x2,_0x39c4de),Ie(0x3,_0x4a7404(_0x46f5a8)),Ie(0x4,_0x4a7404(_0x522711))],Fe);var eo=Object[_0x51fc53(0x18f)],to=Object[_0x51fc53(0x340)],so=(_0x5379dd,_0x8f940d,_0x676140,_0x10c8d3)=>{const _0x171903=_0x51fc53;for(var _0xcfa7d5=_0x10c8d3>0x1?void 0x0:_0x10c8d3?to(_0x8f940d,_0x676140):_0x8f940d,_0x494386=_0x5379dd[_0x171903(0x2c6)]-0x1,_0x5baf05;_0x494386>=0x0;_0x494386--)(_0x5baf05=_0x5379dd[_0x494386])&&(_0xcfa7d5=(_0x10c8d3?_0x5baf05(_0x8f940d,_0x676140,_0xcfa7d5):_0x5baf05(_0xcfa7d5))||_0xcfa7d5);return _0x10c8d3&&_0xcfa7d5&&eo(_0x8f940d,_0x676140,_0xcfa7d5),_0xcfa7d5;},ot=(_0xfa0cab,_0x275708)=>(_0x14fdaf,_0x4fe415)=>_0x275708(_0x14fdaf,_0x4fe415,_0xfa0cab);let Ge=class{constructor(_0x375a7c,_0x5a2bc1,_0x201ceb){const _0x2c7bee=_0x51fc53;this[_0x2c7bee(0x2c4)]=_0x375a7c,this[_0x2c7bee(0x322)]=_0x5a2bc1,this[_0x2c7bee(0x2c7)]=_0x201ceb,this[_0x2c7bee(0x191)]();}[_0x51fc53(0x191)](){const _0x553ec9=_0x51fc53;this[_0x553ec9(0x322)][_0x553ec9(0x194)]({'priority':0x1,'interceptor':(_0x4cbe47,_0x178f40)=>_0x178f40(_0x4cbe47)[_0x553ec9(0x2c3)](_0x22cd34(async _0x152be6=>{const _0x47dea4=_0x553ec9,_0x28d351=_0x152be6;if(_0x28d351['status']===0x191&&window[_0x47dea4(0x10a)](this[_0x47dea4(0x2c7)]['t'](_0x47dea4(0x24c)))){const _0xc573d2=window[_0x47dea4(0x19b)](window['location'][_0x47dea4(0x283)]);window[_0x47dea4(0x21e)][_0x47dea4(0x283)]=this[_0x47dea4(0x2de)]()+_0x47dea4(0x37e)+_0xc573d2;}return _0x28d351;}))});}[_0x51fc53(0x2de)](){const _0x2d1116=_0x51fc53;var _0x5d0f7e;return(_0x5d0f7e=this[_0x2d1116(0x2c4)][_0x2d1116(0xf0)](hn))!=null?_0x5d0f7e:ln;}};Ge=so([ot(0x0,_0x5977ca),ot(0x1,_0x4a7404(_0x142257)),ot(0x2,_0x4a7404(_0x201091))],Ge);var io=Object['defineProperty'],no=Object['getOwnPropertyDescriptor'],ro=(_0xf92792,_0x20849d,_0x50789d,_0x9f8557)=>{const _0x3744d4=_0x51fc53;for(var _0x1b8657=_0x9f8557>0x1?void 0x0:_0x9f8557?no(_0x20849d,_0x50789d):_0x20849d,_0x22207a=_0xf92792[_0x3744d4(0x2c6)]-0x1,_0x806c88;_0x22207a>=0x0;_0x22207a--)(_0x806c88=_0xf92792[_0x22207a])&&(_0x1b8657=(_0x9f8557?_0x806c88(_0x20849d,_0x50789d,_0x1b8657):_0x806c88(_0x1b8657))||_0x1b8657);return _0x9f8557&&_0x1b8657&&io(_0x20849d,_0x50789d,_0x1b8657),_0x1b8657;},ts=(_0x1da48b,_0x2596fc)=>(_0x3486db,_0x2c4f4b)=>_0x2596fc(_0x3486db,_0x2c4f4b,_0x1da48b);const oo='AUTHZ_URL_KEY',ao=_0x51fc53(0x120);let pt=class{constructor(_0x492a0d,_0xaf874f){const _0x3b94c5=_0x51fc53;this[_0x3b94c5(0x330)]=_0x492a0d,this[_0x3b94c5(0x2c4)]=_0xaf874f;}[_0x51fc53(0x1fb)](){const _0x1bd5d3=_0x51fc53;var _0xd7f3bf;return(_0xd7f3bf=this[_0x1bd5d3(0x2c4)][_0x1bd5d3(0xf0)](oo))!=null?_0xd7f3bf:ao;}async['create'](_0x18ebd9){const _0x4c2d47=_0x51fc53,_0x1d05f6=this[_0x4c2d47(0x1fb)]()+'/'+_0x18ebd9[_0x4c2d47(0xe0)]+_0x4c2d47(0xb1);return(await this[_0x4c2d47(0x330)][_0x4c2d47(0x13a)](_0x1d05f6,{'body':_0x18ebd9}))['body'][_0x4c2d47(0x332)]||'';}async['list'](_0xeb91d6){const _0x843e70=_0x51fc53,_0x4b1bf6=this[_0x843e70(0x1fb)]()+'/-/object/list';return(await this[_0x843e70(0x330)]['post'](_0x4b1bf6,{'body':_0xeb91d6}))[_0x843e70(0x211)]['objects'];}async[_0x51fc53(0x1d3)](_0x3f4715){const _0xc9fbc1=_0x51fc53,_0x383900=this[_0xc9fbc1(0x1fb)]()+'/'+_0x3f4715['objectType']+_0xc9fbc1(0x1af)+_0x3f4715['objectID'];await this['_HTTPService'][_0xc9fbc1(0x19a)](_0x383900,{'body':_0x3f4715});}async['allowed'](_0x341733){const _0x75c6ca=_0x51fc53,_0x8dec2f=this[_0x75c6ca(0x1fb)]()+'/'+_0x341733['objectType']+_0x75c6ca(0x1af)+_0x341733[_0x75c6ca(0x332)]+_0x75c6ca(0xb8);return(await this[_0x75c6ca(0x330)][_0x75c6ca(0x13a)](_0x8dec2f,{'body':_0x341733}))[_0x75c6ca(0x211)]['actions'];}async[_0x51fc53(0x160)](_0x469e93){const _0x30b7b9=_0x51fc53,_0x24be86=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x30b7b9(0x330)][_0x30b7b9(0x13a)](_0x24be86,{'body':{'requests':_0x469e93}}))['body'][_0x30b7b9(0x2e0)];}async['listRoles'](_0x489096){const _0x50c006=_0x51fc53,_0x20897e=this['_getAPIPrefixPath']()+'/'+_0x489096[_0x50c006(0xe0)]+'/role',_0x1c3586=await this['_HTTPService'][_0x50c006(0x13a)](_0x20897e,{'body':_0x489096});return{'roles':_0x1c3586[_0x50c006(0x211)][_0x50c006(0x2d9)],'actions':_0x1c3586[_0x50c006(0x211)]['actions']};}async[_0x51fc53(0x31e)](_0x60e51d){const _0x1c7dd6=_0x51fc53,_0x40ed25=this[_0x1c7dd6(0x1fb)]()+_0x1c7dd6(0x270);await this['_HTTPService']['delete'](_0x40ed25,{'params':{'collaboratorID':_0x60e51d[_0x1c7dd6(0x28b)],'objectID':_0x60e51d['objectID'],'unitID':_0x60e51d['unitID']}});}async[_0x51fc53(0x149)](_0x3b843b){const _0x1221fb=_0x51fc53,_0x57ec72=this[_0x1221fb(0x1fb)]()+_0x1221fb(0x270);await this[_0x1221fb(0x330)][_0x1221fb(0x1f9)](_0x57ec72,{'body':_0x3b843b});}async[_0x51fc53(0x1fe)](_0x368d2e){const _0x552394=_0x51fc53,_0xd14a09=this['_getAPIPrefixPath']()+_0x552394(0x270);await this[_0x552394(0x330)][_0x552394(0x13a)](_0xd14a09,{'body':_0x368d2e});}async[_0x51fc53(0x2aa)](_0x34f926){const _0x36bfb0=_0x51fc53,_0x985755=this[_0x36bfb0(0x1fb)]()+_0x36bfb0(0x270);return(await this[_0x36bfb0(0x330)]['get'](_0x985755,{'params':{'objectID':_0x34f926[_0x36bfb0(0x332)],'unitID':_0x34f926[_0x36bfb0(0x1b1)]}}))['body'][_0x36bfb0(0x2ee)];}async['putCollaborators'](_0x12f01f){const _0xc530bf=_0x51fc53,_0x36e10b=this[_0xc530bf(0x1fb)]()+_0xc530bf(0x270);await this['_HTTPService']['put'](_0x36e10b,{'body':_0x12f01f});}};pt=ro([ts(0x0,_0x4a7404(_0x142257)),ts(0x1,_0x4a7404(_0x5977ca))],pt);var co=Object[_0x51fc53(0x18f)],ho=Object[_0x51fc53(0x340)],lo=(_0x2f849a,_0x499b1c,_0x12042c,_0x2a2c3b)=>{const _0x593acc=_0x51fc53;for(var _0x39bdbc=_0x2a2c3b>0x1?void 0x0:_0x2a2c3b?ho(_0x499b1c,_0x12042c):_0x499b1c,_0x4fedfe=_0x2f849a[_0x593acc(0x2c6)]-0x1,_0x1e91f4;_0x4fedfe>=0x0;_0x4fedfe--)(_0x1e91f4=_0x2f849a[_0x4fedfe])&&(_0x39bdbc=(_0x2a2c3b?_0x1e91f4(_0x499b1c,_0x12042c,_0x39bdbc):_0x1e91f4(_0x39bdbc))||_0x39bdbc);return _0x2a2c3b&&_0x39bdbc&&co(_0x499b1c,_0x12042c,_0x39bdbc),_0x39bdbc;},ss=(_0x243cee,_0x20db51)=>(_0x5cb5c7,_0x3b0a79)=>_0x20db51(_0x5cb5c7,_0x3b0a79,_0x243cee);const _o=[_0x51fc53(0x8b),_0x51fc53(0x1ff),_0x51fc53(0x32f),_0x51fc53(0x14f),_0x51fc53(0x297)],uo=0x5*0x400*0x400,fo=_0x51fc53(0x1c6),go=_0x51fc53(0x3a2),mo=_0x51fc53(0x1db),So='/universer-api/file/{fileID}/sign-url';let It=class{constructor(_0x1cbb99,_0x285535){const _0x11a1d7=_0x51fc53;l(this,_0x11a1d7(0x2ac),0x0),l(this,_0x11a1d7(0x227),new _0x5da41e()),l(this,_0x11a1d7(0x170),this['_change$']),l(this,_0x11a1d7(0x190),new Map()),(this[_0x11a1d7(0x322)]=_0x1cbb99,this[_0x11a1d7(0x2c4)]=_0x285535);}[_0x51fc53(0x324)](_0x50f673){const _0x187174=_0x51fc53;this['_waitCount']=_0x50f673,this['_change$'][_0x187174(0x275)](_0x50f673);}['getImageSourceCache'](_0x18c9be,_0x27d119){const _0x3b8f57=_0x51fc53;if(_0x27d119===_0x3a239e['BASE64']){const _0x4abb59=new Image();return _0x4abb59[_0x3b8f57(0xc9)]=_0x18c9be,_0x4abb59;}return this[_0x3b8f57(0x190)][_0x3b8f57(0x151)](_0x18c9be);}[_0x51fc53(0x155)](_0x58b183,_0x36a4b1,_0x1db395){const _0x18e811=_0x51fc53;_0x36a4b1===_0x3a239e['BASE64']||_0x1db395==null||this[_0x18e811(0x190)][_0x18e811(0x38f)](_0x58b183,_0x1db395);}async[_0x51fc53(0x2b2)](_0x1962b1){const _0x37cf0e=_0x51fc53;try{const _0x4e3bae=this[_0x37cf0e(0x9f)](this[_0x37cf0e(0x11c)](),''+_0x1962b1),_0x3c3fcf=(await this[_0x37cf0e(0x322)]['get'](_0x4e3bae))[_0x37cf0e(0x211)];return _0x3c3fcf['error']&&_0x3c3fcf['error']['code']===Cs['OK']?Promise[_0x37cf0e(0x1da)](_0x3c3fcf[_0x37cf0e(0x192)]):Promise['reject'](_0x3c3fcf[_0x37cf0e(0x24d)]);}catch(_0x1fdd62){return Promise[_0x37cf0e(0x1bb)](_0x1fdd62);}}async[_0x51fc53(0x1ae)](_0xf607e){const _0x161f06=_0x51fc53;let _0x246a31='';if(!_o[_0x161f06(0x11e)](_0xf607e[_0x161f06(0x2cd)]))return this['_decreaseWaiting'](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x1e6)]));if(_0xf607e[_0x161f06(0x23a)]>uo)return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x130)]));try{const _0x8b046=new FormData();_0x8b046[_0x161f06(0x168)](_0x161f06(0x117),_0xf607e);const _0x2d4825=this[_0x161f06(0x298)]()+'?size='+_0xf607e[_0x161f06(0x23a)]['toString'](),_0x367de6=await(await fetch(_0x2d4825,{'method':'POST','body':_0x8b046}))[_0x161f06(0xac)]();if(typeof _0x367de6[_0x161f06(0x105)]!=_0x161f06(0x288))return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x2c5)]));_0x246a31=_0x367de6['FileId'];}catch{return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x2c5)]));}return new Promise((_0x583255,_0xd3083c)=>{const _0x49243f=_0x161f06,_0x2a9f48=new FileReader();_0x2a9f48[_0x49243f(0x2da)](_0xf607e),_0x2a9f48[_0x49243f(0xc0)]=_0x36d983=>{const _0x306cc7=_0x49243f;var _0x1c9cc8;const _0x22e939=(_0x1c9cc8=_0x36d983[_0x306cc7(0x24e)])==null?void 0x0:_0x1c9cc8[_0x306cc7(0x1a5)];if(_0x22e939==null){this[_0x306cc7(0x31a)](),_0xd3083c(new Error(_0x59dd1c[_0x306cc7(0x2c5)]));return;}const _0x42e3f6=_0x4cfbd7[_0x306cc7(0x300)](0x6);_0x583255({'imageId':_0x42e3f6,'imageSourceType':_0x3a239e[_0x306cc7(0x1e2)],'source':_0x246a31,'base64Cache':_0x22e939,'status':_0x59dd1c['SUCCUSS']}),this[_0x306cc7(0x31a)]();};});}['_getUploadFileURL'](){const _0x3cc03f=_0x51fc53;var _0x1768f9;return(_0x1768f9=this[_0x3cc03f(0x2c4)][_0x3cc03f(0xf0)](fo))!=null?_0x1768f9:go;}[_0x51fc53(0x11c)](){const _0x496d29=_0x51fc53;var _0x1622ce;return(_0x1622ce=this[_0x496d29(0x2c4)][_0x496d29(0xf0)](mo))!=null?_0x1622ce:So;}[_0x51fc53(0x9f)](_0x13c020,_0x374e5a){const _0x2eed41=_0x51fc53;return _0x13c020[_0x2eed41(0x3b9)](_0x2eed41(0x241),_0x374e5a);}[_0x51fc53(0x31a)](){const _0x71cd14=_0x51fc53;this['_waitCount']-=0x1,this['_change$'][_0x71cd14(0x275)](this[_0x71cd14(0x2ac)]);}};It=lo([ss(0x0,_0x4a7404(_0x142257)),ss(0x1,_0x5977ca)],It);var ys=Object['defineProperty'],vo=Object[_0x51fc53(0x340)],po=(_0x1787ee,_0x362944,_0xc67bd9)=>_0x362944 in _0x1787ee?ys(_0x1787ee,_0x362944,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc67bd9}):_0x1787ee[_0x362944]=_0xc67bd9,Io=(_0x40951d,_0x81f0a1,_0x146d1b,_0x2766b0)=>{for(var _0x13aad7=_0x2766b0>0x1?void 0x0:_0x2766b0?vo(_0x81f0a1,_0x146d1b):_0x81f0a1,_0xaebeda=_0x40951d['length']-0x1,_0x5796a6;_0xaebeda>=0x0;_0xaebeda--)(_0x5796a6=_0x40951d[_0xaebeda])&&(_0x13aad7=(_0x2766b0?_0x5796a6(_0x81f0a1,_0x146d1b,_0x13aad7):_0x5796a6(_0x13aad7))||_0x13aad7);return _0x2766b0&&_0x13aad7&&ys(_0x81f0a1,_0x146d1b,_0x13aad7),_0x13aad7;},is=(_0x263d84,_0x1ea656)=>(_0x5e0a41,_0x464093)=>_0x1ea656(_0x5e0a41,_0x464093,_0x263d84),Eo=(_0x499c99,_0x5e5aa0,_0x4083d8)=>po(_0x499c99,_0x5e5aa0+'',_0x4083d8);const Co=_0x51fc53(0x237);let Et=class extends _0x5ab657{constructor(_0x2e15c3,_0x446586,_0x3a3284){const _0x38ccae=_0x51fc53;super(),this[_0x38ccae(0xcf)]=_0x2e15c3,this[_0x38ccae(0x37c)]=_0x446586,this[_0x38ccae(0x342)]=_0x3a3284;}[_0x51fc53(0x27c)](_0xf66743){const _0x59234b=_0x51fc53;var _0x14a502,_0x523c99,_0x1fff93,_0x93e493,_0xec068e;_0xf66743[_0x59234b(0x16c)](_0x5815e0)&&this[_0x59234b(0x37c)][_0x59234b(0x24d)](_0x59234b(0x2ce),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x32c73e=[[_0x5815e0,{'useClass':vt}],[Re],[At],[_0x142257],[As,{'useClass':Gr}],[ee],[D],[_0x1e9f90],[Ve],[ke],[Be],[Mt],[Ge],[Rs],[bs,{'useClass':(_0x523c99=(_0x14a502=this[_0x59234b(0xcf)])==null?void 0x0:_0x14a502[_0x59234b(0x1c9)])!=null?_0x523c99:_t}],[_0x38690b,{'useClass':_0x443f73}],[_0x3ad936,{'useClass':St}],[_0x5c087b,{'useClass':pt}],[_0x18bd4e,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x1fff93=this[_0x59234b(0xcf)])!=null&&_0x1fff93['enableSingleActiveInstanceLock']&&_0x32c73e['push']([Xe,{'useClass':On}]),((_0x93e493=this[_0x59234b(0xcf)])==null?void 0x0:_0x93e493[_0x59234b(0x23d)])==null||this[_0x59234b(0xcf)]['collaborationUniverTypes'][_0x59234b(0x11e)](_0x3504ec[_0x59234b(0x351)])?_0x32c73e[_0x59234b(0x19d)]([$e]):this[_0x59234b(0xcf)][_0x59234b(0x23d)][_0x59234b(0x11e)](_0x3504ec[_0x59234b(0x32c)])&&_0x32c73e[_0x59234b(0x19d)]([Fe]),_0x32c73e=_0xd86ae6(_0x32c73e,(_0xec068e=this[_0x59234b(0xcf)])==null?void 0x0:_0xec068e['override']),_0x32c73e[_0x59234b(0x124)](_0x47740e=>_0xf66743[_0x59234b(0xe7)](_0x47740e)),_0xf66743[_0x59234b(0x151)](_0x142257)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x5bab19({'maxParallel':0x6})}),this['_initModules']();}[_0x51fc53(0x198)](){const _0x126642=_0x51fc53;var _0x3ff55d,_0x3c95d0;(_0x3ff55d=this['_config'])!=null&&_0x3ff55d[_0x126642(0x21b)]||this[_0x126642(0x342)][_0x126642(0x151)](D)[_0x126642(0x329)](),(_0x3c95d0=this['_config'])!=null&&_0x3c95d0[_0x126642(0x17f)]&&this[_0x126642(0x342)][_0x126642(0x151)](Ge);}};Eo(Et,'pluginName',Co),Et=Io([_0x2e4016(_0x114daf),is(0x1,_0x3cb271),is(0x2,_0x4a7404(_0x44b6b8))],Et);export{oo as AUTHZ_URL_KEY,pt as AuthzIoHttpService,an as COLLAB_SUBMIT_CHANGESET_URL_KEY,zi as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Or as CollaborationStatusDisplay,Rs as CommentService,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,Is as HEARTBEAT_TIMEOUT_KEY,bs as ICollaborationSocketService,As as IURLService,rn as LOCAL_CACHE_INTERVAL_KEY,hn as LOGIN_URL_KEY,D as LocalCacheService,Xi as SEND_CHANGESET_TIMEOUT_KEY,Gi as SNAPSHOT_SERVER_URL_KEY,Ki as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Gr as WebURLService,gn as deserializeToCombResponse,mn as serializeCombRequest};