@univerjs-pro/collaboration-client 0.4.1-nightly.202410221606 → 0.4.1-nightly.202410241606

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 _0xcc124c=_0x293d;(function(_0x4a11e3,_0xd3d04c){const _0xf8231d=_0x293d,_0x4759cc=_0x4a11e3();while(!![]){try{const _0x29cdf5=-parseInt(_0xf8231d(0x2fe))/0x1*(-parseInt(_0xf8231d(0x466))/0x2)+-parseInt(_0xf8231d(0x510))/0x3+-parseInt(_0xf8231d(0x3f0))/0x4*(-parseInt(_0xf8231d(0x380))/0x5)+-parseInt(_0xf8231d(0x365))/0x6+parseInt(_0xf8231d(0x205))/0x7*(-parseInt(_0xf8231d(0x30c))/0x8)+-parseInt(_0xf8231d(0x1be))/0x9*(-parseInt(_0xf8231d(0x2fa))/0xa)+parseInt(_0xf8231d(0x1da))/0xb;if(_0x29cdf5===_0xd3d04c)break;else _0x4759cc['push'](_0x4759cc['shift']());}catch(_0x33e48f){_0x4759cc['push'](_0x4759cc['shift']());}}}(_0x2554,0x36c01));var ri=Object[_0xcc124c(0x2ad)],oi=(_0x25a77f,_0x5b184e,_0x31aed8)=>_0x5b184e in _0x25a77f?ri(_0x25a77f,_0x5b184e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31aed8}):_0x25a77f[_0x5b184e]=_0x31aed8,l=(_0x20dad6,_0x59003f,_0x5f2dca)=>oi(_0x20dad6,typeof _0x59003f!=_0xcc124c(0x429)?_0x59003f+'':_0x59003f,_0x5f2dca);import{createIdentifier as _0x49cd73,Inject as _0xa01556,Disposable as _0x4dfcd2,DisposableCollection as _0x460f88,toDisposable as _0x5b34e8,IConfigService as _0xf5edd1,ILogService as _0x40bb6c,UserManagerService as _0x421cfd,UniverInstanceType as _0x4eff1c,IUniverInstanceService as _0x4a621b,LocaleService as _0x991281,Optional as _0x18dda4,RxDisposable as _0xb64757,Injector as _0x3064b3,Tools as _0xe487b1,ILocalStorageService as _0x1e31bb,Rectangle as _0x49320b,ICommandService as _0x4ba546,JSONX as _0x2a33d0,CommandType as _0x542ece,IPermissionService as _0x5e2e27,IUndoRedoService as _0x48fa5b,sequenceExecute as _0x27d15e,debounce as _0x1c12c5,COLORS as _0x2c8d44,ColorKit as _0x2ada55,ThemeService as _0x2d99d8,fromEventSubject as _0x186b9e,useDependency as _0x4242ff,connectInjector as _0x219167,Workbook as _0x45305d,isInternalEditorID as _0x10f041,LocalUndoRedoService as _0xfad8ce,IContextService as _0x3dbf38,DependentOn as _0x101b14,Plugin as _0x1c5106,touchDependencies as _0x1f3c54,IAuthzIoService as _0x5da645,mergeOverrideWithDependencies as _0x5c5104}from'@univerjs/core';import{Subject as _0x3ca740,merge as _0x340e15,takeUntil as _0x2cf076,BehaviorSubject as _0x3708bc,distinctUntilChanged as _0x180102,fromEvent as _0x24365b,ReplaySubject as _0x4d114c,take as _0x13b589,map as _0x1706c3,shareReplay as _0x1748c0,of as _0x226e5d,debounceTime as _0x218b65,filter as _0x45726b,switchMap as _0x2b1c92,combineLatest as _0x1395c9,concatMap as _0x2e3fd6,mapTo as _0xfe2ad}from'rxjs';import{map as _0x493a42,take as _0x2f5271,filter as _0x117995,delay as _0x296164,throttleTime as _0x4d59a9,takeUntil as _0x274b03,switchMap as _0x499aa8}from'rxjs/operators';import{MessageType as _0x41136d,Tooltip as _0x2cafc6}from'@univerjs/design';import{IBeforeCloseService as _0x52af3f,IMessageService as _0x354bae,INotificationService as _0x1e71dd,useObservable as _0x137f69,BuiltInUIPart as _0x76aa4b,IUIPartsService as _0x226075}from'@univerjs/ui';import{HTTPService as _0x5f5876,WebSocketService as _0x153f02,MergeInterceptorFactory as _0x4d0cc4,HTTPRequest as _0x442990,IHTTPImplementation as _0x3519ca,XHRHTTPImplementation as _0x291f9f,ThresholdInterceptorFactory as _0x563a08}from'@univerjs/network';import{CollaborationEvent as _0x4b62d5,parseChangesetToProtocol as _0x4b6bf5,ISnapshotServerService as _0x56f9b0,isTransformMutationFailure as _0xbffc4f,isTransformMutationsWithChangesetSuccess as _0x4a7660,ITransformService as _0x279fb0,RevisionService as _0x378b64,mapDocumentTypeToUniverType as _0x1a0020,isTransformChangesetsSuccess as _0x20de62,CompressMutationService as _0x19192a,parseProtocolChangeset as _0x3ff530,SnapshotService as _0x484548,textEncoder as _0x433da2,b64DecodeUnicode as _0xbce4bb,isTransformMutationsWithChangesetFailure as _0x115074,UniverCollaborationPlugin as _0x2dc182}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x5d19a6}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x347005,DocStateChangeManagerService as _0x5b5ef5,NodePositionConvertToCursor as _0x14989d,isValidRectRange as _0x3886e9,NodePositionConvertToRectRange as _0x2cbc8e,TEXT_RANGE_LAYER_INDEX as _0x13bc1d,SetDocZoomRatioOperation as _0x5b90d3}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x5c2add,SetSelectionsOperation as _0x2ca063,InsertSheetMutation as _0xdc5fd1,EmptyMutation as _0x5c15e2,WorkbookEditablePermission as _0x5577c9,RefRangeService as _0x163f70,EffectRefRangId as _0x6c2c57,handleIRemoveRow as _0x175627,handleIRemoveCol as _0x4e8184,handleMoveRange as _0x18c972,handleInsertRow as _0x30290c,handleInsertRangeMoveRight as _0xb3c8d5,handleInsertRangeMoveDown as _0x31a259,handleInsertCol as _0x2065a2,handleDeleteRangeMoveUp as _0x37bd96,handleDeleteRangeMoveLeft as _0x3751c3,runRefRangeMutations as _0x1040c2,SetWorksheetActivateCommand as _0x2f1d57}from'@univerjs/sheets';import{IRenderManagerService as _0x739b15,Shape as _0x20dfdf,Rect as _0x178a86,getColor as _0x156ca5,RegularPolygon as _0x2ec8af,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x573d10,Vector2 as _0xf225ea}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2a59c5,RichTextEditingMutation as _0xba5740,SetTextSelectionsOperation as _0x321de0,DocSkeletonManagerService as _0x493cbc}from'@univerjs/docs';import{ImageSourceType as _0x23cb04,ImageUploadStatusType as _0x23a71,IImageIoService as _0x11079a}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0xcc0d24,serializeRangeWithSheet as _0x5dd5b4}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x347254,VIEWPORT_KEY as _0x19094e,getCoordByCell as _0x1b4f2,getSheetObject as _0x19d902,SheetPermissionInitController as _0x1225bc}from'@univerjs/sheets-ui';import _0x12d0e8,{forwardRef as _0x1650df,useRef as _0x2d2ac6,createElement as _0x3c7df6,useCallback as _0x3796a9}from'react';import{IRemoteInstanceService as _0x4f7c2f}from'@univerjs/rpc';import{getAttachHeader as _0x50fbca}from'@univerjs-pro/license';const In='SNAPSHOT_SERVER_URL_KEY',En=_0xcc124c(0x474),Cn='SNAPSHOT_URL_KEY',Ha=_0xcc124c(0x20c),bn=0x7d0,Tn=_0xcc124c(0x33b),Rn=_0xcc124c(0x27c),On=_0xcc124c(0x50d),Dn=0x7530,js=_0xcc124c(0x433),Hs=0x4e20,wn=0x4e20,Pn='RETRY_CONNECTING_MAX_COUNT',yn=0x3,Un=_0xcc124c(0x3c3),Nn=0x3e8,Mn=_0xcc124c(0x28c),An=_0xcc124c(0x1ba),Ln=_0xcc124c(0x350),$n=_0xcc124c(0x461);var xs=(_0x1272d1=>(_0x1272d1[_0x1272d1[_0xcc124c(0x386)]=0x0]=_0xcc124c(0x386),_0x1272d1[_0x1272d1['OK']=0x1]='OK',_0x1272d1[_0x1272d1[_0xcc124c(0x1b2)]=0x2]='INTERNAL_ERROR',_0x1272d1[_0x1272d1[_0xcc124c(0x3cc)]=0x3]=_0xcc124c(0x3cc),_0x1272d1[_0x1272d1['NOT_FOUND']=0x4]=_0xcc124c(0x367),_0x1272d1[_0x1272d1[_0xcc124c(0x3a0)]=0x5]=_0xcc124c(0x3a0),_0x1272d1[_0x1272d1[_0xcc124c(0x2b1)]=0x6]='ALREADY_EXISTS',_0x1272d1[_0x1272d1[_0xcc124c(0x4a6)]=0x7]=_0xcc124c(0x4a6),_0x1272d1[_0x1272d1['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x1272d1[_0x1272d1[_0xcc124c(0x41c)]=0x9]='COMPLETION_FINISHED',_0x1272d1[_0x1272d1[_0xcc124c(0x4e9)]=0x1389]=_0xcc124c(0x4e9),_0x1272d1[_0x1272d1[_0xcc124c(0x1bd)]=0x1771]=_0xcc124c(0x1bd),_0x1272d1[_0x1272d1[_0xcc124c(0x256)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1272d1[_0x1272d1[_0xcc124c(0x40f)]=0x1773]=_0xcc124c(0x40f),_0x1272d1[_0x1272d1['APPLY_REJECT']=0x1b59]=_0xcc124c(0x3c7),_0x1272d1[_0x1272d1[_0xcc124c(0x3c8)]=0x1b5a]=_0xcc124c(0x3c8),_0x1272d1[_0x1272d1[_0xcc124c(0x2cb)]=0x1b5b]=_0xcc124c(0x2cb),_0x1272d1[_0x1272d1[_0xcc124c(0x1af)]=0x1b5c]=_0xcc124c(0x1af),_0x1272d1[_0x1272d1[_0xcc124c(0x224)]=0x1b5d]=_0xcc124c(0x224),_0x1272d1[_0x1272d1[_0xcc124c(0x404)]=0x1f41]=_0xcc124c(0x404),_0x1272d1[_0x1272d1[_0xcc124c(0x37c)]=0x2329]=_0xcc124c(0x37c),_0x1272d1[_0x1272d1[_0xcc124c(0x2a3)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1272d1[_0x1272d1['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xcc124c(0x3d9),_0x1272d1[_0x1272d1[_0xcc124c(0x37f)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1272d1[_0x1272d1[_0xcc124c(0x417)]=0x232d]=_0xcc124c(0x417),_0x1272d1[_0x1272d1['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1272d1[_0x1272d1[_0xcc124c(0x291)]=0x2712]=_0xcc124c(0x291),_0x1272d1[_0x1272d1[_0xcc124c(0x288)]=0x2713]=_0xcc124c(0x288),_0x1272d1[_0x1272d1[_0xcc124c(0x4eb)]=0x2714]=_0xcc124c(0x4eb),_0x1272d1[_0x1272d1[_0xcc124c(0x421)]=-0x1]=_0xcc124c(0x421),_0x1272d1))(xs||{}),k=(_0xc13fbd=>(_0xc13fbd[_0xc13fbd['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0xc13fbd[_0xc13fbd[_0xcc124c(0x215)]=0x1]='UNIVER_DOC',_0xc13fbd[_0xc13fbd[_0xcc124c(0x3e5)]=0x2]=_0xcc124c(0x3e5),_0xc13fbd[_0xc13fbd[_0xcc124c(0x37b)]=0x3]=_0xcc124c(0x37b),_0xc13fbd[_0xc13fbd[_0xcc124c(0x41d)]=0x4]='UNIVER_PROJECT',_0xc13fbd[_0xc13fbd['UNRECOGNIZED']=-0x1]=_0xcc124c(0x421),_0xc13fbd))(k||{}),I=(_0x1f4931=>(_0x1f4931[_0x1f4931[_0xcc124c(0x475)]=0x0]='UNKNOWN_CMD',_0x1f4931[_0x1f4931[_0xcc124c(0x2bf)]=0x1]=_0xcc124c(0x2bf),_0x1f4931[_0x1f4931['JOIN']=0x2]=_0xcc124c(0x347),_0x1f4931[_0x1f4931['LEAVE']=0x3]=_0xcc124c(0x49d),_0x1f4931[_0x1f4931[_0xcc124c(0x3e4)]=0x4]=_0xcc124c(0x3e4),_0x1f4931[_0x1f4931[_0xcc124c(0x1c9)]=0x5]=_0xcc124c(0x1c9),_0x1f4931[_0x1f4931['RECV']=0x6]=_0xcc124c(0x271),_0x1f4931[_0x1f4931[_0xcc124c(0x421)]=-0x1]=_0xcc124c(0x421),_0x1f4931))(I||{}),Vt=(_0x3fc460=>(_0x3fc460[_0x3fc460['UNKNOWN_CODE']=0x0]=_0xcc124c(0x51d),_0x3fc460[_0x3fc460['OK']=0x1]='OK',_0x3fc460[_0x3fc460[_0xcc124c(0x4c2)]=0x2]='FAIL',_0x3fc460[_0x3fc460[_0xcc124c(0x421)]=-0x1]='UNRECOGNIZED',_0x3fc460))(Vt||{}),ks=(_0x2c3bf9=>(_0x2c3bf9[_0x2c3bf9[_0xcc124c(0x3ca)]=0x0]='Undefined',_0x2c3bf9[_0x2c3bf9['HttpImport']=0x1]='HttpImport',_0x2c3bf9[_0x2c3bf9[_0xcc124c(0x48a)]=0x2]=_0xcc124c(0x48a),_0x2c3bf9[_0x2c3bf9['UnitEmbedded']=0x3]=_0xcc124c(0x382),_0x2c3bf9[_0x2c3bf9[_0xcc124c(0x1e5)]=0x4]=_0xcc124c(0x1e5),_0x2c3bf9[_0x2c3bf9[_0xcc124c(0x421)]=-0x1]=_0xcc124c(0x421),_0x2c3bf9))(ks||{});const $=_0xcc124c(0x2bc),jn={};function Hn(_0x2e810b){const _0x14a571=_0xcc124c;var _0x171ae7,_0x40e431,_0xe7642a,_0x428294,_0x108b88;const _0x432e90=_0x2e810b[_0x14a571(0x2a7)],_0x1081d8=JSON[_0x14a571(0x52e)](_0x432e90);switch(_0x1081d8[_0x14a571(0x36b)]){case I['HEARTBEAT']:case I[_0x14a571(0x2bf)]:{const _0x57659d=_0x1081d8[_0x14a571(0x2da)];return{..._0x1081d8,'data':_0x57659d,'cmd':_0x1081d8[_0x14a571(0x36b)]};}case I[_0x14a571(0x347)]:{const _0x3ca914=_0x1081d8[_0x14a571(0x3f8)];return{..._0x1081d8,'data':_0x3ca914,'cmd':_0x1081d8[_0x14a571(0x36b)]};}case I['RECV']:{const _0x23a966=_0x1081d8['collaMsg'];switch(_0x23a966[_0x14a571(0x346)]){case _0x4b62d5['PERMISSION_REJ']:return{..._0x1081d8,'data':{..._0x23a966,'data':(_0x171ae7=_0x23a966['permissionRejEvent'])==null?void 0x0:_0x171ae7['cs']},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x4ab)]:return{..._0x1081d8,'data':{..._0x23a966,'data':(_0x40e431=_0x23a966[_0x14a571(0x3fc)])==null?void 0x0:_0x40e431['cs']},'cmd':_0x1081d8['cmd']};case _0x4b62d5[_0x14a571(0x4f9)]:return{..._0x1081d8,'data':{..._0x23a966,'data':(_0xe7642a=_0x23a966['newCsEvent'])==null?void 0x0:_0xe7642a['cs']},'cmd':_0x1081d8['cmd']};case _0x4b62d5[_0x14a571(0x392)]:return{..._0x1081d8,'data':{..._0x23a966,'data':(_0x428294=_0x23a966['csRejEvent'])==null?void 0x0:_0x428294['cs']},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x385)]:return{..._0x1081d8,'data':{..._0x23a966,'data':(_0x108b88=_0x23a966[_0x14a571(0x3f4)])==null?void 0x0:_0x108b88['cs']},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5['UPDATE_CURSOR']:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x3ee)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x3df)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966['joinEvent']},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5['USERS_LEAVE']:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966['leaveEvent']},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x29b)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x506)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x248)]:case _0x4b62d5[_0x14a571(0x398)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x515)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x2a0)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x506)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x4b7)]:return{..._0x1081d8,'data':_0x23a966,'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5['COMMENT_UPDATE']:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x343)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x40a)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x331)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x326)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x51e)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};default:return _0x1081d8;}}default:return _0x1081d8;}}function xn(_0x502a42){const _0x2deb33=_0xcc124c;switch(_0x502a42['cmd']){case I[_0x2deb33(0x1c9)]:case I[_0x2deb33(0x2bf)]:return JSON[_0x2deb33(0x234)]({'cmd':_0x502a42['cmd'],'routeKey':_0x502a42[_0x2deb33(0x213)]});case I['INGEST']:{let _0x21051c;switch(_0x502a42['data'][_0x2deb33(0x346)]){case _0x4b62d5['UPDATE_CURSOR']:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x340)],'updateCursorEvent':_0x502a42[_0x2deb33(0x2a7)][_0x2deb33(0x2a7)]};break;}case _0x4b62d5[_0x2deb33(0x3e3)]:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x3e3)],'leaveEvent':_0x502a42[_0x2deb33(0x2a7)]['data']};break;}case _0x4b62d5['USERS_ENTER']:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x3df)],'joinEvent':_0x502a42[_0x2deb33(0x2a7)][_0x2deb33(0x2a7)]};break;}case _0x4b62d5[_0x2deb33(0x29b)]:{_0x21051c={'eventID':_0x4b62d5['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x502a42['data'][_0x2deb33(0x2a7)]};break;}case _0x4b62d5[_0x2deb33(0x398)]:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x398)],'liveShareOperation':_0x502a42[_0x2deb33(0x2a7)][_0x2deb33(0x2a7)]};break;}case _0x4b62d5[_0x2deb33(0x2a0)]:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x2a0)],'liveShareTerminate':_0x502a42['data'][_0x2deb33(0x2a7)]};break;}case _0x4b62d5[_0x2deb33(0x207)]:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x207)],'liveShareRequestHost':_0x502a42[_0x2deb33(0x2a7)][_0x2deb33(0x2a7)]};break;}case _0x4b62d5['LIVESHARE_FETCH_OPERATIONS']:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x248)]};break;}default:_0x21051c={'eventID':_0x502a42[_0x2deb33(0x2a7)]['eventID']};}return JSON[_0x2deb33(0x234)]({'cmd':_0x502a42['cmd'],'routeKey':_0x502a42[_0x2deb33(0x213)],'collaMsg':_0x21051c});}case I[_0x2deb33(0x347)]:return JSON['stringify']({'cmd':_0x502a42['cmd'],'routeKey':_0x502a42['routeKey'],'joinReq':_0x502a42[_0x2deb33(0x2a7)]});case I[_0x2deb33(0x49d)]:return JSON[_0x2deb33(0x234)]({'cmd':_0x502a42['cmd'],'routeKey':_0x502a42[_0x2deb33(0x213)],'leaveReq':_0x502a42['data']});default:throw new Error(_0x2deb33(0x43d));}}var kn=Object['defineProperty'],Bn=Object['getOwnPropertyDescriptor'],Vn=(_0x628c69,_0x42ff81,_0x542fdb,_0x343584)=>{for(var _0x2ac5dd=_0x343584>0x1?void 0x0:_0x343584?Bn(_0x42ff81,_0x542fdb):_0x42ff81,_0x14a28c=_0x628c69['length']-0x1,_0x3a80dd;_0x14a28c>=0x0;_0x14a28c--)(_0x3a80dd=_0x628c69[_0x14a28c])&&(_0x2ac5dd=(_0x343584?_0x3a80dd(_0x42ff81,_0x542fdb,_0x2ac5dd):_0x3a80dd(_0x2ac5dd))||_0x2ac5dd);return _0x343584&&_0x2ac5dd&&kn(_0x42ff81,_0x542fdb,_0x2ac5dd),_0x2ac5dd;},Oe=(_0x37b0af,_0x316748)=>(_0x159d4f,_0x43e04f)=>_0x316748(_0x159d4f,_0x43e04f,_0x37b0af);const Bs=_0x49cd73(_0xcc124c(0x4d9));function Fn(_0x4c3af9,_0x1bc813,_0xd2b18b){const _0x303e80=_0xcc124c;return _0x4c3af9+'/'+_0x1bc813+_0x303e80(0x495)+_0xd2b18b+'/new_changes';}let Ct=class extends _0x4dfcd2{constructor(_0x4959c4,_0x3e36e6,_0x155413,_0x338ee3,_0xbbf2bd){const _0x482342=_0xcc124c;super(),this['_http']=_0x4959c4,this[_0x482342(0x408)]=_0x3e36e6,this[_0x482342(0x3f6)]=_0x155413,this[_0x482342(0x1b0)]=_0x338ee3,this[_0x482342(0x21c)]=_0xbbf2bd;}[_0xcc124c(0x1f3)](_0x1d99d0){const _0x26a6cb=_0xcc124c,_0x2ac611=this[_0x26a6cb(0x408)]['createSocket'](_0x1d99d0);if(!_0x2ac611)throw new Error(_0x26a6cb(0x1e7));const _0x59e7de=new _0x460f88(),_0x4b3c26=new _0x3ca740();_0x59e7de[_0x26a6cb(0x266)](_0x2ac611[_0x26a6cb(0x1ae)][_0x26a6cb(0x3ac)](_0x503168=>_0x4b3c26['next'](_0x503168))),_0x59e7de[_0x26a6cb(0x266)](_0x5b34e8(()=>_0x4b3c26[_0x26a6cb(0x492)]()));const _0x4ef8ac=new _0x3ca740();_0x59e7de['add'](_0x2ac611['error$']['subscribe'](_0x5af135=>_0x4ef8ac[_0x26a6cb(0x1cf)](_0x5af135))),_0x59e7de['add'](_0x5b34e8(()=>_0x4ef8ac[_0x26a6cb(0x492)]()));const _0x5c1173=new _0x3ca740();_0x59e7de[_0x26a6cb(0x266)](_0x2ac611['message$'][_0x26a6cb(0x3ac)](_0x3bd161=>{const _0x2f1b0=_0x26a6cb,_0x1fe560=Hn(_0x3bd161);_0x5c1173[_0x2f1b0(0x1cf)](_0x1fe560);})),_0x59e7de['add'](_0x5b34e8(()=>_0x5c1173[_0x26a6cb(0x492)]()));let _0x56db1c;const _0x2cb269=()=>{const _0x28ad55=_0x26a6cb;_0x4ef8ac[_0x28ad55(0x1cf)](new Event('connection\x20error')),_0x4b3c26[_0x28ad55(0x1cf)](new CloseEvent(_0x28ad55(0x434))),_0x56db1c[_0x28ad55(0x49b)]();};return _0x56db1c={'memberID':'','close$':_0x4b3c26['asObservable'](),'error$':_0x4ef8ac[_0x26a6cb(0x407)](),'open$':_0x2ac611[_0x26a6cb(0x2df)],'message$':_0x5c1173[_0x26a6cb(0x407)](),'send':_0x45e1ed=>{const _0x597a6b=_0x26a6cb;if(_0x45e1ed[_0x597a6b(0x36b)]===I[_0x597a6b(0x3e4)]){if(_0x45e1ed['data'][_0x597a6b(0x346)]===_0x4b62d5[_0x597a6b(0x397)]){this[_0x597a6b(0x4be)](_0x56db1c,_0x45e1ed[_0x597a6b(0x2a7)])[_0x597a6b(0x38b)](_0x225175=>{const _0x4d097b=_0x597a6b;this[_0x4d097b(0x1b0)][_0x4d097b(0x1b3)](_0x225175),_0x2cb269();});return;}if(_0x45e1ed['data'][_0x597a6b(0x346)]===_0x4b62d5[_0x597a6b(0x24e)]){const _0x4ddb44=_0x45e1ed[_0x597a6b(0x2a7)];this[_0x597a6b(0x2dd)](_0x4ddb44)[_0x597a6b(0x520)](_0x4669b0=>{const _0xaa0209=_0x597a6b;_0x5c1173['next']({'cmd':I['RECV'],'code':Vt['OK'],'routeKey':_0x4ddb44[_0xaa0209(0x2a7)][_0xaa0209(0x38f)],'routeType':'','data':{'eventID':_0x4b62d5[_0xaa0209(0x296)],'data':{'changesets':_0x4669b0}}});})[_0x597a6b(0x38b)](_0x1a4a2b=>{const _0x4f6ae4=_0x597a6b;this[_0x4f6ae4(0x1b0)]['error'](_0x1a4a2b),_0x2cb269();});return;}}_0x2ac611['send'](xn(_0x45e1ed));},'close':()=>{const _0xfa8ce=_0x26a6cb;_0x2ac611[_0xfa8ce(0x49b)](),_0x59e7de['dispose']();}},_0x56db1c;}async[_0xcc124c(0x4be)](_0x18582c,_0x2097e4){const _0x12b12a=_0xcc124c;var _0x27a590,_0x17beb9;const {unitType:_0x548790,unitID:_0x316fef,changeset:_0x307196}=_0x2097e4[_0x12b12a(0x2a7)],_0x5b1299={'unitID':_0x316fef,'memberID':_0x18582c[_0x12b12a(0x43e)],'type':_0x548790,'changeset':_0x4b6bf5(_0x307196)},_0x497d6c=this[_0x12b12a(0x3f6)]['getConfig'](Mn),_0x101aac=this[_0x12b12a(0x3f6)][_0x12b12a(0x463)]($),_0x141e8f=Fn((_0x17beb9=(_0x27a590=_0x101aac==null?void 0x0:_0x101aac[_0x12b12a(0x297)])!=null?_0x27a590:_0x497d6c)!=null?_0x17beb9:An,_0x548790,_0x316fef);try{await this[_0x12b12a(0x52b)][_0x12b12a(0x533)](_0x141e8f,{'body':_0x5b1299});}catch(_0x322730){throw this[_0x12b12a(0x1b0)][_0x12b12a(0x1b3)]('[CollaborationSession]',_0x12b12a(0x3f3)),_0x322730;}}async['_fetchMissChangesets'](_0x18aa03){const _0x42df90=_0xcc124c,{unitID:_0x445035,from:_0xff9183,to:_0x42d7fe,unitType:_0x1efcbd}=_0x18aa03[_0x42df90(0x2a7)];return(await this[_0x42df90(0x21c)][_0x42df90(0x312)]({'metadata':void 0x0},{'unitID':_0x445035,'type':_0x1efcbd,'from':_0xff9183,'to':_0x42d7fe}))['changesets'];}};Ct=Vn([Oe(0x0,_0xa01556(_0x5f5876)),Oe(0x1,_0xa01556(_0x153f02)),Oe(0x2,_0xf5edd1),Oe(0x3,_0x40bb6c),Oe(0x4,_0x56f9b0)],Ct);const Wn='collaboration_new_changeset';function Gn(_0x31c37c){const _0x313fc4=_0xcc124c;return JSON[_0x313fc4(0x234)](_0x31c37c)[_0x313fc4(0x236)];}class Vs{constructor(){const _0x42e148=_0xcc124c;l(this,_0x42e148(0x528),new _0x3ca740()),l(this,'commentUpdate$',this[_0x42e148(0x528)]['asObservable']());}['onCommentUpdate'](_0x1a17e3){const _0x43a56b=_0xcc124c;this[_0x43a56b(0x528)]['next'](_0x1a17e3);}}var Yn=Object[_0xcc124c(0x2ad)],Kn=Object[_0xcc124c(0x3f2)],Xn=(_0x558d12,_0x55dc4e,_0x14fbc8,_0x20cb35)=>{const _0x4ba735=_0xcc124c;for(var _0x491885=_0x20cb35>0x1?void 0x0:_0x20cb35?Kn(_0x55dc4e,_0x14fbc8):_0x55dc4e,_0x498d00=_0x558d12[_0x4ba735(0x236)]-0x1,_0xf2c686;_0x498d00>=0x0;_0x498d00--)(_0xf2c686=_0x558d12[_0x498d00])&&(_0x491885=(_0x20cb35?_0xf2c686(_0x55dc4e,_0x14fbc8,_0x491885):_0xf2c686(_0x491885))||_0x491885);return _0x20cb35&&_0x491885&&Yn(_0x55dc4e,_0x14fbc8,_0x491885),_0x491885;},as=(_0x310fd5,_0x25beb0)=>(_0x4e8c7c,_0x43e571)=>_0x25beb0(_0x4e8c7c,_0x43e571,_0x310fd5);let ce=class extends _0x4dfcd2{constructor(_0x42e7e3,_0xec4fd4){const _0x360ae4=_0xcc124c;super(),l(this,_0x360ae4(0x2d4),new Map()),(this['_univerInstanceService']=_0x42e7e3,this[_0x360ae4(0x419)]=_0xec4fd4,this[_0x360ae4(0x379)](_0x5b34e8(_0x340e15(this[_0x360ae4(0x268)][_0x360ae4(0x43b)](_0x4eff1c[_0x360ae4(0x3e5)])[_0x360ae4(0x4f2)](_0x493a42(_0x29e0c8=>_0x29e0c8['getUnitId']())),this[_0x360ae4(0x268)][_0x360ae4(0x43b)](_0x4eff1c[_0x360ae4(0x215)])[_0x360ae4(0x4f2)](_0x493a42(_0x9455b=>_0x9455b[_0x360ae4(0x43f)]())),this[_0x360ae4(0x268)][_0x360ae4(0x43b)](_0x4eff1c[_0x360ae4(0x37b)])[_0x360ae4(0x4f2)](_0x493a42(_0x234b42=>_0x234b42[_0x360ae4(0x43f)]())))[_0x360ae4(0x3ac)](_0x13985e=>this['_removeRoom'](_0x13985e)))));}[_0xcc124c(0x32d)](_0x8d92c0){const _0x1c9bf5=_0xcc124c;this['_userManagerService'][_0x1c9bf5(0x32d)](_0x8d92c0);}[_0xcc124c(0x3b5)](){const _0x3053f6=_0xcc124c;return this[_0x3053f6(0x419)][_0x3053f6(0x3b5)]();}[_0xcc124c(0x2b6)](_0x314b80,_0x68de3d){const _0x585719=_0xcc124c;let _0x5597af=this['_roomMembers'][_0x585719(0x4e6)](_0x314b80);_0x5597af||(_0x5597af=new qn(),this['_roomMembers'][_0x585719(0x4d8)](_0x314b80,_0x5597af)),_0x5597af[_0x585719(0x2b6)](_0x68de3d);}[_0xcc124c(0x1ce)](_0x4bc479,_0x73505a){const _0x1cdd27=_0xcc124c,_0x236251=this[_0x1cdd27(0x2d4)][_0x1cdd27(0x4e6)](_0x4bc479);_0x236251&&_0x236251[_0x1cdd27(0x1ce)](_0x73505a);}[_0xcc124c(0x4fc)](_0x4cb44b){const _0x3abed6=_0xcc124c;return this[_0x3abed6(0x2d4)][_0x3abed6(0x4e6)](_0x4cb44b);}[_0xcc124c(0x1d6)](_0x386f2c,_0x26b81e){const _0x3b03ed=_0xcc124c,_0x39f245=this[_0x3b03ed(0x2d4)][_0x3b03ed(0x4e6)](_0x386f2c);if(_0x39f245)return _0x39f245[_0x3b03ed(0x1d6)](_0x26b81e);}[_0xcc124c(0x327)](_0x5e48c2){const _0x4cf6b6=_0xcc124c,_0x5e03c5=this[_0x4cf6b6(0x2d4)][_0x4cf6b6(0x4e6)](_0x5e48c2);_0x5e03c5&&(_0x5e03c5[_0x4cf6b6(0x2e2)](),this[_0x4cf6b6(0x2d4)][_0x4cf6b6(0x3bd)](_0x5e48c2));}[_0xcc124c(0x2e2)](){const _0x4738c9=_0xcc124c;this['_roomMembers'][_0x4738c9(0x3d5)](_0x2a748a=>_0x2a748a[_0x4738c9(0x2e2)]()),this[_0x4738c9(0x2d4)][_0x4738c9(0x233)]();}};ce=Xn([as(0x0,_0x4a621b),as(0x1,_0xa01556(_0x421cfd))],ce);class qn extends _0x4dfcd2{constructor(){const _0x1b5fba=_0xcc124c;super(...arguments),l(this,_0x1b5fba(0x25f),new Map());}['dispose'](){const _0x30c90b=_0xcc124c;this[_0x30c90b(0x25f)]['clear']();}[_0xcc124c(0x2b6)](_0x2310ca){const _0x31d4c4=_0xcc124c;this[_0x31d4c4(0x25f)]['set'](_0x2310ca[_0x31d4c4(0x43e)],_0x2310ca);}[_0xcc124c(0x1ce)](_0x4f1c32){const _0x2888a7=_0xcc124c;this['_members'][_0x2888a7(0x3bd)](_0x4f1c32);}[_0xcc124c(0x1d6)](_0x2dab7d){const _0x3a856a=_0xcc124c;return this[_0x3a856a(0x25f)]['get'](_0x2dab7d);}}var Jn=Object[_0xcc124c(0x2ad)],zn=Object[_0xcc124c(0x3f2)],Zn=(_0x199ed4,_0x243119,_0x2ba29f,_0x308d4c)=>{const _0x3fbbb1=_0xcc124c;for(var _0x14e0f0=_0x308d4c>0x1?void 0x0:_0x308d4c?zn(_0x243119,_0x2ba29f):_0x243119,_0x2835fa=_0x199ed4[_0x3fbbb1(0x236)]-0x1,_0x4686d4;_0x2835fa>=0x0;_0x2835fa--)(_0x4686d4=_0x199ed4[_0x2835fa])&&(_0x14e0f0=(_0x308d4c?_0x4686d4(_0x243119,_0x2ba29f,_0x14e0f0):_0x4686d4(_0x14e0f0))||_0x14e0f0);return _0x308d4c&&_0x14e0f0&&Jn(_0x243119,_0x2ba29f,_0x14e0f0),_0x14e0f0;},J=(_0x42a833,_0x2f90f8)=>(_0x1ee108,_0x4cca3c)=>_0x2f90f8(_0x1ee108,_0x4cca3c,_0x42a833),Y=(_0x5077f6=>(_0x5077f6[_0x5077f6[_0xcc124c(0x387)]=0x0]='IDLE',_0x5077f6[_0x5077f6[_0xcc124c(0x406)]=0x1]=_0xcc124c(0x406),_0x5077f6[_0x5077f6[_0xcc124c(0x1d8)]=0x2]=_0xcc124c(0x1d8),_0x5077f6[_0x5077f6[_0xcc124c(0x364)]=0x3]=_0xcc124c(0x364),_0x5077f6))(Y||{});let bt=class extends _0xb64757{constructor(_0x3729cf,_0x5ef21f,_0x3b115b,_0x2e9986,_0xc3f113,_0x3682fb,_0x1acde6,_0x171000,_0x226bb7,_0x190fbb){const _0x139fd7=_0xcc124c;super(),l(this,_0x139fd7(0x2f0),new _0x3708bc(0x0)),l(this,'sessionStatus$',this['_sessionStatus$'][_0x139fd7(0x407)]()),l(this,_0x139fd7(0x416),new _0x3ca740()),l(this,_0x139fd7(0x2b5),this['_event$'][_0x139fd7(0x407)]()),l(this,'_socket'),l(this,_0x139fd7(0x4fd)),l(this,_0x139fd7(0x1c2)),l(this,_0x139fd7(0x3e6),!0x1),l(this,'_telemetryInfo',null),(this[_0x139fd7(0x30e)]=_0x3729cf,this[_0x139fd7(0x1b0)]=_0x3b115b,this[_0x139fd7(0x2ac)]=_0x2e9986,this[_0x139fd7(0x41e)]=_0xc3f113,this[_0x139fd7(0x3f6)]=_0x3682fb,this['_localeService']=_0x1acde6,this[_0x139fd7(0x2ca)]=_0x171000,this[_0x139fd7(0x50a)]=_0x226bb7,this[_0x139fd7(0x484)]=_0x190fbb,this[_0x139fd7(0x3e6)]=!!this[_0x139fd7(0x484)],_0x5ef21f[_0x139fd7(0x4f2)](_0x2cf076(this[_0x139fd7(0x31d)]))[_0x139fd7(0x3ac)](_0x268302=>{const _0x13945b=_0x139fd7;var _0x333e00;typeof _0x268302>'u'||(this[_0x13945b(0x426)]=_0x268302,_0x268302?(this[_0x13945b(0x45e)](_0x268302),this[_0x13945b(0x4fd)]=_0x268302[_0x13945b(0x2ea)][_0x13945b(0x3ac)](_0x30d6fc=>{const _0x44bfc4=_0x13945b;_0x30d6fc[_0x44bfc4(0x213)]===this[_0x44bfc4(0x30e)]&&this[_0x44bfc4(0x202)](_0x30d6fc);})):(this[_0x13945b(0x446)](),this[_0x13945b(0x2f0)][_0x13945b(0x1cf)](0x2),(_0x333e00=this[_0x13945b(0x4fd)])==null||_0x333e00['unsubscribe'](),this[_0x13945b(0x4fd)]=null));}),this[_0x139fd7(0x379)](this[_0x139fd7(0x2ac)]['registerOnClose'](()=>{const _0x5341b2=_0x139fd7;var _0x2343ba;(_0x2343ba=this[_0x5341b2(0x426)])==null||_0x2343ba[_0x5341b2(0x27e)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x5341b2(0x30e)]}});})));}get[_0xcc124c(0x524)](){const _0x3cafc4=_0xcc124c;return this[_0x3cafc4(0x2f0)][_0x3cafc4(0x24c)]();}['getMemberID'](){const _0x2c1f34=_0xcc124c;var _0x431070,_0x52ae3c;return(_0x52ae3c=(_0x431070=this[_0x2c1f34(0x426)])==null?void 0x0:_0x431070[_0x2c1f34(0x43e)])!=null?_0x52ae3c:null;}['dispose'](){const _0x2f8147=_0xcc124c;super[_0x2f8147(0x2e2)](),this['dispose$'][_0x2f8147(0x1cf)](),this['dispose$'][_0x2f8147(0x492)]();}[_0xcc124c(0x49b)](){const _0x1c6d3c=_0xcc124c;var _0x3ee20b,_0x17de81;this[_0x1c6d3c(0x446)](),(_0x3ee20b=this['_socket'])==null||_0x3ee20b[_0x1c6d3c(0x27e)]({'cmd':I[_0x1c6d3c(0x49d)],'data':{'roomID':this[_0x1c6d3c(0x30e)]}}),(_0x17de81=this[_0x1c6d3c(0x426)])==null||_0x17de81[_0x1c6d3c(0x49b)](),this[_0x1c6d3c(0x416)]['complete'](),this[_0x1c6d3c(0x2f0)]['complete'](),this[_0x1c6d3c(0x2e2)]();}[_0xcc124c(0x202)](_0x3dcc30){const _0xc27978=_0xcc124c;_0x3dcc30[_0xc27978(0x36b)]===I[_0xc27978(0x347)]?this['_onJoinRoomEvent'](_0x3dcc30):_0x3dcc30['cmd']===I['RECV']&&this[_0xc27978(0x4c6)](_0x3dcc30);}['_joinRoom'](_0x37f0a1){const _0xe8876b=_0xcc124c;this['_sessionStatus$'][_0xe8876b(0x1cf)](0x1),_0x37f0a1[_0xe8876b(0x27e)]({'cmd':I[_0xe8876b(0x347)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xe8876b(0x30e)]}]}});}['_onJoinRoomEvent'](_0x1d7baa){const _0x64ea14=_0xcc124c;var _0x1f6720;if(_0x1d7baa['code']===Vt[_0x64ea14(0x4c2)]){this[_0x64ea14(0x41e)][_0x64ea14(0x1b9)]({'type':_0x41136d['Warning'],'content':this[_0x64ea14(0x51c)]['t'](_0x64ea14(0x30d))}),this['_sessionStatus$'][_0x64ea14(0x1cf)](0x2);return;}this[_0x64ea14(0x2f0)][_0x64ea14(0x1cf)](0x3);const _0x5d8f42=(_0x1f6720=_0x1d7baa[_0x64ea14(0x2a7)]['roomInfos'][this[_0x64ea14(0x30e)]])==null?void 0x0:_0x1f6720[_0x64ea14(0x1ad)];_0x5d8f42&&_0x5d8f42[_0x64ea14(0x3d5)](_0x393c29=>this[_0x64ea14(0x2ca)][_0x64ea14(0x2b6)](this[_0x64ea14(0x30e)],_0x393c29));}['_onRecvEvent'](_0x558c67){const _0x6fa7e2=_0xcc124c;try{const _0x1bf94d=_0x558c67[_0x6fa7e2(0x2a7)];switch(_0x1bf94d['eventID']){case _0x4b62d5[_0x6fa7e2(0x3df)]:this['_onUserJoin'](_0x1bf94d),this[_0x6fa7e2(0x416)][_0x6fa7e2(0x1cf)](_0x1bf94d);break;case _0x4b62d5['USERS_LEAVE']:this['_onUserLeave'](_0x1bf94d),this[_0x6fa7e2(0x416)]['next'](_0x1bf94d);break;case _0x4b62d5[_0x6fa7e2(0x4ab)]:case _0x4b62d5['CHANGESET_SHOULD_RETRY']:this[_0x6fa7e2(0x376)](),this[_0x6fa7e2(0x1e6)](),this['_event$'][_0x6fa7e2(0x1cf)](_0x1bf94d);break;case _0x4b62d5[_0x6fa7e2(0x4b7)]:this[_0x6fa7e2(0x1b0)][_0x6fa7e2(0x1b3)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x6fa7e2(0x234)](_0x1bf94d)),this[_0x6fa7e2(0x416)]['next'](_0x1bf94d);break;case _0x4b62d5[_0x6fa7e2(0x371)]:this[_0x6fa7e2(0x50a)]['onCommentUpdate'](_0x1bf94d['data']),this[_0x6fa7e2(0x416)][_0x6fa7e2(0x1cf)](_0x1bf94d);break;default:this[_0x6fa7e2(0x416)][_0x6fa7e2(0x1cf)](_0x1bf94d);}}catch(_0x5080bd){this[_0x6fa7e2(0x1b0)][_0x6fa7e2(0x1b3)](_0x5080bd,_0x558c67);}}[_0xcc124c(0x451)](_0x49ac08){const _0x12dd0a=_0xcc124c;this['_memberService'][_0x12dd0a(0x2b6)](this[_0x12dd0a(0x30e)],_0x49ac08['data']);}[_0xcc124c(0x431)](_0x6d88b){const _0x2176dd=_0xcc124c;this['_memberService']['removeMember'](this['_unitID'],_0x6d88b[_0x2176dd(0x2a7)][_0x2176dd(0x43e)]);}async['send'](_0x529383,_0x23e668){const _0x4b0882=_0xcc124c;if(this[_0x4b0882(0x524)]!==0x3||!this[_0x4b0882(0x426)])throw new Error(_0x4b0882(0x323));try{_0x529383[_0x4b0882(0x346)]===_0x4b62d5[_0x4b0882(0x397)]&&(this[_0x4b0882(0x1f2)](),this[_0x4b0882(0x2aa)](_0x529383)),this[_0x4b0882(0x426)][_0x4b0882(0x27e)]({'cmd':I['INGEST'],'routeKey':_0x23e668,'routeType':'','data':_0x529383});}catch(_0x30a1b1){this['_logService'][_0x4b0882(0x1b3)](_0x30a1b1);}}[_0xcc124c(0x1f2)](){const _0x4e14a0=_0xcc124c;var _0x4d8055;this[_0x4e14a0(0x1c2)]=window[_0x4e14a0(0x27d)](()=>{const _0x37bbe2=_0x4e14a0;this[_0x37bbe2(0x1c2)]=null,this[_0x37bbe2(0x41e)]['show']({'type':_0x41136d['Error'],'content':this[_0x37bbe2(0x51c)]['t']('session.collaboration-timeout')});},(_0x4d8055=this[_0x4e14a0(0x3f6)][_0x4e14a0(0x463)](js))!=null?_0x4d8055:Hs);}[_0xcc124c(0x1e6)](){const _0x5337d0=_0xcc124c;this[_0x5337d0(0x1c2)]&&(clearTimeout(this[_0x5337d0(0x1c2)]),this['_collaborationTimeoutTimer']=null);}[_0xcc124c(0x2aa)](_0x42851f){const _0x2be12f=_0xcc124c;if(!this[_0x2be12f(0x3e6)])return;const {data:_0x31970a}=_0x42851f,{unitID:_0x5cb34c,changeset:_0x33bca9}=_0x31970a,{mutations:_0x49a4c6,type:_0x1f40a5}=_0x33bca9;this['_telemetryInfo']={'unitId':_0x5cb34c,'type':_0x1f40a5,'startTime':performance[_0x2be12f(0x2f4)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x49a4c6)};}[_0xcc124c(0x376)](){const _0x50c27a=_0xcc124c;if(this['_shouldReportTelemetry']){if(!this[_0x50c27a(0x526)]){this['_logService']['error'](_0x50c27a(0x255),_0x50c27a(0x3d0));return;}this[_0x50c27a(0x526)][_0x50c27a(0x3b3)]=performance[_0x50c27a(0x2f4)](),this['_telemetryInfo'][_0x50c27a(0x3f1)]=this[_0x50c27a(0x526)][_0x50c27a(0x3b3)]-this['_telemetryInfo'][_0x50c27a(0x4b0)],this[_0x50c27a(0x484)][_0x50c27a(0x498)](Wn,this[_0x50c27a(0x526)]),this[_0x50c27a(0x526)]=null;}}[_0xcc124c(0x446)](){this['_telemetryInfo']=null;}};bt=Zn([J(0x2,_0x40bb6c),J(0x3,_0x52af3f),J(0x4,_0x354bae),J(0x5,_0xf5edd1),J(0x6,_0xa01556(_0x991281)),J(0x7,_0xa01556(ce)),J(0x8,_0xa01556(Vs)),J(0x9,_0x18dda4(_0x5d19a6))],bt);var Qn=Object['defineProperty'],er=Object[_0xcc124c(0x3f2)],tr=(_0x8c79ef,_0x5c3526,_0x51b808,_0x4d538f)=>{const _0x164426=_0xcc124c;for(var _0x167a65=_0x4d538f>0x1?void 0x0:_0x4d538f?er(_0x5c3526,_0x51b808):_0x5c3526,_0x4f51f7=_0x8c79ef[_0x164426(0x236)]-0x1,_0x1d8bfb;_0x4f51f7>=0x0;_0x4f51f7--)(_0x1d8bfb=_0x8c79ef[_0x4f51f7])&&(_0x167a65=(_0x4d538f?_0x1d8bfb(_0x5c3526,_0x51b808,_0x167a65):_0x1d8bfb(_0x167a65))||_0x167a65);return _0x4d538f&&_0x167a65&&Qn(_0x5c3526,_0x51b808,_0x167a65),_0x167a65;},me=(_0x1b9362,_0x40e4a2)=>(_0x2a48f6,_0x22cd14)=>_0x40e4a2(_0x2a48f6,_0x22cd14,_0x1b9362);let he=class extends _0x4dfcd2{constructor(_0x4b6d8a,_0x325183,_0x2bb140,_0x328cb5,_0x2cf2dd,_0x19ada5){const _0x1ac1ec=_0xcc124c;super(),l(this,'_socket$',new _0x3708bc(void 0x0)),l(this,'socket$',this[_0x1ac1ec(0x24a)]['asObservable']()),l(this,_0x1ac1ec(0x20d),null),l(this,'_sessions',new Map()),l(this,_0x1ac1ec(0x46b),new _0x3708bc(Y[_0x1ac1ec(0x387)])),l(this,_0x1ac1ec(0x3bf),this[_0x1ac1ec(0x46b)][_0x1ac1ec(0x407)]()),l(this,_0x1ac1ec(0x330),!0x1),l(this,_0x1ac1ec(0x4e7)),l(this,_0x1ac1ec(0x31a),0x0),l(this,_0x1ac1ec(0x2a8)),l(this,_0x1ac1ec(0x3a9)),(this[_0x1ac1ec(0x2bb)]=_0x4b6d8a,this[_0x1ac1ec(0x51c)]=_0x325183,this['_messageService']=_0x2bb140,this['_logService']=_0x328cb5,this['_configService']=_0x2cf2dd,this[_0x1ac1ec(0x335)]=_0x19ada5,this[_0x1ac1ec(0x464)]());}get['_socket'](){const _0x55ec77=_0xcc124c;return this[_0x55ec77(0x24a)]['getValue']();}[_0xcc124c(0x464)](){const _0x5a6788=_0xcc124c;this['_listenToOfflineEvent'](),this[_0x5a6788(0x356)]();}[_0xcc124c(0x2e2)](){const _0x2fced0=_0xcc124c;super[_0x2fced0(0x2e2)](),this[_0x2fced0(0x512)][_0x2fced0(0x3d5)](_0x4094ba=>_0x4094ba['dispose']()),this[_0x2fced0(0x512)][_0x2fced0(0x233)](),this[_0x2fced0(0x46b)]['complete']();}async[_0xcc124c(0x2c7)](_0x10ed8e){const _0x3b7ce2=_0xcc124c;if(this[_0x3b7ce2(0x512)]['has'](_0x10ed8e))return this[_0x3b7ce2(0x512)][_0x3b7ce2(0x4e6)](_0x10ed8e);this['_tryEnsureSocket']();const _0x37f09a=this[_0x3b7ce2(0x2bb)]['createInstance'](bt,_0x10ed8e,this['_socket$'][_0x3b7ce2(0x407)]());return this['_sessions']['set'](_0x10ed8e,_0x37f09a),_0x37f09a;}[_0xcc124c(0x427)](_0x3c707f){const _0x4f0021=_0xcc124c;var _0x1219de;const _0x23c1b8=this[_0x4f0021(0x512)][_0x4f0021(0x4e6)](_0x3c707f);_0x23c1b8&&(this['_sessions'][_0x4f0021(0x3bd)](_0x3c707f),_0x23c1b8[_0x4f0021(0x49b)]()),this['_sessions'][_0x4f0021(0x21a)]||(_0x1219de=this['_socket'])==null||_0x1219de[_0x4f0021(0x49b)]();}[_0xcc124c(0x4ca)](){const _0x502a72=_0xcc124c;this['_retryCount']=0x0,this[_0x502a72(0x4e7)]!=null&&(clearTimeout(this[_0x502a72(0x4e7)]),this[_0x502a72(0x4e7)]=null),this[_0x502a72(0x2cc)]();}[_0xcc124c(0x322)](){const _0x1d804c=_0xcc124c;var _0x98d932,_0x3a1fc1;const _0x9f23b2=this[_0x1d804c(0x3f6)]['getConfig'](Tn),_0x1c853d=this[_0x1d804c(0x3f6)][_0x1d804c(0x463)]($),_0x126c82=(_0x3a1fc1=(_0x98d932=_0x1c853d==null?void 0x0:_0x1c853d['collabWebSocketUrl'])!=null?_0x98d932:_0x9f23b2)!=null?_0x3a1fc1:Rn,_0x29cd5a=this[_0x1d804c(0x335)][_0x1d804c(0x1f3)](_0x126c82);return this['_candidateSocket']=_0x29cd5a,_0x29cd5a;}[_0xcc124c(0x218)](){const _0x5c6364=_0xcc124c;var _0x403b9e,_0xa33c71;try{const _0x18e5e1=(_0xa33c71=(_0x403b9e=this['_socket'])!=null?_0x403b9e:this[_0x5c6364(0x20d)])!=null?_0xa33c71:this[_0x5c6364(0x322)]();if(_0x18e5e1){const _0xb79385=_0x18e5e1[_0x5c6364(0x27e)];_0x18e5e1[_0x5c6364(0x27e)]=_0x577637=>(this[_0x5c6364(0x391)](),_0xb79385[_0x5c6364(0x39a)](_0x18e5e1,[_0x577637])),_0x18e5e1[_0x5c6364(0x2ea)][_0x5c6364(0x3ac)](_0x5565ee=>this[_0x5c6364(0x334)](_0x18e5e1,_0x5565ee)),_0x18e5e1[_0x5c6364(0x381)]['pipe'](_0x2f5271(0x1))[_0x5c6364(0x3ac)](_0x55c744=>this[_0x5c6364(0x1b0)][_0x5c6364(0x1b3)]('[CollaborationSessionService]:\x20socket\x20error',_0x55c744)),_0x18e5e1[_0x5c6364(0x2df)][_0x5c6364(0x4f2)](_0x2f5271(0x1))['subscribe'](()=>{const _0x5a504e=_0x5c6364;this[_0x5a504e(0x1d5)](_0x18e5e1);}),_0x18e5e1['close$'][_0x5c6364(0x4f2)](_0x2f5271(0x1))['subscribe'](_0x5e8d2e=>{const _0x198745=_0x5c6364;this[_0x198745(0x1b0)]['debug'](_0x198745(0x4f8),'socket\x20close',_0x5e8d2e),this['_onConnectionFailed']();});}}catch(_0x2c2034){this[_0x5c6364(0x1b0)][_0x5c6364(0x1b3)](_0x2c2034),this[_0x5c6364(0x34c)]();}}[_0xcc124c(0x1d5)](_0x149b5c){const _0x35114e=_0xcc124c;this[_0x35114e(0x1b0)]['debug'](_0x35114e(0x4f8),'socket\x20open.'),_0x149b5c['send']({'cmd':I[_0x35114e(0x2bf)]}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x22fd4c=_0xcc124c;window[_0x22fd4c(0x317)](_0x22fd4c(0x448),()=>this[_0x22fd4c(0x24f)]());}['_onOffline'](){const _0x5ac0aa=_0xcc124c;this[_0x5ac0aa(0x330)]=!0x1,this[_0x5ac0aa(0x20d)]=null,this['_status$']['next'](Y[_0x5ac0aa(0x1d8)]),this[_0x5ac0aa(0x24a)][_0x5ac0aa(0x1cf)](null),this[_0x5ac0aa(0x1c6)](),this[_0x5ac0aa(0x1e0)]();}['_onConnectionFailed'](){const _0x360225=_0xcc124c;var _0x5601cc;this['_onOffline'](),this[_0x360225(0x31a)]<((_0x5601cc=this['_configService'][_0x360225(0x463)](Pn))!=null?_0x5601cc:yn)?(this[_0x360225(0x41e)][_0x360225(0x1b9)]({'key':_0x360225(0x4c8),'type':_0x41136d[_0x360225(0x2dc)],'content':this[_0x360225(0x51c)]['t'](_0x360225(0x36e))}),this[_0x360225(0x2cc)]()):this['_messageService'][_0x360225(0x1b9)]({'key':_0x360225(0x4c8),'type':_0x41136d[_0x360225(0x420)],'content':this[_0x360225(0x51c)]['t'](_0x360225(0x250))});}['_listenToOnlineEvent'](){const _0x4a701f=_0xcc124c,_0x5f3ea8=()=>{const _0x48d6a1=_0x293d;this[_0x48d6a1(0x426)]||this[_0x48d6a1(0x4ca)]();},_0x19aee1=()=>{const _0xcb50d4=_0x293d;this[_0xcb50d4(0x426)]||document['visibilityState']===_0xcb50d4(0x1f7)||this[_0xcb50d4(0x4ca)]();};window[_0x4a701f(0x317)](_0x4a701f(0x412),_0x5f3ea8),document[_0x4a701f(0x317)](_0x4a701f(0x4c5),_0x19aee1);}[_0xcc124c(0x2cc)](){const _0x4fe0b4=_0xcc124c;var _0x5d3e48;const _0x221c6e=this[_0x4fe0b4(0x31a)],_0x3bdc89=this[_0x4fe0b4(0x3f6)][_0x4fe0b4(0x463)]($),_0x1d95ec=_0x221c6e===0x0?0x0:((_0x5d3e48=_0x3bdc89==null?void 0x0:_0x3bdc89[_0x4fe0b4(0x458)])!=null?_0x5d3e48:wn)*0x2**_0x221c6e;this['_retryConnectingTimer']=window['setTimeout'](()=>{const _0x7943a6=_0x4fe0b4;clearTimeout(this[_0x7943a6(0x4e7)]),this[_0x7943a6(0x4e7)]=null,this[_0x7943a6(0x218)]();},_0x1d95ec),this['_retryCount']+=0x1;}['_onMessage'](_0x167dd9,_0xb1d35d){const _0xa16913=_0xcc124c,{cmd:_0x3c8a3f}=_0xb1d35d;_0x3c8a3f===I[_0xa16913(0x2bf)]&&!this['_socketReady']&&(_0x167dd9[_0xa16913(0x43e)]=_0xb1d35d['data']['memberID'],this[_0xa16913(0x24a)][_0xa16913(0x1cf)](_0x167dd9),this['_status$'][_0xa16913(0x1cf)](Y[_0xa16913(0x364)]),this[_0xa16913(0x330)]=!0x0,this[_0xa16913(0x20d)]=null),_0x3c8a3f===I[_0xa16913(0x1c9)]&&this[_0xa16913(0x1c6)](),this[_0xa16913(0x391)]();}[_0xcc124c(0x391)](){const _0x39dd42=_0xcc124c;var _0xaeaba3;this[_0x39dd42(0x1e0)](),this['_sendHeartbeatTimer']=window[_0x39dd42(0x27d)](()=>this[_0x39dd42(0x369)](),(_0xaeaba3=this[_0x39dd42(0x3f6)]['getConfig'](On))!=null?_0xaeaba3:Dn);}[_0xcc124c(0x369)](){const _0x5094f7=_0xcc124c;this[_0x5094f7(0x426)][_0x5094f7(0x27e)]({'cmd':I[_0x5094f7(0x1c9)]}),this[_0x5094f7(0x1f9)]();}[_0xcc124c(0x1f9)](){const _0x501ab3=_0xcc124c;var _0x96e8f1;this[_0x501ab3(0x3a9)]=window['setTimeout'](()=>this[_0x501ab3(0x34c)](),(_0x96e8f1=this[_0x501ab3(0x3f6)]['getConfig'](js))!=null?_0x96e8f1:Hs);}[_0xcc124c(0x1e0)](){const _0x5b18e0=_0xcc124c;this[_0x5b18e0(0x2a8)]!=null&&(clearTimeout(this[_0x5b18e0(0x2a8)]),this[_0x5b18e0(0x2a8)]=null);}[_0xcc124c(0x1c6)](){const _0x5838fc=_0xcc124c;this[_0x5838fc(0x3a9)]!=null&&(clearTimeout(this[_0x5838fc(0x3a9)]),this[_0x5838fc(0x3a9)]=null);}};he=tr([me(0x0,_0xa01556(_0x3064b3)),me(0x1,_0xa01556(_0x991281)),me(0x2,_0x354bae),me(0x3,_0x40bb6c),me(0x4,_0xf5edd1),me(0x5,Bs)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0xcc124c(0x4c7)]((ct+0x100)[_0xcc124c(0x328)](0x10)[_0xcc124c(0x223)](0x1));function sr(_0x152ad0,_0x4402d5=0x0){const _0x520cbe=_0xcc124c;return(T[_0x152ad0[_0x4402d5+0x0]]+T[_0x152ad0[_0x4402d5+0x1]]+T[_0x152ad0[_0x4402d5+0x2]]+T[_0x152ad0[_0x4402d5+0x3]]+'-'+T[_0x152ad0[_0x4402d5+0x4]]+T[_0x152ad0[_0x4402d5+0x5]]+'-'+T[_0x152ad0[_0x4402d5+0x6]]+T[_0x152ad0[_0x4402d5+0x7]]+'-'+T[_0x152ad0[_0x4402d5+0x8]]+T[_0x152ad0[_0x4402d5+0x9]]+'-'+T[_0x152ad0[_0x4402d5+0xa]]+T[_0x152ad0[_0x4402d5+0xb]]+T[_0x152ad0[_0x4402d5+0xc]]+T[_0x152ad0[_0x4402d5+0xd]]+T[_0x152ad0[_0x4402d5+0xe]]+T[_0x152ad0[_0x4402d5+0xf]])[_0x520cbe(0x36c)]();}var xe,ir=new Uint8Array(0x10);function nr(){const _0x367be0=_0xcc124c;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0x367be0(0x521)]&&crypto[_0x367be0(0x521)][_0x367be0(0x516)](crypto),!xe))throw new Error(_0x367be0(0x3cd));return xe(ir);}var rr=typeof crypto<'u'&&crypto[_0xcc124c(0x457)]&&crypto[_0xcc124c(0x457)][_0xcc124c(0x516)](crypto);const cs={'randomUUID':rr};function or(_0x3e6607,_0x47ea8c,_0x9c5029){const _0xceab60=_0xcc124c;if(cs[_0xceab60(0x457)]&&!_0x47ea8c&&!_0x3e6607)return cs[_0xceab60(0x457)]();_0x3e6607=_0x3e6607||{};var _0x526455=_0x3e6607[_0xceab60(0x2f8)]||(_0x3e6607[_0xceab60(0x4f6)]||nr)();return _0x526455[0x6]=_0x526455[0x6]&0xf|0x40,_0x526455[0x8]=_0x526455[0x8]&0x3f|0x80,sr(_0x526455);}var ar=Object[_0xcc124c(0x2ad)],cr=Object['getOwnPropertyDescriptor'],hr=(_0xdef38f,_0x21e07e,_0x403eb1,_0x2ac9e6)=>{const _0x581afe=_0xcc124c;for(var _0x5a81c0=_0x2ac9e6>0x1?void 0x0:_0x2ac9e6?cr(_0x21e07e,_0x403eb1):_0x21e07e,_0x48404c=_0xdef38f[_0x581afe(0x236)]-0x1,_0x15f335;_0x48404c>=0x0;_0x48404c--)(_0x15f335=_0xdef38f[_0x48404c])&&(_0x5a81c0=(_0x2ac9e6?_0x15f335(_0x21e07e,_0x403eb1,_0x5a81c0):_0x15f335(_0x5a81c0))||_0x5a81c0);return _0x2ac9e6&&_0x5a81c0&&ar(_0x21e07e,_0x403eb1,_0x5a81c0),_0x5a81c0;},ht=(_0x4a195d,_0x10c583)=>(_0x18f9ad,_0x55db84)=>_0x10c583(_0x18f9ad,_0x55db84,_0x4a195d);let Ye=class{constructor(_0x163602,_0x1c16a7,_0x2fec56){const _0x1a5a02=_0xcc124c;this[_0x1a5a02(0x2bb)]=_0x163602,this[_0x1a5a02(0x4bb)]=_0x1c16a7,this[_0x1a5a02(0x4d5)]=_0x2fec56;}['transformIMECache'](_0x2d330c){const _0x34ff87=_0xcc124c;this[_0x34ff87(0x518)](_0x2d330c),this[_0x34ff87(0x2b0)](_0x2d330c);}[_0xcc124c(0x1ef)](_0xe50c2){const _0x49b081=_0xcc124c,{unitID:_0x455f48}=_0xe50c2,_0x255249=this[_0x49b081(0x4d5)][_0x49b081(0x452)](_0x455f48)[_0x49b081(0x50c)](_0x347005),{redoCache:_0x4a949e}=_0x255249[_0x49b081(0x1e9)]();if(_0x4a949e[_0x49b081(0x236)]===0x0)return _0xe50c2;let _0x890269=_0xe487b1[_0x49b081(0x4b1)](_0xe50c2['mutations'][0x0]);for(let _0x1f7c52=0x0;_0x1f7c52<_0x4a949e[_0x49b081(0x236)];_0x1f7c52++){const _0x4993b4={'id':_0x49b081(0x4d6),'params':{..._0x4a949e[_0x1f7c52]}},_0x103525=this[_0x49b081(0x4bb)]['transformMutation'](_0x890269,_0x4993b4,!0x1);if(_0xbffc4f(_0x103525))throw _0x103525[_0x49b081(0x1b3)];_0x890269=_0x103525[_0x49b081(0x378)];}return{..._0xe487b1[_0x49b081(0x4b1)](_0xe50c2),'mutations':[_0x890269]};}['_transformUndoRedoStack'](_0x542c87){const _0x3b7891=_0xcc124c,{unitID:_0xfe8aec}=_0x542c87,_0x2ff461=this['_renderManagerService'][_0x3b7891(0x452)](_0xfe8aec)['with'](_0x347005),{undoCache:_0x1c9ab1,redoCache:_0x5b368e}=_0x2ff461[_0x3b7891(0x1e9)]();if(_0x1c9ab1['length']===0x0||_0x5b368e[_0x3b7891(0x236)]===0x0)return;const _0x5bd490=[],_0x959c6f=[];let _0x5dab98=_0xe487b1[_0x3b7891(0x4b1)](_0x542c87[_0x3b7891(0x4d0)][0x0]),_0xb12b61=_0xe487b1['deepClone'](_0x542c87['mutations'][0x0]);for(let _0x4c0c67=_0x1c9ab1['length']-0x1;_0x4c0c67>=0x0;_0x4c0c67--){const _0x397384={'id':_0x3b7891(0x4d6),'params':{..._0x1c9ab1[_0x4c0c67]}},_0xa22175={'id':_0x3b7891(0x4d6),'params':{..._0x5b368e[_0x4c0c67]}},_0x16e111=this[_0x3b7891(0x4bb)][_0x3b7891(0x509)](_0x5dab98,_0x397384,!0x1),_0x4ed561=this[_0x3b7891(0x4bb)][_0x3b7891(0x509)](_0xb12b61,_0xa22175,!0x1);if(_0xbffc4f(_0x16e111))throw _0x16e111[_0x3b7891(0x1b3)];if(_0xbffc4f(_0x4ed561))throw _0x4ed561[_0x3b7891(0x1b3)];_0x5bd490[_0x3b7891(0x2ce)](_0x16e111[_0x3b7891(0x4f3)]['params']),_0x959c6f['unshift'](_0x4ed561[_0x3b7891(0x4f3)][_0x3b7891(0x20f)]),_0x5dab98=_0x16e111[_0x3b7891(0x378)],_0xb12b61=_0x4ed561[_0x3b7891(0x378)];}_0x2ff461[_0x3b7891(0x219)]({'undoCache':_0x5bd490,'redoCache':_0x959c6f});}[_0xcc124c(0x2b0)](_0x4da40c){const _0x17ed6f=_0xcc124c,{unitID:_0xe809bc}=_0x4da40c,_0x5dc3ba=this[_0x17ed6f(0x4d5)][_0x17ed6f(0x452)](_0xe809bc)[_0x17ed6f(0x50c)](_0x347005),_0x40ebc3=_0x5dc3ba[_0x17ed6f(0x2d2)]();if(_0x40ebc3==null)return;const _0x54527e=[{'id':_0x17ed6f(0x4d6),'params':{'unitId':_0x4da40c[_0x17ed6f(0x38f)],'actions':null,'textRanges':[_0x40ebc3]}}],_0x381763=this['_transformService'][_0x17ed6f(0x1e2)](_0x4da40c,_0x54527e);if(!_0x4a7660(_0x381763))throw _0x381763[_0x17ed6f(0x1b3)];const _0x2b034f=_0x381763[_0x17ed6f(0x4f3)][0x0]['params'][_0x17ed6f(0x2d9)];Array[_0x17ed6f(0x393)](_0x2b034f)&&_0x2b034f[_0x17ed6f(0x236)]&&_0x5dc3ba[_0x17ed6f(0x422)](_0x2b034f[0x0]);}};Ye=hr([ht(0x0,_0xa01556(_0x3064b3)),ht(0x1,_0x279fb0),ht(0x2,_0x739b15)],Ye);var lr=Object[_0xcc124c(0x2ad)],_r=Object[_0xcc124c(0x3f2)],ur=(_0x17e6fa,_0x1541ea,_0x408c67,_0x56e771)=>{for(var _0x43f626=_0x56e771>0x1?void 0x0:_0x56e771?_r(_0x1541ea,_0x408c67):_0x1541ea,_0x37022c=_0x17e6fa['length']-0x1,_0x1e68fb;_0x37022c>=0x0;_0x37022c--)(_0x1e68fb=_0x17e6fa[_0x37022c])&&(_0x43f626=(_0x56e771?_0x1e68fb(_0x1541ea,_0x408c67,_0x43f626):_0x1e68fb(_0x43f626))||_0x43f626);return _0x56e771&&_0x43f626&&lr(_0x1541ea,_0x408c67,_0x43f626),_0x43f626;},De=(_0x576092,_0x1ca314)=>(_0x4e69e2,_0x21f0be)=>_0x1ca314(_0x4e69e2,_0x21f0be,_0x576092);let w=class extends _0x4dfcd2{constructor(_0x30b6b6,_0x25943d,_0xbd8d65,_0x2f8606,_0x113c4b){const _0x4b04b9=_0xcc124c;super(),l(this,_0x4b04b9(0x33a),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x4b04b9(0x306),!0x1),(this[_0x4b04b9(0x3f6)]=_0x30b6b6,this[_0x4b04b9(0x1ec)]=_0x25943d,this[_0x4b04b9(0x2ac)]=_0xbd8d65,this[_0x4b04b9(0x51c)]=_0x2f8606,this[_0x4b04b9(0x1b4)]=_0x113c4b,this['_setupBeforeClosingHandler']());}['disableLocalCache'](){const _0x1e1b0c=_0xcc124c;this[_0x1e1b0c(0x306)]=!0x0;}[_0xcc124c(0x2b3)](){const _0x468d4f=_0xcc124c;this[_0x468d4f(0x306)]=!0x1;}[_0xcc124c(0x2e2)](){const _0x5cd0fb=_0xcc124c;this[_0x5cd0fb(0x26e)]()[_0x5cd0fb(0x520)](()=>super[_0x5cd0fb(0x2e2)]());}async[_0xcc124c(0x42a)](_0x3e4dad){const _0x589546=_0xcc124c;return this['_disabled']?null:this[_0x589546(0x1ec)]['getItem'](hs(_0x3e4dad));}async[_0xcc124c(0x23f)](_0x3c70ba,_0x40b56e){const _0x4caca7=_0xcc124c;return!!this[_0x4caca7(0x1ec)][_0x4caca7(0x26a)](_0x3c70ba,_0x40b56e);}[_0xcc124c(0x4ec)](_0x439540,_0x46bbae,_0x5ae7ea,_0x394afb){const _0x556f01=_0xcc124c,_0x552618=this[_0x556f01(0x1b4)][_0x556f01(0x3dc)](_0x439540);this[_0x556f01(0x33a)][_0x556f01(0x4d8)](_0x439540,{'unitID':_0x439540,'type':_0x46bbae,'awaitingChangeset':_0x5ae7ea,'mutations':_0x394afb,'rev':_0x552618}),this[_0x556f01(0x29f)][_0x556f01(0x449)](_0x439540)||this[_0x556f01(0x486)](_0x439540);}[_0xcc124c(0x486)](_0x576828){const _0xb4641e=_0xcc124c,_0x4199b1=this[_0xb4641e(0x3fd)]();_0x4199b1===0x0?this['_saveCache'](_0x576828):this['_saveTaskMap'][_0xb4641e(0x4d8)](_0x576828,setTimeout(()=>this[_0xb4641e(0x1ca)](_0x576828),_0x4199b1));}['_getSaveTimeout'](){const _0xa1d677=_0xcc124c;var _0x3280a8;return(_0x3280a8=this[_0xa1d677(0x3f6)][_0xa1d677(0x463)](Un))!=null?_0x3280a8:Nn;}[_0xcc124c(0x1ca)](_0x4fb096){const _0x152b7c=_0xcc124c,_0x5e9cb7=this[_0x152b7c(0x29f)][_0x152b7c(0x4e6)](_0x4fb096);return _0x5e9cb7!==void 0x0&&window[_0x152b7c(0x337)](_0x5e9cb7),this[_0x152b7c(0x1ec)][_0x152b7c(0x26a)](hs(_0x4fb096),this[_0x152b7c(0x33a)][_0x152b7c(0x4e6)](_0x4fb096))['then'](()=>this['_saveTaskMap'][_0x152b7c(0x3bd)](_0x4fb096));}async[_0xcc124c(0x26e)](){const _0x5c5d8f=_0xcc124c,_0x257ef5=[];this[_0x5c5d8f(0x29f)][_0x5c5d8f(0x3d5)]((_0x17243d,_0x16496d)=>{const _0x2c2669=_0x5c5d8f;window[_0x2c2669(0x337)](_0x17243d),_0x257ef5[_0x2c2669(0x4c7)](this[_0x2c2669(0x1ca)](_0x16496d)[_0x2c2669(0x520)](()=>{const _0x453624=_0x2c2669;this['_saveTaskMap'][_0x453624(0x3bd)](_0x16496d);}));}),await Promise['all'](_0x257ef5);}[_0xcc124c(0x3ce)](){const _0x14dcb3=_0xcc124c;this[_0x14dcb3(0x379)](this[_0x14dcb3(0x2ac)]['registerBeforeClose'](()=>{const _0x2c0878=_0x14dcb3;if(this[_0x2c0878(0x29f)][_0x2c0878(0x21a)])return this['_localeService']['t'](_0x2c0878(0x1d9));}));}};w=ur([De(0x0,_0xf5edd1),De(0x1,_0x1e31bb),De(0x2,_0x52af3f),De(0x3,_0xa01556(_0x991281)),De(0x4,_0xa01556(_0x378b64))],w);function hs(_0x24e6fe){const _0x516119=_0xcc124c;return _0x516119(0x4b5)+_0x24e6fe;}var dr=Object[_0xcc124c(0x2ad)],mr=Object['getOwnPropertyDescriptor'],fr=(_0x2467ef,_0x31d126,_0x40c6a2,_0x30e45a)=>{const _0x20748d=_0xcc124c;for(var _0x133228=_0x30e45a>0x1?void 0x0:_0x30e45a?mr(_0x31d126,_0x40c6a2):_0x31d126,_0x59e595=_0x2467ef[_0x20748d(0x236)]-0x1,_0x4baf0b;_0x59e595>=0x0;_0x59e595--)(_0x4baf0b=_0x2467ef[_0x59e595])&&(_0x133228=(_0x30e45a?_0x4baf0b(_0x31d126,_0x40c6a2,_0x133228):_0x4baf0b(_0x133228))||_0x133228);return _0x30e45a&&_0x133228&&dr(_0x31d126,_0x40c6a2,_0x133228),_0x133228;},lt=(_0x2d7af2,_0x49fd38)=>(_0x1f5ab4,_0x10aabc)=>_0x49fd38(_0x1f5ab4,_0x10aabc,_0x2d7af2);function gr(_0x912431){const {unitID:_0x42edff,mutations:_0x19a9a3}=_0x912431;return{'unitId':_0x42edff,'subUnitId':_0x19a9a3[0x0]['params']['subUnitId']};}let Ke=class{constructor(_0xc5bc3a,_0x1acf8c,_0x3dd6e0){const _0x506c1b=_0xcc124c;this[_0x506c1b(0x2bb)]=_0xc5bc3a,this['_transformService']=_0x1acf8c,this['_instanceService']=_0x3dd6e0;}[_0xcc124c(0x3ef)](_0xf8d802){const _0x1005d6=_0xcc124c;var _0x34dc22,_0x1be03d,_0x15b5ca,_0x359630;const _0x40b2c1=this[_0x1005d6(0x2bb)][_0x1005d6(0x4e6)](_0x5c2add),{unitId:_0x505415,subUnitId:_0x424057}=gr(_0xf8d802),_0x125333=_0x40b2c1[_0x1005d6(0x237)](_0x505415)[_0x1005d6(0x1ea)](),_0x4ccb13=(_0x1be03d=(_0x34dc22=this[_0x1005d6(0x377)][_0x1005d6(0x522)](_0x505415))==null?void 0x0:_0x34dc22[_0x1005d6(0x1e8)]())==null?void 0x0:_0x1be03d['getSheetId']();if(_0x125333[_0x1005d6(0x236)]===0x0||!_0x505415||!_0x424057)return;const _0x3dfdd1=[{'id':_0x2ca063['id'],'params':{'unitId':_0x505415,'subUnitId':_0x4ccb13,'selections':_0xe487b1[_0x1005d6(0x4b1)](_0x125333)}}],_0x1d17f2=this['_transformService'][_0x1005d6(0x1e2)](_0xf8d802,_0x3dfdd1);if(!_0x4a7660(_0x1d17f2))throw _0x1d17f2[_0x1005d6(0x1b3)];const _0x1d6463=(_0x359630=(_0x15b5ca=_0x1d17f2[_0x1005d6(0x4f3)][0x0])==null?void 0x0:_0x15b5ca[_0x1005d6(0x20f)])==null?void 0x0:_0x359630['selections'];if(Array[_0x1005d6(0x393)](_0x1d6463)&&_0x1d6463[_0x1005d6(0x236)]){if(_0x1d6463[_0x1005d6(0x236)]===_0x3dfdd1[0x0][_0x1005d6(0x20f)][_0x1005d6(0x46d)][_0x1005d6(0x236)]&&_0x1d6463[_0x1005d6(0x423)]((_0x3450f2,_0x57bfcd)=>_0x49320b[_0x1005d6(0x1fc)](_0x3450f2['range'],_0x3dfdd1[0x0][_0x1005d6(0x20f)]['selections'][_0x57bfcd][_0x1005d6(0x3e2)])))return;this['_injector'][_0x1005d6(0x4e6)](_0x4ba546)[_0x1005d6(0x49c)](_0x2ca063['id'],{'unitId':_0x505415,'subUnitId':_0x4ccb13,'selections':_0x1d6463});}}};Ke=fr([lt(0x0,_0xa01556(_0x3064b3)),lt(0x1,_0x279fb0),lt(0x2,_0x4a621b)],Ke);const tt=_0x49cd73('univer-pro.collaboration-client.single-active-unit-service');var Fs=(_0x43bc5e=>(_0x43bc5e[_0x43bc5e[_0xcc124c(0x3b4)]=0x0]=_0xcc124c(0x3b4),_0x43bc5e[_0x43bc5e[_0xcc124c(0x4b6)]=0x1]='OTHER_CLIENTS_EDITING',_0x43bc5e))(Fs||{});const ls=0x7530,_s=_0xcc124c(0x1dd);class Sr extends _0x4dfcd2{constructor(){const _0x5970b0=_0xcc124c;super(),l(this,_0x5970b0(0x491),_0xe487b1[_0x5970b0(0x32e)]()),l(this,_0x5970b0(0x517),new Set()),l(this,_0x5970b0(0x394),new Map()),l(this,_0x5970b0(0x4d7),null),l(this,_0x5970b0(0x35e),new Map()),l(this,_0x5970b0(0x370),new Map()),this[_0x5970b0(0x203)]();}['dispose'](){const _0x18a1fc=_0xcc124c;super[_0x18a1fc(0x2e2)](),this[_0x18a1fc(0x35e)][_0x18a1fc(0x3d5)]((_0x51987a,_0x5c9d7e)=>this['_removeClearOtherTimer'](_0x5c9d7e)),this[_0x18a1fc(0x4d7)]&&window['clearInterval'](this[_0x18a1fc(0x4d7)]);}[_0xcc124c(0x468)](_0x2914ea){const _0x1c8647=_0xcc124c;return this['_ensureSubject'](_0x2914ea)[_0x1c8647(0x4f2)](_0x180102());}[_0xcc124c(0x2e5)](_0x359a86){const _0x45b1a4=_0xcc124c;this[_0x45b1a4(0x517)][_0x45b1a4(0x21a)]===0x0&&this[_0x45b1a4(0x39f)](),this[_0x45b1a4(0x517)]['add'](_0x359a86),this[_0x45b1a4(0x349)]({'type':0x0,'memberID':this[_0x45b1a4(0x491)],'unitIDs':[_0x359a86],'isForwarded':!0x1});}[_0xcc124c(0x38a)](_0x11a489){const _0x300ffc=_0xcc124c;this[_0x300ffc(0x517)]['delete'](_0x11a489),this['_selfUnitIDs'][_0x300ffc(0x21a)]===0x0&&this[_0x300ffc(0x4d7)]&&window[_0x300ffc(0x430)](this[_0x300ffc(0x4d7)]);}[_0xcc124c(0x203)](){const _0x35ad9e=_0xcc124c;this['disposeWithMe'](_0x5b34e8(_0x24365b(window,_0x35ad9e(0x3a6))['subscribe'](_0x3d1d2d=>{const _0xbfe161=_0x35ad9e;if(_0x3d1d2d[_0xbfe161(0x31f)]!==_s||!_0x3d1d2d[_0xbfe161(0x30b)])return;const _0x26d40c=JSON[_0xbfe161(0x52e)](_0x3d1d2d[_0xbfe161(0x30b)]);this[_0xbfe161(0x358)](_0x26d40c);}))),window[_0x35ad9e(0x317)]('unload',()=>this[_0x35ad9e(0x349)]({'type':0x1,'memberID':this[_0x35ad9e(0x491)],'unitIDs':Array[_0x35ad9e(0x2eb)](this[_0x35ad9e(0x517)])}));}['_handleEvent'](_0x4cea27){const _0x176c58=_0xcc124c;switch(_0x4cea27[_0x176c58(0x23d)]){case 0x0:this['_handleJoinEvent'](_0x4cea27);break;case 0x1:this[_0x176c58(0x277)](_0x4cea27);break;case 0x2:this[_0x176c58(0x272)](_0x4cea27);break;}}[_0xcc124c(0x29e)](_0x556131){const _0x390c6d=_0xcc124c,{unitIDs:_0x1ce715,memberID:_0xfafb7b,isForwarded:_0x583826}=_0x556131;_0x1ce715[_0x390c6d(0x3d5)](_0x416b98=>{const _0x3eb26f=_0x390c6d;if(!_0x583826&&this['_unitOnClients'][_0x3eb26f(0x449)](_0x416b98)&&this['_ensureSubject'](_0x416b98)[_0x3eb26f(0x1cf)](0x1),!this[_0x3eb26f(0x394)][_0x3eb26f(0x449)](_0x416b98)||!this[_0x3eb26f(0x394)]['get'](_0x416b98)[_0x3eb26f(0x449)](_0xfafb7b)){const _0x5f5e0f=this[_0x3eb26f(0x394)][_0x3eb26f(0x4e6)](_0x416b98)||new Set();_0x5f5e0f[_0x3eb26f(0x266)](_0xfafb7b),this[_0x3eb26f(0x394)][_0x3eb26f(0x4d8)](_0x416b98,_0x5f5e0f),this['_scheduleClearOtherTimer'](_0xfafb7b);}}),_0x583826||this[_0x390c6d(0x349)]({'type':0x0,'memberID':this[_0x390c6d(0x491)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0xcc124c(0x3a4)](_0x5952ad){const _0x3bab2f=_0xcc124c;this[_0x3bab2f(0x269)](_0x5952ad);const _0x29bfef=window['setTimeout'](()=>{const _0x59e40e=_0x3bab2f;this[_0x59e40e(0x394)][_0x59e40e(0x3d5)](_0xd2158=>{const _0x227883=_0x59e40e;_0xd2158[_0x227883(0x3bd)](_0x5952ad);});},ls*0x2);this[_0x3bab2f(0x35e)][_0x3bab2f(0x4d8)](_0x5952ad,_0x29bfef);}['_removeClearOtherTimer'](_0x2f6f43){const _0x4f9bf0=_0xcc124c;if(this[_0x4f9bf0(0x35e)]['has'](_0x2f6f43)){const _0x32b195=this[_0x4f9bf0(0x35e)][_0x4f9bf0(0x4e6)](_0x2f6f43);_0x32b195&&window[_0x4f9bf0(0x337)](_0x32b195),this[_0x4f9bf0(0x35e)]['set'](_0x2f6f43,null);}}[_0xcc124c(0x277)](_0xcff8c4){const _0x17a5c7=_0xcc124c,{memberID:_0x45197a,unitIDs:_0x3a5d37}=_0xcff8c4;_0x3a5d37[_0x17a5c7(0x3d5)](_0x544b63=>{const _0x34d3d8=_0x17a5c7;var _0x5494da;const _0x12af9c=this[_0x34d3d8(0x394)][_0x34d3d8(0x4e6)](_0x544b63);_0x12af9c&&(_0x12af9c[_0x34d3d8(0x3bd)](_0x45197a),(_0x5494da=this[_0x34d3d8(0x338)](_0x544b63))==null||_0x5494da[_0x34d3d8(0x1cf)](_0x12af9c['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x45197a);}[_0xcc124c(0x272)](_0x21cc6d){const _0x1431f7=_0xcc124c;this[_0x1431f7(0x3a4)](_0x21cc6d['memberID']);}[_0xcc124c(0x349)](_0x2a035f){const _0x3f73a7=_0xcc124c;localStorage['setItem'](_s,JSON[_0x3f73a7(0x234)](_0x2a035f));}[_0xcc124c(0x39f)](){const _0x3bd315=_0xcc124c;this[_0x3bd315(0x4d7)]=window[_0x3bd315(0x1bc)](()=>{const _0x213927=_0x3bd315;this[_0x213927(0x349)]({'type':0x2,'memberID':this[_0x213927(0x491)]});},ls);}[_0xcc124c(0x338)](_0x5afd64){const _0x5628a0=_0xcc124c;return this[_0x5628a0(0x370)][_0x5628a0(0x449)](_0x5afd64)||this[_0x5628a0(0x370)][_0x5628a0(0x4d8)](_0x5afd64,new _0x3708bc(0x0)),this[_0x5628a0(0x370)][_0x5628a0(0x4e6)](_0x5afd64);}}function Ws(_0x12c5cf){let _0x46f5a6='';for(const _0x8284f3 of _0x12c5cf){const {startOffset:_0x52d818,endOffset:_0x47a0b3,isActive:_0x4af802}=_0x8284f3;_0x46f5a6['length']&&(_0x46f5a6+=','),_0x46f5a6+=_0x52d818+':'+_0x47a0b3+':'+(_0x4af802?'1':'0');}return _0x46f5a6;}function pr(_0x262a82){const _0x3b8e6f=_0xcc124c,_0xc0527d=_0x262a82['split'](','),_0x1d54f9=[];for(const _0x12feb5 of _0xc0527d){const [_0xfd7512,_0x4ca111,_0x52f269]=_0x12feb5[_0x3b8e6f(0x42f)](':');_0x1d54f9['push']({'startOffset':Number(_0xfd7512),'endOffset':Number(_0x4ca111),'collapsed':_0xfd7512===_0x4ca111,'isActive':_0x52f269==='1'});}return _0x1d54f9[_0x3b8e6f(0x3bb)](_0x56b66a=>_0x56b66a[_0x3b8e6f(0x513)])||(_0x1d54f9[0x0]['isActive']=!0x0),_0x1d54f9;}class Ft extends _0xb64757{constructor(){const _0x107aa4=_0xcc124c;super(...arguments),l(this,_0x107aa4(0x2cf),new _0x3708bc(null)),l(this,_0x107aa4(0x523),this[_0x107aa4(0x2cf)]['asObservable']());}[_0xcc124c(0x531)](_0x397e2f){const _0x2e3e11=_0xcc124c,{unitID:_0x33d376,memberID:_0x59a010,textRanges:_0x1316cf}=_0x397e2f,_0x4baea4=Ws(_0x1316cf),_0x23428c={'unitID':_0x33d376,'memberID':_0x59a010,'selection':_0x4baea4};this[_0x2e3e11(0x2cf)]['next'](_0x23428c);}}var vr=Object['defineProperty'],Ir=Object['getOwnPropertyDescriptor'],Er=(_0x5d5fe9,_0xae4eff,_0x325b66,_0x2b016e)=>{const _0xeac0af=_0xcc124c;for(var _0x509278=_0x2b016e>0x1?void 0x0:_0x2b016e?Ir(_0xae4eff,_0x325b66):_0xae4eff,_0x1bacf0=_0x5d5fe9[_0xeac0af(0x236)]-0x1,_0x1258f6;_0x1bacf0>=0x0;_0x1bacf0--)(_0x1258f6=_0x5d5fe9[_0x1bacf0])&&(_0x509278=(_0x2b016e?_0x1258f6(_0xae4eff,_0x325b66,_0x509278):_0x1258f6(_0x509278))||_0x509278);return _0x2b016e&&_0x509278&&vr(_0xae4eff,_0x325b66,_0x509278),_0x509278;},us=(_0x2e9611,_0x7e935f)=>(_0xbb0232,_0x56ed61)=>_0x7e935f(_0xbb0232,_0x56ed61,_0x2e9611);let Xe=class{constructor(_0x4e2379,_0x468c7d){const _0x160616=_0xcc124c;this[_0x160616(0x2bb)]=_0x4e2379,this[_0x160616(0x4bb)]=_0x468c7d;}[_0xcc124c(0x3ef)](_0x12ff7e){const _0x40cea9=_0xcc124c;var _0x35e204;const _0x2b8565=this[_0x40cea9(0x2bb)]['get'](_0x2a59c5),_0x2980d1=(_0x35e204=_0x2b8565[_0x40cea9(0x4d2)]())!=null?_0x35e204:[];if(_0x2980d1[_0x40cea9(0x236)]===0x0)return;const _0x3e1987=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x12ff7e['unitID'],'actions':null,'textRanges':_0x2980d1}}],_0x244ac6=this[_0x40cea9(0x4bb)][_0x40cea9(0x1e2)](_0x12ff7e,_0x3e1987);if(!_0x4a7660(_0x244ac6))throw _0x244ac6['error'];const _0x33c88d=_0x244ac6['m2Prime'][0x0][_0x40cea9(0x20f)][_0x40cea9(0x2d9)];Array[_0x40cea9(0x393)](_0x33c88d)&&_0x33c88d[_0x40cea9(0x236)]&&_0x2b8565[_0x40cea9(0x3e0)](_0x33c88d,!0x1);}};Xe=Er([us(0x0,_0xa01556(_0x3064b3)),us(0x1,_0x279fb0)],Xe);const Cr=new Set([_0xdc5fd1['id']]);function ds(_0x269f20,_0x42d974,_0x4f2e32,_0xbe1120,_0x2bb818){const _0x138dfc=_0xcc124c;var _0x59560c,_0x1af910,_0x149e39,_0x2dbfa8;const _0xd4dfe1=[];for(const _0x2d2e7d of _0x269f20)if(Cr['has'](_0x2d2e7d['id'])){if(_0xd4dfe1[_0x138dfc(0x236)]>0x0)break;_0xd4dfe1[_0x138dfc(0x4c7)](_0x2d2e7d);break;}else _0xd4dfe1[_0x138dfc(0x4c7)](_0x2d2e7d);const _0x48f959=(_0x1af910=(_0x59560c=_0x2bb818[_0x138dfc(0x3b5)]())==null?void 0x0:_0x59560c[_0x138dfc(0x31e)])!=null?_0x1af910:'unknown',_0x73cdd2=(_0x2dbfa8=(_0x149e39=_0x2bb818[_0x138dfc(0x3b5)]())==null?void 0x0:_0x149e39[_0x138dfc(0x43e)])!=null?_0x2dbfa8:'unknown';return{'changeset':{'unitID':_0x42d974,'type':_0x1a0020(_0x4f2e32[_0x138dfc(0x304)](_0x42d974)),'baseRev':_0xbe1120[_0x138dfc(0x3dc)](_0x42d974),'revision':0x0,'userID':_0x48f959,'memberID':_0x73cdd2,'mutations':_0xd4dfe1},'pendingMutations':_0x269f20[_0x138dfc(0x223)](_0xd4dfe1[_0x138dfc(0x236)])};}function br(_0x4b9952,_0x3d5468,_0x13486b,_0x4afa27,_0x3893dc){const _0x240b10=_0xcc124c;var _0x51da78,_0x2aa0e0,_0x3ebfc0,_0x30cff3;const _0x1dc15e=[_0x4b9952['reduce']((_0x3d4afd,_0x11a316)=>{const _0x40b362=_0x293d;var _0x62a570;const {id:_0xea9ec5}=_0x3d4afd,{id:_0x166baa,type:_0x1b8436}=_0x11a316,_0x2e7a41=(_0x62a570=_0x3d4afd[_0x40b362(0x20f)])!=null?_0x62a570:{'actions':null},_0x52747f=_0x11a316[_0x40b362(0x20f)];if(_0xea9ec5&&_0xea9ec5!==_0x166baa)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0xea9ec5+_0x40b362(0x44b)+_0x166baa+'.');return{..._0x3d4afd,'id':_0x166baa,'type':_0x1b8436,'params':{'unitId':_0x52747f[_0x40b362(0x49a)],'textRanges':_0x52747f[_0x40b362(0x2d9)],'actions':_0x2a33d0['compose'](_0x2e7a41[_0x40b362(0x27b)],_0x52747f['actions'])}};},{})],_0x4e6281=(_0x2aa0e0=(_0x51da78=_0x3893dc[_0x240b10(0x3b5)]())==null?void 0x0:_0x51da78[_0x240b10(0x31e)])!=null?_0x2aa0e0:_0x240b10(0x283),_0x24867a=(_0x30cff3=(_0x3ebfc0=_0x3893dc[_0x240b10(0x3b5)]())==null?void 0x0:_0x3ebfc0[_0x240b10(0x43e)])!=null?_0x30cff3:_0x240b10(0x283);return{'changeset':{'unitID':_0x3d5468,'type':_0x1a0020(_0x13486b[_0x240b10(0x304)](_0x3d5468)),'baseRev':_0x4afa27[_0x240b10(0x3dc)](_0x3d5468),'revision':0x0,'userID':_0x4e6281,'memberID':_0x24867a,'mutations':_0x1dc15e},'pendingMutations':[]};}function Gs(_0x3c4f12,_0x49eac8){const _0x5f5513=_0xcc124c,_0x100021=new _0x4d114c(0x1);return setTimeout(()=>_0x100021[_0x5f5513(0x1cf)](_0x49eac8),_0x3c4f12),_0x100021[_0x5f5513(0x407)]()[_0x5f5513(0x4f2)](_0x13b589(0x1));}const Tr={'id':_0x5c15e2['id'],'type':_0x542ece[_0xcc124c(0x307)],'params':{}};var Rr=Object[_0xcc124c(0x2ad)],Or=Object[_0xcc124c(0x3f2)],_e=(_0x28ca0f,_0xb25f27,_0x4baf0f,_0x209734)=>{const _0x1393ec=_0xcc124c;for(var _0x5fc2fa=_0x209734>0x1?void 0x0:_0x209734?Or(_0xb25f27,_0x4baf0f):_0xb25f27,_0x73c7eb=_0x28ca0f[_0x1393ec(0x236)]-0x1,_0x68303b;_0x73c7eb>=0x0;_0x73c7eb--)(_0x68303b=_0x28ca0f[_0x73c7eb])&&(_0x5fc2fa=(_0x209734?_0x68303b(_0xb25f27,_0x4baf0f,_0x5fc2fa):_0x68303b(_0x5fc2fa))||_0x5fc2fa);return _0x209734&&_0x5fc2fa&&Rr(_0xb25f27,_0x4baf0f,_0x5fc2fa),_0x5fc2fa;},f=(_0x522d07,_0x5e2590)=>(_0x38bf35,_0x24efb8)=>_0x5e2590(_0x38bf35,_0x24efb8,_0x522d07),P=(_0x4a8400=>(_0x4a8400[_0xcc124c(0x4aa)]=_0xcc124c(0x390),_0x4a8400[_0xcc124c(0x469)]=_0xcc124c(0x2c5),_0x4a8400[_0xcc124c(0x345)]='pending',_0x4a8400[_0xcc124c(0x445)]=_0xcc124c(0x499),_0x4a8400[_0xcc124c(0x2b9)]='awaiting_with_pending',_0x4a8400[_0xcc124c(0x3e8)]=_0xcc124c(0x1db),_0x4a8400[_0xcc124c(0x1f8)]=_0xcc124c(0x507),_0x4a8400[_0xcc124c(0x1d8)]=_0xcc124c(0x448),_0x4a8400))(P||{});const Ys=0xea60;class ue{constructor(_0xf5f1e4,_0x2bb1f,_0x5001e9,_0x19ea18,_0x328db8,_0x3c8d5b,_0xf8466b,_0x2b1d78,_0x21d99a){const _0x5526aa=_0xcc124c;l(this,'_awaitingChangeset',null),l(this,_0x5526aa(0x1dc),[]),(this[_0x5526aa(0x38f)]=_0xf5f1e4,this[_0x5526aa(0x23d)]=_0x2bb1f,this[_0x5526aa(0x329)]=_0x328db8,this[_0x5526aa(0x232)]=_0x3c8d5b,this[_0x5526aa(0x4bf)]=_0xf8466b,this[_0x5526aa(0x1b4)]=_0x2b1d78,this[_0x5526aa(0x2ed)]=_0x21d99a,this[_0x5526aa(0x4db)]=_0x5001e9,this[_0x5526aa(0x1dc)]=_0x19ea18);}['_checkMissing'](_0x3b30de){const _0x589e72=_0xcc124c,_0x2e3855=this[_0x589e72(0x1b4)]['getCurrentRevOfUnit'](this['unitID']);return _0x3b30de['revision']>_0x2e3855+0x1?(this[_0x589e72(0x329)][_0x589e72(0x211)]({'from':_0x2e3855,'to':_0x3b30de['revision']-0x1}),!0x0):!0x1;}[_0xcc124c(0x1fb)](_0x56e60c){const _0x4d448=_0xcc124c;this['_undoRedoService'][_0x4d448(0x274)](this[_0x4d448(0x38f)],_0x56e60c);}[_0xcc124c(0x360)](_0xa6cc0){const _0x293c0e=_0xcc124c;var _0x1eb210,_0x5ba261;(_0x5ba261=(_0x1eb210=this[_0x293c0e(0x329)])[_0x293c0e(0x4f7)])==null||_0x5ba261['call'](_0x1eb210,_0xa6cc0);}['_transformIMECache'](_0x4e047a){const _0x2b4d22=_0xcc124c;var _0x529c6c,_0x287efc;return(_0x287efc=(_0x529c6c=this[_0x2b4d22(0x329)])[_0x2b4d22(0x4bd)])==null?void 0x0:_0x287efc[_0x2b4d22(0x231)](_0x529c6c,_0x4e047a);}[_0xcc124c(0x25b)](_0x35fffc){const _0x1765d1=_0xcc124c;var _0x16579d,_0x359558,_0x1cac2a;return(_0x1cac2a=(_0x359558=(_0x16579d=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x359558[_0x1765d1(0x231)](_0x16579d,_0x35fffc))!=null?_0x1cac2a:_0x35fffc;}['_syncEditingCollabCursor'](_0xe2c235){const _0x35bfc6=_0xcc124c;var _0x4992f3,_0x2c9083;if(this[_0x35bfc6(0x23d)]===k[_0x35bfc6(0x215)]){const {unitID:_0x50dc21,mutations:_0x1a1db9,memberID:_0x18743e}=_0xe2c235,_0x21c968=_0x1a1db9[0x0][_0x35bfc6(0x20f)][_0x35bfc6(0x2d9)];Array[_0x35bfc6(0x393)](_0x21c968)&&_0x21c968[_0x35bfc6(0x236)]>0x0&&((_0x2c9083=(_0x4992f3=this[_0x35bfc6(0x329)])[_0x35bfc6(0x4fb)])==null||_0x2c9083[_0x35bfc6(0x231)](_0x4992f3,{'unitID':_0x50dc21,'memberID':_0x18743e,'textRanges':_0x21c968}));}}[_0xcc124c(0x479)](){const _0xf90cdf=_0xcc124c;this['_localCacheService'][_0xf90cdf(0x4ec)](this[_0xf90cdf(0x38f)],this[_0xf90cdf(0x23d)],this['_awaitingChangeset'],this[_0xf90cdf(0x1dc)]);}[_0xcc124c(0x3ff)](){const _0x26db02=_0xcc124c;return this['_revisionService'][_0x26db02(0x3dc)](this['unitID']);}[_0xcc124c(0x1f4)](){const _0x10d837=_0xcc124c;this[_0x10d837(0x1b4)][_0x10d837(0x4df)](this['unitID']);}[_0xcc124c(0x504)](_0x4099df){const _0x3a39f3=_0xcc124c;var _0x24e157;const _0x1a6007=this[_0x3a39f3(0x25b)](_0x4099df),_0x5892bd=_0x27d15e(_0x1a6007[_0x3a39f3(0x4d0)],this[_0x3a39f3(0x232)],{'fromCollab':!0x0});if(!_0x5892bd[_0x3a39f3(0x48e)])throw _0x5892bd[_0x3a39f3(0x1b3)]instanceof Error?_0x5892bd[_0x3a39f3(0x1b3)]:new Error((_0x24e157=_0x5892bd[_0x3a39f3(0x1b3)])!=null?_0x24e157:_0x3a39f3(0x27a));this[_0x3a39f3(0x2be)](_0x1a6007),this[_0x3a39f3(0x1fb)](_0x4099df),this[_0x3a39f3(0x360)](_0x1a6007),this[_0x3a39f3(0x1de)](_0x1a6007),this[_0x3a39f3(0x1f4)]();}}let pe=class extends ue{constructor(_0xbe3397,_0x40993a,_0x10a1c9,_0x5c8e34,_0x1cd8d8,_0x37ba0e,_0x1198ed,_0x19ac17,_0x37b4c7,_0x3c7ca0){const _0x380582=_0xcc124c;super(_0xbe3397,_0x40993a,null,[],_0x10a1c9,_0x19ac17,_0x1198ed,_0x5c8e34,_0x1cd8d8),l(this,_0x380582(0x35d),'synced'),(this[_0x380582(0x2bb)]=_0x37ba0e,this['_logService']=_0x37b4c7,this[_0x380582(0x4bb)]=_0x3c7ca0);}[_0xcc124c(0x45d)](_0x52f1d7){const _0xd19d0=_0xcc124c,_0x48b3cf=this['_injector'][_0xd19d0(0x293)](X,this[_0xd19d0(0x38f)],this[_0xd19d0(0x23d)],[_0x52f1d7],this[_0xd19d0(0x329)]);return _0x48b3cf[_0xd19d0(0x441)](),_0x48b3cf['_updateLocalCache'](),_0x48b3cf;}[_0xcc124c(0x321)](_0x42bdf4){const _0x11a479=_0xcc124c;if(this[_0x11a479(0x225)](_0x42bdf4))return this[_0x11a479(0x2bb)][_0x11a479(0x293)](B,this[_0x11a479(0x38f)],this['type'],null,[],null,[_0x42bdf4],this['_handler']);try{const _0xa03b8a=this[_0x11a479(0x4bb)][_0x11a479(0x1e2)](_0x42bdf4,[Tr]);if(_0x4a7660(_0xa03b8a)){const {c1Prime:_0x168fb0}=_0xa03b8a;return this[_0x11a479(0x504)](_0x168fb0),this;}throw _0xa03b8a[_0x11a479(0x1b3)];}catch(_0xeaf06e){return this[_0x11a479(0x1b0)][_0x11a479(0x1b3)](_0xeaf06e),this[_0x11a479(0x2b8)](!0x1);}}[_0xcc124c(0x2b8)](_0x5df3bb){const _0x111dcd=_0xcc124c;return this[_0x111dcd(0x2bb)][_0x111dcd(0x293)](ee,this[_0x111dcd(0x38f)],this['type'],null,[],this[_0x111dcd(0x329)],_0x5df3bb);}['onRemoteAck'](){const _0x21e20a=_0xcc124c;throw new Error(_0x21e20a(0x38e));}[_0xcc124c(0x501)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0xcc124c(0x4c0)](){const _0x50609f=_0xcc124c;return this[_0x50609f(0x2bb)][_0x50609f(0x293)](te,this['unitID'],this['type'],null,[],this[_0x50609f(0x329)]);}[_0xcc124c(0x3c0)](){return this;}['resend'](){const _0x515eb0=_0xcc124c;throw new Error(_0x515eb0(0x1f5));}[_0xcc124c(0x2d6)](){const _0x168d48=_0xcc124c,_0x258c63=this['_revisionService'][_0x168d48(0x3dc)](this[_0x168d48(0x38f)]);return this[_0x168d48(0x329)]['onMissingChangesets']({'from':_0x258c63,'to':0x0}),this['_injector']['createInstance'](B,this[_0x168d48(0x38f)],this['type'],null,[],null,[],this[_0x168d48(0x329)]);}};pe=_e([f(0x3,_0xa01556(_0x378b64)),f(0x4,_0xa01556(w)),f(0x5,_0xa01556(_0x3064b3)),f(0x6,_0x48fa5b),f(0x7,_0x4ba546),f(0x8,_0x40bb6c),f(0x9,_0x279fb0)],pe);let X=class extends ue{constructor(_0x78b4f5,_0x4b2c9f,_0x4c7eb3,_0x2acc7d,_0x3dfe72,_0x1f5d44,_0x3d0c26,_0xa2cc48,_0x4691ce,_0x535599,_0x1f42c7,_0x8f1c9,_0x3bc66e,_0x5b71ef){const _0xed28c1=_0xcc124c;super(_0x78b4f5,_0x4b2c9f,null,_0x4c7eb3,_0x2acc7d,_0x535599,_0x5b71ef,_0x1f5d44,_0x3d0c26),l(this,_0xed28c1(0x35d),_0xed28c1(0x4ee)),l(this,_0xed28c1(0x3eb),null),l(this,_0xed28c1(0x2a4),null),(this['_injector']=_0x3dfe72,this[_0xed28c1(0x2ca)]=_0xa2cc48,this[_0xed28c1(0x1b0)]=_0x4691ce,this[_0xed28c1(0x3f6)]=_0x1f42c7,this[_0xed28c1(0x4bb)]=_0x8f1c9,this[_0xed28c1(0x268)]=_0x3bc66e);}[_0xcc124c(0x45d)](_0x4a458e){const _0x244897=_0xcc124c;return this[_0x244897(0x1dc)]['push'](_0x4a458e),this[_0x244897(0x479)](),this;}[_0xcc124c(0x321)](_0x49b450){const _0x37e29d=_0xcc124c;if(this[_0x37e29d(0x225)](_0x49b450))return this[_0x37e29d(0x302)](),this[_0x37e29d(0x2bb)]['createInstance'](B,this['unitID'],this[_0x37e29d(0x23d)],null,this[_0x37e29d(0x1dc)],null,[_0x49b450],this[_0x37e29d(0x329)]);try{const _0x53aa7c=this[_0x37e29d(0x4bb)][_0x37e29d(0x1e2)](_0x49b450,this[_0x37e29d(0x1dc)]);if(_0x4a7660(_0x53aa7c)){const {c1Prime:_0x57d823,m2Prime:_0x438c4d}=_0x53aa7c;this[_0x37e29d(0x504)](_0x57d823);const _0x341903=this['_injector']['createInstance'](X,this['unitID'],this['type'],_0x438c4d,this[_0x37e29d(0x329)]);return this[_0x37e29d(0x302)](),_0x341903['_schedule'](this[_0x37e29d(0x3eb)]?Math[_0x37e29d(0x48b)](0x0,new Date()[_0x37e29d(0x4e0)]()-this[_0x37e29d(0x3eb)]):this[_0x37e29d(0x2e3)]()),_0x341903;}throw _0x53aa7c['error'];}catch(_0x310207){return this[_0x37e29d(0x1b0)][_0x37e29d(0x1b3)](_0x310207),this[_0x37e29d(0x2b8)](!0x1);}}[_0xcc124c(0x3a3)](){const _0xe2eaf=_0xcc124c;throw new Error(_0xe2eaf(0x299));}[_0xcc124c(0x501)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0xcc124c(0x2c9)](){return this;}[_0xcc124c(0x4c0)](){const _0x4d8da5=_0xcc124c;return this['_clearScheduledTask'](),this['_injector'][_0x4d8da5(0x293)](te,this[_0x4d8da5(0x38f)],this['type'],null,this[_0x4d8da5(0x1dc)],this[_0x4d8da5(0x329)]);}[_0xcc124c(0x3c0)](){return this;}[_0xcc124c(0x441)](_0x22c383){const _0x371af6=_0xcc124c,_0x18b955=_0x22c383!=null?_0x22c383:this[_0x371af6(0x2e3)]();this[_0x371af6(0x3eb)]=new Date()['getTime'](),this[_0x371af6(0x2a4)]=window['setTimeout'](()=>{const _0x51aa7b=_0x371af6;this[_0x51aa7b(0x302)]();let _0x1f1572=null;switch(this['type']){case k[_0x51aa7b(0x3e5)]:{_0x1f1572=ds(this[_0x51aa7b(0x1dc)],this[_0x51aa7b(0x38f)],this[_0x51aa7b(0x268)],this[_0x51aa7b(0x1b4)],this['_memberService']);break;}case k[_0x51aa7b(0x215)]:{this['_pendingMutations'][_0x51aa7b(0x423)](_0x296135=>_0x296135['id']===_0xba5740['id'])?_0x1f1572=br(this[_0x51aa7b(0x1dc)],this[_0x51aa7b(0x38f)],this[_0x51aa7b(0x268)],this[_0x51aa7b(0x1b4)],this[_0x51aa7b(0x2ca)]):_0x1f1572=ds(this[_0x51aa7b(0x1dc)],this[_0x51aa7b(0x38f)],this[_0x51aa7b(0x268)],this['_revisionService'],this[_0x51aa7b(0x2ca)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x51aa7b(0x23d)]+_0x51aa7b(0x494));}const {changeset:_0x356afa,pendingMutations:_0x22d8c4}=_0x1f1572;this[_0x51aa7b(0x329)][_0x51aa7b(0x488)](_0x356afa);const _0x2db168=_0x22d8c4[_0x51aa7b(0x236)]?this[_0x51aa7b(0x2bb)]['createInstance'](q,this['unitID'],this[_0x51aa7b(0x23d)],_0x356afa,_0x22d8c4,this[_0x51aa7b(0x329)],void 0x0):this['_injector'][_0x51aa7b(0x293)](Q,this[_0x51aa7b(0x38f)],this['type'],_0x356afa,this[_0x51aa7b(0x329)]);_0x2db168[_0x51aa7b(0x479)](),this[_0x51aa7b(0x329)]['onStateChange'](this,_0x2db168);},_0x18b955);}[_0xcc124c(0x2e3)](){const _0x4ffeb2=_0xcc124c;var _0x524b3c;const _0x19cbcb=this[_0x4ffeb2(0x3f6)][_0x4ffeb2(0x463)]($);return(_0x524b3c=_0x19cbcb==null?void 0x0:_0x19cbcb[_0x4ffeb2(0x374)])!=null?_0x524b3c:bn;}[_0xcc124c(0x28b)](){const _0x1f9a46=_0xcc124c;throw new Error(_0x1f9a46(0x20b));}[_0xcc124c(0x302)](){const _0x943f93=_0xcc124c;this[_0x943f93(0x2a4)]!=null&&(clearTimeout(this[_0x943f93(0x2a4)]),this[_0x943f93(0x2a4)]=null);}[_0xcc124c(0x2b8)](_0x38e517){const _0x2b357f=_0xcc124c;return this[_0x2b357f(0x302)](),this[_0x2b357f(0x2bb)]['createInstance'](ee,this[_0x2b357f(0x38f)],this['type'],null,this[_0x2b357f(0x1dc)],this[_0x2b357f(0x329)],_0x38e517);}};X=_e([f(0x4,_0xa01556(_0x3064b3)),f(0x5,_0xa01556(_0x378b64)),f(0x6,_0xa01556(w)),f(0x7,_0xa01556(ce)),f(0x8,_0x40bb6c),f(0x9,_0x4ba546),f(0xa,_0xf5edd1),f(0xb,_0x279fb0),f(0xc,_0x4a621b),f(0xd,_0x48fa5b)],X);let Q=class extends ue{constructor(_0x48ae5a,_0x5c34fc,_0xbfb504,_0x523949,_0x31ae7c,_0x270d49,_0x4d542e,_0x1b201b,_0x551bbd,_0x1013fd,_0x3d4fcd){const _0x53e724=_0xcc124c;super(_0x48ae5a,_0x5c34fc,_0xbfb504,[],_0x523949,_0x1b201b,_0x3d4fcd,_0x270d49,_0x4d542e),l(this,_0x53e724(0x35d),_0x53e724(0x499)),l(this,_0x53e724(0x1ac),0x0),l(this,_0x53e724(0x230)),l(this,_0x53e724(0x22b)),(this[_0x53e724(0x2bb)]=_0x31ae7c,this['_logService']=_0x551bbd,this['_transformService']=_0x1013fd);}[_0xcc124c(0x45d)](_0x45478a){const _0x95c819=_0xcc124c;this[_0x95c819(0x302)]();const _0x127d26=this[_0x95c819(0x2bb)][_0x95c819(0x293)](q,this[_0x95c819(0x38f)],this[_0x95c819(0x23d)],this[_0x95c819(0x4db)],[_0x45478a],this[_0x95c819(0x329)],this[_0x95c819(0x230)]);return _0x127d26[_0x95c819(0x479)](),_0x127d26;}[_0xcc124c(0x321)](_0x3746b5){const _0x174cc1=_0xcc124c;if(this['_checkMissing'](_0x3746b5))return this[_0x174cc1(0x302)](),this[_0x174cc1(0x2bb)][_0x174cc1(0x293)](B,this[_0x174cc1(0x38f)],this[_0x174cc1(0x23d)],this[_0x174cc1(0x4db)],[],null,[_0x3746b5],this[_0x174cc1(0x329)]);try{const _0x4a61f8=this[_0x174cc1(0x4bb)]['transformChangesets']([_0x3746b5],[this[_0x174cc1(0x4db)]],!0x1);if(_0x20de62(_0x4a61f8)){const {c1Prime:_0x4a6425,c2Prime:_0x50755a}=_0x4a61f8;this[_0x174cc1(0x504)](_0x4a6425[0x0]),_0x50755a[0x0][_0x174cc1(0x363)]=this[_0x174cc1(0x3ff)](),this[_0x174cc1(0x302)]();const _0x40e63f=this[_0x174cc1(0x2bb)]['createInstance'](Q,this[_0x174cc1(0x38f)],this['type'],_0x50755a[0x0],this[_0x174cc1(0x329)]);return _0x40e63f[_0x174cc1(0x479)](),_0x40e63f;}return this[_0x174cc1(0x2b8)](!0x1);}catch(_0x340277){return this[_0x174cc1(0x1b0)][_0x174cc1(0x1b3)](_0x340277),this[_0x174cc1(0x2b8)](!0x1);}}[_0xcc124c(0x3a3)](_0x5e9032){const _0x4651b3=_0xcc124c;this[_0x4651b3(0x302)]();const _0x2a0be5=this[_0x4651b3(0x1b4)][_0x4651b3(0x3dc)](this['unitID']);if(_0x5e9032['revision']<_0x2a0be5-0x1)return this;if(this[_0x4651b3(0x225)](_0x5e9032))return this[_0x4651b3(0x2bb)][_0x4651b3(0x293)](B,this[_0x4651b3(0x38f)],this[_0x4651b3(0x23d)],null,[],this[_0x4651b3(0x4db)],[],this[_0x4651b3(0x329)]);this['_incrementRevisionNumber']();const _0x36d3e4=this[_0x4651b3(0x2bb)][_0x4651b3(0x293)](pe,this[_0x4651b3(0x38f)],this[_0x4651b3(0x23d)],this[_0x4651b3(0x329)]);return _0x36d3e4['_updateLocalCache'](),_0x36d3e4;}['onRemoteRej'](_0x5161ff){const _0x574392=_0xcc124c;return this[_0x574392(0x2b8)](!!(_0x5161ff!=null&&_0x5161ff[_0x574392(0x3d7)]));}[_0xcc124c(0x2c9)](_0x3f9eca){const _0x279df6=_0xcc124c;return this['_resendTimeout']>Ys?this[_0x279df6(0x4c0)]():(this[_0x279df6(0x230)]=Gs(this[_0x279df6(0x1ac)],{'timeout':this[_0x279df6(0x1ac)],'reqId':_0x3f9eca[_0x279df6(0x1f1)]}),this[_0x279df6(0x22b)]=this[_0x279df6(0x230)][_0x279df6(0x3ac)](({reqId:_0x24ebf1,timeout:_0x571382})=>{const _0x26622a=_0x279df6;this[_0x26622a(0x301)](_0x24ebf1,_0x571382);}),this);}[_0xcc124c(0x4c0)](){const _0x351e2f=_0xcc124c;return this[_0x351e2f(0x302)](),this[_0x351e2f(0x2bb)]['createInstance'](te,this[_0x351e2f(0x38f)],this[_0x351e2f(0x23d)],this[_0x351e2f(0x4db)],[],this[_0x351e2f(0x329)]);}[_0xcc124c(0x3c0)](){return this;}[_0xcc124c(0x28b)](){const _0x2e4376=_0xcc124c;this[_0x2e4376(0x329)][_0x2e4376(0x488)](this[_0x2e4376(0x4db)]);}['_onConflict'](_0x432224){const _0xf8eff3=_0xcc124c;return this[_0xf8eff3(0x302)](),this[_0xf8eff3(0x2bb)][_0xf8eff3(0x293)](ee,this['unitID'],this[_0xf8eff3(0x23d)],this[_0xf8eff3(0x4db)],[],this[_0xf8eff3(0x329)],_0x432224);}['_resendWithTimeout'](_0x4a330b,_0x142cc6){const _0x2bcd2f=_0xcc124c;var _0xf11f14;_0x4a330b===((_0xf11f14=this['_awaitingChangeset'])==null?void 0x0:_0xf11f14[_0x2bcd2f(0x1f1)])&&(this['resend'](),this['_resendTimeout']=_0x142cc6===0x0?0x3e8:_0x142cc6*0x2);}[_0xcc124c(0x302)](){const _0x1c9201=_0xcc124c;var _0x41a4e6;(_0x41a4e6=this[_0x1c9201(0x22b)])==null||_0x41a4e6[_0x1c9201(0x35a)](),this[_0x1c9201(0x1ac)]=0x0;}};Q=_e([f(0x4,_0xa01556(_0x3064b3)),f(0x5,_0xa01556(_0x378b64)),f(0x6,_0xa01556(w)),f(0x7,_0x4ba546),f(0x8,_0x40bb6c),f(0x9,_0x279fb0),f(0xa,_0x48fa5b)],Q);let q=class extends ue{constructor(_0x4378ce,_0x197e65,_0x516929,_0x416245,_0x8041b0,_0x32dfce,_0x4dd4a6,_0x578f2b,_0xe329d9,_0xcdb95,_0x52d83,_0x51aad2,_0x122b9d){const _0x1454c2=_0xcc124c;super(_0x4378ce,_0x197e65,_0x516929,_0x416245,_0x8041b0,_0xcdb95,_0x122b9d,_0x578f2b,_0xe329d9),l(this,_0x1454c2(0x35d),_0x1454c2(0x35f)),l(this,_0x1454c2(0x1ac),0x0),l(this,'_resendTimer'),l(this,'_sender'),(this[_0x1454c2(0x2bb)]=_0x4dd4a6,this[_0x1454c2(0x1b0)]=_0x52d83,this['_transformService']=_0x51aad2,_0x32dfce&&(this[_0x1454c2(0x230)]=_0x32dfce,this[_0x1454c2(0x22b)]=this['_resendTimer']['subscribe'](({reqId:_0x3f2015,timeout:_0x2c12ba})=>{const _0x5130f9=_0x1454c2;this[_0x5130f9(0x301)](_0x3f2015,_0x2c12ba);})));}[_0xcc124c(0x45d)](_0x2829cf){const _0x399d24=_0xcc124c;return this[_0x399d24(0x1dc)][_0x399d24(0x4c7)](_0x2829cf),this;}['onRemoteChangeset'](_0xb88409){const _0x132f08=_0xcc124c;if(this[_0x132f08(0x225)](_0xb88409))return this[_0x132f08(0x302)](),this[_0x132f08(0x2bb)]['createInstance'](B,this[_0x132f08(0x38f)],this['type'],this['_awaitingChangeset'],this[_0x132f08(0x1dc)],null,[_0xb88409],this[_0x132f08(0x329)]);try{const _0x28ff70=this[_0x132f08(0x4bb)][_0x132f08(0x285)]([_0xb88409],[this[_0x132f08(0x4db)]],!0x1);if(_0x20de62(_0x28ff70)){const {c1Prime:_0x334871,c2Prime:_0x497f90}=_0x28ff70,_0x5fab8c=this[_0x132f08(0x4bb)][_0x132f08(0x1e2)](_0x334871[0x0],this[_0x132f08(0x1dc)]);if(_0x4a7660(_0x5fab8c)){const {c1Prime:_0x1241f9,m2Prime:_0x1fe4ab}=_0x5fab8c;return this[_0x132f08(0x504)](_0x1241f9),_0x497f90[0x0][_0x132f08(0x363)]=this[_0x132f08(0x3ff)](),this['_clearScheduledTask'](),this[_0x132f08(0x2bb)][_0x132f08(0x293)](q,this[_0x132f08(0x38f)],this['type'],_0x497f90[0x0],_0x1fe4ab,this[_0x132f08(0x329)],void 0x0);}throw _0x5fab8c['error'];}throw _0x28ff70[_0x132f08(0x1b3)];}catch(_0x22d3d9){return this[_0x132f08(0x1b0)][_0x132f08(0x1b3)](_0x22d3d9),this[_0x132f08(0x2b8)](!0x1);}}[_0xcc124c(0x3a3)](_0x5d5a86){const _0x5e37bf=_0xcc124c;if(this[_0x5e37bf(0x302)](),this[_0x5e37bf(0x225)](_0x5d5a86))return this[_0x5e37bf(0x2bb)][_0x5e37bf(0x293)](B,this['unitID'],this[_0x5e37bf(0x23d)],null,this[_0x5e37bf(0x1dc)],this[_0x5e37bf(0x4db)],[],this[_0x5e37bf(0x329)]);this[_0x5e37bf(0x1f4)]();const _0x221bfb=this[_0x5e37bf(0x2bb)][_0x5e37bf(0x293)](X,this[_0x5e37bf(0x38f)],this[_0x5e37bf(0x23d)],this[_0x5e37bf(0x1dc)],this[_0x5e37bf(0x329)]);return _0x221bfb[_0x5e37bf(0x441)](),_0x221bfb[_0x5e37bf(0x479)](),_0x221bfb;}[_0xcc124c(0x501)](_0x56d1f3){const _0x163a32=_0xcc124c;return this[_0x163a32(0x2b8)](!!(_0x56d1f3!=null&&_0x56d1f3['isPermissionRej']));}[_0xcc124c(0x2c9)](_0x8b9eb3){const _0x3ada66=_0xcc124c;return this[_0x3ada66(0x1ac)]>Ys?this[_0x3ada66(0x4c0)]():(this[_0x3ada66(0x230)]=Gs(this[_0x3ada66(0x1ac)],{'timeout':this['_resendTimeout'],'reqId':_0x8b9eb3['reqId']}),this[_0x3ada66(0x22b)]=this[_0x3ada66(0x230)][_0x3ada66(0x3ac)](({reqId:_0x390747,timeout:_0x349d8d})=>{const _0x2dfc0e=_0x3ada66;this[_0x2dfc0e(0x301)](_0x390747,_0x349d8d);}),this);}[_0xcc124c(0x4c0)](){const _0x10d68f=_0xcc124c;return this[_0x10d68f(0x302)](),this[_0x10d68f(0x2bb)][_0x10d68f(0x293)](te,this['unitID'],this[_0x10d68f(0x23d)],this[_0x10d68f(0x4db)],this[_0x10d68f(0x1dc)],this[_0x10d68f(0x329)]);}[_0xcc124c(0x3c0)](){return this;}['resend'](){const _0x25ba37=_0xcc124c;this[_0x25ba37(0x329)]['onSendChangeset'](this['_awaitingChangeset']);}[_0xcc124c(0x2b8)](_0x42e92d){const _0x47c072=_0xcc124c;return this[_0x47c072(0x302)](),this['_injector']['createInstance'](ee,this[_0x47c072(0x38f)],this[_0x47c072(0x23d)],null,this[_0x47c072(0x1dc)],this[_0x47c072(0x329)],_0x42e92d);}[_0xcc124c(0x301)](_0x2df2a8,_0x595029){const _0x3af481=_0xcc124c;var _0x532b74;_0x2df2a8===((_0x532b74=this[_0x3af481(0x4db)])==null?void 0x0:_0x532b74['reqId'])&&(this[_0x3af481(0x28b)](),this[_0x3af481(0x1ac)]=_0x595029===0x0?0x3e8:_0x595029*0x2);}[_0xcc124c(0x302)](){const _0x18adef=_0xcc124c;var _0x5a9d44;(_0x5a9d44=this[_0x18adef(0x22b)])==null||_0x5a9d44[_0x18adef(0x35a)](),this['_resendTimeout']=0x0;}};q=_e([f(0x6,_0xa01556(_0x3064b3)),f(0x7,_0xa01556(_0x378b64)),f(0x8,_0xa01556(w)),f(0x9,_0x4ba546),f(0xa,_0x40bb6c),f(0xb,_0x279fb0),f(0xc,_0x48fa5b)],q);let ee=class extends ue{constructor(_0x2e0fdc,_0x1fde66,_0x596d0d,_0x2edb29,_0x54053a,_0xbd453b=!0x1,_0x5bc2bf,_0x588f9f,_0x47388a,_0x349e70,_0x3203fd,_0x1f701d,_0x23309b){const _0x5e3dba=_0xcc124c;super(_0x2e0fdc,_0x1fde66,_0x596d0d,_0x2edb29,_0x54053a,_0x588f9f,_0x47388a,_0x3203fd,_0x349e70),l(this,_0x5e3dba(0x35d),_0x5e3dba(0x507)),(this[_0x5e3dba(0x30a)]=_0xbd453b,this[_0x5e3dba(0x303)]=_0x5bc2bf,this[_0x5e3dba(0x51c)]=_0x1f701d,this['_notificationService']=_0x23309b,this[_0x5e3dba(0x4ce)](),this[_0x5e3dba(0x437)](),this[_0x5e3dba(0x2cd)]());}['appendMutation'](){return this;}[_0xcc124c(0x321)](){return this;}['onRemoteAck'](){return this;}[_0xcc124c(0x501)](){return this;}[_0xcc124c(0x2c9)](){return this;}[_0xcc124c(0x4c0)](){return this;}[_0xcc124c(0x3c0)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xcc124c(0x437)](){const _0x155f2c=_0xcc124c;this[_0x155f2c(0x2ed)][_0x155f2c(0x4ec)](this[_0x155f2c(0x38f)],this[_0x155f2c(0x23d)],null,[]);}[_0xcc124c(0x4ce)](){const _0x3e76a4=_0xcc124c;this[_0x3e76a4(0x30a)]?this[_0x3e76a4(0x32c)]['show']({'title':this[_0x3e76a4(0x51c)]['t'](_0x3e76a4(0x318)),'content':this[_0x3e76a4(0x51c)]['t'](_0x3e76a4(0x2e6)),'type':_0x3e76a4(0x1b3),'duration':0x0}):this[_0x3e76a4(0x32c)]['show']({'title':this[_0x3e76a4(0x51c)]['t']('conflict.title'),'content':this[_0x3e76a4(0x51c)]['t'](_0x3e76a4(0x2d3)),'type':_0x3e76a4(0x1b3),'duration':0x0});}[_0xcc124c(0x2cd)](){const _0x107fca=_0xcc124c;this['_permissionService'][_0x107fca(0x201)](new _0x5577c9(this[_0x107fca(0x38f)])['id'],!0x1);}};ee=_e([f(0x6,_0xa01556(_0x5e2e27)),f(0x7,_0x4ba546),f(0x8,_0x48fa5b),f(0x9,_0xa01556(w)),f(0xa,_0xa01556(_0x378b64)),f(0xb,_0xa01556(_0x991281)),f(0xc,_0x1e71dd)],ee);let te=class extends ue{constructor(_0x521f0e,_0x128932,_0x278fd9,_0x5878e9,_0x5c5b30,_0x57cb49,_0xccade9,_0x3ce676,_0x585106,_0x180054){const _0x2917f5=_0xcc124c;super(_0x521f0e,_0x128932,_0x278fd9,_0x5878e9,_0x5c5b30,_0x585106,_0x180054,_0xccade9,_0x3ce676),l(this,_0x2917f5(0x35d),_0x2917f5(0x448)),this[_0x2917f5(0x2bb)]=_0x57cb49;}[_0xcc124c(0x45d)](_0x3508ad){const _0xe192a0=_0xcc124c;return this[_0xe192a0(0x1dc)][_0xe192a0(0x4c7)](_0x3508ad),this[_0xe192a0(0x479)](),this;}[_0xcc124c(0x321)](_0x14f3e9){const _0x4c3422=_0xcc124c;throw new Error(_0x4c3422(0x47b));}[_0xcc124c(0x3a3)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x27beb4=_0xcc124c;throw new Error(_0x27beb4(0x2e8));}[_0xcc124c(0x2c9)](){return this;}[_0xcc124c(0x4c0)](){return this;}[_0xcc124c(0x3c0)](){const _0x41b2cf=_0xcc124c,{_injector:_0x295a7d,_pendingMutations:_0x555253,_awaitingChangeset:_0x1a7a86,unitID:_0x94a649,_handler:_0x27e09e,type:_0x40b8c0}=this,_0x44d2d1=Ks(_0x295a7d,_0x94a649,_0x40b8c0,_0x1a7a86,_0x555253,_0x27e09e);return _0x44d2d1 instanceof X?_0x44d2d1['_schedule']():(_0x44d2d1 instanceof q||_0x44d2d1 instanceof Q)&&_0x44d2d1[_0x41b2cf(0x28b)](),_0x44d2d1;}['resend'](){const _0x5bd374=_0xcc124c;throw new Error(_0x5bd374(0x282));}};te=_e([f(0x5,_0xa01556(_0x3064b3)),f(0x6,_0xa01556(_0x378b64)),f(0x7,_0xa01556(w)),f(0x8,_0x4ba546),f(0x9,_0x48fa5b)],te);let B=class extends ue{constructor(_0x3c5d42,_0x3d0f9a,_0x39b547,_0x23e683,_0x4088c9,_0x5b7324,_0x15b722,_0x37c288,_0x35dd46,_0x342e0a,_0x11fa87,_0x564d56,_0x2bcbaa,_0x2a0428){const _0x26affa=_0xcc124c;super(_0x3c5d42,_0x3d0f9a,_0x39b547,_0x23e683,_0x15b722,_0x564d56,_0x2bcbaa,_0x35dd46,_0x342e0a),l(this,'status',_0x26affa(0x1db)),(this[_0x26affa(0x40c)]=_0x4088c9,this[_0x26affa(0x228)]=_0x5b7324,this[_0x26affa(0x2bb)]=_0x37c288,this['_logService']=_0x11fa87,this['_transformService']=_0x2a0428);}[_0xcc124c(0x2c8)](_0x41c5c3){const _0x2e5227=_0xcc124c;try{const _0x49e026=[..._0x41c5c3,...this['_queuedRemoteChangesets']],_0x3d7d3f=[this[_0x2e5227(0x4db)]||this['_acknowledgedAwaitingChangeset']][_0x2e5227(0x4e3)](_0x56f407=>!!_0x56f407);let _0x5e915c,_0x2a0c99;if(_0x3d7d3f[_0x2e5227(0x236)]){const _0x3c973e=this[_0x2e5227(0x4bb)][_0x2e5227(0x285)](_0x49e026,_0x3d7d3f,!0x1);if(!_0x20de62(_0x3c973e))throw _0x3c973e[_0x2e5227(0x1b3)];_0x5e915c=_0x3c973e[_0x2e5227(0x245)],_0x2a0c99=_0x3c973e[_0x2e5227(0x1bf)];}else _0x5e915c=_0x49e026,_0x2a0c99=[];let _0x1e637f=this[_0x2e5227(0x1dc)];_0x5e915c[_0x2e5227(0x3d5)](_0x11e70a=>{const _0x3c280e=_0x2e5227;let _0x35a756;if(_0x1e637f['length']){const _0x5c58c2=this[_0x3c280e(0x4bb)][_0x3c280e(0x1e2)](_0x11e70a,_0x1e637f);if(!_0x4a7660(_0x5c58c2))throw _0x5c58c2[_0x3c280e(0x1b3)];_0x35a756=_0x5c58c2[_0x3c280e(0x245)],_0x1e637f=_0x5c58c2[_0x3c280e(0x4f3)];}else _0x35a756=_0x11e70a;this['_executeRemoteChangeset'](_0x35a756);}),this[_0x2e5227(0x40c)]&&this[_0x2e5227(0x1f4)](),this[_0x2e5227(0x4db)]&&_0x2a0c99[_0x2e5227(0x236)]&&(_0x2a0c99[0x0]['baseRev']=this[_0x2e5227(0x3ff)]());let _0x2df495;if(this[_0x2e5227(0x4db)]&&_0x1e637f['length']!==0x0)_0x2df495=this[_0x2e5227(0x2bb)]['createInstance'](q,this[_0x2e5227(0x38f)],this[_0x2e5227(0x23d)],_0x2a0c99[0x0],_0x1e637f,this[_0x2e5227(0x329)],void 0x0);else{if(this['_awaitingChangeset']&&_0x1e637f[_0x2e5227(0x236)]===0x0)_0x2a0c99[0x0][_0x2e5227(0x363)]=this[_0x2e5227(0x3ff)](),_0x2df495=this[_0x2e5227(0x2bb)][_0x2e5227(0x293)](Q,this[_0x2e5227(0x38f)],this[_0x2e5227(0x23d)],_0x2a0c99[0x0],this[_0x2e5227(0x329)]);else{if(_0x1e637f[_0x2e5227(0x236)]!==0x0){const _0x2e24b9=this[_0x2e5227(0x2bb)]['createInstance'](X,this[_0x2e5227(0x38f)],this[_0x2e5227(0x23d)],_0x1e637f,this[_0x2e5227(0x329)]);_0x2e24b9[_0x2e5227(0x441)](),_0x2df495=_0x2e24b9;}else _0x2df495=this[_0x2e5227(0x2bb)]['createInstance'](pe,this['unitID'],this[_0x2e5227(0x23d)],this[_0x2e5227(0x329)]);}}return _0x2df495[_0x2e5227(0x479)](),_0x2df495;}catch(_0x30dcb8){return this[_0x2e5227(0x1b0)]['error'](_0x2e5227(0x1b8),_0x2e5227(0x503),_0x30dcb8),this[_0x2e5227(0x2bb)][_0x2e5227(0x293)](ee,this[_0x2e5227(0x38f)],this[_0x2e5227(0x23d)],this['_awaitingChangeset'],this[_0x2e5227(0x1dc)],this[_0x2e5227(0x329)],!0x1);}}[_0xcc124c(0x28b)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x30877c){const _0x4e1aba=_0xcc124c;return this[_0x4e1aba(0x1dc)]['push'](_0x30877c),this;}[_0xcc124c(0x321)](_0x1f0a92){const _0x7b3f0f=_0xcc124c;return this[_0x7b3f0f(0x228)]['push'](_0x1f0a92),this;}[_0xcc124c(0x3a3)](_0x20a21a){const _0x22e19b=_0xcc124c;if(this['_awaitingChangeset'])return this[_0x22e19b(0x40c)]=this[_0x22e19b(0x4db)],this['_awaitingChangeset']=null,this;throw new Error(_0x22e19b(0x51b));}[_0xcc124c(0x501)](_0x4e51ee){const _0x3cacc0=_0xcc124c;return this[_0x3cacc0(0x2b8)](!!(_0x4e51ee!=null&&_0x4e51ee[_0x3cacc0(0x3d7)]));}[_0xcc124c(0x2c9)](){return this;}['toggleOffline'](){const _0x39200a=_0xcc124c;return this[_0x39200a(0x2bb)]['createInstance'](te,this[_0x39200a(0x38f)],this[_0x39200a(0x23d)],this[_0x39200a(0x4db)],this['_pendingMutations'],this[_0x39200a(0x329)]);}['toggleOnline'](){return this;}[_0xcc124c(0x2b8)](_0x34096c){const _0x38aa23=_0xcc124c;return this[_0x38aa23(0x2bb)][_0x38aa23(0x293)](ee,this[_0x38aa23(0x38f)],this['type'],this[_0x38aa23(0x4db)],this[_0x38aa23(0x1dc)],this[_0x38aa23(0x329)],_0x34096c);}};B=_e([f(0x7,_0xa01556(_0x3064b3)),f(0x8,_0xa01556(_0x378b64)),f(0x9,_0xa01556(w)),f(0xa,_0x40bb6c),f(0xb,_0x4ba546),f(0xc,_0x48fa5b),f(0xd,_0x279fb0)],B);function Ks(_0x55bd17,_0x19a518,_0x49d76c,_0x39c020,_0x21ffdd,_0x1ade23){const _0x20b2bf=_0xcc124c;return _0x39c020&&_0x21ffdd['length']?_0x55bd17[_0x20b2bf(0x293)](q,_0x19a518,_0x49d76c,_0x39c020,_0x21ffdd,_0x1ade23,void 0x0):_0x39c020?_0x55bd17[_0x20b2bf(0x293)](Q,_0x19a518,_0x49d76c,_0x39c020,_0x1ade23):_0x21ffdd[_0x20b2bf(0x236)]?_0x55bd17['createInstance'](X,_0x19a518,_0x49d76c,_0x21ffdd,_0x1ade23):_0x55bd17[_0x20b2bf(0x293)](pe,_0x19a518,_0x49d76c,_0x1ade23);}var Dr=Object['defineProperty'],wr=Object[_0xcc124c(0x3f2)],Wt=(_0x7fa6a3,_0x36632a,_0x2c7d7c,_0x36e7ce)=>{const _0x18dd75=_0xcc124c;for(var _0x1892c2=_0x36e7ce>0x1?void 0x0:_0x36e7ce?wr(_0x36632a,_0x2c7d7c):_0x36632a,_0x2c7e60=_0x7fa6a3[_0x18dd75(0x236)]-0x1,_0x1b4833;_0x2c7e60>=0x0;_0x2c7e60--)(_0x1b4833=_0x7fa6a3[_0x2c7e60])&&(_0x1892c2=(_0x36e7ce?_0x1b4833(_0x36632a,_0x2c7d7c,_0x1892c2):_0x1b4833(_0x1892c2))||_0x1892c2);return _0x36e7ce&&_0x1892c2&&Dr(_0x36632a,_0x2c7d7c,_0x1892c2),_0x1892c2;},p=(_0x464397,_0x9ba729)=>(_0x23e598,_0x237d5b)=>_0x9ba729(_0x23e598,_0x237d5b,_0x464397);let qe=class extends _0xb64757{constructor(_0x26c3b5,_0x1b2f1a,_0x30ca76,_0x51da28,_0x33b202,_0x29a6c5,_0x19ed2e,_0x5257c7,_0x1952fd,_0x4e9025,_0x2c159c,_0x1ab0cb,_0x42a91c){const _0x384d1d=_0xcc124c;super(),l(this,_0x384d1d(0x22e),new _0x3708bc(null)),l(this,_0x384d1d(0x221),this['_state$']['asObservable']()),l(this,'_state'),l(this,_0x384d1d(0x217),!0x1),l(this,'_changesetSessionId',''),l(this,_0x384d1d(0x1c3),0x0),l(this,'status$',this[_0x384d1d(0x221)][_0x384d1d(0x4f2)](_0x1706c3(_0x1fe81b=>_0x1fe81b?_0x1fe81b[_0x384d1d(0x35d)]:P[_0x384d1d(0x1d8)]),_0x1748c0(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x384d1d(0x1c5),[]),(this['unitID']=_0x26c3b5,this[_0x384d1d(0x428)]=_0x1b2f1a,this[_0x384d1d(0x46c)]=_0x30ca76,this['_injector']=_0x51da28,this[_0x384d1d(0x2ed)]=_0x33b202,this[_0x384d1d(0x2ab)]=_0x29a6c5,this['_localeService']=_0x19ed2e,this['_revisionService']=_0x5257c7,this[_0x384d1d(0x1b0)]=_0x1952fd,this[_0x384d1d(0x232)]=_0x4e9025,this['_messageService']=_0x2c159c,this[_0x384d1d(0x303)]=_0x1ab0cb,this[_0x384d1d(0x527)]=_0x42a91c);}get['state'](){const _0x4b1b2a=_0xcc124c;return this[_0x4b1b2a(0x44d)];}async[_0xcc124c(0x28f)](){if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0xcc124c(0x1ed)](){const _0x5c2816=_0xcc124c;return this[_0x5c2816(0x217)]=!0x0,_0x5b34e8(()=>{const _0x148996=_0x5c2816;this[_0x148996(0x217)]=!0x1,this[_0x148996(0x25c)]();});}['_updateState'](_0x499882){const _0xe38c77=_0xcc124c;this[_0xe38c77(0x44d)]=_0x499882,this[_0xe38c77(0x22e)][_0xe38c77(0x1cf)](_0x499882);}async[_0xcc124c(0x203)](){const _0x3bee9a=_0xcc124c;var _0x5d0cf7;this['_updateState'](await this['_createInitialState']()),this['_singleActiveUnitService']&&((_0x5d0cf7=this['_singleActiveUnitService'])==null||_0x5d0cf7[_0x3bee9a(0x2e5)](this[_0x3bee9a(0x38f)]),this[_0x3bee9a(0x379)](this[_0x3bee9a(0x527)][_0x3bee9a(0x468)](this[_0x3bee9a(0x38f)])[_0x3bee9a(0x3ac)](_0x48eee1=>{const _0x14bb32=_0x3bee9a;this[_0x14bb32(0x1b0)][_0x14bb32(0x4a4)](_0x14bb32(0x39d),'editing\x20status\x20changed\x20to',_0x48eee1),_0x48eee1===Fs[_0x14bb32(0x4b6)]?(this[_0x14bb32(0x41e)]['show']({'content':this[_0x14bb32(0x51c)]['t']('collaboration.single-unit.warning'),'type':_0x41136d[_0x14bb32(0x2dc)]}),this[_0x14bb32(0x303)][_0x14bb32(0x201)](new _0x5577c9(this[_0x14bb32(0x38f)])['id'],!0x1)):this[_0x14bb32(0x303)][_0x14bb32(0x201)](new _0x5577c9(this[_0x14bb32(0x38f)])['id'],!0x0);})));let _0x259588=!0x1;return this['disposeWithMe'](this['session']['sessionStatus$']['subscribe'](_0x551a8c=>{const _0xb8fbc9=_0x3bee9a;_0x551a8c===Y[_0xb8fbc9(0x364)]?this['_toggleOnline'](_0x259588):_0x551a8c===Y['OFFLINE']&&(_0x259588=!0x0,this[_0xb8fbc9(0x3ed)]());})),this[_0x3bee9a(0x379)](this[_0x3bee9a(0x428)]['event$']['subscribe'](_0x5946fc=>{const _0x11d90e=_0x3bee9a;try{switch(_0x5946fc['eventID']){case _0x4b62d5['NEW_CHANGESETS']:{this[_0x11d90e(0x35c)](_0x3ff530(_0x5946fc[_0x11d90e(0x2a7)]));break;}case _0x4b62d5[_0x11d90e(0x4ab)]:{this['_onRemoteACK'](_0x5946fc[_0x11d90e(0x2a7)]);break;}case _0x4b62d5['CHANGESET_REJ']:{this[_0x11d90e(0x362)]();break;}case _0x4b62d5[_0x11d90e(0x385)]:{this['_onRemoteRetry'](_0x5946fc['data']);break;}case _0x4b62d5[_0x11d90e(0x296)]:{this['_onFetchMissResult'](_0x5946fc[_0x11d90e(0x2a7)][_0x11d90e(0x1ee)][_0x11d90e(0x2f3)](_0x3f31b0=>_0x3ff530(_0x3f31b0)));break;}case _0x4b62d5['PERMISSION_REJ']:this[_0x11d90e(0x362)]({'isPermissionRej':!0x0});}}catch(_0x22003a){throw console[_0x11d90e(0x1b3)](_0x11d90e(0x324),_0x22003a),_0x22003a;}})),this['_state'];}['_unlockTransition'](){const _0x10d47e=_0xcc124c;this[_0x10d47e(0x4e4)]=!0x1;}[_0xcc124c(0x289)](){const _0xeed8b9=_0xcc124c;if(this[_0xeed8b9(0x4e4)])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[_0xeed8b9(0x4e4)]=!0x0;}[_0xcc124c(0x1ff)](_0x4d05a4){const _0x48dad5=_0xcc124c;this[_0x48dad5(0x289)](),this[_0x48dad5(0x462)](this[_0x48dad5(0x44d)][_0x48dad5(0x45d)](_0x4d05a4)),this[_0x48dad5(0x27f)]();}['_onRemoteChangeset'](_0x3d199c){const _0x4eeed1=_0xcc124c;if(!(_0x3d199c[_0x4eeed1(0x208)]<=this[_0x4eeed1(0x1b4)][_0x4eeed1(0x3dc)](this[_0x4eeed1(0x38f)]))){if(this['_collaborationPaused']){this[_0x4eeed1(0x1c5)][_0x4eeed1(0x4c7)](_0x3d199c);return;}this[_0x4eeed1(0x251)](_0x3d199c);}}[_0xcc124c(0x25c)](){const _0x190e2c=_0xcc124c;this[_0x190e2c(0x1c5)][_0x190e2c(0x3d5)](_0x3ecc58=>this[_0x190e2c(0x251)](_0x3ecc58)),this[_0x190e2c(0x1c5)]=[];}['_applyRemoteChangeset'](_0xc1b18){const _0x147a7c=_0xcc124c,_0x3582af=this['_compressMutationService'][_0x147a7c(0x414)][_0x147a7c(0x440)](this[_0x147a7c(0x2ab)][_0x147a7c(0x414)][_0x147a7c(0x25d)]()[_0x147a7c(0x2ec)])(_0xc1b18[_0x147a7c(0x4d0)],null)||_0xc1b18[_0x147a7c(0x4d0)],_0x38f706={..._0xc1b18,'mutations':_0x3582af};this[_0x147a7c(0x289)](),this[_0x147a7c(0x462)](this[_0x147a7c(0x44d)][_0x147a7c(0x321)](_0x38f706)),this[_0x147a7c(0x27f)]();}[_0xcc124c(0x2ae)](_0x1b6665){const _0xbeee0=_0xcc124c;this[_0xbeee0(0x289)](),this[_0xbeee0(0x462)](this[_0xbeee0(0x44d)][_0xbeee0(0x3a3)](_0x1b6665)),this[_0xbeee0(0x27f)]();}[_0xcc124c(0x362)](_0x23ff53){const _0x189f10=_0xcc124c;this['_lockTransition'](),this[_0x189f10(0x462)](this['_state'][_0x189f10(0x501)](_0x23ff53)),this[_0x189f10(0x27f)]();}[_0xcc124c(0x3c9)](_0x1697ae){const _0x229b1d=_0xcc124c;this[_0x229b1d(0x289)](),this['_updateState'](this[_0x229b1d(0x44d)][_0x229b1d(0x2c9)](_0x1697ae)),this[_0x229b1d(0x27f)]();}[_0xcc124c(0x2af)](_0x395fb9){const _0x453c76=_0xcc124c;if(!(this[_0x453c76(0x44d)]instanceof B))throw new TypeError(_0x453c76(0x315));const _0x13b351=_0x395fb9['map'](_0x385af0=>{const _0x564d1e=_0x453c76,_0x4e5605=this['_compressMutationService'][_0x564d1e(0x414)][_0x564d1e(0x440)](this[_0x564d1e(0x2ab)][_0x564d1e(0x414)][_0x564d1e(0x25d)]()[_0x564d1e(0x2ec)])(_0x385af0['mutations'],null)||_0x385af0['mutations'];return{..._0x385af0,'mutations':_0x4e5605};});this[_0x453c76(0x289)](),this[_0x453c76(0x462)](this[_0x453c76(0x44d)][_0x453c76(0x2c8)](_0x13b351)),this['_unlockTransition']();}['_toggleOffline'](){const _0x258446=_0xcc124c;this[_0x258446(0x289)](),this[_0x258446(0x462)](this['_state'][_0x258446(0x4c0)]()),this[_0x258446(0x27f)]();}['_toggleOnline'](_0x21a945=!0x1){const _0x1ee302=_0xcc124c;this[_0x1ee302(0x289)](),this[_0x1ee302(0x462)](this[_0x1ee302(0x44d)][_0x1ee302(0x3c0)]()),this[_0x1ee302(0x27f)]();const _0x59c868=this[_0x1ee302(0x44d)];_0x21a945&&_0x59c868 instanceof pe&&(this[_0x1ee302(0x289)](),this[_0x1ee302(0x462)](_0x59c868[_0x1ee302(0x2d6)]()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x1ae933=>{const _0x438fc8=_0x293d;this[_0x438fc8(0x428)]['sessionStatus$']['pipe'](_0x13b589(0x1))[_0x438fc8(0x3ac)](async _0x2d1d67=>{const _0x5a658f=_0x438fc8;_0x1ae933(await this[_0x5a658f(0x40e)](_0x2d1d67===Y[_0x5a658f(0x364)]));});});}['_createHandler'](){const _0xf9a50=_0xcc124c,_0x42a5ab=this[_0xf9a50(0x38f)];return{'onStateChange':(_0x45fda2,_0x4c94ca)=>{const _0x34db6d=_0xf9a50;if(_0x45fda2!==this[_0x34db6d(0x44d)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x45fda2[_0x34db6d(0x35d)]+_0x34db6d(0x4f5)+_0x4c94ca[_0x34db6d(0x35d)]+_0x34db6d(0x276)+this[_0x34db6d(0x44d)][_0x34db6d(0x35d)]);this[_0x34db6d(0x462)](_0x4c94ca);},'onSendChangeset':_0x321a85=>{const _0x339e0d=_0xf9a50;_0x321a85[_0x339e0d(0x50e)]||(_0x321a85[_0x339e0d(0x50e)]=this[_0x339e0d(0x4cc)],_0x321a85['reqId']=++this[_0x339e0d(0x1c3)]);const _0x17e16e={'eventID':_0x4b62d5[_0x339e0d(0x397)],'data':{'unitID':_0x321a85[_0x339e0d(0x38f)],'unitType':this['_type'],'changeset':_0x321a85,'memberID':this[_0x339e0d(0x428)][_0x339e0d(0x534)]()}};this[_0x339e0d(0x428)][_0x339e0d(0x27e)](_0x17e16e,this[_0x339e0d(0x38f)]);},'onMissingChangesets':({from:_0x1bcc47,to:_0x3c9d6d})=>{const _0x386aa9=_0xf9a50;this['_logService'][_0x386aa9(0x4a4)]('[CollaborationEntity]',_0x386aa9(0x1fe)+_0x1bcc47+_0x386aa9(0x2c3)+_0x3c9d6d);const _0x5204e0={'eventID':_0x4b62d5[_0x386aa9(0x24e)],'data':{'unitID':_0x42a5ab,'unitType':this[_0x386aa9(0x46c)],'from':_0x1bcc47,'to':_0x3c9d6d}};this[_0x386aa9(0x428)]['send'](_0x5204e0,this[_0x386aa9(0x38f)]);}};}async[_0xcc124c(0x40e)](_0x5164e9){const _0x1271cb=_0xcc124c;var _0x14ef4c,_0x5e3e9b;const _0x2e9624=await this[_0x1271cb(0x2ed)][_0x1271cb(0x42a)](this[_0x1271cb(0x38f)]),_0x886159=(_0x14ef4c=_0x2e9624==null?void 0x0:_0x2e9624[_0x1271cb(0x4d0)])!=null?_0x14ef4c:[],_0x4009b5=(_0x5e3e9b=_0x2e9624==null?void 0x0:_0x2e9624[_0x1271cb(0x3d1)])!=null?_0x5e3e9b:null,_0x1c2e91=!!(_0x4009b5!=null&&_0x4009b5[_0x1271cb(0x50e)])&&!!(_0x4009b5!=null&&_0x4009b5[_0x1271cb(0x1f1)]);this[_0x1271cb(0x4cc)]=_0x1c2e91?_0x4009b5[_0x1271cb(0x50e)]:or(),this['_changesetReqId']=_0x1c2e91?_0x4009b5['reqId']:0x0;const _0x15900e=this['unitID'];try{this[_0x1271cb(0x2a5)](_0x4009b5,_0x886159);}catch(_0x421040){this[_0x1271cb(0x1b0)][_0x1271cb(0x1b3)](_0x421040);}const _0x35a7a8=this[_0x1271cb(0x206)]();if(_0x5164e9){const _0x489f88=Ks(this['_injector'],_0x15900e,this[_0x1271cb(0x46c)],_0x4009b5,_0x886159,_0x35a7a8);return _0x489f88 instanceof X?_0x489f88[_0x1271cb(0x441)]():(_0x489f88 instanceof q||_0x489f88 instanceof Q)&&_0x489f88[_0x1271cb(0x28b)](),_0x489f88;}return this[_0x1271cb(0x2bb)][_0x1271cb(0x293)](te,_0x15900e,this[_0x1271cb(0x46c)],_0x4009b5,_0x886159,_0x35a7a8);}[_0xcc124c(0x2a5)](_0x48179e,_0x347cac){const _0x55e083=_0xcc124c;var _0x3f7a68,_0x5489d2;const _0x3212cd=this[_0x55e083(0x2ab)]['interceptor'][_0x55e083(0x440)](this[_0x55e083(0x2ab)][_0x55e083(0x414)]['getInterceptPoints']()[_0x55e083(0x2ec)]);(_0x3f7a68=_0x3212cd((_0x48179e==null?void 0x0:_0x48179e[_0x55e083(0x4d0)])||[],null))==null||_0x3f7a68[_0x55e083(0x3d5)](_0x1afb8d=>this[_0x55e083(0x232)][_0x55e083(0x49c)](_0x1afb8d['id'],_0x1afb8d[_0x55e083(0x20f)])),(_0x5489d2=_0x3212cd(_0x347cac||[],null))==null||_0x5489d2[_0x55e083(0x3d5)](_0x259055=>this['_commandService'][_0x55e083(0x49c)](_0x259055['id'],_0x259055[_0x55e083(0x20f)]));}};qe=Wt([p(0x3,_0xa01556(_0x3064b3)),p(0x4,_0xa01556(w)),p(0x5,_0xa01556(_0x19192a)),p(0x6,_0xa01556(_0x991281)),p(0x7,_0xa01556(_0x378b64)),p(0x8,_0x40bb6c),p(0x9,_0x4ba546),p(0xa,_0x354bae),p(0xb,_0x5e2e27),p(0xc,_0x18dda4(tt))],qe);let Tt=class extends qe{constructor(_0xa19992,_0x14c611,_0x12c0fc,_0x5c8662,_0x220db1,_0x3d0fa1,_0x78ce8d,_0x910fb8,_0x108fe4,_0x4e411f,_0x2387f8,_0x514d96,_0x5a29da,_0x28729b,_0x4e202f,_0xfa0479,_0xa79711){const _0x112d17=_0xcc124c;super(_0xa19992,_0x12c0fc,_0x14c611,_0x5c8662,_0x220db1,_0x3d0fa1,_0x78ce8d,_0x910fb8,_0x5a29da,_0x28729b,_0x4e202f,_0xfa0479,_0xa79711),this[_0x112d17(0x38f)]=_0xa19992,this['type']=_0x14c611,this[_0x112d17(0x4a7)]=_0x108fe4,this['_docTransformIMECacheService']=_0x4e411f,this[_0x112d17(0x52c)]=_0x2387f8,this[_0x112d17(0x43a)]=_0x514d96;}[_0xcc124c(0x206)](){const _0x51e657=_0xcc124c,_0x2e41ce=super[_0x51e657(0x206)]();return _0x2e41ce[_0x51e657(0x4bd)]=_0x5d0154=>this[_0x51e657(0x2db)][_0x51e657(0x2e9)](_0x5d0154),_0x2e41ce[_0x51e657(0x4f7)]=_0x496c70=>this['_docTransformSelectionsService'][_0x51e657(0x3ef)](_0x496c70),_0x2e41ce[_0x51e657(0x4fb)]=_0x20d4c5=>this['_docSyncEditingCollabCursorService'][_0x51e657(0x531)](_0x20d4c5),_0x2e41ce[_0x51e657(0x4d1)]=_0x3ab2ac=>this['_docTransformIMECacheService'][_0x51e657(0x1ef)](_0x3ab2ac),_0x2e41ce;}async[_0xcc124c(0x203)](){const _0x53c369=_0xcc124c,_0x50c264=await super[_0x53c369(0x203)]();return this['_docStateChangeManagerService'][_0x53c369(0x1cd)][_0x53c369(0x4f2)](_0x2cf076(this['dispose$']))[_0x53c369(0x3ac)](_0x48a0b4=>{const _0x1cbbaf=_0x53c369;if(_0x48a0b4==null)return;const {unitId:_0x156539,redoState:_0x5db870,commandId:_0x2e9551}=_0x48a0b4;if(_0x156539!==this[_0x1cbbaf(0x38f)])return;const _0x50902b={'id':_0x2e9551,'type':_0x542ece[_0x1cbbaf(0x307)],'params':{'unitId':_0x156539,'actions':_0x5db870[_0x1cbbaf(0x27b)],'textRanges':null}};this[_0x1cbbaf(0x1ff)](_0x50902b);}),_0x50c264;}};Tt=Wt([p(0x3,_0xa01556(_0x3064b3)),p(0x4,_0xa01556(w)),p(0x5,_0xa01556(_0x19192a)),p(0x6,_0xa01556(_0x991281)),p(0x7,_0xa01556(_0x378b64)),p(0x8,_0xa01556(_0x5b5ef5)),p(0x9,_0xa01556(Ye)),p(0xa,_0xa01556(Xe)),p(0xb,_0xa01556(Ft)),p(0xc,_0x40bb6c),p(0xd,_0x4ba546),p(0xe,_0x354bae),p(0xf,_0x5e2e27),p(0x10,_0x18dda4(tt))],Tt);let Rt=class extends qe{constructor(_0x454896,_0x59cdf6,_0x240a56,_0x251966,_0x321749,_0x5acb0,_0x5480e2,_0x243ab2,_0x1ff6fe,_0x319f7f,_0xbe4b2a,_0xaeb7,_0xe2e54b,_0x257864){const _0x39d7e0=_0xcc124c;super(_0x454896,_0x240a56,_0x59cdf6,_0x251966,_0x321749,_0x5acb0,_0x5480e2,_0x243ab2,_0x319f7f,_0xbe4b2a,_0xaeb7,_0xe2e54b,_0x257864),this[_0x39d7e0(0x38f)]=_0x454896,this[_0x39d7e0(0x23d)]=_0x59cdf6,this[_0x39d7e0(0x216)]=_0x1ff6fe;}[_0xcc124c(0x206)](){const _0x494408=_0xcc124c,_0xed073f=super['_createHandler']();return _0xed073f[_0x494408(0x4f7)]=_0x3bd061=>this[_0x494408(0x216)]['transformSelections'](_0x3bd061),_0xed073f;}async[_0xcc124c(0x203)](){const _0x2e916e=_0xcc124c,_0x4913d1=await super[_0x2e916e(0x203)]();return this[_0x2e916e(0x379)](this[_0x2e916e(0x232)][_0x2e916e(0x3d2)]((_0x5434f5,_0x1a1e42)=>{const _0x5eecbe=_0x2e916e;if(_0x5434f5[_0x5eecbe(0x23d)]!==_0x542ece['MUTATION']||_0x1a1e42!=null&&_0x1a1e42[_0x5eecbe(0x40b)]||_0x1a1e42!=null&&_0x1a1e42[_0x5eecbe(0x4a8)])return;const _0x3aeee7=_0x5434f5[_0x5eecbe(0x20f)];if((_0x3aeee7==null?void 0x0:_0x3aeee7['unitId'])!==this['unitID'])return;const _0xfa6013=_0x5434f5,_0x792119=this['_compressMutationService'][_0x5eecbe(0x414)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5eecbe(0x414)][_0x5eecbe(0x25d)]()['COMPRESS_MUTATION_SEND'])([_0xfa6013],null)||[_0xfa6013];this[_0x5eecbe(0x1ff)](_0x792119[0x0]);})),_0x4913d1;}};Rt=Wt([p(0x3,_0xa01556(_0x3064b3)),p(0x4,_0xa01556(w)),p(0x5,_0xa01556(_0x19192a)),p(0x6,_0xa01556(_0x991281)),p(0x7,_0xa01556(_0x378b64)),p(0x8,_0xa01556(Ke)),p(0x9,_0x40bb6c),p(0xa,_0x4ba546),p(0xb,_0x354bae),p(0xc,_0x5e2e27),p(0xd,_0x18dda4(tt))],Rt);var Pr=Object['defineProperty'],yr=Object[_0xcc124c(0x3f2)],Ur=(_0x37d827,_0x4c24f2,_0x3ddeb2,_0x298e10)=>{const _0xcbaa16=_0xcc124c;for(var _0x151de4=_0x298e10>0x1?void 0x0:_0x298e10?yr(_0x4c24f2,_0x3ddeb2):_0x4c24f2,_0x1c03f1=_0x37d827[_0xcbaa16(0x236)]-0x1,_0x4f5b3b;_0x1c03f1>=0x0;_0x1c03f1--)(_0x4f5b3b=_0x37d827[_0x1c03f1])&&(_0x151de4=(_0x298e10?_0x4f5b3b(_0x4c24f2,_0x3ddeb2,_0x151de4):_0x4f5b3b(_0x151de4))||_0x151de4);return _0x298e10&&_0x151de4&&Pr(_0x4c24f2,_0x3ddeb2,_0x151de4),_0x151de4;},_t=(_0x1dd80a,_0x3dc9c1)=>(_0x301ad5,_0x1af263)=>_0x3dc9c1(_0x301ad5,_0x1af263,_0x1dd80a);let Le=class extends _0xb64757{constructor(_0x2bb3b0,_0x4e50a8,_0x50078e){const _0x131fec=_0xcc124c;super(),l(this,_0x131fec(0x3ad),new Map()),l(this,'_entityInit$',new _0x3ca740()),(this[_0x131fec(0x2bb)]=_0x2bb3b0,this[_0x131fec(0x2d0)]=_0x4e50a8,this[_0x131fec(0x268)]=_0x50078e,this[_0x131fec(0x203)]());}[_0xcc124c(0x2e2)](){const _0x4a759d=_0xcc124c;super[_0x4a759d(0x2e2)](),this['_entities'][_0x4a759d(0x3d5)](_0x167eda=>_0x167eda[_0x4a759d(0x2e2)]()),this[_0x4a759d(0x3ad)][_0x4a759d(0x233)]();}['getCollabEntity'](_0x3a4ae4){const _0x30fd1e=_0xcc124c;var _0x148e0f;return(_0x148e0f=this[_0x30fd1e(0x3ad)]['get'](_0x3a4ae4))!=null?_0x148e0f:null;}[_0xcc124c(0x21d)](_0xb6fa7f){const _0x364877=_0xcc124c,_0x1d73f1=this['getCollabEntity'](_0xb6fa7f);return _0x1d73f1?_0x226e5d(_0x1d73f1):this[_0x364877(0x3bc)][_0x364877(0x4f2)](_0x117995(_0x1f138b=>_0x1f138b[_0x364877(0x38f)]===_0xb6fa7f));}[_0xcc124c(0x203)](){const _0x17ccde=_0xcc124c;this[_0x17ccde(0x268)][_0x17ccde(0x3b7)](_0x4eff1c[_0x17ccde(0x3e5)])['pipe'](_0x2cf076(this[_0x17ccde(0x31d)]),_0x296164(0x10))['subscribe'](async _0x1c0ed3=>{const _0x272087=_0x17ccde,_0x535e1c=_0x1c0ed3[_0x272087(0x43f)](),_0x4cc782=await this[_0x272087(0x263)](_0x535e1c,k[_0x272087(0x3e5)]);this[_0x272087(0x3ad)][_0x272087(0x4d8)](_0x535e1c,_0x4cc782);}),this[_0x17ccde(0x268)][_0x17ccde(0x3b7)](_0x4eff1c[_0x17ccde(0x215)])[_0x17ccde(0x4f2)](_0x2cf076(this[_0x17ccde(0x31d)]),_0x296164(0x10))[_0x17ccde(0x4f2)](_0x117995(_0x34df18=>!_0x34df18[_0x17ccde(0x43f)]()[_0x17ccde(0x435)]('__')))['subscribe'](async _0x17aa95=>{const _0x1c934f=_0x17ccde,_0x48c973=_0x17aa95[_0x1c934f(0x43f)](),_0x597bac=await this[_0x1c934f(0x263)](_0x48c973,k[_0x1c934f(0x215)]);this[_0x1c934f(0x3ad)][_0x1c934f(0x4d8)](_0x48c973,_0x597bac);}),_0x340e15(this[_0x17ccde(0x268)][_0x17ccde(0x43b)](_0x4eff1c[_0x17ccde(0x3e5)]),this[_0x17ccde(0x268)]['getTypeOfUnitDisposed$'](_0x4eff1c[_0x17ccde(0x215)]))['pipe'](_0x2cf076(this['dispose$']))[_0x17ccde(0x3ac)](_0x35c841=>{const _0x3feb03=_0x17ccde,_0x5f1106=_0x35c841[_0x3feb03(0x43f)](),_0x3dc6c3=this[_0x3feb03(0x3ad)]['get'](_0x5f1106);_0x3dc6c3&&(_0x3dc6c3[_0x3feb03(0x2e2)](),this[_0x3feb03(0x3ad)][_0x3feb03(0x3bd)](_0x5f1106));});}async[_0xcc124c(0x263)](_0x4deb0f,_0x182bca){const _0x18dc6f=_0xcc124c,_0xf8e8c9=await this[_0x18dc6f(0x2d0)][_0x18dc6f(0x2c7)](_0x4deb0f),_0x1b5920=this[_0x18dc6f(0x2bb)]['createInstance'](this['_getCtorByUniverType'](_0x182bca),_0x4deb0f,_0x182bca,_0xf8e8c9);return await _0x1b5920['init'](),this[_0x18dc6f(0x3bc)]['next'](_0x1b5920),_0x1b5920;}[_0xcc124c(0x496)](_0x2b53c9){const _0x577592=_0xcc124c;switch(_0x2b53c9){case k[_0x577592(0x215)]:return Tt;case k['UNIVER_SHEET']:return Rt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2b53c9);}}};Le=Ur([_t(0x0,_0xa01556(_0x3064b3)),_t(0x1,_0xa01556(he)),_t(0x2,_0x4a621b)],Le);const ms=[_0xcc124c(0x40d),_0xcc124c(0x1c0),'verdancy600','red300',_0xcc124c(0x52d),_0xcc124c(0x368)];class Gt extends _0x4dfcd2{constructor(){const _0x8277ac=_0xcc124c;super(...arguments),l(this,_0x8277ac(0x476),new Map()),l(this,_0x8277ac(0x489),0x0);}[_0xcc124c(0x481)](_0x589239){const _0x31f4da=_0xcc124c;if(this[_0x31f4da(0x476)][_0x31f4da(0x449)](_0x589239))return this[_0x31f4da(0x476)]['get'](_0x589239);const _0xa5839=ms[this['_colorIndex']];return this[_0x31f4da(0x489)]=(this[_0x31f4da(0x489)]+0x1)%ms[_0x31f4da(0x236)],this[_0x31f4da(0x476)][_0x31f4da(0x4d8)](_0x589239,_0xa5839),_0xa5839;}}var Nr=Object[_0xcc124c(0x2ad)],Mr=Object[_0xcc124c(0x3f2)],Ar=(_0x29a980,_0x26a70a,_0xc22cab,_0x39b28b)=>{const _0x50ee1b=_0xcc124c;for(var _0x1eca2f=_0x39b28b>0x1?void 0x0:_0x39b28b?Mr(_0x26a70a,_0xc22cab):_0x26a70a,_0x4e6895=_0x29a980[_0x50ee1b(0x236)]-0x1,_0x172fdb;_0x4e6895>=0x0;_0x4e6895--)(_0x172fdb=_0x29a980[_0x4e6895])&&(_0x1eca2f=(_0x39b28b?_0x172fdb(_0x26a70a,_0xc22cab,_0x1eca2f):_0x172fdb(_0x1eca2f))||_0x1eca2f);return _0x39b28b&&_0x1eca2f&&Nr(_0x26a70a,_0xc22cab,_0x1eca2f),_0x1eca2f;},ie=(_0x5c532f,_0x156a2c)=>(_0xfa6b8a,_0x182cb4)=>_0x156a2c(_0xfa6b8a,_0x182cb4,_0x5c532f);const Lr=0x12c,$r=0x64;let Ot=class extends _0xb64757{constructor(_0x48b80f,_0x2c66cb,_0x567b16,_0x657919,_0x413443,_0x31b69b,_0x26ebbd,_0x127371,_0x33f638){const _0x40ea60=_0xcc124c;super(),l(this,_0x40ea60(0x529),!0x1),l(this,_0x40ea60(0x203),!0x1),l(this,_0x40ea60(0x313),new _0x3708bc(new Map())),l(this,_0x40ea60(0x34d),this[_0x40ea60(0x313)][_0x40ea60(0x407)]()),l(this,'_roomMembers$',new _0x3708bc([])),l(this,_0x40ea60(0x2ee),this[_0x40ea60(0x465)][_0x40ea60(0x4f2)](_0x218b65(Lr))),l(this,'_updateLocalCursor',_0x1c12c5(_0x523708=>{const _0xe2c93d=_0x40ea60,_0x72287={'eventID':_0x4b62d5[_0xe2c93d(0x340)],'data':{'unitID':this[_0xe2c93d(0x38f)],'memberID':this[_0xe2c93d(0x401)][_0xe2c93d(0x534)](),'selection':Ws(_0x523708)}};this['_session'][_0xe2c93d(0x27e)](_0x72287,this[_0xe2c93d(0x38f)]);},$r)),(this['unitID']=_0x48b80f,this[_0x40ea60(0x401)]=_0x2c66cb,this[_0x40ea60(0x2bb)]=_0x567b16,this[_0x40ea60(0x456)]=_0x657919,this['_memberService']=_0x413443,this[_0x40ea60(0x32b)]=_0x31b69b,this[_0x40ea60(0x4bb)]=_0x26ebbd,this[_0x40ea60(0x268)]=_0x127371,this[_0x40ea60(0x232)]=_0x33f638);}get[_0xcc124c(0x247)](){const _0x29b7c8=_0xcc124c;return this[_0x29b7c8(0x313)][_0x29b7c8(0x24c)]();}get[_0xcc124c(0x3a1)](){const _0xebea51=_0xcc124c;return this[_0xebea51(0x465)]['getValue']();}['dispose'](){const _0x1571c7=_0xcc124c;super[_0x1571c7(0x2e2)](),this[_0x1571c7(0x313)][_0x1571c7(0x1cf)](new Map()),this[_0x1571c7(0x313)][_0x1571c7(0x492)](),this[_0x1571c7(0x465)][_0x1571c7(0x1cf)]([]),this[_0x1571c7(0x465)][_0x1571c7(0x492)]();}[_0xcc124c(0x28f)](){const _0x157ea8=_0xcc124c;this[_0x157ea8(0x203)]||(this[_0x157ea8(0x203)]=!0x0,this[_0x157ea8(0x401)]['sessionStatus$'][_0x157ea8(0x4f2)](_0x2cf076(this[_0x157ea8(0x31d)]))['subscribe'](_0x5a2549=>{const _0x574519=_0x157ea8;_0x5a2549===Y[_0x574519(0x364)]?this[_0x574519(0x22a)]():this[_0x574519(0x3ed)]();}),this[_0x157ea8(0x401)][_0x157ea8(0x2b5)][_0x157ea8(0x4f2)](_0x2cf076(this['dispose$']))[_0x157ea8(0x3ac)](_0x5eeaad=>{const _0x309420=_0x157ea8,_0x587a60=_0x5eeaad[_0x309420(0x346)];_0x587a60===_0x4b62d5[_0x309420(0x340)]&&this['_onCursorUpdate'](_0x5eeaad),_0x587a60===_0x4b62d5[_0x309420(0x3e3)]&&this[_0x309420(0x353)](_0x5eeaad);}),this[_0x157ea8(0x379)](this['_commandService'][_0x157ea8(0x3d2)](_0x3adf70=>{const _0x4e91bf=_0x157ea8,_0x16bb9e=_0x3adf70[_0x4e91bf(0x20f)];_0x16bb9e!=null&&this[_0x4e91bf(0x529)]&&_0x3adf70['id']===_0x321de0['id']&&_0x16bb9e[_0x4e91bf(0x49a)]===this[_0x4e91bf(0x38f)]&&_0x16bb9e[_0x4e91bf(0x3d8)]===!0x1&&this['_updateLocalCursor'](_0x16bb9e['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x157ea8(0x4f2)](_0x2cf076(this[_0x157ea8(0x31d)]))[_0x157ea8(0x3ac)](_0x5b82ba=>{const _0x976675=_0x157ea8;if((_0x5b82ba==null?void 0x0:_0x5b82ba[_0x976675(0x38f)])!==this[_0x976675(0x38f)])return;const _0x24b016={'eventID':_0x4b62d5['UPDATE_CURSOR'],'data':_0x5b82ba};this[_0x976675(0x2e1)](_0x24b016);}),this[_0x157ea8(0x379)](this['_commandService'][_0x157ea8(0x3d2)](_0x31b04e=>{const _0x2af373=_0x157ea8;if(_0x31b04e[_0x2af373(0x20f)]==null)return;const _0x22eb12=_0x31b04e[_0x2af373(0x20f)];if(_0x31b04e['id']!==_0xba5740['id']||_0x22eb12[_0x2af373(0x49a)]!==this[_0x2af373(0x38f)])return;const _0x418b4c={'id':_0x2af373(0x4d6),'params':_0x22eb12},_0x5099f8=this['cursorInfo'];for(const [_0x4db27b,_0x5b5884]of _0x5099f8){const _0x38c29d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2af373(0x38f)],'actions':null,'textRanges':_0x5b5884[_0x2af373(0x39c)]}},_0x3d4e21=this[_0x2af373(0x4bb)][_0x2af373(0x509)](_0x418b4c,_0x38c29d,!0x1);if(_0xbffc4f(_0x3d4e21))throw _0x3d4e21['error'];_0x5099f8[_0x2af373(0x4d8)](_0x4db27b,{..._0x5b5884,'ranges':_0x3d4e21[_0x2af373(0x4f3)][_0x2af373(0x20f)][_0x2af373(0x2d9)]});}queueMicrotask(()=>{const _0x4973fa=_0x2af373;this['_cursorInfo$'][_0x4973fa(0x1cf)](_0x5099f8);});})));}['_onCursorUpdate'](_0x1535a7){const _0x435483=_0xcc124c;var _0x2a0f90,_0x43f67e;const {memberID:_0x21a40a,selection:_0x48e517}=_0x1535a7[_0x435483(0x2a7)],_0x48d9c8=pr(_0x48e517),_0x1c9bc1=(_0x43f67e=(_0x2a0f90=this['_memberService'][_0x435483(0x1d6)](this[_0x435483(0x38f)],_0x21a40a))==null?void 0x0:_0x2a0f90[_0x435483(0x2d1)])!=null?_0x43f67e:_0x435483(0x239),_0x2a8765={'color':this[_0x435483(0x456)][_0x435483(0x481)](_0x21a40a),'name':_0x1c9bc1,'ranges':_0x48d9c8},_0x49166c=this[_0x435483(0x247)];_0x49166c['set'](_0x21a40a,_0x2a8765),this['_cursorInfo$'][_0x435483(0x1cf)](_0x49166c);}[_0xcc124c(0x353)](_0x172eaf){const _0x4886ce=_0xcc124c,{memberID:_0x18e334}=_0x172eaf[_0x4886ce(0x2a7)],_0x22d5ee=this['cursorInfo'];_0x22d5ee['delete'](_0x18e334),this[_0x4886ce(0x313)][_0x4886ce(0x1cf)](_0x22d5ee);}['_toggleOnline'](){const _0x53e26c=_0xcc124c;var _0x1b211f;if(this[_0x53e26c(0x529)]=!0x0,((_0x1b211f=this['_univerInstanceService'][_0x53e26c(0x270)]())==null?void 0x0:_0x1b211f[_0x53e26c(0x43f)]())!==this['unitID'])return;const _0xf3df95=this[_0x53e26c(0x2bb)][_0x53e26c(0x4e6)](_0x2a59c5)[_0x53e26c(0x4d2)]();Array['isArray'](_0xf3df95)&&_0xf3df95[_0x53e26c(0x236)]>0x0&&this[_0x53e26c(0x273)](_0xf3df95);}[_0xcc124c(0x3ed)](){this['_online']=!0x1;}};Ot=Ar([ie(0x2,_0xa01556(_0x3064b3)),ie(0x3,_0xa01556(Gt)),ie(0x4,_0xa01556(ce)),ie(0x5,_0xa01556(Ft)),ie(0x6,_0x279fb0),ie(0x7,_0x4a621b),ie(0x8,_0x4ba546)],Ot);var jr=Object[_0xcc124c(0x2ad)],Hr=Object[_0xcc124c(0x3f2)],xr=(_0x3821c3,_0x4eb3a5,_0x529f88,_0x4105dc)=>{for(var _0x32ea7e=_0x4105dc>0x1?void 0x0:_0x4105dc?Hr(_0x4eb3a5,_0x529f88):_0x4eb3a5,_0x155876=_0x3821c3['length']-0x1,_0x4eb337;_0x155876>=0x0;_0x155876--)(_0x4eb337=_0x3821c3[_0x155876])&&(_0x32ea7e=(_0x4105dc?_0x4eb337(_0x4eb3a5,_0x529f88,_0x32ea7e):_0x4eb337(_0x32ea7e))||_0x32ea7e);return _0x4105dc&&_0x32ea7e&&jr(_0x4eb3a5,_0x529f88,_0x32ea7e),_0x32ea7e;},fe=(_0x17cf97,_0x4d03f6)=>(_0x1e03f5,_0x1f27c6)=>_0x4d03f6(_0x1e03f5,_0x1f27c6,_0x17cf97);const kr=0x12c,Br=0x64,Vr=()=>{let _0x126106=[],_0x36d054=!0x1;return _0x4964fa=>{const _0x1e6f70=_0x293d;_0x126106[_0x1e6f70(0x4c7)](_0x4964fa),_0x36d054||(_0x36d054=!0x0,setTimeout(()=>{const _0x16fc87=_0x1e6f70;_0x126106[_0x16fc87(0x3d5)](_0x297c71=>_0x297c71()),_0x126106=[],_0x36d054=!0x1;}));};};let Dt=class extends _0xb64757{constructor(_0x27c38e,_0x3a7e24,_0x18cd8c,_0x37c7dc,_0x222076,_0x3f8866,_0x592641,_0x4d3755){const _0x5f0e50=_0xcc124c;super(),l(this,_0x5f0e50(0x529),!0x1),l(this,_0x5f0e50(0x203),!0x1),l(this,_0x5f0e50(0x313),new _0x3708bc(new Map())),l(this,_0x5f0e50(0x34d),this[_0x5f0e50(0x313)][_0x5f0e50(0x407)]()),l(this,'_roomMembers$',new _0x3708bc([])),l(this,_0x5f0e50(0x2ee),this[_0x5f0e50(0x465)]['pipe'](_0x218b65(kr))),l(this,_0x5f0e50(0x273),_0x1c12c5((_0x41f103,_0x5c859a)=>{const _0x5470e7=_0x5f0e50,_0x3fa923={'eventID':_0x4b62d5[_0x5470e7(0x340)],'data':{'unitID':this[_0x5470e7(0x38f)],'memberID':this[_0x5470e7(0x401)][_0x5470e7(0x534)](),'selection':_0x5dd5b4(_0x41f103,_0x5c859a[_0x5470e7(0x3e2)])}};this[_0x5470e7(0x401)][_0x5470e7(0x27e)](_0x3fa923,this['unitID']);},Br)),(this[_0x5f0e50(0x38f)]=_0x27c38e,this[_0x5f0e50(0x401)]=_0x3a7e24,this[_0x5f0e50(0x2bb)]=_0x18cd8c,this[_0x5f0e50(0x456)]=_0x37c7dc,this['_memberService']=_0x222076,this[_0x5f0e50(0x268)]=_0x3f8866,this[_0x5f0e50(0x232)]=_0x592641,this[_0x5f0e50(0x48c)]=_0x4d3755);}get[_0xcc124c(0x247)](){const _0x9c30ff=_0xcc124c;return this[_0x9c30ff(0x313)][_0x9c30ff(0x24c)]();}get['roomMembers'](){const _0x182cac=_0xcc124c;return this['_roomMembers$'][_0x182cac(0x24c)]();}[_0xcc124c(0x2e2)](){const _0x7551a8=_0xcc124c;super['dispose'](),this['_cursorInfo$'][_0x7551a8(0x1cf)](new Map()),this[_0x7551a8(0x313)][_0x7551a8(0x492)](),this[_0x7551a8(0x465)]['next']([]),this[_0x7551a8(0x465)][_0x7551a8(0x492)]();}['init'](){const _0x13032a=_0xcc124c;this['_init']||(this['_init']=!0x0,this['_session'][_0x13032a(0x23a)][_0x13032a(0x4f2)](_0x2cf076(this[_0x13032a(0x31d)]))[_0x13032a(0x3ac)](_0x11b8c4=>{const _0xad27f6=_0x13032a;_0x11b8c4===Y[_0xad27f6(0x364)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x13032a(0x401)][_0x13032a(0x2b5)][_0x13032a(0x4f2)](_0x2cf076(this[_0x13032a(0x31d)]))[_0x13032a(0x3ac)](_0x5632cc=>{const _0x21c85a=_0x13032a,_0x2591e5=_0x5632cc['eventID'];_0x2591e5===_0x4b62d5['UPDATE_CURSOR']&&this[_0x21c85a(0x2e1)](_0x5632cc),_0x2591e5===_0x4b62d5['USERS_LEAVE']&&this['_onCursorDelete'](_0x5632cc);}),this[_0x13032a(0x2f1)](),this['disposeWithMe'](this[_0x13032a(0x232)]['onCommandExecuted'](_0x5c8929=>{const _0x5c50d4=_0x13032a;if(this['_online']&&_0x5c8929['id']===_0x2ca063['id']&&_0x5c8929[_0x5c50d4(0x20f)][_0x5c50d4(0x49a)]===this[_0x5c50d4(0x38f)]){const _0x7c61ca=_0x5c8929[_0x5c50d4(0x20f)];this[_0x5c50d4(0x273)](_0x7c61ca[_0x5c50d4(0x2a6)],_0x7c61ca[_0x5c50d4(0x46d)][0x0]);}})));}[_0xcc124c(0x2e1)](_0xa80f31){const _0x449cd9=_0xcc124c;var _0x10da10,_0xaad525;const {memberID:_0x130930,selection:_0xd2b671}=_0xa80f31[_0x449cd9(0x2a7)],{sheetName:_0x2149f2,range:_0x274504}=_0xcc0d24(_0xd2b671),_0x3689a1={'name':(_0xaad525=(_0x10da10=this[_0x449cd9(0x2ca)][_0x449cd9(0x1d6)](this[_0x449cd9(0x38f)],_0x130930))==null?void 0x0:_0x10da10[_0x449cd9(0x2d1)])!=null?_0xaad525:_0x449cd9(0x239),'range':this[_0x449cd9(0x4b9)](_0x2149f2,_0x274504),'sheetID':_0x2149f2,'color':this[_0x449cd9(0x456)][_0x449cd9(0x481)](_0x130930),'selection':_0xd2b671},_0x182ee4=this[_0x449cd9(0x247)];_0x182ee4[_0x449cd9(0x4d8)](_0x130930,_0x3689a1),this[_0x449cd9(0x313)][_0x449cd9(0x1cf)](_0x182ee4);}[_0xcc124c(0x353)](_0x5c28ff){const _0x97e994=_0xcc124c,{memberID:_0x44e9b9}=_0x5c28ff[_0x97e994(0x2a7)],_0x17d5e4=this[_0x97e994(0x247)];_0x17d5e4[_0x97e994(0x3bd)](_0x44e9b9),this[_0x97e994(0x313)]['next'](_0x17d5e4);}[_0xcc124c(0x4b9)](_0x2421d4,_0x22e108){const _0x3dd432=_0xcc124c;var _0x1d2838,_0x33a8d9;const _0x28d6ff=(_0x33a8d9=(_0x1d2838=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x3dd432(0x38f)]))==null?void 0x0:_0x1d2838['getSheetBySheetId'](_0x2421d4))==null?void 0x0:_0x33a8d9['getMergeData']();return(_0x28d6ff==null?void 0x0:_0x28d6ff[_0x3dd432(0x21b)](_0x1c42fa=>_0x49320b[_0x3dd432(0x42d)](_0x1c42fa,_0x22e108)))||_0x22e108;}[_0xcc124c(0x2f1)](){const _0x3d69f4=_0xcc124c,_0x3f5867=new _0x460f88(),_0x408448=Vr(),_0x12533b=()=>{const _0x31d86f=_0x293d;_0x3f5867[_0x31d86f(0x2e2)]();const _0x45e022=(_0x4a18d2,_0x1ba2ba,_0x216461,_0x2e9006)=>{const _0x182b28=_0x31d86f;let _0x1c4ae1=[];switch(_0x4a18d2['id']){case _0x6c2c57[_0x182b28(0x32f)]:{_0x1c4ae1=_0x3751c3(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57[_0x182b28(0x246)]:{_0x1c4ae1=_0x37bd96(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57['InsertColCommandId']:{_0x1c4ae1=_0x2065a2(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57['InsertRangeMoveDownCommandId']:{_0x1c4ae1=_0x31a259(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57[_0x182b28(0x388)]:{_0x1c4ae1=_0xb3c8d5(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57[_0x182b28(0x2c1)]:{_0x1c4ae1=_0x30290c(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57['MoveRangeCommandId']:{_0x1c4ae1=_0x18c972(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57[_0x182b28(0x2fc)]:{_0x1c4ae1=_0x4e8184(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57[_0x182b28(0x4ac)]:{_0x1c4ae1=_0x175627(_0x4a18d2,_0x2e9006);break;}}const _0x214769=_0x1040c2(_0x1c4ae1,_0x2e9006),_0xbad022=this[_0x182b28(0x247)][_0x182b28(0x4e6)](_0x1ba2ba);if(_0xbad022&&_0x214769){const _0x2b3d81={..._0xbad022,'range':_0x214769};this[_0x182b28(0x247)][_0x182b28(0x4d8)](_0x1ba2ba,_0x2b3d81),_0x408448(()=>{const _0x2f6b60=_0x182b28,_0x3bee75=this[_0x2f6b60(0x48c)][_0x2f6b60(0x472)](_0x214769,_0x21e66d=>(_0x3bee75[_0x2f6b60(0x2e2)](),_0x45e022(_0x21e66d,_0x1ba2ba,_0x216461,_0x214769)));_0x3f5867[_0x2f6b60(0x266)](_0x3bee75);});}return{'redos':[],'undos':[]};};this[_0x31d86f(0x247)][_0x31d86f(0x3d5)]((_0x4b4435,_0x537a0a)=>{const _0x394e4d=_0x31d86f,{range:_0x39f5db,sheetID:_0x4ca9ef}=_0x4b4435,_0x234c75=this[_0x394e4d(0x48c)][_0x394e4d(0x472)](_0x39f5db,_0x1e0109=>(_0x234c75['dispose'](),_0x45e022(_0x1e0109,_0x537a0a,_0x4ca9ef,_0x39f5db)));_0x3f5867[_0x394e4d(0x266)](_0x234c75);});};this[_0x3d69f4(0x379)](_0x5b34e8(this['_cursorInfo$'][_0x3d69f4(0x3ac)](()=>{_0x12533b();})));}[_0xcc124c(0x22a)](){const _0x4bc210=_0xcc124c;var _0x1110ad,_0x260e58;if(this[_0x4bc210(0x529)]=!0x0,((_0x1110ad=this[_0x4bc210(0x268)][_0x4bc210(0x270)]())==null?void 0x0:_0x1110ad[_0x4bc210(0x43f)]())!==this['unitID'])return;const _0xed292e=(_0x260e58=this[_0x4bc210(0x2bb)]['get'](_0x5c2add)['getCurrentSelections']())==null?void 0x0:_0x260e58[0x0],_0x3e0240=this[_0x4bc210(0x268)]['getCurrentUnitForType'](_0x4eff1c[_0x4bc210(0x3e5)])['getActiveSheet']();_0xed292e&&_0x3e0240&&this['_updateLocalCursor'](_0x3e0240[_0x4bc210(0x450)](),_0xed292e);}[_0xcc124c(0x3ed)](){const _0x4c442b=_0xcc124c;this[_0x4c442b(0x529)]=!0x1;}};Dt=xr([fe(0x2,_0xa01556(_0x3064b3)),fe(0x3,_0xa01556(Gt)),fe(0x4,_0xa01556(ce)),fe(0x5,_0x4a621b),fe(0x6,_0x4ba546),fe(0x7,_0xa01556(_0x163f70))],Dt);var Fr=Object['defineProperty'],Wr=Object[_0xcc124c(0x3f2)],Gr=(_0x938c9d,_0x76aa43,_0x2077b5,_0x1808f5)=>{for(var _0x44a312=_0x1808f5>0x1?void 0x0:_0x1808f5?Wr(_0x76aa43,_0x2077b5):_0x76aa43,_0xce516e=_0x938c9d['length']-0x1,_0x14d915;_0xce516e>=0x0;_0xce516e--)(_0x14d915=_0x938c9d[_0xce516e])&&(_0x44a312=(_0x1808f5?_0x14d915(_0x76aa43,_0x2077b5,_0x44a312):_0x14d915(_0x44a312))||_0x44a312);return _0x1808f5&&_0x44a312&&Fr(_0x76aa43,_0x2077b5,_0x44a312),_0x44a312;},ut=(_0x4ac348,_0x2f1232)=>(_0x3e945a,_0x2c102e)=>_0x2f1232(_0x3e945a,_0x2c102e,_0x4ac348);let ve=class extends _0xb64757{constructor(_0x4eb8e5,_0x4d0ff1,_0x34aec2){const _0x2e0e0d=_0xcc124c;super(),l(this,_0x2e0e0d(0x3ad),new Map()),l(this,_0x2e0e0d(0x3bc),new _0x3ca740()),(this['_univerInstanceService']=_0x4eb8e5,this[_0x2e0e0d(0x2bb)]=_0x4d0ff1,this['_collabSessionService']=_0x34aec2,this[_0x2e0e0d(0x203)]());}[_0xcc124c(0x2e2)](){const _0x456a75=_0xcc124c;super[_0x456a75(0x2e2)](),this[_0x456a75(0x3bc)][_0x456a75(0x492)](),this['_entities'][_0x456a75(0x3d5)](_0x41c0e0=>_0x41c0e0[_0x456a75(0x2e2)]());}[_0xcc124c(0x453)](_0xb2e58b){const _0x4ca304=_0xcc124c;return this[_0x4ca304(0x3ad)]['has'](_0xb2e58b)?this[_0x4ca304(0x3ad)]['get'](_0xb2e58b)['cursorInfo$']:this[_0x4ca304(0x3bc)][_0x4ca304(0x4f2)](_0x45726b(_0x182e17=>_0x182e17[_0x4ca304(0x38f)]===_0xb2e58b),_0x2b1c92(_0x3eb6b7=>_0x3eb6b7[_0x4ca304(0x34d)]));}[_0xcc124c(0x203)](){const _0x4dc20f=_0xcc124c;this[_0x4dc20f(0x268)][_0x4dc20f(0x3b7)](_0x4eff1c[_0x4dc20f(0x3e5)])[_0x4dc20f(0x4f2)](_0x2cf076(this[_0x4dc20f(0x31d)]))[_0x4dc20f(0x3ac)](async _0x2f8329=>{const _0x4c4d63=_0x4dc20f,_0x5ab3d1=_0x2f8329[_0x4c4d63(0x43f)](),_0x5b0426=await this[_0x4c4d63(0x4c1)](_0x5ab3d1);this['_entityInit$'][_0x4c4d63(0x1cf)](_0x5b0426),this[_0x4c4d63(0x3ad)][_0x4c4d63(0x4d8)](_0x5ab3d1,_0x5b0426);}),this[_0x4dc20f(0x268)][_0x4dc20f(0x3b7)](_0x4eff1c[_0x4dc20f(0x215)])[_0x4dc20f(0x4f2)](_0x2cf076(this[_0x4dc20f(0x31d)]))[_0x4dc20f(0x4f2)](_0x45726b(_0xa3a65d=>!_0xa3a65d[_0x4dc20f(0x43f)]()[_0x4dc20f(0x435)]('__')))[_0x4dc20f(0x3ac)](async _0x9ff05a=>{const _0x40b1f2=_0x4dc20f,_0x32ac25=_0x9ff05a[_0x40b1f2(0x43f)](),_0x46385c=await this[_0x40b1f2(0x336)](_0x32ac25);this[_0x40b1f2(0x3bc)][_0x40b1f2(0x1cf)](_0x46385c),this[_0x40b1f2(0x3ad)][_0x40b1f2(0x4d8)](_0x32ac25,_0x46385c);}),_0x340e15(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4eff1c[_0x4dc20f(0x215)]),this[_0x4dc20f(0x268)][_0x4dc20f(0x43b)](_0x4eff1c['UNIVER_SHEET']))['pipe'](_0x2cf076(this[_0x4dc20f(0x31d)]))[_0x4dc20f(0x3ac)](_0x48e3df=>{const _0xfce194=_0x4dc20f,_0x10f083=_0x48e3df[_0xfce194(0x43f)](),_0x2b095e=this[_0xfce194(0x3ad)][_0xfce194(0x4e6)](_0x10f083);_0x2b095e&&(_0x2b095e[_0xfce194(0x2e2)](),this[_0xfce194(0x3ad)][_0xfce194(0x3bd)](_0x10f083));});}async[_0xcc124c(0x4c1)](_0x87d544){const _0x425d65=_0xcc124c,_0x1dd585=await this[_0x425d65(0x2d0)][_0x425d65(0x2c7)](_0x87d544),_0x236894=this['_injector'][_0x425d65(0x293)](Dt,_0x87d544,_0x1dd585);return _0x236894[_0x425d65(0x28f)](),_0x236894;}async[_0xcc124c(0x336)](_0x28553c){const _0x4afa08=_0xcc124c,_0x4bd2e2=await this[_0x4afa08(0x2d0)]['requireSession'](_0x28553c),_0x48de85=this['_injector'][_0x4afa08(0x293)](Ot,_0x28553c,_0x4bd2e2);return _0x48de85['init'](),_0x48de85;}};ve=Gr([ut(0x0,_0x4a621b),ut(0x1,_0xa01556(_0x3064b3)),ut(0x2,_0xa01556(he))],ve);const $e=0x14,fs=0xc8,dt=0x4,Yr=0x5;function Kr(_0x2c7e1c,_0x59429e){const _0x2fcbbd=_0xcc124c;let {radius:_0x2799af,width:_0x5e6b80,height:_0x4c2034}=_0x59429e;_0x2799af=_0x2799af!=null?_0x2799af:0x0,_0x5e6b80=_0x5e6b80!=null?_0x5e6b80:0x1e,_0x4c2034=_0x4c2034!=null?_0x4c2034:0x1e;let _0x34efa0=0x0,_0x12fa9f=0x0,_0x2e5575=0x0;_0x34efa0=_0x12fa9f=_0x2e5575=Math[_0x2fcbbd(0x259)](_0x2799af,_0x5e6b80/0x2,_0x4c2034/0x2),_0x2c7e1c['beginPath'](),_0x2c7e1c[_0x2fcbbd(0x361)](_0x34efa0,0x0),_0x2c7e1c[_0x2fcbbd(0x2ef)](_0x5e6b80-_0x12fa9f,0x0),_0x2c7e1c[_0x2fcbbd(0x3cb)](_0x5e6b80-_0x12fa9f,_0x12fa9f,_0x12fa9f,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c7e1c['lineTo'](_0x5e6b80,_0x4c2034-_0x2e5575),_0x2c7e1c['arc'](_0x5e6b80-_0x2e5575,_0x4c2034-_0x2e5575,_0x2e5575,0x0,Math['PI']/0x2,!0x1),_0x2c7e1c[_0x2fcbbd(0x2ef)](0x0,_0x4c2034),_0x2c7e1c[_0x2fcbbd(0x2ef)](0x0,_0x34efa0),_0x2c7e1c[_0x2fcbbd(0x3cb)](_0x34efa0,_0x34efa0,_0x34efa0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c7e1c['closePath'](),_0x59429e[_0x2fcbbd(0x357)]&&(_0x2c7e1c[_0x2fcbbd(0x42c)](),_0x2c7e1c[_0x2fcbbd(0x238)]=_0x59429e[_0x2fcbbd(0x357)],_0x59429e[_0x2fcbbd(0x253)]===_0x2fcbbd(0x3f7)?_0x2c7e1c[_0x2fcbbd(0x357)](_0x2fcbbd(0x3f7)):_0x2c7e1c['fill'](),_0x2c7e1c[_0x2fcbbd(0x519)]());}class st extends _0x20dfdf{constructor(_0x4d491c,_0x3c000e){const _0x124ca0=_0xcc124c;super(_0x4d491c,_0x3c000e),l(this,_0x124ca0(0x50f)),l(this,'text'),(this[_0x124ca0(0x50f)]=_0x3c000e==null?void 0x0:_0x3c000e[_0x124ca0(0x50f)],this['text']=_0x3c000e==null?void 0x0:_0x3c000e[_0x124ca0(0x4cd)]);}static['drawWith'](_0xeacb8e,_0x5b0562){const _0x3c6f90=_0xcc124c,{text:_0xbfd343,color:_0x4e59e0}=_0x5b0562;_0xeacb8e['save'](),_0xeacb8e[_0x3c6f90(0x487)]=_0x3c6f90(0x530);const _0x40e6b6=_0xeacb8e[_0x3c6f90(0x459)](_0xbfd343)['width'],_0x1f66b4=Math[_0x3c6f90(0x259)](_0x40e6b6+0x2*dt,fs);Kr(_0xeacb8e,{'height':$e,'radius':0x4,'width':_0x1f66b4,'fill':_0x4e59e0,'evented':!0x1}),_0xeacb8e['fillStyle']=_0x3c6f90(0x411);const _0x41034a=dt,_0x29e5f9=$e-Yr,_0x4c3433=fs-0x2*dt;if(_0x40e6b6>_0x4c3433){let _0xbaec6e='',_0x143a4b=0x0;for(const _0xab30ea of _0xbfd343){const _0x2e4208=_0xeacb8e[_0x3c6f90(0x459)](_0xab30ea)[_0x3c6f90(0x490)];if(_0x143a4b+_0x2e4208<=_0x4c3433-_0xeacb8e['measureText'](_0x3c6f90(0x4b8))[_0x3c6f90(0x490)])_0xbaec6e+=_0xab30ea,_0x143a4b+=_0x2e4208;else{_0xbaec6e+=_0x3c6f90(0x4b8);break;}}_0xeacb8e[_0x3c6f90(0x292)](_0xbaec6e,_0x41034a,_0x29e5f9);}else _0xeacb8e[_0x3c6f90(0x292)](_0xbfd343,_0x41034a,_0x29e5f9);_0xeacb8e[_0x3c6f90(0x519)]();}[_0xcc124c(0x483)](_0x258159){st['drawWith'](_0x258159,this);}}const mt=_0xcc124c(0x4a1),Xr=_0xcc124c(0x36a),qr=_0xcc124c(0x4cf),we=0x6,Jr=1.5,ft=0x4,zr=1.5,Zr='rgba(255,\x20255,\x20255,\x200.01)';class gs{constructor(_0x8c637a,_0x1f6e2a,_0x3438fa,_0xcfee2b){const _0x4fd351=_0xcc124c;l(this,_0x4fd351(0x2c4),[]),l(this,_0x4fd351(0x438),null),l(this,'_textBubble',null),l(this,_0x4fd351(0x252),null),l(this,_0x4fd351(0x1b5),null),l(this,'_eventUnsubscribe',null),(this[_0x4fd351(0x399)]=_0x8c637a,this[_0x4fd351(0x2ba)]=_0x1f6e2a,this[_0x4fd351(0x409)]=_0x3438fa,this[_0x4fd351(0x339)]=_0xcfee2b,this[_0x4fd351(0x342)]());}set['_hover'](_0x3b75ef){const _0x5ab632=_0xcc124c;_0x3b75ef?(this[_0x5ab632(0x252)]&&this[_0x5ab632(0x252)][_0x5ab632(0x3c4)](),this[_0x5ab632(0x439)]&&this[_0x5ab632(0x439)]['show']()):(this['_anchorDot']&&this['_anchorDot']['show'](),this['_textBubble']&&this['_textBubble'][_0x5ab632(0x3c4)]());}['dispose'](){const _0x436d6a=_0xcc124c;for(const _0x4ac713 of this[_0x436d6a(0x2c4)])_0x4ac713[_0x436d6a(0x2e2)]();this['_textBubble']&&this[_0x436d6a(0x439)]['dispose'](),this[_0x436d6a(0x252)]&&this['_anchorDot'][_0x436d6a(0x2e2)](),this[_0x436d6a(0x438)]&&this[_0x436d6a(0x438)][_0x436d6a(0x2e2)](),this[_0x436d6a(0x4cb)]&&this[_0x436d6a(0x4cb)]();}[_0xcc124c(0x342)](){const _0x414212=_0xcc124c;var _0xf49df3;const {_docSkeleton:_0x1fb415,_document:_0x45ee4e}=this,{color:_0x65cce1,name:_0x5e6d5d,ranges:_0x43dade}=this[_0x414212(0x399)],_0x26235f=_0x45ee4e[_0x414212(0x249)](),{docsLeft:_0x539a9f,docsTop:_0x277257}=_0x26235f,_0x69a54f=new _0x14989d(_0x26235f,_0x1fb415);for(const {startOffset:_0x3ee9e4,endOffset:_0x339d4f,collapsed:_0x6a7519,isActive:_0x190e81}of _0x43dade){const _0x4818d2=_0x1fb415['findNodePositionByCharIndex'](_0x3ee9e4),_0x2e9358=_0x1fb415[_0x414212(0x39e)](_0x339d4f);if(_0x190e81){const {contentBoxPointGroup:_0x4bbb6d}=_0x69a54f[_0x414212(0x226)](_0x2e9358,_0x2e9358);if(_0x4bbb6d[_0x414212(0x236)]===0x0)continue;this[_0x414212(0x4de)](_0x65cce1,_0x4bbb6d,_0x539a9f,_0x277257,_0x5e6d5d),this[_0x414212(0x4cb)]=this['_handleHover']();}if(!_0x6a7519&&_0x4818d2&&_0x2e9358){if(_0x3886e9(_0x4818d2,_0x2e9358)){const _0x1cb37c=new _0x2cbc8e(_0x26235f,_0x1fb415),{pointGroup:_0x30f925}=(_0xf49df3=_0x1cb37c[_0x414212(0x226)](_0x4818d2,_0x2e9358))!=null?_0xf49df3:{};if(_0x30f925==null||_0x30f925[_0x414212(0x236)]===0x0)continue;this[_0x414212(0x20e)](_0x65cce1,_0x30f925,_0x539a9f,_0x277257);}else{const {contentBoxPointGroup:_0x178526}=_0x69a54f[_0x414212(0x226)](_0x4818d2,_0x2e9358);if(_0x178526[_0x414212(0x236)]===0x0)continue;this[_0x414212(0x1eb)](_0x65cce1,_0x178526,_0x539a9f,_0x277257);}}}}[_0xcc124c(0x4de)](_0x26dcd0,_0x1ddb2b,_0x87a07d,_0x126f38,_0x54616c){const _0x16a017=_0xcc124c,_0x2bc328=this['_getAnchorBounding'](_0x1ddb2b),{left:_0x40682d,top:_0x48d2cb,height:_0x333d9f}=_0x2bc328,_0x13a7ca=this[_0x16a017(0x44f)](),_0x4befda=zr/_0x13a7ca,_0x40157c=new _0x178a86(mt+_0xe487b1['generateRandomId'](we),{'left':_0x40682d+_0x87a07d-_0x4befda,'top':_0x48d2cb+_0x126f38,'height':_0x333d9f,'width':Jr,'fill':_0x26dcd0||_0x156ca5(_0x2c8d44[_0x16a017(0x413)],0x0),'strokeWidth':_0x4befda,'stroke':Zr,'evented':!0x0});this[_0x16a017(0x438)]=_0x40157c,this[_0x16a017(0x2ba)][_0x16a017(0x4a5)](_0x40157c,_0x13bc1d);const _0x45daf3=new _0x178a86(mt+_0xe487b1[_0x16a017(0x32e)](we),{'left':_0x40682d+_0x87a07d-_0x4befda,'top':_0x48d2cb+_0x126f38-ft/0x2,'height':ft,'width':ft,'fill':_0x26dcd0||_0x156ca5(_0x2c8d44[_0x16a017(0x413)],0x0),'strokeWidth':0x0,'stroke':_0x26dcd0||_0x156ca5(_0x2c8d44[_0x16a017(0x413)],0x0),'evented':!0x1});this[_0x16a017(0x252)]=_0x45daf3,this[_0x16a017(0x2ba)][_0x16a017(0x4a5)](_0x45daf3,_0x13bc1d);const _0x1a997d=new st(mt+_0xe487b1[_0x16a017(0x32e)](we),{'left':_0x40682d+_0x87a07d-_0x4befda,'top':_0x48d2cb+_0x126f38-$e,'text':_0x54616c,'color':_0x26dcd0});this[_0x16a017(0x439)]=_0x1a997d,this[_0x16a017(0x2ba)]['addObject'](_0x1a997d,_0x13bc1d),this[_0x16a017(0x3cf)]=!0x1;}[_0xcc124c(0x1c4)](){const _0x4b67d3=_0xcc124c,_0x3039d6=this[_0x4b67d3(0x438)]['onPointerEnter$'][_0x4b67d3(0x242)](()=>{const _0x46315f=_0x4b67d3;this[_0x46315f(0x3cf)]=!0x0;}),_0x37676c=this[_0x4b67d3(0x438)][_0x4b67d3(0x4a3)]['subscribeEvent'](()=>{const _0x32e610=_0x4b67d3;this['_hideTimer']&&clearTimeout(this[_0x32e610(0x1b5)]),this['_hideTimer']=setTimeout(()=>{const _0x205631=_0x32e610;this[_0x205631(0x3cf)]=!0x1;},0x7d0);});return()=>{const _0x1fc533=_0x4b67d3;_0x3039d6['unsubscribe'](),_0x37676c[_0x1fc533(0x35a)]();};}[_0xcc124c(0x1eb)](_0x245a9a,_0x4cfdca,_0x485ac6,_0x28532e){const _0x16e1bb=_0xcc124c,_0x3c5b1c=new _0x2ada55(_0x245a9a)[_0x16e1bb(0x4c3)](0.2)[_0x16e1bb(0x396)](),_0x5aa432=new _0x2ec8af(Xr+_0xe487b1['generateRandomId'](we),{'pointsGroup':_0x4cfdca,'fill':_0x3c5b1c||_0x156ca5(_0x2c8d44['black'],0.2),'left':_0x485ac6,'top':_0x28532e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x16e1bb(0x4c7)](_0x5aa432),this[_0x16e1bb(0x2ba)][_0x16e1bb(0x4a5)](_0x5aa432,_0x13bc1d);}[_0xcc124c(0x20e)](_0xf674d9,_0x1b4e86,_0xa4ad53,_0x5637e4){const _0x310c2e=_0xcc124c,_0x4ab0c7=new _0x2ada55(_0xf674d9)['setAlpha'](0.2)['toRgbString'](),_0x48c259=new _0x2ec8af(qr+_0xe487b1[_0x310c2e(0x32e)](we),{'pointsGroup':_0x1b4e86,'fill':_0x4ab0c7||_0x156ca5(_0x2c8d44[_0x310c2e(0x413)],0.2),'left':_0xa4ad53,'top':_0x5637e4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x310c2e(0x2c4)]['push'](_0x48c259),this[_0x310c2e(0x2ba)][_0x310c2e(0x4a5)](_0x48c259,_0x13bc1d);}[_0xcc124c(0x508)](_0x128e5a){const _0x1a1620=_0x128e5a[0x0],_0x310eac=_0x1a1620[0x0],_0x11d91c=_0x1a1620[0x2],{x:_0x227f1a,y:_0x159be9}=_0x310eac,{x:_0x372b5a,y:_0xec33bf}=_0x11d91c;return{'left':_0x227f1a,'top':_0x159be9,'width':_0x372b5a-_0x227f1a,'height':_0xec33bf-_0x159be9};}[_0xcc124c(0x44f)](){const _0x4c0c69=_0xcc124c,{scaleX:_0x4ae92f,scaleY:_0x1a2868}=this['_scene'][_0x4c0c69(0x210)]();return Math[_0x4c0c69(0x48b)](_0x4ae92f,_0x1a2868);}}var Qr=Object['defineProperty'],eo=Object[_0xcc124c(0x3f2)],to=(_0x5d65d4,_0xdbbc21,_0x46d0b0,_0x5c9125)=>{const _0x5de87f=_0xcc124c;for(var _0x168973=_0x5c9125>0x1?void 0x0:_0x5c9125?eo(_0xdbbc21,_0x46d0b0):_0xdbbc21,_0x450a92=_0x5d65d4[_0x5de87f(0x236)]-0x1,_0x67f65c;_0x450a92>=0x0;_0x450a92--)(_0x67f65c=_0x5d65d4[_0x450a92])&&(_0x168973=(_0x5c9125?_0x67f65c(_0xdbbc21,_0x46d0b0,_0x168973):_0x67f65c(_0x168973))||_0x168973);return _0x5c9125&&_0x168973&&Qr(_0xdbbc21,_0x46d0b0,_0x168973),_0x168973;},ke=(_0x4abecf,_0x1518cd)=>(_0x8c497,_0x24145f)=>_0x1518cd(_0x8c497,_0x24145f,_0x4abecf);let wt=class extends _0xb64757{constructor(_0x3a526e,_0x3c4a42,_0x597f87,_0x3d05d2,_0x6128f6){const _0x206d85=_0xcc124c;super(),l(this,_0x206d85(0x3a2),[]),l(this,'_cursors',[]),(this[_0x206d85(0x3ea)]=_0x3a526e,this[_0x206d85(0x402)]=_0x3c4a42,this[_0x206d85(0x24d)]=_0x597f87,this[_0x206d85(0x232)]=_0x3d05d2,this[_0x206d85(0x21f)]=_0x6128f6,this['_init']());}[_0xcc124c(0x203)](){const _0x23a2d0=_0xcc124c,_0x39ead4=this[_0x23a2d0(0x3ea)][_0x23a2d0(0x49a)],_0x372cd3=this[_0x23a2d0(0x402)];this[_0x23a2d0(0x379)](_0x1395c9([this[_0x23a2d0(0x24d)]['getCollabCursors$'](_0x39ead4),this[_0x23a2d0(0x21f)][_0x23a2d0(0x2c2)]])['pipe'](_0x493a42(([_0x15d082,_0x2f0f91])=>({'skeleton':_0x372cd3['getSkeleton'](),'cursors':[..._0x15d082[_0x23a2d0(0x373)]()][_0x23a2d0(0x2b4)](_0x512095=>({..._0x512095,'color':_0x2f0f91[_0x512095[_0x23a2d0(0x50f)]]}))})))[_0x23a2d0(0x3ac)](_0x185413=>{const _0x49da39=_0x23a2d0;if(this[_0x49da39(0x38c)](),_0x185413){const {skeleton:_0x33064e,cursors:_0x382333}=_0x185413;this[_0x49da39(0x41b)](_0x33064e,_0x382333);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0xcc124c(0x41b)](_0x51adf9,_0x45d5ad){const _0x404566=_0xcc124c,{scene:_0x332e79,mainComponent:_0x1130c6}=this[_0x404566(0x3ea)],_0x578ed9=_0x45d5ad[_0x404566(0x2f3)](_0xaa32cd=>new gs(_0xaa32cd,_0x332e79,_0x51adf9,_0x1130c6));this['_cursorShapes']=_0x578ed9,this[_0x404566(0x1fd)]=_0x45d5ad;}[_0xcc124c(0x235)](){const _0x3f01d2=_0xcc124c;this[_0x3f01d2(0x38c)]();const {scene:_0x9625f8,mainComponent:_0x59844f}=this[_0x3f01d2(0x3ea)],_0x121586=this[_0x3f01d2(0x402)][_0x3f01d2(0x375)](),_0x19eb92=this['_cursors'][_0x3f01d2(0x2f3)](_0x3815e2=>new gs(_0x3815e2,_0x9625f8,_0x121586,_0x59844f));this[_0x3f01d2(0x3a2)]=_0x19eb92;}[_0xcc124c(0x38c)](){const _0x562999=_0xcc124c;this[_0x562999(0x3a2)]['forEach'](_0x21cf08=>_0x21cf08[_0x562999(0x2e2)]()),this[_0x562999(0x3a2)]=[];}[_0xcc124c(0x415)](){const _0x34a6ac=_0xcc124c,_0x1e9636=[_0x5b90d3['id']];this['disposeWithMe'](this[_0x34a6ac(0x232)][_0x34a6ac(0x3d2)](_0x16082d=>{const _0x26e5c8=_0x34a6ac;_0x1e9636[_0x26e5c8(0x47d)](_0x16082d['id'])&&_0x16082d[_0x26e5c8(0x20f)][_0x26e5c8(0x49a)]===this[_0x26e5c8(0x3ea)][_0x26e5c8(0x49a)]&&this[_0x26e5c8(0x235)]();}));}[_0xcc124c(0x511)](){const _0x5903b1=_0xcc124c;this['disposeWithMe'](_0x186b9e(this[_0x5903b1(0x3ea)]['engine']['onTransformChange$'])[_0x5903b1(0x4f2)](_0x117995(_0x598b90=>_0x598b90[_0x5903b1(0x23d)]===_0x573d10['resize']),_0x4d59a9(0x10))[_0x5903b1(0x3ac)](()=>{const _0x4a5fae=_0x5903b1;this[_0x4a5fae(0x235)]();}));}};wt=to([ke(0x1,_0xa01556(_0x493cbc)),ke(0x2,_0xa01556(ve)),ke(0x3,_0x4ba546),ke(0x4,_0xa01556(_0x2d99d8))],wt);const so=0x1,io=1.5;class no extends _0x20dfdf{constructor(_0xa6cd74,_0x5566cc){const _0x117ce5=_0xcc124c;super(_0xa6cd74,_0x5566cc),l(this,'_color'),l(this,_0x117ce5(0x44a),!0x1),l(this,_0x117ce5(0x311)),l(this,_0x117ce5(0x4b3),''),l(this,_0x117ce5(0x332),_0x117ce5(0x418)),l(this,'_backgroundColor'),(_0x5566cc&&this[_0x117ce5(0x473)](_0x5566cc),this[_0x117ce5(0x257)]['subscribeEvent'](()=>this[_0x117ce5(0x473)]({'hovered':!0x0})),this['onPointerLeave$'][_0x117ce5(0x242)](()=>this[_0x117ce5(0x473)]({'hovered':!0x1})));}['setShapeProps'](_0x5128a9){const _0x2fa2e4=_0xcc124c;var _0x47c830,_0x41aaa0,_0x512aed,_0x38d61c,_0x353014,_0x13d2ec;this[_0x2fa2e4(0x348)]=(_0x47c830=_0x5128a9['color'])!=null?_0x47c830:this[_0x2fa2e4(0x348)],this[_0x2fa2e4(0x44a)]=(_0x41aaa0=_0x5128a9[_0x2fa2e4(0x425)])!=null?_0x41aaa0:this['_hovered'],this[_0x2fa2e4(0x311)]=(_0x512aed=_0x5128a9[_0x2fa2e4(0x3e2)])!=null?_0x512aed:this[_0x2fa2e4(0x311)],this[_0x2fa2e4(0x4b3)]=(_0x38d61c=_0x5128a9[_0x2fa2e4(0x2d1)])!=null?_0x38d61c:this[_0x2fa2e4(0x4b3)],this[_0x2fa2e4(0x332)]=(_0x353014=_0x5128a9[_0x2fa2e4(0x33f)])!=null?_0x353014:this[_0x2fa2e4(0x332)],this['_backgroundColor']=(_0x13d2ec=_0x5128a9[_0x2fa2e4(0x47f)])!=null?_0x13d2ec:this['_backgroundColor'],this[_0x2fa2e4(0x4c4)]({'width':_0x5128a9[_0x2fa2e4(0x490)],'height':_0x5128a9[_0x2fa2e4(0x52f)]});}['onMouseMove'](_0xe4f001){const _0x10e369=_0xcc124c,{row:_0x324f4b,column:_0x4a8ad1}=_0xe4f001;if(_0x324f4b>=this['_range'][_0x10e369(0x4dc)]&&_0x324f4b<=this[_0x10e369(0x311)][_0x10e369(0x1e4)]&&_0x4a8ad1>=this[_0x10e369(0x311)][_0x10e369(0x204)]&&_0x4a8ad1<=this['_range'][_0x10e369(0x2f6)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x10e369(0x473)]({'hovered':!0x1});}[_0xcc124c(0x262)](_0x5e8b99){return!0x1;}[_0xcc124c(0x483)](_0x59836b){const _0x4ac767=_0xcc124c;_0x178a86[_0x4ac767(0x3c2)](_0x59836b,{'width':this[_0x4ac767(0x490)],'height':this['height'],'strokeWidth':io,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4ac767(0x485)]}),this[_0x4ac767(0x44a)]&&(_0x59836b[_0x4ac767(0x42c)](),_0x59836b[_0x4ac767(0x1f0)](0x1,0x0,0x0,0x1,this[_0x4ac767(0x490)],this['_labelPosition']===_0x4ac767(0x436)?0x0:-$e),st[_0x4ac767(0x3c2)](_0x59836b,{'text':this[_0x4ac767(0x4b3)],'color':this[_0x4ac767(0x348)]}),_0x59836b[_0x4ac767(0x519)]());}}var ro=Object[_0xcc124c(0x2ad)],oo=Object[_0xcc124c(0x3f2)],ao=(_0x5e1dc5,_0x4eb521,_0x36bcfd,_0x2ff1a1)=>{const _0x20f40f=_0xcc124c;for(var _0x53d049=_0x2ff1a1>0x1?void 0x0:_0x2ff1a1?oo(_0x4eb521,_0x36bcfd):_0x4eb521,_0x2540c4=_0x5e1dc5[_0x20f40f(0x236)]-0x1,_0x2f7dda;_0x2540c4>=0x0;_0x2540c4--)(_0x2f7dda=_0x5e1dc5[_0x2540c4])&&(_0x53d049=(_0x2ff1a1?_0x2f7dda(_0x4eb521,_0x36bcfd,_0x53d049):_0x2f7dda(_0x53d049))||_0x53d049);return _0x2ff1a1&&_0x53d049&&ro(_0x4eb521,_0x36bcfd,_0x53d049),_0x53d049;},gt=(_0x44abb2,_0x29e919)=>(_0x3e3921,_0x32554b)=>_0x29e919(_0x3e3921,_0x32554b,_0x44abb2);const co=0x1389;let Pt=class extends _0xb64757{constructor(_0x5b3e29,_0x46123f,_0x24b28e,_0x38ea30){const _0x2050c5=_0xcc124c;super(),l(this,_0x2050c5(0x1fd),new Set()),l(this,_0x2050c5(0x34e),null),(this['_context']=_0x5b3e29,this[_0x2050c5(0x4b4)]=_0x46123f,this[_0x2050c5(0x24d)]=_0x24b28e,this[_0x2050c5(0x21f)]=_0x38ea30,this[_0x2050c5(0x203)]());}['_init'](){const _0x3ea65e=_0xcc124c;this[_0x3ea65e(0x4b4)][_0x3ea65e(0x23b)]['pipe'](_0x274b03(this[_0x3ea65e(0x31d)]),_0x499aa8(_0x219e68=>{const _0x12201d=_0x3ea65e;if(_0x219e68){const _0x5f26eb=_0x219e68['sheetId'];return _0x1395c9(this[_0x12201d(0x24d)][_0x12201d(0x453)](this['_context'][_0x12201d(0x49a)]),this['_themeService'][_0x12201d(0x2c2)])[_0x12201d(0x4f2)](_0x493a42(([_0xcaa312,_0x3ad0e7])=>{const _0xf0862d=_0x12201d,_0x3a8f09=new Map();return _0xcaa312[_0xf0862d(0x3d5)]((_0x837f5b,_0x31e3bc)=>{const _0x1d8111=_0xf0862d;if(_0x837f5b[_0x1d8111(0x4f0)]===_0x5f26eb){const _0x2cec18={..._0x837f5b};_0x2cec18[_0x1d8111(0x50f)]=_0x3ad0e7[_0x837f5b['color']],_0x3a8f09['set'](_0x31e3bc,_0x2cec18);}}),{'skeleton':_0x219e68,'cursors':_0x3a8f09};}));}return _0x226e5d({'skeleton':null,'cursors':new Map()});}))[_0x3ea65e(0x3ac)](({skeleton:_0x411850,cursors:_0x18b1bc})=>{const _0x15b584=_0x3ea65e;this[_0x15b584(0x38c)](),_0x411850&&this[_0x15b584(0x41b)](_0x411850,_0x18b1bc);}),this[_0x3ea65e(0x4b4)][_0x3ea65e(0x23b)][_0x3ea65e(0x3ac)](_0xe4df3d=>{const _0x2e30a6=_0x3ea65e;if(_0xe4df3d==null)return;const {skeleton:_0x5209f4}=_0xe4df3d,{scene:_0x2196b2}=this[_0x2e30a6(0x3ea)];_0x2196b2[_0x2e30a6(0x3d6)][_0x2e30a6(0x242)](_0x1c12c5(_0x310504=>{const _0x3c6812=_0x2e30a6;var _0x52b022,_0x57b459;const {offsetX:_0x1f5318,offsetY:_0x476fc6}=_0x310504,{x:_0x4cad2c,y:_0x338853}=_0x2196b2['getRelativeToViewportCoord'](_0xf225ea[_0x3c6812(0x1d7)]([_0x1f5318,_0x476fc6])),{scaleX:_0x426f59,scaleY:_0x2a401a}=_0x2196b2[_0x3c6812(0x210)](),_0x98adb3=_0x2196b2[_0x3c6812(0x1d3)](_0x19094e['VIEW_MAIN']),_0x4071e1=_0x2196b2[_0x3c6812(0x34a)](_0xf225ea[_0x3c6812(0x1d7)]([_0x4cad2c,_0x338853]),_0x98adb3),_0x448e08=_0x5209f4[_0x3c6812(0x214)](_0x1f5318,_0x476fc6,_0x426f59,_0x2a401a,_0x4071e1);((_0x52b022=this['_lastPointer'])==null?void 0x0:_0x52b022[_0x3c6812(0x34f)])===_0x448e08['column']&&((_0x57b459=this[_0x3c6812(0x34e)])==null?void 0x0:_0x57b459[_0x3c6812(0x341)])===_0x448e08['row']||this['_cursors'][_0x3c6812(0x3d5)](_0x571eda=>{const _0x3e536c=_0x3c6812;_0x571eda[_0x3e536c(0x2de)](_0x448e08);});},0x64));});}[_0xcc124c(0x41b)](_0x288933,_0x315b8b){const _0x9b345b=_0xcc124c;var _0x5613b7;const _0x23ba24=(_0x5613b7=this[_0x9b345b(0x4b4)][_0x9b345b(0x316)]())==null?void 0x0:_0x5613b7[_0x9b345b(0x4c9)];if(!_0x23ba24)return;const _0x5c3b34=this[_0x9b345b(0x25e)]();if(!_0x5c3b34)return;this[_0x9b345b(0x1fd)]['forEach'](_0x2bcf5f=>{const _0x2103b1=_0x9b345b;_0x2bcf5f[_0x2103b1(0x39b)]();});const {scene:_0x3f97df}=_0x5c3b34,_0x2a6863=ho(Array['from'](_0x315b8b[_0x9b345b(0x373)]()))[_0x9b345b(0x2f3)](_0x5a9e3c=>{const _0x20fbdd=_0x9b345b,{color:_0x710c42,range:_0x123c39,name:_0x46c456,selection:_0x35b52b,sheetID:_0x20822c}=_0x5a9e3c,{startColumn:_0x527daf,startRow:_0x76905c,endColumn:_0x339cbb,endRow:_0x127c35}=_0x123c39,_0x57face=_0x1b4f2(_0x76905c,_0x527daf,_0x3f97df,_0x23ba24),_0x2c2bd6=_0x1b4f2(_0x127c35,_0x339cbb,_0x3f97df,_0x23ba24),{columnHeaderHeightAndMarginTop:_0x43f190}=_0x23ba24,{startX:_0x30e6fa,startY:_0x5640f6}=_0x57face,{endX:_0x18de36,endY:_0x1b9207}=_0x2c2bd6,_0x3db96d=_0x18de36-_0x30e6fa,_0xf218e=_0x1b9207-_0x5640f6,_0x209bef={'labelPosition':_0x5640f6-_0x43f190>=$e?_0x20fbdd(0x418):_0x20fbdd(0x436),'sheetID':_0x20822c,'range':_0x123c39,'color':_0x710c42,'name':_0x46c456,'selection':_0x35b52b,'left':_0x30e6fa,'top':_0x5640f6,'width':_0x3db96d,'height':_0xf218e,'evented':!0x1,'zIndex':co};return new no(_0x46c456,_0x209bef);});_0x3f97df[_0x9b345b(0x45a)](_0x2a6863,so),this[_0x9b345b(0x1fd)]=new Set(_0x2a6863);}['_removeCollabCursors'](){const _0x365b5a=_0xcc124c;var _0x1e8f17;(_0x1e8f17=this[_0x365b5a(0x1fd)])==null||_0x1e8f17['forEach'](_0xa83025=>_0xa83025[_0x365b5a(0x2e2)]());}[_0xcc124c(0x25e)](){const _0x2803ff=_0xcc124c;return _0x19d902(this[_0x2803ff(0x3ea)][_0x2803ff(0x220)],this[_0x2803ff(0x3ea)]);}};Pt=ao([gt(0x1,_0xa01556(_0x347254)),gt(0x2,_0xa01556(ve)),gt(0x3,_0xa01556(_0x2d99d8))],Pt);function ho(_0x1a86f2){const _0x166953=_0xcc124c,_0x40e5c8=new Map();return _0x1a86f2[_0x166953(0x3d5)](_0x1f8e9d=>{const _0x279dd2=_0x166953;if(_0x40e5c8[_0x279dd2(0x449)](_0x1f8e9d[_0x279dd2(0x286)])){const _0x38b6ff=_0x40e5c8[_0x279dd2(0x4e6)](_0x1f8e9d['selection']);_0x38b6ff['name']+=',\x20'+_0x1f8e9d[_0x279dd2(0x2d1)];}else _0x40e5c8[_0x279dd2(0x4d8)](_0x1f8e9d[_0x279dd2(0x286)],_0x1f8e9d);}),Array['from'](_0x40e5c8[_0x166953(0x373)]());}var N=function(){const _0x44d036=_0xcc124c;return N=Object[_0x44d036(0x3ba)]||function(_0x5d028d){const _0x429063=_0x44d036;for(var _0x3874a4,_0x3aeadc=0x1,_0x5f2a5c=arguments[_0x429063(0x236)];_0x3aeadc<_0x5f2a5c;_0x3aeadc++){_0x3874a4=arguments[_0x3aeadc];for(var _0x1d7f65 in _0x3874a4)Object[_0x429063(0x471)][_0x429063(0x1b6)][_0x429063(0x231)](_0x3874a4,_0x1d7f65)&&(_0x5d028d[_0x1d7f65]=_0x3874a4[_0x1d7f65]);}return _0x5d028d;},N[_0x44d036(0x39a)](this,arguments);},lo=function(_0x34353,_0x2a413f){const _0x2c64b4=_0xcc124c;var _0x4db7fa={};for(var _0x3f126b in _0x34353)Object[_0x2c64b4(0x471)]['hasOwnProperty']['call'](_0x34353,_0x3f126b)&&_0x2a413f[_0x2c64b4(0x37d)](_0x3f126b)<0x0&&(_0x4db7fa[_0x3f126b]=_0x34353[_0x3f126b]);if(_0x34353!=null&&typeof Object[_0x2c64b4(0x49f)]==_0x2c64b4(0x3a7)){for(var _0x41cfb9=0x0,_0x3f126b=Object[_0x2c64b4(0x49f)](_0x34353);_0x41cfb9<_0x3f126b[_0x2c64b4(0x236)];_0x41cfb9++)_0x2a413f[_0x2c64b4(0x37d)](_0x3f126b[_0x41cfb9])<0x0&&Object[_0x2c64b4(0x471)]['propertyIsEnumerable']['call'](_0x34353,_0x3f126b[_0x41cfb9])&&(_0x4db7fa[_0x3f126b[_0x41cfb9]]=_0x34353[_0x3f126b[_0x41cfb9]]);}return _0x4db7fa;},Yt=_0x1650df(function(_0x3c6381,_0x385680){const _0x498af3=_0xcc124c;var _0x39a783=_0x3c6381['icon'],_0x213156=_0x3c6381['id'],_0x56f899=_0x3c6381[_0x498af3(0x46a)],_0xb06d9=_0x3c6381['extend'],_0x2f2f06=lo(_0x3c6381,[_0x498af3(0x3b8),'id',_0x498af3(0x46a),_0x498af3(0x2f5)]),_0x29d596=_0x498af3(0x478)[_0x498af3(0x1d0)](_0x213156,'\x20')[_0x498af3(0x1d0)](_0x56f899||'')[_0x498af3(0x47c)](),_0x445a1b=_0x2d2ac6('_'[_0x498af3(0x1d0)](mo()));return Xs(_0x39a783,''[_0x498af3(0x1d0)](_0x213156),{'defIds':_0x39a783[_0x498af3(0x29d)],'idSuffix':_0x445a1b[_0x498af3(0x4e2)]},N({'ref':_0x385680,'className':_0x29d596},_0x2f2f06),_0xb06d9);});function Xs(_0x51859e,_0x416acc,_0x2d0ae1,_0x50eb07,_0x44af62){const _0x29f3cc=_0xcc124c;return _0x3c7df6(_0x51859e[_0x29f3cc(0x28d)],N(N({'key':_0x416acc},_o(_0x51859e,_0x2d0ae1,_0x44af62)),_0x50eb07),(uo(_0x51859e,_0x2d0ae1)[_0x29f3cc(0x2f7)]||[])[_0x29f3cc(0x2f3)](function(_0x1bbb17,_0x12e4ba){const _0x537445=_0x29f3cc;return Xs(_0x1bbb17,''[_0x537445(0x1d0)](_0x416acc,'-')[_0x537445(0x1d0)](_0x51859e['tag'],'-')['concat'](_0x12e4ba),_0x2d0ae1,void 0x0,_0x44af62);}));}function _o(_0x5ee06f,_0x306e82,_0x4b0df2){const _0x4ba4f7=_0xcc124c;var _0x51cad0=N({},_0x5ee06f['attrs']);_0x4b0df2!=null&&_0x4b0df2[_0x4ba4f7(0x2fd)]&&_0x51cad0[_0x4ba4f7(0x357)]==='colorChannel1'&&(_0x51cad0[_0x4ba4f7(0x357)]=_0x4b0df2[_0x4ba4f7(0x2fd)]);var _0x51a113=_0x306e82[_0x4ba4f7(0x29d)];return!_0x51a113||_0x51a113[_0x4ba4f7(0x236)]===0x0||(_0x5ee06f['tag']===_0x4ba4f7(0x300)&&_0x51cad0['xlink:href']&&(_0x51cad0[_0x4ba4f7(0x309)]=_0x51cad0[_0x4ba4f7(0x309)]+_0x306e82[_0x4ba4f7(0x4fe)]),Object[_0x4ba4f7(0x229)](_0x51cad0)[_0x4ba4f7(0x3d5)](function(_0x2f4549){const _0x2f2fd4=_0x4ba4f7;var _0x5c9fe3=_0x2f4549[0x0],_0xf3a339=_0x2f4549[0x1];typeof _0xf3a339==_0x2f2fd4(0x500)&&(_0x51cad0[_0x5c9fe3]=_0xf3a339[_0x2f2fd4(0x319)](/url\(#(.*)\)/,_0x2f2fd4(0x2b2)[_0x2f2fd4(0x1d0)](_0x306e82[_0x2f2fd4(0x4fe)],')')));})),_0x51cad0;}function uo(_0x14c2d5,_0x2ffbab){const _0xbfc58f=_0xcc124c;var _0x588c7c,_0x4d20f2=_0x2ffbab['defIds'];return!_0x4d20f2||_0x4d20f2['length']===0x0?_0x14c2d5:_0x14c2d5[_0xbfc58f(0x28d)]===_0xbfc58f(0x22d)&&(!((_0x588c7c=_0x14c2d5[_0xbfc58f(0x2f7)])===null||_0x588c7c===void 0x0)&&_0x588c7c[_0xbfc58f(0x236)])?N(N({},_0x14c2d5),{'children':_0x14c2d5[_0xbfc58f(0x2f7)][_0xbfc58f(0x2f3)](function(_0x1743df){const _0x1e9673=_0xbfc58f;return typeof _0x1743df[_0x1e9673(0x1c1)]['id']==_0x1e9673(0x500)&&_0x4d20f2&&_0x4d20f2[_0x1e9673(0x37d)](_0x1743df[_0x1e9673(0x1c1)]['id'])>-0x1?N(N({},_0x1743df),{'attrs':N(N({},_0x1743df[_0x1e9673(0x1c1)]),{'id':_0x1743df[_0x1e9673(0x1c1)]['id']+_0x2ffbab[_0x1e9673(0x4fe)]})}):_0x1743df;})}):_0x14c2d5;}function mo(){const _0x3ac989=_0xcc124c;return Math[_0x3ac989(0x2f8)]()['toString'](0x24)[_0x3ac989(0x51f)](0x2,0x8);}Yt[_0xcc124c(0x442)]=_0xcc124c(0x2a9);var fo={'tag':'svg','attrs':{'fill':_0xcc124c(0x410),'viewBox':_0xcc124c(0x366),'width':_0xcc124c(0x3ec),'height':_0xcc124c(0x3ec)},'children':[{'tag':'g','attrs':{'clipPath':_0xcc124c(0x344)},'children':[{'tag':_0xcc124c(0x3f9),'attrs':{'stroke':'currentColor','d':_0xcc124c(0x241),'strokeLinecap':'round','strokeLinejoin':_0xcc124c(0x460),'strokeWidth':1.2}}]},{'tag':_0xcc124c(0x22d),'attrs':{},'children':[{'tag':_0xcc124c(0x200),'attrs':{'id':_0xcc124c(0x2bd)},'children':[{'tag':_0xcc124c(0x3f9),'attrs':{'fill':_0xcc124c(0x3dd),'d':_0xcc124c(0x35b)}}]}]}],'defIds':[_0xcc124c(0x2bd)]},qs=_0x1650df(function(_0x40ccd3,_0x1731e5){return _0x3c7df6(Yt,Object['assign']({},_0x40ccd3,{'id':'off-line-single','ref':_0x1731e5,'icon':fo}));});qs[_0xcc124c(0x442)]=_0xcc124c(0x1f6);var go={'tag':'svg','attrs':{'fill':_0xcc124c(0x410),'viewBox':'0\x200\x2017\x2016','width':_0xcc124c(0x3ec),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xcc124c(0x50b)},'children':[{'tag':_0xcc124c(0x3f9),'attrs':{'stroke':'currentColor','d':_0xcc124c(0x258),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xcc124c(0x200),'attrs':{'id':_0xcc124c(0x45b)},'children':[{'tag':_0xcc124c(0x3f9),'attrs':{'fill':_0xcc124c(0x3dd),'d':_0xcc124c(0x35b),'transform':_0xcc124c(0x443)}}]}]}],'defIds':[_0xcc124c(0x45b)]},Js=_0x1650df(function(_0x1b6e03,_0x2b3ad2){const _0x2238eb=_0xcc124c;return _0x3c7df6(Yt,Object[_0x2238eb(0x3ba)]({},_0x1b6e03,{'id':_0x2238eb(0x424),'ref':_0x2b3ad2,'icon':go}));});Js[_0xcc124c(0x442)]=_0xcc124c(0x48d);function zs(_0x1c2489){const _0x52eb2e=_0xcc124c;var _0x157bcc,_0x2c800a,_0x20b9e3='';if(typeof _0x1c2489=='string'||typeof _0x1c2489==_0x52eb2e(0x314))_0x20b9e3+=_0x1c2489;else{if(typeof _0x1c2489==_0x52eb2e(0x4e5)){if(Array[_0x52eb2e(0x393)](_0x1c2489)){var _0x5c5783=_0x1c2489['length'];for(_0x157bcc=0x0;_0x157bcc<_0x5c5783;_0x157bcc++)_0x1c2489[_0x157bcc]&&(_0x2c800a=zs(_0x1c2489[_0x157bcc]))&&(_0x20b9e3&&(_0x20b9e3+='\x20'),_0x20b9e3+=_0x2c800a);}else{for(_0x2c800a in _0x1c2489)_0x1c2489[_0x2c800a]&&(_0x20b9e3&&(_0x20b9e3+='\x20'),_0x20b9e3+=_0x2c800a);}}}return _0x20b9e3;}function So(){const _0x24f69b=_0xcc124c;for(var _0x175da2,_0x438058,_0x401cff=0x0,_0x3c50a9='',_0x538208=arguments[_0x24f69b(0x236)];_0x401cff<_0x538208;_0x401cff++)(_0x175da2=arguments[_0x401cff])&&(_0x438058=zs(_0x175da2))&&(_0x3c50a9&&(_0x3c50a9+='\x20'),_0x3c50a9+=_0x438058);return _0x3c50a9;}const po=_0xcc124c(0x4da),vo='univer-online-status-title',Io=_0xcc124c(0x405),Eo='univer-online',Co=_0xcc124c(0x33d),Pe={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x1588ec){const _0xcbe926=_0xcc124c;switch(_0x1588ec){case P[_0xcbe926(0x1d8)]:return'collabStatus.offline';case P[_0xcbe926(0x1f8)]:return _0xcbe926(0x389);case P[_0xcbe926(0x3e8)]:return _0xcbe926(0x2d8);case P[_0xcbe926(0x4aa)]:return _0xcbe926(0x372);case P[_0xcbe926(0x445)]:case P[_0xcbe926(0x2b9)]:return _0xcbe926(0x3e7);case P[_0xcbe926(0x469)]:case P[_0xcbe926(0x345)]:return _0xcbe926(0x4d3);}}function To(_0x37e901){const _0xd5c777=_0xcc124c,{status$:_0x44dcef}=_0x37e901,_0x10ff0c=_0x137f69(_0x44dcef,P[_0xd5c777(0x4aa)]),_0x497a92=_0x4242ff(_0x991281),_0x20c6ab=_0x4242ff(he),_0x4db4c0=_0x10ff0c!==P[_0xd5c777(0x1d8)],_0x7d916b=_0x497a92['t'](bo(_0x10ff0c)),_0x46bb02=So(Pe['onlineStatus'],{[Pe['online']]:_0x4db4c0,[Pe[_0xd5c777(0x448)]]:!_0x4db4c0}),_0x5c5bed=_0x4db4c0?_0x12d0e8[_0xd5c777(0x3de)](Js,null):_0x12d0e8[_0xd5c777(0x3de)](qs,null),_0x3a0255=_0x3796a9(()=>{const _0x386dcc=_0xd5c777;_0x4db4c0||_0x20c6ab[_0x386dcc(0x4ca)]();},[_0x4db4c0,_0x20c6ab]);function _0xf269a9(){const _0x4e9086=_0xd5c777;return _0x12d0e8[_0x4e9086(0x3de)]('div',{'className':_0x46bb02,'onClick':_0x3a0255},_0x12d0e8[_0x4e9086(0x3de)](_0x4e9086(0x41f),{'className':Pe[_0x4e9086(0x37e)]},_0x5c5bed),_0x12d0e8[_0x4e9086(0x3de)](_0x4e9086(0x41f),{'className':Pe['onlineStatusTitle']},_0x7d916b));}return _0x4db4c0?_0xf269a9():_0x12d0e8[_0xd5c777(0x3de)](_0x2cafc6,{'title':_0x497a92['t']('collab-client.tooltip.reconnect')},_0xf269a9());}var Ro=Object[_0xcc124c(0x2ad)],Oo=Object[_0xcc124c(0x3f2)],Do=(_0x57db0d,_0x440756,_0x30fbf6,_0x17eb50)=>{for(var _0x3d7a39=_0x17eb50>0x1?void 0x0:_0x17eb50?Oo(_0x440756,_0x30fbf6):_0x440756,_0x5392fb=_0x57db0d['length']-0x1,_0x556537;_0x5392fb>=0x0;_0x5392fb--)(_0x556537=_0x57db0d[_0x5392fb])&&(_0x3d7a39=(_0x17eb50?_0x556537(_0x440756,_0x30fbf6,_0x3d7a39):_0x556537(_0x3d7a39))||_0x3d7a39);return _0x17eb50&&_0x3d7a39&&Ro(_0x440756,_0x30fbf6,_0x3d7a39),_0x3d7a39;},Be=(_0x56fc50,_0x32d04e)=>(_0x24b9b,_0x57b891)=>_0x32d04e(_0x24b9b,_0x57b891,_0x56fc50);let Me=class extends _0x4dfcd2{constructor(_0x70fbee,_0x58a0c8,_0x3038c4,_0x1fce66){const _0x28fbdc=_0xcc124c;super(),l(this,_0x28fbdc(0x46b),new _0x3708bc(P['NOT_COLLAB'])),(this['_univerInstanceService']=_0x70fbee,this[_0x28fbdc(0x3a5)]=_0x58a0c8,this[_0x28fbdc(0x2bb)]=_0x3038c4,this['_collaborationController']=_0x1fce66,this[_0x28fbdc(0x482)](),this[_0x28fbdc(0x212)]());}[_0xcc124c(0x212)](){const _0x5595fe=_0xcc124c;this[_0x5595fe(0x379)](this[_0x5595fe(0x268)][_0x5595fe(0x400)]['pipe'](_0x2b1c92(()=>{const _0x4b6706=_0x5595fe,_0x884eb0=this[_0x4b6706(0x268)][_0x4b6706(0x270)]();return _0x884eb0?this[_0x4b6706(0x279)]['getCollabEntity$'](_0x884eb0[_0x4b6706(0x43f)]()):_0x226e5d(null);}),_0x2b1c92(_0x35f021=>_0x35f021?_0x35f021['status$']:_0x226e5d(P['NOT_COLLAB'])))[_0x5595fe(0x3ac)](_0x49a5dd=>{const _0x1facb7=_0x5595fe;this[_0x1facb7(0x46b)]['next'](_0x49a5dd);}));}[_0xcc124c(0x482)](){const _0xb86d8e=_0xcc124c;this[_0xb86d8e(0x379)](this[_0xb86d8e(0x3a5)][_0xb86d8e(0x2c0)](_0x76aa4b[_0xb86d8e(0x28e)],()=>_0x219167(wo({'status$':this['_status$'][_0xb86d8e(0x407)]()}),this['_injector'])));}};Me=Do([Be(0x0,_0x4a621b),Be(0x1,_0x226075),Be(0x2,_0xa01556(_0x3064b3)),Be(0x3,_0xa01556(Le))],Me);function _0x293d(_0xfd7129,_0x24196a){const _0x255496=_0x2554();return _0x293d=function(_0x293d88,_0xdd4ac5){_0x293d88=_0x293d88-0x1ac;let _0x101b63=_0x255496[_0x293d88];return _0x101b63;},_0x293d(_0xfd7129,_0x24196a);}function wo(_0x3ea7c1){const {status$:_0x1e8feb}=_0x3ea7c1;return function(){const _0x49b508=_0x293d;return _0x12d0e8[_0x49b508(0x3de)](To,{'status$':_0x1e8feb});};}const Zs=_0x49cd73('uni.network.url-service');var Po=Object[_0xcc124c(0x2ad)],yo=Object[_0xcc124c(0x3f2)],Uo=(_0x1a1c99,_0x263b7b,_0x3608d1,_0x49ef22)=>{for(var _0x296123=_0x49ef22>0x1?void 0x0:_0x49ef22?yo(_0x263b7b,_0x3608d1):_0x263b7b,_0x245e73=_0x1a1c99['length']-0x1,_0x555ea2;_0x245e73>=0x0;_0x245e73--)(_0x555ea2=_0x1a1c99[_0x245e73])&&(_0x296123=(_0x49ef22?_0x555ea2(_0x263b7b,_0x3608d1,_0x296123):_0x555ea2(_0x296123))||_0x296123);return _0x49ef22&&_0x296123&&Po(_0x263b7b,_0x3608d1,_0x296123),_0x296123;},ge=(_0x57fcb0,_0x4a6ff4)=>(_0x4a496e,_0x35d81c)=>_0x4a6ff4(_0x4a496e,_0x35d81c,_0x57fcb0);let Je=class extends _0xb64757{constructor(_0x413333,_0x2fcc5f,_0x263be5,_0x227d54,_0xb43a18,_0x5c49a8){const _0x573e64=_0xcc124c;super(),this[_0x573e64(0x470)]=_0x413333,this['_logService']=_0x2fcc5f,this[_0x573e64(0x232)]=_0x263be5,this[_0x573e64(0x2ed)]=_0x227d54,this[_0x573e64(0x3c6)]=_0xb43a18,_0x5c49a8?_0x5c49a8==null||_0x5c49a8[_0x573e64(0x48f)]()[_0x573e64(0x520)](()=>this['_init']()):(this[_0x573e64(0x1b0)][_0x573e64(0x4a4)](_0x573e64(0x261),_0x573e64(0x44e)),this[_0x573e64(0x203)]());}async[_0xcc124c(0x203)](){const _0x2fce9f=_0xcc124c,_0x2cf397=this['_urlService']['getParam']('unit'),_0x172ae0=this[_0x2fce9f(0x470)]['getParam'](_0x2fce9f(0x23d));if(!_0x2cf397||!_0x172ae0){this['_logService'][_0x2fce9f(0x4a4)]('[DataLoaderController]',_0x2fce9f(0x2a1));return;}switch(Number(_0x172ae0)){case k[_0x2fce9f(0x3e5)]:{const _0x712a83=await this[_0x2fce9f(0x222)](_0x2cf397);this[_0x2fce9f(0x383)](_0x712a83);break;}case k[_0x2fce9f(0x215)]:{await this['_loadDoc'](_0x2cf397);break;}default:{this[_0x2fce9f(0x1b0)][_0x2fce9f(0x1b3)]('[DataLoaderController]',_0x2fce9f(0x4dd));break;}}}async[_0xcc124c(0x383)](_0x3a9c36){const _0x268c7f=_0xcc124c;await this['_updateSubUnitFromURLParams'](_0x3a9c36),_0x3a9c36[_0x268c7f(0x42e)][_0x268c7f(0x4f2)](_0x2cf076(this['dispose$']))[_0x268c7f(0x3ac)](_0x14bebb=>{const _0x2d1de1=_0x268c7f;_0x14bebb&&this[_0x2d1de1(0x267)](_0x14bebb);}),this[_0x268c7f(0x470)]['urlChange$'][_0x268c7f(0x4f2)](_0x2cf076(this['dispose$']))[_0x268c7f(0x3ac)](()=>this['_updateSubUnitFromURLParams'](_0x3a9c36));}[_0xcc124c(0x267)](_0xadc2d6,_0x7fb380=!0x1){const _0x1e719c=_0xcc124c,_0x2bb56d=this[_0x1e719c(0x470)]['getParam']('subunit');_0xadc2d6['getSheetId']()!==_0x2bb56d&&this[_0x1e719c(0x470)]['setParam'](_0x1e719c(0x3be),_0xadc2d6['getSheetId'](),_0x7fb380);}async['_updateSubUnitFromURLParams'](_0x2f2636){const _0x49c5ed=_0xcc124c;var _0x174fde;const _0xad541f=this[_0x49c5ed(0x470)][_0x49c5ed(0x1b7)](_0x49c5ed(0x3be));if(!_0xad541f||!_0x2f2636[_0x49c5ed(0x244)](_0xad541f)){const _0x27be20=_0x2f2636['getUnhiddenWorksheets']()[0x0],_0xb6efad=_0x2f2636[_0x49c5ed(0x244)](_0x27be20);if(!_0xb6efad)return;this[_0x49c5ed(0x267)](_0xb6efad,!0x0),await this['_commandService']['executeCommand'](_0x2f1d57['id'],{'unitId':_0x2f2636[_0x49c5ed(0x43f)](),'subUnitId':_0x27be20});return;}((_0x174fde=_0x2f2636[_0x49c5ed(0x1e8)]())==null?void 0x0:_0x174fde['getSheetId']())!==_0xad541f&&await this[_0x49c5ed(0x232)]['executeCommand'](_0x2f1d57['id'],{'unitId':_0x2f2636[_0x49c5ed(0x43f)](),'subUnitId':_0xad541f});}async[_0xcc124c(0x222)](_0x1a5299){const _0x5aa8c0=_0xcc124c;let _0x4d83a8=0x0;const _0x46719a=await this[_0x5aa8c0(0x2ed)]['loadOfflineData'](_0x1a5299);return _0x46719a&&(_0x46719a[_0x5aa8c0(0x3d1)]||_0x46719a[_0x5aa8c0(0x4d0)][_0x5aa8c0(0x236)]!==0x0)&&(_0x4d83a8=_0x46719a['rev']),_0x4d83a8===0x0&&this[_0x5aa8c0(0x1b0)][_0x5aa8c0(0x4a4)](_0x5aa8c0(0x261),_0x5aa8c0(0x284)),this[_0x5aa8c0(0x3c6)][_0x5aa8c0(0x447)](_0x1a5299,_0x4d83a8);}async[_0xcc124c(0x4e1)](_0x3f5aca){const _0x4035cf=_0xcc124c;let _0x12dd8c=0x0;const _0x38ed60=await this[_0x4035cf(0x2ed)][_0x4035cf(0x42a)](_0x3f5aca);return _0x38ed60&&(_0x38ed60[_0x4035cf(0x3d1)]||_0x38ed60[_0x4035cf(0x4d0)]['length']!==0x0)&&(_0x12dd8c=_0x38ed60['rev']),_0x12dd8c===0x0&&this[_0x4035cf(0x1b0)][_0x4035cf(0x4a4)](_0x4035cf(0x261),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4035cf(0x3c6)][_0x4035cf(0x47a)](_0x3f5aca,_0x12dd8c);}};Je=Uo([ge(0x0,Zs),ge(0x1,_0x40bb6c),ge(0x2,_0x4ba546),ge(0x3,_0xa01556(w)),ge(0x4,_0xa01556(_0x484548)),ge(0x5,_0x18dda4(_0x4f7c2f))],Je);var No=Object[_0xcc124c(0x2ad)],Mo=Object['getOwnPropertyDescriptor'],Ao=(_0xee005a,_0x2bc5ca,_0x4eb8af,_0x4be65f)=>{const _0x52468f=_0xcc124c;for(var _0x284fc1=_0x4be65f>0x1?void 0x0:_0x4be65f?Mo(_0x2bc5ca,_0x4eb8af):_0x2bc5ca,_0x246c45=_0xee005a[_0x52468f(0x236)]-0x1,_0x1c724d;_0x246c45>=0x0;_0x246c45--)(_0x1c724d=_0xee005a[_0x246c45])&&(_0x284fc1=(_0x4be65f?_0x1c724d(_0x2bc5ca,_0x4eb8af,_0x284fc1):_0x1c724d(_0x284fc1))||_0x284fc1);return _0x4be65f&&_0x284fc1&&No(_0x2bc5ca,_0x4eb8af,_0x284fc1),_0x284fc1;},Ss=(_0x771213,_0xf1caa6)=>(_0x32721d,_0x58e378)=>_0xf1caa6(_0x32721d,_0x58e378,_0x771213);const Lo=_0xcc124c(0x4ba),$o='Univer';let ze=class extends _0x4dfcd2{constructor(_0xc465,_0x290709){const _0x1044a4=_0xcc124c;super(),this['_univerInstanceService']=_0xc465,this[_0x1044a4(0x3f6)]=_0x290709,this[_0x1044a4(0x203)]();}[_0xcc124c(0x203)](){const _0x5d80a4=_0xcc124c;this[_0x5d80a4(0x379)](this['_univerInstanceService'][_0x5d80a4(0x400)][_0x5d80a4(0x3ac)](()=>{const _0xc0fd6a=_0x5d80a4;var _0xe8e00c;const _0x4d8347=this[_0xc0fd6a(0x268)][_0xc0fd6a(0x270)]();let _0x1e9451=(_0xe8e00c=this[_0xc0fd6a(0x3f6)][_0xc0fd6a(0x463)](Lo))!=null?_0xe8e00c:$o;_0x4d8347 instanceof _0x45305d&&(_0x1e9451=_0x4d8347[_0xc0fd6a(0x2d1)]),document[_0xc0fd6a(0x305)]=_0x1e9451;}));}};ze=Ao([Ss(0x0,_0x4a621b),Ss(0x1,_0xf5edd1)],ze);var jo=Object[_0xcc124c(0x2ad)],Ho=Object[_0xcc124c(0x3f2)],xo=(_0x26916f,_0x47603c,_0x4f6950,_0x2d3866)=>{const _0x2cbee9=_0xcc124c;for(var _0x2ea0a1=_0x2d3866>0x1?void 0x0:_0x2d3866?Ho(_0x47603c,_0x4f6950):_0x47603c,_0x5cce08=_0x26916f[_0x2cbee9(0x236)]-0x1,_0x10cb90;_0x5cce08>=0x0;_0x5cce08--)(_0x10cb90=_0x26916f[_0x5cce08])&&(_0x2ea0a1=(_0x2d3866?_0x10cb90(_0x47603c,_0x4f6950,_0x2ea0a1):_0x10cb90(_0x2ea0a1))||_0x2ea0a1);return _0x2d3866&&_0x2ea0a1&&jo(_0x47603c,_0x4f6950,_0x2ea0a1),_0x2ea0a1;},St=(_0x2b174f,_0x26946d)=>(_0x7fcadb,_0x441192)=>_0x26946d(_0x7fcadb,_0x441192,_0x2b174f);let Ze=class{constructor(_0x5c531d,_0x5ee01a,_0xa12482){const _0xdcc869=_0xcc124c;this['_configService']=_0x5c531d,this['_httpService']=_0x5ee01a,this[_0xdcc869(0x351)]=_0xa12482,this[_0xdcc869(0x28f)]();}[_0xcc124c(0x28f)](){const _0x4f73c3=_0xcc124c;this[_0x4f73c3(0x3aa)][_0x4f73c3(0x3fa)]({'priority':0x1,'interceptor':(_0x355d92,_0x4f084c)=>_0x4f084c(_0x355d92)[_0x4f73c3(0x4f2)](_0x2e3fd6(async _0x17885f=>{const _0x38e8d2=_0x4f73c3,_0x540e1a=_0x17885f;if(_0x540e1a[_0x38e8d2(0x35d)]===0x191&&window['confirm'](this[_0x38e8d2(0x351)]['t'](_0x38e8d2(0x4af)))){const _0x140f19=window[_0x38e8d2(0x355)](window[_0x38e8d2(0x4f4)][_0x38e8d2(0x3ae)]);window[_0x38e8d2(0x4f4)]['href']=this['_getLoginPath']()+'?url='+_0x140f19;}return _0x540e1a;}))});}[_0xcc124c(0x31c)](){const _0x313e30=_0xcc124c;var _0x119ecb,_0x3b81b4;const _0x93d157=this[_0x313e30(0x3f6)]['getConfig'](Ln),_0x33c0d2=this[_0x313e30(0x3f6)][_0x313e30(0x463)]($);return(_0x3b81b4=(_0x119ecb=_0x33c0d2==null?void 0x0:_0x33c0d2[_0x313e30(0x3a8)])!=null?_0x119ecb:_0x93d157)!=null?_0x3b81b4:$n;}};Ze=xo([St(0x0,_0xf5edd1),St(0x1,_0xa01556(_0x5f5876)),St(0x2,_0xa01556(_0x991281))],Ze);var ko=Object[_0xcc124c(0x2ad)],Bo=Object['getOwnPropertyDescriptor'],Vo=(_0x3336d8,_0x2d0879,_0x1084a2,_0x36cc7c)=>{for(var _0x5c1d96=_0x36cc7c>0x1?void 0x0:_0x36cc7c?Bo(_0x2d0879,_0x1084a2):_0x2d0879,_0x590997=_0x3336d8['length']-0x1,_0x501660;_0x590997>=0x0;_0x590997--)(_0x501660=_0x3336d8[_0x590997])&&(_0x5c1d96=(_0x36cc7c?_0x501660(_0x2d0879,_0x1084a2,_0x5c1d96):_0x501660(_0x5c1d96))||_0x5c1d96);return _0x36cc7c&&_0x5c1d96&&ko(_0x2d0879,_0x1084a2,_0x5c1d96),_0x5c1d96;},ps=(_0x42ffce,_0x645f06)=>(_0x32b90a,_0x38e784)=>_0x645f06(_0x32b90a,_0x38e784,_0x42ffce);const Fo=_0xcc124c(0x3af),Wo=_0xcc124c(0x2c6);let yt=class extends _0x4dfcd2{constructor(_0x5af176,_0x1380c0){const _0x272187=_0xcc124c;super(),this[_0x272187(0x1fa)]=_0x5af176,this[_0x272187(0x3f6)]=_0x1380c0,this[_0x272187(0x24b)]();}[_0xcc124c(0x24b)](){const _0x4aa435=_0xcc124c,_0x28d3a6=this;this[_0x4aa435(0x379)](this['_HTTPService'][_0x4aa435(0x3fa)]({'priority':0x3e7,'interceptor':_0x4d0cc4({'isMatch'(_0x4f5d6c){const _0x285f12=_0x4aa435;var _0x2065f6;if(_0x4f5d6c['method']===_0x285f12(0x42b)&&((_0x2065f6=_0x4f5d6c[_0x285f12(0x308)])!=null&&_0x2065f6[_0x285f12(0x2b7)])){const {objectID:_0x56b870,objectType:_0x3854d0}=_0x4f5d6c[_0x285f12(0x308)][_0x285f12(0x2b7)]||{};if(!_0x56b870||_0x3854d0===void 0x0)return!0x1;const _0x117b02=_0x28d3a6['_getAPIPrefixPath']()+'/'+_0x3854d0+_0x285f12(0x502)+_0x56b870+_0x285f12(0x51a);if(_0x4f5d6c['url']===_0x117b02)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x44f3b3){const _0x3fd43a=_0x4aa435;var _0x2fb68d;return(_0x2fb68d=_0x44f3b3['requestParams'])==null?void 0x0:_0x2fb68d[_0x3fd43a(0x2b7)];},'mergeParamsToRequest'(_0x493178,_0x37f4c1){const _0x4d80da=_0x4aa435,_0x3e39cc=_0x28d3a6[_0x4d80da(0x23e)]()+_0x4d80da(0x47e),_0x523438=_0x493178[_0x4d80da(0x514)]((_0x2b7cfa,_0x52bbc7)=>{const _0x4f7f6d=_0x4d80da,{unitID:_0x4ea454,objectID:_0x206ac8,objectType:_0x56da28,actions:_0x154836}=_0x52bbc7;return _0x2b7cfa[_0x4ea454]||(_0x2b7cfa[_0x4ea454]={}),_0x2b7cfa[_0x4ea454][_0x206ac8]||(_0x2b7cfa[_0x4ea454][_0x206ac8]={'objectID':_0x206ac8,'objectType':_0x56da28,'actions':[]}),_0x2b7cfa[_0x4ea454][_0x206ac8]['actions'][_0x4f7f6d(0x4c7)](..._0x154836),_0x2b7cfa;},{}),_0x49c021=[];for(const _0x3a31a5 in _0x523438)for(const _0x20bf3f in _0x523438[_0x3a31a5]){const {actions:_0x2c6b68,objectType:_0x23b0dd}=_0x523438[_0x3a31a5][_0x20bf3f],_0x1f0185=[...new Set(_0x2c6b68)];_0x49c021[_0x4d80da(0x4c7)]({'unitID':_0x3a31a5,'objectID':_0x20bf3f,'objectType':_0x23b0dd,'actions':_0x1f0185});}return new _0x442990(_0x4d80da(0x42b),_0x3e39cc,{'headers':_0x37f4c1[_0x4d80da(0x2f9)],'withCredentials':_0x37f4c1[_0x4d80da(0x4ad)],'responseType':_0x37f4c1[_0x4d80da(0x455)],'body':{'requests':_0x49c021}});}},{'distributeResult'(_0x3953e,_0x5cf75f){const _0x55f973=_0x4aa435,{objectActions:_0x567554}=_0x3953e;return _0x5cf75f[_0x55f973(0x2f3)](_0x302306=>{const _0x3c9c6c=_0x55f973,{unitID:_0x159605,objectID:_0x127440,actions:_0x2d0f3f}=_0x302306,_0x1ec0c4=_0x567554[_0x3c9c6c(0x21b)](_0x5242fc=>_0x5242fc[_0x3c9c6c(0x38f)]===_0x159605&&_0x5242fc['objectID']===_0x127440),_0xca6205=_0x2d0f3f['map'](_0x43f6df=>_0x1ec0c4==null?void 0x0:_0x1ec0c4[_0x3c9c6c(0x27b)][_0x3c9c6c(0x21b)](_0x283eb0=>_0x283eb0[_0x3c9c6c(0x1df)]===_0x43f6df))[_0x3c9c6c(0x4e3)](_0x391c97=>!!_0x391c97);return{'config':_0x302306,'result':{'actions':_0xca6205,'error':_0x3953e[_0x3c9c6c(0x1b3)]}};});}})}));}[_0xcc124c(0x23e)](){const _0x539431=_0xcc124c;var _0x2445e6,_0x1d7727;const _0x32da24=this['_configService'][_0x539431(0x463)](Fo),_0x1ee9e4=this['_configService'][_0x539431(0x463)]($);return(_0x1d7727=(_0x2445e6=_0x1ee9e4==null?void 0x0:_0x1ee9e4[_0x539431(0x467)])!=null?_0x2445e6:_0x32da24)!=null?_0x1d7727:Wo;}async['create'](_0x3f7553){const _0xa9b865=_0xcc124c,_0x355101=this[_0xa9b865(0x23e)]()+'/'+_0x3f7553['objectType']+'/object';return(await this['_HTTPService'][_0xa9b865(0x533)](_0x355101,{'body':_0x3f7553}))[_0xa9b865(0x2b7)][_0xa9b865(0x2e4)]||'';}async[_0xcc124c(0x4b2)](_0xbda7fa){const _0x4c0cb4=_0xcc124c,_0x1bc736=this[_0x4c0cb4(0x23e)]()+'/-/object/list';return(await this[_0x4c0cb4(0x1fa)][_0x4c0cb4(0x533)](_0x1bc736,{'body':_0xbda7fa}))[_0x4c0cb4(0x2b7)][_0x4c0cb4(0x1cc)];}async['update'](_0x2905b8){const _0x3687d2=_0xcc124c,_0xd34802=this[_0x3687d2(0x23e)]()+'/'+_0x2905b8[_0x3687d2(0x33c)]+_0x3687d2(0x502)+_0x2905b8[_0x3687d2(0x2e4)];await this['_HTTPService']['put'](_0xd34802,{'body':_0x2905b8});}async['allowed'](_0x248e19){const _0x1fabcd=_0xcc124c,_0x2082f8=this['_getAPIPrefixPath']()+'/'+_0x248e19[_0x1fabcd(0x33c)]+_0x1fabcd(0x502)+_0x248e19[_0x1fabcd(0x2e4)]+_0x1fabcd(0x51a);return(await this[_0x1fabcd(0x1fa)]['post'](_0x2082f8,{'body':_0x248e19}))[_0x1fabcd(0x2b7)]['actions'];}async[_0xcc124c(0x4ea)](_0x1ed38){const _0x3f7da7=_0xcc124c,_0x4baf8b=this[_0x3f7da7(0x23e)]()+_0x3f7da7(0x47e);return(await this['_HTTPService']['post'](_0x4baf8b,{'body':{'requests':_0x1ed38}}))[_0x3f7da7(0x2b7)][_0x3f7da7(0x33e)];}async['listRoles'](_0x4059e7){const _0x3aecb7=_0xcc124c,_0x1692df=this['_getAPIPrefixPath']()+'/'+_0x4059e7[_0x3aecb7(0x33c)]+_0x3aecb7(0x37a),_0x54a4c5=await this['_HTTPService'][_0x3aecb7(0x533)](_0x1692df,{'body':_0x4059e7});return{'roles':_0x54a4c5[_0x3aecb7(0x2b7)][_0x3aecb7(0x2e0)],'actions':_0x54a4c5[_0x3aecb7(0x2b7)][_0x3aecb7(0x27b)]};}async['deleteCollaborator'](_0x25f723){const _0x24f421=_0xcc124c,_0x457bfe=this['_getAPIPrefixPath']()+_0x24f421(0x281);await this[_0x24f421(0x1fa)][_0x24f421(0x3bd)](_0x457bfe,{'params':{'collaboratorID':_0x25f723[_0x24f421(0x4e8)],'objectID':_0x25f723['objectID'],'unitID':_0x25f723[_0x24f421(0x38f)]}});}async[_0xcc124c(0x26c)](_0x1a798e){const _0x57819a=_0xcc124c,_0x109dd4=this[_0x57819a(0x23e)]()+_0x57819a(0x281);await this[_0x57819a(0x1fa)][_0x57819a(0x444)](_0x109dd4,{'body':_0x1a798e});}async[_0xcc124c(0x2a2)](_0x1863ca){const _0x502cc4=_0xcc124c,_0x4d819b=this[_0x502cc4(0x23e)]()+_0x502cc4(0x281);await this['_HTTPService']['post'](_0x4d819b,{'body':_0x1863ca});}async[_0xcc124c(0x34b)](_0x593048){const _0x1c0d34=_0xcc124c,_0x3b505e=this['_getAPIPrefixPath']()+_0x1c0d34(0x281);return(await this[_0x1c0d34(0x1fa)][_0x1c0d34(0x4e6)](_0x3b505e,{'params':{'objectID':_0x593048['objectID'],'unitID':_0x593048[_0x1c0d34(0x38f)]}}))[_0x1c0d34(0x2b7)][_0x1c0d34(0x1e1)];}async[_0xcc124c(0x4f1)](_0x6c5d83){const _0x385de3=_0xcc124c,_0xd1abe1=this[_0x385de3(0x23e)]()+'/collaborator';await this[_0x385de3(0x1fa)][_0x385de3(0x3c5)](_0xd1abe1,{'body':_0x6c5d83});}};yt=Vo([ps(0x0,_0xa01556(_0x5f5876)),ps(0x1,_0xa01556(_0xf5edd1))],yt);var Go=Object['defineProperty'],Yo=Object[_0xcc124c(0x3f2)],Ko=(_0x46cb73,_0x211abf,_0x2295a3,_0x52fac8)=>{const _0x16052b=_0xcc124c;for(var _0x314ce5=_0x52fac8>0x1?void 0x0:_0x52fac8?Yo(_0x211abf,_0x2295a3):_0x211abf,_0x55ec4c=_0x46cb73[_0x16052b(0x236)]-0x1,_0xffeef3;_0x55ec4c>=0x0;_0x55ec4c--)(_0xffeef3=_0x46cb73[_0x55ec4c])&&(_0x314ce5=(_0x52fac8?_0xffeef3(_0x211abf,_0x2295a3,_0x314ce5):_0xffeef3(_0x314ce5))||_0x314ce5);return _0x52fac8&&_0x314ce5&&Go(_0x211abf,_0x2295a3,_0x314ce5),_0x314ce5;},Xo=(_0x1d1f41,_0x532eb0)=>(_0x38861a,_0x1149d6)=>_0x532eb0(_0x38861a,_0x1149d6,_0x1d1f41);let Qe=class{constructor(_0x3e33c7){const _0x4ba1db=_0xcc124c;this[_0x4ba1db(0x3aa)]=_0x3e33c7,this['_initRequestHeader']();}[_0xcc124c(0x46f)](){const _0x30db4c=_0xcc124c;this[_0x30db4c(0x3aa)][_0x30db4c(0x3fa)]({'interceptor':(_0x4288b4,_0x816347)=>{const _0x1c2117=_0x30db4c,_0x3b00e0=_0x4288b4[_0x1c2117(0x2f9)],_0x74aa41=_0x50fbca();return _0x74aa41&&_0x3b00e0['set'](_0x1c2117(0x3da),_0x74aa41),_0x816347(_0x4288b4);}});}};Qe=Ko([Xo(0x0,_0xa01556(_0x5f5876))],Qe);var qo=Object['defineProperty'],Jo=Object['getOwnPropertyDescriptor'],zo=(_0x5b5b17,_0x5ee9b0,_0x300ccd,_0x1ad895)=>{for(var _0x300888=_0x1ad895>0x1?void 0x0:_0x1ad895?Jo(_0x5ee9b0,_0x300ccd):_0x5ee9b0,_0x20b508=_0x5b5b17['length']-0x1,_0x802d46;_0x20b508>=0x0;_0x20b508--)(_0x802d46=_0x5b5b17[_0x20b508])&&(_0x300888=(_0x1ad895?_0x802d46(_0x5ee9b0,_0x300ccd,_0x300888):_0x802d46(_0x300888))||_0x300888);return _0x1ad895&&_0x300888&&qo(_0x5ee9b0,_0x300ccd,_0x300888),_0x300888;},pt=(_0x5d3969,_0x11782b)=>(_0x2faece,_0x507d9c)=>_0x11782b(_0x2faece,_0x507d9c,_0x5d3969);function _0x2554(){const _0x3aaed2=['_initRequestHeader','_urlService','prototype','registerRefRange','setShapeProps','/universer-api/snapshot','UNKNOWN_CMD','_assignedColors','getDeserializedSheetBlock','univerjs-icon\x20univerjs-icon-','_updateLocalCache','loadDoc','[OfflineState]:\x20received\x20changeset.','trim','includes','/-/object/-/batch_allowed','backgroundColor','getResourcesRequest','assignAColorForMemberID','_initStatusComponent','_draw','_telemetryService','_backgroundColor','_scheduleSaving','font','onSendChangeset','_colorIndex','HttpExport','max','_refRangeService','OnLineSingle','result','whenReady','width','_id','complete','[UniverCollaborationClientPlugin]','\x20in\x20_schedule.','/unit/','_getCtorByUniverType','src','capture','awaiting','unitId','close','executeCommand','LEAVE','readAsDataURL','getOwnPropertySymbols','_initModules','collab-text-anchor-','SUCCUSS','onPointerLeave$','debug','addObject','INVALID_ARGUMENT','_docStateChangeManagerService','onlyLocal','override','NOT_COLLAB','CHANGESET_ACK','RemoveRowCommandId','withCredentials','_decreaseWaiting','auth.needGotoLoginAlert','startTime','deepClone','list','_name','_sheetSkeletonManagerService','unit-cache-','OTHER_CLIENTS_EDITING','MSG_FOR_ERROR','...','_getMergeRange','DEFAULT_FILE_NAME','_transformService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onTransformIME','_submitChangeset','_undoRedoService','toggleOffline','_startSheetCollabCursor','FAIL','setAlpha','transformByState','visibilitychange','_onRecvEvent','push','collaboration-session-retry','skeleton','reconnect','_eventUnsubscribe','_changesetSessionId','text','_showConflictNotification','collab-rect-range-','mutations','onTransformRemoteChangesetByIMECache','getDocRanges','collabStatus.synced','image/jpeg','_renderManagerService','doc.mutation.rich-text-editing','_heartbeatTimer','set','univer-pro.collaboration-client-socket-service','univer-online-status-icon','_awaitingChangeset','startRow','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_drawAnchor','incrementRevOfUnit','getTime','_loadDoc','current','filter','_transitionLocked','object','get','_retryConnectingTimer','collaboratorID','CHANGESET_REVISION_CONFILICT','batchAllowed','YUUMI_SUBSCRIPTION_NOT_FOUND','updateOfflineData','saveChangeset','pending','_config','sheetID','putCollaborators','pipe','m2Prime','location','\x0aAfter:\x20','rng','onTransformSelections','[CollaborationSessionService]','NEW_CHANGESETS','collaboration.closeRoom','onSyncEditingCollabCursor','getRoom','_socketMessageSubscription','idSuffix','getImageSourceCache','string','onRemoteRej','/object/','failed\x20to\x20apply\x20missed\x20changesets!','_executeRemoteChangeset','replaceState','liveShareNewHost','conflict','_getAnchorBounding','transformMutation','_commentService','url(#on-line-single_clip0_910_349)','with','HEARTBEAT_INTERVAL','sid','color','966180WMMluF','_initResize','_sessions','isActive','reduce','liveShareOperation','bind','_selfUnitIDs','_transformUndoRedoStack','restore','/allowed','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_localeService','UNKNOWN_CODE','shouldCloseConn','substring','then','getRandomValues','getUnit','collabCursorState$','sessionStatus','resolve','_telemetryInfo','_singleActiveUnitService','_commentUpdate$','_online','_getUploadFileURL','_http','_docTransformSelectionsService','blue400','parse','height','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','syncEditingCollabCursor','getUnitOnRev','post','getMemberID','_resendTimeout','members','close$','APPLY_PERMISSION_DENIED','_logService','disableLocalCache','INTERNAL_ERROR','error','_revisionService','_hideTimer','hasOwnProperty','getParam','[FetchMissState]','show','/universer-api/comb','_substituteRedoStack','setInterval','SNAPSHOT_INVALID_SNAPSHOT','485991AgyHMK','c2Prime','jiqing500','attrs','_collaborationTimeoutTimer','_changesetReqId','_handleHover','_remoteChangesetQueue','_clearTimeoutTimer','&assign=','setParam','HEARTBEAT','_saveCache','UNIVER_COLLABORATION_CLIENT_PLUGIN','objects','docStateChange$','removeMember','next','concat','file','originalMeta','getViewport','_getSnapshotAPIPrefix','_onConnectionOpen','getMember','FromArray','OFFLINE','collaboration-client.offline-data-not-saved','1842764oCVeVT','fetch_missing','_pendingMutations','ACTIVE_UNIT_EVENT_CHANNEL','_syncEditingCollabCursor','action','_clearHeartbeatTimer','collaborators','transformMutationsWithChangeset','origin','endRow','UnitSnapshot','_clearCollaborationTimeoutTimer','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getActiveSheet','getUndoRedoMutationParamsCache','getCurrentSelections','_drawTextRange','_localStorageService','pauseCollaboration','changesets','transformRemoteChangeset','transform','reqId','_scheduleCollaborationTimeoutTimer','createSocket','_incrementRevisionNumber','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','OffLineSingle','hidden','CONFLICT','_waitForHeartbeatResponse','_HTTPService','_transformUndoredo','equals','_cursors','fetching\x20missing\x20changesets\x20from\x20','_onLocalMutation','clipPath','updatePermissionPoint','_onCombEvent','_init','startColumn','12376LtMHhX','_createHandler','LIVESHARE_REQUEST_HOST','revision','_substituteUndoStack','/universer-api/file/{fileID}/sign-url','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','SEND_CHANGESET_TIMEOUT','_candidateSocket','_drawRectRange','params','getAncestorScale','onMissingChangesets','_initStatusListener','routeKey','getCellPositionByOffset','UNIVER_DOC','_sheetTransformSelectionsService','_collaborationPaused','_tryEnsureSocket','setUndoRedoMutationParamsCache','size','find','_snapshotServerService','getCollabEntity$','popstate','_themeService','unit','state$','_loadSheet','slice','APPLY_DUPLICATED','_checkMissing','getRangePointData','saveImage','_queuedRemoteChangesets','entries','_toggleOnline','_sender','target','defs','_state$','_collaborationSessionService','_resendTimer','call','_commandService','clear','stringify','_refreshCollabCursors','length','getWorkbookSelections','fillStyle','Unknown\x20user','sessionStatus$','currentSkeleton$','_registerRenderDependencies','type','_getAPIPrefixPath','saveOfflineData','onRendered','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','subscribeEvent','onReady','getSheetBySheetId','c1Prime','DeleteRangeMoveUpCommandId','cursorInfo','LIVESHARE_FETCH_OPERATIONS','getOffsetConfig','_socket$','_initMergeInterceptor','getValue','_collabCursorController','FETCH_MISSING','_onOffline','session.connection-failed','_applyRemoteChangeset','_anchorDot','fillRule','initWorkbookPermissionChange','[CollaborationSession]','SNAPSHOT_HAS_BEEN_REMOVED','onPointerEnter$','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','min','&source=','_transformRemoteChangesetByIMECache','_exhaustRemoteChangesetQueue','getInterceptPoints','_getSheetObject','_members','copyFileMeta','[DataLoaderController]','triggerDblclick','_startCollaboration','/rev/','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','add','_updateURLWithCurrentState','_univerInstanceService','_removeClearOtherTimer','setItem','image/jpg','updateCollaborator','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','exhaustSavingTask','BASE64','getFocusedUnit','RECV','_handleHeartbeatEvent','_updateLocalCursor','transformUndoRedo','resourceIDs','\x0aCurrent:\x20','_handleLeaveEvent','history','_collaborationController','[CollaborationState]:\x20apply\x20error!','actions','ws://127.0.0.1:8000/universer-api/comb/connect','setTimeout','send','_unlockTransition','/universer-api/stream/file/upload','/collaborator','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','unknown','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','transformChangesets','selection','transformStack\x20failed!','YUUMI_RATE_OVER_LIMIT','_lockTransition','socketService','resend','COLLAB_SUBMIT_CHANGESET_URL','tag','HEADER_MENU','init','_initUnitPermissionChange','YUUMI_URL_COL_OUT_OF_RANGE','fillText','createInstance','addImageSourceCache','pushState','PSEUDO_FETCH_MISSING_RESULT','collabSubmitChangesetUrl','signUrlServerUrl','[PendingState]:\x20received\x20acknowledgement.','/block/','LIVESHARE_NEW_HOST','ERROR_IMAGE','defIds','_handleJoinEvent','_saveTaskMap','LIVESHARE_TERMINATE','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','createCollaborator','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_sendingTimer','_replayCachedMutations','subUnitId','data','_sendHeartbeatTimer','UniverIcon','_startTelemetryCollaborationNewChangeset','_compressMutationService','_beforeCloseService','defineProperty','_onRemoteACK','_onFetchMissResult','_transformPreviousActiveRange','ALREADY_EXISTS','url(#$1','enableLocalCache','flatMap','event$','updateMember','body','_onConflict','AWAITING_WITH_PENDING','_scene','_injector','collaboration-client.config','off-line-single_clip0_910_343','_transformIMECache','HELLO','registerComponent','InsertRowCommandId','currentTheme$','\x20to\x20','_shapes','synced','/universer-api/authz','requireSession','onMissedChangesetFetched','onRemoteRetry','_memberService','APPLY_REVISION_CONFILICT','_tryReconnect','_disableEditing','unshift','_collabCursorState$','_collabSessionService','name','getActiveRange','conflict.content','_roomMembers','sheets','fetchMiss','/resources','collabStatus.fetchMiss','textRanges','infoRsp','_docTransformIMECacheService','Warning','_fetchMissChangesets','onMouseMove','open$','roles','_onCursorUpdate','dispose','_getSendChangesetTimeout','objectID','editingUnit','permission.content','json','[OfflineState]:\x20received\x20rejection.','transformIMECache','message$','from','COMPRESS_MUTATION_APPLY','_localCacheService','roomMembers$','lineTo','_sessionStatus$','_onRefRangeChange','enableSingleActiveInstanceLock','map','now','extend','endColumn','children','random','headers','10QKVTBt','downloadEndpointUrl','RemoveColCommandId','colorChannel1','79763lHOHfs','refreshPermission','use','_resendWithTimeout','_clearScheduledTask','_permissionService','getUnitType','title','_disabled','MUTATION','requestParams','xlink:href','_isPermissionRej','newValue','24XDPgwr','session.room-full','_unitID','setConfig','reverse','_range','fetchMissingChangesets','_cursorInfo$','number','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getCurrent','addEventListener','permission.title','replace','_retryCount','searchParams','_getLoginPath','dispose$','userID','key','ERROR_EXCEED_SIZE','onRemoteChangeset','_createSocket','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','Error\x20on\x20receiving\x20event','_registerDependencies','SHOULD_CLOSE_CONN','_removeRoom','toString','_handler','_undoStacks','_syncEditingCollabCursorService','_notificationService','setCurrentUser','generateRandomId','DeleteRangeMoveLeftCommandId','_socketReady','updatePermissionObjEvent','_labelPosition','urlChange$','_onMessage','_socketService','_startDocCollabCursor','clearTimeout','_ensureSubject','_document','_cachedData','COLLAB_WEB_SOCKET_URL','objectType','univer-offline','objectActions','labelPosition','UPDATE_CURSOR','row','_render','commentUpdateEvent','url(#off-line-single_clip0_910_343)','PENDING','eventID','JOIN','_color','_send','getVpScrollXYInfoByPosToVp','listCollaborators','_onConnectionFailed','cursorInfo$','_lastPointer','column','LOGIN_URL_KEY','localeService','url','_onCursorDelete','?size=','encodeURIComponent','_listenToOnlineEvent','fill','_handleEvent','_getAPIPrefix','unsubscribe','M0\x200H16V16H0z','_onRemoteChangeset','status','_clearOtherTimers','awaiting_with_pending','_transformSelections','moveTo','_onRemoteRejected','baseRev','ONLINE','838170sVsRSs','0\x200\x2016\x2016','NOT_FOUND','gold400','_sendHeartbeat','collab-text-range-','cmd','toLowerCase','_clearUndo','session.will-retry','saveSheetBlock','_unitStatus','COMMENT_UPDATE','collabStatus.notCollab','values','sendChangesetTimeout','getSkeleton','_stopTelemetryCollaborationNewChangeset','_instanceService','m1Prime','disposeWithMe','/role','UNIVER_SLIDE','LICENSE_MAX_UNITS_EXCEEDED','indexOf','onlineStatusIcon','LICENSE_EXPORT_SIZE_EXCEEDED','15JMlWcI','error$','UnitEmbedded','_setupSubUnitSync','snapshot','CHANGESET_SHOULD_RETRY','UNDEFINED','IDLE','InsertRangeMoveRightCommandId','collabStatus.conflict','disposeUnit','catch','_removeCollabCursors','_getDownloadEndpointURL','[SyncedState]:\x20received\x20acknowledgement.','unitID','not_collab','_rescheduleHeartbeat','CHANGESET_REJ','isArray','_unitOnClients','EXCHANGE_SIGN_URL_SERVER_URL_KEY','toRgbString','SUBMIT_CHANGESET','LIVESHARE_OPERATION','_cursor','apply','makeDirty','ranges','[CollaborationEntity]','findNodePositionByCharIndex','_scheduleHeartbeat','UNAUTHENTICATED','roomMembers','_cursorShapes','onRemoteAck','_scheduleClearOtherTimer','_uiPartsService','storage','function','loginUrlKey','_timeoutTimer','_httpService','_transformStack','subscribe','_entities','href','AUTHZ_URL_KEY','_change$','_clearRedo','encode','stopTime','NO_OTHER_CLIENTS_EDITING','getCurrentUser','reject','getTypeOfUnitAdded$','icon','_waitCount','assign','some','_entityInit$','delete','subunit','status$','toggleOnline','registerRenderModule','drawWith','LOCAL_CACHE_INTERVAL','hide','put','_snapshotService','APPLY_REJECT','APPLY_NON_SEQUENTIAL_REVISION','_onRemoteRetry','Undefined','arc','PERMISSION_DENIED','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_setupBeforeClosingHandler','_hover','telemetry\x20info\x20is\x20not\x20initialized','awaitingChangeset','onCommandExecuted','FileId','getImage','forEach','onPointerMove$','isPermissionRej','isEditing','LICENSE_IMPORT_SIZE_EXCEEDED','x-univer-host','getLatestCsReqIdBySid','getCurrentRevOfUnit','#fff','createElement','USERS_ENTER','replaceTextRanges','_getUndoStack','range','USERS_LEAVE','INGEST','UNIVER_SHEET','_shouldReportTelemetry','collabStatus.syncing','FETCH_MISS','_getSignURL','_context','_scheduleTimestamp','1em','_toggleOffline','updateCursorEvent','transformSelections','520040mAzfEd','duration','getOwnPropertyDescriptor','submit\x20changeset\x20error!','csShouldRetryEvent','_redoStacks','_configService','evenodd','joinRsp','path','registerHTTPInterceptor','_imageSourceCache','csAckEvent','_getSaveTimeout','_replaceFileID','_getCurrentRevision','focused$','_session','_docSkeletonManagerService','image/bmp','CONNECTOR_DATA_TOO_LARGE','univer-online-status','JOINING','asObservable','_ws','_docSkeleton','UPDATE_PERMISSION_OBJ','fromCollab','_acknowledgedAwaitingChangeset','purple300','_createInitialStateImpl','ENSURE_SNAPSHOT_EXECUTION','none','#FFF','online','black','interceptor','_initCommandExecutedListener','_event$','LICENSE_DISTRO_REJECTED','top','_userManagerService','_updateStatus','_updateCollabCursors','COMPLETION_FINISHED','UNIVER_PROJECT','_messageService','div','Error','UNRECOGNIZED','setActiveRange','every','on-line-single','hovered','_socket','closeSession','session','symbol','loadOfflineData','POST','save','contains','activeSheet$','split','clearInterval','_onUserLeave','getSheetBlock','HEARTBEAT_TIMEOUT','connection\x20error','startsWith','bottom','_clearLocalCache','_anchor','_textBubble','_docSyncEditingCollabCursorService','getTypeOfUnitDisposed$','setWaitCount','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','memberID','getUnitId','fetchThroughInterceptors','_schedule','displayName','translate(.97)','patch','AWAITING','_throwTelemetryCollaborationNewChangeset','loadSheet','offline','has','_hovered','\x20-\x20','[CollaborationUndoRedoService]','_state','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_getScale','getSheetId','_onUserJoin','getRenderById','getCollabCursors$','workbook','responseType','_colorAssignService','randomUUID','retryConnectingInterval','measureText','addObjects','on-line-single_clip0_910_349','_initCloseConn','appendMutation','_joinRoom','_getRedoStack','round','/universer-api/oidc/authpage','_updateState','getConfig','_initEventListeners','_roomMembers$','2MvaFKP','authzUrl','getUnitStatus$','SYNCED','className','_status$','_type','selections','{fileID}'];_0x2554=function(){return _0x3aaed2;};return _0x2554();}const Zo=['image/png',_0xcc124c(0x4d4),_0xcc124c(0x26b),'image/gif',_0xcc124c(0x403)],Qo=0x5*0x400*0x400,ea=_0xcc124c(0x265),ta=_0xcc124c(0x280),sa=_0xcc124c(0x395),ia=_0xcc124c(0x20a);let Ut=class{constructor(_0x307150,_0x57501c,_0x188b9a){const _0xaa4af=_0xcc124c;l(this,_0xaa4af(0x3b9),0x0),l(this,_0xaa4af(0x3b0),new _0x3ca740()),l(this,'change$',this[_0xaa4af(0x3b0)]),l(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x307150,this['_configService']=_0x57501c,this[_0xaa4af(0x268)]=_0x188b9a);}[_0xcc124c(0x43c)](_0xd43b9){const _0x141f44=_0xcc124c;this['_waitCount']=_0xd43b9,this[_0x141f44(0x3b0)][_0x141f44(0x1cf)](_0xd43b9);}[_0xcc124c(0x4ff)](_0x2fcd20,_0x35e875){const _0x324573=_0xcc124c;if(_0x35e875===_0x23cb04[_0x324573(0x26f)]){const _0x329c98=new Image();return _0x329c98[_0x324573(0x497)]=_0x2fcd20,_0x329c98;}return this[_0x324573(0x3fb)][_0x324573(0x4e6)](_0x2fcd20);}[_0xcc124c(0x294)](_0x5ac3b3,_0x17a003,_0x51e925){const _0x512b25=_0xcc124c;_0x17a003===_0x23cb04[_0x512b25(0x26f)]||_0x51e925==null||this['_imageSourceCache'][_0x512b25(0x4d8)](_0x5ac3b3,_0x51e925);}async[_0xcc124c(0x3d4)](_0x487595){const _0x5a3c83=_0xcc124c;try{const _0x3ae111=this[_0x5a3c83(0x3fe)](this[_0x5a3c83(0x3e9)](),''+_0x487595),_0x2b309a=(await this[_0x5a3c83(0x3aa)][_0x5a3c83(0x4e6)](_0x3ae111))[_0x5a3c83(0x2b7)];if(_0x2b309a[_0x5a3c83(0x1b3)]&&_0x2b309a[_0x5a3c83(0x1b3)]['code']===xs['OK']){const _0x4a7285=new URL(_0x2b309a[_0x5a3c83(0x352)],this[_0x5a3c83(0x38d)]())['toString']();return Promise[_0x5a3c83(0x525)](_0x4a7285);}return Promise[_0x5a3c83(0x3b6)](_0x2b309a[_0x5a3c83(0x1b3)]);}catch(_0x5871cf){return Promise[_0x5a3c83(0x3b6)](_0x5871cf);}}async[_0xcc124c(0x227)](_0x66d0dc){const _0x1ceceb=_0xcc124c;let _0x1e76c6='';if(!Zo['includes'](_0x66d0dc['type']))return this[_0x1ceceb(0x4ae)](),Promise[_0x1ceceb(0x3b6)](new Error(_0x23a71['ERROR_IMAGE_TYPE']));if(_0x66d0dc[_0x1ceceb(0x21a)]>Qo)return this[_0x1ceceb(0x4ae)](),Promise['reject'](new Error(_0x23a71[_0x1ceceb(0x320)]));try{const _0x3a9180=new FormData();_0x3a9180['append'](_0x1ceceb(0x1d1),_0x66d0dc);const _0x4a6d3a=this[_0x1ceceb(0x268)][_0x1ceceb(0x270)](),_0x218bc0=_0x4a6d3a==null?void 0x0:_0x4a6d3a['getUnitId']();if(!_0x218bc0)throw new Error('unitId\x20is\x20not\x20found');const _0x16c8b7=this['_getUploadFileURL']()+_0x1ceceb(0x354)+_0x66d0dc[_0x1ceceb(0x21a)][_0x1ceceb(0x328)]()+_0x1ceceb(0x25a)+ks[_0x1ceceb(0x382)]+_0x1ceceb(0x1c7)+encodeURIComponent(_0x218bc0),_0x1e5fdd=await(await fetch(_0x16c8b7,{'method':_0x1ceceb(0x42b),'body':_0x3a9180}))[_0x1ceceb(0x2e7)]();if(typeof _0x1e5fdd[_0x1ceceb(0x3d3)]!=_0x1ceceb(0x500))return this[_0x1ceceb(0x4ae)](),Promise[_0x1ceceb(0x3b6)](new Error(_0x23a71[_0x1ceceb(0x29c)]));_0x1e76c6=_0x1e5fdd[_0x1ceceb(0x3d3)];}catch{return this['_decreaseWaiting'](),Promise[_0x1ceceb(0x3b6)](new Error(_0x23a71['ERROR_IMAGE']));}return new Promise((_0x5025c6,_0x5acbe9)=>{const _0x116008=_0x1ceceb,_0xa193f2=new FileReader();_0xa193f2[_0x116008(0x49e)](_0x66d0dc),_0xa193f2['onload']=_0x37b66f=>{const _0x338f7c=_0x116008;var _0x5bf277;const _0xce1ac9=(_0x5bf277=_0x37b66f[_0x338f7c(0x22c)])==null?void 0x0:_0x5bf277[_0x338f7c(0x48e)];if(_0xce1ac9==null){this[_0x338f7c(0x4ae)](),_0x5acbe9(new Error(_0x23a71[_0x338f7c(0x29c)]));return;}const _0x13f844=_0xe487b1[_0x338f7c(0x32e)](0x6);_0x5025c6({'imageId':_0x13f844,'imageSourceType':_0x23cb04['UUID'],'source':_0x1e76c6,'base64Cache':_0xce1ac9,'status':_0x23a71[_0x338f7c(0x4a2)]}),this[_0x338f7c(0x4ae)]();};});}[_0xcc124c(0x52a)](){const _0x3a52bf=_0xcc124c;var _0x3e3db7,_0x2cca33;const _0x1dae0b=this[_0x3a52bf(0x3f6)][_0x3a52bf(0x463)](ea),_0xb3188a=this[_0x3a52bf(0x3f6)][_0x3a52bf(0x463)]($);return(_0x2cca33=(_0x3e3db7=_0xb3188a==null?void 0x0:_0xb3188a['uploadFileServerUrl'])!=null?_0x3e3db7:_0x1dae0b)!=null?_0x2cca33:ta;}['_getSignURL'](){const _0x8bba18=_0xcc124c;var _0x2982f0,_0x37da8e;const _0x32f17a=this[_0x8bba18(0x3f6)][_0x8bba18(0x463)](sa),_0x11f49e=this[_0x8bba18(0x3f6)][_0x8bba18(0x463)]($);return(_0x37da8e=(_0x2982f0=_0x11f49e==null?void 0x0:_0x11f49e[_0x8bba18(0x298)])!=null?_0x2982f0:_0x32f17a)!=null?_0x37da8e:ia;}[_0xcc124c(0x38d)](){const _0xd2e2a9=_0xcc124c;var _0x4e31e1;const _0x34d9fd=this[_0xd2e2a9(0x3f6)]['getConfig']($);return(_0x4e31e1=_0x34d9fd==null?void 0x0:_0x34d9fd[_0xd2e2a9(0x2fb)])!=null?_0x4e31e1:location[_0xd2e2a9(0x1e3)];}[_0xcc124c(0x3fe)](_0x34c032,_0xf74fb8){const _0x3e7f6f=_0xcc124c;return _0x34c032[_0x3e7f6f(0x319)](_0x3e7f6f(0x46e),_0xf74fb8);}['_decreaseWaiting'](){const _0x1e5b68=_0xcc124c;this[_0x1e5b68(0x3b9)]-=0x1,this['_change$'][_0x1e5b68(0x1cf)](this['_waitCount']);}};Ut=zo([pt(0x0,_0xa01556(_0x5f5876)),pt(0x1,_0xf5edd1),pt(0x2,_0xa01556(_0x4a621b))],Ut);var na=Object[_0xcc124c(0x2ad)],ra=Object[_0xcc124c(0x3f2)],oa=(_0x5463a7,_0x217569,_0x40d53e,_0x271ae0)=>{const _0x25bdbd=_0xcc124c;for(var _0x49e580=_0x271ae0>0x1?void 0x0:_0x271ae0?ra(_0x217569,_0x40d53e):_0x217569,_0x2c9aec=_0x5463a7[_0x25bdbd(0x236)]-0x1,_0x4b23ac;_0x2c9aec>=0x0;_0x2c9aec--)(_0x4b23ac=_0x5463a7[_0x2c9aec])&&(_0x49e580=(_0x271ae0?_0x4b23ac(_0x217569,_0x40d53e,_0x49e580):_0x4b23ac(_0x49e580))||_0x49e580);return _0x271ae0&&_0x49e580&&na(_0x217569,_0x40d53e,_0x49e580),_0x49e580;},ye=(_0x420f3a,_0x55e95c)=>(_0xae63c8,_0x1565ff)=>_0x55e95c(_0xae63c8,_0x1565ff,_0x420f3a);let et=class extends _0xb64757{constructor(_0x4e8661,_0x32be57,_0x166596,_0x3032b8,_0x5c9836){const _0x1326b6=_0xcc124c;super(),this['_injector']=_0x4e8661,this[_0x1326b6(0x268)]=_0x32be57,this[_0x1326b6(0x303)]=_0x166596,this[_0x1326b6(0x22f)]=_0x3032b8,this[_0x1326b6(0x51c)]=_0x5c9836,this[_0x1326b6(0x290)](),this['_initCloseConn']();}[_0xcc124c(0x45c)](){const _0x7810c=_0xcc124c,_0x1cc88f=async _0x1551f5=>{const _0xeaf83a=_0x293d;(await this[_0xeaf83a(0x22f)]['requireSession'](_0x1551f5))[_0xeaf83a(0x2b5)][_0xeaf83a(0x4f2)](_0x117995(_0x14bc00=>_0x14bc00['eventID']===_0x4b62d5['SHOULD_CLOSE_CONN']),_0x274b03(this[_0xeaf83a(0x31d)]))[_0xeaf83a(0x3ac)](_0x5804c4=>{const _0x1fa3ff=_0xeaf83a,_0x354377=_0x5804c4,{reason:_0x363c1f}=_0x354377['data'];this[_0x1fa3ff(0x2bb)]['get'](_0x354bae)['show']({'type':_0x41136d[_0x1fa3ff(0x420)],'content':this[_0x1fa3ff(0x51c)]['t'](_0x1fa3ff(0x4fa))+'('+_0x363c1f+')'}),this[_0x1fa3ff(0x303)][_0x1fa3ff(0x201)](new _0x5577c9(_0x1551f5)['id'],!0x1),this['_collaborationSessionService'][_0x1fa3ff(0x427)](_0x1551f5);});};_0x340e15(this['_univerInstanceService'][_0x7810c(0x3b7)](_0x4eff1c[_0x7810c(0x3e5)]),this[_0x7810c(0x268)][_0x7810c(0x3b7)](_0x4eff1c[_0x7810c(0x215)]))['pipe'](_0x493a42(_0xb724e=>_0xb724e[_0x7810c(0x43f)]()),_0x117995(_0x2891a5=>!_0x10f041(_0x2891a5)),_0x274b03(this['dispose$']))['subscribe'](_0x1f6135=>{_0x1cc88f(_0x1f6135);});}[_0xcc124c(0x290)](){const _0x460222=_0xcc124c,_0x22f4b1=async _0x13effe=>{const _0x3dccf2=_0x293d;(await this[_0x3dccf2(0x22f)][_0x3dccf2(0x2c7)](_0x13effe))[_0x3dccf2(0x2b5)][_0x3dccf2(0x4f2)](_0x117995(_0x42fef4=>_0x42fef4[_0x3dccf2(0x346)]===_0x4b62d5[_0x3dccf2(0x40a)]),_0x274b03(this[_0x3dccf2(0x31d)]))[_0x3dccf2(0x3ac)](_0x5a7f4a=>{const _0x141ef7=_0x3dccf2,_0x5024f2=_0x5a7f4a,{objectId:_0x50006c}=_0x5024f2[_0x141ef7(0x2a7)],_0x46380e=this[_0x141ef7(0x2bb)][_0x141ef7(0x4e6)](_0x1225bc);_0x50006c===_0x13effe?_0x46380e[_0x141ef7(0x254)](_0x13effe):_0x46380e[_0x141ef7(0x2ff)](_0x13effe,_0x50006c);});};_0x340e15(this[_0x460222(0x268)]['getTypeOfUnitAdded$'](_0x4eff1c[_0x460222(0x3e5)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4eff1c[_0x460222(0x215)]))[_0x460222(0x4f2)](_0x493a42(_0x40b871=>_0x40b871[_0x460222(0x43f)]()),_0x117995(_0x2a2005=>!_0x10f041(_0x2a2005)),_0x274b03(this[_0x460222(0x31d)]))[_0x460222(0x3ac)](_0x4cba45=>{_0x22f4b1(_0x4cba45);});}};et=oa([ye(0x0,_0xa01556(_0x3064b3)),ye(0x1,_0x4a621b),ye(0x2,_0x5e2e27),ye(0x3,_0xa01556(he)),ye(0x4,_0xa01556(_0x991281))],et);var aa=Object[_0xcc124c(0x2ad)],ca=Object['getOwnPropertyDescriptor'],ha=(_0x587ead,_0x39d6ca,_0x5bcbdc,_0x54cdf2)=>{const _0x42cabc=_0xcc124c;for(var _0x495552=_0x54cdf2>0x1?void 0x0:_0x54cdf2?ca(_0x39d6ca,_0x5bcbdc):_0x39d6ca,_0xd0792c=_0x587ead[_0x42cabc(0x236)]-0x1,_0x55bab3;_0xd0792c>=0x0;_0xd0792c--)(_0x55bab3=_0x587ead[_0xd0792c])&&(_0x495552=(_0x54cdf2?_0x55bab3(_0x39d6ca,_0x5bcbdc,_0x495552):_0x55bab3(_0x495552))||_0x495552);return _0x54cdf2&&_0x495552&&aa(_0x39d6ca,_0x5bcbdc,_0x495552),_0x495552;},vs=(_0xec9fb6,_0x337019)=>(_0x15cb4c,_0x5b9538)=>_0x337019(_0x15cb4c,_0x5b9538,_0xec9fb6);let Nt=class{constructor(_0xd09d0e,_0x2a4974){const _0x3d6403=_0xcc124c;this['_configService']=_0xd09d0e,this[_0x3d6403(0x3aa)]=_0x2a4974;}async[_0xcc124c(0x532)](_0x10bdcc,_0x588a86){const _0xb60b60=_0xcc124c;var _0x394e78;const {unitID:_0x16d864,type:_0x22914b,revision:_0x3303f6=0x0}=_0x588a86,_0x4a48ae=this[_0xb60b60(0x1d4)]()+'/'+_0x22914b+_0xb60b60(0x495)+_0x16d864+_0xb60b60(0x264)+_0x3303f6,_0x33073b=(await this[_0xb60b60(0x3aa)][_0xb60b60(0x4e6)](_0x4a48ae))['body'],_0x20a281=(_0x394e78=_0x33073b[_0xb60b60(0x384)])==null?void 0x0:_0x394e78[_0xb60b60(0x454)];if(_0x20a281){const _0x918d27=_0x20a281==null?void 0x0:_0x20a281['originalMeta'],_0xf02255=_0x433da2[_0xb60b60(0x3b2)](_0xbce4bb(_0x918d27));_0x20a281[_0xb60b60(0x1d2)]=_0xf02255,Object[_0xb60b60(0x229)](_0x20a281[_0xb60b60(0x2d5)])[_0xb60b60(0x3d5)](([,_0x218d91])=>{const _0x4bd7e9=_0xb60b60,_0x14d96e=_0x218d91[_0x4bd7e9(0x1d2)],_0x1edb03=_0x433da2[_0x4bd7e9(0x3b2)](_0xbce4bb(_0x14d96e));_0x218d91[_0x4bd7e9(0x1d2)]=_0x1edb03;});}return _0x33073b;}async[_0xcc124c(0x432)](_0x2a13b4,_0x58f168){const _0x2c8774=_0xcc124c,{unitID:_0xafaf72,type:_0x3ca0b7,blockID:_0x6c9348}=_0x58f168,_0x488616=this['_getAPIPrefix']()+'/'+_0x3ca0b7+_0x2c8774(0x495)+_0xafaf72+'/block/'+_0x6c9348;return(await this[_0x2c8774(0x3aa)][_0x2c8774(0x4e6)](_0x488616))[_0x2c8774(0x2b7)];}async[_0xcc124c(0x477)](_0x133539,_0x57f5d5){const _0x48e9ac=_0xcc124c,{unitID:_0x263877,type:_0x5ab5d4,blockID:_0x5d8e43}=_0x57f5d5,_0x2bde5e=this['_getAPIPrefix']()+_0x48e9ac(0x29a)+_0x5ab5d4+'/unit/'+_0x263877+_0x48e9ac(0x29a)+_0x5d8e43;return(await this[_0x48e9ac(0x3aa)][_0x48e9ac(0x4e6)](_0x2bde5e))[_0x48e9ac(0x2b7)];}async[_0xcc124c(0x312)](_0x29a975,_0x540c3f){const _0x9dbb28=_0xcc124c,{unitID:_0x4cd280,type:_0x366ae8,from:_0x3a51ec,to:_0x5ccc4f}=_0x540c3f,_0xf3f0cd=this[_0x9dbb28(0x359)]()+'/'+_0x366ae8+_0x9dbb28(0x495)+_0x4cd280+'/fetchmissing?from='+_0x3a51ec+'&to='+_0x5ccc4f;return(await this[_0x9dbb28(0x3aa)][_0x9dbb28(0x4e6)](_0xf3f0cd))[_0x9dbb28(0x2b7)];}[_0xcc124c(0x1d4)](){const _0x16fe4e=_0xcc124c;var _0x1e0922;return(_0x1e0922=this['_configService'][_0x16fe4e(0x463)](Cn))!=null?_0x1e0922:this[_0x16fe4e(0x359)]();}['_getAPIPrefix'](){const _0x47090f=_0xcc124c;var _0x500782,_0x3f3e4b;const _0x60cab=this['_configService'][_0x47090f(0x463)](In),_0x273db9=this[_0x47090f(0x3f6)][_0x47090f(0x463)]($);return(_0x3f3e4b=(_0x500782=_0x273db9==null?void 0x0:_0x273db9['snapshotServerUrl'])!=null?_0x500782:_0x60cab)!=null?_0x3f3e4b:En;}async[_0xcc124c(0x480)](_0x51bb92,_0x59c76f){const _0x2bb091=_0xcc124c,_0x1b21c5='/universer-api/snapshot/'+_0x59c76f[_0x2bb091(0x23d)]+'/unit/'+_0x59c76f[_0x2bb091(0x38f)]+_0x2bb091(0x2d7);return(await this[_0x2bb091(0x3aa)][_0x2bb091(0x4e6)](_0x1b21c5,{'params':{'resourceId':JSON[_0x2bb091(0x234)](_0x59c76f[_0x2bb091(0x275)])}}))[_0x2bb091(0x2b7)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xcc124c(0x36f)](){const _0x35c8b9=_0xcc124c;throw new Error(_0x35c8b9(0x4bc));}[_0xcc124c(0x4ed)](){const _0x507019=_0xcc124c;throw new Error(_0x507019(0x4bc));}[_0xcc124c(0x260)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xcc124c(0x3db)](){const _0x497d1f=_0xcc124c;throw new Error(_0x497d1f(0x4bc));}};Nt=ha([vs(0x0,_0xf5edd1),vs(0x1,_0xa01556(_0x5f5876))],Nt);var la=Object['defineProperty'],_a=Object[_0xcc124c(0x3f2)],ua=(_0x144354,_0x2c8c4b,_0x1e5978,_0x9e4c7f)=>{const _0x13bd4e=_0xcc124c;for(var _0x2dabb2=_0x9e4c7f>0x1?void 0x0:_0x9e4c7f?_a(_0x2c8c4b,_0x1e5978):_0x2c8c4b,_0x5657e3=_0x144354[_0x13bd4e(0x236)]-0x1,_0x35c70a;_0x5657e3>=0x0;_0x5657e3--)(_0x35c70a=_0x144354[_0x5657e3])&&(_0x2dabb2=(_0x9e4c7f?_0x35c70a(_0x2c8c4b,_0x1e5978,_0x2dabb2):_0x35c70a(_0x2dabb2))||_0x2dabb2);return _0x9e4c7f&&_0x2dabb2&&la(_0x2c8c4b,_0x1e5978,_0x2dabb2),_0x2dabb2;},Ue=(_0x486fa6,_0x1378c7)=>(_0x10eef3,_0x2bd828)=>_0x1378c7(_0x10eef3,_0x2bd828,_0x486fa6);let Mt=class extends _0xfad8ce{constructor(_0x4dea0b,_0x138f71,_0x258695,_0x48dee9,_0x1c7262){const _0x1ba27a=_0xcc124c;super(_0x4dea0b,_0x138f71,_0x258695),this['_transformService']=_0x48dee9,this[_0x1ba27a(0x1b0)]=_0x1c7262;}['transformUndoRedo'](_0x405109,_0x1a10a9){const _0x1b93ff=_0xcc124c,_0x3f91e6=this[_0x1b93ff(0x3e1)](_0x405109);if(_0x3f91e6)try{const _0x537cd3=this['_transformStack'](_0x3f91e6,_0x1a10a9);this[_0x1b93ff(0x209)](_0x405109,_0x537cd3);}catch(_0x47cb3c){this[_0x1b93ff(0x1b0)][_0x1b93ff(0x1b3)]('[CollaborationUndoRedoService]',_0x47cb3c),this[_0x1b93ff(0x36d)](_0x405109);}const _0x263cd9=this[_0x1b93ff(0x45f)](_0x405109);if(_0x263cd9)try{const _0xe6a9eb=this[_0x1b93ff(0x3ab)](_0x263cd9,_0x1a10a9);this[_0x1b93ff(0x1bb)](_0x405109,_0xe6a9eb);}catch(_0x499973){this[_0x1b93ff(0x1b0)][_0x1b93ff(0x1b3)](_0x499973),this[_0x1b93ff(0x3b1)](_0x405109);}}['_clearUndo'](_0x7b8d8f){const _0x5a8704=_0xcc124c,_0x4e6a45=this[_0x5a8704(0x3e1)](_0x7b8d8f);_0x4e6a45&&(_0x4e6a45[_0x5a8704(0x236)]=0x0,this[_0x5a8704(0x41a)]());}[_0xcc124c(0x3b1)](_0x35d4fb){const _0x534a85=_0xcc124c,_0x32c873=this[_0x534a85(0x45f)](_0x35d4fb);_0x32c873&&(_0x32c873[_0x534a85(0x236)]=0x0,this[_0x534a85(0x41a)]());}['_substituteUndoStack'](_0x3fcff6,_0x1b2bd8){const _0x274d83=_0xcc124c;this[_0x274d83(0x32a)][_0x274d83(0x4d8)](_0x3fcff6,_0x1b2bd8),this[_0x274d83(0x41a)]();}['_substituteRedoStack'](_0x4b714f,_0x59c4e5){const _0x42e396=_0xcc124c;this[_0x42e396(0x3f5)][_0x42e396(0x4d8)](_0x4b714f,_0x59c4e5),this['_updateStatus']();}[_0xcc124c(0x3ab)](_0x2a82ba,_0x3cd163){const _0x9e37a=_0xcc124c,_0x2fa358=[];let _0x1be5a6=_0x3cd163,_0x18461e=_0x3cd163;for(let _0x49aca5=_0x2a82ba[_0x9e37a(0x236)]-0x1;_0x49aca5>=0x0;_0x49aca5--){const {unitID:_0x480961,undoMutations:_0x31af19,redoMutations:_0x5187c1}=_0x2a82ba[_0x49aca5],_0x5058f7=this['_transformService'][_0x9e37a(0x1e2)](_0x1be5a6,_0x31af19),_0x455ba1=this[_0x9e37a(0x4bb)][_0x9e37a(0x1e2)](_0x18461e,_0x5187c1);if(_0x115074(_0x5058f7)||_0x115074(_0x455ba1)){this[_0x9e37a(0x1b0)][_0x9e37a(0x1b3)](_0x9e37a(0x44c),_0x9e37a(0x287),_0x5058f7,_0x455ba1);break;}_0x1be5a6=_0x5058f7['c1Prime'],_0x18461e=_0x455ba1[_0x9e37a(0x245)],_0x2fa358[_0x9e37a(0x4c7)]({'unitID':_0x480961,'undoMutations':_0x5058f7['m2Prime'],'redoMutations':_0x455ba1[_0x9e37a(0x4f3)]});}return _0x2fa358[_0x9e37a(0x310)]();}};Mt=ua([Ue(0x0,_0x4a621b),Ue(0x1,_0x4ba546),Ue(0x2,_0x3dbf38),Ue(0x3,_0x279fb0),Ue(0x4,_0x40bb6c)],Mt);class da extends _0xb64757{constructor(){const _0x1696f4=_0xcc124c;super(),l(this,_0x1696f4(0x333)),this[_0x1696f4(0x333)]=_0x24365b(window,_0x1696f4(0x21e))['pipe'](_0x2cf076(this[_0x1696f4(0x31d)]),_0x1748c0(0x1),_0xfe2ad(void 0x0));}[_0xcc124c(0x1c8)](_0x3cc5da,_0x3b854d,_0x527096=!0x1){const _0x526061=_0xcc124c,_0xfb6f4e=new URL(window[_0x526061(0x4f4)][_0x526061(0x3ae)]);_0xfb6f4e[_0x526061(0x31b)][_0x526061(0x4d8)](_0x3cc5da,_0x3b854d),_0x527096?window[_0x526061(0x278)][_0x526061(0x505)]('','',_0xfb6f4e['toString']()):window[_0x526061(0x278)][_0x526061(0x295)]('','',_0xfb6f4e[_0x526061(0x328)]());}['removeParam'](_0x58bf35,_0x4d5278=!0x1){const _0x428d6a=_0xcc124c,_0x3121fb=new URL(window['location']['href']);_0x3121fb[_0x428d6a(0x31b)][_0x428d6a(0x3bd)](_0x58bf35),_0x4d5278?window[_0x428d6a(0x278)][_0x428d6a(0x505)]('','',_0x3121fb['toString']()):window['history']['pushState']('','',_0x3121fb['toString']());}['getParam'](_0x2ce445){const _0x4df4f3=_0xcc124c;var _0x4c2dd5;return(_0x4c2dd5=new URL(window[_0x4df4f3(0x4f4)][_0x4df4f3(0x3ae)])['searchParams'][_0x4df4f3(0x4e6)](_0x2ce445))!=null?_0x4c2dd5:void 0x0;}}var Qs=Object[_0xcc124c(0x2ad)],ma=Object[_0xcc124c(0x3f2)],fa=(_0x55336a,_0x200719,_0x2c64c8)=>_0x200719 in _0x55336a?Qs(_0x55336a,_0x200719,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c64c8}):_0x55336a[_0x200719]=_0x2c64c8,ga=(_0x1a1dba,_0x580df3,_0x960600,_0x3ea871)=>{const _0x216a29=_0xcc124c;for(var _0x4d49c9=_0x3ea871>0x1?void 0x0:_0x3ea871?ma(_0x580df3,_0x960600):_0x580df3,_0x355cb5=_0x1a1dba[_0x216a29(0x236)]-0x1,_0x2ea72b;_0x355cb5>=0x0;_0x355cb5--)(_0x2ea72b=_0x1a1dba[_0x355cb5])&&(_0x4d49c9=(_0x3ea871?_0x2ea72b(_0x580df3,_0x960600,_0x4d49c9):_0x2ea72b(_0x4d49c9))||_0x4d49c9);return _0x3ea871&&_0x4d49c9&&Qs(_0x580df3,_0x960600,_0x4d49c9),_0x4d49c9;},Ve=(_0x169255,_0x453718)=>(_0x27f5d2,_0x300fdd)=>_0x453718(_0x27f5d2,_0x300fdd,_0x169255),Sa=(_0x4189b4,_0x57056f,_0x18d26c)=>fa(_0x4189b4,_0x57056f+'',_0x18d26c);const pa=_0xcc124c(0x1cb);let At=class extends _0x1c5106{constructor(_0x3438bc=jn,_0x250551,_0x52c4d3,_0x2854a7,_0x37dcee){const _0x1e8ba9=_0xcc124c;super(),this[_0x1e8ba9(0x4ef)]=_0x3438bc,this['_logService']=_0x250551,this[_0x1e8ba9(0x4d5)]=_0x52c4d3,this[_0x1e8ba9(0x2bb)]=_0x2854a7,this['_configService']=_0x37dcee;const {..._0x4c56aa}=this['_config'];this[_0x1e8ba9(0x3f6)][_0x1e8ba9(0x30f)]($,_0x4c56aa);}['onStarting'](){const _0x1eadc8=_0xcc124c;this[_0x1eadc8(0x325)](),_0x1f3c54(this[_0x1eadc8(0x2bb)],[[ve],[Je],[et]]);}[_0xcc124c(0x243)](){_0x1f3c54(this['_injector'],[[ze]]);}[_0xcc124c(0x240)](){const _0x4bb4b7=_0xcc124c;this[_0x4bb4b7(0x23c)]();}['_registerDependencies'](){const _0x37857d=_0xcc124c;var _0x30c1dd,_0x4e3e59,_0x10300a,_0xd630e;this[_0x37857d(0x2bb)][_0x37857d(0x449)](_0x48fa5b)&&this[_0x37857d(0x1b0)]['error'](_0x37857d(0x493),_0x37857d(0x26d));let _0x300e4a=[[_0x48fa5b,{'useClass':Mt}],[he],[Gt],[_0x5f5876],[Zs,{'useClass':da}],[ce],[w],[_0x153f02],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Vs],[et],[Bs,{'useClass':(_0x4e3e59=(_0x30c1dd=this[_0x37857d(0x4ef)])==null?void 0x0:_0x30c1dd[_0x37857d(0x28a)])!=null?_0x4e3e59:Ct}],[_0x3519ca,{'useClass':_0x291f9f}],[_0x56f9b0,{'useClass':Nt}],[_0x5da645,{'useClass':yt}],[_0x11079a,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x10300a=this['_config'])!=null&&_0x10300a[_0x37857d(0x2f2)]&&_0x300e4a[_0x37857d(0x4c7)]([tt,{'useClass':Sr}]),_0x300e4a=_0x5c5104(_0x300e4a,(_0xd630e=this[_0x37857d(0x4ef)])==null?void 0x0:_0xd630e[_0x37857d(0x4a9)]),_0x300e4a[_0x37857d(0x3d5)](_0x1d7a15=>this['_injector'][_0x37857d(0x266)](_0x1d7a15)),this['_initModules']();}[_0xcc124c(0x23c)](){const _0x45bd5f=_0xcc124c;this[_0x45bd5f(0x379)](this[_0x45bd5f(0x4d5)][_0x45bd5f(0x3c1)](_0x4eff1c['UNIVER_DOC'],[wt])),this[_0x45bd5f(0x379)](this['_renderManagerService'][_0x45bd5f(0x3c1)](_0x4eff1c[_0x45bd5f(0x3e5)],[Pt]));}[_0xcc124c(0x4a0)](){const _0x13364a=_0xcc124c;var _0x5ced08,_0x395cde;this[_0x13364a(0x2bb)]['get'](_0x5f5876)[_0x13364a(0x3fa)]({'priority':0x14,'interceptor':_0x563a08({'maxParallel':0x6})}),this[_0x13364a(0x2bb)][_0x13364a(0x4e6)](Qe),(_0x5ced08=this[_0x13364a(0x4ef)])!=null&&_0x5ced08['enableOfflineEditing']||this['_injector'][_0x13364a(0x4e6)](w)[_0x13364a(0x1b1)](),(_0x395cde=this['_config'])!=null&&_0x395cde['enableAuthServer']&&this['_injector']['get'](Ze),this[_0x13364a(0x2bb)][_0x13364a(0x4e6)](Le),this[_0x13364a(0x2bb)][_0x13364a(0x449)](Me)&&this['_injector'][_0x13364a(0x4e6)](Me);}};Sa(At,'pluginName',pa),At=ga([_0x101b14(_0x2dc182),Ve(0x1,_0x40bb6c),Ve(0x2,_0x739b15),Ve(0x3,_0xa01556(_0x3064b3)),Ve(0x4,_0xf5edd1)],At);export{Fo as AUTHZ_URL_KEY,yt as AuthzIoHttpService,Mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,To as CollaborationStatusDisplay,Vs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,js as HEARTBEAT_TIMEOUT_KEY,Bs as ICollaborationSocketService,Zs as IURLService,Ut as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,w as LocalCacheService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,Y as SessionStatus,no as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};
1
+ const _0x173fa3=_0x33c3;(function(_0x308a22,_0x93585a){const _0x235e76=_0x33c3,_0x47d01d=_0x308a22();while(!![]){try{const _0x136324=-parseInt(_0x235e76(0x1d7))/0x1*(-parseInt(_0x235e76(0x1cc))/0x2)+-parseInt(_0x235e76(0x195))/0x3*(parseInt(_0x235e76(0x2d1))/0x4)+parseInt(_0x235e76(0x1f0))/0x5*(-parseInt(_0x235e76(0x492))/0x6)+parseInt(_0x235e76(0x3ae))/0x7*(-parseInt(_0x235e76(0x38e))/0x8)+-parseInt(_0x235e76(0x2e3))/0x9*(-parseInt(_0x235e76(0x467))/0xa)+parseInt(_0x235e76(0x301))/0xb+parseInt(_0x235e76(0x503))/0xc;if(_0x136324===_0x93585a)break;else _0x47d01d['push'](_0x47d01d['shift']());}catch(_0x57f99a){_0x47d01d['push'](_0x47d01d['shift']());}}}(_0x29b0,0x75f5c));var oi=Object[_0x173fa3(0x309)],ai=(_0x4db46d,_0x55f513,_0x329459)=>_0x55f513 in _0x4db46d?oi(_0x4db46d,_0x55f513,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x329459}):_0x4db46d[_0x55f513]=_0x329459,l=(_0x46a354,_0x45c212,_0x409313)=>ai(_0x46a354,typeof _0x45c212!=_0x173fa3(0x1b9)?_0x45c212+'':_0x45c212,_0x409313);import{createIdentifier as _0x1a0c31,Inject as _0x4f7ed2,Disposable as _0x1ed84d,DisposableCollection as _0x1f9c9d,toDisposable as _0x4a9188,IConfigService as _0x13b27e,ILogService as _0x4329b1,UserManagerService as _0x12c9bc,UniverInstanceType as _0x159e2d,IUniverInstanceService as _0x1e8ecc,LocaleService as _0x15839b,Optional as _0x532e88,RxDisposable as _0x13ba8e,Injector as _0x3b0750,Tools as _0x58e8f0,ILocalStorageService as _0x71f972,Rectangle as _0xa8b8a6,ICommandService as _0xdec94a,DOC_RANGE_TYPE as _0x46c3b0,JSONX as _0xdfd23e,CommandType as _0x12b588,IPermissionService as _0x8f100a,IUndoRedoService as _0x57ccc3,sequenceExecute as _0x24a976,debounce as _0x2d1802,COLORS as _0x51afa6,ColorKit as _0x88bd29,ThemeService as _0x1810fb,fromEventSubject as _0x3c7358,useDependency as _0x5b7ccb,connectInjector as _0x426f7f,Workbook as _0x1b1252,isInternalEditorID as _0xfab1d1,LocalUndoRedoService as _0x2bc6cc,IContextService as _0x163dc9,DependentOn as _0xf1d54,Plugin as _0x3ddd75,touchDependencies as _0x3b1166,IAuthzIoService as _0x588b6d,mergeOverrideWithDependencies as _0x401096}from'@univerjs/core';import{Subject as _0x54d3a4,merge as _0x378f3d,takeUntil as _0x223895,BehaviorSubject as _0x37b5ce,distinctUntilChanged as _0x38f940,fromEvent as _0x25f31e,ReplaySubject as _0x5c8a52,take as _0x13b5e9,map as _0x4afa33,shareReplay as _0x5fb4e1,of as _0x2ad1bd,debounceTime as _0x1fc3db,filter as _0x496185,switchMap as _0x3b6e12,combineLatest as _0x550795,concatMap as _0x2bf06b,mapTo as _0x5297dd}from'rxjs';import{map as _0x595c33,take as _0x4b16ab,filter as _0x3f9fc1,delay as _0xd71fd1,throttleTime as _0x46eb5a,takeUntil as _0x54b271,switchMap as _0x4b9d13}from'rxjs/operators';import{MessageType as _0x180cc7,Tooltip as _0x523a7c}from'@univerjs/design';import{IBeforeCloseService as _0x3b10e0,IMessageService as _0x46e149,INotificationService as _0x21df64,useObservable as _0x1866fc,BuiltInUIPart as _0x185249,IUIPartsService as _0x49f7f8}from'@univerjs/ui';import{HTTPService as _0x33691b,WebSocketService as _0x424bbf,MergeInterceptorFactory as _0x5a1e35,HTTPRequest as _0x20d999,IHTTPImplementation as _0x15deac,XHRHTTPImplementation as _0x13c3e0,ThresholdInterceptorFactory as _0x2fe6df}from'@univerjs/network';import{CollaborationEvent as _0x5f441e,parseChangesetToProtocol as _0x2c88b3,ISnapshotServerService as _0x5dfd2d,isTransformMutationFailure as _0x44527a,isTransformMutationsWithChangesetSuccess as _0x2c439f,ITransformService as _0x4a8bc3,RevisionService as _0x6cbd2e,mapDocumentTypeToUniverType as _0x4c831a,isTransformChangesetsSuccess as _0xec58bb,CompressMutationService as _0x413548,parseProtocolChangeset as _0x4ecc3b,SnapshotService as _0x4c83fe,textEncoder as _0x206e33,b64DecodeUnicode as _0x346f8f,isTransformMutationsWithChangesetFailure as _0x5a59dd,UniverCollaborationPlugin as _0x3ee7ed}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x41517f}from'@univerjs/telemetry';function _0x29b0(){const _0x3f0d4b=['getImage','get','collaMsg','[SyncedState]:\x20received\x20acknowledgement.','/-/object/list','SNAPSHOT_INVALID_SNAPSHOT','transformChangesets','removeParam','setShapeProps','uploadFileServerUrl','textRanges','unitId\x20is\x20not\x20found','getRangePointData','min','getUniverSheetInstance','Unknown\x20user','popstate','visibilitychange','red300','onStarting','state$','body','_ws','[DataLoaderController]','sid','_queuedRemoteChangesets','downloadEndpointUrl','_joinRoom','attrs','_resendTimer','FileId','requestParams','_onRecvEvent','set','_isPermissionRej','APPLY_DUPLICATED','OffLineSingle','_saveTaskMap','isEditing','addObjects','APPLY_NON_SEQUENTIAL_REVISION','subscribe','_hovered','UUID','disposeUnit','_collabSessionService','_uiPartsService','assignAColorForMemberID','_univerInstanceService','href','setWaitCount','transformByState','_renderManagerService','cmd','getTime','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_beforeCloseService','onTransformRemoteChangesetByIMECache','uni.network.url-service','_resendWithTimeout','awaitingChangeset','session.connection-failed','_collaborationPaused','_cursors','_onCombEvent','MoveRangeCommandId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onTransformSelections','collabStatus.offline','hasOwnProperty','_collabCursorController','onCommandExecuted','_sheetSkeletonManagerService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','LIVESHARE_NEW_HOST','_getUploadFileURL','_labelPosition','_checkMissing','OFFLINE','data','_updateSubUnitFromURLParams','createCollaborator','_id','init','startsWith','rgba(255,\x20255,\x20255,\x200.01)','collabStatus.conflict','getParam','_getAnchorBounding','encode','awaiting','getSkeleton','objectID','onRemoteAck','_commentService','copyFileMeta','_onMessage','_replayCachedMutations','updateMember','objectType','_backgroundColor','subunit','moveTo','_onJoinRoomEvent','closeSession','_assignedColors','_colorAssignService','objectActions','_removeRoom','urlChange$','focused$','_transformPreviousActiveRange','has','_transformUndoredo','NOT_COLLAB','headers','_socketMessageSubscription','editing\x20status\x20changed\x20to','_tryEnsureSocket','_clearScheduledTask','_getRedoStack','delete','getRelativeToViewportCoord','/universer-api/stream/file/upload','/universer-api/authz','_entityInit$','getInterceptPoints','reverse','_startCollaboration','m1Prime','socket\x20open.','_startTelemetryCollaborationNewChangeset','image/jpeg','collaboration-session-retry','fetchThroughInterceptors','endRow','Warning','_cursorShapes','joinEvent','_instanceService','setAlpha','appendMutation','_registerDependencies','_scheduleSaving','color','SUBMIT_CHANGESET','hovered','getSheetBySheetId','_lastPointer','visibilityState','top','_session','_revisionService','HEARTBEAT','sheetID','translate(.97)','now','MUTATION','icon','syncEditingCollabCursor','getCurrentRevOfUnit','_render','all','params','clipPath','20SQilKR','getRenderById','url(#$1','FromArray','_getSheetObject','InsertRangeMoveRightCommandId','size','text','PSEUDO_FETCH_MISSING_RESULT','call','_undoRedoService','LIVESHARE_TERMINATE','INGEST','append','catch','csAckEvent','round','onPointerLeave$','getLatestCsReqIdBySid','transformRemoteChangeset','result','leaveEvent','_sendHeartbeat','forEach','...','not_collab','getOwnPropertySymbols','collab-text-anchor-','clear','liveShareOperation','/object/','_collaborationController','assign','_createInitialStateImpl','ws://127.0.0.1:8000/universer-api/comb/connect','reduce','fromCollab','beginPath','memberID','getUndoRedoMutationParamsCache','_onLocalMutation','permission.title','unit-cache-','90VNetzC','event$','_sheetTransformSelectionsService','revision','_handleEvent','current','isArray','_getCtorByUniverType','_setupSubUnitSync','_startDocCollabCursor','origin','registerRenderModule','image/jpg','_removeClearOtherTimer','_replaceFileID','_getDownloadEndpointURL','FETCH_MISSING','_docStateChangeManagerService','HEADER_MENU','setTimeout','_handleHeartbeatEvent','toggleOnline','_transformRemoteChangesetByIMECache','isActive','_shouldReportTelemetry','univer-online-status-icon','_scene','_initCloseConn','_onRefRangeChange','session.will-retry','svg','univerjs-icon\x20univerjs-icon-','_resendTimeout','_tryReconnect','black','USERS_LEAVE','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_injector','lineTo','CHANGESET_SHOULD_RETRY','_commentUpdate$','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','UNKNOWN_CMD','collaboration-client.config','_sendHeartbeatTimer','path','RemoveRowCommandId','getItem','getConfig','enableOfflineEditing','setUndoRedoMutationParamsCache','_onConnectionOpen','TEXT','deepClone','_clearRedo','setConfig','0\x200\x2017\x2016','searchParams','pushState','mutations','collabCursorState$','rev','_pendingMutations','random','session','baseRev','collabStatus.notCollab','getOwnPropertyDescriptor','put','InsertRangeMoveDownCommandId','MSG_FOR_ERROR','/role','initWorkbookPermissionChange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getAncestorScale','refreshPermission','fillText','_initMergeInterceptor','setItem','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_socketService','readAsDataURL','_snapshotServerService','[CollaborationSessionService]','_initModules','onPointerEnter$','close$','saveImage','_hideTimer','_initStatusComponent','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationSessionService]:\x20socket\x20error','_socketReady','_transformUndoRedoStack','substring','colorChannel1','_candidateSocket','fillStyle','_onRemoteACK','JOIN','_refreshCollabCursors','engine','Error\x20on\x20receiving\x20event','_shapes','UNIVER_SHEET','height','editingUnit','collabWebSocketUrl','split','liveShareNewHost','_acknowledgedAwaitingChangeset','COLLAB_WEB_SOCKET_URL','FETCH_MISS','2210748JvtjNk','collaborators','[PendingState]:\x20received\x20rejection.','_onCursorUpdate','_scheduleTimestamp','pauseCollaboration','Undefined','routeKey','getMember','_type','/unit/','getUnitType','open$','_transitionLocked','_httpService','arc','#fff','_imageSourceCache','[UniverCollaborationClientPlugin]','listRoles','putCollaborators','CHANGESET_ACK','unsubscribe','flatMap','_remoteChangesetQueue','fill','activeSheet$','disposeWithMe','measureText','15WjIHlK','getMergeData','m2Prime','currentTheme$','row','_syncEditingCollabCursor','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','?url=','_eventUnsubscribe','CONFLICT','xlink:href','getCellPositionByOffset','SNAPSHOT_HAS_BEEN_REMOVED','INVALID_ARGUMENT','parse','cursorInfo$','randomUUID','HELLO','deleteCollaborator','every','apply','_ensureSubject','_updateLocalCache','_onRemoteRejected','patch','docStateChange$','_collabCursorState$','onRemoteRetry','_toggleOffline','DEFAULT_FILE_NAME','_anchorDot','UNAUTHENTICATED','roles','authzUrl','isPermissionRej','_saveCache','symbol','online','_heartbeatTimer','telemetry\x20info\x20is\x20not\x20initialized','onTransformChange$','save\x20fail\x20reason\x20is\x20','_event$','_state$','addImageSourceCache','_listenToOnlineEvent','actions','Error','updatePermissionPoint','none','_onConflict','roomMembers$','_memberService','concat','bind','160794FbaCRT','_singleActiveUnitService','_handleJoinEvent','on-line-single_clip0_910_349','_permissionService','resend','executeCommand','UPDATE_CURSOR','_loadDoc','univer-online-status-title','YUUMI_SUBSCRIPTION_NOT_FOUND','3ZbzxQM','permission.content','idSuffix','push','purple300','_clearOtherTimers','onlineStatusTitle','_clearHeartbeatTimer','_onFetchMissResult','file','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onMissingChangesets','_createInitialState','/universer-api/file/{fileID}/sign-url','synced','show','onPointerMove$','currentSkeleton$','allowed','create','ERROR_EXCEED_SIZE','onlineStatusIcon','onMissedChangesetFetched','use','LICENSE_IMPORT_SIZE_EXCEEDED','162245ZejQUH','range','localeService','loginUrlKey','find','ranges','trim','message$','_initUnitPermissionChange','endColumn','_context','saveSheetBlock','\x20-\x20','univer-pro.collaboration-client-socket-service','TOO_MANY_REQUESTS','_localStorageService','_color','transformUndoRedo','INTERNAL_ERROR','_initRequestHeader','map','_configService','div','HttpExport','LICENSE_DISTRO_REJECTED','/collaborator','[OfflineState]:\x20received\x20changeset.','entries','ACTIVE_UNIT_EVENT_CHANNEL','includes','M0\x200H16V16H0z','_refRangeService','auth.needGotoLoginAlert','_online','IDLE','_retryCount','_document','string','LICENSE_MAX_UNITS_EXCEEDED','unitId','_getSnapshotAPIPrefix','width','action','sessionStatus','session.room-full','_getSendChangesetTimeout','_startSheetCollabCursor','doc.mutation.rich-text-editing','0\x200\x2016\x2016','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','change$','length','saveSnapshot','_clearLocalCache','awaiting_with_pending','_notificationService','onRemoteChangeset','[CollaborationEntity]','UNKNOWN_CODE','_throwTelemetryCollaborationNewChangeset','UnitSnapshot','onReady','addEventListener','getTypeOfUnitAdded$','newCsEvent','pluginName','onMouseMove','/rev/','updateOfflineData','offline','_decreaseWaiting','indexOf','getCollabCursors$','_roomMembers','unitID','unshift','commentUpdate$','_toggleOnline','_retryConnectingTimer','[FetchMissState]','key','capture','_range','UNIVER_SLIDE','selection','_messageService','_getCurrentRevision','_telemetryService','restore','_awaitingChangeset','history','_docTransformSelectionsService','FAIL','collabStatus.syncing','1em','some','ALREADY_EXISTS','_anchor','NO_OTHER_CLIENTS_EDITING','getUnitId','_cursorInfo$','ERROR_IMAGE_TYPE','exhaustSavingTask','[OfflineState]:\x20received\x20acknowledgement.','_updateState','/object','loadDoc','LIVESHARE_REQUEST_HOST','PENDING','CHANGESET_REJ','_changesetReqId','updateCollaborator','_getUndoStack','_disableEditing','connection\x20error','ONLINE','collaboration_new_changeset','joinRsp','_disabled','drawWith','_name','_redoStacks','RETRY_CONNECTING_MAX_COUNT','_transformStack','pending','_selfUnitIDs','RECT','YUUMI_UNABLE_LOAD_URL','_updateURLWithCurrentState','reqId','_getAPIPrefixPath','DeleteRangeMoveUpCommandId','RemoveColCommandId','LEAVE','univer-online','onRemoteRej','eventID','getCurrentUnitForType','url','registerHTTPInterceptor','_timeoutTimer','_docSyncEditingCollabCursorService','{fileID}','_stopTelemetryCollaborationNewChangeset','onTransformIME','subscribeEvent','OnLineSingle','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','name','off-line-single_clip0_910_343','_docTransformIMECacheService','selections','evenodd','post','debug','originalMeta','from','interceptor','status$','resize','replaceState','defs','_localCacheService','SYNCED','_sendingTimer','Univer','SHOULD_CLOSE_CONN','retryConnectingInterval','onload','_getSaveTimeout','setCurrentUser','USERS_ENTER','clearTimeout','_initCommandExecutedListener','signUrlServerUrl','resolve','ERROR_IMAGE','dispose$','/new_changes','_scheduleHeartbeat','_colorIndex','_onOffline','getCurrent','_drawTextRange','YUUMI_RATE_OVER_LIMIT','_onCursorDelete','submit\x20changeset\x20error!','send','children','_applyRemoteChangeset','hide','fetch_missing','_onRemoteChangeset','conflict','reject','_themeService','url(#on-line-single_clip0_910_349)','extend','startRow','whenReady','fetching\x20missing\x20changesets\x20from\x20','_cursor','disableLocalCache','_initResize','getValue','_lockTransition','clearInterval','sheetId','dispose','_removeCollabCursors','_http','getUnit','onlineStatus','error$','_unlockTransition','_updateCollabCursors','src','tag','_incrementRevisionNumber','_onUserLeave','commentUpdateEvent','_logService','_sender','_sessions','next','155216ZvxXFW','ENSURE_SNAPSHOT_EXECUTION','_roomMembers$','getRandomValues','_entities','_handleLeaveEvent','_registerRenderDependencies','[CollaborationUndoRedoService]','labelPosition','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_HTTPService','_scheduleClearOtherTimer','[SyncedState]:\x20received\x20rejection.','_createHandler','registerBeforeClose','reconnect','close','_rescheduleHeartbeat','946962oiWeaF','triggerDblclick','registerRefRange','asObservable','_localeService','toRgbString','_send','fetchMissingChangesets','/-/object/-/batch_allowed','_config','\x20to\x20','_executeRemoteChangeset','NEW_CHANGESETS','_socket','APPLY_REJECT','socket$','verdancy600','UPDATE_PERMISSION_OBJ','getVpScrollXYInfoByPosToVp','NOT_FOUND','add','_unitOnClients','_onUserJoin','displayName','filter','getCurrentUser','_updateLocalCursor','UNRECOGNIZED','UnitEmbedded','_members','9736188hqzgAE','loadOfflineData','sessionStatus$','_substituteUndoStack','_clearTimeoutTimer','image/gif','_snapshotService','APPLY_REVISION_CONFILICT','defineProperty','_userManagerService','image/png','className','loadSheet','COMPLETION_FINISHED','unknown','onlyLocal','LIVESHARE_OPERATION','_urlService','LOGIN_URL_KEY','/allowed','_getScale','object','save','_sessionStatus$','saveOfflineData','createSocket','APPLY_PERMISSION_DENIED','createElement','_fetchMissChangesets','generateRandomId','createInstance','_textBubble','getViewport','transform','_waitForHeartbeatResponse','getUnitStatus$','csShouldRetryEvent','bottom','COMPRESS_MUTATION_SEND','_compressMutationService','_telemetryInfo','getMemberID','column','COLLAB_SUBMIT_CHANGESET_URL','type','LIVESHARE_FETCH_OPERATIONS','with','addObject','getCollabEntity$','_socket$','AWAITING','transformIMECache','_state','_collaborationTimeoutTimer','RECV','JOINING','stopTime','c1Prime','roomMembers','csRejEvent','_clearUndo','getTypeOfUnitDisposed$','/block/','_handler','_getLoginPath','univer-offline','transformMutation','_collaborationSessionService','_draw','prototype','_drawAnchor','subUnitId','_setupBeforeClosingHandler','[CollaborationState]:\x20apply\x20error!','_showConflictNotification','InsertRowCommandId','_updateStatus','UNIVER_UNKNOWN','conflict.title','\x0aCurrent:\x20','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','setParam','socket\x20close','_changesetSessionId','makeDirty','_drawRectRange','storage','toString','VIEW_MAIN','defIds','pipe','_commandService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','location','univer-pro.collaboration-client.single-active-unit-service','responseType','getDocRanges','_change$','/universer-api/snapshot/','collab-text-range-','_syncEditingCollabCursorService','transformSelections','_init','_status$','max','slice','collab-rect-range-','override','findNodePositionByCharIndex','replaceTextRanges','font','_exhaustRemoteChangesetQueue','cursorInfo','unload','CHANGESET_REVISION_CONFILICT','unit','then','_onConnectionFailed','removeMember','_unitStatus','onSendChangeset','getCollabEntity','_cachedData','enableAuthServer','members','registerComponent','_unitID','update','UNIVER_DOC','HttpImport','COMPRESS_MUTATION_APPLY','_handleHover','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','changesets','_transformService','onCommentUpdate','LICENSE_EXPORT_SIZE_EXCEEDED','compose','BASE64','function','status','312iDTPLK','startColumn','\x0aAfter:\x20','_docSkeletonManagerService','UNDEFINED','getUnhiddenWorksheets','LOCAL_CACHE_INTERVAL','requireSession','_listenToOfflineEvent','off-line-single','encodeURIComponent','json','_initStatusListener','_waitCount','getFocusedUnit','YUUMI_URL_COL_OUT_OF_RANGE','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','PERMISSION_DENIED','startTime','_getSignURL','_loadSheet','_transformSelections','blue400','transformMutationsWithChangeset','_scheduleCollaborationTimeoutTimer','toLowerCase','newValue','AWAITING_WITH_PENDING','registerOnClose','stringify','_substituteRedoStack','_hover','64085WAnTDN','POST','complete','values','list','_transformIMECache','UNIVER_PROJECT','[OfflineState]:\x20received\x20rejection.','code','getSheetId','error','OTHER_CLIENTS_EDITING','_getAPIPrefix','toggleOffline','collaboration-client.offline-data-not-saved','_submitChangeset','_schedule','CONNECTOR_DATA_TOO_LARGE','[CollaborationSession]','HEARTBEAT_TIMEOUT'];_0x29b0=function(){return _0x3f0d4b;};return _0x29b0();}function _0x33c3(_0x1e530f,_0x6b97f6){const _0x29b0e1=_0x29b0();return _0x33c3=function(_0x33c38d,_0x22a9a9){_0x33c38d=_0x33c38d-0x18c;let _0x2c9323=_0x29b0e1[_0x33c38d];return _0x2c9323;},_0x33c3(_0x1e530f,_0x6b97f6);}import{DocIMEInputManagerService as _0x153626,DocStateChangeManagerService as _0x12095e,NodePositionConvertToCursor as _0x282c61,NodePositionConvertToRectRange as _0x5264f7,TEXT_RANGE_LAYER_INDEX as _0x38cec6,SetDocZoomRatioOperation as _0x116bc2}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x15d139,SetSelectionsOperation as _0x455e5a,InsertSheetMutation as _0x7b95a6,EmptyMutation as _0x511aa2,WorkbookEditablePermission as _0x52a438,RefRangeService as _0x2ac9c5,EffectRefRangId as _0x1876e5,handleIRemoveRow as _0x99cb29,handleIRemoveCol as _0x5d4634,handleMoveRange as _0x3ba698,handleInsertRow as _0x163f59,handleInsertRangeMoveRight as _0x468a25,handleInsertRangeMoveDown as _0x52a909,handleInsertCol as _0x593430,handleDeleteRangeMoveUp as _0x45cf67,handleDeleteRangeMoveLeft as _0x3f6541,runRefRangeMutations as _0x28e3fe,SetWorksheetActivateCommand as _0x5463e2}from'@univerjs/sheets';import{IRenderManagerService as _0x2855ab,Shape as _0x1d45e8,Rect as _0x16757d,getColor as _0x3c5235,RegularPolygon as _0x57827a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x18c26b,Vector2 as _0x327598}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x35ae8c,RichTextEditingMutation as _0x179d55,SetTextSelectionsOperation as _0x538b13,DocSkeletonManagerService as _0x429479}from'@univerjs/docs';import{ImageSourceType as _0x4349b6,ImageUploadStatusType as _0xb56f1,IImageIoService as _0x21630a}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x32dcd9,serializeRangeWithSheet as _0x233653}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x1921de,VIEWPORT_KEY as _0x8cdd2a,getCoordByCell as _0x5845e5,getSheetObject as _0x1b8540,SheetPermissionInitController as _0x3d90fa}from'@univerjs/sheets-ui';import _0x588026,{forwardRef as _0x431197,useRef as _0x494e8d,createElement as _0xfdbf34,useCallback as _0x2dcebf}from'react';import{IRemoteInstanceService as _0xa2838}from'@univerjs/rpc';import{getAttachHeader as _0x10e2ee}from'@univerjs-pro/license';const In='SNAPSHOT_SERVER_URL_KEY',En='/universer-api/snapshot',Cn='SNAPSHOT_URL_KEY',Ha='SEND_CHANGESET_TIMEOUT',bn=0x7d0,Tn=_0x173fa3(0x501),Rn=_0x173fa3(0x489),On='HEARTBEAT_INTERVAL',Dn=0x7530,Hs=_0x173fa3(0x3c1),xs=0x4e20,wn=0x4e20,Pn=_0x173fa3(0x26a),yn=0x3,Un=_0x173fa3(0x394),Nn=0x3e8,An=_0x173fa3(0x32c),Mn='/universer-api/comb',Ln=_0x173fa3(0x313),$n='/universer-api/oidc/authpage';var ks=(_0xc7809e=>(_0xc7809e[_0xc7809e[_0x173fa3(0x392)]=0x0]=_0x173fa3(0x392),_0xc7809e[_0xc7809e['OK']=0x1]='OK',_0xc7809e[_0xc7809e[_0x173fa3(0x202)]=0x2]=_0x173fa3(0x202),_0xc7809e[_0xc7809e[_0x173fa3(0x39f)]=0x3]=_0x173fa3(0x39f),_0xc7809e[_0xc7809e[_0x173fa3(0x2f6)]=0x4]=_0x173fa3(0x2f6),_0xc7809e[_0xc7809e[_0x173fa3(0x1b4)]=0x5]=_0x173fa3(0x1b4),_0xc7809e[_0xc7809e['ALREADY_EXISTS']=0x6]=_0x173fa3(0x250),_0xc7809e[_0xc7809e['INVALID_ARGUMENT']=0x7]=_0x173fa3(0x1a2),_0xc7809e[_0xc7809e['TOO_MANY_REQUESTS']=0x8]=_0x173fa3(0x1fe),_0xc7809e[_0xc7809e[_0x173fa3(0x30e)]=0x9]='COMPLETION_FINISHED',_0xc7809e[_0xc7809e[_0x173fa3(0x373)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0xc7809e[_0xc7809e[_0x173fa3(0x3c7)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xc7809e[_0xc7809e[_0x173fa3(0x1a1)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xc7809e[_0xc7809e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x173fa3(0x2d2),_0xc7809e[_0xc7809e[_0x173fa3(0x2f1)]=0x1b59]=_0x173fa3(0x2f1),_0xc7809e[_0xc7809e[_0x173fa3(0x3ea)]=0x1b5a]=_0x173fa3(0x3ea),_0xc7809e[_0xc7809e[_0x173fa3(0x308)]=0x1b5b]=_0x173fa3(0x308),_0xc7809e[_0xc7809e[_0x173fa3(0x31b)]=0x1b5c]=_0x173fa3(0x31b),_0xc7809e[_0xc7809e[_0x173fa3(0x3e5)]=0x1b5d]=_0x173fa3(0x3e5),_0xc7809e[_0xc7809e[_0x173fa3(0x3bf)]=0x1f41]=_0x173fa3(0x3bf),_0xc7809e[_0xc7809e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x173fa3(0x216),_0xc7809e[_0xc7809e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x173fa3(0x404),_0xc7809e[_0xc7809e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x173fa3(0x1ef),_0xc7809e[_0xc7809e[_0x173fa3(0x389)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xc7809e[_0xc7809e[_0x173fa3(0x208)]=0x232d]=_0x173fa3(0x208),_0xc7809e[_0xc7809e[_0x173fa3(0x26f)]=0x2711]=_0x173fa3(0x26f),_0xc7809e[_0xc7809e[_0x173fa3(0x39d)]=0x2712]=_0x173fa3(0x39d),_0xc7809e[_0xc7809e[_0x173fa3(0x2a8)]=0x2713]=_0x173fa3(0x2a8),_0xc7809e[_0xc7809e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x173fa3(0x1d6),_0xc7809e[_0xc7809e[_0x173fa3(0x2fe)]=-0x1]=_0x173fa3(0x2fe),_0xc7809e))(ks||{}),B=(_0xc93871=>(_0xc93871[_0xc93871[_0x173fa3(0x34e)]=0x0]=_0x173fa3(0x34e),_0xc93871[_0xc93871['UNIVER_DOC']=0x1]=_0x173fa3(0x381),_0xc93871[_0xc93871['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0xc93871[_0xc93871['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0xc93871[_0xc93871[_0x173fa3(0x3b4)]=0x4]=_0x173fa3(0x3b4),_0xc93871[_0xc93871[_0x173fa3(0x2fe)]=-0x1]=_0x173fa3(0x2fe),_0xc93871))(B||{}),I=(_0x18d337=>(_0x18d337[_0x18d337[_0x173fa3(0x4bc)]=0x0]='UNKNOWN_CMD',_0x18d337[_0x18d337[_0x173fa3(0x1a6)]=0x1]='HELLO',_0x18d337[_0x18d337[_0x173fa3(0x4f5)]=0x2]=_0x173fa3(0x4f5),_0x18d337[_0x18d337['LEAVE']=0x3]=_0x173fa3(0x275),_0x18d337[_0x18d337[_0x173fa3(0x473)]=0x4]=_0x173fa3(0x473),_0x18d337[_0x18d337[_0x173fa3(0x45b)]=0x5]='HEARTBEAT',_0x18d337[_0x18d337[_0x173fa3(0x337)]=0x6]='RECV',_0x18d337[_0x18d337['UNRECOGNIZED']=-0x1]=_0x173fa3(0x2fe),_0x18d337))(I||{}),Ft=(_0x6213f0=>(_0x6213f0[_0x6213f0[_0x173fa3(0x22a)]=0x0]=_0x173fa3(0x22a),_0x6213f0[_0x6213f0['OK']=0x1]='OK',_0x6213f0[_0x6213f0['FAIL']=0x2]=_0x173fa3(0x24c),_0x6213f0[_0x6213f0['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x6213f0))(Ft||{}),Bs=(_0x47877e=>(_0x47877e[_0x47877e[_0x173fa3(0x509)]=0x0]=_0x173fa3(0x509),_0x47877e[_0x47877e[_0x173fa3(0x382)]=0x1]=_0x173fa3(0x382),_0x47877e[_0x47877e[_0x173fa3(0x207)]=0x2]=_0x173fa3(0x207),_0x47877e[_0x47877e[_0x173fa3(0x2ff)]=0x3]=_0x173fa3(0x2ff),_0x47877e[_0x47877e[_0x173fa3(0x22c)]=0x4]='UnitSnapshot',_0x47877e[_0x47877e[_0x173fa3(0x2fe)]=-0x1]=_0x173fa3(0x2fe),_0x47877e))(Bs||{});const j=_0x173fa3(0x4bd),jn={};function Hn(_0x222a03){const _0x3c22d2=_0x173fa3;var _0xe1f696,_0x334a4b,_0x23d156,_0x5ed75e,_0x53edc1;const _0x994c7e=_0x222a03[_0x3c22d2(0x411)],_0x1f876d=JSON[_0x3c22d2(0x1a3)](_0x994c7e);switch(_0x1f876d[_0x3c22d2(0x3f7)]){case I[_0x3c22d2(0x45b)]:case I['HELLO']:{const _0x442313=_0x1f876d['infoRsp'];return{..._0x1f876d,'data':_0x442313,'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};}case I[_0x3c22d2(0x4f5)]:{const _0x3a4494=_0x1f876d[_0x3c22d2(0x265)];return{..._0x1f876d,'data':_0x3a4494,'cmd':_0x1f876d['cmd']};}case I['RECV']:{const _0x6b3873=_0x1f876d[_0x3c22d2(0x3c4)];switch(_0x6b3873[_0x3c22d2(0x278)]){case _0x5f441e['PERMISSION_REJ']:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0xe1f696=_0x6b3873['permissionRejEvent'])==null?void 0x0:_0xe1f696['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x18d)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x334a4b=_0x6b3873[_0x3c22d2(0x476)])==null?void 0x0:_0x334a4b['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['NEW_CHANGESETS']:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x23d156=_0x6b3873[_0x3c22d2(0x230)])==null?void 0x0:_0x23d156['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x25d)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x5ed75e=_0x6b3873[_0x3c22d2(0x33c)])==null?void 0x0:_0x5ed75e['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x4b9)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x53edc1=_0x6b3873[_0x3c22d2(0x325)])==null?void 0x0:_0x53edc1['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['UPDATE_CURSOR']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['updateCursorEvent']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x29b)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x44c)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x4b5)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x47c)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['LIVESHARE_NEW_HOST']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['liveShareNewHost']},'cmd':_0x1f876d['cmd']};case _0x5f441e[_0x3c22d2(0x32e)]:case _0x5f441e['LIVESHARE_OPERATION']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x484)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['LIVESHARE_TERMINATE']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x4ff)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['MSG_FOR_ERROR']:return{..._0x1f876d,'data':_0x6b3873,'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['COMMENT_UPDATE']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x2cc)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x2f4)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['updatePermissionObjEvent']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x296)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['shouldCloseConn']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};default:return _0x1f876d;}}default:return _0x1f876d;}}function xn(_0x5781db){const _0x104400=_0x173fa3;switch(_0x5781db[_0x104400(0x3f7)]){case I[_0x104400(0x45b)]:case I[_0x104400(0x1a6)]:return JSON[_0x104400(0x3ab)]({'cmd':_0x5781db[_0x104400(0x3f7)],'routeKey':_0x5781db[_0x104400(0x50a)]});case I[_0x104400(0x473)]:{let _0x2a7374;switch(_0x5781db[_0x104400(0x411)][_0x104400(0x278)]){case _0x5f441e[_0x104400(0x1d3)]:{_0x2a7374={'eventID':_0x5f441e['UPDATE_CURSOR'],'updateCursorEvent':_0x5781db['data'][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x4b5)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x4b5)],'leaveEvent':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e['USERS_ENTER']:{_0x2a7374={'eventID':_0x5f441e['USERS_ENTER'],'joinEvent':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x40c)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x40c)],'liveShareNewHost':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x311)]:{_0x2a7374={'eventID':_0x5f441e['LIVESHARE_OPERATION'],'liveShareOperation':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x472)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x472)],'liveShareTerminate':_0x5781db['data'][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x25b)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x25b)],'liveShareRequestHost':_0x5781db[_0x104400(0x411)]['data']};break;}case _0x5f441e[_0x104400(0x32e)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x32e)]};break;}default:_0x2a7374={'eventID':_0x5781db[_0x104400(0x411)][_0x104400(0x278)]};}return JSON['stringify']({'cmd':_0x5781db[_0x104400(0x3f7)],'routeKey':_0x5781db['routeKey'],'collaMsg':_0x2a7374});}case I['JOIN']:return JSON[_0x104400(0x3ab)]({'cmd':_0x5781db[_0x104400(0x3f7)],'routeKey':_0x5781db[_0x104400(0x50a)],'joinReq':_0x5781db[_0x104400(0x411)]});case I[_0x104400(0x275)]:return JSON[_0x104400(0x3ab)]({'cmd':_0x5781db['cmd'],'routeKey':_0x5781db[_0x104400(0x50a)],'leaveReq':_0x5781db[_0x104400(0x411)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object['defineProperty'],Bn=Object['getOwnPropertyDescriptor'],Vn=(_0x242e4a,_0x56dad6,_0x202e85,_0x580941)=>{const _0x330284=_0x173fa3;for(var _0x34fbc9=_0x580941>0x1?void 0x0:_0x580941?Bn(_0x56dad6,_0x202e85):_0x56dad6,_0x431ca6=_0x242e4a[_0x330284(0x223)]-0x1,_0x16d4da;_0x431ca6>=0x0;_0x431ca6--)(_0x16d4da=_0x242e4a[_0x431ca6])&&(_0x34fbc9=(_0x580941?_0x16d4da(_0x56dad6,_0x202e85,_0x34fbc9):_0x16d4da(_0x34fbc9))||_0x34fbc9);return _0x580941&&_0x34fbc9&&kn(_0x56dad6,_0x202e85,_0x34fbc9),_0x34fbc9;},De=(_0x208009,_0x24940c)=>(_0x3e6c59,_0x30f65f)=>_0x24940c(_0x3e6c59,_0x30f65f,_0x208009);const Vs=_0x1a0c31(_0x173fa3(0x1fd));function Fn(_0x4c7595,_0x2dbda5,_0x3535f4){const _0x5e3ba3=_0x173fa3;return _0x4c7595+'/'+_0x2dbda5+_0x5e3ba3(0x50d)+_0x3535f4+_0x5e3ba3(0x2a2);}let bt=class extends _0x1ed84d{constructor(_0x57ab4e,_0x3efc72,_0x160121,_0x2cc912,_0x5dae2d){const _0x29cb82=_0x173fa3;super(),this['_http']=_0x57ab4e,this[_0x29cb82(0x3d8)]=_0x3efc72,this['_configService']=_0x160121,this[_0x29cb82(0x2cd)]=_0x2cc912,this[_0x29cb82(0x4e4)]=_0x5dae2d;}[_0x173fa3(0x31a)](_0x183677){const _0x2ce8d2=_0x173fa3,_0x5bc1f4=this[_0x2ce8d2(0x3d8)][_0x2ce8d2(0x31a)](_0x183677);if(!_0x5bc1f4)throw new Error(_0x2ce8d2(0x40b));const _0xc5aa70=new _0x1f9c9d(),_0x1a6fca=new _0x54d3a4();_0xc5aa70[_0x2ce8d2(0x2f7)](_0x5bc1f4[_0x2ce8d2(0x4e8)][_0x2ce8d2(0x3eb)](_0xf4fd73=>_0x1a6fca[_0x2ce8d2(0x2d0)](_0xf4fd73))),_0xc5aa70[_0x2ce8d2(0x2f7)](_0x4a9188(()=>_0x1a6fca[_0x2ce8d2(0x3b0)]()));const _0x167603=new _0x54d3a4();_0xc5aa70['add'](_0x5bc1f4[_0x2ce8d2(0x2c5)]['subscribe'](_0x527f1b=>_0x167603[_0x2ce8d2(0x2d0)](_0x527f1b))),_0xc5aa70[_0x2ce8d2(0x2f7)](_0x4a9188(()=>_0x167603[_0x2ce8d2(0x3b0)]()));const _0x361412=new _0x54d3a4();_0xc5aa70[_0x2ce8d2(0x2f7)](_0x5bc1f4[_0x2ce8d2(0x1f7)][_0x2ce8d2(0x3eb)](_0x985b7b=>{const _0x3b0d54=_0x2ce8d2,_0x567988=Hn(_0x985b7b);_0x361412[_0x3b0d54(0x2d0)](_0x567988);})),_0xc5aa70[_0x2ce8d2(0x2f7)](_0x4a9188(()=>_0x361412[_0x2ce8d2(0x3b0)]()));let _0x34edee;const _0x450c2f=()=>{const _0xd4b760=_0x2ce8d2;_0x167603['next'](new Event(_0xd4b760(0x262))),_0x1a6fca[_0xd4b760(0x2d0)](new CloseEvent('connection\x20error')),_0x34edee[_0xd4b760(0x2e1)]();};return _0x34edee={'memberID':'','close$':_0x1a6fca['asObservable'](),'error$':_0x167603['asObservable'](),'open$':_0x5bc1f4[_0x2ce8d2(0x50f)],'message$':_0x361412[_0x2ce8d2(0x2e6)](),'send':_0xe4c762=>{const _0x3726f5=_0x2ce8d2;if(_0xe4c762[_0x3726f5(0x3f7)]===I['INGEST']){if(_0xe4c762[_0x3726f5(0x411)]['eventID']===_0x5f441e[_0x3726f5(0x453)]){this[_0x3726f5(0x3bd)](_0x34edee,_0xe4c762[_0x3726f5(0x411)])[_0x3726f5(0x475)](_0xbb9056=>{const _0x29d05d=_0x3726f5;this[_0x29d05d(0x2cd)]['error'](_0xbb9056),_0x450c2f();});return;}if(_0xe4c762[_0x3726f5(0x411)][_0x3726f5(0x278)]===_0x5f441e[_0x3726f5(0x4a2)]){const _0x2d351c=_0xe4c762[_0x3726f5(0x411)];this[_0x3726f5(0x31d)](_0x2d351c)[_0x3726f5(0x375)](_0x428c38=>{const _0x286b30=_0x3726f5;_0x361412['next']({'cmd':I[_0x286b30(0x337)],'code':Ft['OK'],'routeKey':_0x2d351c['data'][_0x286b30(0x23a)],'routeType':'','data':{'eventID':_0x5f441e['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x428c38}}});})[_0x3726f5(0x475)](_0x9f284a=>{const _0x1f5442=_0x3726f5;this['_logService'][_0x1f5442(0x3b8)](_0x9f284a),_0x450c2f();});return;}}_0x5bc1f4[_0x3726f5(0x2ab)](xn(_0xe4c762));},'close':()=>{const _0x2f5613=_0x2ce8d2;_0x5bc1f4[_0x2f5613(0x2e1)](),_0xc5aa70[_0x2f5613(0x2c0)]();}},_0x34edee;}async[_0x173fa3(0x3bd)](_0x46ebd4,_0x5eb260){const _0x168198=_0x173fa3;var _0x29f0bd,_0x4b66d6;const {unitType:_0x2c75c8,unitID:_0x5696cc,changeset:_0x13f51a}=_0x5eb260['data'],_0x59c27b={'unitID':_0x5696cc,'memberID':_0x46ebd4[_0x168198(0x48d)],'type':_0x2c75c8,'changeset':_0x2c88b3(_0x13f51a)},_0xe736ac=this['_configService'][_0x168198(0x4c2)](An),_0x5c9cd2=this[_0x168198(0x205)]['getConfig'](j),_0xc626d4=Fn((_0x4b66d6=(_0x29f0bd=_0x5c9cd2==null?void 0x0:_0x5c9cd2['collabSubmitChangesetUrl'])!=null?_0x29f0bd:_0xe736ac)!=null?_0x4b66d6:Mn,_0x2c75c8,_0x5696cc);try{await this[_0x168198(0x2c2)][_0x168198(0x289)](_0xc626d4,{'body':_0x59c27b});}catch(_0x5f1a6e){throw this['_logService'][_0x168198(0x3b8)](_0x168198(0x3c0),_0x168198(0x2aa)),_0x5f1a6e;}}async[_0x173fa3(0x31d)](_0x5d8e0a){const _0x1929d8=_0x173fa3,{unitID:_0x1d8d0c,from:_0x4e8a2f,to:_0x40c338,unitType:_0x2683ba}=_0x5d8e0a['data'];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1d8d0c,'type':_0x2683ba,'from':_0x4e8a2f,'to':_0x40c338}))[_0x1929d8(0x386)];}};bt=Vn([De(0x0,_0x4f7ed2(_0x33691b)),De(0x1,_0x4f7ed2(_0x424bbf)),De(0x2,_0x13b27e),De(0x3,_0x4329b1),De(0x4,_0x5dfd2d)],bt);const Wn=_0x173fa3(0x264);function Gn(_0x338746){const _0x4133a9=_0x173fa3;return JSON[_0x4133a9(0x3ab)](_0x338746)[_0x4133a9(0x223)];}class Fs{constructor(){const _0x78ca80=_0x173fa3;l(this,_0x78ca80(0x4ba),new _0x54d3a4()),l(this,_0x78ca80(0x23c),this[_0x78ca80(0x4ba)][_0x78ca80(0x2e6)]());}[_0x173fa3(0x388)](_0x139a89){const _0x4923ce=_0x173fa3;this[_0x4923ce(0x4ba)]['next'](_0x139a89);}}var Yn=Object[_0x173fa3(0x309)],Kn=Object[_0x173fa3(0x4d5)],Xn=(_0xcd06fa,_0x1c81fa,_0x2e57a0,_0x4b1c45)=>{for(var _0x3baf2d=_0x4b1c45>0x1?void 0x0:_0x4b1c45?Kn(_0x1c81fa,_0x2e57a0):_0x1c81fa,_0x4a7bc7=_0xcd06fa['length']-0x1,_0x4b7b78;_0x4a7bc7>=0x0;_0x4a7bc7--)(_0x4b7b78=_0xcd06fa[_0x4a7bc7])&&(_0x3baf2d=(_0x4b1c45?_0x4b7b78(_0x1c81fa,_0x2e57a0,_0x3baf2d):_0x4b7b78(_0x3baf2d))||_0x3baf2d);return _0x4b1c45&&_0x3baf2d&&Yn(_0x1c81fa,_0x2e57a0,_0x3baf2d),_0x3baf2d;},cs=(_0x222d93,_0x5a4081)=>(_0x1ed2b4,_0x1e85bd)=>_0x5a4081(_0x1ed2b4,_0x1e85bd,_0x222d93);let _e=class extends _0x1ed84d{constructor(_0x26acc8,_0x4fb5b1){const _0x213161=_0x173fa3;super(),l(this,_0x213161(0x239),new Map()),(this[_0x213161(0x3f2)]=_0x26acc8,this[_0x213161(0x30a)]=_0x4fb5b1,this['disposeWithMe'](_0x4a9188(_0x378f3d(this[_0x213161(0x3f2)][_0x213161(0x33e)](_0x159e2d[_0x213161(0x4fa)])[_0x213161(0x35b)](_0x595c33(_0x25a4bc=>_0x25a4bc[_0x213161(0x253)]())),this['_univerInstanceService'][_0x213161(0x33e)](_0x159e2d[_0x213161(0x381)])[_0x213161(0x35b)](_0x595c33(_0x10a951=>_0x10a951[_0x213161(0x253)]())),this[_0x213161(0x3f2)]['getTypeOfUnitDisposed$'](_0x159e2d[_0x213161(0x243)])[_0x213161(0x35b)](_0x595c33(_0x5e10ed=>_0x5e10ed[_0x213161(0x253)]())))[_0x213161(0x3eb)](_0x111b72=>this[_0x213161(0x42e)](_0x111b72)))));}['setCurrentUser'](_0x5ab078){const _0x50d072=_0x173fa3;this['_userManagerService'][_0x50d072(0x29a)](_0x5ab078);}[_0x173fa3(0x2fc)](){const _0x2a4768=_0x173fa3;return this[_0x2a4768(0x30a)][_0x2a4768(0x2fc)]();}[_0x173fa3(0x424)](_0x27e41e,_0x584abd){const _0x3f4f83=_0x173fa3;let _0x535aca=this[_0x3f4f83(0x239)][_0x3f4f83(0x3c3)](_0x27e41e);_0x535aca||(_0x535aca=new qn(),this[_0x3f4f83(0x239)]['set'](_0x27e41e,_0x535aca)),_0x535aca['updateMember'](_0x584abd);}[_0x173fa3(0x377)](_0x181b3f,_0xf4914){const _0x168084=_0x173fa3,_0x2ebac2=this['_roomMembers'][_0x168084(0x3c3)](_0x181b3f);_0x2ebac2&&_0x2ebac2[_0x168084(0x377)](_0xf4914);}['getRoom'](_0x2de059){const _0x4d008f=_0x173fa3;return this['_roomMembers'][_0x4d008f(0x3c3)](_0x2de059);}[_0x173fa3(0x50b)](_0x586720,_0x48802a){const _0x1c8df7=_0x173fa3,_0x1f7c5c=this[_0x1c8df7(0x239)][_0x1c8df7(0x3c3)](_0x586720);if(_0x1f7c5c)return _0x1f7c5c[_0x1c8df7(0x50b)](_0x48802a);}[_0x173fa3(0x42e)](_0x690584){const _0x8867a7=_0x173fa3,_0x30f0d7=this[_0x8867a7(0x239)][_0x8867a7(0x3c3)](_0x690584);_0x30f0d7&&(_0x30f0d7['dispose'](),this['_roomMembers'][_0x8867a7(0x43b)](_0x690584));}[_0x173fa3(0x2c0)](){const _0x50f5bf=_0x173fa3;this[_0x50f5bf(0x239)]['forEach'](_0x19d221=>_0x19d221[_0x50f5bf(0x2c0)]()),this[_0x50f5bf(0x239)][_0x50f5bf(0x483)]();}};_e=Xn([cs(0x0,_0x1e8ecc),cs(0x1,_0x4f7ed2(_0x12c9bc))],_e);class qn extends _0x1ed84d{constructor(){const _0x51801c=_0x173fa3;super(...arguments),l(this,_0x51801c(0x300),new Map());}[_0x173fa3(0x2c0)](){const _0x2f1115=_0x173fa3;this['_members'][_0x2f1115(0x483)]();}[_0x173fa3(0x424)](_0x4525b6){const _0x39553e=_0x173fa3;this['_members'][_0x39553e(0x3e3)](_0x4525b6[_0x39553e(0x48d)],_0x4525b6);}['removeMember'](_0x322f91){const _0x11b163=_0x173fa3;this[_0x11b163(0x300)][_0x11b163(0x43b)](_0x322f91);}[_0x173fa3(0x50b)](_0x4dc039){const _0x14c231=_0x173fa3;return this[_0x14c231(0x300)][_0x14c231(0x3c3)](_0x4dc039);}}var Jn=Object[_0x173fa3(0x309)],zn=Object[_0x173fa3(0x4d5)],Zn=(_0x1374c5,_0x5dc884,_0x58ed1a,_0x1c88c5)=>{const _0x4f32c5=_0x173fa3;for(var _0x2eceb5=_0x1c88c5>0x1?void 0x0:_0x1c88c5?zn(_0x5dc884,_0x58ed1a):_0x5dc884,_0x1c1796=_0x1374c5[_0x4f32c5(0x223)]-0x1,_0xb3d6a4;_0x1c1796>=0x0;_0x1c1796--)(_0xb3d6a4=_0x1374c5[_0x1c1796])&&(_0x2eceb5=(_0x1c88c5?_0xb3d6a4(_0x5dc884,_0x58ed1a,_0x2eceb5):_0xb3d6a4(_0x2eceb5))||_0x2eceb5);return _0x1c88c5&&_0x2eceb5&&Jn(_0x5dc884,_0x58ed1a,_0x2eceb5),_0x2eceb5;},Z=(_0x24147d,_0xa9673f)=>(_0x22ff50,_0x2dd748)=>_0xa9673f(_0x22ff50,_0x2dd748,_0x24147d),X=(_0xd5556e=>(_0xd5556e[_0xd5556e[_0x173fa3(0x212)]=0x0]='IDLE',_0xd5556e[_0xd5556e['JOINING']=0x1]=_0x173fa3(0x338),_0xd5556e[_0xd5556e['OFFLINE']=0x2]=_0x173fa3(0x410),_0xd5556e[_0xd5556e[_0x173fa3(0x263)]=0x3]=_0x173fa3(0x263),_0xd5556e))(X||{});let Tt=class extends _0x13ba8e{constructor(_0x230a94,_0x48a46e,_0x2b06e9,_0x1dbea7,_0xd0e1e2,_0x59165f,_0x4c8ece,_0x23a74,_0x496bb4,_0x1a975e){const _0x3a5e18=_0x173fa3;super(),l(this,_0x3a5e18(0x318),new _0x37b5ce(0x0)),l(this,'sessionStatus$',this[_0x3a5e18(0x318)][_0x3a5e18(0x2e6)]()),l(this,_0x3a5e18(0x1bf),new _0x54d3a4()),l(this,'event$',this[_0x3a5e18(0x1bf)][_0x3a5e18(0x2e6)]()),l(this,_0x3a5e18(0x2f0)),l(this,'_socketMessageSubscription'),l(this,_0x3a5e18(0x336)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x3a5e18(0x329),null),(this[_0x3a5e18(0x37f)]=_0x230a94,this[_0x3a5e18(0x2cd)]=_0x2b06e9,this[_0x3a5e18(0x3fa)]=_0x1dbea7,this[_0x3a5e18(0x245)]=_0xd0e1e2,this[_0x3a5e18(0x205)]=_0x59165f,this[_0x3a5e18(0x2e7)]=_0x4c8ece,this[_0x3a5e18(0x1c9)]=_0x23a74,this[_0x3a5e18(0x420)]=_0x496bb4,this[_0x3a5e18(0x247)]=_0x1a975e,this[_0x3a5e18(0x4aa)]=!!this[_0x3a5e18(0x247)],_0x48a46e[_0x3a5e18(0x35b)](_0x223895(this[_0x3a5e18(0x2a1)]))[_0x3a5e18(0x3eb)](_0x105623=>{const _0x5ca9b9=_0x3a5e18;var _0x58a414;typeof _0x105623>'u'||(this[_0x5ca9b9(0x2f0)]=_0x105623,_0x105623?(this[_0x5ca9b9(0x3dd)](_0x105623),this[_0x5ca9b9(0x436)]=_0x105623[_0x5ca9b9(0x1f7)][_0x5ca9b9(0x3eb)](_0x1639a1=>{const _0x133d88=_0x5ca9b9;_0x1639a1[_0x133d88(0x50a)]===this['_unitID']&&this[_0x133d88(0x402)](_0x1639a1);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5ca9b9(0x318)]['next'](0x2),(_0x58a414=this['_socketMessageSubscription'])==null||_0x58a414['unsubscribe'](),this[_0x5ca9b9(0x436)]=null));}),this['disposeWithMe'](this[_0x3a5e18(0x3fa)][_0x3a5e18(0x3aa)](()=>{const _0x362c53=_0x3a5e18;var _0x2703f4;(_0x2703f4=this[_0x362c53(0x2f0)])==null||_0x2703f4[_0x362c53(0x2ab)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x362c53(0x37f)]}});})));}get[_0x173fa3(0x21b)](){const _0x40161c=_0x173fa3;return this[_0x40161c(0x318)]['getValue']();}[_0x173fa3(0x32a)](){const _0x22a913=_0x173fa3;var _0xd88e7d,_0x482b4b;return(_0x482b4b=(_0xd88e7d=this['_socket'])==null?void 0x0:_0xd88e7d[_0x22a913(0x48d)])!=null?_0x482b4b:null;}[_0x173fa3(0x2c0)](){const _0x1114d2=_0x173fa3;super[_0x1114d2(0x2c0)](),this[_0x1114d2(0x2a1)][_0x1114d2(0x2d0)](),this['dispose$'][_0x1114d2(0x3b0)]();}[_0x173fa3(0x2e1)](){const _0x2ecbac=_0x173fa3;var _0x27b5b3,_0x1af916;this[_0x2ecbac(0x22b)](),(_0x27b5b3=this['_socket'])==null||_0x27b5b3[_0x2ecbac(0x2ab)]({'cmd':I[_0x2ecbac(0x275)],'data':{'roomID':this['_unitID']}}),(_0x1af916=this[_0x2ecbac(0x2f0)])==null||_0x1af916[_0x2ecbac(0x2e1)](),this[_0x2ecbac(0x1bf)]['complete'](),this[_0x2ecbac(0x318)][_0x2ecbac(0x3b0)](),this['dispose']();}[_0x173fa3(0x402)](_0x2de260){const _0x512df0=_0x173fa3;_0x2de260[_0x512df0(0x3f7)]===I[_0x512df0(0x4f5)]?this[_0x512df0(0x429)](_0x2de260):_0x2de260['cmd']===I[_0x512df0(0x337)]&&this['_onRecvEvent'](_0x2de260);}[_0x173fa3(0x3dd)](_0x1bb5c0){const _0x45c229=_0x173fa3;this[_0x45c229(0x318)][_0x45c229(0x2d0)](0x1),_0x1bb5c0[_0x45c229(0x2ab)]({'cmd':I[_0x45c229(0x4f5)],'routeKey':this[_0x45c229(0x37f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x45c229(0x37f)]}]}});}[_0x173fa3(0x429)](_0x20196e){const _0x319693=_0x173fa3;var _0x102a4c;if(_0x20196e[_0x319693(0x3b6)]===Ft['FAIL']){this[_0x319693(0x245)]['show']({'type':_0x180cc7[_0x319693(0x44a)],'content':this[_0x319693(0x2e7)]['t'](_0x319693(0x21c))}),this[_0x319693(0x318)][_0x319693(0x2d0)](0x2);return;}this[_0x319693(0x318)]['next'](0x3);const _0x267b7a=(_0x102a4c=_0x20196e[_0x319693(0x411)]['roomInfos'][this[_0x319693(0x37f)]])==null?void 0x0:_0x102a4c[_0x319693(0x37d)];_0x267b7a&&_0x267b7a[_0x319693(0x47e)](_0x4fa663=>this[_0x319693(0x1c9)]['updateMember'](this[_0x319693(0x37f)],_0x4fa663));}[_0x173fa3(0x3e2)](_0x510702){const _0xa8b289=_0x173fa3;try{const _0x11ec3c=_0x510702[_0xa8b289(0x411)];switch(_0x11ec3c['eventID']){case _0x5f441e['USERS_ENTER']:this[_0xa8b289(0x2f9)](_0x11ec3c),this['_event$'][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e['USERS_LEAVE']:this[_0xa8b289(0x2cb)](_0x11ec3c),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e[_0xa8b289(0x18d)]:case _0x5f441e[_0xa8b289(0x4b9)]:this[_0xa8b289(0x27f)](),this['_clearCollaborationTimeoutTimer'](),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e[_0xa8b289(0x4d8)]:this['_logService'][_0xa8b289(0x3b8)](_0xa8b289(0x1be)+JSON[_0xa8b289(0x3ab)](_0x11ec3c)),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e['COMMENT_UPDATE']:this[_0xa8b289(0x420)][_0xa8b289(0x388)](_0x11ec3c[_0xa8b289(0x411)]),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;default:this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);}}catch(_0x4fde47){this['_logService']['error'](_0x4fde47,_0x510702);}}[_0x173fa3(0x2f9)](_0x37987f){const _0x4e5357=_0x173fa3;this[_0x4e5357(0x1c9)]['updateMember'](this[_0x4e5357(0x37f)],_0x37987f[_0x4e5357(0x411)]);}['_onUserLeave'](_0x3715f7){const _0x209d2f=_0x173fa3;this[_0x209d2f(0x1c9)][_0x209d2f(0x377)](this[_0x209d2f(0x37f)],_0x3715f7['data'][_0x209d2f(0x48d)]);}async[_0x173fa3(0x2ab)](_0x6e0d94,_0x4d7b83){const _0x51f77b=_0x173fa3;if(this[_0x51f77b(0x21b)]!==0x3||!this[_0x51f77b(0x2f0)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x6e0d94[_0x51f77b(0x278)]===_0x5f441e[_0x51f77b(0x453)]&&(this[_0x51f77b(0x3a6)](),this[_0x51f77b(0x445)](_0x6e0d94)),this[_0x51f77b(0x2f0)][_0x51f77b(0x2ab)]({'cmd':I[_0x51f77b(0x473)],'routeKey':_0x4d7b83,'routeType':'','data':_0x6e0d94});}catch(_0x70a314){this[_0x51f77b(0x2cd)][_0x51f77b(0x3b8)](_0x70a314);}}[_0x173fa3(0x3a6)](){const _0x359a43=_0x173fa3;var _0x5e1e48;this[_0x359a43(0x336)]=window[_0x359a43(0x4a5)](()=>{const _0x304c4e=_0x359a43;this[_0x304c4e(0x336)]=null,this[_0x304c4e(0x245)]['show']({'type':_0x180cc7['Error'],'content':this[_0x304c4e(0x2e7)]['t']('session.collaboration-timeout')});},(_0x5e1e48=this[_0x359a43(0x205)][_0x359a43(0x4c2)](Hs))!=null?_0x5e1e48:xs);}['_clearCollaborationTimeoutTimer'](){const _0x43e309=_0x173fa3;this[_0x43e309(0x336)]&&(clearTimeout(this[_0x43e309(0x336)]),this[_0x43e309(0x336)]=null);}[_0x173fa3(0x445)](_0x4b5a56){const _0x119bd5=_0x173fa3;if(!this[_0x119bd5(0x4aa)])return;const {data:_0x47044c}=_0x4b5a56,{unitID:_0x420e37,changeset:_0x48e3d0}=_0x47044c,{mutations:_0x265701,type:_0x365ea6}=_0x48e3d0;this[_0x119bd5(0x329)]={'unitId':_0x420e37,'type':_0x365ea6,'startTime':performance[_0x119bd5(0x45e)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x265701)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x3dcc8b=_0x173fa3;if(this[_0x3dcc8b(0x4aa)]){if(!this[_0x3dcc8b(0x329)]){this[_0x3dcc8b(0x2cd)]['error'](_0x3dcc8b(0x3c0),_0x3dcc8b(0x1bc));return;}this[_0x3dcc8b(0x329)][_0x3dcc8b(0x339)]=performance[_0x3dcc8b(0x45e)](),this['_telemetryInfo']['duration']=this[_0x3dcc8b(0x329)][_0x3dcc8b(0x339)]-this[_0x3dcc8b(0x329)][_0x3dcc8b(0x3a0)],this['_telemetryService'][_0x3dcc8b(0x241)](Wn,this['_telemetryInfo']),this[_0x3dcc8b(0x329)]=null;}}[_0x173fa3(0x22b)](){const _0x58a418=_0x173fa3;this[_0x58a418(0x329)]=null;}};Tt=Zn([Z(0x2,_0x4329b1),Z(0x3,_0x3b10e0),Z(0x4,_0x46e149),Z(0x5,_0x13b27e),Z(0x6,_0x4f7ed2(_0x15839b)),Z(0x7,_0x4f7ed2(_e)),Z(0x8,_0x4f7ed2(Fs)),Z(0x9,_0x532e88(_0x41517f))],Tt);var Qn=Object['defineProperty'],er=Object[_0x173fa3(0x4d5)],tr=(_0x31d96d,_0x59c4ce,_0x174dac,_0x1508a7)=>{for(var _0x3df69b=_0x1508a7>0x1?void 0x0:_0x1508a7?er(_0x59c4ce,_0x174dac):_0x59c4ce,_0x887955=_0x31d96d['length']-0x1,_0x5071d7;_0x887955>=0x0;_0x887955--)(_0x5071d7=_0x31d96d[_0x887955])&&(_0x3df69b=(_0x1508a7?_0x5071d7(_0x59c4ce,_0x174dac,_0x3df69b):_0x5071d7(_0x3df69b))||_0x3df69b);return _0x1508a7&&_0x3df69b&&Qn(_0x59c4ce,_0x174dac,_0x3df69b),_0x3df69b;},Se=(_0x18103f,_0x2b26a7)=>(_0x48b0cd,_0x3e4dee)=>_0x2b26a7(_0x48b0cd,_0x3e4dee,_0x18103f);let ue=class extends _0x1ed84d{constructor(_0x4d0e1a,_0x100e65,_0x388bbe,_0x2dbb9d,_0x22d99a,_0x56ea52){const _0x4fd865=_0x173fa3;super(),l(this,_0x4fd865(0x332),new _0x37b5ce(void 0x0)),l(this,_0x4fd865(0x2f2),this[_0x4fd865(0x332)][_0x4fd865(0x2e6)]()),l(this,_0x4fd865(0x4f2),null),l(this,'_sessions',new Map()),l(this,_0x4fd865(0x368),new _0x37b5ce(X[_0x4fd865(0x212)])),l(this,_0x4fd865(0x28e),this[_0x4fd865(0x368)][_0x4fd865(0x2e6)]()),l(this,_0x4fd865(0x4ee),!0x1),l(this,_0x4fd865(0x23e)),l(this,_0x4fd865(0x213),0x0),l(this,_0x4fd865(0x4be)),l(this,'_timeoutTimer'),(this['_injector']=_0x4d0e1a,this['_localeService']=_0x100e65,this[_0x4fd865(0x245)]=_0x388bbe,this[_0x4fd865(0x2cd)]=_0x2dbb9d,this[_0x4fd865(0x205)]=_0x22d99a,this[_0x4fd865(0x4e2)]=_0x56ea52,this['_initEventListeners']());}get[_0x173fa3(0x2f0)](){return this['_socket$']['getValue']();}['_initEventListeners'](){this['_listenToOfflineEvent'](),this['_listenToOnlineEvent']();}[_0x173fa3(0x2c0)](){const _0x530e41=_0x173fa3;super[_0x530e41(0x2c0)](),this[_0x530e41(0x2cf)][_0x530e41(0x47e)](_0x220ce4=>_0x220ce4[_0x530e41(0x2c0)]()),this[_0x530e41(0x2cf)][_0x530e41(0x483)](),this[_0x530e41(0x368)][_0x530e41(0x3b0)]();}async[_0x173fa3(0x395)](_0x3f71d8){const _0x5ebd01=_0x173fa3;if(this['_sessions']['has'](_0x3f71d8))return this[_0x5ebd01(0x2cf)]['get'](_0x3f71d8);this[_0x5ebd01(0x438)]();const _0x3b09c9=this[_0x5ebd01(0x4b7)][_0x5ebd01(0x31f)](Tt,_0x3f71d8,this['_socket$'][_0x5ebd01(0x2e6)]());return this[_0x5ebd01(0x2cf)][_0x5ebd01(0x3e3)](_0x3f71d8,_0x3b09c9),_0x3b09c9;}[_0x173fa3(0x42a)](_0x1e8efb){const _0x5932cf=_0x173fa3;var _0x55f63f;const _0x1263e7=this[_0x5932cf(0x2cf)][_0x5932cf(0x3c3)](_0x1e8efb);_0x1263e7&&(this[_0x5932cf(0x2cf)][_0x5932cf(0x43b)](_0x1e8efb),_0x1263e7['close']()),this[_0x5932cf(0x2cf)][_0x5932cf(0x46d)]||(_0x55f63f=this[_0x5932cf(0x2f0)])==null||_0x55f63f[_0x5932cf(0x2e1)]();}[_0x173fa3(0x2e0)](){const _0x1a670c=_0x173fa3;this[_0x1a670c(0x213)]=0x0,this[_0x1a670c(0x23e)]!=null&&(clearTimeout(this[_0x1a670c(0x23e)]),this[_0x1a670c(0x23e)]=null),this['_tryReconnect']();}['_createSocket'](){const _0x18aefc=_0x173fa3;var _0x468bf2,_0x4786e6;const _0x298def=this[_0x18aefc(0x205)]['getConfig'](Tn),_0x39dcdb=this[_0x18aefc(0x205)]['getConfig'](j),_0xccf206=(_0x4786e6=(_0x468bf2=_0x39dcdb==null?void 0x0:_0x39dcdb[_0x18aefc(0x4fd)])!=null?_0x468bf2:_0x298def)!=null?_0x4786e6:Rn,_0x39f643=this[_0x18aefc(0x4e2)][_0x18aefc(0x31a)](_0xccf206);return this[_0x18aefc(0x4f2)]=_0x39f643,_0x39f643;}[_0x173fa3(0x438)](){const _0xc8e66c=_0x173fa3;var _0x1ffc17,_0xdfa0d7;try{const _0x2cf624=(_0xdfa0d7=(_0x1ffc17=this[_0xc8e66c(0x2f0)])!=null?_0x1ffc17:this[_0xc8e66c(0x4f2)])!=null?_0xdfa0d7:this['_createSocket']();if(_0x2cf624){const _0x496989=_0x2cf624['send'];_0x2cf624[_0xc8e66c(0x2ab)]=_0x1fd5b1=>(this['_rescheduleHeartbeat'](),_0x496989[_0xc8e66c(0x1a9)](_0x2cf624,[_0x1fd5b1])),_0x2cf624[_0xc8e66c(0x1f7)][_0xc8e66c(0x3eb)](_0x227e54=>this[_0xc8e66c(0x422)](_0x2cf624,_0x227e54)),_0x2cf624[_0xc8e66c(0x2c5)]['pipe'](_0x4b16ab(0x1))[_0xc8e66c(0x3eb)](_0x526f76=>this['_logService']['error'](_0xc8e66c(0x4ed),_0x526f76)),_0x2cf624[_0xc8e66c(0x50f)]['pipe'](_0x4b16ab(0x1))[_0xc8e66c(0x3eb)](()=>{this['_onConnectionOpen'](_0x2cf624);}),_0x2cf624[_0xc8e66c(0x4e8)][_0xc8e66c(0x35b)](_0x4b16ab(0x1))[_0xc8e66c(0x3eb)](_0x594c6b=>{const _0x4c46a3=_0xc8e66c;this['_logService']['debug'](_0x4c46a3(0x4e5),_0x4c46a3(0x353),_0x594c6b),this[_0x4c46a3(0x376)]();});}}catch(_0xeef5ec){this[_0xc8e66c(0x2cd)][_0xc8e66c(0x3b8)](_0xeef5ec),this['_onConnectionFailed']();}}[_0x173fa3(0x4c5)](_0x48231e){const _0x26da6e=_0x173fa3;this['_logService'][_0x26da6e(0x28a)](_0x26da6e(0x4e5),_0x26da6e(0x444)),_0x48231e[_0x26da6e(0x2ab)]({'cmd':I[_0x26da6e(0x1a6)]}),this[_0x26da6e(0x2e2)]();}[_0x173fa3(0x396)](){const _0x2583f6=_0x173fa3;window['addEventListener'](_0x2583f6(0x235),()=>this[_0x2583f6(0x2a5)]());}['_onOffline'](){const _0x2a058c=_0x173fa3;this['_socketReady']=!0x1,this[_0x2a058c(0x4f2)]=null,this[_0x2a058c(0x368)][_0x2a058c(0x2d0)](X['OFFLINE']),this[_0x2a058c(0x332)]['next'](null),this[_0x2a058c(0x305)](),this['_clearHeartbeatTimer']();}[_0x173fa3(0x376)](){const _0xd47cdc=_0x173fa3;var _0xbfca80;this[_0xd47cdc(0x2a5)](),this['_retryCount']<((_0xbfca80=this['_configService'][_0xd47cdc(0x4c2)](Pn))!=null?_0xbfca80:yn)?(this[_0xd47cdc(0x245)][_0xd47cdc(0x1e6)]({'key':_0xd47cdc(0x447),'type':_0x180cc7[_0xd47cdc(0x44a)],'content':this[_0xd47cdc(0x2e7)]['t'](_0xd47cdc(0x4af))}),this[_0xd47cdc(0x4b3)]()):this[_0xd47cdc(0x245)][_0xd47cdc(0x1e6)]({'key':_0xd47cdc(0x447),'type':_0x180cc7[_0xd47cdc(0x1c4)],'content':this[_0xd47cdc(0x2e7)]['t'](_0xd47cdc(0x3ff))});}[_0x173fa3(0x1c2)](){const _0xb41e8a=_0x173fa3,_0x2f7fa9=()=>{const _0x520080=_0x33c3;this[_0x520080(0x2f0)]||this[_0x520080(0x2e0)]();},_0x2821a7=()=>{const _0x1263d8=_0x33c3;this[_0x1263d8(0x2f0)]||document[_0x1263d8(0x457)]==='hidden'||this[_0x1263d8(0x2e0)]();};window[_0xb41e8a(0x22e)](_0xb41e8a(0x1ba),_0x2f7fa9),document[_0xb41e8a(0x22e)](_0xb41e8a(0x3d3),_0x2821a7);}[_0x173fa3(0x4b3)](){const _0x259236=_0x173fa3;var _0xe62698;const _0x521af8=this['_retryCount'],_0x5cef78=this['_configService']['getConfig'](j),_0x39d283=_0x521af8===0x0?0x0:((_0xe62698=_0x5cef78==null?void 0x0:_0x5cef78[_0x259236(0x297)])!=null?_0xe62698:wn)*0x2**_0x521af8;this[_0x259236(0x23e)]=window[_0x259236(0x4a5)](()=>{const _0x6072d1=_0x259236;clearTimeout(this['_retryConnectingTimer']),this[_0x6072d1(0x23e)]=null,this['_tryEnsureSocket']();},_0x39d283),this['_retryCount']+=0x1;}[_0x173fa3(0x422)](_0x2c710c,_0x4396a7){const _0x174709=_0x173fa3,{cmd:_0x40baed}=_0x4396a7;_0x40baed===I[_0x174709(0x1a6)]&&!this['_socketReady']&&(_0x2c710c[_0x174709(0x48d)]=_0x4396a7[_0x174709(0x411)][_0x174709(0x48d)],this[_0x174709(0x332)]['next'](_0x2c710c),this[_0x174709(0x368)][_0x174709(0x2d0)](X[_0x174709(0x263)]),this['_socketReady']=!0x0,this[_0x174709(0x4f2)]=null),_0x40baed===I[_0x174709(0x45b)]&&this[_0x174709(0x305)](),this[_0x174709(0x2e2)]();}[_0x173fa3(0x2e2)](){const _0x5078f7=_0x173fa3;var _0x3db965;this[_0x5078f7(0x1de)](),this[_0x5078f7(0x4be)]=window[_0x5078f7(0x4a5)](()=>this[_0x5078f7(0x47d)](),(_0x3db965=this['_configService'][_0x5078f7(0x4c2)](On))!=null?_0x3db965:Dn);}['_sendHeartbeat'](){const _0x5d1c18=_0x173fa3;this[_0x5d1c18(0x2f0)][_0x5d1c18(0x2ab)]({'cmd':I[_0x5d1c18(0x45b)]}),this[_0x5d1c18(0x323)]();}[_0x173fa3(0x323)](){const _0x172832=_0x173fa3;var _0x2a5c0a;this[_0x172832(0x27c)]=window[_0x172832(0x4a5)](()=>this[_0x172832(0x376)](),(_0x2a5c0a=this[_0x172832(0x205)][_0x172832(0x4c2)](Hs))!=null?_0x2a5c0a:xs);}['_clearHeartbeatTimer'](){const _0x27686d=_0x173fa3;this[_0x27686d(0x4be)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x27686d(0x4be)]=null);}[_0x173fa3(0x305)](){const _0x526d05=_0x173fa3;this[_0x526d05(0x27c)]!=null&&(clearTimeout(this[_0x526d05(0x27c)]),this[_0x526d05(0x27c)]=null);}};ue=tr([Se(0x0,_0x4f7ed2(_0x3b0750)),Se(0x1,_0x4f7ed2(_0x15839b)),Se(0x2,_0x46e149),Se(0x3,_0x4329b1),Se(0x4,_0x13b27e),Se(0x5,Vs)],ue);var T=[];for(var ht=0x0;ht<0x100;++ht)T[_0x173fa3(0x1da)]((ht+0x100)[_0x173fa3(0x358)](0x10)[_0x173fa3(0x36a)](0x1));function sr(_0x17a07d,_0x3b1b72=0x0){const _0x407847=_0x173fa3;return(T[_0x17a07d[_0x3b1b72+0x0]]+T[_0x17a07d[_0x3b1b72+0x1]]+T[_0x17a07d[_0x3b1b72+0x2]]+T[_0x17a07d[_0x3b1b72+0x3]]+'-'+T[_0x17a07d[_0x3b1b72+0x4]]+T[_0x17a07d[_0x3b1b72+0x5]]+'-'+T[_0x17a07d[_0x3b1b72+0x6]]+T[_0x17a07d[_0x3b1b72+0x7]]+'-'+T[_0x17a07d[_0x3b1b72+0x8]]+T[_0x17a07d[_0x3b1b72+0x9]]+'-'+T[_0x17a07d[_0x3b1b72+0xa]]+T[_0x17a07d[_0x3b1b72+0xb]]+T[_0x17a07d[_0x3b1b72+0xc]]+T[_0x17a07d[_0x3b1b72+0xd]]+T[_0x17a07d[_0x3b1b72+0xe]]+T[_0x17a07d[_0x3b1b72+0xf]])[_0x407847(0x3a7)]();}var ke,ir=new Uint8Array(0x10);function nr(){const _0x15d50d=_0x173fa3;if(!ke&&(ke=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x15d50d(0x2d4)]['bind'](crypto),!ke))throw new Error(_0x15d50d(0x351));return ke(ir);}var rr=typeof crypto<'u'&&crypto[_0x173fa3(0x1a5)]&&crypto[_0x173fa3(0x1a5)][_0x173fa3(0x1cb)](crypto);const hs={'randomUUID':rr};function or(_0x35f561,_0x30e2db,_0x2bcdcb){const _0x160eaa=_0x173fa3;if(hs[_0x160eaa(0x1a5)]&&!_0x30e2db&&!_0x35f561)return hs['randomUUID']();_0x35f561=_0x35f561||{};var _0x1971e8=_0x35f561[_0x160eaa(0x4d1)]||(_0x35f561['rng']||nr)();return _0x1971e8[0x6]=_0x1971e8[0x6]&0xf|0x40,_0x1971e8[0x8]=_0x1971e8[0x8]&0x3f|0x80,sr(_0x1971e8);}var ar=Object[_0x173fa3(0x309)],cr=Object[_0x173fa3(0x4d5)],hr=(_0x507c45,_0x19f259,_0x2d6cf9,_0xd1e17)=>{for(var _0x27cddf=_0xd1e17>0x1?void 0x0:_0xd1e17?cr(_0x19f259,_0x2d6cf9):_0x19f259,_0x17eb0c=_0x507c45['length']-0x1,_0x46df26;_0x17eb0c>=0x0;_0x17eb0c--)(_0x46df26=_0x507c45[_0x17eb0c])&&(_0x27cddf=(_0xd1e17?_0x46df26(_0x19f259,_0x2d6cf9,_0x27cddf):_0x46df26(_0x27cddf))||_0x27cddf);return _0xd1e17&&_0x27cddf&&ar(_0x19f259,_0x2d6cf9,_0x27cddf),_0x27cddf;},lt=(_0x1e23b4,_0xadc199)=>(_0x1caad8,_0x55fac5)=>_0xadc199(_0x1caad8,_0x55fac5,_0x1e23b4);let Xe=class{constructor(_0x3670db,_0x160a65,_0x3525e2){const _0x3e2103=_0x173fa3;this['_injector']=_0x3670db,this[_0x3e2103(0x387)]=_0x160a65,this[_0x3e2103(0x3f6)]=_0x3525e2;}[_0x173fa3(0x334)](_0xec9d0c){const _0x16ad77=_0x173fa3;this['_transformUndoRedoStack'](_0xec9d0c),this[_0x16ad77(0x431)](_0xec9d0c);}['transformRemoteChangeset'](_0x4d9df6){const _0x5e58ac=_0x173fa3,{unitID:_0x5e0698}=_0x4d9df6,_0x5ed33e=this[_0x5e58ac(0x3f6)][_0x5e58ac(0x468)](_0x5e0698)[_0x5e58ac(0x32f)](_0x153626),{redoCache:_0x60b187}=_0x5ed33e[_0x5e58ac(0x48e)]();if(_0x60b187[_0x5e58ac(0x223)]===0x0)return _0x4d9df6;let _0x40b47e=_0x58e8f0[_0x5e58ac(0x4c7)](_0x4d9df6[_0x5e58ac(0x4cd)][0x0]);for(let _0x2b0a98=0x0;_0x2b0a98<_0x60b187[_0x5e58ac(0x223)];_0x2b0a98++){const _0x57dd67={'id':_0x5e58ac(0x21f),'params':{..._0x60b187[_0x2b0a98]}},_0x561cc2=this[_0x5e58ac(0x387)][_0x5e58ac(0x343)](_0x40b47e,_0x57dd67,!0x1);if(_0x44527a(_0x561cc2))throw _0x561cc2[_0x5e58ac(0x3b8)];_0x40b47e=_0x561cc2[_0x5e58ac(0x443)];}return{..._0x58e8f0[_0x5e58ac(0x4c7)](_0x4d9df6),'mutations':[_0x40b47e]};}[_0x173fa3(0x4ef)](_0x3f4959){const _0x3cdf5c=_0x173fa3,{unitID:_0x26ff0b}=_0x3f4959,_0x971938=this[_0x3cdf5c(0x3f6)][_0x3cdf5c(0x468)](_0x26ff0b)[_0x3cdf5c(0x32f)](_0x153626),{undoCache:_0x1069c0,redoCache:_0x301479}=_0x971938[_0x3cdf5c(0x48e)]();if(_0x1069c0['length']===0x0||_0x301479[_0x3cdf5c(0x223)]===0x0)return;const _0x2bbb0a=[],_0x1f6550=[];let _0x25c7db=_0x58e8f0[_0x3cdf5c(0x4c7)](_0x3f4959[_0x3cdf5c(0x4cd)][0x0]),_0x3456c0=_0x58e8f0[_0x3cdf5c(0x4c7)](_0x3f4959[_0x3cdf5c(0x4cd)][0x0]);for(let _0x4f582a=_0x1069c0['length']-0x1;_0x4f582a>=0x0;_0x4f582a--){const _0x8ab0a0={'id':_0x3cdf5c(0x21f),'params':{..._0x1069c0[_0x4f582a]}},_0x731f52={'id':'doc.mutation.rich-text-editing','params':{..._0x301479[_0x4f582a]}},_0xbe9e12=this[_0x3cdf5c(0x387)]['transformMutation'](_0x25c7db,_0x8ab0a0,!0x1),_0x2a6a9d=this[_0x3cdf5c(0x387)]['transformMutation'](_0x3456c0,_0x731f52,!0x1);if(_0x44527a(_0xbe9e12))throw _0xbe9e12[_0x3cdf5c(0x3b8)];if(_0x44527a(_0x2a6a9d))throw _0x2a6a9d[_0x3cdf5c(0x3b8)];_0x2bbb0a[_0x3cdf5c(0x23b)](_0xbe9e12[_0x3cdf5c(0x197)][_0x3cdf5c(0x465)]),_0x1f6550[_0x3cdf5c(0x23b)](_0x2a6a9d['m2Prime']['params']),_0x25c7db=_0xbe9e12['m1Prime'],_0x3456c0=_0x2a6a9d[_0x3cdf5c(0x443)];}_0x971938[_0x3cdf5c(0x4c4)]({'undoCache':_0x2bbb0a,'redoCache':_0x1f6550});}[_0x173fa3(0x431)](_0x14a019){const _0x5b9c9a=_0x173fa3,{unitID:_0x4d5d0c}=_0x14a019,_0x31089f=this['_renderManagerService'][_0x5b9c9a(0x468)](_0x4d5d0c)[_0x5b9c9a(0x32f)](_0x153626),_0x733b66=_0x31089f['getActiveRange']();if(_0x733b66==null)return;const _0x1c42ac=[{'id':_0x5b9c9a(0x21f),'params':{'unitId':_0x14a019[_0x5b9c9a(0x23a)],'actions':null,'textRanges':[_0x733b66]}}],_0x6bd811=this[_0x5b9c9a(0x387)][_0x5b9c9a(0x3a5)](_0x14a019,_0x1c42ac);if(!_0x2c439f(_0x6bd811))throw _0x6bd811[_0x5b9c9a(0x3b8)];const _0x50f8c7=_0x6bd811[_0x5b9c9a(0x197)][0x0]['params'][_0x5b9c9a(0x3cc)];Array[_0x5b9c9a(0x498)](_0x50f8c7)&&_0x50f8c7['length']&&_0x31089f['setActiveRange'](_0x50f8c7[0x0]);}};Xe=hr([lt(0x0,_0x4f7ed2(_0x3b0750)),lt(0x1,_0x4a8bc3),lt(0x2,_0x2855ab)],Xe);var lr=Object[_0x173fa3(0x309)],_r=Object[_0x173fa3(0x4d5)],ur=(_0x1518d9,_0x4f2b87,_0x45b199,_0x2595a0)=>{const _0xa78bbe=_0x173fa3;for(var _0x472876=_0x2595a0>0x1?void 0x0:_0x2595a0?_r(_0x4f2b87,_0x45b199):_0x4f2b87,_0x28bd6c=_0x1518d9[_0xa78bbe(0x223)]-0x1,_0x22563a;_0x28bd6c>=0x0;_0x28bd6c--)(_0x22563a=_0x1518d9[_0x28bd6c])&&(_0x472876=(_0x2595a0?_0x22563a(_0x4f2b87,_0x45b199,_0x472876):_0x22563a(_0x472876))||_0x472876);return _0x2595a0&&_0x472876&&lr(_0x4f2b87,_0x45b199,_0x472876),_0x472876;},we=(_0x5ac1e1,_0x1bb620)=>(_0x4eb18d,_0x57e16e)=>_0x1bb620(_0x4eb18d,_0x57e16e,_0x5ac1e1);let D=class extends _0x1ed84d{constructor(_0x5c69d9,_0x393f2b,_0x5779a0,_0x5cddbd,_0x5de830){const _0x346f7e=_0x173fa3;super(),l(this,_0x346f7e(0x37b),new Map()),l(this,_0x346f7e(0x3e7),new Map()),l(this,_0x346f7e(0x266),!0x1),(this['_configService']=_0x5c69d9,this[_0x346f7e(0x1ff)]=_0x393f2b,this[_0x346f7e(0x3fa)]=_0x5779a0,this['_localeService']=_0x5cddbd,this['_revisionService']=_0x5de830,this[_0x346f7e(0x349)]());}['disableLocalCache'](){const _0x3889cc=_0x173fa3;this[_0x3889cc(0x266)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}['dispose'](){const _0x4fa606=_0x173fa3;this[_0x4fa606(0x256)]()[_0x4fa606(0x375)](()=>super[_0x4fa606(0x2c0)]());}async[_0x173fa3(0x302)](_0x3bff55){const _0x55c45f=_0x173fa3;return this[_0x55c45f(0x266)]?null:this[_0x55c45f(0x1ff)][_0x55c45f(0x4c1)](ls(_0x3bff55));}async[_0x173fa3(0x319)](_0x381ce1,_0x1868ec){const _0x3f2dd4=_0x173fa3;return!!this[_0x3f2dd4(0x1ff)][_0x3f2dd4(0x4e0)](_0x381ce1,_0x1868ec);}[_0x173fa3(0x234)](_0x2d3910,_0x2d4152,_0x3e2a9f,_0x35a94b){const _0x1cfa9e=_0x173fa3,_0x9eedb8=this['_revisionService'][_0x1cfa9e(0x462)](_0x2d3910);this[_0x1cfa9e(0x37b)][_0x1cfa9e(0x3e3)](_0x2d3910,{'unitID':_0x2d3910,'type':_0x2d4152,'awaitingChangeset':_0x3e2a9f,'mutations':_0x35a94b,'rev':_0x9eedb8}),this['_saveTaskMap'][_0x1cfa9e(0x432)](_0x2d3910)||this[_0x1cfa9e(0x451)](_0x2d3910);}[_0x173fa3(0x451)](_0x57908c){const _0x4a2e92=_0x173fa3,_0x45cf18=this[_0x4a2e92(0x299)]();_0x45cf18===0x0?this[_0x4a2e92(0x1b8)](_0x57908c):this[_0x4a2e92(0x3e7)][_0x4a2e92(0x3e3)](_0x57908c,setTimeout(()=>this[_0x4a2e92(0x1b8)](_0x57908c),_0x45cf18));}[_0x173fa3(0x299)](){const _0x2e7238=_0x173fa3;var _0x3a3a33;return(_0x3a3a33=this[_0x2e7238(0x205)][_0x2e7238(0x4c2)](Un))!=null?_0x3a3a33:Nn;}[_0x173fa3(0x1b8)](_0x33c726){const _0x2b7037=_0x173fa3,_0x232089=this[_0x2b7037(0x3e7)][_0x2b7037(0x3c3)](_0x33c726);return _0x232089!==void 0x0&&window[_0x2b7037(0x29c)](_0x232089),this['_localStorageService']['setItem'](ls(_0x33c726),this['_cachedData']['get'](_0x33c726))[_0x2b7037(0x375)](()=>this[_0x2b7037(0x3e7)][_0x2b7037(0x43b)](_0x33c726));}async['exhaustSavingTask'](){const _0x1fd074=_0x173fa3,_0xd5d8b9=[];this[_0x1fd074(0x3e7)]['forEach']((_0x15501f,_0x1aba47)=>{const _0x56e27c=_0x1fd074;window[_0x56e27c(0x29c)](_0x15501f),_0xd5d8b9[_0x56e27c(0x1da)](this[_0x56e27c(0x1b8)](_0x1aba47)[_0x56e27c(0x375)](()=>{const _0x80b18e=_0x56e27c;this[_0x80b18e(0x3e7)][_0x80b18e(0x43b)](_0x1aba47);}));}),await Promise[_0x1fd074(0x464)](_0xd5d8b9);}['_setupBeforeClosingHandler'](){const _0x4c93bf=_0x173fa3;this['disposeWithMe'](this[_0x4c93bf(0x3fa)][_0x4c93bf(0x2df)](()=>{const _0x278308=_0x4c93bf;if(this[_0x278308(0x3e7)]['size'])return this[_0x278308(0x2e7)]['t'](_0x278308(0x3bc));}));}};D=ur([we(0x0,_0x13b27e),we(0x1,_0x71f972),we(0x2,_0x3b10e0),we(0x3,_0x4f7ed2(_0x15839b)),we(0x4,_0x4f7ed2(_0x6cbd2e))],D);function ls(_0x4451e0){const _0x7eb033=_0x173fa3;return _0x7eb033(0x491)+_0x4451e0;}var dr=Object[_0x173fa3(0x309)],mr=Object['getOwnPropertyDescriptor'],fr=(_0x4dad28,_0xa373ff,_0x41cb3e,_0x4c8854)=>{for(var _0x2947ef=_0x4c8854>0x1?void 0x0:_0x4c8854?mr(_0xa373ff,_0x41cb3e):_0xa373ff,_0x50be2e=_0x4dad28['length']-0x1,_0x149d14;_0x50be2e>=0x0;_0x50be2e--)(_0x149d14=_0x4dad28[_0x50be2e])&&(_0x2947ef=(_0x4c8854?_0x149d14(_0xa373ff,_0x41cb3e,_0x2947ef):_0x149d14(_0x2947ef))||_0x2947ef);return _0x4c8854&&_0x2947ef&&dr(_0xa373ff,_0x41cb3e,_0x2947ef),_0x2947ef;},_t=(_0x29a10a,_0x247b46)=>(_0x483ed8,_0x4726f7)=>_0x247b46(_0x483ed8,_0x4726f7,_0x29a10a);function gr(_0x1b3813){const _0x23acc5=_0x173fa3,{unitID:_0x2a5f55,mutations:_0x587413}=_0x1b3813;return{'unitId':_0x2a5f55,'subUnitId':_0x587413[0x0]['params'][_0x23acc5(0x348)]};}let qe=class{constructor(_0xac4993,_0x4d72a0,_0x3ec76f){const _0x10eb1b=_0x173fa3;this['_injector']=_0xac4993,this[_0x10eb1b(0x387)]=_0x4d72a0,this[_0x10eb1b(0x44d)]=_0x3ec76f;}[_0x173fa3(0x366)](_0x2992d3){const _0x1325f2=_0x173fa3;var _0x107926,_0x3acb7a,_0x176f2c,_0x2a5ca0;const _0x25072b=this['_injector'][_0x1325f2(0x3c3)](_0x15d139),{unitId:_0x584e37,subUnitId:_0x54a402}=gr(_0x2992d3),_0x325c6d=_0x25072b['getWorkbookSelections'](_0x584e37)['getCurrentSelections'](),_0x5cdf09=(_0x3acb7a=(_0x107926=this[_0x1325f2(0x44d)][_0x1325f2(0x2c3)](_0x584e37))==null?void 0x0:_0x107926['getActiveSheet']())==null?void 0x0:_0x3acb7a[_0x1325f2(0x3b7)]();if(_0x325c6d['length']===0x0||!_0x584e37||!_0x54a402)return;const _0x5f238d=[{'id':_0x455e5a['id'],'params':{'unitId':_0x584e37,'subUnitId':_0x5cdf09,'selections':_0x58e8f0['deepClone'](_0x325c6d)}}],_0x134aef=this[_0x1325f2(0x387)]['transformMutationsWithChangeset'](_0x2992d3,_0x5f238d);if(!_0x2c439f(_0x134aef))throw _0x134aef['error'];const _0x31dc61=(_0x2a5ca0=(_0x176f2c=_0x134aef[_0x1325f2(0x197)][0x0])==null?void 0x0:_0x176f2c['params'])==null?void 0x0:_0x2a5ca0[_0x1325f2(0x287)];if(Array[_0x1325f2(0x498)](_0x31dc61)&&_0x31dc61['length']){if(_0x31dc61[_0x1325f2(0x223)]===_0x5f238d[0x0][_0x1325f2(0x465)][_0x1325f2(0x287)][_0x1325f2(0x223)]&&_0x31dc61[_0x1325f2(0x1a8)]((_0x5b20f0,_0x234275)=>_0xa8b8a6['equals'](_0x5b20f0[_0x1325f2(0x1f1)],_0x5f238d[0x0]['params'][_0x1325f2(0x287)][_0x234275][_0x1325f2(0x1f1)])))return;this[_0x1325f2(0x4b7)][_0x1325f2(0x3c3)](_0xdec94a)[_0x1325f2(0x1d2)](_0x455e5a['id'],{'unitId':_0x584e37,'subUnitId':_0x5cdf09,'selections':_0x31dc61});}}};qe=fr([_t(0x0,_0x4f7ed2(_0x3b0750)),_t(0x1,_0x4a8bc3),_t(0x2,_0x1e8ecc)],qe);const it=_0x1a0c31(_0x173fa3(0x35f));var Ws=(_0x450102=>(_0x450102[_0x450102[_0x173fa3(0x252)]=0x0]=_0x173fa3(0x252),_0x450102[_0x450102['OTHER_CLIENTS_EDITING']=0x1]=_0x173fa3(0x3b9),_0x450102))(Ws||{});const _s=0x7530,us=_0x173fa3(0x20c);class Sr extends _0x1ed84d{constructor(){const _0x45a0a9=_0x173fa3;super(),l(this,_0x45a0a9(0x414),_0x58e8f0[_0x45a0a9(0x31e)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x45a0a9(0x2f8),new Map()),l(this,_0x45a0a9(0x1bb),null),l(this,_0x45a0a9(0x1dc),new Map()),l(this,_0x45a0a9(0x378),new Map()),this[_0x45a0a9(0x367)]();}[_0x173fa3(0x2c0)](){const _0x28af94=_0x173fa3;super[_0x28af94(0x2c0)](),this[_0x28af94(0x1dc)][_0x28af94(0x47e)]((_0x4b5ae5,_0x50426c)=>this['_removeClearOtherTimer'](_0x50426c)),this[_0x28af94(0x1bb)]&&window[_0x28af94(0x2be)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x1e14d4){const _0x9422a6=_0x173fa3;return this[_0x9422a6(0x1aa)](_0x1e14d4)[_0x9422a6(0x35b)](_0x38f940());}['editingUnit'](_0xea2379){const _0x5dcec4=_0x173fa3;this[_0x5dcec4(0x26d)][_0x5dcec4(0x46d)]===0x0&&this[_0x5dcec4(0x2a3)](),this[_0x5dcec4(0x26d)]['add'](_0xea2379),this[_0x5dcec4(0x2e9)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xea2379],'isForwarded':!0x1});}[_0x173fa3(0x3ee)](_0x2e43af){const _0x1343b9=_0x173fa3;this['_selfUnitIDs']['delete'](_0x2e43af),this['_selfUnitIDs'][_0x1343b9(0x46d)]===0x0&&this[_0x1343b9(0x1bb)]&&window[_0x1343b9(0x2be)](this[_0x1343b9(0x1bb)]);}[_0x173fa3(0x367)](){const _0x4ebe06=_0x173fa3;this['disposeWithMe'](_0x4a9188(_0x25f31e(window,_0x4ebe06(0x357))[_0x4ebe06(0x3eb)](_0x4a0f3a=>{const _0x5da9e7=_0x4ebe06;if(_0x4a0f3a[_0x5da9e7(0x240)]!==us||!_0x4a0f3a[_0x5da9e7(0x3a8)])return;const _0x416887=JSON[_0x5da9e7(0x1a3)](_0x4a0f3a[_0x5da9e7(0x3a8)]);this[_0x5da9e7(0x496)](_0x416887);}))),window['addEventListener'](_0x4ebe06(0x372),()=>this['_send']({'type':0x1,'memberID':this[_0x4ebe06(0x414)],'unitIDs':Array[_0x4ebe06(0x28c)](this['_selfUnitIDs'])}));}[_0x173fa3(0x496)](_0x410eab){const _0x2a6ee9=_0x173fa3;switch(_0x410eab[_0x2a6ee9(0x32d)]){case 0x0:this[_0x2a6ee9(0x1ce)](_0x410eab);break;case 0x1:this[_0x2a6ee9(0x2d6)](_0x410eab);break;case 0x2:this[_0x2a6ee9(0x4a6)](_0x410eab);break;}}['_handleJoinEvent'](_0x5daeca){const _0x29f21f=_0x173fa3,{unitIDs:_0x7659a5,memberID:_0x1b5afb,isForwarded:_0x1349c3}=_0x5daeca;_0x7659a5[_0x29f21f(0x47e)](_0x2632e4=>{const _0x3ef7a0=_0x29f21f;if(!_0x1349c3&&this['_unitOnClients'][_0x3ef7a0(0x432)](_0x2632e4)&&this['_ensureSubject'](_0x2632e4)[_0x3ef7a0(0x2d0)](0x1),!this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x432)](_0x2632e4)||!this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x3c3)](_0x2632e4)[_0x3ef7a0(0x432)](_0x1b5afb)){const _0x20d51f=this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x3c3)](_0x2632e4)||new Set();_0x20d51f[_0x3ef7a0(0x2f7)](_0x1b5afb),this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x3e3)](_0x2632e4,_0x20d51f),this[_0x3ef7a0(0x2dc)](_0x1b5afb);}}),_0x1349c3||this[_0x29f21f(0x2e9)]({'type':0x0,'memberID':this[_0x29f21f(0x414)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x173fa3(0x2dc)](_0x12baf8){const _0x303dfe=_0x173fa3;this[_0x303dfe(0x49f)](_0x12baf8);const _0x1f04c1=window[_0x303dfe(0x4a5)](()=>{const _0x584465=_0x303dfe;this[_0x584465(0x2f8)][_0x584465(0x47e)](_0x5e8fbc=>{const _0xa27540=_0x584465;_0x5e8fbc[_0xa27540(0x43b)](_0x12baf8);});},_s*0x2);this['_clearOtherTimers'][_0x303dfe(0x3e3)](_0x12baf8,_0x1f04c1);}[_0x173fa3(0x49f)](_0x11d314){const _0x5f36a8=_0x173fa3;if(this[_0x5f36a8(0x1dc)][_0x5f36a8(0x432)](_0x11d314)){const _0x3dd50c=this[_0x5f36a8(0x1dc)][_0x5f36a8(0x3c3)](_0x11d314);_0x3dd50c&&window[_0x5f36a8(0x29c)](_0x3dd50c),this['_clearOtherTimers']['set'](_0x11d314,null);}}[_0x173fa3(0x2d6)](_0xc23483){const _0x3698fc=_0x173fa3,{memberID:_0x1d7b80,unitIDs:_0x1edfba}=_0xc23483;_0x1edfba[_0x3698fc(0x47e)](_0x5a2d26=>{const _0x46be6f=_0x3698fc;var _0xd79cd1;const _0x17e95f=this[_0x46be6f(0x2f8)][_0x46be6f(0x3c3)](_0x5a2d26);_0x17e95f&&(_0x17e95f['delete'](_0x1d7b80),(_0xd79cd1=this[_0x46be6f(0x1aa)](_0x5a2d26))==null||_0xd79cd1[_0x46be6f(0x2d0)](_0x17e95f['size']===0x0?0x0:0x1));}),this[_0x3698fc(0x49f)](_0x1d7b80);}[_0x173fa3(0x4a6)](_0x420de7){const _0x3c7088=_0x173fa3;this[_0x3c7088(0x2dc)](_0x420de7[_0x3c7088(0x48d)]);}[_0x173fa3(0x2e9)](_0x4d04a7){const _0x3376c6=_0x173fa3;localStorage[_0x3376c6(0x4e0)](us,JSON[_0x3376c6(0x3ab)](_0x4d04a7));}['_scheduleHeartbeat'](){const _0x586b6a=_0x173fa3;this[_0x586b6a(0x1bb)]=window['setInterval'](()=>{const _0x4c9def=_0x586b6a;this['_send']({'type':0x2,'memberID':this[_0x4c9def(0x414)]});},_s);}[_0x173fa3(0x1aa)](_0x4e43bf){const _0x4c334e=_0x173fa3;return this[_0x4c334e(0x378)][_0x4c334e(0x432)](_0x4e43bf)||this[_0x4c334e(0x378)][_0x4c334e(0x3e3)](_0x4e43bf,new _0x37b5ce(0x0)),this['_unitStatus'][_0x4c334e(0x3c3)](_0x4e43bf);}}function Gs(_0x22c119){const _0x59d261=_0x173fa3;let _0x375dad='';for(const _0x4a9f6d of _0x22c119){const {startOffset:_0x447df9,endOffset:_0x456c0c,isActive:_0xfb2bcc,rangeType:_0xcc974e,segmentId:_0x12f145,segmentPage:_0x3556b0}=_0x4a9f6d;_0x375dad[_0x59d261(0x223)]&&(_0x375dad+=','),_0x375dad+=_0x447df9+':'+_0x456c0c+':'+(_0xfb2bcc?'1':'0')+':'+_0xcc974e+':'+_0x12f145+':'+_0x3556b0;}return _0x375dad;}function pr(_0x1c2bb0){const _0x4a77d7=_0x173fa3,_0x302f51=_0x1c2bb0[_0x4a77d7(0x4fe)](','),_0xb5e32b=[];for(const _0x52b1db of _0x302f51){const [_0xd90f87,_0x3bce9b,_0x2389f5,_0x30629b,_0x27f95a,_0x1113af]=_0x52b1db[_0x4a77d7(0x4fe)](':');_0xb5e32b[_0x4a77d7(0x1da)]({'startOffset':Number(_0xd90f87),'endOffset':Number(_0x3bce9b),'collapsed':_0xd90f87===_0x3bce9b,'isActive':_0x2389f5==='1','rangeType':_0x30629b===_0x46c3b0[_0x4a77d7(0x4c6)]?_0x46c3b0[_0x4a77d7(0x4c6)]:_0x46c3b0[_0x4a77d7(0x26e)],'segmentId':typeof _0x27f95a==_0x4a77d7(0x215)?String(_0x27f95a):'','segmentPage':Number(_0x1113af!=null?_0x1113af:-0x1)});}return _0xb5e32b[_0x4a77d7(0x24f)](_0x3a8617=>_0x3a8617[_0x4a77d7(0x4a9)])||(_0xb5e32b[0x0][_0x4a77d7(0x4a9)]=!0x0),_0xb5e32b;}class Wt extends _0x13ba8e{constructor(){const _0x757994=_0x173fa3;super(...arguments),l(this,_0x757994(0x1af),new _0x37b5ce(null)),l(this,_0x757994(0x4ce),this[_0x757994(0x1af)][_0x757994(0x2e6)]());}[_0x173fa3(0x461)](_0x43394e){const _0x4b281a=_0x173fa3,{unitID:_0x2a66b5,memberID:_0x2a97de,textRanges:_0x51c482}=_0x43394e,_0x48f133=Gs(_0x51c482);if(_0x48f133==='')return;const _0x36289b={'unitID':_0x2a66b5,'memberID':_0x2a97de,'selection':_0x48f133};this[_0x4b281a(0x1af)][_0x4b281a(0x2d0)](_0x36289b);}}var vr=Object[_0x173fa3(0x309)],Ir=Object['getOwnPropertyDescriptor'],Er=(_0x6d39ae,_0x3dbebb,_0x55f03e,_0x111334)=>{for(var _0x24356d=_0x111334>0x1?void 0x0:_0x111334?Ir(_0x3dbebb,_0x55f03e):_0x3dbebb,_0x4e0ab4=_0x6d39ae['length']-0x1,_0x425a5c;_0x4e0ab4>=0x0;_0x4e0ab4--)(_0x425a5c=_0x6d39ae[_0x4e0ab4])&&(_0x24356d=(_0x111334?_0x425a5c(_0x3dbebb,_0x55f03e,_0x24356d):_0x425a5c(_0x24356d))||_0x24356d);return _0x111334&&_0x24356d&&vr(_0x3dbebb,_0x55f03e,_0x24356d),_0x24356d;},ds=(_0x4f0865,_0x5b6195)=>(_0x1eb3d9,_0x5bedd4)=>_0x5b6195(_0x1eb3d9,_0x5bedd4,_0x4f0865);let Je=class{constructor(_0x328d0d,_0x1b7687){const _0x443124=_0x173fa3;this[_0x443124(0x4b7)]=_0x328d0d,this[_0x443124(0x387)]=_0x1b7687;}[_0x173fa3(0x366)](_0x339b43){const _0x396bea=_0x173fa3;var _0x337b47;const _0x151371=this[_0x396bea(0x4b7)][_0x396bea(0x3c3)](_0x35ae8c),_0x1ae2a3=(_0x337b47=_0x151371[_0x396bea(0x361)]())!=null?_0x337b47:[];if(_0x1ae2a3[_0x396bea(0x223)]===0x0)return;const _0x1d0ba9=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x339b43['unitID'],'actions':null,'textRanges':_0x1ae2a3}}],_0x2d971d=this['_transformService'][_0x396bea(0x3a5)](_0x339b43,_0x1d0ba9);if(!_0x2c439f(_0x2d971d))throw _0x2d971d[_0x396bea(0x3b8)];const _0x468148=_0x2d971d['m2Prime'][0x0][_0x396bea(0x465)][_0x396bea(0x3cc)];Array['isArray'](_0x468148)&&_0x468148[_0x396bea(0x223)]&&_0x151371[_0x396bea(0x36e)](_0x468148,!0x1);}};Je=Er([ds(0x0,_0x4f7ed2(_0x3b0750)),ds(0x1,_0x4a8bc3)],Je);const Cr=new Set([_0x7b95a6['id']]);function ms(_0x228ce8,_0x382dc9,_0x15bd17,_0x57f73f,_0x3af8a2){const _0x511dff=_0x173fa3;var _0x38ad33,_0x428911,_0x1e4bbf,_0x5cbc58;const _0x10f034=[];for(const _0xcc33ea of _0x228ce8)if(Cr[_0x511dff(0x432)](_0xcc33ea['id'])){if(_0x10f034[_0x511dff(0x223)]>0x0)break;_0x10f034[_0x511dff(0x1da)](_0xcc33ea);break;}else _0x10f034[_0x511dff(0x1da)](_0xcc33ea);const _0x3adaae=(_0x428911=(_0x38ad33=_0x3af8a2[_0x511dff(0x2fc)]())==null?void 0x0:_0x38ad33['userID'])!=null?_0x428911:_0x511dff(0x30f),_0x245332=(_0x5cbc58=(_0x1e4bbf=_0x3af8a2['getCurrentUser']())==null?void 0x0:_0x1e4bbf[_0x511dff(0x48d)])!=null?_0x5cbc58:_0x511dff(0x30f);return{'changeset':{'unitID':_0x382dc9,'type':_0x4c831a(_0x15bd17[_0x511dff(0x50e)](_0x382dc9)),'baseRev':_0x57f73f['getCurrentRevOfUnit'](_0x382dc9),'revision':0x0,'userID':_0x3adaae,'memberID':_0x245332,'mutations':_0x10f034},'pendingMutations':_0x228ce8[_0x511dff(0x36a)](_0x10f034[_0x511dff(0x223)])};}function br(_0x3963e3,_0x29d19f,_0x5ad046,_0x1d487e,_0x1fb830){const _0x27a488=_0x173fa3;var _0x3dad31,_0x12e02d,_0xa02e9a,_0x6011c9;const _0x355910=[_0x3963e3[_0x27a488(0x48a)]((_0x2f8b5c,_0x418722)=>{const _0x4baf21=_0x27a488;var _0xb38d45;const {id:_0x587095}=_0x2f8b5c,{id:_0x2e6858,type:_0x4078e1}=_0x418722,_0x38f025=(_0xb38d45=_0x2f8b5c[_0x4baf21(0x465)])!=null?_0xb38d45:{'actions':null},_0x4fb33f=_0x418722[_0x4baf21(0x465)];if(_0x587095&&_0x587095!==_0x2e6858)throw new Error(_0x4baf21(0x4b6)+_0x587095+_0x4baf21(0x1fc)+_0x2e6858+'.');return{..._0x2f8b5c,'id':_0x2e6858,'type':_0x4078e1,'params':{'unitId':_0x4fb33f[_0x4baf21(0x217)],'textRanges':_0x4fb33f['textRanges'],'actions':_0xdfd23e[_0x4baf21(0x38a)](_0x38f025[_0x4baf21(0x1c3)],_0x4fb33f[_0x4baf21(0x1c3)])}};},{})],_0x2602d6=(_0x12e02d=(_0x3dad31=_0x1fb830[_0x27a488(0x2fc)]())==null?void 0x0:_0x3dad31['userID'])!=null?_0x12e02d:'unknown',_0x505293=(_0x6011c9=(_0xa02e9a=_0x1fb830['getCurrentUser']())==null?void 0x0:_0xa02e9a[_0x27a488(0x48d)])!=null?_0x6011c9:'unknown';return{'changeset':{'unitID':_0x29d19f,'type':_0x4c831a(_0x5ad046[_0x27a488(0x50e)](_0x29d19f)),'baseRev':_0x1d487e[_0x27a488(0x462)](_0x29d19f),'revision':0x0,'userID':_0x2602d6,'memberID':_0x505293,'mutations':_0x355910},'pendingMutations':[]};}function Ys(_0x23c6f3,_0xd97f69){const _0x61b7ae=_0x173fa3,_0x1a055f=new _0x5c8a52(0x1);return setTimeout(()=>_0x1a055f[_0x61b7ae(0x2d0)](_0xd97f69),_0x23c6f3),_0x1a055f[_0x61b7ae(0x2e6)]()[_0x61b7ae(0x35b)](_0x13b5e9(0x1));}const Tr={'id':_0x511aa2['id'],'type':_0x12b588['MUTATION'],'params':{}};var Rr=Object['defineProperty'],Or=Object[_0x173fa3(0x4d5)],me=(_0x36e6df,_0x105616,_0x82578a,_0x4d2722)=>{const _0x59cca2=_0x173fa3;for(var _0x3db61a=_0x4d2722>0x1?void 0x0:_0x4d2722?Or(_0x105616,_0x82578a):_0x105616,_0xe46681=_0x36e6df[_0x59cca2(0x223)]-0x1,_0x2a4f59;_0xe46681>=0x0;_0xe46681--)(_0x2a4f59=_0x36e6df[_0xe46681])&&(_0x3db61a=(_0x4d2722?_0x2a4f59(_0x105616,_0x82578a,_0x3db61a):_0x2a4f59(_0x3db61a))||_0x3db61a);return _0x4d2722&&_0x3db61a&&Rr(_0x105616,_0x82578a,_0x3db61a),_0x3db61a;},f=(_0x4a7dd5,_0x1622c2)=>(_0x3a71b6,_0x31d5a2)=>_0x1622c2(_0x3a71b6,_0x31d5a2,_0x4a7dd5),w=(_0x1b6846=>(_0x1b6846['NOT_COLLAB']=_0x173fa3(0x480),_0x1b6846['SYNCED']='synced',_0x1b6846[_0x173fa3(0x25c)]=_0x173fa3(0x26c),_0x1b6846[_0x173fa3(0x333)]=_0x173fa3(0x41c),_0x1b6846[_0x173fa3(0x3a9)]=_0x173fa3(0x226),_0x1b6846[_0x173fa3(0x502)]=_0x173fa3(0x2af),_0x1b6846[_0x173fa3(0x19e)]='conflict',_0x1b6846[_0x173fa3(0x410)]=_0x173fa3(0x235),_0x1b6846))(w||{});const Ks=0xea60;class fe{constructor(_0x59c791,_0x2dc999,_0x103366,_0x243950,_0x5295cf,_0x323318,_0x66f063,_0x1ff252,_0x50c8ea){const _0x1ec36e=_0x173fa3;l(this,_0x1ec36e(0x249),null),l(this,_0x1ec36e(0x4d0),[]),(this['unitID']=_0x59c791,this['type']=_0x2dc999,this['_handler']=_0x5295cf,this[_0x1ec36e(0x35c)]=_0x323318,this[_0x1ec36e(0x471)]=_0x66f063,this[_0x1ec36e(0x45a)]=_0x1ff252,this[_0x1ec36e(0x292)]=_0x50c8ea,this[_0x1ec36e(0x249)]=_0x103366,this[_0x1ec36e(0x4d0)]=_0x243950);}[_0x173fa3(0x40f)](_0x1e35cb){const _0xf9d60=_0x173fa3,_0x5a48fb=this[_0xf9d60(0x45a)][_0xf9d60(0x462)](this['unitID']);return _0x1e35cb[_0xf9d60(0x495)]>_0x5a48fb+0x1?(this[_0xf9d60(0x340)][_0xf9d60(0x1e2)]({'from':_0x5a48fb,'to':_0x1e35cb[_0xf9d60(0x495)]-0x1}),!0x0):!0x1;}[_0x173fa3(0x433)](_0x377f11){const _0x3641be=_0x173fa3;this['_undoRedoService'][_0x3641be(0x201)](this[_0x3641be(0x23a)],_0x377f11);}['_transformSelections'](_0x4957ca){const _0x53851d=_0x173fa3;var _0x3c0f5d,_0x22c26f;(_0x22c26f=(_0x3c0f5d=this[_0x53851d(0x340)])[_0x53851d(0x405)])==null||_0x22c26f[_0x53851d(0x470)](_0x3c0f5d,_0x4957ca);}['_transformIMECache'](_0x2953d2){const _0x1de100=_0x173fa3;var _0x425136,_0x2311f1;return(_0x2311f1=(_0x425136=this[_0x1de100(0x340)])[_0x1de100(0x280)])==null?void 0x0:_0x2311f1['call'](_0x425136,_0x2953d2);}[_0x173fa3(0x4a8)](_0x1be37b){const _0x2d7698=_0x173fa3;var _0x34af20,_0xdabb4,_0x4f23c3;return(_0x4f23c3=(_0xdabb4=(_0x34af20=this['_handler'])[_0x2d7698(0x3fb)])==null?void 0x0:_0xdabb4[_0x2d7698(0x470)](_0x34af20,_0x1be37b))!=null?_0x4f23c3:_0x1be37b;}[_0x173fa3(0x19a)](_0x10c4d6){const _0x359da1=_0x173fa3;var _0x24d802,_0x5b3ecf;if(this['type']===B[_0x359da1(0x381)]){const {unitID:_0x48513c,mutations:_0x21d1bb,memberID:_0x20a103}=_0x10c4d6,_0x425432=_0x21d1bb[0x0][_0x359da1(0x465)][_0x359da1(0x3cc)];Array[_0x359da1(0x498)](_0x425432)&&_0x425432[_0x359da1(0x223)]>0x0&&((_0x5b3ecf=(_0x24d802=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x5b3ecf[_0x359da1(0x470)](_0x24d802,{'unitID':_0x48513c,'memberID':_0x20a103,'textRanges':_0x425432}));}}[_0x173fa3(0x1ab)](){const _0x4e9b5e=_0x173fa3;this['_localCacheService'][_0x4e9b5e(0x234)](this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x4e9b5e(0x4d0)]);}['_getCurrentRevision'](){const _0x31c895=_0x173fa3;return this[_0x31c895(0x45a)]['getCurrentRevOfUnit'](this[_0x31c895(0x23a)]);}[_0x173fa3(0x2ca)](){const _0x204c82=_0x173fa3;this[_0x204c82(0x45a)]['incrementRevOfUnit'](this[_0x204c82(0x23a)]);}[_0x173fa3(0x2ee)](_0x43de56){const _0x50eed5=_0x173fa3;var _0x3bf3d6;const _0x2ee0d1=this[_0x50eed5(0x4a8)](_0x43de56),_0x193114=_0x24a976(_0x2ee0d1[_0x50eed5(0x4cd)],this['_commandService'],{'fromCollab':!0x0});if(!_0x193114['result'])throw _0x193114[_0x50eed5(0x3b8)]instanceof Error?_0x193114['error']:new Error((_0x3bf3d6=_0x193114[_0x50eed5(0x3b8)])!=null?_0x3bf3d6:_0x50eed5(0x34a));this[_0x50eed5(0x3b3)](_0x2ee0d1),this[_0x50eed5(0x433)](_0x43de56),this[_0x50eed5(0x3a3)](_0x2ee0d1),this[_0x50eed5(0x19a)](_0x2ee0d1),this[_0x50eed5(0x2ca)]();}}let Ee=class extends fe{constructor(_0x5d7837,_0x5e393b,_0x1d2e1d,_0x502dc5,_0x521ac7,_0x2ea70f,_0xb1548d,_0x31b4b8,_0x5f1d9a,_0x46f9e0){const _0x177829=_0x173fa3;super(_0x5d7837,_0x5e393b,null,[],_0x1d2e1d,_0x31b4b8,_0xb1548d,_0x502dc5,_0x521ac7),l(this,_0x177829(0x38d),_0x177829(0x1e5)),(this[_0x177829(0x4b7)]=_0x2ea70f,this[_0x177829(0x2cd)]=_0x5f1d9a,this[_0x177829(0x387)]=_0x46f9e0);}[_0x173fa3(0x44f)](_0xbc6295){const _0x54e708=_0x173fa3,_0x1526ee=this[_0x54e708(0x4b7)][_0x54e708(0x31f)](J,this[_0x54e708(0x23a)],this[_0x54e708(0x32d)],[_0xbc6295],this[_0x54e708(0x340)]);return _0x1526ee['_schedule'](),_0x1526ee[_0x54e708(0x1ab)](),_0x1526ee;}[_0x173fa3(0x228)](_0x3004e7){const _0x5ad26c=_0x173fa3;if(this[_0x5ad26c(0x40f)](_0x3004e7))return this[_0x5ad26c(0x4b7)][_0x5ad26c(0x31f)](V,this[_0x5ad26c(0x23a)],this[_0x5ad26c(0x32d)],null,[],null,[_0x3004e7],this[_0x5ad26c(0x340)]);try{const _0x222b61=this[_0x5ad26c(0x387)]['transformMutationsWithChangeset'](_0x3004e7,[Tr]);if(_0x2c439f(_0x222b61)){const {c1Prime:_0x58e7df}=_0x222b61;return this['_executeRemoteChangeset'](_0x58e7df),this;}throw _0x222b61[_0x5ad26c(0x3b8)];}catch(_0x497957){return this['_logService'][_0x5ad26c(0x3b8)](_0x497957),this[_0x5ad26c(0x1c7)](!0x1);}}['_onConflict'](_0x48cb1b){const _0x5225bf=_0x173fa3;return this['_injector'][_0x5225bf(0x31f)](se,this[_0x5225bf(0x23a)],this['type'],null,[],this[_0x5225bf(0x340)],_0x48cb1b);}[_0x173fa3(0x41f)](){const _0x4286f5=_0x173fa3;throw new Error(_0x4286f5(0x3c5));}[_0x173fa3(0x277)](){const _0x30e71a=_0x173fa3;throw new Error(_0x30e71a(0x2dd));}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){const _0x23cfd0=_0x173fa3;return this[_0x23cfd0(0x4b7)][_0x23cfd0(0x31f)](ie,this['unitID'],this['type'],null,[],this[_0x23cfd0(0x340)]);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x1d1)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x4e6008=_0x173fa3,_0x2f5afa=this['_revisionService'][_0x4e6008(0x462)](this['unitID']);return this['_handler'][_0x4e6008(0x1e2)]({'from':_0x2f5afa,'to':0x0}),this[_0x4e6008(0x4b7)]['createInstance'](V,this[_0x4e6008(0x23a)],this[_0x4e6008(0x32d)],null,[],null,[],this[_0x4e6008(0x340)]);}};Ee=me([f(0x3,_0x4f7ed2(_0x6cbd2e)),f(0x4,_0x4f7ed2(D)),f(0x5,_0x4f7ed2(_0x3b0750)),f(0x6,_0x57ccc3),f(0x7,_0xdec94a),f(0x8,_0x4329b1),f(0x9,_0x4a8bc3)],Ee);let J=class extends fe{constructor(_0x2c7bed,_0x28f92f,_0x477d64,_0x26c9f4,_0x354305,_0x2687c9,_0x4977b5,_0x53b3b8,_0x13e06e,_0x5cf786,_0x239316,_0x2f1bcf,_0x32428a,_0x4ee369){const _0x58023a=_0x173fa3;super(_0x2c7bed,_0x28f92f,null,_0x477d64,_0x26c9f4,_0x5cf786,_0x4ee369,_0x2687c9,_0x4977b5),l(this,_0x58023a(0x38d),'pending'),l(this,_0x58023a(0x507),null),l(this,_0x58023a(0x294),null),(this[_0x58023a(0x4b7)]=_0x354305,this[_0x58023a(0x1c9)]=_0x53b3b8,this[_0x58023a(0x2cd)]=_0x13e06e,this['_configService']=_0x239316,this[_0x58023a(0x387)]=_0x2f1bcf,this['_univerInstanceService']=_0x32428a);}[_0x173fa3(0x44f)](_0x13e945){const _0x5e9a5e=_0x173fa3;return this[_0x5e9a5e(0x4d0)]['push'](_0x13e945),this[_0x5e9a5e(0x1ab)](),this;}[_0x173fa3(0x228)](_0x18ad2f){const _0x2e0ae9=_0x173fa3;if(this[_0x2e0ae9(0x40f)](_0x18ad2f))return this[_0x2e0ae9(0x439)](),this[_0x2e0ae9(0x4b7)][_0x2e0ae9(0x31f)](V,this[_0x2e0ae9(0x23a)],this[_0x2e0ae9(0x32d)],null,this[_0x2e0ae9(0x4d0)],null,[_0x18ad2f],this[_0x2e0ae9(0x340)]);try{const _0x8253d2=this[_0x2e0ae9(0x387)][_0x2e0ae9(0x3a5)](_0x18ad2f,this['_pendingMutations']);if(_0x2c439f(_0x8253d2)){const {c1Prime:_0x3f83eb,m2Prime:_0x4baaf8}=_0x8253d2;this[_0x2e0ae9(0x2ee)](_0x3f83eb);const _0x258f5b=this[_0x2e0ae9(0x4b7)]['createInstance'](J,this[_0x2e0ae9(0x23a)],this[_0x2e0ae9(0x32d)],_0x4baaf8,this['_handler']);return this[_0x2e0ae9(0x439)](),_0x258f5b[_0x2e0ae9(0x3be)](this['_scheduleTimestamp']?Math[_0x2e0ae9(0x369)](0x0,new Date()[_0x2e0ae9(0x3f8)]()-this[_0x2e0ae9(0x507)]):this[_0x2e0ae9(0x21d)]()),_0x258f5b;}throw _0x8253d2[_0x2e0ae9(0x3b8)];}catch(_0x518cd3){return this['_logService']['error'](_0x518cd3),this[_0x2e0ae9(0x1c7)](!0x1);}}[_0x173fa3(0x41f)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x173fa3(0x277)](){const _0x134596=_0x173fa3;throw new Error(_0x134596(0x505));}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){const _0x1ceb4b=_0x173fa3;return this[_0x1ceb4b(0x439)](),this['_injector']['createInstance'](ie,this['unitID'],this[_0x1ceb4b(0x32d)],null,this[_0x1ceb4b(0x4d0)],this[_0x1ceb4b(0x340)]);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x3be)](_0x2be849){const _0x4e1c57=_0x173fa3,_0x266c36=_0x2be849!=null?_0x2be849:this[_0x4e1c57(0x21d)]();this[_0x4e1c57(0x507)]=new Date()['getTime'](),this[_0x4e1c57(0x294)]=window[_0x4e1c57(0x4a5)](()=>{const _0x151182=_0x4e1c57;this[_0x151182(0x439)]();let _0x1b6b57=null;switch(this[_0x151182(0x32d)]){case B[_0x151182(0x4fa)]:{_0x1b6b57=ms(this['_pendingMutations'],this['unitID'],this[_0x151182(0x3f2)],this[_0x151182(0x45a)],this[_0x151182(0x1c9)]);break;}case B['UNIVER_DOC']:{this['_pendingMutations']['every'](_0x598c01=>_0x598c01['id']===_0x179d55['id'])?_0x1b6b57=br(this[_0x151182(0x4d0)],this[_0x151182(0x23a)],this[_0x151182(0x3f2)],this['_revisionService'],this[_0x151182(0x1c9)]):_0x1b6b57=ms(this[_0x151182(0x4d0)],this[_0x151182(0x23a)],this[_0x151182(0x3f2)],this[_0x151182(0x45a)],this[_0x151182(0x1c9)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x394162,pendingMutations:_0x38a183}=_0x1b6b57;this[_0x151182(0x340)]['onSendChangeset'](_0x394162);const _0x93aeb3=_0x38a183[_0x151182(0x223)]?this[_0x151182(0x4b7)][_0x151182(0x31f)](z,this[_0x151182(0x23a)],this[_0x151182(0x32d)],_0x394162,_0x38a183,this[_0x151182(0x340)],void 0x0):this[_0x151182(0x4b7)][_0x151182(0x31f)](te,this[_0x151182(0x23a)],this[_0x151182(0x32d)],_0x394162,this['_handler']);_0x93aeb3[_0x151182(0x1ab)](),this[_0x151182(0x340)]['onStateChange'](this,_0x93aeb3);},_0x266c36);}[_0x173fa3(0x21d)](){const _0x3cedfc=_0x173fa3;var _0x4d3ca7;const _0x881d4b=this[_0x3cedfc(0x205)]['getConfig'](j);return(_0x4d3ca7=_0x881d4b==null?void 0x0:_0x881d4b['sendChangesetTimeout'])!=null?_0x4d3ca7:bn;}['resend'](){const _0x52364b=_0x173fa3;throw new Error(_0x52364b(0x221));}[_0x173fa3(0x439)](){const _0x1a2e75=_0x173fa3;this[_0x1a2e75(0x294)]!=null&&(clearTimeout(this[_0x1a2e75(0x294)]),this[_0x1a2e75(0x294)]=null);}[_0x173fa3(0x1c7)](_0x55a632){const _0x510a3e=_0x173fa3;return this[_0x510a3e(0x439)](),this[_0x510a3e(0x4b7)][_0x510a3e(0x31f)](se,this[_0x510a3e(0x23a)],this['type'],null,this[_0x510a3e(0x4d0)],this[_0x510a3e(0x340)],_0x55a632);}};J=me([f(0x4,_0x4f7ed2(_0x3b0750)),f(0x5,_0x4f7ed2(_0x6cbd2e)),f(0x6,_0x4f7ed2(D)),f(0x7,_0x4f7ed2(_e)),f(0x8,_0x4329b1),f(0x9,_0xdec94a),f(0xa,_0x13b27e),f(0xb,_0x4a8bc3),f(0xc,_0x1e8ecc),f(0xd,_0x57ccc3)],J);let te=class extends fe{constructor(_0x5e9316,_0x102721,_0x2b1f2c,_0x5a5ac7,_0x24e390,_0x5084f2,_0x273a71,_0x57ab9b,_0x3a25fd,_0x569e5d,_0xbee60f){const _0x46e4b8=_0x173fa3;super(_0x5e9316,_0x102721,_0x2b1f2c,[],_0x5a5ac7,_0x57ab9b,_0xbee60f,_0x5084f2,_0x273a71),l(this,_0x46e4b8(0x38d),_0x46e4b8(0x41c)),l(this,'_resendTimeout',0x0),l(this,_0x46e4b8(0x3df)),l(this,_0x46e4b8(0x2ce)),(this['_injector']=_0x24e390,this[_0x46e4b8(0x2cd)]=_0x3a25fd,this[_0x46e4b8(0x387)]=_0x569e5d);}[_0x173fa3(0x44f)](_0xbbe675){const _0x3b6d92=_0x173fa3;this[_0x3b6d92(0x439)]();const _0x1ba7d8=this[_0x3b6d92(0x4b7)]['createInstance'](z,this[_0x3b6d92(0x23a)],this['type'],this['_awaitingChangeset'],[_0xbbe675],this[_0x3b6d92(0x340)],this['_resendTimer']);return _0x1ba7d8[_0x3b6d92(0x1ab)](),_0x1ba7d8;}['onRemoteChangeset'](_0x27e066){const _0x31219e=_0x173fa3;if(this['_checkMissing'](_0x27e066))return this[_0x31219e(0x439)](),this[_0x31219e(0x4b7)]['createInstance'](V,this[_0x31219e(0x23a)],this['type'],this[_0x31219e(0x249)],[],null,[_0x27e066],this[_0x31219e(0x340)]);try{const _0x1005fd=this['_transformService'][_0x31219e(0x3c8)]([_0x27e066],[this[_0x31219e(0x249)]],!0x1);if(_0xec58bb(_0x1005fd)){const {c1Prime:_0x126a44,c2Prime:_0x41020e}=_0x1005fd;this[_0x31219e(0x2ee)](_0x126a44[0x0]),_0x41020e[0x0][_0x31219e(0x4d3)]=this['_getCurrentRevision'](),this[_0x31219e(0x439)]();const _0x263ad4=this[_0x31219e(0x4b7)]['createInstance'](te,this['unitID'],this['type'],_0x41020e[0x0],this['_handler']);return _0x263ad4['_updateLocalCache'](),_0x263ad4;}return this[_0x31219e(0x1c7)](!0x1);}catch(_0x46ee68){return this[_0x31219e(0x2cd)][_0x31219e(0x3b8)](_0x46ee68),this[_0x31219e(0x1c7)](!0x1);}}[_0x173fa3(0x41f)](_0x2123f4){const _0x3d71c3=_0x173fa3;this['_clearScheduledTask']();const _0x59a967=this[_0x3d71c3(0x45a)][_0x3d71c3(0x462)](this['unitID']);if(_0x2123f4['revision']<_0x59a967-0x1)return this;if(this[_0x3d71c3(0x40f)](_0x2123f4))return this[_0x3d71c3(0x4b7)][_0x3d71c3(0x31f)](V,this[_0x3d71c3(0x23a)],this[_0x3d71c3(0x32d)],null,[],this[_0x3d71c3(0x249)],[],this[_0x3d71c3(0x340)]);this[_0x3d71c3(0x2ca)]();const _0xf593c7=this[_0x3d71c3(0x4b7)][_0x3d71c3(0x31f)](Ee,this['unitID'],this[_0x3d71c3(0x32d)],this[_0x3d71c3(0x340)]);return _0xf593c7['_updateLocalCache'](),_0xf593c7;}[_0x173fa3(0x277)](_0x326454){const _0x18011a=_0x173fa3;return this[_0x18011a(0x1c7)](!!(_0x326454!=null&&_0x326454[_0x18011a(0x1b7)]));}[_0x173fa3(0x1b0)](_0x12e342){const _0x388b30=_0x173fa3;return this[_0x388b30(0x4b2)]>Ks?this[_0x388b30(0x3bb)]():(this[_0x388b30(0x3df)]=Ys(this[_0x388b30(0x4b2)],{'timeout':this[_0x388b30(0x4b2)],'reqId':_0x12e342[_0x388b30(0x271)]}),this[_0x388b30(0x2ce)]=this[_0x388b30(0x3df)]['subscribe'](({reqId:_0x593cb8,timeout:_0x836247})=>{const _0x396b7a=_0x388b30;this[_0x396b7a(0x3fd)](_0x593cb8,_0x836247);}),this);}[_0x173fa3(0x3bb)](){const _0x56582e=_0x173fa3;return this[_0x56582e(0x439)](),this['_injector']['createInstance'](ie,this[_0x56582e(0x23a)],this['type'],this['_awaitingChangeset'],[],this[_0x56582e(0x340)]);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x1d1)](){const _0x27f908=_0x173fa3;this[_0x27f908(0x340)]['onSendChangeset'](this[_0x27f908(0x249)]);}[_0x173fa3(0x1c7)](_0x2b46db){const _0x58a042=_0x173fa3;return this['_clearScheduledTask'](),this['_injector']['createInstance'](se,this[_0x58a042(0x23a)],this['type'],this[_0x58a042(0x249)],[],this[_0x58a042(0x340)],_0x2b46db);}['_resendWithTimeout'](_0xbfda3a,_0x5cd2df){const _0x8c703b=_0x173fa3;var _0x49da73;_0xbfda3a===((_0x49da73=this[_0x8c703b(0x249)])==null?void 0x0:_0x49da73[_0x8c703b(0x271)])&&(this[_0x8c703b(0x1d1)](),this[_0x8c703b(0x4b2)]=_0x5cd2df===0x0?0x3e8:_0x5cd2df*0x2);}['_clearScheduledTask'](){const _0x16b3b4=_0x173fa3;var _0x52097c;(_0x52097c=this[_0x16b3b4(0x2ce)])==null||_0x52097c[_0x16b3b4(0x18e)](),this[_0x16b3b4(0x4b2)]=0x0;}};te=me([f(0x4,_0x4f7ed2(_0x3b0750)),f(0x5,_0x4f7ed2(_0x6cbd2e)),f(0x6,_0x4f7ed2(D)),f(0x7,_0xdec94a),f(0x8,_0x4329b1),f(0x9,_0x4a8bc3),f(0xa,_0x57ccc3)],te);let z=class extends fe{constructor(_0x749996,_0x503eeb,_0x358007,_0x171c44,_0x4630ed,_0x62da99,_0x2d1b5a,_0x2364ba,_0x23dae8,_0x3f4461,_0x1e0a7d,_0x3993d3,_0x1b7a79){const _0x54284e=_0x173fa3;super(_0x749996,_0x503eeb,_0x358007,_0x171c44,_0x4630ed,_0x3f4461,_0x1b7a79,_0x2364ba,_0x23dae8),l(this,_0x54284e(0x38d),_0x54284e(0x226)),l(this,_0x54284e(0x4b2),0x0),l(this,_0x54284e(0x3df)),l(this,_0x54284e(0x2ce)),(this[_0x54284e(0x4b7)]=_0x2d1b5a,this['_logService']=_0x1e0a7d,this[_0x54284e(0x387)]=_0x3993d3,_0x62da99&&(this[_0x54284e(0x3df)]=_0x62da99,this['_sender']=this[_0x54284e(0x3df)][_0x54284e(0x3eb)](({reqId:_0x490cf8,timeout:_0x3a2107})=>{const _0x25d2f9=_0x54284e;this[_0x25d2f9(0x3fd)](_0x490cf8,_0x3a2107);})));}[_0x173fa3(0x44f)](_0x2f1e85){const _0x4a2511=_0x173fa3;return this['_pendingMutations'][_0x4a2511(0x1da)](_0x2f1e85),this;}[_0x173fa3(0x228)](_0x2b0ca2){const _0x57c0b8=_0x173fa3;if(this['_checkMissing'](_0x2b0ca2))return this['_clearScheduledTask'](),this[_0x57c0b8(0x4b7)]['createInstance'](V,this['unitID'],this[_0x57c0b8(0x32d)],this[_0x57c0b8(0x249)],this['_pendingMutations'],null,[_0x2b0ca2],this[_0x57c0b8(0x340)]);try{const _0x4ae245=this['_transformService'][_0x57c0b8(0x3c8)]([_0x2b0ca2],[this['_awaitingChangeset']],!0x1);if(_0xec58bb(_0x4ae245)){const {c1Prime:_0x4e8474,c2Prime:_0x76f801}=_0x4ae245,_0x302c14=this[_0x57c0b8(0x387)][_0x57c0b8(0x3a5)](_0x4e8474[0x0],this[_0x57c0b8(0x4d0)]);if(_0x2c439f(_0x302c14)){const {c1Prime:_0x34491c,m2Prime:_0x4227f9}=_0x302c14;return this[_0x57c0b8(0x2ee)](_0x34491c),_0x76f801[0x0][_0x57c0b8(0x4d3)]=this[_0x57c0b8(0x246)](),this['_clearScheduledTask'](),this['_injector']['createInstance'](z,this[_0x57c0b8(0x23a)],this[_0x57c0b8(0x32d)],_0x76f801[0x0],_0x4227f9,this[_0x57c0b8(0x340)],void 0x0);}throw _0x302c14[_0x57c0b8(0x3b8)];}throw _0x4ae245[_0x57c0b8(0x3b8)];}catch(_0x548d34){return this[_0x57c0b8(0x2cd)][_0x57c0b8(0x3b8)](_0x548d34),this[_0x57c0b8(0x1c7)](!0x1);}}['onRemoteAck'](_0x14df42){const _0x2ae918=_0x173fa3;if(this[_0x2ae918(0x439)](),this[_0x2ae918(0x40f)](_0x14df42))return this['_injector'][_0x2ae918(0x31f)](V,this[_0x2ae918(0x23a)],this[_0x2ae918(0x32d)],null,this[_0x2ae918(0x4d0)],this[_0x2ae918(0x249)],[],this[_0x2ae918(0x340)]);this[_0x2ae918(0x2ca)]();const _0x181865=this[_0x2ae918(0x4b7)][_0x2ae918(0x31f)](J,this[_0x2ae918(0x23a)],this[_0x2ae918(0x32d)],this[_0x2ae918(0x4d0)],this[_0x2ae918(0x340)]);return _0x181865['_schedule'](),_0x181865[_0x2ae918(0x1ab)](),_0x181865;}[_0x173fa3(0x277)](_0x5d7208){const _0xea1213=_0x173fa3;return this[_0xea1213(0x1c7)](!!(_0x5d7208!=null&&_0x5d7208['isPermissionRej']));}[_0x173fa3(0x1b0)](_0x1e69c9){const _0x2b4f84=_0x173fa3;return this[_0x2b4f84(0x4b2)]>Ks?this['toggleOffline']():(this['_resendTimer']=Ys(this[_0x2b4f84(0x4b2)],{'timeout':this[_0x2b4f84(0x4b2)],'reqId':_0x1e69c9['reqId']}),this['_sender']=this['_resendTimer'][_0x2b4f84(0x3eb)](({reqId:_0x2a2710,timeout:_0x92c97b})=>{this['_resendWithTimeout'](_0x2a2710,_0x92c97b);}),this);}['toggleOffline'](){const _0x5241b4=_0x173fa3;return this[_0x5241b4(0x439)](),this[_0x5241b4(0x4b7)][_0x5241b4(0x31f)](ie,this[_0x5241b4(0x23a)],this[_0x5241b4(0x32d)],this[_0x5241b4(0x249)],this[_0x5241b4(0x4d0)],this['_handler']);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x1d1)](){const _0x2b792c=_0x173fa3;this['_handler'][_0x2b792c(0x379)](this[_0x2b792c(0x249)]);}['_onConflict'](_0x40beeb){const _0x1f43c5=_0x173fa3;return this[_0x1f43c5(0x439)](),this['_injector'][_0x1f43c5(0x31f)](se,this[_0x1f43c5(0x23a)],this[_0x1f43c5(0x32d)],null,this[_0x1f43c5(0x4d0)],this[_0x1f43c5(0x340)],_0x40beeb);}[_0x173fa3(0x3fd)](_0x336e72,_0xb05e2){const _0x37d11b=_0x173fa3;var _0x5360a6;_0x336e72===((_0x5360a6=this[_0x37d11b(0x249)])==null?void 0x0:_0x5360a6[_0x37d11b(0x271)])&&(this[_0x37d11b(0x1d1)](),this[_0x37d11b(0x4b2)]=_0xb05e2===0x0?0x3e8:_0xb05e2*0x2);}[_0x173fa3(0x439)](){const _0x5962e5=_0x173fa3;var _0x34c39e;(_0x34c39e=this[_0x5962e5(0x2ce)])==null||_0x34c39e[_0x5962e5(0x18e)](),this[_0x5962e5(0x4b2)]=0x0;}};z=me([f(0x6,_0x4f7ed2(_0x3b0750)),f(0x7,_0x4f7ed2(_0x6cbd2e)),f(0x8,_0x4f7ed2(D)),f(0x9,_0xdec94a),f(0xa,_0x4329b1),f(0xb,_0x4a8bc3),f(0xc,_0x57ccc3)],z);let se=class extends fe{constructor(_0x12d13b,_0x1ad249,_0xfd5084,_0x27a334,_0x69039e,_0x252f17=!0x1,_0x2c4068,_0x46cfd1,_0xc87da5,_0x1c0d27,_0x3191b5,_0x401182,_0x57e184){const _0x3fb9db=_0x173fa3;super(_0x12d13b,_0x1ad249,_0xfd5084,_0x27a334,_0x69039e,_0x46cfd1,_0xc87da5,_0x3191b5,_0x1c0d27),l(this,_0x3fb9db(0x38d),_0x3fb9db(0x2b1)),(this[_0x3fb9db(0x3e4)]=_0x252f17,this[_0x3fb9db(0x1d0)]=_0x2c4068,this[_0x3fb9db(0x2e7)]=_0x401182,this[_0x3fb9db(0x227)]=_0x57e184,this['_showConflictNotification'](),this[_0x3fb9db(0x225)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x173fa3(0x228)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x33a019=_0x173fa3;throw new Error(_0x33a019(0x19b));}[_0x173fa3(0x225)](){const _0x275036=_0x173fa3;this[_0x275036(0x292)][_0x275036(0x234)](this[_0x275036(0x23a)],this[_0x275036(0x32d)],null,[]);}[_0x173fa3(0x34b)](){const _0xf0b1cc=_0x173fa3;this[_0xf0b1cc(0x3e4)]?this['_notificationService']['show']({'title':this[_0xf0b1cc(0x2e7)]['t'](_0xf0b1cc(0x490)),'content':this[_0xf0b1cc(0x2e7)]['t'](_0xf0b1cc(0x1d8)),'type':_0xf0b1cc(0x3b8),'duration':0x0}):this[_0xf0b1cc(0x227)][_0xf0b1cc(0x1e6)]({'title':this[_0xf0b1cc(0x2e7)]['t'](_0xf0b1cc(0x34f)),'content':this[_0xf0b1cc(0x2e7)]['t']('conflict.content'),'type':_0xf0b1cc(0x3b8),'duration':0x0});}[_0x173fa3(0x261)](){const _0x4e512c=_0x173fa3;this[_0x4e512c(0x1d0)][_0x4e512c(0x1c5)](new _0x52a438(this[_0x4e512c(0x23a)])['id'],!0x1);}};se=me([f(0x6,_0x4f7ed2(_0x8f100a)),f(0x7,_0xdec94a),f(0x8,_0x57ccc3),f(0x9,_0x4f7ed2(D)),f(0xa,_0x4f7ed2(_0x6cbd2e)),f(0xb,_0x4f7ed2(_0x15839b)),f(0xc,_0x21df64)],se);let ie=class extends fe{constructor(_0x22b0c4,_0x3782dc,_0x73eb43,_0x31ff3b,_0x1b2044,_0x2e350b,_0x5c4fac,_0x110394,_0x57571b,_0x199ac4){const _0x563dd4=_0x173fa3;super(_0x22b0c4,_0x3782dc,_0x73eb43,_0x31ff3b,_0x1b2044,_0x57571b,_0x199ac4,_0x5c4fac,_0x110394),l(this,_0x563dd4(0x38d),'offline'),this[_0x563dd4(0x4b7)]=_0x2e350b;}[_0x173fa3(0x44f)](_0x39b599){const _0x174579=_0x173fa3;return this[_0x174579(0x4d0)][_0x174579(0x1da)](_0x39b599),this['_updateLocalCache'](),this;}[_0x173fa3(0x228)](_0x5f9133){const _0x467c3f=_0x173fa3;throw new Error(_0x467c3f(0x20a));}['onRemoteAck'](){const _0x1d8f1d=_0x173fa3;throw new Error(_0x1d8f1d(0x257));}[_0x173fa3(0x277)](){const _0x15e3b4=_0x173fa3;throw new Error(_0x15e3b4(0x3b5));}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){return this;}['toggleOnline'](){const _0x2b2b7a=_0x173fa3,{_injector:_0x47e0e2,_pendingMutations:_0x61dd7f,_awaitingChangeset:_0x2fdc50,unitID:_0x28e954,_handler:_0x7e2df4,type:_0x2c41d9}=this,_0x3f7b30=Xs(_0x47e0e2,_0x28e954,_0x2c41d9,_0x2fdc50,_0x61dd7f,_0x7e2df4);return _0x3f7b30 instanceof J?_0x3f7b30[_0x2b2b7a(0x3be)]():(_0x3f7b30 instanceof z||_0x3f7b30 instanceof te)&&_0x3f7b30[_0x2b2b7a(0x1d1)](),_0x3f7b30;}[_0x173fa3(0x1d1)](){const _0xafef73=_0x173fa3;throw new Error(_0xafef73(0x39e));}};ie=me([f(0x5,_0x4f7ed2(_0x3b0750)),f(0x6,_0x4f7ed2(_0x6cbd2e)),f(0x7,_0x4f7ed2(D)),f(0x8,_0xdec94a),f(0x9,_0x57ccc3)],ie);let V=class extends fe{constructor(_0x692ced,_0x455976,_0x5b2173,_0x4ec061,_0x3db837,_0x4712b0,_0x51f118,_0x11b88a,_0x210274,_0x22e5ba,_0x3e185a,_0x1fee45,_0x3641dc,_0x1bdb4b){const _0x2b0490=_0x173fa3;super(_0x692ced,_0x455976,_0x5b2173,_0x4ec061,_0x51f118,_0x1fee45,_0x3641dc,_0x210274,_0x22e5ba),l(this,_0x2b0490(0x38d),_0x2b0490(0x2af)),(this[_0x2b0490(0x500)]=_0x3db837,this[_0x2b0490(0x3db)]=_0x4712b0,this[_0x2b0490(0x4b7)]=_0x11b88a,this[_0x2b0490(0x2cd)]=_0x3e185a,this['_transformService']=_0x1bdb4b);}[_0x173fa3(0x1ed)](_0x4d0c62){const _0x53fe4f=_0x173fa3;try{const _0x1170a3=[..._0x4d0c62,...this[_0x53fe4f(0x3db)]],_0xddb6db=[this[_0x53fe4f(0x249)]||this[_0x53fe4f(0x500)]][_0x53fe4f(0x2fb)](_0x27b7d5=>!!_0x27b7d5);let _0x26acdd,_0x3671a8;if(_0xddb6db[_0x53fe4f(0x223)]){const _0x5c7718=this[_0x53fe4f(0x387)][_0x53fe4f(0x3c8)](_0x1170a3,_0xddb6db,!0x1);if(!_0xec58bb(_0x5c7718))throw _0x5c7718[_0x53fe4f(0x3b8)];_0x26acdd=_0x5c7718[_0x53fe4f(0x33a)],_0x3671a8=_0x5c7718['c2Prime'];}else _0x26acdd=_0x1170a3,_0x3671a8=[];let _0x56e252=this[_0x53fe4f(0x4d0)];_0x26acdd['forEach'](_0xebc70c=>{const _0x264dc0=_0x53fe4f;let _0x491adc;if(_0x56e252[_0x264dc0(0x223)]){const _0x188ac5=this['_transformService'][_0x264dc0(0x3a5)](_0xebc70c,_0x56e252);if(!_0x2c439f(_0x188ac5))throw _0x188ac5[_0x264dc0(0x3b8)];_0x491adc=_0x188ac5[_0x264dc0(0x33a)],_0x56e252=_0x188ac5[_0x264dc0(0x197)];}else _0x491adc=_0xebc70c;this[_0x264dc0(0x2ee)](_0x491adc);}),this[_0x53fe4f(0x500)]&&this[_0x53fe4f(0x2ca)](),this[_0x53fe4f(0x249)]&&_0x3671a8[_0x53fe4f(0x223)]&&(_0x3671a8[0x0][_0x53fe4f(0x4d3)]=this['_getCurrentRevision']());let _0x299c0d;if(this[_0x53fe4f(0x249)]&&_0x56e252[_0x53fe4f(0x223)]!==0x0)_0x299c0d=this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](z,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],_0x3671a8[0x0],_0x56e252,this['_handler'],void 0x0);else{if(this['_awaitingChangeset']&&_0x56e252[_0x53fe4f(0x223)]===0x0)_0x3671a8[0x0][_0x53fe4f(0x4d3)]=this[_0x53fe4f(0x246)](),_0x299c0d=this['_injector'][_0x53fe4f(0x31f)](te,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],_0x3671a8[0x0],this[_0x53fe4f(0x340)]);else{if(_0x56e252[_0x53fe4f(0x223)]!==0x0){const _0x345665=this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](J,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],_0x56e252,this['_handler']);_0x345665[_0x53fe4f(0x3be)](),_0x299c0d=_0x345665;}else _0x299c0d=this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](Ee,this['unitID'],this[_0x53fe4f(0x32d)],this[_0x53fe4f(0x340)]);}}return _0x299c0d['_updateLocalCache'](),_0x299c0d;}catch(_0x4ddfd1){return this[_0x53fe4f(0x2cd)][_0x53fe4f(0x3b8)](_0x53fe4f(0x23f),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4ddfd1),this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](se,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],this[_0x53fe4f(0x249)],this[_0x53fe4f(0x4d0)],this[_0x53fe4f(0x340)],!0x1);}}[_0x173fa3(0x1d1)](){const _0x596c3c=_0x173fa3;throw new Error(_0x596c3c(0x283));}[_0x173fa3(0x44f)](_0x45edb6){const _0x41c46e=_0x173fa3;return this['_pendingMutations'][_0x41c46e(0x1da)](_0x45edb6),this;}[_0x173fa3(0x228)](_0x5ce238){const _0x47d7c9=_0x173fa3;return this[_0x47d7c9(0x3db)][_0x47d7c9(0x1da)](_0x5ce238),this;}[_0x173fa3(0x41f)](_0x1fb235){const _0x590e83=_0x173fa3;if(this[_0x590e83(0x249)])return this['_acknowledgedAwaitingChangeset']=this[_0x590e83(0x249)],this[_0x590e83(0x249)]=null,this;throw new Error(_0x590e83(0x1e1));}[_0x173fa3(0x277)](_0x187833){const _0x3cc5a2=_0x173fa3;return this[_0x3cc5a2(0x1c7)](!!(_0x187833!=null&&_0x187833['isPermissionRej']));}[_0x173fa3(0x1b0)](){return this;}['toggleOffline'](){const _0x242e71=_0x173fa3;return this[_0x242e71(0x4b7)][_0x242e71(0x31f)](ie,this['unitID'],this[_0x242e71(0x32d)],this[_0x242e71(0x249)],this[_0x242e71(0x4d0)],this['_handler']);}[_0x173fa3(0x4a7)](){return this;}['_onConflict'](_0x50e826){const _0x306563=_0x173fa3;return this['_injector'][_0x306563(0x31f)](se,this[_0x306563(0x23a)],this['type'],this['_awaitingChangeset'],this[_0x306563(0x4d0)],this[_0x306563(0x340)],_0x50e826);}};V=me([f(0x7,_0x4f7ed2(_0x3b0750)),f(0x8,_0x4f7ed2(_0x6cbd2e)),f(0x9,_0x4f7ed2(D)),f(0xa,_0x4329b1),f(0xb,_0xdec94a),f(0xc,_0x57ccc3),f(0xd,_0x4a8bc3)],V);function Xs(_0xf20ead,_0x1c3a87,_0x510df3,_0x357f66,_0x31aae1,_0x4fdbb9){const _0x270d56=_0x173fa3;return _0x357f66&&_0x31aae1[_0x270d56(0x223)]?_0xf20ead[_0x270d56(0x31f)](z,_0x1c3a87,_0x510df3,_0x357f66,_0x31aae1,_0x4fdbb9,void 0x0):_0x357f66?_0xf20ead['createInstance'](te,_0x1c3a87,_0x510df3,_0x357f66,_0x4fdbb9):_0x31aae1[_0x270d56(0x223)]?_0xf20ead['createInstance'](J,_0x1c3a87,_0x510df3,_0x31aae1,_0x4fdbb9):_0xf20ead[_0x270d56(0x31f)](Ee,_0x1c3a87,_0x510df3,_0x4fdbb9);}var Dr=Object[_0x173fa3(0x309)],wr=Object['getOwnPropertyDescriptor'],Gt=(_0x566b17,_0x2c03f6,_0x56b934,_0x23f02f)=>{const _0x40d7c9=_0x173fa3;for(var _0x3be6bc=_0x23f02f>0x1?void 0x0:_0x23f02f?wr(_0x2c03f6,_0x56b934):_0x2c03f6,_0x1ba6fa=_0x566b17[_0x40d7c9(0x223)]-0x1,_0x73dcbe;_0x1ba6fa>=0x0;_0x1ba6fa--)(_0x73dcbe=_0x566b17[_0x1ba6fa])&&(_0x3be6bc=(_0x23f02f?_0x73dcbe(_0x2c03f6,_0x56b934,_0x3be6bc):_0x73dcbe(_0x3be6bc))||_0x3be6bc);return _0x23f02f&&_0x3be6bc&&Dr(_0x2c03f6,_0x56b934,_0x3be6bc),_0x3be6bc;},p=(_0x3bd44f,_0x478a52)=>(_0x224246,_0x42aa93)=>_0x478a52(_0x224246,_0x42aa93,_0x3bd44f);let ze=class extends _0x13ba8e{constructor(_0x4a6f49,_0x2227ce,_0x4fd43b,_0x300c61,_0x5350d2,_0x5091fb,_0x2824e4,_0x1c1a5f,_0x3491eb,_0xe8b4e0,_0x33f46e,_0x1396aa,_0x7a307e){const _0x522d57=_0x173fa3;super(),l(this,_0x522d57(0x1c0),new _0x37b5ce(null)),l(this,'state$',this[_0x522d57(0x1c0)][_0x522d57(0x2e6)]()),l(this,_0x522d57(0x335)),l(this,_0x522d57(0x400),!0x1),l(this,_0x522d57(0x354),''),l(this,_0x522d57(0x25e),0x0),l(this,_0x522d57(0x28e),this[_0x522d57(0x3d6)][_0x522d57(0x35b)](_0x4afa33(_0x26c124=>_0x26c124?_0x26c124[_0x522d57(0x38d)]:w[_0x522d57(0x410)]),_0x5fb4e1(0x1))),l(this,_0x522d57(0x510),!0x1),l(this,_0x522d57(0x190),[]),(this[_0x522d57(0x23a)]=_0x4a6f49,this[_0x522d57(0x4d2)]=_0x2227ce,this[_0x522d57(0x50c)]=_0x4fd43b,this['_injector']=_0x300c61,this['_localCacheService']=_0x5350d2,this[_0x522d57(0x328)]=_0x5091fb,this['_localeService']=_0x2824e4,this['_revisionService']=_0x1c1a5f,this[_0x522d57(0x2cd)]=_0x3491eb,this[_0x522d57(0x35c)]=_0xe8b4e0,this[_0x522d57(0x245)]=_0x33f46e,this[_0x522d57(0x1d0)]=_0x1396aa,this['_singleActiveUnitService']=_0x7a307e);}get['state'](){const _0x58b1e8=_0x173fa3;return this[_0x58b1e8(0x335)];}async['init'](){const _0x4f2894=_0x173fa3;if(this['state'])throw new Error(_0x4f2894(0x35d));await this['_init']();}[_0x173fa3(0x508)](){const _0x35aa24=_0x173fa3;return this[_0x35aa24(0x400)]=!0x0,_0x4a9188(()=>{const _0x5bde14=_0x35aa24;this[_0x5bde14(0x400)]=!0x1,this[_0x5bde14(0x370)]();});}['_updateState'](_0x3e025a){const _0x110abc=_0x173fa3;this[_0x110abc(0x335)]=_0x3e025a,this[_0x110abc(0x1c0)][_0x110abc(0x2d0)](_0x3e025a);}async[_0x173fa3(0x367)](){const _0x7ac7d4=_0x173fa3;var _0x12e4a4;this[_0x7ac7d4(0x258)](await this[_0x7ac7d4(0x1e3)]()),this[_0x7ac7d4(0x1cd)]&&((_0x12e4a4=this[_0x7ac7d4(0x1cd)])==null||_0x12e4a4[_0x7ac7d4(0x4fc)](this[_0x7ac7d4(0x23a)]),this[_0x7ac7d4(0x193)](this[_0x7ac7d4(0x1cd)][_0x7ac7d4(0x324)](this['unitID'])[_0x7ac7d4(0x3eb)](_0x57557e=>{const _0x2c804f=_0x7ac7d4;this['_logService'][_0x2c804f(0x28a)]('[CollaborationEntity]',_0x2c804f(0x437),_0x57557e),_0x57557e===Ws[_0x2c804f(0x3b9)]?(this[_0x2c804f(0x245)]['show']({'content':this[_0x2c804f(0x2e7)]['t']('collaboration.single-unit.warning'),'type':_0x180cc7[_0x2c804f(0x44a)]}),this[_0x2c804f(0x1d0)][_0x2c804f(0x1c5)](new _0x52a438(this[_0x2c804f(0x23a)])['id'],!0x1)):this['_permissionService']['updatePermissionPoint'](new _0x52a438(this['unitID'])['id'],!0x0);})));let _0x2c462b=!0x1;return this['disposeWithMe'](this[_0x7ac7d4(0x4d2)][_0x7ac7d4(0x303)]['subscribe'](_0x5c065a=>{const _0x35730f=_0x7ac7d4;_0x5c065a===X[_0x35730f(0x263)]?this['_toggleOnline'](_0x2c462b):_0x5c065a===X[_0x35730f(0x410)]&&(_0x2c462b=!0x0,this[_0x35730f(0x1b1)]());})),this['disposeWithMe'](this[_0x7ac7d4(0x4d2)][_0x7ac7d4(0x493)][_0x7ac7d4(0x3eb)](_0x34fb5e=>{const _0x444d4d=_0x7ac7d4;try{switch(_0x34fb5e[_0x444d4d(0x278)]){case _0x5f441e[_0x444d4d(0x2ef)]:{this[_0x444d4d(0x2b0)](_0x4ecc3b(_0x34fb5e['data']));break;}case _0x5f441e[_0x444d4d(0x18d)]:{this[_0x444d4d(0x4f4)](_0x34fb5e[_0x444d4d(0x411)]);break;}case _0x5f441e[_0x444d4d(0x25d)]:{this[_0x444d4d(0x1ac)]();break;}case _0x5f441e[_0x444d4d(0x4b9)]:{this['_onRemoteRetry'](_0x34fb5e[_0x444d4d(0x411)]);break;}case _0x5f441e[_0x444d4d(0x46f)]:{this[_0x444d4d(0x1df)](_0x34fb5e[_0x444d4d(0x411)][_0x444d4d(0x386)][_0x444d4d(0x204)](_0xd2ee3e=>_0x4ecc3b(_0xd2ee3e)));break;}case _0x5f441e['PERMISSION_REJ']:this[_0x444d4d(0x1ac)]({'isPermissionRej':!0x0});}}catch(_0x58728b){throw console[_0x444d4d(0x3b8)](_0x444d4d(0x4f8),_0x58728b),_0x58728b;}})),this[_0x7ac7d4(0x335)];}[_0x173fa3(0x2c6)](){const _0x404948=_0x173fa3;this[_0x404948(0x510)]=!0x1;}[_0x173fa3(0x2bd)](){const _0x4bf831=_0x173fa3;if(this[_0x4bf831(0x510)])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[_0x4bf831(0x510)]=!0x0;}['_onLocalMutation'](_0x23c61f){const _0x37bf45=_0x173fa3;this['_lockTransition'](),this[_0x37bf45(0x258)](this[_0x37bf45(0x335)][_0x37bf45(0x44f)](_0x23c61f)),this[_0x37bf45(0x2c6)]();}[_0x173fa3(0x2b0)](_0x42b691){const _0x4a6a48=_0x173fa3;if(!(_0x42b691[_0x4a6a48(0x495)]<=this['_revisionService'][_0x4a6a48(0x462)](this['unitID']))){if(this[_0x4a6a48(0x400)]){this['_remoteChangesetQueue']['push'](_0x42b691);return;}this[_0x4a6a48(0x2ad)](_0x42b691);}}[_0x173fa3(0x370)](){const _0x210b27=_0x173fa3;this['_remoteChangesetQueue']['forEach'](_0x1119fc=>this['_applyRemoteChangeset'](_0x1119fc)),this[_0x210b27(0x190)]=[];}['_applyRemoteChangeset'](_0x145610){const _0x4b49ef=_0x173fa3,_0x1cef39=this[_0x4b49ef(0x328)][_0x4b49ef(0x28d)][_0x4b49ef(0x448)](this['_compressMutationService'][_0x4b49ef(0x28d)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x145610[_0x4b49ef(0x4cd)],null)||_0x145610['mutations'],_0x2aee62={..._0x145610,'mutations':_0x1cef39};this['_lockTransition'](),this[_0x4b49ef(0x258)](this['_state']['onRemoteChangeset'](_0x2aee62)),this[_0x4b49ef(0x2c6)]();}['_onRemoteACK'](_0x11f488){const _0x4f2afd=_0x173fa3;this[_0x4f2afd(0x2bd)](),this[_0x4f2afd(0x258)](this[_0x4f2afd(0x335)][_0x4f2afd(0x41f)](_0x11f488)),this[_0x4f2afd(0x2c6)]();}[_0x173fa3(0x1ac)](_0x1f1572){const _0x5cbc06=_0x173fa3;this[_0x5cbc06(0x2bd)](),this[_0x5cbc06(0x258)](this[_0x5cbc06(0x335)][_0x5cbc06(0x277)](_0x1f1572)),this['_unlockTransition']();}['_onRemoteRetry'](_0x228093){const _0x493e6d=_0x173fa3;this[_0x493e6d(0x2bd)](),this[_0x493e6d(0x258)](this[_0x493e6d(0x335)]['onRemoteRetry'](_0x228093)),this[_0x493e6d(0x2c6)]();}[_0x173fa3(0x1df)](_0x37a324){const _0x882bb5=_0x173fa3;if(!(this[_0x882bb5(0x335)]instanceof V))throw new TypeError(_0x882bb5(0x4e1));const _0x2d68e3=_0x37a324[_0x882bb5(0x204)](_0x190ccf=>{const _0x324136=_0x882bb5,_0xaaf6b9=this[_0x324136(0x328)]['interceptor'][_0x324136(0x448)](this[_0x324136(0x328)]['interceptor'][_0x324136(0x440)]()[_0x324136(0x383)])(_0x190ccf[_0x324136(0x4cd)],null)||_0x190ccf[_0x324136(0x4cd)];return{..._0x190ccf,'mutations':_0xaaf6b9};});this[_0x882bb5(0x2bd)](),this[_0x882bb5(0x258)](this[_0x882bb5(0x335)][_0x882bb5(0x1ed)](_0x2d68e3)),this['_unlockTransition']();}[_0x173fa3(0x1b1)](){const _0x452003=_0x173fa3;this['_lockTransition'](),this['_updateState'](this[_0x452003(0x335)]['toggleOffline']()),this[_0x452003(0x2c6)]();}[_0x173fa3(0x23d)](_0xd512cd=!0x1){const _0x4f1812=_0x173fa3;this[_0x4f1812(0x2bd)](),this[_0x4f1812(0x258)](this['_state']['toggleOnline']()),this[_0x4f1812(0x2c6)]();const _0x5b8dc1=this['_state'];_0xd512cd&&_0x5b8dc1 instanceof Ee&&(this[_0x4f1812(0x2bd)](),this['_updateState'](_0x5b8dc1['fetchMiss']()),this['_unlockTransition']());}async[_0x173fa3(0x1e3)](){return new Promise(_0x2d3686=>{const _0x364d0c=_0x33c3;this[_0x364d0c(0x4d2)]['sessionStatus$']['pipe'](_0x13b5e9(0x1))[_0x364d0c(0x3eb)](async _0xf4a2ee=>{const _0x251ae2=_0x364d0c;_0x2d3686(await this[_0x251ae2(0x488)](_0xf4a2ee===X[_0x251ae2(0x263)]));});});}[_0x173fa3(0x2de)](){const _0x5bc00e=_0x173fa3,_0x65b7a2=this[_0x5bc00e(0x23a)];return{'onStateChange':(_0x4d212c,_0x26719e)=>{const _0x37f6e8=_0x5bc00e;if(_0x4d212c!==this[_0x37f6e8(0x335)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x4d212c['status']+_0x37f6e8(0x390)+_0x26719e['status']+_0x37f6e8(0x350)+this[_0x37f6e8(0x335)][_0x37f6e8(0x38d)]);this[_0x37f6e8(0x258)](_0x26719e);},'onSendChangeset':_0x23b2c0=>{const _0x46726d=_0x5bc00e;_0x23b2c0[_0x46726d(0x3da)]||(_0x23b2c0[_0x46726d(0x3da)]=this['_changesetSessionId'],_0x23b2c0[_0x46726d(0x271)]=++this['_changesetReqId']);const _0x136df2={'eventID':_0x5f441e[_0x46726d(0x453)],'data':{'unitID':_0x23b2c0[_0x46726d(0x23a)],'unitType':this['_type'],'changeset':_0x23b2c0,'memberID':this['session']['getMemberID']()}};this[_0x46726d(0x4d2)][_0x46726d(0x2ab)](_0x136df2,this[_0x46726d(0x23a)]);},'onMissingChangesets':({from:_0x43c58c,to:_0x5910f5})=>{const _0x414009=_0x5bc00e;this[_0x414009(0x2cd)][_0x414009(0x28a)](_0x414009(0x229),_0x414009(0x2b8)+_0x43c58c+_0x414009(0x2ed)+_0x5910f5);const _0x4c0383={'eventID':_0x5f441e[_0x414009(0x4a2)],'data':{'unitID':_0x65b7a2,'unitType':this['_type'],'from':_0x43c58c,'to':_0x5910f5}};this[_0x414009(0x4d2)]['send'](_0x4c0383,this[_0x414009(0x23a)]);}};}async[_0x173fa3(0x488)](_0x4937a7){const _0x552654=_0x173fa3;var _0x214f4e,_0x266623;const _0x429ce4=await this[_0x552654(0x292)][_0x552654(0x302)](this[_0x552654(0x23a)]),_0x2cf7c2=(_0x214f4e=_0x429ce4==null?void 0x0:_0x429ce4[_0x552654(0x4cd)])!=null?_0x214f4e:[],_0x13f3e6=(_0x266623=_0x429ce4==null?void 0x0:_0x429ce4[_0x552654(0x3fe)])!=null?_0x266623:null,_0x1ca59f=!!(_0x13f3e6!=null&&_0x13f3e6[_0x552654(0x3da)])&&!!(_0x13f3e6!=null&&_0x13f3e6[_0x552654(0x271)]);this[_0x552654(0x354)]=_0x1ca59f?_0x13f3e6[_0x552654(0x3da)]:or(),this[_0x552654(0x25e)]=_0x1ca59f?_0x13f3e6[_0x552654(0x271)]:0x0;const _0x4f70b7=this['unitID'];try{this['_replayCachedMutations'](_0x13f3e6,_0x2cf7c2);}catch(_0xfbc31c){this[_0x552654(0x2cd)][_0x552654(0x3b8)](_0xfbc31c);}const _0x1cf04d=this[_0x552654(0x2de)]();if(_0x4937a7){const _0x20db5b=Xs(this['_injector'],_0x4f70b7,this[_0x552654(0x50c)],_0x13f3e6,_0x2cf7c2,_0x1cf04d);return _0x20db5b instanceof J?_0x20db5b[_0x552654(0x3be)]():(_0x20db5b instanceof z||_0x20db5b instanceof te)&&_0x20db5b[_0x552654(0x1d1)](),_0x20db5b;}return this[_0x552654(0x4b7)][_0x552654(0x31f)](ie,_0x4f70b7,this[_0x552654(0x50c)],_0x13f3e6,_0x2cf7c2,_0x1cf04d);}[_0x173fa3(0x423)](_0x49efcd,_0x2d86e8){const _0x21a18a=_0x173fa3;var _0x147d16,_0x26060f;const _0x59425c=this[_0x21a18a(0x328)]['interceptor']['fetchThroughInterceptors'](this[_0x21a18a(0x328)][_0x21a18a(0x28d)][_0x21a18a(0x440)]()[_0x21a18a(0x383)]);(_0x147d16=_0x59425c((_0x49efcd==null?void 0x0:_0x49efcd[_0x21a18a(0x4cd)])||[],null))==null||_0x147d16['forEach'](_0x24b135=>this[_0x21a18a(0x35c)][_0x21a18a(0x1d2)](_0x24b135['id'],_0x24b135[_0x21a18a(0x465)])),(_0x26060f=_0x59425c(_0x2d86e8||[],null))==null||_0x26060f[_0x21a18a(0x47e)](_0x1027d6=>this[_0x21a18a(0x35c)][_0x21a18a(0x1d2)](_0x1027d6['id'],_0x1027d6[_0x21a18a(0x465)]));}};ze=Gt([p(0x3,_0x4f7ed2(_0x3b0750)),p(0x4,_0x4f7ed2(D)),p(0x5,_0x4f7ed2(_0x413548)),p(0x6,_0x4f7ed2(_0x15839b)),p(0x7,_0x4f7ed2(_0x6cbd2e)),p(0x8,_0x4329b1),p(0x9,_0xdec94a),p(0xa,_0x46e149),p(0xb,_0x8f100a),p(0xc,_0x532e88(it))],ze);let Rt=class extends ze{constructor(_0x2abca1,_0xa495c4,_0x50a118,_0x114f9c,_0x233088,_0x8b0685,_0xfe9839,_0x4f1333,_0x3fb426,_0x5af4e6,_0xe54e7d,_0xdcba90,_0xbfa3ef,_0x4b6da5,_0x1197df,_0x3991ca,_0x31be43){const _0x204281=_0x173fa3;super(_0x2abca1,_0x50a118,_0xa495c4,_0x114f9c,_0x233088,_0x8b0685,_0xfe9839,_0x4f1333,_0xbfa3ef,_0x4b6da5,_0x1197df,_0x3991ca,_0x31be43),this[_0x204281(0x23a)]=_0x2abca1,this['type']=_0xa495c4,this[_0x204281(0x4a3)]=_0x3fb426,this[_0x204281(0x286)]=_0x5af4e6,this[_0x204281(0x24b)]=_0xe54e7d,this['_docSyncEditingCollabCursorService']=_0xdcba90;}['_createHandler'](){const _0x3c5d2f=_0x173fa3,_0x6ad273=super[_0x3c5d2f(0x2de)]();return _0x6ad273[_0x3c5d2f(0x280)]=_0x233f62=>this[_0x3c5d2f(0x286)][_0x3c5d2f(0x334)](_0x233f62),_0x6ad273['onTransformSelections']=_0x5ee987=>this[_0x3c5d2f(0x24b)][_0x3c5d2f(0x366)](_0x5ee987),_0x6ad273['onSyncEditingCollabCursor']=_0x1ffdaa=>this[_0x3c5d2f(0x27d)][_0x3c5d2f(0x461)](_0x1ffdaa),_0x6ad273['onTransformRemoteChangesetByIMECache']=_0x2ada47=>this['_docTransformIMECacheService'][_0x3c5d2f(0x47a)](_0x2ada47),_0x6ad273;}async['_init'](){const _0x2b610c=_0x173fa3,_0x593e87=await super[_0x2b610c(0x367)]();return this[_0x2b610c(0x4a3)][_0x2b610c(0x1ae)][_0x2b610c(0x35b)](_0x223895(this[_0x2b610c(0x2a1)]))[_0x2b610c(0x3eb)](_0x51429a=>{const _0x1aa698=_0x2b610c;if(_0x51429a==null)return;const {unitId:_0xf08b52,redoState:_0x1b3e6d,commandId:_0x2a18a3}=_0x51429a;if(_0xf08b52!==this['unitID'])return;const _0x484f98={'id':_0x2a18a3,'type':_0x12b588[_0x1aa698(0x45f)],'params':{'unitId':_0xf08b52,'actions':_0x1b3e6d[_0x1aa698(0x1c3)],'textRanges':null}};this[_0x1aa698(0x48f)](_0x484f98);}),_0x593e87;}};Rt=Gt([p(0x3,_0x4f7ed2(_0x3b0750)),p(0x4,_0x4f7ed2(D)),p(0x5,_0x4f7ed2(_0x413548)),p(0x6,_0x4f7ed2(_0x15839b)),p(0x7,_0x4f7ed2(_0x6cbd2e)),p(0x8,_0x4f7ed2(_0x12095e)),p(0x9,_0x4f7ed2(Xe)),p(0xa,_0x4f7ed2(Je)),p(0xb,_0x4f7ed2(Wt)),p(0xc,_0x4329b1),p(0xd,_0xdec94a),p(0xe,_0x46e149),p(0xf,_0x8f100a),p(0x10,_0x532e88(it))],Rt);let Ot=class extends ze{constructor(_0x14b486,_0x7e0a8a,_0x15964c,_0x14491a,_0xd83adc,_0x1c9372,_0x1189d4,_0x20fa93,_0x1a6800,_0x44eed9,_0x259196,_0x297ab2,_0x272f3f,_0x3ab0ab){const _0x30c149=_0x173fa3;super(_0x14b486,_0x15964c,_0x7e0a8a,_0x14491a,_0xd83adc,_0x1c9372,_0x1189d4,_0x20fa93,_0x44eed9,_0x259196,_0x297ab2,_0x272f3f,_0x3ab0ab),this[_0x30c149(0x23a)]=_0x14b486,this[_0x30c149(0x32d)]=_0x7e0a8a,this['_sheetTransformSelectionsService']=_0x1a6800;}[_0x173fa3(0x2de)](){const _0x3a422a=_0x173fa3,_0x167e54=super['_createHandler']();return _0x167e54[_0x3a422a(0x405)]=_0x18770d=>this[_0x3a422a(0x494)][_0x3a422a(0x366)](_0x18770d),_0x167e54;}async[_0x173fa3(0x367)](){const _0x22065a=_0x173fa3,_0xc6d202=await super[_0x22065a(0x367)]();return this[_0x22065a(0x193)](this[_0x22065a(0x35c)][_0x22065a(0x409)]((_0x2d55bb,_0xa3fb0e)=>{const _0xe301a7=_0x22065a;if(_0x2d55bb[_0xe301a7(0x32d)]!==_0x12b588['MUTATION']||_0xa3fb0e!=null&&_0xa3fb0e[_0xe301a7(0x48b)]||_0xa3fb0e!=null&&_0xa3fb0e[_0xe301a7(0x310)])return;const _0x2d3b14=_0x2d55bb['params'];if((_0x2d3b14==null?void 0x0:_0x2d3b14[_0xe301a7(0x217)])!==this['unitID'])return;const _0x206d88=_0x2d55bb,_0xbd861f=this[_0xe301a7(0x328)][_0xe301a7(0x28d)][_0xe301a7(0x448)](this[_0xe301a7(0x328)][_0xe301a7(0x28d)][_0xe301a7(0x440)]()[_0xe301a7(0x327)])([_0x206d88],null)||[_0x206d88];this[_0xe301a7(0x48f)](_0xbd861f[0x0]);})),_0xc6d202;}};Ot=Gt([p(0x3,_0x4f7ed2(_0x3b0750)),p(0x4,_0x4f7ed2(D)),p(0x5,_0x4f7ed2(_0x413548)),p(0x6,_0x4f7ed2(_0x15839b)),p(0x7,_0x4f7ed2(_0x6cbd2e)),p(0x8,_0x4f7ed2(qe)),p(0x9,_0x4329b1),p(0xa,_0xdec94a),p(0xb,_0x46e149),p(0xc,_0x8f100a),p(0xd,_0x532e88(it))],Ot);var Pr=Object[_0x173fa3(0x309)],yr=Object[_0x173fa3(0x4d5)],Ur=(_0x3c7b85,_0x398c06,_0x50c1b0,_0x565c87)=>{const _0x28dcce=_0x173fa3;for(var _0x30fa9c=_0x565c87>0x1?void 0x0:_0x565c87?yr(_0x398c06,_0x50c1b0):_0x398c06,_0x3cecda=_0x3c7b85[_0x28dcce(0x223)]-0x1,_0x32ac3c;_0x3cecda>=0x0;_0x3cecda--)(_0x32ac3c=_0x3c7b85[_0x3cecda])&&(_0x30fa9c=(_0x565c87?_0x32ac3c(_0x398c06,_0x50c1b0,_0x30fa9c):_0x32ac3c(_0x30fa9c))||_0x30fa9c);return _0x565c87&&_0x30fa9c&&Pr(_0x398c06,_0x50c1b0,_0x30fa9c),_0x30fa9c;},ut=(_0x162c61,_0x448205)=>(_0x43eb67,_0x1f3e6e)=>_0x448205(_0x43eb67,_0x1f3e6e,_0x162c61);let $e=class extends _0x13ba8e{constructor(_0x49d9fb,_0x286460,_0x4bd336){const _0x765214=_0x173fa3;super(),l(this,_0x765214(0x2d5),new Map()),l(this,'_entityInit$',new _0x54d3a4()),(this['_injector']=_0x49d9fb,this[_0x765214(0x3ef)]=_0x286460,this[_0x765214(0x3f2)]=_0x4bd336,this[_0x765214(0x367)]());}[_0x173fa3(0x2c0)](){const _0x28c500=_0x173fa3;super[_0x28c500(0x2c0)](),this[_0x28c500(0x2d5)]['forEach'](_0x48ebc2=>_0x48ebc2['dispose']()),this['_entities'][_0x28c500(0x483)]();}[_0x173fa3(0x37a)](_0x4b3808){const _0x41bdb5=_0x173fa3;var _0x40c7e2;return(_0x40c7e2=this[_0x41bdb5(0x2d5)][_0x41bdb5(0x3c3)](_0x4b3808))!=null?_0x40c7e2:null;}[_0x173fa3(0x331)](_0x125a56){const _0xa93347=_0x173fa3,_0x31c498=this[_0xa93347(0x37a)](_0x125a56);return _0x31c498?_0x2ad1bd(_0x31c498):this[_0xa93347(0x43f)]['pipe'](_0x3f9fc1(_0x310e2e=>_0x310e2e[_0xa93347(0x23a)]===_0x125a56));}[_0x173fa3(0x367)](){const _0x1e651c=_0x173fa3;this[_0x1e651c(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d[_0x1e651c(0x4fa)])[_0x1e651c(0x35b)](_0x223895(this['dispose$']),_0xd71fd1(0x10))[_0x1e651c(0x3eb)](async _0x3e632f=>{const _0xab0b59=_0x1e651c,_0x23d5f9=_0x3e632f[_0xab0b59(0x253)](),_0x1ebc6a=await this[_0xab0b59(0x442)](_0x23d5f9,B['UNIVER_SHEET']);this[_0xab0b59(0x2d5)][_0xab0b59(0x3e3)](_0x23d5f9,_0x1ebc6a);}),this[_0x1e651c(0x3f2)][_0x1e651c(0x22f)](_0x159e2d[_0x1e651c(0x381)])['pipe'](_0x223895(this[_0x1e651c(0x2a1)]),_0xd71fd1(0x10))[_0x1e651c(0x35b)](_0x3f9fc1(_0x594f5a=>!_0x594f5a[_0x1e651c(0x253)]()['startsWith']('__')))['subscribe'](async _0x43b807=>{const _0x567724=_0x1e651c,_0x51f1ca=_0x43b807['getUnitId'](),_0x206ee0=await this[_0x567724(0x442)](_0x51f1ca,B[_0x567724(0x381)]);this[_0x567724(0x2d5)][_0x567724(0x3e3)](_0x51f1ca,_0x206ee0);}),_0x378f3d(this[_0x1e651c(0x3f2)][_0x1e651c(0x33e)](_0x159e2d[_0x1e651c(0x4fa)]),this[_0x1e651c(0x3f2)][_0x1e651c(0x33e)](_0x159e2d['UNIVER_DOC']))[_0x1e651c(0x35b)](_0x223895(this[_0x1e651c(0x2a1)]))[_0x1e651c(0x3eb)](_0x489db7=>{const _0x233e58=_0x1e651c,_0x4373f7=_0x489db7[_0x233e58(0x253)](),_0x5f3f2c=this[_0x233e58(0x2d5)][_0x233e58(0x3c3)](_0x4373f7);_0x5f3f2c&&(_0x5f3f2c[_0x233e58(0x2c0)](),this[_0x233e58(0x2d5)][_0x233e58(0x43b)](_0x4373f7));});}async['_startCollaboration'](_0x99b296,_0x44e7c4){const _0xcb92be=_0x173fa3,_0x3d3494=await this[_0xcb92be(0x3ef)][_0xcb92be(0x395)](_0x99b296),_0xf42d71=this['_injector'][_0xcb92be(0x31f)](this[_0xcb92be(0x499)](_0x44e7c4),_0x99b296,_0x44e7c4,_0x3d3494);return await _0xf42d71[_0xcb92be(0x415)](),this['_entityInit$'][_0xcb92be(0x2d0)](_0xf42d71),_0xf42d71;}[_0x173fa3(0x499)](_0x145b3a){const _0x1de463=_0x173fa3;switch(_0x145b3a){case B['UNIVER_DOC']:return Rt;case B[_0x1de463(0x4fa)]:return Ot;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x145b3a);}}};$e=Ur([ut(0x0,_0x4f7ed2(_0x3b0750)),ut(0x1,_0x4f7ed2(ue)),ut(0x2,_0x1e8ecc)],$e);const fs=[_0x173fa3(0x1db),'jiqing500',_0x173fa3(0x2f3),_0x173fa3(0x3d4),_0x173fa3(0x3a4),'gold400'];class Yt extends _0x1ed84d{constructor(){const _0x2fc741=_0x173fa3;super(...arguments),l(this,_0x2fc741(0x42b),new Map()),l(this,_0x2fc741(0x2a4),0x0);}['assignAColorForMemberID'](_0x1b8dd9){const _0x50f04b=_0x173fa3;if(this[_0x50f04b(0x42b)]['has'](_0x1b8dd9))return this['_assignedColors'][_0x50f04b(0x3c3)](_0x1b8dd9);const _0x24f437=fs[this[_0x50f04b(0x2a4)]];return this['_colorIndex']=(this[_0x50f04b(0x2a4)]+0x1)%fs['length'],this[_0x50f04b(0x42b)][_0x50f04b(0x3e3)](_0x1b8dd9,_0x24f437),_0x24f437;}}var Nr=Object[_0x173fa3(0x309)],Ar=Object[_0x173fa3(0x4d5)],Mr=(_0x5af117,_0x42005f,_0x2697e5,_0x295701)=>{const _0x321693=_0x173fa3;for(var _0x18b805=_0x295701>0x1?void 0x0:_0x295701?Ar(_0x42005f,_0x2697e5):_0x42005f,_0x5b16ab=_0x5af117[_0x321693(0x223)]-0x1,_0x313033;_0x5b16ab>=0x0;_0x5b16ab--)(_0x313033=_0x5af117[_0x5b16ab])&&(_0x18b805=(_0x295701?_0x313033(_0x42005f,_0x2697e5,_0x18b805):_0x313033(_0x18b805))||_0x18b805);return _0x295701&&_0x18b805&&Nr(_0x42005f,_0x2697e5,_0x18b805),_0x18b805;},oe=(_0x7fb2d8,_0x41d828)=>(_0x207142,_0x11bb25)=>_0x41d828(_0x207142,_0x11bb25,_0x7fb2d8);const Lr=0x12c,$r=0x64;let Dt=class extends _0x13ba8e{constructor(_0x3b3957,_0x336306,_0x243969,_0x513bcb,_0x29d5cf,_0x3386e7,_0x449bdd,_0x453a35,_0x4f38e3){const _0x36f95b=_0x173fa3;super(),l(this,'_online',!0x1),l(this,_0x36f95b(0x367),!0x1),l(this,_0x36f95b(0x254),new _0x37b5ce(new Map())),l(this,'cursorInfo$',this[_0x36f95b(0x254)][_0x36f95b(0x2e6)]()),l(this,_0x36f95b(0x2d3),new _0x37b5ce([])),l(this,_0x36f95b(0x1c8),this['_roomMembers$'][_0x36f95b(0x35b)](_0x1fc3db(Lr))),l(this,_0x36f95b(0x2fd),_0x2d1802(_0x3c4226=>{const _0x3a16b2=_0x36f95b,_0xf9d64d={'eventID':_0x5f441e[_0x3a16b2(0x1d3)],'data':{'unitID':this[_0x3a16b2(0x23a)],'memberID':this['_session']['getMemberID'](),'selection':Gs(_0x3c4226)}};this['_session'][_0x3a16b2(0x2ab)](_0xf9d64d,this[_0x3a16b2(0x23a)]);},$r)),(this[_0x36f95b(0x23a)]=_0x3b3957,this[_0x36f95b(0x459)]=_0x336306,this[_0x36f95b(0x4b7)]=_0x243969,this[_0x36f95b(0x42c)]=_0x513bcb,this[_0x36f95b(0x1c9)]=_0x29d5cf,this[_0x36f95b(0x365)]=_0x3386e7,this[_0x36f95b(0x387)]=_0x449bdd,this[_0x36f95b(0x3f2)]=_0x453a35,this['_commandService']=_0x4f38e3);}get[_0x173fa3(0x371)](){const _0x3894b6=_0x173fa3;return this[_0x3894b6(0x254)][_0x3894b6(0x2bc)]();}get['roomMembers'](){const _0x2aca18=_0x173fa3;return this[_0x2aca18(0x2d3)]['getValue']();}[_0x173fa3(0x2c0)](){const _0x4b5ca3=_0x173fa3;super[_0x4b5ca3(0x2c0)](),this[_0x4b5ca3(0x254)][_0x4b5ca3(0x2d0)](new Map()),this['_cursorInfo$'][_0x4b5ca3(0x3b0)](),this['_roomMembers$'][_0x4b5ca3(0x2d0)]([]),this[_0x4b5ca3(0x2d3)][_0x4b5ca3(0x3b0)]();}[_0x173fa3(0x415)](){const _0x1821aa=_0x173fa3;this['_init']||(this[_0x1821aa(0x367)]=!0x0,this[_0x1821aa(0x459)]['sessionStatus$'][_0x1821aa(0x35b)](_0x223895(this[_0x1821aa(0x2a1)]))[_0x1821aa(0x3eb)](_0x1d6774=>{const _0x2fe190=_0x1821aa;_0x1d6774===X[_0x2fe190(0x263)]?this[_0x2fe190(0x23d)]():this[_0x2fe190(0x1b1)]();}),this[_0x1821aa(0x459)]['event$'][_0x1821aa(0x35b)](_0x223895(this[_0x1821aa(0x2a1)]))[_0x1821aa(0x3eb)](_0x2314f3=>{const _0xdd1ec6=_0x1821aa,_0xf74633=_0x2314f3[_0xdd1ec6(0x278)];_0xf74633===_0x5f441e[_0xdd1ec6(0x1d3)]&&this[_0xdd1ec6(0x506)](_0x2314f3),_0xf74633===_0x5f441e[_0xdd1ec6(0x4b5)]&&this[_0xdd1ec6(0x2a9)](_0x2314f3);}),this[_0x1821aa(0x193)](this[_0x1821aa(0x35c)]['onCommandExecuted'](_0x28e4b5=>{const _0x312560=_0x1821aa,_0x521174=_0x28e4b5[_0x312560(0x465)];_0x521174!=null&&this['_online']&&_0x28e4b5['id']===_0x538b13['id']&&_0x521174[_0x312560(0x217)]===this[_0x312560(0x23a)]&&_0x521174[_0x312560(0x3e8)]===!0x1&&_0x521174[_0x312560(0x1f5)][_0x312560(0x223)]>0x0&&this[_0x312560(0x2fd)](_0x521174[_0x312560(0x1f5)]);})),this[_0x1821aa(0x365)][_0x1821aa(0x4ce)][_0x1821aa(0x35b)](_0x223895(this['dispose$']))[_0x1821aa(0x3eb)](_0x3c5f64=>{const _0x9424ff=_0x1821aa;if((_0x3c5f64==null?void 0x0:_0x3c5f64['unitID'])!==this[_0x9424ff(0x23a)])return;const _0xaeb7a4={'eventID':_0x5f441e[_0x9424ff(0x1d3)],'data':_0x3c5f64};this['_onCursorUpdate'](_0xaeb7a4);}),this['disposeWithMe'](this[_0x1821aa(0x35c)][_0x1821aa(0x409)](_0x4f611e=>{const _0x306337=_0x1821aa;if(_0x4f611e[_0x306337(0x465)]==null)return;const _0x44931d=_0x4f611e[_0x306337(0x465)];if(_0x4f611e['id']!==_0x179d55['id']||_0x44931d[_0x306337(0x217)]!==this[_0x306337(0x23a)])return;const _0x4a48d1={'id':_0x306337(0x21f),'params':_0x44931d},_0x329098=this[_0x306337(0x371)];for(const [_0x433ea0,_0x494318]of _0x329098){const _0x2aaffd={'id':_0x306337(0x21f),'params':{'unitId':this[_0x306337(0x23a)],'actions':null,'textRanges':_0x494318[_0x306337(0x1f5)]}},_0x2fef04=this[_0x306337(0x387)]['transformMutation'](_0x4a48d1,_0x2aaffd,!0x1);if(_0x44527a(_0x2fef04))throw _0x2fef04[_0x306337(0x3b8)];_0x329098[_0x306337(0x3e3)](_0x433ea0,{..._0x494318,'ranges':_0x2fef04[_0x306337(0x197)][_0x306337(0x465)]['textRanges']});}queueMicrotask(()=>{const _0x253f13=_0x306337;this['_cursorInfo$'][_0x253f13(0x2d0)](_0x329098);});})));}[_0x173fa3(0x506)](_0x4fb499){const _0x5467ae=_0x173fa3;var _0x1987e8,_0x497acf;const {memberID:_0x55ad3a,selection:_0x517097}=_0x4fb499[_0x5467ae(0x411)],_0x33a8a0=pr(_0x517097),_0x49319e=(_0x497acf=(_0x1987e8=this[_0x5467ae(0x1c9)][_0x5467ae(0x50b)](this[_0x5467ae(0x23a)],_0x55ad3a))==null?void 0x0:_0x1987e8[_0x5467ae(0x284)])!=null?_0x497acf:_0x5467ae(0x3d1),_0xbb6620={'color':this['_colorAssignService'][_0x5467ae(0x3f1)](_0x55ad3a),'name':_0x49319e,'ranges':_0x33a8a0},_0x56be7d=this[_0x5467ae(0x371)];_0x56be7d[_0x5467ae(0x3e3)](_0x55ad3a,_0xbb6620),this[_0x5467ae(0x254)]['next'](_0x56be7d);}[_0x173fa3(0x2a9)](_0x112fb6){const _0x4cfbe5=_0x173fa3,{memberID:_0x153d07}=_0x112fb6['data'],_0x96c7fb=this[_0x4cfbe5(0x371)];_0x96c7fb[_0x4cfbe5(0x43b)](_0x153d07),this[_0x4cfbe5(0x254)]['next'](_0x96c7fb);}[_0x173fa3(0x23d)](){const _0xcbf0e3=_0x173fa3;var _0x1c09e8;if(this[_0xcbf0e3(0x211)]=!0x0,((_0x1c09e8=this['_univerInstanceService'][_0xcbf0e3(0x39c)]())==null?void 0x0:_0x1c09e8[_0xcbf0e3(0x253)]())!==this['unitID'])return;const _0xd1e495=this[_0xcbf0e3(0x4b7)][_0xcbf0e3(0x3c3)](_0x35ae8c)[_0xcbf0e3(0x361)]();Array[_0xcbf0e3(0x498)](_0xd1e495)&&_0xd1e495[_0xcbf0e3(0x223)]>0x0&&this[_0xcbf0e3(0x2fd)](_0xd1e495);}[_0x173fa3(0x1b1)](){const _0x2bf035=_0x173fa3;this[_0x2bf035(0x211)]=!0x1;}};Dt=Mr([oe(0x2,_0x4f7ed2(_0x3b0750)),oe(0x3,_0x4f7ed2(Yt)),oe(0x4,_0x4f7ed2(_e)),oe(0x5,_0x4f7ed2(Wt)),oe(0x6,_0x4a8bc3),oe(0x7,_0x1e8ecc),oe(0x8,_0xdec94a)],Dt);var jr=Object[_0x173fa3(0x309)],Hr=Object[_0x173fa3(0x4d5)],xr=(_0x2f8cef,_0x410ef1,_0x13584d,_0x356c4d)=>{const _0x29ccfd=_0x173fa3;for(var _0x23be7d=_0x356c4d>0x1?void 0x0:_0x356c4d?Hr(_0x410ef1,_0x13584d):_0x410ef1,_0x3a909f=_0x2f8cef[_0x29ccfd(0x223)]-0x1,_0x3c253d;_0x3a909f>=0x0;_0x3a909f--)(_0x3c253d=_0x2f8cef[_0x3a909f])&&(_0x23be7d=(_0x356c4d?_0x3c253d(_0x410ef1,_0x13584d,_0x23be7d):_0x3c253d(_0x23be7d))||_0x23be7d);return _0x356c4d&&_0x23be7d&&jr(_0x410ef1,_0x13584d,_0x23be7d),_0x23be7d;},pe=(_0x5928a0,_0x31a5c4)=>(_0x4a81ee,_0x49ecc0)=>_0x31a5c4(_0x4a81ee,_0x49ecc0,_0x5928a0);const kr=0x12c,Br=0x64,Vr=()=>{let _0xecceb0=[],_0x1b7df6=!0x1;return _0x28e5e0=>{const _0x3cb3a5=_0x33c3;_0xecceb0[_0x3cb3a5(0x1da)](_0x28e5e0),_0x1b7df6||(_0x1b7df6=!0x0,setTimeout(()=>{const _0x519f5d=_0x3cb3a5;_0xecceb0[_0x519f5d(0x47e)](_0xff0e31=>_0xff0e31()),_0xecceb0=[],_0x1b7df6=!0x1;}));};};let wt=class extends _0x13ba8e{constructor(_0x4c8e62,_0x12fdc2,_0x4d0c83,_0x282cfb,_0x1baa4d,_0x549eb5,_0x450a4a,_0x56be1f){const _0xc5050a=_0x173fa3;super(),l(this,_0xc5050a(0x211),!0x1),l(this,_0xc5050a(0x367),!0x1),l(this,_0xc5050a(0x254),new _0x37b5ce(new Map())),l(this,_0xc5050a(0x1a4),this[_0xc5050a(0x254)][_0xc5050a(0x2e6)]()),l(this,_0xc5050a(0x2d3),new _0x37b5ce([])),l(this,'roomMembers$',this[_0xc5050a(0x2d3)][_0xc5050a(0x35b)](_0x1fc3db(kr))),l(this,_0xc5050a(0x2fd),_0x2d1802((_0x3141fe,_0x55bc0b)=>{const _0x45d56a=_0xc5050a,_0x417c33={'eventID':_0x5f441e[_0x45d56a(0x1d3)],'data':{'unitID':this[_0x45d56a(0x23a)],'memberID':this['_session'][_0x45d56a(0x32a)](),'selection':_0x233653(_0x3141fe,_0x55bc0b[_0x45d56a(0x1f1)])}};this[_0x45d56a(0x459)][_0x45d56a(0x2ab)](_0x417c33,this[_0x45d56a(0x23a)]);},Br)),(this['unitID']=_0x4c8e62,this['_session']=_0x12fdc2,this[_0xc5050a(0x4b7)]=_0x4d0c83,this[_0xc5050a(0x42c)]=_0x282cfb,this[_0xc5050a(0x1c9)]=_0x1baa4d,this['_univerInstanceService']=_0x549eb5,this[_0xc5050a(0x35c)]=_0x450a4a,this[_0xc5050a(0x20f)]=_0x56be1f);}get['cursorInfo'](){const _0x8e1f5f=_0x173fa3;return this[_0x8e1f5f(0x254)][_0x8e1f5f(0x2bc)]();}get[_0x173fa3(0x33b)](){const _0x3d2305=_0x173fa3;return this[_0x3d2305(0x2d3)][_0x3d2305(0x2bc)]();}[_0x173fa3(0x2c0)](){const _0x2c33a4=_0x173fa3;super[_0x2c33a4(0x2c0)](),this[_0x2c33a4(0x254)][_0x2c33a4(0x2d0)](new Map()),this[_0x2c33a4(0x254)]['complete'](),this[_0x2c33a4(0x2d3)][_0x2c33a4(0x2d0)]([]),this['_roomMembers$'][_0x2c33a4(0x3b0)]();}[_0x173fa3(0x415)](){const _0x406dc3=_0x173fa3;this[_0x406dc3(0x367)]||(this['_init']=!0x0,this['_session'][_0x406dc3(0x303)][_0x406dc3(0x35b)](_0x223895(this[_0x406dc3(0x2a1)]))[_0x406dc3(0x3eb)](_0x19bf3c=>{const _0x1a4313=_0x406dc3;_0x19bf3c===X[_0x1a4313(0x263)]?this[_0x1a4313(0x23d)]():this[_0x1a4313(0x1b1)]();}),this[_0x406dc3(0x459)][_0x406dc3(0x493)][_0x406dc3(0x35b)](_0x223895(this[_0x406dc3(0x2a1)]))[_0x406dc3(0x3eb)](_0x1fbe05=>{const _0x7ece9=_0x406dc3,_0x21198b=_0x1fbe05['eventID'];_0x21198b===_0x5f441e[_0x7ece9(0x1d3)]&&this['_onCursorUpdate'](_0x1fbe05),_0x21198b===_0x5f441e['USERS_LEAVE']&&this['_onCursorDelete'](_0x1fbe05);}),this[_0x406dc3(0x4ae)](),this[_0x406dc3(0x193)](this[_0x406dc3(0x35c)]['onCommandExecuted'](_0xe774df=>{const _0x5a5813=_0x406dc3;if(this['_online']&&_0xe774df['id']===_0x455e5a['id']&&_0xe774df[_0x5a5813(0x465)][_0x5a5813(0x217)]===this[_0x5a5813(0x23a)]){const _0x53bce1=_0xe774df['params'];this[_0x5a5813(0x2fd)](_0x53bce1[_0x5a5813(0x348)],_0x53bce1[_0x5a5813(0x287)][0x0]);}})));}[_0x173fa3(0x506)](_0x300505){const _0x3c195b=_0x173fa3;var _0x25aa5d,_0x218d36;const {memberID:_0x28bf0b,selection:_0x5802b1}=_0x300505[_0x3c195b(0x411)],{sheetName:_0x420e68,range:_0x421d65}=_0x32dcd9(_0x5802b1),_0x17f5e7={'name':(_0x218d36=(_0x25aa5d=this[_0x3c195b(0x1c9)]['getMember'](this['unitID'],_0x28bf0b))==null?void 0x0:_0x25aa5d[_0x3c195b(0x284)])!=null?_0x218d36:_0x3c195b(0x3d1),'range':this['_getMergeRange'](_0x420e68,_0x421d65),'sheetID':_0x420e68,'color':this[_0x3c195b(0x42c)][_0x3c195b(0x3f1)](_0x28bf0b),'selection':_0x5802b1},_0x5642d6=this[_0x3c195b(0x371)];_0x5642d6[_0x3c195b(0x3e3)](_0x28bf0b,_0x17f5e7),this[_0x3c195b(0x254)][_0x3c195b(0x2d0)](_0x5642d6);}['_onCursorDelete'](_0xe324c1){const _0x1bb17a=_0x173fa3,{memberID:_0x151409}=_0xe324c1[_0x1bb17a(0x411)],_0x39563b=this[_0x1bb17a(0x371)];_0x39563b[_0x1bb17a(0x43b)](_0x151409),this[_0x1bb17a(0x254)][_0x1bb17a(0x2d0)](_0x39563b);}['_getMergeRange'](_0x19545a,_0x1b843d){const _0x2fdc7a=_0x173fa3;var _0x1ca937,_0x3a3da1;const _0x541aa4=(_0x3a3da1=(_0x1ca937=this[_0x2fdc7a(0x3f2)][_0x2fdc7a(0x3d0)](this[_0x2fdc7a(0x23a)]))==null?void 0x0:_0x1ca937[_0x2fdc7a(0x455)](_0x19545a))==null?void 0x0:_0x3a3da1[_0x2fdc7a(0x196)]();return(_0x541aa4==null?void 0x0:_0x541aa4['find'](_0x171f62=>_0xa8b8a6['contains'](_0x171f62,_0x1b843d)))||_0x1b843d;}[_0x173fa3(0x4ae)](){const _0x14da6a=_0x173fa3,_0x3f3b36=new _0x1f9c9d(),_0x5cd8f7=Vr(),_0x40318e=()=>{const _0x2dbb53=_0x33c3;_0x3f3b36[_0x2dbb53(0x2c0)]();const _0x15fc67=(_0x1ccb68,_0xf79b14,_0x35dad6,_0xf6bb40)=>{const _0xb56250=_0x2dbb53;let _0x4a8cde=[];switch(_0x1ccb68['id']){case _0x1876e5['DeleteRangeMoveLeftCommandId']:{_0x4a8cde=_0x3f6541(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x273)]:{_0x4a8cde=_0x45cf67(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5['InsertColCommandId']:{_0x4a8cde=_0x593430(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x4d7)]:{_0x4a8cde=_0x52a909(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x46c)]:{_0x4a8cde=_0x468a25(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x34c)]:{_0x4a8cde=_0x163f59(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x403)]:{_0x4a8cde=_0x3ba698(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x274)]:{_0x4a8cde=_0x5d4634(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x4c0)]:{_0x4a8cde=_0x99cb29(_0x1ccb68,_0xf6bb40);break;}}const _0x5be217=_0x28e3fe(_0x4a8cde,_0xf6bb40),_0x440ee9=this['cursorInfo']['get'](_0xf79b14);if(_0x440ee9&&_0x5be217){const _0x575085={..._0x440ee9,'range':_0x5be217};this[_0xb56250(0x371)][_0xb56250(0x3e3)](_0xf79b14,_0x575085),_0x5cd8f7(()=>{const _0x2994e3=_0xb56250,_0x14b455=this['_refRangeService'][_0x2994e3(0x2e5)](_0x5be217,_0x359853=>(_0x14b455['dispose'](),_0x15fc67(_0x359853,_0xf79b14,_0x35dad6,_0x5be217)));_0x3f3b36[_0x2994e3(0x2f7)](_0x14b455);});}return{'redos':[],'undos':[]};};this[_0x2dbb53(0x371)][_0x2dbb53(0x47e)]((_0x3c414a,_0x3ded92)=>{const _0x3ab0cb=_0x2dbb53,{range:_0x49da9a,sheetID:_0x2993dc}=_0x3c414a,_0x2c74d7=this[_0x3ab0cb(0x20f)][_0x3ab0cb(0x2e5)](_0x49da9a,_0x418a2d=>(_0x2c74d7[_0x3ab0cb(0x2c0)](),_0x15fc67(_0x418a2d,_0x3ded92,_0x2993dc,_0x49da9a)));_0x3f3b36[_0x3ab0cb(0x2f7)](_0x2c74d7);});};this[_0x14da6a(0x193)](_0x4a9188(this[_0x14da6a(0x254)][_0x14da6a(0x3eb)](()=>{_0x40318e();})));}[_0x173fa3(0x23d)](){const _0x3a5797=_0x173fa3;var _0x2a1e51,_0x110566;if(this[_0x3a5797(0x211)]=!0x0,((_0x2a1e51=this['_univerInstanceService'][_0x3a5797(0x39c)]())==null?void 0x0:_0x2a1e51[_0x3a5797(0x253)]())!==this[_0x3a5797(0x23a)])return;const _0x4794ec=(_0x110566=this[_0x3a5797(0x4b7)]['get'](_0x15d139)['getCurrentSelections']())==null?void 0x0:_0x110566[0x0],_0x41a0a4=this['_univerInstanceService'][_0x3a5797(0x279)](_0x159e2d['UNIVER_SHEET'])['getActiveSheet']();_0x4794ec&&_0x41a0a4&&this[_0x3a5797(0x2fd)](_0x41a0a4[_0x3a5797(0x3b7)](),_0x4794ec);}[_0x173fa3(0x1b1)](){const _0x14512d=_0x173fa3;this[_0x14512d(0x211)]=!0x1;}};wt=xr([pe(0x2,_0x4f7ed2(_0x3b0750)),pe(0x3,_0x4f7ed2(Yt)),pe(0x4,_0x4f7ed2(_e)),pe(0x5,_0x1e8ecc),pe(0x6,_0xdec94a),pe(0x7,_0x4f7ed2(_0x2ac9c5))],wt);var Fr=Object[_0x173fa3(0x309)],Wr=Object[_0x173fa3(0x4d5)],Gr=(_0x17576a,_0x268f7e,_0xbc1451,_0x140519)=>{const _0x4fc72b=_0x173fa3;for(var _0x440bd8=_0x140519>0x1?void 0x0:_0x140519?Wr(_0x268f7e,_0xbc1451):_0x268f7e,_0x5bc6fb=_0x17576a[_0x4fc72b(0x223)]-0x1,_0x30c9a4;_0x5bc6fb>=0x0;_0x5bc6fb--)(_0x30c9a4=_0x17576a[_0x5bc6fb])&&(_0x440bd8=(_0x140519?_0x30c9a4(_0x268f7e,_0xbc1451,_0x440bd8):_0x30c9a4(_0x440bd8))||_0x440bd8);return _0x140519&&_0x440bd8&&Fr(_0x268f7e,_0xbc1451,_0x440bd8),_0x440bd8;},dt=(_0x4e1a52,_0x4d33f5)=>(_0x222cad,_0x3d995a)=>_0x4d33f5(_0x222cad,_0x3d995a,_0x4e1a52);let Ce=class extends _0x13ba8e{constructor(_0x19b8c0,_0x57f2e2,_0x2fb594){const _0x4cb43b=_0x173fa3;super(),l(this,'_entities',new Map()),l(this,_0x4cb43b(0x43f),new _0x54d3a4()),(this[_0x4cb43b(0x3f2)]=_0x19b8c0,this[_0x4cb43b(0x4b7)]=_0x57f2e2,this['_collabSessionService']=_0x2fb594,this['_init']());}['dispose'](){const _0x355464=_0x173fa3;super[_0x355464(0x2c0)](),this[_0x355464(0x43f)][_0x355464(0x3b0)](),this[_0x355464(0x2d5)]['forEach'](_0x5853d7=>_0x5853d7[_0x355464(0x2c0)]());}[_0x173fa3(0x238)](_0x3b3715){const _0xecd515=_0x173fa3;return this[_0xecd515(0x2d5)][_0xecd515(0x432)](_0x3b3715)?this['_entities']['get'](_0x3b3715)[_0xecd515(0x1a4)]:this[_0xecd515(0x43f)][_0xecd515(0x35b)](_0x496185(_0x2619a6=>_0x2619a6[_0xecd515(0x23a)]===_0x3b3715),_0x3b6e12(_0x4ee6b4=>_0x4ee6b4[_0xecd515(0x1a4)]));}[_0x173fa3(0x367)](){const _0x24e9fd=_0x173fa3;this[_0x24e9fd(0x3f2)][_0x24e9fd(0x22f)](_0x159e2d[_0x24e9fd(0x4fa)])[_0x24e9fd(0x35b)](_0x223895(this[_0x24e9fd(0x2a1)]))[_0x24e9fd(0x3eb)](async _0x338733=>{const _0x1f5582=_0x24e9fd,_0x5e2908=_0x338733[_0x1f5582(0x253)](),_0x59c912=await this[_0x1f5582(0x21e)](_0x5e2908);this[_0x1f5582(0x43f)][_0x1f5582(0x2d0)](_0x59c912),this[_0x1f5582(0x2d5)][_0x1f5582(0x3e3)](_0x5e2908,_0x59c912);}),this[_0x24e9fd(0x3f2)][_0x24e9fd(0x22f)](_0x159e2d['UNIVER_DOC'])[_0x24e9fd(0x35b)](_0x223895(this[_0x24e9fd(0x2a1)]))['pipe'](_0x496185(_0x391b98=>!_0x391b98[_0x24e9fd(0x253)]()[_0x24e9fd(0x416)]('__')))[_0x24e9fd(0x3eb)](async _0xd4906b=>{const _0x3ec793=_0x24e9fd,_0x598b98=_0xd4906b['getUnitId'](),_0x27b9cb=await this[_0x3ec793(0x49b)](_0x598b98);this['_entityInit$'][_0x3ec793(0x2d0)](_0x27b9cb),this[_0x3ec793(0x2d5)][_0x3ec793(0x3e3)](_0x598b98,_0x27b9cb);}),_0x378f3d(this['_univerInstanceService'][_0x24e9fd(0x33e)](_0x159e2d['UNIVER_DOC']),this['_univerInstanceService'][_0x24e9fd(0x33e)](_0x159e2d['UNIVER_SHEET']))[_0x24e9fd(0x35b)](_0x223895(this[_0x24e9fd(0x2a1)]))[_0x24e9fd(0x3eb)](_0x264b58=>{const _0x2fc23e=_0x24e9fd,_0x562682=_0x264b58[_0x2fc23e(0x253)](),_0x13adee=this[_0x2fc23e(0x2d5)]['get'](_0x562682);_0x13adee&&(_0x13adee[_0x2fc23e(0x2c0)](),this[_0x2fc23e(0x2d5)][_0x2fc23e(0x43b)](_0x562682));});}async[_0x173fa3(0x21e)](_0x2342f3){const _0x491973=_0x173fa3,_0x637c4c=await this['_collabSessionService'][_0x491973(0x395)](_0x2342f3),_0x32041e=this['_injector']['createInstance'](wt,_0x2342f3,_0x637c4c);return _0x32041e[_0x491973(0x415)](),_0x32041e;}async[_0x173fa3(0x49b)](_0x45fb9a){const _0x14502b=_0x173fa3,_0x464f0a=await this['_collabSessionService'][_0x14502b(0x395)](_0x45fb9a),_0x25c209=this[_0x14502b(0x4b7)]['createInstance'](Dt,_0x45fb9a,_0x464f0a);return _0x25c209[_0x14502b(0x415)](),_0x25c209;}};Ce=Gr([dt(0x0,_0x1e8ecc),dt(0x1,_0x4f7ed2(_0x3b0750)),dt(0x2,_0x4f7ed2(ue))],Ce);const je=0x14,gs=0xc8,mt=0x4,Yr=0x5;function Kr(_0x38bd83,_0x3ee890){const _0x505227=_0x173fa3;let {radius:_0x5a8f57,width:_0x4eef83,height:_0x774772}=_0x3ee890;_0x5a8f57=_0x5a8f57!=null?_0x5a8f57:0x0,_0x4eef83=_0x4eef83!=null?_0x4eef83:0x1e,_0x774772=_0x774772!=null?_0x774772:0x1e;let _0x166aad=0x0,_0x21f0e1=0x0,_0x497f43=0x0;_0x166aad=_0x21f0e1=_0x497f43=Math[_0x505227(0x3cf)](_0x5a8f57,_0x4eef83/0x2,_0x774772/0x2),_0x38bd83[_0x505227(0x48c)](),_0x38bd83[_0x505227(0x428)](_0x166aad,0x0),_0x38bd83['lineTo'](_0x4eef83-_0x21f0e1,0x0),_0x38bd83['arc'](_0x4eef83-_0x21f0e1,_0x21f0e1,_0x21f0e1,Math['PI']*0x3/0x2,0x0,!0x1),_0x38bd83[_0x505227(0x4b8)](_0x4eef83,_0x774772-_0x497f43),_0x38bd83[_0x505227(0x512)](_0x4eef83-_0x497f43,_0x774772-_0x497f43,_0x497f43,0x0,Math['PI']/0x2,!0x1),_0x38bd83[_0x505227(0x4b8)](0x0,_0x774772),_0x38bd83[_0x505227(0x4b8)](0x0,_0x166aad),_0x38bd83[_0x505227(0x512)](_0x166aad,_0x166aad,_0x166aad,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x38bd83['closePath'](),_0x3ee890[_0x505227(0x191)]&&(_0x38bd83['save'](),_0x38bd83[_0x505227(0x4f3)]=_0x3ee890[_0x505227(0x191)],_0x3ee890['fillRule']===_0x505227(0x288)?_0x38bd83[_0x505227(0x191)](_0x505227(0x288)):_0x38bd83['fill'](),_0x38bd83[_0x505227(0x248)]());}class nt extends _0x1d45e8{constructor(_0x52c932,_0x5601d3){const _0x59a4d2=_0x173fa3;super(_0x52c932,_0x5601d3),l(this,'color'),l(this,_0x59a4d2(0x46e)),(this[_0x59a4d2(0x452)]=_0x5601d3==null?void 0x0:_0x5601d3['color'],this['text']=_0x5601d3==null?void 0x0:_0x5601d3[_0x59a4d2(0x46e)]);}static[_0x173fa3(0x267)](_0x5703f6,_0x78f91e){const _0x4360c3=_0x173fa3,{text:_0x5d8892,color:_0x24b78e}=_0x78f91e;_0x5703f6[_0x4360c3(0x317)](),_0x5703f6[_0x4360c3(0x36f)]=_0x4360c3(0x4db);const _0x5a7b7c=_0x5703f6['measureText'](_0x5d8892)[_0x4360c3(0x219)],_0x38b712=Math[_0x4360c3(0x3cf)](_0x5a7b7c+0x2*mt,gs);Kr(_0x5703f6,{'height':je,'radius':0x4,'width':_0x38b712,'fill':_0x24b78e,'evented':!0x1}),_0x5703f6['fillStyle']='#FFF';const _0x30a4e7=mt,_0x2351dc=je-Yr,_0x2aeac5=gs-0x2*mt;if(_0x5a7b7c>_0x2aeac5){let _0x52ce98='',_0x4e539a=0x0;for(const _0x3c6bc5 of _0x5d8892){const _0x292b21=_0x5703f6[_0x4360c3(0x194)](_0x3c6bc5)['width'];if(_0x4e539a+_0x292b21<=_0x2aeac5-_0x5703f6[_0x4360c3(0x194)](_0x4360c3(0x47f))[_0x4360c3(0x219)])_0x52ce98+=_0x3c6bc5,_0x4e539a+=_0x292b21;else{_0x52ce98+='...';break;}}_0x5703f6['fillText'](_0x52ce98,_0x30a4e7,_0x2351dc);}else _0x5703f6[_0x4360c3(0x4de)](_0x5d8892,_0x30a4e7,_0x2351dc);_0x5703f6[_0x4360c3(0x248)]();}[_0x173fa3(0x345)](_0xa79893){nt['drawWith'](_0xa79893,this);}}const ft=_0x173fa3(0x482),Xr=_0x173fa3(0x364),qr=_0x173fa3(0x36b),Pe=0x6,Jr=1.5,gt=0x4,zr=1.5,Zr=_0x173fa3(0x417);class Ss{constructor(_0x45de8d,_0x472604,_0x50f27a,_0x58b5aa){const _0x1e50a2=_0x173fa3;l(this,'_shapes',[]),l(this,_0x1e50a2(0x251),null),l(this,_0x1e50a2(0x320),null),l(this,_0x1e50a2(0x1b3),null),l(this,'_hideTimer',null),l(this,'_eventUnsubscribe',null),(this[_0x1e50a2(0x2b9)]=_0x45de8d,this[_0x1e50a2(0x4ac)]=_0x472604,this['_docSkeleton']=_0x50f27a,this[_0x1e50a2(0x214)]=_0x58b5aa,this[_0x1e50a2(0x463)]());}set[_0x173fa3(0x3ad)](_0x2dcf9d){const _0x3f6863=_0x173fa3;_0x2dcf9d?(this[_0x3f6863(0x1b3)]&&this[_0x3f6863(0x1b3)][_0x3f6863(0x2ae)](),this['_textBubble']&&this[_0x3f6863(0x320)][_0x3f6863(0x1e6)]()):(this[_0x3f6863(0x1b3)]&&this[_0x3f6863(0x1b3)][_0x3f6863(0x1e6)](),this['_textBubble']&&this[_0x3f6863(0x320)][_0x3f6863(0x2ae)]());}[_0x173fa3(0x2c0)](){const _0x536a5f=_0x173fa3;for(const _0x4b0e3b of this['_shapes'])_0x4b0e3b[_0x536a5f(0x2c0)]();this[_0x536a5f(0x320)]&&this[_0x536a5f(0x320)][_0x536a5f(0x2c0)](),this[_0x536a5f(0x1b3)]&&this[_0x536a5f(0x1b3)][_0x536a5f(0x2c0)](),this['_anchor']&&this[_0x536a5f(0x251)][_0x536a5f(0x2c0)](),this[_0x536a5f(0x19d)]&&this['_eventUnsubscribe']();}[_0x173fa3(0x463)](){const _0x576b41=_0x173fa3;var _0x635f50;const {_docSkeleton:_0xe1d27a,_document:_0x5aa31c}=this,{color:_0x17d910,name:_0x3e54de,ranges:_0x3d0a59}=this['_cursor'],_0x53375f=_0x5aa31c['getOffsetConfig'](),{docsLeft:_0x4d2f6a,docsTop:_0x4567ee}=_0x53375f,_0x8351c6=new _0x282c61(_0x53375f,_0xe1d27a);for(const {startOffset:_0x1c3caa,endOffset:_0x5ef557,rangeType:_0x5ac289,segmentId:_0x5bbad0,segmentPage:_0x5b88c8,collapsed:_0x74a7f7,isActive:_0x5af565}of _0x3d0a59){const _0x523893=_0xe1d27a[_0x576b41(0x36d)](_0x1c3caa,!0x0,_0x5bbad0,_0x5b88c8);let _0x5ec863=_0xe1d27a[_0x576b41(0x36d)](_0x5ef557,!0x0,_0x5bbad0,_0x5b88c8);if(_0x5ec863==null&&(_0x5ec863=_0xe1d27a[_0x576b41(0x36d)](_0x5ef557-0x1,!0x1,_0x5bbad0,_0x5b88c8)),_0x5af565){const {contentBoxPointGroup:_0x487a45}=_0x8351c6['getRangePointData'](_0x5ec863,_0x5ec863);if(_0x487a45[_0x576b41(0x223)]===0x0)continue;this['_drawAnchor'](_0x17d910,_0x487a45,_0x4d2f6a,_0x4567ee,_0x3e54de),this['_eventUnsubscribe']=this[_0x576b41(0x384)]();}if(!_0x74a7f7&&_0x523893&&_0x5ec863){if(_0x5ac289===_0x46c3b0[_0x576b41(0x26e)]){const _0x3ccbe3=new _0x5264f7(_0x53375f,_0xe1d27a),{pointGroup:_0x106992}=(_0x635f50=_0x3ccbe3[_0x576b41(0x3ce)](_0x523893,_0x5ec863))!=null?_0x635f50:{};if(_0x106992==null||_0x106992[_0x576b41(0x223)]===0x0)continue;this[_0x576b41(0x356)](_0x17d910,_0x106992,_0x4d2f6a,_0x4567ee);}else{const {borderBoxPointGroup:_0x2c2c9a}=_0x8351c6[_0x576b41(0x3ce)](_0x523893,_0x5ec863);if(_0x2c2c9a[_0x576b41(0x223)]===0x0)continue;this[_0x576b41(0x2a7)](_0x17d910,_0x2c2c9a,_0x4d2f6a,_0x4567ee);}}}}[_0x173fa3(0x347)](_0x17cdc5,_0x884c7c,_0x2acb35,_0x3b05df,_0x3c44bb){const _0x59b9c6=_0x173fa3,_0x1a390a=this[_0x59b9c6(0x41a)](_0x884c7c),{left:_0x2a6073,top:_0x3a179f,height:_0x1c5a03}=_0x1a390a,_0x9db244=this[_0x59b9c6(0x315)](),_0x5903a5=zr/_0x9db244,_0x370a37=new _0x16757d(ft+_0x58e8f0[_0x59b9c6(0x31e)](Pe),{'left':_0x2a6073+_0x2acb35-_0x5903a5,'top':_0x3a179f+_0x3b05df,'height':_0x1c5a03,'width':Jr,'fill':_0x17cdc5||_0x3c5235(_0x51afa6[_0x59b9c6(0x4b4)],0x0),'strokeWidth':_0x5903a5,'stroke':Zr,'evented':!0x0});this['_anchor']=_0x370a37,this[_0x59b9c6(0x4ac)]['addObject'](_0x370a37,_0x38cec6);const _0x1c64c9=new _0x16757d(ft+_0x58e8f0[_0x59b9c6(0x31e)](Pe),{'left':_0x2a6073+_0x2acb35-_0x5903a5,'top':_0x3a179f+_0x3b05df-gt/0x2,'height':gt,'width':gt,'fill':_0x17cdc5||_0x3c5235(_0x51afa6[_0x59b9c6(0x4b4)],0x0),'strokeWidth':0x0,'stroke':_0x17cdc5||_0x3c5235(_0x51afa6[_0x59b9c6(0x4b4)],0x0),'evented':!0x1});this[_0x59b9c6(0x1b3)]=_0x1c64c9,this[_0x59b9c6(0x4ac)][_0x59b9c6(0x330)](_0x1c64c9,_0x38cec6);const _0x78d17a=new nt(ft+_0x58e8f0['generateRandomId'](Pe),{'left':_0x2a6073+_0x2acb35-_0x5903a5,'top':_0x3a179f+_0x3b05df-je,'text':_0x3c44bb,'color':_0x17cdc5});this[_0x59b9c6(0x320)]=_0x78d17a,this[_0x59b9c6(0x4ac)][_0x59b9c6(0x330)](_0x78d17a,_0x38cec6),this['_hover']=!0x1;}['_handleHover'](){const _0x2c0c4d=_0x173fa3,_0xc91b4c=this[_0x2c0c4d(0x251)][_0x2c0c4d(0x4e7)][_0x2c0c4d(0x281)](()=>{const _0x5a1e5c=_0x2c0c4d;this[_0x5a1e5c(0x3ad)]=!0x0;}),_0x471a42=this['_anchor'][_0x2c0c4d(0x478)]['subscribeEvent'](()=>{const _0xee138e=_0x2c0c4d;this[_0xee138e(0x4ea)]&&clearTimeout(this[_0xee138e(0x4ea)]),this[_0xee138e(0x4ea)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x34bdf8=_0x2c0c4d;_0xc91b4c[_0x34bdf8(0x18e)](),_0x471a42[_0x34bdf8(0x18e)]();};}[_0x173fa3(0x2a7)](_0x2fab4f,_0x38c747,_0x21dedd,_0x6df7a0){const _0x5ea1c2=_0x173fa3,_0x430323=new _0x88bd29(_0x2fab4f)[_0x5ea1c2(0x44e)](0.2)[_0x5ea1c2(0x2e8)](),_0x503547=new _0x57827a(Xr+_0x58e8f0[_0x5ea1c2(0x31e)](Pe),{'pointsGroup':_0x38c747,'fill':_0x430323||_0x3c5235(_0x51afa6['black'],0.2),'left':_0x21dedd,'top':_0x6df7a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5ea1c2(0x4f9)][_0x5ea1c2(0x1da)](_0x503547),this[_0x5ea1c2(0x4ac)][_0x5ea1c2(0x330)](_0x503547,_0x38cec6);}[_0x173fa3(0x356)](_0x49b9f4,_0x39b7da,_0x564a6c,_0x5f257e){const _0x1fbd7a=_0x173fa3,_0x2a8322=new _0x88bd29(_0x49b9f4)['setAlpha'](0.2)[_0x1fbd7a(0x2e8)](),_0x391fab=new _0x57827a(qr+_0x58e8f0['generateRandomId'](Pe),{'pointsGroup':_0x39b7da,'fill':_0x2a8322||_0x3c5235(_0x51afa6[_0x1fbd7a(0x4b4)],0.2),'left':_0x564a6c,'top':_0x5f257e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1fbd7a(0x4f9)][_0x1fbd7a(0x1da)](_0x391fab),this[_0x1fbd7a(0x4ac)]['addObject'](_0x391fab,_0x38cec6);}['_getAnchorBounding'](_0x44917d){const _0x3c2948=_0x44917d[0x0],_0x368ca8=_0x3c2948[0x0],_0x3e6480=_0x3c2948[0x2],{x:_0x3c972d,y:_0x3a2cd1}=_0x368ca8,{x:_0x357fbb,y:_0x7af3a}=_0x3e6480;return{'left':_0x3c972d,'top':_0x3a2cd1,'width':_0x357fbb-_0x3c972d,'height':_0x7af3a-_0x3a2cd1};}[_0x173fa3(0x315)](){const _0x1f49e2=_0x173fa3,{scaleX:_0x51ded5,scaleY:_0x57f6e7}=this[_0x1f49e2(0x4ac)][_0x1f49e2(0x4dc)]();return Math[_0x1f49e2(0x369)](_0x51ded5,_0x57f6e7);}}var Qr=Object[_0x173fa3(0x309)],eo=Object['getOwnPropertyDescriptor'],to=(_0x35306a,_0x31f4c7,_0x4ea4eb,_0x4a3d60)=>{const _0x2a9567=_0x173fa3;for(var _0x82f856=_0x4a3d60>0x1?void 0x0:_0x4a3d60?eo(_0x31f4c7,_0x4ea4eb):_0x31f4c7,_0x4dea2d=_0x35306a[_0x2a9567(0x223)]-0x1,_0x5db195;_0x4dea2d>=0x0;_0x4dea2d--)(_0x5db195=_0x35306a[_0x4dea2d])&&(_0x82f856=(_0x4a3d60?_0x5db195(_0x31f4c7,_0x4ea4eb,_0x82f856):_0x5db195(_0x82f856))||_0x82f856);return _0x4a3d60&&_0x82f856&&Qr(_0x31f4c7,_0x4ea4eb,_0x82f856),_0x82f856;},Be=(_0x13b5c2,_0x4653d0)=>(_0x5b1d77,_0x3d520c)=>_0x4653d0(_0x5b1d77,_0x3d520c,_0x13b5c2);let Pt=class extends _0x13ba8e{constructor(_0x18d89c,_0x2d318d,_0x1631a7,_0x346773,_0x3341d3){const _0x49f41d=_0x173fa3;super(),l(this,'_cursorShapes',[]),l(this,_0x49f41d(0x401),[]),(this[_0x49f41d(0x1fa)]=_0x18d89c,this[_0x49f41d(0x391)]=_0x2d318d,this[_0x49f41d(0x408)]=_0x1631a7,this[_0x49f41d(0x35c)]=_0x346773,this[_0x49f41d(0x2b3)]=_0x3341d3,this[_0x49f41d(0x367)]());}[_0x173fa3(0x367)](){const _0x2fe833=_0x173fa3,_0x48a0cd=this[_0x2fe833(0x1fa)][_0x2fe833(0x217)],_0x4bf176=this[_0x2fe833(0x391)];this[_0x2fe833(0x193)](_0x550795([this['_collabCursorController'][_0x2fe833(0x238)](_0x48a0cd),this[_0x2fe833(0x2b3)][_0x2fe833(0x198)]])['pipe'](_0x595c33(([_0x4cbaab,_0x19d6d6])=>({'skeleton':_0x4bf176[_0x2fe833(0x41d)](),'cursors':[..._0x4cbaab[_0x2fe833(0x3b1)]()][_0x2fe833(0x18f)](_0x1ca597=>({..._0x1ca597,'color':_0x19d6d6[_0x1ca597[_0x2fe833(0x452)]]}))})))[_0x2fe833(0x3eb)](_0x53b7b1=>{const _0x5ca7f1=_0x2fe833;if(this[_0x5ca7f1(0x2c1)](),_0x53b7b1){const {skeleton:_0xa5c6f7,cursors:_0x46b29a}=_0x53b7b1;this[_0x5ca7f1(0x2c7)](_0xa5c6f7,_0x46b29a);}})),this[_0x2fe833(0x2bb)](),this[_0x2fe833(0x29d)]();}[_0x173fa3(0x2c7)](_0x7442e6,_0xdcfa5a){const _0x276bb8=_0x173fa3,{scene:_0x1a0e21,mainComponent:_0xe901d4}=this[_0x276bb8(0x1fa)],_0x424aed=_0xdcfa5a['map'](_0x270df1=>new Ss(_0x270df1,_0x1a0e21,_0x7442e6,_0xe901d4));this['_cursorShapes']=_0x424aed,this[_0x276bb8(0x401)]=_0xdcfa5a;}[_0x173fa3(0x4f6)](){const _0x20507a=_0x173fa3;this[_0x20507a(0x2c1)]();const {scene:_0x38cb2d,mainComponent:_0x12cf1e}=this[_0x20507a(0x1fa)],_0x183aba=this[_0x20507a(0x391)][_0x20507a(0x41d)](),_0x3e9dfc=this['_cursors'][_0x20507a(0x204)](_0x3e555e=>new Ss(_0x3e555e,_0x38cb2d,_0x183aba,_0x12cf1e));this[_0x20507a(0x44b)]=_0x3e9dfc;}[_0x173fa3(0x2c1)](){const _0x17e2fc=_0x173fa3;this['_cursorShapes'][_0x17e2fc(0x47e)](_0x90e5c0=>_0x90e5c0[_0x17e2fc(0x2c0)]()),this[_0x17e2fc(0x44b)]=[];}['_initCommandExecutedListener'](){const _0x12ab85=_0x173fa3,_0x33dbd7=[_0x116bc2['id']];this[_0x12ab85(0x193)](this[_0x12ab85(0x35c)][_0x12ab85(0x409)](_0x4981dd=>{const _0x22c9a2=_0x12ab85;_0x33dbd7[_0x22c9a2(0x20d)](_0x4981dd['id'])&&_0x4981dd['params'][_0x22c9a2(0x217)]===this[_0x22c9a2(0x1fa)][_0x22c9a2(0x217)]&&this[_0x22c9a2(0x4f6)]();}));}[_0x173fa3(0x2bb)](){const _0x492697=_0x173fa3;this['disposeWithMe'](_0x3c7358(this[_0x492697(0x1fa)][_0x492697(0x4f7)][_0x492697(0x1bd)])['pipe'](_0x3f9fc1(_0x27edff=>_0x27edff[_0x492697(0x32d)]===_0x18c26b[_0x492697(0x28f)]),_0x46eb5a(0x10))[_0x492697(0x3eb)](()=>{this['_refreshCollabCursors']();}));}};Pt=to([Be(0x1,_0x4f7ed2(_0x429479)),Be(0x2,_0x4f7ed2(Ce)),Be(0x3,_0xdec94a),Be(0x4,_0x4f7ed2(_0x1810fb))],Pt);const so=0x1,io=1.5;class no extends _0x1d45e8{constructor(_0x101c8a,_0xcf244e){const _0x550486=_0x173fa3;super(_0x101c8a,_0xcf244e),l(this,_0x550486(0x200)),l(this,_0x550486(0x3ec),!0x1),l(this,_0x550486(0x242)),l(this,'_name',''),l(this,_0x550486(0x40e),_0x550486(0x458)),l(this,_0x550486(0x426)),(_0xcf244e&&this['setShapeProps'](_0xcf244e),this[_0x550486(0x4e7)][_0x550486(0x281)](()=>this[_0x550486(0x3ca)]({'hovered':!0x0})),this['onPointerLeave$'][_0x550486(0x281)](()=>this[_0x550486(0x3ca)]({'hovered':!0x1})));}[_0x173fa3(0x3ca)](_0x53aa12){const _0x15de2b=_0x173fa3;var _0x2ebdda,_0x4631ca,_0x416b59,_0x2d5530,_0x10a76f,_0x3f2a83;this[_0x15de2b(0x200)]=(_0x2ebdda=_0x53aa12[_0x15de2b(0x452)])!=null?_0x2ebdda:this[_0x15de2b(0x200)],this[_0x15de2b(0x3ec)]=(_0x4631ca=_0x53aa12[_0x15de2b(0x454)])!=null?_0x4631ca:this[_0x15de2b(0x3ec)],this[_0x15de2b(0x242)]=(_0x416b59=_0x53aa12['range'])!=null?_0x416b59:this[_0x15de2b(0x242)],this[_0x15de2b(0x268)]=(_0x2d5530=_0x53aa12[_0x15de2b(0x284)])!=null?_0x2d5530:this[_0x15de2b(0x268)],this[_0x15de2b(0x40e)]=(_0x10a76f=_0x53aa12[_0x15de2b(0x2d9)])!=null?_0x10a76f:this[_0x15de2b(0x40e)],this['_backgroundColor']=(_0x3f2a83=_0x53aa12['backgroundColor'])!=null?_0x3f2a83:this[_0x15de2b(0x426)],this[_0x15de2b(0x3f5)]({'width':_0x53aa12[_0x15de2b(0x219)],'height':_0x53aa12[_0x15de2b(0x4fb)]});}[_0x173fa3(0x232)](_0x177eb8){const _0x2a6bc8=_0x173fa3,{row:_0x51189b,column:_0x14d908}=_0x177eb8;if(_0x51189b>=this[_0x2a6bc8(0x242)][_0x2a6bc8(0x2b6)]&&_0x51189b<=this[_0x2a6bc8(0x242)][_0x2a6bc8(0x449)]&&_0x14d908>=this[_0x2a6bc8(0x242)][_0x2a6bc8(0x38f)]&&_0x14d908<=this['_range'][_0x2a6bc8(0x1f9)]){this[_0x2a6bc8(0x3ca)]({'hovered':!0x0});return;}this[_0x2a6bc8(0x3ca)]({'hovered':!0x1});}[_0x173fa3(0x2e4)](_0x31184a){return!0x1;}[_0x173fa3(0x345)](_0x35b65c){const _0x27a68f=_0x173fa3;_0x16757d[_0x27a68f(0x267)](_0x35b65c,{'width':this[_0x27a68f(0x219)],'height':this[_0x27a68f(0x4fb)],'strokeWidth':io,'stroke':this[_0x27a68f(0x200)],'evented':!0x1,'fill':this[_0x27a68f(0x426)]}),this[_0x27a68f(0x3ec)]&&(_0x35b65c['save'](),_0x35b65c[_0x27a68f(0x322)](0x1,0x0,0x0,0x1,this[_0x27a68f(0x219)],this[_0x27a68f(0x40e)]===_0x27a68f(0x326)?0x0:-je),nt[_0x27a68f(0x267)](_0x35b65c,{'text':this[_0x27a68f(0x268)],'color':this[_0x27a68f(0x200)]}),_0x35b65c['restore']());}}var ro=Object[_0x173fa3(0x309)],oo=Object[_0x173fa3(0x4d5)],ao=(_0x3ba65e,_0x169ef4,_0x1dfb9c,_0x4b164d)=>{for(var _0x20ca19=_0x4b164d>0x1?void 0x0:_0x4b164d?oo(_0x169ef4,_0x1dfb9c):_0x169ef4,_0x53f19c=_0x3ba65e['length']-0x1,_0x1ad01b;_0x53f19c>=0x0;_0x53f19c--)(_0x1ad01b=_0x3ba65e[_0x53f19c])&&(_0x20ca19=(_0x4b164d?_0x1ad01b(_0x169ef4,_0x1dfb9c,_0x20ca19):_0x1ad01b(_0x20ca19))||_0x20ca19);return _0x4b164d&&_0x20ca19&&ro(_0x169ef4,_0x1dfb9c,_0x20ca19),_0x20ca19;},St=(_0x65e116,_0x30244d)=>(_0x2efc6b,_0x10547e)=>_0x30244d(_0x2efc6b,_0x10547e,_0x65e116);const co=0x1389;let yt=class extends _0x13ba8e{constructor(_0x45de99,_0x2ebb37,_0x59a8fc,_0x59f202){const _0x3c07b4=_0x173fa3;super(),l(this,_0x3c07b4(0x401),new Set()),l(this,'_lastPointer',null),(this[_0x3c07b4(0x1fa)]=_0x45de99,this[_0x3c07b4(0x40a)]=_0x2ebb37,this[_0x3c07b4(0x408)]=_0x59a8fc,this[_0x3c07b4(0x2b3)]=_0x59f202,this[_0x3c07b4(0x367)]());}[_0x173fa3(0x367)](){const _0x849feb=_0x173fa3;this[_0x849feb(0x40a)][_0x849feb(0x1e8)]['pipe'](_0x54b271(this[_0x849feb(0x2a1)]),_0x4b9d13(_0x277071=>{const _0xf685ed=_0x849feb;if(_0x277071){const _0x3e8f0d=_0x277071[_0xf685ed(0x2bf)];return _0x550795(this['_collabCursorController'][_0xf685ed(0x238)](this['_context'][_0xf685ed(0x217)]),this[_0xf685ed(0x2b3)][_0xf685ed(0x198)])[_0xf685ed(0x35b)](_0x595c33(([_0x144be1,_0x14197e])=>{const _0x2fed05=_0xf685ed,_0x586b4c=new Map();return _0x144be1[_0x2fed05(0x47e)]((_0x55147d,_0x143987)=>{const _0x555720=_0x2fed05;if(_0x55147d[_0x555720(0x45c)]===_0x3e8f0d){const _0x493b41={..._0x55147d};_0x493b41[_0x555720(0x452)]=_0x14197e[_0x55147d[_0x555720(0x452)]],_0x586b4c['set'](_0x143987,_0x493b41);}}),{'skeleton':_0x277071,'cursors':_0x586b4c};}));}return _0x2ad1bd({'skeleton':null,'cursors':new Map()});}))[_0x849feb(0x3eb)](({skeleton:_0x3b4f2d,cursors:_0x1f0f11})=>{const _0x282495=_0x849feb;this[_0x282495(0x2c1)](),_0x3b4f2d&&this[_0x282495(0x2c7)](_0x3b4f2d,_0x1f0f11);}),this[_0x849feb(0x40a)]['currentSkeleton$'][_0x849feb(0x3eb)](_0x3b4ad7=>{const _0x4ba39e=_0x849feb;if(_0x3b4ad7==null)return;const {skeleton:_0x30e500}=_0x3b4ad7,{scene:_0xc0fc2f}=this[_0x4ba39e(0x1fa)];_0xc0fc2f[_0x4ba39e(0x1e7)][_0x4ba39e(0x281)](_0x2d1802(_0xd67e32=>{const _0x6937e=_0x4ba39e;var _0x45cabf,_0x496672;const {offsetX:_0x14114f,offsetY:_0x3618ba}=_0xd67e32,{x:_0x322fc1,y:_0x4ecd37}=_0xc0fc2f[_0x6937e(0x43c)](_0x327598[_0x6937e(0x46a)]([_0x14114f,_0x3618ba])),{scaleX:_0x30379e,scaleY:_0x585436}=_0xc0fc2f['getAncestorScale'](),_0x463d75=_0xc0fc2f[_0x6937e(0x321)](_0x8cdd2a[_0x6937e(0x359)]),_0xf8f06c=_0xc0fc2f[_0x6937e(0x2f5)](_0x327598[_0x6937e(0x46a)]([_0x322fc1,_0x4ecd37]),_0x463d75),_0x5ade0a=_0x30e500[_0x6937e(0x1a0)](_0x14114f,_0x3618ba,_0x30379e,_0x585436,_0xf8f06c);((_0x45cabf=this['_lastPointer'])==null?void 0x0:_0x45cabf[_0x6937e(0x32b)])===_0x5ade0a[_0x6937e(0x32b)]&&((_0x496672=this[_0x6937e(0x456)])==null?void 0x0:_0x496672[_0x6937e(0x199)])===_0x5ade0a['row']||this[_0x6937e(0x401)]['forEach'](_0x17db13=>{const _0x8ae044=_0x6937e;_0x17db13[_0x8ae044(0x232)](_0x5ade0a);});},0x64));});}[_0x173fa3(0x2c7)](_0x57a8a4,_0x5ba940){const _0x80e51c=_0x173fa3;var _0x56e732;const _0x28e465=(_0x56e732=this['_sheetSkeletonManagerService'][_0x80e51c(0x2a6)]())==null?void 0x0:_0x56e732['skeleton'];if(!_0x28e465)return;const _0x304340=this[_0x80e51c(0x46b)]();if(!_0x304340)return;this['_cursors'][_0x80e51c(0x47e)](_0x4e3004=>{const _0x1e59c6=_0x80e51c;_0x4e3004[_0x1e59c6(0x355)]();});const {scene:_0x146d43}=_0x304340,_0x3d4e10=ho(Array[_0x80e51c(0x28c)](_0x5ba940[_0x80e51c(0x3b1)]()))[_0x80e51c(0x204)](_0x52ef9a=>{const _0x493c96=_0x80e51c,{color:_0x19f6da,range:_0x943adf,name:_0x41fed4,selection:_0x7078f4,sheetID:_0x1d3d62}=_0x52ef9a,{startColumn:_0x44a1b8,startRow:_0x4cfa85,endColumn:_0x3e5bc7,endRow:_0x33749d}=_0x943adf,_0x1c0756=_0x5845e5(_0x4cfa85,_0x44a1b8,_0x146d43,_0x28e465),_0x155a8b=_0x5845e5(_0x33749d,_0x3e5bc7,_0x146d43,_0x28e465),{columnHeaderHeightAndMarginTop:_0x4b3ced}=_0x28e465,{startX:_0x530091,startY:_0x25d2cd}=_0x1c0756,{endX:_0x588922,endY:_0x330379}=_0x155a8b,_0x53fb35=_0x588922-_0x530091,_0x2ef39c=_0x330379-_0x25d2cd,_0x326d4b={'labelPosition':_0x25d2cd-_0x4b3ced>=je?'top':_0x493c96(0x326),'sheetID':_0x1d3d62,'range':_0x943adf,'color':_0x19f6da,'name':_0x41fed4,'selection':_0x7078f4,'left':_0x530091,'top':_0x25d2cd,'width':_0x53fb35,'height':_0x2ef39c,'evented':!0x1,'zIndex':co};return new no(_0x41fed4,_0x326d4b);});_0x146d43[_0x80e51c(0x3e9)](_0x3d4e10,so),this['_cursors']=new Set(_0x3d4e10);}[_0x173fa3(0x2c1)](){const _0x222049=_0x173fa3;var _0x320f3b;(_0x320f3b=this[_0x222049(0x401)])==null||_0x320f3b['forEach'](_0x4006a0=>_0x4006a0['dispose']());}[_0x173fa3(0x46b)](){const _0x3da123=_0x173fa3;return _0x1b8540(this[_0x3da123(0x1fa)][_0x3da123(0x374)],this[_0x3da123(0x1fa)]);}};yt=ao([St(0x1,_0x4f7ed2(_0x1921de)),St(0x2,_0x4f7ed2(Ce)),St(0x3,_0x4f7ed2(_0x1810fb))],yt);function ho(_0x5c9edf){const _0x1072ff=_0x173fa3,_0x1653f9=new Map();return _0x5c9edf['forEach'](_0x948a73=>{const _0x2d12cb=_0x33c3;if(_0x1653f9[_0x2d12cb(0x432)](_0x948a73[_0x2d12cb(0x244)])){const _0x4e1df8=_0x1653f9[_0x2d12cb(0x3c3)](_0x948a73[_0x2d12cb(0x244)]);_0x4e1df8['name']+=',\x20'+_0x948a73[_0x2d12cb(0x284)];}else _0x1653f9[_0x2d12cb(0x3e3)](_0x948a73[_0x2d12cb(0x244)],_0x948a73);}),Array['from'](_0x1653f9[_0x1072ff(0x3b1)]());}var U=function(){const _0x491619=_0x173fa3;return U=Object[_0x491619(0x487)]||function(_0x2f463e){const _0xad96cf=_0x491619;for(var _0x1b9d63,_0x44fc29=0x1,_0x1713c8=arguments[_0xad96cf(0x223)];_0x44fc29<_0x1713c8;_0x44fc29++){_0x1b9d63=arguments[_0x44fc29];for(var _0x43bd69 in _0x1b9d63)Object[_0xad96cf(0x346)][_0xad96cf(0x407)][_0xad96cf(0x470)](_0x1b9d63,_0x43bd69)&&(_0x2f463e[_0x43bd69]=_0x1b9d63[_0x43bd69]);}return _0x2f463e;},U[_0x491619(0x1a9)](this,arguments);},lo=function(_0x2fb46d,_0x330f51){const _0x56acf0=_0x173fa3;var _0x4b54e6={};for(var _0x25ad65 in _0x2fb46d)Object['prototype'][_0x56acf0(0x407)][_0x56acf0(0x470)](_0x2fb46d,_0x25ad65)&&_0x330f51[_0x56acf0(0x237)](_0x25ad65)<0x0&&(_0x4b54e6[_0x25ad65]=_0x2fb46d[_0x25ad65]);if(_0x2fb46d!=null&&typeof Object['getOwnPropertySymbols']==_0x56acf0(0x38c)){for(var _0x1aa9cc=0x0,_0x25ad65=Object[_0x56acf0(0x481)](_0x2fb46d);_0x1aa9cc<_0x25ad65[_0x56acf0(0x223)];_0x1aa9cc++)_0x330f51[_0x56acf0(0x237)](_0x25ad65[_0x1aa9cc])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x56acf0(0x470)](_0x2fb46d,_0x25ad65[_0x1aa9cc])&&(_0x4b54e6[_0x25ad65[_0x1aa9cc]]=_0x2fb46d[_0x25ad65[_0x1aa9cc]]);}return _0x4b54e6;},Kt=_0x431197(function(_0x1fc77e,_0x1feaad){const _0x66312c=_0x173fa3;var _0x2c6961=_0x1fc77e['icon'],_0x1e9a80=_0x1fc77e['id'],_0x336e65=_0x1fc77e[_0x66312c(0x30c)],_0x3c1eae=_0x1fc77e[_0x66312c(0x2b5)],_0x4fb0d8=lo(_0x1fc77e,[_0x66312c(0x460),'id','className','extend']),_0x48c091=_0x66312c(0x4b1)[_0x66312c(0x1ca)](_0x1e9a80,'\x20')[_0x66312c(0x1ca)](_0x336e65||'')[_0x66312c(0x1f6)](),_0x1fbbaa=_0x494e8d('_'['concat'](mo()));return qs(_0x2c6961,''[_0x66312c(0x1ca)](_0x1e9a80),{'defIds':_0x2c6961[_0x66312c(0x35a)],'idSuffix':_0x1fbbaa[_0x66312c(0x497)]},U({'ref':_0x1feaad,'className':_0x48c091},_0x4fb0d8),_0x3c1eae);});function qs(_0x3d2c51,_0x48097c,_0x5f0a72,_0x3f5070,_0x2d71aa){const _0x237a33=_0x173fa3;return _0xfdbf34(_0x3d2c51[_0x237a33(0x2c9)],U(U({'key':_0x48097c},_o(_0x3d2c51,_0x5f0a72,_0x2d71aa)),_0x3f5070),(uo(_0x3d2c51,_0x5f0a72)['children']||[])[_0x237a33(0x204)](function(_0x428242,_0xbf5719){const _0xa4c937=_0x237a33;return qs(_0x428242,''[_0xa4c937(0x1ca)](_0x48097c,'-')[_0xa4c937(0x1ca)](_0x3d2c51[_0xa4c937(0x2c9)],'-')[_0xa4c937(0x1ca)](_0xbf5719),_0x5f0a72,void 0x0,_0x2d71aa);}));}function _o(_0x252b93,_0x262872,_0x44e938){const _0x4e4eea=_0x173fa3;var _0x20a928=U({},_0x252b93[_0x4e4eea(0x3de)]);_0x44e938!=null&&_0x44e938[_0x4e4eea(0x4f1)]&&_0x20a928[_0x4e4eea(0x191)]===_0x4e4eea(0x4f1)&&(_0x20a928[_0x4e4eea(0x191)]=_0x44e938[_0x4e4eea(0x4f1)]);var _0xf2f399=_0x262872[_0x4e4eea(0x35a)];return!_0xf2f399||_0xf2f399[_0x4e4eea(0x223)]===0x0||(_0x252b93['tag']===_0x4e4eea(0x1ee)&&_0x20a928['xlink:href']&&(_0x20a928[_0x4e4eea(0x19f)]=_0x20a928[_0x4e4eea(0x19f)]+_0x262872[_0x4e4eea(0x1d9)]),Object[_0x4e4eea(0x20b)](_0x20a928)['forEach'](function(_0x1775f3){const _0x23994f=_0x4e4eea;var _0x53255e=_0x1775f3[0x0],_0x1132a1=_0x1775f3[0x1];typeof _0x1132a1=='string'&&(_0x20a928[_0x53255e]=_0x1132a1['replace'](/url\(#(.*)\)/,_0x23994f(0x469)[_0x23994f(0x1ca)](_0x262872['idSuffix'],')')));})),_0x20a928;}function uo(_0x4473cd,_0x53c681){const _0x40d43c=_0x173fa3;var _0x526008,_0x316162=_0x53c681[_0x40d43c(0x35a)];return!_0x316162||_0x316162[_0x40d43c(0x223)]===0x0?_0x4473cd:_0x4473cd[_0x40d43c(0x2c9)]===_0x40d43c(0x291)&&(!((_0x526008=_0x4473cd[_0x40d43c(0x2ac)])===null||_0x526008===void 0x0)&&_0x526008[_0x40d43c(0x223)])?U(U({},_0x4473cd),{'children':_0x4473cd[_0x40d43c(0x2ac)]['map'](function(_0xfdb443){const _0x154623=_0x40d43c;return typeof _0xfdb443[_0x154623(0x3de)]['id']==_0x154623(0x215)&&_0x316162&&_0x316162[_0x154623(0x237)](_0xfdb443[_0x154623(0x3de)]['id'])>-0x1?U(U({},_0xfdb443),{'attrs':U(U({},_0xfdb443[_0x154623(0x3de)]),{'id':_0xfdb443[_0x154623(0x3de)]['id']+_0x53c681['idSuffix']})}):_0xfdb443;})}):_0x4473cd;}function mo(){const _0xf568f1=_0x173fa3;return Math['random']()[_0xf568f1(0x358)](0x24)[_0xf568f1(0x4f0)](0x2,0x8);}Kt[_0x173fa3(0x2fa)]='UniverIcon';var fo={'tag':_0x173fa3(0x4b0),'attrs':{'fill':_0x173fa3(0x1c6),'viewBox':_0x173fa3(0x220),'width':_0x173fa3(0x24e),'height':_0x173fa3(0x24e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x173fa3(0x4bb),'strokeLinecap':_0x173fa3(0x477),'strokeLinejoin':_0x173fa3(0x477),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x173fa3(0x466),'attrs':{'id':_0x173fa3(0x285)},'children':[{'tag':_0x173fa3(0x4bf),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Js=_0x431197(function(_0x464f53,_0x10f3d8){const _0x4d93da=_0x173fa3;return _0xfdbf34(Kt,Object[_0x4d93da(0x487)]({},_0x464f53,{'id':_0x4d93da(0x397),'ref':_0x10f3d8,'icon':fo}));});Js['displayName']=_0x173fa3(0x3e6);var go={'tag':_0x173fa3(0x4b0),'attrs':{'fill':_0x173fa3(0x1c6),'viewBox':_0x173fa3(0x4ca),'width':_0x173fa3(0x24e),'height':_0x173fa3(0x24e)},'children':[{'tag':'g','attrs':{'clipPath':_0x173fa3(0x2b4)},'children':[{'tag':_0x173fa3(0x4bf),'attrs':{'stroke':'currentColor','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':_0x173fa3(0x477),'strokeLinejoin':_0x173fa3(0x477),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x173fa3(0x466),'attrs':{'id':_0x173fa3(0x1cf)},'children':[{'tag':_0x173fa3(0x4bf),'attrs':{'fill':_0x173fa3(0x513),'d':_0x173fa3(0x20e),'transform':_0x173fa3(0x45d)}}]}]}],'defIds':[_0x173fa3(0x1cf)]},zs=_0x431197(function(_0x27eda6,_0x2c5f03){return _0xfdbf34(Kt,Object['assign']({},_0x27eda6,{'id':'on-line-single','ref':_0x2c5f03,'icon':go}));});zs[_0x173fa3(0x2fa)]=_0x173fa3(0x282);function Zs(_0x516fca){const _0x4031e4=_0x173fa3;var _0x15e55c,_0x4bb2a9,_0x239dbd='';if(typeof _0x516fca==_0x4031e4(0x215)||typeof _0x516fca=='number')_0x239dbd+=_0x516fca;else{if(typeof _0x516fca==_0x4031e4(0x316)){if(Array[_0x4031e4(0x498)](_0x516fca)){var _0x2fc639=_0x516fca['length'];for(_0x15e55c=0x0;_0x15e55c<_0x2fc639;_0x15e55c++)_0x516fca[_0x15e55c]&&(_0x4bb2a9=Zs(_0x516fca[_0x15e55c]))&&(_0x239dbd&&(_0x239dbd+='\x20'),_0x239dbd+=_0x4bb2a9);}else{for(_0x4bb2a9 in _0x516fca)_0x516fca[_0x4bb2a9]&&(_0x239dbd&&(_0x239dbd+='\x20'),_0x239dbd+=_0x4bb2a9);}}}return _0x239dbd;}function So(){const _0x206546=_0x173fa3;for(var _0x4b8060,_0x28676d,_0x46f5ca=0x0,_0x218e40='',_0x94c612=arguments[_0x206546(0x223)];_0x46f5ca<_0x94c612;_0x46f5ca++)(_0x4b8060=arguments[_0x46f5ca])&&(_0x28676d=Zs(_0x4b8060))&&(_0x218e40&&(_0x218e40+='\x20'),_0x218e40+=_0x28676d);return _0x218e40;}const po=_0x173fa3(0x4ab),vo=_0x173fa3(0x1d5),Io='univer-online-status',Eo=_0x173fa3(0x276),Co=_0x173fa3(0x342),ye={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x35221d){const _0x47405a=_0x173fa3;switch(_0x35221d){case w[_0x47405a(0x410)]:return _0x47405a(0x406);case w[_0x47405a(0x19e)]:return _0x47405a(0x418);case w[_0x47405a(0x502)]:return'collabStatus.fetchMiss';case w['NOT_COLLAB']:return _0x47405a(0x4d4);case w[_0x47405a(0x333)]:case w[_0x47405a(0x3a9)]:return _0x47405a(0x24d);case w[_0x47405a(0x293)]:case w[_0x47405a(0x25c)]:return'collabStatus.synced';}}function To(_0x1a41d8){const _0x165943=_0x173fa3,{status$:_0x3a2c0e}=_0x1a41d8,_0x1f4df9=_0x1866fc(_0x3a2c0e,w[_0x165943(0x434)]),_0x2ab780=_0x5b7ccb(_0x15839b),_0x2435ab=_0x5b7ccb(ue),_0x1119e6=_0x1f4df9!==w[_0x165943(0x410)],_0x3a2f01=_0x2ab780['t'](bo(_0x1f4df9)),_0x4add23=So(ye[_0x165943(0x2c4)],{[ye[_0x165943(0x1ba)]]:_0x1119e6,[ye['offline']]:!_0x1119e6}),_0x153409=_0x1119e6?_0x588026[_0x165943(0x31c)](zs,null):_0x588026[_0x165943(0x31c)](Js,null),_0x406363=_0x2dcebf(()=>{const _0x457f01=_0x165943;_0x1119e6||_0x2435ab[_0x457f01(0x2e0)]();},[_0x1119e6,_0x2435ab]);function _0x17b6dd(){const _0x3dec20=_0x165943;return _0x588026[_0x3dec20(0x31c)](_0x3dec20(0x206),{'className':_0x4add23,'onClick':_0x406363},_0x588026[_0x3dec20(0x31c)](_0x3dec20(0x206),{'className':ye[_0x3dec20(0x1ec)]},_0x153409),_0x588026[_0x3dec20(0x31c)](_0x3dec20(0x206),{'className':ye[_0x3dec20(0x1dd)]},_0x3a2f01));}return _0x1119e6?_0x17b6dd():_0x588026[_0x165943(0x31c)](_0x523a7c,{'title':_0x2ab780['t']('collab-client.tooltip.reconnect')},_0x17b6dd());}var Ro=Object[_0x173fa3(0x309)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x1913b8,_0x2a8b71,_0x1ba4a3,_0x2221d1)=>{const _0x4b0db4=_0x173fa3;for(var _0x1353d1=_0x2221d1>0x1?void 0x0:_0x2221d1?Oo(_0x2a8b71,_0x1ba4a3):_0x2a8b71,_0x365ea0=_0x1913b8[_0x4b0db4(0x223)]-0x1,_0x19580e;_0x365ea0>=0x0;_0x365ea0--)(_0x19580e=_0x1913b8[_0x365ea0])&&(_0x1353d1=(_0x2221d1?_0x19580e(_0x2a8b71,_0x1ba4a3,_0x1353d1):_0x19580e(_0x1353d1))||_0x1353d1);return _0x2221d1&&_0x1353d1&&Ro(_0x2a8b71,_0x1ba4a3,_0x1353d1),_0x1353d1;},Ve=(_0x795a48,_0x28d7a9)=>(_0xfb8a4a,_0xa17329)=>_0x28d7a9(_0xfb8a4a,_0xa17329,_0x795a48);let Me=class extends _0x1ed84d{constructor(_0x4a0a17,_0xd38a50,_0x4a06b6,_0x2123e5){const _0xb5c354=_0x173fa3;super(),l(this,_0xb5c354(0x368),new _0x37b5ce(w[_0xb5c354(0x434)])),(this[_0xb5c354(0x3f2)]=_0x4a0a17,this['_uiPartsService']=_0xd38a50,this['_injector']=_0x4a06b6,this[_0xb5c354(0x486)]=_0x2123e5,this[_0xb5c354(0x4eb)](),this[_0xb5c354(0x39a)]());}[_0x173fa3(0x39a)](){const _0x5b2885=_0x173fa3;this[_0x5b2885(0x193)](this[_0x5b2885(0x3f2)]['focused$'][_0x5b2885(0x35b)](_0x3b6e12(()=>{const _0x4a966b=_0x5b2885,_0x485e3c=this['_univerInstanceService'][_0x4a966b(0x39c)]();return _0x485e3c?this['_collaborationController'][_0x4a966b(0x331)](_0x485e3c[_0x4a966b(0x253)]()):_0x2ad1bd(null);}),_0x3b6e12(_0x2ca20c=>_0x2ca20c?_0x2ca20c['status$']:_0x2ad1bd(w[_0x5b2885(0x434)])))['subscribe'](_0x28cb65=>{const _0x3ad722=_0x5b2885;this[_0x3ad722(0x368)][_0x3ad722(0x2d0)](_0x28cb65);}));}['_initStatusComponent'](){const _0x3eec34=_0x173fa3;this['disposeWithMe'](this[_0x3eec34(0x3f0)][_0x3eec34(0x37e)](_0x185249[_0x3eec34(0x4a4)],()=>_0x426f7f(wo({'status$':this[_0x3eec34(0x368)][_0x3eec34(0x2e6)]()}),this[_0x3eec34(0x4b7)])));}};Me=Do([Ve(0x0,_0x1e8ecc),Ve(0x1,_0x49f7f8),Ve(0x2,_0x4f7ed2(_0x3b0750)),Ve(0x3,_0x4f7ed2($e))],Me);function wo(_0x419591){const {status$:_0x4f489d}=_0x419591;return function(){const _0x403bd4=_0x33c3;return _0x588026[_0x403bd4(0x31c)](To,{'status$':_0x4f489d});};}const Qs=_0x1a0c31(_0x173fa3(0x3fc));var Po=Object['defineProperty'],yo=Object['getOwnPropertyDescriptor'],Uo=(_0x41224c,_0x12f206,_0x40adaa,_0x55881b)=>{const _0x21ba33=_0x173fa3;for(var _0x7c9cf3=_0x55881b>0x1?void 0x0:_0x55881b?yo(_0x12f206,_0x40adaa):_0x12f206,_0x5b04d6=_0x41224c[_0x21ba33(0x223)]-0x1,_0x155f8c;_0x5b04d6>=0x0;_0x5b04d6--)(_0x155f8c=_0x41224c[_0x5b04d6])&&(_0x7c9cf3=(_0x55881b?_0x155f8c(_0x12f206,_0x40adaa,_0x7c9cf3):_0x155f8c(_0x7c9cf3))||_0x7c9cf3);return _0x55881b&&_0x7c9cf3&&Po(_0x12f206,_0x40adaa,_0x7c9cf3),_0x7c9cf3;},ve=(_0x2ea346,_0x34e8d8)=>(_0x4f681d,_0x25f195)=>_0x34e8d8(_0x4f681d,_0x25f195,_0x2ea346);let Ze=class extends _0x13ba8e{constructor(_0x242de4,_0xe91eec,_0x1c6631,_0x50e00d,_0x2f702e,_0x45f5db){const _0x5b8c89=_0x173fa3;super(),this[_0x5b8c89(0x312)]=_0x242de4,this['_logService']=_0xe91eec,this[_0x5b8c89(0x35c)]=_0x1c6631,this['_localCacheService']=_0x50e00d,this[_0x5b8c89(0x307)]=_0x2f702e,_0x45f5db?_0x45f5db==null||_0x45f5db[_0x5b8c89(0x2b7)]()[_0x5b8c89(0x375)](()=>this[_0x5b8c89(0x367)]()):(this[_0x5b8c89(0x2cd)][_0x5b8c89(0x28a)](_0x5b8c89(0x3d9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x173fa3(0x367)](){const _0x452f48=_0x173fa3,_0x4bfe7b=this[_0x452f48(0x312)][_0x452f48(0x419)](_0x452f48(0x374)),_0x34b1d9=this[_0x452f48(0x312)][_0x452f48(0x419)](_0x452f48(0x32d));if(!_0x4bfe7b||!_0x34b1d9){this[_0x452f48(0x2cd)][_0x452f48(0x28a)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x34b1d9)){case B[_0x452f48(0x4fa)]:{const _0x4d4205=await this[_0x452f48(0x3a2)](_0x4bfe7b);this[_0x452f48(0x49a)](_0x4d4205);break;}case B[_0x452f48(0x381)]:{await this[_0x452f48(0x1d4)](_0x4bfe7b);break;}default:{this[_0x452f48(0x2cd)]['error']('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x173fa3(0x49a)](_0x36b5c3){const _0x45f489=_0x173fa3;await this['_updateSubUnitFromURLParams'](_0x36b5c3),_0x36b5c3[_0x45f489(0x192)][_0x45f489(0x35b)](_0x223895(this[_0x45f489(0x2a1)]))[_0x45f489(0x3eb)](_0x21909b=>{const _0x2b554b=_0x45f489;_0x21909b&&this[_0x2b554b(0x270)](_0x21909b);}),this[_0x45f489(0x312)][_0x45f489(0x42f)][_0x45f489(0x35b)](_0x223895(this[_0x45f489(0x2a1)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x36b5c3));}[_0x173fa3(0x270)](_0x2e78e3,_0x469609=!0x1){const _0x482ddd=_0x173fa3,_0x212844=this['_urlService'][_0x482ddd(0x419)]('subunit');_0x2e78e3[_0x482ddd(0x3b7)]()!==_0x212844&&this[_0x482ddd(0x312)][_0x482ddd(0x352)]('subunit',_0x2e78e3[_0x482ddd(0x3b7)](),_0x469609);}async[_0x173fa3(0x412)](_0x1b8971){const _0x5cf675=_0x173fa3;var _0x2a5a1a;const _0x47a2d9=this[_0x5cf675(0x312)]['getParam'](_0x5cf675(0x427));if(!_0x47a2d9||!_0x1b8971[_0x5cf675(0x455)](_0x47a2d9)){const _0x5bf6f4=_0x1b8971[_0x5cf675(0x393)]()[0x0],_0x3a8126=_0x1b8971[_0x5cf675(0x455)](_0x5bf6f4);if(!_0x3a8126)return;this['_updateURLWithCurrentState'](_0x3a8126,!0x0),await this[_0x5cf675(0x35c)][_0x5cf675(0x1d2)](_0x5463e2['id'],{'unitId':_0x1b8971['getUnitId'](),'subUnitId':_0x5bf6f4});return;}((_0x2a5a1a=_0x1b8971['getActiveSheet']())==null?void 0x0:_0x2a5a1a[_0x5cf675(0x3b7)]())!==_0x47a2d9&&await this['_commandService'][_0x5cf675(0x1d2)](_0x5463e2['id'],{'unitId':_0x1b8971['getUnitId'](),'subUnitId':_0x47a2d9});}async[_0x173fa3(0x3a2)](_0x2cb0f6){const _0x427855=_0x173fa3;let _0x301a07=0x0;const _0x71d0e7=await this[_0x427855(0x292)]['loadOfflineData'](_0x2cb0f6);return _0x71d0e7&&(_0x71d0e7[_0x427855(0x3fe)]||_0x71d0e7[_0x427855(0x4cd)][_0x427855(0x223)]!==0x0)&&(_0x301a07=_0x71d0e7[_0x427855(0x4cf)]),_0x301a07===0x0&&this[_0x427855(0x2cd)][_0x427855(0x28a)](_0x427855(0x3d9),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x427855(0x307)][_0x427855(0x30d)](_0x2cb0f6,_0x301a07);}async[_0x173fa3(0x1d4)](_0x499883){const _0x5221bd=_0x173fa3;let _0x5276d9=0x0;const _0x430028=await this[_0x5221bd(0x292)][_0x5221bd(0x302)](_0x499883);return _0x430028&&(_0x430028[_0x5221bd(0x3fe)]||_0x430028['mutations'][_0x5221bd(0x223)]!==0x0)&&(_0x5276d9=_0x430028[_0x5221bd(0x4cf)]),_0x5276d9===0x0&&this['_logService'][_0x5221bd(0x28a)](_0x5221bd(0x3d9),_0x5221bd(0x385)),this[_0x5221bd(0x307)][_0x5221bd(0x25a)](_0x499883,_0x5276d9);}};Ze=Uo([ve(0x0,Qs),ve(0x1,_0x4329b1),ve(0x2,_0xdec94a),ve(0x3,_0x4f7ed2(D)),ve(0x4,_0x4f7ed2(_0x4c83fe)),ve(0x5,_0x532e88(_0xa2838))],Ze);var No=Object[_0x173fa3(0x309)],Ao=Object[_0x173fa3(0x4d5)],Mo=(_0x18b09f,_0x522300,_0x167e1d,_0x28aa88)=>{const _0x4a77c0=_0x173fa3;for(var _0x2cff85=_0x28aa88>0x1?void 0x0:_0x28aa88?Ao(_0x522300,_0x167e1d):_0x522300,_0x19b0e0=_0x18b09f[_0x4a77c0(0x223)]-0x1,_0x180dd7;_0x19b0e0>=0x0;_0x19b0e0--)(_0x180dd7=_0x18b09f[_0x19b0e0])&&(_0x2cff85=(_0x28aa88?_0x180dd7(_0x522300,_0x167e1d,_0x2cff85):_0x180dd7(_0x2cff85))||_0x2cff85);return _0x28aa88&&_0x2cff85&&No(_0x522300,_0x167e1d,_0x2cff85),_0x2cff85;},ps=(_0x5916da,_0x5e7a22)=>(_0xa7b728,_0x29647c)=>_0x5e7a22(_0xa7b728,_0x29647c,_0x5916da);const Lo=_0x173fa3(0x1b2),$o=_0x173fa3(0x295);let Qe=class extends _0x1ed84d{constructor(_0xa6afcf,_0x3dc36e){const _0x1253b5=_0x173fa3;super(),this[_0x1253b5(0x3f2)]=_0xa6afcf,this[_0x1253b5(0x205)]=_0x3dc36e,this['_init']();}[_0x173fa3(0x367)](){const _0x291fe0=_0x173fa3;this['disposeWithMe'](this[_0x291fe0(0x3f2)][_0x291fe0(0x430)][_0x291fe0(0x3eb)](()=>{const _0x58c549=_0x291fe0;var _0xb57927;const _0x4c8d86=this[_0x58c549(0x3f2)][_0x58c549(0x39c)]();let _0x28b019=(_0xb57927=this[_0x58c549(0x205)][_0x58c549(0x4c2)](Lo))!=null?_0xb57927:$o;_0x4c8d86 instanceof _0x1b1252&&(_0x28b019=_0x4c8d86[_0x58c549(0x284)]),document['title']=_0x28b019;}));}};Qe=Mo([ps(0x0,_0x1e8ecc),ps(0x1,_0x13b27e)],Qe);var jo=Object['defineProperty'],Ho=Object[_0x173fa3(0x4d5)],xo=(_0xcf2a24,_0x48d1f7,_0x4b14d7,_0x5909ac)=>{const _0x2bd519=_0x173fa3;for(var _0x2aafb5=_0x5909ac>0x1?void 0x0:_0x5909ac?Ho(_0x48d1f7,_0x4b14d7):_0x48d1f7,_0x4e074a=_0xcf2a24[_0x2bd519(0x223)]-0x1,_0x3e64eb;_0x4e074a>=0x0;_0x4e074a--)(_0x3e64eb=_0xcf2a24[_0x4e074a])&&(_0x2aafb5=(_0x5909ac?_0x3e64eb(_0x48d1f7,_0x4b14d7,_0x2aafb5):_0x3e64eb(_0x2aafb5))||_0x2aafb5);return _0x5909ac&&_0x2aafb5&&jo(_0x48d1f7,_0x4b14d7,_0x2aafb5),_0x2aafb5;},pt=(_0x3a1ba2,_0x2f6705)=>(_0x48997e,_0x2a5d39)=>_0x2f6705(_0x48997e,_0x2a5d39,_0x3a1ba2);let et=class{constructor(_0x383050,_0x93f74d,_0x4e28e4){const _0x509367=_0x173fa3;this[_0x509367(0x205)]=_0x383050,this[_0x509367(0x511)]=_0x93f74d,this['localeService']=_0x4e28e4,this['init']();}['init'](){const _0x2834ff=_0x173fa3;this['_httpService'][_0x2834ff(0x27b)]({'priority':0x1,'interceptor':(_0x5b6122,_0x4f8baa)=>_0x4f8baa(_0x5b6122)[_0x2834ff(0x35b)](_0x2bf06b(async _0x4e07da=>{const _0x23afbb=_0x2834ff,_0x4c5291=_0x4e07da;if(_0x4c5291[_0x23afbb(0x38d)]===0x191&&window['confirm'](this[_0x23afbb(0x1f2)]['t'](_0x23afbb(0x210)))){const _0x5c04fd=window[_0x23afbb(0x398)](window[_0x23afbb(0x35e)]['href']);window[_0x23afbb(0x35e)][_0x23afbb(0x3f3)]=this['_getLoginPath']()+_0x23afbb(0x19c)+_0x5c04fd;}return _0x4c5291;}))});}[_0x173fa3(0x341)](){const _0x3bb1d7=_0x173fa3;var _0x2351b1,_0x1aaf98;const _0x57d44b=this[_0x3bb1d7(0x205)][_0x3bb1d7(0x4c2)](Ln),_0x32b387=this[_0x3bb1d7(0x205)][_0x3bb1d7(0x4c2)](j);return(_0x1aaf98=(_0x2351b1=_0x32b387==null?void 0x0:_0x32b387[_0x3bb1d7(0x1f3)])!=null?_0x2351b1:_0x57d44b)!=null?_0x1aaf98:$n;}};et=xo([pt(0x0,_0x13b27e),pt(0x1,_0x4f7ed2(_0x33691b)),pt(0x2,_0x4f7ed2(_0x15839b))],et);var ko=Object[_0x173fa3(0x309)],Bo=Object[_0x173fa3(0x4d5)],Vo=(_0x479a8b,_0x332d27,_0xc68e06,_0x3bf73d)=>{for(var _0x36a69d=_0x3bf73d>0x1?void 0x0:_0x3bf73d?Bo(_0x332d27,_0xc68e06):_0x332d27,_0x56ce76=_0x479a8b['length']-0x1,_0x45a618;_0x56ce76>=0x0;_0x56ce76--)(_0x45a618=_0x479a8b[_0x56ce76])&&(_0x36a69d=(_0x3bf73d?_0x45a618(_0x332d27,_0xc68e06,_0x36a69d):_0x45a618(_0x36a69d))||_0x36a69d);return _0x3bf73d&&_0x36a69d&&ko(_0x332d27,_0xc68e06,_0x36a69d),_0x36a69d;},vs=(_0x10c368,_0x3bba06)=>(_0xe21ccf,_0x5161ec)=>_0x3bba06(_0xe21ccf,_0x5161ec,_0x10c368);const Fo='AUTHZ_URL_KEY',Wo=_0x173fa3(0x43e);let Ut=class extends _0x1ed84d{constructor(_0x36e08a,_0x2c40fc){const _0x289142=_0x173fa3;super(),this[_0x289142(0x2db)]=_0x36e08a,this[_0x289142(0x205)]=_0x2c40fc,this[_0x289142(0x4df)]();}[_0x173fa3(0x4df)](){const _0x3977dc=_0x173fa3,_0x4febc3=this;this[_0x3977dc(0x193)](this[_0x3977dc(0x2db)][_0x3977dc(0x27b)]({'priority':0x3e7,'interceptor':_0x5a1e35({'isMatch'(_0x2140a3){const _0xa94d7b=_0x3977dc;var _0x4a35b5;if(_0x2140a3['method']===_0xa94d7b(0x3af)&&((_0x4a35b5=_0x2140a3[_0xa94d7b(0x3e1)])!=null&&_0x4a35b5[_0xa94d7b(0x3d7)])){const {objectID:_0x341d55,objectType:_0x2aa6c1}=_0x2140a3['requestParams'][_0xa94d7b(0x3d7)]||{};if(!_0x341d55||_0x2aa6c1===void 0x0)return!0x1;const _0x27cef7=_0x4febc3[_0xa94d7b(0x272)]()+'/'+_0x2aa6c1+'/object/'+_0x341d55+_0xa94d7b(0x314);if(_0x2140a3[_0xa94d7b(0x27a)]===_0x27cef7)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x49d88a){const _0x3527b6=_0x3977dc;var _0x34b97e;return(_0x34b97e=_0x49d88a[_0x3527b6(0x3e1)])==null?void 0x0:_0x34b97e[_0x3527b6(0x3d7)];},'mergeParamsToRequest'(_0x3f149e,_0x2e9469){const _0x5e43c1=_0x3977dc,_0x4f7724=_0x4febc3[_0x5e43c1(0x272)]()+'/-/object/-/batch_allowed',_0x3dea26=_0x3f149e['reduce']((_0x568483,_0x445712)=>{const _0x4e5fba=_0x5e43c1,{unitID:_0x386388,objectID:_0x5272c5,objectType:_0x228ecd,actions:_0x103e3f}=_0x445712;return _0x568483[_0x386388]||(_0x568483[_0x386388]={}),_0x568483[_0x386388][_0x5272c5]||(_0x568483[_0x386388][_0x5272c5]={'objectID':_0x5272c5,'objectType':_0x228ecd,'actions':[]}),_0x568483[_0x386388][_0x5272c5][_0x4e5fba(0x1c3)]['push'](..._0x103e3f),_0x568483;},{}),_0x4a89f2=[];for(const _0x521160 in _0x3dea26)for(const _0x4e1877 in _0x3dea26[_0x521160]){const {actions:_0x357982,objectType:_0xec19ed}=_0x3dea26[_0x521160][_0x4e1877],_0x3b8b85=[...new Set(_0x357982)];_0x4a89f2[_0x5e43c1(0x1da)]({'unitID':_0x521160,'objectID':_0x4e1877,'objectType':_0xec19ed,'actions':_0x3b8b85});}return new _0x20d999(_0x5e43c1(0x3af),_0x4f7724,{'headers':_0x2e9469['headers'],'withCredentials':_0x2e9469['withCredentials'],'responseType':_0x2e9469[_0x5e43c1(0x360)],'body':{'requests':_0x4a89f2}});}},{'distributeResult'(_0x563f2a,_0x26b344){const _0x241e2c=_0x3977dc,{objectActions:_0x15dadc}=_0x563f2a;return _0x26b344[_0x241e2c(0x204)](_0x227b7a=>{const _0x21d82b=_0x241e2c,{unitID:_0x45f8c7,objectID:_0x35e572,actions:_0xeb61fb}=_0x227b7a,_0x5a030a=_0x15dadc['find'](_0x5ab627=>_0x5ab627[_0x21d82b(0x23a)]===_0x45f8c7&&_0x5ab627['objectID']===_0x35e572),_0x33a316=_0xeb61fb[_0x21d82b(0x204)](_0x2be622=>_0x5a030a==null?void 0x0:_0x5a030a[_0x21d82b(0x1c3)][_0x21d82b(0x1f4)](_0x9e5382=>_0x9e5382[_0x21d82b(0x21a)]===_0x2be622))['filter'](_0x7615ac=>!!_0x7615ac);return{'config':_0x227b7a,'result':{'actions':_0x33a316,'error':_0x563f2a[_0x21d82b(0x3b8)]}};});}})}));}['_getAPIPrefixPath'](){const _0x1612a9=_0x173fa3;var _0x21d5e1,_0x20ca58;const _0x1631b4=this[_0x1612a9(0x205)][_0x1612a9(0x4c2)](Fo),_0x542af1=this[_0x1612a9(0x205)][_0x1612a9(0x4c2)](j);return(_0x20ca58=(_0x21d5e1=_0x542af1==null?void 0x0:_0x542af1[_0x1612a9(0x1b6)])!=null?_0x21d5e1:_0x1631b4)!=null?_0x20ca58:Wo;}async[_0x173fa3(0x1ea)](_0x457221){const _0x2d8832=_0x173fa3,_0x2543f3=this['_getAPIPrefixPath']()+'/'+_0x457221[_0x2d8832(0x425)]+_0x2d8832(0x259);return(await this[_0x2d8832(0x2db)][_0x2d8832(0x289)](_0x2543f3,{'body':_0x457221}))[_0x2d8832(0x3d7)]['objectID']||'';}async[_0x173fa3(0x3b2)](_0x116fe0){const _0x1f8b94=_0x173fa3,_0x4cec10=this[_0x1f8b94(0x272)]()+_0x1f8b94(0x3c6);return(await this[_0x1f8b94(0x2db)][_0x1f8b94(0x289)](_0x4cec10,{'body':_0x116fe0}))['body']['objects'];}async[_0x173fa3(0x380)](_0xa0b536){const _0x27f7c0=_0x173fa3,_0x4d0cd1=this[_0x27f7c0(0x272)]()+'/'+_0xa0b536[_0x27f7c0(0x425)]+_0x27f7c0(0x485)+_0xa0b536[_0x27f7c0(0x41e)];await this[_0x27f7c0(0x2db)][_0x27f7c0(0x4d6)](_0x4d0cd1,{'body':_0xa0b536});}async[_0x173fa3(0x1e9)](_0x35437d){const _0x5051d9=_0x173fa3,_0x2c8cad=this['_getAPIPrefixPath']()+'/'+_0x35437d['objectType']+_0x5051d9(0x485)+_0x35437d[_0x5051d9(0x41e)]+_0x5051d9(0x314);return(await this[_0x5051d9(0x2db)][_0x5051d9(0x289)](_0x2c8cad,{'body':_0x35437d}))[_0x5051d9(0x3d7)][_0x5051d9(0x1c3)];}async['batchAllowed'](_0x5a5bb5){const _0x431613=_0x173fa3,_0x13607a=this[_0x431613(0x272)]()+_0x431613(0x2eb);return(await this[_0x431613(0x2db)][_0x431613(0x289)](_0x13607a,{'body':{'requests':_0x5a5bb5}}))[_0x431613(0x3d7)][_0x431613(0x42d)];}async[_0x173fa3(0x516)](_0x5e20be){const _0x3b57e8=_0x173fa3,_0x5992ec=this[_0x3b57e8(0x272)]()+'/'+_0x5e20be[_0x3b57e8(0x425)]+_0x3b57e8(0x4d9),_0x468af4=await this[_0x3b57e8(0x2db)][_0x3b57e8(0x289)](_0x5992ec,{'body':_0x5e20be});return{'roles':_0x468af4[_0x3b57e8(0x3d7)][_0x3b57e8(0x1b5)],'actions':_0x468af4[_0x3b57e8(0x3d7)][_0x3b57e8(0x1c3)]};}async[_0x173fa3(0x1a7)](_0x87ff24){const _0x1a82a2=_0x173fa3,_0x405d7b=this[_0x1a82a2(0x272)]()+_0x1a82a2(0x209);await this[_0x1a82a2(0x2db)]['delete'](_0x405d7b,{'params':{'collaboratorID':_0x87ff24['collaboratorID'],'objectID':_0x87ff24[_0x1a82a2(0x41e)],'unitID':_0x87ff24['unitID']}});}async[_0x173fa3(0x25f)](_0x309385){const _0x206ec1=_0x173fa3,_0x3ecd76=this[_0x206ec1(0x272)]()+_0x206ec1(0x209);await this[_0x206ec1(0x2db)][_0x206ec1(0x1ad)](_0x3ecd76,{'body':_0x309385});}async[_0x173fa3(0x413)](_0x37578f){const _0x3389b8=_0x173fa3,_0x207be9=this['_getAPIPrefixPath']()+_0x3389b8(0x209);await this[_0x3389b8(0x2db)]['post'](_0x207be9,{'body':_0x37578f});}async['listCollaborators'](_0x483fc3){const _0x1246b5=_0x173fa3,_0x57c30a=this[_0x1246b5(0x272)]()+_0x1246b5(0x209);return(await this[_0x1246b5(0x2db)][_0x1246b5(0x3c3)](_0x57c30a,{'params':{'objectID':_0x483fc3['objectID'],'unitID':_0x483fc3['unitID']}}))[_0x1246b5(0x3d7)][_0x1246b5(0x504)];}async[_0x173fa3(0x18c)](_0x4ed916){const _0x53c0b9=_0x173fa3,_0x568e2f=this[_0x53c0b9(0x272)]()+_0x53c0b9(0x209);await this['_HTTPService'][_0x53c0b9(0x4d6)](_0x568e2f,{'body':_0x4ed916});}};Ut=Vo([vs(0x0,_0x4f7ed2(_0x33691b)),vs(0x1,_0x4f7ed2(_0x13b27e))],Ut);var Go=Object[_0x173fa3(0x309)],Yo=Object[_0x173fa3(0x4d5)],Ko=(_0x39799e,_0x5092b8,_0x1a4984,_0xdcc60)=>{for(var _0x557708=_0xdcc60>0x1?void 0x0:_0xdcc60?Yo(_0x5092b8,_0x1a4984):_0x5092b8,_0x7d1ce8=_0x39799e['length']-0x1,_0x2d4ad0;_0x7d1ce8>=0x0;_0x7d1ce8--)(_0x2d4ad0=_0x39799e[_0x7d1ce8])&&(_0x557708=(_0xdcc60?_0x2d4ad0(_0x5092b8,_0x1a4984,_0x557708):_0x2d4ad0(_0x557708))||_0x557708);return _0xdcc60&&_0x557708&&Go(_0x5092b8,_0x1a4984,_0x557708),_0x557708;},Xo=(_0x4817eb,_0x5b7d9f)=>(_0x300afa,_0xb54b3c)=>_0x5b7d9f(_0x300afa,_0xb54b3c,_0x4817eb);let tt=class{constructor(_0x142b3e){const _0x1722a6=_0x173fa3;this[_0x1722a6(0x511)]=_0x142b3e,this[_0x1722a6(0x203)]();}[_0x173fa3(0x203)](){const _0x2fe295=_0x173fa3;this['_httpService'][_0x2fe295(0x27b)]({'interceptor':(_0x36189a,_0x779692)=>{const _0x2f3337=_0x2fe295,_0xd5b4b6=_0x36189a[_0x2f3337(0x435)],_0x3fbeaf=_0x10e2ee();return _0x3fbeaf&&_0xd5b4b6['set']('x-univer-host',_0x3fbeaf),_0x779692(_0x36189a);}});}};tt=Ko([Xo(0x0,_0x4f7ed2(_0x33691b))],tt);var qo=Object[_0x173fa3(0x309)],Jo=Object[_0x173fa3(0x4d5)],zo=(_0x51a9cc,_0x4dbf63,_0x1933c5,_0x4cd0e2)=>{for(var _0xab4580=_0x4cd0e2>0x1?void 0x0:_0x4cd0e2?Jo(_0x4dbf63,_0x1933c5):_0x4dbf63,_0x49d0e8=_0x51a9cc['length']-0x1,_0x4d3844;_0x49d0e8>=0x0;_0x49d0e8--)(_0x4d3844=_0x51a9cc[_0x49d0e8])&&(_0xab4580=(_0x4cd0e2?_0x4d3844(_0x4dbf63,_0x1933c5,_0xab4580):_0x4d3844(_0xab4580))||_0xab4580);return _0x4cd0e2&&_0xab4580&&qo(_0x4dbf63,_0x1933c5,_0xab4580),_0xab4580;},vt=(_0x2933f6,_0x2404dc)=>(_0x286e22,_0x332c12)=>_0x2404dc(_0x286e22,_0x332c12,_0x2933f6);const Zo=[_0x173fa3(0x30b),_0x173fa3(0x446),_0x173fa3(0x49e),_0x173fa3(0x306),'image/bmp'],Qo=0x5*0x400*0x400,ea='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ta=_0x173fa3(0x43d),sa=_0x173fa3(0x3f9),ia=_0x173fa3(0x1e4);let Nt=class{constructor(_0x28f982,_0x3e1de4,_0x2eb8ef){const _0x5c1aaf=_0x173fa3;l(this,_0x5c1aaf(0x39b),0x0),l(this,_0x5c1aaf(0x362),new _0x54d3a4()),l(this,_0x5c1aaf(0x222),this[_0x5c1aaf(0x362)]),l(this,_0x5c1aaf(0x514),new Map()),(this[_0x5c1aaf(0x511)]=_0x28f982,this[_0x5c1aaf(0x205)]=_0x3e1de4,this[_0x5c1aaf(0x3f2)]=_0x2eb8ef);}[_0x173fa3(0x3f4)](_0x39a492){const _0x3a2e37=_0x173fa3;this[_0x3a2e37(0x39b)]=_0x39a492,this[_0x3a2e37(0x362)][_0x3a2e37(0x2d0)](_0x39a492);}['getImageSourceCache'](_0x5216d1,_0x23390e){const _0x57ea16=_0x173fa3;if(_0x23390e===_0x4349b6[_0x57ea16(0x38b)]){const _0x50b7b2=new Image();return _0x50b7b2[_0x57ea16(0x2c8)]=_0x5216d1,_0x50b7b2;}return this[_0x57ea16(0x514)][_0x57ea16(0x3c3)](_0x5216d1);}[_0x173fa3(0x1c1)](_0x3e53e8,_0x3a4256,_0x33101a){const _0x2abecf=_0x173fa3;_0x3a4256===_0x4349b6[_0x2abecf(0x38b)]||_0x33101a==null||this[_0x2abecf(0x514)][_0x2abecf(0x3e3)](_0x3e53e8,_0x33101a);}async[_0x173fa3(0x3c2)](_0x1aa23f){const _0x4e2d83=_0x173fa3;try{const _0x12ebc5=this[_0x4e2d83(0x4a0)](this[_0x4e2d83(0x3a1)](),''+_0x1aa23f),_0x2e266a=(await this[_0x4e2d83(0x511)][_0x4e2d83(0x3c3)](_0x12ebc5))[_0x4e2d83(0x3d7)];if(_0x2e266a['error']&&_0x2e266a[_0x4e2d83(0x3b8)]['code']===ks['OK']){const _0x278d34=new URL(_0x2e266a[_0x4e2d83(0x27a)],this[_0x4e2d83(0x4a1)]())[_0x4e2d83(0x358)]();return Promise[_0x4e2d83(0x29f)](_0x278d34);}return Promise[_0x4e2d83(0x2b2)](_0x2e266a[_0x4e2d83(0x3b8)]);}catch(_0xfc6a63){return Promise[_0x4e2d83(0x2b2)](_0xfc6a63);}}async[_0x173fa3(0x4e9)](_0x4fa5a1){const _0x40e4e6=_0x173fa3;let _0x61e6b7='';if(!Zo['includes'](_0x4fa5a1['type']))return this[_0x40e4e6(0x236)](),Promise[_0x40e4e6(0x2b2)](new Error(_0xb56f1[_0x40e4e6(0x255)]));if(_0x4fa5a1[_0x40e4e6(0x46d)]>Qo)return this[_0x40e4e6(0x236)](),Promise['reject'](new Error(_0xb56f1[_0x40e4e6(0x1eb)]));try{const _0x5e47e1=new FormData();_0x5e47e1[_0x40e4e6(0x474)](_0x40e4e6(0x1e0),_0x4fa5a1);const _0x4b2f20=this[_0x40e4e6(0x3f2)][_0x40e4e6(0x39c)](),_0x1d52eb=_0x4b2f20==null?void 0x0:_0x4b2f20[_0x40e4e6(0x253)]();if(!_0x1d52eb)throw new Error(_0x40e4e6(0x3cd));const _0x283915=this[_0x40e4e6(0x40d)]()+'?size='+_0x4fa5a1['size'][_0x40e4e6(0x358)]()+'&source='+Bs[_0x40e4e6(0x2ff)]+'&assign='+encodeURIComponent(_0x1d52eb),_0x7ef6f2=await(await fetch(_0x283915,{'method':_0x40e4e6(0x3af),'body':_0x5e47e1}))[_0x40e4e6(0x399)]();if(typeof _0x7ef6f2['FileId']!=_0x40e4e6(0x215))return this[_0x40e4e6(0x236)](),Promise[_0x40e4e6(0x2b2)](new Error(_0xb56f1[_0x40e4e6(0x2a0)]));_0x61e6b7=_0x7ef6f2[_0x40e4e6(0x3e0)];}catch{return this[_0x40e4e6(0x236)](),Promise[_0x40e4e6(0x2b2)](new Error(_0xb56f1['ERROR_IMAGE']));}return new Promise((_0x46bfde,_0x4790b0)=>{const _0x5e76fa=_0x40e4e6,_0x5dfdc3=new FileReader();_0x5dfdc3[_0x5e76fa(0x4e3)](_0x4fa5a1),_0x5dfdc3[_0x5e76fa(0x298)]=_0x89dddd=>{const _0x3cd233=_0x5e76fa;var _0x14a6d6;const _0xc14666=(_0x14a6d6=_0x89dddd['target'])==null?void 0x0:_0x14a6d6[_0x3cd233(0x47b)];if(_0xc14666==null){this['_decreaseWaiting'](),_0x4790b0(new Error(_0xb56f1[_0x3cd233(0x2a0)]));return;}const _0x427335=_0x58e8f0[_0x3cd233(0x31e)](0x6);_0x46bfde({'imageId':_0x427335,'imageSourceType':_0x4349b6[_0x3cd233(0x3ed)],'source':_0x61e6b7,'base64Cache':_0xc14666,'status':_0xb56f1['SUCCUSS']}),this[_0x3cd233(0x236)]();};});}['_getUploadFileURL'](){const _0x297726=_0x173fa3;var _0x3224a4,_0x1bff2a;const _0x3b3f78=this[_0x297726(0x205)][_0x297726(0x4c2)](ea),_0x5ab8d9=this[_0x297726(0x205)][_0x297726(0x4c2)](j);return(_0x1bff2a=(_0x3224a4=_0x5ab8d9==null?void 0x0:_0x5ab8d9[_0x297726(0x3cb)])!=null?_0x3224a4:_0x3b3f78)!=null?_0x1bff2a:ta;}[_0x173fa3(0x3a1)](){const _0x214e9e=_0x173fa3;var _0x471d42,_0x2c2a39;const _0x2c85b8=this[_0x214e9e(0x205)][_0x214e9e(0x4c2)](sa),_0x19b752=this[_0x214e9e(0x205)][_0x214e9e(0x4c2)](j);return(_0x2c2a39=(_0x471d42=_0x19b752==null?void 0x0:_0x19b752[_0x214e9e(0x29e)])!=null?_0x471d42:_0x2c85b8)!=null?_0x2c2a39:ia;}[_0x173fa3(0x4a1)](){const _0x1b919e=_0x173fa3;var _0x53368a;const _0x25163f=this[_0x1b919e(0x205)][_0x1b919e(0x4c2)](j);return(_0x53368a=_0x25163f==null?void 0x0:_0x25163f[_0x1b919e(0x3dc)])!=null?_0x53368a:location[_0x1b919e(0x49c)];}[_0x173fa3(0x4a0)](_0x5b37d4,_0x298dc6){const _0xbcf7b0=_0x173fa3;return _0x5b37d4['replace'](_0xbcf7b0(0x27e),_0x298dc6);}['_decreaseWaiting'](){const _0x445b62=_0x173fa3;this[_0x445b62(0x39b)]-=0x1,this[_0x445b62(0x362)]['next'](this[_0x445b62(0x39b)]);}};Nt=zo([vt(0x0,_0x4f7ed2(_0x33691b)),vt(0x1,_0x13b27e),vt(0x2,_0x4f7ed2(_0x1e8ecc))],Nt);var na=Object[_0x173fa3(0x309)],ra=Object[_0x173fa3(0x4d5)],oa=(_0x467996,_0x4b7430,_0x4643ca,_0x3fe199)=>{const _0x5cb32c=_0x173fa3;for(var _0x242c90=_0x3fe199>0x1?void 0x0:_0x3fe199?ra(_0x4b7430,_0x4643ca):_0x4b7430,_0x263064=_0x467996[_0x5cb32c(0x223)]-0x1,_0xc004ef;_0x263064>=0x0;_0x263064--)(_0xc004ef=_0x467996[_0x263064])&&(_0x242c90=(_0x3fe199?_0xc004ef(_0x4b7430,_0x4643ca,_0x242c90):_0xc004ef(_0x242c90))||_0x242c90);return _0x3fe199&&_0x242c90&&na(_0x4b7430,_0x4643ca,_0x242c90),_0x242c90;},Ue=(_0x31123d,_0x3eb9df)=>(_0x4005fd,_0x5caaf6)=>_0x3eb9df(_0x4005fd,_0x5caaf6,_0x31123d);let st=class extends _0x13ba8e{constructor(_0x348969,_0xe4af0c,_0xfa0bd,_0x13f38d,_0x5c17ce){const _0x3c213c=_0x173fa3;super(),this[_0x3c213c(0x4b7)]=_0x348969,this[_0x3c213c(0x3f2)]=_0xe4af0c,this['_permissionService']=_0xfa0bd,this[_0x3c213c(0x344)]=_0x13f38d,this[_0x3c213c(0x2e7)]=_0x5c17ce,this[_0x3c213c(0x1f8)](),this['_initCloseConn']();}[_0x173fa3(0x4ad)](){const _0x1c101a=_0x173fa3,_0x29da62=async _0x21581c=>{const _0x30b8da=_0x33c3;(await this[_0x30b8da(0x344)]['requireSession'](_0x21581c))[_0x30b8da(0x493)][_0x30b8da(0x35b)](_0x3f9fc1(_0xd8c0a7=>_0xd8c0a7[_0x30b8da(0x278)]===_0x5f441e[_0x30b8da(0x296)]),_0x54b271(this[_0x30b8da(0x2a1)]))[_0x30b8da(0x3eb)](_0x5244c7=>{const _0x2f13cc=_0x30b8da,_0x4d930c=_0x5244c7,{reason:_0x14b7b5}=_0x4d930c[_0x2f13cc(0x411)];this[_0x2f13cc(0x4b7)][_0x2f13cc(0x3c3)](_0x46e149)[_0x2f13cc(0x1e6)]({'type':_0x180cc7['Error'],'content':this[_0x2f13cc(0x2e7)]['t']('collaboration.closeRoom')+'('+_0x14b7b5+')'}),this[_0x2f13cc(0x1d0)][_0x2f13cc(0x1c5)](new _0x52a438(_0x21581c)['id'],!0x1),this[_0x2f13cc(0x344)][_0x2f13cc(0x42a)](_0x21581c);});};_0x378f3d(this[_0x1c101a(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d[_0x1c101a(0x4fa)]),this[_0x1c101a(0x3f2)][_0x1c101a(0x22f)](_0x159e2d['UNIVER_DOC']))[_0x1c101a(0x35b)](_0x595c33(_0x3932a2=>_0x3932a2[_0x1c101a(0x253)]()),_0x3f9fc1(_0x249dba=>!_0xfab1d1(_0x249dba)),_0x54b271(this[_0x1c101a(0x2a1)]))[_0x1c101a(0x3eb)](_0x29146a=>{_0x29da62(_0x29146a);});}[_0x173fa3(0x1f8)](){const _0x4635ea=_0x173fa3,_0x1b7c03=async _0x15f66b=>{const _0x1bc624=_0x33c3;(await this[_0x1bc624(0x344)][_0x1bc624(0x395)](_0x15f66b))[_0x1bc624(0x493)][_0x1bc624(0x35b)](_0x3f9fc1(_0x7e9837=>_0x7e9837[_0x1bc624(0x278)]===_0x5f441e['UPDATE_PERMISSION_OBJ']),_0x54b271(this[_0x1bc624(0x2a1)]))[_0x1bc624(0x3eb)](_0x4bd85b=>{const _0x5cf68d=_0x1bc624,_0x409393=_0x4bd85b,{objectId:_0x4fb3ea}=_0x409393[_0x5cf68d(0x411)],_0x1761a5=this[_0x5cf68d(0x4b7)][_0x5cf68d(0x3c3)](_0x3d90fa);_0x4fb3ea===_0x15f66b?_0x1761a5[_0x5cf68d(0x4da)](_0x15f66b):_0x1761a5[_0x5cf68d(0x4dd)](_0x15f66b,_0x4fb3ea);});};_0x378f3d(this[_0x4635ea(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d['UNIVER_SHEET']),this[_0x4635ea(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d[_0x4635ea(0x381)]))[_0x4635ea(0x35b)](_0x595c33(_0x562ac6=>_0x562ac6['getUnitId']()),_0x3f9fc1(_0x3be468=>!_0xfab1d1(_0x3be468)),_0x54b271(this[_0x4635ea(0x2a1)]))[_0x4635ea(0x3eb)](_0x28baca=>{_0x1b7c03(_0x28baca);});}};st=oa([Ue(0x0,_0x4f7ed2(_0x3b0750)),Ue(0x1,_0x1e8ecc),Ue(0x2,_0x8f100a),Ue(0x3,_0x4f7ed2(ue)),Ue(0x4,_0x4f7ed2(_0x15839b))],st);var aa=Object[_0x173fa3(0x309)],ca=Object[_0x173fa3(0x4d5)],ha=(_0xa4f73,_0x288bed,_0x370d73,_0x586ae7)=>{const _0x33c0d7=_0x173fa3;for(var _0x168243=_0x586ae7>0x1?void 0x0:_0x586ae7?ca(_0x288bed,_0x370d73):_0x288bed,_0x51d964=_0xa4f73[_0x33c0d7(0x223)]-0x1,_0x3ff386;_0x51d964>=0x0;_0x51d964--)(_0x3ff386=_0xa4f73[_0x51d964])&&(_0x168243=(_0x586ae7?_0x3ff386(_0x288bed,_0x370d73,_0x168243):_0x3ff386(_0x168243))||_0x168243);return _0x586ae7&&_0x168243&&aa(_0x288bed,_0x370d73,_0x168243),_0x168243;},Is=(_0x5e71b3,_0xe5de6f)=>(_0x4913a2,_0xb8ae47)=>_0xe5de6f(_0x4913a2,_0xb8ae47,_0x5e71b3);let At=class{constructor(_0x36dc16,_0x5960dd){const _0xa12f65=_0x173fa3;this[_0xa12f65(0x205)]=_0x36dc16,this[_0xa12f65(0x511)]=_0x5960dd;}async['getUnitOnRev'](_0x1d8ef9,_0xb729a8){const _0x5b8c25=_0x173fa3;var _0x2ba270;const {unitID:_0x33d8c6,type:_0x1a3f89,revision:_0x1d962c=0x0}=_0xb729a8,_0x4715bc=this[_0x5b8c25(0x218)]()+'/'+_0x1a3f89+'/unit/'+_0x33d8c6+_0x5b8c25(0x233)+_0x1d962c,_0x52ed17=(await this[_0x5b8c25(0x511)]['get'](_0x4715bc))[_0x5b8c25(0x3d7)],_0x5d9d69=(_0x2ba270=_0x52ed17['snapshot'])==null?void 0x0:_0x2ba270['workbook'];if(_0x5d9d69){const _0x42b9cf=_0x5d9d69==null?void 0x0:_0x5d9d69['originalMeta'],_0x331846=_0x206e33['encode'](_0x346f8f(_0x42b9cf));_0x5d9d69['originalMeta']=_0x331846,Object[_0x5b8c25(0x20b)](_0x5d9d69['sheets'])['forEach'](([,_0x471995])=>{const _0x2b72b5=_0x5b8c25,_0xc4111=_0x471995[_0x2b72b5(0x28b)],_0x1c6da9=_0x206e33[_0x2b72b5(0x41b)](_0x346f8f(_0xc4111));_0x471995[_0x2b72b5(0x28b)]=_0x1c6da9;});}return _0x52ed17;}async['getSheetBlock'](_0x57a3ec,_0x126e0d){const _0x4f8582=_0x173fa3,{unitID:_0x44ea49,type:_0x633c47,blockID:_0x3237a0}=_0x126e0d,_0x349d00=this[_0x4f8582(0x3ba)]()+'/'+_0x633c47+_0x4f8582(0x50d)+_0x44ea49+_0x4f8582(0x33f)+_0x3237a0;return(await this[_0x4f8582(0x511)][_0x4f8582(0x3c3)](_0x349d00))[_0x4f8582(0x3d7)];}async['getDeserializedSheetBlock'](_0x4e907d,_0x3eef85){const _0x3bd19d=_0x173fa3,{unitID:_0x2900b0,type:_0x12cbff,blockID:_0x40e3e3}=_0x3eef85,_0x1e2c6e=this['_getAPIPrefix']()+_0x3bd19d(0x33f)+_0x12cbff+_0x3bd19d(0x50d)+_0x2900b0+_0x3bd19d(0x33f)+_0x40e3e3;return(await this[_0x3bd19d(0x511)][_0x3bd19d(0x3c3)](_0x1e2c6e))[_0x3bd19d(0x3d7)];}async[_0x173fa3(0x2ea)](_0x34a756,_0x668c){const _0x42bef7=_0x173fa3,{unitID:_0x69cb81,type:_0x3478c6,from:_0x2b23a2,to:_0x4af9}=_0x668c,_0x3356ce=this[_0x42bef7(0x3ba)]()+'/'+_0x3478c6+_0x42bef7(0x50d)+_0x69cb81+'/fetchmissing?from='+_0x2b23a2+'&to='+_0x4af9;return(await this[_0x42bef7(0x511)][_0x42bef7(0x3c3)](_0x3356ce))[_0x42bef7(0x3d7)];}[_0x173fa3(0x218)](){const _0x3860eb=_0x173fa3;var _0x331a9e;return(_0x331a9e=this[_0x3860eb(0x205)][_0x3860eb(0x4c2)](Cn))!=null?_0x331a9e:this['_getAPIPrefix']();}[_0x173fa3(0x3ba)](){const _0x23e3e2=_0x173fa3;var _0x2b6819,_0x8b1c5f;const _0x1a5dce=this[_0x23e3e2(0x205)][_0x23e3e2(0x4c2)](In),_0x5990d7=this[_0x23e3e2(0x205)][_0x23e3e2(0x4c2)](j);return(_0x8b1c5f=(_0x2b6819=_0x5990d7==null?void 0x0:_0x5990d7['snapshotServerUrl'])!=null?_0x2b6819:_0x1a5dce)!=null?_0x8b1c5f:En;}async['getResourcesRequest'](_0x469b2f,_0x3fe9fe){const _0x314ed8=_0x173fa3,_0x53209f=_0x314ed8(0x363)+_0x3fe9fe[_0x314ed8(0x32d)]+_0x314ed8(0x50d)+_0x3fe9fe[_0x314ed8(0x23a)]+'/resources';return(await this[_0x314ed8(0x511)][_0x314ed8(0x3c3)](_0x53209f,{'params':{'resourceId':JSON[_0x314ed8(0x3ab)](_0x3fe9fe['resourceIDs'])}}))[_0x314ed8(0x3d7)];}[_0x173fa3(0x224)](){const _0x12595e=_0x173fa3;throw new Error(_0x12595e(0x2da));}[_0x173fa3(0x1fb)](){const _0x3412db=_0x173fa3;throw new Error(_0x3412db(0x2da));}['saveChangeset'](){const _0x3476ab=_0x173fa3;throw new Error(_0x3476ab(0x2da));}[_0x173fa3(0x421)](){const _0x325519=_0x173fa3;throw new Error(_0x325519(0x2da));}[_0x173fa3(0x479)](){const _0xb35fab=_0x173fa3;throw new Error(_0xb35fab(0x2da));}};At=ha([Is(0x0,_0x13b27e),Is(0x1,_0x4f7ed2(_0x33691b))],At);var la=Object['defineProperty'],_a=Object['getOwnPropertyDescriptor'],ua=(_0x14bf50,_0x1fb0c0,_0x4e79c9,_0x252c98)=>{for(var _0x7d04d3=_0x252c98>0x1?void 0x0:_0x252c98?_a(_0x1fb0c0,_0x4e79c9):_0x1fb0c0,_0x217247=_0x14bf50['length']-0x1,_0x1d51a4;_0x217247>=0x0;_0x217247--)(_0x1d51a4=_0x14bf50[_0x217247])&&(_0x7d04d3=(_0x252c98?_0x1d51a4(_0x1fb0c0,_0x4e79c9,_0x7d04d3):_0x1d51a4(_0x7d04d3))||_0x7d04d3);return _0x252c98&&_0x7d04d3&&la(_0x1fb0c0,_0x4e79c9,_0x7d04d3),_0x7d04d3;},Ne=(_0x36e38f,_0x571c46)=>(_0x384c2c,_0x2f1b04)=>_0x571c46(_0x384c2c,_0x2f1b04,_0x36e38f);let Mt=class extends _0x2bc6cc{constructor(_0x438187,_0x2c3fd8,_0x2a5a39,_0x3be526,_0x4966e0){super(_0x438187,_0x2c3fd8,_0x2a5a39),this['_transformService']=_0x3be526,this['_logService']=_0x4966e0;}[_0x173fa3(0x201)](_0x33a395,_0x5f5870){const _0x1a0909=_0x173fa3,_0x537ca1=this[_0x1a0909(0x260)](_0x33a395);if(_0x537ca1)try{const _0x3a7253=this[_0x1a0909(0x26b)](_0x537ca1,_0x5f5870);this['_substituteUndoStack'](_0x33a395,_0x3a7253);}catch(_0x2c6dc7){this[_0x1a0909(0x2cd)]['error'](_0x1a0909(0x2d8),_0x2c6dc7),this[_0x1a0909(0x33d)](_0x33a395);}const _0x1886b3=this[_0x1a0909(0x43a)](_0x33a395);if(_0x1886b3)try{const _0x4d9fc2=this[_0x1a0909(0x26b)](_0x1886b3,_0x5f5870);this[_0x1a0909(0x3ac)](_0x33a395,_0x4d9fc2);}catch(_0x37f2a1){this[_0x1a0909(0x2cd)][_0x1a0909(0x3b8)](_0x37f2a1),this[_0x1a0909(0x4c8)](_0x33a395);}}[_0x173fa3(0x33d)](_0x593fdf){const _0x232a53=_0x173fa3,_0x2a71de=this[_0x232a53(0x260)](_0x593fdf);_0x2a71de&&(_0x2a71de[_0x232a53(0x223)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x55e3e3){const _0x2bcabe=_0x173fa3,_0x1c2f4a=this[_0x2bcabe(0x43a)](_0x55e3e3);_0x1c2f4a&&(_0x1c2f4a['length']=0x0,this[_0x2bcabe(0x34d)]());}[_0x173fa3(0x304)](_0x571f47,_0x57acca){this['_undoStacks']['set'](_0x571f47,_0x57acca),this['_updateStatus']();}['_substituteRedoStack'](_0x26041b,_0x533df6){const _0x67bc62=_0x173fa3;this[_0x67bc62(0x269)]['set'](_0x26041b,_0x533df6),this['_updateStatus']();}[_0x173fa3(0x26b)](_0x27177f,_0xae8e4a){const _0x3ce7eb=_0x173fa3,_0x5ad930=[];let _0x4de5e6=_0xae8e4a,_0x48b13c=_0xae8e4a;for(let _0x2055e1=_0x27177f[_0x3ce7eb(0x223)]-0x1;_0x2055e1>=0x0;_0x2055e1--){const {unitID:_0xcfc7cb,undoMutations:_0x376fa8,redoMutations:_0x363b5f}=_0x27177f[_0x2055e1],_0x24d480=this[_0x3ce7eb(0x387)][_0x3ce7eb(0x3a5)](_0x4de5e6,_0x376fa8),_0x4fbbaf=this[_0x3ce7eb(0x387)][_0x3ce7eb(0x3a5)](_0x48b13c,_0x363b5f);if(_0x5a59dd(_0x24d480)||_0x5a59dd(_0x4fbbaf)){this[_0x3ce7eb(0x2cd)][_0x3ce7eb(0x3b8)](_0x3ce7eb(0x2d8),'transformStack\x20failed!',_0x24d480,_0x4fbbaf);break;}_0x4de5e6=_0x24d480[_0x3ce7eb(0x33a)],_0x48b13c=_0x4fbbaf[_0x3ce7eb(0x33a)],_0x5ad930[_0x3ce7eb(0x1da)]({'unitID':_0xcfc7cb,'undoMutations':_0x24d480[_0x3ce7eb(0x197)],'redoMutations':_0x4fbbaf['m2Prime']});}return _0x5ad930[_0x3ce7eb(0x441)]();}};Mt=ua([Ne(0x0,_0x1e8ecc),Ne(0x1,_0xdec94a),Ne(0x2,_0x163dc9),Ne(0x3,_0x4a8bc3),Ne(0x4,_0x4329b1)],Mt);class da extends _0x13ba8e{constructor(){const _0x501f71=_0x173fa3;super(),l(this,_0x501f71(0x42f)),this['urlChange$']=_0x25f31e(window,_0x501f71(0x3d2))['pipe'](_0x223895(this['dispose$']),_0x5fb4e1(0x1),_0x5297dd(void 0x0));}[_0x173fa3(0x352)](_0x45e98b,_0x37ea9f,_0x26ce14=!0x1){const _0x88f494=_0x173fa3,_0x4c2c02=new URL(window[_0x88f494(0x35e)]['href']);_0x4c2c02[_0x88f494(0x4cb)]['set'](_0x45e98b,_0x37ea9f),_0x26ce14?window[_0x88f494(0x24a)]['replaceState']('','',_0x4c2c02[_0x88f494(0x358)]()):window[_0x88f494(0x24a)][_0x88f494(0x4cc)]('','',_0x4c2c02[_0x88f494(0x358)]());}[_0x173fa3(0x3c9)](_0x14e57a,_0x45b672=!0x1){const _0x48b527=_0x173fa3,_0x5db4f7=new URL(window[_0x48b527(0x35e)][_0x48b527(0x3f3)]);_0x5db4f7[_0x48b527(0x4cb)]['delete'](_0x14e57a),_0x45b672?window[_0x48b527(0x24a)][_0x48b527(0x290)]('','',_0x5db4f7[_0x48b527(0x358)]()):window['history']['pushState']('','',_0x5db4f7[_0x48b527(0x358)]());}[_0x173fa3(0x419)](_0x32e781){const _0x5a2452=_0x173fa3;var _0x5ec0ef;return(_0x5ec0ef=new URL(window['location'][_0x5a2452(0x3f3)])[_0x5a2452(0x4cb)][_0x5a2452(0x3c3)](_0x32e781))!=null?_0x5ec0ef:void 0x0;}}var ei=Object[_0x173fa3(0x309)],ma=Object['getOwnPropertyDescriptor'],fa=(_0x1eac1f,_0x1209aa,_0x425b64)=>_0x1209aa in _0x1eac1f?ei(_0x1eac1f,_0x1209aa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425b64}):_0x1eac1f[_0x1209aa]=_0x425b64,ga=(_0x441b0d,_0x85a50c,_0x5877f4,_0x3df6fb)=>{const _0x6d9291=_0x173fa3;for(var _0xf4c2e9=_0x3df6fb>0x1?void 0x0:_0x3df6fb?ma(_0x85a50c,_0x5877f4):_0x85a50c,_0x28304e=_0x441b0d[_0x6d9291(0x223)]-0x1,_0x45bdd5;_0x28304e>=0x0;_0x28304e--)(_0x45bdd5=_0x441b0d[_0x28304e])&&(_0xf4c2e9=(_0x3df6fb?_0x45bdd5(_0x85a50c,_0x5877f4,_0xf4c2e9):_0x45bdd5(_0xf4c2e9))||_0xf4c2e9);return _0x3df6fb&&_0xf4c2e9&&ei(_0x85a50c,_0x5877f4,_0xf4c2e9),_0xf4c2e9;},Fe=(_0x8015ec,_0x1b2daf)=>(_0x5d365a,_0x5f0954)=>_0x1b2daf(_0x5d365a,_0x5f0954,_0x8015ec),Sa=(_0x1ad15f,_0x3d84d4,_0xf7ff1a)=>fa(_0x1ad15f,_0x3d84d4+'',_0xf7ff1a);const pa='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Lt=class extends _0x3ddd75{constructor(_0x361d80=jn,_0x4ef8df,_0x284bf4,_0xeeabd0,_0x5aae9f){const _0x5d85bd=_0x173fa3;super(),this[_0x5d85bd(0x2ec)]=_0x361d80,this['_logService']=_0x4ef8df,this[_0x5d85bd(0x3f6)]=_0x284bf4,this[_0x5d85bd(0x4b7)]=_0xeeabd0,this[_0x5d85bd(0x205)]=_0x5aae9f;const {..._0x1e7988}=this['_config'];this[_0x5d85bd(0x205)][_0x5d85bd(0x4c9)](j,_0x1e7988);}[_0x173fa3(0x3d5)](){const _0x3c3b15=_0x173fa3;this[_0x3c3b15(0x450)](),_0x3b1166(this[_0x3c3b15(0x4b7)],[[Ce],[Ze],[st]]);}[_0x173fa3(0x22d)](){const _0x260ff1=_0x173fa3;_0x3b1166(this[_0x260ff1(0x4b7)],[[Qe]]);}['onRendered'](){const _0xcde075=_0x173fa3;this[_0xcde075(0x2d7)]();}[_0x173fa3(0x450)](){const _0x18ef3b=_0x173fa3;var _0x4af776,_0x37d841,_0x35a505,_0xe55bac;this[_0x18ef3b(0x4b7)][_0x18ef3b(0x432)](_0x57ccc3)&&this[_0x18ef3b(0x2cd)][_0x18ef3b(0x3b8)](_0x18ef3b(0x515),_0x18ef3b(0x4ec));let _0x516e96=[[_0x57ccc3,{'useClass':Mt}],[ue],[Yt],[_0x33691b],[Qs,{'useClass':da}],[_e],[D],[_0x424bbf],[qe],[Je],[Xe],[Wt],[et],[tt],[Fs],[st],[Vs,{'useClass':(_0x37d841=(_0x4af776=this[_0x18ef3b(0x2ec)])==null?void 0x0:_0x4af776['socketService'])!=null?_0x37d841:bt}],[_0x15deac,{'useClass':_0x13c3e0}],[_0x5dfd2d,{'useClass':At}],[_0x588b6d,{'useClass':Ut}],[_0x21630a,{'useClass':Nt}],[$e],[Ze],[Me],[Qe],[Ce]];(_0x35a505=this[_0x18ef3b(0x2ec)])!=null&&_0x35a505['enableSingleActiveInstanceLock']&&_0x516e96['push']([it,{'useClass':Sr}]),_0x516e96=_0x401096(_0x516e96,(_0xe55bac=this['_config'])==null?void 0x0:_0xe55bac[_0x18ef3b(0x36c)]),_0x516e96[_0x18ef3b(0x47e)](_0x12892f=>this[_0x18ef3b(0x4b7)][_0x18ef3b(0x2f7)](_0x12892f)),this['_initModules']();}[_0x173fa3(0x2d7)](){const _0x13d935=_0x173fa3;this[_0x13d935(0x193)](this[_0x13d935(0x3f6)][_0x13d935(0x49d)](_0x159e2d[_0x13d935(0x381)],[Pt])),this[_0x13d935(0x193)](this[_0x13d935(0x3f6)][_0x13d935(0x49d)](_0x159e2d[_0x13d935(0x4fa)],[yt]));}[_0x173fa3(0x4e6)](){const _0x4c6a9a=_0x173fa3;var _0x78e887,_0x2fcf78;this[_0x4c6a9a(0x4b7)]['get'](_0x33691b)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x2fe6df({'maxParallel':0x6})}),this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x3c3)](tt),(_0x78e887=this['_config'])!=null&&_0x78e887[_0x4c6a9a(0x4c3)]||this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x3c3)](D)[_0x4c6a9a(0x2ba)](),(_0x2fcf78=this[_0x4c6a9a(0x2ec)])!=null&&_0x2fcf78[_0x4c6a9a(0x37c)]&&this['_injector']['get'](et),this[_0x4c6a9a(0x4b7)]['get']($e),this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x432)](Me)&&this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x3c3)](Me);}};Sa(Lt,_0x173fa3(0x231),pa),Lt=ga([_0xf1d54(_0x3ee7ed),Fe(0x1,_0x4329b1),Fe(0x2,_0x2855ab),Fe(0x3,_0x4f7ed2(_0x3b0750)),Fe(0x4,_0x13b27e)],Lt);export{Fo as AUTHZ_URL_KEY,Ut as AuthzIoHttpService,An as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,$e as CollaborationController,ze as CollaborationEntity,Tt as CollaborationSession,ue as CollaborationSessionService,bt as CollaborationSocketService,w as CollaborationStatus,To as CollaborationStatusDisplay,Fs as CommentService,Ze as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Rt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,Hs as HEARTBEAT_TIMEOUT_KEY,Vs as ICollaborationSocketService,Qs as IURLService,Nt as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,D as LocalCacheService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,X as SessionStatus,no as SheetCollabCursorShape,Ot as SheetCollaborationEntity,At as SnapshotServerOverHTTPService,Lt as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};