@univerjs-pro/collaboration-client 0.4.1-experimental.20241024-0ebc6ee → 0.4.1-experimental.20241024-9717e6c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +16 -16
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x513b3b=_0x1736;(function(_0xb1c523,_0x39f4af){const _0x47f0af=_0x1736,_0x54daa3=_0xb1c523();while(!![]){try{const _0x390366=-parseInt(_0x47f0af(0x4b0))/0x1*(parseInt(_0x47f0af(0x39a))/0x2)+parseInt(_0x47f0af(0x315))/0x3*(-parseInt(_0x47f0af(0x25b))/0x4)+-parseInt(_0x47f0af(0x4ce))/0x5*(-parseInt(_0x47f0af(0x46d))/0x6)+parseInt(_0x47f0af(0x3c0))/0x7+parseInt(_0x47f0af(0x26f))/0x8*(parseInt(_0x47f0af(0x416))/0x9)+parseInt(_0x47f0af(0x354))/0xa*(-parseInt(_0x47f0af(0x426))/0xb)+parseInt(_0x47f0af(0x48b))/0xc;if(_0x390366===_0x39f4af)break;else _0x54daa3['push'](_0x54daa3['shift']());}catch(_0x2f142b){_0x54daa3['push'](_0x54daa3['shift']());}}}(_0x26a0,0x620db));var ri=Object[_0x513b3b(0x1a5)],oi=(_0x24d67e,_0x220128,_0x12e7c1)=>_0x220128 in _0x24d67e?ri(_0x24d67e,_0x220128,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12e7c1}):_0x24d67e[_0x220128]=_0x12e7c1,l=(_0x238b35,_0x447a02,_0x4e1b5b)=>oi(_0x238b35,typeof _0x447a02!=_0x513b3b(0x41f)?_0x447a02+'':_0x447a02,_0x4e1b5b);import{createIdentifier as _0x52354a,Inject as _0x53ed15,Disposable as _0x5f406a,DisposableCollection as _0x37f93f,toDisposable as _0x29caef,IConfigService as _0x17c84c,ILogService as _0x385fd2,UserManagerService as _0x445c19,UniverInstanceType as _0x743738,IUniverInstanceService as _0x4c005a,LocaleService as _0x1deb41,Optional as _0x507395,RxDisposable as _0x346899,Injector as _0x3165b6,Tools as _0x31cbda,ILocalStorageService as _0x476566,Rectangle as _0x3deb79,ICommandService as _0x8348c,JSONX as _0x494871,CommandType as _0x4e2bbf,IPermissionService as _0x5f5b14,IUndoRedoService as _0x3e29a6,sequenceExecute as _0x21da1f,debounce as _0x2cf035,COLORS as _0x3de4d2,ColorKit as _0x181f1a,ThemeService as _0xe610aa,fromEventSubject as _0x27e3fd,useDependency as _0x414f16,connectInjector as _0x11ef5a,Workbook as _0x15ef00,isInternalEditorID as _0x6693b5,LocalUndoRedoService as _0x57dce3,IContextService as _0x4af0dd,DependentOn as _0x38b61b,Plugin as _0x2c2bef,touchDependencies as _0x578643,IAuthzIoService as _0x388a42,mergeOverrideWithDependencies as _0x1432ec}from'@univerjs/core';import{Subject as _0x210aee,merge as _0x2f0d88,takeUntil as _0x3bacfd,BehaviorSubject as _0x1edb16,distinctUntilChanged as _0x504670,fromEvent as _0x2832fb,ReplaySubject as _0x3f0a22,take as _0x549142,map as _0x1744c3,shareReplay as _0x1fbf92,of as _0x207817,debounceTime as _0x28cdbb,filter as _0x2ffc6e,switchMap as _0x1317fa,combineLatest as _0x3ff449,concatMap as _0x40a3d7,mapTo as _0x2f02b3}from'rxjs';import{map as _0x50a0b8,take as _0xe6e64a,filter as _0x5bfb9e,delay as _0x3b7ba7,throttleTime as _0x10e087,takeUntil as _0x453931,switchMap as _0x31790b}from'rxjs/operators';import{MessageType as _0x1f1b3b,Tooltip as _0x1850eb}from'@univerjs/design';import{IBeforeCloseService as _0x2077b2,IMessageService as _0x4608dc,INotificationService as _0x1380e0,useObservable as _0x1e1202,BuiltInUIPart as _0x5d8ddb,IUIPartsService as _0x55a85e}from'@univerjs/ui';import{HTTPService as _0x444e74,WebSocketService as _0x40597f,MergeInterceptorFactory as _0x23483c,HTTPRequest as _0x367db5,IHTTPImplementation as _0x34d3c8,XHRHTTPImplementation as _0x1f0359,ThresholdInterceptorFactory as _0x6ca340}from'@univerjs/network';import{CollaborationEvent as _0x46c90b,parseChangesetToProtocol as _0x2297ac,ISnapshotServerService as _0x2c1fe9,isTransformMutationFailure as _0x24fa2f,isTransformMutationsWithChangesetSuccess as _0x16b713,ITransformService as _0x2e5ae8,RevisionService as _0x231b85,mapDocumentTypeToUniverType as _0x376ae6,isTransformChangesetsSuccess as _0x987caa,CompressMutationService as _0x227dad,parseProtocolChangeset as _0x80fd6,SnapshotService as _0x536a79,textEncoder as _0x4e9464,b64DecodeUnicode as _0x54fe81,isTransformMutationsWithChangesetFailure as _0x578d17,UniverCollaborationPlugin as _0x5498e7}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x28e1be}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x163018,DocStateChangeManagerService as _0x1896f0,NodePositionConvertToCursor as _0xe31355,isValidRectRange as _0x4350fa,NodePositionConvertToRectRange as _0x4151a8,TEXT_RANGE_LAYER_INDEX as _0x441006,SetDocZoomRatioOperation as _0x26e6cb}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x4c5ec4,SetSelectionsOperation as _0x246d31,InsertSheetMutation as _0x456f7d,EmptyMutation as _0x71deda,WorkbookEditablePermission as _0x40e1c4,RefRangeService as _0x4a88f5,EffectRefRangId as _0x21405f,handleIRemoveRow as _0x2275d3,handleIRemoveCol as _0x3ff3f3,handleMoveRange as _0x50ae63,handleInsertRow as _0x42fbc0,handleInsertRangeMoveRight as _0x44ef57,handleInsertRangeMoveDown as _0x3b4b4d,handleInsertCol as _0x53a592,handleDeleteRangeMoveUp as _0x3747a5,handleDeleteRangeMoveLeft as _0x12b3ee,runRefRangeMutations as _0x2d1b7f,SetWorksheetActivateCommand as _0xc656da}from'@univerjs/sheets';import{IRenderManagerService as _0xdb11a1,Shape as _0x284381,Rect as _0x57bf2c,getColor as _0x2e720d,RegularPolygon as _0x36c04f,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5264bf,Vector2 as _0x45e6c1}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2d5996,RichTextEditingMutation as _0x599177,SetTextSelectionsOperation as _0x2e8d24,DocSkeletonManagerService as _0x2a6fef}from'@univerjs/docs';import{ImageSourceType as _0x361782,ImageUploadStatusType as _0x4458b5,IImageIoService as _0xb13959}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x4af056,serializeRangeWithSheet as _0x4f040d}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x3dfcbb,VIEWPORT_KEY as _0x4a3083,getCoordByCell as _0x4c9650,getSheetObject as _0x9b1a87,SheetPermissionInitController as _0x48dac1}from'@univerjs/sheets-ui';import _0x30d3ac,{forwardRef as _0x33fc8d,useRef as _0x3dd20f,createElement as _0x3a56da,useCallback as _0x162ab0}from'react';import{IRemoteInstanceService as _0x5a5e3a}from'@univerjs/rpc';import{getAttachHeader as _0x5841f9}from'@univerjs-pro/license';const In='SNAPSHOT_SERVER_URL_KEY',En=_0x513b3b(0x3ea),Cn=_0x513b3b(0x1b5),Ha=_0x513b3b(0x17c),bn=0x7d0,Tn=_0x513b3b(0x410),Rn='ws://127.0.0.1:8000/universer-api/comb/connect',On=_0x513b3b(0x45d),Dn=0x7530,js=_0x513b3b(0x4d4),Hs=0x4e20,wn=0x4e20,Pn=_0x513b3b(0x2dd),yn=0x3,Un='LOCAL_CACHE_INTERVAL',Nn=0x3e8,Mn=_0x513b3b(0x2d8),An=_0x513b3b(0x2b0),Ln=_0x513b3b(0x367),$n=_0x513b3b(0x20d);var xs=(_0xfb062f=>(_0xfb062f[_0xfb062f[_0x513b3b(0x1e3)]=0x0]=_0x513b3b(0x1e3),_0xfb062f[_0xfb062f['OK']=0x1]='OK',_0xfb062f[_0xfb062f['INTERNAL_ERROR']=0x2]=_0x513b3b(0x3ff),_0xfb062f[_0xfb062f['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0xfb062f[_0xfb062f['NOT_FOUND']=0x4]=_0x513b3b(0x147),_0xfb062f[_0xfb062f[_0x513b3b(0x337)]=0x5]=_0x513b3b(0x337),_0xfb062f[_0xfb062f[_0x513b3b(0x157)]=0x6]=_0x513b3b(0x157),_0xfb062f[_0xfb062f[_0x513b3b(0x343)]=0x7]=_0x513b3b(0x343),_0xfb062f[_0xfb062f[_0x513b3b(0x40d)]=0x8]='TOO_MANY_REQUESTS',_0xfb062f[_0xfb062f['COMPLETION_FINISHED']=0x9]=_0x513b3b(0x432),_0xfb062f[_0xfb062f[_0x513b3b(0x394)]=0x1389]=_0x513b3b(0x394),_0xfb062f[_0xfb062f['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x513b3b(0x468),_0xfb062f[_0xfb062f[_0x513b3b(0x292)]=0x1772]=_0x513b3b(0x292),_0xfb062f[_0xfb062f[_0x513b3b(0x1d1)]=0x1773]=_0x513b3b(0x1d1),_0xfb062f[_0xfb062f[_0x513b3b(0x1ae)]=0x1b59]=_0x513b3b(0x1ae),_0xfb062f[_0xfb062f['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x513b3b(0x26b),_0xfb062f[_0xfb062f[_0x513b3b(0x174)]=0x1b5b]=_0x513b3b(0x174),_0xfb062f[_0xfb062f['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x513b3b(0x179),_0xfb062f[_0xfb062f[_0x513b3b(0x254)]=0x1b5d]=_0x513b3b(0x254),_0xfb062f[_0xfb062f[_0x513b3b(0x44d)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xfb062f[_0xfb062f[_0x513b3b(0x319)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xfb062f[_0xfb062f[_0x513b3b(0x19f)]=0x232a]=_0x513b3b(0x19f),_0xfb062f[_0xfb062f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x513b3b(0x47d),_0xfb062f[_0xfb062f[_0x513b3b(0x3ad)]=0x232c]=_0x513b3b(0x3ad),_0xfb062f[_0xfb062f['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0xfb062f[_0xfb062f[_0x513b3b(0x1df)]=0x2711]=_0x513b3b(0x1df),_0xfb062f[_0xfb062f[_0x513b3b(0x3d1)]=0x2712]=_0x513b3b(0x3d1),_0xfb062f[_0xfb062f['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x513b3b(0x1d5),_0xfb062f[_0xfb062f[_0x513b3b(0x470)]=0x2714]=_0x513b3b(0x470),_0xfb062f[_0xfb062f[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0xfb062f))(xs||{}),k=(_0x46a48f=>(_0x46a48f[_0x46a48f[_0x513b3b(0x2c3)]=0x0]='UNIVER_UNKNOWN',_0x46a48f[_0x46a48f[_0x513b3b(0x1a4)]=0x1]='UNIVER_DOC',_0x46a48f[_0x46a48f[_0x513b3b(0x3b6)]=0x2]='UNIVER_SHEET',_0x46a48f[_0x46a48f['UNIVER_SLIDE']=0x3]=_0x513b3b(0x278),_0x46a48f[_0x46a48f[_0x513b3b(0x1ac)]=0x4]=_0x513b3b(0x1ac),_0x46a48f[_0x46a48f[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x46a48f))(k||{}),I=(_0x47d883=>(_0x47d883[_0x47d883[_0x513b3b(0x3d2)]=0x0]='UNKNOWN_CMD',_0x47d883[_0x47d883['HELLO']=0x1]=_0x513b3b(0x27f),_0x47d883[_0x47d883[_0x513b3b(0x341)]=0x2]=_0x513b3b(0x341),_0x47d883[_0x47d883[_0x513b3b(0x2c5)]=0x3]='LEAVE',_0x47d883[_0x47d883[_0x513b3b(0x310)]=0x4]=_0x513b3b(0x310),_0x47d883[_0x47d883['HEARTBEAT']=0x5]=_0x513b3b(0x300),_0x47d883[_0x47d883[_0x513b3b(0x3c4)]=0x6]='RECV',_0x47d883[_0x47d883[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x47d883))(I||{}),Vt=(_0x279930=>(_0x279930[_0x279930[_0x513b3b(0x1bf)]=0x0]='UNKNOWN_CODE',_0x279930[_0x279930['OK']=0x1]='OK',_0x279930[_0x279930[_0x513b3b(0x4d2)]=0x2]=_0x513b3b(0x4d2),_0x279930[_0x279930[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x279930))(Vt||{}),ks=(_0x1a1aae=>(_0x1a1aae[_0x1a1aae['Undefined']=0x0]=_0x513b3b(0x241),_0x1a1aae[_0x1a1aae[_0x513b3b(0x326)]=0x1]=_0x513b3b(0x326),_0x1a1aae[_0x1a1aae['HttpExport']=0x2]=_0x513b3b(0x14d),_0x1a1aae[_0x1a1aae[_0x513b3b(0x1c3)]=0x3]='UnitEmbedded',_0x1a1aae[_0x1a1aae[_0x513b3b(0x159)]=0x4]=_0x513b3b(0x159),_0x1a1aae[_0x1a1aae[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x1a1aae))(ks||{});const $='collaboration-client.config',jn={};function Hn(_0x24731a){const _0x1dac29=_0x513b3b;var _0x2ef85a,_0x26a39f,_0x30c9ad,_0x476949,_0x49f86d;const _0x1553e7=_0x24731a['data'],_0x69348a=JSON['parse'](_0x1553e7);switch(_0x69348a[_0x1dac29(0x322)]){case I[_0x1dac29(0x300)]:case I[_0x1dac29(0x27f)]:{const _0x1d6529=_0x69348a[_0x1dac29(0x4b6)];return{..._0x69348a,'data':_0x1d6529,'cmd':_0x69348a['cmd']};}case I['JOIN']:{const _0x1b9160=_0x69348a[_0x1dac29(0x3a9)];return{..._0x69348a,'data':_0x1b9160,'cmd':_0x69348a['cmd']};}case I[_0x1dac29(0x3c4)]:{const _0x18dba7=_0x69348a[_0x1dac29(0x39f)];switch(_0x18dba7[_0x1dac29(0x2db)]){case _0x46c90b[_0x1dac29(0x4ba)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x2ef85a=_0x18dba7[_0x1dac29(0x3f0)])==null?void 0x0:_0x2ef85a['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x3cf)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x26a39f=_0x18dba7['csAckEvent'])==null?void 0x0:_0x26a39f['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x2c7)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x30c9ad=_0x18dba7[_0x1dac29(0x298)])==null?void 0x0:_0x30c9ad['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x377)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x476949=_0x18dba7['csRejEvent'])==null?void 0x0:_0x476949['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x435)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x49f86d=_0x18dba7[_0x1dac29(0x48e)])==null?void 0x0:_0x49f86d['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x4d3)]:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7['updateCursorEvent']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b['USERS_ENTER']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x366)]},'cmd':_0x69348a['cmd']};case _0x46c90b['USERS_LEAVE']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x45a)]},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x404)]:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7['liveShareNewHost']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x4aa)]:case _0x46c90b['LIVESHARE_OPERATION']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7['liveShareOperation']},'cmd':_0x69348a['cmd']};case _0x46c90b['LIVESHARE_TERMINATE']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x167)]},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x34b)]:return{..._0x69348a,'data':_0x18dba7,'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b['COMMENT_UPDATE']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x226)]},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b['UPDATE_PERMISSION_OBJ']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x455)]},'cmd':_0x69348a['cmd']};case _0x46c90b[_0x1dac29(0x4df)]:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x480)]},'cmd':_0x69348a[_0x1dac29(0x322)]};default:return _0x69348a;}}default:return _0x69348a;}}function xn(_0x5d7a4b){const _0x3cea16=_0x513b3b;switch(_0x5d7a4b[_0x3cea16(0x322)]){case I[_0x3cea16(0x300)]:case I[_0x3cea16(0x27f)]:return JSON[_0x3cea16(0x42b)]({'cmd':_0x5d7a4b['cmd'],'routeKey':_0x5d7a4b['routeKey']});case I['INGEST']:{let _0x971734;switch(_0x5d7a4b['data'][_0x3cea16(0x2db)]){case _0x46c90b[_0x3cea16(0x4d3)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x4d3)],'updateCursorEvent':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x2b5)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x2b5)],'leaveEvent':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x1a8)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x1a8)],'joinEvent':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x404)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x404)],'liveShareNewHost':_0x5d7a4b['data'][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x358)]:{_0x971734={'eventID':_0x46c90b['LIVESHARE_OPERATION'],'liveShareOperation':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x312)]:{_0x971734={'eventID':_0x46c90b['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x1db)]:{_0x971734={'eventID':_0x46c90b['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x5d7a4b['data'][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x4aa)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x4aa)]};break;}default:_0x971734={'eventID':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x2db)]};}return JSON[_0x3cea16(0x42b)]({'cmd':_0x5d7a4b[_0x3cea16(0x322)],'routeKey':_0x5d7a4b[_0x3cea16(0x365)],'collaMsg':_0x971734});}case I[_0x3cea16(0x341)]:return JSON['stringify']({'cmd':_0x5d7a4b['cmd'],'routeKey':_0x5d7a4b[_0x3cea16(0x365)],'joinReq':_0x5d7a4b['data']});case I[_0x3cea16(0x2c5)]:return JSON['stringify']({'cmd':_0x5d7a4b['cmd'],'routeKey':_0x5d7a4b[_0x3cea16(0x365)],'leaveReq':_0x5d7a4b[_0x3cea16(0x14f)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object[_0x513b3b(0x1a5)],Bn=Object[_0x513b3b(0x1be)],Vn=(_0x3f7193,_0xfc573a,_0xe14d27,_0x3d788a)=>{const _0x201731=_0x513b3b;for(var _0x22e25c=_0x3d788a>0x1?void 0x0:_0x3d788a?Bn(_0xfc573a,_0xe14d27):_0xfc573a,_0x504dc1=_0x3f7193[_0x201731(0x313)]-0x1,_0x2e4b8b;_0x504dc1>=0x0;_0x504dc1--)(_0x2e4b8b=_0x3f7193[_0x504dc1])&&(_0x22e25c=(_0x3d788a?_0x2e4b8b(_0xfc573a,_0xe14d27,_0x22e25c):_0x2e4b8b(_0x22e25c))||_0x22e25c);return _0x3d788a&&_0x22e25c&&kn(_0xfc573a,_0xe14d27,_0x22e25c),_0x22e25c;},Oe=(_0x29916e,_0x56d762)=>(_0x406882,_0x5ee466)=>_0x56d762(_0x406882,_0x5ee466,_0x29916e);const Bs=_0x52354a(_0x513b3b(0x411));function Fn(_0x24b2bd,_0x135c81,_0x347240){const _0x266587=_0x513b3b;return _0x24b2bd+'/'+_0x135c81+'/unit/'+_0x347240+_0x266587(0x19c);}let Ct=class extends _0x5f406a{constructor(_0x2fa2e9,_0x4dd819,_0x28b246,_0x1e5e66,_0x37598b){const _0x414d8c=_0x513b3b;super(),this[_0x414d8c(0x1d9)]=_0x2fa2e9,this[_0x414d8c(0x3d9)]=_0x4dd819,this[_0x414d8c(0x2cf)]=_0x28b246,this[_0x414d8c(0x4e0)]=_0x1e5e66,this[_0x414d8c(0x34c)]=_0x37598b;}[_0x513b3b(0x183)](_0xebea99){const _0x50a2c5=_0x513b3b,_0x491f9d=this['_ws'][_0x50a2c5(0x183)](_0xebea99);if(!_0x491f9d)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x31f7d2=new _0x37f93f(),_0x10edb9=new _0x210aee();_0x31f7d2[_0x50a2c5(0x2ab)](_0x491f9d[_0x50a2c5(0x4de)][_0x50a2c5(0x465)](_0x3ea02d=>_0x10edb9[_0x50a2c5(0x48d)](_0x3ea02d))),_0x31f7d2[_0x50a2c5(0x2ab)](_0x29caef(()=>_0x10edb9[_0x50a2c5(0x2ff)]()));const _0x57c7b3=new _0x210aee();_0x31f7d2[_0x50a2c5(0x2ab)](_0x491f9d[_0x50a2c5(0x43a)][_0x50a2c5(0x465)](_0x517219=>_0x57c7b3[_0x50a2c5(0x48d)](_0x517219))),_0x31f7d2[_0x50a2c5(0x2ab)](_0x29caef(()=>_0x57c7b3[_0x50a2c5(0x2ff)]()));const _0x2cb2d1=new _0x210aee();_0x31f7d2[_0x50a2c5(0x2ab)](_0x491f9d[_0x50a2c5(0x3bc)][_0x50a2c5(0x465)](_0x4d11d9=>{const _0x564a23=_0x50a2c5,_0x3243d7=Hn(_0x4d11d9);_0x2cb2d1[_0x564a23(0x48d)](_0x3243d7);})),_0x31f7d2[_0x50a2c5(0x2ab)](_0x29caef(()=>_0x2cb2d1[_0x50a2c5(0x2ff)]()));let _0x5bda8d;const _0x1009fc=()=>{const _0x4e015a=_0x50a2c5;_0x57c7b3[_0x4e015a(0x48d)](new Event(_0x4e015a(0x360))),_0x10edb9[_0x4e015a(0x48d)](new CloseEvent(_0x4e015a(0x360))),_0x5bda8d[_0x4e015a(0x2a2)]();};return _0x5bda8d={'memberID':'','close$':_0x10edb9[_0x50a2c5(0x2a4)](),'error$':_0x57c7b3['asObservable'](),'open$':_0x491f9d[_0x50a2c5(0x39b)],'message$':_0x2cb2d1[_0x50a2c5(0x2a4)](),'send':_0x328387=>{const _0x26212f=_0x50a2c5;if(_0x328387[_0x26212f(0x322)]===I[_0x26212f(0x310)]){if(_0x328387[_0x26212f(0x14f)][_0x26212f(0x2db)]===_0x46c90b[_0x26212f(0x29e)]){this['_submitChangeset'](_0x5bda8d,_0x328387[_0x26212f(0x14f)])[_0x26212f(0x2fb)](_0x78af00=>{const _0x25cb2f=_0x26212f;this['_logService'][_0x25cb2f(0x25c)](_0x78af00),_0x1009fc();});return;}if(_0x328387['data'][_0x26212f(0x2db)]===_0x46c90b[_0x26212f(0x1c6)]){const _0x346708=_0x328387[_0x26212f(0x14f)];this[_0x26212f(0x262)](_0x346708)['then'](_0x1e0b42=>{const _0x12cae9=_0x26212f;_0x2cb2d1[_0x12cae9(0x48d)]({'cmd':I[_0x12cae9(0x3c4)],'code':Vt['OK'],'routeKey':_0x346708['data'][_0x12cae9(0x44f)],'routeType':'','data':{'eventID':_0x46c90b[_0x12cae9(0x196)],'data':{'changesets':_0x1e0b42}}});})[_0x26212f(0x2fb)](_0x2d21ec=>{const _0x32d334=_0x26212f;this[_0x32d334(0x4e0)][_0x32d334(0x25c)](_0x2d21ec),_0x1009fc();});return;}}_0x491f9d[_0x26212f(0x415)](xn(_0x328387));},'close':()=>{const _0x13f8ec=_0x50a2c5;_0x491f9d[_0x13f8ec(0x2a2)](),_0x31f7d2[_0x13f8ec(0x3ce)]();}},_0x5bda8d;}async[_0x513b3b(0x22a)](_0x447006,_0x452634){const _0x5e0a72=_0x513b3b;var _0x2ce746,_0x5bbfbe;const {unitType:_0x53ee3f,unitID:_0x452b69,changeset:_0x424dd7}=_0x452634[_0x5e0a72(0x14f)],_0x29104d={'unitID':_0x452b69,'memberID':_0x447006[_0x5e0a72(0x1fc)],'type':_0x53ee3f,'changeset':_0x2297ac(_0x424dd7)},_0x54721c=this[_0x5e0a72(0x2cf)][_0x5e0a72(0x4a0)](Mn),_0x59608f=this[_0x5e0a72(0x2cf)][_0x5e0a72(0x4a0)]($),_0xa68faf=Fn((_0x5bbfbe=(_0x2ce746=_0x59608f==null?void 0x0:_0x59608f[_0x5e0a72(0x14b)])!=null?_0x2ce746:_0x54721c)!=null?_0x5bbfbe:An,_0x53ee3f,_0x452b69);try{await this[_0x5e0a72(0x1d9)][_0x5e0a72(0x34e)](_0xa68faf,{'body':_0x29104d});}catch(_0x354ee0){throw this['_logService'][_0x5e0a72(0x25c)](_0x5e0a72(0x477),_0x5e0a72(0x3fb)),_0x354ee0;}}async[_0x513b3b(0x262)](_0x5b179f){const _0x4a5e1d=_0x513b3b,{unitID:_0x3bc51b,from:_0x4ac483,to:_0x596a02,unitType:_0xc33b81}=_0x5b179f['data'];return(await this[_0x4a5e1d(0x34c)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3bc51b,'type':_0xc33b81,'from':_0x4ac483,'to':_0x596a02}))[_0x4a5e1d(0x1e6)];}};Ct=Vn([Oe(0x0,_0x53ed15(_0x444e74)),Oe(0x1,_0x53ed15(_0x40597f)),Oe(0x2,_0x17c84c),Oe(0x3,_0x385fd2),Oe(0x4,_0x2c1fe9)],Ct);const Wn='collaboration_new_changeset';function Gn(_0x5e59c6){const _0x4d8882=_0x513b3b;return JSON[_0x4d8882(0x42b)](_0x5e59c6)[_0x4d8882(0x313)];}class Vs{constructor(){const _0x52a407=_0x513b3b;l(this,_0x52a407(0x379),new _0x210aee()),l(this,_0x52a407(0x49e),this[_0x52a407(0x379)][_0x52a407(0x2a4)]());}[_0x513b3b(0x1cf)](_0xe6f13b){const _0x1ccd30=_0x513b3b;this['_commentUpdate$'][_0x1ccd30(0x48d)](_0xe6f13b);}}var Yn=Object[_0x513b3b(0x1a5)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x499730,_0x496103,_0x2f4b03,_0x2f67a1)=>{const _0x2b9c81=_0x513b3b;for(var _0x187ed5=_0x2f67a1>0x1?void 0x0:_0x2f67a1?Kn(_0x496103,_0x2f4b03):_0x496103,_0x95ee6f=_0x499730[_0x2b9c81(0x313)]-0x1,_0x4f0beb;_0x95ee6f>=0x0;_0x95ee6f--)(_0x4f0beb=_0x499730[_0x95ee6f])&&(_0x187ed5=(_0x2f67a1?_0x4f0beb(_0x496103,_0x2f4b03,_0x187ed5):_0x4f0beb(_0x187ed5))||_0x187ed5);return _0x2f67a1&&_0x187ed5&&Yn(_0x496103,_0x2f4b03,_0x187ed5),_0x187ed5;},as=(_0x1bdcf9,_0x18f766)=>(_0x1712e2,_0x313b9f)=>_0x18f766(_0x1712e2,_0x313b9f,_0x1bdcf9);let ce=class extends _0x5f406a{constructor(_0x1b79c6,_0x2f855f){const _0x4793f6=_0x513b3b;super(),l(this,_0x4793f6(0x266),new Map()),(this['_univerInstanceService']=_0x1b79c6,this[_0x4793f6(0x378)]=_0x2f855f,this[_0x4793f6(0x233)](_0x29caef(_0x2f0d88(this[_0x4793f6(0x4c4)][_0x4793f6(0x4d9)](_0x743738[_0x4793f6(0x3b6)])[_0x4793f6(0x33b)](_0x50a0b8(_0x140ea4=>_0x140ea4[_0x4793f6(0x389)]())),this[_0x4793f6(0x4c4)][_0x4793f6(0x4d9)](_0x743738['UNIVER_DOC'])[_0x4793f6(0x33b)](_0x50a0b8(_0x1ccad6=>_0x1ccad6[_0x4793f6(0x389)]())),this[_0x4793f6(0x4c4)][_0x4793f6(0x4d9)](_0x743738[_0x4793f6(0x278)])['pipe'](_0x50a0b8(_0x2b6b26=>_0x2b6b26[_0x4793f6(0x389)]())))[_0x4793f6(0x465)](_0x3274e9=>this[_0x4793f6(0x407)](_0x3274e9)))));}[_0x513b3b(0x332)](_0x6220aa){const _0x573344=_0x513b3b;this[_0x573344(0x378)][_0x573344(0x332)](_0x6220aa);}[_0x513b3b(0x3fe)](){return this['_userManagerService']['getCurrentUser']();}['updateMember'](_0x22b8bd,_0xdceb17){const _0x79a9a0=_0x513b3b;let _0x95ecf=this[_0x79a9a0(0x266)]['get'](_0x22b8bd);_0x95ecf||(_0x95ecf=new qn(),this[_0x79a9a0(0x266)][_0x79a9a0(0x3ca)](_0x22b8bd,_0x95ecf)),_0x95ecf[_0x79a9a0(0x3ab)](_0xdceb17);}[_0x513b3b(0x3f4)](_0xfa0c47,_0x14f0c3){const _0x32bec6=_0x513b3b,_0x1ad928=this[_0x32bec6(0x266)]['get'](_0xfa0c47);_0x1ad928&&_0x1ad928[_0x32bec6(0x3f4)](_0x14f0c3);}[_0x513b3b(0x224)](_0x55c1d2){const _0x426688=_0x513b3b;return this[_0x426688(0x266)][_0x426688(0x49f)](_0x55c1d2);}['getMember'](_0x586825,_0x864cd4){const _0x4993e2=_0x513b3b,_0x1542e0=this[_0x4993e2(0x266)][_0x4993e2(0x49f)](_0x586825);if(_0x1542e0)return _0x1542e0[_0x4993e2(0x3e0)](_0x864cd4);}[_0x513b3b(0x407)](_0x3c39c8){const _0x1098fa=_0x513b3b,_0x394a53=this[_0x1098fa(0x266)][_0x1098fa(0x49f)](_0x3c39c8);_0x394a53&&(_0x394a53[_0x1098fa(0x3ce)](),this[_0x1098fa(0x266)][_0x1098fa(0x248)](_0x3c39c8));}[_0x513b3b(0x3ce)](){const _0x1fd239=_0x513b3b;this[_0x1fd239(0x266)][_0x1fd239(0x301)](_0x347592=>_0x347592[_0x1fd239(0x3ce)]()),this[_0x1fd239(0x266)][_0x1fd239(0x4be)]();}};ce=Xn([as(0x0,_0x4c005a),as(0x1,_0x53ed15(_0x445c19))],ce);class qn extends _0x5f406a{constructor(){const _0x33cfe9=_0x513b3b;super(...arguments),l(this,_0x33cfe9(0x212),new Map());}['dispose'](){const _0x2143d2=_0x513b3b;this[_0x2143d2(0x212)]['clear']();}[_0x513b3b(0x3ab)](_0x4046bc){const _0x1b61d2=_0x513b3b;this[_0x1b61d2(0x212)][_0x1b61d2(0x3ca)](_0x4046bc['memberID'],_0x4046bc);}[_0x513b3b(0x3f4)](_0x1996dd){const _0x14fa94=_0x513b3b;this['_members'][_0x14fa94(0x248)](_0x1996dd);}[_0x513b3b(0x3e0)](_0x243a38){const _0x4b8552=_0x513b3b;return this['_members'][_0x4b8552(0x49f)](_0x243a38);}}var Jn=Object[_0x513b3b(0x1a5)],zn=Object[_0x513b3b(0x1be)],Zn=(_0x36d54e,_0x177457,_0x1ced34,_0x2bccad)=>{for(var _0x11cc9e=_0x2bccad>0x1?void 0x0:_0x2bccad?zn(_0x177457,_0x1ced34):_0x177457,_0x429923=_0x36d54e['length']-0x1,_0x47fe67;_0x429923>=0x0;_0x429923--)(_0x47fe67=_0x36d54e[_0x429923])&&(_0x11cc9e=(_0x2bccad?_0x47fe67(_0x177457,_0x1ced34,_0x11cc9e):_0x47fe67(_0x11cc9e))||_0x11cc9e);return _0x2bccad&&_0x11cc9e&&Jn(_0x177457,_0x1ced34,_0x11cc9e),_0x11cc9e;},J=(_0x2144d7,_0x5170e3)=>(_0x75c862,_0xde52f8)=>_0x5170e3(_0x75c862,_0xde52f8,_0x2144d7),Y=(_0x1120d2=>(_0x1120d2[_0x1120d2[_0x513b3b(0x17e)]=0x0]=_0x513b3b(0x17e),_0x1120d2[_0x1120d2[_0x513b3b(0x320)]=0x1]=_0x513b3b(0x320),_0x1120d2[_0x1120d2[_0x513b3b(0x44c)]=0x2]='OFFLINE',_0x1120d2[_0x1120d2[_0x513b3b(0x1f7)]=0x3]='ONLINE',_0x1120d2))(Y||{});let bt=class extends _0x346899{constructor(_0x5f549b,_0x56f09e,_0x45483e,_0x2cb26a,_0x39096b,_0x4d0c34,_0x30ad4d,_0x28ce6e,_0x38d740,_0x3c482e){const _0x4039c6=_0x513b3b;super(),l(this,_0x4039c6(0x2eb),new _0x1edb16(0x0)),l(this,_0x4039c6(0x3a6),this['_sessionStatus$'][_0x4039c6(0x2a4)]()),l(this,_0x4039c6(0x18c),new _0x210aee()),l(this,_0x4039c6(0x47b),this['_event$']['asObservable']()),l(this,'_socket'),l(this,_0x4039c6(0x250)),l(this,'_collaborationTimeoutTimer'),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x4039c6(0x1c0),null),(this[_0x4039c6(0x264)]=_0x5f549b,this[_0x4039c6(0x4e0)]=_0x45483e,this[_0x4039c6(0x336)]=_0x2cb26a,this[_0x4039c6(0x26e)]=_0x39096b,this[_0x4039c6(0x2cf)]=_0x4d0c34,this[_0x4039c6(0x28c)]=_0x30ad4d,this[_0x4039c6(0x21c)]=_0x28ce6e,this[_0x4039c6(0x452)]=_0x38d740,this['_telemetryService']=_0x3c482e,this[_0x4039c6(0x1a0)]=!!this[_0x4039c6(0x231)],_0x56f09e['pipe'](_0x3bacfd(this[_0x4039c6(0x2d2)]))[_0x4039c6(0x465)](_0x39711f=>{const _0x3496fc=_0x4039c6;var _0x2c99d6;typeof _0x39711f>'u'||(this[_0x3496fc(0x1dd)]=_0x39711f,_0x39711f?(this[_0x3496fc(0x180)](_0x39711f),this['_socketMessageSubscription']=_0x39711f['message$'][_0x3496fc(0x465)](_0x376603=>{const _0x1c0b89=_0x3496fc;_0x376603[_0x1c0b89(0x365)]===this[_0x1c0b89(0x264)]&&this[_0x1c0b89(0x240)](_0x376603);})):(this[_0x3496fc(0x4c2)](),this[_0x3496fc(0x2eb)][_0x3496fc(0x48d)](0x2),(_0x2c99d6=this[_0x3496fc(0x250)])==null||_0x2c99d6[_0x3496fc(0x48a)](),this[_0x3496fc(0x250)]=null));}),this['disposeWithMe'](this[_0x4039c6(0x336)][_0x4039c6(0x4ae)](()=>{const _0x5d40d4=_0x4039c6;var _0x16ed8f;(_0x16ed8f=this['_socket'])==null||_0x16ed8f['send']({'cmd':I[_0x5d40d4(0x2c5)],'data':{'roomID':this['_unitID']}});})));}get[_0x513b3b(0x4e1)](){const _0x3930f0=_0x513b3b;return this[_0x3930f0(0x2eb)]['getValue']();}[_0x513b3b(0x45c)](){const _0x5d4527=_0x513b3b;var _0x1de65d,_0x243a62;return(_0x243a62=(_0x1de65d=this[_0x5d4527(0x1dd)])==null?void 0x0:_0x1de65d[_0x5d4527(0x1fc)])!=null?_0x243a62:null;}[_0x513b3b(0x3ce)](){const _0x49e871=_0x513b3b;super['dispose'](),this[_0x49e871(0x2d2)][_0x49e871(0x48d)](),this['dispose$'][_0x49e871(0x2ff)]();}[_0x513b3b(0x2a2)](){const _0x5f16a4=_0x513b3b;var _0x15f34,_0x4569a0;this[_0x5f16a4(0x4c2)](),(_0x15f34=this[_0x5f16a4(0x1dd)])==null||_0x15f34[_0x5f16a4(0x415)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x5f16a4(0x264)]}}),(_0x4569a0=this[_0x5f16a4(0x1dd)])==null||_0x4569a0[_0x5f16a4(0x2a2)](),this[_0x5f16a4(0x18c)][_0x5f16a4(0x2ff)](),this['_sessionStatus$']['complete'](),this[_0x5f16a4(0x3ce)]();}[_0x513b3b(0x240)](_0x5630fc){const _0x20ef6e=_0x513b3b;_0x5630fc[_0x20ef6e(0x322)]===I['JOIN']?this['_onJoinRoomEvent'](_0x5630fc):_0x5630fc[_0x20ef6e(0x322)]===I[_0x20ef6e(0x3c4)]&&this['_onRecvEvent'](_0x5630fc);}[_0x513b3b(0x180)](_0x437ae6){const _0x514eff=_0x513b3b;this['_sessionStatus$']['next'](0x1),_0x437ae6['send']({'cmd':I[_0x514eff(0x341)],'routeKey':this[_0x514eff(0x264)],'routeType':'','data':{'rooms':[{'roomID':this[_0x514eff(0x264)]}]}});}[_0x513b3b(0x351)](_0x1d7c77){const _0x2d47a4=_0x513b3b;var _0x19c549;if(_0x1d7c77[_0x2d47a4(0x1bc)]===Vt['FAIL']){this[_0x2d47a4(0x26e)][_0x2d47a4(0x32b)]({'type':_0x1f1b3b[_0x2d47a4(0x442)],'content':this[_0x2d47a4(0x28c)]['t'](_0x2d47a4(0x2a9))}),this['_sessionStatus$'][_0x2d47a4(0x48d)](0x2);return;}this[_0x2d47a4(0x2eb)][_0x2d47a4(0x48d)](0x3);const _0xc027f4=(_0x19c549=_0x1d7c77[_0x2d47a4(0x14f)][_0x2d47a4(0x36c)][this['_unitID']])==null?void 0x0:_0x19c549[_0x2d47a4(0x249)];_0xc027f4&&_0xc027f4[_0x2d47a4(0x301)](_0x2a770e=>this[_0x2d47a4(0x21c)]['updateMember'](this[_0x2d47a4(0x264)],_0x2a770e));}[_0x513b3b(0x342)](_0x37f726){const _0x44dc9f=_0x513b3b;try{const _0x463aa5=_0x37f726[_0x44dc9f(0x14f)];switch(_0x463aa5[_0x44dc9f(0x2db)]){case _0x46c90b[_0x44dc9f(0x1a8)]:this[_0x44dc9f(0x403)](_0x463aa5),this[_0x44dc9f(0x18c)][_0x44dc9f(0x48d)](_0x463aa5);break;case _0x46c90b['USERS_LEAVE']:this[_0x44dc9f(0x433)](_0x463aa5),this[_0x44dc9f(0x18c)]['next'](_0x463aa5);break;case _0x46c90b['CHANGESET_ACK']:case _0x46c90b[_0x44dc9f(0x435)]:this[_0x44dc9f(0x2ae)](),this[_0x44dc9f(0x158)](),this[_0x44dc9f(0x18c)][_0x44dc9f(0x48d)](_0x463aa5);break;case _0x46c90b[_0x44dc9f(0x34b)]:this[_0x44dc9f(0x4e0)]['error'](_0x44dc9f(0x161)+JSON[_0x44dc9f(0x42b)](_0x463aa5)),this[_0x44dc9f(0x18c)]['next'](_0x463aa5);break;case _0x46c90b[_0x44dc9f(0x1f8)]:this['_commentService'][_0x44dc9f(0x1cf)](_0x463aa5[_0x44dc9f(0x14f)]),this[_0x44dc9f(0x18c)][_0x44dc9f(0x48d)](_0x463aa5);break;default:this[_0x44dc9f(0x18c)]['next'](_0x463aa5);}}catch(_0x421722){this[_0x44dc9f(0x4e0)][_0x44dc9f(0x25c)](_0x421722,_0x37f726);}}[_0x513b3b(0x403)](_0x519b0e){const _0x103ff0=_0x513b3b;this[_0x103ff0(0x21c)][_0x103ff0(0x3ab)](this[_0x103ff0(0x264)],_0x519b0e[_0x103ff0(0x14f)]);}[_0x513b3b(0x433)](_0x392caf){const _0x52460c=_0x513b3b;this[_0x52460c(0x21c)][_0x52460c(0x3f4)](this['_unitID'],_0x392caf[_0x52460c(0x14f)]['memberID']);}async[_0x513b3b(0x415)](_0x136977,_0x4c3988){const _0x176db6=_0x513b3b;if(this['sessionStatus']!==0x3||!this[_0x176db6(0x1dd)])throw new Error(_0x176db6(0x2b3));try{_0x136977[_0x176db6(0x2db)]===_0x46c90b[_0x176db6(0x29e)]&&(this[_0x176db6(0x3c3)](),this[_0x176db6(0x463)](_0x136977)),this['_socket'][_0x176db6(0x415)]({'cmd':I[_0x176db6(0x310)],'routeKey':_0x4c3988,'routeType':'','data':_0x136977});}catch(_0x825992){this[_0x176db6(0x4e0)][_0x176db6(0x25c)](_0x825992);}}['_scheduleCollaborationTimeoutTimer'](){const _0x21dc61=_0x513b3b;var _0x20b35d;this[_0x21dc61(0x235)]=window[_0x21dc61(0x3dc)](()=>{const _0x2a37cc=_0x21dc61;this['_collaborationTimeoutTimer']=null,this[_0x2a37cc(0x26e)][_0x2a37cc(0x32b)]({'type':_0x1f1b3b[_0x2a37cc(0x1ea)],'content':this[_0x2a37cc(0x28c)]['t'](_0x2a37cc(0x363))});},(_0x20b35d=this['_configService'][_0x21dc61(0x4a0)](js))!=null?_0x20b35d:Hs);}[_0x513b3b(0x158)](){const _0x56b9da=_0x513b3b;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x56b9da(0x235)]),this[_0x56b9da(0x235)]=null);}[_0x513b3b(0x463)](_0x6f1581){const _0x40365b=_0x513b3b;if(!this['_shouldReportTelemetry'])return;const {data:_0x48e5ac}=_0x6f1581,{unitID:_0x4461c1,changeset:_0x2b6c1f}=_0x48e5ac,{mutations:_0x519b8e,type:_0x33ec9d}=_0x2b6c1f;this[_0x40365b(0x1c0)]={'unitId':_0x4461c1,'type':_0x33ec9d,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x519b8e)};}[_0x513b3b(0x2ae)](){const _0x1f31d4=_0x513b3b;if(this[_0x1f31d4(0x1a0)]){if(!this[_0x1f31d4(0x1c0)]){this['_logService']['error'](_0x1f31d4(0x477),_0x1f31d4(0x42e));return;}this[_0x1f31d4(0x1c0)][_0x1f31d4(0x43c)]=performance[_0x1f31d4(0x16d)](),this[_0x1f31d4(0x1c0)][_0x1f31d4(0x327)]=this[_0x1f31d4(0x1c0)][_0x1f31d4(0x43c)]-this[_0x1f31d4(0x1c0)][_0x1f31d4(0x2f9)],this[_0x1f31d4(0x231)][_0x1f31d4(0x3f8)](Wn,this[_0x1f31d4(0x1c0)]),this[_0x1f31d4(0x1c0)]=null;}}[_0x513b3b(0x4c2)](){const _0x2e8049=_0x513b3b;this[_0x2e8049(0x1c0)]=null;}};bt=Zn([J(0x2,_0x385fd2),J(0x3,_0x2077b2),J(0x4,_0x4608dc),J(0x5,_0x17c84c),J(0x6,_0x53ed15(_0x1deb41)),J(0x7,_0x53ed15(ce)),J(0x8,_0x53ed15(Vs)),J(0x9,_0x507395(_0x28e1be))],bt);var Qn=Object[_0x513b3b(0x1a5)],er=Object['getOwnPropertyDescriptor'],tr=(_0x554a1a,_0x589910,_0x3a7157,_0xd66a25)=>{const _0x37e55b=_0x513b3b;for(var _0x45e61a=_0xd66a25>0x1?void 0x0:_0xd66a25?er(_0x589910,_0x3a7157):_0x589910,_0xae8322=_0x554a1a[_0x37e55b(0x313)]-0x1,_0x53e76d;_0xae8322>=0x0;_0xae8322--)(_0x53e76d=_0x554a1a[_0xae8322])&&(_0x45e61a=(_0xd66a25?_0x53e76d(_0x589910,_0x3a7157,_0x45e61a):_0x53e76d(_0x45e61a))||_0x45e61a);return _0xd66a25&&_0x45e61a&&Qn(_0x589910,_0x3a7157,_0x45e61a),_0x45e61a;},me=(_0x54441d,_0x4672fb)=>(_0x50ba61,_0x244f34)=>_0x4672fb(_0x50ba61,_0x244f34,_0x54441d);let he=class extends _0x5f406a{constructor(_0x37bc6f,_0x4006b2,_0x129dcf,_0x2d8717,_0xd0551,_0x1ba224){const _0x2011a6=_0x513b3b;super(),l(this,_0x2011a6(0x447),new _0x1edb16(void 0x0)),l(this,_0x2011a6(0x1c5),this['_socket$'][_0x2011a6(0x2a4)]()),l(this,_0x2011a6(0x46c),null),l(this,_0x2011a6(0x24f),new Map()),l(this,'_status$',new _0x1edb16(Y['IDLE'])),l(this,_0x2011a6(0x258),this[_0x2011a6(0x1de)][_0x2011a6(0x2a4)]()),l(this,_0x2011a6(0x457),!0x1),l(this,'_retryConnectingTimer'),l(this,_0x2011a6(0x2d5),0x0),l(this,_0x2011a6(0x27c)),l(this,_0x2011a6(0x481)),(this[_0x2011a6(0x31e)]=_0x37bc6f,this[_0x2011a6(0x28c)]=_0x4006b2,this['_messageService']=_0x129dcf,this['_logService']=_0x2d8717,this[_0x2011a6(0x2cf)]=_0xd0551,this[_0x2011a6(0x1f2)]=_0x1ba224,this['_initEventListeners']());}get[_0x513b3b(0x1dd)](){const _0x3a20e4=_0x513b3b;return this[_0x3a20e4(0x447)][_0x3a20e4(0x3e2)]();}[_0x513b3b(0x353)](){const _0x32deef=_0x513b3b;this['_listenToOfflineEvent'](),this[_0x32deef(0x276)]();}['dispose'](){const _0x333efd=_0x513b3b;super['dispose'](),this[_0x333efd(0x24f)][_0x333efd(0x301)](_0x151c2b=>_0x151c2b[_0x333efd(0x3ce)]()),this[_0x333efd(0x24f)]['clear'](),this[_0x333efd(0x1de)][_0x333efd(0x2ff)]();}async[_0x513b3b(0x23e)](_0x4a68fc){const _0x1f494a=_0x513b3b;if(this['_sessions'][_0x1f494a(0x243)](_0x4a68fc))return this[_0x1f494a(0x24f)]['get'](_0x4a68fc);this[_0x1f494a(0x478)]();const _0xbebaff=this[_0x1f494a(0x31e)][_0x1f494a(0x269)](bt,_0x4a68fc,this['_socket$'][_0x1f494a(0x2a4)]());return this['_sessions'][_0x1f494a(0x3ca)](_0x4a68fc,_0xbebaff),_0xbebaff;}[_0x513b3b(0x36d)](_0x428e4e){const _0x2bb2e2=_0x513b3b;var _0x515821;const _0xbfb4b4=this['_sessions'][_0x2bb2e2(0x49f)](_0x428e4e);_0xbfb4b4&&(this[_0x2bb2e2(0x24f)][_0x2bb2e2(0x248)](_0x428e4e),_0xbfb4b4[_0x2bb2e2(0x2a2)]()),this[_0x2bb2e2(0x24f)]['size']||(_0x515821=this[_0x2bb2e2(0x1dd)])==null||_0x515821[_0x2bb2e2(0x2a2)]();}[_0x513b3b(0x43b)](){const _0x53740c=_0x513b3b;this[_0x53740c(0x2d5)]=0x0,this[_0x53740c(0x388)]!=null&&(clearTimeout(this[_0x53740c(0x388)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}[_0x513b3b(0x2e1)](){const _0x4712a8=_0x513b3b;var _0x42be1c,_0x120eb6;const _0x53c022=this['_configService'][_0x4712a8(0x4a0)](Tn),_0x36e8ef=this[_0x4712a8(0x2cf)][_0x4712a8(0x4a0)]($),_0x53b3a9=(_0x120eb6=(_0x42be1c=_0x36e8ef==null?void 0x0:_0x36e8ef['collabWebSocketUrl'])!=null?_0x42be1c:_0x53c022)!=null?_0x120eb6:Rn,_0x135c3b=this[_0x4712a8(0x1f2)]['createSocket'](_0x53b3a9);return this[_0x4712a8(0x46c)]=_0x135c3b,_0x135c3b;}[_0x513b3b(0x478)](){const _0x1283f9=_0x513b3b;var _0x7a4315,_0x565e72;try{const _0xdf3b49=(_0x565e72=(_0x7a4315=this[_0x1283f9(0x1dd)])!=null?_0x7a4315:this[_0x1283f9(0x46c)])!=null?_0x565e72:this[_0x1283f9(0x2e1)]();if(_0xdf3b49){const _0x437997=_0xdf3b49[_0x1283f9(0x415)];_0xdf3b49['send']=_0x7da819=>(this[_0x1283f9(0x1f3)](),_0x437997['apply'](_0xdf3b49,[_0x7da819])),_0xdf3b49['message$'][_0x1283f9(0x465)](_0x2fd170=>this['_onMessage'](_0xdf3b49,_0x2fd170)),_0xdf3b49[_0x1283f9(0x43a)]['pipe'](_0xe6e64a(0x1))[_0x1283f9(0x465)](_0x152a25=>this[_0x1283f9(0x4e0)]['error'](_0x1283f9(0x270),_0x152a25)),_0xdf3b49['open$'][_0x1283f9(0x33b)](_0xe6e64a(0x1))['subscribe'](()=>{const _0x5d966e=_0x1283f9;this[_0x5d966e(0x28b)](_0xdf3b49);}),_0xdf3b49[_0x1283f9(0x4de)]['pipe'](_0xe6e64a(0x1))[_0x1283f9(0x465)](_0x590e91=>{const _0x3bbd81=_0x1283f9;this['_logService']['debug'](_0x3bbd81(0x4c6),_0x3bbd81(0x32d),_0x590e91),this[_0x3bbd81(0x487)]();});}}catch(_0x2aabe9){this['_logService']['error'](_0x2aabe9),this['_onConnectionFailed']();}}[_0x513b3b(0x28b)](_0x110461){const _0x26f9b5=_0x513b3b;this[_0x26f9b5(0x4e0)][_0x26f9b5(0x2bc)](_0x26f9b5(0x4c6),_0x26f9b5(0x2fd)),_0x110461[_0x26f9b5(0x415)]({'cmd':I[_0x26f9b5(0x27f)]}),this[_0x26f9b5(0x1f3)]();}[_0x513b3b(0x41a)](){const _0x30ddf4=_0x513b3b;window[_0x30ddf4(0x2a6)](_0x30ddf4(0x1da),()=>this[_0x30ddf4(0x49b)]());}['_onOffline'](){const _0x291722=_0x513b3b;this[_0x291722(0x457)]=!0x1,this[_0x291722(0x46c)]=null,this[_0x291722(0x1de)][_0x291722(0x48d)](Y[_0x291722(0x44c)]),this[_0x291722(0x447)][_0x291722(0x48d)](null),this[_0x291722(0x3b7)](),this[_0x291722(0x3e9)]();}[_0x513b3b(0x487)](){const _0x3bbd4a=_0x513b3b;var _0x36f4f9;this[_0x3bbd4a(0x49b)](),this[_0x3bbd4a(0x2d5)]<((_0x36f4f9=this[_0x3bbd4a(0x2cf)][_0x3bbd4a(0x4a0)](Pn))!=null?_0x36f4f9:yn)?(this[_0x3bbd4a(0x26e)][_0x3bbd4a(0x32b)]({'key':_0x3bbd4a(0x4bd),'type':_0x1f1b3b[_0x3bbd4a(0x442)],'content':this[_0x3bbd4a(0x28c)]['t'](_0x3bbd4a(0x387))}),this[_0x3bbd4a(0x34f)]()):this[_0x3bbd4a(0x26e)][_0x3bbd4a(0x32b)]({'key':'collaboration-session-retry','type':_0x1f1b3b[_0x3bbd4a(0x1ea)],'content':this[_0x3bbd4a(0x28c)]['t'](_0x3bbd4a(0x334))});}[_0x513b3b(0x276)](){const _0x3f597e=_0x513b3b,_0x41428c=()=>{const _0x9fb92d=_0x1736;this[_0x9fb92d(0x1dd)]||this[_0x9fb92d(0x43b)]();},_0x4ff181=()=>{const _0x1b6e57=_0x1736;this['_socket']||document[_0x1b6e57(0x3d0)]===_0x1b6e57(0x4ab)||this['reconnect']();};window[_0x3f597e(0x2a6)](_0x3f597e(0x2a8),_0x41428c),document[_0x3f597e(0x2a6)](_0x3f597e(0x305),_0x4ff181);}[_0x513b3b(0x34f)](){const _0x2ddd94=_0x513b3b;var _0x18dc49;const _0x5d7436=this[_0x2ddd94(0x2d5)],_0xab61e7=this[_0x2ddd94(0x2cf)][_0x2ddd94(0x4a0)]($),_0x2e65a4=_0x5d7436===0x0?0x0:((_0x18dc49=_0xab61e7==null?void 0x0:_0xab61e7[_0x2ddd94(0x21a)])!=null?_0x18dc49:wn)*0x2**_0x5d7436;this[_0x2ddd94(0x388)]=window[_0x2ddd94(0x3dc)](()=>{const _0x55f808=_0x2ddd94;clearTimeout(this['_retryConnectingTimer']),this[_0x55f808(0x388)]=null,this['_tryEnsureSocket']();},_0x2e65a4),this['_retryCount']+=0x1;}[_0x513b3b(0x15b)](_0x290cf6,_0x59c3d0){const _0x50f1d1=_0x513b3b,{cmd:_0x56db27}=_0x59c3d0;_0x56db27===I[_0x50f1d1(0x27f)]&&!this[_0x50f1d1(0x457)]&&(_0x290cf6[_0x50f1d1(0x1fc)]=_0x59c3d0[_0x50f1d1(0x14f)][_0x50f1d1(0x1fc)],this[_0x50f1d1(0x447)][_0x50f1d1(0x48d)](_0x290cf6),this['_status$']['next'](Y[_0x50f1d1(0x1f7)]),this[_0x50f1d1(0x457)]=!0x0,this[_0x50f1d1(0x46c)]=null),_0x56db27===I[_0x50f1d1(0x300)]&&this[_0x50f1d1(0x3b7)](),this[_0x50f1d1(0x1f3)]();}['_rescheduleHeartbeat'](){const _0x4e0222=_0x513b3b;var _0x30c0b2;this['_clearHeartbeatTimer'](),this[_0x4e0222(0x27c)]=window[_0x4e0222(0x3dc)](()=>this['_sendHeartbeat'](),(_0x30c0b2=this[_0x4e0222(0x2cf)][_0x4e0222(0x4a0)](On))!=null?_0x30c0b2:Dn);}[_0x513b3b(0x4b5)](){const _0x5e2156=_0x513b3b;this[_0x5e2156(0x1dd)]['send']({'cmd':I[_0x5e2156(0x300)]}),this[_0x5e2156(0x3a4)]();}['_waitForHeartbeatResponse'](){const _0x494d08=_0x513b3b;var _0x7a4e31;this['_timeoutTimer']=window[_0x494d08(0x3dc)](()=>this[_0x494d08(0x487)](),(_0x7a4e31=this['_configService']['getConfig'](js))!=null?_0x7a4e31:Hs);}[_0x513b3b(0x3e9)](){const _0x153d5b=_0x513b3b;this[_0x153d5b(0x27c)]!=null&&(clearTimeout(this[_0x153d5b(0x27c)]),this[_0x153d5b(0x27c)]=null);}['_clearTimeoutTimer'](){const _0x56ca75=_0x513b3b;this[_0x56ca75(0x481)]!=null&&(clearTimeout(this[_0x56ca75(0x481)]),this[_0x56ca75(0x481)]=null);}};he=tr([me(0x0,_0x53ed15(_0x3165b6)),me(0x1,_0x53ed15(_0x1deb41)),me(0x2,_0x4608dc),me(0x3,_0x385fd2),me(0x4,_0x17c84c),me(0x5,Bs)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0x513b3b(0x152)]((ct+0x100)[_0x513b3b(0x40b)](0x10)[_0x513b3b(0x193)](0x1));function sr(_0x25a653,_0x4cfe50=0x0){const _0x2500b8=_0x513b3b;return(T[_0x25a653[_0x4cfe50+0x0]]+T[_0x25a653[_0x4cfe50+0x1]]+T[_0x25a653[_0x4cfe50+0x2]]+T[_0x25a653[_0x4cfe50+0x3]]+'-'+T[_0x25a653[_0x4cfe50+0x4]]+T[_0x25a653[_0x4cfe50+0x5]]+'-'+T[_0x25a653[_0x4cfe50+0x6]]+T[_0x25a653[_0x4cfe50+0x7]]+'-'+T[_0x25a653[_0x4cfe50+0x8]]+T[_0x25a653[_0x4cfe50+0x9]]+'-'+T[_0x25a653[_0x4cfe50+0xa]]+T[_0x25a653[_0x4cfe50+0xb]]+T[_0x25a653[_0x4cfe50+0xc]]+T[_0x25a653[_0x4cfe50+0xd]]+T[_0x25a653[_0x4cfe50+0xe]]+T[_0x25a653[_0x4cfe50+0xf]])[_0x2500b8(0x4c9)]();}var xe,ir=new Uint8Array(0x10);function nr(){const _0xc113c3=_0x513b3b;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0xc113c3(0x44b)]&&crypto['getRandomValues'][_0xc113c3(0x1f4)](crypto),!xe))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return xe(ir);}var rr=typeof crypto<'u'&&crypto[_0x513b3b(0x275)]&&crypto[_0x513b3b(0x275)][_0x513b3b(0x1f4)](crypto);function _0x1736(_0x5550c7,_0x277c9c){const _0x26a066=_0x26a0();return _0x1736=function(_0x173615,_0x3077b8){_0x173615=_0x173615-0x145;let _0x4d47f1=_0x26a066[_0x173615];return _0x4d47f1;},_0x1736(_0x5550c7,_0x277c9c);}const cs={'randomUUID':rr};function or(_0x14c5a5,_0x3de3b4,_0x2c0b52){const _0x42176b=_0x513b3b;if(cs[_0x42176b(0x275)]&&!_0x3de3b4&&!_0x14c5a5)return cs['randomUUID']();_0x14c5a5=_0x14c5a5||{};var _0x495478=_0x14c5a5[_0x42176b(0x34d)]||(_0x14c5a5['rng']||nr)();return _0x495478[0x6]=_0x495478[0x6]&0xf|0x40,_0x495478[0x8]=_0x495478[0x8]&0x3f|0x80,sr(_0x495478);}var ar=Object[_0x513b3b(0x1a5)],cr=Object[_0x513b3b(0x1be)],hr=(_0x45a080,_0x2f1125,_0xa542b3,_0x4ed0fb)=>{for(var _0x2a9898=_0x4ed0fb>0x1?void 0x0:_0x4ed0fb?cr(_0x2f1125,_0xa542b3):_0x2f1125,_0x438f46=_0x45a080['length']-0x1,_0x516849;_0x438f46>=0x0;_0x438f46--)(_0x516849=_0x45a080[_0x438f46])&&(_0x2a9898=(_0x4ed0fb?_0x516849(_0x2f1125,_0xa542b3,_0x2a9898):_0x516849(_0x2a9898))||_0x2a9898);return _0x4ed0fb&&_0x2a9898&&ar(_0x2f1125,_0xa542b3,_0x2a9898),_0x2a9898;},ht=(_0x1a2c7e,_0x2023d7)=>(_0x1db214,_0x1be8f8)=>_0x2023d7(_0x1db214,_0x1be8f8,_0x1a2c7e);let Ye=class{constructor(_0x408df3,_0x2a4ce7,_0x24ea5d){const _0x24ce9b=_0x513b3b;this[_0x24ce9b(0x31e)]=_0x408df3,this[_0x24ce9b(0x283)]=_0x2a4ce7,this['_renderManagerService']=_0x24ea5d;}[_0x513b3b(0x314)](_0x3e2f22){const _0x504508=_0x513b3b;this[_0x504508(0x4dd)](_0x3e2f22),this[_0x504508(0x2e7)](_0x3e2f22);}[_0x513b3b(0x26a)](_0x20ad10){const _0x188a20=_0x513b3b,{unitID:_0x39a998}=_0x20ad10,_0x34670f=this[_0x188a20(0x3b9)][_0x188a20(0x192)](_0x39a998)['with'](_0x163018),{redoCache:_0x1b1329}=_0x34670f['getUndoRedoMutationParamsCache']();if(_0x1b1329[_0x188a20(0x313)]===0x0)return _0x20ad10;let _0x12e179=_0x31cbda[_0x188a20(0x39c)](_0x20ad10[_0x188a20(0x421)][0x0]);for(let _0x18709d=0x0;_0x18709d<_0x1b1329['length'];_0x18709d++){const _0x5abbea={'id':_0x188a20(0x1dc),'params':{..._0x1b1329[_0x18709d]}},_0x559b09=this[_0x188a20(0x283)][_0x188a20(0x40a)](_0x12e179,_0x5abbea,!0x1);if(_0x24fa2f(_0x559b09))throw _0x559b09[_0x188a20(0x25c)];_0x12e179=_0x559b09['m1Prime'];}return{..._0x31cbda[_0x188a20(0x39c)](_0x20ad10),'mutations':[_0x12e179]};}[_0x513b3b(0x4dd)](_0x182cce){const _0x5c1f12=_0x513b3b,{unitID:_0xffc5b0}=_0x182cce,_0x5292f2=this['_renderManagerService'][_0x5c1f12(0x192)](_0xffc5b0)['with'](_0x163018),{undoCache:_0x3b4ade,redoCache:_0x478090}=_0x5292f2[_0x5c1f12(0x317)]();if(_0x3b4ade['length']===0x0||_0x478090[_0x5c1f12(0x313)]===0x0)return;const _0xa17ebf=[],_0x58a88b=[];let _0x4a6da1=_0x31cbda['deepClone'](_0x182cce[_0x5c1f12(0x421)][0x0]),_0x31e5e7=_0x31cbda[_0x5c1f12(0x39c)](_0x182cce[_0x5c1f12(0x421)][0x0]);for(let _0x88dc31=_0x3b4ade[_0x5c1f12(0x313)]-0x1;_0x88dc31>=0x0;_0x88dc31--){const _0x5d60a8={'id':_0x5c1f12(0x1dc),'params':{..._0x3b4ade[_0x88dc31]}},_0x19c4a2={'id':_0x5c1f12(0x1dc),'params':{..._0x478090[_0x88dc31]}},_0xb9d032=this[_0x5c1f12(0x283)][_0x5c1f12(0x40a)](_0x4a6da1,_0x5d60a8,!0x1),_0x12ed8a=this[_0x5c1f12(0x283)]['transformMutation'](_0x31e5e7,_0x19c4a2,!0x1);if(_0x24fa2f(_0xb9d032))throw _0xb9d032['error'];if(_0x24fa2f(_0x12ed8a))throw _0x12ed8a[_0x5c1f12(0x25c)];_0xa17ebf[_0x5c1f12(0x2e9)](_0xb9d032[_0x5c1f12(0x2b9)][_0x5c1f12(0x498)]),_0x58a88b[_0x5c1f12(0x2e9)](_0x12ed8a['m2Prime'][_0x5c1f12(0x498)]),_0x4a6da1=_0xb9d032[_0x5c1f12(0x4c7)],_0x31e5e7=_0x12ed8a[_0x5c1f12(0x4c7)];}_0x5292f2[_0x5c1f12(0x1fa)]({'undoCache':_0xa17ebf,'redoCache':_0x58a88b});}[_0x513b3b(0x2e7)](_0x1fe3bd){const _0x5af00c=_0x513b3b,{unitID:_0x30e49a}=_0x1fe3bd,_0x5ca008=this[_0x5af00c(0x3b9)][_0x5af00c(0x192)](_0x30e49a)[_0x5af00c(0x2b1)](_0x163018),_0x32623a=_0x5ca008['getActiveRange']();if(_0x32623a==null)return;const _0x502a44=[{'id':_0x5af00c(0x1dc),'params':{'unitId':_0x1fe3bd['unitID'],'actions':null,'textRanges':[_0x32623a]}}],_0x1ce344=this[_0x5af00c(0x283)][_0x5af00c(0x398)](_0x1fe3bd,_0x502a44);if(!_0x16b713(_0x1ce344))throw _0x1ce344['error'];const _0xe5a0d=_0x1ce344[_0x5af00c(0x2b9)][0x0]['params'][_0x5af00c(0x3b1)];Array[_0x5af00c(0x33f)](_0xe5a0d)&&_0xe5a0d[_0x5af00c(0x313)]&&_0x5ca008[_0x5af00c(0x20e)](_0xe5a0d[0x0]);}};Ye=hr([ht(0x0,_0x53ed15(_0x3165b6)),ht(0x1,_0x2e5ae8),ht(0x2,_0xdb11a1)],Ye);var lr=Object[_0x513b3b(0x1a5)],_r=Object[_0x513b3b(0x1be)],ur=(_0x150633,_0x3b65b2,_0xb83c68,_0x32b183)=>{const _0x462cd9=_0x513b3b;for(var _0x2d55c2=_0x32b183>0x1?void 0x0:_0x32b183?_r(_0x3b65b2,_0xb83c68):_0x3b65b2,_0x39fd32=_0x150633[_0x462cd9(0x313)]-0x1,_0x520c7f;_0x39fd32>=0x0;_0x39fd32--)(_0x520c7f=_0x150633[_0x39fd32])&&(_0x2d55c2=(_0x32b183?_0x520c7f(_0x3b65b2,_0xb83c68,_0x2d55c2):_0x520c7f(_0x2d55c2))||_0x2d55c2);return _0x32b183&&_0x2d55c2&&lr(_0x3b65b2,_0xb83c68,_0x2d55c2),_0x2d55c2;},De=(_0x1b6a21,_0x4ca794)=>(_0x1c57da,_0x30328a)=>_0x4ca794(_0x1c57da,_0x30328a,_0x1b6a21);let w=class extends _0x5f406a{constructor(_0x2090b3,_0x5ccc46,_0x1aaab1,_0x183bb6,_0x4394c7){const _0x556c2b=_0x513b3b;super(),l(this,_0x556c2b(0x3c5),new Map()),l(this,_0x556c2b(0x37d),new Map()),l(this,_0x556c2b(0x355),!0x1),(this[_0x556c2b(0x2cf)]=_0x2090b3,this[_0x556c2b(0x38b)]=_0x5ccc46,this[_0x556c2b(0x336)]=_0x1aaab1,this[_0x556c2b(0x28c)]=_0x183bb6,this[_0x556c2b(0x344)]=_0x4394c7,this['_setupBeforeClosingHandler']());}[_0x513b3b(0x171)](){this['_disabled']=!0x0;}[_0x513b3b(0x299)](){const _0x36d6c9=_0x513b3b;this[_0x36d6c9(0x355)]=!0x1;}['dispose'](){const _0x288c30=_0x513b3b;this[_0x288c30(0x4d8)]()[_0x288c30(0x2cd)](()=>super['dispose']());}async[_0x513b3b(0x263)](_0x455602){const _0xd4f688=_0x513b3b;return this[_0xd4f688(0x355)]?null:this[_0xd4f688(0x38b)][_0xd4f688(0x1e1)](hs(_0x455602));}async[_0x513b3b(0x2ee)](_0x194f70,_0x4db8c8){const _0x2a266c=_0x513b3b;return!!this[_0x2a266c(0x38b)][_0x2a266c(0x4a5)](_0x194f70,_0x4db8c8);}[_0x513b3b(0x400)](_0x14eb11,_0x484345,_0x11b164,_0x1f32c9){const _0x1060d5=_0x513b3b,_0x1d69ad=this[_0x1060d5(0x344)][_0x1060d5(0x324)](_0x14eb11);this[_0x1060d5(0x3c5)][_0x1060d5(0x3ca)](_0x14eb11,{'unitID':_0x14eb11,'type':_0x484345,'awaitingChangeset':_0x11b164,'mutations':_0x1f32c9,'rev':_0x1d69ad}),this[_0x1060d5(0x37d)][_0x1060d5(0x243)](_0x14eb11)||this[_0x1060d5(0x16f)](_0x14eb11);}[_0x513b3b(0x16f)](_0x31ce1b){const _0x2915ec=_0x513b3b,_0x470e4e=this[_0x2915ec(0x36a)]();_0x470e4e===0x0?this[_0x2915ec(0x3bb)](_0x31ce1b):this['_saveTaskMap'][_0x2915ec(0x3ca)](_0x31ce1b,setTimeout(()=>this['_saveCache'](_0x31ce1b),_0x470e4e));}[_0x513b3b(0x36a)](){var _0x19bad3;return(_0x19bad3=this['_configService']['getConfig'](Un))!=null?_0x19bad3:Nn;}[_0x513b3b(0x3bb)](_0x33870e){const _0x4b993f=_0x513b3b,_0x5e747a=this[_0x4b993f(0x37d)]['get'](_0x33870e);return _0x5e747a!==void 0x0&&window[_0x4b993f(0x3e7)](_0x5e747a),this[_0x4b993f(0x38b)][_0x4b993f(0x4a5)](hs(_0x33870e),this['_cachedData']['get'](_0x33870e))['then'](()=>this[_0x4b993f(0x37d)][_0x4b993f(0x248)](_0x33870e));}async[_0x513b3b(0x4d8)](){const _0x3f210b=_0x513b3b,_0x592c5f=[];this['_saveTaskMap'][_0x3f210b(0x301)]((_0x3e6ad6,_0xb72014)=>{const _0x58d538=_0x3f210b;window[_0x58d538(0x3e7)](_0x3e6ad6),_0x592c5f['push'](this[_0x58d538(0x3bb)](_0xb72014)[_0x58d538(0x2cd)](()=>{const _0x2219f8=_0x58d538;this[_0x2219f8(0x37d)][_0x2219f8(0x248)](_0xb72014);}));}),await Promise[_0x3f210b(0x30d)](_0x592c5f);}[_0x513b3b(0x369)](){const _0x2344e2=_0x513b3b;this[_0x2344e2(0x233)](this[_0x2344e2(0x336)][_0x2344e2(0x441)](()=>{const _0x5c9565=_0x2344e2;if(this[_0x5c9565(0x37d)]['size'])return this[_0x5c9565(0x28c)]['t'](_0x5c9565(0x28a));}));}};w=ur([De(0x0,_0x17c84c),De(0x1,_0x476566),De(0x2,_0x2077b2),De(0x3,_0x53ed15(_0x1deb41)),De(0x4,_0x53ed15(_0x231b85))],w);function hs(_0x32cb0b){return'unit-cache-'+_0x32cb0b;}var dr=Object[_0x513b3b(0x1a5)],mr=Object[_0x513b3b(0x1be)],fr=(_0x2050c0,_0x3b6d6e,_0x59efef,_0x379ca2)=>{const _0x18f203=_0x513b3b;for(var _0x445582=_0x379ca2>0x1?void 0x0:_0x379ca2?mr(_0x3b6d6e,_0x59efef):_0x3b6d6e,_0x50c966=_0x2050c0[_0x18f203(0x313)]-0x1,_0x17ee6c;_0x50c966>=0x0;_0x50c966--)(_0x17ee6c=_0x2050c0[_0x50c966])&&(_0x445582=(_0x379ca2?_0x17ee6c(_0x3b6d6e,_0x59efef,_0x445582):_0x17ee6c(_0x445582))||_0x445582);return _0x379ca2&&_0x445582&&dr(_0x3b6d6e,_0x59efef,_0x445582),_0x445582;},lt=(_0x23fadf,_0x2987b3)=>(_0x3cad10,_0x3dd689)=>_0x2987b3(_0x3cad10,_0x3dd689,_0x23fadf);function gr(_0x56039d){const _0x33582e=_0x513b3b,{unitID:_0x3e4bf1,mutations:_0x12e747}=_0x56039d;return{'unitId':_0x3e4bf1,'subUnitId':_0x12e747[0x0][_0x33582e(0x498)][_0x33582e(0x3df)]};}let Ke=class{constructor(_0x2cafc7,_0xd3aef6,_0x52b982){const _0x2e2eaa=_0x513b3b;this['_injector']=_0x2cafc7,this[_0x2e2eaa(0x283)]=_0xd3aef6,this[_0x2e2eaa(0x2e8)]=_0x52b982;}[_0x513b3b(0x439)](_0x1c5504){const _0xeffc6f=_0x513b3b;var _0x46ba6c,_0x2c6ac4,_0x1bc607,_0x47d6c5;const _0x569c58=this[_0xeffc6f(0x31e)]['get'](_0x4c5ec4),{unitId:_0xd60c7,subUnitId:_0x23672e}=gr(_0x1c5504),_0x309c5f=_0x569c58[_0xeffc6f(0x3ee)](_0xd60c7)['getCurrentSelections'](),_0x35c14c=(_0x2c6ac4=(_0x46ba6c=this[_0xeffc6f(0x2e8)][_0xeffc6f(0x3a8)](_0xd60c7))==null?void 0x0:_0x46ba6c['getActiveSheet']())==null?void 0x0:_0x2c6ac4[_0xeffc6f(0x27d)]();if(_0x309c5f[_0xeffc6f(0x313)]===0x0||!_0xd60c7||!_0x23672e)return;const _0x3db89d=[{'id':_0x246d31['id'],'params':{'unitId':_0xd60c7,'subUnitId':_0x35c14c,'selections':_0x31cbda['deepClone'](_0x309c5f)}}],_0x74e675=this[_0xeffc6f(0x283)][_0xeffc6f(0x398)](_0x1c5504,_0x3db89d);if(!_0x16b713(_0x74e675))throw _0x74e675[_0xeffc6f(0x25c)];const _0x37a9a8=(_0x47d6c5=(_0x1bc607=_0x74e675['m2Prime'][0x0])==null?void 0x0:_0x1bc607[_0xeffc6f(0x498)])==null?void 0x0:_0x47d6c5[_0xeffc6f(0x2ca)];if(Array[_0xeffc6f(0x33f)](_0x37a9a8)&&_0x37a9a8[_0xeffc6f(0x313)]){if(_0x37a9a8[_0xeffc6f(0x313)]===_0x3db89d[0x0][_0xeffc6f(0x498)][_0xeffc6f(0x2ca)][_0xeffc6f(0x313)]&&_0x37a9a8['every']((_0x1917c8,_0xce3e25)=>_0x3deb79[_0xeffc6f(0x287)](_0x1917c8['range'],_0x3db89d[0x0]['params'][_0xeffc6f(0x2ca)][_0xce3e25][_0xeffc6f(0x304)])))return;this['_injector'][_0xeffc6f(0x49f)](_0x8348c)[_0xeffc6f(0x374)](_0x246d31['id'],{'unitId':_0xd60c7,'subUnitId':_0x35c14c,'selections':_0x37a9a8});}}};Ke=fr([lt(0x0,_0x53ed15(_0x3165b6)),lt(0x1,_0x2e5ae8),lt(0x2,_0x4c005a)],Ke);const tt=_0x52354a(_0x513b3b(0x3af));var Fs=(_0x1a9de8=>(_0x1a9de8[_0x1a9de8[_0x513b3b(0x46b)]=0x0]=_0x513b3b(0x46b),_0x1a9de8[_0x1a9de8[_0x513b3b(0x1fe)]=0x1]=_0x513b3b(0x1fe),_0x1a9de8))(Fs||{});const ls=0x7530,_s='ACTIVE_UNIT_EVENT_CHANNEL';class Sr extends _0x5f406a{constructor(){const _0x56ec36=_0x513b3b;super(),l(this,_0x56ec36(0x418),_0x31cbda[_0x56ec36(0x22e)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x56ec36(0x209),new Map()),l(this,_0x56ec36(0x338),null),l(this,_0x56ec36(0x28f),new Map()),l(this,_0x56ec36(0x195),new Map()),this[_0x56ec36(0x49c)]();}[_0x513b3b(0x3ce)](){const _0x286b18=_0x513b3b;super[_0x286b18(0x3ce)](),this['_clearOtherTimers'][_0x286b18(0x301)]((_0x1a2f12,_0x2243fb)=>this[_0x286b18(0x236)](_0x2243fb)),this[_0x286b18(0x338)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0xd2cba2){const _0xcc369f=_0x513b3b;return this['_ensureSubject'](_0xd2cba2)[_0xcc369f(0x33b)](_0x504670());}[_0x513b3b(0x368)](_0x3f332b){const _0x8a2e2f=_0x513b3b;this['_selfUnitIDs'][_0x8a2e2f(0x302)]===0x0&&this[_0x8a2e2f(0x1e8)](),this[_0x8a2e2f(0x169)][_0x8a2e2f(0x2ab)](_0x3f332b),this['_send']({'type':0x0,'memberID':this[_0x8a2e2f(0x418)],'unitIDs':[_0x3f332b],'isForwarded':!0x1});}['disposeUnit'](_0x20959f){const _0x104514=_0x513b3b;this[_0x104514(0x169)][_0x104514(0x248)](_0x20959f),this[_0x104514(0x169)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x104514(0x348)](this['_heartbeatTimer']);}[_0x513b3b(0x49c)](){const _0x2fba76=_0x513b3b;this['disposeWithMe'](_0x29caef(_0x2832fb(window,_0x2fba76(0x225))['subscribe'](_0x4ebd64=>{const _0x3af6b9=_0x2fba76;if(_0x4ebd64[_0x3af6b9(0x422)]!==_s||!_0x4ebd64[_0x3af6b9(0x19e)])return;const _0xc8f5e8=JSON[_0x3af6b9(0x3bf)](_0x4ebd64[_0x3af6b9(0x19e)]);this[_0x3af6b9(0x205)](_0xc8f5e8);}))),window[_0x2fba76(0x2a6)](_0x2fba76(0x493),()=>this[_0x2fba76(0x451)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2fba76(0x256)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x5feb02){const _0x4834f6=_0x513b3b;switch(_0x5feb02[_0x4834f6(0x30b)]){case 0x0:this[_0x4834f6(0x197)](_0x5feb02);break;case 0x1:this[_0x4834f6(0x163)](_0x5feb02);break;case 0x2:this[_0x4834f6(0x165)](_0x5feb02);break;}}['_handleJoinEvent'](_0x36070f){const _0xaa1348=_0x513b3b,{unitIDs:_0x2ef454,memberID:_0x101bfb,isForwarded:_0x33182a}=_0x36070f;_0x2ef454['forEach'](_0x13c955=>{const _0x2f9a25=_0x1736;if(!_0x33182a&&this[_0x2f9a25(0x209)][_0x2f9a25(0x243)](_0x13c955)&&this[_0x2f9a25(0x234)](_0x13c955)[_0x2f9a25(0x48d)](0x1),!this[_0x2f9a25(0x209)][_0x2f9a25(0x243)](_0x13c955)||!this[_0x2f9a25(0x209)]['get'](_0x13c955)[_0x2f9a25(0x243)](_0x101bfb)){const _0x4cfa39=this['_unitOnClients'][_0x2f9a25(0x49f)](_0x13c955)||new Set();_0x4cfa39[_0x2f9a25(0x2ab)](_0x101bfb),this[_0x2f9a25(0x209)][_0x2f9a25(0x3ca)](_0x13c955,_0x4cfa39),this[_0x2f9a25(0x408)](_0x101bfb);}}),_0x33182a||this['_send']({'type':0x0,'memberID':this[_0xaa1348(0x418)],'unitIDs':[...this[_0xaa1348(0x169)]],'isForwarded':!0x0});}[_0x513b3b(0x408)](_0x4257b2){const _0x588f37=_0x513b3b;this[_0x588f37(0x236)](_0x4257b2);const _0x138385=window[_0x588f37(0x3dc)](()=>{const _0x23d5c4=_0x588f37;this['_unitOnClients'][_0x23d5c4(0x301)](_0x2e798a=>{_0x2e798a['delete'](_0x4257b2);});},ls*0x2);this[_0x588f37(0x28f)][_0x588f37(0x3ca)](_0x4257b2,_0x138385);}[_0x513b3b(0x236)](_0x5c716d){const _0x2d6a04=_0x513b3b;if(this[_0x2d6a04(0x28f)][_0x2d6a04(0x243)](_0x5c716d)){const _0x2bbda3=this[_0x2d6a04(0x28f)][_0x2d6a04(0x49f)](_0x5c716d);_0x2bbda3&&window['clearTimeout'](_0x2bbda3),this['_clearOtherTimers'][_0x2d6a04(0x3ca)](_0x5c716d,null);}}['_handleLeaveEvent'](_0x13dccb){const _0x3848b0=_0x513b3b,{memberID:_0x3d7155,unitIDs:_0x523eaa}=_0x13dccb;_0x523eaa[_0x3848b0(0x301)](_0x48b625=>{const _0xdc2840=_0x3848b0;var _0x579156;const _0x8c9088=this[_0xdc2840(0x209)][_0xdc2840(0x49f)](_0x48b625);_0x8c9088&&(_0x8c9088[_0xdc2840(0x248)](_0x3d7155),(_0x579156=this[_0xdc2840(0x234)](_0x48b625))==null||_0x579156['next'](_0x8c9088['size']===0x0?0x0:0x1));}),this[_0x3848b0(0x236)](_0x3d7155);}[_0x513b3b(0x165)](_0x12fccb){const _0x42a4d5=_0x513b3b;this[_0x42a4d5(0x408)](_0x12fccb['memberID']);}[_0x513b3b(0x451)](_0x5298b2){const _0x1aaa25=_0x513b3b;localStorage[_0x1aaa25(0x4a5)](_s,JSON[_0x1aaa25(0x42b)](_0x5298b2));}[_0x513b3b(0x1e8)](){const _0x78e84c=_0x513b3b;this[_0x78e84c(0x338)]=window['setInterval'](()=>{const _0x5893ec=_0x78e84c;this[_0x5893ec(0x451)]({'type':0x2,'memberID':this['_id']});},ls);}[_0x513b3b(0x234)](_0x31f6be){const _0x14495c=_0x513b3b;return this[_0x14495c(0x195)][_0x14495c(0x243)](_0x31f6be)||this[_0x14495c(0x195)]['set'](_0x31f6be,new _0x1edb16(0x0)),this[_0x14495c(0x195)][_0x14495c(0x49f)](_0x31f6be);}}function Ws(_0x2041c4){const _0xcb19ab=_0x513b3b;let _0x10e0a3='';for(const _0x4b05c2 of _0x2041c4){const {startOffset:_0xde09d8,endOffset:_0x1471e3,isActive:_0x54e812}=_0x4b05c2;_0x10e0a3[_0xcb19ab(0x313)]&&(_0x10e0a3+=','),_0x10e0a3+=_0xde09d8+':'+_0x1471e3+':'+(_0x54e812?'1':'0');}return _0x10e0a3;}function pr(_0x42ea1e){const _0x48fc05=_0x513b3b,_0x24e2c4=_0x42ea1e['split'](','),_0x5cde43=[];for(const _0x2b0437 of _0x24e2c4){const [_0x361080,_0x471901,_0x2561d2]=_0x2b0437[_0x48fc05(0x17d)](':');_0x5cde43[_0x48fc05(0x152)]({'startOffset':Number(_0x361080),'endOffset':Number(_0x471901),'collapsed':_0x361080===_0x471901,'isActive':_0x2561d2==='1'});}return _0x5cde43['some'](_0x4fc475=>_0x4fc475['isActive'])||(_0x5cde43[0x0][_0x48fc05(0x14c)]=!0x0),_0x5cde43;}class Ft extends _0x346899{constructor(){const _0x23723c=_0x513b3b;super(...arguments),l(this,_0x23723c(0x2ed),new _0x1edb16(null)),l(this,'collabCursorState$',this[_0x23723c(0x2ed)][_0x23723c(0x2a4)]());}[_0x513b3b(0x4a8)](_0x2da066){const _0x92b94=_0x513b3b,{unitID:_0x2aa154,memberID:_0x12aa1b,textRanges:_0x488f73}=_0x2da066,_0x52c168=Ws(_0x488f73),_0x1846b1={'unitID':_0x2aa154,'memberID':_0x12aa1b,'selection':_0x52c168};this[_0x92b94(0x2ed)][_0x92b94(0x48d)](_0x1846b1);}}var vr=Object[_0x513b3b(0x1a5)],Ir=Object[_0x513b3b(0x1be)],Er=(_0x402db5,_0x2d85d6,_0x1b4851,_0x4fa3ce)=>{const _0x2145bd=_0x513b3b;for(var _0x1ec7d7=_0x4fa3ce>0x1?void 0x0:_0x4fa3ce?Ir(_0x2d85d6,_0x1b4851):_0x2d85d6,_0x5aaf19=_0x402db5[_0x2145bd(0x313)]-0x1,_0x26012b;_0x5aaf19>=0x0;_0x5aaf19--)(_0x26012b=_0x402db5[_0x5aaf19])&&(_0x1ec7d7=(_0x4fa3ce?_0x26012b(_0x2d85d6,_0x1b4851,_0x1ec7d7):_0x26012b(_0x1ec7d7))||_0x1ec7d7);return _0x4fa3ce&&_0x1ec7d7&&vr(_0x2d85d6,_0x1b4851,_0x1ec7d7),_0x1ec7d7;},us=(_0x1259b8,_0x14de44)=>(_0x47b353,_0x2193e9)=>_0x14de44(_0x47b353,_0x2193e9,_0x1259b8);let Xe=class{constructor(_0x1f1339,_0x2a845f){const _0x17978b=_0x513b3b;this[_0x17978b(0x31e)]=_0x1f1339,this['_transformService']=_0x2a845f;}[_0x513b3b(0x439)](_0xf84ae2){const _0xa0b0e7=_0x513b3b;var _0x2a530c;const _0x56ec01=this[_0xa0b0e7(0x31e)][_0xa0b0e7(0x49f)](_0x2d5996),_0x3f817f=(_0x2a530c=_0x56ec01[_0xa0b0e7(0x372)]())!=null?_0x2a530c:[];if(_0x3f817f[_0xa0b0e7(0x313)]===0x0)return;const _0x5667fe=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf84ae2[_0xa0b0e7(0x44f)],'actions':null,'textRanges':_0x3f817f}}],_0x4a9166=this[_0xa0b0e7(0x283)][_0xa0b0e7(0x398)](_0xf84ae2,_0x5667fe);if(!_0x16b713(_0x4a9166))throw _0x4a9166[_0xa0b0e7(0x25c)];const _0x3e5176=_0x4a9166['m2Prime'][0x0]['params'][_0xa0b0e7(0x3b1)];Array['isArray'](_0x3e5176)&&_0x3e5176[_0xa0b0e7(0x313)]&&_0x56ec01[_0xa0b0e7(0x25f)](_0x3e5176,!0x1);}};Xe=Er([us(0x0,_0x53ed15(_0x3165b6)),us(0x1,_0x2e5ae8)],Xe);const Cr=new Set([_0x456f7d['id']]);function ds(_0x1770a6,_0x32f8c4,_0x28d0ff,_0x42fc2a,_0x40fc75){const _0x49b2a4=_0x513b3b;var _0x1ebeee,_0x5d2aad,_0x520f0a,_0x4c17a2;const _0x170ab7=[];for(const _0x4766ab of _0x1770a6)if(Cr[_0x49b2a4(0x243)](_0x4766ab['id'])){if(_0x170ab7[_0x49b2a4(0x313)]>0x0)break;_0x170ab7[_0x49b2a4(0x152)](_0x4766ab);break;}else _0x170ab7[_0x49b2a4(0x152)](_0x4766ab);const _0x20b8c7=(_0x5d2aad=(_0x1ebeee=_0x40fc75[_0x49b2a4(0x3fe)]())==null?void 0x0:_0x1ebeee[_0x49b2a4(0x40e)])!=null?_0x5d2aad:_0x49b2a4(0x42a),_0x45fd43=(_0x4c17a2=(_0x520f0a=_0x40fc75[_0x49b2a4(0x3fe)]())==null?void 0x0:_0x520f0a[_0x49b2a4(0x1fc)])!=null?_0x4c17a2:'unknown';return{'changeset':{'unitID':_0x32f8c4,'type':_0x376ae6(_0x28d0ff[_0x49b2a4(0x261)](_0x32f8c4)),'baseRev':_0x42fc2a['getCurrentRevOfUnit'](_0x32f8c4),'revision':0x0,'userID':_0x20b8c7,'memberID':_0x45fd43,'mutations':_0x170ab7},'pendingMutations':_0x1770a6[_0x49b2a4(0x193)](_0x170ab7['length'])};}function br(_0x4aa427,_0x481af9,_0x28191f,_0x19f9a4,_0x2aec6c){const _0x155231=_0x513b3b;var _0x171e01,_0x2a9a67,_0x20a2b1,_0x4af067;const _0x44a37a=[_0x4aa427[_0x155231(0x2cc)]((_0x562ea1,_0x20bf80)=>{const _0x3a7ca6=_0x155231;var _0x4dd4e5;const {id:_0x1d7bac}=_0x562ea1,{id:_0x3eb4de,type:_0x843b57}=_0x20bf80,_0x10612c=(_0x4dd4e5=_0x562ea1['params'])!=null?_0x4dd4e5:{'actions':null},_0x905bd9=_0x20bf80['params'];if(_0x1d7bac&&_0x1d7bac!==_0x3eb4de)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1d7bac+_0x3a7ca6(0x15e)+_0x3eb4de+'.');return{..._0x562ea1,'id':_0x3eb4de,'type':_0x843b57,'params':{'unitId':_0x905bd9['unitId'],'textRanges':_0x905bd9[_0x3a7ca6(0x3b1)],'actions':_0x494871[_0x3a7ca6(0x412)](_0x10612c[_0x3a7ca6(0x458)],_0x905bd9[_0x3a7ca6(0x458)])}};},{})],_0x369db6=(_0x2a9a67=(_0x171e01=_0x2aec6c[_0x155231(0x3fe)]())==null?void 0x0:_0x171e01[_0x155231(0x40e)])!=null?_0x2a9a67:'unknown',_0x2f8065=(_0x4af067=(_0x20a2b1=_0x2aec6c[_0x155231(0x3fe)]())==null?void 0x0:_0x20a2b1[_0x155231(0x1fc)])!=null?_0x4af067:_0x155231(0x42a);return{'changeset':{'unitID':_0x481af9,'type':_0x376ae6(_0x28191f[_0x155231(0x261)](_0x481af9)),'baseRev':_0x19f9a4[_0x155231(0x324)](_0x481af9),'revision':0x0,'userID':_0x369db6,'memberID':_0x2f8065,'mutations':_0x44a37a},'pendingMutations':[]};}function Gs(_0x33826d,_0x125536){const _0xa66877=_0x513b3b,_0x37583d=new _0x3f0a22(0x1);return setTimeout(()=>_0x37583d[_0xa66877(0x48d)](_0x125536),_0x33826d),_0x37583d[_0xa66877(0x2a4)]()[_0xa66877(0x33b)](_0x549142(0x1));}const Tr={'id':_0x71deda['id'],'type':_0x4e2bbf['MUTATION'],'params':{}};var Rr=Object[_0x513b3b(0x1a5)],Or=Object[_0x513b3b(0x1be)],_e=(_0x265ba1,_0x400053,_0x46f823,_0x504f36)=>{const _0xb35238=_0x513b3b;for(var _0x567891=_0x504f36>0x1?void 0x0:_0x504f36?Or(_0x400053,_0x46f823):_0x400053,_0x3dd8c9=_0x265ba1[_0xb35238(0x313)]-0x1,_0x3e0769;_0x3dd8c9>=0x0;_0x3dd8c9--)(_0x3e0769=_0x265ba1[_0x3dd8c9])&&(_0x567891=(_0x504f36?_0x3e0769(_0x400053,_0x46f823,_0x567891):_0x3e0769(_0x567891))||_0x567891);return _0x504f36&&_0x567891&&Rr(_0x400053,_0x46f823,_0x567891),_0x567891;},f=(_0x59e2da,_0x6f8396)=>(_0x12b3d8,_0x553e7e)=>_0x6f8396(_0x12b3d8,_0x553e7e,_0x59e2da),P=(_0x5201a4=>(_0x5201a4['NOT_COLLAB']='not_collab',_0x5201a4[_0x513b3b(0x149)]=_0x513b3b(0x3fa),_0x5201a4[_0x513b3b(0x2a3)]='pending',_0x5201a4['AWAITING']='awaiting',_0x5201a4[_0x513b3b(0x3f9)]='awaiting_with_pending',_0x5201a4['FETCH_MISS']=_0x513b3b(0x44e),_0x5201a4[_0x513b3b(0x230)]='conflict',_0x5201a4['OFFLINE']=_0x513b3b(0x1da),_0x5201a4))(P||{});const Ys=0xea60;class ue{constructor(_0x142fed,_0x46e23c,_0x26cfc3,_0x21115a,_0x2f0bf8,_0x582f1d,_0x523d78,_0xcf4262,_0x129ec6){const _0x355e4c=_0x513b3b;l(this,'_awaitingChangeset',null),l(this,_0x355e4c(0x47a),[]),(this[_0x355e4c(0x44f)]=_0x142fed,this[_0x355e4c(0x30b)]=_0x46e23c,this[_0x355e4c(0x2d1)]=_0x2f0bf8,this['_commandService']=_0x582f1d,this[_0x355e4c(0x222)]=_0x523d78,this[_0x355e4c(0x344)]=_0xcf4262,this[_0x355e4c(0x2be)]=_0x129ec6,this['_awaitingChangeset']=_0x26cfc3,this[_0x355e4c(0x47a)]=_0x21115a);}['_checkMissing'](_0x2641dd){const _0x1880d2=_0x513b3b,_0x5c1311=this[_0x1880d2(0x344)][_0x1880d2(0x324)](this[_0x1880d2(0x44f)]);return _0x2641dd['revision']>_0x5c1311+0x1?(this[_0x1880d2(0x2d1)]['onMissingChangesets']({'from':_0x5c1311,'to':_0x2641dd[_0x1880d2(0x2de)]-0x1}),!0x0):!0x1;}[_0x513b3b(0x318)](_0x4200a5){const _0x5e50e5=_0x513b3b;this[_0x5e50e5(0x222)]['transformUndoRedo'](this['unitID'],_0x4200a5);}['_transformSelections'](_0x22858d){const _0x1aeb7f=_0x513b3b;var _0xea1507,_0x529e25;(_0x529e25=(_0xea1507=this[_0x1aeb7f(0x2d1)])[_0x1aeb7f(0x294)])==null||_0x529e25[_0x1aeb7f(0x194)](_0xea1507,_0x22858d);}[_0x513b3b(0x331)](_0x4c48e8){const _0x3110b8=_0x513b3b;var _0x2573b6,_0x24901a;return(_0x24901a=(_0x2573b6=this[_0x3110b8(0x2d1)])[_0x3110b8(0x4cd)])==null?void 0x0:_0x24901a[_0x3110b8(0x194)](_0x2573b6,_0x4c48e8);}[_0x513b3b(0x40c)](_0x822e73){const _0x292d8c=_0x513b3b;var _0x209bbe,_0x3b7da0,_0x291c30;return(_0x291c30=(_0x3b7da0=(_0x209bbe=this[_0x292d8c(0x2d1)])[_0x292d8c(0x168)])==null?void 0x0:_0x3b7da0['call'](_0x209bbe,_0x822e73))!=null?_0x291c30:_0x822e73;}[_0x513b3b(0x38d)](_0x2604b0){const _0x506320=_0x513b3b;var _0x4f2fac,_0x51a3bd;if(this[_0x506320(0x30b)]===k[_0x506320(0x1a4)]){const {unitID:_0x4fe523,mutations:_0x3ecebd,memberID:_0x55fd76}=_0x2604b0,_0x104f81=_0x3ecebd[0x0]['params'][_0x506320(0x3b1)];Array[_0x506320(0x33f)](_0x104f81)&&_0x104f81[_0x506320(0x313)]>0x0&&((_0x51a3bd=(_0x4f2fac=this['_handler'])[_0x506320(0x3de)])==null||_0x51a3bd[_0x506320(0x194)](_0x4f2fac,{'unitID':_0x4fe523,'memberID':_0x55fd76,'textRanges':_0x104f81}));}}['_updateLocalCache'](){const _0x2da792=_0x513b3b;this[_0x2da792(0x2be)][_0x2da792(0x400)](this['unitID'],this[_0x2da792(0x30b)],this[_0x2da792(0x371)],this[_0x2da792(0x47a)]);}[_0x513b3b(0x3f5)](){const _0x302250=_0x513b3b;return this[_0x302250(0x344)][_0x302250(0x324)](this[_0x302250(0x44f)]);}['_incrementRevisionNumber'](){const _0x10ad22=_0x513b3b;this[_0x10ad22(0x344)][_0x10ad22(0x23d)](this[_0x10ad22(0x44f)]);}[_0x513b3b(0x2dc)](_0x2e9b63){const _0x42977d=_0x513b3b;var _0x3401a6;const _0x12951e=this[_0x42977d(0x40c)](_0x2e9b63),_0x37c79d=_0x21da1f(_0x12951e[_0x42977d(0x421)],this[_0x42977d(0x2b6)],{'fromCollab':!0x0});if(!_0x37c79d['result'])throw _0x37c79d[_0x42977d(0x25c)]instanceof Error?_0x37c79d[_0x42977d(0x25c)]:new Error((_0x3401a6=_0x37c79d['error'])!=null?_0x3401a6:_0x42977d(0x25e));this[_0x42977d(0x331)](_0x12951e),this[_0x42977d(0x318)](_0x2e9b63),this[_0x42977d(0x37c)](_0x12951e),this[_0x42977d(0x38d)](_0x12951e),this[_0x42977d(0x42d)]();}}let pe=class extends ue{constructor(_0x5613ff,_0x30ba37,_0x555ea7,_0x4d89e4,_0x2b0baa,_0x3d3a3e,_0x416fb9,_0x49c5df,_0x444eba,_0x373368){const _0x40205e=_0x513b3b;super(_0x5613ff,_0x30ba37,null,[],_0x555ea7,_0x49c5df,_0x416fb9,_0x4d89e4,_0x2b0baa),l(this,'status',_0x40205e(0x3fa)),(this[_0x40205e(0x31e)]=_0x3d3a3e,this[_0x40205e(0x4e0)]=_0x444eba,this[_0x40205e(0x283)]=_0x373368);}[_0x513b3b(0x177)](_0x274215){const _0x2366af=_0x513b3b,_0x487d17=this[_0x2366af(0x31e)]['createInstance'](X,this[_0x2366af(0x44f)],this['type'],[_0x274215],this['_handler']);return _0x487d17[_0x2366af(0x3b3)](),_0x487d17[_0x2366af(0x211)](),_0x487d17;}[_0x513b3b(0x148)](_0xdb89d0){const _0x27c399=_0x513b3b;if(this['_checkMissing'](_0xdb89d0))return this[_0x27c399(0x31e)]['createInstance'](B,this['unitID'],this['type'],null,[],null,[_0xdb89d0],this[_0x27c399(0x2d1)]);try{const _0x576c6b=this[_0x27c399(0x283)][_0x27c399(0x398)](_0xdb89d0,[Tr]);if(_0x16b713(_0x576c6b)){const {c1Prime:_0x428fdf}=_0x576c6b;return this[_0x27c399(0x2dc)](_0x428fdf),this;}throw _0x576c6b[_0x27c399(0x25c)];}catch(_0x14bfba){return this[_0x27c399(0x4e0)][_0x27c399(0x25c)](_0x14bfba),this[_0x27c399(0x1c8)](!0x1);}}[_0x513b3b(0x1c8)](_0x4add26){const _0x451664=_0x513b3b;return this[_0x451664(0x31e)][_0x451664(0x269)](ee,this[_0x451664(0x44f)],this[_0x451664(0x30b)],null,[],this['_handler'],_0x4add26);}[_0x513b3b(0x29a)](){const _0x53595e=_0x513b3b;throw new Error(_0x53595e(0x33c));}[_0x513b3b(0x303)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x513b3b(0x420)](){const _0x2980ad=_0x513b3b;return this[_0x2980ad(0x31e)][_0x2980ad(0x269)](te,this['unitID'],this[_0x2980ad(0x30b)],null,[],this[_0x2980ad(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x3630c9=_0x513b3b;throw new Error(_0x3630c9(0x35e));}[_0x513b3b(0x361)](){const _0x1f34c1=_0x513b3b,_0x152afd=this[_0x1f34c1(0x344)][_0x1f34c1(0x324)](this['unitID']);return this[_0x1f34c1(0x2d1)][_0x1f34c1(0x462)]({'from':_0x152afd,'to':0x0}),this['_injector']['createInstance'](B,this[_0x1f34c1(0x44f)],this[_0x1f34c1(0x30b)],null,[],null,[],this[_0x1f34c1(0x2d1)]);}};pe=_e([f(0x3,_0x53ed15(_0x231b85)),f(0x4,_0x53ed15(w)),f(0x5,_0x53ed15(_0x3165b6)),f(0x6,_0x3e29a6),f(0x7,_0x8348c),f(0x8,_0x385fd2),f(0x9,_0x2e5ae8)],pe);let X=class extends ue{constructor(_0x491bba,_0x2a5b5b,_0x477fce,_0x40e233,_0xb61093,_0x4718d6,_0x1f705b,_0x18efeb,_0xce13ad,_0x2335c7,_0x47ba4a,_0x1b2f61,_0x129f6a,_0x226481){const _0x50081d=_0x513b3b;super(_0x491bba,_0x2a5b5b,null,_0x477fce,_0x40e233,_0x2335c7,_0x226481,_0x4718d6,_0x1f705b),l(this,_0x50081d(0x3a7),_0x50081d(0x386)),l(this,_0x50081d(0x350),null),l(this,_0x50081d(0x466),null),(this[_0x50081d(0x31e)]=_0xb61093,this[_0x50081d(0x21c)]=_0x18efeb,this['_logService']=_0xce13ad,this[_0x50081d(0x2cf)]=_0x47ba4a,this[_0x50081d(0x283)]=_0x1b2f61,this[_0x50081d(0x4c4)]=_0x129f6a);}[_0x513b3b(0x177)](_0x235f50){const _0x1ad626=_0x513b3b;return this[_0x1ad626(0x47a)][_0x1ad626(0x152)](_0x235f50),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x2b70ce){const _0x4d8bef=_0x513b3b;if(this[_0x4d8bef(0x425)](_0x2b70ce))return this['_clearScheduledTask'](),this['_injector'][_0x4d8bef(0x269)](B,this[_0x4d8bef(0x44f)],this[_0x4d8bef(0x30b)],null,this[_0x4d8bef(0x47a)],null,[_0x2b70ce],this[_0x4d8bef(0x2d1)]);try{const _0x52ccb1=this[_0x4d8bef(0x283)][_0x4d8bef(0x398)](_0x2b70ce,this[_0x4d8bef(0x47a)]);if(_0x16b713(_0x52ccb1)){const {c1Prime:_0x4b8290,m2Prime:_0x1ed0e9}=_0x52ccb1;this['_executeRemoteChangeset'](_0x4b8290);const _0x4dd4b5=this[_0x4d8bef(0x31e)][_0x4d8bef(0x269)](X,this['unitID'],this[_0x4d8bef(0x30b)],_0x1ed0e9,this[_0x4d8bef(0x2d1)]);return this[_0x4d8bef(0x260)](),_0x4dd4b5[_0x4d8bef(0x3b3)](this[_0x4d8bef(0x350)]?Math[_0x4d8bef(0x1b0)](0x0,new Date()[_0x4d8bef(0x362)]()-this[_0x4d8bef(0x350)]):this[_0x4d8bef(0x151)]()),_0x4dd4b5;}throw _0x52ccb1[_0x4d8bef(0x25c)];}catch(_0x5f3f73){return this[_0x4d8bef(0x4e0)][_0x4d8bef(0x25c)](_0x5f3f73),this[_0x4d8bef(0x1c8)](!0x1);}}[_0x513b3b(0x29a)](){const _0x253cde=_0x513b3b;throw new Error(_0x253cde(0x2f8));}['onRemoteRej'](){const _0x449263=_0x513b3b;throw new Error(_0x449263(0x4d1));}[_0x513b3b(0x15d)](){return this;}['toggleOffline'](){const _0x4ee4c2=_0x513b3b;return this['_clearScheduledTask'](),this[_0x4ee4c2(0x31e)][_0x4ee4c2(0x269)](te,this[_0x4ee4c2(0x44f)],this[_0x4ee4c2(0x30b)],null,this[_0x4ee4c2(0x47a)],this[_0x4ee4c2(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x3b3)](_0x3a576f){const _0x31ba46=_0x513b3b,_0x2e6c18=_0x3a576f!=null?_0x3a576f:this[_0x31ba46(0x151)]();this['_scheduleTimestamp']=new Date()[_0x31ba46(0x362)](),this[_0x31ba46(0x466)]=window['setTimeout'](()=>{const _0x3161b1=_0x31ba46;this['_clearScheduledTask']();let _0x236eda=null;switch(this['type']){case k[_0x3161b1(0x3b6)]:{_0x236eda=ds(this['_pendingMutations'],this['unitID'],this[_0x3161b1(0x4c4)],this['_revisionService'],this[_0x3161b1(0x21c)]);break;}case k[_0x3161b1(0x1a4)]:{this[_0x3161b1(0x47a)]['every'](_0x3a07a5=>_0x3a07a5['id']===_0x599177['id'])?_0x236eda=br(this['_pendingMutations'],this[_0x3161b1(0x44f)],this['_univerInstanceService'],this[_0x3161b1(0x344)],this[_0x3161b1(0x21c)]):_0x236eda=ds(this[_0x3161b1(0x47a)],this[_0x3161b1(0x44f)],this[_0x3161b1(0x4c4)],this['_revisionService'],this[_0x3161b1(0x21c)]);break;}default:throw new Error(_0x3161b1(0x4c3)+this[_0x3161b1(0x30b)]+_0x3161b1(0x1ad));}const {changeset:_0x5af545,pendingMutations:_0x31483d}=_0x236eda;this['_handler']['onSendChangeset'](_0x5af545);const _0x2831e5=_0x31483d[_0x3161b1(0x313)]?this['_injector'][_0x3161b1(0x269)](q,this[_0x3161b1(0x44f)],this['type'],_0x5af545,_0x31483d,this[_0x3161b1(0x2d1)],void 0x0):this[_0x3161b1(0x31e)][_0x3161b1(0x269)](Q,this[_0x3161b1(0x44f)],this['type'],_0x5af545,this[_0x3161b1(0x2d1)]);_0x2831e5[_0x3161b1(0x211)](),this[_0x3161b1(0x2d1)][_0x3161b1(0x4cb)](this,_0x2831e5);},_0x2e6c18);}['_getSendChangesetTimeout'](){const _0x32790=_0x513b3b;var _0x3610ea;const _0x581788=this[_0x32790(0x2cf)]['getConfig']($);return(_0x3610ea=_0x581788==null?void 0x0:_0x581788[_0x32790(0x3c9)])!=null?_0x3610ea:bn;}[_0x513b3b(0x42c)](){const _0x183e1d=_0x513b3b;throw new Error(_0x183e1d(0x219));}['_clearScheduledTask'](){const _0x238133=_0x513b3b;this[_0x238133(0x466)]!=null&&(clearTimeout(this[_0x238133(0x466)]),this[_0x238133(0x466)]=null);}['_onConflict'](_0x1333eb){const _0x2c6feb=_0x513b3b;return this[_0x2c6feb(0x260)](),this[_0x2c6feb(0x31e)][_0x2c6feb(0x269)](ee,this[_0x2c6feb(0x44f)],this['type'],null,this[_0x2c6feb(0x47a)],this[_0x2c6feb(0x2d1)],_0x1333eb);}};X=_e([f(0x4,_0x53ed15(_0x3165b6)),f(0x5,_0x53ed15(_0x231b85)),f(0x6,_0x53ed15(w)),f(0x7,_0x53ed15(ce)),f(0x8,_0x385fd2),f(0x9,_0x8348c),f(0xa,_0x17c84c),f(0xb,_0x2e5ae8),f(0xc,_0x4c005a),f(0xd,_0x3e29a6)],X);let Q=class extends ue{constructor(_0x42b153,_0x92107a,_0x18421d,_0x4e7156,_0x52e440,_0x2e008c,_0x1a5d96,_0x22d4c1,_0x4b5791,_0x16df7e,_0x5da574){const _0x4e24af=_0x513b3b;super(_0x42b153,_0x92107a,_0x18421d,[],_0x4e7156,_0x22d4c1,_0x5da574,_0x2e008c,_0x1a5d96),l(this,_0x4e24af(0x3a7),_0x4e24af(0x3ae)),l(this,_0x4e24af(0x23b),0x0),l(this,_0x4e24af(0x4dc)),l(this,_0x4e24af(0x443)),(this[_0x4e24af(0x31e)]=_0x52e440,this[_0x4e24af(0x4e0)]=_0x4b5791,this[_0x4e24af(0x283)]=_0x16df7e);}['appendMutation'](_0x2284e3){const _0xcccdb8=_0x513b3b;this[_0xcccdb8(0x260)]();const _0x53c39b=this[_0xcccdb8(0x31e)][_0xcccdb8(0x269)](q,this[_0xcccdb8(0x44f)],this[_0xcccdb8(0x30b)],this['_awaitingChangeset'],[_0x2284e3],this[_0xcccdb8(0x2d1)],this[_0xcccdb8(0x4dc)]);return _0x53c39b['_updateLocalCache'](),_0x53c39b;}[_0x513b3b(0x148)](_0x365579){const _0xb443f4=_0x513b3b;if(this[_0xb443f4(0x425)](_0x365579))return this[_0xb443f4(0x260)](),this['_injector'][_0xb443f4(0x269)](B,this['unitID'],this[_0xb443f4(0x30b)],this[_0xb443f4(0x371)],[],null,[_0x365579],this[_0xb443f4(0x2d1)]);try{const _0x2429b5=this[_0xb443f4(0x283)][_0xb443f4(0x346)]([_0x365579],[this[_0xb443f4(0x371)]],!0x1);if(_0x987caa(_0x2429b5)){const {c1Prime:_0x4ec975,c2Prime:_0x4518b0}=_0x2429b5;this[_0xb443f4(0x2dc)](_0x4ec975[0x0]),_0x4518b0[0x0][_0xb443f4(0x3c1)]=this[_0xb443f4(0x3f5)](),this['_clearScheduledTask']();const _0xce3456=this[_0xb443f4(0x31e)][_0xb443f4(0x269)](Q,this[_0xb443f4(0x44f)],this[_0xb443f4(0x30b)],_0x4518b0[0x0],this[_0xb443f4(0x2d1)]);return _0xce3456['_updateLocalCache'](),_0xce3456;}return this[_0xb443f4(0x1c8)](!0x1);}catch(_0x51c7aa){return this[_0xb443f4(0x4e0)][_0xb443f4(0x25c)](_0x51c7aa),this[_0xb443f4(0x1c8)](!0x1);}}['onRemoteAck'](_0x1c308a){const _0x14fc8d=_0x513b3b;this[_0x14fc8d(0x260)]();const _0x39ec8c=this[_0x14fc8d(0x344)][_0x14fc8d(0x324)](this[_0x14fc8d(0x44f)]);if(_0x1c308a[_0x14fc8d(0x2de)]<_0x39ec8c-0x1)return this;if(this['_checkMissing'](_0x1c308a))return this[_0x14fc8d(0x31e)][_0x14fc8d(0x269)](B,this['unitID'],this[_0x14fc8d(0x30b)],null,[],this[_0x14fc8d(0x371)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x1273b3=this['_injector'][_0x14fc8d(0x269)](pe,this['unitID'],this[_0x14fc8d(0x30b)],this[_0x14fc8d(0x2d1)]);return _0x1273b3[_0x14fc8d(0x211)](),_0x1273b3;}[_0x513b3b(0x303)](_0x5e152b){const _0x4fd2f5=_0x513b3b;return this[_0x4fd2f5(0x1c8)](!!(_0x5e152b!=null&&_0x5e152b[_0x4fd2f5(0x21f)]));}[_0x513b3b(0x15d)](_0x51b503){const _0x448129=_0x513b3b;return this[_0x448129(0x23b)]>Ys?this[_0x448129(0x420)]():(this['_resendTimer']=Gs(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x51b503[_0x448129(0x21b)]}),this[_0x448129(0x443)]=this[_0x448129(0x4dc)]['subscribe'](({reqId:_0x30ec58,timeout:_0x590289})=>{const _0x1be5b0=_0x448129;this[_0x1be5b0(0x213)](_0x30ec58,_0x590289);}),this);}[_0x513b3b(0x420)](){const _0x4fa807=_0x513b3b;return this[_0x4fa807(0x260)](),this['_injector']['createInstance'](te,this[_0x4fa807(0x44f)],this[_0x4fa807(0x30b)],this[_0x4fa807(0x371)],[],this[_0x4fa807(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x4eb080=_0x513b3b;this[_0x4eb080(0x2d1)][_0x4eb080(0x17b)](this['_awaitingChangeset']);}[_0x513b3b(0x1c8)](_0x2ed0a2){const _0x1f7bc2=_0x513b3b;return this['_clearScheduledTask'](),this['_injector']['createInstance'](ee,this[_0x1f7bc2(0x44f)],this[_0x1f7bc2(0x30b)],this[_0x1f7bc2(0x371)],[],this[_0x1f7bc2(0x2d1)],_0x2ed0a2);}[_0x513b3b(0x213)](_0x5d0621,_0x262635){const _0xa47247=_0x513b3b;var _0x4accf0;_0x5d0621===((_0x4accf0=this[_0xa47247(0x371)])==null?void 0x0:_0x4accf0[_0xa47247(0x21b)])&&(this['resend'](),this[_0xa47247(0x23b)]=_0x262635===0x0?0x3e8:_0x262635*0x2);}[_0x513b3b(0x260)](){const _0x57ea53=_0x513b3b;var _0x23cf1b;(_0x23cf1b=this[_0x57ea53(0x443)])==null||_0x23cf1b[_0x57ea53(0x48a)](),this[_0x57ea53(0x23b)]=0x0;}};Q=_e([f(0x4,_0x53ed15(_0x3165b6)),f(0x5,_0x53ed15(_0x231b85)),f(0x6,_0x53ed15(w)),f(0x7,_0x8348c),f(0x8,_0x385fd2),f(0x9,_0x2e5ae8),f(0xa,_0x3e29a6)],Q);function _0x26a0(){const _0x1af7e7=['toggleOffline','mutations','key','top','awaitingChangeset','_checkMissing','7139220lssKhI','unitId\x20is\x20not\x20found','collabStatus.conflict','href','unknown','stringify','resend','_incrementRevisionNumber','telemetry\x20info\x20is\x20not\x20initialized','urlChange$','originalMeta','_substituteUndoStack','COMPLETION_FINISHED','_onUserLeave','_getDownloadEndpointURL','CHANGESET_SHOULD_RETRY','_collaborationController','/fetchmissing?from=','round','transformSelections','error$','reconnect','stopTime','sheetId','save','off-line-single_clip0_910_343','currentTheme$','registerBeforeClose','Warning','_sender','BASE64','_colorAssignService','unit','_socket$','InsertRangeMoveRightCommandId','skeleton','_initCommandExecutedListener','getRandomValues','OFFLINE','CONNECTOR_DATA_TOO_LARGE','fetch_missing','unitID','getFocusedUnit','_send','_commentService','rgba(255,\x20255,\x20255,\x200.01)','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','updatePermissionObjEvent','session','_socketReady','actions','trim','leaveEvent','_getMergeRange','getMemberID','HEARTBEAT_INTERVAL','fetching\x20missing\x20changesets\x20from\x20','body','FileId','getInterceptPoints','onMissingChangesets','_startTelemetryCollaborationNewChangeset','RemoveRowCommandId','subscribe','_sendingTimer','addObject','SNAPSHOT_INVALID_SNAPSHOT','image/jpg','_initResize','NO_OTHER_CLIENTS_EDITING','_candidateSocket','4770mBaSrw','collabStatus.offline','onCommandExecuted','YUUMI_SUBSCRIPTION_NOT_FOUND','createCollaborator','_draw','UniverIcon','loadSheet','_loadDoc','registerRenderModule','[CollaborationSession]','_tryEnsureSocket','downloadEndpointUrl','_pendingMutations','event$','_handleHover','LICENSE_IMPORT_SIZE_EXCEEDED','_updateURLWithCurrentState','_themeService','shouldCloseConn','_timeoutTimer','enableAuthServer','getCurrentSelections','append','c2Prime','substring','_onConnectionFailed','onload','_redoStacks','unsubscribe','3994176uEBoZj','_disableEditing','next','csShouldRetryEvent','_onFetchMissResult','string','onlineStatusTitle','arc','unload','_getAPIPrefix','uploadFileServerUrl','makeDirty','defIds','params','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUniverSheetInstance','_onOffline','_init','json','commentUpdate$','get','getConfig','/resources','currentSkeleton$','_colorIndex','drawWith','setItem','width','_initStatusListener','syncEditingCollabCursor','_initModules','LIVESHARE_FETCH_OPERATIONS','hidden','_collaborationPaused','_imageSourceCache','registerOnClose','_render','36142ixPqvi','lineTo','toggleOnline','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_roomMembers$','_sendHeartbeat','infoRsp','_onRefRangeChange','/object/','update','PERMISSION_REJ','_drawTextRange','hide','collaboration-session-retry','clear','_initMergeInterceptor','_toggleOnline','target','_throwTelemetryCollaborationNewChangeset','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_univerInstanceService','fillText','[CollaborationSessionService]','m1Prime','number','toLowerCase','propertyIsEnumerable','onStateChange','objectType','onTransformIME','4145tuuwiI','change$','initWorkbookPermissionChange','[PendingState]:\x20received\x20rejection.','FAIL','UPDATE_CURSOR','HEARTBEAT_TIMEOUT','setAlpha','attrs','none','exhaustSavingTask','getTypeOfUnitDisposed$','interceptor','_onRemoteRetry','_resendTimer','_transformUndoRedoStack','close$','SHOULD_CLOSE_CONN','_logService','sessionStatus','collaboration.single-unit.warning','init','cursorInfo','NOT_FOUND','onRemoteChangeset','SYNCED','getImageSourceCache','collabSubmitChangesetUrl','isActive','HttpExport','_getSnapshotAPIPrefix','data','_initRequestHeader','_getSendChangesetTimeout','push','_updateState','_state$','getCollabCursors$','[CollaborationEntity]','ALREADY_EXISTS','_clearCollaborationTimeoutTimer','UnitSnapshot','map','_onMessage','selection','onRemoteRetry','\x20-\x20','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','VIEW_MAIN','save\x20fail\x20reason\x20is\x20','_onRemoteChangeset','_handleLeaveEvent','_range','_handleHeartbeatEvent','resolve','liveShareNewHost','onTransformRemoteChangesetByIMECache','_selfUnitIDs','history','ERROR_IMAGE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','now','entries','_scheduleSaving','_createHandler','disableLocalCache','enableOfflineEditing','_lastPointer','APPLY_REVISION_CONFILICT','restore','onReady','appendMutation','startsWith','APPLY_PERMISSION_DENIED','values','onSendChangeset','SEND_CHANGESET_TIMEOUT','split','IDLE','colorChannel1','_joinRoom','getLatestCsReqIdBySid','collabStatus.synced','createSocket','_clearUndo','onMissedChangesetFetched','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','refreshPermission','column','off-line-single','_docStateChangeManagerService','subunit','_event$','getOffsetConfig','_waitCount','UNIVER_COLLABORATION_CLIENT_PLUGIN','snapshot','_createInitialStateImpl','getRenderById','slice','call','_unitStatus','PSEUDO_FETCH_MISSING_RESULT','_handleJoinEvent','_updateSubUnitFromURLParams','[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.','_onLocalMutation','_getRedoStack','/new_changes','_refreshCollabCursors','newValue','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_shouldReportTelemetry','/rev/','getCollabEntity','cursorInfo$','UNIVER_DOC','defineProperty','objectID','children','USERS_ENTER','image/png','Unknown\x20user','height','UNIVER_PROJECT','\x20in\x20_schedule.','APPLY_REJECT','unitId','max','M0\x200H16V16H0z','_color','ranges','_urlService','SNAPSHOT_URL_KEY','extend','_startDocCollabCursor','url(#$1','setParam','file','_registerDependencies','code','0\x200\x2017\x2016','getOwnPropertyDescriptor','UNKNOWN_CODE','_telemetryInfo','black','endColumn','UnitEmbedded','_collabSessionService','socket$','FETCH_MISSING','&source=','_onConflict','snapshotServerUrl','_scene','_syncEditingCollabCursorService','requestParams','findNodePositionByCharIndex','method','onCommentUpdate','/role','ENSURE_SNAPSHOT_EXECUTION','red300','[OfflineState]:\x20received\x20rejection.','1em','YUUMI_RATE_OVER_LIMIT','setWaitCount','docStateChange$','pushState','_http','offline','LIVESHARE_REQUEST_HOST','doc.mutation.rich-text-editing','_socket','_status$','YUUMI_UNABLE_LOAD_URL','currentColor','getItem','NOT_COLLAB','UNDEFINED','awaiting_with_pending','concat','changesets','_getSignURL','_scheduleHeartbeat','row','Error','xlink:href','_notificationService','searchParams','_getAPIPrefixPath','url','POST','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_socketService','_rescheduleHeartbeat','bind','image/jpeg','headers','ONLINE','COMMENT_UPDATE','title','setUndoRedoMutationParamsCache','allowed','memberID','_onCursorDelete','OTHER_CLIENTS_EDITING','_decreaseWaiting','AWAITING','apply','_docTransformSelectionsService','getRangePointData','univer-online-status','_handleEvent','_drawAnchor','signUrlServerUrl','startColumn','_unitOnClients','localeService','_compressMutationService','rev','/universer-api/oidc/authpage','setActiveRange','/unit/','resize','_updateLocalCache','_members','_resendWithTimeout','roomMembers','registerRefRange','permission.content','_entities','sid','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','retryConnectingInterval','reqId','_memberService','putCollaborators','registerHTTPInterceptor','isPermissionRej','SUCCUSS','/object','_undoRedoService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getRoom','storage','commentUpdateEvent','workbook','prototype','/block/','_submitChangeset','clipPath','replace','getCurrent','generateRandomId','collab-client.tooltip.reconnect','CONFLICT','_telemetryService','&to=','disposeWithMe','_ensureSubject','_collaborationTimeoutTimer','_removeClearOtherTimer','getViewport','_changesetReqId','_refRangeService','collab-text-range-','_resendTimeout','_queuedRemoteChangesets','incrementRevOfUnit','requireSession','getUnhiddenWorksheets','_onCombEvent','Undefined','getMergeData','has','[DataLoaderController]','x-univer-host','onPointerEnter$','_getScale','delete','members','_anchorDot','[CollaborationUndoRedoService]','collabStatus.syncing','transformByState','_acknowledgedAwaitingChangeset','_sessions','_socketMessageSubscription','_showConflictNotification','path','_changesetSessionId','APPLY_DUPLICATED','reject','from','svg','status$','sheetID','image/bmp','702116hpAywd','error','div','[CollaborationState]:\x20apply\x20error!','replaceTextRanges','_clearScheduledTask','getUnitType','_fetchMissChangesets','loadOfflineData','_unitID','collabStatus.fetchMiss','_roomMembers','_docSyncEditingCollabCursorService','fetchThroughInterceptors','createInstance','transformRemoteChangeset','APPLY_NON_SEQUENTIAL_REVISION','UUID','responseType','_messageService','628816NZDLqn','[CollaborationSessionService]:\x20socket\x20error','setShapeProps','text','_getCtorByUniverType','auth.needGotoLoginAlert','randomUUID','_listenToOnlineEvent','endRow','UNIVER_SLIDE','replaceState','_removeCollabCursors','deleteCollaborator','_sendHeartbeatTimer','getSheetId','_collaborationSessionService','HELLO','_updateCollabCursors','pauseCollaboration','_eventUnsubscribe','_transformService','_shapes','onPointerLeave$','#FFF','equals','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_cursors','collaboration-client.offline-data-not-saved','_onConnectionOpen','_localeService','_hover','fill','_clearOtherTimers','getTypeOfUnitAdded$','0\x200\x2016\x2016','SNAPSHOT_HAS_BEEN_REMOVED','encode','onTransformSelections','origin','\x0aAfter:\x20','_loadSheet','newCsEvent','enableLocalCache','onRemoteAck','_getUndoStack','put','withCredentials','SUBMIT_CHANGESET','Error\x20on\x20receiving\x20event','getAncestorScale','_remoteChangesetQueue','close','PENDING','asObservable','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','addEventListener','assignAColorForMemberID','online','session.room-full','univer-online-status-icon','add','updatePermissionPoint','filter','_stopTelemetryCollaborationNewChangeset','_substituteRedoStack','/universer-api/comb','with','_collabCursorController','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_createInitialState','USERS_LEAVE','_commandService','_updateLocalCursor','roomMembers$','m2Prime','roles','triggerDblclick','debug','_anchor','_localCacheService','blue400','_clearRedo','getVpScrollXYInfoByPosToVp','bottom','UNIVER_UNKNOWN','_isPermissionRej','LEAVE','onTransformChange$','NEW_CHANGESETS','moveTo','_cursorInfo$','selections','isEditing','reduce','then','_replayCachedMutations','_configService','_registerRenderDependencies','_handler','dispose$','getSheetBySheetId','min','_retryCount','reverse','/-/object/-/batch_allowed','COLLAB_SUBMIT_CHANGESET_URL','createElement','gold400','eventID','_executeRemoteChangeset','RETRY_CONNECTING_MAX_COUNT','revision','_updateStatus','c1Prime','_createSocket','onMouseMove','univer-online-status-title','subscribeEvent','_sheetTransformSelectionsService','color','_transformPreviousActiveRange','_instanceService','unshift','FETCH_MISS','_sessionStatus$','listCollaborators','_collabCursorState$','saveOfflineData','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','_state','_docTransformIMECacheService','_name','UPDATE_PERMISSION_OBJ','addImageSourceCache','_HTTPService','loginUrlKey','_docSkeletonManagerService','[PendingState]:\x20received\x20acknowledgement.','startTime','_session','catch','?url=','socket\x20open.','DEFAULT_FILE_NAME','complete','HEARTBEAT','forEach','size','onRemoteRej','range','visibilitychange','_initStatusComponent','onStarting','_type','onlyLocal','_transitionLocked','type','_assignedColors','all','fillRule','activeSheet$','INGEST','_hovered','LIVESHARE_TERMINATE','length','transformIMECache','3ltooxs','saveImage','getUndoRedoMutationParamsCache','_transformUndoredo','LICENSE_MAX_UNITS_EXCEEDED','/allowed','_startSheetCollabCursor','font','tag','_injector','_cursorShapes','JOINING','_backgroundColor','cmd','...','getCurrentRevOfUnit','override','HttpImport','duration','toRgbString','defs','loadDoc','show','create','socket\x20close','_transformStack','includes','displayName','_transformIMECache','setCurrentUser','[OfflineState]:\x20received\x20acknowledgement.','session.connection-failed','focused$','_beforeCloseService','UNAUTHENTICATED','_heartbeatTimer','setConfig','backgroundColor','pipe','[SyncedState]:\x20received\x20acknowledgement.','function','getParam','isArray','getSheetBlock','JOIN','_onRecvEvent','INVALID_ARGUMENT','_revisionService','_clearLocalCache','transformChangesets','collab-rect-range-','clearInterval','getActiveSheet','result','MSG_FOR_ERROR','_snapshotServerService','random','post','_tryReconnect','_scheduleTimestamp','_onJoinRoomEvent','_startCollaboration','_initEventListeners','10lOXrdo','_disabled','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/-/object/list','LIVESHARE_OPERATION','#fff','uni.network.url-service','_getAnchorBounding','measureText','_initCloseConn','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','icon','connection\x20error','fetchMiss','getTime','session.collaboration-timeout','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','routeKey','joinEvent','LOGIN_URL_KEY','editingUnit','_setupBeforeClosingHandler','_getSaveTimeout','assign','roomInfos','closeSession','hasOwnProperty','COMPRESS_MUTATION_APPLY','FromArray','_awaitingChangeset','getDocRanges','fromCollab','executeCommand','_lockTransition','patch','CHANGESET_REJ','_userManagerService','_commentUpdate$','InsertRangeMoveDownCommandId','src','_transformSelections','_saveTaskMap','_httpService','Univer','MoveRangeCommandId','InsertColCommandId','popstate','_change$','indexOf','transformStack\x20failed!','pending','session.will-retry','_retryConnectingTimer','getUnitId','labelPosition','_localStorageService','_replaceFileID','_syncEditingCollabCursor','DeleteRangeMoveUpCommandId','getResourcesRequest','objectActions','_applyRemoteChangeset','ERROR_EXCEED_SIZE','UNRECOGNIZED','CHANGESET_REVISION_CONFILICT','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_snapshotService','/collaborator','transformMutationsWithChangeset','_sheetSkeletonManagerService','22etRBUw','open$','deepClone','updateCollaborator','_textBubble','collaMsg','_context','getUnitStatus$','image/gif','_config','_waitForHeartbeatResponse','AUTHZ_URL_KEY','sessionStatus$','status','getUnit','joinRsp','/universer-api/file/{fileID}/sign-url','updateMember','_onRemoteRejected','LICENSE_EXPORT_SIZE_EXCEEDED','awaiting','univer-pro.collaboration-client.single-active-unit-service','objects','textRanges','conflict','_schedule','_onCursorUpdate','collabStatus.notCollab','UNIVER_SHEET','_clearTimeoutTimer','on-line-single','_renderManagerService','hovered','_saveCache','message$','/universer-api/snapshot/','{fileID}','parse','1671775yJDGRE','baseRev','removeParam','_scheduleCollaborationTimeoutTimer','RECV','_cachedData','confirm','verdancy600','univerjs-icon\x20univerjs-icon-','sendChangesetTimeout','set','_toggleOffline','state','batchAllowed','dispose','CHANGESET_ACK','visibilityState','YUUMI_URL_COL_OUT_OF_RANGE','UNKNOWN_CMD','purple300','getImage','transform','getOwnPropertySymbols','_document','_entityInit$','_ws','HEADER_MENU','on-line-single_clip0_910_349','setTimeout','engine','onSyncEditingCollabCursor','subUnitId','getMember','_hideTimer','getValue','DeleteRangeMoveLeftCommandId','whenReady','translate(.97)','getUnitOnRev','clearTimeout','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_clearHeartbeatTimer','/universer-api/snapshot','flatMap','[OfflineState]:\x20received\x20changeset.','_getSheetObject','getWorkbookSelections','find','permissionRejEvent','_labelPosition','action','_getUploadFileURL','removeMember','_getCurrentRevision','EXCHANGE_SIGN_URL_SERVER_URL_KEY','saveChangeset','capture','AWAITING_WITH_PENDING','synced','submit\x20changeset\x20error!','_uiPartsService','location','getCurrentUser','INTERNAL_ERROR','updateOfflineData','_getLoginPath','\x20to\x20','_onUserJoin','LIVESHARE_NEW_HOST','_unlockTransition','idSuffix','_removeRoom','_scheduleClearOtherTimer','use','transformMutation','toString','_transformRemoteChangesetByIMECache','TOO_MANY_REQUESTS','userID','_online','COLLAB_WEB_SOCKET_URL','univer-pro.collaboration-client-socket-service','compose','fillStyle','sheets','send','45rCEslm','conflict.title','_id','_permissionService','_listenToOfflineEvent','_singleActiveUnitService','getCellPositionByOffset','name','_cursor','symbol'];_0x26a0=function(){return _0x1af7e7;};return _0x26a0();}let q=class extends ue{constructor(_0x1ecd96,_0x35ae3,_0xa9d91d,_0xdc435b,_0x382bfd,_0x5d3cc3,_0x3339d1,_0x42af0b,_0x840f62,_0x97f311,_0x38b9b1,_0x551564,_0x58e405){const _0x58b848=_0x513b3b;super(_0x1ecd96,_0x35ae3,_0xa9d91d,_0xdc435b,_0x382bfd,_0x97f311,_0x58e405,_0x42af0b,_0x840f62),l(this,_0x58b848(0x3a7),_0x58b848(0x1e4)),l(this,_0x58b848(0x23b),0x0),l(this,'_resendTimer'),l(this,_0x58b848(0x443)),(this['_injector']=_0x3339d1,this['_logService']=_0x38b9b1,this[_0x58b848(0x283)]=_0x551564,_0x5d3cc3&&(this['_resendTimer']=_0x5d3cc3,this[_0x58b848(0x443)]=this['_resendTimer'][_0x58b848(0x465)](({reqId:_0x2687cb,timeout:_0x2f6b3f})=>{const _0x746a71=_0x58b848;this[_0x746a71(0x213)](_0x2687cb,_0x2f6b3f);})));}['appendMutation'](_0x28b12f){const _0x4e5ab2=_0x513b3b;return this[_0x4e5ab2(0x47a)][_0x4e5ab2(0x152)](_0x28b12f),this;}[_0x513b3b(0x148)](_0x192c44){const _0x54a9a0=_0x513b3b;if(this[_0x54a9a0(0x425)](_0x192c44))return this[_0x54a9a0(0x260)](),this['_injector'][_0x54a9a0(0x269)](B,this[_0x54a9a0(0x44f)],this[_0x54a9a0(0x30b)],this['_awaitingChangeset'],this[_0x54a9a0(0x47a)],null,[_0x192c44],this[_0x54a9a0(0x2d1)]);try{const _0x1ceb2f=this['_transformService']['transformChangesets']([_0x192c44],[this[_0x54a9a0(0x371)]],!0x1);if(_0x987caa(_0x1ceb2f)){const {c1Prime:_0x2c6417,c2Prime:_0x4b6cc4}=_0x1ceb2f,_0x3033f2=this['_transformService'][_0x54a9a0(0x398)](_0x2c6417[0x0],this[_0x54a9a0(0x47a)]);if(_0x16b713(_0x3033f2)){const {c1Prime:_0x390eb6,m2Prime:_0x258173}=_0x3033f2;return this['_executeRemoteChangeset'](_0x390eb6),_0x4b6cc4[0x0][_0x54a9a0(0x3c1)]=this[_0x54a9a0(0x3f5)](),this[_0x54a9a0(0x260)](),this['_injector']['createInstance'](q,this['unitID'],this[_0x54a9a0(0x30b)],_0x4b6cc4[0x0],_0x258173,this[_0x54a9a0(0x2d1)],void 0x0);}throw _0x3033f2[_0x54a9a0(0x25c)];}throw _0x1ceb2f[_0x54a9a0(0x25c)];}catch(_0x14f089){return this['_logService']['error'](_0x14f089),this[_0x54a9a0(0x1c8)](!0x1);}}['onRemoteAck'](_0x519bde){const _0x1f4662=_0x513b3b;if(this[_0x1f4662(0x260)](),this[_0x1f4662(0x425)](_0x519bde))return this[_0x1f4662(0x31e)][_0x1f4662(0x269)](B,this['unitID'],this['type'],null,this[_0x1f4662(0x47a)],this[_0x1f4662(0x371)],[],this[_0x1f4662(0x2d1)]);this[_0x1f4662(0x42d)]();const _0x3d94c4=this[_0x1f4662(0x31e)]['createInstance'](X,this[_0x1f4662(0x44f)],this[_0x1f4662(0x30b)],this[_0x1f4662(0x47a)],this[_0x1f4662(0x2d1)]);return _0x3d94c4['_schedule'](),_0x3d94c4[_0x1f4662(0x211)](),_0x3d94c4;}[_0x513b3b(0x303)](_0x477701){const _0x1ad6ea=_0x513b3b;return this[_0x1ad6ea(0x1c8)](!!(_0x477701!=null&&_0x477701['isPermissionRej']));}[_0x513b3b(0x15d)](_0x3786ef){const _0xd335e3=_0x513b3b;return this['_resendTimeout']>Ys?this[_0xd335e3(0x420)]():(this[_0xd335e3(0x4dc)]=Gs(this['_resendTimeout'],{'timeout':this[_0xd335e3(0x23b)],'reqId':_0x3786ef[_0xd335e3(0x21b)]}),this[_0xd335e3(0x443)]=this[_0xd335e3(0x4dc)][_0xd335e3(0x465)](({reqId:_0x11eaea,timeout:_0x7f91d4})=>{this['_resendWithTimeout'](_0x11eaea,_0x7f91d4);}),this);}[_0x513b3b(0x420)](){const _0x11a1cd=_0x513b3b;return this[_0x11a1cd(0x260)](),this[_0x11a1cd(0x31e)][_0x11a1cd(0x269)](te,this[_0x11a1cd(0x44f)],this[_0x11a1cd(0x30b)],this[_0x11a1cd(0x371)],this[_0x11a1cd(0x47a)],this[_0x11a1cd(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x5a86bc=_0x513b3b;this[_0x5a86bc(0x2d1)][_0x5a86bc(0x17b)](this[_0x5a86bc(0x371)]);}[_0x513b3b(0x1c8)](_0x35ea2d){const _0x2c940f=_0x513b3b;return this[_0x2c940f(0x260)](),this[_0x2c940f(0x31e)][_0x2c940f(0x269)](ee,this[_0x2c940f(0x44f)],this['type'],null,this[_0x2c940f(0x47a)],this[_0x2c940f(0x2d1)],_0x35ea2d);}[_0x513b3b(0x213)](_0x430ca9,_0x2f8528){const _0x474052=_0x513b3b;var _0x1a76e3;_0x430ca9===((_0x1a76e3=this[_0x474052(0x371)])==null?void 0x0:_0x1a76e3[_0x474052(0x21b)])&&(this[_0x474052(0x42c)](),this[_0x474052(0x23b)]=_0x2f8528===0x0?0x3e8:_0x2f8528*0x2);}[_0x513b3b(0x260)](){const _0x3829df=_0x513b3b;var _0x53123e;(_0x53123e=this['_sender'])==null||_0x53123e[_0x3829df(0x48a)](),this[_0x3829df(0x23b)]=0x0;}};q=_e([f(0x6,_0x53ed15(_0x3165b6)),f(0x7,_0x53ed15(_0x231b85)),f(0x8,_0x53ed15(w)),f(0x9,_0x8348c),f(0xa,_0x385fd2),f(0xb,_0x2e5ae8),f(0xc,_0x3e29a6)],q);let ee=class extends ue{constructor(_0x1aa771,_0x5771dc,_0x554e65,_0x16d453,_0x2d544e,_0x29d7bc=!0x1,_0x3bb1f0,_0x3cad0a,_0x1dc5aa,_0x3c4a86,_0x1de5ee,_0x31670f,_0x1e1169){const _0x5cd002=_0x513b3b;super(_0x1aa771,_0x5771dc,_0x554e65,_0x16d453,_0x2d544e,_0x3cad0a,_0x1dc5aa,_0x1de5ee,_0x3c4a86),l(this,'status',_0x5cd002(0x3b2)),(this[_0x5cd002(0x2c4)]=_0x29d7bc,this[_0x5cd002(0x419)]=_0x3bb1f0,this[_0x5cd002(0x28c)]=_0x31670f,this[_0x5cd002(0x1ec)]=_0x1e1169,this[_0x5cd002(0x251)](),this[_0x5cd002(0x345)](),this[_0x5cd002(0x48c)]());}[_0x513b3b(0x177)](){return this;}[_0x513b3b(0x148)](){return this;}[_0x513b3b(0x29a)](){return this;}[_0x513b3b(0x303)](){return this;}[_0x513b3b(0x15d)](){return this;}[_0x513b3b(0x420)](){return this;}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x422e3=_0x513b3b;throw new Error(_0x422e3(0x3e8));}['_clearLocalCache'](){const _0x5a3b3d=_0x513b3b;this[_0x5a3b3d(0x2be)][_0x5a3b3d(0x400)](this['unitID'],this[_0x5a3b3d(0x30b)],null,[]);}['_showConflictNotification'](){const _0x1f5d18=_0x513b3b;this['_isPermissionRej']?this[_0x1f5d18(0x1ec)][_0x1f5d18(0x32b)]({'title':this[_0x1f5d18(0x28c)]['t']('permission.title'),'content':this[_0x1f5d18(0x28c)]['t'](_0x1f5d18(0x216)),'type':_0x1f5d18(0x25c),'duration':0x0}):this[_0x1f5d18(0x1ec)][_0x1f5d18(0x32b)]({'title':this[_0x1f5d18(0x28c)]['t'](_0x1f5d18(0x417)),'content':this[_0x1f5d18(0x28c)]['t']('conflict.content'),'type':_0x1f5d18(0x25c),'duration':0x0});}[_0x513b3b(0x48c)](){const _0x1844af=_0x513b3b;this[_0x1844af(0x419)][_0x1844af(0x2ac)](new _0x40e1c4(this[_0x1844af(0x44f)])['id'],!0x1);}};ee=_e([f(0x6,_0x53ed15(_0x5f5b14)),f(0x7,_0x8348c),f(0x8,_0x3e29a6),f(0x9,_0x53ed15(w)),f(0xa,_0x53ed15(_0x231b85)),f(0xb,_0x53ed15(_0x1deb41)),f(0xc,_0x1380e0)],ee);let te=class extends ue{constructor(_0x5a4e6b,_0x3ebac1,_0x33812e,_0x4e0a8e,_0x2972fb,_0x8efdf8,_0x1e0f7c,_0x3e9212,_0x2ab0a7,_0x56a598){const _0x314e9d=_0x513b3b;super(_0x5a4e6b,_0x3ebac1,_0x33812e,_0x4e0a8e,_0x2972fb,_0x2ab0a7,_0x56a598,_0x1e0f7c,_0x3e9212),l(this,_0x314e9d(0x3a7),_0x314e9d(0x1da)),this['_injector']=_0x8efdf8;}[_0x513b3b(0x177)](_0x4ec510){const _0xe9b4d7=_0x513b3b;return this[_0xe9b4d7(0x47a)]['push'](_0x4ec510),this['_updateLocalCache'](),this;}[_0x513b3b(0x148)](_0x55e5db){const _0x31d782=_0x513b3b;throw new Error(_0x31d782(0x3ec));}[_0x513b3b(0x29a)](){const _0x969f53=_0x513b3b;throw new Error(_0x969f53(0x333));}['onRemoteRej'](){const _0x562b61=_0x513b3b;throw new Error(_0x562b61(0x1d3));}[_0x513b3b(0x15d)](){return this;}[_0x513b3b(0x420)](){return this;}[_0x513b3b(0x4b2)](){const _0x1a105b=_0x513b3b,{_injector:_0x1fc4ec,_pendingMutations:_0x5e01be,_awaitingChangeset:_0x439af0,unitID:_0x21734e,_handler:_0x5b1e07,type:_0x198746}=this,_0x24d077=Ks(_0x1fc4ec,_0x21734e,_0x198746,_0x439af0,_0x5e01be,_0x5b1e07);return _0x24d077 instanceof X?_0x24d077[_0x1a105b(0x3b3)]():(_0x24d077 instanceof q||_0x24d077 instanceof Q)&&_0x24d077[_0x1a105b(0x42c)](),_0x24d077;}[_0x513b3b(0x42c)](){const _0x1b07e5=_0x513b3b;throw new Error(_0x1b07e5(0x356));}};te=_e([f(0x5,_0x53ed15(_0x3165b6)),f(0x6,_0x53ed15(_0x231b85)),f(0x7,_0x53ed15(w)),f(0x8,_0x8348c),f(0x9,_0x3e29a6)],te);let B=class extends ue{constructor(_0x4866d7,_0x638fec,_0x277a25,_0x1806ad,_0x2ce2c9,_0x476965,_0x3bd0fc,_0x40aac1,_0x1a80f1,_0x2c5880,_0x526bb6,_0x54269c,_0x4ad9c0,_0x1f246f){const _0x5df2e0=_0x513b3b;super(_0x4866d7,_0x638fec,_0x277a25,_0x1806ad,_0x3bd0fc,_0x54269c,_0x4ad9c0,_0x1a80f1,_0x2c5880),l(this,_0x5df2e0(0x3a7),_0x5df2e0(0x44e)),(this[_0x5df2e0(0x24e)]=_0x2ce2c9,this['_queuedRemoteChangesets']=_0x476965,this[_0x5df2e0(0x31e)]=_0x40aac1,this['_logService']=_0x526bb6,this[_0x5df2e0(0x283)]=_0x1f246f);}[_0x513b3b(0x185)](_0x1698ec){const _0x26d12e=_0x513b3b;try{const _0x55487f=[..._0x1698ec,...this[_0x26d12e(0x23c)]],_0x5a6fc3=[this[_0x26d12e(0x371)]||this[_0x26d12e(0x24e)]][_0x26d12e(0x2ad)](_0xb5e3f4=>!!_0xb5e3f4);let _0x156610,_0x27ad49;if(_0x5a6fc3['length']){const _0x366697=this['_transformService'][_0x26d12e(0x346)](_0x55487f,_0x5a6fc3,!0x1);if(!_0x987caa(_0x366697))throw _0x366697[_0x26d12e(0x25c)];_0x156610=_0x366697[_0x26d12e(0x2e0)],_0x27ad49=_0x366697[_0x26d12e(0x485)];}else _0x156610=_0x55487f,_0x27ad49=[];let _0x4cd347=this[_0x26d12e(0x47a)];_0x156610[_0x26d12e(0x301)](_0x3185e4=>{const _0x11c48f=_0x26d12e;let _0x513ef3;if(_0x4cd347[_0x11c48f(0x313)]){const _0x3b0803=this['_transformService'][_0x11c48f(0x398)](_0x3185e4,_0x4cd347);if(!_0x16b713(_0x3b0803))throw _0x3b0803['error'];_0x513ef3=_0x3b0803[_0x11c48f(0x2e0)],_0x4cd347=_0x3b0803[_0x11c48f(0x2b9)];}else _0x513ef3=_0x3185e4;this[_0x11c48f(0x2dc)](_0x513ef3);}),this[_0x26d12e(0x24e)]&&this['_incrementRevisionNumber'](),this[_0x26d12e(0x371)]&&_0x27ad49[_0x26d12e(0x313)]&&(_0x27ad49[0x0]['baseRev']=this[_0x26d12e(0x3f5)]());let _0x391e60;if(this[_0x26d12e(0x371)]&&_0x4cd347['length']!==0x0)_0x391e60=this['_injector'][_0x26d12e(0x269)](q,this[_0x26d12e(0x44f)],this[_0x26d12e(0x30b)],_0x27ad49[0x0],_0x4cd347,this[_0x26d12e(0x2d1)],void 0x0);else{if(this[_0x26d12e(0x371)]&&_0x4cd347[_0x26d12e(0x313)]===0x0)_0x27ad49[0x0]['baseRev']=this['_getCurrentRevision'](),_0x391e60=this[_0x26d12e(0x31e)][_0x26d12e(0x269)](Q,this[_0x26d12e(0x44f)],this[_0x26d12e(0x30b)],_0x27ad49[0x0],this[_0x26d12e(0x2d1)]);else{if(_0x4cd347[_0x26d12e(0x313)]!==0x0){const _0x4a9229=this['_injector']['createInstance'](X,this['unitID'],this[_0x26d12e(0x30b)],_0x4cd347,this[_0x26d12e(0x2d1)]);_0x4a9229[_0x26d12e(0x3b3)](),_0x391e60=_0x4a9229;}else _0x391e60=this['_injector'][_0x26d12e(0x269)](pe,this['unitID'],this[_0x26d12e(0x30b)],this['_handler']);}}return _0x391e60['_updateLocalCache'](),_0x391e60;}catch(_0xabca39){return this[_0x26d12e(0x4e0)]['error']('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0xabca39),this[_0x26d12e(0x31e)][_0x26d12e(0x269)](ee,this[_0x26d12e(0x44f)],this[_0x26d12e(0x30b)],this['_awaitingChangeset'],this[_0x26d12e(0x47a)],this['_handler'],!0x1);}}[_0x513b3b(0x42c)](){const _0x268391=_0x513b3b;throw new Error(_0x268391(0x1f1));}['appendMutation'](_0x797caa){const _0x5462c4=_0x513b3b;return this[_0x5462c4(0x47a)]['push'](_0x797caa),this;}['onRemoteChangeset'](_0x388b43){const _0x125890=_0x513b3b;return this[_0x125890(0x23c)][_0x125890(0x152)](_0x388b43),this;}['onRemoteAck'](_0x45df11){const _0x48a2be=_0x513b3b;if(this[_0x48a2be(0x371)])return this[_0x48a2be(0x24e)]=this['_awaitingChangeset'],this[_0x48a2be(0x371)]=null,this;throw new Error(_0x48a2be(0x364));}['onRemoteRej'](_0x421e24){const _0x2e046f=_0x513b3b;return this['_onConflict'](!!(_0x421e24!=null&&_0x421e24[_0x2e046f(0x21f)]));}[_0x513b3b(0x15d)](){return this;}[_0x513b3b(0x420)](){const _0x51b05b=_0x513b3b;return this[_0x51b05b(0x31e)][_0x51b05b(0x269)](te,this[_0x51b05b(0x44f)],this[_0x51b05b(0x30b)],this[_0x51b05b(0x371)],this['_pendingMutations'],this['_handler']);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x1c8)](_0x10336f){const _0x41f457=_0x513b3b;return this[_0x41f457(0x31e)][_0x41f457(0x269)](ee,this['unitID'],this['type'],this[_0x41f457(0x371)],this[_0x41f457(0x47a)],this[_0x41f457(0x2d1)],_0x10336f);}};B=_e([f(0x7,_0x53ed15(_0x3165b6)),f(0x8,_0x53ed15(_0x231b85)),f(0x9,_0x53ed15(w)),f(0xa,_0x385fd2),f(0xb,_0x8348c),f(0xc,_0x3e29a6),f(0xd,_0x2e5ae8)],B);function Ks(_0x56d15f,_0x35e6c3,_0x316ca8,_0x3c1fcc,_0x580152,_0x4033da){const _0x32ebe7=_0x513b3b;return _0x3c1fcc&&_0x580152[_0x32ebe7(0x313)]?_0x56d15f[_0x32ebe7(0x269)](q,_0x35e6c3,_0x316ca8,_0x3c1fcc,_0x580152,_0x4033da,void 0x0):_0x3c1fcc?_0x56d15f[_0x32ebe7(0x269)](Q,_0x35e6c3,_0x316ca8,_0x3c1fcc,_0x4033da):_0x580152[_0x32ebe7(0x313)]?_0x56d15f[_0x32ebe7(0x269)](X,_0x35e6c3,_0x316ca8,_0x580152,_0x4033da):_0x56d15f[_0x32ebe7(0x269)](pe,_0x35e6c3,_0x316ca8,_0x4033da);}var Dr=Object[_0x513b3b(0x1a5)],wr=Object[_0x513b3b(0x1be)],Wt=(_0x52ab6d,_0x71693b,_0x2fbdb7,_0x3ad0fa)=>{const _0x257e1d=_0x513b3b;for(var _0x1b2991=_0x3ad0fa>0x1?void 0x0:_0x3ad0fa?wr(_0x71693b,_0x2fbdb7):_0x71693b,_0x19f318=_0x52ab6d[_0x257e1d(0x313)]-0x1,_0x41316d;_0x19f318>=0x0;_0x19f318--)(_0x41316d=_0x52ab6d[_0x19f318])&&(_0x1b2991=(_0x3ad0fa?_0x41316d(_0x71693b,_0x2fbdb7,_0x1b2991):_0x41316d(_0x1b2991))||_0x1b2991);return _0x3ad0fa&&_0x1b2991&&Dr(_0x71693b,_0x2fbdb7,_0x1b2991),_0x1b2991;},p=(_0x234ca7,_0x3fef2a)=>(_0x4faf48,_0x28f7b5)=>_0x3fef2a(_0x4faf48,_0x28f7b5,_0x234ca7);let qe=class extends _0x346899{constructor(_0xdd140,_0x22068d,_0x5481a7,_0x33e573,_0x14ceae,_0x10389d,_0x32489b,_0x125774,_0x3cceb3,_0x44dab1,_0x2d356a,_0x5133dd,_0x41f33b){const _0x5740eb=_0x513b3b;super(),l(this,_0x5740eb(0x154),new _0x1edb16(null)),l(this,'state$',this['_state$'][_0x5740eb(0x2a4)]()),l(this,_0x5740eb(0x2f0)),l(this,_0x5740eb(0x4ac),!0x1),l(this,_0x5740eb(0x253),''),l(this,_0x5740eb(0x238),0x0),l(this,_0x5740eb(0x258),this['state$'][_0x5740eb(0x33b)](_0x1744c3(_0x462379=>_0x462379?_0x462379[_0x5740eb(0x3a7)]:P[_0x5740eb(0x44c)]),_0x1fbf92(0x1))),l(this,_0x5740eb(0x30a),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x5740eb(0x44f)]=_0xdd140,this[_0x5740eb(0x456)]=_0x22068d,this['_type']=_0x5481a7,this[_0x5740eb(0x31e)]=_0x33e573,this[_0x5740eb(0x2be)]=_0x14ceae,this[_0x5740eb(0x20b)]=_0x10389d,this['_localeService']=_0x32489b,this[_0x5740eb(0x344)]=_0x125774,this[_0x5740eb(0x4e0)]=_0x3cceb3,this['_commandService']=_0x44dab1,this[_0x5740eb(0x26e)]=_0x2d356a,this[_0x5740eb(0x419)]=_0x5133dd,this[_0x5740eb(0x41b)]=_0x41f33b);}get[_0x513b3b(0x3cc)](){const _0x289cca=_0x513b3b;return this[_0x289cca(0x2f0)];}async['init'](){const _0x49d597=_0x513b3b;if(this['state'])throw new Error(_0x49d597(0x2a5));await this[_0x49d597(0x49c)]();}[_0x513b3b(0x281)](){const _0x32fa39=_0x513b3b;return this[_0x32fa39(0x4ac)]=!0x0,_0x29caef(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x513b3b(0x153)](_0x10a6ec){const _0x496d46=_0x513b3b;this[_0x496d46(0x2f0)]=_0x10a6ec,this[_0x496d46(0x154)][_0x496d46(0x48d)](_0x10a6ec);}async[_0x513b3b(0x49c)](){const _0x3df1c5=_0x513b3b;var _0x49967d;this[_0x3df1c5(0x153)](await this[_0x3df1c5(0x2b4)]()),this[_0x3df1c5(0x41b)]&&((_0x49967d=this[_0x3df1c5(0x41b)])==null||_0x49967d[_0x3df1c5(0x368)](this[_0x3df1c5(0x44f)]),this[_0x3df1c5(0x233)](this['_singleActiveUnitService'][_0x3df1c5(0x3a1)](this['unitID'])[_0x3df1c5(0x465)](_0x4e218e=>{const _0x44df80=_0x3df1c5;this[_0x44df80(0x4e0)][_0x44df80(0x2bc)](_0x44df80(0x156),'editing\x20status\x20changed\x20to',_0x4e218e),_0x4e218e===Fs[_0x44df80(0x1fe)]?(this['_messageService'][_0x44df80(0x32b)]({'content':this[_0x44df80(0x28c)]['t'](_0x44df80(0x4e2)),'type':_0x1f1b3b[_0x44df80(0x442)]}),this[_0x44df80(0x419)][_0x44df80(0x2ac)](new _0x40e1c4(this[_0x44df80(0x44f)])['id'],!0x1)):this[_0x44df80(0x419)]['updatePermissionPoint'](new _0x40e1c4(this[_0x44df80(0x44f)])['id'],!0x0);})));let _0x4c5fc5=!0x1;return this['disposeWithMe'](this['session'][_0x3df1c5(0x3a6)][_0x3df1c5(0x465)](_0x2fc646=>{const _0x1ceac4=_0x3df1c5;_0x2fc646===Y['ONLINE']?this[_0x1ceac4(0x4c0)](_0x4c5fc5):_0x2fc646===Y[_0x1ceac4(0x44c)]&&(_0x4c5fc5=!0x0,this[_0x1ceac4(0x3cb)]());})),this['disposeWithMe'](this['session']['event$'][_0x3df1c5(0x465)](_0x52e237=>{const _0x701ee9=_0x3df1c5;try{switch(_0x52e237['eventID']){case _0x46c90b['NEW_CHANGESETS']:{this[_0x701ee9(0x162)](_0x80fd6(_0x52e237['data']));break;}case _0x46c90b[_0x701ee9(0x3cf)]:{this['_onRemoteACK'](_0x52e237[_0x701ee9(0x14f)]);break;}case _0x46c90b['CHANGESET_REJ']:{this[_0x701ee9(0x3ac)]();break;}case _0x46c90b['CHANGESET_SHOULD_RETRY']:{this[_0x701ee9(0x4db)](_0x52e237['data']);break;}case _0x46c90b[_0x701ee9(0x196)]:{this[_0x701ee9(0x48f)](_0x52e237[_0x701ee9(0x14f)][_0x701ee9(0x1e6)][_0x701ee9(0x15a)](_0x533fb6=>_0x80fd6(_0x533fb6)));break;}case _0x46c90b[_0x701ee9(0x4ba)]:this[_0x701ee9(0x3ac)]({'isPermissionRej':!0x0});}}catch(_0x12a353){throw console['error'](_0x701ee9(0x29f),_0x12a353),_0x12a353;}})),this[_0x3df1c5(0x2f0)];}[_0x513b3b(0x405)](){this['_transitionLocked']=!0x1;}[_0x513b3b(0x375)](){const _0x3bf101=_0x513b3b;if(this['_transitionLocked'])throw new Error(_0x3bf101(0x199));this[_0x3bf101(0x30a)]=!0x0;}[_0x513b3b(0x19a)](_0x296966){const _0x1f7b9f=_0x513b3b;this[_0x1f7b9f(0x375)](),this[_0x1f7b9f(0x153)](this[_0x1f7b9f(0x2f0)][_0x1f7b9f(0x177)](_0x296966)),this[_0x1f7b9f(0x405)]();}[_0x513b3b(0x162)](_0x229545){const _0x2bfed5=_0x513b3b;if(!(_0x229545[_0x2bfed5(0x2de)]<=this[_0x2bfed5(0x344)][_0x2bfed5(0x324)](this[_0x2bfed5(0x44f)]))){if(this[_0x2bfed5(0x4ac)]){this[_0x2bfed5(0x2a1)][_0x2bfed5(0x152)](_0x229545);return;}this[_0x2bfed5(0x391)](_0x229545);}}['_exhaustRemoteChangesetQueue'](){const _0xf592d9=_0x513b3b;this[_0xf592d9(0x2a1)][_0xf592d9(0x301)](_0x519a02=>this[_0xf592d9(0x391)](_0x519a02)),this[_0xf592d9(0x2a1)]=[];}[_0x513b3b(0x391)](_0x3b945f){const _0x4a698a=_0x513b3b,_0x1c176d=this['_compressMutationService']['interceptor'][_0x4a698a(0x268)](this[_0x4a698a(0x20b)][_0x4a698a(0x4da)][_0x4a698a(0x461)]()[_0x4a698a(0x36f)])(_0x3b945f[_0x4a698a(0x421)],null)||_0x3b945f['mutations'],_0xdcbd5d={..._0x3b945f,'mutations':_0x1c176d};this[_0x4a698a(0x375)](),this[_0x4a698a(0x153)](this[_0x4a698a(0x2f0)][_0x4a698a(0x148)](_0xdcbd5d)),this[_0x4a698a(0x405)]();}['_onRemoteACK'](_0x57dfac){const _0xb5eba0=_0x513b3b;this[_0xb5eba0(0x375)](),this[_0xb5eba0(0x153)](this[_0xb5eba0(0x2f0)]['onRemoteAck'](_0x57dfac)),this[_0xb5eba0(0x405)]();}[_0x513b3b(0x3ac)](_0x36621d){const _0x379d34=_0x513b3b;this[_0x379d34(0x375)](),this[_0x379d34(0x153)](this[_0x379d34(0x2f0)][_0x379d34(0x303)](_0x36621d)),this[_0x379d34(0x405)]();}[_0x513b3b(0x4db)](_0x3c990b){const _0x29532b=_0x513b3b;this[_0x29532b(0x375)](),this[_0x29532b(0x153)](this[_0x29532b(0x2f0)][_0x29532b(0x15d)](_0x3c990b)),this[_0x29532b(0x405)]();}[_0x513b3b(0x48f)](_0x5e13a3){const _0x219d05=_0x513b3b;if(!(this['_state']instanceof B))throw new TypeError(_0x219d05(0x15f));const _0x413c4f=_0x5e13a3[_0x219d05(0x15a)](_0x424f1d=>{const _0x1c8650=_0x219d05,_0xe3f59c=this[_0x1c8650(0x20b)][_0x1c8650(0x4da)][_0x1c8650(0x268)](this[_0x1c8650(0x20b)][_0x1c8650(0x4da)][_0x1c8650(0x461)]()['COMPRESS_MUTATION_APPLY'])(_0x424f1d[_0x1c8650(0x421)],null)||_0x424f1d[_0x1c8650(0x421)];return{..._0x424f1d,'mutations':_0xe3f59c};});this[_0x219d05(0x375)](),this[_0x219d05(0x153)](this['_state'][_0x219d05(0x185)](_0x413c4f)),this[_0x219d05(0x405)]();}[_0x513b3b(0x3cb)](){const _0x46865d=_0x513b3b;this['_lockTransition'](),this[_0x46865d(0x153)](this[_0x46865d(0x2f0)][_0x46865d(0x420)]()),this[_0x46865d(0x405)]();}['_toggleOnline'](_0x395915=!0x1){const _0x4028a6=_0x513b3b;this[_0x4028a6(0x375)](),this[_0x4028a6(0x153)](this[_0x4028a6(0x2f0)][_0x4028a6(0x4b2)]()),this[_0x4028a6(0x405)]();const _0xdebd17=this['_state'];_0x395915&&_0xdebd17 instanceof pe&&(this[_0x4028a6(0x375)](),this[_0x4028a6(0x153)](_0xdebd17[_0x4028a6(0x361)]()),this[_0x4028a6(0x405)]());}async[_0x513b3b(0x2b4)](){return new Promise(_0x23c95b=>{const _0x1f0bbc=_0x1736;this[_0x1f0bbc(0x456)]['sessionStatus$']['pipe'](_0x549142(0x1))[_0x1f0bbc(0x465)](async _0x1183fb=>{const _0x1c6300=_0x1f0bbc;_0x23c95b(await this[_0x1c6300(0x191)](_0x1183fb===Y[_0x1c6300(0x1f7)]));});});}[_0x513b3b(0x170)](){const _0x5dbf6e=_0x513b3b,_0x24df4a=this[_0x5dbf6e(0x44f)];return{'onStateChange':(_0x1f75aa,_0x18dcaf)=>{const _0x3379d5=_0x5dbf6e;if(_0x1f75aa!==this[_0x3379d5(0x2f0)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1f75aa[_0x3379d5(0x3a7)]+_0x3379d5(0x296)+_0x18dcaf[_0x3379d5(0x3a7)]+'\x0aCurrent:\x20'+this[_0x3379d5(0x2f0)][_0x3379d5(0x3a7)]);this['_updateState'](_0x18dcaf);},'onSendChangeset':_0x36d2c9=>{const _0x3329c6=_0x5dbf6e;_0x36d2c9[_0x3329c6(0x218)]||(_0x36d2c9[_0x3329c6(0x218)]=this['_changesetSessionId'],_0x36d2c9[_0x3329c6(0x21b)]=++this['_changesetReqId']);const _0x20f959={'eventID':_0x46c90b[_0x3329c6(0x29e)],'data':{'unitID':_0x36d2c9[_0x3329c6(0x44f)],'unitType':this['_type'],'changeset':_0x36d2c9,'memberID':this[_0x3329c6(0x456)][_0x3329c6(0x45c)]()}};this['session'][_0x3329c6(0x415)](_0x20f959,this['unitID']);},'onMissingChangesets':({from:_0x35b7be,to:_0x4b0eea})=>{const _0x2bfd6e=_0x5dbf6e;this['_logService']['debug']('[CollaborationEntity]',_0x2bfd6e(0x45e)+_0x35b7be+_0x2bfd6e(0x402)+_0x4b0eea);const _0x41fde0={'eventID':_0x46c90b[_0x2bfd6e(0x1c6)],'data':{'unitID':_0x24df4a,'unitType':this['_type'],'from':_0x35b7be,'to':_0x4b0eea}};this['session']['send'](_0x41fde0,this[_0x2bfd6e(0x44f)]);}};}async['_createInitialStateImpl'](_0x3db43f){const _0x279773=_0x513b3b;var _0x24826e,_0x4abc6e;const _0x4975f7=await this['_localCacheService']['loadOfflineData'](this[_0x279773(0x44f)]),_0x2d06cd=(_0x24826e=_0x4975f7==null?void 0x0:_0x4975f7[_0x279773(0x421)])!=null?_0x24826e:[],_0x5aa5cb=(_0x4abc6e=_0x4975f7==null?void 0x0:_0x4975f7['awaitingChangeset'])!=null?_0x4abc6e:null,_0xf0fdaf=!!(_0x5aa5cb!=null&&_0x5aa5cb[_0x279773(0x218)])&&!!(_0x5aa5cb!=null&&_0x5aa5cb[_0x279773(0x21b)]);this[_0x279773(0x253)]=_0xf0fdaf?_0x5aa5cb[_0x279773(0x218)]:or(),this['_changesetReqId']=_0xf0fdaf?_0x5aa5cb[_0x279773(0x21b)]:0x0;const _0x4ba70e=this[_0x279773(0x44f)];try{this[_0x279773(0x2ce)](_0x5aa5cb,_0x2d06cd);}catch(_0x2237c7){this[_0x279773(0x4e0)][_0x279773(0x25c)](_0x2237c7);}const _0x507b59=this[_0x279773(0x170)]();if(_0x3db43f){const _0x3aecfc=Ks(this['_injector'],_0x4ba70e,this[_0x279773(0x308)],_0x5aa5cb,_0x2d06cd,_0x507b59);return _0x3aecfc instanceof X?_0x3aecfc[_0x279773(0x3b3)]():(_0x3aecfc instanceof q||_0x3aecfc instanceof Q)&&_0x3aecfc[_0x279773(0x42c)](),_0x3aecfc;}return this['_injector'][_0x279773(0x269)](te,_0x4ba70e,this['_type'],_0x5aa5cb,_0x2d06cd,_0x507b59);}['_replayCachedMutations'](_0xe355a7,_0x51b724){const _0x3698e5=_0x513b3b;var _0x28df3f,_0x203dd8;const _0x2bf86a=this['_compressMutationService'][_0x3698e5(0x4da)][_0x3698e5(0x268)](this[_0x3698e5(0x20b)]['interceptor'][_0x3698e5(0x461)]()[_0x3698e5(0x36f)]);(_0x28df3f=_0x2bf86a((_0xe355a7==null?void 0x0:_0xe355a7[_0x3698e5(0x421)])||[],null))==null||_0x28df3f['forEach'](_0x2e56f4=>this[_0x3698e5(0x2b6)][_0x3698e5(0x374)](_0x2e56f4['id'],_0x2e56f4[_0x3698e5(0x498)])),(_0x203dd8=_0x2bf86a(_0x51b724||[],null))==null||_0x203dd8[_0x3698e5(0x301)](_0x1a8cae=>this[_0x3698e5(0x2b6)][_0x3698e5(0x374)](_0x1a8cae['id'],_0x1a8cae[_0x3698e5(0x498)]));}};qe=Wt([p(0x3,_0x53ed15(_0x3165b6)),p(0x4,_0x53ed15(w)),p(0x5,_0x53ed15(_0x227dad)),p(0x6,_0x53ed15(_0x1deb41)),p(0x7,_0x53ed15(_0x231b85)),p(0x8,_0x385fd2),p(0x9,_0x8348c),p(0xa,_0x4608dc),p(0xb,_0x5f5b14),p(0xc,_0x507395(tt))],qe);let Tt=class extends qe{constructor(_0x2634ba,_0x19f6ee,_0x87101e,_0x5f16cb,_0x2f5984,_0xd67850,_0x6bf3ee,_0x4b00ba,_0x9b906d,_0x394a0b,_0x4d5655,_0x85c65e,_0x4cf313,_0x3a5f79,_0x5e6978,_0x90b8ed,_0x5c459e){const _0x144c0d=_0x513b3b;super(_0x2634ba,_0x87101e,_0x19f6ee,_0x5f16cb,_0x2f5984,_0xd67850,_0x6bf3ee,_0x4b00ba,_0x4cf313,_0x3a5f79,_0x5e6978,_0x90b8ed,_0x5c459e),this['unitID']=_0x2634ba,this[_0x144c0d(0x30b)]=_0x19f6ee,this['_docStateChangeManagerService']=_0x9b906d,this[_0x144c0d(0x2f1)]=_0x394a0b,this[_0x144c0d(0x202)]=_0x4d5655,this['_docSyncEditingCollabCursorService']=_0x85c65e;}[_0x513b3b(0x170)](){const _0x4d819d=_0x513b3b,_0x4d0671=super[_0x4d819d(0x170)]();return _0x4d0671[_0x4d819d(0x4cd)]=_0x188ab1=>this[_0x4d819d(0x2f1)]['transformIMECache'](_0x188ab1),_0x4d0671[_0x4d819d(0x294)]=_0x4d09f6=>this[_0x4d819d(0x202)][_0x4d819d(0x439)](_0x4d09f6),_0x4d0671['onSyncEditingCollabCursor']=_0x5b0147=>this[_0x4d819d(0x267)][_0x4d819d(0x4a8)](_0x5b0147),_0x4d0671[_0x4d819d(0x168)]=_0xadcdb8=>this[_0x4d819d(0x2f1)][_0x4d819d(0x26a)](_0xadcdb8),_0x4d0671;}async[_0x513b3b(0x49c)](){const _0x2f94e8=_0x513b3b,_0xbefd14=await super[_0x2f94e8(0x49c)]();return this[_0x2f94e8(0x18a)][_0x2f94e8(0x1d7)]['pipe'](_0x3bacfd(this[_0x2f94e8(0x2d2)]))[_0x2f94e8(0x465)](_0x35b53b=>{const _0x12b4e7=_0x2f94e8;if(_0x35b53b==null)return;const {unitId:_0x1b0f65,redoState:_0x4d1c74,commandId:_0x30885d}=_0x35b53b;if(_0x1b0f65!==this[_0x12b4e7(0x44f)])return;const _0x5d4d9c={'id':_0x30885d,'type':_0x4e2bbf['MUTATION'],'params':{'unitId':_0x1b0f65,'actions':_0x4d1c74[_0x12b4e7(0x458)],'textRanges':null}};this[_0x12b4e7(0x19a)](_0x5d4d9c);}),_0xbefd14;}};Tt=Wt([p(0x3,_0x53ed15(_0x3165b6)),p(0x4,_0x53ed15(w)),p(0x5,_0x53ed15(_0x227dad)),p(0x6,_0x53ed15(_0x1deb41)),p(0x7,_0x53ed15(_0x231b85)),p(0x8,_0x53ed15(_0x1896f0)),p(0x9,_0x53ed15(Ye)),p(0xa,_0x53ed15(Xe)),p(0xb,_0x53ed15(Ft)),p(0xc,_0x385fd2),p(0xd,_0x8348c),p(0xe,_0x4608dc),p(0xf,_0x5f5b14),p(0x10,_0x507395(tt))],Tt);let Rt=class extends qe{constructor(_0x25c84a,_0x537ff1,_0x56204f,_0x594be3,_0x1e3bcc,_0xb807da,_0x59c506,_0x530dd5,_0x21a1f3,_0x30fe91,_0x403f9a,_0x4cc787,_0x2bd27c,_0xc5c0a0){const _0x1de71a=_0x513b3b;super(_0x25c84a,_0x56204f,_0x537ff1,_0x594be3,_0x1e3bcc,_0xb807da,_0x59c506,_0x530dd5,_0x30fe91,_0x403f9a,_0x4cc787,_0x2bd27c,_0xc5c0a0),this[_0x1de71a(0x44f)]=_0x25c84a,this[_0x1de71a(0x30b)]=_0x537ff1,this[_0x1de71a(0x2e5)]=_0x21a1f3;}[_0x513b3b(0x170)](){const _0xb2a1f5=_0x513b3b,_0x3eb132=super[_0xb2a1f5(0x170)]();return _0x3eb132[_0xb2a1f5(0x294)]=_0x3a3346=>this['_sheetTransformSelectionsService']['transformSelections'](_0x3a3346),_0x3eb132;}async[_0x513b3b(0x49c)](){const _0x2985c0=_0x513b3b,_0x4d27b6=await super[_0x2985c0(0x49c)]();return this[_0x2985c0(0x233)](this[_0x2985c0(0x2b6)][_0x2985c0(0x46f)]((_0x488b7f,_0x512cad)=>{const _0x1730d5=_0x2985c0;if(_0x488b7f['type']!==_0x4e2bbf['MUTATION']||_0x512cad!=null&&_0x512cad[_0x1730d5(0x373)]||_0x512cad!=null&&_0x512cad[_0x1730d5(0x309)])return;const _0x2d743b=_0x488b7f['params'];if((_0x2d743b==null?void 0x0:_0x2d743b[_0x1730d5(0x1af)])!==this[_0x1730d5(0x44f)])return;const _0x227739=_0x488b7f,_0x21ea61=this['_compressMutationService']['interceptor'][_0x1730d5(0x268)](this[_0x1730d5(0x20b)][_0x1730d5(0x4da)][_0x1730d5(0x461)]()['COMPRESS_MUTATION_SEND'])([_0x227739],null)||[_0x227739];this[_0x1730d5(0x19a)](_0x21ea61[0x0]);})),_0x4d27b6;}};Rt=Wt([p(0x3,_0x53ed15(_0x3165b6)),p(0x4,_0x53ed15(w)),p(0x5,_0x53ed15(_0x227dad)),p(0x6,_0x53ed15(_0x1deb41)),p(0x7,_0x53ed15(_0x231b85)),p(0x8,_0x53ed15(Ke)),p(0x9,_0x385fd2),p(0xa,_0x8348c),p(0xb,_0x4608dc),p(0xc,_0x5f5b14),p(0xd,_0x507395(tt))],Rt);var Pr=Object[_0x513b3b(0x1a5)],yr=Object['getOwnPropertyDescriptor'],Ur=(_0x539a89,_0x1ad617,_0x4a708c,_0x566c7c)=>{for(var _0x1d4afb=_0x566c7c>0x1?void 0x0:_0x566c7c?yr(_0x1ad617,_0x4a708c):_0x1ad617,_0x230dea=_0x539a89['length']-0x1,_0x148990;_0x230dea>=0x0;_0x230dea--)(_0x148990=_0x539a89[_0x230dea])&&(_0x1d4afb=(_0x566c7c?_0x148990(_0x1ad617,_0x4a708c,_0x1d4afb):_0x148990(_0x1d4afb))||_0x1d4afb);return _0x566c7c&&_0x1d4afb&&Pr(_0x1ad617,_0x4a708c,_0x1d4afb),_0x1d4afb;},_t=(_0x329236,_0x4cbe5e)=>(_0x29bd97,_0xe2558c)=>_0x4cbe5e(_0x29bd97,_0xe2558c,_0x329236);let Le=class extends _0x346899{constructor(_0x3ff36d,_0xdf1cbe,_0x190bab){const _0x24fc73=_0x513b3b;super(),l(this,'_entities',new Map()),l(this,_0x24fc73(0x3d8),new _0x210aee()),(this[_0x24fc73(0x31e)]=_0x3ff36d,this[_0x24fc73(0x1c4)]=_0xdf1cbe,this[_0x24fc73(0x4c4)]=_0x190bab,this[_0x24fc73(0x49c)]());}[_0x513b3b(0x3ce)](){const _0x4f5663=_0x513b3b;super[_0x4f5663(0x3ce)](),this[_0x4f5663(0x217)][_0x4f5663(0x301)](_0x2e1a27=>_0x2e1a27['dispose']()),this[_0x4f5663(0x217)]['clear']();}[_0x513b3b(0x1a2)](_0x3e4c76){const _0x1d0313=_0x513b3b;var _0x1e17ea;return(_0x1e17ea=this[_0x1d0313(0x217)][_0x1d0313(0x49f)](_0x3e4c76))!=null?_0x1e17ea:null;}['getCollabEntity$'](_0x1f246){const _0x2c4296=_0x513b3b,_0x487dc2=this['getCollabEntity'](_0x1f246);return _0x487dc2?_0x207817(_0x487dc2):this[_0x2c4296(0x3d8)][_0x2c4296(0x33b)](_0x5bfb9e(_0x2d14bc=>_0x2d14bc[_0x2c4296(0x44f)]===_0x1f246));}[_0x513b3b(0x49c)](){const _0x341b32=_0x513b3b;this[_0x341b32(0x4c4)]['getTypeOfUnitAdded$'](_0x743738[_0x341b32(0x3b6)])[_0x341b32(0x33b)](_0x3bacfd(this[_0x341b32(0x2d2)]),_0x3b7ba7(0x10))[_0x341b32(0x465)](async _0x244f41=>{const _0x13eeae=_0x341b32,_0x29f03c=_0x244f41['getUnitId'](),_0x336d10=await this[_0x13eeae(0x352)](_0x29f03c,k[_0x13eeae(0x3b6)]);this['_entities'][_0x13eeae(0x3ca)](_0x29f03c,_0x336d10);}),this[_0x341b32(0x4c4)][_0x341b32(0x290)](_0x743738['UNIVER_DOC'])['pipe'](_0x3bacfd(this['dispose$']),_0x3b7ba7(0x10))[_0x341b32(0x33b)](_0x5bfb9e(_0x4def36=>!_0x4def36['getUnitId']()[_0x341b32(0x178)]('__')))[_0x341b32(0x465)](async _0x2077e1=>{const _0x2af6fc=_0x341b32,_0x35f9ad=_0x2077e1[_0x2af6fc(0x389)](),_0x5a4b10=await this[_0x2af6fc(0x352)](_0x35f9ad,k['UNIVER_DOC']);this[_0x2af6fc(0x217)]['set'](_0x35f9ad,_0x5a4b10);}),_0x2f0d88(this[_0x341b32(0x4c4)]['getTypeOfUnitDisposed$'](_0x743738[_0x341b32(0x3b6)]),this['_univerInstanceService'][_0x341b32(0x4d9)](_0x743738[_0x341b32(0x1a4)]))['pipe'](_0x3bacfd(this['dispose$']))[_0x341b32(0x465)](_0x12c9b9=>{const _0x4dede0=_0x341b32,_0x3334bf=_0x12c9b9['getUnitId'](),_0x41ef1e=this[_0x4dede0(0x217)]['get'](_0x3334bf);_0x41ef1e&&(_0x41ef1e[_0x4dede0(0x3ce)](),this[_0x4dede0(0x217)][_0x4dede0(0x248)](_0x3334bf));});}async[_0x513b3b(0x352)](_0x13d849,_0x5de976){const _0x1af69a=_0x513b3b,_0x194690=await this[_0x1af69a(0x1c4)][_0x1af69a(0x23e)](_0x13d849),_0x1b11d9=this['_injector'][_0x1af69a(0x269)](this[_0x1af69a(0x273)](_0x5de976),_0x13d849,_0x5de976,_0x194690);return await _0x1b11d9['init'](),this[_0x1af69a(0x3d8)][_0x1af69a(0x48d)](_0x1b11d9),_0x1b11d9;}['_getCtorByUniverType'](_0x5f10ce){const _0xc83fa4=_0x513b3b;switch(_0x5f10ce){case k[_0xc83fa4(0x1a4)]:return Tt;case k[_0xc83fa4(0x3b6)]:return Rt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x5f10ce);}}};Le=Ur([_t(0x0,_0x53ed15(_0x3165b6)),_t(0x1,_0x53ed15(he)),_t(0x2,_0x4c005a)],Le);const ms=[_0x513b3b(0x3d3),'jiqing500',_0x513b3b(0x3c7),_0x513b3b(0x1d2),_0x513b3b(0x2bf),_0x513b3b(0x2da)];class Gt extends _0x5f406a{constructor(){const _0x842918=_0x513b3b;super(...arguments),l(this,_0x842918(0x30c),new Map()),l(this,'_colorIndex',0x0);}[_0x513b3b(0x2a7)](_0x2b3284){const _0x5c4a3c=_0x513b3b;if(this['_assignedColors'][_0x5c4a3c(0x243)](_0x2b3284))return this[_0x5c4a3c(0x30c)][_0x5c4a3c(0x49f)](_0x2b3284);const _0x472123=ms[this[_0x5c4a3c(0x4a3)]];return this[_0x5c4a3c(0x4a3)]=(this['_colorIndex']+0x1)%ms[_0x5c4a3c(0x313)],this['_assignedColors'][_0x5c4a3c(0x3ca)](_0x2b3284,_0x472123),_0x472123;}}var Nr=Object[_0x513b3b(0x1a5)],Mr=Object[_0x513b3b(0x1be)],Ar=(_0xdce78e,_0x20b059,_0x485f6d,_0x55353c)=>{const _0x277e2a=_0x513b3b;for(var _0x240da5=_0x55353c>0x1?void 0x0:_0x55353c?Mr(_0x20b059,_0x485f6d):_0x20b059,_0x5c5d31=_0xdce78e[_0x277e2a(0x313)]-0x1,_0x4868c7;_0x5c5d31>=0x0;_0x5c5d31--)(_0x4868c7=_0xdce78e[_0x5c5d31])&&(_0x240da5=(_0x55353c?_0x4868c7(_0x20b059,_0x485f6d,_0x240da5):_0x4868c7(_0x240da5))||_0x240da5);return _0x55353c&&_0x240da5&&Nr(_0x20b059,_0x485f6d,_0x240da5),_0x240da5;},ie=(_0x47bf4f,_0x4abfd1)=>(_0x1e891e,_0x526e27)=>_0x4abfd1(_0x1e891e,_0x526e27,_0x47bf4f);const Lr=0x12c,$r=0x64;let Ot=class extends _0x346899{constructor(_0x56c2b7,_0x1b7f6a,_0x5e48f7,_0x15c9ba,_0x40490d,_0x238468,_0x409591,_0x6c9e3b,_0x1385d2){const _0xae3b59=_0x513b3b;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,_0xae3b59(0x2c9),new _0x1edb16(new Map())),l(this,_0xae3b59(0x1a3),this[_0xae3b59(0x2c9)]['asObservable']()),l(this,'_roomMembers$',new _0x1edb16([])),l(this,_0xae3b59(0x2b8),this[_0xae3b59(0x4b4)][_0xae3b59(0x33b)](_0x28cdbb(Lr))),l(this,_0xae3b59(0x2b7),_0x2cf035(_0x339990=>{const _0x2c2a0b=_0xae3b59,_0x38eec7={'eventID':_0x46c90b[_0x2c2a0b(0x4d3)],'data':{'unitID':this[_0x2c2a0b(0x44f)],'memberID':this[_0x2c2a0b(0x2fa)][_0x2c2a0b(0x45c)](),'selection':Ws(_0x339990)}};this[_0x2c2a0b(0x2fa)][_0x2c2a0b(0x415)](_0x38eec7,this[_0x2c2a0b(0x44f)]);},$r)),(this[_0xae3b59(0x44f)]=_0x56c2b7,this[_0xae3b59(0x2fa)]=_0x1b7f6a,this['_injector']=_0x5e48f7,this[_0xae3b59(0x445)]=_0x15c9ba,this['_memberService']=_0x40490d,this[_0xae3b59(0x1cb)]=_0x238468,this[_0xae3b59(0x283)]=_0x409591,this[_0xae3b59(0x4c4)]=_0x6c9e3b,this['_commandService']=_0x1385d2);}get[_0x513b3b(0x146)](){const _0x22507d=_0x513b3b;return this[_0x22507d(0x2c9)][_0x22507d(0x3e2)]();}get[_0x513b3b(0x214)](){const _0x1b8d34=_0x513b3b;return this[_0x1b8d34(0x4b4)][_0x1b8d34(0x3e2)]();}['dispose'](){const _0x51203c=_0x513b3b;super[_0x51203c(0x3ce)](),this[_0x51203c(0x2c9)][_0x51203c(0x48d)](new Map()),this['_cursorInfo$']['complete'](),this[_0x51203c(0x4b4)][_0x51203c(0x48d)]([]),this['_roomMembers$'][_0x51203c(0x2ff)]();}['init'](){const _0x7d852f=_0x513b3b;this[_0x7d852f(0x49c)]||(this[_0x7d852f(0x49c)]=!0x0,this[_0x7d852f(0x2fa)]['sessionStatus$']['pipe'](_0x3bacfd(this['dispose$']))[_0x7d852f(0x465)](_0x5c3b39=>{const _0x2d0b04=_0x7d852f;_0x5c3b39===Y[_0x2d0b04(0x1f7)]?this[_0x2d0b04(0x4c0)]():this[_0x2d0b04(0x3cb)]();}),this[_0x7d852f(0x2fa)][_0x7d852f(0x47b)][_0x7d852f(0x33b)](_0x3bacfd(this['dispose$']))['subscribe'](_0x57910b=>{const _0x3fc68e=_0x7d852f,_0x159204=_0x57910b[_0x3fc68e(0x2db)];_0x159204===_0x46c90b[_0x3fc68e(0x4d3)]&&this['_onCursorUpdate'](_0x57910b),_0x159204===_0x46c90b[_0x3fc68e(0x2b5)]&&this[_0x3fc68e(0x1fd)](_0x57910b);}),this['disposeWithMe'](this[_0x7d852f(0x2b6)][_0x7d852f(0x46f)](_0x571aab=>{const _0x1424bc=_0x7d852f,_0x4d5893=_0x571aab[_0x1424bc(0x498)];_0x4d5893!=null&&this['_online']&&_0x571aab['id']===_0x2e8d24['id']&&_0x4d5893[_0x1424bc(0x1af)]===this[_0x1424bc(0x44f)]&&_0x4d5893[_0x1424bc(0x2cb)]===!0x1&&this[_0x1424bc(0x2b7)](_0x4d5893[_0x1424bc(0x1b3)]);})),this[_0x7d852f(0x1cb)]['collabCursorState$'][_0x7d852f(0x33b)](_0x3bacfd(this['dispose$']))[_0x7d852f(0x465)](_0x2d2c1b=>{const _0x40855e=_0x7d852f;if((_0x2d2c1b==null?void 0x0:_0x2d2c1b[_0x40855e(0x44f)])!==this[_0x40855e(0x44f)])return;const _0x5ee1d8={'eventID':_0x46c90b[_0x40855e(0x4d3)],'data':_0x2d2c1b};this['_onCursorUpdate'](_0x5ee1d8);}),this[_0x7d852f(0x233)](this['_commandService'][_0x7d852f(0x46f)](_0xbaf52f=>{const _0x168b27=_0x7d852f;if(_0xbaf52f[_0x168b27(0x498)]==null)return;const _0x1aca94=_0xbaf52f[_0x168b27(0x498)];if(_0xbaf52f['id']!==_0x599177['id']||_0x1aca94[_0x168b27(0x1af)]!==this[_0x168b27(0x44f)])return;const _0x40774c={'id':_0x168b27(0x1dc),'params':_0x1aca94},_0xafd559=this[_0x168b27(0x146)];for(const [_0x4007e1,_0x5ee0d1]of _0xafd559){const _0x20fbcc={'id':_0x168b27(0x1dc),'params':{'unitId':this[_0x168b27(0x44f)],'actions':null,'textRanges':_0x5ee0d1[_0x168b27(0x1b3)]}},_0x32c90e=this['_transformService'][_0x168b27(0x40a)](_0x40774c,_0x20fbcc,!0x1);if(_0x24fa2f(_0x32c90e))throw _0x32c90e[_0x168b27(0x25c)];_0xafd559['set'](_0x4007e1,{..._0x5ee0d1,'ranges':_0x32c90e[_0x168b27(0x2b9)][_0x168b27(0x498)][_0x168b27(0x3b1)]});}queueMicrotask(()=>{const _0x28044e=_0x168b27;this[_0x28044e(0x2c9)][_0x28044e(0x48d)](_0xafd559);});})));}[_0x513b3b(0x3b4)](_0x45ccde){const _0x5b3ff5=_0x513b3b;var _0x3070bb,_0xb27453;const {memberID:_0x1ea7dd,selection:_0x3197b0}=_0x45ccde[_0x5b3ff5(0x14f)],_0x3dbfd2=pr(_0x3197b0),_0x4a4341=(_0xb27453=(_0x3070bb=this[_0x5b3ff5(0x21c)][_0x5b3ff5(0x3e0)](this[_0x5b3ff5(0x44f)],_0x1ea7dd))==null?void 0x0:_0x3070bb[_0x5b3ff5(0x41d)])!=null?_0xb27453:'Unknown\x20user',_0x5a2f21={'color':this[_0x5b3ff5(0x445)]['assignAColorForMemberID'](_0x1ea7dd),'name':_0x4a4341,'ranges':_0x3dbfd2},_0xfddbbc=this[_0x5b3ff5(0x146)];_0xfddbbc[_0x5b3ff5(0x3ca)](_0x1ea7dd,_0x5a2f21),this['_cursorInfo$'][_0x5b3ff5(0x48d)](_0xfddbbc);}[_0x513b3b(0x1fd)](_0xa13beb){const _0x348e3b=_0x513b3b,{memberID:_0x2e7100}=_0xa13beb['data'],_0x12f2c9=this[_0x348e3b(0x146)];_0x12f2c9['delete'](_0x2e7100),this[_0x348e3b(0x2c9)][_0x348e3b(0x48d)](_0x12f2c9);}[_0x513b3b(0x4c0)](){const _0x11fbec=_0x513b3b;var _0x2a5585;if(this[_0x11fbec(0x40f)]=!0x0,((_0x2a5585=this['_univerInstanceService'][_0x11fbec(0x450)]())==null?void 0x0:_0x2a5585[_0x11fbec(0x389)]())!==this['unitID'])return;const _0x55450c=this[_0x11fbec(0x31e)][_0x11fbec(0x49f)](_0x2d5996)['getDocRanges']();Array[_0x11fbec(0x33f)](_0x55450c)&&_0x55450c[_0x11fbec(0x313)]>0x0&&this[_0x11fbec(0x2b7)](_0x55450c);}[_0x513b3b(0x3cb)](){const _0x488bda=_0x513b3b;this[_0x488bda(0x40f)]=!0x1;}};Ot=Ar([ie(0x2,_0x53ed15(_0x3165b6)),ie(0x3,_0x53ed15(Gt)),ie(0x4,_0x53ed15(ce)),ie(0x5,_0x53ed15(Ft)),ie(0x6,_0x2e5ae8),ie(0x7,_0x4c005a),ie(0x8,_0x8348c)],Ot);var jr=Object['defineProperty'],Hr=Object[_0x513b3b(0x1be)],xr=(_0x1271d3,_0x2112dc,_0x59a67e,_0x939f17)=>{const _0xdd0f86=_0x513b3b;for(var _0x368e10=_0x939f17>0x1?void 0x0:_0x939f17?Hr(_0x2112dc,_0x59a67e):_0x2112dc,_0x464a5c=_0x1271d3[_0xdd0f86(0x313)]-0x1,_0x1012f9;_0x464a5c>=0x0;_0x464a5c--)(_0x1012f9=_0x1271d3[_0x464a5c])&&(_0x368e10=(_0x939f17?_0x1012f9(_0x2112dc,_0x59a67e,_0x368e10):_0x1012f9(_0x368e10))||_0x368e10);return _0x939f17&&_0x368e10&&jr(_0x2112dc,_0x59a67e,_0x368e10),_0x368e10;},fe=(_0x53237f,_0x52be7f)=>(_0x162378,_0x3a546d)=>_0x52be7f(_0x162378,_0x3a546d,_0x53237f);const kr=0x12c,Br=0x64,Vr=()=>{let _0x4a9256=[],_0xccc1b6=!0x1;return _0x2437e8=>{const _0x5f1823=_0x1736;_0x4a9256[_0x5f1823(0x152)](_0x2437e8),_0xccc1b6||(_0xccc1b6=!0x0,setTimeout(()=>{const _0x542fb0=_0x5f1823;_0x4a9256[_0x542fb0(0x301)](_0x2455e4=>_0x2455e4()),_0x4a9256=[],_0xccc1b6=!0x1;}));};};let Dt=class extends _0x346899{constructor(_0x1b5117,_0x1f89fb,_0x38c0bb,_0x13c4f3,_0x4edb85,_0x32ea84,_0x1ba18f,_0x23a300){const _0x4be0a6=_0x513b3b;super(),l(this,_0x4be0a6(0x40f),!0x1),l(this,_0x4be0a6(0x49c),!0x1),l(this,_0x4be0a6(0x2c9),new _0x1edb16(new Map())),l(this,_0x4be0a6(0x1a3),this[_0x4be0a6(0x2c9)][_0x4be0a6(0x2a4)]()),l(this,_0x4be0a6(0x4b4),new _0x1edb16([])),l(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x28cdbb(kr))),l(this,_0x4be0a6(0x2b7),_0x2cf035((_0x28f34f,_0x541386)=>{const _0x1f958d=_0x4be0a6,_0x1f1095={'eventID':_0x46c90b[_0x1f958d(0x4d3)],'data':{'unitID':this[_0x1f958d(0x44f)],'memberID':this[_0x1f958d(0x2fa)][_0x1f958d(0x45c)](),'selection':_0x4f040d(_0x28f34f,_0x541386[_0x1f958d(0x304)])}};this[_0x1f958d(0x2fa)][_0x1f958d(0x415)](_0x1f1095,this[_0x1f958d(0x44f)]);},Br)),(this[_0x4be0a6(0x44f)]=_0x1b5117,this[_0x4be0a6(0x2fa)]=_0x1f89fb,this['_injector']=_0x38c0bb,this[_0x4be0a6(0x445)]=_0x13c4f3,this['_memberService']=_0x4edb85,this[_0x4be0a6(0x4c4)]=_0x32ea84,this[_0x4be0a6(0x2b6)]=_0x1ba18f,this[_0x4be0a6(0x239)]=_0x23a300);}get[_0x513b3b(0x146)](){const _0x453720=_0x513b3b;return this[_0x453720(0x2c9)]['getValue']();}get[_0x513b3b(0x214)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x2c901a=_0x513b3b;super['dispose'](),this['_cursorInfo$'][_0x2c901a(0x48d)](new Map()),this['_cursorInfo$']['complete'](),this[_0x2c901a(0x4b4)][_0x2c901a(0x48d)]([]),this[_0x2c901a(0x4b4)][_0x2c901a(0x2ff)]();}[_0x513b3b(0x145)](){const _0x139276=_0x513b3b;this[_0x139276(0x49c)]||(this['_init']=!0x0,this['_session'][_0x139276(0x3a6)][_0x139276(0x33b)](_0x3bacfd(this[_0x139276(0x2d2)]))[_0x139276(0x465)](_0x35141e=>{const _0x23720a=_0x139276;_0x35141e===Y[_0x23720a(0x1f7)]?this[_0x23720a(0x4c0)]():this[_0x23720a(0x3cb)]();}),this[_0x139276(0x2fa)][_0x139276(0x47b)][_0x139276(0x33b)](_0x3bacfd(this[_0x139276(0x2d2)]))[_0x139276(0x465)](_0x4d438a=>{const _0x2cf91f=_0x139276,_0x192e5d=_0x4d438a[_0x2cf91f(0x2db)];_0x192e5d===_0x46c90b[_0x2cf91f(0x4d3)]&&this[_0x2cf91f(0x3b4)](_0x4d438a),_0x192e5d===_0x46c90b[_0x2cf91f(0x2b5)]&&this[_0x2cf91f(0x1fd)](_0x4d438a);}),this[_0x139276(0x4b7)](),this['disposeWithMe'](this[_0x139276(0x2b6)]['onCommandExecuted'](_0x838e8e=>{const _0x5ae363=_0x139276;if(this[_0x5ae363(0x40f)]&&_0x838e8e['id']===_0x246d31['id']&&_0x838e8e['params'][_0x5ae363(0x1af)]===this[_0x5ae363(0x44f)]){const _0x4286e7=_0x838e8e[_0x5ae363(0x498)];this['_updateLocalCursor'](_0x4286e7[_0x5ae363(0x3df)],_0x4286e7[_0x5ae363(0x2ca)][0x0]);}})));}[_0x513b3b(0x3b4)](_0x505f35){const _0x47535b=_0x513b3b;var _0xc09d7,_0x5acbc0;const {memberID:_0x12ac32,selection:_0x216b0a}=_0x505f35['data'],{sheetName:_0x177439,range:_0x122bfe}=_0x4af056(_0x216b0a),_0x4b5e4a={'name':(_0x5acbc0=(_0xc09d7=this[_0x47535b(0x21c)][_0x47535b(0x3e0)](this['unitID'],_0x12ac32))==null?void 0x0:_0xc09d7[_0x47535b(0x41d)])!=null?_0x5acbc0:_0x47535b(0x1aa),'range':this[_0x47535b(0x45b)](_0x177439,_0x122bfe),'sheetID':_0x177439,'color':this[_0x47535b(0x445)][_0x47535b(0x2a7)](_0x12ac32),'selection':_0x216b0a},_0x115839=this[_0x47535b(0x146)];_0x115839[_0x47535b(0x3ca)](_0x12ac32,_0x4b5e4a),this[_0x47535b(0x2c9)][_0x47535b(0x48d)](_0x115839);}['_onCursorDelete'](_0x59a729){const _0x578a40=_0x513b3b,{memberID:_0x9f6284}=_0x59a729['data'],_0x31b360=this[_0x578a40(0x146)];_0x31b360[_0x578a40(0x248)](_0x9f6284),this['_cursorInfo$'][_0x578a40(0x48d)](_0x31b360);}[_0x513b3b(0x45b)](_0xbc96e9,_0x37712d){const _0x3986cd=_0x513b3b;var _0x26dd5a,_0xecd7a0;const _0x2cef5f=(_0xecd7a0=(_0x26dd5a=this[_0x3986cd(0x4c4)][_0x3986cd(0x49a)](this[_0x3986cd(0x44f)]))==null?void 0x0:_0x26dd5a[_0x3986cd(0x2d3)](_0xbc96e9))==null?void 0x0:_0xecd7a0[_0x3986cd(0x242)]();return(_0x2cef5f==null?void 0x0:_0x2cef5f['find'](_0x575347=>_0x3deb79['contains'](_0x575347,_0x37712d)))||_0x37712d;}[_0x513b3b(0x4b7)](){const _0xc44d60=_0x513b3b,_0x3b3f73=new _0x37f93f(),_0x4222f9=Vr(),_0xf5e567=()=>{const _0x24c7eb=_0x1736;_0x3b3f73[_0x24c7eb(0x3ce)]();const _0x5c2b77=(_0x17fd95,_0x1b9efa,_0x452895,_0x3f3e1e)=>{const _0x4fd780=_0x24c7eb;let _0x3375a3=[];switch(_0x17fd95['id']){case _0x21405f[_0x4fd780(0x3e3)]:{_0x3375a3=_0x12b3ee(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x38e)]:{_0x3375a3=_0x3747a5(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x381)]:{_0x3375a3=_0x53a592(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x37a)]:{_0x3375a3=_0x3b4b4d(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x448)]:{_0x3375a3=_0x44ef57(_0x17fd95,_0x3f3e1e);break;}case _0x21405f['InsertRowCommandId']:{_0x3375a3=_0x42fbc0(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x380)]:{_0x3375a3=_0x50ae63(_0x17fd95,_0x3f3e1e);break;}case _0x21405f['RemoveColCommandId']:{_0x3375a3=_0x3ff3f3(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x464)]:{_0x3375a3=_0x2275d3(_0x17fd95,_0x3f3e1e);break;}}const _0x45a84b=_0x2d1b7f(_0x3375a3,_0x3f3e1e),_0x11b6e2=this[_0x4fd780(0x146)]['get'](_0x1b9efa);if(_0x11b6e2&&_0x45a84b){const _0x20fbaf={..._0x11b6e2,'range':_0x45a84b};this[_0x4fd780(0x146)][_0x4fd780(0x3ca)](_0x1b9efa,_0x20fbaf),_0x4222f9(()=>{const _0x97ada5=_0x4fd780,_0x53e90f=this[_0x97ada5(0x239)][_0x97ada5(0x215)](_0x45a84b,_0x346416=>(_0x53e90f['dispose'](),_0x5c2b77(_0x346416,_0x1b9efa,_0x452895,_0x45a84b)));_0x3b3f73[_0x97ada5(0x2ab)](_0x53e90f);});}return{'redos':[],'undos':[]};};this[_0x24c7eb(0x146)][_0x24c7eb(0x301)]((_0x950bae,_0x17a7b9)=>{const _0x26be6b=_0x24c7eb,{range:_0x411256,sheetID:_0x19b1fa}=_0x950bae,_0x454d12=this['_refRangeService']['registerRefRange'](_0x411256,_0x1c0ba5=>(_0x454d12[_0x26be6b(0x3ce)](),_0x5c2b77(_0x1c0ba5,_0x17a7b9,_0x19b1fa,_0x411256)));_0x3b3f73[_0x26be6b(0x2ab)](_0x454d12);});};this[_0xc44d60(0x233)](_0x29caef(this['_cursorInfo$']['subscribe'](()=>{_0xf5e567();})));}['_toggleOnline'](){const _0x7c743e=_0x513b3b;var _0x5f568c,_0x30ce20;if(this[_0x7c743e(0x40f)]=!0x0,((_0x5f568c=this[_0x7c743e(0x4c4)][_0x7c743e(0x450)]())==null?void 0x0:_0x5f568c['getUnitId']())!==this[_0x7c743e(0x44f)])return;const _0x41ba56=(_0x30ce20=this[_0x7c743e(0x31e)][_0x7c743e(0x49f)](_0x4c5ec4)[_0x7c743e(0x483)]())==null?void 0x0:_0x30ce20[0x0],_0x465a44=this[_0x7c743e(0x4c4)]['getCurrentUnitForType'](_0x743738[_0x7c743e(0x3b6)])[_0x7c743e(0x349)]();_0x41ba56&&_0x465a44&&this[_0x7c743e(0x2b7)](_0x465a44['getSheetId'](),_0x41ba56);}[_0x513b3b(0x3cb)](){const _0x1006f7=_0x513b3b;this[_0x1006f7(0x40f)]=!0x1;}};Dt=xr([fe(0x2,_0x53ed15(_0x3165b6)),fe(0x3,_0x53ed15(Gt)),fe(0x4,_0x53ed15(ce)),fe(0x5,_0x4c005a),fe(0x6,_0x8348c),fe(0x7,_0x53ed15(_0x4a88f5))],Dt);var Fr=Object[_0x513b3b(0x1a5)],Wr=Object[_0x513b3b(0x1be)],Gr=(_0x1b433e,_0x383288,_0x20f838,_0x5cd216)=>{const _0x569bd3=_0x513b3b;for(var _0x26c2ca=_0x5cd216>0x1?void 0x0:_0x5cd216?Wr(_0x383288,_0x20f838):_0x383288,_0x500f4a=_0x1b433e[_0x569bd3(0x313)]-0x1,_0x5d37f0;_0x500f4a>=0x0;_0x500f4a--)(_0x5d37f0=_0x1b433e[_0x500f4a])&&(_0x26c2ca=(_0x5cd216?_0x5d37f0(_0x383288,_0x20f838,_0x26c2ca):_0x5d37f0(_0x26c2ca))||_0x26c2ca);return _0x5cd216&&_0x26c2ca&&Fr(_0x383288,_0x20f838,_0x26c2ca),_0x26c2ca;},ut=(_0x3e4d26,_0x454f43)=>(_0x207f6a,_0x2f83ca)=>_0x454f43(_0x207f6a,_0x2f83ca,_0x3e4d26);let ve=class extends _0x346899{constructor(_0x199a1b,_0x1bbbc2,_0x258062){const _0x3382a9=_0x513b3b;super(),l(this,_0x3382a9(0x217),new Map()),l(this,_0x3382a9(0x3d8),new _0x210aee()),(this[_0x3382a9(0x4c4)]=_0x199a1b,this['_injector']=_0x1bbbc2,this[_0x3382a9(0x1c4)]=_0x258062,this[_0x3382a9(0x49c)]());}['dispose'](){const _0x107cde=_0x513b3b;super[_0x107cde(0x3ce)](),this['_entityInit$'][_0x107cde(0x2ff)](),this[_0x107cde(0x217)][_0x107cde(0x301)](_0x61fe53=>_0x61fe53[_0x107cde(0x3ce)]());}[_0x513b3b(0x155)](_0x228d84){const _0x24390f=_0x513b3b;return this[_0x24390f(0x217)][_0x24390f(0x243)](_0x228d84)?this[_0x24390f(0x217)]['get'](_0x228d84)['cursorInfo$']:this[_0x24390f(0x3d8)]['pipe'](_0x2ffc6e(_0xa0fb4c=>_0xa0fb4c['unitID']===_0x228d84),_0x1317fa(_0x343113=>_0x343113[_0x24390f(0x1a3)]));}[_0x513b3b(0x49c)](){const _0x1bb2ae=_0x513b3b;this[_0x1bb2ae(0x4c4)][_0x1bb2ae(0x290)](_0x743738['UNIVER_SHEET'])[_0x1bb2ae(0x33b)](_0x3bacfd(this[_0x1bb2ae(0x2d2)]))['subscribe'](async _0x1e32b7=>{const _0x414357=_0x1bb2ae,_0x56bf7=_0x1e32b7[_0x414357(0x389)](),_0x5139ab=await this[_0x414357(0x31b)](_0x56bf7);this[_0x414357(0x3d8)]['next'](_0x5139ab),this[_0x414357(0x217)][_0x414357(0x3ca)](_0x56bf7,_0x5139ab);}),this[_0x1bb2ae(0x4c4)]['getTypeOfUnitAdded$'](_0x743738[_0x1bb2ae(0x1a4)])[_0x1bb2ae(0x33b)](_0x3bacfd(this[_0x1bb2ae(0x2d2)]))[_0x1bb2ae(0x33b)](_0x2ffc6e(_0x26fa04=>!_0x26fa04[_0x1bb2ae(0x389)]()[_0x1bb2ae(0x178)]('__')))[_0x1bb2ae(0x465)](async _0x2aadee=>{const _0x146a64=_0x1bb2ae,_0x4db022=_0x2aadee[_0x146a64(0x389)](),_0x11969b=await this[_0x146a64(0x1b7)](_0x4db022);this[_0x146a64(0x3d8)][_0x146a64(0x48d)](_0x11969b),this[_0x146a64(0x217)][_0x146a64(0x3ca)](_0x4db022,_0x11969b);}),_0x2f0d88(this[_0x1bb2ae(0x4c4)][_0x1bb2ae(0x4d9)](_0x743738[_0x1bb2ae(0x1a4)]),this[_0x1bb2ae(0x4c4)][_0x1bb2ae(0x4d9)](_0x743738[_0x1bb2ae(0x3b6)]))[_0x1bb2ae(0x33b)](_0x3bacfd(this['dispose$']))[_0x1bb2ae(0x465)](_0x5881b6=>{const _0x22fdc3=_0x1bb2ae,_0x23ec26=_0x5881b6[_0x22fdc3(0x389)](),_0x1cd199=this['_entities']['get'](_0x23ec26);_0x1cd199&&(_0x1cd199[_0x22fdc3(0x3ce)](),this[_0x22fdc3(0x217)][_0x22fdc3(0x248)](_0x23ec26));});}async[_0x513b3b(0x31b)](_0x585136){const _0x23b90c=_0x513b3b,_0x736627=await this[_0x23b90c(0x1c4)][_0x23b90c(0x23e)](_0x585136),_0x274962=this[_0x23b90c(0x31e)][_0x23b90c(0x269)](Dt,_0x585136,_0x736627);return _0x274962[_0x23b90c(0x145)](),_0x274962;}async[_0x513b3b(0x1b7)](_0xf965da){const _0x29a5d0=_0x513b3b,_0x5f09b6=await this[_0x29a5d0(0x1c4)][_0x29a5d0(0x23e)](_0xf965da),_0x43d737=this['_injector'][_0x29a5d0(0x269)](Ot,_0xf965da,_0x5f09b6);return _0x43d737[_0x29a5d0(0x145)](),_0x43d737;}};ve=Gr([ut(0x0,_0x4c005a),ut(0x1,_0x53ed15(_0x3165b6)),ut(0x2,_0x53ed15(he))],ve);const $e=0x14,fs=0xc8,dt=0x4,Yr=0x5;function Kr(_0x5b07a7,_0x41a859){const _0x1ea25f=_0x513b3b;let {radius:_0x2ae9ba,width:_0x2e24db,height:_0x1573d0}=_0x41a859;_0x2ae9ba=_0x2ae9ba!=null?_0x2ae9ba:0x0,_0x2e24db=_0x2e24db!=null?_0x2e24db:0x1e,_0x1573d0=_0x1573d0!=null?_0x1573d0:0x1e;let _0x54c561=0x0,_0x236e83=0x0,_0x5eba1e=0x0;_0x54c561=_0x236e83=_0x5eba1e=Math[_0x1ea25f(0x2d4)](_0x2ae9ba,_0x2e24db/0x2,_0x1573d0/0x2),_0x5b07a7['beginPath'](),_0x5b07a7[_0x1ea25f(0x2c8)](_0x54c561,0x0),_0x5b07a7[_0x1ea25f(0x4b1)](_0x2e24db-_0x236e83,0x0),_0x5b07a7['arc'](_0x2e24db-_0x236e83,_0x236e83,_0x236e83,Math['PI']*0x3/0x2,0x0,!0x1),_0x5b07a7[_0x1ea25f(0x4b1)](_0x2e24db,_0x1573d0-_0x5eba1e),_0x5b07a7[_0x1ea25f(0x492)](_0x2e24db-_0x5eba1e,_0x1573d0-_0x5eba1e,_0x5eba1e,0x0,Math['PI']/0x2,!0x1),_0x5b07a7[_0x1ea25f(0x4b1)](0x0,_0x1573d0),_0x5b07a7['lineTo'](0x0,_0x54c561),_0x5b07a7[_0x1ea25f(0x492)](_0x54c561,_0x54c561,_0x54c561,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5b07a7['closePath'](),_0x41a859['fill']&&(_0x5b07a7['save'](),_0x5b07a7['fillStyle']=_0x41a859[_0x1ea25f(0x28e)],_0x41a859[_0x1ea25f(0x30e)]==='evenodd'?_0x5b07a7[_0x1ea25f(0x28e)]('evenodd'):_0x5b07a7[_0x1ea25f(0x28e)](),_0x5b07a7[_0x1ea25f(0x175)]());}class st extends _0x284381{constructor(_0x588c52,_0x3386be){const _0x147bff=_0x513b3b;super(_0x588c52,_0x3386be),l(this,_0x147bff(0x2e6)),l(this,_0x147bff(0x272)),(this[_0x147bff(0x2e6)]=_0x3386be==null?void 0x0:_0x3386be['color'],this[_0x147bff(0x272)]=_0x3386be==null?void 0x0:_0x3386be[_0x147bff(0x272)]);}static[_0x513b3b(0x4a4)](_0x25f760,_0x1ad287){const _0x20e5bf=_0x513b3b,{text:_0x68acfe,color:_0x1224c1}=_0x1ad287;_0x25f760[_0x20e5bf(0x43e)](),_0x25f760[_0x20e5bf(0x31c)]=_0x20e5bf(0x288);const _0xc0600e=_0x25f760[_0x20e5bf(0x35c)](_0x68acfe)[_0x20e5bf(0x4a6)],_0xc3cb43=Math['min'](_0xc0600e+0x2*dt,fs);Kr(_0x25f760,{'height':$e,'radius':0x4,'width':_0xc3cb43,'fill':_0x1224c1,'evented':!0x1}),_0x25f760[_0x20e5bf(0x413)]=_0x20e5bf(0x286);const _0x6eba1e=dt,_0x32045d=$e-Yr,_0x59e5a2=fs-0x2*dt;if(_0xc0600e>_0x59e5a2){let _0x1fbb92='',_0x3862ad=0x0;for(const _0x393895 of _0x68acfe){const _0x32b001=_0x25f760[_0x20e5bf(0x35c)](_0x393895)[_0x20e5bf(0x4a6)];if(_0x3862ad+_0x32b001<=_0x59e5a2-_0x25f760[_0x20e5bf(0x35c)](_0x20e5bf(0x323))['width'])_0x1fbb92+=_0x393895,_0x3862ad+=_0x32b001;else{_0x1fbb92+=_0x20e5bf(0x323);break;}}_0x25f760[_0x20e5bf(0x4c5)](_0x1fbb92,_0x6eba1e,_0x32045d);}else _0x25f760[_0x20e5bf(0x4c5)](_0x68acfe,_0x6eba1e,_0x32045d);_0x25f760['restore']();}['_draw'](_0x4612b2){const _0x521cdb=_0x513b3b;st[_0x521cdb(0x4a4)](_0x4612b2,this);}}const mt='collab-text-anchor-',Xr=_0x513b3b(0x23a),qr=_0x513b3b(0x347),we=0x6,Jr=1.5,ft=0x4,zr=1.5,Zr=_0x513b3b(0x453);class gs{constructor(_0x11981c,_0x12bd14,_0x44be32,_0x56e360){const _0x5d3dae=_0x513b3b;l(this,_0x5d3dae(0x284),[]),l(this,'_anchor',null),l(this,_0x5d3dae(0x39e),null),l(this,_0x5d3dae(0x24a),null),l(this,_0x5d3dae(0x3e1),null),l(this,'_eventUnsubscribe',null),(this['_cursor']=_0x11981c,this[_0x5d3dae(0x1ca)]=_0x12bd14,this['_docSkeleton']=_0x44be32,this[_0x5d3dae(0x3d7)]=_0x56e360,this[_0x5d3dae(0x4af)]());}set[_0x513b3b(0x28d)](_0x539abd){const _0x64668e=_0x513b3b;_0x539abd?(this[_0x64668e(0x24a)]&&this[_0x64668e(0x24a)][_0x64668e(0x4bc)](),this['_textBubble']&&this[_0x64668e(0x39e)][_0x64668e(0x32b)]()):(this[_0x64668e(0x24a)]&&this['_anchorDot']['show'](),this['_textBubble']&&this[_0x64668e(0x39e)][_0x64668e(0x4bc)]());}[_0x513b3b(0x3ce)](){const _0xa60e13=_0x513b3b;for(const _0x17f159 of this['_shapes'])_0x17f159[_0xa60e13(0x3ce)]();this[_0xa60e13(0x39e)]&&this[_0xa60e13(0x39e)]['dispose'](),this[_0xa60e13(0x24a)]&&this[_0xa60e13(0x24a)][_0xa60e13(0x3ce)](),this[_0xa60e13(0x2bd)]&&this['_anchor'][_0xa60e13(0x3ce)](),this[_0xa60e13(0x282)]&&this['_eventUnsubscribe']();}[_0x513b3b(0x4af)](){const _0x3c742a=_0x513b3b;var _0x53314f;const {_docSkeleton:_0x1d6d81,_document:_0xb231cd}=this,{color:_0xc058e6,name:_0x10313d,ranges:_0x1a93cf}=this[_0x3c742a(0x41e)],_0x110ba7=_0xb231cd[_0x3c742a(0x18d)](),{docsLeft:_0x4528f8,docsTop:_0x58e1da}=_0x110ba7,_0x56dd83=new _0xe31355(_0x110ba7,_0x1d6d81);for(const {startOffset:_0x56f2ce,endOffset:_0x1d6d6c,collapsed:_0x2a1bca,isActive:_0x45763c}of _0x1a93cf){const _0x41a423=_0x1d6d81['findNodePositionByCharIndex'](_0x56f2ce),_0xf3cd07=_0x1d6d81[_0x3c742a(0x1cd)](_0x1d6d6c);if(_0x45763c){const {contentBoxPointGroup:_0x7761bf}=_0x56dd83[_0x3c742a(0x203)](_0xf3cd07,_0xf3cd07);if(_0x7761bf['length']===0x0)continue;this[_0x3c742a(0x206)](_0xc058e6,_0x7761bf,_0x4528f8,_0x58e1da,_0x10313d),this['_eventUnsubscribe']=this[_0x3c742a(0x47c)]();}if(!_0x2a1bca&&_0x41a423&&_0xf3cd07){if(_0x4350fa(_0x41a423,_0xf3cd07)){const _0x35c041=new _0x4151a8(_0x110ba7,_0x1d6d81),{pointGroup:_0x4c227e}=(_0x53314f=_0x35c041[_0x3c742a(0x203)](_0x41a423,_0xf3cd07))!=null?_0x53314f:{};if(_0x4c227e==null||_0x4c227e[_0x3c742a(0x313)]===0x0)continue;this['_drawRectRange'](_0xc058e6,_0x4c227e,_0x4528f8,_0x58e1da);}else{const {contentBoxPointGroup:_0x247409}=_0x56dd83[_0x3c742a(0x203)](_0x41a423,_0xf3cd07);if(_0x247409[_0x3c742a(0x313)]===0x0)continue;this[_0x3c742a(0x4bb)](_0xc058e6,_0x247409,_0x4528f8,_0x58e1da);}}}}[_0x513b3b(0x206)](_0x46e406,_0x4a64e3,_0x5b9a2a,_0xf0c960,_0x4e9431){const _0x2fd728=_0x513b3b,_0x5e480b=this[_0x2fd728(0x35b)](_0x4a64e3),{left:_0x5e7400,top:_0x4ef5df,height:_0x566d87}=_0x5e480b,_0x2408d0=this['_getScale'](),_0x568f7d=zr/_0x2408d0,_0x16dd6b=new _0x57bf2c(mt+_0x31cbda['generateRandomId'](we),{'left':_0x5e7400+_0x5b9a2a-_0x568f7d,'top':_0x4ef5df+_0xf0c960,'height':_0x566d87,'width':Jr,'fill':_0x46e406||_0x2e720d(_0x3de4d2['black'],0x0),'strokeWidth':_0x568f7d,'stroke':Zr,'evented':!0x0});this[_0x2fd728(0x2bd)]=_0x16dd6b,this[_0x2fd728(0x1ca)]['addObject'](_0x16dd6b,_0x441006);const _0x5b8908=new _0x57bf2c(mt+_0x31cbda[_0x2fd728(0x22e)](we),{'left':_0x5e7400+_0x5b9a2a-_0x568f7d,'top':_0x4ef5df+_0xf0c960-ft/0x2,'height':ft,'width':ft,'fill':_0x46e406||_0x2e720d(_0x3de4d2[_0x2fd728(0x1c1)],0x0),'strokeWidth':0x0,'stroke':_0x46e406||_0x2e720d(_0x3de4d2['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x5b8908,this[_0x2fd728(0x1ca)]['addObject'](_0x5b8908,_0x441006);const _0x22be38=new st(mt+_0x31cbda[_0x2fd728(0x22e)](we),{'left':_0x5e7400+_0x5b9a2a-_0x568f7d,'top':_0x4ef5df+_0xf0c960-$e,'text':_0x4e9431,'color':_0x46e406});this[_0x2fd728(0x39e)]=_0x22be38,this['_scene'][_0x2fd728(0x467)](_0x22be38,_0x441006),this['_hover']=!0x1;}[_0x513b3b(0x47c)](){const _0x33138f=_0x513b3b,_0x5092ad=this[_0x33138f(0x2bd)][_0x33138f(0x246)]['subscribeEvent'](()=>{const _0x35e52e=_0x33138f;this[_0x35e52e(0x28d)]=!0x0;}),_0x3ebf96=this['_anchor'][_0x33138f(0x285)]['subscribeEvent'](()=>{const _0x5bce31=_0x33138f;this[_0x5bce31(0x3e1)]&&clearTimeout(this[_0x5bce31(0x3e1)]),this[_0x5bce31(0x3e1)]=setTimeout(()=>{const _0x15964a=_0x5bce31;this[_0x15964a(0x28d)]=!0x1;},0x7d0);});return()=>{const _0x3d1db1=_0x33138f;_0x5092ad[_0x3d1db1(0x48a)](),_0x3ebf96[_0x3d1db1(0x48a)]();};}[_0x513b3b(0x4bb)](_0x5f2929,_0x18f4b8,_0x374aa5,_0x146eec){const _0x11ce3d=_0x513b3b,_0x14566a=new _0x181f1a(_0x5f2929)[_0x11ce3d(0x4d5)](0.2)['toRgbString'](),_0x39da6d=new _0x36c04f(Xr+_0x31cbda[_0x11ce3d(0x22e)](we),{'pointsGroup':_0x18f4b8,'fill':_0x14566a||_0x2e720d(_0x3de4d2[_0x11ce3d(0x1c1)],0.2),'left':_0x374aa5,'top':_0x146eec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11ce3d(0x284)][_0x11ce3d(0x152)](_0x39da6d),this[_0x11ce3d(0x1ca)][_0x11ce3d(0x467)](_0x39da6d,_0x441006);}['_drawRectRange'](_0x105891,_0x172b15,_0x2e9c70,_0x563618){const _0x321284=_0x513b3b,_0x84371b=new _0x181f1a(_0x105891)[_0x321284(0x4d5)](0.2)[_0x321284(0x328)](),_0x406bbb=new _0x36c04f(qr+_0x31cbda[_0x321284(0x22e)](we),{'pointsGroup':_0x172b15,'fill':_0x84371b||_0x2e720d(_0x3de4d2[_0x321284(0x1c1)],0.2),'left':_0x2e9c70,'top':_0x563618,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x321284(0x284)][_0x321284(0x152)](_0x406bbb),this[_0x321284(0x1ca)][_0x321284(0x467)](_0x406bbb,_0x441006);}[_0x513b3b(0x35b)](_0x1ce9ee){const _0x55d979=_0x1ce9ee[0x0],_0x28a167=_0x55d979[0x0],_0x9a2d95=_0x55d979[0x2],{x:_0x54175f,y:_0x5b3c44}=_0x28a167,{x:_0x41f862,y:_0x1c7a57}=_0x9a2d95;return{'left':_0x54175f,'top':_0x5b3c44,'width':_0x41f862-_0x54175f,'height':_0x1c7a57-_0x5b3c44};}[_0x513b3b(0x247)](){const _0x383df3=_0x513b3b,{scaleX:_0x5b8024,scaleY:_0x446257}=this['_scene'][_0x383df3(0x2a0)]();return Math[_0x383df3(0x1b0)](_0x5b8024,_0x446257);}}var Qr=Object[_0x513b3b(0x1a5)],eo=Object[_0x513b3b(0x1be)],to=(_0x222290,_0x1c276a,_0x5d3b38,_0xf4893d)=>{const _0x47860e=_0x513b3b;for(var _0x5f530f=_0xf4893d>0x1?void 0x0:_0xf4893d?eo(_0x1c276a,_0x5d3b38):_0x1c276a,_0x4efdeb=_0x222290[_0x47860e(0x313)]-0x1,_0x591cc4;_0x4efdeb>=0x0;_0x4efdeb--)(_0x591cc4=_0x222290[_0x4efdeb])&&(_0x5f530f=(_0xf4893d?_0x591cc4(_0x1c276a,_0x5d3b38,_0x5f530f):_0x591cc4(_0x5f530f))||_0x5f530f);return _0xf4893d&&_0x5f530f&&Qr(_0x1c276a,_0x5d3b38,_0x5f530f),_0x5f530f;},ke=(_0x478f39,_0x420857)=>(_0x53a010,_0x49ad7c)=>_0x420857(_0x53a010,_0x49ad7c,_0x478f39);let wt=class extends _0x346899{constructor(_0x436e92,_0x29d61d,_0x1e81bc,_0x202ea9,_0x1d3939){const _0x4e5383=_0x513b3b;super(),l(this,'_cursorShapes',[]),l(this,_0x4e5383(0x289),[]),(this[_0x4e5383(0x3a0)]=_0x436e92,this[_0x4e5383(0x2f7)]=_0x29d61d,this['_collabCursorController']=_0x1e81bc,this[_0x4e5383(0x2b6)]=_0x202ea9,this[_0x4e5383(0x47f)]=_0x1d3939,this['_init']());}[_0x513b3b(0x49c)](){const _0x30a53a=_0x513b3b,_0x598d12=this[_0x30a53a(0x3a0)][_0x30a53a(0x1af)],_0x1518b4=this[_0x30a53a(0x2f7)];this[_0x30a53a(0x233)](_0x3ff449([this[_0x30a53a(0x2b2)]['getCollabCursors$'](_0x598d12),this[_0x30a53a(0x47f)][_0x30a53a(0x440)]])['pipe'](_0x50a0b8(([_0x3f87b7,_0x435e44])=>({'skeleton':_0x1518b4['getSkeleton'](),'cursors':[..._0x3f87b7['values']()][_0x30a53a(0x3eb)](_0x3846cf=>({..._0x3846cf,'color':_0x435e44[_0x3846cf[_0x30a53a(0x2e6)]]}))})))[_0x30a53a(0x465)](_0x298ab4=>{const _0x47cff1=_0x30a53a;if(this[_0x47cff1(0x27a)](),_0x298ab4){const {skeleton:_0x4dd9bc,cursors:_0x2cf511}=_0x298ab4;this[_0x47cff1(0x280)](_0x4dd9bc,_0x2cf511);}})),this[_0x30a53a(0x46a)](),this[_0x30a53a(0x44a)]();}['_updateCollabCursors'](_0x78882,_0x53f589){const _0x18efbd=_0x513b3b,{scene:_0xb41b21,mainComponent:_0x3eb1fe}=this[_0x18efbd(0x3a0)],_0x5439d7=_0x53f589['map'](_0x69391d=>new gs(_0x69391d,_0xb41b21,_0x78882,_0x3eb1fe));this[_0x18efbd(0x31f)]=_0x5439d7,this[_0x18efbd(0x289)]=_0x53f589;}['_refreshCollabCursors'](){const _0xff1cc8=_0x513b3b;this['_removeCollabCursors']();const {scene:_0x54bb3c,mainComponent:_0x337c03}=this[_0xff1cc8(0x3a0)],_0x53da5c=this[_0xff1cc8(0x2f7)]['getSkeleton'](),_0x2a14a7=this['_cursors'][_0xff1cc8(0x15a)](_0x116245=>new gs(_0x116245,_0x54bb3c,_0x53da5c,_0x337c03));this[_0xff1cc8(0x31f)]=_0x2a14a7;}[_0x513b3b(0x27a)](){const _0x523cc7=_0x513b3b;this[_0x523cc7(0x31f)][_0x523cc7(0x301)](_0x1997e6=>_0x1997e6[_0x523cc7(0x3ce)]()),this[_0x523cc7(0x31f)]=[];}[_0x513b3b(0x44a)](){const _0x3bcd28=_0x513b3b,_0x6d1c1=[_0x26e6cb['id']];this[_0x3bcd28(0x233)](this[_0x3bcd28(0x2b6)]['onCommandExecuted'](_0x4c63e5=>{const _0xb94fdf=_0x3bcd28;_0x6d1c1[_0xb94fdf(0x32f)](_0x4c63e5['id'])&&_0x4c63e5[_0xb94fdf(0x498)][_0xb94fdf(0x1af)]===this['_context'][_0xb94fdf(0x1af)]&&this[_0xb94fdf(0x19d)]();}));}['_initResize'](){const _0x33faed=_0x513b3b;this[_0x33faed(0x233)](_0x27e3fd(this[_0x33faed(0x3a0)][_0x33faed(0x3dd)][_0x33faed(0x2c6)])['pipe'](_0x5bfb9e(_0x46f95f=>_0x46f95f[_0x33faed(0x30b)]===_0x5264bf[_0x33faed(0x210)]),_0x10e087(0x10))[_0x33faed(0x465)](()=>{const _0x319d8f=_0x33faed;this[_0x319d8f(0x19d)]();}));}};wt=to([ke(0x1,_0x53ed15(_0x2a6fef)),ke(0x2,_0x53ed15(ve)),ke(0x3,_0x8348c),ke(0x4,_0x53ed15(_0xe610aa))],wt);const so=0x1,io=1.5;class no extends _0x284381{constructor(_0x52a282,_0x49ab6d){const _0x5bac2a=_0x513b3b;super(_0x52a282,_0x49ab6d),l(this,'_color'),l(this,_0x5bac2a(0x311),!0x1),l(this,_0x5bac2a(0x164)),l(this,_0x5bac2a(0x2f2),''),l(this,_0x5bac2a(0x3f1),_0x5bac2a(0x423)),l(this,_0x5bac2a(0x321)),(_0x49ab6d&&this[_0x5bac2a(0x271)](_0x49ab6d),this['onPointerEnter$'][_0x5bac2a(0x2e4)](()=>this[_0x5bac2a(0x271)]({'hovered':!0x0})),this[_0x5bac2a(0x285)][_0x5bac2a(0x2e4)](()=>this[_0x5bac2a(0x271)]({'hovered':!0x1})));}['setShapeProps'](_0x3aabf1){const _0x3d4ff2=_0x513b3b;var _0x34cc9d,_0x5d499e,_0x1241dc,_0x848744,_0x3ed667,_0xcfd87e;this[_0x3d4ff2(0x1b2)]=(_0x34cc9d=_0x3aabf1[_0x3d4ff2(0x2e6)])!=null?_0x34cc9d:this[_0x3d4ff2(0x1b2)],this[_0x3d4ff2(0x311)]=(_0x5d499e=_0x3aabf1[_0x3d4ff2(0x3ba)])!=null?_0x5d499e:this['_hovered'],this[_0x3d4ff2(0x164)]=(_0x1241dc=_0x3aabf1[_0x3d4ff2(0x304)])!=null?_0x1241dc:this['_range'],this[_0x3d4ff2(0x2f2)]=(_0x848744=_0x3aabf1['name'])!=null?_0x848744:this[_0x3d4ff2(0x2f2)],this[_0x3d4ff2(0x3f1)]=(_0x3ed667=_0x3aabf1[_0x3d4ff2(0x38a)])!=null?_0x3ed667:this['_labelPosition'],this['_backgroundColor']=(_0xcfd87e=_0x3aabf1[_0x3d4ff2(0x33a)])!=null?_0xcfd87e:this[_0x3d4ff2(0x321)],this[_0x3d4ff2(0x24d)]({'width':_0x3aabf1[_0x3d4ff2(0x4a6)],'height':_0x3aabf1[_0x3d4ff2(0x1ab)]});}[_0x513b3b(0x2e2)](_0x3cbe58){const _0xcb514=_0x513b3b,{row:_0x467459,column:_0x1dbaf6}=_0x3cbe58;if(_0x467459>=this[_0xcb514(0x164)]['startRow']&&_0x467459<=this[_0xcb514(0x164)][_0xcb514(0x277)]&&_0x1dbaf6>=this[_0xcb514(0x164)][_0xcb514(0x208)]&&_0x1dbaf6<=this[_0xcb514(0x164)][_0xcb514(0x1c2)]){this[_0xcb514(0x271)]({'hovered':!0x0});return;}this[_0xcb514(0x271)]({'hovered':!0x1});}[_0x513b3b(0x2bb)](_0x551d11){return!0x1;}[_0x513b3b(0x472)](_0x246912){const _0x3896cd=_0x513b3b;_0x57bf2c[_0x3896cd(0x4a4)](_0x246912,{'width':this[_0x3896cd(0x4a6)],'height':this['height'],'strokeWidth':io,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x3896cd(0x321)]}),this[_0x3896cd(0x311)]&&(_0x246912[_0x3896cd(0x43e)](),_0x246912[_0x3896cd(0x3d5)](0x1,0x0,0x0,0x1,this[_0x3896cd(0x4a6)],this['_labelPosition']===_0x3896cd(0x2c2)?0x0:-$e),st['drawWith'](_0x246912,{'text':this[_0x3896cd(0x2f2)],'color':this['_color']}),_0x246912['restore']());}}var ro=Object[_0x513b3b(0x1a5)],oo=Object['getOwnPropertyDescriptor'],ao=(_0x28560f,_0x43038d,_0x3cdae0,_0x568293)=>{const _0x131ad7=_0x513b3b;for(var _0xd929d7=_0x568293>0x1?void 0x0:_0x568293?oo(_0x43038d,_0x3cdae0):_0x43038d,_0x115c1f=_0x28560f[_0x131ad7(0x313)]-0x1,_0x6ea78a;_0x115c1f>=0x0;_0x115c1f--)(_0x6ea78a=_0x28560f[_0x115c1f])&&(_0xd929d7=(_0x568293?_0x6ea78a(_0x43038d,_0x3cdae0,_0xd929d7):_0x6ea78a(_0xd929d7))||_0xd929d7);return _0x568293&&_0xd929d7&&ro(_0x43038d,_0x3cdae0,_0xd929d7),_0xd929d7;},gt=(_0x212a0c,_0x14772e)=>(_0x16e31f,_0x1bede3)=>_0x14772e(_0x16e31f,_0x1bede3,_0x212a0c);const co=0x1389;let Pt=class extends _0x346899{constructor(_0x3bdc67,_0x4e26df,_0x7b6ab2,_0x2f1957){const _0x14dfdb=_0x513b3b;super(),l(this,_0x14dfdb(0x289),new Set()),l(this,_0x14dfdb(0x173),null),(this[_0x14dfdb(0x3a0)]=_0x3bdc67,this['_sheetSkeletonManagerService']=_0x4e26df,this['_collabCursorController']=_0x7b6ab2,this[_0x14dfdb(0x47f)]=_0x2f1957,this['_init']());}['_init'](){const _0x46caa4=_0x513b3b;this['_sheetSkeletonManagerService'][_0x46caa4(0x4a2)]['pipe'](_0x453931(this['dispose$']),_0x31790b(_0x3c650c=>{const _0x1be445=_0x46caa4;if(_0x3c650c){const _0x3a02f3=_0x3c650c[_0x1be445(0x43d)];return _0x3ff449(this[_0x1be445(0x2b2)][_0x1be445(0x155)](this[_0x1be445(0x3a0)][_0x1be445(0x1af)]),this['_themeService'][_0x1be445(0x440)])['pipe'](_0x50a0b8(([_0xb20694,_0x4c8891])=>{const _0x1f8af6=_0x1be445,_0x53d1e4=new Map();return _0xb20694[_0x1f8af6(0x301)]((_0x2882e5,_0x5c64c3)=>{const _0x45f22b=_0x1f8af6;if(_0x2882e5[_0x45f22b(0x259)]===_0x3a02f3){const _0x4c7b5e={..._0x2882e5};_0x4c7b5e['color']=_0x4c8891[_0x2882e5['color']],_0x53d1e4[_0x45f22b(0x3ca)](_0x5c64c3,_0x4c7b5e);}}),{'skeleton':_0x3c650c,'cursors':_0x53d1e4};}));}return _0x207817({'skeleton':null,'cursors':new Map()});}))[_0x46caa4(0x465)](({skeleton:_0x262e7e,cursors:_0x1f7049})=>{const _0x9ba3ff=_0x46caa4;this[_0x9ba3ff(0x27a)](),_0x262e7e&&this[_0x9ba3ff(0x280)](_0x262e7e,_0x1f7049);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x46caa4(0x465)](_0x4aeabb=>{const _0x377fc=_0x46caa4;if(_0x4aeabb==null)return;const {skeleton:_0x4322d}=_0x4aeabb,{scene:_0x3b3975}=this[_0x377fc(0x3a0)];_0x3b3975['onPointerMove$'][_0x377fc(0x2e4)](_0x2cf035(_0x32d9a6=>{const _0x3bf871=_0x377fc;var _0x33afab,_0x18dc85;const {offsetX:_0x3cc9b8,offsetY:_0x23e4ba}=_0x32d9a6,{x:_0x1359d6,y:_0x4f7ad8}=_0x3b3975['getRelativeToViewportCoord'](_0x45e6c1[_0x3bf871(0x370)]([_0x3cc9b8,_0x23e4ba])),{scaleX:_0x634418,scaleY:_0x2403eb}=_0x3b3975[_0x3bf871(0x2a0)](),_0x3e094e=_0x3b3975[_0x3bf871(0x237)](_0x4a3083[_0x3bf871(0x160)]),_0x32c7d9=_0x3b3975[_0x3bf871(0x2c1)](_0x45e6c1[_0x3bf871(0x370)]([_0x1359d6,_0x4f7ad8]),_0x3e094e),_0x33370d=_0x4322d[_0x3bf871(0x41c)](_0x3cc9b8,_0x23e4ba,_0x634418,_0x2403eb,_0x32c7d9);((_0x33afab=this[_0x3bf871(0x173)])==null?void 0x0:_0x33afab[_0x3bf871(0x188)])===_0x33370d[_0x3bf871(0x188)]&&((_0x18dc85=this[_0x3bf871(0x173)])==null?void 0x0:_0x18dc85['row'])===_0x33370d[_0x3bf871(0x1e9)]||this[_0x3bf871(0x289)]['forEach'](_0x37f846=>{_0x37f846['onMouseMove'](_0x33370d);});},0x64));});}[_0x513b3b(0x280)](_0x253c64,_0x5d6d7f){const _0x10364f=_0x513b3b;var _0x428542;const _0x45aa69=(_0x428542=this[_0x10364f(0x399)][_0x10364f(0x22d)]())==null?void 0x0:_0x428542[_0x10364f(0x449)];if(!_0x45aa69)return;const _0x37886d=this[_0x10364f(0x3ed)]();if(!_0x37886d)return;this[_0x10364f(0x289)]['forEach'](_0x439064=>{const _0x2c5ad2=_0x10364f;_0x439064[_0x2c5ad2(0x496)]();});const {scene:_0x3c5ea1}=_0x37886d,_0x430786=ho(Array['from'](_0x5d6d7f[_0x10364f(0x17a)]()))['map'](_0x31f176=>{const _0x139973=_0x10364f,{color:_0x74542c,range:_0x397eac,name:_0x2d45c1,selection:_0x6dde27,sheetID:_0x4087e2}=_0x31f176,{startColumn:_0x4b4633,startRow:_0x1a67fe,endColumn:_0x44cf74,endRow:_0x27922a}=_0x397eac,_0x2a108a=_0x4c9650(_0x1a67fe,_0x4b4633,_0x3c5ea1,_0x45aa69),_0x57a4ed=_0x4c9650(_0x27922a,_0x44cf74,_0x3c5ea1,_0x45aa69),{columnHeaderHeightAndMarginTop:_0x4e03d9}=_0x45aa69,{startX:_0x5e641c,startY:_0x42c456}=_0x2a108a,{endX:_0xb36542,endY:_0x49caa9}=_0x57a4ed,_0x5e2ca4=_0xb36542-_0x5e641c,_0x14551f=_0x49caa9-_0x42c456,_0x181d8e={'labelPosition':_0x42c456-_0x4e03d9>=$e?_0x139973(0x423):_0x139973(0x2c2),'sheetID':_0x4087e2,'range':_0x397eac,'color':_0x74542c,'name':_0x2d45c1,'selection':_0x6dde27,'left':_0x5e641c,'top':_0x42c456,'width':_0x5e2ca4,'height':_0x14551f,'evented':!0x1,'zIndex':co};return new no(_0x2d45c1,_0x181d8e);});_0x3c5ea1['addObjects'](_0x430786,so),this[_0x10364f(0x289)]=new Set(_0x430786);}[_0x513b3b(0x27a)](){const _0x20afca=_0x513b3b;var _0x483b3d;(_0x483b3d=this[_0x20afca(0x289)])==null||_0x483b3d['forEach'](_0x329d2d=>_0x329d2d[_0x20afca(0x3ce)]());}[_0x513b3b(0x3ed)](){const _0x29b51b=_0x513b3b;return _0x9b1a87(this[_0x29b51b(0x3a0)][_0x29b51b(0x446)],this['_context']);}};Pt=ao([gt(0x1,_0x53ed15(_0x3dfcbb)),gt(0x2,_0x53ed15(ve)),gt(0x3,_0x53ed15(_0xe610aa))],Pt);function ho(_0x210e3c){const _0x32c1fe=_0x513b3b,_0x1db595=new Map();return _0x210e3c[_0x32c1fe(0x301)](_0x188fc8=>{const _0x241a5c=_0x32c1fe;if(_0x1db595[_0x241a5c(0x243)](_0x188fc8[_0x241a5c(0x15c)])){const _0xea9d3=_0x1db595[_0x241a5c(0x49f)](_0x188fc8['selection']);_0xea9d3[_0x241a5c(0x41d)]+=',\x20'+_0x188fc8[_0x241a5c(0x41d)];}else _0x1db595[_0x241a5c(0x3ca)](_0x188fc8[_0x241a5c(0x15c)],_0x188fc8);}),Array[_0x32c1fe(0x256)](_0x1db595['values']());}var N=function(){const _0x1403d3=_0x513b3b;return N=Object[_0x1403d3(0x36b)]||function(_0x2cf033){const _0x5632ca=_0x1403d3;for(var _0x2ad33b,_0x3ede32=0x1,_0x1ca295=arguments[_0x5632ca(0x313)];_0x3ede32<_0x1ca295;_0x3ede32++){_0x2ad33b=arguments[_0x3ede32];for(var _0x1e76dd in _0x2ad33b)Object[_0x5632ca(0x228)][_0x5632ca(0x36e)]['call'](_0x2ad33b,_0x1e76dd)&&(_0x2cf033[_0x1e76dd]=_0x2ad33b[_0x1e76dd]);}return _0x2cf033;},N[_0x1403d3(0x201)](this,arguments);},lo=function(_0x13562c,_0x2bce2e){const _0x25ece9=_0x513b3b;var _0x5e3b61={};for(var _0x48a8c6 in _0x13562c)Object[_0x25ece9(0x228)]['hasOwnProperty'][_0x25ece9(0x194)](_0x13562c,_0x48a8c6)&&_0x2bce2e['indexOf'](_0x48a8c6)<0x0&&(_0x5e3b61[_0x48a8c6]=_0x13562c[_0x48a8c6]);if(_0x13562c!=null&&typeof Object[_0x25ece9(0x3d6)]==_0x25ece9(0x33d)){for(var _0x3fe67a=0x0,_0x48a8c6=Object[_0x25ece9(0x3d6)](_0x13562c);_0x3fe67a<_0x48a8c6['length'];_0x3fe67a++)_0x2bce2e[_0x25ece9(0x384)](_0x48a8c6[_0x3fe67a])<0x0&&Object['prototype'][_0x25ece9(0x4ca)][_0x25ece9(0x194)](_0x13562c,_0x48a8c6[_0x3fe67a])&&(_0x5e3b61[_0x48a8c6[_0x3fe67a]]=_0x13562c[_0x48a8c6[_0x3fe67a]]);}return _0x5e3b61;},Yt=_0x33fc8d(function(_0x2c6541,_0x46ee69){const _0x3bbd09=_0x513b3b;var _0x8d21ae=_0x2c6541[_0x3bbd09(0x35f)],_0x5cdcbe=_0x2c6541['id'],_0x576788=_0x2c6541['className'],_0x52044b=_0x2c6541[_0x3bbd09(0x1b6)],_0x21f821=lo(_0x2c6541,[_0x3bbd09(0x35f),'id','className',_0x3bbd09(0x1b6)]),_0x460acd=_0x3bbd09(0x3c8)['concat'](_0x5cdcbe,'\x20')[_0x3bbd09(0x1e5)](_0x576788||'')[_0x3bbd09(0x459)](),_0x2c5df9=_0x3dd20f('_'['concat'](mo()));return Xs(_0x8d21ae,''[_0x3bbd09(0x1e5)](_0x5cdcbe),{'defIds':_0x8d21ae['defIds'],'idSuffix':_0x2c5df9['current']},N({'ref':_0x46ee69,'className':_0x460acd},_0x21f821),_0x52044b);});function Xs(_0x5dafc1,_0x2ab5cd,_0x2f559e,_0x1f5368,_0x28eeba){const _0x28425d=_0x513b3b;return _0x3a56da(_0x5dafc1['tag'],N(N({'key':_0x2ab5cd},_o(_0x5dafc1,_0x2f559e,_0x28eeba)),_0x1f5368),(uo(_0x5dafc1,_0x2f559e)['children']||[])[_0x28425d(0x15a)](function(_0x13b0b5,_0x36e6b2){const _0x45df38=_0x28425d;return Xs(_0x13b0b5,''[_0x45df38(0x1e5)](_0x2ab5cd,'-')['concat'](_0x5dafc1[_0x45df38(0x31d)],'-')['concat'](_0x36e6b2),_0x2f559e,void 0x0,_0x28eeba);}));}function _o(_0x34248c,_0x36b8a7,_0x3ea1f7){const _0x2cd01e=_0x513b3b;var _0x5d5392=N({},_0x34248c[_0x2cd01e(0x4d6)]);_0x3ea1f7!=null&&_0x3ea1f7[_0x2cd01e(0x17f)]&&_0x5d5392[_0x2cd01e(0x28e)]===_0x2cd01e(0x17f)&&(_0x5d5392['fill']=_0x3ea1f7[_0x2cd01e(0x17f)]);var _0x6db005=_0x36b8a7[_0x2cd01e(0x497)];return!_0x6db005||_0x6db005[_0x2cd01e(0x313)]===0x0||(_0x34248c[_0x2cd01e(0x31d)]===_0x2cd01e(0x409)&&_0x5d5392[_0x2cd01e(0x1eb)]&&(_0x5d5392[_0x2cd01e(0x1eb)]=_0x5d5392[_0x2cd01e(0x1eb)]+_0x36b8a7['idSuffix']),Object[_0x2cd01e(0x16e)](_0x5d5392)[_0x2cd01e(0x301)](function(_0x17b963){const _0x41f3ae=_0x2cd01e;var _0x5e3d9f=_0x17b963[0x0],_0x27c647=_0x17b963[0x1];typeof _0x27c647==_0x41f3ae(0x490)&&(_0x5d5392[_0x5e3d9f]=_0x27c647[_0x41f3ae(0x22c)](/url\(#(.*)\)/,_0x41f3ae(0x1b8)[_0x41f3ae(0x1e5)](_0x36b8a7[_0x41f3ae(0x406)],')')));})),_0x5d5392;}function uo(_0xce2179,_0x47d672){const _0x710261=_0x513b3b;var _0x13b2ec,_0x2625c2=_0x47d672[_0x710261(0x497)];return!_0x2625c2||_0x2625c2[_0x710261(0x313)]===0x0?_0xce2179:_0xce2179[_0x710261(0x31d)]===_0x710261(0x329)&&(!((_0x13b2ec=_0xce2179[_0x710261(0x1a7)])===null||_0x13b2ec===void 0x0)&&_0x13b2ec[_0x710261(0x313)])?N(N({},_0xce2179),{'children':_0xce2179[_0x710261(0x1a7)][_0x710261(0x15a)](function(_0x4da0e1){const _0x4feb87=_0x710261;return typeof _0x4da0e1[_0x4feb87(0x4d6)]['id']==_0x4feb87(0x490)&&_0x2625c2&&_0x2625c2[_0x4feb87(0x384)](_0x4da0e1[_0x4feb87(0x4d6)]['id'])>-0x1?N(N({},_0x4da0e1),{'attrs':N(N({},_0x4da0e1[_0x4feb87(0x4d6)]),{'id':_0x4da0e1[_0x4feb87(0x4d6)]['id']+_0x47d672[_0x4feb87(0x406)]})}):_0x4da0e1;})}):_0xce2179;}function mo(){const _0x364024=_0x513b3b;return Math['random']()[_0x364024(0x40b)](0x24)[_0x364024(0x486)](0x2,0x8);}Yt[_0x513b3b(0x330)]=_0x513b3b(0x473);var fo={'tag':_0x513b3b(0x257),'attrs':{'fill':_0x513b3b(0x4d7),'viewBox':_0x513b3b(0x291),'width':_0x513b3b(0x1d4),'height':_0x513b3b(0x1d4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x513b3b(0x252),'attrs':{'stroke':'currentColor','d':_0x513b3b(0x2ef),'strokeLinecap':_0x513b3b(0x438),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x513b3b(0x329),'attrs':{},'children':[{'tag':_0x513b3b(0x22b),'attrs':{'id':_0x513b3b(0x43f)},'children':[{'tag':_0x513b3b(0x252),'attrs':{'fill':'#fff','d':_0x513b3b(0x1b1)}}]}]}],'defIds':[_0x513b3b(0x43f)]},qs=_0x33fc8d(function(_0x4627c8,_0x40023b){const _0x55f272=_0x513b3b;return _0x3a56da(Yt,Object[_0x55f272(0x36b)]({},_0x4627c8,{'id':_0x55f272(0x189),'ref':_0x40023b,'icon':fo}));});qs[_0x513b3b(0x330)]='OffLineSingle';var go={'tag':_0x513b3b(0x257),'attrs':{'fill':'none','viewBox':_0x513b3b(0x1bd),'width':_0x513b3b(0x1d4),'height':_0x513b3b(0x1d4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x513b3b(0x252),'attrs':{'stroke':_0x513b3b(0x1e0),'d':_0x513b3b(0x454),'strokeLinecap':_0x513b3b(0x438),'strokeLinejoin':_0x513b3b(0x438),'strokeWidth':1.2}}]},{'tag':_0x513b3b(0x329),'attrs':{},'children':[{'tag':_0x513b3b(0x22b),'attrs':{'id':_0x513b3b(0x3db)},'children':[{'tag':_0x513b3b(0x252),'attrs':{'fill':_0x513b3b(0x359),'d':_0x513b3b(0x1b1),'transform':_0x513b3b(0x3e5)}}]}]}],'defIds':[_0x513b3b(0x3db)]},Js=_0x33fc8d(function(_0x462baa,_0x5df6b6){const _0x22b879=_0x513b3b;return _0x3a56da(Yt,Object[_0x22b879(0x36b)]({},_0x462baa,{'id':_0x22b879(0x3b8),'ref':_0x5df6b6,'icon':go}));});Js[_0x513b3b(0x330)]='OnLineSingle';function zs(_0x3f8a1a){const _0x48b691=_0x513b3b;var _0x19e54f,_0x4faaf3,_0x3e4adf='';if(typeof _0x3f8a1a==_0x48b691(0x490)||typeof _0x3f8a1a==_0x48b691(0x4c8))_0x3e4adf+=_0x3f8a1a;else{if(typeof _0x3f8a1a=='object'){if(Array[_0x48b691(0x33f)](_0x3f8a1a)){var _0xb831f4=_0x3f8a1a[_0x48b691(0x313)];for(_0x19e54f=0x0;_0x19e54f<_0xb831f4;_0x19e54f++)_0x3f8a1a[_0x19e54f]&&(_0x4faaf3=zs(_0x3f8a1a[_0x19e54f]))&&(_0x3e4adf&&(_0x3e4adf+='\x20'),_0x3e4adf+=_0x4faaf3);}else{for(_0x4faaf3 in _0x3f8a1a)_0x3f8a1a[_0x4faaf3]&&(_0x3e4adf&&(_0x3e4adf+='\x20'),_0x3e4adf+=_0x4faaf3);}}}return _0x3e4adf;}function So(){const _0xae05b5=_0x513b3b;for(var _0x4a24dd,_0x188c94,_0x39ef8e=0x0,_0x19fa34='',_0x414ea5=arguments[_0xae05b5(0x313)];_0x39ef8e<_0x414ea5;_0x39ef8e++)(_0x4a24dd=arguments[_0x39ef8e])&&(_0x188c94=zs(_0x4a24dd))&&(_0x19fa34&&(_0x19fa34+='\x20'),_0x19fa34+=_0x188c94);return _0x19fa34;}const po=_0x513b3b(0x2aa),vo=_0x513b3b(0x2e3),Io=_0x513b3b(0x204),Eo='univer-online',Co='univer-offline',Pe={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x15578d){const _0x123314=_0x513b3b;switch(_0x15578d){case P[_0x123314(0x44c)]:return _0x123314(0x46e);case P[_0x123314(0x230)]:return _0x123314(0x428);case P[_0x123314(0x2ea)]:return _0x123314(0x265);case P['NOT_COLLAB']:return _0x123314(0x3b5);case P[_0x123314(0x200)]:case P['AWAITING_WITH_PENDING']:return _0x123314(0x24c);case P[_0x123314(0x149)]:case P[_0x123314(0x2a3)]:return _0x123314(0x182);}}function To(_0x56990d){const _0x5be1f2=_0x513b3b,{status$:_0x438074}=_0x56990d,_0x4ba9e1=_0x1e1202(_0x438074,P[_0x5be1f2(0x1e2)]),_0x36c5ea=_0x414f16(_0x1deb41),_0x85ac7b=_0x414f16(he),_0x5b2f13=_0x4ba9e1!==P[_0x5be1f2(0x44c)],_0x505bc4=_0x36c5ea['t'](bo(_0x4ba9e1)),_0x28049e=So(Pe['onlineStatus'],{[Pe[_0x5be1f2(0x2a8)]]:_0x5b2f13,[Pe[_0x5be1f2(0x1da)]]:!_0x5b2f13}),_0x73d324=_0x5b2f13?_0x30d3ac['createElement'](Js,null):_0x30d3ac[_0x5be1f2(0x2d9)](qs,null),_0x57bb4a=_0x162ab0(()=>{const _0x3b2ac2=_0x5be1f2;_0x5b2f13||_0x85ac7b[_0x3b2ac2(0x43b)]();},[_0x5b2f13,_0x85ac7b]);function _0x1f5f05(){const _0x555466=_0x5be1f2;return _0x30d3ac['createElement'](_0x555466(0x25d),{'className':_0x28049e,'onClick':_0x57bb4a},_0x30d3ac['createElement'](_0x555466(0x25d),{'className':Pe['onlineStatusIcon']},_0x73d324),_0x30d3ac[_0x555466(0x2d9)](_0x555466(0x25d),{'className':Pe[_0x555466(0x491)]},_0x505bc4));}return _0x5b2f13?_0x1f5f05():_0x30d3ac[_0x5be1f2(0x2d9)](_0x1850eb,{'title':_0x36c5ea['t'](_0x5be1f2(0x22f))},_0x1f5f05());}var Ro=Object[_0x513b3b(0x1a5)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x38b374,_0x38319e,_0x323eb5,_0x144228)=>{const _0x4b4819=_0x513b3b;for(var _0x51455c=_0x144228>0x1?void 0x0:_0x144228?Oo(_0x38319e,_0x323eb5):_0x38319e,_0x1e7ec6=_0x38b374[_0x4b4819(0x313)]-0x1,_0x2f44eb;_0x1e7ec6>=0x0;_0x1e7ec6--)(_0x2f44eb=_0x38b374[_0x1e7ec6])&&(_0x51455c=(_0x144228?_0x2f44eb(_0x38319e,_0x323eb5,_0x51455c):_0x2f44eb(_0x51455c))||_0x51455c);return _0x144228&&_0x51455c&&Ro(_0x38319e,_0x323eb5,_0x51455c),_0x51455c;},Be=(_0x5aec09,_0x256011)=>(_0x1bbb4c,_0x58b013)=>_0x256011(_0x1bbb4c,_0x58b013,_0x5aec09);let Me=class extends _0x5f406a{constructor(_0x912cc5,_0x33b578,_0x2f090c,_0x1fafb4){const _0xded4f=_0x513b3b;super(),l(this,_0xded4f(0x1de),new _0x1edb16(P[_0xded4f(0x1e2)])),(this[_0xded4f(0x4c4)]=_0x912cc5,this[_0xded4f(0x3fc)]=_0x33b578,this[_0xded4f(0x31e)]=_0x2f090c,this[_0xded4f(0x436)]=_0x1fafb4,this[_0xded4f(0x306)](),this[_0xded4f(0x4a7)]());}['_initStatusListener'](){const _0x25bffe=_0x513b3b;this['disposeWithMe'](this[_0x25bffe(0x4c4)][_0x25bffe(0x335)][_0x25bffe(0x33b)](_0x1317fa(()=>{const _0x360a97=_0x25bffe,_0x123a23=this['_univerInstanceService'][_0x360a97(0x450)]();return _0x123a23?this[_0x360a97(0x436)]['getCollabEntity$'](_0x123a23['getUnitId']()):_0x207817(null);}),_0x1317fa(_0x5ae584=>_0x5ae584?_0x5ae584[_0x25bffe(0x258)]:_0x207817(P[_0x25bffe(0x1e2)])))[_0x25bffe(0x465)](_0x2e9021=>{const _0x3d89b2=_0x25bffe;this[_0x3d89b2(0x1de)]['next'](_0x2e9021);}));}[_0x513b3b(0x306)](){const _0x101616=_0x513b3b;this[_0x101616(0x233)](this['_uiPartsService']['registerComponent'](_0x5d8ddb[_0x101616(0x3da)],()=>_0x11ef5a(wo({'status$':this[_0x101616(0x1de)]['asObservable']()}),this['_injector'])));}};Me=Do([Be(0x0,_0x4c005a),Be(0x1,_0x55a85e),Be(0x2,_0x53ed15(_0x3165b6)),Be(0x3,_0x53ed15(Le))],Me);function wo(_0x1e8f31){const {status$:_0x531e78}=_0x1e8f31;return function(){const _0x2e8e83=_0x1736;return _0x30d3ac[_0x2e8e83(0x2d9)](To,{'status$':_0x531e78});};}const Zs=_0x52354a(_0x513b3b(0x35a));var Po=Object[_0x513b3b(0x1a5)],yo=Object[_0x513b3b(0x1be)],Uo=(_0x4abb36,_0x103d76,_0x5bae3e,_0x6d51d0)=>{const _0x8a8a37=_0x513b3b;for(var _0x15391f=_0x6d51d0>0x1?void 0x0:_0x6d51d0?yo(_0x103d76,_0x5bae3e):_0x103d76,_0x4c711b=_0x4abb36[_0x8a8a37(0x313)]-0x1,_0x5e82c5;_0x4c711b>=0x0;_0x4c711b--)(_0x5e82c5=_0x4abb36[_0x4c711b])&&(_0x15391f=(_0x6d51d0?_0x5e82c5(_0x103d76,_0x5bae3e,_0x15391f):_0x5e82c5(_0x15391f))||_0x15391f);return _0x6d51d0&&_0x15391f&&Po(_0x103d76,_0x5bae3e,_0x15391f),_0x15391f;},ge=(_0x5f5dac,_0x4ebcf7)=>(_0x56b67f,_0x346999)=>_0x4ebcf7(_0x56b67f,_0x346999,_0x5f5dac);let Je=class extends _0x346899{constructor(_0x34001f,_0x4a964f,_0x275682,_0x3ef191,_0xde931a,_0x4f6a5c){const _0x141c72=_0x513b3b;super(),this[_0x141c72(0x1b4)]=_0x34001f,this[_0x141c72(0x4e0)]=_0x4a964f,this['_commandService']=_0x275682,this[_0x141c72(0x2be)]=_0x3ef191,this['_snapshotService']=_0xde931a,_0x4f6a5c?_0x4f6a5c==null||_0x4f6a5c[_0x141c72(0x3e4)]()[_0x141c72(0x2cd)](()=>this[_0x141c72(0x49c)]()):(this[_0x141c72(0x4e0)][_0x141c72(0x2bc)](_0x141c72(0x244),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x141c72(0x49c)]());}async[_0x513b3b(0x49c)](){const _0xe8a449=_0x513b3b,_0x281703=this[_0xe8a449(0x1b4)]['getParam']('unit'),_0x33dc85=this[_0xe8a449(0x1b4)][_0xe8a449(0x33e)]('type');if(!_0x281703||!_0x33dc85){this[_0xe8a449(0x4e0)][_0xe8a449(0x2bc)](_0xe8a449(0x244),_0xe8a449(0x499));return;}switch(Number(_0x33dc85)){case k['UNIVER_SHEET']:{const _0x59d78e=await this[_0xe8a449(0x297)](_0x281703);this['_setupSubUnitSync'](_0x59d78e);break;}case k['UNIVER_DOC']:{await this[_0xe8a449(0x475)](_0x281703);break;}default:{this[_0xe8a449(0x4e0)][_0xe8a449(0x25c)]('[DataLoaderController]',_0xe8a449(0x223));break;}}}async['_setupSubUnitSync'](_0x5c0a61){const _0x2a7254=_0x513b3b;await this[_0x2a7254(0x198)](_0x5c0a61),_0x5c0a61[_0x2a7254(0x30f)][_0x2a7254(0x33b)](_0x3bacfd(this[_0x2a7254(0x2d2)]))[_0x2a7254(0x465)](_0x3144cb=>{_0x3144cb&&this['_updateURLWithCurrentState'](_0x3144cb);}),this['_urlService'][_0x2a7254(0x42f)][_0x2a7254(0x33b)](_0x3bacfd(this[_0x2a7254(0x2d2)]))[_0x2a7254(0x465)](()=>this[_0x2a7254(0x198)](_0x5c0a61));}[_0x513b3b(0x47e)](_0x3f29c5,_0x1eb974=!0x1){const _0x3514cf=_0x513b3b,_0x4c2548=this[_0x3514cf(0x1b4)][_0x3514cf(0x33e)]('subunit');_0x3f29c5['getSheetId']()!==_0x4c2548&&this[_0x3514cf(0x1b4)][_0x3514cf(0x1b9)]('subunit',_0x3f29c5[_0x3514cf(0x27d)](),_0x1eb974);}async[_0x513b3b(0x198)](_0x597e12){const _0x8336b2=_0x513b3b;var _0x48e383;const _0x24be26=this[_0x8336b2(0x1b4)][_0x8336b2(0x33e)](_0x8336b2(0x18b));if(!_0x24be26||!_0x597e12[_0x8336b2(0x2d3)](_0x24be26)){const _0x40f2d8=_0x597e12[_0x8336b2(0x23f)]()[0x0],_0x193f49=_0x597e12[_0x8336b2(0x2d3)](_0x40f2d8);if(!_0x193f49)return;this[_0x8336b2(0x47e)](_0x193f49,!0x0),await this[_0x8336b2(0x2b6)][_0x8336b2(0x374)](_0xc656da['id'],{'unitId':_0x597e12[_0x8336b2(0x389)](),'subUnitId':_0x40f2d8});return;}((_0x48e383=_0x597e12[_0x8336b2(0x349)]())==null?void 0x0:_0x48e383['getSheetId']())!==_0x24be26&&await this['_commandService'][_0x8336b2(0x374)](_0xc656da['id'],{'unitId':_0x597e12[_0x8336b2(0x389)](),'subUnitId':_0x24be26});}async[_0x513b3b(0x297)](_0x3be51f){const _0x415fda=_0x513b3b;let _0x2c1868=0x0;const _0xde6fe3=await this['_localCacheService'][_0x415fda(0x263)](_0x3be51f);return _0xde6fe3&&(_0xde6fe3[_0x415fda(0x424)]||_0xde6fe3[_0x415fda(0x421)]['length']!==0x0)&&(_0x2c1868=_0xde6fe3[_0x415fda(0x20c)]),_0x2c1868===0x0&&this[_0x415fda(0x4e0)][_0x415fda(0x2bc)](_0x415fda(0x244),_0x415fda(0x395)),this[_0x415fda(0x396)][_0x415fda(0x474)](_0x3be51f,_0x2c1868);}async[_0x513b3b(0x475)](_0x1acfe0){const _0x41153a=_0x513b3b;let _0xcc6e48=0x0;const _0x990fb7=await this['_localCacheService'][_0x41153a(0x263)](_0x1acfe0);return _0x990fb7&&(_0x990fb7['awaitingChangeset']||_0x990fb7[_0x41153a(0x421)][_0x41153a(0x313)]!==0x0)&&(_0xcc6e48=_0x990fb7[_0x41153a(0x20c)]),_0xcc6e48===0x0&&this['_logService'][_0x41153a(0x2bc)]('[DataLoaderController]',_0x41153a(0x395)),this[_0x41153a(0x396)][_0x41153a(0x32a)](_0x1acfe0,_0xcc6e48);}};Je=Uo([ge(0x0,Zs),ge(0x1,_0x385fd2),ge(0x2,_0x8348c),ge(0x3,_0x53ed15(w)),ge(0x4,_0x53ed15(_0x536a79)),ge(0x5,_0x507395(_0x5a5e3a))],Je);var No=Object['defineProperty'],Mo=Object[_0x513b3b(0x1be)],Ao=(_0x3d88fc,_0xd7d8cb,_0x42c327,_0x376449)=>{const _0x2faf21=_0x513b3b;for(var _0x39f07e=_0x376449>0x1?void 0x0:_0x376449?Mo(_0xd7d8cb,_0x42c327):_0xd7d8cb,_0xa71860=_0x3d88fc[_0x2faf21(0x313)]-0x1,_0x12493c;_0xa71860>=0x0;_0xa71860--)(_0x12493c=_0x3d88fc[_0xa71860])&&(_0x39f07e=(_0x376449?_0x12493c(_0xd7d8cb,_0x42c327,_0x39f07e):_0x12493c(_0x39f07e))||_0x39f07e);return _0x376449&&_0x39f07e&&No(_0xd7d8cb,_0x42c327,_0x39f07e),_0x39f07e;},Ss=(_0x3c7be3,_0x1a9cb3)=>(_0x5ee298,_0x585c37)=>_0x1a9cb3(_0x5ee298,_0x585c37,_0x3c7be3);const Lo=_0x513b3b(0x2fe),$o=_0x513b3b(0x37f);let ze=class extends _0x5f406a{constructor(_0x4b5aff,_0x56af20){const _0xc992bc=_0x513b3b;super(),this[_0xc992bc(0x4c4)]=_0x4b5aff,this[_0xc992bc(0x2cf)]=_0x56af20,this[_0xc992bc(0x49c)]();}[_0x513b3b(0x49c)](){const _0x2052bc=_0x513b3b;this[_0x2052bc(0x233)](this['_univerInstanceService'][_0x2052bc(0x335)]['subscribe'](()=>{const _0x3bf587=_0x2052bc;var _0x45682f;const _0x41e101=this[_0x3bf587(0x4c4)]['getFocusedUnit']();let _0x27c7fe=(_0x45682f=this[_0x3bf587(0x2cf)][_0x3bf587(0x4a0)](Lo))!=null?_0x45682f:$o;_0x41e101 instanceof _0x15ef00&&(_0x27c7fe=_0x41e101[_0x3bf587(0x41d)]),document[_0x3bf587(0x1f9)]=_0x27c7fe;}));}};ze=Ao([Ss(0x0,_0x4c005a),Ss(0x1,_0x17c84c)],ze);var jo=Object[_0x513b3b(0x1a5)],Ho=Object[_0x513b3b(0x1be)],xo=(_0x5b52ae,_0x4fe2f3,_0x3ce7d8,_0x4f29a1)=>{const _0x22abf1=_0x513b3b;for(var _0x52f16a=_0x4f29a1>0x1?void 0x0:_0x4f29a1?Ho(_0x4fe2f3,_0x3ce7d8):_0x4fe2f3,_0x53a9e1=_0x5b52ae[_0x22abf1(0x313)]-0x1,_0x1d6ade;_0x53a9e1>=0x0;_0x53a9e1--)(_0x1d6ade=_0x5b52ae[_0x53a9e1])&&(_0x52f16a=(_0x4f29a1?_0x1d6ade(_0x4fe2f3,_0x3ce7d8,_0x52f16a):_0x1d6ade(_0x52f16a))||_0x52f16a);return _0x4f29a1&&_0x52f16a&&jo(_0x4fe2f3,_0x3ce7d8,_0x52f16a),_0x52f16a;},St=(_0xfbe1c6,_0x52217c)=>(_0x63800c,_0x355b72)=>_0x52217c(_0x63800c,_0x355b72,_0xfbe1c6);let Ze=class{constructor(_0x473aff,_0x4e766b,_0x3cc114){const _0x5f1142=_0x513b3b;this['_configService']=_0x473aff,this[_0x5f1142(0x37e)]=_0x4e766b,this[_0x5f1142(0x20a)]=_0x3cc114,this[_0x5f1142(0x145)]();}[_0x513b3b(0x145)](){const _0x2377a4=_0x513b3b;this['_httpService'][_0x2377a4(0x21e)]({'priority':0x1,'interceptor':(_0x36c31c,_0x366af5)=>_0x366af5(_0x36c31c)['pipe'](_0x40a3d7(async _0x280972=>{const _0x223210=_0x2377a4,_0x499007=_0x280972;if(_0x499007[_0x223210(0x3a7)]===0x191&&window[_0x223210(0x3c6)](this['localeService']['t'](_0x223210(0x274)))){const _0x579015=window['encodeURIComponent'](window['location'][_0x223210(0x429)]);window[_0x223210(0x3fd)][_0x223210(0x429)]=this['_getLoginPath']()+_0x223210(0x2fc)+_0x579015;}return _0x499007;}))});}[_0x513b3b(0x401)](){const _0x96a92a=_0x513b3b;var _0x29a766,_0x357c1c;const _0x5edb61=this['_configService'][_0x96a92a(0x4a0)](Ln),_0x442e97=this[_0x96a92a(0x2cf)][_0x96a92a(0x4a0)]($);return(_0x357c1c=(_0x29a766=_0x442e97==null?void 0x0:_0x442e97[_0x96a92a(0x2f6)])!=null?_0x29a766:_0x5edb61)!=null?_0x357c1c:$n;}};Ze=xo([St(0x0,_0x17c84c),St(0x1,_0x53ed15(_0x444e74)),St(0x2,_0x53ed15(_0x1deb41))],Ze);var ko=Object[_0x513b3b(0x1a5)],Bo=Object[_0x513b3b(0x1be)],Vo=(_0x420543,_0x43edad,_0x2de235,_0x3ea535)=>{for(var _0x1985c5=_0x3ea535>0x1?void 0x0:_0x3ea535?Bo(_0x43edad,_0x2de235):_0x43edad,_0x29cdce=_0x420543['length']-0x1,_0x4fb36c;_0x29cdce>=0x0;_0x29cdce--)(_0x4fb36c=_0x420543[_0x29cdce])&&(_0x1985c5=(_0x3ea535?_0x4fb36c(_0x43edad,_0x2de235,_0x1985c5):_0x4fb36c(_0x1985c5))||_0x1985c5);return _0x3ea535&&_0x1985c5&&ko(_0x43edad,_0x2de235,_0x1985c5),_0x1985c5;},ps=(_0x2194c4,_0x26d8ab)=>(_0x34d835,_0x1a725b)=>_0x26d8ab(_0x34d835,_0x1a725b,_0x2194c4);const Fo=_0x513b3b(0x3a5),Wo='/universer-api/authz';let yt=class extends _0x5f406a{constructor(_0x5a3df1,_0x4b2806){const _0x3585eb=_0x513b3b;super(),this['_HTTPService']=_0x5a3df1,this[_0x3585eb(0x2cf)]=_0x4b2806,this[_0x3585eb(0x4bf)]();}[_0x513b3b(0x4bf)](){const _0x45ff6a=_0x513b3b,_0xa3255f=this;this['disposeWithMe'](this['_HTTPService'][_0x45ff6a(0x21e)]({'priority':0x3e7,'interceptor':_0x23483c({'isMatch'(_0x10f18a){const _0x47bc45=_0x45ff6a;var _0x43a664;if(_0x10f18a[_0x47bc45(0x1ce)]==='POST'&&((_0x43a664=_0x10f18a[_0x47bc45(0x1cc)])!=null&&_0x43a664[_0x47bc45(0x45f)])){const {objectID:_0x19987d,objectType:_0x4fe0de}=_0x10f18a['requestParams']['body']||{};if(!_0x19987d||_0x4fe0de===void 0x0)return!0x1;const _0x2e58b6=_0xa3255f[_0x47bc45(0x1ee)]()+'/'+_0x4fe0de+_0x47bc45(0x4b8)+_0x19987d+_0x47bc45(0x31a);if(_0x10f18a['url']===_0x2e58b6)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1dcdec){const _0xec8707=_0x45ff6a;var _0x25fb47;return(_0x25fb47=_0x1dcdec[_0xec8707(0x1cc)])==null?void 0x0:_0x25fb47[_0xec8707(0x45f)];},'mergeParamsToRequest'(_0x24e01c,_0x16a13d){const _0x551e0e=_0x45ff6a,_0x17ec05=_0xa3255f[_0x551e0e(0x1ee)]()+_0x551e0e(0x2d7),_0x21ac13=_0x24e01c[_0x551e0e(0x2cc)]((_0x6eaaf4,_0x5ea929)=>{const _0xc607ab=_0x551e0e,{unitID:_0x724f8d,objectID:_0x470c9c,objectType:_0xd34eed,actions:_0x30fbed}=_0x5ea929;return _0x6eaaf4[_0x724f8d]||(_0x6eaaf4[_0x724f8d]={}),_0x6eaaf4[_0x724f8d][_0x470c9c]||(_0x6eaaf4[_0x724f8d][_0x470c9c]={'objectID':_0x470c9c,'objectType':_0xd34eed,'actions':[]}),_0x6eaaf4[_0x724f8d][_0x470c9c][_0xc607ab(0x458)][_0xc607ab(0x152)](..._0x30fbed),_0x6eaaf4;},{}),_0x286b2e=[];for(const _0x204223 in _0x21ac13)for(const _0x3656be in _0x21ac13[_0x204223]){const {actions:_0x1fb7fb,objectType:_0x102833}=_0x21ac13[_0x204223][_0x3656be],_0x3faa68=[...new Set(_0x1fb7fb)];_0x286b2e[_0x551e0e(0x152)]({'unitID':_0x204223,'objectID':_0x3656be,'objectType':_0x102833,'actions':_0x3faa68});}return new _0x367db5(_0x551e0e(0x1f0),_0x17ec05,{'headers':_0x16a13d[_0x551e0e(0x1f6)],'withCredentials':_0x16a13d[_0x551e0e(0x29d)],'responseType':_0x16a13d[_0x551e0e(0x26d)],'body':{'requests':_0x286b2e}});}},{'distributeResult'(_0x239e37,_0x564773){const _0x5ae65e=_0x45ff6a,{objectActions:_0x2d5296}=_0x239e37;return _0x564773[_0x5ae65e(0x15a)](_0x277733=>{const _0xc89c4=_0x5ae65e,{unitID:_0x413690,objectID:_0x2e715c,actions:_0xe5ff10}=_0x277733,_0x54b7dc=_0x2d5296[_0xc89c4(0x3ef)](_0x3f39e2=>_0x3f39e2[_0xc89c4(0x44f)]===_0x413690&&_0x3f39e2[_0xc89c4(0x1a6)]===_0x2e715c),_0x2767d0=_0xe5ff10[_0xc89c4(0x15a)](_0x3afbef=>_0x54b7dc==null?void 0x0:_0x54b7dc[_0xc89c4(0x458)][_0xc89c4(0x3ef)](_0x34cdea=>_0x34cdea[_0xc89c4(0x3f2)]===_0x3afbef))['filter'](_0x115b5e=>!!_0x115b5e);return{'config':_0x277733,'result':{'actions':_0x2767d0,'error':_0x239e37[_0xc89c4(0x25c)]}};});}})}));}[_0x513b3b(0x1ee)](){const _0x4ea899=_0x513b3b;var _0x563101,_0x24fb21;const _0x54191a=this[_0x4ea899(0x2cf)][_0x4ea899(0x4a0)](Fo),_0x4634ec=this[_0x4ea899(0x2cf)][_0x4ea899(0x4a0)]($);return(_0x24fb21=(_0x563101=_0x4634ec==null?void 0x0:_0x4634ec['authzUrl'])!=null?_0x563101:_0x54191a)!=null?_0x24fb21:Wo;}async[_0x513b3b(0x32c)](_0x3a36c9){const _0x350d1b=_0x513b3b,_0x4f740d=this[_0x350d1b(0x1ee)]()+'/'+_0x3a36c9[_0x350d1b(0x4cc)]+_0x350d1b(0x221);return(await this[_0x350d1b(0x2f5)][_0x350d1b(0x34e)](_0x4f740d,{'body':_0x3a36c9}))[_0x350d1b(0x45f)]['objectID']||'';}async['list'](_0x57cadf){const _0x5f3440=_0x513b3b,_0x3857d5=this[_0x5f3440(0x1ee)]()+_0x5f3440(0x357);return(await this[_0x5f3440(0x2f5)][_0x5f3440(0x34e)](_0x3857d5,{'body':_0x57cadf}))[_0x5f3440(0x45f)][_0x5f3440(0x3b0)];}async[_0x513b3b(0x4b9)](_0x28478d){const _0x3dec56=_0x513b3b,_0x5c4931=this['_getAPIPrefixPath']()+'/'+_0x28478d[_0x3dec56(0x4cc)]+_0x3dec56(0x4b8)+_0x28478d[_0x3dec56(0x1a6)];await this[_0x3dec56(0x2f5)][_0x3dec56(0x29c)](_0x5c4931,{'body':_0x28478d});}async[_0x513b3b(0x1fb)](_0x34f90a){const _0x41c472=_0x513b3b,_0x4e99c5=this['_getAPIPrefixPath']()+'/'+_0x34f90a[_0x41c472(0x4cc)]+_0x41c472(0x4b8)+_0x34f90a[_0x41c472(0x1a6)]+_0x41c472(0x31a);return(await this[_0x41c472(0x2f5)][_0x41c472(0x34e)](_0x4e99c5,{'body':_0x34f90a}))['body'][_0x41c472(0x458)];}async[_0x513b3b(0x3cd)](_0x44f601){const _0x391917=_0x513b3b,_0x2ba8ec=this[_0x391917(0x1ee)]()+_0x391917(0x2d7);return(await this['_HTTPService'][_0x391917(0x34e)](_0x2ba8ec,{'body':{'requests':_0x44f601}}))[_0x391917(0x45f)][_0x391917(0x390)];}async['listRoles'](_0x462f1e){const _0x44b292=_0x513b3b,_0x3a636c=this['_getAPIPrefixPath']()+'/'+_0x462f1e['objectType']+_0x44b292(0x1d0),_0x3a292c=await this[_0x44b292(0x2f5)][_0x44b292(0x34e)](_0x3a636c,{'body':_0x462f1e});return{'roles':_0x3a292c['body'][_0x44b292(0x2ba)],'actions':_0x3a292c[_0x44b292(0x45f)]['actions']};}async[_0x513b3b(0x27b)](_0x50b9bb){const _0x2eb590=_0x513b3b,_0x5ce5a6=this[_0x2eb590(0x1ee)]()+'/collaborator';await this[_0x2eb590(0x2f5)][_0x2eb590(0x248)](_0x5ce5a6,{'params':{'collaboratorID':_0x50b9bb['collaboratorID'],'objectID':_0x50b9bb[_0x2eb590(0x1a6)],'unitID':_0x50b9bb[_0x2eb590(0x44f)]}});}async[_0x513b3b(0x39d)](_0x3ae125){const _0x2bef15=_0x513b3b,_0x1608a8=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x2bef15(0x2f5)][_0x2bef15(0x376)](_0x1608a8,{'body':_0x3ae125});}async[_0x513b3b(0x471)](_0x3133f5){const _0x30923e=_0x513b3b,_0x1871bd=this[_0x30923e(0x1ee)]()+_0x30923e(0x397);await this[_0x30923e(0x2f5)][_0x30923e(0x34e)](_0x1871bd,{'body':_0x3133f5});}async[_0x513b3b(0x2ec)](_0x57fb2b){const _0x32f1da=_0x513b3b,_0x449c7a=this['_getAPIPrefixPath']()+'/collaborator';return(await this['_HTTPService'][_0x32f1da(0x49f)](_0x449c7a,{'params':{'objectID':_0x57fb2b[_0x32f1da(0x1a6)],'unitID':_0x57fb2b[_0x32f1da(0x44f)]}}))['body']['collaborators'];}async[_0x513b3b(0x21d)](_0x2118e8){const _0x983c6f=_0x513b3b,_0x371485=this[_0x983c6f(0x1ee)]()+_0x983c6f(0x397);await this['_HTTPService'][_0x983c6f(0x29c)](_0x371485,{'body':_0x2118e8});}};yt=Vo([ps(0x0,_0x53ed15(_0x444e74)),ps(0x1,_0x53ed15(_0x17c84c))],yt);var Go=Object[_0x513b3b(0x1a5)],Yo=Object['getOwnPropertyDescriptor'],Ko=(_0x5b26a4,_0x8669c2,_0x24304b,_0x36418e)=>{const _0x406517=_0x513b3b;for(var _0x42fb2e=_0x36418e>0x1?void 0x0:_0x36418e?Yo(_0x8669c2,_0x24304b):_0x8669c2,_0x2b033f=_0x5b26a4[_0x406517(0x313)]-0x1,_0x25cead;_0x2b033f>=0x0;_0x2b033f--)(_0x25cead=_0x5b26a4[_0x2b033f])&&(_0x42fb2e=(_0x36418e?_0x25cead(_0x8669c2,_0x24304b,_0x42fb2e):_0x25cead(_0x42fb2e))||_0x42fb2e);return _0x36418e&&_0x42fb2e&&Go(_0x8669c2,_0x24304b,_0x42fb2e),_0x42fb2e;},Xo=(_0x2fda87,_0x53d536)=>(_0x430344,_0x4ee7ee)=>_0x53d536(_0x430344,_0x4ee7ee,_0x2fda87);let Qe=class{constructor(_0x4dddd3){const _0x3a1f7c=_0x513b3b;this[_0x3a1f7c(0x37e)]=_0x4dddd3,this[_0x3a1f7c(0x150)]();}[_0x513b3b(0x150)](){const _0x278729=_0x513b3b;this[_0x278729(0x37e)]['registerHTTPInterceptor']({'interceptor':(_0x121b78,_0x3f71d4)=>{const _0x4c4948=_0x278729,_0x409b18=_0x121b78['headers'],_0xa363ed=_0x5841f9();return _0xa363ed&&_0x409b18[_0x4c4948(0x3ca)](_0x4c4948(0x245),_0xa363ed),_0x3f71d4(_0x121b78);}});}};Qe=Ko([Xo(0x0,_0x53ed15(_0x444e74))],Qe);var qo=Object[_0x513b3b(0x1a5)],Jo=Object[_0x513b3b(0x1be)],zo=(_0x410a49,_0x5dcddb,_0x1c2662,_0x25b44f)=>{const _0xaa8bea=_0x513b3b;for(var _0x5f33d3=_0x25b44f>0x1?void 0x0:_0x25b44f?Jo(_0x5dcddb,_0x1c2662):_0x5dcddb,_0xa9d2aa=_0x410a49[_0xaa8bea(0x313)]-0x1,_0x40d19a;_0xa9d2aa>=0x0;_0xa9d2aa--)(_0x40d19a=_0x410a49[_0xa9d2aa])&&(_0x5f33d3=(_0x25b44f?_0x40d19a(_0x5dcddb,_0x1c2662,_0x5f33d3):_0x40d19a(_0x5f33d3))||_0x5f33d3);return _0x25b44f&&_0x5f33d3&&qo(_0x5dcddb,_0x1c2662,_0x5f33d3),_0x5f33d3;},pt=(_0xf2cf29,_0x1b8722)=>(_0x1f5d71,_0x442f6a)=>_0x1b8722(_0x1f5d71,_0x442f6a,_0xf2cf29);const Zo=[_0x513b3b(0x1a9),_0x513b3b(0x1f5),_0x513b3b(0x469),_0x513b3b(0x3a2),_0x513b3b(0x25a)],Qo=0x5*0x400*0x400,ea=_0x513b3b(0x4b3),ta='/universer-api/stream/file/upload',sa=_0x513b3b(0x3f6),ia=_0x513b3b(0x3aa);let Ut=class{constructor(_0x399864,_0x1f868e,_0x4f2aa0){const _0x28a8f2=_0x513b3b;l(this,_0x28a8f2(0x18e),0x0),l(this,_0x28a8f2(0x383),new _0x210aee()),l(this,_0x28a8f2(0x4cf),this['_change$']),l(this,_0x28a8f2(0x4ad),new Map()),(this[_0x28a8f2(0x37e)]=_0x399864,this[_0x28a8f2(0x2cf)]=_0x1f868e,this[_0x28a8f2(0x4c4)]=_0x4f2aa0);}[_0x513b3b(0x1d6)](_0x136ece){const _0x266285=_0x513b3b;this[_0x266285(0x18e)]=_0x136ece,this[_0x266285(0x383)][_0x266285(0x48d)](_0x136ece);}[_0x513b3b(0x14a)](_0x81c8f0,_0x47913e){const _0x4d6cb3=_0x513b3b;if(_0x47913e===_0x361782[_0x4d6cb3(0x444)]){const _0x4ffa40=new Image();return _0x4ffa40[_0x4d6cb3(0x37b)]=_0x81c8f0,_0x4ffa40;}return this['_imageSourceCache']['get'](_0x81c8f0);}[_0x513b3b(0x2f4)](_0x3d744f,_0x4ad04f,_0x5f196e){const _0x295f36=_0x513b3b;_0x4ad04f===_0x361782[_0x295f36(0x444)]||_0x5f196e==null||this[_0x295f36(0x4ad)][_0x295f36(0x3ca)](_0x3d744f,_0x5f196e);}async[_0x513b3b(0x3d4)](_0x588085){const _0xc14261=_0x513b3b;try{const _0x9d1bdf=this[_0xc14261(0x38c)](this[_0xc14261(0x1e7)](),''+_0x588085),_0x4d364e=(await this[_0xc14261(0x37e)]['get'](_0x9d1bdf))[_0xc14261(0x45f)];if(_0x4d364e[_0xc14261(0x25c)]&&_0x4d364e['error'][_0xc14261(0x1bc)]===xs['OK']){const _0x370545=new URL(_0x4d364e[_0xc14261(0x1ef)],this[_0xc14261(0x434)]())[_0xc14261(0x40b)]();return Promise[_0xc14261(0x166)](_0x370545);}return Promise[_0xc14261(0x255)](_0x4d364e[_0xc14261(0x25c)]);}catch(_0x24f4a8){return Promise[_0xc14261(0x255)](_0x24f4a8);}}async[_0x513b3b(0x316)](_0x2c2b53){const _0x1082ce=_0x513b3b;let _0x1c68ce='';if(!Zo[_0x1082ce(0x32f)](_0x2c2b53[_0x1082ce(0x30b)]))return this[_0x1082ce(0x1ff)](),Promise[_0x1082ce(0x255)](new Error(_0x4458b5['ERROR_IMAGE_TYPE']));if(_0x2c2b53[_0x1082ce(0x302)]>Qo)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x4458b5[_0x1082ce(0x392)]));try{const _0x270f78=new FormData();_0x270f78[_0x1082ce(0x484)](_0x1082ce(0x1ba),_0x2c2b53);const _0x1bec2d=this[_0x1082ce(0x4c4)][_0x1082ce(0x450)](),_0x3612ee=_0x1bec2d==null?void 0x0:_0x1bec2d[_0x1082ce(0x389)]();if(!_0x3612ee)throw new Error(_0x1082ce(0x427));const _0x2575be=this[_0x1082ce(0x3f3)]()+'?size='+_0x2c2b53[_0x1082ce(0x302)][_0x1082ce(0x40b)]()+_0x1082ce(0x1c7)+ks[_0x1082ce(0x1c3)]+'&assign='+encodeURIComponent(_0x3612ee),_0x1559d2=await(await fetch(_0x2575be,{'method':_0x1082ce(0x1f0),'body':_0x270f78}))[_0x1082ce(0x49d)]();if(typeof _0x1559d2['FileId']!=_0x1082ce(0x490))return this[_0x1082ce(0x1ff)](),Promise['reject'](new Error(_0x4458b5[_0x1082ce(0x16b)]));_0x1c68ce=_0x1559d2[_0x1082ce(0x460)];}catch{return this[_0x1082ce(0x1ff)](),Promise[_0x1082ce(0x255)](new Error(_0x4458b5['ERROR_IMAGE']));}return new Promise((_0x3d07a4,_0x2231a8)=>{const _0x9d758a=_0x1082ce,_0x3a65c0=new FileReader();_0x3a65c0['readAsDataURL'](_0x2c2b53),_0x3a65c0[_0x9d758a(0x488)]=_0x23d6b5=>{const _0x107ed4=_0x9d758a;var _0x6719ed;const _0x3937eb=(_0x6719ed=_0x23d6b5[_0x107ed4(0x4c1)])==null?void 0x0:_0x6719ed[_0x107ed4(0x34a)];if(_0x3937eb==null){this[_0x107ed4(0x1ff)](),_0x2231a8(new Error(_0x4458b5[_0x107ed4(0x16b)]));return;}const _0x5ae809=_0x31cbda[_0x107ed4(0x22e)](0x6);_0x3d07a4({'imageId':_0x5ae809,'imageSourceType':_0x361782[_0x107ed4(0x26c)],'source':_0x1c68ce,'base64Cache':_0x3937eb,'status':_0x4458b5[_0x107ed4(0x220)]}),this['_decreaseWaiting']();};});}[_0x513b3b(0x3f3)](){const _0x57e810=_0x513b3b;var _0x301243,_0x253076;const _0x14a2cb=this[_0x57e810(0x2cf)][_0x57e810(0x4a0)](ea),_0x4c7c64=this['_configService'][_0x57e810(0x4a0)]($);return(_0x253076=(_0x301243=_0x4c7c64==null?void 0x0:_0x4c7c64[_0x57e810(0x495)])!=null?_0x301243:_0x14a2cb)!=null?_0x253076:ta;}[_0x513b3b(0x1e7)](){const _0x5bc287=_0x513b3b;var _0x3acc32,_0x19928b;const _0x3e8eca=this['_configService'][_0x5bc287(0x4a0)](sa),_0x5f09d6=this[_0x5bc287(0x2cf)]['getConfig']($);return(_0x19928b=(_0x3acc32=_0x5f09d6==null?void 0x0:_0x5f09d6[_0x5bc287(0x207)])!=null?_0x3acc32:_0x3e8eca)!=null?_0x19928b:ia;}[_0x513b3b(0x434)](){const _0xc89bed=_0x513b3b;var _0x2ba6fa;const _0x59b896=this[_0xc89bed(0x2cf)][_0xc89bed(0x4a0)]($);return(_0x2ba6fa=_0x59b896==null?void 0x0:_0x59b896[_0xc89bed(0x479)])!=null?_0x2ba6fa:location[_0xc89bed(0x295)];}[_0x513b3b(0x38c)](_0x614712,_0x51cd08){const _0x2acdfb=_0x513b3b;return _0x614712[_0x2acdfb(0x22c)](_0x2acdfb(0x3be),_0x51cd08);}[_0x513b3b(0x1ff)](){const _0x5766e1=_0x513b3b;this[_0x5766e1(0x18e)]-=0x1,this['_change$']['next'](this[_0x5766e1(0x18e)]);}};Ut=zo([pt(0x0,_0x53ed15(_0x444e74)),pt(0x1,_0x17c84c),pt(0x2,_0x53ed15(_0x4c005a))],Ut);var na=Object[_0x513b3b(0x1a5)],ra=Object[_0x513b3b(0x1be)],oa=(_0x478f8f,_0x565c98,_0x40a617,_0x232f52)=>{for(var _0xb1a7a9=_0x232f52>0x1?void 0x0:_0x232f52?ra(_0x565c98,_0x40a617):_0x565c98,_0x2f08b0=_0x478f8f['length']-0x1,_0x29b1f4;_0x2f08b0>=0x0;_0x2f08b0--)(_0x29b1f4=_0x478f8f[_0x2f08b0])&&(_0xb1a7a9=(_0x232f52?_0x29b1f4(_0x565c98,_0x40a617,_0xb1a7a9):_0x29b1f4(_0xb1a7a9))||_0xb1a7a9);return _0x232f52&&_0xb1a7a9&&na(_0x565c98,_0x40a617,_0xb1a7a9),_0xb1a7a9;},ye=(_0x454b6d,_0x351d18)=>(_0x55a72a,_0x2c4906)=>_0x351d18(_0x55a72a,_0x2c4906,_0x454b6d);let et=class extends _0x346899{constructor(_0x3456e3,_0x54af13,_0x1da187,_0x1ca1a4,_0x2c8b5d){const _0x4eccd1=_0x513b3b;super(),this[_0x4eccd1(0x31e)]=_0x3456e3,this[_0x4eccd1(0x4c4)]=_0x54af13,this[_0x4eccd1(0x419)]=_0x1da187,this['_collaborationSessionService']=_0x1ca1a4,this[_0x4eccd1(0x28c)]=_0x2c8b5d,this['_initUnitPermissionChange'](),this[_0x4eccd1(0x35d)]();}['_initCloseConn'](){const _0x3b02a8=_0x513b3b,_0x44f546=async _0x2f8303=>{const _0x26be3a=_0x1736;(await this[_0x26be3a(0x27e)]['requireSession'](_0x2f8303))[_0x26be3a(0x47b)]['pipe'](_0x5bfb9e(_0x2cd79c=>_0x2cd79c[_0x26be3a(0x2db)]===_0x46c90b[_0x26be3a(0x4df)]),_0x453931(this[_0x26be3a(0x2d2)]))[_0x26be3a(0x465)](_0x34aad4=>{const _0x245b63=_0x26be3a,_0x2af495=_0x34aad4,{reason:_0x32fde0}=_0x2af495[_0x245b63(0x14f)];this[_0x245b63(0x31e)][_0x245b63(0x49f)](_0x4608dc)['show']({'type':_0x1f1b3b[_0x245b63(0x1ea)],'content':this[_0x245b63(0x28c)]['t']('collaboration.closeRoom')+'('+_0x32fde0+')'}),this['_permissionService'][_0x245b63(0x2ac)](new _0x40e1c4(_0x2f8303)['id'],!0x1),this['_collaborationSessionService'][_0x245b63(0x36d)](_0x2f8303);});};_0x2f0d88(this[_0x3b02a8(0x4c4)][_0x3b02a8(0x290)](_0x743738['UNIVER_SHEET']),this[_0x3b02a8(0x4c4)][_0x3b02a8(0x290)](_0x743738[_0x3b02a8(0x1a4)]))[_0x3b02a8(0x33b)](_0x50a0b8(_0x1fc3e6=>_0x1fc3e6[_0x3b02a8(0x389)]()),_0x5bfb9e(_0x2870bb=>!_0x6693b5(_0x2870bb)),_0x453931(this[_0x3b02a8(0x2d2)]))['subscribe'](_0x4221e3=>{_0x44f546(_0x4221e3);});}['_initUnitPermissionChange'](){const _0x9b42c8=_0x513b3b,_0x111304=async _0x4cc45b=>{const _0x2ba2e6=_0x1736;(await this['_collaborationSessionService'][_0x2ba2e6(0x23e)](_0x4cc45b))['event$'][_0x2ba2e6(0x33b)](_0x5bfb9e(_0x44bbeb=>_0x44bbeb['eventID']===_0x46c90b[_0x2ba2e6(0x2f3)]),_0x453931(this[_0x2ba2e6(0x2d2)]))[_0x2ba2e6(0x465)](_0x189955=>{const _0x6362df=_0x2ba2e6,_0x49e25a=_0x189955,{objectId:_0x588ad7}=_0x49e25a[_0x6362df(0x14f)],_0x29c4d0=this[_0x6362df(0x31e)][_0x6362df(0x49f)](_0x48dac1);_0x588ad7===_0x4cc45b?_0x29c4d0[_0x6362df(0x4d0)](_0x4cc45b):_0x29c4d0[_0x6362df(0x187)](_0x4cc45b,_0x588ad7);});};_0x2f0d88(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x743738[_0x9b42c8(0x3b6)]),this[_0x9b42c8(0x4c4)][_0x9b42c8(0x290)](_0x743738['UNIVER_DOC']))[_0x9b42c8(0x33b)](_0x50a0b8(_0x43d443=>_0x43d443[_0x9b42c8(0x389)]()),_0x5bfb9e(_0x151079=>!_0x6693b5(_0x151079)),_0x453931(this[_0x9b42c8(0x2d2)]))[_0x9b42c8(0x465)](_0x31ebf6=>{_0x111304(_0x31ebf6);});}};et=oa([ye(0x0,_0x53ed15(_0x3165b6)),ye(0x1,_0x4c005a),ye(0x2,_0x5f5b14),ye(0x3,_0x53ed15(he)),ye(0x4,_0x53ed15(_0x1deb41))],et);var aa=Object[_0x513b3b(0x1a5)],ca=Object[_0x513b3b(0x1be)],ha=(_0x228f17,_0x4e20d6,_0x3bc3e1,_0x9a64ee)=>{for(var _0x38ad32=_0x9a64ee>0x1?void 0x0:_0x9a64ee?ca(_0x4e20d6,_0x3bc3e1):_0x4e20d6,_0xbedb35=_0x228f17['length']-0x1,_0x28dfe2;_0xbedb35>=0x0;_0xbedb35--)(_0x28dfe2=_0x228f17[_0xbedb35])&&(_0x38ad32=(_0x9a64ee?_0x28dfe2(_0x4e20d6,_0x3bc3e1,_0x38ad32):_0x28dfe2(_0x38ad32))||_0x38ad32);return _0x9a64ee&&_0x38ad32&&aa(_0x4e20d6,_0x3bc3e1,_0x38ad32),_0x38ad32;},vs=(_0x3db671,_0x1adf6e)=>(_0x377b93,_0x3fd3c1)=>_0x1adf6e(_0x377b93,_0x3fd3c1,_0x3db671);let Nt=class{constructor(_0x2170bc,_0xbd6e92){const _0x3c088e=_0x513b3b;this[_0x3c088e(0x2cf)]=_0x2170bc,this[_0x3c088e(0x37e)]=_0xbd6e92;}async[_0x513b3b(0x3e6)](_0x5b530a,_0x1ab101){const _0x2e403e=_0x513b3b;var _0x478f84;const {unitID:_0x169f16,type:_0x32be25,revision:_0x1ccb67=0x0}=_0x1ab101,_0x2b8ee7=this[_0x2e403e(0x14e)]()+'/'+_0x32be25+_0x2e403e(0x20f)+_0x169f16+_0x2e403e(0x1a1)+_0x1ccb67,_0x3c8d73=(await this[_0x2e403e(0x37e)][_0x2e403e(0x49f)](_0x2b8ee7))['body'],_0x97ea94=(_0x478f84=_0x3c8d73[_0x2e403e(0x190)])==null?void 0x0:_0x478f84[_0x2e403e(0x227)];if(_0x97ea94){const _0x71f444=_0x97ea94==null?void 0x0:_0x97ea94[_0x2e403e(0x430)],_0x333554=_0x4e9464[_0x2e403e(0x293)](_0x54fe81(_0x71f444));_0x97ea94[_0x2e403e(0x430)]=_0x333554,Object[_0x2e403e(0x16e)](_0x97ea94[_0x2e403e(0x414)])['forEach'](([,_0x5a6c91])=>{const _0x5b55b7=_0x2e403e,_0x44c3ab=_0x5a6c91[_0x5b55b7(0x430)],_0x1bdd7d=_0x4e9464[_0x5b55b7(0x293)](_0x54fe81(_0x44c3ab));_0x5a6c91[_0x5b55b7(0x430)]=_0x1bdd7d;});}return _0x3c8d73;}async[_0x513b3b(0x340)](_0x3b08e4,_0x36cb4f){const _0x587183=_0x513b3b,{unitID:_0x1dfa4f,type:_0x475bd1,blockID:_0x2f465d}=_0x36cb4f,_0x19fdc7=this[_0x587183(0x494)]()+'/'+_0x475bd1+'/unit/'+_0x1dfa4f+_0x587183(0x229)+_0x2f465d;return(await this[_0x587183(0x37e)]['get'](_0x19fdc7))['body'];}async['getDeserializedSheetBlock'](_0x53e600,_0x2eec71){const _0x4e2878=_0x513b3b,{unitID:_0x265efc,type:_0x3395eb,blockID:_0x38d8c4}=_0x2eec71,_0x48bca3=this[_0x4e2878(0x494)]()+'/block/'+_0x3395eb+_0x4e2878(0x20f)+_0x265efc+_0x4e2878(0x229)+_0x38d8c4;return(await this['_httpService'][_0x4e2878(0x49f)](_0x48bca3))['body'];}async['fetchMissingChangesets'](_0x59701c,_0x4b44a2){const _0x32e621=_0x513b3b,{unitID:_0x163206,type:_0x2487db,from:_0x2a4f5d,to:_0x5edea0}=_0x4b44a2,_0x47198a=this['_getAPIPrefix']()+'/'+_0x2487db+'/unit/'+_0x163206+_0x32e621(0x437)+_0x2a4f5d+_0x32e621(0x232)+_0x5edea0;return(await this[_0x32e621(0x37e)][_0x32e621(0x49f)](_0x47198a))[_0x32e621(0x45f)];}[_0x513b3b(0x14e)](){const _0x174ca2=_0x513b3b;var _0x4e91a6;return(_0x4e91a6=this[_0x174ca2(0x2cf)][_0x174ca2(0x4a0)](Cn))!=null?_0x4e91a6:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0xd90102=_0x513b3b;var _0x4d6496,_0x15835f;const _0x242f8e=this[_0xd90102(0x2cf)]['getConfig'](In),_0x16ead0=this['_configService']['getConfig']($);return(_0x15835f=(_0x4d6496=_0x16ead0==null?void 0x0:_0x16ead0[_0xd90102(0x1c9)])!=null?_0x4d6496:_0x242f8e)!=null?_0x15835f:En;}async[_0x513b3b(0x38f)](_0x2aeeef,_0x111a05){const _0x77d39e=_0x513b3b,_0x1911a1=_0x77d39e(0x3bd)+_0x111a05[_0x77d39e(0x30b)]+'/unit/'+_0x111a05[_0x77d39e(0x44f)]+_0x77d39e(0x4a1);return(await this['_httpService'][_0x77d39e(0x49f)](_0x1911a1,{'params':{'resourceId':JSON[_0x77d39e(0x42b)](_0x111a05['resourceIDs'])}}))['body'];}['saveSnapshot'](){const _0x248059=_0x513b3b;throw new Error(_0x248059(0x16c));}['saveSheetBlock'](){const _0x16875a=_0x513b3b;throw new Error(_0x16875a(0x16c));}[_0x513b3b(0x3f7)](){const _0x126a3d=_0x513b3b;throw new Error(_0x126a3d(0x16c));}['copyFileMeta'](){const _0x1c9232=_0x513b3b;throw new Error(_0x1c9232(0x16c));}[_0x513b3b(0x181)](){const _0x23fb05=_0x513b3b;throw new Error(_0x23fb05(0x16c));}};Nt=ha([vs(0x0,_0x17c84c),vs(0x1,_0x53ed15(_0x444e74))],Nt);var la=Object[_0x513b3b(0x1a5)],_a=Object[_0x513b3b(0x1be)],ua=(_0x1209ea,_0x31830f,_0x14b4b0,_0x2491f3)=>{const _0x40c80d=_0x513b3b;for(var _0x9e7170=_0x2491f3>0x1?void 0x0:_0x2491f3?_a(_0x31830f,_0x14b4b0):_0x31830f,_0x1ca754=_0x1209ea[_0x40c80d(0x313)]-0x1,_0x52418d;_0x1ca754>=0x0;_0x1ca754--)(_0x52418d=_0x1209ea[_0x1ca754])&&(_0x9e7170=(_0x2491f3?_0x52418d(_0x31830f,_0x14b4b0,_0x9e7170):_0x52418d(_0x9e7170))||_0x9e7170);return _0x2491f3&&_0x9e7170&&la(_0x31830f,_0x14b4b0,_0x9e7170),_0x9e7170;},Ue=(_0x24d5bb,_0x46aa3c)=>(_0x5ac91a,_0x4a336a)=>_0x46aa3c(_0x5ac91a,_0x4a336a,_0x24d5bb);let Mt=class extends _0x57dce3{constructor(_0x38d0da,_0x9f0b87,_0x440889,_0x1d321c,_0x2e3d83){const _0x5e91b1=_0x513b3b;super(_0x38d0da,_0x9f0b87,_0x440889),this[_0x5e91b1(0x283)]=_0x1d321c,this['_logService']=_0x2e3d83;}['transformUndoRedo'](_0x3baf8d,_0x5679fb){const _0x543f1e=_0x513b3b,_0x1064e4=this[_0x543f1e(0x29b)](_0x3baf8d);if(_0x1064e4)try{const _0x42377b=this[_0x543f1e(0x32e)](_0x1064e4,_0x5679fb);this[_0x543f1e(0x431)](_0x3baf8d,_0x42377b);}catch(_0x191bde){this['_logService'][_0x543f1e(0x25c)]('[CollaborationUndoRedoService]',_0x191bde),this[_0x543f1e(0x184)](_0x3baf8d);}const _0x1190ab=this[_0x543f1e(0x19b)](_0x3baf8d);if(_0x1190ab)try{const _0x46fced=this[_0x543f1e(0x32e)](_0x1190ab,_0x5679fb);this[_0x543f1e(0x2af)](_0x3baf8d,_0x46fced);}catch(_0x1aa8c5){this[_0x543f1e(0x4e0)][_0x543f1e(0x25c)](_0x1aa8c5),this[_0x543f1e(0x2c0)](_0x3baf8d);}}[_0x513b3b(0x184)](_0x2444a0){const _0x39bf05=_0x513b3b,_0x4ad634=this[_0x39bf05(0x29b)](_0x2444a0);_0x4ad634&&(_0x4ad634[_0x39bf05(0x313)]=0x0,this[_0x39bf05(0x2df)]());}['_clearRedo'](_0x496bb9){const _0x128bd6=_0x513b3b,_0x5b100c=this['_getRedoStack'](_0x496bb9);_0x5b100c&&(_0x5b100c['length']=0x0,this[_0x128bd6(0x2df)]());}[_0x513b3b(0x431)](_0x2c760e,_0x4608c6){const _0x2bb561=_0x513b3b;this['_undoStacks'][_0x2bb561(0x3ca)](_0x2c760e,_0x4608c6),this[_0x2bb561(0x2df)]();}['_substituteRedoStack'](_0x57c48e,_0x3e39a1){const _0x27fe15=_0x513b3b;this[_0x27fe15(0x489)][_0x27fe15(0x3ca)](_0x57c48e,_0x3e39a1),this['_updateStatus']();}['_transformStack'](_0x4f0024,_0x3642c5){const _0x2c3a7e=_0x513b3b,_0x753102=[];let _0x5bfb06=_0x3642c5,_0x56e988=_0x3642c5;for(let _0xc88313=_0x4f0024[_0x2c3a7e(0x313)]-0x1;_0xc88313>=0x0;_0xc88313--){const {unitID:_0x3d28a3,undoMutations:_0x56973a,redoMutations:_0xa82fdf}=_0x4f0024[_0xc88313],_0x1b2553=this[_0x2c3a7e(0x283)][_0x2c3a7e(0x398)](_0x5bfb06,_0x56973a),_0x4a802f=this[_0x2c3a7e(0x283)][_0x2c3a7e(0x398)](_0x56e988,_0xa82fdf);if(_0x578d17(_0x1b2553)||_0x578d17(_0x4a802f)){this[_0x2c3a7e(0x4e0)][_0x2c3a7e(0x25c)](_0x2c3a7e(0x24b),_0x2c3a7e(0x385),_0x1b2553,_0x4a802f);break;}_0x5bfb06=_0x1b2553['c1Prime'],_0x56e988=_0x4a802f[_0x2c3a7e(0x2e0)],_0x753102[_0x2c3a7e(0x152)]({'unitID':_0x3d28a3,'undoMutations':_0x1b2553['m2Prime'],'redoMutations':_0x4a802f[_0x2c3a7e(0x2b9)]});}return _0x753102[_0x2c3a7e(0x2d6)]();}};Mt=ua([Ue(0x0,_0x4c005a),Ue(0x1,_0x8348c),Ue(0x2,_0x4af0dd),Ue(0x3,_0x2e5ae8),Ue(0x4,_0x385fd2)],Mt);class da extends _0x346899{constructor(){const _0x2fbeac=_0x513b3b;super(),l(this,_0x2fbeac(0x42f)),this[_0x2fbeac(0x42f)]=_0x2832fb(window,_0x2fbeac(0x382))[_0x2fbeac(0x33b)](_0x3bacfd(this['dispose$']),_0x1fbf92(0x1),_0x2f02b3(void 0x0));}[_0x513b3b(0x1b9)](_0x1f8694,_0x2746cc,_0x28d5db=!0x1){const _0x5c14bd=_0x513b3b,_0x58f7da=new URL(window['location'][_0x5c14bd(0x429)]);_0x58f7da[_0x5c14bd(0x1ed)]['set'](_0x1f8694,_0x2746cc),_0x28d5db?window[_0x5c14bd(0x16a)][_0x5c14bd(0x279)]('','',_0x58f7da[_0x5c14bd(0x40b)]()):window[_0x5c14bd(0x16a)][_0x5c14bd(0x1d8)]('','',_0x58f7da[_0x5c14bd(0x40b)]());}[_0x513b3b(0x3c2)](_0x51fc29,_0x5f54b9=!0x1){const _0x533295=_0x513b3b,_0x205318=new URL(window[_0x533295(0x3fd)][_0x533295(0x429)]);_0x205318[_0x533295(0x1ed)][_0x533295(0x248)](_0x51fc29),_0x5f54b9?window['history'][_0x533295(0x279)]('','',_0x205318[_0x533295(0x40b)]()):window[_0x533295(0x16a)]['pushState']('','',_0x205318[_0x533295(0x40b)]());}['getParam'](_0x3d4998){const _0x1aad92=_0x513b3b;var _0x2ecad3;return(_0x2ecad3=new URL(window[_0x1aad92(0x3fd)][_0x1aad92(0x429)])[_0x1aad92(0x1ed)][_0x1aad92(0x49f)](_0x3d4998))!=null?_0x2ecad3:void 0x0;}}var Qs=Object[_0x513b3b(0x1a5)],ma=Object[_0x513b3b(0x1be)],fa=(_0x3da3be,_0x460383,_0x1ce3ef)=>_0x460383 in _0x3da3be?Qs(_0x3da3be,_0x460383,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ce3ef}):_0x3da3be[_0x460383]=_0x1ce3ef,ga=(_0x155aca,_0x83935f,_0x55f0db,_0x5f5881)=>{const _0x29048b=_0x513b3b;for(var _0x5afd73=_0x5f5881>0x1?void 0x0:_0x5f5881?ma(_0x83935f,_0x55f0db):_0x83935f,_0x261630=_0x155aca[_0x29048b(0x313)]-0x1,_0x293c6b;_0x261630>=0x0;_0x261630--)(_0x293c6b=_0x155aca[_0x261630])&&(_0x5afd73=(_0x5f5881?_0x293c6b(_0x83935f,_0x55f0db,_0x5afd73):_0x293c6b(_0x5afd73))||_0x5afd73);return _0x5f5881&&_0x5afd73&&Qs(_0x83935f,_0x55f0db,_0x5afd73),_0x5afd73;},Ve=(_0x5ba09e,_0x29f51b)=>(_0x30fedd,_0xa96f0b)=>_0x29f51b(_0x30fedd,_0xa96f0b,_0x5ba09e),Sa=(_0x251edf,_0x41a824,_0x4f9793)=>fa(_0x251edf,_0x41a824+'',_0x4f9793);const pa=_0x513b3b(0x18f);let At=class extends _0x2c2bef{constructor(_0x1badd4=jn,_0x4bde2e,_0x1867f6,_0x40544c,_0x42b33b){const _0x114daa=_0x513b3b;super(),this['_config']=_0x1badd4,this['_logService']=_0x4bde2e,this[_0x114daa(0x3b9)]=_0x1867f6,this[_0x114daa(0x31e)]=_0x40544c,this[_0x114daa(0x2cf)]=_0x42b33b;const {..._0x51bfa1}=this['_config'];this['_configService'][_0x114daa(0x339)]($,_0x51bfa1);}[_0x513b3b(0x307)](){const _0x565809=_0x513b3b;this[_0x565809(0x1bb)](),_0x578643(this[_0x565809(0x31e)],[[ve],[Je],[et]]);}[_0x513b3b(0x176)](){const _0x12ad7b=_0x513b3b;_0x578643(this[_0x12ad7b(0x31e)],[[ze]]);}['onRendered'](){const _0x216f60=_0x513b3b;this[_0x216f60(0x2d0)]();}[_0x513b3b(0x1bb)](){const _0x1a141e=_0x513b3b;var _0x4f83ea,_0x40f96f,_0x25e07b,_0xf617d0;this[_0x1a141e(0x31e)]['has'](_0x3e29a6)&&this[_0x1a141e(0x4e0)]['error']('[UniverCollaborationClientPlugin]',_0x1a141e(0x186));let _0x3c4c9a=[[_0x3e29a6,{'useClass':Mt}],[he],[Gt],[_0x444e74],[Zs,{'useClass':da}],[ce],[w],[_0x40597f],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Vs],[et],[Bs,{'useClass':(_0x40f96f=(_0x4f83ea=this[_0x1a141e(0x3a3)])==null?void 0x0:_0x4f83ea['socketService'])!=null?_0x40f96f:Ct}],[_0x34d3c8,{'useClass':_0x1f0359}],[_0x2c1fe9,{'useClass':Nt}],[_0x388a42,{'useClass':yt}],[_0xb13959,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x25e07b=this['_config'])!=null&&_0x25e07b['enableSingleActiveInstanceLock']&&_0x3c4c9a[_0x1a141e(0x152)]([tt,{'useClass':Sr}]),_0x3c4c9a=_0x1432ec(_0x3c4c9a,(_0xf617d0=this[_0x1a141e(0x3a3)])==null?void 0x0:_0xf617d0[_0x1a141e(0x325)]),_0x3c4c9a[_0x1a141e(0x301)](_0x1ca430=>this[_0x1a141e(0x31e)][_0x1a141e(0x2ab)](_0x1ca430)),this[_0x1a141e(0x4a9)]();}[_0x513b3b(0x2d0)](){const _0x444cb9=_0x513b3b;this[_0x444cb9(0x233)](this['_renderManagerService'][_0x444cb9(0x476)](_0x743738[_0x444cb9(0x1a4)],[wt])),this[_0x444cb9(0x233)](this['_renderManagerService'][_0x444cb9(0x476)](_0x743738[_0x444cb9(0x3b6)],[Pt]));}[_0x513b3b(0x4a9)](){const _0x26ec3d=_0x513b3b;var _0x21c64a,_0x56c9c8;this[_0x26ec3d(0x31e)]['get'](_0x444e74)[_0x26ec3d(0x21e)]({'priority':0x14,'interceptor':_0x6ca340({'maxParallel':0x6})}),this[_0x26ec3d(0x31e)][_0x26ec3d(0x49f)](Qe),(_0x21c64a=this[_0x26ec3d(0x3a3)])!=null&&_0x21c64a[_0x26ec3d(0x172)]||this['_injector'][_0x26ec3d(0x49f)](w)[_0x26ec3d(0x171)](),(_0x56c9c8=this[_0x26ec3d(0x3a3)])!=null&&_0x56c9c8[_0x26ec3d(0x482)]&&this[_0x26ec3d(0x31e)]['get'](Ze),this[_0x26ec3d(0x31e)][_0x26ec3d(0x49f)](Le),this[_0x26ec3d(0x31e)]['has'](Me)&&this[_0x26ec3d(0x31e)][_0x26ec3d(0x49f)](Me);}};Sa(At,'pluginName',pa),At=ga([_0x38b61b(_0x5498e7),Ve(0x1,_0x385fd2),Ve(0x2,_0xdb11a1),Ve(0x3,_0x53ed15(_0x3165b6)),Ve(0x4,_0x17c84c)],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 _0x23c7d1=_0x3e56;(function(_0x367005,_0x4fcb12){const _0xba910c=_0x3e56,_0x2846f8=_0x367005();while(!![]){try{const _0xb03d35=-parseInt(_0xba910c(0x34c))/0x1*(-parseInt(_0xba910c(0x114))/0x2)+parseInt(_0xba910c(0x83))/0x3*(parseInt(_0xba910c(0x1c9))/0x4)+-parseInt(_0xba910c(0x162))/0x5+-parseInt(_0xba910c(0xf0))/0x6*(-parseInt(_0xba910c(0xc6))/0x7)+parseInt(_0xba910c(0x2bb))/0x8*(parseInt(_0xba910c(0x315))/0x9)+-parseInt(_0xba910c(0x378))/0xa+parseInt(_0xba910c(0x1db))/0xb*(-parseInt(_0xba910c(0x92))/0xc);if(_0xb03d35===_0x4fcb12)break;else _0x2846f8['push'](_0x2846f8['shift']());}catch(_0x170da1){_0x2846f8['push'](_0x2846f8['shift']());}}}(_0x2b41,0x3e0ab));var ri=Object['defineProperty'],oi=(_0x220ca0,_0x3b05cd,_0x2c8f95)=>_0x3b05cd in _0x220ca0?ri(_0x220ca0,_0x3b05cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c8f95}):_0x220ca0[_0x3b05cd]=_0x2c8f95,l=(_0x4bbb52,_0x5f430b,_0x2a62d2)=>oi(_0x4bbb52,typeof _0x5f430b!=_0x23c7d1(0x2e6)?_0x5f430b+'':_0x5f430b,_0x2a62d2);import{createIdentifier as _0x437a8e,Inject as _0x4dc04f,Disposable as _0x48670f,DisposableCollection as _0x174f1b,toDisposable as _0x546354,IConfigService as _0x5ae707,ILogService as _0x20dcfc,UserManagerService as _0x19e638,UniverInstanceType as _0x12affe,IUniverInstanceService as _0x9f62da,LocaleService as _0x19fdc8,Optional as _0x4ab0b0,RxDisposable as _0x55967c,Injector as _0x22396d,Tools as _0x344d53,ILocalStorageService as _0x1ead3d,Rectangle as _0x27110e,ICommandService as _0x45f63f,JSONX as _0x5577d7,CommandType as _0x1e1816,IPermissionService as _0x241914,IUndoRedoService as _0x13d877,sequenceExecute as _0x39a28b,debounce as _0x2a1758,COLORS as _0x4d0df0,ColorKit as _0x26117b,ThemeService as _0x499eb8,fromEventSubject as _0x3b2366,useDependency as _0x33243a,connectInjector as _0x1ae714,Workbook as _0x1e3463,isInternalEditorID as _0x53df5f,LocalUndoRedoService as _0x39ed46,IContextService as _0x282657,DependentOn as _0x4eaec9,Plugin as _0x19d8fe,touchDependencies as _0x2f6d83,IAuthzIoService as _0x32175b,mergeOverrideWithDependencies as _0x56cd0e}from'@univerjs/core';import{Subject as _0x41261f,merge as _0x3a25d1,takeUntil as _0x21580d,BehaviorSubject as _0x4a4faf,distinctUntilChanged as _0x48ac4f,fromEvent as _0x1c3647,ReplaySubject as _0x4bcbbe,take as _0xf57bcd,map as _0x4780de,shareReplay as _0x25be7a,of as _0xaed9b5,debounceTime as _0x3df71a,filter as _0x5e384f,switchMap as _0x1fe2f3,combineLatest as _0x3c4bb8,concatMap as _0x3fbd3f,mapTo as _0x41b7dd}from'rxjs';import{map as _0x2abcf2,take as _0x10cb40,filter as _0x3cca70,delay as _0x5504ff,throttleTime as _0x366ff2,takeUntil as _0x1f0b24,switchMap as _0x4ca445}from'rxjs/operators';import{MessageType as _0x2b8ac7,Tooltip as _0x3dab34}from'@univerjs/design';import{IBeforeCloseService as _0x16cd89,IMessageService as _0x413020,INotificationService as _0x3c8540,useObservable as _0x3eb386,BuiltInUIPart as _0x432ccf,IUIPartsService as _0x5cc120}from'@univerjs/ui';import{HTTPService as _0x3bbd66,WebSocketService as _0x564323,MergeInterceptorFactory as _0x37a48f,HTTPRequest as _0x24e2ab,IHTTPImplementation as _0xe09d1b,XHRHTTPImplementation as _0x4474e8,ThresholdInterceptorFactory as _0x1dd1e0}from'@univerjs/network';import{CollaborationEvent as _0x3e2e84,parseChangesetToProtocol as _0x2e4d6c,ISnapshotServerService as _0xfe39de,isTransformMutationFailure as _0x20d9cf,isTransformMutationsWithChangesetSuccess as _0x4a2341,ITransformService as _0x1c29f3,RevisionService as _0x2fb629,mapDocumentTypeToUniverType as _0x51595f,isTransformChangesetsSuccess as _0x275c76,CompressMutationService as _0x2113b3,parseProtocolChangeset as _0xeed60c,SnapshotService as _0x53a932,textEncoder as _0x305580,b64DecodeUnicode as _0x3ad1a8,isTransformMutationsWithChangesetFailure as _0x1064ee,UniverCollaborationPlugin as _0x4e9ef4}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x4bbd1f}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x3fbce3,DocStateChangeManagerService as _0x16b8be,NodePositionConvertToCursor as _0x3744f9,isValidRectRange as _0x374be8,NodePositionConvertToRectRange as _0xca6cb5,TEXT_RANGE_LAYER_INDEX as _0x448b14,SetDocZoomRatioOperation as _0x3568df}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x49c5af,SetSelectionsOperation as _0x3f3cc1,InsertSheetMutation as _0x105f97,EmptyMutation as _0x3fb9fa,WorkbookEditablePermission as _0x957589,RefRangeService as _0x37258f,EffectRefRangId as _0x64b599,handleIRemoveRow as _0x135cee,handleIRemoveCol as _0x6f4cbe,handleMoveRange as _0x2d85b0,handleInsertRow as _0x4c18ea,handleInsertRangeMoveRight as _0x5892e7,handleInsertRangeMoveDown as _0x153d6f,handleInsertCol as _0x28ee26,handleDeleteRangeMoveUp as _0x457ca0,handleDeleteRangeMoveLeft as _0x335d68,runRefRangeMutations as _0x51d17a,SetWorksheetActivateCommand as _0x1d2849}from'@univerjs/sheets';import{IRenderManagerService as _0x3bd096,Shape as _0x2b7442,Rect as _0x4a28e4,getColor as _0x4021a6,RegularPolygon as _0xa741b9,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3757d6,Vector2 as _0x4052cb}from'@univerjs/engine-render';import{DocSelectionManagerService as _0xd815b9,RichTextEditingMutation as _0x1cda85,SetTextSelectionsOperation as _0x4e7fe9,DocSkeletonManagerService as _0x1826bf}from'@univerjs/docs';import{ImageSourceType as _0x558861,ImageUploadStatusType as _0x4631a2,IImageIoService as _0x11257d}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3ea094,serializeRangeWithSheet as _0x33ed04}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x57ecbe,VIEWPORT_KEY as _0x42c4cf,getCoordByCell as _0x45a831,getSheetObject as _0x5b9a2d,SheetPermissionInitController as _0x36f2d7}from'@univerjs/sheets-ui';import _0x483511,{forwardRef as _0x261ce7,useRef as _0xe6ffb4,createElement as _0x32d714,useCallback as _0xb5f8c6}from'react';import{IRemoteInstanceService as _0x3016d2}from'@univerjs/rpc';import{getAttachHeader as _0x1af55d}from'@univerjs-pro/license';const In=_0x23c7d1(0x25b),En=_0x23c7d1(0x3b2),Cn=_0x23c7d1(0x2ba),Ha=_0x23c7d1(0x3b6),bn=0x7d0,Tn=_0x23c7d1(0x3d5),Rn=_0x23c7d1(0x2a0),On=_0x23c7d1(0x3f2),Dn=0x7530,js=_0x23c7d1(0x149),Hs=0x4e20,wn=0x4e20,Pn=_0x23c7d1(0x9f),yn=0x3,Un=_0x23c7d1(0x39f),Nn=0x3e8,Mn=_0x23c7d1(0x3fa),An=_0x23c7d1(0x3bd),Ln=_0x23c7d1(0x382),$n=_0x23c7d1(0x13c);var xs=(_0x2720fb=>(_0x2720fb[_0x2720fb[_0x23c7d1(0xa4)]=0x0]='UNDEFINED',_0x2720fb[_0x2720fb['OK']=0x1]='OK',_0x2720fb[_0x2720fb[_0x23c7d1(0xa5)]=0x2]=_0x23c7d1(0xa5),_0x2720fb[_0x2720fb['PERMISSION_DENIED']=0x3]=_0x23c7d1(0x1fb),_0x2720fb[_0x2720fb['NOT_FOUND']=0x4]=_0x23c7d1(0x1da),_0x2720fb[_0x2720fb[_0x23c7d1(0x258)]=0x5]=_0x23c7d1(0x258),_0x2720fb[_0x2720fb[_0x23c7d1(0x399)]=0x6]=_0x23c7d1(0x399),_0x2720fb[_0x2720fb[_0x23c7d1(0x247)]=0x7]='INVALID_ARGUMENT',_0x2720fb[_0x2720fb['TOO_MANY_REQUESTS']=0x8]=_0x23c7d1(0x1aa),_0x2720fb[_0x2720fb[_0x23c7d1(0x376)]=0x9]='COMPLETION_FINISHED',_0x2720fb[_0x2720fb['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2720fb[_0x2720fb['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x23c7d1(0x21a),_0x2720fb[_0x2720fb['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2720fb[_0x2720fb['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x23c7d1(0x18c),_0x2720fb[_0x2720fb[_0x23c7d1(0xc2)]=0x1b59]=_0x23c7d1(0xc2),_0x2720fb[_0x2720fb[_0x23c7d1(0x17b)]=0x1b5a]=_0x23c7d1(0x17b),_0x2720fb[_0x2720fb['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x23c7d1(0x129),_0x2720fb[_0x2720fb[_0x23c7d1(0x3ca)]=0x1b5c]=_0x23c7d1(0x3ca),_0x2720fb[_0x2720fb[_0x23c7d1(0x2b0)]=0x1b5d]=_0x23c7d1(0x2b0),_0x2720fb[_0x2720fb['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x23c7d1(0x23e),_0x2720fb[_0x2720fb[_0x23c7d1(0x186)]=0x2329]=_0x23c7d1(0x186),_0x2720fb[_0x2720fb['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2720fb[_0x2720fb['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x23c7d1(0xd5),_0x2720fb[_0x2720fb[_0x23c7d1(0x335)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2720fb[_0x2720fb[_0x23c7d1(0x291)]=0x232d]=_0x23c7d1(0x291),_0x2720fb[_0x2720fb[_0x23c7d1(0x160)]=0x2711]=_0x23c7d1(0x160),_0x2720fb[_0x2720fb[_0x23c7d1(0x3a0)]=0x2712]=_0x23c7d1(0x3a0),_0x2720fb[_0x2720fb[_0x23c7d1(0x2a2)]=0x2713]=_0x23c7d1(0x2a2),_0x2720fb[_0x2720fb[_0x23c7d1(0x1d4)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2720fb[_0x2720fb[_0x23c7d1(0x374)]=-0x1]='UNRECOGNIZED',_0x2720fb))(xs||{}),k=(_0x2299c0=>(_0x2299c0[_0x2299c0['UNIVER_UNKNOWN']=0x0]=_0x23c7d1(0x3f6),_0x2299c0[_0x2299c0[_0x23c7d1(0x195)]=0x1]=_0x23c7d1(0x195),_0x2299c0[_0x2299c0[_0x23c7d1(0x3de)]=0x2]=_0x23c7d1(0x3de),_0x2299c0[_0x2299c0['UNIVER_SLIDE']=0x3]=_0x23c7d1(0x2bc),_0x2299c0[_0x2299c0[_0x23c7d1(0x35e)]=0x4]=_0x23c7d1(0x35e),_0x2299c0[_0x2299c0[_0x23c7d1(0x374)]=-0x1]=_0x23c7d1(0x374),_0x2299c0))(k||{}),I=(_0xe79800=>(_0xe79800[_0xe79800[_0x23c7d1(0x1af)]=0x0]=_0x23c7d1(0x1af),_0xe79800[_0xe79800[_0x23c7d1(0x90)]=0x1]=_0x23c7d1(0x90),_0xe79800[_0xe79800[_0x23c7d1(0x13a)]=0x2]=_0x23c7d1(0x13a),_0xe79800[_0xe79800[_0x23c7d1(0x111)]=0x3]=_0x23c7d1(0x111),_0xe79800[_0xe79800[_0x23c7d1(0xfc)]=0x4]=_0x23c7d1(0xfc),_0xe79800[_0xe79800[_0x23c7d1(0x30b)]=0x5]='HEARTBEAT',_0xe79800[_0xe79800[_0x23c7d1(0x2ce)]=0x6]=_0x23c7d1(0x2ce),_0xe79800[_0xe79800[_0x23c7d1(0x374)]=-0x1]=_0x23c7d1(0x374),_0xe79800))(I||{}),Vt=(_0x40cae9=>(_0x40cae9[_0x40cae9[_0x23c7d1(0x9e)]=0x0]=_0x23c7d1(0x9e),_0x40cae9[_0x40cae9['OK']=0x1]='OK',_0x40cae9[_0x40cae9[_0x23c7d1(0x1ca)]=0x2]=_0x23c7d1(0x1ca),_0x40cae9[_0x40cae9[_0x23c7d1(0x374)]=-0x1]=_0x23c7d1(0x374),_0x40cae9))(Vt||{}),ks=(_0x3598f9=>(_0x3598f9[_0x3598f9[_0x23c7d1(0xf6)]=0x0]=_0x23c7d1(0xf6),_0x3598f9[_0x3598f9[_0x23c7d1(0xac)]=0x1]=_0x23c7d1(0xac),_0x3598f9[_0x3598f9[_0x23c7d1(0x2d2)]=0x2]='HttpExport',_0x3598f9[_0x3598f9['UnitEmbedded']=0x3]='UnitEmbedded',_0x3598f9[_0x3598f9[_0x23c7d1(0x34a)]=0x4]='UnitSnapshot',_0x3598f9[_0x3598f9[_0x23c7d1(0x374)]=-0x1]='UNRECOGNIZED',_0x3598f9))(ks||{});const $=_0x23c7d1(0x287),jn={};function Hn(_0xcb40de){const _0x596f31=_0x23c7d1;var _0xf80da2,_0x410956,_0x2bc34e,_0x3a632d,_0x31a95b;const _0x5b8668=_0xcb40de[_0x596f31(0x15d)],_0x3b03aa=JSON[_0x596f31(0x9b)](_0x5b8668);switch(_0x3b03aa['cmd']){case I[_0x596f31(0x30b)]:case I[_0x596f31(0x90)]:{const _0x15a114=_0x3b03aa[_0x596f31(0x3aa)];return{..._0x3b03aa,'data':_0x15a114,'cmd':_0x3b03aa['cmd']};}case I[_0x596f31(0x13a)]:{const _0x2f3957=_0x3b03aa[_0x596f31(0x386)];return{..._0x3b03aa,'data':_0x2f3957,'cmd':_0x3b03aa['cmd']};}case I[_0x596f31(0x2ce)]:{const _0x32507f=_0x3b03aa[_0x596f31(0x367)];switch(_0x32507f[_0x596f31(0x361)]){case _0x3e2e84[_0x596f31(0x212)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':(_0xf80da2=_0x32507f['permissionRejEvent'])==null?void 0x0:_0xf80da2['cs']},'cmd':_0x3b03aa['cmd']};case _0x3e2e84[_0x596f31(0xb4)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':(_0x410956=_0x32507f[_0x596f31(0x146)])==null?void 0x0:_0x410956['cs']},'cmd':_0x3b03aa['cmd']};case _0x3e2e84['NEW_CHANGESETS']:return{..._0x3b03aa,'data':{..._0x32507f,'data':(_0x2bc34e=_0x32507f[_0x596f31(0x204)])==null?void 0x0:_0x2bc34e['cs']},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0x1e8)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':(_0x3a632d=_0x32507f[_0x596f31(0x1bf)])==null?void 0x0:_0x3a632d['cs']},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0x166)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':(_0x31a95b=_0x32507f[_0x596f31(0x16b)])==null?void 0x0:_0x31a95b['cs']},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0xf2)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f['updateCursorEvent']},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0x321)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f[_0x596f31(0x135)]},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0x355)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f['leaveEvent']},'cmd':_0x3b03aa['cmd']};case _0x3e2e84[_0x596f31(0x14a)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f[_0x596f31(0x1ec)]},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84['LIVESHARE_FETCH_OPERATIONS']:case _0x3e2e84[_0x596f31(0x373)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f[_0x596f31(0x7b)]},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84['LIVESHARE_TERMINATE']:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f[_0x596f31(0x1ec)]},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84['MSG_FOR_ERROR']:return{..._0x3b03aa,'data':_0x32507f,'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84['COMMENT_UPDATE']:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f[_0x596f31(0x132)]},'cmd':_0x3b03aa[_0x596f31(0xdd)]};case _0x3e2e84[_0x596f31(0x2d3)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f['updatePermissionObjEvent']},'cmd':_0x3b03aa['cmd']};case _0x3e2e84[_0x596f31(0x3dd)]:return{..._0x3b03aa,'data':{..._0x32507f,'data':_0x32507f['shouldCloseConn']},'cmd':_0x3b03aa['cmd']};default:return _0x3b03aa;}}default:return _0x3b03aa;}}function xn(_0x313487){const _0x8d278d=_0x23c7d1;switch(_0x313487['cmd']){case I[_0x8d278d(0x30b)]:case I['HELLO']:return JSON[_0x8d278d(0x147)]({'cmd':_0x313487[_0x8d278d(0xdd)],'routeKey':_0x313487[_0x8d278d(0x255)]});case I[_0x8d278d(0xfc)]:{let _0x451b85;switch(_0x313487[_0x8d278d(0x15d)][_0x8d278d(0x361)]){case _0x3e2e84[_0x8d278d(0xf2)]:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0xf2)],'updateCursorEvent':_0x313487['data'][_0x8d278d(0x15d)]};break;}case _0x3e2e84[_0x8d278d(0x355)]:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0x355)],'leaveEvent':_0x313487['data'][_0x8d278d(0x15d)]};break;}case _0x3e2e84[_0x8d278d(0x321)]:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0x321)],'joinEvent':_0x313487[_0x8d278d(0x15d)][_0x8d278d(0x15d)]};break;}case _0x3e2e84['LIVESHARE_NEW_HOST']:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0x14a)],'liveShareNewHost':_0x313487[_0x8d278d(0x15d)][_0x8d278d(0x15d)]};break;}case _0x3e2e84[_0x8d278d(0x373)]:{_0x451b85={'eventID':_0x3e2e84['LIVESHARE_OPERATION'],'liveShareOperation':_0x313487['data'][_0x8d278d(0x15d)]};break;}case _0x3e2e84['LIVESHARE_TERMINATE']:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0xc8)],'liveShareTerminate':_0x313487['data'][_0x8d278d(0x15d)]};break;}case _0x3e2e84[_0x8d278d(0x357)]:{_0x451b85={'eventID':_0x3e2e84['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x313487[_0x8d278d(0x15d)][_0x8d278d(0x15d)]};break;}case _0x3e2e84[_0x8d278d(0x29a)]:{_0x451b85={'eventID':_0x3e2e84[_0x8d278d(0x29a)]};break;}default:_0x451b85={'eventID':_0x313487[_0x8d278d(0x15d)]['eventID']};}return JSON[_0x8d278d(0x147)]({'cmd':_0x313487[_0x8d278d(0xdd)],'routeKey':_0x313487[_0x8d278d(0x255)],'collaMsg':_0x451b85});}case I[_0x8d278d(0x13a)]:return JSON[_0x8d278d(0x147)]({'cmd':_0x313487['cmd'],'routeKey':_0x313487[_0x8d278d(0x255)],'joinReq':_0x313487['data']});case I[_0x8d278d(0x111)]:return JSON[_0x8d278d(0x147)]({'cmd':_0x313487[_0x8d278d(0xdd)],'routeKey':_0x313487[_0x8d278d(0x255)],'leaveReq':_0x313487[_0x8d278d(0x15d)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object[_0x23c7d1(0x252)],Bn=Object[_0x23c7d1(0x113)],Vn=(_0x2fe466,_0x4eaa74,_0x1c1943,_0x3e3a34)=>{const _0x5b9f7b=_0x23c7d1;for(var _0x33281a=_0x3e3a34>0x1?void 0x0:_0x3e3a34?Bn(_0x4eaa74,_0x1c1943):_0x4eaa74,_0x36ae61=_0x2fe466[_0x5b9f7b(0x22a)]-0x1,_0x44cfff;_0x36ae61>=0x0;_0x36ae61--)(_0x44cfff=_0x2fe466[_0x36ae61])&&(_0x33281a=(_0x3e3a34?_0x44cfff(_0x4eaa74,_0x1c1943,_0x33281a):_0x44cfff(_0x33281a))||_0x33281a);return _0x3e3a34&&_0x33281a&&kn(_0x4eaa74,_0x1c1943,_0x33281a),_0x33281a;},Oe=(_0x40155b,_0x43be6f)=>(_0x5b899e,_0x1b6846)=>_0x43be6f(_0x5b899e,_0x1b6846,_0x40155b);const Bs=_0x437a8e(_0x23c7d1(0x224));function Fn(_0x2ef9ae,_0x33a862,_0x4d39c7){const _0x389066=_0x23c7d1;return _0x2ef9ae+'/'+_0x33a862+_0x389066(0x2e0)+_0x4d39c7+_0x389066(0xc1);}let Ct=class extends _0x48670f{constructor(_0x76bac7,_0x1beab6,_0x558783,_0x560247,_0x1bc26f){const _0x12647a=_0x23c7d1;super(),this['_http']=_0x76bac7,this[_0x12647a(0x2c4)]=_0x1beab6,this[_0x12647a(0x3c0)]=_0x558783,this[_0x12647a(0x3e3)]=_0x560247,this[_0x12647a(0x89)]=_0x1bc26f;}['createSocket'](_0x1a95fa){const _0x4695dc=_0x23c7d1,_0x528ca4=this[_0x4695dc(0x2c4)][_0x4695dc(0x10c)](_0x1a95fa);if(!_0x528ca4)throw new Error(_0x4695dc(0x3c1));const _0xda553c=new _0x174f1b(),_0x4c5adf=new _0x41261f();_0xda553c[_0x4695dc(0x27e)](_0x528ca4['close$'][_0x4695dc(0x7f)](_0x5ddefe=>_0x4c5adf['next'](_0x5ddefe))),_0xda553c[_0x4695dc(0x27e)](_0x546354(()=>_0x4c5adf[_0x4695dc(0x3ba)]()));const _0x1c9206=new _0x41261f();_0xda553c[_0x4695dc(0x27e)](_0x528ca4['error$'][_0x4695dc(0x7f)](_0x485997=>_0x1c9206['next'](_0x485997))),_0xda553c['add'](_0x546354(()=>_0x1c9206[_0x4695dc(0x3ba)]()));const _0x4d5b10=new _0x41261f();_0xda553c['add'](_0x528ca4[_0x4695dc(0xaf)][_0x4695dc(0x7f)](_0x359b6f=>{const _0x4df5a6=_0x4695dc,_0x1ba5a2=Hn(_0x359b6f);_0x4d5b10[_0x4df5a6(0x183)](_0x1ba5a2);})),_0xda553c[_0x4695dc(0x27e)](_0x546354(()=>_0x4d5b10[_0x4695dc(0x3ba)]()));let _0x2d53f8;const _0x4a0134=()=>{const _0x22de52=_0x4695dc;_0x1c9206[_0x22de52(0x183)](new Event('connection\x20error')),_0x4c5adf[_0x22de52(0x183)](new CloseEvent(_0x22de52(0x3c9))),_0x2d53f8['close']();};return _0x2d53f8={'memberID':'','close$':_0x4c5adf[_0x4695dc(0x303)](),'error$':_0x1c9206[_0x4695dc(0x303)](),'open$':_0x528ca4['open$'],'message$':_0x4d5b10[_0x4695dc(0x303)](),'send':_0x455fd3=>{const _0x40e062=_0x4695dc;if(_0x455fd3[_0x40e062(0xdd)]===I[_0x40e062(0xfc)]){if(_0x455fd3[_0x40e062(0x15d)][_0x40e062(0x361)]===_0x3e2e84['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x2d53f8,_0x455fd3['data'])[_0x40e062(0x231)](_0x2bdc9d=>{const _0x12c309=_0x40e062;this[_0x12c309(0x3e3)][_0x12c309(0x328)](_0x2bdc9d),_0x4a0134();});return;}if(_0x455fd3[_0x40e062(0x15d)][_0x40e062(0x361)]===_0x3e2e84[_0x40e062(0x127)]){const _0x3ae627=_0x455fd3[_0x40e062(0x15d)];this[_0x40e062(0x2c1)](_0x3ae627)[_0x40e062(0x136)](_0x124be8=>{const _0x2a7847=_0x40e062;_0x4d5b10[_0x2a7847(0x183)]({'cmd':I['RECV'],'code':Vt['OK'],'routeKey':_0x3ae627['data'][_0x2a7847(0x347)],'routeType':'','data':{'eventID':_0x3e2e84[_0x2a7847(0x286)],'data':{'changesets':_0x124be8}}});})[_0x40e062(0x231)](_0x31602b=>{const _0x28d497=_0x40e062;this[_0x28d497(0x3e3)]['error'](_0x31602b),_0x4a0134();});return;}}_0x528ca4[_0x40e062(0x25c)](xn(_0x455fd3));},'close':()=>{const _0x11f86d=_0x4695dc;_0x528ca4[_0x11f86d(0x197)](),_0xda553c['dispose']();}},_0x2d53f8;}async['_submitChangeset'](_0x434e75,_0xed3f){const _0x4d804c=_0x23c7d1;var _0x4f9477,_0x4247a4;const {unitType:_0x447327,unitID:_0x59bb06,changeset:_0x512734}=_0xed3f[_0x4d804c(0x15d)],_0x42c0e1={'unitID':_0x59bb06,'memberID':_0x434e75['memberID'],'type':_0x447327,'changeset':_0x2e4d6c(_0x512734)},_0x206af1=this[_0x4d804c(0x3c0)][_0x4d804c(0x30d)](Mn),_0x31ec18=this[_0x4d804c(0x3c0)]['getConfig']($),_0x1bb9a4=Fn((_0x4247a4=(_0x4f9477=_0x31ec18==null?void 0x0:_0x31ec18[_0x4d804c(0x3c3)])!=null?_0x4f9477:_0x206af1)!=null?_0x4247a4:An,_0x447327,_0x59bb06);try{await this[_0x4d804c(0x2a1)][_0x4d804c(0x1cf)](_0x1bb9a4,{'body':_0x42c0e1});}catch(_0x3463fa){throw this['_logService'][_0x4d804c(0x328)](_0x4d804c(0x21d),'submit\x20changeset\x20error!'),_0x3463fa;}}async[_0x23c7d1(0x2c1)](_0x18c914){const _0x1b4a7c=_0x23c7d1,{unitID:_0x15c84f,from:_0x50925d,to:_0x42bd62,unitType:_0x259280}=_0x18c914[_0x1b4a7c(0x15d)];return(await this[_0x1b4a7c(0x89)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x15c84f,'type':_0x259280,'from':_0x50925d,'to':_0x42bd62}))[_0x1b4a7c(0x122)];}};Ct=Vn([Oe(0x0,_0x4dc04f(_0x3bbd66)),Oe(0x1,_0x4dc04f(_0x564323)),Oe(0x2,_0x5ae707),Oe(0x3,_0x20dcfc),Oe(0x4,_0xfe39de)],Ct);const Wn=_0x23c7d1(0x33c);function Gn(_0x4ef3e5){const _0x598099=_0x23c7d1;return JSON[_0x598099(0x147)](_0x4ef3e5)['length'];}class Vs{constructor(){const _0x4ce778=_0x23c7d1;l(this,'_commentUpdate$',new _0x41261f()),l(this,_0x4ce778(0x40d),this[_0x4ce778(0x2ea)][_0x4ce778(0x303)]());}['onCommentUpdate'](_0x1b27f7){const _0x1c126e=_0x23c7d1;this[_0x1c126e(0x2ea)][_0x1c126e(0x183)](_0x1b27f7);}}var Yn=Object[_0x23c7d1(0x252)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0xedf19a,_0x2624ca,_0x372f79,_0x4a9817)=>{for(var _0x336772=_0x4a9817>0x1?void 0x0:_0x4a9817?Kn(_0x2624ca,_0x372f79):_0x2624ca,_0x1c5384=_0xedf19a['length']-0x1,_0x26f4d6;_0x1c5384>=0x0;_0x1c5384--)(_0x26f4d6=_0xedf19a[_0x1c5384])&&(_0x336772=(_0x4a9817?_0x26f4d6(_0x2624ca,_0x372f79,_0x336772):_0x26f4d6(_0x336772))||_0x336772);return _0x4a9817&&_0x336772&&Yn(_0x2624ca,_0x372f79,_0x336772),_0x336772;},as=(_0x22e1e3,_0x1be4b9)=>(_0x4e3e15,_0x15ed86)=>_0x1be4b9(_0x4e3e15,_0x15ed86,_0x22e1e3);let ce=class extends _0x48670f{constructor(_0x289ffc,_0x3c477e){const _0x7d5b4b=_0x23c7d1;super(),l(this,_0x7d5b4b(0x339),new Map()),(this[_0x7d5b4b(0x21f)]=_0x289ffc,this[_0x7d5b4b(0x383)]=_0x3c477e,this['disposeWithMe'](_0x546354(_0x3a25d1(this[_0x7d5b4b(0x21f)]['getTypeOfUnitDisposed$'](_0x12affe[_0x7d5b4b(0x3de)])['pipe'](_0x2abcf2(_0x2a0366=>_0x2a0366[_0x7d5b4b(0x366)]())),this[_0x7d5b4b(0x21f)][_0x7d5b4b(0x28c)](_0x12affe[_0x7d5b4b(0x195)])[_0x7d5b4b(0x254)](_0x2abcf2(_0x2dd6f8=>_0x2dd6f8[_0x7d5b4b(0x366)]())),this[_0x7d5b4b(0x21f)][_0x7d5b4b(0x28c)](_0x12affe[_0x7d5b4b(0x2bc)])[_0x7d5b4b(0x254)](_0x2abcf2(_0x5d7578=>_0x5d7578[_0x7d5b4b(0x366)]())))[_0x7d5b4b(0x7f)](_0x2fc153=>this[_0x7d5b4b(0x2d8)](_0x2fc153)))));}[_0x23c7d1(0x3be)](_0x4d5380){const _0x2cc19a=_0x23c7d1;this[_0x2cc19a(0x383)][_0x2cc19a(0x3be)](_0x4d5380);}[_0x23c7d1(0x144)](){const _0x4609ae=_0x23c7d1;return this['_userManagerService'][_0x4609ae(0x144)]();}[_0x23c7d1(0x360)](_0x53c612,_0x32cf6e){const _0x256cc5=_0x23c7d1;let _0x19c970=this['_roomMembers'][_0x256cc5(0xcc)](_0x53c612);_0x19c970||(_0x19c970=new qn(),this[_0x256cc5(0x339)]['set'](_0x53c612,_0x19c970)),_0x19c970[_0x256cc5(0x360)](_0x32cf6e);}['removeMember'](_0x24dc0f,_0x3f87ba){const _0x4881a1=_0x23c7d1,_0x1ec275=this[_0x4881a1(0x339)][_0x4881a1(0xcc)](_0x24dc0f);_0x1ec275&&_0x1ec275['removeMember'](_0x3f87ba);}[_0x23c7d1(0x15c)](_0x3d3871){const _0x364747=_0x23c7d1;return this[_0x364747(0x339)][_0x364747(0xcc)](_0x3d3871);}[_0x23c7d1(0x13e)](_0x4d67f8,_0x58cdda){const _0x5836e1=_0x23c7d1,_0x5bf7af=this['_roomMembers'][_0x5836e1(0xcc)](_0x4d67f8);if(_0x5bf7af)return _0x5bf7af[_0x5836e1(0x13e)](_0x58cdda);}[_0x23c7d1(0x2d8)](_0xc00037){const _0x4771f0=_0x23c7d1,_0x40d3f2=this[_0x4771f0(0x339)]['get'](_0xc00037);_0x40d3f2&&(_0x40d3f2[_0x4771f0(0x230)](),this['_roomMembers']['delete'](_0xc00037));}['dispose'](){const _0x389d7d=_0x23c7d1;this['_roomMembers'][_0x389d7d(0x28d)](_0x5e3e43=>_0x5e3e43[_0x389d7d(0x230)]()),this[_0x389d7d(0x339)][_0x389d7d(0x120)]();}};ce=Xn([as(0x0,_0x9f62da),as(0x1,_0x4dc04f(_0x19e638))],ce);class qn extends _0x48670f{constructor(){const _0x5e05f6=_0x23c7d1;super(...arguments),l(this,_0x5e05f6(0xc4),new Map());}[_0x23c7d1(0x230)](){const _0x34b6dd=_0x23c7d1;this[_0x34b6dd(0xc4)][_0x34b6dd(0x120)]();}[_0x23c7d1(0x360)](_0x557087){const _0x3c353a=_0x23c7d1;this[_0x3c353a(0xc4)]['set'](_0x557087[_0x3c353a(0x19f)],_0x557087);}[_0x23c7d1(0x301)](_0x1e0d08){const _0x28f2e0=_0x23c7d1;this['_members'][_0x28f2e0(0xd4)](_0x1e0d08);}[_0x23c7d1(0x13e)](_0x3e00ce){const _0x2a6000=_0x23c7d1;return this['_members'][_0x2a6000(0xcc)](_0x3e00ce);}}var Jn=Object[_0x23c7d1(0x252)],zn=Object[_0x23c7d1(0x113)],Zn=(_0x2ed338,_0xfc54d9,_0x520f7b,_0xc9e8b4)=>{const _0x44e3cd=_0x23c7d1;for(var _0x580b47=_0xc9e8b4>0x1?void 0x0:_0xc9e8b4?zn(_0xfc54d9,_0x520f7b):_0xfc54d9,_0x450122=_0x2ed338[_0x44e3cd(0x22a)]-0x1,_0x48873e;_0x450122>=0x0;_0x450122--)(_0x48873e=_0x2ed338[_0x450122])&&(_0x580b47=(_0xc9e8b4?_0x48873e(_0xfc54d9,_0x520f7b,_0x580b47):_0x48873e(_0x580b47))||_0x580b47);return _0xc9e8b4&&_0x580b47&&Jn(_0xfc54d9,_0x520f7b,_0x580b47),_0x580b47;},J=(_0x1b7b63,_0xaad8ef)=>(_0x57dfc8,_0x134822)=>_0xaad8ef(_0x57dfc8,_0x134822,_0x1b7b63),Y=(_0x27822b=>(_0x27822b[_0x27822b[_0x23c7d1(0xaa)]=0x0]=_0x23c7d1(0xaa),_0x27822b[_0x27822b[_0x23c7d1(0x38b)]=0x1]=_0x23c7d1(0x38b),_0x27822b[_0x27822b[_0x23c7d1(0x346)]=0x2]=_0x23c7d1(0x346),_0x27822b[_0x27822b[_0x23c7d1(0x130)]=0x3]=_0x23c7d1(0x130),_0x27822b))(Y||{});let bt=class extends _0x55967c{constructor(_0x4a9b97,_0x3ff30f,_0x42bfd6,_0x4bffcc,_0x1434c4,_0x5e3c9d,_0x829cbe,_0x19fe92,_0x4d84b2,_0x1bdfbb){const _0x372636=_0x23c7d1;super(),l(this,_0x372636(0x14f),new _0x4a4faf(0x0)),l(this,'sessionStatus$',this[_0x372636(0x14f)][_0x372636(0x303)]()),l(this,'_event$',new _0x41261f()),l(this,'event$',this[_0x372636(0x238)]['asObservable']()),l(this,_0x372636(0x7c)),l(this,_0x372636(0x198)),l(this,'_collaborationTimeoutTimer'),l(this,_0x372636(0x392),!0x1),l(this,_0x372636(0x3e7),null),(this[_0x372636(0x394)]=_0x4a9b97,this[_0x372636(0x3e3)]=_0x42bfd6,this[_0x372636(0x2a3)]=_0x4bffcc,this[_0x372636(0x39a)]=_0x1434c4,this['_configService']=_0x5e3c9d,this[_0x372636(0x307)]=_0x829cbe,this['_memberService']=_0x19fe92,this[_0x372636(0x250)]=_0x4d84b2,this[_0x372636(0x173)]=_0x1bdfbb,this[_0x372636(0x392)]=!!this[_0x372636(0x173)],_0x3ff30f[_0x372636(0x254)](_0x21580d(this[_0x372636(0x1ee)]))[_0x372636(0x7f)](_0x367e0d=>{const _0x565eff=_0x372636;var _0x1c5cb6;typeof _0x367e0d>'u'||(this[_0x565eff(0x7c)]=_0x367e0d,_0x367e0d?(this[_0x565eff(0x16e)](_0x367e0d),this[_0x565eff(0x198)]=_0x367e0d[_0x565eff(0xaf)][_0x565eff(0x7f)](_0x38bd46=>{const _0x573a06=_0x565eff;_0x38bd46[_0x573a06(0x255)]===this[_0x573a06(0x394)]&&this[_0x573a06(0x1bd)](_0x38bd46);})):(this[_0x565eff(0x40c)](),this[_0x565eff(0x14f)][_0x565eff(0x183)](0x2),(_0x1c5cb6=this['_socketMessageSubscription'])==null||_0x1c5cb6['unsubscribe'](),this[_0x565eff(0x198)]=null));}),this[_0x372636(0x216)](this[_0x372636(0x2a3)][_0x372636(0x233)](()=>{const _0x547d0b=_0x372636;var _0x43875c;(_0x43875c=this[_0x547d0b(0x7c)])==null||_0x43875c[_0x547d0b(0x25c)]({'cmd':I[_0x547d0b(0x111)],'data':{'roomID':this[_0x547d0b(0x394)]}});})));}get[_0x23c7d1(0x16f)](){const _0x6728c8=_0x23c7d1;return this[_0x6728c8(0x14f)]['getValue']();}['getMemberID'](){const _0x5e9923=_0x23c7d1;var _0x4373a9,_0x1588b7;return(_0x1588b7=(_0x4373a9=this[_0x5e9923(0x7c)])==null?void 0x0:_0x4373a9['memberID'])!=null?_0x1588b7:null;}[_0x23c7d1(0x230)](){const _0x306265=_0x23c7d1;super[_0x306265(0x230)](),this[_0x306265(0x1ee)][_0x306265(0x183)](),this[_0x306265(0x1ee)]['complete']();}[_0x23c7d1(0x197)](){const _0x152159=_0x23c7d1;var _0x2d6f60,_0x45e96a;this['_throwTelemetryCollaborationNewChangeset'](),(_0x2d6f60=this[_0x152159(0x7c)])==null||_0x2d6f60[_0x152159(0x25c)]({'cmd':I[_0x152159(0x111)],'data':{'roomID':this[_0x152159(0x394)]}}),(_0x45e96a=this[_0x152159(0x7c)])==null||_0x45e96a['close'](),this[_0x152159(0x238)][_0x152159(0x3ba)](),this[_0x152159(0x14f)][_0x152159(0x3ba)](),this[_0x152159(0x230)]();}['_onCombEvent'](_0x1c2ef7){const _0x2ee0ef=_0x23c7d1;_0x1c2ef7[_0x2ee0ef(0xdd)]===I[_0x2ee0ef(0x13a)]?this['_onJoinRoomEvent'](_0x1c2ef7):_0x1c2ef7[_0x2ee0ef(0xdd)]===I[_0x2ee0ef(0x2ce)]&&this[_0x2ee0ef(0xb7)](_0x1c2ef7);}[_0x23c7d1(0x16e)](_0x302dfd){const _0x2235b2=_0x23c7d1;this[_0x2235b2(0x14f)][_0x2235b2(0x183)](0x1),_0x302dfd[_0x2235b2(0x25c)]({'cmd':I[_0x2235b2(0x13a)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x2235b2(0x394)]}]}});}['_onJoinRoomEvent'](_0x4d7df5){const _0x47fe17=_0x23c7d1;var _0x172b47;if(_0x4d7df5['code']===Vt['FAIL']){this[_0x47fe17(0x39a)][_0x47fe17(0x3cf)]({'type':_0x2b8ac7[_0x47fe17(0x105)],'content':this[_0x47fe17(0x307)]['t'](_0x47fe17(0x34d))}),this[_0x47fe17(0x14f)][_0x47fe17(0x183)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0xe4c93d=(_0x172b47=_0x4d7df5['data']['roomInfos'][this[_0x47fe17(0x394)]])==null?void 0x0:_0x172b47[_0x47fe17(0x256)];_0xe4c93d&&_0xe4c93d[_0x47fe17(0x28d)](_0x41f418=>this[_0x47fe17(0x2da)][_0x47fe17(0x360)](this[_0x47fe17(0x394)],_0x41f418));}[_0x23c7d1(0xb7)](_0x516215){const _0x18a865=_0x23c7d1;try{const _0x56dd0f=_0x516215[_0x18a865(0x15d)];switch(_0x56dd0f[_0x18a865(0x361)]){case _0x3e2e84[_0x18a865(0x321)]:this[_0x18a865(0x176)](_0x56dd0f),this[_0x18a865(0x238)][_0x18a865(0x183)](_0x56dd0f);break;case _0x3e2e84[_0x18a865(0x355)]:this[_0x18a865(0x3ce)](_0x56dd0f),this['_event$'][_0x18a865(0x183)](_0x56dd0f);break;case _0x3e2e84[_0x18a865(0xb4)]:case _0x3e2e84[_0x18a865(0x166)]:this[_0x18a865(0x356)](),this['_clearCollaborationTimeoutTimer'](),this[_0x18a865(0x238)][_0x18a865(0x183)](_0x56dd0f);break;case _0x3e2e84[_0x18a865(0x154)]:this[_0x18a865(0x3e3)][_0x18a865(0x328)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x18a865(0x147)](_0x56dd0f)),this['_event$'][_0x18a865(0x183)](_0x56dd0f);break;case _0x3e2e84[_0x18a865(0x1e7)]:this[_0x18a865(0x250)][_0x18a865(0x32e)](_0x56dd0f[_0x18a865(0x15d)]),this[_0x18a865(0x238)][_0x18a865(0x183)](_0x56dd0f);break;default:this[_0x18a865(0x238)][_0x18a865(0x183)](_0x56dd0f);}}catch(_0x38f473){this['_logService']['error'](_0x38f473,_0x516215);}}['_onUserJoin'](_0x206355){const _0x1cf484=_0x23c7d1;this[_0x1cf484(0x2da)][_0x1cf484(0x360)](this[_0x1cf484(0x394)],_0x206355[_0x1cf484(0x15d)]);}[_0x23c7d1(0x3ce)](_0x563d9f){const _0x389d7f=_0x23c7d1;this[_0x389d7f(0x2da)][_0x389d7f(0x301)](this[_0x389d7f(0x394)],_0x563d9f['data'][_0x389d7f(0x19f)]);}async[_0x23c7d1(0x25c)](_0xced4e4,_0x43f250){const _0x438bf9=_0x23c7d1;if(this[_0x438bf9(0x16f)]!==0x3||!this[_0x438bf9(0x7c)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0xced4e4[_0x438bf9(0x361)]===_0x3e2e84[_0x438bf9(0x331)]&&(this[_0x438bf9(0x187)](),this['_startTelemetryCollaborationNewChangeset'](_0xced4e4)),this[_0x438bf9(0x7c)]['send']({'cmd':I['INGEST'],'routeKey':_0x43f250,'routeType':'','data':_0xced4e4});}catch(_0x114d66){this['_logService'][_0x438bf9(0x328)](_0x114d66);}}[_0x23c7d1(0x187)](){const _0x257887=_0x23c7d1;var _0x4b6684;this[_0x257887(0x110)]=window['setTimeout'](()=>{const _0x3c47b6=_0x257887;this[_0x3c47b6(0x110)]=null,this[_0x3c47b6(0x39a)][_0x3c47b6(0x3cf)]({'type':_0x2b8ac7[_0x3c47b6(0x306)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x4b6684=this['_configService'][_0x257887(0x30d)](js))!=null?_0x4b6684:Hs);}['_clearCollaborationTimeoutTimer'](){const _0x492b34=_0x23c7d1;this[_0x492b34(0x110)]&&(clearTimeout(this[_0x492b34(0x110)]),this[_0x492b34(0x110)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x5dac85){const _0x383167=_0x23c7d1;if(!this[_0x383167(0x392)])return;const {data:_0x2e7b72}=_0x5dac85,{unitID:_0x3ff998,changeset:_0x1ee32f}=_0x2e7b72,{mutations:_0x133ff7,type:_0x320c7d}=_0x1ee32f;this[_0x383167(0x3e7)]={'unitId':_0x3ff998,'type':_0x320c7d,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x133ff7)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x2d2c82=_0x23c7d1;if(this[_0x2d2c82(0x392)]){if(!this[_0x2d2c82(0x3e7)]){this[_0x2d2c82(0x3e3)][_0x2d2c82(0x328)](_0x2d2c82(0x21d),_0x2d2c82(0x38d));return;}this['_telemetryInfo']['stopTime']=performance[_0x2d2c82(0x1f5)](),this[_0x2d2c82(0x3e7)][_0x2d2c82(0x3c2)]=this[_0x2d2c82(0x3e7)][_0x2d2c82(0x2dc)]-this[_0x2d2c82(0x3e7)][_0x2d2c82(0xda)],this[_0x2d2c82(0x173)]['capture'](Wn,this[_0x2d2c82(0x3e7)]),this['_telemetryInfo']=null;}}[_0x23c7d1(0x40c)](){const _0x219145=_0x23c7d1;this[_0x219145(0x3e7)]=null;}};bt=Zn([J(0x2,_0x20dcfc),J(0x3,_0x16cd89),J(0x4,_0x413020),J(0x5,_0x5ae707),J(0x6,_0x4dc04f(_0x19fdc8)),J(0x7,_0x4dc04f(ce)),J(0x8,_0x4dc04f(Vs)),J(0x9,_0x4ab0b0(_0x4bbd1f))],bt);var Qn=Object[_0x23c7d1(0x252)],er=Object['getOwnPropertyDescriptor'],tr=(_0x4cd87c,_0x4528fe,_0x2bbe7a,_0xe11968)=>{const _0x3964ed=_0x23c7d1;for(var _0x27821e=_0xe11968>0x1?void 0x0:_0xe11968?er(_0x4528fe,_0x2bbe7a):_0x4528fe,_0x1b2a3d=_0x4cd87c[_0x3964ed(0x22a)]-0x1,_0x8107;_0x1b2a3d>=0x0;_0x1b2a3d--)(_0x8107=_0x4cd87c[_0x1b2a3d])&&(_0x27821e=(_0xe11968?_0x8107(_0x4528fe,_0x2bbe7a,_0x27821e):_0x8107(_0x27821e))||_0x27821e);return _0xe11968&&_0x27821e&&Qn(_0x4528fe,_0x2bbe7a,_0x27821e),_0x27821e;},me=(_0x358123,_0x3d168d)=>(_0x5a0ae5,_0x517c66)=>_0x3d168d(_0x5a0ae5,_0x517c66,_0x358123);let he=class extends _0x48670f{constructor(_0x29c594,_0xe795f8,_0x5b9d51,_0x7b919b,_0x2e1e3d,_0x220155){const _0x56d1da=_0x23c7d1;super(),l(this,_0x56d1da(0x121),new _0x4a4faf(void 0x0)),l(this,_0x56d1da(0x237),this['_socket$'][_0x56d1da(0x303)]()),l(this,_0x56d1da(0x23c),null),l(this,_0x56d1da(0x269),new Map()),l(this,_0x56d1da(0x16c),new _0x4a4faf(Y[_0x56d1da(0xaa)])),l(this,_0x56d1da(0x3e5),this[_0x56d1da(0x16c)][_0x56d1da(0x303)]()),l(this,'_socketReady',!0x1),l(this,_0x56d1da(0x27b)),l(this,_0x56d1da(0x34f),0x0),l(this,_0x56d1da(0x3f5)),l(this,_0x56d1da(0x40a)),(this[_0x56d1da(0xdc)]=_0x29c594,this['_localeService']=_0xe795f8,this[_0x56d1da(0x39a)]=_0x5b9d51,this[_0x56d1da(0x3e3)]=_0x7b919b,this[_0x56d1da(0x3c0)]=_0x2e1e3d,this['_socketService']=_0x220155,this[_0x56d1da(0x210)]());}get[_0x23c7d1(0x7c)](){const _0x4a607c=_0x23c7d1;return this[_0x4a607c(0x121)][_0x4a607c(0x264)]();}[_0x23c7d1(0x210)](){const _0x241fcc=_0x23c7d1;this[_0x241fcc(0xcf)](),this['_listenToOnlineEvent']();}[_0x23c7d1(0x230)](){const _0x171079=_0x23c7d1;super[_0x171079(0x230)](),this[_0x171079(0x269)][_0x171079(0x28d)](_0x76cd37=>_0x76cd37['dispose']()),this[_0x171079(0x269)][_0x171079(0x120)](),this[_0x171079(0x16c)]['complete']();}async['requireSession'](_0x4cecf5){const _0x14b6b4=_0x23c7d1;if(this['_sessions']['has'](_0x4cecf5))return this[_0x14b6b4(0x269)][_0x14b6b4(0xcc)](_0x4cecf5);this[_0x14b6b4(0x235)]();const _0x15d44e=this[_0x14b6b4(0xdc)]['createInstance'](bt,_0x4cecf5,this[_0x14b6b4(0x121)][_0x14b6b4(0x303)]());return this[_0x14b6b4(0x269)][_0x14b6b4(0x2f5)](_0x4cecf5,_0x15d44e),_0x15d44e;}[_0x23c7d1(0x3a8)](_0x441ab6){const _0x5912c8=_0x23c7d1;var _0x55cb8b;const _0x2f53ca=this[_0x5912c8(0x269)][_0x5912c8(0xcc)](_0x441ab6);_0x2f53ca&&(this[_0x5912c8(0x269)][_0x5912c8(0xd4)](_0x441ab6),_0x2f53ca['close']()),this[_0x5912c8(0x269)][_0x5912c8(0x37a)]||(_0x55cb8b=this[_0x5912c8(0x7c)])==null||_0x55cb8b[_0x5912c8(0x197)]();}[_0x23c7d1(0x2ad)](){const _0xeba5a9=_0x23c7d1;this[_0xeba5a9(0x34f)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0xeba5a9(0x27b)]),this[_0xeba5a9(0x27b)]=null),this['_tryReconnect']();}[_0x23c7d1(0x3a4)](){const _0x1d510e=_0x23c7d1;var _0x11e48d,_0x1b404c;const _0x51cd3a=this[_0x1d510e(0x3c0)][_0x1d510e(0x30d)](Tn),_0x296c21=this[_0x1d510e(0x3c0)]['getConfig']($),_0x36fc56=(_0x1b404c=(_0x11e48d=_0x296c21==null?void 0x0:_0x296c21['collabWebSocketUrl'])!=null?_0x11e48d:_0x51cd3a)!=null?_0x1b404c:Rn,_0x27f2f6=this[_0x1d510e(0x3c5)]['createSocket'](_0x36fc56);return this['_candidateSocket']=_0x27f2f6,_0x27f2f6;}['_tryEnsureSocket'](){const _0x103e40=_0x23c7d1;var _0x47e289,_0x21f2b1;try{const _0xcb7ae5=(_0x21f2b1=(_0x47e289=this[_0x103e40(0x7c)])!=null?_0x47e289:this[_0x103e40(0x23c)])!=null?_0x21f2b1:this['_createSocket']();if(_0xcb7ae5){const _0x497fde=_0xcb7ae5[_0x103e40(0x25c)];_0xcb7ae5[_0x103e40(0x25c)]=_0x225e65=>(this['_rescheduleHeartbeat'](),_0x497fde[_0x103e40(0x2cb)](_0xcb7ae5,[_0x225e65])),_0xcb7ae5[_0x103e40(0xaf)][_0x103e40(0x7f)](_0x297e0a=>this['_onMessage'](_0xcb7ae5,_0x297e0a)),_0xcb7ae5['error$'][_0x103e40(0x254)](_0x10cb40(0x1))[_0x103e40(0x7f)](_0xc6b435=>this[_0x103e40(0x3e3)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0xc6b435)),_0xcb7ae5['open$']['pipe'](_0x10cb40(0x1))[_0x103e40(0x7f)](()=>{const _0x40c4fa=_0x103e40;this[_0x40c4fa(0x1cb)](_0xcb7ae5);}),_0xcb7ae5[_0x103e40(0x35f)][_0x103e40(0x254)](_0x10cb40(0x1))['subscribe'](_0x54f422=>{const _0x2da824=_0x103e40;this[_0x2da824(0x3e3)][_0x2da824(0x12b)](_0x2da824(0x203),_0x2da824(0x1ac),_0x54f422),this['_onConnectionFailed']();});}}catch(_0x5efd21){this['_logService']['error'](_0x5efd21),this[_0x103e40(0x341)]();}}[_0x23c7d1(0x1cb)](_0x3d820e){const _0x40d2d2=_0x23c7d1;this['_logService'][_0x40d2d2(0x12b)]('[CollaborationSessionService]',_0x40d2d2(0xed)),_0x3d820e['send']({'cmd':I[_0x40d2d2(0x90)]}),this[_0x40d2d2(0x2ec)]();}['_listenToOfflineEvent'](){const _0x2fca16=_0x23c7d1;window[_0x2fca16(0x297)](_0x2fca16(0x3f8),()=>this[_0x2fca16(0x98)]());}['_onOffline'](){const _0xcf137f=_0x23c7d1;this[_0xcf137f(0x275)]=!0x1,this[_0xcf137f(0x23c)]=null,this['_status$'][_0xcf137f(0x183)](Y[_0xcf137f(0x346)]),this[_0xcf137f(0x121)][_0xcf137f(0x183)](null),this[_0xcf137f(0x12d)](),this[_0xcf137f(0x38e)]();}[_0x23c7d1(0x341)](){const _0x328218=_0x23c7d1;var _0x338080;this[_0x328218(0x98)](),this['_retryCount']<((_0x338080=this[_0x328218(0x3c0)][_0x328218(0x30d)](Pn))!=null?_0x338080:yn)?(this[_0x328218(0x39a)]['show']({'key':'collaboration-session-retry','type':_0x2b8ac7['Warning'],'content':this[_0x328218(0x307)]['t'](_0x328218(0x14c))}),this[_0x328218(0x239)]()):this[_0x328218(0x39a)][_0x328218(0x3cf)]({'key':_0x328218(0x37c),'type':_0x2b8ac7[_0x328218(0x306)],'content':this[_0x328218(0x307)]['t'](_0x328218(0xdf))});}[_0x23c7d1(0x3d9)](){const _0x1c6c38=_0x23c7d1,_0x43813b=()=>{const _0x237609=_0x3e56;this[_0x237609(0x7c)]||this[_0x237609(0x2ad)]();},_0x5d1497=()=>{const _0x4a7367=_0x3e56;this[_0x4a7367(0x7c)]||document['visibilityState']===_0x4a7367(0x19a)||this['reconnect']();};window[_0x1c6c38(0x297)](_0x1c6c38(0x3bb),_0x43813b),document[_0x1c6c38(0x297)](_0x1c6c38(0x3a9),_0x5d1497);}[_0x23c7d1(0x239)](){const _0x3e2582=_0x23c7d1;var _0x337691;const _0x30b9d7=this[_0x3e2582(0x34f)],_0x55e175=this[_0x3e2582(0x3c0)][_0x3e2582(0x30d)]($),_0x3c4242=_0x30b9d7===0x0?0x0:((_0x337691=_0x55e175==null?void 0x0:_0x55e175['retryConnectingInterval'])!=null?_0x337691:wn)*0x2**_0x30b9d7;this[_0x3e2582(0x27b)]=window['setTimeout'](()=>{const _0x1b779f=_0x3e2582;clearTimeout(this['_retryConnectingTimer']),this[_0x1b779f(0x27b)]=null,this[_0x1b779f(0x235)]();},_0x3c4242),this[_0x3e2582(0x34f)]+=0x1;}[_0x23c7d1(0xbe)](_0x4e50a7,_0x2d2e65){const _0xef736e=_0x23c7d1,{cmd:_0x593449}=_0x2d2e65;_0x593449===I[_0xef736e(0x90)]&&!this[_0xef736e(0x275)]&&(_0x4e50a7[_0xef736e(0x19f)]=_0x2d2e65['data'][_0xef736e(0x19f)],this[_0xef736e(0x121)][_0xef736e(0x183)](_0x4e50a7),this[_0xef736e(0x16c)][_0xef736e(0x183)](Y['ONLINE']),this[_0xef736e(0x275)]=!0x0,this[_0xef736e(0x23c)]=null),_0x593449===I[_0xef736e(0x30b)]&&this[_0xef736e(0x12d)](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x2ac074=_0x23c7d1;var _0xcea0d6;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x2ac074(0x1e4)](),(_0xcea0d6=this[_0x2ac074(0x3c0)][_0x2ac074(0x30d)](On))!=null?_0xcea0d6:Dn);}[_0x23c7d1(0x1e4)](){const _0x4e3d38=_0x23c7d1;this[_0x4e3d38(0x7c)]['send']({'cmd':I[_0x4e3d38(0x30b)]}),this[_0x4e3d38(0x15b)]();}['_waitForHeartbeatResponse'](){const _0x59c1f6=_0x23c7d1;var _0x1f2e84;this[_0x59c1f6(0x40a)]=window['setTimeout'](()=>this[_0x59c1f6(0x341)](),(_0x1f2e84=this[_0x59c1f6(0x3c0)][_0x59c1f6(0x30d)](js))!=null?_0x1f2e84:Hs);}['_clearHeartbeatTimer'](){const _0x2d9d09=_0x23c7d1;this[_0x2d9d09(0x3f5)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x2d9d09(0x3f5)]=null);}[_0x23c7d1(0x12d)](){const _0x2c67c9=_0x23c7d1;this[_0x2c67c9(0x40a)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x2c67c9(0x40a)]=null);}};he=tr([me(0x0,_0x4dc04f(_0x22396d)),me(0x1,_0x4dc04f(_0x19fdc8)),me(0x2,_0x413020),me(0x3,_0x20dcfc),me(0x4,_0x5ae707),me(0x5,Bs)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0x23c7d1(0x3d1)]((ct+0x100)['toString'](0x10)[_0x23c7d1(0xf8)](0x1));function sr(_0x422a32,_0x17e7c6=0x0){return(T[_0x422a32[_0x17e7c6+0x0]]+T[_0x422a32[_0x17e7c6+0x1]]+T[_0x422a32[_0x17e7c6+0x2]]+T[_0x422a32[_0x17e7c6+0x3]]+'-'+T[_0x422a32[_0x17e7c6+0x4]]+T[_0x422a32[_0x17e7c6+0x5]]+'-'+T[_0x422a32[_0x17e7c6+0x6]]+T[_0x422a32[_0x17e7c6+0x7]]+'-'+T[_0x422a32[_0x17e7c6+0x8]]+T[_0x422a32[_0x17e7c6+0x9]]+'-'+T[_0x422a32[_0x17e7c6+0xa]]+T[_0x422a32[_0x17e7c6+0xb]]+T[_0x422a32[_0x17e7c6+0xc]]+T[_0x422a32[_0x17e7c6+0xd]]+T[_0x422a32[_0x17e7c6+0xe]]+T[_0x422a32[_0x17e7c6+0xf]])['toLowerCase']();}var xe,ir=new Uint8Array(0x10);function nr(){const _0x5ce9bb=_0x23c7d1;if(!xe&&(xe=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x5ce9bb(0x23f)]['bind'](crypto),!xe))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return xe(ir);}var rr=typeof crypto<'u'&&crypto[_0x23c7d1(0x277)]&&crypto[_0x23c7d1(0x277)]['bind'](crypto);const cs={'randomUUID':rr};function or(_0x314ddf,_0x56563d,_0x5bf3cc){const _0x1ed0d7=_0x23c7d1;if(cs['randomUUID']&&!_0x56563d&&!_0x314ddf)return cs[_0x1ed0d7(0x277)]();_0x314ddf=_0x314ddf||{};var _0x4e35fb=_0x314ddf[_0x1ed0d7(0xa2)]||(_0x314ddf['rng']||nr)();return _0x4e35fb[0x6]=_0x4e35fb[0x6]&0xf|0x40,_0x4e35fb[0x8]=_0x4e35fb[0x8]&0x3f|0x80,sr(_0x4e35fb);}var ar=Object[_0x23c7d1(0x252)],cr=Object[_0x23c7d1(0x113)],hr=(_0xfddc31,_0x5945f7,_0x223b21,_0x1fc44a)=>{const _0x5f3db0=_0x23c7d1;for(var _0x10a96b=_0x1fc44a>0x1?void 0x0:_0x1fc44a?cr(_0x5945f7,_0x223b21):_0x5945f7,_0x2e4740=_0xfddc31[_0x5f3db0(0x22a)]-0x1,_0x25a20d;_0x2e4740>=0x0;_0x2e4740--)(_0x25a20d=_0xfddc31[_0x2e4740])&&(_0x10a96b=(_0x1fc44a?_0x25a20d(_0x5945f7,_0x223b21,_0x10a96b):_0x25a20d(_0x10a96b))||_0x10a96b);return _0x1fc44a&&_0x10a96b&&ar(_0x5945f7,_0x223b21,_0x10a96b),_0x10a96b;},ht=(_0x5bc4a6,_0x6dbe64)=>(_0x11b594,_0x4e058a)=>_0x6dbe64(_0x11b594,_0x4e058a,_0x5bc4a6);let Ye=class{constructor(_0x3cae0c,_0x3204e0,_0x16c826){const _0x1022cd=_0x23c7d1;this[_0x1022cd(0xdc)]=_0x3cae0c,this['_transformService']=_0x3204e0,this['_renderManagerService']=_0x16c826;}[_0x23c7d1(0x141)](_0x45ab5e){this['_transformUndoRedoStack'](_0x45ab5e),this['_transformPreviousActiveRange'](_0x45ab5e);}[_0x23c7d1(0x1fe)](_0x319a59){const _0xc8fc5e=_0x23c7d1,{unitID:_0x5325bf}=_0x319a59,_0x286fe8=this['_renderManagerService'][_0xc8fc5e(0x24f)](_0x5325bf)[_0xc8fc5e(0x325)](_0x3fbce3),{redoCache:_0x5a7f88}=_0x286fe8[_0xc8fc5e(0x223)]();if(_0x5a7f88[_0xc8fc5e(0x22a)]===0x0)return _0x319a59;let _0x53c62b=_0x344d53[_0xc8fc5e(0x1fc)](_0x319a59[_0xc8fc5e(0x2aa)][0x0]);for(let _0x7fefeb=0x0;_0x7fefeb<_0x5a7f88['length'];_0x7fefeb++){const _0x26b3b2={'id':_0xc8fc5e(0x28e),'params':{..._0x5a7f88[_0x7fefeb]}},_0x31c122=this[_0xc8fc5e(0x152)][_0xc8fc5e(0xe3)](_0x53c62b,_0x26b3b2,!0x1);if(_0x20d9cf(_0x31c122))throw _0x31c122[_0xc8fc5e(0x328)];_0x53c62b=_0x31c122[_0xc8fc5e(0x1f0)];}return{..._0x344d53[_0xc8fc5e(0x1fc)](_0x319a59),'mutations':[_0x53c62b]};}[_0x23c7d1(0x148)](_0x1b60c2){const _0xb13c84=_0x23c7d1,{unitID:_0x50310e}=_0x1b60c2,_0xe8e442=this['_renderManagerService'][_0xb13c84(0x24f)](_0x50310e)[_0xb13c84(0x325)](_0x3fbce3),{undoCache:_0x330cb7,redoCache:_0x24b2f4}=_0xe8e442['getUndoRedoMutationParamsCache']();if(_0x330cb7[_0xb13c84(0x22a)]===0x0||_0x24b2f4['length']===0x0)return;const _0x3d6563=[],_0x24f72e=[];let _0x335ed6=_0x344d53[_0xb13c84(0x1fc)](_0x1b60c2[_0xb13c84(0x2aa)][0x0]),_0x183274=_0x344d53[_0xb13c84(0x1fc)](_0x1b60c2[_0xb13c84(0x2aa)][0x0]);for(let _0x1cfd54=_0x330cb7[_0xb13c84(0x22a)]-0x1;_0x1cfd54>=0x0;_0x1cfd54--){const _0x432099={'id':_0xb13c84(0x28e),'params':{..._0x330cb7[_0x1cfd54]}},_0x5a7dde={'id':_0xb13c84(0x28e),'params':{..._0x24b2f4[_0x1cfd54]}},_0x3428a0=this[_0xb13c84(0x152)][_0xb13c84(0xe3)](_0x335ed6,_0x432099,!0x1),_0x375c38=this['_transformService'][_0xb13c84(0xe3)](_0x183274,_0x5a7dde,!0x1);if(_0x20d9cf(_0x3428a0))throw _0x3428a0[_0xb13c84(0x328)];if(_0x20d9cf(_0x375c38))throw _0x375c38['error'];_0x3d6563[_0xb13c84(0x326)](_0x3428a0[_0xb13c84(0x388)][_0xb13c84(0x16d)]),_0x24f72e['unshift'](_0x375c38[_0xb13c84(0x388)][_0xb13c84(0x16d)]),_0x335ed6=_0x3428a0[_0xb13c84(0x1f0)],_0x183274=_0x375c38[_0xb13c84(0x1f0)];}_0xe8e442[_0xb13c84(0x1f6)]({'undoCache':_0x3d6563,'redoCache':_0x24f72e});}[_0x23c7d1(0x2d7)](_0x3c1847){const _0x37443d=_0x23c7d1,{unitID:_0x569e12}=_0x3c1847,_0x47585b=this[_0x37443d(0x8a)][_0x37443d(0x24f)](_0x569e12)[_0x37443d(0x325)](_0x3fbce3),_0x304b4c=_0x47585b[_0x37443d(0x18a)]();if(_0x304b4c==null)return;const _0x556adf=[{'id':_0x37443d(0x28e),'params':{'unitId':_0x3c1847[_0x37443d(0x347)],'actions':null,'textRanges':[_0x304b4c]}}],_0x2438ad=this[_0x37443d(0x152)][_0x37443d(0x2c0)](_0x3c1847,_0x556adf);if(!_0x4a2341(_0x2438ad))throw _0x2438ad['error'];const _0x482e2e=_0x2438ad['m2Prime'][0x0][_0x37443d(0x16d)][_0x37443d(0x36b)];Array[_0x37443d(0x1a0)](_0x482e2e)&&_0x482e2e[_0x37443d(0x22a)]&&_0x47585b[_0x37443d(0xe4)](_0x482e2e[0x0]);}};Ye=hr([ht(0x0,_0x4dc04f(_0x22396d)),ht(0x1,_0x1c29f3),ht(0x2,_0x3bd096)],Ye);var lr=Object[_0x23c7d1(0x252)],_r=Object[_0x23c7d1(0x113)],ur=(_0x373525,_0x3d7e81,_0x28649b,_0x49749b)=>{const _0x975037=_0x23c7d1;for(var _0x2f880c=_0x49749b>0x1?void 0x0:_0x49749b?_r(_0x3d7e81,_0x28649b):_0x3d7e81,_0x307652=_0x373525[_0x975037(0x22a)]-0x1,_0x5da340;_0x307652>=0x0;_0x307652--)(_0x5da340=_0x373525[_0x307652])&&(_0x2f880c=(_0x49749b?_0x5da340(_0x3d7e81,_0x28649b,_0x2f880c):_0x5da340(_0x2f880c))||_0x2f880c);return _0x49749b&&_0x2f880c&&lr(_0x3d7e81,_0x28649b,_0x2f880c),_0x2f880c;},De=(_0xc45e63,_0x38f211)=>(_0x1b1ea4,_0x29dd9a)=>_0x38f211(_0x1b1ea4,_0x29dd9a,_0xc45e63);let w=class extends _0x48670f{constructor(_0x33586b,_0x1639c3,_0x2d9feb,_0x560ec2,_0x51276d){const _0x34ea69=_0x23c7d1;super(),l(this,_0x34ea69(0x25f),new Map()),l(this,_0x34ea69(0x1ed),new Map()),l(this,_0x34ea69(0x278),!0x1),(this[_0x34ea69(0x3c0)]=_0x33586b,this[_0x34ea69(0x2a5)]=_0x1639c3,this[_0x34ea69(0x2a3)]=_0x2d9feb,this['_localeService']=_0x560ec2,this[_0x34ea69(0x175)]=_0x51276d,this[_0x34ea69(0x1bc)]());}[_0x23c7d1(0x387)](){const _0x5dfe2c=_0x23c7d1;this[_0x5dfe2c(0x278)]=!0x0;}[_0x23c7d1(0x37b)](){const _0x487ba2=_0x23c7d1;this[_0x487ba2(0x278)]=!0x1;}[_0x23c7d1(0x230)](){const _0xa2a6e5=_0x23c7d1;this['exhaustSavingTask']()[_0xa2a6e5(0x136)](()=>super[_0xa2a6e5(0x230)]());}async['loadOfflineData'](_0x37a81e){const _0x1fd936=_0x23c7d1;return this[_0x1fd936(0x278)]?null:this['_localStorageService'][_0x1fd936(0x211)](hs(_0x37a81e));}async[_0x23c7d1(0x214)](_0x4e4a7a,_0x4b352f){const _0x5225c5=_0x23c7d1;return!!this[_0x5225c5(0x2a5)][_0x5225c5(0x271)](_0x4e4a7a,_0x4b352f);}[_0x23c7d1(0x209)](_0x1aa8ed,_0x2c9e0a,_0x171936,_0x489410){const _0x40843d=_0x23c7d1,_0x258d83=this[_0x40843d(0x175)]['getCurrentRevOfUnit'](_0x1aa8ed);this['_cachedData']['set'](_0x1aa8ed,{'unitID':_0x1aa8ed,'type':_0x2c9e0a,'awaitingChangeset':_0x171936,'mutations':_0x489410,'rev':_0x258d83}),this[_0x40843d(0x1ed)][_0x40843d(0x143)](_0x1aa8ed)||this[_0x40843d(0x2ed)](_0x1aa8ed);}[_0x23c7d1(0x2ed)](_0x472b6d){const _0x2b0297=_0x23c7d1,_0x1d231c=this[_0x2b0297(0x16a)]();_0x1d231c===0x0?this['_saveCache'](_0x472b6d):this[_0x2b0297(0x1ed)]['set'](_0x472b6d,setTimeout(()=>this['_saveCache'](_0x472b6d),_0x1d231c));}[_0x23c7d1(0x16a)](){const _0x2a7113=_0x23c7d1;var _0x266606;return(_0x266606=this[_0x2a7113(0x3c0)][_0x2a7113(0x30d)](Un))!=null?_0x266606:Nn;}['_saveCache'](_0x40ba2c){const _0x4debf6=_0x23c7d1,_0x44fa09=this[_0x4debf6(0x1ed)][_0x4debf6(0xcc)](_0x40ba2c);return _0x44fa09!==void 0x0&&window['clearTimeout'](_0x44fa09),this[_0x4debf6(0x2a5)][_0x4debf6(0x271)](hs(_0x40ba2c),this[_0x4debf6(0x25f)][_0x4debf6(0xcc)](_0x40ba2c))['then'](()=>this[_0x4debf6(0x1ed)]['delete'](_0x40ba2c));}async[_0x23c7d1(0x102)](){const _0x51899a=_0x23c7d1,_0x30b643=[];this[_0x51899a(0x1ed)]['forEach']((_0x163190,_0xb30a47)=>{const _0x23df64=_0x51899a;window[_0x23df64(0x2f8)](_0x163190),_0x30b643[_0x23df64(0x3d1)](this[_0x23df64(0x167)](_0xb30a47)[_0x23df64(0x136)](()=>{this['_saveTaskMap']['delete'](_0xb30a47);}));}),await Promise[_0x51899a(0x2df)](_0x30b643);}[_0x23c7d1(0x1bc)](){const _0x490392=_0x23c7d1;this['disposeWithMe'](this[_0x490392(0x2a3)]['registerBeforeClose'](()=>{const _0x7e3bd8=_0x490392;if(this[_0x7e3bd8(0x1ed)][_0x7e3bd8(0x37a)])return this[_0x7e3bd8(0x307)]['t'](_0x7e3bd8(0x3ee));}));}};w=ur([De(0x0,_0x5ae707),De(0x1,_0x1ead3d),De(0x2,_0x16cd89),De(0x3,_0x4dc04f(_0x19fdc8)),De(0x4,_0x4dc04f(_0x2fb629))],w);function hs(_0x2acff7){return'unit-cache-'+_0x2acff7;}var dr=Object[_0x23c7d1(0x252)],mr=Object['getOwnPropertyDescriptor'],fr=(_0x21f76e,_0x320247,_0x47b8a9,_0x3383db)=>{for(var _0x3272f2=_0x3383db>0x1?void 0x0:_0x3383db?mr(_0x320247,_0x47b8a9):_0x320247,_0x86b3b9=_0x21f76e['length']-0x1,_0x5a4fb5;_0x86b3b9>=0x0;_0x86b3b9--)(_0x5a4fb5=_0x21f76e[_0x86b3b9])&&(_0x3272f2=(_0x3383db?_0x5a4fb5(_0x320247,_0x47b8a9,_0x3272f2):_0x5a4fb5(_0x3272f2))||_0x3272f2);return _0x3383db&&_0x3272f2&&dr(_0x320247,_0x47b8a9,_0x3272f2),_0x3272f2;},lt=(_0x5ea907,_0x20a807)=>(_0x2b27a4,_0x570ad0)=>_0x20a807(_0x2b27a4,_0x570ad0,_0x5ea907);function gr(_0x2dc7e5){const _0x50d868=_0x23c7d1,{unitID:_0x2c0365,mutations:_0x2d3b33}=_0x2dc7e5;return{'unitId':_0x2c0365,'subUnitId':_0x2d3b33[0x0][_0x50d868(0x16d)]['subUnitId']};}let Ke=class{constructor(_0x5d2469,_0x579cfe,_0xafaaca){const _0x50d2e9=_0x23c7d1;this[_0x50d2e9(0xdc)]=_0x5d2469,this[_0x50d2e9(0x152)]=_0x579cfe,this[_0x50d2e9(0x3b8)]=_0xafaaca;}['transformSelections'](_0x15f287){const _0x30e5d1=_0x23c7d1;var _0x1b7a2d,_0x3bc299,_0xccb920,_0x3fb3f9;const _0x20047f=this[_0x30e5d1(0xdc)][_0x30e5d1(0xcc)](_0x49c5af),{unitId:_0x2a0c00,subUnitId:_0x128a16}=gr(_0x15f287),_0x242839=_0x20047f['getWorkbookSelections'](_0x2a0c00)[_0x30e5d1(0x1a4)](),_0x1a6718=(_0x3bc299=(_0x1b7a2d=this[_0x30e5d1(0x3b8)][_0x30e5d1(0x1cd)](_0x2a0c00))==null?void 0x0:_0x1b7a2d[_0x30e5d1(0x131)]())==null?void 0x0:_0x3bc299[_0x30e5d1(0x157)]();if(_0x242839[_0x30e5d1(0x22a)]===0x0||!_0x2a0c00||!_0x128a16)return;const _0x14c4dd=[{'id':_0x3f3cc1['id'],'params':{'unitId':_0x2a0c00,'subUnitId':_0x1a6718,'selections':_0x344d53[_0x30e5d1(0x1fc)](_0x242839)}}],_0x49f61b=this[_0x30e5d1(0x152)][_0x30e5d1(0x2c0)](_0x15f287,_0x14c4dd);if(!_0x4a2341(_0x49f61b))throw _0x49f61b[_0x30e5d1(0x328)];const _0x492bc0=(_0x3fb3f9=(_0xccb920=_0x49f61b[_0x30e5d1(0x388)][0x0])==null?void 0x0:_0xccb920[_0x30e5d1(0x16d)])==null?void 0x0:_0x3fb3f9['selections'];if(Array[_0x30e5d1(0x1a0)](_0x492bc0)&&_0x492bc0['length']){if(_0x492bc0[_0x30e5d1(0x22a)]===_0x14c4dd[0x0]['params'][_0x30e5d1(0x401)][_0x30e5d1(0x22a)]&&_0x492bc0[_0x30e5d1(0x352)]((_0x127117,_0x4b8057)=>_0x27110e['equals'](_0x127117[_0x30e5d1(0x2cd)],_0x14c4dd[0x0][_0x30e5d1(0x16d)][_0x30e5d1(0x401)][_0x4b8057]['range'])))return;this[_0x30e5d1(0xdc)]['get'](_0x45f63f)[_0x30e5d1(0x12a)](_0x3f3cc1['id'],{'unitId':_0x2a0c00,'subUnitId':_0x1a6718,'selections':_0x492bc0});}}};Ke=fr([lt(0x0,_0x4dc04f(_0x22396d)),lt(0x1,_0x1c29f3),lt(0x2,_0x9f62da)],Ke);const tt=_0x437a8e('univer-pro.collaboration-client.single-active-unit-service');var Fs=(_0x5b00d6=>(_0x5b00d6[_0x5b00d6[_0x23c7d1(0x316)]=0x0]=_0x23c7d1(0x316),_0x5b00d6[_0x5b00d6[_0x23c7d1(0x8b)]=0x1]='OTHER_CLIENTS_EDITING',_0x5b00d6))(Fs||{});const ls=0x7530,_s=_0x23c7d1(0x1c4);class Sr extends _0x48670f{constructor(){const _0xa459c3=_0x23c7d1;super(),l(this,_0xa459c3(0x133),_0x344d53[_0xa459c3(0x257)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0xa459c3(0x3b9),new Map()),l(this,_0xa459c3(0x299),null),l(this,'_clearOtherTimers',new Map()),l(this,'_unitStatus',new Map()),this[_0xa459c3(0xad)]();}[_0x23c7d1(0x230)](){const _0x14c3fa=_0x23c7d1;super[_0x14c3fa(0x230)](),this[_0x14c3fa(0x11d)][_0x14c3fa(0x28d)]((_0x447815,_0x3151ee)=>this[_0x14c3fa(0x296)](_0x3151ee)),this[_0x14c3fa(0x299)]&&window['clearInterval'](this[_0x14c3fa(0x299)]);}[_0x23c7d1(0x1e1)](_0xa4492f){const _0x428edf=_0x23c7d1;return this[_0x428edf(0x27f)](_0xa4492f)[_0x428edf(0x254)](_0x48ac4f());}[_0x23c7d1(0x29e)](_0x4279fa){const _0x37bfca=_0x23c7d1;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x37bfca(0x27e)](_0x4279fa),this['_send']({'type':0x0,'memberID':this[_0x37bfca(0x133)],'unitIDs':[_0x4279fa],'isForwarded':!0x1});}[_0x23c7d1(0x1f7)](_0x1124e5){const _0xdb6873=_0x23c7d1;this[_0xdb6873(0x207)][_0xdb6873(0xd4)](_0x1124e5),this[_0xdb6873(0x207)][_0xdb6873(0x37a)]===0x0&&this[_0xdb6873(0x299)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x23c7d1(0xad)](){const _0xc00bc1=_0x23c7d1;this[_0xc00bc1(0x216)](_0x546354(_0x1c3647(window,_0xc00bc1(0x323))['subscribe'](_0x30458e=>{const _0xdaf366=_0xc00bc1;if(_0x30458e[_0xdaf366(0x2ef)]!==_s||!_0x30458e['newValue'])return;const _0x49cb48=JSON[_0xdaf366(0x9b)](_0x30458e[_0xdaf366(0x362)]);this['_handleEvent'](_0x49cb48);}))),window[_0xc00bc1(0x297)](_0xc00bc1(0x185),()=>this['_send']({'type':0x1,'memberID':this[_0xc00bc1(0x133)],'unitIDs':Array[_0xc00bc1(0xba)](this[_0xc00bc1(0x207)])}));}[_0x23c7d1(0x2fb)](_0x2d3789){const _0x59fa60=_0x23c7d1;switch(_0x2d3789[_0x59fa60(0x340)]){case 0x0:this[_0x59fa60(0x9d)](_0x2d3789);break;case 0x1:this[_0x59fa60(0xa7)](_0x2d3789);break;case 0x2:this[_0x59fa60(0x15e)](_0x2d3789);break;}}[_0x23c7d1(0x9d)](_0x515070){const _0x5a354c=_0x23c7d1,{unitIDs:_0x5dc33f,memberID:_0x3bfb35,isForwarded:_0x5d08d6}=_0x515070;_0x5dc33f[_0x5a354c(0x28d)](_0x1967cb=>{const _0x2872bd=_0x5a354c;if(!_0x5d08d6&&this[_0x2872bd(0x3b9)][_0x2872bd(0x143)](_0x1967cb)&&this[_0x2872bd(0x27f)](_0x1967cb)[_0x2872bd(0x183)](0x1),!this[_0x2872bd(0x3b9)]['has'](_0x1967cb)||!this[_0x2872bd(0x3b9)][_0x2872bd(0xcc)](_0x1967cb)[_0x2872bd(0x143)](_0x3bfb35)){const _0x46261e=this[_0x2872bd(0x3b9)][_0x2872bd(0xcc)](_0x1967cb)||new Set();_0x46261e[_0x2872bd(0x27e)](_0x3bfb35),this[_0x2872bd(0x3b9)]['set'](_0x1967cb,_0x46261e),this[_0x2872bd(0x2f1)](_0x3bfb35);}}),_0x5d08d6||this[_0x5a354c(0x39b)]({'type':0x0,'memberID':this[_0x5a354c(0x133)],'unitIDs':[...this[_0x5a354c(0x207)]],'isForwarded':!0x0});}[_0x23c7d1(0x2f1)](_0x1b90cb){const _0x5999ff=_0x23c7d1;this[_0x5999ff(0x296)](_0x1b90cb);const _0x45c298=window[_0x5999ff(0x3e2)](()=>{const _0x22b4b8=_0x5999ff;this[_0x22b4b8(0x3b9)]['forEach'](_0x48e3a7=>{const _0x1d91b9=_0x22b4b8;_0x48e3a7[_0x1d91b9(0xd4)](_0x1b90cb);});},ls*0x2);this['_clearOtherTimers'][_0x5999ff(0x2f5)](_0x1b90cb,_0x45c298);}['_removeClearOtherTimer'](_0x44847e){const _0x21bacb=_0x23c7d1;if(this[_0x21bacb(0x11d)][_0x21bacb(0x143)](_0x44847e)){const _0x4d9045=this[_0x21bacb(0x11d)][_0x21bacb(0xcc)](_0x44847e);_0x4d9045&&window[_0x21bacb(0x2f8)](_0x4d9045),this[_0x21bacb(0x11d)]['set'](_0x44847e,null);}}['_handleLeaveEvent'](_0x5862e8){const _0x4e86bf=_0x23c7d1,{memberID:_0xb695f4,unitIDs:_0x21470d}=_0x5862e8;_0x21470d[_0x4e86bf(0x28d)](_0xf690c4=>{const _0x78da98=_0x4e86bf;var _0x34682d;const _0x1c7c21=this[_0x78da98(0x3b9)][_0x78da98(0xcc)](_0xf690c4);_0x1c7c21&&(_0x1c7c21[_0x78da98(0xd4)](_0xb695f4),(_0x34682d=this['_ensureSubject'](_0xf690c4))==null||_0x34682d['next'](_0x1c7c21[_0x78da98(0x37a)]===0x0?0x0:0x1));}),this[_0x4e86bf(0x296)](_0xb695f4);}['_handleHeartbeatEvent'](_0x54a3bf){const _0x159247=_0x23c7d1;this[_0x159247(0x2f1)](_0x54a3bf[_0x159247(0x19f)]);}[_0x23c7d1(0x39b)](_0x18dba1){const _0x3103df=_0x23c7d1;localStorage[_0x3103df(0x271)](_s,JSON['stringify'](_0x18dba1));}[_0x23c7d1(0xce)](){const _0xbfa503=_0x23c7d1;this[_0xbfa503(0x299)]=window[_0xbfa503(0x288)](()=>{const _0x14f53e=_0xbfa503;this[_0x14f53e(0x39b)]({'type':0x2,'memberID':this[_0x14f53e(0x133)]});},ls);}[_0x23c7d1(0x27f)](_0x35d67d){const _0x4d3425=_0x23c7d1;return this[_0x4d3425(0x1d3)]['has'](_0x35d67d)||this[_0x4d3425(0x1d3)][_0x4d3425(0x2f5)](_0x35d67d,new _0x4a4faf(0x0)),this[_0x4d3425(0x1d3)][_0x4d3425(0xcc)](_0x35d67d);}}function Ws(_0x2fb233){let _0x429e0b='';for(const _0x5ca70f of _0x2fb233){const {startOffset:_0x374c25,endOffset:_0xa1a4db,isActive:_0x5da478}=_0x5ca70f;_0x429e0b['length']&&(_0x429e0b+=','),_0x429e0b+=_0x374c25+':'+_0xa1a4db+':'+(_0x5da478?'1':'0');}return _0x429e0b;}function pr(_0x2a0bf0){const _0x5077d6=_0x23c7d1,_0x223dd7=_0x2a0bf0['split'](','),_0x22777e=[];for(const _0x52527d of _0x223dd7){const [_0x12d3ef,_0x54f929,_0x4ed40b]=_0x52527d[_0x5077d6(0x1ab)](':');_0x22777e[_0x5077d6(0x3d1)]({'startOffset':Number(_0x12d3ef),'endOffset':Number(_0x54f929),'collapsed':_0x12d3ef===_0x54f929,'isActive':_0x4ed40b==='1'});}return _0x22777e[_0x5077d6(0x330)](_0x27ccb7=>_0x27ccb7[_0x5077d6(0x220)])||(_0x22777e[0x0][_0x5077d6(0x220)]=!0x0),_0x22777e;}class Ft extends _0x55967c{constructor(){const _0x26b142=_0x23c7d1;super(...arguments),l(this,_0x26b142(0xae),new _0x4a4faf(null)),l(this,_0x26b142(0x400),this['_collabCursorState$'][_0x26b142(0x303)]());}['syncEditingCollabCursor'](_0x37b1a9){const _0x3fe30e=_0x23c7d1,{unitID:_0x425a25,memberID:_0x394a9a,textRanges:_0x4fc2c3}=_0x37b1a9,_0x381976=Ws(_0x4fc2c3),_0x368315={'unitID':_0x425a25,'memberID':_0x394a9a,'selection':_0x381976};this[_0x3fe30e(0xae)][_0x3fe30e(0x183)](_0x368315);}}var vr=Object[_0x23c7d1(0x252)],Ir=Object['getOwnPropertyDescriptor'],Er=(_0x3f2f89,_0x2a1468,_0x3491f7,_0x1ad810)=>{for(var _0x14d730=_0x1ad810>0x1?void 0x0:_0x1ad810?Ir(_0x2a1468,_0x3491f7):_0x2a1468,_0x1d2c20=_0x3f2f89['length']-0x1,_0x26e85b;_0x1d2c20>=0x0;_0x1d2c20--)(_0x26e85b=_0x3f2f89[_0x1d2c20])&&(_0x14d730=(_0x1ad810?_0x26e85b(_0x2a1468,_0x3491f7,_0x14d730):_0x26e85b(_0x14d730))||_0x14d730);return _0x1ad810&&_0x14d730&&vr(_0x2a1468,_0x3491f7,_0x14d730),_0x14d730;},us=(_0x1db6dd,_0x31b4a5)=>(_0x22e448,_0x402cb8)=>_0x31b4a5(_0x22e448,_0x402cb8,_0x1db6dd);let Xe=class{constructor(_0x6f08b5,_0x1a39e1){const _0x45ce3e=_0x23c7d1;this['_injector']=_0x6f08b5,this[_0x45ce3e(0x152)]=_0x1a39e1;}['transformSelections'](_0x58dadf){const _0x421eeb=_0x23c7d1;var _0x22b137;const _0x6eae1b=this[_0x421eeb(0xdc)][_0x421eeb(0xcc)](_0xd815b9),_0x2857c6=(_0x22b137=_0x6eae1b[_0x421eeb(0x171)]())!=null?_0x22b137:[];if(_0x2857c6[_0x421eeb(0x22a)]===0x0)return;const _0x1adc79=[{'id':_0x421eeb(0x28e),'params':{'unitId':_0x58dadf['unitID'],'actions':null,'textRanges':_0x2857c6}}],_0x3d8c45=this[_0x421eeb(0x152)]['transformMutationsWithChangeset'](_0x58dadf,_0x1adc79);if(!_0x4a2341(_0x3d8c45))throw _0x3d8c45[_0x421eeb(0x328)];const _0x4ed8f3=_0x3d8c45[_0x421eeb(0x388)][0x0][_0x421eeb(0x16d)]['textRanges'];Array['isArray'](_0x4ed8f3)&&_0x4ed8f3[_0x421eeb(0x22a)]&&_0x6eae1b[_0x421eeb(0x21e)](_0x4ed8f3,!0x1);}};Xe=Er([us(0x0,_0x4dc04f(_0x22396d)),us(0x1,_0x1c29f3)],Xe);const Cr=new Set([_0x105f97['id']]);function ds(_0x3dbd62,_0x156a27,_0x60c807,_0x536176,_0x3258be){const _0x23bf3b=_0x23c7d1;var _0x3e3fb7,_0x57eb90,_0x5370b3,_0x4947f0;const _0x54f90d=[];for(const _0x47f8c5 of _0x3dbd62)if(Cr[_0x23bf3b(0x143)](_0x47f8c5['id'])){if(_0x54f90d[_0x23bf3b(0x22a)]>0x0)break;_0x54f90d[_0x23bf3b(0x3d1)](_0x47f8c5);break;}else _0x54f90d[_0x23bf3b(0x3d1)](_0x47f8c5);const _0x311a31=(_0x57eb90=(_0x3e3fb7=_0x3258be[_0x23bf3b(0x144)]())==null?void 0x0:_0x3e3fb7[_0x23bf3b(0x19d)])!=null?_0x57eb90:_0x23bf3b(0x119),_0x2f3cb3=(_0x4947f0=(_0x5370b3=_0x3258be[_0x23bf3b(0x144)]())==null?void 0x0:_0x5370b3[_0x23bf3b(0x19f)])!=null?_0x4947f0:_0x23bf3b(0x119);return{'changeset':{'unitID':_0x156a27,'type':_0x51595f(_0x60c807[_0x23bf3b(0x1d0)](_0x156a27)),'baseRev':_0x536176[_0x23bf3b(0x17d)](_0x156a27),'revision':0x0,'userID':_0x311a31,'memberID':_0x2f3cb3,'mutations':_0x54f90d},'pendingMutations':_0x3dbd62[_0x23bf3b(0xf8)](_0x54f90d[_0x23bf3b(0x22a)])};}function br(_0x3b6266,_0x58570e,_0x2c2766,_0xe8929d,_0x354dae){const _0x63d7cc=_0x23c7d1;var _0x35d212,_0x60a8d4,_0x4830df,_0x1b6dbb;const _0x3ca2b6=[_0x3b6266[_0x63d7cc(0x128)]((_0x38df95,_0x556ea0)=>{const _0x10420a=_0x63d7cc;var _0xcd6f1d;const {id:_0x1e2f63}=_0x38df95,{id:_0x56b22c,type:_0xfb179f}=_0x556ea0,_0x215705=(_0xcd6f1d=_0x38df95[_0x10420a(0x16d)])!=null?_0xcd6f1d:{'actions':null},_0x159e42=_0x556ea0[_0x10420a(0x16d)];if(_0x1e2f63&&_0x1e2f63!==_0x56b22c)throw new Error(_0x10420a(0x181)+_0x1e2f63+_0x10420a(0x3d2)+_0x56b22c+'.');return{..._0x38df95,'id':_0x56b22c,'type':_0xfb179f,'params':{'unitId':_0x159e42[_0x10420a(0x2f2)],'textRanges':_0x159e42[_0x10420a(0x36b)],'actions':_0x5577d7[_0x10420a(0x2bd)](_0x215705['actions'],_0x159e42[_0x10420a(0x1c0)])}};},{})],_0x111cbc=(_0x60a8d4=(_0x35d212=_0x354dae[_0x63d7cc(0x144)]())==null?void 0x0:_0x35d212[_0x63d7cc(0x19d)])!=null?_0x60a8d4:_0x63d7cc(0x119),_0x538171=(_0x1b6dbb=(_0x4830df=_0x354dae[_0x63d7cc(0x144)]())==null?void 0x0:_0x4830df[_0x63d7cc(0x19f)])!=null?_0x1b6dbb:'unknown';return{'changeset':{'unitID':_0x58570e,'type':_0x51595f(_0x2c2766['getUnitType'](_0x58570e)),'baseRev':_0xe8929d[_0x63d7cc(0x17d)](_0x58570e),'revision':0x0,'userID':_0x111cbc,'memberID':_0x538171,'mutations':_0x3ca2b6},'pendingMutations':[]};}function Gs(_0x172d83,_0xa8cfc7){const _0x5ac17b=_0x23c7d1,_0x83f2f5=new _0x4bcbbe(0x1);return setTimeout(()=>_0x83f2f5[_0x5ac17b(0x183)](_0xa8cfc7),_0x172d83),_0x83f2f5[_0x5ac17b(0x303)]()[_0x5ac17b(0x254)](_0xf57bcd(0x1));}const Tr={'id':_0x3fb9fa['id'],'type':_0x1e1816[_0x23c7d1(0x1d5)],'params':{}};var Rr=Object[_0x23c7d1(0x252)],Or=Object['getOwnPropertyDescriptor'],_e=(_0x456a9f,_0x196b7e,_0xa88e69,_0x3e6b41)=>{const _0x4739fe=_0x23c7d1;for(var _0x56d1ea=_0x3e6b41>0x1?void 0x0:_0x3e6b41?Or(_0x196b7e,_0xa88e69):_0x196b7e,_0xc8527d=_0x456a9f[_0x4739fe(0x22a)]-0x1,_0x5d524f;_0xc8527d>=0x0;_0xc8527d--)(_0x5d524f=_0x456a9f[_0xc8527d])&&(_0x56d1ea=(_0x3e6b41?_0x5d524f(_0x196b7e,_0xa88e69,_0x56d1ea):_0x5d524f(_0x56d1ea))||_0x56d1ea);return _0x3e6b41&&_0x56d1ea&&Rr(_0x196b7e,_0xa88e69,_0x56d1ea),_0x56d1ea;},f=(_0x47a862,_0x33e75b)=>(_0x55d58e,_0x3c657f)=>_0x33e75b(_0x55d58e,_0x3c657f,_0x47a862),P=(_0x4b20d7=>(_0x4b20d7[_0x23c7d1(0x1e5)]='not_collab',_0x4b20d7['SYNCED']=_0x23c7d1(0xe8),_0x4b20d7[_0x23c7d1(0x1a3)]=_0x23c7d1(0x3bc),_0x4b20d7[_0x23c7d1(0x151)]=_0x23c7d1(0x327),_0x4b20d7[_0x23c7d1(0x20b)]=_0x23c7d1(0x3a2),_0x4b20d7[_0x23c7d1(0x2d1)]='fetch_missing',_0x4b20d7[_0x23c7d1(0x322)]=_0x23c7d1(0x36d),_0x4b20d7[_0x23c7d1(0x346)]='offline',_0x4b20d7))(P||{});const Ys=0xea60;class ue{constructor(_0x44322e,_0x393e79,_0x3f367c,_0x7330be,_0x51234f,_0x5a3b3,_0x2ff3a5,_0x310c2d,_0x45524c){const _0x319b6d=_0x23c7d1;l(this,_0x319b6d(0x37e),null),l(this,_0x319b6d(0x3eb),[]),(this[_0x319b6d(0x347)]=_0x44322e,this[_0x319b6d(0x340)]=_0x393e79,this[_0x319b6d(0x310)]=_0x51234f,this['_commandService']=_0x5a3b3,this[_0x319b6d(0xd8)]=_0x2ff3a5,this['_revisionService']=_0x310c2d,this[_0x319b6d(0x2ee)]=_0x45524c,this[_0x319b6d(0x37e)]=_0x3f367c,this[_0x319b6d(0x3eb)]=_0x7330be);}['_checkMissing'](_0xf26a9d){const _0xa3aad4=_0x23c7d1,_0x167e4d=this['_revisionService']['getCurrentRevOfUnit'](this[_0xa3aad4(0x347)]);return _0xf26a9d[_0xa3aad4(0xc9)]>_0x167e4d+0x1?(this[_0xa3aad4(0x310)][_0xa3aad4(0x236)]({'from':_0x167e4d,'to':_0xf26a9d[_0xa3aad4(0xc9)]-0x1}),!0x0):!0x1;}[_0x23c7d1(0x34b)](_0x31d9b0){this['_undoRedoService']['transformUndoRedo'](this['unitID'],_0x31d9b0);}['_transformSelections'](_0x1d508d){const _0x5e21ba=_0x23c7d1;var _0x5f9ce4,_0x4c3ae6;(_0x4c3ae6=(_0x5f9ce4=this[_0x5e21ba(0x310)])['onTransformSelections'])==null||_0x4c3ae6[_0x5e21ba(0x385)](_0x5f9ce4,_0x1d508d);}[_0x23c7d1(0x298)](_0x399b55){const _0x687a3e=_0x23c7d1;var _0x79fb6c,_0x1e66a9;return(_0x1e66a9=(_0x79fb6c=this[_0x687a3e(0x310)])[_0x687a3e(0x2d0)])==null?void 0x0:_0x1e66a9[_0x687a3e(0x385)](_0x79fb6c,_0x399b55);}['_transformRemoteChangesetByIMECache'](_0x4c5ec2){const _0x1aa080=_0x23c7d1;var _0xc4d69c,_0x29c8f6,_0x563728;return(_0x563728=(_0x29c8f6=(_0xc4d69c=this[_0x1aa080(0x310)])[_0x1aa080(0x18e)])==null?void 0x0:_0x29c8f6[_0x1aa080(0x385)](_0xc4d69c,_0x4c5ec2))!=null?_0x563728:_0x4c5ec2;}['_syncEditingCollabCursor'](_0x4e0d6a){const _0x41bace=_0x23c7d1;var _0xdf5e4b,_0x3997a2;if(this[_0x41bace(0x340)]===k[_0x41bace(0x195)]){const {unitID:_0x575d7e,mutations:_0x105d92,memberID:_0x531c66}=_0x4e0d6a,_0x389a69=_0x105d92[0x0][_0x41bace(0x16d)][_0x41bace(0x36b)];Array[_0x41bace(0x1a0)](_0x389a69)&&_0x389a69[_0x41bace(0x22a)]>0x0&&((_0x3997a2=(_0xdf5e4b=this[_0x41bace(0x310)])[_0x41bace(0x1e2)])==null||_0x3997a2[_0x41bace(0x385)](_0xdf5e4b,{'unitID':_0x575d7e,'memberID':_0x531c66,'textRanges':_0x389a69}));}}[_0x23c7d1(0x134)](){const _0x5cca2e=_0x23c7d1;this[_0x5cca2e(0x2ee)][_0x5cca2e(0x209)](this['unitID'],this['type'],this[_0x5cca2e(0x37e)],this[_0x5cca2e(0x3eb)]);}[_0x23c7d1(0x206)](){const _0x1d494e=_0x23c7d1;return this[_0x1d494e(0x175)][_0x1d494e(0x17d)](this[_0x1d494e(0x347)]);}[_0x23c7d1(0x182)](){const _0x591ae0=_0x23c7d1;this[_0x591ae0(0x175)][_0x591ae0(0x112)](this[_0x591ae0(0x347)]);}['_executeRemoteChangeset'](_0x224df1){const _0x5352dd=_0x23c7d1;var _0x505ddd;const _0x30946f=this['_transformRemoteChangesetByIMECache'](_0x224df1),_0xab96be=_0x39a28b(_0x30946f[_0x5352dd(0x2aa)],this[_0x5352dd(0x309)],{'fromCollab':!0x0});if(!_0xab96be[_0x5352dd(0x1b5)])throw _0xab96be[_0x5352dd(0x328)]instanceof Error?_0xab96be['error']:new Error((_0x505ddd=_0xab96be['error'])!=null?_0x505ddd:_0x5352dd(0x263));this[_0x5352dd(0x298)](_0x30946f),this[_0x5352dd(0x34b)](_0x224df1),this[_0x5352dd(0x85)](_0x30946f),this[_0x5352dd(0x33a)](_0x30946f),this[_0x5352dd(0x182)]();}}let pe=class extends ue{constructor(_0x196f6e,_0xd38f7b,_0x554e92,_0x3f9371,_0x4fe27b,_0x578f20,_0x4406ca,_0x42350c,_0x4a983e,_0x4695d8){const _0x3d3cd1=_0x23c7d1;super(_0x196f6e,_0xd38f7b,null,[],_0x554e92,_0x42350c,_0x4406ca,_0x3f9371,_0x4fe27b),l(this,'status','synced'),(this['_injector']=_0x578f20,this[_0x3d3cd1(0x3e3)]=_0x4a983e,this[_0x3d3cd1(0x152)]=_0x4695d8);}[_0x23c7d1(0x18d)](_0xe288a6){const _0xa5f6ba=_0x23c7d1,_0x4134bd=this[_0xa5f6ba(0xdc)][_0xa5f6ba(0x1c8)](X,this['unitID'],this[_0xa5f6ba(0x340)],[_0xe288a6],this['_handler']);return _0x4134bd[_0xa5f6ba(0xd2)](),_0x4134bd[_0xa5f6ba(0x134)](),_0x4134bd;}[_0x23c7d1(0x10a)](_0x2210c2){const _0x35cc06=_0x23c7d1;if(this[_0x35cc06(0x313)](_0x2210c2))return this[_0x35cc06(0xdc)][_0x35cc06(0x1c8)](B,this[_0x35cc06(0x347)],this['type'],null,[],null,[_0x2210c2],this[_0x35cc06(0x310)]);try{const _0x40a31e=this[_0x35cc06(0x152)][_0x35cc06(0x2c0)](_0x2210c2,[Tr]);if(_0x4a2341(_0x40a31e)){const {c1Prime:_0x2c3dc2}=_0x40a31e;return this[_0x35cc06(0x19e)](_0x2c3dc2),this;}throw _0x40a31e[_0x35cc06(0x328)];}catch(_0x5aaa3e){return this[_0x35cc06(0x3e3)][_0x35cc06(0x328)](_0x5aaa3e),this[_0x35cc06(0x245)](!0x1);}}[_0x23c7d1(0x245)](_0x545c54){const _0x39a892=_0x23c7d1;return this[_0x39a892(0xdc)][_0x39a892(0x1c8)](ee,this[_0x39a892(0x347)],this[_0x39a892(0x340)],null,[],this[_0x39a892(0x310)],_0x545c54);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x23c7d1(0x2e9)](){return this;}[_0x23c7d1(0x25d)](){const _0x4ab63d=_0x23c7d1;return this[_0x4ab63d(0xdc)][_0x4ab63d(0x1c8)](te,this[_0x4ab63d(0x347)],this[_0x4ab63d(0x340)],null,[],this[_0x4ab63d(0x310)]);}[_0x23c7d1(0x398)](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x23c7d1(0x2bf)](){const _0x3b99e9=_0x23c7d1,_0x22a206=this[_0x3b99e9(0x175)][_0x3b99e9(0x17d)](this[_0x3b99e9(0x347)]);return this['_handler'][_0x3b99e9(0x236)]({'from':_0x22a206,'to':0x0}),this[_0x3b99e9(0xdc)]['createInstance'](B,this[_0x3b99e9(0x347)],this['type'],null,[],null,[],this[_0x3b99e9(0x310)]);}};pe=_e([f(0x3,_0x4dc04f(_0x2fb629)),f(0x4,_0x4dc04f(w)),f(0x5,_0x4dc04f(_0x22396d)),f(0x6,_0x13d877),f(0x7,_0x45f63f),f(0x8,_0x20dcfc),f(0x9,_0x1c29f3)],pe);let X=class extends ue{constructor(_0x5218b4,_0x585935,_0x27de50,_0x2597c3,_0x2cf9fe,_0x53d5f0,_0x24f6bd,_0x32edc2,_0x3095cc,_0x392435,_0x4b735c,_0x4a08ed,_0x2b85a3,_0x2b2663){const _0xeb76be=_0x23c7d1;super(_0x5218b4,_0x585935,null,_0x27de50,_0x2597c3,_0x392435,_0x2b2663,_0x53d5f0,_0x24f6bd),l(this,'status','pending'),l(this,_0xeb76be(0x2b7),null),l(this,_0xeb76be(0x219),null),(this['_injector']=_0x2cf9fe,this[_0xeb76be(0x2da)]=_0x32edc2,this[_0xeb76be(0x3e3)]=_0x3095cc,this[_0xeb76be(0x3c0)]=_0x4b735c,this['_transformService']=_0x4a08ed,this['_univerInstanceService']=_0x2b85a3);}['appendMutation'](_0x2a4195){const _0x5ef1db=_0x23c7d1;return this[_0x5ef1db(0x3eb)][_0x5ef1db(0x3d1)](_0x2a4195),this[_0x5ef1db(0x134)](),this;}[_0x23c7d1(0x10a)](_0x4f86e9){const _0x153c74=_0x23c7d1;if(this['_checkMissing'](_0x4f86e9))return this[_0x153c74(0x124)](),this[_0x153c74(0xdc)][_0x153c74(0x1c8)](B,this[_0x153c74(0x347)],this[_0x153c74(0x340)],null,this[_0x153c74(0x3eb)],null,[_0x4f86e9],this[_0x153c74(0x310)]);try{const _0x40401b=this[_0x153c74(0x152)]['transformMutationsWithChangeset'](_0x4f86e9,this['_pendingMutations']);if(_0x4a2341(_0x40401b)){const {c1Prime:_0x36fccb,m2Prime:_0x1220ce}=_0x40401b;this['_executeRemoteChangeset'](_0x36fccb);const _0x40750b=this['_injector'][_0x153c74(0x1c8)](X,this[_0x153c74(0x347)],this[_0x153c74(0x340)],_0x1220ce,this[_0x153c74(0x310)]);return this[_0x153c74(0x124)](),_0x40750b[_0x153c74(0xd2)](this['_scheduleTimestamp']?Math[_0x153c74(0x368)](0x0,new Date()['getTime']()-this[_0x153c74(0x2b7)]):this['_getSendChangesetTimeout']()),_0x40750b;}throw _0x40401b[_0x153c74(0x328)];}catch(_0x54ae62){return this[_0x153c74(0x3e3)][_0x153c74(0x328)](_0x54ae62),this[_0x153c74(0x245)](!0x1);}}[_0x23c7d1(0x12c)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x4d03ff=_0x23c7d1;throw new Error(_0x4d03ff(0x1d6));}[_0x23c7d1(0x2e9)](){return this;}[_0x23c7d1(0x25d)](){const _0x2783b3=_0x23c7d1;return this[_0x2783b3(0x124)](),this[_0x2783b3(0xdc)]['createInstance'](te,this[_0x2783b3(0x347)],this[_0x2783b3(0x340)],null,this[_0x2783b3(0x3eb)],this[_0x2783b3(0x310)]);}[_0x23c7d1(0x398)](){return this;}['_schedule'](_0x1968cf){const _0x4639f5=_0x23c7d1,_0x86c445=_0x1968cf!=null?_0x1968cf:this[_0x4639f5(0x118)]();this[_0x4639f5(0x2b7)]=new Date()[_0x4639f5(0x11a)](),this['_sendingTimer']=window[_0x4639f5(0x3e2)](()=>{const _0x4147e5=_0x4639f5;this['_clearScheduledTask']();let _0x3d0e6d=null;switch(this['type']){case k[_0x4147e5(0x3de)]:{_0x3d0e6d=ds(this[_0x4147e5(0x3eb)],this[_0x4147e5(0x347)],this[_0x4147e5(0x21f)],this[_0x4147e5(0x175)],this[_0x4147e5(0x2da)]);break;}case k[_0x4147e5(0x195)]:{this[_0x4147e5(0x3eb)][_0x4147e5(0x352)](_0x26e0f8=>_0x26e0f8['id']===_0x1cda85['id'])?_0x3d0e6d=br(this['_pendingMutations'],this['unitID'],this[_0x4147e5(0x21f)],this[_0x4147e5(0x175)],this['_memberService']):_0x3d0e6d=ds(this[_0x4147e5(0x3eb)],this[_0x4147e5(0x347)],this['_univerInstanceService'],this[_0x4147e5(0x175)],this[_0x4147e5(0x2da)]);break;}default:throw new Error(_0x4147e5(0x165)+this['type']+_0x4147e5(0x27c));}const {changeset:_0x131dbe,pendingMutations:_0x418be8}=_0x3d0e6d;this['_handler'][_0x4147e5(0x1f9)](_0x131dbe);const _0x30800d=_0x418be8[_0x4147e5(0x22a)]?this[_0x4147e5(0xdc)][_0x4147e5(0x1c8)](q,this['unitID'],this[_0x4147e5(0x340)],_0x131dbe,_0x418be8,this['_handler'],void 0x0):this[_0x4147e5(0xdc)][_0x4147e5(0x1c8)](Q,this[_0x4147e5(0x347)],this[_0x4147e5(0x340)],_0x131dbe,this[_0x4147e5(0x310)]);_0x30800d[_0x4147e5(0x134)](),this[_0x4147e5(0x310)][_0x4147e5(0x2e7)](this,_0x30800d);},_0x86c445);}[_0x23c7d1(0x118)](){const _0x2634dd=_0x23c7d1;var _0x42a0fe;const _0x11b3c8=this['_configService'][_0x2634dd(0x30d)]($);return(_0x42a0fe=_0x11b3c8==null?void 0x0:_0x11b3c8['sendChangesetTimeout'])!=null?_0x42a0fe:bn;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x47b9fc=_0x23c7d1;this['_sendingTimer']!=null&&(clearTimeout(this[_0x47b9fc(0x219)]),this[_0x47b9fc(0x219)]=null);}[_0x23c7d1(0x245)](_0x30a6b6){const _0x3609c4=_0x23c7d1;return this[_0x3609c4(0x124)](),this[_0x3609c4(0xdc)][_0x3609c4(0x1c8)](ee,this['unitID'],this[_0x3609c4(0x340)],null,this[_0x3609c4(0x3eb)],this[_0x3609c4(0x310)],_0x30a6b6);}};X=_e([f(0x4,_0x4dc04f(_0x22396d)),f(0x5,_0x4dc04f(_0x2fb629)),f(0x6,_0x4dc04f(w)),f(0x7,_0x4dc04f(ce)),f(0x8,_0x20dcfc),f(0x9,_0x45f63f),f(0xa,_0x5ae707),f(0xb,_0x1c29f3),f(0xc,_0x9f62da),f(0xd,_0x13d877)],X);let Q=class extends ue{constructor(_0x1f7194,_0x294189,_0x309904,_0x5ee550,_0x5395f0,_0x5cd0aa,_0xaec26b,_0x337bfc,_0x29880a,_0x3f7096,_0x5ae47c){const _0x2b5891=_0x23c7d1;super(_0x1f7194,_0x294189,_0x309904,[],_0x5ee550,_0x337bfc,_0x5ae47c,_0x5cd0aa,_0xaec26b),l(this,_0x2b5891(0x371),_0x2b5891(0x327)),l(this,'_resendTimeout',0x0),l(this,_0x2b5891(0x108)),l(this,_0x2b5891(0x17a)),(this[_0x2b5891(0xdc)]=_0x5395f0,this['_logService']=_0x29880a,this[_0x2b5891(0x152)]=_0x3f7096);}[_0x23c7d1(0x18d)](_0x45b10e){const _0x3fccf9=_0x23c7d1;this[_0x3fccf9(0x124)]();const _0x2524d9=this[_0x3fccf9(0xdc)][_0x3fccf9(0x1c8)](q,this['unitID'],this['type'],this[_0x3fccf9(0x37e)],[_0x45b10e],this[_0x3fccf9(0x310)],this['_resendTimer']);return _0x2524d9[_0x3fccf9(0x134)](),_0x2524d9;}[_0x23c7d1(0x10a)](_0x2015b0){const _0xc44d0c=_0x23c7d1;if(this[_0xc44d0c(0x313)](_0x2015b0))return this['_clearScheduledTask'](),this[_0xc44d0c(0xdc)][_0xc44d0c(0x1c8)](B,this[_0xc44d0c(0x347)],this[_0xc44d0c(0x340)],this[_0xc44d0c(0x37e)],[],null,[_0x2015b0],this[_0xc44d0c(0x310)]);try{const _0x2645e4=this[_0xc44d0c(0x152)][_0xc44d0c(0x334)]([_0x2015b0],[this[_0xc44d0c(0x37e)]],!0x1);if(_0x275c76(_0x2645e4)){const {c1Prime:_0x169fa1,c2Prime:_0x285219}=_0x2645e4;this[_0xc44d0c(0x19e)](_0x169fa1[0x0]),_0x285219[0x0][_0xc44d0c(0xfd)]=this[_0xc44d0c(0x206)](),this[_0xc44d0c(0x124)]();const _0x492d50=this[_0xc44d0c(0xdc)][_0xc44d0c(0x1c8)](Q,this['unitID'],this[_0xc44d0c(0x340)],_0x285219[0x0],this[_0xc44d0c(0x310)]);return _0x492d50[_0xc44d0c(0x134)](),_0x492d50;}return this[_0xc44d0c(0x245)](!0x1);}catch(_0x42b8e9){return this['_logService'][_0xc44d0c(0x328)](_0x42b8e9),this['_onConflict'](!0x1);}}[_0x23c7d1(0x12c)](_0x34c0bb){const _0x35b990=_0x23c7d1;this[_0x35b990(0x124)]();const _0x5d974d=this[_0x35b990(0x175)][_0x35b990(0x17d)](this[_0x35b990(0x347)]);if(_0x34c0bb[_0x35b990(0xc9)]<_0x5d974d-0x1)return this;if(this[_0x35b990(0x313)](_0x34c0bb))return this[_0x35b990(0xdc)]['createInstance'](B,this[_0x35b990(0x347)],this[_0x35b990(0x340)],null,[],this[_0x35b990(0x37e)],[],this[_0x35b990(0x310)]);this['_incrementRevisionNumber']();const _0x3b35b5=this[_0x35b990(0xdc)][_0x35b990(0x1c8)](pe,this[_0x35b990(0x347)],this[_0x35b990(0x340)],this[_0x35b990(0x310)]);return _0x3b35b5['_updateLocalCache'](),_0x3b35b5;}[_0x23c7d1(0x300)](_0x3a1c6d){const _0x5d6abe=_0x23c7d1;return this[_0x5d6abe(0x245)](!!(_0x3a1c6d!=null&&_0x3a1c6d[_0x5d6abe(0x1b4)]));}[_0x23c7d1(0x2e9)](_0xb35dd2){const _0x1b6a98=_0x23c7d1;return this[_0x1b6a98(0x350)]>Ys?this['toggleOffline']():(this['_resendTimer']=Gs(this[_0x1b6a98(0x350)],{'timeout':this[_0x1b6a98(0x350)],'reqId':_0xb35dd2['reqId']}),this[_0x1b6a98(0x17a)]=this[_0x1b6a98(0x108)][_0x1b6a98(0x7f)](({reqId:_0x50ae1c,timeout:_0x5961dd})=>{const _0x3c8062=_0x1b6a98;this[_0x3c8062(0x3b7)](_0x50ae1c,_0x5961dd);}),this);}[_0x23c7d1(0x25d)](){const _0x3fc465=_0x23c7d1;return this[_0x3fc465(0x124)](),this[_0x3fc465(0xdc)][_0x3fc465(0x1c8)](te,this['unitID'],this[_0x3fc465(0x340)],this[_0x3fc465(0x37e)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x23c7d1(0x2b4)](){const _0x394a77=_0x23c7d1;this[_0x394a77(0x310)][_0x394a77(0x1f9)](this['_awaitingChangeset']);}[_0x23c7d1(0x245)](_0x322beb){const _0x454203=_0x23c7d1;return this['_clearScheduledTask'](),this[_0x454203(0xdc)][_0x454203(0x1c8)](ee,this[_0x454203(0x347)],this[_0x454203(0x340)],this[_0x454203(0x37e)],[],this[_0x454203(0x310)],_0x322beb);}[_0x23c7d1(0x3b7)](_0xcb1ab0,_0x3c2149){const _0x440738=_0x23c7d1;var _0x3551d0;_0xcb1ab0===((_0x3551d0=this[_0x440738(0x37e)])==null?void 0x0:_0x3551d0['reqId'])&&(this[_0x440738(0x2b4)](),this[_0x440738(0x350)]=_0x3c2149===0x0?0x3e8:_0x3c2149*0x2);}[_0x23c7d1(0x124)](){const _0x5a603b=_0x23c7d1;var _0x5d9112;(_0x5d9112=this[_0x5a603b(0x17a)])==null||_0x5d9112[_0x5a603b(0x31f)](),this[_0x5a603b(0x350)]=0x0;}};Q=_e([f(0x4,_0x4dc04f(_0x22396d)),f(0x5,_0x4dc04f(_0x2fb629)),f(0x6,_0x4dc04f(w)),f(0x7,_0x45f63f),f(0x8,_0x20dcfc),f(0x9,_0x1c29f3),f(0xa,_0x13d877)],Q);let q=class extends ue{constructor(_0x211658,_0x52fec4,_0x59cae8,_0x2b1be6,_0x3121f8,_0x54ed83,_0x108aec,_0x4ae88c,_0x4d9bcf,_0x23c53f,_0x4ead75,_0x2e3098,_0x22c4a5){const _0x38c7ef=_0x23c7d1;super(_0x211658,_0x52fec4,_0x59cae8,_0x2b1be6,_0x3121f8,_0x23c53f,_0x22c4a5,_0x4ae88c,_0x4d9bcf),l(this,_0x38c7ef(0x371),'awaiting_with_pending'),l(this,_0x38c7ef(0x350),0x0),l(this,_0x38c7ef(0x108)),l(this,'_sender'),(this[_0x38c7ef(0xdc)]=_0x108aec,this['_logService']=_0x4ead75,this[_0x38c7ef(0x152)]=_0x2e3098,_0x54ed83&&(this['_resendTimer']=_0x54ed83,this[_0x38c7ef(0x17a)]=this['_resendTimer']['subscribe'](({reqId:_0xb219ba,timeout:_0x5aa07b})=>{const _0x563b49=_0x38c7ef;this[_0x563b49(0x3b7)](_0xb219ba,_0x5aa07b);})));}[_0x23c7d1(0x18d)](_0x4f42ce){return this['_pendingMutations']['push'](_0x4f42ce),this;}[_0x23c7d1(0x10a)](_0x29ba2e){const _0x5bae1c=_0x23c7d1;if(this[_0x5bae1c(0x313)](_0x29ba2e))return this[_0x5bae1c(0x124)](),this[_0x5bae1c(0xdc)][_0x5bae1c(0x1c8)](B,this[_0x5bae1c(0x347)],this['type'],this[_0x5bae1c(0x37e)],this[_0x5bae1c(0x3eb)],null,[_0x29ba2e],this[_0x5bae1c(0x310)]);try{const _0x3f1531=this[_0x5bae1c(0x152)][_0x5bae1c(0x334)]([_0x29ba2e],[this[_0x5bae1c(0x37e)]],!0x1);if(_0x275c76(_0x3f1531)){const {c1Prime:_0x262da1,c2Prime:_0x40d598}=_0x3f1531,_0x3fd40a=this[_0x5bae1c(0x152)][_0x5bae1c(0x2c0)](_0x262da1[0x0],this[_0x5bae1c(0x3eb)]);if(_0x4a2341(_0x3fd40a)){const {c1Prime:_0x17f3f3,m2Prime:_0x52717f}=_0x3fd40a;return this['_executeRemoteChangeset'](_0x17f3f3),_0x40d598[0x0][_0x5bae1c(0xfd)]=this[_0x5bae1c(0x206)](),this[_0x5bae1c(0x124)](),this[_0x5bae1c(0xdc)][_0x5bae1c(0x1c8)](q,this[_0x5bae1c(0x347)],this[_0x5bae1c(0x340)],_0x40d598[0x0],_0x52717f,this[_0x5bae1c(0x310)],void 0x0);}throw _0x3fd40a[_0x5bae1c(0x328)];}throw _0x3f1531[_0x5bae1c(0x328)];}catch(_0x275832){return this['_logService'][_0x5bae1c(0x328)](_0x275832),this[_0x5bae1c(0x245)](!0x1);}}[_0x23c7d1(0x12c)](_0x506207){const _0x569b36=_0x23c7d1;if(this[_0x569b36(0x124)](),this[_0x569b36(0x313)](_0x506207))return this[_0x569b36(0xdc)]['createInstance'](B,this[_0x569b36(0x347)],this[_0x569b36(0x340)],null,this['_pendingMutations'],this[_0x569b36(0x37e)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x202d86=this[_0x569b36(0xdc)][_0x569b36(0x1c8)](X,this['unitID'],this[_0x569b36(0x340)],this[_0x569b36(0x3eb)],this[_0x569b36(0x310)]);return _0x202d86[_0x569b36(0xd2)](),_0x202d86[_0x569b36(0x134)](),_0x202d86;}[_0x23c7d1(0x300)](_0x4c62ad){const _0xd0cb5b=_0x23c7d1;return this[_0xd0cb5b(0x245)](!!(_0x4c62ad!=null&&_0x4c62ad[_0xd0cb5b(0x1b4)]));}['onRemoteRetry'](_0x205ebc){const _0x44f185=_0x23c7d1;return this[_0x44f185(0x350)]>Ys?this[_0x44f185(0x25d)]():(this[_0x44f185(0x108)]=Gs(this[_0x44f185(0x350)],{'timeout':this['_resendTimeout'],'reqId':_0x205ebc[_0x44f185(0x345)]}),this[_0x44f185(0x17a)]=this['_resendTimer'][_0x44f185(0x7f)](({reqId:_0x537de8,timeout:_0x13b147})=>{const _0x19c6e0=_0x44f185;this[_0x19c6e0(0x3b7)](_0x537de8,_0x13b147);}),this);}['toggleOffline'](){const _0x213396=_0x23c7d1;return this[_0x213396(0x124)](),this[_0x213396(0xdc)]['createInstance'](te,this[_0x213396(0x347)],this[_0x213396(0x340)],this[_0x213396(0x37e)],this[_0x213396(0x3eb)],this[_0x213396(0x310)]);}[_0x23c7d1(0x398)](){return this;}[_0x23c7d1(0x2b4)](){const _0x777bc0=_0x23c7d1;this[_0x777bc0(0x310)][_0x777bc0(0x1f9)](this[_0x777bc0(0x37e)]);}[_0x23c7d1(0x245)](_0x517555){const _0x345a61=_0x23c7d1;return this[_0x345a61(0x124)](),this['_injector']['createInstance'](ee,this['unitID'],this[_0x345a61(0x340)],null,this[_0x345a61(0x3eb)],this[_0x345a61(0x310)],_0x517555);}['_resendWithTimeout'](_0x2bca7b,_0x130466){const _0x58d16b=_0x23c7d1;var _0x1107c4;_0x2bca7b===((_0x1107c4=this[_0x58d16b(0x37e)])==null?void 0x0:_0x1107c4[_0x58d16b(0x345)])&&(this[_0x58d16b(0x2b4)](),this[_0x58d16b(0x350)]=_0x130466===0x0?0x3e8:_0x130466*0x2);}[_0x23c7d1(0x124)](){const _0x130577=_0x23c7d1;var _0x1126f6;(_0x1126f6=this[_0x130577(0x17a)])==null||_0x1126f6[_0x130577(0x31f)](),this[_0x130577(0x350)]=0x0;}};q=_e([f(0x6,_0x4dc04f(_0x22396d)),f(0x7,_0x4dc04f(_0x2fb629)),f(0x8,_0x4dc04f(w)),f(0x9,_0x45f63f),f(0xa,_0x20dcfc),f(0xb,_0x1c29f3),f(0xc,_0x13d877)],q);let ee=class extends ue{constructor(_0x4958cb,_0x3a9d72,_0x20900c,_0x447a95,_0x165b00,_0x498135=!0x1,_0x52ebdb,_0xe07b05,_0x3373d1,_0x4828bf,_0x1878c8,_0x1cac53,_0x5f1c17){const _0x309597=_0x23c7d1;super(_0x4958cb,_0x3a9d72,_0x20900c,_0x447a95,_0x165b00,_0xe07b05,_0x3373d1,_0x1878c8,_0x4828bf),l(this,_0x309597(0x371),_0x309597(0x36d)),(this[_0x309597(0x311)]=_0x498135,this[_0x309597(0x3d4)]=_0x52ebdb,this[_0x309597(0x307)]=_0x1cac53,this[_0x309597(0x3f1)]=_0x5f1c17,this[_0x309597(0x1f8)](),this[_0x309597(0x156)](),this[_0x309597(0x244)]());}[_0x23c7d1(0x18d)](){return this;}[_0x23c7d1(0x10a)](){return this;}[_0x23c7d1(0x12c)](){return this;}[_0x23c7d1(0x300)](){return this;}[_0x23c7d1(0x2e9)](){return this;}[_0x23c7d1(0x25d)](){return this;}[_0x23c7d1(0x398)](){return this;}[_0x23c7d1(0x2b4)](){const _0xecd890=_0x23c7d1;throw new Error(_0xecd890(0x35d));}[_0x23c7d1(0x156)](){const _0x51043a=_0x23c7d1;this[_0x51043a(0x2ee)]['updateOfflineData'](this[_0x51043a(0x347)],this['type'],null,[]);}[_0x23c7d1(0x1f8)](){const _0xbf49c4=_0x23c7d1;this['_isPermissionRej']?this[_0xbf49c4(0x3f1)][_0xbf49c4(0x3cf)]({'title':this[_0xbf49c4(0x307)]['t'](_0xbf49c4(0x2b3)),'content':this[_0xbf49c4(0x307)]['t'](_0xbf49c4(0x384)),'type':_0xbf49c4(0x328),'duration':0x0}):this[_0xbf49c4(0x3f1)][_0xbf49c4(0x3cf)]({'title':this[_0xbf49c4(0x307)]['t'](_0xbf49c4(0x267)),'content':this[_0xbf49c4(0x307)]['t'](_0xbf49c4(0x379)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x252ec9=_0x23c7d1;this[_0x252ec9(0x3d4)]['updatePermissionPoint'](new _0x957589(this[_0x252ec9(0x347)])['id'],!0x1);}};ee=_e([f(0x6,_0x4dc04f(_0x241914)),f(0x7,_0x45f63f),f(0x8,_0x13d877),f(0x9,_0x4dc04f(w)),f(0xa,_0x4dc04f(_0x2fb629)),f(0xb,_0x4dc04f(_0x19fdc8)),f(0xc,_0x3c8540)],ee);let te=class extends ue{constructor(_0x15272b,_0x544d8e,_0x4f4746,_0x19df54,_0x184827,_0x1b7737,_0x239ab8,_0x2ed7a2,_0x3003ee,_0x54ab40){const _0x1a9111=_0x23c7d1;super(_0x15272b,_0x544d8e,_0x4f4746,_0x19df54,_0x184827,_0x3003ee,_0x54ab40,_0x239ab8,_0x2ed7a2),l(this,_0x1a9111(0x371),_0x1a9111(0x3f8)),this[_0x1a9111(0xdc)]=_0x1b7737;}[_0x23c7d1(0x18d)](_0x21e5ef){const _0x5e4db0=_0x23c7d1;return this['_pendingMutations'][_0x5e4db0(0x3d1)](_0x21e5ef),this[_0x5e4db0(0x134)](),this;}['onRemoteChangeset'](_0x263fb8){const _0x2ae891=_0x23c7d1;throw new Error(_0x2ae891(0x31d));}['onRemoteAck'](){const _0x1e3bb0=_0x23c7d1;throw new Error(_0x1e3bb0(0x104));}[_0x23c7d1(0x300)](){const _0x3d04f0=_0x23c7d1;throw new Error(_0x3d04f0(0x84));}[_0x23c7d1(0x2e9)](){return this;}[_0x23c7d1(0x25d)](){return this;}[_0x23c7d1(0x398)](){const _0x4f8f78=_0x23c7d1,{_injector:_0x6d74a3,_pendingMutations:_0x4290c4,_awaitingChangeset:_0xa5e14c,unitID:_0x2cbd3e,_handler:_0x5559d2,type:_0x315b75}=this,_0x28f669=Ks(_0x6d74a3,_0x2cbd3e,_0x315b75,_0xa5e14c,_0x4290c4,_0x5559d2);return _0x28f669 instanceof X?_0x28f669[_0x4f8f78(0xd2)]():(_0x28f669 instanceof q||_0x28f669 instanceof Q)&&_0x28f669['resend'](),_0x28f669;}[_0x23c7d1(0x2b4)](){const _0x1c1d87=_0x23c7d1;throw new Error(_0x1c1d87(0x15f));}};te=_e([f(0x5,_0x4dc04f(_0x22396d)),f(0x6,_0x4dc04f(_0x2fb629)),f(0x7,_0x4dc04f(w)),f(0x8,_0x45f63f),f(0x9,_0x13d877)],te);let B=class extends ue{constructor(_0x53c7ca,_0x4485ea,_0x9b021a,_0xcde937,_0x5241c4,_0x6f84ea,_0x2ddefa,_0x40539d,_0x49b258,_0x2a7964,_0x557694,_0x33b213,_0x309b8d,_0x2fdfd8){const _0x35ccd8=_0x23c7d1;super(_0x53c7ca,_0x4485ea,_0x9b021a,_0xcde937,_0x2ddefa,_0x33b213,_0x309b8d,_0x49b258,_0x2a7964),l(this,_0x35ccd8(0x371),_0x35ccd8(0x2ff)),(this[_0x35ccd8(0x289)]=_0x5241c4,this[_0x35ccd8(0x3cb)]=_0x6f84ea,this['_injector']=_0x40539d,this[_0x35ccd8(0x3e3)]=_0x557694,this[_0x35ccd8(0x152)]=_0x2fdfd8);}[_0x23c7d1(0x1eb)](_0x77f0a4){const _0xffa770=_0x23c7d1;try{const _0x372723=[..._0x77f0a4,...this['_queuedRemoteChangesets']],_0x56f31b=[this[_0xffa770(0x37e)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x3bbfb5=>!!_0x3bbfb5);let _0x4b42d7,_0x174aba;if(_0x56f31b[_0xffa770(0x22a)]){const _0x390eda=this[_0xffa770(0x152)][_0xffa770(0x334)](_0x372723,_0x56f31b,!0x1);if(!_0x275c76(_0x390eda))throw _0x390eda[_0xffa770(0x328)];_0x4b42d7=_0x390eda['c1Prime'],_0x174aba=_0x390eda['c2Prime'];}else _0x4b42d7=_0x372723,_0x174aba=[];let _0x572704=this[_0xffa770(0x3eb)];_0x4b42d7[_0xffa770(0x28d)](_0x2bf0b3=>{const _0x539f1b=_0xffa770;let _0x12ca01;if(_0x572704[_0x539f1b(0x22a)]){const _0x273e65=this[_0x539f1b(0x152)][_0x539f1b(0x2c0)](_0x2bf0b3,_0x572704);if(!_0x4a2341(_0x273e65))throw _0x273e65[_0x539f1b(0x328)];_0x12ca01=_0x273e65['c1Prime'],_0x572704=_0x273e65[_0x539f1b(0x388)];}else _0x12ca01=_0x2bf0b3;this[_0x539f1b(0x19e)](_0x12ca01);}),this['_acknowledgedAwaitingChangeset']&&this[_0xffa770(0x182)](),this[_0xffa770(0x37e)]&&_0x174aba[_0xffa770(0x22a)]&&(_0x174aba[0x0][_0xffa770(0xfd)]=this['_getCurrentRevision']());let _0x1c8c8b;if(this[_0xffa770(0x37e)]&&_0x572704[_0xffa770(0x22a)]!==0x0)_0x1c8c8b=this[_0xffa770(0xdc)][_0xffa770(0x1c8)](q,this[_0xffa770(0x347)],this[_0xffa770(0x340)],_0x174aba[0x0],_0x572704,this['_handler'],void 0x0);else{if(this['_awaitingChangeset']&&_0x572704['length']===0x0)_0x174aba[0x0][_0xffa770(0xfd)]=this[_0xffa770(0x206)](),_0x1c8c8b=this['_injector'][_0xffa770(0x1c8)](Q,this[_0xffa770(0x347)],this['type'],_0x174aba[0x0],this[_0xffa770(0x310)]);else{if(_0x572704[_0xffa770(0x22a)]!==0x0){const _0x3f4c4e=this['_injector'][_0xffa770(0x1c8)](X,this['unitID'],this[_0xffa770(0x340)],_0x572704,this[_0xffa770(0x310)]);_0x3f4c4e[_0xffa770(0xd2)](),_0x1c8c8b=_0x3f4c4e;}else _0x1c8c8b=this['_injector'][_0xffa770(0x1c8)](pe,this['unitID'],this[_0xffa770(0x340)],this['_handler']);}}return _0x1c8c8b[_0xffa770(0x134)](),_0x1c8c8b;}catch(_0x4f711e){return this['_logService'][_0xffa770(0x328)](_0xffa770(0x227),_0xffa770(0x20d),_0x4f711e),this[_0xffa770(0xdc)]['createInstance'](ee,this[_0xffa770(0x347)],this[_0xffa770(0x340)],this[_0xffa770(0x37e)],this[_0xffa770(0x3eb)],this[_0xffa770(0x310)],!0x1);}}['resend'](){const _0x51e890=_0x23c7d1;throw new Error(_0x51e890(0x338));}[_0x23c7d1(0x18d)](_0x293b20){const _0x3b4fa9=_0x23c7d1;return this[_0x3b4fa9(0x3eb)][_0x3b4fa9(0x3d1)](_0x293b20),this;}['onRemoteChangeset'](_0x13076b){const _0xdb7645=_0x23c7d1;return this[_0xdb7645(0x3cb)][_0xdb7645(0x3d1)](_0x13076b),this;}[_0x23c7d1(0x12c)](_0x44dd37){const _0x1a0da9=_0x23c7d1;if(this[_0x1a0da9(0x37e)])return this[_0x1a0da9(0x289)]=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error(_0x1a0da9(0x13f));}[_0x23c7d1(0x300)](_0x47ec7b){const _0x5e0d5b=_0x23c7d1;return this[_0x5e0d5b(0x245)](!!(_0x47ec7b!=null&&_0x47ec7b[_0x5e0d5b(0x1b4)]));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x41989d=_0x23c7d1;return this[_0x41989d(0xdc)][_0x41989d(0x1c8)](te,this[_0x41989d(0x347)],this['type'],this[_0x41989d(0x37e)],this[_0x41989d(0x3eb)],this[_0x41989d(0x310)]);}[_0x23c7d1(0x398)](){return this;}['_onConflict'](_0x11cfac){const _0x14fc18=_0x23c7d1;return this[_0x14fc18(0xdc)][_0x14fc18(0x1c8)](ee,this['unitID'],this[_0x14fc18(0x340)],this[_0x14fc18(0x37e)],this[_0x14fc18(0x3eb)],this['_handler'],_0x11cfac);}};B=_e([f(0x7,_0x4dc04f(_0x22396d)),f(0x8,_0x4dc04f(_0x2fb629)),f(0x9,_0x4dc04f(w)),f(0xa,_0x20dcfc),f(0xb,_0x45f63f),f(0xc,_0x13d877),f(0xd,_0x1c29f3)],B);function Ks(_0x43689a,_0x204ed7,_0x3b1adb,_0x3f887f,_0x4ecbed,_0x14da45){const _0x1ea182=_0x23c7d1;return _0x3f887f&&_0x4ecbed[_0x1ea182(0x22a)]?_0x43689a['createInstance'](q,_0x204ed7,_0x3b1adb,_0x3f887f,_0x4ecbed,_0x14da45,void 0x0):_0x3f887f?_0x43689a[_0x1ea182(0x1c8)](Q,_0x204ed7,_0x3b1adb,_0x3f887f,_0x14da45):_0x4ecbed[_0x1ea182(0x22a)]?_0x43689a[_0x1ea182(0x1c8)](X,_0x204ed7,_0x3b1adb,_0x4ecbed,_0x14da45):_0x43689a['createInstance'](pe,_0x204ed7,_0x3b1adb,_0x14da45);}var Dr=Object[_0x23c7d1(0x252)],wr=Object[_0x23c7d1(0x113)],Wt=(_0x40fe5f,_0x26c90c,_0x1c6945,_0xc79166)=>{const _0x477516=_0x23c7d1;for(var _0x397050=_0xc79166>0x1?void 0x0:_0xc79166?wr(_0x26c90c,_0x1c6945):_0x26c90c,_0x361bb9=_0x40fe5f[_0x477516(0x22a)]-0x1,_0x317559;_0x361bb9>=0x0;_0x361bb9--)(_0x317559=_0x40fe5f[_0x361bb9])&&(_0x397050=(_0xc79166?_0x317559(_0x26c90c,_0x1c6945,_0x397050):_0x317559(_0x397050))||_0x397050);return _0xc79166&&_0x397050&&Dr(_0x26c90c,_0x1c6945,_0x397050),_0x397050;},p=(_0x325298,_0x3a7a1a)=>(_0x53ba3d,_0x2576f9)=>_0x3a7a1a(_0x53ba3d,_0x2576f9,_0x325298);let qe=class extends _0x55967c{constructor(_0x2483cb,_0x375e96,_0x15e2b9,_0x51ff05,_0x47d855,_0x322039,_0x48d48f,_0x2c69c4,_0x129b02,_0x3a2ddd,_0x99e654,_0x3e401f,_0x5d3c7d){const _0x3c543a=_0x23c7d1;super(),l(this,_0x3c543a(0x3c8),new _0x4a4faf(null)),l(this,_0x3c543a(0x8d),this['_state$'][_0x3c543a(0x303)]()),l(this,_0x3c543a(0x2ab)),l(this,_0x3c543a(0x2cf),!0x1),l(this,_0x3c543a(0x308),''),l(this,_0x3c543a(0x222),0x0),l(this,_0x3c543a(0x3e5),this['state$'][_0x3c543a(0x254)](_0x4780de(_0x5bd011=>_0x5bd011?_0x5bd011['status']:P[_0x3c543a(0x346)]),_0x25be7a(0x1))),l(this,_0x3c543a(0x246),!0x1),l(this,_0x3c543a(0x2c5),[]),(this[_0x3c543a(0x347)]=_0x2483cb,this[_0x3c543a(0x18f)]=_0x375e96,this[_0x3c543a(0x1ce)]=_0x15e2b9,this['_injector']=_0x51ff05,this[_0x3c543a(0x2ee)]=_0x47d855,this[_0x3c543a(0x34e)]=_0x322039,this['_localeService']=_0x48d48f,this['_revisionService']=_0x2c69c4,this['_logService']=_0x129b02,this['_commandService']=_0x3a2ddd,this[_0x3c543a(0x39a)]=_0x99e654,this[_0x3c543a(0x3d4)]=_0x3e401f,this[_0x3c543a(0x2b6)]=_0x5d3c7d);}get['state'](){const _0xc23a23=_0x23c7d1;return this[_0xc23a23(0x2ab)];}async[_0x23c7d1(0x2b8)](){const _0x198152=_0x23c7d1;if(this[_0x198152(0xf7)])throw new Error(_0x198152(0x22b));await this['_init']();}['pauseCollaboration'](){const _0x477fa8=_0x23c7d1;return this[_0x477fa8(0x2cf)]=!0x0,_0x546354(()=>{const _0x477f4a=_0x477fa8;this[_0x477f4a(0x2cf)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x1fa83e){const _0x501023=_0x23c7d1;this[_0x501023(0x2ab)]=_0x1fa83e,this[_0x501023(0x3c8)]['next'](_0x1fa83e);}async['_init'](){const _0x3dde9c=_0x23c7d1;var _0x31cdfb;this['_updateState'](await this[_0x3dde9c(0xff)]()),this['_singleActiveUnitService']&&((_0x31cdfb=this[_0x3dde9c(0x2b6)])==null||_0x31cdfb['editingUnit'](this[_0x3dde9c(0x347)]),this[_0x3dde9c(0x216)](this['_singleActiveUnitService'][_0x3dde9c(0x1e1)](this[_0x3dde9c(0x347)])[_0x3dde9c(0x7f)](_0x426548=>{const _0x15844e=_0x3dde9c;this[_0x15844e(0x3e3)]['debug'](_0x15844e(0xeb),_0x15844e(0x35b),_0x426548),_0x426548===Fs[_0x15844e(0x8b)]?(this[_0x15844e(0x39a)][_0x15844e(0x3cf)]({'content':this[_0x15844e(0x307)]['t'](_0x15844e(0x1c6)),'type':_0x2b8ac7[_0x15844e(0x105)]}),this['_permissionService']['updatePermissionPoint'](new _0x957589(this[_0x15844e(0x347)])['id'],!0x1)):this[_0x15844e(0x3d4)]['updatePermissionPoint'](new _0x957589(this[_0x15844e(0x347)])['id'],!0x0);})));let _0xff3c93=!0x1;return this[_0x3dde9c(0x216)](this[_0x3dde9c(0x18f)]['sessionStatus$'][_0x3dde9c(0x7f)](_0x338ae=>{const _0x25d3ea=_0x3dde9c;_0x338ae===Y['ONLINE']?this[_0x25d3ea(0x3ff)](_0xff3c93):_0x338ae===Y[_0x25d3ea(0x346)]&&(_0xff3c93=!0x0,this[_0x25d3ea(0x2a7)]());})),this['disposeWithMe'](this['session'][_0x3dde9c(0x3f3)][_0x3dde9c(0x7f)](_0x1ca24c=>{const _0x2d4a88=_0x3dde9c;try{switch(_0x1ca24c[_0x2d4a88(0x361)]){case _0x3e2e84[_0x2d4a88(0x3fb)]:{this['_onRemoteChangeset'](_0xeed60c(_0x1ca24c[_0x2d4a88(0x15d)]));break;}case _0x3e2e84['CHANGESET_ACK']:{this[_0x2d4a88(0x265)](_0x1ca24c[_0x2d4a88(0x15d)]);break;}case _0x3e2e84[_0x2d4a88(0x1e8)]:{this[_0x2d4a88(0x159)]();break;}case _0x3e2e84[_0x2d4a88(0x166)]:{this['_onRemoteRetry'](_0x1ca24c[_0x2d4a88(0x15d)]);break;}case _0x3e2e84['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x2d4a88(0x1c2)](_0x1ca24c[_0x2d4a88(0x15d)][_0x2d4a88(0x122)][_0x2d4a88(0x396)](_0x1f5405=>_0xeed60c(_0x1f5405)));break;}case _0x3e2e84[_0x2d4a88(0x212)]:this[_0x2d4a88(0x159)]({'isPermissionRej':!0x0});}}catch(_0x34f5d4){throw console[_0x2d4a88(0x328)](_0x2d4a88(0x26e),_0x34f5d4),_0x34f5d4;}})),this['_state'];}[_0x23c7d1(0x107)](){const _0x3ba115=_0x23c7d1;this[_0x3ba115(0x246)]=!0x1;}['_lockTransition'](){const _0x31abd1=_0x23c7d1;if(this['_transitionLocked'])throw new Error(_0x31abd1(0x3e9));this[_0x31abd1(0x246)]=!0x0;}[_0x23c7d1(0x317)](_0x178999){const _0x1a6228=_0x23c7d1;this[_0x1a6228(0x22d)](),this[_0x1a6228(0xb1)](this[_0x1a6228(0x2ab)][_0x1a6228(0x18d)](_0x178999)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x3e7a40){const _0x3fe9d8=_0x23c7d1;if(!(_0x3e7a40[_0x3fe9d8(0xc9)]<=this[_0x3fe9d8(0x175)][_0x3fe9d8(0x17d)](this[_0x3fe9d8(0x347)]))){if(this[_0x3fe9d8(0x2cf)]){this[_0x3fe9d8(0x2c5)][_0x3fe9d8(0x3d1)](_0x3e7a40);return;}this[_0x3fe9d8(0x174)](_0x3e7a40);}}[_0x23c7d1(0x408)](){const _0x2e2879=_0x23c7d1;this[_0x2e2879(0x2c5)][_0x2e2879(0x28d)](_0xbd3881=>this[_0x2e2879(0x174)](_0xbd3881)),this[_0x2e2879(0x2c5)]=[];}['_applyRemoteChangeset'](_0x336538){const _0x32e647=_0x23c7d1,_0x2fd1be=this['_compressMutationService'][_0x32e647(0x1ae)]['fetchThroughInterceptors'](this[_0x32e647(0x34e)][_0x32e647(0x1ae)][_0x32e647(0x324)]()['COMPRESS_MUTATION_APPLY'])(_0x336538[_0x32e647(0x2aa)],null)||_0x336538[_0x32e647(0x2aa)],_0x20f6b0={..._0x336538,'mutations':_0x2fd1be};this[_0x32e647(0x22d)](),this[_0x32e647(0xb1)](this[_0x32e647(0x2ab)]['onRemoteChangeset'](_0x20f6b0)),this[_0x32e647(0x107)]();}[_0x23c7d1(0x265)](_0x497560){const _0x29b6ec=_0x23c7d1;this[_0x29b6ec(0x22d)](),this[_0x29b6ec(0xb1)](this[_0x29b6ec(0x2ab)][_0x29b6ec(0x12c)](_0x497560)),this['_unlockTransition']();}[_0x23c7d1(0x159)](_0xf12b1b){const _0x446866=_0x23c7d1;this[_0x446866(0x22d)](),this[_0x446866(0xb1)](this['_state'][_0x446866(0x300)](_0xf12b1b)),this[_0x446866(0x107)]();}['_onRemoteRetry'](_0xdef8f3){const _0x19fa04=_0x23c7d1;this[_0x19fa04(0x22d)](),this[_0x19fa04(0xb1)](this[_0x19fa04(0x2ab)][_0x19fa04(0x2e9)](_0xdef8f3)),this['_unlockTransition']();}[_0x23c7d1(0x1c2)](_0x8d9e8b){const _0x538af8=_0x23c7d1;if(!(this[_0x538af8(0x2ab)]instanceof B))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x439c08=_0x8d9e8b['map'](_0x26a5d3=>{const _0x5e3407=_0x538af8,_0x1027df=this[_0x5e3407(0x34e)][_0x5e3407(0x1ae)][_0x5e3407(0x1a1)](this[_0x5e3407(0x34e)][_0x5e3407(0x1ae)][_0x5e3407(0x324)]()[_0x5e3407(0xd1)])(_0x26a5d3[_0x5e3407(0x2aa)],null)||_0x26a5d3[_0x5e3407(0x2aa)];return{..._0x26a5d3,'mutations':_0x1027df};});this['_lockTransition'](),this[_0x538af8(0xb1)](this[_0x538af8(0x2ab)][_0x538af8(0x1eb)](_0x439c08)),this['_unlockTransition']();}[_0x23c7d1(0x2a7)](){const _0x443c5a=_0x23c7d1;this[_0x443c5a(0x22d)](),this[_0x443c5a(0xb1)](this['_state'][_0x443c5a(0x25d)]()),this[_0x443c5a(0x107)]();}[_0x23c7d1(0x3ff)](_0x4e9ef2=!0x1){const _0x1d1ff8=_0x23c7d1;this[_0x1d1ff8(0x22d)](),this['_updateState'](this[_0x1d1ff8(0x2ab)][_0x1d1ff8(0x398)]()),this[_0x1d1ff8(0x107)]();const _0x5ea3fd=this[_0x1d1ff8(0x2ab)];_0x4e9ef2&&_0x5ea3fd instanceof pe&&(this[_0x1d1ff8(0x22d)](),this['_updateState'](_0x5ea3fd[_0x1d1ff8(0x2bf)]()),this[_0x1d1ff8(0x107)]());}async[_0x23c7d1(0xff)](){return new Promise(_0x379ad8=>{const _0x2c27b8=_0x3e56;this[_0x2c27b8(0x18f)][_0x2c27b8(0x21c)][_0x2c27b8(0x254)](_0xf57bcd(0x1))[_0x2c27b8(0x7f)](async _0x5b7f7a=>{const _0x373350=_0x2c27b8;_0x379ad8(await this[_0x373350(0x1de)](_0x5b7f7a===Y['ONLINE']));});});}['_createHandler'](){const _0x358035=_0x23c7d1,_0x197ea9=this[_0x358035(0x347)];return{'onStateChange':(_0x492342,_0x55b204)=>{const _0x202c5c=_0x358035;if(_0x492342!==this['_state'])throw new Error(_0x202c5c(0xbd)+_0x492342[_0x202c5c(0x371)]+_0x202c5c(0x2fa)+_0x55b204[_0x202c5c(0x371)]+_0x202c5c(0x234)+this[_0x202c5c(0x2ab)]['status']);this[_0x202c5c(0xb1)](_0x55b204);},'onSendChangeset':_0x57dd8b=>{const _0xb385ba=_0x358035;_0x57dd8b['sid']||(_0x57dd8b[_0xb385ba(0x20c)]=this[_0xb385ba(0x308)],_0x57dd8b[_0xb385ba(0x345)]=++this[_0xb385ba(0x222)]);const _0x193b9d={'eventID':_0x3e2e84[_0xb385ba(0x331)],'data':{'unitID':_0x57dd8b[_0xb385ba(0x347)],'unitType':this[_0xb385ba(0x1ce)],'changeset':_0x57dd8b,'memberID':this[_0xb385ba(0x18f)][_0xb385ba(0x1fa)]()}};this['session'][_0xb385ba(0x25c)](_0x193b9d,this[_0xb385ba(0x347)]);},'onMissingChangesets':({from:_0x567604,to:_0x6a4ba1})=>{const _0x5b3972=_0x358035;this[_0x5b3972(0x3e3)][_0x5b3972(0x12b)](_0x5b3972(0xeb),_0x5b3972(0x194)+_0x567604+_0x5b3972(0x32c)+_0x6a4ba1);const _0x171359={'eventID':_0x3e2e84['FETCH_MISSING'],'data':{'unitID':_0x197ea9,'unitType':this[_0x5b3972(0x1ce)],'from':_0x567604,'to':_0x6a4ba1}};this[_0x5b3972(0x18f)][_0x5b3972(0x25c)](_0x171359,this[_0x5b3972(0x347)]);}};}async['_createInitialStateImpl'](_0x2064fb){const _0x5a3a6e=_0x23c7d1;var _0x58c34c,_0x32cba9;const _0x4ba00f=await this[_0x5a3a6e(0x2ee)][_0x5a3a6e(0x217)](this[_0x5a3a6e(0x347)]),_0x13f2d4=(_0x58c34c=_0x4ba00f==null?void 0x0:_0x4ba00f[_0x5a3a6e(0x2aa)])!=null?_0x58c34c:[],_0x1d935f=(_0x32cba9=_0x4ba00f==null?void 0x0:_0x4ba00f[_0x5a3a6e(0x290)])!=null?_0x32cba9:null,_0xd6bb24=!!(_0x1d935f!=null&&_0x1d935f['sid'])&&!!(_0x1d935f!=null&&_0x1d935f[_0x5a3a6e(0x345)]);this['_changesetSessionId']=_0xd6bb24?_0x1d935f[_0x5a3a6e(0x20c)]:or(),this[_0x5a3a6e(0x222)]=_0xd6bb24?_0x1d935f[_0x5a3a6e(0x345)]:0x0;const _0xdac1a8=this[_0x5a3a6e(0x347)];try{this[_0x5a3a6e(0xbb)](_0x1d935f,_0x13f2d4);}catch(_0x3fcb39){this[_0x5a3a6e(0x3e3)][_0x5a3a6e(0x328)](_0x3fcb39);}const _0xf5ea5=this[_0x5a3a6e(0x381)]();if(_0x2064fb){const _0x32a4b3=Ks(this[_0x5a3a6e(0xdc)],_0xdac1a8,this[_0x5a3a6e(0x1ce)],_0x1d935f,_0x13f2d4,_0xf5ea5);return _0x32a4b3 instanceof X?_0x32a4b3[_0x5a3a6e(0xd2)]():(_0x32a4b3 instanceof q||_0x32a4b3 instanceof Q)&&_0x32a4b3['resend'](),_0x32a4b3;}return this[_0x5a3a6e(0xdc)][_0x5a3a6e(0x1c8)](te,_0xdac1a8,this['_type'],_0x1d935f,_0x13f2d4,_0xf5ea5);}[_0x23c7d1(0xbb)](_0x23964b,_0x2dddd1){const _0x15ae26=_0x23c7d1;var _0x1a6405,_0x188bbe;const _0x256b33=this[_0x15ae26(0x34e)][_0x15ae26(0x1ae)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x15ae26(0x1ae)][_0x15ae26(0x324)]()[_0x15ae26(0xd1)]);(_0x1a6405=_0x256b33((_0x23964b==null?void 0x0:_0x23964b[_0x15ae26(0x2aa)])||[],null))==null||_0x1a6405['forEach'](_0x484f29=>this[_0x15ae26(0x309)]['executeCommand'](_0x484f29['id'],_0x484f29[_0x15ae26(0x16d)])),(_0x188bbe=_0x256b33(_0x2dddd1||[],null))==null||_0x188bbe['forEach'](_0x301132=>this['_commandService']['executeCommand'](_0x301132['id'],_0x301132[_0x15ae26(0x16d)]));}};qe=Wt([p(0x3,_0x4dc04f(_0x22396d)),p(0x4,_0x4dc04f(w)),p(0x5,_0x4dc04f(_0x2113b3)),p(0x6,_0x4dc04f(_0x19fdc8)),p(0x7,_0x4dc04f(_0x2fb629)),p(0x8,_0x20dcfc),p(0x9,_0x45f63f),p(0xa,_0x413020),p(0xb,_0x241914),p(0xc,_0x4ab0b0(tt))],qe);let Tt=class extends qe{constructor(_0x10c983,_0x2cf028,_0x556fa9,_0x1b86b2,_0x5e9fa0,_0x5f57ab,_0x2877ac,_0x399d32,_0x3a8940,_0x19fe20,_0x4a77d6,_0x112e38,_0x659ce4,_0x3ed867,_0x5e10c8,_0x52b5d5,_0x137a45){const _0x521d5d=_0x23c7d1;super(_0x10c983,_0x556fa9,_0x2cf028,_0x1b86b2,_0x5e9fa0,_0x5f57ab,_0x2877ac,_0x399d32,_0x659ce4,_0x3ed867,_0x5e10c8,_0x52b5d5,_0x137a45),this[_0x521d5d(0x347)]=_0x10c983,this['type']=_0x2cf028,this['_docStateChangeManagerService']=_0x3a8940,this[_0x521d5d(0x337)]=_0x19fe20,this[_0x521d5d(0x3b3)]=_0x4a77d6,this['_docSyncEditingCollabCursorService']=_0x112e38;}[_0x23c7d1(0x381)](){const _0x1a8562=_0x23c7d1,_0x34e7d3=super[_0x1a8562(0x381)]();return _0x34e7d3[_0x1a8562(0x2d0)]=_0x1c68a1=>this[_0x1a8562(0x337)][_0x1a8562(0x141)](_0x1c68a1),_0x34e7d3['onTransformSelections']=_0x4f0b20=>this[_0x1a8562(0x3b3)]['transformSelections'](_0x4f0b20),_0x34e7d3[_0x1a8562(0x1e2)]=_0x263903=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x263903),_0x34e7d3['onTransformRemoteChangesetByIMECache']=_0x570838=>this[_0x1a8562(0x337)][_0x1a8562(0x1fe)](_0x570838),_0x34e7d3;}async['_init'](){const _0x5a1afc=_0x23c7d1,_0x7e3f17=await super['_init']();return this[_0x5a1afc(0x1d9)][_0x5a1afc(0x1b6)]['pipe'](_0x21580d(this[_0x5a1afc(0x1ee)]))[_0x5a1afc(0x7f)](_0x21ccb3=>{const _0x3be9fa=_0x5a1afc;if(_0x21ccb3==null)return;const {unitId:_0x5a66f1,redoState:_0x479787,commandId:_0x3fe9c3}=_0x21ccb3;if(_0x5a66f1!==this[_0x3be9fa(0x347)])return;const _0x270f97={'id':_0x3fe9c3,'type':_0x1e1816[_0x3be9fa(0x1d5)],'params':{'unitId':_0x5a66f1,'actions':_0x479787[_0x3be9fa(0x1c0)],'textRanges':null}};this[_0x3be9fa(0x317)](_0x270f97);}),_0x7e3f17;}};Tt=Wt([p(0x3,_0x4dc04f(_0x22396d)),p(0x4,_0x4dc04f(w)),p(0x5,_0x4dc04f(_0x2113b3)),p(0x6,_0x4dc04f(_0x19fdc8)),p(0x7,_0x4dc04f(_0x2fb629)),p(0x8,_0x4dc04f(_0x16b8be)),p(0x9,_0x4dc04f(Ye)),p(0xa,_0x4dc04f(Xe)),p(0xb,_0x4dc04f(Ft)),p(0xc,_0x20dcfc),p(0xd,_0x45f63f),p(0xe,_0x413020),p(0xf,_0x241914),p(0x10,_0x4ab0b0(tt))],Tt);let Rt=class extends qe{constructor(_0x1bfb19,_0x39dfaf,_0x142305,_0x192a3e,_0x53eebf,_0x42174d,_0x2fa27e,_0x2abfd5,_0x3e9543,_0x248352,_0x1241a8,_0x4a042d,_0x13a8b2,_0x574c6f){const _0x1e14ad=_0x23c7d1;super(_0x1bfb19,_0x142305,_0x39dfaf,_0x192a3e,_0x53eebf,_0x42174d,_0x2fa27e,_0x2abfd5,_0x248352,_0x1241a8,_0x4a042d,_0x13a8b2,_0x574c6f),this[_0x1e14ad(0x347)]=_0x1bfb19,this[_0x1e14ad(0x340)]=_0x39dfaf,this[_0x1e14ad(0x2b9)]=_0x3e9543;}[_0x23c7d1(0x381)](){const _0x90eeb8=_0x23c7d1,_0x34876c=super[_0x90eeb8(0x381)]();return _0x34876c[_0x90eeb8(0xa0)]=_0x5dd776=>this[_0x90eeb8(0x2b9)][_0x90eeb8(0x259)](_0x5dd776),_0x34876c;}async[_0x23c7d1(0xad)](){const _0x2309e8=_0x23c7d1,_0x54444f=await super[_0x2309e8(0xad)]();return this[_0x2309e8(0x216)](this['_commandService']['onCommandExecuted']((_0x3a6276,_0x50161c)=>{const _0x224949=_0x2309e8;if(_0x3a6276[_0x224949(0x340)]!==_0x1e1816[_0x224949(0x1d5)]||_0x50161c!=null&&_0x50161c[_0x224949(0x2db)]||_0x50161c!=null&&_0x50161c['onlyLocal'])return;const _0x331e11=_0x3a6276[_0x224949(0x16d)];if((_0x331e11==null?void 0x0:_0x331e11[_0x224949(0x2f2)])!==this[_0x224949(0x347)])return;const _0x395e0a=_0x3a6276,_0x4bf363=this[_0x224949(0x34e)][_0x224949(0x1ae)][_0x224949(0x1a1)](this[_0x224949(0x34e)][_0x224949(0x1ae)][_0x224949(0x324)]()['COMPRESS_MUTATION_SEND'])([_0x395e0a],null)||[_0x395e0a];this['_onLocalMutation'](_0x4bf363[0x0]);})),_0x54444f;}};Rt=Wt([p(0x3,_0x4dc04f(_0x22396d)),p(0x4,_0x4dc04f(w)),p(0x5,_0x4dc04f(_0x2113b3)),p(0x6,_0x4dc04f(_0x19fdc8)),p(0x7,_0x4dc04f(_0x2fb629)),p(0x8,_0x4dc04f(Ke)),p(0x9,_0x20dcfc),p(0xa,_0x45f63f),p(0xb,_0x413020),p(0xc,_0x241914),p(0xd,_0x4ab0b0(tt))],Rt);var Pr=Object[_0x23c7d1(0x252)],yr=Object[_0x23c7d1(0x113)],Ur=(_0x184a57,_0x21fea6,_0x2e95aa,_0x26aa03)=>{for(var _0x48ce08=_0x26aa03>0x1?void 0x0:_0x26aa03?yr(_0x21fea6,_0x2e95aa):_0x21fea6,_0x2413ef=_0x184a57['length']-0x1,_0x4aa2f2;_0x2413ef>=0x0;_0x2413ef--)(_0x4aa2f2=_0x184a57[_0x2413ef])&&(_0x48ce08=(_0x26aa03?_0x4aa2f2(_0x21fea6,_0x2e95aa,_0x48ce08):_0x4aa2f2(_0x48ce08))||_0x48ce08);return _0x26aa03&&_0x48ce08&&Pr(_0x21fea6,_0x2e95aa,_0x48ce08),_0x48ce08;},_t=(_0x5b1d30,_0x2d2ab4)=>(_0x4d6e92,_0x50c603)=>_0x2d2ab4(_0x4d6e92,_0x50c603,_0x5b1d30);let Le=class extends _0x55967c{constructor(_0x38dbcd,_0xb9c035,_0x566664){const _0x20a6cb=_0x23c7d1;super(),l(this,_0x20a6cb(0xc5),new Map()),l(this,_0x20a6cb(0x218),new _0x41261f()),(this[_0x20a6cb(0xdc)]=_0x38dbcd,this[_0x20a6cb(0x3ad)]=_0xb9c035,this[_0x20a6cb(0x21f)]=_0x566664,this[_0x20a6cb(0xad)]());}[_0x23c7d1(0x230)](){const _0x39d97a=_0x23c7d1;super[_0x39d97a(0x230)](),this[_0x39d97a(0xc5)][_0x39d97a(0x28d)](_0x5e82c9=>_0x5e82c9[_0x39d97a(0x230)]()),this[_0x39d97a(0xc5)][_0x39d97a(0x120)]();}['getCollabEntity'](_0x6cb624){const _0x2bad5f=_0x23c7d1;var _0x22568a;return(_0x22568a=this[_0x2bad5f(0xc5)]['get'](_0x6cb624))!=null?_0x22568a:null;}['getCollabEntity$'](_0x133730){const _0x39446e=_0x23c7d1,_0x1ff4e1=this[_0x39446e(0x294)](_0x133730);return _0x1ff4e1?_0xaed9b5(_0x1ff4e1):this[_0x39446e(0x218)][_0x39446e(0x254)](_0x3cca70(_0x558d72=>_0x558d72['unitID']===_0x133730));}['_init'](){const _0x214b60=_0x23c7d1;this[_0x214b60(0x21f)][_0x214b60(0xd9)](_0x12affe[_0x214b60(0x3de)])[_0x214b60(0x254)](_0x21580d(this[_0x214b60(0x1ee)]),_0x5504ff(0x10))['subscribe'](async _0x121fc1=>{const _0x5cf37f=_0x214b60,_0x5b9f27=_0x121fc1[_0x5cf37f(0x366)](),_0x42f644=await this[_0x5cf37f(0x2fd)](_0x5b9f27,k[_0x5cf37f(0x3de)]);this[_0x5cf37f(0xc5)]['set'](_0x5b9f27,_0x42f644);}),this['_univerInstanceService'][_0x214b60(0xd9)](_0x12affe['UNIVER_DOC'])['pipe'](_0x21580d(this[_0x214b60(0x1ee)]),_0x5504ff(0x10))['pipe'](_0x3cca70(_0x129449=>!_0x129449[_0x214b60(0x366)]()['startsWith']('__')))[_0x214b60(0x7f)](async _0x1eee67=>{const _0x32cdba=_0x214b60,_0x1bc97d=_0x1eee67[_0x32cdba(0x366)](),_0xe23872=await this[_0x32cdba(0x2fd)](_0x1bc97d,k[_0x32cdba(0x195)]);this['_entities'][_0x32cdba(0x2f5)](_0x1bc97d,_0xe23872);}),_0x3a25d1(this[_0x214b60(0x21f)][_0x214b60(0x28c)](_0x12affe['UNIVER_SHEET']),this[_0x214b60(0x21f)][_0x214b60(0x28c)](_0x12affe[_0x214b60(0x195)]))[_0x214b60(0x254)](_0x21580d(this[_0x214b60(0x1ee)]))[_0x214b60(0x7f)](_0xeb0fc3=>{const _0x3e5726=_0x214b60,_0x57f193=_0xeb0fc3[_0x3e5726(0x366)](),_0x5a6add=this[_0x3e5726(0xc5)][_0x3e5726(0xcc)](_0x57f193);_0x5a6add&&(_0x5a6add['dispose'](),this[_0x3e5726(0xc5)][_0x3e5726(0xd4)](_0x57f193));});}async[_0x23c7d1(0x2fd)](_0x32d2ad,_0x14fc1d){const _0x167eb8=_0x23c7d1,_0x122c6f=await this[_0x167eb8(0x3ad)]['requireSession'](_0x32d2ad),_0x4bcd85=this[_0x167eb8(0xdc)][_0x167eb8(0x1c8)](this[_0x167eb8(0x404)](_0x14fc1d),_0x32d2ad,_0x14fc1d,_0x122c6f);return await _0x4bcd85[_0x167eb8(0x2b8)](),this[_0x167eb8(0x218)][_0x167eb8(0x183)](_0x4bcd85),_0x4bcd85;}[_0x23c7d1(0x404)](_0x31161e){const _0x1ef85e=_0x23c7d1;switch(_0x31161e){case k['UNIVER_DOC']:return Tt;case k[_0x1ef85e(0x3de)]:return Rt;default:throw new Error(_0x1ef85e(0x215)+_0x31161e);}}};Le=Ur([_t(0x0,_0x4dc04f(_0x22396d)),_t(0x1,_0x4dc04f(he)),_t(0x2,_0x9f62da)],Le);const ms=[_0x23c7d1(0xf4),_0x23c7d1(0x17c),'verdancy600',_0x23c7d1(0x3a1),_0x23c7d1(0x344),_0x23c7d1(0x391)];class Gt extends _0x48670f{constructor(){const _0x3a8c36=_0x23c7d1;super(...arguments),l(this,_0x3a8c36(0x241),new Map()),l(this,_0x3a8c36(0x2c9),0x0);}[_0x23c7d1(0x3f9)](_0x1df228){const _0x55da9d=_0x23c7d1;if(this[_0x55da9d(0x241)]['has'](_0x1df228))return this[_0x55da9d(0x241)]['get'](_0x1df228);const _0x18d810=ms[this[_0x55da9d(0x2c9)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%ms[_0x55da9d(0x22a)],this['_assignedColors']['set'](_0x1df228,_0x18d810),_0x18d810;}}var Nr=Object[_0x23c7d1(0x252)],Mr=Object['getOwnPropertyDescriptor'],Ar=(_0x2d9767,_0x1102e0,_0x481cb6,_0x2ed29c)=>{for(var _0x340b35=_0x2ed29c>0x1?void 0x0:_0x2ed29c?Mr(_0x1102e0,_0x481cb6):_0x1102e0,_0x296802=_0x2d9767['length']-0x1,_0x511765;_0x296802>=0x0;_0x296802--)(_0x511765=_0x2d9767[_0x296802])&&(_0x340b35=(_0x2ed29c?_0x511765(_0x1102e0,_0x481cb6,_0x340b35):_0x511765(_0x340b35))||_0x340b35);return _0x2ed29c&&_0x340b35&&Nr(_0x1102e0,_0x481cb6,_0x340b35),_0x340b35;},ie=(_0x5525bc,_0xf75031)=>(_0x40c744,_0x322112)=>_0xf75031(_0x40c744,_0x322112,_0x5525bc);const Lr=0x12c,$r=0x64;let Ot=class extends _0x55967c{constructor(_0x496427,_0x5c0adb,_0x2667af,_0x1ea99b,_0x29cbef,_0x41035d,_0x47cafe,_0x5b9ddb,_0x2ed20c){const _0x23d98a=_0x23c7d1;super(),l(this,_0x23d98a(0x38f),!0x1),l(this,'_init',!0x1),l(this,_0x23d98a(0x188),new _0x4a4faf(new Map())),l(this,_0x23d98a(0x1a9),this[_0x23d98a(0x188)][_0x23d98a(0x303)]()),l(this,_0x23d98a(0x2e5),new _0x4a4faf([])),l(this,'roomMembers$',this[_0x23d98a(0x2e5)][_0x23d98a(0x254)](_0x3df71a(Lr))),l(this,'_updateLocalCursor',_0x2a1758(_0x34c44a=>{const _0x45dffc=_0x23d98a,_0x1a4cd3={'eventID':_0x3e2e84['UPDATE_CURSOR'],'data':{'unitID':this[_0x45dffc(0x347)],'memberID':this[_0x45dffc(0x179)][_0x45dffc(0x1fa)](),'selection':Ws(_0x34c44a)}};this[_0x45dffc(0x179)][_0x45dffc(0x25c)](_0x1a4cd3,this[_0x45dffc(0x347)]);},$r)),(this['unitID']=_0x496427,this['_session']=_0x5c0adb,this['_injector']=_0x2667af,this[_0x23d98a(0x2e4)]=_0x1ea99b,this[_0x23d98a(0x2da)]=_0x29cbef,this[_0x23d98a(0x28a)]=_0x41035d,this[_0x23d98a(0x152)]=_0x47cafe,this['_univerInstanceService']=_0x5b9ddb,this['_commandService']=_0x2ed20c);}get[_0x23c7d1(0x24e)](){const _0x2b7186=_0x23c7d1;return this[_0x2b7186(0x188)][_0x2b7186(0x264)]();}get['roomMembers'](){const _0x56fc62=_0x23c7d1;return this[_0x56fc62(0x2e5)][_0x56fc62(0x264)]();}[_0x23c7d1(0x230)](){const _0x438eaa=_0x23c7d1;super['dispose'](),this[_0x438eaa(0x188)][_0x438eaa(0x183)](new Map()),this['_cursorInfo$'][_0x438eaa(0x3ba)](),this[_0x438eaa(0x2e5)]['next']([]),this[_0x438eaa(0x2e5)]['complete']();}[_0x23c7d1(0x2b8)](){const _0x2e4037=_0x23c7d1;this['_init']||(this[_0x2e4037(0xad)]=!0x0,this[_0x2e4037(0x179)][_0x2e4037(0x21c)]['pipe'](_0x21580d(this['dispose$']))[_0x2e4037(0x7f)](_0x4efda9=>{const _0x35fbae=_0x2e4037;_0x4efda9===Y[_0x35fbae(0x130)]?this['_toggleOnline']():this[_0x35fbae(0x2a7)]();}),this['_session'][_0x2e4037(0x3f3)][_0x2e4037(0x254)](_0x21580d(this[_0x2e4037(0x1ee)]))[_0x2e4037(0x7f)](_0x54de88=>{const _0x3fab2c=_0x2e4037,_0x3ca1a6=_0x54de88[_0x3fab2c(0x361)];_0x3ca1a6===_0x3e2e84['UPDATE_CURSOR']&&this[_0x3fab2c(0x318)](_0x54de88),_0x3ca1a6===_0x3e2e84[_0x3fab2c(0x355)]&&this[_0x3fab2c(0x33b)](_0x54de88);}),this[_0x2e4037(0x216)](this[_0x2e4037(0x309)][_0x2e4037(0x11c)](_0x589f65=>{const _0x125783=_0x2e4037,_0x1a0863=_0x589f65['params'];_0x1a0863!=null&&this[_0x125783(0x38f)]&&_0x589f65['id']===_0x4e7fe9['id']&&_0x1a0863[_0x125783(0x2f2)]===this['unitID']&&_0x1a0863[_0x125783(0x155)]===!0x1&&this[_0x125783(0x192)](_0x1a0863[_0x125783(0x2c2)]);})),this[_0x2e4037(0x28a)][_0x2e4037(0x400)][_0x2e4037(0x254)](_0x21580d(this[_0x2e4037(0x1ee)]))[_0x2e4037(0x7f)](_0x1dae0b=>{const _0x3a4333=_0x2e4037;if((_0x1dae0b==null?void 0x0:_0x1dae0b[_0x3a4333(0x347)])!==this[_0x3a4333(0x347)])return;const _0x1248ea={'eventID':_0x3e2e84[_0x3a4333(0xf2)],'data':_0x1dae0b};this[_0x3a4333(0x318)](_0x1248ea);}),this[_0x2e4037(0x216)](this['_commandService'][_0x2e4037(0x11c)](_0x222325=>{const _0x42f7fd=_0x2e4037;if(_0x222325[_0x42f7fd(0x16d)]==null)return;const _0x482547=_0x222325['params'];if(_0x222325['id']!==_0x1cda85['id']||_0x482547[_0x42f7fd(0x2f2)]!==this[_0x42f7fd(0x347)])return;const _0x660aae={'id':_0x42f7fd(0x28e),'params':_0x482547},_0x106c93=this[_0x42f7fd(0x24e)];for(const [_0x536e75,_0x534ac5]of _0x106c93){const _0x25de78={'id':_0x42f7fd(0x28e),'params':{'unitId':this[_0x42f7fd(0x347)],'actions':null,'textRanges':_0x534ac5[_0x42f7fd(0x2c2)]}},_0x59fa0f=this[_0x42f7fd(0x152)]['transformMutation'](_0x660aae,_0x25de78,!0x1);if(_0x20d9cf(_0x59fa0f))throw _0x59fa0f[_0x42f7fd(0x328)];_0x106c93[_0x42f7fd(0x2f5)](_0x536e75,{..._0x534ac5,'ranges':_0x59fa0f[_0x42f7fd(0x388)][_0x42f7fd(0x16d)][_0x42f7fd(0x36b)]});}queueMicrotask(()=>{const _0x630941=_0x42f7fd;this['_cursorInfo$'][_0x630941(0x183)](_0x106c93);});})));}['_onCursorUpdate'](_0x5b897f){const _0x519f90=_0x23c7d1;var _0x4c9119,_0x1429ee;const {memberID:_0x5420ec,selection:_0x54dc79}=_0x5b897f[_0x519f90(0x15d)],_0x4898ba=pr(_0x54dc79),_0x467aef=(_0x1429ee=(_0x4c9119=this[_0x519f90(0x2da)][_0x519f90(0x13e)](this[_0x519f90(0x347)],_0x5420ec))==null?void 0x0:_0x4c9119[_0x519f90(0x115)])!=null?_0x1429ee:_0x519f90(0x19c),_0x4b84b3={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x5420ec),'name':_0x467aef,'ranges':_0x4898ba},_0x1515be=this[_0x519f90(0x24e)];_0x1515be[_0x519f90(0x2f5)](_0x5420ec,_0x4b84b3),this['_cursorInfo$'][_0x519f90(0x183)](_0x1515be);}[_0x23c7d1(0x33b)](_0x28f53f){const _0x2468c3=_0x23c7d1,{memberID:_0x591f86}=_0x28f53f[_0x2468c3(0x15d)],_0x57d297=this[_0x2468c3(0x24e)];_0x57d297[_0x2468c3(0xd4)](_0x591f86),this[_0x2468c3(0x188)][_0x2468c3(0x183)](_0x57d297);}[_0x23c7d1(0x3ff)](){const _0x4f7072=_0x23c7d1;var _0x9cfe79;if(this[_0x4f7072(0x38f)]=!0x0,((_0x9cfe79=this[_0x4f7072(0x21f)]['getFocusedUnit']())==null?void 0x0:_0x9cfe79['getUnitId']())!==this[_0x4f7072(0x347)])return;const _0x2b5eac=this[_0x4f7072(0xdc)]['get'](_0xd815b9)[_0x4f7072(0x171)]();Array[_0x4f7072(0x1a0)](_0x2b5eac)&&_0x2b5eac[_0x4f7072(0x22a)]>0x0&&this[_0x4f7072(0x192)](_0x2b5eac);}[_0x23c7d1(0x2a7)](){const _0x5c9d96=_0x23c7d1;this[_0x5c9d96(0x38f)]=!0x1;}};Ot=Ar([ie(0x2,_0x4dc04f(_0x22396d)),ie(0x3,_0x4dc04f(Gt)),ie(0x4,_0x4dc04f(ce)),ie(0x5,_0x4dc04f(Ft)),ie(0x6,_0x1c29f3),ie(0x7,_0x9f62da),ie(0x8,_0x45f63f)],Ot);var jr=Object[_0x23c7d1(0x252)],Hr=Object[_0x23c7d1(0x113)],xr=(_0x454494,_0x31480b,_0x346685,_0x14c0fa)=>{for(var _0x4f7b51=_0x14c0fa>0x1?void 0x0:_0x14c0fa?Hr(_0x31480b,_0x346685):_0x31480b,_0x42d660=_0x454494['length']-0x1,_0x18b075;_0x42d660>=0x0;_0x42d660--)(_0x18b075=_0x454494[_0x42d660])&&(_0x4f7b51=(_0x14c0fa?_0x18b075(_0x31480b,_0x346685,_0x4f7b51):_0x18b075(_0x4f7b51))||_0x4f7b51);return _0x14c0fa&&_0x4f7b51&&jr(_0x31480b,_0x346685,_0x4f7b51),_0x4f7b51;},fe=(_0x152259,_0x8909a2)=>(_0x4cb037,_0x1889e4)=>_0x8909a2(_0x4cb037,_0x1889e4,_0x152259);const kr=0x12c,Br=0x64,Vr=()=>{let _0x290113=[],_0x371d15=!0x1;return _0x1860f5=>{const _0x13df13=_0x3e56;_0x290113[_0x13df13(0x3d1)](_0x1860f5),_0x371d15||(_0x371d15=!0x0,setTimeout(()=>{const _0x51fd63=_0x13df13;_0x290113[_0x51fd63(0x28d)](_0x52b5a3=>_0x52b5a3()),_0x290113=[],_0x371d15=!0x1;}));};};let Dt=class extends _0x55967c{constructor(_0x314073,_0x178bd5,_0x58565f,_0x598cb1,_0x14382b,_0x253d83,_0x12a2fd,_0x130df9){const _0x39ccb8=_0x23c7d1;super(),l(this,_0x39ccb8(0x38f),!0x1),l(this,_0x39ccb8(0xad),!0x1),l(this,_0x39ccb8(0x188),new _0x4a4faf(new Map())),l(this,_0x39ccb8(0x1a9),this[_0x39ccb8(0x188)][_0x39ccb8(0x303)]()),l(this,'_roomMembers$',new _0x4a4faf([])),l(this,_0x39ccb8(0x33f),this['_roomMembers$'][_0x39ccb8(0x254)](_0x3df71a(kr))),l(this,_0x39ccb8(0x192),_0x2a1758((_0x1f7afb,_0x3e938c)=>{const _0x19d180=_0x39ccb8,_0x5519c3={'eventID':_0x3e2e84[_0x19d180(0xf2)],'data':{'unitID':this[_0x19d180(0x347)],'memberID':this[_0x19d180(0x179)]['getMemberID'](),'selection':_0x33ed04(_0x1f7afb,_0x3e938c[_0x19d180(0x2cd)])}};this[_0x19d180(0x179)]['send'](_0x5519c3,this[_0x19d180(0x347)]);},Br)),(this['unitID']=_0x314073,this['_session']=_0x178bd5,this[_0x39ccb8(0xdc)]=_0x58565f,this[_0x39ccb8(0x2e4)]=_0x598cb1,this[_0x39ccb8(0x2da)]=_0x14382b,this[_0x39ccb8(0x21f)]=_0x253d83,this[_0x39ccb8(0x309)]=_0x12a2fd,this[_0x39ccb8(0x1f1)]=_0x130df9);}get['cursorInfo'](){const _0x49459f=_0x23c7d1;return this[_0x49459f(0x188)][_0x49459f(0x264)]();}get[_0x23c7d1(0xde)](){return this['_roomMembers$']['getValue']();}[_0x23c7d1(0x230)](){const _0x8fbee6=_0x23c7d1;super['dispose'](),this[_0x8fbee6(0x188)]['next'](new Map()),this['_cursorInfo$'][_0x8fbee6(0x3ba)](),this['_roomMembers$'][_0x8fbee6(0x183)]([]),this[_0x8fbee6(0x2e5)][_0x8fbee6(0x3ba)]();}[_0x23c7d1(0x2b8)](){const _0x3bce73=_0x23c7d1;this[_0x3bce73(0xad)]||(this[_0x3bce73(0xad)]=!0x0,this[_0x3bce73(0x179)][_0x3bce73(0x21c)]['pipe'](_0x21580d(this['dispose$']))['subscribe'](_0x2e5422=>{const _0x2bbdb6=_0x3bce73;_0x2e5422===Y[_0x2bbdb6(0x130)]?this[_0x2bbdb6(0x3ff)]():this['_toggleOffline']();}),this[_0x3bce73(0x179)][_0x3bce73(0x3f3)][_0x3bce73(0x254)](_0x21580d(this[_0x3bce73(0x1ee)]))[_0x3bce73(0x7f)](_0x2912bb=>{const _0x4ff6c8=_0x3bce73,_0xab832a=_0x2912bb[_0x4ff6c8(0x361)];_0xab832a===_0x3e2e84['UPDATE_CURSOR']&&this[_0x4ff6c8(0x318)](_0x2912bb),_0xab832a===_0x3e2e84[_0x4ff6c8(0x355)]&&this[_0x4ff6c8(0x33b)](_0x2912bb);}),this['_onRefRangeChange'](),this[_0x3bce73(0x216)](this[_0x3bce73(0x309)][_0x3bce73(0x11c)](_0x1034be=>{const _0x28d5a0=_0x3bce73;if(this[_0x28d5a0(0x38f)]&&_0x1034be['id']===_0x3f3cc1['id']&&_0x1034be['params']['unitId']===this[_0x28d5a0(0x347)]){const _0x24120f=_0x1034be[_0x28d5a0(0x16d)];this[_0x28d5a0(0x192)](_0x24120f[_0x28d5a0(0x1f4)],_0x24120f['selections'][0x0]);}})));}['_onCursorUpdate'](_0x56e74a){const _0x405690=_0x23c7d1;var _0x5b9065,_0x3b496d;const {memberID:_0x1b9c5b,selection:_0xc382c5}=_0x56e74a[_0x405690(0x15d)],{sheetName:_0x3ee78f,range:_0x348663}=_0x3ea094(_0xc382c5),_0x18eb24={'name':(_0x3b496d=(_0x5b9065=this['_memberService'][_0x405690(0x13e)](this[_0x405690(0x347)],_0x1b9c5b))==null?void 0x0:_0x5b9065[_0x405690(0x115)])!=null?_0x3b496d:_0x405690(0x19c),'range':this['_getMergeRange'](_0x3ee78f,_0x348663),'sheetID':_0x3ee78f,'color':this[_0x405690(0x2e4)][_0x405690(0x3f9)](_0x1b9c5b),'selection':_0xc382c5},_0x930e85=this['cursorInfo'];_0x930e85[_0x405690(0x2f5)](_0x1b9c5b,_0x18eb24),this[_0x405690(0x188)]['next'](_0x930e85);}[_0x23c7d1(0x33b)](_0x5e65c6){const _0x44e7d=_0x23c7d1,{memberID:_0x49cf1f}=_0x5e65c6[_0x44e7d(0x15d)],_0x4ef0b1=this[_0x44e7d(0x24e)];_0x4ef0b1[_0x44e7d(0xd4)](_0x49cf1f),this['_cursorInfo$']['next'](_0x4ef0b1);}[_0x23c7d1(0xdb)](_0x338f73,_0x3ec760){const _0x4ce867=_0x23c7d1;var _0x4ad9cc,_0x47708e;const _0x3d4011=(_0x47708e=(_0x4ad9cc=this[_0x4ce867(0x21f)]['getUniverSheetInstance'](this[_0x4ce867(0x347)]))==null?void 0x0:_0x4ad9cc[_0x4ce867(0x12e)](_0x338f73))==null?void 0x0:_0x47708e['getMergeData']();return(_0x3d4011==null?void 0x0:_0x3d4011[_0x4ce867(0x3e6)](_0x2488e0=>_0x27110e[_0x4ce867(0x161)](_0x2488e0,_0x3ec760)))||_0x3ec760;}['_onRefRangeChange'](){const _0x4e4af=_0x23c7d1,_0x2589eb=new _0x174f1b(),_0x1315fb=Vr(),_0x28fdbc=()=>{const _0x2a2ced=_0x3e56;_0x2589eb['dispose']();const _0x5a0fff=(_0x4d50d5,_0x52ad07,_0x3b714c,_0xf9323a)=>{const _0x4d8700=_0x3e56;let _0x7a86a7=[];switch(_0x4d50d5['id']){case _0x64b599[_0x4d8700(0x268)]:{_0x7a86a7=_0x335d68(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x395)]:{_0x7a86a7=_0x457ca0(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x1b1)]:{_0x7a86a7=_0x28ee26(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x178)]:{_0x7a86a7=_0x153d6f(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x191)]:{_0x7a86a7=_0x5892e7(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x1d8)]:{_0x7a86a7=_0x4c18ea(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x109)]:{_0x7a86a7=_0x2d85b0(_0x4d50d5,_0xf9323a);break;}case _0x64b599['RemoveColCommandId']:{_0x7a86a7=_0x6f4cbe(_0x4d50d5,_0xf9323a);break;}case _0x64b599[_0x4d8700(0x280)]:{_0x7a86a7=_0x135cee(_0x4d50d5,_0xf9323a);break;}}const _0x332eb4=_0x51d17a(_0x7a86a7,_0xf9323a),_0x5c0495=this[_0x4d8700(0x24e)][_0x4d8700(0xcc)](_0x52ad07);if(_0x5c0495&&_0x332eb4){const _0x3706f2={..._0x5c0495,'range':_0x332eb4};this[_0x4d8700(0x24e)][_0x4d8700(0x2f5)](_0x52ad07,_0x3706f2),_0x1315fb(()=>{const _0xa63523=_0x4d8700,_0x2fe764=this['_refRangeService'][_0xa63523(0x260)](_0x332eb4,_0xec9770=>(_0x2fe764[_0xa63523(0x230)](),_0x5a0fff(_0xec9770,_0x52ad07,_0x3b714c,_0x332eb4)));_0x2589eb[_0xa63523(0x27e)](_0x2fe764);});}return{'redos':[],'undos':[]};};this[_0x2a2ced(0x24e)][_0x2a2ced(0x28d)]((_0x53daa3,_0x125b18)=>{const _0x575bb4=_0x2a2ced,{range:_0xc2920a,sheetID:_0x473931}=_0x53daa3,_0x1e2f8c=this['_refRangeService']['registerRefRange'](_0xc2920a,_0x29a369=>(_0x1e2f8c[_0x575bb4(0x230)](),_0x5a0fff(_0x29a369,_0x125b18,_0x473931,_0xc2920a)));_0x2589eb['add'](_0x1e2f8c);});};this[_0x4e4af(0x216)](_0x546354(this[_0x4e4af(0x188)][_0x4e4af(0x7f)](()=>{_0x28fdbc();})));}['_toggleOnline'](){const _0x4f9de2=_0x23c7d1;var _0xa28b18,_0xff40d7;if(this['_online']=!0x0,((_0xa28b18=this[_0x4f9de2(0x21f)]['getFocusedUnit']())==null?void 0x0:_0xa28b18[_0x4f9de2(0x366)]())!==this[_0x4f9de2(0x347)])return;const _0x51827a=(_0xff40d7=this[_0x4f9de2(0xdc)][_0x4f9de2(0xcc)](_0x49c5af)[_0x4f9de2(0x1a4)]())==null?void 0x0:_0xff40d7[0x0],_0x2d1715=this[_0x4f9de2(0x21f)]['getCurrentUnitForType'](_0x12affe[_0x4f9de2(0x3de)])[_0x4f9de2(0x131)]();_0x51827a&&_0x2d1715&&this['_updateLocalCursor'](_0x2d1715['getSheetId'](),_0x51827a);}[_0x23c7d1(0x2a7)](){const _0x463cd1=_0x23c7d1;this[_0x463cd1(0x38f)]=!0x1;}};Dt=xr([fe(0x2,_0x4dc04f(_0x22396d)),fe(0x3,_0x4dc04f(Gt)),fe(0x4,_0x4dc04f(ce)),fe(0x5,_0x9f62da),fe(0x6,_0x45f63f),fe(0x7,_0x4dc04f(_0x37258f))],Dt);var Fr=Object[_0x23c7d1(0x252)],Wr=Object[_0x23c7d1(0x113)],Gr=(_0x380a25,_0x3c4769,_0x13b656,_0x457cd6)=>{const _0x3c4eeb=_0x23c7d1;for(var _0x5abe78=_0x457cd6>0x1?void 0x0:_0x457cd6?Wr(_0x3c4769,_0x13b656):_0x3c4769,_0x33dfe6=_0x380a25[_0x3c4eeb(0x22a)]-0x1,_0x3315a3;_0x33dfe6>=0x0;_0x33dfe6--)(_0x3315a3=_0x380a25[_0x33dfe6])&&(_0x5abe78=(_0x457cd6?_0x3315a3(_0x3c4769,_0x13b656,_0x5abe78):_0x3315a3(_0x5abe78))||_0x5abe78);return _0x457cd6&&_0x5abe78&&Fr(_0x3c4769,_0x13b656,_0x5abe78),_0x5abe78;},ut=(_0x405b82,_0x23fca3)=>(_0x1c5f18,_0x10ae74)=>_0x23fca3(_0x1c5f18,_0x10ae74,_0x405b82);let ve=class extends _0x55967c{constructor(_0x25896e,_0x16465b,_0x1f1dd8){const _0x1e3a07=_0x23c7d1;super(),l(this,_0x1e3a07(0xc5),new Map()),l(this,_0x1e3a07(0x218),new _0x41261f()),(this[_0x1e3a07(0x21f)]=_0x25896e,this[_0x1e3a07(0xdc)]=_0x16465b,this[_0x1e3a07(0x3ad)]=_0x1f1dd8,this[_0x1e3a07(0xad)]());}[_0x23c7d1(0x230)](){const _0x177d80=_0x23c7d1;super[_0x177d80(0x230)](),this[_0x177d80(0x218)]['complete'](),this[_0x177d80(0xc5)][_0x177d80(0x28d)](_0x526dcc=>_0x526dcc[_0x177d80(0x230)]());}[_0x23c7d1(0xe2)](_0x38dfa6){const _0x589678=_0x23c7d1;return this[_0x589678(0xc5)][_0x589678(0x143)](_0x38dfa6)?this['_entities'][_0x589678(0xcc)](_0x38dfa6)[_0x589678(0x1a9)]:this['_entityInit$'][_0x589678(0x254)](_0x5e384f(_0x1c14e4=>_0x1c14e4['unitID']===_0x38dfa6),_0x1fe2f3(_0x34755c=>_0x34755c[_0x589678(0x1a9)]));}['_init'](){const _0x15e4b5=_0x23c7d1;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x12affe['UNIVER_SHEET'])[_0x15e4b5(0x254)](_0x21580d(this[_0x15e4b5(0x1ee)]))['subscribe'](async _0x4c872c=>{const _0x385734=_0x15e4b5,_0x4a98af=_0x4c872c[_0x385734(0x366)](),_0x35661b=await this[_0x385734(0x23b)](_0x4a98af);this[_0x385734(0x218)]['next'](_0x35661b),this[_0x385734(0xc5)][_0x385734(0x2f5)](_0x4a98af,_0x35661b);}),this[_0x15e4b5(0x21f)][_0x15e4b5(0xd9)](_0x12affe[_0x15e4b5(0x195)])[_0x15e4b5(0x254)](_0x21580d(this[_0x15e4b5(0x1ee)]))[_0x15e4b5(0x254)](_0x5e384f(_0x58ea42=>!_0x58ea42[_0x15e4b5(0x366)]()['startsWith']('__')))[_0x15e4b5(0x7f)](async _0xaf2286=>{const _0x3c45b2=_0x15e4b5,_0x46d64b=_0xaf2286['getUnitId'](),_0x38932a=await this[_0x3c45b2(0x24c)](_0x46d64b);this['_entityInit$'][_0x3c45b2(0x183)](_0x38932a),this['_entities'][_0x3c45b2(0x2f5)](_0x46d64b,_0x38932a);}),_0x3a25d1(this[_0x15e4b5(0x21f)][_0x15e4b5(0x28c)](_0x12affe['UNIVER_DOC']),this['_univerInstanceService'][_0x15e4b5(0x28c)](_0x12affe[_0x15e4b5(0x3de)]))[_0x15e4b5(0x254)](_0x21580d(this['dispose$']))['subscribe'](_0x3eae82=>{const _0x279437=_0x15e4b5,_0x339f9d=_0x3eae82['getUnitId'](),_0x188810=this[_0x279437(0xc5)][_0x279437(0xcc)](_0x339f9d);_0x188810&&(_0x188810['dispose'](),this[_0x279437(0xc5)][_0x279437(0xd4)](_0x339f9d));});}async[_0x23c7d1(0x23b)](_0x9ea73f){const _0x43bdb5=_0x23c7d1,_0x47a4f3=await this[_0x43bdb5(0x3ad)]['requireSession'](_0x9ea73f),_0x5cdc71=this[_0x43bdb5(0xdc)][_0x43bdb5(0x1c8)](Dt,_0x9ea73f,_0x47a4f3);return _0x5cdc71[_0x43bdb5(0x2b8)](),_0x5cdc71;}async[_0x23c7d1(0x24c)](_0x34c1cf){const _0x6fb59b=_0x23c7d1,_0x32c85a=await this[_0x6fb59b(0x3ad)][_0x6fb59b(0x3f0)](_0x34c1cf),_0x4dad41=this[_0x6fb59b(0xdc)]['createInstance'](Ot,_0x34c1cf,_0x32c85a);return _0x4dad41[_0x6fb59b(0x2b8)](),_0x4dad41;}};ve=Gr([ut(0x0,_0x9f62da),ut(0x1,_0x4dc04f(_0x22396d)),ut(0x2,_0x4dc04f(he))],ve);const $e=0x14,fs=0xc8,dt=0x4,Yr=0x5;function Kr(_0x513108,_0x1de908){const _0x57d7ca=_0x23c7d1;let {radius:_0x2a9de6,width:_0xb3ac8,height:_0x26b736}=_0x1de908;_0x2a9de6=_0x2a9de6!=null?_0x2a9de6:0x0,_0xb3ac8=_0xb3ac8!=null?_0xb3ac8:0x1e,_0x26b736=_0x26b736!=null?_0x26b736:0x1e;let _0x30e95a=0x0,_0xf37a46=0x0,_0x355c1b=0x0;_0x30e95a=_0xf37a46=_0x355c1b=Math[_0x57d7ca(0x1e9)](_0x2a9de6,_0xb3ac8/0x2,_0x26b736/0x2),_0x513108[_0x57d7ca(0x3ef)](),_0x513108[_0x57d7ca(0x1c7)](_0x30e95a,0x0),_0x513108[_0x57d7ca(0x2ac)](_0xb3ac8-_0xf37a46,0x0),_0x513108[_0x57d7ca(0x3a5)](_0xb3ac8-_0xf37a46,_0xf37a46,_0xf37a46,Math['PI']*0x3/0x2,0x0,!0x1),_0x513108[_0x57d7ca(0x2ac)](_0xb3ac8,_0x26b736-_0x355c1b),_0x513108['arc'](_0xb3ac8-_0x355c1b,_0x26b736-_0x355c1b,_0x355c1b,0x0,Math['PI']/0x2,!0x1),_0x513108['lineTo'](0x0,_0x26b736),_0x513108[_0x57d7ca(0x2ac)](0x0,_0x30e95a),_0x513108[_0x57d7ca(0x3a5)](_0x30e95a,_0x30e95a,_0x30e95a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x513108[_0x57d7ca(0x29b)](),_0x1de908[_0x57d7ca(0x248)]&&(_0x513108[_0x57d7ca(0x251)](),_0x513108[_0x57d7ca(0x302)]=_0x1de908[_0x57d7ca(0x248)],_0x1de908[_0x57d7ca(0xa8)]==='evenodd'?_0x513108[_0x57d7ca(0x248)](_0x57d7ca(0x3bf)):_0x513108[_0x57d7ca(0x248)](),_0x513108[_0x57d7ca(0xe0)]());}class st extends _0x2b7442{constructor(_0x590e7d,_0x11f124){const _0x3317e9=_0x23c7d1;super(_0x590e7d,_0x11f124),l(this,_0x3317e9(0xca)),l(this,'text'),(this[_0x3317e9(0xca)]=_0x11f124==null?void 0x0:_0x11f124[_0x3317e9(0xca)],this['text']=_0x11f124==null?void 0x0:_0x11f124[_0x3317e9(0x26f)]);}static[_0x23c7d1(0x27a)](_0x38753e,_0x1cb937){const _0x589869=_0x23c7d1,{text:_0x117d29,color:_0x6312f6}=_0x1cb937;_0x38753e[_0x589869(0x251)](),_0x38753e['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x47fa3f=_0x38753e[_0x589869(0x312)](_0x117d29)[_0x589869(0x3ae)],_0x1009e3=Math['min'](_0x47fa3f+0x2*dt,fs);Kr(_0x38753e,{'height':$e,'radius':0x4,'width':_0x1009e3,'fill':_0x6312f6,'evented':!0x1}),_0x38753e['fillStyle']=_0x589869(0xb2);const _0x52c452=dt,_0x57d91a=$e-Yr,_0x221f88=fs-0x2*dt;if(_0x47fa3f>_0x221f88){let _0x3a7f23='',_0x7b8dbc=0x0;for(const _0x3719ab of _0x117d29){const _0x5bf5ec=_0x38753e[_0x589869(0x312)](_0x3719ab)[_0x589869(0x3ae)];if(_0x7b8dbc+_0x5bf5ec<=_0x221f88-_0x38753e[_0x589869(0x312)](_0x589869(0x2fc))['width'])_0x3a7f23+=_0x3719ab,_0x7b8dbc+=_0x5bf5ec;else{_0x3a7f23+='...';break;}}_0x38753e[_0x589869(0x32a)](_0x3a7f23,_0x52c452,_0x57d91a);}else _0x38753e[_0x589869(0x32a)](_0x117d29,_0x52c452,_0x57d91a);_0x38753e[_0x589869(0xe0)]();}['_draw'](_0x424923){const _0x3d4915=_0x23c7d1;st[_0x3d4915(0x27a)](_0x424923,this);}}const mt=_0x23c7d1(0x33e),Xr='collab-text-range-',qr=_0x23c7d1(0x10b),we=0x6,Jr=1.5,ft=0x4,zr=1.5,Zr=_0x23c7d1(0x1b0);class gs{constructor(_0x4466f0,_0x4d8e1a,_0x37f83b,_0x21c115){const _0x1d54d0=_0x23c7d1;l(this,'_shapes',[]),l(this,_0x1d54d0(0x29f),null),l(this,_0x1d54d0(0xe6),null),l(this,_0x1d54d0(0xab),null),l(this,_0x1d54d0(0x20f),null),l(this,_0x1d54d0(0x142),null),(this[_0x1d54d0(0xa6)]=_0x4466f0,this[_0x1d54d0(0xfa)]=_0x4d8e1a,this[_0x1d54d0(0x38c)]=_0x37f83b,this['_document']=_0x21c115,this[_0x1d54d0(0xfe)]());}set[_0x23c7d1(0x1d1)](_0x239f77){const _0x540682=_0x23c7d1;_0x239f77?(this['_anchorDot']&&this[_0x540682(0xab)][_0x540682(0x3fd)](),this[_0x540682(0xe6)]&&this[_0x540682(0xe6)]['show']()):(this[_0x540682(0xab)]&&this[_0x540682(0xab)]['show'](),this['_textBubble']&&this[_0x540682(0xe6)]['hide']());}['dispose'](){const _0x460d64=_0x23c7d1;for(const _0x3582ec of this[_0x460d64(0xd0)])_0x3582ec[_0x460d64(0x230)]();this[_0x460d64(0xe6)]&&this[_0x460d64(0xe6)][_0x460d64(0x230)](),this[_0x460d64(0xab)]&&this[_0x460d64(0xab)][_0x460d64(0x230)](),this['_anchor']&&this[_0x460d64(0x29f)][_0x460d64(0x230)](),this[_0x460d64(0x142)]&&this[_0x460d64(0x142)]();}['_render'](){const _0x4f4c73=_0x23c7d1;var _0x3f2a0e;const {_docSkeleton:_0x436df9,_document:_0x2c2233}=this,{color:_0x5b0b9e,name:_0x2b7198,ranges:_0x577e39}=this[_0x4f4c73(0xa6)],_0x3b9dd2=_0x2c2233['getOffsetConfig'](),{docsLeft:_0x5e516a,docsTop:_0x196990}=_0x3b9dd2,_0x3147d6=new _0x3744f9(_0x3b9dd2,_0x436df9);for(const {startOffset:_0xc87649,endOffset:_0x5e88c,collapsed:_0x194f0b,isActive:_0x50e6bd}of _0x577e39){const _0x211056=_0x436df9[_0x4f4c73(0x36c)](_0xc87649),_0x88d701=_0x436df9[_0x4f4c73(0x36c)](_0x5e88c);if(_0x50e6bd){const {contentBoxPointGroup:_0x35f93f}=_0x3147d6[_0x4f4c73(0xb9)](_0x88d701,_0x88d701);if(_0x35f93f[_0x4f4c73(0x22a)]===0x0)continue;this['_drawAnchor'](_0x5b0b9e,_0x35f93f,_0x5e516a,_0x196990,_0x2b7198),this['_eventUnsubscribe']=this[_0x4f4c73(0x7a)]();}if(!_0x194f0b&&_0x211056&&_0x88d701){if(_0x374be8(_0x211056,_0x88d701)){const _0x1b0f5f=new _0xca6cb5(_0x3b9dd2,_0x436df9),{pointGroup:_0x2dc26d}=(_0x3f2a0e=_0x1b0f5f[_0x4f4c73(0xb9)](_0x211056,_0x88d701))!=null?_0x3f2a0e:{};if(_0x2dc26d==null||_0x2dc26d['length']===0x0)continue;this[_0x4f4c73(0xc0)](_0x5b0b9e,_0x2dc26d,_0x5e516a,_0x196990);}else{const {contentBoxPointGroup:_0x521d7b}=_0x3147d6['getRangePointData'](_0x211056,_0x88d701);if(_0x521d7b[_0x4f4c73(0x22a)]===0x0)continue;this[_0x4f4c73(0x2d6)](_0x5b0b9e,_0x521d7b,_0x5e516a,_0x196990);}}}}[_0x23c7d1(0xcd)](_0x1e7637,_0x5f1f81,_0x1d62cb,_0x1abe63,_0x5c376d){const _0x235626=_0x23c7d1,_0x4590a6=this[_0x235626(0x11b)](_0x5f1f81),{left:_0x4fec25,top:_0x18d099,height:_0x41eb70}=_0x4590a6,_0x3c9302=this['_getScale'](),_0x3496ae=zr/_0x3c9302,_0x5e704e=new _0x4a28e4(mt+_0x344d53['generateRandomId'](we),{'left':_0x4fec25+_0x1d62cb-_0x3496ae,'top':_0x18d099+_0x1abe63,'height':_0x41eb70,'width':Jr,'fill':_0x1e7637||_0x4021a6(_0x4d0df0[_0x235626(0x39c)],0x0),'strokeWidth':_0x3496ae,'stroke':Zr,'evented':!0x0});this[_0x235626(0x29f)]=_0x5e704e,this[_0x235626(0xfa)]['addObject'](_0x5e704e,_0x448b14);const _0x14411d=new _0x4a28e4(mt+_0x344d53['generateRandomId'](we),{'left':_0x4fec25+_0x1d62cb-_0x3496ae,'top':_0x18d099+_0x1abe63-ft/0x2,'height':ft,'width':ft,'fill':_0x1e7637||_0x4021a6(_0x4d0df0['black'],0x0),'strokeWidth':0x0,'stroke':_0x1e7637||_0x4021a6(_0x4d0df0[_0x235626(0x39c)],0x0),'evented':!0x1});this[_0x235626(0xab)]=_0x14411d,this['_scene'][_0x235626(0x1dc)](_0x14411d,_0x448b14);const _0x3c3a05=new st(mt+_0x344d53['generateRandomId'](we),{'left':_0x4fec25+_0x1d62cb-_0x3496ae,'top':_0x18d099+_0x1abe63-$e,'text':_0x5c376d,'color':_0x1e7637});this[_0x235626(0xe6)]=_0x3c3a05,this[_0x235626(0xfa)][_0x235626(0x1dc)](_0x3c3a05,_0x448b14),this[_0x235626(0x1d1)]=!0x1;}[_0x23c7d1(0x7a)](){const _0x220693=_0x23c7d1,_0x52ffaf=this[_0x220693(0x29f)][_0x220693(0x1f2)][_0x220693(0x2b1)](()=>{const _0x2e8207=_0x220693;this[_0x2e8207(0x1d1)]=!0x0;}),_0x17fe3d=this[_0x220693(0x29f)][_0x220693(0x26c)][_0x220693(0x2b1)](()=>{const _0x15e4b2=_0x220693;this[_0x15e4b2(0x20f)]&&clearTimeout(this[_0x15e4b2(0x20f)]),this['_hideTimer']=setTimeout(()=>{const _0x152ed7=_0x15e4b2;this[_0x152ed7(0x1d1)]=!0x1;},0x7d0);});return()=>{const _0x577d3c=_0x220693;_0x52ffaf['unsubscribe'](),_0x17fe3d[_0x577d3c(0x31f)]();};}['_drawTextRange'](_0x4391b4,_0x37799f,_0x21894b,_0x4dc846){const _0x144a2e=_0x23c7d1,_0x381ae4=new _0x26117b(_0x4391b4)[_0x144a2e(0x3af)](0.2)[_0x144a2e(0x2f6)](),_0xbd97=new _0xa741b9(Xr+_0x344d53['generateRandomId'](we),{'pointsGroup':_0x37799f,'fill':_0x381ae4||_0x4021a6(_0x4d0df0['black'],0.2),'left':_0x21894b,'top':_0x4dc846,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x144a2e(0x3d1)](_0xbd97),this[_0x144a2e(0xfa)][_0x144a2e(0x1dc)](_0xbd97,_0x448b14);}[_0x23c7d1(0xc0)](_0x55d428,_0x3ac343,_0x443261,_0xb7f20a){const _0x4c121f=_0x23c7d1,_0x57cc05=new _0x26117b(_0x55d428)['setAlpha'](0.2)[_0x4c121f(0x2f6)](),_0x423dc2=new _0xa741b9(qr+_0x344d53[_0x4c121f(0x257)](we),{'pointsGroup':_0x3ac343,'fill':_0x57cc05||_0x4021a6(_0x4d0df0[_0x4c121f(0x39c)],0.2),'left':_0x443261,'top':_0xb7f20a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c121f(0xd0)][_0x4c121f(0x3d1)](_0x423dc2),this[_0x4c121f(0xfa)][_0x4c121f(0x1dc)](_0x423dc2,_0x448b14);}['_getAnchorBounding'](_0x1fe526){const _0x432670=_0x1fe526[0x0],_0x5bf90c=_0x432670[0x0],_0x280add=_0x432670[0x2],{x:_0x15b83c,y:_0x126f99}=_0x5bf90c,{x:_0x864596,y:_0xecb87d}=_0x280add;return{'left':_0x15b83c,'top':_0x126f99,'width':_0x864596-_0x15b83c,'height':_0xecb87d-_0x126f99};}['_getScale'](){const _0x46e33e=_0x23c7d1,{scaleX:_0x477984,scaleY:_0x27f00f}=this[_0x46e33e(0xfa)]['getAncestorScale']();return Math['max'](_0x477984,_0x27f00f);}}var Qr=Object[_0x23c7d1(0x252)],eo=Object[_0x23c7d1(0x113)],to=(_0x1aab54,_0x24975a,_0x27cf91,_0x5e2bd4)=>{const _0x1ad7fe=_0x23c7d1;for(var _0x45aa33=_0x5e2bd4>0x1?void 0x0:_0x5e2bd4?eo(_0x24975a,_0x27cf91):_0x24975a,_0x1c53c8=_0x1aab54[_0x1ad7fe(0x22a)]-0x1,_0x3e1b5f;_0x1c53c8>=0x0;_0x1c53c8--)(_0x3e1b5f=_0x1aab54[_0x1c53c8])&&(_0x45aa33=(_0x5e2bd4?_0x3e1b5f(_0x24975a,_0x27cf91,_0x45aa33):_0x3e1b5f(_0x45aa33))||_0x45aa33);return _0x5e2bd4&&_0x45aa33&&Qr(_0x24975a,_0x27cf91,_0x45aa33),_0x45aa33;},ke=(_0x43ded2,_0x54687d)=>(_0x5badb8,_0x3b1ac8)=>_0x54687d(_0x5badb8,_0x3b1ac8,_0x43ded2);let wt=class extends _0x55967c{constructor(_0x2dff20,_0xa29eca,_0x1fcd87,_0x484813,_0x552cb6){const _0x3da75c=_0x23c7d1;super(),l(this,_0x3da75c(0xe7),[]),l(this,_0x3da75c(0x348),[]),(this[_0x3da75c(0x3da)]=_0x2dff20,this['_docSkeletonManagerService']=_0xa29eca,this[_0x3da75c(0x3d0)]=_0x1fcd87,this[_0x3da75c(0x309)]=_0x484813,this['_themeService']=_0x552cb6,this[_0x3da75c(0xad)]());}['_init'](){const _0x178bc7=_0x23c7d1,_0x5ca786=this['_context'][_0x178bc7(0x2f2)],_0x3cc697=this[_0x178bc7(0x1dd)];this[_0x178bc7(0x216)](_0x3c4bb8([this[_0x178bc7(0x3d0)]['getCollabCursors$'](_0x5ca786),this[_0x178bc7(0x2e3)]['currentTheme$']])[_0x178bc7(0x254)](_0x2abcf2(([_0x2a7052,_0x5a25c2])=>({'skeleton':_0x3cc697[_0x178bc7(0x2e8)](),'cursors':[..._0x2a7052[_0x178bc7(0x2a6)]()][_0x178bc7(0x32b)](_0x1ee5a5=>({..._0x1ee5a5,'color':_0x5a25c2[_0x1ee5a5[_0x178bc7(0xca)]]}))})))['subscribe'](_0x32d05b=>{const _0x500c64=_0x178bc7;if(this[_0x500c64(0x284)](),_0x32d05b){const {skeleton:_0x5be721,cursors:_0x2c880b}=_0x32d05b;this['_updateCollabCursors'](_0x5be721,_0x2c880b);}})),this[_0x178bc7(0x295)](),this[_0x178bc7(0x349)]();}['_updateCollabCursors'](_0x28e8c5,_0x4f76aa){const _0x2a3df5=_0x23c7d1,{scene:_0x19c9d1,mainComponent:_0x19e321}=this[_0x2a3df5(0x3da)],_0x358c7d=_0x4f76aa[_0x2a3df5(0x396)](_0x1bbeb5=>new gs(_0x1bbeb5,_0x19c9d1,_0x28e8c5,_0x19e321));this[_0x2a3df5(0xe7)]=_0x358c7d,this[_0x2a3df5(0x348)]=_0x4f76aa;}[_0x23c7d1(0x336)](){const _0x4c9099=_0x23c7d1;this[_0x4c9099(0x284)]();const {scene:_0x3c3814,mainComponent:_0x2021ad}=this[_0x4c9099(0x3da)],_0x44150a=this[_0x4c9099(0x1dd)]['getSkeleton'](),_0x4bb0d2=this[_0x4c9099(0x348)]['map'](_0x25cd4a=>new gs(_0x25cd4a,_0x3c3814,_0x44150a,_0x2021ad));this['_cursorShapes']=_0x4bb0d2;}['_removeCollabCursors'](){const _0x585d39=_0x23c7d1;this['_cursorShapes']['forEach'](_0x2248c3=>_0x2248c3[_0x585d39(0x230)]()),this[_0x585d39(0xe7)]=[];}[_0x23c7d1(0x349)](){const _0x4bbe03=_0x23c7d1,_0xa332d2=[_0x3568df['id']];this[_0x4bbe03(0x216)](this['_commandService'][_0x4bbe03(0x11c)](_0x15279c=>{const _0x39f2ae=_0x4bbe03;_0xa332d2['includes'](_0x15279c['id'])&&_0x15279c[_0x39f2ae(0x16d)]['unitId']===this[_0x39f2ae(0x3da)][_0x39f2ae(0x2f2)]&&this['_refreshCollabCursors']();}));}[_0x23c7d1(0x295)](){const _0x14dde6=_0x23c7d1;this['disposeWithMe'](_0x3b2366(this['_context'][_0x14dde6(0x101)][_0x14dde6(0x3b5)])[_0x14dde6(0x254)](_0x3cca70(_0xe55f53=>_0xe55f53[_0x14dde6(0x340)]===_0x3757d6[_0x14dde6(0x184)]),_0x366ff2(0x10))['subscribe'](()=>{const _0x372326=_0x14dde6;this[_0x372326(0x336)]();}));}};wt=to([ke(0x1,_0x4dc04f(_0x1826bf)),ke(0x2,_0x4dc04f(ve)),ke(0x3,_0x45f63f),ke(0x4,_0x4dc04f(_0x499eb8))],wt);const so=0x1,io=1.5;class no extends _0x2b7442{constructor(_0x233f68,_0x5a1e06){const _0x50cc0c=_0x23c7d1;super(_0x233f68,_0x5a1e06),l(this,_0x50cc0c(0x1e3)),l(this,'_hovered',!0x1),l(this,_0x50cc0c(0x9c)),l(this,_0x50cc0c(0x18b),''),l(this,_0x50cc0c(0x201),_0x50cc0c(0x365)),l(this,'_backgroundColor'),(_0x5a1e06&&this[_0x50cc0c(0x35c)](_0x5a1e06),this[_0x50cc0c(0x1f2)][_0x50cc0c(0x2b1)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x50cc0c(0x26c)][_0x50cc0c(0x2b1)](()=>this[_0x50cc0c(0x35c)]({'hovered':!0x1})));}[_0x23c7d1(0x35c)](_0x3fa5e8){const _0x5134b4=_0x23c7d1;var _0x11b929,_0x29cf4d,_0x2a4253,_0x4101a9,_0x589c3c,_0x152096;this[_0x5134b4(0x1e3)]=(_0x11b929=_0x3fa5e8['color'])!=null?_0x11b929:this[_0x5134b4(0x1e3)],this[_0x5134b4(0x32f)]=(_0x29cf4d=_0x3fa5e8[_0x5134b4(0x407)])!=null?_0x29cf4d:this[_0x5134b4(0x32f)],this[_0x5134b4(0x9c)]=(_0x2a4253=_0x3fa5e8[_0x5134b4(0x2cd)])!=null?_0x2a4253:this['_range'],this['_name']=(_0x4101a9=_0x3fa5e8[_0x5134b4(0x115)])!=null?_0x4101a9:this[_0x5134b4(0x18b)],this[_0x5134b4(0x201)]=(_0x589c3c=_0x3fa5e8[_0x5134b4(0x1a5)])!=null?_0x589c3c:this[_0x5134b4(0x201)],this['_backgroundColor']=(_0x152096=_0x3fa5e8[_0x5134b4(0x30f)])!=null?_0x152096:this['_backgroundColor'],this[_0x5134b4(0xc3)]({'width':_0x3fa5e8[_0x5134b4(0x3ae)],'height':_0x3fa5e8[_0x5134b4(0x35a)]});}['onMouseMove'](_0x37040e){const _0x1e7f1d=_0x23c7d1,{row:_0x3e0192,column:_0x30846c}=_0x37040e;if(_0x3e0192>=this[_0x1e7f1d(0x9c)][_0x1e7f1d(0x208)]&&_0x3e0192<=this[_0x1e7f1d(0x9c)][_0x1e7f1d(0x19b)]&&_0x30846c>=this[_0x1e7f1d(0x9c)][_0x1e7f1d(0x213)]&&_0x30846c<=this[_0x1e7f1d(0x9c)][_0x1e7f1d(0x10e)]){this[_0x1e7f1d(0x35c)]({'hovered':!0x0});return;}this[_0x1e7f1d(0x35c)]({'hovered':!0x1});}[_0x23c7d1(0x99)](_0x426cb4){return!0x1;}[_0x23c7d1(0x3ac)](_0x3399a3){const _0x4f331e=_0x23c7d1;_0x4a28e4[_0x4f331e(0x27a)](_0x3399a3,{'width':this['width'],'height':this[_0x4f331e(0x35a)],'strokeWidth':io,'stroke':this[_0x4f331e(0x1e3)],'evented':!0x1,'fill':this[_0x4f331e(0x3dc)]}),this[_0x4f331e(0x32f)]&&(_0x3399a3[_0x4f331e(0x251)](),_0x3399a3[_0x4f331e(0x409)](0x1,0x0,0x0,0x1,this[_0x4f331e(0x3ae)],this['_labelPosition']==='bottom'?0x0:-$e),st[_0x4f331e(0x27a)](_0x3399a3,{'text':this[_0x4f331e(0x18b)],'color':this[_0x4f331e(0x1e3)]}),_0x3399a3['restore']());}}var ro=Object['defineProperty'],oo=Object[_0x23c7d1(0x113)],ao=(_0x39ae26,_0x36bee9,_0x2c27ca,_0x5468c1)=>{const _0x2c1feb=_0x23c7d1;for(var _0x940281=_0x5468c1>0x1?void 0x0:_0x5468c1?oo(_0x36bee9,_0x2c27ca):_0x36bee9,_0x6ff9e2=_0x39ae26[_0x2c1feb(0x22a)]-0x1,_0x157a5a;_0x6ff9e2>=0x0;_0x6ff9e2--)(_0x157a5a=_0x39ae26[_0x6ff9e2])&&(_0x940281=(_0x5468c1?_0x157a5a(_0x36bee9,_0x2c27ca,_0x940281):_0x157a5a(_0x940281))||_0x940281);return _0x5468c1&&_0x940281&&ro(_0x36bee9,_0x2c27ca,_0x940281),_0x940281;},gt=(_0x56cef2,_0x44377b)=>(_0x4584b3,_0x1a1da9)=>_0x44377b(_0x4584b3,_0x1a1da9,_0x56cef2);const co=0x1389;let Pt=class extends _0x55967c{constructor(_0x3bb6a6,_0x1e8a90,_0x5db168,_0x356e6c){const _0xa0020b=_0x23c7d1;super(),l(this,_0xa0020b(0x348),new Set()),l(this,_0xa0020b(0x2d9),null),(this[_0xa0020b(0x3da)]=_0x3bb6a6,this[_0xa0020b(0x11f)]=_0x1e8a90,this['_collabCursorController']=_0x5db168,this['_themeService']=_0x356e6c,this['_init']());}[_0x23c7d1(0xad)](){const _0x34c579=_0x23c7d1;this[_0x34c579(0x11f)][_0x34c579(0x1a7)][_0x34c579(0x254)](_0x1f0b24(this[_0x34c579(0x1ee)]),_0x4ca445(_0x1e055a=>{const _0x1b5ace=_0x34c579;if(_0x1e055a){const _0x5d364a=_0x1e055a[_0x1b5ace(0x100)];return _0x3c4bb8(this['_collabCursorController']['getCollabCursors$'](this['_context'][_0x1b5ace(0x2f2)]),this[_0x1b5ace(0x2e3)]['currentTheme$'])[_0x1b5ace(0x254)](_0x2abcf2(([_0x3d9ef1,_0x57165e])=>{const _0x4c194d=_0x1b5ace,_0x4e2dea=new Map();return _0x3d9ef1[_0x4c194d(0x28d)]((_0x1cf344,_0xdf566)=>{const _0x2f4f18=_0x4c194d;if(_0x1cf344[_0x2f4f18(0x281)]===_0x5d364a){const _0x97037a={..._0x1cf344};_0x97037a[_0x2f4f18(0xca)]=_0x57165e[_0x1cf344[_0x2f4f18(0xca)]],_0x4e2dea[_0x2f4f18(0x2f5)](_0xdf566,_0x97037a);}}),{'skeleton':_0x1e055a,'cursors':_0x4e2dea};}));}return _0xaed9b5({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x277cd6,cursors:_0x5e30a8})=>{const _0x3ad528=_0x34c579;this[_0x3ad528(0x284)](),_0x277cd6&&this['_updateCollabCursors'](_0x277cd6,_0x5e30a8);}),this[_0x34c579(0x11f)][_0x34c579(0x1a7)]['subscribe'](_0x25de61=>{const _0x9d6e6a=_0x34c579;if(_0x25de61==null)return;const {skeleton:_0x4b6b03}=_0x25de61,{scene:_0x2b2b48}=this[_0x9d6e6a(0x3da)];_0x2b2b48[_0x9d6e6a(0x1fd)][_0x9d6e6a(0x2b1)](_0x2a1758(_0x9b2925=>{const _0x37f950=_0x9d6e6a;var _0x5bb20e,_0x16893c;const {offsetX:_0x43c647,offsetY:_0x264105}=_0x9b2925,{x:_0x4bd02d,y:_0x3e84a5}=_0x2b2b48['getRelativeToViewportCoord'](_0x4052cb['FromArray']([_0x43c647,_0x264105])),{scaleX:_0x483012,scaleY:_0x148f6f}=_0x2b2b48[_0x37f950(0x3cd)](),_0x53e463=_0x2b2b48[_0x37f950(0xf1)](_0x42c4cf['VIEW_MAIN']),_0x66456c=_0x2b2b48[_0x37f950(0x138)](_0x4052cb['FromArray']([_0x4bd02d,_0x3e84a5]),_0x53e463),_0x459a10=_0x4b6b03['getCellPositionByOffset'](_0x43c647,_0x264105,_0x483012,_0x148f6f,_0x66456c);((_0x5bb20e=this[_0x37f950(0x2d9)])==null?void 0x0:_0x5bb20e[_0x37f950(0x372)])===_0x459a10[_0x37f950(0x372)]&&((_0x16893c=this['_lastPointer'])==null?void 0x0:_0x16893c['row'])===_0x459a10[_0x37f950(0x23d)]||this['_cursors']['forEach'](_0x21894e=>{_0x21894e['onMouseMove'](_0x459a10);});},0x64));});}['_updateCollabCursors'](_0x5b27b8,_0x4de7de){const _0x2274b9=_0x23c7d1;var _0x59af73;const _0x5609f2=(_0x59af73=this['_sheetSkeletonManagerService'][_0x2274b9(0x2e1)]())==null?void 0x0:_0x59af73[_0x2274b9(0x3d3)];if(!_0x5609f2)return;const _0x63ac85=this['_getSheetObject']();if(!_0x63ac85)return;this[_0x2274b9(0x348)][_0x2274b9(0x28d)](_0x627f8f=>{const _0x4f7cf2=_0x2274b9;_0x627f8f[_0x4f7cf2(0x3fe)]();});const {scene:_0x44e70d}=_0x63ac85,_0xf007f6=ho(Array[_0x2274b9(0xba)](_0x4de7de[_0x2274b9(0x2a6)]()))[_0x2274b9(0x396)](_0x22ad94=>{const _0x46c274=_0x2274b9,{color:_0x203fb5,range:_0x4258ec,name:_0x2aabd1,selection:_0x57b62e,sheetID:_0x84e887}=_0x22ad94,{startColumn:_0x1b83c4,startRow:_0x514707,endColumn:_0xe221c7,endRow:_0x4b4fc6}=_0x4258ec,_0x43b59e=_0x45a831(_0x514707,_0x1b83c4,_0x44e70d,_0x5609f2),_0x24cb9d=_0x45a831(_0x4b4fc6,_0xe221c7,_0x44e70d,_0x5609f2),{columnHeaderHeightAndMarginTop:_0x5ccf7d}=_0x5609f2,{startX:_0x3e28a1,startY:_0x4f7991}=_0x43b59e,{endX:_0x42d12d,endY:_0x4c9eb8}=_0x24cb9d,_0x28c900=_0x42d12d-_0x3e28a1,_0x65cba9=_0x4c9eb8-_0x4f7991,_0x4d2b03={'labelPosition':_0x4f7991-_0x5ccf7d>=$e?_0x46c274(0x365):_0x46c274(0x329),'sheetID':_0x84e887,'range':_0x4258ec,'color':_0x203fb5,'name':_0x2aabd1,'selection':_0x57b62e,'left':_0x3e28a1,'top':_0x4f7991,'width':_0x28c900,'height':_0x65cba9,'evented':!0x1,'zIndex':co};return new no(_0x2aabd1,_0x4d2b03);});_0x44e70d[_0x2274b9(0x1c5)](_0xf007f6,so),this['_cursors']=new Set(_0xf007f6);}['_removeCollabCursors'](){const _0x153e46=_0x23c7d1;var _0x397c7a;(_0x397c7a=this['_cursors'])==null||_0x397c7a['forEach'](_0x4f74db=>_0x4f74db[_0x153e46(0x230)]());}['_getSheetObject'](){const _0x4b061a=_0x23c7d1;return _0x5b9a2d(this[_0x4b061a(0x3da)][_0x4b061a(0x190)],this['_context']);}};Pt=ao([gt(0x1,_0x4dc04f(_0x57ecbe)),gt(0x2,_0x4dc04f(ve)),gt(0x3,_0x4dc04f(_0x499eb8))],Pt);function ho(_0x5b8f39){const _0x33cee=_0x23c7d1,_0x57b31c=new Map();return _0x5b8f39[_0x33cee(0x28d)](_0x4573b3=>{const _0x4266b9=_0x33cee;if(_0x57b31c['has'](_0x4573b3[_0x4266b9(0x20e)])){const _0x249ae8=_0x57b31c[_0x4266b9(0xcc)](_0x4573b3['selection']);_0x249ae8['name']+=',\x20'+_0x4573b3[_0x4266b9(0x115)];}else _0x57b31c[_0x4266b9(0x2f5)](_0x4573b3[_0x4266b9(0x20e)],_0x4573b3);}),Array[_0x33cee(0xba)](_0x57b31c[_0x33cee(0x2a6)]());}var N=function(){const _0x4e1b9b=_0x23c7d1;return N=Object[_0x4e1b9b(0x2f9)]||function(_0x2a1337){const _0x49c628=_0x4e1b9b;for(var _0x1efede,_0x13fe92=0x1,_0x29405f=arguments[_0x49c628(0x22a)];_0x13fe92<_0x29405f;_0x13fe92++){_0x1efede=arguments[_0x13fe92];for(var _0x27a514 in _0x1efede)Object['prototype'][_0x49c628(0x1ad)]['call'](_0x1efede,_0x27a514)&&(_0x2a1337[_0x27a514]=_0x1efede[_0x27a514]);}return _0x2a1337;},N[_0x4e1b9b(0x2cb)](this,arguments);},lo=function(_0x9c4a8d,_0x4e986c){const _0x195df0=_0x23c7d1;var _0x391b23={};for(var _0x5ced2d in _0x9c4a8d)Object[_0x195df0(0x94)][_0x195df0(0x1ad)][_0x195df0(0x385)](_0x9c4a8d,_0x5ced2d)&&_0x4e986c[_0x195df0(0x168)](_0x5ced2d)<0x0&&(_0x391b23[_0x5ced2d]=_0x9c4a8d[_0x5ced2d]);if(_0x9c4a8d!=null&&typeof Object[_0x195df0(0x1ea)]=='function'){for(var _0x8b1982=0x0,_0x5ced2d=Object[_0x195df0(0x1ea)](_0x9c4a8d);_0x8b1982<_0x5ced2d['length'];_0x8b1982++)_0x4e986c['indexOf'](_0x5ced2d[_0x8b1982])<0x0&&Object[_0x195df0(0x94)][_0x195df0(0xcb)][_0x195df0(0x385)](_0x9c4a8d,_0x5ced2d[_0x8b1982])&&(_0x391b23[_0x5ced2d[_0x8b1982]]=_0x9c4a8d[_0x5ced2d[_0x8b1982]]);}return _0x391b23;},Yt=_0x261ce7(function(_0x412ee9,_0x977e35){const _0x49f2bf=_0x23c7d1;var _0x37e3a9=_0x412ee9[_0x49f2bf(0x249)],_0x57aa2a=_0x412ee9['id'],_0x5b46f8=_0x412ee9[_0x49f2bf(0x137)],_0x2cb036=_0x412ee9[_0x49f2bf(0x1e0)],_0x482a05=lo(_0x412ee9,[_0x49f2bf(0x249),'id','className',_0x49f2bf(0x1e0)]),_0x3d3dfb=_0x49f2bf(0x123)[_0x49f2bf(0x370)](_0x57aa2a,'\x20')[_0x49f2bf(0x370)](_0x5b46f8||'')[_0x49f2bf(0x2c7)](),_0x4538b4=_0xe6ffb4('_'[_0x49f2bf(0x370)](mo()));return Xs(_0x37e3a9,''['concat'](_0x57aa2a),{'defIds':_0x37e3a9[_0x49f2bf(0x2f0)],'idSuffix':_0x4538b4[_0x49f2bf(0x228)]},N({'ref':_0x977e35,'className':_0x3d3dfb},_0x482a05),_0x2cb036);});function Xs(_0x524c21,_0x2049b0,_0x51fdf3,_0x5c7cca,_0x1f69ec){const _0x2b4298=_0x23c7d1;return _0x32d714(_0x524c21[_0x2b4298(0xa9)],N(N({'key':_0x2049b0},_o(_0x524c21,_0x51fdf3,_0x1f69ec)),_0x5c7cca),(uo(_0x524c21,_0x51fdf3)[_0x2b4298(0x283)]||[])[_0x2b4298(0x396)](function(_0x1ee14b,_0x25dfbb){const _0x56b00a=_0x2b4298;return Xs(_0x1ee14b,''[_0x56b00a(0x370)](_0x2049b0,'-')[_0x56b00a(0x370)](_0x524c21['tag'],'-')[_0x56b00a(0x370)](_0x25dfbb),_0x51fdf3,void 0x0,_0x1f69ec);}));}function _0x3e56(_0x4e83de,_0x5a68a2){const _0x2b411f=_0x2b41();return _0x3e56=function(_0x3e569e,_0xb69c10){_0x3e569e=_0x3e569e-0x7a;let _0x141db1=_0x2b411f[_0x3e569e];return _0x141db1;},_0x3e56(_0x4e83de,_0x5a68a2);}function _o(_0xd4e55c,_0xcc3727,_0x476e3d){const _0xdc55b4=_0x23c7d1;var _0x2844d8=N({},_0xd4e55c[_0xdc55b4(0x354)]);_0x476e3d!=null&&_0x476e3d[_0xdc55b4(0x2c8)]&&_0x2844d8['fill']===_0xdc55b4(0x2c8)&&(_0x2844d8[_0xdc55b4(0x248)]=_0x476e3d[_0xdc55b4(0x2c8)]);var _0x11b895=_0xcc3727[_0xdc55b4(0x2f0)];return!_0x11b895||_0x11b895['length']===0x0||(_0xd4e55c[_0xdc55b4(0xa9)]===_0xdc55b4(0x8c)&&_0x2844d8[_0xdc55b4(0x285)]&&(_0x2844d8['xlink:href']=_0x2844d8[_0xdc55b4(0x285)]+_0xcc3727[_0xdc55b4(0xd6)]),Object[_0xdc55b4(0x3fc)](_0x2844d8)[_0xdc55b4(0x28d)](function(_0x1d2e92){const _0x55c901=_0xdc55b4;var _0x88def0=_0x1d2e92[0x0],_0x3129f1=_0x1d2e92[0x1];typeof _0x3129f1=='string'&&(_0x2844d8[_0x88def0]=_0x3129f1['replace'](/url\(#(.*)\)/,_0x55c901(0x93)[_0x55c901(0x370)](_0xcc3727[_0x55c901(0xd6)],')')));})),_0x2844d8;}function uo(_0x3beb59,_0x2c1b5c){const _0x47c62d=_0x23c7d1;var _0x16bf17,_0x7f757=_0x2c1b5c['defIds'];return!_0x7f757||_0x7f757[_0x47c62d(0x22a)]===0x0?_0x3beb59:_0x3beb59['tag']==='defs'&&(!((_0x16bf17=_0x3beb59[_0x47c62d(0x283)])===null||_0x16bf17===void 0x0)&&_0x16bf17[_0x47c62d(0x22a)])?N(N({},_0x3beb59),{'children':_0x3beb59['children'][_0x47c62d(0x396)](function(_0x300dea){const _0x3d473b=_0x47c62d;return typeof _0x300dea[_0x3d473b(0x354)]['id']=='string'&&_0x7f757&&_0x7f757[_0x3d473b(0x168)](_0x300dea['attrs']['id'])>-0x1?N(N({},_0x300dea),{'attrs':N(N({},_0x300dea[_0x3d473b(0x354)]),{'id':_0x300dea[_0x3d473b(0x354)]['id']+_0x2c1b5c[_0x3d473b(0xd6)]})}):_0x300dea;})}):_0x3beb59;}function mo(){const _0x52cf83=_0x23c7d1;return Math[_0x52cf83(0xa2)]()[_0x52cf83(0x3df)](0x24)[_0x52cf83(0x22c)](0x2,0x8);}Yt[_0x23c7d1(0x1df)]=_0x23c7d1(0x3ea);var fo={'tag':'svg','attrs':{'fill':'none','viewBox':_0x23c7d1(0x305),'width':'1em','height':_0x23c7d1(0x2d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x23c7d1(0x3b1)},'children':[{'tag':_0x23c7d1(0x1ba),'attrs':{'stroke':_0x23c7d1(0x3a3),'d':_0x23c7d1(0xe9),'strokeLinecap':_0x23c7d1(0x103),'strokeLinejoin':_0x23c7d1(0x103),'strokeWidth':1.2}}]},{'tag':_0x23c7d1(0x1b2),'attrs':{},'children':[{'tag':_0x23c7d1(0x359),'attrs':{'id':_0x23c7d1(0x320)},'children':[{'tag':_0x23c7d1(0x1ba),'attrs':{'fill':'#fff','d':_0x23c7d1(0x3b0)}}]}]}],'defIds':[_0x23c7d1(0x320)]},qs=_0x261ce7(function(_0x80150a,_0xab628e){const _0x1e8f4a=_0x23c7d1;return _0x32d714(Yt,Object['assign']({},_0x80150a,{'id':_0x1e8f4a(0x270),'ref':_0xab628e,'icon':fo}));});qs['displayName']=_0x23c7d1(0xb8);var go={'tag':_0x23c7d1(0x88),'attrs':{'fill':_0x23c7d1(0x81),'viewBox':_0x23c7d1(0x3f7),'width':_0x23c7d1(0x2d5),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x23c7d1(0x364)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x23c7d1(0x10d),'strokeLinecap':_0x23c7d1(0x103),'strokeLinejoin':_0x23c7d1(0x103),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x23c7d1(0x116)},'children':[{'tag':_0x23c7d1(0x1ba),'attrs':{'fill':'#fff','d':_0x23c7d1(0x3b0),'transform':_0x23c7d1(0x2ae)}}]}]}],'defIds':[_0x23c7d1(0x116)]},Js=_0x261ce7(function(_0x3de83d,_0x544d1a){const _0x4c0bbc=_0x23c7d1;return _0x32d714(Yt,Object['assign']({},_0x3de83d,{'id':_0x4c0bbc(0x205),'ref':_0x544d1a,'icon':go}));});Js[_0x23c7d1(0x1df)]=_0x23c7d1(0x3ab);function zs(_0x8d055f){const _0x10abaa=_0x23c7d1;var _0x56a5ea,_0x791c8a,_0x490968='';if(typeof _0x8d055f==_0x10abaa(0x2af)||typeof _0x8d055f=='number')_0x490968+=_0x8d055f;else{if(typeof _0x8d055f==_0x10abaa(0x1d2)){if(Array[_0x10abaa(0x1a0)](_0x8d055f)){var _0x336ddc=_0x8d055f[_0x10abaa(0x22a)];for(_0x56a5ea=0x0;_0x56a5ea<_0x336ddc;_0x56a5ea++)_0x8d055f[_0x56a5ea]&&(_0x791c8a=zs(_0x8d055f[_0x56a5ea]))&&(_0x490968&&(_0x490968+='\x20'),_0x490968+=_0x791c8a);}else{for(_0x791c8a in _0x8d055f)_0x8d055f[_0x791c8a]&&(_0x490968&&(_0x490968+='\x20'),_0x490968+=_0x791c8a);}}}return _0x490968;}function So(){const _0x3b667c=_0x23c7d1;for(var _0x7aae,_0xb6182d,_0x2c3031=0x0,_0x55cdb6='',_0x4618d8=arguments[_0x3b667c(0x22a)];_0x2c3031<_0x4618d8;_0x2c3031++)(_0x7aae=arguments[_0x2c3031])&&(_0xb6182d=zs(_0x7aae))&&(_0x55cdb6&&(_0x55cdb6+='\x20'),_0x55cdb6+=_0xb6182d);return _0x55cdb6;}const po=_0x23c7d1(0xb6),vo=_0x23c7d1(0x37f),Io=_0x23c7d1(0x199),Eo=_0x23c7d1(0x15a),Co=_0x23c7d1(0x1a8),Pe={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x211abc){const _0x456b0d=_0x23c7d1;switch(_0x211abc){case P['OFFLINE']:return'collabStatus.offline';case P[_0x456b0d(0x322)]:return _0x456b0d(0x3d8);case P[_0x456b0d(0x2d1)]:return _0x456b0d(0x22e);case P[_0x456b0d(0x1e5)]:return _0x456b0d(0x80);case P[_0x456b0d(0x151)]:case P[_0x456b0d(0x20b)]:return _0x456b0d(0x314);case P[_0x456b0d(0x1a6)]:case P[_0x456b0d(0x1a3)]:return _0x456b0d(0xb5);}}function To(_0x1bf311){const _0x142847=_0x23c7d1,{status$:_0x5a4fbf}=_0x1bf311,_0x49e56b=_0x3eb386(_0x5a4fbf,P[_0x142847(0x1e5)]),_0x436103=_0x33243a(_0x19fdc8),_0x165dc5=_0x33243a(he),_0x6c97b8=_0x49e56b!==P[_0x142847(0x346)],_0x53ac94=_0x436103['t'](bo(_0x49e56b)),_0x53a61b=So(Pe[_0x142847(0x8e)],{[Pe[_0x142847(0x3bb)]]:_0x6c97b8,[Pe[_0x142847(0x3f8)]]:!_0x6c97b8}),_0x447c52=_0x6c97b8?_0x483511[_0x142847(0x3a7)](Js,null):_0x483511['createElement'](qs,null),_0x4b629f=_0xb5f8c6(()=>{const _0x4a1b9d=_0x142847;_0x6c97b8||_0x165dc5[_0x4a1b9d(0x2ad)]();},[_0x6c97b8,_0x165dc5]);function _0x359e12(){const _0x82bce1=_0x142847;return _0x483511[_0x82bce1(0x3a7)](_0x82bce1(0x403),{'className':_0x53a61b,'onClick':_0x4b629f},_0x483511['createElement'](_0x82bce1(0x403),{'className':Pe[_0x82bce1(0x29d)]},_0x447c52),_0x483511[_0x82bce1(0x3a7)](_0x82bce1(0x403),{'className':Pe[_0x82bce1(0xee)]},_0x53ac94));}return _0x6c97b8?_0x359e12():_0x483511[_0x142847(0x3a7)](_0x3dab34,{'title':_0x436103['t'](_0x142847(0x164))},_0x359e12());}var Ro=Object[_0x23c7d1(0x252)],Oo=Object[_0x23c7d1(0x113)],Do=(_0x425704,_0x5189cf,_0xd0e5d,_0x2df63b)=>{const _0x2b2ac5=_0x23c7d1;for(var _0x4bfabb=_0x2df63b>0x1?void 0x0:_0x2df63b?Oo(_0x5189cf,_0xd0e5d):_0x5189cf,_0x3ff360=_0x425704[_0x2b2ac5(0x22a)]-0x1,_0x4f8579;_0x3ff360>=0x0;_0x3ff360--)(_0x4f8579=_0x425704[_0x3ff360])&&(_0x4bfabb=(_0x2df63b?_0x4f8579(_0x5189cf,_0xd0e5d,_0x4bfabb):_0x4f8579(_0x4bfabb))||_0x4bfabb);return _0x2df63b&&_0x4bfabb&&Ro(_0x5189cf,_0xd0e5d,_0x4bfabb),_0x4bfabb;},Be=(_0xbe37b,_0x1567bc)=>(_0x4fdd17,_0x5e642c)=>_0x1567bc(_0x4fdd17,_0x5e642c,_0xbe37b);function _0x2b41(){const _0x2fca70=['blue400','reqId','OFFLINE','unitID','_cursors','_initCommandExecutedListener','UnitSnapshot','_transformUndoredo','57yogPKh','session.room-full','_compressMutationService','_retryCount','_resendTimeout','localeService','every','change$','attrs','USERS_LEAVE','_stopTelemetryCollaborationNewChangeset','LIVESHARE_REQUEST_HOST','addImageSourceCache','clipPath','height','editing\x20status\x20changed\x20to','setShapeProps','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UNIVER_PROJECT','close$','updateMember','eventID','newValue','history','url(#on-line-single_clip0_910_349)','top','getUnitId','collaMsg','max','readAsDataURL','_collaborationController','textRanges','findNodePositionByCharIndex','conflict','/universer-api/snapshot/','_getSnapshotAPIPrefix','concat','status','column','LIVESHARE_OPERATION','UNRECOGNIZED','urlChange$','COMPLETION_FINISHED','_getDownloadEndpointURL','171340QrhUoP','conflict.content','size','enableLocalCache','collaboration-session-retry','_initCloseConn','_awaitingChangeset','univer-online-status-title','ERROR_IMAGE_TYPE','_createHandler','LOGIN_URL_KEY','_userManagerService','permission.content','call','joinRsp','disableLocalCache','m2Prime','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','pushState','JOINING','_docSkeleton','telemetry\x20info\x20is\x20not\x20initialized','_clearHeartbeatTimer','_online','reject','gold400','_shouldReportTelemetry','append','_unitID','DeleteRangeMoveUpCommandId','map','loadSheet','toggleOnline','ALREADY_EXISTS','_messageService','_send','black','withCredentials','getImage','LOCAL_CACHE_INTERVAL','YUUMI_URL_COL_OUT_OF_RANGE','red300','awaiting_with_pending','currentColor','_createSocket','arc','method','createElement','closeSession','visibilitychange','infoRsp','OnLineSingle','_draw','_collabSessionService','width','setAlpha','M0\x200H16V16H0z','url(#off-line-single_clip0_910_343)','/universer-api/snapshot','_docTransformSelectionsService','setParam','onTransformChange$','SEND_CHANGESET_TIMEOUT','_resendWithTimeout','_instanceService','_unitOnClients','complete','online','pending','/universer-api/comb','setCurrentUser','evenodd','_configService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','duration','collabSubmitChangesetUrl','create','_socketService','_substituteUndoStack','encodeURIComponent','_state$','connection\x20error','APPLY_PERMISSION_DENIED','_queuedRemoteChangesets','collaborators','getAncestorScale','_onUserLeave','show','_collabCursorController','push','\x20-\x20','skeleton','_permissionService','COLLAB_WEB_SOCKET_URL','_getLoginPath','listCollaborators','collabStatus.conflict','_listenToOnlineEvent','_context','objects','_backgroundColor','SHOULD_CLOSE_CONN','UNIVER_SHEET','toString','_change$','target','setTimeout','_logService','_updateURLWithCurrentState','status$','find','_telemetryInfo','_initStatusComponent','[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.','UniverIcon','_pendingMutations','onStarting','reverse','collaboration-client.offline-data-not-saved','beginPath','requireSession','_notificationService','HEARTBEAT_INTERVAL','event$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_sendHeartbeatTimer','UNIVER_UNKNOWN','0\x200\x2017\x2016','offline','assignAColorForMemberID','COLLAB_SUBMIT_CHANGESET_URL','NEW_CHANGESETS','entries','hide','makeDirty','_toggleOnline','collabCursorState$','selections','/universer-api/stream/file/upload','div','_getCtorByUniverType','url','pluginName','hovered','_exhaustRemoteChangesetQueue','transform','_timeoutTimer','/object/','_throwTelemetryCollaborationNewChangeset','commentUpdate$','_handleHover','liveShareOperation','_socket','fetchMissingChangesets','/-/object/list','subscribe','collabStatus.notCollab','none','_getRedoStack','21hCmmCe','[OfflineState]:\x20received\x20rejection.','_transformSelections','removeParam','_registerDependencies','svg','_snapshotServerService','_renderManagerService','OTHER_CLIENTS_EDITING','use','state$','onlineStatus','POST','HELLO','_httpService','552squlKD','url(#$1','prototype','batchAllowed','patch','/collaborator','_onOffline','triggerDblclick','_snapshotService','parse','_range','_handleJoinEvent','UNKNOWN_CODE','RETRY_CONNECTING_MAX_COUNT','onTransformSelections','_urlService','random','_getUndoStack','UNDEFINED','INTERNAL_ERROR','_cursor','_handleLeaveEvent','fillRule','tag','IDLE','_anchorDot','HttpImport','_init','_collabCursorState$','message$','deleteCollaborator','_updateState','#FFF','downloadEndpointUrl','CHANGESET_ACK','collabStatus.synced','univer-online-status-icon','_onRecvEvent','OffLineSingle','getRangePointData','from','_replayCachedMutations','update','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_onMessage','snapshotServerUrl','_drawRectRange','/new_changes','APPLY_REJECT','transformByState','_members','_entities','4494pZgbBI','focused$','LIVESHARE_TERMINATE','revision','color','propertyIsEnumerable','get','_drawAnchor','_scheduleHeartbeat','_listenToOfflineEvent','_shapes','COMPRESS_MUTATION_APPLY','_schedule','location','delete','LICENSE_IMPORT_SIZE_EXCEEDED','idSuffix','/block/','_undoRedoService','getTypeOfUnitAdded$','startTime','_getMergeRange','_injector','cmd','roomMembers','session.connection-failed','restore','setWaitCount','getCollabCursors$','transformMutation','setActiveRange','/universer-api/authz','_textBubble','_cursorShapes','synced','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','headers','[CollaborationEntity]','_registerRenderDependencies','socket\x20open.','onlineStatusTitle','image/jpeg','1614SCUGOT','getViewport','UPDATE_CURSOR','encode','purple300','&source=','Undefined','state','slice','override','_scene','filter','INGEST','baseRev','_render','_createInitialState','sheetId','engine','exhaustSavingTask','round','[OfflineState]:\x20received\x20acknowledgement.','Warning','getUnitOnRev','_unlockTransition','_resendTimer','MoveRangeCommandId','onRemoteChangeset','collab-rect-range-','createSocket','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','endColumn','&to=','_collaborationTimeoutTimer','LEAVE','incrementRevOfUnit','getOwnPropertyDescriptor','11486Gsizbo','name','on-line-single_clip0_910_349','file','_getSendChangesetTimeout','unknown','getTime','_getAnchorBounding','onCommandExecuted','_clearOtherTimers','_initModules','_sheetSkeletonManagerService','clear','_socket$','changesets','univerjs-icon\x20univerjs-icon-','_clearScheduledTask','Univer','collaboratorID','FETCH_MISSING','reduce','APPLY_REVISION_CONFILICT','executeCommand','debug','onRemoteAck','_clearTimeoutTimer','getSheetBySheetId','whenReady','ONLINE','getActiveSheet','commentUpdateEvent','_id','_updateLocalCache','joinEvent','then','className','getVpScrollXYInfoByPosToVp','_uiPartsService','JOIN','workbook','/universer-api/oidc/authpage','_getSignURL','getMember','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','SUCCUSS','transformIMECache','_eventUnsubscribe','has','getCurrentUser','refreshPermission','csAckEvent','stringify','_transformUndoRedoStack','HEARTBEAT_TIMEOUT','LIVESHARE_NEW_HOST','BASE64','session.will-retry','/allowed','_clearUndo','_sessionStatus$','[DataLoaderController]','AWAITING','_transformService','objectType','MSG_FOR_ERROR','isEditing','_clearLocalCache','getSheetId','onRendered','_onRemoteRejected','univer-online','_waitForHeartbeatResponse','getRoom','data','_handleHeartbeatEvent','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','YUUMI_UNABLE_LOAD_URL','contains','709560piZGhM','_loadSheet','collab-client.tooltip.reconnect','[PendingState]:\x20unhandled\x20univer\x20type:\x20','CHANGESET_SHOULD_RETRY','_saveCache','indexOf','ERROR_IMAGE','_getSaveTimeout','csShouldRetryEvent','_status$','params','_joinRoom','sessionStatus','popstate','getDocRanges','includes','_telemetryService','_applyRemoteChangeset','_revisionService','_onUserJoin','copyFileMeta','InsertRangeMoveDownCommandId','_session','_sender','APPLY_NON_SEQUENTIAL_REVISION','jiqing500','getCurrentRevOfUnit','listRoles','registerComponent','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_incrementRevisionNumber','next','resize','unload','LICENSE_MAX_UNITS_EXCEEDED','_scheduleCollaborationTimeoutTimer','_cursorInfo$','_decreaseWaiting','getActiveRange','_name','ENSURE_SNAPSHOT_EXECUTION','appendMutation','onTransformRemoteChangesetByIMECache','session','unit','InsertRangeMoveRightCommandId','_updateLocalCursor','getLatestCsReqIdBySid','fetching\x20missing\x20changesets\x20from\x20','UNIVER_DOC','_setupSubUnitSync','close','_socketMessageSubscription','univer-online-status','hidden','endRow','Unknown\x20user','userID','_executeRemoteChangeset','memberID','isArray','fetchThroughInterceptors','ERROR_EXCEED_SIZE','PENDING','getCurrentSelections','labelPosition','SYNCED','currentSkeleton$','univer-offline','cursorInfo$','TOO_MANY_REQUESTS','split','socket\x20close','hasOwnProperty','interceptor','UNKNOWN_CMD','rgba(255,\x20255,\x20255,\x200.01)','InsertColCommandId','defs','_transformStack','isPermissionRej','result','docStateChange$','getImageSourceCache','collaboration.closeRoom','updateCollaborator','path','initWorkbookPermissionChange','_setupBeforeClosingHandler','_onCombEvent','href','csRejEvent','actions','replace','_onFetchMissResult','title','ACTIVE_UNIT_EVENT_CHANNEL','addObjects','collaboration.single-unit.warning','moveTo','createInstance','59452npLRiC','FAIL','_onConnectionOpen','saveSheetBlock','getUnit','_type','post','getUnitType','_hover','object','_unitStatus','YUUMI_SUBSCRIPTION_NOT_FOUND','MUTATION','[PendingState]:\x20received\x20rejection.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','InsertRowCommandId','_docStateChangeManagerService','NOT_FOUND','146707dIHtjz','addObject','_docSkeletonManagerService','_createInitialStateImpl','displayName','extend','getUnitStatus$','onSyncEditingCollabCursor','_color','_sendHeartbeat','NOT_COLLAB','c1Prime','COMMENT_UPDATE','CHANGESET_REJ','min','getOwnPropertySymbols','onMissedChangesetFetched','liveShareNewHost','_saveTaskMap','dispose$','replaceState','m1Prime','_refRangeService','onPointerEnter$','getParam','subUnitId','now','setUndoRedoMutationParamsCache','disposeUnit','_showConflictNotification','onSendChangeset','getMemberID','PERMISSION_DENIED','deepClone','onPointerMove$','transformRemoteChangeset','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_replaceFileID','_labelPosition','_substituteRedoStack','[CollaborationSessionService]','newCsEvent','on-line-single','_getCurrentRevision','_selfUnitIDs','startRow','updateOfflineData','searchParams','AWAITING_WITH_PENDING','sid','failed\x20to\x20apply\x20missed\x20changesets!','selection','_hideTimer','_initEventListeners','getItem','PERMISSION_REJ','startColumn','saveOfflineData','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','disposeWithMe','loadOfflineData','_entityInit$','_sendingTimer','SNAPSHOT_INVALID_SNAPSHOT','getUnhiddenWorksheets','sessionStatus$','[CollaborationSession]','replaceTextRanges','_univerInstanceService','isActive','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_changesetReqId','getUndoRedoMutationParamsCache','univer-pro.collaboration-client-socket-service','FileId','enableAuthServer','[FetchMissState]','current','_imageSourceCache','length','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','substring','_lockTransition','collabStatus.fetchMiss','image/bmp','dispose','catch','auth.needGotoLoginAlert','registerOnClose','\x0aCurrent:\x20','_tryEnsureSocket','onMissingChangesets','socket$','_event$','_tryReconnect','json','_startSheetCollabCursor','_candidateSocket','row','CONNECTOR_DATA_TOO_LARGE','getRandomValues','resourceIDs','_assignedColors','loginUrlKey','_getUploadFileURL','_disableEditing','_onConflict','_transitionLocked','INVALID_ARGUMENT','fill','icon','resolve','/resources','_startDocCollabCursor','originalMeta','cursorInfo','getRenderById','_commentService','save','defineProperty','_clearRedo','pipe','routeKey','members','generateRandomId','UNAUTHENTICATED','transformSelections','_initUnitPermissionChange','SNAPSHOT_SERVER_URL_KEY','send','toggleOffline','/universer-api/file/{fileID}/sign-url','_cachedData','registerRefRange','_collaborationSessionService','transformStack\x20failed!','[CollaborationState]:\x20apply\x20error!','getValue','_onRemoteACK','snapshot','conflict.title','DeleteRangeMoveLeftCommandId','_sessions','/role','put','onPointerLeave$','getFocusedUnit','Error\x20on\x20receiving\x20event','text','off-line-single','setItem','_HTTPService','_waitCount','_undoStacks','_socketReady','_getAPIPrefixPath','randomUUID','_disabled','requestParams','drawWith','_retryConnectingTimer','\x20in\x20_schedule.','uploadFileServerUrl','add','_ensureSubject','RemoveRowCommandId','sheetID','loadDoc','children','_removeCollabCursors','xlink:href','PSEUDO_FETCH_MISSING_RESULT','collaboration-client.config','setInterval','_acknowledgedAwaitingChangeset','_syncEditingCollabCursorService','activeSheet$','getTypeOfUnitDisposed$','forEach','doc.mutation.rich-text-editing','enableSingleActiveInstanceLock','awaitingChangeset','LICENSE_DISTRO_REJECTED','_initStatusListener','rev','getCollabEntity','_initResize','_removeClearOtherTimer','addEventListener','_transformIMECache','_heartbeatTimer','LIVESHARE_FETCH_OPERATIONS','closePath','_getAPIPrefix','onlineStatusIcon','editingUnit','_anchor','ws://127.0.0.1:8000/universer-api/comb/connect','_http','YUUMI_RATE_OVER_LIMIT','_beforeCloseService','confirm','_localStorageService','values','_toggleOffline','responseType','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','mutations','_state','lineTo','reconnect','translate(.97)','string','APPLY_DUPLICATED','subscribeEvent','UnitEmbedded','permission.title','resend','updatePermissionPoint','_singleActiveUnitService','_scheduleTimestamp','init','_sheetTransformSelectionsService','SNAPSHOT_URL_KEY','8RxiVRe','UNIVER_SLIDE','compose','[CollaborationUndoRedoService]','fetchMiss','transformMutationsWithChangeset','_fetchMissChangesets','ranges','_config','_ws','_remoteChangesetQueue','saveSnapshot','trim','colorChannel1','_colorIndex','onload','apply','/object','range','RECV','_collaborationPaused','onTransformIME','FETCH_MISS','HttpExport','UPDATE_PERMISSION_OBJ','{fileID}','1em','_drawTextRange','_transformPreviousActiveRange','_removeRoom','_lastPointer','_memberService','fromCollab','stopTime','setConfig','_updateStatus','all','/unit/','getCurrent','body','_themeService','_colorAssignService','_roomMembers$','symbol','onStateChange','getSkeleton','onRemoteRetry','_commentUpdate$','unitId\x20is\x20not\x20found','_rescheduleHeartbeat','_scheduleSaving','_localCacheService','key','defIds','_scheduleClearOtherTimer','unitId','createCollaborator','image/jpg','set','toRgbString','_initRequestHeader','clearTimeout','assign','\x0aAfter:\x20','_handleEvent','...','_startCollaboration','image/gif','fetch_missing','onRemoteRej','removeMember','fillStyle','asObservable','code','0\x200\x2016\x2016','Error','_localeService','_changesetSessionId','_commandService','saveImage','HEARTBEAT','[UniverCollaborationClientPlugin]','getConfig','/-/object/-/batch_allowed','backgroundColor','_handler','_isPermissionRej','measureText','_checkMissing','collabStatus.syncing','3803229nzWXTL','NO_OTHER_CLIENTS_EDITING','_onLocalMutation','_onCursorUpdate','socketService','uni.network.url-service','_initMergeInterceptor','getDeserializedSheetBlock','[OfflineState]:\x20received\x20changeset.','objectID','unsubscribe','off-line-single_clip0_910_343','USERS_ENTER','CONFLICT','storage','getInterceptPoints','with','unshift','awaiting','error','bottom','fillText','flatMap','\x20to\x20','subunit','onCommentUpdate','_hovered','some','SUBMIT_CHANGESET','EXCHANGE_SIGN_URL_SERVER_URL_KEY','registerRenderModule','transformChangesets','LICENSE_EXPORT_SIZE_EXCEEDED','_refreshCollabCursors','_docTransformIMECacheService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_roomMembers','_syncEditingCollabCursor','_onCursorDelete','collaboration_new_changeset','enableOfflineEditing','collab-text-anchor-','roomMembers$','type','_onConnectionFailed','registerHTTPInterceptor','x-univer-host'];_0x2b41=function(){return _0x2fca70;};return _0x2b41();}let Me=class extends _0x48670f{constructor(_0x5aa4e6,_0x59b1d2,_0x5b6e40,_0xb70c94){const _0x1fdee4=_0x23c7d1;super(),l(this,_0x1fdee4(0x16c),new _0x4a4faf(P[_0x1fdee4(0x1e5)])),(this[_0x1fdee4(0x21f)]=_0x5aa4e6,this[_0x1fdee4(0x139)]=_0x59b1d2,this[_0x1fdee4(0xdc)]=_0x5b6e40,this[_0x1fdee4(0x36a)]=_0xb70c94,this[_0x1fdee4(0x3e8)](),this[_0x1fdee4(0x292)]());}['_initStatusListener'](){const _0x4a029e=_0x23c7d1;this[_0x4a029e(0x216)](this['_univerInstanceService'][_0x4a029e(0xc7)][_0x4a029e(0x254)](_0x1fe2f3(()=>{const _0x2adfdc=_0x4a029e,_0x4c73df=this[_0x2adfdc(0x21f)][_0x2adfdc(0x26d)]();return _0x4c73df?this[_0x2adfdc(0x36a)]['getCollabEntity$'](_0x4c73df[_0x2adfdc(0x366)]()):_0xaed9b5(null);}),_0x1fe2f3(_0x2bf2d1=>_0x2bf2d1?_0x2bf2d1[_0x4a029e(0x3e5)]:_0xaed9b5(P['NOT_COLLAB'])))[_0x4a029e(0x7f)](_0x3eca65=>{const _0x3a5107=_0x4a029e;this[_0x3a5107(0x16c)][_0x3a5107(0x183)](_0x3eca65);}));}[_0x23c7d1(0x3e8)](){const _0x3452d0=_0x23c7d1;this[_0x3452d0(0x216)](this['_uiPartsService'][_0x3452d0(0x17f)](_0x432ccf['HEADER_MENU'],()=>_0x1ae714(wo({'status$':this['_status$'][_0x3452d0(0x303)]()}),this[_0x3452d0(0xdc)])));}};Me=Do([Be(0x0,_0x9f62da),Be(0x1,_0x5cc120),Be(0x2,_0x4dc04f(_0x22396d)),Be(0x3,_0x4dc04f(Le))],Me);function wo(_0x3f48c3){const {status$:_0x55f07f}=_0x3f48c3;return function(){const _0x50bc03=_0x3e56;return _0x483511[_0x50bc03(0x3a7)](To,{'status$':_0x55f07f});};}const Zs=_0x437a8e(_0x23c7d1(0x31a));var Po=Object[_0x23c7d1(0x252)],yo=Object['getOwnPropertyDescriptor'],Uo=(_0x13ea99,_0x39d8de,_0x23fff3,_0x2ac88f)=>{const _0x459993=_0x23c7d1;for(var _0x20cc28=_0x2ac88f>0x1?void 0x0:_0x2ac88f?yo(_0x39d8de,_0x23fff3):_0x39d8de,_0x3d7944=_0x13ea99[_0x459993(0x22a)]-0x1,_0x20b74a;_0x3d7944>=0x0;_0x3d7944--)(_0x20b74a=_0x13ea99[_0x3d7944])&&(_0x20cc28=(_0x2ac88f?_0x20b74a(_0x39d8de,_0x23fff3,_0x20cc28):_0x20b74a(_0x20cc28))||_0x20cc28);return _0x2ac88f&&_0x20cc28&&Po(_0x39d8de,_0x23fff3,_0x20cc28),_0x20cc28;},ge=(_0x475ed3,_0x1af18e)=>(_0x24c00d,_0x42d431)=>_0x1af18e(_0x24c00d,_0x42d431,_0x475ed3);let Je=class extends _0x55967c{constructor(_0x2b2bb4,_0x20ed01,_0x27f8e6,_0x3efefb,_0x4f24bd,_0x190393){const _0x530067=_0x23c7d1;super(),this[_0x530067(0xa1)]=_0x2b2bb4,this[_0x530067(0x3e3)]=_0x20ed01,this[_0x530067(0x309)]=_0x27f8e6,this[_0x530067(0x2ee)]=_0x3efefb,this[_0x530067(0x9a)]=_0x4f24bd,_0x190393?_0x190393==null||_0x190393[_0x530067(0x12f)]()['then'](()=>this[_0x530067(0xad)]()):(this[_0x530067(0x3e3)][_0x530067(0x12b)](_0x530067(0x150),_0x530067(0x180)),this[_0x530067(0xad)]());}async[_0x23c7d1(0xad)](){const _0x3464f2=_0x23c7d1,_0x35a903=this[_0x3464f2(0xa1)]['getParam'](_0x3464f2(0x190)),_0x896e08=this[_0x3464f2(0xa1)]['getParam'](_0x3464f2(0x340));if(!_0x35a903||!_0x896e08){this[_0x3464f2(0x3e3)][_0x3464f2(0x12b)]('[DataLoaderController]',_0x3464f2(0x221));return;}switch(Number(_0x896e08)){case k[_0x3464f2(0x3de)]:{const _0x336b77=await this[_0x3464f2(0x163)](_0x35a903);this[_0x3464f2(0x196)](_0x336b77);break;}case k['UNIVER_DOC']:{await this['_loadDoc'](_0x35a903);break;}default:{this[_0x3464f2(0x3e3)][_0x3464f2(0x328)](_0x3464f2(0x150),_0x3464f2(0x2a9));break;}}}async[_0x23c7d1(0x196)](_0xc5f3ff){const _0x2ae90b=_0x23c7d1;await this['_updateSubUnitFromURLParams'](_0xc5f3ff),_0xc5f3ff[_0x2ae90b(0x28b)][_0x2ae90b(0x254)](_0x21580d(this['dispose$']))[_0x2ae90b(0x7f)](_0x39500f=>{const _0x2fea69=_0x2ae90b;_0x39500f&&this[_0x2fea69(0x3e4)](_0x39500f);}),this['_urlService'][_0x2ae90b(0x375)]['pipe'](_0x21580d(this[_0x2ae90b(0x1ee)]))[_0x2ae90b(0x7f)](()=>this['_updateSubUnitFromURLParams'](_0xc5f3ff));}[_0x23c7d1(0x3e4)](_0x28bf2a,_0x567148=!0x1){const _0x55f71b=_0x23c7d1,_0x55b18a=this['_urlService'][_0x55f71b(0x1f3)](_0x55f71b(0x32d));_0x28bf2a[_0x55f71b(0x157)]()!==_0x55b18a&&this[_0x55f71b(0xa1)]['setParam']('subunit',_0x28bf2a['getSheetId'](),_0x567148);}async['_updateSubUnitFromURLParams'](_0x532fc4){const _0x3a2dd9=_0x23c7d1;var _0x58d05c;const _0x458313=this[_0x3a2dd9(0xa1)][_0x3a2dd9(0x1f3)](_0x3a2dd9(0x32d));if(!_0x458313||!_0x532fc4[_0x3a2dd9(0x12e)](_0x458313)){const _0x23ee12=_0x532fc4[_0x3a2dd9(0x21b)]()[0x0],_0x3a5565=_0x532fc4['getSheetBySheetId'](_0x23ee12);if(!_0x3a5565)return;this[_0x3a2dd9(0x3e4)](_0x3a5565,!0x0),await this[_0x3a2dd9(0x309)]['executeCommand'](_0x1d2849['id'],{'unitId':_0x532fc4[_0x3a2dd9(0x366)](),'subUnitId':_0x23ee12});return;}((_0x58d05c=_0x532fc4[_0x3a2dd9(0x131)]())==null?void 0x0:_0x58d05c[_0x3a2dd9(0x157)]())!==_0x458313&&await this['_commandService']['executeCommand'](_0x1d2849['id'],{'unitId':_0x532fc4[_0x3a2dd9(0x366)](),'subUnitId':_0x458313});}async[_0x23c7d1(0x163)](_0x354479){const _0x202566=_0x23c7d1;let _0x5931b2=0x0;const _0x187169=await this[_0x202566(0x2ee)]['loadOfflineData'](_0x354479);return _0x187169&&(_0x187169['awaitingChangeset']||_0x187169[_0x202566(0x2aa)]['length']!==0x0)&&(_0x5931b2=_0x187169[_0x202566(0x293)]),_0x5931b2===0x0&&this['_logService'][_0x202566(0x12b)](_0x202566(0x150),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x202566(0x9a)][_0x202566(0x397)](_0x354479,_0x5931b2);}async['_loadDoc'](_0x5710d5){const _0x313475=_0x23c7d1;let _0xcd61fa=0x0;const _0x32c6b4=await this['_localCacheService'][_0x313475(0x217)](_0x5710d5);return _0x32c6b4&&(_0x32c6b4['awaitingChangeset']||_0x32c6b4[_0x313475(0x2aa)][_0x313475(0x22a)]!==0x0)&&(_0xcd61fa=_0x32c6b4[_0x313475(0x293)]),_0xcd61fa===0x0&&this['_logService'][_0x313475(0x12b)]('[DataLoaderController]',_0x313475(0x389)),this[_0x313475(0x9a)][_0x313475(0x282)](_0x5710d5,_0xcd61fa);}};Je=Uo([ge(0x0,Zs),ge(0x1,_0x20dcfc),ge(0x2,_0x45f63f),ge(0x3,_0x4dc04f(w)),ge(0x4,_0x4dc04f(_0x53a932)),ge(0x5,_0x4ab0b0(_0x3016d2))],Je);var No=Object[_0x23c7d1(0x252)],Mo=Object['getOwnPropertyDescriptor'],Ao=(_0x1d7796,_0x2ac9d,_0x4cf515,_0x301f27)=>{for(var _0x442f0c=_0x301f27>0x1?void 0x0:_0x301f27?Mo(_0x2ac9d,_0x4cf515):_0x2ac9d,_0x339b04=_0x1d7796['length']-0x1,_0x37c261;_0x339b04>=0x0;_0x339b04--)(_0x37c261=_0x1d7796[_0x339b04])&&(_0x442f0c=(_0x301f27?_0x37c261(_0x2ac9d,_0x4cf515,_0x442f0c):_0x37c261(_0x442f0c))||_0x442f0c);return _0x301f27&&_0x442f0c&&No(_0x2ac9d,_0x4cf515,_0x442f0c),_0x442f0c;},Ss=(_0xb0215f,_0x58d3cb)=>(_0x584968,_0x4fcb36)=>_0x58d3cb(_0x584968,_0x4fcb36,_0xb0215f);const Lo='DEFAULT_FILE_NAME',$o=_0x23c7d1(0x125);let ze=class extends _0x48670f{constructor(_0x52c386,_0x5e6136){const _0x2777cd=_0x23c7d1;super(),this['_univerInstanceService']=_0x52c386,this[_0x2777cd(0x3c0)]=_0x5e6136,this[_0x2777cd(0xad)]();}['_init'](){const _0xd5c424=_0x23c7d1;this['disposeWithMe'](this['_univerInstanceService'][_0xd5c424(0xc7)]['subscribe'](()=>{const _0x33f737=_0xd5c424;var _0x334194;const _0x73e48d=this[_0x33f737(0x21f)][_0x33f737(0x26d)]();let _0x4623a9=(_0x334194=this[_0x33f737(0x3c0)][_0x33f737(0x30d)](Lo))!=null?_0x334194:$o;_0x73e48d instanceof _0x1e3463&&(_0x4623a9=_0x73e48d[_0x33f737(0x115)]),document[_0x33f737(0x1c3)]=_0x4623a9;}));}};ze=Ao([Ss(0x0,_0x9f62da),Ss(0x1,_0x5ae707)],ze);var jo=Object[_0x23c7d1(0x252)],Ho=Object[_0x23c7d1(0x113)],xo=(_0x2b7b43,_0x2f10d6,_0x96bad1,_0x309645)=>{for(var _0xdf4daf=_0x309645>0x1?void 0x0:_0x309645?Ho(_0x2f10d6,_0x96bad1):_0x2f10d6,_0x253759=_0x2b7b43['length']-0x1,_0x5e45a8;_0x253759>=0x0;_0x253759--)(_0x5e45a8=_0x2b7b43[_0x253759])&&(_0xdf4daf=(_0x309645?_0x5e45a8(_0x2f10d6,_0x96bad1,_0xdf4daf):_0x5e45a8(_0xdf4daf))||_0xdf4daf);return _0x309645&&_0xdf4daf&&jo(_0x2f10d6,_0x96bad1,_0xdf4daf),_0xdf4daf;},St=(_0x95bd6b,_0x3d9b08)=>(_0x4e5594,_0x21fe89)=>_0x3d9b08(_0x4e5594,_0x21fe89,_0x95bd6b);let Ze=class{constructor(_0x4dba70,_0x131599,_0x24f30){const _0x171a0e=_0x23c7d1;this[_0x171a0e(0x3c0)]=_0x4dba70,this['_httpService']=_0x131599,this[_0x171a0e(0x351)]=_0x24f30,this[_0x171a0e(0x2b8)]();}[_0x23c7d1(0x2b8)](){const _0x3e1bac=_0x23c7d1;this[_0x3e1bac(0x91)][_0x3e1bac(0x342)]({'priority':0x1,'interceptor':(_0x580b79,_0x1f498f)=>_0x1f498f(_0x580b79)[_0x3e1bac(0x254)](_0x3fbd3f(async _0x15c5cf=>{const _0x53a9f0=_0x3e1bac,_0x5da9f0=_0x15c5cf;if(_0x5da9f0['status']===0x191&&window[_0x53a9f0(0x2a4)](this[_0x53a9f0(0x351)]['t'](_0x53a9f0(0x232)))){const _0x84fe0c=window[_0x53a9f0(0x3c7)](window[_0x53a9f0(0xd3)][_0x53a9f0(0x1be)]);window[_0x53a9f0(0xd3)][_0x53a9f0(0x1be)]=this[_0x53a9f0(0x3d6)]()+'?url='+_0x84fe0c;}return _0x5da9f0;}))});}[_0x23c7d1(0x3d6)](){const _0x1e71e8=_0x23c7d1;var _0x519f33,_0x473245;const _0x2e9bd3=this[_0x1e71e8(0x3c0)]['getConfig'](Ln),_0x2d9305=this[_0x1e71e8(0x3c0)][_0x1e71e8(0x30d)]($);return(_0x473245=(_0x519f33=_0x2d9305==null?void 0x0:_0x2d9305[_0x1e71e8(0x242)])!=null?_0x519f33:_0x2e9bd3)!=null?_0x473245:$n;}};Ze=xo([St(0x0,_0x5ae707),St(0x1,_0x4dc04f(_0x3bbd66)),St(0x2,_0x4dc04f(_0x19fdc8))],Ze);var ko=Object[_0x23c7d1(0x252)],Bo=Object[_0x23c7d1(0x113)],Vo=(_0x576049,_0x393588,_0x58c2ee,_0x214ba9)=>{const _0x5964ac=_0x23c7d1;for(var _0x4c311a=_0x214ba9>0x1?void 0x0:_0x214ba9?Bo(_0x393588,_0x58c2ee):_0x393588,_0x353c70=_0x576049[_0x5964ac(0x22a)]-0x1,_0x107317;_0x353c70>=0x0;_0x353c70--)(_0x107317=_0x576049[_0x353c70])&&(_0x4c311a=(_0x214ba9?_0x107317(_0x393588,_0x58c2ee,_0x4c311a):_0x107317(_0x4c311a))||_0x4c311a);return _0x214ba9&&_0x4c311a&&ko(_0x393588,_0x58c2ee,_0x4c311a),_0x4c311a;},ps=(_0x3d4439,_0x2235c3)=>(_0x1ffe5d,_0x551564)=>_0x2235c3(_0x1ffe5d,_0x551564,_0x3d4439);const Fo='AUTHZ_URL_KEY',Wo=_0x23c7d1(0xe5);let yt=class extends _0x48670f{constructor(_0x498728,_0x247cd6){const _0x12fb08=_0x23c7d1;super(),this[_0x12fb08(0x272)]=_0x498728,this[_0x12fb08(0x3c0)]=_0x247cd6,this['_initMergeInterceptor']();}[_0x23c7d1(0x31b)](){const _0x19c911=_0x23c7d1,_0x4c2605=this;this[_0x19c911(0x216)](this['_HTTPService'][_0x19c911(0x342)]({'priority':0x3e7,'interceptor':_0x37a48f({'isMatch'(_0x2f6be0){const _0x48493b=_0x19c911;var _0x15a92b;if(_0x2f6be0[_0x48493b(0x3a6)]==='POST'&&((_0x15a92b=_0x2f6be0[_0x48493b(0x279)])!=null&&_0x15a92b[_0x48493b(0x2e2)])){const {objectID:_0xc4c2f9,objectType:_0x400d38}=_0x2f6be0[_0x48493b(0x279)][_0x48493b(0x2e2)]||{};if(!_0xc4c2f9||_0x400d38===void 0x0)return!0x1;const _0x5e1a67=_0x4c2605[_0x48493b(0x276)]()+'/'+_0x400d38+_0x48493b(0x40b)+_0xc4c2f9+_0x48493b(0x14d);if(_0x2f6be0[_0x48493b(0x405)]===_0x5e1a67)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xefe939){const _0x44bd20=_0x19c911;var _0x5d97eb;return(_0x5d97eb=_0xefe939[_0x44bd20(0x279)])==null?void 0x0:_0x5d97eb['body'];},'mergeParamsToRequest'(_0x412c7e,_0x570527){const _0x274396=_0x19c911,_0x4b05fb=_0x4c2605[_0x274396(0x276)]()+_0x274396(0x30e),_0x22fdcc=_0x412c7e['reduce']((_0x539e07,_0x3b71c7)=>{const _0x39028b=_0x274396,{unitID:_0x13e63b,objectID:_0x23b34c,objectType:_0x2abfbb,actions:_0xd8766f}=_0x3b71c7;return _0x539e07[_0x13e63b]||(_0x539e07[_0x13e63b]={}),_0x539e07[_0x13e63b][_0x23b34c]||(_0x539e07[_0x13e63b][_0x23b34c]={'objectID':_0x23b34c,'objectType':_0x2abfbb,'actions':[]}),_0x539e07[_0x13e63b][_0x23b34c][_0x39028b(0x1c0)][_0x39028b(0x3d1)](..._0xd8766f),_0x539e07;},{}),_0xe16a13=[];for(const _0xf1cafa in _0x22fdcc)for(const _0x272b72 in _0x22fdcc[_0xf1cafa]){const {actions:_0x287b2c,objectType:_0xfbe801}=_0x22fdcc[_0xf1cafa][_0x272b72],_0x137cda=[...new Set(_0x287b2c)];_0xe16a13[_0x274396(0x3d1)]({'unitID':_0xf1cafa,'objectID':_0x272b72,'objectType':_0xfbe801,'actions':_0x137cda});}return new _0x24e2ab('POST',_0x4b05fb,{'headers':_0x570527['headers'],'withCredentials':_0x570527[_0x274396(0x39d)],'responseType':_0x570527[_0x274396(0x2a8)],'body':{'requests':_0xe16a13}});}},{'distributeResult'(_0x353a73,_0x238d87){const _0x4d527a=_0x19c911,{objectActions:_0x411cd3}=_0x353a73;return _0x238d87[_0x4d527a(0x396)](_0x314992=>{const _0x274fbf=_0x4d527a,{unitID:_0x227e24,objectID:_0x1c4e33,actions:_0x112b43}=_0x314992,_0x26581c=_0x411cd3[_0x274fbf(0x3e6)](_0xb2c5d7=>_0xb2c5d7[_0x274fbf(0x347)]===_0x227e24&&_0xb2c5d7[_0x274fbf(0x31e)]===_0x1c4e33),_0x43caaa=_0x112b43[_0x274fbf(0x396)](_0x344414=>_0x26581c==null?void 0x0:_0x26581c[_0x274fbf(0x1c0)]['find'](_0xfa4311=>_0xfa4311['action']===_0x344414))[_0x274fbf(0xfb)](_0x58c767=>!!_0x58c767);return{'config':_0x314992,'result':{'actions':_0x43caaa,'error':_0x353a73[_0x274fbf(0x328)]}};});}})}));}['_getAPIPrefixPath'](){const _0x12cc8d=_0x23c7d1;var _0x5c68bf,_0x1e6969;const _0x30543d=this[_0x12cc8d(0x3c0)][_0x12cc8d(0x30d)](Fo),_0x1c5fe4=this[_0x12cc8d(0x3c0)][_0x12cc8d(0x30d)]($);return(_0x1e6969=(_0x5c68bf=_0x1c5fe4==null?void 0x0:_0x1c5fe4['authzUrl'])!=null?_0x5c68bf:_0x30543d)!=null?_0x1e6969:Wo;}async[_0x23c7d1(0x3c4)](_0x2257dc){const _0x54311f=_0x23c7d1,_0x4d9a27=this['_getAPIPrefixPath']()+'/'+_0x2257dc[_0x54311f(0x153)]+_0x54311f(0x2cc);return(await this[_0x54311f(0x272)][_0x54311f(0x1cf)](_0x4d9a27,{'body':_0x2257dc}))[_0x54311f(0x2e2)][_0x54311f(0x31e)]||'';}async['list'](_0x4e7b93){const _0x1a3b43=_0x23c7d1,_0x158ca5=this[_0x1a3b43(0x276)]()+_0x1a3b43(0x7e);return(await this['_HTTPService'][_0x1a3b43(0x1cf)](_0x158ca5,{'body':_0x4e7b93}))['body'][_0x1a3b43(0x3db)];}async[_0x23c7d1(0xbc)](_0x26c82e){const _0x5429ba=_0x23c7d1,_0x514b4a=this[_0x5429ba(0x276)]()+'/'+_0x26c82e['objectType']+'/object/'+_0x26c82e[_0x5429ba(0x31e)];await this[_0x5429ba(0x272)][_0x5429ba(0x26b)](_0x514b4a,{'body':_0x26c82e});}async['allowed'](_0x2c8518){const _0x2ffeec=_0x23c7d1,_0x180402=this['_getAPIPrefixPath']()+'/'+_0x2c8518[_0x2ffeec(0x153)]+_0x2ffeec(0x40b)+_0x2c8518['objectID']+_0x2ffeec(0x14d);return(await this['_HTTPService'][_0x2ffeec(0x1cf)](_0x180402,{'body':_0x2c8518}))[_0x2ffeec(0x2e2)]['actions'];}async[_0x23c7d1(0x95)](_0x1817bf){const _0x98958d=_0x23c7d1,_0x494395=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x98958d(0x272)]['post'](_0x494395,{'body':{'requests':_0x1817bf}}))[_0x98958d(0x2e2)]['objectActions'];}async[_0x23c7d1(0x17e)](_0x20b5fe){const _0x55dec6=_0x23c7d1,_0x265f96=this['_getAPIPrefixPath']()+'/'+_0x20b5fe[_0x55dec6(0x153)]+_0x55dec6(0x26a),_0x296894=await this[_0x55dec6(0x272)][_0x55dec6(0x1cf)](_0x265f96,{'body':_0x20b5fe});return{'roles':_0x296894[_0x55dec6(0x2e2)]['roles'],'actions':_0x296894['body']['actions']};}async[_0x23c7d1(0xb0)](_0x5b30b0){const _0x353cf3=_0x23c7d1,_0x142022=this[_0x353cf3(0x276)]()+_0x353cf3(0x97);await this[_0x353cf3(0x272)]['delete'](_0x142022,{'params':{'collaboratorID':_0x5b30b0[_0x353cf3(0x126)],'objectID':_0x5b30b0[_0x353cf3(0x31e)],'unitID':_0x5b30b0['unitID']}});}async[_0x23c7d1(0x1b9)](_0x184607){const _0x4fd015=_0x23c7d1,_0x557e74=this[_0x4fd015(0x276)]()+'/collaborator';await this[_0x4fd015(0x272)][_0x4fd015(0x96)](_0x557e74,{'body':_0x184607});}async[_0x23c7d1(0x2f3)](_0x2dee35){const _0x4b64f=_0x23c7d1,_0x41ffbd=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x4b64f(0x272)][_0x4b64f(0x1cf)](_0x41ffbd,{'body':_0x2dee35});}async[_0x23c7d1(0x3d7)](_0x33bd47){const _0x401547=_0x23c7d1,_0x1982be=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x401547(0x272)][_0x401547(0xcc)](_0x1982be,{'params':{'objectID':_0x33bd47[_0x401547(0x31e)],'unitID':_0x33bd47[_0x401547(0x347)]}}))[_0x401547(0x2e2)][_0x401547(0x3cc)];}async['putCollaborators'](_0x1ace7f){const _0x4b10e9=_0x23c7d1,_0x1857d9=this[_0x4b10e9(0x276)]()+'/collaborator';await this[_0x4b10e9(0x272)][_0x4b10e9(0x26b)](_0x1857d9,{'body':_0x1ace7f});}};yt=Vo([ps(0x0,_0x4dc04f(_0x3bbd66)),ps(0x1,_0x4dc04f(_0x5ae707))],yt);var Go=Object[_0x23c7d1(0x252)],Yo=Object[_0x23c7d1(0x113)],Ko=(_0x283c79,_0x1900b0,_0x86b49,_0x501117)=>{const _0x53c4ed=_0x23c7d1;for(var _0xaef434=_0x501117>0x1?void 0x0:_0x501117?Yo(_0x1900b0,_0x86b49):_0x1900b0,_0x2aa725=_0x283c79[_0x53c4ed(0x22a)]-0x1,_0x335403;_0x2aa725>=0x0;_0x2aa725--)(_0x335403=_0x283c79[_0x2aa725])&&(_0xaef434=(_0x501117?_0x335403(_0x1900b0,_0x86b49,_0xaef434):_0x335403(_0xaef434))||_0xaef434);return _0x501117&&_0xaef434&&Go(_0x1900b0,_0x86b49,_0xaef434),_0xaef434;},Xo=(_0x4ba1cc,_0x19cc34)=>(_0x3fd9a9,_0x25c40d)=>_0x19cc34(_0x3fd9a9,_0x25c40d,_0x4ba1cc);let Qe=class{constructor(_0x1f26ed){this['_httpService']=_0x1f26ed,this['_initRequestHeader']();}[_0x23c7d1(0x2f7)](){const _0x358037=_0x23c7d1;this['_httpService'][_0x358037(0x342)]({'interceptor':(_0x3a3d5c,_0x47a204)=>{const _0x1c52cb=_0x358037,_0x180b48=_0x3a3d5c[_0x1c52cb(0xea)],_0x13acc9=_0x1af55d();return _0x13acc9&&_0x180b48[_0x1c52cb(0x2f5)](_0x1c52cb(0x343),_0x13acc9),_0x47a204(_0x3a3d5c);}});}};Qe=Ko([Xo(0x0,_0x4dc04f(_0x3bbd66))],Qe);var qo=Object[_0x23c7d1(0x252)],Jo=Object[_0x23c7d1(0x113)],zo=(_0x49d5e9,_0x11d5b0,_0x438d95,_0x1c1781)=>{const _0x5a9e73=_0x23c7d1;for(var _0xbd8a81=_0x1c1781>0x1?void 0x0:_0x1c1781?Jo(_0x11d5b0,_0x438d95):_0x11d5b0,_0x337f1d=_0x49d5e9[_0x5a9e73(0x22a)]-0x1,_0x16a9e0;_0x337f1d>=0x0;_0x337f1d--)(_0x16a9e0=_0x49d5e9[_0x337f1d])&&(_0xbd8a81=(_0x1c1781?_0x16a9e0(_0x11d5b0,_0x438d95,_0xbd8a81):_0x16a9e0(_0xbd8a81))||_0xbd8a81);return _0x1c1781&&_0xbd8a81&&qo(_0x11d5b0,_0x438d95,_0xbd8a81),_0xbd8a81;},pt=(_0x3a5115,_0x55acd2)=>(_0x43ea30,_0x36bb3f)=>_0x55acd2(_0x43ea30,_0x36bb3f,_0x3a5115);const Zo=['image/png',_0x23c7d1(0xef),_0x23c7d1(0x2f4),_0x23c7d1(0x2fe),_0x23c7d1(0x22f)],Qo=0x5*0x400*0x400,ea=_0x23c7d1(0x1ff),ta=_0x23c7d1(0x402),sa=_0x23c7d1(0x332),ia=_0x23c7d1(0x25e);let Ut=class{constructor(_0x2dd2a4,_0x4838a9,_0xddcc70){const _0x2b50b9=_0x23c7d1;l(this,_0x2b50b9(0x273),0x0),l(this,'_change$',new _0x41261f()),l(this,_0x2b50b9(0x353),this[_0x2b50b9(0x3e0)]),l(this,_0x2b50b9(0x229),new Map()),(this[_0x2b50b9(0x91)]=_0x2dd2a4,this[_0x2b50b9(0x3c0)]=_0x4838a9,this['_univerInstanceService']=_0xddcc70);}[_0x23c7d1(0xe1)](_0x338372){const _0x3150b2=_0x23c7d1;this[_0x3150b2(0x273)]=_0x338372,this[_0x3150b2(0x3e0)][_0x3150b2(0x183)](_0x338372);}[_0x23c7d1(0x1b7)](_0x4bb3fa,_0x55c73e){const _0x429f71=_0x23c7d1;if(_0x55c73e===_0x558861[_0x429f71(0x14b)]){const _0x592b52=new Image();return _0x592b52['src']=_0x4bb3fa,_0x592b52;}return this[_0x429f71(0x229)][_0x429f71(0xcc)](_0x4bb3fa);}[_0x23c7d1(0x358)](_0x1b70fd,_0x288926,_0x462720){const _0x3b8eca=_0x23c7d1;_0x288926===_0x558861[_0x3b8eca(0x14b)]||_0x462720==null||this[_0x3b8eca(0x229)][_0x3b8eca(0x2f5)](_0x1b70fd,_0x462720);}async[_0x23c7d1(0x39e)](_0x30f34f){const _0x3b3c9e=_0x23c7d1;try{const _0x36dd35=this[_0x3b3c9e(0x200)](this[_0x3b3c9e(0x13d)](),''+_0x30f34f),_0x51f7f2=(await this[_0x3b3c9e(0x91)]['get'](_0x36dd35))[_0x3b3c9e(0x2e2)];if(_0x51f7f2[_0x3b3c9e(0x328)]&&_0x51f7f2[_0x3b3c9e(0x328)][_0x3b3c9e(0x304)]===xs['OK']){const _0x54e396=new URL(_0x51f7f2[_0x3b3c9e(0x405)],this[_0x3b3c9e(0x377)]())[_0x3b3c9e(0x3df)]();return Promise[_0x3b3c9e(0x24a)](_0x54e396);}return Promise[_0x3b3c9e(0x390)](_0x51f7f2[_0x3b3c9e(0x328)]);}catch(_0x74885c){return Promise[_0x3b3c9e(0x390)](_0x74885c);}}async[_0x23c7d1(0x30a)](_0x320d9d){const _0x3780b9=_0x23c7d1;let _0x1f9e47='';if(!Zo[_0x3780b9(0x172)](_0x320d9d[_0x3780b9(0x340)]))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x4631a2[_0x3780b9(0x380)]));if(_0x320d9d[_0x3780b9(0x37a)]>Qo)return this[_0x3780b9(0x189)](),Promise['reject'](new Error(_0x4631a2[_0x3780b9(0x1a2)]));try{const _0x3b9b06=new FormData();_0x3b9b06[_0x3780b9(0x393)](_0x3780b9(0x117),_0x320d9d);const _0x57607e=this['_univerInstanceService'][_0x3780b9(0x26d)](),_0x460019=_0x57607e==null?void 0x0:_0x57607e[_0x3780b9(0x366)]();if(!_0x460019)throw new Error(_0x3780b9(0x2eb));const _0x27e160=this[_0x3780b9(0x243)]()+'?size='+_0x320d9d[_0x3780b9(0x37a)]['toString']()+_0x3780b9(0xf5)+ks[_0x3780b9(0x2b2)]+'&assign='+encodeURIComponent(_0x460019),_0x447d3c=await(await fetch(_0x27e160,{'method':_0x3780b9(0x8f),'body':_0x3b9b06}))[_0x3780b9(0x23a)]();if(typeof _0x447d3c[_0x3780b9(0x225)]!=_0x3780b9(0x2af))return this['_decreaseWaiting'](),Promise[_0x3780b9(0x390)](new Error(_0x4631a2[_0x3780b9(0x169)]));_0x1f9e47=_0x447d3c['FileId'];}catch{return this[_0x3780b9(0x189)](),Promise['reject'](new Error(_0x4631a2[_0x3780b9(0x169)]));}return new Promise((_0x5bb2a4,_0x4235e1)=>{const _0x12fdbe=_0x3780b9,_0x54f0ba=new FileReader();_0x54f0ba[_0x12fdbe(0x369)](_0x320d9d),_0x54f0ba[_0x12fdbe(0x2ca)]=_0x2144a8=>{const _0x153065=_0x12fdbe;var _0x423c66;const _0x26c004=(_0x423c66=_0x2144a8[_0x153065(0x3e1)])==null?void 0x0:_0x423c66[_0x153065(0x1b5)];if(_0x26c004==null){this[_0x153065(0x189)](),_0x4235e1(new Error(_0x4631a2[_0x153065(0x169)]));return;}const _0x60dbf5=_0x344d53['generateRandomId'](0x6);_0x5bb2a4({'imageId':_0x60dbf5,'imageSourceType':_0x558861['UUID'],'source':_0x1f9e47,'base64Cache':_0x26c004,'status':_0x4631a2[_0x153065(0x140)]}),this[_0x153065(0x189)]();};});}['_getUploadFileURL'](){const _0xe3de36=_0x23c7d1;var _0x3d175f,_0x3fa53c;const _0x5beb7e=this[_0xe3de36(0x3c0)][_0xe3de36(0x30d)](ea),_0x52cbde=this[_0xe3de36(0x3c0)][_0xe3de36(0x30d)]($);return(_0x3fa53c=(_0x3d175f=_0x52cbde==null?void 0x0:_0x52cbde[_0xe3de36(0x27d)])!=null?_0x3d175f:_0x5beb7e)!=null?_0x3fa53c:ta;}['_getSignURL'](){const _0x3641db=_0x23c7d1;var _0x5c8f18,_0x270231;const _0xabc888=this[_0x3641db(0x3c0)][_0x3641db(0x30d)](sa),_0x1078b4=this[_0x3641db(0x3c0)][_0x3641db(0x30d)]($);return(_0x270231=(_0x5c8f18=_0x1078b4==null?void 0x0:_0x1078b4['signUrlServerUrl'])!=null?_0x5c8f18:_0xabc888)!=null?_0x270231:ia;}['_getDownloadEndpointURL'](){const _0x29449a=_0x23c7d1;var _0x530d24;const _0x1efd44=this[_0x29449a(0x3c0)][_0x29449a(0x30d)]($);return(_0x530d24=_0x1efd44==null?void 0x0:_0x1efd44[_0x29449a(0xb3)])!=null?_0x530d24:location['origin'];}[_0x23c7d1(0x200)](_0x55ffd4,_0x1dbc3c){const _0x4dc073=_0x23c7d1;return _0x55ffd4[_0x4dc073(0x1c1)](_0x4dc073(0x2d4),_0x1dbc3c);}[_0x23c7d1(0x189)](){const _0xe365e5=_0x23c7d1;this[_0xe365e5(0x273)]-=0x1,this[_0xe365e5(0x3e0)][_0xe365e5(0x183)](this[_0xe365e5(0x273)]);}};Ut=zo([pt(0x0,_0x4dc04f(_0x3bbd66)),pt(0x1,_0x5ae707),pt(0x2,_0x4dc04f(_0x9f62da))],Ut);var na=Object[_0x23c7d1(0x252)],ra=Object[_0x23c7d1(0x113)],oa=(_0x2bfd5e,_0x4f0831,_0x28152b,_0x2d8446)=>{const _0x173090=_0x23c7d1;for(var _0x500114=_0x2d8446>0x1?void 0x0:_0x2d8446?ra(_0x4f0831,_0x28152b):_0x4f0831,_0x5bcfa5=_0x2bfd5e[_0x173090(0x22a)]-0x1,_0x41a234;_0x5bcfa5>=0x0;_0x5bcfa5--)(_0x41a234=_0x2bfd5e[_0x5bcfa5])&&(_0x500114=(_0x2d8446?_0x41a234(_0x4f0831,_0x28152b,_0x500114):_0x41a234(_0x500114))||_0x500114);return _0x2d8446&&_0x500114&&na(_0x4f0831,_0x28152b,_0x500114),_0x500114;},ye=(_0x432524,_0x2fb3c8)=>(_0x4ecb9a,_0x443f85)=>_0x2fb3c8(_0x4ecb9a,_0x443f85,_0x432524);let et=class extends _0x55967c{constructor(_0x13b428,_0x4766cd,_0x5c74ea,_0x57ac46,_0x13933f){const _0x4bd81e=_0x23c7d1;super(),this[_0x4bd81e(0xdc)]=_0x13b428,this[_0x4bd81e(0x21f)]=_0x4766cd,this['_permissionService']=_0x5c74ea,this[_0x4bd81e(0x261)]=_0x57ac46,this['_localeService']=_0x13933f,this[_0x4bd81e(0x25a)](),this[_0x4bd81e(0x37d)]();}[_0x23c7d1(0x37d)](){const _0x22e6ca=_0x23c7d1,_0x839c45=async _0x4bbb3e=>{const _0x13ee96=_0x3e56;(await this[_0x13ee96(0x261)][_0x13ee96(0x3f0)](_0x4bbb3e))[_0x13ee96(0x3f3)]['pipe'](_0x3cca70(_0xadd348=>_0xadd348['eventID']===_0x3e2e84[_0x13ee96(0x3dd)]),_0x1f0b24(this[_0x13ee96(0x1ee)]))[_0x13ee96(0x7f)](_0x28bfdf=>{const _0x271121=_0x13ee96,_0x1d4915=_0x28bfdf,{reason:_0x5a6c15}=_0x1d4915[_0x271121(0x15d)];this['_injector']['get'](_0x413020)['show']({'type':_0x2b8ac7[_0x271121(0x306)],'content':this[_0x271121(0x307)]['t'](_0x271121(0x1b8))+'('+_0x5a6c15+')'}),this[_0x271121(0x3d4)][_0x271121(0x2b5)](new _0x957589(_0x4bbb3e)['id'],!0x1),this[_0x271121(0x261)][_0x271121(0x3a8)](_0x4bbb3e);});};_0x3a25d1(this[_0x22e6ca(0x21f)]['getTypeOfUnitAdded$'](_0x12affe[_0x22e6ca(0x3de)]),this[_0x22e6ca(0x21f)][_0x22e6ca(0xd9)](_0x12affe['UNIVER_DOC']))[_0x22e6ca(0x254)](_0x2abcf2(_0x289d9a=>_0x289d9a['getUnitId']()),_0x3cca70(_0x3e94b4=>!_0x53df5f(_0x3e94b4)),_0x1f0b24(this[_0x22e6ca(0x1ee)]))['subscribe'](_0x55e376=>{_0x839c45(_0x55e376);});}[_0x23c7d1(0x25a)](){const _0x545e71=_0x23c7d1,_0x4a1aff=async _0x56bf96=>{const _0x1cc032=_0x3e56;(await this[_0x1cc032(0x261)][_0x1cc032(0x3f0)](_0x56bf96))[_0x1cc032(0x3f3)]['pipe'](_0x3cca70(_0x586c38=>_0x586c38[_0x1cc032(0x361)]===_0x3e2e84[_0x1cc032(0x2d3)]),_0x1f0b24(this[_0x1cc032(0x1ee)]))[_0x1cc032(0x7f)](_0x16f5a4=>{const _0x5c60a1=_0x1cc032,_0x96c85=_0x16f5a4,{objectId:_0x23ecb8}=_0x96c85['data'],_0x4a9dd2=this[_0x5c60a1(0xdc)][_0x5c60a1(0xcc)](_0x36f2d7);_0x23ecb8===_0x56bf96?_0x4a9dd2[_0x5c60a1(0x1bb)](_0x56bf96):_0x4a9dd2[_0x5c60a1(0x145)](_0x56bf96,_0x23ecb8);});};_0x3a25d1(this[_0x545e71(0x21f)][_0x545e71(0xd9)](_0x12affe['UNIVER_SHEET']),this[_0x545e71(0x21f)][_0x545e71(0xd9)](_0x12affe[_0x545e71(0x195)]))[_0x545e71(0x254)](_0x2abcf2(_0x3268b8=>_0x3268b8[_0x545e71(0x366)]()),_0x3cca70(_0x100316=>!_0x53df5f(_0x100316)),_0x1f0b24(this[_0x545e71(0x1ee)]))[_0x545e71(0x7f)](_0x4930e4=>{_0x4a1aff(_0x4930e4);});}};et=oa([ye(0x0,_0x4dc04f(_0x22396d)),ye(0x1,_0x9f62da),ye(0x2,_0x241914),ye(0x3,_0x4dc04f(he)),ye(0x4,_0x4dc04f(_0x19fdc8))],et);var aa=Object['defineProperty'],ca=Object[_0x23c7d1(0x113)],ha=(_0x5dcb0c,_0x7a7705,_0x3eb017,_0x471ead)=>{for(var _0x27909b=_0x471ead>0x1?void 0x0:_0x471ead?ca(_0x7a7705,_0x3eb017):_0x7a7705,_0x375cb6=_0x5dcb0c['length']-0x1,_0x1b6074;_0x375cb6>=0x0;_0x375cb6--)(_0x1b6074=_0x5dcb0c[_0x375cb6])&&(_0x27909b=(_0x471ead?_0x1b6074(_0x7a7705,_0x3eb017,_0x27909b):_0x1b6074(_0x27909b))||_0x27909b);return _0x471ead&&_0x27909b&&aa(_0x7a7705,_0x3eb017,_0x27909b),_0x27909b;},vs=(_0x104cb6,_0x29ac0d)=>(_0x343cae,_0x315341)=>_0x29ac0d(_0x343cae,_0x315341,_0x104cb6);let Nt=class{constructor(_0x406a9d,_0x1d1b0d){const _0x18eeb4=_0x23c7d1;this[_0x18eeb4(0x3c0)]=_0x406a9d,this['_httpService']=_0x1d1b0d;}async[_0x23c7d1(0x106)](_0x5511b2,_0x37040d){const _0x57ec7b=_0x23c7d1;var _0x2b7004;const {unitID:_0x1f83ec,type:_0x1e8bdf,revision:_0x1e16bd=0x0}=_0x37040d,_0xcf0194=this[_0x57ec7b(0x36f)]()+'/'+_0x1e8bdf+_0x57ec7b(0x2e0)+_0x1f83ec+'/rev/'+_0x1e16bd,_0x242656=(await this['_httpService']['get'](_0xcf0194))['body'],_0x37040b=(_0x2b7004=_0x242656[_0x57ec7b(0x266)])==null?void 0x0:_0x2b7004[_0x57ec7b(0x13b)];if(_0x37040b){const _0x397846=_0x37040b==null?void 0x0:_0x37040b[_0x57ec7b(0x24d)],_0x5648e6=_0x305580[_0x57ec7b(0xf3)](_0x3ad1a8(_0x397846));_0x37040b[_0x57ec7b(0x24d)]=_0x5648e6,Object[_0x57ec7b(0x3fc)](_0x37040b['sheets'])[_0x57ec7b(0x28d)](([,_0x480373])=>{const _0x4bf311=_0x57ec7b,_0x4a91ce=_0x480373[_0x4bf311(0x24d)],_0x38a4d6=_0x305580['encode'](_0x3ad1a8(_0x4a91ce));_0x480373[_0x4bf311(0x24d)]=_0x38a4d6;});}return _0x242656;}async['getSheetBlock'](_0x43abf2,_0x2574b5){const _0x40a31f=_0x23c7d1,{unitID:_0x19f7b5,type:_0x266ebe,blockID:_0x1d40a0}=_0x2574b5,_0x403226=this[_0x40a31f(0x29c)]()+'/'+_0x266ebe+_0x40a31f(0x2e0)+_0x19f7b5+_0x40a31f(0xd7)+_0x1d40a0;return(await this['_httpService']['get'](_0x403226))[_0x40a31f(0x2e2)];}async[_0x23c7d1(0x31c)](_0x540c98,_0x3c04bb){const _0x4ecdb6=_0x23c7d1,{unitID:_0x413500,type:_0x1ad7a5,blockID:_0x1ccebc}=_0x3c04bb,_0x2b74b3=this[_0x4ecdb6(0x29c)]()+'/block/'+_0x1ad7a5+_0x4ecdb6(0x2e0)+_0x413500+'/block/'+_0x1ccebc;return(await this[_0x4ecdb6(0x91)][_0x4ecdb6(0xcc)](_0x2b74b3))['body'];}async[_0x23c7d1(0x7d)](_0x116bc3,_0x4733dd){const _0x520e5a=_0x23c7d1,{unitID:_0x5acce4,type:_0x17951a,from:_0x21e5c6,to:_0x2b33cb}=_0x4733dd,_0x257627=this[_0x520e5a(0x29c)]()+'/'+_0x17951a+_0x520e5a(0x2e0)+_0x5acce4+'/fetchmissing?from='+_0x21e5c6+_0x520e5a(0x10f)+_0x2b33cb;return(await this['_httpService'][_0x520e5a(0xcc)](_0x257627))[_0x520e5a(0x2e2)];}[_0x23c7d1(0x36f)](){const _0x48dbe9=_0x23c7d1;var _0x5c875f;return(_0x5c875f=this[_0x48dbe9(0x3c0)][_0x48dbe9(0x30d)](Cn))!=null?_0x5c875f:this[_0x48dbe9(0x29c)]();}['_getAPIPrefix'](){const _0x24cd29=_0x23c7d1;var _0x48ed8a,_0x12bc9d;const _0xf9b845=this[_0x24cd29(0x3c0)][_0x24cd29(0x30d)](In),_0x29b78d=this[_0x24cd29(0x3c0)][_0x24cd29(0x30d)]($);return(_0x12bc9d=(_0x48ed8a=_0x29b78d==null?void 0x0:_0x29b78d[_0x24cd29(0xbf)])!=null?_0x48ed8a:_0xf9b845)!=null?_0x12bc9d:En;}async['getResourcesRequest'](_0x59cad7,_0xc03ff){const _0x9d035a=_0x23c7d1,_0x5ab7e9=_0x9d035a(0x36e)+_0xc03ff['type']+'/unit/'+_0xc03ff[_0x9d035a(0x347)]+_0x9d035a(0x24b);return(await this[_0x9d035a(0x91)][_0x9d035a(0xcc)](_0x5ab7e9,{'params':{'resourceId':JSON['stringify'](_0xc03ff[_0x9d035a(0x240)])}}))[_0x9d035a(0x2e2)];}[_0x23c7d1(0x2c6)](){const _0x12a95c=_0x23c7d1;throw new Error(_0x12a95c(0x1d7));}[_0x23c7d1(0x1cc)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x23c7d1(0x177)](){const _0x12f340=_0x23c7d1;throw new Error(_0x12f340(0x1d7));}[_0x23c7d1(0x193)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Nt=ha([vs(0x0,_0x5ae707),vs(0x1,_0x4dc04f(_0x3bbd66))],Nt);var la=Object[_0x23c7d1(0x252)],_a=Object['getOwnPropertyDescriptor'],ua=(_0x3625d9,_0x5f06ce,_0x3c934f,_0x1a73d2)=>{const _0x368ba9=_0x23c7d1;for(var _0x5ed046=_0x1a73d2>0x1?void 0x0:_0x1a73d2?_a(_0x5f06ce,_0x3c934f):_0x5f06ce,_0x124249=_0x3625d9[_0x368ba9(0x22a)]-0x1,_0x1c0f40;_0x124249>=0x0;_0x124249--)(_0x1c0f40=_0x3625d9[_0x124249])&&(_0x5ed046=(_0x1a73d2?_0x1c0f40(_0x5f06ce,_0x3c934f,_0x5ed046):_0x1c0f40(_0x5ed046))||_0x5ed046);return _0x1a73d2&&_0x5ed046&&la(_0x5f06ce,_0x3c934f,_0x5ed046),_0x5ed046;},Ue=(_0x26ed97,_0x234b4f)=>(_0x14a160,_0x18accb)=>_0x234b4f(_0x14a160,_0x18accb,_0x26ed97);let Mt=class extends _0x39ed46{constructor(_0x49a44e,_0x136a64,_0x20f582,_0x4e98a3,_0xe1ff13){const _0x2e11a4=_0x23c7d1;super(_0x49a44e,_0x136a64,_0x20f582),this[_0x2e11a4(0x152)]=_0x4e98a3,this['_logService']=_0xe1ff13;}['transformUndoRedo'](_0x56fa3f,_0x47a1a0){const _0x311377=_0x23c7d1,_0x1bc8b6=this[_0x311377(0xa3)](_0x56fa3f);if(_0x1bc8b6)try{const _0x18d5f0=this['_transformStack'](_0x1bc8b6,_0x47a1a0);this[_0x311377(0x3c6)](_0x56fa3f,_0x18d5f0);}catch(_0x816fb9){this[_0x311377(0x3e3)][_0x311377(0x328)](_0x311377(0x2be),_0x816fb9),this[_0x311377(0x14e)](_0x56fa3f);}const _0x48415e=this['_getRedoStack'](_0x56fa3f);if(_0x48415e)try{const _0x20bdb4=this[_0x311377(0x1b3)](_0x48415e,_0x47a1a0);this[_0x311377(0x202)](_0x56fa3f,_0x20bdb4);}catch(_0xb2346d){this[_0x311377(0x3e3)][_0x311377(0x328)](_0xb2346d),this[_0x311377(0x253)](_0x56fa3f);}}[_0x23c7d1(0x14e)](_0x4f445b){const _0x12a243=_0x23c7d1,_0x254923=this['_getUndoStack'](_0x4f445b);_0x254923&&(_0x254923[_0x12a243(0x22a)]=0x0,this[_0x12a243(0x2de)]());}[_0x23c7d1(0x253)](_0x3b54d6){const _0x36535a=_0x23c7d1,_0x739989=this[_0x36535a(0x82)](_0x3b54d6);_0x739989&&(_0x739989['length']=0x0,this[_0x36535a(0x2de)]());}[_0x23c7d1(0x3c6)](_0x2faa41,_0x1fe904){const _0x5c8cec=_0x23c7d1;this[_0x5c8cec(0x274)][_0x5c8cec(0x2f5)](_0x2faa41,_0x1fe904),this[_0x5c8cec(0x2de)]();}[_0x23c7d1(0x202)](_0x2699fa,_0x349a83){const _0x99375=_0x23c7d1;this['_redoStacks'][_0x99375(0x2f5)](_0x2699fa,_0x349a83),this['_updateStatus']();}[_0x23c7d1(0x1b3)](_0x5a3d50,_0x3f3f5a){const _0x1abd1e=_0x23c7d1,_0x202bf9=[];let _0x1538ac=_0x3f3f5a,_0x4cc3e1=_0x3f3f5a;for(let _0x1adcc9=_0x5a3d50[_0x1abd1e(0x22a)]-0x1;_0x1adcc9>=0x0;_0x1adcc9--){const {unitID:_0x59a26b,undoMutations:_0x327d7a,redoMutations:_0x49dbd2}=_0x5a3d50[_0x1adcc9],_0x476f4e=this[_0x1abd1e(0x152)][_0x1abd1e(0x2c0)](_0x1538ac,_0x327d7a),_0x19a22a=this[_0x1abd1e(0x152)]['transformMutationsWithChangeset'](_0x4cc3e1,_0x49dbd2);if(_0x1064ee(_0x476f4e)||_0x1064ee(_0x19a22a)){this['_logService'][_0x1abd1e(0x328)]('[CollaborationUndoRedoService]',_0x1abd1e(0x262),_0x476f4e,_0x19a22a);break;}_0x1538ac=_0x476f4e[_0x1abd1e(0x1e6)],_0x4cc3e1=_0x19a22a[_0x1abd1e(0x1e6)],_0x202bf9[_0x1abd1e(0x3d1)]({'unitID':_0x59a26b,'undoMutations':_0x476f4e[_0x1abd1e(0x388)],'redoMutations':_0x19a22a[_0x1abd1e(0x388)]});}return _0x202bf9[_0x1abd1e(0x3ed)]();}};Mt=ua([Ue(0x0,_0x9f62da),Ue(0x1,_0x45f63f),Ue(0x2,_0x282657),Ue(0x3,_0x1c29f3),Ue(0x4,_0x20dcfc)],Mt);class da extends _0x55967c{constructor(){const _0xd8726e=_0x23c7d1;super(),l(this,_0xd8726e(0x375)),this[_0xd8726e(0x375)]=_0x1c3647(window,_0xd8726e(0x170))[_0xd8726e(0x254)](_0x21580d(this[_0xd8726e(0x1ee)]),_0x25be7a(0x1),_0x41b7dd(void 0x0));}[_0x23c7d1(0x3b4)](_0x590d82,_0x37c95a,_0x24b8e9=!0x1){const _0x2827bf=_0x23c7d1,_0x1eca3d=new URL(window['location'][_0x2827bf(0x1be)]);_0x1eca3d[_0x2827bf(0x20a)][_0x2827bf(0x2f5)](_0x590d82,_0x37c95a),_0x24b8e9?window[_0x2827bf(0x363)][_0x2827bf(0x1ef)]('','',_0x1eca3d[_0x2827bf(0x3df)]()):window['history'][_0x2827bf(0x38a)]('','',_0x1eca3d[_0x2827bf(0x3df)]());}[_0x23c7d1(0x86)](_0x2cd135,_0x16e6b5=!0x1){const _0x417cf3=_0x23c7d1,_0x3c0ae8=new URL(window[_0x417cf3(0xd3)]['href']);_0x3c0ae8['searchParams'][_0x417cf3(0xd4)](_0x2cd135),_0x16e6b5?window['history'][_0x417cf3(0x1ef)]('','',_0x3c0ae8['toString']()):window[_0x417cf3(0x363)][_0x417cf3(0x38a)]('','',_0x3c0ae8[_0x417cf3(0x3df)]());}[_0x23c7d1(0x1f3)](_0x2ae0b6){const _0x3ed31f=_0x23c7d1;var _0x4849b6;return(_0x4849b6=new URL(window[_0x3ed31f(0xd3)][_0x3ed31f(0x1be)])[_0x3ed31f(0x20a)]['get'](_0x2ae0b6))!=null?_0x4849b6:void 0x0;}}var Qs=Object[_0x23c7d1(0x252)],ma=Object[_0x23c7d1(0x113)],fa=(_0x4ff967,_0x3dcfc3,_0x538abc)=>_0x3dcfc3 in _0x4ff967?Qs(_0x4ff967,_0x3dcfc3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x538abc}):_0x4ff967[_0x3dcfc3]=_0x538abc,ga=(_0x1d907d,_0x2e9e18,_0x57a9fd,_0x2d5d17)=>{const _0x5df5fe=_0x23c7d1;for(var _0x3cc9ee=_0x2d5d17>0x1?void 0x0:_0x2d5d17?ma(_0x2e9e18,_0x57a9fd):_0x2e9e18,_0x301e6a=_0x1d907d[_0x5df5fe(0x22a)]-0x1,_0x229642;_0x301e6a>=0x0;_0x301e6a--)(_0x229642=_0x1d907d[_0x301e6a])&&(_0x3cc9ee=(_0x2d5d17?_0x229642(_0x2e9e18,_0x57a9fd,_0x3cc9ee):_0x229642(_0x3cc9ee))||_0x3cc9ee);return _0x2d5d17&&_0x3cc9ee&&Qs(_0x2e9e18,_0x57a9fd,_0x3cc9ee),_0x3cc9ee;},Ve=(_0x1ae0bf,_0x32d20c)=>(_0xb2a4f9,_0x199e5e)=>_0x32d20c(_0xb2a4f9,_0x199e5e,_0x1ae0bf),Sa=(_0x30ee5a,_0x1c634c,_0x30cf5d)=>fa(_0x30ee5a,_0x1c634c+'',_0x30cf5d);const pa='UNIVER_COLLABORATION_CLIENT_PLUGIN';let At=class extends _0x19d8fe{constructor(_0x5e12ce=jn,_0x16bb9b,_0xe44a1c,_0x438fd4,_0x49816f){const _0x2f0e7a=_0x23c7d1;super(),this['_config']=_0x5e12ce,this[_0x2f0e7a(0x3e3)]=_0x16bb9b,this[_0x2f0e7a(0x8a)]=_0xe44a1c,this[_0x2f0e7a(0xdc)]=_0x438fd4,this[_0x2f0e7a(0x3c0)]=_0x49816f;const {..._0x33c9af}=this[_0x2f0e7a(0x2c3)];this[_0x2f0e7a(0x3c0)][_0x2f0e7a(0x2dd)]($,_0x33c9af);}[_0x23c7d1(0x3ec)](){const _0x171a71=_0x23c7d1;this[_0x171a71(0x87)](),_0x2f6d83(this[_0x171a71(0xdc)],[[ve],[Je],[et]]);}['onReady'](){const _0x20da50=_0x23c7d1;_0x2f6d83(this[_0x20da50(0xdc)],[[ze]]);}[_0x23c7d1(0x158)](){const _0x391db5=_0x23c7d1;this[_0x391db5(0xec)]();}['_registerDependencies'](){const _0x23d74d=_0x23c7d1;var _0x4502a8,_0x456549,_0x14cdbd,_0x55cbe4;this[_0x23d74d(0xdc)][_0x23d74d(0x143)](_0x13d877)&&this['_logService']['error'](_0x23d74d(0x30c),_0x23d74d(0x3f4));let _0x493242=[[_0x13d877,{'useClass':Mt}],[he],[Gt],[_0x3bbd66],[Zs,{'useClass':da}],[ce],[w],[_0x564323],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Vs],[et],[Bs,{'useClass':(_0x456549=(_0x4502a8=this[_0x23d74d(0x2c3)])==null?void 0x0:_0x4502a8[_0x23d74d(0x319)])!=null?_0x456549:Ct}],[_0xe09d1b,{'useClass':_0x4474e8}],[_0xfe39de,{'useClass':Nt}],[_0x32175b,{'useClass':yt}],[_0x11257d,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x14cdbd=this[_0x23d74d(0x2c3)])!=null&&_0x14cdbd[_0x23d74d(0x28f)]&&_0x493242[_0x23d74d(0x3d1)]([tt,{'useClass':Sr}]),_0x493242=_0x56cd0e(_0x493242,(_0x55cbe4=this[_0x23d74d(0x2c3)])==null?void 0x0:_0x55cbe4[_0x23d74d(0xf9)]),_0x493242['forEach'](_0x4c5840=>this[_0x23d74d(0xdc)][_0x23d74d(0x27e)](_0x4c5840)),this[_0x23d74d(0x11e)]();}[_0x23c7d1(0xec)](){const _0x58cc23=_0x23c7d1;this[_0x58cc23(0x216)](this['_renderManagerService']['registerRenderModule'](_0x12affe[_0x58cc23(0x195)],[wt])),this['disposeWithMe'](this['_renderManagerService'][_0x58cc23(0x333)](_0x12affe[_0x58cc23(0x3de)],[Pt]));}[_0x23c7d1(0x11e)](){const _0x40018d=_0x23c7d1;var _0x160242,_0x5639fd;this[_0x40018d(0xdc)]['get'](_0x3bbd66)[_0x40018d(0x342)]({'priority':0x14,'interceptor':_0x1dd1e0({'maxParallel':0x6})}),this[_0x40018d(0xdc)][_0x40018d(0xcc)](Qe),(_0x160242=this[_0x40018d(0x2c3)])!=null&&_0x160242[_0x40018d(0x33d)]||this[_0x40018d(0xdc)]['get'](w)[_0x40018d(0x387)](),(_0x5639fd=this['_config'])!=null&&_0x5639fd[_0x40018d(0x226)]&&this[_0x40018d(0xdc)]['get'](Ze),this[_0x40018d(0xdc)][_0x40018d(0xcc)](Le),this[_0x40018d(0xdc)][_0x40018d(0x143)](Me)&&this[_0x40018d(0xdc)][_0x40018d(0xcc)](Me);}};Sa(At,_0x23c7d1(0x406),pa),At=ga([_0x4eaec9(_0x4e9ef4),Ve(0x1,_0x20dcfc),Ve(0x2,_0x3bd096),Ve(0x3,_0x4dc04f(_0x22396d)),Ve(0x4,_0x5ae707)],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};
|