@univerjs-pro/collaboration-client 0.4.0-nightly.202410141110 → 0.4.0-nightly.202410141606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +16 -16
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0xa6a604=_0x40a3;(function(_0x23a300,_0x14f630){const _0x5a45c0=_0x40a3,_0x8435d4=_0x23a300();while(!![]){try{const _0x5002ef=-parseInt(_0x5a45c0(0x490))/0x1*(-parseInt(_0x5a45c0(0x258))/0x2)+-parseInt(_0x5a45c0(0x21d))/0x3*(parseInt(_0x5a45c0(0x383))/0x4)+-parseInt(_0x5a45c0(0x4e2))/0x5*(parseInt(_0x5a45c0(0x44a))/0x6)+-parseInt(_0x5a45c0(0x4c8))/0x7*(-parseInt(_0x5a45c0(0x43b))/0x8)+parseInt(_0x5a45c0(0x435))/0x9*(-parseInt(_0x5a45c0(0x221))/0xa)+-parseInt(_0x5a45c0(0x2fa))/0xb+parseInt(_0x5a45c0(0x25f))/0xc;if(_0x5002ef===_0x14f630)break;else _0x8435d4['push'](_0x8435d4['shift']());}catch(_0x1c47c5){_0x8435d4['push'](_0x8435d4['shift']());}}}(_0x7251,0x9b157));var zs=Object[_0xa6a604(0x222)],Zs=(_0x58fe1b,_0x370ea1,_0x353c65)=>_0x370ea1 in _0x58fe1b?zs(_0x58fe1b,_0x370ea1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x353c65}):_0x58fe1b[_0x370ea1]=_0x353c65,l=(_0xd00f47,_0x26b715,_0x41ab4d)=>Zs(_0xd00f47,typeof _0x26b715!='symbol'?_0x26b715+'':_0x26b715,_0x41ab4d);import{createIdentifier as _0x33c554,Inject as _0x160402,Disposable as _0x252360,DisposableCollection as _0x17834d,toDisposable as _0x9a96d1,IConfigService as _0x123c7a,ILogService as _0x4e432b,UserManagerService as _0x3a34b9,UniverInstanceType as _0x39cf18,IUniverInstanceService as _0x33adea,LocaleService as _0x2f3b7b,Optional as _0x363100,RxDisposable as _0x48a1ad,Injector as _0x283cc6,Tools as _0x3c0ad5,ILocalStorageService as _0x1dabce,ICommandService as _0x5a0862,JSONX as _0x285898,CommandType as _0x58275d,IPermissionService as _0x375c1f,IUndoRedoService as _0xfe397,sequenceExecute as _0x500ae1,debounce as _0x30da7c,Rectangle as _0x7947b9,COLORS as _0x343cac,ColorKit as _0x2385c0,ThemeService as _0x3ce7f6,fromEventSubject as _0x41d8df,useDependency as _0x36782d,connectInjector as _0x1e6371,Workbook as _0x370cd1,isInternalEditorID as _0x19d0e1,LocalUndoRedoService as _0x5871c7,IContextService as _0x485aab,DependentOn as _0x571c11,Plugin as _0x56b9f6,touchDependencies as _0x5319da,IAuthzIoService as _0x523cec,mergeOverrideWithDependencies as _0x370722}from'@univerjs/core';import{Subject as _0x3daa12,merge as _0xcf1d88,takeUntil as _0x23bb2f,BehaviorSubject as _0x3d8ff6,distinctUntilChanged as _0x1dd265,fromEvent as _0x258cea,map as _0x5c23c9,shareReplay as _0x1acd58,take as _0x9fd648,of as _0x3a75ff,debounceTime as _0x147d44,filter as _0x207549,switchMap as _0x26d305,combineLatest as _0x161980,concatMap as _0x26f55c,mapTo as _0x27b06e}from'rxjs';import{map as _0x4beb38,take as _0x5f0667,filter as _0x38e98e,delay as _0x335667,throttleTime as _0x20abf3,takeUntil as _0x4c0c8e,switchMap as _0x481de6}from'rxjs/operators';import{MessageType as _0x1beabd,Tooltip as _0x4977ae}from'@univerjs/design';import{IBeforeCloseService as _0x4ac547,IMessageService as _0xd292a2,INotificationService as _0x53e404,useObservable as _0x4bb038,BuiltInUIPart as _0x3d8424,IUIPartsService as _0x438994}from'@univerjs/ui';import{HTTPService as _0x24a261,WebSocketService as _0x455b4c,MergeInterceptorFactory as _0x3b7a0e,HTTPRequest as _0x4e7fe7,IHTTPImplementation as _0x5e91e5,XHRHTTPImplementation as _0x5f0490,ThresholdInterceptorFactory as _0x1d7570}from'@univerjs/network';import{CollaborationEvent as _0x17f69c,parseChangesetToProtocol as _0x2b4f80,ISnapshotServerService as _0x4c8bab,isTransformMutationFailure as _0x4c49c5,isTransformMutationsWithChangesetSuccess as _0x5d8ed5,ITransformService as _0x5ea876,RevisionService as _0x842000,mapDocumentTypeToUniverType as _0x894d81,isTransformChangesetsSuccess as _0x42a926,CompressMutationService as _0x1f6597,parseProtocolChangeset as _0x44554a,SnapshotService as _0x1e34c6,textEncoder as _0x20a8ca,b64DecodeUnicode as _0x2b8cba,isTransformMutationsWithChangesetFailure as _0x5c865a,UniverCollaborationPlugin as _0x43d2ba}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xdd7e1e}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x5c017d,RichTextEditingMutation as _0x1aac28,SetTextSelectionsOperation as _0x188c9b,DocSkeletonManagerService as _0xae4148}from'@univerjs/docs';import{DocIMEInputManagerService as _0x57ed85,DocStateChangeManagerService as _0x1fdec3,NodePositionConvertToCursor as _0x3ae0b8,isValidRectRange as _0x22164d,NodePositionConvertToRectRange as _0x489432,TEXT_RANGE_LAYER_INDEX as _0x3284d2,SetDocZoomRatioOperation as _0x54633a}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x370067,SetSelectionsOperation as _0x5889b8,InsertSheetMutation as _0x53345b,EmptyMutation as _0x497cca,WorkbookEditablePermission as _0x1c28a6,RefRangeService as _0x397e46,EffectRefRangId as _0x1c0dca,handleIRemoveRow as _0x2e07d4,handleIRemoveCol as _0x550305,handleMoveRange as _0x588bad,handleInsertRow as _0x14236b,handleInsertRangeMoveRight as _0x4d67a8,handleInsertRangeMoveDown as _0x317d9f,handleInsertCol as _0x21b7f3,handleDeleteRangeMoveUp as _0x312c24,handleDeleteRangeMoveLeft as _0xa951f6,runRefRangeMutations as _0x335941,SetWorksheetActivateCommand as _0x3ecee7}from'@univerjs/sheets';import{IRenderManagerService as _0x25950e,Shape as _0x202b11,Rect as _0x2f5118,getColor as _0x3d1cbf,RegularPolygon as _0x500449,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2ae356,Vector2 as _0x1811c0}from'@univerjs/engine-render';import{ImageSourceType as _0x48b7bc,ImageUploadStatusType as _0x7a4b58,IImageIoService as _0x53feec}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3b6279,serializeRangeWithSheet as _0xff349}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x2e7833,VIEWPORT_KEY as _0x34ad61,getCoordByCell as _0x35d811,getSheetObject as _0x255eaf,SheetPermissionInitController as _0x323ea7}from'@univerjs/sheets-ui';import _0x369a6b,{forwardRef as _0x39d2df,useRef as _0x3b887a,createElement as _0x52237d,useCallback as _0x2836d2}from'react';import{IRemoteInstanceService as _0x44b35c}from'@univerjs/rpc';import{getAttachHeader as _0x35d498}from'@univerjs-pro/license';const dn=_0xa6a604(0x1fb),fn=_0xa6a604(0x253),mn='SNAPSHOT_URL_KEY',Oa=_0xa6a604(0x514),gn=0x7d0,Sn=_0xa6a604(0x418),pn=_0xa6a604(0x528),vn=_0xa6a604(0x3d8),In=0x7530,Ns=_0xa6a604(0x4f9),Us=0x4e20,En=0x4e20,Cn='RETRY_CONNECTING_MAX_COUNT',bn=0x3,Tn=_0xa6a604(0x2c1),Rn=0x3e8,On=_0xa6a604(0x1e8),Dn='/universer-api/comb',wn=_0xa6a604(0x41a),Pn=_0xa6a604(0x271);var Ms=(_0x3f9b50=>(_0x3f9b50[_0x3f9b50[_0xa6a604(0x308)]=0x0]=_0xa6a604(0x308),_0x3f9b50[_0x3f9b50['OK']=0x1]='OK',_0x3f9b50[_0x3f9b50['INTERNAL_ERROR']=0x2]=_0xa6a604(0x4e8),_0x3f9b50[_0x3f9b50[_0xa6a604(0x47e)]=0x3]='PERMISSION_DENIED',_0x3f9b50[_0x3f9b50[_0xa6a604(0x27e)]=0x4]=_0xa6a604(0x27e),_0x3f9b50[_0x3f9b50[_0xa6a604(0x49c)]=0x5]=_0xa6a604(0x49c),_0x3f9b50[_0x3f9b50[_0xa6a604(0x443)]=0x6]=_0xa6a604(0x443),_0x3f9b50[_0x3f9b50[_0xa6a604(0x4e9)]=0x7]='INVALID_ARGUMENT',_0x3f9b50[_0x3f9b50[_0xa6a604(0x2a9)]=0x8]=_0xa6a604(0x2a9),_0x3f9b50[_0x3f9b50[_0xa6a604(0x53d)]=0x9]=_0xa6a604(0x53d),_0x3f9b50[_0x3f9b50[_0xa6a604(0x2d0)]=0x1389]=_0xa6a604(0x2d0),_0x3f9b50[_0x3f9b50[_0xa6a604(0x4b8)]=0x1771]=_0xa6a604(0x4b8),_0x3f9b50[_0x3f9b50['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xa6a604(0x529),_0x3f9b50[_0x3f9b50['APPLY_REJECT']=0x1b59]=_0xa6a604(0x25d),_0x3f9b50[_0x3f9b50[_0xa6a604(0x34c)]=0x1b5a]=_0xa6a604(0x34c),_0x3f9b50[_0x3f9b50[_0xa6a604(0x3fa)]=0x1b5b]=_0xa6a604(0x3fa),_0x3f9b50[_0x3f9b50[_0xa6a604(0x2fc)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3f9b50[_0x3f9b50[_0xa6a604(0x405)]=0x1f41]=_0xa6a604(0x405),_0x3f9b50[_0x3f9b50[_0xa6a604(0x259)]=0x2329]=_0xa6a604(0x259),_0x3f9b50[_0x3f9b50['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xa6a604(0x264),_0x3f9b50[_0x3f9b50[_0xa6a604(0x305)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3f9b50[_0x3f9b50[_0xa6a604(0x3f2)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3f9b50[_0x3f9b50[_0xa6a604(0x4b9)]=0x232d]=_0xa6a604(0x4b9),_0x3f9b50[_0x3f9b50[_0xa6a604(0x51a)]=0x2711]=_0xa6a604(0x51a),_0x3f9b50[_0x3f9b50[_0xa6a604(0x30c)]=0x2712]=_0xa6a604(0x30c),_0x3f9b50[_0x3f9b50['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0xa6a604(0x4c9),_0x3f9b50[_0x3f9b50[_0xa6a604(0x3e5)]=0x2714]=_0xa6a604(0x3e5),_0x3f9b50[_0x3f9b50[_0xa6a604(0x40c)]=-0x1]=_0xa6a604(0x40c),_0x3f9b50))(Ms||{}),H=(_0x359c6c=>(_0x359c6c[_0x359c6c[_0xa6a604(0x2f9)]=0x0]=_0xa6a604(0x2f9),_0x359c6c[_0x359c6c['UNIVER_DOC']=0x1]=_0xa6a604(0x1eb),_0x359c6c[_0x359c6c['UNIVER_SHEET']=0x2]=_0xa6a604(0x48b),_0x359c6c[_0x359c6c[_0xa6a604(0x4a7)]=0x3]=_0xa6a604(0x4a7),_0x359c6c[_0x359c6c[_0xa6a604(0x26b)]=0x4]=_0xa6a604(0x26b),_0x359c6c[_0x359c6c[_0xa6a604(0x40c)]=-0x1]=_0xa6a604(0x40c),_0x359c6c))(H||{}),I=(_0x30d486=>(_0x30d486[_0x30d486[_0xa6a604(0x30b)]=0x0]=_0xa6a604(0x30b),_0x30d486[_0x30d486['HELLO']=0x1]=_0xa6a604(0x35f),_0x30d486[_0x30d486[_0xa6a604(0x3ee)]=0x2]=_0xa6a604(0x3ee),_0x30d486[_0x30d486['LEAVE']=0x3]='LEAVE',_0x30d486[_0x30d486[_0xa6a604(0x509)]=0x4]=_0xa6a604(0x509),_0x30d486[_0x30d486[_0xa6a604(0x3ab)]=0x5]=_0xa6a604(0x3ab),_0x30d486[_0x30d486[_0xa6a604(0x3e0)]=0x6]=_0xa6a604(0x3e0),_0x30d486[_0x30d486[_0xa6a604(0x40c)]=-0x1]=_0xa6a604(0x40c),_0x30d486))(I||{}),kt=(_0x281ea2=>(_0x281ea2[_0x281ea2[_0xa6a604(0x227)]=0x0]=_0xa6a604(0x227),_0x281ea2[_0x281ea2['OK']=0x1]='OK',_0x281ea2[_0x281ea2[_0xa6a604(0x441)]=0x2]=_0xa6a604(0x441),_0x281ea2[_0x281ea2['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x281ea2))(kt||{}),As=(_0x1aa69d=>(_0x1aa69d[_0x1aa69d[_0xa6a604(0x2b4)]=0x0]=_0xa6a604(0x2b4),_0x1aa69d[_0x1aa69d['HttpImport']=0x1]=_0xa6a604(0x278),_0x1aa69d[_0x1aa69d[_0xa6a604(0x506)]=0x2]='HttpExport',_0x1aa69d[_0x1aa69d[_0xa6a604(0x371)]=0x3]='UnitEmbedded',_0x1aa69d[_0x1aa69d['UnitSnapshot']=0x4]='UnitSnapshot',_0x1aa69d[_0x1aa69d['UNRECOGNIZED']=-0x1]=_0xa6a604(0x40c),_0x1aa69d))(As||{});const L=_0xa6a604(0x459),yn={};function Nn(_0x152ad6){const _0x4c92a5=_0xa6a604;var _0x2efcc3,_0x8c787d,_0x535ed1,_0x97e693;const _0x504eb8=_0x152ad6[_0x4c92a5(0x525)],_0x1bad81=JSON['parse'](_0x504eb8);switch(_0x1bad81[_0x4c92a5(0x47b)]){case I[_0x4c92a5(0x3ab)]:case I[_0x4c92a5(0x35f)]:{const _0x424618=_0x1bad81[_0x4c92a5(0x297)];return{..._0x1bad81,'data':_0x424618,'cmd':_0x1bad81['cmd']};}case I[_0x4c92a5(0x3ee)]:{const _0x57c6ff=_0x1bad81['joinRsp'];return{..._0x1bad81,'data':_0x57c6ff,'cmd':_0x1bad81[_0x4c92a5(0x47b)]};}case I[_0x4c92a5(0x3e0)]:{const _0x56bbe0=_0x1bad81[_0x4c92a5(0x46d)];switch(_0x56bbe0[_0x4c92a5(0x33b)]){case _0x17f69c[_0x4c92a5(0x2f0)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':(_0x2efcc3=_0x56bbe0[_0x4c92a5(0x423)])==null?void 0x0:_0x2efcc3['cs']},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x4a4)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':(_0x8c787d=_0x56bbe0[_0x4c92a5(0x33d)])==null?void 0x0:_0x8c787d['cs']},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x427)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':(_0x535ed1=_0x56bbe0['newCsEvent'])==null?void 0x0:_0x535ed1['cs']},'cmd':_0x1bad81['cmd']};case _0x17f69c[_0x4c92a5(0x2d4)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':(_0x97e693=_0x56bbe0[_0x4c92a5(0x25e)])==null?void 0x0:_0x97e693['cs']},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c['UPDATE_CURSOR']:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x419)]},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x38a)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x2f2)]},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x356)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x537)]},'cmd':_0x1bad81['cmd']};case _0x17f69c['LIVESHARE_NEW_HOST']:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x376)]},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c['LIVESHARE_FETCH_OPERATIONS']:case _0x17f69c['LIVESHARE_OPERATION']:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x284)]},'cmd':_0x1bad81['cmd']};case _0x17f69c[_0x4c92a5(0x32b)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x376)]},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x4e1)]:return{..._0x1bad81,'data':_0x56bbe0,'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x2fe)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0['commentUpdateEvent']},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c['UPDATE_PERMISSION_OBJ']:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x2ec)]},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x4db)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0['shouldCloseConn']},'cmd':_0x1bad81['cmd']};default:return _0x1bad81;}}default:return _0x1bad81;}}function Un(_0x1322d2){const _0x11b8b6=_0xa6a604;switch(_0x1322d2[_0x11b8b6(0x47b)]){case I['HEARTBEAT']:case I[_0x11b8b6(0x35f)]:return JSON[_0x11b8b6(0x45c)]({'cmd':_0x1322d2['cmd'],'routeKey':_0x1322d2[_0x11b8b6(0x399)]});case I[_0x11b8b6(0x509)]:{let _0xb923f6;switch(_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x33b)]){case _0x17f69c['UPDATE_CURSOR']:{_0xb923f6={'eventID':_0x17f69c[_0x11b8b6(0x42b)],'updateCursorEvent':_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x525)]};break;}case _0x17f69c['USERS_LEAVE']:{_0xb923f6={'eventID':_0x17f69c[_0x11b8b6(0x356)],'leaveEvent':_0x1322d2['data'][_0x11b8b6(0x525)]};break;}case _0x17f69c[_0x11b8b6(0x38a)]:{_0xb923f6={'eventID':_0x17f69c['USERS_ENTER'],'joinEvent':_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x525)]};break;}case _0x17f69c[_0x11b8b6(0x3e6)]:{_0xb923f6={'eventID':_0x17f69c['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x1322d2['data']['data']};break;}case _0x17f69c[_0x11b8b6(0x3bf)]:{_0xb923f6={'eventID':_0x17f69c['LIVESHARE_OPERATION'],'liveShareOperation':_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x525)]};break;}case _0x17f69c['LIVESHARE_TERMINATE']:{_0xb923f6={'eventID':_0x17f69c['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x525)]};break;}case _0x17f69c[_0x11b8b6(0x547)]:{_0xb923f6={'eventID':_0x17f69c[_0x11b8b6(0x547)],'liveShareRequestHost':_0x1322d2[_0x11b8b6(0x525)]['data']};break;}case _0x17f69c[_0x11b8b6(0x4b6)]:{_0xb923f6={'eventID':_0x17f69c[_0x11b8b6(0x4b6)]};break;}default:_0xb923f6={'eventID':_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x33b)]};}return JSON[_0x11b8b6(0x45c)]({'cmd':_0x1322d2[_0x11b8b6(0x47b)],'routeKey':_0x1322d2[_0x11b8b6(0x399)],'collaMsg':_0xb923f6});}case I[_0x11b8b6(0x3ee)]:return JSON['stringify']({'cmd':_0x1322d2[_0x11b8b6(0x47b)],'routeKey':_0x1322d2['routeKey'],'joinReq':_0x1322d2['data']});case I['LEAVE']:return JSON[_0x11b8b6(0x45c)]({'cmd':_0x1322d2['cmd'],'routeKey':_0x1322d2[_0x11b8b6(0x399)],'leaveReq':_0x1322d2[_0x11b8b6(0x525)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Mn=Object[_0xa6a604(0x222)],An=Object[_0xa6a604(0x4ce)],Ln=(_0xb034b3,_0x4b29c8,_0x1ffd17,_0x4f4dd0)=>{const _0x28c22a=_0xa6a604;for(var _0x3b9481=_0x4f4dd0>0x1?void 0x0:_0x4f4dd0?An(_0x4b29c8,_0x1ffd17):_0x4b29c8,_0x3fcfe7=_0xb034b3[_0x28c22a(0x391)]-0x1,_0x32301f;_0x3fcfe7>=0x0;_0x3fcfe7--)(_0x32301f=_0xb034b3[_0x3fcfe7])&&(_0x3b9481=(_0x4f4dd0?_0x32301f(_0x4b29c8,_0x1ffd17,_0x3b9481):_0x32301f(_0x3b9481))||_0x3b9481);return _0x4f4dd0&&_0x3b9481&&Mn(_0x4b29c8,_0x1ffd17,_0x3b9481),_0x3b9481;},Re=(_0x55f05e,_0x3c26e7)=>(_0x333a66,_0x200d08)=>_0x3c26e7(_0x333a66,_0x200d08,_0x55f05e);const Ls=_0x33c554(_0xa6a604(0x40a));function $n(_0x46e8c1,_0xbc750e,_0x332974){const _0x161ef1=_0xa6a604;return _0x46e8c1+'/'+_0xbc750e+_0x161ef1(0x34e)+_0x332974+_0x161ef1(0x37e);}let Et=class extends _0x252360{constructor(_0x5e84c0,_0x3ce42f,_0xa13b5,_0x2b51fe,_0x56ec15){const _0x55507a=_0xa6a604;super(),this[_0x55507a(0x430)]=_0x5e84c0,this[_0x55507a(0x4cf)]=_0x3ce42f,this['_configService']=_0xa13b5,this[_0x55507a(0x493)]=_0x2b51fe,this[_0x55507a(0x45a)]=_0x56ec15;}[_0xa6a604(0x501)](_0x59c43e){const _0x8b72b7=_0xa6a604,_0x55d1fd=this[_0x8b72b7(0x4cf)][_0x8b72b7(0x501)](_0x59c43e);if(!_0x55d1fd)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x466c73=new _0x17834d(),_0x182b71=new _0x3daa12();_0x466c73[_0x8b72b7(0x1e7)](_0x55d1fd[_0x8b72b7(0x1e9)][_0x8b72b7(0x426)](_0x25aea8=>_0x182b71[_0x8b72b7(0x480)](_0x25aea8))),_0x466c73[_0x8b72b7(0x1e7)](_0x9a96d1(()=>_0x182b71['complete']()));const _0x434547=new _0x3daa12();_0x466c73['add'](_0x55d1fd[_0x8b72b7(0x280)]['subscribe'](_0x65b579=>_0x434547[_0x8b72b7(0x480)](_0x65b579))),_0x466c73[_0x8b72b7(0x1e7)](_0x9a96d1(()=>_0x434547['complete']()));const _0x5a3967=new _0x3daa12();_0x466c73[_0x8b72b7(0x1e7)](_0x55d1fd[_0x8b72b7(0x502)][_0x8b72b7(0x426)](_0x237049=>{const _0x3bcaec=Nn(_0x237049);_0x5a3967['next'](_0x3bcaec);})),_0x466c73['add'](_0x9a96d1(()=>_0x5a3967[_0x8b72b7(0x52b)]()));let _0x5d00bf;const _0x2dd055=()=>{const _0x107f25=_0x8b72b7;_0x434547[_0x107f25(0x480)](new Event(_0x107f25(0x531))),_0x182b71[_0x107f25(0x480)](new CloseEvent(_0x107f25(0x531))),_0x5d00bf[_0x107f25(0x4b2)]();};return _0x5d00bf={'memberID':'','close$':_0x182b71[_0x8b72b7(0x294)](),'error$':_0x434547['asObservable'](),'open$':_0x55d1fd[_0x8b72b7(0x2fd)],'message$':_0x5a3967['asObservable'](),'send':_0x2e9c69=>{const _0x418189=_0x8b72b7;if(_0x2e9c69[_0x418189(0x47b)]===I[_0x418189(0x509)]){if(_0x2e9c69['data'][_0x418189(0x33b)]===_0x17f69c[_0x418189(0x54d)]){this[_0x418189(0x39f)](_0x5d00bf,_0x2e9c69[_0x418189(0x525)])[_0x418189(0x4c3)](_0x4457f3=>{const _0x3bf6f9=_0x418189;this['_logService'][_0x3bf6f9(0x3f7)](_0x4457f3),_0x2dd055();});return;}if(_0x2e9c69[_0x418189(0x525)]['eventID']===_0x17f69c['FETCH_MISSING']){const _0x2ddb28=_0x2e9c69[_0x418189(0x525)];this['_fetchMissChangesets'](_0x2ddb28)[_0x418189(0x232)](_0x32f064=>{const _0x4602a7=_0x418189;_0x5a3967[_0x4602a7(0x480)]({'cmd':I[_0x4602a7(0x3e0)],'code':kt['OK'],'routeKey':_0x2ddb28[_0x4602a7(0x525)][_0x4602a7(0x1ec)],'routeType':'','data':{'eventID':_0x17f69c[_0x4602a7(0x49f)],'data':{'changesets':_0x32f064}}});})[_0x418189(0x4c3)](_0x52530b=>{const _0x266ead=_0x418189;this['_logService'][_0x266ead(0x3f7)](_0x52530b),_0x2dd055();});return;}}_0x55d1fd[_0x418189(0x233)](Un(_0x2e9c69));},'close':()=>{const _0x1ff618=_0x8b72b7;_0x55d1fd[_0x1ff618(0x4b2)](),_0x466c73[_0x1ff618(0x4f4)]();}},_0x5d00bf;}async['_submitChangeset'](_0x3a1dd3,_0x3b7483){const _0x21abe0=_0xa6a604;var _0x210bab,_0x3dd64b;const {unitType:_0x40ce91,unitID:_0x501569,changeset:_0x48f928}=_0x3b7483[_0x21abe0(0x525)],_0x29191d={'unitID':_0x501569,'memberID':_0x3a1dd3[_0x21abe0(0x50c)],'type':_0x40ce91,'changeset':_0x2b4f80(_0x48f928)},_0x5136d6=this[_0x21abe0(0x325)][_0x21abe0(0x4e5)](On),_0x327545=this[_0x21abe0(0x325)][_0x21abe0(0x4e5)](L),_0x37b5a2=$n((_0x3dd64b=(_0x210bab=_0x327545==null?void 0x0:_0x327545[_0x21abe0(0x3c5)])!=null?_0x210bab:_0x5136d6)!=null?_0x3dd64b:Dn,_0x40ce91,_0x501569);try{await this[_0x21abe0(0x430)][_0x21abe0(0x216)](_0x37b5a2,{'body':_0x29191d});}catch(_0x97353b){throw this[_0x21abe0(0x493)][_0x21abe0(0x3f7)](_0x21abe0(0x4d0),_0x21abe0(0x23d)),_0x97353b;}}async['_fetchMissChangesets'](_0x38eb00){const _0x3a66a0=_0xa6a604,{unitID:_0x49c658,from:_0xe66b06,to:_0x1f35ed,unitType:_0x4396c7}=_0x38eb00['data'];return(await this[_0x3a66a0(0x45a)][_0x3a66a0(0x279)]({'metadata':void 0x0},{'unitID':_0x49c658,'type':_0x4396c7,'from':_0xe66b06,'to':_0x1f35ed}))[_0x3a66a0(0x51e)];}};Et=Ln([Re(0x0,_0x160402(_0x24a261)),Re(0x1,_0x160402(_0x455b4c)),Re(0x2,_0x123c7a),Re(0x3,_0x4e432b),Re(0x4,_0x4c8bab)],Et);const jn=_0xa6a604(0x367);function xn(_0x2ae710){const _0x5a9bf0=_0xa6a604;return JSON[_0x5a9bf0(0x45c)](_0x2ae710)['length'];}class $s{constructor(){const _0xa803ca=_0xa6a604;l(this,_0xa803ca(0x41c),new _0x3daa12()),l(this,'commentUpdate$',this[_0xa803ca(0x41c)][_0xa803ca(0x294)]());}['onCommentUpdate'](_0x3f6034){const _0x116dff=_0xa6a604;this[_0x116dff(0x41c)][_0x116dff(0x480)](_0x3f6034);}}var Hn=Object['defineProperty'],kn=Object['getOwnPropertyDescriptor'],Bn=(_0x5daa40,_0x5829ab,_0xc071e3,_0x2cebed)=>{const _0x3130a7=_0xa6a604;for(var _0x2cdb57=_0x2cebed>0x1?void 0x0:_0x2cebed?kn(_0x5829ab,_0xc071e3):_0x5829ab,_0x3aac41=_0x5daa40[_0x3130a7(0x391)]-0x1,_0x2e2b22;_0x3aac41>=0x0;_0x3aac41--)(_0x2e2b22=_0x5daa40[_0x3aac41])&&(_0x2cdb57=(_0x2cebed?_0x2e2b22(_0x5829ab,_0xc071e3,_0x2cdb57):_0x2e2b22(_0x2cdb57))||_0x2cdb57);return _0x2cebed&&_0x2cdb57&&Hn(_0x5829ab,_0xc071e3,_0x2cdb57),_0x2cdb57;},rs=(_0x5cfc5c,_0x402a35)=>(_0x485ef9,_0x322212)=>_0x402a35(_0x485ef9,_0x322212,_0x5cfc5c);let ae=class extends _0x252360{constructor(_0x49dc19,_0x43190b){const _0x71e1cc=_0xa6a604;super(),l(this,_0x71e1cc(0x31c),new Map()),(this[_0x71e1cc(0x1fd)]=_0x49dc19,this[_0x71e1cc(0x224)]=_0x43190b,this['disposeWithMe'](_0x9a96d1(_0xcf1d88(this[_0x71e1cc(0x1fd)]['getTypeOfUnitDisposed$'](_0x39cf18[_0x71e1cc(0x48b)])['pipe'](_0x4beb38(_0x4bb18a=>_0x4bb18a[_0x71e1cc(0x203)]())),this[_0x71e1cc(0x1fd)][_0x71e1cc(0x44e)](_0x39cf18[_0x71e1cc(0x1eb)])[_0x71e1cc(0x3b6)](_0x4beb38(_0x38b15b=>_0x38b15b['getUnitId']())),this[_0x71e1cc(0x1fd)][_0x71e1cc(0x44e)](_0x39cf18[_0x71e1cc(0x4a7)])[_0x71e1cc(0x3b6)](_0x4beb38(_0x50ea9a=>_0x50ea9a['getUnitId']())))['subscribe'](_0x599928=>this[_0x71e1cc(0x2d6)](_0x599928)))));}[_0xa6a604(0x3aa)](_0x47eefb){const _0x293b44=_0xa6a604;this['_userManagerService'][_0x293b44(0x3aa)](_0x47eefb);}['getCurrentUser'](){const _0x2ea6e2=_0xa6a604;return this[_0x2ea6e2(0x224)][_0x2ea6e2(0x53a)]();}[_0xa6a604(0x512)](_0x1cf317,_0x292808){const _0x133bb2=_0xa6a604;let _0x26c6e5=this[_0x133bb2(0x31c)][_0x133bb2(0x504)](_0x1cf317);_0x26c6e5||(_0x26c6e5=new Vn(),this[_0x133bb2(0x31c)][_0x133bb2(0x455)](_0x1cf317,_0x26c6e5)),_0x26c6e5[_0x133bb2(0x512)](_0x292808);}[_0xa6a604(0x4da)](_0x3a147d,_0x351648){const _0xb7505f=_0xa6a604,_0x312871=this[_0xb7505f(0x31c)][_0xb7505f(0x504)](_0x3a147d);_0x312871&&_0x312871[_0xb7505f(0x4da)](_0x351648);}['getRoom'](_0x306275){const _0x40a6e2=_0xa6a604;return this[_0x40a6e2(0x31c)][_0x40a6e2(0x504)](_0x306275);}[_0xa6a604(0x4d6)](_0x5c085c,_0x53bc51){const _0x26014f=_0xa6a604,_0x5e75e8=this['_roomMembers'][_0x26014f(0x504)](_0x5c085c);if(_0x5e75e8)return _0x5e75e8[_0x26014f(0x4d6)](_0x53bc51);}[_0xa6a604(0x2d6)](_0xc89f82){const _0xf98d3f=_0xa6a604,_0x419c8a=this[_0xf98d3f(0x31c)][_0xf98d3f(0x504)](_0xc89f82);_0x419c8a&&(_0x419c8a['dispose'](),this[_0xf98d3f(0x31c)][_0xf98d3f(0x3fe)](_0xc89f82));}['dispose'](){const _0x2af5d9=_0xa6a604;this['_roomMembers'][_0x2af5d9(0x213)](_0x560995=>_0x560995['dispose']()),this[_0x2af5d9(0x31c)][_0x2af5d9(0x215)]();}};ae=Bn([rs(0x0,_0x33adea),rs(0x1,_0x160402(_0x3a34b9))],ae);class Vn extends _0x252360{constructor(){const _0x28d906=_0xa6a604;super(...arguments),l(this,_0x28d906(0x451),new Map());}[_0xa6a604(0x4f4)](){const _0x2cd573=_0xa6a604;this[_0x2cd573(0x451)][_0x2cd573(0x215)]();}[_0xa6a604(0x512)](_0x2993c3){const _0x1aee85=_0xa6a604;this['_members'][_0x1aee85(0x455)](_0x2993c3[_0x1aee85(0x50c)],_0x2993c3);}['removeMember'](_0x3188fa){const _0x32230e=_0xa6a604;this[_0x32230e(0x451)][_0x32230e(0x3fe)](_0x3188fa);}[_0xa6a604(0x4d6)](_0x2ed7fd){const _0x51d676=_0xa6a604;return this[_0x51d676(0x451)][_0x51d676(0x504)](_0x2ed7fd);}}var Fn=Object['defineProperty'],Wn=Object[_0xa6a604(0x4ce)],Gn=(_0x31c5a7,_0x14b19d,_0x23866a,_0x4b9272)=>{const _0x3a320c=_0xa6a604;for(var _0x39253a=_0x4b9272>0x1?void 0x0:_0x4b9272?Wn(_0x14b19d,_0x23866a):_0x14b19d,_0x3b2f71=_0x31c5a7[_0x3a320c(0x391)]-0x1,_0x3d4d37;_0x3b2f71>=0x0;_0x3b2f71--)(_0x3d4d37=_0x31c5a7[_0x3b2f71])&&(_0x39253a=(_0x4b9272?_0x3d4d37(_0x14b19d,_0x23866a,_0x39253a):_0x3d4d37(_0x39253a))||_0x39253a);return _0x4b9272&&_0x39253a&&Fn(_0x14b19d,_0x23866a,_0x39253a),_0x39253a;},J=(_0xb56d00,_0x357254)=>(_0xf51a0e,_0x282bf3)=>_0x357254(_0xf51a0e,_0x282bf3,_0xb56d00),G=(_0x675fec=>(_0x675fec[_0x675fec['IDLE']=0x0]='IDLE',_0x675fec[_0x675fec[_0xa6a604(0x1e4)]=0x1]='JOINING',_0x675fec[_0x675fec['OFFLINE']=0x2]=_0xa6a604(0x210),_0x675fec[_0x675fec['ONLINE']=0x3]=_0xa6a604(0x3a2),_0x675fec))(G||{});let Ct=class extends _0x48a1ad{constructor(_0x344d40,_0x11ee0e,_0x48c477,_0x10b94b,_0x3a308a,_0x20fc36,_0xff4ebb,_0x589e1e,_0xf97857,_0x26a9f7){const _0x26b32e=_0xa6a604;super(),l(this,_0x26b32e(0x520),new _0x3d8ff6(0x0)),l(this,_0x26b32e(0x304),this[_0x26b32e(0x520)][_0x26b32e(0x294)]()),l(this,_0x26b32e(0x27b),new _0x3daa12()),l(this,_0x26b32e(0x2bc),this[_0x26b32e(0x27b)][_0x26b32e(0x294)]()),l(this,'_socket'),l(this,_0x26b32e(0x290)),l(this,_0x26b32e(0x4cb)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x26b32e(0x22e),null),(this[_0x26b32e(0x3e7)]=_0x344d40,this[_0x26b32e(0x493)]=_0x48c477,this[_0x26b32e(0x27a)]=_0x10b94b,this[_0x26b32e(0x44c)]=_0x3a308a,this[_0x26b32e(0x325)]=_0x20fc36,this[_0x26b32e(0x247)]=_0xff4ebb,this['_memberService']=_0x589e1e,this[_0x26b32e(0x22d)]=_0xf97857,this[_0x26b32e(0x254)]=_0x26a9f7,this[_0x26b32e(0x3e3)]=!!this['_telemetryService'],_0x11ee0e[_0x26b32e(0x3b6)](_0x23bb2f(this[_0x26b32e(0x424)]))[_0x26b32e(0x426)](_0x37e60e=>{const _0x1a0b56=_0x26b32e;var _0x13c9e6;typeof _0x37e60e>'u'||(this['_socket']=_0x37e60e,_0x37e60e?(this[_0x1a0b56(0x28d)](_0x37e60e),this[_0x1a0b56(0x290)]=_0x37e60e[_0x1a0b56(0x502)][_0x1a0b56(0x426)](_0x3198af=>{const _0x22c27b=_0x1a0b56;_0x3198af[_0x22c27b(0x399)]===this['_unitID']&&this[_0x22c27b(0x3de)](_0x3198af);})):(this[_0x1a0b56(0x37f)](),this[_0x1a0b56(0x520)]['next'](0x2),(_0x13c9e6=this[_0x1a0b56(0x290)])==null||_0x13c9e6[_0x1a0b56(0x442)](),this[_0x1a0b56(0x290)]=null));}),this[_0x26b32e(0x4f3)](this[_0x26b32e(0x27a)][_0x26b32e(0x292)](()=>{const _0x1fe29c=_0x26b32e;var _0x42a112;(_0x42a112=this[_0x1fe29c(0x31a)])==null||_0x42a112[_0x1fe29c(0x233)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0xa6a604(0x4c2)](){const _0x3dcbc2=_0xa6a604;return this[_0x3dcbc2(0x520)][_0x3dcbc2(0x2a2)]();}[_0xa6a604(0x2c6)](){const _0x241d73=_0xa6a604;var _0x3103be,_0x4c4151;return(_0x4c4151=(_0x3103be=this['_socket'])==null?void 0x0:_0x3103be[_0x241d73(0x50c)])!=null?_0x4c4151:null;}[_0xa6a604(0x4f4)](){const _0xe7ff7a=_0xa6a604;super[_0xe7ff7a(0x4f4)](),this[_0xe7ff7a(0x424)][_0xe7ff7a(0x480)](),this[_0xe7ff7a(0x424)]['complete']();}[_0xa6a604(0x4b2)](){const _0x3fc724=_0xa6a604;var _0x114a8a,_0x440963;this[_0x3fc724(0x37f)](),(_0x114a8a=this[_0x3fc724(0x31a)])==null||_0x114a8a[_0x3fc724(0x233)]({'cmd':I[_0x3fc724(0x3df)],'data':{'roomID':this[_0x3fc724(0x3e7)]}}),(_0x440963=this[_0x3fc724(0x31a)])==null||_0x440963[_0x3fc724(0x4b2)](),this[_0x3fc724(0x27b)][_0x3fc724(0x52b)](),this[_0x3fc724(0x520)][_0x3fc724(0x52b)](),this['dispose']();}['_onCombEvent'](_0x4c8f77){const _0x9f1283=_0xa6a604;_0x4c8f77['cmd']===I[_0x9f1283(0x3ee)]?this[_0x9f1283(0x2c2)](_0x4c8f77):_0x4c8f77['cmd']===I[_0x9f1283(0x3e0)]&&this[_0x9f1283(0x345)](_0x4c8f77);}[_0xa6a604(0x28d)](_0x274d94){const _0x168fc2=_0xa6a604;this['_sessionStatus$'][_0x168fc2(0x480)](0x1),_0x274d94[_0x168fc2(0x233)]({'cmd':I[_0x168fc2(0x3ee)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0xa6a604(0x2c2)](_0x4e5420){const _0x50c54b=_0xa6a604;var _0x31eed4;if(_0x4e5420[_0x50c54b(0x2b7)]===kt[_0x50c54b(0x441)]){this[_0x50c54b(0x44c)]['show']({'type':_0x1beabd['Warning'],'content':this[_0x50c54b(0x247)]['t'](_0x50c54b(0x1e3))}),this['_sessionStatus$'][_0x50c54b(0x480)](0x2);return;}this[_0x50c54b(0x520)][_0x50c54b(0x480)](0x3);const _0x3c8a18=(_0x31eed4=_0x4e5420['data'][_0x50c54b(0x257)][this[_0x50c54b(0x3e7)]])==null?void 0x0:_0x31eed4['members'];_0x3c8a18&&_0x3c8a18[_0x50c54b(0x213)](_0x1c6f43=>this[_0x50c54b(0x242)]['updateMember'](this['_unitID'],_0x1c6f43));}[_0xa6a604(0x345)](_0x471f1a){const _0x3f631a=_0xa6a604;try{const _0x170582=_0x471f1a[_0x3f631a(0x525)];switch(_0x170582[_0x3f631a(0x33b)]){case _0x17f69c[_0x3f631a(0x38a)]:this[_0x3f631a(0x291)](_0x170582),this['_event$'][_0x3f631a(0x480)](_0x170582);break;case _0x17f69c[_0x3f631a(0x356)]:this[_0x3f631a(0x4de)](_0x170582),this[_0x3f631a(0x27b)][_0x3f631a(0x480)](_0x170582);break;case _0x17f69c[_0x3f631a(0x4a4)]:this[_0x3f631a(0x2cd)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x3f631a(0x480)](_0x170582);break;case _0x17f69c[_0x3f631a(0x4e1)]:this['_logService'][_0x3f631a(0x3f7)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x170582)),this[_0x3f631a(0x27b)][_0x3f631a(0x480)](_0x170582);break;case _0x17f69c[_0x3f631a(0x2fe)]:this[_0x3f631a(0x22d)]['onCommentUpdate'](_0x170582[_0x3f631a(0x525)]),this[_0x3f631a(0x27b)]['next'](_0x170582);break;default:this[_0x3f631a(0x27b)][_0x3f631a(0x480)](_0x170582);}}catch(_0x318370){this['_logService'][_0x3f631a(0x3f7)](_0x318370,_0x471f1a);}}[_0xa6a604(0x291)](_0x40bc59){const _0x1612c2=_0xa6a604;this[_0x1612c2(0x242)]['updateMember'](this['_unitID'],_0x40bc59['data']);}[_0xa6a604(0x4de)](_0x4ec5af){const _0x147520=_0xa6a604;this[_0x147520(0x242)][_0x147520(0x4da)](this[_0x147520(0x3e7)],_0x4ec5af[_0x147520(0x525)][_0x147520(0x50c)]);}async['send'](_0x166b4d,_0x357cef){const _0x514946=_0xa6a604;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x514946(0x335));try{_0x166b4d[_0x514946(0x33b)]===_0x17f69c[_0x514946(0x54d)]&&(this[_0x514946(0x354)](),this['_startTelemetryCollaborationNewChangeset'](_0x166b4d)),this[_0x514946(0x31a)]['send']({'cmd':I[_0x514946(0x509)],'routeKey':_0x357cef,'routeType':'','data':_0x166b4d});}catch(_0x4ad8e5){this[_0x514946(0x493)][_0x514946(0x3f7)](_0x4ad8e5);}}[_0xa6a604(0x354)](){const _0x2c2b40=_0xa6a604;var _0x5787dd;this['_collaborationTimeoutTimer']=window[_0x2c2b40(0x3e8)](()=>{const _0x3dc1c0=_0x2c2b40;this[_0x3dc1c0(0x4cb)]=null,this['_messageService'][_0x3dc1c0(0x4d8)]({'type':_0x1beabd['Error'],'content':this[_0x3dc1c0(0x247)]['t'](_0x3dc1c0(0x4f1))});},(_0x5787dd=this[_0x2c2b40(0x325)]['getConfig'](Ns))!=null?_0x5787dd:Us);}[_0xa6a604(0x3d0)](){const _0x327d72=_0xa6a604;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x327d72(0x4cb)]),this['_collaborationTimeoutTimer']=null);}[_0xa6a604(0x484)](_0x543de){const _0x29f565=_0xa6a604;if(!this[_0x29f565(0x3e3)])return;const {data:_0x3db718}=_0x543de,{unitID:_0x5cf108,changeset:_0x2e8565}=_0x3db718,{mutations:_0x2c3b07,type:_0x3937c8}=_0x2e8565;this[_0x29f565(0x22e)]={'unitId':_0x5cf108,'type':_0x3937c8,'startTime':performance[_0x29f565(0x398)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x2c3b07)};}[_0xa6a604(0x2cd)](){const _0x3003e0=_0xa6a604;if(this[_0x3003e0(0x3e3)]){if(!this[_0x3003e0(0x22e)]){this[_0x3003e0(0x493)][_0x3003e0(0x3f7)](_0x3003e0(0x4d0),_0x3003e0(0x35b));return;}this['_telemetryInfo'][_0x3003e0(0x2ea)]=performance['now'](),this[_0x3003e0(0x22e)][_0x3003e0(0x4e6)]=this[_0x3003e0(0x22e)][_0x3003e0(0x2ea)]-this[_0x3003e0(0x22e)][_0x3003e0(0x2a1)],this[_0x3003e0(0x254)][_0x3003e0(0x29c)](jn,this[_0x3003e0(0x22e)]),this[_0x3003e0(0x22e)]=null;}}[_0xa6a604(0x37f)](){this['_telemetryInfo']=null;}};Ct=Gn([J(0x2,_0x4e432b),J(0x3,_0x4ac547),J(0x4,_0xd292a2),J(0x5,_0x123c7a),J(0x6,_0x160402(_0x2f3b7b)),J(0x7,_0x160402(ae)),J(0x8,_0x160402($s)),J(0x9,_0x363100(_0xdd7e1e))],Ct);var Yn=Object[_0xa6a604(0x222)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x16130f,_0x319296,_0x4ae746,_0x15989b)=>{const _0x77bd5=_0xa6a604;for(var _0x34a5d8=_0x15989b>0x1?void 0x0:_0x15989b?Kn(_0x319296,_0x4ae746):_0x319296,_0x269541=_0x16130f[_0x77bd5(0x391)]-0x1,_0x24e407;_0x269541>=0x0;_0x269541--)(_0x24e407=_0x16130f[_0x269541])&&(_0x34a5d8=(_0x15989b?_0x24e407(_0x319296,_0x4ae746,_0x34a5d8):_0x24e407(_0x34a5d8))||_0x34a5d8);return _0x15989b&&_0x34a5d8&&Yn(_0x319296,_0x4ae746,_0x34a5d8),_0x34a5d8;},de=(_0x920994,_0x1bf7d6)=>(_0x4d9606,_0x5137b2)=>_0x1bf7d6(_0x4d9606,_0x5137b2,_0x920994);let ce=class extends _0x252360{constructor(_0x39f973,_0x32ef34,_0x514eff,_0x3b9546,_0x570a69,_0x3101da){const _0x275c59=_0xa6a604;super(),l(this,_0x275c59(0x4f2),new _0x3d8ff6(void 0x0)),l(this,_0x275c59(0x2f4),this[_0x275c59(0x4f2)][_0x275c59(0x294)]()),l(this,_0x275c59(0x42a),null),l(this,_0x275c59(0x374),new Map()),l(this,_0x275c59(0x26e),new _0x3d8ff6(G[_0x275c59(0x4a0)])),l(this,_0x275c59(0x23c),this[_0x275c59(0x26e)]['asObservable']()),l(this,_0x275c59(0x541),!0x1),l(this,_0x275c59(0x527)),l(this,_0x275c59(0x389),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x275c59(0x2e3)),(this['_injector']=_0x39f973,this['_localeService']=_0x32ef34,this[_0x275c59(0x44c)]=_0x514eff,this[_0x275c59(0x493)]=_0x3b9546,this[_0x275c59(0x325)]=_0x570a69,this[_0x275c59(0x402)]=_0x3101da,this[_0x275c59(0x34b)]());}get[_0xa6a604(0x31a)](){const _0x3bec98=_0xa6a604;return this[_0x3bec98(0x4f2)][_0x3bec98(0x2a2)]();}[_0xa6a604(0x34b)](){const _0x20ae4f=_0xa6a604;this[_0x20ae4f(0x414)](),this[_0x20ae4f(0x37d)]();}['dispose'](){const _0x51b9c5=_0xa6a604;super['dispose'](),this[_0x51b9c5(0x374)]['forEach'](_0x1bf24b=>_0x1bf24b[_0x51b9c5(0x4f4)]()),this['_sessions'][_0x51b9c5(0x215)](),this['_status$'][_0x51b9c5(0x52b)]();}async[_0xa6a604(0x269)](_0xe3cf83){const _0x3df58d=_0xa6a604;if(this['_sessions']['has'](_0xe3cf83))return this[_0x3df58d(0x374)][_0x3df58d(0x504)](_0xe3cf83);this['_tryEnsureSocket']();const _0x1516be=this[_0x3df58d(0x35a)][_0x3df58d(0x307)](Ct,_0xe3cf83,this[_0x3df58d(0x4f2)][_0x3df58d(0x294)]());return this[_0x3df58d(0x374)][_0x3df58d(0x455)](_0xe3cf83,_0x1516be),_0x1516be;}[_0xa6a604(0x1f5)](_0x2bdcd4){const _0x54168d=_0xa6a604;var _0x491eb6;const _0x1c8735=this['_sessions'][_0x54168d(0x504)](_0x2bdcd4);_0x1c8735&&(this['_sessions'][_0x54168d(0x3fe)](_0x2bdcd4),_0x1c8735[_0x54168d(0x4b2)]()),this[_0x54168d(0x374)]['size']||(_0x491eb6=this[_0x54168d(0x31a)])==null||_0x491eb6['close']();}[_0xa6a604(0x237)](){const _0xe6248=_0xa6a604;this[_0xe6248(0x389)]=0x0,this[_0xe6248(0x527)]!=null&&(clearTimeout(this[_0xe6248(0x527)]),this[_0xe6248(0x527)]=null),this['_tryReconnect']();}[_0xa6a604(0x243)](){const _0x25f77a=_0xa6a604;var _0x2c213f,_0x2aea70;const _0x1792f9=this[_0x25f77a(0x325)][_0x25f77a(0x4e5)](Sn),_0x2c61ec=this[_0x25f77a(0x325)][_0x25f77a(0x4e5)](L),_0x3889d7=(_0x2aea70=(_0x2c213f=_0x2c61ec==null?void 0x0:_0x2c61ec[_0x25f77a(0x395)])!=null?_0x2c213f:_0x1792f9)!=null?_0x2aea70:pn,_0x3e2d55=this[_0x25f77a(0x402)][_0x25f77a(0x501)](_0x3889d7);return this[_0x25f77a(0x42a)]=_0x3e2d55,_0x3e2d55;}[_0xa6a604(0x489)](){const _0x44f62b=_0xa6a604;var _0x4dd7eb,_0x2f9b7f;try{const _0x512c4c=(_0x2f9b7f=(_0x4dd7eb=this['_socket'])!=null?_0x4dd7eb:this[_0x44f62b(0x42a)])!=null?_0x2f9b7f:this[_0x44f62b(0x243)]();if(_0x512c4c){const _0x2025a8=_0x512c4c[_0x44f62b(0x233)];_0x512c4c[_0x44f62b(0x233)]=_0x36d856=>(this['_rescheduleHeartbeat'](),_0x2025a8['apply'](_0x512c4c,[_0x36d856])),_0x512c4c[_0x44f62b(0x502)][_0x44f62b(0x426)](_0x45abf8=>this[_0x44f62b(0x445)](_0x512c4c,_0x45abf8)),_0x512c4c[_0x44f62b(0x280)][_0x44f62b(0x3b6)](_0x5f0667(0x1))[_0x44f62b(0x426)](_0x29db8b=>this[_0x44f62b(0x493)][_0x44f62b(0x3f7)](_0x44f62b(0x311),_0x29db8b)),_0x512c4c[_0x44f62b(0x2fd)]['pipe'](_0x5f0667(0x1))[_0x44f62b(0x426)](()=>{const _0x14e4b2=_0x44f62b;this[_0x14e4b2(0x252)](_0x512c4c);}),_0x512c4c['close$'][_0x44f62b(0x3b6)](_0x5f0667(0x1))[_0x44f62b(0x426)](_0x5d5c3d=>{const _0x260992=_0x44f62b;this[_0x260992(0x493)][_0x260992(0x408)](_0x260992(0x54f),_0x260992(0x447),_0x5d5c3d),this['_onConnectionFailed']();});}}catch(_0x4cadde){this[_0x44f62b(0x493)][_0x44f62b(0x3f7)](_0x4cadde),this[_0x44f62b(0x2cb)]();}}[_0xa6a604(0x252)](_0x191eb2){const _0x58fc5f=_0xa6a604;this[_0x58fc5f(0x493)][_0x58fc5f(0x408)](_0x58fc5f(0x54f),_0x58fc5f(0x517)),_0x191eb2['send']({'cmd':I[_0x58fc5f(0x35f)]}),this[_0x58fc5f(0x492)]();}['_listenToOfflineEvent'](){const _0x324339=_0xa6a604;window[_0x324339(0x3d9)](_0x324339(0x486),()=>this['_onOffline']());}['_onOffline'](){const _0x47c483=_0xa6a604;this[_0x47c483(0x541)]=!0x1,this[_0x47c483(0x42a)]=null,this[_0x47c483(0x26e)][_0x47c483(0x480)](G[_0x47c483(0x210)]),this[_0x47c483(0x4f2)][_0x47c483(0x480)](null),this[_0x47c483(0x44f)](),this[_0x47c483(0x1ef)]();}[_0xa6a604(0x2cb)](){const _0x129797=_0xa6a604;var _0x5538c4;this['_onOffline'](),this[_0x129797(0x389)]<((_0x5538c4=this[_0x129797(0x325)][_0x129797(0x4e5)](Cn))!=null?_0x5538c4:bn)?(this[_0x129797(0x44c)]['show']({'key':_0x129797(0x4d7),'type':_0x1beabd[_0x129797(0x299)],'content':this[_0x129797(0x247)]['t'](_0x129797(0x29e))}),this[_0x129797(0x246)]()):this[_0x129797(0x44c)][_0x129797(0x4d8)]({'key':'collaboration-session-retry','type':_0x1beabd['Error'],'content':this['_localeService']['t'](_0x129797(0x2c4))});}[_0xa6a604(0x37d)](){const _0x2e6e93=_0xa6a604,_0x5e62d6=()=>{const _0x420246=_0x40a3;this[_0x420246(0x31a)]||this[_0x420246(0x237)]();},_0x87543e=()=>{const _0x4285fb=_0x40a3;this[_0x4285fb(0x31a)]||document[_0x4285fb(0x205)]===_0x4285fb(0x421)||this['reconnect']();};window[_0x2e6e93(0x3d9)]('online',_0x5e62d6),document['addEventListener']('visibilitychange',_0x87543e);}[_0xa6a604(0x246)](){const _0xb4cf2=_0xa6a604;var _0x39e77f;const _0x47b8e8=this[_0xb4cf2(0x389)],_0x1fa0e6=this[_0xb4cf2(0x325)][_0xb4cf2(0x4e5)](L),_0x5a19c8=_0x47b8e8===0x0?0x0:((_0x39e77f=_0x1fa0e6==null?void 0x0:_0x1fa0e6['retryConnectingInterval'])!=null?_0x39e77f:En)*0x2**_0x47b8e8;this['_retryConnectingTimer']=window[_0xb4cf2(0x3e8)](()=>{const _0x2158b5=_0xb4cf2;clearTimeout(this[_0x2158b5(0x527)]),this[_0x2158b5(0x527)]=null,this[_0x2158b5(0x489)]();},_0x5a19c8),this[_0xb4cf2(0x389)]+=0x1;}[_0xa6a604(0x445)](_0x5ccb8f,_0x597506){const _0x1cb02a=_0xa6a604,{cmd:_0x1afe17}=_0x597506;_0x1afe17===I['HELLO']&&!this[_0x1cb02a(0x541)]&&(_0x5ccb8f[_0x1cb02a(0x50c)]=_0x597506[_0x1cb02a(0x525)][_0x1cb02a(0x50c)],this[_0x1cb02a(0x4f2)][_0x1cb02a(0x480)](_0x5ccb8f),this[_0x1cb02a(0x26e)][_0x1cb02a(0x480)](G[_0x1cb02a(0x3a2)]),this['_socketReady']=!0x0,this[_0x1cb02a(0x42a)]=null),_0x1afe17===I[_0x1cb02a(0x3ab)]&&this['_clearTimeoutTimer'](),this[_0x1cb02a(0x492)]();}[_0xa6a604(0x492)](){const _0x42769b=_0xa6a604;var _0x493be8;this[_0x42769b(0x1ef)](),this[_0x42769b(0x387)]=window[_0x42769b(0x3e8)](()=>this[_0x42769b(0x2fb)](),(_0x493be8=this[_0x42769b(0x325)][_0x42769b(0x4e5)](vn))!=null?_0x493be8:In);}[_0xa6a604(0x2fb)](){const _0x5561a7=_0xa6a604;this[_0x5561a7(0x31a)][_0x5561a7(0x233)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x377e6c=_0xa6a604;var _0x255c8d;this[_0x377e6c(0x2e3)]=window['setTimeout'](()=>this[_0x377e6c(0x2cb)](),(_0x255c8d=this[_0x377e6c(0x325)][_0x377e6c(0x4e5)](Ns))!=null?_0x255c8d:Us);}[_0xa6a604(0x1ef)](){const _0x4cbec9=_0xa6a604;this[_0x4cbec9(0x387)]!=null&&(clearTimeout(this[_0x4cbec9(0x387)]),this['_sendHeartbeatTimer']=null);}[_0xa6a604(0x44f)](){const _0x417dbe=_0xa6a604;this[_0x417dbe(0x2e3)]!=null&&(clearTimeout(this[_0x417dbe(0x2e3)]),this[_0x417dbe(0x2e3)]=null);}};ce=Xn([de(0x0,_0x160402(_0x283cc6)),de(0x1,_0x160402(_0x2f3b7b)),de(0x2,_0xd292a2),de(0x3,_0x4e432b),de(0x4,_0x123c7a),de(0x5,Ls)],ce);var Jn=Object[_0xa6a604(0x222)],qn=Object[_0xa6a604(0x4ce)],zn=(_0x214b2e,_0xb4788c,_0xe0d28f,_0x15697f)=>{const _0x4acc98=_0xa6a604;for(var _0x342ab5=_0x15697f>0x1?void 0x0:_0x15697f?qn(_0xb4788c,_0xe0d28f):_0xb4788c,_0x44840d=_0x214b2e[_0x4acc98(0x391)]-0x1,_0x1afcf0;_0x44840d>=0x0;_0x44840d--)(_0x1afcf0=_0x214b2e[_0x44840d])&&(_0x342ab5=(_0x15697f?_0x1afcf0(_0xb4788c,_0xe0d28f,_0x342ab5):_0x1afcf0(_0x342ab5))||_0x342ab5);return _0x15697f&&_0x342ab5&&Jn(_0xb4788c,_0xe0d28f,_0x342ab5),_0x342ab5;},ct=(_0x4d8c93,_0x3f2073)=>(_0x224f14,_0x26afe0)=>_0x3f2073(_0x224f14,_0x26afe0,_0x4d8c93);let Ye=class{constructor(_0x179165,_0x107776,_0x2273ee){const _0x57a95b=_0xa6a604;this[_0x57a95b(0x35a)]=_0x179165,this['_transformService']=_0x107776,this['_renderManagerService']=_0x2273ee;}['transformIMECache'](_0xd994ef){const _0x219a64=_0xa6a604;this[_0x219a64(0x434)](_0xd994ef),this[_0x219a64(0x4a6)](_0xd994ef);}[_0xa6a604(0x50a)](_0x5dfbb1){const _0x3ba40e=_0xa6a604,{unitID:_0xf5af0}=_0x5dfbb1,_0x35ab1f=this[_0x3ba40e(0x288)][_0x3ba40e(0x2eb)](_0xf5af0)[_0x3ba40e(0x218)](_0x57ed85),{redoCache:_0x323162}=_0x35ab1f['getUndoRedoMutationParamsCache']();if(_0x323162[_0x3ba40e(0x391)]===0x0)return _0x5dfbb1;let _0x3497d0=_0x3c0ad5[_0x3ba40e(0x20c)](_0x5dfbb1['mutations'][0x0]);for(let _0x29b4ff=0x0;_0x29b4ff<_0x323162[_0x3ba40e(0x391)];_0x29b4ff++){const _0x59896e={'id':_0x3ba40e(0x23f),'params':{..._0x323162[_0x29b4ff]}},_0x43de00=this[_0x3ba40e(0x48c)][_0x3ba40e(0x54a)](_0x3497d0,_0x59896e,!0x1);if(_0x4c49c5(_0x43de00))throw _0x43de00['error'];_0x3497d0=_0x43de00['m1Prime'];}return{..._0x3c0ad5[_0x3ba40e(0x20c)](_0x5dfbb1),'mutations':[_0x3497d0]};}[_0xa6a604(0x434)](_0x3fc9c6){const _0x44a953=_0xa6a604,{unitID:_0x27de61}=_0x3fc9c6,_0x1659fa=this[_0x44a953(0x288)][_0x44a953(0x2eb)](_0x27de61)[_0x44a953(0x218)](_0x57ed85),{undoCache:_0x4bdfa4,redoCache:_0x598261}=_0x1659fa[_0x44a953(0x2d2)]();if(_0x4bdfa4[_0x44a953(0x391)]===0x0||_0x598261[_0x44a953(0x391)]===0x0)return;const _0x54b6d6=[],_0x5155ac=[];let _0x4e273b=_0x3c0ad5[_0x44a953(0x20c)](_0x3fc9c6[_0x44a953(0x2ce)][0x0]),_0x20dc84=_0x3c0ad5[_0x44a953(0x20c)](_0x3fc9c6['mutations'][0x0]);for(let _0x2bb1cc=_0x4bdfa4[_0x44a953(0x391)]-0x1;_0x2bb1cc>=0x0;_0x2bb1cc--){const _0x4699e5={'id':'doc.mutation.rich-text-editing','params':{..._0x4bdfa4[_0x2bb1cc]}},_0x4ce97e={'id':_0x44a953(0x23f),'params':{..._0x598261[_0x2bb1cc]}},_0x179242=this['_transformService'][_0x44a953(0x54a)](_0x4e273b,_0x4699e5,!0x1),_0x203f75=this[_0x44a953(0x48c)]['transformMutation'](_0x20dc84,_0x4ce97e,!0x1);if(_0x4c49c5(_0x179242))throw _0x179242[_0x44a953(0x3f7)];if(_0x4c49c5(_0x203f75))throw _0x203f75['error'];_0x54b6d6['unshift'](_0x179242[_0x44a953(0x29d)][_0x44a953(0x4d2)]),_0x5155ac[_0x44a953(0x20a)](_0x203f75[_0x44a953(0x29d)][_0x44a953(0x4d2)]),_0x4e273b=_0x179242[_0x44a953(0x515)],_0x20dc84=_0x203f75[_0x44a953(0x515)];}_0x1659fa[_0x44a953(0x42e)]({'undoCache':_0x54b6d6,'redoCache':_0x5155ac});}[_0xa6a604(0x4a6)](_0x5c0b0b){const _0x44a118=_0xa6a604,{unitID:_0x273636}=_0x5c0b0b,_0x5931c3=this[_0x44a118(0x288)][_0x44a118(0x2eb)](_0x273636)[_0x44a118(0x218)](_0x57ed85),_0x1b9339=_0x5931c3[_0x44a118(0x51c)]();if(_0x1b9339==null)return;const _0x157be4=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5c0b0b[_0x44a118(0x1ec)],'actions':null,'textRanges':[_0x1b9339]}}],_0x5b9f61=this['_transformService'][_0x44a118(0x49b)](_0x5c0b0b,_0x157be4);if(!_0x5d8ed5(_0x5b9f61))throw _0x5b9f61[_0x44a118(0x3f7)];const _0x2dad46=_0x5b9f61[_0x44a118(0x29d)][0x0]['params']['textRanges'];Array[_0x44a118(0x2f8)](_0x2dad46)&&_0x2dad46[_0x44a118(0x391)]&&_0x5931c3[_0x44a118(0x3fd)](_0x2dad46[0x0]);}};Ye=zn([ct(0x0,_0x160402(_0x283cc6)),ct(0x1,_0x5ea876),ct(0x2,_0x25950e)],Ye);var Zn=Object[_0xa6a604(0x222)],Qn=Object[_0xa6a604(0x4ce)],er=(_0x18dcb0,_0x59f349,_0x4c4c45,_0x5837e3)=>{const _0xf26ca4=_0xa6a604;for(var _0x40afac=_0x5837e3>0x1?void 0x0:_0x5837e3?Qn(_0x59f349,_0x4c4c45):_0x59f349,_0x124b38=_0x18dcb0[_0xf26ca4(0x391)]-0x1,_0x25f7dc;_0x124b38>=0x0;_0x124b38--)(_0x25f7dc=_0x18dcb0[_0x124b38])&&(_0x40afac=(_0x5837e3?_0x25f7dc(_0x59f349,_0x4c4c45,_0x40afac):_0x25f7dc(_0x40afac))||_0x40afac);return _0x5837e3&&_0x40afac&&Zn(_0x59f349,_0x4c4c45,_0x40afac),_0x40afac;},Oe=(_0x2afe94,_0xba48e)=>(_0x115ac2,_0x7df22)=>_0xba48e(_0x115ac2,_0x7df22,_0x2afe94);let D=class extends _0x252360{constructor(_0x4baed1,_0x4e3afe,_0x163c21,_0x20b6f8,_0x4656ac){const _0x52837a=_0xa6a604;super(),l(this,'_cachedData',new Map()),l(this,_0x52837a(0x268),new Map()),l(this,_0x52837a(0x337),!0x1),(this[_0x52837a(0x325)]=_0x4baed1,this[_0x52837a(0x30d)]=_0x4e3afe,this[_0x52837a(0x27a)]=_0x163c21,this[_0x52837a(0x247)]=_0x20b6f8,this[_0x52837a(0x4dc)]=_0x4656ac,this['_setupBeforeClosingHandler']());}[_0xa6a604(0x2e6)](){const _0x17e8e7=_0xa6a604;this[_0x17e8e7(0x337)]=!0x0;}[_0xa6a604(0x2ff)](){this['_disabled']=!0x1;}[_0xa6a604(0x4f4)](){const _0x3de769=_0xa6a604;this[_0x3de769(0x2ef)]()[_0x3de769(0x232)](()=>super[_0x3de769(0x4f4)]());}async['loadOfflineData'](_0x3e0c63){const _0x401104=_0xa6a604;return this[_0x401104(0x337)]?null:this[_0x401104(0x30d)][_0x401104(0x3f5)](os(_0x3e0c63));}async[_0xa6a604(0x1e1)](_0x4b1131,_0x3ea3d4){const _0x393165=_0xa6a604;return!!this[_0x393165(0x30d)][_0x393165(0x20b)](_0x4b1131,_0x3ea3d4);}[_0xa6a604(0x31d)](_0x48804e,_0x391064,_0x57b340,_0x2cdc43){const _0xd10d9f=_0xa6a604,_0x2a6807=this['_revisionService']['getCurrentRevOfUnit'](_0x48804e);this[_0xd10d9f(0x2e2)][_0xd10d9f(0x455)](_0x48804e,{'unitID':_0x48804e,'type':_0x391064,'awaitingChangeset':_0x57b340,'mutations':_0x2cdc43,'rev':_0x2a6807}),this[_0xd10d9f(0x268)][_0xd10d9f(0x1f9)](_0x48804e)||this[_0xd10d9f(0x24a)](_0x48804e);}['_scheduleSaving'](_0x56e715){const _0x13fd6f=_0xa6a604,_0x25a39d=this[_0x13fd6f(0x44d)]();_0x25a39d===0x0?this[_0x13fd6f(0x30e)](_0x56e715):this[_0x13fd6f(0x268)][_0x13fd6f(0x455)](_0x56e715,setTimeout(()=>this[_0x13fd6f(0x30e)](_0x56e715),_0x25a39d));}[_0xa6a604(0x44d)](){const _0x175fd9=_0xa6a604;var _0x2cf8cd;return(_0x2cf8cd=this[_0x175fd9(0x325)][_0x175fd9(0x4e5)](Tn))!=null?_0x2cf8cd:Rn;}['_saveCache'](_0x2cd800){const _0x518027=_0xa6a604,_0x3b9749=this['_saveTaskMap'][_0x518027(0x504)](_0x2cd800);return _0x3b9749!==void 0x0&&window[_0x518027(0x2a4)](_0x3b9749),this[_0x518027(0x30d)]['setItem'](os(_0x2cd800),this['_cachedData'][_0x518027(0x504)](_0x2cd800))['then'](()=>this[_0x518027(0x268)][_0x518027(0x3fe)](_0x2cd800));}async[_0xa6a604(0x2ef)](){const _0x3dd5dc=_0xa6a604,_0x6c05e6=[];this[_0x3dd5dc(0x268)][_0x3dd5dc(0x213)]((_0x129744,_0x194d77)=>{const _0x1b8d34=_0x3dd5dc;window[_0x1b8d34(0x2a4)](_0x129744),_0x6c05e6[_0x1b8d34(0x539)](this[_0x1b8d34(0x30e)](_0x194d77)['then'](()=>{const _0x2947ed=_0x1b8d34;this[_0x2947ed(0x268)][_0x2947ed(0x3fe)](_0x194d77);}));}),await Promise[_0x3dd5dc(0x2df)](_0x6c05e6);}[_0xa6a604(0x326)](){const _0x2d4439=_0xa6a604;this[_0x2d4439(0x4f3)](this['_beforeCloseService'][_0x2d4439(0x366)](()=>{const _0x565405=_0x2d4439;if(this[_0x565405(0x268)][_0x565405(0x4e4)])return this[_0x565405(0x247)]['t'](_0x565405(0x2ae));}));}};D=er([Oe(0x0,_0x123c7a),Oe(0x1,_0x1dabce),Oe(0x2,_0x4ac547),Oe(0x3,_0x160402(_0x2f3b7b)),Oe(0x4,_0x160402(_0x842000))],D);function os(_0x6dc81c){const _0x3825fb=_0xa6a604;return _0x3825fb(0x49d)+_0x6dc81c;}var tr=Object[_0xa6a604(0x222)],sr=Object['getOwnPropertyDescriptor'],ir=(_0x484fd0,_0xb85e8a,_0x1d234b,_0x4d03c7)=>{const _0x8783c6=_0xa6a604;for(var _0x217579=_0x4d03c7>0x1?void 0x0:_0x4d03c7?sr(_0xb85e8a,_0x1d234b):_0xb85e8a,_0x4bdfac=_0x484fd0[_0x8783c6(0x391)]-0x1,_0x4f7de4;_0x4bdfac>=0x0;_0x4bdfac--)(_0x4f7de4=_0x484fd0[_0x4bdfac])&&(_0x217579=(_0x4d03c7?_0x4f7de4(_0xb85e8a,_0x1d234b,_0x217579):_0x4f7de4(_0x217579))||_0x217579);return _0x4d03c7&&_0x217579&&tr(_0xb85e8a,_0x1d234b,_0x217579),_0x217579;},ht=(_0x543ff8,_0xc9b13a)=>(_0x52178f,_0x3f879d)=>_0xc9b13a(_0x52178f,_0x3f879d,_0x543ff8);function nr(_0x16ca70){const _0x33d716=_0xa6a604,{unitID:_0x16e9a7,mutations:_0x703edb}=_0x16ca70;return{'unitId':_0x16e9a7,'subUnitId':_0x703edb[0x0]['params'][_0x33d716(0x46b)]};}let Ke=class{constructor(_0x221c7e,_0x58ba85,_0x3df677){const _0x4e639c=_0xa6a604;this['_injector']=_0x221c7e,this[_0x4e639c(0x48c)]=_0x58ba85,this[_0x4e639c(0x35c)]=_0x3df677;}[_0xa6a604(0x255)](_0x2a01a5){const _0x2dae6e=_0xa6a604;var _0x29f787,_0x3ad996,_0x5d594e,_0x5b80aa;const _0x2ab0d6=this[_0x2dae6e(0x35a)][_0x2dae6e(0x504)](_0x370067),{unitId:_0x430ebb,subUnitId:_0x2eacb3}=nr(_0x2a01a5),_0xcb0e4b=_0x2ab0d6['getWorkbookSelections'](_0x430ebb)[_0x2dae6e(0x37b)](),_0x4d0226=(_0x3ad996=(_0x29f787=this['_instanceService'][_0x2dae6e(0x353)](_0x430ebb))==null?void 0x0:_0x29f787['getActiveSheet']())==null?void 0x0:_0x3ad996[_0x2dae6e(0x406)]();if(_0xcb0e4b[_0x2dae6e(0x391)]===0x0||!_0x430ebb||!_0x2eacb3)return;const _0x3ec00d=[{'id':_0x5889b8['id'],'params':{'unitId':_0x430ebb,'subUnitId':_0x4d0226,'selections':_0x3c0ad5[_0x2dae6e(0x20c)](_0xcb0e4b)}}],_0x2e10f3=this['_transformService'][_0x2dae6e(0x49b)](_0x2a01a5,_0x3ec00d);if(!_0x5d8ed5(_0x2e10f3))throw _0x2e10f3['error'];const _0x13b9bd=(_0x5b80aa=(_0x5d594e=_0x2e10f3[_0x2dae6e(0x29d)][0x0])==null?void 0x0:_0x5d594e['params'])==null?void 0x0:_0x5b80aa['selections'];Array[_0x2dae6e(0x2f8)](_0x13b9bd)&&_0x13b9bd['length']&&this[_0x2dae6e(0x35a)][_0x2dae6e(0x504)](_0x5a0862)[_0x2dae6e(0x352)](_0x5889b8['id'],{'unitId':_0x430ebb,'subUnitId':_0x4d0226,'selections':_0x13b9bd});}};Ke=ir([ht(0x0,_0x160402(_0x283cc6)),ht(0x1,_0x5ea876),ht(0x2,_0x33adea)],Ke);const tt=_0x33c554('univer-pro.collaboration-client.single-active-unit-service');var js=(_0x5a9dd7=>(_0x5a9dd7[_0x5a9dd7[_0xa6a604(0x240)]=0x0]=_0xa6a604(0x240),_0x5a9dd7[_0x5a9dd7[_0xa6a604(0x54e)]=0x1]='OTHER_CLIENTS_EDITING',_0x5a9dd7))(js||{});const as=0x7530,cs='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x252360{constructor(){const _0x59e1cb=_0xa6a604;super(),l(this,'_id',_0x3c0ad5[_0x59e1cb(0x24c)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x59e1cb(0x30a),new Map()),l(this,_0x59e1cb(0x50d),null),l(this,_0x59e1cb(0x25c),new Map()),l(this,_0x59e1cb(0x32f),new Map()),this[_0x59e1cb(0x21e)]();}[_0xa6a604(0x4f4)](){const _0x57c2c6=_0xa6a604;super[_0x57c2c6(0x4f4)](),this[_0x57c2c6(0x25c)][_0x57c2c6(0x213)]((_0x26f013,_0x12041c)=>this[_0x57c2c6(0x330)](_0x12041c)),this[_0x57c2c6(0x50d)]&&window['clearInterval'](this[_0x57c2c6(0x50d)]);}[_0xa6a604(0x3a0)](_0x1ef520){const _0x47bdf8=_0xa6a604;return this[_0x47bdf8(0x2d8)](_0x1ef520)[_0x47bdf8(0x3b6)](_0x1dd265());}['editingUnit'](_0x23a447){const _0x546f7d=_0xa6a604;this[_0x546f7d(0x52a)][_0x546f7d(0x4e4)]===0x0&&this['_scheduleHeartbeat'](),this[_0x546f7d(0x52a)]['add'](_0x23a447),this[_0x546f7d(0x249)]({'type':0x0,'memberID':this[_0x546f7d(0x438)],'unitIDs':[_0x23a447],'isForwarded':!0x1});}[_0xa6a604(0x3b1)](_0x5095be){const _0x3eb7af=_0xa6a604;this['_selfUnitIDs'][_0x3eb7af(0x3fe)](_0x5095be),this[_0x3eb7af(0x52a)][_0x3eb7af(0x4e4)]===0x0&&this[_0x3eb7af(0x50d)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0xa6a604(0x21e)](){const _0x41e1ed=_0xa6a604;this[_0x41e1ed(0x4f3)](_0x9a96d1(_0x258cea(window,_0x41e1ed(0x321))[_0x41e1ed(0x426)](_0x2dbcb2=>{const _0x34bc35=_0x41e1ed;if(_0x2dbcb2[_0x34bc35(0x3f9)]!==cs||!_0x2dbcb2[_0x34bc35(0x1e2)])return;const _0x373076=JSON['parse'](_0x2dbcb2[_0x34bc35(0x1e2)]);this[_0x34bc35(0x505)](_0x373076);}))),window[_0x41e1ed(0x3d9)](_0x41e1ed(0x2e0),()=>this[_0x41e1ed(0x249)]({'type':0x1,'memberID':this[_0x41e1ed(0x438)],'unitIDs':Array[_0x41e1ed(0x281)](this[_0x41e1ed(0x52a)])}));}[_0xa6a604(0x505)](_0x1a0b3f){const _0x3919ed=_0xa6a604;switch(_0x1a0b3f[_0x3919ed(0x536)]){case 0x0:this['_handleJoinEvent'](_0x1a0b3f);break;case 0x1:this['_handleLeaveEvent'](_0x1a0b3f);break;case 0x2:this[_0x3919ed(0x226)](_0x1a0b3f);break;}}['_handleJoinEvent'](_0x43cfda){const _0x5b3c02=_0xa6a604,{unitIDs:_0x103d1e,memberID:_0x10deb0,isForwarded:_0x6caf63}=_0x43cfda;_0x103d1e['forEach'](_0xe3c010=>{const _0x49c56d=_0x40a3;if(!_0x6caf63&&this[_0x49c56d(0x30a)][_0x49c56d(0x1f9)](_0xe3c010)&&this[_0x49c56d(0x2d8)](_0xe3c010)[_0x49c56d(0x480)](0x1),!this['_unitOnClients'][_0x49c56d(0x1f9)](_0xe3c010)||!this[_0x49c56d(0x30a)][_0x49c56d(0x504)](_0xe3c010)[_0x49c56d(0x1f9)](_0x10deb0)){const _0x24c4fe=this['_unitOnClients']['get'](_0xe3c010)||new Set();_0x24c4fe['add'](_0x10deb0),this[_0x49c56d(0x30a)][_0x49c56d(0x455)](_0xe3c010,_0x24c4fe),this[_0x49c56d(0x207)](_0x10deb0);}}),_0x6caf63||this[_0x5b3c02(0x249)]({'type':0x0,'memberID':this[_0x5b3c02(0x438)],'unitIDs':[...this[_0x5b3c02(0x52a)]],'isForwarded':!0x0});}[_0xa6a604(0x207)](_0x52123e){const _0x1b804a=_0xa6a604;this[_0x1b804a(0x330)](_0x52123e);const _0x143de4=window[_0x1b804a(0x3e8)](()=>{const _0x144547=_0x1b804a;this['_unitOnClients'][_0x144547(0x213)](_0x1095b2=>{const _0x2119e4=_0x144547;_0x1095b2[_0x2119e4(0x3fe)](_0x52123e);});},as*0x2);this[_0x1b804a(0x25c)][_0x1b804a(0x455)](_0x52123e,_0x143de4);}[_0xa6a604(0x330)](_0x308af1){const _0x4ae485=_0xa6a604;if(this['_clearOtherTimers'][_0x4ae485(0x1f9)](_0x308af1)){const _0x101a27=this['_clearOtherTimers']['get'](_0x308af1);_0x101a27&&window[_0x4ae485(0x2a4)](_0x101a27),this[_0x4ae485(0x25c)][_0x4ae485(0x455)](_0x308af1,null);}}[_0xa6a604(0x542)](_0x148c94){const _0x37c48a=_0xa6a604,{memberID:_0x54ebc8,unitIDs:_0x30ccbd}=_0x148c94;_0x30ccbd['forEach'](_0x2142e0=>{const _0x29f074=_0x40a3;var _0x50fcd3;const _0x4d90c0=this[_0x29f074(0x30a)][_0x29f074(0x504)](_0x2142e0);_0x4d90c0&&(_0x4d90c0[_0x29f074(0x3fe)](_0x54ebc8),(_0x50fcd3=this['_ensureSubject'](_0x2142e0))==null||_0x50fcd3['next'](_0x4d90c0[_0x29f074(0x4e4)]===0x0?0x0:0x1));}),this[_0x37c48a(0x330)](_0x54ebc8);}[_0xa6a604(0x226)](_0x5e17b1){const _0x49d5d7=_0xa6a604;this['_scheduleClearOtherTimer'](_0x5e17b1[_0x49d5d7(0x50c)]);}[_0xa6a604(0x249)](_0x53bc7f){const _0x275124=_0xa6a604;localStorage[_0x275124(0x20b)](cs,JSON[_0x275124(0x45c)](_0x53bc7f));}[_0xa6a604(0x394)](){const _0x1adab8=_0xa6a604;this['_heartbeatTimer']=window[_0x1adab8(0x2ad)](()=>{const _0x6c5671=_0x1adab8;this[_0x6c5671(0x249)]({'type':0x2,'memberID':this[_0x6c5671(0x438)]});},as);}[_0xa6a604(0x2d8)](_0xaa5bed){const _0x3fd2cf=_0xa6a604;return this[_0x3fd2cf(0x32f)]['has'](_0xaa5bed)||this['_unitStatus'][_0x3fd2cf(0x455)](_0xaa5bed,new _0x3d8ff6(0x0)),this[_0x3fd2cf(0x32f)][_0x3fd2cf(0x504)](_0xaa5bed);}}function xs(_0x5d4105){const _0x394833=_0xa6a604;let _0x25b9a0='';for(const _0x533168 of _0x5d4105){const {startOffset:_0xfaa241,endOffset:_0x8f47ec,isActive:_0x403be0}=_0x533168;_0x25b9a0[_0x394833(0x391)]&&(_0x25b9a0+=','),_0x25b9a0+=_0xfaa241+':'+_0x8f47ec+':'+(_0x403be0?'1':'0');}return _0x25b9a0;}function or(_0x31af49){const _0x15f72e=_0xa6a604,_0x19de3c=_0x31af49[_0x15f72e(0x231)](','),_0x4783e4=[];for(const _0x5701fd of _0x19de3c){const [_0x1c6c9f,_0x2e6a23,_0x3f5809]=_0x5701fd[_0x15f72e(0x231)](':');_0x4783e4['push']({'startOffset':Number(_0x1c6c9f),'endOffset':Number(_0x2e6a23),'collapsed':_0x1c6c9f===_0x2e6a23,'isActive':_0x3f5809==='1'});}return _0x4783e4['some'](_0x55811a=>_0x55811a['isActive'])||(_0x4783e4[0x0][_0x15f72e(0x51f)]=!0x0),_0x4783e4;}class Bt extends _0x48a1ad{constructor(){const _0x363b3f=_0xa6a604;super(...arguments),l(this,_0x363b3f(0x47c),new _0x3d8ff6(null)),l(this,'collabCursorState$',this[_0x363b3f(0x47c)][_0x363b3f(0x294)]());}[_0xa6a604(0x285)](_0x323b1a){const _0x9f7fd6=_0xa6a604,{unitID:_0x32c6c1,memberID:_0x51df30,textRanges:_0xb9dea0}=_0x323b1a,_0x208ce7=xs(_0xb9dea0),_0x4c0819={'unitID':_0x32c6c1,'memberID':_0x51df30,'selection':_0x208ce7};this['_collabCursorState$'][_0x9f7fd6(0x480)](_0x4c0819);}}var ar=Object[_0xa6a604(0x222)],cr=Object[_0xa6a604(0x4ce)],hr=(_0x18886f,_0x2da75e,_0x1e5660,_0x11e6fe)=>{const _0x1df5c2=_0xa6a604;for(var _0x336dd0=_0x11e6fe>0x1?void 0x0:_0x11e6fe?cr(_0x2da75e,_0x1e5660):_0x2da75e,_0xde6189=_0x18886f[_0x1df5c2(0x391)]-0x1,_0x2d5ae3;_0xde6189>=0x0;_0xde6189--)(_0x2d5ae3=_0x18886f[_0xde6189])&&(_0x336dd0=(_0x11e6fe?_0x2d5ae3(_0x2da75e,_0x1e5660,_0x336dd0):_0x2d5ae3(_0x336dd0))||_0x336dd0);return _0x11e6fe&&_0x336dd0&&ar(_0x2da75e,_0x1e5660,_0x336dd0),_0x336dd0;},hs=(_0x52fd73,_0x27f600)=>(_0x429f0d,_0x25ea21)=>_0x27f600(_0x429f0d,_0x25ea21,_0x52fd73);let Xe=class{constructor(_0x41569c,_0x34fb00){const _0x431046=_0xa6a604;this[_0x431046(0x35a)]=_0x41569c,this[_0x431046(0x48c)]=_0x34fb00;}[_0xa6a604(0x255)](_0x19d86b){const _0x2b8dcb=_0xa6a604;var _0x105bd1;const _0x2fb556=this[_0x2b8dcb(0x35a)]['get'](_0x5c017d),_0x9bcf95=(_0x105bd1=_0x2fb556[_0x2b8dcb(0x549)]())!=null?_0x105bd1:[];if(_0x9bcf95[_0x2b8dcb(0x391)]===0x0)return;const _0x70017d=[{'id':_0x2b8dcb(0x23f),'params':{'unitId':_0x19d86b[_0x2b8dcb(0x1ec)],'actions':null,'textRanges':_0x9bcf95}}],_0x1bd57d=this[_0x2b8dcb(0x48c)][_0x2b8dcb(0x49b)](_0x19d86b,_0x70017d);if(!_0x5d8ed5(_0x1bd57d))throw _0x1bd57d[_0x2b8dcb(0x3f7)];const _0x248a68=_0x1bd57d[_0x2b8dcb(0x29d)][0x0][_0x2b8dcb(0x4d2)]['textRanges'];Array['isArray'](_0x248a68)&&_0x248a68[_0x2b8dcb(0x391)]&&_0x2fb556[_0x2b8dcb(0x453)](_0x248a68,!0x1);}};Xe=hr([hs(0x0,_0x160402(_0x283cc6)),hs(0x1,_0x5ea876)],Xe);const lr=new Set([_0x53345b['id']]);function ls(_0x4534cc,_0x5593c5,_0x34be74,_0x4964fb,_0x2fd2dd){const _0x547958=_0xa6a604;var _0x1e9f1a,_0x234a2c,_0x18fee9,_0x22a7cb;const _0x3f5822=[];for(const _0x5c908b of _0x4534cc)if(lr[_0x547958(0x1f9)](_0x5c908b['id'])){if(_0x3f5822['length']>0x0)break;_0x3f5822[_0x547958(0x539)](_0x5c908b);break;}else _0x3f5822[_0x547958(0x539)](_0x5c908b);const _0x138ffd=(_0x234a2c=(_0x1e9f1a=_0x2fd2dd[_0x547958(0x53a)]())==null?void 0x0:_0x1e9f1a['userID'])!=null?_0x234a2c:_0x547958(0x1ed),_0x4d0c3b=(_0x22a7cb=(_0x18fee9=_0x2fd2dd[_0x547958(0x53a)]())==null?void 0x0:_0x18fee9[_0x547958(0x50c)])!=null?_0x22a7cb:_0x547958(0x1ed);return{'changeset':{'unitID':_0x5593c5,'type':_0x894d81(_0x34be74[_0x547958(0x41e)](_0x5593c5)),'baseRev':_0x4964fb['getCurrentRevOfUnit'](_0x5593c5),'revision':0x0,'userID':_0x138ffd,'memberID':_0x4d0c3b,'mutations':_0x3f5822},'pendingMutations':_0x4534cc['slice'](_0x3f5822[_0x547958(0x391)])};}function _r(_0x3de64c,_0x1c38f2,_0x38e55f,_0x4dbe2c,_0x591aa0){const _0x4cfb70=_0xa6a604;var _0x488adf,_0x3602df,_0x4e4b95,_0x437d1a;const _0x2503be=[_0x3de64c[_0x4cfb70(0x3ae)]((_0x371702,_0x159b89)=>{const _0x142904=_0x4cfb70;var _0x2937d1;const {id:_0x265b34}=_0x371702,{id:_0x15f20c,type:_0x3c0573}=_0x159b89,_0x186e4b=(_0x2937d1=_0x371702['params'])!=null?_0x2937d1:{'actions':null},_0x5a2236=_0x159b89['params'];if(_0x265b34&&_0x265b34!==_0x15f20c)throw new Error(_0x142904(0x46a)+_0x265b34+_0x142904(0x1f0)+_0x15f20c+'.');return{..._0x371702,'id':_0x15f20c,'type':_0x3c0573,'params':{'unitId':_0x5a2236['unitId'],'textRanges':_0x5a2236['textRanges'],'actions':_0x285898[_0x142904(0x48a)](_0x186e4b[_0x142904(0x2e9)],_0x5a2236['actions'])}};},{})],_0x298fb4=(_0x3602df=(_0x488adf=_0x591aa0[_0x4cfb70(0x53a)]())==null?void 0x0:_0x488adf[_0x4cfb70(0x454)])!=null?_0x3602df:'unknown',_0xbf2224=(_0x437d1a=(_0x4e4b95=_0x591aa0[_0x4cfb70(0x53a)]())==null?void 0x0:_0x4e4b95[_0x4cfb70(0x50c)])!=null?_0x437d1a:_0x4cfb70(0x1ed);return{'changeset':{'unitID':_0x1c38f2,'type':_0x894d81(_0x38e55f[_0x4cfb70(0x41e)](_0x1c38f2)),'baseRev':_0x4dbe2c[_0x4cfb70(0x4c7)](_0x1c38f2),'revision':0x0,'userID':_0x298fb4,'memberID':_0xbf2224,'mutations':_0x2503be},'pendingMutations':[]};}const ur={'id':_0x497cca['id'],'type':_0x58275d[_0xa6a604(0x372)],'params':{}};var dr=Object[_0xa6a604(0x222)],fr=Object[_0xa6a604(0x4ce)],le=(_0x3e7584,_0x179878,_0x449e3d,_0xcf4f8c)=>{const _0x4eaced=_0xa6a604;for(var _0x5eabbd=_0xcf4f8c>0x1?void 0x0:_0xcf4f8c?fr(_0x179878,_0x449e3d):_0x179878,_0xb075a8=_0x3e7584[_0x4eaced(0x391)]-0x1,_0x4113a4;_0xb075a8>=0x0;_0xb075a8--)(_0x4113a4=_0x3e7584[_0xb075a8])&&(_0x5eabbd=(_0xcf4f8c?_0x4113a4(_0x179878,_0x449e3d,_0x5eabbd):_0x4113a4(_0x5eabbd))||_0x5eabbd);return _0xcf4f8c&&_0x5eabbd&&dr(_0x179878,_0x449e3d,_0x5eabbd),_0x5eabbd;},m=(_0x28e5c9,_0xd0c4f1)=>(_0x353fd2,_0x567996)=>_0xd0c4f1(_0x353fd2,_0x567996,_0x28e5c9),w=(_0x24c25b=>(_0x24c25b[_0xa6a604(0x41b)]='not_collab',_0x24c25b[_0xa6a604(0x2b2)]='synced',_0x24c25b[_0xa6a604(0x4a5)]='pending',_0x24c25b[_0xa6a604(0x3a3)]='awaiting',_0x24c25b[_0xa6a604(0x364)]=_0xa6a604(0x533),_0x24c25b['FETCH_MISS']=_0xa6a604(0x274),_0x24c25b['CONFLICT']=_0xa6a604(0x4bf),_0x24c25b['OFFLINE']=_0xa6a604(0x486),_0x24c25b))(w||{});class _e{constructor(_0x196cfb,_0x366ed7,_0x4b49df,_0x468712,_0x388af6,_0x1c4ca9,_0x30e099,_0x275d33,_0x104472){const _0x139bee=_0xa6a604;l(this,_0x139bee(0x214),null),l(this,_0x139bee(0x2ee),[]),(this[_0x139bee(0x1ec)]=_0x196cfb,this[_0x139bee(0x536)]=_0x366ed7,this['_handler']=_0x388af6,this[_0x139bee(0x4d3)]=_0x1c4ca9,this['_undoRedoService']=_0x30e099,this['_revisionService']=_0x275d33,this[_0x139bee(0x302)]=_0x104472,this[_0x139bee(0x214)]=_0x4b49df,this['_pendingMutations']=_0x468712);}[_0xa6a604(0x327)](_0x5ca338){const _0x301341=_0xa6a604,_0x2f3f54=this['_revisionService'][_0x301341(0x4c7)](this['unitID']);return _0x5ca338[_0x301341(0x543)]>_0x2f3f54+0x1?(this['_handler'][_0x301341(0x32d)]({'from':_0x2f3f54,'to':_0x5ca338[_0x301341(0x543)]-0x1}),!0x0):!0x1;}[_0xa6a604(0x235)](_0x291d00){const _0x1ba1a6=_0xa6a604;this[_0x1ba1a6(0x457)][_0x1ba1a6(0x3e4)](this['unitID'],_0x291d00);}[_0xa6a604(0x3c9)](_0x4bdf13){const _0x41d9a2=_0xa6a604;var _0x512c6b,_0x6c2a3d;(_0x6c2a3d=(_0x512c6b=this['_handler'])[_0x41d9a2(0x3e1)])==null||_0x6c2a3d[_0x41d9a2(0x24f)](_0x512c6b,_0x4bdf13);}[_0xa6a604(0x2a6)](_0x188735){const _0x2edf7c=_0xa6a604;var _0x1c24b5,_0xbfd004;return(_0xbfd004=(_0x1c24b5=this[_0x2edf7c(0x507)])['onTransformIME'])==null?void 0x0:_0xbfd004[_0x2edf7c(0x24f)](_0x1c24b5,_0x188735);}[_0xa6a604(0x267)](_0x18e330){const _0x4fb95a=_0xa6a604;var _0x277aae,_0xb52667,_0x273799;return(_0x273799=(_0xb52667=(_0x277aae=this['_handler'])[_0x4fb95a(0x42d)])==null?void 0x0:_0xb52667['call'](_0x277aae,_0x18e330))!=null?_0x273799:_0x18e330;}[_0xa6a604(0x277)](_0x31aefb){const _0x217545=_0xa6a604;var _0x59bfff,_0xaac94f;if(this[_0x217545(0x536)]===H[_0x217545(0x1eb)]){const {unitID:_0x519edd,mutations:_0x3b6319,memberID:_0x518f3a}=_0x31aefb,_0x5cecae=_0x3b6319[0x0][_0x217545(0x4d2)][_0x217545(0x2b6)];Array['isArray'](_0x5cecae)&&_0x5cecae[_0x217545(0x391)]>0x0&&((_0xaac94f=(_0x59bfff=this[_0x217545(0x507)])['onSyncEditingCollabCursor'])==null||_0xaac94f[_0x217545(0x24f)](_0x59bfff,{'unitID':_0x519edd,'memberID':_0x518f3a,'textRanges':_0x5cecae}));}}[_0xa6a604(0x270)](){const _0x575493=_0xa6a604;this[_0x575493(0x302)][_0x575493(0x31d)](this[_0x575493(0x1ec)],this[_0x575493(0x536)],this[_0x575493(0x214)],this['_pendingMutations']);}[_0xa6a604(0x4eb)](){const _0x3ad884=_0xa6a604;return this[_0x3ad884(0x4dc)][_0x3ad884(0x4c7)](this[_0x3ad884(0x1ec)]);}[_0xa6a604(0x273)](){const _0x372d40=_0xa6a604;this[_0x372d40(0x4dc)][_0x372d40(0x4cc)](this[_0x372d40(0x1ec)]);}[_0xa6a604(0x282)](_0x5d922b){const _0x49acf2=_0xa6a604;var _0x24a997;const _0x42b6fe=this[_0x49acf2(0x267)](_0x5d922b),_0x7f7135=_0x500ae1(_0x42b6fe['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x7f7135[_0x49acf2(0x3eb)])throw _0x7f7135[_0x49acf2(0x3f7)]instanceof Error?_0x7f7135[_0x49acf2(0x3f7)]:new Error((_0x24a997=_0x7f7135[_0x49acf2(0x3f7)])!=null?_0x24a997:_0x49acf2(0x36e));this[_0x49acf2(0x2a6)](_0x42b6fe),this[_0x49acf2(0x235)](_0x5d922b),this[_0x49acf2(0x3c9)](_0x42b6fe),this[_0x49acf2(0x277)](_0x42b6fe),this[_0x49acf2(0x273)]();}}let Se=class extends _e{constructor(_0x196519,_0x4129d9,_0x2e4b29,_0x39c193,_0x20d1a5,_0x81c1db,_0x222fd0,_0x32977e,_0x5cb966,_0x3d1912){const _0x574a01=_0xa6a604;super(_0x196519,_0x4129d9,null,[],_0x2e4b29,_0x32977e,_0x222fd0,_0x39c193,_0x20d1a5),l(this,_0x574a01(0x33f),'synced'),(this[_0x574a01(0x35a)]=_0x81c1db,this[_0x574a01(0x493)]=_0x5cb966,this['_transformService']=_0x3d1912);}['appendMutation'](_0x1bde24){const _0x226ccf=_0xa6a604,_0xc765c9=this[_0x226ccf(0x35a)][_0x226ccf(0x307)](K,this[_0x226ccf(0x1ec)],this['type'],[_0x1bde24],this[_0x226ccf(0x507)]);return _0xc765c9[_0x226ccf(0x4e0)](),_0xc765c9['_updateLocalCache'](),_0xc765c9;}[_0xa6a604(0x54b)](_0x310689){const _0x3eaf93=_0xa6a604;if(this[_0x3eaf93(0x327)](_0x310689))return this[_0x3eaf93(0x35a)][_0x3eaf93(0x307)](k,this['unitID'],this['type'],null,[],null,[_0x310689],this[_0x3eaf93(0x507)]);try{const _0x7d7f81=this['_transformService'][_0x3eaf93(0x49b)](_0x310689,[ur]);if(_0x5d8ed5(_0x7d7f81)){const {c1Prime:_0x15686a}=_0x7d7f81;return this[_0x3eaf93(0x282)](_0x15686a),this;}throw _0x7d7f81[_0x3eaf93(0x3f7)];}catch(_0x43019a){return this[_0x3eaf93(0x493)][_0x3eaf93(0x3f7)](_0x43019a),this[_0x3eaf93(0x4d1)](!0x1);}}['_onConflict'](_0x59e48f){const _0x98dce2=_0xa6a604;return this['_injector'][_0x98dce2(0x307)](Q,this[_0x98dce2(0x1ec)],this['type'],null,[],this['_handler'],_0x59e48f);}[_0xa6a604(0x544)](){const _0x4f7754=_0xa6a604;throw new Error(_0x4f7754(0x357));}[_0xa6a604(0x3d3)](){const _0x423f80=_0xa6a604;throw new Error(_0x423f80(0x4f5));}[_0xa6a604(0x381)](){const _0x3ae582=_0xa6a604;return this[_0x3ae582(0x35a)][_0x3ae582(0x307)](ee,this[_0x3ae582(0x1ec)],this[_0x3ae582(0x536)],null,[],this[_0x3ae582(0x507)]);}['toggleOnline'](){return this;}[_0xa6a604(0x4e3)](){const _0x327d17=_0xa6a604;throw new Error(_0x327d17(0x51b));}[_0xa6a604(0x4e7)](){const _0x5f14af=_0xa6a604,_0xa56016=this['_revisionService']['getCurrentRevOfUnit'](this[_0x5f14af(0x1ec)]);return this[_0x5f14af(0x507)][_0x5f14af(0x32d)]({'from':_0xa56016,'to':0x0}),this[_0x5f14af(0x35a)][_0x5f14af(0x307)](k,this['unitID'],this[_0x5f14af(0x536)],null,[],null,[],this[_0x5f14af(0x507)]);}};Se=le([m(0x3,_0x160402(_0x842000)),m(0x4,_0x160402(D)),m(0x5,_0x160402(_0x283cc6)),m(0x6,_0xfe397),m(0x7,_0x5a0862),m(0x8,_0x4e432b),m(0x9,_0x5ea876)],Se);let K=class extends _e{constructor(_0x228c70,_0x2ceeb1,_0x4fa078,_0x22a55e,_0x2b386b,_0x4dc804,_0x5075e4,_0xada763,_0x108391,_0x25307d,_0x36d4b8,_0xdb9956,_0x5da37e,_0x18ec29){const _0x4a2fe2=_0xa6a604;super(_0x228c70,_0x2ceeb1,null,_0x4fa078,_0x22a55e,_0x25307d,_0x18ec29,_0x4dc804,_0x5075e4),l(this,_0x4a2fe2(0x33f),_0x4a2fe2(0x3bd)),l(this,'_scheduleTimestamp',null),l(this,'_sendingTimer',null),(this['_injector']=_0x2b386b,this[_0x4a2fe2(0x242)]=_0xada763,this['_logService']=_0x108391,this[_0x4a2fe2(0x325)]=_0x36d4b8,this[_0x4a2fe2(0x48c)]=_0xdb9956,this['_univerInstanceService']=_0x5da37e);}['appendMutation'](_0x11cc3e){const _0x5cbc88=_0xa6a604;return this['_pendingMutations'][_0x5cbc88(0x539)](_0x11cc3e),this[_0x5cbc88(0x270)](),this;}[_0xa6a604(0x54b)](_0x2211ac){const _0x586442=_0xa6a604;if(this[_0x586442(0x327)](_0x2211ac))return this[_0x586442(0x3d1)](),this[_0x586442(0x35a)][_0x586442(0x307)](k,this[_0x586442(0x1ec)],this[_0x586442(0x536)],null,this[_0x586442(0x2ee)],null,[_0x2211ac],this[_0x586442(0x507)]);try{const _0x1cb7bd=this[_0x586442(0x48c)][_0x586442(0x49b)](_0x2211ac,this['_pendingMutations']);if(_0x5d8ed5(_0x1cb7bd)){const {c1Prime:_0x198000,m2Prime:_0x1acb9b}=_0x1cb7bd;this[_0x586442(0x282)](_0x198000);const _0x3e5935=this[_0x586442(0x35a)][_0x586442(0x307)](K,this[_0x586442(0x1ec)],this[_0x586442(0x536)],_0x1acb9b,this[_0x586442(0x507)]);return this[_0x586442(0x3d1)](),_0x3e5935[_0x586442(0x4e0)](this['_scheduleTimestamp']?Math[_0x586442(0x4c5)](0x0,new Date()[_0x586442(0x3fb)]()-this['_scheduleTimestamp']):this[_0x586442(0x4bc)]()),_0x3e5935;}throw _0x1cb7bd[_0x586442(0x3f7)];}catch(_0x248b61){return this['_logService']['error'](_0x248b61),this[_0x586442(0x4d1)](!0x1);}}[_0xa6a604(0x544)](){const _0x46a0f5=_0xa6a604;throw new Error(_0x46a0f5(0x380));}['onRemoteRej'](){const _0x58ae5c=_0xa6a604;throw new Error(_0x58ae5c(0x2af));}[_0xa6a604(0x381)](){const _0x546a8=_0xa6a604;return this['_clearScheduledTask'](),this[_0x546a8(0x35a)]['createInstance'](ee,this[_0x546a8(0x1ec)],this[_0x546a8(0x536)],null,this[_0x546a8(0x2ee)],this[_0x546a8(0x507)]);}[_0xa6a604(0x46c)](){return this;}['_schedule'](_0x56d499){const _0x504d1b=_0xa6a604,_0x4e7d21=_0x56d499!=null?_0x56d499:this[_0x504d1b(0x4bc)]();this['_scheduleTimestamp']=new Date()[_0x504d1b(0x3fb)](),this[_0x504d1b(0x45d)]=window['setTimeout'](()=>{const _0x259b4b=_0x504d1b;this['_clearScheduledTask']();let _0x30427f=null;switch(this[_0x259b4b(0x536)]){case H[_0x259b4b(0x48b)]:{_0x30427f=ls(this['_pendingMutations'],this[_0x259b4b(0x1ec)],this['_univerInstanceService'],this[_0x259b4b(0x4dc)],this[_0x259b4b(0x242)]);break;}case H['UNIVER_DOC']:{this[_0x259b4b(0x2ee)]['every'](_0x211d03=>_0x211d03['id']===_0x1aac28['id'])?_0x30427f=_r(this['_pendingMutations'],this[_0x259b4b(0x1ec)],this[_0x259b4b(0x1fd)],this[_0x259b4b(0x4dc)],this[_0x259b4b(0x242)]):_0x30427f=ls(this[_0x259b4b(0x2ee)],this['unitID'],this[_0x259b4b(0x1fd)],this[_0x259b4b(0x4dc)],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x259b4b(0x50f));}const {changeset:_0x21a711,pendingMutations:_0x418416}=_0x30427f;this[_0x259b4b(0x507)][_0x259b4b(0x2b1)](_0x21a711);const _0x218be9=_0x418416[_0x259b4b(0x391)]?this['_injector'][_0x259b4b(0x307)](X,this['unitID'],this[_0x259b4b(0x536)],_0x21a711,_0x418416,this[_0x259b4b(0x507)]):this[_0x259b4b(0x35a)][_0x259b4b(0x307)](Z,this['unitID'],this[_0x259b4b(0x536)],_0x21a711,this[_0x259b4b(0x507)]);_0x218be9[_0x259b4b(0x270)](),this[_0x259b4b(0x507)][_0x259b4b(0x3c8)](this,_0x218be9);},_0x4e7d21);}[_0xa6a604(0x4bc)](){const _0x343533=_0xa6a604;var _0xf53ef2;const _0x211e2e=this[_0x343533(0x325)][_0x343533(0x4e5)](L);return(_0xf53ef2=_0x211e2e==null?void 0x0:_0x211e2e[_0x343533(0x30f)])!=null?_0xf53ef2:gn;}[_0xa6a604(0x4e3)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xa6a604(0x3d1)](){const _0x35e184=_0xa6a604;this[_0x35e184(0x45d)]!=null&&(clearTimeout(this[_0x35e184(0x45d)]),this[_0x35e184(0x45d)]=null);}[_0xa6a604(0x4d1)](_0x2ebdbc){const _0x2e8ae9=_0xa6a604;return this['_clearScheduledTask'](),this[_0x2e8ae9(0x35a)][_0x2e8ae9(0x307)](Q,this['unitID'],this[_0x2e8ae9(0x536)],null,this[_0x2e8ae9(0x2ee)],this['_handler'],_0x2ebdbc);}};K=le([m(0x4,_0x160402(_0x283cc6)),m(0x5,_0x160402(_0x842000)),m(0x6,_0x160402(D)),m(0x7,_0x160402(ae)),m(0x8,_0x4e432b),m(0x9,_0x5a0862),m(0xa,_0x123c7a),m(0xb,_0x5ea876),m(0xc,_0x33adea),m(0xd,_0xfe397)],K);let Z=class extends _e{constructor(_0x4f7aac,_0x2a73f9,_0x35571f,_0x46c39b,_0x1ac8f6,_0x16a71b,_0x509b23,_0x401945,_0x1d5e8b,_0x1537aa,_0x124337){const _0x3e384a=_0xa6a604;super(_0x4f7aac,_0x2a73f9,_0x35571f,[],_0x46c39b,_0x401945,_0x124337,_0x16a71b,_0x509b23),l(this,_0x3e384a(0x33f),_0x3e384a(0x2e7)),(this[_0x3e384a(0x35a)]=_0x1ac8f6,this['_logService']=_0x1d5e8b,this[_0x3e384a(0x48c)]=_0x1537aa);}[_0xa6a604(0x318)](_0x3a07f9){const _0x53737a=_0xa6a604,_0x135a71=this[_0x53737a(0x35a)]['createInstance'](X,this[_0x53737a(0x1ec)],this[_0x53737a(0x536)],this[_0x53737a(0x214)],[_0x3a07f9],this[_0x53737a(0x507)]);return _0x135a71[_0x53737a(0x270)](),_0x135a71;}['onRemoteChangeset'](_0x54c4bf){const _0x37b001=_0xa6a604;if(this['_checkMissing'](_0x54c4bf))return this[_0x37b001(0x35a)][_0x37b001(0x307)](k,this[_0x37b001(0x1ec)],this['type'],this[_0x37b001(0x214)],[],null,[_0x54c4bf],this[_0x37b001(0x507)]);try{const _0x19f85a=this[_0x37b001(0x48c)]['transformChangesets']([_0x54c4bf],[this[_0x37b001(0x214)]],!0x1);if(_0x42a926(_0x19f85a)){const {c1Prime:_0x17d247,c2Prime:_0x364dc1}=_0x19f85a;this['_executeRemoteChangeset'](_0x17d247[0x0]),_0x364dc1[0x0][_0x37b001(0x3a5)]=this[_0x37b001(0x4eb)]();const _0x3a5043=this[_0x37b001(0x35a)][_0x37b001(0x307)](Z,this[_0x37b001(0x1ec)],this[_0x37b001(0x536)],_0x364dc1[0x0],this[_0x37b001(0x507)]);return _0x3a5043['_updateLocalCache'](),_0x3a5043;}return this[_0x37b001(0x4d1)](!0x1);}catch(_0x48e437){return this[_0x37b001(0x493)][_0x37b001(0x3f7)](_0x48e437),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x4bb870){const _0x14cf02=_0xa6a604,_0x57561a=this[_0x14cf02(0x4dc)][_0x14cf02(0x4c7)](this[_0x14cf02(0x1ec)]);if(_0x4bb870[_0x14cf02(0x543)]<_0x57561a-0x1)return this;if(this['_checkMissing'](_0x4bb870))return this['_injector'][_0x14cf02(0x307)](k,this[_0x14cf02(0x1ec)],this[_0x14cf02(0x536)],null,[],this[_0x14cf02(0x214)],[],this[_0x14cf02(0x507)]);this[_0x14cf02(0x273)]();const _0xfccbad=this[_0x14cf02(0x35a)][_0x14cf02(0x307)](Se,this[_0x14cf02(0x1ec)],this[_0x14cf02(0x536)],this[_0x14cf02(0x507)]);return _0xfccbad[_0x14cf02(0x270)](),_0xfccbad;}[_0xa6a604(0x3d3)](_0xbcea47){const _0xdb948e=_0xa6a604;return this[_0xdb948e(0x4d1)](!!(_0xbcea47!=null&&_0xbcea47['isPermissionRej']));}[_0xa6a604(0x381)](){const _0x78ad1a=_0xa6a604;return this[_0x78ad1a(0x35a)][_0x78ad1a(0x307)](ee,this['unitID'],this[_0x78ad1a(0x536)],this[_0x78ad1a(0x214)],[],this['_handler']);}[_0xa6a604(0x46c)](){return this;}[_0xa6a604(0x4e3)](){const _0x14df0c=_0xa6a604;this[_0x14df0c(0x507)][_0x14df0c(0x2b1)](this[_0x14df0c(0x214)]);}[_0xa6a604(0x4d1)](_0x3d2293){const _0xe065b2=_0xa6a604;return this[_0xe065b2(0x35a)][_0xe065b2(0x307)](Q,this[_0xe065b2(0x1ec)],this[_0xe065b2(0x536)],this['_awaitingChangeset'],[],this[_0xe065b2(0x507)],_0x3d2293);}};Z=le([m(0x4,_0x160402(_0x283cc6)),m(0x5,_0x160402(_0x842000)),m(0x6,_0x160402(D)),m(0x7,_0x5a0862),m(0x8,_0x4e432b),m(0x9,_0x5ea876),m(0xa,_0xfe397)],Z);let X=class extends _e{constructor(_0x2b77e8,_0x49037a,_0x18c231,_0x4d678f,_0xae2dfd,_0x5d16f5,_0xaa7ad2,_0x2bce29,_0x268092,_0x29d077,_0x44ab11,_0x5c74f8){const _0x19b593=_0xa6a604;super(_0x2b77e8,_0x49037a,_0x18c231,_0x4d678f,_0xae2dfd,_0x268092,_0x5c74f8,_0xaa7ad2,_0x2bce29),l(this,'status','awaiting_with_pending'),(this['_injector']=_0x5d16f5,this['_logService']=_0x29d077,this[_0x19b593(0x48c)]=_0x44ab11);}['appendMutation'](_0x1d1d19){return this['_pendingMutations']['push'](_0x1d1d19),this;}[_0xa6a604(0x54b)](_0x1ed5a3){const _0x49d2d3=_0xa6a604;if(this[_0x49d2d3(0x327)](_0x1ed5a3))return this[_0x49d2d3(0x35a)][_0x49d2d3(0x307)](k,this['unitID'],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x1ed5a3],this[_0x49d2d3(0x507)]);try{const _0x4f7ffc=this[_0x49d2d3(0x48c)][_0x49d2d3(0x351)]([_0x1ed5a3],[this[_0x49d2d3(0x214)]],!0x1);if(_0x42a926(_0x4f7ffc)){const {c1Prime:_0x4dac2b,c2Prime:_0x36e7bf}=_0x4f7ffc,_0x301f47=this[_0x49d2d3(0x48c)][_0x49d2d3(0x49b)](_0x4dac2b[0x0],this[_0x49d2d3(0x2ee)]);if(_0x5d8ed5(_0x301f47)){const {c1Prime:_0x3415d9,m2Prime:_0x1c9443}=_0x301f47;return this['_executeRemoteChangeset'](_0x3415d9),_0x36e7bf[0x0][_0x49d2d3(0x3a5)]=this['_getCurrentRevision'](),this[_0x49d2d3(0x35a)][_0x49d2d3(0x307)](X,this[_0x49d2d3(0x1ec)],this['type'],_0x36e7bf[0x0],_0x1c9443,this['_handler']);}throw _0x301f47[_0x49d2d3(0x3f7)];}throw _0x4f7ffc['error'];}catch(_0xf98b09){return this[_0x49d2d3(0x493)][_0x49d2d3(0x3f7)](_0xf98b09),this[_0x49d2d3(0x4d1)](!0x1);}}[_0xa6a604(0x544)](_0x15d843){const _0x18c479=_0xa6a604;if(this[_0x18c479(0x327)](_0x15d843))return this[_0x18c479(0x35a)][_0x18c479(0x307)](k,this[_0x18c479(0x1ec)],this[_0x18c479(0x536)],null,this['_pendingMutations'],this[_0x18c479(0x214)],[],this[_0x18c479(0x507)]);this[_0x18c479(0x273)]();const _0x57afe2=this[_0x18c479(0x35a)][_0x18c479(0x307)](K,this[_0x18c479(0x1ec)],this[_0x18c479(0x536)],this[_0x18c479(0x2ee)],this[_0x18c479(0x507)]);return _0x57afe2[_0x18c479(0x4e0)](),_0x57afe2[_0x18c479(0x270)](),_0x57afe2;}[_0xa6a604(0x3d3)](_0xa99602){return this['_onConflict'](!!(_0xa99602!=null&&_0xa99602['isPermissionRej']));}[_0xa6a604(0x381)](){const _0x47b35e=_0xa6a604;return this['_injector'][_0x47b35e(0x307)](ee,this[_0x47b35e(0x1ec)],this[_0x47b35e(0x536)],this['_awaitingChangeset'],this[_0x47b35e(0x2ee)],this['_handler']);}[_0xa6a604(0x46c)](){return this;}[_0xa6a604(0x4e3)](){const _0xccdb05=_0xa6a604;this[_0xccdb05(0x507)][_0xccdb05(0x2b1)](this[_0xccdb05(0x214)]);}[_0xa6a604(0x4d1)](_0x59e30f){const _0x54ce07=_0xa6a604;return this[_0x54ce07(0x35a)][_0x54ce07(0x307)](Q,this['unitID'],this[_0x54ce07(0x536)],null,this['_pendingMutations'],this['_handler'],_0x59e30f);}};X=le([m(0x5,_0x160402(_0x283cc6)),m(0x6,_0x160402(_0x842000)),m(0x7,_0x160402(D)),m(0x8,_0x5a0862),m(0x9,_0x4e432b),m(0xa,_0x5ea876),m(0xb,_0xfe397)],X);let Q=class extends _e{constructor(_0x4d0db5,_0x552f43,_0x1d7c33,_0x3aad42,_0x3231b0,_0x20c338=!0x1,_0x57c3b3,_0x4de499,_0x2bca99,_0x4ddcfd,_0x810cd7,_0x33b308,_0x43dc3d){const _0x482701=_0xa6a604;super(_0x4d0db5,_0x552f43,_0x1d7c33,_0x3aad42,_0x3231b0,_0x4de499,_0x2bca99,_0x810cd7,_0x4ddcfd),l(this,_0x482701(0x33f),_0x482701(0x4bf)),(this['_isPermissionRej']=_0x20c338,this[_0x482701(0x2b0)]=_0x57c3b3,this[_0x482701(0x247)]=_0x33b308,this[_0x482701(0x36a)]=_0x43dc3d,this[_0x482701(0x4d9)](),this[_0x482701(0x322)](),this[_0x482701(0x38c)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0xa6a604(0x544)](){return this;}[_0xa6a604(0x3d3)](){return this;}[_0xa6a604(0x381)](){return this;}[_0xa6a604(0x46c)](){return this;}[_0xa6a604(0x4e3)](){const _0x293495=_0xa6a604;throw new Error(_0x293495(0x283));}[_0xa6a604(0x322)](){const _0x49eb8b=_0xa6a604;this[_0x49eb8b(0x302)]['updateOfflineData'](this[_0x49eb8b(0x1ec)],this[_0x49eb8b(0x536)],null,[]);}[_0xa6a604(0x4d9)](){const _0x2583d0=_0xa6a604;this[_0x2583d0(0x516)]?this['_notificationService']['show']({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':'error','duration':0x0}):this[_0x2583d0(0x36a)][_0x2583d0(0x4d8)]({'title':this[_0x2583d0(0x247)]['t'](_0x2583d0(0x475)),'content':this['_localeService']['t'](_0x2583d0(0x3ac)),'type':_0x2583d0(0x3f7),'duration':0x0});}['_disableEditing'](){const _0x4fb3e9=_0xa6a604;this['_permissionService'][_0x4fb3e9(0x456)](new _0x1c28a6(this['unitID'])['id'],!0x1);}};Q=le([m(0x6,_0x160402(_0x375c1f)),m(0x7,_0x5a0862),m(0x8,_0xfe397),m(0x9,_0x160402(D)),m(0xa,_0x160402(_0x842000)),m(0xb,_0x160402(_0x2f3b7b)),m(0xc,_0x53e404)],Q);let ee=class extends _e{constructor(_0x5b7324,_0x57526a,_0x538910,_0x5b4a7e,_0x4af542,_0x340c40,_0x182e67,_0x397d56,_0x4a9881,_0x296939){const _0x32a416=_0xa6a604;super(_0x5b7324,_0x57526a,_0x538910,_0x5b4a7e,_0x4af542,_0x4a9881,_0x296939,_0x182e67,_0x397d56),l(this,_0x32a416(0x33f),_0x32a416(0x486)),this[_0x32a416(0x35a)]=_0x340c40;}['appendMutation'](_0x1049c7){const _0x12789a=_0xa6a604;return this[_0x12789a(0x2ee)][_0x12789a(0x539)](_0x1049c7),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x351cad){const _0x4131cd=_0xa6a604;throw new Error(_0x4131cd(0x303));}['onRemoteAck'](){const _0x2c5e53=_0xa6a604;throw new Error(_0x2c5e53(0x470));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0xa6a604(0x381)](){return this;}[_0xa6a604(0x46c)](){const _0x3ad46c=_0xa6a604,{_injector:_0x3361e3,_pendingMutations:_0x2f76cb,_awaitingChangeset:_0x15ce23,unitID:_0x1f060c,_handler:_0x3e348e,type:_0x2390ec}=this,_0x46fde8=Hs(_0x3361e3,_0x1f060c,_0x2390ec,_0x15ce23,_0x2f76cb,_0x3e348e);return _0x46fde8 instanceof K?_0x46fde8[_0x3ad46c(0x4e0)]():(_0x46fde8 instanceof X||_0x46fde8 instanceof Z)&&_0x46fde8[_0x3ad46c(0x4e3)](),_0x46fde8;}['resend'](){const _0x4a2e01=_0xa6a604;throw new Error(_0x4a2e01(0x2cc));}};ee=le([m(0x5,_0x160402(_0x283cc6)),m(0x6,_0x160402(_0x842000)),m(0x7,_0x160402(D)),m(0x8,_0x5a0862),m(0x9,_0xfe397)],ee);let k=class extends _e{constructor(_0x29e218,_0x12e127,_0x4ec734,_0x5d3cdb,_0x4598d0,_0x4501b1,_0x59d889,_0x2855c9,_0x53d9ee,_0x3964fb,_0x3c3f9e,_0x39b077,_0x515a8a,_0x259064){const _0x2e1743=_0xa6a604;super(_0x29e218,_0x12e127,_0x4ec734,_0x5d3cdb,_0x59d889,_0x39b077,_0x515a8a,_0x53d9ee,_0x3964fb),l(this,_0x2e1743(0x33f),_0x2e1743(0x274)),(this[_0x2e1743(0x407)]=_0x4598d0,this['_queuedRemoteChangesets']=_0x4501b1,this[_0x2e1743(0x35a)]=_0x2855c9,this[_0x2e1743(0x493)]=_0x3c3f9e,this[_0x2e1743(0x48c)]=_0x259064);}[_0xa6a604(0x1e6)](_0xd2f6a5){const _0x5d4adc=_0xa6a604;try{const _0x893595=[..._0xd2f6a5,...this['_queuedRemoteChangesets']],_0x3b2e24=[this['_awaitingChangeset']||this[_0x5d4adc(0x407)]][_0x5d4adc(0x346)](_0x4c1b9e=>!!_0x4c1b9e);let _0x504fce,_0x3bf468;if(_0x3b2e24[_0x5d4adc(0x391)]){const _0x575376=this[_0x5d4adc(0x48c)][_0x5d4adc(0x351)](_0x893595,_0x3b2e24,!0x1);if(!_0x42a926(_0x575376))throw _0x575376[_0x5d4adc(0x3f7)];_0x504fce=_0x575376[_0x5d4adc(0x24e)],_0x3bf468=_0x575376[_0x5d4adc(0x2b3)];}else _0x504fce=_0x893595,_0x3bf468=[];let _0x2c22dd=this[_0x5d4adc(0x2ee)];_0x504fce[_0x5d4adc(0x213)](_0x1aea12=>{const _0x45ab27=_0x5d4adc;let _0x248532;if(_0x2c22dd['length']){const _0x55a22a=this[_0x45ab27(0x48c)]['transformMutationsWithChangeset'](_0x1aea12,_0x2c22dd);if(!_0x5d8ed5(_0x55a22a))throw _0x55a22a[_0x45ab27(0x3f7)];_0x248532=_0x55a22a[_0x45ab27(0x24e)],_0x2c22dd=_0x55a22a[_0x45ab27(0x29d)];}else _0x248532=_0x1aea12;this['_executeRemoteChangeset'](_0x248532);}),this[_0x5d4adc(0x407)]&&this[_0x5d4adc(0x273)](),this[_0x5d4adc(0x214)]&&_0x3bf468['length']&&(_0x3bf468[0x0][_0x5d4adc(0x3a5)]=this['_getCurrentRevision']());let _0x363dbe;if(this[_0x5d4adc(0x214)]&&_0x2c22dd['length']!==0x0)_0x363dbe=this[_0x5d4adc(0x35a)][_0x5d4adc(0x307)](X,this[_0x5d4adc(0x1ec)],this[_0x5d4adc(0x536)],_0x3bf468[0x0],_0x2c22dd,this[_0x5d4adc(0x507)]);else{if(this[_0x5d4adc(0x214)]&&_0x2c22dd[_0x5d4adc(0x391)]===0x0)_0x3bf468[0x0]['baseRev']=this[_0x5d4adc(0x4eb)](),_0x363dbe=this[_0x5d4adc(0x35a)][_0x5d4adc(0x307)](Z,this[_0x5d4adc(0x1ec)],this['type'],_0x3bf468[0x0],this[_0x5d4adc(0x507)]);else{if(_0x2c22dd['length']!==0x0){const _0x8d8fd4=this['_injector']['createInstance'](K,this[_0x5d4adc(0x1ec)],this[_0x5d4adc(0x536)],_0x2c22dd,this[_0x5d4adc(0x507)]);_0x8d8fd4['_schedule'](),_0x363dbe=_0x8d8fd4;}else _0x363dbe=this[_0x5d4adc(0x35a)][_0x5d4adc(0x307)](Se,this[_0x5d4adc(0x1ec)],this[_0x5d4adc(0x536)],this[_0x5d4adc(0x507)]);}}return _0x363dbe[_0x5d4adc(0x270)](),_0x363dbe;}catch(_0x32315a){return this[_0x5d4adc(0x493)][_0x5d4adc(0x3f7)]('[FetchMissState]',_0x5d4adc(0x3dd),_0x32315a),this[_0x5d4adc(0x35a)][_0x5d4adc(0x307)](Q,this[_0x5d4adc(0x1ec)],this[_0x5d4adc(0x536)],this['_awaitingChangeset'],this[_0x5d4adc(0x2ee)],this['_handler'],!0x1);}}[_0xa6a604(0x4e3)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xa6a604(0x318)](_0x5baf4a){const _0x54b5db=_0xa6a604;return this[_0x54b5db(0x2ee)][_0x54b5db(0x539)](_0x5baf4a),this;}[_0xa6a604(0x54b)](_0x26e2e1){return this['_queuedRemoteChangesets']['push'](_0x26e2e1),this;}[_0xa6a604(0x544)](_0x7f1248){const _0x26aac3=_0xa6a604;if(this[_0x26aac3(0x214)])return this[_0x26aac3(0x407)]=this[_0x26aac3(0x214)],this[_0x26aac3(0x214)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x4af38f){const _0x543780=_0xa6a604;return this[_0x543780(0x4d1)](!!(_0x4af38f!=null&&_0x4af38f['isPermissionRej']));}[_0xa6a604(0x381)](){const _0x44fa1c=_0xa6a604;return this[_0x44fa1c(0x35a)][_0x44fa1c(0x307)](ee,this[_0x44fa1c(0x1ec)],this[_0x44fa1c(0x536)],this[_0x44fa1c(0x214)],this['_pendingMutations'],this[_0x44fa1c(0x507)]);}[_0xa6a604(0x46c)](){return this;}[_0xa6a604(0x4d1)](_0x150e55){const _0x1159b2=_0xa6a604;return this[_0x1159b2(0x35a)][_0x1159b2(0x307)](Q,this[_0x1159b2(0x1ec)],this['type'],this[_0x1159b2(0x214)],this[_0x1159b2(0x2ee)],this[_0x1159b2(0x507)],_0x150e55);}};k=le([m(0x7,_0x160402(_0x283cc6)),m(0x8,_0x160402(_0x842000)),m(0x9,_0x160402(D)),m(0xa,_0x4e432b),m(0xb,_0x5a0862),m(0xc,_0xfe397),m(0xd,_0x5ea876)],k);function Hs(_0x5dae2e,_0x33ea6a,_0x511879,_0x316c33,_0x1c5232,_0x26d5b5){const _0x5eee3a=_0xa6a604;return _0x316c33&&_0x1c5232[_0x5eee3a(0x391)]?_0x5dae2e[_0x5eee3a(0x307)](X,_0x33ea6a,_0x511879,_0x316c33,_0x1c5232,_0x26d5b5):_0x316c33?_0x5dae2e[_0x5eee3a(0x307)](Z,_0x33ea6a,_0x511879,_0x316c33,_0x26d5b5):_0x1c5232[_0x5eee3a(0x391)]?_0x5dae2e[_0x5eee3a(0x307)](K,_0x33ea6a,_0x511879,_0x1c5232,_0x26d5b5):_0x5dae2e['createInstance'](Se,_0x33ea6a,_0x511879,_0x26d5b5);}var mr=Object[_0xa6a604(0x222)],gr=Object['getOwnPropertyDescriptor'],Vt=(_0x52c7f0,_0x126f36,_0x51b6c8,_0x590d21)=>{for(var _0x2bc59e=_0x590d21>0x1?void 0x0:_0x590d21?gr(_0x126f36,_0x51b6c8):_0x126f36,_0x94d18b=_0x52c7f0['length']-0x1,_0xe4623;_0x94d18b>=0x0;_0x94d18b--)(_0xe4623=_0x52c7f0[_0x94d18b])&&(_0x2bc59e=(_0x590d21?_0xe4623(_0x126f36,_0x51b6c8,_0x2bc59e):_0xe4623(_0x2bc59e))||_0x2bc59e);return _0x590d21&&_0x2bc59e&&mr(_0x126f36,_0x51b6c8,_0x2bc59e),_0x2bc59e;},p=(_0x496ea0,_0x368090)=>(_0x4de486,_0x2ef9ed)=>_0x368090(_0x4de486,_0x2ef9ed,_0x496ea0);let Je=class extends _0x48a1ad{constructor(_0x15bf92,_0x2320b8,_0x4e52ca,_0x102d83,_0xb7c59f,_0x4f8b56,_0xebf470,_0x1704e0,_0x2fcd2b,_0x204f2a,_0x209e9b,_0x112872,_0x5b7007){const _0xd1fe4d=_0xa6a604;super(),l(this,_0xd1fe4d(0x41d),new _0x3d8ff6(null)),l(this,_0xd1fe4d(0x410),this[_0xd1fe4d(0x41d)][_0xd1fe4d(0x294)]()),l(this,_0xd1fe4d(0x201)),l(this,_0xd1fe4d(0x27d),!0x1),l(this,_0xd1fe4d(0x23c),this[_0xd1fe4d(0x410)][_0xd1fe4d(0x3b6)](_0x5c23c9(_0x543768=>_0x543768?_0x543768['status']:w['OFFLINE']),_0x1acd58(0x1))),l(this,_0xd1fe4d(0x256),!0x1),l(this,_0xd1fe4d(0x48e),[]),(this[_0xd1fe4d(0x1ec)]=_0x15bf92,this[_0xd1fe4d(0x260)]=_0x2320b8,this[_0xd1fe4d(0x239)]=_0x4e52ca,this['_injector']=_0x102d83,this['_localCacheService']=_0xb7c59f,this[_0xd1fe4d(0x3af)]=_0x4f8b56,this[_0xd1fe4d(0x247)]=_0xebf470,this[_0xd1fe4d(0x4dc)]=_0x1704e0,this['_logService']=_0x2fcd2b,this['_commandService']=_0x204f2a,this[_0xd1fe4d(0x44c)]=_0x209e9b,this[_0xd1fe4d(0x2b0)]=_0x112872,this[_0xd1fe4d(0x20e)]=_0x5b7007);}get[_0xa6a604(0x349)](){const _0x4ff91d=_0xa6a604;return this[_0x4ff91d(0x201)];}async[_0xa6a604(0x4c6)](){const _0x1a7829=_0xa6a604;if(this[_0x1a7829(0x349)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x1a7829(0x21e)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x9a96d1(()=>{const _0xd3ca85=_0x40a3;this[_0xd3ca85(0x27d)]=!0x1,this[_0xd3ca85(0x47a)]();});}[_0xa6a604(0x2c0)](_0x1a3266){const _0x5aa84f=_0xa6a604;this['_state']=_0x1a3266,this[_0x5aa84f(0x41d)][_0x5aa84f(0x480)](_0x1a3266);}async['_init'](){const _0x47be5=_0xa6a604;var _0x1bf7be;this['_updateState'](await this[_0x47be5(0x479)]()),this[_0x47be5(0x20e)]&&((_0x1bf7be=this['_singleActiveUnitService'])==null||_0x1bf7be[_0x47be5(0x390)](this[_0x47be5(0x1ec)]),this[_0x47be5(0x4f3)](this[_0x47be5(0x20e)]['getUnitStatus$'](this[_0x47be5(0x1ec)])['subscribe'](_0x46f3ae=>{const _0x586f0a=_0x47be5;this[_0x586f0a(0x493)][_0x586f0a(0x408)](_0x586f0a(0x40d),'editing\x20status\x20changed\x20to',_0x46f3ae),_0x46f3ae===js[_0x586f0a(0x54e)]?(this[_0x586f0a(0x44c)]['show']({'content':this[_0x586f0a(0x247)]['t'](_0x586f0a(0x2f7)),'type':_0x1beabd[_0x586f0a(0x299)]}),this[_0x586f0a(0x2b0)][_0x586f0a(0x456)](new _0x1c28a6(this[_0x586f0a(0x1ec)])['id'],!0x1)):this[_0x586f0a(0x2b0)]['updatePermissionPoint'](new _0x1c28a6(this[_0x586f0a(0x1ec)])['id'],!0x0);})));let _0x2e9305=!0x1;return this[_0x47be5(0x4f3)](this['session']['sessionStatus$'][_0x47be5(0x426)](_0x3b3cd8=>{const _0x16f8d6=_0x47be5;_0x3b3cd8===G[_0x16f8d6(0x3a2)]?this['_toggleOnline'](_0x2e9305):_0x3b3cd8===G[_0x16f8d6(0x210)]&&(_0x2e9305=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x47be5(0x260)][_0x47be5(0x2bc)][_0x47be5(0x426)](_0x338b60=>{const _0x69d6e0=_0x47be5;try{switch(_0x338b60['eventID']){case _0x17f69c[_0x69d6e0(0x427)]:{this[_0x69d6e0(0x3bc)](_0x44554a(_0x338b60[_0x69d6e0(0x525)]));break;}case _0x17f69c[_0x69d6e0(0x4a4)]:{this[_0x69d6e0(0x1f4)](_0x338b60['data']);break;}case _0x17f69c[_0x69d6e0(0x2d4)]:{this[_0x69d6e0(0x4bb)]();break;}case _0x17f69c[_0x69d6e0(0x49f)]:{this[_0x69d6e0(0x396)](_0x338b60['data'][_0x69d6e0(0x51e)][_0x69d6e0(0x422)](_0x3f5d86=>_0x44554a(_0x3f5d86)));break;}case _0x17f69c[_0x69d6e0(0x2f0)]:this[_0x69d6e0(0x4bb)]({'isPermissionRej':!0x0});}}catch(_0x3b1839){throw console[_0x69d6e0(0x3f7)](_0x69d6e0(0x3a7),_0x3b1839),_0x3b1839;}})),this[_0x47be5(0x201)];}[_0xa6a604(0x1f8)](){const _0x4d9af0=_0xa6a604;this[_0x4d9af0(0x256)]=!0x1;}[_0xa6a604(0x348)](){const _0x50c92f=_0xa6a604;if(this[_0x50c92f(0x256)])throw new Error(_0x50c92f(0x4a2));this[_0x50c92f(0x256)]=!0x0;}[_0xa6a604(0x3c7)](_0x1eba9f){const _0x63b216=_0xa6a604;this[_0x63b216(0x348)](),this[_0x63b216(0x2c0)](this[_0x63b216(0x201)][_0x63b216(0x318)](_0x1eba9f)),this[_0x63b216(0x1f8)]();}[_0xa6a604(0x3bc)](_0x682c13){const _0x17becb=_0xa6a604;if(!(_0x682c13[_0x17becb(0x543)]<=this[_0x17becb(0x4dc)][_0x17becb(0x4c7)](this[_0x17becb(0x1ec)]))){if(this[_0x17becb(0x27d)]){this[_0x17becb(0x48e)]['push'](_0x682c13);return;}this[_0x17becb(0x3d7)](_0x682c13);}}['_exhaustRemoteChangesetQueue'](){const _0x44e414=_0xa6a604;this['_remoteChangesetQueue'][_0x44e414(0x213)](_0x81b2dc=>this[_0x44e414(0x3d7)](_0x81b2dc)),this[_0x44e414(0x48e)]=[];}['_applyRemoteChangeset'](_0xc9194){const _0x5bef2f=_0xa6a604,_0x3d9b6e=this[_0x5bef2f(0x3af)][_0x5bef2f(0x463)][_0x5bef2f(0x37a)](this['_compressMutationService'][_0x5bef2f(0x463)][_0x5bef2f(0x428)]()[_0x5bef2f(0x27f)])(_0xc9194['mutations'],null)||_0xc9194[_0x5bef2f(0x2ce)],_0xe86207={..._0xc9194,'mutations':_0x3d9b6e};this[_0x5bef2f(0x348)](),this[_0x5bef2f(0x2c0)](this[_0x5bef2f(0x201)]['onRemoteChangeset'](_0xe86207)),this[_0x5bef2f(0x1f8)]();}[_0xa6a604(0x1f4)](_0x56fb74){const _0x5ada82=_0xa6a604;this['_lockTransition'](),this[_0x5ada82(0x2c0)](this[_0x5ada82(0x201)][_0x5ada82(0x544)](_0x56fb74)),this[_0x5ada82(0x1f8)]();}[_0xa6a604(0x4bb)](_0x30ba38){const _0x13ecdb=_0xa6a604;this[_0x13ecdb(0x348)](),this['_updateState'](this[_0x13ecdb(0x201)]['onRemoteRej'](_0x30ba38)),this[_0x13ecdb(0x1f8)]();}[_0xa6a604(0x396)](_0x4ee215){const _0x5f14a4=_0xa6a604;if(!(this[_0x5f14a4(0x201)]instanceof k))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x3c62f5=_0x4ee215['map'](_0x36cd53=>{const _0x742f04=_0x5f14a4,_0x5e7739=this['_compressMutationService'][_0x742f04(0x463)][_0x742f04(0x37a)](this[_0x742f04(0x3af)]['interceptor']['getInterceptPoints']()[_0x742f04(0x27f)])(_0x36cd53[_0x742f04(0x2ce)],null)||_0x36cd53[_0x742f04(0x2ce)];return{..._0x36cd53,'mutations':_0x5e7739};});this[_0x5f14a4(0x348)](),this[_0x5f14a4(0x2c0)](this[_0x5f14a4(0x201)]['onMissedChangesetFetched'](_0x3c62f5)),this[_0x5f14a4(0x1f8)]();}[_0xa6a604(0x33e)](){const _0x156e9e=_0xa6a604;this['_lockTransition'](),this['_updateState'](this['_state'][_0x156e9e(0x381)]()),this[_0x156e9e(0x1f8)]();}[_0xa6a604(0x511)](_0xcdc268=!0x1){const _0x2b8635=_0xa6a604;this[_0x2b8635(0x348)](),this[_0x2b8635(0x2c0)](this[_0x2b8635(0x201)][_0x2b8635(0x46c)]()),this[_0x2b8635(0x1f8)]();const _0x174e73=this[_0x2b8635(0x201)];_0xcdc268&&_0x174e73 instanceof Se&&(this[_0x2b8635(0x348)](),this[_0x2b8635(0x2c0)](_0x174e73[_0x2b8635(0x4e7)]()),this[_0x2b8635(0x1f8)]());}async['_createInitialState'](){return new Promise(_0x376313=>{const _0x58f496=_0x40a3;this['session']['sessionStatus$'][_0x58f496(0x3b6)](_0x9fd648(0x1))[_0x58f496(0x426)](async _0x20560b=>{_0x376313(await this['_createInitialStateImpl'](_0x20560b===G['ONLINE']));});});}[_0xa6a604(0x4d4)](){const _0x2e91f9=_0xa6a604,_0x3a784c=this[_0x2e91f9(0x1ec)];return{'onStateChange':(_0x48ffbe,_0x3650f0)=>{const _0xc2cfd4=_0x2e91f9;if(_0x48ffbe!==this[_0xc2cfd4(0x201)])throw new Error(_0xc2cfd4(0x2d5)+_0x48ffbe[_0xc2cfd4(0x33f)]+_0xc2cfd4(0x22b)+_0x3650f0[_0xc2cfd4(0x33f)]+_0xc2cfd4(0x319)+this[_0xc2cfd4(0x201)]['status']);this[_0xc2cfd4(0x2c0)](_0x3650f0);},'onSendChangeset':_0x6f0982=>{const _0x3522b1=_0x2e91f9,_0x4f709c={'eventID':_0x17f69c[_0x3522b1(0x54d)],'data':{'unitID':_0x6f0982[_0x3522b1(0x1ec)],'unitType':this['_type'],'changeset':_0x6f0982,'memberID':this[_0x3522b1(0x260)][_0x3522b1(0x2c6)]()}};this[_0x3522b1(0x260)][_0x3522b1(0x233)](_0x4f709c,this[_0x3522b1(0x1ec)]);},'onMissingChangesets':({from:_0x1627d4,to:_0x29dae7})=>{const _0x24be0e=_0x2e91f9;this[_0x24be0e(0x493)][_0x24be0e(0x408)](_0x24be0e(0x40d),_0x24be0e(0x225)+_0x1627d4+'\x20to\x20'+_0x29dae7);const _0x710015={'eventID':_0x17f69c['FETCH_MISSING'],'data':{'unitID':_0x3a784c,'unitType':this[_0x24be0e(0x239)],'from':_0x1627d4,'to':_0x29dae7}};this[_0x24be0e(0x260)][_0x24be0e(0x233)](_0x710015,this[_0x24be0e(0x1ec)]);}};}async[_0xa6a604(0x52e)](_0x146aca){const _0x5e6a4e=_0xa6a604;var _0x42af0f,_0x185969;const _0x1c49fb=await this['_localCacheService']['loadOfflineData'](this[_0x5e6a4e(0x1ec)]),_0x2f694f=(_0x42af0f=_0x1c49fb==null?void 0x0:_0x1c49fb[_0x5e6a4e(0x2ce)])!=null?_0x42af0f:[],_0x3871f4=(_0x185969=_0x1c49fb==null?void 0x0:_0x1c49fb[_0x5e6a4e(0x33a)])!=null?_0x185969:null,_0x3c861d=this['unitID'];try{this[_0x5e6a4e(0x350)](_0x3871f4,_0x2f694f);}catch(_0x1dd027){this[_0x5e6a4e(0x493)][_0x5e6a4e(0x3f7)](_0x1dd027);}const _0x4b6b99=this['_createHandler']();if(_0x146aca){const _0xaf8bb5=Hs(this['_injector'],_0x3c861d,this[_0x5e6a4e(0x239)],_0x3871f4,_0x2f694f,_0x4b6b99);return _0xaf8bb5 instanceof K?_0xaf8bb5[_0x5e6a4e(0x4e0)]():(_0xaf8bb5 instanceof X||_0xaf8bb5 instanceof Z)&&_0xaf8bb5[_0x5e6a4e(0x4e3)](),_0xaf8bb5;}return this[_0x5e6a4e(0x35a)][_0x5e6a4e(0x307)](ee,_0x3c861d,this[_0x5e6a4e(0x239)],_0x3871f4,_0x2f694f,_0x4b6b99);}[_0xa6a604(0x350)](_0x240cc3,_0x367508){const _0x2fa676=_0xa6a604;var _0x144e1c,_0x5a8a0b;const _0x459600=this[_0x2fa676(0x3af)][_0x2fa676(0x463)][_0x2fa676(0x37a)](this[_0x2fa676(0x3af)]['interceptor'][_0x2fa676(0x428)]()[_0x2fa676(0x27f)]);(_0x144e1c=_0x459600((_0x240cc3==null?void 0x0:_0x240cc3['mutations'])||[],null))==null||_0x144e1c['forEach'](_0x5e946f=>this[_0x2fa676(0x4d3)][_0x2fa676(0x352)](_0x5e946f['id'],_0x5e946f[_0x2fa676(0x4d2)])),(_0x5a8a0b=_0x459600(_0x367508||[],null))==null||_0x5a8a0b['forEach'](_0x145990=>this[_0x2fa676(0x4d3)][_0x2fa676(0x352)](_0x145990['id'],_0x145990['params']));}};Je=Vt([p(0x3,_0x160402(_0x283cc6)),p(0x4,_0x160402(D)),p(0x5,_0x160402(_0x1f6597)),p(0x6,_0x160402(_0x2f3b7b)),p(0x7,_0x160402(_0x842000)),p(0x8,_0x4e432b),p(0x9,_0x5a0862),p(0xa,_0xd292a2),p(0xb,_0x375c1f),p(0xc,_0x363100(tt))],Je);let bt=class extends Je{constructor(_0x4a51a0,_0x366688,_0x1b7898,_0x46da78,_0x3f7420,_0x3d6bc9,_0x4a97c9,_0x184cdd,_0x49343d,_0x3e3d50,_0x25d80b,_0x3352d7,_0x390bc9,_0x2cb67c,_0x111c1c,_0x187b69,_0x4621a9){const _0x3208d4=_0xa6a604;super(_0x4a51a0,_0x1b7898,_0x366688,_0x46da78,_0x3f7420,_0x3d6bc9,_0x4a97c9,_0x184cdd,_0x390bc9,_0x2cb67c,_0x111c1c,_0x187b69,_0x4621a9),this[_0x3208d4(0x1ec)]=_0x4a51a0,this['type']=_0x366688,this[_0x3208d4(0x360)]=_0x49343d,this[_0x3208d4(0x444)]=_0x3e3d50,this[_0x3208d4(0x363)]=_0x25d80b,this[_0x3208d4(0x41f)]=_0x3352d7;}['_createHandler'](){const _0x2c8056=_0xa6a604,_0x978916=super[_0x2c8056(0x4d4)]();return _0x978916[_0x2c8056(0x42c)]=_0x442cbc=>this[_0x2c8056(0x444)][_0x2c8056(0x2dd)](_0x442cbc),_0x978916[_0x2c8056(0x3e1)]=_0x338406=>this[_0x2c8056(0x363)]['transformSelections'](_0x338406),_0x978916[_0x2c8056(0x3ce)]=_0x4d2fe2=>this[_0x2c8056(0x41f)][_0x2c8056(0x285)](_0x4d2fe2),_0x978916[_0x2c8056(0x42d)]=_0x39667a=>this[_0x2c8056(0x444)][_0x2c8056(0x50a)](_0x39667a),_0x978916;}async[_0xa6a604(0x21e)](){const _0x3d40e9=_0xa6a604,_0x30794e=await super[_0x3d40e9(0x21e)]();return this['disposeWithMe'](this[_0x3d40e9(0x4d3)][_0x3d40e9(0x365)]((_0x3656d3,_0x129bc0)=>{const _0x76e6d0=_0x3d40e9;if(_0x3656d3[_0x76e6d0(0x536)]!==_0x58275d[_0x76e6d0(0x372)]||_0x129bc0!=null&&_0x129bc0[_0x76e6d0(0x316)]||_0x129bc0!=null&&_0x129bc0['onlyLocal'])return;const _0x1dd2bb=_0x3656d3[_0x76e6d0(0x4d2)];if((_0x1dd2bb==null?void 0x0:_0x1dd2bb[_0x76e6d0(0x2a5)])!==this[_0x76e6d0(0x1ec)])return;let _0x5efff5=_0x3656d3;if(_0x5efff5['id']===_0x1aac28['id']){const _0xb5711e=_0x5efff5[_0x76e6d0(0x4d2)];_0x5efff5={'id':_0x1aac28['id'],'type':_0x58275d[_0x76e6d0(0x372)],'params':{'unitId':_0xb5711e[_0x76e6d0(0x2a5)],'actions':_0xb5711e[_0x76e6d0(0x2e9)],'textRanges':null}};}const _0x3f4210=this[_0x76e6d0(0x3af)][_0x76e6d0(0x463)][_0x76e6d0(0x37a)](this[_0x76e6d0(0x3af)]['interceptor'][_0x76e6d0(0x428)]()['COMPRESS_MUTATION_SEND'])([_0x5efff5],null)||[_0x5efff5];this[_0x76e6d0(0x3c7)](_0x3f4210[0x0]);})),_0x30794e;}};bt=Vt([p(0x3,_0x160402(_0x283cc6)),p(0x4,_0x160402(D)),p(0x5,_0x160402(_0x1f6597)),p(0x6,_0x160402(_0x2f3b7b)),p(0x7,_0x160402(_0x842000)),p(0x8,_0x160402(_0x1fdec3)),p(0x9,_0x160402(Ye)),p(0xa,_0x160402(Xe)),p(0xb,_0x160402(Bt)),p(0xc,_0x4e432b),p(0xd,_0x5a0862),p(0xe,_0xd292a2),p(0xf,_0x375c1f),p(0x10,_0x363100(tt))],bt);let Tt=class extends Je{constructor(_0x3b7fb8,_0x16115e,_0x4bb738,_0x47720f,_0x3f19d4,_0x366b17,_0x229aa0,_0x5e4426,_0x4a952b,_0x427a31,_0x56565b,_0x4bde73,_0x942d6d,_0x1e0d00){const _0x58e473=_0xa6a604;super(_0x3b7fb8,_0x4bb738,_0x16115e,_0x47720f,_0x3f19d4,_0x366b17,_0x229aa0,_0x5e4426,_0x427a31,_0x56565b,_0x4bde73,_0x942d6d,_0x1e0d00),this[_0x58e473(0x1ec)]=_0x3b7fb8,this[_0x58e473(0x536)]=_0x16115e,this[_0x58e473(0x52c)]=_0x4a952b;}['_createHandler'](){const _0x31c340=_0xa6a604,_0x38e3e2=super['_createHandler']();return _0x38e3e2['onTransformSelections']=_0x158b6e=>this[_0x31c340(0x52c)][_0x31c340(0x255)](_0x158b6e),_0x38e3e2;}async[_0xa6a604(0x21e)](){const _0x2d6817=_0xa6a604,_0x1f6bad=await super[_0x2d6817(0x21e)]();return this[_0x2d6817(0x4f3)](this['_commandService'][_0x2d6817(0x365)]((_0x1ac699,_0x25eb90)=>{const _0x1fffde=_0x2d6817;if(_0x1ac699[_0x1fffde(0x536)]!==_0x58275d[_0x1fffde(0x372)]||_0x25eb90!=null&&_0x25eb90[_0x1fffde(0x316)]||_0x25eb90!=null&&_0x25eb90[_0x1fffde(0x272)])return;const _0x302d92=_0x1ac699[_0x1fffde(0x4d2)];if((_0x302d92==null?void 0x0:_0x302d92[_0x1fffde(0x2a5)])!==this[_0x1fffde(0x1ec)])return;const _0x4f2366=_0x1ac699,_0x43ae3f=this[_0x1fffde(0x3af)]['interceptor']['fetchThroughInterceptors'](this[_0x1fffde(0x3af)]['interceptor'][_0x1fffde(0x428)]()['COMPRESS_MUTATION_SEND'])([_0x4f2366],null)||[_0x4f2366];this[_0x1fffde(0x3c7)](_0x43ae3f[0x0]);})),_0x1f6bad;}};Tt=Vt([p(0x3,_0x160402(_0x283cc6)),p(0x4,_0x160402(D)),p(0x5,_0x160402(_0x1f6597)),p(0x6,_0x160402(_0x2f3b7b)),p(0x7,_0x160402(_0x842000)),p(0x8,_0x160402(Ke)),p(0x9,_0x4e432b),p(0xa,_0x5a0862),p(0xb,_0xd292a2),p(0xc,_0x375c1f),p(0xd,_0x363100(tt))],Tt);var Sr=Object['defineProperty'],pr=Object[_0xa6a604(0x4ce)],vr=(_0x5ecf8f,_0x18c1b4,_0x334dbb,_0x1768ab)=>{const _0x3773df=_0xa6a604;for(var _0x45c916=_0x1768ab>0x1?void 0x0:_0x1768ab?pr(_0x18c1b4,_0x334dbb):_0x18c1b4,_0x1890b2=_0x5ecf8f[_0x3773df(0x391)]-0x1,_0x50f655;_0x1890b2>=0x0;_0x1890b2--)(_0x50f655=_0x5ecf8f[_0x1890b2])&&(_0x45c916=(_0x1768ab?_0x50f655(_0x18c1b4,_0x334dbb,_0x45c916):_0x50f655(_0x45c916))||_0x45c916);return _0x1768ab&&_0x45c916&&Sr(_0x18c1b4,_0x334dbb,_0x45c916),_0x45c916;},lt=(_0x4e02e8,_0x1942ed)=>(_0x334046,_0x560973)=>_0x1942ed(_0x334046,_0x560973,_0x4e02e8);let Ae=class extends _0x48a1ad{constructor(_0x262541,_0x246e82,_0x419af8){const _0x5d27e1=_0xa6a604;super(),l(this,_0x5d27e1(0x379),new Map()),l(this,_0x5d27e1(0x38d),new _0x3daa12()),(this[_0x5d27e1(0x35a)]=_0x262541,this[_0x5d27e1(0x37c)]=_0x246e82,this[_0x5d27e1(0x1fd)]=_0x419af8,this[_0x5d27e1(0x21e)]());}['dispose'](){const _0x3be955=_0xa6a604;super[_0x3be955(0x4f4)](),this[_0x3be955(0x379)][_0x3be955(0x213)](_0x3ad9ba=>_0x3ad9ba['dispose']()),this[_0x3be955(0x379)]['clear']();}[_0xa6a604(0x2ab)](_0x8f53a8){const _0x371510=_0xa6a604;var _0x5969f2;return(_0x5969f2=this[_0x371510(0x379)]['get'](_0x8f53a8))!=null?_0x5969f2:null;}[_0xa6a604(0x23a)](_0x215abd){const _0x4debd2=_0xa6a604,_0x9bb1bb=this[_0x4debd2(0x2ab)](_0x215abd);return _0x9bb1bb?_0x3a75ff(_0x9bb1bb):this[_0x4debd2(0x38d)][_0x4debd2(0x3b6)](_0x38e98e(_0x3e368d=>_0x3e368d[_0x4debd2(0x1ec)]===_0x215abd));}[_0xa6a604(0x21e)](){const _0x256349=_0xa6a604;this[_0x256349(0x1fd)][_0x256349(0x2dc)](_0x39cf18[_0x256349(0x48b)])[_0x256349(0x3b6)](_0x23bb2f(this[_0x256349(0x424)]),_0x335667(0x10))['subscribe'](async _0x233733=>{const _0x315567=_0x256349,_0x44523b=_0x233733[_0x315567(0x203)](),_0x561628=await this[_0x315567(0x3c6)](_0x44523b,H[_0x315567(0x48b)]);this[_0x315567(0x379)][_0x315567(0x455)](_0x44523b,_0x561628);}),this[_0x256349(0x1fd)][_0x256349(0x2dc)](_0x39cf18[_0x256349(0x1eb)])['pipe'](_0x23bb2f(this['dispose$']),_0x335667(0x10))[_0x256349(0x3b6)](_0x38e98e(_0x170683=>!_0x170683[_0x256349(0x203)]()['startsWith']('__')))[_0x256349(0x426)](async _0x1786df=>{const _0x5a740e=_0x256349,_0x1f5da7=_0x1786df[_0x5a740e(0x203)](),_0x21e1ee=await this[_0x5a740e(0x3c6)](_0x1f5da7,H[_0x5a740e(0x1eb)]);this[_0x5a740e(0x379)]['set'](_0x1f5da7,_0x21e1ee);}),_0xcf1d88(this['_univerInstanceService'][_0x256349(0x44e)](_0x39cf18['UNIVER_SHEET']),this['_univerInstanceService'][_0x256349(0x44e)](_0x39cf18['UNIVER_DOC']))[_0x256349(0x3b6)](_0x23bb2f(this[_0x256349(0x424)]))[_0x256349(0x426)](_0x2319ac=>{const _0x1aedec=_0x256349,_0x18d926=_0x2319ac[_0x1aedec(0x203)](),_0x29a5cf=this[_0x1aedec(0x379)][_0x1aedec(0x504)](_0x18d926);_0x29a5cf&&(_0x29a5cf[_0x1aedec(0x4f4)](),this[_0x1aedec(0x379)]['delete'](_0x18d926));});}async[_0xa6a604(0x3c6)](_0x5b0e42,_0x3ce135){const _0x124727=_0xa6a604,_0x5cd2f3=await this[_0x124727(0x37c)][_0x124727(0x269)](_0x5b0e42),_0x2ad54c=this[_0x124727(0x35a)][_0x124727(0x307)](this[_0x124727(0x2b8)](_0x3ce135),_0x5b0e42,_0x3ce135,_0x5cd2f3);return await _0x2ad54c[_0x124727(0x4c6)](),this[_0x124727(0x38d)][_0x124727(0x480)](_0x2ad54c),_0x2ad54c;}[_0xa6a604(0x2b8)](_0x202f39){const _0x253673=_0xa6a604;switch(_0x202f39){case H['UNIVER_DOC']:return bt;case H['UNIVER_SHEET']:return Tt;default:throw new Error(_0x253673(0x49e)+_0x202f39);}}};Ae=vr([lt(0x0,_0x160402(_0x283cc6)),lt(0x1,_0x160402(ce)),lt(0x2,_0x33adea)],Ae);const _s=['purple300',_0xa6a604(0x38e),_0xa6a604(0x373),_0xa6a604(0x25a),_0xa6a604(0x3f3),_0xa6a604(0x275)];class Ft extends _0x252360{constructor(){const _0x1e9b23=_0xa6a604;super(...arguments),l(this,_0x1e9b23(0x32e),new Map()),l(this,_0x1e9b23(0x440),0x0);}[_0xa6a604(0x2ca)](_0xb4eb87){const _0x2b11f0=_0xa6a604;if(this[_0x2b11f0(0x32e)][_0x2b11f0(0x1f9)](_0xb4eb87))return this[_0x2b11f0(0x32e)][_0x2b11f0(0x504)](_0xb4eb87);const _0x1c3676=_s[this[_0x2b11f0(0x440)]];return this[_0x2b11f0(0x440)]=(this['_colorIndex']+0x1)%_s[_0x2b11f0(0x391)],this['_assignedColors']['set'](_0xb4eb87,_0x1c3676),_0x1c3676;}}var Ir=Object['defineProperty'],Er=Object[_0xa6a604(0x4ce)],Cr=(_0x399d13,_0x55442a,_0x4d33e6,_0x517a62)=>{const _0x22c7fb=_0xa6a604;for(var _0x2d296f=_0x517a62>0x1?void 0x0:_0x517a62?Er(_0x55442a,_0x4d33e6):_0x55442a,_0x56e306=_0x399d13[_0x22c7fb(0x391)]-0x1,_0x341cda;_0x56e306>=0x0;_0x56e306--)(_0x341cda=_0x399d13[_0x56e306])&&(_0x2d296f=(_0x517a62?_0x341cda(_0x55442a,_0x4d33e6,_0x2d296f):_0x341cda(_0x2d296f))||_0x2d296f);return _0x517a62&&_0x2d296f&&Ir(_0x55442a,_0x4d33e6,_0x2d296f),_0x2d296f;},se=(_0x2cde9b,_0x5a3e3d)=>(_0x21b622,_0x5b376f)=>_0x5a3e3d(_0x21b622,_0x5b376f,_0x2cde9b);const br=0x12c,Tr=0x64;let Rt=class extends _0x48a1ad{constructor(_0x2a85cb,_0x10d96a,_0x29d8b4,_0x38afb2,_0x5f3bde,_0x41bdab,_0x95a567,_0x42b45c,_0x3d3c12){const _0x418fb5=_0xa6a604;super(),l(this,_0x418fb5(0x538),!0x1),l(this,_0x418fb5(0x21e),!0x1),l(this,_0x418fb5(0x3bb),new _0x3d8ff6(new Map())),l(this,_0x418fb5(0x2d7),this[_0x418fb5(0x3bb)][_0x418fb5(0x294)]()),l(this,_0x418fb5(0x548),new _0x3d8ff6([])),l(this,'roomMembers$',this[_0x418fb5(0x548)][_0x418fb5(0x3b6)](_0x147d44(br))),l(this,_0x418fb5(0x208),_0x30da7c(_0x90d56a=>{const _0x487411=_0x418fb5,_0x303b40={'eventID':_0x17f69c[_0x487411(0x42b)],'data':{'unitID':this[_0x487411(0x1ec)],'memberID':this[_0x487411(0x209)]['getMemberID'](),'selection':xs(_0x90d56a)}};this[_0x487411(0x209)][_0x487411(0x233)](_0x303b40,this[_0x487411(0x1ec)]);},Tr)),(this['unitID']=_0x2a85cb,this[_0x418fb5(0x209)]=_0x10d96a,this[_0x418fb5(0x35a)]=_0x29d8b4,this['_colorAssignService']=_0x38afb2,this['_memberService']=_0x5f3bde,this[_0x418fb5(0x397)]=_0x41bdab,this[_0x418fb5(0x48c)]=_0x95a567,this[_0x418fb5(0x1fd)]=_0x42b45c,this['_commandService']=_0x3d3c12);}get[_0xa6a604(0x293)](){const _0x35f436=_0xa6a604;return this['_cursorInfo$'][_0x35f436(0x2a2)]();}get[_0xa6a604(0x3c1)](){const _0x3c88b1=_0xa6a604;return this[_0x3c88b1(0x548)][_0x3c88b1(0x2a2)]();}[_0xa6a604(0x4f4)](){const _0x50801a=_0xa6a604;super[_0x50801a(0x4f4)](),this[_0x50801a(0x3bb)]['next'](new Map()),this[_0x50801a(0x3bb)][_0x50801a(0x52b)](),this['_roomMembers$']['next']([]),this[_0x50801a(0x548)][_0x50801a(0x52b)]();}[_0xa6a604(0x4c6)](){const _0xa25891=_0xa6a604;this['_init']||(this[_0xa25891(0x21e)]=!0x0,this[_0xa25891(0x209)]['sessionStatus$'][_0xa25891(0x3b6)](_0x23bb2f(this[_0xa25891(0x424)]))[_0xa25891(0x426)](_0x1b07c8=>{const _0x2d7893=_0xa25891;_0x1b07c8===G['ONLINE']?this[_0x2d7893(0x511)]():this['_toggleOffline']();}),this[_0xa25891(0x209)][_0xa25891(0x2bc)][_0xa25891(0x3b6)](_0x23bb2f(this[_0xa25891(0x424)]))[_0xa25891(0x426)](_0xfb960b=>{const _0x355631=_0xa25891,_0x134433=_0xfb960b[_0x355631(0x33b)];_0x134433===_0x17f69c[_0x355631(0x42b)]&&this['_onCursorUpdate'](_0xfb960b),_0x134433===_0x17f69c[_0x355631(0x356)]&&this[_0x355631(0x436)](_0xfb960b);}),this[_0xa25891(0x4f3)](this[_0xa25891(0x4d3)][_0xa25891(0x365)](_0x52e160=>{const _0x2626eb=_0xa25891,_0x35925a=_0x52e160[_0x2626eb(0x4d2)];_0x35925a!=null&&this[_0x2626eb(0x538)]&&_0x52e160['id']===_0x188c9b['id']&&_0x35925a[_0x2626eb(0x2a5)]===this['unitID']&&_0x35925a[_0x2626eb(0x4ea)]===!0x1&&this[_0x2626eb(0x208)](_0x35925a[_0x2626eb(0x1f2)]);})),this[_0xa25891(0x397)]['collabCursorState$'][_0xa25891(0x3b6)](_0x23bb2f(this['dispose$']))['subscribe'](_0x349398=>{const _0x1e7a3e=_0xa25891;if((_0x349398==null?void 0x0:_0x349398[_0x1e7a3e(0x1ec)])!==this['unitID'])return;const _0x3124a8={'eventID':_0x17f69c[_0x1e7a3e(0x42b)],'data':_0x349398};this['_onCursorUpdate'](_0x3124a8);}),this[_0xa25891(0x4f3)](this[_0xa25891(0x4d3)]['onCommandExecuted'](_0x170cef=>{const _0x28a3e3=_0xa25891;if(_0x170cef[_0x28a3e3(0x4d2)]==null)return;const _0x2fe6b6=_0x170cef['params'];if(_0x170cef['id']!==_0x1aac28['id']||_0x2fe6b6[_0x28a3e3(0x2a5)]!==this[_0x28a3e3(0x1ec)])return;const _0x18b68b={'id':_0x28a3e3(0x23f),'params':_0x2fe6b6},_0x216cf9=this['cursorInfo'];for(const [_0x2c7b87,_0x19fa7b]of _0x216cf9){const _0x3ff2e3={'id':_0x28a3e3(0x23f),'params':{'unitId':this[_0x28a3e3(0x1ec)],'actions':null,'textRanges':_0x19fa7b[_0x28a3e3(0x1f2)]}},_0x21a9b6=this['_transformService']['transformMutation'](_0x18b68b,_0x3ff2e3,!0x1);if(_0x4c49c5(_0x21a9b6))throw _0x21a9b6['error'];_0x216cf9['set'](_0x2c7b87,{..._0x19fa7b,'ranges':_0x21a9b6[_0x28a3e3(0x29d)][_0x28a3e3(0x4d2)][_0x28a3e3(0x2b6)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x216cf9);});})));}[_0xa6a604(0x1ee)](_0x37fc24){const _0x19372f=_0xa6a604;var _0x26771f,_0x1d3287;const {memberID:_0x2581c4,selection:_0x321e03}=_0x37fc24[_0x19372f(0x525)],_0x45ee2c=or(_0x321e03),_0x8e3447=(_0x1d3287=(_0x26771f=this[_0x19372f(0x242)][_0x19372f(0x4d6)](this[_0x19372f(0x1ec)],_0x2581c4))==null?void 0x0:_0x26771f[_0x19372f(0x3cb)])!=null?_0x1d3287:_0x19372f(0x39b),_0x454744={'color':this[_0x19372f(0x3ca)][_0x19372f(0x2ca)](_0x2581c4),'name':_0x8e3447,'ranges':_0x45ee2c},_0x18caa0=this[_0x19372f(0x293)];_0x18caa0[_0x19372f(0x455)](_0x2581c4,_0x454744),this['_cursorInfo$'][_0x19372f(0x480)](_0x18caa0);}['_onCursorDelete'](_0xdbe120){const _0x48d571=_0xa6a604,{memberID:_0x3355ca}=_0xdbe120[_0x48d571(0x525)],_0x4fccd5=this[_0x48d571(0x293)];_0x4fccd5[_0x48d571(0x3fe)](_0x3355ca),this[_0x48d571(0x3bb)][_0x48d571(0x480)](_0x4fccd5);}[_0xa6a604(0x511)](){const _0x31a4d7=_0xa6a604;var _0x45f372;if(this[_0x31a4d7(0x538)]=!0x0,((_0x45f372=this['_univerInstanceService'][_0x31a4d7(0x2a3)]())==null?void 0x0:_0x45f372['getUnitId']())!==this['unitID'])return;const _0x194533=this[_0x31a4d7(0x35a)]['get'](_0x5c017d)[_0x31a4d7(0x549)]();Array[_0x31a4d7(0x2f8)](_0x194533)&&_0x194533[_0x31a4d7(0x391)]>0x0&&this[_0x31a4d7(0x208)](_0x194533);}['_toggleOffline'](){const _0x328efa=_0xa6a604;this[_0x328efa(0x538)]=!0x1;}};Rt=Cr([se(0x2,_0x160402(_0x283cc6)),se(0x3,_0x160402(Ft)),se(0x4,_0x160402(ae)),se(0x5,_0x160402(Bt)),se(0x6,_0x5ea876),se(0x7,_0x33adea),se(0x8,_0x5a0862)],Rt);var Rr=Object[_0xa6a604(0x222)],Or=Object[_0xa6a604(0x4ce)],Dr=(_0x2e9bc0,_0x522d82,_0x4348b1,_0x386055)=>{const _0x41e213=_0xa6a604;for(var _0x1915f7=_0x386055>0x1?void 0x0:_0x386055?Or(_0x522d82,_0x4348b1):_0x522d82,_0x265338=_0x2e9bc0[_0x41e213(0x391)]-0x1,_0x644eec;_0x265338>=0x0;_0x265338--)(_0x644eec=_0x2e9bc0[_0x265338])&&(_0x1915f7=(_0x386055?_0x644eec(_0x522d82,_0x4348b1,_0x1915f7):_0x644eec(_0x1915f7))||_0x1915f7);return _0x386055&&_0x1915f7&&Rr(_0x522d82,_0x4348b1,_0x1915f7),_0x1915f7;},fe=(_0x1f96ce,_0x2e1a40)=>(_0x35998c,_0x5df13c)=>_0x2e1a40(_0x35998c,_0x5df13c,_0x1f96ce);const wr=0x12c,Pr=0x64,yr=()=>{let _0x26f2e7=[],_0x2cfc75=!0x1;return _0x4bfde4=>{const _0x1c1ac7=_0x40a3;_0x26f2e7[_0x1c1ac7(0x539)](_0x4bfde4),_0x2cfc75||(_0x2cfc75=!0x0,setTimeout(()=>{const _0x192565=_0x1c1ac7;_0x26f2e7[_0x192565(0x213)](_0x4ffe45=>_0x4ffe45()),_0x26f2e7=[],_0x2cfc75=!0x1;}));};};let Ot=class extends _0x48a1ad{constructor(_0x2d3d29,_0x394d41,_0x5c70ba,_0x10e88d,_0x1c5460,_0x3bb03,_0x1fea98,_0x423c33){const _0x3488f7=_0xa6a604;super(),l(this,_0x3488f7(0x538),!0x1),l(this,_0x3488f7(0x21e),!0x1),l(this,_0x3488f7(0x3bb),new _0x3d8ff6(new Map())),l(this,_0x3488f7(0x2d7),this[_0x3488f7(0x3bb)]['asObservable']()),l(this,'_roomMembers$',new _0x3d8ff6([])),l(this,_0x3488f7(0x503),this[_0x3488f7(0x548)][_0x3488f7(0x3b6)](_0x147d44(wr))),l(this,_0x3488f7(0x208),_0x30da7c((_0x3f870f,_0x134933)=>{const _0x11be6c=_0x3488f7,_0x559c55={'eventID':_0x17f69c['UPDATE_CURSOR'],'data':{'unitID':this[_0x11be6c(0x1ec)],'memberID':this['_session'][_0x11be6c(0x2c6)](),'selection':_0xff349(_0x3f870f,_0x134933['range'])}};this[_0x11be6c(0x209)][_0x11be6c(0x233)](_0x559c55,this[_0x11be6c(0x1ec)]);},Pr)),(this[_0x3488f7(0x1ec)]=_0x2d3d29,this[_0x3488f7(0x209)]=_0x394d41,this[_0x3488f7(0x35a)]=_0x5c70ba,this[_0x3488f7(0x3ca)]=_0x10e88d,this[_0x3488f7(0x242)]=_0x1c5460,this[_0x3488f7(0x1fd)]=_0x3bb03,this['_commandService']=_0x1fea98,this[_0x3488f7(0x4ec)]=_0x423c33);}get[_0xa6a604(0x293)](){const _0x41bf3b=_0xa6a604;return this[_0x41bf3b(0x3bb)]['getValue']();}get[_0xa6a604(0x3c1)](){const _0x3e4b34=_0xa6a604;return this[_0x3e4b34(0x548)][_0x3e4b34(0x2a2)]();}[_0xa6a604(0x4f4)](){const _0x693f29=_0xa6a604;super[_0x693f29(0x4f4)](),this[_0x693f29(0x3bb)]['next'](new Map()),this['_cursorInfo$'][_0x693f29(0x52b)](),this['_roomMembers$'][_0x693f29(0x480)]([]),this[_0x693f29(0x548)]['complete']();}['init'](){const _0x386438=_0xa6a604;this[_0x386438(0x21e)]||(this[_0x386438(0x21e)]=!0x0,this[_0x386438(0x209)][_0x386438(0x304)][_0x386438(0x3b6)](_0x23bb2f(this[_0x386438(0x424)]))[_0x386438(0x426)](_0x4ca4fa=>{const _0x4b3a97=_0x386438;_0x4ca4fa===G[_0x4b3a97(0x3a2)]?this[_0x4b3a97(0x511)]():this[_0x4b3a97(0x33e)]();}),this[_0x386438(0x209)][_0x386438(0x2bc)][_0x386438(0x3b6)](_0x23bb2f(this[_0x386438(0x424)]))['subscribe'](_0x3b7789=>{const _0x19ecf7=_0x386438,_0x396395=_0x3b7789[_0x19ecf7(0x33b)];_0x396395===_0x17f69c[_0x19ecf7(0x42b)]&&this['_onCursorUpdate'](_0x3b7789),_0x396395===_0x17f69c[_0x19ecf7(0x356)]&&this[_0x19ecf7(0x436)](_0x3b7789);}),this[_0x386438(0x234)](),this['disposeWithMe'](this[_0x386438(0x4d3)][_0x386438(0x365)](_0x1ad400=>{const _0x37cfd4=_0x386438;if(this[_0x37cfd4(0x538)]&&_0x1ad400['id']===_0x5889b8['id']&&_0x1ad400[_0x37cfd4(0x4d2)]['unitId']===this['unitID']){const _0x56c919=_0x1ad400['params'];this[_0x37cfd4(0x208)](_0x56c919[_0x37cfd4(0x46b)],_0x56c919['selections'][0x0]);}})));}['_onCursorUpdate'](_0x10783f){const _0x114f7f=_0xa6a604;var _0x2c8d20,_0x588798;const {memberID:_0x342bac,selection:_0x1d4c4f}=_0x10783f[_0x114f7f(0x525)],{sheetName:_0x1ef379,range:_0x4db545}=_0x3b6279(_0x1d4c4f),_0x1290c7={'name':(_0x588798=(_0x2c8d20=this[_0x114f7f(0x242)][_0x114f7f(0x4d6)](this['unitID'],_0x342bac))==null?void 0x0:_0x2c8d20[_0x114f7f(0x3cb)])!=null?_0x588798:_0x114f7f(0x39b),'range':this[_0x114f7f(0x206)](_0x1ef379,_0x4db545),'sheetID':_0x1ef379,'color':this['_colorAssignService'][_0x114f7f(0x2ca)](_0x342bac),'selection':_0x1d4c4f},_0x15523b=this[_0x114f7f(0x293)];_0x15523b[_0x114f7f(0x455)](_0x342bac,_0x1290c7),this['_cursorInfo$'][_0x114f7f(0x480)](_0x15523b);}[_0xa6a604(0x436)](_0x6f067a){const _0x195e1a=_0xa6a604,{memberID:_0x254c2e}=_0x6f067a['data'],_0x7c9848=this[_0x195e1a(0x293)];_0x7c9848[_0x195e1a(0x3fe)](_0x254c2e),this[_0x195e1a(0x3bb)]['next'](_0x7c9848);}['_getMergeRange'](_0x463f49,_0x73c601){const _0x489270=_0xa6a604;var _0x57beec,_0xd5e7af;const _0x3a4029=(_0xd5e7af=(_0x57beec=this[_0x489270(0x1fd)][_0x489270(0x4df)](this[_0x489270(0x1ec)]))==null?void 0x0:_0x57beec['getSheetBySheetId'](_0x463f49))==null?void 0x0:_0xd5e7af[_0x489270(0x2de)]();return(_0x3a4029==null?void 0x0:_0x3a4029[_0x489270(0x4dd)](_0x4e3c1b=>_0x7947b9[_0x489270(0x450)](_0x4e3c1b,_0x73c601)))||_0x73c601;}[_0xa6a604(0x234)](){const _0x26571b=_0xa6a604,_0x19afc8=new _0x17834d(),_0x518500=yr(),_0x31d7d0=()=>{const _0x2273d6=_0x40a3;_0x19afc8[_0x2273d6(0x4f4)]();const _0x4fca81=(_0x476944,_0x1d947c,_0x2051d5,_0x143f9a)=>{const _0x620665=_0x2273d6;let _0x481c7f=[];switch(_0x476944['id']){case _0x1c0dca[_0x620665(0x313)]:{_0x481c7f=_0xa951f6(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x28e)]:{_0x481c7f=_0x312c24(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x26f)]:{_0x481c7f=_0x21b7f3(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x3e9)]:{_0x481c7f=_0x317d9f(_0x476944,_0x143f9a);break;}case _0x1c0dca['InsertRangeMoveRightCommandId']:{_0x481c7f=_0x4d67a8(_0x476944,_0x143f9a);break;}case _0x1c0dca['InsertRowCommandId']:{_0x481c7f=_0x14236b(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x545)]:{_0x481c7f=_0x588bad(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x377)]:{_0x481c7f=_0x550305(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x45b)]:{_0x481c7f=_0x2e07d4(_0x476944,_0x143f9a);break;}}const _0x2f5907=_0x335941(_0x481c7f,_0x143f9a),_0x3c1ca1=this[_0x620665(0x293)][_0x620665(0x504)](_0x1d947c);if(_0x3c1ca1&&_0x2f5907){const _0x558954={..._0x3c1ca1,'range':_0x2f5907};this[_0x620665(0x293)][_0x620665(0x455)](_0x1d947c,_0x558954),_0x518500(()=>{const _0x51cc7c=_0x620665,_0x38a0d5=this[_0x51cc7c(0x4ec)][_0x51cc7c(0x43e)](_0x2f5907,_0x462ae8=>(_0x38a0d5['dispose'](),_0x4fca81(_0x462ae8,_0x1d947c,_0x2051d5,_0x2f5907)));_0x19afc8[_0x51cc7c(0x1e7)](_0x38a0d5);});}return{'redos':[],'undos':[]};};this[_0x2273d6(0x293)][_0x2273d6(0x213)]((_0x41ed8b,_0x3e8398)=>{const _0x33aa35=_0x2273d6,{range:_0x5ef2be,sheetID:_0xeba376}=_0x41ed8b,_0x2ddda9=this[_0x33aa35(0x4ec)][_0x33aa35(0x43e)](_0x5ef2be,_0x21505d=>(_0x2ddda9[_0x33aa35(0x4f4)](),_0x4fca81(_0x21505d,_0x3e8398,_0xeba376,_0x5ef2be)));_0x19afc8[_0x33aa35(0x1e7)](_0x2ddda9);});};this[_0x26571b(0x4f3)](_0x9a96d1(this[_0x26571b(0x3bb)][_0x26571b(0x426)](()=>{_0x31d7d0();})));}[_0xa6a604(0x511)](){const _0x538578=_0xa6a604;var _0x3cd429,_0x3d3928;if(this['_online']=!0x0,((_0x3cd429=this[_0x538578(0x1fd)][_0x538578(0x2a3)]())==null?void 0x0:_0x3cd429[_0x538578(0x203)]())!==this[_0x538578(0x1ec)])return;const _0x280aae=(_0x3d3928=this['_injector'][_0x538578(0x504)](_0x370067)[_0x538578(0x37b)]())==null?void 0x0:_0x3d3928[0x0],_0x25cc53=this[_0x538578(0x1fd)]['getCurrentUnitForType'](_0x39cf18[_0x538578(0x48b)])['getActiveSheet']();_0x280aae&&_0x25cc53&&this[_0x538578(0x208)](_0x25cc53['getSheetId'](),_0x280aae);}[_0xa6a604(0x33e)](){this['_online']=!0x1;}};Ot=Dr([fe(0x2,_0x160402(_0x283cc6)),fe(0x3,_0x160402(Ft)),fe(0x4,_0x160402(ae)),fe(0x5,_0x33adea),fe(0x6,_0x5a0862),fe(0x7,_0x160402(_0x397e46))],Ot);var Nr=Object['defineProperty'],Ur=Object[_0xa6a604(0x4ce)],Mr=(_0x24318c,_0x136d97,_0xd70498,_0x5179d2)=>{const _0x590f90=_0xa6a604;for(var _0x2c8e57=_0x5179d2>0x1?void 0x0:_0x5179d2?Ur(_0x136d97,_0xd70498):_0x136d97,_0x1efa71=_0x24318c[_0x590f90(0x391)]-0x1,_0x2771a9;_0x1efa71>=0x0;_0x1efa71--)(_0x2771a9=_0x24318c[_0x1efa71])&&(_0x2c8e57=(_0x5179d2?_0x2771a9(_0x136d97,_0xd70498,_0x2c8e57):_0x2771a9(_0x2c8e57))||_0x2c8e57);return _0x5179d2&&_0x2c8e57&&Nr(_0x136d97,_0xd70498,_0x2c8e57),_0x2c8e57;},_t=(_0x4b8298,_0x2f9199)=>(_0x338c19,_0x365b7a)=>_0x2f9199(_0x338c19,_0x365b7a,_0x4b8298);let pe=class extends _0x48a1ad{constructor(_0x834017,_0x430449,_0x47b924){const _0x25e159=_0xa6a604;super(),l(this,'_entities',new Map()),l(this,_0x25e159(0x38d),new _0x3daa12()),(this[_0x25e159(0x1fd)]=_0x834017,this[_0x25e159(0x35a)]=_0x430449,this['_collabSessionService']=_0x47b924,this[_0x25e159(0x21e)]());}[_0xa6a604(0x4f4)](){const _0x5f4a75=_0xa6a604;super[_0x5f4a75(0x4f4)](),this[_0x5f4a75(0x38d)][_0x5f4a75(0x52b)](),this[_0x5f4a75(0x379)]['forEach'](_0x1d4cf7=>_0x1d4cf7[_0x5f4a75(0x4f4)]());}['getCollabCursors$'](_0x31b05c){const _0x3f5a10=_0xa6a604;return this['_entities'][_0x3f5a10(0x1f9)](_0x31b05c)?this[_0x3f5a10(0x379)][_0x3f5a10(0x504)](_0x31b05c)[_0x3f5a10(0x2d7)]:this[_0x3f5a10(0x38d)][_0x3f5a10(0x3b6)](_0x207549(_0x37bc84=>_0x37bc84[_0x3f5a10(0x1ec)]===_0x31b05c),_0x26d305(_0x341d47=>_0x341d47[_0x3f5a10(0x2d7)]));}[_0xa6a604(0x21e)](){const _0x5acc33=_0xa6a604;this[_0x5acc33(0x1fd)][_0x5acc33(0x2dc)](_0x39cf18[_0x5acc33(0x48b)])[_0x5acc33(0x3b6)](_0x23bb2f(this[_0x5acc33(0x424)]))[_0x5acc33(0x426)](async _0x55769f=>{const _0x26acb6=_0x5acc33,_0x104b07=_0x55769f['getUnitId'](),_0x389611=await this[_0x26acb6(0x378)](_0x104b07);this[_0x26acb6(0x38d)]['next'](_0x389611),this[_0x26acb6(0x379)][_0x26acb6(0x455)](_0x104b07,_0x389611);}),this[_0x5acc33(0x1fd)]['getTypeOfUnitAdded$'](_0x39cf18[_0x5acc33(0x1eb)])[_0x5acc33(0x3b6)](_0x23bb2f(this[_0x5acc33(0x424)]))[_0x5acc33(0x3b6)](_0x207549(_0x2199ec=>!_0x2199ec[_0x5acc33(0x203)]()['startsWith']('__')))[_0x5acc33(0x426)](async _0x20f02d=>{const _0x24f568=_0x5acc33,_0x2369d6=_0x20f02d[_0x24f568(0x203)](),_0x5bf58c=await this['_startDocCollabCursor'](_0x2369d6);this['_entityInit$']['next'](_0x5bf58c),this[_0x24f568(0x379)][_0x24f568(0x455)](_0x2369d6,_0x5bf58c);}),_0xcf1d88(this['_univerInstanceService'][_0x5acc33(0x44e)](_0x39cf18[_0x5acc33(0x1eb)]),this[_0x5acc33(0x1fd)]['getTypeOfUnitDisposed$'](_0x39cf18[_0x5acc33(0x48b)]))['pipe'](_0x23bb2f(this[_0x5acc33(0x424)]))[_0x5acc33(0x426)](_0x456579=>{const _0x33d404=_0x5acc33,_0xb712b5=_0x456579[_0x33d404(0x203)](),_0x5752e1=this[_0x33d404(0x379)][_0x33d404(0x504)](_0xb712b5);_0x5752e1&&(_0x5752e1['dispose'](),this['_entities'][_0x33d404(0x3fe)](_0xb712b5));});}async[_0xa6a604(0x378)](_0x39482b){const _0xb7cf4c=_0xa6a604,_0x428545=await this['_collabSessionService'][_0xb7cf4c(0x269)](_0x39482b),_0x233c1b=this[_0xb7cf4c(0x35a)]['createInstance'](Ot,_0x39482b,_0x428545);return _0x233c1b[_0xb7cf4c(0x4c6)](),_0x233c1b;}async['_startDocCollabCursor'](_0x31dcf3){const _0x6db58c=_0xa6a604,_0x1dabc9=await this['_collabSessionService'][_0x6db58c(0x269)](_0x31dcf3),_0x1ff123=this[_0x6db58c(0x35a)][_0x6db58c(0x307)](Rt,_0x31dcf3,_0x1dabc9);return _0x1ff123[_0x6db58c(0x4c6)](),_0x1ff123;}};pe=Mr([_t(0x0,_0x33adea),_t(0x1,_0x160402(_0x283cc6)),_t(0x2,_0x160402(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x45b476,_0x9c0606){const _0x5c3a6e=_0xa6a604;let {radius:_0x214e55,width:_0x18ab4e,height:_0x472df0}=_0x9c0606;_0x214e55=_0x214e55!=null?_0x214e55:0x0,_0x18ab4e=_0x18ab4e!=null?_0x18ab4e:0x1e,_0x472df0=_0x472df0!=null?_0x472df0:0x1e;let _0x566560=0x0,_0x541732=0x0,_0x5f5cad=0x0;_0x566560=_0x541732=_0x5f5cad=Math[_0x5c3a6e(0x43c)](_0x214e55,_0x18ab4e/0x2,_0x472df0/0x2),_0x45b476[_0x5c3a6e(0x4af)](),_0x45b476['moveTo'](_0x566560,0x0),_0x45b476['lineTo'](_0x18ab4e-_0x541732,0x0),_0x45b476[_0x5c3a6e(0x519)](_0x18ab4e-_0x541732,_0x541732,_0x541732,Math['PI']*0x3/0x2,0x0,!0x1),_0x45b476[_0x5c3a6e(0x336)](_0x18ab4e,_0x472df0-_0x5f5cad),_0x45b476[_0x5c3a6e(0x519)](_0x18ab4e-_0x5f5cad,_0x472df0-_0x5f5cad,_0x5f5cad,0x0,Math['PI']/0x2,!0x1),_0x45b476[_0x5c3a6e(0x336)](0x0,_0x472df0),_0x45b476[_0x5c3a6e(0x336)](0x0,_0x566560),_0x45b476['arc'](_0x566560,_0x566560,_0x566560,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x45b476['closePath'](),_0x9c0606[_0x5c3a6e(0x3e2)]&&(_0x45b476[_0x5c3a6e(0x32c)](),_0x45b476[_0x5c3a6e(0x448)]=_0x9c0606['fill'],_0x9c0606['fillRule']===_0x5c3a6e(0x340)?_0x45b476[_0x5c3a6e(0x3e2)]('evenodd'):_0x45b476[_0x5c3a6e(0x3e2)](),_0x45b476[_0x5c3a6e(0x2bb)]());}class st extends _0x202b11{constructor(_0x4f276f,_0xb7ed4c){const _0xcbc5ec=_0xa6a604;super(_0x4f276f,_0xb7ed4c),l(this,'color'),l(this,'text'),(this[_0xcbc5ec(0x510)]=_0xb7ed4c==null?void 0x0:_0xb7ed4c['color'],this[_0xcbc5ec(0x3b5)]=_0xb7ed4c==null?void 0x0:_0xb7ed4c['text']);}static[_0xa6a604(0x4fd)](_0x436915,_0x2e66ff){const _0x863e7d=_0xa6a604,{text:_0x2a6d05,color:_0x8e0d07}=_0x2e66ff;_0x436915[_0x863e7d(0x32c)](),_0x436915[_0x863e7d(0x4b4)]=_0x863e7d(0x3a6);const _0xa960c1=_0x436915['measureText'](_0x2a6d05)[_0x863e7d(0x3a1)],_0x1f39c1=Math[_0x863e7d(0x43c)](_0xa960c1+0x2*ut,us);Lr(_0x436915,{'height':Le,'radius':0x4,'width':_0x1f39c1,'fill':_0x8e0d07,'evented':!0x1}),_0x436915[_0x863e7d(0x448)]=_0x863e7d(0x36f);const _0xe78ffa=ut,_0x2cefa1=Le-Ar,_0x401ba6=us-0x2*ut;if(_0xa960c1>_0x401ba6){let _0x5c1666='',_0x489e6f=0x0;for(const _0x3d9ce7 of _0x2a6d05){const _0x126c70=_0x436915[_0x863e7d(0x412)](_0x3d9ce7)[_0x863e7d(0x3a1)];if(_0x489e6f+_0x126c70<=_0x401ba6-_0x436915[_0x863e7d(0x412)]('...')[_0x863e7d(0x3a1)])_0x5c1666+=_0x3d9ce7,_0x489e6f+=_0x126c70;else{_0x5c1666+=_0x863e7d(0x211);break;}}_0x436915['fillText'](_0x5c1666,_0xe78ffa,_0x2cefa1);}else _0x436915[_0x863e7d(0x3be)](_0x2a6d05,_0xe78ffa,_0x2cefa1);_0x436915[_0x863e7d(0x2bb)]();}[_0xa6a604(0x495)](_0x58c485){st['drawWith'](_0x58c485,this);}}const dt=_0xa6a604(0x309),$r='collab-text-range-',jr='collab-rect-range-',De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr='rgba(255,\x20255,\x20255,\x200.01)';class ds{constructor(_0x2939fe,_0x45b8dd,_0x276276,_0x14e32f){const _0x59e706=_0xa6a604;l(this,'_shapes',[]),l(this,_0x59e706(0x3a4),null),l(this,_0x59e706(0x241),null),l(this,_0x59e706(0x306),null),l(this,_0x59e706(0x1ea),null),l(this,_0x59e706(0x2ed),null),(this['_cursor']=_0x2939fe,this['_scene']=_0x45b8dd,this[_0x59e706(0x289)]=_0x276276,this[_0x59e706(0x465)]=_0x14e32f,this[_0x59e706(0x36b)]());}set['_hover'](_0x14cbb8){const _0x23cf8c=_0xa6a604;_0x14cbb8?(this[_0x23cf8c(0x306)]&&this[_0x23cf8c(0x306)]['hide'](),this[_0x23cf8c(0x241)]&&this[_0x23cf8c(0x241)][_0x23cf8c(0x4d8)]()):(this['_anchorDot']&&this['_anchorDot'][_0x23cf8c(0x4d8)](),this[_0x23cf8c(0x241)]&&this[_0x23cf8c(0x241)]['hide']());}[_0xa6a604(0x4f4)](){const _0x22f9e8=_0xa6a604;for(const _0x88940 of this[_0x22f9e8(0x468)])_0x88940[_0x22f9e8(0x4f4)]();this['_textBubble']&&this[_0x22f9e8(0x241)][_0x22f9e8(0x4f4)](),this['_anchorDot']&&this[_0x22f9e8(0x306)][_0x22f9e8(0x4f4)](),this['_anchor']&&this[_0x22f9e8(0x3a4)][_0x22f9e8(0x4f4)](),this[_0x22f9e8(0x2ed)]&&this['_eventUnsubscribe']();}['_render'](){const _0x5e7ba0=_0xa6a604;var _0x5e0f1a;const {_docSkeleton:_0x3091de,_document:_0x48bbf8}=this,{color:_0x5c46fa,name:_0x2350f3,ranges:_0x89d627}=this[_0x5e7ba0(0x40e)],_0x48d03b=_0x48bbf8['getOffsetConfig'](),{docsLeft:_0x51c16f,docsTop:_0x11b222}=_0x48d03b,_0x524e57=new _0x3ae0b8(_0x48d03b,_0x3091de);for(const {startOffset:_0x109644,endOffset:_0x2763b3,collapsed:_0x37c74b,isActive:_0x5a0695}of _0x89d627){const _0xb857ef=_0x3091de[_0x5e7ba0(0x488)](_0x109644),_0x2a5b31=_0x3091de[_0x5e7ba0(0x488)](_0x2763b3);if(_0x5a0695){const {contentBoxPointGroup:_0x3008b5}=_0x524e57['getRangePointData'](_0x2a5b31,_0x2a5b31);if(_0x3008b5[_0x5e7ba0(0x391)]===0x0)continue;this[_0x5e7ba0(0x39a)](_0x5c46fa,_0x3008b5,_0x51c16f,_0x11b222,_0x2350f3),this[_0x5e7ba0(0x2ed)]=this[_0x5e7ba0(0x361)]();}if(!_0x37c74b&&_0xb857ef&&_0x2a5b31){if(_0x22164d(_0xb857ef,_0x2a5b31)){const _0x2d4155=new _0x489432(_0x48d03b,_0x3091de),{pointGroup:_0x41f58b}=(_0x5e0f1a=_0x2d4155[_0x5e7ba0(0x1f6)](_0xb857ef,_0x2a5b31))!=null?_0x5e0f1a:{};if(_0x41f58b==null||_0x41f58b['length']===0x0)continue;this[_0x5e7ba0(0x534)](_0x5c46fa,_0x41f58b,_0x51c16f,_0x11b222);}else{const {contentBoxPointGroup:_0x3b54d7}=_0x524e57[_0x5e7ba0(0x1f6)](_0xb857ef,_0x2a5b31);if(_0x3b54d7['length']===0x0)continue;this[_0x5e7ba0(0x487)](_0x5c46fa,_0x3b54d7,_0x51c16f,_0x11b222);}}}}['_drawAnchor'](_0x20d1a6,_0x2bf27e,_0x5b9cb3,_0x11e59f,_0x2c3ed7){const _0x15d453=_0xa6a604,_0x565d95=this['_getAnchorBounding'](_0x2bf27e),{left:_0x3c44b7,top:_0x2903f1,height:_0x534b5e}=_0x565d95,_0x2ea1d2=this[_0x15d453(0x39e)](),_0x4692d4=Hr/_0x2ea1d2,_0x58bbe6=new _0x2f5118(dt+_0x3c0ad5[_0x15d453(0x24c)](De),{'left':_0x3c44b7+_0x5b9cb3-_0x4692d4,'top':_0x2903f1+_0x11e59f,'height':_0x534b5e,'width':xr,'fill':_0x20d1a6||_0x3d1cbf(_0x343cac[_0x15d453(0x370)],0x0),'strokeWidth':_0x4692d4,'stroke':kr,'evented':!0x0});this[_0x15d453(0x3a4)]=_0x58bbe6,this[_0x15d453(0x420)][_0x15d453(0x4ba)](_0x58bbe6,_0x3284d2);const _0x43306b=new _0x2f5118(dt+_0x3c0ad5[_0x15d453(0x24c)](De),{'left':_0x3c44b7+_0x5b9cb3-_0x4692d4,'top':_0x2903f1+_0x11e59f-ft/0x2,'height':ft,'width':ft,'fill':_0x20d1a6||_0x3d1cbf(_0x343cac[_0x15d453(0x370)],0x0),'strokeWidth':0x0,'stroke':_0x20d1a6||_0x3d1cbf(_0x343cac['black'],0x0),'evented':!0x1});this[_0x15d453(0x306)]=_0x43306b,this[_0x15d453(0x420)][_0x15d453(0x4ba)](_0x43306b,_0x3284d2);const _0x2ecc84=new st(dt+_0x3c0ad5['generateRandomId'](De),{'left':_0x3c44b7+_0x5b9cb3-_0x4692d4,'top':_0x2903f1+_0x11e59f-Le,'text':_0x2c3ed7,'color':_0x20d1a6});this['_textBubble']=_0x2ecc84,this[_0x15d453(0x420)]['addObject'](_0x2ecc84,_0x3284d2),this[_0x15d453(0x460)]=!0x1;}[_0xa6a604(0x361)](){const _0xc232d4=_0xa6a604,_0x416f66=this['_anchor'][_0xc232d4(0x3b7)]['subscribeEvent'](()=>{const _0x4a8029=_0xc232d4;this[_0x4a8029(0x460)]=!0x0;}),_0x1392c6=this[_0xc232d4(0x3a4)][_0xc232d4(0x4aa)][_0xc232d4(0x220)](()=>{const _0x3778f3=_0xc232d4;this[_0x3778f3(0x1ea)]&&clearTimeout(this[_0x3778f3(0x1ea)]),this[_0x3778f3(0x1ea)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1634de=_0xc232d4;_0x416f66[_0x1634de(0x442)](),_0x1392c6['unsubscribe']();};}[_0xa6a604(0x487)](_0x1dce0f,_0x5286ad,_0x38b5c4,_0x5bbd14){const _0x4827b3=_0xa6a604,_0x5067a0=new _0x2385c0(_0x1dce0f)[_0x4827b3(0x320)](0.2)[_0x4827b3(0x413)](),_0x4e4a4a=new _0x500449($r+_0x3c0ad5[_0x4827b3(0x24c)](De),{'pointsGroup':_0x5286ad,'fill':_0x5067a0||_0x3d1cbf(_0x343cac[_0x4827b3(0x370)],0.2),'left':_0x38b5c4,'top':_0x5bbd14,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4e4a4a),this[_0x4827b3(0x420)][_0x4827b3(0x4ba)](_0x4e4a4a,_0x3284d2);}['_drawRectRange'](_0x194619,_0x4b5cbc,_0x11ee2f,_0xb75427){const _0x55a176=_0xa6a604,_0x3e2768=new _0x2385c0(_0x194619)[_0x55a176(0x320)](0.2)[_0x55a176(0x413)](),_0x47421a=new _0x500449(jr+_0x3c0ad5['generateRandomId'](De),{'pointsGroup':_0x4b5cbc,'fill':_0x3e2768||_0x3d1cbf(_0x343cac[_0x55a176(0x370)],0.2),'left':_0x11ee2f,'top':_0xb75427,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x55a176(0x468)][_0x55a176(0x539)](_0x47421a),this[_0x55a176(0x420)][_0x55a176(0x4ba)](_0x47421a,_0x3284d2);}['_getAnchorBounding'](_0x328d11){const _0xf0412a=_0x328d11[0x0],_0x48170e=_0xf0412a[0x0],_0x2bc731=_0xf0412a[0x2],{x:_0x7d438f,y:_0x1d8110}=_0x48170e,{x:_0x1b2c58,y:_0x201aca}=_0x2bc731;return{'left':_0x7d438f,'top':_0x1d8110,'width':_0x1b2c58-_0x7d438f,'height':_0x201aca-_0x1d8110};}[_0xa6a604(0x39e)](){const _0x2507b2=_0xa6a604,{scaleX:_0x49849d,scaleY:_0x4eda77}=this[_0x2507b2(0x420)][_0x2507b2(0x338)]();return Math[_0x2507b2(0x4c5)](_0x49849d,_0x4eda77);}}var Br=Object[_0xa6a604(0x222)],Vr=Object[_0xa6a604(0x4ce)],Fr=(_0x4dc8d4,_0x4a70c3,_0x3c7fbf,_0xe11823)=>{for(var _0xa59ea8=_0xe11823>0x1?void 0x0:_0xe11823?Vr(_0x4a70c3,_0x3c7fbf):_0x4a70c3,_0x8b6a6=_0x4dc8d4['length']-0x1,_0x2d961c;_0x8b6a6>=0x0;_0x8b6a6--)(_0x2d961c=_0x4dc8d4[_0x8b6a6])&&(_0xa59ea8=(_0xe11823?_0x2d961c(_0x4a70c3,_0x3c7fbf,_0xa59ea8):_0x2d961c(_0xa59ea8))||_0xa59ea8);return _0xe11823&&_0xa59ea8&&Br(_0x4a70c3,_0x3c7fbf,_0xa59ea8),_0xa59ea8;},xe=(_0x1f5a0c,_0x239785)=>(_0x17554a,_0x3931f4)=>_0x239785(_0x17554a,_0x3931f4,_0x1f5a0c);let Dt=class extends _0x48a1ad{constructor(_0x565f0a,_0x7e9c72,_0x56e031,_0x2d70c3,_0x27b82b){const _0x2449d4=_0xa6a604;super(),l(this,'_cursorShapes',[]),l(this,_0x2449d4(0x54c),[]),(this[_0x2449d4(0x21c)]=_0x565f0a,this[_0x2449d4(0x43f)]=_0x7e9c72,this[_0x2449d4(0x50b)]=_0x56e031,this['_commandService']=_0x2d70c3,this[_0x2449d4(0x403)]=_0x27b82b,this[_0x2449d4(0x21e)]());}[_0xa6a604(0x21e)](){const _0x4c0d0a=_0xa6a604,_0x990c89=this[_0x4c0d0a(0x21c)][_0x4c0d0a(0x2a5)],_0xeb4e0f=this['_docSkeletonManagerService'];this[_0x4c0d0a(0x4f3)](_0x161980([this[_0x4c0d0a(0x50b)][_0x4c0d0a(0x432)](_0x990c89),this[_0x4c0d0a(0x403)][_0x4c0d0a(0x2b9)]])[_0x4c0d0a(0x3b6)](_0x4beb38(([_0x52baa8,_0x54b31a])=>({'skeleton':_0xeb4e0f['getSkeleton'](),'cursors':[..._0x52baa8[_0x4c0d0a(0x261)]()]['flatMap'](_0x305fbb=>({..._0x305fbb,'color':_0x54b31a[_0x305fbb[_0x4c0d0a(0x510)]]}))})))['subscribe'](_0x38a0fa=>{const _0xdc7e12=_0x4c0d0a;if(this[_0xdc7e12(0x2d1)](),_0x38a0fa){const {skeleton:_0xb2703d,cursors:_0x360262}=_0x38a0fa;this[_0xdc7e12(0x4c0)](_0xb2703d,_0x360262);}})),this[_0x4c0d0a(0x29b)](),this[_0x4c0d0a(0x312)]();}[_0xa6a604(0x4c0)](_0x210a7c,_0x434158){const _0x3f9c1b=_0xa6a604,{scene:_0x550ef7,mainComponent:_0x497259}=this[_0x3f9c1b(0x21c)],_0xbe49d1=_0x434158[_0x3f9c1b(0x422)](_0x325e5e=>new ds(_0x325e5e,_0x550ef7,_0x210a7c,_0x497259));this['_cursorShapes']=_0xbe49d1,this[_0x3f9c1b(0x54c)]=_0x434158;}[_0xa6a604(0x3a9)](){const _0x51653f=_0xa6a604;this[_0x51653f(0x2d1)]();const {scene:_0x44c279,mainComponent:_0x13f388}=this[_0x51653f(0x21c)],_0x8c5fef=this[_0x51653f(0x43f)][_0x51653f(0x530)](),_0x62e86f=this[_0x51653f(0x54c)]['map'](_0x72afb5=>new ds(_0x72afb5,_0x44c279,_0x8c5fef,_0x13f388));this[_0x51653f(0x32a)]=_0x62e86f;}['_removeCollabCursors'](){const _0x3ce757=_0xa6a604;this[_0x3ce757(0x32a)][_0x3ce757(0x213)](_0x2289fa=>_0x2289fa[_0x3ce757(0x4f4)]()),this['_cursorShapes']=[];}[_0xa6a604(0x312)](){const _0x20f189=_0xa6a604,_0x41b362=[_0x54633a['id']];this[_0x20f189(0x4f3)](this['_commandService'][_0x20f189(0x365)](_0x294086=>{const _0x49de0f=_0x20f189;_0x41b362[_0x49de0f(0x2ac)](_0x294086['id'])&&_0x294086['params'][_0x49de0f(0x2a5)]===this[_0x49de0f(0x21c)][_0x49de0f(0x2a5)]&&this['_refreshCollabCursors']();}));}[_0xa6a604(0x29b)](){const _0x28dee8=_0xa6a604;this[_0x28dee8(0x4f3)](_0x41d8df(this[_0x28dee8(0x21c)][_0x28dee8(0x33c)][_0x28dee8(0x3c3)])[_0x28dee8(0x3b6)](_0x38e98e(_0x58872b=>_0x58872b[_0x28dee8(0x536)]===_0x2ae356[_0x28dee8(0x314)]),_0x20abf3(0x10))[_0x28dee8(0x426)](()=>{const _0x252264=_0x28dee8;this[_0x252264(0x3a9)]();}));}};Dt=Fr([xe(0x1,_0x160402(_0xae4148)),xe(0x2,_0x160402(pe)),xe(0x3,_0x5a0862),xe(0x4,_0x160402(_0x3ce7f6))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0x202b11{constructor(_0x10787d,_0x9f3e29){const _0x3f7640=_0xa6a604;super(_0x10787d,_0x9f3e29),l(this,_0x3f7640(0x526)),l(this,_0x3f7640(0x4bd),!0x1),l(this,'_range'),l(this,_0x3f7640(0x2cf),''),l(this,_0x3f7640(0x251),'top'),l(this,'_backgroundColor'),(_0x9f3e29&&this[_0x3f7640(0x2a0)](_0x9f3e29),this[_0x3f7640(0x3b7)][_0x3f7640(0x220)](()=>this[_0x3f7640(0x2a0)]({'hovered':!0x0})),this[_0x3f7640(0x4aa)][_0x3f7640(0x220)](()=>this[_0x3f7640(0x2a0)]({'hovered':!0x1})));}[_0xa6a604(0x2a0)](_0x520d2a){const _0x539c7e=_0xa6a604;var _0xf72fe9,_0x28d0bc,_0x5ce410,_0x1c204d,_0x2db74a,_0x4bcbbd;this[_0x539c7e(0x526)]=(_0xf72fe9=_0x520d2a[_0x539c7e(0x510)])!=null?_0xf72fe9:this[_0x539c7e(0x526)],this[_0x539c7e(0x4bd)]=(_0x28d0bc=_0x520d2a[_0x539c7e(0x4ee)])!=null?_0x28d0bc:this[_0x539c7e(0x4bd)],this[_0x539c7e(0x400)]=(_0x5ce410=_0x520d2a[_0x539c7e(0x49a)])!=null?_0x5ce410:this['_range'],this[_0x539c7e(0x2cf)]=(_0x1c204d=_0x520d2a['name'])!=null?_0x1c204d:this[_0x539c7e(0x2cf)],this[_0x539c7e(0x251)]=(_0x2db74a=_0x520d2a[_0x539c7e(0x3c4)])!=null?_0x2db74a:this[_0x539c7e(0x251)],this[_0x539c7e(0x287)]=(_0x4bcbbd=_0x520d2a['backgroundColor'])!=null?_0x4bcbbd:this[_0x539c7e(0x287)],this[_0x539c7e(0x342)]({'width':_0x520d2a[_0x539c7e(0x3a1)],'height':_0x520d2a[_0x539c7e(0x4b7)]});}[_0xa6a604(0x3f0)](_0x1e6361){const _0xc0b6b4=_0xa6a604,{row:_0x38532e,column:_0x48118f}=_0x1e6361;if(_0x38532e>=this[_0xc0b6b4(0x400)][_0xc0b6b4(0x228)]&&_0x38532e<=this[_0xc0b6b4(0x400)][_0xc0b6b4(0x51d)]&&_0x48118f>=this['_range'][_0xc0b6b4(0x4ad)]&&_0x48118f<=this['_range']['endColumn']){this[_0xc0b6b4(0x2a0)]({'hovered':!0x0});return;}this[_0xc0b6b4(0x2a0)]({'hovered':!0x1});}['triggerDblclick'](_0x1d66e0){return!0x1;}[_0xa6a604(0x495)](_0x72861c){const _0x160fe6=_0xa6a604;_0x2f5118[_0x160fe6(0x4fd)](_0x72861c,{'width':this[_0x160fe6(0x3a1)],'height':this['height'],'strokeWidth':Gr,'stroke':this[_0x160fe6(0x526)],'evented':!0x1,'fill':this[_0x160fe6(0x287)]}),this[_0x160fe6(0x4bd)]&&(_0x72861c['save'](),_0x72861c[_0x160fe6(0x3da)](0x1,0x0,0x0,0x1,this[_0x160fe6(0x3a1)],this[_0x160fe6(0x251)]===_0x160fe6(0x20f)?0x0:-Le),st['drawWith'](_0x72861c,{'text':this[_0x160fe6(0x2cf)],'color':this[_0x160fe6(0x526)]}),_0x72861c[_0x160fe6(0x2bb)]());}}var Kr=Object[_0xa6a604(0x222)],Xr=Object[_0xa6a604(0x4ce)],Jr=(_0x570ba2,_0x2928b7,_0x37918e,_0x27670a)=>{const _0x139699=_0xa6a604;for(var _0xe3faeb=_0x27670a>0x1?void 0x0:_0x27670a?Xr(_0x2928b7,_0x37918e):_0x2928b7,_0x2773ba=_0x570ba2[_0x139699(0x391)]-0x1,_0x154523;_0x2773ba>=0x0;_0x2773ba--)(_0x154523=_0x570ba2[_0x2773ba])&&(_0xe3faeb=(_0x27670a?_0x154523(_0x2928b7,_0x37918e,_0xe3faeb):_0x154523(_0xe3faeb))||_0xe3faeb);return _0x27670a&&_0xe3faeb&&Kr(_0x2928b7,_0x37918e,_0xe3faeb),_0xe3faeb;},mt=(_0xcfe943,_0x11104c)=>(_0x3adab2,_0x5f0b41)=>_0x11104c(_0x3adab2,_0x5f0b41,_0xcfe943);const qr=0x1389;let wt=class extends _0x48a1ad{constructor(_0x365bda,_0x450c4c,_0x20411f,_0x5f0467){const _0x2ceb85=_0xa6a604;super(),l(this,_0x2ceb85(0x54c),new Set()),l(this,_0x2ceb85(0x2c5),null),(this[_0x2ceb85(0x21c)]=_0x365bda,this['_sheetSkeletonManagerService']=_0x450c4c,this[_0x2ceb85(0x50b)]=_0x20411f,this['_themeService']=_0x5f0467,this[_0x2ceb85(0x21e)]());}[_0xa6a604(0x21e)](){const _0x51a365=_0xa6a604;this[_0x51a365(0x2bf)][_0x51a365(0x3a8)][_0x51a365(0x3b6)](_0x4c0c8e(this[_0x51a365(0x424)]),_0x481de6(_0x3a56c2=>{const _0x43d2a8=_0x51a365;if(_0x3a56c2){const _0x59196a=_0x3a56c2[_0x43d2a8(0x212)];return _0x161980(this[_0x43d2a8(0x50b)]['getCollabCursors$'](this['_context'][_0x43d2a8(0x2a5)]),this[_0x43d2a8(0x403)][_0x43d2a8(0x2b9)])[_0x43d2a8(0x3b6)](_0x4beb38(([_0x285c35,_0x2ab410])=>{const _0x2da7a9=_0x43d2a8,_0x2964a3=new Map();return _0x285c35[_0x2da7a9(0x213)]((_0x1e4c44,_0x3229c3)=>{const _0xc2b7f8=_0x2da7a9;if(_0x1e4c44[_0xc2b7f8(0x39d)]===_0x59196a){const _0x522a29={..._0x1e4c44};_0x522a29[_0xc2b7f8(0x510)]=_0x2ab410[_0x1e4c44[_0xc2b7f8(0x510)]],_0x2964a3[_0xc2b7f8(0x455)](_0x3229c3,_0x522a29);}}),{'skeleton':_0x3a56c2,'cursors':_0x2964a3};}));}return _0x3a75ff({'skeleton':null,'cursors':new Map()});}))[_0x51a365(0x426)](({skeleton:_0x53bea5,cursors:_0x1173fe})=>{const _0x33d738=_0x51a365;this['_removeCollabCursors'](),_0x53bea5&&this[_0x33d738(0x4c0)](_0x53bea5,_0x1173fe);}),this[_0x51a365(0x2bf)][_0x51a365(0x3a8)]['subscribe'](_0x373b58=>{const _0x20b9f2=_0x51a365;if(_0x373b58==null)return;const {skeleton:_0x2b29d0}=_0x373b58,{scene:_0x4fe8bc}=this[_0x20b9f2(0x21c)];_0x4fe8bc['onPointerMove$'][_0x20b9f2(0x220)](_0x30da7c(_0x1cd2db=>{const _0x37503f=_0x20b9f2;var _0x28cc87,_0x255869;const {offsetX:_0x23ba42,offsetY:_0x217024}=_0x1cd2db,{x:_0x13f74e,y:_0x5de36d}=_0x4fe8bc[_0x37503f(0x382)](_0x1811c0[_0x37503f(0x28a)]([_0x23ba42,_0x217024])),{scaleX:_0x4f88d1,scaleY:_0xb3d7b5}=_0x4fe8bc[_0x37503f(0x338)](),_0x235ab6=_0x4fe8bc['getViewport'](_0x34ad61[_0x37503f(0x532)]),_0x2e1137=_0x4fe8bc['getVpScrollXYInfoByPosToVp'](_0x1811c0['FromArray']([_0x13f74e,_0x5de36d]),_0x235ab6),_0x4eba1d=_0x2b29d0[_0x37503f(0x4a3)](_0x23ba42,_0x217024,_0x4f88d1,_0xb3d7b5,_0x2e1137);((_0x28cc87=this['_lastPointer'])==null?void 0x0:_0x28cc87[_0x37503f(0x229)])===_0x4eba1d['column']&&((_0x255869=this[_0x37503f(0x2c5)])==null?void 0x0:_0x255869['row'])===_0x4eba1d[_0x37503f(0x474)]||this[_0x37503f(0x54c)][_0x37503f(0x213)](_0x58626f=>{const _0x432943=_0x37503f;_0x58626f[_0x432943(0x3f0)](_0x4eba1d);});},0x64));});}[_0xa6a604(0x4c0)](_0x5ef6ea,_0x5cd851){const _0x4b5031=_0xa6a604;var _0x4b4ec4;const _0x3123a0=(_0x4b4ec4=this[_0x4b5031(0x2bf)][_0x4b5031(0x477)]())==null?void 0x0:_0x4b4ec4['skeleton'];if(!_0x3123a0)return;const _0x2719a8=this['_getSheetObject']();if(!_0x2719a8)return;this[_0x4b5031(0x54c)][_0x4b5031(0x213)](_0x136cd9=>{const _0x573a98=_0x4b5031;_0x136cd9[_0x573a98(0x2a7)]();});const {scene:_0x4be60b}=_0x2719a8,_0x383873=zr(Array[_0x4b5031(0x281)](_0x5cd851[_0x4b5031(0x261)]()))['map'](_0x1e5eb8=>{const _0x1508fe=_0x4b5031,{color:_0x404e01,range:_0x5b6274,name:_0x3831d5,selection:_0x38ffcd,sheetID:_0x441aa9}=_0x1e5eb8,{startColumn:_0xc0f46b,startRow:_0x4d9bc4,endColumn:_0x5ab3cf,endRow:_0x575a80}=_0x5b6274,_0x501f5f=_0x35d811(_0x4d9bc4,_0xc0f46b,_0x4be60b,_0x3123a0),_0x2b80fd=_0x35d811(_0x575a80,_0x5ab3cf,_0x4be60b,_0x3123a0),{columnHeaderHeightAndMarginTop:_0x5c3404}=_0x3123a0,{startX:_0x348da3,startY:_0x4d8a91}=_0x501f5f,{endX:_0x5c74f3,endY:_0x4814ca}=_0x2b80fd,_0x3be5be=_0x5c74f3-_0x348da3,_0x101a2a=_0x4814ca-_0x4d8a91,_0x4ec29d={'labelPosition':_0x4d8a91-_0x5c3404>=Le?_0x1508fe(0x439):'bottom','sheetID':_0x441aa9,'range':_0x5b6274,'color':_0x404e01,'name':_0x3831d5,'selection':_0x38ffcd,'left':_0x348da3,'top':_0x4d8a91,'width':_0x3be5be,'height':_0x101a2a,'evented':!0x1,'zIndex':qr};return new Yr(_0x3831d5,_0x4ec29d);});_0x4be60b[_0x4b5031(0x362)](_0x383873,Wr),this[_0x4b5031(0x54c)]=new Set(_0x383873);}[_0xa6a604(0x2d1)](){const _0x286595=_0xa6a604;var _0x7ab3af;(_0x7ab3af=this[_0x286595(0x54c)])==null||_0x7ab3af[_0x286595(0x213)](_0x20c7ba=>_0x20c7ba[_0x286595(0x4f4)]());}[_0xa6a604(0x415)](){const _0x276b73=_0xa6a604;return _0x255eaf(this[_0x276b73(0x21c)][_0x276b73(0x1e5)],this[_0x276b73(0x21c)]);}};wt=Jr([mt(0x1,_0x160402(_0x2e7833)),mt(0x2,_0x160402(pe)),mt(0x3,_0x160402(_0x3ce7f6))],wt);function zr(_0x40b1fd){const _0x18b0a3=_0xa6a604,_0x238852=new Map();return _0x40b1fd[_0x18b0a3(0x213)](_0x7b5bbe=>{const _0xb42dbb=_0x18b0a3;if(_0x238852[_0xb42dbb(0x1f9)](_0x7b5bbe[_0xb42dbb(0x433)])){const _0x11f981=_0x238852[_0xb42dbb(0x504)](_0x7b5bbe[_0xb42dbb(0x433)]);_0x11f981[_0xb42dbb(0x3cb)]+=',\x20'+_0x7b5bbe['name'];}else _0x238852[_0xb42dbb(0x455)](_0x7b5bbe[_0xb42dbb(0x433)],_0x7b5bbe);}),Array[_0x18b0a3(0x281)](_0x238852[_0x18b0a3(0x261)]());}var N=function(){const _0x1d59a0=_0xa6a604;return N=Object[_0x1d59a0(0x20d)]||function(_0x5d79aa){const _0x4611de=_0x1d59a0;for(var _0x17e707,_0x20d5ff=0x1,_0x467956=arguments['length'];_0x20d5ff<_0x467956;_0x20d5ff++){_0x17e707=arguments[_0x20d5ff];for(var _0x4c6d8a in _0x17e707)Object[_0x4611de(0x223)][_0x4611de(0x481)][_0x4611de(0x24f)](_0x17e707,_0x4c6d8a)&&(_0x5d79aa[_0x4c6d8a]=_0x17e707[_0x4c6d8a]);}return _0x5d79aa;},N[_0x1d59a0(0x384)](this,arguments);},Zr=function(_0x4c9bed,_0x55feee){const _0xd27fed=_0xa6a604;var _0x3b1711={};for(var _0x102b19 in _0x4c9bed)Object['prototype']['hasOwnProperty']['call'](_0x4c9bed,_0x102b19)&&_0x55feee[_0xd27fed(0x458)](_0x102b19)<0x0&&(_0x3b1711[_0x102b19]=_0x4c9bed[_0x102b19]);if(_0x4c9bed!=null&&typeof Object['getOwnPropertySymbols']==_0xd27fed(0x2f3)){for(var _0x49b242=0x0,_0x102b19=Object['getOwnPropertySymbols'](_0x4c9bed);_0x49b242<_0x102b19[_0xd27fed(0x391)];_0x49b242++)_0x55feee[_0xd27fed(0x458)](_0x102b19[_0x49b242])<0x0&&Object[_0xd27fed(0x223)][_0xd27fed(0x29a)][_0xd27fed(0x24f)](_0x4c9bed,_0x102b19[_0x49b242])&&(_0x3b1711[_0x102b19[_0x49b242]]=_0x4c9bed[_0x102b19[_0x49b242]]);}return _0x3b1711;},Wt=_0x39d2df(function(_0x2e7bd5,_0x25365a){const _0xe8c1f=_0xa6a604;var _0x2a5fb7=_0x2e7bd5[_0xe8c1f(0x500)],_0x5b81b6=_0x2e7bd5['id'],_0x3f01e1=_0x2e7bd5[_0xe8c1f(0x2f1)],_0x4442f5=_0x2e7bd5[_0xe8c1f(0x3d4)],_0x4bea71=Zr(_0x2e7bd5,[_0xe8c1f(0x500),'id',_0xe8c1f(0x2f1),_0xe8c1f(0x3d4)]),_0x433029=_0xe8c1f(0x2d3)[_0xe8c1f(0x35d)](_0x5b81b6,'\x20')['concat'](_0x3f01e1||'')[_0xe8c1f(0x508)](),_0x1cb80c=_0x3b887a('_'['concat'](to()));return ks(_0x2a5fb7,''[_0xe8c1f(0x35d)](_0x5b81b6),{'defIds':_0x2a5fb7[_0xe8c1f(0x368)],'idSuffix':_0x1cb80c[_0xe8c1f(0x46f)]},N({'ref':_0x25365a,'className':_0x433029},_0x4bea71),_0x4442f5);});function ks(_0xa01993,_0x54669f,_0x46dcc7,_0x2c94fe,_0x5e248c){const _0x12af24=_0xa6a604;return _0x52237d(_0xa01993['tag'],N(N({'key':_0x54669f},Qr(_0xa01993,_0x46dcc7,_0x5e248c)),_0x2c94fe),(eo(_0xa01993,_0x46dcc7)[_0x12af24(0x4f7)]||[])['map'](function(_0xc35f16,_0x336d06){const _0x183acb=_0x12af24;return ks(_0xc35f16,''[_0x183acb(0x35d)](_0x54669f,'-')[_0x183acb(0x35d)](_0xa01993['tag'],'-')['concat'](_0x336d06),_0x46dcc7,void 0x0,_0x5e248c);}));}function Qr(_0x1b4def,_0x12ed70,_0x47c1b8){const _0x7581c7=_0xa6a604;var _0xef3380=N({},_0x1b4def['attrs']);_0x47c1b8!=null&&_0x47c1b8['colorChannel1']&&_0xef3380['fill']===_0x7581c7(0x323)&&(_0xef3380[_0x7581c7(0x3e2)]=_0x47c1b8[_0x7581c7(0x323)]);var _0x3ae656=_0x12ed70[_0x7581c7(0x368)];return!_0x3ae656||_0x3ae656[_0x7581c7(0x391)]===0x0||(_0x1b4def[_0x7581c7(0x42f)]===_0x7581c7(0x476)&&_0xef3380[_0x7581c7(0x4c1)]&&(_0xef3380[_0x7581c7(0x4c1)]=_0xef3380[_0x7581c7(0x4c1)]+_0x12ed70[_0x7581c7(0x1f1)]),Object[_0x7581c7(0x296)](_0xef3380)[_0x7581c7(0x213)](function(_0x308bae){const _0x45079a=_0x7581c7;var _0xa8701a=_0x308bae[0x0],_0xae3590=_0x308bae[0x1];typeof _0xae3590==_0x45079a(0x3ec)&&(_0xef3380[_0xa8701a]=_0xae3590['replace'](/url\(#(.*)\)/,'url(#$1'[_0x45079a(0x35d)](_0x12ed70[_0x45079a(0x1f1)],')')));})),_0xef3380;}function eo(_0xcdf576,_0x53183a){const _0x49f909=_0xa6a604;var _0x2c9684,_0x32d052=_0x53183a[_0x49f909(0x368)];return!_0x32d052||_0x32d052['length']===0x0?_0xcdf576:_0xcdf576['tag']==='defs'&&(!((_0x2c9684=_0xcdf576['children'])===null||_0x2c9684===void 0x0)&&_0x2c9684['length'])?N(N({},_0xcdf576),{'children':_0xcdf576[_0x49f909(0x4f7)][_0x49f909(0x422)](function(_0x580ad8){const _0x261757=_0x49f909;return typeof _0x580ad8['attrs']['id']==_0x261757(0x3ec)&&_0x32d052&&_0x32d052[_0x261757(0x458)](_0x580ad8[_0x261757(0x478)]['id'])>-0x1?N(N({},_0x580ad8),{'attrs':N(N({},_0x580ad8['attrs']),{'id':_0x580ad8[_0x261757(0x478)]['id']+_0x53183a[_0x261757(0x1f1)]})}):_0x580ad8;})}):_0xcdf576;}function to(){const _0x291f93=_0xa6a604;return Math['random']()[_0x291f93(0x3ed)](0x24)[_0x291f93(0x2ba)](0x2,0x8);}Wt[_0xa6a604(0x523)]=_0xa6a604(0x483);var so={'tag':_0xa6a604(0x245),'attrs':{'fill':_0xa6a604(0x3ff),'viewBox':_0xa6a604(0x2c9),'width':'1em','height':_0xa6a604(0x21a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0xa6a604(0x431),'attrs':{'stroke':_0xa6a604(0x34d),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0xa6a604(0x34a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa6a604(0x3b2),'attrs':{},'children':[{'tag':_0xa6a604(0x217),'attrs':{'id':_0xa6a604(0x47f)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0xa6a604(0x23e)}}]}]}],'defIds':[_0xa6a604(0x47f)]},Bs=_0x39d2df(function(_0x1236bf,_0x55ff22){const _0x1f3327=_0xa6a604;return _0x52237d(Wt,Object[_0x1f3327(0x20d)]({},_0x1236bf,{'id':_0x1f3327(0x334),'ref':_0x55ff22,'icon':so}));});Bs['displayName']=_0xa6a604(0x4b1);var io={'tag':_0xa6a604(0x245),'attrs':{'fill':_0xa6a604(0x3ff),'viewBox':'0\x200\x2017\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xa6a604(0x3f1)},'children':[{'tag':_0xa6a604(0x431),'attrs':{'stroke':_0xa6a604(0x34d),'d':_0xa6a604(0x4a9),'strokeLinecap':_0xa6a604(0x34a),'strokeLinejoin':_0xa6a604(0x34a),'strokeWidth':1.2}}]},{'tag':_0xa6a604(0x3b2),'attrs':{},'children':[{'tag':_0xa6a604(0x217),'attrs':{'id':_0xa6a604(0x4b3)},'children':[{'tag':_0xa6a604(0x431),'attrs':{'fill':'#fff','d':_0xa6a604(0x23e),'transform':_0xa6a604(0x369)}}]}]}],'defIds':[_0xa6a604(0x4b3)]},Vs=_0x39d2df(function(_0x2a56ff,_0x1d0b8b){const _0xd0766c=_0xa6a604;return _0x52237d(Wt,Object[_0xd0766c(0x20d)]({},_0x2a56ff,{'id':_0xd0766c(0x2da),'ref':_0x1d0b8b,'icon':io}));});Vs[_0xa6a604(0x523)]='OnLineSingle';function Fs(_0x5b3925){const _0x2e82c5=_0xa6a604;var _0x1aa8c8,_0x24cc26,_0x1bb598='';if(typeof _0x5b3925==_0x2e82c5(0x3ec)||typeof _0x5b3925==_0x2e82c5(0x45f))_0x1bb598+=_0x5b3925;else{if(typeof _0x5b3925==_0x2e82c5(0x329)){if(Array[_0x2e82c5(0x2f8)](_0x5b3925)){var _0x97e68e=_0x5b3925['length'];for(_0x1aa8c8=0x0;_0x1aa8c8<_0x97e68e;_0x1aa8c8++)_0x5b3925[_0x1aa8c8]&&(_0x24cc26=Fs(_0x5b3925[_0x1aa8c8]))&&(_0x1bb598&&(_0x1bb598+='\x20'),_0x1bb598+=_0x24cc26);}else{for(_0x24cc26 in _0x5b3925)_0x5b3925[_0x24cc26]&&(_0x1bb598&&(_0x1bb598+='\x20'),_0x1bb598+=_0x24cc26);}}}return _0x1bb598;}function no(){const _0x589024=_0xa6a604;for(var _0x420812,_0x55436a,_0x3842c6=0x0,_0x2b412f='',_0x5012da=arguments[_0x589024(0x391)];_0x3842c6<_0x5012da;_0x3842c6++)(_0x420812=arguments[_0x3842c6])&&(_0x55436a=Fs(_0x420812))&&(_0x2b412f&&(_0x2b412f+='\x20'),_0x2b412f+=_0x55436a);return _0x2b412f;}const ro='univer-online-status-icon',oo=_0xa6a604(0x464),ao=_0xa6a604(0x498),co=_0xa6a604(0x471),ho=_0xa6a604(0x4a8),we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x110544){const _0x224b68=_0xa6a604;switch(_0x110544){case w[_0x224b68(0x210)]:return'collabStatus.offline';case w['CONFLICT']:return _0x224b68(0x28f);case w[_0x224b68(0x202)]:return _0x224b68(0x4fa);case w[_0x224b68(0x41b)]:return'collabStatus.notCollab';case w[_0x224b68(0x4a5)]:case w[_0x224b68(0x3a3)]:case w[_0x224b68(0x364)]:return _0x224b68(0x27c);case w[_0x224b68(0x2b2)]:return _0x224b68(0x29f);}}function _o(_0x3f30a7){const _0x424756=_0xa6a604,{status$:_0x2db81e}=_0x3f30a7,_0x1d8d6e=_0x4bb038(_0x2db81e,w[_0x424756(0x41b)]),_0x59b500=_0x36782d(_0x2f3b7b),_0x2bbe11=_0x36782d(ce),_0x4cc2de=_0x1d8d6e!==w[_0x424756(0x210)],_0x4a93dc=_0x59b500['t'](lo(_0x1d8d6e)),_0xa5c3ad=no(we[_0x424756(0x262)],{[we[_0x424756(0x343)]]:_0x4cc2de,[we['offline']]:!_0x4cc2de}),_0x5287f8=_0x4cc2de?_0x369a6b[_0x424756(0x522)](Vs,null):_0x369a6b[_0x424756(0x522)](Bs,null),_0x15056b=_0x2836d2(()=>{const _0x1503de=_0x424756;_0x4cc2de||_0x2bbe11[_0x1503de(0x237)]();},[_0x4cc2de,_0x2bbe11]);function _0x3163d2(){const _0x44318d=_0x424756;return _0x369a6b['createElement']('div',{'className':_0xa5c3ad,'onClick':_0x15056b},_0x369a6b[_0x44318d(0x522)](_0x44318d(0x375),{'className':we['onlineStatusIcon']},_0x5287f8),_0x369a6b[_0x44318d(0x522)](_0x44318d(0x375),{'className':we[_0x44318d(0x416)]},_0x4a93dc));}return _0x4cc2de?_0x3163d2():_0x369a6b['createElement'](_0x4977ae,{'title':_0x59b500['t']('collab-client.tooltip.reconnect')},_0x3163d2());}function _0x40a3(_0x10e2d7,_0x49eda0){const _0x725199=_0x7251();return _0x40a3=function(_0x40a394,_0x6606ca){_0x40a394=_0x40a394-0x1e1;let _0x44917e=_0x725199[_0x40a394];return _0x44917e;},_0x40a3(_0x10e2d7,_0x49eda0);}var uo=Object[_0xa6a604(0x222)],fo=Object[_0xa6a604(0x4ce)],mo=(_0x479a7c,_0x286577,_0x825329,_0x4b6d7d)=>{const _0x1755d7=_0xa6a604;for(var _0x121d50=_0x4b6d7d>0x1?void 0x0:_0x4b6d7d?fo(_0x286577,_0x825329):_0x286577,_0x22b384=_0x479a7c[_0x1755d7(0x391)]-0x1,_0x5ded87;_0x22b384>=0x0;_0x22b384--)(_0x5ded87=_0x479a7c[_0x22b384])&&(_0x121d50=(_0x4b6d7d?_0x5ded87(_0x286577,_0x825329,_0x121d50):_0x5ded87(_0x121d50))||_0x121d50);return _0x4b6d7d&&_0x121d50&&uo(_0x286577,_0x825329,_0x121d50),_0x121d50;},He=(_0x116dc7,_0x31ad1f)=>(_0xdcbdc7,_0x551f61)=>_0x31ad1f(_0xdcbdc7,_0x551f61,_0x116dc7);let Ue=class extends _0x252360{constructor(_0x9d0d70,_0x547d64,_0x44e49e,_0x18c316){const _0x3d1b72=_0xa6a604;super(),l(this,'_status$',new _0x3d8ff6(w[_0x3d1b72(0x41b)])),(this[_0x3d1b72(0x1fd)]=_0x9d0d70,this[_0x3d1b72(0x4b0)]=_0x547d64,this['_injector']=_0x44e49e,this[_0x3d1b72(0x46e)]=_0x18c316,this[_0x3d1b72(0x4ab)](),this[_0x3d1b72(0x1f7)]());}[_0xa6a604(0x1f7)](){const _0x5e1ddb=_0xa6a604;this['disposeWithMe'](this[_0x5e1ddb(0x1fd)][_0x5e1ddb(0x401)][_0x5e1ddb(0x3b6)](_0x26d305(()=>{const _0x92375c=_0x5e1ddb,_0x5777ac=this[_0x92375c(0x1fd)][_0x92375c(0x2a3)]();return _0x5777ac?this[_0x92375c(0x46e)][_0x92375c(0x23a)](_0x5777ac['getUnitId']()):_0x3a75ff(null);}),_0x26d305(_0x13dca8=>_0x13dca8?_0x13dca8[_0x5e1ddb(0x23c)]:_0x3a75ff(w['NOT_COLLAB'])))[_0x5e1ddb(0x426)](_0x5cc8f3=>{const _0x27a878=_0x5e1ddb;this[_0x27a878(0x26e)]['next'](_0x5cc8f3);}));}[_0xa6a604(0x4ab)](){const _0x2a660b=_0xa6a604;this['disposeWithMe'](this['_uiPartsService'][_0x2a660b(0x388)](_0x3d8424[_0x2a660b(0x429)],()=>_0x1e6371(go({'status$':this[_0x2a660b(0x26e)][_0x2a660b(0x294)]()}),this[_0x2a660b(0x35a)])));}};Ue=mo([He(0x0,_0x33adea),He(0x1,_0x438994),He(0x2,_0x160402(_0x283cc6)),He(0x3,_0x160402(Ae))],Ue);function go(_0xea49d4){const {status$:_0x1759db}=_0xea49d4;return function(){return _0x369a6b['createElement'](_o,{'status$':_0x1759db});};}const Ws=_0x33c554(_0xa6a604(0x2f6));var So=Object[_0xa6a604(0x222)],po=Object['getOwnPropertyDescriptor'],vo=(_0x1f24ca,_0x499b8e,_0x3f1c2e,_0x4c3b72)=>{const _0x13cc65=_0xa6a604;for(var _0x11ca45=_0x4c3b72>0x1?void 0x0:_0x4c3b72?po(_0x499b8e,_0x3f1c2e):_0x499b8e,_0x37651b=_0x1f24ca[_0x13cc65(0x391)]-0x1,_0x72d0d5;_0x37651b>=0x0;_0x37651b--)(_0x72d0d5=_0x1f24ca[_0x37651b])&&(_0x11ca45=(_0x4c3b72?_0x72d0d5(_0x499b8e,_0x3f1c2e,_0x11ca45):_0x72d0d5(_0x11ca45))||_0x11ca45);return _0x4c3b72&&_0x11ca45&&So(_0x499b8e,_0x3f1c2e,_0x11ca45),_0x11ca45;},me=(_0x26b689,_0x4f995d)=>(_0x169e8c,_0x52a930)=>_0x4f995d(_0x169e8c,_0x52a930,_0x26b689);let qe=class extends _0x48a1ad{constructor(_0x13ec53,_0x29bdfe,_0x1641e4,_0x483dc1,_0xcfb994,_0x28a4f7){const _0x22fa1c=_0xa6a604;super(),this[_0x22fa1c(0x2be)]=_0x13ec53,this[_0x22fa1c(0x493)]=_0x29bdfe,this[_0x22fa1c(0x4d3)]=_0x1641e4,this[_0x22fa1c(0x302)]=_0x483dc1,this['_snapshotService']=_0xcfb994,_0x28a4f7?_0x28a4f7==null||_0x28a4f7[_0x22fa1c(0x298)]()[_0x22fa1c(0x232)](()=>this[_0x22fa1c(0x21e)]()):(this[_0x22fa1c(0x493)][_0x22fa1c(0x408)]('[DataLoaderController]',_0x22fa1c(0x31b)),this[_0x22fa1c(0x21e)]());}async[_0xa6a604(0x21e)](){const _0x44fa4d=_0xa6a604,_0x13bf56=this['_urlService']['getParam'](_0x44fa4d(0x1e5)),_0x3d374b=this[_0x44fa4d(0x2be)][_0x44fa4d(0x4ed)](_0x44fa4d(0x536));if(!_0x13bf56||!_0x3d374b){this[_0x44fa4d(0x493)]['debug']('[DataLoaderController]',_0x44fa4d(0x4f6));return;}switch(Number(_0x3d374b)){case H[_0x44fa4d(0x48b)]:{const _0x1b3f49=await this[_0x44fa4d(0x3f6)](_0x13bf56);this[_0x44fa4d(0x48f)](_0x1b3f49);break;}case H[_0x44fa4d(0x1eb)]:{await this[_0x44fa4d(0x521)](_0x13bf56);break;}default:{this[_0x44fa4d(0x493)][_0x44fa4d(0x3f7)]('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0xa6a604(0x48f)](_0x4f0a79){const _0x3c950c=_0xa6a604;await this[_0x3c950c(0x21b)](_0x4f0a79),_0x4f0a79[_0x3c950c(0x524)][_0x3c950c(0x3b6)](_0x23bb2f(this[_0x3c950c(0x424)]))[_0x3c950c(0x426)](_0x23fc0d=>{const _0x1e09d9=_0x3c950c;_0x23fc0d&&this[_0x1e09d9(0x4ae)](_0x23fc0d);}),this['_urlService'][_0x3c950c(0x36c)]['pipe'](_0x23bb2f(this[_0x3c950c(0x424)]))['subscribe'](()=>this[_0x3c950c(0x21b)](_0x4f0a79));}[_0xa6a604(0x4ae)](_0x1de344,_0x2c643d=!0x1){const _0x4948ce=_0xa6a604,_0x1b9c94=this[_0x4948ce(0x2be)][_0x4948ce(0x4ed)]('subunit');_0x1de344['getSheetId']()!==_0x1b9c94&&this['_urlService'][_0x4948ce(0x3ad)]('subunit',_0x1de344[_0x4948ce(0x406)](),_0x2c643d);}async[_0xa6a604(0x21b)](_0x573348){const _0x5d80d2=_0xa6a604;var _0x449e7b;const _0x54ed5a=this['_urlService']['getParam'](_0x5d80d2(0x446));if(!_0x54ed5a||!_0x573348['getSheetBySheetId'](_0x54ed5a)){const _0x2d225a=_0x573348[_0x5d80d2(0x40b)]()[0x0],_0xa31b5f=_0x573348[_0x5d80d2(0x3b3)](_0x2d225a);if(!_0xa31b5f)return;this[_0x5d80d2(0x4ae)](_0xa31b5f,!0x0),await this['_commandService'][_0x5d80d2(0x352)](_0x3ecee7['id'],{'unitId':_0x573348[_0x5d80d2(0x203)](),'subUnitId':_0x2d225a});return;}((_0x449e7b=_0x573348['getActiveSheet']())==null?void 0x0:_0x449e7b['getSheetId']())!==_0x54ed5a&&await this[_0x5d80d2(0x4d3)][_0x5d80d2(0x352)](_0x3ecee7['id'],{'unitId':_0x573348[_0x5d80d2(0x203)](),'subUnitId':_0x54ed5a});}async[_0xa6a604(0x3f6)](_0x27c3f2){const _0x9af596=_0xa6a604;let _0x381e92=0x0;const _0x5b5b0b=await this['_localCacheService'][_0x9af596(0x4ac)](_0x27c3f2);return _0x5b5b0b&&(_0x5b5b0b[_0x9af596(0x33a)]||_0x5b5b0b[_0x9af596(0x2ce)]['length']!==0x0)&&(_0x381e92=_0x5b5b0b[_0x9af596(0x38f)]),_0x381e92===0x0&&this[_0x9af596(0x493)]['debug'](_0x9af596(0x38b),_0x9af596(0x4be)),this[_0x9af596(0x23b)][_0x9af596(0x295)](_0x27c3f2,_0x381e92);}async[_0xa6a604(0x521)](_0x20bc29){const _0x1fdeac=_0xa6a604;let _0x48afe3=0x0;const _0x57a925=await this[_0x1fdeac(0x302)][_0x1fdeac(0x4ac)](_0x20bc29);return _0x57a925&&(_0x57a925['awaitingChangeset']||_0x57a925[_0x1fdeac(0x2ce)][_0x1fdeac(0x391)]!==0x0)&&(_0x48afe3=_0x57a925[_0x1fdeac(0x38f)]),_0x48afe3===0x0&&this[_0x1fdeac(0x493)][_0x1fdeac(0x408)](_0x1fdeac(0x38b),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x1fdeac(0x23b)][_0x1fdeac(0x4ff)](_0x20bc29,_0x48afe3);}};qe=vo([me(0x0,Ws),me(0x1,_0x4e432b),me(0x2,_0x5a0862),me(0x3,_0x160402(D)),me(0x4,_0x160402(_0x1e34c6)),me(0x5,_0x363100(_0x44b35c))],qe);var Io=Object['defineProperty'],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x31d0af,_0xaae3a9,_0x24e0e5,_0x688283)=>{const _0xfc5d51=_0xa6a604;for(var _0x11a2b9=_0x688283>0x1?void 0x0:_0x688283?Eo(_0xaae3a9,_0x24e0e5):_0xaae3a9,_0x8b789=_0x31d0af[_0xfc5d51(0x391)]-0x1,_0x39f4d5;_0x8b789>=0x0;_0x8b789--)(_0x39f4d5=_0x31d0af[_0x8b789])&&(_0x11a2b9=(_0x688283?_0x39f4d5(_0xaae3a9,_0x24e0e5,_0x11a2b9):_0x39f4d5(_0x11a2b9))||_0x11a2b9);return _0x688283&&_0x11a2b9&&Io(_0xaae3a9,_0x24e0e5,_0x11a2b9),_0x11a2b9;},fs=(_0x4d582b,_0x17094a)=>(_0x3bd2c3,_0x2f5b62)=>_0x17094a(_0x3bd2c3,_0x2f5b62,_0x4d582b);const bo=_0xa6a604(0x332),To=_0xa6a604(0x324);let ze=class extends _0x252360{constructor(_0x4e9e57,_0x4ec848){const _0x57a395=_0xa6a604;super(),this[_0x57a395(0x1fd)]=_0x4e9e57,this[_0x57a395(0x325)]=_0x4ec848,this[_0x57a395(0x21e)]();}['_init'](){const _0x52cc79=_0xa6a604;this[_0x52cc79(0x4f3)](this['_univerInstanceService'][_0x52cc79(0x401)][_0x52cc79(0x426)](()=>{const _0x2d95a9=_0x52cc79;var _0xa4199f;const _0x2c2422=this[_0x2d95a9(0x1fd)]['getFocusedUnit']();let _0x5ac4d8=(_0xa4199f=this[_0x2d95a9(0x325)]['getConfig'](bo))!=null?_0xa4199f:To;_0x2c2422 instanceof _0x370cd1&&(_0x5ac4d8=_0x2c2422[_0x2d95a9(0x3cb)]),document[_0x2d95a9(0x3f4)]=_0x5ac4d8;}));}};ze=Co([fs(0x0,_0x33adea),fs(0x1,_0x123c7a)],ze);var Ro=Object[_0xa6a604(0x222)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x4db197,_0x5683ed,_0x2b70a9,_0x5cbdf9)=>{for(var _0x3f2103=_0x5cbdf9>0x1?void 0x0:_0x5cbdf9?Oo(_0x5683ed,_0x2b70a9):_0x5683ed,_0x21209b=_0x4db197['length']-0x1,_0x55805d;_0x21209b>=0x0;_0x21209b--)(_0x55805d=_0x4db197[_0x21209b])&&(_0x3f2103=(_0x5cbdf9?_0x55805d(_0x5683ed,_0x2b70a9,_0x3f2103):_0x55805d(_0x3f2103))||_0x3f2103);return _0x5cbdf9&&_0x3f2103&&Ro(_0x5683ed,_0x2b70a9,_0x3f2103),_0x3f2103;},gt=(_0x571d99,_0x3ea7c8)=>(_0x3d9f84,_0x2f5630)=>_0x3ea7c8(_0x3d9f84,_0x2f5630,_0x571d99);let Ze=class{constructor(_0x3f462c,_0x36a9aa,_0x5dbcbd){const _0x431ee7=_0xa6a604;this[_0x431ee7(0x325)]=_0x3f462c,this[_0x431ee7(0x35e)]=_0x36a9aa,this[_0x431ee7(0x404)]=_0x5dbcbd,this['init']();}[_0xa6a604(0x4c6)](){const _0x599868=_0xa6a604;this[_0x599868(0x35e)][_0x599868(0x36d)]({'priority':0x1,'interceptor':(_0x273542,_0x563b12)=>_0x563b12(_0x273542)[_0x599868(0x3b6)](_0x26f55c(async _0x119df0=>{const _0x5226af=_0x599868,_0x1fabf9=_0x119df0;if(_0x1fabf9[_0x5226af(0x33f)]===0x191&&window[_0x5226af(0x3c0)](this['localeService']['t'](_0x5226af(0x317)))){const _0x22bc9d=window['encodeURIComponent'](window[_0x5226af(0x437)][_0x5226af(0x4f8)]);window[_0x5226af(0x437)][_0x5226af(0x4f8)]=this['_getLoginPath']()+_0x5226af(0x2e4)+_0x22bc9d;}return _0x1fabf9;}))});}[_0xa6a604(0x491)](){const _0x1bfa85=_0xa6a604;var _0x8161e9,_0x39c608;const _0xbc0cc=this[_0x1bfa85(0x325)][_0x1bfa85(0x4e5)](wn),_0x435023=this[_0x1bfa85(0x325)][_0x1bfa85(0x4e5)](L);return(_0x39c608=(_0x8161e9=_0x435023==null?void 0x0:_0x435023[_0x1bfa85(0x2a8)])!=null?_0x8161e9:_0xbc0cc)!=null?_0x39c608:Pn;}};Ze=Do([gt(0x0,_0x123c7a),gt(0x1,_0x160402(_0x24a261)),gt(0x2,_0x160402(_0x2f3b7b))],Ze);var wo=Object['defineProperty'],Po=Object['getOwnPropertyDescriptor'],yo=(_0x567cbf,_0x46b094,_0x1a1617,_0x3701e3)=>{const _0x13dace=_0xa6a604;for(var _0x4cf031=_0x3701e3>0x1?void 0x0:_0x3701e3?Po(_0x46b094,_0x1a1617):_0x46b094,_0x24c8d6=_0x567cbf[_0x13dace(0x391)]-0x1,_0x4887ec;_0x24c8d6>=0x0;_0x24c8d6--)(_0x4887ec=_0x567cbf[_0x24c8d6])&&(_0x4cf031=(_0x3701e3?_0x4887ec(_0x46b094,_0x1a1617,_0x4cf031):_0x4887ec(_0x4cf031))||_0x4cf031);return _0x3701e3&&_0x4cf031&&wo(_0x46b094,_0x1a1617,_0x4cf031),_0x4cf031;},ms=(_0x287cdf,_0x1cbcfb)=>(_0x47fa9f,_0x4edfea)=>_0x1cbcfb(_0x47fa9f,_0x4edfea,_0x287cdf);const No=_0xa6a604(0x230),Uo=_0xa6a604(0x2e5);let Pt=class extends _0x252360{constructor(_0x3da860,_0x27d21c){const _0x131f6a=_0xa6a604;super(),this[_0x131f6a(0x1fa)]=_0x3da860,this['_configService']=_0x27d21c,this['_initMergeInterceptor']();}[_0xa6a604(0x462)](){const _0xf9d16b=_0xa6a604,_0x4ac513=this;this[_0xf9d16b(0x4f3)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x3b7a0e({'isMatch'(_0x4d1f72){const _0x4db1c0=_0xf9d16b;var _0x544e61;if(_0x4d1f72[_0x4db1c0(0x4fc)]===_0x4db1c0(0x52d)&&((_0x544e61=_0x4d1f72[_0x4db1c0(0x4c4)])!=null&&_0x544e61[_0x4db1c0(0x3d2)])){const {objectID:_0x4304ac,objectType:_0x2f3fb6}=_0x4d1f72[_0x4db1c0(0x4c4)][_0x4db1c0(0x3d2)]||{};if(!_0x4304ac||_0x2f3fb6===void 0x0)return!0x1;const _0x37164b=_0x4ac513[_0x4db1c0(0x513)]()+'/'+_0x2f3fb6+_0x4db1c0(0x4f0)+_0x4304ac+_0x4db1c0(0x53e);if(_0x4d1f72[_0x4db1c0(0x1f3)]===_0x37164b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x44cd94){const _0x172db5=_0xf9d16b;var _0x25c204;return(_0x25c204=_0x44cd94[_0x172db5(0x4c4)])==null?void 0x0:_0x25c204[_0x172db5(0x3d2)];},'mergeParamsToRequest'(_0x4c2912,_0x137fa8){const _0x4cac3a=_0xf9d16b,_0x40d9db=_0x4ac513[_0x4cac3a(0x513)]()+_0x4cac3a(0x3d5),_0x5cbdb7=_0x4c2912[_0x4cac3a(0x3ae)]((_0x2ed8d7,_0x290111)=>{const _0x525bf2=_0x4cac3a,{unitID:_0x4c7579,objectID:_0x1019be,objectType:_0x562e03,actions:_0x5cfc2a}=_0x290111;return _0x2ed8d7[_0x4c7579]||(_0x2ed8d7[_0x4c7579]={}),_0x2ed8d7[_0x4c7579][_0x1019be]||(_0x2ed8d7[_0x4c7579][_0x1019be]={'objectID':_0x1019be,'objectType':_0x562e03,'actions':[]}),_0x2ed8d7[_0x4c7579][_0x1019be][_0x525bf2(0x2e9)][_0x525bf2(0x539)](..._0x5cfc2a),_0x2ed8d7;},{}),_0x4dd001=[];for(const _0x29ea0e in _0x5cbdb7)for(const _0x5a1cd9 in _0x5cbdb7[_0x29ea0e]){const {actions:_0x1b005e,objectType:_0x5a6bef}=_0x5cbdb7[_0x29ea0e][_0x5a1cd9],_0xf45478=[...new Set(_0x1b005e)];_0x4dd001[_0x4cac3a(0x539)]({'unitID':_0x29ea0e,'objectID':_0x5a1cd9,'objectType':_0x5a6bef,'actions':_0xf45478});}return new _0x4e7fe7(_0x4cac3a(0x52d),_0x40d9db,{'headers':_0x137fa8[_0x4cac3a(0x393)],'withCredentials':_0x137fa8[_0x4cac3a(0x347)],'responseType':_0x137fa8[_0x4cac3a(0x310)],'body':{'requests':_0x4dd001}});}},{'distributeResult'(_0x56692f,_0x2fb82d){const _0x2b3c0=_0xf9d16b,{objectActions:_0x220c9e}=_0x56692f;return _0x2fb82d[_0x2b3c0(0x422)](_0x4ce651=>{const _0x52222f=_0x2b3c0,{unitID:_0x721b96,objectID:_0x337d89,actions:_0x49c899}=_0x4ce651,_0x4bac81=_0x220c9e[_0x52222f(0x4dd)](_0x1a1dbf=>_0x1a1dbf[_0x52222f(0x1ec)]===_0x721b96&&_0x1a1dbf[_0x52222f(0x469)]===_0x337d89),_0x2ca575=_0x49c899[_0x52222f(0x422)](_0xa7849a=>_0x4bac81==null?void 0x0:_0x4bac81[_0x52222f(0x2e9)]['find'](_0x4d8024=>_0x4d8024['action']===_0xa7849a))[_0x52222f(0x346)](_0x20df9d=>!!_0x20df9d);return{'config':_0x4ce651,'result':{'actions':_0x2ca575,'error':_0x56692f[_0x52222f(0x3f7)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3d19a6=_0xa6a604;var _0x8b1ca0,_0xc1399;const _0x7abb4e=this[_0x3d19a6(0x325)][_0x3d19a6(0x4e5)](No),_0xf0eb0a=this['_configService'][_0x3d19a6(0x4e5)](L);return(_0xc1399=(_0x8b1ca0=_0xf0eb0a==null?void 0x0:_0xf0eb0a[_0x3d19a6(0x31f)])!=null?_0x8b1ca0:_0x7abb4e)!=null?_0xc1399:Uo;}async[_0xa6a604(0x26a)](_0x17c42a){const _0x14eec4=_0xa6a604,_0x2d39a7=this[_0x14eec4(0x513)]()+'/'+_0x17c42a[_0x14eec4(0x24d)]+_0x14eec4(0x263);return(await this[_0x14eec4(0x1fa)][_0x14eec4(0x216)](_0x2d39a7,{'body':_0x17c42a}))['body'][_0x14eec4(0x469)]||'';}async['list'](_0x5d8e91){const _0x2e9c6f=_0xa6a604,_0x67cbc0=this['_getAPIPrefixPath']()+_0x2e9c6f(0x355);return(await this[_0x2e9c6f(0x1fa)]['post'](_0x67cbc0,{'body':_0x5d8e91}))[_0x2e9c6f(0x3d2)][_0x2e9c6f(0x4cd)];}async[_0xa6a604(0x2e1)](_0x47c215){const _0x1941ab=_0xa6a604,_0x40431c=this[_0x1941ab(0x513)]()+'/'+_0x47c215[_0x1941ab(0x24d)]+_0x1941ab(0x4f0)+_0x47c215[_0x1941ab(0x469)];await this['_HTTPService']['put'](_0x40431c,{'body':_0x47c215});}async[_0xa6a604(0x496)](_0x4a74f9){const _0x460b68=_0xa6a604,_0x5ac089=this[_0x460b68(0x513)]()+'/'+_0x4a74f9[_0x460b68(0x24d)]+_0x460b68(0x4f0)+_0x4a74f9['objectID']+_0x460b68(0x53e);return(await this[_0x460b68(0x1fa)][_0x460b68(0x216)](_0x5ac089,{'body':_0x4a74f9}))[_0x460b68(0x3d2)][_0x460b68(0x2e9)];}async[_0xa6a604(0x238)](_0x174ac0){const _0x1d4d44=_0xa6a604,_0x2c2ad8=this[_0x1d4d44(0x513)]()+_0x1d4d44(0x3d5);return(await this['_HTTPService'][_0x1d4d44(0x216)](_0x2c2ad8,{'body':{'requests':_0x174ac0}}))['body'][_0x1d4d44(0x473)];}async[_0xa6a604(0x3db)](_0x9cc387){const _0x32ad59=_0xa6a604,_0x4055d4=this[_0x32ad59(0x513)]()+'/'+_0x9cc387['objectType']+'/role',_0x3ca47d=await this[_0x32ad59(0x1fa)][_0x32ad59(0x216)](_0x4055d4,{'body':_0x9cc387});return{'roles':_0x3ca47d[_0x32ad59(0x3d2)]['roles'],'actions':_0x3ca47d[_0x32ad59(0x3d2)][_0x32ad59(0x2e9)]};}async[_0xa6a604(0x3cf)](_0x7628c){const _0x12b62e=_0xa6a604,_0x5ef696=this[_0x12b62e(0x513)]()+_0x12b62e(0x204);await this[_0x12b62e(0x1fa)][_0x12b62e(0x3fe)](_0x5ef696,{'params':{'collaboratorID':_0x7628c[_0x12b62e(0x3b9)],'objectID':_0x7628c[_0x12b62e(0x469)],'unitID':_0x7628c[_0x12b62e(0x1ec)]}});}async[_0xa6a604(0x2c3)](_0x52ca31){const _0x458aa0=_0xa6a604,_0x378ff7=this['_getAPIPrefixPath']()+_0x458aa0(0x204);await this[_0x458aa0(0x1fa)][_0x458aa0(0x52f)](_0x378ff7,{'body':_0x52ca31});}async['createCollaborator'](_0x30211e){const _0x42b78e=_0xa6a604,_0x2057a3=this[_0x42b78e(0x513)]()+_0x42b78e(0x204);await this[_0x42b78e(0x1fa)][_0x42b78e(0x216)](_0x2057a3,{'body':_0x30211e});}async[_0xa6a604(0x494)](_0xfcb44){const _0x313ef8=_0xa6a604,_0x5cc830=this[_0x313ef8(0x513)]()+_0x313ef8(0x204);return(await this[_0x313ef8(0x1fa)]['get'](_0x5cc830,{'params':{'objectID':_0xfcb44[_0x313ef8(0x469)],'unitID':_0xfcb44['unitID']}}))['body'][_0x313ef8(0x4d5)];}async[_0xa6a604(0x2bd)](_0x409ada){const _0x8f10b9=_0xa6a604,_0x24596d=this[_0x8f10b9(0x513)]()+_0x8f10b9(0x204);await this[_0x8f10b9(0x1fa)]['put'](_0x24596d,{'body':_0x409ada});}};Pt=yo([ms(0x0,_0x160402(_0x24a261)),ms(0x1,_0x160402(_0x123c7a))],Pt);var Mo=Object[_0xa6a604(0x222)],Ao=Object[_0xa6a604(0x4ce)],Lo=(_0x524e16,_0x44fdc4,_0x1c748c,_0xb105f6)=>{const _0xa76584=_0xa6a604;for(var _0x4ae967=_0xb105f6>0x1?void 0x0:_0xb105f6?Ao(_0x44fdc4,_0x1c748c):_0x44fdc4,_0x15d191=_0x524e16[_0xa76584(0x391)]-0x1,_0x220897;_0x15d191>=0x0;_0x15d191--)(_0x220897=_0x524e16[_0x15d191])&&(_0x4ae967=(_0xb105f6?_0x220897(_0x44fdc4,_0x1c748c,_0x4ae967):_0x220897(_0x4ae967))||_0x4ae967);return _0xb105f6&&_0x4ae967&&Mo(_0x44fdc4,_0x1c748c,_0x4ae967),_0x4ae967;},$o=(_0x263073,_0x27cf4b)=>(_0x5d0198,_0x49c802)=>_0x27cf4b(_0x5d0198,_0x49c802,_0x263073);let Qe=class{constructor(_0x2c477b){this['_httpService']=_0x2c477b,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x318a0f=_0xa6a604;this['_httpService'][_0x318a0f(0x36d)]({'interceptor':(_0x5d770d,_0x882037)=>{const _0x588ee9=_0x318a0f,_0x43616d=_0x5d770d[_0x588ee9(0x393)],_0x34e142=_0x35d498();return _0x34e142&&_0x43616d['set'](_0x588ee9(0x3f8),_0x34e142),_0x882037(_0x5d770d);}});}};Qe=Lo([$o(0x0,_0x160402(_0x24a261))],Qe);var jo=Object[_0xa6a604(0x222)],xo=Object[_0xa6a604(0x4ce)],Ho=(_0x235805,_0x12b177,_0x4bc937,_0x43776d)=>{const _0x4e086e=_0xa6a604;for(var _0x44bc5c=_0x43776d>0x1?void 0x0:_0x43776d?xo(_0x12b177,_0x4bc937):_0x12b177,_0x10f0f9=_0x235805[_0x4e086e(0x391)]-0x1,_0x2fef4d;_0x10f0f9>=0x0;_0x10f0f9--)(_0x2fef4d=_0x235805[_0x10f0f9])&&(_0x44bc5c=(_0x43776d?_0x2fef4d(_0x12b177,_0x4bc937,_0x44bc5c):_0x2fef4d(_0x44bc5c))||_0x44bc5c);return _0x43776d&&_0x44bc5c&&jo(_0x12b177,_0x4bc937,_0x44bc5c),_0x44bc5c;},St=(_0x68daf7,_0x23b722)=>(_0x2a4ca9,_0x152a92)=>_0x23b722(_0x2a4ca9,_0x152a92,_0x68daf7);const ko=['image/png',_0xa6a604(0x3ba),_0xa6a604(0x315),'image/gif',_0xa6a604(0x26d)],Bo=0x5*0x400*0x400,Vo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Fo=_0xa6a604(0x386),Wo=_0xa6a604(0x4fb),Go='/universer-api/file/{fileID}/sign-url';let yt=class{constructor(_0x351b63,_0x4f4aff,_0x5f339f){const _0x5f0451=_0xa6a604;l(this,_0x5f0451(0x546),0x0),l(this,_0x5f0451(0x3b0),new _0x3daa12()),l(this,_0x5f0451(0x28b),this[_0x5f0451(0x3b0)]),l(this,'_imageSourceCache',new Map()),(this[_0x5f0451(0x35e)]=_0x351b63,this[_0x5f0451(0x325)]=_0x4f4aff,this['_univerInstanceService']=_0x5f339f);}['setWaitCount'](_0x3b42b8){const _0xa4df63=_0xa6a604;this['_waitCount']=_0x3b42b8,this[_0xa4df63(0x3b0)][_0xa4df63(0x480)](_0x3b42b8);}[_0xa6a604(0x24b)](_0x514240,_0x4fc6ef){const _0x35e0ee=_0xa6a604;if(_0x4fc6ef===_0x48b7bc[_0x35e0ee(0x3d6)]){const _0x5985e5=new Image();return _0x5985e5[_0x35e0ee(0x497)]=_0x514240,_0x5985e5;}return this[_0x35e0ee(0x2e8)]['get'](_0x514240);}[_0xa6a604(0x385)](_0x3f8d14,_0x13cd4c,_0x9038f3){const _0x1491a9=_0xa6a604;_0x13cd4c===_0x48b7bc[_0x1491a9(0x3d6)]||_0x9038f3==null||this[_0x1491a9(0x2e8)][_0x1491a9(0x455)](_0x3f8d14,_0x9038f3);}async[_0xa6a604(0x344)](_0x220262){const _0x492bff=_0xa6a604;try{const _0x230cee=this[_0x492bff(0x472)](this[_0x492bff(0x26c)](),''+_0x220262),_0x38ed46=(await this[_0x492bff(0x35e)]['get'](_0x230cee))['body'];if(_0x38ed46[_0x492bff(0x3f7)]&&_0x38ed46['error']['code']===Ms['OK']){const _0x2b1876=new URL(_0x38ed46[_0x492bff(0x1f3)],this[_0x492bff(0x28c)]())[_0x492bff(0x3ed)]();return Promise[_0x492bff(0x3c2)](_0x2b1876);}return Promise[_0x492bff(0x50e)](_0x38ed46[_0x492bff(0x3f7)]);}catch(_0x348c68){return Promise[_0x492bff(0x50e)](_0x348c68);}}async['saveImage'](_0x5b5653){const _0x4515e7=_0xa6a604;let _0x58ae18='';if(!ko[_0x4515e7(0x2ac)](_0x5b5653['type']))return this['_decreaseWaiting'](),Promise[_0x4515e7(0x50e)](new Error(_0x7a4b58['ERROR_IMAGE_TYPE']));if(_0x5b5653[_0x4515e7(0x4e4)]>Bo)return this[_0x4515e7(0x3cc)](),Promise[_0x4515e7(0x50e)](new Error(_0x7a4b58['ERROR_EXCEED_SIZE']));try{const _0x429dd5=new FormData();_0x429dd5[_0x4515e7(0x358)](_0x4515e7(0x417),_0x5b5653);const _0x1f4ee1=this[_0x4515e7(0x1fd)][_0x4515e7(0x2a3)](),_0x31a48f=_0x1f4ee1==null?void 0x0:_0x1f4ee1[_0x4515e7(0x203)]();if(!_0x31a48f)throw new Error(_0x4515e7(0x248));const _0x285120=this[_0x4515e7(0x466)]()+'?size='+_0x5b5653[_0x4515e7(0x4e4)][_0x4515e7(0x3ed)]()+_0x4515e7(0x53b)+As[_0x4515e7(0x371)]+_0x4515e7(0x3b8)+encodeURIComponent(_0x31a48f),_0x255e92=await(await fetch(_0x285120,{'method':'POST','body':_0x429dd5}))[_0x4515e7(0x461)]();if(typeof _0x255e92[_0x4515e7(0x4ca)]!='string')return this[_0x4515e7(0x3cc)](),Promise[_0x4515e7(0x50e)](new Error(_0x7a4b58[_0x4515e7(0x31e)]));_0x58ae18=_0x255e92['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x4515e7(0x50e)](new Error(_0x7a4b58[_0x4515e7(0x31e)]));}return new Promise((_0x4ad54e,_0x560a93)=>{const _0x5cd74e=_0x4515e7,_0xdcd7a2=new FileReader();_0xdcd7a2[_0x5cd74e(0x219)](_0x5b5653),_0xdcd7a2['onload']=_0x5c1d50=>{const _0x11db48=_0x5cd74e;var _0x239a50;const _0x1672d8=(_0x239a50=_0x5c1d50[_0x11db48(0x266)])==null?void 0x0:_0x239a50[_0x11db48(0x3eb)];if(_0x1672d8==null){this[_0x11db48(0x3cc)](),_0x560a93(new Error(_0x7a4b58[_0x11db48(0x31e)]));return;}const _0xcffc5a=_0x3c0ad5[_0x11db48(0x24c)](0x6);_0x4ad54e({'imageId':_0xcffc5a,'imageSourceType':_0x48b7bc[_0x11db48(0x359)],'source':_0x58ae18,'base64Cache':_0x1672d8,'status':_0x7a4b58['SUCCUSS']}),this[_0x11db48(0x3cc)]();};});}[_0xa6a604(0x466)](){const _0x32b3bd=_0xa6a604;var _0x171d4c,_0x307482;const _0x3826b9=this[_0x32b3bd(0x325)][_0x32b3bd(0x4e5)](Vo),_0x3805e4=this[_0x32b3bd(0x325)][_0x32b3bd(0x4e5)](L);return(_0x307482=(_0x171d4c=_0x3805e4==null?void 0x0:_0x3805e4[_0x32b3bd(0x425)])!=null?_0x171d4c:_0x3826b9)!=null?_0x307482:Fo;}['_getSignURL'](){const _0x2c6b59=_0xa6a604;var _0x25f527,_0x399051;const _0x43a4a5=this[_0x2c6b59(0x325)][_0x2c6b59(0x4e5)](Wo),_0x1c8302=this['_configService']['getConfig'](L);return(_0x399051=(_0x25f527=_0x1c8302==null?void 0x0:_0x1c8302['signUrlServerUrl'])!=null?_0x25f527:_0x43a4a5)!=null?_0x399051:Go;}[_0xa6a604(0x28c)](){const _0x32af1e=_0xa6a604;var _0x4f5690;const _0x19c567=this[_0x32af1e(0x325)]['getConfig'](L);return(_0x4f5690=_0x19c567==null?void 0x0:_0x19c567[_0x32af1e(0x276)])!=null?_0x4f5690:location[_0x32af1e(0x3ea)];}[_0xa6a604(0x472)](_0x3f7fdc,_0x1eeaa9){const _0x14f58a=_0xa6a604;return _0x3f7fdc[_0x14f58a(0x44b)](_0x14f58a(0x499),_0x1eeaa9);}[_0xa6a604(0x3cc)](){const _0x17498c=_0xa6a604;this[_0x17498c(0x546)]-=0x1,this[_0x17498c(0x3b0)][_0x17498c(0x480)](this[_0x17498c(0x546)]);}};yt=Ho([St(0x0,_0x160402(_0x24a261)),St(0x1,_0x123c7a),St(0x2,_0x160402(_0x33adea))],yt);var Yo=Object['defineProperty'],Ko=Object['getOwnPropertyDescriptor'],Xo=(_0x354069,_0xca5df4,_0x41b078,_0x4d7c3e)=>{const _0x48517b=_0xa6a604;for(var _0x1dc3b6=_0x4d7c3e>0x1?void 0x0:_0x4d7c3e?Ko(_0xca5df4,_0x41b078):_0xca5df4,_0x38f09c=_0x354069[_0x48517b(0x391)]-0x1,_0x4d3131;_0x38f09c>=0x0;_0x38f09c--)(_0x4d3131=_0x354069[_0x38f09c])&&(_0x1dc3b6=(_0x4d7c3e?_0x4d3131(_0xca5df4,_0x41b078,_0x1dc3b6):_0x4d3131(_0x1dc3b6))||_0x1dc3b6);return _0x4d7c3e&&_0x1dc3b6&&Yo(_0xca5df4,_0x41b078,_0x1dc3b6),_0x1dc3b6;},Pe=(_0x1518db,_0x1fc7e7)=>(_0x5658dc,_0x3499cf)=>_0x1fc7e7(_0x5658dc,_0x3499cf,_0x1518db);let et=class extends _0x48a1ad{constructor(_0x24062d,_0xb859db,_0x102501,_0x70060c,_0x398aa9){const _0x1803bf=_0xa6a604;super(),this[_0x1803bf(0x35a)]=_0x24062d,this[_0x1803bf(0x1fd)]=_0xb859db,this[_0x1803bf(0x2b0)]=_0x102501,this[_0x1803bf(0x482)]=_0x70060c,this[_0x1803bf(0x247)]=_0x398aa9,this[_0x1803bf(0x265)](),this[_0x1803bf(0x250)]();}[_0xa6a604(0x250)](){const _0x352114=_0xa6a604,_0x1b6771=async _0x360f54=>{const _0x24ee49=_0x40a3;(await this[_0x24ee49(0x482)][_0x24ee49(0x269)](_0x360f54))[_0x24ee49(0x2bc)]['pipe'](_0x38e98e(_0xe44dcf=>_0xe44dcf[_0x24ee49(0x33b)]===_0x17f69c[_0x24ee49(0x4db)]),_0x4c0c8e(this[_0x24ee49(0x424)]))[_0x24ee49(0x426)](_0x4e87c2=>{const _0x234141=_0x24ee49,_0x116f6c=_0x4e87c2,{reason:_0x5bf7b9}=_0x116f6c[_0x234141(0x525)];this['_injector'][_0x234141(0x504)](_0xd292a2)['show']({'type':_0x1beabd[_0x234141(0x535)],'content':this[_0x234141(0x247)]['t'](_0x234141(0x452))+'('+_0x5bf7b9+')'}),this['_permissionService'][_0x234141(0x456)](new _0x1c28a6(_0x360f54)['id'],!0x1),this[_0x234141(0x482)][_0x234141(0x1f5)](_0x360f54);});};_0xcf1d88(this[_0x352114(0x1fd)][_0x352114(0x2dc)](_0x39cf18['UNIVER_SHEET']),this['_univerInstanceService'][_0x352114(0x2dc)](_0x39cf18[_0x352114(0x1eb)]))[_0x352114(0x3b6)](_0x4beb38(_0x165143=>_0x165143[_0x352114(0x203)]()),_0x38e98e(_0x563a1a=>!_0x19d0e1(_0x563a1a)),_0x4c0c8e(this[_0x352114(0x424)]))[_0x352114(0x426)](_0x3807c6=>{_0x1b6771(_0x3807c6);});}[_0xa6a604(0x265)](){const _0x4f45b2=_0xa6a604,_0x258b94=async _0x59330d=>{const _0x2d1a4c=_0x40a3;(await this[_0x2d1a4c(0x482)][_0x2d1a4c(0x269)](_0x59330d))[_0x2d1a4c(0x2bc)]['pipe'](_0x38e98e(_0xe04ce8=>_0xe04ce8[_0x2d1a4c(0x33b)]===_0x17f69c['UPDATE_PERMISSION_OBJ']),_0x4c0c8e(this[_0x2d1a4c(0x424)]))[_0x2d1a4c(0x426)](_0x392e6b=>{const _0x254bc1=_0x2d1a4c,_0x5ae6b1=_0x392e6b,{objectId:_0x45aa84}=_0x5ae6b1['data'],_0x2170cf=this[_0x254bc1(0x35a)][_0x254bc1(0x504)](_0x323ea7);_0x45aa84===_0x59330d?_0x2170cf['initWorkbookPermissionChange'](_0x59330d):_0x2170cf['refreshPermission'](_0x59330d,_0x45aa84);});};_0xcf1d88(this[_0x4f45b2(0x1fd)][_0x4f45b2(0x2dc)](_0x39cf18[_0x4f45b2(0x48b)]),this[_0x4f45b2(0x1fd)][_0x4f45b2(0x2dc)](_0x39cf18[_0x4f45b2(0x1eb)]))[_0x4f45b2(0x3b6)](_0x4beb38(_0x3636c4=>_0x3636c4[_0x4f45b2(0x203)]()),_0x38e98e(_0x4753cc=>!_0x19d0e1(_0x4753cc)),_0x4c0c8e(this['dispose$']))[_0x4f45b2(0x426)](_0x4fee3d=>{_0x258b94(_0x4fee3d);});}};function _0x7251(){const _0x9706ac=['YUUMI_SUBSCRIPTION_NOT_FOUND','LIVESHARE_NEW_HOST','_unitID','setTimeout','InsertRangeMoveDownCommandId','origin','result','string','toString','JOIN','pluginName','onMouseMove','url(#on-line-single_clip0_910_349)','LICENSE_EXPORT_SIZE_EXCEEDED','blue400','title','getItem','_loadSheet','error','x-univer-host','key','APPLY_REVISION_CONFILICT','getTime','_config','setActiveRange','delete','none','_range','focused$','_socketService','_themeService','localeService','CONNECTOR_DATA_TOO_LARGE','getSheetId','_acknowledgedAwaitingChangeset','debug','[UniverCollaborationClientPlugin]','univer-pro.collaboration-client-socket-service','getUnhiddenWorksheets','UNRECOGNIZED','[CollaborationEntity]','_cursor','_clearUndo','state$','enableAuthServer','measureText','toRgbString','_listenToOfflineEvent','_getSheetObject','onlineStatusTitle','file','COLLAB_WEB_SOCKET_URL','updateCursorEvent','LOGIN_URL_KEY','NOT_COLLAB','_commentUpdate$','_state$','getUnitType','_docSyncEditingCollabCursorService','_scene','hidden','map','permissionRejEvent','dispose$','uploadFileServerUrl','subscribe','NEW_CHANGESETS','getInterceptPoints','HEADER_MENU','_candidateSocket','UPDATE_CURSOR','onTransformIME','onTransformRemoteChangesetByIMECache','setUndoRedoMutationParamsCache','tag','_http','path','getCollabCursors$','selection','_transformUndoRedoStack','27npIrlP','_onCursorDelete','location','_id','top','/block/','16uREBHT','min','_registerDependencies','registerRefRange','_docSkeletonManagerService','_colorIndex','FAIL','unsubscribe','ALREADY_EXISTS','_docTransformIMECacheService','_onMessage','subunit','socket\x20close','fillStyle','getUnitOnRev','214614XFWUsw','replace','_messageService','_getSaveTimeout','getTypeOfUnitDisposed$','_clearTimeoutTimer','contains','_members','collaboration.closeRoom','replaceTextRanges','userID','set','updatePermissionPoint','_undoRedoService','indexOf','collaboration-client.config','_snapshotServerService','RemoveRowCommandId','stringify','_sendingTimer','_transformStack','number','_hover','json','_initMergeInterceptor','interceptor','univer-online-status-title','_document','_getUploadFileURL','_registerRenderDependencies','_shapes','objectID','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','subUnitId','toggleOnline','collaMsg','_collaborationController','current','[OfflineState]:\x20received\x20acknowledgement.','univer-online','_replaceFileID','objectActions','row','conflict.title','use','getCurrent','attrs','_createInitialState','_exhaustRemoteChangesetQueue','cmd','_collabCursorState$','_getAPIPrefix','PERMISSION_DENIED','off-line-single_clip0_910_343','next','hasOwnProperty','_collaborationSessionService','UniverIcon','_startTelemetryCollaborationNewChangeset','&to=','offline','_drawTextRange','findNodePositionByCharIndex','_tryEnsureSocket','compose','UNIVER_SHEET','_transformService','getResourcesRequest','_remoteChangesetQueue','_setupSubUnitSync','187159MFeAGA','_getLoginPath','_rescheduleHeartbeat','_logService','listCollaborators','_draw','allowed','src','univer-online-status','{fileID}','range','transformMutationsWithChangeset','UNAUTHENTICATED','unit-cache-','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','PSEUDO_FETCH_MISSING_RESULT','IDLE','enableSingleActiveInstanceLock','[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.','getCellPositionByOffset','CHANGESET_ACK','PENDING','_transformPreviousActiveRange','UNIVER_SLIDE','univer-offline','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','onPointerLeave$','_initStatusComponent','loadOfflineData','startColumn','_updateURLWithCurrentState','beginPath','_uiPartsService','OffLineSingle','close','on-line-single_clip0_910_349','font','_getUndoStack','LIVESHARE_FETCH_OPERATIONS','height','SNAPSHOT_INVALID_SNAPSHOT','LICENSE_DISTRO_REJECTED','addObject','_onRemoteRejected','_getSendChangesetTimeout','_hovered','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','conflict','_updateCollabCursors','xlink:href','sessionStatus','catch','requestParams','max','init','getCurrentRevOfUnit','3637417LiEFvA','YUUMI_RATE_OVER_LIMIT','FileId','_collaborationTimeoutTimer','incrementRevOfUnit','objects','getOwnPropertyDescriptor','_ws','[CollaborationSession]','_onConflict','params','_commandService','_createHandler','collaborators','getMember','collaboration-session-retry','show','_showConflictNotification','removeMember','SHOULD_CLOSE_CONN','_revisionService','find','_onUserLeave','getUniverSheetInstance','_schedule','MSG_FOR_ERROR','135ncWCqq','resend','size','getConfig','duration','fetchMiss','INTERNAL_ERROR','INVALID_ARGUMENT','isEditing','_getCurrentRevision','_refRangeService','getParam','hovered','transformStack\x20failed!','/object/','session.collaboration-timeout','_socket$','disposeWithMe','dispose','[SyncedState]:\x20received\x20rejection.','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','children','href','HEARTBEAT_TIMEOUT','collabStatus.fetchMiss','EXCHANGE_SIGN_URL_SERVER_URL_KEY','method','drawWith','UNIVER_COLLABORATION_CLIENT_PLUGIN','loadDoc','icon','createSocket','message$','roomMembers$','get','_handleEvent','HttpExport','_handler','trim','INGEST','transformRemoteChangeset','_collabCursorController','memberID','_heartbeatTimer','reject','\x20in\x20_schedule.','color','_toggleOnline','updateMember','_getAPIPrefixPath','SEND_CHANGESET_TIMEOUT','m1Prime','_isPermissionRej','socket\x20open.','_updateStatus','arc','YUUMI_UNABLE_LOAD_URL','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','getActiveRange','endRow','changesets','isActive','_sessionStatus$','_loadDoc','createElement','displayName','activeSheet$','data','_color','_retryConnectingTimer','ws://127.0.0.1:8000/universer-api/comb/connect','SNAPSHOT_HAS_BEEN_REMOVED','_selfUnitIDs','complete','_sheetTransformSelectionsService','POST','_createInitialStateImpl','patch','getSkeleton','connection\x20error','VIEW_MAIN','awaiting_with_pending','_drawRectRange','Error','type','leaveEvent','_online','push','getCurrentUser','&source=','enableOfflineEditing','COMPLETION_FINISHED','/allowed','getDeserializedSheetBlock','workbook','_socketReady','_handleLeaveEvent','revision','onRemoteAck','MoveRangeCommandId','_waitCount','LIVESHARE_REQUEST_HOST','_roomMembers$','getDocRanges','transformMutation','onRemoteChangeset','_cursors','SUBMIT_CHANGESET','OTHER_CLIENTS_EDITING','[CollaborationSessionService]','saveOfflineData','newValue','session.room-full','JOINING','unit','onMissedChangesetFetched','add','COLLAB_SUBMIT_CHANGESET_URL','close$','_hideTimer','UNIVER_DOC','unitID','unknown','_onCursorUpdate','_clearHeartbeatTimer','\x20-\x20','idSuffix','ranges','url','_onRemoteACK','closeSession','getRangePointData','_initStatusListener','_unlockTransition','has','_HTTPService','SNAPSHOT_SERVER_URL_KEY','copyFileMeta','_univerInstanceService','getSheetBlock','snapshot','/fetchmissing?from=','_state','FETCH_MISS','getUnitId','/collaborator','visibilityState','_getMergeRange','_scheduleClearOtherTimer','_updateLocalCursor','_session','unshift','setItem','deepClone','assign','_singleActiveUnitService','bottom','OFFLINE','...','sheetId','forEach','_awaitingChangeset','clear','post','clipPath','with','readAsDataURL','1em','_updateSubUnitFromURLParams','_context','1524iGPGRu','_init','/rev/','subscribeEvent','328260fKrPYM','defineProperty','prototype','_userManagerService','fetching\x20missing\x20changesets\x20from\x20','_handleHeartbeatEvent','UNKNOWN_CODE','startRow','column','originalMeta','\x0aAfter:\x20','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_commentService','_telemetryInfo','onReady','AUTHZ_URL_KEY','split','then','send','_onRefRangeChange','_transformUndoredo','_getRedoStack','reconnect','batchAllowed','_type','getCollabEntity$','_snapshotService','status$','submit\x20changeset\x20error!','M0\x200H16V16H0z','doc.mutation.rich-text-editing','NO_OTHER_CLIENTS_EDITING','_textBubble','_memberService','_createSocket','replaceState','svg','_tryReconnect','_localeService','unitId\x20is\x20not\x20found','_send','_scheduleSaving','getImageSourceCache','generateRandomId','objectType','c1Prime','call','_initCloseConn','_labelPosition','_onConnectionOpen','/universer-api/snapshot','_telemetryService','transformSelections','_transitionLocked','roomInfos','6gziDVa','LICENSE_MAX_UNITS_EXCEEDED','red300','reverse','_clearOtherTimers','APPLY_REJECT','csRejEvent','9952164GyeGrf','session','values','onlineStatus','/object','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_initUnitPermissionChange','target','_transformRemoteChangesetByIMECache','_saveTaskMap','requireSession','create','UNIVER_PROJECT','_getSignURL','image/bmp','_status$','InsertColCommandId','_updateLocalCache','/universer-api/oidc/authpage','onlyLocal','_incrementRevisionNumber','fetch_missing','gold400','downloadEndpointUrl','_syncEditingCollabCursor','HttpImport','fetchMissingChangesets','_beforeCloseService','_event$','collabStatus.syncing','_collaborationPaused','NOT_FOUND','COMPRESS_MUTATION_APPLY','error$','from','_executeRemoteChangeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','liveShareOperation','syncEditingCollabCursor','saveSheetBlock','_backgroundColor','_renderManagerService','_docSkeleton','FromArray','change$','_getDownloadEndpointURL','_joinRoom','DeleteRangeMoveUpCommandId','collabStatus.conflict','_socketMessageSubscription','_onUserJoin','registerOnClose','cursorInfo','asObservable','loadSheet','entries','infoRsp','whenReady','Warning','propertyIsEnumerable','_initResize','capture','m2Prime','session.will-retry','collabStatus.synced','setShapeProps','startTime','getValue','getFocusedUnit','clearTimeout','unitId','_transformIMECache','makeDirty','loginUrlKey','TOO_MANY_REQUESTS','_substituteRedoStack','getCollabEntity','includes','setInterval','collaboration-client.offline-data-not-saved','[PendingState]:\x20received\x20rejection.','_permissionService','onSendChangeset','SYNCED','c2Prime','Undefined','_clearRedo','textRanges','code','_getCtorByUniverType','currentTheme$','substring','restore','event$','putCollaborators','_urlService','_sheetSkeletonManagerService','_updateState','LOCAL_CACHE_INTERVAL','_onJoinRoomEvent','updateCollaborator','session.connection-failed','_lastPointer','getMemberID','history','_substituteUndoStack','0\x200\x2016\x2016','assignAColorForMemberID','_onConnectionFailed','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_stopTelemetryCollaborationNewChangeset','mutations','_name','CHANGESET_REVISION_CONFILICT','_removeCollabCursors','getUndoRedoMutationParamsCache','univerjs-icon\x20univerjs-icon-','CHANGESET_REJ','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_removeRoom','cursorInfo$','_ensureSubject','pushState','on-line-single','_undoStacks','getTypeOfUnitAdded$','transformIMECache','getMergeData','all','unload','update','_cachedData','_timeoutTimer','?url=','/universer-api/authz','disableLocalCache','awaiting','_imageSourceCache','actions','stopTime','getRenderById','updatePermissionObjEvent','_eventUnsubscribe','_pendingMutations','exhaustSavingTask','PERMISSION_REJ','className','joinEvent','function','socket$','searchParams','uni.network.url-service','collaboration.single-unit.warning','isArray','UNIVER_UNKNOWN','3717318YkCBfv','_sendHeartbeat','APPLY_PERMISSION_DENIED','open$','COMMENT_UPDATE','enableLocalCache','setConfig','socketService','_localCacheService','[OfflineState]:\x20received\x20changeset.','sessionStatus$','LICENSE_IMPORT_SIZE_EXCEEDED','_anchorDot','createInstance','UNDEFINED','collab-text-anchor-','_unitOnClients','UNKNOWN_CMD','YUUMI_URL_COL_OUT_OF_RANGE','_localStorageService','_saveCache','sendChangesetTimeout','responseType','[CollaborationSessionService]:\x20socket\x20error','_initCommandExecutedListener','DeleteRangeMoveLeftCommandId','resize','image/jpg','fromCollab','auth.needGotoLoginAlert','appendMutation','\x0aCurrent:\x20','_socket','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_roomMembers','updateOfflineData','ERROR_IMAGE','authzUrl','setAlpha','storage','_clearLocalCache','colorChannel1','Univer','_configService','_setupBeforeClosingHandler','_checkMissing','/universer-api/snapshot/','object','_cursorShapes','LIVESHARE_TERMINATE','save','onMissingChangesets','_assignedColors','_unitStatus','_removeClearOtherTimer','_initModules','DEFAULT_FILE_NAME','popstate','off-line-single','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','lineTo','_disabled','getAncestorScale','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','awaitingChangeset','eventID','engine','csAckEvent','_toggleOffline','status','evenodd','_redoStacks','transformByState','online','getImage','_onRecvEvent','filter','withCredentials','_lockTransition','state','round','_initEventListeners','APPLY_NON_SEQUENTIAL_REVISION','currentColor','/unit/','_getSnapshotAPIPrefix','_replayCachedMutations','transformChangesets','executeCommand','getUnit','_scheduleCollaborationTimeoutTimer','/-/object/list','USERS_LEAVE','[SyncedState]:\x20received\x20acknowledgement.','append','UUID','_injector','telemetry\x20info\x20is\x20not\x20initialized','_instanceService','concat','_httpService','HELLO','_docStateChangeManagerService','_handleHover','addObjects','_docTransformSelectionsService','AWAITING_WITH_PENDING','onCommandExecuted','registerBeforeClose','collaboration_new_changeset','defIds','translate(.97)','_notificationService','_render','urlChange$','registerHTTPInterceptor','[CollaborationState]:\x20apply\x20error!','#FFF','black','UnitEmbedded','MUTATION','verdancy600','_sessions','div','liveShareNewHost','RemoveColCommandId','_startSheetCollabCursor','_entities','fetchThroughInterceptors','getCurrentSelections','_collabSessionService','_listenToOnlineEvent','/new_changes','_throwTelemetryCollaborationNewChangeset','[PendingState]:\x20received\x20acknowledgement.','toggleOffline','getRelativeToViewportCoord','3092VLNTyN','apply','addImageSourceCache','/universer-api/stream/file/upload','_sendHeartbeatTimer','registerComponent','_retryCount','USERS_ENTER','[DataLoaderController]','_disableEditing','_entityInit$','jiqing500','rev','editingUnit','length','saveChangeset','headers','_scheduleHeartbeat','collabWebSocketUrl','_onFetchMissResult','_syncEditingCollabCursorService','now','routeKey','_drawAnchor','Unknown\x20user','sheets','sheetID','_getScale','_submitChangeset','getUnitStatus$','width','ONLINE','AWAITING','_anchor','baseRev','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Error\x20on\x20receiving\x20event','currentSkeleton$','_refreshCollabCursors','setCurrentUser','HEARTBEAT','conflict.content','setParam','reduce','_compressMutationService','_change$','disposeUnit','defs','getSheetBySheetId','saveSnapshot','text','pipe','onPointerEnter$','&assign=','collaboratorID','image/jpeg','_cursorInfo$','_onRemoteChangeset','pending','fillText','LIVESHARE_OPERATION','confirm','roomMembers','resolve','onTransformChange$','labelPosition','collabSubmitChangesetUrl','_startCollaboration','_onLocalMutation','onStateChange','_transformSelections','_colorAssignService','name','_decreaseWaiting','[CollaborationUndoRedoService]','onSyncEditingCollabCursor','deleteCollaborator','_clearCollaborationTimeoutTimer','_clearScheduledTask','body','onRemoteRej','extend','/-/object/-/batch_allowed','BASE64','_applyRemoteChangeset','HEARTBEAT_INTERVAL','addEventListener','transform','listRoles','override','failed\x20to\x20apply\x20missed\x20changesets!','_onCombEvent','LEAVE','RECV','onTransformSelections','fill','_shouldReportTelemetry','transformUndoRedo'];_0x7251=function(){return _0x9706ac;};return _0x7251();}et=Xo([Pe(0x0,_0x160402(_0x283cc6)),Pe(0x1,_0x33adea),Pe(0x2,_0x375c1f),Pe(0x3,_0x160402(ce)),Pe(0x4,_0x160402(_0x2f3b7b))],et);var Jo=Object[_0xa6a604(0x222)],qo=Object[_0xa6a604(0x4ce)],zo=(_0x34a2d3,_0x8b8385,_0x1a4e88,_0x2a20ef)=>{const _0x3e8a93=_0xa6a604;for(var _0x2921cb=_0x2a20ef>0x1?void 0x0:_0x2a20ef?qo(_0x8b8385,_0x1a4e88):_0x8b8385,_0x34a0b2=_0x34a2d3[_0x3e8a93(0x391)]-0x1,_0x9743c8;_0x34a0b2>=0x0;_0x34a0b2--)(_0x9743c8=_0x34a2d3[_0x34a0b2])&&(_0x2921cb=(_0x2a20ef?_0x9743c8(_0x8b8385,_0x1a4e88,_0x2921cb):_0x9743c8(_0x2921cb))||_0x2921cb);return _0x2a20ef&&_0x2921cb&&Jo(_0x8b8385,_0x1a4e88,_0x2921cb),_0x2921cb;},gs=(_0x1b0d58,_0x108e6f)=>(_0x49cf10,_0xac64b4)=>_0x108e6f(_0x49cf10,_0xac64b4,_0x1b0d58);let Nt=class{constructor(_0x381422,_0xf959eb){const _0x27f85d=_0xa6a604;this[_0x27f85d(0x325)]=_0x381422,this['_httpService']=_0xf959eb;}async[_0xa6a604(0x449)](_0x537afc,_0x454a0d){const _0x32bb0b=_0xa6a604;var _0x36f6b2;const {unitID:_0x57805a,type:_0x1e67ee,revision:_0x501438=0x0}=_0x454a0d,_0x1a586f=this[_0x32bb0b(0x34f)]()+'/'+_0x1e67ee+_0x32bb0b(0x34e)+_0x57805a+_0x32bb0b(0x21f)+_0x501438,_0x3f591e=(await this[_0x32bb0b(0x35e)][_0x32bb0b(0x504)](_0x1a586f))[_0x32bb0b(0x3d2)],_0x2f8604=(_0x36f6b2=_0x3f591e[_0x32bb0b(0x1ff)])==null?void 0x0:_0x36f6b2[_0x32bb0b(0x540)];if(_0x2f8604){const _0x10a3b1=_0x2f8604==null?void 0x0:_0x2f8604['originalMeta'],_0x1790c7=_0x20a8ca['encode'](_0x2b8cba(_0x10a3b1));_0x2f8604['originalMeta']=_0x1790c7,Object[_0x32bb0b(0x296)](_0x2f8604[_0x32bb0b(0x39c)])[_0x32bb0b(0x213)](([,_0xea92d4])=>{const _0x538451=_0x32bb0b,_0x448119=_0xea92d4[_0x538451(0x22a)],_0x3adc2d=_0x20a8ca['encode'](_0x2b8cba(_0x448119));_0xea92d4[_0x538451(0x22a)]=_0x3adc2d;});}return _0x3f591e;}async[_0xa6a604(0x1fe)](_0x4a4f37,_0x24e5ed){const _0x578f9b=_0xa6a604,{unitID:_0xe2d46,type:_0x494269,blockID:_0x1e41fd}=_0x24e5ed,_0x5e58f3=this[_0x578f9b(0x47d)]()+'/'+_0x494269+_0x578f9b(0x34e)+_0xe2d46+_0x578f9b(0x43a)+_0x1e41fd;return(await this[_0x578f9b(0x35e)]['get'](_0x5e58f3))[_0x578f9b(0x3d2)];}async[_0xa6a604(0x53f)](_0x3483b1,_0xc650c6){const _0x21b5a9=_0xa6a604,{unitID:_0x4369bf,type:_0x30fc11,blockID:_0x1e4d95}=_0xc650c6,_0x352e95=this[_0x21b5a9(0x47d)]()+_0x21b5a9(0x43a)+_0x30fc11+_0x21b5a9(0x34e)+_0x4369bf+_0x21b5a9(0x43a)+_0x1e4d95;return(await this['_httpService'][_0x21b5a9(0x504)](_0x352e95))[_0x21b5a9(0x3d2)];}async['fetchMissingChangesets'](_0x915abc,_0x240679){const _0xc18073=_0xa6a604,{unitID:_0x5d99be,type:_0x6ac836,from:_0x403c71,to:_0xa01ae0}=_0x240679,_0x29f5b8=this[_0xc18073(0x47d)]()+'/'+_0x6ac836+_0xc18073(0x34e)+_0x5d99be+_0xc18073(0x200)+_0x403c71+_0xc18073(0x485)+_0xa01ae0;return(await this[_0xc18073(0x35e)][_0xc18073(0x504)](_0x29f5b8))['body'];}[_0xa6a604(0x34f)](){const _0x44c403=_0xa6a604;var _0x1fb911;return(_0x1fb911=this[_0x44c403(0x325)][_0x44c403(0x4e5)](mn))!=null?_0x1fb911:this[_0x44c403(0x47d)]();}[_0xa6a604(0x47d)](){const _0x1a7d2b=_0xa6a604;var _0x1090e0,_0x17f09b;const _0x415294=this[_0x1a7d2b(0x325)][_0x1a7d2b(0x4e5)](dn),_0x10bf9f=this[_0x1a7d2b(0x325)][_0x1a7d2b(0x4e5)](L);return(_0x17f09b=(_0x1090e0=_0x10bf9f==null?void 0x0:_0x10bf9f['snapshotServerUrl'])!=null?_0x1090e0:_0x415294)!=null?_0x17f09b:fn;}async[_0xa6a604(0x48d)](_0x3c9c7f,_0x3a01e5){const _0xfd110=_0xa6a604,_0x57334a=_0xfd110(0x328)+_0x3a01e5[_0xfd110(0x536)]+_0xfd110(0x34e)+_0x3a01e5[_0xfd110(0x1ec)]+'/resources';return(await this['_httpService'][_0xfd110(0x504)](_0x57334a,{'params':{'resourceId':JSON['stringify'](_0x3a01e5['resourceIDs'])}}))[_0xfd110(0x3d2)];}[_0xa6a604(0x3b4)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xa6a604(0x286)](){const _0x5a7926=_0xa6a604;throw new Error(_0x5a7926(0x22c));}[_0xa6a604(0x392)](){const _0x52f1a1=_0xa6a604;throw new Error(_0x52f1a1(0x22c));}[_0xa6a604(0x1fc)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Nt=zo([gs(0x0,_0x123c7a),gs(0x1,_0x160402(_0x24a261))],Nt);var Zo=Object[_0xa6a604(0x222)],Qo=Object['getOwnPropertyDescriptor'],ea=(_0x41bdde,_0x1b6e1f,_0x3c259b,_0x5aedb7)=>{const _0x1fb7f7=_0xa6a604;for(var _0x218f7d=_0x5aedb7>0x1?void 0x0:_0x5aedb7?Qo(_0x1b6e1f,_0x3c259b):_0x1b6e1f,_0x2e2060=_0x41bdde[_0x1fb7f7(0x391)]-0x1,_0x1067a8;_0x2e2060>=0x0;_0x2e2060--)(_0x1067a8=_0x41bdde[_0x2e2060])&&(_0x218f7d=(_0x5aedb7?_0x1067a8(_0x1b6e1f,_0x3c259b,_0x218f7d):_0x1067a8(_0x218f7d))||_0x218f7d);return _0x5aedb7&&_0x218f7d&&Zo(_0x1b6e1f,_0x3c259b,_0x218f7d),_0x218f7d;},ye=(_0x8b6b67,_0x36678b)=>(_0x95be59,_0x1b1e3e)=>_0x36678b(_0x95be59,_0x1b1e3e,_0x8b6b67);let Ut=class extends _0x5871c7{constructor(_0x46a43e,_0x3936ab,_0x42f119,_0x1ee4ab,_0x2e7dd3){const _0x239644=_0xa6a604;super(_0x46a43e,_0x3936ab,_0x42f119),this[_0x239644(0x48c)]=_0x1ee4ab,this[_0x239644(0x493)]=_0x2e7dd3;}[_0xa6a604(0x3e4)](_0x2da1f6,_0x2d2172){const _0x4c4e8b=_0xa6a604,_0xa565e=this[_0x4c4e8b(0x4b5)](_0x2da1f6);if(_0xa565e)try{const _0x1034a4=this[_0x4c4e8b(0x45e)](_0xa565e,_0x2d2172);this[_0x4c4e8b(0x2c8)](_0x2da1f6,_0x1034a4);}catch(_0x4732c4){this[_0x4c4e8b(0x493)][_0x4c4e8b(0x3f7)](_0x4c4e8b(0x3cd),_0x4732c4),this[_0x4c4e8b(0x40f)](_0x2da1f6);}const _0x21a6f5=this[_0x4c4e8b(0x236)](_0x2da1f6);if(_0x21a6f5)try{const _0x5d1ce4=this[_0x4c4e8b(0x45e)](_0x21a6f5,_0x2d2172);this[_0x4c4e8b(0x2aa)](_0x2da1f6,_0x5d1ce4);}catch(_0xb54976){this[_0x4c4e8b(0x493)][_0x4c4e8b(0x3f7)](_0xb54976),this[_0x4c4e8b(0x2b5)](_0x2da1f6);}}['_clearUndo'](_0x526df3){const _0x3ada45=_0xa6a604,_0x326350=this[_0x3ada45(0x4b5)](_0x526df3);_0x326350&&(_0x326350[_0x3ada45(0x391)]=0x0,this[_0x3ada45(0x518)]());}[_0xa6a604(0x2b5)](_0x25c826){const _0x5e9ffe=this['_getRedoStack'](_0x25c826);_0x5e9ffe&&(_0x5e9ffe['length']=0x0,this['_updateStatus']());}[_0xa6a604(0x2c8)](_0x267727,_0x12f275){const _0x57509b=_0xa6a604;this[_0x57509b(0x2db)][_0x57509b(0x455)](_0x267727,_0x12f275),this['_updateStatus']();}[_0xa6a604(0x2aa)](_0xaafc78,_0x46214f){const _0xa50d34=_0xa6a604;this[_0xa50d34(0x341)][_0xa50d34(0x455)](_0xaafc78,_0x46214f),this[_0xa50d34(0x518)]();}[_0xa6a604(0x45e)](_0x5a6047,_0x192ff8){const _0x575211=_0xa6a604,_0x729223=[];let _0x52bd51=_0x192ff8,_0x23461d=_0x192ff8;for(let _0x56f90b=_0x5a6047[_0x575211(0x391)]-0x1;_0x56f90b>=0x0;_0x56f90b--){const {unitID:_0xcc3b26,undoMutations:_0xd24f83,redoMutations:_0x2fbca7}=_0x5a6047[_0x56f90b],_0x609df6=this[_0x575211(0x48c)]['transformMutationsWithChangeset'](_0x52bd51,_0xd24f83),_0x836c40=this['_transformService']['transformMutationsWithChangeset'](_0x23461d,_0x2fbca7);if(_0x5c865a(_0x609df6)||_0x5c865a(_0x836c40)){this[_0x575211(0x493)][_0x575211(0x3f7)](_0x575211(0x3cd),_0x575211(0x4ef),_0x609df6,_0x836c40);break;}_0x52bd51=_0x609df6['c1Prime'],_0x23461d=_0x836c40[_0x575211(0x24e)],_0x729223[_0x575211(0x539)]({'unitID':_0xcc3b26,'undoMutations':_0x609df6[_0x575211(0x29d)],'redoMutations':_0x836c40[_0x575211(0x29d)]});}return _0x729223[_0x575211(0x25b)]();}};Ut=ea([ye(0x0,_0x33adea),ye(0x1,_0x5a0862),ye(0x2,_0x485aab),ye(0x3,_0x5ea876),ye(0x4,_0x4e432b)],Ut);class ta extends _0x48a1ad{constructor(){const _0x5ef2cf=_0xa6a604;super(),l(this,_0x5ef2cf(0x36c)),this[_0x5ef2cf(0x36c)]=_0x258cea(window,_0x5ef2cf(0x333))[_0x5ef2cf(0x3b6)](_0x23bb2f(this[_0x5ef2cf(0x424)]),_0x1acd58(0x1),_0x27b06e(void 0x0));}['setParam'](_0x58c919,_0x39cb61,_0x4cd0a0=!0x1){const _0x24df06=_0xa6a604,_0x23700c=new URL(window[_0x24df06(0x437)][_0x24df06(0x4f8)]);_0x23700c[_0x24df06(0x2f5)][_0x24df06(0x455)](_0x58c919,_0x39cb61),_0x4cd0a0?window[_0x24df06(0x2c7)][_0x24df06(0x244)]('','',_0x23700c[_0x24df06(0x3ed)]()):window['history'][_0x24df06(0x2d9)]('','',_0x23700c[_0x24df06(0x3ed)]());}['removeParam'](_0x5af8fe,_0x7c5a5=!0x1){const _0x2d7dc1=_0xa6a604,_0x6c0fb0=new URL(window['location']['href']);_0x6c0fb0[_0x2d7dc1(0x2f5)][_0x2d7dc1(0x3fe)](_0x5af8fe),_0x7c5a5?window['history'][_0x2d7dc1(0x244)]('','',_0x6c0fb0['toString']()):window[_0x2d7dc1(0x2c7)][_0x2d7dc1(0x2d9)]('','',_0x6c0fb0[_0x2d7dc1(0x3ed)]());}[_0xa6a604(0x4ed)](_0x6bae24){const _0x939bad=_0xa6a604;var _0x425ce8;return(_0x425ce8=new URL(window['location'][_0x939bad(0x4f8)])[_0x939bad(0x2f5)][_0x939bad(0x504)](_0x6bae24))!=null?_0x425ce8:void 0x0;}}var Gs=Object['defineProperty'],sa=Object[_0xa6a604(0x4ce)],ia=(_0x25c47f,_0x36953a,_0x4ac9cc)=>_0x36953a in _0x25c47f?Gs(_0x25c47f,_0x36953a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ac9cc}):_0x25c47f[_0x36953a]=_0x4ac9cc,na=(_0x2a4df1,_0x389cfb,_0x24f531,_0x3d8bd4)=>{for(var _0x680677=_0x3d8bd4>0x1?void 0x0:_0x3d8bd4?sa(_0x389cfb,_0x24f531):_0x389cfb,_0x36c650=_0x2a4df1['length']-0x1,_0x5b816b;_0x36c650>=0x0;_0x36c650--)(_0x5b816b=_0x2a4df1[_0x36c650])&&(_0x680677=(_0x3d8bd4?_0x5b816b(_0x389cfb,_0x24f531,_0x680677):_0x5b816b(_0x680677))||_0x680677);return _0x3d8bd4&&_0x680677&&Gs(_0x389cfb,_0x24f531,_0x680677),_0x680677;},ke=(_0x5587c7,_0x4e3d9d)=>(_0x58dd90,_0x457ae3)=>_0x4e3d9d(_0x58dd90,_0x457ae3,_0x5587c7),ra=(_0x55c438,_0x4c948d,_0x2c4003)=>ia(_0x55c438,_0x4c948d+'',_0x2c4003);const oa=_0xa6a604(0x4fe);let Mt=class extends _0x56b9f6{constructor(_0x4d83d7=yn,_0x3cd666,_0x398052,_0x2527e8,_0x4d54f3){const _0x3675e0=_0xa6a604;super(),this[_0x3675e0(0x3fc)]=_0x4d83d7,this[_0x3675e0(0x493)]=_0x3cd666,this['_renderManagerService']=_0x398052,this[_0x3675e0(0x35a)]=_0x2527e8,this[_0x3675e0(0x325)]=_0x4d54f3;const {..._0x317cf0}=this[_0x3675e0(0x3fc)];this[_0x3675e0(0x325)][_0x3675e0(0x300)](L,_0x317cf0);}['onStarting'](){const _0x875c26=_0xa6a604;this[_0x875c26(0x43d)](),_0x5319da(this[_0x875c26(0x35a)],[[pe],[qe],[et]]);}[_0xa6a604(0x22f)](){const _0x3f7dd6=_0xa6a604;_0x5319da(this[_0x3f7dd6(0x35a)],[[ze]]);}['onRendered'](){const _0x51ee11=_0xa6a604;this[_0x51ee11(0x467)]();}['_registerDependencies'](){const _0x2bce86=_0xa6a604;var _0x22b3b6,_0x496296,_0x55955b,_0x1bb8b0;this[_0x2bce86(0x35a)][_0x2bce86(0x1f9)](_0xfe397)&&this[_0x2bce86(0x493)][_0x2bce86(0x3f7)](_0x2bce86(0x409),_0x2bce86(0x339));let _0x41c82b=[[_0xfe397,{'useClass':Ut}],[ce],[Ft],[_0x24a261],[Ws,{'useClass':ta}],[ae],[D],[_0x455b4c],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x496296=(_0x22b3b6=this['_config'])==null?void 0x0:_0x22b3b6[_0x2bce86(0x301)])!=null?_0x496296:Et}],[_0x5e91e5,{'useClass':_0x5f0490}],[_0x4c8bab,{'useClass':Nt}],[_0x523cec,{'useClass':Pt}],[_0x53feec,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x55955b=this[_0x2bce86(0x3fc)])!=null&&_0x55955b[_0x2bce86(0x4a1)]&&_0x41c82b['push']([tt,{'useClass':rr}]),_0x41c82b=_0x370722(_0x41c82b,(_0x1bb8b0=this['_config'])==null?void 0x0:_0x1bb8b0[_0x2bce86(0x3dc)]),_0x41c82b[_0x2bce86(0x213)](_0x535a16=>this[_0x2bce86(0x35a)][_0x2bce86(0x1e7)](_0x535a16)),this[_0x2bce86(0x331)]();}['_registerRenderDependencies'](){const _0x1d6d34=_0xa6a604;this[_0x1d6d34(0x4f3)](this[_0x1d6d34(0x288)]['registerRenderModule'](_0x39cf18['UNIVER_DOC'],[Dt])),this[_0x1d6d34(0x4f3)](this[_0x1d6d34(0x288)]['registerRenderModule'](_0x39cf18['UNIVER_SHEET'],[wt]));}[_0xa6a604(0x331)](){const _0x3b9731=_0xa6a604;var _0x53cef2,_0x238145;this[_0x3b9731(0x35a)]['get'](_0x24a261)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x1d7570({'maxParallel':0x6})}),this[_0x3b9731(0x35a)][_0x3b9731(0x504)](Qe),(_0x53cef2=this['_config'])!=null&&_0x53cef2[_0x3b9731(0x53c)]||this[_0x3b9731(0x35a)][_0x3b9731(0x504)](D)['disableLocalCache'](),(_0x238145=this['_config'])!=null&&_0x238145[_0x3b9731(0x411)]&&this[_0x3b9731(0x35a)][_0x3b9731(0x504)](Ze),this[_0x3b9731(0x35a)][_0x3b9731(0x504)](Ae),this['_injector'][_0x3b9731(0x1f9)](Ue)&&this[_0x3b9731(0x35a)][_0x3b9731(0x504)](Ue);}};ra(Mt,_0xa6a604(0x3ef),oa),Mt=na([_0x571c11(_0x43d2ba),ke(0x1,_0x4e432b),ke(0x2,_0x25950e),ke(0x3,_0x160402(_0x283cc6)),ke(0x4,_0x123c7a)],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 _0x2da18b=_0x44b4;(function(_0x2f6bb3,_0x42ed5e){const _0x512045=_0x44b4,_0x49b530=_0x2f6bb3();while(!![]){try{const _0x30d6b9=parseInt(_0x512045(0x415))/0x1+-parseInt(_0x512045(0x374))/0x2*(-parseInt(_0x512045(0x3ea))/0x3)+parseInt(_0x512045(0x198))/0x4*(parseInt(_0x512045(0x48d))/0x5)+-parseInt(_0x512045(0x211))/0x6*(parseInt(_0x512045(0x232))/0x7)+-parseInt(_0x512045(0x13b))/0x8+-parseInt(_0x512045(0x1ac))/0x9+parseInt(_0x512045(0x359))/0xa*(-parseInt(_0x512045(0x26b))/0xb);if(_0x30d6b9===_0x42ed5e)break;else _0x49b530['push'](_0x49b530['shift']());}catch(_0x4931d9){_0x49b530['push'](_0x49b530['shift']());}}}(_0x10c1,0x4a2c5));var zs=Object[_0x2da18b(0x151)],Zs=(_0x5e2f1f,_0x37df1a,_0x350520)=>_0x37df1a in _0x5e2f1f?zs(_0x5e2f1f,_0x37df1a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x350520}):_0x5e2f1f[_0x37df1a]=_0x350520,l=(_0xc864d6,_0x26473f,_0x19c3bb)=>Zs(_0xc864d6,typeof _0x26473f!=_0x2da18b(0x33c)?_0x26473f+'':_0x26473f,_0x19c3bb);import{createIdentifier as _0x4f53b0,Inject as _0x24691e,Disposable as _0x3bc0d2,DisposableCollection as _0x15e5d9,toDisposable as _0xc09fc4,IConfigService as _0x4b95b7,ILogService as _0x16c619,UserManagerService as _0x2d6772,UniverInstanceType as _0x43baa3,IUniverInstanceService as _0x4af863,LocaleService as _0x1695f3,Optional as _0x1be607,RxDisposable as _0x13b3a6,Injector as _0x129c7a,Tools as _0x5ee8c7,ILocalStorageService as _0x3c9fa7,ICommandService as _0x18280b,JSONX as _0x34e2cd,CommandType as _0x109a6f,IPermissionService as _0x1892f6,IUndoRedoService as _0x37a9c2,sequenceExecute as _0x532db3,debounce as _0x77ae19,Rectangle as _0x34bc57,COLORS as _0x2af6c8,ColorKit as _0x581e9c,ThemeService as _0x5074d3,fromEventSubject as _0x10c8e6,useDependency as _0x2bb079,connectInjector as _0x35553f,Workbook as _0x40cd22,isInternalEditorID as _0x35eafb,LocalUndoRedoService as _0x122a1c,IContextService as _0x5eded2,DependentOn as _0x241aac,Plugin as _0x390594,touchDependencies as _0x120347,IAuthzIoService as _0x480b72,mergeOverrideWithDependencies as _0x42ac03}from'@univerjs/core';import{Subject as _0x526cd2,merge as _0x5799ee,takeUntil as _0x1cea38,BehaviorSubject as _0x295ce3,distinctUntilChanged as _0x49c724,fromEvent as _0x267a81,map as _0x63f2b0,shareReplay as _0x503b15,take as _0x409ffd,of as _0x2576f8,debounceTime as _0x10aa2e,filter as _0x2d3c1f,switchMap as _0xe06e10,combineLatest as _0x599ee5,concatMap as _0x3e80de,mapTo as _0x144e4a}from'rxjs';import{map as _0x5ddac4,take as _0x3101c1,filter as _0x333799,delay as _0x18a894,throttleTime as _0x71005e,takeUntil as _0x17e7c5,switchMap as _0x1e9fa8}from'rxjs/operators';import{MessageType as _0x35eeb1,Tooltip as _0xc9e9c9}from'@univerjs/design';import{IBeforeCloseService as _0x569db2,IMessageService as _0x349d24,INotificationService as _0x42d964,useObservable as _0x3636b2,BuiltInUIPart as _0x23ebca,IUIPartsService as _0x8ec652}from'@univerjs/ui';import{HTTPService as _0xa0ce64,WebSocketService as _0x2e1788,MergeInterceptorFactory as _0x618fae,HTTPRequest as _0x4e3080,IHTTPImplementation as _0x17534e,XHRHTTPImplementation as _0x79e78f,ThresholdInterceptorFactory as _0x337f4a}from'@univerjs/network';import{CollaborationEvent as _0x128ecb,parseChangesetToProtocol as _0x5d8917,ISnapshotServerService as _0x2cde65,isTransformMutationFailure as _0x43ac9d,isTransformMutationsWithChangesetSuccess as _0x524343,ITransformService as _0x418a36,RevisionService as _0x40a032,mapDocumentTypeToUniverType as _0x31e3bf,isTransformChangesetsSuccess as _0x51238a,CompressMutationService as _0x463628,parseProtocolChangeset as _0x373326,SnapshotService as _0x916a77,textEncoder as _0x4e00c2,b64DecodeUnicode as _0x24869c,isTransformMutationsWithChangesetFailure as _0x19d75d,UniverCollaborationPlugin as _0x4768dc}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x3014d0}from'@univerjs/telemetry';import{DocSelectionManagerService as _0xd0d12d,RichTextEditingMutation as _0x11f4dd,SetTextSelectionsOperation as _0x12c35b,DocSkeletonManagerService as _0x386e72}from'@univerjs/docs';import{DocIMEInputManagerService as _0x188ac7,DocStateChangeManagerService as _0x417486,NodePositionConvertToCursor as _0x1ffb2a,isValidRectRange as _0x10f419,NodePositionConvertToRectRange as _0x2619ed,TEXT_RANGE_LAYER_INDEX as _0x470ec7,SetDocZoomRatioOperation as _0x1acd90}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x19b20b,SetSelectionsOperation as _0x3c7ab3,InsertSheetMutation as _0x59880b,EmptyMutation as _0x4af40d,WorkbookEditablePermission as _0x182d13,RefRangeService as _0x10ec28,EffectRefRangId as _0x3b7f59,handleIRemoveRow as _0x4f44cf,handleIRemoveCol as _0x4fb4f8,handleMoveRange as _0x3f4a82,handleInsertRow as _0x484fb6,handleInsertRangeMoveRight as _0x41db6a,handleInsertRangeMoveDown as _0x3a8b0e,handleInsertCol as _0x287ebd,handleDeleteRangeMoveUp as _0x19e925,handleDeleteRangeMoveLeft as _0x20d302,runRefRangeMutations as _0x3f0515,SetWorksheetActivateCommand as _0x390cc8}from'@univerjs/sheets';import{IRenderManagerService as _0x4031fb,Shape as _0x24438a,Rect as _0x2eb7b4,getColor as _0x35c7a2,RegularPolygon as _0x5f1bc5,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x44019e,Vector2 as _0x2adc66}from'@univerjs/engine-render';import{ImageSourceType as _0x4dff21,ImageUploadStatusType as _0x546962,IImageIoService as _0x330a1d}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x1f9a73,serializeRangeWithSheet as _0x811c4}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x17b47d,VIEWPORT_KEY as _0x48000c,getCoordByCell as _0x364cb7,getSheetObject as _0x41bfa0,SheetPermissionInitController as _0x25e324}from'@univerjs/sheets-ui';import _0x1e38e7,{forwardRef as _0x14ba75,useRef as _0xe64086,createElement as _0x1d57c6,useCallback as _0x54fd35}from'react';import{IRemoteInstanceService as _0x5658b1}from'@univerjs/rpc';import{getAttachHeader as _0x1c94eb}from'@univerjs-pro/license';const dn='SNAPSHOT_SERVER_URL_KEY',fn='/universer-api/snapshot',mn='SNAPSHOT_URL_KEY',Oa=_0x2da18b(0x1b5),gn=0x7d0,Sn=_0x2da18b(0x35f),pn=_0x2da18b(0x292),vn='HEARTBEAT_INTERVAL',In=0x7530,Ns=_0x2da18b(0x2b4),Us=0x4e20,En=0x4e20,Cn='RETRY_CONNECTING_MAX_COUNT',bn=0x3,Tn=_0x2da18b(0x264),Rn=0x3e8,On=_0x2da18b(0x391),Dn='/universer-api/comb',wn='LOGIN_URL_KEY',Pn=_0x2da18b(0x3bd);var Ms=(_0x319ab2=>(_0x319ab2[_0x319ab2['UNDEFINED']=0x0]=_0x2da18b(0x2e3),_0x319ab2[_0x319ab2['OK']=0x1]='OK',_0x319ab2[_0x319ab2[_0x2da18b(0x1bd)]=0x2]=_0x2da18b(0x1bd),_0x319ab2[_0x319ab2[_0x2da18b(0x14e)]=0x3]=_0x2da18b(0x14e),_0x319ab2[_0x319ab2['NOT_FOUND']=0x4]=_0x2da18b(0x489),_0x319ab2[_0x319ab2['UNAUTHENTICATED']=0x5]=_0x2da18b(0x178),_0x319ab2[_0x319ab2[_0x2da18b(0x228)]=0x6]='ALREADY_EXISTS',_0x319ab2[_0x319ab2[_0x2da18b(0x239)]=0x7]=_0x2da18b(0x239),_0x319ab2[_0x319ab2['TOO_MANY_REQUESTS']=0x8]=_0x2da18b(0x3bb),_0x319ab2[_0x319ab2[_0x2da18b(0x23f)]=0x9]=_0x2da18b(0x23f),_0x319ab2[_0x319ab2[_0x2da18b(0x262)]=0x1389]=_0x2da18b(0x262),_0x319ab2[_0x319ab2['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x2da18b(0x3ba),_0x319ab2[_0x319ab2['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2da18b(0x2ac),_0x319ab2[_0x319ab2[_0x2da18b(0x2d3)]=0x1b59]=_0x2da18b(0x2d3),_0x319ab2[_0x319ab2[_0x2da18b(0x3e5)]=0x1b5a]=_0x2da18b(0x3e5),_0x319ab2[_0x319ab2[_0x2da18b(0x1a0)]=0x1b5b]=_0x2da18b(0x1a0),_0x319ab2[_0x319ab2[_0x2da18b(0x345)]=0x1b5c]=_0x2da18b(0x345),_0x319ab2[_0x319ab2[_0x2da18b(0x15b)]=0x1f41]=_0x2da18b(0x15b),_0x319ab2[_0x319ab2['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x2da18b(0x40a),_0x319ab2[_0x319ab2[_0x2da18b(0x190)]=0x232a]=_0x2da18b(0x190),_0x319ab2[_0x319ab2[_0x2da18b(0x12f)]=0x232b]=_0x2da18b(0x12f),_0x319ab2[_0x319ab2[_0x2da18b(0x426)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x319ab2[_0x319ab2[_0x2da18b(0x32f)]=0x232d]=_0x2da18b(0x32f),_0x319ab2[_0x319ab2[_0x2da18b(0x2bc)]=0x2711]=_0x2da18b(0x2bc),_0x319ab2[_0x319ab2[_0x2da18b(0x48f)]=0x2712]=_0x2da18b(0x48f),_0x319ab2[_0x319ab2[_0x2da18b(0x1f6)]=0x2713]=_0x2da18b(0x1f6),_0x319ab2[_0x319ab2[_0x2da18b(0x27b)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x319ab2[_0x319ab2['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x319ab2))(Ms||{}),H=(_0x29add4=>(_0x29add4[_0x29add4[_0x2da18b(0x22b)]=0x0]=_0x2da18b(0x22b),_0x29add4[_0x29add4['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x29add4[_0x29add4[_0x2da18b(0x2d4)]=0x2]=_0x2da18b(0x2d4),_0x29add4[_0x29add4[_0x2da18b(0x41a)]=0x3]=_0x2da18b(0x41a),_0x29add4[_0x29add4[_0x2da18b(0x395)]=0x4]='UNIVER_PROJECT',_0x29add4[_0x29add4[_0x2da18b(0x311)]=-0x1]=_0x2da18b(0x311),_0x29add4))(H||{}),I=(_0x417b23=>(_0x417b23[_0x417b23[_0x2da18b(0x1a5)]=0x0]=_0x2da18b(0x1a5),_0x417b23[_0x417b23[_0x2da18b(0x3c4)]=0x1]='HELLO',_0x417b23[_0x417b23[_0x2da18b(0x2c9)]=0x2]=_0x2da18b(0x2c9),_0x417b23[_0x417b23[_0x2da18b(0x307)]=0x3]=_0x2da18b(0x307),_0x417b23[_0x417b23['INGEST']=0x4]='INGEST',_0x417b23[_0x417b23[_0x2da18b(0x316)]=0x5]='HEARTBEAT',_0x417b23[_0x417b23[_0x2da18b(0x270)]=0x6]=_0x2da18b(0x270),_0x417b23[_0x417b23[_0x2da18b(0x311)]=-0x1]=_0x2da18b(0x311),_0x417b23))(I||{}),kt=(_0x109008=>(_0x109008[_0x109008['UNKNOWN_CODE']=0x0]=_0x2da18b(0x40e),_0x109008[_0x109008['OK']=0x1]='OK',_0x109008[_0x109008[_0x2da18b(0x48a)]=0x2]=_0x2da18b(0x48a),_0x109008[_0x109008['UNRECOGNIZED']=-0x1]=_0x2da18b(0x311),_0x109008))(kt||{}),As=(_0x3b5e76=>(_0x3b5e76[_0x3b5e76[_0x2da18b(0x3da)]=0x0]='Undefined',_0x3b5e76[_0x3b5e76[_0x2da18b(0x32c)]=0x1]='HttpImport',_0x3b5e76[_0x3b5e76[_0x2da18b(0x451)]=0x2]=_0x2da18b(0x451),_0x3b5e76[_0x3b5e76[_0x2da18b(0x3b2)]=0x3]=_0x2da18b(0x3b2),_0x3b5e76[_0x3b5e76[_0x2da18b(0x200)]=0x4]=_0x2da18b(0x200),_0x3b5e76[_0x3b5e76['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3b5e76))(As||{});const L='collaboration-client.config',yn={};function Nn(_0x2b0a77){const _0x3729ec=_0x2da18b;var _0x594e7e,_0x481e87,_0x2efcb5,_0x1b1be7;const _0xa4e39b=_0x2b0a77['data'],_0x3aad80=JSON[_0x3729ec(0x2f1)](_0xa4e39b);switch(_0x3aad80[_0x3729ec(0x3e8)]){case I[_0x3729ec(0x316)]:case I[_0x3729ec(0x3c4)]:{const _0x53bbb4=_0x3aad80[_0x3729ec(0x273)];return{..._0x3aad80,'data':_0x53bbb4,'cmd':_0x3aad80['cmd']};}case I['JOIN']:{const _0x1fa5e5=_0x3aad80[_0x3729ec(0x468)];return{..._0x3aad80,'data':_0x1fa5e5,'cmd':_0x3aad80[_0x3729ec(0x3e8)]};}case I[_0x3729ec(0x270)]:{const _0x38aa87=_0x3aad80[_0x3729ec(0x1f9)];switch(_0x38aa87[_0x3729ec(0x27d)]){case _0x128ecb[_0x3729ec(0x192)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':(_0x594e7e=_0x38aa87[_0x3729ec(0x364)])==null?void 0x0:_0x594e7e['cs']},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x1c4)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':(_0x481e87=_0x38aa87['csAckEvent'])==null?void 0x0:_0x481e87['cs']},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x2e8)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':(_0x2efcb5=_0x38aa87[_0x3729ec(0x310)])==null?void 0x0:_0x2efcb5['cs']},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb['CHANGESET_REJ']:return{..._0x3aad80,'data':{..._0x38aa87,'data':(_0x1b1be7=_0x38aa87[_0x3729ec(0x1ab)])==null?void 0x0:_0x1b1be7['cs']},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x360)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x477)]},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x1cd)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x349)]},'cmd':_0x3aad80['cmd']};case _0x128ecb['USERS_LEAVE']:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x25c)]},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x149)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87['liveShareNewHost']},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x36a)]:case _0x128ecb[_0x3729ec(0x2f0)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x2a0)]},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x3af)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x1bc)]},'cmd':_0x3aad80['cmd']};case _0x128ecb[_0x3729ec(0x2c6)]:return{..._0x3aad80,'data':_0x38aa87,'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x220)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x377)]},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb['UPDATE_PERMISSION_OBJ']:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87['updatePermissionObjEvent']},'cmd':_0x3aad80['cmd']};case _0x128ecb[_0x3729ec(0x1ce)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x17d)]},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};default:return _0x3aad80;}}default:return _0x3aad80;}}function Un(_0x2996d3){const _0x128d08=_0x2da18b;switch(_0x2996d3[_0x128d08(0x3e8)]){case I[_0x128d08(0x316)]:case I[_0x128d08(0x3c4)]:return JSON[_0x128d08(0x2ea)]({'cmd':_0x2996d3['cmd'],'routeKey':_0x2996d3[_0x128d08(0x267)]});case I['INGEST']:{let _0x479ac;switch(_0x2996d3[_0x128d08(0x247)][_0x128d08(0x27d)]){case _0x128ecb[_0x128d08(0x360)]:{_0x479ac={'eventID':_0x128ecb['UPDATE_CURSOR'],'updateCursorEvent':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x247)]};break;}case _0x128ecb['USERS_LEAVE']:{_0x479ac={'eventID':_0x128ecb[_0x128d08(0x3a7)],'leaveEvent':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x247)]};break;}case _0x128ecb[_0x128d08(0x1cd)]:{_0x479ac={'eventID':_0x128ecb['USERS_ENTER'],'joinEvent':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x247)]};break;}case _0x128ecb[_0x128d08(0x149)]:{_0x479ac={'eventID':_0x128ecb[_0x128d08(0x149)],'liveShareNewHost':_0x2996d3['data'][_0x128d08(0x247)]};break;}case _0x128ecb['LIVESHARE_OPERATION']:{_0x479ac={'eventID':_0x128ecb[_0x128d08(0x2f0)],'liveShareOperation':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x247)]};break;}case _0x128ecb[_0x128d08(0x3af)]:{_0x479ac={'eventID':_0x128ecb[_0x128d08(0x3af)],'liveShareTerminate':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x247)]};break;}case _0x128ecb['LIVESHARE_REQUEST_HOST']:{_0x479ac={'eventID':_0x128ecb['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x2996d3['data'][_0x128d08(0x247)]};break;}case _0x128ecb[_0x128d08(0x36a)]:{_0x479ac={'eventID':_0x128ecb['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x479ac={'eventID':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x27d)]};}return JSON[_0x128d08(0x2ea)]({'cmd':_0x2996d3[_0x128d08(0x3e8)],'routeKey':_0x2996d3[_0x128d08(0x267)],'collaMsg':_0x479ac});}case I[_0x128d08(0x2c9)]:return JSON[_0x128d08(0x2ea)]({'cmd':_0x2996d3[_0x128d08(0x3e8)],'routeKey':_0x2996d3['routeKey'],'joinReq':_0x2996d3[_0x128d08(0x247)]});case I[_0x128d08(0x307)]:return JSON[_0x128d08(0x2ea)]({'cmd':_0x2996d3[_0x128d08(0x3e8)],'routeKey':_0x2996d3[_0x128d08(0x267)],'leaveReq':_0x2996d3['data']});default:throw new Error(_0x128d08(0x388));}}var Mn=Object[_0x2da18b(0x151)],An=Object[_0x2da18b(0x2b8)],Ln=(_0x4fc695,_0x29e2b1,_0x2d930c,_0x193501)=>{const _0x7e0fe=_0x2da18b;for(var _0x2888be=_0x193501>0x1?void 0x0:_0x193501?An(_0x29e2b1,_0x2d930c):_0x29e2b1,_0x24c09d=_0x4fc695[_0x7e0fe(0x1a8)]-0x1,_0x271ec2;_0x24c09d>=0x0;_0x24c09d--)(_0x271ec2=_0x4fc695[_0x24c09d])&&(_0x2888be=(_0x193501?_0x271ec2(_0x29e2b1,_0x2d930c,_0x2888be):_0x271ec2(_0x2888be))||_0x2888be);return _0x193501&&_0x2888be&&Mn(_0x29e2b1,_0x2d930c,_0x2888be),_0x2888be;},Re=(_0x1451a1,_0x1d8610)=>(_0x1e8f67,_0x183590)=>_0x1d8610(_0x1e8f67,_0x183590,_0x1451a1);const Ls=_0x4f53b0(_0x2da18b(0x47d));function $n(_0x5d0d3a,_0x498b01,_0x2d6bb3){const _0x112d34=_0x2da18b;return _0x5d0d3a+'/'+_0x498b01+_0x112d34(0x413)+_0x2d6bb3+'/new_changes';}let Et=class extends _0x3bc0d2{constructor(_0x5c0f92,_0x3684b6,_0x4681a7,_0x4fa8cc,_0x4919fe){const _0x21baa5=_0x2da18b;super(),this[_0x21baa5(0x230)]=_0x5c0f92,this[_0x21baa5(0x475)]=_0x3684b6,this[_0x21baa5(0x205)]=_0x4681a7,this[_0x21baa5(0x356)]=_0x4fa8cc,this[_0x21baa5(0x3f0)]=_0x4919fe;}[_0x2da18b(0x248)](_0x2695f4){const _0x13a138=_0x2da18b,_0x2ddd55=this[_0x13a138(0x475)][_0x13a138(0x248)](_0x2695f4);if(!_0x2ddd55)throw new Error(_0x13a138(0x24e));const _0x161acb=new _0x15e5d9(),_0x147f2a=new _0x526cd2();_0x161acb[_0x13a138(0x358)](_0x2ddd55['close$'][_0x13a138(0x146)](_0x224513=>_0x147f2a[_0x13a138(0x33a)](_0x224513))),_0x161acb['add'](_0xc09fc4(()=>_0x147f2a['complete']()));const _0x580410=new _0x526cd2();_0x161acb[_0x13a138(0x358)](_0x2ddd55[_0x13a138(0x194)][_0x13a138(0x146)](_0x12b263=>_0x580410[_0x13a138(0x33a)](_0x12b263))),_0x161acb['add'](_0xc09fc4(()=>_0x580410[_0x13a138(0x3fd)]()));const _0x22ef1b=new _0x526cd2();_0x161acb[_0x13a138(0x358)](_0x2ddd55[_0x13a138(0x346)]['subscribe'](_0xc0936b=>{const _0x507a60=_0x13a138,_0x5aa513=Nn(_0xc0936b);_0x22ef1b[_0x507a60(0x33a)](_0x5aa513);})),_0x161acb[_0x13a138(0x358)](_0xc09fc4(()=>_0x22ef1b[_0x13a138(0x3fd)]()));let _0x3af7a0;const _0x2ad498=()=>{const _0x39ce78=_0x13a138;_0x580410['next'](new Event(_0x39ce78(0x168))),_0x147f2a['next'](new CloseEvent(_0x39ce78(0x168))),_0x3af7a0[_0x39ce78(0x31e)]();};return _0x3af7a0={'memberID':'','close$':_0x147f2a[_0x13a138(0x344)](),'error$':_0x580410[_0x13a138(0x344)](),'open$':_0x2ddd55['open$'],'message$':_0x22ef1b[_0x13a138(0x344)](),'send':_0x57d3ba=>{const _0xecab44=_0x13a138;if(_0x57d3ba[_0xecab44(0x3e8)]===I[_0xecab44(0x437)]){if(_0x57d3ba[_0xecab44(0x247)][_0xecab44(0x27d)]===_0x128ecb['SUBMIT_CHANGESET']){this[_0xecab44(0x202)](_0x3af7a0,_0x57d3ba[_0xecab44(0x247)])[_0xecab44(0x2cd)](_0x43ee4b=>{const _0x3ff543=_0xecab44;this[_0x3ff543(0x356)]['error'](_0x43ee4b),_0x2ad498();});return;}if(_0x57d3ba[_0xecab44(0x247)][_0xecab44(0x27d)]===_0x128ecb['FETCH_MISSING']){const _0x44b74c=_0x57d3ba[_0xecab44(0x247)];this[_0xecab44(0x353)](_0x44b74c)[_0xecab44(0x484)](_0x31c206=>{const _0x523f6a=_0xecab44;_0x22ef1b[_0x523f6a(0x33a)]({'cmd':I[_0x523f6a(0x270)],'code':kt['OK'],'routeKey':_0x44b74c[_0x523f6a(0x247)][_0x523f6a(0x1e5)],'routeType':'','data':{'eventID':_0x128ecb['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x31c206}}});})[_0xecab44(0x2cd)](_0x5965f5=>{this['_logService']['error'](_0x5965f5),_0x2ad498();});return;}}_0x2ddd55[_0xecab44(0x1ad)](Un(_0x57d3ba));},'close':()=>{_0x2ddd55['close'](),_0x161acb['dispose']();}},_0x3af7a0;}async[_0x2da18b(0x202)](_0x15fe1b,_0x5e8762){const _0x35f9da=_0x2da18b;var _0x2d8cc7,_0x45d4bc;const {unitType:_0x1ac7c6,unitID:_0x20c08a,changeset:_0x42277a}=_0x5e8762[_0x35f9da(0x247)],_0x89deb9={'unitID':_0x20c08a,'memberID':_0x15fe1b['memberID'],'type':_0x1ac7c6,'changeset':_0x5d8917(_0x42277a)},_0x41a7d4=this[_0x35f9da(0x205)][_0x35f9da(0x1bb)](On),_0x3e5914=this[_0x35f9da(0x205)]['getConfig'](L),_0x19588d=$n((_0x45d4bc=(_0x2d8cc7=_0x3e5914==null?void 0x0:_0x3e5914[_0x35f9da(0x43d)])!=null?_0x2d8cc7:_0x41a7d4)!=null?_0x45d4bc:Dn,_0x1ac7c6,_0x20c08a);try{await this[_0x35f9da(0x230)][_0x35f9da(0x41f)](_0x19588d,{'body':_0x89deb9});}catch(_0x193877){throw this[_0x35f9da(0x356)]['error'](_0x35f9da(0x1fe),'submit\x20changeset\x20error!'),_0x193877;}}async[_0x2da18b(0x353)](_0x10e71f){const _0x5724af=_0x2da18b,{unitID:_0x30f33f,from:_0x57f927,to:_0x3429a2,unitType:_0x19bf74}=_0x10e71f['data'];return(await this[_0x5724af(0x3f0)][_0x5724af(0x467)]({'metadata':void 0x0},{'unitID':_0x30f33f,'type':_0x19bf74,'from':_0x57f927,'to':_0x3429a2}))['changesets'];}};Et=Ln([Re(0x0,_0x24691e(_0xa0ce64)),Re(0x1,_0x24691e(_0x2e1788)),Re(0x2,_0x4b95b7),Re(0x3,_0x16c619),Re(0x4,_0x2cde65)],Et);const jn=_0x2da18b(0x27c);function xn(_0x26d82b){const _0x18255a=_0x2da18b;return JSON[_0x18255a(0x2ea)](_0x26d82b)[_0x18255a(0x1a8)];}class $s{constructor(){const _0x19b688=_0x2da18b;l(this,'_commentUpdate$',new _0x526cd2()),l(this,_0x19b688(0x333),this[_0x19b688(0x28a)][_0x19b688(0x344)]());}[_0x2da18b(0x302)](_0x811198){const _0x24f958=_0x2da18b;this[_0x24f958(0x28a)][_0x24f958(0x33a)](_0x811198);}}var Hn=Object[_0x2da18b(0x151)],kn=Object['getOwnPropertyDescriptor'],Bn=(_0x2f8b57,_0x1937d1,_0x37dce3,_0xf5f0fa)=>{const _0x1a6454=_0x2da18b;for(var _0x192bfe=_0xf5f0fa>0x1?void 0x0:_0xf5f0fa?kn(_0x1937d1,_0x37dce3):_0x1937d1,_0x216c21=_0x2f8b57[_0x1a6454(0x1a8)]-0x1,_0x71037c;_0x216c21>=0x0;_0x216c21--)(_0x71037c=_0x2f8b57[_0x216c21])&&(_0x192bfe=(_0xf5f0fa?_0x71037c(_0x1937d1,_0x37dce3,_0x192bfe):_0x71037c(_0x192bfe))||_0x192bfe);return _0xf5f0fa&&_0x192bfe&&Hn(_0x1937d1,_0x37dce3,_0x192bfe),_0x192bfe;},rs=(_0x4e45e5,_0x734c63)=>(_0x455d51,_0x2cd26f)=>_0x734c63(_0x455d51,_0x2cd26f,_0x4e45e5);let ae=class extends _0x3bc0d2{constructor(_0x1d77bf,_0xafb2bf){const _0x9153e=_0x2da18b;super(),l(this,_0x9153e(0x31b),new Map()),(this[_0x9153e(0x406)]=_0x1d77bf,this[_0x9153e(0x39a)]=_0xafb2bf,this[_0x9153e(0x206)](_0xc09fc4(_0x5799ee(this['_univerInstanceService'][_0x9153e(0x253)](_0x43baa3['UNIVER_SHEET'])[_0x9153e(0x29b)](_0x5ddac4(_0x439c34=>_0x439c34[_0x9153e(0x3d4)]())),this['_univerInstanceService'][_0x9153e(0x253)](_0x43baa3['UNIVER_DOC'])[_0x9153e(0x29b)](_0x5ddac4(_0x355257=>_0x355257[_0x9153e(0x3d4)]())),this[_0x9153e(0x406)][_0x9153e(0x253)](_0x43baa3[_0x9153e(0x41a)])['pipe'](_0x5ddac4(_0x2b9d55=>_0x2b9d55[_0x9153e(0x3d4)]())))[_0x9153e(0x146)](_0xd94d87=>this[_0x9153e(0x17c)](_0xd94d87)))));}[_0x2da18b(0x478)](_0x5ad615){const _0x5dd4ba=_0x2da18b;this[_0x5dd4ba(0x39a)][_0x5dd4ba(0x478)](_0x5ad615);}[_0x2da18b(0x458)](){return this['_userManagerService']['getCurrentUser']();}[_0x2da18b(0x378)](_0x43f12a,_0x44c339){const _0x518b47=_0x2da18b;let _0x1249bc=this[_0x518b47(0x31b)][_0x518b47(0x2dd)](_0x43f12a);_0x1249bc||(_0x1249bc=new Vn(),this[_0x518b47(0x31b)][_0x518b47(0x276)](_0x43f12a,_0x1249bc)),_0x1249bc[_0x518b47(0x378)](_0x44c339);}['removeMember'](_0x2db385,_0x28431f){const _0x5888cd=_0x2da18b,_0x1913a4=this[_0x5888cd(0x31b)][_0x5888cd(0x2dd)](_0x2db385);_0x1913a4&&_0x1913a4['removeMember'](_0x28431f);}[_0x2da18b(0x393)](_0x22e6a5){const _0x32026a=_0x2da18b;return this['_roomMembers'][_0x32026a(0x2dd)](_0x22e6a5);}['getMember'](_0x2981cc,_0x26620b){const _0x543db9=_0x2da18b,_0x13e669=this[_0x543db9(0x31b)][_0x543db9(0x2dd)](_0x2981cc);if(_0x13e669)return _0x13e669[_0x543db9(0x479)](_0x26620b);}[_0x2da18b(0x17c)](_0x9fa7ce){const _0x2435b2=_0x2da18b,_0xc3ed12=this[_0x2435b2(0x31b)][_0x2435b2(0x2dd)](_0x9fa7ce);_0xc3ed12&&(_0xc3ed12[_0x2435b2(0x18e)](),this[_0x2435b2(0x31b)][_0x2435b2(0x3b7)](_0x9fa7ce));}[_0x2da18b(0x18e)](){const _0xd2391b=_0x2da18b;this['_roomMembers'][_0xd2391b(0x137)](_0x26554e=>_0x26554e[_0xd2391b(0x18e)]()),this[_0xd2391b(0x31b)]['clear']();}};ae=Bn([rs(0x0,_0x4af863),rs(0x1,_0x24691e(_0x2d6772))],ae);class Vn extends _0x3bc0d2{constructor(){const _0x4db682=_0x2da18b;super(...arguments),l(this,_0x4db682(0x1db),new Map());}[_0x2da18b(0x18e)](){const _0x43ded0=_0x2da18b;this['_members'][_0x43ded0(0x31f)]();}['updateMember'](_0x22ec86){const _0x56a6ae=_0x2da18b;this[_0x56a6ae(0x1db)][_0x56a6ae(0x276)](_0x22ec86[_0x56a6ae(0x382)],_0x22ec86);}[_0x2da18b(0x36c)](_0x34f243){const _0x59f1b2=_0x2da18b;this[_0x59f1b2(0x1db)][_0x59f1b2(0x3b7)](_0x34f243);}[_0x2da18b(0x479)](_0x40c1a0){const _0x21f1a8=_0x2da18b;return this['_members'][_0x21f1a8(0x2dd)](_0x40c1a0);}}var Fn=Object[_0x2da18b(0x151)],Wn=Object[_0x2da18b(0x2b8)],Gn=(_0x28f2e3,_0x4b81db,_0x36fa34,_0x49e664)=>{const _0x529dc4=_0x2da18b;for(var _0x4e7a05=_0x49e664>0x1?void 0x0:_0x49e664?Wn(_0x4b81db,_0x36fa34):_0x4b81db,_0x56eb1f=_0x28f2e3[_0x529dc4(0x1a8)]-0x1,_0x1bd6da;_0x56eb1f>=0x0;_0x56eb1f--)(_0x1bd6da=_0x28f2e3[_0x56eb1f])&&(_0x4e7a05=(_0x49e664?_0x1bd6da(_0x4b81db,_0x36fa34,_0x4e7a05):_0x1bd6da(_0x4e7a05))||_0x4e7a05);return _0x49e664&&_0x4e7a05&&Fn(_0x4b81db,_0x36fa34,_0x4e7a05),_0x4e7a05;},J=(_0x243383,_0x5a7568)=>(_0x2a507e,_0x30c89f)=>_0x5a7568(_0x2a507e,_0x30c89f,_0x243383),G=(_0x5064b6=>(_0x5064b6[_0x5064b6['IDLE']=0x0]=_0x2da18b(0x46d),_0x5064b6[_0x5064b6['JOINING']=0x1]=_0x2da18b(0x162),_0x5064b6[_0x5064b6[_0x2da18b(0x2e9)]=0x2]=_0x2da18b(0x2e9),_0x5064b6[_0x5064b6[_0x2da18b(0x39c)]=0x3]=_0x2da18b(0x39c),_0x5064b6))(G||{});let Ct=class extends _0x13b3a6{constructor(_0x2171d0,_0x1b5b9b,_0x1a7640,_0x31abf0,_0x56dcea,_0x3863fb,_0x51dafb,_0x36a4ae,_0x2cef8e,_0x3dacbb){const _0x180625=_0x2da18b;super(),l(this,_0x180625(0x2b7),new _0x295ce3(0x0)),l(this,_0x180625(0x3fb),this[_0x180625(0x2b7)]['asObservable']()),l(this,'_event$',new _0x526cd2()),l(this,_0x180625(0x411),this[_0x180625(0x471)][_0x180625(0x344)]()),l(this,_0x180625(0x2b3)),l(this,_0x180625(0x44b)),l(this,_0x180625(0x215)),l(this,_0x180625(0x42e),!0x1),l(this,_0x180625(0x2a9),null),(this['_unitID']=_0x2171d0,this[_0x180625(0x356)]=_0x1a7640,this[_0x180625(0x24b)]=_0x31abf0,this[_0x180625(0x387)]=_0x56dcea,this[_0x180625(0x205)]=_0x3863fb,this[_0x180625(0x2cb)]=_0x51dafb,this[_0x180625(0x131)]=_0x36a4ae,this['_commentService']=_0x2cef8e,this['_telemetryService']=_0x3dacbb,this['_shouldReportTelemetry']=!!this[_0x180625(0x2dc)],_0x1b5b9b['pipe'](_0x1cea38(this[_0x180625(0x3ab)]))[_0x180625(0x146)](_0x17f0f8=>{const _0x524f52=_0x180625;var _0xc606c8;typeof _0x17f0f8>'u'||(this[_0x524f52(0x2b3)]=_0x17f0f8,_0x17f0f8?(this[_0x524f52(0x42a)](_0x17f0f8),this[_0x524f52(0x44b)]=_0x17f0f8['message$'][_0x524f52(0x146)](_0xeab8f2=>{const _0x2dab61=_0x524f52;_0xeab8f2[_0x2dab61(0x267)]===this[_0x2dab61(0x405)]&&this[_0x2dab61(0x3ae)](_0xeab8f2);})):(this[_0x524f52(0x357)](),this[_0x524f52(0x2b7)][_0x524f52(0x33a)](0x2),(_0xc606c8=this[_0x524f52(0x44b)])==null||_0xc606c8[_0x524f52(0x464)](),this[_0x524f52(0x44b)]=null));}),this[_0x180625(0x206)](this[_0x180625(0x24b)][_0x180625(0x446)](()=>{const _0x41f0c4=_0x180625;var _0x118964;(_0x118964=this[_0x41f0c4(0x2b3)])==null||_0x118964['send']({'cmd':I[_0x41f0c4(0x307)],'data':{'roomID':this[_0x41f0c4(0x405)]}});})));}get[_0x2da18b(0x36e)](){const _0xd3e826=_0x2da18b;return this[_0xd3e826(0x2b7)][_0xd3e826(0x331)]();}[_0x2da18b(0x23d)](){const _0x5c3565=_0x2da18b;var _0x28b207,_0x5626ef;return(_0x5626ef=(_0x28b207=this[_0x5c3565(0x2b3)])==null?void 0x0:_0x28b207['memberID'])!=null?_0x5626ef:null;}['dispose'](){const _0x57a55a=_0x2da18b;super[_0x57a55a(0x18e)](),this[_0x57a55a(0x3ab)][_0x57a55a(0x33a)](),this[_0x57a55a(0x3ab)][_0x57a55a(0x3fd)]();}[_0x2da18b(0x31e)](){const _0x117b42=_0x2da18b;var _0x368647,_0x3c5b3b;this[_0x117b42(0x357)](),(_0x368647=this[_0x117b42(0x2b3)])==null||_0x368647[_0x117b42(0x1ad)]({'cmd':I[_0x117b42(0x307)],'data':{'roomID':this[_0x117b42(0x405)]}}),(_0x3c5b3b=this['_socket'])==null||_0x3c5b3b[_0x117b42(0x31e)](),this[_0x117b42(0x471)][_0x117b42(0x3fd)](),this[_0x117b42(0x2b7)][_0x117b42(0x3fd)](),this[_0x117b42(0x18e)]();}[_0x2da18b(0x3ae)](_0x306eae){const _0x3d8cb1=_0x2da18b;_0x306eae[_0x3d8cb1(0x3e8)]===I[_0x3d8cb1(0x2c9)]?this[_0x3d8cb1(0x2a4)](_0x306eae):_0x306eae[_0x3d8cb1(0x3e8)]===I[_0x3d8cb1(0x270)]&&this[_0x3d8cb1(0x3a0)](_0x306eae);}[_0x2da18b(0x42a)](_0x1b3c29){const _0x29f12c=_0x2da18b;this[_0x29f12c(0x2b7)][_0x29f12c(0x33a)](0x1),_0x1b3c29[_0x29f12c(0x1ad)]({'cmd':I[_0x29f12c(0x2c9)],'routeKey':this[_0x29f12c(0x405)],'routeType':'','data':{'rooms':[{'roomID':this[_0x29f12c(0x405)]}]}});}['_onJoinRoomEvent'](_0x23fa61){const _0xc3dd89=_0x2da18b;var _0x4ca098;if(_0x23fa61[_0xc3dd89(0x2ff)]===kt[_0xc3dd89(0x48a)]){this[_0xc3dd89(0x387)][_0xc3dd89(0x240)]({'type':_0x35eeb1[_0xc3dd89(0x243)],'content':this[_0xc3dd89(0x2cb)]['t'](_0xc3dd89(0x488))}),this[_0xc3dd89(0x2b7)][_0xc3dd89(0x33a)](0x2);return;}this[_0xc3dd89(0x2b7)][_0xc3dd89(0x33a)](0x3);const _0x560844=(_0x4ca098=_0x23fa61[_0xc3dd89(0x247)][_0xc3dd89(0x27f)][this[_0xc3dd89(0x405)]])==null?void 0x0:_0x4ca098[_0xc3dd89(0x327)];_0x560844&&_0x560844[_0xc3dd89(0x137)](_0x3c0125=>this[_0xc3dd89(0x131)]['updateMember'](this[_0xc3dd89(0x405)],_0x3c0125));}['_onRecvEvent'](_0x5d32e5){const _0x18ef41=_0x2da18b;try{const _0x1d7533=_0x5d32e5['data'];switch(_0x1d7533[_0x18ef41(0x27d)]){case _0x128ecb[_0x18ef41(0x1cd)]:this[_0x18ef41(0x480)](_0x1d7533),this[_0x18ef41(0x471)][_0x18ef41(0x33a)](_0x1d7533);break;case _0x128ecb[_0x18ef41(0x3a7)]:this['_onUserLeave'](_0x1d7533),this[_0x18ef41(0x471)]['next'](_0x1d7533);break;case _0x128ecb['CHANGESET_ACK']:this[_0x18ef41(0x3d6)](),this[_0x18ef41(0x414)](),this['_event$'][_0x18ef41(0x33a)](_0x1d7533);break;case _0x128ecb[_0x18ef41(0x2c6)]:this[_0x18ef41(0x356)][_0x18ef41(0x490)](_0x18ef41(0x314)+JSON[_0x18ef41(0x2ea)](_0x1d7533)),this[_0x18ef41(0x471)][_0x18ef41(0x33a)](_0x1d7533);break;case _0x128ecb['COMMENT_UPDATE']:this[_0x18ef41(0x1b3)]['onCommentUpdate'](_0x1d7533['data']),this[_0x18ef41(0x471)][_0x18ef41(0x33a)](_0x1d7533);break;default:this[_0x18ef41(0x471)][_0x18ef41(0x33a)](_0x1d7533);}}catch(_0x4e33ec){this['_logService'][_0x18ef41(0x490)](_0x4e33ec,_0x5d32e5);}}[_0x2da18b(0x480)](_0x5eb860){const _0xa1b951=_0x2da18b;this['_memberService'][_0xa1b951(0x378)](this[_0xa1b951(0x405)],_0x5eb860[_0xa1b951(0x247)]);}[_0x2da18b(0x1b8)](_0xda120e){const _0x330a36=_0x2da18b;this[_0x330a36(0x131)][_0x330a36(0x36c)](this['_unitID'],_0xda120e[_0x330a36(0x247)][_0x330a36(0x382)]);}async['send'](_0x23d44b,_0x2b8904){const _0x33f7ce=_0x2da18b;if(this[_0x33f7ce(0x36e)]!==0x3||!this[_0x33f7ce(0x2b3)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x23d44b[_0x33f7ce(0x27d)]===_0x128ecb[_0x33f7ce(0x46a)]&&(this[_0x33f7ce(0x2b9)](),this[_0x33f7ce(0x21e)](_0x23d44b)),this[_0x33f7ce(0x2b3)][_0x33f7ce(0x1ad)]({'cmd':I[_0x33f7ce(0x437)],'routeKey':_0x2b8904,'routeType':'','data':_0x23d44b});}catch(_0xcdbc3){this[_0x33f7ce(0x356)][_0x33f7ce(0x490)](_0xcdbc3);}}[_0x2da18b(0x2b9)](){const _0x42cbe2=_0x2da18b;var _0x58d993;this[_0x42cbe2(0x215)]=window['setTimeout'](()=>{const _0x4ea125=_0x42cbe2;this[_0x4ea125(0x215)]=null,this['_messageService'][_0x4ea125(0x240)]({'type':_0x35eeb1['Error'],'content':this['_localeService']['t'](_0x4ea125(0x1f7))});},(_0x58d993=this[_0x42cbe2(0x205)][_0x42cbe2(0x1bb)](Ns))!=null?_0x58d993:Us);}[_0x2da18b(0x414)](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x2da5e2){const _0x440de3=_0x2da18b;if(!this['_shouldReportTelemetry'])return;const {data:_0x3fc235}=_0x2da5e2,{unitID:_0x3f6097,changeset:_0x346b06}=_0x3fc235,{mutations:_0x421e92,type:_0x3f7444}=_0x346b06;this[_0x440de3(0x2a9)]={'unitId':_0x3f6097,'type':_0x3f7444,'startTime':performance[_0x440de3(0x44f)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x421e92)};}[_0x2da18b(0x3d6)](){const _0x4672bb=_0x2da18b;if(this[_0x4672bb(0x42e)]){if(!this[_0x4672bb(0x2a9)]){this[_0x4672bb(0x356)][_0x4672bb(0x490)]('[CollaborationSession]',_0x4672bb(0x449));return;}this[_0x4672bb(0x2a9)][_0x4672bb(0x476)]=performance['now'](),this[_0x4672bb(0x2a9)][_0x4672bb(0x42d)]=this[_0x4672bb(0x2a9)][_0x4672bb(0x476)]-this[_0x4672bb(0x2a9)]['startTime'],this[_0x4672bb(0x2dc)]['capture'](jn,this[_0x4672bb(0x2a9)]),this[_0x4672bb(0x2a9)]=null;}}[_0x2da18b(0x357)](){const _0x4db91a=_0x2da18b;this[_0x4db91a(0x2a9)]=null;}};Ct=Gn([J(0x2,_0x16c619),J(0x3,_0x569db2),J(0x4,_0x349d24),J(0x5,_0x4b95b7),J(0x6,_0x24691e(_0x1695f3)),J(0x7,_0x24691e(ae)),J(0x8,_0x24691e($s)),J(0x9,_0x1be607(_0x3014d0))],Ct);var Yn=Object[_0x2da18b(0x151)],Kn=Object[_0x2da18b(0x2b8)],Xn=(_0x3d15e,_0xcc5bc1,_0x504d46,_0x313539)=>{for(var _0x162738=_0x313539>0x1?void 0x0:_0x313539?Kn(_0xcc5bc1,_0x504d46):_0xcc5bc1,_0x28cd4c=_0x3d15e['length']-0x1,_0x22f182;_0x28cd4c>=0x0;_0x28cd4c--)(_0x22f182=_0x3d15e[_0x28cd4c])&&(_0x162738=(_0x313539?_0x22f182(_0xcc5bc1,_0x504d46,_0x162738):_0x22f182(_0x162738))||_0x162738);return _0x313539&&_0x162738&&Yn(_0xcc5bc1,_0x504d46,_0x162738),_0x162738;},de=(_0x425001,_0x3a5577)=>(_0x2d995a,_0x1d8522)=>_0x3a5577(_0x2d995a,_0x1d8522,_0x425001);let ce=class extends _0x3bc0d2{constructor(_0x521e95,_0x42552c,_0x239a20,_0x67124a,_0x416282,_0xdb7a71){const _0x22e6ea=_0x2da18b;super(),l(this,_0x22e6ea(0x447),new _0x295ce3(void 0x0)),l(this,'socket$',this['_socket$'][_0x22e6ea(0x344)]()),l(this,_0x22e6ea(0x20d),null),l(this,_0x22e6ea(0x17e),new Map()),l(this,_0x22e6ea(0x155),new _0x295ce3(G['IDLE'])),l(this,_0x22e6ea(0x271),this['_status$']['asObservable']()),l(this,'_socketReady',!0x1),l(this,_0x22e6ea(0x38c)),l(this,_0x22e6ea(0x1b1),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x22e6ea(0x365)),(this['_injector']=_0x521e95,this[_0x22e6ea(0x2cb)]=_0x42552c,this[_0x22e6ea(0x387)]=_0x239a20,this[_0x22e6ea(0x356)]=_0x67124a,this[_0x22e6ea(0x205)]=_0x416282,this[_0x22e6ea(0x2ce)]=_0xdb7a71,this[_0x22e6ea(0x2f9)]());}get[_0x2da18b(0x2b3)](){const _0xd10d42=_0x2da18b;return this[_0xd10d42(0x447)][_0xd10d42(0x331)]();}[_0x2da18b(0x2f9)](){const _0x54bdde=_0x2da18b;this[_0x54bdde(0x3c5)](),this[_0x54bdde(0x432)]();}[_0x2da18b(0x18e)](){const _0x1c4fca=_0x2da18b;super[_0x1c4fca(0x18e)](),this[_0x1c4fca(0x17e)][_0x1c4fca(0x137)](_0x4eaf81=>_0x4eaf81[_0x1c4fca(0x18e)]()),this['_sessions'][_0x1c4fca(0x31f)](),this[_0x1c4fca(0x155)][_0x1c4fca(0x3fd)]();}async[_0x2da18b(0x19f)](_0x9a0da5){const _0x35c892=_0x2da18b;if(this[_0x35c892(0x17e)][_0x35c892(0x141)](_0x9a0da5))return this[_0x35c892(0x17e)][_0x35c892(0x2dd)](_0x9a0da5);this[_0x35c892(0x261)]();const _0x5625c0=this[_0x35c892(0x272)][_0x35c892(0x3cb)](Ct,_0x9a0da5,this[_0x35c892(0x447)]['asObservable']());return this['_sessions']['set'](_0x9a0da5,_0x5625c0),_0x5625c0;}['closeSession'](_0x38876b){const _0x418bdf=_0x2da18b;var _0xecfa30;const _0xe88d1d=this['_sessions'][_0x418bdf(0x2dd)](_0x38876b);_0xe88d1d&&(this[_0x418bdf(0x17e)][_0x418bdf(0x3b7)](_0x38876b),_0xe88d1d[_0x418bdf(0x31e)]()),this['_sessions'][_0x418bdf(0x1c1)]||(_0xecfa30=this['_socket'])==null||_0xecfa30['close']();}[_0x2da18b(0x165)](){const _0x3faa6f=_0x2da18b;this['_retryCount']=0x0,this[_0x3faa6f(0x38c)]!=null&&(clearTimeout(this[_0x3faa6f(0x38c)]),this[_0x3faa6f(0x38c)]=null),this[_0x3faa6f(0x161)]();}['_createSocket'](){const _0x2ac973=_0x2da18b;var _0x59f6aa,_0x34d5c0;const _0x46e1b4=this[_0x2ac973(0x205)][_0x2ac973(0x1bb)](Sn),_0xb57106=this['_configService'][_0x2ac973(0x1bb)](L),_0x2861ba=(_0x34d5c0=(_0x59f6aa=_0xb57106==null?void 0x0:_0xb57106['collabWebSocketUrl'])!=null?_0x59f6aa:_0x46e1b4)!=null?_0x34d5c0:pn,_0x1d1e4f=this['_socketService'][_0x2ac973(0x248)](_0x2861ba);return this[_0x2ac973(0x20d)]=_0x1d1e4f,_0x1d1e4f;}[_0x2da18b(0x261)](){const _0x5a595b=_0x2da18b;var _0x3128b2,_0x35e0d9;try{const _0x5894d9=(_0x35e0d9=(_0x3128b2=this[_0x5a595b(0x2b3)])!=null?_0x3128b2:this[_0x5a595b(0x20d)])!=null?_0x35e0d9:this['_createSocket']();if(_0x5894d9){const _0x51c047=_0x5894d9['send'];_0x5894d9[_0x5a595b(0x1ad)]=_0x489d27=>(this[_0x5a595b(0x3b8)](),_0x51c047[_0x5a595b(0x3f6)](_0x5894d9,[_0x489d27])),_0x5894d9[_0x5a595b(0x346)][_0x5a595b(0x146)](_0x3e1441=>this[_0x5a595b(0x257)](_0x5894d9,_0x3e1441)),_0x5894d9[_0x5a595b(0x194)][_0x5a595b(0x29b)](_0x3101c1(0x1))[_0x5a595b(0x146)](_0x2aaabc=>this['_logService'][_0x5a595b(0x490)]('[CollaborationSessionService]:\x20socket\x20error',_0x2aaabc)),_0x5894d9[_0x5a595b(0x1eb)][_0x5a595b(0x29b)](_0x3101c1(0x1))[_0x5a595b(0x146)](()=>{const _0xd8b671=_0x5a595b;this[_0xd8b671(0x1e6)](_0x5894d9);}),_0x5894d9['close$'][_0x5a595b(0x29b)](_0x3101c1(0x1))['subscribe'](_0x19a2d2=>{const _0x2fa35b=_0x5a595b;this['_logService'][_0x2fa35b(0x2e0)]('[CollaborationSessionService]',_0x2fa35b(0x2db),_0x19a2d2),this[_0x2fa35b(0x3f3)]();});}}catch(_0x460910){this['_logService'][_0x5a595b(0x490)](_0x460910),this[_0x5a595b(0x3f3)]();}}[_0x2da18b(0x1e6)](_0x24f91f){const _0x3cc63c=_0x2da18b;this[_0x3cc63c(0x356)][_0x3cc63c(0x2e0)]('[CollaborationSessionService]','socket\x20open.'),_0x24f91f['send']({'cmd':I[_0x3cc63c(0x3c4)]}),this[_0x3cc63c(0x3b8)]();}[_0x2da18b(0x3c5)](){const _0x58e744=_0x2da18b;window[_0x58e744(0x144)](_0x58e744(0x2c1),()=>this[_0x58e744(0x3a5)]());}[_0x2da18b(0x3a5)](){const _0x662c97=_0x2da18b;this['_socketReady']=!0x1,this['_candidateSocket']=null,this[_0x662c97(0x155)][_0x662c97(0x33a)](G['OFFLINE']),this[_0x662c97(0x447)][_0x662c97(0x33a)](null),this[_0x662c97(0x18d)](),this[_0x662c97(0x1ed)]();}[_0x2da18b(0x3f3)](){const _0x4750d2=_0x2da18b;var _0x54e240;this[_0x4750d2(0x3a5)](),this[_0x4750d2(0x1b1)]<((_0x54e240=this[_0x4750d2(0x205)][_0x4750d2(0x1bb)](Cn))!=null?_0x54e240:bn)?(this[_0x4750d2(0x387)][_0x4750d2(0x240)]({'key':_0x4750d2(0x31c),'type':_0x35eeb1[_0x4750d2(0x243)],'content':this[_0x4750d2(0x2cb)]['t'](_0x4750d2(0x15a))}),this['_tryReconnect']()):this[_0x4750d2(0x387)][_0x4750d2(0x240)]({'key':_0x4750d2(0x31c),'type':_0x35eeb1[_0x4750d2(0x15f)],'content':this[_0x4750d2(0x2cb)]['t'](_0x4750d2(0x2c8))});}[_0x2da18b(0x432)](){const _0x54c6a1=_0x2da18b,_0x402cff=()=>{const _0xe1e497=_0x44b4;this[_0xe1e497(0x2b3)]||this[_0xe1e497(0x165)]();},_0x41af48=()=>{const _0x53e4bd=_0x44b4;this[_0x53e4bd(0x2b3)]||document['visibilityState']===_0x53e4bd(0x208)||this[_0x53e4bd(0x165)]();};window['addEventListener'](_0x54c6a1(0x25a),_0x402cff),document[_0x54c6a1(0x144)](_0x54c6a1(0x492),_0x41af48);}[_0x2da18b(0x161)](){const _0x2d2683=_0x2da18b;var _0x4afd25;const _0x494a85=this[_0x2d2683(0x1b1)],_0x1ec575=this[_0x2d2683(0x205)][_0x2d2683(0x1bb)](L),_0x2f26dc=_0x494a85===0x0?0x0:((_0x4afd25=_0x1ec575==null?void 0x0:_0x1ec575[_0x2d2683(0x173)])!=null?_0x4afd25:En)*0x2**_0x494a85;this['_retryConnectingTimer']=window[_0x2d2683(0x1ee)](()=>{const _0x4eb66b=_0x2d2683;clearTimeout(this[_0x4eb66b(0x38c)]),this[_0x4eb66b(0x38c)]=null,this[_0x4eb66b(0x261)]();},_0x2f26dc),this['_retryCount']+=0x1;}[_0x2da18b(0x257)](_0x5c21ca,_0x5b2aed){const _0x4d0f00=_0x2da18b,{cmd:_0xbb6f24}=_0x5b2aed;_0xbb6f24===I['HELLO']&&!this[_0x4d0f00(0x189)]&&(_0x5c21ca[_0x4d0f00(0x382)]=_0x5b2aed['data'][_0x4d0f00(0x382)],this[_0x4d0f00(0x447)][_0x4d0f00(0x33a)](_0x5c21ca),this[_0x4d0f00(0x155)]['next'](G[_0x4d0f00(0x39c)]),this[_0x4d0f00(0x189)]=!0x0,this[_0x4d0f00(0x20d)]=null),_0xbb6f24===I[_0x4d0f00(0x316)]&&this[_0x4d0f00(0x18d)](),this[_0x4d0f00(0x3b8)]();}[_0x2da18b(0x3b8)](){const _0x55277a=_0x2da18b;var _0x4567bd;this[_0x55277a(0x1ed)](),this[_0x55277a(0x41b)]=window[_0x55277a(0x1ee)](()=>this[_0x55277a(0x439)](),(_0x4567bd=this[_0x55277a(0x205)][_0x55277a(0x1bb)](vn))!=null?_0x4567bd:In);}['_sendHeartbeat'](){const _0xefff09=_0x2da18b;this['_socket'][_0xefff09(0x1ad)]({'cmd':I['HEARTBEAT']}),this[_0xefff09(0x379)]();}[_0x2da18b(0x379)](){const _0x4a5649=_0x2da18b;var _0x1062ea;this[_0x4a5649(0x365)]=window[_0x4a5649(0x1ee)](()=>this['_onConnectionFailed'](),(_0x1062ea=this['_configService'][_0x4a5649(0x1bb)](Ns))!=null?_0x1062ea:Us);}[_0x2da18b(0x1ed)](){const _0x132628=_0x2da18b;this[_0x132628(0x41b)]!=null&&(clearTimeout(this[_0x132628(0x41b)]),this[_0x132628(0x41b)]=null);}[_0x2da18b(0x18d)](){const _0x350ecf=_0x2da18b;this[_0x350ecf(0x365)]!=null&&(clearTimeout(this[_0x350ecf(0x365)]),this[_0x350ecf(0x365)]=null);}};ce=Xn([de(0x0,_0x24691e(_0x129c7a)),de(0x1,_0x24691e(_0x1695f3)),de(0x2,_0x349d24),de(0x3,_0x16c619),de(0x4,_0x4b95b7),de(0x5,Ls)],ce);var Jn=Object['defineProperty'],qn=Object['getOwnPropertyDescriptor'],zn=(_0x252626,_0x4ed78b,_0x943e27,_0x47c64d)=>{const _0x48e6f7=_0x2da18b;for(var _0x55afb7=_0x47c64d>0x1?void 0x0:_0x47c64d?qn(_0x4ed78b,_0x943e27):_0x4ed78b,_0x5dce0f=_0x252626[_0x48e6f7(0x1a8)]-0x1,_0x4743da;_0x5dce0f>=0x0;_0x5dce0f--)(_0x4743da=_0x252626[_0x5dce0f])&&(_0x55afb7=(_0x47c64d?_0x4743da(_0x4ed78b,_0x943e27,_0x55afb7):_0x4743da(_0x55afb7))||_0x55afb7);return _0x47c64d&&_0x55afb7&&Jn(_0x4ed78b,_0x943e27,_0x55afb7),_0x55afb7;},ct=(_0x510387,_0x8c2fc8)=>(_0x51c2f0,_0x3d1205)=>_0x8c2fc8(_0x51c2f0,_0x3d1205,_0x510387);let Ye=class{constructor(_0x2781b1,_0x3b999e,_0x45b05b){const _0x545ade=_0x2da18b;this[_0x545ade(0x272)]=_0x2781b1,this[_0x545ade(0x32a)]=_0x3b999e,this['_renderManagerService']=_0x45b05b;}[_0x2da18b(0x2da)](_0x368dbd){const _0x244024=_0x2da18b;this[_0x244024(0x440)](_0x368dbd),this[_0x244024(0x2fa)](_0x368dbd);}[_0x2da18b(0x2ca)](_0x264315){const _0x3e3bd3=_0x2da18b,{unitID:_0x169f47}=_0x264315,_0x572639=this[_0x3e3bd3(0x38a)][_0x3e3bd3(0x3ff)](_0x169f47)[_0x3e3bd3(0x19b)](_0x188ac7),{redoCache:_0x56187a}=_0x572639['getUndoRedoMutationParamsCache']();if(_0x56187a[_0x3e3bd3(0x1a8)]===0x0)return _0x264315;let _0x6c42d1=_0x5ee8c7[_0x3e3bd3(0x1d9)](_0x264315[_0x3e3bd3(0x154)][0x0]);for(let _0x1fa541=0x0;_0x1fa541<_0x56187a[_0x3e3bd3(0x1a8)];_0x1fa541++){const _0x57226b={'id':_0x3e3bd3(0x16d),'params':{..._0x56187a[_0x1fa541]}},_0x4b286d=this['_transformService'][_0x3e3bd3(0x265)](_0x6c42d1,_0x57226b,!0x1);if(_0x43ac9d(_0x4b286d))throw _0x4b286d[_0x3e3bd3(0x490)];_0x6c42d1=_0x4b286d[_0x3e3bd3(0x28c)];}return{..._0x5ee8c7[_0x3e3bd3(0x1d9)](_0x264315),'mutations':[_0x6c42d1]};}['_transformUndoRedoStack'](_0x59931c){const _0x1669b1=_0x2da18b,{unitID:_0x5b72ab}=_0x59931c,_0x2bd941=this[_0x1669b1(0x38a)]['getRenderById'](_0x5b72ab)[_0x1669b1(0x19b)](_0x188ac7),{undoCache:_0x5d0468,redoCache:_0x5783d9}=_0x2bd941[_0x1669b1(0x352)]();if(_0x5d0468[_0x1669b1(0x1a8)]===0x0||_0x5783d9[_0x1669b1(0x1a8)]===0x0)return;const _0x400c0c=[],_0x7d22f2=[];let _0x5a2b89=_0x5ee8c7[_0x1669b1(0x1d9)](_0x59931c['mutations'][0x0]),_0xcb85af=_0x5ee8c7[_0x1669b1(0x1d9)](_0x59931c[_0x1669b1(0x154)][0x0]);for(let _0x12f3b9=_0x5d0468[_0x1669b1(0x1a8)]-0x1;_0x12f3b9>=0x0;_0x12f3b9--){const _0x16bb16={'id':_0x1669b1(0x16d),'params':{..._0x5d0468[_0x12f3b9]}},_0x1ecb8b={'id':_0x1669b1(0x16d),'params':{..._0x5783d9[_0x12f3b9]}},_0x306a1e=this[_0x1669b1(0x32a)]['transformMutation'](_0x5a2b89,_0x16bb16,!0x1),_0x366b86=this['_transformService'][_0x1669b1(0x265)](_0xcb85af,_0x1ecb8b,!0x1);if(_0x43ac9d(_0x306a1e))throw _0x306a1e[_0x1669b1(0x490)];if(_0x43ac9d(_0x366b86))throw _0x366b86['error'];_0x400c0c[_0x1669b1(0x2f6)](_0x306a1e['m2Prime']['params']),_0x7d22f2['unshift'](_0x366b86[_0x1669b1(0x22c)][_0x1669b1(0x338)]),_0x5a2b89=_0x306a1e[_0x1669b1(0x28c)],_0xcb85af=_0x366b86[_0x1669b1(0x28c)];}_0x2bd941[_0x1669b1(0x13f)]({'undoCache':_0x400c0c,'redoCache':_0x7d22f2});}[_0x2da18b(0x2fa)](_0x6f6c76){const _0x3c1908=_0x2da18b,{unitID:_0x5a339e}=_0x6f6c76,_0x388362=this['_renderManagerService'][_0x3c1908(0x3ff)](_0x5a339e)['with'](_0x188ac7),_0x2e63e1=_0x388362[_0x3c1908(0x487)]();if(_0x2e63e1==null)return;const _0x3b790c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x6f6c76['unitID'],'actions':null,'textRanges':[_0x2e63e1]}}],_0x27dd12=this[_0x3c1908(0x32a)][_0x3c1908(0x18b)](_0x6f6c76,_0x3b790c);if(!_0x524343(_0x27dd12))throw _0x27dd12[_0x3c1908(0x490)];const _0x14537e=_0x27dd12['m2Prime'][0x0][_0x3c1908(0x338)][_0x3c1908(0x337)];Array[_0x3c1908(0x1f8)](_0x14537e)&&_0x14537e[_0x3c1908(0x1a8)]&&_0x388362['setActiveRange'](_0x14537e[0x0]);}};Ye=zn([ct(0x0,_0x24691e(_0x129c7a)),ct(0x1,_0x418a36),ct(0x2,_0x4031fb)],Ye);var Zn=Object['defineProperty'],Qn=Object[_0x2da18b(0x2b8)],er=(_0x118469,_0x1406d8,_0x43f6e3,_0x909d08)=>{for(var _0x159c37=_0x909d08>0x1?void 0x0:_0x909d08?Qn(_0x1406d8,_0x43f6e3):_0x1406d8,_0x10a7c5=_0x118469['length']-0x1,_0x46bef0;_0x10a7c5>=0x0;_0x10a7c5--)(_0x46bef0=_0x118469[_0x10a7c5])&&(_0x159c37=(_0x909d08?_0x46bef0(_0x1406d8,_0x43f6e3,_0x159c37):_0x46bef0(_0x159c37))||_0x159c37);return _0x909d08&&_0x159c37&&Zn(_0x1406d8,_0x43f6e3,_0x159c37),_0x159c37;},Oe=(_0x3bd514,_0x3743f2)=>(_0x1f2979,_0xbc92f7)=>_0x3743f2(_0x1f2979,_0xbc92f7,_0x3bd514);let D=class extends _0x3bc0d2{constructor(_0x12cff5,_0x162413,_0x5441a3,_0x366f48,_0x3c94c8){const _0x57be4b=_0x2da18b;super(),l(this,_0x57be4b(0x2c5),new Map()),l(this,_0x57be4b(0x481),new Map()),l(this,_0x57be4b(0x227),!0x1),(this[_0x57be4b(0x205)]=_0x12cff5,this[_0x57be4b(0x212)]=_0x162413,this[_0x57be4b(0x24b)]=_0x5441a3,this[_0x57be4b(0x2cb)]=_0x366f48,this[_0x57be4b(0x3b1)]=_0x3c94c8,this[_0x57be4b(0x47e)]());}['disableLocalCache'](){const _0x266f4c=_0x2da18b;this[_0x266f4c(0x227)]=!0x0;}[_0x2da18b(0x293)](){const _0x4aaccb=_0x2da18b;this[_0x4aaccb(0x227)]=!0x1;}[_0x2da18b(0x18e)](){const _0x3d2d8d=_0x2da18b;this[_0x3d2d8d(0x1a4)]()['then'](()=>super[_0x3d2d8d(0x18e)]());}async[_0x2da18b(0x1f0)](_0x4c7ac3){const _0xb891c2=_0x2da18b;return this[_0xb891c2(0x227)]?null:this[_0xb891c2(0x212)][_0xb891c2(0x3c8)](os(_0x4c7ac3));}async['saveOfflineData'](_0x63596d,_0x84891c){const _0x179f9a=_0x2da18b;return!!this[_0x179f9a(0x212)]['setItem'](_0x63596d,_0x84891c);}[_0x2da18b(0x48c)](_0x1da164,_0x595875,_0xf15743,_0x592916){const _0x5c5fbe=_0x2da18b,_0x6b3d72=this['_revisionService'][_0x5c5fbe(0x29c)](_0x1da164);this[_0x5c5fbe(0x2c5)][_0x5c5fbe(0x276)](_0x1da164,{'unitID':_0x1da164,'type':_0x595875,'awaitingChangeset':_0xf15743,'mutations':_0x592916,'rev':_0x6b3d72}),this[_0x5c5fbe(0x481)][_0x5c5fbe(0x141)](_0x1da164)||this[_0x5c5fbe(0x33e)](_0x1da164);}[_0x2da18b(0x33e)](_0xdce669){const _0x51ed6e=_0x2da18b,_0x4c0587=this[_0x51ed6e(0x2e5)]();_0x4c0587===0x0?this[_0x51ed6e(0x2f8)](_0xdce669):this[_0x51ed6e(0x481)][_0x51ed6e(0x276)](_0xdce669,setTimeout(()=>this[_0x51ed6e(0x2f8)](_0xdce669),_0x4c0587));}[_0x2da18b(0x2e5)](){const _0x568390=_0x2da18b;var _0x6222ff;return(_0x6222ff=this[_0x568390(0x205)][_0x568390(0x1bb)](Tn))!=null?_0x6222ff:Rn;}[_0x2da18b(0x2f8)](_0x5e0416){const _0x54093f=_0x2da18b,_0x448b50=this[_0x54093f(0x481)][_0x54093f(0x2dd)](_0x5e0416);return _0x448b50!==void 0x0&&window[_0x54093f(0x133)](_0x448b50),this[_0x54093f(0x212)][_0x54093f(0x428)](os(_0x5e0416),this[_0x54093f(0x2c5)]['get'](_0x5e0416))[_0x54093f(0x484)](()=>this['_saveTaskMap']['delete'](_0x5e0416));}async[_0x2da18b(0x1a4)](){const _0xbfb63=_0x2da18b,_0x554c19=[];this['_saveTaskMap'][_0xbfb63(0x137)]((_0x1cd2d9,_0x1d6fe8)=>{const _0x390b96=_0xbfb63;window['clearTimeout'](_0x1cd2d9),_0x554c19[_0x390b96(0x46c)](this[_0x390b96(0x2f8)](_0x1d6fe8)[_0x390b96(0x484)](()=>{const _0x47dfff=_0x390b96;this['_saveTaskMap'][_0x47dfff(0x3b7)](_0x1d6fe8);}));}),await Promise[_0xbfb63(0x17a)](_0x554c19);}[_0x2da18b(0x47e)](){const _0xdac067=_0x2da18b;this[_0xdac067(0x206)](this[_0xdac067(0x24b)][_0xdac067(0x16b)](()=>{const _0x5d0510=_0xdac067;if(this['_saveTaskMap'][_0x5d0510(0x1c1)])return this[_0x5d0510(0x2cb)]['t']('collaboration-client.offline-data-not-saved');}));}};D=er([Oe(0x0,_0x4b95b7),Oe(0x1,_0x3c9fa7),Oe(0x2,_0x569db2),Oe(0x3,_0x24691e(_0x1695f3)),Oe(0x4,_0x24691e(_0x40a032))],D);function os(_0x4d3580){return'unit-cache-'+_0x4d3580;}var tr=Object[_0x2da18b(0x151)],sr=Object[_0x2da18b(0x2b8)],ir=(_0x4a36db,_0x4db1ed,_0x5bb6eb,_0x1a3194)=>{const _0x1acdf5=_0x2da18b;for(var _0x383487=_0x1a3194>0x1?void 0x0:_0x1a3194?sr(_0x4db1ed,_0x5bb6eb):_0x4db1ed,_0x518d6c=_0x4a36db[_0x1acdf5(0x1a8)]-0x1,_0x4cf147;_0x518d6c>=0x0;_0x518d6c--)(_0x4cf147=_0x4a36db[_0x518d6c])&&(_0x383487=(_0x1a3194?_0x4cf147(_0x4db1ed,_0x5bb6eb,_0x383487):_0x4cf147(_0x383487))||_0x383487);return _0x1a3194&&_0x383487&&tr(_0x4db1ed,_0x5bb6eb,_0x383487),_0x383487;},ht=(_0x25638b,_0x28c138)=>(_0x4f6390,_0x1724b0)=>_0x28c138(_0x4f6390,_0x1724b0,_0x25638b);function nr(_0x280fd5){const _0x501564=_0x2da18b,{unitID:_0x3931bc,mutations:_0x1ee7c2}=_0x280fd5;return{'unitId':_0x3931bc,'subUnitId':_0x1ee7c2[0x0][_0x501564(0x338)]['subUnitId']};}let Ke=class{constructor(_0x11d95b,_0x42339a,_0x3cd56d){const _0x45fdfb=_0x2da18b;this[_0x45fdfb(0x272)]=_0x11d95b,this[_0x45fdfb(0x32a)]=_0x42339a,this[_0x45fdfb(0x231)]=_0x3cd56d;}[_0x2da18b(0x430)](_0x5c9958){const _0x557ee9=_0x2da18b;var _0x10876c,_0x3c60b1,_0x20d73b,_0x14d4b1;const _0xfb7047=this['_injector'][_0x557ee9(0x2dd)](_0x19b20b),{unitId:_0x154a44,subUnitId:_0x784466}=nr(_0x5c9958),_0x5b950b=_0xfb7047['getWorkbookSelections'](_0x154a44)[_0x557ee9(0x3c0)](),_0x1e0b15=(_0x3c60b1=(_0x10876c=this[_0x557ee9(0x231)][_0x557ee9(0x285)](_0x154a44))==null?void 0x0:_0x10876c[_0x557ee9(0x187)]())==null?void 0x0:_0x3c60b1[_0x557ee9(0x326)]();if(_0x5b950b['length']===0x0||!_0x154a44||!_0x784466)return;const _0x1a2c5f=[{'id':_0x3c7ab3['id'],'params':{'unitId':_0x154a44,'subUnitId':_0x1e0b15,'selections':_0x5ee8c7[_0x557ee9(0x1d9)](_0x5b950b)}}],_0x315938=this['_transformService'][_0x557ee9(0x18b)](_0x5c9958,_0x1a2c5f);if(!_0x524343(_0x315938))throw _0x315938[_0x557ee9(0x490)];const _0x80bb59=(_0x14d4b1=(_0x20d73b=_0x315938[_0x557ee9(0x22c)][0x0])==null?void 0x0:_0x20d73b[_0x557ee9(0x338)])==null?void 0x0:_0x14d4b1['selections'];Array[_0x557ee9(0x1f8)](_0x80bb59)&&_0x80bb59[_0x557ee9(0x1a8)]&&this[_0x557ee9(0x272)][_0x557ee9(0x2dd)](_0x18280b)[_0x557ee9(0x22a)](_0x3c7ab3['id'],{'unitId':_0x154a44,'subUnitId':_0x1e0b15,'selections':_0x80bb59});}};Ke=ir([ht(0x0,_0x24691e(_0x129c7a)),ht(0x1,_0x418a36),ht(0x2,_0x4af863)],Ke);const tt=_0x4f53b0(_0x2da18b(0x401));var js=(_0x225b2c=>(_0x225b2c[_0x225b2c[_0x2da18b(0x48e)]=0x0]=_0x2da18b(0x48e),_0x225b2c[_0x225b2c['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x225b2c))(js||{});const as=0x7530,cs=_0x2da18b(0x47f);class rr extends _0x3bc0d2{constructor(){const _0x3d6c55=_0x2da18b;super(),l(this,_0x3d6c55(0x47b),_0x5ee8c7['generateRandomId']()),l(this,_0x3d6c55(0x491),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x3d6c55(0x35a),null),l(this,_0x3d6c55(0x36f),new Map()),l(this,_0x3d6c55(0x456),new Map()),this[_0x3d6c55(0x1c5)]();}[_0x2da18b(0x18e)](){const _0x2e0249=_0x2da18b;super[_0x2e0249(0x18e)](),this[_0x2e0249(0x36f)][_0x2e0249(0x137)]((_0x473c97,_0x2914ff)=>this['_removeClearOtherTimer'](_0x2914ff)),this[_0x2e0249(0x35a)]&&window[_0x2e0249(0x184)](this[_0x2e0249(0x35a)]);}['getUnitStatus$'](_0xbb53e8){const _0x2b7b5c=_0x2da18b;return this[_0x2b7b5c(0x30d)](_0xbb53e8)[_0x2b7b5c(0x29b)](_0x49c724());}[_0x2da18b(0x38f)](_0x41ec8d){const _0x2fe2fc=_0x2da18b;this[_0x2fe2fc(0x491)][_0x2fe2fc(0x1c1)]===0x0&&this[_0x2fe2fc(0x398)](),this[_0x2fe2fc(0x491)]['add'](_0x41ec8d),this[_0x2fe2fc(0x1fa)]({'type':0x0,'memberID':this[_0x2fe2fc(0x47b)],'unitIDs':[_0x41ec8d],'isForwarded':!0x1});}['disposeUnit'](_0x82d52b){const _0x3071a2=_0x2da18b;this['_selfUnitIDs']['delete'](_0x82d52b),this['_selfUnitIDs'][_0x3071a2(0x1c1)]===0x0&&this[_0x3071a2(0x35a)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x2da18b(0x1c5)](){const _0x2a4e18=_0x2da18b;this[_0x2a4e18(0x206)](_0xc09fc4(_0x267a81(window,_0x2a4e18(0x454))[_0x2a4e18(0x146)](_0x31cf85=>{const _0x2982cc=_0x2a4e18;if(_0x31cf85[_0x2982cc(0x1da)]!==cs||!_0x31cf85[_0x2982cc(0x295)])return;const _0x1eacac=JSON[_0x2982cc(0x2f1)](_0x31cf85[_0x2982cc(0x295)]);this['_handleEvent'](_0x1eacac);}))),window['addEventListener']('unload',()=>this[_0x2a4e18(0x1fa)]({'type':0x1,'memberID':this[_0x2a4e18(0x47b)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x2da18b(0x249)](_0x218703){const _0x5edaf6=_0x2da18b;switch(_0x218703[_0x5edaf6(0x3f5)]){case 0x0:this[_0x5edaf6(0x1c9)](_0x218703);break;case 0x1:this[_0x5edaf6(0x306)](_0x218703);break;case 0x2:this[_0x5edaf6(0x442)](_0x218703);break;}}[_0x2da18b(0x1c9)](_0x3c55f1){const _0x13f1b2=_0x2da18b,{unitIDs:_0x2b19a9,memberID:_0x51bf22,isForwarded:_0x34e20b}=_0x3c55f1;_0x2b19a9[_0x13f1b2(0x137)](_0x2c3111=>{const _0x818be=_0x13f1b2;if(!_0x34e20b&&this[_0x818be(0x174)][_0x818be(0x141)](_0x2c3111)&&this[_0x818be(0x30d)](_0x2c3111)[_0x818be(0x33a)](0x1),!this[_0x818be(0x174)][_0x818be(0x141)](_0x2c3111)||!this[_0x818be(0x174)][_0x818be(0x2dd)](_0x2c3111)['has'](_0x51bf22)){const _0x188246=this['_unitOnClients'][_0x818be(0x2dd)](_0x2c3111)||new Set();_0x188246[_0x818be(0x358)](_0x51bf22),this[_0x818be(0x174)]['set'](_0x2c3111,_0x188246),this['_scheduleClearOtherTimer'](_0x51bf22);}}),_0x34e20b||this[_0x13f1b2(0x1fa)]({'type':0x0,'memberID':this[_0x13f1b2(0x47b)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2da18b(0x462)](_0x1778ea){const _0x5a310c=_0x2da18b;this['_removeClearOtherTimer'](_0x1778ea);const _0x48d9f4=window[_0x5a310c(0x1ee)](()=>{this['_unitOnClients']['forEach'](_0x19e9d6=>{_0x19e9d6['delete'](_0x1778ea);});},as*0x2);this[_0x5a310c(0x36f)][_0x5a310c(0x276)](_0x1778ea,_0x48d9f4);}[_0x2da18b(0x3ef)](_0x4e3b70){const _0x782581=_0x2da18b;if(this[_0x782581(0x36f)]['has'](_0x4e3b70)){const _0x456309=this[_0x782581(0x36f)][_0x782581(0x2dd)](_0x4e3b70);_0x456309&&window[_0x782581(0x133)](_0x456309),this[_0x782581(0x36f)][_0x782581(0x276)](_0x4e3b70,null);}}['_handleLeaveEvent'](_0x3dbe26){const {memberID:_0x359b94,unitIDs:_0x16206d}=_0x3dbe26;_0x16206d['forEach'](_0x24bc3b=>{const _0xe8b1b4=_0x44b4;var _0x44ace3;const _0x2be6a2=this[_0xe8b1b4(0x174)][_0xe8b1b4(0x2dd)](_0x24bc3b);_0x2be6a2&&(_0x2be6a2[_0xe8b1b4(0x3b7)](_0x359b94),(_0x44ace3=this['_ensureSubject'](_0x24bc3b))==null||_0x44ace3[_0xe8b1b4(0x33a)](_0x2be6a2[_0xe8b1b4(0x1c1)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x359b94);}[_0x2da18b(0x442)](_0x38911d){const _0x3ae61d=_0x2da18b;this[_0x3ae61d(0x462)](_0x38911d['memberID']);}[_0x2da18b(0x1fa)](_0x54b415){const _0x146e02=_0x2da18b;localStorage[_0x146e02(0x428)](cs,JSON[_0x146e02(0x2ea)](_0x54b415));}[_0x2da18b(0x398)](){const _0x273847=_0x2da18b;this[_0x273847(0x35a)]=window[_0x273847(0x3c7)](()=>{const _0x5bb9b8=_0x273847;this[_0x5bb9b8(0x1fa)]({'type':0x2,'memberID':this['_id']});},as);}[_0x2da18b(0x30d)](_0x37b76d){const _0x1f0969=_0x2da18b;return this[_0x1f0969(0x456)]['has'](_0x37b76d)||this['_unitStatus'][_0x1f0969(0x276)](_0x37b76d,new _0x295ce3(0x0)),this['_unitStatus'][_0x1f0969(0x2dd)](_0x37b76d);}}function xs(_0x5231b1){let _0x2cecf1='';for(const _0x33e5dc of _0x5231b1){const {startOffset:_0x6a0adc,endOffset:_0x3c3ea3,isActive:_0x3d483b}=_0x33e5dc;_0x2cecf1['length']&&(_0x2cecf1+=','),_0x2cecf1+=_0x6a0adc+':'+_0x3c3ea3+':'+(_0x3d483b?'1':'0');}return _0x2cecf1;}function or(_0x49578f){const _0x3d0ad2=_0x2da18b,_0x41ca5c=_0x49578f[_0x3d0ad2(0x134)](','),_0x4dea4f=[];for(const _0x587c6a of _0x41ca5c){const [_0xce85da,_0x1aa5c6,_0x3cf93e]=_0x587c6a['split'](':');_0x4dea4f[_0x3d0ad2(0x46c)]({'startOffset':Number(_0xce85da),'endOffset':Number(_0x1aa5c6),'collapsed':_0xce85da===_0x1aa5c6,'isActive':_0x3cf93e==='1'});}return _0x4dea4f[_0x3d0ad2(0x256)](_0x255573=>_0x255573[_0x3d0ad2(0x2d2)])||(_0x4dea4f[0x0][_0x3d0ad2(0x2d2)]=!0x0),_0x4dea4f;}class Bt extends _0x13b3a6{constructor(){const _0x2aa95d=_0x2da18b;super(...arguments),l(this,'_collabCursorState$',new _0x295ce3(null)),l(this,'collabCursorState$',this[_0x2aa95d(0x210)]['asObservable']());}[_0x2da18b(0x472)](_0x106b0a){const _0x256243=_0x2da18b,{unitID:_0xb7c77d,memberID:_0x456784,textRanges:_0x5652ca}=_0x106b0a,_0x54490b=xs(_0x5652ca),_0x3e8dcd={'unitID':_0xb7c77d,'memberID':_0x456784,'selection':_0x54490b};this[_0x256243(0x210)][_0x256243(0x33a)](_0x3e8dcd);}}var ar=Object[_0x2da18b(0x151)],cr=Object[_0x2da18b(0x2b8)],hr=(_0x406ea1,_0x5c5ef3,_0x3de5bc,_0x5c7e24)=>{const _0x8e5f89=_0x2da18b;for(var _0x2f827c=_0x5c7e24>0x1?void 0x0:_0x5c7e24?cr(_0x5c5ef3,_0x3de5bc):_0x5c5ef3,_0x1ce3ac=_0x406ea1[_0x8e5f89(0x1a8)]-0x1,_0x44dbed;_0x1ce3ac>=0x0;_0x1ce3ac--)(_0x44dbed=_0x406ea1[_0x1ce3ac])&&(_0x2f827c=(_0x5c7e24?_0x44dbed(_0x5c5ef3,_0x3de5bc,_0x2f827c):_0x44dbed(_0x2f827c))||_0x2f827c);return _0x5c7e24&&_0x2f827c&&ar(_0x5c5ef3,_0x3de5bc,_0x2f827c),_0x2f827c;},hs=(_0x30dcde,_0x10d47e)=>(_0x18836b,_0x18c59a)=>_0x10d47e(_0x18836b,_0x18c59a,_0x30dcde);let Xe=class{constructor(_0x39b7bb,_0x1057e9){const _0x4cfb21=_0x2da18b;this[_0x4cfb21(0x272)]=_0x39b7bb,this[_0x4cfb21(0x32a)]=_0x1057e9;}['transformSelections'](_0xb26759){const _0x464abb=_0x2da18b;var _0x266c0c;const _0x5051d6=this[_0x464abb(0x272)][_0x464abb(0x2dd)](_0xd0d12d),_0x4532b2=(_0x266c0c=_0x5051d6[_0x464abb(0x309)]())!=null?_0x266c0c:[];if(_0x4532b2['length']===0x0)return;const _0x1a1ee8=[{'id':_0x464abb(0x16d),'params':{'unitId':_0xb26759[_0x464abb(0x1e5)],'actions':null,'textRanges':_0x4532b2}}],_0x28c0a2=this[_0x464abb(0x32a)][_0x464abb(0x18b)](_0xb26759,_0x1a1ee8);if(!_0x524343(_0x28c0a2))throw _0x28c0a2[_0x464abb(0x490)];const _0x49727a=_0x28c0a2[_0x464abb(0x22c)][0x0][_0x464abb(0x338)]['textRanges'];Array[_0x464abb(0x1f8)](_0x49727a)&&_0x49727a[_0x464abb(0x1a8)]&&_0x5051d6[_0x464abb(0x396)](_0x49727a,!0x1);}};Xe=hr([hs(0x0,_0x24691e(_0x129c7a)),hs(0x1,_0x418a36)],Xe);const lr=new Set([_0x59880b['id']]);function ls(_0x42e1cf,_0x44816c,_0x4c3acd,_0x36be23,_0x48c211){const _0x2a0275=_0x2da18b;var _0x55933b,_0x2be7de,_0x11de2d,_0x79999e;const _0x23758f=[];for(const _0x2779de of _0x42e1cf)if(lr[_0x2a0275(0x141)](_0x2779de['id'])){if(_0x23758f[_0x2a0275(0x1a8)]>0x0)break;_0x23758f[_0x2a0275(0x46c)](_0x2779de);break;}else _0x23758f[_0x2a0275(0x46c)](_0x2779de);const _0x50e538=(_0x2be7de=(_0x55933b=_0x48c211[_0x2a0275(0x458)]())==null?void 0x0:_0x55933b['userID'])!=null?_0x2be7de:_0x2a0275(0x157),_0x31cf52=(_0x79999e=(_0x11de2d=_0x48c211[_0x2a0275(0x458)]())==null?void 0x0:_0x11de2d['memberID'])!=null?_0x79999e:_0x2a0275(0x157);return{'changeset':{'unitID':_0x44816c,'type':_0x31e3bf(_0x4c3acd[_0x2a0275(0x324)](_0x44816c)),'baseRev':_0x36be23[_0x2a0275(0x29c)](_0x44816c),'revision':0x0,'userID':_0x50e538,'memberID':_0x31cf52,'mutations':_0x23758f},'pendingMutations':_0x42e1cf[_0x2a0275(0x156)](_0x23758f['length'])};}function _r(_0x23c066,_0x219910,_0xea6d79,_0x20676c,_0x535b32){const _0x3a7d56=_0x2da18b;var _0x102584,_0x403c0b,_0xea79f8,_0x128656;const _0x4fb378=[_0x23c066[_0x3a7d56(0x1a1)]((_0x2eaa90,_0x200c42)=>{const _0x592eef=_0x3a7d56;var _0x54f2db;const {id:_0x376d12}=_0x2eaa90,{id:_0x22e2f8,type:_0x2b6ad5}=_0x200c42,_0x13f8f7=(_0x54f2db=_0x2eaa90[_0x592eef(0x338)])!=null?_0x54f2db:{'actions':null},_0x484ba2=_0x200c42['params'];if(_0x376d12&&_0x376d12!==_0x22e2f8)throw new Error(_0x592eef(0x1e4)+_0x376d12+_0x592eef(0x2aa)+_0x22e2f8+'.');return{..._0x2eaa90,'id':_0x22e2f8,'type':_0x2b6ad5,'params':{'unitId':_0x484ba2[_0x592eef(0x380)],'textRanges':_0x484ba2[_0x592eef(0x337)],'actions':_0x34e2cd['compose'](_0x13f8f7['actions'],_0x484ba2['actions'])}};},{})],_0x5e67aa=(_0x403c0b=(_0x102584=_0x535b32['getCurrentUser']())==null?void 0x0:_0x102584['userID'])!=null?_0x403c0b:_0x3a7d56(0x157),_0x4d9275=(_0x128656=(_0xea79f8=_0x535b32[_0x3a7d56(0x458)]())==null?void 0x0:_0xea79f8['memberID'])!=null?_0x128656:'unknown';return{'changeset':{'unitID':_0x219910,'type':_0x31e3bf(_0xea6d79[_0x3a7d56(0x324)](_0x219910)),'baseRev':_0x20676c['getCurrentRevOfUnit'](_0x219910),'revision':0x0,'userID':_0x5e67aa,'memberID':_0x4d9275,'mutations':_0x4fb378},'pendingMutations':[]};}const ur={'id':_0x4af40d['id'],'type':_0x109a6f[_0x2da18b(0x13e)],'params':{}};var dr=Object[_0x2da18b(0x151)],fr=Object[_0x2da18b(0x2b8)],le=(_0x3b96be,_0x101aac,_0x319485,_0x17f5e2)=>{const _0x5a22ba=_0x2da18b;for(var _0x32b970=_0x17f5e2>0x1?void 0x0:_0x17f5e2?fr(_0x101aac,_0x319485):_0x101aac,_0x4ae7f0=_0x3b96be[_0x5a22ba(0x1a8)]-0x1,_0x370ec0;_0x4ae7f0>=0x0;_0x4ae7f0--)(_0x370ec0=_0x3b96be[_0x4ae7f0])&&(_0x32b970=(_0x17f5e2?_0x370ec0(_0x101aac,_0x319485,_0x32b970):_0x370ec0(_0x32b970))||_0x32b970);return _0x17f5e2&&_0x32b970&&dr(_0x101aac,_0x319485,_0x32b970),_0x32b970;},m=(_0x500d0e,_0xc55775)=>(_0x5858dc,_0x1e5a66)=>_0xc55775(_0x5858dc,_0x1e5a66,_0x500d0e),w=(_0x11e3da=>(_0x11e3da[_0x2da18b(0x408)]='not_collab',_0x11e3da[_0x2da18b(0x258)]=_0x2da18b(0x287),_0x11e3da[_0x2da18b(0x18c)]=_0x2da18b(0x32b),_0x11e3da[_0x2da18b(0x435)]='awaiting',_0x11e3da[_0x2da18b(0x3a2)]=_0x2da18b(0x39b),_0x11e3da[_0x2da18b(0x263)]=_0x2da18b(0x24a),_0x11e3da['CONFLICT']=_0x2da18b(0x278),_0x11e3da[_0x2da18b(0x2e9)]=_0x2da18b(0x2c1),_0x11e3da))(w||{});class _e{constructor(_0x352cd8,_0x35bd86,_0x27432f,_0x107fd9,_0x36445d,_0x36f38b,_0x315fe4,_0x2461cd,_0xcc30d6){const _0x20ef2d=_0x2da18b;l(this,_0x20ef2d(0x288),null),l(this,'_pendingMutations',[]),(this[_0x20ef2d(0x1e5)]=_0x352cd8,this[_0x20ef2d(0x3f5)]=_0x35bd86,this[_0x20ef2d(0x429)]=_0x36445d,this[_0x20ef2d(0x457)]=_0x36f38b,this['_undoRedoService']=_0x315fe4,this[_0x20ef2d(0x3b1)]=_0x2461cd,this[_0x20ef2d(0x1e1)]=_0xcc30d6,this[_0x20ef2d(0x288)]=_0x27432f,this[_0x20ef2d(0x191)]=_0x107fd9);}[_0x2da18b(0x2c2)](_0x10591a){const _0x3c54fc=_0x2da18b,_0x5c2116=this[_0x3c54fc(0x3b1)][_0x3c54fc(0x29c)](this['unitID']);return _0x10591a[_0x3c54fc(0x14a)]>_0x5c2116+0x1?(this[_0x3c54fc(0x429)][_0x3c54fc(0x394)]({'from':_0x5c2116,'to':_0x10591a[_0x3c54fc(0x14a)]-0x1}),!0x0):!0x1;}[_0x2da18b(0x315)](_0x42b689){const _0x2af851=_0x2da18b;this[_0x2af851(0x473)]['transformUndoRedo'](this[_0x2af851(0x1e5)],_0x42b689);}['_transformSelections'](_0x5c6c7e){const _0x2aeb76=_0x2da18b;var _0x5a9491,_0x686242;(_0x686242=(_0x5a9491=this['_handler'])[_0x2aeb76(0x320)])==null||_0x686242[_0x2aeb76(0x19e)](_0x5a9491,_0x5c6c7e);}[_0x2da18b(0x3bc)](_0xd92734){const _0x325864=_0x2da18b;var _0xf8cf5f,_0x1b90d9;return(_0x1b90d9=(_0xf8cf5f=this[_0x325864(0x429)])['onTransformIME'])==null?void 0x0:_0x1b90d9[_0x325864(0x19e)](_0xf8cf5f,_0xd92734);}[_0x2da18b(0x24c)](_0x2091bf){const _0x19e0af=_0x2da18b;var _0x3a256e,_0x5a9ddc,_0x2aca14;return(_0x2aca14=(_0x5a9ddc=(_0x3a256e=this[_0x19e0af(0x429)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5a9ddc[_0x19e0af(0x19e)](_0x3a256e,_0x2091bf))!=null?_0x2aca14:_0x2091bf;}[_0x2da18b(0x32e)](_0x35983e){const _0x1c1059=_0x2da18b;var _0xd4c56d,_0x3e7b46;if(this['type']===H[_0x1c1059(0x37b)]){const {unitID:_0x9abf3e,mutations:_0x2374a8,memberID:_0x3e1cde}=_0x35983e,_0x16ae8f=_0x2374a8[0x0][_0x1c1059(0x338)]['textRanges'];Array[_0x1c1059(0x1f8)](_0x16ae8f)&&_0x16ae8f['length']>0x0&&((_0x3e7b46=(_0xd4c56d=this[_0x1c1059(0x429)])['onSyncEditingCollabCursor'])==null||_0x3e7b46[_0x1c1059(0x19e)](_0xd4c56d,{'unitID':_0x9abf3e,'memberID':_0x3e1cde,'textRanges':_0x16ae8f}));}}['_updateLocalCache'](){const _0x4ff2c3=_0x2da18b;this['_localCacheService'][_0x4ff2c3(0x48c)](this[_0x4ff2c3(0x1e5)],this[_0x4ff2c3(0x3f5)],this[_0x4ff2c3(0x288)],this[_0x4ff2c3(0x191)]);}['_getCurrentRevision'](){const _0x50176d=_0x2da18b;return this['_revisionService'][_0x50176d(0x29c)](this['unitID']);}[_0x2da18b(0x195)](){const _0x5df38f=_0x2da18b;this[_0x5df38f(0x3b1)][_0x5df38f(0x182)](this[_0x5df38f(0x1e5)]);}[_0x2da18b(0x493)](_0x5d167b){const _0x313023=_0x2da18b;var _0x3b1e4f;const _0x213dd9=this[_0x313023(0x24c)](_0x5d167b),_0xa594d4=_0x532db3(_0x213dd9[_0x313023(0x154)],this['_commandService'],{'fromCollab':!0x0});if(!_0xa594d4[_0x313023(0x1a7)])throw _0xa594d4[_0x313023(0x490)]instanceof Error?_0xa594d4[_0x313023(0x490)]:new Error((_0x3b1e4f=_0xa594d4[_0x313023(0x490)])!=null?_0x3b1e4f:_0x313023(0x185));this['_transformIMECache'](_0x213dd9),this[_0x313023(0x315)](_0x5d167b),this['_transformSelections'](_0x213dd9),this[_0x313023(0x32e)](_0x213dd9),this[_0x313023(0x195)]();}}let Se=class extends _e{constructor(_0x3fd03a,_0x31e6a0,_0x4c73b6,_0x1a2f0a,_0x6718a6,_0x2bbec0,_0x2f355d,_0x5885c9,_0x16dd42,_0x35c60a){const _0x1f36a0=_0x2da18b;super(_0x3fd03a,_0x31e6a0,null,[],_0x4c73b6,_0x5885c9,_0x2f355d,_0x1a2f0a,_0x6718a6),l(this,_0x1f36a0(0x31a),_0x1f36a0(0x287)),(this['_injector']=_0x2bbec0,this[_0x1f36a0(0x356)]=_0x16dd42,this[_0x1f36a0(0x32a)]=_0x35c60a);}[_0x2da18b(0x150)](_0x4466de){const _0x220c54=_0x2da18b,_0x185a86=this['_injector']['createInstance'](K,this[_0x220c54(0x1e5)],this['type'],[_0x4466de],this[_0x220c54(0x429)]);return _0x185a86['_schedule'](),_0x185a86[_0x220c54(0x193)](),_0x185a86;}['onRemoteChangeset'](_0x43e247){const _0x282e16=_0x2da18b;if(this['_checkMissing'](_0x43e247))return this[_0x282e16(0x272)]['createInstance'](k,this[_0x282e16(0x1e5)],this[_0x282e16(0x3f5)],null,[],null,[_0x43e247],this[_0x282e16(0x429)]);try{const _0x4222b2=this[_0x282e16(0x32a)]['transformMutationsWithChangeset'](_0x43e247,[ur]);if(_0x524343(_0x4222b2)){const {c1Prime:_0x2fac01}=_0x4222b2;return this[_0x282e16(0x493)](_0x2fac01),this;}throw _0x4222b2[_0x282e16(0x490)];}catch(_0x466fc6){return this[_0x282e16(0x356)]['error'](_0x466fc6),this[_0x282e16(0x397)](!0x1);}}[_0x2da18b(0x397)](_0x2aa0d9){const _0x210a2c=_0x2da18b;return this[_0x210a2c(0x272)]['createInstance'](Q,this[_0x210a2c(0x1e5)],this[_0x210a2c(0x3f5)],null,[],this['_handler'],_0x2aa0d9);}[_0x2da18b(0x1b0)](){const _0x2cd970=_0x2da18b;throw new Error(_0x2cd970(0x269));}[_0x2da18b(0x3d0)](){const _0x392783=_0x2da18b;throw new Error(_0x392783(0x2fd));}['toggleOffline'](){const _0x19c831=_0x2da18b;return this[_0x19c831(0x272)][_0x19c831(0x3cb)](ee,this['unitID'],this[_0x19c831(0x3f5)],null,[],this['_handler']);}[_0x2da18b(0x21d)](){return this;}[_0x2da18b(0x1df)](){const _0x6c7bc2=_0x2da18b;throw new Error(_0x6c7bc2(0x335));}[_0x2da18b(0x3e3)](){const _0x263a47=_0x2da18b,_0x472965=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return this['_handler'][_0x263a47(0x394)]({'from':_0x472965,'to':0x0}),this[_0x263a47(0x272)]['createInstance'](k,this[_0x263a47(0x1e5)],this[_0x263a47(0x3f5)],null,[],null,[],this['_handler']);}};Se=le([m(0x3,_0x24691e(_0x40a032)),m(0x4,_0x24691e(D)),m(0x5,_0x24691e(_0x129c7a)),m(0x6,_0x37a9c2),m(0x7,_0x18280b),m(0x8,_0x16c619),m(0x9,_0x418a36)],Se);let K=class extends _e{constructor(_0x46ee98,_0x430718,_0x476662,_0x170c63,_0x30e15d,_0x2a2e6e,_0x10f05e,_0x50b206,_0x48d9b1,_0x5e3e47,_0x2973f2,_0x3d99f7,_0x187b38,_0x18fc1b){const _0x5039e4=_0x2da18b;super(_0x46ee98,_0x430718,null,_0x476662,_0x170c63,_0x5e3e47,_0x18fc1b,_0x2a2e6e,_0x10f05e),l(this,_0x5039e4(0x31a),'pending'),l(this,_0x5039e4(0x431),null),l(this,'_sendingTimer',null),(this[_0x5039e4(0x272)]=_0x30e15d,this[_0x5039e4(0x131)]=_0x50b206,this[_0x5039e4(0x356)]=_0x48d9b1,this[_0x5039e4(0x205)]=_0x2973f2,this[_0x5039e4(0x32a)]=_0x3d99f7,this[_0x5039e4(0x406)]=_0x187b38);}['appendMutation'](_0x2faa3c){const _0x7566e0=_0x2da18b;return this[_0x7566e0(0x191)][_0x7566e0(0x46c)](_0x2faa3c),this[_0x7566e0(0x193)](),this;}[_0x2da18b(0x386)](_0x5a76f2){const _0x178101=_0x2da18b;if(this['_checkMissing'](_0x5a76f2))return this[_0x178101(0x3bf)](),this['_injector'][_0x178101(0x3cb)](k,this[_0x178101(0x1e5)],this[_0x178101(0x3f5)],null,this[_0x178101(0x191)],null,[_0x5a76f2],this['_handler']);try{const _0x48ebaf=this['_transformService']['transformMutationsWithChangeset'](_0x5a76f2,this[_0x178101(0x191)]);if(_0x524343(_0x48ebaf)){const {c1Prime:_0x34c456,m2Prime:_0x448f49}=_0x48ebaf;this[_0x178101(0x493)](_0x34c456);const _0x94175d=this[_0x178101(0x272)][_0x178101(0x3cb)](K,this['unitID'],this[_0x178101(0x3f5)],_0x448f49,this['_handler']);return this[_0x178101(0x3bf)](),_0x94175d[_0x178101(0x470)](this[_0x178101(0x431)]?Math[_0x178101(0x43c)](0x0,new Date()['getTime']()-this[_0x178101(0x431)]):this[_0x178101(0x1cc)]()),_0x94175d;}throw _0x48ebaf['error'];}catch(_0x3763df){return this[_0x178101(0x356)]['error'](_0x3763df),this[_0x178101(0x397)](!0x1);}}[_0x2da18b(0x1b0)](){const _0x5102cc=_0x2da18b;throw new Error(_0x5102cc(0x340));}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2da18b(0x233)](){const _0x51d723=_0x2da18b;return this[_0x51d723(0x3bf)](),this[_0x51d723(0x272)][_0x51d723(0x3cb)](ee,this[_0x51d723(0x1e5)],this['type'],null,this[_0x51d723(0x191)],this[_0x51d723(0x429)]);}[_0x2da18b(0x21d)](){return this;}[_0x2da18b(0x470)](_0x2643a9){const _0x27c0af=_0x2da18b,_0xb7babd=_0x2643a9!=null?_0x2643a9:this['_getSendChangesetTimeout']();this[_0x27c0af(0x431)]=new Date()[_0x27c0af(0x3a6)](),this[_0x27c0af(0x26d)]=window['setTimeout'](()=>{const _0xa27b75=_0x27c0af;this[_0xa27b75(0x3bf)]();let _0x4e5747=null;switch(this['type']){case H[_0xa27b75(0x2d4)]:{_0x4e5747=ls(this[_0xa27b75(0x191)],this[_0xa27b75(0x1e5)],this[_0xa27b75(0x406)],this[_0xa27b75(0x3b1)],this[_0xa27b75(0x131)]);break;}case H[_0xa27b75(0x37b)]:{this[_0xa27b75(0x191)][_0xa27b75(0x14b)](_0x5759aa=>_0x5759aa['id']===_0x11f4dd['id'])?_0x4e5747=_r(this[_0xa27b75(0x191)],this[_0xa27b75(0x1e5)],this[_0xa27b75(0x406)],this['_revisionService'],this[_0xa27b75(0x131)]):_0x4e5747=ls(this[_0xa27b75(0x191)],this[_0xa27b75(0x1e5)],this[_0xa27b75(0x406)],this[_0xa27b75(0x3b1)],this[_0xa27b75(0x131)]);break;}default:throw new Error(_0xa27b75(0x18f)+this[_0xa27b75(0x3f5)]+_0xa27b75(0x384));}const {changeset:_0x3d2b3d,pendingMutations:_0xefa832}=_0x4e5747;this[_0xa27b75(0x429)][_0xa27b75(0x164)](_0x3d2b3d);const _0x1dcd1b=_0xefa832['length']?this[_0xa27b75(0x272)][_0xa27b75(0x3cb)](X,this['unitID'],this[_0xa27b75(0x3f5)],_0x3d2b3d,_0xefa832,this['_handler']):this['_injector'][_0xa27b75(0x3cb)](Z,this[_0xa27b75(0x1e5)],this[_0xa27b75(0x3f5)],_0x3d2b3d,this[_0xa27b75(0x429)]);_0x1dcd1b[_0xa27b75(0x193)](),this[_0xa27b75(0x429)]['onStateChange'](this,_0x1dcd1b);},_0xb7babd);}[_0x2da18b(0x1cc)](){const _0x5f13b6=_0x2da18b;var _0x403d84;const _0xd944ba=this[_0x5f13b6(0x205)]['getConfig'](L);return(_0x403d84=_0xd944ba==null?void 0x0:_0xd944ba[_0x5f13b6(0x172)])!=null?_0x403d84:gn;}['resend'](){const _0x1343ee=_0x2da18b;throw new Error(_0x1343ee(0x385));}[_0x2da18b(0x3bf)](){const _0x3c0dfd=_0x2da18b;this[_0x3c0dfd(0x26d)]!=null&&(clearTimeout(this[_0x3c0dfd(0x26d)]),this[_0x3c0dfd(0x26d)]=null);}[_0x2da18b(0x397)](_0x4f8fb8){const _0x46284e=_0x2da18b;return this['_clearScheduledTask'](),this['_injector'][_0x46284e(0x3cb)](Q,this['unitID'],this[_0x46284e(0x3f5)],null,this[_0x46284e(0x191)],this[_0x46284e(0x429)],_0x4f8fb8);}};K=le([m(0x4,_0x24691e(_0x129c7a)),m(0x5,_0x24691e(_0x40a032)),m(0x6,_0x24691e(D)),m(0x7,_0x24691e(ae)),m(0x8,_0x16c619),m(0x9,_0x18280b),m(0xa,_0x4b95b7),m(0xb,_0x418a36),m(0xc,_0x4af863),m(0xd,_0x37a9c2)],K);let Z=class extends _e{constructor(_0x5f2d4c,_0x19b096,_0x4afacb,_0x3e78a4,_0x4cdb0c,_0x1e4ab7,_0xd6dae9,_0xce478e,_0x3d6b8b,_0x31105c,_0x73f26b){const _0x11ce61=_0x2da18b;super(_0x5f2d4c,_0x19b096,_0x4afacb,[],_0x3e78a4,_0xce478e,_0x73f26b,_0x1e4ab7,_0xd6dae9),l(this,_0x11ce61(0x31a),_0x11ce61(0x455)),(this[_0x11ce61(0x272)]=_0x4cdb0c,this[_0x11ce61(0x356)]=_0x3d6b8b,this[_0x11ce61(0x32a)]=_0x31105c);}[_0x2da18b(0x150)](_0x3fcd35){const _0x2e846d=_0x2da18b,_0x5f49ac=this[_0x2e846d(0x272)]['createInstance'](X,this[_0x2e846d(0x1e5)],this[_0x2e846d(0x3f5)],this['_awaitingChangeset'],[_0x3fcd35],this[_0x2e846d(0x429)]);return _0x5f49ac[_0x2e846d(0x193)](),_0x5f49ac;}[_0x2da18b(0x386)](_0x506c63){const _0x3a873d=_0x2da18b;if(this[_0x3a873d(0x2c2)](_0x506c63))return this['_injector'][_0x3a873d(0x3cb)](k,this[_0x3a873d(0x1e5)],this[_0x3a873d(0x3f5)],this[_0x3a873d(0x288)],[],null,[_0x506c63],this[_0x3a873d(0x429)]);try{const _0x1dc998=this[_0x3a873d(0x32a)][_0x3a873d(0x1b2)]([_0x506c63],[this[_0x3a873d(0x288)]],!0x1);if(_0x51238a(_0x1dc998)){const {c1Prime:_0x166ac2,c2Prime:_0x3b2bf7}=_0x1dc998;this[_0x3a873d(0x493)](_0x166ac2[0x0]),_0x3b2bf7[0x0][_0x3a873d(0x3cd)]=this[_0x3a873d(0x17b)]();const _0x134bc8=this[_0x3a873d(0x272)]['createInstance'](Z,this[_0x3a873d(0x1e5)],this[_0x3a873d(0x3f5)],_0x3b2bf7[0x0],this[_0x3a873d(0x429)]);return _0x134bc8[_0x3a873d(0x193)](),_0x134bc8;}return this[_0x3a873d(0x397)](!0x1);}catch(_0x1fe72d){return this['_logService'][_0x3a873d(0x490)](_0x1fe72d),this[_0x3a873d(0x397)](!0x1);}}[_0x2da18b(0x1b0)](_0x4ff1d3){const _0x579fe4=_0x2da18b,_0x36c981=this[_0x579fe4(0x3b1)][_0x579fe4(0x29c)](this[_0x579fe4(0x1e5)]);if(_0x4ff1d3[_0x579fe4(0x14a)]<_0x36c981-0x1)return this;if(this['_checkMissing'](_0x4ff1d3))return this[_0x579fe4(0x272)][_0x579fe4(0x3cb)](k,this['unitID'],this['type'],null,[],this[_0x579fe4(0x288)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x1f549a=this['_injector'][_0x579fe4(0x3cb)](Se,this['unitID'],this[_0x579fe4(0x3f5)],this[_0x579fe4(0x429)]);return _0x1f549a['_updateLocalCache'](),_0x1f549a;}['onRemoteRej'](_0x6955b2){const _0x250358=_0x2da18b;return this[_0x250358(0x397)](!!(_0x6955b2!=null&&_0x6955b2['isPermissionRej']));}['toggleOffline'](){const _0x379d9b=_0x2da18b;return this[_0x379d9b(0x272)][_0x379d9b(0x3cb)](ee,this['unitID'],this[_0x379d9b(0x3f5)],this[_0x379d9b(0x288)],[],this['_handler']);}[_0x2da18b(0x21d)](){return this;}[_0x2da18b(0x1df)](){const _0x133276=_0x2da18b;this[_0x133276(0x429)][_0x133276(0x164)](this[_0x133276(0x288)]);}[_0x2da18b(0x397)](_0x16b2a3){const _0x5243d9=_0x2da18b;return this[_0x5243d9(0x272)]['createInstance'](Q,this[_0x5243d9(0x1e5)],this['type'],this['_awaitingChangeset'],[],this[_0x5243d9(0x429)],_0x16b2a3);}};Z=le([m(0x4,_0x24691e(_0x129c7a)),m(0x5,_0x24691e(_0x40a032)),m(0x6,_0x24691e(D)),m(0x7,_0x18280b),m(0x8,_0x16c619),m(0x9,_0x418a36),m(0xa,_0x37a9c2)],Z);let X=class extends _e{constructor(_0x45cde1,_0x512d34,_0x10715a,_0xf1d175,_0x55211d,_0x2d8894,_0x4dace2,_0xa97950,_0x1af48e,_0x546ce8,_0x1aac33,_0x283ce1){const _0x356bb4=_0x2da18b;super(_0x45cde1,_0x512d34,_0x10715a,_0xf1d175,_0x55211d,_0x1af48e,_0x283ce1,_0x4dace2,_0xa97950),l(this,'status',_0x356bb4(0x39b)),(this[_0x356bb4(0x272)]=_0x2d8894,this[_0x356bb4(0x356)]=_0x546ce8,this[_0x356bb4(0x32a)]=_0x1aac33);}[_0x2da18b(0x150)](_0x1287b7){const _0x1eabef=_0x2da18b;return this[_0x1eabef(0x191)][_0x1eabef(0x46c)](_0x1287b7),this;}[_0x2da18b(0x386)](_0x2ea2a1){const _0x20946d=_0x2da18b;if(this[_0x20946d(0x2c2)](_0x2ea2a1))return this['_injector'][_0x20946d(0x3cb)](k,this[_0x20946d(0x1e5)],this[_0x20946d(0x3f5)],this[_0x20946d(0x288)],this[_0x20946d(0x191)],null,[_0x2ea2a1],this[_0x20946d(0x429)]);try{const _0x2a9132=this[_0x20946d(0x32a)]['transformChangesets']([_0x2ea2a1],[this[_0x20946d(0x288)]],!0x1);if(_0x51238a(_0x2a9132)){const {c1Prime:_0x309ae2,c2Prime:_0x1f4d1a}=_0x2a9132,_0x3cb097=this[_0x20946d(0x32a)][_0x20946d(0x18b)](_0x309ae2[0x0],this[_0x20946d(0x191)]);if(_0x524343(_0x3cb097)){const {c1Prime:_0xb49bea,m2Prime:_0x3f660a}=_0x3cb097;return this[_0x20946d(0x493)](_0xb49bea),_0x1f4d1a[0x0][_0x20946d(0x3cd)]=this[_0x20946d(0x17b)](),this['_injector'][_0x20946d(0x3cb)](X,this[_0x20946d(0x1e5)],this[_0x20946d(0x3f5)],_0x1f4d1a[0x0],_0x3f660a,this[_0x20946d(0x429)]);}throw _0x3cb097['error'];}throw _0x2a9132[_0x20946d(0x490)];}catch(_0x50b884){return this[_0x20946d(0x356)][_0x20946d(0x490)](_0x50b884),this['_onConflict'](!0x1);}}[_0x2da18b(0x1b0)](_0x3f002a){const _0x3ca6dc=_0x2da18b;if(this[_0x3ca6dc(0x2c2)](_0x3f002a))return this[_0x3ca6dc(0x272)][_0x3ca6dc(0x3cb)](k,this[_0x3ca6dc(0x1e5)],this[_0x3ca6dc(0x3f5)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x3ca6dc(0x429)]);this[_0x3ca6dc(0x195)]();const _0x4f1b94=this[_0x3ca6dc(0x272)][_0x3ca6dc(0x3cb)](K,this[_0x3ca6dc(0x1e5)],this[_0x3ca6dc(0x3f5)],this[_0x3ca6dc(0x191)],this[_0x3ca6dc(0x429)]);return _0x4f1b94['_schedule'](),_0x4f1b94[_0x3ca6dc(0x193)](),_0x4f1b94;}[_0x2da18b(0x3d0)](_0x5efa6d){const _0xb26c11=_0x2da18b;return this['_onConflict'](!!(_0x5efa6d!=null&&_0x5efa6d[_0xb26c11(0x3e9)]));}[_0x2da18b(0x233)](){const _0x465399=_0x2da18b;return this['_injector'][_0x465399(0x3cb)](ee,this[_0x465399(0x1e5)],this[_0x465399(0x3f5)],this[_0x465399(0x288)],this[_0x465399(0x191)],this[_0x465399(0x429)]);}[_0x2da18b(0x21d)](){return this;}[_0x2da18b(0x1df)](){const _0x425bda=_0x2da18b;this['_handler'][_0x425bda(0x164)](this['_awaitingChangeset']);}['_onConflict'](_0xb2b4d2){const _0x175dbc=_0x2da18b;return this[_0x175dbc(0x272)][_0x175dbc(0x3cb)](Q,this['unitID'],this['type'],null,this[_0x175dbc(0x191)],this['_handler'],_0xb2b4d2);}};X=le([m(0x5,_0x24691e(_0x129c7a)),m(0x6,_0x24691e(_0x40a032)),m(0x7,_0x24691e(D)),m(0x8,_0x18280b),m(0x9,_0x16c619),m(0xa,_0x418a36),m(0xb,_0x37a9c2)],X);let Q=class extends _e{constructor(_0x25690b,_0x3a55d3,_0x40911c,_0x3d8619,_0x284f6b,_0x1b9d0c=!0x1,_0x10dca0,_0x42679e,_0x5df03e,_0x1cbc1d,_0xeb0f3c,_0x760c7,_0x3e2ac9){const _0x1a8980=_0x2da18b;super(_0x25690b,_0x3a55d3,_0x40911c,_0x3d8619,_0x284f6b,_0x42679e,_0x5df03e,_0xeb0f3c,_0x1cbc1d),l(this,_0x1a8980(0x31a),_0x1a8980(0x278)),(this[_0x1a8980(0x317)]=_0x1b9d0c,this['_permissionService']=_0x10dca0,this['_localeService']=_0x760c7,this['_notificationService']=_0x3e2ac9,this[_0x1a8980(0x13d)](),this[_0x1a8980(0x24d)](),this[_0x1a8980(0x260)]());}[_0x2da18b(0x150)](){return this;}[_0x2da18b(0x386)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x2da18b(0x233)](){return this;}['toggleOnline'](){return this;}[_0x2da18b(0x1df)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x3e80ab=_0x2da18b;this[_0x3e80ab(0x1e1)][_0x3e80ab(0x48c)](this[_0x3e80ab(0x1e5)],this[_0x3e80ab(0x3f5)],null,[]);}[_0x2da18b(0x13d)](){const _0x545669=_0x2da18b;this[_0x545669(0x317)]?this[_0x545669(0x2f4)][_0x545669(0x240)]({'title':this[_0x545669(0x2cb)]['t'](_0x545669(0x15d)),'content':this[_0x545669(0x2cb)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x545669(0x2f4)]['show']({'title':this[_0x545669(0x2cb)]['t']('conflict.title'),'content':this[_0x545669(0x2cb)]['t'](_0x545669(0x416)),'type':_0x545669(0x490),'duration':0x0});}['_disableEditing'](){const _0x1b0ef8=_0x2da18b;this[_0x1b0ef8(0x28d)][_0x1b0ef8(0x35b)](new _0x182d13(this[_0x1b0ef8(0x1e5)])['id'],!0x1);}};Q=le([m(0x6,_0x24691e(_0x1892f6)),m(0x7,_0x18280b),m(0x8,_0x37a9c2),m(0x9,_0x24691e(D)),m(0xa,_0x24691e(_0x40a032)),m(0xb,_0x24691e(_0x1695f3)),m(0xc,_0x42d964)],Q);let ee=class extends _e{constructor(_0x3f695d,_0x5a19c3,_0x106497,_0x53c672,_0x1d41c5,_0x4eed24,_0x4f852b,_0x32f426,_0x1645c5,_0x41bf16){const _0x26f3f5=_0x2da18b;super(_0x3f695d,_0x5a19c3,_0x106497,_0x53c672,_0x1d41c5,_0x1645c5,_0x41bf16,_0x4f852b,_0x32f426),l(this,_0x26f3f5(0x31a),_0x26f3f5(0x2c1)),this[_0x26f3f5(0x272)]=_0x4eed24;}[_0x2da18b(0x150)](_0x4674e1){const _0x4ac564=_0x2da18b;return this['_pendingMutations'][_0x4ac564(0x46c)](_0x4674e1),this[_0x4ac564(0x193)](),this;}['onRemoteChangeset'](_0x406cde){const _0x3a429f=_0x2da18b;throw new Error(_0x3a429f(0x381));}['onRemoteAck'](){const _0x2e3753=_0x2da18b;throw new Error(_0x2e3753(0x289));}['onRemoteRej'](){const _0x5d53c6=_0x2da18b;throw new Error(_0x5d53c6(0x420));}[_0x2da18b(0x233)](){return this;}[_0x2da18b(0x21d)](){const _0x506a74=_0x2da18b,{_injector:_0x3250d1,_pendingMutations:_0x200b16,_awaitingChangeset:_0x43449a,unitID:_0x200c47,_handler:_0x374934,type:_0x3c8fbe}=this,_0x5e5e37=Hs(_0x3250d1,_0x200c47,_0x3c8fbe,_0x43449a,_0x200b16,_0x374934);return _0x5e5e37 instanceof K?_0x5e5e37['_schedule']():(_0x5e5e37 instanceof X||_0x5e5e37 instanceof Z)&&_0x5e5e37[_0x506a74(0x1df)](),_0x5e5e37;}[_0x2da18b(0x1df)](){const _0x3a2819=_0x2da18b;throw new Error(_0x3a2819(0x412));}};ee=le([m(0x5,_0x24691e(_0x129c7a)),m(0x6,_0x24691e(_0x40a032)),m(0x7,_0x24691e(D)),m(0x8,_0x18280b),m(0x9,_0x37a9c2)],ee);let k=class extends _e{constructor(_0xb02afa,_0x2d749f,_0x24be60,_0xb109aa,_0x2e9de7,_0x40eb28,_0x5245fc,_0x5f277a,_0x29bc7d,_0x453524,_0xd733e3,_0x6e3077,_0x529fc7,_0x58a419){const _0x41f718=_0x2da18b;super(_0xb02afa,_0x2d749f,_0x24be60,_0xb109aa,_0x5245fc,_0x6e3077,_0x529fc7,_0x29bc7d,_0x453524),l(this,_0x41f718(0x31a),_0x41f718(0x24a)),(this[_0x41f718(0x2ae)]=_0x2e9de7,this[_0x41f718(0x34f)]=_0x40eb28,this[_0x41f718(0x272)]=_0x5f277a,this[_0x41f718(0x356)]=_0xd733e3,this['_transformService']=_0x58a419);}[_0x2da18b(0x417)](_0x5a19f2){const _0x32ecc0=_0x2da18b;try{const _0x15270e=[..._0x5a19f2,...this[_0x32ecc0(0x34f)]],_0x30b903=[this[_0x32ecc0(0x288)]||this[_0x32ecc0(0x2ae)]]['filter'](_0x282e44=>!!_0x282e44);let _0x48be2f,_0x1f9f52;if(_0x30b903[_0x32ecc0(0x1a8)]){const _0x4ead27=this[_0x32ecc0(0x32a)][_0x32ecc0(0x1b2)](_0x15270e,_0x30b903,!0x1);if(!_0x51238a(_0x4ead27))throw _0x4ead27[_0x32ecc0(0x490)];_0x48be2f=_0x4ead27['c1Prime'],_0x1f9f52=_0x4ead27['c2Prime'];}else _0x48be2f=_0x15270e,_0x1f9f52=[];let _0x155203=this[_0x32ecc0(0x191)];_0x48be2f[_0x32ecc0(0x137)](_0x168dec=>{const _0x9eee32=_0x32ecc0;let _0x1201ab;if(_0x155203[_0x9eee32(0x1a8)]){const _0x177c09=this['_transformService'][_0x9eee32(0x18b)](_0x168dec,_0x155203);if(!_0x524343(_0x177c09))throw _0x177c09['error'];_0x1201ab=_0x177c09[_0x9eee32(0x43e)],_0x155203=_0x177c09[_0x9eee32(0x22c)];}else _0x1201ab=_0x168dec;this[_0x9eee32(0x493)](_0x1201ab);}),this['_acknowledgedAwaitingChangeset']&&this[_0x32ecc0(0x195)](),this[_0x32ecc0(0x288)]&&_0x1f9f52[_0x32ecc0(0x1a8)]&&(_0x1f9f52[0x0][_0x32ecc0(0x3cd)]=this[_0x32ecc0(0x17b)]());let _0x42614e;if(this[_0x32ecc0(0x288)]&&_0x155203[_0x32ecc0(0x1a8)]!==0x0)_0x42614e=this[_0x32ecc0(0x272)][_0x32ecc0(0x3cb)](X,this[_0x32ecc0(0x1e5)],this[_0x32ecc0(0x3f5)],_0x1f9f52[0x0],_0x155203,this[_0x32ecc0(0x429)]);else{if(this['_awaitingChangeset']&&_0x155203[_0x32ecc0(0x1a8)]===0x0)_0x1f9f52[0x0]['baseRev']=this[_0x32ecc0(0x17b)](),_0x42614e=this[_0x32ecc0(0x272)]['createInstance'](Z,this[_0x32ecc0(0x1e5)],this['type'],_0x1f9f52[0x0],this[_0x32ecc0(0x429)]);else{if(_0x155203[_0x32ecc0(0x1a8)]!==0x0){const _0xbac9a=this[_0x32ecc0(0x272)][_0x32ecc0(0x3cb)](K,this[_0x32ecc0(0x1e5)],this['type'],_0x155203,this[_0x32ecc0(0x429)]);_0xbac9a['_schedule'](),_0x42614e=_0xbac9a;}else _0x42614e=this[_0x32ecc0(0x272)]['createInstance'](Se,this[_0x32ecc0(0x1e5)],this[_0x32ecc0(0x3f5)],this[_0x32ecc0(0x429)]);}}return _0x42614e[_0x32ecc0(0x193)](),_0x42614e;}catch(_0x5af49e){return this[_0x32ecc0(0x356)][_0x32ecc0(0x490)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x5af49e),this[_0x32ecc0(0x272)][_0x32ecc0(0x3cb)](Q,this[_0x32ecc0(0x1e5)],this[_0x32ecc0(0x3f5)],this[_0x32ecc0(0x288)],this[_0x32ecc0(0x191)],this[_0x32ecc0(0x429)],!0x1);}}[_0x2da18b(0x1df)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x2660c4){const _0x3fcec4=_0x2da18b;return this[_0x3fcec4(0x191)][_0x3fcec4(0x46c)](_0x2660c4),this;}[_0x2da18b(0x386)](_0x1f8729){const _0x48ae8d=_0x2da18b;return this['_queuedRemoteChangesets'][_0x48ae8d(0x46c)](_0x1f8729),this;}[_0x2da18b(0x1b0)](_0x9d6913){const _0x2f64ba=_0x2da18b;if(this[_0x2f64ba(0x288)])return this[_0x2f64ba(0x2ae)]=this[_0x2f64ba(0x288)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2da18b(0x3d0)](_0x44033a){const _0xce9078=_0x2da18b;return this[_0xce9078(0x397)](!!(_0x44033a!=null&&_0x44033a['isPermissionRej']));}[_0x2da18b(0x233)](){const _0x1dddf3=_0x2da18b;return this[_0x1dddf3(0x272)][_0x1dddf3(0x3cb)](ee,this['unitID'],this['type'],this[_0x1dddf3(0x288)],this[_0x1dddf3(0x191)],this[_0x1dddf3(0x429)]);}[_0x2da18b(0x21d)](){return this;}['_onConflict'](_0x4ad290){const _0x4353c2=_0x2da18b;return this[_0x4353c2(0x272)][_0x4353c2(0x3cb)](Q,this['unitID'],this[_0x4353c2(0x3f5)],this[_0x4353c2(0x288)],this[_0x4353c2(0x191)],this[_0x4353c2(0x429)],_0x4ad290);}};k=le([m(0x7,_0x24691e(_0x129c7a)),m(0x8,_0x24691e(_0x40a032)),m(0x9,_0x24691e(D)),m(0xa,_0x16c619),m(0xb,_0x18280b),m(0xc,_0x37a9c2),m(0xd,_0x418a36)],k);function Hs(_0x3d1239,_0x15d239,_0x16df40,_0x1bc4e5,_0x43404f,_0x496395){const _0x134847=_0x2da18b;return _0x1bc4e5&&_0x43404f[_0x134847(0x1a8)]?_0x3d1239[_0x134847(0x3cb)](X,_0x15d239,_0x16df40,_0x1bc4e5,_0x43404f,_0x496395):_0x1bc4e5?_0x3d1239[_0x134847(0x3cb)](Z,_0x15d239,_0x16df40,_0x1bc4e5,_0x496395):_0x43404f[_0x134847(0x1a8)]?_0x3d1239[_0x134847(0x3cb)](K,_0x15d239,_0x16df40,_0x43404f,_0x496395):_0x3d1239[_0x134847(0x3cb)](Se,_0x15d239,_0x16df40,_0x496395);}var mr=Object['defineProperty'],gr=Object['getOwnPropertyDescriptor'],Vt=(_0x33efe4,_0x4d1486,_0x19d39f,_0x1190de)=>{const _0x15eb3d=_0x2da18b;for(var _0x3e6772=_0x1190de>0x1?void 0x0:_0x1190de?gr(_0x4d1486,_0x19d39f):_0x4d1486,_0x28dd2e=_0x33efe4[_0x15eb3d(0x1a8)]-0x1,_0x19b9a7;_0x28dd2e>=0x0;_0x28dd2e--)(_0x19b9a7=_0x33efe4[_0x28dd2e])&&(_0x3e6772=(_0x1190de?_0x19b9a7(_0x4d1486,_0x19d39f,_0x3e6772):_0x19b9a7(_0x3e6772))||_0x3e6772);return _0x1190de&&_0x3e6772&&mr(_0x4d1486,_0x19d39f,_0x3e6772),_0x3e6772;},p=(_0xb446dd,_0x2921a0)=>(_0x5f4a31,_0x33aaed)=>_0x2921a0(_0x5f4a31,_0x33aaed,_0xb446dd);let Je=class extends _0x13b3a6{constructor(_0x1182a8,_0x232f13,_0x35ebf5,_0x1fd61b,_0x4ccaa0,_0x536ffc,_0x539e14,_0x3da82e,_0x123050,_0x4be3a4,_0x2c5381,_0x5ed7ee,_0x5005f3){const _0x4e179a=_0x2da18b;super(),l(this,_0x4e179a(0x438),new _0x295ce3(null)),l(this,_0x4e179a(0x16f),this[_0x4e179a(0x438)][_0x4e179a(0x344)]()),l(this,_0x4e179a(0x2fc)),l(this,_0x4e179a(0x42c),!0x1),l(this,'status$',this[_0x4e179a(0x16f)]['pipe'](_0x63f2b0(_0x38dfa2=>_0x38dfa2?_0x38dfa2[_0x4e179a(0x31a)]:w[_0x4e179a(0x2e9)]),_0x503b15(0x1))),l(this,_0x4e179a(0x148),!0x1),l(this,_0x4e179a(0x41d),[]),(this['unitID']=_0x1182a8,this[_0x4e179a(0x1d4)]=_0x232f13,this['_type']=_0x35ebf5,this[_0x4e179a(0x272)]=_0x1fd61b,this[_0x4e179a(0x1e1)]=_0x4ccaa0,this[_0x4e179a(0x142)]=_0x536ffc,this[_0x4e179a(0x2cb)]=_0x539e14,this['_revisionService']=_0x3da82e,this[_0x4e179a(0x356)]=_0x123050,this['_commandService']=_0x4be3a4,this[_0x4e179a(0x387)]=_0x2c5381,this['_permissionService']=_0x5ed7ee,this[_0x4e179a(0x19a)]=_0x5005f3);}get['state'](){const _0xeee63f=_0x2da18b;return this[_0xeee63f(0x2fc)];}async[_0x2da18b(0x266)](){const _0x4967e7=_0x2da18b;if(this['state'])throw new Error(_0x4967e7(0x3b6));await this['_init']();}['pauseCollaboration'](){const _0x1ece42=_0x2da18b;return this[_0x1ece42(0x42c)]=!0x0,_0xc09fc4(()=>{const _0x17260c=_0x1ece42;this[_0x17260c(0x42c)]=!0x1,this[_0x17260c(0x2d8)]();});}[_0x2da18b(0x26e)](_0x3cfae0){const _0x464fa1=_0x2da18b;this[_0x464fa1(0x2fc)]=_0x3cfae0,this[_0x464fa1(0x438)][_0x464fa1(0x33a)](_0x3cfae0);}async[_0x2da18b(0x1c5)](){const _0x535eb0=_0x2da18b;var _0x4c6282;this[_0x535eb0(0x26e)](await this[_0x535eb0(0x3ac)]()),this[_0x535eb0(0x19a)]&&((_0x4c6282=this['_singleActiveUnitService'])==null||_0x4c6282[_0x535eb0(0x38f)](this[_0x535eb0(0x1e5)]),this[_0x535eb0(0x206)](this[_0x535eb0(0x19a)][_0x535eb0(0x169)](this['unitID'])[_0x535eb0(0x146)](_0x543347=>{const _0x4b8589=_0x535eb0;this['_logService'][_0x4b8589(0x2e0)](_0x4b8589(0x34e),_0x4b8589(0x2a2),_0x543347),_0x543347===js[_0x4b8589(0x3f9)]?(this[_0x4b8589(0x387)][_0x4b8589(0x240)]({'content':this[_0x4b8589(0x2cb)]['t'](_0x4b8589(0x188)),'type':_0x35eeb1[_0x4b8589(0x243)]}),this[_0x4b8589(0x28d)]['updatePermissionPoint'](new _0x182d13(this['unitID'])['id'],!0x1)):this['_permissionService']['updatePermissionPoint'](new _0x182d13(this[_0x4b8589(0x1e5)])['id'],!0x0);})));let _0x5eb6d0=!0x1;return this['disposeWithMe'](this['session'][_0x535eb0(0x3fb)][_0x535eb0(0x146)](_0x270e0a=>{const _0x2f4498=_0x535eb0;_0x270e0a===G[_0x2f4498(0x39c)]?this[_0x2f4498(0x355)](_0x5eb6d0):_0x270e0a===G[_0x2f4498(0x2e9)]&&(_0x5eb6d0=!0x0,this[_0x2f4498(0x3ad)]());})),this[_0x535eb0(0x206)](this['session'][_0x535eb0(0x411)][_0x535eb0(0x146)](_0x4f22b7=>{const _0x393b4e=_0x535eb0;try{switch(_0x4f22b7[_0x393b4e(0x27d)]){case _0x128ecb[_0x393b4e(0x2e8)]:{this[_0x393b4e(0x3db)](_0x373326(_0x4f22b7[_0x393b4e(0x247)]));break;}case _0x128ecb['CHANGESET_ACK']:{this[_0x393b4e(0x410)](_0x4f22b7[_0x393b4e(0x247)]);break;}case _0x128ecb['CHANGESET_REJ']:{this[_0x393b4e(0x41c)]();break;}case _0x128ecb[_0x393b4e(0x450)]:{this[_0x393b4e(0x223)](_0x4f22b7[_0x393b4e(0x247)]['changesets'][_0x393b4e(0x2eb)](_0x2bf7ab=>_0x373326(_0x2bf7ab)));break;}case _0x128ecb[_0x393b4e(0x192)]:this[_0x393b4e(0x41c)]({'isPermissionRej':!0x0});}}catch(_0x48d3af){throw console['error'](_0x393b4e(0x37a),_0x48d3af),_0x48d3af;}})),this[_0x535eb0(0x2fc)];}['_unlockTransition'](){const _0x23fdd2=_0x2da18b;this[_0x23fdd2(0x148)]=!0x1;}[_0x2da18b(0x2f7)](){const _0x582ac1=_0x2da18b;if(this[_0x582ac1(0x148)])throw new Error(_0x582ac1(0x21c));this['_transitionLocked']=!0x0;}[_0x2da18b(0x2fe)](_0x40d0af){const _0x53c546=_0x2da18b;this['_lockTransition'](),this[_0x53c546(0x26e)](this[_0x53c546(0x2fc)][_0x53c546(0x150)](_0x40d0af)),this[_0x53c546(0x22f)]();}[_0x2da18b(0x3db)](_0x44ff85){const _0x55e457=_0x2da18b;if(!(_0x44ff85['revision']<=this['_revisionService'][_0x55e457(0x29c)](this['unitID']))){if(this[_0x55e457(0x42c)]){this['_remoteChangesetQueue'][_0x55e457(0x46c)](_0x44ff85);return;}this['_applyRemoteChangeset'](_0x44ff85);}}[_0x2da18b(0x2d8)](){const _0x5e7bfa=_0x2da18b;this['_remoteChangesetQueue'][_0x5e7bfa(0x137)](_0x8112c9=>this['_applyRemoteChangeset'](_0x8112c9)),this[_0x5e7bfa(0x41d)]=[];}[_0x2da18b(0x3ce)](_0x2d8a63){const _0x589496=_0x2da18b,_0x373c33=this['_compressMutationService']['interceptor'][_0x589496(0x427)](this[_0x589496(0x142)]['interceptor']['getInterceptPoints']()[_0x589496(0x436)])(_0x2d8a63[_0x589496(0x154)],null)||_0x2d8a63[_0x589496(0x154)],_0x39769e={..._0x2d8a63,'mutations':_0x373c33};this[_0x589496(0x2f7)](),this[_0x589496(0x26e)](this[_0x589496(0x2fc)]['onRemoteChangeset'](_0x39769e)),this[_0x589496(0x22f)]();}[_0x2da18b(0x410)](_0x119d33){const _0x2f95f2=_0x2da18b;this['_lockTransition'](),this[_0x2f95f2(0x26e)](this[_0x2f95f2(0x2fc)]['onRemoteAck'](_0x119d33)),this['_unlockTransition']();}['_onRemoteRejected'](_0x40e444){const _0x572cef=_0x2da18b;this[_0x572cef(0x2f7)](),this[_0x572cef(0x26e)](this[_0x572cef(0x2fc)]['onRemoteRej'](_0x40e444)),this['_unlockTransition']();}[_0x2da18b(0x223)](_0x50c4d9){const _0x2d34d4=_0x2da18b;if(!(this['_state']instanceof k))throw new TypeError(_0x2d34d4(0x419));const _0x2df356=_0x50c4d9['map'](_0x299dd6=>{const _0x38599a=_0x2d34d4,_0x25895e=this[_0x38599a(0x142)][_0x38599a(0x23c)]['fetchThroughInterceptors'](this[_0x38599a(0x142)]['interceptor'][_0x38599a(0x40c)]()[_0x38599a(0x436)])(_0x299dd6[_0x38599a(0x154)],null)||_0x299dd6[_0x38599a(0x154)];return{..._0x299dd6,'mutations':_0x25895e};});this['_lockTransition'](),this['_updateState'](this[_0x2d34d4(0x2fc)][_0x2d34d4(0x417)](_0x2df356)),this[_0x2d34d4(0x22f)]();}[_0x2da18b(0x3ad)](){const _0x2f4544=_0x2da18b;this[_0x2f4544(0x2f7)](),this[_0x2f4544(0x26e)](this[_0x2f4544(0x2fc)][_0x2f4544(0x233)]()),this[_0x2f4544(0x22f)]();}[_0x2da18b(0x355)](_0x91d647=!0x1){const _0x1e6cba=_0x2da18b;this[_0x1e6cba(0x2f7)](),this['_updateState'](this[_0x1e6cba(0x2fc)][_0x1e6cba(0x21d)]()),this['_unlockTransition']();const _0x322dec=this[_0x1e6cba(0x2fc)];_0x91d647&&_0x322dec instanceof Se&&(this[_0x1e6cba(0x2f7)](),this['_updateState'](_0x322dec[_0x1e6cba(0x3e3)]()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x3899bb=>{const _0x24407f=_0x44b4;this['session'][_0x24407f(0x3fb)]['pipe'](_0x409ffd(0x1))['subscribe'](async _0x15de9b=>{const _0x52f21b=_0x24407f;_0x3899bb(await this['_createInitialStateImpl'](_0x15de9b===G[_0x52f21b(0x39c)]));});});}[_0x2da18b(0x1f3)](){const _0x115384=this['unitID'];return{'onStateChange':(_0x3e82b3,_0x186bce)=>{const _0x1003c5=_0x44b4;if(_0x3e82b3!==this[_0x1003c5(0x2fc)])throw new Error(_0x1003c5(0x38b)+_0x3e82b3[_0x1003c5(0x31a)]+_0x1003c5(0x171)+_0x186bce['status']+_0x1003c5(0x32d)+this[_0x1003c5(0x2fc)][_0x1003c5(0x31a)]);this['_updateState'](_0x186bce);},'onSendChangeset':_0x2f6f76=>{const _0x57c2cd=_0x44b4,_0xd1ebad={'eventID':_0x128ecb['SUBMIT_CHANGESET'],'data':{'unitID':_0x2f6f76[_0x57c2cd(0x1e5)],'unitType':this[_0x57c2cd(0x214)],'changeset':_0x2f6f76,'memberID':this['session']['getMemberID']()}};this[_0x57c2cd(0x1d4)][_0x57c2cd(0x1ad)](_0xd1ebad,this[_0x57c2cd(0x1e5)]);},'onMissingChangesets':({from:_0x44157c,to:_0x34bf36})=>{const _0x2d8a9f=_0x44b4;this[_0x2d8a9f(0x356)][_0x2d8a9f(0x2e0)]('[CollaborationEntity]',_0x2d8a9f(0x3e0)+_0x44157c+_0x2d8a9f(0x237)+_0x34bf36);const _0xa1caee={'eventID':_0x128ecb[_0x2d8a9f(0x37c)],'data':{'unitID':_0x115384,'unitType':this[_0x2d8a9f(0x214)],'from':_0x44157c,'to':_0x34bf36}};this[_0x2d8a9f(0x1d4)][_0x2d8a9f(0x1ad)](_0xa1caee,this[_0x2d8a9f(0x1e5)]);}};}async['_createInitialStateImpl'](_0x81670d){const _0x1b357c=_0x2da18b;var _0x37b2c3,_0x1a9c52;const _0x104ab1=await this[_0x1b357c(0x1e1)][_0x1b357c(0x1f0)](this['unitID']),_0x17b5a0=(_0x37b2c3=_0x104ab1==null?void 0x0:_0x104ab1['mutations'])!=null?_0x37b2c3:[],_0x253aa9=(_0x1a9c52=_0x104ab1==null?void 0x0:_0x104ab1[_0x1b357c(0x279)])!=null?_0x1a9c52:null,_0x440060=this[_0x1b357c(0x1e5)];try{this[_0x1b357c(0x25b)](_0x253aa9,_0x17b5a0);}catch(_0x4e12aa){this[_0x1b357c(0x356)]['error'](_0x4e12aa);}const _0x3316e7=this[_0x1b357c(0x1f3)]();if(_0x81670d){const _0x2afdf1=Hs(this[_0x1b357c(0x272)],_0x440060,this[_0x1b357c(0x214)],_0x253aa9,_0x17b5a0,_0x3316e7);return _0x2afdf1 instanceof K?_0x2afdf1[_0x1b357c(0x470)]():(_0x2afdf1 instanceof X||_0x2afdf1 instanceof Z)&&_0x2afdf1[_0x1b357c(0x1df)](),_0x2afdf1;}return this['_injector'][_0x1b357c(0x3cb)](ee,_0x440060,this[_0x1b357c(0x214)],_0x253aa9,_0x17b5a0,_0x3316e7);}[_0x2da18b(0x25b)](_0x32e703,_0xff780e){const _0x67dd6c=_0x2da18b;var _0x3cc63b,_0x3b7dc5;const _0x4a9379=this[_0x67dd6c(0x142)]['interceptor']['fetchThroughInterceptors'](this[_0x67dd6c(0x142)][_0x67dd6c(0x23c)][_0x67dd6c(0x40c)]()[_0x67dd6c(0x436)]);(_0x3cc63b=_0x4a9379((_0x32e703==null?void 0x0:_0x32e703[_0x67dd6c(0x154)])||[],null))==null||_0x3cc63b[_0x67dd6c(0x137)](_0x244161=>this[_0x67dd6c(0x457)][_0x67dd6c(0x22a)](_0x244161['id'],_0x244161['params'])),(_0x3b7dc5=_0x4a9379(_0xff780e||[],null))==null||_0x3b7dc5[_0x67dd6c(0x137)](_0x170ae4=>this[_0x67dd6c(0x457)]['executeCommand'](_0x170ae4['id'],_0x170ae4[_0x67dd6c(0x338)]));}};Je=Vt([p(0x3,_0x24691e(_0x129c7a)),p(0x4,_0x24691e(D)),p(0x5,_0x24691e(_0x463628)),p(0x6,_0x24691e(_0x1695f3)),p(0x7,_0x24691e(_0x40a032)),p(0x8,_0x16c619),p(0x9,_0x18280b),p(0xa,_0x349d24),p(0xb,_0x1892f6),p(0xc,_0x1be607(tt))],Je);let bt=class extends Je{constructor(_0x49cfd8,_0x5f023d,_0x5844d2,_0xff4131,_0x482c24,_0x22563d,_0xe49df2,_0x480891,_0x4ad5fe,_0x3b3e86,_0x1508a2,_0x53b100,_0xa4ea82,_0x434776,_0x119e3a,_0x7e855f,_0x3a51b2){const _0x57e407=_0x2da18b;super(_0x49cfd8,_0x5844d2,_0x5f023d,_0xff4131,_0x482c24,_0x22563d,_0xe49df2,_0x480891,_0xa4ea82,_0x434776,_0x119e3a,_0x7e855f,_0x3a51b2),this[_0x57e407(0x1e5)]=_0x49cfd8,this['type']=_0x5f023d,this[_0x57e407(0x36b)]=_0x4ad5fe,this[_0x57e407(0x199)]=_0x3b3e86,this[_0x57e407(0x423)]=_0x1508a2,this[_0x57e407(0x30a)]=_0x53b100;}[_0x2da18b(0x1f3)](){const _0x550ad3=_0x2da18b,_0x371cca=super[_0x550ad3(0x1f3)]();return _0x371cca[_0x550ad3(0x2a6)]=_0x6646e2=>this[_0x550ad3(0x199)][_0x550ad3(0x2da)](_0x6646e2),_0x371cca['onTransformSelections']=_0x4dfd7b=>this[_0x550ad3(0x423)][_0x550ad3(0x430)](_0x4dfd7b),_0x371cca[_0x550ad3(0x296)]=_0x23548d=>this[_0x550ad3(0x30a)][_0x550ad3(0x472)](_0x23548d),_0x371cca[_0x550ad3(0x21b)]=_0x36101c=>this[_0x550ad3(0x199)][_0x550ad3(0x2ca)](_0x36101c),_0x371cca;}async[_0x2da18b(0x1c5)](){const _0x40459f=_0x2da18b,_0x1a93f1=await super['_init']();return this[_0x40459f(0x206)](this[_0x40459f(0x457)][_0x40459f(0x3a9)]((_0x1cfef2,_0x4e3860)=>{const _0x2d9f7b=_0x40459f;if(_0x1cfef2[_0x2d9f7b(0x3f5)]!==_0x109a6f[_0x2d9f7b(0x13e)]||_0x4e3860!=null&&_0x4e3860['fromCollab']||_0x4e3860!=null&&_0x4e3860[_0x2d9f7b(0x40f)])return;const _0x322cff=_0x1cfef2[_0x2d9f7b(0x338)];if((_0x322cff==null?void 0x0:_0x322cff['unitId'])!==this['unitID'])return;let _0x5cb6b4=_0x1cfef2;if(_0x5cb6b4['id']===_0x11f4dd['id']){const _0x5e4efc=_0x5cb6b4[_0x2d9f7b(0x338)];_0x5cb6b4={'id':_0x11f4dd['id'],'type':_0x109a6f[_0x2d9f7b(0x13e)],'params':{'unitId':_0x5e4efc[_0x2d9f7b(0x380)],'actions':_0x5e4efc[_0x2d9f7b(0x2d5)],'textRanges':null}};}const _0x3a491f=this[_0x2d9f7b(0x142)][_0x2d9f7b(0x23c)][_0x2d9f7b(0x427)](this['_compressMutationService'][_0x2d9f7b(0x23c)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x5cb6b4],null)||[_0x5cb6b4];this[_0x2d9f7b(0x2fe)](_0x3a491f[0x0]);})),_0x1a93f1;}};bt=Vt([p(0x3,_0x24691e(_0x129c7a)),p(0x4,_0x24691e(D)),p(0x5,_0x24691e(_0x463628)),p(0x6,_0x24691e(_0x1695f3)),p(0x7,_0x24691e(_0x40a032)),p(0x8,_0x24691e(_0x417486)),p(0x9,_0x24691e(Ye)),p(0xa,_0x24691e(Xe)),p(0xb,_0x24691e(Bt)),p(0xc,_0x16c619),p(0xd,_0x18280b),p(0xe,_0x349d24),p(0xf,_0x1892f6),p(0x10,_0x1be607(tt))],bt);let Tt=class extends Je{constructor(_0x3aad8d,_0x547fa0,_0x1b025a,_0xb058e,_0x1de29c,_0x5dbf28,_0x147589,_0x2a791c,_0x43112a,_0x42d2f2,_0x53c2b2,_0x1d2abd,_0x1c6862,_0x3b6ba0){const _0x1ce2bf=_0x2da18b;super(_0x3aad8d,_0x1b025a,_0x547fa0,_0xb058e,_0x1de29c,_0x5dbf28,_0x147589,_0x2a791c,_0x42d2f2,_0x53c2b2,_0x1d2abd,_0x1c6862,_0x3b6ba0),this[_0x1ce2bf(0x1e5)]=_0x3aad8d,this[_0x1ce2bf(0x3f5)]=_0x547fa0,this[_0x1ce2bf(0x39d)]=_0x43112a;}[_0x2da18b(0x1f3)](){const _0x218fff=_0x2da18b,_0x6e3ab7=super[_0x218fff(0x1f3)]();return _0x6e3ab7[_0x218fff(0x320)]=_0x54a79b=>this[_0x218fff(0x39d)]['transformSelections'](_0x54a79b),_0x6e3ab7;}async['_init'](){const _0xff54fb=_0x2da18b,_0x2c2d9e=await super[_0xff54fb(0x1c5)]();return this['disposeWithMe'](this['_commandService'][_0xff54fb(0x3a9)]((_0x206603,_0x1c2218)=>{const _0x2f13ec=_0xff54fb;if(_0x206603[_0x2f13ec(0x3f5)]!==_0x109a6f['MUTATION']||_0x1c2218!=null&&_0x1c2218['fromCollab']||_0x1c2218!=null&&_0x1c2218['onlyLocal'])return;const _0x1106ff=_0x206603['params'];if((_0x1106ff==null?void 0x0:_0x1106ff[_0x2f13ec(0x380)])!==this[_0x2f13ec(0x1e5)])return;const _0x967f58=_0x206603,_0x537682=this[_0x2f13ec(0x142)]['interceptor'][_0x2f13ec(0x427)](this['_compressMutationService'][_0x2f13ec(0x23c)][_0x2f13ec(0x40c)]()[_0x2f13ec(0x330)])([_0x967f58],null)||[_0x967f58];this[_0x2f13ec(0x2fe)](_0x537682[0x0]);})),_0x2c2d9e;}};Tt=Vt([p(0x3,_0x24691e(_0x129c7a)),p(0x4,_0x24691e(D)),p(0x5,_0x24691e(_0x463628)),p(0x6,_0x24691e(_0x1695f3)),p(0x7,_0x24691e(_0x40a032)),p(0x8,_0x24691e(Ke)),p(0x9,_0x16c619),p(0xa,_0x18280b),p(0xb,_0x349d24),p(0xc,_0x1892f6),p(0xd,_0x1be607(tt))],Tt);var Sr=Object[_0x2da18b(0x151)],pr=Object['getOwnPropertyDescriptor'],vr=(_0x568cb8,_0x53e91d,_0x142048,_0xb4b90b)=>{for(var _0x4b1354=_0xb4b90b>0x1?void 0x0:_0xb4b90b?pr(_0x53e91d,_0x142048):_0x53e91d,_0x255c03=_0x568cb8['length']-0x1,_0x2934e5;_0x255c03>=0x0;_0x255c03--)(_0x2934e5=_0x568cb8[_0x255c03])&&(_0x4b1354=(_0xb4b90b?_0x2934e5(_0x53e91d,_0x142048,_0x4b1354):_0x2934e5(_0x4b1354))||_0x4b1354);return _0xb4b90b&&_0x4b1354&&Sr(_0x53e91d,_0x142048,_0x4b1354),_0x4b1354;},lt=(_0x4002f1,_0x351468)=>(_0x191c58,_0x562d7a)=>_0x351468(_0x191c58,_0x562d7a,_0x4002f1);let Ae=class extends _0x13b3a6{constructor(_0x24ccbd,_0x2aa993,_0x4f467f){const _0x23be3c=_0x2da18b;super(),l(this,_0x23be3c(0x3d9),new Map()),l(this,_0x23be3c(0x41e),new _0x526cd2()),(this['_injector']=_0x24ccbd,this['_collabSessionService']=_0x2aa993,this[_0x23be3c(0x406)]=_0x4f467f,this[_0x23be3c(0x1c5)]());}['dispose'](){const _0x46b866=_0x2da18b;super[_0x46b866(0x18e)](),this[_0x46b866(0x3d9)][_0x46b866(0x137)](_0xfacb13=>_0xfacb13[_0x46b866(0x18e)]()),this['_entities']['clear']();}[_0x2da18b(0x45f)](_0x390703){const _0x14f1ec=_0x2da18b;var _0x345ead;return(_0x345ead=this['_entities'][_0x14f1ec(0x2dd)](_0x390703))!=null?_0x345ead:null;}[_0x2da18b(0x1f4)](_0x43cbeb){const _0x2ca4b7=_0x2da18b,_0x47b6ee=this[_0x2ca4b7(0x45f)](_0x43cbeb);return _0x47b6ee?_0x2576f8(_0x47b6ee):this['_entityInit$'][_0x2ca4b7(0x29b)](_0x333799(_0xcd5733=>_0xcd5733[_0x2ca4b7(0x1e5)]===_0x43cbeb));}[_0x2da18b(0x1c5)](){const _0x3af048=_0x2da18b;this[_0x3af048(0x406)][_0x3af048(0x26c)](_0x43baa3[_0x3af048(0x2d4)])[_0x3af048(0x29b)](_0x1cea38(this[_0x3af048(0x3ab)]),_0x18a894(0x10))[_0x3af048(0x146)](async _0x520972=>{const _0x4c74ca=_0x3af048,_0x29fb91=_0x520972['getUnitId'](),_0x31fdaf=await this[_0x4c74ca(0x2b6)](_0x29fb91,H[_0x4c74ca(0x2d4)]);this[_0x4c74ca(0x3d9)][_0x4c74ca(0x276)](_0x29fb91,_0x31fdaf);}),this[_0x3af048(0x406)][_0x3af048(0x26c)](_0x43baa3['UNIVER_DOC'])[_0x3af048(0x29b)](_0x1cea38(this['dispose$']),_0x18a894(0x10))['pipe'](_0x333799(_0x144f01=>!_0x144f01[_0x3af048(0x3d4)]()['startsWith']('__')))[_0x3af048(0x146)](async _0x19f4e1=>{const _0x176c57=_0x3af048,_0x4adf85=_0x19f4e1[_0x176c57(0x3d4)](),_0x2c7cc6=await this[_0x176c57(0x2b6)](_0x4adf85,H['UNIVER_DOC']);this[_0x176c57(0x3d9)]['set'](_0x4adf85,_0x2c7cc6);}),_0x5799ee(this['_univerInstanceService'][_0x3af048(0x253)](_0x43baa3[_0x3af048(0x2d4)]),this[_0x3af048(0x406)][_0x3af048(0x253)](_0x43baa3[_0x3af048(0x37b)]))['pipe'](_0x1cea38(this[_0x3af048(0x3ab)]))[_0x3af048(0x146)](_0xa41602=>{const _0x4773e5=_0x3af048,_0x31a0d6=_0xa41602['getUnitId'](),_0x473c23=this[_0x4773e5(0x3d9)]['get'](_0x31a0d6);_0x473c23&&(_0x473c23[_0x4773e5(0x18e)](),this[_0x4773e5(0x3d9)][_0x4773e5(0x3b7)](_0x31a0d6));});}async['_startCollaboration'](_0x40f3d3,_0x3a143b){const _0x3c4d6f=_0x2da18b,_0x2feed6=await this[_0x3c4d6f(0x235)][_0x3c4d6f(0x19f)](_0x40f3d3),_0x55a9ba=this[_0x3c4d6f(0x272)]['createInstance'](this[_0x3c4d6f(0x1f2)](_0x3a143b),_0x40f3d3,_0x3a143b,_0x2feed6);return await _0x55a9ba[_0x3c4d6f(0x266)](),this[_0x3c4d6f(0x41e)][_0x3c4d6f(0x33a)](_0x55a9ba),_0x55a9ba;}['_getCtorByUniverType'](_0x4cf8c1){const _0x435499=_0x2da18b;switch(_0x4cf8c1){case H[_0x435499(0x37b)]:return bt;case H[_0x435499(0x2d4)]:return Tt;default:throw new Error(_0x435499(0x350)+_0x4cf8c1);}}};Ae=vr([lt(0x0,_0x24691e(_0x129c7a)),lt(0x1,_0x24691e(ce)),lt(0x2,_0x4af863)],Ae);const _s=[_0x2da18b(0x1a9),_0x2da18b(0x38e),'verdancy600',_0x2da18b(0x304),_0x2da18b(0x363),_0x2da18b(0x298)];function _0x10c1(){const _0x16f173=['&to=','SNAPSHOT_INVALID_SNAPSHOT','TOO_MANY_REQUESTS','_transformIMECache','/universer-api/oidc/authpage','idSuffix','_clearScheduledTask','getCurrentSelections','_collabCursorController','getSkeleton','current','HELLO','_listenToOfflineEvent','_updateCollabCursors','setInterval','getItem','/allowed','registerRenderModule','createInstance','transformStack\x20failed!','baseRev','_applyRemoteChangeset','objectType','onRemoteRej','getViewport','0\x200\x2017\x2016','setShapeProps','getUnitId','icon','_stopTelemetryCollaborationNewChangeset','fillStyle','cursorInfo','_entities','Undefined','_onRemoteChangeset','toRgbString','focused$','_themeService','{fileID}','fetching\x20missing\x20changesets\x20from\x20','/object/','url(#off-line-single_clip0_910_343)','fetchMiss','confirm','APPLY_NON_SEQUENTIAL_REVISION','getImageSourceCache','_updateURLWithCurrentState','cmd','isPermissionRej','417qAFBuv','_hideTimer','ERROR_IMAGE_TYPE','univer-online-status-icon','fillText','_removeClearOtherTimer','_snapshotServerService','_hovered','onlineStatusIcon','_onConnectionFailed','setWaitCount','type','apply','_docSkeletonManagerService','_hover','OTHER_CLIENTS_EDITING','_cursor','sessionStatus$','_transformStack','complete','getCellPositionByOffset','getRenderById','_getDownloadEndpointURL','univer-pro.collaboration-client.single-active-unit-service','/resources','setParam','image/gif','_unitID','_univerInstanceService','objects','NOT_COLLAB','_anchor','LICENSE_MAX_UNITS_EXCEEDED','_colorAssignService','getInterceptPoints','lineTo','UNKNOWN_CODE','onlyLocal','_onRemoteACK','event$','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/unit/','_clearCollaborationTimeoutTimer','490988pqZuOk','conflict.content','onMissedChangesetFetched','engine','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','UNIVER_SLIDE','_sendHeartbeatTimer','_onRemoteRejected','_remoteChangesetQueue','_entityInit$','post','[OfflineState]:\x20received\x20rejection.','includes','withCredentials','_docTransformSelectionsService','_decreaseWaiting','collab-rect-range-','LICENSE_EXPORT_SIZE_EXCEEDED','fetchThroughInterceptors','setItem','_handler','_joinRoom','append','_collaborationPaused','duration','_shouldReportTelemetry','DeleteRangeMoveLeftCommandId','transformSelections','_scheduleTimestamp','_listenToOnlineEvent','_colorIndex','endRow','AWAITING','COMPRESS_MUTATION_APPLY','INGEST','_state$','_sendHeartbeat','bottom','_lastPointer','max','collabSubmitChangesetUrl','c1Prime','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_transformUndoRedoStack','onStarting','_handleHeartbeatEvent','resourceIDs','_initStatusListener','registerRefRange','registerOnClose','_socket$','drawWith','telemetry\x20info\x20is\x20not\x20initialized','isEditing','_socketMessageSubscription','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','urlChange$','roomMembers','now','PSEUDO_FETCH_MISSING_RESULT','HttpExport','uploadFileServerUrl','_cursorInfo$','storage','awaiting','_unitStatus','_commandService','getCurrentUser','/rev/','image/jpeg','UPDATE_PERMISSION_OBJ','name','onlineStatus','listCollaborators','getCollabEntity','transformUndoRedo','getUnhiddenWorksheets','_scheduleClearOtherTimer','initWorkbookPermissionChange','unsubscribe','getMergeData','assignAColorForMemberID','fetchMissingChangesets','joinRsp','onload','SUBMIT_CHANGESET','number','push','IDLE','off-line-single_clip0_910_343','fill','_schedule','_event$','syncEditingCollabCursor','_undoRedoService','list','_ws','stopTime','updateCursorEvent','setCurrentUser','getMember','children','_id','registerHTTPInterceptor','univer-pro.collaboration-client-socket-service','_setupBeforeClosingHandler','ACTIVE_UNIT_EVENT_CHANNEL','_onUserJoin','_saveTaskMap','_removeCollabCursors','none','then','originalMeta','src','getActiveRange','session.room-full','NOT_FOUND','FAIL','hasOwnProperty','updateOfflineData','335BVSPNr','NO_OTHER_CLIENTS_EDITING','YUUMI_URL_COL_OUT_OF_RANGE','error','_selfUnitIDs','visibilitychange','_executeRemoteChangeset','x-univer-host','ranges','_getSheetObject','LICENSE_IMPORT_SIZE_EXCEEDED','moveTo','_memberService','_initCommandExecutedListener','clearTimeout','split','_getSnapshotAPIPrefix','replace','forEach','restore','_waitCount','/block/','1661056jchtRG','_session','_showConflictNotification','MUTATION','setUndoRedoMutationParamsCache','/-/object/list','has','_compressMutationService','collabStatus.notCollab','addEventListener','univer-online','subscribe','loadSheet','_transitionLocked','LIVESHARE_NEW_HOST','revision','every','_onCursorUpdate','_labelPosition','PERMISSION_DENIED','RemoveColCommandId','appendMutation','defineProperty','_document','className','mutations','_status$','slice','unknown','_clearUndo','/universer-api/snapshot/','session.will-retry','CONNECTOR_DATA_TOO_LARGE','_updateStatus','permission.title','_clearRedo','Error','_refreshCollabCursors','_tryReconnect','JOINING','onPointerMove$','onSendChangeset','reconnect','/object','_config','connection\x20error','getUnitStatus$','UUID','registerBeforeClose','DEFAULT_FILE_NAME','doc.mutation.rich-text-editing','_redoStacks','state$','_initMergeInterceptor','\x0aAfter:\x20','sendChangesetTimeout','retryConnectingInterval','_unitOnClients','create','_initRequestHeader','subunit','UNAUTHENTICATED','_onCursorDelete','all','_getCurrentRevision','_removeRoom','shouldCloseConn','_sessions','_getUndoStack','onPointerEnter$','getImage','incrementRevOfUnit','color','clearInterval','[CollaborationState]:\x20apply\x20error!','getParam','getActiveSheet','collaboration.single-unit.warning','_socketReady','subUnitId','transformMutationsWithChangeset','PENDING','_clearTimeoutTimer','dispose','[PendingState]:\x20unhandled\x20univer\x20type:\x20','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_pendingMutations','PERMISSION_REJ','_updateLocalCache','error$','_incrementRevisionNumber','on-line-single_clip0_910_349','_name','20660gyzauQ','_docTransformIMECacheService','_singleActiveUnitService','with','_handleHover','colorChannel1','call','requireSession','APPLY_REVISION_CONFILICT','reduce','_registerDependencies','_getRedoStack','exhaustSavingTask','UNKNOWN_CMD','beginPath','result','length','purple300','_setupSubUnitSync','csRejEvent','3451653tRVvGu','send','addObjects','_updateLocalCursor','onRemoteAck','_retryCount','transformChangesets','_commentService','encode','SEND_CHANGESET_TIMEOUT','setConfig','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_onUserLeave','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','prototype','getConfig','liveShareNewHost','INTERNAL_ERROR','#FFF','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','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','_initUnitPermissionChange','extend','CHANGESET_ACK','_init','ERROR_EXCEED_SIZE','putCollaborators','target','_handleJoinEvent','getCurrentUnitForType','translate(.97)','_getSendChangesetTimeout','USERS_ENTER','SHOULD_CLOSE_CONN','_initResize','assign','path','OnLineSingle','min','session','_getSignURL','_syncEditingCollabCursorService','batchAllowed','/universer-api/stream/file/upload','deepClone','key','_members','_initModules','defIds','off-line-single','resend','_getUploadFileURL','_localCacheService','_scene','&source=','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','unitID','_onConnectionOpen','snapshot','/collaborator','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','...','open$','_substituteRedoStack','_clearHeartbeatTimer','setTimeout','_anchorDot','loadOfflineData','collab-client.tooltip.reconnect','_getCtorByUniverType','_createHandler','getCollabEntity$','_startSheetCollabCursor','YUUMI_RATE_OVER_LIMIT','session.collaboration-timeout','isArray','collaMsg','_send','roomMembers$','currentSkeleton$','_refRangeService','[CollaborationSession]','currentTheme$','UnitSnapshot','_change$','_submitChangeset','getRelativeToViewportCoord','loginUrlKey','_configService','disposeWithMe','onMouseMove','hidden','_uiPartsService','resize','collaboration.closeRoom','/fetchmissing?from=','_candidateSocket','encodeURIComponent','saveSheetBlock','_collabCursorState$','61224gPqOTb','_localStorageService','collabStatus.syncing','_type','_collaborationTimeoutTimer','_shapes','onTransformChange$','responseType','updateCollaborator','subscribeEvent','onTransformRemoteChangesetByIMECache','[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.','toggleOnline','_startTelemetryCollaborationNewChangeset','_cursorShapes','COMMENT_UPDATE','_substituteUndoStack','loadDoc','_onFetchMissResult','concat','displayName','M0\x200H16V16H0z','_disabled','ALREADY_EXISTS','getOffsetConfig','executeCommand','UNIVER_UNKNOWN','m2Prime','currentColor','findNodePositionByCharIndex','_unlockTransition','_http','_instanceService','77DYdpzN','toggleOffline','collab-text-anchor-','_collabSessionService','override','\x20to\x20','_drawRectRange','INVALID_ARGUMENT','getResourcesRequest','sheetID','interceptor','getMemberID','url(#on-line-single_clip0_910_349)','COMPLETION_FINISHED','show','skeleton','[CollaborationUndoRedoService]','Warning','_collaborationSessionService','getRangePointData','url(#$1','data','createSocket','_handleEvent','fetch_missing','_beforeCloseService','_transformRemoteChangesetByIMECache','_clearLocalCache','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_replaceFileID','url','font','sheets','getTypeOfUnitDisposed$','AUTHZ_URL_KEY','cursorInfo$','some','_onMessage','SYNCED','getUniverSheetInstance','online','_replayCachedMutations','leaveEvent','getUnitOnRev','object','whenReady','_disableEditing','_tryEnsureSocket','CHANGESET_REVISION_CONFILICT','FETCH_MISS','LOCAL_CACHE_INTERVAL','transformMutation','init','routeKey','_getAPIPrefix','[SyncedState]:\x20received\x20acknowledgement.','put','11zjGdbU','getTypeOfUnitAdded$','_sendingTimer','_updateState','save','RECV','status$','_injector','infoRsp','defs','function','set','column','conflict','awaitingChangeset','localeService','YUUMI_SUBSCRIPTION_NOT_FOUND','collaboration_new_changeset','eventID','measureText','roomInfos','toString','collaboratorID','_collaborationController','saveSnapshot','entries','getUnit','hide','synced','_awaitingChangeset','[OfflineState]:\x20received\x20acknowledgement.','_commentUpdate$','closeSession','m1Prime','_permissionService','_drawTextRange','_startDocCollabCursor','svg','MoveRangeCommandId','ws://127.0.0.1:8000/universer-api/comb/connect','enableLocalCache','VIEW_MAIN','newValue','onSyncEditingCollabCursor','evenodd','gold400','OffLineSingle','attrs','pipe','getCurrentRevOfUnit','_getScale','FileId','collaborators','liveShareOperation','collabStatus.synced','editing\x20status\x20changed\x20to','getFocusedUnit','_onJoinRoomEvent','arc','onTransformIME','SUCCUSS','_eventUnsubscribe','_telemetryInfo','\x20-\x20','string','SNAPSHOT_HAS_BEEN_REMOVED','row','_acknowledgedAwaitingChangeset','saveChangeset','selection','_cursors','_roomMembers$','_socket','HEARTBEAT_TIMEOUT','registerComponent','_startCollaboration','_sessionStatus$','getOwnPropertyDescriptor','_scheduleCollaborationTimeoutTimer','height','_initStatusComponent','YUUMI_UNABLE_LOAD_URL','history','onRendered','rgba(255,\x20255,\x20255,\x200.01)','_online','offline','_checkMissing','readAsDataURL','Unknown\x20user','_cachedData','MSG_FOR_ERROR','json','session.connection-failed','JOIN','transformRemoteChangeset','_localeService','getDeserializedSheetBlock','catch','_socketService','getCollabCursors$','headers','requestParams','isActive','APPLY_REJECT','UNIVER_SHEET','actions','univer-offline','searchParams','_exhaustRemoteChangesetQueue','getSheetBySheetId','transformIMECache','socket\x20close','_telemetryService','get','_getAnchorBounding','collabStatus.offline','debug','collabCursorState$','onPointerLeave$','UNDEFINED','pushState','_getSaveTimeout','allowed','addObject','NEW_CHANGESETS','OFFLINE','stringify','map','_render','indexOf','filter','uni.network.url-service','LIVESHARE_OPERATION','parse','_getMergeRange','ERROR_IMAGE','_notificationService','file','unshift','_lockTransition','_saveCache','_initEventListeners','_transformPreviousActiveRange','_registerRenderDependencies','_state','[SyncedState]:\x20received\x20rejection.','_onLocalMutation','code','enableSingleActiveInstanceLock','_snapshotService','onCommentUpdate','POST','red300','href','_handleLeaveEvent','LEAVE','pluginName','getDocRanges','_docSyncEditingCollabCursorService','flatMap','update','_ensureSubject','roles','onlineStatusTitle','newCsEvent','UNRECOGNIZED','clipPath','univer-online-status-title','save\x20fail\x20reason\x20is\x20','_transformUndoredo','HEARTBEAT','_isPermissionRej','body','_color','status','_roomMembers','collaboration-session-retry','univer-online-status','close','clear','onTransformSelections','_assignedColors','find','_httpService','getUnitType','setAlpha','getSheetId','members','InsertRowCommandId','UniverIcon','_transformService','pending','HttpImport','\x0aCurrent:\x20','_syncEditingCollabCursor','LICENSE_DISTRO_REJECTED','COMPRESS_MUTATION_SEND','getValue','/universer-api/file/{fileID}/sign-url','commentUpdate$','collabStatus.fetchMiss','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','selections','textRanges','params','getCurrent','next','_imageSourceCache','symbol','_urlService','_scheduleSaving','width','[PendingState]:\x20received\x20acknowledgement.','change$','values','transform','asObservable','APPLY_PERMISSION_DENIED','message$','signUrlServerUrl','_sheetSkeletonManagerService','joinEvent','round','replaceState','?url=','text','[CollaborationEntity]','_queuedRemoteChangesets','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','[DataLoaderController]','getUndoRedoMutationParamsCache','_fetchMissChangesets','_range','_toggleOnline','_logService','_throwTelemetryCollaborationNewChangeset','add','2967380qjwJOw','_heartbeatTimer','updatePermissionPoint','createCollaborator','_loadSheet','closePath','COLLAB_WEB_SOCKET_URL','UPDATE_CURSOR','BASE64','patch','blue400','permissionRejEvent','_timeoutTimer','_getLoginPath','startsWith','getAncestorScale','1em','LIVESHARE_FETCH_OPERATIONS','_docStateChangeManagerService','removeMember','_HTTPService','sessionStatus','_clearOtherTimers','location','/universer-api/authz','from','_textBubble','6718OrOUqZ','Univer','_onRefRangeChange','commentUpdateEvent','updateMember','_waitForHeartbeatResponse','Error\x20on\x20receiving\x20event','UNIVER_DOC','FETCH_MISSING','_updateSubUnitFromURLParams','RemoveRowCommandId','activeSheet$','unitId','[OfflineState]:\x20received\x20changeset.','memberID','div','\x20in\x20_schedule.','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','onRemoteChangeset','_messageService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','createElement','_renderManagerService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_retryConnectingTimer','unitId\x20is\x20not\x20found','jiqing500','editingUnit','tag','COLLAB_SUBMIT_CHANGESET_URL','disableLocalCache','getRoom','onMissingChangesets','UNIVER_PROJECT','replaceTextRanges','_onConflict','_scheduleHeartbeat','black','_userManagerService','awaiting_with_pending','ONLINE','_sheetTransformSelectionsService','origin','reject','_onRecvEvent','objectID','AWAITING_WITH_PENDING','labelPosition','generateRandomId','_onOffline','getTime','USERS_LEAVE','DeleteRangeMoveUpCommandId','onCommandExecuted','/role','dispose$','_createInitialState','_toggleOffline','_onCombEvent','LIVESHARE_TERMINATE','_getAPIPrefixPath','_revisionService','UnitEmbedded','xlink:href','_context','#fff','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','delete','_rescheduleHeartbeat'];_0x10c1=function(){return _0x16f173;};return _0x10c1();}class Ft extends _0x3bc0d2{constructor(){const _0x48bfc0=_0x2da18b;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x48bfc0(0x433),0x0);}['assignAColorForMemberID'](_0x17c1dd){const _0x50b755=_0x2da18b;if(this['_assignedColors'][_0x50b755(0x141)](_0x17c1dd))return this['_assignedColors'][_0x50b755(0x2dd)](_0x17c1dd);const _0x34e95d=_s[this['_colorIndex']];return this[_0x50b755(0x433)]=(this[_0x50b755(0x433)]+0x1)%_s['length'],this[_0x50b755(0x321)][_0x50b755(0x276)](_0x17c1dd,_0x34e95d),_0x34e95d;}}var Ir=Object[_0x2da18b(0x151)],Er=Object['getOwnPropertyDescriptor'],Cr=(_0x3f2ae1,_0x122815,_0x2b77d2,_0x35e794)=>{const _0x33277b=_0x2da18b;for(var _0x5a9fb6=_0x35e794>0x1?void 0x0:_0x35e794?Er(_0x122815,_0x2b77d2):_0x122815,_0x4f4277=_0x3f2ae1[_0x33277b(0x1a8)]-0x1,_0x1809cc;_0x4f4277>=0x0;_0x4f4277--)(_0x1809cc=_0x3f2ae1[_0x4f4277])&&(_0x5a9fb6=(_0x35e794?_0x1809cc(_0x122815,_0x2b77d2,_0x5a9fb6):_0x1809cc(_0x5a9fb6))||_0x5a9fb6);return _0x35e794&&_0x5a9fb6&&Ir(_0x122815,_0x2b77d2,_0x5a9fb6),_0x5a9fb6;},se=(_0x36c109,_0x290d5e)=>(_0x2c0210,_0x1b419c)=>_0x290d5e(_0x2c0210,_0x1b419c,_0x36c109);const br=0x12c,Tr=0x64;function _0x44b4(_0xb78ce5,_0x58ffd9){const _0x10c1a7=_0x10c1();return _0x44b4=function(_0x44b472,_0x7647c9){_0x44b472=_0x44b472-0x12c;let _0x50842e=_0x10c1a7[_0x44b472];return _0x50842e;},_0x44b4(_0xb78ce5,_0x58ffd9);}let Rt=class extends _0x13b3a6{constructor(_0x3f60bc,_0x1df59b,_0x2fc804,_0x5846c6,_0x5520f0,_0x9313d2,_0xb62ee8,_0x2d66d9,_0x46ca41){const _0x47edb2=_0x2da18b;super(),l(this,_0x47edb2(0x2c0),!0x1),l(this,_0x47edb2(0x1c5),!0x1),l(this,'_cursorInfo$',new _0x295ce3(new Map())),l(this,_0x47edb2(0x255),this[_0x47edb2(0x453)][_0x47edb2(0x344)]()),l(this,'_roomMembers$',new _0x295ce3([])),l(this,_0x47edb2(0x1fb),this[_0x47edb2(0x2b2)][_0x47edb2(0x29b)](_0x10aa2e(br))),l(this,_0x47edb2(0x1af),_0x77ae19(_0x32ab42=>{const _0x3e09be=_0x47edb2,_0x2ae62f={'eventID':_0x128ecb[_0x3e09be(0x360)],'data':{'unitID':this[_0x3e09be(0x1e5)],'memberID':this[_0x3e09be(0x13c)][_0x3e09be(0x23d)](),'selection':xs(_0x32ab42)}};this[_0x3e09be(0x13c)][_0x3e09be(0x1ad)](_0x2ae62f,this[_0x3e09be(0x1e5)]);},Tr)),(this[_0x47edb2(0x1e5)]=_0x3f60bc,this['_session']=_0x1df59b,this[_0x47edb2(0x272)]=_0x2fc804,this[_0x47edb2(0x40b)]=_0x5846c6,this['_memberService']=_0x5520f0,this['_syncEditingCollabCursorService']=_0x9313d2,this['_transformService']=_0xb62ee8,this[_0x47edb2(0x406)]=_0x2d66d9,this[_0x47edb2(0x457)]=_0x46ca41);}get[_0x2da18b(0x3d8)](){const _0x355933=_0x2da18b;return this[_0x355933(0x453)]['getValue']();}get['roomMembers'](){const _0x57e75c=_0x2da18b;return this[_0x57e75c(0x2b2)]['getValue']();}[_0x2da18b(0x18e)](){const _0x13d77a=_0x2da18b;super['dispose'](),this[_0x13d77a(0x453)][_0x13d77a(0x33a)](new Map()),this[_0x13d77a(0x453)][_0x13d77a(0x3fd)](),this[_0x13d77a(0x2b2)][_0x13d77a(0x33a)]([]),this[_0x13d77a(0x2b2)]['complete']();}[_0x2da18b(0x266)](){const _0x4d2969=_0x2da18b;this['_init']||(this[_0x4d2969(0x1c5)]=!0x0,this[_0x4d2969(0x13c)][_0x4d2969(0x3fb)]['pipe'](_0x1cea38(this[_0x4d2969(0x3ab)]))[_0x4d2969(0x146)](_0x1acb6c=>{const _0x28e3fd=_0x4d2969;_0x1acb6c===G[_0x28e3fd(0x39c)]?this[_0x28e3fd(0x355)]():this[_0x28e3fd(0x3ad)]();}),this['_session'][_0x4d2969(0x411)]['pipe'](_0x1cea38(this[_0x4d2969(0x3ab)]))[_0x4d2969(0x146)](_0x2fc679=>{const _0x23a639=_0x4d2969,_0x5d537d=_0x2fc679[_0x23a639(0x27d)];_0x5d537d===_0x128ecb[_0x23a639(0x360)]&&this[_0x23a639(0x14c)](_0x2fc679),_0x5d537d===_0x128ecb[_0x23a639(0x3a7)]&&this['_onCursorDelete'](_0x2fc679);}),this['disposeWithMe'](this[_0x4d2969(0x457)]['onCommandExecuted'](_0x4fbc5c=>{const _0xb86276=_0x4d2969,_0x539737=_0x4fbc5c[_0xb86276(0x338)];_0x539737!=null&&this[_0xb86276(0x2c0)]&&_0x4fbc5c['id']===_0x12c35b['id']&&_0x539737[_0xb86276(0x380)]===this[_0xb86276(0x1e5)]&&_0x539737[_0xb86276(0x44a)]===!0x1&&this[_0xb86276(0x1af)](_0x539737[_0xb86276(0x12d)]);})),this[_0x4d2969(0x1d6)][_0x4d2969(0x2e1)][_0x4d2969(0x29b)](_0x1cea38(this[_0x4d2969(0x3ab)]))[_0x4d2969(0x146)](_0x244ec9=>{const _0x4a1db6=_0x4d2969;if((_0x244ec9==null?void 0x0:_0x244ec9['unitID'])!==this['unitID'])return;const _0x367ab4={'eventID':_0x128ecb[_0x4a1db6(0x360)],'data':_0x244ec9};this[_0x4a1db6(0x14c)](_0x367ab4);}),this[_0x4d2969(0x206)](this[_0x4d2969(0x457)][_0x4d2969(0x3a9)](_0x32a4b8=>{const _0x48afbc=_0x4d2969;if(_0x32a4b8['params']==null)return;const _0x40ea4b=_0x32a4b8['params'];if(_0x32a4b8['id']!==_0x11f4dd['id']||_0x40ea4b[_0x48afbc(0x380)]!==this[_0x48afbc(0x1e5)])return;const _0x425f5b={'id':_0x48afbc(0x16d),'params':_0x40ea4b},_0x5e32df=this[_0x48afbc(0x3d8)];for(const [_0x32dae5,_0x3967a7]of _0x5e32df){const _0x105eb8={'id':_0x48afbc(0x16d),'params':{'unitId':this[_0x48afbc(0x1e5)],'actions':null,'textRanges':_0x3967a7[_0x48afbc(0x12d)]}},_0x1799f2=this[_0x48afbc(0x32a)]['transformMutation'](_0x425f5b,_0x105eb8,!0x1);if(_0x43ac9d(_0x1799f2))throw _0x1799f2[_0x48afbc(0x490)];_0x5e32df[_0x48afbc(0x276)](_0x32dae5,{..._0x3967a7,'ranges':_0x1799f2[_0x48afbc(0x22c)][_0x48afbc(0x338)][_0x48afbc(0x337)]});}queueMicrotask(()=>{const _0x32fb30=_0x48afbc;this[_0x32fb30(0x453)][_0x32fb30(0x33a)](_0x5e32df);});})));}[_0x2da18b(0x14c)](_0x321157){const _0x422d2e=_0x2da18b;var _0x4ddbc5,_0x440997;const {memberID:_0x58b170,selection:_0xfd1efb}=_0x321157[_0x422d2e(0x247)],_0x16377e=or(_0xfd1efb),_0x48d6c5=(_0x440997=(_0x4ddbc5=this[_0x422d2e(0x131)]['getMember'](this['unitID'],_0x58b170))==null?void 0x0:_0x4ddbc5[_0x422d2e(0x45c)])!=null?_0x440997:_0x422d2e(0x2c4),_0x32c8b2={'color':this['_colorAssignService'][_0x422d2e(0x466)](_0x58b170),'name':_0x48d6c5,'ranges':_0x16377e},_0x22479e=this[_0x422d2e(0x3d8)];_0x22479e[_0x422d2e(0x276)](_0x58b170,_0x32c8b2),this[_0x422d2e(0x453)][_0x422d2e(0x33a)](_0x22479e);}[_0x2da18b(0x179)](_0x1c0a6c){const _0x2bed74=_0x2da18b,{memberID:_0x126af0}=_0x1c0a6c[_0x2bed74(0x247)],_0x51e801=this[_0x2bed74(0x3d8)];_0x51e801[_0x2bed74(0x3b7)](_0x126af0),this[_0x2bed74(0x453)][_0x2bed74(0x33a)](_0x51e801);}[_0x2da18b(0x355)](){const _0x1ef1a4=_0x2da18b;var _0x35702a;if(this['_online']=!0x0,((_0x35702a=this[_0x1ef1a4(0x406)][_0x1ef1a4(0x2a3)]())==null?void 0x0:_0x35702a[_0x1ef1a4(0x3d4)]())!==this['unitID'])return;const _0x209204=this['_injector'][_0x1ef1a4(0x2dd)](_0xd0d12d)[_0x1ef1a4(0x309)]();Array[_0x1ef1a4(0x1f8)](_0x209204)&&_0x209204[_0x1ef1a4(0x1a8)]>0x0&&this[_0x1ef1a4(0x1af)](_0x209204);}[_0x2da18b(0x3ad)](){const _0x352f03=_0x2da18b;this[_0x352f03(0x2c0)]=!0x1;}};Rt=Cr([se(0x2,_0x24691e(_0x129c7a)),se(0x3,_0x24691e(Ft)),se(0x4,_0x24691e(ae)),se(0x5,_0x24691e(Bt)),se(0x6,_0x418a36),se(0x7,_0x4af863),se(0x8,_0x18280b)],Rt);var Rr=Object[_0x2da18b(0x151)],Or=Object[_0x2da18b(0x2b8)],Dr=(_0x42719b,_0x5e3831,_0x13d331,_0x2b8bbb)=>{const _0xbe23f2=_0x2da18b;for(var _0x55d476=_0x2b8bbb>0x1?void 0x0:_0x2b8bbb?Or(_0x5e3831,_0x13d331):_0x5e3831,_0x453dc8=_0x42719b[_0xbe23f2(0x1a8)]-0x1,_0x3f5442;_0x453dc8>=0x0;_0x453dc8--)(_0x3f5442=_0x42719b[_0x453dc8])&&(_0x55d476=(_0x2b8bbb?_0x3f5442(_0x5e3831,_0x13d331,_0x55d476):_0x3f5442(_0x55d476))||_0x55d476);return _0x2b8bbb&&_0x55d476&&Rr(_0x5e3831,_0x13d331,_0x55d476),_0x55d476;},fe=(_0x3c90a5,_0x399008)=>(_0x2ada7d,_0x5004ee)=>_0x399008(_0x2ada7d,_0x5004ee,_0x3c90a5);const wr=0x12c,Pr=0x64,yr=()=>{let _0xc4b322=[],_0x5206cb=!0x1;return _0x28217e=>{const _0x279336=_0x44b4;_0xc4b322[_0x279336(0x46c)](_0x28217e),_0x5206cb||(_0x5206cb=!0x0,setTimeout(()=>{_0xc4b322['forEach'](_0x4019ee=>_0x4019ee()),_0xc4b322=[],_0x5206cb=!0x1;}));};};let Ot=class extends _0x13b3a6{constructor(_0xc7e6d,_0x5de697,_0xe8f32d,_0x53d5ed,_0x5691fa,_0x3c0e39,_0x402f30,_0x274f2c){const _0x576ae4=_0x2da18b;super(),l(this,_0x576ae4(0x2c0),!0x1),l(this,'_init',!0x1),l(this,_0x576ae4(0x453),new _0x295ce3(new Map())),l(this,_0x576ae4(0x255),this[_0x576ae4(0x453)][_0x576ae4(0x344)]()),l(this,_0x576ae4(0x2b2),new _0x295ce3([])),l(this,_0x576ae4(0x1fb),this[_0x576ae4(0x2b2)][_0x576ae4(0x29b)](_0x10aa2e(wr))),l(this,'_updateLocalCursor',_0x77ae19((_0x1b56f3,_0x359f2c)=>{const _0x2745cf=_0x576ae4,_0x164959={'eventID':_0x128ecb[_0x2745cf(0x360)],'data':{'unitID':this[_0x2745cf(0x1e5)],'memberID':this[_0x2745cf(0x13c)][_0x2745cf(0x23d)](),'selection':_0x811c4(_0x1b56f3,_0x359f2c['range'])}};this[_0x2745cf(0x13c)][_0x2745cf(0x1ad)](_0x164959,this[_0x2745cf(0x1e5)]);},Pr)),(this[_0x576ae4(0x1e5)]=_0xc7e6d,this[_0x576ae4(0x13c)]=_0x5de697,this[_0x576ae4(0x272)]=_0xe8f32d,this[_0x576ae4(0x40b)]=_0x53d5ed,this[_0x576ae4(0x131)]=_0x5691fa,this['_univerInstanceService']=_0x3c0e39,this[_0x576ae4(0x457)]=_0x402f30,this[_0x576ae4(0x1fd)]=_0x274f2c);}get['cursorInfo'](){const _0x16738d=_0x2da18b;return this[_0x16738d(0x453)][_0x16738d(0x331)]();}get[_0x2da18b(0x44e)](){const _0x220798=_0x2da18b;return this[_0x220798(0x2b2)][_0x220798(0x331)]();}[_0x2da18b(0x18e)](){const _0x1a45fb=_0x2da18b;super[_0x1a45fb(0x18e)](),this['_cursorInfo$'][_0x1a45fb(0x33a)](new Map()),this[_0x1a45fb(0x453)][_0x1a45fb(0x3fd)](),this[_0x1a45fb(0x2b2)][_0x1a45fb(0x33a)]([]),this[_0x1a45fb(0x2b2)][_0x1a45fb(0x3fd)]();}[_0x2da18b(0x266)](){const _0x4e5604=_0x2da18b;this[_0x4e5604(0x1c5)]||(this[_0x4e5604(0x1c5)]=!0x0,this[_0x4e5604(0x13c)]['sessionStatus$'][_0x4e5604(0x29b)](_0x1cea38(this[_0x4e5604(0x3ab)]))['subscribe'](_0x3dc968=>{const _0x1400a8=_0x4e5604;_0x3dc968===G['ONLINE']?this[_0x1400a8(0x355)]():this[_0x1400a8(0x3ad)]();}),this[_0x4e5604(0x13c)]['event$'][_0x4e5604(0x29b)](_0x1cea38(this['dispose$']))[_0x4e5604(0x146)](_0x4e008a=>{const _0x201cff=_0x4e5604,_0x418e65=_0x4e008a[_0x201cff(0x27d)];_0x418e65===_0x128ecb[_0x201cff(0x360)]&&this[_0x201cff(0x14c)](_0x4e008a),_0x418e65===_0x128ecb[_0x201cff(0x3a7)]&&this[_0x201cff(0x179)](_0x4e008a);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x4e5604(0x457)][_0x4e5604(0x3a9)](_0x3667ee=>{const _0xcc1186=_0x4e5604;if(this['_online']&&_0x3667ee['id']===_0x3c7ab3['id']&&_0x3667ee[_0xcc1186(0x338)][_0xcc1186(0x380)]===this[_0xcc1186(0x1e5)]){const _0x3a2358=_0x3667ee[_0xcc1186(0x338)];this[_0xcc1186(0x1af)](_0x3a2358[_0xcc1186(0x18a)],_0x3a2358[_0xcc1186(0x336)][0x0]);}})));}[_0x2da18b(0x14c)](_0x1c1514){const _0x5dd63f=_0x2da18b;var _0x43ea29,_0x1f1cca;const {memberID:_0x1834e9,selection:_0x4698d2}=_0x1c1514[_0x5dd63f(0x247)],{sheetName:_0x273638,range:_0x2de9b2}=_0x1f9a73(_0x4698d2),_0x3d50bc={'name':(_0x1f1cca=(_0x43ea29=this[_0x5dd63f(0x131)][_0x5dd63f(0x479)](this[_0x5dd63f(0x1e5)],_0x1834e9))==null?void 0x0:_0x43ea29['name'])!=null?_0x1f1cca:_0x5dd63f(0x2c4),'range':this['_getMergeRange'](_0x273638,_0x2de9b2),'sheetID':_0x273638,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1834e9),'selection':_0x4698d2},_0x231a3a=this['cursorInfo'];_0x231a3a[_0x5dd63f(0x276)](_0x1834e9,_0x3d50bc),this[_0x5dd63f(0x453)][_0x5dd63f(0x33a)](_0x231a3a);}[_0x2da18b(0x179)](_0x396223){const _0x3973ef=_0x2da18b,{memberID:_0x31a8da}=_0x396223[_0x3973ef(0x247)],_0x5a90a7=this['cursorInfo'];_0x5a90a7[_0x3973ef(0x3b7)](_0x31a8da),this[_0x3973ef(0x453)][_0x3973ef(0x33a)](_0x5a90a7);}[_0x2da18b(0x2f2)](_0x39e934,_0x5494dd){const _0x14048f=_0x2da18b;var _0x138aa7,_0x5c5ec6;const _0x24a2bb=(_0x5c5ec6=(_0x138aa7=this[_0x14048f(0x406)][_0x14048f(0x259)](this['unitID']))==null?void 0x0:_0x138aa7[_0x14048f(0x2d9)](_0x39e934))==null?void 0x0:_0x5c5ec6[_0x14048f(0x465)]();return(_0x24a2bb==null?void 0x0:_0x24a2bb[_0x14048f(0x322)](_0x5eca41=>_0x34bc57['contains'](_0x5eca41,_0x5494dd)))||_0x5494dd;}[_0x2da18b(0x376)](){const _0x4b931f=_0x2da18b,_0x149863=new _0x15e5d9(),_0x233382=yr(),_0x97c0e1=()=>{const _0x5999e4=_0x44b4;_0x149863[_0x5999e4(0x18e)]();const _0x2a3e5a=(_0x3c0ae6,_0x5f0559,_0xccbb3d,_0x439ed3)=>{const _0x5543a1=_0x5999e4;let _0x5c54f3=[];switch(_0x3c0ae6['id']){case _0x3b7f59[_0x5543a1(0x42f)]:{_0x5c54f3=_0x20d302(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59[_0x5543a1(0x3a8)]:{_0x5c54f3=_0x19e925(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59['InsertColCommandId']:{_0x5c54f3=_0x287ebd(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59['InsertRangeMoveDownCommandId']:{_0x5c54f3=_0x3a8b0e(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59['InsertRangeMoveRightCommandId']:{_0x5c54f3=_0x41db6a(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59[_0x5543a1(0x328)]:{_0x5c54f3=_0x484fb6(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59[_0x5543a1(0x291)]:{_0x5c54f3=_0x3f4a82(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59[_0x5543a1(0x14f)]:{_0x5c54f3=_0x4fb4f8(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59[_0x5543a1(0x37e)]:{_0x5c54f3=_0x4f44cf(_0x3c0ae6,_0x439ed3);break;}}const _0x240345=_0x3f0515(_0x5c54f3,_0x439ed3),_0x1191f8=this[_0x5543a1(0x3d8)]['get'](_0x5f0559);if(_0x1191f8&&_0x240345){const _0x5ecd4f={..._0x1191f8,'range':_0x240345};this[_0x5543a1(0x3d8)][_0x5543a1(0x276)](_0x5f0559,_0x5ecd4f),_0x233382(()=>{const _0x5c1602=_0x5543a1,_0x165e99=this[_0x5c1602(0x1fd)][_0x5c1602(0x445)](_0x240345,_0x2455c5=>(_0x165e99[_0x5c1602(0x18e)](),_0x2a3e5a(_0x2455c5,_0x5f0559,_0xccbb3d,_0x240345)));_0x149863[_0x5c1602(0x358)](_0x165e99);});}return{'redos':[],'undos':[]};};this[_0x5999e4(0x3d8)]['forEach']((_0x257322,_0x30fbc8)=>{const _0x255037=_0x5999e4,{range:_0x3f4697,sheetID:_0x450a80}=_0x257322,_0x4aadbd=this[_0x255037(0x1fd)][_0x255037(0x445)](_0x3f4697,_0x564d42=>(_0x4aadbd[_0x255037(0x18e)](),_0x2a3e5a(_0x564d42,_0x30fbc8,_0x450a80,_0x3f4697)));_0x149863[_0x255037(0x358)](_0x4aadbd);});};this[_0x4b931f(0x206)](_0xc09fc4(this['_cursorInfo$'][_0x4b931f(0x146)](()=>{_0x97c0e1();})));}['_toggleOnline'](){const _0x5bdd66=_0x2da18b;var _0x50a98f,_0x51343d;if(this[_0x5bdd66(0x2c0)]=!0x0,((_0x50a98f=this[_0x5bdd66(0x406)][_0x5bdd66(0x2a3)]())==null?void 0x0:_0x50a98f['getUnitId']())!==this[_0x5bdd66(0x1e5)])return;const _0x142491=(_0x51343d=this['_injector'][_0x5bdd66(0x2dd)](_0x19b20b)[_0x5bdd66(0x3c0)]())==null?void 0x0:_0x51343d[0x0],_0x540e00=this[_0x5bdd66(0x406)][_0x5bdd66(0x1ca)](_0x43baa3[_0x5bdd66(0x2d4)])['getActiveSheet']();_0x142491&&_0x540e00&&this[_0x5bdd66(0x1af)](_0x540e00[_0x5bdd66(0x326)](),_0x142491);}[_0x2da18b(0x3ad)](){const _0x3b7df3=_0x2da18b;this[_0x3b7df3(0x2c0)]=!0x1;}};Ot=Dr([fe(0x2,_0x24691e(_0x129c7a)),fe(0x3,_0x24691e(Ft)),fe(0x4,_0x24691e(ae)),fe(0x5,_0x4af863),fe(0x6,_0x18280b),fe(0x7,_0x24691e(_0x10ec28))],Ot);var Nr=Object[_0x2da18b(0x151)],Ur=Object[_0x2da18b(0x2b8)],Mr=(_0x84a9be,_0x2d5d10,_0x50e0a9,_0x4e5762)=>{for(var _0x53574d=_0x4e5762>0x1?void 0x0:_0x4e5762?Ur(_0x2d5d10,_0x50e0a9):_0x2d5d10,_0x20f221=_0x84a9be['length']-0x1,_0x3edab3;_0x20f221>=0x0;_0x20f221--)(_0x3edab3=_0x84a9be[_0x20f221])&&(_0x53574d=(_0x4e5762?_0x3edab3(_0x2d5d10,_0x50e0a9,_0x53574d):_0x3edab3(_0x53574d))||_0x53574d);return _0x4e5762&&_0x53574d&&Nr(_0x2d5d10,_0x50e0a9,_0x53574d),_0x53574d;},_t=(_0x84734d,_0x3654bb)=>(_0x2a2a96,_0x4fa656)=>_0x3654bb(_0x2a2a96,_0x4fa656,_0x84734d);let pe=class extends _0x13b3a6{constructor(_0x101b73,_0x396df0,_0x14b525){const _0x271387=_0x2da18b;super(),l(this,'_entities',new Map()),l(this,'_entityInit$',new _0x526cd2()),(this[_0x271387(0x406)]=_0x101b73,this[_0x271387(0x272)]=_0x396df0,this['_collabSessionService']=_0x14b525,this[_0x271387(0x1c5)]());}[_0x2da18b(0x18e)](){const _0x28dd6d=_0x2da18b;super[_0x28dd6d(0x18e)](),this[_0x28dd6d(0x41e)]['complete'](),this[_0x28dd6d(0x3d9)][_0x28dd6d(0x137)](_0xdf66a5=>_0xdf66a5['dispose']());}[_0x2da18b(0x2cf)](_0x2ad094){const _0x175f80=_0x2da18b;return this[_0x175f80(0x3d9)]['has'](_0x2ad094)?this[_0x175f80(0x3d9)]['get'](_0x2ad094)[_0x175f80(0x255)]:this[_0x175f80(0x41e)][_0x175f80(0x29b)](_0x2d3c1f(_0x4ab843=>_0x4ab843[_0x175f80(0x1e5)]===_0x2ad094),_0xe06e10(_0x5e6b48=>_0x5e6b48[_0x175f80(0x255)]));}[_0x2da18b(0x1c5)](){const _0x428834=_0x2da18b;this[_0x428834(0x406)]['getTypeOfUnitAdded$'](_0x43baa3[_0x428834(0x2d4)])[_0x428834(0x29b)](_0x1cea38(this[_0x428834(0x3ab)]))[_0x428834(0x146)](async _0x5d1385=>{const _0x2c2d24=_0x428834,_0x100b14=_0x5d1385[_0x2c2d24(0x3d4)](),_0x1e15bb=await this[_0x2c2d24(0x1f5)](_0x100b14);this['_entityInit$'][_0x2c2d24(0x33a)](_0x1e15bb),this[_0x2c2d24(0x3d9)][_0x2c2d24(0x276)](_0x100b14,_0x1e15bb);}),this[_0x428834(0x406)][_0x428834(0x26c)](_0x43baa3[_0x428834(0x37b)])['pipe'](_0x1cea38(this[_0x428834(0x3ab)]))['pipe'](_0x2d3c1f(_0x40d8ee=>!_0x40d8ee['getUnitId']()[_0x428834(0x367)]('__')))[_0x428834(0x146)](async _0x297ff4=>{const _0x39d8ed=_0x428834,_0x224247=_0x297ff4[_0x39d8ed(0x3d4)](),_0x348ca2=await this[_0x39d8ed(0x28f)](_0x224247);this[_0x39d8ed(0x41e)][_0x39d8ed(0x33a)](_0x348ca2),this[_0x39d8ed(0x3d9)][_0x39d8ed(0x276)](_0x224247,_0x348ca2);}),_0x5799ee(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x43baa3[_0x428834(0x37b)]),this[_0x428834(0x406)][_0x428834(0x253)](_0x43baa3[_0x428834(0x2d4)]))['pipe'](_0x1cea38(this[_0x428834(0x3ab)]))['subscribe'](_0x1b87f0=>{const _0x47b2aa=_0x428834,_0x4c2b80=_0x1b87f0[_0x47b2aa(0x3d4)](),_0x55b98e=this['_entities'][_0x47b2aa(0x2dd)](_0x4c2b80);_0x55b98e&&(_0x55b98e[_0x47b2aa(0x18e)](),this[_0x47b2aa(0x3d9)]['delete'](_0x4c2b80));});}async[_0x2da18b(0x1f5)](_0x40f8a8){const _0x6c388c=_0x2da18b,_0x40b495=await this[_0x6c388c(0x235)][_0x6c388c(0x19f)](_0x40f8a8),_0x3846ac=this['_injector'][_0x6c388c(0x3cb)](Ot,_0x40f8a8,_0x40b495);return _0x3846ac[_0x6c388c(0x266)](),_0x3846ac;}async[_0x2da18b(0x28f)](_0x3a318a){const _0x1f6940=_0x2da18b,_0x2f90c0=await this[_0x1f6940(0x235)]['requireSession'](_0x3a318a),_0x48b235=this[_0x1f6940(0x272)][_0x1f6940(0x3cb)](Rt,_0x3a318a,_0x2f90c0);return _0x48b235[_0x1f6940(0x266)](),_0x48b235;}};pe=Mr([_t(0x0,_0x4af863),_t(0x1,_0x24691e(_0x129c7a)),_t(0x2,_0x24691e(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x1338ce,_0x3ff89b){const _0x813612=_0x2da18b;let {radius:_0x23783d,width:_0xc8a293,height:_0x3e0fc7}=_0x3ff89b;_0x23783d=_0x23783d!=null?_0x23783d:0x0,_0xc8a293=_0xc8a293!=null?_0xc8a293:0x1e,_0x3e0fc7=_0x3e0fc7!=null?_0x3e0fc7:0x1e;let _0x12560f=0x0,_0x1a51d9=0x0,_0x41369f=0x0;_0x12560f=_0x1a51d9=_0x41369f=Math[_0x813612(0x1d3)](_0x23783d,_0xc8a293/0x2,_0x3e0fc7/0x2),_0x1338ce[_0x813612(0x1a6)](),_0x1338ce[_0x813612(0x130)](_0x12560f,0x0),_0x1338ce[_0x813612(0x40d)](_0xc8a293-_0x1a51d9,0x0),_0x1338ce[_0x813612(0x2a5)](_0xc8a293-_0x1a51d9,_0x1a51d9,_0x1a51d9,Math['PI']*0x3/0x2,0x0,!0x1),_0x1338ce[_0x813612(0x40d)](_0xc8a293,_0x3e0fc7-_0x41369f),_0x1338ce[_0x813612(0x2a5)](_0xc8a293-_0x41369f,_0x3e0fc7-_0x41369f,_0x41369f,0x0,Math['PI']/0x2,!0x1),_0x1338ce[_0x813612(0x40d)](0x0,_0x3e0fc7),_0x1338ce[_0x813612(0x40d)](0x0,_0x12560f),_0x1338ce[_0x813612(0x2a5)](_0x12560f,_0x12560f,_0x12560f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1338ce[_0x813612(0x35e)](),_0x3ff89b['fill']&&(_0x1338ce[_0x813612(0x26f)](),_0x1338ce[_0x813612(0x3d7)]=_0x3ff89b[_0x813612(0x46f)],_0x3ff89b['fillRule']===_0x813612(0x297)?_0x1338ce[_0x813612(0x46f)](_0x813612(0x297)):_0x1338ce[_0x813612(0x46f)](),_0x1338ce[_0x813612(0x138)]());}class st extends _0x24438a{constructor(_0x9aec8e,_0x2d223){const _0x486cdd=_0x2da18b;super(_0x9aec8e,_0x2d223),l(this,_0x486cdd(0x183)),l(this,'text'),(this['color']=_0x2d223==null?void 0x0:_0x2d223[_0x486cdd(0x183)],this[_0x486cdd(0x34d)]=_0x2d223==null?void 0x0:_0x2d223['text']);}static['drawWith'](_0xf60049,_0x52a26a){const _0x32d11d=_0x2da18b,{text:_0x835e71,color:_0x29f61c}=_0x52a26a;_0xf60049[_0x32d11d(0x26f)](),_0xf60049[_0x32d11d(0x251)]=_0x32d11d(0x43f);const _0x4ab4b1=_0xf60049[_0x32d11d(0x27e)](_0x835e71)[_0x32d11d(0x33f)],_0x1ef306=Math[_0x32d11d(0x1d3)](_0x4ab4b1+0x2*ut,us);Lr(_0xf60049,{'height':Le,'radius':0x4,'width':_0x1ef306,'fill':_0x29f61c,'evented':!0x1}),_0xf60049[_0x32d11d(0x3d7)]=_0x32d11d(0x1be);const _0x19d402=ut,_0x59fd1f=Le-Ar,_0x14f3a5=us-0x2*ut;if(_0x4ab4b1>_0x14f3a5){let _0x274d19='',_0xff2991=0x0;for(const _0x55c5da of _0x835e71){const _0x5c3ddb=_0xf60049[_0x32d11d(0x27e)](_0x55c5da)[_0x32d11d(0x33f)];if(_0xff2991+_0x5c3ddb<=_0x14f3a5-_0xf60049['measureText'](_0x32d11d(0x1ea))[_0x32d11d(0x33f)])_0x274d19+=_0x55c5da,_0xff2991+=_0x5c3ddb;else{_0x274d19+=_0x32d11d(0x1ea);break;}}_0xf60049['fillText'](_0x274d19,_0x19d402,_0x59fd1f);}else _0xf60049[_0x32d11d(0x3ee)](_0x835e71,_0x19d402,_0x59fd1f);_0xf60049[_0x32d11d(0x138)]();}['_draw'](_0x36104e){st['drawWith'](_0x36104e,this);}}const dt=_0x2da18b(0x234),$r='collab-text-range-',jr=_0x2da18b(0x425),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x2da18b(0x2bf);class ds{constructor(_0x7f7493,_0x2a6f9e,_0x7a150e,_0x4d1b01){const _0x36dc0e=_0x2da18b;l(this,_0x36dc0e(0x216),[]),l(this,'_anchor',null),l(this,_0x36dc0e(0x373),null),l(this,_0x36dc0e(0x1ef),null),l(this,_0x36dc0e(0x3eb),null),l(this,_0x36dc0e(0x2a8),null),(this[_0x36dc0e(0x3fa)]=_0x7f7493,this['_scene']=_0x2a6f9e,this['_docSkeleton']=_0x7a150e,this[_0x36dc0e(0x152)]=_0x4d1b01,this[_0x36dc0e(0x2ec)]());}set[_0x2da18b(0x3f8)](_0x4c7a25){const _0x512a6f=_0x2da18b;_0x4c7a25?(this['_anchorDot']&&this['_anchorDot'][_0x512a6f(0x286)](),this['_textBubble']&&this[_0x512a6f(0x373)]['show']()):(this['_anchorDot']&&this[_0x512a6f(0x1ef)]['show'](),this[_0x512a6f(0x373)]&&this['_textBubble'][_0x512a6f(0x286)]());}[_0x2da18b(0x18e)](){const _0xea56ef=_0x2da18b;for(const _0x58997b of this['_shapes'])_0x58997b[_0xea56ef(0x18e)]();this[_0xea56ef(0x373)]&&this['_textBubble']['dispose'](),this[_0xea56ef(0x1ef)]&&this[_0xea56ef(0x1ef)][_0xea56ef(0x18e)](),this[_0xea56ef(0x409)]&&this[_0xea56ef(0x409)][_0xea56ef(0x18e)](),this[_0xea56ef(0x2a8)]&&this[_0xea56ef(0x2a8)]();}[_0x2da18b(0x2ec)](){const _0x144374=_0x2da18b;var _0x48efa3;const {_docSkeleton:_0x3b2d46,_document:_0x42f4cd}=this,{color:_0x3b165c,name:_0x328e42,ranges:_0x4e0874}=this[_0x144374(0x3fa)],_0x5f22d5=_0x42f4cd[_0x144374(0x229)](),{docsLeft:_0x30258d,docsTop:_0x5a5ed9}=_0x5f22d5,_0x1f457c=new _0x1ffb2a(_0x5f22d5,_0x3b2d46);for(const {startOffset:_0x477ec7,endOffset:_0x5f50bc,collapsed:_0x3beb2c,isActive:_0x192c1e}of _0x4e0874){const _0x3616b0=_0x3b2d46[_0x144374(0x22e)](_0x477ec7),_0x528e51=_0x3b2d46[_0x144374(0x22e)](_0x5f50bc);if(_0x192c1e){const {contentBoxPointGroup:_0x174512}=_0x1f457c[_0x144374(0x245)](_0x528e51,_0x528e51);if(_0x174512['length']===0x0)continue;this['_drawAnchor'](_0x3b165c,_0x174512,_0x30258d,_0x5a5ed9,_0x328e42),this[_0x144374(0x2a8)]=this[_0x144374(0x19c)]();}if(!_0x3beb2c&&_0x3616b0&&_0x528e51){if(_0x10f419(_0x3616b0,_0x528e51)){const _0x5e6d35=new _0x2619ed(_0x5f22d5,_0x3b2d46),{pointGroup:_0x37cb08}=(_0x48efa3=_0x5e6d35[_0x144374(0x245)](_0x3616b0,_0x528e51))!=null?_0x48efa3:{};if(_0x37cb08==null||_0x37cb08[_0x144374(0x1a8)]===0x0)continue;this[_0x144374(0x238)](_0x3b165c,_0x37cb08,_0x30258d,_0x5a5ed9);}else{const {contentBoxPointGroup:_0x2aee94}=_0x1f457c[_0x144374(0x245)](_0x3616b0,_0x528e51);if(_0x2aee94[_0x144374(0x1a8)]===0x0)continue;this[_0x144374(0x28e)](_0x3b165c,_0x2aee94,_0x30258d,_0x5a5ed9);}}}}['_drawAnchor'](_0x5400ec,_0x42ce68,_0x4053fe,_0x1b3e33,_0x18984f){const _0x50bb0f=_0x2da18b,_0x356078=this[_0x50bb0f(0x2de)](_0x42ce68),{left:_0x2c369c,top:_0x53ad27,height:_0x54ef94}=_0x356078,_0x5b173b=this[_0x50bb0f(0x29d)](),_0x2e6ea9=Hr/_0x5b173b,_0x5be27b=new _0x2eb7b4(dt+_0x5ee8c7[_0x50bb0f(0x3a4)](De),{'left':_0x2c369c+_0x4053fe-_0x2e6ea9,'top':_0x53ad27+_0x1b3e33,'height':_0x54ef94,'width':xr,'fill':_0x5400ec||_0x35c7a2(_0x2af6c8[_0x50bb0f(0x399)],0x0),'strokeWidth':_0x2e6ea9,'stroke':kr,'evented':!0x0});this[_0x50bb0f(0x409)]=_0x5be27b,this[_0x50bb0f(0x1e2)][_0x50bb0f(0x2e7)](_0x5be27b,_0x470ec7);const _0x1ae337=new _0x2eb7b4(dt+_0x5ee8c7[_0x50bb0f(0x3a4)](De),{'left':_0x2c369c+_0x4053fe-_0x2e6ea9,'top':_0x53ad27+_0x1b3e33-ft/0x2,'height':ft,'width':ft,'fill':_0x5400ec||_0x35c7a2(_0x2af6c8[_0x50bb0f(0x399)],0x0),'strokeWidth':0x0,'stroke':_0x5400ec||_0x35c7a2(_0x2af6c8['black'],0x0),'evented':!0x1});this[_0x50bb0f(0x1ef)]=_0x1ae337,this[_0x50bb0f(0x1e2)][_0x50bb0f(0x2e7)](_0x1ae337,_0x470ec7);const _0x1c8db1=new st(dt+_0x5ee8c7[_0x50bb0f(0x3a4)](De),{'left':_0x2c369c+_0x4053fe-_0x2e6ea9,'top':_0x53ad27+_0x1b3e33-Le,'text':_0x18984f,'color':_0x5400ec});this[_0x50bb0f(0x373)]=_0x1c8db1,this[_0x50bb0f(0x1e2)][_0x50bb0f(0x2e7)](_0x1c8db1,_0x470ec7),this[_0x50bb0f(0x3f8)]=!0x1;}['_handleHover'](){const _0x32cd2b=_0x2da18b,_0x9cc89c=this[_0x32cd2b(0x409)][_0x32cd2b(0x180)][_0x32cd2b(0x21a)](()=>{const _0x755411=_0x32cd2b;this[_0x755411(0x3f8)]=!0x0;}),_0xfbdd45=this['_anchor'][_0x32cd2b(0x2e2)][_0x32cd2b(0x21a)](()=>{const _0x32b208=_0x32cd2b;this[_0x32b208(0x3eb)]&&clearTimeout(this[_0x32b208(0x3eb)]),this[_0x32b208(0x3eb)]=setTimeout(()=>{const _0xcd2b0c=_0x32b208;this[_0xcd2b0c(0x3f8)]=!0x1;},0x7d0);});return()=>{const _0x11dcf=_0x32cd2b;_0x9cc89c[_0x11dcf(0x464)](),_0xfbdd45[_0x11dcf(0x464)]();};}[_0x2da18b(0x28e)](_0x3d2375,_0x2ae13f,_0x8ae330,_0x1bae2f){const _0x23732d=_0x2da18b,_0x13075b=new _0x581e9c(_0x3d2375)[_0x23732d(0x325)](0.2)['toRgbString'](),_0x4e519e=new _0x5f1bc5($r+_0x5ee8c7['generateRandomId'](De),{'pointsGroup':_0x2ae13f,'fill':_0x13075b||_0x35c7a2(_0x2af6c8[_0x23732d(0x399)],0.2),'left':_0x8ae330,'top':_0x1bae2f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x23732d(0x216)][_0x23732d(0x46c)](_0x4e519e),this['_scene']['addObject'](_0x4e519e,_0x470ec7);}['_drawRectRange'](_0x5bad6a,_0x282371,_0x2d0453,_0x33d45b){const _0x5e0ac9=_0x2da18b,_0x225248=new _0x581e9c(_0x5bad6a)[_0x5e0ac9(0x325)](0.2)[_0x5e0ac9(0x3dc)](),_0x5a8cb6=new _0x5f1bc5(jr+_0x5ee8c7[_0x5e0ac9(0x3a4)](De),{'pointsGroup':_0x282371,'fill':_0x225248||_0x35c7a2(_0x2af6c8[_0x5e0ac9(0x399)],0.2),'left':_0x2d0453,'top':_0x33d45b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5e0ac9(0x216)][_0x5e0ac9(0x46c)](_0x5a8cb6),this[_0x5e0ac9(0x1e2)][_0x5e0ac9(0x2e7)](_0x5a8cb6,_0x470ec7);}[_0x2da18b(0x2de)](_0x5e1725){const _0x388319=_0x5e1725[0x0],_0x4b7f40=_0x388319[0x0],_0x739b2f=_0x388319[0x2],{x:_0x5e185c,y:_0x18148d}=_0x4b7f40,{x:_0x20ac83,y:_0x1882de}=_0x739b2f;return{'left':_0x5e185c,'top':_0x18148d,'width':_0x20ac83-_0x5e185c,'height':_0x1882de-_0x18148d};}[_0x2da18b(0x29d)](){const _0x3506ac=_0x2da18b,{scaleX:_0x1cb7df,scaleY:_0x410214}=this[_0x3506ac(0x1e2)]['getAncestorScale']();return Math[_0x3506ac(0x43c)](_0x1cb7df,_0x410214);}}var Br=Object['defineProperty'],Vr=Object[_0x2da18b(0x2b8)],Fr=(_0x4c3415,_0xda4471,_0x13c738,_0x501c96)=>{const _0x294e0d=_0x2da18b;for(var _0x1b0040=_0x501c96>0x1?void 0x0:_0x501c96?Vr(_0xda4471,_0x13c738):_0xda4471,_0x609ccd=_0x4c3415[_0x294e0d(0x1a8)]-0x1,_0x4b5351;_0x609ccd>=0x0;_0x609ccd--)(_0x4b5351=_0x4c3415[_0x609ccd])&&(_0x1b0040=(_0x501c96?_0x4b5351(_0xda4471,_0x13c738,_0x1b0040):_0x4b5351(_0x1b0040))||_0x1b0040);return _0x501c96&&_0x1b0040&&Br(_0xda4471,_0x13c738,_0x1b0040),_0x1b0040;},xe=(_0x454218,_0x1691b6)=>(_0x3c0e91,_0x2ad7b5)=>_0x1691b6(_0x3c0e91,_0x2ad7b5,_0x454218);let Dt=class extends _0x13b3a6{constructor(_0x444a02,_0x478a71,_0x420c8f,_0x5a57e0,_0x3d26bf){const _0x424113=_0x2da18b;super(),l(this,_0x424113(0x21f),[]),l(this,'_cursors',[]),(this[_0x424113(0x3b4)]=_0x444a02,this[_0x424113(0x3f7)]=_0x478a71,this[_0x424113(0x3c1)]=_0x420c8f,this['_commandService']=_0x5a57e0,this[_0x424113(0x3de)]=_0x3d26bf,this[_0x424113(0x1c5)]());}[_0x2da18b(0x1c5)](){const _0x3e6cd7=_0x2da18b,_0x77808d=this[_0x3e6cd7(0x3b4)][_0x3e6cd7(0x380)],_0x1fd101=this[_0x3e6cd7(0x3f7)];this[_0x3e6cd7(0x206)](_0x599ee5([this[_0x3e6cd7(0x3c1)][_0x3e6cd7(0x2cf)](_0x77808d),this[_0x3e6cd7(0x3de)][_0x3e6cd7(0x1ff)]])[_0x3e6cd7(0x29b)](_0x5ddac4(([_0x4277ef,_0x375132])=>({'skeleton':_0x1fd101[_0x3e6cd7(0x3c2)](),'cursors':[..._0x4277ef['values']()][_0x3e6cd7(0x30b)](_0x522849=>({..._0x522849,'color':_0x375132[_0x522849[_0x3e6cd7(0x183)]]}))})))[_0x3e6cd7(0x146)](_0x5c6fdc=>{const _0x11136a=_0x3e6cd7;if(this[_0x11136a(0x482)](),_0x5c6fdc){const {skeleton:_0x2b1e88,cursors:_0x51e786}=_0x5c6fdc;this[_0x11136a(0x3c6)](_0x2b1e88,_0x51e786);}})),this[_0x3e6cd7(0x1cf)](),this[_0x3e6cd7(0x132)]();}['_updateCollabCursors'](_0x408ed1,_0x36dd88){const _0x2a0c38=_0x2da18b,{scene:_0x550cf8,mainComponent:_0x13b553}=this[_0x2a0c38(0x3b4)],_0x198390=_0x36dd88[_0x2a0c38(0x2eb)](_0x12ca62=>new ds(_0x12ca62,_0x550cf8,_0x408ed1,_0x13b553));this[_0x2a0c38(0x21f)]=_0x198390,this[_0x2a0c38(0x2b1)]=_0x36dd88;}[_0x2da18b(0x160)](){const _0x2419de=_0x2da18b;this[_0x2419de(0x482)]();const {scene:_0x50c31d,mainComponent:_0x2675d9}=this[_0x2419de(0x3b4)],_0x4347f4=this[_0x2419de(0x3f7)]['getSkeleton'](),_0x5d749e=this[_0x2419de(0x2b1)][_0x2419de(0x2eb)](_0x5efe0c=>new ds(_0x5efe0c,_0x50c31d,_0x4347f4,_0x2675d9));this[_0x2419de(0x21f)]=_0x5d749e;}[_0x2da18b(0x482)](){const _0x39b0ee=_0x2da18b;this[_0x39b0ee(0x21f)][_0x39b0ee(0x137)](_0x32c0ec=>_0x32c0ec['dispose']()),this['_cursorShapes']=[];}[_0x2da18b(0x132)](){const _0x3d796f=_0x2da18b,_0x196e83=[_0x1acd90['id']];this[_0x3d796f(0x206)](this['_commandService'][_0x3d796f(0x3a9)](_0x48a8e8=>{const _0x742d20=_0x3d796f;_0x196e83[_0x742d20(0x421)](_0x48a8e8['id'])&&_0x48a8e8[_0x742d20(0x338)][_0x742d20(0x380)]===this['_context']['unitId']&&this[_0x742d20(0x160)]();}));}[_0x2da18b(0x1cf)](){const _0x2959e9=_0x2da18b;this['disposeWithMe'](_0x10c8e6(this['_context'][_0x2959e9(0x418)][_0x2959e9(0x217)])[_0x2959e9(0x29b)](_0x333799(_0xa59f75=>_0xa59f75[_0x2959e9(0x3f5)]===_0x44019e[_0x2959e9(0x20a)]),_0x71005e(0x10))['subscribe'](()=>{const _0x47b29d=_0x2959e9;this[_0x47b29d(0x160)]();}));}};Dt=Fr([xe(0x1,_0x24691e(_0x386e72)),xe(0x2,_0x24691e(pe)),xe(0x3,_0x18280b),xe(0x4,_0x24691e(_0x5074d3))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0x24438a{constructor(_0x564ea1,_0xd637dc){const _0x575db1=_0x2da18b;super(_0x564ea1,_0xd637dc),l(this,_0x575db1(0x319)),l(this,'_hovered',!0x1),l(this,_0x575db1(0x354)),l(this,'_name',''),l(this,_0x575db1(0x14d),'top'),l(this,'_backgroundColor'),(_0xd637dc&&this['setShapeProps'](_0xd637dc),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x575db1(0x3d3)]({'hovered':!0x0})),this['onPointerLeave$'][_0x575db1(0x21a)](()=>this[_0x575db1(0x3d3)]({'hovered':!0x1})));}[_0x2da18b(0x3d3)](_0x59999b){const _0x189373=_0x2da18b;var _0x3db351,_0x243ef9,_0x39e881,_0x408837,_0x1ae896,_0x97de11;this[_0x189373(0x319)]=(_0x3db351=_0x59999b['color'])!=null?_0x3db351:this[_0x189373(0x319)],this[_0x189373(0x3f1)]=(_0x243ef9=_0x59999b['hovered'])!=null?_0x243ef9:this['_hovered'],this[_0x189373(0x354)]=(_0x39e881=_0x59999b['range'])!=null?_0x39e881:this[_0x189373(0x354)],this[_0x189373(0x197)]=(_0x408837=_0x59999b[_0x189373(0x45c)])!=null?_0x408837:this['_name'],this[_0x189373(0x14d)]=(_0x1ae896=_0x59999b[_0x189373(0x3a3)])!=null?_0x1ae896:this[_0x189373(0x14d)],this['_backgroundColor']=(_0x97de11=_0x59999b['backgroundColor'])!=null?_0x97de11:this['_backgroundColor'],this['transformByState']({'width':_0x59999b['width'],'height':_0x59999b[_0x189373(0x2ba)]});}[_0x2da18b(0x207)](_0x50e98c){const _0xb18b53=_0x2da18b,{row:_0x31065e,column:_0x5e5d55}=_0x50e98c;if(_0x31065e>=this[_0xb18b53(0x354)]['startRow']&&_0x31065e<=this[_0xb18b53(0x354)][_0xb18b53(0x434)]&&_0x5e5d55>=this[_0xb18b53(0x354)]['startColumn']&&_0x5e5d55<=this['_range']['endColumn']){this[_0xb18b53(0x3d3)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x1dcfac){return!0x1;}['_draw'](_0x28cc24){const _0x41964e=_0x2da18b;_0x2eb7b4[_0x41964e(0x448)](_0x28cc24,{'width':this[_0x41964e(0x33f)],'height':this[_0x41964e(0x2ba)],'strokeWidth':Gr,'stroke':this[_0x41964e(0x319)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x41964e(0x3f1)]&&(_0x28cc24[_0x41964e(0x26f)](),_0x28cc24[_0x41964e(0x343)](0x1,0x0,0x0,0x1,this[_0x41964e(0x33f)],this[_0x41964e(0x14d)]===_0x41964e(0x43a)?0x0:-Le),st['drawWith'](_0x28cc24,{'text':this[_0x41964e(0x197)],'color':this['_color']}),_0x28cc24['restore']());}}var Kr=Object['defineProperty'],Xr=Object[_0x2da18b(0x2b8)],Jr=(_0x5e67fc,_0x55365b,_0x1e6c36,_0xfea32a)=>{const _0x2e6d4c=_0x2da18b;for(var _0x484eba=_0xfea32a>0x1?void 0x0:_0xfea32a?Xr(_0x55365b,_0x1e6c36):_0x55365b,_0x2ef9f5=_0x5e67fc[_0x2e6d4c(0x1a8)]-0x1,_0xd4f006;_0x2ef9f5>=0x0;_0x2ef9f5--)(_0xd4f006=_0x5e67fc[_0x2ef9f5])&&(_0x484eba=(_0xfea32a?_0xd4f006(_0x55365b,_0x1e6c36,_0x484eba):_0xd4f006(_0x484eba))||_0x484eba);return _0xfea32a&&_0x484eba&&Kr(_0x55365b,_0x1e6c36,_0x484eba),_0x484eba;},mt=(_0x210dce,_0x4cd47d)=>(_0x3584c8,_0x284e1e)=>_0x4cd47d(_0x3584c8,_0x284e1e,_0x210dce);const qr=0x1389;let wt=class extends _0x13b3a6{constructor(_0x393bc8,_0x3d256e,_0x4ac59f,_0x1bfc94){const _0x1eda9c=_0x2da18b;super(),l(this,_0x1eda9c(0x2b1),new Set()),l(this,_0x1eda9c(0x43b),null),(this['_context']=_0x393bc8,this[_0x1eda9c(0x348)]=_0x3d256e,this[_0x1eda9c(0x3c1)]=_0x4ac59f,this['_themeService']=_0x1bfc94,this[_0x1eda9c(0x1c5)]());}[_0x2da18b(0x1c5)](){const _0x542e41=_0x2da18b;this['_sheetSkeletonManagerService'][_0x542e41(0x1fc)][_0x542e41(0x29b)](_0x17e7c5(this[_0x542e41(0x3ab)]),_0x1e9fa8(_0x1a0760=>{const _0x1259e2=_0x542e41;if(_0x1a0760){const _0xd532fa=_0x1a0760['sheetId'];return _0x599ee5(this[_0x1259e2(0x3c1)][_0x1259e2(0x2cf)](this['_context'][_0x1259e2(0x380)]),this[_0x1259e2(0x3de)]['currentTheme$'])[_0x1259e2(0x29b)](_0x5ddac4(([_0x26078e,_0x4fbaa3])=>{const _0x34a086=_0x1259e2,_0x1749f0=new Map();return _0x26078e[_0x34a086(0x137)]((_0x10568f,_0x14ff80)=>{const _0x120f6e=_0x34a086;if(_0x10568f[_0x120f6e(0x23b)]===_0xd532fa){const _0x3950c5={..._0x10568f};_0x3950c5['color']=_0x4fbaa3[_0x10568f[_0x120f6e(0x183)]],_0x1749f0[_0x120f6e(0x276)](_0x14ff80,_0x3950c5);}}),{'skeleton':_0x1a0760,'cursors':_0x1749f0};}));}return _0x2576f8({'skeleton':null,'cursors':new Map()});}))[_0x542e41(0x146)](({skeleton:_0x2193ee,cursors:_0x1444a9})=>{const _0x5db3f9=_0x542e41;this[_0x5db3f9(0x482)](),_0x2193ee&&this[_0x5db3f9(0x3c6)](_0x2193ee,_0x1444a9);}),this[_0x542e41(0x348)]['currentSkeleton$']['subscribe'](_0x1e52ac=>{const _0x752c89=_0x542e41;if(_0x1e52ac==null)return;const {skeleton:_0x180f4f}=_0x1e52ac,{scene:_0x71e36}=this['_context'];_0x71e36[_0x752c89(0x163)][_0x752c89(0x21a)](_0x77ae19(_0x44e579=>{const _0x4a8cb4=_0x752c89;var _0x879068,_0x32067f;const {offsetX:_0x4af944,offsetY:_0x540b78}=_0x44e579,{x:_0x3e78af,y:_0x5c76d1}=_0x71e36[_0x4a8cb4(0x203)](_0x2adc66['FromArray']([_0x4af944,_0x540b78])),{scaleX:_0x386b83,scaleY:_0x31018d}=_0x71e36[_0x4a8cb4(0x368)](),_0x4833f3=_0x71e36[_0x4a8cb4(0x3d1)](_0x48000c[_0x4a8cb4(0x294)]),_0x409d76=_0x71e36['getVpScrollXYInfoByPosToVp'](_0x2adc66['FromArray']([_0x3e78af,_0x5c76d1]),_0x4833f3),_0x493e2d=_0x180f4f[_0x4a8cb4(0x3fe)](_0x4af944,_0x540b78,_0x386b83,_0x31018d,_0x409d76);((_0x879068=this[_0x4a8cb4(0x43b)])==null?void 0x0:_0x879068[_0x4a8cb4(0x277)])===_0x493e2d[_0x4a8cb4(0x277)]&&((_0x32067f=this[_0x4a8cb4(0x43b)])==null?void 0x0:_0x32067f[_0x4a8cb4(0x2ad)])===_0x493e2d[_0x4a8cb4(0x2ad)]||this[_0x4a8cb4(0x2b1)][_0x4a8cb4(0x137)](_0x217bfd=>{const _0x4f57d8=_0x4a8cb4;_0x217bfd[_0x4f57d8(0x207)](_0x493e2d);});},0x64));});}[_0x2da18b(0x3c6)](_0x44c563,_0x446257){const _0x365ffb=_0x2da18b;var _0x297f8e;const _0x45bf84=(_0x297f8e=this[_0x365ffb(0x348)][_0x365ffb(0x339)]())==null?void 0x0:_0x297f8e[_0x365ffb(0x241)];if(!_0x45bf84)return;const _0x157a69=this[_0x365ffb(0x12e)]();if(!_0x157a69)return;this[_0x365ffb(0x2b1)][_0x365ffb(0x137)](_0x11b94d=>{_0x11b94d['makeDirty']();});const {scene:_0x325387}=_0x157a69,_0x1fdf10=zr(Array['from'](_0x446257['values']()))[_0x365ffb(0x2eb)](_0x58aa1a=>{const {color:_0x80cb60,range:_0x4b99ed,name:_0x477b68,selection:_0x24699c,sheetID:_0x344b6b}=_0x58aa1a,{startColumn:_0x5e219c,startRow:_0x1827df,endColumn:_0x30146b,endRow:_0x2ec232}=_0x4b99ed,_0x5398e0=_0x364cb7(_0x1827df,_0x5e219c,_0x325387,_0x45bf84),_0x50a81a=_0x364cb7(_0x2ec232,_0x30146b,_0x325387,_0x45bf84),{columnHeaderHeightAndMarginTop:_0xcdc5cc}=_0x45bf84,{startX:_0x25d731,startY:_0xf24d35}=_0x5398e0,{endX:_0x2eee43,endY:_0x2bde3e}=_0x50a81a,_0x196465=_0x2eee43-_0x25d731,_0x17ff7b=_0x2bde3e-_0xf24d35,_0x4b2130={'labelPosition':_0xf24d35-_0xcdc5cc>=Le?'top':'bottom','sheetID':_0x344b6b,'range':_0x4b99ed,'color':_0x80cb60,'name':_0x477b68,'selection':_0x24699c,'left':_0x25d731,'top':_0xf24d35,'width':_0x196465,'height':_0x17ff7b,'evented':!0x1,'zIndex':qr};return new Yr(_0x477b68,_0x4b2130);});_0x325387[_0x365ffb(0x1ae)](_0x1fdf10,Wr),this[_0x365ffb(0x2b1)]=new Set(_0x1fdf10);}[_0x2da18b(0x482)](){const _0x1c4945=_0x2da18b;var _0x2315e4;(_0x2315e4=this['_cursors'])==null||_0x2315e4[_0x1c4945(0x137)](_0x1309dd=>_0x1309dd[_0x1c4945(0x18e)]());}['_getSheetObject'](){const _0x5e3f61=_0x2da18b;return _0x41bfa0(this[_0x5e3f61(0x3b4)]['unit'],this['_context']);}};wt=Jr([mt(0x1,_0x24691e(_0x17b47d)),mt(0x2,_0x24691e(pe)),mt(0x3,_0x24691e(_0x5074d3))],wt);function zr(_0x2529d4){const _0x9318c=_0x2da18b,_0x3cb0ff=new Map();return _0x2529d4['forEach'](_0xc0c255=>{const _0x29c232=_0x44b4;if(_0x3cb0ff[_0x29c232(0x141)](_0xc0c255[_0x29c232(0x2b0)])){const _0x40c8a4=_0x3cb0ff[_0x29c232(0x2dd)](_0xc0c255[_0x29c232(0x2b0)]);_0x40c8a4['name']+=',\x20'+_0xc0c255[_0x29c232(0x45c)];}else _0x3cb0ff[_0x29c232(0x276)](_0xc0c255['selection'],_0xc0c255);}),Array[_0x9318c(0x372)](_0x3cb0ff[_0x9318c(0x342)]());}var N=function(){const _0x5c7ca6=_0x2da18b;return N=Object[_0x5c7ca6(0x1d0)]||function(_0x144434){const _0x1a99be=_0x5c7ca6;for(var _0x2fa9ab,_0x239b2f=0x1,_0x1b94a5=arguments['length'];_0x239b2f<_0x1b94a5;_0x239b2f++){_0x2fa9ab=arguments[_0x239b2f];for(var _0x53c768 in _0x2fa9ab)Object[_0x1a99be(0x1ba)][_0x1a99be(0x48b)][_0x1a99be(0x19e)](_0x2fa9ab,_0x53c768)&&(_0x144434[_0x53c768]=_0x2fa9ab[_0x53c768]);}return _0x144434;},N[_0x5c7ca6(0x3f6)](this,arguments);},Zr=function(_0xa1c8f8,_0xdfb39b){const _0x2736b6=_0x2da18b;var _0x1f63c0={};for(var _0x34fe43 in _0xa1c8f8)Object['prototype'][_0x2736b6(0x48b)]['call'](_0xa1c8f8,_0x34fe43)&&_0xdfb39b[_0x2736b6(0x2ed)](_0x34fe43)<0x0&&(_0x1f63c0[_0x34fe43]=_0xa1c8f8[_0x34fe43]);if(_0xa1c8f8!=null&&typeof Object['getOwnPropertySymbols']==_0x2736b6(0x275)){for(var _0x2d6c6b=0x0,_0x34fe43=Object['getOwnPropertySymbols'](_0xa1c8f8);_0x2d6c6b<_0x34fe43[_0x2736b6(0x1a8)];_0x2d6c6b++)_0xdfb39b[_0x2736b6(0x2ed)](_0x34fe43[_0x2d6c6b])<0x0&&Object[_0x2736b6(0x1ba)]['propertyIsEnumerable'][_0x2736b6(0x19e)](_0xa1c8f8,_0x34fe43[_0x2d6c6b])&&(_0x1f63c0[_0x34fe43[_0x2d6c6b]]=_0xa1c8f8[_0x34fe43[_0x2d6c6b]]);}return _0x1f63c0;},Wt=_0x14ba75(function(_0x5bb23e,_0x59b958){const _0x3ba100=_0x2da18b;var _0x5ce6d4=_0x5bb23e[_0x3ba100(0x3d5)],_0xef4fef=_0x5bb23e['id'],_0x381ab8=_0x5bb23e[_0x3ba100(0x153)],_0x3b3733=_0x5bb23e['extend'],_0x561a85=Zr(_0x5bb23e,[_0x3ba100(0x3d5),'id',_0x3ba100(0x153),_0x3ba100(0x1c3)]),_0x13f0c0='univerjs-icon\x20univerjs-icon-'['concat'](_0xef4fef,'\x20')[_0x3ba100(0x224)](_0x381ab8||'')['trim'](),_0x1548ff=_0xe64086('_'['concat'](to()));return ks(_0x5ce6d4,''[_0x3ba100(0x224)](_0xef4fef),{'defIds':_0x5ce6d4[_0x3ba100(0x1dd)],'idSuffix':_0x1548ff[_0x3ba100(0x3c3)]},N({'ref':_0x59b958,'className':_0x13f0c0},_0x561a85),_0x3b3733);});function ks(_0x417918,_0x3a23af,_0x3b3c35,_0xea1e10,_0x320500){const _0x450ca5=_0x2da18b;return _0x1d57c6(_0x417918[_0x450ca5(0x390)],N(N({'key':_0x3a23af},Qr(_0x417918,_0x3b3c35,_0x320500)),_0xea1e10),(eo(_0x417918,_0x3b3c35)[_0x450ca5(0x47a)]||[])[_0x450ca5(0x2eb)](function(_0x1fee2f,_0x34ebf3){const _0x2479f7=_0x450ca5;return ks(_0x1fee2f,''['concat'](_0x3a23af,'-')[_0x2479f7(0x224)](_0x417918[_0x2479f7(0x390)],'-')[_0x2479f7(0x224)](_0x34ebf3),_0x3b3c35,void 0x0,_0x320500);}));}function Qr(_0x330cff,_0x337a3f,_0x2ed27e){const _0x9fdf53=_0x2da18b;var _0x202bcf=N({},_0x330cff['attrs']);_0x2ed27e!=null&&_0x2ed27e[_0x9fdf53(0x19d)]&&_0x202bcf[_0x9fdf53(0x46f)]==='colorChannel1'&&(_0x202bcf['fill']=_0x2ed27e[_0x9fdf53(0x19d)]);var _0x4b1fd2=_0x337a3f[_0x9fdf53(0x1dd)];return!_0x4b1fd2||_0x4b1fd2['length']===0x0||(_0x330cff[_0x9fdf53(0x390)]==='use'&&_0x202bcf['xlink:href']&&(_0x202bcf[_0x9fdf53(0x3b3)]=_0x202bcf[_0x9fdf53(0x3b3)]+_0x337a3f['idSuffix']),Object[_0x9fdf53(0x284)](_0x202bcf)[_0x9fdf53(0x137)](function(_0x544801){const _0x592f89=_0x9fdf53;var _0x5490fa=_0x544801[0x0],_0x286439=_0x544801[0x1];typeof _0x286439==_0x592f89(0x2ab)&&(_0x202bcf[_0x5490fa]=_0x286439[_0x592f89(0x136)](/url\(#(.*)\)/,_0x592f89(0x246)[_0x592f89(0x224)](_0x337a3f['idSuffix'],')')));})),_0x202bcf;}function eo(_0x1f691f,_0xb3fc52){const _0x530a2d=_0x2da18b;var _0x45a651,_0x4c78dd=_0xb3fc52[_0x530a2d(0x1dd)];return!_0x4c78dd||_0x4c78dd[_0x530a2d(0x1a8)]===0x0?_0x1f691f:_0x1f691f[_0x530a2d(0x390)]===_0x530a2d(0x274)&&(!((_0x45a651=_0x1f691f[_0x530a2d(0x47a)])===null||_0x45a651===void 0x0)&&_0x45a651[_0x530a2d(0x1a8)])?N(N({},_0x1f691f),{'children':_0x1f691f['children'][_0x530a2d(0x2eb)](function(_0x22e307){const _0x5ac507=_0x530a2d;return typeof _0x22e307[_0x5ac507(0x29a)]['id']==_0x5ac507(0x2ab)&&_0x4c78dd&&_0x4c78dd['indexOf'](_0x22e307[_0x5ac507(0x29a)]['id'])>-0x1?N(N({},_0x22e307),{'attrs':N(N({},_0x22e307[_0x5ac507(0x29a)]),{'id':_0x22e307[_0x5ac507(0x29a)]['id']+_0xb3fc52[_0x5ac507(0x3be)]})}):_0x22e307;})}):_0x1f691f;}function to(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}Wt[_0x2da18b(0x225)]=_0x2da18b(0x329);var so={'tag':_0x2da18b(0x290),'attrs':{'fill':_0x2da18b(0x483),'viewBox':'0\x200\x2016\x2016','width':_0x2da18b(0x369),'height':_0x2da18b(0x369)},'children':[{'tag':'g','attrs':{'clipPath':_0x2da18b(0x3e2)},'children':[{'tag':_0x2da18b(0x1d1),'attrs':{'stroke':_0x2da18b(0x22d),'d':_0x2da18b(0x1c0),'strokeLinecap':_0x2da18b(0x34a),'strokeLinejoin':_0x2da18b(0x34a),'strokeWidth':1.2}}]},{'tag':_0x2da18b(0x274),'attrs':{},'children':[{'tag':_0x2da18b(0x312),'attrs':{'id':_0x2da18b(0x46e)},'children':[{'tag':_0x2da18b(0x1d1),'attrs':{'fill':_0x2da18b(0x3b5),'d':_0x2da18b(0x226)}}]}]}],'defIds':[_0x2da18b(0x46e)]},Bs=_0x14ba75(function(_0x52e876,_0x488241){const _0xb370d2=_0x2da18b;return _0x1d57c6(Wt,Object[_0xb370d2(0x1d0)]({},_0x52e876,{'id':_0xb370d2(0x1de),'ref':_0x488241,'icon':so}));});Bs['displayName']=_0x2da18b(0x299);var io={'tag':_0x2da18b(0x290),'attrs':{'fill':_0x2da18b(0x483),'viewBox':_0x2da18b(0x3d2),'width':'1em','height':_0x2da18b(0x369)},'children':[{'tag':'g','attrs':{'clipPath':_0x2da18b(0x23e)},'children':[{'tag':_0x2da18b(0x1d1),'attrs':{'stroke':_0x2da18b(0x22d),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x2da18b(0x34a),'strokeLinejoin':_0x2da18b(0x34a),'strokeWidth':1.2}}]},{'tag':_0x2da18b(0x274),'attrs':{},'children':[{'tag':_0x2da18b(0x312),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x2da18b(0x1d1),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x2da18b(0x1cb)}}]}]}],'defIds':[_0x2da18b(0x196)]},Vs=_0x14ba75(function(_0x2fbe11,_0x544621){return _0x1d57c6(Wt,Object['assign']({},_0x2fbe11,{'id':'on-line-single','ref':_0x544621,'icon':io}));});Vs[_0x2da18b(0x225)]=_0x2da18b(0x1d2);function Fs(_0x113817){const _0x1c77c3=_0x2da18b;var _0x2935d5,_0xc160e1,_0x4abfdd='';if(typeof _0x113817==_0x1c77c3(0x2ab)||typeof _0x113817==_0x1c77c3(0x46b))_0x4abfdd+=_0x113817;else{if(typeof _0x113817==_0x1c77c3(0x25e)){if(Array[_0x1c77c3(0x1f8)](_0x113817)){var _0x1ed988=_0x113817[_0x1c77c3(0x1a8)];for(_0x2935d5=0x0;_0x2935d5<_0x1ed988;_0x2935d5++)_0x113817[_0x2935d5]&&(_0xc160e1=Fs(_0x113817[_0x2935d5]))&&(_0x4abfdd&&(_0x4abfdd+='\x20'),_0x4abfdd+=_0xc160e1);}else{for(_0xc160e1 in _0x113817)_0x113817[_0xc160e1]&&(_0x4abfdd&&(_0x4abfdd+='\x20'),_0x4abfdd+=_0xc160e1);}}}return _0x4abfdd;}function no(){for(var _0x7ff285,_0x3f87a0,_0x313fbb=0x0,_0x4381b3='',_0x4f8dac=arguments['length'];_0x313fbb<_0x4f8dac;_0x313fbb++)(_0x7ff285=arguments[_0x313fbb])&&(_0x3f87a0=Fs(_0x7ff285))&&(_0x4381b3&&(_0x4381b3+='\x20'),_0x4381b3+=_0x3f87a0);return _0x4381b3;}const ro=_0x2da18b(0x3ed),oo=_0x2da18b(0x313),ao=_0x2da18b(0x31d),co=_0x2da18b(0x145),ho=_0x2da18b(0x2d6),we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x525c85){const _0x584cb2=_0x2da18b;switch(_0x525c85){case w[_0x584cb2(0x2e9)]:return _0x584cb2(0x2df);case w['CONFLICT']:return'collabStatus.conflict';case w[_0x584cb2(0x263)]:return _0x584cb2(0x334);case w[_0x584cb2(0x408)]:return _0x584cb2(0x143);case w[_0x584cb2(0x18c)]:case w[_0x584cb2(0x435)]:case w['AWAITING_WITH_PENDING']:return _0x584cb2(0x213);case w[_0x584cb2(0x258)]:return _0x584cb2(0x2a1);}}function _o(_0x5c8a42){const _0x55b8f7=_0x2da18b,{status$:_0x5dca2a}=_0x5c8a42,_0x52de21=_0x3636b2(_0x5dca2a,w['NOT_COLLAB']),_0x274c00=_0x2bb079(_0x1695f3),_0x33c8d8=_0x2bb079(ce),_0x1ed6c4=_0x52de21!==w['OFFLINE'],_0x1fdbc5=_0x274c00['t'](lo(_0x52de21)),_0x421213=no(we[_0x55b8f7(0x45d)],{[we[_0x55b8f7(0x25a)]]:_0x1ed6c4,[we[_0x55b8f7(0x2c1)]]:!_0x1ed6c4}),_0x53e2e6=_0x1ed6c4?_0x1e38e7['createElement'](Vs,null):_0x1e38e7[_0x55b8f7(0x389)](Bs,null),_0x158f22=_0x54fd35(()=>{_0x1ed6c4||_0x33c8d8['reconnect']();},[_0x1ed6c4,_0x33c8d8]);function _0x29252b(){const _0x4e9967=_0x55b8f7;return _0x1e38e7[_0x4e9967(0x389)](_0x4e9967(0x383),{'className':_0x421213,'onClick':_0x158f22},_0x1e38e7[_0x4e9967(0x389)](_0x4e9967(0x383),{'className':we[_0x4e9967(0x3f2)]},_0x53e2e6),_0x1e38e7[_0x4e9967(0x389)](_0x4e9967(0x383),{'className':we[_0x4e9967(0x30f)]},_0x1fdbc5));}return _0x1ed6c4?_0x29252b():_0x1e38e7[_0x55b8f7(0x389)](_0xc9e9c9,{'title':_0x274c00['t'](_0x55b8f7(0x1f1))},_0x29252b());}var uo=Object[_0x2da18b(0x151)],fo=Object['getOwnPropertyDescriptor'],mo=(_0x1235bc,_0x5122c8,_0xd50bd7,_0x2bf1ad)=>{const _0x11d83f=_0x2da18b;for(var _0x397398=_0x2bf1ad>0x1?void 0x0:_0x2bf1ad?fo(_0x5122c8,_0xd50bd7):_0x5122c8,_0x4b0cb2=_0x1235bc[_0x11d83f(0x1a8)]-0x1,_0x36f623;_0x4b0cb2>=0x0;_0x4b0cb2--)(_0x36f623=_0x1235bc[_0x4b0cb2])&&(_0x397398=(_0x2bf1ad?_0x36f623(_0x5122c8,_0xd50bd7,_0x397398):_0x36f623(_0x397398))||_0x397398);return _0x2bf1ad&&_0x397398&&uo(_0x5122c8,_0xd50bd7,_0x397398),_0x397398;},He=(_0x355d51,_0x1e07a9)=>(_0x557248,_0x1deb5d)=>_0x1e07a9(_0x557248,_0x1deb5d,_0x355d51);let Ue=class extends _0x3bc0d2{constructor(_0x4b0908,_0x431a2f,_0x11c75f,_0x127cad){const _0x95d188=_0x2da18b;super(),l(this,_0x95d188(0x155),new _0x295ce3(w[_0x95d188(0x408)])),(this[_0x95d188(0x406)]=_0x4b0908,this[_0x95d188(0x209)]=_0x431a2f,this['_injector']=_0x11c75f,this[_0x95d188(0x282)]=_0x127cad,this[_0x95d188(0x2bb)](),this[_0x95d188(0x444)]());}[_0x2da18b(0x444)](){const _0x1ceb29=_0x2da18b;this[_0x1ceb29(0x206)](this[_0x1ceb29(0x406)]['focused$'][_0x1ceb29(0x29b)](_0xe06e10(()=>{const _0x13a589=_0x1ceb29,_0x598d40=this[_0x13a589(0x406)]['getFocusedUnit']();return _0x598d40?this[_0x13a589(0x282)][_0x13a589(0x1f4)](_0x598d40[_0x13a589(0x3d4)]()):_0x2576f8(null);}),_0xe06e10(_0x1879ce=>_0x1879ce?_0x1879ce[_0x1ceb29(0x271)]:_0x2576f8(w[_0x1ceb29(0x408)])))[_0x1ceb29(0x146)](_0x435c8c=>{const _0x4943d4=_0x1ceb29;this[_0x4943d4(0x155)][_0x4943d4(0x33a)](_0x435c8c);}));}[_0x2da18b(0x2bb)](){const _0x12ac0a=_0x2da18b;this['disposeWithMe'](this[_0x12ac0a(0x209)][_0x12ac0a(0x2b5)](_0x23ebca['HEADER_MENU'],()=>_0x35553f(go({'status$':this[_0x12ac0a(0x155)]['asObservable']()}),this[_0x12ac0a(0x272)])));}};Ue=mo([He(0x0,_0x4af863),He(0x1,_0x8ec652),He(0x2,_0x24691e(_0x129c7a)),He(0x3,_0x24691e(Ae))],Ue);function go(_0x40b28c){const {status$:_0x36649c}=_0x40b28c;return function(){const _0x55cede=_0x44b4;return _0x1e38e7[_0x55cede(0x389)](_o,{'status$':_0x36649c});};}const Ws=_0x4f53b0(_0x2da18b(0x2ef));var So=Object['defineProperty'],po=Object[_0x2da18b(0x2b8)],vo=(_0x219500,_0x409eeb,_0x2387f2,_0x32c61e)=>{const _0x3c6568=_0x2da18b;for(var _0x386cdf=_0x32c61e>0x1?void 0x0:_0x32c61e?po(_0x409eeb,_0x2387f2):_0x409eeb,_0x818da3=_0x219500[_0x3c6568(0x1a8)]-0x1,_0x2fc36c;_0x818da3>=0x0;_0x818da3--)(_0x2fc36c=_0x219500[_0x818da3])&&(_0x386cdf=(_0x32c61e?_0x2fc36c(_0x409eeb,_0x2387f2,_0x386cdf):_0x2fc36c(_0x386cdf))||_0x386cdf);return _0x32c61e&&_0x386cdf&&So(_0x409eeb,_0x2387f2,_0x386cdf),_0x386cdf;},me=(_0x43869b,_0x5f0382)=>(_0x23fc4d,_0x5c591b)=>_0x5f0382(_0x23fc4d,_0x5c591b,_0x43869b);let qe=class extends _0x13b3a6{constructor(_0x46014f,_0x5df42c,_0x316540,_0x36781b,_0x296d05,_0x47be93){const _0x1cd19b=_0x2da18b;super(),this['_urlService']=_0x46014f,this['_logService']=_0x5df42c,this['_commandService']=_0x316540,this[_0x1cd19b(0x1e1)]=_0x36781b,this[_0x1cd19b(0x301)]=_0x296d05,_0x47be93?_0x47be93==null||_0x47be93[_0x1cd19b(0x25f)]()['then'](()=>this[_0x1cd19b(0x1c5)]()):(this['_logService'][_0x1cd19b(0x2e0)](_0x1cd19b(0x351),_0x1cd19b(0x1b7)),this['_init']());}async[_0x2da18b(0x1c5)](){const _0x49c8a5=_0x2da18b,_0x2d44fb=this['_urlService'][_0x49c8a5(0x186)]('unit'),_0xca1f50=this[_0x49c8a5(0x33d)]['getParam'](_0x49c8a5(0x3f5));if(!_0x2d44fb||!_0xca1f50){this['_logService'][_0x49c8a5(0x2e0)](_0x49c8a5(0x351),_0x49c8a5(0x1e9));return;}switch(Number(_0xca1f50)){case H[_0x49c8a5(0x2d4)]:{const _0x12ccd7=await this[_0x49c8a5(0x35d)](_0x2d44fb);this[_0x49c8a5(0x1aa)](_0x12ccd7);break;}case H['UNIVER_DOC']:{await this['_loadDoc'](_0x2d44fb);break;}default:{this['_logService'][_0x49c8a5(0x490)](_0x49c8a5(0x351),_0x49c8a5(0x1b9));break;}}}async['_setupSubUnitSync'](_0x367fab){const _0x469715=_0x2da18b;await this[_0x469715(0x37d)](_0x367fab),_0x367fab[_0x469715(0x37f)][_0x469715(0x29b)](_0x1cea38(this['dispose$']))[_0x469715(0x146)](_0x594ae7=>{const _0x55714f=_0x469715;_0x594ae7&&this[_0x55714f(0x3e7)](_0x594ae7);}),this['_urlService'][_0x469715(0x44d)]['pipe'](_0x1cea38(this[_0x469715(0x3ab)]))['subscribe'](()=>this[_0x469715(0x37d)](_0x367fab));}['_updateURLWithCurrentState'](_0x1fbb76,_0x5e748f=!0x1){const _0x31f440=_0x2da18b,_0x77dacf=this['_urlService'][_0x31f440(0x186)](_0x31f440(0x177));_0x1fbb76[_0x31f440(0x326)]()!==_0x77dacf&&this[_0x31f440(0x33d)]['setParam']('subunit',_0x1fbb76[_0x31f440(0x326)](),_0x5e748f);}async['_updateSubUnitFromURLParams'](_0x55dd99){const _0x5c285a=_0x2da18b;var _0x175ee9;const _0x1e069c=this[_0x5c285a(0x33d)][_0x5c285a(0x186)]('subunit');if(!_0x1e069c||!_0x55dd99['getSheetBySheetId'](_0x1e069c)){const _0xa8c053=_0x55dd99[_0x5c285a(0x461)]()[0x0],_0x48ee35=_0x55dd99[_0x5c285a(0x2d9)](_0xa8c053);if(!_0x48ee35)return;this['_updateURLWithCurrentState'](_0x48ee35,!0x0),await this[_0x5c285a(0x457)]['executeCommand'](_0x390cc8['id'],{'unitId':_0x55dd99[_0x5c285a(0x3d4)](),'subUnitId':_0xa8c053});return;}((_0x175ee9=_0x55dd99['getActiveSheet']())==null?void 0x0:_0x175ee9[_0x5c285a(0x326)]())!==_0x1e069c&&await this[_0x5c285a(0x457)][_0x5c285a(0x22a)](_0x390cc8['id'],{'unitId':_0x55dd99[_0x5c285a(0x3d4)](),'subUnitId':_0x1e069c});}async[_0x2da18b(0x35d)](_0x441963){const _0x21276e=_0x2da18b;let _0x34711d=0x0;const _0x5124a=await this[_0x21276e(0x1e1)][_0x21276e(0x1f0)](_0x441963);return _0x5124a&&(_0x5124a['awaitingChangeset']||_0x5124a['mutations'][_0x21276e(0x1a8)]!==0x0)&&(_0x34711d=_0x5124a['rev']),_0x34711d===0x0&&this[_0x21276e(0x356)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x21276e(0x301)][_0x21276e(0x147)](_0x441963,_0x34711d);}async['_loadDoc'](_0xf21324){const _0x4bc0e7=_0x2da18b;let _0x12d3d3=0x0;const _0x87e937=await this[_0x4bc0e7(0x1e1)][_0x4bc0e7(0x1f0)](_0xf21324);return _0x87e937&&(_0x87e937[_0x4bc0e7(0x279)]||_0x87e937[_0x4bc0e7(0x154)][_0x4bc0e7(0x1a8)]!==0x0)&&(_0x12d3d3=_0x87e937['rev']),_0x12d3d3===0x0&&this[_0x4bc0e7(0x356)][_0x4bc0e7(0x2e0)](_0x4bc0e7(0x351),_0x4bc0e7(0x44c)),this[_0x4bc0e7(0x301)][_0x4bc0e7(0x222)](_0xf21324,_0x12d3d3);}};qe=vo([me(0x0,Ws),me(0x1,_0x16c619),me(0x2,_0x18280b),me(0x3,_0x24691e(D)),me(0x4,_0x24691e(_0x916a77)),me(0x5,_0x1be607(_0x5658b1))],qe);var Io=Object[_0x2da18b(0x151)],Eo=Object[_0x2da18b(0x2b8)],Co=(_0x3e544a,_0x205ce1,_0x346cdf,_0x1885d1)=>{for(var _0xbe1812=_0x1885d1>0x1?void 0x0:_0x1885d1?Eo(_0x205ce1,_0x346cdf):_0x205ce1,_0x123491=_0x3e544a['length']-0x1,_0x13b70e;_0x123491>=0x0;_0x123491--)(_0x13b70e=_0x3e544a[_0x123491])&&(_0xbe1812=(_0x1885d1?_0x13b70e(_0x205ce1,_0x346cdf,_0xbe1812):_0x13b70e(_0xbe1812))||_0xbe1812);return _0x1885d1&&_0xbe1812&&Io(_0x205ce1,_0x346cdf,_0xbe1812),_0xbe1812;},fs=(_0x22e2fb,_0x53827b)=>(_0x2d4225,_0x43e6bd)=>_0x53827b(_0x2d4225,_0x43e6bd,_0x22e2fb);const bo=_0x2da18b(0x16c),To=_0x2da18b(0x375);let ze=class extends _0x3bc0d2{constructor(_0x3a7249,_0x4fe11f){const _0x2204dd=_0x2da18b;super(),this[_0x2204dd(0x406)]=_0x3a7249,this['_configService']=_0x4fe11f,this[_0x2204dd(0x1c5)]();}[_0x2da18b(0x1c5)](){const _0x4987ad=_0x2da18b;this[_0x4987ad(0x206)](this[_0x4987ad(0x406)][_0x4987ad(0x3dd)][_0x4987ad(0x146)](()=>{const _0x293825=_0x4987ad;var _0x3e3eae;const _0x1a33a3=this[_0x293825(0x406)]['getFocusedUnit']();let _0x50f502=(_0x3e3eae=this['_configService'][_0x293825(0x1bb)](bo))!=null?_0x3e3eae:To;_0x1a33a3 instanceof _0x40cd22&&(_0x50f502=_0x1a33a3['name']),document['title']=_0x50f502;}));}};ze=Co([fs(0x0,_0x4af863),fs(0x1,_0x4b95b7)],ze);var Ro=Object['defineProperty'],Oo=Object[_0x2da18b(0x2b8)],Do=(_0x45271a,_0x544272,_0x38e01d,_0x4770f8)=>{const _0x535f20=_0x2da18b;for(var _0x32ac79=_0x4770f8>0x1?void 0x0:_0x4770f8?Oo(_0x544272,_0x38e01d):_0x544272,_0x4136b8=_0x45271a[_0x535f20(0x1a8)]-0x1,_0x5e6562;_0x4136b8>=0x0;_0x4136b8--)(_0x5e6562=_0x45271a[_0x4136b8])&&(_0x32ac79=(_0x4770f8?_0x5e6562(_0x544272,_0x38e01d,_0x32ac79):_0x5e6562(_0x32ac79))||_0x32ac79);return _0x4770f8&&_0x32ac79&&Ro(_0x544272,_0x38e01d,_0x32ac79),_0x32ac79;},gt=(_0x1d3637,_0x20f9be)=>(_0x4307df,_0x2046db)=>_0x20f9be(_0x4307df,_0x2046db,_0x1d3637);let Ze=class{constructor(_0x18c189,_0x21c7d6,_0x440768){const _0x455d6e=_0x2da18b;this[_0x455d6e(0x205)]=_0x18c189,this[_0x455d6e(0x323)]=_0x21c7d6,this[_0x455d6e(0x27a)]=_0x440768,this[_0x455d6e(0x266)]();}[_0x2da18b(0x266)](){const _0x48ea38=_0x2da18b;this[_0x48ea38(0x323)][_0x48ea38(0x47c)]({'priority':0x1,'interceptor':(_0x4109e2,_0x176f6f)=>_0x176f6f(_0x4109e2)['pipe'](_0x3e80de(async _0x216226=>{const _0x458ad6=_0x48ea38,_0x81bef5=_0x216226;if(_0x81bef5[_0x458ad6(0x31a)]===0x191&&window[_0x458ad6(0x3e4)](this['localeService']['t']('auth.needGotoLoginAlert'))){const _0x37d61b=window[_0x458ad6(0x20e)](window[_0x458ad6(0x370)][_0x458ad6(0x305)]);window[_0x458ad6(0x370)][_0x458ad6(0x305)]=this[_0x458ad6(0x366)]()+_0x458ad6(0x34c)+_0x37d61b;}return _0x81bef5;}))});}[_0x2da18b(0x366)](){const _0x19175b=_0x2da18b;var _0x8b4d25,_0x2f3a84;const _0x886f4=this[_0x19175b(0x205)]['getConfig'](wn),_0x328134=this[_0x19175b(0x205)][_0x19175b(0x1bb)](L);return(_0x2f3a84=(_0x8b4d25=_0x328134==null?void 0x0:_0x328134[_0x19175b(0x204)])!=null?_0x8b4d25:_0x886f4)!=null?_0x2f3a84:Pn;}};Ze=Do([gt(0x0,_0x4b95b7),gt(0x1,_0x24691e(_0xa0ce64)),gt(0x2,_0x24691e(_0x1695f3))],Ze);var wo=Object[_0x2da18b(0x151)],Po=Object[_0x2da18b(0x2b8)],yo=(_0x355449,_0x5575a5,_0x22f8ad,_0x2860c4)=>{for(var _0x1f4cc8=_0x2860c4>0x1?void 0x0:_0x2860c4?Po(_0x5575a5,_0x22f8ad):_0x5575a5,_0x11631f=_0x355449['length']-0x1,_0x4df5d2;_0x11631f>=0x0;_0x11631f--)(_0x4df5d2=_0x355449[_0x11631f])&&(_0x1f4cc8=(_0x2860c4?_0x4df5d2(_0x5575a5,_0x22f8ad,_0x1f4cc8):_0x4df5d2(_0x1f4cc8))||_0x1f4cc8);return _0x2860c4&&_0x1f4cc8&&wo(_0x5575a5,_0x22f8ad,_0x1f4cc8),_0x1f4cc8;},ms=(_0x57f6fc,_0x32f4ba)=>(_0xcf8871,_0x5e06ce)=>_0x32f4ba(_0xcf8871,_0x5e06ce,_0x57f6fc);const No=_0x2da18b(0x254),Uo=_0x2da18b(0x371);let Pt=class extends _0x3bc0d2{constructor(_0x2d5650,_0x4241b4){const _0x380bbb=_0x2da18b;super(),this[_0x380bbb(0x36d)]=_0x2d5650,this['_configService']=_0x4241b4,this[_0x380bbb(0x170)]();}[_0x2da18b(0x170)](){const _0x216eef=_0x2da18b,_0x4f960b=this;this['disposeWithMe'](this['_HTTPService'][_0x216eef(0x47c)]({'priority':0x3e7,'interceptor':_0x618fae({'isMatch'(_0x335034){const _0x1fb38d=_0x216eef;var _0x422e75;if(_0x335034['method']==='POST'&&((_0x422e75=_0x335034[_0x1fb38d(0x2d1)])!=null&&_0x422e75[_0x1fb38d(0x318)])){const {objectID:_0x1fef63,objectType:_0x1032a4}=_0x335034['requestParams'][_0x1fb38d(0x318)]||{};if(!_0x1fef63||_0x1032a4===void 0x0)return!0x1;const _0x752254=_0x4f960b[_0x1fb38d(0x3b0)]()+'/'+_0x1032a4+_0x1fb38d(0x3e1)+_0x1fef63+_0x1fb38d(0x3c9);if(_0x335034[_0x1fb38d(0x250)]===_0x752254)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3f393d){const _0x585872=_0x216eef;var _0x40d4d8;return(_0x40d4d8=_0x3f393d[_0x585872(0x2d1)])==null?void 0x0:_0x40d4d8[_0x585872(0x318)];},'mergeParamsToRequest'(_0x55c39e,_0x14e090){const _0xde8a4c=_0x216eef,_0x41ac7d=_0x4f960b[_0xde8a4c(0x3b0)]()+'/-/object/-/batch_allowed',_0x256d55=_0x55c39e['reduce']((_0x15a094,_0x5e5f9e)=>{const _0x3e7dc8=_0xde8a4c,{unitID:_0x3d6dbc,objectID:_0x2dab00,objectType:_0x39df98,actions:_0x2d576d}=_0x5e5f9e;return _0x15a094[_0x3d6dbc]||(_0x15a094[_0x3d6dbc]={}),_0x15a094[_0x3d6dbc][_0x2dab00]||(_0x15a094[_0x3d6dbc][_0x2dab00]={'objectID':_0x2dab00,'objectType':_0x39df98,'actions':[]}),_0x15a094[_0x3d6dbc][_0x2dab00][_0x3e7dc8(0x2d5)][_0x3e7dc8(0x46c)](..._0x2d576d),_0x15a094;},{}),_0x25ae1e=[];for(const _0x1d3f2b in _0x256d55)for(const _0x29781b in _0x256d55[_0x1d3f2b]){const {actions:_0x2c0be1,objectType:_0x20d616}=_0x256d55[_0x1d3f2b][_0x29781b],_0x46af7a=[...new Set(_0x2c0be1)];_0x25ae1e[_0xde8a4c(0x46c)]({'unitID':_0x1d3f2b,'objectID':_0x29781b,'objectType':_0x20d616,'actions':_0x46af7a});}return new _0x4e3080(_0xde8a4c(0x303),_0x41ac7d,{'headers':_0x14e090[_0xde8a4c(0x2d0)],'withCredentials':_0x14e090[_0xde8a4c(0x422)],'responseType':_0x14e090[_0xde8a4c(0x218)],'body':{'requests':_0x25ae1e}});}},{'distributeResult'(_0x58811a,_0xbe1f45){const _0x15e8a2=_0x216eef,{objectActions:_0x3622f1}=_0x58811a;return _0xbe1f45[_0x15e8a2(0x2eb)](_0x5858ba=>{const _0xe6d7f=_0x15e8a2,{unitID:_0x38dd96,objectID:_0x592f8e,actions:_0x1f20ff}=_0x5858ba,_0x134265=_0x3622f1[_0xe6d7f(0x322)](_0x32e06d=>_0x32e06d[_0xe6d7f(0x1e5)]===_0x38dd96&&_0x32e06d[_0xe6d7f(0x3a1)]===_0x592f8e),_0x2af429=_0x1f20ff['map'](_0x23b653=>_0x134265==null?void 0x0:_0x134265[_0xe6d7f(0x2d5)][_0xe6d7f(0x322)](_0x37a2b5=>_0x37a2b5['action']===_0x23b653))[_0xe6d7f(0x2ee)](_0x6a7e=>!!_0x6a7e);return{'config':_0x5858ba,'result':{'actions':_0x2af429,'error':_0x58811a['error']}};});}})}));}[_0x2da18b(0x3b0)](){const _0x48cb6b=_0x2da18b;var _0x443827,_0x5e6cd5;const _0x5f34ef=this['_configService'][_0x48cb6b(0x1bb)](No),_0x5b7556=this[_0x48cb6b(0x205)][_0x48cb6b(0x1bb)](L);return(_0x5e6cd5=(_0x443827=_0x5b7556==null?void 0x0:_0x5b7556['authzUrl'])!=null?_0x443827:_0x5f34ef)!=null?_0x5e6cd5:Uo;}async[_0x2da18b(0x175)](_0x4649e9){const _0x596838=_0x2da18b,_0x3a30c8=this[_0x596838(0x3b0)]()+'/'+_0x4649e9[_0x596838(0x3cf)]+_0x596838(0x166);return(await this[_0x596838(0x36d)][_0x596838(0x41f)](_0x3a30c8,{'body':_0x4649e9}))[_0x596838(0x318)]['objectID']||'';}async[_0x2da18b(0x474)](_0x48747f){const _0x2e7aa4=_0x2da18b,_0x2d4c39=this[_0x2e7aa4(0x3b0)]()+_0x2e7aa4(0x140);return(await this['_HTTPService']['post'](_0x2d4c39,{'body':_0x48747f}))[_0x2e7aa4(0x318)][_0x2e7aa4(0x407)];}async[_0x2da18b(0x30c)](_0x3f0720){const _0x58d869=_0x2da18b,_0x277ff1=this[_0x58d869(0x3b0)]()+'/'+_0x3f0720[_0x58d869(0x3cf)]+'/object/'+_0x3f0720[_0x58d869(0x3a1)];await this['_HTTPService'][_0x58d869(0x26a)](_0x277ff1,{'body':_0x3f0720});}async[_0x2da18b(0x2e6)](_0x4d7388){const _0x539618=_0x2da18b,_0x469a5d=this[_0x539618(0x3b0)]()+'/'+_0x4d7388[_0x539618(0x3cf)]+'/object/'+_0x4d7388[_0x539618(0x3a1)]+'/allowed';return(await this[_0x539618(0x36d)]['post'](_0x469a5d,{'body':_0x4d7388}))[_0x539618(0x318)][_0x539618(0x2d5)];}async[_0x2da18b(0x1d7)](_0x403ee7){const _0x583f05=_0x2da18b,_0x18f6c0=this[_0x583f05(0x3b0)]()+'/-/object/-/batch_allowed';return(await this[_0x583f05(0x36d)][_0x583f05(0x41f)](_0x18f6c0,{'body':{'requests':_0x403ee7}}))[_0x583f05(0x318)]['objectActions'];}async['listRoles'](_0x5621f6){const _0x5c535f=_0x2da18b,_0x108f90=this[_0x5c535f(0x3b0)]()+'/'+_0x5621f6['objectType']+_0x5c535f(0x3aa),_0x3da173=await this['_HTTPService'][_0x5c535f(0x41f)](_0x108f90,{'body':_0x5621f6});return{'roles':_0x3da173[_0x5c535f(0x318)][_0x5c535f(0x30e)],'actions':_0x3da173['body'][_0x5c535f(0x2d5)]};}async['deleteCollaborator'](_0x1c2381){const _0x4ff1b1=_0x2da18b,_0x1e4050=this[_0x4ff1b1(0x3b0)]()+'/collaborator';await this[_0x4ff1b1(0x36d)][_0x4ff1b1(0x3b7)](_0x1e4050,{'params':{'collaboratorID':_0x1c2381[_0x4ff1b1(0x281)],'objectID':_0x1c2381[_0x4ff1b1(0x3a1)],'unitID':_0x1c2381['unitID']}});}async[_0x2da18b(0x219)](_0x54a8d4){const _0x17da33=_0x2da18b,_0x7159ff=this[_0x17da33(0x3b0)]()+'/collaborator';await this[_0x17da33(0x36d)][_0x17da33(0x362)](_0x7159ff,{'body':_0x54a8d4});}async[_0x2da18b(0x35c)](_0x46409f){const _0x4901cf=_0x2da18b,_0x27cbc4=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x4901cf(0x36d)][_0x4901cf(0x41f)](_0x27cbc4,{'body':_0x46409f});}async[_0x2da18b(0x45e)](_0x5a04c3){const _0x54bdc0=_0x2da18b,_0x53d9e3=this[_0x54bdc0(0x3b0)]()+_0x54bdc0(0x1e8);return(await this[_0x54bdc0(0x36d)][_0x54bdc0(0x2dd)](_0x53d9e3,{'params':{'objectID':_0x5a04c3[_0x54bdc0(0x3a1)],'unitID':_0x5a04c3['unitID']}}))['body'][_0x54bdc0(0x29f)];}async[_0x2da18b(0x1c7)](_0x1f6ca6){const _0x4a48e0=_0x2da18b,_0x593080=this[_0x4a48e0(0x3b0)]()+'/collaborator';await this[_0x4a48e0(0x36d)]['put'](_0x593080,{'body':_0x1f6ca6});}};Pt=yo([ms(0x0,_0x24691e(_0xa0ce64)),ms(0x1,_0x24691e(_0x4b95b7))],Pt);var Mo=Object[_0x2da18b(0x151)],Ao=Object[_0x2da18b(0x2b8)],Lo=(_0x518eda,_0x28fe70,_0x5bd469,_0x324698)=>{const _0x42d108=_0x2da18b;for(var _0x428204=_0x324698>0x1?void 0x0:_0x324698?Ao(_0x28fe70,_0x5bd469):_0x28fe70,_0x5d60f8=_0x518eda[_0x42d108(0x1a8)]-0x1,_0x4e54c6;_0x5d60f8>=0x0;_0x5d60f8--)(_0x4e54c6=_0x518eda[_0x5d60f8])&&(_0x428204=(_0x324698?_0x4e54c6(_0x28fe70,_0x5bd469,_0x428204):_0x4e54c6(_0x428204))||_0x428204);return _0x324698&&_0x428204&&Mo(_0x28fe70,_0x5bd469,_0x428204),_0x428204;},$o=(_0x2f43c6,_0x4f1453)=>(_0x2d32e6,_0x1d518f)=>_0x4f1453(_0x2d32e6,_0x1d518f,_0x2f43c6);let Qe=class{constructor(_0x2212d5){const _0x3d90e6=_0x2da18b;this[_0x3d90e6(0x323)]=_0x2212d5,this[_0x3d90e6(0x176)]();}[_0x2da18b(0x176)](){const _0x243c89=_0x2da18b;this[_0x243c89(0x323)][_0x243c89(0x47c)]({'interceptor':(_0x327211,_0x6dd6aa)=>{const _0x4065a2=_0x243c89,_0x306860=_0x327211[_0x4065a2(0x2d0)],_0x4e027c=_0x1c94eb();return _0x4e027c&&_0x306860[_0x4065a2(0x276)](_0x4065a2(0x12c),_0x4e027c),_0x6dd6aa(_0x327211);}});}};Qe=Lo([$o(0x0,_0x24691e(_0xa0ce64))],Qe);var jo=Object[_0x2da18b(0x151)],xo=Object[_0x2da18b(0x2b8)],Ho=(_0x327f1d,_0x374ee2,_0x59225d,_0x285b6e)=>{const _0x33832c=_0x2da18b;for(var _0x394c8f=_0x285b6e>0x1?void 0x0:_0x285b6e?xo(_0x374ee2,_0x59225d):_0x374ee2,_0xd47e75=_0x327f1d[_0x33832c(0x1a8)]-0x1,_0x4c59a2;_0xd47e75>=0x0;_0xd47e75--)(_0x4c59a2=_0x327f1d[_0xd47e75])&&(_0x394c8f=(_0x285b6e?_0x4c59a2(_0x374ee2,_0x59225d,_0x394c8f):_0x4c59a2(_0x394c8f))||_0x394c8f);return _0x285b6e&&_0x394c8f&&jo(_0x374ee2,_0x59225d,_0x394c8f),_0x394c8f;},St=(_0xfc18b8,_0x4b6f86)=>(_0x190abf,_0x271597)=>_0x4b6f86(_0x190abf,_0x271597,_0xfc18b8);const ko=['image/png',_0x2da18b(0x45a),'image/jpg',_0x2da18b(0x404),'image/bmp'],Bo=0x5*0x400*0x400,Vo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Fo=_0x2da18b(0x1d8),Wo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Go=_0x2da18b(0x332);let yt=class{constructor(_0x4ac000,_0x2f7b70,_0x437618){const _0x27aaeb=_0x2da18b;l(this,_0x27aaeb(0x139),0x0),l(this,_0x27aaeb(0x201),new _0x526cd2()),l(this,_0x27aaeb(0x341),this[_0x27aaeb(0x201)]),l(this,'_imageSourceCache',new Map()),(this[_0x27aaeb(0x323)]=_0x4ac000,this[_0x27aaeb(0x205)]=_0x2f7b70,this[_0x27aaeb(0x406)]=_0x437618);}[_0x2da18b(0x3f4)](_0x298bcf){const _0x5096a1=_0x2da18b;this[_0x5096a1(0x139)]=_0x298bcf,this['_change$']['next'](_0x298bcf);}[_0x2da18b(0x3e6)](_0x51c071,_0x1a774c){const _0x331b9d=_0x2da18b;if(_0x1a774c===_0x4dff21[_0x331b9d(0x361)]){const _0x98ba4a=new Image();return _0x98ba4a[_0x331b9d(0x486)]=_0x51c071,_0x98ba4a;}return this['_imageSourceCache'][_0x331b9d(0x2dd)](_0x51c071);}['addImageSourceCache'](_0x322649,_0x157e56,_0x3ecf10){const _0x927037=_0x2da18b;_0x157e56===_0x4dff21[_0x927037(0x361)]||_0x3ecf10==null||this[_0x927037(0x33b)][_0x927037(0x276)](_0x322649,_0x3ecf10);}async[_0x2da18b(0x181)](_0x38f228){const _0x344012=_0x2da18b;try{const _0x52b386=this[_0x344012(0x24f)](this[_0x344012(0x1d5)](),''+_0x38f228),_0x18e29d=(await this[_0x344012(0x323)][_0x344012(0x2dd)](_0x52b386))[_0x344012(0x318)];if(_0x18e29d[_0x344012(0x490)]&&_0x18e29d[_0x344012(0x490)][_0x344012(0x2ff)]===Ms['OK']){const _0x1ab53a=new URL(_0x18e29d[_0x344012(0x250)],this['_getDownloadEndpointURL']())[_0x344012(0x280)]();return Promise['resolve'](_0x1ab53a);}return Promise[_0x344012(0x39f)](_0x18e29d[_0x344012(0x490)]);}catch(_0x3b2954){return Promise['reject'](_0x3b2954);}}async['saveImage'](_0x430458){const _0x7e9e32=_0x2da18b;let _0x17ad63='';if(!ko[_0x7e9e32(0x421)](_0x430458[_0x7e9e32(0x3f5)]))return this['_decreaseWaiting'](),Promise[_0x7e9e32(0x39f)](new Error(_0x546962[_0x7e9e32(0x3ec)]));if(_0x430458[_0x7e9e32(0x1c1)]>Bo)return this[_0x7e9e32(0x424)](),Promise[_0x7e9e32(0x39f)](new Error(_0x546962[_0x7e9e32(0x1c6)]));try{const _0xaa1703=new FormData();_0xaa1703[_0x7e9e32(0x42b)](_0x7e9e32(0x2f5),_0x430458);const _0x24d259=this['_univerInstanceService']['getFocusedUnit'](),_0x357bf3=_0x24d259==null?void 0x0:_0x24d259['getUnitId']();if(!_0x357bf3)throw new Error(_0x7e9e32(0x38d));const _0x5d96e5=this['_getUploadFileURL']()+'?size='+_0x430458[_0x7e9e32(0x1c1)]['toString']()+_0x7e9e32(0x1e3)+As[_0x7e9e32(0x3b2)]+'&assign='+encodeURIComponent(_0x357bf3),_0x884896=await(await fetch(_0x5d96e5,{'method':_0x7e9e32(0x303),'body':_0xaa1703}))[_0x7e9e32(0x2c7)]();if(typeof _0x884896[_0x7e9e32(0x29e)]!=_0x7e9e32(0x2ab))return this[_0x7e9e32(0x424)](),Promise[_0x7e9e32(0x39f)](new Error(_0x546962['ERROR_IMAGE']));_0x17ad63=_0x884896[_0x7e9e32(0x29e)];}catch{return this[_0x7e9e32(0x424)](),Promise[_0x7e9e32(0x39f)](new Error(_0x546962[_0x7e9e32(0x2f3)]));}return new Promise((_0x43efdf,_0x271b7a)=>{const _0x33f2c5=_0x7e9e32,_0x5c0e22=new FileReader();_0x5c0e22[_0x33f2c5(0x2c3)](_0x430458),_0x5c0e22[_0x33f2c5(0x469)]=_0x2aca06=>{const _0x39c1a5=_0x33f2c5;var _0x16d63a;const _0x925a86=(_0x16d63a=_0x2aca06[_0x39c1a5(0x1c8)])==null?void 0x0:_0x16d63a['result'];if(_0x925a86==null){this['_decreaseWaiting'](),_0x271b7a(new Error(_0x546962['ERROR_IMAGE']));return;}const _0x84037e=_0x5ee8c7[_0x39c1a5(0x3a4)](0x6);_0x43efdf({'imageId':_0x84037e,'imageSourceType':_0x4dff21[_0x39c1a5(0x16a)],'source':_0x17ad63,'base64Cache':_0x925a86,'status':_0x546962[_0x39c1a5(0x2a7)]}),this[_0x39c1a5(0x424)]();};});}[_0x2da18b(0x1e0)](){const _0xe11b1c=_0x2da18b;var _0x29b7a9,_0x5b61d3;const _0x5f4767=this[_0xe11b1c(0x205)][_0xe11b1c(0x1bb)](Vo),_0x2fd5db=this[_0xe11b1c(0x205)][_0xe11b1c(0x1bb)](L);return(_0x5b61d3=(_0x29b7a9=_0x2fd5db==null?void 0x0:_0x2fd5db[_0xe11b1c(0x452)])!=null?_0x29b7a9:_0x5f4767)!=null?_0x5b61d3:Fo;}[_0x2da18b(0x1d5)](){const _0x3ff4ef=_0x2da18b;var _0x524db8,_0xd32751;const _0xc2b5bb=this[_0x3ff4ef(0x205)][_0x3ff4ef(0x1bb)](Wo),_0x5a2024=this[_0x3ff4ef(0x205)]['getConfig'](L);return(_0xd32751=(_0x524db8=_0x5a2024==null?void 0x0:_0x5a2024[_0x3ff4ef(0x347)])!=null?_0x524db8:_0xc2b5bb)!=null?_0xd32751:Go;}[_0x2da18b(0x400)](){const _0x47f3ee=_0x2da18b;var _0x4c177e;const _0x18a682=this[_0x47f3ee(0x205)][_0x47f3ee(0x1bb)](L);return(_0x4c177e=_0x18a682==null?void 0x0:_0x18a682['downloadEndpointUrl'])!=null?_0x4c177e:location[_0x47f3ee(0x39e)];}['_replaceFileID'](_0xf62be6,_0x27fec5){const _0x5b69cf=_0x2da18b;return _0xf62be6[_0x5b69cf(0x136)](_0x5b69cf(0x3df),_0x27fec5);}[_0x2da18b(0x424)](){const _0x1c9701=_0x2da18b;this[_0x1c9701(0x139)]-=0x1,this[_0x1c9701(0x201)][_0x1c9701(0x33a)](this[_0x1c9701(0x139)]);}};yt=Ho([St(0x0,_0x24691e(_0xa0ce64)),St(0x1,_0x4b95b7),St(0x2,_0x24691e(_0x4af863))],yt);var Yo=Object[_0x2da18b(0x151)],Ko=Object[_0x2da18b(0x2b8)],Xo=(_0x136839,_0x32c2a8,_0x2aa345,_0x14e2cb)=>{const _0x2ddcd4=_0x2da18b;for(var _0xeec393=_0x14e2cb>0x1?void 0x0:_0x14e2cb?Ko(_0x32c2a8,_0x2aa345):_0x32c2a8,_0x3e20ad=_0x136839[_0x2ddcd4(0x1a8)]-0x1,_0x61ffff;_0x3e20ad>=0x0;_0x3e20ad--)(_0x61ffff=_0x136839[_0x3e20ad])&&(_0xeec393=(_0x14e2cb?_0x61ffff(_0x32c2a8,_0x2aa345,_0xeec393):_0x61ffff(_0xeec393))||_0xeec393);return _0x14e2cb&&_0xeec393&&Yo(_0x32c2a8,_0x2aa345,_0xeec393),_0xeec393;},Pe=(_0xdc4fce,_0x29835a)=>(_0x5cdd5b,_0x1cc473)=>_0x29835a(_0x5cdd5b,_0x1cc473,_0xdc4fce);let et=class extends _0x13b3a6{constructor(_0x5657de,_0x148119,_0x4a6ba0,_0x3ba385,_0x1de660){const _0x5044fc=_0x2da18b;super(),this['_injector']=_0x5657de,this[_0x5044fc(0x406)]=_0x148119,this['_permissionService']=_0x4a6ba0,this[_0x5044fc(0x244)]=_0x3ba385,this[_0x5044fc(0x2cb)]=_0x1de660,this[_0x5044fc(0x1c2)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x5de420=_0x2da18b,_0x4dcf40=async _0x15e7ee=>{const _0x1c12da=_0x44b4;(await this[_0x1c12da(0x244)][_0x1c12da(0x19f)](_0x15e7ee))[_0x1c12da(0x411)][_0x1c12da(0x29b)](_0x333799(_0x26ef49=>_0x26ef49['eventID']===_0x128ecb[_0x1c12da(0x1ce)]),_0x17e7c5(this[_0x1c12da(0x3ab)]))[_0x1c12da(0x146)](_0x6435ba=>{const _0x2180f5=_0x1c12da,_0x8d9919=_0x6435ba,{reason:_0x15cd8a}=_0x8d9919['data'];this['_injector'][_0x2180f5(0x2dd)](_0x349d24)['show']({'type':_0x35eeb1[_0x2180f5(0x15f)],'content':this['_localeService']['t'](_0x2180f5(0x20b))+'('+_0x15cd8a+')'}),this[_0x2180f5(0x28d)]['updatePermissionPoint'](new _0x182d13(_0x15e7ee)['id'],!0x1),this[_0x2180f5(0x244)][_0x2180f5(0x28b)](_0x15e7ee);});};_0x5799ee(this[_0x5de420(0x406)][_0x5de420(0x26c)](_0x43baa3['UNIVER_SHEET']),this[_0x5de420(0x406)][_0x5de420(0x26c)](_0x43baa3['UNIVER_DOC']))['pipe'](_0x5ddac4(_0x5cd911=>_0x5cd911[_0x5de420(0x3d4)]()),_0x333799(_0xa5c69c=>!_0x35eafb(_0xa5c69c)),_0x17e7c5(this[_0x5de420(0x3ab)]))[_0x5de420(0x146)](_0x3ee11c=>{_0x4dcf40(_0x3ee11c);});}[_0x2da18b(0x1c2)](){const _0x2d0906=_0x2da18b,_0x540d0e=async _0x361842=>{const _0x186c88=_0x44b4;(await this[_0x186c88(0x244)][_0x186c88(0x19f)](_0x361842))[_0x186c88(0x411)][_0x186c88(0x29b)](_0x333799(_0x129e2f=>_0x129e2f[_0x186c88(0x27d)]===_0x128ecb[_0x186c88(0x45b)]),_0x17e7c5(this['dispose$']))[_0x186c88(0x146)](_0x1c12e4=>{const _0x467066=_0x186c88,_0x16d2cb=_0x1c12e4,{objectId:_0x494435}=_0x16d2cb[_0x467066(0x247)],_0x11224f=this['_injector'][_0x467066(0x2dd)](_0x25e324);_0x494435===_0x361842?_0x11224f[_0x467066(0x463)](_0x361842):_0x11224f['refreshPermission'](_0x361842,_0x494435);});};_0x5799ee(this[_0x2d0906(0x406)][_0x2d0906(0x26c)](_0x43baa3[_0x2d0906(0x2d4)]),this[_0x2d0906(0x406)][_0x2d0906(0x26c)](_0x43baa3[_0x2d0906(0x37b)]))[_0x2d0906(0x29b)](_0x5ddac4(_0x22ff17=>_0x22ff17[_0x2d0906(0x3d4)]()),_0x333799(_0x5a4556=>!_0x35eafb(_0x5a4556)),_0x17e7c5(this[_0x2d0906(0x3ab)]))[_0x2d0906(0x146)](_0x4a0cfc=>{_0x540d0e(_0x4a0cfc);});}};et=Xo([Pe(0x0,_0x24691e(_0x129c7a)),Pe(0x1,_0x4af863),Pe(0x2,_0x1892f6),Pe(0x3,_0x24691e(ce)),Pe(0x4,_0x24691e(_0x1695f3))],et);var Jo=Object['defineProperty'],qo=Object[_0x2da18b(0x2b8)],zo=(_0x5b5549,_0xea5247,_0x139834,_0x4fd6d7)=>{const _0x50a30b=_0x2da18b;for(var _0x2b719f=_0x4fd6d7>0x1?void 0x0:_0x4fd6d7?qo(_0xea5247,_0x139834):_0xea5247,_0x47c9bd=_0x5b5549[_0x50a30b(0x1a8)]-0x1,_0x3013a1;_0x47c9bd>=0x0;_0x47c9bd--)(_0x3013a1=_0x5b5549[_0x47c9bd])&&(_0x2b719f=(_0x4fd6d7?_0x3013a1(_0xea5247,_0x139834,_0x2b719f):_0x3013a1(_0x2b719f))||_0x2b719f);return _0x4fd6d7&&_0x2b719f&&Jo(_0xea5247,_0x139834,_0x2b719f),_0x2b719f;},gs=(_0x461b1c,_0x23d078)=>(_0x53971d,_0xb64c4f)=>_0x23d078(_0x53971d,_0xb64c4f,_0x461b1c);let Nt=class{constructor(_0x1cd955,_0x43c19a){const _0x34bd21=_0x2da18b;this[_0x34bd21(0x205)]=_0x1cd955,this[_0x34bd21(0x323)]=_0x43c19a;}async[_0x2da18b(0x25d)](_0x4e1792,_0x46a5c3){const _0x221fe3=_0x2da18b;var _0x5047cc;const {unitID:_0x4e803b,type:_0x4431c3,revision:_0x3bab14=0x0}=_0x46a5c3,_0x23b910=this['_getSnapshotAPIPrefix']()+'/'+_0x4431c3+_0x221fe3(0x413)+_0x4e803b+_0x221fe3(0x459)+_0x3bab14,_0x29255b=(await this['_httpService'][_0x221fe3(0x2dd)](_0x23b910))[_0x221fe3(0x318)],_0x101eb1=(_0x5047cc=_0x29255b[_0x221fe3(0x1e7)])==null?void 0x0:_0x5047cc['workbook'];if(_0x101eb1){const _0x5e8810=_0x101eb1==null?void 0x0:_0x101eb1[_0x221fe3(0x485)],_0x2c7c95=_0x4e00c2[_0x221fe3(0x1b4)](_0x24869c(_0x5e8810));_0x101eb1[_0x221fe3(0x485)]=_0x2c7c95,Object[_0x221fe3(0x284)](_0x101eb1[_0x221fe3(0x252)])[_0x221fe3(0x137)](([,_0x58ad68])=>{const _0x224c98=_0x221fe3,_0x31dd54=_0x58ad68[_0x224c98(0x485)],_0x38105b=_0x4e00c2[_0x224c98(0x1b4)](_0x24869c(_0x31dd54));_0x58ad68['originalMeta']=_0x38105b;});}return _0x29255b;}async['getSheetBlock'](_0x43c3bb,_0x5314a0){const _0x3aafdd=_0x2da18b,{unitID:_0x26d4e3,type:_0x152a69,blockID:_0x414b99}=_0x5314a0,_0x132c19=this[_0x3aafdd(0x268)]()+'/'+_0x152a69+_0x3aafdd(0x413)+_0x26d4e3+_0x3aafdd(0x13a)+_0x414b99;return(await this['_httpService'][_0x3aafdd(0x2dd)](_0x132c19))['body'];}async[_0x2da18b(0x2cc)](_0x98b172,_0x4c01a3){const _0x535f63=_0x2da18b,{unitID:_0x591f0a,type:_0x67706e,blockID:_0x452521}=_0x4c01a3,_0x18f12f=this[_0x535f63(0x268)]()+_0x535f63(0x13a)+_0x67706e+_0x535f63(0x413)+_0x591f0a+_0x535f63(0x13a)+_0x452521;return(await this[_0x535f63(0x323)]['get'](_0x18f12f))[_0x535f63(0x318)];}async[_0x2da18b(0x467)](_0x26cc44,_0xa7144e){const _0x585587=_0x2da18b,{unitID:_0x39ace7,type:_0x537a5d,from:_0x9696bb,to:_0x605162}=_0xa7144e,_0x36bc92=this[_0x585587(0x268)]()+'/'+_0x537a5d+_0x585587(0x413)+_0x39ace7+_0x585587(0x20c)+_0x9696bb+_0x585587(0x3b9)+_0x605162;return(await this[_0x585587(0x323)]['get'](_0x36bc92))['body'];}[_0x2da18b(0x135)](){const _0x5041ba=_0x2da18b;var _0xdb9efa;return(_0xdb9efa=this[_0x5041ba(0x205)]['getConfig'](mn))!=null?_0xdb9efa:this['_getAPIPrefix']();}[_0x2da18b(0x268)](){const _0x4611f8=_0x2da18b;var _0x4031c1,_0x6024c;const _0x595ba2=this[_0x4611f8(0x205)][_0x4611f8(0x1bb)](dn),_0x38ced2=this[_0x4611f8(0x205)][_0x4611f8(0x1bb)](L);return(_0x6024c=(_0x4031c1=_0x38ced2==null?void 0x0:_0x38ced2['snapshotServerUrl'])!=null?_0x4031c1:_0x595ba2)!=null?_0x6024c:fn;}async[_0x2da18b(0x23a)](_0x564a1b,_0x25bd97){const _0x1b881d=_0x2da18b,_0x5a7d25=_0x1b881d(0x159)+_0x25bd97[_0x1b881d(0x3f5)]+_0x1b881d(0x413)+_0x25bd97['unitID']+_0x1b881d(0x402);return(await this['_httpService'][_0x1b881d(0x2dd)](_0x5a7d25,{'params':{'resourceId':JSON[_0x1b881d(0x2ea)](_0x25bd97[_0x1b881d(0x443)])}}))[_0x1b881d(0x318)];}[_0x2da18b(0x283)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2da18b(0x20f)](){const _0x5f4977=_0x2da18b;throw new Error(_0x5f4977(0x1bf));}[_0x2da18b(0x2af)](){const _0x174625=_0x2da18b;throw new Error(_0x174625(0x1bf));}['copyFileMeta'](){const _0x351772=_0x2da18b;throw new Error(_0x351772(0x1bf));}};Nt=zo([gs(0x0,_0x4b95b7),gs(0x1,_0x24691e(_0xa0ce64))],Nt);var Zo=Object[_0x2da18b(0x151)],Qo=Object[_0x2da18b(0x2b8)],ea=(_0x216a51,_0x781ecc,_0x5dd19f,_0x508bd7)=>{for(var _0x18dcc4=_0x508bd7>0x1?void 0x0:_0x508bd7?Qo(_0x781ecc,_0x5dd19f):_0x781ecc,_0x4e012e=_0x216a51['length']-0x1,_0x48ef1b;_0x4e012e>=0x0;_0x4e012e--)(_0x48ef1b=_0x216a51[_0x4e012e])&&(_0x18dcc4=(_0x508bd7?_0x48ef1b(_0x781ecc,_0x5dd19f,_0x18dcc4):_0x48ef1b(_0x18dcc4))||_0x18dcc4);return _0x508bd7&&_0x18dcc4&&Zo(_0x781ecc,_0x5dd19f,_0x18dcc4),_0x18dcc4;},ye=(_0x365a99,_0x14b149)=>(_0x265b44,_0x2c556f)=>_0x14b149(_0x265b44,_0x2c556f,_0x365a99);let Ut=class extends _0x122a1c{constructor(_0x27ae92,_0x44b851,_0x31756e,_0x15da1a,_0xf61c97){const _0x5d2dd7=_0x2da18b;super(_0x27ae92,_0x44b851,_0x31756e),this[_0x5d2dd7(0x32a)]=_0x15da1a,this['_logService']=_0xf61c97;}[_0x2da18b(0x460)](_0x5de1d7,_0x151e68){const _0x6e0c82=_0x2da18b,_0x5348f6=this[_0x6e0c82(0x17f)](_0x5de1d7);if(_0x5348f6)try{const _0x35e4c0=this['_transformStack'](_0x5348f6,_0x151e68);this[_0x6e0c82(0x221)](_0x5de1d7,_0x35e4c0);}catch(_0x291100){this[_0x6e0c82(0x356)]['error']('[CollaborationUndoRedoService]',_0x291100),this[_0x6e0c82(0x158)](_0x5de1d7);}const _0x421e83=this[_0x6e0c82(0x1a3)](_0x5de1d7);if(_0x421e83)try{const _0x1dac5a=this[_0x6e0c82(0x3fc)](_0x421e83,_0x151e68);this[_0x6e0c82(0x1ec)](_0x5de1d7,_0x1dac5a);}catch(_0x10b1c9){this['_logService'][_0x6e0c82(0x490)](_0x10b1c9),this['_clearRedo'](_0x5de1d7);}}[_0x2da18b(0x158)](_0x4dc5f5){const _0x1d9d6f=_0x2da18b,_0x453348=this[_0x1d9d6f(0x17f)](_0x4dc5f5);_0x453348&&(_0x453348[_0x1d9d6f(0x1a8)]=0x0,this[_0x1d9d6f(0x15c)]());}[_0x2da18b(0x15e)](_0x37f0a0){const _0x500a72=_0x2da18b,_0x213abb=this[_0x500a72(0x1a3)](_0x37f0a0);_0x213abb&&(_0x213abb[_0x500a72(0x1a8)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x25066c,_0x680798){const _0x12872a=_0x2da18b;this['_undoStacks'][_0x12872a(0x276)](_0x25066c,_0x680798),this[_0x12872a(0x15c)]();}['_substituteRedoStack'](_0x3f2e28,_0x51b056){const _0x59aa3b=_0x2da18b;this[_0x59aa3b(0x16e)][_0x59aa3b(0x276)](_0x3f2e28,_0x51b056),this['_updateStatus']();}['_transformStack'](_0x38fb16,_0xb8c44c){const _0x33310f=_0x2da18b,_0x6f7aaf=[];let _0x5abf45=_0xb8c44c,_0xd8c687=_0xb8c44c;for(let _0x240a0f=_0x38fb16[_0x33310f(0x1a8)]-0x1;_0x240a0f>=0x0;_0x240a0f--){const {unitID:_0x5bb1c6,undoMutations:_0x5e8d60,redoMutations:_0x33245b}=_0x38fb16[_0x240a0f],_0x17be8b=this[_0x33310f(0x32a)][_0x33310f(0x18b)](_0x5abf45,_0x5e8d60),_0x214c9c=this['_transformService'][_0x33310f(0x18b)](_0xd8c687,_0x33245b);if(_0x19d75d(_0x17be8b)||_0x19d75d(_0x214c9c)){this[_0x33310f(0x356)][_0x33310f(0x490)](_0x33310f(0x242),_0x33310f(0x3cc),_0x17be8b,_0x214c9c);break;}_0x5abf45=_0x17be8b[_0x33310f(0x43e)],_0xd8c687=_0x214c9c[_0x33310f(0x43e)],_0x6f7aaf[_0x33310f(0x46c)]({'unitID':_0x5bb1c6,'undoMutations':_0x17be8b[_0x33310f(0x22c)],'redoMutations':_0x214c9c[_0x33310f(0x22c)]});}return _0x6f7aaf['reverse']();}};Ut=ea([ye(0x0,_0x4af863),ye(0x1,_0x18280b),ye(0x2,_0x5eded2),ye(0x3,_0x418a36),ye(0x4,_0x16c619)],Ut);class ta extends _0x13b3a6{constructor(){const _0x46a21c=_0x2da18b;super(),l(this,_0x46a21c(0x44d)),this[_0x46a21c(0x44d)]=_0x267a81(window,'popstate')[_0x46a21c(0x29b)](_0x1cea38(this[_0x46a21c(0x3ab)]),_0x503b15(0x1),_0x144e4a(void 0x0));}[_0x2da18b(0x403)](_0x337f5d,_0x452600,_0x10d240=!0x1){const _0x49740b=_0x2da18b,_0xbe3598=new URL(window[_0x49740b(0x370)][_0x49740b(0x305)]);_0xbe3598[_0x49740b(0x2d7)][_0x49740b(0x276)](_0x337f5d,_0x452600),_0x10d240?window['history'][_0x49740b(0x34b)]('','',_0xbe3598[_0x49740b(0x280)]()):window[_0x49740b(0x2bd)][_0x49740b(0x2e4)]('','',_0xbe3598['toString']());}['removeParam'](_0x353bfc,_0x32fba0=!0x1){const _0x135641=_0x2da18b,_0x19452d=new URL(window['location'][_0x135641(0x305)]);_0x19452d[_0x135641(0x2d7)][_0x135641(0x3b7)](_0x353bfc),_0x32fba0?window[_0x135641(0x2bd)][_0x135641(0x34b)]('','',_0x19452d[_0x135641(0x280)]()):window[_0x135641(0x2bd)][_0x135641(0x2e4)]('','',_0x19452d[_0x135641(0x280)]());}[_0x2da18b(0x186)](_0x4db901){const _0x1d5c1e=_0x2da18b;var _0xddf630;return(_0xddf630=new URL(window[_0x1d5c1e(0x370)][_0x1d5c1e(0x305)])[_0x1d5c1e(0x2d7)][_0x1d5c1e(0x2dd)](_0x4db901))!=null?_0xddf630:void 0x0;}}var Gs=Object[_0x2da18b(0x151)],sa=Object[_0x2da18b(0x2b8)],ia=(_0x30caa0,_0x4668a2,_0x37bbac)=>_0x4668a2 in _0x30caa0?Gs(_0x30caa0,_0x4668a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37bbac}):_0x30caa0[_0x4668a2]=_0x37bbac,na=(_0x16dac2,_0x4eb0e1,_0x1ffa07,_0x3e2641)=>{const _0x1abc5b=_0x2da18b;for(var _0x28cef7=_0x3e2641>0x1?void 0x0:_0x3e2641?sa(_0x4eb0e1,_0x1ffa07):_0x4eb0e1,_0xe065af=_0x16dac2[_0x1abc5b(0x1a8)]-0x1,_0x5b0ca0;_0xe065af>=0x0;_0xe065af--)(_0x5b0ca0=_0x16dac2[_0xe065af])&&(_0x28cef7=(_0x3e2641?_0x5b0ca0(_0x4eb0e1,_0x1ffa07,_0x28cef7):_0x5b0ca0(_0x28cef7))||_0x28cef7);return _0x3e2641&&_0x28cef7&&Gs(_0x4eb0e1,_0x1ffa07,_0x28cef7),_0x28cef7;},ke=(_0x48ee86,_0x57e80f)=>(_0x3da036,_0x5effd4)=>_0x57e80f(_0x3da036,_0x5effd4,_0x48ee86),ra=(_0x437fb4,_0x4dd4fe,_0x4b1c38)=>ia(_0x437fb4,_0x4dd4fe+'',_0x4b1c38);const oa='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Mt=class extends _0x390594{constructor(_0x423d64=yn,_0x2953b0,_0xa694f6,_0x17efd3,_0x2475ea){const _0x3649ab=_0x2da18b;super(),this[_0x3649ab(0x167)]=_0x423d64,this['_logService']=_0x2953b0,this[_0x3649ab(0x38a)]=_0xa694f6,this[_0x3649ab(0x272)]=_0x17efd3,this[_0x3649ab(0x205)]=_0x2475ea;const {..._0x450d0d}=this[_0x3649ab(0x167)];this[_0x3649ab(0x205)][_0x3649ab(0x1b6)](L,_0x450d0d);}[_0x2da18b(0x441)](){const _0x482596=_0x2da18b;this[_0x482596(0x1a2)](),_0x120347(this[_0x482596(0x272)],[[pe],[qe],[et]]);}['onReady'](){_0x120347(this['_injector'],[[ze]]);}[_0x2da18b(0x2be)](){const _0x453e4b=_0x2da18b;this[_0x453e4b(0x2fb)]();}[_0x2da18b(0x1a2)](){const _0x108aa1=_0x2da18b;var _0x12ab99,_0x359bac,_0x4208ab,_0x435bfb;this[_0x108aa1(0x272)][_0x108aa1(0x141)](_0x37a9c2)&&this[_0x108aa1(0x356)][_0x108aa1(0x490)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x550b11=[[_0x37a9c2,{'useClass':Ut}],[ce],[Ft],[_0xa0ce64],[Ws,{'useClass':ta}],[ae],[D],[_0x2e1788],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x359bac=(_0x12ab99=this[_0x108aa1(0x167)])==null?void 0x0:_0x12ab99['socketService'])!=null?_0x359bac:Et}],[_0x17534e,{'useClass':_0x79e78f}],[_0x2cde65,{'useClass':Nt}],[_0x480b72,{'useClass':Pt}],[_0x330a1d,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x4208ab=this['_config'])!=null&&_0x4208ab[_0x108aa1(0x300)]&&_0x550b11['push']([tt,{'useClass':rr}]),_0x550b11=_0x42ac03(_0x550b11,(_0x435bfb=this[_0x108aa1(0x167)])==null?void 0x0:_0x435bfb[_0x108aa1(0x236)]),_0x550b11[_0x108aa1(0x137)](_0x3ac214=>this[_0x108aa1(0x272)][_0x108aa1(0x358)](_0x3ac214)),this[_0x108aa1(0x1dc)]();}[_0x2da18b(0x2fb)](){const _0x54d777=_0x2da18b;this['disposeWithMe'](this[_0x54d777(0x38a)][_0x54d777(0x3ca)](_0x43baa3[_0x54d777(0x37b)],[Dt])),this[_0x54d777(0x206)](this[_0x54d777(0x38a)][_0x54d777(0x3ca)](_0x43baa3[_0x54d777(0x2d4)],[wt]));}['_initModules'](){const _0x5f2440=_0x2da18b;var _0x39904e,_0x1a9d83;this[_0x5f2440(0x272)][_0x5f2440(0x2dd)](_0xa0ce64)[_0x5f2440(0x47c)]({'priority':0x14,'interceptor':_0x337f4a({'maxParallel':0x6})}),this[_0x5f2440(0x272)][_0x5f2440(0x2dd)](Qe),(_0x39904e=this['_config'])!=null&&_0x39904e['enableOfflineEditing']||this[_0x5f2440(0x272)]['get'](D)[_0x5f2440(0x392)](),(_0x1a9d83=this['_config'])!=null&&_0x1a9d83['enableAuthServer']&&this[_0x5f2440(0x272)][_0x5f2440(0x2dd)](Ze),this['_injector'][_0x5f2440(0x2dd)](Ae),this[_0x5f2440(0x272)]['has'](Ue)&&this[_0x5f2440(0x272)][_0x5f2440(0x2dd)](Ue);}};ra(Mt,_0x2da18b(0x308),oa),Mt=na([_0x241aac(_0x4768dc),ke(0x1,_0x16c619),ke(0x2,_0x4031fb),ke(0x3,_0x24691e(_0x129c7a)),ke(0x4,_0x4b95b7)],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};
|