@univerjs-pro/collaboration-client 0.4.0-alpha.1 → 0.4.0-experimental.20241017-da434a2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x144368=_0x5e18;(function(_0x3c1876,_0x3f69b5){const _0x4f9fcc=_0x5e18,_0x2cf085=_0x3c1876();while(!![]){try{const _0x52de4e=-parseInt(_0x4f9fcc(0x278))/0x1*(-parseInt(_0x4f9fcc(0x2bf))/0x2)+-parseInt(_0x4f9fcc(0xe3))/0x3*(parseInt(_0x4f9fcc(0x40a))/0x4)+parseInt(_0x4f9fcc(0x2e3))/0x5*(parseInt(_0x4f9fcc(0x196))/0x6)+parseInt(_0x4f9fcc(0x102))/0x7+-parseInt(_0x4f9fcc(0x232))/0x8+parseInt(_0x4f9fcc(0x139))/0x9+-parseInt(_0x4f9fcc(0x409))/0xa;if(_0x52de4e===_0x3f69b5)break;else _0x2cf085['push'](_0x2cf085['shift']());}catch(_0x4dee10){_0x2cf085['push'](_0x2cf085['shift']());}}}(_0x1d0c,0x1ffc9));var zs=Object[_0x144368(0x14c)],Zs=(_0x1a3f16,_0x3de659,_0x90e3ed)=>_0x3de659 in _0x1a3f16?zs(_0x1a3f16,_0x3de659,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x90e3ed}):_0x1a3f16[_0x3de659]=_0x90e3ed,l=(_0x4e09d1,_0x1183c6,_0xf5f1a1)=>Zs(_0x4e09d1,typeof _0x1183c6!=_0x144368(0xaf)?_0x1183c6+'':_0x1183c6,_0xf5f1a1);import{createIdentifier as _0x372366,Inject as _0x3a563e,Disposable as _0x114c09,DisposableCollection as _0x311633,toDisposable as _0x2c721c,IConfigService as _0x7d1a6e,ILogService as _0x4192f8,UserManagerService as _0x80e003,UniverInstanceType as _0x5a4c09,IUniverInstanceService as _0x2d956c,LocaleService as _0xa2267e,Optional as _0x2c8260,RxDisposable as _0xa18742,Injector as _0x54963c,Tools as _0x41a12a,ILocalStorageService as _0x4ed3af,ICommandService as _0x401dc7,JSONX as _0x5f39c3,CommandType as _0x199f49,IPermissionService as _0x48c29f,IUndoRedoService as _0x13dae0,sequenceExecute as _0x9ac02e,debounce as _0x446300,Rectangle as _0xf6a94,COLORS as _0x9fd27f,ColorKit as _0x4bab80,ThemeService as _0x1d8843,fromEventSubject as _0x44c962,useDependency as _0x2377e0,connectInjector as _0x867c35,Workbook as _0xb47711,isInternalEditorID as _0x4cf273,LocalUndoRedoService as _0x10f8fb,IContextService as _0x14d2cc,DependentOn as _0x3836d4,Plugin as _0x2e2231,touchDependencies as _0xb25f0b,IAuthzIoService as _0x5535c2,mergeOverrideWithDependencies as _0x9ddf9c}from'@univerjs/core';import{Subject as _0x1e3428,merge as _0x4f1e0d,takeUntil as _0x592099,BehaviorSubject as _0x153d59,distinctUntilChanged as _0xedb536,fromEvent as _0x1f361e,map as _0x3903c1,shareReplay as _0x67ad6c,take as _0x4db6bc,of as _0x4c8895,debounceTime as _0x3572ad,filter as _0x307ef0,switchMap as _0x42e548,combineLatest as _0x40ea27,concatMap as _0x828ec7,mapTo as _0x2800f9}from'rxjs';import{map as _0x2f24ee,take as _0x27e093,filter as _0x36d4b5,delay as _0x12d147,throttleTime as _0x10d880,takeUntil as _0x25cc15,switchMap as _0x4efb03}from'rxjs/operators';import{MessageType as _0x2aebf3,Tooltip as _0x2951f2}from'@univerjs/design';import{IBeforeCloseService as _0xf6b79c,IMessageService as _0x5e3364,INotificationService as _0x26fa26,useObservable as _0x301f4a,BuiltInUIPart as _0x1cf6ce,IUIPartsService as _0x4134bb}from'@univerjs/ui';import{HTTPService as _0xb342b,WebSocketService as _0x2b51c0,MergeInterceptorFactory as _0xa00cd1,HTTPRequest as _0x7e2760,IHTTPImplementation as _0x46bf7c,XHRHTTPImplementation as _0x5e84f7,ThresholdInterceptorFactory as _0x20f2fa}from'@univerjs/network';import{CollaborationEvent as _0x184323,parseChangesetToProtocol as _0x437984,ISnapshotServerService as _0x4c7f7a,isTransformMutationFailure as _0x5005dc,isTransformMutationsWithChangesetSuccess as _0x4ca9f5,ITransformService as _0x5a828b,RevisionService as _0x384ffe,mapDocumentTypeToUniverType as _0x4e1c88,isTransformChangesetsSuccess as _0x2bc369,CompressMutationService as _0x84d9a2,parseProtocolChangeset as _0x415a64,SnapshotService as _0x3db305,textEncoder as _0x12c72c,b64DecodeUnicode as _0xa556fc,isTransformMutationsWithChangesetFailure as _0xc45f99,UniverCollaborationPlugin as _0x597d23}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xb9d152}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x5beeff,RichTextEditingMutation as _0x3496ab,SetTextSelectionsOperation as _0x4054ca,DocSkeletonManagerService as _0x768f54}from'@univerjs/docs';import{DocIMEInputManagerService as _0x10a842,DocStateChangeManagerService as _0x4f3ccb,NodePositionConvertToCursor as _0x4230d4,isValidRectRange as _0x39d84a,NodePositionConvertToRectRange as _0x23488e,TEXT_RANGE_LAYER_INDEX as _0xce00e,SetDocZoomRatioOperation as _0x1d8fb2}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x173a75,SetSelectionsOperation as _0x40d36b,InsertSheetMutation as _0x37edab,EmptyMutation as _0x5f53cd,WorkbookEditablePermission as _0x451bae,RefRangeService as _0x326e98,EffectRefRangId as _0x2657a7,handleIRemoveRow as _0x239991,handleIRemoveCol as _0x21ec59,handleMoveRange as _0x451abf,handleInsertRow as _0x2e6d83,handleInsertRangeMoveRight as _0x2ce6e5,handleInsertRangeMoveDown as _0x1efe2b,handleInsertCol as _0x1dc739,handleDeleteRangeMoveUp as _0xc8ec43,handleDeleteRangeMoveLeft as _0x202c66,runRefRangeMutations as _0x30fdf8,SetWorksheetActivateCommand as _0x1a1d85}from'@univerjs/sheets';import{IRenderManagerService as _0x102807,Shape as _0x1d0b00,Rect as _0x144e80,getColor as _0x458d3f,RegularPolygon as _0x19eca8,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x18651d,Vector2 as _0x204a34}from'@univerjs/engine-render';import{ImageSourceType as _0x787c8a,ImageUploadStatusType as _0x1bc9e3,IImageIoService as _0x594ba9}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x550a38,serializeRangeWithSheet as _0x5d45a1}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x5002d5,VIEWPORT_KEY as _0x848fd7,getCoordByCell as _0x3ce532,getSheetObject as _0x171df8,SheetPermissionInitController as _0x4a6605}from'@univerjs/sheets-ui';import _0x1f397a,{forwardRef as _0x61f5fd,useRef as _0x42af29,createElement as _0x5acb7a,useCallback as _0xac95f7}from'react';import{IRemoteInstanceService as _0x491dd1}from'@univerjs/rpc';import{getAttachHeader as _0x4f8211}from'@univerjs-pro/license';const dn=_0x144368(0x283),fn=_0x144368(0xa4),mn=_0x144368(0x338),Oa=_0x144368(0x13d),gn=0x7d0,Sn=_0x144368(0x163),pn=_0x144368(0x16d),vn=_0x144368(0x258),In=0x7530,Ns='HEARTBEAT_TIMEOUT',Us=0x4e20,En=0x4e20,Cn='RETRY_CONNECTING_MAX_COUNT',bn=0x3,Tn=_0x144368(0x11a),Rn=0x3e8,On=_0x144368(0x353),Dn=_0x144368(0x12c),wn='LOGIN_URL_KEY',Pn='/universer-api/oidc/authpage';var Ms=(_0x3f855a=>(_0x3f855a[_0x3f855a[_0x144368(0x1e5)]=0x0]='UNDEFINED',_0x3f855a[_0x3f855a['OK']=0x1]='OK',_0x3f855a[_0x3f855a[_0x144368(0x1c3)]=0x2]=_0x144368(0x1c3),_0x3f855a[_0x3f855a[_0x144368(0x2f6)]=0x3]=_0x144368(0x2f6),_0x3f855a[_0x3f855a[_0x144368(0xab)]=0x4]=_0x144368(0xab),_0x3f855a[_0x3f855a[_0x144368(0x1ed)]=0x5]=_0x144368(0x1ed),_0x3f855a[_0x3f855a[_0x144368(0x24b)]=0x6]=_0x144368(0x24b),_0x3f855a[_0x3f855a['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x3f855a[_0x3f855a[_0x144368(0x107)]=0x8]='TOO_MANY_REQUESTS',_0x3f855a[_0x3f855a[_0x144368(0x251)]=0x9]=_0x144368(0x251),_0x3f855a[_0x3f855a[_0x144368(0xa2)]=0x1389]=_0x144368(0xa2),_0x3f855a[_0x3f855a['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x144368(0x179),_0x3f855a[_0x3f855a[_0x144368(0x356)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3f855a[_0x3f855a['APPLY_REJECT']=0x1b59]=_0x144368(0x1e0),_0x3f855a[_0x3f855a[_0x144368(0x1ee)]=0x1b5a]=_0x144368(0x1ee),_0x3f855a[_0x3f855a[_0x144368(0x328)]=0x1b5b]=_0x144368(0x328),_0x3f855a[_0x3f855a['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3f855a[_0x3f855a[_0x144368(0xbb)]=0x1f41]=_0x144368(0xbb),_0x3f855a[_0x3f855a[_0x144368(0x16c)]=0x2329]=_0x144368(0x16c),_0x3f855a[_0x3f855a[_0x144368(0x23f)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3f855a[_0x3f855a['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x144368(0x2b3),_0x3f855a[_0x3f855a[_0x144368(0x36f)]=0x232c]=_0x144368(0x36f),_0x3f855a[_0x3f855a[_0x144368(0xde)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3f855a[_0x3f855a[_0x144368(0xf3)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3f855a[_0x3f855a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3f855a[_0x3f855a[_0x144368(0x340)]=0x2713]=_0x144368(0x340),_0x3f855a[_0x3f855a[_0x144368(0x12d)]=0x2714]=_0x144368(0x12d),_0x3f855a[_0x3f855a[_0x144368(0x3c9)]=-0x1]=_0x144368(0x3c9),_0x3f855a))(Ms||{}),H=(_0x3893c9=>(_0x3893c9[_0x3893c9[_0x144368(0x223)]=0x0]='UNIVER_UNKNOWN',_0x3893c9[_0x3893c9[_0x144368(0x306)]=0x1]=_0x144368(0x306),_0x3893c9[_0x3893c9[_0x144368(0x295)]=0x2]='UNIVER_SHEET',_0x3893c9[_0x3893c9['UNIVER_SLIDE']=0x3]=_0x144368(0x372),_0x3893c9[_0x3893c9[_0x144368(0x255)]=0x4]=_0x144368(0x255),_0x3893c9[_0x3893c9[_0x144368(0x3c9)]=-0x1]=_0x144368(0x3c9),_0x3893c9))(H||{}),I=(_0x5dcd0b=>(_0x5dcd0b[_0x5dcd0b[_0x144368(0x2c5)]=0x0]='UNKNOWN_CMD',_0x5dcd0b[_0x5dcd0b[_0x144368(0xfc)]=0x1]=_0x144368(0xfc),_0x5dcd0b[_0x5dcd0b[_0x144368(0x298)]=0x2]=_0x144368(0x298),_0x5dcd0b[_0x5dcd0b[_0x144368(0x1b3)]=0x3]=_0x144368(0x1b3),_0x5dcd0b[_0x5dcd0b['INGEST']=0x4]=_0x144368(0x157),_0x5dcd0b[_0x5dcd0b[_0x144368(0x362)]=0x5]='HEARTBEAT',_0x5dcd0b[_0x5dcd0b[_0x144368(0x307)]=0x6]=_0x144368(0x307),_0x5dcd0b[_0x5dcd0b['UNRECOGNIZED']=-0x1]=_0x144368(0x3c9),_0x5dcd0b))(I||{}),kt=(_0xf15e3c=>(_0xf15e3c[_0xf15e3c['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0xf15e3c[_0xf15e3c['OK']=0x1]='OK',_0xf15e3c[_0xf15e3c['FAIL']=0x2]='FAIL',_0xf15e3c[_0xf15e3c[_0x144368(0x3c9)]=-0x1]=_0x144368(0x3c9),_0xf15e3c))(kt||{}),As=(_0x216ebe=>(_0x216ebe[_0x216ebe[_0x144368(0x184)]=0x0]=_0x144368(0x184),_0x216ebe[_0x216ebe[_0x144368(0x36d)]=0x1]=_0x144368(0x36d),_0x216ebe[_0x216ebe[_0x144368(0x21a)]=0x2]=_0x144368(0x21a),_0x216ebe[_0x216ebe['UnitEmbedded']=0x3]=_0x144368(0x1a7),_0x216ebe[_0x216ebe[_0x144368(0x1a4)]=0x4]=_0x144368(0x1a4),_0x216ebe[_0x216ebe[_0x144368(0x3c9)]=-0x1]=_0x144368(0x3c9),_0x216ebe))(As||{});const L=_0x144368(0x10f),yn={};function Nn(_0x20c1a8){const _0x46abe2=_0x144368;var _0xd6adb7,_0x11da26,_0x51311f,_0x4d4078;const _0x35ccb5=_0x20c1a8[_0x46abe2(0x116)],_0x2da478=JSON[_0x46abe2(0x1b2)](_0x35ccb5);switch(_0x2da478[_0x46abe2(0x1f4)]){case I[_0x46abe2(0x362)]:case I[_0x46abe2(0xfc)]:{const _0xaf6276=_0x2da478[_0x46abe2(0x168)];return{..._0x2da478,'data':_0xaf6276,'cmd':_0x2da478[_0x46abe2(0x1f4)]};}case I['JOIN']:{const _0x36e075=_0x2da478[_0x46abe2(0x3e9)];return{..._0x2da478,'data':_0x36e075,'cmd':_0x2da478[_0x46abe2(0x1f4)]};}case I[_0x46abe2(0x307)]:{const _0x23c0ac=_0x2da478[_0x46abe2(0x3ce)];switch(_0x23c0ac[_0x46abe2(0x27e)]){case _0x184323[_0x46abe2(0x1aa)]:return{..._0x2da478,'data':{..._0x23c0ac,'data':(_0xd6adb7=_0x23c0ac['permissionRejEvent'])==null?void 0x0:_0xd6adb7['cs']},'cmd':_0x2da478['cmd']};case _0x184323['CHANGESET_ACK']:return{..._0x2da478,'data':{..._0x23c0ac,'data':(_0x11da26=_0x23c0ac[_0x46abe2(0x1ba)])==null?void 0x0:_0x11da26['cs']},'cmd':_0x2da478['cmd']};case _0x184323[_0x46abe2(0x333)]:return{..._0x2da478,'data':{..._0x23c0ac,'data':(_0x51311f=_0x23c0ac[_0x46abe2(0xfb)])==null?void 0x0:_0x51311f['cs']},'cmd':_0x2da478[_0x46abe2(0x1f4)]};case _0x184323[_0x46abe2(0x3b9)]:return{..._0x2da478,'data':{..._0x23c0ac,'data':(_0x4d4078=_0x23c0ac[_0x46abe2(0x1cf)])==null?void 0x0:_0x4d4078['cs']},'cmd':_0x2da478['cmd']};case _0x184323[_0x46abe2(0x2c9)]:return{..._0x2da478,'data':{..._0x23c0ac,'data':_0x23c0ac[_0x46abe2(0x3dc)]},'cmd':_0x2da478[_0x46abe2(0x1f4)]};case _0x184323['USERS_ENTER']:return{..._0x2da478,'data':{..._0x23c0ac,'data':_0x23c0ac[_0x46abe2(0x143)]},'cmd':_0x2da478[_0x46abe2(0x1f4)]};case _0x184323[_0x46abe2(0xdc)]:return{..._0x2da478,'data':{..._0x23c0ac,'data':_0x23c0ac[_0x46abe2(0x243)]},'cmd':_0x2da478[_0x46abe2(0x1f4)]};case _0x184323[_0x46abe2(0x368)]:return{..._0x2da478,'data':{..._0x23c0ac,'data':_0x23c0ac[_0x46abe2(0x194)]},'cmd':_0x2da478['cmd']};case _0x184323[_0x46abe2(0xd9)]:case _0x184323['LIVESHARE_OPERATION']:return{..._0x2da478,'data':{..._0x23c0ac,'data':_0x23c0ac['liveShareOperation']},'cmd':_0x2da478[_0x46abe2(0x1f4)]};case _0x184323['LIVESHARE_TERMINATE']:return{..._0x2da478,'data':{..._0x23c0ac,'data':_0x23c0ac[_0x46abe2(0x194)]},'cmd':_0x2da478[_0x46abe2(0x1f4)]};case _0x184323[_0x46abe2(0x342)]:return{..._0x2da478,'data':_0x23c0ac,'cmd':_0x2da478[_0x46abe2(0x1f4)]};case _0x184323['COMMENT_UPDATE']:return{..._0x2da478,'data':{..._0x23c0ac,'data':_0x23c0ac[_0x46abe2(0x198)]},'cmd':_0x2da478[_0x46abe2(0x1f4)]};case _0x184323[_0x46abe2(0x9c)]:return{..._0x2da478,'data':{..._0x23c0ac,'data':_0x23c0ac[_0x46abe2(0x3fb)]},'cmd':_0x2da478[_0x46abe2(0x1f4)]};case _0x184323[_0x46abe2(0x211)]:return{..._0x2da478,'data':{..._0x23c0ac,'data':_0x23c0ac[_0x46abe2(0x360)]},'cmd':_0x2da478[_0x46abe2(0x1f4)]};default:return _0x2da478;}}default:return _0x2da478;}}function Un(_0x382a80){const _0xffe3fe=_0x144368;switch(_0x382a80[_0xffe3fe(0x1f4)]){case I[_0xffe3fe(0x362)]:case I[_0xffe3fe(0xfc)]:return JSON[_0xffe3fe(0xb9)]({'cmd':_0x382a80[_0xffe3fe(0x1f4)],'routeKey':_0x382a80[_0xffe3fe(0x361)]});case I[_0xffe3fe(0x157)]:{let _0x57af6a;switch(_0x382a80[_0xffe3fe(0x116)][_0xffe3fe(0x27e)]){case _0x184323[_0xffe3fe(0x2c9)]:{_0x57af6a={'eventID':_0x184323[_0xffe3fe(0x2c9)],'updateCursorEvent':_0x382a80['data'][_0xffe3fe(0x116)]};break;}case _0x184323[_0xffe3fe(0xdc)]:{_0x57af6a={'eventID':_0x184323[_0xffe3fe(0xdc)],'leaveEvent':_0x382a80[_0xffe3fe(0x116)][_0xffe3fe(0x116)]};break;}case _0x184323[_0xffe3fe(0x24f)]:{_0x57af6a={'eventID':_0x184323['USERS_ENTER'],'joinEvent':_0x382a80[_0xffe3fe(0x116)][_0xffe3fe(0x116)]};break;}case _0x184323[_0xffe3fe(0x368)]:{_0x57af6a={'eventID':_0x184323[_0xffe3fe(0x368)],'liveShareNewHost':_0x382a80[_0xffe3fe(0x116)][_0xffe3fe(0x116)]};break;}case _0x184323['LIVESHARE_OPERATION']:{_0x57af6a={'eventID':_0x184323['LIVESHARE_OPERATION'],'liveShareOperation':_0x382a80[_0xffe3fe(0x116)]['data']};break;}case _0x184323[_0xffe3fe(0x1ab)]:{_0x57af6a={'eventID':_0x184323[_0xffe3fe(0x1ab)],'liveShareTerminate':_0x382a80['data'][_0xffe3fe(0x116)]};break;}case _0x184323[_0xffe3fe(0x1dd)]:{_0x57af6a={'eventID':_0x184323[_0xffe3fe(0x1dd)],'liveShareRequestHost':_0x382a80['data'][_0xffe3fe(0x116)]};break;}case _0x184323[_0xffe3fe(0xd9)]:{_0x57af6a={'eventID':_0x184323[_0xffe3fe(0xd9)]};break;}default:_0x57af6a={'eventID':_0x382a80[_0xffe3fe(0x116)][_0xffe3fe(0x27e)]};}return JSON[_0xffe3fe(0xb9)]({'cmd':_0x382a80[_0xffe3fe(0x1f4)],'routeKey':_0x382a80[_0xffe3fe(0x361)],'collaMsg':_0x57af6a});}case I['JOIN']:return JSON['stringify']({'cmd':_0x382a80[_0xffe3fe(0x1f4)],'routeKey':_0x382a80['routeKey'],'joinReq':_0x382a80[_0xffe3fe(0x116)]});case I['LEAVE']:return JSON[_0xffe3fe(0xb9)]({'cmd':_0x382a80[_0xffe3fe(0x1f4)],'routeKey':_0x382a80[_0xffe3fe(0x361)],'leaveReq':_0x382a80['data']});default:throw new Error(_0xffe3fe(0xea));}}var Mn=Object[_0x144368(0x14c)],An=Object[_0x144368(0x3e4)],Ln=(_0x23465f,_0x1e3070,_0x181602,_0x3b5268)=>{for(var _0x2a7014=_0x3b5268>0x1?void 0x0:_0x3b5268?An(_0x1e3070,_0x181602):_0x1e3070,_0x358b9a=_0x23465f['length']-0x1,_0x8d1f89;_0x358b9a>=0x0;_0x358b9a--)(_0x8d1f89=_0x23465f[_0x358b9a])&&(_0x2a7014=(_0x3b5268?_0x8d1f89(_0x1e3070,_0x181602,_0x2a7014):_0x8d1f89(_0x2a7014))||_0x2a7014);return _0x3b5268&&_0x2a7014&&Mn(_0x1e3070,_0x181602,_0x2a7014),_0x2a7014;},Re=(_0x1463bb,_0x4dc053)=>(_0x1112ad,_0x8a6b49)=>_0x4dc053(_0x1112ad,_0x8a6b49,_0x1463bb);const Ls=_0x372366('univer-pro.collaboration-client-socket-service');function $n(_0x1e2dc3,_0x476a28,_0x4f5f0d){const _0x277fd3=_0x144368;return _0x1e2dc3+'/'+_0x476a28+_0x277fd3(0x3d7)+_0x4f5f0d+_0x277fd3(0xbe);}let Et=class extends _0x114c09{constructor(_0x4edfbe,_0x11c34f,_0x2a812d,_0x5631be,_0x1355dc){const _0x499bac=_0x144368;super(),this['_http']=_0x4edfbe,this[_0x499bac(0x395)]=_0x11c34f,this['_configService']=_0x2a812d,this[_0x499bac(0x193)]=_0x5631be,this['_snapshotServerService']=_0x1355dc;}[_0x144368(0x1fa)](_0x442b11){const _0x20202=_0x144368,_0x549485=this[_0x20202(0x395)][_0x20202(0x1fa)](_0x442b11);if(!_0x549485)throw new Error(_0x20202(0x3f1));const _0x37309a=new _0x311633(),_0x213f89=new _0x1e3428();_0x37309a[_0x20202(0x282)](_0x549485[_0x20202(0x219)][_0x20202(0x1c7)](_0xc75de8=>_0x213f89['next'](_0xc75de8))),_0x37309a[_0x20202(0x282)](_0x2c721c(()=>_0x213f89['complete']()));const _0x3ffa63=new _0x1e3428();_0x37309a['add'](_0x549485[_0x20202(0x1e2)]['subscribe'](_0x475d7f=>_0x3ffa63[_0x20202(0x105)](_0x475d7f))),_0x37309a[_0x20202(0x282)](_0x2c721c(()=>_0x3ffa63[_0x20202(0x159)]()));const _0x4323bc=new _0x1e3428();_0x37309a[_0x20202(0x282)](_0x549485[_0x20202(0x101)][_0x20202(0x1c7)](_0x492434=>{const _0x515ba9=Nn(_0x492434);_0x4323bc['next'](_0x515ba9);})),_0x37309a[_0x20202(0x282)](_0x2c721c(()=>_0x4323bc[_0x20202(0x159)]()));let _0x25a9d9;const _0x4138bb=()=>{const _0x3ff04=_0x20202;_0x3ffa63[_0x3ff04(0x105)](new Event(_0x3ff04(0x171))),_0x213f89[_0x3ff04(0x105)](new CloseEvent(_0x3ff04(0x171))),_0x25a9d9['close']();};return _0x25a9d9={'memberID':'','close$':_0x213f89['asObservable'](),'error$':_0x3ffa63[_0x20202(0x3bd)](),'open$':_0x549485[_0x20202(0x23c)],'message$':_0x4323bc[_0x20202(0x3bd)](),'send':_0x5252d7=>{const _0x232990=_0x20202;if(_0x5252d7[_0x232990(0x1f4)]===I[_0x232990(0x157)]){if(_0x5252d7[_0x232990(0x116)]['eventID']===_0x184323[_0x232990(0x261)]){this[_0x232990(0x3b4)](_0x25a9d9,_0x5252d7['data'])[_0x232990(0x2f3)](_0x5c02cc=>{const _0x151727=_0x232990;this[_0x151727(0x193)][_0x151727(0x30a)](_0x5c02cc),_0x4138bb();});return;}if(_0x5252d7[_0x232990(0x116)][_0x232990(0x27e)]===_0x184323[_0x232990(0x3e5)]){const _0xb2af64=_0x5252d7[_0x232990(0x116)];this['_fetchMissChangesets'](_0xb2af64)['then'](_0x53c147=>{const _0x2facc1=_0x232990;_0x4323bc[_0x2facc1(0x105)]({'cmd':I[_0x2facc1(0x307)],'code':kt['OK'],'routeKey':_0xb2af64[_0x2facc1(0x116)][_0x2facc1(0x24a)],'routeType':'','data':{'eventID':_0x184323[_0x2facc1(0x3ad)],'data':{'changesets':_0x53c147}}});})['catch'](_0x57a609=>{const _0x1c671a=_0x232990;this[_0x1c671a(0x193)]['error'](_0x57a609),_0x4138bb();});return;}}_0x549485['send'](Un(_0x5252d7));},'close':()=>{_0x549485['close'](),_0x37309a['dispose']();}},_0x25a9d9;}async['_submitChangeset'](_0x1bbf14,_0x4c20d4){const _0x1e9afe=_0x144368;var _0x3ffb9e,_0x48c3c8;const {unitType:_0x15a8d0,unitID:_0x352bc3,changeset:_0x5173e5}=_0x4c20d4['data'],_0x5ad072={'unitID':_0x352bc3,'memberID':_0x1bbf14['memberID'],'type':_0x15a8d0,'changeset':_0x437984(_0x5173e5)},_0x2bffa5=this[_0x1e9afe(0x22e)]['getConfig'](On),_0x2daf88=this[_0x1e9afe(0x22e)][_0x1e9afe(0x2a7)](L),_0x49e751=$n((_0x48c3c8=(_0x3ffb9e=_0x2daf88==null?void 0x0:_0x2daf88['collabSubmitChangesetUrl'])!=null?_0x3ffb9e:_0x2bffa5)!=null?_0x48c3c8:Dn,_0x15a8d0,_0x352bc3);try{await this[_0x1e9afe(0x2ff)]['post'](_0x49e751,{'body':_0x5ad072});}catch(_0x920ff6){throw this[_0x1e9afe(0x193)][_0x1e9afe(0x30a)]('[CollaborationSession]',_0x1e9afe(0x1da)),_0x920ff6;}}async[_0x144368(0x248)](_0x2f3e83){const _0x308a25=_0x144368,{unitID:_0x27f872,from:_0x162c61,to:_0x3bceaf,unitType:_0x44e5a1}=_0x2f3e83[_0x308a25(0x116)];return(await this[_0x308a25(0x404)][_0x308a25(0x220)]({'metadata':void 0x0},{'unitID':_0x27f872,'type':_0x44e5a1,'from':_0x162c61,'to':_0x3bceaf}))[_0x308a25(0x30c)];}};Et=Ln([Re(0x0,_0x3a563e(_0xb342b)),Re(0x1,_0x3a563e(_0x2b51c0)),Re(0x2,_0x7d1a6e),Re(0x3,_0x4192f8),Re(0x4,_0x4c7f7a)],Et);const jn=_0x144368(0x327);function xn(_0x531fd9){const _0x5d3309=_0x144368;return JSON[_0x5d3309(0xb9)](_0x531fd9)['length'];}class $s{constructor(){const _0x4236ce=_0x144368;l(this,_0x4236ce(0x11b),new _0x1e3428()),l(this,_0x4236ce(0x3b0),this[_0x4236ce(0x11b)][_0x4236ce(0x3bd)]());}[_0x144368(0x2a8)](_0x21838c){const _0x2e8e0f=_0x144368;this[_0x2e8e0f(0x11b)]['next'](_0x21838c);}}var Hn=Object[_0x144368(0x14c)],kn=Object['getOwnPropertyDescriptor'],Bn=(_0x36e937,_0x21ff15,_0xfc860d,_0xa1df67)=>{const _0x5c1863=_0x144368;for(var _0x5c1ff6=_0xa1df67>0x1?void 0x0:_0xa1df67?kn(_0x21ff15,_0xfc860d):_0x21ff15,_0x4c5a9b=_0x36e937[_0x5c1863(0x405)]-0x1,_0x390b98;_0x4c5a9b>=0x0;_0x4c5a9b--)(_0x390b98=_0x36e937[_0x4c5a9b])&&(_0x5c1ff6=(_0xa1df67?_0x390b98(_0x21ff15,_0xfc860d,_0x5c1ff6):_0x390b98(_0x5c1ff6))||_0x5c1ff6);return _0xa1df67&&_0x5c1ff6&&Hn(_0x21ff15,_0xfc860d,_0x5c1ff6),_0x5c1ff6;},rs=(_0x3f47fa,_0x4f0183)=>(_0x39cc26,_0x2531da)=>_0x4f0183(_0x39cc26,_0x2531da,_0x3f47fa);let ae=class extends _0x114c09{constructor(_0x515b7a,_0x2b09a6){const _0x468d84=_0x144368;super(),l(this,'_roomMembers',new Map()),(this[_0x468d84(0x3a1)]=_0x515b7a,this['_userManagerService']=_0x2b09a6,this[_0x468d84(0x133)](_0x2c721c(_0x4f1e0d(this[_0x468d84(0x3a1)][_0x468d84(0x36a)](_0x5a4c09[_0x468d84(0x295)])[_0x468d84(0x33b)](_0x2f24ee(_0x3748be=>_0x3748be['getUnitId']())),this[_0x468d84(0x3a1)][_0x468d84(0x36a)](_0x5a4c09['UNIVER_DOC'])[_0x468d84(0x33b)](_0x2f24ee(_0x217080=>_0x217080[_0x468d84(0x113)]())),this[_0x468d84(0x3a1)][_0x468d84(0x36a)](_0x5a4c09[_0x468d84(0x372)])['pipe'](_0x2f24ee(_0x247be1=>_0x247be1[_0x468d84(0x113)]())))[_0x468d84(0x1c7)](_0x291e65=>this[_0x468d84(0x253)](_0x291e65)))));}[_0x144368(0x146)](_0x30a0c3){const _0x2ef9c3=_0x144368;this[_0x2ef9c3(0x2fd)][_0x2ef9c3(0x146)](_0x30a0c3);}[_0x144368(0x284)](){const _0x15fd48=_0x144368;return this[_0x15fd48(0x2fd)][_0x15fd48(0x284)]();}[_0x144368(0x2dc)](_0x57d789,_0x50d038){const _0x32e583=_0x144368;let _0x314d71=this[_0x32e583(0x106)][_0x32e583(0x33c)](_0x57d789);_0x314d71||(_0x314d71=new Vn(),this['_roomMembers'][_0x32e583(0x2b2)](_0x57d789,_0x314d71)),_0x314d71[_0x32e583(0x2dc)](_0x50d038);}[_0x144368(0x3b6)](_0x1affa3,_0x4ae468){const _0xce0c5=this['_roomMembers']['get'](_0x1affa3);_0xce0c5&&_0xce0c5['removeMember'](_0x4ae468);}[_0x144368(0x3af)](_0x143c46){const _0x18b32f=_0x144368;return this['_roomMembers'][_0x18b32f(0x33c)](_0x143c46);}['getMember'](_0x205233,_0x2be659){const _0x4d7ca2=_0x144368,_0x3ac8f4=this[_0x4d7ca2(0x106)]['get'](_0x205233);if(_0x3ac8f4)return _0x3ac8f4['getMember'](_0x2be659);}['_removeRoom'](_0x1737de){const _0x2a3511=_0x144368,_0x290ac1=this[_0x2a3511(0x106)][_0x2a3511(0x33c)](_0x1737de);_0x290ac1&&(_0x290ac1[_0x2a3511(0x119)](),this[_0x2a3511(0x106)][_0x2a3511(0x218)](_0x1737de));}[_0x144368(0x119)](){const _0x426d21=_0x144368;this[_0x426d21(0x106)]['forEach'](_0x2222f2=>_0x2222f2['dispose']()),this['_roomMembers']['clear']();}};ae=Bn([rs(0x0,_0x2d956c),rs(0x1,_0x3a563e(_0x80e003))],ae);class Vn extends _0x114c09{constructor(){const _0x411815=_0x144368;super(...arguments),l(this,_0x411815(0x267),new Map());}['dispose'](){const _0x25b03f=_0x144368;this[_0x25b03f(0x267)][_0x25b03f(0x1f8)]();}['updateMember'](_0x4a4080){const _0x482348=_0x144368;this[_0x482348(0x267)]['set'](_0x4a4080[_0x482348(0x214)],_0x4a4080);}[_0x144368(0x3b6)](_0x4e1a6a){const _0xbc476d=_0x144368;this['_members'][_0xbc476d(0x218)](_0x4e1a6a);}[_0x144368(0x122)](_0x4bf7ae){const _0x244b93=_0x144368;return this[_0x244b93(0x267)][_0x244b93(0x33c)](_0x4bf7ae);}}var Fn=Object['defineProperty'],Wn=Object[_0x144368(0x3e4)],Gn=(_0x41336e,_0x5e387d,_0x11923d,_0x4d81f6)=>{const _0x537e66=_0x144368;for(var _0x37d7af=_0x4d81f6>0x1?void 0x0:_0x4d81f6?Wn(_0x5e387d,_0x11923d):_0x5e387d,_0x696fa8=_0x41336e[_0x537e66(0x405)]-0x1,_0x2227c2;_0x696fa8>=0x0;_0x696fa8--)(_0x2227c2=_0x41336e[_0x696fa8])&&(_0x37d7af=(_0x4d81f6?_0x2227c2(_0x5e387d,_0x11923d,_0x37d7af):_0x2227c2(_0x37d7af))||_0x37d7af);return _0x4d81f6&&_0x37d7af&&Fn(_0x5e387d,_0x11923d,_0x37d7af),_0x37d7af;},J=(_0x4d38cf,_0x386cbf)=>(_0xd3f21e,_0x461e14)=>_0x386cbf(_0xd3f21e,_0x461e14,_0x4d38cf),G=(_0x91a4b3=>(_0x91a4b3[_0x91a4b3[_0x144368(0x14e)]=0x0]=_0x144368(0x14e),_0x91a4b3[_0x91a4b3[_0x144368(0x2af)]=0x1]=_0x144368(0x2af),_0x91a4b3[_0x91a4b3['OFFLINE']=0x2]=_0x144368(0x3f6),_0x91a4b3[_0x91a4b3[_0x144368(0x15f)]=0x3]=_0x144368(0x15f),_0x91a4b3))(G||{});let Ct=class extends _0xa18742{constructor(_0x4dccf2,_0x41aac6,_0x32996f,_0x316fd7,_0x1c7a62,_0x130492,_0x11d96d,_0x5e8a7a,_0x404f18,_0x34b77c){const _0x269c37=_0x144368;super(),l(this,_0x269c37(0x155),new _0x153d59(0x0)),l(this,_0x269c37(0x2cc),this[_0x269c37(0x155)]['asObservable']()),l(this,_0x269c37(0x24d),new _0x1e3428()),l(this,_0x269c37(0xb4),this[_0x269c37(0x24d)][_0x269c37(0x3bd)]()),l(this,_0x269c37(0x2be)),l(this,'_socketMessageSubscription'),l(this,'_collaborationTimeoutTimer'),l(this,_0x269c37(0x331),!0x1),l(this,'_telemetryInfo',null),(this[_0x269c37(0x162)]=_0x4dccf2,this['_logService']=_0x32996f,this['_beforeCloseService']=_0x316fd7,this[_0x269c37(0x104)]=_0x1c7a62,this[_0x269c37(0x22e)]=_0x130492,this['_localeService']=_0x11d96d,this[_0x269c37(0x18e)]=_0x5e8a7a,this[_0x269c37(0x11e)]=_0x404f18,this[_0x269c37(0x3d6)]=_0x34b77c,this[_0x269c37(0x331)]=!!this[_0x269c37(0x3d6)],_0x41aac6[_0x269c37(0x33b)](_0x592099(this[_0x269c37(0x3e8)]))[_0x269c37(0x1c7)](_0x2a7196=>{const _0x18dd44=_0x269c37;var _0xe4ad09;typeof _0x2a7196>'u'||(this[_0x18dd44(0x2be)]=_0x2a7196,_0x2a7196?(this[_0x18dd44(0x32f)](_0x2a7196),this[_0x18dd44(0x217)]=_0x2a7196['message$'][_0x18dd44(0x1c7)](_0x41a9bb=>{const _0x47d966=_0x18dd44;_0x41a9bb[_0x47d966(0x361)]===this[_0x47d966(0x162)]&&this[_0x47d966(0x28a)](_0x41a9bb);})):(this[_0x18dd44(0x22d)](),this[_0x18dd44(0x155)]['next'](0x2),(_0xe4ad09=this[_0x18dd44(0x217)])==null||_0xe4ad09['unsubscribe'](),this[_0x18dd44(0x217)]=null));}),this[_0x269c37(0x133)](this[_0x269c37(0x2bc)][_0x269c37(0x262)](()=>{const _0x45aeb3=_0x269c37;var _0x1328b6;(_0x1328b6=this['_socket'])==null||_0x1328b6['send']({'cmd':I['LEAVE'],'data':{'roomID':this[_0x45aeb3(0x162)]}});})));}get['sessionStatus'](){const _0xf51fe7=_0x144368;return this['_sessionStatus$'][_0xf51fe7(0x3a5)]();}['getMemberID'](){const _0x2add9a=_0x144368;var _0x50184a,_0x508e8a;return(_0x508e8a=(_0x50184a=this[_0x2add9a(0x2be)])==null?void 0x0:_0x50184a[_0x2add9a(0x214)])!=null?_0x508e8a:null;}[_0x144368(0x119)](){const _0x1bf8fb=_0x144368;super[_0x1bf8fb(0x119)](),this[_0x1bf8fb(0x3e8)][_0x1bf8fb(0x105)](),this['dispose$'][_0x1bf8fb(0x159)]();}[_0x144368(0x280)](){const _0x2b1c1d=_0x144368;var _0x112533,_0x4eafbf;this[_0x2b1c1d(0x22d)](),(_0x112533=this[_0x2b1c1d(0x2be)])==null||_0x112533[_0x2b1c1d(0x37e)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x2b1c1d(0x162)]}}),(_0x4eafbf=this[_0x2b1c1d(0x2be)])==null||_0x4eafbf['close'](),this[_0x2b1c1d(0x24d)][_0x2b1c1d(0x159)](),this[_0x2b1c1d(0x155)]['complete'](),this[_0x2b1c1d(0x119)]();}['_onCombEvent'](_0x83c82){const _0x15edec=_0x144368;_0x83c82[_0x15edec(0x1f4)]===I['JOIN']?this['_onJoinRoomEvent'](_0x83c82):_0x83c82[_0x15edec(0x1f4)]===I[_0x15edec(0x307)]&&this[_0x15edec(0x2de)](_0x83c82);}['_joinRoom'](_0x153c9f){const _0x3dde0c=_0x144368;this[_0x3dde0c(0x155)]['next'](0x1),_0x153c9f[_0x3dde0c(0x37e)]({'cmd':I[_0x3dde0c(0x298)],'routeKey':this[_0x3dde0c(0x162)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x144368(0xfa)](_0x56cb5f){const _0x1bb2d8=_0x144368;var _0x4b1197;if(_0x56cb5f['code']===kt[_0x1bb2d8(0xe2)]){this[_0x1bb2d8(0x104)][_0x1bb2d8(0xff)]({'type':_0x2aebf3[_0x1bb2d8(0x3ca)],'content':this[_0x1bb2d8(0x335)]['t']('session.room-full')}),this[_0x1bb2d8(0x155)][_0x1bb2d8(0x105)](0x2);return;}this[_0x1bb2d8(0x155)][_0x1bb2d8(0x105)](0x3);const _0x3c4acb=(_0x4b1197=_0x56cb5f['data'][_0x1bb2d8(0xa3)][this[_0x1bb2d8(0x162)]])==null?void 0x0:_0x4b1197['members'];_0x3c4acb&&_0x3c4acb[_0x1bb2d8(0x13f)](_0x4516da=>this[_0x1bb2d8(0x18e)][_0x1bb2d8(0x2dc)](this['_unitID'],_0x4516da));}[_0x144368(0x2de)](_0x384478){const _0x4fe386=_0x144368;try{const _0x104e59=_0x384478[_0x4fe386(0x116)];switch(_0x104e59[_0x4fe386(0x27e)]){case _0x184323['USERS_ENTER']:this[_0x4fe386(0x3a8)](_0x104e59),this[_0x4fe386(0x24d)][_0x4fe386(0x105)](_0x104e59);break;case _0x184323[_0x4fe386(0xdc)]:this[_0x4fe386(0x21e)](_0x104e59),this[_0x4fe386(0x24d)][_0x4fe386(0x105)](_0x104e59);break;case _0x184323[_0x4fe386(0x152)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x4fe386(0xdf)](),this['_event$']['next'](_0x104e59);break;case _0x184323['MSG_FOR_ERROR']:this[_0x4fe386(0x193)][_0x4fe386(0x30a)](_0x4fe386(0x114)+JSON['stringify'](_0x104e59)),this[_0x4fe386(0x24d)][_0x4fe386(0x105)](_0x104e59);break;case _0x184323[_0x4fe386(0x11f)]:this['_commentService']['onCommentUpdate'](_0x104e59['data']),this['_event$']['next'](_0x104e59);break;default:this[_0x4fe386(0x24d)]['next'](_0x104e59);}}catch(_0x2a07b2){this[_0x4fe386(0x193)]['error'](_0x2a07b2,_0x384478);}}['_onUserJoin'](_0x231a22){const _0x223daf=_0x144368;this['_memberService'][_0x223daf(0x2dc)](this['_unitID'],_0x231a22[_0x223daf(0x116)]);}[_0x144368(0x21e)](_0x3f0ca5){const _0x5d3d0d=_0x144368;this['_memberService'][_0x5d3d0d(0x3b6)](this[_0x5d3d0d(0x162)],_0x3f0ca5[_0x5d3d0d(0x116)][_0x5d3d0d(0x214)]);}async[_0x144368(0x37e)](_0xa44cd6,_0x13612b){const _0x3f9210=_0x144368;if(this[_0x3f9210(0xc6)]!==0x3||!this[_0x3f9210(0x2be)])throw new Error(_0x3f9210(0x3d0));try{_0xa44cd6['eventID']===_0x184323[_0x3f9210(0x261)]&&(this[_0x3f9210(0xa9)](),this[_0x3f9210(0x99)](_0xa44cd6)),this['_socket'][_0x3f9210(0x37e)]({'cmd':I['INGEST'],'routeKey':_0x13612b,'routeType':'','data':_0xa44cd6});}catch(_0x29f63a){this['_logService'][_0x3f9210(0x30a)](_0x29f63a);}}[_0x144368(0xa9)](){const _0x18bc0b=_0x144368;var _0x5533d8;this['_collaborationTimeoutTimer']=window[_0x18bc0b(0x337)](()=>{const _0x5dfa7c=_0x18bc0b;this[_0x5dfa7c(0x19c)]=null,this['_messageService'][_0x5dfa7c(0xff)]({'type':_0x2aebf3[_0x5dfa7c(0x358)],'content':this[_0x5dfa7c(0x335)]['t'](_0x5dfa7c(0xf7))});},(_0x5533d8=this['_configService'][_0x18bc0b(0x2a7)](Ns))!=null?_0x5533d8:Us);}[_0x144368(0xdf)](){const _0x4b1831=_0x144368;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x4b1831(0x19c)]),this['_collaborationTimeoutTimer']=null);}[_0x144368(0x99)](_0x371604){const _0x159b56=_0x144368;if(!this[_0x159b56(0x331)])return;const {data:_0x89c5d1}=_0x371604,{unitID:_0x4cad3e,changeset:_0x249d38}=_0x89c5d1,{mutations:_0x297f5e,type:_0x5501d3}=_0x249d38;this[_0x159b56(0x1e6)]={'unitId':_0x4cad3e,'type':_0x5501d3,'startTime':performance[_0x159b56(0x367)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x297f5e)};}[_0x144368(0x3a4)](){const _0x4bb28e=_0x144368;if(this[_0x4bb28e(0x331)]){if(!this[_0x4bb28e(0x1e6)]){this[_0x4bb28e(0x193)][_0x4bb28e(0x30a)](_0x4bb28e(0x38e),_0x4bb28e(0x1ef));return;}this['_telemetryInfo'][_0x4bb28e(0xe9)]=performance[_0x4bb28e(0x367)](),this[_0x4bb28e(0x1e6)][_0x4bb28e(0x376)]=this['_telemetryInfo'][_0x4bb28e(0xe9)]-this[_0x4bb28e(0x1e6)][_0x4bb28e(0xa5)],this[_0x4bb28e(0x3d6)][_0x4bb28e(0x321)](jn,this[_0x4bb28e(0x1e6)]),this[_0x4bb28e(0x1e6)]=null;}}[_0x144368(0x22d)](){const _0x5789c3=_0x144368;this[_0x5789c3(0x1e6)]=null;}};Ct=Gn([J(0x2,_0x4192f8),J(0x3,_0xf6b79c),J(0x4,_0x5e3364),J(0x5,_0x7d1a6e),J(0x6,_0x3a563e(_0xa2267e)),J(0x7,_0x3a563e(ae)),J(0x8,_0x3a563e($s)),J(0x9,_0x2c8260(_0xb9d152))],Ct);var Yn=Object[_0x144368(0x14c)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x3289e0,_0xbd91e9,_0x581ac8,_0x505ac8)=>{const _0x4a39a3=_0x144368;for(var _0x5363a9=_0x505ac8>0x1?void 0x0:_0x505ac8?Kn(_0xbd91e9,_0x581ac8):_0xbd91e9,_0x4057a0=_0x3289e0[_0x4a39a3(0x405)]-0x1,_0x34b9d1;_0x4057a0>=0x0;_0x4057a0--)(_0x34b9d1=_0x3289e0[_0x4057a0])&&(_0x5363a9=(_0x505ac8?_0x34b9d1(_0xbd91e9,_0x581ac8,_0x5363a9):_0x34b9d1(_0x5363a9))||_0x5363a9);return _0x505ac8&&_0x5363a9&&Yn(_0xbd91e9,_0x581ac8,_0x5363a9),_0x5363a9;},de=(_0x562d0e,_0xd0c3e4)=>(_0x2cfa2b,_0x2d5342)=>_0xd0c3e4(_0x2cfa2b,_0x2d5342,_0x562d0e);let ce=class extends _0x114c09{constructor(_0x5901f5,_0xd18488,_0x3b8b4b,_0x43e1f1,_0x1986d6,_0x491fdf){const _0x5d0786=_0x144368;super(),l(this,_0x5d0786(0x3a2),new _0x153d59(void 0x0)),l(this,_0x5d0786(0x1bf),this[_0x5d0786(0x3a2)][_0x5d0786(0x3bd)]()),l(this,_0x5d0786(0x3fe),null),l(this,_0x5d0786(0x32c),new Map()),l(this,_0x5d0786(0x1e1),new _0x153d59(G[_0x5d0786(0x14e)])),l(this,_0x5d0786(0x2df),this[_0x5d0786(0x1e1)][_0x5d0786(0x3bd)]()),l(this,_0x5d0786(0xe6),!0x1),l(this,_0x5d0786(0x24e)),l(this,'_retryCount',0x0),l(this,_0x5d0786(0x380)),l(this,_0x5d0786(0x187)),(this['_injector']=_0x5901f5,this[_0x5d0786(0x335)]=_0xd18488,this[_0x5d0786(0x104)]=_0x3b8b4b,this[_0x5d0786(0x193)]=_0x43e1f1,this[_0x5d0786(0x22e)]=_0x1986d6,this[_0x5d0786(0x2d8)]=_0x491fdf,this['_initEventListeners']());}get[_0x144368(0x2be)](){const _0x19df9e=_0x144368;return this[_0x19df9e(0x3a2)][_0x19df9e(0x3a5)]();}[_0x144368(0x27b)](){const _0x2d4ae9=_0x144368;this[_0x2d4ae9(0x2d3)](),this[_0x2d4ae9(0x93)]();}['dispose'](){const _0x1dc362=_0x144368;super[_0x1dc362(0x119)](),this[_0x1dc362(0x32c)][_0x1dc362(0x13f)](_0x423cd7=>_0x423cd7[_0x1dc362(0x119)]()),this[_0x1dc362(0x32c)][_0x1dc362(0x1f8)](),this[_0x1dc362(0x1e1)][_0x1dc362(0x159)]();}async[_0x144368(0x126)](_0x48757c){const _0x2a395b=_0x144368;if(this[_0x2a395b(0x32c)][_0x2a395b(0x381)](_0x48757c))return this['_sessions']['get'](_0x48757c);this[_0x2a395b(0x1d7)]();const _0x206a27=this['_injector']['createInstance'](Ct,_0x48757c,this[_0x2a395b(0x3a2)][_0x2a395b(0x3bd)]());return this[_0x2a395b(0x32c)][_0x2a395b(0x2b2)](_0x48757c,_0x206a27),_0x206a27;}['closeSession'](_0x27dbc2){const _0xa212d2=_0x144368;var _0x578336;const _0x35ae06=this[_0xa212d2(0x32c)][_0xa212d2(0x33c)](_0x27dbc2);_0x35ae06&&(this[_0xa212d2(0x32c)][_0xa212d2(0x218)](_0x27dbc2),_0x35ae06[_0xa212d2(0x280)]()),this[_0xa212d2(0x32c)]['size']||(_0x578336=this['_socket'])==null||_0x578336[_0xa212d2(0x280)]();}['reconnect'](){const _0x2b6a74=_0x144368;this['_retryCount']=0x0,this[_0x2b6a74(0x24e)]!=null&&(clearTimeout(this[_0x2b6a74(0x24e)]),this[_0x2b6a74(0x24e)]=null),this[_0x2b6a74(0x30e)]();}[_0x144368(0x3cb)](){const _0xc60aae=_0x144368;var _0x27af96,_0x53757c;const _0x639dc4=this[_0xc60aae(0x22e)][_0xc60aae(0x2a7)](Sn),_0x1c8b57=this[_0xc60aae(0x22e)][_0xc60aae(0x2a7)](L),_0x5744e7=(_0x53757c=(_0x27af96=_0x1c8b57==null?void 0x0:_0x1c8b57[_0xc60aae(0x37c)])!=null?_0x27af96:_0x639dc4)!=null?_0x53757c:pn,_0x268999=this[_0xc60aae(0x2d8)][_0xc60aae(0x1fa)](_0x5744e7);return this[_0xc60aae(0x3fe)]=_0x268999,_0x268999;}[_0x144368(0x1d7)](){const _0x14e7fa=_0x144368;var _0x5ced4b,_0xdcf27e;try{const _0x4fdc8f=(_0xdcf27e=(_0x5ced4b=this[_0x14e7fa(0x2be)])!=null?_0x5ced4b:this[_0x14e7fa(0x3fe)])!=null?_0xdcf27e:this[_0x14e7fa(0x3cb)]();if(_0x4fdc8f){const _0x386bb0=_0x4fdc8f[_0x14e7fa(0x37e)];_0x4fdc8f[_0x14e7fa(0x37e)]=_0x6a2746=>(this[_0x14e7fa(0x2f0)](),_0x386bb0[_0x14e7fa(0x403)](_0x4fdc8f,[_0x6a2746])),_0x4fdc8f['message$'][_0x14e7fa(0x1c7)](_0x2ae79a=>this[_0x14e7fa(0x35d)](_0x4fdc8f,_0x2ae79a)),_0x4fdc8f['error$'][_0x14e7fa(0x33b)](_0x27e093(0x1))[_0x14e7fa(0x1c7)](_0x254ae7=>this[_0x14e7fa(0x193)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x254ae7)),_0x4fdc8f[_0x14e7fa(0x23c)][_0x14e7fa(0x33b)](_0x27e093(0x1))['subscribe'](()=>{const _0x4b564b=_0x14e7fa;this[_0x4b564b(0x244)](_0x4fdc8f);}),_0x4fdc8f[_0x14e7fa(0x219)]['pipe'](_0x27e093(0x1))['subscribe'](_0x273759=>{const _0x926dcf=_0x14e7fa;this['_logService'][_0x926dcf(0x392)](_0x926dcf(0xd3),_0x926dcf(0x2fa),_0x273759),this['_onConnectionFailed']();});}}catch(_0x2da19e){this['_logService']['error'](_0x2da19e),this[_0x14e7fa(0x227)]();}}[_0x144368(0x244)](_0xd87cfe){const _0x4195dd=_0x144368;this[_0x4195dd(0x193)][_0x4195dd(0x392)]('[CollaborationSessionService]',_0x4195dd(0x324)),_0xd87cfe[_0x4195dd(0x37e)]({'cmd':I[_0x4195dd(0xfc)]}),this[_0x4195dd(0x2f0)]();}[_0x144368(0x2d3)](){const _0x591ce2=_0x144368;window['addEventListener'](_0x591ce2(0x311),()=>this[_0x591ce2(0x1d8)]());}[_0x144368(0x1d8)](){const _0x36deb6=_0x144368;this[_0x36deb6(0xe6)]=!0x1,this[_0x36deb6(0x3fe)]=null,this[_0x36deb6(0x1e1)][_0x36deb6(0x105)](G['OFFLINE']),this[_0x36deb6(0x3a2)][_0x36deb6(0x105)](null),this[_0x36deb6(0x347)](),this['_clearHeartbeatTimer']();}[_0x144368(0x227)](){const _0x397bbf=_0x144368;var _0xfaf4f8;this[_0x397bbf(0x1d8)](),this[_0x397bbf(0x33e)]<((_0xfaf4f8=this['_configService']['getConfig'](Cn))!=null?_0xfaf4f8:bn)?(this['_messageService'][_0x397bbf(0xff)]({'key':_0x397bbf(0x343),'type':_0x2aebf3['Warning'],'content':this[_0x397bbf(0x335)]['t']('session.will-retry')}),this[_0x397bbf(0x30e)]()):this['_messageService'][_0x397bbf(0xff)]({'key':_0x397bbf(0x343),'type':_0x2aebf3[_0x397bbf(0x358)],'content':this[_0x397bbf(0x335)]['t'](_0x397bbf(0x1c9))});}[_0x144368(0x93)](){const _0xfb6884=_0x144368,_0x168a46=()=>{const _0x576345=_0x5e18;this[_0x576345(0x2be)]||this[_0x576345(0x249)]();},_0xe32ad7=()=>{const _0x2090e8=_0x5e18;this[_0x2090e8(0x2be)]||document[_0x2090e8(0x121)]==='hidden'||this['reconnect']();};window['addEventListener']('online',_0x168a46),document[_0xfb6884(0x30d)]('visibilitychange',_0xe32ad7);}[_0x144368(0x30e)](){const _0x49f962=_0x144368;var _0x2a1385;const _0x3af691=this[_0x49f962(0x33e)],_0x2eb359=this[_0x49f962(0x22e)][_0x49f962(0x2a7)](L),_0x557d5d=_0x3af691===0x0?0x0:((_0x2a1385=_0x2eb359==null?void 0x0:_0x2eb359['retryConnectingInterval'])!=null?_0x2a1385:En)*0x2**_0x3af691;this[_0x49f962(0x24e)]=window['setTimeout'](()=>{const _0x4ba48f=_0x49f962;clearTimeout(this[_0x4ba48f(0x24e)]),this[_0x4ba48f(0x24e)]=null,this[_0x4ba48f(0x1d7)]();},_0x557d5d),this[_0x49f962(0x33e)]+=0x1;}[_0x144368(0x35d)](_0x33d9b3,_0x36991d){const _0x30ada4=_0x144368,{cmd:_0x75232c}=_0x36991d;_0x75232c===I['HELLO']&&!this[_0x30ada4(0xe6)]&&(_0x33d9b3['memberID']=_0x36991d[_0x30ada4(0x116)][_0x30ada4(0x214)],this['_socket$']['next'](_0x33d9b3),this[_0x30ada4(0x1e1)][_0x30ada4(0x105)](G[_0x30ada4(0x15f)]),this[_0x30ada4(0xe6)]=!0x0,this[_0x30ada4(0x3fe)]=null),_0x75232c===I[_0x30ada4(0x362)]&&this[_0x30ada4(0x347)](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x839d25=_0x144368;var _0x2a2a02;this['_clearHeartbeatTimer'](),this[_0x839d25(0x380)]=window[_0x839d25(0x337)](()=>this[_0x839d25(0x1cd)](),(_0x2a2a02=this[_0x839d25(0x22e)][_0x839d25(0x2a7)](vn))!=null?_0x2a2a02:In);}[_0x144368(0x1cd)](){const _0x1fac06=_0x144368;this['_socket'][_0x1fac06(0x37e)]({'cmd':I[_0x1fac06(0x362)]}),this[_0x1fac06(0x37a)]();}['_waitForHeartbeatResponse'](){const _0x58d995=_0x144368;var _0x4cfd5e;this[_0x58d995(0x187)]=window['setTimeout'](()=>this[_0x58d995(0x227)](),(_0x4cfd5e=this[_0x58d995(0x22e)][_0x58d995(0x2a7)](Ns))!=null?_0x4cfd5e:Us);}[_0x144368(0x3f5)](){const _0x301c67=_0x144368;this[_0x301c67(0x380)]!=null&&(clearTimeout(this[_0x301c67(0x380)]),this['_sendHeartbeatTimer']=null);}[_0x144368(0x347)](){const _0x4f6273=_0x144368;this[_0x4f6273(0x187)]!=null&&(clearTimeout(this[_0x4f6273(0x187)]),this['_timeoutTimer']=null);}};ce=Xn([de(0x0,_0x3a563e(_0x54963c)),de(0x1,_0x3a563e(_0xa2267e)),de(0x2,_0x5e3364),de(0x3,_0x4192f8),de(0x4,_0x7d1a6e),de(0x5,Ls)],ce);var Jn=Object[_0x144368(0x14c)],qn=Object['getOwnPropertyDescriptor'],zn=(_0x5366ea,_0x62b5c0,_0x10c58a,_0x1ccf99)=>{const _0x4451e3=_0x144368;for(var _0x8ac8fb=_0x1ccf99>0x1?void 0x0:_0x1ccf99?qn(_0x62b5c0,_0x10c58a):_0x62b5c0,_0x1d8f99=_0x5366ea[_0x4451e3(0x405)]-0x1,_0x562ed3;_0x1d8f99>=0x0;_0x1d8f99--)(_0x562ed3=_0x5366ea[_0x1d8f99])&&(_0x8ac8fb=(_0x1ccf99?_0x562ed3(_0x62b5c0,_0x10c58a,_0x8ac8fb):_0x562ed3(_0x8ac8fb))||_0x8ac8fb);return _0x1ccf99&&_0x8ac8fb&&Jn(_0x62b5c0,_0x10c58a,_0x8ac8fb),_0x8ac8fb;},ct=(_0x251e7c,_0x439fc3)=>(_0x1b6b00,_0x58f94e)=>_0x439fc3(_0x1b6b00,_0x58f94e,_0x251e7c);let Ye=class{constructor(_0x253df3,_0x29525f,_0x3b868a){const _0x1e317a=_0x144368;this[_0x1e317a(0xb7)]=_0x253df3,this[_0x1e317a(0x125)]=_0x29525f,this[_0x1e317a(0x2f2)]=_0x3b868a;}[_0x144368(0x1f3)](_0x13a56){const _0x1bae93=_0x144368;this[_0x1bae93(0x3e2)](_0x13a56),this[_0x1bae93(0x3d8)](_0x13a56);}[_0x144368(0x2c6)](_0x153a92){const _0x3cbc76=_0x144368,{unitID:_0x4cd395}=_0x153a92,_0x3a29e4=this[_0x3cbc76(0x2f2)]['getRenderById'](_0x4cd395)['with'](_0x10a842),{redoCache:_0x3cdd84}=_0x3a29e4[_0x3cbc76(0x382)]();if(_0x3cdd84['length']===0x0)return _0x153a92;let _0x2f726f=_0x41a12a['deepClone'](_0x153a92[_0x3cbc76(0x3f0)][0x0]);for(let _0x34aa29=0x0;_0x34aa29<_0x3cdd84[_0x3cbc76(0x405)];_0x34aa29++){const _0x522062={'id':'doc.mutation.rich-text-editing','params':{..._0x3cdd84[_0x34aa29]}},_0x2ff1db=this[_0x3cbc76(0x125)][_0x3cbc76(0x389)](_0x2f726f,_0x522062,!0x1);if(_0x5005dc(_0x2ff1db))throw _0x2ff1db[_0x3cbc76(0x30a)];_0x2f726f=_0x2ff1db[_0x3cbc76(0x1dc)];}return{..._0x41a12a[_0x3cbc76(0x37d)](_0x153a92),'mutations':[_0x2f726f]};}['_transformUndoRedoStack'](_0x251af8){const _0x54fb4b=_0x144368,{unitID:_0x45826a}=_0x251af8,_0x5a94cb=this['_renderManagerService'][_0x54fb4b(0x17e)](_0x45826a)['with'](_0x10a842),{undoCache:_0x28f9a0,redoCache:_0x3b6303}=_0x5a94cb[_0x54fb4b(0x382)]();if(_0x28f9a0[_0x54fb4b(0x405)]===0x0||_0x3b6303[_0x54fb4b(0x405)]===0x0)return;const _0x1ed572=[],_0x382526=[];let _0x196266=_0x41a12a[_0x54fb4b(0x37d)](_0x251af8[_0x54fb4b(0x3f0)][0x0]),_0x240da9=_0x41a12a[_0x54fb4b(0x37d)](_0x251af8[_0x54fb4b(0x3f0)][0x0]);for(let _0x561432=_0x28f9a0[_0x54fb4b(0x405)]-0x1;_0x561432>=0x0;_0x561432--){const _0x917a7e={'id':_0x54fb4b(0x3b1),'params':{..._0x28f9a0[_0x561432]}},_0x5c46b3={'id':_0x54fb4b(0x3b1),'params':{..._0x3b6303[_0x561432]}},_0x330fbe=this[_0x54fb4b(0x125)][_0x54fb4b(0x389)](_0x196266,_0x917a7e,!0x1),_0x390f81=this['_transformService'][_0x54fb4b(0x389)](_0x240da9,_0x5c46b3,!0x1);if(_0x5005dc(_0x330fbe))throw _0x330fbe[_0x54fb4b(0x30a)];if(_0x5005dc(_0x390f81))throw _0x390f81[_0x54fb4b(0x30a)];_0x1ed572['unshift'](_0x330fbe[_0x54fb4b(0x2ca)][_0x54fb4b(0x225)]),_0x382526['unshift'](_0x390f81['m2Prime'][_0x54fb4b(0x225)]),_0x196266=_0x330fbe[_0x54fb4b(0x1dc)],_0x240da9=_0x390f81['m1Prime'];}_0x5a94cb['setUndoRedoMutationParamsCache']({'undoCache':_0x1ed572,'redoCache':_0x382526});}[_0x144368(0x3d8)](_0x1c64ba){const _0x2002c2=_0x144368,{unitID:_0x26aade}=_0x1c64ba,_0x3cc3a9=this['_renderManagerService'][_0x2002c2(0x17e)](_0x26aade)['with'](_0x10a842),_0x3a28c2=_0x3cc3a9[_0x2002c2(0x21d)]();if(_0x3a28c2==null)return;const _0x3bfa09=[{'id':_0x2002c2(0x3b1),'params':{'unitId':_0x1c64ba[_0x2002c2(0x24a)],'actions':null,'textRanges':[_0x3a28c2]}}],_0x2d0997=this[_0x2002c2(0x125)][_0x2002c2(0x1ad)](_0x1c64ba,_0x3bfa09);if(!_0x4ca9f5(_0x2d0997))throw _0x2d0997[_0x2002c2(0x30a)];const _0x1104f2=_0x2d0997[_0x2002c2(0x2ca)][0x0]['params'][_0x2002c2(0x9d)];Array[_0x2002c2(0x384)](_0x1104f2)&&_0x1104f2[_0x2002c2(0x405)]&&_0x3cc3a9[_0x2002c2(0x32d)](_0x1104f2[0x0]);}};Ye=zn([ct(0x0,_0x3a563e(_0x54963c)),ct(0x1,_0x5a828b),ct(0x2,_0x102807)],Ye);var Zn=Object[_0x144368(0x14c)],Qn=Object[_0x144368(0x3e4)],er=(_0x569854,_0x5ed816,_0x3c4012,_0x350b39)=>{const _0x554b59=_0x144368;for(var _0x3ddf96=_0x350b39>0x1?void 0x0:_0x350b39?Qn(_0x5ed816,_0x3c4012):_0x5ed816,_0x2ce375=_0x569854[_0x554b59(0x405)]-0x1,_0x1f2ffc;_0x2ce375>=0x0;_0x2ce375--)(_0x1f2ffc=_0x569854[_0x2ce375])&&(_0x3ddf96=(_0x350b39?_0x1f2ffc(_0x5ed816,_0x3c4012,_0x3ddf96):_0x1f2ffc(_0x3ddf96))||_0x3ddf96);return _0x350b39&&_0x3ddf96&&Zn(_0x5ed816,_0x3c4012,_0x3ddf96),_0x3ddf96;},Oe=(_0x831d15,_0x2ed38a)=>(_0x3b4a8c,_0x421e00)=>_0x2ed38a(_0x3b4a8c,_0x421e00,_0x831d15);let D=class extends _0x114c09{constructor(_0x28aad5,_0x8a8bb,_0xc835e9,_0x2fc890,_0x3707f0){const _0x5d9f5b=_0x144368;super(),l(this,_0x5d9f5b(0x355),new Map()),l(this,_0x5d9f5b(0x40c),new Map()),l(this,_0x5d9f5b(0x1a9),!0x1),(this[_0x5d9f5b(0x22e)]=_0x28aad5,this[_0x5d9f5b(0xa8)]=_0x8a8bb,this[_0x5d9f5b(0x2bc)]=_0xc835e9,this['_localeService']=_0x2fc890,this[_0x5d9f5b(0xa6)]=_0x3707f0,this[_0x5d9f5b(0xb3)]());}[_0x144368(0x3a7)](){const _0x30eb25=_0x144368;this[_0x30eb25(0x1a9)]=!0x0;}[_0x144368(0x13e)](){const _0x3bd6fe=_0x144368;this[_0x3bd6fe(0x1a9)]=!0x1;}[_0x144368(0x119)](){const _0x5b14ce=_0x144368;this[_0x5b14ce(0x3aa)]()['then'](()=>super[_0x5b14ce(0x119)]());}async['loadOfflineData'](_0x327714){const _0x3ec056=_0x144368;return this[_0x3ec056(0x1a9)]?null:this[_0x3ec056(0xa8)]['getItem'](os(_0x327714));}async[_0x144368(0x2f7)](_0x263c7f,_0x4ec547){const _0x454c63=_0x144368;return!!this[_0x454c63(0xa8)][_0x454c63(0x2f5)](_0x263c7f,_0x4ec547);}[_0x144368(0x1ae)](_0x24f01e,_0x20eced,_0x2e90cb,_0x1c5367){const _0x99d7c5=_0x144368,_0x146506=this['_revisionService']['getCurrentRevOfUnit'](_0x24f01e);this[_0x99d7c5(0x355)]['set'](_0x24f01e,{'unitID':_0x24f01e,'type':_0x20eced,'awaitingChangeset':_0x2e90cb,'mutations':_0x1c5367,'rev':_0x146506}),this[_0x99d7c5(0x40c)]['has'](_0x24f01e)||this['_scheduleSaving'](_0x24f01e);}[_0x144368(0x14d)](_0x11288f){const _0x517074=_0x144368,_0x34c2ee=this[_0x517074(0x1cc)]();_0x34c2ee===0x0?this[_0x517074(0x2db)](_0x11288f):this[_0x517074(0x40c)][_0x517074(0x2b2)](_0x11288f,setTimeout(()=>this['_saveCache'](_0x11288f),_0x34c2ee));}[_0x144368(0x1cc)](){const _0x156ae6=_0x144368;var _0x388e46;return(_0x388e46=this[_0x156ae6(0x22e)]['getConfig'](Tn))!=null?_0x388e46:Rn;}[_0x144368(0x2db)](_0x4f3274){const _0x37915b=_0x144368,_0x2aad1b=this[_0x37915b(0x40c)]['get'](_0x4f3274);return _0x2aad1b!==void 0x0&&window['clearTimeout'](_0x2aad1b),this[_0x37915b(0xa8)][_0x37915b(0x2f5)](os(_0x4f3274),this['_cachedData']['get'](_0x4f3274))['then'](()=>this[_0x37915b(0x40c)][_0x37915b(0x218)](_0x4f3274));}async[_0x144368(0x3aa)](){const _0x34462c=_0x144368,_0x319a4f=[];this[_0x34462c(0x40c)][_0x34462c(0x13f)]((_0x39e5a7,_0x2f4c7a)=>{const _0x3b1547=_0x34462c;window[_0x3b1547(0x22b)](_0x39e5a7),_0x319a4f['push'](this[_0x3b1547(0x2db)](_0x2f4c7a)['then'](()=>{const _0x461ceb=_0x3b1547;this[_0x461ceb(0x40c)][_0x461ceb(0x218)](_0x2f4c7a);}));}),await Promise[_0x34462c(0x136)](_0x319a4f);}[_0x144368(0xb3)](){const _0x4ed928=_0x144368;this[_0x4ed928(0x133)](this[_0x4ed928(0x2bc)][_0x4ed928(0x1a3)](()=>{const _0x804b94=_0x4ed928;if(this[_0x804b94(0x40c)][_0x804b94(0x3c4)])return this[_0x804b94(0x335)]['t'](_0x804b94(0x231));}));}};D=er([Oe(0x0,_0x7d1a6e),Oe(0x1,_0x4ed3af),Oe(0x2,_0xf6b79c),Oe(0x3,_0x3a563e(_0xa2267e)),Oe(0x4,_0x3a563e(_0x384ffe))],D);function os(_0x4f3f8f){const _0x123104=_0x144368;return _0x123104(0x221)+_0x4f3f8f;}var tr=Object['defineProperty'],sr=Object[_0x144368(0x3e4)],ir=(_0x5d97b3,_0x17f616,_0x1293bc,_0x19fcff)=>{const _0x1aa8af=_0x144368;for(var _0x43839f=_0x19fcff>0x1?void 0x0:_0x19fcff?sr(_0x17f616,_0x1293bc):_0x17f616,_0x4e52d2=_0x5d97b3[_0x1aa8af(0x405)]-0x1,_0x560a62;_0x4e52d2>=0x0;_0x4e52d2--)(_0x560a62=_0x5d97b3[_0x4e52d2])&&(_0x43839f=(_0x19fcff?_0x560a62(_0x17f616,_0x1293bc,_0x43839f):_0x560a62(_0x43839f))||_0x43839f);return _0x19fcff&&_0x43839f&&tr(_0x17f616,_0x1293bc,_0x43839f),_0x43839f;},ht=(_0x3ad9e7,_0x30887c)=>(_0x3a0189,_0x1a1750)=>_0x30887c(_0x3a0189,_0x1a1750,_0x3ad9e7);function nr(_0x5409e2){const _0x3ec8b7=_0x144368,{unitID:_0x4a0fcd,mutations:_0x236b87}=_0x5409e2;return{'unitId':_0x4a0fcd,'subUnitId':_0x236b87[0x0]['params'][_0x3ec8b7(0x19e)]};}let Ke=class{constructor(_0x1c5726,_0xeab913,_0x3e8266){const _0x2a5659=_0x144368;this[_0x2a5659(0xb7)]=_0x1c5726,this['_transformService']=_0xeab913,this[_0x2a5659(0x11d)]=_0x3e8266;}[_0x144368(0xee)](_0x2c9a88){const _0x48329c=_0x144368;var _0x2b4fa7,_0x1a60e8,_0x3d79b6,_0x14ef48;const _0x5a81a0=this[_0x48329c(0xb7)][_0x48329c(0x33c)](_0x173a75),{unitId:_0x3902b3,subUnitId:_0x50d6aa}=nr(_0x2c9a88),_0x4cd6ea=_0x5a81a0[_0x48329c(0x21b)](_0x3902b3)[_0x48329c(0x257)](),_0x4b1ed0=(_0x1a60e8=(_0x2b4fa7=this[_0x48329c(0x11d)][_0x48329c(0x2a0)](_0x3902b3))==null?void 0x0:_0x2b4fa7['getActiveSheet']())==null?void 0x0:_0x1a60e8[_0x48329c(0x25f)]();if(_0x4cd6ea[_0x48329c(0x405)]===0x0||!_0x3902b3||!_0x50d6aa)return;const _0x159a57=[{'id':_0x40d36b['id'],'params':{'unitId':_0x3902b3,'subUnitId':_0x4b1ed0,'selections':_0x41a12a[_0x48329c(0x37d)](_0x4cd6ea)}}],_0x315ec7=this['_transformService']['transformMutationsWithChangeset'](_0x2c9a88,_0x159a57);if(!_0x4ca9f5(_0x315ec7))throw _0x315ec7['error'];const _0x546f29=(_0x14ef48=(_0x3d79b6=_0x315ec7[_0x48329c(0x2ca)][0x0])==null?void 0x0:_0x3d79b6[_0x48329c(0x225)])==null?void 0x0:_0x14ef48[_0x48329c(0x398)];Array['isArray'](_0x546f29)&&_0x546f29[_0x48329c(0x405)]&&this[_0x48329c(0xb7)]['get'](_0x401dc7)[_0x48329c(0x1a5)](_0x40d36b['id'],{'unitId':_0x3902b3,'subUnitId':_0x4b1ed0,'selections':_0x546f29});}};Ke=ir([ht(0x0,_0x3a563e(_0x54963c)),ht(0x1,_0x5a828b),ht(0x2,_0x2d956c)],Ke);const tt=_0x372366(_0x144368(0x180));var js=(_0x434420=>(_0x434420[_0x434420[_0x144368(0x3f8)]=0x0]=_0x144368(0x3f8),_0x434420[_0x434420[_0x144368(0x1c4)]=0x1]=_0x144368(0x1c4),_0x434420))(js||{});const as=0x7530,cs=_0x144368(0x1bb);class rr extends _0x114c09{constructor(){const _0x46eb29=_0x144368;super(),l(this,'_id',_0x41a12a[_0x46eb29(0x2bb)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x46eb29(0x2c1),new Map()),l(this,_0x46eb29(0x2b9),null),l(this,_0x46eb29(0x34e),new Map()),l(this,_0x46eb29(0x13c),new Map()),this[_0x46eb29(0x15d)]();}[_0x144368(0x119)](){const _0x1893db=_0x144368;super[_0x1893db(0x119)](),this['_clearOtherTimers']['forEach']((_0x2e0d2e,_0x4598b5)=>this['_removeClearOtherTimer'](_0x4598b5)),this['_heartbeatTimer']&&window[_0x1893db(0x301)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x1a3a87){const _0x126dbb=_0x144368;return this['_ensureSubject'](_0x1a3a87)[_0x126dbb(0x33b)](_0xedb536());}[_0x144368(0x2cd)](_0xcc369d){const _0x3ed3a5=_0x144368;this[_0x3ed3a5(0x3f4)][_0x3ed3a5(0x3c4)]===0x0&&this[_0x3ed3a5(0x224)](),this[_0x3ed3a5(0x3f4)][_0x3ed3a5(0x282)](_0xcc369d),this['_send']({'type':0x0,'memberID':this[_0x3ed3a5(0xe1)],'unitIDs':[_0xcc369d],'isForwarded':!0x1});}[_0x144368(0x279)](_0x43cbb4){const _0x5227d3=_0x144368;this['_selfUnitIDs']['delete'](_0x43cbb4),this[_0x5227d3(0x3f4)]['size']===0x0&&this[_0x5227d3(0x2b9)]&&window[_0x5227d3(0x301)](this[_0x5227d3(0x2b9)]);}[_0x144368(0x15d)](){const _0x370047=_0x144368;this['disposeWithMe'](_0x2c721c(_0x1f361e(window,_0x370047(0x33f))[_0x370047(0x1c7)](_0x841a62=>{const _0x27cf27=_0x370047;if(_0x841a62[_0x27cf27(0x174)]!==cs||!_0x841a62[_0x27cf27(0x17c)])return;const _0x50ae6d=JSON[_0x27cf27(0x1b2)](_0x841a62[_0x27cf27(0x17c)]);this['_handleEvent'](_0x50ae6d);}))),window[_0x370047(0x30d)](_0x370047(0x1b7),()=>this[_0x370047(0x204)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x144368(0x351)](_0x43f7a8){const _0x151d99=_0x144368;switch(_0x43f7a8['type']){case 0x0:this[_0x151d99(0x9f)](_0x43f7a8);break;case 0x1:this[_0x151d99(0x209)](_0x43f7a8);break;case 0x2:this[_0x151d99(0x109)](_0x43f7a8);break;}}[_0x144368(0x9f)](_0x57cbd8){const _0x4f3c7f=_0x144368,{unitIDs:_0x512fed,memberID:_0x3fbbc6,isForwarded:_0x118bbc}=_0x57cbd8;_0x512fed[_0x4f3c7f(0x13f)](_0x5015b0=>{const _0x223bd0=_0x4f3c7f;if(!_0x118bbc&&this[_0x223bd0(0x2c1)]['has'](_0x5015b0)&&this[_0x223bd0(0x31b)](_0x5015b0)[_0x223bd0(0x105)](0x1),!this['_unitOnClients'][_0x223bd0(0x381)](_0x5015b0)||!this[_0x223bd0(0x2c1)]['get'](_0x5015b0)[_0x223bd0(0x381)](_0x3fbbc6)){const _0x5e53ae=this[_0x223bd0(0x2c1)][_0x223bd0(0x33c)](_0x5015b0)||new Set();_0x5e53ae['add'](_0x3fbbc6),this[_0x223bd0(0x2c1)][_0x223bd0(0x2b2)](_0x5015b0,_0x5e53ae),this[_0x223bd0(0x26c)](_0x3fbbc6);}}),_0x118bbc||this[_0x4f3c7f(0x204)]({'type':0x0,'memberID':this[_0x4f3c7f(0xe1)],'unitIDs':[...this[_0x4f3c7f(0x3f4)]],'isForwarded':!0x0});}[_0x144368(0x26c)](_0x5f5810){const _0x53e8b6=_0x144368;this[_0x53e8b6(0xc8)](_0x5f5810);const _0x347bcf=window[_0x53e8b6(0x337)](()=>{this['_unitOnClients']['forEach'](_0x23ffa9=>{_0x23ffa9['delete'](_0x5f5810);});},as*0x2);this[_0x53e8b6(0x34e)][_0x53e8b6(0x2b2)](_0x5f5810,_0x347bcf);}[_0x144368(0xc8)](_0x6031f){const _0x1fe477=_0x144368;if(this[_0x1fe477(0x34e)]['has'](_0x6031f)){const _0x120eee=this[_0x1fe477(0x34e)]['get'](_0x6031f);_0x120eee&&window[_0x1fe477(0x22b)](_0x120eee),this[_0x1fe477(0x34e)][_0x1fe477(0x2b2)](_0x6031f,null);}}[_0x144368(0x209)](_0x273434){const _0x1f5e0a=_0x144368,{memberID:_0x371a79,unitIDs:_0x4c31ac}=_0x273434;_0x4c31ac[_0x1f5e0a(0x13f)](_0x4dc099=>{const _0x45488f=_0x1f5e0a;var _0x33e399;const _0x16fc42=this[_0x45488f(0x2c1)][_0x45488f(0x33c)](_0x4dc099);_0x16fc42&&(_0x16fc42[_0x45488f(0x218)](_0x371a79),(_0x33e399=this['_ensureSubject'](_0x4dc099))==null||_0x33e399[_0x45488f(0x105)](_0x16fc42[_0x45488f(0x3c4)]===0x0?0x0:0x1));}),this[_0x1f5e0a(0xc8)](_0x371a79);}['_handleHeartbeatEvent'](_0x1eb924){const _0x44bcc5=_0x144368;this[_0x44bcc5(0x26c)](_0x1eb924[_0x44bcc5(0x214)]);}['_send'](_0x32c479){const _0x51e16c=_0x144368;localStorage[_0x51e16c(0x2f5)](cs,JSON[_0x51e16c(0xb9)](_0x32c479));}[_0x144368(0x224)](){const _0x560000=_0x144368;this[_0x560000(0x2b9)]=window[_0x560000(0x357)](()=>{const _0x22e606=_0x560000;this['_send']({'type':0x2,'memberID':this[_0x22e606(0xe1)]});},as);}[_0x144368(0x31b)](_0x4f723b){const _0x5b7c5c=_0x144368;return this[_0x5b7c5c(0x13c)][_0x5b7c5c(0x381)](_0x4f723b)||this['_unitStatus'][_0x5b7c5c(0x2b2)](_0x4f723b,new _0x153d59(0x0)),this['_unitStatus'][_0x5b7c5c(0x33c)](_0x4f723b);}}function xs(_0x55bfdb){const _0x37721b=_0x144368;let _0x18969a='';for(const _0x59de2c of _0x55bfdb){const {startOffset:_0x458379,endOffset:_0x5d8401,isActive:_0x2d2d4b}=_0x59de2c;_0x18969a[_0x37721b(0x405)]&&(_0x18969a+=','),_0x18969a+=_0x458379+':'+_0x5d8401+':'+(_0x2d2d4b?'1':'0');}return _0x18969a;}function or(_0x195f10){const _0x45ef90=_0x144368,_0x1bde2b=_0x195f10[_0x45ef90(0x266)](','),_0x395cf2=[];for(const _0x35edf2 of _0x1bde2b){const [_0x78beee,_0x4b8e89,_0xfcbe8a]=_0x35edf2[_0x45ef90(0x266)](':');_0x395cf2[_0x45ef90(0x3ff)]({'startOffset':Number(_0x78beee),'endOffset':Number(_0x4b8e89),'collapsed':_0x78beee===_0x4b8e89,'isActive':_0xfcbe8a==='1'});}return _0x395cf2['some'](_0x5567af=>_0x5567af['isActive'])||(_0x395cf2[0x0][_0x45ef90(0x2d0)]=!0x0),_0x395cf2;}class Bt extends _0xa18742{constructor(){const _0x236ca2=_0x144368;super(...arguments),l(this,_0x236ca2(0xb8),new _0x153d59(null)),l(this,_0x236ca2(0x402),this[_0x236ca2(0xb8)][_0x236ca2(0x3bd)]());}['syncEditingCollabCursor'](_0xd72b2e){const _0x2ffa6b=_0x144368,{unitID:_0x87e11d,memberID:_0x325059,textRanges:_0x4ea4a7}=_0xd72b2e,_0x410110=xs(_0x4ea4a7),_0x1359f6={'unitID':_0x87e11d,'memberID':_0x325059,'selection':_0x410110};this[_0x2ffa6b(0xb8)][_0x2ffa6b(0x105)](_0x1359f6);}}var ar=Object[_0x144368(0x14c)],cr=Object[_0x144368(0x3e4)],hr=(_0x387985,_0x3b4b2c,_0x4d1227,_0x444ead)=>{const _0x1b2ee5=_0x144368;for(var _0x126334=_0x444ead>0x1?void 0x0:_0x444ead?cr(_0x3b4b2c,_0x4d1227):_0x3b4b2c,_0x599a81=_0x387985[_0x1b2ee5(0x405)]-0x1,_0x20dbbe;_0x599a81>=0x0;_0x599a81--)(_0x20dbbe=_0x387985[_0x599a81])&&(_0x126334=(_0x444ead?_0x20dbbe(_0x3b4b2c,_0x4d1227,_0x126334):_0x20dbbe(_0x126334))||_0x126334);return _0x444ead&&_0x126334&&ar(_0x3b4b2c,_0x4d1227,_0x126334),_0x126334;},hs=(_0x257b41,_0x47e3b1)=>(_0x53d329,_0x3455b2)=>_0x47e3b1(_0x53d329,_0x3455b2,_0x257b41);let Xe=class{constructor(_0x513c7a,_0x2372d5){this['_injector']=_0x513c7a,this['_transformService']=_0x2372d5;}[_0x144368(0xee)](_0x5e0b74){const _0xe04ef6=_0x144368;var _0x2afe82;const _0x196504=this[_0xe04ef6(0xb7)][_0xe04ef6(0x33c)](_0x5beeff),_0x179b95=(_0x2afe82=_0x196504[_0xe04ef6(0x32b)]())!=null?_0x2afe82:[];if(_0x179b95[_0xe04ef6(0x405)]===0x0)return;const _0x15b231=[{'id':_0xe04ef6(0x3b1),'params':{'unitId':_0x5e0b74['unitID'],'actions':null,'textRanges':_0x179b95}}],_0x15cf55=this[_0xe04ef6(0x125)][_0xe04ef6(0x1ad)](_0x5e0b74,_0x15b231);if(!_0x4ca9f5(_0x15cf55))throw _0x15cf55['error'];const _0x16c8cc=_0x15cf55['m2Prime'][0x0]['params']['textRanges'];Array['isArray'](_0x16c8cc)&&_0x16c8cc[_0xe04ef6(0x405)]&&_0x196504[_0xe04ef6(0x365)](_0x16c8cc,!0x1);}};Xe=hr([hs(0x0,_0x3a563e(_0x54963c)),hs(0x1,_0x5a828b)],Xe);const lr=new Set([_0x37edab['id']]);function ls(_0x428859,_0x1eca9d,_0x2bd28b,_0x20586e,_0x533d4c){const _0x4a9ae5=_0x144368;var _0x597d7b,_0x1cb68d,_0x3ae1dc,_0x394d29;const _0x10a1f2=[];for(const _0x648274 of _0x428859)if(lr[_0x4a9ae5(0x381)](_0x648274['id'])){if(_0x10a1f2[_0x4a9ae5(0x405)]>0x0)break;_0x10a1f2['push'](_0x648274);break;}else _0x10a1f2[_0x4a9ae5(0x3ff)](_0x648274);const _0x2b3f2f=(_0x1cb68d=(_0x597d7b=_0x533d4c['getCurrentUser']())==null?void 0x0:_0x597d7b[_0x4a9ae5(0x237)])!=null?_0x1cb68d:'unknown',_0x9669e3=(_0x394d29=(_0x3ae1dc=_0x533d4c[_0x4a9ae5(0x284)]())==null?void 0x0:_0x3ae1dc[_0x4a9ae5(0x214)])!=null?_0x394d29:_0x4a9ae5(0x19b);return{'changeset':{'unitID':_0x1eca9d,'type':_0x4e1c88(_0x2bd28b[_0x4a9ae5(0x354)](_0x1eca9d)),'baseRev':_0x20586e[_0x4a9ae5(0x2f8)](_0x1eca9d),'revision':0x0,'userID':_0x2b3f2f,'memberID':_0x9669e3,'mutations':_0x10a1f2},'pendingMutations':_0x428859['slice'](_0x10a1f2[_0x4a9ae5(0x405)])};}function _r(_0x51adb2,_0x370dde,_0x274d59,_0x4611c9,_0x4f399e){const _0xd314d9=_0x144368;var _0x1e8caa,_0x55aa1d,_0x1797e7,_0x267439;const _0x3a643e=[_0x51adb2['reduce']((_0x3e3bdd,_0x530491)=>{const _0x5d486b=_0x5e18;var _0x1b3de0;const {id:_0x2c0bc1}=_0x3e3bdd,{id:_0x2de6d5,type:_0x159d38}=_0x530491,_0x1a193c=(_0x1b3de0=_0x3e3bdd[_0x5d486b(0x225)])!=null?_0x1b3de0:{'actions':null},_0x5648ef=_0x530491[_0x5d486b(0x225)];if(_0x2c0bc1&&_0x2c0bc1!==_0x2de6d5)throw new Error(_0x5d486b(0x2eb)+_0x2c0bc1+'\x20-\x20'+_0x2de6d5+'.');return{..._0x3e3bdd,'id':_0x2de6d5,'type':_0x159d38,'params':{'unitId':_0x5648ef[_0x5d486b(0x3f2)],'textRanges':_0x5648ef[_0x5d486b(0x9d)],'actions':_0x5f39c3['compose'](_0x1a193c['actions'],_0x5648ef[_0x5d486b(0x370)])}};},{})],_0x23c3d7=(_0x55aa1d=(_0x1e8caa=_0x4f399e['getCurrentUser']())==null?void 0x0:_0x1e8caa['userID'])!=null?_0x55aa1d:'unknown',_0x35b9e8=(_0x267439=(_0x1797e7=_0x4f399e[_0xd314d9(0x284)]())==null?void 0x0:_0x1797e7['memberID'])!=null?_0x267439:_0xd314d9(0x19b);return{'changeset':{'unitID':_0x370dde,'type':_0x4e1c88(_0x274d59[_0xd314d9(0x354)](_0x370dde)),'baseRev':_0x4611c9[_0xd314d9(0x2f8)](_0x370dde),'revision':0x0,'userID':_0x23c3d7,'memberID':_0x35b9e8,'mutations':_0x3a643e},'pendingMutations':[]};}const ur={'id':_0x5f53cd['id'],'type':_0x199f49['MUTATION'],'params':{}};var dr=Object[_0x144368(0x14c)],fr=Object[_0x144368(0x3e4)],le=(_0x455437,_0x50199a,_0x4d5b56,_0x17aa3d)=>{const _0x521a3e=_0x144368;for(var _0x3497c9=_0x17aa3d>0x1?void 0x0:_0x17aa3d?fr(_0x50199a,_0x4d5b56):_0x50199a,_0x5cfe07=_0x455437[_0x521a3e(0x405)]-0x1,_0x13531f;_0x5cfe07>=0x0;_0x5cfe07--)(_0x13531f=_0x455437[_0x5cfe07])&&(_0x3497c9=(_0x17aa3d?_0x13531f(_0x50199a,_0x4d5b56,_0x3497c9):_0x13531f(_0x3497c9))||_0x3497c9);return _0x17aa3d&&_0x3497c9&&dr(_0x50199a,_0x4d5b56,_0x3497c9),_0x3497c9;},m=(_0x2ce128,_0x529714)=>(_0x14141a,_0x5139e6)=>_0x529714(_0x14141a,_0x5139e6,_0x2ce128),w=(_0x44b01c=>(_0x44b01c['NOT_COLLAB']=_0x144368(0x364),_0x44b01c[_0x144368(0xf9)]=_0x144368(0x1db),_0x44b01c[_0x144368(0x3ab)]=_0x144368(0x34b),_0x44b01c[_0x144368(0x2d2)]=_0x144368(0x271),_0x44b01c[_0x144368(0x3bf)]='awaiting_with_pending',_0x44b01c[_0x144368(0x26a)]=_0x144368(0x3ae),_0x44b01c['CONFLICT']='conflict',_0x44b01c[_0x144368(0x3f6)]=_0x144368(0x311),_0x44b01c))(w||{});class _e{constructor(_0x38e996,_0x1d2b57,_0x276735,_0x5d2c9d,_0x292155,_0x589ba6,_0x3788a8,_0x399451,_0x90287f){const _0x155e42=_0x144368;l(this,'_awaitingChangeset',null),l(this,_0x155e42(0x134),[]),(this['unitID']=_0x38e996,this[_0x155e42(0x103)]=_0x1d2b57,this[_0x155e42(0x1f1)]=_0x292155,this[_0x155e42(0x3da)]=_0x589ba6,this[_0x155e42(0x2a9)]=_0x3788a8,this[_0x155e42(0xa6)]=_0x399451,this[_0x155e42(0x2c3)]=_0x90287f,this[_0x155e42(0x28e)]=_0x276735,this[_0x155e42(0x134)]=_0x5d2c9d);}[_0x144368(0x1ff)](_0x5cdf8e){const _0x577b95=_0x144368,_0x61e68e=this['_revisionService'][_0x577b95(0x2f8)](this['unitID']);return _0x5cdf8e[_0x577b95(0x245)]>_0x61e68e+0x1?(this[_0x577b95(0x1f1)][_0x577b95(0x1b4)]({'from':_0x61e68e,'to':_0x5cdf8e['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x267384){const _0x2aeeea=_0x144368;this[_0x2aeeea(0x2a9)][_0x2aeeea(0x1bc)](this['unitID'],_0x267384);}[_0x144368(0x363)](_0xddf347){const _0x48c031=_0x144368;var _0x1c0083,_0x24308a;(_0x24308a=(_0x1c0083=this[_0x48c031(0x1f1)])[_0x48c031(0x329)])==null||_0x24308a['call'](_0x1c0083,_0xddf347);}[_0x144368(0x210)](_0x4e5a75){const _0x5b680d=_0x144368;var _0x897a1f,_0x24dada;return(_0x24dada=(_0x897a1f=this[_0x5b680d(0x1f1)])['onTransformIME'])==null?void 0x0:_0x24dada['call'](_0x897a1f,_0x4e5a75);}[_0x144368(0x341)](_0x1ee0cb){const _0x2947c2=_0x144368;var _0x4e811f,_0x22ed16,_0x78936c;return(_0x78936c=(_0x22ed16=(_0x4e811f=this[_0x2947c2(0x1f1)])[_0x2947c2(0x1b6)])==null?void 0x0:_0x22ed16[_0x2947c2(0x164)](_0x4e811f,_0x1ee0cb))!=null?_0x78936c:_0x1ee0cb;}[_0x144368(0x185)](_0x63c0f0){const _0x3bf5bf=_0x144368;var _0x4ec4a3,_0x13de4b;if(this[_0x3bf5bf(0x103)]===H[_0x3bf5bf(0x306)]){const {unitID:_0x144da7,mutations:_0x6c2e87,memberID:_0x3aad7c}=_0x63c0f0,_0x51b535=_0x6c2e87[0x0][_0x3bf5bf(0x225)][_0x3bf5bf(0x9d)];Array[_0x3bf5bf(0x384)](_0x51b535)&&_0x51b535[_0x3bf5bf(0x405)]>0x0&&((_0x13de4b=(_0x4ec4a3=this['_handler'])[_0x3bf5bf(0x2d5)])==null||_0x13de4b[_0x3bf5bf(0x164)](_0x4ec4a3,{'unitID':_0x144da7,'memberID':_0x3aad7c,'textRanges':_0x51b535}));}}[_0x144368(0x173)](){const _0x3a9165=_0x144368;this[_0x3a9165(0x2c3)][_0x3a9165(0x1ae)](this[_0x3a9165(0x24a)],this['type'],this[_0x3a9165(0x28e)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x5f1a57=_0x144368;return this[_0x5f1a57(0xa6)]['getCurrentRevOfUnit'](this[_0x5f1a57(0x24a)]);}[_0x144368(0x92)](){const _0x5715bc=_0x144368;this[_0x5715bc(0xa6)][_0x5715bc(0x39e)](this[_0x5715bc(0x24a)]);}['_executeRemoteChangeset'](_0x1ac62c){const _0x1cdeb0=_0x144368;var _0x57c75a;const _0x325759=this['_transformRemoteChangesetByIMECache'](_0x1ac62c),_0x1a29d0=_0x9ac02e(_0x325759[_0x1cdeb0(0x3f0)],this[_0x1cdeb0(0x3da)],{'fromCollab':!0x0});if(!_0x1a29d0['result'])throw _0x1a29d0[_0x1cdeb0(0x30a)]instanceof Error?_0x1a29d0[_0x1cdeb0(0x30a)]:new Error((_0x57c75a=_0x1a29d0[_0x1cdeb0(0x30a)])!=null?_0x57c75a:_0x1cdeb0(0x1b1));this[_0x1cdeb0(0x210)](_0x325759),this[_0x1cdeb0(0x2aa)](_0x1ac62c),this[_0x1cdeb0(0x363)](_0x325759),this[_0x1cdeb0(0x185)](_0x325759),this[_0x1cdeb0(0x92)]();}}let Se=class extends _e{constructor(_0xb09486,_0x432e8c,_0x48b15a,_0x221d5f,_0x18adf6,_0xb0a2a3,_0x5b16fb,_0x21ad78,_0x1331c4,_0x3b2e3e){const _0x57989b=_0x144368;super(_0xb09486,_0x432e8c,null,[],_0x48b15a,_0x21ad78,_0x5b16fb,_0x221d5f,_0x18adf6),l(this,_0x57989b(0x35c),_0x57989b(0x1db)),(this[_0x57989b(0xb7)]=_0xb0a2a3,this[_0x57989b(0x193)]=_0x1331c4,this[_0x57989b(0x125)]=_0x3b2e3e);}[_0x144368(0x38f)](_0xf0af2c){const _0x3db588=_0x144368,_0x11a0b7=this[_0x3db588(0xb7)][_0x3db588(0x2ae)](K,this['unitID'],this[_0x3db588(0x103)],[_0xf0af2c],this['_handler']);return _0x11a0b7['_schedule'](),_0x11a0b7['_updateLocalCache'](),_0x11a0b7;}['onRemoteChangeset'](_0x131296){const _0x46064e=_0x144368;if(this['_checkMissing'](_0x131296))return this[_0x46064e(0xb7)][_0x46064e(0x2ae)](k,this[_0x46064e(0x24a)],this[_0x46064e(0x103)],null,[],null,[_0x131296],this[_0x46064e(0x1f1)]);try{const _0x560e0f=this[_0x46064e(0x125)][_0x46064e(0x1ad)](_0x131296,[ur]);if(_0x4ca9f5(_0x560e0f)){const {c1Prime:_0x12e158}=_0x560e0f;return this['_executeRemoteChangeset'](_0x12e158),this;}throw _0x560e0f[_0x46064e(0x30a)];}catch(_0x289397){return this['_logService'][_0x46064e(0x30a)](_0x289397),this[_0x46064e(0xc5)](!0x1);}}[_0x144368(0xc5)](_0x156134){const _0x32e20e=_0x144368;return this[_0x32e20e(0xb7)][_0x32e20e(0x2ae)](Q,this[_0x32e20e(0x24a)],this[_0x32e20e(0x103)],null,[],this[_0x32e20e(0x1f1)],_0x156134);}[_0x144368(0x27d)](){const _0x32f899=_0x144368;throw new Error(_0x32f899(0x123));}[_0x144368(0x35b)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x26b5e8=_0x144368;return this[_0x26b5e8(0xb7)][_0x26b5e8(0x2ae)](ee,this[_0x26b5e8(0x24a)],this[_0x26b5e8(0x103)],null,[],this[_0x26b5e8(0x1f1)]);}[_0x144368(0x1d6)](){return this;}[_0x144368(0xce)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x144368(0x37b)](){const _0x4a5cb=_0x144368,_0x28114f=this['_revisionService'][_0x4a5cb(0x2f8)](this[_0x4a5cb(0x24a)]);return this[_0x4a5cb(0x1f1)][_0x4a5cb(0x1b4)]({'from':_0x28114f,'to':0x0}),this[_0x4a5cb(0xb7)][_0x4a5cb(0x2ae)](k,this['unitID'],this[_0x4a5cb(0x103)],null,[],null,[],this[_0x4a5cb(0x1f1)]);}};Se=le([m(0x3,_0x3a563e(_0x384ffe)),m(0x4,_0x3a563e(D)),m(0x5,_0x3a563e(_0x54963c)),m(0x6,_0x13dae0),m(0x7,_0x401dc7),m(0x8,_0x4192f8),m(0x9,_0x5a828b)],Se);let K=class extends _e{constructor(_0x236d7f,_0x5aa8b1,_0x4cdcde,_0xba755c,_0x31c5c1,_0x5f04cb,_0x16d149,_0xa29e9a,_0x17297a,_0xe214,_0x37bb5b,_0x52af18,_0x563fcc,_0x342b99){const _0x41680f=_0x144368;super(_0x236d7f,_0x5aa8b1,null,_0x4cdcde,_0xba755c,_0xe214,_0x342b99,_0x5f04cb,_0x16d149),l(this,_0x41680f(0x35c),_0x41680f(0x34b)),l(this,_0x41680f(0x3a6),null),l(this,_0x41680f(0x17b),null),(this['_injector']=_0x31c5c1,this['_memberService']=_0xa29e9a,this[_0x41680f(0x193)]=_0x17297a,this[_0x41680f(0x22e)]=_0x37bb5b,this[_0x41680f(0x125)]=_0x52af18,this['_univerInstanceService']=_0x563fcc);}[_0x144368(0x38f)](_0x2fddd2){const _0x5f256f=_0x144368;return this[_0x5f256f(0x134)][_0x5f256f(0x3ff)](_0x2fddd2),this[_0x5f256f(0x173)](),this;}['onRemoteChangeset'](_0x2e0787){const _0x3d472c=_0x144368;if(this[_0x3d472c(0x1ff)](_0x2e0787))return this[_0x3d472c(0x16f)](),this[_0x3d472c(0xb7)][_0x3d472c(0x2ae)](k,this[_0x3d472c(0x24a)],this[_0x3d472c(0x103)],null,this['_pendingMutations'],null,[_0x2e0787],this[_0x3d472c(0x1f1)]);try{const _0x2ba662=this[_0x3d472c(0x125)][_0x3d472c(0x1ad)](_0x2e0787,this[_0x3d472c(0x134)]);if(_0x4ca9f5(_0x2ba662)){const {c1Prime:_0x32fdd2,m2Prime:_0x3a7c91}=_0x2ba662;this[_0x3d472c(0x1c6)](_0x32fdd2);const _0x4da29b=this[_0x3d472c(0xb7)][_0x3d472c(0x2ae)](K,this[_0x3d472c(0x24a)],this[_0x3d472c(0x103)],_0x3a7c91,this[_0x3d472c(0x1f1)]);return this[_0x3d472c(0x16f)](),_0x4da29b[_0x3d472c(0xdd)](this['_scheduleTimestamp']?Math[_0x3d472c(0x94)](0x0,new Date()[_0x3d472c(0x2e4)]()-this['_scheduleTimestamp']):this[_0x3d472c(0x160)]()),_0x4da29b;}throw _0x2ba662[_0x3d472c(0x30a)];}catch(_0x1ae269){return this[_0x3d472c(0x193)][_0x3d472c(0x30a)](_0x1ae269),this[_0x3d472c(0xc5)](!0x1);}}[_0x144368(0x27d)](){const _0x1f8f4a=_0x144368;throw new Error(_0x1f8f4a(0xd4));}['onRemoteRej'](){const _0x118a44=_0x144368;throw new Error(_0x118a44(0x2dd));}['toggleOffline'](){const _0x18ae3a=_0x144368;return this['_clearScheduledTask'](),this[_0x18ae3a(0xb7)]['createInstance'](ee,this[_0x18ae3a(0x24a)],this[_0x18ae3a(0x103)],null,this[_0x18ae3a(0x134)],this['_handler']);}['toggleOnline'](){return this;}[_0x144368(0xdd)](_0x56338d){const _0x4dc61b=_0x144368,_0x15adc4=_0x56338d!=null?_0x56338d:this['_getSendChangesetTimeout']();this[_0x4dc61b(0x3a6)]=new Date()[_0x4dc61b(0x2e4)](),this[_0x4dc61b(0x17b)]=window[_0x4dc61b(0x337)](()=>{const _0x641435=_0x4dc61b;this[_0x641435(0x16f)]();let _0x34b33f=null;switch(this[_0x641435(0x103)]){case H['UNIVER_SHEET']:{_0x34b33f=ls(this[_0x641435(0x134)],this['unitID'],this[_0x641435(0x3a1)],this[_0x641435(0xa6)],this[_0x641435(0x18e)]);break;}case H[_0x641435(0x306)]:{this['_pendingMutations']['every'](_0x9a4c00=>_0x9a4c00['id']===_0x3496ab['id'])?_0x34b33f=_r(this[_0x641435(0x134)],this[_0x641435(0x24a)],this[_0x641435(0x3a1)],this[_0x641435(0xa6)],this[_0x641435(0x18e)]):_0x34b33f=ls(this[_0x641435(0x134)],this[_0x641435(0x24a)],this[_0x641435(0x3a1)],this[_0x641435(0xa6)],this[_0x641435(0x18e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x641435(0x103)]+_0x641435(0x3db));}const {changeset:_0x3211a3,pendingMutations:_0x4bde4b}=_0x34b33f;this[_0x641435(0x1f1)][_0x641435(0x2d1)](_0x3211a3);const _0x29ceef=_0x4bde4b[_0x641435(0x405)]?this[_0x641435(0xb7)][_0x641435(0x2ae)](X,this[_0x641435(0x24a)],this['type'],_0x3211a3,_0x4bde4b,this[_0x641435(0x1f1)]):this[_0x641435(0xb7)][_0x641435(0x2ae)](Z,this[_0x641435(0x24a)],this[_0x641435(0x103)],_0x3211a3,this[_0x641435(0x1f1)]);_0x29ceef[_0x641435(0x173)](),this[_0x641435(0x1f1)][_0x641435(0x1eb)](this,_0x29ceef);},_0x15adc4);}[_0x144368(0x160)](){const _0x69870f=_0x144368;var _0x3a78bf;const _0x15e02c=this['_configService']['getConfig'](L);return(_0x3a78bf=_0x15e02c==null?void 0x0:_0x15e02c[_0x69870f(0x297)])!=null?_0x3a78bf:gn;}[_0x144368(0xce)](){const _0x840fae=_0x144368;throw new Error(_0x840fae(0x2b8));}[_0x144368(0x16f)](){const _0x39226b=_0x144368;this[_0x39226b(0x17b)]!=null&&(clearTimeout(this[_0x39226b(0x17b)]),this[_0x39226b(0x17b)]=null);}['_onConflict'](_0x14cd01){const _0x47e3ba=_0x144368;return this[_0x47e3ba(0x16f)](),this[_0x47e3ba(0xb7)][_0x47e3ba(0x2ae)](Q,this[_0x47e3ba(0x24a)],this[_0x47e3ba(0x103)],null,this[_0x47e3ba(0x134)],this[_0x47e3ba(0x1f1)],_0x14cd01);}};K=le([m(0x4,_0x3a563e(_0x54963c)),m(0x5,_0x3a563e(_0x384ffe)),m(0x6,_0x3a563e(D)),m(0x7,_0x3a563e(ae)),m(0x8,_0x4192f8),m(0x9,_0x401dc7),m(0xa,_0x7d1a6e),m(0xb,_0x5a828b),m(0xc,_0x2d956c),m(0xd,_0x13dae0)],K);let Z=class extends _e{constructor(_0x28af04,_0x5b2b2d,_0x5f4228,_0x4b4aa5,_0x55a574,_0x3073ec,_0x57ae18,_0x22eafe,_0x4b4658,_0x2648ac,_0x29df3a){const _0x2d7224=_0x144368;super(_0x28af04,_0x5b2b2d,_0x5f4228,[],_0x4b4aa5,_0x22eafe,_0x29df3a,_0x3073ec,_0x57ae18),l(this,_0x2d7224(0x35c),_0x2d7224(0x271)),(this['_injector']=_0x55a574,this[_0x2d7224(0x193)]=_0x4b4658,this[_0x2d7224(0x125)]=_0x2648ac);}['appendMutation'](_0x598db1){const _0x28c0c6=_0x144368,_0x40e82f=this['_injector'][_0x28c0c6(0x2ae)](X,this[_0x28c0c6(0x24a)],this[_0x28c0c6(0x103)],this[_0x28c0c6(0x28e)],[_0x598db1],this[_0x28c0c6(0x1f1)]);return _0x40e82f[_0x28c0c6(0x173)](),_0x40e82f;}['onRemoteChangeset'](_0x25925b){const _0x54db47=_0x144368;if(this[_0x54db47(0x1ff)](_0x25925b))return this[_0x54db47(0xb7)][_0x54db47(0x2ae)](k,this['unitID'],this[_0x54db47(0x103)],this['_awaitingChangeset'],[],null,[_0x25925b],this[_0x54db47(0x1f1)]);try{const _0x2ce1cb=this['_transformService']['transformChangesets']([_0x25925b],[this[_0x54db47(0x28e)]],!0x1);if(_0x2bc369(_0x2ce1cb)){const {c1Prime:_0x17b2a7,c2Prime:_0xf4bf70}=_0x2ce1cb;this[_0x54db47(0x1c6)](_0x17b2a7[0x0]),_0xf4bf70[0x0][_0x54db47(0x334)]=this[_0x54db47(0x37f)]();const _0x2f6f68=this[_0x54db47(0xb7)]['createInstance'](Z,this[_0x54db47(0x24a)],this[_0x54db47(0x103)],_0xf4bf70[0x0],this[_0x54db47(0x1f1)]);return _0x2f6f68['_updateLocalCache'](),_0x2f6f68;}return this[_0x54db47(0xc5)](!0x1);}catch(_0x3468e5){return this['_logService']['error'](_0x3468e5),this[_0x54db47(0xc5)](!0x1);}}[_0x144368(0x27d)](_0x5b5db4){const _0x166121=_0x144368,_0x49d54b=this[_0x166121(0xa6)][_0x166121(0x2f8)](this[_0x166121(0x24a)]);if(_0x5b5db4[_0x166121(0x245)]<_0x49d54b-0x1)return this;if(this[_0x166121(0x1ff)](_0x5b5db4))return this['_injector'][_0x166121(0x2ae)](k,this[_0x166121(0x24a)],this[_0x166121(0x103)],null,[],this[_0x166121(0x28e)],[],this[_0x166121(0x1f1)]);this[_0x166121(0x92)]();const _0x51349b=this[_0x166121(0xb7)]['createInstance'](Se,this[_0x166121(0x24a)],this['type'],this[_0x166121(0x1f1)]);return _0x51349b[_0x166121(0x173)](),_0x51349b;}[_0x144368(0x35b)](_0x469e48){const _0x243a61=_0x144368;return this['_onConflict'](!!(_0x469e48!=null&&_0x469e48[_0x243a61(0x30f)]));}['toggleOffline'](){const _0x227e6a=_0x144368;return this['_injector'][_0x227e6a(0x2ae)](ee,this[_0x227e6a(0x24a)],this[_0x227e6a(0x103)],this[_0x227e6a(0x28e)],[],this[_0x227e6a(0x1f1)]);}['toggleOnline'](){return this;}[_0x144368(0xce)](){const _0x5a9241=_0x144368;this[_0x5a9241(0x1f1)][_0x5a9241(0x2d1)](this[_0x5a9241(0x28e)]);}[_0x144368(0xc5)](_0x97ef7f){const _0x5196b9=_0x144368;return this['_injector'][_0x5196b9(0x2ae)](Q,this[_0x5196b9(0x24a)],this[_0x5196b9(0x103)],this[_0x5196b9(0x28e)],[],this[_0x5196b9(0x1f1)],_0x97ef7f);}};Z=le([m(0x4,_0x3a563e(_0x54963c)),m(0x5,_0x3a563e(_0x384ffe)),m(0x6,_0x3a563e(D)),m(0x7,_0x401dc7),m(0x8,_0x4192f8),m(0x9,_0x5a828b),m(0xa,_0x13dae0)],Z);let X=class extends _e{constructor(_0x39fd74,_0x14eabc,_0x48e665,_0x132038,_0x23ca21,_0x2f8c08,_0x5a2ddf,_0x51c67d,_0x22bda4,_0x3a29a5,_0x5a0ec8,_0x3d7e09){const _0x18f7ea=_0x144368;super(_0x39fd74,_0x14eabc,_0x48e665,_0x132038,_0x23ca21,_0x22bda4,_0x3d7e09,_0x5a2ddf,_0x51c67d),l(this,_0x18f7ea(0x35c),_0x18f7ea(0x294)),(this[_0x18f7ea(0xb7)]=_0x2f8c08,this[_0x18f7ea(0x193)]=_0x3a29a5,this[_0x18f7ea(0x125)]=_0x5a0ec8);}['appendMutation'](_0x4092e4){const _0x825861=_0x144368;return this[_0x825861(0x134)][_0x825861(0x3ff)](_0x4092e4),this;}[_0x144368(0x369)](_0x8a0a44){const _0x12967c=_0x144368;if(this[_0x12967c(0x1ff)](_0x8a0a44))return this[_0x12967c(0xb7)][_0x12967c(0x2ae)](k,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x12967c(0x134)],null,[_0x8a0a44],this[_0x12967c(0x1f1)]);try{const _0x383793=this[_0x12967c(0x125)][_0x12967c(0x3c7)]([_0x8a0a44],[this[_0x12967c(0x28e)]],!0x1);if(_0x2bc369(_0x383793)){const {c1Prime:_0x2a0c50,c2Prime:_0x3bf443}=_0x383793,_0xe5c31=this[_0x12967c(0x125)]['transformMutationsWithChangeset'](_0x2a0c50[0x0],this[_0x12967c(0x134)]);if(_0x4ca9f5(_0xe5c31)){const {c1Prime:_0x9c4127,m2Prime:_0x2f063e}=_0xe5c31;return this[_0x12967c(0x1c6)](_0x9c4127),_0x3bf443[0x0][_0x12967c(0x334)]=this[_0x12967c(0x37f)](),this[_0x12967c(0xb7)][_0x12967c(0x2ae)](X,this[_0x12967c(0x24a)],this['type'],_0x3bf443[0x0],_0x2f063e,this[_0x12967c(0x1f1)]);}throw _0xe5c31[_0x12967c(0x30a)];}throw _0x383793[_0x12967c(0x30a)];}catch(_0x5cc9bf){return this[_0x12967c(0x193)][_0x12967c(0x30a)](_0x5cc9bf),this[_0x12967c(0xc5)](!0x1);}}[_0x144368(0x27d)](_0x5874fb){const _0x977d9b=_0x144368;if(this[_0x977d9b(0x1ff)](_0x5874fb))return this[_0x977d9b(0xb7)][_0x977d9b(0x2ae)](k,this[_0x977d9b(0x24a)],this['type'],null,this[_0x977d9b(0x134)],this['_awaitingChangeset'],[],this[_0x977d9b(0x1f1)]);this[_0x977d9b(0x92)]();const _0x7f183b=this[_0x977d9b(0xb7)][_0x977d9b(0x2ae)](K,this[_0x977d9b(0x24a)],this[_0x977d9b(0x103)],this[_0x977d9b(0x134)],this[_0x977d9b(0x1f1)]);return _0x7f183b[_0x977d9b(0xdd)](),_0x7f183b[_0x977d9b(0x173)](),_0x7f183b;}[_0x144368(0x35b)](_0x3afdc8){const _0x579ea1=_0x144368;return this[_0x579ea1(0xc5)](!!(_0x3afdc8!=null&&_0x3afdc8['isPermissionRej']));}[_0x144368(0x313)](){const _0x15d3a8=_0x144368;return this[_0x15d3a8(0xb7)][_0x15d3a8(0x2ae)](ee,this[_0x15d3a8(0x24a)],this['type'],this[_0x15d3a8(0x28e)],this['_pendingMutations'],this[_0x15d3a8(0x1f1)]);}['toggleOnline'](){return this;}['resend'](){const _0x1dcfef=_0x144368;this['_handler'][_0x1dcfef(0x2d1)](this[_0x1dcfef(0x28e)]);}[_0x144368(0xc5)](_0x3633a9){const _0x35d6da=_0x144368;return this[_0x35d6da(0xb7)][_0x35d6da(0x2ae)](Q,this[_0x35d6da(0x24a)],this[_0x35d6da(0x103)],null,this['_pendingMutations'],this[_0x35d6da(0x1f1)],_0x3633a9);}};X=le([m(0x5,_0x3a563e(_0x54963c)),m(0x6,_0x3a563e(_0x384ffe)),m(0x7,_0x3a563e(D)),m(0x8,_0x401dc7),m(0x9,_0x4192f8),m(0xa,_0x5a828b),m(0xb,_0x13dae0)],X);let Q=class extends _e{constructor(_0x46943d,_0x420441,_0x5958dd,_0x45ab95,_0x46b7ac,_0x4f4e65=!0x1,_0x3f80f5,_0x2a74de,_0x3c56bc,_0x39388c,_0x3fad2f,_0x2337d4,_0x5ec977){const _0x302296=_0x144368;super(_0x46943d,_0x420441,_0x5958dd,_0x45ab95,_0x46b7ac,_0x2a74de,_0x3c56bc,_0x3fad2f,_0x39388c),l(this,'status','conflict'),(this[_0x302296(0x238)]=_0x4f4e65,this[_0x302296(0x18f)]=_0x3f80f5,this[_0x302296(0x335)]=_0x2337d4,this['_notificationService']=_0x5ec977,this[_0x302296(0x38b)](),this[_0x302296(0x3b3)](),this['_disableEditing']());}[_0x144368(0x38f)](){return this;}[_0x144368(0x369)](){return this;}[_0x144368(0x27d)](){return this;}[_0x144368(0x35b)](){return this;}[_0x144368(0x313)](){return this;}[_0x144368(0x1d6)](){return this;}[_0x144368(0xce)](){const _0x2e44bd=_0x144368;throw new Error(_0x2e44bd(0x3df));}['_clearLocalCache'](){const _0x2e408e=_0x144368;this[_0x2e408e(0x2c3)][_0x2e408e(0x1ae)](this['unitID'],this['type'],null,[]);}[_0x144368(0x38b)](){const _0x2d2b5f=_0x144368;this['_isPermissionRej']?this['_notificationService'][_0x2d2b5f(0xff)]({'title':this[_0x2d2b5f(0x335)]['t'](_0x2d2b5f(0x128)),'content':this[_0x2d2b5f(0x335)]['t'](_0x2d2b5f(0x1a8)),'type':_0x2d2b5f(0x30a),'duration':0x0}):this['_notificationService'][_0x2d2b5f(0xff)]({'title':this[_0x2d2b5f(0x335)]['t'](_0x2d2b5f(0x1ea)),'content':this[_0x2d2b5f(0x335)]['t'](_0x2d2b5f(0xba)),'type':_0x2d2b5f(0x30a),'duration':0x0});}[_0x144368(0x18b)](){const _0x140f39=_0x144368;this[_0x140f39(0x18f)][_0x140f39(0x263)](new _0x451bae(this[_0x140f39(0x24a)])['id'],!0x1);}};Q=le([m(0x6,_0x3a563e(_0x48c29f)),m(0x7,_0x401dc7),m(0x8,_0x13dae0),m(0x9,_0x3a563e(D)),m(0xa,_0x3a563e(_0x384ffe)),m(0xb,_0x3a563e(_0xa2267e)),m(0xc,_0x26fa26)],Q);let ee=class extends _e{constructor(_0xda9af4,_0x4e305c,_0x37101b,_0x7fcf48,_0x7d01db,_0x5d4853,_0x39759a,_0x7e7f1b,_0x23290a,_0x460aaf){super(_0xda9af4,_0x4e305c,_0x37101b,_0x7fcf48,_0x7d01db,_0x23290a,_0x460aaf,_0x39759a,_0x7e7f1b),l(this,'status','offline'),this['_injector']=_0x5d4853;}[_0x144368(0x38f)](_0x1eb30c){const _0x2910f9=_0x144368;return this['_pendingMutations'][_0x2910f9(0x3ff)](_0x1eb30c),this[_0x2910f9(0x173)](),this;}['onRemoteChangeset'](_0x43d989){const _0x3bba5d=_0x144368;throw new Error(_0x3bba5d(0x2e9));}[_0x144368(0x27d)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x144368(0x35b)](){const _0x632e5f=_0x144368;throw new Error(_0x632e5f(0x39d));}['toggleOffline'](){return this;}[_0x144368(0x1d6)](){const _0x17ce89=_0x144368,{_injector:_0x1f728c,_pendingMutations:_0x1c9b6e,_awaitingChangeset:_0x326a16,unitID:_0x2a24c7,_handler:_0x37f164,type:_0x570582}=this,_0x5b73d3=Hs(_0x1f728c,_0x2a24c7,_0x570582,_0x326a16,_0x1c9b6e,_0x37f164);return _0x5b73d3 instanceof K?_0x5b73d3[_0x17ce89(0xdd)]():(_0x5b73d3 instanceof X||_0x5b73d3 instanceof Z)&&_0x5b73d3[_0x17ce89(0xce)](),_0x5b73d3;}[_0x144368(0xce)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ee=le([m(0x5,_0x3a563e(_0x54963c)),m(0x6,_0x3a563e(_0x384ffe)),m(0x7,_0x3a563e(D)),m(0x8,_0x401dc7),m(0x9,_0x13dae0)],ee);let k=class extends _e{constructor(_0x5ca6d5,_0x1372c5,_0x5ce4c2,_0x4c964a,_0x13e2a4,_0x5ebc5b,_0xfcc86a,_0xaa356f,_0x57ebc8,_0x21459e,_0x119015,_0x387ec9,_0x5af20b,_0x11d79a){const _0x2cd916=_0x144368;super(_0x5ca6d5,_0x1372c5,_0x5ce4c2,_0x4c964a,_0xfcc86a,_0x387ec9,_0x5af20b,_0x57ebc8,_0x21459e),l(this,_0x2cd916(0x35c),_0x2cd916(0x3ae)),(this['_acknowledgedAwaitingChangeset']=_0x13e2a4,this[_0x2cd916(0x208)]=_0x5ebc5b,this[_0x2cd916(0xb7)]=_0xaa356f,this[_0x2cd916(0x193)]=_0x119015,this[_0x2cd916(0x125)]=_0x11d79a);}[_0x144368(0x2c4)](_0x39bc96){const _0x4eb611=_0x144368;try{const _0xd02d0d=[..._0x39bc96,...this[_0x4eb611(0x208)]],_0x2ef244=[this[_0x4eb611(0x28e)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0xd43349=>!!_0xd43349);let _0x3da149,_0x4e9800;if(_0x2ef244[_0x4eb611(0x405)]){const _0x1876c3=this[_0x4eb611(0x125)][_0x4eb611(0x3c7)](_0xd02d0d,_0x2ef244,!0x1);if(!_0x2bc369(_0x1876c3))throw _0x1876c3['error'];_0x3da149=_0x1876c3['c1Prime'],_0x4e9800=_0x1876c3[_0x4eb611(0x137)];}else _0x3da149=_0xd02d0d,_0x4e9800=[];let _0x399f4e=this[_0x4eb611(0x134)];_0x3da149[_0x4eb611(0x13f)](_0x1dcd51=>{const _0x1d1c65=_0x4eb611;let _0x4ee564;if(_0x399f4e[_0x1d1c65(0x405)]){const _0x3ddf8a=this['_transformService']['transformMutationsWithChangeset'](_0x1dcd51,_0x399f4e);if(!_0x4ca9f5(_0x3ddf8a))throw _0x3ddf8a[_0x1d1c65(0x30a)];_0x4ee564=_0x3ddf8a['c1Prime'],_0x399f4e=_0x3ddf8a[_0x1d1c65(0x2ca)];}else _0x4ee564=_0x1dcd51;this['_executeRemoteChangeset'](_0x4ee564);}),this[_0x4eb611(0x247)]&&this[_0x4eb611(0x92)](),this['_awaitingChangeset']&&_0x4e9800['length']&&(_0x4e9800[0x0]['baseRev']=this[_0x4eb611(0x37f)]());let _0x9bbc17;if(this[_0x4eb611(0x28e)]&&_0x399f4e[_0x4eb611(0x405)]!==0x0)_0x9bbc17=this[_0x4eb611(0xb7)][_0x4eb611(0x2ae)](X,this[_0x4eb611(0x24a)],this[_0x4eb611(0x103)],_0x4e9800[0x0],_0x399f4e,this[_0x4eb611(0x1f1)]);else{if(this[_0x4eb611(0x28e)]&&_0x399f4e[_0x4eb611(0x405)]===0x0)_0x4e9800[0x0]['baseRev']=this['_getCurrentRevision'](),_0x9bbc17=this[_0x4eb611(0xb7)][_0x4eb611(0x2ae)](Z,this[_0x4eb611(0x24a)],this['type'],_0x4e9800[0x0],this[_0x4eb611(0x1f1)]);else{if(_0x399f4e[_0x4eb611(0x405)]!==0x0){const _0x31b293=this[_0x4eb611(0xb7)][_0x4eb611(0x2ae)](K,this['unitID'],this['type'],_0x399f4e,this[_0x4eb611(0x1f1)]);_0x31b293[_0x4eb611(0xdd)](),_0x9bbc17=_0x31b293;}else _0x9bbc17=this[_0x4eb611(0xb7)][_0x4eb611(0x2ae)](Se,this[_0x4eb611(0x24a)],this[_0x4eb611(0x103)],this['_handler']);}}return _0x9bbc17[_0x4eb611(0x173)](),_0x9bbc17;}catch(_0x5bed9b){return this[_0x4eb611(0x193)][_0x4eb611(0x30a)](_0x4eb611(0x378),_0x4eb611(0x346),_0x5bed9b),this[_0x4eb611(0xb7)][_0x4eb611(0x2ae)](Q,this[_0x4eb611(0x24a)],this[_0x4eb611(0x103)],this[_0x4eb611(0x28e)],this[_0x4eb611(0x134)],this[_0x4eb611(0x1f1)],!0x1);}}[_0x144368(0xce)](){const _0xa631c5=_0x144368;throw new Error(_0xa631c5(0x2cf));}[_0x144368(0x38f)](_0x205310){const _0x3c6eb1=_0x144368;return this[_0x3c6eb1(0x134)][_0x3c6eb1(0x3ff)](_0x205310),this;}[_0x144368(0x369)](_0x3a157a){const _0x18a989=_0x144368;return this[_0x18a989(0x208)]['push'](_0x3a157a),this;}[_0x144368(0x27d)](_0x2a7639){const _0x50ed31=_0x144368;if(this[_0x50ed31(0x28e)])return this[_0x50ed31(0x247)]=this[_0x50ed31(0x28e)],this[_0x50ed31(0x28e)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x144368(0x35b)](_0x23fcd1){const _0x4b53e8=_0x144368;return this[_0x4b53e8(0xc5)](!!(_0x23fcd1!=null&&_0x23fcd1[_0x4b53e8(0x30f)]));}['toggleOffline'](){const _0x342af5=_0x144368;return this['_injector'][_0x342af5(0x2ae)](ee,this[_0x342af5(0x24a)],this[_0x342af5(0x103)],this[_0x342af5(0x28e)],this[_0x342af5(0x134)],this[_0x342af5(0x1f1)]);}['toggleOnline'](){return this;}[_0x144368(0xc5)](_0x2f187b){const _0x209c7e=_0x144368;return this['_injector']['createInstance'](Q,this[_0x209c7e(0x24a)],this[_0x209c7e(0x103)],this['_awaitingChangeset'],this[_0x209c7e(0x134)],this[_0x209c7e(0x1f1)],_0x2f187b);}};k=le([m(0x7,_0x3a563e(_0x54963c)),m(0x8,_0x3a563e(_0x384ffe)),m(0x9,_0x3a563e(D)),m(0xa,_0x4192f8),m(0xb,_0x401dc7),m(0xc,_0x13dae0),m(0xd,_0x5a828b)],k);function Hs(_0x140bde,_0x9677f0,_0x1e818a,_0x348772,_0x3121a2,_0xfe6026){const _0x34c32d=_0x144368;return _0x348772&&_0x3121a2['length']?_0x140bde['createInstance'](X,_0x9677f0,_0x1e818a,_0x348772,_0x3121a2,_0xfe6026):_0x348772?_0x140bde[_0x34c32d(0x2ae)](Z,_0x9677f0,_0x1e818a,_0x348772,_0xfe6026):_0x3121a2[_0x34c32d(0x405)]?_0x140bde[_0x34c32d(0x2ae)](K,_0x9677f0,_0x1e818a,_0x3121a2,_0xfe6026):_0x140bde[_0x34c32d(0x2ae)](Se,_0x9677f0,_0x1e818a,_0xfe6026);}var mr=Object['defineProperty'],gr=Object[_0x144368(0x3e4)],Vt=(_0xa4e070,_0x4fe7ac,_0x58eff6,_0x3cc1ad)=>{const _0x992d80=_0x144368;for(var _0x80255e=_0x3cc1ad>0x1?void 0x0:_0x3cc1ad?gr(_0x4fe7ac,_0x58eff6):_0x4fe7ac,_0x2d823c=_0xa4e070[_0x992d80(0x405)]-0x1,_0x389efe;_0x2d823c>=0x0;_0x2d823c--)(_0x389efe=_0xa4e070[_0x2d823c])&&(_0x80255e=(_0x3cc1ad?_0x389efe(_0x4fe7ac,_0x58eff6,_0x80255e):_0x389efe(_0x80255e))||_0x80255e);return _0x3cc1ad&&_0x80255e&&mr(_0x4fe7ac,_0x58eff6,_0x80255e),_0x80255e;},p=(_0x22e90c,_0x2a5aa5)=>(_0x482fd1,_0x510bfe)=>_0x2a5aa5(_0x482fd1,_0x510bfe,_0x22e90c);let Je=class extends _0xa18742{constructor(_0x461294,_0x15bb50,_0x4e9c28,_0x3b4ad8,_0x37b58a,_0x124d99,_0x378817,_0x52b3ab,_0x5a5521,_0xc64182,_0x53f287,_0x3ca008,_0x5ccd6c){const _0x45f536=_0x144368;super(),l(this,_0x45f536(0x2fb),new _0x153d59(null)),l(this,'state$',this[_0x45f536(0x2fb)][_0x45f536(0x3bd)]()),l(this,_0x45f536(0x1ca)),l(this,'_collaborationPaused',!0x1),l(this,'status$',this['state$'][_0x45f536(0x33b)](_0x3903c1(_0x552a05=>_0x552a05?_0x552a05['status']:w['OFFLINE']),_0x67ad6c(0x1))),l(this,'_transitionLocked',!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x45f536(0x24a)]=_0x461294,this['session']=_0x15bb50,this[_0x45f536(0x215)]=_0x4e9c28,this['_injector']=_0x3b4ad8,this[_0x45f536(0x2c3)]=_0x37b58a,this[_0x45f536(0x1a2)]=_0x124d99,this[_0x45f536(0x335)]=_0x378817,this[_0x45f536(0xa6)]=_0x52b3ab,this['_logService']=_0x5a5521,this[_0x45f536(0x3da)]=_0xc64182,this[_0x45f536(0x104)]=_0x53f287,this[_0x45f536(0x18f)]=_0x3ca008,this[_0x45f536(0x16a)]=_0x5ccd6c);}get[_0x144368(0x1fe)](){return this['_state'];}async[_0x144368(0x288)](){const _0x18aaea=_0x144368;if(this[_0x18aaea(0x1fe)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x18aaea(0x15d)]();}[_0x144368(0x1c2)](){const _0x1a3b0b=_0x144368;return this[_0x1a3b0b(0xc9)]=!0x0,_0x2c721c(()=>{const _0xac68e=_0x1a3b0b;this['_collaborationPaused']=!0x1,this[_0xac68e(0x10b)]();});}[_0x144368(0xc7)](_0x17b4c8){const _0x4735e1=_0x144368;this[_0x4735e1(0x1ca)]=_0x17b4c8,this['_state$']['next'](_0x17b4c8);}async[_0x144368(0x15d)](){const _0xf08438=_0x144368;var _0x590e0c;this[_0xf08438(0xc7)](await this[_0xf08438(0x23e)]()),this[_0xf08438(0x16a)]&&((_0x590e0c=this[_0xf08438(0x16a)])==null||_0x590e0c['editingUnit'](this[_0xf08438(0x24a)]),this['disposeWithMe'](this[_0xf08438(0x16a)]['getUnitStatus$'](this[_0xf08438(0x24a)])[_0xf08438(0x1c7)](_0x13fe2c=>{const _0x2acdcf=_0xf08438;this['_logService']['debug'](_0x2acdcf(0x2b5),_0x2acdcf(0x242),_0x13fe2c),_0x13fe2c===js[_0x2acdcf(0x1c4)]?(this['_messageService'][_0x2acdcf(0xff)]({'content':this[_0x2acdcf(0x335)]['t'](_0x2acdcf(0x1f6)),'type':_0x2aebf3[_0x2acdcf(0x3ca)]}),this['_permissionService'][_0x2acdcf(0x263)](new _0x451bae(this[_0x2acdcf(0x24a)])['id'],!0x1)):this[_0x2acdcf(0x18f)]['updatePermissionPoint'](new _0x451bae(this['unitID'])['id'],!0x0);})));let _0x1fa039=!0x1;return this[_0xf08438(0x133)](this[_0xf08438(0x172)]['sessionStatus$'][_0xf08438(0x1c7)](_0xefc68f=>{const _0x340e2f=_0xf08438;_0xefc68f===G[_0x340e2f(0x15f)]?this['_toggleOnline'](_0x1fa039):_0xefc68f===G['OFFLINE']&&(_0x1fa039=!0x0,this[_0x340e2f(0x25d)]());})),this[_0xf08438(0x133)](this[_0xf08438(0x172)][_0xf08438(0xb4)][_0xf08438(0x1c7)](_0x2beea6=>{const _0x413c5e=_0xf08438;try{switch(_0x2beea6[_0x413c5e(0x27e)]){case _0x184323[_0x413c5e(0x333)]:{this[_0x413c5e(0x29b)](_0x415a64(_0x2beea6[_0x413c5e(0x116)]));break;}case _0x184323[_0x413c5e(0x152)]:{this[_0x413c5e(0x135)](_0x2beea6['data']);break;}case _0x184323['CHANGESET_REJ']:{this[_0x413c5e(0x2ef)]();break;}case _0x184323['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x2beea6[_0x413c5e(0x116)]['changesets'][_0x413c5e(0x192)](_0x1de10d=>_0x415a64(_0x1de10d)));break;}case _0x184323['PERMISSION_REJ']:this[_0x413c5e(0x2ef)]({'isPermissionRej':!0x0});}}catch(_0x3a2589){throw console[_0x413c5e(0x30a)](_0x413c5e(0x29c),_0x3a2589),_0x3a2589;}})),this[_0xf08438(0x1ca)];}[_0x144368(0x18c)](){const _0x56a59c=_0x144368;this[_0x56a59c(0x2c2)]=!0x1;}[_0x144368(0x27f)](){const _0xa28c04=_0x144368;if(this[_0xa28c04(0x2c2)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0xa28c04(0x2c2)]=!0x0;}[_0x144368(0x35f)](_0x4d0e47){const _0x5ef0e6=_0x144368;this[_0x5ef0e6(0x27f)](),this[_0x5ef0e6(0xc7)](this[_0x5ef0e6(0x1ca)][_0x5ef0e6(0x38f)](_0x4d0e47)),this[_0x5ef0e6(0x18c)]();}[_0x144368(0x29b)](_0x4e8347){const _0x3fdf1f=_0x144368;if(!(_0x4e8347[_0x3fdf1f(0x245)]<=this[_0x3fdf1f(0xa6)][_0x3fdf1f(0x2f8)](this['unitID']))){if(this[_0x3fdf1f(0xc9)]){this[_0x3fdf1f(0x3ee)][_0x3fdf1f(0x3ff)](_0x4e8347);return;}this[_0x3fdf1f(0x150)](_0x4e8347);}}[_0x144368(0x10b)](){const _0x2e12c4=_0x144368;this[_0x2e12c4(0x3ee)][_0x2e12c4(0x13f)](_0x14a72f=>this['_applyRemoteChangeset'](_0x14a72f)),this[_0x2e12c4(0x3ee)]=[];}['_applyRemoteChangeset'](_0x1b485b){const _0x599a88=_0x144368,_0x996ad2=this[_0x599a88(0x1a2)]['interceptor'][_0x599a88(0x140)](this[_0x599a88(0x1a2)][_0x599a88(0x256)][_0x599a88(0x1d3)]()[_0x599a88(0x400)])(_0x1b485b['mutations'],null)||_0x1b485b[_0x599a88(0x3f0)],_0x431a37={..._0x1b485b,'mutations':_0x996ad2};this[_0x599a88(0x27f)](),this[_0x599a88(0xc7)](this[_0x599a88(0x1ca)][_0x599a88(0x369)](_0x431a37)),this[_0x599a88(0x18c)]();}[_0x144368(0x135)](_0x14cc15){const _0x44ae73=_0x144368;this[_0x44ae73(0x27f)](),this[_0x44ae73(0xc7)](this[_0x44ae73(0x1ca)]['onRemoteAck'](_0x14cc15)),this[_0x44ae73(0x18c)]();}[_0x144368(0x2ef)](_0x38f56a){const _0x2a8cc5=_0x144368;this[_0x2a8cc5(0x27f)](),this[_0x2a8cc5(0xc7)](this[_0x2a8cc5(0x1ca)][_0x2a8cc5(0x35b)](_0x38f56a)),this[_0x2a8cc5(0x18c)]();}['_onFetchMissResult'](_0x46f642){const _0x33c5dc=_0x144368;if(!(this[_0x33c5dc(0x1ca)]instanceof k))throw new TypeError(_0x33c5dc(0x15b));const _0x1fc022=_0x46f642['map'](_0x7b0b38=>{const _0x57a1cc=_0x33c5dc,_0x41dd75=this['_compressMutationService'][_0x57a1cc(0x256)][_0x57a1cc(0x140)](this[_0x57a1cc(0x1a2)][_0x57a1cc(0x256)][_0x57a1cc(0x1d3)]()[_0x57a1cc(0x400)])(_0x7b0b38[_0x57a1cc(0x3f0)],null)||_0x7b0b38[_0x57a1cc(0x3f0)];return{..._0x7b0b38,'mutations':_0x41dd75};});this['_lockTransition'](),this[_0x33c5dc(0xc7)](this[_0x33c5dc(0x1ca)][_0x33c5dc(0x2c4)](_0x1fc022)),this[_0x33c5dc(0x18c)]();}['_toggleOffline'](){const _0x5b374f=_0x144368;this['_lockTransition'](),this[_0x5b374f(0xc7)](this[_0x5b374f(0x1ca)][_0x5b374f(0x313)]()),this[_0x5b374f(0x18c)]();}[_0x144368(0xc3)](_0x731c52=!0x1){const _0x434d28=_0x144368;this[_0x434d28(0x27f)](),this[_0x434d28(0xc7)](this['_state']['toggleOnline']()),this['_unlockTransition']();const _0x5157fe=this[_0x434d28(0x1ca)];_0x731c52&&_0x5157fe instanceof Se&&(this['_lockTransition'](),this[_0x434d28(0xc7)](_0x5157fe[_0x434d28(0x37b)]()),this['_unlockTransition']());}async[_0x144368(0x23e)](){return new Promise(_0xd289e=>{const _0x5d71b0=_0x5e18;this[_0x5d71b0(0x172)][_0x5d71b0(0x2cc)][_0x5d71b0(0x33b)](_0x4db6bc(0x1))[_0x5d71b0(0x1c7)](async _0x884cfa=>{const _0x175351=_0x5d71b0;_0xd289e(await this[_0x175351(0x270)](_0x884cfa===G[_0x175351(0x15f)]));});});}[_0x144368(0x1cb)](){const _0x128827=_0x144368,_0x26f6a9=this[_0x128827(0x24a)];return{'onStateChange':(_0x4820dc,_0x10c3ee)=>{const _0x11640d=_0x128827;if(_0x4820dc!==this['_state'])throw new Error(_0x11640d(0x32e)+_0x4820dc[_0x11640d(0x35c)]+_0x11640d(0xcf)+_0x10c3ee[_0x11640d(0x35c)]+_0x11640d(0x1af)+this[_0x11640d(0x1ca)][_0x11640d(0x35c)]);this['_updateState'](_0x10c3ee);},'onSendChangeset':_0x13a789=>{const _0x22696f=_0x128827,_0x3aade1={'eventID':_0x184323[_0x22696f(0x261)],'data':{'unitID':_0x13a789[_0x22696f(0x24a)],'unitType':this[_0x22696f(0x215)],'changeset':_0x13a789,'memberID':this[_0x22696f(0x172)][_0x22696f(0x1bd)]()}};this[_0x22696f(0x172)][_0x22696f(0x37e)](_0x3aade1,this[_0x22696f(0x24a)]);},'onMissingChangesets':({from:_0x1f797f,to:_0x83ac35})=>{const _0x388015=_0x128827;this['_logService'][_0x388015(0x392)](_0x388015(0x2b5),_0x388015(0x250)+_0x1f797f+_0x388015(0x1be)+_0x83ac35);const _0x8403ce={'eventID':_0x184323[_0x388015(0x3e5)],'data':{'unitID':_0x26f6a9,'unitType':this[_0x388015(0x215)],'from':_0x1f797f,'to':_0x83ac35}};this[_0x388015(0x172)]['send'](_0x8403ce,this['unitID']);}};}async[_0x144368(0x270)](_0x3fc58e){const _0x622e8c=_0x144368;var _0x34e738,_0x5912c8;const _0x508bdb=await this[_0x622e8c(0x2c3)][_0x622e8c(0x156)](this['unitID']),_0x376b01=(_0x34e738=_0x508bdb==null?void 0x0:_0x508bdb[_0x622e8c(0x3f0)])!=null?_0x34e738:[],_0x4e2df3=(_0x5912c8=_0x508bdb==null?void 0x0:_0x508bdb['awaitingChangeset'])!=null?_0x5912c8:null,_0x2533b5=this['unitID'];try{this[_0x622e8c(0x3a0)](_0x4e2df3,_0x376b01);}catch(_0x481b28){this[_0x622e8c(0x193)][_0x622e8c(0x30a)](_0x481b28);}const _0x3f44c9=this[_0x622e8c(0x1cb)]();if(_0x3fc58e){const _0xd51af1=Hs(this['_injector'],_0x2533b5,this[_0x622e8c(0x215)],_0x4e2df3,_0x376b01,_0x3f44c9);return _0xd51af1 instanceof K?_0xd51af1[_0x622e8c(0xdd)]():(_0xd51af1 instanceof X||_0xd51af1 instanceof Z)&&_0xd51af1[_0x622e8c(0xce)](),_0xd51af1;}return this['_injector'][_0x622e8c(0x2ae)](ee,_0x2533b5,this[_0x622e8c(0x215)],_0x4e2df3,_0x376b01,_0x3f44c9);}['_replayCachedMutations'](_0x56dc4a,_0x5a9c78){const _0x9c1bf2=_0x144368;var _0x15456f,_0x53a6f8;const _0x513774=this['_compressMutationService'][_0x9c1bf2(0x256)][_0x9c1bf2(0x140)](this['_compressMutationService']['interceptor'][_0x9c1bf2(0x1d3)]()[_0x9c1bf2(0x400)]);(_0x15456f=_0x513774((_0x56dc4a==null?void 0x0:_0x56dc4a['mutations'])||[],null))==null||_0x15456f[_0x9c1bf2(0x13f)](_0x57b610=>this[_0x9c1bf2(0x3da)][_0x9c1bf2(0x1a5)](_0x57b610['id'],_0x57b610['params'])),(_0x53a6f8=_0x513774(_0x5a9c78||[],null))==null||_0x53a6f8[_0x9c1bf2(0x13f)](_0x24b73c=>this['_commandService'][_0x9c1bf2(0x1a5)](_0x24b73c['id'],_0x24b73c['params']));}};Je=Vt([p(0x3,_0x3a563e(_0x54963c)),p(0x4,_0x3a563e(D)),p(0x5,_0x3a563e(_0x84d9a2)),p(0x6,_0x3a563e(_0xa2267e)),p(0x7,_0x3a563e(_0x384ffe)),p(0x8,_0x4192f8),p(0x9,_0x401dc7),p(0xa,_0x5e3364),p(0xb,_0x48c29f),p(0xc,_0x2c8260(tt))],Je);let bt=class extends Je{constructor(_0x1c681d,_0x5a47b0,_0x3eaa68,_0x4a2dca,_0x45c8ad,_0x3fa5f6,_0x510189,_0x8ff9fa,_0x3951d8,_0x269ecf,_0x10f6b1,_0xddf8da,_0xb15efe,_0x5f04c0,_0x33f278,_0x6c6bf1,_0x26722a){const _0xd31698=_0x144368;super(_0x1c681d,_0x3eaa68,_0x5a47b0,_0x4a2dca,_0x45c8ad,_0x3fa5f6,_0x510189,_0x8ff9fa,_0xb15efe,_0x5f04c0,_0x33f278,_0x6c6bf1,_0x26722a),this[_0xd31698(0x24a)]=_0x1c681d,this[_0xd31698(0x103)]=_0x5a47b0,this['_docStateChangeManagerService']=_0x3951d8,this[_0xd31698(0x21c)]=_0x269ecf,this[_0xd31698(0x9b)]=_0x10f6b1,this[_0xd31698(0x112)]=_0xddf8da;}[_0x144368(0x1cb)](){const _0x484da8=_0x144368,_0x42026b=super[_0x484da8(0x1cb)]();return _0x42026b[_0x484da8(0x239)]=_0x3af80f=>this[_0x484da8(0x21c)][_0x484da8(0x1f3)](_0x3af80f),_0x42026b[_0x484da8(0x329)]=_0x3a43b7=>this['_docTransformSelectionsService'][_0x484da8(0xee)](_0x3a43b7),_0x42026b[_0x484da8(0x2d5)]=_0x418de9=>this[_0x484da8(0x112)][_0x484da8(0x31f)](_0x418de9),_0x42026b['onTransformRemoteChangesetByIMECache']=_0x182625=>this[_0x484da8(0x21c)][_0x484da8(0x2c6)](_0x182625),_0x42026b;}async['_init'](){const _0x3d58c6=_0x144368,_0x1f2f59=await super[_0x3d58c6(0x15d)]();return this[_0x3d58c6(0x133)](this['_commandService'][_0x3d58c6(0x3f9)]((_0xcf8376,_0x496b65)=>{const _0x55b3a3=_0x3d58c6;if(_0xcf8376['type']!==_0x199f49[_0x55b3a3(0x177)]||_0x496b65!=null&&_0x496b65[_0x55b3a3(0x23a)]||_0x496b65!=null&&_0x496b65[_0x55b3a3(0xe8)])return;const _0x3ab985=_0xcf8376['params'];if((_0x3ab985==null?void 0x0:_0x3ab985[_0x55b3a3(0x3f2)])!==this[_0x55b3a3(0x24a)])return;let _0x59993a=_0xcf8376;if(_0x59993a['id']===_0x3496ab['id']){const _0x4762ee=_0x59993a[_0x55b3a3(0x225)];_0x59993a={'id':_0x3496ab['id'],'type':_0x199f49['MUTATION'],'params':{'unitId':_0x4762ee[_0x55b3a3(0x3f2)],'actions':_0x4762ee[_0x55b3a3(0x370)],'textRanges':null}};}const _0x596e26=this['_compressMutationService']['interceptor'][_0x55b3a3(0x140)](this['_compressMutationService'][_0x55b3a3(0x256)][_0x55b3a3(0x1d3)]()[_0x55b3a3(0x1a1)])([_0x59993a],null)||[_0x59993a];this[_0x55b3a3(0x35f)](_0x596e26[0x0]);})),_0x1f2f59;}};bt=Vt([p(0x3,_0x3a563e(_0x54963c)),p(0x4,_0x3a563e(D)),p(0x5,_0x3a563e(_0x84d9a2)),p(0x6,_0x3a563e(_0xa2267e)),p(0x7,_0x3a563e(_0x384ffe)),p(0x8,_0x3a563e(_0x4f3ccb)),p(0x9,_0x3a563e(Ye)),p(0xa,_0x3a563e(Xe)),p(0xb,_0x3a563e(Bt)),p(0xc,_0x4192f8),p(0xd,_0x401dc7),p(0xe,_0x5e3364),p(0xf,_0x48c29f),p(0x10,_0x2c8260(tt))],bt);let Tt=class extends Je{constructor(_0x37bf8d,_0x151f6a,_0x150005,_0x581740,_0xb551e,_0x5c8f3a,_0x27d7e8,_0xe97556,_0x402854,_0x5bf15a,_0x141d0a,_0x55a62d,_0x457ed9,_0x342658){const _0xe27709=_0x144368;super(_0x37bf8d,_0x150005,_0x151f6a,_0x581740,_0xb551e,_0x5c8f3a,_0x27d7e8,_0xe97556,_0x5bf15a,_0x141d0a,_0x55a62d,_0x457ed9,_0x342658),this['unitID']=_0x37bf8d,this[_0xe27709(0x103)]=_0x151f6a,this[_0xe27709(0x34d)]=_0x402854;}[_0x144368(0x1cb)](){const _0x53bb22=_0x144368,_0x43713f=super[_0x53bb22(0x1cb)]();return _0x43713f[_0x53bb22(0x329)]=_0x479bf1=>this[_0x53bb22(0x34d)][_0x53bb22(0xee)](_0x479bf1),_0x43713f;}async[_0x144368(0x15d)](){const _0x54c726=_0x144368,_0x2974fd=await super[_0x54c726(0x15d)]();return this[_0x54c726(0x133)](this[_0x54c726(0x3da)][_0x54c726(0x3f9)]((_0x20891f,_0x7ea994)=>{const _0x3bbd1a=_0x54c726;if(_0x20891f[_0x3bbd1a(0x103)]!==_0x199f49[_0x3bbd1a(0x177)]||_0x7ea994!=null&&_0x7ea994[_0x3bbd1a(0x23a)]||_0x7ea994!=null&&_0x7ea994['onlyLocal'])return;const _0xef6ef5=_0x20891f[_0x3bbd1a(0x225)];if((_0xef6ef5==null?void 0x0:_0xef6ef5[_0x3bbd1a(0x3f2)])!==this[_0x3bbd1a(0x24a)])return;const _0x51168f=_0x20891f,_0x545688=this[_0x3bbd1a(0x1a2)]['interceptor'][_0x3bbd1a(0x140)](this[_0x3bbd1a(0x1a2)]['interceptor'][_0x3bbd1a(0x1d3)]()[_0x3bbd1a(0x1a1)])([_0x51168f],null)||[_0x51168f];this[_0x3bbd1a(0x35f)](_0x545688[0x0]);})),_0x2974fd;}};Tt=Vt([p(0x3,_0x3a563e(_0x54963c)),p(0x4,_0x3a563e(D)),p(0x5,_0x3a563e(_0x84d9a2)),p(0x6,_0x3a563e(_0xa2267e)),p(0x7,_0x3a563e(_0x384ffe)),p(0x8,_0x3a563e(Ke)),p(0x9,_0x4192f8),p(0xa,_0x401dc7),p(0xb,_0x5e3364),p(0xc,_0x48c29f),p(0xd,_0x2c8260(tt))],Tt);var Sr=Object[_0x144368(0x14c)],pr=Object[_0x144368(0x3e4)],vr=(_0x25aad6,_0x3936c4,_0x2db370,_0x505f01)=>{const _0x2817ce=_0x144368;for(var _0x3efb84=_0x505f01>0x1?void 0x0:_0x505f01?pr(_0x3936c4,_0x2db370):_0x3936c4,_0x54400e=_0x25aad6[_0x2817ce(0x405)]-0x1,_0x1b6de6;_0x54400e>=0x0;_0x54400e--)(_0x1b6de6=_0x25aad6[_0x54400e])&&(_0x3efb84=(_0x505f01?_0x1b6de6(_0x3936c4,_0x2db370,_0x3efb84):_0x1b6de6(_0x3efb84))||_0x3efb84);return _0x505f01&&_0x3efb84&&Sr(_0x3936c4,_0x2db370,_0x3efb84),_0x3efb84;},lt=(_0x420fb0,_0xfe0efa)=>(_0x398d73,_0xbd9741)=>_0xfe0efa(_0x398d73,_0xbd9741,_0x420fb0);let Ae=class extends _0xa18742{constructor(_0x5d4911,_0x33f504,_0x15aadf){const _0x499a8c=_0x144368;super(),l(this,_0x499a8c(0x305),new Map()),l(this,_0x499a8c(0x34a),new _0x1e3428()),(this[_0x499a8c(0xb7)]=_0x5d4911,this[_0x499a8c(0x296)]=_0x33f504,this['_univerInstanceService']=_0x15aadf,this[_0x499a8c(0x15d)]());}[_0x144368(0x119)](){const _0x269af7=_0x144368;super[_0x269af7(0x119)](),this[_0x269af7(0x305)][_0x269af7(0x13f)](_0x2214a8=>_0x2214a8['dispose']()),this[_0x269af7(0x305)]['clear']();}[_0x144368(0x19d)](_0x4109a7){const _0x5c094d=_0x144368;var _0x42a037;return(_0x42a037=this['_entities'][_0x5c094d(0x33c)](_0x4109a7))!=null?_0x42a037:null;}['getCollabEntity$'](_0x301e5e){const _0x49848e=_0x144368,_0x15461c=this[_0x49848e(0x19d)](_0x301e5e);return _0x15461c?_0x4c8895(_0x15461c):this[_0x49848e(0x34a)][_0x49848e(0x33b)](_0x36d4b5(_0x10f42e=>_0x10f42e[_0x49848e(0x24a)]===_0x301e5e));}[_0x144368(0x15d)](){const _0x2f82b4=_0x144368;this['_univerInstanceService'][_0x2f82b4(0x182)](_0x5a4c09[_0x2f82b4(0x295)])[_0x2f82b4(0x33b)](_0x592099(this['dispose$']),_0x12d147(0x10))[_0x2f82b4(0x1c7)](async _0x3811c7=>{const _0x271924=_0x2f82b4,_0x2558f2=_0x3811c7[_0x271924(0x113)](),_0x3a0c42=await this['_startCollaboration'](_0x2558f2,H[_0x271924(0x295)]);this[_0x271924(0x305)][_0x271924(0x2b2)](_0x2558f2,_0x3a0c42);}),this[_0x2f82b4(0x3a1)][_0x2f82b4(0x182)](_0x5a4c09[_0x2f82b4(0x306)])[_0x2f82b4(0x33b)](_0x592099(this['dispose$']),_0x12d147(0x10))[_0x2f82b4(0x33b)](_0x36d4b5(_0x1e4318=>!_0x1e4318[_0x2f82b4(0x113)]()[_0x2f82b4(0x9a)]('__')))[_0x2f82b4(0x1c7)](async _0x34e31b=>{const _0x1b5ce3=_0x2f82b4,_0x22e8ef=_0x34e31b[_0x1b5ce3(0x113)](),_0x142b15=await this['_startCollaboration'](_0x22e8ef,H['UNIVER_DOC']);this[_0x1b5ce3(0x305)][_0x1b5ce3(0x2b2)](_0x22e8ef,_0x142b15);}),_0x4f1e0d(this[_0x2f82b4(0x3a1)][_0x2f82b4(0x36a)](_0x5a4c09[_0x2f82b4(0x295)]),this[_0x2f82b4(0x3a1)]['getTypeOfUnitDisposed$'](_0x5a4c09[_0x2f82b4(0x306)]))[_0x2f82b4(0x33b)](_0x592099(this[_0x2f82b4(0x3e8)]))['subscribe'](_0x107ce2=>{const _0x4c1bd6=_0x2f82b4,_0x1e75d2=_0x107ce2['getUnitId'](),_0xb92975=this[_0x4c1bd6(0x305)]['get'](_0x1e75d2);_0xb92975&&(_0xb92975[_0x4c1bd6(0x119)](),this[_0x4c1bd6(0x305)][_0x4c1bd6(0x218)](_0x1e75d2));});}async[_0x144368(0x191)](_0x312b10,_0x10d00f){const _0x39322d=_0x144368,_0xea1113=await this['_collabSessionService'][_0x39322d(0x126)](_0x312b10),_0x40a91e=this[_0x39322d(0xb7)][_0x39322d(0x2ae)](this[_0x39322d(0x10e)](_0x10d00f),_0x312b10,_0x10d00f,_0xea1113);return await _0x40a91e[_0x39322d(0x288)](),this[_0x39322d(0x34a)][_0x39322d(0x105)](_0x40a91e),_0x40a91e;}[_0x144368(0x10e)](_0x5bf51b){const _0x26a148=_0x144368;switch(_0x5bf51b){case H[_0x26a148(0x306)]:return bt;case H['UNIVER_SHEET']:return Tt;default:throw new Error(_0x26a148(0xb1)+_0x5bf51b);}}};Ae=vr([lt(0x0,_0x3a563e(_0x54963c)),lt(0x1,_0x3a563e(ce)),lt(0x2,_0x2d956c)],Ae);const _s=['purple300','jiqing500',_0x144368(0x3c0),'red300','blue400','gold400'];class Ft extends _0x114c09{constructor(){const _0x2a467e=_0x144368;super(...arguments),l(this,_0x2a467e(0x17a),new Map()),l(this,'_colorIndex',0x0);}[_0x144368(0x292)](_0x2320af){const _0x3ed8a9=_0x144368;if(this[_0x3ed8a9(0x17a)][_0x3ed8a9(0x381)](_0x2320af))return this['_assignedColors'][_0x3ed8a9(0x33c)](_0x2320af);const _0xc7f187=_s[this[_0x3ed8a9(0x175)]];return this['_colorIndex']=(this[_0x3ed8a9(0x175)]+0x1)%_s[_0x3ed8a9(0x405)],this[_0x3ed8a9(0x17a)][_0x3ed8a9(0x2b2)](_0x2320af,_0xc7f187),_0xc7f187;}}var Ir=Object[_0x144368(0x14c)],Er=Object[_0x144368(0x3e4)],Cr=(_0x4b77a7,_0x465471,_0x3c37a6,_0x52e9c0)=>{const _0x3d81b0=_0x144368;for(var _0x2646b5=_0x52e9c0>0x1?void 0x0:_0x52e9c0?Er(_0x465471,_0x3c37a6):_0x465471,_0x5b2982=_0x4b77a7[_0x3d81b0(0x405)]-0x1,_0x2187a0;_0x5b2982>=0x0;_0x5b2982--)(_0x2187a0=_0x4b77a7[_0x5b2982])&&(_0x2646b5=(_0x52e9c0?_0x2187a0(_0x465471,_0x3c37a6,_0x2646b5):_0x2187a0(_0x2646b5))||_0x2646b5);return _0x52e9c0&&_0x2646b5&&Ir(_0x465471,_0x3c37a6,_0x2646b5),_0x2646b5;},se=(_0x20b194,_0x5588cc)=>(_0x16effd,_0x4d9641)=>_0x5588cc(_0x16effd,_0x4d9641,_0x20b194);const br=0x12c,Tr=0x64;let Rt=class extends _0xa18742{constructor(_0x262268,_0x200650,_0x1401bc,_0x4b0fa4,_0x19b78a,_0x3c8b9f,_0xea844f,_0x504c05,_0x30c71c){const _0x46f911=_0x144368;super(),l(this,_0x46f911(0x2b6),!0x1),l(this,_0x46f911(0x15d),!0x1),l(this,_0x46f911(0x302),new _0x153d59(new Map())),l(this,_0x46f911(0x401),this[_0x46f911(0x302)][_0x46f911(0x3bd)]()),l(this,'_roomMembers$',new _0x153d59([])),l(this,_0x46f911(0x377),this[_0x46f911(0x38a)]['pipe'](_0x3572ad(br))),l(this,_0x46f911(0x3d3),_0x446300(_0x57338c=>{const _0x3ceae8=_0x46f911,_0x278e02={'eventID':_0x184323['UPDATE_CURSOR'],'data':{'unitID':this[_0x3ceae8(0x24a)],'memberID':this[_0x3ceae8(0x3e7)][_0x3ceae8(0x1bd)](),'selection':xs(_0x57338c)}};this[_0x3ceae8(0x3e7)]['send'](_0x278e02,this[_0x3ceae8(0x24a)]);},Tr)),(this['unitID']=_0x262268,this[_0x46f911(0x3e7)]=_0x200650,this[_0x46f911(0xb7)]=_0x1401bc,this[_0x46f911(0xac)]=_0x4b0fa4,this[_0x46f911(0x18e)]=_0x19b78a,this['_syncEditingCollabCursorService']=_0x3c8b9f,this[_0x46f911(0x125)]=_0xea844f,this[_0x46f911(0x3a1)]=_0x504c05,this['_commandService']=_0x30c71c);}get[_0x144368(0x1f2)](){const _0x44624c=_0x144368;return this[_0x44624c(0x302)]['getValue']();}get['roomMembers'](){const _0x5188ac=_0x144368;return this[_0x5188ac(0x38a)][_0x5188ac(0x3a5)]();}[_0x144368(0x119)](){const _0x3bc4f4=_0x144368;super['dispose'](),this['_cursorInfo$'][_0x3bc4f4(0x105)](new Map()),this['_cursorInfo$'][_0x3bc4f4(0x159)](),this[_0x3bc4f4(0x38a)][_0x3bc4f4(0x105)]([]),this['_roomMembers$'][_0x3bc4f4(0x159)]();}[_0x144368(0x288)](){const _0x1e425f=_0x144368;this[_0x1e425f(0x15d)]||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x1e425f(0x33b)](_0x592099(this[_0x1e425f(0x3e8)]))[_0x1e425f(0x1c7)](_0x5c96d2=>{const _0x12f575=_0x1e425f;_0x5c96d2===G[_0x12f575(0x15f)]?this[_0x12f575(0xc3)]():this[_0x12f575(0x25d)]();}),this[_0x1e425f(0x3e7)][_0x1e425f(0xb4)][_0x1e425f(0x33b)](_0x592099(this[_0x1e425f(0x3e8)]))['subscribe'](_0x14e698=>{const _0x131efc=_0x1e425f,_0x4ca68a=_0x14e698[_0x131efc(0x27e)];_0x4ca68a===_0x184323['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x14e698),_0x4ca68a===_0x184323[_0x131efc(0xdc)]&&this['_onCursorDelete'](_0x14e698);}),this['disposeWithMe'](this[_0x1e425f(0x3da)][_0x1e425f(0x3f9)](_0x47504c=>{const _0x27263d=_0x1e425f,_0x1d92ab=_0x47504c['params'];_0x1d92ab!=null&&this[_0x27263d(0x2b6)]&&_0x47504c['id']===_0x4054ca['id']&&_0x1d92ab['unitId']===this[_0x27263d(0x24a)]&&_0x1d92ab[_0x27263d(0x19a)]===!0x1&&this[_0x27263d(0x3d3)](_0x1d92ab[_0x27263d(0x345)]);})),this[_0x1e425f(0x3e0)]['collabCursorState$']['pipe'](_0x592099(this[_0x1e425f(0x3e8)]))[_0x1e425f(0x1c7)](_0x31480c=>{const _0x6f6b92=_0x1e425f;if((_0x31480c==null?void 0x0:_0x31480c[_0x6f6b92(0x24a)])!==this['unitID'])return;const _0x5ca543={'eventID':_0x184323[_0x6f6b92(0x2c9)],'data':_0x31480c};this[_0x6f6b92(0x2ed)](_0x5ca543);}),this[_0x1e425f(0x133)](this[_0x1e425f(0x3da)][_0x1e425f(0x3f9)](_0x476549=>{const _0x359e33=_0x1e425f;if(_0x476549['params']==null)return;const _0x5e0d2d=_0x476549[_0x359e33(0x225)];if(_0x476549['id']!==_0x3496ab['id']||_0x5e0d2d[_0x359e33(0x3f2)]!==this['unitID'])return;const _0x557a7d={'id':_0x359e33(0x3b1),'params':_0x5e0d2d},_0x280331=this[_0x359e33(0x1f2)];for(const [_0x4b5e59,_0x5620d1]of _0x280331){const _0x3e3b32={'id':_0x359e33(0x3b1),'params':{'unitId':this[_0x359e33(0x24a)],'actions':null,'textRanges':_0x5620d1[_0x359e33(0x345)]}},_0x2d676c=this[_0x359e33(0x125)][_0x359e33(0x389)](_0x557a7d,_0x3e3b32,!0x1);if(_0x5005dc(_0x2d676c))throw _0x2d676c['error'];_0x280331[_0x359e33(0x2b2)](_0x4b5e59,{..._0x5620d1,'ranges':_0x2d676c[_0x359e33(0x2ca)][_0x359e33(0x225)][_0x359e33(0x9d)]});}queueMicrotask(()=>{const _0x39b00b=_0x359e33;this[_0x39b00b(0x302)][_0x39b00b(0x105)](_0x280331);});})));}['_onCursorUpdate'](_0x5bb3ad){const _0x171f30=_0x144368;var _0x4139a1,_0x184011;const {memberID:_0x4ff05c,selection:_0x212822}=_0x5bb3ad[_0x171f30(0x116)],_0x4f79c6=or(_0x212822),_0x1c1bee=(_0x184011=(_0x4139a1=this[_0x171f30(0x18e)]['getMember'](this[_0x171f30(0x24a)],_0x4ff05c))==null?void 0x0:_0x4139a1['name'])!=null?_0x184011:'Unknown\x20user',_0xfa2ffb={'color':this[_0x171f30(0xac)]['assignAColorForMemberID'](_0x4ff05c),'name':_0x1c1bee,'ranges':_0x4f79c6},_0x2d1d5b=this['cursorInfo'];_0x2d1d5b[_0x171f30(0x2b2)](_0x4ff05c,_0xfa2ffb),this[_0x171f30(0x302)][_0x171f30(0x105)](_0x2d1d5b);}[_0x144368(0x2d9)](_0x198f33){const _0x4ae949=_0x144368,{memberID:_0x3e767f}=_0x198f33[_0x4ae949(0x116)],_0x44aa0b=this['cursorInfo'];_0x44aa0b[_0x4ae949(0x218)](_0x3e767f),this[_0x4ae949(0x302)][_0x4ae949(0x105)](_0x44aa0b);}['_toggleOnline'](){const _0x161615=_0x144368;var _0xfbf666;if(this[_0x161615(0x2b6)]=!0x0,((_0xfbf666=this[_0x161615(0x3a1)][_0x161615(0x310)]())==null?void 0x0:_0xfbf666['getUnitId']())!==this[_0x161615(0x24a)])return;const _0x4bddcc=this[_0x161615(0xb7)][_0x161615(0x33c)](_0x5beeff)[_0x161615(0x32b)]();Array[_0x161615(0x384)](_0x4bddcc)&&_0x4bddcc[_0x161615(0x405)]>0x0&&this[_0x161615(0x3d3)](_0x4bddcc);}[_0x144368(0x25d)](){const _0x27d296=_0x144368;this[_0x27d296(0x2b6)]=!0x1;}};Rt=Cr([se(0x2,_0x3a563e(_0x54963c)),se(0x3,_0x3a563e(Ft)),se(0x4,_0x3a563e(ae)),se(0x5,_0x3a563e(Bt)),se(0x6,_0x5a828b),se(0x7,_0x2d956c),se(0x8,_0x401dc7)],Rt);var Rr=Object['defineProperty'],Or=Object[_0x144368(0x3e4)],Dr=(_0xc3ede,_0x4384a1,_0x36976f,_0x44c6c5)=>{const _0x37a1e6=_0x144368;for(var _0x134944=_0x44c6c5>0x1?void 0x0:_0x44c6c5?Or(_0x4384a1,_0x36976f):_0x4384a1,_0x2bbe4d=_0xc3ede[_0x37a1e6(0x405)]-0x1,_0xf4d3b2;_0x2bbe4d>=0x0;_0x2bbe4d--)(_0xf4d3b2=_0xc3ede[_0x2bbe4d])&&(_0x134944=(_0x44c6c5?_0xf4d3b2(_0x4384a1,_0x36976f,_0x134944):_0xf4d3b2(_0x134944))||_0x134944);return _0x44c6c5&&_0x134944&&Rr(_0x4384a1,_0x36976f,_0x134944),_0x134944;},fe=(_0x344bfa,_0x474189)=>(_0x4f219f,_0x380d2a)=>_0x474189(_0x4f219f,_0x380d2a,_0x344bfa);const wr=0x12c,Pr=0x64,yr=()=>{let _0x4b6430=[],_0x137a31=!0x1;return _0x26f70c=>{const _0x4ae25c=_0x5e18;_0x4b6430[_0x4ae25c(0x3ff)](_0x26f70c),_0x137a31||(_0x137a31=!0x0,setTimeout(()=>{const _0x5ec9ea=_0x4ae25c;_0x4b6430[_0x5ec9ea(0x13f)](_0x30a2d8=>_0x30a2d8()),_0x4b6430=[],_0x137a31=!0x1;}));};};let Ot=class extends _0xa18742{constructor(_0x23ab15,_0x332f7a,_0x5839de,_0x43d190,_0x3cb0a8,_0x2f53af,_0x2ee63c,_0x1bffc2){const _0x59f155=_0x144368;super(),l(this,_0x59f155(0x2b6),!0x1),l(this,_0x59f155(0x15d),!0x1),l(this,'_cursorInfo$',new _0x153d59(new Map())),l(this,_0x59f155(0x401),this[_0x59f155(0x302)][_0x59f155(0x3bd)]()),l(this,_0x59f155(0x38a),new _0x153d59([])),l(this,'roomMembers$',this['_roomMembers$'][_0x59f155(0x33b)](_0x3572ad(wr))),l(this,'_updateLocalCursor',_0x446300((_0xdebe5e,_0xbdd7eb)=>{const _0x202bf0=_0x59f155,_0x20e669={'eventID':_0x184323[_0x202bf0(0x2c9)],'data':{'unitID':this[_0x202bf0(0x24a)],'memberID':this[_0x202bf0(0x3e7)][_0x202bf0(0x1bd)](),'selection':_0x5d45a1(_0xdebe5e,_0xbdd7eb[_0x202bf0(0x317)])}};this[_0x202bf0(0x3e7)][_0x202bf0(0x37e)](_0x20e669,this[_0x202bf0(0x24a)]);},Pr)),(this['unitID']=_0x23ab15,this[_0x59f155(0x3e7)]=_0x332f7a,this[_0x59f155(0xb7)]=_0x5839de,this[_0x59f155(0xac)]=_0x43d190,this[_0x59f155(0x18e)]=_0x3cb0a8,this[_0x59f155(0x3a1)]=_0x2f53af,this[_0x59f155(0x3da)]=_0x2ee63c,this[_0x59f155(0x1f5)]=_0x1bffc2);}get['cursorInfo'](){const _0x54cccd=_0x144368;return this[_0x54cccd(0x302)][_0x54cccd(0x3a5)]();}get[_0x144368(0x2f1)](){const _0x3040cd=_0x144368;return this['_roomMembers$'][_0x3040cd(0x3a5)]();}[_0x144368(0x119)](){const _0x5d2fd5=_0x144368;super[_0x5d2fd5(0x119)](),this[_0x5d2fd5(0x302)]['next'](new Map()),this[_0x5d2fd5(0x302)]['complete'](),this[_0x5d2fd5(0x38a)][_0x5d2fd5(0x105)]([]),this[_0x5d2fd5(0x38a)][_0x5d2fd5(0x159)]();}['init'](){const _0x209476=_0x144368;this['_init']||(this[_0x209476(0x15d)]=!0x0,this[_0x209476(0x3e7)][_0x209476(0x2cc)]['pipe'](_0x592099(this['dispose$']))['subscribe'](_0x18741a=>{const _0x383c99=_0x209476;_0x18741a===G[_0x383c99(0x15f)]?this[_0x383c99(0xc3)]():this['_toggleOffline']();}),this[_0x209476(0x3e7)][_0x209476(0xb4)][_0x209476(0x33b)](_0x592099(this[_0x209476(0x3e8)]))[_0x209476(0x1c7)](_0x8755cd=>{const _0x440643=_0x209476,_0x6f683f=_0x8755cd[_0x440643(0x27e)];_0x6f683f===_0x184323[_0x440643(0x2c9)]&&this[_0x440643(0x2ed)](_0x8755cd),_0x6f683f===_0x184323['USERS_LEAVE']&&this[_0x440643(0x2d9)](_0x8755cd);}),this[_0x209476(0x25a)](),this['disposeWithMe'](this[_0x209476(0x3da)][_0x209476(0x3f9)](_0x41b9d6=>{const _0xfdd04b=_0x209476;if(this[_0xfdd04b(0x2b6)]&&_0x41b9d6['id']===_0x40d36b['id']&&_0x41b9d6['params'][_0xfdd04b(0x3f2)]===this['unitID']){const _0x299e99=_0x41b9d6['params'];this[_0xfdd04b(0x3d3)](_0x299e99[_0xfdd04b(0x19e)],_0x299e99[_0xfdd04b(0x398)][0x0]);}})));}[_0x144368(0x2ed)](_0x2180a4){const _0x31e518=_0x144368;var _0x14cba7,_0x563e3c;const {memberID:_0x13cd1b,selection:_0x4c74f4}=_0x2180a4['data'],{sheetName:_0x46cf3d,range:_0x5b93dc}=_0x550a38(_0x4c74f4),_0x5a47e0={'name':(_0x563e3c=(_0x14cba7=this[_0x31e518(0x18e)]['getMember'](this['unitID'],_0x13cd1b))==null?void 0x0:_0x14cba7[_0x31e518(0xcb)])!=null?_0x563e3c:'Unknown\x20user','range':this[_0x31e518(0x3e3)](_0x46cf3d,_0x5b93dc),'sheetID':_0x46cf3d,'color':this[_0x31e518(0xac)]['assignAColorForMemberID'](_0x13cd1b),'selection':_0x4c74f4},_0x16119c=this[_0x31e518(0x1f2)];_0x16119c[_0x31e518(0x2b2)](_0x13cd1b,_0x5a47e0),this[_0x31e518(0x302)]['next'](_0x16119c);}[_0x144368(0x2d9)](_0x15c488){const _0x2dc47f=_0x144368,{memberID:_0x131ff0}=_0x15c488['data'],_0x4cd36b=this['cursorInfo'];_0x4cd36b[_0x2dc47f(0x218)](_0x131ff0),this[_0x2dc47f(0x302)][_0x2dc47f(0x105)](_0x4cd36b);}[_0x144368(0x3e3)](_0x55be4f,_0x3a6f25){const _0x594469=_0x144368;var _0x4b7809,_0x46938a;const _0x23816b=(_0x46938a=(_0x4b7809=this[_0x594469(0x3a1)]['getUniverSheetInstance'](this[_0x594469(0x24a)]))==null?void 0x0:_0x4b7809['getSheetBySheetId'](_0x55be4f))==null?void 0x0:_0x46938a[_0x594469(0x28d)]();return(_0x23816b==null?void 0x0:_0x23816b[_0x594469(0x397)](_0x4adb9a=>_0xf6a94[_0x594469(0xa1)](_0x4adb9a,_0x3a6f25)))||_0x3a6f25;}[_0x144368(0x25a)](){const _0xb62eee=_0x144368,_0x21fdf8=new _0x311633(),_0x556625=yr(),_0x466c1e=()=>{const _0x3a9fb8=_0x5e18;_0x21fdf8[_0x3a9fb8(0x119)]();const _0x54422b=(_0x5e8dca,_0x85d110,_0xd18f31,_0x19c405)=>{const _0x52e077=_0x3a9fb8;let _0x25865e=[];switch(_0x5e8dca['id']){case _0x2657a7[_0x52e077(0x2c7)]:{_0x25865e=_0x202c66(_0x5e8dca,_0x19c405);break;}case _0x2657a7[_0x52e077(0x12a)]:{_0x25865e=_0xc8ec43(_0x5e8dca,_0x19c405);break;}case _0x2657a7[_0x52e077(0x1c8)]:{_0x25865e=_0x1dc739(_0x5e8dca,_0x19c405);break;}case _0x2657a7[_0x52e077(0x31c)]:{_0x25865e=_0x1efe2b(_0x5e8dca,_0x19c405);break;}case _0x2657a7[_0x52e077(0x300)]:{_0x25865e=_0x2ce6e5(_0x5e8dca,_0x19c405);break;}case _0x2657a7['InsertRowCommandId']:{_0x25865e=_0x2e6d83(_0x5e8dca,_0x19c405);break;}case _0x2657a7[_0x52e077(0xbd)]:{_0x25865e=_0x451abf(_0x5e8dca,_0x19c405);break;}case _0x2657a7['RemoveColCommandId']:{_0x25865e=_0x21ec59(_0x5e8dca,_0x19c405);break;}case _0x2657a7[_0x52e077(0x314)]:{_0x25865e=_0x239991(_0x5e8dca,_0x19c405);break;}}const _0x17a838=_0x30fdf8(_0x25865e,_0x19c405),_0x1a26d4=this[_0x52e077(0x1f2)]['get'](_0x85d110);if(_0x1a26d4&&_0x17a838){const _0x528757={..._0x1a26d4,'range':_0x17a838};this[_0x52e077(0x1f2)][_0x52e077(0x2b2)](_0x85d110,_0x528757),_0x556625(()=>{const _0x5839fb=_0x52e077,_0x2a35d4=this['_refRangeService'][_0x5839fb(0x290)](_0x17a838,_0x34d115=>(_0x2a35d4[_0x5839fb(0x119)](),_0x54422b(_0x34d115,_0x85d110,_0xd18f31,_0x17a838)));_0x21fdf8[_0x5839fb(0x282)](_0x2a35d4);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3a9fb8(0x13f)]((_0x857540,_0x355da8)=>{const _0x2e5a4a=_0x3a9fb8,{range:_0x37f742,sheetID:_0x5e60dd}=_0x857540,_0x189956=this['_refRangeService'][_0x2e5a4a(0x290)](_0x37f742,_0x28c1ef=>(_0x189956[_0x2e5a4a(0x119)](),_0x54422b(_0x28c1ef,_0x355da8,_0x5e60dd,_0x37f742)));_0x21fdf8[_0x2e5a4a(0x282)](_0x189956);});};this[_0xb62eee(0x133)](_0x2c721c(this['_cursorInfo$'][_0xb62eee(0x1c7)](()=>{_0x466c1e();})));}[_0x144368(0xc3)](){const _0x1c71cc=_0x144368;var _0x1fa71a,_0x409f5d;if(this['_online']=!0x0,((_0x1fa71a=this[_0x1c71cc(0x3a1)][_0x1c71cc(0x310)]())==null?void 0x0:_0x1fa71a['getUnitId']())!==this[_0x1c71cc(0x24a)])return;const _0x45f066=(_0x409f5d=this[_0x1c71cc(0xb7)][_0x1c71cc(0x33c)](_0x173a75)[_0x1c71cc(0x257)]())==null?void 0x0:_0x409f5d[0x0],_0xa6822d=this['_univerInstanceService'][_0x1c71cc(0x29a)](_0x5a4c09['UNIVER_SHEET'])[_0x1c71cc(0x30b)]();_0x45f066&&_0xa6822d&&this[_0x1c71cc(0x3d3)](_0xa6822d[_0x1c71cc(0x25f)](),_0x45f066);}[_0x144368(0x25d)](){this['_online']=!0x1;}};Ot=Dr([fe(0x2,_0x3a563e(_0x54963c)),fe(0x3,_0x3a563e(Ft)),fe(0x4,_0x3a563e(ae)),fe(0x5,_0x2d956c),fe(0x6,_0x401dc7),fe(0x7,_0x3a563e(_0x326e98))],Ot);var Nr=Object[_0x144368(0x14c)],Ur=Object[_0x144368(0x3e4)],Mr=(_0x54d045,_0x38664b,_0xb0c43b,_0x51af85)=>{const _0xe21d78=_0x144368;for(var _0x41633b=_0x51af85>0x1?void 0x0:_0x51af85?Ur(_0x38664b,_0xb0c43b):_0x38664b,_0x3eb9e4=_0x54d045[_0xe21d78(0x405)]-0x1,_0x175cde;_0x3eb9e4>=0x0;_0x3eb9e4--)(_0x175cde=_0x54d045[_0x3eb9e4])&&(_0x41633b=(_0x51af85?_0x175cde(_0x38664b,_0xb0c43b,_0x41633b):_0x175cde(_0x41633b))||_0x41633b);return _0x51af85&&_0x41633b&&Nr(_0x38664b,_0xb0c43b,_0x41633b),_0x41633b;},_t=(_0x28f950,_0x18d6fa)=>(_0x2f0bb2,_0x4006f6)=>_0x18d6fa(_0x2f0bb2,_0x4006f6,_0x28f950);let pe=class extends _0xa18742{constructor(_0x4c6451,_0x240771,_0xd3bf4e){const _0x3d2bd2=_0x144368;super(),l(this,_0x3d2bd2(0x305),new Map()),l(this,_0x3d2bd2(0x34a),new _0x1e3428()),(this[_0x3d2bd2(0x3a1)]=_0x4c6451,this[_0x3d2bd2(0xb7)]=_0x240771,this[_0x3d2bd2(0x296)]=_0xd3bf4e,this[_0x3d2bd2(0x15d)]());}[_0x144368(0x119)](){const _0x3b035c=_0x144368;super['dispose'](),this['_entityInit$'][_0x3b035c(0x159)](),this[_0x3b035c(0x305)][_0x3b035c(0x13f)](_0x32ebe3=>_0x32ebe3[_0x3b035c(0x119)]());}[_0x144368(0x350)](_0x4788f3){const _0x5234f8=_0x144368;return this[_0x5234f8(0x305)]['has'](_0x4788f3)?this[_0x5234f8(0x305)]['get'](_0x4788f3)[_0x5234f8(0x401)]:this[_0x5234f8(0x34a)][_0x5234f8(0x33b)](_0x307ef0(_0xeb285a=>_0xeb285a['unitID']===_0x4788f3),_0x42e548(_0x4fa9d2=>_0x4fa9d2['cursorInfo$']));}['_init'](){const _0x1cca61=_0x144368;this[_0x1cca61(0x3a1)][_0x1cca61(0x182)](_0x5a4c09[_0x1cca61(0x295)])[_0x1cca61(0x33b)](_0x592099(this[_0x1cca61(0x3e8)]))[_0x1cca61(0x1c7)](async _0x30021d=>{const _0x3f271f=_0x1cca61,_0x43e3ff=_0x30021d['getUnitId'](),_0xcd99c4=await this[_0x3f271f(0x3e6)](_0x43e3ff);this[_0x3f271f(0x34a)][_0x3f271f(0x105)](_0xcd99c4),this[_0x3f271f(0x305)][_0x3f271f(0x2b2)](_0x43e3ff,_0xcd99c4);}),this[_0x1cca61(0x3a1)]['getTypeOfUnitAdded$'](_0x5a4c09[_0x1cca61(0x306)])[_0x1cca61(0x33b)](_0x592099(this['dispose$']))[_0x1cca61(0x33b)](_0x307ef0(_0x4ae355=>!_0x4ae355['getUnitId']()[_0x1cca61(0x9a)]('__')))[_0x1cca61(0x1c7)](async _0x30ff9b=>{const _0x29f899=_0x1cca61,_0x523def=_0x30ff9b['getUnitId'](),_0x595ee9=await this[_0x29f899(0xae)](_0x523def);this['_entityInit$'][_0x29f899(0x105)](_0x595ee9),this[_0x29f899(0x305)][_0x29f899(0x2b2)](_0x523def,_0x595ee9);}),_0x4f1e0d(this[_0x1cca61(0x3a1)][_0x1cca61(0x36a)](_0x5a4c09[_0x1cca61(0x306)]),this[_0x1cca61(0x3a1)]['getTypeOfUnitDisposed$'](_0x5a4c09['UNIVER_SHEET']))[_0x1cca61(0x33b)](_0x592099(this[_0x1cca61(0x3e8)]))[_0x1cca61(0x1c7)](_0x3cb5c6=>{const _0x3cd5bb=_0x1cca61,_0xd047ea=_0x3cb5c6[_0x3cd5bb(0x113)](),_0x43baaa=this[_0x3cd5bb(0x305)][_0x3cd5bb(0x33c)](_0xd047ea);_0x43baaa&&(_0x43baaa['dispose'](),this[_0x3cd5bb(0x305)][_0x3cd5bb(0x218)](_0xd047ea));});}async[_0x144368(0x3e6)](_0x3af288){const _0xe6e439=_0x144368,_0x434442=await this['_collabSessionService'][_0xe6e439(0x126)](_0x3af288),_0x52d458=this['_injector'][_0xe6e439(0x2ae)](Ot,_0x3af288,_0x434442);return _0x52d458['init'](),_0x52d458;}async[_0x144368(0xae)](_0x17c89a){const _0x5cdd7f=_0x144368,_0x4ef243=await this[_0x5cdd7f(0x296)][_0x5cdd7f(0x126)](_0x17c89a),_0x17d535=this['_injector'][_0x5cdd7f(0x2ae)](Rt,_0x17c89a,_0x4ef243);return _0x17d535[_0x5cdd7f(0x288)](),_0x17d535;}};pe=Mr([_t(0x0,_0x2d956c),_t(0x1,_0x3a563e(_0x54963c)),_t(0x2,_0x3a563e(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x48e79f,_0x24e118){const _0xe19001=_0x144368;let {radius:_0x548a56,width:_0x3d035a,height:_0x213524}=_0x24e118;_0x548a56=_0x548a56!=null?_0x548a56:0x0,_0x3d035a=_0x3d035a!=null?_0x3d035a:0x1e,_0x213524=_0x213524!=null?_0x213524:0x1e;let _0x3f9b12=0x0,_0x28274f=0x0,_0xcef3d3=0x0;_0x3f9b12=_0x28274f=_0xcef3d3=Math[_0xe19001(0x3ba)](_0x548a56,_0x3d035a/0x2,_0x213524/0x2),_0x48e79f[_0xe19001(0x20d)](),_0x48e79f[_0xe19001(0x199)](_0x3f9b12,0x0),_0x48e79f[_0xe19001(0x2d4)](_0x3d035a-_0x28274f,0x0),_0x48e79f[_0xe19001(0x2ec)](_0x3d035a-_0x28274f,_0x28274f,_0x28274f,Math['PI']*0x3/0x2,0x0,!0x1),_0x48e79f[_0xe19001(0x2d4)](_0x3d035a,_0x213524-_0xcef3d3),_0x48e79f['arc'](_0x3d035a-_0xcef3d3,_0x213524-_0xcef3d3,_0xcef3d3,0x0,Math['PI']/0x2,!0x1),_0x48e79f['lineTo'](0x0,_0x213524),_0x48e79f[_0xe19001(0x2d4)](0x0,_0x3f9b12),_0x48e79f[_0xe19001(0x2ec)](_0x3f9b12,_0x3f9b12,_0x3f9b12,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x48e79f[_0xe19001(0x332)](),_0x24e118[_0xe19001(0x1df)]&&(_0x48e79f[_0xe19001(0x3d1)](),_0x48e79f[_0xe19001(0x23d)]=_0x24e118[_0xe19001(0x1df)],_0x24e118[_0xe19001(0x188)]==='evenodd'?_0x48e79f['fill']('evenodd'):_0x48e79f[_0xe19001(0x1df)](),_0x48e79f['restore']());}class st extends _0x1d0b00{constructor(_0x49a577,_0x41ea26){const _0x2dd28f=_0x144368;super(_0x49a577,_0x41ea26),l(this,_0x2dd28f(0x359)),l(this,_0x2dd28f(0x3a9)),(this[_0x2dd28f(0x359)]=_0x41ea26==null?void 0x0:_0x41ea26[_0x2dd28f(0x359)],this['text']=_0x41ea26==null?void 0x0:_0x41ea26[_0x2dd28f(0x3a9)]);}static[_0x144368(0xbf)](_0x1a190a,_0x31a492){const _0x24654e=_0x144368,{text:_0x48f069,color:_0x4d1778}=_0x31a492;_0x1a190a[_0x24654e(0x3d1)](),_0x1a190a[_0x24654e(0x3be)]=_0x24654e(0xfd);const _0x411886=_0x1a190a[_0x24654e(0x264)](_0x48f069)['width'],_0x527042=Math[_0x24654e(0x3ba)](_0x411886+0x2*ut,us);Lr(_0x1a190a,{'height':Le,'radius':0x4,'width':_0x527042,'fill':_0x4d1778,'evented':!0x1}),_0x1a190a[_0x24654e(0x23d)]=_0x24654e(0xd1);const _0x16a203=ut,_0x320663=Le-Ar,_0x5cd8aa=us-0x2*ut;if(_0x411886>_0x5cd8aa){let _0x1c678d='',_0x7ba952=0x0;for(const _0x3d83c9 of _0x48f069){const _0x767acf=_0x1a190a[_0x24654e(0x264)](_0x3d83c9)[_0x24654e(0x2e6)];if(_0x7ba952+_0x767acf<=_0x5cd8aa-_0x1a190a['measureText'](_0x24654e(0x3a3))['width'])_0x1c678d+=_0x3d83c9,_0x7ba952+=_0x767acf;else{_0x1c678d+=_0x24654e(0x3a3);break;}}_0x1a190a[_0x24654e(0x234)](_0x1c678d,_0x16a203,_0x320663);}else _0x1a190a[_0x24654e(0x234)](_0x48f069,_0x16a203,_0x320663);_0x1a190a[_0x24654e(0x1f7)]();}['_draw'](_0x101505){const _0x2fc301=_0x144368;st[_0x2fc301(0xbf)](_0x101505,this);}}const dt=_0x144368(0x22a),$r=_0x144368(0x3ea),jr=_0x144368(0x28c),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x144368(0xb5);class ds{constructor(_0x1669fe,_0x440cb9,_0x1b40b3,_0x127fa2){const _0x5e6779=_0x144368;l(this,_0x5e6779(0x3fd),[]),l(this,_0x5e6779(0x2b0),null),l(this,'_textBubble',null),l(this,_0x5e6779(0x10a),null),l(this,_0x5e6779(0x17f),null),l(this,'_eventUnsubscribe',null),(this[_0x5e6779(0x149)]=_0x1669fe,this['_scene']=_0x440cb9,this[_0x5e6779(0x2a5)]=_0x1b40b3,this[_0x5e6779(0x2a3)]=_0x127fa2,this[_0x5e6779(0x3de)]());}set[_0x144368(0xf2)](_0x4470cd){const _0x1f1785=_0x144368;_0x4470cd?(this[_0x1f1785(0x10a)]&&this['_anchorDot']['hide'](),this[_0x1f1785(0x153)]&&this[_0x1f1785(0x153)][_0x1f1785(0xff)]()):(this[_0x1f1785(0x10a)]&&this['_anchorDot'][_0x1f1785(0xff)](),this[_0x1f1785(0x153)]&&this[_0x1f1785(0x153)][_0x1f1785(0x399)]());}[_0x144368(0x119)](){const _0x14a323=_0x144368;for(const _0x4ddff8 of this[_0x14a323(0x3fd)])_0x4ddff8[_0x14a323(0x119)]();this[_0x14a323(0x153)]&&this[_0x14a323(0x153)][_0x14a323(0x119)](),this[_0x14a323(0x10a)]&&this['_anchorDot'][_0x14a323(0x119)](),this[_0x14a323(0x2b0)]&&this[_0x14a323(0x2b0)][_0x14a323(0x119)](),this[_0x14a323(0x3b5)]&&this['_eventUnsubscribe']();}[_0x144368(0x3de)](){const _0x1e4661=_0x144368;var _0x594339;const {_docSkeleton:_0x28a7bb,_document:_0x7e3dbe}=this,{color:_0x4e76e4,name:_0x2d11c4,ranges:_0x4cb1a3}=this[_0x1e4661(0x149)],_0x314018=_0x7e3dbe[_0x1e4661(0xd2)](),{docsLeft:_0x210c12,docsTop:_0x53d13e}=_0x314018,_0x557b3e=new _0x4230d4(_0x314018,_0x28a7bb);for(const {startOffset:_0x3a2669,endOffset:_0x13699c,collapsed:_0x268c2f,isActive:_0x286b3b}of _0x4cb1a3){const _0x16291f=_0x28a7bb['findNodePositionByCharIndex'](_0x3a2669),_0x56470c=_0x28a7bb[_0x1e4661(0xda)](_0x13699c);if(_0x286b3b){const {contentBoxPointGroup:_0x3090fe}=_0x557b3e['getRangePointData'](_0x56470c,_0x56470c);if(_0x3090fe[_0x1e4661(0x405)]===0x0)continue;this[_0x1e4661(0x1d1)](_0x4e76e4,_0x3090fe,_0x210c12,_0x53d13e,_0x2d11c4),this[_0x1e4661(0x3b5)]=this['_handleHover']();}if(!_0x268c2f&&_0x16291f&&_0x56470c){if(_0x39d84a(_0x16291f,_0x56470c)){const _0x47837d=new _0x23488e(_0x314018,_0x28a7bb),{pointGroup:_0xae920b}=(_0x594339=_0x47837d[_0x1e4661(0x110)](_0x16291f,_0x56470c))!=null?_0x594339:{};if(_0xae920b==null||_0xae920b[_0x1e4661(0x405)]===0x0)continue;this[_0x1e4661(0x309)](_0x4e76e4,_0xae920b,_0x210c12,_0x53d13e);}else{const {contentBoxPointGroup:_0x13addd}=_0x557b3e['getRangePointData'](_0x16291f,_0x56470c);if(_0x13addd[_0x1e4661(0x405)]===0x0)continue;this[_0x1e4661(0x2f4)](_0x4e76e4,_0x13addd,_0x210c12,_0x53d13e);}}}}[_0x144368(0x1d1)](_0x2b9db5,_0x4f300a,_0x286b7f,_0x50bd11,_0x210bf6){const _0x4ddf00=_0x144368,_0x25cfa4=this[_0x4ddf00(0x3fc)](_0x4f300a),{left:_0x7ff4fd,top:_0x2f563c,height:_0x2970a4}=_0x25cfa4,_0x5e5c21=this[_0x4ddf00(0x200)](),_0xa7f44d=Hr/_0x5e5c21,_0x2de713=new _0x144e80(dt+_0x41a12a[_0x4ddf00(0x2bb)](De),{'left':_0x7ff4fd+_0x286b7f-_0xa7f44d,'top':_0x2f563c+_0x50bd11,'height':_0x2970a4,'width':xr,'fill':_0x2b9db5||_0x458d3f(_0x9fd27f[_0x4ddf00(0x1d5)],0x0),'strokeWidth':_0xa7f44d,'stroke':kr,'evented':!0x0});this[_0x4ddf00(0x2b0)]=_0x2de713,this[_0x4ddf00(0x129)][_0x4ddf00(0x212)](_0x2de713,_0xce00e);const _0x43a59d=new _0x144e80(dt+_0x41a12a[_0x4ddf00(0x2bb)](De),{'left':_0x7ff4fd+_0x286b7f-_0xa7f44d,'top':_0x2f563c+_0x50bd11-ft/0x2,'height':ft,'width':ft,'fill':_0x2b9db5||_0x458d3f(_0x9fd27f['black'],0x0),'strokeWidth':0x0,'stroke':_0x2b9db5||_0x458d3f(_0x9fd27f['black'],0x0),'evented':!0x1});this[_0x4ddf00(0x10a)]=_0x43a59d,this['_scene'][_0x4ddf00(0x212)](_0x43a59d,_0xce00e);const _0x1916ad=new st(dt+_0x41a12a['generateRandomId'](De),{'left':_0x7ff4fd+_0x286b7f-_0xa7f44d,'top':_0x2f563c+_0x50bd11-Le,'text':_0x210bf6,'color':_0x2b9db5});this[_0x4ddf00(0x153)]=_0x1916ad,this[_0x4ddf00(0x129)][_0x4ddf00(0x212)](_0x1916ad,_0xce00e),this[_0x4ddf00(0xf2)]=!0x1;}[_0x144368(0x230)](){const _0x1aac6f=_0x144368,_0x2117dc=this[_0x1aac6f(0x2b0)][_0x1aac6f(0x379)][_0x1aac6f(0x265)](()=>{const _0x1b6fbc=_0x1aac6f;this[_0x1b6fbc(0xf2)]=!0x0;}),_0x44737e=this[_0x1aac6f(0x2b0)]['onPointerLeave$']['subscribeEvent'](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x3478df=_0x5e18;this[_0x3478df(0xf2)]=!0x1;},0x7d0);});return()=>{const _0x3f3de4=_0x1aac6f;_0x2117dc['unsubscribe'](),_0x44737e[_0x3f3de4(0x2ea)]();};}[_0x144368(0x2f4)](_0x54dfa8,_0x59671a,_0xc7f3f8,_0x421c89){const _0x56e9f6=_0x144368,_0x4009c2=new _0x4bab80(_0x54dfa8)[_0x56e9f6(0x33a)](0.2)[_0x56e9f6(0x34c)](),_0x20480b=new _0x19eca8($r+_0x41a12a[_0x56e9f6(0x2bb)](De),{'pointsGroup':_0x59671a,'fill':_0x4009c2||_0x458d3f(_0x9fd27f[_0x56e9f6(0x1d5)],0.2),'left':_0xc7f3f8,'top':_0x421c89,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x56e9f6(0x3fd)][_0x56e9f6(0x3ff)](_0x20480b),this[_0x56e9f6(0x129)][_0x56e9f6(0x212)](_0x20480b,_0xce00e);}[_0x144368(0x309)](_0x2c62f4,_0x4091b6,_0x3f9810,_0x51b485){const _0x3540f8=_0x144368,_0x13e785=new _0x4bab80(_0x2c62f4)[_0x3540f8(0x33a)](0.2)[_0x3540f8(0x34c)](),_0x31e4f3=new _0x19eca8(jr+_0x41a12a[_0x3540f8(0x2bb)](De),{'pointsGroup':_0x4091b6,'fill':_0x13e785||_0x458d3f(_0x9fd27f[_0x3540f8(0x1d5)],0.2),'left':_0x3f9810,'top':_0x51b485,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3540f8(0x3fd)][_0x3540f8(0x3ff)](_0x31e4f3),this[_0x3540f8(0x129)]['addObject'](_0x31e4f3,_0xce00e);}[_0x144368(0x3fc)](_0x1775e0){const _0x223ebb=_0x1775e0[0x0],_0x2e71ab=_0x223ebb[0x0],_0x1a18d5=_0x223ebb[0x2],{x:_0xe0b75,y:_0x587522}=_0x2e71ab,{x:_0x314c92,y:_0x43d0b6}=_0x1a18d5;return{'left':_0xe0b75,'top':_0x587522,'width':_0x314c92-_0xe0b75,'height':_0x43d0b6-_0x587522};}[_0x144368(0x200)](){const _0x56391e=_0x144368,{scaleX:_0x5ba1a0,scaleY:_0x43d5a2}=this[_0x56391e(0x129)]['getAncestorScale']();return Math['max'](_0x5ba1a0,_0x43d5a2);}}var Br=Object[_0x144368(0x14c)],Vr=Object['getOwnPropertyDescriptor'],Fr=(_0x4eaf7b,_0x5bbc28,_0x4095b5,_0x10f932)=>{const _0x561bfb=_0x144368;for(var _0xd4deb9=_0x10f932>0x1?void 0x0:_0x10f932?Vr(_0x5bbc28,_0x4095b5):_0x5bbc28,_0x51c5f1=_0x4eaf7b[_0x561bfb(0x405)]-0x1,_0x4d132b;_0x51c5f1>=0x0;_0x51c5f1--)(_0x4d132b=_0x4eaf7b[_0x51c5f1])&&(_0xd4deb9=(_0x10f932?_0x4d132b(_0x5bbc28,_0x4095b5,_0xd4deb9):_0x4d132b(_0xd4deb9))||_0xd4deb9);return _0x10f932&&_0xd4deb9&&Br(_0x5bbc28,_0x4095b5,_0xd4deb9),_0xd4deb9;},xe=(_0x29ecf0,_0x566823)=>(_0xcada73,_0x1632d9)=>_0x566823(_0xcada73,_0x1632d9,_0x29ecf0);let Dt=class extends _0xa18742{constructor(_0x3cf4b4,_0x1ced7b,_0x4c3774,_0x4540a9,_0x3fa544){const _0x1eac50=_0x144368;super(),l(this,_0x1eac50(0x1ac),[]),l(this,_0x1eac50(0x1c1),[]),(this[_0x1eac50(0x233)]=_0x3cf4b4,this[_0x1eac50(0x1b9)]=_0x1ced7b,this[_0x1eac50(0x3ef)]=_0x4c3774,this[_0x1eac50(0x3da)]=_0x4540a9,this[_0x1eac50(0x3b2)]=_0x3fa544,this[_0x1eac50(0x15d)]());}[_0x144368(0x15d)](){const _0x3ab1f8=_0x144368,_0x6063fc=this['_context']['unitId'],_0x9dd634=this[_0x3ab1f8(0x1b9)];this['disposeWithMe'](_0x40ea27([this[_0x3ab1f8(0x3ef)][_0x3ab1f8(0x350)](_0x6063fc),this[_0x3ab1f8(0x3b2)][_0x3ab1f8(0x326)]])[_0x3ab1f8(0x33b)](_0x2f24ee(([_0x3637cc,_0x56d5f7])=>({'skeleton':_0x9dd634[_0x3ab1f8(0xec)](),'cursors':[..._0x3637cc['values']()]['flatMap'](_0x1ff1c8=>({..._0x1ff1c8,'color':_0x56d5f7[_0x1ff1c8['color']]}))})))[_0x3ab1f8(0x1c7)](_0x5470ac=>{const _0x55c86f=_0x3ab1f8;if(this['_removeCollabCursors'](),_0x5470ac){const {skeleton:_0x52ae4c,cursors:_0x1483dc}=_0x5470ac;this[_0x55c86f(0x16b)](_0x52ae4c,_0x1483dc);}})),this[_0x3ab1f8(0x132)](),this[_0x3ab1f8(0x11c)]();}[_0x144368(0x16b)](_0x1e286b,_0xc3db7d){const _0x41960b=_0x144368,{scene:_0x329915,mainComponent:_0x125ee2}=this['_context'],_0xf05b0=_0xc3db7d[_0x41960b(0x192)](_0x40d881=>new ds(_0x40d881,_0x329915,_0x1e286b,_0x125ee2));this[_0x41960b(0x1ac)]=_0xf05b0,this[_0x41960b(0x1c1)]=_0xc3db7d;}[_0x144368(0x124)](){const _0x4eee1d=_0x144368;this['_removeCollabCursors']();const {scene:_0x525011,mainComponent:_0x3fe5e9}=this[_0x4eee1d(0x233)],_0x53666a=this[_0x4eee1d(0x1b9)][_0x4eee1d(0xec)](),_0x1e75bd=this[_0x4eee1d(0x1c1)]['map'](_0x31f9c4=>new ds(_0x31f9c4,_0x525011,_0x53666a,_0x3fe5e9));this[_0x4eee1d(0x1ac)]=_0x1e75bd;}['_removeCollabCursors'](){const _0x31f728=_0x144368;this[_0x31f728(0x1ac)]['forEach'](_0x12bf53=>_0x12bf53['dispose']()),this[_0x31f728(0x1ac)]=[];}[_0x144368(0x11c)](){const _0x5db1ff=_0x144368,_0xa49af2=[_0x1d8fb2['id']];this[_0x5db1ff(0x133)](this[_0x5db1ff(0x3da)][_0x5db1ff(0x3f9)](_0x3e90dc=>{const _0x36135d=_0x5db1ff;_0xa49af2[_0x36135d(0x111)](_0x3e90dc['id'])&&_0x3e90dc[_0x36135d(0x225)][_0x36135d(0x3f2)]===this[_0x36135d(0x233)][_0x36135d(0x3f2)]&&this[_0x36135d(0x124)]();}));}[_0x144368(0x132)](){const _0xdeb130=_0x144368;this[_0xdeb130(0x133)](_0x44c962(this[_0xdeb130(0x233)][_0xdeb130(0x141)]['onTransformChange$'])[_0xdeb130(0x33b)](_0x36d4b5(_0xe4b69c=>_0xe4b69c[_0xdeb130(0x103)]===_0x18651d[_0xdeb130(0xd8)]),_0x10d880(0x10))['subscribe'](()=>{const _0x4824b3=_0xdeb130;this[_0x4824b3(0x124)]();}));}};Dt=Fr([xe(0x1,_0x3a563e(_0x768f54)),xe(0x2,_0x3a563e(pe)),xe(0x3,_0x401dc7),xe(0x4,_0x3a563e(_0x1d8843))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0x1d0b00{constructor(_0x5e1f31,_0xa163fc){const _0x372ae6=_0x144368;super(_0x5e1f31,_0xa163fc),l(this,_0x372ae6(0xb0)),l(this,_0x372ae6(0x3fa),!0x1),l(this,_0x372ae6(0x3bc)),l(this,'_name',''),l(this,_0x372ae6(0x344),_0x372ae6(0x281)),l(this,_0x372ae6(0x25e)),(_0xa163fc&&this[_0x372ae6(0x117)](_0xa163fc),this[_0x372ae6(0x379)][_0x372ae6(0x265)](()=>this[_0x372ae6(0x117)]({'hovered':!0x0})),this[_0x372ae6(0x206)]['subscribeEvent'](()=>this[_0x372ae6(0x117)]({'hovered':!0x1})));}[_0x144368(0x117)](_0x4510fe){const _0x1f9e6c=_0x144368;var _0x40c564,_0x49e927,_0x37423a,_0x3ce71e,_0x13d5eb,_0x17f7d3;this['_color']=(_0x40c564=_0x4510fe[_0x1f9e6c(0x359)])!=null?_0x40c564:this['_color'],this[_0x1f9e6c(0x3fa)]=(_0x49e927=_0x4510fe[_0x1f9e6c(0x222)])!=null?_0x49e927:this[_0x1f9e6c(0x3fa)],this[_0x1f9e6c(0x3bc)]=(_0x37423a=_0x4510fe[_0x1f9e6c(0x317)])!=null?_0x37423a:this[_0x1f9e6c(0x3bc)],this[_0x1f9e6c(0x170)]=(_0x3ce71e=_0x4510fe[_0x1f9e6c(0xcb)])!=null?_0x3ce71e:this[_0x1f9e6c(0x170)],this[_0x1f9e6c(0x344)]=(_0x13d5eb=_0x4510fe[_0x1f9e6c(0x293)])!=null?_0x13d5eb:this[_0x1f9e6c(0x344)],this[_0x1f9e6c(0x25e)]=(_0x17f7d3=_0x4510fe[_0x1f9e6c(0x26e)])!=null?_0x17f7d3:this['_backgroundColor'],this[_0x1f9e6c(0xfe)]({'width':_0x4510fe[_0x1f9e6c(0x2e6)],'height':_0x4510fe[_0x1f9e6c(0x286)]});}[_0x144368(0x274)](_0x2ab839){const _0x52a48b=_0x144368,{row:_0x234f3b,column:_0x432361}=_0x2ab839;if(_0x234f3b>=this['_range'][_0x52a48b(0x3eb)]&&_0x234f3b<=this[_0x52a48b(0x3bc)][_0x52a48b(0x1e3)]&&_0x432361>=this[_0x52a48b(0x3bc)][_0x52a48b(0x1fd)]&&_0x432361<=this[_0x52a48b(0x3bc)]['endColumn']){this[_0x52a48b(0x117)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x144368(0x276)](_0x547cb8){return!0x1;}[_0x144368(0x2fe)](_0x16801e){const _0x15dcc8=_0x144368;_0x144e80[_0x15dcc8(0xbf)](_0x16801e,{'width':this[_0x15dcc8(0x2e6)],'height':this['height'],'strokeWidth':Gr,'stroke':this[_0x15dcc8(0xb0)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x15dcc8(0x3fa)]&&(_0x16801e[_0x15dcc8(0x3d1)](),_0x16801e[_0x15dcc8(0x1a0)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x15dcc8(0x285)?0x0:-Le),st['drawWith'](_0x16801e,{'text':this[_0x15dcc8(0x170)],'color':this[_0x15dcc8(0xb0)]}),_0x16801e['restore']());}}var Kr=Object['defineProperty'],Xr=Object['getOwnPropertyDescriptor'],Jr=(_0x183ece,_0x5401ed,_0xcbc885,_0x47f1bc)=>{const _0x8da5d3=_0x144368;for(var _0x1c4c2f=_0x47f1bc>0x1?void 0x0:_0x47f1bc?Xr(_0x5401ed,_0xcbc885):_0x5401ed,_0x3d968e=_0x183ece[_0x8da5d3(0x405)]-0x1,_0x55fd58;_0x3d968e>=0x0;_0x3d968e--)(_0x55fd58=_0x183ece[_0x3d968e])&&(_0x1c4c2f=(_0x47f1bc?_0x55fd58(_0x5401ed,_0xcbc885,_0x1c4c2f):_0x55fd58(_0x1c4c2f))||_0x1c4c2f);return _0x47f1bc&&_0x1c4c2f&&Kr(_0x5401ed,_0xcbc885,_0x1c4c2f),_0x1c4c2f;},mt=(_0x4c4248,_0x27713c)=>(_0x3f8ecf,_0x9cd7d3)=>_0x27713c(_0x3f8ecf,_0x9cd7d3,_0x4c4248);const qr=0x1389;let wt=class extends _0xa18742{constructor(_0x2209b9,_0x1778cb,_0x2be4f2,_0x47e928){const _0x4d3068=_0x144368;super(),l(this,'_cursors',new Set()),l(this,_0x4d3068(0x322),null),(this[_0x4d3068(0x233)]=_0x2209b9,this[_0x4d3068(0x3c6)]=_0x1778cb,this[_0x4d3068(0x3ef)]=_0x2be4f2,this[_0x4d3068(0x3b2)]=_0x47e928,this[_0x4d3068(0x15d)]());}['_init'](){const _0x224fdc=_0x144368;this[_0x224fdc(0x3c6)][_0x224fdc(0xd6)][_0x224fdc(0x33b)](_0x25cc15(this[_0x224fdc(0x3e8)]),_0x4efb03(_0x2fa70f=>{const _0x301f31=_0x224fdc;if(_0x2fa70f){const _0x2c327c=_0x2fa70f[_0x301f31(0xbc)];return _0x40ea27(this[_0x301f31(0x3ef)][_0x301f31(0x350)](this['_context'][_0x301f31(0x3f2)]),this['_themeService'][_0x301f31(0x326)])[_0x301f31(0x33b)](_0x2f24ee(([_0x27e0c1,_0x5be982])=>{const _0x76642c=_0x301f31,_0x38c4d6=new Map();return _0x27e0c1[_0x76642c(0x13f)]((_0x2bfb93,_0x59aab2)=>{const _0x28996f=_0x76642c;if(_0x2bfb93['sheetID']===_0x2c327c){const _0x47483d={..._0x2bfb93};_0x47483d['color']=_0x5be982[_0x2bfb93['color']],_0x38c4d6[_0x28996f(0x2b2)](_0x59aab2,_0x47483d);}}),{'skeleton':_0x2fa70f,'cursors':_0x38c4d6};}));}return _0x4c8895({'skeleton':null,'cursors':new Map()});}))[_0x224fdc(0x1c7)](({skeleton:_0xde02b9,cursors:_0x190c3f})=>{const _0x347fd9=_0x224fdc;this[_0x347fd9(0xed)](),_0xde02b9&&this[_0x347fd9(0x16b)](_0xde02b9,_0x190c3f);}),this[_0x224fdc(0x3c6)]['currentSkeleton$']['subscribe'](_0x37348f=>{const _0x59036f=_0x224fdc;if(_0x37348f==null)return;const {skeleton:_0x51cd01}=_0x37348f,{scene:_0x18241c}=this[_0x59036f(0x233)];_0x18241c[_0x59036f(0x323)][_0x59036f(0x265)](_0x446300(_0x4f0248=>{const _0x4761a2=_0x59036f;var _0x3a9e5e,_0x579413;const {offsetX:_0x4db6bf,offsetY:_0x174753}=_0x4f0248,{x:_0x4ee43e,y:_0x2865cf}=_0x18241c[_0x4761a2(0x20c)](_0x204a34['FromArray']([_0x4db6bf,_0x174753])),{scaleX:_0x28f279,scaleY:_0x300805}=_0x18241c['getAncestorScale'](),_0x45faf2=_0x18241c[_0x4761a2(0x236)](_0x848fd7[_0x4761a2(0x10c)]),_0x580662=_0x18241c[_0x4761a2(0x396)](_0x204a34[_0x4761a2(0x167)]([_0x4ee43e,_0x2865cf]),_0x45faf2),_0x38aa39=_0x51cd01[_0x4761a2(0xa7)](_0x4db6bf,_0x174753,_0x28f279,_0x300805,_0x580662);((_0x3a9e5e=this[_0x4761a2(0x322)])==null?void 0x0:_0x3a9e5e[_0x4761a2(0x38c)])===_0x38aa39[_0x4761a2(0x38c)]&&((_0x579413=this[_0x4761a2(0x322)])==null?void 0x0:_0x579413[_0x4761a2(0x39b)])===_0x38aa39[_0x4761a2(0x39b)]||this[_0x4761a2(0x1c1)][_0x4761a2(0x13f)](_0xcf9acd=>{const _0x59252f=_0x4761a2;_0xcf9acd[_0x59252f(0x274)](_0x38aa39);});},0x64));});}[_0x144368(0x16b)](_0x4bd1c1,_0x5d7680){const _0x46462d=_0x144368;var _0x3db9fc;const _0xcb20f=(_0x3db9fc=this['_sheetSkeletonManagerService'][_0x46462d(0x1f0)]())==null?void 0x0:_0x3db9fc[_0x46462d(0x2a1)];if(!_0xcb20f)return;const _0x211f9e=this[_0x46462d(0x3b8)]();if(!_0x211f9e)return;this[_0x46462d(0x1c1)][_0x46462d(0x13f)](_0x19d4e9=>{const _0x134efe=_0x46462d;_0x19d4e9[_0x134efe(0x203)]();});const {scene:_0xfb4f7}=_0x211f9e,_0x1ad5db=zr(Array['from'](_0x5d7680['values']()))['map'](_0x534e8a=>{const _0x348cb4=_0x46462d,{color:_0x40cc1f,range:_0x188430,name:_0x39dca1,selection:_0x537dbb,sheetID:_0x20254e}=_0x534e8a,{startColumn:_0x410e34,startRow:_0x2a39f0,endColumn:_0x592a50,endRow:_0x4abd80}=_0x188430,_0x4ac8d1=_0x3ce532(_0x2a39f0,_0x410e34,_0xfb4f7,_0xcb20f),_0x5a5830=_0x3ce532(_0x4abd80,_0x592a50,_0xfb4f7,_0xcb20f),{columnHeaderHeightAndMarginTop:_0x2a3340}=_0xcb20f,{startX:_0x1899bf,startY:_0x290006}=_0x4ac8d1,{endX:_0x4b0cbc,endY:_0x301879}=_0x5a5830,_0x108036=_0x4b0cbc-_0x1899bf,_0x1f916f=_0x301879-_0x290006,_0x3ed14d={'labelPosition':_0x290006-_0x2a3340>=Le?_0x348cb4(0x281):_0x348cb4(0x285),'sheetID':_0x20254e,'range':_0x188430,'color':_0x40cc1f,'name':_0x39dca1,'selection':_0x537dbb,'left':_0x1899bf,'top':_0x290006,'width':_0x108036,'height':_0x1f916f,'evented':!0x1,'zIndex':qr};return new Yr(_0x39dca1,_0x3ed14d);});_0xfb4f7[_0x46462d(0x131)](_0x1ad5db,Wr),this[_0x46462d(0x1c1)]=new Set(_0x1ad5db);}[_0x144368(0xed)](){const _0x54a21b=_0x144368;var _0x1250a1;(_0x1250a1=this['_cursors'])==null||_0x1250a1['forEach'](_0x4d775d=>_0x4d775d[_0x54a21b(0x119)]());}['_getSheetObject'](){return _0x171df8(this['_context']['unit'],this['_context']);}};wt=Jr([mt(0x1,_0x3a563e(_0x5002d5)),mt(0x2,_0x3a563e(pe)),mt(0x3,_0x3a563e(_0x1d8843))],wt);function zr(_0x2f7391){const _0x28654d=_0x144368,_0x256491=new Map();return _0x2f7391[_0x28654d(0x13f)](_0x486e2e=>{const _0x28e070=_0x28654d;if(_0x256491[_0x28e070(0x381)](_0x486e2e[_0x28e070(0x36e)])){const _0x257cb7=_0x256491[_0x28e070(0x33c)](_0x486e2e[_0x28e070(0x36e)]);_0x257cb7[_0x28e070(0xcb)]+=',\x20'+_0x486e2e[_0x28e070(0xcb)];}else _0x256491[_0x28e070(0x2b2)](_0x486e2e[_0x28e070(0x36e)],_0x486e2e);}),Array[_0x28654d(0x366)](_0x256491[_0x28654d(0x176)]());}var N=function(){const _0x53938a=_0x144368;return N=Object['assign']||function(_0x246672){const _0x5fb717=_0x5e18;for(var _0x29087d,_0x5c0142=0x1,_0x1c3b6b=arguments[_0x5fb717(0x405)];_0x5c0142<_0x1c3b6b;_0x5c0142++){_0x29087d=arguments[_0x5c0142];for(var _0x39b4fb in _0x29087d)Object[_0x5fb717(0x147)][_0x5fb717(0xc1)]['call'](_0x29087d,_0x39b4fb)&&(_0x246672[_0x39b4fb]=_0x29087d[_0x39b4fb]);}return _0x246672;},N[_0x53938a(0x403)](this,arguments);},Zr=function(_0x1e2fb3,_0x40828f){const _0x190b28=_0x144368;var _0x4abb84={};for(var _0x1d1615 in _0x1e2fb3)Object['prototype'][_0x190b28(0xc1)][_0x190b28(0x164)](_0x1e2fb3,_0x1d1615)&&_0x40828f[_0x190b28(0x1a6)](_0x1d1615)<0x0&&(_0x4abb84[_0x1d1615]=_0x1e2fb3[_0x1d1615]);if(_0x1e2fb3!=null&&typeof Object[_0x190b28(0x226)]=='function'){for(var _0x4d99a6=0x0,_0x1d1615=Object[_0x190b28(0x226)](_0x1e2fb3);_0x4d99a6<_0x1d1615['length'];_0x4d99a6++)_0x40828f['indexOf'](_0x1d1615[_0x4d99a6])<0x0&&Object[_0x190b28(0x147)]['propertyIsEnumerable'][_0x190b28(0x164)](_0x1e2fb3,_0x1d1615[_0x4d99a6])&&(_0x4abb84[_0x1d1615[_0x4d99a6]]=_0x1e2fb3[_0x1d1615[_0x4d99a6]]);}return _0x4abb84;},Wt=_0x61f5fd(function(_0x6a7dbe,_0x1a0b05){const _0x25927b=_0x144368;var _0x3acf60=_0x6a7dbe[_0x25927b(0x275)],_0xf40b87=_0x6a7dbe['id'],_0x2ab752=_0x6a7dbe[_0x25927b(0x325)],_0x39a22b=_0x6a7dbe[_0x25927b(0x241)],_0x311f96=Zr(_0x6a7dbe,[_0x25927b(0x275),'id','className','extend']),_0x52ed5f=_0x25927b(0x97)['concat'](_0xf40b87,'\x20')[_0x25927b(0x17d)](_0x2ab752||'')[_0x25927b(0x3ed)](),_0x4ba51c=_0x42af29('_'['concat'](to()));return ks(_0x3acf60,''[_0x25927b(0x17d)](_0xf40b87),{'defIds':_0x3acf60[_0x25927b(0x29d)],'idSuffix':_0x4ba51c[_0x25927b(0x303)]},N({'ref':_0x1a0b05,'className':_0x52ed5f},_0x311f96),_0x39a22b);});function ks(_0x53d2ee,_0x4b8f4f,_0x3b4384,_0x173e63,_0x37906f){const _0x69295=_0x144368;return _0x5acb7a(_0x53d2ee[_0x69295(0x386)],N(N({'key':_0x4b8f4f},Qr(_0x53d2ee,_0x3b4384,_0x37906f)),_0x173e63),(eo(_0x53d2ee,_0x3b4384)[_0x69295(0x28b)]||[])[_0x69295(0x192)](function(_0x4000eb,_0x4c1159){const _0x5118f9=_0x69295;return ks(_0x4000eb,''[_0x5118f9(0x17d)](_0x4b8f4f,'-')[_0x5118f9(0x17d)](_0x53d2ee['tag'],'-')[_0x5118f9(0x17d)](_0x4c1159),_0x3b4384,void 0x0,_0x37906f);}));}function Qr(_0x5b4fb0,_0x3df1f4,_0x3921bc){const _0x286ffc=_0x144368;var _0x1b0338=N({},_0x5b4fb0[_0x286ffc(0x118)]);_0x3921bc!=null&&_0x3921bc[_0x286ffc(0x273)]&&_0x1b0338[_0x286ffc(0x1df)]==='colorChannel1'&&(_0x1b0338[_0x286ffc(0x1df)]=_0x3921bc[_0x286ffc(0x273)]);var _0x55ee86=_0x3df1f4[_0x286ffc(0x29d)];return!_0x55ee86||_0x55ee86[_0x286ffc(0x405)]===0x0||(_0x5b4fb0['tag']==='use'&&_0x1b0338[_0x286ffc(0x2d6)]&&(_0x1b0338[_0x286ffc(0x2d6)]=_0x1b0338[_0x286ffc(0x2d6)]+_0x3df1f4[_0x286ffc(0x195)]),Object['entries'](_0x1b0338)[_0x286ffc(0x13f)](function(_0x231913){const _0x1d247b=_0x286ffc;var _0x58d1c5=_0x231913[0x0],_0x1323bf=_0x231913[0x1];typeof _0x1323bf==_0x1d247b(0xf4)&&(_0x1b0338[_0x58d1c5]=_0x1323bf[_0x1d247b(0x19f)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3df1f4['idSuffix'],')')));})),_0x1b0338;}function eo(_0x28e633,_0x50e277){const _0x49a03a=_0x144368;var _0x83aaca,_0x91545c=_0x50e277['defIds'];return!_0x91545c||_0x91545c[_0x49a03a(0x405)]===0x0?_0x28e633:_0x28e633[_0x49a03a(0x386)]===_0x49a03a(0x277)&&(!((_0x83aaca=_0x28e633[_0x49a03a(0x28b)])===null||_0x83aaca===void 0x0)&&_0x83aaca[_0x49a03a(0x405)])?N(N({},_0x28e633),{'children':_0x28e633[_0x49a03a(0x28b)][_0x49a03a(0x192)](function(_0x30d66e){const _0x5d1dd5=_0x49a03a;return typeof _0x30d66e[_0x5d1dd5(0x118)]['id']==_0x5d1dd5(0xf4)&&_0x91545c&&_0x91545c[_0x5d1dd5(0x1a6)](_0x30d66e['attrs']['id'])>-0x1?N(N({},_0x30d66e),{'attrs':N(N({},_0x30d66e[_0x5d1dd5(0x118)]),{'id':_0x30d66e[_0x5d1dd5(0x118)]['id']+_0x50e277[_0x5d1dd5(0x195)]})}):_0x30d66e;})}):_0x28e633;}function to(){const _0x426d28=_0x144368;return Math[_0x426d28(0x40d)]()[_0x426d28(0x272)](0x24)[_0x426d28(0x2b1)](0x2,0x8);}Wt[_0x144368(0x20b)]=_0x144368(0x3c1);var so={'tag':_0x144368(0x390),'attrs':{'fill':_0x144368(0x291),'viewBox':_0x144368(0x2ac),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x144368(0x3d5)},'children':[{'tag':'path','attrs':{'stroke':_0x144368(0x1d0),'d':_0x144368(0x3c3),'strokeLinecap':_0x144368(0xe0),'strokeLinejoin':_0x144368(0xe0),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x144368(0x1e4),'attrs':{'id':_0x144368(0x120)},'children':[{'tag':_0x144368(0x205),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Bs=_0x61f5fd(function(_0x19ed57,_0x28e325){const _0x44ae44=_0x144368;return _0x5acb7a(Wt,Object[_0x44ae44(0x3ec)]({},_0x19ed57,{'id':_0x44ae44(0x352),'ref':_0x28e325,'icon':so}));});Bs[_0x144368(0x20b)]=_0x144368(0x130);var io={'tag':_0x144368(0x390),'attrs':{'fill':'none','viewBox':_0x144368(0xcc),'width':_0x144368(0x246),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x144368(0x1ec)},'children':[{'tag':_0x144368(0x205),'attrs':{'stroke':_0x144368(0x1d0),'d':_0x144368(0x3dd),'strokeLinecap':_0x144368(0xe0),'strokeLinejoin':_0x144368(0xe0),'strokeWidth':1.2}}]},{'tag':_0x144368(0x277),'attrs':{},'children':[{'tag':_0x144368(0x1e4),'attrs':{'id':_0x144368(0x20f)},'children':[{'tag':_0x144368(0x205),'attrs':{'fill':_0x144368(0x320),'d':_0x144368(0x383),'transform':_0x144368(0x161)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Vs=_0x61f5fd(function(_0x5165ec,_0x47b18e){const _0x11d1ee=_0x144368;return _0x5acb7a(Wt,Object[_0x11d1ee(0x3ec)]({},_0x5165ec,{'id':_0x11d1ee(0x145),'ref':_0x47b18e,'icon':io}));});Vs[_0x144368(0x20b)]='OnLineSingle';function Fs(_0x5abef6){const _0x39b7aa=_0x144368;var _0x523853,_0x11fc32,_0x256217='';if(typeof _0x5abef6==_0x39b7aa(0xf4)||typeof _0x5abef6==_0x39b7aa(0x183))_0x256217+=_0x5abef6;else{if(typeof _0x5abef6==_0x39b7aa(0x31e)){if(Array[_0x39b7aa(0x384)](_0x5abef6)){var _0x3d2005=_0x5abef6[_0x39b7aa(0x405)];for(_0x523853=0x0;_0x523853<_0x3d2005;_0x523853++)_0x5abef6[_0x523853]&&(_0x11fc32=Fs(_0x5abef6[_0x523853]))&&(_0x256217&&(_0x256217+='\x20'),_0x256217+=_0x11fc32);}else{for(_0x11fc32 in _0x5abef6)_0x5abef6[_0x11fc32]&&(_0x256217&&(_0x256217+='\x20'),_0x256217+=_0x11fc32);}}}return _0x256217;}function no(){const _0x34b9b1=_0x144368;for(var _0xad9b4f,_0x36247d,_0x5f0ce5=0x0,_0x52e685='',_0x5d9fac=arguments[_0x34b9b1(0x405)];_0x5f0ce5<_0x5d9fac;_0x5f0ce5++)(_0xad9b4f=arguments[_0x5f0ce5])&&(_0x36247d=Fs(_0xad9b4f))&&(_0x52e685&&(_0x52e685+='\x20'),_0x52e685+=_0x36247d);return _0x52e685;}const ro=_0x144368(0x330),oo=_0x144368(0x407),ao='univer-online-status',co=_0x144368(0x1fb),ho='univer-offline',we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x35255e){const _0x1d4d48=_0x144368;switch(_0x35255e){case w['OFFLINE']:return _0x1d4d48(0x12b);case w[_0x1d4d48(0xc0)]:return _0x1d4d48(0x33d);case w[_0x1d4d48(0x26a)]:return _0x1d4d48(0x24c);case w[_0x1d4d48(0x14b)]:return'collabStatus.notCollab';case w[_0x1d4d48(0x3ab)]:case w[_0x1d4d48(0x2d2)]:case w[_0x1d4d48(0x3bf)]:return _0x1d4d48(0x374);case w[_0x1d4d48(0xf9)]:return _0x1d4d48(0x235);}}function _o(_0x455916){const _0x437380=_0x144368,{status$:_0x111503}=_0x455916,_0x162383=_0x301f4a(_0x111503,w[_0x437380(0x14b)]),_0x33a1bc=_0x2377e0(_0xa2267e),_0x3e0e36=_0x2377e0(ce),_0x9726e2=_0x162383!==w[_0x437380(0x3f6)],_0x10fe3c=_0x33a1bc['t'](lo(_0x162383)),_0x47ba33=no(we[_0x437380(0x28f)],{[we[_0x437380(0x3b7)]]:_0x9726e2,[we[_0x437380(0x311)]]:!_0x9726e2}),_0x4ecc79=_0x9726e2?_0x1f397a[_0x437380(0x108)](Vs,null):_0x1f397a[_0x437380(0x108)](Bs,null),_0x8b947d=_0xac95f7(()=>{const _0x2cef36=_0x437380;_0x9726e2||_0x3e0e36[_0x2cef36(0x249)]();},[_0x9726e2,_0x3e0e36]);function _0x23dfd3(){const _0x109746=_0x437380;return _0x1f397a['createElement'](_0x109746(0x299),{'className':_0x47ba33,'onClick':_0x8b947d},_0x1f397a[_0x109746(0x108)]('div',{'className':we['onlineStatusIcon']},_0x4ecc79),_0x1f397a[_0x109746(0x108)](_0x109746(0x299),{'className':we[_0x109746(0x3d2)]},_0x10fe3c));}return _0x9726e2?_0x23dfd3():_0x1f397a[_0x437380(0x108)](_0x2951f2,{'title':_0x33a1bc['t'](_0x437380(0x14a))},_0x23dfd3());}var uo=Object['defineProperty'],fo=Object[_0x144368(0x3e4)],mo=(_0x152a44,_0x386042,_0x5a07e3,_0x412934)=>{for(var _0x2d5695=_0x412934>0x1?void 0x0:_0x412934?fo(_0x386042,_0x5a07e3):_0x386042,_0x550c41=_0x152a44['length']-0x1,_0x581097;_0x550c41>=0x0;_0x550c41--)(_0x581097=_0x152a44[_0x550c41])&&(_0x2d5695=(_0x412934?_0x581097(_0x386042,_0x5a07e3,_0x2d5695):_0x581097(_0x2d5695))||_0x2d5695);return _0x412934&&_0x2d5695&&uo(_0x386042,_0x5a07e3,_0x2d5695),_0x2d5695;},He=(_0x248aa8,_0x476ffd)=>(_0x5ebc91,_0x1f602f)=>_0x476ffd(_0x5ebc91,_0x1f602f,_0x248aa8);let Ue=class extends _0x114c09{constructor(_0x1d7a7b,_0x4083c8,_0x2f7005,_0x416f7e){const _0x1c3fe3=_0x144368;super(),l(this,_0x1c3fe3(0x1e1),new _0x153d59(w['NOT_COLLAB'])),(this[_0x1c3fe3(0x3a1)]=_0x1d7a7b,this[_0x1c3fe3(0x216)]=_0x4083c8,this[_0x1c3fe3(0xb7)]=_0x2f7005,this['_collaborationController']=_0x416f7e,this[_0x1c3fe3(0x260)](),this[_0x1c3fe3(0xf6)]());}[_0x144368(0xf6)](){const _0x1bbb8b=_0x144368;this[_0x1bbb8b(0x133)](this[_0x1bbb8b(0x3a1)][_0x1bbb8b(0x318)][_0x1bbb8b(0x33b)](_0x42e548(()=>{const _0x1e69a8=_0x1bbb8b,_0x4c1ebd=this[_0x1e69a8(0x3a1)][_0x1e69a8(0x310)]();return _0x4c1ebd?this[_0x1e69a8(0xcd)][_0x1e69a8(0x1b8)](_0x4c1ebd[_0x1e69a8(0x113)]()):_0x4c8895(null);}),_0x42e548(_0x5bd596=>_0x5bd596?_0x5bd596[_0x1bbb8b(0x2df)]:_0x4c8895(w[_0x1bbb8b(0x14b)])))['subscribe'](_0x56a310=>{const _0x479345=_0x1bbb8b;this[_0x479345(0x1e1)][_0x479345(0x105)](_0x56a310);}));}[_0x144368(0x260)](){const _0x4c5696=_0x144368;this[_0x4c5696(0x133)](this['_uiPartsService']['registerComponent'](_0x1cf6ce[_0x4c5696(0x1fc)],()=>_0x867c35(go({'status$':this[_0x4c5696(0x1e1)][_0x4c5696(0x3bd)]()}),this[_0x4c5696(0xb7)])));}};Ue=mo([He(0x0,_0x2d956c),He(0x1,_0x4134bb),He(0x2,_0x3a563e(_0x54963c)),He(0x3,_0x3a563e(Ae))],Ue);function go(_0x362d38){const {status$:_0x236aa0}=_0x362d38;return function(){const _0x76a3bb=_0x5e18;return _0x1f397a[_0x76a3bb(0x108)](_o,{'status$':_0x236aa0});};}const Ws=_0x372366('uni.network.url-service');var So=Object[_0x144368(0x14c)],po=Object[_0x144368(0x3e4)],vo=(_0x304007,_0x5197b0,_0x22e488,_0x50fe62)=>{const _0xf6b0ce=_0x144368;for(var _0x518305=_0x50fe62>0x1?void 0x0:_0x50fe62?po(_0x5197b0,_0x22e488):_0x5197b0,_0x4957fc=_0x304007[_0xf6b0ce(0x405)]-0x1,_0x1a1ee0;_0x4957fc>=0x0;_0x4957fc--)(_0x1a1ee0=_0x304007[_0x4957fc])&&(_0x518305=(_0x50fe62?_0x1a1ee0(_0x5197b0,_0x22e488,_0x518305):_0x1a1ee0(_0x518305))||_0x518305);return _0x50fe62&&_0x518305&&So(_0x5197b0,_0x22e488,_0x518305),_0x518305;},me=(_0x4a132a,_0x42b67)=>(_0x15a34a,_0x35b8f8)=>_0x42b67(_0x15a34a,_0x35b8f8,_0x4a132a);let qe=class extends _0xa18742{constructor(_0x219ed2,_0x34c8e6,_0x3b384e,_0x1d01c5,_0x2a0aad,_0x4b35c6){const _0x421577=_0x144368;super(),this[_0x421577(0x259)]=_0x219ed2,this['_logService']=_0x34c8e6,this['_commandService']=_0x3b384e,this[_0x421577(0x2c3)]=_0x1d01c5,this[_0x421577(0x1d4)]=_0x2a0aad,_0x4b35c6?_0x4b35c6==null||_0x4b35c6['whenReady']()['then'](()=>this[_0x421577(0x15d)]()):(this['_logService'][_0x421577(0x392)](_0x421577(0xf5),_0x421577(0xd7)),this[_0x421577(0x15d)]());}async[_0x144368(0x15d)](){const _0x448e9b=_0x144368,_0x23066b=this['_urlService'][_0x448e9b(0x2f9)](_0x448e9b(0x22c)),_0x3a778a=this[_0x448e9b(0x259)][_0x448e9b(0x2f9)](_0x448e9b(0x103));if(!_0x23066b||!_0x3a778a){this['_logService'][_0x448e9b(0x392)]('[DataLoaderController]',_0x448e9b(0x39a));return;}switch(Number(_0x3a778a)){case H[_0x448e9b(0x295)]:{const _0x5c0112=await this[_0x448e9b(0x2e1)](_0x23066b);this['_setupSubUnitSync'](_0x5c0112);break;}case H[_0x448e9b(0x306)]:{await this[_0x448e9b(0xd5)](_0x23066b);break;}default:{this[_0x448e9b(0x193)][_0x448e9b(0x30a)](_0x448e9b(0xf5),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x144368(0x393)](_0x5c0bac){const _0x3cd183=_0x144368;await this[_0x3cd183(0xe4)](_0x5c0bac),_0x5c0bac[_0x3cd183(0x14f)][_0x3cd183(0x33b)](_0x592099(this[_0x3cd183(0x3e8)]))[_0x3cd183(0x1c7)](_0x4ce888=>{const _0x5bfae6=_0x3cd183;_0x4ce888&&this[_0x5bfae6(0x202)](_0x4ce888);}),this[_0x3cd183(0x259)][_0x3cd183(0x1b5)][_0x3cd183(0x33b)](_0x592099(this[_0x3cd183(0x3e8)]))[_0x3cd183(0x1c7)](()=>this[_0x3cd183(0xe4)](_0x5c0bac));}[_0x144368(0x202)](_0x194004,_0x56aa62=!0x1){const _0x5bcecf=_0x144368,_0x2f9b77=this['_urlService'][_0x5bcecf(0x2f9)]('subunit');_0x194004['getSheetId']()!==_0x2f9b77&&this[_0x5bcecf(0x259)][_0x5bcecf(0x25c)](_0x5bcecf(0xef),_0x194004[_0x5bcecf(0x25f)](),_0x56aa62);}async[_0x144368(0xe4)](_0x2e5442){const _0x2c8156=_0x144368;var _0x14d58f;const _0x33b7c2=this[_0x2c8156(0x259)]['getParam']('subunit');if(!_0x33b7c2||!_0x2e5442[_0x2c8156(0x387)](_0x33b7c2)){const _0x5c2d16=_0x2e5442['getUnhiddenWorksheets']()[0x0],_0x1e3190=_0x2e5442[_0x2c8156(0x387)](_0x5c2d16);if(!_0x1e3190)return;this[_0x2c8156(0x202)](_0x1e3190,!0x0),await this[_0x2c8156(0x3da)]['executeCommand'](_0x1a1d85['id'],{'unitId':_0x2e5442[_0x2c8156(0x113)](),'subUnitId':_0x5c2d16});return;}((_0x14d58f=_0x2e5442[_0x2c8156(0x30b)]())==null?void 0x0:_0x14d58f[_0x2c8156(0x25f)]())!==_0x33b7c2&&await this['_commandService'][_0x2c8156(0x1a5)](_0x1a1d85['id'],{'unitId':_0x2e5442[_0x2c8156(0x113)](),'subUnitId':_0x33b7c2});}async[_0x144368(0x2e1)](_0x40ca9f){const _0x2756b0=_0x144368;let _0x3cb703=0x0;const _0x804b37=await this[_0x2756b0(0x2c3)][_0x2756b0(0x156)](_0x40ca9f);return _0x804b37&&(_0x804b37[_0x2756b0(0x32a)]||_0x804b37[_0x2756b0(0x3f0)][_0x2756b0(0x405)]!==0x0)&&(_0x3cb703=_0x804b37[_0x2756b0(0x39c)]),_0x3cb703===0x0&&this[_0x2756b0(0x193)][_0x2756b0(0x392)](_0x2756b0(0xf5),_0x2756b0(0x36b)),this[_0x2756b0(0x1d4)][_0x2756b0(0x39f)](_0x40ca9f,_0x3cb703);}async[_0x144368(0xd5)](_0xfaf3cd){const _0x5a96c1=_0x144368;let _0x40c171=0x0;const _0x21e2da=await this[_0x5a96c1(0x2c3)][_0x5a96c1(0x156)](_0xfaf3cd);return _0x21e2da&&(_0x21e2da['awaitingChangeset']||_0x21e2da[_0x5a96c1(0x3f0)][_0x5a96c1(0x405)]!==0x0)&&(_0x40c171=_0x21e2da[_0x5a96c1(0x39c)]),_0x40c171===0x0&&this[_0x5a96c1(0x193)][_0x5a96c1(0x392)]('[DataLoaderController]',_0x5a96c1(0x36b)),this[_0x5a96c1(0x1d4)][_0x5a96c1(0x375)](_0xfaf3cd,_0x40c171);}};qe=vo([me(0x0,Ws),me(0x1,_0x4192f8),me(0x2,_0x401dc7),me(0x3,_0x3a563e(D)),me(0x4,_0x3a563e(_0x3db305)),me(0x5,_0x2c8260(_0x491dd1))],qe);var Io=Object[_0x144368(0x14c)],Eo=Object[_0x144368(0x3e4)],Co=(_0x347ecf,_0x4833d9,_0x511ce8,_0x47cd62)=>{const _0x1e416a=_0x144368;for(var _0x5ed5d5=_0x47cd62>0x1?void 0x0:_0x47cd62?Eo(_0x4833d9,_0x511ce8):_0x4833d9,_0x8b4c37=_0x347ecf[_0x1e416a(0x405)]-0x1,_0xde509d;_0x8b4c37>=0x0;_0x8b4c37--)(_0xde509d=_0x347ecf[_0x8b4c37])&&(_0x5ed5d5=(_0x47cd62?_0xde509d(_0x4833d9,_0x511ce8,_0x5ed5d5):_0xde509d(_0x5ed5d5))||_0x5ed5d5);return _0x47cd62&&_0x5ed5d5&&Io(_0x4833d9,_0x511ce8,_0x5ed5d5),_0x5ed5d5;},fs=(_0x5ed561,_0x4c0507)=>(_0x3b4456,_0x11ac5b)=>_0x4c0507(_0x3b4456,_0x11ac5b,_0x5ed561);const bo=_0x144368(0x228),To=_0x144368(0x34f);let ze=class extends _0x114c09{constructor(_0x550f46,_0x2d5057){const _0x45da88=_0x144368;super(),this[_0x45da88(0x3a1)]=_0x550f46,this['_configService']=_0x2d5057,this[_0x45da88(0x15d)]();}[_0x144368(0x15d)](){const _0x39b7af=_0x144368;this['disposeWithMe'](this[_0x39b7af(0x3a1)][_0x39b7af(0x318)]['subscribe'](()=>{const _0x467d87=_0x39b7af;var _0x1f1760;const _0x35a6d5=this[_0x467d87(0x3a1)][_0x467d87(0x310)]();let _0xe62857=(_0x1f1760=this['_configService'][_0x467d87(0x2a7)](bo))!=null?_0x1f1760:To;_0x35a6d5 instanceof _0xb47711&&(_0xe62857=_0x35a6d5[_0x467d87(0xcb)]),document[_0x467d87(0x158)]=_0xe62857;}));}};function _0x1d0c(){const _0x4f3954=['roomMembers','_renderManagerService','catch','_drawTextRange','setItem','PERMISSION_DENIED','saveOfflineData','getCurrentRevOfUnit','getParam','socket\x20close','_state$','_updateStatus','_userManagerService','_draw','_http','InsertRangeMoveRightCommandId','clearInterval','_cursorInfo$','current','method','_entities','UNIVER_DOC','RECV','closeSession','_drawRectRange','error','getActiveSheet','changesets','addEventListener','_tryReconnect','isPermissionRej','getFocusedUnit','offline','originalMeta','toggleOffline','RemoveRowCommandId','_change$','_config','range','focused$','replaceState','allowed','_ensureSubject','InsertRangeMoveDownCommandId','put','object','syncEditingCollabCursor','#fff','capture','_lastPointer','onPointerMove$','socket\x20open.','className','currentTheme$','collaboration_new_changeset','APPLY_REVISION_CONFILICT','onTransformSelections','awaitingChangeset','getDocRanges','_sessions','setActiveRange','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_joinRoom','univer-online-status-icon','_shouldReportTelemetry','closePath','NEW_CHANGESETS','baseRev','_localeService','_decreaseWaiting','setTimeout','SNAPSHOT_URL_KEY','getDeserializedSheetBlock','setAlpha','pipe','get','collabStatus.conflict','_retryCount','storage','YUUMI_RATE_OVER_LIMIT','_transformRemoteChangesetByIMECache','MSG_FOR_ERROR','collaboration-session-retry','_labelPosition','ranges','failed\x20to\x20apply\x20missed\x20changesets!','_clearTimeoutTimer','_undoStacks','UUID','_entityInit$','pending','toRgbString','_sheetTransformSelectionsService','_clearOtherTimers','Univer','getCollabCursors$','_handleEvent','off-line-single','COLLAB_SUBMIT_CHANGESET_URL','getUnitType','_cachedData','SNAPSHOT_HAS_BEEN_REMOVED','setInterval','Error','color','signUrlServerUrl','onRemoteRej','status','_onMessage','uploadFileServerUrl','_onLocalMutation','shouldCloseConn','routeKey','HEARTBEAT','_transformSelections','not_collab','replaceTextRanges','from','now','LIVESHARE_NEW_HOST','onRemoteChangeset','getTypeOfUnitDisposed$','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','/fetchmissing?from=','HttpImport','selection','LICENSE_EXPORT_SIZE_EXCEEDED','actions','getImageSourceCache','UNIVER_SLIDE','result','collabStatus.syncing','loadDoc','duration','roomMembers$','[FetchMissState]','onPointerEnter$','_waitForHeartbeatResponse','fetchMiss','collabWebSocketUrl','deepClone','send','_getCurrentRevision','_sendHeartbeatTimer','has','getUndoRedoMutationParamsCache','M0\x200H16V16H0z','isArray','_initModules','tag','getSheetBySheetId','registerRenderModule','transformMutation','_roomMembers$','_showConflictNotification','column','href','[CollaborationSession]','appendMutation','svg','_getRedoStack','debug','_setupSubUnitSync','patch','_ws','getVpScrollXYInfoByPosToVp','find','selections','hide','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','row','rev','[OfflineState]:\x20received\x20rejection.','incrementRevOfUnit','loadSheet','_replayCachedMutations','_univerInstanceService','_socket$','...','_stopTelemetryCollaborationNewChangeset','getValue','_scheduleTimestamp','disableLocalCache','_onUserJoin','text','exhaustSavingTask','PENDING','image/gif','PSEUDO_FETCH_MISSING_RESULT','fetch_missing','getRoom','commentUpdate$','doc.mutation.rich-text-editing','_themeService','_clearLocalCache','_submitChangeset','_eventUnsubscribe','removeMember','online','_getSheetObject','CHANGESET_REJ','min','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_range','asObservable','font','AWAITING_WITH_PENDING','verdancy600','UniverIcon','SUCCUSS','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','size','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_sheetSkeletonManagerService','transformChangesets','update','UNRECOGNIZED','Warning','_createSocket','override','withCredentials','collaMsg','_initCloseConn','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','save','onlineStatusTitle','_updateLocalCursor','EXCHANGE_SIGN_URL_SERVER_URL_KEY','url(#off-line-single_clip0_910_343)','_telemetryService','/unit/','_transformPreviousActiveRange','reduce','_commandService','\x20in\x20_schedule.','updateCursorEvent','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','_render','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_syncEditingCollabCursorService','c1Prime','_transformUndoRedoStack','_getMergeRange','getOwnPropertyDescriptor','FETCH_MISSING','_startSheetCollabCursor','_session','dispose$','joinRsp','collab-text-range-','startRow','assign','trim','_remoteChangesetQueue','_collabCursorController','mutations','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','unitId','removeParam','_selfUnitIDs','_clearHeartbeatTimer','OFFLINE','_substituteRedoStack','NO_OTHER_CLIENTS_EDITING','onCommandExecuted','_hovered','updatePermissionObjEvent','_getAnchorBounding','_shapes','_candidateSocket','push','COMPRESS_MUTATION_APPLY','cursorInfo$','collabCursorState$','apply','_snapshotServerService','length','updateCollaborator','univer-online-status-title','_getUndoStack','1184880uPoObw','383132LqJrEq','_substituteUndoStack','_saveTaskMap','random','_incrementRevisionNumber','_listenToOnlineEvent','max','onStarting','objectType','univerjs-icon\x20univerjs-icon-','_clearRedo','_startTelemetryCollaborationNewChangeset','startsWith','_docTransformSelectionsService','UPDATE_PERMISSION_OBJ','textRanges','_registerRenderDependencies','_handleJoinEvent','pushState','contains','CHANGESET_REVISION_CONFILICT','roomInfos','/universer-api/snapshot','startTime','_revisionService','getCellPositionByOffset','_localStorageService','_scheduleCollaborationTimeoutTimer','ERROR_EXCEED_SIZE','NOT_FOUND','_colorAssignService','_registerDependencies','_startDocCollabCursor','symbol','_color','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','requestParams','_setupBeforeClosingHandler','event$','rgba(255,\x20255,\x20255,\x200.01)','reject','_injector','_collabCursorState$','stringify','conflict.content','CONNECTOR_DATA_TOO_LARGE','sheetId','MoveRangeCommandId','/new_changes','drawWith','CONFLICT','hasOwnProperty','post','_toggleOnline','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_onConflict','sessionStatus','_updateState','_removeClearOtherTimer','_collaborationPaused','/object/','name','0\x200\x2017\x2016','_collaborationController','resend','\x0aAfter:\x20','/universer-api/stream/file/upload','#FFF','getOffsetConfig','[CollaborationSessionService]','[PendingState]:\x20received\x20acknowledgement.','_loadDoc','currentSkeleton$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','resize','LIVESHARE_FETCH_OPERATIONS','findNodePositionByCharIndex','history','USERS_LEAVE','_schedule','LICENSE_DISTRO_REJECTED','_clearCollaborationTimeoutTimer','round','_id','FAIL','3sHIUIu','_updateSubUnitFromURLParams','responseType','_socketReady','reverse','onlyLocal','stopTime','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','collaboratorID','getSkeleton','_removeCollabCursors','transformSelections','subunit','AUTHZ_URL_KEY','createCollaborator','_hover','YUUMI_UNABLE_LOAD_URL','string','[DataLoaderController]','_initStatusListener','session.collaboration-timeout','listRoles','SYNCED','_onJoinRoomEvent','newCsEvent','HELLO','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','transformByState','show','_replaceFileID','message$','544691cnXehz','type','_messageService','next','_roomMembers','TOO_MANY_REQUESTS','createElement','_handleHeartbeatEvent','_anchorDot','_exhaustRemoteChangesetQueue','VIEW_MAIN','/role','_getCtorByUniverType','collaboration-client.config','getRangePointData','includes','_docSyncEditingCollabCursorService','getUnitId','save\x20fail\x20reason\x20is\x20','saveChangeset','data','setShapeProps','attrs','dispose','LOCAL_CACHE_INTERVAL','_commentUpdate$','_initCommandExecutedListener','_instanceService','_commentService','COMMENT_UPDATE','off-line-single_clip0_910_343','visibilityState','getMember','[SyncedState]:\x20received\x20acknowledgement.','_refreshCollabCursors','_transformService','requireSession','x-univer-host','permission.title','_scene','DeleteRangeMoveUpCommandId','collabStatus.offline','/universer-api/comb','YUUMI_SUBSCRIPTION_NOT_FOUND','/universer-api/snapshot/','location','OffLineSingle','addObjects','_initResize','disposeWithMe','_pendingMutations','_onRemoteACK','all','c2Prime','getImage','2026719jDASbw','snapshotServerUrl','authzUrl','_unitStatus','SEND_CHANGESET_TIMEOUT','enableLocalCache','forEach','fetchThroughInterceptors','engine','image/jpeg','joinEvent','image/jpg','on-line-single','setCurrentUser','prototype','action','_cursor','collab-client.tooltip.reconnect','NOT_COLLAB','defineProperty','_scheduleSaving','IDLE','activeSheet$','_applyRemoteChangeset','/universer-api/file/{fileID}/sign-url','CHANGESET_ACK','_textBubble','downloadEndpointUrl','_sessionStatus$','loadOfflineData','INGEST','title','complete','workbook','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[CollaborationUndoRedoService]','_init','registerHTTPInterceptor','ONLINE','_getSendChangesetTimeout','translate(.97)','_unitID','COLLAB_WEB_SOCKET_URL','call','putCollaborators','_initMergeInterceptor','FromArray','infoRsp','body','_singleActiveUnitService','_updateCollabCursors','LICENSE_MAX_UNITS_EXCEEDED','ws://127.0.0.1:8000/universer-api/comb/connect','UNIVER_COLLABORATION_CLIENT_PLUGIN','_clearScheduledTask','_name','connection\x20error','session','_updateLocalCache','key','_colorIndex','values','MUTATION','objectActions','SNAPSHOT_INVALID_SNAPSHOT','_assignedColors','_sendingTimer','newValue','concat','getRenderById','_hideTimer','univer-pro.collaboration-client.single-active-unit-service','_httpService','getTypeOfUnitAdded$','number','Undefined','_syncEditingCollabCursor','listCollaborators','_timeoutTimer','fillRule','objects','onload','_disableEditing','_unlockTransition','append','_memberService','_permissionService','addImageSourceCache','_startCollaboration','map','_logService','liveShareNewHost','idSuffix','6HVHxYO','localeService','commentUpdateEvent','moveTo','isEditing','unknown','_collaborationTimeoutTimer','getCollabEntity','subUnitId','replace','transform','COMPRESS_MUTATION_SEND','_compressMutationService','registerBeforeClose','UnitSnapshot','executeCommand','indexOf','UnitEmbedded','permission.content','_disabled','PERMISSION_REJ','LIVESHARE_TERMINATE','_cursorShapes','transformMutationsWithChangeset','updateOfflineData','\x0aCurrent:\x20','resolve','[CollaborationState]:\x20apply\x20error!','parse','LEAVE','onMissingChangesets','urlChange$','onTransformRemoteChangesetByIMECache','unload','getCollabEntity$','_docSkeletonManagerService','csAckEvent','ACTIVE_UNIT_EVENT_CHANNEL','transformUndoRedo','getMemberID','\x20to\x20','socket$','onRendered','_cursors','pauseCollaboration','INTERNAL_ERROR','OTHER_CLIENTS_EDITING','/object','_executeRemoteChangeset','subscribe','InsertColCommandId','session.connection-failed','_state','_createHandler','_getSaveTimeout','_sendHeartbeat','socketService','csRejEvent','currentColor','_drawAnchor','_collaborationSessionService','getInterceptPoints','_snapshotService','black','toggleOnline','_tryEnsureSocket','_onOffline','&source=','submit\x20changeset\x20error!','synced','m1Prime','LIVESHARE_REQUEST_HOST','encode','fill','APPLY_REJECT','_status$','error$','endRow','clipPath','UNDEFINED','_telemetryInfo','collaborators','deleteCollaborator','list','conflict.title','onStateChange','url(#on-line-single_clip0_910_349)','UNAUTHENTICATED','APPLY_NON_SEQUENTIAL_REVISION','telemetry\x20info\x20is\x20not\x20initialized','getCurrent','_handler','cursorInfo','transformIMECache','cmd','_refRangeService','collaboration.single-unit.warning','restore','clear','searchParams','createSocket','univer-online','HEADER_MENU','startColumn','state','_checkMissing','_getScale','_initUnitPermissionChange','_updateURLWithCurrentState','makeDirty','_send','path','onPointerLeave$','_imageSourceCache','_queuedRemoteChangesets','_handleLeaveEvent','saveSnapshot','displayName','getRelativeToViewportCoord','beginPath','loginUrlKey','on-line-single_clip0_910_349','_transformIMECache','SHOULD_CLOSE_CONN','addObject','?size=','memberID','_type','_uiPartsService','_socketMessageSubscription','delete','close$','HttpExport','getWorkbookSelections','_docTransformIMECacheService','getActiveRange','_onUserLeave','[UniverCollaborationClientPlugin]','fetchMissingChangesets','unit-cache-','hovered','UNIVER_UNKNOWN','_scheduleHeartbeat','params','getOwnPropertySymbols','_onConnectionFailed','DEFAULT_FILE_NAME','headers','collab-text-anchor-','clearTimeout','unit','_throwTelemetryCollaborationNewChangeset','_configService','url','_handleHover','collaboration-client.offline-data-not-saved','2030792kwZkRG','_context','fillText','collabStatus.synced','getViewport','userID','_isPermissionRej','onTransformIME','fromCollab','setWaitCount','open$','fillStyle','_createInitialState','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','confirm','extend','editing\x20status\x20changed\x20to','leaveEvent','_onConnectionOpen','revision','1em','_acknowledgedAwaitingChangeset','_fetchMissChangesets','reconnect','unitID','ALREADY_EXISTS','collabStatus.fetchMiss','_event$','_retryConnectingTimer','USERS_ENTER','fetching\x20missing\x20changesets\x20from\x20','COMPLETION_FINISHED','/resources','_removeRoom','collaboration.closeRoom','UNIVER_PROJECT','interceptor','getCurrentSelections','HEARTBEAT_INTERVAL','_urlService','_onRefRangeChange','saveImage','setParam','_toggleOffline','_backgroundColor','getSheetId','_initStatusComponent','SUBMIT_CHANGESET','registerOnClose','updatePermissionPoint','measureText','subscribeEvent','split','_members','transformStack\x20failed!','target','FETCH_MISS','/allowed','_scheduleClearOtherTimer','_getDownloadEndpointURL','backgroundColor','_getUploadFileURL','_createInitialStateImpl','awaiting','toString','colorChannel1','onMouseMove','icon','triggerDblclick','defs','28YUAooH','disposeUnit','_waitCount','_initEventListeners','ERROR_IMAGE','onRemoteAck','eventID','_lockTransition','close','top','add','SNAPSHOT_SERVER_URL_KEY','getCurrentUser','bottom','height','/collaborator','init','&assign=','_onCombEvent','children','collab-rect-range-','getMergeData','_awaitingChangeset','onlineStatus','registerRefRange','none','assignAColorForMemberID','labelPosition','awaiting_with_pending','UNIVER_SHEET','_collabSessionService','sendChangesetTimeout','JOIN','div','getCurrentUnitForType','_onRemoteChangeset','Error\x20on\x20receiving\x20event','defIds','_redoStacks','/universer-api/authz','getUnit','skeleton','popstate','_document','enableAuthServer','_docSkeleton','encodeURIComponent','getConfig','onCommentUpdate','_undoRedoService','_transformUndoredo','code','0\x200\x2016\x2016','BASE64','createInstance','JOINING','_anchor','substring','set','LICENSE_IMPORT_SIZE_EXCEEDED','_getLoginPath','[CollaborationEntity]','_online','src','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_heartbeatTimer','roles','generateRandomId','_beforeCloseService','/-/object/list','_socket','15710XAuida','objectID','_unitOnClients','_transitionLocked','_localCacheService','onMissedChangesetFetched','UNKNOWN_CMD','transformRemoteChangeset','DeleteRangeMoveLeftCommandId','/block/','UPDATE_CURSOR','m2Prime','enableOfflineEditing','sessionStatus$','editingUnit','_HTTPService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','isActive','onSendChangeset','AWAITING','_listenToOfflineEvent','lineTo','onSyncEditingCollabCursor','xlink:href','_getAPIPrefix','_socketService','_onCursorDelete','_transformStack','_saveCache','updateMember','[PendingState]:\x20received\x20rejection.','_onRecvEvent','status$','POST','_loadSheet','_initRequestHeader','380965tgkyEk','getTime','/-/object/-/batch_allowed','width','_getAPIPrefixPath','sheets','[OfflineState]:\x20received\x20changeset.','unsubscribe','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','arc','_onCursorUpdate','FileId','_onRemoteRejected','_rescheduleHeartbeat'];_0x1d0c=function(){return _0x4f3954;};return _0x1d0c();}ze=Co([fs(0x0,_0x2d956c),fs(0x1,_0x7d1a6e)],ze);var Ro=Object[_0x144368(0x14c)],Oo=Object[_0x144368(0x3e4)],Do=(_0x3e931f,_0x48822c,_0x2e61c1,_0x1fe578)=>{const _0x3c2287=_0x144368;for(var _0x5334c6=_0x1fe578>0x1?void 0x0:_0x1fe578?Oo(_0x48822c,_0x2e61c1):_0x48822c,_0x19b74e=_0x3e931f[_0x3c2287(0x405)]-0x1,_0x4ff625;_0x19b74e>=0x0;_0x19b74e--)(_0x4ff625=_0x3e931f[_0x19b74e])&&(_0x5334c6=(_0x1fe578?_0x4ff625(_0x48822c,_0x2e61c1,_0x5334c6):_0x4ff625(_0x5334c6))||_0x5334c6);return _0x1fe578&&_0x5334c6&&Ro(_0x48822c,_0x2e61c1,_0x5334c6),_0x5334c6;},gt=(_0x53dbee,_0x7f98b4)=>(_0x15b31f,_0x3344ec)=>_0x7f98b4(_0x15b31f,_0x3344ec,_0x53dbee);let Ze=class{constructor(_0x17e4db,_0x9542a,_0xa52107){const _0x275d42=_0x144368;this[_0x275d42(0x22e)]=_0x17e4db,this[_0x275d42(0x181)]=_0x9542a,this['localeService']=_0xa52107,this['init']();}[_0x144368(0x288)](){const _0x3ff179=_0x144368;this['_httpService'][_0x3ff179(0x15e)]({'priority':0x1,'interceptor':(_0x572f14,_0x3711f6)=>_0x3711f6(_0x572f14)[_0x3ff179(0x33b)](_0x828ec7(async _0x4b8432=>{const _0x54c028=_0x3ff179,_0x34dbdf=_0x4b8432;if(_0x34dbdf[_0x54c028(0x35c)]===0x191&&window[_0x54c028(0x240)](this[_0x54c028(0x197)]['t']('auth.needGotoLoginAlert'))){const _0x2f5540=window[_0x54c028(0x2a6)](window[_0x54c028(0x12f)][_0x54c028(0x38d)]);window[_0x54c028(0x12f)]['href']=this[_0x54c028(0x2b4)]()+'?url='+_0x2f5540;}return _0x34dbdf;}))});}[_0x144368(0x2b4)](){const _0x55bbdf=_0x144368;var _0x2a37b8,_0x52e776;const _0x1ae0c5=this[_0x55bbdf(0x22e)][_0x55bbdf(0x2a7)](wn),_0x48771f=this[_0x55bbdf(0x22e)][_0x55bbdf(0x2a7)](L);return(_0x52e776=(_0x2a37b8=_0x48771f==null?void 0x0:_0x48771f[_0x55bbdf(0x20e)])!=null?_0x2a37b8:_0x1ae0c5)!=null?_0x52e776:Pn;}};Ze=Do([gt(0x0,_0x7d1a6e),gt(0x1,_0x3a563e(_0xb342b)),gt(0x2,_0x3a563e(_0xa2267e))],Ze);var wo=Object[_0x144368(0x14c)],Po=Object[_0x144368(0x3e4)],yo=(_0x2634c6,_0x30ef17,_0x1c5183,_0x19c336)=>{for(var _0x31ca65=_0x19c336>0x1?void 0x0:_0x19c336?Po(_0x30ef17,_0x1c5183):_0x30ef17,_0x4555c3=_0x2634c6['length']-0x1,_0x7a5027;_0x4555c3>=0x0;_0x4555c3--)(_0x7a5027=_0x2634c6[_0x4555c3])&&(_0x31ca65=(_0x19c336?_0x7a5027(_0x30ef17,_0x1c5183,_0x31ca65):_0x7a5027(_0x31ca65))||_0x31ca65);return _0x19c336&&_0x31ca65&&wo(_0x30ef17,_0x1c5183,_0x31ca65),_0x31ca65;},ms=(_0x4c5887,_0x47fd72)=>(_0x3ffa23,_0x5cecbe)=>_0x47fd72(_0x3ffa23,_0x5cecbe,_0x4c5887);const No=_0x144368(0xf0),Uo=_0x144368(0x29f);let Pt=class extends _0x114c09{constructor(_0x46e118,_0x569e57){const _0x15f667=_0x144368;super(),this[_0x15f667(0x2ce)]=_0x46e118,this[_0x15f667(0x22e)]=_0x569e57,this[_0x15f667(0x166)]();}[_0x144368(0x166)](){const _0x26f4df=_0x144368,_0x1bfdfa=this;this[_0x26f4df(0x133)](this[_0x26f4df(0x2ce)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0xa00cd1({'isMatch'(_0x462cb3){const _0x3d57b3=_0x26f4df;var _0xb6f45c;if(_0x462cb3[_0x3d57b3(0x304)]==='POST'&&((_0xb6f45c=_0x462cb3[_0x3d57b3(0xb2)])!=null&&_0xb6f45c[_0x3d57b3(0x169)])){const {objectID:_0x55e15a,objectType:_0x311f35}=_0x462cb3['requestParams'][_0x3d57b3(0x169)]||{};if(!_0x55e15a||_0x311f35===void 0x0)return!0x1;const _0x1bd099=_0x1bfdfa[_0x3d57b3(0x2e7)]()+'/'+_0x311f35+_0x3d57b3(0xca)+_0x55e15a+_0x3d57b3(0x26b);if(_0x462cb3[_0x3d57b3(0x22f)]===_0x1bd099)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5563d8){const _0x262a19=_0x26f4df;var _0x5792b7;return(_0x5792b7=_0x5563d8[_0x262a19(0xb2)])==null?void 0x0:_0x5792b7[_0x262a19(0x169)];},'mergeParamsToRequest'(_0x3bd59e,_0x4e819d){const _0x3360eb=_0x26f4df,_0x540f26=_0x1bfdfa[_0x3360eb(0x2e7)]()+_0x3360eb(0x2e5),_0x48236d=_0x3bd59e[_0x3360eb(0x3d9)]((_0xbb88,_0x58d1df)=>{const _0x2ab0ea=_0x3360eb,{unitID:_0x4d67e7,objectID:_0x2941fc,objectType:_0x4719f9,actions:_0x23aed5}=_0x58d1df;return _0xbb88[_0x4d67e7]||(_0xbb88[_0x4d67e7]={}),_0xbb88[_0x4d67e7][_0x2941fc]||(_0xbb88[_0x4d67e7][_0x2941fc]={'objectID':_0x2941fc,'objectType':_0x4719f9,'actions':[]}),_0xbb88[_0x4d67e7][_0x2941fc]['actions'][_0x2ab0ea(0x3ff)](..._0x23aed5),_0xbb88;},{}),_0x38c6cc=[];for(const _0x4749a9 in _0x48236d)for(const _0x22ac87 in _0x48236d[_0x4749a9]){const {actions:_0x2f7daa,objectType:_0x25e4ab}=_0x48236d[_0x4749a9][_0x22ac87],_0x19b092=[...new Set(_0x2f7daa)];_0x38c6cc['push']({'unitID':_0x4749a9,'objectID':_0x22ac87,'objectType':_0x25e4ab,'actions':_0x19b092});}return new _0x7e2760(_0x3360eb(0x2e0),_0x540f26,{'headers':_0x4e819d['headers'],'withCredentials':_0x4e819d[_0x3360eb(0x3cd)],'responseType':_0x4e819d[_0x3360eb(0xe5)],'body':{'requests':_0x38c6cc}});}},{'distributeResult'(_0x199681,_0x3bbdff){const _0x89fa58=_0x26f4df,{objectActions:_0x32d396}=_0x199681;return _0x3bbdff[_0x89fa58(0x192)](_0x4caf37=>{const _0x4c0862=_0x89fa58,{unitID:_0x564b39,objectID:_0x413f6f,actions:_0x29fa26}=_0x4caf37,_0x4fd933=_0x32d396[_0x4c0862(0x397)](_0x383225=>_0x383225[_0x4c0862(0x24a)]===_0x564b39&&_0x383225['objectID']===_0x413f6f),_0x331768=_0x29fa26[_0x4c0862(0x192)](_0x3d0734=>_0x4fd933==null?void 0x0:_0x4fd933[_0x4c0862(0x370)][_0x4c0862(0x397)](_0x4689e7=>_0x4689e7[_0x4c0862(0x148)]===_0x3d0734))['filter'](_0x5ce821=>!!_0x5ce821);return{'config':_0x4caf37,'result':{'actions':_0x331768,'error':_0x199681[_0x4c0862(0x30a)]}};});}})}));}[_0x144368(0x2e7)](){const _0x1bf6c0=_0x144368;var _0x34a0f5,_0x51e592;const _0x5b19a6=this[_0x1bf6c0(0x22e)]['getConfig'](No),_0x38532c=this[_0x1bf6c0(0x22e)][_0x1bf6c0(0x2a7)](L);return(_0x51e592=(_0x34a0f5=_0x38532c==null?void 0x0:_0x38532c[_0x1bf6c0(0x13b)])!=null?_0x34a0f5:_0x5b19a6)!=null?_0x51e592:Uo;}async['create'](_0x2ba819){const _0x2caf0d=_0x144368,_0x2a4664=this[_0x2caf0d(0x2e7)]()+'/'+_0x2ba819[_0x2caf0d(0x96)]+_0x2caf0d(0x1c5);return(await this[_0x2caf0d(0x2ce)][_0x2caf0d(0xc2)](_0x2a4664,{'body':_0x2ba819}))[_0x2caf0d(0x169)][_0x2caf0d(0x2c0)]||'';}async[_0x144368(0x1e9)](_0x129018){const _0x3a355f=_0x144368,_0x1ba1be=this[_0x3a355f(0x2e7)]()+_0x3a355f(0x2bd);return(await this['_HTTPService'][_0x3a355f(0xc2)](_0x1ba1be,{'body':_0x129018}))[_0x3a355f(0x169)][_0x3a355f(0x189)];}async[_0x144368(0x3c8)](_0x543cac){const _0x2aa4a4=_0x144368,_0x4c56bb=this[_0x2aa4a4(0x2e7)]()+'/'+_0x543cac['objectType']+'/object/'+_0x543cac[_0x2aa4a4(0x2c0)];await this[_0x2aa4a4(0x2ce)][_0x2aa4a4(0x31d)](_0x4c56bb,{'body':_0x543cac});}async[_0x144368(0x31a)](_0xfe5ccc){const _0x1a81a5=_0x144368,_0x5291cd=this[_0x1a81a5(0x2e7)]()+'/'+_0xfe5ccc[_0x1a81a5(0x96)]+'/object/'+_0xfe5ccc[_0x1a81a5(0x2c0)]+_0x1a81a5(0x26b);return(await this[_0x1a81a5(0x2ce)][_0x1a81a5(0xc2)](_0x5291cd,{'body':_0xfe5ccc}))[_0x1a81a5(0x169)][_0x1a81a5(0x370)];}async['batchAllowed'](_0x11d246){const _0x74917e=_0x144368,_0x38f222=this[_0x74917e(0x2e7)]()+_0x74917e(0x2e5);return(await this[_0x74917e(0x2ce)]['post'](_0x38f222,{'body':{'requests':_0x11d246}}))['body'][_0x74917e(0x178)];}async[_0x144368(0xf8)](_0x15105f){const _0x517a32=_0x144368,_0x244c6f=this[_0x517a32(0x2e7)]()+'/'+_0x15105f['objectType']+_0x517a32(0x10d),_0x404066=await this[_0x517a32(0x2ce)][_0x517a32(0xc2)](_0x244c6f,{'body':_0x15105f});return{'roles':_0x404066[_0x517a32(0x169)][_0x517a32(0x2ba)],'actions':_0x404066[_0x517a32(0x169)][_0x517a32(0x370)]};}async[_0x144368(0x1e8)](_0x41cf8c){const _0x249c3a=_0x144368,_0x3efe64=this[_0x249c3a(0x2e7)]()+_0x249c3a(0x287);await this[_0x249c3a(0x2ce)][_0x249c3a(0x218)](_0x3efe64,{'params':{'collaboratorID':_0x41cf8c[_0x249c3a(0xeb)],'objectID':_0x41cf8c['objectID'],'unitID':_0x41cf8c[_0x249c3a(0x24a)]}});}async[_0x144368(0x406)](_0x3263e4){const _0x2e429e=_0x144368,_0x39f62c=this[_0x2e429e(0x2e7)]()+_0x2e429e(0x287);await this['_HTTPService'][_0x2e429e(0x394)](_0x39f62c,{'body':_0x3263e4});}async[_0x144368(0xf1)](_0x51273d){const _0x2f4633=_0x144368,_0x177de6=this[_0x2f4633(0x2e7)]()+_0x2f4633(0x287);await this[_0x2f4633(0x2ce)][_0x2f4633(0xc2)](_0x177de6,{'body':_0x51273d});}async[_0x144368(0x186)](_0x23ad05){const _0x38856e=_0x144368,_0x3a8a54=this[_0x38856e(0x2e7)]()+_0x38856e(0x287);return(await this[_0x38856e(0x2ce)]['get'](_0x3a8a54,{'params':{'objectID':_0x23ad05['objectID'],'unitID':_0x23ad05[_0x38856e(0x24a)]}}))[_0x38856e(0x169)][_0x38856e(0x1e7)];}async[_0x144368(0x165)](_0x198c82){const _0x227d6b=_0x144368,_0x37b763=this[_0x227d6b(0x2e7)]()+_0x227d6b(0x287);await this[_0x227d6b(0x2ce)][_0x227d6b(0x31d)](_0x37b763,{'body':_0x198c82});}};Pt=yo([ms(0x0,_0x3a563e(_0xb342b)),ms(0x1,_0x3a563e(_0x7d1a6e))],Pt);var Mo=Object[_0x144368(0x14c)],Ao=Object[_0x144368(0x3e4)],Lo=(_0x2cfbc8,_0xdf14d8,_0x1f9001,_0x589d84)=>{const _0x1798c1=_0x144368;for(var _0x18e680=_0x589d84>0x1?void 0x0:_0x589d84?Ao(_0xdf14d8,_0x1f9001):_0xdf14d8,_0xca5a33=_0x2cfbc8[_0x1798c1(0x405)]-0x1,_0xc24fe5;_0xca5a33>=0x0;_0xca5a33--)(_0xc24fe5=_0x2cfbc8[_0xca5a33])&&(_0x18e680=(_0x589d84?_0xc24fe5(_0xdf14d8,_0x1f9001,_0x18e680):_0xc24fe5(_0x18e680))||_0x18e680);return _0x589d84&&_0x18e680&&Mo(_0xdf14d8,_0x1f9001,_0x18e680),_0x18e680;},$o=(_0x140cc0,_0x260e97)=>(_0x13389d,_0xa276ff)=>_0x260e97(_0x13389d,_0xa276ff,_0x140cc0);let Qe=class{constructor(_0x22c442){const _0x404f16=_0x144368;this[_0x404f16(0x181)]=_0x22c442,this[_0x404f16(0x2e2)]();}[_0x144368(0x2e2)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x1a0427,_0x3327e6)=>{const _0x4bb1d5=_0x5e18,_0x586fb1=_0x1a0427[_0x4bb1d5(0x229)],_0x47732c=_0x4f8211();return _0x47732c&&_0x586fb1[_0x4bb1d5(0x2b2)](_0x4bb1d5(0x127),_0x47732c),_0x3327e6(_0x1a0427);}});}};Qe=Lo([$o(0x0,_0x3a563e(_0xb342b))],Qe);var jo=Object[_0x144368(0x14c)],xo=Object[_0x144368(0x3e4)],Ho=(_0x116b2a,_0x360a86,_0x1451cd,_0x18b87e)=>{const _0x1d8714=_0x144368;for(var _0x10ee23=_0x18b87e>0x1?void 0x0:_0x18b87e?xo(_0x360a86,_0x1451cd):_0x360a86,_0x44e57e=_0x116b2a[_0x1d8714(0x405)]-0x1,_0x6d153f;_0x44e57e>=0x0;_0x44e57e--)(_0x6d153f=_0x116b2a[_0x44e57e])&&(_0x10ee23=(_0x18b87e?_0x6d153f(_0x360a86,_0x1451cd,_0x10ee23):_0x6d153f(_0x10ee23))||_0x10ee23);return _0x18b87e&&_0x10ee23&&jo(_0x360a86,_0x1451cd,_0x10ee23),_0x10ee23;},St=(_0x1a0f41,_0xcdc06e)=>(_0x45ae90,_0x50535a)=>_0xcdc06e(_0x45ae90,_0x50535a,_0x1a0f41);const ko=['image/png',_0x144368(0x142),_0x144368(0x144),_0x144368(0x3ac),'image/bmp'],Bo=0x5*0x400*0x400,Vo=_0x144368(0xc4),Fo=_0x144368(0xd0),Wo=_0x144368(0x3d4),Go=_0x144368(0x151);function _0x5e18(_0x2302d1,_0x36e9f7){const _0x1d0cea=_0x1d0c();return _0x5e18=function(_0x5e18ed,_0x3718eb){_0x5e18ed=_0x5e18ed-0x92;let _0x3288d1=_0x1d0cea[_0x5e18ed];return _0x3288d1;},_0x5e18(_0x2302d1,_0x36e9f7);}let yt=class{constructor(_0x18e167,_0x1bdfce,_0x40362a){const _0x2d8b77=_0x144368;l(this,'_waitCount',0x0),l(this,'_change$',new _0x1e3428()),l(this,'change$',this[_0x2d8b77(0x315)]),l(this,_0x2d8b77(0x207),new Map()),(this[_0x2d8b77(0x181)]=_0x18e167,this[_0x2d8b77(0x22e)]=_0x1bdfce,this[_0x2d8b77(0x3a1)]=_0x40362a);}[_0x144368(0x23b)](_0x5b8222){const _0x348d61=_0x144368;this[_0x348d61(0x27a)]=_0x5b8222,this[_0x348d61(0x315)][_0x348d61(0x105)](_0x5b8222);}[_0x144368(0x371)](_0x1c7bcd,_0x4089f7){const _0x179012=_0x144368;if(_0x4089f7===_0x787c8a[_0x179012(0x2ad)]){const _0x292218=new Image();return _0x292218[_0x179012(0x2b7)]=_0x1c7bcd,_0x292218;}return this[_0x179012(0x207)][_0x179012(0x33c)](_0x1c7bcd);}[_0x144368(0x190)](_0xcc715f,_0x1649e2,_0x2f0e93){const _0x5a71f4=_0x144368;_0x1649e2===_0x787c8a['BASE64']||_0x2f0e93==null||this[_0x5a71f4(0x207)][_0x5a71f4(0x2b2)](_0xcc715f,_0x2f0e93);}async[_0x144368(0x138)](_0x34aa83){const _0x561558=_0x144368;try{const _0x5477e3=this[_0x561558(0x100)](this['_getSignURL'](),''+_0x34aa83),_0xfb3189=(await this[_0x561558(0x181)][_0x561558(0x33c)](_0x5477e3))[_0x561558(0x169)];if(_0xfb3189['error']&&_0xfb3189['error'][_0x561558(0x2ab)]===Ms['OK']){const _0x544c23=new URL(_0xfb3189[_0x561558(0x22f)],this[_0x561558(0x26d)]())[_0x561558(0x272)]();return Promise[_0x561558(0x1b0)](_0x544c23);}return Promise[_0x561558(0xb6)](_0xfb3189[_0x561558(0x30a)]);}catch(_0x400bac){return Promise['reject'](_0x400bac);}}async[_0x144368(0x25b)](_0x2639c6){const _0x1bf678=_0x144368;let _0x4e482a='';if(!ko[_0x1bf678(0x111)](_0x2639c6[_0x1bf678(0x103)]))return this[_0x1bf678(0x336)](),Promise[_0x1bf678(0xb6)](new Error(_0x1bc9e3['ERROR_IMAGE_TYPE']));if(_0x2639c6['size']>Bo)return this[_0x1bf678(0x336)](),Promise[_0x1bf678(0xb6)](new Error(_0x1bc9e3[_0x1bf678(0xaa)]));try{const _0x3ad567=new FormData();_0x3ad567[_0x1bf678(0x18d)]('file',_0x2639c6);const _0x3ce36b=this['_univerInstanceService'][_0x1bf678(0x310)](),_0x464a5a=_0x3ce36b==null?void 0x0:_0x3ce36b[_0x1bf678(0x113)]();if(!_0x464a5a)throw new Error('unitId\x20is\x20not\x20found');const _0x33faea=this['_getUploadFileURL']()+_0x1bf678(0x213)+_0x2639c6[_0x1bf678(0x3c4)][_0x1bf678(0x272)]()+_0x1bf678(0x1d9)+As['UnitEmbedded']+_0x1bf678(0x289)+encodeURIComponent(_0x464a5a),_0x38dd72=await(await fetch(_0x33faea,{'method':'POST','body':_0x3ad567}))['json']();if(typeof _0x38dd72[_0x1bf678(0x2ee)]!=_0x1bf678(0xf4))return this[_0x1bf678(0x336)](),Promise[_0x1bf678(0xb6)](new Error(_0x1bc9e3[_0x1bf678(0x27c)]));_0x4e482a=_0x38dd72[_0x1bf678(0x2ee)];}catch{return this[_0x1bf678(0x336)](),Promise['reject'](new Error(_0x1bc9e3[_0x1bf678(0x27c)]));}return new Promise((_0x1edb7e,_0x189c4a)=>{const _0x1360fd=_0x1bf678,_0x3c124b=new FileReader();_0x3c124b['readAsDataURL'](_0x2639c6),_0x3c124b[_0x1360fd(0x18a)]=_0x7a5d19=>{const _0xcc614=_0x1360fd;var _0x5eb525;const _0x57b69a=(_0x5eb525=_0x7a5d19[_0xcc614(0x269)])==null?void 0x0:_0x5eb525[_0xcc614(0x373)];if(_0x57b69a==null){this[_0xcc614(0x336)](),_0x189c4a(new Error(_0x1bc9e3[_0xcc614(0x27c)]));return;}const _0x1fa7d5=_0x41a12a[_0xcc614(0x2bb)](0x6);_0x1edb7e({'imageId':_0x1fa7d5,'imageSourceType':_0x787c8a[_0xcc614(0x349)],'source':_0x4e482a,'base64Cache':_0x57b69a,'status':_0x1bc9e3[_0xcc614(0x3c2)]}),this[_0xcc614(0x336)]();};});}[_0x144368(0x26f)](){const _0x29c1a9=_0x144368;var _0x55c7ce,_0x7a9ba6;const _0x336d13=this[_0x29c1a9(0x22e)][_0x29c1a9(0x2a7)](Vo),_0x1356ee=this[_0x29c1a9(0x22e)]['getConfig'](L);return(_0x7a9ba6=(_0x55c7ce=_0x1356ee==null?void 0x0:_0x1356ee[_0x29c1a9(0x35e)])!=null?_0x55c7ce:_0x336d13)!=null?_0x7a9ba6:Fo;}['_getSignURL'](){const _0x3c82c3=_0x144368;var _0x1e0041,_0x144b08;const _0x2c67f9=this[_0x3c82c3(0x22e)]['getConfig'](Wo),_0x1ea24a=this[_0x3c82c3(0x22e)]['getConfig'](L);return(_0x144b08=(_0x1e0041=_0x1ea24a==null?void 0x0:_0x1ea24a[_0x3c82c3(0x35a)])!=null?_0x1e0041:_0x2c67f9)!=null?_0x144b08:Go;}[_0x144368(0x26d)](){const _0x26b8f0=_0x144368;var _0x262ebf;const _0x2a8a9d=this['_configService'][_0x26b8f0(0x2a7)](L);return(_0x262ebf=_0x2a8a9d==null?void 0x0:_0x2a8a9d[_0x26b8f0(0x154)])!=null?_0x262ebf:location['origin'];}[_0x144368(0x100)](_0xa2e5b6,_0x400044){const _0x3baa7c=_0x144368;return _0xa2e5b6[_0x3baa7c(0x19f)]('{fileID}',_0x400044);}[_0x144368(0x336)](){const _0x1271f6=_0x144368;this[_0x1271f6(0x27a)]-=0x1,this[_0x1271f6(0x315)]['next'](this[_0x1271f6(0x27a)]);}};yt=Ho([St(0x0,_0x3a563e(_0xb342b)),St(0x1,_0x7d1a6e),St(0x2,_0x3a563e(_0x2d956c))],yt);var Yo=Object[_0x144368(0x14c)],Ko=Object[_0x144368(0x3e4)],Xo=(_0x447d40,_0x157d06,_0x436d63,_0x2c6c7b)=>{for(var _0x2dc68d=_0x2c6c7b>0x1?void 0x0:_0x2c6c7b?Ko(_0x157d06,_0x436d63):_0x157d06,_0x6e1728=_0x447d40['length']-0x1,_0x4be02e;_0x6e1728>=0x0;_0x6e1728--)(_0x4be02e=_0x447d40[_0x6e1728])&&(_0x2dc68d=(_0x2c6c7b?_0x4be02e(_0x157d06,_0x436d63,_0x2dc68d):_0x4be02e(_0x2dc68d))||_0x2dc68d);return _0x2c6c7b&&_0x2dc68d&&Yo(_0x157d06,_0x436d63,_0x2dc68d),_0x2dc68d;},Pe=(_0x238aca,_0x438c8d)=>(_0x2cbd37,_0x3876b9)=>_0x438c8d(_0x2cbd37,_0x3876b9,_0x238aca);let et=class extends _0xa18742{constructor(_0x218fed,_0x309c97,_0x377c3d,_0x283f6a,_0xee57a4){const _0x555ec2=_0x144368;super(),this[_0x555ec2(0xb7)]=_0x218fed,this[_0x555ec2(0x3a1)]=_0x309c97,this[_0x555ec2(0x18f)]=_0x377c3d,this[_0x555ec2(0x1d2)]=_0x283f6a,this[_0x555ec2(0x335)]=_0xee57a4,this[_0x555ec2(0x201)](),this[_0x555ec2(0x3cf)]();}[_0x144368(0x3cf)](){const _0x3f8682=_0x144368,_0x49b4e6=async _0x1a9ef2=>{const _0x39d639=_0x5e18;(await this[_0x39d639(0x1d2)][_0x39d639(0x126)](_0x1a9ef2))[_0x39d639(0xb4)]['pipe'](_0x36d4b5(_0x3ba080=>_0x3ba080[_0x39d639(0x27e)]===_0x184323[_0x39d639(0x211)]),_0x25cc15(this[_0x39d639(0x3e8)]))[_0x39d639(0x1c7)](_0x44a5b=>{const _0x476356=_0x39d639,_0x57f3cc=_0x44a5b,{reason:_0x47e9bf}=_0x57f3cc[_0x476356(0x116)];this[_0x476356(0xb7)]['get'](_0x5e3364)[_0x476356(0xff)]({'type':_0x2aebf3[_0x476356(0x358)],'content':this[_0x476356(0x335)]['t'](_0x476356(0x254))+'('+_0x47e9bf+')'}),this[_0x476356(0x18f)][_0x476356(0x263)](new _0x451bae(_0x1a9ef2)['id'],!0x1),this['_collaborationSessionService'][_0x476356(0x308)](_0x1a9ef2);});};_0x4f1e0d(this[_0x3f8682(0x3a1)]['getTypeOfUnitAdded$'](_0x5a4c09['UNIVER_SHEET']),this['_univerInstanceService'][_0x3f8682(0x182)](_0x5a4c09[_0x3f8682(0x306)]))['pipe'](_0x2f24ee(_0x50e487=>_0x50e487['getUnitId']()),_0x36d4b5(_0x16d8ea=>!_0x4cf273(_0x16d8ea)),_0x25cc15(this[_0x3f8682(0x3e8)]))['subscribe'](_0x1d26b0=>{_0x49b4e6(_0x1d26b0);});}[_0x144368(0x201)](){const _0x1de9a5=_0x144368,_0x25d473=async _0x12b689=>{const _0x20f3f9=_0x5e18;(await this[_0x20f3f9(0x1d2)]['requireSession'](_0x12b689))[_0x20f3f9(0xb4)][_0x20f3f9(0x33b)](_0x36d4b5(_0x15b347=>_0x15b347[_0x20f3f9(0x27e)]===_0x184323[_0x20f3f9(0x9c)]),_0x25cc15(this[_0x20f3f9(0x3e8)]))[_0x20f3f9(0x1c7)](_0x2eac1a=>{const _0x4539bb=_0x20f3f9,_0x963b3a=_0x2eac1a,{objectId:_0x402218}=_0x963b3a['data'],_0x224cb9=this[_0x4539bb(0xb7)][_0x4539bb(0x33c)](_0x4a6605);_0x402218===_0x12b689?_0x224cb9['initWorkbookPermissionChange'](_0x12b689):_0x224cb9['refreshPermission'](_0x12b689,_0x402218);});};_0x4f1e0d(this[_0x1de9a5(0x3a1)][_0x1de9a5(0x182)](_0x5a4c09['UNIVER_SHEET']),this[_0x1de9a5(0x3a1)][_0x1de9a5(0x182)](_0x5a4c09[_0x1de9a5(0x306)]))['pipe'](_0x2f24ee(_0x5ef36b=>_0x5ef36b[_0x1de9a5(0x113)]()),_0x36d4b5(_0xc90db4=>!_0x4cf273(_0xc90db4)),_0x25cc15(this['dispose$']))[_0x1de9a5(0x1c7)](_0x4df1f4=>{_0x25d473(_0x4df1f4);});}};et=Xo([Pe(0x0,_0x3a563e(_0x54963c)),Pe(0x1,_0x2d956c),Pe(0x2,_0x48c29f),Pe(0x3,_0x3a563e(ce)),Pe(0x4,_0x3a563e(_0xa2267e))],et);var Jo=Object[_0x144368(0x14c)],qo=Object['getOwnPropertyDescriptor'],zo=(_0x39a544,_0x2024ae,_0x521cc7,_0xfc6422)=>{const _0x3804d1=_0x144368;for(var _0x2d23c8=_0xfc6422>0x1?void 0x0:_0xfc6422?qo(_0x2024ae,_0x521cc7):_0x2024ae,_0x6ecbc=_0x39a544[_0x3804d1(0x405)]-0x1,_0x2fa5c8;_0x6ecbc>=0x0;_0x6ecbc--)(_0x2fa5c8=_0x39a544[_0x6ecbc])&&(_0x2d23c8=(_0xfc6422?_0x2fa5c8(_0x2024ae,_0x521cc7,_0x2d23c8):_0x2fa5c8(_0x2d23c8))||_0x2d23c8);return _0xfc6422&&_0x2d23c8&&Jo(_0x2024ae,_0x521cc7,_0x2d23c8),_0x2d23c8;},gs=(_0x5106fc,_0x2eafac)=>(_0x20aa79,_0x136b12)=>_0x2eafac(_0x20aa79,_0x136b12,_0x5106fc);let Nt=class{constructor(_0x410ff0,_0x1b680d){this['_configService']=_0x410ff0,this['_httpService']=_0x1b680d;}async['getUnitOnRev'](_0x182677,_0x1d99d5){const _0x3e9a8a=_0x144368;var _0x94e51e;const {unitID:_0x5a6f0c,type:_0xed98a8,revision:_0x323799=0x0}=_0x1d99d5,_0x297df5=this['_getSnapshotAPIPrefix']()+'/'+_0xed98a8+'/unit/'+_0x5a6f0c+'/rev/'+_0x323799,_0x37cbe2=(await this[_0x3e9a8a(0x181)][_0x3e9a8a(0x33c)](_0x297df5))[_0x3e9a8a(0x169)],_0x3bd478=(_0x94e51e=_0x37cbe2['snapshot'])==null?void 0x0:_0x94e51e[_0x3e9a8a(0x15a)];if(_0x3bd478){const _0x3cc408=_0x3bd478==null?void 0x0:_0x3bd478[_0x3e9a8a(0x312)],_0x32d3eb=_0x12c72c[_0x3e9a8a(0x1de)](_0xa556fc(_0x3cc408));_0x3bd478['originalMeta']=_0x32d3eb,Object['entries'](_0x3bd478[_0x3e9a8a(0x2e8)])[_0x3e9a8a(0x13f)](([,_0x2c6f71])=>{const _0x257045=_0x3e9a8a,_0x39199c=_0x2c6f71[_0x257045(0x312)],_0x3640f9=_0x12c72c[_0x257045(0x1de)](_0xa556fc(_0x39199c));_0x2c6f71[_0x257045(0x312)]=_0x3640f9;});}return _0x37cbe2;}async['getSheetBlock'](_0x482c80,_0x38d436){const _0x5eee70=_0x144368,{unitID:_0x1f51bb,type:_0x2bd465,blockID:_0x5d559c}=_0x38d436,_0x3ed626=this[_0x5eee70(0x2d7)]()+'/'+_0x2bd465+_0x5eee70(0x3d7)+_0x1f51bb+_0x5eee70(0x2c8)+_0x5d559c;return(await this[_0x5eee70(0x181)][_0x5eee70(0x33c)](_0x3ed626))[_0x5eee70(0x169)];}async[_0x144368(0x339)](_0x597f62,_0x43290d){const _0x1eb2d0=_0x144368,{unitID:_0x56a4fb,type:_0x363db7,blockID:_0x28e0ef}=_0x43290d,_0x36fc44=this[_0x1eb2d0(0x2d7)]()+_0x1eb2d0(0x2c8)+_0x363db7+_0x1eb2d0(0x3d7)+_0x56a4fb+_0x1eb2d0(0x2c8)+_0x28e0ef;return(await this['_httpService'][_0x1eb2d0(0x33c)](_0x36fc44))[_0x1eb2d0(0x169)];}async[_0x144368(0x220)](_0x40019d,_0x104f77){const _0x116aef=_0x144368,{unitID:_0xe11de2,type:_0x577cfd,from:_0x5dc78d,to:_0x2715bc}=_0x104f77,_0x246f4f=this['_getAPIPrefix']()+'/'+_0x577cfd+_0x116aef(0x3d7)+_0xe11de2+_0x116aef(0x36c)+_0x5dc78d+'&to='+_0x2715bc;return(await this[_0x116aef(0x181)]['get'](_0x246f4f))['body'];}['_getSnapshotAPIPrefix'](){const _0x2b3501=_0x144368;var _0x46cabf;return(_0x46cabf=this[_0x2b3501(0x22e)][_0x2b3501(0x2a7)](mn))!=null?_0x46cabf:this[_0x2b3501(0x2d7)]();}[_0x144368(0x2d7)](){const _0x169bbc=_0x144368;var _0x59c0f2,_0x25a1d6;const _0xe0e609=this['_configService'][_0x169bbc(0x2a7)](dn),_0x2b18bb=this[_0x169bbc(0x22e)][_0x169bbc(0x2a7)](L);return(_0x25a1d6=(_0x59c0f2=_0x2b18bb==null?void 0x0:_0x2b18bb[_0x169bbc(0x13a)])!=null?_0x59c0f2:_0xe0e609)!=null?_0x25a1d6:fn;}async['getResourcesRequest'](_0x2248fc,_0x534362){const _0x2ea658=_0x144368,_0x1da182=_0x2ea658(0x12e)+_0x534362[_0x2ea658(0x103)]+'/unit/'+_0x534362[_0x2ea658(0x24a)]+_0x2ea658(0x252);return(await this['_httpService'][_0x2ea658(0x33c)](_0x1da182,{'params':{'resourceId':JSON[_0x2ea658(0xb9)](_0x534362['resourceIDs'])}}))[_0x2ea658(0x169)];}[_0x144368(0x20a)](){const _0x208d7b=_0x144368;throw new Error(_0x208d7b(0x3bb));}['saveSheetBlock'](){const _0x1616ea=_0x144368;throw new Error(_0x1616ea(0x3bb));}[_0x144368(0x115)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Nt=zo([gs(0x0,_0x7d1a6e),gs(0x1,_0x3a563e(_0xb342b))],Nt);var Zo=Object['defineProperty'],Qo=Object[_0x144368(0x3e4)],ea=(_0xa91386,_0x7bbe6c,_0x189ed0,_0x5279cc)=>{const _0x285989=_0x144368;for(var _0x3d611a=_0x5279cc>0x1?void 0x0:_0x5279cc?Qo(_0x7bbe6c,_0x189ed0):_0x7bbe6c,_0x52f1cf=_0xa91386[_0x285989(0x405)]-0x1,_0x474cb1;_0x52f1cf>=0x0;_0x52f1cf--)(_0x474cb1=_0xa91386[_0x52f1cf])&&(_0x3d611a=(_0x5279cc?_0x474cb1(_0x7bbe6c,_0x189ed0,_0x3d611a):_0x474cb1(_0x3d611a))||_0x3d611a);return _0x5279cc&&_0x3d611a&&Zo(_0x7bbe6c,_0x189ed0,_0x3d611a),_0x3d611a;},ye=(_0xa5890d,_0x471a89)=>(_0x3e7312,_0x3bf270)=>_0x471a89(_0x3e7312,_0x3bf270,_0xa5890d);let Ut=class extends _0x10f8fb{constructor(_0x1a1f16,_0x3527bb,_0x691978,_0x4a4ee6,_0x36248d){const _0x26c0ab=_0x144368;super(_0x1a1f16,_0x3527bb,_0x691978),this['_transformService']=_0x4a4ee6,this[_0x26c0ab(0x193)]=_0x36248d;}[_0x144368(0x1bc)](_0x32b750,_0x2b11b6){const _0x46d7d0=_0x144368,_0x197eee=this[_0x46d7d0(0x408)](_0x32b750);if(_0x197eee)try{const _0x4ed30=this['_transformStack'](_0x197eee,_0x2b11b6);this['_substituteUndoStack'](_0x32b750,_0x4ed30);}catch(_0x370420){this[_0x46d7d0(0x193)]['error'](_0x46d7d0(0x15c),_0x370420),this['_clearUndo'](_0x32b750);}const _0x39c7d9=this['_getRedoStack'](_0x32b750);if(_0x39c7d9)try{const _0x461e5f=this['_transformStack'](_0x39c7d9,_0x2b11b6);this[_0x46d7d0(0x3f7)](_0x32b750,_0x461e5f);}catch(_0x325dd9){this['_logService'][_0x46d7d0(0x30a)](_0x325dd9),this[_0x46d7d0(0x98)](_0x32b750);}}['_clearUndo'](_0x31a78d){const _0x282e04=_0x144368,_0xe4a0f8=this[_0x282e04(0x408)](_0x31a78d);_0xe4a0f8&&(_0xe4a0f8[_0x282e04(0x405)]=0x0,this[_0x282e04(0x2fc)]());}[_0x144368(0x98)](_0x4ea299){const _0x494463=_0x144368,_0x1429e9=this[_0x494463(0x391)](_0x4ea299);_0x1429e9&&(_0x1429e9[_0x494463(0x405)]=0x0,this['_updateStatus']());}[_0x144368(0x40b)](_0x362247,_0x99876d){const _0x11d580=_0x144368;this[_0x11d580(0x348)][_0x11d580(0x2b2)](_0x362247,_0x99876d),this[_0x11d580(0x2fc)]();}[_0x144368(0x3f7)](_0x16ee83,_0x167291){const _0x3d1c7a=_0x144368;this[_0x3d1c7a(0x29e)][_0x3d1c7a(0x2b2)](_0x16ee83,_0x167291),this['_updateStatus']();}[_0x144368(0x2da)](_0x7e5000,_0x244a00){const _0x1899b5=_0x144368,_0x56aa9a=[];let _0x58ba38=_0x244a00,_0x32a203=_0x244a00;for(let _0x421c5a=_0x7e5000[_0x1899b5(0x405)]-0x1;_0x421c5a>=0x0;_0x421c5a--){const {unitID:_0x4d29f2,undoMutations:_0x533147,redoMutations:_0x4d0066}=_0x7e5000[_0x421c5a],_0x2d043f=this[_0x1899b5(0x125)][_0x1899b5(0x1ad)](_0x58ba38,_0x533147),_0x340793=this[_0x1899b5(0x125)][_0x1899b5(0x1ad)](_0x32a203,_0x4d0066);if(_0xc45f99(_0x2d043f)||_0xc45f99(_0x340793)){this['_logService'][_0x1899b5(0x30a)](_0x1899b5(0x15c),_0x1899b5(0x268),_0x2d043f,_0x340793);break;}_0x58ba38=_0x2d043f[_0x1899b5(0x3e1)],_0x32a203=_0x340793[_0x1899b5(0x3e1)],_0x56aa9a[_0x1899b5(0x3ff)]({'unitID':_0x4d29f2,'undoMutations':_0x2d043f[_0x1899b5(0x2ca)],'redoMutations':_0x340793[_0x1899b5(0x2ca)]});}return _0x56aa9a[_0x1899b5(0xe7)]();}};Ut=ea([ye(0x0,_0x2d956c),ye(0x1,_0x401dc7),ye(0x2,_0x14d2cc),ye(0x3,_0x5a828b),ye(0x4,_0x4192f8)],Ut);class ta extends _0xa18742{constructor(){const _0x312ebe=_0x144368;super(),l(this,_0x312ebe(0x1b5)),this[_0x312ebe(0x1b5)]=_0x1f361e(window,_0x312ebe(0x2a2))[_0x312ebe(0x33b)](_0x592099(this['dispose$']),_0x67ad6c(0x1),_0x2800f9(void 0x0));}[_0x144368(0x25c)](_0x83b47a,_0x17f422,_0xa0eb6a=!0x1){const _0x3c1481=_0x144368,_0x389c71=new URL(window[_0x3c1481(0x12f)]['href']);_0x389c71[_0x3c1481(0x1f9)][_0x3c1481(0x2b2)](_0x83b47a,_0x17f422),_0xa0eb6a?window[_0x3c1481(0xdb)][_0x3c1481(0x319)]('','',_0x389c71['toString']()):window[_0x3c1481(0xdb)][_0x3c1481(0xa0)]('','',_0x389c71[_0x3c1481(0x272)]());}[_0x144368(0x3f3)](_0x136adf,_0x446919=!0x1){const _0x19f3dc=_0x144368,_0x5299c5=new URL(window[_0x19f3dc(0x12f)]['href']);_0x5299c5[_0x19f3dc(0x1f9)][_0x19f3dc(0x218)](_0x136adf),_0x446919?window[_0x19f3dc(0xdb)]['replaceState']('','',_0x5299c5[_0x19f3dc(0x272)]()):window['history'][_0x19f3dc(0xa0)]('','',_0x5299c5['toString']());}['getParam'](_0xa5d03c){const _0x44ad33=_0x144368;var _0x48c481;return(_0x48c481=new URL(window[_0x44ad33(0x12f)][_0x44ad33(0x38d)])['searchParams'][_0x44ad33(0x33c)](_0xa5d03c))!=null?_0x48c481:void 0x0;}}var Gs=Object[_0x144368(0x14c)],sa=Object[_0x144368(0x3e4)],ia=(_0x119ba2,_0x3cf6c0,_0x2651b9)=>_0x3cf6c0 in _0x119ba2?Gs(_0x119ba2,_0x3cf6c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2651b9}):_0x119ba2[_0x3cf6c0]=_0x2651b9,na=(_0x5a9f46,_0x162459,_0x26b9c9,_0x4ee123)=>{const _0x35fdfa=_0x144368;for(var _0x331bc9=_0x4ee123>0x1?void 0x0:_0x4ee123?sa(_0x162459,_0x26b9c9):_0x162459,_0x1eddbf=_0x5a9f46[_0x35fdfa(0x405)]-0x1,_0xd0958b;_0x1eddbf>=0x0;_0x1eddbf--)(_0xd0958b=_0x5a9f46[_0x1eddbf])&&(_0x331bc9=(_0x4ee123?_0xd0958b(_0x162459,_0x26b9c9,_0x331bc9):_0xd0958b(_0x331bc9))||_0x331bc9);return _0x4ee123&&_0x331bc9&&Gs(_0x162459,_0x26b9c9,_0x331bc9),_0x331bc9;},ke=(_0x1f139f,_0x114784)=>(_0x1dc650,_0x5c1638)=>_0x114784(_0x1dc650,_0x5c1638,_0x1f139f),ra=(_0x303f9a,_0x28aad4,_0x1a69f3)=>ia(_0x303f9a,_0x28aad4+'',_0x1a69f3);const oa=_0x144368(0x16e);let Mt=class extends _0x2e2231{constructor(_0x34c620=yn,_0x224bff,_0x42d93a,_0x434c4e,_0x2a23ab){const _0x4d5352=_0x144368;super(),this['_config']=_0x34c620,this[_0x4d5352(0x193)]=_0x224bff,this[_0x4d5352(0x2f2)]=_0x42d93a,this[_0x4d5352(0xb7)]=_0x434c4e,this[_0x4d5352(0x22e)]=_0x2a23ab;const {..._0x285082}=this[_0x4d5352(0x316)];this['_configService']['setConfig'](L,_0x285082);}[_0x144368(0x95)](){const _0x478a50=_0x144368;this[_0x478a50(0xad)](),_0xb25f0b(this[_0x478a50(0xb7)],[[pe],[qe],[et]]);}['onReady'](){const _0x8808cb=_0x144368;_0xb25f0b(this[_0x8808cb(0xb7)],[[ze]]);}[_0x144368(0x1c0)](){const _0x115598=_0x144368;this[_0x115598(0x9e)]();}[_0x144368(0xad)](){const _0x526687=_0x144368;var _0x3ad99b,_0x56c275,_0x5e3128,_0xee090e;this[_0x526687(0xb7)][_0x526687(0x381)](_0x13dae0)&&this[_0x526687(0x193)][_0x526687(0x30a)](_0x526687(0x21f),_0x526687(0x3c5));let _0x1e7fb6=[[_0x13dae0,{'useClass':Ut}],[ce],[Ft],[_0xb342b],[Ws,{'useClass':ta}],[ae],[D],[_0x2b51c0],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x56c275=(_0x3ad99b=this[_0x526687(0x316)])==null?void 0x0:_0x3ad99b[_0x526687(0x1ce)])!=null?_0x56c275:Et}],[_0x46bf7c,{'useClass':_0x5e84f7}],[_0x4c7f7a,{'useClass':Nt}],[_0x5535c2,{'useClass':Pt}],[_0x594ba9,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x5e3128=this[_0x526687(0x316)])!=null&&_0x5e3128['enableSingleActiveInstanceLock']&&_0x1e7fb6[_0x526687(0x3ff)]([tt,{'useClass':rr}]),_0x1e7fb6=_0x9ddf9c(_0x1e7fb6,(_0xee090e=this[_0x526687(0x316)])==null?void 0x0:_0xee090e[_0x526687(0x3cc)]),_0x1e7fb6['forEach'](_0x2d759b=>this['_injector'][_0x526687(0x282)](_0x2d759b)),this[_0x526687(0x385)]();}[_0x144368(0x9e)](){const _0x7d9c2=_0x144368;this[_0x7d9c2(0x133)](this[_0x7d9c2(0x2f2)][_0x7d9c2(0x388)](_0x5a4c09[_0x7d9c2(0x306)],[Dt])),this[_0x7d9c2(0x133)](this[_0x7d9c2(0x2f2)]['registerRenderModule'](_0x5a4c09['UNIVER_SHEET'],[wt]));}[_0x144368(0x385)](){const _0x359172=_0x144368;var _0x3c53e9,_0x17b06c;this[_0x359172(0xb7)][_0x359172(0x33c)](_0xb342b)[_0x359172(0x15e)]({'priority':0x14,'interceptor':_0x20f2fa({'maxParallel':0x6})}),this['_injector'][_0x359172(0x33c)](Qe),(_0x3c53e9=this[_0x359172(0x316)])!=null&&_0x3c53e9[_0x359172(0x2cb)]||this[_0x359172(0xb7)]['get'](D)[_0x359172(0x3a7)](),(_0x17b06c=this['_config'])!=null&&_0x17b06c[_0x359172(0x2a4)]&&this[_0x359172(0xb7)][_0x359172(0x33c)](Ze),this[_0x359172(0xb7)][_0x359172(0x33c)](Ae),this[_0x359172(0xb7)][_0x359172(0x381)](Ue)&&this['_injector'][_0x359172(0x33c)](Ue);}};ra(Mt,'pluginName',oa),Mt=na([_0x3836d4(_0x597d23),ke(0x1,_0x4192f8),ke(0x2,_0x102807),ke(0x3,_0x3a563e(_0x54963c)),ke(0x4,_0x7d1a6e)],Mt);export{No as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Ws as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ta as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};
1
+ const _0x4cb5f3=_0x2da6;(function(_0xc2a248,_0x1e882b){const _0x5d69d9=_0x2da6,_0x359643=_0xc2a248();while(!![]){try{const _0x51be4e=-parseInt(_0x5d69d9(0x48e))/0x1+parseInt(_0x5d69d9(0x367))/0x2*(parseInt(_0x5d69d9(0x203))/0x3)+-parseInt(_0x5d69d9(0x16f))/0x4*(parseInt(_0x5d69d9(0x455))/0x5)+parseInt(_0x5d69d9(0x416))/0x6+-parseInt(_0x5d69d9(0x183))/0x7*(-parseInt(_0x5d69d9(0x473))/0x8)+-parseInt(_0x5d69d9(0x22b))/0x9*(-parseInt(_0x5d69d9(0x282))/0xa)+parseInt(_0x5d69d9(0x424))/0xb*(parseInt(_0x5d69d9(0x410))/0xc);if(_0x51be4e===_0x1e882b)break;else _0x359643['push'](_0x359643['shift']());}catch(_0x5e6029){_0x359643['push'](_0x359643['shift']());}}}(_0x3e77,0x410b3));var ti=Object['defineProperty'],si=(_0x5b5130,_0x81d62e,_0x418482)=>_0x81d62e in _0x5b5130?ti(_0x5b5130,_0x81d62e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x418482}):_0x5b5130[_0x81d62e]=_0x418482,l=(_0xb97142,_0xbe6ef7,_0x3603ed)=>si(_0xb97142,typeof _0xbe6ef7!='symbol'?_0xbe6ef7+'':_0xbe6ef7,_0x3603ed);import{createIdentifier as _0x2ac538,Inject as _0x4b74b3,Disposable as _0x16e969,DisposableCollection as _0x1d2906,toDisposable as _0x3aebc7,IConfigService as _0x5b8ed6,ILogService as _0x155804,UserManagerService as _0x2d3f6a,UniverInstanceType as _0x53ce88,IUniverInstanceService as _0x350446,LocaleService as _0x48132e,Optional as _0x1765c1,RxDisposable as _0x1384c9,Injector as _0xd20bac,Tools as _0x3f9d09,ILocalStorageService as _0x303a7c,ICommandService as _0x155531,JSONX as _0x3d2357,CommandType as _0x57f911,IPermissionService as _0xea86e,IUndoRedoService as _0x35a922,sequenceExecute as _0x3a9686,debounce as _0x1fc090,Rectangle as _0x48485a,COLORS as _0x1f71a4,ColorKit as _0x427e26,ThemeService as _0x26aabf,fromEventSubject as _0x4bd808,useDependency as _0x4acdb2,connectInjector as _0x24b3e2,Workbook as _0x233af7,isInternalEditorID as _0x52933b,LocalUndoRedoService as _0x4585bc,IContextService as _0x389be5,DependentOn as _0x11fa2d,Plugin as _0x107260,touchDependencies as _0x578724,IAuthzIoService as _0x585a1b,mergeOverrideWithDependencies as _0x380f8d}from'@univerjs/core';import{Subject as _0x199c18,merge as _0x42229f,takeUntil as _0xa11cc5,BehaviorSubject as _0x61bb4,distinctUntilChanged as _0x384a07,fromEvent as _0x4b5d6d,map as _0x5c4b8e,shareReplay as _0x28d3c4,take as _0x160c58,of as _0x5569e1,debounceTime as _0x448f14,filter as _0x2cec12,switchMap as _0x17986a,combineLatest as _0x20e3cc,concatMap as _0x5c32fc,mapTo as _0x3459e0}from'rxjs';import{map as _0x30fe4a,take as _0x1744b3,filter as _0x344b49,delay as _0x561177,throttleTime as _0x4163cb,takeUntil as _0xbbe6f4,switchMap as _0x1fefc6}from'rxjs/operators';import{MessageType as _0x1497b6,Tooltip as _0x9fa936}from'@univerjs/design';import{IBeforeCloseService as _0x5ada1a,IMessageService as _0x2a280b,INotificationService as _0x5724a2,useObservable as _0x10d725,BuiltInUIPart as _0xd9ec47,IUIPartsService as _0xffb4e1}from'@univerjs/ui';import{HTTPService as _0x4c760e,WebSocketService as _0x389db0,MergeInterceptorFactory as _0x54f40d,HTTPRequest as _0x42803a,IHTTPImplementation as _0x12453f,XHRHTTPImplementation as _0x4bca58,ThresholdInterceptorFactory as _0x2f4fe9}from'@univerjs/network';import{CollaborationEvent as _0x53d369,parseChangesetToProtocol as _0x2302a8,ISnapshotServerService as _0x57077d,isTransformMutationFailure as _0x415d56,isTransformMutationsWithChangesetSuccess as _0x35d529,ITransformService as _0x38dddc,RevisionService as _0x48c63a,mapDocumentTypeToUniverType as _0x492f73,isTransformChangesetsSuccess as _0x470c5a,CompressMutationService as _0x16968f,parseProtocolChangeset as _0x48f2c8,SnapshotService as _0x19fbef,textEncoder as _0x43ab64,b64DecodeUnicode as _0x13566e,isTransformMutationsWithChangesetFailure as _0x1ac637,UniverCollaborationPlugin as _0x2ddd1d}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x5bea2b}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x3f1ed3,DocStateChangeManagerService as _0x421764,NodePositionConvertToCursor as _0x3354fa,isValidRectRange as _0x18eda9,NodePositionConvertToRectRange as _0x539f57,TEXT_RANGE_LAYER_INDEX as _0xe3d047,SetDocZoomRatioOperation as _0x1c18cf}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x359359,SetSelectionsOperation as _0x51552b,InsertSheetMutation as _0x3ce46e,EmptyMutation as _0x4d7620,WorkbookEditablePermission as _0x5112fd,RefRangeService as _0x40a324,EffectRefRangId as _0x273262,handleIRemoveRow as _0x7164b6,handleIRemoveCol as _0x5195ce,handleMoveRange as _0x5718c4,handleInsertRow as _0x3f5a88,handleInsertRangeMoveRight as _0x266d0a,handleInsertRangeMoveDown as _0x2aae38,handleInsertCol as _0x55045e,handleDeleteRangeMoveUp as _0x35a047,handleDeleteRangeMoveLeft as _0x2f14cb,runRefRangeMutations as _0x5500fb,SetWorksheetActivateCommand as _0xe8a7a2}from'@univerjs/sheets';import{IRenderManagerService as _0x2bac38,Shape as _0x479c9a,Rect as _0x3434fa,getColor as _0x243253,RegularPolygon as _0x301ec8,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2287f0,Vector2 as _0x53696a}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x40030b,RichTextEditingMutation as _0x3afc14,SetTextSelectionsOperation as _0x2636a3,DocSkeletonManagerService as _0x67f5dd}from'@univerjs/docs';import{ImageSourceType as _0x50d608,ImageUploadStatusType as _0x1156ce,IImageIoService as _0x90d8ab}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x1a5636,serializeRangeWithSheet as _0x1aa3bf}from'@univerjs/engine-formula';function _0x3e77(){const _0x2809c6=['setShapeProps','awaitingChangeset','getCollabCursors$','_handleHeartbeatEvent','_registerDependencies','getWorkbookSelections','currentColor','_tryReconnect','cmd','awaiting_with_pending','getRenderById','incrementRevOfUnit','_config','_scene','fillText','CONFLICT','\x0aAfter:\x20','_clearTimeoutTimer','removeMember','UNDEFINED','[CollaborationSession]','_httpService','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','UnitEmbedded','synced','activeSheet$','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_initStatusComponent','_renderManagerService','toString','snapshotServerUrl','UniverIcon','reconnect','post','tag','location','push','getCurrentUser','_state','sheets','replaceState','attrs','univer-online-status-title','#fff','arc','delete','\x20in\x20_schedule.','onReady','374172ppraWJ','_tryEnsureSocket','M0\x200H16V16H0z','_onCursorDelete','asObservable','/object/','715962RXcJSV','LIVESHARE_OPERATION','_socketMessageSubscription','getSheetId','getOwnPropertySymbols','apply','_changesetReqId','roomMembers$','rgba(255,\x20255,\x20255,\x200.01)','_decreaseWaiting','className','enableOfflineEditing','getUndoRedoMutationParamsCache','_initModules','11AoPlRW','_handleJoinEvent','pipe','onTransformSelections','_transformPreviousActiveRange','_permissionService','_heartbeatTimer','_getMergeRange','image/jpg','updateMember','create','_collaborationPaused','memberID','uploadFileServerUrl','getUnitType','height','unshift','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/oidc/authpage','_collabSessionService','HttpImport','createCollaborator','error','_awaitingChangeset','_onRemoteACK','setTimeout','/-/object/list','Undefined','uni.network.url-service','_acknowledgedAwaitingChangeset','csAckEvent','onload','_sendingTimer','hidden','collabStatus.fetchMiss','_transformUndoredo','CHANGESET_REVISION_CONFILICT','concat','setItem','m2Prime','_getRedoStack','RemoveRowCommandId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','close$','unknown','localeService','_getAnchorBounding','fetch_missing','270205MOWzKB','LIVESHARE_NEW_HOST','DeleteRangeMoveUpCommandId','_removeClearOtherTimer','_imageSourceCache','registerHTTPInterceptor','_localStorageService','LOGIN_URL_KEY','univer-pro.collaboration-client.single-active-unit-service','blue400','fromCollab','addObject','target','_sessionStatus$','_createHandler','slice','onSendChangeset','resend','transformMutationsWithChangeset','reduce','_collaborationTimeoutTimer','_removeCollabCursors','AWAITING_WITH_PENDING','sessionStatus','APPLY_DUPLICATED','SNAPSHOT_INVALID_SNAPSHOT','transformByState','UNIVER_SLIDE','_localCacheService','_name','16EJENGo','onMissedChangesetFetched','_docTransformIMECacheService','setAlpha','_compressMutationService','PERMISSION_REJ','unitID','UNIVER_PROJECT','_draw','getActiveSheet','randomUUID','_event$','updatePermissionPoint','responseType','patch','[PendingState]:\x20received\x20acknowledgement.','addEventListener','split','objectType','not_collab','INVALID_ARGUMENT','socket\x20close','transformStack\x20failed!','range','with','/-/object/-/batch_allowed','_onJoinRoomEvent','28531AVZIqn','onRemoteRej','show','_send','values','clearInterval','_onUserLeave','readAsDataURL','getUnitOnRev','FETCH_MISSING','ONLINE','compose','{fileID}','/block/','LOCAL_CACHE_INTERVAL','_executeRemoteChangeset','addObjects','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','colorChannel1','reqId','awaiting','replace','clear','_fetchMissChangesets','_loadSheet','\x0aCurrent:\x20','CHANGESET_ACK','_sendHeartbeatTimer','restore','unsubscribe','_sendHeartbeat','_collabCursorState$','_updateLocalCursor','_socketReady','moveTo','top','drawWith','code','/allowed','LIVESHARE_FETCH_OPERATIONS','getTypeOfUnitDisposed$','HEARTBEAT_TIMEOUT','NOT_COLLAB','icon','/universer-api/authz','_getUndoStack','_updateState','UNKNOWN_CODE','docStateChange$','prototype','_labelPosition','disposeUnit','fetchThroughInterceptors','HttpExport','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_startCollaboration','LICENSE_EXPORT_SIZE_EXCEEDED','_candidateSocket','_rescheduleHeartbeat','every','_unitStatus','ENSURE_SNAPSHOT_EXECUTION','UNIVER_DOC','FAIL','round','_onCombEvent','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_listenToOfflineEvent','SHOULD_CLOSE_CONN','doc.mutation.rich-text-editing','_injector','subUnitId','path','reverse','baseRev','objectID','connection\x20error','get','_getUploadFileURL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','session.room-full','_isPermissionRej','Unknown\x20user','sid','getCollabEntity$','UNKNOWN_CMD','getOffsetConfig','createInstance','bind','currentTheme$','_drawRectRange','headers','getCurrentSelections','LICENSE_DISTRO_REJECTED','univer-online','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_handler','COLLAB_SUBMIT_CHANGESET_URL','[PendingState]:\x20unhandled\x20univer\x20type:\x20','fill','downloadEndpointUrl','20XWfHjP','_anchorDot','transform','_commandService','_initMergeInterceptor','loginUrlKey','updateCollaborator','_initEventListeners','_scheduleTimestamp','_getSheetObject','put','collaboration-session-retry','getCollabEntity','cursorInfo','addImageSourceCache','workbook','image/jpeg','authzUrl','UNIVER_SHEET','?url=','895048VrRhLd','_color','collaboration-client.offline-data-not-saved','_joinRoom','state$','InsertRangeMoveDownCommandId','_getLoginPath','getRangePointData','size','_handleLeaveEvent','error$','resize','_urlService','_scheduleSaving','getUnhiddenWorksheets','removeParam','univerjs-icon\x20univerjs-icon-','putCollaborators','changesets','whenReady','registerRefRange','_transformRemoteChangesetByIMECache','map','requestParams','_initRequestHeader','_throwTelemetryCollaborationNewChangeset','subunit','offline','collaboration_new_changeset','transformMutation','_type','LIVESHARE_REQUEST_HOST','loadDoc','_submitChangeset','now','setConfig','_saveTaskMap','univer-offline','AUTHZ_URL_KEY','_colorAssignService','loadSheet','POST','[PendingState]:\x20received\x20rejection.','_hover','failed\x20to\x20apply\x20missed\x20changesets!','_hideTimer','_scheduleCollaborationTimeoutTimer','_updateSubUnitFromURLParams','_updateStatus','on-line-single','collab-text-range-','_localeService','MoveRangeCommandId','AWAITING','m1Prime','purple300','then','socket\x20open.','/unit/','_initCloseConn','/universer-api/snapshot','objectActions','SNAPSHOT_URL_KEY','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','YUUMI_URL_COL_OUT_OF_RANGE','FETCH_MISS','close','_socketService','width','_getCurrentRevision','APPLY_PERMISSION_DENIED','length','socket$','UNAUTHENTICATED','defineProperty','_roomMembers$','add','PSEUDO_FETCH_MISSING_RESULT','getDeserializedSheetBlock','TOO_MANY_REQUESTS','_anchor','getValue','joinEvent','bottom','objects','requireSession','c1Prime','roomInfos','on-line-single_clip0_910_349','liveShareNewHost','_docSkeleton','debug','registerComponent','startColumn','_stopTelemetryCollaborationNewChangeset','startTime','session.will-retry','_cursorInfo$','filter','_onRemoteChangeset','_replaceFileID','_docSkeletonManagerService','evenodd','_cursor','SUBMIT_CHANGESET','conflict.content','_sheetSkeletonManagerService','SNAPSHOT_HAS_BEEN_REMOVED','UNRECOGNIZED','getInterceptPoints','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getActiveRange','HEARTBEAT','_syncEditingCollabCursorService','PERMISSION_DENIED','_revisionService','children','sheetId','hovered','YUUMI_RATE_OVER_LIMIT','_transformSelections','_changesetSessionId','Error','_context','getUnitStatus$','pauseCollaboration','next','conflict.title','6ObMmRD','DEFAULT_FILE_NAME','_themeService','name','fetchMiss','_clearUndo','transformUndoRedo','setInterval','call','assign','cursorInfo$','getCellPositionByOffset','shouldCloseConn','idSuffix','pending','withCredentials','labelPosition','init','_change$','_undoRedoService','_cursorShapes','_onRemoteRejected','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','listCollaborators','_sheetTransformSelectionsService','_clearCollaborationTimeoutTimer','min','YUUMI_UNABLE_LOAD_URL','_updateURLWithCurrentState','flatMap','_commentUpdate$','roomMembers','lineTo','_schedule','VIEW_MAIN','_getSignURL','triggerDblclick','_onFetchMissResult','random','[CollaborationEntity]','1128393MLEwkX','editingUnit','transformChangesets','_snapshotService','univer-online-status-icon','_snapshotServerService','startsWith','[OfflineState]:\x20received\x20acknowledgement.','/universer-api/comb','UNIVER_COLLABORATION_CLIENT_PLUGIN','stopTime','displayName','unit','generateRandomId','getSkeleton','USERS_ENTER','_userManagerService','COMPRESS_MUTATION_SEND','_configService','onPointerMove$','div','COMMENT_UPDATE','COMPLETION_FINISHED','RemoveColCommandId','online','selections','unitId\x20is\x20not\x20found','_initStatusListener','onRemoteChangeset','NO_OTHER_CLIENTS_EDITING','updateOfflineData','max','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','set','svg','_createSocket','storage','makeDirty','_waitForHeartbeatResponse','toRgbString','defs','_clearHeartbeatTimer','result','_beforeCloseService','_applyRemoteChangeset','update','onCommentUpdate','_range','trim','subscribeEvent','session.connection-failed','onMissingChangesets','session','members','createSocket','_roomMembers','method','contains','dispose','[UniverCollaborationClientPlugin]','file','some','save','hide','pushState','verdancy600','updateCursorEvent','RETRY_CONNECTING_MAX_COUNT','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','toggleOnline','closePath','revision','_id','OFFLINE','_syncEditingCollabCursor','searchParams','_cursors','FileId','_onConnectionFailed','ranges','ERROR_EXCEED_SIZE','getSheetBySheetId','collabCursorState$','unit-cache-','_onRecvEvent','BASE64','10oGmaJH','image/gif','_onRefRangeChange','red300','jiqing500','getAncestorScale','_startTelemetryCollaborationNewChangeset','0\x200\x2017\x2016','x-univer-host','_socket','onSyncEditingCollabCursor','_status$','0\x200\x2016\x2016','collab-client.tooltip.reconnect','[SyncedState]:\x20received\x20acknowledgement.','_getScale','ERROR_IMAGE','/collaborator','Warning','_state$','getTypeOfUnitAdded$','reject','[FetchMissState]','onRemoteAck','getImageSourceCache','MUTATION','transformRemoteChangeset','setUndoRedoMutationParamsCache','JOINING','getItem','visibilitychange','_commentService','_redoStacks','url','_docSyncEditingCollabCursorService','collabStatus.syncing','body','_retryConnectingTimer','_assignedColors','_shouldReportTelemetry','selection','onlyLocal','_messageService','_waitCount','enableSingleActiveInstanceLock','xlink:href','mutations','_getSnapshotAPIPrefix','1em','_getDownloadEndpointURL','[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.','registerRenderModule','UnitSnapshot','black','SUCCUSS','\x20-\x20','_logService','currentSkeleton$','_backgroundColor','_getAPIPrefixPath','newValue','_toggleOffline','_telemetryInfo','status$','_notificationService','encode','type','subscribe','_memberService','off-line-single','_onMessage','saveChangeset','font','exhaustSavingTask','_docStateChangeManagerService','FromArray','retryConnectingInterval','UUID','_docTransformSelectionsService','_onUserJoin','send','entries','_render','_transformService','_listenToOnlineEvent','urlChange$','UNIVER_UNKNOWN','row','_saveCache','_clearOtherTimers','sessionStatus$','fetching\x20missing\x20changesets\x20from\x20','forEach','_updateLocalCache','YUUMI_SUBSCRIPTION_NOT_FOUND','_cachedData','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','title','transformSelections','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onLocalMutation','current','_refRangeService','PENDING','deepClone','onStateChange','event$','status','string','getMemberID','INGEST','collaboratorID','/fetchmissing?from=','stringify','_createInitialState','_hovered','LICENSE_IMPORT_SIZE_EXCEEDED','startRow','JOIN','UPDATE_PERMISSION_OBJ','MSG_FOR_ERROR','gold400','getImage','dispose$','_unitOnClients','_transformUndoRedoStack','getRandomValues','...','isArray','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','InsertRangeMoveRightCommandId','_remoteChangesetQueue','_lockTransition','closeSession','_collaborationController','_queuedRemoteChangesets','_clearRedo','has','getConfig','focused$','fillStyle','UPDATE_CURSOR','getUnitId','getResourcesRequest','HEARTBEAT_INTERVAL','telemetry\x20info\x20is\x20not\x20initialized','_lastPointer','object','visibilityState','[DataLoaderController]','textRanges','univer-online-status','_refreshCollabCursors','action','_replayCachedMutations','beginPath','?size=','getVpScrollXYInfoByPosToVp','getLatestCsReqIdBySid','onPointerEnter$','commentUpdateEvent','_socket$','substring','_sessions','createElement','state','interceptor','OTHER_CLIENTS_EDITING','APPLY_NON_SEQUENTIAL_REVISION','toggleOffline','_onConflict','_entityInit$','_checkMissing','_retryCount','_pendingMutations','_entities','saveSheetBlock','HEADER_MENU','leaveEvent','_http','USERS_LEAVE','routeKey','_online','origin','setParam','message$','json','_unitID','onRendered','loadOfflineData','_getSendChangesetTimeout','_getAPIPrefix','_univerInstanceService','_setupBeforeClosingHandler','engine','fetchMissingChangesets','clearTimeout','eventID','_transformStack','_loadDoc','getCurrentUnitForType','saveOfflineData','catch','COMPRESS_MUTATION_APPLY','NOT_FOUND','collab-text-anchor-','_startSheetCollabCursor','_timeoutTimer','CONNECTOR_DATA_TOO_LARGE','sheetID','_eventUnsubscribe','src','transformIMECache','disposeWithMe','[CollaborationUndoRedoService]','disableLocalCache','column','_instanceService','href','_transitionLocked','_unlockTransition','defIds','RECV','getFocusedUnit','actions','SYNCED','_init','_textBubble','LEAVE','33542gLdopn','collabSubmitChangesetUrl','IDLE','replaceTextRanges','_initUnitPermissionChange','_singleActiveUnitService','_ensureSubject','csRejEvent','onTransformChange$','_collabCursorController','c2Prime','initWorkbookPermissionChange','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','deleteCollaborator','registerBeforeClose','DeleteRangeMoveLeftCommandId','_shapes','originalMeta','_exhaustRemoteChangesetQueue','_getCtorByUniverType','_scheduleClearOtherTimer','sendChangesetTimeout','clipPath','isPermissionRej','_onCursorUpdate','appendMutation','_HTTPService','_telemetryService','ERROR_IMAGE_TYPE','_createInitialStateImpl','data','syncEditingCollabCursor','measureText','_updateCollabCursors','/universer-api/file/{fileID}/sign-url','open$','_collaborationSessionService','text','_onConnectionOpen','userID','history','_session','_members','append','auth.needGotoLoginAlert','editing\x20status\x20changed\x20to','getParam','complete','_drawTextRange','[CollaborationSessionService]:\x20socket\x20error','_substituteUndoStack','_ws','_uiPartsService','resourceIDs','getDocRanges','executeCommand','_registerRenderDependencies','params','override','extend','_incrementRevisionNumber','APPLY_REJECT','_showConflictNotification','none','permission.content','conflict','_clearLocalCache','from','[CollaborationSessionService]','off-line-single_clip0_910_343','_clearScheduledTask','_drawAnchor','Univer','parse','collaborators','SEND_CHANGESET_TIMEOUT','getMember','_toggleOnline','_handleEvent','getViewport','getTime','_colorIndex','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','findNodePositionByCharIndex','indexOf','collabStatus.offline','isActive','_getSaveTimeout','change$','encodeURIComponent','onPointerLeave$','univer-pro.collaboration-client-socket-service','CHANGESET_REJ','NEW_CHANGESETS','getMergeData','getCurrentRevOfUnit','getCurrent','_disabled','translate(.97)','hasOwnProperty','HELLO','enableAuthServer','unitId','backgroundColor','getOwnPropertyDescriptor','color','rev','onMouseMove','_initCommandExecutedListener','assignAColorForMemberID','find','_setupSubUnitSync','url(#off-line-single_clip0_910_343)','_handleHover','_selfUnitIDs','onCommandExecuted','permissionRejEvent','_disableEditing','refreshPermission','_onOffline','session.collaboration-timeout'];_0x3e77=function(){return _0x2809c6;};return _0x3e77();}import{SheetSkeletonManagerService as _0x50458d,VIEWPORT_KEY as _0x110cd3,getCoordByCell as _0x758db,getSheetObject as _0x1e3ad3,SheetPermissionInitController as _0x41b531}from'@univerjs/sheets-ui';import _0x50c735,{forwardRef as _0x449042,useRef as _0x100831,createElement as _0x52c8dd,useCallback as _0x31cd3d}from'react';import{IRemoteInstanceService as _0x33d6ac}from'@univerjs/rpc';import{getAttachHeader as _0x3ef04d}from'@univerjs-pro/license';const Sn='SNAPSHOT_SERVER_URL_KEY',pn=_0x4cb5f3(0x1bf),vn=_0x4cb5f3(0x1c1),La=_0x4cb5f3(0x3b2),In=0x7d0,En='COLLAB_WEB_SOCKET_URL',Cn='ws://127.0.0.1:8000/universer-api/comb/connect',bn=_0x4cb5f3(0x312),Tn=0x7530,Ls=_0x4cb5f3(0x4b7),$s=0x4e20,Rn=0x4e20,On=_0x4cb5f3(0x26f),Dn=0x3,wn=_0x4cb5f3(0x49c),Pn=0x3e8,yn=_0x4cb5f3(0x16b),Un=_0x4cb5f3(0x233),Nn=_0x4cb5f3(0x45c),Mn=_0x4cb5f3(0x437);var js=(_0x545548=>(_0x545548[_0x545548[_0x4cb5f3(0x3f3)]=0x0]='UNDEFINED',_0x545548[_0x545548['OK']=0x1]='OK',_0x545548[_0x545548['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x545548[_0x545548[_0x4cb5f3(0x1f5)]=0x3]=_0x4cb5f3(0x1f5),_0x545548[_0x545548['NOT_FOUND']=0x4]=_0x4cb5f3(0x34e),_0x545548[_0x545548[_0x4cb5f3(0x1cc)]=0x5]=_0x4cb5f3(0x1cc),_0x545548[_0x545548['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x545548[_0x545548['INVALID_ARGUMENT']=0x7]=_0x4cb5f3(0x487),_0x545548[_0x545548[_0x4cb5f3(0x1d2)]=0x8]=_0x4cb5f3(0x1d2),_0x545548[_0x545548['COMPLETION_FINISHED']=0x9]=_0x4cb5f3(0x241),_0x545548[_0x545548[_0x4cb5f3(0x449)]=0x1389]=_0x4cb5f3(0x449),_0x545548[_0x545548[_0x4cb5f3(0x46e)]=0x1771]=_0x4cb5f3(0x46e),_0x545548[_0x545548[_0x4cb5f3(0x1ee)]=0x1772]=_0x4cb5f3(0x1ee),_0x545548[_0x545548[_0x4cb5f3(0x147)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x545548[_0x545548[_0x4cb5f3(0x3a4)]=0x1b59]=_0x4cb5f3(0x3a4),_0x545548[_0x545548[_0x4cb5f3(0x32a)]=0x1b5a]=_0x4cb5f3(0x32a),_0x545548[_0x545548['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x545548[_0x545548[_0x4cb5f3(0x1c9)]=0x1b5c]=_0x4cb5f3(0x1c9),_0x545548[_0x545548[_0x4cb5f3(0x46d)]=0x1b5d]=_0x4cb5f3(0x46d),_0x545548[_0x545548['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4cb5f3(0x352),_0x545548[_0x545548[_0x4cb5f3(0x436)]=0x2329]=_0x4cb5f3(0x436),_0x545548[_0x545548['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x545548[_0x545548[_0x4cb5f3(0x2f6)]=0x232b]=_0x4cb5f3(0x2f6),_0x545548[_0x545548['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4cb5f3(0x4c6),_0x545548[_0x545548[_0x4cb5f3(0x167)]=0x232d]=_0x4cb5f3(0x167),_0x545548[_0x545548[_0x4cb5f3(0x21e)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x545548[_0x545548[_0x4cb5f3(0x1c3)]=0x2712]=_0x4cb5f3(0x1c3),_0x545548[_0x545548['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4cb5f3(0x1fa),_0x545548[_0x545548[_0x4cb5f3(0x2e0)]=0x2714]=_0x4cb5f3(0x2e0),_0x545548[_0x545548[_0x4cb5f3(0x1ef)]=-0x1]='UNRECOGNIZED',_0x545548))(js||{}),k=(_0x4c0883=>(_0x4c0883[_0x4c0883['UNIVER_UNKNOWN']=0x0]=_0x4cb5f3(0x2d8),_0x4c0883[_0x4c0883[_0x4cb5f3(0x148)]=0x1]=_0x4cb5f3(0x148),_0x4c0883[_0x4c0883[_0x4cb5f3(0x181)]=0x2]=_0x4cb5f3(0x181),_0x4c0883[_0x4c0883[_0x4cb5f3(0x470)]=0x3]=_0x4cb5f3(0x470),_0x4c0883[_0x4c0883['UNIVER_PROJECT']=0x4]=_0x4cb5f3(0x47a),_0x4c0883[_0x4c0883[_0x4cb5f3(0x1ef)]=-0x1]=_0x4cb5f3(0x1ef),_0x4c0883))(k||{}),I=(_0x19a445=>(_0x19a445[_0x19a445[_0x4cb5f3(0x15f)]=0x0]=_0x4cb5f3(0x15f),_0x19a445[_0x19a445[_0x4cb5f3(0x3cb)]=0x1]=_0x4cb5f3(0x3cb),_0x19a445[_0x19a445['JOIN']=0x2]=_0x4cb5f3(0x2f8),_0x19a445[_0x19a445[_0x4cb5f3(0x366)]=0x3]=_0x4cb5f3(0x366),_0x19a445[_0x19a445['INGEST']=0x4]='INGEST',_0x19a445[_0x19a445[_0x4cb5f3(0x1f3)]=0x5]='HEARTBEAT',_0x19a445[_0x19a445[_0x4cb5f3(0x360)]=0x6]=_0x4cb5f3(0x360),_0x19a445[_0x19a445[_0x4cb5f3(0x1ef)]=-0x1]='UNRECOGNIZED',_0x19a445))(I||{}),Vt=(_0x59ba57=>(_0x59ba57[_0x59ba57[_0x4cb5f3(0x4bd)]=0x0]='UNKNOWN_CODE',_0x59ba57[_0x59ba57['OK']=0x1]='OK',_0x59ba57[_0x59ba57[_0x4cb5f3(0x149)]=0x2]='FAIL',_0x59ba57[_0x59ba57[_0x4cb5f3(0x1ef)]=-0x1]=_0x4cb5f3(0x1ef),_0x59ba57))(Vt||{}),xs=(_0x554b35=>(_0x554b35[_0x554b35[_0x4cb5f3(0x440)]=0x0]=_0x4cb5f3(0x440),_0x554b35[_0x554b35[_0x4cb5f3(0x439)]=0x1]=_0x4cb5f3(0x439),_0x554b35[_0x554b35[_0x4cb5f3(0x4c3)]=0x2]=_0x4cb5f3(0x4c3),_0x554b35[_0x554b35[_0x4cb5f3(0x3f7)]=0x3]=_0x4cb5f3(0x3f7),_0x554b35[_0x554b35['UnitSnapshot']=0x4]=_0x4cb5f3(0x2b6),_0x554b35[_0x554b35[_0x4cb5f3(0x1ef)]=-0x1]=_0x4cb5f3(0x1ef),_0x554b35))(xs||{});const $='collaboration-client.config',An={};function Ln(_0x594b34){const _0x9a6757=_0x4cb5f3;var _0x3834ee,_0xc28488,_0x13e4f4,_0x101eee;const _0x2980fe=_0x594b34[_0x9a6757(0x385)],_0x43037e=JSON['parse'](_0x2980fe);switch(_0x43037e['cmd']){case I['HEARTBEAT']:case I[_0x9a6757(0x3cb)]:{const _0x2a98e3=_0x43037e['infoRsp'];return{..._0x43037e,'data':_0x2a98e3,'cmd':_0x43037e[_0x9a6757(0x3e8)]};}case I[_0x9a6757(0x2f8)]:{const _0x277d27=_0x43037e['joinRsp'];return{..._0x43037e,'data':_0x277d27,'cmd':_0x43037e[_0x9a6757(0x3e8)]};}case I[_0x9a6757(0x360)]:{const _0x4a0716=_0x43037e['collaMsg'];switch(_0x4a0716[_0x9a6757(0x347)]){case _0x53d369[_0x9a6757(0x478)]:return{..._0x43037e,'data':{..._0x4a0716,'data':(_0x3834ee=_0x4a0716[_0x9a6757(0x3db)])==null?void 0x0:_0x3834ee['cs']},'cmd':_0x43037e['cmd']};case _0x53d369['CHANGESET_ACK']:return{..._0x43037e,'data':{..._0x4a0716,'data':(_0xc28488=_0x4a0716[_0x9a6757(0x443)])==null?void 0x0:_0xc28488['cs']},'cmd':_0x43037e[_0x9a6757(0x3e8)]};case _0x53d369[_0x9a6757(0x3c4)]:return{..._0x43037e,'data':{..._0x4a0716,'data':(_0x13e4f4=_0x4a0716['newCsEvent'])==null?void 0x0:_0x13e4f4['cs']},'cmd':_0x43037e[_0x9a6757(0x3e8)]};case _0x53d369[_0x9a6757(0x3c3)]:return{..._0x43037e,'data':{..._0x4a0716,'data':(_0x101eee=_0x4a0716[_0x9a6757(0x36e)])==null?void 0x0:_0x101eee['cs']},'cmd':_0x43037e[_0x9a6757(0x3e8)]};case _0x53d369['UPDATE_CURSOR']:return{..._0x43037e,'data':{..._0x4a0716,'data':_0x4a0716[_0x9a6757(0x26e)]},'cmd':_0x43037e['cmd']};case _0x53d369[_0x9a6757(0x23a)]:return{..._0x43037e,'data':{..._0x4a0716,'data':_0x4a0716[_0x9a6757(0x1d5)]},'cmd':_0x43037e['cmd']};case _0x53d369[_0x9a6757(0x336)]:return{..._0x43037e,'data':{..._0x4a0716,'data':_0x4a0716[_0x9a6757(0x334)]},'cmd':_0x43037e[_0x9a6757(0x3e8)]};case _0x53d369['LIVESHARE_NEW_HOST']:return{..._0x43037e,'data':{..._0x4a0716,'data':_0x4a0716[_0x9a6757(0x1dc)]},'cmd':_0x43037e[_0x9a6757(0x3e8)]};case _0x53d369[_0x9a6757(0x4b5)]:case _0x53d369['LIVESHARE_OPERATION']:return{..._0x43037e,'data':{..._0x4a0716,'data':_0x4a0716['liveShareOperation']},'cmd':_0x43037e[_0x9a6757(0x3e8)]};case _0x53d369['LIVESHARE_TERMINATE']:return{..._0x43037e,'data':{..._0x4a0716,'data':_0x4a0716['liveShareNewHost']},'cmd':_0x43037e[_0x9a6757(0x3e8)]};case _0x53d369[_0x9a6757(0x2fa)]:return{..._0x43037e,'data':_0x4a0716,'cmd':_0x43037e[_0x9a6757(0x3e8)]};case _0x53d369[_0x9a6757(0x240)]:return{..._0x43037e,'data':{..._0x4a0716,'data':_0x4a0716[_0x9a6757(0x322)]},'cmd':_0x43037e[_0x9a6757(0x3e8)]};case _0x53d369['UPDATE_PERMISSION_OBJ']:return{..._0x43037e,'data':{..._0x4a0716,'data':_0x4a0716['updatePermissionObjEvent']},'cmd':_0x43037e[_0x9a6757(0x3e8)]};case _0x53d369['SHOULD_CLOSE_CONN']:return{..._0x43037e,'data':{..._0x4a0716,'data':_0x4a0716[_0x9a6757(0x20f)]},'cmd':_0x43037e[_0x9a6757(0x3e8)]};default:return _0x43037e;}}default:return _0x43037e;}}function $n(_0x49acb4){const _0x36efe8=_0x4cb5f3;switch(_0x49acb4[_0x36efe8(0x3e8)]){case I[_0x36efe8(0x1f3)]:case I[_0x36efe8(0x3cb)]:return JSON[_0x36efe8(0x2f3)]({'cmd':_0x49acb4['cmd'],'routeKey':_0x49acb4[_0x36efe8(0x337)]});case I[_0x36efe8(0x2f0)]:{let _0x5d1056;switch(_0x49acb4[_0x36efe8(0x385)][_0x36efe8(0x347)]){case _0x53d369[_0x36efe8(0x30f)]:{_0x5d1056={'eventID':_0x53d369[_0x36efe8(0x30f)],'updateCursorEvent':_0x49acb4[_0x36efe8(0x385)][_0x36efe8(0x385)]};break;}case _0x53d369[_0x36efe8(0x336)]:{_0x5d1056={'eventID':_0x53d369[_0x36efe8(0x336)],'leaveEvent':_0x49acb4[_0x36efe8(0x385)][_0x36efe8(0x385)]};break;}case _0x53d369[_0x36efe8(0x23a)]:{_0x5d1056={'eventID':_0x53d369[_0x36efe8(0x23a)],'joinEvent':_0x49acb4[_0x36efe8(0x385)]['data']};break;}case _0x53d369['LIVESHARE_NEW_HOST']:{_0x5d1056={'eventID':_0x53d369[_0x36efe8(0x456)],'liveShareNewHost':_0x49acb4[_0x36efe8(0x385)]['data']};break;}case _0x53d369[_0x36efe8(0x417)]:{_0x5d1056={'eventID':_0x53d369[_0x36efe8(0x417)],'liveShareOperation':_0x49acb4[_0x36efe8(0x385)][_0x36efe8(0x385)]};break;}case _0x53d369['LIVESHARE_TERMINATE']:{_0x5d1056={'eventID':_0x53d369['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x49acb4[_0x36efe8(0x385)]['data']};break;}case _0x53d369[_0x36efe8(0x1a2)]:{_0x5d1056={'eventID':_0x53d369[_0x36efe8(0x1a2)],'liveShareRequestHost':_0x49acb4[_0x36efe8(0x385)]['data']};break;}case _0x53d369[_0x36efe8(0x4b5)]:{_0x5d1056={'eventID':_0x53d369[_0x36efe8(0x4b5)]};break;}default:_0x5d1056={'eventID':_0x49acb4[_0x36efe8(0x385)][_0x36efe8(0x347)]};}return JSON[_0x36efe8(0x2f3)]({'cmd':_0x49acb4[_0x36efe8(0x3e8)],'routeKey':_0x49acb4['routeKey'],'collaMsg':_0x5d1056});}case I[_0x36efe8(0x2f8)]:return JSON['stringify']({'cmd':_0x49acb4['cmd'],'routeKey':_0x49acb4[_0x36efe8(0x337)],'joinReq':_0x49acb4['data']});case I[_0x36efe8(0x366)]:return JSON[_0x36efe8(0x2f3)]({'cmd':_0x49acb4['cmd'],'routeKey':_0x49acb4[_0x36efe8(0x337)],'leaveReq':_0x49acb4[_0x36efe8(0x385)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var jn=Object[_0x4cb5f3(0x1cd)],xn=Object[_0x4cb5f3(0x3cf)],Hn=(_0x1e7f3b,_0x32227f,_0x188a9f,_0x310f32)=>{const _0x53ee25=_0x4cb5f3;for(var _0x230561=_0x310f32>0x1?void 0x0:_0x310f32?xn(_0x32227f,_0x188a9f):_0x32227f,_0x3801d0=_0x1e7f3b[_0x53ee25(0x1ca)]-0x1,_0x2f15bd;_0x3801d0>=0x0;_0x3801d0--)(_0x2f15bd=_0x1e7f3b[_0x3801d0])&&(_0x230561=(_0x310f32?_0x2f15bd(_0x32227f,_0x188a9f,_0x230561):_0x2f15bd(_0x230561))||_0x230561);return _0x310f32&&_0x230561&&jn(_0x32227f,_0x188a9f,_0x230561),_0x230561;},Oe=(_0x11be40,_0x187516)=>(_0x1bcaa2,_0x577d78)=>_0x187516(_0x1bcaa2,_0x577d78,_0x11be40);const Hs=_0x2ac538(_0x4cb5f3(0x3c2));function kn(_0x21e6d5,_0x243842,_0x595669){const _0x79cdd7=_0x4cb5f3;return _0x21e6d5+'/'+_0x243842+_0x79cdd7(0x1bd)+_0x595669+'/new_changes';}let Ct=class extends _0x16e969{constructor(_0x30801d,_0x109509,_0x3f6e4f,_0x285455,_0x5ec299){const _0x3178c4=_0x4cb5f3;super(),this[_0x3178c4(0x335)]=_0x30801d,this[_0x3178c4(0x39a)]=_0x109509,this['_configService']=_0x3f6e4f,this[_0x3178c4(0x2ba)]=_0x285455,this['_snapshotServerService']=_0x5ec299;}[_0x4cb5f3(0x262)](_0x35ce71){const _0x22cdea=_0x4cb5f3,_0x451333=this[_0x22cdea(0x39a)][_0x22cdea(0x262)](_0x35ce71);if(!_0x451333)throw new Error(_0x22cdea(0x219));const _0x53bc49=new _0x1d2906(),_0x471e65=new _0x199c18();_0x53bc49[_0x22cdea(0x1cf)](_0x451333[_0x22cdea(0x450)]['subscribe'](_0x1ee6a6=>_0x471e65[_0x22cdea(0x201)](_0x1ee6a6))),_0x53bc49[_0x22cdea(0x1cf)](_0x3aebc7(()=>_0x471e65[_0x22cdea(0x396)]()));const _0xd24d0c=new _0x199c18();_0x53bc49['add'](_0x451333[_0x22cdea(0x18d)][_0x22cdea(0x2c5)](_0x4e9028=>_0xd24d0c[_0x22cdea(0x201)](_0x4e9028))),_0x53bc49[_0x22cdea(0x1cf)](_0x3aebc7(()=>_0xd24d0c[_0x22cdea(0x396)]()));const _0x3ad83f=new _0x199c18();_0x53bc49[_0x22cdea(0x1cf)](_0x451333[_0x22cdea(0x33b)][_0x22cdea(0x2c5)](_0x250386=>{const _0x2dfb5f=Ln(_0x250386);_0x3ad83f['next'](_0x2dfb5f);})),_0x53bc49['add'](_0x3aebc7(()=>_0x3ad83f[_0x22cdea(0x396)]()));let _0x2b25d1;const _0x40dbcb=()=>{const _0x2327e8=_0x22cdea;_0xd24d0c[_0x2327e8(0x201)](new Event(_0x2327e8(0x156))),_0x471e65['next'](new CloseEvent(_0x2327e8(0x156))),_0x2b25d1[_0x2327e8(0x1c5)]();};return _0x2b25d1={'memberID':'','close$':_0x471e65['asObservable'](),'error$':_0xd24d0c[_0x22cdea(0x414)](),'open$':_0x451333[_0x22cdea(0x38a)],'message$':_0x3ad83f['asObservable'](),'send':_0xd1952c=>{const _0x10de92=_0x22cdea;if(_0xd1952c['cmd']===I['INGEST']){if(_0xd1952c[_0x10de92(0x385)][_0x10de92(0x347)]===_0x53d369[_0x10de92(0x1eb)]){this[_0x10de92(0x1a4)](_0x2b25d1,_0xd1952c[_0x10de92(0x385)])[_0x10de92(0x34c)](_0x4ab54b=>{const _0x22206d=_0x10de92;this[_0x22206d(0x2ba)]['error'](_0x4ab54b),_0x40dbcb();});return;}if(_0xd1952c['data']['eventID']===_0x53d369[_0x10de92(0x497)]){const _0x2c281a=_0xd1952c['data'];this[_0x10de92(0x4a5)](_0x2c281a)[_0x10de92(0x1bb)](_0x18322b=>{const _0x2097ba=_0x10de92;_0x3ad83f[_0x2097ba(0x201)]({'cmd':I[_0x2097ba(0x360)],'code':Vt['OK'],'routeKey':_0x2c281a[_0x2097ba(0x385)][_0x2097ba(0x479)],'routeType':'','data':{'eventID':_0x53d369[_0x2097ba(0x1d0)],'data':{'changesets':_0x18322b}}});})[_0x10de92(0x34c)](_0x43d9e7=>{const _0x5f207b=_0x10de92;this[_0x5f207b(0x2ba)]['error'](_0x43d9e7),_0x40dbcb();});return;}}_0x451333['send']($n(_0xd1952c));},'close':()=>{const _0x588fcb=_0x22cdea;_0x451333[_0x588fcb(0x1c5)](),_0x53bc49[_0x588fcb(0x266)]();}},_0x2b25d1;}async[_0x4cb5f3(0x1a4)](_0x2b167b,_0x4bea28){const _0x3f5683=_0x4cb5f3;var _0x442d79,_0x57e918;const {unitType:_0x2c4338,unitID:_0x219e0b,changeset:_0x112656}=_0x4bea28['data'],_0x27d5fd={'unitID':_0x219e0b,'memberID':_0x2b167b['memberID'],'type':_0x2c4338,'changeset':_0x2302a8(_0x112656)},_0x3094b2=this[_0x3f5683(0x23d)][_0x3f5683(0x30c)](yn),_0x43a3d2=this['_configService']['getConfig']($),_0x46a57c=kn((_0x57e918=(_0x442d79=_0x43a3d2==null?void 0x0:_0x43a3d2[_0x3f5683(0x368)])!=null?_0x442d79:_0x3094b2)!=null?_0x57e918:Un,_0x2c4338,_0x219e0b);try{await this[_0x3f5683(0x335)]['post'](_0x46a57c,{'body':_0x27d5fd});}catch(_0x5a2967){throw this[_0x3f5683(0x2ba)][_0x3f5683(0x43b)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0x5a2967;}}async[_0x4cb5f3(0x4a5)](_0x188708){const _0x2f5aff=_0x4cb5f3,{unitID:_0x3f6e91,from:_0x1173c5,to:_0x295232,unitType:_0x413747}=_0x188708[_0x2f5aff(0x385)];return(await this[_0x2f5aff(0x230)][_0x2f5aff(0x345)]({'metadata':void 0x0},{'unitID':_0x3f6e91,'type':_0x413747,'from':_0x1173c5,'to':_0x295232}))['changesets'];}};Ct=Hn([Oe(0x0,_0x4b74b3(_0x4c760e)),Oe(0x1,_0x4b74b3(_0x389db0)),Oe(0x2,_0x5b8ed6),Oe(0x3,_0x155804),Oe(0x4,_0x57077d)],Ct);const Bn=_0x4cb5f3(0x19f);function Vn(_0x569667){const _0x43fa3f=_0x4cb5f3;return JSON[_0x43fa3f(0x2f3)](_0x569667)[_0x43fa3f(0x1ca)];}class ks{constructor(){const _0x7a0705=_0x4cb5f3;l(this,_0x7a0705(0x221),new _0x199c18()),l(this,'commentUpdate$',this[_0x7a0705(0x221)][_0x7a0705(0x414)]());}[_0x4cb5f3(0x25a)](_0x49354e){const _0x49824e=_0x4cb5f3;this['_commentUpdate$'][_0x49824e(0x201)](_0x49354e);}}var Fn=Object[_0x4cb5f3(0x1cd)],Wn=Object[_0x4cb5f3(0x3cf)],Gn=(_0x3ba266,_0x2c9972,_0x3d8e8e,_0x44659c)=>{for(var _0x29c144=_0x44659c>0x1?void 0x0:_0x44659c?Wn(_0x2c9972,_0x3d8e8e):_0x2c9972,_0x72bd1d=_0x3ba266['length']-0x1,_0x242257;_0x72bd1d>=0x0;_0x72bd1d--)(_0x242257=_0x3ba266[_0x72bd1d])&&(_0x29c144=(_0x44659c?_0x242257(_0x2c9972,_0x3d8e8e,_0x29c144):_0x242257(_0x29c144))||_0x29c144);return _0x44659c&&_0x29c144&&Fn(_0x2c9972,_0x3d8e8e,_0x29c144),_0x29c144;},as=(_0x726a13,_0x2a3633)=>(_0x4a199a,_0xe85a25)=>_0x2a3633(_0x4a199a,_0xe85a25,_0x726a13);let ce=class extends _0x16e969{constructor(_0x3a992a,_0x24122f){const _0x4ae311=_0x4cb5f3;super(),l(this,_0x4ae311(0x263),new Map()),(this[_0x4ae311(0x342)]=_0x3a992a,this[_0x4ae311(0x23b)]=_0x24122f,this[_0x4ae311(0x357)](_0x3aebc7(_0x42229f(this[_0x4ae311(0x342)][_0x4ae311(0x4b6)](_0x53ce88['UNIVER_SHEET'])[_0x4ae311(0x426)](_0x30fe4a(_0xd9343c=>_0xd9343c[_0x4ae311(0x310)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x53ce88['UNIVER_DOC'])[_0x4ae311(0x426)](_0x30fe4a(_0x5c215e=>_0x5c215e[_0x4ae311(0x310)]())),this[_0x4ae311(0x342)][_0x4ae311(0x4b6)](_0x53ce88[_0x4ae311(0x470)])[_0x4ae311(0x426)](_0x30fe4a(_0x42ed3b=>_0x42ed3b[_0x4ae311(0x310)]())))['subscribe'](_0x4ac940=>this['_removeRoom'](_0x4ac940)))));}['setCurrentUser'](_0x31b948){const _0x31d9ec=_0x4cb5f3;this[_0x31d9ec(0x23b)]['setCurrentUser'](_0x31b948);}[_0x4cb5f3(0x405)](){const _0x617e1c=_0x4cb5f3;return this[_0x617e1c(0x23b)]['getCurrentUser']();}[_0x4cb5f3(0x42d)](_0x2b9ca6,_0x5e3a32){const _0x444162=_0x4cb5f3;let _0x34b04c=this['_roomMembers'][_0x444162(0x157)](_0x2b9ca6);_0x34b04c||(_0x34b04c=new Yn(),this['_roomMembers'][_0x444162(0x24d)](_0x2b9ca6,_0x34b04c)),_0x34b04c[_0x444162(0x42d)](_0x5e3a32);}[_0x4cb5f3(0x3f2)](_0x52c335,_0x7ab92f){const _0x2f909d=_0x4cb5f3,_0x1c93a3=this[_0x2f909d(0x263)][_0x2f909d(0x157)](_0x52c335);_0x1c93a3&&_0x1c93a3[_0x2f909d(0x3f2)](_0x7ab92f);}['getRoom'](_0x547648){const _0xb86eb6=_0x4cb5f3;return this[_0xb86eb6(0x263)][_0xb86eb6(0x157)](_0x547648);}[_0x4cb5f3(0x3b3)](_0x2a50d2,_0x1443a4){const _0x11e29d=_0x4cb5f3,_0x5b1f95=this[_0x11e29d(0x263)][_0x11e29d(0x157)](_0x2a50d2);if(_0x5b1f95)return _0x5b1f95[_0x11e29d(0x3b3)](_0x1443a4);}['_removeRoom'](_0x130b66){const _0x5da6f7=_0x4cb5f3,_0xea46c5=this[_0x5da6f7(0x263)][_0x5da6f7(0x157)](_0x130b66);_0xea46c5&&(_0xea46c5['dispose'](),this['_roomMembers'][_0x5da6f7(0x40d)](_0x130b66));}[_0x4cb5f3(0x266)](){const _0xec132c=_0x4cb5f3;this[_0xec132c(0x263)][_0xec132c(0x2de)](_0x20391e=>_0x20391e[_0xec132c(0x266)]()),this[_0xec132c(0x263)]['clear']();}};ce=Gn([as(0x0,_0x350446),as(0x1,_0x4b74b3(_0x2d3f6a))],ce);class Yn extends _0x16e969{constructor(){const _0x105096=_0x4cb5f3;super(...arguments),l(this,_0x105096(0x391),new Map());}['dispose'](){const _0xffbb05=_0x4cb5f3;this[_0xffbb05(0x391)][_0xffbb05(0x4a4)]();}[_0x4cb5f3(0x42d)](_0x30a3dc){const _0x3da1fe=_0x4cb5f3;this[_0x3da1fe(0x391)][_0x3da1fe(0x24d)](_0x30a3dc[_0x3da1fe(0x430)],_0x30a3dc);}[_0x4cb5f3(0x3f2)](_0x15c855){this['_members']['delete'](_0x15c855);}[_0x4cb5f3(0x3b3)](_0x36deb5){return this['_members']['get'](_0x36deb5);}}var Kn=Object[_0x4cb5f3(0x1cd)],Xn=Object[_0x4cb5f3(0x3cf)],qn=(_0xab5f53,_0x32d842,_0x3ac7bc,_0x92bcb6)=>{for(var _0x55f9ac=_0x92bcb6>0x1?void 0x0:_0x92bcb6?Xn(_0x32d842,_0x3ac7bc):_0x32d842,_0x205693=_0xab5f53['length']-0x1,_0x2e68fa;_0x205693>=0x0;_0x205693--)(_0x2e68fa=_0xab5f53[_0x205693])&&(_0x55f9ac=(_0x92bcb6?_0x2e68fa(_0x32d842,_0x3ac7bc,_0x55f9ac):_0x2e68fa(_0x55f9ac))||_0x55f9ac);return _0x92bcb6&&_0x55f9ac&&Kn(_0x32d842,_0x3ac7bc,_0x55f9ac),_0x55f9ac;},J=(_0x4b66d0,_0x496888)=>(_0x13c0fb,_0x38f260)=>_0x496888(_0x13c0fb,_0x38f260,_0x4b66d0),Y=(_0x2ca473=>(_0x2ca473[_0x2ca473['IDLE']=0x0]='IDLE',_0x2ca473[_0x2ca473[_0x4cb5f3(0x29e)]=0x1]='JOINING',_0x2ca473[_0x2ca473[_0x4cb5f3(0x275)]=0x2]=_0x4cb5f3(0x275),_0x2ca473[_0x2ca473[_0x4cb5f3(0x498)]=0x3]=_0x4cb5f3(0x498),_0x2ca473))(Y||{});let bt=class extends _0x1384c9{constructor(_0x30caa3,_0x5da571,_0x380841,_0x4c9f9f,_0x40511d,_0xfc8e08,_0x1c6ed2,_0x2250f2,_0x167f85,_0x19bb94){const _0x4cef50=_0x4cb5f3;super(),l(this,_0x4cef50(0x462),new _0x61bb4(0x0)),l(this,_0x4cef50(0x2dc),this[_0x4cef50(0x462)][_0x4cef50(0x414)]()),l(this,_0x4cef50(0x47e),new _0x199c18()),l(this,_0x4cef50(0x2ec),this[_0x4cef50(0x47e)][_0x4cef50(0x414)]()),l(this,_0x4cef50(0x28b)),l(this,_0x4cef50(0x418)),l(this,_0x4cef50(0x469)),l(this,_0x4cef50(0x2a9),!0x1),l(this,'_telemetryInfo',null),(this[_0x4cef50(0x33d)]=_0x30caa3,this['_logService']=_0x380841,this['_beforeCloseService']=_0x4c9f9f,this['_messageService']=_0x40511d,this[_0x4cef50(0x23d)]=_0xfc8e08,this[_0x4cef50(0x1b6)]=_0x1c6ed2,this[_0x4cef50(0x2c6)]=_0x2250f2,this[_0x4cef50(0x2a1)]=_0x167f85,this[_0x4cef50(0x382)]=_0x19bb94,this['_shouldReportTelemetry']=!!this[_0x4cef50(0x382)],_0x5da571[_0x4cef50(0x426)](_0xa11cc5(this[_0x4cef50(0x2fd)]))[_0x4cef50(0x2c5)](_0x4ff951=>{const _0x192eab=_0x4cef50;var _0x2336d3;typeof _0x4ff951>'u'||(this[_0x192eab(0x28b)]=_0x4ff951,_0x4ff951?(this[_0x192eab(0x186)](_0x4ff951),this[_0x192eab(0x418)]=_0x4ff951[_0x192eab(0x33b)][_0x192eab(0x2c5)](_0x11b77e=>{const _0x225dd6=_0x192eab;_0x11b77e[_0x225dd6(0x337)]===this['_unitID']&&this[_0x225dd6(0x14b)](_0x11b77e);})):(this[_0x192eab(0x19c)](),this[_0x192eab(0x462)][_0x192eab(0x201)](0x2),(_0x2336d3=this[_0x192eab(0x418)])==null||_0x2336d3[_0x192eab(0x4ab)](),this[_0x192eab(0x418)]=null));}),this[_0x4cef50(0x357)](this[_0x4cef50(0x257)]['registerOnClose'](()=>{const _0x41c652=_0x4cef50;var _0x56259b;(_0x56259b=this[_0x41c652(0x28b)])==null||_0x56259b[_0x41c652(0x2d2)]({'cmd':I[_0x41c652(0x366)],'data':{'roomID':this['_unitID']}});})));}get[_0x4cb5f3(0x46c)](){return this['_sessionStatus$']['getValue']();}[_0x4cb5f3(0x2ef)](){const _0x997576=_0x4cb5f3;var _0x5b9c7f,_0x3c4c24;return(_0x3c4c24=(_0x5b9c7f=this['_socket'])==null?void 0x0:_0x5b9c7f[_0x997576(0x430)])!=null?_0x3c4c24:null;}[_0x4cb5f3(0x266)](){const _0x167674=_0x4cb5f3;super[_0x167674(0x266)](),this[_0x167674(0x2fd)][_0x167674(0x201)](),this['dispose$'][_0x167674(0x396)]();}[_0x4cb5f3(0x1c5)](){const _0x4798cf=_0x4cb5f3;var _0x168642,_0x219fb6;this[_0x4798cf(0x19c)](),(_0x168642=this['_socket'])==null||_0x168642[_0x4798cf(0x2d2)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x219fb6=this['_socket'])==null||_0x219fb6[_0x4798cf(0x1c5)](),this[_0x4798cf(0x47e)][_0x4798cf(0x396)](),this['_sessionStatus$'][_0x4798cf(0x396)](),this['dispose']();}[_0x4cb5f3(0x14b)](_0x2418eb){const _0x4648b7=_0x4cb5f3;_0x2418eb[_0x4648b7(0x3e8)]===I[_0x4648b7(0x2f8)]?this[_0x4648b7(0x48d)](_0x2418eb):_0x2418eb[_0x4648b7(0x3e8)]===I[_0x4648b7(0x360)]&&this[_0x4648b7(0x280)](_0x2418eb);}[_0x4cb5f3(0x186)](_0x5c0d3a){const _0x4649c4=_0x4cb5f3;this[_0x4649c4(0x462)][_0x4649c4(0x201)](0x1),_0x5c0d3a[_0x4649c4(0x2d2)]({'cmd':I[_0x4649c4(0x2f8)],'routeKey':this[_0x4649c4(0x33d)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x4cb5f3(0x48d)](_0x41d173){const _0x5eca76=_0x4cb5f3;var _0x44e8ea;if(_0x41d173[_0x5eca76(0x4b3)]===Vt[_0x5eca76(0x149)]){this[_0x5eca76(0x2ac)][_0x5eca76(0x490)]({'type':_0x1497b6[_0x5eca76(0x294)],'content':this[_0x5eca76(0x1b6)]['t'](_0x5eca76(0x15a))}),this[_0x5eca76(0x462)][_0x5eca76(0x201)](0x2);return;}this[_0x5eca76(0x462)][_0x5eca76(0x201)](0x3);const _0x35e41d=(_0x44e8ea=_0x41d173[_0x5eca76(0x385)][_0x5eca76(0x1da)][this['_unitID']])==null?void 0x0:_0x44e8ea[_0x5eca76(0x261)];_0x35e41d&&_0x35e41d[_0x5eca76(0x2de)](_0x53a7c9=>this['_memberService'][_0x5eca76(0x42d)](this[_0x5eca76(0x33d)],_0x53a7c9));}[_0x4cb5f3(0x280)](_0x75936f){const _0x3002a9=_0x4cb5f3;try{const _0x537a59=_0x75936f[_0x3002a9(0x385)];switch(_0x537a59[_0x3002a9(0x347)]){case _0x53d369[_0x3002a9(0x23a)]:this[_0x3002a9(0x2d1)](_0x537a59),this['_event$'][_0x3002a9(0x201)](_0x537a59);break;case _0x53d369[_0x3002a9(0x336)]:this[_0x3002a9(0x494)](_0x537a59),this[_0x3002a9(0x47e)][_0x3002a9(0x201)](_0x537a59);break;case _0x53d369[_0x3002a9(0x4a8)]:this[_0x3002a9(0x1e1)](),this[_0x3002a9(0x21c)](),this[_0x3002a9(0x47e)][_0x3002a9(0x201)](_0x537a59);break;case _0x53d369['MSG_FOR_ERROR']:this[_0x3002a9(0x2ba)]['error']('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x537a59)),this[_0x3002a9(0x47e)]['next'](_0x537a59);break;case _0x53d369['COMMENT_UPDATE']:this['_commentService'][_0x3002a9(0x25a)](_0x537a59[_0x3002a9(0x385)]),this[_0x3002a9(0x47e)]['next'](_0x537a59);break;default:this['_event$'][_0x3002a9(0x201)](_0x537a59);}}catch(_0x5773a1){this[_0x3002a9(0x2ba)][_0x3002a9(0x43b)](_0x5773a1,_0x75936f);}}[_0x4cb5f3(0x2d1)](_0x2f3c61){const _0x339a92=_0x4cb5f3;this['_memberService'][_0x339a92(0x42d)](this[_0x339a92(0x33d)],_0x2f3c61['data']);}[_0x4cb5f3(0x494)](_0x41c322){const _0x289299=_0x4cb5f3;this[_0x289299(0x2c6)][_0x289299(0x3f2)](this[_0x289299(0x33d)],_0x41c322[_0x289299(0x385)][_0x289299(0x430)]);}async[_0x4cb5f3(0x2d2)](_0x31a623,_0x1b0877){const _0x30dfb6=_0x4cb5f3;if(this[_0x30dfb6(0x46c)]!==0x3||!this[_0x30dfb6(0x28b)])throw new Error(_0x30dfb6(0x3fa));try{_0x31a623['eventID']===_0x53d369[_0x30dfb6(0x1eb)]&&(this[_0x30dfb6(0x1b1)](),this[_0x30dfb6(0x288)](_0x31a623)),this[_0x30dfb6(0x28b)][_0x30dfb6(0x2d2)]({'cmd':I[_0x30dfb6(0x2f0)],'routeKey':_0x1b0877,'routeType':'','data':_0x31a623});}catch(_0x5b5afe){this[_0x30dfb6(0x2ba)][_0x30dfb6(0x43b)](_0x5b5afe);}}[_0x4cb5f3(0x1b1)](){const _0x237a0b=_0x4cb5f3;var _0x117af3;this['_collaborationTimeoutTimer']=window[_0x237a0b(0x43e)](()=>{const _0x4bc5fb=_0x237a0b;this[_0x4bc5fb(0x469)]=null,this[_0x4bc5fb(0x2ac)][_0x4bc5fb(0x490)]({'type':_0x1497b6[_0x4bc5fb(0x1fd)],'content':this['_localeService']['t'](_0x4bc5fb(0x3df))});},(_0x117af3=this[_0x237a0b(0x23d)]['getConfig'](Ls))!=null?_0x117af3:$s);}['_clearCollaborationTimeoutTimer'](){const _0x95eca9=_0x4cb5f3;this[_0x95eca9(0x469)]&&(clearTimeout(this[_0x95eca9(0x469)]),this[_0x95eca9(0x469)]=null);}['_startTelemetryCollaborationNewChangeset'](_0xf5ffd2){const _0xc9f646=_0x4cb5f3;if(!this[_0xc9f646(0x2a9)])return;const {data:_0x55c5b8}=_0xf5ffd2,{unitID:_0x129905,changeset:_0xb057db}=_0x55c5b8,{mutations:_0xd9c8ff,type:_0x1feada}=_0xb057db;this[_0xc9f646(0x2c0)]={'unitId':_0x129905,'type':_0x1feada,'startTime':performance[_0xc9f646(0x1a5)](),'stopTime':0x0,'duration':0x0,'size':Vn(_0xd9c8ff)};}[_0x4cb5f3(0x1e1)](){const _0x3c6f15=_0x4cb5f3;if(this['_shouldReportTelemetry']){if(!this[_0x3c6f15(0x2c0)]){this[_0x3c6f15(0x2ba)][_0x3c6f15(0x43b)](_0x3c6f15(0x3f4),_0x3c6f15(0x313));return;}this[_0x3c6f15(0x2c0)][_0x3c6f15(0x235)]=performance[_0x3c6f15(0x1a5)](),this[_0x3c6f15(0x2c0)]['duration']=this['_telemetryInfo'][_0x3c6f15(0x235)]-this[_0x3c6f15(0x2c0)][_0x3c6f15(0x1e2)],this[_0x3c6f15(0x382)]['capture'](Bn,this[_0x3c6f15(0x2c0)]),this[_0x3c6f15(0x2c0)]=null;}}[_0x4cb5f3(0x19c)](){const _0x30333a=_0x4cb5f3;this[_0x30333a(0x2c0)]=null;}};bt=qn([J(0x2,_0x155804),J(0x3,_0x5ada1a),J(0x4,_0x2a280b),J(0x5,_0x5b8ed6),J(0x6,_0x4b74b3(_0x48132e)),J(0x7,_0x4b74b3(ce)),J(0x8,_0x4b74b3(ks)),J(0x9,_0x1765c1(_0x5bea2b))],bt);var Jn=Object[_0x4cb5f3(0x1cd)],zn=Object[_0x4cb5f3(0x3cf)],Zn=(_0x3e3bdd,_0xd032d7,_0x4ac100,_0xb2d075)=>{const _0x496e0a=_0x4cb5f3;for(var _0x18a0e9=_0xb2d075>0x1?void 0x0:_0xb2d075?zn(_0xd032d7,_0x4ac100):_0xd032d7,_0x2210dc=_0x3e3bdd[_0x496e0a(0x1ca)]-0x1,_0x1acce9;_0x2210dc>=0x0;_0x2210dc--)(_0x1acce9=_0x3e3bdd[_0x2210dc])&&(_0x18a0e9=(_0xb2d075?_0x1acce9(_0xd032d7,_0x4ac100,_0x18a0e9):_0x1acce9(_0x18a0e9))||_0x18a0e9);return _0xb2d075&&_0x18a0e9&&Jn(_0xd032d7,_0x4ac100,_0x18a0e9),_0x18a0e9;},fe=(_0x12582d,_0x4ab5b5)=>(_0x5ddade,_0xf7a975)=>_0x4ab5b5(_0x5ddade,_0xf7a975,_0x12582d);let he=class extends _0x16e969{constructor(_0x3595c6,_0x5c642a,_0x107fa6,_0x3387bd,_0x8a05a7,_0x204e2a){const _0x5ce77b=_0x4cb5f3;super(),l(this,'_socket$',new _0x61bb4(void 0x0)),l(this,_0x5ce77b(0x1cb),this[_0x5ce77b(0x323)][_0x5ce77b(0x414)]()),l(this,_0x5ce77b(0x4c7),null),l(this,'_sessions',new Map()),l(this,'_status$',new _0x61bb4(Y[_0x5ce77b(0x369)])),l(this,_0x5ce77b(0x2c1),this[_0x5ce77b(0x28d)][_0x5ce77b(0x414)]()),l(this,_0x5ce77b(0x4af),!0x1),l(this,_0x5ce77b(0x2a7)),l(this,'_retryCount',0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x5ce77b(0x351)),(this[_0x5ce77b(0x150)]=_0x3595c6,this[_0x5ce77b(0x1b6)]=_0x5c642a,this[_0x5ce77b(0x2ac)]=_0x107fa6,this['_logService']=_0x3387bd,this[_0x5ce77b(0x23d)]=_0x8a05a7,this[_0x5ce77b(0x1c6)]=_0x204e2a,this[_0x5ce77b(0x176)]());}get[_0x4cb5f3(0x28b)](){const _0x267a5a=_0x4cb5f3;return this[_0x267a5a(0x323)][_0x267a5a(0x1d4)]();}[_0x4cb5f3(0x176)](){const _0x50f339=_0x4cb5f3;this[_0x50f339(0x14d)](),this['_listenToOnlineEvent']();}[_0x4cb5f3(0x266)](){const _0x1faeac=_0x4cb5f3;super['dispose'](),this['_sessions'][_0x1faeac(0x2de)](_0x4feb6e=>_0x4feb6e[_0x1faeac(0x266)]()),this['_sessions'][_0x1faeac(0x4a4)](),this[_0x1faeac(0x28d)]['complete']();}async[_0x4cb5f3(0x1d8)](_0x3423ba){const _0x23584e=_0x4cb5f3;if(this['_sessions'][_0x23584e(0x30b)](_0x3423ba))return this[_0x23584e(0x325)][_0x23584e(0x157)](_0x3423ba);this[_0x23584e(0x411)]();const _0x54cad3=this[_0x23584e(0x150)]['createInstance'](bt,_0x3423ba,this[_0x23584e(0x323)]['asObservable']());return this[_0x23584e(0x325)]['set'](_0x3423ba,_0x54cad3),_0x54cad3;}[_0x4cb5f3(0x307)](_0x34eeea){const _0x52b7c2=_0x4cb5f3;var _0x51d4b4;const _0x294470=this[_0x52b7c2(0x325)][_0x52b7c2(0x157)](_0x34eeea);_0x294470&&(this[_0x52b7c2(0x325)][_0x52b7c2(0x40d)](_0x34eeea),_0x294470[_0x52b7c2(0x1c5)]()),this[_0x52b7c2(0x325)][_0x52b7c2(0x18b)]||(_0x51d4b4=this[_0x52b7c2(0x28b)])==null||_0x51d4b4[_0x52b7c2(0x1c5)]();}[_0x4cb5f3(0x400)](){const _0x1f6cea=_0x4cb5f3;this[_0x1f6cea(0x32f)]=0x0,this[_0x1f6cea(0x2a7)]!=null&&(clearTimeout(this[_0x1f6cea(0x2a7)]),this['_retryConnectingTimer']=null),this[_0x1f6cea(0x3e7)]();}[_0x4cb5f3(0x24f)](){const _0x528c14=_0x4cb5f3;var _0x3bcb77,_0x3e55d4;const _0x993d1f=this['_configService'][_0x528c14(0x30c)](En),_0x2a14b1=this['_configService'][_0x528c14(0x30c)]($),_0x29b675=(_0x3e55d4=(_0x3bcb77=_0x2a14b1==null?void 0x0:_0x2a14b1['collabWebSocketUrl'])!=null?_0x3bcb77:_0x993d1f)!=null?_0x3e55d4:Cn,_0x25b670=this['_socketService'][_0x528c14(0x262)](_0x29b675);return this['_candidateSocket']=_0x25b670,_0x25b670;}[_0x4cb5f3(0x411)](){const _0x3812ce=_0x4cb5f3;var _0x50d696,_0x319250;try{const _0x64c81d=(_0x319250=(_0x50d696=this['_socket'])!=null?_0x50d696:this['_candidateSocket'])!=null?_0x319250:this[_0x3812ce(0x24f)]();if(_0x64c81d){const _0x45e409=_0x64c81d[_0x3812ce(0x2d2)];_0x64c81d[_0x3812ce(0x2d2)]=_0x2e30a4=>(this[_0x3812ce(0x4c8)](),_0x45e409[_0x3812ce(0x41b)](_0x64c81d,[_0x2e30a4])),_0x64c81d[_0x3812ce(0x33b)]['subscribe'](_0x5ebb17=>this[_0x3812ce(0x2c8)](_0x64c81d,_0x5ebb17)),_0x64c81d[_0x3812ce(0x18d)][_0x3812ce(0x426)](_0x1744b3(0x1))['subscribe'](_0x1ce4c6=>this[_0x3812ce(0x2ba)][_0x3812ce(0x43b)](_0x3812ce(0x398),_0x1ce4c6)),_0x64c81d[_0x3812ce(0x38a)]['pipe'](_0x1744b3(0x1))[_0x3812ce(0x2c5)](()=>{const _0x34066a=_0x3812ce;this[_0x34066a(0x38d)](_0x64c81d);}),_0x64c81d[_0x3812ce(0x450)][_0x3812ce(0x426)](_0x1744b3(0x1))['subscribe'](_0x47fa29=>{const _0x3e9586=_0x3812ce;this['_logService'][_0x3e9586(0x1de)]('[CollaborationSessionService]',_0x3e9586(0x488),_0x47fa29),this['_onConnectionFailed']();});}}catch(_0x214365){this[_0x3812ce(0x2ba)][_0x3812ce(0x43b)](_0x214365),this[_0x3812ce(0x27a)]();}}[_0x4cb5f3(0x38d)](_0x23a9b6){const _0x1703e4=_0x4cb5f3;this[_0x1703e4(0x2ba)][_0x1703e4(0x1de)](_0x1703e4(0x3ab),_0x1703e4(0x1bc)),_0x23a9b6[_0x1703e4(0x2d2)]({'cmd':I[_0x1703e4(0x3cb)]}),this[_0x1703e4(0x4c8)]();}['_listenToOfflineEvent'](){const _0x265a4a=_0x4cb5f3;window['addEventListener'](_0x265a4a(0x19e),()=>this['_onOffline']());}[_0x4cb5f3(0x3de)](){const _0x38f381=_0x4cb5f3;this[_0x38f381(0x4af)]=!0x1,this[_0x38f381(0x4c7)]=null,this[_0x38f381(0x28d)]['next'](Y[_0x38f381(0x275)]),this[_0x38f381(0x323)][_0x38f381(0x201)](null),this['_clearTimeoutTimer'](),this[_0x38f381(0x255)]();}[_0x4cb5f3(0x27a)](){const _0x4cd873=_0x4cb5f3;var _0x4247ca;this[_0x4cd873(0x3de)](),this[_0x4cd873(0x32f)]<((_0x4247ca=this[_0x4cd873(0x23d)]['getConfig'](On))!=null?_0x4247ca:Dn)?(this[_0x4cd873(0x2ac)][_0x4cd873(0x490)]({'key':_0x4cd873(0x17a),'type':_0x1497b6[_0x4cd873(0x294)],'content':this[_0x4cd873(0x1b6)]['t'](_0x4cd873(0x1e3))}),this[_0x4cd873(0x3e7)]()):this[_0x4cd873(0x2ac)][_0x4cd873(0x490)]({'key':_0x4cd873(0x17a),'type':_0x1497b6['Error'],'content':this['_localeService']['t'](_0x4cd873(0x25e))});}[_0x4cb5f3(0x2d6)](){const _0xa44130=_0x4cb5f3,_0x1ad613=()=>{const _0x24162c=_0x2da6;this[_0x24162c(0x28b)]||this[_0x24162c(0x400)]();},_0x4aaf2c=()=>{const _0x64a70b=_0x2da6;this['_socket']||document[_0x64a70b(0x316)]===_0x64a70b(0x446)||this[_0x64a70b(0x400)]();};window[_0xa44130(0x483)](_0xa44130(0x243),_0x1ad613),document[_0xa44130(0x483)](_0xa44130(0x2a0),_0x4aaf2c);}['_tryReconnect'](){const _0x299b8c=_0x4cb5f3;var _0x3b06fc;const _0x5bd107=this['_retryCount'],_0x33aed1=this[_0x299b8c(0x23d)][_0x299b8c(0x30c)]($),_0x1804c2=_0x5bd107===0x0?0x0:((_0x3b06fc=_0x33aed1==null?void 0x0:_0x33aed1[_0x299b8c(0x2ce)])!=null?_0x3b06fc:Rn)*0x2**_0x5bd107;this[_0x299b8c(0x2a7)]=window[_0x299b8c(0x43e)](()=>{const _0x221f09=_0x299b8c;clearTimeout(this[_0x221f09(0x2a7)]),this[_0x221f09(0x2a7)]=null,this[_0x221f09(0x411)]();},_0x1804c2),this[_0x299b8c(0x32f)]+=0x1;}[_0x4cb5f3(0x2c8)](_0x5ef537,_0x563117){const _0x30c6b9=_0x4cb5f3,{cmd:_0x415df6}=_0x563117;_0x415df6===I[_0x30c6b9(0x3cb)]&&!this['_socketReady']&&(_0x5ef537[_0x30c6b9(0x430)]=_0x563117['data'][_0x30c6b9(0x430)],this[_0x30c6b9(0x323)][_0x30c6b9(0x201)](_0x5ef537),this[_0x30c6b9(0x28d)][_0x30c6b9(0x201)](Y[_0x30c6b9(0x498)]),this[_0x30c6b9(0x4af)]=!0x0,this[_0x30c6b9(0x4c7)]=null),_0x415df6===I['HEARTBEAT']&&this[_0x30c6b9(0x3f1)](),this[_0x30c6b9(0x4c8)]();}[_0x4cb5f3(0x4c8)](){const _0xb2aa52=_0x4cb5f3;var _0x23e45c;this[_0xb2aa52(0x255)](),this['_sendHeartbeatTimer']=window[_0xb2aa52(0x43e)](()=>this['_sendHeartbeat'](),(_0x23e45c=this['_configService'][_0xb2aa52(0x30c)](bn))!=null?_0x23e45c:Tn);}[_0x4cb5f3(0x4ac)](){const _0xc87573=_0x4cb5f3;this[_0xc87573(0x28b)][_0xc87573(0x2d2)]({'cmd':I[_0xc87573(0x1f3)]}),this['_waitForHeartbeatResponse']();}[_0x4cb5f3(0x252)](){const _0x5047c4=_0x4cb5f3;var _0x483418;this['_timeoutTimer']=window[_0x5047c4(0x43e)](()=>this[_0x5047c4(0x27a)](),(_0x483418=this[_0x5047c4(0x23d)][_0x5047c4(0x30c)](Ls))!=null?_0x483418:$s);}[_0x4cb5f3(0x255)](){const _0x280fdd=_0x4cb5f3;this[_0x280fdd(0x4a9)]!=null&&(clearTimeout(this[_0x280fdd(0x4a9)]),this[_0x280fdd(0x4a9)]=null);}[_0x4cb5f3(0x3f1)](){const _0x1eca90=_0x4cb5f3;this[_0x1eca90(0x351)]!=null&&(clearTimeout(this[_0x1eca90(0x351)]),this['_timeoutTimer']=null);}};he=Zn([fe(0x0,_0x4b74b3(_0xd20bac)),fe(0x1,_0x4b74b3(_0x48132e)),fe(0x2,_0x2a280b),fe(0x3,_0x155804),fe(0x4,_0x5b8ed6),fe(0x5,Hs)],he);function _0x2da6(_0x1a4f04,_0x122418){const _0x3e7726=_0x3e77();return _0x2da6=function(_0x2da6a,_0x1983f4){_0x2da6a=_0x2da6a-0x147;let _0x1950b5=_0x3e7726[_0x2da6a];return _0x1950b5;},_0x2da6(_0x1a4f04,_0x122418);}var b=[];for(var ct=0x0;ct<0x100;++ct)b[_0x4cb5f3(0x404)]((ct+0x100)['toString'](0x10)[_0x4cb5f3(0x464)](0x1));function Qn(_0x420baa,_0x1efc3b=0x0){return(b[_0x420baa[_0x1efc3b+0x0]]+b[_0x420baa[_0x1efc3b+0x1]]+b[_0x420baa[_0x1efc3b+0x2]]+b[_0x420baa[_0x1efc3b+0x3]]+'-'+b[_0x420baa[_0x1efc3b+0x4]]+b[_0x420baa[_0x1efc3b+0x5]]+'-'+b[_0x420baa[_0x1efc3b+0x6]]+b[_0x420baa[_0x1efc3b+0x7]]+'-'+b[_0x420baa[_0x1efc3b+0x8]]+b[_0x420baa[_0x1efc3b+0x9]]+'-'+b[_0x420baa[_0x1efc3b+0xa]]+b[_0x420baa[_0x1efc3b+0xb]]+b[_0x420baa[_0x1efc3b+0xc]]+b[_0x420baa[_0x1efc3b+0xd]]+b[_0x420baa[_0x1efc3b+0xe]]+b[_0x420baa[_0x1efc3b+0xf]])['toLowerCase']();}var He,er=new Uint8Array(0x10);function tr(){const _0x3abd6c=_0x4cb5f3;if(!He&&(He=typeof crypto<'u'&&crypto[_0x3abd6c(0x300)]&&crypto[_0x3abd6c(0x300)]['bind'](crypto),!He))throw new Error(_0x3abd6c(0x4c4));return He(er);}var sr=typeof crypto<'u'&&crypto[_0x4cb5f3(0x47d)]&&crypto[_0x4cb5f3(0x47d)][_0x4cb5f3(0x162)](crypto);const cs={'randomUUID':sr};function ir(_0x598818,_0x7d038e,_0x498f94){const _0x3c541e=_0x4cb5f3;if(cs[_0x3c541e(0x47d)]&&!_0x7d038e&&!_0x598818)return cs[_0x3c541e(0x47d)]();_0x598818=_0x598818||{};var _0x55afc4=_0x598818[_0x3c541e(0x229)]||(_0x598818['rng']||tr)();return _0x55afc4[0x6]=_0x55afc4[0x6]&0xf|0x40,_0x55afc4[0x8]=_0x55afc4[0x8]&0x3f|0x80,Qn(_0x55afc4);}var nr=Object[_0x4cb5f3(0x1cd)],rr=Object[_0x4cb5f3(0x3cf)],or=(_0x412367,_0x5a1de7,_0x5a5f52,_0x44cd75)=>{for(var _0x543551=_0x44cd75>0x1?void 0x0:_0x44cd75?rr(_0x5a1de7,_0x5a5f52):_0x5a1de7,_0x3df4be=_0x412367['length']-0x1,_0x3bb833;_0x3df4be>=0x0;_0x3df4be--)(_0x3bb833=_0x412367[_0x3df4be])&&(_0x543551=(_0x44cd75?_0x3bb833(_0x5a1de7,_0x5a5f52,_0x543551):_0x3bb833(_0x543551))||_0x543551);return _0x44cd75&&_0x543551&&nr(_0x5a1de7,_0x5a5f52,_0x543551),_0x543551;},ht=(_0x5202f7,_0x52f0d3)=>(_0x5a64f3,_0x4b1973)=>_0x52f0d3(_0x5a64f3,_0x4b1973,_0x5202f7);let Ye=class{constructor(_0x5d04a6,_0x2bd8bc,_0xa9b45a){const _0x2c1ccf=_0x4cb5f3;this[_0x2c1ccf(0x150)]=_0x5d04a6,this[_0x2c1ccf(0x2d5)]=_0x2bd8bc,this[_0x2c1ccf(0x3fc)]=_0xa9b45a;}['transformIMECache'](_0x1f1469){const _0x498c2c=_0x4cb5f3;this['_transformUndoRedoStack'](_0x1f1469),this[_0x498c2c(0x428)](_0x1f1469);}[_0x4cb5f3(0x29c)](_0x558d32){const _0x2ca9d9=_0x4cb5f3,{unitID:_0x29870c}=_0x558d32,_0x1a72be=this[_0x2ca9d9(0x3fc)]['getRenderById'](_0x29870c)[_0x2ca9d9(0x48b)](_0x3f1ed3),{redoCache:_0x402b83}=_0x1a72be[_0x2ca9d9(0x422)]();if(_0x402b83[_0x2ca9d9(0x1ca)]===0x0)return _0x558d32;let _0x28d502=_0x3f9d09['deepClone'](_0x558d32['mutations'][0x0]);for(let _0x4f91df=0x0;_0x4f91df<_0x402b83[_0x2ca9d9(0x1ca)];_0x4f91df++){const _0x12265d={'id':_0x2ca9d9(0x14f),'params':{..._0x402b83[_0x4f91df]}},_0x4ebea0=this[_0x2ca9d9(0x2d5)][_0x2ca9d9(0x1a0)](_0x28d502,_0x12265d,!0x1);if(_0x415d56(_0x4ebea0))throw _0x4ebea0[_0x2ca9d9(0x43b)];_0x28d502=_0x4ebea0[_0x2ca9d9(0x1b9)];}return{..._0x3f9d09['deepClone'](_0x558d32),'mutations':[_0x28d502]};}[_0x4cb5f3(0x2ff)](_0x195009){const _0x280218=_0x4cb5f3,{unitID:_0x1b35fd}=_0x195009,_0x50a012=this['_renderManagerService'][_0x280218(0x3ea)](_0x1b35fd)[_0x280218(0x48b)](_0x3f1ed3),{undoCache:_0x2725b7,redoCache:_0x49bb3d}=_0x50a012[_0x280218(0x422)]();if(_0x2725b7[_0x280218(0x1ca)]===0x0||_0x49bb3d[_0x280218(0x1ca)]===0x0)return;const _0x472899=[],_0x5e5012=[];let _0x2cf6c9=_0x3f9d09[_0x280218(0x2ea)](_0x195009[_0x280218(0x2b0)][0x0]),_0x5924c4=_0x3f9d09['deepClone'](_0x195009[_0x280218(0x2b0)][0x0]);for(let _0x33ac53=_0x2725b7[_0x280218(0x1ca)]-0x1;_0x33ac53>=0x0;_0x33ac53--){const _0x2c19c5={'id':'doc.mutation.rich-text-editing','params':{..._0x2725b7[_0x33ac53]}},_0x51d247={'id':_0x280218(0x14f),'params':{..._0x49bb3d[_0x33ac53]}},_0x3f0cc7=this['_transformService'][_0x280218(0x1a0)](_0x2cf6c9,_0x2c19c5,!0x1),_0x4b3e29=this[_0x280218(0x2d5)][_0x280218(0x1a0)](_0x5924c4,_0x51d247,!0x1);if(_0x415d56(_0x3f0cc7))throw _0x3f0cc7[_0x280218(0x43b)];if(_0x415d56(_0x4b3e29))throw _0x4b3e29['error'];_0x472899[_0x280218(0x434)](_0x3f0cc7[_0x280218(0x44c)][_0x280218(0x3a0)]),_0x5e5012[_0x280218(0x434)](_0x4b3e29[_0x280218(0x44c)][_0x280218(0x3a0)]),_0x2cf6c9=_0x3f0cc7['m1Prime'],_0x5924c4=_0x4b3e29['m1Prime'];}_0x50a012[_0x280218(0x29d)]({'undoCache':_0x472899,'redoCache':_0x5e5012});}[_0x4cb5f3(0x428)](_0x287e59){const _0x164546=_0x4cb5f3,{unitID:_0xdfd132}=_0x287e59,_0x4d2963=this[_0x164546(0x3fc)][_0x164546(0x3ea)](_0xdfd132)[_0x164546(0x48b)](_0x3f1ed3),_0x55c8c5=_0x4d2963[_0x164546(0x1f2)]();if(_0x55c8c5==null)return;const _0xe4f09=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x287e59[_0x164546(0x479)],'actions':null,'textRanges':[_0x55c8c5]}}],_0x2a5ee5=this[_0x164546(0x2d5)][_0x164546(0x467)](_0x287e59,_0xe4f09);if(!_0x35d529(_0x2a5ee5))throw _0x2a5ee5[_0x164546(0x43b)];const _0x29b126=_0x2a5ee5[_0x164546(0x44c)][0x0][_0x164546(0x3a0)][_0x164546(0x318)];Array[_0x164546(0x302)](_0x29b126)&&_0x29b126[_0x164546(0x1ca)]&&_0x4d2963['setActiveRange'](_0x29b126[0x0]);}};Ye=or([ht(0x0,_0x4b74b3(_0xd20bac)),ht(0x1,_0x38dddc),ht(0x2,_0x2bac38)],Ye);var ar=Object[_0x4cb5f3(0x1cd)],cr=Object[_0x4cb5f3(0x3cf)],hr=(_0x3018f9,_0x15fe57,_0x332292,_0x42c54d)=>{const _0x54025e=_0x4cb5f3;for(var _0x376ab3=_0x42c54d>0x1?void 0x0:_0x42c54d?cr(_0x15fe57,_0x332292):_0x15fe57,_0x2de45d=_0x3018f9[_0x54025e(0x1ca)]-0x1,_0x34f4ff;_0x2de45d>=0x0;_0x2de45d--)(_0x34f4ff=_0x3018f9[_0x2de45d])&&(_0x376ab3=(_0x42c54d?_0x34f4ff(_0x15fe57,_0x332292,_0x376ab3):_0x34f4ff(_0x376ab3))||_0x376ab3);return _0x42c54d&&_0x376ab3&&ar(_0x15fe57,_0x332292,_0x376ab3),_0x376ab3;},De=(_0x2c4081,_0x2d9f81)=>(_0x5a9f57,_0x353944)=>_0x2d9f81(_0x5a9f57,_0x353944,_0x2c4081);let w=class extends _0x16e969{constructor(_0x52b548,_0x324c12,_0x537a4a,_0x2f948b,_0x4a1397){const _0x4e644a=_0x4cb5f3;super(),l(this,'_cachedData',new Map()),l(this,_0x4e644a(0x1a7),new Map()),l(this,_0x4e644a(0x3c8),!0x1),(this['_configService']=_0x52b548,this[_0x4e644a(0x45b)]=_0x324c12,this[_0x4e644a(0x257)]=_0x537a4a,this[_0x4e644a(0x1b6)]=_0x2f948b,this[_0x4e644a(0x1f6)]=_0x4a1397,this[_0x4e644a(0x343)]());}[_0x4cb5f3(0x359)](){const _0x4de3dc=_0x4cb5f3;this[_0x4de3dc(0x3c8)]=!0x0;}['enableLocalCache'](){const _0x17eb99=_0x4cb5f3;this[_0x17eb99(0x3c8)]=!0x1;}[_0x4cb5f3(0x266)](){const _0x3f69d2=_0x4cb5f3;this[_0x3f69d2(0x2cb)]()[_0x3f69d2(0x1bb)](()=>super[_0x3f69d2(0x266)]());}async[_0x4cb5f3(0x33f)](_0x1908dd){const _0x47d010=_0x4cb5f3;return this[_0x47d010(0x3c8)]?null:this['_localStorageService'][_0x47d010(0x29f)](hs(_0x1908dd));}async[_0x4cb5f3(0x34b)](_0x1e8152,_0x47f24e){const _0x4da053=_0x4cb5f3;return!!this[_0x4da053(0x45b)][_0x4da053(0x44b)](_0x1e8152,_0x47f24e);}[_0x4cb5f3(0x249)](_0x2dd527,_0xdf9d90,_0x4c64d3,_0x22c03f){const _0x3744b9=_0x4cb5f3,_0x42d15e=this[_0x3744b9(0x1f6)][_0x3744b9(0x3c6)](_0x2dd527);this[_0x3744b9(0x2e1)]['set'](_0x2dd527,{'unitID':_0x2dd527,'type':_0xdf9d90,'awaitingChangeset':_0x4c64d3,'mutations':_0x22c03f,'rev':_0x42d15e}),this['_saveTaskMap']['has'](_0x2dd527)||this[_0x3744b9(0x190)](_0x2dd527);}[_0x4cb5f3(0x190)](_0x1a038b){const _0x20bb67=_0x4cb5f3,_0x5dc275=this[_0x20bb67(0x3be)]();_0x5dc275===0x0?this['_saveCache'](_0x1a038b):this[_0x20bb67(0x1a7)][_0x20bb67(0x24d)](_0x1a038b,setTimeout(()=>this['_saveCache'](_0x1a038b),_0x5dc275));}[_0x4cb5f3(0x3be)](){const _0x584f4d=_0x4cb5f3;var _0x405cea;return(_0x405cea=this[_0x584f4d(0x23d)][_0x584f4d(0x30c)](wn))!=null?_0x405cea:Pn;}[_0x4cb5f3(0x2da)](_0x254b04){const _0x41badc=_0x4cb5f3,_0x3d9d0b=this[_0x41badc(0x1a7)][_0x41badc(0x157)](_0x254b04);return _0x3d9d0b!==void 0x0&&window[_0x41badc(0x346)](_0x3d9d0b),this[_0x41badc(0x45b)][_0x41badc(0x44b)](hs(_0x254b04),this[_0x41badc(0x2e1)][_0x41badc(0x157)](_0x254b04))['then'](()=>this[_0x41badc(0x1a7)][_0x41badc(0x40d)](_0x254b04));}async[_0x4cb5f3(0x2cb)](){const _0x5773ce=_0x4cb5f3,_0x14b3b5=[];this[_0x5773ce(0x1a7)][_0x5773ce(0x2de)]((_0x559eb6,_0x49709e)=>{const _0x17862e=_0x5773ce;window[_0x17862e(0x346)](_0x559eb6),_0x14b3b5['push'](this[_0x17862e(0x2da)](_0x49709e)[_0x17862e(0x1bb)](()=>{const _0x494a5e=_0x17862e;this[_0x494a5e(0x1a7)][_0x494a5e(0x40d)](_0x49709e);}));}),await Promise['all'](_0x14b3b5);}[_0x4cb5f3(0x343)](){const _0x4867e5=_0x4cb5f3;this['disposeWithMe'](this[_0x4867e5(0x257)][_0x4867e5(0x375)](()=>{const _0x4771ff=_0x4867e5;if(this[_0x4771ff(0x1a7)][_0x4771ff(0x18b)])return this[_0x4771ff(0x1b6)]['t'](_0x4771ff(0x185));}));}};w=hr([De(0x0,_0x5b8ed6),De(0x1,_0x303a7c),De(0x2,_0x5ada1a),De(0x3,_0x4b74b3(_0x48132e)),De(0x4,_0x4b74b3(_0x48c63a))],w);function hs(_0x3dd151){const _0x5c5caa=_0x4cb5f3;return _0x5c5caa(0x27f)+_0x3dd151;}var lr=Object[_0x4cb5f3(0x1cd)],_r=Object['getOwnPropertyDescriptor'],ur=(_0x4f25fa,_0x1a6eb1,_0x1562e8,_0x40e608)=>{const _0x7b9510=_0x4cb5f3;for(var _0x23bf56=_0x40e608>0x1?void 0x0:_0x40e608?_r(_0x1a6eb1,_0x1562e8):_0x1a6eb1,_0x1bc374=_0x4f25fa[_0x7b9510(0x1ca)]-0x1,_0x36e33f;_0x1bc374>=0x0;_0x1bc374--)(_0x36e33f=_0x4f25fa[_0x1bc374])&&(_0x23bf56=(_0x40e608?_0x36e33f(_0x1a6eb1,_0x1562e8,_0x23bf56):_0x36e33f(_0x23bf56))||_0x23bf56);return _0x40e608&&_0x23bf56&&lr(_0x1a6eb1,_0x1562e8,_0x23bf56),_0x23bf56;},lt=(_0x1f95ba,_0x16d78a)=>(_0xb4f522,_0x1121d4)=>_0x16d78a(_0xb4f522,_0x1121d4,_0x1f95ba);function dr(_0x58c62b){const {unitID:_0x28c839,mutations:_0x9bc0ed}=_0x58c62b;return{'unitId':_0x28c839,'subUnitId':_0x9bc0ed[0x0]['params']['subUnitId']};}let Ke=class{constructor(_0x240df0,_0x5703b4,_0x56b2c5){const _0x31a36=_0x4cb5f3;this[_0x31a36(0x150)]=_0x240df0,this[_0x31a36(0x2d5)]=_0x5703b4,this[_0x31a36(0x35b)]=_0x56b2c5;}[_0x4cb5f3(0x2e4)](_0x574ec3){const _0x24f0f4=_0x4cb5f3;var _0x3a0150,_0x1e6ff7,_0x56806a,_0x454a19;const _0x1a6051=this[_0x24f0f4(0x150)][_0x24f0f4(0x157)](_0x359359),{unitId:_0x431d30,subUnitId:_0x4827ad}=dr(_0x574ec3),_0x3aa3b3=_0x1a6051[_0x24f0f4(0x3e5)](_0x431d30)[_0x24f0f4(0x166)](),_0x56e5a6=(_0x1e6ff7=(_0x3a0150=this[_0x24f0f4(0x35b)]['getUnit'](_0x431d30))==null?void 0x0:_0x3a0150[_0x24f0f4(0x47c)]())==null?void 0x0:_0x1e6ff7[_0x24f0f4(0x419)]();if(_0x3aa3b3['length']===0x0||!_0x431d30||!_0x4827ad)return;const _0x3f1af7=[{'id':_0x51552b['id'],'params':{'unitId':_0x431d30,'subUnitId':_0x56e5a6,'selections':_0x3f9d09['deepClone'](_0x3aa3b3)}}],_0x597236=this['_transformService'][_0x24f0f4(0x467)](_0x574ec3,_0x3f1af7);if(!_0x35d529(_0x597236))throw _0x597236['error'];const _0x5b2723=(_0x454a19=(_0x56806a=_0x597236[_0x24f0f4(0x44c)][0x0])==null?void 0x0:_0x56806a[_0x24f0f4(0x3a0)])==null?void 0x0:_0x454a19[_0x24f0f4(0x244)];Array[_0x24f0f4(0x302)](_0x5b2723)&&_0x5b2723['length']&&this[_0x24f0f4(0x150)][_0x24f0f4(0x157)](_0x155531)[_0x24f0f4(0x39e)](_0x51552b['id'],{'unitId':_0x431d30,'subUnitId':_0x56e5a6,'selections':_0x5b2723});}};Ke=ur([lt(0x0,_0x4b74b3(_0xd20bac)),lt(0x1,_0x38dddc),lt(0x2,_0x350446)],Ke);const tt=_0x2ac538(_0x4cb5f3(0x45d));var Bs=(_0x452f70=>(_0x452f70[_0x452f70['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x4cb5f3(0x248),_0x452f70[_0x452f70[_0x4cb5f3(0x329)]=0x1]='OTHER_CLIENTS_EDITING',_0x452f70))(Bs||{});const ls=0x7530,_s='ACTIVE_UNIT_EVENT_CHANNEL';class fr extends _0x16e969{constructor(){const _0x505473=_0x4cb5f3;super(),l(this,_0x505473(0x274),_0x3f9d09[_0x505473(0x238)]()),l(this,_0x505473(0x3d9),new Set()),l(this,_0x505473(0x2fe),new Map()),l(this,_0x505473(0x42a),null),l(this,_0x505473(0x2db),new Map()),l(this,_0x505473(0x4ca),new Map()),this['_init']();}[_0x4cb5f3(0x266)](){const _0x38d75a=_0x4cb5f3;super[_0x38d75a(0x266)](),this[_0x38d75a(0x2db)][_0x38d75a(0x2de)]((_0x3e1171,_0x2a1e10)=>this[_0x38d75a(0x458)](_0x2a1e10)),this['_heartbeatTimer']&&window[_0x38d75a(0x493)](this['_heartbeatTimer']);}[_0x4cb5f3(0x1ff)](_0x4ce039){const _0x2ba33e=_0x4cb5f3;return this[_0x2ba33e(0x36d)](_0x4ce039)[_0x2ba33e(0x426)](_0x384a07());}[_0x4cb5f3(0x22c)](_0xd461b3){const _0x2fafb7=_0x4cb5f3;this[_0x2fafb7(0x3d9)][_0x2fafb7(0x18b)]===0x0&&this['_scheduleHeartbeat'](),this[_0x2fafb7(0x3d9)][_0x2fafb7(0x1cf)](_0xd461b3),this[_0x2fafb7(0x491)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xd461b3],'isForwarded':!0x1});}[_0x4cb5f3(0x4c1)](_0x2c70f7){const _0x2fff4c=_0x4cb5f3;this[_0x2fff4c(0x3d9)]['delete'](_0x2c70f7),this[_0x2fff4c(0x3d9)]['size']===0x0&&this[_0x2fff4c(0x42a)]&&window[_0x2fff4c(0x493)](this[_0x2fff4c(0x42a)]);}['_init'](){const _0x1c3568=_0x4cb5f3;this[_0x1c3568(0x357)](_0x3aebc7(_0x4b5d6d(window,_0x1c3568(0x250))[_0x1c3568(0x2c5)](_0x19a778=>{const _0x3692bb=_0x1c3568;if(_0x19a778['key']!==_s||!_0x19a778[_0x3692bb(0x2be)])return;const _0x57d3f5=JSON[_0x3692bb(0x3b0)](_0x19a778['newValue']);this[_0x3692bb(0x3b5)](_0x57d3f5);}))),window[_0x1c3568(0x483)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x1c3568(0x274)],'unitIDs':Array['from'](this[_0x1c3568(0x3d9)])}));}[_0x4cb5f3(0x3b5)](_0x4e8de5){const _0x4406b8=_0x4cb5f3;switch(_0x4e8de5[_0x4406b8(0x2c4)]){case 0x0:this[_0x4406b8(0x425)](_0x4e8de5);break;case 0x1:this[_0x4406b8(0x18c)](_0x4e8de5);break;case 0x2:this[_0x4406b8(0x3e3)](_0x4e8de5);break;}}[_0x4cb5f3(0x425)](_0x35822a){const _0x249d7c=_0x4cb5f3,{unitIDs:_0x486d56,memberID:_0x492af7,isForwarded:_0x12cff2}=_0x35822a;_0x486d56['forEach'](_0x5d6185=>{const _0x1e4ec4=_0x2da6;if(!_0x12cff2&&this[_0x1e4ec4(0x2fe)][_0x1e4ec4(0x30b)](_0x5d6185)&&this[_0x1e4ec4(0x36d)](_0x5d6185)[_0x1e4ec4(0x201)](0x1),!this[_0x1e4ec4(0x2fe)]['has'](_0x5d6185)||!this[_0x1e4ec4(0x2fe)]['get'](_0x5d6185)[_0x1e4ec4(0x30b)](_0x492af7)){const _0x1b859b=this[_0x1e4ec4(0x2fe)][_0x1e4ec4(0x157)](_0x5d6185)||new Set();_0x1b859b['add'](_0x492af7),this[_0x1e4ec4(0x2fe)][_0x1e4ec4(0x24d)](_0x5d6185,_0x1b859b),this['_scheduleClearOtherTimer'](_0x492af7);}}),_0x12cff2||this[_0x249d7c(0x491)]({'type':0x0,'memberID':this[_0x249d7c(0x274)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4cb5f3(0x37b)](_0x1f154b){const _0x767a8c=_0x4cb5f3;this[_0x767a8c(0x458)](_0x1f154b);const _0x29f63e=window[_0x767a8c(0x43e)](()=>{const _0x46e87d=_0x767a8c;this[_0x46e87d(0x2fe)][_0x46e87d(0x2de)](_0x4514f3=>{const _0x5af929=_0x46e87d;_0x4514f3[_0x5af929(0x40d)](_0x1f154b);});},ls*0x2);this[_0x767a8c(0x2db)][_0x767a8c(0x24d)](_0x1f154b,_0x29f63e);}['_removeClearOtherTimer'](_0x7da5b5){const _0x252f2d=_0x4cb5f3;if(this[_0x252f2d(0x2db)]['has'](_0x7da5b5)){const _0x5cda6b=this[_0x252f2d(0x2db)][_0x252f2d(0x157)](_0x7da5b5);_0x5cda6b&&window['clearTimeout'](_0x5cda6b),this[_0x252f2d(0x2db)][_0x252f2d(0x24d)](_0x7da5b5,null);}}[_0x4cb5f3(0x18c)](_0x5303a6){const _0x2d34e8=_0x4cb5f3,{memberID:_0x43bee6,unitIDs:_0x3fa6b1}=_0x5303a6;_0x3fa6b1[_0x2d34e8(0x2de)](_0x4de5a4=>{const _0x3d21a7=_0x2d34e8;var _0x503eec;const _0x5b7811=this[_0x3d21a7(0x2fe)][_0x3d21a7(0x157)](_0x4de5a4);_0x5b7811&&(_0x5b7811[_0x3d21a7(0x40d)](_0x43bee6),(_0x503eec=this[_0x3d21a7(0x36d)](_0x4de5a4))==null||_0x503eec['next'](_0x5b7811['size']===0x0?0x0:0x1));}),this[_0x2d34e8(0x458)](_0x43bee6);}[_0x4cb5f3(0x3e3)](_0x219ff1){const _0x4f5ef6=_0x4cb5f3;this[_0x4f5ef6(0x37b)](_0x219ff1['memberID']);}[_0x4cb5f3(0x491)](_0x318eae){const _0x3f3548=_0x4cb5f3;localStorage[_0x3f3548(0x44b)](_s,JSON['stringify'](_0x318eae));}['_scheduleHeartbeat'](){const _0x2d4acb=_0x4cb5f3;this[_0x2d4acb(0x42a)]=window[_0x2d4acb(0x20a)](()=>{const _0x539061=_0x2d4acb;this['_send']({'type':0x2,'memberID':this[_0x539061(0x274)]});},ls);}[_0x4cb5f3(0x36d)](_0x2f5e74){const _0x5ddb64=_0x4cb5f3;return this[_0x5ddb64(0x4ca)][_0x5ddb64(0x30b)](_0x2f5e74)||this[_0x5ddb64(0x4ca)]['set'](_0x2f5e74,new _0x61bb4(0x0)),this[_0x5ddb64(0x4ca)][_0x5ddb64(0x157)](_0x2f5e74);}}function Vs(_0x416428){let _0x1506f8='';for(const _0x3fa6d7 of _0x416428){const {startOffset:_0x4a4f35,endOffset:_0x47c3a5,isActive:_0x50cee3}=_0x3fa6d7;_0x1506f8['length']&&(_0x1506f8+=','),_0x1506f8+=_0x4a4f35+':'+_0x47c3a5+':'+(_0x50cee3?'1':'0');}return _0x1506f8;}function mr(_0x16ec84){const _0x24b2ea=_0x4cb5f3,_0x289adb=_0x16ec84[_0x24b2ea(0x484)](','),_0x2d714e=[];for(const _0x50a2a5 of _0x289adb){const [_0x38e2ff,_0xec319c,_0x458bd9]=_0x50a2a5['split'](':');_0x2d714e['push']({'startOffset':Number(_0x38e2ff),'endOffset':Number(_0xec319c),'collapsed':_0x38e2ff===_0xec319c,'isActive':_0x458bd9==='1'});}return _0x2d714e[_0x24b2ea(0x269)](_0x38b604=>_0x38b604[_0x24b2ea(0x3bd)])||(_0x2d714e[0x0][_0x24b2ea(0x3bd)]=!0x0),_0x2d714e;}class Ft extends _0x1384c9{constructor(){const _0x4a6495=_0x4cb5f3;super(...arguments),l(this,_0x4a6495(0x4ad),new _0x61bb4(null)),l(this,_0x4a6495(0x27e),this[_0x4a6495(0x4ad)][_0x4a6495(0x414)]());}[_0x4cb5f3(0x386)](_0x214eb8){const _0x404ce4=_0x4cb5f3,{unitID:_0x434132,memberID:_0x4284bb,textRanges:_0x3c7260}=_0x214eb8,_0x7f5d82=Vs(_0x3c7260),_0x4856a4={'unitID':_0x434132,'memberID':_0x4284bb,'selection':_0x7f5d82};this[_0x404ce4(0x4ad)][_0x404ce4(0x201)](_0x4856a4);}}var gr=Object[_0x4cb5f3(0x1cd)],Sr=Object[_0x4cb5f3(0x3cf)],pr=(_0xce99cb,_0x42a64e,_0x5bc50b,_0x48bcd1)=>{for(var _0x18156a=_0x48bcd1>0x1?void 0x0:_0x48bcd1?Sr(_0x42a64e,_0x5bc50b):_0x42a64e,_0x213e4f=_0xce99cb['length']-0x1,_0x2814d0;_0x213e4f>=0x0;_0x213e4f--)(_0x2814d0=_0xce99cb[_0x213e4f])&&(_0x18156a=(_0x48bcd1?_0x2814d0(_0x42a64e,_0x5bc50b,_0x18156a):_0x2814d0(_0x18156a))||_0x18156a);return _0x48bcd1&&_0x18156a&&gr(_0x42a64e,_0x5bc50b,_0x18156a),_0x18156a;},us=(_0xcbd17,_0x4835ad)=>(_0x32c341,_0x1ef872)=>_0x4835ad(_0x32c341,_0x1ef872,_0xcbd17);let Xe=class{constructor(_0x27603f,_0x87ecec){const _0x1f412b=_0x4cb5f3;this[_0x1f412b(0x150)]=_0x27603f,this[_0x1f412b(0x2d5)]=_0x87ecec;}[_0x4cb5f3(0x2e4)](_0x1551b0){const _0x1b56dd=_0x4cb5f3;var _0x31fdca;const _0x389ece=this['_injector'][_0x1b56dd(0x157)](_0x40030b),_0x4f3b7c=(_0x31fdca=_0x389ece[_0x1b56dd(0x39d)]())!=null?_0x31fdca:[];if(_0x4f3b7c[_0x1b56dd(0x1ca)]===0x0)return;const _0x1be6bc=[{'id':_0x1b56dd(0x14f),'params':{'unitId':_0x1551b0['unitID'],'actions':null,'textRanges':_0x4f3b7c}}],_0x4d1077=this[_0x1b56dd(0x2d5)][_0x1b56dd(0x467)](_0x1551b0,_0x1be6bc);if(!_0x35d529(_0x4d1077))throw _0x4d1077[_0x1b56dd(0x43b)];const _0x2dd0de=_0x4d1077[_0x1b56dd(0x44c)][0x0]['params']['textRanges'];Array['isArray'](_0x2dd0de)&&_0x2dd0de['length']&&_0x389ece[_0x1b56dd(0x36a)](_0x2dd0de,!0x1);}};Xe=pr([us(0x0,_0x4b74b3(_0xd20bac)),us(0x1,_0x38dddc)],Xe);const vr=new Set([_0x3ce46e['id']]);function ds(_0x56782a,_0x8ad76b,_0x11734f,_0x19744c,_0xdcb44a){const _0x10543c=_0x4cb5f3;var _0x18fee3,_0x156c01,_0x507f1d,_0x49e1fb;const _0x34f0b6=[];for(const _0x1a760c of _0x56782a)if(vr[_0x10543c(0x30b)](_0x1a760c['id'])){if(_0x34f0b6[_0x10543c(0x1ca)]>0x0)break;_0x34f0b6[_0x10543c(0x404)](_0x1a760c);break;}else _0x34f0b6[_0x10543c(0x404)](_0x1a760c);const _0x32ca72=(_0x156c01=(_0x18fee3=_0xdcb44a[_0x10543c(0x405)]())==null?void 0x0:_0x18fee3[_0x10543c(0x38e)])!=null?_0x156c01:_0x10543c(0x451),_0xe27aec=(_0x49e1fb=(_0x507f1d=_0xdcb44a[_0x10543c(0x405)]())==null?void 0x0:_0x507f1d[_0x10543c(0x430)])!=null?_0x49e1fb:_0x10543c(0x451);return{'changeset':{'unitID':_0x8ad76b,'type':_0x492f73(_0x11734f[_0x10543c(0x432)](_0x8ad76b)),'baseRev':_0x19744c[_0x10543c(0x3c6)](_0x8ad76b),'revision':0x0,'userID':_0x32ca72,'memberID':_0xe27aec,'mutations':_0x34f0b6},'pendingMutations':_0x56782a['slice'](_0x34f0b6[_0x10543c(0x1ca)])};}function Ir(_0x21b4b7,_0x118468,_0x43aff5,_0x247874,_0xda5d64){const _0xeb2129=_0x4cb5f3;var _0x5671a0,_0x43469c,_0x37289b,_0x27a13c;const _0x388ee8=[_0x21b4b7[_0xeb2129(0x468)]((_0x27366c,_0x3adee9)=>{const _0x7eb326=_0xeb2129;var _0x22ee0b;const {id:_0x470948}=_0x27366c,{id:_0x489bff,type:_0x3c97d}=_0x3adee9,_0x3a9d0a=(_0x22ee0b=_0x27366c[_0x7eb326(0x3a0)])!=null?_0x22ee0b:{'actions':null},_0x126383=_0x3adee9[_0x7eb326(0x3a0)];if(_0x470948&&_0x470948!==_0x489bff)throw new Error(_0x7eb326(0x303)+_0x470948+_0x7eb326(0x2b9)+_0x489bff+'.');return{..._0x27366c,'id':_0x489bff,'type':_0x3c97d,'params':{'unitId':_0x126383[_0x7eb326(0x3cd)],'textRanges':_0x126383['textRanges'],'actions':_0x3d2357[_0x7eb326(0x499)](_0x3a9d0a[_0x7eb326(0x362)],_0x126383[_0x7eb326(0x362)])}};},{})],_0x30fc6f=(_0x43469c=(_0x5671a0=_0xda5d64[_0xeb2129(0x405)]())==null?void 0x0:_0x5671a0[_0xeb2129(0x38e)])!=null?_0x43469c:_0xeb2129(0x451),_0x2b4b25=(_0x27a13c=(_0x37289b=_0xda5d64[_0xeb2129(0x405)]())==null?void 0x0:_0x37289b['memberID'])!=null?_0x27a13c:_0xeb2129(0x451);return{'changeset':{'unitID':_0x118468,'type':_0x492f73(_0x43aff5[_0xeb2129(0x432)](_0x118468)),'baseRev':_0x247874['getCurrentRevOfUnit'](_0x118468),'revision':0x0,'userID':_0x30fc6f,'memberID':_0x2b4b25,'mutations':_0x388ee8},'pendingMutations':[]};}const Er={'id':_0x4d7620['id'],'type':_0x57f911[_0x4cb5f3(0x29b)],'params':{}};var Cr=Object['defineProperty'],br=Object['getOwnPropertyDescriptor'],_e=(_0x1a599e,_0x280058,_0x2e10de,_0x4b2c78)=>{const _0x4e4e1e=_0x4cb5f3;for(var _0x36e799=_0x4b2c78>0x1?void 0x0:_0x4b2c78?br(_0x280058,_0x2e10de):_0x280058,_0x443110=_0x1a599e[_0x4e4e1e(0x1ca)]-0x1,_0x577f37;_0x443110>=0x0;_0x443110--)(_0x577f37=_0x1a599e[_0x443110])&&(_0x36e799=(_0x4b2c78?_0x577f37(_0x280058,_0x2e10de,_0x36e799):_0x577f37(_0x36e799))||_0x36e799);return _0x4b2c78&&_0x36e799&&Cr(_0x280058,_0x2e10de,_0x36e799),_0x36e799;},m=(_0x585382,_0x3a5cce)=>(_0x2dd00a,_0x1c9784)=>_0x3a5cce(_0x2dd00a,_0x1c9784,_0x585382),P=(_0x3bfc88=>(_0x3bfc88[_0x4cb5f3(0x4b8)]=_0x4cb5f3(0x486),_0x3bfc88[_0x4cb5f3(0x363)]=_0x4cb5f3(0x3f8),_0x3bfc88[_0x4cb5f3(0x2e9)]=_0x4cb5f3(0x211),_0x3bfc88[_0x4cb5f3(0x1b8)]=_0x4cb5f3(0x4a2),_0x3bfc88[_0x4cb5f3(0x46b)]=_0x4cb5f3(0x3e9),_0x3bfc88[_0x4cb5f3(0x1c4)]=_0x4cb5f3(0x454),_0x3bfc88[_0x4cb5f3(0x3ef)]=_0x4cb5f3(0x3a8),_0x3bfc88[_0x4cb5f3(0x275)]='offline',_0x3bfc88))(P||{});class ue{constructor(_0x30a7bd,_0xee8eaa,_0x2d397b,_0x52796f,_0x3e3822,_0x2b5d3f,_0x595b23,_0x481c35,_0x3620f8){const _0x2530d0=_0x4cb5f3;l(this,_0x2530d0(0x43c),null),l(this,_0x2530d0(0x330),[]),(this[_0x2530d0(0x479)]=_0x30a7bd,this[_0x2530d0(0x2c4)]=_0xee8eaa,this[_0x2530d0(0x16a)]=_0x3e3822,this[_0x2530d0(0x172)]=_0x2b5d3f,this[_0x2530d0(0x216)]=_0x595b23,this[_0x2530d0(0x1f6)]=_0x481c35,this['_localCacheService']=_0x3620f8,this[_0x2530d0(0x43c)]=_0x2d397b,this[_0x2530d0(0x330)]=_0x52796f);}[_0x4cb5f3(0x32e)](_0x1b254b){const _0x5bc16f=_0x4cb5f3,_0x225fef=this[_0x5bc16f(0x1f6)]['getCurrentRevOfUnit'](this[_0x5bc16f(0x479)]);return _0x1b254b[_0x5bc16f(0x273)]>_0x225fef+0x1?(this[_0x5bc16f(0x16a)][_0x5bc16f(0x25f)]({'from':_0x225fef,'to':_0x1b254b[_0x5bc16f(0x273)]-0x1}),!0x0):!0x1;}[_0x4cb5f3(0x448)](_0x382508){const _0x56e4c7=_0x4cb5f3;this[_0x56e4c7(0x216)]['transformUndoRedo'](this[_0x56e4c7(0x479)],_0x382508);}[_0x4cb5f3(0x1fb)](_0x5292e4){const _0x27c90d=_0x4cb5f3;var _0x30a840,_0x4c8560;(_0x4c8560=(_0x30a840=this[_0x27c90d(0x16a)])['onTransformSelections'])==null||_0x4c8560[_0x27c90d(0x20b)](_0x30a840,_0x5292e4);}['_transformIMECache'](_0xbb06a3){const _0x1fdbb0=_0x4cb5f3;var _0x1b5908,_0x530298;return(_0x530298=(_0x1b5908=this[_0x1fdbb0(0x16a)])['onTransformIME'])==null?void 0x0:_0x530298['call'](_0x1b5908,_0xbb06a3);}['_transformRemoteChangesetByIMECache'](_0x9cafce){const _0x3802fb=_0x4cb5f3;var _0x34631d,_0x464219,_0x20c840;return(_0x20c840=(_0x464219=(_0x34631d=this[_0x3802fb(0x16a)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x464219[_0x3802fb(0x20b)](_0x34631d,_0x9cafce))!=null?_0x20c840:_0x9cafce;}[_0x4cb5f3(0x276)](_0x3bec73){const _0xba677c=_0x4cb5f3;var _0x5d9146,_0x4e1f1f;if(this['type']===k['UNIVER_DOC']){const {unitID:_0x29fec0,mutations:_0x489255,memberID:_0x18ecb7}=_0x3bec73,_0x59c458=_0x489255[0x0][_0xba677c(0x3a0)][_0xba677c(0x318)];Array[_0xba677c(0x302)](_0x59c458)&&_0x59c458['length']>0x0&&((_0x4e1f1f=(_0x5d9146=this[_0xba677c(0x16a)])[_0xba677c(0x28c)])==null||_0x4e1f1f['call'](_0x5d9146,{'unitID':_0x29fec0,'memberID':_0x18ecb7,'textRanges':_0x59c458}));}}[_0x4cb5f3(0x2df)](){const _0x1790cb=_0x4cb5f3;this[_0x1790cb(0x471)][_0x1790cb(0x249)](this[_0x1790cb(0x479)],this[_0x1790cb(0x2c4)],this[_0x1790cb(0x43c)],this[_0x1790cb(0x330)]);}[_0x4cb5f3(0x1c8)](){const _0x53184a=_0x4cb5f3;return this[_0x53184a(0x1f6)][_0x53184a(0x3c6)](this[_0x53184a(0x479)]);}[_0x4cb5f3(0x3a3)](){const _0x2cc007=_0x4cb5f3;this[_0x2cc007(0x1f6)][_0x2cc007(0x3eb)](this[_0x2cc007(0x479)]);}[_0x4cb5f3(0x49d)](_0x337d11){const _0x240b5e=_0x4cb5f3;var _0x501d45;const _0x3309c8=this[_0x240b5e(0x198)](_0x337d11),_0x438434=_0x3a9686(_0x3309c8[_0x240b5e(0x2b0)],this['_commandService'],{'fromCollab':!0x0});if(!_0x438434[_0x240b5e(0x256)])throw _0x438434[_0x240b5e(0x43b)]instanceof Error?_0x438434['error']:new Error((_0x501d45=_0x438434[_0x240b5e(0x43b)])!=null?_0x501d45:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x3309c8),this['_transformUndoredo'](_0x337d11),this[_0x240b5e(0x1fb)](_0x3309c8),this[_0x240b5e(0x276)](_0x3309c8),this['_incrementRevisionNumber']();}}let pe=class extends ue{constructor(_0x8aa4df,_0x34c641,_0x1f950c,_0x21e209,_0x37c78a,_0x55fee9,_0x4acb3e,_0x155e14,_0x577993,_0x5f2405){const _0x55fed5=_0x4cb5f3;super(_0x8aa4df,_0x34c641,null,[],_0x1f950c,_0x155e14,_0x4acb3e,_0x21e209,_0x37c78a),l(this,_0x55fed5(0x2ed),'synced'),(this[_0x55fed5(0x150)]=_0x55fee9,this[_0x55fed5(0x2ba)]=_0x577993,this[_0x55fed5(0x2d5)]=_0x5f2405);}[_0x4cb5f3(0x380)](_0x367a2f){const _0x84d76c=_0x4cb5f3,_0xf2fc9=this[_0x84d76c(0x150)][_0x84d76c(0x161)](X,this[_0x84d76c(0x479)],this[_0x84d76c(0x2c4)],[_0x367a2f],this['_handler']);return _0xf2fc9[_0x84d76c(0x224)](),_0xf2fc9[_0x84d76c(0x2df)](),_0xf2fc9;}[_0x4cb5f3(0x247)](_0x2a2c84){const _0x2cafbb=_0x4cb5f3;if(this['_checkMissing'](_0x2a2c84))return this['_injector']['createInstance'](B,this[_0x2cafbb(0x479)],this[_0x2cafbb(0x2c4)],null,[],null,[_0x2a2c84],this[_0x2cafbb(0x16a)]);try{const _0x38f254=this['_transformService'][_0x2cafbb(0x467)](_0x2a2c84,[Er]);if(_0x35d529(_0x38f254)){const {c1Prime:_0x1de895}=_0x38f254;return this[_0x2cafbb(0x49d)](_0x1de895),this;}throw _0x38f254['error'];}catch(_0x6bbe6f){return this['_logService'][_0x2cafbb(0x43b)](_0x6bbe6f),this['_onConflict'](!0x1);}}[_0x4cb5f3(0x32c)](_0xb432fc){const _0x48fc2e=_0x4cb5f3;return this[_0x48fc2e(0x150)][_0x48fc2e(0x161)](ee,this[_0x48fc2e(0x479)],this['type'],null,[],this[_0x48fc2e(0x16a)],_0xb432fc);}['onRemoteAck'](){const _0x4aaa0b=_0x4cb5f3;throw new Error(_0x4aaa0b(0x290));}[_0x4cb5f3(0x48f)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x4cb5f3(0x32b)](){const _0x147494=_0x4cb5f3;return this[_0x147494(0x150)][_0x147494(0x161)](te,this['unitID'],this[_0x147494(0x2c4)],null,[],this[_0x147494(0x16a)]);}[_0x4cb5f3(0x271)](){return this;}['resend'](){const _0x2bdc9c=_0x4cb5f3;throw new Error(_0x2bdc9c(0x24c));}[_0x4cb5f3(0x207)](){const _0x289c3d=_0x4cb5f3,_0x2f1652=this[_0x289c3d(0x1f6)][_0x289c3d(0x3c6)](this[_0x289c3d(0x479)]);return this[_0x289c3d(0x16a)][_0x289c3d(0x25f)]({'from':_0x2f1652,'to':0x0}),this[_0x289c3d(0x150)][_0x289c3d(0x161)](B,this[_0x289c3d(0x479)],this[_0x289c3d(0x2c4)],null,[],null,[],this[_0x289c3d(0x16a)]);}};pe=_e([m(0x3,_0x4b74b3(_0x48c63a)),m(0x4,_0x4b74b3(w)),m(0x5,_0x4b74b3(_0xd20bac)),m(0x6,_0x35a922),m(0x7,_0x155531),m(0x8,_0x155804),m(0x9,_0x38dddc)],pe);let X=class extends ue{constructor(_0x38f6b0,_0x4709cb,_0x4d18ec,_0xf63e4e,_0x3f078c,_0x314107,_0x11ef33,_0x50e861,_0x5b0153,_0x28fd1d,_0xf421fe,_0xbf98,_0x5c0a2c,_0x3931da){const _0x35851a=_0x4cb5f3;super(_0x38f6b0,_0x4709cb,null,_0x4d18ec,_0xf63e4e,_0x28fd1d,_0x3931da,_0x314107,_0x11ef33),l(this,_0x35851a(0x2ed),'pending'),l(this,_0x35851a(0x177),null),l(this,_0x35851a(0x445),null),(this[_0x35851a(0x150)]=_0x3f078c,this[_0x35851a(0x2c6)]=_0x50e861,this[_0x35851a(0x2ba)]=_0x5b0153,this[_0x35851a(0x23d)]=_0xf421fe,this[_0x35851a(0x2d5)]=_0xbf98,this[_0x35851a(0x342)]=_0x5c0a2c);}['appendMutation'](_0x2d35d1){const _0x1848d0=_0x4cb5f3;return this[_0x1848d0(0x330)][_0x1848d0(0x404)](_0x2d35d1),this[_0x1848d0(0x2df)](),this;}[_0x4cb5f3(0x247)](_0x552ade){const _0x4d8836=_0x4cb5f3;if(this[_0x4d8836(0x32e)](_0x552ade))return this[_0x4d8836(0x3ad)](),this[_0x4d8836(0x150)]['createInstance'](B,this[_0x4d8836(0x479)],this[_0x4d8836(0x2c4)],null,this[_0x4d8836(0x330)],null,[_0x552ade],this[_0x4d8836(0x16a)]);try{const _0x3688c8=this[_0x4d8836(0x2d5)][_0x4d8836(0x467)](_0x552ade,this['_pendingMutations']);if(_0x35d529(_0x3688c8)){const {c1Prime:_0x1b86b9,m2Prime:_0x3b32b5}=_0x3688c8;this[_0x4d8836(0x49d)](_0x1b86b9);const _0x406940=this[_0x4d8836(0x150)][_0x4d8836(0x161)](X,this['unitID'],this[_0x4d8836(0x2c4)],_0x3b32b5,this[_0x4d8836(0x16a)]);return this[_0x4d8836(0x3ad)](),_0x406940[_0x4d8836(0x224)](this[_0x4d8836(0x177)]?Math['max'](0x0,new Date()[_0x4d8836(0x3b7)]()-this[_0x4d8836(0x177)]):this['_getSendChangesetTimeout']()),_0x406940;}throw _0x3688c8['error'];}catch(_0x4a9938){return this[_0x4d8836(0x2ba)][_0x4d8836(0x43b)](_0x4a9938),this[_0x4d8836(0x32c)](!0x1);}}[_0x4cb5f3(0x299)](){const _0x18c146=_0x4cb5f3;throw new Error(_0x18c146(0x482));}[_0x4cb5f3(0x48f)](){const _0xbd53e4=_0x4cb5f3;throw new Error(_0xbd53e4(0x1ad));}[_0x4cb5f3(0x32b)](){const _0x55997b=_0x4cb5f3;return this['_clearScheduledTask'](),this[_0x55997b(0x150)][_0x55997b(0x161)](te,this[_0x55997b(0x479)],this['type'],null,this[_0x55997b(0x330)],this['_handler']);}[_0x4cb5f3(0x271)](){return this;}[_0x4cb5f3(0x224)](_0x481558){const _0x4f10a3=_0x4cb5f3,_0x54ba19=_0x481558!=null?_0x481558:this[_0x4f10a3(0x340)]();this['_scheduleTimestamp']=new Date()[_0x4f10a3(0x3b7)](),this[_0x4f10a3(0x445)]=window[_0x4f10a3(0x43e)](()=>{const _0x4c2628=_0x4f10a3;this[_0x4c2628(0x3ad)]();let _0xfb2f86=null;switch(this[_0x4c2628(0x2c4)]){case k[_0x4c2628(0x181)]:{_0xfb2f86=ds(this[_0x4c2628(0x330)],this[_0x4c2628(0x479)],this[_0x4c2628(0x342)],this[_0x4c2628(0x1f6)],this[_0x4c2628(0x2c6)]);break;}case k['UNIVER_DOC']:{this[_0x4c2628(0x330)][_0x4c2628(0x4c9)](_0x5d200c=>_0x5d200c['id']===_0x3afc14['id'])?_0xfb2f86=Ir(this[_0x4c2628(0x330)],this[_0x4c2628(0x479)],this['_univerInstanceService'],this['_revisionService'],this[_0x4c2628(0x2c6)]):_0xfb2f86=ds(this[_0x4c2628(0x330)],this['unitID'],this['_univerInstanceService'],this[_0x4c2628(0x1f6)],this['_memberService']);break;}default:throw new Error(_0x4c2628(0x16c)+this['type']+_0x4c2628(0x40e));}const {changeset:_0x59befb,pendingMutations:_0x449b37}=_0xfb2f86;this[_0x4c2628(0x16a)]['onSendChangeset'](_0x59befb);const _0x35e61d=_0x449b37[_0x4c2628(0x1ca)]?this[_0x4c2628(0x150)]['createInstance'](q,this[_0x4c2628(0x479)],this[_0x4c2628(0x2c4)],_0x59befb,_0x449b37,this[_0x4c2628(0x16a)]):this[_0x4c2628(0x150)][_0x4c2628(0x161)](Q,this[_0x4c2628(0x479)],this['type'],_0x59befb,this[_0x4c2628(0x16a)]);_0x35e61d[_0x4c2628(0x2df)](),this[_0x4c2628(0x16a)][_0x4c2628(0x2eb)](this,_0x35e61d);},_0x54ba19);}[_0x4cb5f3(0x340)](){const _0x50102f=_0x4cb5f3;var _0x27c5d2;const _0x22f5c2=this[_0x50102f(0x23d)][_0x50102f(0x30c)]($);return(_0x27c5d2=_0x22f5c2==null?void 0x0:_0x22f5c2[_0x50102f(0x37c)])!=null?_0x27c5d2:In;}[_0x4cb5f3(0x466)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4cb5f3(0x3ad)](){const _0x4119b0=_0x4cb5f3;this[_0x4119b0(0x445)]!=null&&(clearTimeout(this[_0x4119b0(0x445)]),this[_0x4119b0(0x445)]=null);}['_onConflict'](_0x335d87){const _0x3d2844=_0x4cb5f3;return this[_0x3d2844(0x3ad)](),this[_0x3d2844(0x150)][_0x3d2844(0x161)](ee,this['unitID'],this[_0x3d2844(0x2c4)],null,this[_0x3d2844(0x330)],this['_handler'],_0x335d87);}};X=_e([m(0x4,_0x4b74b3(_0xd20bac)),m(0x5,_0x4b74b3(_0x48c63a)),m(0x6,_0x4b74b3(w)),m(0x7,_0x4b74b3(ce)),m(0x8,_0x155804),m(0x9,_0x155531),m(0xa,_0x5b8ed6),m(0xb,_0x38dddc),m(0xc,_0x350446),m(0xd,_0x35a922)],X);let Q=class extends ue{constructor(_0x528a3b,_0x47fd3b,_0x5b4eb0,_0x48fa71,_0x598f47,_0xc8b0d6,_0x57c926,_0x53b440,_0x46674d,_0x535ba0,_0x475342){const _0x13678c=_0x4cb5f3;super(_0x528a3b,_0x47fd3b,_0x5b4eb0,[],_0x48fa71,_0x53b440,_0x475342,_0xc8b0d6,_0x57c926),l(this,_0x13678c(0x2ed),_0x13678c(0x4a2)),(this[_0x13678c(0x150)]=_0x598f47,this[_0x13678c(0x2ba)]=_0x46674d,this[_0x13678c(0x2d5)]=_0x535ba0);}[_0x4cb5f3(0x380)](_0x3e8aa8){const _0x5a37b0=_0x4cb5f3,_0x2e91db=this[_0x5a37b0(0x150)][_0x5a37b0(0x161)](q,this[_0x5a37b0(0x479)],this[_0x5a37b0(0x2c4)],this['_awaitingChangeset'],[_0x3e8aa8],this[_0x5a37b0(0x16a)]);return _0x2e91db[_0x5a37b0(0x2df)](),_0x2e91db;}[_0x4cb5f3(0x247)](_0x470c32){const _0x1179e8=_0x4cb5f3;if(this[_0x1179e8(0x32e)](_0x470c32))return this[_0x1179e8(0x150)][_0x1179e8(0x161)](B,this[_0x1179e8(0x479)],this['type'],this['_awaitingChangeset'],[],null,[_0x470c32],this[_0x1179e8(0x16a)]);try{const _0x3dd303=this['_transformService'][_0x1179e8(0x22d)]([_0x470c32],[this[_0x1179e8(0x43c)]],!0x1);if(_0x470c5a(_0x3dd303)){const {c1Prime:_0x2c6543,c2Prime:_0x49f31a}=_0x3dd303;this[_0x1179e8(0x49d)](_0x2c6543[0x0]),_0x49f31a[0x0][_0x1179e8(0x154)]=this[_0x1179e8(0x1c8)]();const _0x26d253=this['_injector'][_0x1179e8(0x161)](Q,this['unitID'],this[_0x1179e8(0x2c4)],_0x49f31a[0x0],this['_handler']);return _0x26d253[_0x1179e8(0x2df)](),_0x26d253;}return this[_0x1179e8(0x32c)](!0x1);}catch(_0x32d9a9){return this[_0x1179e8(0x2ba)][_0x1179e8(0x43b)](_0x32d9a9),this[_0x1179e8(0x32c)](!0x1);}}[_0x4cb5f3(0x299)](_0x63b2ae){const _0xa8cda9=_0x4cb5f3,_0xa17c2a=this[_0xa8cda9(0x1f6)][_0xa8cda9(0x3c6)](this['unitID']);if(_0x63b2ae['revision']<_0xa17c2a-0x1)return this;if(this['_checkMissing'](_0x63b2ae))return this[_0xa8cda9(0x150)][_0xa8cda9(0x161)](B,this['unitID'],this['type'],null,[],this[_0xa8cda9(0x43c)],[],this[_0xa8cda9(0x16a)]);this['_incrementRevisionNumber']();const _0x51db51=this['_injector']['createInstance'](pe,this[_0xa8cda9(0x479)],this['type'],this[_0xa8cda9(0x16a)]);return _0x51db51[_0xa8cda9(0x2df)](),_0x51db51;}[_0x4cb5f3(0x48f)](_0x17fcb0){const _0x7f4694=_0x4cb5f3;return this[_0x7f4694(0x32c)](!!(_0x17fcb0!=null&&_0x17fcb0['isPermissionRej']));}[_0x4cb5f3(0x32b)](){const _0x1bd739=_0x4cb5f3;return this['_injector'][_0x1bd739(0x161)](te,this['unitID'],this['type'],this[_0x1bd739(0x43c)],[],this[_0x1bd739(0x16a)]);}['toggleOnline'](){return this;}[_0x4cb5f3(0x466)](){const _0x520e16=_0x4cb5f3;this[_0x520e16(0x16a)][_0x520e16(0x465)](this[_0x520e16(0x43c)]);}[_0x4cb5f3(0x32c)](_0x37d54f){const _0x21b62b=_0x4cb5f3;return this[_0x21b62b(0x150)][_0x21b62b(0x161)](ee,this[_0x21b62b(0x479)],this[_0x21b62b(0x2c4)],this[_0x21b62b(0x43c)],[],this[_0x21b62b(0x16a)],_0x37d54f);}};Q=_e([m(0x4,_0x4b74b3(_0xd20bac)),m(0x5,_0x4b74b3(_0x48c63a)),m(0x6,_0x4b74b3(w)),m(0x7,_0x155531),m(0x8,_0x155804),m(0x9,_0x38dddc),m(0xa,_0x35a922)],Q);let q=class extends ue{constructor(_0x4a4efd,_0x36f7f3,_0x194a22,_0x466e2c,_0x56286a,_0x18d599,_0x3a0890,_0x5fee84,_0x312439,_0x5ab0a2,_0x252130,_0xb0b121){const _0x17791a=_0x4cb5f3;super(_0x4a4efd,_0x36f7f3,_0x194a22,_0x466e2c,_0x56286a,_0x312439,_0xb0b121,_0x3a0890,_0x5fee84),l(this,_0x17791a(0x2ed),_0x17791a(0x3e9)),(this[_0x17791a(0x150)]=_0x18d599,this[_0x17791a(0x2ba)]=_0x5ab0a2,this[_0x17791a(0x2d5)]=_0x252130);}[_0x4cb5f3(0x380)](_0x38e44c){const _0x1d6a8c=_0x4cb5f3;return this[_0x1d6a8c(0x330)][_0x1d6a8c(0x404)](_0x38e44c),this;}['onRemoteChangeset'](_0x5b9af7){const _0x4625ca=_0x4cb5f3;if(this[_0x4625ca(0x32e)](_0x5b9af7))return this[_0x4625ca(0x150)][_0x4625ca(0x161)](B,this['unitID'],this['type'],this[_0x4625ca(0x43c)],this[_0x4625ca(0x330)],null,[_0x5b9af7],this[_0x4625ca(0x16a)]);try{const _0x5341d3=this['_transformService'][_0x4625ca(0x22d)]([_0x5b9af7],[this[_0x4625ca(0x43c)]],!0x1);if(_0x470c5a(_0x5341d3)){const {c1Prime:_0x2a8737,c2Prime:_0x45dba7}=_0x5341d3,_0x207695=this[_0x4625ca(0x2d5)][_0x4625ca(0x467)](_0x2a8737[0x0],this['_pendingMutations']);if(_0x35d529(_0x207695)){const {c1Prime:_0x24d487,m2Prime:_0x4a184f}=_0x207695;return this[_0x4625ca(0x49d)](_0x24d487),_0x45dba7[0x0][_0x4625ca(0x154)]=this[_0x4625ca(0x1c8)](),this['_injector'][_0x4625ca(0x161)](q,this[_0x4625ca(0x479)],this['type'],_0x45dba7[0x0],_0x4a184f,this['_handler']);}throw _0x207695[_0x4625ca(0x43b)];}throw _0x5341d3[_0x4625ca(0x43b)];}catch(_0x40ce84){return this[_0x4625ca(0x2ba)]['error'](_0x40ce84),this[_0x4625ca(0x32c)](!0x1);}}[_0x4cb5f3(0x299)](_0x547a16){const _0x4fdfe2=_0x4cb5f3;if(this[_0x4fdfe2(0x32e)](_0x547a16))return this['_injector'][_0x4fdfe2(0x161)](B,this[_0x4fdfe2(0x479)],this[_0x4fdfe2(0x2c4)],null,this[_0x4fdfe2(0x330)],this[_0x4fdfe2(0x43c)],[],this[_0x4fdfe2(0x16a)]);this[_0x4fdfe2(0x3a3)]();const _0x55a355=this[_0x4fdfe2(0x150)][_0x4fdfe2(0x161)](X,this[_0x4fdfe2(0x479)],this['type'],this[_0x4fdfe2(0x330)],this[_0x4fdfe2(0x16a)]);return _0x55a355[_0x4fdfe2(0x224)](),_0x55a355[_0x4fdfe2(0x2df)](),_0x55a355;}[_0x4cb5f3(0x48f)](_0x3b005d){return this['_onConflict'](!!(_0x3b005d!=null&&_0x3b005d['isPermissionRej']));}['toggleOffline'](){const _0x217170=_0x4cb5f3;return this[_0x217170(0x150)]['createInstance'](te,this[_0x217170(0x479)],this[_0x217170(0x2c4)],this[_0x217170(0x43c)],this[_0x217170(0x330)],this[_0x217170(0x16a)]);}[_0x4cb5f3(0x271)](){return this;}[_0x4cb5f3(0x466)](){const _0x5edbe6=_0x4cb5f3;this[_0x5edbe6(0x16a)]['onSendChangeset'](this[_0x5edbe6(0x43c)]);}[_0x4cb5f3(0x32c)](_0x5bcf64){const _0x57ed45=_0x4cb5f3;return this[_0x57ed45(0x150)][_0x57ed45(0x161)](ee,this[_0x57ed45(0x479)],this['type'],null,this['_pendingMutations'],this[_0x57ed45(0x16a)],_0x5bcf64);}};q=_e([m(0x5,_0x4b74b3(_0xd20bac)),m(0x6,_0x4b74b3(_0x48c63a)),m(0x7,_0x4b74b3(w)),m(0x8,_0x155531),m(0x9,_0x155804),m(0xa,_0x38dddc),m(0xb,_0x35a922)],q);let ee=class extends ue{constructor(_0x5c3bc6,_0xfd9d12,_0x317a29,_0x1ab1f5,_0x4c089d,_0x387649=!0x1,_0x59a28c,_0x22e075,_0x43b39e,_0x4a1640,_0x3625f2,_0x1a4130,_0x331bc4){const _0x36cdfb=_0x4cb5f3;super(_0x5c3bc6,_0xfd9d12,_0x317a29,_0x1ab1f5,_0x4c089d,_0x22e075,_0x43b39e,_0x3625f2,_0x4a1640),l(this,_0x36cdfb(0x2ed),'conflict'),(this[_0x36cdfb(0x15b)]=_0x387649,this[_0x36cdfb(0x429)]=_0x59a28c,this[_0x36cdfb(0x1b6)]=_0x1a4130,this[_0x36cdfb(0x2c2)]=_0x331bc4,this[_0x36cdfb(0x3a5)](),this[_0x36cdfb(0x3a9)](),this[_0x36cdfb(0x3dc)]());}[_0x4cb5f3(0x380)](){return this;}['onRemoteChangeset'](){return this;}[_0x4cb5f3(0x299)](){return this;}[_0x4cb5f3(0x48f)](){return this;}[_0x4cb5f3(0x32b)](){return this;}[_0x4cb5f3(0x271)](){return this;}[_0x4cb5f3(0x466)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x401fe8=_0x4cb5f3;this[_0x401fe8(0x471)]['updateOfflineData'](this['unitID'],this[_0x401fe8(0x2c4)],null,[]);}[_0x4cb5f3(0x3a5)](){const _0x15922f=_0x4cb5f3;this[_0x15922f(0x15b)]?this[_0x15922f(0x2c2)][_0x15922f(0x490)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x15922f(0x1b6)]['t'](_0x15922f(0x3a7)),'type':'error','duration':0x0}):this[_0x15922f(0x2c2)][_0x15922f(0x490)]({'title':this['_localeService']['t'](_0x15922f(0x202)),'content':this[_0x15922f(0x1b6)]['t'](_0x15922f(0x1ec)),'type':'error','duration':0x0});}[_0x4cb5f3(0x3dc)](){const _0x3d770c=_0x4cb5f3;this[_0x3d770c(0x429)]['updatePermissionPoint'](new _0x5112fd(this[_0x3d770c(0x479)])['id'],!0x1);}};ee=_e([m(0x6,_0x4b74b3(_0xea86e)),m(0x7,_0x155531),m(0x8,_0x35a922),m(0x9,_0x4b74b3(w)),m(0xa,_0x4b74b3(_0x48c63a)),m(0xb,_0x4b74b3(_0x48132e)),m(0xc,_0x5724a2)],ee);let te=class extends ue{constructor(_0x5d90b6,_0x48c844,_0x32ae9c,_0x185564,_0x23b1a5,_0x8188de,_0x5a82e1,_0x3c331b,_0x36a787,_0x42dbe6){const _0x2f1f22=_0x4cb5f3;super(_0x5d90b6,_0x48c844,_0x32ae9c,_0x185564,_0x23b1a5,_0x36a787,_0x42dbe6,_0x5a82e1,_0x3c331b),l(this,_0x2f1f22(0x2ed),_0x2f1f22(0x19e)),this[_0x2f1f22(0x150)]=_0x8188de;}[_0x4cb5f3(0x380)](_0x458e67){const _0x22db06=_0x4cb5f3;return this['_pendingMutations'][_0x22db06(0x404)](_0x458e67),this[_0x22db06(0x2df)](),this;}[_0x4cb5f3(0x247)](_0x2d6df9){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x4cb5f3(0x299)](){const _0x5140e3=_0x4cb5f3;throw new Error(_0x5140e3(0x232));}[_0x4cb5f3(0x48f)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x4cb5f3(0x32b)](){return this;}[_0x4cb5f3(0x271)](){const _0x469b54=_0x4cb5f3,{_injector:_0x3336e2,_pendingMutations:_0x39a194,_awaitingChangeset:_0x3d1b78,unitID:_0x4c9733,_handler:_0x31a643,type:_0x42410c}=this,_0x2ee294=Fs(_0x3336e2,_0x4c9733,_0x42410c,_0x3d1b78,_0x39a194,_0x31a643);return _0x2ee294 instanceof X?_0x2ee294['_schedule']():(_0x2ee294 instanceof q||_0x2ee294 instanceof Q)&&_0x2ee294[_0x469b54(0x466)](),_0x2ee294;}[_0x4cb5f3(0x466)](){const _0x546236=_0x4cb5f3;throw new Error(_0x546236(0x14c));}};te=_e([m(0x5,_0x4b74b3(_0xd20bac)),m(0x6,_0x4b74b3(_0x48c63a)),m(0x7,_0x4b74b3(w)),m(0x8,_0x155531),m(0x9,_0x35a922)],te);let B=class extends ue{constructor(_0x2c0b6b,_0x3e246a,_0x5b8140,_0x36e125,_0x32c25a,_0x469f93,_0x2cb5c1,_0x53481a,_0x1a1659,_0x1fe594,_0xcca5fa,_0x135e53,_0x1eafff,_0x1c4c66){const _0x55a058=_0x4cb5f3;super(_0x2c0b6b,_0x3e246a,_0x5b8140,_0x36e125,_0x2cb5c1,_0x135e53,_0x1eafff,_0x1a1659,_0x1fe594),l(this,_0x55a058(0x2ed),_0x55a058(0x454)),(this[_0x55a058(0x442)]=_0x32c25a,this[_0x55a058(0x309)]=_0x469f93,this[_0x55a058(0x150)]=_0x53481a,this['_logService']=_0xcca5fa,this[_0x55a058(0x2d5)]=_0x1c4c66);}['onMissedChangesetFetched'](_0x1fab4c){const _0x8df20c=_0x4cb5f3;try{const _0x7656d2=[..._0x1fab4c,...this[_0x8df20c(0x309)]],_0x8106e7=[this[_0x8df20c(0x43c)]||this[_0x8df20c(0x442)]][_0x8df20c(0x1e5)](_0x542e25=>!!_0x542e25);let _0x140862,_0x363c1c;if(_0x8106e7[_0x8df20c(0x1ca)]){const _0x4daffa=this[_0x8df20c(0x2d5)]['transformChangesets'](_0x7656d2,_0x8106e7,!0x1);if(!_0x470c5a(_0x4daffa))throw _0x4daffa['error'];_0x140862=_0x4daffa['c1Prime'],_0x363c1c=_0x4daffa[_0x8df20c(0x371)];}else _0x140862=_0x7656d2,_0x363c1c=[];let _0x5573a7=this[_0x8df20c(0x330)];_0x140862[_0x8df20c(0x2de)](_0x254066=>{const _0x402346=_0x8df20c;let _0x5bd6b4;if(_0x5573a7[_0x402346(0x1ca)]){const _0x1b74ca=this[_0x402346(0x2d5)][_0x402346(0x467)](_0x254066,_0x5573a7);if(!_0x35d529(_0x1b74ca))throw _0x1b74ca[_0x402346(0x43b)];_0x5bd6b4=_0x1b74ca[_0x402346(0x1d9)],_0x5573a7=_0x1b74ca['m2Prime'];}else _0x5bd6b4=_0x254066;this[_0x402346(0x49d)](_0x5bd6b4);}),this[_0x8df20c(0x442)]&&this['_incrementRevisionNumber'](),this[_0x8df20c(0x43c)]&&_0x363c1c['length']&&(_0x363c1c[0x0][_0x8df20c(0x154)]=this[_0x8df20c(0x1c8)]());let _0x2e7b60;if(this['_awaitingChangeset']&&_0x5573a7[_0x8df20c(0x1ca)]!==0x0)_0x2e7b60=this[_0x8df20c(0x150)]['createInstance'](q,this[_0x8df20c(0x479)],this[_0x8df20c(0x2c4)],_0x363c1c[0x0],_0x5573a7,this['_handler']);else{if(this[_0x8df20c(0x43c)]&&_0x5573a7[_0x8df20c(0x1ca)]===0x0)_0x363c1c[0x0]['baseRev']=this[_0x8df20c(0x1c8)](),_0x2e7b60=this['_injector'][_0x8df20c(0x161)](Q,this[_0x8df20c(0x479)],this[_0x8df20c(0x2c4)],_0x363c1c[0x0],this[_0x8df20c(0x16a)]);else{if(_0x5573a7[_0x8df20c(0x1ca)]!==0x0){const _0x3806dd=this[_0x8df20c(0x150)][_0x8df20c(0x161)](X,this[_0x8df20c(0x479)],this[_0x8df20c(0x2c4)],_0x5573a7,this[_0x8df20c(0x16a)]);_0x3806dd['_schedule'](),_0x2e7b60=_0x3806dd;}else _0x2e7b60=this[_0x8df20c(0x150)][_0x8df20c(0x161)](pe,this[_0x8df20c(0x479)],this[_0x8df20c(0x2c4)],this[_0x8df20c(0x16a)]);}}return _0x2e7b60[_0x8df20c(0x2df)](),_0x2e7b60;}catch(_0x24c97c){return this[_0x8df20c(0x2ba)][_0x8df20c(0x43b)](_0x8df20c(0x298),_0x8df20c(0x1af),_0x24c97c),this[_0x8df20c(0x150)]['createInstance'](ee,this[_0x8df20c(0x479)],this[_0x8df20c(0x2c4)],this[_0x8df20c(0x43c)],this[_0x8df20c(0x330)],this[_0x8df20c(0x16a)],!0x1);}}['resend'](){const _0x3a1a08=_0x4cb5f3;throw new Error(_0x3a1a08(0x1c2));}['appendMutation'](_0x1c0441){const _0x239a3c=_0x4cb5f3;return this[_0x239a3c(0x330)][_0x239a3c(0x404)](_0x1c0441),this;}[_0x4cb5f3(0x247)](_0x3a55fd){const _0x50933c=_0x4cb5f3;return this[_0x50933c(0x309)]['push'](_0x3a55fd),this;}[_0x4cb5f3(0x299)](_0x176921){const _0x557560=_0x4cb5f3;if(this[_0x557560(0x43c)])return this[_0x557560(0x442)]=this['_awaitingChangeset'],this[_0x557560(0x43c)]=null,this;throw new Error(_0x557560(0x3b9));}[_0x4cb5f3(0x48f)](_0x116a49){const _0x420c90=_0x4cb5f3;return this['_onConflict'](!!(_0x116a49!=null&&_0x116a49[_0x420c90(0x37e)]));}[_0x4cb5f3(0x32b)](){const _0x201648=_0x4cb5f3;return this[_0x201648(0x150)]['createInstance'](te,this[_0x201648(0x479)],this[_0x201648(0x2c4)],this[_0x201648(0x43c)],this['_pendingMutations'],this['_handler']);}[_0x4cb5f3(0x271)](){return this;}['_onConflict'](_0x169f53){const _0x3e6d17=_0x4cb5f3;return this['_injector'][_0x3e6d17(0x161)](ee,this[_0x3e6d17(0x479)],this['type'],this['_awaitingChangeset'],this[_0x3e6d17(0x330)],this['_handler'],_0x169f53);}};B=_e([m(0x7,_0x4b74b3(_0xd20bac)),m(0x8,_0x4b74b3(_0x48c63a)),m(0x9,_0x4b74b3(w)),m(0xa,_0x155804),m(0xb,_0x155531),m(0xc,_0x35a922),m(0xd,_0x38dddc)],B);function Fs(_0xdb8670,_0xfc786b,_0x42ede1,_0x49a069,_0x3b235b,_0x190ebc){const _0x8aabd4=_0x4cb5f3;return _0x49a069&&_0x3b235b[_0x8aabd4(0x1ca)]?_0xdb8670[_0x8aabd4(0x161)](q,_0xfc786b,_0x42ede1,_0x49a069,_0x3b235b,_0x190ebc):_0x49a069?_0xdb8670['createInstance'](Q,_0xfc786b,_0x42ede1,_0x49a069,_0x190ebc):_0x3b235b[_0x8aabd4(0x1ca)]?_0xdb8670[_0x8aabd4(0x161)](X,_0xfc786b,_0x42ede1,_0x3b235b,_0x190ebc):_0xdb8670[_0x8aabd4(0x161)](pe,_0xfc786b,_0x42ede1,_0x190ebc);}var Tr=Object[_0x4cb5f3(0x1cd)],Rr=Object['getOwnPropertyDescriptor'],Wt=(_0x4ef85f,_0x282fab,_0x14acbd,_0x18ec2a)=>{for(var _0x3bb394=_0x18ec2a>0x1?void 0x0:_0x18ec2a?Rr(_0x282fab,_0x14acbd):_0x282fab,_0x4601db=_0x4ef85f['length']-0x1,_0x214492;_0x4601db>=0x0;_0x4601db--)(_0x214492=_0x4ef85f[_0x4601db])&&(_0x3bb394=(_0x18ec2a?_0x214492(_0x282fab,_0x14acbd,_0x3bb394):_0x214492(_0x3bb394))||_0x3bb394);return _0x18ec2a&&_0x3bb394&&Tr(_0x282fab,_0x14acbd,_0x3bb394),_0x3bb394;},p=(_0x38ba6d,_0x338106)=>(_0x598741,_0x3707d8)=>_0x338106(_0x598741,_0x3707d8,_0x38ba6d);let qe=class extends _0x1384c9{constructor(_0x288b45,_0x340951,_0x1693e4,_0x1f7f8a,_0x2c4d60,_0x4153e5,_0x293e8d,_0x36d27a,_0x1ac95d,_0x3be54e,_0x59ebd7,_0x28823f,_0x57b863){const _0x3b17a2=_0x4cb5f3;super(),l(this,_0x3b17a2(0x295),new _0x61bb4(null)),l(this,_0x3b17a2(0x187),this[_0x3b17a2(0x295)][_0x3b17a2(0x414)]()),l(this,'_state'),l(this,'_collaborationPaused',!0x1),l(this,_0x3b17a2(0x1fc),''),l(this,'_changesetReqId',0x0),l(this,'status$',this[_0x3b17a2(0x187)][_0x3b17a2(0x426)](_0x5c4b8e(_0x5056cb=>_0x5056cb?_0x5056cb[_0x3b17a2(0x2ed)]:P['OFFLINE']),_0x28d3c4(0x1))),l(this,_0x3b17a2(0x35d),!0x1),l(this,_0x3b17a2(0x305),[]),(this['unitID']=_0x288b45,this[_0x3b17a2(0x260)]=_0x340951,this['_type']=_0x1693e4,this[_0x3b17a2(0x150)]=_0x1f7f8a,this[_0x3b17a2(0x471)]=_0x2c4d60,this[_0x3b17a2(0x477)]=_0x4153e5,this[_0x3b17a2(0x1b6)]=_0x293e8d,this['_revisionService']=_0x36d27a,this[_0x3b17a2(0x2ba)]=_0x1ac95d,this[_0x3b17a2(0x172)]=_0x3be54e,this[_0x3b17a2(0x2ac)]=_0x59ebd7,this['_permissionService']=_0x28823f,this[_0x3b17a2(0x36c)]=_0x57b863);}get[_0x4cb5f3(0x327)](){return this['_state'];}async[_0x4cb5f3(0x214)](){const _0x4675be=_0x4cb5f3;if(this[_0x4675be(0x327)])throw new Error(_0x4675be(0x44f));await this[_0x4675be(0x364)]();}[_0x4cb5f3(0x200)](){const _0x712d1b=_0x4cb5f3;return this[_0x712d1b(0x42f)]=!0x0,_0x3aebc7(()=>{const _0x33b7dc=_0x712d1b;this['_collaborationPaused']=!0x1,this[_0x33b7dc(0x379)]();});}[_0x4cb5f3(0x4bc)](_0x39dcb7){const _0xe0fab6=_0x4cb5f3;this[_0xe0fab6(0x406)]=_0x39dcb7,this[_0xe0fab6(0x295)][_0xe0fab6(0x201)](_0x39dcb7);}async[_0x4cb5f3(0x364)](){const _0x154c8b=_0x4cb5f3;var _0xc068f6;this[_0x154c8b(0x4bc)](await this[_0x154c8b(0x2f4)]()),this[_0x154c8b(0x36c)]&&((_0xc068f6=this[_0x154c8b(0x36c)])==null||_0xc068f6['editingUnit'](this[_0x154c8b(0x479)]),this[_0x154c8b(0x357)](this['_singleActiveUnitService'][_0x154c8b(0x1ff)](this[_0x154c8b(0x479)])[_0x154c8b(0x2c5)](_0x247bb2=>{const _0x224016=_0x154c8b;this[_0x224016(0x2ba)]['debug'](_0x224016(0x22a),_0x224016(0x394),_0x247bb2),_0x247bb2===Bs[_0x224016(0x329)]?(this[_0x224016(0x2ac)][_0x224016(0x490)]({'content':this[_0x224016(0x1b6)]['t']('collaboration.single-unit.warning'),'type':_0x1497b6[_0x224016(0x294)]}),this[_0x224016(0x429)][_0x224016(0x47f)](new _0x5112fd(this[_0x224016(0x479)])['id'],!0x1)):this['_permissionService'][_0x224016(0x47f)](new _0x5112fd(this[_0x224016(0x479)])['id'],!0x0);})));let _0x104123=!0x1;return this[_0x154c8b(0x357)](this[_0x154c8b(0x260)][_0x154c8b(0x2dc)]['subscribe'](_0x3d57a7=>{const _0x464887=_0x154c8b;_0x3d57a7===Y[_0x464887(0x498)]?this[_0x464887(0x3b4)](_0x104123):_0x3d57a7===Y[_0x464887(0x275)]&&(_0x104123=!0x0,this[_0x464887(0x2bf)]());})),this[_0x154c8b(0x357)](this[_0x154c8b(0x260)][_0x154c8b(0x2ec)][_0x154c8b(0x2c5)](_0x39131e=>{const _0x581f84=_0x154c8b;try{switch(_0x39131e[_0x581f84(0x347)]){case _0x53d369[_0x581f84(0x3c4)]:{this[_0x581f84(0x1e6)](_0x48f2c8(_0x39131e[_0x581f84(0x385)]));break;}case _0x53d369[_0x581f84(0x4a8)]:{this['_onRemoteACK'](_0x39131e[_0x581f84(0x385)]);break;}case _0x53d369['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x53d369[_0x581f84(0x1d0)]:{this[_0x581f84(0x228)](_0x39131e['data'][_0x581f84(0x195)][_0x581f84(0x199)](_0x4381c0=>_0x48f2c8(_0x4381c0)));break;}case _0x53d369[_0x581f84(0x478)]:this[_0x581f84(0x218)]({'isPermissionRej':!0x0});}}catch(_0x4b666e){throw console[_0x581f84(0x43b)]('Error\x20on\x20receiving\x20event',_0x4b666e),_0x4b666e;}})),this[_0x154c8b(0x406)];}[_0x4cb5f3(0x35e)](){this['_transitionLocked']=!0x1;}[_0x4cb5f3(0x306)](){const _0x78fd8f=_0x4cb5f3;if(this[_0x78fd8f(0x35d)])throw new Error(_0x78fd8f(0x2b4));this[_0x78fd8f(0x35d)]=!0x0;}[_0x4cb5f3(0x2e6)](_0x104936){const _0x525957=_0x4cb5f3;this['_lockTransition'](),this['_updateState'](this[_0x525957(0x406)][_0x525957(0x380)](_0x104936)),this[_0x525957(0x35e)]();}[_0x4cb5f3(0x1e6)](_0x3483f9){const _0x129f12=_0x4cb5f3;if(!(_0x3483f9[_0x129f12(0x273)]<=this[_0x129f12(0x1f6)][_0x129f12(0x3c6)](this[_0x129f12(0x479)]))){if(this[_0x129f12(0x42f)]){this['_remoteChangesetQueue'][_0x129f12(0x404)](_0x3483f9);return;}this['_applyRemoteChangeset'](_0x3483f9);}}[_0x4cb5f3(0x379)](){const _0x238f8e=_0x4cb5f3;this['_remoteChangesetQueue'][_0x238f8e(0x2de)](_0x5c7282=>this[_0x238f8e(0x258)](_0x5c7282)),this['_remoteChangesetQueue']=[];}[_0x4cb5f3(0x258)](_0x4d981c){const _0x12ac92=_0x4cb5f3,_0x713231=this[_0x12ac92(0x477)]['interceptor'][_0x12ac92(0x4c2)](this[_0x12ac92(0x477)][_0x12ac92(0x328)][_0x12ac92(0x1f0)]()[_0x12ac92(0x34d)])(_0x4d981c['mutations'],null)||_0x4d981c[_0x12ac92(0x2b0)],_0x4d3ba3={..._0x4d981c,'mutations':_0x713231};this[_0x12ac92(0x306)](),this[_0x12ac92(0x4bc)](this[_0x12ac92(0x406)][_0x12ac92(0x247)](_0x4d3ba3)),this[_0x12ac92(0x35e)]();}[_0x4cb5f3(0x43d)](_0x302d26){const _0x269083=_0x4cb5f3;this[_0x269083(0x306)](),this[_0x269083(0x4bc)](this['_state'][_0x269083(0x299)](_0x302d26)),this['_unlockTransition']();}[_0x4cb5f3(0x218)](_0x3599dc){const _0xdb5e13=_0x4cb5f3;this[_0xdb5e13(0x306)](),this[_0xdb5e13(0x4bc)](this[_0xdb5e13(0x406)][_0xdb5e13(0x48f)](_0x3599dc)),this[_0xdb5e13(0x35e)]();}[_0x4cb5f3(0x228)](_0x207b3b){const _0x4b077c=_0x4cb5f3;if(!(this[_0x4b077c(0x406)]instanceof B))throw new TypeError(_0x4b077c(0x270));const _0x287192=_0x207b3b[_0x4b077c(0x199)](_0x391bed=>{const _0x5e967c=_0x4b077c,_0x3f701d=this['_compressMutationService'][_0x5e967c(0x328)]['fetchThroughInterceptors'](this[_0x5e967c(0x477)][_0x5e967c(0x328)][_0x5e967c(0x1f0)]()[_0x5e967c(0x34d)])(_0x391bed['mutations'],null)||_0x391bed[_0x5e967c(0x2b0)];return{..._0x391bed,'mutations':_0x3f701d};});this['_lockTransition'](),this[_0x4b077c(0x4bc)](this[_0x4b077c(0x406)][_0x4b077c(0x474)](_0x287192)),this[_0x4b077c(0x35e)]();}[_0x4cb5f3(0x2bf)](){const _0x341bb5=_0x4cb5f3;this[_0x341bb5(0x306)](),this[_0x341bb5(0x4bc)](this['_state'][_0x341bb5(0x32b)]()),this['_unlockTransition']();}[_0x4cb5f3(0x3b4)](_0x5924c6=!0x1){const _0x4295c8=_0x4cb5f3;this['_lockTransition'](),this[_0x4295c8(0x4bc)](this[_0x4295c8(0x406)][_0x4295c8(0x271)]()),this[_0x4295c8(0x35e)]();const _0x29d614=this[_0x4295c8(0x406)];_0x5924c6&&_0x29d614 instanceof pe&&(this[_0x4295c8(0x306)](),this[_0x4295c8(0x4bc)](_0x29d614[_0x4295c8(0x207)]()),this[_0x4295c8(0x35e)]());}async['_createInitialState'](){return new Promise(_0x5608b5=>{const _0x25fc17=_0x2da6;this['session']['sessionStatus$'][_0x25fc17(0x426)](_0x160c58(0x1))[_0x25fc17(0x2c5)](async _0x2cae92=>{_0x5608b5(await this['_createInitialStateImpl'](_0x2cae92===Y['ONLINE']));});});}[_0x4cb5f3(0x463)](){const _0x2e66f1=this['unitID'];return{'onStateChange':(_0x12b2d2,_0x985795)=>{const _0x566482=_0x2da6;if(_0x12b2d2!==this[_0x566482(0x406)])throw new Error(_0x566482(0x435)+_0x12b2d2[_0x566482(0x2ed)]+_0x566482(0x3f0)+_0x985795[_0x566482(0x2ed)]+_0x566482(0x4a7)+this[_0x566482(0x406)][_0x566482(0x2ed)]);this['_updateState'](_0x985795);},'onSendChangeset':_0xd378f5=>{const _0x587578=_0x2da6;_0xd378f5[_0x587578(0x15d)]||(_0xd378f5[_0x587578(0x15d)]=this[_0x587578(0x1fc)],_0xd378f5[_0x587578(0x4a1)]=++this[_0x587578(0x41c)]);const _0x805199={'eventID':_0x53d369['SUBMIT_CHANGESET'],'data':{'unitID':_0xd378f5[_0x587578(0x479)],'unitType':this[_0x587578(0x1a1)],'changeset':_0xd378f5,'memberID':this[_0x587578(0x260)][_0x587578(0x2ef)]()}};this['session'][_0x587578(0x2d2)](_0x805199,this[_0x587578(0x479)]);},'onMissingChangesets':({from:_0x393d5a,to:_0x58d7d2})=>{const _0x422dbc=_0x2da6;this['_logService'][_0x422dbc(0x1de)](_0x422dbc(0x22a),_0x422dbc(0x2dd)+_0x393d5a+'\x20to\x20'+_0x58d7d2);const _0x4dd73b={'eventID':_0x53d369[_0x422dbc(0x497)],'data':{'unitID':_0x2e66f1,'unitType':this['_type'],'from':_0x393d5a,'to':_0x58d7d2}};this[_0x422dbc(0x260)]['send'](_0x4dd73b,this[_0x422dbc(0x479)]);}};}async[_0x4cb5f3(0x384)](_0x245b5b){const _0x3a8b6b=_0x4cb5f3;var _0x282ac5,_0x3580d5;const _0x1ce900=await this[_0x3a8b6b(0x471)][_0x3a8b6b(0x33f)](this[_0x3a8b6b(0x479)]),_0x45a70c=(_0x282ac5=_0x1ce900==null?void 0x0:_0x1ce900[_0x3a8b6b(0x2b0)])!=null?_0x282ac5:[],_0x58f83f=(_0x3580d5=_0x1ce900==null?void 0x0:_0x1ce900[_0x3a8b6b(0x3e1)])!=null?_0x3580d5:null,_0x27d60e=!!(_0x58f83f!=null&&_0x58f83f['sid'])&&!!(_0x58f83f!=null&&_0x58f83f[_0x3a8b6b(0x4a1)]);this[_0x3a8b6b(0x1fc)]=_0x27d60e?_0x58f83f[_0x3a8b6b(0x15d)]:ir(),this[_0x3a8b6b(0x41c)]=_0x27d60e?_0x58f83f[_0x3a8b6b(0x4a1)]:0x0;const _0x109b54=this[_0x3a8b6b(0x479)];try{this[_0x3a8b6b(0x31c)](_0x58f83f,_0x45a70c);}catch(_0xb94189){this[_0x3a8b6b(0x2ba)][_0x3a8b6b(0x43b)](_0xb94189);}const _0x37e527=this[_0x3a8b6b(0x463)]();if(_0x245b5b){const _0x2951a1=Fs(this[_0x3a8b6b(0x150)],_0x109b54,this[_0x3a8b6b(0x1a1)],_0x58f83f,_0x45a70c,_0x37e527);return _0x2951a1 instanceof X?_0x2951a1[_0x3a8b6b(0x224)]():(_0x2951a1 instanceof q||_0x2951a1 instanceof Q)&&_0x2951a1[_0x3a8b6b(0x466)](),_0x2951a1;}return this[_0x3a8b6b(0x150)][_0x3a8b6b(0x161)](te,_0x109b54,this['_type'],_0x58f83f,_0x45a70c,_0x37e527);}[_0x4cb5f3(0x31c)](_0x20c52e,_0x63163e){const _0x47c242=_0x4cb5f3;var _0x182f5b,_0x3e55d6;const _0x1aeb25=this['_compressMutationService']['interceptor'][_0x47c242(0x4c2)](this[_0x47c242(0x477)][_0x47c242(0x328)][_0x47c242(0x1f0)]()['COMPRESS_MUTATION_APPLY']);(_0x182f5b=_0x1aeb25((_0x20c52e==null?void 0x0:_0x20c52e[_0x47c242(0x2b0)])||[],null))==null||_0x182f5b[_0x47c242(0x2de)](_0x242691=>this['_commandService'][_0x47c242(0x39e)](_0x242691['id'],_0x242691[_0x47c242(0x3a0)])),(_0x3e55d6=_0x1aeb25(_0x63163e||[],null))==null||_0x3e55d6[_0x47c242(0x2de)](_0x54092b=>this[_0x47c242(0x172)][_0x47c242(0x39e)](_0x54092b['id'],_0x54092b[_0x47c242(0x3a0)]));}};qe=Wt([p(0x3,_0x4b74b3(_0xd20bac)),p(0x4,_0x4b74b3(w)),p(0x5,_0x4b74b3(_0x16968f)),p(0x6,_0x4b74b3(_0x48132e)),p(0x7,_0x4b74b3(_0x48c63a)),p(0x8,_0x155804),p(0x9,_0x155531),p(0xa,_0x2a280b),p(0xb,_0xea86e),p(0xc,_0x1765c1(tt))],qe);let Tt=class extends qe{constructor(_0x2cf0ae,_0x507b54,_0x2accba,_0xc07835,_0x4fa835,_0x3158a8,_0x161de1,_0x4534c2,_0x25aa81,_0x4fbed3,_0x43a6f7,_0x3ad6df,_0x270c4d,_0x1a6d22,_0x15ae71,_0x12a6b1,_0x40b495){const _0x3780ca=_0x4cb5f3;super(_0x2cf0ae,_0x2accba,_0x507b54,_0xc07835,_0x4fa835,_0x3158a8,_0x161de1,_0x4534c2,_0x270c4d,_0x1a6d22,_0x15ae71,_0x12a6b1,_0x40b495),this['unitID']=_0x2cf0ae,this['type']=_0x507b54,this[_0x3780ca(0x2cc)]=_0x25aa81,this[_0x3780ca(0x475)]=_0x4fbed3,this['_docTransformSelectionsService']=_0x43a6f7,this[_0x3780ca(0x2a4)]=_0x3ad6df;}['_createHandler'](){const _0x2866e7=_0x4cb5f3,_0x4b3cea=super[_0x2866e7(0x463)]();return _0x4b3cea['onTransformIME']=_0x525d80=>this[_0x2866e7(0x475)][_0x2866e7(0x356)](_0x525d80),_0x4b3cea['onTransformSelections']=_0x10eecc=>this[_0x2866e7(0x2d0)][_0x2866e7(0x2e4)](_0x10eecc),_0x4b3cea[_0x2866e7(0x28c)]=_0x2022f3=>this[_0x2866e7(0x2a4)][_0x2866e7(0x386)](_0x2022f3),_0x4b3cea['onTransformRemoteChangesetByIMECache']=_0xd26b3a=>this[_0x2866e7(0x475)][_0x2866e7(0x29c)](_0xd26b3a),_0x4b3cea;}async[_0x4cb5f3(0x364)](){const _0x3edb17=_0x4cb5f3,_0x1fea66=await super[_0x3edb17(0x364)]();return this[_0x3edb17(0x2cc)][_0x3edb17(0x4be)][_0x3edb17(0x426)](_0xa11cc5(this[_0x3edb17(0x2fd)]))[_0x3edb17(0x2c5)](_0xb84f04=>{const _0x38069b=_0x3edb17;if(_0xb84f04==null)return;const {unitId:_0x37d8ca,redoState:_0x19307d,commandId:_0x50cbc5}=_0xb84f04;if(_0x37d8ca!==this[_0x38069b(0x479)])return;const _0x304e22={'id':_0x50cbc5,'type':_0x57f911[_0x38069b(0x29b)],'params':{'unitId':_0x37d8ca,'actions':_0x19307d['actions'],'textRanges':null}};this[_0x38069b(0x2e6)](_0x304e22);}),_0x1fea66;}};Tt=Wt([p(0x3,_0x4b74b3(_0xd20bac)),p(0x4,_0x4b74b3(w)),p(0x5,_0x4b74b3(_0x16968f)),p(0x6,_0x4b74b3(_0x48132e)),p(0x7,_0x4b74b3(_0x48c63a)),p(0x8,_0x4b74b3(_0x421764)),p(0x9,_0x4b74b3(Ye)),p(0xa,_0x4b74b3(Xe)),p(0xb,_0x4b74b3(Ft)),p(0xc,_0x155804),p(0xd,_0x155531),p(0xe,_0x2a280b),p(0xf,_0xea86e),p(0x10,_0x1765c1(tt))],Tt);let Rt=class extends qe{constructor(_0x153cac,_0x133a75,_0x38daab,_0x33bace,_0x7f174e,_0x5a3fa5,_0x5e9663,_0x5b1a70,_0x1b698d,_0x4997ae,_0x5112c4,_0x76c0db,_0x1f9f8b,_0x5e213b){const _0x5a0235=_0x4cb5f3;super(_0x153cac,_0x38daab,_0x133a75,_0x33bace,_0x7f174e,_0x5a3fa5,_0x5e9663,_0x5b1a70,_0x4997ae,_0x5112c4,_0x76c0db,_0x1f9f8b,_0x5e213b),this[_0x5a0235(0x479)]=_0x153cac,this['type']=_0x133a75,this[_0x5a0235(0x21b)]=_0x1b698d;}[_0x4cb5f3(0x463)](){const _0x36775c=_0x4cb5f3,_0x8b18bb=super[_0x36775c(0x463)]();return _0x8b18bb[_0x36775c(0x427)]=_0x4b2022=>this[_0x36775c(0x21b)][_0x36775c(0x2e4)](_0x4b2022),_0x8b18bb;}async[_0x4cb5f3(0x364)](){const _0x2e4cb2=_0x4cb5f3,_0x5d306a=await super[_0x2e4cb2(0x364)]();return this[_0x2e4cb2(0x357)](this[_0x2e4cb2(0x172)][_0x2e4cb2(0x3da)]((_0x2efceb,_0x1f8af2)=>{const _0x364759=_0x2e4cb2;if(_0x2efceb[_0x364759(0x2c4)]!==_0x57f911[_0x364759(0x29b)]||_0x1f8af2!=null&&_0x1f8af2[_0x364759(0x45f)]||_0x1f8af2!=null&&_0x1f8af2[_0x364759(0x2ab)])return;const _0x705dd=_0x2efceb[_0x364759(0x3a0)];if((_0x705dd==null?void 0x0:_0x705dd[_0x364759(0x3cd)])!==this[_0x364759(0x479)])return;const _0x34c209=_0x2efceb,_0x2876cd=this[_0x364759(0x477)][_0x364759(0x328)][_0x364759(0x4c2)](this[_0x364759(0x477)][_0x364759(0x328)][_0x364759(0x1f0)]()[_0x364759(0x23c)])([_0x34c209],null)||[_0x34c209];this[_0x364759(0x2e6)](_0x2876cd[0x0]);})),_0x5d306a;}};Rt=Wt([p(0x3,_0x4b74b3(_0xd20bac)),p(0x4,_0x4b74b3(w)),p(0x5,_0x4b74b3(_0x16968f)),p(0x6,_0x4b74b3(_0x48132e)),p(0x7,_0x4b74b3(_0x48c63a)),p(0x8,_0x4b74b3(Ke)),p(0x9,_0x155804),p(0xa,_0x155531),p(0xb,_0x2a280b),p(0xc,_0xea86e),p(0xd,_0x1765c1(tt))],Rt);var Or=Object[_0x4cb5f3(0x1cd)],Dr=Object['getOwnPropertyDescriptor'],wr=(_0x14d497,_0x39d2c9,_0x5ae48c,_0x2061cf)=>{const _0x3bba5e=_0x4cb5f3;for(var _0x424a43=_0x2061cf>0x1?void 0x0:_0x2061cf?Dr(_0x39d2c9,_0x5ae48c):_0x39d2c9,_0x211c88=_0x14d497[_0x3bba5e(0x1ca)]-0x1,_0x28f8eb;_0x211c88>=0x0;_0x211c88--)(_0x28f8eb=_0x14d497[_0x211c88])&&(_0x424a43=(_0x2061cf?_0x28f8eb(_0x39d2c9,_0x5ae48c,_0x424a43):_0x28f8eb(_0x424a43))||_0x424a43);return _0x2061cf&&_0x424a43&&Or(_0x39d2c9,_0x5ae48c,_0x424a43),_0x424a43;},_t=(_0x3b6612,_0x1c51ba)=>(_0x1c6e2b,_0x141943)=>_0x1c51ba(_0x1c6e2b,_0x141943,_0x3b6612);let Le=class extends _0x1384c9{constructor(_0x11ec4d,_0xcc8d89,_0x54e1aa){const _0x31416e=_0x4cb5f3;super(),l(this,_0x31416e(0x331),new Map()),l(this,_0x31416e(0x32d),new _0x199c18()),(this[_0x31416e(0x150)]=_0x11ec4d,this['_collabSessionService']=_0xcc8d89,this['_univerInstanceService']=_0x54e1aa,this[_0x31416e(0x364)]());}[_0x4cb5f3(0x266)](){const _0x52feff=_0x4cb5f3;super[_0x52feff(0x266)](),this['_entities'][_0x52feff(0x2de)](_0x2abced=>_0x2abced[_0x52feff(0x266)]()),this[_0x52feff(0x331)][_0x52feff(0x4a4)]();}[_0x4cb5f3(0x17b)](_0x5959ed){const _0x17125c=_0x4cb5f3;var _0x420d07;return(_0x420d07=this[_0x17125c(0x331)][_0x17125c(0x157)](_0x5959ed))!=null?_0x420d07:null;}[_0x4cb5f3(0x15e)](_0x2a3c63){const _0x419beb=_0x4cb5f3,_0x4218c9=this[_0x419beb(0x17b)](_0x2a3c63);return _0x4218c9?_0x5569e1(_0x4218c9):this[_0x419beb(0x32d)]['pipe'](_0x344b49(_0x3dbaaf=>_0x3dbaaf[_0x419beb(0x479)]===_0x2a3c63));}[_0x4cb5f3(0x364)](){const _0x6d6eeb=_0x4cb5f3;this['_univerInstanceService'][_0x6d6eeb(0x296)](_0x53ce88[_0x6d6eeb(0x181)])[_0x6d6eeb(0x426)](_0xa11cc5(this[_0x6d6eeb(0x2fd)]),_0x561177(0x10))[_0x6d6eeb(0x2c5)](async _0x4e4a79=>{const _0x336368=_0x6d6eeb,_0x50ed68=_0x4e4a79[_0x336368(0x310)](),_0x1ee743=await this[_0x336368(0x4c5)](_0x50ed68,k['UNIVER_SHEET']);this[_0x336368(0x331)][_0x336368(0x24d)](_0x50ed68,_0x1ee743);}),this[_0x6d6eeb(0x342)][_0x6d6eeb(0x296)](_0x53ce88['UNIVER_DOC'])[_0x6d6eeb(0x426)](_0xa11cc5(this[_0x6d6eeb(0x2fd)]),_0x561177(0x10))[_0x6d6eeb(0x426)](_0x344b49(_0x12f507=>!_0x12f507[_0x6d6eeb(0x310)]()[_0x6d6eeb(0x231)]('__')))['subscribe'](async _0x5c8468=>{const _0x168fb3=_0x6d6eeb,_0x4dc5d9=_0x5c8468['getUnitId'](),_0x4fa66=await this['_startCollaboration'](_0x4dc5d9,k[_0x168fb3(0x148)]);this['_entities'][_0x168fb3(0x24d)](_0x4dc5d9,_0x4fa66);}),_0x42229f(this[_0x6d6eeb(0x342)]['getTypeOfUnitDisposed$'](_0x53ce88[_0x6d6eeb(0x181)]),this[_0x6d6eeb(0x342)][_0x6d6eeb(0x4b6)](_0x53ce88[_0x6d6eeb(0x148)]))[_0x6d6eeb(0x426)](_0xa11cc5(this['dispose$']))[_0x6d6eeb(0x2c5)](_0xde3d4=>{const _0x2d25b6=_0x6d6eeb,_0x4ce029=_0xde3d4[_0x2d25b6(0x310)](),_0x2d6cfb=this['_entities'][_0x2d25b6(0x157)](_0x4ce029);_0x2d6cfb&&(_0x2d6cfb[_0x2d25b6(0x266)](),this[_0x2d25b6(0x331)][_0x2d25b6(0x40d)](_0x4ce029));});}async['_startCollaboration'](_0x410742,_0xe25fc3){const _0x392918=_0x4cb5f3,_0x2c2fae=await this[_0x392918(0x438)][_0x392918(0x1d8)](_0x410742),_0x4f5a5c=this['_injector'][_0x392918(0x161)](this[_0x392918(0x37a)](_0xe25fc3),_0x410742,_0xe25fc3,_0x2c2fae);return await _0x4f5a5c[_0x392918(0x214)](),this[_0x392918(0x32d)][_0x392918(0x201)](_0x4f5a5c),_0x4f5a5c;}[_0x4cb5f3(0x37a)](_0x5041f4){const _0x24f1b4=_0x4cb5f3;switch(_0x5041f4){case k[_0x24f1b4(0x148)]:return Tt;case k['UNIVER_SHEET']:return Rt;default:throw new Error(_0x24f1b4(0x1f1)+_0x5041f4);}}};Le=wr([_t(0x0,_0x4b74b3(_0xd20bac)),_t(0x1,_0x4b74b3(he)),_t(0x2,_0x350446)],Le);const fs=[_0x4cb5f3(0x1ba),_0x4cb5f3(0x286),_0x4cb5f3(0x26d),_0x4cb5f3(0x285),_0x4cb5f3(0x45e),_0x4cb5f3(0x2fb)];class Gt extends _0x16e969{constructor(){const _0x554593=_0x4cb5f3;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x554593(0x3b8),0x0);}['assignAColorForMemberID'](_0x13fa93){const _0x30a2c0=_0x4cb5f3;if(this[_0x30a2c0(0x2a8)]['has'](_0x13fa93))return this['_assignedColors'][_0x30a2c0(0x157)](_0x13fa93);const _0x1160e6=fs[this[_0x30a2c0(0x3b8)]];return this[_0x30a2c0(0x3b8)]=(this[_0x30a2c0(0x3b8)]+0x1)%fs[_0x30a2c0(0x1ca)],this[_0x30a2c0(0x2a8)]['set'](_0x13fa93,_0x1160e6),_0x1160e6;}}var Pr=Object[_0x4cb5f3(0x1cd)],yr=Object[_0x4cb5f3(0x3cf)],Ur=(_0x496596,_0x5ea0f9,_0x10e60d,_0x290caa)=>{for(var _0x2a099e=_0x290caa>0x1?void 0x0:_0x290caa?yr(_0x5ea0f9,_0x10e60d):_0x5ea0f9,_0x24a56b=_0x496596['length']-0x1,_0x4fde22;_0x24a56b>=0x0;_0x24a56b--)(_0x4fde22=_0x496596[_0x24a56b])&&(_0x2a099e=(_0x290caa?_0x4fde22(_0x5ea0f9,_0x10e60d,_0x2a099e):_0x4fde22(_0x2a099e))||_0x2a099e);return _0x290caa&&_0x2a099e&&Pr(_0x5ea0f9,_0x10e60d,_0x2a099e),_0x2a099e;},ie=(_0x3b0707,_0x4a2456)=>(_0x191f3d,_0x3cdb98)=>_0x4a2456(_0x191f3d,_0x3cdb98,_0x3b0707);const Nr=0x12c,Mr=0x64;let Ot=class extends _0x1384c9{constructor(_0x3fcf92,_0x5371c7,_0x5b95e3,_0x2cfe66,_0x317273,_0x3e793f,_0x4bf041,_0x5ebe71,_0x594964){const _0x20dcdc=_0x4cb5f3;super(),l(this,'_online',!0x1),l(this,_0x20dcdc(0x364),!0x1),l(this,'_cursorInfo$',new _0x61bb4(new Map())),l(this,_0x20dcdc(0x20d),this[_0x20dcdc(0x1e4)][_0x20dcdc(0x414)]()),l(this,'_roomMembers$',new _0x61bb4([])),l(this,_0x20dcdc(0x41d),this[_0x20dcdc(0x1ce)]['pipe'](_0x448f14(Nr))),l(this,_0x20dcdc(0x4ae),_0x1fc090(_0x4b5e25=>{const _0x15f80b=_0x20dcdc,_0x2c1b11={'eventID':_0x53d369[_0x15f80b(0x30f)],'data':{'unitID':this[_0x15f80b(0x479)],'memberID':this['_session']['getMemberID'](),'selection':Vs(_0x4b5e25)}};this[_0x15f80b(0x390)]['send'](_0x2c1b11,this[_0x15f80b(0x479)]);},Mr)),(this[_0x20dcdc(0x479)]=_0x3fcf92,this[_0x20dcdc(0x390)]=_0x5371c7,this[_0x20dcdc(0x150)]=_0x5b95e3,this['_colorAssignService']=_0x2cfe66,this[_0x20dcdc(0x2c6)]=_0x317273,this[_0x20dcdc(0x1f4)]=_0x3e793f,this['_transformService']=_0x4bf041,this[_0x20dcdc(0x342)]=_0x5ebe71,this[_0x20dcdc(0x172)]=_0x594964);}get[_0x4cb5f3(0x17c)](){const _0x2cda30=_0x4cb5f3;return this[_0x2cda30(0x1e4)]['getValue']();}get[_0x4cb5f3(0x222)](){const _0x3e2543=_0x4cb5f3;return this[_0x3e2543(0x1ce)][_0x3e2543(0x1d4)]();}[_0x4cb5f3(0x266)](){const _0x1603b5=_0x4cb5f3;super[_0x1603b5(0x266)](),this['_cursorInfo$'][_0x1603b5(0x201)](new Map()),this[_0x1603b5(0x1e4)][_0x1603b5(0x396)](),this[_0x1603b5(0x1ce)]['next']([]),this[_0x1603b5(0x1ce)][_0x1603b5(0x396)]();}[_0x4cb5f3(0x214)](){const _0x2d6979=_0x4cb5f3;this['_init']||(this['_init']=!0x0,this[_0x2d6979(0x390)][_0x2d6979(0x2dc)][_0x2d6979(0x426)](_0xa11cc5(this[_0x2d6979(0x2fd)]))['subscribe'](_0x557dc3=>{const _0x34f9f2=_0x2d6979;_0x557dc3===Y['ONLINE']?this[_0x34f9f2(0x3b4)]():this[_0x34f9f2(0x2bf)]();}),this[_0x2d6979(0x390)][_0x2d6979(0x2ec)][_0x2d6979(0x426)](_0xa11cc5(this['dispose$']))[_0x2d6979(0x2c5)](_0x2fc573=>{const _0x249430=_0x2d6979,_0x3d4d66=_0x2fc573['eventID'];_0x3d4d66===_0x53d369['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x2fc573),_0x3d4d66===_0x53d369[_0x249430(0x336)]&&this[_0x249430(0x413)](_0x2fc573);}),this['disposeWithMe'](this[_0x2d6979(0x172)]['onCommandExecuted'](_0x144442=>{const _0x23ae2d=_0x2d6979,_0x321c3a=_0x144442['params'];_0x321c3a!=null&&this[_0x23ae2d(0x338)]&&_0x144442['id']===_0x2636a3['id']&&_0x321c3a[_0x23ae2d(0x3cd)]===this[_0x23ae2d(0x479)]&&_0x321c3a['isEditing']===!0x1&&this['_updateLocalCursor'](_0x321c3a[_0x23ae2d(0x27b)]);})),this[_0x2d6979(0x1f4)][_0x2d6979(0x27e)][_0x2d6979(0x426)](_0xa11cc5(this[_0x2d6979(0x2fd)]))[_0x2d6979(0x2c5)](_0x285d07=>{const _0x51f830=_0x2d6979;if((_0x285d07==null?void 0x0:_0x285d07['unitID'])!==this[_0x51f830(0x479)])return;const _0x5620aa={'eventID':_0x53d369[_0x51f830(0x30f)],'data':_0x285d07};this[_0x51f830(0x37f)](_0x5620aa);}),this[_0x2d6979(0x357)](this[_0x2d6979(0x172)][_0x2d6979(0x3da)](_0x3fd8c7=>{const _0x2d7d77=_0x2d6979;if(_0x3fd8c7[_0x2d7d77(0x3a0)]==null)return;const _0x333cb7=_0x3fd8c7[_0x2d7d77(0x3a0)];if(_0x3fd8c7['id']!==_0x3afc14['id']||_0x333cb7[_0x2d7d77(0x3cd)]!==this[_0x2d7d77(0x479)])return;const _0x44a3c3={'id':'doc.mutation.rich-text-editing','params':_0x333cb7},_0x4d9cf5=this['cursorInfo'];for(const [_0x52eac8,_0x2b88eb]of _0x4d9cf5){const _0x47eca2={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2d7d77(0x479)],'actions':null,'textRanges':_0x2b88eb[_0x2d7d77(0x27b)]}},_0x11714e=this['_transformService'][_0x2d7d77(0x1a0)](_0x44a3c3,_0x47eca2,!0x1);if(_0x415d56(_0x11714e))throw _0x11714e[_0x2d7d77(0x43b)];_0x4d9cf5['set'](_0x52eac8,{..._0x2b88eb,'ranges':_0x11714e[_0x2d7d77(0x44c)]['params'][_0x2d7d77(0x318)]});}queueMicrotask(()=>{const _0x181497=_0x2d7d77;this[_0x181497(0x1e4)][_0x181497(0x201)](_0x4d9cf5);});})));}[_0x4cb5f3(0x37f)](_0xd29385){const _0x116260=_0x4cb5f3;var _0x1ea703,_0xc6c299;const {memberID:_0x2dc053,selection:_0x189a3b}=_0xd29385[_0x116260(0x385)],_0x4f5e69=mr(_0x189a3b),_0x38d118=(_0xc6c299=(_0x1ea703=this[_0x116260(0x2c6)]['getMember'](this[_0x116260(0x479)],_0x2dc053))==null?void 0x0:_0x1ea703[_0x116260(0x206)])!=null?_0xc6c299:_0x116260(0x15c),_0x2682ca={'color':this[_0x116260(0x1aa)][_0x116260(0x3d4)](_0x2dc053),'name':_0x38d118,'ranges':_0x4f5e69},_0x95cc5e=this[_0x116260(0x17c)];_0x95cc5e[_0x116260(0x24d)](_0x2dc053,_0x2682ca),this[_0x116260(0x1e4)][_0x116260(0x201)](_0x95cc5e);}[_0x4cb5f3(0x413)](_0x9c75ac){const _0x438bed=_0x4cb5f3,{memberID:_0x23e17d}=_0x9c75ac['data'],_0x20e3cf=this[_0x438bed(0x17c)];_0x20e3cf['delete'](_0x23e17d),this['_cursorInfo$'][_0x438bed(0x201)](_0x20e3cf);}[_0x4cb5f3(0x3b4)](){const _0x185f43=_0x4cb5f3;var _0x135a86;if(this[_0x185f43(0x338)]=!0x0,((_0x135a86=this[_0x185f43(0x342)][_0x185f43(0x361)]())==null?void 0x0:_0x135a86[_0x185f43(0x310)]())!==this[_0x185f43(0x479)])return;const _0x162e94=this[_0x185f43(0x150)][_0x185f43(0x157)](_0x40030b)[_0x185f43(0x39d)]();Array['isArray'](_0x162e94)&&_0x162e94[_0x185f43(0x1ca)]>0x0&&this['_updateLocalCursor'](_0x162e94);}[_0x4cb5f3(0x2bf)](){const _0x2869df=_0x4cb5f3;this[_0x2869df(0x338)]=!0x1;}};Ot=Ur([ie(0x2,_0x4b74b3(_0xd20bac)),ie(0x3,_0x4b74b3(Gt)),ie(0x4,_0x4b74b3(ce)),ie(0x5,_0x4b74b3(Ft)),ie(0x6,_0x38dddc),ie(0x7,_0x350446),ie(0x8,_0x155531)],Ot);var Ar=Object[_0x4cb5f3(0x1cd)],Lr=Object[_0x4cb5f3(0x3cf)],$r=(_0x5f3e47,_0x5d9685,_0x5d4d3b,_0x446cf3)=>{const _0xaf75a2=_0x4cb5f3;for(var _0x313639=_0x446cf3>0x1?void 0x0:_0x446cf3?Lr(_0x5d9685,_0x5d4d3b):_0x5d9685,_0x7a4a4c=_0x5f3e47[_0xaf75a2(0x1ca)]-0x1,_0x18aed9;_0x7a4a4c>=0x0;_0x7a4a4c--)(_0x18aed9=_0x5f3e47[_0x7a4a4c])&&(_0x313639=(_0x446cf3?_0x18aed9(_0x5d9685,_0x5d4d3b,_0x313639):_0x18aed9(_0x313639))||_0x313639);return _0x446cf3&&_0x313639&&Ar(_0x5d9685,_0x5d4d3b,_0x313639),_0x313639;},me=(_0xab6beb,_0x212804)=>(_0x4845a1,_0xbf01b)=>_0x212804(_0x4845a1,_0xbf01b,_0xab6beb);const jr=0x12c,xr=0x64,Hr=()=>{let _0x7d957d=[],_0x3f8876=!0x1;return _0x1d269e=>{const _0x46230e=_0x2da6;_0x7d957d[_0x46230e(0x404)](_0x1d269e),_0x3f8876||(_0x3f8876=!0x0,setTimeout(()=>{const _0x38c263=_0x46230e;_0x7d957d[_0x38c263(0x2de)](_0x10c1bd=>_0x10c1bd()),_0x7d957d=[],_0x3f8876=!0x1;}));};};let Dt=class extends _0x1384c9{constructor(_0x4c5ff1,_0x29d7db,_0x579e7c,_0x60d27c,_0x2ca938,_0x3b7ed4,_0x536433,_0x4ed0f0){const _0x5f1447=_0x4cb5f3;super(),l(this,_0x5f1447(0x338),!0x1),l(this,_0x5f1447(0x364),!0x1),l(this,_0x5f1447(0x1e4),new _0x61bb4(new Map())),l(this,_0x5f1447(0x20d),this[_0x5f1447(0x1e4)][_0x5f1447(0x414)]()),l(this,_0x5f1447(0x1ce),new _0x61bb4([])),l(this,_0x5f1447(0x41d),this[_0x5f1447(0x1ce)][_0x5f1447(0x426)](_0x448f14(jr))),l(this,_0x5f1447(0x4ae),_0x1fc090((_0x3490db,_0x3dc054)=>{const _0x4959bb=_0x5f1447,_0x448f98={'eventID':_0x53d369['UPDATE_CURSOR'],'data':{'unitID':this[_0x4959bb(0x479)],'memberID':this[_0x4959bb(0x390)][_0x4959bb(0x2ef)](),'selection':_0x1aa3bf(_0x3490db,_0x3dc054[_0x4959bb(0x48a)])}};this[_0x4959bb(0x390)]['send'](_0x448f98,this[_0x4959bb(0x479)]);},xr)),(this['unitID']=_0x4c5ff1,this[_0x5f1447(0x390)]=_0x29d7db,this[_0x5f1447(0x150)]=_0x579e7c,this[_0x5f1447(0x1aa)]=_0x60d27c,this['_memberService']=_0x2ca938,this[_0x5f1447(0x342)]=_0x3b7ed4,this[_0x5f1447(0x172)]=_0x536433,this['_refRangeService']=_0x4ed0f0);}get[_0x4cb5f3(0x17c)](){return this['_cursorInfo$']['getValue']();}get[_0x4cb5f3(0x222)](){const _0x40f22e=_0x4cb5f3;return this['_roomMembers$'][_0x40f22e(0x1d4)]();}[_0x4cb5f3(0x266)](){const _0x40459a=_0x4cb5f3;super[_0x40459a(0x266)](),this['_cursorInfo$']['next'](new Map()),this[_0x40459a(0x1e4)][_0x40459a(0x396)](),this[_0x40459a(0x1ce)]['next']([]),this[_0x40459a(0x1ce)][_0x40459a(0x396)]();}[_0x4cb5f3(0x214)](){const _0x281968=_0x4cb5f3;this[_0x281968(0x364)]||(this[_0x281968(0x364)]=!0x0,this[_0x281968(0x390)][_0x281968(0x2dc)][_0x281968(0x426)](_0xa11cc5(this[_0x281968(0x2fd)]))[_0x281968(0x2c5)](_0x18d852=>{const _0x161b83=_0x281968;_0x18d852===Y[_0x161b83(0x498)]?this['_toggleOnline']():this[_0x161b83(0x2bf)]();}),this[_0x281968(0x390)][_0x281968(0x2ec)][_0x281968(0x426)](_0xa11cc5(this[_0x281968(0x2fd)]))[_0x281968(0x2c5)](_0x1319ab=>{const _0x220247=_0x281968,_0x364ec0=_0x1319ab['eventID'];_0x364ec0===_0x53d369[_0x220247(0x30f)]&&this[_0x220247(0x37f)](_0x1319ab),_0x364ec0===_0x53d369['USERS_LEAVE']&&this[_0x220247(0x413)](_0x1319ab);}),this['_onRefRangeChange'](),this[_0x281968(0x357)](this[_0x281968(0x172)]['onCommandExecuted'](_0x2b872e=>{const _0x59f0e6=_0x281968;if(this['_online']&&_0x2b872e['id']===_0x51552b['id']&&_0x2b872e[_0x59f0e6(0x3a0)][_0x59f0e6(0x3cd)]===this[_0x59f0e6(0x479)]){const _0x374653=_0x2b872e[_0x59f0e6(0x3a0)];this[_0x59f0e6(0x4ae)](_0x374653[_0x59f0e6(0x151)],_0x374653[_0x59f0e6(0x244)][0x0]);}})));}[_0x4cb5f3(0x37f)](_0x5159c4){const _0x3f5072=_0x4cb5f3;var _0x4a06ac,_0x28de2c;const {memberID:_0x57bc4c,selection:_0x33a776}=_0x5159c4[_0x3f5072(0x385)],{sheetName:_0x501b5f,range:_0x5698d5}=_0x1a5636(_0x33a776),_0x472bbb={'name':(_0x28de2c=(_0x4a06ac=this['_memberService']['getMember'](this[_0x3f5072(0x479)],_0x57bc4c))==null?void 0x0:_0x4a06ac[_0x3f5072(0x206)])!=null?_0x28de2c:_0x3f5072(0x15c),'range':this[_0x3f5072(0x42b)](_0x501b5f,_0x5698d5),'sheetID':_0x501b5f,'color':this[_0x3f5072(0x1aa)]['assignAColorForMemberID'](_0x57bc4c),'selection':_0x33a776},_0x2c5aaa=this[_0x3f5072(0x17c)];_0x2c5aaa[_0x3f5072(0x24d)](_0x57bc4c,_0x472bbb),this[_0x3f5072(0x1e4)][_0x3f5072(0x201)](_0x2c5aaa);}[_0x4cb5f3(0x413)](_0x5e104a){const _0x5c0fd7=_0x4cb5f3,{memberID:_0x6bb7bf}=_0x5e104a[_0x5c0fd7(0x385)],_0x144d14=this[_0x5c0fd7(0x17c)];_0x144d14['delete'](_0x6bb7bf),this['_cursorInfo$'][_0x5c0fd7(0x201)](_0x144d14);}[_0x4cb5f3(0x42b)](_0x40f826,_0x57d5a4){const _0x1c7876=_0x4cb5f3;var _0x44cc54,_0xad1014;const _0x53cf71=(_0xad1014=(_0x44cc54=this[_0x1c7876(0x342)]['getUniverSheetInstance'](this[_0x1c7876(0x479)]))==null?void 0x0:_0x44cc54[_0x1c7876(0x27d)](_0x40f826))==null?void 0x0:_0xad1014[_0x1c7876(0x3c5)]();return(_0x53cf71==null?void 0x0:_0x53cf71[_0x1c7876(0x3d5)](_0x212c99=>_0x48485a[_0x1c7876(0x265)](_0x212c99,_0x57d5a4)))||_0x57d5a4;}[_0x4cb5f3(0x284)](){const _0x52ad6e=_0x4cb5f3,_0x4b3019=new _0x1d2906(),_0x354bb5=Hr(),_0x184ff9=()=>{const _0x599088=_0x2da6;_0x4b3019[_0x599088(0x266)]();const _0x1698b=(_0xa27345,_0x49be85,_0x346646,_0x3369d9)=>{const _0x231fca=_0x599088;let _0x2a8075=[];switch(_0xa27345['id']){case _0x273262[_0x231fca(0x376)]:{_0x2a8075=_0x2f14cb(_0xa27345,_0x3369d9);break;}case _0x273262[_0x231fca(0x457)]:{_0x2a8075=_0x35a047(_0xa27345,_0x3369d9);break;}case _0x273262['InsertColCommandId']:{_0x2a8075=_0x55045e(_0xa27345,_0x3369d9);break;}case _0x273262[_0x231fca(0x188)]:{_0x2a8075=_0x2aae38(_0xa27345,_0x3369d9);break;}case _0x273262[_0x231fca(0x304)]:{_0x2a8075=_0x266d0a(_0xa27345,_0x3369d9);break;}case _0x273262['InsertRowCommandId']:{_0x2a8075=_0x3f5a88(_0xa27345,_0x3369d9);break;}case _0x273262[_0x231fca(0x1b7)]:{_0x2a8075=_0x5718c4(_0xa27345,_0x3369d9);break;}case _0x273262[_0x231fca(0x242)]:{_0x2a8075=_0x5195ce(_0xa27345,_0x3369d9);break;}case _0x273262[_0x231fca(0x44e)]:{_0x2a8075=_0x7164b6(_0xa27345,_0x3369d9);break;}}const _0x35e847=_0x5500fb(_0x2a8075,_0x3369d9),_0xd80c0b=this['cursorInfo'][_0x231fca(0x157)](_0x49be85);if(_0xd80c0b&&_0x35e847){const _0x42ad79={..._0xd80c0b,'range':_0x35e847};this[_0x231fca(0x17c)]['set'](_0x49be85,_0x42ad79),_0x354bb5(()=>{const _0x57c0a9=_0x231fca,_0x3d75ce=this[_0x57c0a9(0x2e8)][_0x57c0a9(0x197)](_0x35e847,_0x41a437=>(_0x3d75ce[_0x57c0a9(0x266)](),_0x1698b(_0x41a437,_0x49be85,_0x346646,_0x35e847)));_0x4b3019[_0x57c0a9(0x1cf)](_0x3d75ce);});}return{'redos':[],'undos':[]};};this[_0x599088(0x17c)]['forEach']((_0x24c327,_0x17dd66)=>{const _0x8eec8e=_0x599088,{range:_0x1a6f5d,sheetID:_0x165cf1}=_0x24c327,_0x95ef8c=this[_0x8eec8e(0x2e8)]['registerRefRange'](_0x1a6f5d,_0x2c3c0a=>(_0x95ef8c[_0x8eec8e(0x266)](),_0x1698b(_0x2c3c0a,_0x17dd66,_0x165cf1,_0x1a6f5d)));_0x4b3019[_0x8eec8e(0x1cf)](_0x95ef8c);});};this['disposeWithMe'](_0x3aebc7(this[_0x52ad6e(0x1e4)][_0x52ad6e(0x2c5)](()=>{_0x184ff9();})));}[_0x4cb5f3(0x3b4)](){const _0x2d0ace=_0x4cb5f3;var _0x4cce05,_0x3f22e2;if(this[_0x2d0ace(0x338)]=!0x0,((_0x4cce05=this['_univerInstanceService'][_0x2d0ace(0x361)]())==null?void 0x0:_0x4cce05['getUnitId']())!==this[_0x2d0ace(0x479)])return;const _0x1f7ee4=(_0x3f22e2=this[_0x2d0ace(0x150)][_0x2d0ace(0x157)](_0x359359)[_0x2d0ace(0x166)]())==null?void 0x0:_0x3f22e2[0x0],_0x104bcd=this[_0x2d0ace(0x342)][_0x2d0ace(0x34a)](_0x53ce88['UNIVER_SHEET'])[_0x2d0ace(0x47c)]();_0x1f7ee4&&_0x104bcd&&this[_0x2d0ace(0x4ae)](_0x104bcd[_0x2d0ace(0x419)](),_0x1f7ee4);}[_0x4cb5f3(0x2bf)](){this['_online']=!0x1;}};Dt=$r([me(0x2,_0x4b74b3(_0xd20bac)),me(0x3,_0x4b74b3(Gt)),me(0x4,_0x4b74b3(ce)),me(0x5,_0x350446),me(0x6,_0x155531),me(0x7,_0x4b74b3(_0x40a324))],Dt);var kr=Object[_0x4cb5f3(0x1cd)],Br=Object[_0x4cb5f3(0x3cf)],Vr=(_0x550084,_0x476b23,_0x2e99d2,_0x24c398)=>{for(var _0x4151fc=_0x24c398>0x1?void 0x0:_0x24c398?Br(_0x476b23,_0x2e99d2):_0x476b23,_0x1fec2b=_0x550084['length']-0x1,_0x114e78;_0x1fec2b>=0x0;_0x1fec2b--)(_0x114e78=_0x550084[_0x1fec2b])&&(_0x4151fc=(_0x24c398?_0x114e78(_0x476b23,_0x2e99d2,_0x4151fc):_0x114e78(_0x4151fc))||_0x4151fc);return _0x24c398&&_0x4151fc&&kr(_0x476b23,_0x2e99d2,_0x4151fc),_0x4151fc;},ut=(_0x2eefa8,_0xb2d5c8)=>(_0x25d094,_0x56c817)=>_0xb2d5c8(_0x25d094,_0x56c817,_0x2eefa8);let ve=class extends _0x1384c9{constructor(_0xdbed69,_0x3141d8,_0x33bb6c){const _0x2419a8=_0x4cb5f3;super(),l(this,'_entities',new Map()),l(this,_0x2419a8(0x32d),new _0x199c18()),(this[_0x2419a8(0x342)]=_0xdbed69,this[_0x2419a8(0x150)]=_0x3141d8,this[_0x2419a8(0x438)]=_0x33bb6c,this[_0x2419a8(0x364)]());}['dispose'](){const _0x5bf345=_0x4cb5f3;super[_0x5bf345(0x266)](),this[_0x5bf345(0x32d)][_0x5bf345(0x396)](),this['_entities'][_0x5bf345(0x2de)](_0x44e9e7=>_0x44e9e7[_0x5bf345(0x266)]());}[_0x4cb5f3(0x3e2)](_0x319ed8){const _0x50cdc=_0x4cb5f3;return this['_entities'][_0x50cdc(0x30b)](_0x319ed8)?this['_entities'][_0x50cdc(0x157)](_0x319ed8)[_0x50cdc(0x20d)]:this[_0x50cdc(0x32d)][_0x50cdc(0x426)](_0x2cec12(_0x33ab8d=>_0x33ab8d[_0x50cdc(0x479)]===_0x319ed8),_0x17986a(_0x5798e8=>_0x5798e8['cursorInfo$']));}['_init'](){const _0x46eec6=_0x4cb5f3;this['_univerInstanceService'][_0x46eec6(0x296)](_0x53ce88[_0x46eec6(0x181)])[_0x46eec6(0x426)](_0xa11cc5(this[_0x46eec6(0x2fd)]))[_0x46eec6(0x2c5)](async _0x1e8d03=>{const _0x5556d2=_0x46eec6,_0x59d0ca=_0x1e8d03[_0x5556d2(0x310)](),_0x2c60ef=await this[_0x5556d2(0x350)](_0x59d0ca);this[_0x5556d2(0x32d)]['next'](_0x2c60ef),this['_entities']['set'](_0x59d0ca,_0x2c60ef);}),this[_0x46eec6(0x342)][_0x46eec6(0x296)](_0x53ce88[_0x46eec6(0x148)])['pipe'](_0xa11cc5(this[_0x46eec6(0x2fd)]))['pipe'](_0x2cec12(_0xfbeaef=>!_0xfbeaef[_0x46eec6(0x310)]()[_0x46eec6(0x231)]('__')))[_0x46eec6(0x2c5)](async _0xc4758b=>{const _0x1c1c7d=_0x46eec6,_0xf756b7=_0xc4758b[_0x1c1c7d(0x310)](),_0x476f5f=await this['_startDocCollabCursor'](_0xf756b7);this['_entityInit$'][_0x1c1c7d(0x201)](_0x476f5f),this[_0x1c1c7d(0x331)][_0x1c1c7d(0x24d)](_0xf756b7,_0x476f5f);}),_0x42229f(this['_univerInstanceService'][_0x46eec6(0x4b6)](_0x53ce88[_0x46eec6(0x148)]),this[_0x46eec6(0x342)][_0x46eec6(0x4b6)](_0x53ce88[_0x46eec6(0x181)]))[_0x46eec6(0x426)](_0xa11cc5(this[_0x46eec6(0x2fd)]))['subscribe'](_0x4b44ec=>{const _0x531156=_0x46eec6,_0x3a7e8c=_0x4b44ec[_0x531156(0x310)](),_0x3a3388=this['_entities'][_0x531156(0x157)](_0x3a7e8c);_0x3a3388&&(_0x3a3388[_0x531156(0x266)](),this[_0x531156(0x331)][_0x531156(0x40d)](_0x3a7e8c));});}async[_0x4cb5f3(0x350)](_0x525eff){const _0x5e2049=_0x4cb5f3,_0x46b3a9=await this[_0x5e2049(0x438)][_0x5e2049(0x1d8)](_0x525eff),_0x527b42=this['_injector'][_0x5e2049(0x161)](Dt,_0x525eff,_0x46b3a9);return _0x527b42['init'](),_0x527b42;}async['_startDocCollabCursor'](_0x56a53c){const _0x43e683=_0x4cb5f3,_0xab20ba=await this[_0x43e683(0x438)][_0x43e683(0x1d8)](_0x56a53c),_0x1aff48=this[_0x43e683(0x150)][_0x43e683(0x161)](Ot,_0x56a53c,_0xab20ba);return _0x1aff48[_0x43e683(0x214)](),_0x1aff48;}};ve=Vr([ut(0x0,_0x350446),ut(0x1,_0x4b74b3(_0xd20bac)),ut(0x2,_0x4b74b3(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function Wr(_0x30dbf8,_0x2091b9){const _0x18ee5d=_0x4cb5f3;let {radius:_0x144cf6,width:_0x1d0b53,height:_0x4db0ee}=_0x2091b9;_0x144cf6=_0x144cf6!=null?_0x144cf6:0x0,_0x1d0b53=_0x1d0b53!=null?_0x1d0b53:0x1e,_0x4db0ee=_0x4db0ee!=null?_0x4db0ee:0x1e;let _0x308775=0x0,_0x41969f=0x0,_0x232ffc=0x0;_0x308775=_0x41969f=_0x232ffc=Math[_0x18ee5d(0x21d)](_0x144cf6,_0x1d0b53/0x2,_0x4db0ee/0x2),_0x30dbf8[_0x18ee5d(0x31d)](),_0x30dbf8[_0x18ee5d(0x4b0)](_0x308775,0x0),_0x30dbf8['lineTo'](_0x1d0b53-_0x41969f,0x0),_0x30dbf8['arc'](_0x1d0b53-_0x41969f,_0x41969f,_0x41969f,Math['PI']*0x3/0x2,0x0,!0x1),_0x30dbf8[_0x18ee5d(0x223)](_0x1d0b53,_0x4db0ee-_0x232ffc),_0x30dbf8[_0x18ee5d(0x40c)](_0x1d0b53-_0x232ffc,_0x4db0ee-_0x232ffc,_0x232ffc,0x0,Math['PI']/0x2,!0x1),_0x30dbf8[_0x18ee5d(0x223)](0x0,_0x4db0ee),_0x30dbf8[_0x18ee5d(0x223)](0x0,_0x308775),_0x30dbf8['arc'](_0x308775,_0x308775,_0x308775,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x30dbf8[_0x18ee5d(0x272)](),_0x2091b9[_0x18ee5d(0x16d)]&&(_0x30dbf8[_0x18ee5d(0x26a)](),_0x30dbf8['fillStyle']=_0x2091b9[_0x18ee5d(0x16d)],_0x2091b9['fillRule']===_0x18ee5d(0x1e9)?_0x30dbf8[_0x18ee5d(0x16d)]('evenodd'):_0x30dbf8[_0x18ee5d(0x16d)](),_0x30dbf8[_0x18ee5d(0x4aa)]());}class st extends _0x479c9a{constructor(_0x42c31c,_0x472549){const _0x4d5a9a=_0x4cb5f3;super(_0x42c31c,_0x472549),l(this,_0x4d5a9a(0x3d0)),l(this,'text'),(this[_0x4d5a9a(0x3d0)]=_0x472549==null?void 0x0:_0x472549[_0x4d5a9a(0x3d0)],this['text']=_0x472549==null?void 0x0:_0x472549[_0x4d5a9a(0x38c)]);}static[_0x4cb5f3(0x4b2)](_0x2e5be2,_0x4662f5){const _0x377ad7=_0x4cb5f3,{text:_0x14718a,color:_0x199076}=_0x4662f5;_0x2e5be2[_0x377ad7(0x26a)](),_0x2e5be2[_0x377ad7(0x2ca)]=_0x377ad7(0x24b);const _0x2ed6ac=_0x2e5be2[_0x377ad7(0x387)](_0x14718a)[_0x377ad7(0x1c7)],_0x333f33=Math[_0x377ad7(0x21d)](_0x2ed6ac+0x2*dt,ms);Wr(_0x2e5be2,{'height':$e,'radius':0x4,'width':_0x333f33,'fill':_0x199076,'evented':!0x1}),_0x2e5be2[_0x377ad7(0x30e)]='#FFF';const _0x3def4f=dt,_0x465a42=$e-Fr,_0x3118d4=ms-0x2*dt;if(_0x2ed6ac>_0x3118d4){let _0x5d3055='',_0x5476a1=0x0;for(const _0x4a9402 of _0x14718a){const _0x142ffd=_0x2e5be2[_0x377ad7(0x387)](_0x4a9402)[_0x377ad7(0x1c7)];if(_0x5476a1+_0x142ffd<=_0x3118d4-_0x2e5be2[_0x377ad7(0x387)](_0x377ad7(0x301))['width'])_0x5d3055+=_0x4a9402,_0x5476a1+=_0x142ffd;else{_0x5d3055+=_0x377ad7(0x301);break;}}_0x2e5be2[_0x377ad7(0x3ee)](_0x5d3055,_0x3def4f,_0x465a42);}else _0x2e5be2[_0x377ad7(0x3ee)](_0x14718a,_0x3def4f,_0x465a42);_0x2e5be2['restore']();}[_0x4cb5f3(0x47b)](_0x295a34){const _0x380a9a=_0x4cb5f3;st[_0x380a9a(0x4b2)](_0x295a34,this);}}const ft=_0x4cb5f3(0x34f),Gr=_0x4cb5f3(0x1b5),Yr='collab-rect-range-',we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr=_0x4cb5f3(0x41e);class gs{constructor(_0x35f097,_0x317fa2,_0x29a69f,_0x5542d5){const _0x23b762=_0x4cb5f3;l(this,_0x23b762(0x377),[]),l(this,_0x23b762(0x1d3),null),l(this,_0x23b762(0x365),null),l(this,'_anchorDot',null),l(this,_0x23b762(0x1b0),null),l(this,_0x23b762(0x354),null),(this[_0x23b762(0x1ea)]=_0x35f097,this[_0x23b762(0x3ed)]=_0x317fa2,this[_0x23b762(0x1dd)]=_0x29a69f,this['_document']=_0x5542d5,this[_0x23b762(0x2d4)]());}set[_0x4cb5f3(0x1ae)](_0x21f7f1){const _0xf5d105=_0x4cb5f3;_0x21f7f1?(this[_0xf5d105(0x170)]&&this[_0xf5d105(0x170)][_0xf5d105(0x26b)](),this[_0xf5d105(0x365)]&&this['_textBubble'][_0xf5d105(0x490)]()):(this[_0xf5d105(0x170)]&&this[_0xf5d105(0x170)][_0xf5d105(0x490)](),this[_0xf5d105(0x365)]&&this[_0xf5d105(0x365)][_0xf5d105(0x26b)]());}[_0x4cb5f3(0x266)](){const _0x596e68=_0x4cb5f3;for(const _0x36e6d7 of this[_0x596e68(0x377)])_0x36e6d7[_0x596e68(0x266)]();this[_0x596e68(0x365)]&&this['_textBubble'][_0x596e68(0x266)](),this[_0x596e68(0x170)]&&this[_0x596e68(0x170)][_0x596e68(0x266)](),this[_0x596e68(0x1d3)]&&this[_0x596e68(0x1d3)]['dispose'](),this[_0x596e68(0x354)]&&this[_0x596e68(0x354)]();}[_0x4cb5f3(0x2d4)](){const _0x26ff5f=_0x4cb5f3;var _0x40ad52;const {_docSkeleton:_0x31fc1e,_document:_0x13ce4e}=this,{color:_0x3577c0,name:_0x1f0611,ranges:_0x3c06e5}=this[_0x26ff5f(0x1ea)],_0x40870b=_0x13ce4e[_0x26ff5f(0x160)](),{docsLeft:_0x57512a,docsTop:_0x1ba5ca}=_0x40870b,_0x453b5d=new _0x3354fa(_0x40870b,_0x31fc1e);for(const {startOffset:_0x104f28,endOffset:_0x3dd7ba,collapsed:_0x4c7e6e,isActive:_0x2ebb97}of _0x3c06e5){const _0x4d7a78=_0x31fc1e['findNodePositionByCharIndex'](_0x104f28),_0x1c7a8b=_0x31fc1e[_0x26ff5f(0x3ba)](_0x3dd7ba);if(_0x2ebb97){const {contentBoxPointGroup:_0x552d16}=_0x453b5d[_0x26ff5f(0x18a)](_0x1c7a8b,_0x1c7a8b);if(_0x552d16[_0x26ff5f(0x1ca)]===0x0)continue;this[_0x26ff5f(0x3ae)](_0x3577c0,_0x552d16,_0x57512a,_0x1ba5ca,_0x1f0611),this[_0x26ff5f(0x354)]=this[_0x26ff5f(0x3d8)]();}if(!_0x4c7e6e&&_0x4d7a78&&_0x1c7a8b){if(_0x18eda9(_0x4d7a78,_0x1c7a8b)){const _0xd9824=new _0x539f57(_0x40870b,_0x31fc1e),{pointGroup:_0x4a6524}=(_0x40ad52=_0xd9824[_0x26ff5f(0x18a)](_0x4d7a78,_0x1c7a8b))!=null?_0x40ad52:{};if(_0x4a6524==null||_0x4a6524[_0x26ff5f(0x1ca)]===0x0)continue;this[_0x26ff5f(0x164)](_0x3577c0,_0x4a6524,_0x57512a,_0x1ba5ca);}else{const {contentBoxPointGroup:_0x23ce62}=_0x453b5d[_0x26ff5f(0x18a)](_0x4d7a78,_0x1c7a8b);if(_0x23ce62[_0x26ff5f(0x1ca)]===0x0)continue;this[_0x26ff5f(0x397)](_0x3577c0,_0x23ce62,_0x57512a,_0x1ba5ca);}}}}[_0x4cb5f3(0x3ae)](_0x40f5f5,_0x40206c,_0x2f51a5,_0x4d7b40,_0x165a37){const _0x53a021=_0x4cb5f3,_0x15e224=this[_0x53a021(0x453)](_0x40206c),{left:_0x335318,top:_0xe3a133,height:_0x22d89b}=_0x15e224,_0x13b5d1=this['_getScale'](),_0x425456=Xr/_0x13b5d1,_0x1cf7ed=new _0x3434fa(ft+_0x3f9d09[_0x53a021(0x238)](we),{'left':_0x335318+_0x2f51a5-_0x425456,'top':_0xe3a133+_0x4d7b40,'height':_0x22d89b,'width':Kr,'fill':_0x40f5f5||_0x243253(_0x1f71a4[_0x53a021(0x2b7)],0x0),'strokeWidth':_0x425456,'stroke':qr,'evented':!0x0});this[_0x53a021(0x1d3)]=_0x1cf7ed,this[_0x53a021(0x3ed)]['addObject'](_0x1cf7ed,_0xe3d047);const _0x5e7ac2=new _0x3434fa(ft+_0x3f9d09[_0x53a021(0x238)](we),{'left':_0x335318+_0x2f51a5-_0x425456,'top':_0xe3a133+_0x4d7b40-mt/0x2,'height':mt,'width':mt,'fill':_0x40f5f5||_0x243253(_0x1f71a4[_0x53a021(0x2b7)],0x0),'strokeWidth':0x0,'stroke':_0x40f5f5||_0x243253(_0x1f71a4[_0x53a021(0x2b7)],0x0),'evented':!0x1});this[_0x53a021(0x170)]=_0x5e7ac2,this[_0x53a021(0x3ed)][_0x53a021(0x460)](_0x5e7ac2,_0xe3d047);const _0x30b75f=new st(ft+_0x3f9d09[_0x53a021(0x238)](we),{'left':_0x335318+_0x2f51a5-_0x425456,'top':_0xe3a133+_0x4d7b40-$e,'text':_0x165a37,'color':_0x40f5f5});this[_0x53a021(0x365)]=_0x30b75f,this[_0x53a021(0x3ed)][_0x53a021(0x460)](_0x30b75f,_0xe3d047),this[_0x53a021(0x1ae)]=!0x1;}['_handleHover'](){const _0x384436=_0x4cb5f3,_0x128e2b=this[_0x384436(0x1d3)][_0x384436(0x321)]['subscribeEvent'](()=>{const _0x2dbf29=_0x384436;this[_0x2dbf29(0x1ae)]=!0x0;}),_0x29ebeb=this['_anchor'][_0x384436(0x3c1)][_0x384436(0x25d)](()=>{const _0x37ec37=_0x384436;this[_0x37ec37(0x1b0)]&&clearTimeout(this[_0x37ec37(0x1b0)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{_0x128e2b['unsubscribe'](),_0x29ebeb['unsubscribe']();};}['_drawTextRange'](_0x4170d1,_0x4411d7,_0x568922,_0x4d31b2){const _0x1b1cef=_0x4cb5f3,_0x48aa54=new _0x427e26(_0x4170d1)['setAlpha'](0.2)[_0x1b1cef(0x253)](),_0x2e8d1a=new _0x301ec8(Gr+_0x3f9d09[_0x1b1cef(0x238)](we),{'pointsGroup':_0x4411d7,'fill':_0x48aa54||_0x243253(_0x1f71a4[_0x1b1cef(0x2b7)],0.2),'left':_0x568922,'top':_0x4d31b2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1b1cef(0x404)](_0x2e8d1a),this[_0x1b1cef(0x3ed)]['addObject'](_0x2e8d1a,_0xe3d047);}[_0x4cb5f3(0x164)](_0x5c2518,_0x539a44,_0x285a44,_0x1b1438){const _0x4802cc=_0x4cb5f3,_0x2fef6e=new _0x427e26(_0x5c2518)[_0x4802cc(0x476)](0.2)['toRgbString'](),_0x17051b=new _0x301ec8(Yr+_0x3f9d09['generateRandomId'](we),{'pointsGroup':_0x539a44,'fill':_0x2fef6e||_0x243253(_0x1f71a4[_0x4802cc(0x2b7)],0.2),'left':_0x285a44,'top':_0x1b1438,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4802cc(0x377)][_0x4802cc(0x404)](_0x17051b),this[_0x4802cc(0x3ed)]['addObject'](_0x17051b,_0xe3d047);}[_0x4cb5f3(0x453)](_0x1fa923){const _0x3cdafd=_0x1fa923[0x0],_0x2d14e6=_0x3cdafd[0x0],_0x2ae54a=_0x3cdafd[0x2],{x:_0x1f7e0e,y:_0xdb97b0}=_0x2d14e6,{x:_0x473e84,y:_0x1c2810}=_0x2ae54a;return{'left':_0x1f7e0e,'top':_0xdb97b0,'width':_0x473e84-_0x1f7e0e,'height':_0x1c2810-_0xdb97b0};}[_0x4cb5f3(0x291)](){const _0x590e10=_0x4cb5f3,{scaleX:_0x466100,scaleY:_0x7741d3}=this[_0x590e10(0x3ed)][_0x590e10(0x287)]();return Math[_0x590e10(0x24a)](_0x466100,_0x7741d3);}}var Jr=Object[_0x4cb5f3(0x1cd)],zr=Object[_0x4cb5f3(0x3cf)],Zr=(_0x36f7ea,_0x38f66c,_0x43db6c,_0x4b2fa4)=>{for(var _0x36bd16=_0x4b2fa4>0x1?void 0x0:_0x4b2fa4?zr(_0x38f66c,_0x43db6c):_0x38f66c,_0x420568=_0x36f7ea['length']-0x1,_0x9f50fd;_0x420568>=0x0;_0x420568--)(_0x9f50fd=_0x36f7ea[_0x420568])&&(_0x36bd16=(_0x4b2fa4?_0x9f50fd(_0x38f66c,_0x43db6c,_0x36bd16):_0x9f50fd(_0x36bd16))||_0x36bd16);return _0x4b2fa4&&_0x36bd16&&Jr(_0x38f66c,_0x43db6c,_0x36bd16),_0x36bd16;},ke=(_0x5ac1c5,_0x150b92)=>(_0x373541,_0x1e837f)=>_0x150b92(_0x373541,_0x1e837f,_0x5ac1c5);let wt=class extends _0x1384c9{constructor(_0xf80fae,_0x316603,_0x33d10a,_0x240189,_0x3b28ab){const _0x39292b=_0x4cb5f3;super(),l(this,_0x39292b(0x217),[]),l(this,_0x39292b(0x278),[]),(this[_0x39292b(0x1fe)]=_0xf80fae,this[_0x39292b(0x1e8)]=_0x316603,this[_0x39292b(0x370)]=_0x33d10a,this[_0x39292b(0x172)]=_0x240189,this[_0x39292b(0x205)]=_0x3b28ab,this[_0x39292b(0x364)]());}['_init'](){const _0x189918=_0x4cb5f3,_0x295144=this[_0x189918(0x1fe)]['unitId'],_0x5d20cf=this[_0x189918(0x1e8)];this[_0x189918(0x357)](_0x20e3cc([this[_0x189918(0x370)][_0x189918(0x3e2)](_0x295144),this[_0x189918(0x205)][_0x189918(0x163)]])[_0x189918(0x426)](_0x30fe4a(([_0x2dd54f,_0x4c5437])=>({'skeleton':_0x5d20cf[_0x189918(0x239)](),'cursors':[..._0x2dd54f[_0x189918(0x492)]()][_0x189918(0x220)](_0x58bd14=>({..._0x58bd14,'color':_0x4c5437[_0x58bd14[_0x189918(0x3d0)]]}))})))[_0x189918(0x2c5)](_0x21b3a7=>{const _0x3d749f=_0x189918;if(this[_0x3d749f(0x46a)](),_0x21b3a7){const {skeleton:_0x472d7a,cursors:_0xed560b}=_0x21b3a7;this['_updateCollabCursors'](_0x472d7a,_0xed560b);}})),this['_initResize'](),this[_0x189918(0x3d3)]();}[_0x4cb5f3(0x388)](_0x363848,_0x2ae3ed){const _0x363bd3=_0x4cb5f3,{scene:_0x531324,mainComponent:_0x512ded}=this[_0x363bd3(0x1fe)],_0x289ced=_0x2ae3ed[_0x363bd3(0x199)](_0x3e2508=>new gs(_0x3e2508,_0x531324,_0x363848,_0x512ded));this[_0x363bd3(0x217)]=_0x289ced,this[_0x363bd3(0x278)]=_0x2ae3ed;}[_0x4cb5f3(0x31a)](){const _0x390ead=_0x4cb5f3;this['_removeCollabCursors']();const {scene:_0x5aef57,mainComponent:_0x43ad31}=this[_0x390ead(0x1fe)],_0x12c3af=this['_docSkeletonManagerService'][_0x390ead(0x239)](),_0x4b0e0a=this['_cursors'][_0x390ead(0x199)](_0x13a60a=>new gs(_0x13a60a,_0x5aef57,_0x12c3af,_0x43ad31));this[_0x390ead(0x217)]=_0x4b0e0a;}['_removeCollabCursors'](){const _0x1b4558=_0x4cb5f3;this['_cursorShapes'][_0x1b4558(0x2de)](_0x1e4194=>_0x1e4194[_0x1b4558(0x266)]()),this[_0x1b4558(0x217)]=[];}[_0x4cb5f3(0x3d3)](){const _0xa82a8d=_0x4cb5f3,_0x513ba8=[_0x1c18cf['id']];this[_0xa82a8d(0x357)](this[_0xa82a8d(0x172)][_0xa82a8d(0x3da)](_0x23d6ef=>{const _0x14d34b=_0xa82a8d;_0x513ba8['includes'](_0x23d6ef['id'])&&_0x23d6ef['params'][_0x14d34b(0x3cd)]===this['_context'][_0x14d34b(0x3cd)]&&this[_0x14d34b(0x31a)]();}));}['_initResize'](){const _0x3226ce=_0x4cb5f3;this[_0x3226ce(0x357)](_0x4bd808(this[_0x3226ce(0x1fe)][_0x3226ce(0x344)][_0x3226ce(0x36f)])['pipe'](_0x344b49(_0x2fbfad=>_0x2fbfad['type']===_0x2287f0[_0x3226ce(0x18e)]),_0x4163cb(0x10))[_0x3226ce(0x2c5)](()=>{this['_refreshCollabCursors']();}));}};wt=Zr([ke(0x1,_0x4b74b3(_0x67f5dd)),ke(0x2,_0x4b74b3(ve)),ke(0x3,_0x155531),ke(0x4,_0x4b74b3(_0x26aabf))],wt);const Qr=0x1,eo=1.5;class to extends _0x479c9a{constructor(_0x31e7ad,_0x551b66){const _0x3e31aa=_0x4cb5f3;super(_0x31e7ad,_0x551b66),l(this,_0x3e31aa(0x184)),l(this,_0x3e31aa(0x2f5),!0x1),l(this,_0x3e31aa(0x25b)),l(this,_0x3e31aa(0x472),''),l(this,'_labelPosition',_0x3e31aa(0x4b1)),l(this,_0x3e31aa(0x2bc)),(_0x551b66&&this['setShapeProps'](_0x551b66),this[_0x3e31aa(0x321)]['subscribeEvent'](()=>this[_0x3e31aa(0x3e0)]({'hovered':!0x0})),this[_0x3e31aa(0x3c1)][_0x3e31aa(0x25d)](()=>this[_0x3e31aa(0x3e0)]({'hovered':!0x1})));}[_0x4cb5f3(0x3e0)](_0x55451e){const _0x39212c=_0x4cb5f3;var _0x552d91,_0x1c5833,_0x5088eb,_0x1b8fe5,_0x2ae2eb,_0x1b5a7f;this['_color']=(_0x552d91=_0x55451e[_0x39212c(0x3d0)])!=null?_0x552d91:this[_0x39212c(0x184)],this['_hovered']=(_0x1c5833=_0x55451e[_0x39212c(0x1f9)])!=null?_0x1c5833:this['_hovered'],this['_range']=(_0x5088eb=_0x55451e[_0x39212c(0x48a)])!=null?_0x5088eb:this[_0x39212c(0x25b)],this[_0x39212c(0x472)]=(_0x1b8fe5=_0x55451e[_0x39212c(0x206)])!=null?_0x1b8fe5:this[_0x39212c(0x472)],this['_labelPosition']=(_0x2ae2eb=_0x55451e[_0x39212c(0x213)])!=null?_0x2ae2eb:this[_0x39212c(0x4c0)],this[_0x39212c(0x2bc)]=(_0x1b5a7f=_0x55451e[_0x39212c(0x3ce)])!=null?_0x1b5a7f:this[_0x39212c(0x2bc)],this[_0x39212c(0x46f)]({'width':_0x55451e[_0x39212c(0x1c7)],'height':_0x55451e[_0x39212c(0x433)]});}['onMouseMove'](_0x11f2ee){const _0x24f558=_0x4cb5f3,{row:_0x804b2a,column:_0x20fb7d}=_0x11f2ee;if(_0x804b2a>=this[_0x24f558(0x25b)][_0x24f558(0x2f7)]&&_0x804b2a<=this['_range']['endRow']&&_0x20fb7d>=this[_0x24f558(0x25b)][_0x24f558(0x1e0)]&&_0x20fb7d<=this[_0x24f558(0x25b)]['endColumn']){this[_0x24f558(0x3e0)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x4cb5f3(0x227)](_0x1d7e76){return!0x1;}[_0x4cb5f3(0x47b)](_0x4c1d37){const _0x5222b4=_0x4cb5f3;_0x3434fa[_0x5222b4(0x4b2)](_0x4c1d37,{'width':this[_0x5222b4(0x1c7)],'height':this['height'],'strokeWidth':eo,'stroke':this[_0x5222b4(0x184)],'evented':!0x1,'fill':this[_0x5222b4(0x2bc)]}),this[_0x5222b4(0x2f5)]&&(_0x4c1d37[_0x5222b4(0x26a)](),_0x4c1d37[_0x5222b4(0x171)](0x1,0x0,0x0,0x1,this[_0x5222b4(0x1c7)],this[_0x5222b4(0x4c0)]==='bottom'?0x0:-$e),st['drawWith'](_0x4c1d37,{'text':this[_0x5222b4(0x472)],'color':this[_0x5222b4(0x184)]}),_0x4c1d37['restore']());}}var so=Object[_0x4cb5f3(0x1cd)],io=Object['getOwnPropertyDescriptor'],no=(_0x181998,_0x3e53ee,_0x23eab3,_0x512f41)=>{const _0x404435=_0x4cb5f3;for(var _0x44ac67=_0x512f41>0x1?void 0x0:_0x512f41?io(_0x3e53ee,_0x23eab3):_0x3e53ee,_0x26f1d1=_0x181998[_0x404435(0x1ca)]-0x1,_0x5f24e5;_0x26f1d1>=0x0;_0x26f1d1--)(_0x5f24e5=_0x181998[_0x26f1d1])&&(_0x44ac67=(_0x512f41?_0x5f24e5(_0x3e53ee,_0x23eab3,_0x44ac67):_0x5f24e5(_0x44ac67))||_0x44ac67);return _0x512f41&&_0x44ac67&&so(_0x3e53ee,_0x23eab3,_0x44ac67),_0x44ac67;},gt=(_0x497740,_0x1f31d9)=>(_0x449908,_0x3cf2de)=>_0x1f31d9(_0x449908,_0x3cf2de,_0x497740);const ro=0x1389;let Pt=class extends _0x1384c9{constructor(_0x5b3758,_0x1135aa,_0x5f028b,_0x376443){const _0x28a9e0=_0x4cb5f3;super(),l(this,'_cursors',new Set()),l(this,_0x28a9e0(0x314),null),(this[_0x28a9e0(0x1fe)]=_0x5b3758,this[_0x28a9e0(0x1ed)]=_0x1135aa,this[_0x28a9e0(0x370)]=_0x5f028b,this[_0x28a9e0(0x205)]=_0x376443,this[_0x28a9e0(0x364)]());}[_0x4cb5f3(0x364)](){const _0x24e16d=_0x4cb5f3;this[_0x24e16d(0x1ed)][_0x24e16d(0x2bb)]['pipe'](_0xbbe6f4(this[_0x24e16d(0x2fd)]),_0x1fefc6(_0x14bf5b=>{const _0x22fe8c=_0x24e16d;if(_0x14bf5b){const _0x2c7e56=_0x14bf5b[_0x22fe8c(0x1f8)];return _0x20e3cc(this[_0x22fe8c(0x370)]['getCollabCursors$'](this[_0x22fe8c(0x1fe)]['unitId']),this[_0x22fe8c(0x205)][_0x22fe8c(0x163)])['pipe'](_0x30fe4a(([_0x5237a5,_0x267dbb])=>{const _0x288f46=_0x22fe8c,_0x2b08aa=new Map();return _0x5237a5[_0x288f46(0x2de)]((_0x5ad7cd,_0x1b7351)=>{const _0x146552=_0x288f46;if(_0x5ad7cd[_0x146552(0x353)]===_0x2c7e56){const _0x35b54b={..._0x5ad7cd};_0x35b54b[_0x146552(0x3d0)]=_0x267dbb[_0x5ad7cd[_0x146552(0x3d0)]],_0x2b08aa[_0x146552(0x24d)](_0x1b7351,_0x35b54b);}}),{'skeleton':_0x14bf5b,'cursors':_0x2b08aa};}));}return _0x5569e1({'skeleton':null,'cursors':new Map()});}))[_0x24e16d(0x2c5)](({skeleton:_0x25a2cc,cursors:_0x8d3faa})=>{const _0x45a278=_0x24e16d;this[_0x45a278(0x46a)](),_0x25a2cc&&this[_0x45a278(0x388)](_0x25a2cc,_0x8d3faa);}),this[_0x24e16d(0x1ed)][_0x24e16d(0x2bb)][_0x24e16d(0x2c5)](_0x5f3b87=>{const _0x581710=_0x24e16d;if(_0x5f3b87==null)return;const {skeleton:_0x211d85}=_0x5f3b87,{scene:_0x123de9}=this[_0x581710(0x1fe)];_0x123de9[_0x581710(0x23e)][_0x581710(0x25d)](_0x1fc090(_0x48f81d=>{const _0x241ac4=_0x581710;var _0x592ec1,_0x270ff0;const {offsetX:_0x15b6c7,offsetY:_0x5bb072}=_0x48f81d,{x:_0x210bdb,y:_0x27fc87}=_0x123de9['getRelativeToViewportCoord'](_0x53696a[_0x241ac4(0x2cd)]([_0x15b6c7,_0x5bb072])),{scaleX:_0xd27427,scaleY:_0x2bc2ad}=_0x123de9[_0x241ac4(0x287)](),_0x3e4bc0=_0x123de9[_0x241ac4(0x3b6)](_0x110cd3[_0x241ac4(0x225)]),_0x174e78=_0x123de9[_0x241ac4(0x31f)](_0x53696a[_0x241ac4(0x2cd)]([_0x210bdb,_0x27fc87]),_0x3e4bc0),_0x19fe76=_0x211d85[_0x241ac4(0x20e)](_0x15b6c7,_0x5bb072,_0xd27427,_0x2bc2ad,_0x174e78);((_0x592ec1=this[_0x241ac4(0x314)])==null?void 0x0:_0x592ec1[_0x241ac4(0x35a)])===_0x19fe76[_0x241ac4(0x35a)]&&((_0x270ff0=this['_lastPointer'])==null?void 0x0:_0x270ff0[_0x241ac4(0x2d9)])===_0x19fe76[_0x241ac4(0x2d9)]||this[_0x241ac4(0x278)]['forEach'](_0x44f34f=>{const _0x5cee31=_0x241ac4;_0x44f34f[_0x5cee31(0x3d2)](_0x19fe76);});},0x64));});}['_updateCollabCursors'](_0x52fb78,_0x35fb68){const _0x58bbe4=_0x4cb5f3;var _0x3c1000;const _0x35223e=(_0x3c1000=this['_sheetSkeletonManagerService'][_0x58bbe4(0x3c7)]())==null?void 0x0:_0x3c1000['skeleton'];if(!_0x35223e)return;const _0x2b26be=this[_0x58bbe4(0x178)]();if(!_0x2b26be)return;this['_cursors']['forEach'](_0x2933c8=>{const _0x496524=_0x58bbe4;_0x2933c8[_0x496524(0x251)]();});const {scene:_0x293b23}=_0x2b26be,_0x35b106=oo(Array[_0x58bbe4(0x3aa)](_0x35fb68[_0x58bbe4(0x492)]()))[_0x58bbe4(0x199)](_0x594868=>{const _0xf7967b=_0x58bbe4,{color:_0x537d4c,range:_0x3bab47,name:_0x5c34bb,selection:_0x34356b,sheetID:_0x409b21}=_0x594868,{startColumn:_0x4769b5,startRow:_0x44b63e,endColumn:_0x226807,endRow:_0x46365a}=_0x3bab47,_0xac6dc=_0x758db(_0x44b63e,_0x4769b5,_0x293b23,_0x35223e),_0x313e00=_0x758db(_0x46365a,_0x226807,_0x293b23,_0x35223e),{columnHeaderHeightAndMarginTop:_0x432b67}=_0x35223e,{startX:_0x2302da,startY:_0x2ad5b4}=_0xac6dc,{endX:_0x340f4e,endY:_0x4c9911}=_0x313e00,_0x21e74e=_0x340f4e-_0x2302da,_0x4d6572=_0x4c9911-_0x2ad5b4,_0x5439d1={'labelPosition':_0x2ad5b4-_0x432b67>=$e?_0xf7967b(0x4b1):_0xf7967b(0x1d6),'sheetID':_0x409b21,'range':_0x3bab47,'color':_0x537d4c,'name':_0x5c34bb,'selection':_0x34356b,'left':_0x2302da,'top':_0x2ad5b4,'width':_0x21e74e,'height':_0x4d6572,'evented':!0x1,'zIndex':ro};return new to(_0x5c34bb,_0x5439d1);});_0x293b23[_0x58bbe4(0x49e)](_0x35b106,Qr),this[_0x58bbe4(0x278)]=new Set(_0x35b106);}[_0x4cb5f3(0x46a)](){const _0x3253eb=_0x4cb5f3;var _0x2a4b7f;(_0x2a4b7f=this[_0x3253eb(0x278)])==null||_0x2a4b7f[_0x3253eb(0x2de)](_0x131de8=>_0x131de8[_0x3253eb(0x266)]());}[_0x4cb5f3(0x178)](){const _0x13da09=_0x4cb5f3;return _0x1e3ad3(this['_context'][_0x13da09(0x237)],this[_0x13da09(0x1fe)]);}};Pt=no([gt(0x1,_0x4b74b3(_0x50458d)),gt(0x2,_0x4b74b3(ve)),gt(0x3,_0x4b74b3(_0x26aabf))],Pt);function oo(_0x5420e6){const _0x337838=_0x4cb5f3,_0x22ea6e=new Map();return _0x5420e6[_0x337838(0x2de)](_0x53958f=>{const _0x4ee206=_0x337838;if(_0x22ea6e[_0x4ee206(0x30b)](_0x53958f[_0x4ee206(0x2aa)])){const _0x298b60=_0x22ea6e['get'](_0x53958f[_0x4ee206(0x2aa)]);_0x298b60[_0x4ee206(0x206)]+=',\x20'+_0x53958f[_0x4ee206(0x206)];}else _0x22ea6e['set'](_0x53958f['selection'],_0x53958f);}),Array['from'](_0x22ea6e[_0x337838(0x492)]());}var N=function(){const _0x177113=_0x4cb5f3;return N=Object[_0x177113(0x20c)]||function(_0x4899b6){const _0x124c47=_0x177113;for(var _0x50e37a,_0x4664c6=0x1,_0x56fcf8=arguments['length'];_0x4664c6<_0x56fcf8;_0x4664c6++){_0x50e37a=arguments[_0x4664c6];for(var _0x259c2a in _0x50e37a)Object[_0x124c47(0x4bf)]['hasOwnProperty'][_0x124c47(0x20b)](_0x50e37a,_0x259c2a)&&(_0x4899b6[_0x259c2a]=_0x50e37a[_0x259c2a]);}return _0x4899b6;},N[_0x177113(0x41b)](this,arguments);},ao=function(_0x4a54dd,_0x342b50){const _0x489371=_0x4cb5f3;var _0x1096d2={};for(var _0x5eb59e in _0x4a54dd)Object[_0x489371(0x4bf)][_0x489371(0x3ca)][_0x489371(0x20b)](_0x4a54dd,_0x5eb59e)&&_0x342b50[_0x489371(0x3bb)](_0x5eb59e)<0x0&&(_0x1096d2[_0x5eb59e]=_0x4a54dd[_0x5eb59e]);if(_0x4a54dd!=null&&typeof Object[_0x489371(0x41a)]=='function'){for(var _0x33356e=0x0,_0x5eb59e=Object['getOwnPropertySymbols'](_0x4a54dd);_0x33356e<_0x5eb59e[_0x489371(0x1ca)];_0x33356e++)_0x342b50[_0x489371(0x3bb)](_0x5eb59e[_0x33356e])<0x0&&Object[_0x489371(0x4bf)]['propertyIsEnumerable'][_0x489371(0x20b)](_0x4a54dd,_0x5eb59e[_0x33356e])&&(_0x1096d2[_0x5eb59e[_0x33356e]]=_0x4a54dd[_0x5eb59e[_0x33356e]]);}return _0x1096d2;},Yt=_0x449042(function(_0x1dd8b5,_0x1e1811){const _0x3d2821=_0x4cb5f3;var _0x2eb4d7=_0x1dd8b5[_0x3d2821(0x4b9)],_0x152402=_0x1dd8b5['id'],_0x40a6b6=_0x1dd8b5[_0x3d2821(0x420)],_0xb7fc=_0x1dd8b5[_0x3d2821(0x3a2)],_0x98fa63=ao(_0x1dd8b5,['icon','id',_0x3d2821(0x420),_0x3d2821(0x3a2)]),_0x4c3879=_0x3d2821(0x193)[_0x3d2821(0x44a)](_0x152402,'\x20')[_0x3d2821(0x44a)](_0x40a6b6||'')[_0x3d2821(0x25c)](),_0x4ab029=_0x100831('_'[_0x3d2821(0x44a)](lo()));return Ws(_0x2eb4d7,''[_0x3d2821(0x44a)](_0x152402),{'defIds':_0x2eb4d7[_0x3d2821(0x35f)],'idSuffix':_0x4ab029[_0x3d2821(0x2e7)]},N({'ref':_0x1e1811,'className':_0x4c3879},_0x98fa63),_0xb7fc);});function Ws(_0x44adff,_0x54aaab,_0x36f5c9,_0x29a83b,_0x1834e6){const _0x51522b=_0x4cb5f3;return _0x52c8dd(_0x44adff[_0x51522b(0x402)],N(N({'key':_0x54aaab},co(_0x44adff,_0x36f5c9,_0x1834e6)),_0x29a83b),(ho(_0x44adff,_0x36f5c9)[_0x51522b(0x1f7)]||[])['map'](function(_0x1c2908,_0x26783b){const _0xaa0294=_0x51522b;return Ws(_0x1c2908,''[_0xaa0294(0x44a)](_0x54aaab,'-')['concat'](_0x44adff[_0xaa0294(0x402)],'-')[_0xaa0294(0x44a)](_0x26783b),_0x36f5c9,void 0x0,_0x1834e6);}));}function co(_0x168d2a,_0x5e0b20,_0x12388f){const _0x509540=_0x4cb5f3;var _0x56c6f2=N({},_0x168d2a[_0x509540(0x409)]);_0x12388f!=null&&_0x12388f[_0x509540(0x4a0)]&&_0x56c6f2[_0x509540(0x16d)]===_0x509540(0x4a0)&&(_0x56c6f2[_0x509540(0x16d)]=_0x12388f[_0x509540(0x4a0)]);var _0x4f0fc1=_0x5e0b20[_0x509540(0x35f)];return!_0x4f0fc1||_0x4f0fc1[_0x509540(0x1ca)]===0x0||(_0x168d2a[_0x509540(0x402)]==='use'&&_0x56c6f2['xlink:href']&&(_0x56c6f2[_0x509540(0x2af)]=_0x56c6f2[_0x509540(0x2af)]+_0x5e0b20[_0x509540(0x210)]),Object[_0x509540(0x2d3)](_0x56c6f2)[_0x509540(0x2de)](function(_0x3b076f){const _0x2b5250=_0x509540;var _0x215ce5=_0x3b076f[0x0],_0xfa33d7=_0x3b076f[0x1];typeof _0xfa33d7=='string'&&(_0x56c6f2[_0x215ce5]=_0xfa33d7[_0x2b5250(0x4a3)](/url\(#(.*)\)/,'url(#$1'[_0x2b5250(0x44a)](_0x5e0b20[_0x2b5250(0x210)],')')));})),_0x56c6f2;}function ho(_0x29cb41,_0x1402ec){const _0x4eb82f=_0x4cb5f3;var _0x39b95c,_0x107b76=_0x1402ec[_0x4eb82f(0x35f)];return!_0x107b76||_0x107b76['length']===0x0?_0x29cb41:_0x29cb41[_0x4eb82f(0x402)]===_0x4eb82f(0x254)&&(!((_0x39b95c=_0x29cb41['children'])===null||_0x39b95c===void 0x0)&&_0x39b95c['length'])?N(N({},_0x29cb41),{'children':_0x29cb41[_0x4eb82f(0x1f7)][_0x4eb82f(0x199)](function(_0x4c34f0){const _0xc153e3=_0x4eb82f;return typeof _0x4c34f0[_0xc153e3(0x409)]['id']=='string'&&_0x107b76&&_0x107b76[_0xc153e3(0x3bb)](_0x4c34f0[_0xc153e3(0x409)]['id'])>-0x1?N(N({},_0x4c34f0),{'attrs':N(N({},_0x4c34f0['attrs']),{'id':_0x4c34f0[_0xc153e3(0x409)]['id']+_0x1402ec['idSuffix']})}):_0x4c34f0;})}):_0x29cb41;}function lo(){const _0x396010=_0x4cb5f3;return Math['random']()[_0x396010(0x3fd)](0x24)[_0x396010(0x324)](0x2,0x8);}Yt[_0x4cb5f3(0x236)]=_0x4cb5f3(0x3ff);var _o={'tag':_0x4cb5f3(0x24e),'attrs':{'fill':_0x4cb5f3(0x3a6),'viewBox':_0x4cb5f3(0x28e),'width':_0x4cb5f3(0x2b2),'height':_0x4cb5f3(0x2b2)},'children':[{'tag':'g','attrs':{'clipPath':_0x4cb5f3(0x3d7)},'children':[{'tag':_0x4cb5f3(0x152),'attrs':{'stroke':_0x4cb5f3(0x3e6),'d':_0x4cb5f3(0x3f6),'strokeLinecap':_0x4cb5f3(0x14a),'strokeLinejoin':_0x4cb5f3(0x14a),'strokeWidth':1.2}}]},{'tag':_0x4cb5f3(0x254),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4cb5f3(0x3ac)},'children':[{'tag':_0x4cb5f3(0x152),'attrs':{'fill':_0x4cb5f3(0x40b),'d':_0x4cb5f3(0x412)}}]}]}],'defIds':[_0x4cb5f3(0x3ac)]},Gs=_0x449042(function(_0x2f8f38,_0x161bb6){const _0x4f644a=_0x4cb5f3;return _0x52c8dd(Yt,Object['assign']({},_0x2f8f38,{'id':_0x4f644a(0x2c7),'ref':_0x161bb6,'icon':_o}));});Gs[_0x4cb5f3(0x236)]='OffLineSingle';var uo={'tag':'svg','attrs':{'fill':_0x4cb5f3(0x3a6),'viewBox':_0x4cb5f3(0x289),'width':_0x4cb5f3(0x2b2),'height':_0x4cb5f3(0x2b2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x4cb5f3(0x152),'attrs':{'stroke':'currentColor','d':_0x4cb5f3(0x2e2),'strokeLinecap':_0x4cb5f3(0x14a),'strokeLinejoin':_0x4cb5f3(0x14a),'strokeWidth':1.2}}]},{'tag':_0x4cb5f3(0x254),'attrs':{},'children':[{'tag':_0x4cb5f3(0x37d),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x4cb5f3(0x40b),'d':'M0\x200H16V16H0z','transform':_0x4cb5f3(0x3c9)}}]}]}],'defIds':[_0x4cb5f3(0x1db)]},Ys=_0x449042(function(_0x277d51,_0x155a84){const _0x5000cb=_0x4cb5f3;return _0x52c8dd(Yt,Object[_0x5000cb(0x20c)]({},_0x277d51,{'id':_0x5000cb(0x1b4),'ref':_0x155a84,'icon':uo}));});Ys[_0x4cb5f3(0x236)]='OnLineSingle';function Ks(_0x123b9f){const _0x5f2a67=_0x4cb5f3;var _0x235a3e,_0x197a2f,_0x4129cb='';if(typeof _0x123b9f==_0x5f2a67(0x2ee)||typeof _0x123b9f=='number')_0x4129cb+=_0x123b9f;else{if(typeof _0x123b9f==_0x5f2a67(0x315)){if(Array[_0x5f2a67(0x302)](_0x123b9f)){var _0x4afca0=_0x123b9f[_0x5f2a67(0x1ca)];for(_0x235a3e=0x0;_0x235a3e<_0x4afca0;_0x235a3e++)_0x123b9f[_0x235a3e]&&(_0x197a2f=Ks(_0x123b9f[_0x235a3e]))&&(_0x4129cb&&(_0x4129cb+='\x20'),_0x4129cb+=_0x197a2f);}else{for(_0x197a2f in _0x123b9f)_0x123b9f[_0x197a2f]&&(_0x4129cb&&(_0x4129cb+='\x20'),_0x4129cb+=_0x197a2f);}}}return _0x4129cb;}function fo(){for(var _0x28b474,_0xbfd2dd,_0x52813b=0x0,_0x20283a='',_0x55ab7d=arguments['length'];_0x52813b<_0x55ab7d;_0x52813b++)(_0x28b474=arguments[_0x52813b])&&(_0xbfd2dd=Ks(_0x28b474))&&(_0x20283a&&(_0x20283a+='\x20'),_0x20283a+=_0xbfd2dd);return _0x20283a;}const mo=_0x4cb5f3(0x22f),go=_0x4cb5f3(0x40a),So=_0x4cb5f3(0x319),po=_0x4cb5f3(0x168),vo=_0x4cb5f3(0x1a8),Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x5493da){const _0x433a15=_0x4cb5f3;switch(_0x5493da){case P[_0x433a15(0x275)]:return _0x433a15(0x3bc);case P[_0x433a15(0x3ef)]:return'collabStatus.conflict';case P[_0x433a15(0x1c4)]:return _0x433a15(0x447);case P[_0x433a15(0x4b8)]:return'collabStatus.notCollab';case P['PENDING']:case P['AWAITING']:case P[_0x433a15(0x46b)]:return _0x433a15(0x2a5);case P[_0x433a15(0x363)]:return'collabStatus.synced';}}function Eo(_0x1e8ca2){const _0x567bc3=_0x4cb5f3,{status$:_0x41af05}=_0x1e8ca2,_0x2457da=_0x10d725(_0x41af05,P[_0x567bc3(0x4b8)]),_0x5a1b12=_0x4acdb2(_0x48132e),_0x16f31b=_0x4acdb2(he),_0x17ec06=_0x2457da!==P[_0x567bc3(0x275)],_0x290b4a=_0x5a1b12['t'](Io(_0x2457da)),_0x4a3897=fo(Pe['onlineStatus'],{[Pe[_0x567bc3(0x243)]]:_0x17ec06,[Pe[_0x567bc3(0x19e)]]:!_0x17ec06}),_0x367df6=_0x17ec06?_0x50c735[_0x567bc3(0x326)](Ys,null):_0x50c735[_0x567bc3(0x326)](Gs,null),_0x219468=_0x31cd3d(()=>{const _0x59a6b5=_0x567bc3;_0x17ec06||_0x16f31b[_0x59a6b5(0x400)]();},[_0x17ec06,_0x16f31b]);function _0x4f1518(){const _0x1777ff=_0x567bc3;return _0x50c735[_0x1777ff(0x326)](_0x1777ff(0x23f),{'className':_0x4a3897,'onClick':_0x219468},_0x50c735[_0x1777ff(0x326)](_0x1777ff(0x23f),{'className':Pe['onlineStatusIcon']},_0x367df6),_0x50c735[_0x1777ff(0x326)](_0x1777ff(0x23f),{'className':Pe['onlineStatusTitle']},_0x290b4a));}return _0x17ec06?_0x4f1518():_0x50c735[_0x567bc3(0x326)](_0x9fa936,{'title':_0x5a1b12['t'](_0x567bc3(0x28f))},_0x4f1518());}var Co=Object[_0x4cb5f3(0x1cd)],bo=Object[_0x4cb5f3(0x3cf)],To=(_0x464732,_0x11fed9,_0x347d5e,_0x553bb7)=>{const _0xd5b30f=_0x4cb5f3;for(var _0x5f483e=_0x553bb7>0x1?void 0x0:_0x553bb7?bo(_0x11fed9,_0x347d5e):_0x11fed9,_0x47a1b8=_0x464732[_0xd5b30f(0x1ca)]-0x1,_0x40dac2;_0x47a1b8>=0x0;_0x47a1b8--)(_0x40dac2=_0x464732[_0x47a1b8])&&(_0x5f483e=(_0x553bb7?_0x40dac2(_0x11fed9,_0x347d5e,_0x5f483e):_0x40dac2(_0x5f483e))||_0x5f483e);return _0x553bb7&&_0x5f483e&&Co(_0x11fed9,_0x347d5e,_0x5f483e),_0x5f483e;},Be=(_0x35d26c,_0x5f3940)=>(_0x50ed25,_0x111e7b)=>_0x5f3940(_0x50ed25,_0x111e7b,_0x35d26c);let Me=class extends _0x16e969{constructor(_0x38be7b,_0x5d6061,_0x5a36c1,_0x3072c){const _0x2c6afb=_0x4cb5f3;super(),l(this,_0x2c6afb(0x28d),new _0x61bb4(P[_0x2c6afb(0x4b8)])),(this[_0x2c6afb(0x342)]=_0x38be7b,this[_0x2c6afb(0x39b)]=_0x5d6061,this[_0x2c6afb(0x150)]=_0x5a36c1,this[_0x2c6afb(0x308)]=_0x3072c,this[_0x2c6afb(0x3fb)](),this[_0x2c6afb(0x246)]());}[_0x4cb5f3(0x246)](){const _0x127e7e=_0x4cb5f3;this[_0x127e7e(0x357)](this[_0x127e7e(0x342)][_0x127e7e(0x30d)][_0x127e7e(0x426)](_0x17986a(()=>{const _0x29ef1d=_0x127e7e,_0x8f4da2=this[_0x29ef1d(0x342)][_0x29ef1d(0x361)]();return _0x8f4da2?this[_0x29ef1d(0x308)]['getCollabEntity$'](_0x8f4da2[_0x29ef1d(0x310)]()):_0x5569e1(null);}),_0x17986a(_0x32045f=>_0x32045f?_0x32045f[_0x127e7e(0x2c1)]:_0x5569e1(P[_0x127e7e(0x4b8)])))[_0x127e7e(0x2c5)](_0x332754=>{const _0x467767=_0x127e7e;this[_0x467767(0x28d)]['next'](_0x332754);}));}['_initStatusComponent'](){const _0x96a077=_0x4cb5f3;this[_0x96a077(0x357)](this[_0x96a077(0x39b)][_0x96a077(0x1df)](_0xd9ec47[_0x96a077(0x333)],()=>_0x24b3e2(Ro({'status$':this[_0x96a077(0x28d)][_0x96a077(0x414)]()}),this[_0x96a077(0x150)])));}};Me=To([Be(0x0,_0x350446),Be(0x1,_0xffb4e1),Be(0x2,_0x4b74b3(_0xd20bac)),Be(0x3,_0x4b74b3(Le))],Me);function Ro(_0x5a638f){const {status$:_0x188cd3}=_0x5a638f;return function(){const _0x3a432a=_0x2da6;return _0x50c735[_0x3a432a(0x326)](Eo,{'status$':_0x188cd3});};}const Xs=_0x2ac538(_0x4cb5f3(0x441));var Oo=Object[_0x4cb5f3(0x1cd)],Do=Object['getOwnPropertyDescriptor'],wo=(_0x5e7630,_0x354977,_0x12d608,_0x5d1f8d)=>{const _0x40579e=_0x4cb5f3;for(var _0x171794=_0x5d1f8d>0x1?void 0x0:_0x5d1f8d?Do(_0x354977,_0x12d608):_0x354977,_0x369bfa=_0x5e7630[_0x40579e(0x1ca)]-0x1,_0x59a263;_0x369bfa>=0x0;_0x369bfa--)(_0x59a263=_0x5e7630[_0x369bfa])&&(_0x171794=(_0x5d1f8d?_0x59a263(_0x354977,_0x12d608,_0x171794):_0x59a263(_0x171794))||_0x171794);return _0x5d1f8d&&_0x171794&&Oo(_0x354977,_0x12d608,_0x171794),_0x171794;},ge=(_0x186c4d,_0x23a48e)=>(_0x4b5c12,_0x54d34a)=>_0x23a48e(_0x4b5c12,_0x54d34a,_0x186c4d);let Je=class extends _0x1384c9{constructor(_0x472ecb,_0x54b2cc,_0x1e5535,_0x57b02c,_0x483cbd,_0x3b9def){const _0xeb2cf6=_0x4cb5f3;super(),this['_urlService']=_0x472ecb,this['_logService']=_0x54b2cc,this[_0xeb2cf6(0x172)]=_0x1e5535,this[_0xeb2cf6(0x471)]=_0x57b02c,this['_snapshotService']=_0x483cbd,_0x3b9def?_0x3b9def==null||_0x3b9def[_0xeb2cf6(0x196)]()[_0xeb2cf6(0x1bb)](()=>this[_0xeb2cf6(0x364)]()):(this['_logService'][_0xeb2cf6(0x1de)](_0xeb2cf6(0x317),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xeb2cf6(0x364)]());}async[_0x4cb5f3(0x364)](){const _0x3584f6=_0x4cb5f3,_0x508de9=this[_0x3584f6(0x18f)][_0x3584f6(0x395)](_0x3584f6(0x237)),_0xe674a1=this[_0x3584f6(0x18f)]['getParam'](_0x3584f6(0x2c4));if(!_0x508de9||!_0xe674a1){this[_0x3584f6(0x2ba)][_0x3584f6(0x1de)](_0x3584f6(0x317),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0xe674a1)){case k[_0x3584f6(0x181)]:{const _0x30aefa=await this['_loadSheet'](_0x508de9);this[_0x3584f6(0x3d6)](_0x30aefa);break;}case k[_0x3584f6(0x148)]:{await this[_0x3584f6(0x349)](_0x508de9);break;}default:{this['_logService'][_0x3584f6(0x43b)](_0x3584f6(0x317),_0x3584f6(0x49f));break;}}}async[_0x4cb5f3(0x3d6)](_0xa6a56){const _0x5cc692=_0x4cb5f3;await this[_0x5cc692(0x1b2)](_0xa6a56),_0xa6a56[_0x5cc692(0x3f9)][_0x5cc692(0x426)](_0xa11cc5(this[_0x5cc692(0x2fd)]))[_0x5cc692(0x2c5)](_0x22cb0f=>{const _0x41947d=_0x5cc692;_0x22cb0f&&this[_0x41947d(0x21f)](_0x22cb0f);}),this[_0x5cc692(0x18f)][_0x5cc692(0x2d7)][_0x5cc692(0x426)](_0xa11cc5(this['dispose$']))[_0x5cc692(0x2c5)](()=>this['_updateSubUnitFromURLParams'](_0xa6a56));}[_0x4cb5f3(0x21f)](_0x25e586,_0x318f54=!0x1){const _0x29a4bc=_0x4cb5f3,_0x33198e=this['_urlService'][_0x29a4bc(0x395)](_0x29a4bc(0x19d));_0x25e586[_0x29a4bc(0x419)]()!==_0x33198e&&this[_0x29a4bc(0x18f)][_0x29a4bc(0x33a)]('subunit',_0x25e586[_0x29a4bc(0x419)](),_0x318f54);}async[_0x4cb5f3(0x1b2)](_0x90ab22){const _0x28371a=_0x4cb5f3;var _0x2a2be3;const _0x8e8a03=this['_urlService'][_0x28371a(0x395)]('subunit');if(!_0x8e8a03||!_0x90ab22['getSheetBySheetId'](_0x8e8a03)){const _0x7c3c1f=_0x90ab22[_0x28371a(0x191)]()[0x0],_0x5de0b6=_0x90ab22['getSheetBySheetId'](_0x7c3c1f);if(!_0x5de0b6)return;this['_updateURLWithCurrentState'](_0x5de0b6,!0x0),await this[_0x28371a(0x172)][_0x28371a(0x39e)](_0xe8a7a2['id'],{'unitId':_0x90ab22['getUnitId'](),'subUnitId':_0x7c3c1f});return;}((_0x2a2be3=_0x90ab22['getActiveSheet']())==null?void 0x0:_0x2a2be3[_0x28371a(0x419)]())!==_0x8e8a03&&await this[_0x28371a(0x172)][_0x28371a(0x39e)](_0xe8a7a2['id'],{'unitId':_0x90ab22[_0x28371a(0x310)](),'subUnitId':_0x8e8a03});}async[_0x4cb5f3(0x4a6)](_0x14ff4e){const _0x1067f0=_0x4cb5f3;let _0x19e875=0x0;const _0x1c21ef=await this[_0x1067f0(0x471)]['loadOfflineData'](_0x14ff4e);return _0x1c21ef&&(_0x1c21ef[_0x1067f0(0x3e1)]||_0x1c21ef['mutations'][_0x1067f0(0x1ca)]!==0x0)&&(_0x19e875=_0x1c21ef[_0x1067f0(0x3d1)]),_0x19e875===0x0&&this[_0x1067f0(0x2ba)]['debug'](_0x1067f0(0x317),_0x1067f0(0x2e5)),this[_0x1067f0(0x22e)][_0x1067f0(0x1ab)](_0x14ff4e,_0x19e875);}async['_loadDoc'](_0x59bcff){const _0x5d5141=_0x4cb5f3;let _0x58f925=0x0;const _0x46ae8f=await this[_0x5d5141(0x471)][_0x5d5141(0x33f)](_0x59bcff);return _0x46ae8f&&(_0x46ae8f['awaitingChangeset']||_0x46ae8f[_0x5d5141(0x2b0)][_0x5d5141(0x1ca)]!==0x0)&&(_0x58f925=_0x46ae8f['rev']),_0x58f925===0x0&&this[_0x5d5141(0x2ba)][_0x5d5141(0x1de)](_0x5d5141(0x317),_0x5d5141(0x2e5)),this[_0x5d5141(0x22e)][_0x5d5141(0x1a3)](_0x59bcff,_0x58f925);}};Je=wo([ge(0x0,Xs),ge(0x1,_0x155804),ge(0x2,_0x155531),ge(0x3,_0x4b74b3(w)),ge(0x4,_0x4b74b3(_0x19fbef)),ge(0x5,_0x1765c1(_0x33d6ac))],Je);var Po=Object['defineProperty'],yo=Object[_0x4cb5f3(0x3cf)],Uo=(_0x4842a3,_0x44c60d,_0x3011bf,_0x509496)=>{const _0xf6bca0=_0x4cb5f3;for(var _0xdc95e7=_0x509496>0x1?void 0x0:_0x509496?yo(_0x44c60d,_0x3011bf):_0x44c60d,_0x3526ec=_0x4842a3[_0xf6bca0(0x1ca)]-0x1,_0x474942;_0x3526ec>=0x0;_0x3526ec--)(_0x474942=_0x4842a3[_0x3526ec])&&(_0xdc95e7=(_0x509496?_0x474942(_0x44c60d,_0x3011bf,_0xdc95e7):_0x474942(_0xdc95e7))||_0xdc95e7);return _0x509496&&_0xdc95e7&&Po(_0x44c60d,_0x3011bf,_0xdc95e7),_0xdc95e7;},Ss=(_0x5358d5,_0x24815f)=>(_0xca1271,_0x1857ec)=>_0x24815f(_0xca1271,_0x1857ec,_0x5358d5);const No=_0x4cb5f3(0x204),Mo=_0x4cb5f3(0x3af);let ze=class extends _0x16e969{constructor(_0x970e02,_0x312cdb){const _0xc245bf=_0x4cb5f3;super(),this[_0xc245bf(0x342)]=_0x970e02,this[_0xc245bf(0x23d)]=_0x312cdb,this[_0xc245bf(0x364)]();}[_0x4cb5f3(0x364)](){const _0x25d417=_0x4cb5f3;this['disposeWithMe'](this[_0x25d417(0x342)][_0x25d417(0x30d)][_0x25d417(0x2c5)](()=>{const _0x29fb40=_0x25d417;var _0x3d933f;const _0x59fdd3=this['_univerInstanceService'][_0x29fb40(0x361)]();let _0x505902=(_0x3d933f=this[_0x29fb40(0x23d)]['getConfig'](No))!=null?_0x3d933f:Mo;_0x59fdd3 instanceof _0x233af7&&(_0x505902=_0x59fdd3[_0x29fb40(0x206)]),document[_0x29fb40(0x2e3)]=_0x505902;}));}};ze=Uo([Ss(0x0,_0x350446),Ss(0x1,_0x5b8ed6)],ze);var Ao=Object[_0x4cb5f3(0x1cd)],Lo=Object[_0x4cb5f3(0x3cf)],$o=(_0x40d8da,_0x41601b,_0x1016ff,_0x3f4393)=>{const _0x483c95=_0x4cb5f3;for(var _0x15434f=_0x3f4393>0x1?void 0x0:_0x3f4393?Lo(_0x41601b,_0x1016ff):_0x41601b,_0x41fc8d=_0x40d8da[_0x483c95(0x1ca)]-0x1,_0x2e6d73;_0x41fc8d>=0x0;_0x41fc8d--)(_0x2e6d73=_0x40d8da[_0x41fc8d])&&(_0x15434f=(_0x3f4393?_0x2e6d73(_0x41601b,_0x1016ff,_0x15434f):_0x2e6d73(_0x15434f))||_0x15434f);return _0x3f4393&&_0x15434f&&Ao(_0x41601b,_0x1016ff,_0x15434f),_0x15434f;},St=(_0x5b0f07,_0x43f77d)=>(_0x4ffd6d,_0x184fd9)=>_0x43f77d(_0x4ffd6d,_0x184fd9,_0x5b0f07);let Ze=class{constructor(_0x5b6f22,_0x4274e5,_0x17a9ba){const _0x3d3a31=_0x4cb5f3;this[_0x3d3a31(0x23d)]=_0x5b6f22,this[_0x3d3a31(0x3f5)]=_0x4274e5,this[_0x3d3a31(0x452)]=_0x17a9ba,this['init']();}[_0x4cb5f3(0x214)](){const _0x58a749=_0x4cb5f3;this[_0x58a749(0x3f5)][_0x58a749(0x45a)]({'priority':0x1,'interceptor':(_0xb6afe3,_0x36f7eb)=>_0x36f7eb(_0xb6afe3)[_0x58a749(0x426)](_0x5c32fc(async _0x4dad94=>{const _0x3daaf3=_0x58a749,_0x1e1f6d=_0x4dad94;if(_0x1e1f6d[_0x3daaf3(0x2ed)]===0x191&&window['confirm'](this[_0x3daaf3(0x452)]['t'](_0x3daaf3(0x393)))){const _0x237d92=window[_0x3daaf3(0x3c0)](window[_0x3daaf3(0x403)][_0x3daaf3(0x35c)]);window['location'][_0x3daaf3(0x35c)]=this[_0x3daaf3(0x189)]()+_0x3daaf3(0x182)+_0x237d92;}return _0x1e1f6d;}))});}[_0x4cb5f3(0x189)](){const _0x56f941=_0x4cb5f3;var _0x40c92e,_0x1433c1;const _0x2a3d1d=this[_0x56f941(0x23d)]['getConfig'](Nn),_0x356072=this[_0x56f941(0x23d)][_0x56f941(0x30c)]($);return(_0x1433c1=(_0x40c92e=_0x356072==null?void 0x0:_0x356072[_0x56f941(0x174)])!=null?_0x40c92e:_0x2a3d1d)!=null?_0x1433c1:Mn;}};Ze=$o([St(0x0,_0x5b8ed6),St(0x1,_0x4b74b3(_0x4c760e)),St(0x2,_0x4b74b3(_0x48132e))],Ze);var jo=Object[_0x4cb5f3(0x1cd)],xo=Object[_0x4cb5f3(0x3cf)],Ho=(_0x35fd98,_0x1a7fe2,_0xa90e8f,_0x5c07fa)=>{const _0x3d9cab=_0x4cb5f3;for(var _0x1fd82a=_0x5c07fa>0x1?void 0x0:_0x5c07fa?xo(_0x1a7fe2,_0xa90e8f):_0x1a7fe2,_0x11f93a=_0x35fd98[_0x3d9cab(0x1ca)]-0x1,_0x353d5f;_0x11f93a>=0x0;_0x11f93a--)(_0x353d5f=_0x35fd98[_0x11f93a])&&(_0x1fd82a=(_0x5c07fa?_0x353d5f(_0x1a7fe2,_0xa90e8f,_0x1fd82a):_0x353d5f(_0x1fd82a))||_0x1fd82a);return _0x5c07fa&&_0x1fd82a&&jo(_0x1a7fe2,_0xa90e8f,_0x1fd82a),_0x1fd82a;},ps=(_0x5885a9,_0x4607bc)=>(_0x598eba,_0x1e34b8)=>_0x4607bc(_0x598eba,_0x1e34b8,_0x5885a9);const ko=_0x4cb5f3(0x1a9),Bo=_0x4cb5f3(0x4ba);let yt=class extends _0x16e969{constructor(_0x58a94c,_0x42aed0){const _0x2a4713=_0x4cb5f3;super(),this['_HTTPService']=_0x58a94c,this[_0x2a4713(0x23d)]=_0x42aed0,this[_0x2a4713(0x173)]();}[_0x4cb5f3(0x173)](){const _0x477700=_0x4cb5f3,_0x2c5b4b=this;this['disposeWithMe'](this[_0x477700(0x381)][_0x477700(0x45a)]({'priority':0x3e7,'interceptor':_0x54f40d({'isMatch'(_0x5a1934){const _0x2757af=_0x477700;var _0x1f98b6;if(_0x5a1934[_0x2757af(0x264)]===_0x2757af(0x1ac)&&((_0x1f98b6=_0x5a1934['requestParams'])!=null&&_0x1f98b6['body'])){const {objectID:_0x5d0eab,objectType:_0xafb515}=_0x5a1934[_0x2757af(0x19a)][_0x2757af(0x2a6)]||{};if(!_0x5d0eab||_0xafb515===void 0x0)return!0x1;const _0x43465e=_0x2c5b4b[_0x2757af(0x2bd)]()+'/'+_0xafb515+_0x2757af(0x415)+_0x5d0eab+_0x2757af(0x4b4);if(_0x5a1934[_0x2757af(0x2a3)]===_0x43465e)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x575277){const _0x441ec1=_0x477700;var _0x9685d1;return(_0x9685d1=_0x575277['requestParams'])==null?void 0x0:_0x9685d1[_0x441ec1(0x2a6)];},'mergeParamsToRequest'(_0x4563a2,_0x4ca7c3){const _0x1a5d7f=_0x477700,_0x52e287=_0x2c5b4b[_0x1a5d7f(0x2bd)]()+_0x1a5d7f(0x48c),_0x2a2a1c=_0x4563a2[_0x1a5d7f(0x468)]((_0x5a3be1,_0x8f5d06)=>{const _0x280cb7=_0x1a5d7f,{unitID:_0x34c2c9,objectID:_0x1cfa6e,objectType:_0x44e5cf,actions:_0x3a0950}=_0x8f5d06;return _0x5a3be1[_0x34c2c9]||(_0x5a3be1[_0x34c2c9]={}),_0x5a3be1[_0x34c2c9][_0x1cfa6e]||(_0x5a3be1[_0x34c2c9][_0x1cfa6e]={'objectID':_0x1cfa6e,'objectType':_0x44e5cf,'actions':[]}),_0x5a3be1[_0x34c2c9][_0x1cfa6e][_0x280cb7(0x362)][_0x280cb7(0x404)](..._0x3a0950),_0x5a3be1;},{}),_0x488265=[];for(const _0x88212 in _0x2a2a1c)for(const _0x2dc90d in _0x2a2a1c[_0x88212]){const {actions:_0x34da10,objectType:_0x8bfb5e}=_0x2a2a1c[_0x88212][_0x2dc90d],_0x279ca4=[...new Set(_0x34da10)];_0x488265['push']({'unitID':_0x88212,'objectID':_0x2dc90d,'objectType':_0x8bfb5e,'actions':_0x279ca4});}return new _0x42803a(_0x1a5d7f(0x1ac),_0x52e287,{'headers':_0x4ca7c3[_0x1a5d7f(0x165)],'withCredentials':_0x4ca7c3[_0x1a5d7f(0x212)],'responseType':_0x4ca7c3[_0x1a5d7f(0x480)],'body':{'requests':_0x488265}});}},{'distributeResult'(_0x4c1af8,_0x28d07a){const {objectActions:_0x42469a}=_0x4c1af8;return _0x28d07a['map'](_0x766a58=>{const _0x3ff0f8=_0x2da6,{unitID:_0x11fd51,objectID:_0x12f7e6,actions:_0x51393e}=_0x766a58,_0x3864ef=_0x42469a['find'](_0x171d09=>_0x171d09['unitID']===_0x11fd51&&_0x171d09[_0x3ff0f8(0x155)]===_0x12f7e6),_0x2a3bc8=_0x51393e[_0x3ff0f8(0x199)](_0x2be4f1=>_0x3864ef==null?void 0x0:_0x3864ef[_0x3ff0f8(0x362)]['find'](_0x4970e5=>_0x4970e5[_0x3ff0f8(0x31b)]===_0x2be4f1))[_0x3ff0f8(0x1e5)](_0x53a03a=>!!_0x53a03a);return{'config':_0x766a58,'result':{'actions':_0x2a3bc8,'error':_0x4c1af8[_0x3ff0f8(0x43b)]}};});}})}));}[_0x4cb5f3(0x2bd)](){const _0x2be6c2=_0x4cb5f3;var _0x4231f0,_0x41eed2;const _0x5c6fb9=this[_0x2be6c2(0x23d)][_0x2be6c2(0x30c)](ko),_0x3dd42d=this[_0x2be6c2(0x23d)][_0x2be6c2(0x30c)]($);return(_0x41eed2=(_0x4231f0=_0x3dd42d==null?void 0x0:_0x3dd42d[_0x2be6c2(0x180)])!=null?_0x4231f0:_0x5c6fb9)!=null?_0x41eed2:Bo;}async[_0x4cb5f3(0x42e)](_0x29f5fb){const _0x15812b=_0x4cb5f3,_0x2b49be=this['_getAPIPrefixPath']()+'/'+_0x29f5fb['objectType']+'/object';return(await this[_0x15812b(0x381)]['post'](_0x2b49be,{'body':_0x29f5fb}))['body'][_0x15812b(0x155)]||'';}async['list'](_0x25df63){const _0x213437=_0x4cb5f3,_0xe27a5c=this[_0x213437(0x2bd)]()+_0x213437(0x43f);return(await this[_0x213437(0x381)]['post'](_0xe27a5c,{'body':_0x25df63}))[_0x213437(0x2a6)][_0x213437(0x1d7)];}async[_0x4cb5f3(0x259)](_0x305d70){const _0x4e437f=_0x4cb5f3,_0x8304ed=this['_getAPIPrefixPath']()+'/'+_0x305d70['objectType']+_0x4e437f(0x415)+_0x305d70[_0x4e437f(0x155)];await this['_HTTPService'][_0x4e437f(0x179)](_0x8304ed,{'body':_0x305d70});}async['allowed'](_0x2c0445){const _0xef6b3d=_0x4cb5f3,_0x4fd781=this[_0xef6b3d(0x2bd)]()+'/'+_0x2c0445['objectType']+'/object/'+_0x2c0445[_0xef6b3d(0x155)]+_0xef6b3d(0x4b4);return(await this[_0xef6b3d(0x381)][_0xef6b3d(0x401)](_0x4fd781,{'body':_0x2c0445}))[_0xef6b3d(0x2a6)][_0xef6b3d(0x362)];}async['batchAllowed'](_0x4a30b4){const _0x5abd42=_0x4cb5f3,_0x1a6e5f=this['_getAPIPrefixPath']()+_0x5abd42(0x48c);return(await this[_0x5abd42(0x381)][_0x5abd42(0x401)](_0x1a6e5f,{'body':{'requests':_0x4a30b4}}))['body'][_0x5abd42(0x1c0)];}async['listRoles'](_0x3ec074){const _0x23b891=_0x4cb5f3,_0x3e2556=this['_getAPIPrefixPath']()+'/'+_0x3ec074[_0x23b891(0x485)]+'/role',_0x3778f8=await this[_0x23b891(0x381)][_0x23b891(0x401)](_0x3e2556,{'body':_0x3ec074});return{'roles':_0x3778f8['body']['roles'],'actions':_0x3778f8[_0x23b891(0x2a6)]['actions']};}async[_0x4cb5f3(0x374)](_0x5764cf){const _0x283502=_0x4cb5f3,_0x16565b=this[_0x283502(0x2bd)]()+_0x283502(0x293);await this[_0x283502(0x381)][_0x283502(0x40d)](_0x16565b,{'params':{'collaboratorID':_0x5764cf[_0x283502(0x2f1)],'objectID':_0x5764cf['objectID'],'unitID':_0x5764cf[_0x283502(0x479)]}});}async[_0x4cb5f3(0x175)](_0x1070b8){const _0x48ec74=_0x4cb5f3,_0x3d3cf5=this[_0x48ec74(0x2bd)]()+_0x48ec74(0x293);await this['_HTTPService'][_0x48ec74(0x481)](_0x3d3cf5,{'body':_0x1070b8});}async[_0x4cb5f3(0x43a)](_0x4487d7){const _0x4dd0a5=_0x4cb5f3,_0xba5cd4=this[_0x4dd0a5(0x2bd)]()+_0x4dd0a5(0x293);await this[_0x4dd0a5(0x381)]['post'](_0xba5cd4,{'body':_0x4487d7});}async[_0x4cb5f3(0x21a)](_0x20fe92){const _0x2f2e9a=_0x4cb5f3,_0x4d0826=this[_0x2f2e9a(0x2bd)]()+'/collaborator';return(await this[_0x2f2e9a(0x381)][_0x2f2e9a(0x157)](_0x4d0826,{'params':{'objectID':_0x20fe92[_0x2f2e9a(0x155)],'unitID':_0x20fe92[_0x2f2e9a(0x479)]}}))['body'][_0x2f2e9a(0x3b1)];}async[_0x4cb5f3(0x194)](_0x1d22c7){const _0x9c96ed=_0x4cb5f3,_0x5bcc4c=this[_0x9c96ed(0x2bd)]()+_0x9c96ed(0x293);await this[_0x9c96ed(0x381)][_0x9c96ed(0x179)](_0x5bcc4c,{'body':_0x1d22c7});}};yt=Ho([ps(0x0,_0x4b74b3(_0x4c760e)),ps(0x1,_0x4b74b3(_0x5b8ed6))],yt);var Vo=Object[_0x4cb5f3(0x1cd)],Fo=Object['getOwnPropertyDescriptor'],Wo=(_0xd09065,_0x1ee6d,_0x3a6a06,_0xa7a91f)=>{const _0x699e80=_0x4cb5f3;for(var _0x249492=_0xa7a91f>0x1?void 0x0:_0xa7a91f?Fo(_0x1ee6d,_0x3a6a06):_0x1ee6d,_0x140687=_0xd09065[_0x699e80(0x1ca)]-0x1,_0x4728cd;_0x140687>=0x0;_0x140687--)(_0x4728cd=_0xd09065[_0x140687])&&(_0x249492=(_0xa7a91f?_0x4728cd(_0x1ee6d,_0x3a6a06,_0x249492):_0x4728cd(_0x249492))||_0x249492);return _0xa7a91f&&_0x249492&&Vo(_0x1ee6d,_0x3a6a06,_0x249492),_0x249492;},Go=(_0x4baa4b,_0x784d35)=>(_0x18b618,_0x3b0c53)=>_0x784d35(_0x18b618,_0x3b0c53,_0x4baa4b);let Qe=class{constructor(_0x59fe31){const _0x1e8ce8=_0x4cb5f3;this[_0x1e8ce8(0x3f5)]=_0x59fe31,this[_0x1e8ce8(0x19b)]();}[_0x4cb5f3(0x19b)](){const _0x2a2723=_0x4cb5f3;this[_0x2a2723(0x3f5)]['registerHTTPInterceptor']({'interceptor':(_0x36c872,_0xfff01d)=>{const _0x5d039b=_0x2a2723,_0x1660a1=_0x36c872[_0x5d039b(0x165)],_0xda28cc=_0x3ef04d();return _0xda28cc&&_0x1660a1[_0x5d039b(0x24d)](_0x5d039b(0x28a),_0xda28cc),_0xfff01d(_0x36c872);}});}};Qe=Wo([Go(0x0,_0x4b74b3(_0x4c760e))],Qe);var Yo=Object[_0x4cb5f3(0x1cd)],Ko=Object[_0x4cb5f3(0x3cf)],Xo=(_0x1c1295,_0x40f169,_0x32f8b2,_0x311104)=>{for(var _0x56ebd6=_0x311104>0x1?void 0x0:_0x311104?Ko(_0x40f169,_0x32f8b2):_0x40f169,_0x7e2a7a=_0x1c1295['length']-0x1,_0x4e5a5;_0x7e2a7a>=0x0;_0x7e2a7a--)(_0x4e5a5=_0x1c1295[_0x7e2a7a])&&(_0x56ebd6=(_0x311104?_0x4e5a5(_0x40f169,_0x32f8b2,_0x56ebd6):_0x4e5a5(_0x56ebd6))||_0x56ebd6);return _0x311104&&_0x56ebd6&&Yo(_0x40f169,_0x32f8b2,_0x56ebd6),_0x56ebd6;},pt=(_0x1115a4,_0x33bc8c)=>(_0x5231a9,_0x3ab360)=>_0x33bc8c(_0x5231a9,_0x3ab360,_0x1115a4);const qo=['image/png',_0x4cb5f3(0x17f),_0x4cb5f3(0x42c),_0x4cb5f3(0x283),'image/bmp'],Jo=0x5*0x400*0x400,zo=_0x4cb5f3(0x373),Zo='/universer-api/stream/file/upload',Qo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',ea=_0x4cb5f3(0x389);let Ut=class{constructor(_0x594e3c,_0x4b202b,_0x75d00e){const _0x42b77c=_0x4cb5f3;l(this,'_waitCount',0x0),l(this,_0x42b77c(0x215),new _0x199c18()),l(this,_0x42b77c(0x3bf),this[_0x42b77c(0x215)]),l(this,_0x42b77c(0x459),new Map()),(this[_0x42b77c(0x3f5)]=_0x594e3c,this[_0x42b77c(0x23d)]=_0x4b202b,this[_0x42b77c(0x342)]=_0x75d00e);}['setWaitCount'](_0x847e2c){const _0xf29a3d=_0x4cb5f3;this[_0xf29a3d(0x2ad)]=_0x847e2c,this[_0xf29a3d(0x215)][_0xf29a3d(0x201)](_0x847e2c);}[_0x4cb5f3(0x29a)](_0x51ceb8,_0x1d4e72){const _0x326768=_0x4cb5f3;if(_0x1d4e72===_0x50d608[_0x326768(0x281)]){const _0x2f4c5f=new Image();return _0x2f4c5f[_0x326768(0x355)]=_0x51ceb8,_0x2f4c5f;}return this[_0x326768(0x459)]['get'](_0x51ceb8);}[_0x4cb5f3(0x17d)](_0x3b7509,_0x5432e1,_0x16aacc){const _0x4004d6=_0x4cb5f3;_0x5432e1===_0x50d608[_0x4004d6(0x281)]||_0x16aacc==null||this[_0x4004d6(0x459)][_0x4004d6(0x24d)](_0x3b7509,_0x16aacc);}async[_0x4cb5f3(0x2fc)](_0x1a66d8){const _0x5a26ed=_0x4cb5f3;try{const _0x3ccdb3=this[_0x5a26ed(0x1e7)](this[_0x5a26ed(0x226)](),''+_0x1a66d8),_0x2b1bac=(await this[_0x5a26ed(0x3f5)][_0x5a26ed(0x157)](_0x3ccdb3))['body'];if(_0x2b1bac[_0x5a26ed(0x43b)]&&_0x2b1bac[_0x5a26ed(0x43b)][_0x5a26ed(0x4b3)]===js['OK']){const _0x4a42a9=new URL(_0x2b1bac[_0x5a26ed(0x2a3)],this[_0x5a26ed(0x2b3)]())['toString']();return Promise['resolve'](_0x4a42a9);}return Promise[_0x5a26ed(0x297)](_0x2b1bac[_0x5a26ed(0x43b)]);}catch(_0x3f4914){return Promise[_0x5a26ed(0x297)](_0x3f4914);}}async['saveImage'](_0x128c24){const _0x50758d=_0x4cb5f3;let _0x5bef6e='';if(!qo['includes'](_0x128c24[_0x50758d(0x2c4)]))return this[_0x50758d(0x41f)](),Promise[_0x50758d(0x297)](new Error(_0x1156ce[_0x50758d(0x383)]));if(_0x128c24[_0x50758d(0x18b)]>Jo)return this[_0x50758d(0x41f)](),Promise[_0x50758d(0x297)](new Error(_0x1156ce[_0x50758d(0x27c)]));try{const _0x5a3e37=new FormData();_0x5a3e37[_0x50758d(0x392)](_0x50758d(0x268),_0x128c24);const _0x2d263f=this['_univerInstanceService']['getFocusedUnit'](),_0x487677=_0x2d263f==null?void 0x0:_0x2d263f[_0x50758d(0x310)]();if(!_0x487677)throw new Error(_0x50758d(0x245));const _0x5710ae=this[_0x50758d(0x158)]()+_0x50758d(0x31e)+_0x128c24[_0x50758d(0x18b)][_0x50758d(0x3fd)]()+'&source='+xs[_0x50758d(0x3f7)]+'&assign='+encodeURIComponent(_0x487677),_0xc81262=await(await fetch(_0x5710ae,{'method':'POST','body':_0x5a3e37}))[_0x50758d(0x33c)]();if(typeof _0xc81262['FileId']!=_0x50758d(0x2ee))return this[_0x50758d(0x41f)](),Promise[_0x50758d(0x297)](new Error(_0x1156ce[_0x50758d(0x292)]));_0x5bef6e=_0xc81262[_0x50758d(0x279)];}catch{return this['_decreaseWaiting'](),Promise[_0x50758d(0x297)](new Error(_0x1156ce[_0x50758d(0x292)]));}return new Promise((_0x3c2d31,_0x39a4a6)=>{const _0x2d6728=_0x50758d,_0x3d3973=new FileReader();_0x3d3973[_0x2d6728(0x495)](_0x128c24),_0x3d3973[_0x2d6728(0x444)]=_0x34ae94=>{const _0x36e634=_0x2d6728;var _0x1a3c4b;const _0xd47718=(_0x1a3c4b=_0x34ae94[_0x36e634(0x461)])==null?void 0x0:_0x1a3c4b[_0x36e634(0x256)];if(_0xd47718==null){this['_decreaseWaiting'](),_0x39a4a6(new Error(_0x1156ce[_0x36e634(0x292)]));return;}const _0x48457c=_0x3f9d09[_0x36e634(0x238)](0x6);_0x3c2d31({'imageId':_0x48457c,'imageSourceType':_0x50d608[_0x36e634(0x2cf)],'source':_0x5bef6e,'base64Cache':_0xd47718,'status':_0x1156ce[_0x36e634(0x2b8)]}),this[_0x36e634(0x41f)]();};});}[_0x4cb5f3(0x158)](){const _0x145970=_0x4cb5f3;var _0x4cdb89,_0x5bcfef;const _0x4be252=this[_0x145970(0x23d)][_0x145970(0x30c)](zo),_0x384550=this[_0x145970(0x23d)]['getConfig']($);return(_0x5bcfef=(_0x4cdb89=_0x384550==null?void 0x0:_0x384550[_0x145970(0x431)])!=null?_0x4cdb89:_0x4be252)!=null?_0x5bcfef:Zo;}[_0x4cb5f3(0x226)](){const _0x21a27c=_0x4cb5f3;var _0x3e5d22,_0x2373f3;const _0x3f12b3=this[_0x21a27c(0x23d)][_0x21a27c(0x30c)](Qo),_0x31e0a8=this[_0x21a27c(0x23d)][_0x21a27c(0x30c)]($);return(_0x2373f3=(_0x3e5d22=_0x31e0a8==null?void 0x0:_0x31e0a8['signUrlServerUrl'])!=null?_0x3e5d22:_0x3f12b3)!=null?_0x2373f3:ea;}[_0x4cb5f3(0x2b3)](){const _0x26455f=_0x4cb5f3;var _0x509601;const _0x4e0732=this[_0x26455f(0x23d)][_0x26455f(0x30c)]($);return(_0x509601=_0x4e0732==null?void 0x0:_0x4e0732[_0x26455f(0x16e)])!=null?_0x509601:location[_0x26455f(0x339)];}['_replaceFileID'](_0x299b83,_0x2eb8db){const _0xb651b3=_0x4cb5f3;return _0x299b83['replace'](_0xb651b3(0x49a),_0x2eb8db);}[_0x4cb5f3(0x41f)](){const _0x177291=_0x4cb5f3;this['_waitCount']-=0x1,this['_change$'][_0x177291(0x201)](this['_waitCount']);}};Ut=Xo([pt(0x0,_0x4b74b3(_0x4c760e)),pt(0x1,_0x5b8ed6),pt(0x2,_0x4b74b3(_0x350446))],Ut);var ta=Object[_0x4cb5f3(0x1cd)],sa=Object[_0x4cb5f3(0x3cf)],ia=(_0x3e7867,_0x34e710,_0x10c5dd,_0x3553d5)=>{const _0x1806f1=_0x4cb5f3;for(var _0x8204e4=_0x3553d5>0x1?void 0x0:_0x3553d5?sa(_0x34e710,_0x10c5dd):_0x34e710,_0x3c4d27=_0x3e7867[_0x1806f1(0x1ca)]-0x1,_0x44db5e;_0x3c4d27>=0x0;_0x3c4d27--)(_0x44db5e=_0x3e7867[_0x3c4d27])&&(_0x8204e4=(_0x3553d5?_0x44db5e(_0x34e710,_0x10c5dd,_0x8204e4):_0x44db5e(_0x8204e4))||_0x8204e4);return _0x3553d5&&_0x8204e4&&ta(_0x34e710,_0x10c5dd,_0x8204e4),_0x8204e4;},ye=(_0x13b0d5,_0x20c0ae)=>(_0x531f16,_0x12ded2)=>_0x20c0ae(_0x531f16,_0x12ded2,_0x13b0d5);let et=class extends _0x1384c9{constructor(_0x148ebe,_0xdbd556,_0x20838c,_0x5679b1,_0x380c32){const _0x8e1357=_0x4cb5f3;super(),this[_0x8e1357(0x150)]=_0x148ebe,this[_0x8e1357(0x342)]=_0xdbd556,this[_0x8e1357(0x429)]=_0x20838c,this['_collaborationSessionService']=_0x5679b1,this[_0x8e1357(0x1b6)]=_0x380c32,this[_0x8e1357(0x36b)](),this[_0x8e1357(0x1be)]();}[_0x4cb5f3(0x1be)](){const _0x5c46c4=_0x4cb5f3,_0x453859=async _0x3c4dec=>{const _0x332fab=_0x2da6;(await this[_0x332fab(0x38b)]['requireSession'](_0x3c4dec))[_0x332fab(0x2ec)]['pipe'](_0x344b49(_0x17dd80=>_0x17dd80[_0x332fab(0x347)]===_0x53d369[_0x332fab(0x14e)]),_0xbbe6f4(this[_0x332fab(0x2fd)]))[_0x332fab(0x2c5)](_0x41780d=>{const _0x1ae388=_0x332fab,_0x4724ae=_0x41780d,{reason:_0x57ab57}=_0x4724ae[_0x1ae388(0x385)];this[_0x1ae388(0x150)]['get'](_0x2a280b)['show']({'type':_0x1497b6[_0x1ae388(0x1fd)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x57ab57+')'}),this[_0x1ae388(0x429)][_0x1ae388(0x47f)](new _0x5112fd(_0x3c4dec)['id'],!0x1),this[_0x1ae388(0x38b)][_0x1ae388(0x307)](_0x3c4dec);});};_0x42229f(this['_univerInstanceService'][_0x5c46c4(0x296)](_0x53ce88[_0x5c46c4(0x181)]),this['_univerInstanceService'][_0x5c46c4(0x296)](_0x53ce88[_0x5c46c4(0x148)]))['pipe'](_0x30fe4a(_0x24a9e6=>_0x24a9e6[_0x5c46c4(0x310)]()),_0x344b49(_0x1f2925=>!_0x52933b(_0x1f2925)),_0xbbe6f4(this[_0x5c46c4(0x2fd)]))[_0x5c46c4(0x2c5)](_0x361ca4=>{_0x453859(_0x361ca4);});}[_0x4cb5f3(0x36b)](){const _0x722b85=_0x4cb5f3,_0x43ad63=async _0x816aaa=>{const _0x49ed3d=_0x2da6;(await this[_0x49ed3d(0x38b)]['requireSession'](_0x816aaa))[_0x49ed3d(0x2ec)]['pipe'](_0x344b49(_0x10bb51=>_0x10bb51['eventID']===_0x53d369[_0x49ed3d(0x2f9)]),_0xbbe6f4(this['dispose$']))[_0x49ed3d(0x2c5)](_0x8f176d=>{const _0x121206=_0x49ed3d,_0x59c64c=_0x8f176d,{objectId:_0x2b74cc}=_0x59c64c[_0x121206(0x385)],_0x2e7dd3=this[_0x121206(0x150)][_0x121206(0x157)](_0x41b531);_0x2b74cc===_0x816aaa?_0x2e7dd3[_0x121206(0x372)](_0x816aaa):_0x2e7dd3[_0x121206(0x3dd)](_0x816aaa,_0x2b74cc);});};_0x42229f(this[_0x722b85(0x342)][_0x722b85(0x296)](_0x53ce88['UNIVER_SHEET']),this[_0x722b85(0x342)][_0x722b85(0x296)](_0x53ce88[_0x722b85(0x148)]))[_0x722b85(0x426)](_0x30fe4a(_0x3a9566=>_0x3a9566[_0x722b85(0x310)]()),_0x344b49(_0x2595de=>!_0x52933b(_0x2595de)),_0xbbe6f4(this[_0x722b85(0x2fd)]))[_0x722b85(0x2c5)](_0x53c8c6=>{_0x43ad63(_0x53c8c6);});}};et=ia([ye(0x0,_0x4b74b3(_0xd20bac)),ye(0x1,_0x350446),ye(0x2,_0xea86e),ye(0x3,_0x4b74b3(he)),ye(0x4,_0x4b74b3(_0x48132e))],et);var na=Object[_0x4cb5f3(0x1cd)],ra=Object['getOwnPropertyDescriptor'],oa=(_0x573ad6,_0x4b5a35,_0x4bc7d6,_0x5d80f3)=>{for(var _0x3c66c4=_0x5d80f3>0x1?void 0x0:_0x5d80f3?ra(_0x4b5a35,_0x4bc7d6):_0x4b5a35,_0x367da0=_0x573ad6['length']-0x1,_0x26f410;_0x367da0>=0x0;_0x367da0--)(_0x26f410=_0x573ad6[_0x367da0])&&(_0x3c66c4=(_0x5d80f3?_0x26f410(_0x4b5a35,_0x4bc7d6,_0x3c66c4):_0x26f410(_0x3c66c4))||_0x3c66c4);return _0x5d80f3&&_0x3c66c4&&na(_0x4b5a35,_0x4bc7d6,_0x3c66c4),_0x3c66c4;},vs=(_0x394ff7,_0x89e48d)=>(_0x40e640,_0x2aa5c2)=>_0x89e48d(_0x40e640,_0x2aa5c2,_0x394ff7);let Nt=class{constructor(_0x33d296,_0x224d5f){const _0x237ad2=_0x4cb5f3;this[_0x237ad2(0x23d)]=_0x33d296,this[_0x237ad2(0x3f5)]=_0x224d5f;}async[_0x4cb5f3(0x496)](_0x5d99b7,_0x8b0e15){const _0x19b9fb=_0x4cb5f3;var _0xc45f5d;const {unitID:_0x14495d,type:_0x43ed95,revision:_0x54cd50=0x0}=_0x8b0e15,_0x50160c=this[_0x19b9fb(0x2b1)]()+'/'+_0x43ed95+_0x19b9fb(0x1bd)+_0x14495d+'/rev/'+_0x54cd50,_0x3d340c=(await this[_0x19b9fb(0x3f5)][_0x19b9fb(0x157)](_0x50160c))[_0x19b9fb(0x2a6)],_0x44d2c1=(_0xc45f5d=_0x3d340c['snapshot'])==null?void 0x0:_0xc45f5d[_0x19b9fb(0x17e)];if(_0x44d2c1){const _0x244ded=_0x44d2c1==null?void 0x0:_0x44d2c1[_0x19b9fb(0x378)],_0x35aa8c=_0x43ab64[_0x19b9fb(0x2c3)](_0x13566e(_0x244ded));_0x44d2c1[_0x19b9fb(0x378)]=_0x35aa8c,Object[_0x19b9fb(0x2d3)](_0x44d2c1[_0x19b9fb(0x407)])[_0x19b9fb(0x2de)](([,_0x23c5bc])=>{const _0x448c1b=_0x19b9fb,_0xf6558f=_0x23c5bc[_0x448c1b(0x378)],_0xa9792=_0x43ab64[_0x448c1b(0x2c3)](_0x13566e(_0xf6558f));_0x23c5bc[_0x448c1b(0x378)]=_0xa9792;});}return _0x3d340c;}async['getSheetBlock'](_0x326cd9,_0x4100dc){const _0x71af94=_0x4cb5f3,{unitID:_0x45ef85,type:_0x5cb85e,blockID:_0x1130b6}=_0x4100dc,_0x2c0808=this['_getAPIPrefix']()+'/'+_0x5cb85e+_0x71af94(0x1bd)+_0x45ef85+_0x71af94(0x49b)+_0x1130b6;return(await this[_0x71af94(0x3f5)][_0x71af94(0x157)](_0x2c0808))[_0x71af94(0x2a6)];}async[_0x4cb5f3(0x1d1)](_0x3f72cc,_0x1f0c0e){const _0x9597ec=_0x4cb5f3,{unitID:_0x2fa67e,type:_0x5ae853,blockID:_0x25da5d}=_0x1f0c0e,_0x1c80cc=this[_0x9597ec(0x341)]()+_0x9597ec(0x49b)+_0x5ae853+_0x9597ec(0x1bd)+_0x2fa67e+_0x9597ec(0x49b)+_0x25da5d;return(await this[_0x9597ec(0x3f5)]['get'](_0x1c80cc))['body'];}async[_0x4cb5f3(0x345)](_0x2459d8,_0x52a9b1){const _0x47a81b=_0x4cb5f3,{unitID:_0xdae109,type:_0x3dcc9a,from:_0x36c639,to:_0x3102a0}=_0x52a9b1,_0x13330e=this[_0x47a81b(0x341)]()+'/'+_0x3dcc9a+_0x47a81b(0x1bd)+_0xdae109+_0x47a81b(0x2f2)+_0x36c639+'&to='+_0x3102a0;return(await this[_0x47a81b(0x3f5)][_0x47a81b(0x157)](_0x13330e))[_0x47a81b(0x2a6)];}[_0x4cb5f3(0x2b1)](){const _0x107cc9=_0x4cb5f3;var _0x4b5146;return(_0x4b5146=this[_0x107cc9(0x23d)][_0x107cc9(0x30c)](vn))!=null?_0x4b5146:this[_0x107cc9(0x341)]();}[_0x4cb5f3(0x341)](){const _0x2a6963=_0x4cb5f3;var _0x5380b2,_0x2d48c6;const _0x62ab51=this['_configService'][_0x2a6963(0x30c)](Sn),_0x2fb4b1=this['_configService']['getConfig']($);return(_0x2d48c6=(_0x5380b2=_0x2fb4b1==null?void 0x0:_0x2fb4b1[_0x2a6963(0x3fe)])!=null?_0x5380b2:_0x62ab51)!=null?_0x2d48c6:pn;}async[_0x4cb5f3(0x311)](_0x42f18d,_0x3cc96a){const _0x264e18=_0x4cb5f3,_0x3bcce2='/universer-api/snapshot/'+_0x3cc96a[_0x264e18(0x2c4)]+'/unit/'+_0x3cc96a[_0x264e18(0x479)]+'/resources';return(await this['_httpService']['get'](_0x3bcce2,{'params':{'resourceId':JSON[_0x264e18(0x2f3)](_0x3cc96a[_0x264e18(0x39c)])}}))['body'];}['saveSnapshot'](){const _0x5f0419=_0x4cb5f3;throw new Error(_0x5f0419(0x169));}[_0x4cb5f3(0x332)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4cb5f3(0x2c9)](){const _0x5803d1=_0x4cb5f3;throw new Error(_0x5803d1(0x169));}['copyFileMeta'](){const _0x41140a=_0x4cb5f3;throw new Error(_0x41140a(0x169));}[_0x4cb5f3(0x320)](){const _0x2786b0=_0x4cb5f3;throw new Error(_0x2786b0(0x169));}};Nt=oa([vs(0x0,_0x5b8ed6),vs(0x1,_0x4b74b3(_0x4c760e))],Nt);var aa=Object[_0x4cb5f3(0x1cd)],ca=Object[_0x4cb5f3(0x3cf)],ha=(_0x5a5fa5,_0x22d833,_0x16feac,_0x166247)=>{const _0x596bc2=_0x4cb5f3;for(var _0x3f341f=_0x166247>0x1?void 0x0:_0x166247?ca(_0x22d833,_0x16feac):_0x22d833,_0x363a5d=_0x5a5fa5[_0x596bc2(0x1ca)]-0x1,_0x2051bf;_0x363a5d>=0x0;_0x363a5d--)(_0x2051bf=_0x5a5fa5[_0x363a5d])&&(_0x3f341f=(_0x166247?_0x2051bf(_0x22d833,_0x16feac,_0x3f341f):_0x2051bf(_0x3f341f))||_0x3f341f);return _0x166247&&_0x3f341f&&aa(_0x22d833,_0x16feac,_0x3f341f),_0x3f341f;},Ue=(_0x1dd652,_0x33084a)=>(_0x4baa95,_0x334a22)=>_0x33084a(_0x4baa95,_0x334a22,_0x1dd652);let Mt=class extends _0x4585bc{constructor(_0x234b38,_0xc13dab,_0xea2763,_0x23b264,_0xbfc4a7){const _0xfe5143=_0x4cb5f3;super(_0x234b38,_0xc13dab,_0xea2763),this[_0xfe5143(0x2d5)]=_0x23b264,this['_logService']=_0xbfc4a7;}[_0x4cb5f3(0x209)](_0x2972b4,_0x1eba0b){const _0x140338=_0x4cb5f3,_0xc5bebe=this[_0x140338(0x4bb)](_0x2972b4);if(_0xc5bebe)try{const _0xd6fed8=this[_0x140338(0x348)](_0xc5bebe,_0x1eba0b);this[_0x140338(0x399)](_0x2972b4,_0xd6fed8);}catch(_0x50a263){this[_0x140338(0x2ba)][_0x140338(0x43b)](_0x140338(0x358),_0x50a263),this['_clearUndo'](_0x2972b4);}const _0x311f13=this[_0x140338(0x44d)](_0x2972b4);if(_0x311f13)try{const _0x30da4a=this[_0x140338(0x348)](_0x311f13,_0x1eba0b);this['_substituteRedoStack'](_0x2972b4,_0x30da4a);}catch(_0x3d08fa){this[_0x140338(0x2ba)]['error'](_0x3d08fa),this[_0x140338(0x30a)](_0x2972b4);}}[_0x4cb5f3(0x208)](_0x5033b2){const _0x55407a=_0x4cb5f3,_0x26bc0b=this[_0x55407a(0x4bb)](_0x5033b2);_0x26bc0b&&(_0x26bc0b['length']=0x0,this[_0x55407a(0x1b3)]());}[_0x4cb5f3(0x30a)](_0x2da407){const _0x2c6189=_0x4cb5f3,_0x1f37b6=this[_0x2c6189(0x44d)](_0x2da407);_0x1f37b6&&(_0x1f37b6['length']=0x0,this[_0x2c6189(0x1b3)]());}['_substituteUndoStack'](_0x4f42ed,_0x2f1d1c){const _0x28ed03=_0x4cb5f3;this['_undoStacks'][_0x28ed03(0x24d)](_0x4f42ed,_0x2f1d1c),this[_0x28ed03(0x1b3)]();}['_substituteRedoStack'](_0x3042c5,_0x5f38d4){const _0x307f54=_0x4cb5f3;this[_0x307f54(0x2a2)][_0x307f54(0x24d)](_0x3042c5,_0x5f38d4),this['_updateStatus']();}[_0x4cb5f3(0x348)](_0x4631b1,_0x2291e0){const _0x48de86=_0x4cb5f3,_0x1e642f=[];let _0x38d7dd=_0x2291e0,_0x3729a1=_0x2291e0;for(let _0xfbf796=_0x4631b1[_0x48de86(0x1ca)]-0x1;_0xfbf796>=0x0;_0xfbf796--){const {unitID:_0x1d80a6,undoMutations:_0x5cbc30,redoMutations:_0x2aef33}=_0x4631b1[_0xfbf796],_0x5c4451=this[_0x48de86(0x2d5)]['transformMutationsWithChangeset'](_0x38d7dd,_0x5cbc30),_0x335890=this[_0x48de86(0x2d5)][_0x48de86(0x467)](_0x3729a1,_0x2aef33);if(_0x1ac637(_0x5c4451)||_0x1ac637(_0x335890)){this[_0x48de86(0x2ba)][_0x48de86(0x43b)]('[CollaborationUndoRedoService]',_0x48de86(0x489),_0x5c4451,_0x335890);break;}_0x38d7dd=_0x5c4451[_0x48de86(0x1d9)],_0x3729a1=_0x335890[_0x48de86(0x1d9)],_0x1e642f[_0x48de86(0x404)]({'unitID':_0x1d80a6,'undoMutations':_0x5c4451[_0x48de86(0x44c)],'redoMutations':_0x335890[_0x48de86(0x44c)]});}return _0x1e642f[_0x48de86(0x153)]();}};Mt=ha([Ue(0x0,_0x350446),Ue(0x1,_0x155531),Ue(0x2,_0x389be5),Ue(0x3,_0x38dddc),Ue(0x4,_0x155804)],Mt);class la extends _0x1384c9{constructor(){const _0x38cc0a=_0x4cb5f3;super(),l(this,_0x38cc0a(0x2d7)),this['urlChange$']=_0x4b5d6d(window,'popstate')[_0x38cc0a(0x426)](_0xa11cc5(this[_0x38cc0a(0x2fd)]),_0x28d3c4(0x1),_0x3459e0(void 0x0));}[_0x4cb5f3(0x33a)](_0x303881,_0x46ef0b,_0x3f06eb=!0x1){const _0xaece19=_0x4cb5f3,_0x3a7dce=new URL(window[_0xaece19(0x403)]['href']);_0x3a7dce[_0xaece19(0x277)][_0xaece19(0x24d)](_0x303881,_0x46ef0b),_0x3f06eb?window[_0xaece19(0x38f)][_0xaece19(0x408)]('','',_0x3a7dce[_0xaece19(0x3fd)]()):window[_0xaece19(0x38f)][_0xaece19(0x26c)]('','',_0x3a7dce['toString']());}[_0x4cb5f3(0x192)](_0xaa89f7,_0x50db5f=!0x1){const _0x2ee061=_0x4cb5f3,_0x2d018f=new URL(window['location'][_0x2ee061(0x35c)]);_0x2d018f[_0x2ee061(0x277)][_0x2ee061(0x40d)](_0xaa89f7),_0x50db5f?window[_0x2ee061(0x38f)]['replaceState']('','',_0x2d018f[_0x2ee061(0x3fd)]()):window[_0x2ee061(0x38f)][_0x2ee061(0x26c)]('','',_0x2d018f[_0x2ee061(0x3fd)]());}[_0x4cb5f3(0x395)](_0x5bead8){const _0x41707b=_0x4cb5f3;var _0x1617f1;return(_0x1617f1=new URL(window[_0x41707b(0x403)][_0x41707b(0x35c)])[_0x41707b(0x277)][_0x41707b(0x157)](_0x5bead8))!=null?_0x1617f1:void 0x0;}}var qs=Object[_0x4cb5f3(0x1cd)],_a=Object[_0x4cb5f3(0x3cf)],ua=(_0x24aca6,_0x2a83e8,_0x4c3547)=>_0x2a83e8 in _0x24aca6?qs(_0x24aca6,_0x2a83e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c3547}):_0x24aca6[_0x2a83e8]=_0x4c3547,da=(_0x163222,_0x1b2061,_0x4bedc6,_0x333164)=>{const _0x12ba79=_0x4cb5f3;for(var _0x5ae4f1=_0x333164>0x1?void 0x0:_0x333164?_a(_0x1b2061,_0x4bedc6):_0x1b2061,_0x2d2590=_0x163222[_0x12ba79(0x1ca)]-0x1,_0x28583f;_0x2d2590>=0x0;_0x2d2590--)(_0x28583f=_0x163222[_0x2d2590])&&(_0x5ae4f1=(_0x333164?_0x28583f(_0x1b2061,_0x4bedc6,_0x5ae4f1):_0x28583f(_0x5ae4f1))||_0x5ae4f1);return _0x333164&&_0x5ae4f1&&qs(_0x1b2061,_0x4bedc6,_0x5ae4f1),_0x5ae4f1;},Ve=(_0x24453b,_0x707084)=>(_0x257875,_0x49e89f)=>_0x707084(_0x257875,_0x49e89f,_0x24453b),fa=(_0x1b9f97,_0x29257d,_0x434660)=>ua(_0x1b9f97,_0x29257d+'',_0x434660);const ma=_0x4cb5f3(0x234);let At=class extends _0x107260{constructor(_0x5c71fe=An,_0x408b73,_0x52a9c9,_0x458d74,_0x5c32f5){const _0x1a8315=_0x4cb5f3;super(),this[_0x1a8315(0x3ec)]=_0x5c71fe,this[_0x1a8315(0x2ba)]=_0x408b73,this[_0x1a8315(0x3fc)]=_0x52a9c9,this[_0x1a8315(0x150)]=_0x458d74,this[_0x1a8315(0x23d)]=_0x5c32f5;const {..._0x37d11f}=this['_config'];this[_0x1a8315(0x23d)][_0x1a8315(0x1a6)]($,_0x37d11f);}['onStarting'](){const _0x1b1713=_0x4cb5f3;this[_0x1b1713(0x3e4)](),_0x578724(this[_0x1b1713(0x150)],[[ve],[Je],[et]]);}[_0x4cb5f3(0x40f)](){const _0x54f061=_0x4cb5f3;_0x578724(this[_0x54f061(0x150)],[[ze]]);}[_0x4cb5f3(0x33e)](){this['_registerRenderDependencies']();}[_0x4cb5f3(0x3e4)](){const _0x18dee1=_0x4cb5f3;var _0x1033cb,_0x1b1cc2,_0xba0773,_0x8a1137;this[_0x18dee1(0x150)][_0x18dee1(0x30b)](_0x35a922)&&this[_0x18dee1(0x2ba)][_0x18dee1(0x43b)](_0x18dee1(0x267),_0x18dee1(0x159));let _0x561baf=[[_0x35a922,{'useClass':Mt}],[he],[Gt],[_0x4c760e],[Xs,{'useClass':la}],[ce],[w],[_0x389db0],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[ks],[et],[Hs,{'useClass':(_0x1b1cc2=(_0x1033cb=this[_0x18dee1(0x3ec)])==null?void 0x0:_0x1033cb['socketService'])!=null?_0x1b1cc2:Ct}],[_0x12453f,{'useClass':_0x4bca58}],[_0x57077d,{'useClass':Nt}],[_0x585a1b,{'useClass':yt}],[_0x90d8ab,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0xba0773=this[_0x18dee1(0x3ec)])!=null&&_0xba0773[_0x18dee1(0x2ae)]&&_0x561baf['push']([tt,{'useClass':fr}]),_0x561baf=_0x380f8d(_0x561baf,(_0x8a1137=this['_config'])==null?void 0x0:_0x8a1137[_0x18dee1(0x3a1)]),_0x561baf[_0x18dee1(0x2de)](_0x5cdaf1=>this[_0x18dee1(0x150)]['add'](_0x5cdaf1)),this[_0x18dee1(0x423)]();}[_0x4cb5f3(0x39f)](){const _0x400641=_0x4cb5f3;this['disposeWithMe'](this[_0x400641(0x3fc)][_0x400641(0x2b5)](_0x53ce88[_0x400641(0x148)],[wt])),this[_0x400641(0x357)](this[_0x400641(0x3fc)][_0x400641(0x2b5)](_0x53ce88[_0x400641(0x181)],[Pt]));}[_0x4cb5f3(0x423)](){const _0x6ef6e2=_0x4cb5f3;var _0x35e714,_0x4a39e4;this[_0x6ef6e2(0x150)]['get'](_0x4c760e)[_0x6ef6e2(0x45a)]({'priority':0x14,'interceptor':_0x2f4fe9({'maxParallel':0x6})}),this[_0x6ef6e2(0x150)][_0x6ef6e2(0x157)](Qe),(_0x35e714=this['_config'])!=null&&_0x35e714[_0x6ef6e2(0x421)]||this[_0x6ef6e2(0x150)][_0x6ef6e2(0x157)](w)['disableLocalCache'](),(_0x4a39e4=this[_0x6ef6e2(0x3ec)])!=null&&_0x4a39e4[_0x6ef6e2(0x3cc)]&&this[_0x6ef6e2(0x150)][_0x6ef6e2(0x157)](Ze),this['_injector']['get'](Le),this[_0x6ef6e2(0x150)][_0x6ef6e2(0x30b)](Me)&&this[_0x6ef6e2(0x150)][_0x6ef6e2(0x157)](Me);}};fa(At,'pluginName',ma),At=da([_0x11fa2d(_0x2ddd1d),Ve(0x1,_0x155804),Ve(0x2,_0x2bac38),Ve(0x3,_0x4b74b3(_0xd20bac)),Ve(0x4,_0x5b8ed6)],At);export{ko as AUTHZ_URL_KEY,yt as AuthzIoHttpService,yn as COLLAB_SUBMIT_CHANGESET_URL_KEY,En as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,Eo as CollaborationStatusDisplay,ks as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,Ls as HEARTBEAT_TIMEOUT_KEY,Hs as ICollaborationSocketService,Xs as IURLService,Ut as ImageIoService,wn as LOCAL_CACHE_INTERVAL_KEY,Nn as LOGIN_URL_KEY,w as LocalCacheService,On as RETRY_CONNECTING_MAX_COUNT_KEY,La as SEND_CHANGESET_TIMEOUT_KEY,Sn as SNAPSHOT_SERVER_URL_KEY,vn as SNAPSHOT_URL_KEY,Y as SessionStatus,to as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,la as WebURLService,Ln as deserializeToCombResponse,$n as serializeCombRequest};