@univerjs-pro/collaboration-client 1.0.0 → 1.0.2

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.
Files changed (86) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +15 -15
  86. package/lib/types/controllers/config.schema.d.ts +0 -64
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ff7ba=_0x455c;(function(_0x524c5f,_0x3963ae){const _0x915acf=_0x455c,_0x5d2e84=_0x524c5f();while(!![]){try{const _0x32981d=-parseInt(_0x915acf(0x268))/0x1+-parseInt(_0x915acf(0x2d5))/0x2+-parseInt(_0x915acf(0x1f1))/0x3*(-parseInt(_0x915acf(0xe1))/0x4)+parseInt(_0x915acf(0x196))/0x5*(-parseInt(_0x915acf(0x14f))/0x6)+-parseInt(_0x915acf(0xb9))/0x7+-parseInt(_0x915acf(0x151))/0x8*(parseInt(_0x915acf(0x25a))/0x9)+parseInt(_0x915acf(0x136))/0xa;if(_0x32981d===_0x3963ae)break;else _0x5d2e84['push'](_0x5d2e84['shift']());}catch(_0x503ed2){_0x5d2e84['push'](_0x5d2e84['shift']());}}}(_0x4f12,0x39c55));import{CollaborationEvent as _0x5a2b35,CompressMutationService as _0x21501a,EmptyMutationInfo as _0x2fc055,ISnapshotServerService as _0x563d2c,ITransformService as _0x1e679f,RevisionService as _0x434fdf,SnapshotService as _0x595abe,UniverCollaborationPlugin as _0x13764c,b64DecodeUnicode as _0x2ac22b,isTransformChangesetsSuccess as _0x17f2dc,isTransformMutationsWithChangesetFailure as _0x436cb7,isTransformMutationsWithChangesetSuccess as _0x372ff5,mapDocumentTypeToUniverInstanceType as _0x4d8d95,parseChangesetToProtocol as _0xda8267,parseProtocolChangeset as _0x10d9b7,textEncoder as _0x354882,uuidv4 as _0x42248d}from'@univerjs-pro/collaboration';import{CommandType as _0xd06548,DependentOn as _0x284fd9,Disposable as _0x1dea33,DisposableCollection as _0x4fe72c,IAuthzIoService as _0x15e24c,ICommandService as _0x15a5e2,IConfigService as _0x3c20c1,IContextService as _0x1488ec,IImageIoService as _0x207067,ILogService as _0x43cd29,IMentionIOService as _0x12aecd,IPermissionService as _0x5e2701,IUndoRedoService as _0x4d71a7,IUniverInstanceService as _0x47a807,ImageSourceType as _0x53c3ba,ImageUploadStatusType as _0x4a45a8,Inject as _0x1bde49,Injector as _0x3737e0,JSONX as _0x538cc9,LocalUndoRedoService as _0x376cd9,LocaleService as _0xa6f03e,MentionType as _0x12720e,OBJECT_PERMISSION_CONFIG_KEY as _0x25ec09,ObjectPermissionService as _0x3dfbcf,Optional as _0x549e28,Plugin as _0x354d63,Quantity as _0x54d0a9,Rectangle as _0x40cec5,RxDisposable as _0x416b62,Tools as _0x61a2b6,UniverInstanceType as _0x213837,UserManagerService as _0x526df4,Workbook as _0x5d01ea,createIdentifier as _0x31cdc2,generateRandomId as _0x53467a,isInternalEditorID as _0xb30d49,merge as _0x5618dd,mergeOverrideWithDependencies as _0x117280,registerDependencies as _0x19e537,resolveWithBasePath as _0x359b88,sequenceExecute as _0x2d7176,toDisposable as _0x370f20,touchDependencies as _0x5c316f}from'@univerjs/core';import{DocStateChangeManagerService as _0x25c8b1,RichTextEditingMutation as _0x1890df}from'@univerjs/docs';import{InsertSheetMutation as _0x8a3fd8,SetSelectionsOperation as _0x48ea17,SheetPermissionInitController as _0xc33012,SheetsSelectionsService as _0x28b9fb,WorkbookEditablePermission as _0x3b6e04}from'@univerjs/sheets';import{BehaviorSubject as _0x497921,ReplaySubject as _0x19171e,Subject as _0x33b46e,concatMap as _0x5e2b3d,firstValueFrom as _0xea43a,map as _0x871014,merge as _0x3ac559,of as _0x19d729,shareReplay as _0x42a328,take as _0x3e9c46,takeUntil as _0x4c37d2}from'rxjs';import{CmdRspCode as _0x36a29b,CombCmd as _0x1da9fa,ErrorCode as _0x2e842d,FileSource as _0x355a84,UnitAction as _0x405ca9,UnitObject as _0x5eceb8}from'@univerjs/protocol';import{ITelemetryService as _0x26c7f3}from'@univerjs/telemetry';import{delay as _0x4b5953,filter as _0x49be3d,map as _0x5e569a,take as _0x33da2d,takeUntil as _0x51067e}from'rxjs/operators';import{AddSlidePageMutation as _0x5d0ba4,EnsureSlideMasterPageMutation as _0x55b6fb,MoveSlidePageMutation as _0x289993,RemoveSlidePageMutation as _0x53681a}from'@univerjs-pro/slides';import{HTTPRequest as _0x3addd7,HTTPService as _0x1ff29e,ISocketService as _0x4754a0,MergeInterceptorFactory as _0x52aba5,ThresholdInterceptorFactory as _0x2cc3ee,UniverNetworkPlugin as _0x4efb4a}from'@univerjs/network';import{UniverLicensePlugin as _0x347013,getGlobalObject as _0x10644d}from'@univerjs-pro/license';import{cbc as _0x38617b}from'@noble/ciphers/aes.js';import{concatBytes as _0x17cc2c,randomBytes as _0x1dbbe5,utf8ToBytes as _0xcc9922}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x3b08f4,getDrawingImageAllowSize as _0x19e255}from'@univerjs/drawing';const R=_0x1ff7ba(0x31b),gt={},_t=_0x1ff7ba(0x2aa),vt=_0x1ff7ba(0x146),yt=_0x1ff7ba(0x20a),bt=_0x1ff7ba(0x246),xt=_0x1ff7ba(0x1cf),St=_0x1ff7ba(0x117),Ct=0x3e8,wt=_0x1ff7ba(0x1db),Tt='/universer-api/uniscript';function Et(_0x1d061c){const _0x7b2762=_0x1ff7ba;return JSON[_0x7b2762(0x18f)](_0x1d061c)[_0x7b2762(0x256)];}function Dt(_0x161fbb){'@babel/helpers - typeof';const _0x23b795=_0x1ff7ba;return Dt=typeof Symbol==_0x23b795(0x1d2)&&typeof Symbol['iterator']==_0x23b795(0x258)?function(_0x3e9629){return typeof _0x3e9629;}:function(_0x2618f2){const _0x3b44b9=_0x23b795;return _0x2618f2&&typeof Symbol=='function'&&_0x2618f2[_0x3b44b9(0x34f)]===Symbol&&_0x2618f2!==Symbol['prototype']?_0x3b44b9(0x258):typeof _0x2618f2;},Dt(_0x161fbb);}function Ot(_0x229dd2,_0x2d3e66){const _0x5a07fc=_0x1ff7ba;if(Dt(_0x229dd2)!=_0x5a07fc(0x271)||!_0x229dd2)return _0x229dd2;var _0x2783c4=_0x229dd2[Symbol[_0x5a07fc(0x29f)]];if(_0x2783c4!==void 0x0){var _0xd0e90=_0x2783c4[_0x5a07fc(0x227)](_0x229dd2,_0x2d3e66||'default');if(Dt(_0xd0e90)!=_0x5a07fc(0x271))return _0xd0e90;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2d3e66===_0x5a07fc(0x198)?String:Number)(_0x229dd2);}function kt(_0x50699b){const _0x2ce30d=_0x1ff7ba;var _0x38fe9a=Ot(_0x50699b,_0x2ce30d(0x198));return Dt(_0x38fe9a)==_0x2ce30d(0x258)?_0x38fe9a:_0x38fe9a+'';}function z(_0x39981f,_0x4b2e2a,_0x4a9c0e){return(_0x4b2e2a=kt(_0x4b2e2a))in _0x39981f?Object['defineProperty'](_0x39981f,_0x4b2e2a,{'value':_0x4a9c0e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39981f[_0x4b2e2a]=_0x4a9c0e,_0x39981f;}let At=function(_0x444478){const _0x9b0ba9=_0x1ff7ba;return _0x444478['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x444478[_0x9b0ba9(0x2ea)]=_0x9b0ba9(0x2ea),_0x444478[_0x9b0ba9(0x1d7)]=_0x9b0ba9(0x1d7),_0x444478[_0x9b0ba9(0x338)]='CONFLICT_CACHE_CLEAR_FAILED',_0x444478[_0x9b0ba9(0x318)]='CONFLICT',_0x444478['CLOSE_ROOM']=_0x9b0ba9(0x1a4),_0x444478[_0x9b0ba9(0x9c)]=_0x9b0ba9(0x9c),_0x444478[_0x9b0ba9(0x1fe)]=_0x9b0ba9(0x1fe),_0x444478[_0x9b0ba9(0x23f)]='SOCKET_FAILED',_0x444478[_0x9b0ba9(0x189)]='SUBMIT_CHANGESET_TIMEOUT',_0x444478;}({});var B=class{constructor(){const _0x4c5859=_0x1ff7ba;z(this,_0x4c5859(0x13c),new _0x33b46e()),z(this,'event$',this[_0x4c5859(0x13c)]['asObservable']());}[_0x1ff7ba(0x11c)](_0x42dd3c){const _0x226a25=_0x1ff7ba;this['_event$'][_0x226a25(0x14c)](_0x42dd3c);}},jt=class{constructor(){const _0x1bf79d=_0x1ff7ba;z(this,'_commentUpdate$',new _0x33b46e()),z(this,_0x1bf79d(0x2f3),this[_0x1bf79d(0xf5)]['asObservable']());}['onCommentUpdate'](_0x5940a3){const _0x92f78f=_0x1ff7ba;this['_commentUpdate$'][_0x92f78f(0x14c)](_0x5940a3);}};function V(_0x488154,_0x286d27){return function(_0x590900,_0x1d2ae1){_0x286d27(_0x590900,_0x1d2ae1,_0x488154);};}function H(_0xbb3470,_0x5c7eee,_0x936ecc,_0x2a631a){const _0x2cfa0c=_0x1ff7ba;var _0x49b1c2=arguments['length'],_0x51cbfc=_0x49b1c2<0x3?_0x5c7eee:_0x2a631a===null?_0x2a631a=Object[_0x2cfa0c(0x1aa)](_0x5c7eee,_0x936ecc):_0x2a631a,_0x36c702;if(typeof Reflect==_0x2cfa0c(0x271)&&typeof Reflect['decorate']==_0x2cfa0c(0x1d2))_0x51cbfc=Reflect[_0x2cfa0c(0xbf)](_0xbb3470,_0x5c7eee,_0x936ecc,_0x2a631a);else{for(var _0xc7acdc=_0xbb3470[_0x2cfa0c(0x256)]-0x1;_0xc7acdc>=0x0;_0xc7acdc--)(_0x36c702=_0xbb3470[_0xc7acdc])&&(_0x51cbfc=(_0x49b1c2<0x3?_0x36c702(_0x51cbfc):_0x49b1c2>0x3?_0x36c702(_0x5c7eee,_0x936ecc,_0x51cbfc):_0x36c702(_0x5c7eee,_0x936ecc))||_0x51cbfc);}return _0x49b1c2>0x3&&_0x51cbfc&&Object['defineProperty'](_0x5c7eee,_0x936ecc,_0x51cbfc),_0x51cbfc;}function _0x4f12(){const _0x56950d=['apply','connection\x20error','saveAttachment','not_collab','[CollaborationState]:\x20apply\x20error!','_stopTelemetryCollaborationNewChangeset','/rev/','[CollaborationUndoRedoService]','_getConfig','getTypeOfUnitAdded$','resolve','_updateState','pipe','_members$','1.0.0','removeMember','toPrimitive','/role','x-univer-host','/-/object/-/batch_allowed','_socket','_scheduleCollaborationTimeoutTimer','location','getUnitOnRev','objectID','actions','_getUploadFileURL','ws://127.0.0.1:8000/universer-api/comb/connect','_changesetSessionId','_sessions','UNIVER_PDF','_sendingTimer','Univer','_prepareConflictRecovery','onSyncEditingCollabCursor','localUnitId','_onRemoteChangeset','JOIN','univer-pro.collaboration-client.network-condition.service','entityInit$','session','getCollabEntity','[CollaborationSessionService]:\x20socket\x20error','getAttachmentUrl','offline','getFocusedUnit','_onConflict','mutations','pending','OFFLINE','dispose$','/object','INGEST','/-/object/list','_onFetchMissResult','addImageSourceCache','_transformRemoteChangesetByStateCache','clearOfflineData','_networkConditionService','_transformUndoredo','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','updateCursorEvent','USERS_LEAVE','_commentService','requireSession','changesets','state','/new_changes','_redoStacks','_undoStacks','684776PgKoYX','_getAPIPrefix','url','add','loadDoc','ERROR_IMAGE_TYPE','authzUrl','_updateLocalCache','_createHandler','compose','snapshot','_startCollaboration','data','objectActions','_onMessage','_changesetReqId','_resolveSessionIdentity','univer-pro.collaboration-client-adapter-service','put','range','withCredentials','PERMISSION_DENIED','onTransformIME','_getSignURL','routeKey','PENDING','SUBMIT_CHANGESET','_clearRetryConnectingTimer','resolveUnit','_joinRoom','commentUpdate$','columnGroups','min','endpointKey','_incrementRevisionNumber','createCollaborator','endpoint','_transformStateCache','snapshotServerUrl','onPrepareTransformSelections','_getCtorByUniverInstanceType','error$','session.join-failed','waitForRoom$','type','getCurrentSelections','onRemoteChangeset','_permissionService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','method','getCurrentUser','_transitionLocked','_handleRemoteChangesets','createSocket','_tryReconnect','_eventService','HELLO','baseRev','_HTTPService','[DataLoaderService]','_onRemoteRejected','reqId','_acknowledgedAwaitingRevision','batchAllowed','toggleOnline','JOIN_ROOM_PERMISSION_DENIED','_applyRemoteChangeset','CONFLICT','unitInfo$','_awaitingChangeset','collaboration-client.config','_roomMembers','_handlerCallback','[CollaborationEntity]','AWAITING','_onRemoteACK','_type','get','_collaborationPaused','CHANGESET_SHOULD_RETRY','FileId','_onRecvEvent','unknown','reject','/universer-api/stream/file/upload','_clearCollaborationTimeoutTimer','focused$','collaboratorID','_onOffline','memberID','getUploadOptions','rev','cmd','sessionStatus','__splitChunk__','_sender','AWAITING_WITH_PENDING','_sessionStatus$','unitDisposed$','CONFLICT_CACHE_CLEAR_FAILED','onlyLocal','_collaborationUIEventService','csShouldRetryEvent','_collabSessionService','_isEchoedAwaitingChangeset','_init','POST','setConfig','indexOf','members','onMutationExecutedForCollab','forEach','pauseCollaboration','socketMessageSubscription','ONLINE','_compressMutationService','_initDependencies','saveSheetBlock','loadOfflineData','LEAVE','unit','confirm','constructor','/block/','sendHeartbeatTimer','submit\x20changeset\x20error!','UNIVER_BOARD','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_exhaustRemoteChangesetQueue','_httpService','_config','closeSession','resend','collaboration-client.local-cache-service','_getCurrentRevision','close','map','_decreaseWaiting','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unitId','target','onRemoteAck','deepClone','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','{fileID}','telemetry\x20info\x20is\x20not\x20initialized','_clearTimeoutTimer','onTransformState','_identity','JOIN_ROOM_FAILED','_acknowledgeAwaitingIfReady','downloadEndpointUrl','awaiting','catch','asObservable','maxSize','saveChangeset','executeCommand','UNIVER_COLLABORATION_CLIENT_PLUGIN','_state','onRemoteRej','getRoom','_authzIoService','unitType','_clearHeartbeatTimer','_initUnitPermissionChange','capture','initWorkbookPermissionChange','session.room-permission-denied','_imageSourceCache','loadUnitOfRevision','[CollaborationSessionService]','PERMISSION_REJ','shouldCloseConn','saveImage','/object/','open$','_transformAndApplyRemoteChangeset','3026135vWmrIV','appendMutation','LIVESHARE_OPERATION','_singleActiveUnitService','workbook','_injector','decorate','_isPermissionRej','/universer-api/snapshot/','copyFileMeta','_syncEditingCollabCursor','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','updateSnapshot','People','_socketMessageSubscription','_transformService','toRemote','UPDATE_PERMISSION_OBJ','/universer-api/authz','_cfgEnableObjInherit','getUnitId','_getSocketChannel','[SyncedState]:\x20received\x20rejection.','_hasSessionsForEndpoint','responseType','_sheetTransformSelectionsService','_onConnectionOpen','_clearScheduledTask','_showConflictProcessingNotification','univer-pro.collaboration-client.single-active-unit-service','editing\x20status\x20changed\x20to','fetchMissingChangesets','_userManagerService','COMMENT_UPDATE','packageName','splice','error','DEFAULT_FILE_NAME','CHANGESET_ACK','docStateChange$','16gxayGO','updateOfflineData','_shouldReportTelemetry','_throwTelemetryCollaborationNewChangeset','send','_unitLoaded$','_roomCreated$','updateCollaborator','_replaceFileID','title','getSnapshotAPIPath','[CollaborationSession]','&to=','_registerDependencies','_tryEnsureSocket','headers','find','localeService','_doCreateSocket','_remoteChangesetQueue','_commentUpdate$','_handler','_queuedRemoteChangesets','attachment','\x20-\x20','supports','allowed','disableLocalCache','UNIVER_SLIDE','getConfig','_telemetryInfo','hostname','[FetchMissState]','getTime','getUnitStatus$','onTransformSelections','roles','_transformRemoteChangesetByIMECache','disposeWithMe','eventID','_maxTotalRetryTimeout','from','COMPRESS_MUTATION_APPLY','_localCacheService','socket\x20open.','MUTATION','fetchThroughInterceptors','listRoles','base-ui.attachment-io.service','c2Prime','_unitInfo$','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_replayCachedMutations','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','LOCAL_CACHE_INTERVAL','_commandService','UNISCRIPT_RUN','[OfflineState]:\x20received\x20changeset.','getCfgEnableObjInherit','emitEvent','incrementRevOfUnit','getUnitType','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_instanceService','[PendingState]:\x20received\x20rejection.','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','LIVESHARE_REQUEST_HOST','Document','_status$','UNIVER_BASE','_resendWithTimeout','_fetchMissChangesets','set','_getSendChangesetTimeout','readyForCollab','session.room-not-exists','timeoutTimer','_members','origin','roomInfos','awaitingChangeset','_onCombEvent','onSendChangeset','_transformSelections','_socketService','18473380kkkEws','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','ERROR_IMAGE','FETCH_MISSING','/unit/','CHANGESET_REJ','_event$','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','transformUndoRedo','/universer-api/oidc/authpage','/universer-api/comb','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','/allowed','_transformIMECache','univer-pro.collaboration-client-socket-service','getAllMembers','/universer-api/user/session-ticket','list','onCommentUpdate','JOINING','some','result','next','getActiveSheet','getCurrentRevOfUnit','116862UDDRTa','isArray','808nKpIpb','filter','toLocal','userID','_scheduleCompleteTimestamp','_change$','onStarting','_getUnitPermissionPoints','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','name','socket$','&source=','body','_checkMissing','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_rescheduleHeartbeat','signUrlServerUrl','csRejEvent','/collaborator','onTransformRemoteChangesetByStateCache','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','infoRsp','getValue','max','encode','changeset','createInstance','HEARTBEAT','MSG_FOR_ERROR','code','cfgEnableObjInherit','override','updatePermissionObjEvent','registerHTTPInterceptor','objectId','debug','\x20in\x20_schedule.','getMemberID','_localeService','UPDATE_CURSOR','_updateUnitPermissionPoint','PERSON','objectType','sid','clear','Edit','objects','status$','_onUserLeave','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','NO_OTHER_CLIENTS_EDITING','missingChangesets','/resources','values','blockRanges','onTransformRemoteChangesetByIMECache','SUBMIT_CHANGESET_TIMEOUT','_resendTimeout','?size=','putCollaborators','getCollabEntity$','retryCount','stringify','_snapshotServerService','getImage','prototype','floor','reverse','_refreshUnitPermission','85awTqOG','_getLoginPath','string','_adapter','_logService','onMissingChangesets','_lockTransition','action','rollback','href','_upload','unitID','pluginName','OTHER_CLIENT_EDITING','CLOSE_ROOM','session.room-cnt-exceeds','_toggleOffline','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','UNIVER_DOC','tables','getOwnPropertyDescriptor','create','_pendingSessions','_listenToNetworkCondition','fetch_missing','_collaborationTimeoutTimer','encrypt','slice','clearUnit','_getAPIPrefixPath','message$','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_collaborationSessionService','enableSingleActiveInstanceLock','_resendTimer','equals','socketReady','fromCollab','setCfgEnableObjInherit','subType','_closedUnits','transformSelections','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_emitMembers','/fetchmissing?from=','src','upload','save\x20fail\x20reason\x20is\x20','\x0aAfter:\x20','JOIN_ROOM_NOT_EXISTS','SHOULD_CLOSE_CONN','includes','_submitChangeset','@univerjs-pro/collaboration-client','getInterceptPoints','dispose','push','RETRY_CONNECTING_MAX_COUNT','_sessionChannels','onMissedChangesetFetched','function','has','_transformStack','conflict','_getRedoStack','CONFLICT_PROCESSING','originalMeta','LIVESHARE_TERMINATE','_schedule','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_initMergeInterceptor','_entities','joinRsp','_socketChannels','loadSheet','collabSubmitChangesetUrl','updateMember','status','params','selections','SUCCUSS','file','parse','getTypeOfUnitDisposed$','onload','subscribe','subject','&assign=','c1Prime','isPermissionRej','219129PuEXUV','_memberService','_createInitialState','collaboration_new_changeset','_executeRemoteChangeset','Board','_getDownloadEndpointURL','sheets','getMember','unitId\x20is\x20not\x20found','socket\x20close','UNIVER_SHEET','refreshUnit','SOCKET_FAILED_RETRY','_showConflictNotification','toggleOffline','_clearRedo','liveShareOperation','_waitForHeartbeatResponse','reconnect','members$','_univerInstanceService','_getUndoStack','_prepareTransformSelections','loadPdf','HEARTBEAT_INTERVAL','online$','refreshPermission','_acknowledgeAwaiting','synced','_telemetryService','OTHER_CLIENTS_EDITING','findIndex','_disposed','_substituteRedoStack','_createSession','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','replace','state$','localCacheService','fromCharCode','saveSnapshot','_onRemoteRetry','onRemoteRetry','requestParams','objectPermissionTypes','UUID','complete','_updateStatus','_docStateChangeManagerService','fetchMiss','[OfflineState]:\x20received\x20acknowledgement.','\x0aCurrent:\x20','close$','call','sessionStatus$','updatePermissionPoint','append','enableAuthServer','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','revision','LIVESHARE_NEW_HOST','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','getLatestCsReqIdBySid','PSEUDO_FETCH_MISSING_RESULT','__Key__','_createSocket','delete','USERS_ENTER','Workbook','_disableEditing','sendChangesetTimeout','_clearUndo','COMPRESS_MUTATION_SEND','NOT_COLLAB','candidateSocket','editingUnit','getUnit','SOCKET_FAILED','size','[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.','transformMutationsWithChangeset','hasOwnProperty','/universer-api/file/{fileID}/sign-url','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','HEARTBEAT_TIMEOUT','_unlockTransition','event$','now','JOIN_ROOM_FULL','_snapshotService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','encodeURIComponent','transformStack\x20failed!','m2Prime','Error\x20on\x20receiving\x20event','_startTelemetryCollaborationNewChangeset','transformChangesets','UnitEmbedded','every','startsWith','length','IDLE','symbol','_pendingMutations','31851sQZTWP','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/universer-api/snapshot','socketService','ERROR_EXCEED_SIZE','newCsEvent','_onLocalMutation','endsWith','_toggleOnline','_revisionService','awaiting_with_pending','_onConnectionFailed','enableOfflineEditing','[SyncedState]:\x20received\x20acknowledgement.','439640sEijRl','unit-cache-','interceptor','update','enableCollaboration','retryConnectingTimer','unsubscribe','_initRequestHeader','_initCloseConn','object','NEW_CHANGESETS','getWorkbookSelections','_configService','post','_entityInit$','_removeRoom','BASE64','stopTime','number','FETCH_MISS','OPTIONAL','_onUserJoin','collabWebSocketUrl','RECV','_undoRedoService','_waitCount','collaborators','_onJoinRoomEvent','liveShareNewHost','Base','loadBoard','sort','getSheetBlock','textRanges','accept','_state$','reduce','init','[UniverCollaborationClientPlugin]'];_0x4f12=function(){return _0x56950d;};return _0x4f12();}let Mt=class extends _0x1dea33{constructor(_0x52a16e){const _0x2e5778=_0x1ff7ba;super(),this[_0x2e5778(0x206)]=_0x52a16e,z(this,_0x2e5778(0x31c),new Map()),z(this,_0x2e5778(0xe7),new _0x33b46e()),this[_0x2e5778(0x107)](_0x3ac559(this[_0x2e5778(0x206)]['getTypeOfUnitDisposed$'](_0x213837[_0x2e5778(0x1fc)])['pipe'](_0x5e569a(_0x424e2d=>_0x424e2d['getUnitId']())),this[_0x2e5778(0x206)][_0x2e5778(0x1ea)](_0x213837[_0x2e5778(0x1a8)])[_0x2e5778(0x29b)](_0x5e569a(_0x54ab7a=>_0x54ab7a['getUnitId']())),this[_0x2e5778(0x206)][_0x2e5778(0x1ea)](_0x213837[_0x2e5778(0x85)])[_0x2e5778(0x29b)](_0x5e569a(_0x44cfb4=>_0x44cfb4['getUnitId']())),this[_0x2e5778(0x206)][_0x2e5778(0x1ea)](_0x213837['UNIVER_BASE'])[_0x2e5778(0x29b)](_0x5e569a(_0x34376c=>_0x34376c['getUnitId']())))[_0x2e5778(0x1ec)](_0xb2da3a=>this[_0x2e5778(0x277)](_0xb2da3a)));}[_0x1ff7ba(0x300)](_0x128db4){const _0xc1e8ee=_0x1ff7ba;return this[_0xc1e8ee(0x31c)][_0xc1e8ee(0x1d3)](_0x128db4)?_0x19d729(this[_0xc1e8ee(0x31c)]['get'](_0x128db4)):this[_0xc1e8ee(0xe7)][_0xc1e8ee(0x29b)](_0x5e569a(_0x20b5a9=>{const _0x156d7c=_0xc1e8ee;if(_0x20b5a9===_0x128db4)return this[_0x156d7c(0x31c)][_0x156d7c(0x322)](_0x20b5a9);}));}[_0x1ff7ba(0x1e3)](_0x435f2b,_0x24c29a){const _0x4a9f5a=_0x1ff7ba;let _0x1d8725=this[_0x4a9f5a(0x31c)][_0x4a9f5a(0x322)](_0x435f2b);_0x1d8725||(_0x1d8725=new Nt(),this[_0x4a9f5a(0x31c)]['set'](_0x435f2b,_0x1d8725),this[_0x4a9f5a(0xe7)][_0x4a9f5a(0x14c)](_0x435f2b)),_0x1d8725[_0x4a9f5a(0x1e3)](_0x24c29a);}['removeMember'](_0x43983a,_0x41308d){const _0x54220b=_0x1ff7ba;let _0x2089c3=this[_0x54220b(0x31c)][_0x54220b(0x322)](_0x43983a);_0x2089c3&&_0x2089c3[_0x54220b(0x29e)](_0x41308d);}[_0x1ff7ba(0xa8)](_0x4870dc){const _0x2879b3=_0x1ff7ba;return this['_roomMembers'][_0x2879b3(0x322)](_0x4870dc);}[_0x1ff7ba(0x1f9)](_0x5843f2,_0x42f6a8){const _0x37b1f4=_0x1ff7ba;let _0x443cfa=this[_0x37b1f4(0x31c)][_0x37b1f4(0x322)](_0x5843f2);if(_0x443cfa)return _0x443cfa[_0x37b1f4(0x1f9)](_0x42f6a8);}[_0x1ff7ba(0x277)](_0x4f9616){const _0x145b83=_0x1ff7ba;let _0x339933=this['_roomMembers'][_0x145b83(0x322)](_0x4f9616);_0x339933&&(_0x339933[_0x145b83(0x1cd)](),this[_0x145b83(0x31c)][_0x145b83(0x234)](_0x4f9616));}[_0x1ff7ba(0x1cd)](){const _0x4a4693=_0x1ff7ba;this[_0x4a4693(0x31c)][_0x4a4693(0x344)](_0xad60dd=>_0xad60dd[_0x4a4693(0x1cd)]()),this[_0x4a4693(0x31c)][_0x4a4693(0x17d)](),this['_roomCreated$'][_0x4a4693(0x220)]();}};Mt=H([V(0x0,_0x47a807)],Mt);var Nt=class extends _0x1dea33{constructor(..._0x36d181){const _0x114f57=_0x1ff7ba;super(..._0x36d181),z(this,'_members',new Map()),z(this,'_members$',new _0x497921(this[_0x114f57(0x12e)])),z(this,_0x114f57(0x205),this[_0x114f57(0x29c)]['asObservable']());}['dispose'](){const _0xadc580=_0x1ff7ba;this[_0xadc580(0x12e)][_0xadc580(0x17d)](),this[_0xadc580(0x29c)][_0xadc580(0x220)]();}['updateMember'](_0x49f683){const _0x190e91=_0x1ff7ba;this[_0x190e91(0x12e)][_0x190e91(0x129)](_0x49f683[_0x190e91(0x32e)],_0x49f683),this['_emitMembers']();}[_0x1ff7ba(0x29e)](_0x517369){const _0x5d7b38=_0x1ff7ba;this[_0x5d7b38(0x12e)][_0x5d7b38(0x234)](_0x517369),this[_0x5d7b38(0x1c1)]();}[_0x1ff7ba(0x1f9)](_0x5d559f){const _0x395696=_0x1ff7ba;return this[_0x395696(0x12e)]['get'](_0x5d559f);}[_0x1ff7ba(0x145)](){const _0x2a40cd=_0x1ff7ba;return Array[_0x2a40cd(0x10a)](this[_0x2a40cd(0x12e)][_0x2a40cd(0x186)]());}[_0x1ff7ba(0x1c1)](){const _0x2fb19c=_0x1ff7ba;this[_0x2fb19c(0x29c)]['next'](this[_0x2fb19c(0x12e)]);}};function Pt(_0x4d2ac5,_0x316870){const _0x227ce5=_0x1ff7ba;if(It(_0x4d2ac5))return _0x316870;if(_0x316870['eventID']===_0x5a2b35[_0x227ce5(0x2ef)]){let _0x2d2ada=Vt(_0x4d2ac5),_0x2df74b=_0x316870;return{..._0x2df74b,'data':{..._0x2df74b['data'],'unitID':_0x4d2ac5['target']['unitId'],'unitType':_0x4d2ac5[_0x227ce5(0x93)][_0x227ce5(0xaa)]??_0x2df74b[_0x227ce5(0x2e1)][_0x227ce5(0xaa)],'changeset':_0x2d2ada[_0x227ce5(0xc9)](_0x2df74b[_0x227ce5(0x2e1)][_0x227ce5(0x16a)],Ht(_0x4d2ac5))}};}if(_0x316870['eventID']===_0x5a2b35[_0x227ce5(0x139)]){let _0x5a8927=_0x316870;return{..._0x5a8927,'data':{..._0x5a8927[_0x227ce5(0x2e1)],'unitID':_0x4d2ac5[_0x227ce5(0x93)][_0x227ce5(0x92)],'unitType':_0x4d2ac5[_0x227ce5(0x93)][_0x227ce5(0xaa)]??_0x5a8927['data'][_0x227ce5(0xaa)]}};}return _0x316870;}function Ft(_0x24ecea,_0x1f9f63){const _0x51b264=_0x1ff7ba;if(It(_0x24ecea))return[_0x1f9f63];switch(_0x1f9f63[_0x51b264(0x108)]){case _0x5a2b35[_0x51b264(0x272)]:return[Lt(_0x24ecea,_0x1f9f63)];case _0x5a2b35[_0x51b264(0x231)]:return[zt(_0x24ecea,_0x1f9f63)];case _0x5a2b35[_0x51b264(0x324)]:return[Rt(_0x24ecea,_0x1f9f63)];default:return[_0x1f9f63];}}function It(_0x3a8bfc){const _0x42005c=_0x1ff7ba;return _0x3a8bfc[_0x42005c(0x93)]['endpoint']==null&&_0x3a8bfc['target'][_0x42005c(0x92)]===_0x3a8bfc[_0x42005c(0x2b2)]&&!_0x3a8bfc['changeset'];}function Lt(_0x40d640,_0x14e017){const _0x30f88a=_0x1ff7ba;return{..._0x14e017,'data':_0xda8267(Bt(_0x40d640,_0x10d9b7(_0x14e017[_0x30f88a(0x2e1)])))};}function Rt(_0xde766,_0x444a0f){const _0x71b580=_0x1ff7ba;return{..._0x444a0f,'data':Bt(_0xde766,_0x444a0f[_0x71b580(0x2e1)])};}function zt(_0x324b9e,_0x43b4e6){const _0x3ab980=_0x1ff7ba;let _0x4271e9=_0x43b4e6[_0x3ab980(0x2e1)];return{..._0x43b4e6,'data':{..._0x4271e9,'changesets':_0x4271e9[_0x3ab980(0x2d0)][_0x3ab980(0x8f)](_0x3ac7fc=>_0xda8267(Bt(_0x324b9e,_0x10d9b7(_0x3ac7fc))))}};}function Bt(_0x79390b,_0xc560e4){const _0x273d37=_0x1ff7ba;return Vt(_0x79390b)[_0x273d37(0x153)](_0xc560e4,Ht(_0x79390b));}function Vt(_0x42168f){const _0x5cece2=_0x1ff7ba;if(!_0x42168f[_0x5cece2(0x16a)])throw Error(_0x5cece2(0x13d));return _0x42168f['changeset'];}function Ht(_0x3cee07){const _0x45b274=_0x1ff7ba;return{'localUnitId':_0x3cee07[_0x45b274(0x2b2)],'unitType':_0x3cee07['unitType'],'target':_0x3cee07[_0x45b274(0x93)]};}let Ut=function(_0x1669a4){const _0x30b850=_0x1ff7ba;return _0x1669a4[_0x1669a4['IDLE']=0x0]=_0x30b850(0x257),_0x1669a4[_0x1669a4[_0x30b850(0x149)]=0x1]=_0x30b850(0x149),_0x1669a4[_0x1669a4[_0x30b850(0x2c0)]=0x2]=_0x30b850(0x2c0),_0x1669a4[_0x1669a4[_0x30b850(0x347)]=0x3]='ONLINE',_0x1669a4;}({});const Wt={[_0x36a29b['FAIL']]:_0x1ff7ba(0x2ff),[_0x36a29b[_0x1ff7ba(0x24a)]]:'session.room-full',[_0x36a29b[_0x1ff7ba(0x1c7)]]:_0x1ff7ba(0x12c),[_0x36a29b[_0x1ff7ba(0x316)]]:_0x1ff7ba(0xaf),[_0x36a29b['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x1ff7ba(0x1a5)};let Gt=class extends _0x416b62{get['sessionStatus'](){return this['_sessionStatus$']['getValue']();}constructor(_0x1cf155,_0x3e3498,_0x3ee909,_0x475a04,_0x559128,_0x145ab0,_0xed669c,_0x1e77b4){const _0x28a845=_0x1ff7ba;super(),this[_0x28a845(0x9b)]=_0x1cf155,this[_0x28a845(0x19a)]=_0x3ee909,this[_0x28a845(0x274)]=_0x475a04,this['_memberService']=_0x559128,this[_0x28a845(0x2ce)]=_0x145ab0,this[_0x28a845(0x33a)]=_0xed669c,this[_0x28a845(0x20f)]=_0x1e77b4,z(this,'_sessionStatus$',new _0x497921(0x0)),z(this,_0x28a845(0x228),this[_0x28a845(0x336)][_0x28a845(0xa1)]()),z(this,_0x28a845(0x13c),new _0x33b46e()),z(this,_0x28a845(0x248),this[_0x28a845(0x13c)][_0x28a845(0xa1)]()),z(this,_0x28a845(0x2a3),void 0x0),z(this,_0x28a845(0xc7),void 0x0),z(this,_0x28a845(0x1af),void 0x0),z(this,'_shouldReportTelemetry',!0x1),z(this,_0x28a845(0xff),null),this[_0x28a845(0xe3)]=!!this[_0x28a845(0x20f)],_0x3e3498['pipe'](_0x4c37d2(this[_0x28a845(0x2c1)]))['subscribe'](_0x2cb60a=>{const _0x386c32=_0x28a845;if(_0x2cb60a!==void 0x0){if(this[_0x386c32(0x2a3)]=_0x2cb60a,_0x2cb60a)this[_0x386c32(0x2f2)](_0x2cb60a),this[_0x386c32(0xc7)]=_0x2cb60a[_0x386c32(0x1b4)][_0x386c32(0x1ec)](_0x18dcaa=>{const _0x389bc1=_0x386c32;_0x18dcaa[_0x389bc1(0x2ed)]===this['_identity'][_0x389bc1(0x93)]['unitId']&&this[_0x389bc1(0x132)](_0x18dcaa);});else{var _0x220291;this[_0x386c32(0xe4)](),this[_0x386c32(0x336)][_0x386c32(0x14c)](0x2),(_0x220291=this[_0x386c32(0xc7)])==null||_0x220291['unsubscribe'](),this[_0x386c32(0xc7)]=null;}}});}[_0x1ff7ba(0x176)](){var _0x43fdbd;return((_0x43fdbd=this['_socket'])==null?void 0x0:_0x43fdbd['memberID'])??null;}[_0x1ff7ba(0x1cd)](){const _0x4259e3=_0x1ff7ba;super[_0x4259e3(0x1cd)](),this[_0x4259e3(0x8e)](),this[_0x4259e3(0x2c1)]['next'](),this[_0x4259e3(0x2c1)]['complete']();}[_0x1ff7ba(0x8e)](){const _0x1fb0ed=_0x1ff7ba;var _0x1eeaa6;this[_0x1fb0ed(0xe4)](),(_0x1eeaa6=this[_0x1fb0ed(0x2a3)])==null||_0x1eeaa6[_0x1fb0ed(0xe5)]({'cmd':_0x1da9fa[_0x1fb0ed(0x34c)],'data':{'roomID':this[_0x1fb0ed(0x9b)][_0x1fb0ed(0x93)]['unitId']}}),this['_event$'][_0x1fb0ed(0x220)](),this[_0x1fb0ed(0x336)][_0x1fb0ed(0x220)]();}[_0x1ff7ba(0x132)](_0x2ed57b){const _0xa95fe0=_0x1ff7ba;_0x2ed57b['cmd']===_0x1da9fa[_0xa95fe0(0x2b4)]?this[_0xa95fe0(0x283)](_0x2ed57b):_0x2ed57b[_0xa95fe0(0x331)]===_0x1da9fa[_0xa95fe0(0x27f)]&&this[_0xa95fe0(0x326)](_0x2ed57b);}[_0x1ff7ba(0x2f2)](_0xd066fe){const _0x2672fe=_0x1ff7ba;this['_sessionStatus$']['next'](0x1),_0xd066fe['send']({'cmd':_0x1da9fa[_0x2672fe(0x2b4)],'routeKey':this[_0x2672fe(0x9b)]['target'][_0x2672fe(0x92)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2672fe(0x9b)]['target']['unitId']}]}});}[_0x1ff7ba(0x283)](_0x1476c5){const _0x293d0f=_0x1ff7ba;var _0x4d6f9e;if(_0x1476c5[_0x293d0f(0x16e)]in Wt){this[_0x293d0f(0x33a)][_0x293d0f(0x11c)]({'id':_0x293d0f(0x9c),'data':Wt[_0x1476c5[_0x293d0f(0x16e)]]}),this[_0x293d0f(0x336)]['next'](0x2);return;}this[_0x293d0f(0x336)][_0x293d0f(0x14c)](0x3);let _0x51c767=(_0x4d6f9e=_0x1476c5[_0x293d0f(0x2e1)][_0x293d0f(0x130)][this[_0x293d0f(0x9b)][_0x293d0f(0x93)][_0x293d0f(0x92)]])==null?void 0x0:_0x4d6f9e[_0x293d0f(0x342)];_0x51c767&&_0x51c767[_0x293d0f(0x344)](_0x16ce80=>this[_0x293d0f(0x1f2)][_0x293d0f(0x1e3)](this[_0x293d0f(0x9b)][_0x293d0f(0x2b2)],_0x16ce80));}[_0x1ff7ba(0x326)](_0x38f78f){const _0x1fab35=_0x1ff7ba;try{let _0x13956c=Ft(this[_0x1fab35(0x9b)],_0x38f78f[_0x1fab35(0x2e1)]);for(let _0x3d9b38 of _0x13956c)switch(_0x3d9b38[_0x1fab35(0x108)]){case _0x5a2b35[_0x1fab35(0x235)]:this[_0x1fab35(0x27d)](_0x3d9b38),this[_0x1fab35(0x13c)][_0x1fab35(0x14c)](_0x3d9b38);break;case _0x5a2b35[_0x1fab35(0x2cd)]:this[_0x1fab35(0x181)](_0x3d9b38),this['_event$'][_0x1fab35(0x14c)](_0x3d9b38);break;case _0x5a2b35[_0x1fab35(0xdf)]:case _0x5a2b35['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x1fab35(0x32a)](),this[_0x1fab35(0x13c)][_0x1fab35(0x14c)](_0x3d9b38);break;case _0x5a2b35['MSG_FOR_ERROR']:this[_0x1fab35(0x19a)]['error'](_0x1fab35(0x1c5)+JSON[_0x1fab35(0x18f)](_0x3d9b38)),this['_event$']['next'](_0x3d9b38);break;case _0x5a2b35[_0x1fab35(0xda)]:this[_0x1fab35(0x2ce)][_0x1fab35(0x148)](_0x3d9b38['data']),this[_0x1fab35(0x13c)][_0x1fab35(0x14c)](_0x3d9b38);break;default:this[_0x1fab35(0x13c)]['next'](_0x3d9b38);}}catch(_0x93c72e){this[_0x1fab35(0x19a)][_0x1fab35(0xdd)](_0x93c72e,_0x38f78f);}}[_0x1ff7ba(0x27d)](_0x10a21d){const _0x5b07b2=_0x1ff7ba;this[_0x5b07b2(0x1f2)][_0x5b07b2(0x1e3)](this[_0x5b07b2(0x9b)][_0x5b07b2(0x2b2)],_0x10a21d[_0x5b07b2(0x2e1)]);}[_0x1ff7ba(0x181)](_0x3d286f){const _0x23b3c6=_0x1ff7ba;this['_memberService']['removeMember'](this['_identity'][_0x23b3c6(0x2b2)],_0x3d286f['data'][_0x23b3c6(0x32e)]);}async[_0x1ff7ba(0xe5)](_0x181ce6,_0x1e8faa){const _0x2cc92f=_0x1ff7ba;if(this[_0x2cc92f(0x332)]!==0x3||!this[_0x2cc92f(0x2a3)])throw Error(_0x2cc92f(0x15f));try{let _0x5241b4=Pt(this[_0x2cc92f(0x9b)],_0x181ce6);_0x5241b4[_0x2cc92f(0x108)]===_0x5a2b35[_0x2cc92f(0x2ef)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x5241b4)),this[_0x2cc92f(0x2a3)][_0x2cc92f(0xe5)]({'cmd':_0x1da9fa[_0x2cc92f(0x2c3)],'routeKey':this[_0x2cc92f(0x9b)][_0x2cc92f(0x93)]['unitId'],'routeType':'','data':_0x5241b4});}catch(_0x40959a){this[_0x2cc92f(0x19a)][_0x2cc92f(0xdd)](_0x40959a);}}[_0x1ff7ba(0x2a4)](){const _0x5ca8fd=_0x1ff7ba;this[_0x5ca8fd(0x1af)]=setTimeout(()=>{const _0xbacf36=_0x5ca8fd;this['_collaborationTimeoutTimer']=null,this['_collaborationUIEventService'][_0xbacf36(0x11c)]({'id':_0xbacf36(0x189)});},this[_0x5ca8fd(0x274)][_0x5ca8fd(0xfe)](_0x5ca8fd(0x246))??0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x1ea032=_0x1ff7ba;this[_0x1ea032(0x1af)]&&=(clearTimeout(this[_0x1ea032(0x1af)]),null);}[_0x1ff7ba(0x251)](_0x464661){const _0x57d425=_0x1ff7ba;if(!this[_0x57d425(0xe3)])return;let {data:_0x34bd22}=_0x464661,{unitID:_0x4edbe6,changeset:_0x31c4b0}=_0x34bd22,{mutations:_0x499d8e,type:_0x10492e}=_0x31c4b0;this[_0x57d425(0xff)]={'unitId':_0x4edbe6,'type':_0x10492e,'startTime':performance[_0x57d425(0x249)](),'stopTime':0x0,'duration':0x0,'size':Et(_0x499d8e)};}[_0x1ff7ba(0x294)](){const _0x537a7f=_0x1ff7ba;if(this[_0x537a7f(0xe3)]){if(!this[_0x537a7f(0xff)]){this[_0x537a7f(0x19a)][_0x537a7f(0xdd)](_0x537a7f(0xec),_0x537a7f(0x98));return;}this[_0x537a7f(0xff)]['stopTime']=performance[_0x537a7f(0x249)](),this[_0x537a7f(0xff)]['duration']=this['_telemetryInfo'][_0x537a7f(0x279)]-this['_telemetryInfo']['startTime'],this[_0x537a7f(0x20f)][_0x537a7f(0xad)](_0x537a7f(0x1f4),this['_telemetryInfo']),this[_0x537a7f(0xff)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x59fe62=_0x1ff7ba;this[_0x59fe62(0xff)]=null;}};Gt=H([V(0x2,_0x43cd29),V(0x3,_0x3c20c1),V(0x4,_0x1bde49(Mt)),V(0x5,_0x1bde49(jt)),V(0x6,_0x1bde49(B)),V(0x7,_0x549e28(_0x26c7f3))],Gt);const U=_0x31cdc2(_0x1ff7ba(0x8c));function Kt(_0x482c9d){const _0x4a14b8=_0x1ff7ba;return _0x4a14b8(0x269)+_0x482c9d;}function qt(_0x1ba981){const _0x108527=_0x1ff7ba;let {unitID:_0x487374,mutations:_0x1435d5}=_0x1ba981;return{'unitId':_0x487374,'subUnitId':_0x1435d5['length']>0x0?_0x1435d5[0x0][_0x108527(0x1e5)]['subUnitId']:null};}let Jt=class{constructor(_0x4223e5,_0x4af7fb,_0x4ca682){const _0x1ec39e=_0x1ff7ba;this[_0x1ec39e(0xbe)]=_0x4223e5,this[_0x1ec39e(0xc8)]=_0x4af7fb,this[_0x1ec39e(0x120)]=_0x4ca682;}[_0x1ff7ba(0x1bf)](_0x501658){const _0x380472=_0x1ff7ba;var _0xf68355,_0x5bce2b;let _0x563bb2=this[_0x380472(0xbe)]['get'](_0x28b9fb),{unitId:_0xe2fc58,subUnitId:_0x89676f}=qt(_0x501658),_0x46648b=_0x563bb2==null?void 0x0:_0x563bb2[_0x380472(0x273)](_0xe2fc58)[_0x380472(0x302)](),_0x585349=(_0xf68355=this[_0x380472(0x120)][_0x380472(0x23e)](_0xe2fc58))==null||(_0xf68355=_0xf68355[_0x380472(0x14d)]())==null?void 0x0:_0xf68355['getSheetId']();if(_0x46648b[_0x380472(0x256)]===0x0||!_0xe2fc58||!_0x89676f)return;let _0x589bc8=[{'id':_0x48ea17['id'],'params':{'unitId':_0xe2fc58,'subUnitId':_0x585349,'selections':_0x61a2b6[_0x380472(0x95)](_0x46648b)}}],_0x480fb7=this[_0x380472(0xc8)][_0x380472(0x242)](_0x501658,_0x589bc8);if(!_0x372ff5(_0x480fb7))throw _0x480fb7['error'];let _0xe1fccf=(_0x5bce2b=_0x480fb7['m2Prime'][0x0])==null||(_0x5bce2b=_0x5bce2b[_0x380472(0x1e5)])==null?void 0x0:_0x5bce2b[_0x380472(0x1e6)];if(Array['isArray'](_0xe1fccf)&&_0xe1fccf[_0x380472(0x256)]){if(_0xe1fccf['length']===_0x589bc8[0x0]['params'][_0x380472(0x1e6)]['length']&&_0xe1fccf['every']((_0x763418,_0x36be6a)=>_0x40cec5[_0x380472(0x1b9)](_0x763418[_0x380472(0x2e8)],_0x589bc8[0x0][_0x380472(0x1e5)][_0x380472(0x1e6)][_0x36be6a][_0x380472(0x2e8)])))return;this['_injector'][_0x380472(0x322)](_0x15a5e2)[_0x380472(0xa4)](_0x48ea17['id'],{'unitId':_0xe2fc58,'subUnitId':_0x585349,'selections':_0xe1fccf});}}};Jt=H([V(0x0,_0x1bde49(_0x3737e0)),V(0x1,_0x1e679f),V(0x2,_0x47a807)],Jt);const W=_0x31cdc2(_0x1ff7ba(0xd6));let Yt=function(_0x10adad){const _0x243a01=_0x1ff7ba;return _0x10adad[_0x10adad['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x243a01(0x183),_0x10adad[_0x10adad[_0x243a01(0x210)]=0x1]=_0x243a01(0x210),_0x10adad;}({});function Xt(_0x255aa6){const _0x437e68=_0x1ff7ba;var _0x949352;return!!((_0x949352=_0x255aa6['params'])!=null&&_0x949352[_0x437e68(0x333)]);}const Zt=new Set([_0x8a3fd8['id']]),Qt=new Set([_0x5d0ba4['id'],_0x55b6fb['id'],_0x289993['id'],_0x53681a['id']]);function $t(_0x11ead4,_0x2b3fb8=Zt){const _0x4b776c=_0x1ff7ba;let _0x559b5e=[];for(let _0x20b34f of _0x11ead4){if(_0x2b3fb8[_0x4b776c(0x1d3)](_0x20b34f['id'])){if(_0x559b5e[_0x4b776c(0x256)]>0x0)break;_0x559b5e[_0x4b776c(0x1ce)](_0x20b34f);break;}if(Xt(_0x20b34f)){if(_0x559b5e[_0x4b776c(0x256)]>0x0)break;_0x559b5e[_0x4b776c(0x1ce)](_0x20b34f);break;}_0x559b5e['push'](_0x20b34f);}return _0x559b5e;}function en(_0x2d6b87,_0x4afadf,_0x56dc52,_0x5715df,_0xed206a){const _0x2f4de9=_0x1ff7ba;let _0x41f6f1=$t(_0x2d6b87),_0x11a89d=_0xed206a[_0x2f4de9(0x307)](),_0x40289f=(_0x11a89d==null?void 0x0:_0x11a89d[_0x2f4de9(0x154)])??'unknown',_0x46e5ca=(_0x11a89d==null?void 0x0:_0x11a89d[_0x2f4de9(0x32e)])??_0x2f4de9(0x327);return{'changeset':{'unitID':_0x4afadf,'type':_0x4d8d95(_0x56dc52[_0x2f4de9(0x11e)](_0x4afadf)),'baseRev':_0x5715df['getCurrentRevOfUnit'](_0x4afadf),'revision':0x0,'userID':_0x40289f,'memberID':_0x46e5ca,'mutations':_0x41f6f1},'pendingMutations':_0x2d6b87[_0x2f4de9(0x1b1)](_0x41f6f1[_0x2f4de9(0x256)])};}const tn=en;function nn(_0xa5cb1b,_0x503494,_0x2d081a,_0x329a6f,_0x58afe4){const _0xb05cde=_0x1ff7ba;let _0x33b7cd=$t(_0xa5cb1b,Qt),_0x4580aa=_0x58afe4[_0xb05cde(0x307)](),_0x52369a=(_0x4580aa==null?void 0x0:_0x4580aa['userID'])??_0xb05cde(0x327),_0x587ec0=(_0x4580aa==null?void 0x0:_0x4580aa['memberID'])??_0xb05cde(0x327);return{'changeset':{'unitID':_0x503494,'type':_0x4d8d95(_0x2d081a[_0xb05cde(0x11e)](_0x503494)),'baseRev':_0x329a6f[_0xb05cde(0x14e)](_0x503494),'revision':0x0,'userID':_0x52369a,'memberID':_0x587ec0,'mutations':_0x33b7cd},'pendingMutations':_0xa5cb1b[_0xb05cde(0x1b1)](_0x33b7cd['length'])};}function rn(_0x31ac49,_0x41970e,_0x2ba09c,_0x59cc43,_0x37430e){const _0x403ada=_0x1ff7ba;let _0x4a962b=_0x31ac49['reduce']((_0x304e30,_0x3581d0)=>{const _0x35f8a7=_0x455c;let _0x2dd012=_0x304e30[_0x304e30[_0x35f8a7(0x256)]-0x1],{id:_0x2776af}=_0x2dd012??{},{id:_0x5b992c,type:_0x5db06b}=_0x3581d0,_0x2d26d0=_0x3581d0['params'];if(_0x2776af&&_0x2776af!==_0x5b992c)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x2776af+_0x35f8a7(0xf9)+_0x5b992c+'.');if(!_0x2dd012)return[{'id':_0x5b992c,'type':_0x5db06b,'params':{'unitId':_0x2d26d0['unitId'],'textRanges':_0x2d26d0[_0x35f8a7(0x289)],'actions':_0x2d26d0[_0x35f8a7(0x2a8)]}}];let _0x14f0c4=_0x2dd012[_0x35f8a7(0x1e5)];return an(_0x14f0c4,_0x2d26d0)?[..._0x304e30[_0x35f8a7(0x1b1)](0x0,-0x1),{..._0x2dd012,'id':_0x5b992c,'type':_0x5db06b,'params':{'unitId':_0x2d26d0[_0x35f8a7(0x92)],'textRanges':_0x2d26d0['textRanges'],'actions':_0x538cc9[_0x35f8a7(0x2de)](_0x14f0c4[_0x35f8a7(0x2a8)],_0x2d26d0[_0x35f8a7(0x2a8)])}}]:[..._0x304e30,{'id':_0x5b992c,'type':_0x5db06b,'params':{'unitId':_0x2d26d0[_0x35f8a7(0x92)],'textRanges':_0x2d26d0[_0x35f8a7(0x289)],'actions':_0x2d26d0[_0x35f8a7(0x2a8)]}}];},[]),_0x1a4632=_0x37430e['getCurrentUser'](),_0x4dd401=(_0x1a4632==null?void 0x0:_0x1a4632[_0x403ada(0x154)])??_0x403ada(0x327),_0x31ff7a=(_0x1a4632==null?void 0x0:_0x1a4632[_0x403ada(0x32e)])??_0x403ada(0x327);return{'changeset':{'unitID':_0x41970e,'type':_0x4d8d95(_0x2ba09c[_0x403ada(0x11e)](_0x41970e)),'baseRev':_0x59cc43[_0x403ada(0x14e)](_0x41970e),'revision':0x0,'userID':_0x4dd401,'memberID':_0x31ff7a,'mutations':_0x4a962b},'pendingMutations':_0x31ac49[_0x403ada(0x1b1)](_0x31ac49[_0x403ada(0x256)])};}function an(_0x39b5b9,_0x4b8521){const _0x384bb4=_0x1ff7ba;return!on(_0x39b5b9)&&!on(_0x4b8521)&&sn(_0x39b5b9[_0x384bb4(0x2a8)],_0x4b8521[_0x384bb4(0x2a8)]);}function on(_0x50ae2c){return _0x50ae2c['isCompositionEnd']!==void 0x0;}function sn(_0xbcd7b3,_0x59fdce){return cn(_0xbcd7b3)&&cn(_0x59fdce)&&!un(_0xbcd7b3)&&!un(_0x59fdce)&&!ln(_0xbcd7b3)&&!ln(_0x59fdce);}function cn(_0x1e6477){const _0x25c6d8=_0x1ff7ba;return dn(_0x1e6477)[_0x25c6d8(0x14a)](_0x34274d=>fn(_0x34274d)&&_0x34274d['et']==='text-x');}function ln(_0x565954){const _0xd832cc=_0x1ff7ba;return dn(_0x565954)[_0xd832cc(0x14a)](_0x126459=>Array[_0xd832cc(0x150)](_0x126459)||typeof _0x126459==_0xd832cc(0x198)||typeof _0x126459==_0xd832cc(0x27a));}function un(_0x2c4791){const _0x11770c=_0x1ff7ba;return dn(_0x2c4791)['some'](_0x11c0e0=>!fn(_0x11c0e0)||_0x11c0e0['et']!=='text-x'||!Array[_0x11770c(0x150)](_0x11c0e0['e'])?!0x1:_0x11c0e0['e'][_0x11770c(0x14a)](_0xc0370b=>!fn(_0xc0370b)||!fn(_0xc0370b['body'])?!0x1:Object[_0x11770c(0x192)][_0x11770c(0x243)][_0x11770c(0x227)](_0xc0370b[_0x11770c(0x15d)],_0x11770c(0x1a9))||Object['prototype'][_0x11770c(0x243)]['call'](_0xc0370b['body'],_0x11770c(0x2f4))||Object['prototype'][_0x11770c(0x243)]['call'](_0xc0370b[_0x11770c(0x15d)],_0x11770c(0x187))));}function dn(_0x40300f){const _0x555963=_0x1ff7ba;if(!Array['isArray'](_0x40300f))return[];let _0x42ebbc=_0x40300f['includes'](_0x555963(0x15d))?_0x40300f:_0x40300f[_0x555963(0xf1)](_0x1ca980=>Array[_0x555963(0x150)](_0x1ca980)&&_0x1ca980[_0x555963(0x1c9)](_0x555963(0x15d)));if(!Array[_0x555963(0x150)](_0x42ebbc))return[];let _0xbee0af=_0x42ebbc[_0x555963(0x341)](_0x555963(0x15d));return _0xbee0af===-0x1?[]:_0x42ebbc[_0x555963(0x1b1)](_0xbee0af+0x1);}function fn(_0x4c8d09){const _0x5f1cdb=_0x1ff7ba;return typeof _0x4c8d09==_0x5f1cdb(0x271)&&!!_0x4c8d09&&!Array[_0x5f1cdb(0x150)](_0x4c8d09);}function pn(_0x64beaf,_0x51af00){const _0x557c2b=_0x1ff7ba;let _0x539399=new _0x19171e(0x1);return setTimeout(()=>_0x539399['next'](_0x51af00),_0x64beaf),_0x539399[_0x557c2b(0xa1)]()['pipe'](_0x3e9c46(0x1));}var mn,hn,gn;let _n=function(_0x4b8730){const _0x4703c3=_0x1ff7ba;return _0x4b8730[_0x4703c3(0x23b)]=_0x4703c3(0x292),_0x4b8730['SYNCED']=_0x4703c3(0x20e),_0x4b8730[_0x4703c3(0x2ee)]='pending',_0x4b8730[_0x4703c3(0x31f)]=_0x4703c3(0x9f),_0x4b8730[_0x4703c3(0x335)]=_0x4703c3(0x264),_0x4b8730[_0x4703c3(0x27b)]=_0x4703c3(0x1ae),_0x4b8730[_0x4703c3(0x318)]=_0x4703c3(0x1d5),_0x4b8730[_0x4703c3(0x2c0)]='offline',_0x4b8730;}({});const vn=0x4e20,yn=0x2bf20;var G=class{constructor(_0x2888e0,_0x3e5062,_0x1fcf4b,_0x400247,_0x33834f,_0x1abdd8,_0x47c07d,_0xa4a45b,_0x2eb96b){const _0x4e31c2=_0x1ff7ba;this['unitID']=_0x2888e0,this[_0x4e31c2(0x301)]=_0x3e5062,this[_0x4e31c2(0xf6)]=_0x33834f,this[_0x4e31c2(0x118)]=_0x1abdd8,this[_0x4e31c2(0x280)]=_0x47c07d,this['_revisionService']=_0xa4a45b,this[_0x4e31c2(0x10c)]=_0x2eb96b,z(this,_0x4e31c2(0x31a),null),z(this,'_pendingMutations',[]),this[_0x4e31c2(0x31a)]=_0x1fcf4b,this[_0x4e31c2(0x259)]=_0x400247;}[_0x1ff7ba(0x15e)](_0x2ab2fc){const _0x3ebe0e=_0x1ff7ba;let _0x1de7eb=this[_0x3ebe0e(0x263)]['getCurrentRevOfUnit'](this[_0x3ebe0e(0x1a1)]);return _0x2ab2fc['revision']>_0x1de7eb+0x1&&(this[_0x3ebe0e(0xf6)]['onMissingChangesets']({'from':_0x1de7eb,'to':_0x2ab2fc[_0x3ebe0e(0x22d)]-0x1}),!0x0);}[_0x1ff7ba(0x2ca)](_0x31e395){const _0x377ca6=_0x1ff7ba;this['_undoRedoService'][_0x377ca6(0x13e)](this[_0x377ca6(0x1a1)],_0x31e395);}['_transformSelections'](_0x23ec30){const _0x499569=_0x1ff7ba;var _0x20eca7,_0x1d5b77;(_0x20eca7=(_0x1d5b77=this['_handler'])['onTransformSelections'])==null||_0x20eca7[_0x499569(0x227)](_0x1d5b77,_0x23ec30);}[_0x1ff7ba(0x208)](_0x37cdef){const _0xb2384=_0x1ff7ba;var _0x58cb9c,_0x358558;return((_0x58cb9c=(_0x358558=this[_0xb2384(0xf6)])['onPrepareTransformSelections'])==null?void 0x0:_0x58cb9c['call'](_0x358558,_0x37cdef))??null;}[_0x1ff7ba(0x143)](_0x30e625){const _0x1bc118=_0x1ff7ba;var _0x301a72,_0x5c6d34;return(_0x301a72=(_0x5c6d34=this[_0x1bc118(0xf6)])[_0x1bc118(0x2eb)])==null?void 0x0:_0x301a72[_0x1bc118(0x227)](_0x5c6d34,_0x30e625);}[_0x1ff7ba(0x2fa)](_0x3b90c9){const _0x1cfada=_0x1ff7ba;var _0x5782d0,_0x1a126e;return(_0x5782d0=(_0x1a126e=this[_0x1cfada(0xf6)])[_0x1cfada(0x9a)])==null?void 0x0:_0x5782d0[_0x1cfada(0x227)](_0x1a126e,_0x3b90c9);}[_0x1ff7ba(0x106)](_0x54d6a4){const _0x23fabe=_0x1ff7ba;var _0x3d146f,_0x567ffb;return((_0x3d146f=(_0x567ffb=this[_0x23fabe(0xf6)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3d146f[_0x23fabe(0x227)](_0x567ffb,_0x54d6a4))??_0x54d6a4;}[_0x1ff7ba(0x2c7)](_0x1aed48){const _0x4a5877=_0x1ff7ba;var _0x142ae5,_0x23badc;return((_0x142ae5=(_0x23badc=this[_0x4a5877(0xf6)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x142ae5[_0x4a5877(0x227)](_0x23badc,_0x1aed48))??_0x1aed48;}['_syncEditingCollabCursor'](_0x5860bc){const _0x52caf3=_0x1ff7ba;if(this['type']===_0x213837[_0x52caf3(0x1a8)]){let {unitID:_0x14aabc,mutations:_0x3f2ed5,memberID:_0x521949}=_0x5860bc,_0x12730a=_0x3f2ed5[_0x52caf3(0x256)]>0x0?_0x3f2ed5[0x0][_0x52caf3(0x1e5)][_0x52caf3(0x289)]:[];if(Array['isArray'](_0x12730a)&&_0x12730a[_0x52caf3(0x256)]>0x0){var _0x2e9115,_0x3657f3;(_0x2e9115=(_0x3657f3=this[_0x52caf3(0xf6)])['onSyncEditingCollabCursor'])==null||_0x2e9115[_0x52caf3(0x227)](_0x3657f3,{'unitID':_0x14aabc,'memberID':_0x521949,'textRanges':_0x12730a});}}}[_0x1ff7ba(0x2dc)](){const _0x119deb=_0x1ff7ba;var _0x49013a;(_0x49013a=this['_localCacheService'])==null||_0x49013a[_0x119deb(0xe2)](this[_0x119deb(0x1a1)],this[_0x119deb(0x301)],this['_awaitingChangeset'],this[_0x119deb(0x259)]);}[_0x1ff7ba(0x8d)](){const _0x3dc920=_0x1ff7ba;return this[_0x3dc920(0x263)][_0x3dc920(0x14e)](this[_0x3dc920(0x1a1)]);}[_0x1ff7ba(0x2f7)](){const _0x3eb95c=_0x1ff7ba;this[_0x3eb95c(0x263)][_0x3eb95c(0x11d)](this[_0x3eb95c(0x1a1)]);}['_executeRemoteChangeset'](_0x332586){const _0x40ef27=_0x1ff7ba;let _0x523df5=this[_0x40ef27(0x106)](_0x332586);_0x523df5=this[_0x40ef27(0x2c7)](_0x523df5);let _0xdcc7d0=this[_0x40ef27(0x208)](_0x523df5),_0x223257=_0x2d7176(_0x523df5[_0x40ef27(0x2be)],this[_0x40ef27(0x118)],{'fromCollab':!0x0});if(!_0x223257[_0x40ef27(0x14b)])throw _0xdcc7d0==null||_0xdcc7d0[_0x40ef27(0x19e)](),_0x223257[_0x40ef27(0xdd)]instanceof Error?_0x223257['error']:Error(_0x223257['error']??_0x40ef27(0x293));_0xdcc7d0==null||_0xdcc7d0['commit'](),this[_0x40ef27(0x143)](_0x523df5),this['_transformStateCache'](_0x523df5),this[_0x40ef27(0x2ca)](_0x332586),this[_0x40ef27(0x134)](_0x523df5),this[_0x40ef27(0xc3)](_0x523df5),this[_0x40ef27(0x2f7)]();}};let K=class extends G{constructor(_0xcc3c74,_0x3e8f19,_0x45e7d0,_0x50c0a8,_0x318c76,_0x8d1487,_0x1a0596,_0xccb6bf,_0x869272,_0x5adaa4){const _0x18868a=_0x1ff7ba;super(_0xcc3c74,_0x3e8f19,null,[],_0x45e7d0,_0x1a0596,_0x8d1487,_0x50c0a8,_0x5adaa4),this[_0x18868a(0xbe)]=_0x318c76,this[_0x18868a(0x19a)]=_0xccb6bf,this['_transformService']=_0x869272,this[_0x18868a(0x218)]=_0x5adaa4,z(this,_0x18868a(0x1e4),_0x18868a(0x20e));}['appendMutation'](_0xc7330c){const _0x131525=_0x1ff7ba;let _0x2e7b75=this[_0x131525(0xbe)][_0x131525(0x16b)](q,this[_0x131525(0x1a1)],this[_0x131525(0x301)],[_0xc7330c],this[_0x131525(0xf6)]);return _0x2e7b75['_schedule'](),_0x2e7b75[_0x131525(0x2dc)](),_0x2e7b75;}[_0x1ff7ba(0x303)](_0x54ab2c){const _0x38c418=_0x1ff7ba;if(this[_0x38c418(0x15e)](_0x54ab2c))return this[_0x38c418(0xbe)][_0x38c418(0x16b)](Q,this[_0x38c418(0x1a1)],this[_0x38c418(0x301)],null,[],null,[_0x54ab2c],this['_handler']);try{let _0x29fa5d=this['_transformService']['transformMutationsWithChangeset'](_0x54ab2c,[_0x2fc055]);if(_0x372ff5(_0x29fa5d)){let {c1Prime:_0x1cb22e}=_0x29fa5d;return this[_0x38c418(0x1f5)](_0x1cb22e),this;}throw _0x29fa5d[_0x38c418(0xdd)];}catch(_0x20767b){return this[_0x38c418(0x19a)][_0x38c418(0xdd)](_0x20767b),this[_0x38c418(0x2bd)](!0x1);}}['_onConflict'](_0x4635a5){const _0x4842a3=_0x1ff7ba;return this[_0x4842a3(0xbe)][_0x4842a3(0x16b)](X,this['unitID'],this['type'],null,[],this[_0x4842a3(0xf6)],_0x4635a5);}[_0x1ff7ba(0x94)](_0x10ea78){const _0x4870e6=_0x1ff7ba;if(_0x10ea78[_0x4870e6(0x22d)]<=this['_getCurrentRevision']())return this;throw Error(_0x4870e6(0x267));}[_0x1ff7ba(0xa7)](){const _0x5385cd=_0x1ff7ba;throw Error(_0x5385cd(0xcf));}[_0x1ff7ba(0x21c)](){return this;}[_0x1ff7ba(0x200)](){const _0x5df5a2=_0x1ff7ba;return this[_0x5df5a2(0xbe)]['createInstance'](Z,this[_0x5df5a2(0x1a1)],this[_0x5df5a2(0x301)],null,[],this[_0x5df5a2(0xf6)]);}[_0x1ff7ba(0x315)](){return this;}['resend'](){const _0x126860=_0x1ff7ba;throw Error(_0x126860(0x116));}[_0x1ff7ba(0x223)](){const _0x2c678a=_0x1ff7ba;let _0x2c9255=this[_0x2c678a(0x263)][_0x2c678a(0x14e)](this[_0x2c678a(0x1a1)]);return this[_0x2c678a(0xf6)]['onMissingChangesets']({'from':_0x2c9255,'to':0x0}),this[_0x2c678a(0xbe)][_0x2c678a(0x16b)](Q,this['unitID'],this[_0x2c678a(0x301)],null,[],null,[],this[_0x2c678a(0xf6)]);}};K=H([V(0x3,_0x1bde49(_0x434fdf)),V(0x4,_0x1bde49(_0x3737e0)),V(0x5,_0x4d71a7),V(0x6,_0x15a5e2),V(0x7,_0x43cd29),V(0x8,_0x1e679f),V(0x9,_0x549e28(U))],K);let q=mn=class extends G{constructor(_0x1679d9,_0x23a8e5,_0x565cf9,_0x4e9257,_0x19c1a1,_0x1c135d,_0x357a0f,_0x34cdc8,_0x2cbd03,_0x199303,_0x11acfc,_0x489ba2,_0x36c843,_0x1e7bdc){const _0x3b95af=_0x1ff7ba;super(_0x1679d9,_0x23a8e5,null,_0x565cf9,_0x4e9257,_0x2cbd03,_0x36c843,_0x1c135d,_0x1e7bdc),this[_0x3b95af(0xbe)]=_0x19c1a1,this[_0x3b95af(0xd9)]=_0x357a0f,this[_0x3b95af(0x19a)]=_0x34cdc8,this[_0x3b95af(0x274)]=_0x199303,this[_0x3b95af(0xc8)]=_0x11acfc,this[_0x3b95af(0x206)]=_0x489ba2,z(this,_0x3b95af(0x1e4),_0x3b95af(0x2bf)),z(this,_0x3b95af(0x155),null),z(this,_0x3b95af(0x2ae),null);}['appendMutation'](_0x46752b){const _0x5b6042=_0x1ff7ba;return this[_0x5b6042(0x259)][_0x5b6042(0x1ce)](_0x46752b),this[_0x5b6042(0x2dc)](),this;}[_0x1ff7ba(0x303)](_0x41e830){const _0x283900=_0x1ff7ba;if(this[_0x283900(0x15e)](_0x41e830))return this['_clearScheduledTask'](),this[_0x283900(0xbe)][_0x283900(0x16b)](Q,this[_0x283900(0x1a1)],this[_0x283900(0x301)],null,this[_0x283900(0x259)],null,[_0x41e830],this[_0x283900(0xf6)]);try{let _0x10821e=this[_0x283900(0xc8)][_0x283900(0x242)](_0x41e830,this[_0x283900(0x259)]);if(_0x372ff5(_0x10821e)){let {c1Prime:_0x4cdba9,m2Prime:_0x33a7f9}=_0x10821e;this[_0x283900(0x1f5)](_0x4cdba9);let _0x239a03=this['_injector']['createInstance'](mn,this[_0x283900(0x1a1)],this[_0x283900(0x301)],_0x33a7f9,this[_0x283900(0xf6)]);this[_0x283900(0xd4)]();let _0xacf20f=new Date()[_0x283900(0x102)](),_0x2c5381=this[_0x283900(0x155)]?Math[_0x283900(0x168)](this[_0x283900(0x155)]-_0xacf20f,0x0):this['_getSendChangesetTimeout']();return _0x239a03[_0x283900(0x1da)](_0x2c5381),_0x239a03;}throw _0x10821e[_0x283900(0xdd)];}catch(_0x9f73b8){return this[_0x283900(0x19a)]['error'](_0x9f73b8),this[_0x283900(0x2bd)](!0x1);}}['onRemoteAck'](_0x571cb5){const _0x442cf2=_0x1ff7ba;if(_0x571cb5[_0x442cf2(0x22d)]<=this[_0x442cf2(0x8d)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x1ff7ba(0xa7)](){const _0x28d63d=_0x1ff7ba;throw Error(_0x28d63d(0x121));}[_0x1ff7ba(0x21c)](){return this;}[_0x1ff7ba(0x200)](){const _0x1720db=_0x1ff7ba;return this[_0x1720db(0xd4)](),this[_0x1720db(0xbe)][_0x1720db(0x16b)](Z,this[_0x1720db(0x1a1)],this['type'],null,this['_pendingMutations'],this[_0x1720db(0xf6)]);}[_0x1ff7ba(0x315)](){return this;}[_0x1ff7ba(0x1da)](_0x2d2498){const _0x434d0b=_0x1ff7ba;let _0x5490fd=_0x2d2498??this[_0x434d0b(0x12a)]();this[_0x434d0b(0x155)]=new Date()[_0x434d0b(0x102)]()+_0x5490fd,this['_sendingTimer']=setTimeout(()=>{const _0x4db2a7=_0x434d0b;this['_clearScheduledTask']();let _0x2f7bc6=null;switch(this['type']){case _0x213837[_0x4db2a7(0x1fc)]:_0x2f7bc6=en(this[_0x4db2a7(0x259)],this['unitID'],this[_0x4db2a7(0x206)],this['_revisionService'],this['_userManagerService']);break;case _0x213837[_0x4db2a7(0x1a8)]:_0x2f7bc6=this[_0x4db2a7(0x259)][_0x4db2a7(0x254)](_0x4b7013=>_0x4b7013['id']===_0x1890df['id'])?rn(this[_0x4db2a7(0x259)],this[_0x4db2a7(0x1a1)],this[_0x4db2a7(0x206)],this[_0x4db2a7(0x263)],this[_0x4db2a7(0xd9)]):en(this[_0x4db2a7(0x259)],this[_0x4db2a7(0x1a1)],this[_0x4db2a7(0x206)],this[_0x4db2a7(0x263)],this['_userManagerService']);break;case _0x213837[_0x4db2a7(0xfd)]:_0x2f7bc6=nn(this['_pendingMutations'],this[_0x4db2a7(0x1a1)],this[_0x4db2a7(0x206)],this['_revisionService'],this[_0x4db2a7(0xd9)]);break;case _0x213837['UNIVER_PDF']:_0x2f7bc6=tn(this[_0x4db2a7(0x259)],this[_0x4db2a7(0x1a1)],this[_0x4db2a7(0x206)],this[_0x4db2a7(0x263)],this[_0x4db2a7(0xd9)]);break;case _0x213837[_0x4db2a7(0x85)]:_0x2f7bc6=en(this['_pendingMutations'],this[_0x4db2a7(0x1a1)],this[_0x4db2a7(0x206)],this[_0x4db2a7(0x263)],this[_0x4db2a7(0xd9)]);break;case _0x213837[_0x4db2a7(0x126)]:_0x2f7bc6=en(this[_0x4db2a7(0x259)],this[_0x4db2a7(0x1a1)],this[_0x4db2a7(0x206)],this[_0x4db2a7(0x263)],this[_0x4db2a7(0xd9)]);break;default:throw Error(_0x4db2a7(0x305)+this[_0x4db2a7(0x301)]+_0x4db2a7(0x175));}let {changeset:_0x35f024,pendingMutations:_0x572163}=_0x2f7bc6;this[_0x4db2a7(0xf6)][_0x4db2a7(0x133)](_0x35f024);let _0x20e6e1=_0x572163['length']?this['_injector'][_0x4db2a7(0x16b)](Y,this[_0x4db2a7(0x1a1)],this[_0x4db2a7(0x301)],_0x35f024,_0x572163,this['_handler'],void 0x0):this['_injector'][_0x4db2a7(0x16b)](J,this['unitID'],this[_0x4db2a7(0x301)],_0x35f024,this[_0x4db2a7(0xf6)]);_0x20e6e1[_0x4db2a7(0x2dc)](),this[_0x4db2a7(0xf6)]['onStateChange'](this,_0x20e6e1);},_0x5490fd);}['_getSendChangesetTimeout'](){const _0x59d1f9=_0x1ff7ba;let _0x537d99=this[_0x59d1f9(0x274)][_0x59d1f9(0xfe)](R);return(_0x537d99==null?void 0x0:_0x537d99[_0x59d1f9(0x238)])??0x7d0;}['resend'](){const _0x264762=_0x1ff7ba;throw Error(_0x264762(0x215));}[_0x1ff7ba(0xd4)](){const _0x540fff=_0x1ff7ba;this[_0x540fff(0x2ae)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x540fff(0x2ae)]=null);}['_onConflict'](_0x221a12){const _0x3254a5=_0x1ff7ba;return this['_clearScheduledTask'](),this[_0x3254a5(0xbe)][_0x3254a5(0x16b)](X,this['unitID'],this[_0x3254a5(0x301)],null,this[_0x3254a5(0x259)],this[_0x3254a5(0xf6)],_0x221a12);}};q=mn=H([V(0x4,_0x1bde49(_0x3737e0)),V(0x5,_0x1bde49(_0x434fdf)),V(0x6,_0x1bde49(_0x526df4)),V(0x7,_0x43cd29),V(0x8,_0x15a5e2),V(0x9,_0x3c20c1),V(0xa,_0x1e679f),V(0xb,_0x47a807),V(0xc,_0x4d71a7),V(0xd,_0x549e28(U))],q);let J=hn=class extends G{constructor(_0x265a04,_0x266e45,_0x144819,_0x90afbd,_0x10efef,_0x47d2ce,_0xaf4d87,_0x4e0b9f,_0x3fa251,_0xb10e6a,_0x3726df){const _0x4a1c97=_0x1ff7ba;super(_0x265a04,_0x266e45,_0x144819,[],_0x90afbd,_0xaf4d87,_0xb10e6a,_0x47d2ce,_0x3726df),this['_injector']=_0x10efef,this['_logService']=_0x4e0b9f,this[_0x4a1c97(0xc8)]=_0x3fa251,z(this,'status',_0x4a1c97(0x9f)),z(this,'_resendTimeout',0x0),z(this,_0x4a1c97(0x109),0x0),z(this,_0x4a1c97(0x1b8),void 0x0),z(this,'_sender',void 0x0);}[_0x1ff7ba(0xba)](_0x566eaf){const _0x5010f3=_0x1ff7ba;this[_0x5010f3(0xd4)]();let _0x32c536=this[_0x5010f3(0xbe)]['createInstance'](Y,this[_0x5010f3(0x1a1)],this[_0x5010f3(0x301)],this[_0x5010f3(0x31a)],[_0x566eaf],this[_0x5010f3(0xf6)],this[_0x5010f3(0x1b8)]);return _0x32c536[_0x5010f3(0x2dc)](),_0x32c536;}[_0x1ff7ba(0x303)](_0x56d062){const _0x4e3291=_0x1ff7ba;if(this[_0x4e3291(0x15e)](_0x56d062))return this[_0x4e3291(0xd4)](),this[_0x4e3291(0xbe)][_0x4e3291(0x16b)](Q,this[_0x4e3291(0x1a1)],this[_0x4e3291(0x301)],this[_0x4e3291(0x31a)],[],null,[_0x56d062],this[_0x4e3291(0xf6)]);try{let _0x42ad0d=this[_0x4e3291(0xc8)][_0x4e3291(0x252)]([_0x56d062],[this[_0x4e3291(0x31a)]],!0x1);if(_0x17f2dc(_0x42ad0d)){let {c1Prime:_0x214266,c2Prime:_0x1f6ab5}=_0x42ad0d;this['_executeRemoteChangeset'](_0x214266[0x0]),_0x1f6ab5[0x0][_0x4e3291(0x30e)]=this['_getCurrentRevision'](),this[_0x4e3291(0xd4)]();let _0x595d43=this[_0x4e3291(0xbe)][_0x4e3291(0x16b)](hn,this[_0x4e3291(0x1a1)],this[_0x4e3291(0x301)],_0x1f6ab5[0x0],this[_0x4e3291(0xf6)]);return _0x595d43[_0x4e3291(0x2dc)](),_0x595d43;}throw _0x42ad0d[_0x4e3291(0xdd)];}catch(_0x525dd7){return this[_0x4e3291(0x19a)][_0x4e3291(0xdd)](_0x525dd7),this[_0x4e3291(0x2bd)](!0x1);}}[_0x1ff7ba(0x94)](_0x301ffe){const _0x485aa8=_0x1ff7ba;this[_0x485aa8(0xd4)]();let _0x274baa=this['_revisionService']['getCurrentRevOfUnit'](this[_0x485aa8(0x1a1)]);if(_0x301ffe['revision']<=_0x274baa)return this;if(this[_0x485aa8(0x15e)](_0x301ffe))return this[_0x485aa8(0xbe)][_0x485aa8(0x16b)](Q,this[_0x485aa8(0x1a1)],this[_0x485aa8(0x301)],this['_awaitingChangeset'],[],_0x301ffe[_0x485aa8(0x22d)],[],this[_0x485aa8(0xf6)]);this[_0x485aa8(0x2f7)]();let _0x57bebe=this[_0x485aa8(0xbe)]['createInstance'](K,this[_0x485aa8(0x1a1)],this['type'],this[_0x485aa8(0xf6)]);return _0x57bebe[_0x485aa8(0x2dc)](),_0x57bebe;}[_0x1ff7ba(0xa7)](_0x192ae1){const _0x2deabe=_0x1ff7ba;return this[_0x2deabe(0x2bd)](!!(_0x192ae1!=null&&_0x192ae1[_0x2deabe(0x1f0)]));}[_0x1ff7ba(0x21c)](_0x54d90a){const _0x5d823b=_0x1ff7ba;return this['_maxTotalRetryTimeout']>yn?this[_0x5d823b(0x200)]():(this[_0x5d823b(0x1b8)]=pn(this['_resendTimeout'],{'timeout':this[_0x5d823b(0x18a)],'reqId':_0x54d90a[_0x5d823b(0x312)]}),this[_0x5d823b(0x334)]=this[_0x5d823b(0x1b8)][_0x5d823b(0x1ec)](({reqId:_0x576ff5,timeout:_0x16d146})=>{const _0x27eb4a=_0x5d823b;this[_0x27eb4a(0x127)](_0x576ff5,_0x16d146);}),this);}[_0x1ff7ba(0x200)](){const _0x1341ad=_0x1ff7ba;return this['_clearScheduledTask'](),this[_0x1341ad(0xbe)][_0x1341ad(0x16b)](Z,this[_0x1341ad(0x1a1)],this[_0x1341ad(0x301)],this[_0x1341ad(0x31a)],[],this[_0x1341ad(0xf6)]);}['toggleOnline'](){return this;}[_0x1ff7ba(0x8b)](){const _0x851d61=_0x1ff7ba;this[_0x851d61(0xf6)][_0x851d61(0x133)](this[_0x851d61(0x31a)]);}[_0x1ff7ba(0x2bd)](_0x158a81){const _0x3d7e57=_0x1ff7ba;return this['_clearScheduledTask'](),this[_0x3d7e57(0xbe)]['createInstance'](X,this[_0x3d7e57(0x1a1)],this['type'],this[_0x3d7e57(0x31a)],[],this[_0x3d7e57(0xf6)],_0x158a81);}[_0x1ff7ba(0x127)](_0x39cc02,_0x90b4fd){const _0x7c760a=_0x1ff7ba;var _0x4b8cf3;_0x39cc02===((_0x4b8cf3=this['_awaitingChangeset'])==null?void 0x0:_0x4b8cf3['reqId'])&&(this[_0x7c760a(0x8b)](),this[_0x7c760a(0x18a)]=_0x90b4fd===0x0?0x3e8:Math[_0x7c760a(0x2f5)](_0x90b4fd*0x2,vn),this[_0x7c760a(0x109)]+=this[_0x7c760a(0x18a)]);}['_clearScheduledTask'](){const _0x434b0b=_0x1ff7ba;var _0x28aa1b;(_0x28aa1b=this['_sender'])==null||_0x28aa1b[_0x434b0b(0x26e)](),this[_0x434b0b(0x18a)]=0x0,this[_0x434b0b(0x109)]=0x0;}};J=hn=H([V(0x4,_0x1bde49(_0x3737e0)),V(0x5,_0x1bde49(_0x434fdf)),V(0x6,_0x15a5e2),V(0x7,_0x43cd29),V(0x8,_0x1e679f),V(0x9,_0x4d71a7),V(0xa,_0x549e28(U))],J);let Y=gn=class extends G{constructor(_0x3b548a,_0x48cfe1,_0x113694,_0x780401,_0x41f3c8,_0x553056,_0xe05ca8,_0x25260f,_0x39a200,_0x3b6440,_0x57652b,_0xfd1c49,_0x569ca1){const _0x9ef664=_0x1ff7ba;super(_0x3b548a,_0x48cfe1,_0x113694,_0x780401,_0x41f3c8,_0x39a200,_0xfd1c49,_0x25260f,_0x569ca1),this['_injector']=_0xe05ca8,this[_0x9ef664(0x19a)]=_0x3b6440,this['_transformService']=_0x57652b,this[_0x9ef664(0x218)]=_0x569ca1,z(this,'status','awaiting_with_pending'),z(this,_0x9ef664(0x18a),0x0),z(this,_0x9ef664(0x109),0x0),z(this,_0x9ef664(0x1b8),void 0x0),z(this,'_sender',void 0x0),_0x553056&&(this['_resendTimer']=_0x553056,this[_0x9ef664(0x334)]=this[_0x9ef664(0x1b8)]['subscribe'](({reqId:_0xfd7840,timeout:_0x5b4f00})=>{const _0x4f7931=_0x9ef664;this[_0x4f7931(0x127)](_0xfd7840,_0x5b4f00);}));}[_0x1ff7ba(0xba)](_0x568711){const _0xd9becd=_0x1ff7ba;return this[_0xd9becd(0x259)]['push'](_0x568711),this;}[_0x1ff7ba(0x303)](_0x41e53b){const _0x2a7217=_0x1ff7ba;if(this['_checkMissing'](_0x41e53b))return this[_0x2a7217(0xd4)](),this[_0x2a7217(0xbe)][_0x2a7217(0x16b)](Q,this[_0x2a7217(0x1a1)],this[_0x2a7217(0x301)],this[_0x2a7217(0x31a)],this[_0x2a7217(0x259)],null,[_0x41e53b],this[_0x2a7217(0xf6)]);try{let _0x1773f5=this['_transformService'][_0x2a7217(0x252)]([_0x41e53b],[this[_0x2a7217(0x31a)]],!0x1);if(_0x17f2dc(_0x1773f5)){let {c1Prime:_0x40e066,c2Prime:_0x193d8d}=_0x1773f5,_0x46d8a3=this[_0x2a7217(0xc8)]['transformMutationsWithChangeset'](_0x40e066[0x0],this[_0x2a7217(0x259)]);if(_0x372ff5(_0x46d8a3)){let {c1Prime:_0x15caf9,m2Prime:_0xb24a7c}=_0x46d8a3;return this[_0x2a7217(0x1f5)](_0x15caf9),_0x193d8d[0x0]['baseRev']=this[_0x2a7217(0x8d)](),this['_clearScheduledTask'](),this[_0x2a7217(0xbe)][_0x2a7217(0x16b)](gn,this[_0x2a7217(0x1a1)],this['type'],_0x193d8d[0x0],_0xb24a7c,this[_0x2a7217(0xf6)],void 0x0);}throw _0x46d8a3[_0x2a7217(0xdd)];}throw _0x1773f5[_0x2a7217(0xdd)];}catch(_0xd9940d){return this[_0x2a7217(0x19a)][_0x2a7217(0xdd)](_0xd9940d),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x39d0c1){const _0x39f4ac=_0x1ff7ba;this['_clearScheduledTask']();let _0x20a836=this['_getCurrentRevision']();if(_0x39d0c1[_0x39f4ac(0x22d)]<=_0x20a836)return this;if(this[_0x39f4ac(0x15e)](_0x39d0c1))return this['_injector'][_0x39f4ac(0x16b)](Q,this[_0x39f4ac(0x1a1)],this[_0x39f4ac(0x301)],this[_0x39f4ac(0x31a)],this['_pendingMutations'],_0x39d0c1['revision'],[],this[_0x39f4ac(0xf6)]);this[_0x39f4ac(0x2f7)]();let _0x142c9e=this[_0x39f4ac(0xbe)][_0x39f4ac(0x16b)](q,this['unitID'],this[_0x39f4ac(0x301)],this['_pendingMutations'],this[_0x39f4ac(0xf6)]);return _0x142c9e[_0x39f4ac(0x1da)](),_0x142c9e['_updateLocalCache'](),_0x142c9e;}[_0x1ff7ba(0xa7)](_0x398803){const _0x1eabba=_0x1ff7ba;return this[_0x1eabba(0x2bd)](!!(_0x398803!=null&&_0x398803['isPermissionRej']));}[_0x1ff7ba(0x21c)](_0x4f2d48){const _0xeedbc3=_0x1ff7ba;return this[_0xeedbc3(0x109)]>yn?this['toggleOffline']():(this[_0xeedbc3(0x1b8)]=pn(this[_0xeedbc3(0x18a)],{'timeout':this[_0xeedbc3(0x18a)],'reqId':_0x4f2d48['reqId']}),this[_0xeedbc3(0x334)]=this['_resendTimer'][_0xeedbc3(0x1ec)](({reqId:_0x3711cf,timeout:_0x2cb746})=>{this['_resendWithTimeout'](_0x3711cf,_0x2cb746);}),this);}[_0x1ff7ba(0x200)](){const _0xf9c6a1=_0x1ff7ba;return this[_0xf9c6a1(0xd4)](),this['_injector'][_0xf9c6a1(0x16b)](Z,this[_0xf9c6a1(0x1a1)],this[_0xf9c6a1(0x301)],this[_0xf9c6a1(0x31a)],this[_0xf9c6a1(0x259)],this['_handler']);}['toggleOnline'](){return this;}[_0x1ff7ba(0x8b)](){const _0x5ae04c=_0x1ff7ba;this[_0x5ae04c(0xf6)]['onSendChangeset'](this[_0x5ae04c(0x31a)]);}[_0x1ff7ba(0x2bd)](_0x582ff6){const _0x533343=_0x1ff7ba;return this[_0x533343(0xd4)](),this['_injector']['createInstance'](X,this['unitID'],this[_0x533343(0x301)],null,this[_0x533343(0x259)],this['_handler'],_0x582ff6);}[_0x1ff7ba(0x127)](_0x306cdc,_0x3d8ca9){const _0x5c962d=_0x1ff7ba;var _0x5e505b;_0x306cdc===((_0x5e505b=this[_0x5c962d(0x31a)])==null?void 0x0:_0x5e505b[_0x5c962d(0x312)])&&(this[_0x5c962d(0x8b)](),this['_resendTimeout']=_0x3d8ca9===0x0?0x3e8:Math['min'](_0x3d8ca9*0x2,vn),this[_0x5c962d(0x109)]+=this[_0x5c962d(0x18a)]);}[_0x1ff7ba(0xd4)](){const _0x531782=_0x1ff7ba;var _0x3f0a53;(_0x3f0a53=this[_0x531782(0x334)])==null||_0x3f0a53[_0x531782(0x26e)](),this[_0x531782(0x18a)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};Y=gn=H([V(0x6,_0x1bde49(_0x3737e0)),V(0x7,_0x1bde49(_0x434fdf)),V(0x8,_0x15a5e2),V(0x9,_0x43cd29),V(0xa,_0x1e679f),V(0xb,_0x4d71a7),V(0xc,_0x549e28(U))],Y);let X=class extends G{constructor(_0x2c8018,_0x29c9ea,_0x4d2fdd,_0x2aa627,_0xa1e27,_0x650234=!0x1,_0x5ae340,_0x3c3d85,_0xacd8ba,_0x18a381,_0x5e71b9,_0x13a5d3,_0x3124a6){const _0x2aa386=_0x1ff7ba;super(_0x2c8018,_0x29c9ea,_0x4d2fdd,_0x2aa627,_0xa1e27,_0x3c3d85,_0xacd8ba,_0x18a381,_0x3124a6),this[_0x2aa386(0xc0)]=_0x650234,this[_0x2aa386(0x304)]=_0x5ae340,this[_0x2aa386(0x177)]=_0x5e71b9,this[_0x2aa386(0x33a)]=_0x13a5d3,this[_0x2aa386(0x218)]=_0x3124a6,z(this,_0x2aa386(0x1e4),_0x2aa386(0x1d5)),this[_0x2aa386(0x237)](),this[_0x2aa386(0xd5)](),this[_0x2aa386(0x2b0)]();}[_0x1ff7ba(0xba)](){return this;}[_0x1ff7ba(0x303)](){return this;}['onRemoteAck'](){return this;}[_0x1ff7ba(0xa7)](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x1ff7ba(0x315)](){return this;}[_0x1ff7ba(0x8b)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}async[_0x1ff7ba(0x2b0)](){const _0x5c87b3=_0x1ff7ba;var _0x2456f9,_0x3a9253;await((_0x2456f9=this['_localCacheService'])==null||(_0x3a9253=_0x2456f9['backupOfflineData'])==null?void 0x0:_0x3a9253['call'](_0x2456f9,this['unitID'],'conflict')['catch'](()=>void 0x0));try{var _0x225f48;await((_0x225f48=this[_0x5c87b3(0x10c)])==null?void 0x0:_0x225f48[_0x5c87b3(0x2c8)](this[_0x5c87b3(0x1a1)]));}catch{this[_0x5c87b3(0x33a)][_0x5c87b3(0x11c)]({'id':_0x5c87b3(0x338),'unitID':this[_0x5c87b3(0x1a1)]});return;}this[_0x5c87b3(0x1ff)]();}[_0x1ff7ba(0xd5)](){const _0x51be00=_0x1ff7ba;this[_0x51be00(0x33a)][_0x51be00(0x11c)]({'id':_0x51be00(0x1d7)});}[_0x1ff7ba(0x1ff)](){const _0x3342ef=_0x1ff7ba;this[_0x3342ef(0xc0)]?this['_collaborationUIEventService'][_0x3342ef(0x11c)]({'id':_0x3342ef(0x2ea)}):this['_collaborationUIEventService'][_0x3342ef(0x11c)]({'id':_0x3342ef(0x318)});}[_0x1ff7ba(0x237)](){const _0x123dbd=_0x1ff7ba;this['_permissionService'][_0x123dbd(0x229)](new _0x3b6e04(this[_0x123dbd(0x1a1)])['id'],!0x1);}};X=H([V(0x6,_0x1bde49(_0x5e2701)),V(0x7,_0x15a5e2),V(0x8,_0x4d71a7),V(0x9,_0x1bde49(_0x434fdf)),V(0xa,_0x1bde49(_0xa6f03e)),V(0xb,_0x1bde49(B)),V(0xc,_0x549e28(U))],X);let Z=class extends G{constructor(_0xe34eba,_0x42843d,_0x31419f,_0x47d295,_0x29e1c4,_0x458e8f,_0x5c0627,_0xa77297,_0x320c84,_0x373447){const _0x5898f8=_0x1ff7ba;super(_0xe34eba,_0x42843d,_0x31419f,_0x47d295,_0x29e1c4,_0xa77297,_0x320c84,_0x5c0627,_0x373447),this['_injector']=_0x458e8f,z(this,_0x5898f8(0x1e4),_0x5898f8(0x2bb));}[_0x1ff7ba(0xba)](_0x4cfe7c){const _0x9aa63d=_0x1ff7ba;return this[_0x9aa63d(0x259)][_0x9aa63d(0x1ce)](_0x4cfe7c),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xb02f35){const _0x52305d=_0x1ff7ba;throw Error(_0x52305d(0x11a));}['onRemoteAck'](){const _0x2ec685=_0x1ff7ba;throw Error(_0x2ec685(0x224));}[_0x1ff7ba(0xa7)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x1ff7ba(0x21c)](){return this;}[_0x1ff7ba(0x200)](){return this;}['toggleOnline'](){const _0x312471=_0x1ff7ba;let {_injector:_0x406737,_pendingMutations:_0x2fd633,_awaitingChangeset:_0x110462,unitID:_0x539045,_handler:_0x5c540f,type:_0x42111e}=this,_0x33b1d8=bn(_0x406737,_0x539045,_0x42111e,_0x110462,_0x2fd633,_0x5c540f);return _0x33b1d8 instanceof q?_0x33b1d8[_0x312471(0x1da)]():(_0x33b1d8 instanceof Y||_0x33b1d8 instanceof J)&&_0x33b1d8[_0x312471(0x8b)](),_0x33b1d8;}[_0x1ff7ba(0x8b)](){const _0x3e1966=_0x1ff7ba;throw Error(_0x3e1966(0x25b));}};Z=H([V(0x5,_0x1bde49(_0x3737e0)),V(0x6,_0x1bde49(_0x434fdf)),V(0x7,_0x15a5e2),V(0x8,_0x4d71a7),V(0x9,_0x549e28(U))],Z);let Q=class extends G{constructor(_0x3f6b02,_0x4596f7,_0x37ee8e,_0x4c1b29,_0x281e8c,_0x1f8349,_0x1372ca,_0x3dfa16,_0x554e86,_0x1fcc81,_0x227f2a,_0x4de2dd,_0x466e1c,_0x4a0a33){const _0x8d556e=_0x1ff7ba;super(_0x3f6b02,_0x4596f7,_0x37ee8e,_0x4c1b29,_0x1372ca,_0x227f2a,_0x4de2dd,_0x554e86,_0x4a0a33),this[_0x8d556e(0x313)]=_0x281e8c,this['_queuedRemoteChangesets']=_0x1f8349,this[_0x8d556e(0xbe)]=_0x3dfa16,this[_0x8d556e(0x19a)]=_0x1fcc81,this[_0x8d556e(0xc8)]=_0x466e1c,this[_0x8d556e(0x218)]=_0x4a0a33,z(this,'status',_0x8d556e(0x1ae));}[_0x1ff7ba(0x1d1)](_0x3a5c7c){const _0x2a6c03=_0x1ff7ba;try{if(this[_0x2a6c03(0x309)](_0x3a5c7c)[_0x2a6c03(0x184)])throw Error(_0x2a6c03(0x86));if(this[_0x2a6c03(0x309)]([...this[_0x2a6c03(0xf7)]][_0x2a6c03(0x287)]((_0x53668b,_0x4ed6bf)=>_0x53668b[_0x2a6c03(0x22d)]-_0x4ed6bf[_0x2a6c03(0x22d)]))[_0x2a6c03(0x184)])return this['_queuedRemoteChangesets']=[],this[_0x2a6c03(0x2dc)](),this[_0x2a6c03(0xf6)][_0x2a6c03(0x19b)]({'from':this[_0x2a6c03(0x8d)](),'to':0x0}),this;let _0x4665c7=this[_0x2a6c03(0x31a)],_0x19a0ad=this['_pendingMutations'],_0x4618a1;if(_0x4665c7&&_0x19a0ad[_0x2a6c03(0x256)]!==0x0)_0x4618a1=this[_0x2a6c03(0xbe)][_0x2a6c03(0x16b)](Y,this[_0x2a6c03(0x1a1)],this[_0x2a6c03(0x301)],_0x4665c7,_0x19a0ad,this[_0x2a6c03(0xf6)],void 0x0);else{if(_0x4665c7&&_0x19a0ad[_0x2a6c03(0x256)]===0x0)_0x4665c7[_0x2a6c03(0x30e)]=this[_0x2a6c03(0x8d)](),_0x4618a1=this['_injector']['createInstance'](J,this[_0x2a6c03(0x1a1)],this[_0x2a6c03(0x301)],_0x4665c7,this[_0x2a6c03(0xf6)]);else{if(_0x19a0ad['length']!==0x0){let _0x513383=this[_0x2a6c03(0xbe)]['createInstance'](q,this['unitID'],this[_0x2a6c03(0x301)],_0x19a0ad,this[_0x2a6c03(0xf6)]);_0x513383[_0x2a6c03(0x1da)](),_0x4618a1=_0x513383;}else _0x4618a1=this['_injector'][_0x2a6c03(0x16b)](K,this[_0x2a6c03(0x1a1)],this[_0x2a6c03(0x301)],this[_0x2a6c03(0xf6)]);}}return _0x4618a1['_updateLocalCache'](),_0x4618a1;}catch(_0x2bb7c5){return this[_0x2a6c03(0x19a)][_0x2a6c03(0xdd)](_0x2a6c03(0x101),'failed\x20to\x20apply\x20missed\x20changesets!',_0x2bb7c5),this[_0x2a6c03(0xbe)][_0x2a6c03(0x16b)](X,this[_0x2a6c03(0x1a1)],this[_0x2a6c03(0x301)],this['_awaitingChangeset'],this[_0x2a6c03(0x259)],this['_handler'],!0x1);}}[_0x1ff7ba(0x309)](_0x4758c8){const _0x4e6dcc=_0x1ff7ba;this[_0x4e6dcc(0x9d)]();for(let _0x52ac6a=0x0;_0x52ac6a<_0x4758c8[_0x4e6dcc(0x256)];_0x52ac6a++){let _0xeacc41=_0x4758c8[_0x52ac6a],_0x564e76=this[_0x4e6dcc(0x8d)]();if(!(_0xeacc41[_0x4e6dcc(0x22d)]<=_0x564e76)){if(_0xeacc41['revision']>_0x564e76+0x1)return{'missingChangesets':!0x0};if(this[_0x4e6dcc(0x33d)](_0xeacc41)){this[_0x4e6dcc(0x20d)]();continue;}this[_0x4e6dcc(0xb8)](_0xeacc41),this[_0x4e6dcc(0x9d)]();}}return{'missingChangesets':!0x1};}[_0x1ff7ba(0xb8)](_0x89abeb){const _0x3efa27=_0x1ff7ba;let _0x5a2748=_0x89abeb,_0x3beb00=this['_awaitingChangeset'];if(_0x3beb00){let _0x3b1693=this[_0x3efa27(0xc8)][_0x3efa27(0x252)]([_0x89abeb],[_0x3beb00],!0x1);if(!_0x17f2dc(_0x3b1693))throw _0x3b1693[_0x3efa27(0xdd)];_0x5a2748=_0x3b1693[_0x3efa27(0x1ef)][0x0],_0x3beb00=_0x3b1693[_0x3efa27(0x112)][0x0];}let _0x2e512c=this[_0x3efa27(0x259)];if(_0x2e512c[_0x3efa27(0x256)]){let _0x4dfa12=this[_0x3efa27(0xc8)][_0x3efa27(0x242)](_0x5a2748,_0x2e512c);if(!_0x372ff5(_0x4dfa12))throw _0x4dfa12[_0x3efa27(0xdd)];_0x5a2748=_0x4dfa12[_0x3efa27(0x1ef)],_0x2e512c=_0x4dfa12[_0x3efa27(0x24f)];}this[_0x3efa27(0x1f5)](_0x5a2748),_0x3beb00&&(_0x3beb00[_0x3efa27(0x30e)]=this[_0x3efa27(0x8d)]()),this[_0x3efa27(0x31a)]=_0x3beb00,this['_pendingMutations']=_0x2e512c;}[_0x1ff7ba(0x9d)](){const _0x2f1b2a=_0x1ff7ba;if(!this['_awaitingChangeset']||this[_0x2f1b2a(0x313)]==null)return;let _0xe8c48b=this[_0x2f1b2a(0x8d)]();if(this[_0x2f1b2a(0x313)]<=_0xe8c48b)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x2f1b2a(0x313)]+'.');this['_acknowledgedAwaitingRevision']===_0xe8c48b+0x1&&this[_0x2f1b2a(0x20d)]();}[_0x1ff7ba(0x20d)](){const _0x337f5d=_0x1ff7ba;this[_0x337f5d(0x2f7)](),this[_0x337f5d(0x31a)]=null,this[_0x337f5d(0x313)]=null;}['_isEchoedAwaitingChangeset'](_0x503d03){const _0x3d3f6b=_0x1ff7ba;let _0x347826=this[_0x3d3f6b(0x31a)];return!_0x347826||!_0x347826[_0x3d3f6b(0x17c)]||_0x347826[_0x3d3f6b(0x312)]===null||_0x347826['reqId']===void 0x0?!0x1:_0x503d03[_0x3d3f6b(0x1a1)]===_0x347826[_0x3d3f6b(0x1a1)]&&_0x503d03['sid']===_0x347826[_0x3d3f6b(0x17c)]&&_0x503d03[_0x3d3f6b(0x312)]===_0x347826['reqId'];}['resend'](){const _0x48e208=_0x1ff7ba;throw Error(_0x48e208(0x24c));}['appendMutation'](_0x1886f1){const _0x3994ba=_0x1ff7ba;return this['_pendingMutations'][_0x3994ba(0x1ce)](_0x1886f1),this;}[_0x1ff7ba(0x303)](_0x255f75){const _0x43d11d=_0x1ff7ba;return this['_queuedRemoteChangesets'][_0x43d11d(0x1ce)](_0x255f75),this;}[_0x1ff7ba(0x94)](_0x5e99eb){const _0xace5b9=_0x1ff7ba;if(this['_awaitingChangeset']){let _0x26520d=this[_0xace5b9(0x8d)]();return _0x5e99eb[_0xace5b9(0x22d)]<=_0x26520d||(_0x26520d+0x1===_0x5e99eb[_0xace5b9(0x22d)]?(this[_0xace5b9(0x2f7)](),this[_0xace5b9(0x31a)]=null,this[_0xace5b9(0x313)]=null):this[_0xace5b9(0x313)]=_0x5e99eb[_0xace5b9(0x22d)]),this;}if(_0x5e99eb[_0xace5b9(0x22d)]<=this[_0xace5b9(0x8d)]())return this;throw Error(_0xace5b9(0x11f));}['onRemoteRej'](_0x4c13e8){return this['_onConflict'](!!(_0x4c13e8!=null&&_0x4c13e8['isPermissionRej']));}[_0x1ff7ba(0x21c)](){return this;}['toggleOffline'](){const _0x37ca6e=_0x1ff7ba;return this[_0x37ca6e(0xbe)]['createInstance'](Z,this['unitID'],this['type'],this[_0x37ca6e(0x31a)],this[_0x37ca6e(0x259)],this[_0x37ca6e(0xf6)]);}[_0x1ff7ba(0x315)](){return this;}['_onConflict'](_0x25e143){const _0x1e1e63=_0x1ff7ba;return this[_0x1e1e63(0xbe)][_0x1e1e63(0x16b)](X,this[_0x1e1e63(0x1a1)],this[_0x1e1e63(0x301)],this['_awaitingChangeset'],this[_0x1e1e63(0x259)],this[_0x1e1e63(0xf6)],_0x25e143);}};Q=H([V(0x7,_0x1bde49(_0x3737e0)),V(0x8,_0x1bde49(_0x434fdf)),V(0x9,_0x43cd29),V(0xa,_0x15a5e2),V(0xb,_0x4d71a7),V(0xc,_0x1e679f),V(0xd,_0x549e28(U))],Q);function bn(_0x4b8164,_0x2df676,_0x1744ec,_0x4fb67,_0x45d475,_0x910002){const _0x4e4463=_0x1ff7ba;return _0x4fb67&&_0x45d475[_0x4e4463(0x256)]?_0x4b8164[_0x4e4463(0x16b)](Y,_0x2df676,_0x1744ec,_0x4fb67,_0x45d475,_0x910002,void 0x0):_0x4fb67?_0x4b8164[_0x4e4463(0x16b)](J,_0x2df676,_0x1744ec,_0x4fb67,_0x910002):_0x45d475[_0x4e4463(0x256)]?_0x4b8164['createInstance'](q,_0x2df676,_0x1744ec,_0x45d475,_0x910002):_0x4b8164[_0x4e4463(0x16b)](K,_0x2df676,_0x1744ec,_0x910002);}let $=class extends _0x416b62{get[_0x1ff7ba(0x2d1)](){const _0x5d4dca=_0x1ff7ba;return this[_0x5d4dca(0xa6)];}constructor(_0x3553b0,_0x44668c,_0x1a799b,_0x49c136,_0x3e6644,_0x3c8e93,_0x27a6d1,_0x4d243e,_0x55e3a1,_0x5ae8db,_0x59e59f,_0x3440e0,_0x135498,_0x2636fe){const _0x426959=_0x1ff7ba;super(),this[_0x426959(0x1a1)]=_0x3553b0,this['session']=_0x44668c,this[_0x426959(0x321)]=_0x1a799b,this['_injector']=_0x49c136,this['_compressMutationService']=_0x3e6644,this[_0x426959(0x177)]=_0x3c8e93,this[_0x426959(0x263)]=_0x27a6d1,this['_eventService']=_0x4d243e,this[_0x426959(0x206)]=_0x55e3a1,this[_0x426959(0x19a)]=_0x5ae8db,this[_0x426959(0x118)]=_0x59e59f,this['_permissionService']=_0x3440e0,this[_0x426959(0xbc)]=_0x135498,this[_0x426959(0x10c)]=_0x2636fe,z(this,_0x426959(0x28b),new _0x497921(null)),z(this,_0x426959(0x217),this[_0x426959(0x28b)][_0x426959(0xa1)]()),z(this,_0x426959(0xa6),void 0x0),z(this,'_collaborationPaused',!0x1),z(this,'_changesetSessionId',''),z(this,_0x426959(0x2e4),0x0),z(this,_0x426959(0x180),this[_0x426959(0x217)][_0x426959(0x29b)](_0x871014(_0x53bdf7=>_0x53bdf7?_0x53bdf7[_0x426959(0x1e4)]:_0x426959(0x2bb)),_0x42a328({'bufferSize':0x1,'refCount':!0x0}))),z(this,'_transitionLocked',!0x1),z(this,'_remoteChangesetQueue',[]);}async[_0x1ff7ba(0x28d)](){const _0x4e71fe=_0x1ff7ba;if(this[_0x4e71fe(0x2d1)])throw Error(_0x4e71fe(0x141));await this['_init']();}[_0x1ff7ba(0x345)](){const _0x411b3d=_0x1ff7ba;return this[_0x411b3d(0x323)]=!0x0,_0x370f20(()=>{const _0x2c1fe0=_0x411b3d;this[_0x2c1fe0(0x323)]=!0x1,this[_0x2c1fe0(0x87)]();});}['onLocalMutation'](_0x147d2f){const _0x8b1cfb=_0x1ff7ba;this[_0x8b1cfb(0x260)](_0x147d2f);}['_updateState'](_0x3c92a1){const _0x4a666d=_0x1ff7ba;this[_0x4a666d(0xa6)]=_0x3c92a1,this[_0x4a666d(0x28b)][_0x4a666d(0x14c)](_0x3c92a1);}async['_init'](){const _0x1ee631=_0x1ff7ba;if(this['_updateState'](await this[_0x1ee631(0x1f3)]()),this[_0x1ee631(0xbc)]){var _0x547d37;(_0x547d37=this['_singleActiveUnitService'])==null||_0x547d37[_0x1ee631(0x23d)](this[_0x1ee631(0x1a1)]),this[_0x1ee631(0x107)](this['_singleActiveUnitService'][_0x1ee631(0x103)](this[_0x1ee631(0x1a1)])[_0x1ee631(0x1ec)](_0x2aee09=>{const _0x4d16ec=_0x1ee631;this[_0x4d16ec(0x19a)][_0x4d16ec(0x174)](_0x4d16ec(0x31e),_0x4d16ec(0xd7),_0x2aee09),_0x2aee09===0x1?(this[_0x4d16ec(0x30c)][_0x4d16ec(0x11c)]({'id':_0x4d16ec(0x1a3)}),this[_0x4d16ec(0x304)]['updatePermissionPoint'](new _0x3b6e04(this[_0x4d16ec(0x1a1)])['id'],!0x1),this[_0x4d16ec(0x304)]['setShowComponents'](!0x1)):(this['_permissionService']['updatePermissionPoint'](new _0x3b6e04(this[_0x4d16ec(0x1a1)])['id'],!0x0),this[_0x4d16ec(0x304)]['setShowComponents'](!0x0));}));}let _0x1c448f=!0x1;return this[_0x1ee631(0x107)](this[_0x1ee631(0x2b7)][_0x1ee631(0x228)]['subscribe'](_0x387c4a=>{const _0x49c204=_0x1ee631;_0x387c4a===0x3?this[_0x49c204(0x262)](_0x1c448f):_0x387c4a===0x2&&(_0x1c448f=!0x0,this[_0x49c204(0x1a6)]());})),this['disposeWithMe'](this[_0x1ee631(0x2b7)][_0x1ee631(0x248)]['subscribe'](_0x25438e=>{const _0x538071=_0x1ee631;try{switch(_0x25438e[_0x538071(0x108)]){case _0x5a2b35['NEW_CHANGESETS']:this[_0x538071(0x2b3)](_0x10d9b7(_0x25438e[_0x538071(0x2e1)]));break;case _0x5a2b35['CHANGESET_ACK']:this[_0x538071(0x320)](_0x25438e[_0x538071(0x2e1)]);break;case _0x5a2b35['CHANGESET_REJ']:this[_0x538071(0x311)]();break;case _0x5a2b35[_0x538071(0x324)]:this[_0x538071(0x21b)](_0x25438e[_0x538071(0x2e1)]);break;case _0x5a2b35['PSEUDO_FETCH_MISSING_RESULT']:this[_0x538071(0x2c5)](_0x25438e['data'][_0x538071(0x2d0)][_0x538071(0x8f)](_0x254f4b=>_0x10d9b7(_0x254f4b)));break;case _0x5a2b35[_0x538071(0xb3)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x5a2b35[_0x538071(0x119)]:}}catch(_0x202a73){throw console[_0x538071(0xdd)](_0x538071(0x250),_0x202a73),_0x202a73;}})),this[_0x1ee631(0xa6)];}[_0x1ff7ba(0x247)](){const _0x33add3=_0x1ff7ba;this[_0x33add3(0x308)]=!0x1;}[_0x1ff7ba(0x19c)](){const _0x178ad6=_0x1ff7ba;if(this[_0x178ad6(0x308)])throw Error(_0x178ad6(0x241));this[_0x178ad6(0x308)]=!0x0;}[_0x1ff7ba(0x260)](_0x1c876f){const _0x13e3a2=_0x1ff7ba;this[_0x13e3a2(0x19c)](),this[_0x13e3a2(0x29a)](this[_0x13e3a2(0xa6)][_0x13e3a2(0xba)](_0x1c876f)),this[_0x13e3a2(0x247)]();}[_0x1ff7ba(0x2b3)](_0x321aea){const _0xb31d3d=_0x1ff7ba;if(!(_0x321aea[_0xb31d3d(0x22d)]<=this[_0xb31d3d(0x263)][_0xb31d3d(0x14e)](this[_0xb31d3d(0x1a1)]))){if(this[_0xb31d3d(0x323)]){this[_0xb31d3d(0xf4)][_0xb31d3d(0x1ce)](_0x321aea);return;}this[_0xb31d3d(0x317)](_0x321aea);}}[_0x1ff7ba(0x87)](){const _0x4a969d=_0x1ff7ba;this[_0x4a969d(0xf4)][_0x4a969d(0x344)](_0x3ba807=>this[_0x4a969d(0x317)](_0x3ba807)),this[_0x4a969d(0xf4)]=[];}['_applyRemoteChangeset'](_0x46f49b){const _0x1a1cf8=_0x1ff7ba;let _0x3f1b66=this[_0x1a1cf8(0x348)][_0x1a1cf8(0x26a)][_0x1a1cf8(0x10f)](this[_0x1a1cf8(0x348)][_0x1a1cf8(0x26a)][_0x1a1cf8(0x1cc)]()[_0x1a1cf8(0x10b)])(_0x46f49b[_0x1a1cf8(0x2be)],null)||_0x46f49b['mutations'],_0x568acd={..._0x46f49b,'mutations':_0x3f1b66};this[_0x1a1cf8(0x19c)](),this[_0x1a1cf8(0x29a)](this['_state'][_0x1a1cf8(0x303)](_0x568acd)),this[_0x1a1cf8(0x247)]();}[_0x1ff7ba(0x320)](_0x8e93c2){const _0x6e61ba=_0x1ff7ba;this[_0x6e61ba(0x19c)](),this['_updateState'](this['_state'][_0x6e61ba(0x94)](_0x8e93c2)),this['_unlockTransition']();}[_0x1ff7ba(0x311)](_0x1b547a){const _0x2ed325=_0x1ff7ba;this[_0x2ed325(0x19c)](),this[_0x2ed325(0x29a)](this[_0x2ed325(0xa6)]['onRemoteRej'](_0x1b547a)),this[_0x2ed325(0x247)]();}[_0x1ff7ba(0x21b)](_0x55b190){const _0x5a6e37=_0x1ff7ba;this['_lockTransition'](),this[_0x5a6e37(0x29a)](this['_state'][_0x5a6e37(0x21c)](_0x55b190)),this[_0x5a6e37(0x247)]();}[_0x1ff7ba(0x2c5)](_0x1fb7a2){const _0x569166=_0x1ff7ba;if(!(this[_0x569166(0xa6)]instanceof Q))throw TypeError(_0x569166(0xc4));let _0x282089=_0x1fb7a2['map'](_0x2af5f4=>{const _0x5b8bbd=_0x569166;let _0xaceb02=this[_0x5b8bbd(0x348)][_0x5b8bbd(0x26a)][_0x5b8bbd(0x10f)](this[_0x5b8bbd(0x348)][_0x5b8bbd(0x26a)][_0x5b8bbd(0x1cc)]()['COMPRESS_MUTATION_APPLY'])(_0x2af5f4['mutations'],null)||_0x2af5f4[_0x5b8bbd(0x2be)];return{..._0x2af5f4,'mutations':_0xaceb02};});this['_lockTransition'](),this[_0x569166(0x29a)](this[_0x569166(0xa6)][_0x569166(0x1d1)](_0x282089)),this[_0x569166(0x247)]();}[_0x1ff7ba(0x1a6)](){const _0x4964c3=_0x1ff7ba;this[_0x4964c3(0x19c)](),this[_0x4964c3(0x29a)](this['_state']['toggleOffline']()),this['_unlockTransition']();}[_0x1ff7ba(0x262)](_0x12d00f=!0x1){const _0x50789d=_0x1ff7ba;this[_0x50789d(0x19c)](),this[_0x50789d(0x29a)](this[_0x50789d(0xa6)][_0x50789d(0x315)]()),this['_unlockTransition']();let _0x42cb59=this[_0x50789d(0xa6)];_0x12d00f&&_0x42cb59 instanceof K&&(this[_0x50789d(0x19c)](),this[_0x50789d(0x29a)](_0x42cb59[_0x50789d(0x223)]()),this[_0x50789d(0x247)]());}async[_0x1ff7ba(0x1f3)](){return new Promise(_0x3561f9=>{const _0x29c611=_0x455c;this[_0x29c611(0x2b7)][_0x29c611(0x228)]['pipe'](_0x3e9c46(0x1))[_0x29c611(0x1ec)](async _0x3dd948=>{_0x3561f9(await this['_createInitialStateImpl'](_0x3dd948===0x3));});});}[_0x1ff7ba(0x2dd)](){const _0x556904=_0x1ff7ba;let _0x2f1f6d=this[_0x556904(0x1a1)];return{'onStateChange':(_0x5a3ec3,_0xcc733d)=>{const _0x892a7=_0x556904;if(_0x5a3ec3!==this[_0x892a7(0xa6)])throw Error(_0x892a7(0x245)+_0x5a3ec3[_0x892a7(0x1e4)]+_0x892a7(0x1c6)+_0xcc733d[_0x892a7(0x1e4)]+_0x892a7(0x225)+this['_state'][_0x892a7(0x1e4)]);this[_0x892a7(0x29a)](_0xcc733d);},'onSendChangeset':_0x32440e=>{const _0x3eb882=_0x556904;_0x32440e[_0x3eb882(0x17c)]||(_0x32440e['sid']=this[_0x3eb882(0x2ab)],_0x32440e[_0x3eb882(0x312)]=++this[_0x3eb882(0x2e4)]);let _0x312751={'eventID':_0x5a2b35[_0x3eb882(0x2ef)],'data':{'unitID':_0x32440e['unitID'],'unitType':this[_0x3eb882(0x321)],'changeset':_0x32440e,'memberID':this[_0x3eb882(0x2b7)][_0x3eb882(0x176)]()}};this[_0x3eb882(0x2b7)][_0x3eb882(0xe5)](_0x312751,this[_0x3eb882(0x1a1)]);},'onMissingChangesets':({from:_0x19f338,to:_0x454fe8})=>{const _0x107ab4=_0x556904;this['_logService'][_0x107ab4(0x174)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x19f338+'\x20to\x20'+_0x454fe8);let _0x156263={'eventID':_0x5a2b35[_0x107ab4(0x139)],'data':{'unitID':_0x2f1f6d,'unitType':this['_type'],'from':_0x19f338,'to':_0x454fe8}};this[_0x107ab4(0x2b7)]['send'](_0x156263,this[_0x107ab4(0x1a1)]);}};}async['_createInitialStateImpl'](_0x46893b){const _0x1da842=_0x1ff7ba;var _0x49eac1;let _0x59dd39=await((_0x49eac1=this['_localCacheService'])==null?void 0x0:_0x49eac1[_0x1da842(0x34b)](this[_0x1da842(0x1a1)])),_0x3c780a=(_0x59dd39==null?void 0x0:_0x59dd39['mutations'])??[],_0x158abf=(_0x59dd39==null?void 0x0:_0x59dd39[_0x1da842(0x131)])??null,_0x36e30d=!!(_0x158abf!=null&&_0x158abf[_0x1da842(0x17c)])&&!!(_0x158abf!=null&&_0x158abf[_0x1da842(0x312)]);this['_changesetSessionId']=_0x36e30d?_0x158abf['sid']:_0x42248d(),this[_0x1da842(0x2e4)]=_0x36e30d?_0x158abf[_0x1da842(0x312)]:0x0;let _0x268bc9=this[_0x1da842(0x1a1)];try{this['_replayCachedMutations'](_0x158abf,_0x3c780a);}catch(_0x5def8f){this[_0x1da842(0x19a)]['error'](_0x5def8f);}let _0x1b08c9=this[_0x1da842(0x2dd)]();if(_0x46893b){let _0x3a8030=bn(this[_0x1da842(0xbe)],_0x268bc9,this[_0x1da842(0x321)],_0x158abf,_0x3c780a,_0x1b08c9);return _0x3a8030 instanceof q?_0x3a8030['_schedule']():(_0x3a8030 instanceof Y||_0x3a8030 instanceof J)&&_0x3a8030['resend'](),_0x3a8030;}return this[_0x1da842(0xbe)][_0x1da842(0x16b)](Z,_0x268bc9,this[_0x1da842(0x321)],_0x158abf,_0x3c780a,_0x1b08c9);}[_0x1ff7ba(0x115)](_0x1c497a,_0x6fe0f3){const _0x23d6d8=_0x1ff7ba;var _0x1487e2,_0x3ef919;let _0x106750=this[_0x23d6d8(0x348)][_0x23d6d8(0x26a)][_0x23d6d8(0x10f)](this[_0x23d6d8(0x348)][_0x23d6d8(0x26a)][_0x23d6d8(0x1cc)]()['COMPRESS_MUTATION_APPLY']);(_0x1487e2=_0x106750((_0x1c497a==null?void 0x0:_0x1c497a[_0x23d6d8(0x2be)])||[],null))==null||_0x1487e2[_0x23d6d8(0x344)](_0x44a415=>this[_0x23d6d8(0x118)]['executeCommand'](_0x44a415['id'],_0x44a415[_0x23d6d8(0x1e5)])),(_0x3ef919=_0x106750(_0x6fe0f3||[],null))==null||_0x3ef919[_0x23d6d8(0x344)](_0x19dc86=>this['_commandService']['executeCommand'](_0x19dc86['id'],_0x19dc86[_0x23d6d8(0x1e5)]));}};$=H([V(0x3,_0x1bde49(_0x3737e0)),V(0x4,_0x1bde49(_0x21501a)),V(0x5,_0x1bde49(_0xa6f03e)),V(0x6,_0x1bde49(_0x434fdf)),V(0x7,_0x1bde49(B)),V(0x8,_0x47a807),V(0x9,_0x43cd29),V(0xa,_0x15a5e2),V(0xb,_0x5e2701),V(0xc,_0x549e28(W)),V(0xd,_0x549e28(U))],$);let xn=class extends ${constructor(_0x32db22,_0x20296c,_0x42835c,_0x5660f7,_0x51987f,_0x3d07c8,_0x38f1e7,_0x468240,_0x253383,_0x7fa04f,_0x223b1a,_0x3599fa,_0x2f932f,_0x1ec23a,_0x47e902){const _0x25fff8=_0x1ff7ba;super(_0x32db22,_0x42835c,_0x20296c,_0x5660f7,_0x51987f,_0x3d07c8,_0x38f1e7,_0x468240,_0x253383,_0x7fa04f,_0x223b1a,_0x3599fa,_0x1ec23a,_0x47e902),this[_0x25fff8(0x1a1)]=_0x32db22,this[_0x25fff8(0x301)]=_0x20296c,this[_0x25fff8(0x222)]=_0x2f932f,z(this,_0x25fff8(0x31d),null);}['addHandlerCallback'](_0x418fab){this['_handlerCallback']=_0x418fab;}[_0x1ff7ba(0x1cd)](){const _0xaa8370=_0x1ff7ba;this[_0xaa8370(0x31d)]=null,super['dispose']();}[_0x1ff7ba(0x2dd)](){const _0x470523=_0x1ff7ba;let _0x16a057=super[_0x470523(0x2dd)]();return _0x16a057[_0x470523(0x2eb)]=_0x3ddeee=>{const _0x4dff21=_0x470523;var _0x3e26e0,_0x512f67;return(_0x3e26e0=this['_handlerCallback'])==null||(_0x512f67=_0x3e26e0['onTransformIME'])==null?void 0x0:_0x512f67[_0x4dff21(0x227)](_0x3e26e0,_0x3ddeee);},_0x16a057[_0x470523(0x9a)]=_0x802f2=>{const _0x41402b=_0x470523;var _0x500ea1,_0x52b135;return(_0x500ea1=this[_0x41402b(0x31d)])==null||(_0x52b135=_0x500ea1[_0x41402b(0x9a)])==null?void 0x0:_0x52b135[_0x41402b(0x227)](_0x500ea1,_0x802f2);},_0x16a057[_0x470523(0x2fc)]=_0x3f9422=>{const _0x2b1df3=_0x470523;var _0x448773,_0x3cf521;return((_0x448773=this[_0x2b1df3(0x31d)])==null||(_0x3cf521=_0x448773[_0x2b1df3(0x2fc)])==null?void 0x0:_0x3cf521[_0x2b1df3(0x227)](_0x448773,_0x3f9422))??null;},_0x16a057[_0x470523(0x104)]=_0x6049e0=>{const _0x2962f5=_0x470523;var _0x44b97c,_0x1f415a;return(_0x44b97c=this['_handlerCallback'])==null||(_0x1f415a=_0x44b97c[_0x2962f5(0x104)])==null?void 0x0:_0x1f415a[_0x2962f5(0x227)](_0x44b97c,_0x6049e0);},_0x16a057[_0x470523(0x2b1)]=_0x20bcfd=>{const _0x3566b7=_0x470523;var _0x2c6a6d,_0x1bfd34;return(_0x2c6a6d=this['_handlerCallback'])==null||(_0x1bfd34=_0x2c6a6d[_0x3566b7(0x2b1)])==null?void 0x0:_0x1bfd34['call'](_0x2c6a6d,_0x20bcfd);},_0x16a057[_0x470523(0x188)]=_0x23eb25=>{const _0x38edf5=_0x470523;var _0x42165f,_0x315543;return((_0x42165f=this[_0x38edf5(0x31d)])==null||(_0x315543=_0x42165f['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x315543[_0x38edf5(0x227)](_0x42165f,_0x23eb25))??_0x23eb25;},_0x16a057[_0x470523(0x164)]=_0x3f3179=>{const _0x19ee1a=_0x470523;var _0x44786f,_0x11a5e6;return((_0x44786f=this['_handlerCallback'])==null||(_0x11a5e6=_0x44786f[_0x19ee1a(0x164)])==null?void 0x0:_0x11a5e6['call'](_0x44786f,_0x3f3179))??_0x3f3179;},_0x16a057;}async[_0x1ff7ba(0x33e)](){const _0x5da0f4=_0x1ff7ba;let _0xab9db=await super[_0x5da0f4(0x33e)]();return this[_0x5da0f4(0x107)](this[_0x5da0f4(0x222)][_0x5da0f4(0xe0)][_0x5da0f4(0x1ec)](_0x590fa8=>{const _0x4a7555=_0x5da0f4;if(_0x590fa8==null||_0x590fa8[_0x4a7555(0x92)]!==this[_0x4a7555(0x1a1)])return;let {commandId:_0x4e313f,redoState:_0xa37614,unitId:_0x17ff71}=_0x590fa8,_0x5816b6={'id':_0x4e313f,'type':_0xd06548[_0x4a7555(0x10e)],'params':{'unitId':_0x17ff71,'actions':_0xa37614[_0x4a7555(0x2a8)],'textRanges':null}};this[_0x4a7555(0x260)](_0x5816b6);})),this['disposeWithMe'](this[_0x5da0f4(0x118)][_0x5da0f4(0x343)]((_0x97dd09,_0x90ca)=>{const _0x4d72c6=_0x5da0f4;if(_0x97dd09['type']!==_0xd06548[_0x4d72c6(0x10e)]||_0x90ca!=null&&_0x90ca[_0x4d72c6(0x1bb)]||_0x90ca!=null&&_0x90ca['onlyLocal']||_0x97dd09['id']===_0x1890df['id'])return;let _0x9468cb=_0x97dd09[_0x4d72c6(0x1e5)];if((_0x9468cb==null?void 0x0:_0x9468cb[_0x4d72c6(0x92)])!==this[_0x4d72c6(0x1a1)])return;let _0x43eb5f=_0x97dd09,_0x29974d=this['_compressMutationService'][_0x4d72c6(0x26a)][_0x4d72c6(0x10f)](this['_compressMutationService'][_0x4d72c6(0x26a)][_0x4d72c6(0x1cc)]()['COMPRESS_MUTATION_SEND'])([_0x43eb5f],this['_univerInstanceService'])||[_0x43eb5f];this[_0x4d72c6(0x260)](_0x29974d[0x0]);})),_0xab9db;}};xn=H([V(0x3,_0x1bde49(_0x3737e0)),V(0x4,_0x1bde49(_0x21501a)),V(0x5,_0x1bde49(_0xa6f03e)),V(0x6,_0x1bde49(_0x434fdf)),V(0x7,_0x1bde49(B)),V(0x8,_0x47a807),V(0x9,_0x43cd29),V(0xa,_0x15a5e2),V(0xb,_0x5e2701),V(0xc,_0x1bde49(_0x25c8b1)),V(0xd,_0x549e28(W)),V(0xe,_0x549e28(U))],xn);let Sn=class extends ${constructor(_0x4e4aed,_0x5b5537,_0x4f0b7a,_0x48ec6d,_0x5d44e0,_0x1c00d9,_0x280c13,_0x512317,_0x54203d,_0x5c0baa,_0x30469c,_0x28060f,_0x5bc5ce,_0x11fe85){const _0x3f3fda=_0x1ff7ba;super(_0x4e4aed,_0x4f0b7a,_0x5b5537,_0x48ec6d,_0x5d44e0,_0x1c00d9,_0x280c13,_0x512317,_0x54203d,_0x5c0baa,_0x30469c,_0x28060f,_0x5bc5ce,_0x11fe85),this[_0x3f3fda(0x1a1)]=_0x4e4aed,this[_0x3f3fda(0x301)]=_0x5b5537;}async['_init'](){const _0x34237c=_0x1ff7ba;let _0x5e0100=await super['_init']();return this[_0x34237c(0x107)](this[_0x34237c(0x118)][_0x34237c(0x343)]((_0x5b9aa6,_0x1dc95f)=>{const _0xa26e43=_0x34237c;if(_0x5b9aa6[_0xa26e43(0x301)]!==_0xd06548['MUTATION']||_0x1dc95f!=null&&_0x1dc95f[_0xa26e43(0x1bb)]||_0x1dc95f!=null&&_0x1dc95f['onlyLocal'])return;let _0x104930=_0x5b9aa6['params'];if((_0x104930==null?void 0x0:_0x104930[_0xa26e43(0x92)])!==this[_0xa26e43(0x1a1)])return;let _0x5697c0=_0x5b9aa6,_0x4b3119=this['_compressMutationService'][_0xa26e43(0x26a)][_0xa26e43(0x10f)](this[_0xa26e43(0x348)][_0xa26e43(0x26a)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x5697c0],this[_0xa26e43(0x206)])||[_0x5697c0];this[_0xa26e43(0x260)](_0x4b3119[0x0]);})),_0x5e0100;}};Sn=H([V(0x3,_0x1bde49(_0x3737e0)),V(0x4,_0x1bde49(_0x21501a)),V(0x5,_0x1bde49(_0xa6f03e)),V(0x6,_0x1bde49(_0x434fdf)),V(0x7,_0x1bde49(B)),V(0x8,_0x47a807),V(0x9,_0x43cd29),V(0xa,_0x15a5e2),V(0xb,_0x5e2701),V(0xc,_0x549e28(W)),V(0xd,_0x549e28(U))],Sn);let Cn=class extends ${constructor(_0x5f6a12,_0x4aa080,_0x5b2098,_0x2e10e6,_0x195850,_0x1cac81,_0x4ccc38,_0x1f3066,_0xa2bb20,_0x570966,_0x4d3625,_0x29e94d,_0x5f0a2c,_0x6127ce,_0x315702){const _0x3d8d00=_0x1ff7ba;super(_0x5f6a12,_0x5b2098,_0x4aa080,_0x2e10e6,_0x195850,_0x1cac81,_0x4ccc38,_0xa2bb20,_0x570966,_0x4d3625,_0x29e94d,_0x5f0a2c,_0x6127ce,_0x315702),this['unitID']=_0x5f6a12,this['type']=_0x4aa080,this[_0x3d8d00(0xd2)]=_0x1f3066;}[_0x1ff7ba(0x2dd)](){const _0x1c92df=_0x1ff7ba;let _0x1d2441=super[_0x1c92df(0x2dd)]();return _0x1d2441[_0x1c92df(0x104)]=_0x2e93b5=>this[_0x1c92df(0xd2)][_0x1c92df(0x1bf)](_0x2e93b5),_0x1d2441;}async[_0x1ff7ba(0x33e)](){const _0x264301=_0x1ff7ba;let _0x5b295f=await super[_0x264301(0x33e)]();return this[_0x264301(0x107)](this[_0x264301(0x118)][_0x264301(0x343)]((_0x3195ab,_0xc22be)=>{const _0x3ebc2d=_0x264301;if(_0x3195ab['type']!==_0xd06548[_0x3ebc2d(0x10e)]||_0xc22be!=null&&_0xc22be[_0x3ebc2d(0x1bb)]||_0xc22be!=null&&_0xc22be[_0x3ebc2d(0x339)])return;let _0x270229=_0x3195ab[_0x3ebc2d(0x1e5)];if((_0x270229==null?void 0x0:_0x270229[_0x3ebc2d(0x92)])!==this[_0x3ebc2d(0x1a1)])return;let _0x373854=_0x3195ab,_0x393798=this[_0x3ebc2d(0x348)][_0x3ebc2d(0x26a)][_0x3ebc2d(0x10f)](this[_0x3ebc2d(0x348)]['interceptor'][_0x3ebc2d(0x1cc)]()[_0x3ebc2d(0x23a)])([_0x373854],this[_0x3ebc2d(0x206)])||[_0x373854];this[_0x3ebc2d(0x260)](_0x393798[0x0]);})),_0x5b295f;}};Cn=H([V(0x3,_0x1bde49(_0x3737e0)),V(0x4,_0x1bde49(_0x21501a)),V(0x5,_0x1bde49(_0xa6f03e)),V(0x6,_0x1bde49(_0x434fdf)),V(0x7,_0x1bde49(Jt)),V(0x8,_0x1bde49(B)),V(0x9,_0x47a807),V(0xa,_0x43cd29),V(0xb,_0x15a5e2),V(0xc,_0x5e2701),V(0xd,_0x549e28(W)),V(0xe,_0x549e28(U))],Cn);let wn=class extends ${constructor(_0x2b1411,_0x1995e9,_0x4536b9,_0x43d07e,_0x17174b,_0x45c17d,_0x5af135,_0x5e02c3,_0xfa80a7,_0x4ceab2,_0x2c7c3e,_0x203af5,_0x5e69e9,_0x4f2e1b){const _0x1090d8=_0x1ff7ba;super(_0x2b1411,_0x4536b9,_0x1995e9,_0x43d07e,_0x17174b,_0x45c17d,_0x5af135,_0x5e02c3,_0xfa80a7,_0x4ceab2,_0x2c7c3e,_0x203af5,_0x5e69e9,_0x4f2e1b),this['unitID']=_0x2b1411,this[_0x1090d8(0x301)]=_0x1995e9;}async[_0x1ff7ba(0x33e)](){const _0x526293=_0x1ff7ba;let _0x2b1ae4=await super['_init']();return this[_0x526293(0x107)](this[_0x526293(0x118)]['onMutationExecutedForCollab']((_0x45a14d,_0x5598f7)=>{const _0x53d357=_0x526293;if(_0x45a14d['type']!==_0xd06548[_0x53d357(0x10e)]||_0x5598f7!=null&&_0x5598f7[_0x53d357(0x1bb)]||_0x5598f7!=null&&_0x5598f7[_0x53d357(0x339)])return;let _0x43182f=_0x45a14d[_0x53d357(0x1e5)];if((_0x43182f==null?void 0x0:_0x43182f[_0x53d357(0x92)])!==this[_0x53d357(0x1a1)])return;let _0x103253=_0x45a14d,_0x1a26ed=this[_0x53d357(0x348)][_0x53d357(0x26a)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x53d357(0x26a)][_0x53d357(0x1cc)]()[_0x53d357(0x23a)])([_0x103253],this[_0x53d357(0x206)])||[_0x103253];this[_0x53d357(0x260)](_0x1a26ed[0x0]);})),_0x2b1ae4;}};wn=H([V(0x3,_0x1bde49(_0x3737e0)),V(0x4,_0x1bde49(_0x21501a)),V(0x5,_0x1bde49(_0xa6f03e)),V(0x6,_0x1bde49(_0x434fdf)),V(0x7,_0x1bde49(B)),V(0x8,_0x47a807),V(0x9,_0x43cd29),V(0xa,_0x15a5e2),V(0xb,_0x5e2701),V(0xc,_0x549e28(W)),V(0xd,_0x549e28(U))],wn);let Tn=class extends ${constructor(_0x137fa1,_0x3701b7,_0x3376a4,_0x2b354a,_0x53bb05,_0x4ff02e,_0x128e1a,_0x45a559,_0x3e8593,_0x51aae5,_0x523ae5,_0x207841,_0x3f8f2a,_0x1d022f){const _0x4ed2c1=_0x1ff7ba;super(_0x137fa1,_0x3376a4,_0x3701b7,_0x2b354a,_0x53bb05,_0x4ff02e,_0x128e1a,_0x45a559,_0x3e8593,_0x51aae5,_0x523ae5,_0x207841,_0x3f8f2a,_0x1d022f),this[_0x4ed2c1(0x1a1)]=_0x137fa1,this[_0x4ed2c1(0x301)]=_0x3701b7;}async[_0x1ff7ba(0x33e)](){const _0x160a7b=_0x1ff7ba;let _0x59e5e1=await super[_0x160a7b(0x33e)]();return this[_0x160a7b(0x107)](this[_0x160a7b(0x118)][_0x160a7b(0x343)]((_0x24a4af,_0x88c38f)=>{const _0x2dc537=_0x160a7b;if(_0x24a4af[_0x2dc537(0x301)]!==_0xd06548[_0x2dc537(0x10e)]||_0x88c38f!=null&&_0x88c38f[_0x2dc537(0x1bb)]||_0x88c38f!=null&&_0x88c38f[_0x2dc537(0x339)])return;let _0x114b38=_0x24a4af[_0x2dc537(0x1e5)];if((_0x114b38==null?void 0x0:_0x114b38[_0x2dc537(0x92)])!==this[_0x2dc537(0x1a1)])return;let _0x3072b4=_0x24a4af,_0x10eed2=this[_0x2dc537(0x348)][_0x2dc537(0x26a)][_0x2dc537(0x10f)](this[_0x2dc537(0x348)]['interceptor'][_0x2dc537(0x1cc)]()[_0x2dc537(0x23a)])([_0x3072b4],this[_0x2dc537(0x206)])||[_0x3072b4];this['_onLocalMutation'](_0x10eed2[0x0]);})),_0x59e5e1;}};Tn=H([V(0x3,_0x1bde49(_0x3737e0)),V(0x4,_0x1bde49(_0x21501a)),V(0x5,_0x1bde49(_0xa6f03e)),V(0x6,_0x1bde49(_0x434fdf)),V(0x7,_0x1bde49(B)),V(0x8,_0x47a807),V(0x9,_0x43cd29),V(0xa,_0x15a5e2),V(0xb,_0x5e2701),V(0xc,_0x549e28(W)),V(0xd,_0x549e28(U))],Tn);let En=class extends ${constructor(_0x9b95ab,_0x1d3e94,_0x50c384,_0x3be33f,_0x534d3e,_0x417367,_0x65dd83,_0x39a3ec,_0x492299,_0x3fd341,_0x1d4ccf,_0x516e5d,_0x444344,_0x1b04ff){const _0x18ef03=_0x1ff7ba;super(_0x9b95ab,_0x50c384,_0x1d3e94,_0x3be33f,_0x534d3e,_0x417367,_0x65dd83,_0x39a3ec,_0x492299,_0x3fd341,_0x1d4ccf,_0x516e5d,_0x444344,_0x1b04ff),this['unitID']=_0x9b95ab,this[_0x18ef03(0x301)]=_0x1d3e94;}async['_init'](){const _0x131852=_0x1ff7ba;let _0x32a263=await super[_0x131852(0x33e)]();return this[_0x131852(0x107)](this[_0x131852(0x118)][_0x131852(0x343)]((_0x4e94bb,_0x55d330)=>{const _0x2d3717=_0x131852;if(_0x4e94bb[_0x2d3717(0x301)]!==_0xd06548[_0x2d3717(0x10e)]||_0x55d330!=null&&_0x55d330['fromCollab']||_0x55d330!=null&&_0x55d330[_0x2d3717(0x339)])return;let _0x323d89=_0x4e94bb['params'];if((_0x323d89==null?void 0x0:_0x323d89[_0x2d3717(0x92)])!==this[_0x2d3717(0x1a1)])return;let _0x5c6837=_0x4e94bb,_0x5ef20b=this[_0x2d3717(0x348)]['interceptor'][_0x2d3717(0x10f)](this['_compressMutationService'][_0x2d3717(0x26a)][_0x2d3717(0x1cc)]()[_0x2d3717(0x23a)])([_0x5c6837],this[_0x2d3717(0x206)])||[_0x5c6837];this[_0x2d3717(0x260)](_0x5ef20b[0x0]);})),_0x32a263;}};En=H([V(0x3,_0x1bde49(_0x3737e0)),V(0x4,_0x1bde49(_0x21501a)),V(0x5,_0x1bde49(_0xa6f03e)),V(0x6,_0x1bde49(_0x434fdf)),V(0x7,_0x1bde49(B)),V(0x8,_0x47a807),V(0x9,_0x43cd29),V(0xa,_0x15a5e2),V(0xb,_0x5e2701),V(0xc,_0x549e28(W)),V(0xd,_0x549e28(U))],En);const Dn=_0x31cdc2(_0x1ff7ba(0x2b5));function On(_0x4cff74){const _0xfc7812=_0x1ff7ba;let _0x215870=_0x4cff74[_0xfc7812(0x2e1)],_0x546f99=JSON[_0xfc7812(0x1e9)](_0x215870);switch(_0x546f99[_0xfc7812(0x331)]){case _0x1da9fa[_0xfc7812(0x16c)]:case _0x1da9fa[_0xfc7812(0x30d)]:{let _0x43c692=_0x546f99[_0xfc7812(0x166)];return{..._0x546f99,'data':_0x43c692,'cmd':_0x546f99[_0xfc7812(0x331)]};}case _0x1da9fa[_0xfc7812(0x2b4)]:{let _0x42be30=_0x546f99[_0xfc7812(0x1df)];return{..._0x546f99,'data':_0x42be30,'cmd':_0x546f99[_0xfc7812(0x331)]};}case _0x1da9fa[_0xfc7812(0x27f)]:{let _0x338d61=_0x546f99['collaMsg'];switch(_0x338d61[_0xfc7812(0x108)]){case _0x5a2b35[_0xfc7812(0xb3)]:var _0x5d330e;return{..._0x546f99,'data':{..._0x338d61,'data':(_0x5d330e=_0x338d61['permissionRejEvent'])==null?void 0x0:_0x5d330e['cs']},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35[_0xfc7812(0xdf)]:var _0x2a9fd4;return{..._0x546f99,'data':{..._0x338d61,'data':(_0x2a9fd4=_0x338d61['csAckEvent'])==null?void 0x0:_0x2a9fd4['cs']},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35[_0xfc7812(0x272)]:var _0x5b211f;return{..._0x546f99,'data':{..._0x338d61,'data':(_0x5b211f=_0x338d61[_0xfc7812(0x25f)])==null?void 0x0:_0x5b211f['cs']},'cmd':_0x546f99['cmd']};case _0x5a2b35[_0xfc7812(0x13b)]:var _0xfc58e2;return{..._0x546f99,'data':{..._0x338d61,'data':(_0xfc58e2=_0x338d61[_0xfc7812(0x162)])==null?void 0x0:_0xfc58e2['cs']},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35[_0xfc7812(0x324)]:var _0x59ca1d;return{..._0x546f99,'data':{..._0x338d61,'data':(_0x59ca1d=_0x338d61[_0xfc7812(0x33b)])==null?void 0x0:_0x59ca1d['cs']},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35[_0xfc7812(0x178)]:return{..._0x546f99,'data':{..._0x338d61,'data':_0x338d61[_0xfc7812(0x2cc)]},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35[_0xfc7812(0x235)]:return{..._0x546f99,'data':{..._0x338d61,'data':_0x338d61['joinEvent']},'cmd':_0x546f99['cmd']};case _0x5a2b35[_0xfc7812(0x2cd)]:return{..._0x546f99,'data':{..._0x338d61,'data':_0x338d61['leaveEvent']},'cmd':_0x546f99['cmd']};case _0x5a2b35[_0xfc7812(0x22e)]:return{..._0x546f99,'data':{..._0x338d61,'data':_0x338d61[_0xfc7812(0x284)]},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35['LIVESHARE_FETCH_OPERATIONS']:case _0x5a2b35[_0xfc7812(0xbb)]:return{..._0x546f99,'data':{..._0x338d61,'data':_0x338d61[_0xfc7812(0x202)]},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35[_0xfc7812(0x1d9)]:return{..._0x546f99,'data':{..._0x338d61,'data':_0x338d61['liveShareNewHost']},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35[_0xfc7812(0x16d)]:return{..._0x546f99,'data':_0x338d61,'cmd':_0x546f99['cmd']};case _0x5a2b35['COMMENT_UPDATE']:return{..._0x546f99,'data':{..._0x338d61,'data':_0x338d61['commentUpdateEvent']},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35[_0xfc7812(0xca)]:return{..._0x546f99,'data':{..._0x338d61,'data':_0x338d61[_0xfc7812(0x171)]},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35[_0xfc7812(0x1c8)]:return{..._0x546f99,'data':{..._0x338d61,'data':_0x338d61[_0xfc7812(0xb4)]},'cmd':_0x546f99[_0xfc7812(0x331)]};case _0x5a2b35[_0xfc7812(0x119)]:return{..._0x546f99,'data':{..._0x338d61,'data':_0x338d61['uniscriptRunEvent']},'cmd':_0x546f99['cmd']};default:return _0x546f99;}}default:return _0x546f99;}}function kn(_0x1ccd25){const _0x216add=_0x1ff7ba;switch(_0x1ccd25['cmd']){case _0x1da9fa[_0x216add(0x16c)]:case _0x1da9fa[_0x216add(0x30d)]:return JSON[_0x216add(0x18f)]({'cmd':_0x1ccd25[_0x216add(0x331)],'routeKey':_0x1ccd25[_0x216add(0x2ed)]});case _0x1da9fa[_0x216add(0x2c3)]:{let _0x1f91b2;switch(_0x1ccd25['data'][_0x216add(0x108)]){case _0x5a2b35[_0x216add(0x178)]:_0x1f91b2={'eventID':_0x5a2b35[_0x216add(0x178)],'updateCursorEvent':_0x1ccd25['data'][_0x216add(0x2e1)]};break;case _0x5a2b35['USERS_LEAVE']:_0x1f91b2={'eventID':_0x5a2b35[_0x216add(0x2cd)],'leaveEvent':_0x1ccd25[_0x216add(0x2e1)]['data']};break;case _0x5a2b35['USERS_ENTER']:_0x1f91b2={'eventID':_0x5a2b35[_0x216add(0x235)],'joinEvent':_0x1ccd25[_0x216add(0x2e1)]['data']};break;case _0x5a2b35[_0x216add(0x22e)]:_0x1f91b2={'eventID':_0x5a2b35['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x1ccd25[_0x216add(0x2e1)][_0x216add(0x2e1)]};break;case _0x5a2b35[_0x216add(0xbb)]:_0x1f91b2={'eventID':_0x5a2b35[_0x216add(0xbb)],'liveShareOperation':_0x1ccd25[_0x216add(0x2e1)][_0x216add(0x2e1)]};break;case _0x5a2b35[_0x216add(0x1d9)]:_0x1f91b2={'eventID':_0x5a2b35[_0x216add(0x1d9)],'liveShareTerminate':_0x1ccd25[_0x216add(0x2e1)][_0x216add(0x2e1)]};break;case _0x5a2b35[_0x216add(0x123)]:_0x1f91b2={'eventID':_0x5a2b35[_0x216add(0x123)],'liveShareRequestHost':_0x1ccd25[_0x216add(0x2e1)][_0x216add(0x2e1)]};break;case _0x5a2b35['LIVESHARE_FETCH_OPERATIONS']:_0x1f91b2={'eventID':_0x5a2b35['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x1f91b2={'eventID':_0x1ccd25[_0x216add(0x2e1)][_0x216add(0x108)]};}return JSON[_0x216add(0x18f)]({'cmd':_0x1ccd25[_0x216add(0x331)],'routeKey':_0x1ccd25[_0x216add(0x2ed)],'collaMsg':_0x1f91b2});}case _0x1da9fa['JOIN']:return JSON[_0x216add(0x18f)]({'cmd':_0x1ccd25['cmd'],'routeKey':_0x1ccd25[_0x216add(0x2ed)],'joinReq':_0x1ccd25[_0x216add(0x2e1)]});case _0x1da9fa[_0x216add(0x34c)]:return JSON[_0x216add(0x18f)]({'cmd':_0x1ccd25['cmd'],'routeKey':_0x1ccd25[_0x216add(0x2ed)],'leaveReq':_0x1ccd25[_0x216add(0x2e1)]});default:throw Error(_0x216add(0x122));}}const An=_0x31cdc2(_0x1ff7ba(0x144));function _0x455c(_0x21e6c3,_0x1c7b88){_0x21e6c3=_0x21e6c3-0x85;const _0x4f121b=_0x4f12();let _0x455c2f=_0x4f121b[_0x21e6c3];return _0x455c2f;}function jn(_0x41565,_0x21abc1,_0x58455c){const _0x45f986=_0x1ff7ba;return _0x41565+'/'+_0x21abc1+_0x45f986(0x13a)+_0x58455c+_0x45f986(0x2d2);}let Mn=class extends _0x1dea33{constructor(_0x5e8e7f,_0x4e21b5,_0x19b1ab,_0x52354b,_0x533b41){const _0x104abf=_0x1ff7ba;super(),this['_injector']=_0x5e8e7f,this[_0x104abf(0x88)]=_0x4e21b5,this[_0x104abf(0x274)]=_0x19b1ab,this[_0x104abf(0x19a)]=_0x52354b,this[_0x104abf(0x190)]=_0x533b41;}[_0x1ff7ba(0xf3)](_0x1bc0dc){const _0x230d0f=_0x1ff7ba;let _0x3d7169=this['_injector'][_0x230d0f(0x322)](_0x4754a0);if(!_0x3d7169)throw Error(_0x230d0f(0x165));let _0x1e557a=_0x3d7169[_0x230d0f(0x30a)](_0x1bc0dc);if(!_0x1e557a)throw Error(_0x230d0f(0x182));let _0x2cb03b=new _0x4fe72c(),_0x55a294=new _0x33b46e();_0x2cb03b['add'](_0x1e557a[_0x230d0f(0x226)][_0x230d0f(0x1ec)](_0xfefb64=>_0x55a294[_0x230d0f(0x14c)](_0xfefb64))),_0x2cb03b[_0x230d0f(0x2d8)](_0x370f20(()=>_0x55a294['complete']()));let _0x2f27c0=new _0x33b46e();_0x2cb03b[_0x230d0f(0x2d8)](_0x1e557a['error$'][_0x230d0f(0x1ec)](_0x3f80a2=>_0x2f27c0[_0x230d0f(0x14c)](_0x3f80a2))),_0x2cb03b['add'](_0x370f20(()=>_0x2f27c0[_0x230d0f(0x220)]()));let _0x4f4070=new _0x33b46e();_0x2cb03b[_0x230d0f(0x2d8)](_0x1e557a['message$'][_0x230d0f(0x1ec)](_0x36abb6=>{const _0x1019bf=_0x230d0f;let _0x54b2d0=On(_0x36abb6);_0x4f4070[_0x1019bf(0x14c)](_0x54b2d0);})),_0x2cb03b['add'](_0x370f20(()=>_0x4f4070[_0x230d0f(0x220)]()));let _0x35277b,_0x55bc1c=()=>{const _0x20eb2d=_0x230d0f;_0x2f27c0[_0x20eb2d(0x14c)](new Event(_0x20eb2d(0x290))),_0x55a294[_0x20eb2d(0x14c)](new Event('connection\x20error')),_0x35277b[_0x20eb2d(0x8e)]();};return _0x35277b={'memberID':'','close$':_0x55a294[_0x230d0f(0xa1)](),'error$':_0x2f27c0[_0x230d0f(0xa1)](),'open$':_0x1e557a[_0x230d0f(0xb7)],'message$':_0x4f4070[_0x230d0f(0xa1)](),'send':_0x4ed822=>{const _0x51309a=_0x230d0f;if(_0x4ed822[_0x51309a(0x331)]===_0x1da9fa[_0x51309a(0x2c3)]){if(_0x4ed822['data'][_0x51309a(0x108)]===_0x5a2b35[_0x51309a(0x2ef)]){this['_submitChangeset'](_0x35277b,_0x4ed822['data'])[_0x51309a(0xa0)](_0x3bf7ff=>{const _0x8c6f09=_0x51309a;this[_0x8c6f09(0x19a)][_0x8c6f09(0xdd)](_0x3bf7ff),_0x55bc1c();});return;}if(_0x4ed822[_0x51309a(0x2e1)]['eventID']===_0x5a2b35[_0x51309a(0x139)]){let _0x5b4c5a=_0x4ed822[_0x51309a(0x2e1)];this[_0x51309a(0x128)](_0x5b4c5a)['then'](_0x3c0eb6=>{const _0x3d3964=_0x51309a;_0x4f4070[_0x3d3964(0x14c)]({'cmd':_0x1da9fa['RECV'],'code':_0x36a29b['OK'],'routeKey':_0x5b4c5a[_0x3d3964(0x2e1)][_0x3d3964(0x1a1)],'routeType':'','data':{'eventID':_0x5a2b35[_0x3d3964(0x231)],'data':{'changesets':_0x3c0eb6}}});})['catch'](_0x250026=>{const _0x20572b=_0x51309a;this[_0x20572b(0x19a)]['error'](_0x250026),_0x55bc1c();});return;}}_0x1e557a[_0x51309a(0xe5)](kn(_0x4ed822));},'close':()=>{const _0x110a0d=_0x230d0f;_0x1e557a['close'](),_0x2cb03b[_0x110a0d(0x1cd)]();}},_0x35277b;}async[_0x1ff7ba(0x1ca)](_0x7b7a6e,_0x40deac){const _0x326adf=_0x1ff7ba;let {unitType:_0x3d29f9,unitID:_0x1b3e5b,changeset:_0x297799}=_0x40deac[_0x326adf(0x2e1)],_0x19c01c={'unitID':_0x1b3e5b,'memberID':_0x7b7a6e[_0x326adf(0x32e)],'type':_0x3d29f9,'changeset':_0xda8267(_0x297799)},_0x82d56a=this[_0x326adf(0x274)][_0x326adf(0xfe)](R),_0x53ab9b=jn((_0x82d56a==null?void 0x0:_0x82d56a[_0x326adf(0x1e2)])??_0x326adf(0x140),_0x3d29f9,_0x1b3e5b);try{await this[_0x326adf(0x88)][_0x326adf(0x275)](_0x53ab9b,{'body':_0x19c01c});}catch(_0x4db37d){throw this[_0x326adf(0x19a)]['error']('[CollaborationSession]',_0x326adf(0x352)),_0x4db37d;}}async[_0x1ff7ba(0x128)](_0x5cd02b){const _0x7c3818=_0x1ff7ba;let {unitID:_0x1e9529,from:_0x475c0a,to:_0x17ec12,unitType:_0x20adc8}=_0x5cd02b[_0x7c3818(0x2e1)];return(await this[_0x7c3818(0x190)][_0x7c3818(0xd8)]({'metadata':void 0x0},{'unitID':_0x1e9529,'type':_0x20adc8,'from':_0x475c0a,'to':_0x17ec12}))[_0x7c3818(0x2d0)][_0x7c3818(0x8f)](_0x3a2ff8=>((_0x3a2ff8[_0x7c3818(0x2be)]===null||_0x3a2ff8[_0x7c3818(0x2be)]===void 0x0)&&(_0x3a2ff8[_0x7c3818(0x2be)]=[]),_0x3a2ff8));}};Mn=H([V(0x0,_0x1bde49(_0x3737e0)),V(0x1,_0x1bde49(_0x1ff29e)),V(0x2,_0x3c20c1),V(0x3,_0x43cd29),V(0x4,_0x563d2c)],Mn);const Nn=_0x31cdc2(_0x1ff7ba(0x2e6));function Pn(_0x104e0a={}){const _0x520166=_0x1ff7ba;return _0x104e0a[_0x520166(0x2f1)]?{'resolveUnit':_0x104e0a[_0x520166(0x2f1)]}:{'resolveUnit':_0x280414=>({'target':{'unitId':_0x280414[_0x520166(0x92)],'unitType':_0x280414[_0x520166(0xaa)]}})};}function Fn(_0x588a56,_0x30ed5,_0xebbb3f){const _0x12143c=_0x1ff7ba;let _0x58dd65=_0xebbb3f[_0x12143c(0x93)][_0x12143c(0x2f9)];if(_0x58dd65!=null&&_0x58dd65['trim']()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0xebbb3f['target']['unitId'])throw Error(_0x12143c(0x96));return{'localUnitId':_0x588a56,'unitType':_0x30ed5,'target':{'endpoint':_0x58dd65,'unitId':_0xebbb3f[_0x12143c(0x93)][_0x12143c(0x92)],'unitType':_0xebbb3f['target'][_0x12143c(0xaa)]??_0x30ed5},'changeset':_0xebbb3f[_0x12143c(0x16a)]};}let In=class extends _0x1dea33{constructor(_0x264bd8,_0x6ee393,_0x191059,_0x47d5b2,_0x485a9d,_0x4d29b3,_0x5cbcf5){const _0x2fc392=_0x1ff7ba;super(),this[_0x2fc392(0xbe)]=_0x264bd8,this['_logService']=_0x6ee393,this[_0x2fc392(0x274)]=_0x191059,this[_0x2fc392(0x135)]=_0x47d5b2,this[_0x2fc392(0x33a)]=_0x485a9d,this[_0x2fc392(0x199)]=_0x4d29b3,this['_networkConditionService']=_0x5cbcf5,z(this,_0x2fc392(0x2ac),new Map()),z(this,_0x2fc392(0x1ac),new Map()),z(this,'_sessionChannels',new Map()),z(this,_0x2fc392(0x1e0),new Map()),z(this,'socket$',this['_getSocketChannel'](void 0x0)[_0x2fc392(0x15b)]['asObservable']()),z(this,_0x2fc392(0x125),new _0x497921(0x0)),z(this,_0x2fc392(0x180),this[_0x2fc392(0x125)]['asObservable']()),this[_0x2fc392(0x1ad)]();}[_0x1ff7ba(0x1ad)](){const _0x233282=_0x1ff7ba;this[_0x233282(0x2c9)]&&this[_0x233282(0x107)](this[_0x233282(0x2c9)][_0x233282(0x20b)][_0x233282(0x1ec)](_0x1ec1ea=>{const _0x5958be=_0x233282;_0x1ec1ea&&this[_0x5958be(0x204)](),_0x1ec1ea||this[_0x5958be(0x1e0)][_0x5958be(0x344)](_0x505ce5=>this[_0x5958be(0x32d)](_0x505ce5));}));}[_0x1ff7ba(0x1cd)](){const _0x425e31=_0x1ff7ba;super[_0x425e31(0x1cd)](),this['_socketChannels']['forEach'](_0x41cdfb=>{const _0x334f70=_0x425e31;var _0xb1fc7d,_0x9ee4c7;(_0xb1fc7d=_0x41cdfb[_0x334f70(0x346)])==null||_0xb1fc7d[_0x334f70(0x26e)](),_0x41cdfb[_0x334f70(0x346)]=null,this[_0x334f70(0x2f0)](_0x41cdfb),this[_0x334f70(0x99)](_0x41cdfb),this['_clearHeartbeatTimer'](_0x41cdfb),(_0x9ee4c7=_0x41cdfb[_0x334f70(0x15b)][_0x334f70(0x167)]())==null||_0x9ee4c7[_0x334f70(0x8e)](),_0x41cdfb[_0x334f70(0x15b)][_0x334f70(0x220)]();}),this[_0x425e31(0x1e0)][_0x425e31(0x17d)](),this[_0x425e31(0x2ac)][_0x425e31(0x344)](_0x2946=>_0x2946[_0x425e31(0x1cd)]()),this[_0x425e31(0x2ac)][_0x425e31(0x17d)](),this['_sessionChannels'][_0x425e31(0x17d)](),this[_0x425e31(0x125)][_0x425e31(0x220)]();}async['requireSession'](_0x32ab76,_0x5245ec){const _0x298f32=_0x1ff7ba;if(this[_0x298f32(0x2ac)][_0x298f32(0x1d3)](_0x32ab76))return this['_sessions'][_0x298f32(0x322)](_0x32ab76);let _0x1f3db4=this[_0x298f32(0x1ac)][_0x298f32(0x322)](_0x32ab76);if(_0x1f3db4)return _0x1f3db4;let _0x11c506=this['_createSession'](_0x32ab76,_0x5245ec);this[_0x298f32(0x1ac)]['set'](_0x32ab76,_0x11c506);try{return await _0x11c506;}finally{this['_pendingSessions'][_0x298f32(0x234)](_0x32ab76);}}async[_0x1ff7ba(0x214)](_0x53fd16,_0x5ec4af){const _0x288737=_0x1ff7ba;let _0x2485e8=await this[_0x288737(0x2e5)](_0x53fd16,_0x5ec4af),_0x3b9af3=this['_getSocketChannel'](_0x2485e8[_0x288737(0x93)]['endpoint']);this[_0x288737(0xef)](_0x3b9af3);let _0x33c13f=this['_injector'][_0x288737(0x16b)](Gt,_0x2485e8,_0x3b9af3[_0x288737(0x15b)][_0x288737(0xa1)]());return this[_0x288737(0x2ac)][_0x288737(0x129)](_0x53fd16,_0x33c13f),this[_0x288737(0x1d0)][_0x288737(0x129)](_0x53fd16,_0x3b9af3['endpointKey']),_0x33c13f;}[_0x1ff7ba(0x8a)](_0x3b4537){const _0xc9cd2f=_0x1ff7ba;let _0xd5c61d=this[_0xc9cd2f(0x2ac)][_0xc9cd2f(0x322)](_0x3b4537),_0x1f62b8=this[_0xc9cd2f(0x1d0)][_0xc9cd2f(0x322)](_0x3b4537);if(_0xd5c61d&&(this['_sessions']['delete'](_0x3b4537),this[_0xc9cd2f(0x1d0)][_0xc9cd2f(0x234)](_0x3b4537),_0xd5c61d['close']()),_0x1f62b8&&!this[_0xc9cd2f(0xd0)](_0x1f62b8)){var _0xafa5ea;let _0x5373bd=this[_0xc9cd2f(0x1e0)][_0xc9cd2f(0x322)](_0x1f62b8);_0x5373bd==null||(_0xafa5ea=_0x5373bd[_0xc9cd2f(0x15b)][_0xc9cd2f(0x167)]())==null||_0xafa5ea[_0xc9cd2f(0x8e)]();}}['reconnect'](){const _0x6413e0=_0x1ff7ba;(this['_socketChannels']['size']?[...this['_socketChannels'][_0x6413e0(0x186)]()]:[this[_0x6413e0(0xce)](void 0x0)])[_0x6413e0(0x344)](_0x315d9d=>{const _0x533801=_0x6413e0;_0x315d9d[_0x533801(0x18e)]=0x0,this[_0x533801(0x2f0)](_0x315d9d),this['_tryReconnect'](_0x315d9d);});}[_0x1ff7ba(0x2f0)](_0x3d5e6b){const _0x30ea9a=_0x1ff7ba;_0x3d5e6b[_0x30ea9a(0x26d)]!=null&&(clearTimeout(_0x3d5e6b[_0x30ea9a(0x26d)]),_0x3d5e6b[_0x30ea9a(0x26d)]=null);}async[_0x1ff7ba(0x233)](_0x2cf352){const _0x191bc6=_0x1ff7ba;let _0x1e8dac=this[_0x191bc6(0x274)][_0x191bc6(0xfe)](R),_0x20c4f5=_0x2cf352[_0x191bc6(0x2f9)]??(_0x1e8dac==null?void 0x0:_0x1e8dac[_0x191bc6(0x27e)])??'ws://127.0.0.1:8000/universer-api/comb/connect',_0x528fc5=await this[_0x191bc6(0x135)][_0x191bc6(0x30a)](_0x20c4f5);return _0x2cf352[_0x191bc6(0x23c)]=_0x528fc5,_0x528fc5;}async[_0x1ff7ba(0xef)](_0x8b1acb){const _0x330a2c=_0x1ff7ba;try{let _0x3fdaa3=_0x8b1acb[_0x330a2c(0x15b)][_0x330a2c(0x167)]()??_0x8b1acb[_0x330a2c(0x23c)]??await this['_createSocket'](_0x8b1acb);if(_0x3fdaa3){var _0x48434c;let _0x4e56de=_0x3fdaa3[_0x330a2c(0xe5)];_0x3fdaa3['send']=_0x26f955=>(_0x26f955['cmd']!==_0x1da9fa[_0x330a2c(0x34c)]&&this[_0x330a2c(0x160)](_0x8b1acb),_0x4e56de[_0x330a2c(0x28f)](_0x3fdaa3,[_0x26f955])),(_0x48434c=_0x8b1acb['socketMessageSubscription'])==null||_0x48434c[_0x330a2c(0x26e)](),_0x8b1acb[_0x330a2c(0x346)]=null,_0x8b1acb[_0x330a2c(0x346)]=_0x3fdaa3[_0x330a2c(0x1b4)][_0x330a2c(0x1ec)](_0x27f9d2=>this[_0x330a2c(0x2e3)](_0x8b1acb,_0x3fdaa3,_0x27f9d2)),_0x3fdaa3[_0x330a2c(0x2fe)]['pipe'](_0x33da2d(0x1))['subscribe'](_0x361f4e=>this[_0x330a2c(0x19a)]['error'](_0x330a2c(0x2b9),_0x361f4e)),_0x3fdaa3[_0x330a2c(0xb7)][_0x330a2c(0x29b)](_0x33da2d(0x1))['subscribe'](()=>{const _0x47077c=_0x330a2c;this[_0x47077c(0xd3)](_0x8b1acb,_0x3fdaa3);}),_0x3fdaa3[_0x330a2c(0x226)][_0x330a2c(0x29b)](_0x33da2d(0x1))[_0x330a2c(0x1ec)](_0x713ae4=>{const _0x143057=_0x330a2c;this[_0x143057(0x19a)][_0x143057(0x174)](_0x143057(0xb2),_0x143057(0x1fb),_0x713ae4),this[_0x143057(0x265)](_0x8b1acb);});}}catch(_0x553fa2){this[_0x330a2c(0x19a)][_0x330a2c(0xdd)](_0x553fa2),this[_0x330a2c(0x265)](_0x8b1acb);}}[_0x1ff7ba(0xd3)](_0x2e3888,_0x26c976){const _0x5bc39e=_0x1ff7ba;this['_logService'][_0x5bc39e(0x174)](_0x5bc39e(0xb2),_0x5bc39e(0x10d)),_0x26c976['send']({'cmd':_0x1da9fa[_0x5bc39e(0x30d)]}),this[_0x5bc39e(0x160)](_0x2e3888);}[_0x1ff7ba(0x32d)](_0x39e213){const _0x4ad454=_0x1ff7ba;_0x39e213[_0x4ad454(0x1ba)]=!0x1,_0x39e213[_0x4ad454(0x23c)]=null,this[_0x4ad454(0x125)][_0x4ad454(0x14c)](0x2),_0x39e213[_0x4ad454(0x15b)][_0x4ad454(0x14c)](null),this[_0x4ad454(0x99)](_0x39e213),this['_clearHeartbeatTimer'](_0x39e213);}[_0x1ff7ba(0x265)](_0x3d5a4a){const _0x11273f=_0x1ff7ba;this[_0x11273f(0x32d)](_0x3d5a4a),this[_0x11273f(0xd0)](_0x3d5a4a[_0x11273f(0x2f6)])&&(_0x3d5a4a['retryCount']<(this['_configService'][_0x11273f(0xfe)]('RETRY_CONNECTING_MAX_COUNT')??0x3)?(this['_collaborationUIEventService']['emitEvent']({'id':_0x11273f(0x1fe)}),this[_0x11273f(0x30b)](_0x3d5a4a)):this['_collaborationUIEventService'][_0x11273f(0x11c)]({'id':'SOCKET_FAILED'}));}[_0x1ff7ba(0x30b)](_0x3ffa12){const _0x40dbef=_0x1ff7ba;let _0x2e039b=_0x3ffa12[_0x40dbef(0x18e)],_0x3005e5=this[_0x40dbef(0x274)][_0x40dbef(0xfe)](R),_0x52660b=_0x2e039b===0x0?0x0:((_0x3005e5==null?void 0x0:_0x3005e5['retryConnectingInterval'])??0x4e20)*0x2**_0x2e039b;_0x3ffa12[_0x40dbef(0x26d)]=setTimeout(()=>{const _0x329c07=_0x40dbef;clearTimeout(_0x3ffa12[_0x329c07(0x26d)]),_0x3ffa12['retryConnectingTimer']=null,this[_0x329c07(0xef)](_0x3ffa12);},_0x52660b),_0x3ffa12[_0x40dbef(0x18e)]+=0x1;}async[_0x1ff7ba(0x2e5)](_0x188e84,_0x5d01da){const _0x3c4802=_0x1ff7ba;return Fn(_0x188e84,_0x5d01da,await this[_0x3c4802(0x199)]['resolveUnit']({'unitId':_0x188e84,'unitType':_0x5d01da}));}[_0x1ff7ba(0x2e3)](_0x421360,_0xe366b6,_0x102765){const _0x3c1cff=_0x1ff7ba;let {cmd:_0x4882d7}=_0x102765;_0x4882d7===_0x1da9fa['HELLO']&&!_0x421360[_0x3c1cff(0x1ba)]&&(_0xe366b6[_0x3c1cff(0x32e)]=_0x102765[_0x3c1cff(0x2e1)][_0x3c1cff(0x32e)],_0x421360['retryCount']=0x0,_0x421360['socket$'][_0x3c1cff(0x14c)](_0xe366b6),this[_0x3c1cff(0x125)][_0x3c1cff(0x14c)](0x3),_0x421360[_0x3c1cff(0x1ba)]=!0x0,_0x421360[_0x3c1cff(0x23c)]=null),_0x4882d7===_0x1da9fa['HEARTBEAT']&&this[_0x3c1cff(0x99)](_0x421360),this['_rescheduleHeartbeat'](_0x421360);}[_0x1ff7ba(0xd0)](_0x3efd2f){const _0x1fbb24=_0x1ff7ba;return[...this['_sessionChannels'][_0x1fbb24(0x186)]()]['some'](_0x102e23=>_0x102e23===_0x3efd2f);}[_0x1ff7ba(0xce)](_0x352ad3){const _0x19f560=_0x1ff7ba;let _0x2f114c=_0x352ad3??'',_0xde1bf0=this['_socketChannels'][_0x19f560(0x322)](_0x2f114c);if(_0xde1bf0)return _0xde1bf0;let _0x762c1={'endpointKey':_0x2f114c,'endpoint':_0x352ad3,'socket$':new _0x497921(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x19f560(0x129)](_0x2f114c,_0x762c1),_0x762c1;}['_rescheduleHeartbeat'](_0x173dbe){const _0x556af9=_0x1ff7ba;this[_0x556af9(0xab)](_0x173dbe),_0x173dbe[_0x556af9(0x351)]=setTimeout(()=>this['_sendHeartbeat'](_0x173dbe),this[_0x556af9(0x274)][_0x556af9(0xfe)](_0x556af9(0x20a))??0x7530);}['_sendHeartbeat'](_0x3809c3){const _0x3c2b21=_0x1ff7ba;_0x3809c3['socket$']['getValue']()['send']({'cmd':_0x1da9fa[_0x3c2b21(0x16c)]}),this['_waitForHeartbeatResponse'](_0x3809c3);}[_0x1ff7ba(0x203)](_0x27e9e1){const _0x1770f7=_0x1ff7ba;_0x27e9e1['timeoutTimer']=setTimeout(()=>this[_0x1770f7(0x265)](_0x27e9e1),this[_0x1770f7(0x274)][_0x1770f7(0xfe)](_0x1770f7(0x246))??0x4e20);}[_0x1ff7ba(0xab)](_0x1df864){const _0x5ad733=_0x1ff7ba;_0x1df864[_0x5ad733(0x351)]!=null&&(clearTimeout(_0x1df864[_0x5ad733(0x351)]),_0x1df864[_0x5ad733(0x351)]=null);}['_clearTimeoutTimer'](_0x486b76){const _0x1c38e8=_0x1ff7ba;_0x486b76['timeoutTimer']!=null&&(clearTimeout(_0x486b76[_0x1c38e8(0x12d)]),_0x486b76[_0x1c38e8(0x12d)]=null);}};In=H([V(0x0,_0x1bde49(_0x3737e0)),V(0x1,_0x43cd29),V(0x2,_0x3c20c1),V(0x3,An),V(0x4,_0x1bde49(B)),V(0x5,Nn),V(0x6,_0x549e28(Dn))],In);let Ln=class extends _0x416b62{constructor(_0xa61b0a,_0x35cb68,_0x3426b3,_0x5edf36){const _0xf71820=_0x1ff7ba;var _0x29abe2;super(),this['_injector']=_0xa61b0a,this[_0xf71820(0x33c)]=_0x35cb68,this[_0xf71820(0x274)]=_0x3426b3,this[_0xf71820(0x206)]=_0x5edf36,z(this,_0xf71820(0x1de),new Map()),z(this,_0xf71820(0x276),new _0x33b46e()),z(this,_0xf71820(0x2b6),this[_0xf71820(0x276)][_0xf71820(0xa1)]()),((_0x29abe2=this[_0xf71820(0x274)][_0xf71820(0xfe)](_0xf71820(0x31b)))==null?void 0x0:_0x29abe2[_0xf71820(0x26c)])!==!0x1&&this[_0xf71820(0x33e)]();}[_0x1ff7ba(0x1cd)](){const _0x96d44e=_0x1ff7ba;super[_0x96d44e(0x1cd)](),this[_0x96d44e(0x1de)][_0x96d44e(0x344)](_0x4253a1=>_0x4253a1[_0x96d44e(0x1cd)]()),this[_0x96d44e(0x1de)][_0x96d44e(0x17d)]();}[_0x1ff7ba(0x2b8)](_0x5a8f73){const _0x129bdc=_0x1ff7ba;return this[_0x129bdc(0x1de)][_0x129bdc(0x322)](_0x5a8f73)??null;}[_0x1ff7ba(0x18d)](_0x54836f){const _0x43a2ea=_0x1ff7ba;let _0x515d22=this[_0x43a2ea(0x2b8)](_0x54836f);return _0x515d22?_0x19d729(_0x515d22):this[_0x43a2ea(0x276)][_0x43a2ea(0x29b)](_0x49be3d(_0x500483=>_0x500483['unitID']===_0x54836f));}[_0x1ff7ba(0x12b)](_0x31dbf9){const _0x12fffa=_0x1ff7ba;return _0xea43a(this[_0x12fffa(0x18d)](_0x31dbf9)[_0x12fffa(0x29b)](_0x5e569a(()=>void 0x0)));}['_init'](){const _0x5045cc=_0x1ff7ba;this[_0x5045cc(0x206)][_0x5045cc(0x298)](_0x213837[_0x5045cc(0x1fc)])[_0x5045cc(0x29b)](_0x4c37d2(this[_0x5045cc(0x2c1)]),_0x4b5953(0x10))[_0x5045cc(0x1ec)](async _0x1e11b2=>{const _0x468652=_0x5045cc;let _0x1fb99c=_0x1e11b2[_0x468652(0x34d)][_0x468652(0xcd)](),_0x78aae2=await this[_0x468652(0x2e0)](_0x1fb99c,_0x213837[_0x468652(0x1fc)]);this['_entities'][_0x468652(0x129)](_0x1fb99c,_0x78aae2);}),this[_0x5045cc(0x206)]['getTypeOfUnitAdded$'](_0x213837[_0x5045cc(0x1a8)])['pipe'](_0x4c37d2(this[_0x5045cc(0x2c1)]),_0x4b5953(0x10))[_0x5045cc(0x29b)](_0x49be3d(_0x504422=>!_0x504422[_0x5045cc(0x34d)][_0x5045cc(0xcd)]()[_0x5045cc(0x255)]('__')))[_0x5045cc(0x1ec)](async _0x4630ee=>{const _0x205759=_0x5045cc;let _0xd83409=_0x4630ee[_0x205759(0x34d)][_0x205759(0xcd)](),_0x24f832=await this[_0x205759(0x2e0)](_0xd83409,_0x213837[_0x205759(0x1a8)]);this[_0x205759(0x1de)][_0x205759(0x129)](_0xd83409,_0x24f832);}),this[_0x5045cc(0x206)][_0x5045cc(0x298)](_0x213837[_0x5045cc(0xfd)])[_0x5045cc(0x29b)](_0x4c37d2(this[_0x5045cc(0x2c1)]),_0x4b5953(0x10))[_0x5045cc(0x1ec)](async _0x2980c3=>{const _0x3c01ff=_0x5045cc;let _0x558d3f=_0x2980c3[_0x3c01ff(0x34d)][_0x3c01ff(0xcd)](),_0x3354dc=await this[_0x3c01ff(0x2e0)](_0x558d3f,_0x213837['UNIVER_SLIDE']);this['_entities'][_0x3c01ff(0x129)](_0x558d3f,_0x3354dc);}),this[_0x5045cc(0x206)][_0x5045cc(0x298)](_0x213837[_0x5045cc(0x85)])[_0x5045cc(0x29b)](_0x4c37d2(this[_0x5045cc(0x2c1)]),_0x4b5953(0x10))[_0x5045cc(0x1ec)](async _0x2dcb7b=>{const _0x22a043=_0x5045cc;let _0x5b99d9=_0x2dcb7b[_0x22a043(0x34d)][_0x22a043(0xcd)](),_0x1bcb56=await this['_startCollaboration'](_0x5b99d9,_0x213837[_0x22a043(0x85)]);this[_0x22a043(0x1de)][_0x22a043(0x129)](_0x5b99d9,_0x1bcb56);}),this[_0x5045cc(0x206)][_0x5045cc(0x298)](_0x213837[_0x5045cc(0x126)])['pipe'](_0x4c37d2(this['dispose$']),_0x4b5953(0x10))[_0x5045cc(0x1ec)](async _0x405360=>{const _0x15318e=_0x5045cc;let _0x553530=_0x405360[_0x15318e(0x34d)]['getUnitId'](),_0x4069d1=await this[_0x15318e(0x2e0)](_0x553530,_0x213837[_0x15318e(0x126)]);this[_0x15318e(0x1de)][_0x15318e(0x129)](_0x553530,_0x4069d1);}),this['_univerInstanceService'][_0x5045cc(0x298)](_0x213837[_0x5045cc(0x2ad)])[_0x5045cc(0x29b)](_0x4c37d2(this[_0x5045cc(0x2c1)]),_0x4b5953(0x10))['subscribe'](async _0x1a8e3a=>{const _0x9ab95c=_0x5045cc;let _0x57f946=_0x1a8e3a[_0x9ab95c(0x34d)]['getUnitId'](),_0x248863=await this[_0x9ab95c(0x2e0)](_0x57f946,_0x213837[_0x9ab95c(0x2ad)]);this['_entities']['set'](_0x57f946,_0x248863);}),_0x3ac559(this[_0x5045cc(0x206)][_0x5045cc(0x1ea)](_0x213837[_0x5045cc(0x1fc)]),this[_0x5045cc(0x206)][_0x5045cc(0x1ea)](_0x213837[_0x5045cc(0x1a8)]),this[_0x5045cc(0x206)][_0x5045cc(0x1ea)](_0x213837[_0x5045cc(0xfd)]),this[_0x5045cc(0x206)][_0x5045cc(0x1ea)](_0x213837[_0x5045cc(0x85)]),this[_0x5045cc(0x206)][_0x5045cc(0x1ea)](_0x213837[_0x5045cc(0x126)]),this[_0x5045cc(0x206)][_0x5045cc(0x1ea)](_0x213837['UNIVER_PDF']))[_0x5045cc(0x29b)](_0x4c37d2(this['dispose$']))['subscribe'](_0xf9896f=>{const _0xb798d9=_0x5045cc;let _0x413e81=_0xf9896f[_0xb798d9(0xcd)](),_0x4fb4ea=this[_0xb798d9(0x1de)][_0xb798d9(0x322)](_0x413e81);_0x4fb4ea&&(_0x4fb4ea[_0xb798d9(0x1cd)](),this[_0xb798d9(0x1de)][_0xb798d9(0x234)](_0x413e81));});}async[_0x1ff7ba(0x2e0)](_0x147959,_0x241cbb){const _0x4c90c4=_0x1ff7ba;let _0x15744d=await this[_0x4c90c4(0x33c)][_0x4c90c4(0x2cf)](_0x147959),_0x144aa5=this[_0x4c90c4(0xbe)][_0x4c90c4(0x16b)](this[_0x4c90c4(0x2fd)](_0x241cbb),_0x147959,_0x241cbb,_0x15744d);return await _0x144aa5['init'](),this[_0x4c90c4(0x276)][_0x4c90c4(0x14c)](_0x144aa5),_0x144aa5;}[_0x1ff7ba(0x2fd)](_0x4746fc){const _0x5d9b86=_0x1ff7ba;switch(_0x4746fc){case _0x213837[_0x5d9b86(0x1a8)]:return xn;case _0x213837[_0x5d9b86(0x1fc)]:return Cn;case _0x213837['UNIVER_SLIDE']:return wn;case _0x213837['UNIVER_BOARD']:return Tn;case _0x213837[_0x5d9b86(0x126)]:return Sn;case _0x213837[_0x5d9b86(0x2ad)]:return En;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x4746fc);}}};Ln=H([V(0x0,_0x1bde49(_0x3737e0)),V(0x1,_0x1bde49(In)),V(0x2,_0x3c20c1),V(0x3,_0x47a807)],Ln);var Rn=_0x1ff7ba(0x1cb),zn=_0x1ff7ba(0x29d);let Bn=class extends _0x1dea33{constructor(_0x70c2a,_0x522ae2){const _0x1573c8=_0x1ff7ba;super(),this['_univerInstanceService']=_0x70c2a,this[_0x1573c8(0x274)]=_0x522ae2,this[_0x1573c8(0x33e)]();}[_0x1ff7ba(0x33e)](){const _0x2492f3=_0x1ff7ba;this['disposeWithMe'](this['_univerInstanceService'][_0x2492f3(0x32b)][_0x2492f3(0x1ec)](()=>{const _0x8c9162=_0x2492f3;let _0x490334=this[_0x8c9162(0x206)][_0x8c9162(0x2bc)](),_0x4e0d8f=this[_0x8c9162(0x274)]['getConfig'](_0x8c9162(0xde))??_0x8c9162(0x2af);_0x490334 instanceof _0x5d01ea&&(_0x4e0d8f=_0x490334[_0x8c9162(0x15a)]),document[_0x8c9162(0xea)]=_0x4e0d8f;}));}};Bn=H([V(0x0,_0x47a807),V(0x1,_0x3c20c1)],Bn);const Vn=_0x31cdc2(_0x1ff7ba(0x111));let Hn=class{constructor(_0x23fbdc,_0x4a5b73,_0x3e5d36){const _0x3fbbaf=_0x1ff7ba;this[_0x3fbbaf(0x88)]=_0x23fbdc,this[_0x3fbbaf(0x274)]=_0x4a5b73,this['_univerInstanceService']=_0x3e5d36;}['getUploadOptions'](){const _0x2f283f=_0x1ff7ba;return this[_0x2f283f(0x297)]()[_0x2f283f(0xf8)]??{};}async[_0x1ff7ba(0x291)](_0xabeb6b){const _0x28dcf7=_0x1ff7ba;let _0x3f2f30=this[_0x28dcf7(0x32f)]();if(Un(_0xabeb6b,_0x3f2f30),_0x3f2f30[_0x28dcf7(0x1c4)])return _0x3f2f30[_0x28dcf7(0x1c4)](_0xabeb6b);let _0x512bf0=await this[_0x28dcf7(0x1a0)](_0xabeb6b);return{'id':_0x512bf0,'name':_0xabeb6b[_0x28dcf7(0x15a)],'mimeType':_0xabeb6b['type'],'size':_0xabeb6b['size'],'sourceType':_0x53c3ba[_0x28dcf7(0x21f)],'source':_0x512bf0};}async[_0x1ff7ba(0x2ba)](_0x912771,_0x4803de){const _0x38bf3e=_0x1ff7ba;if(_0x4803de!==_0x53c3ba[_0x38bf3e(0x21f)])return _0x912771;let _0x2d7ff3=(await this[_0x38bf3e(0x88)][_0x38bf3e(0x322)](this['_getSignURL']()[_0x38bf3e(0x216)](_0x38bf3e(0x97),_0x912771)))[_0x38bf3e(0x15d)];if(_0x2d7ff3[_0x38bf3e(0xdd)]&&_0x2d7ff3['error'][_0x38bf3e(0x16e)]!==_0x2e842d['OK'])throw _0x2d7ff3[_0x38bf3e(0xdd)];if(!_0x2d7ff3[_0x38bf3e(0x2d7)])throw Error(_0x38bf3e(0x2cb));return _0x359b88(_0x2d7ff3['url'],this[_0x38bf3e(0x1f7)]());}async[_0x1ff7ba(0x1a0)](_0x25e2c0){const _0x1eb5eb=_0x1ff7ba;let _0x488b01=this['_univerInstanceService'][_0x1eb5eb(0x2bc)](),_0x362602=_0x488b01==null?void 0x0:_0x488b01[_0x1eb5eb(0xcd)]();if(!_0x362602)throw Error(_0x1eb5eb(0x159));let _0xe52f44=new FormData();_0xe52f44[_0x1eb5eb(0x22a)]('file',_0x25e2c0);let _0x5a34ff=this['_getUploadFileURL']()+_0x1eb5eb(0x18b)+_0x25e2c0[_0x1eb5eb(0x240)]['toString']()+_0x1eb5eb(0x15c)+_0x355a84[_0x1eb5eb(0x253)]+_0x1eb5eb(0x1ee)+encodeURIComponent(_0x362602),_0x670483=(await this['_httpService'][_0x1eb5eb(0x275)](_0x5a34ff,{'body':_0xe52f44}))[_0x1eb5eb(0x15d)][_0x1eb5eb(0x325)];if(typeof _0x670483!='string'||!_0x670483)throw Error(_0x1eb5eb(0x22f));return _0x670483;}[_0x1ff7ba(0x2a9)](){const _0x596c2c=_0x1ff7ba;return this[_0x596c2c(0x297)]()['uploadFileServerUrl']??_0x596c2c(0x329);}[_0x1ff7ba(0x2ec)](){const _0x1a71ee=_0x1ff7ba;return this[_0x1a71ee(0x297)]()[_0x1a71ee(0x161)]??'/universer-api/file/{fileID}/sign-url';}['_getDownloadEndpointURL'](){const _0x22f790=_0x1ff7ba;let _0x571469=this[_0x22f790(0x297)]();return _0x571469[_0x22f790(0x9e)]?_0x571469[_0x22f790(0x9e)]:typeof location<'u'?location[_0x22f790(0x12f)]:_0x571469['uploadFileServerUrl']??'';}['_getConfig'](){const _0x54d5e0=_0x1ff7ba;return this[_0x54d5e0(0x274)][_0x54d5e0(0xfe)]('collaboration-client.config')??{};}};Hn=H([V(0x0,_0x1bde49(_0x1ff29e)),V(0x1,_0x1bde49(_0x3c20c1)),V(0x2,_0x1bde49(_0x47a807))],Hn);function Un(_0x131836,_0x31f9f0){const _0x23d951=_0x1ff7ba;var _0x34196c;if(_0x31f9f0[_0x23d951(0xa2)]!=null&&_0x131836[_0x23d951(0x240)]>_0x31f9f0[_0x23d951(0xa2)])throw Error(_0x23d951(0x1b5));if((_0x34196c=_0x31f9f0[_0x23d951(0x28a)])!=null&&_0x34196c[_0x23d951(0x256)]&&!_0x31f9f0[_0x23d951(0x28a)][_0x23d951(0x14a)](_0x3ec596=>_0x131836[_0x23d951(0x301)]===_0x3ec596||_0x131836[_0x23d951(0x15a)][_0x23d951(0x261)](_0x3ec596)||_0x3ec596[_0x23d951(0x261)]('/*')&&_0x131836[_0x23d951(0x301)][_0x23d951(0x255)](_0x3ec596[_0x23d951(0x1b1)](0x0,-0x1))))throw Error(_0x23d951(0x1c0));}let Wn=class{constructor(_0x515e31,_0x54593d,_0x55a960){const _0x56db23=_0x1ff7ba;this[_0x56db23(0x274)]=_0x515e31,this['_httpService']=_0x54593d,this['localeService']=_0x55a960,this[_0x56db23(0x28d)]();}[_0x1ff7ba(0x28d)](){const _0x11aa52=_0x1ff7ba;this['_httpService'][_0x11aa52(0x172)]({'priority':0x1,'interceptor':(_0x5efcb5,_0x50005d)=>_0x50005d(_0x5efcb5)[_0x11aa52(0x29b)](_0x5e2b3d(async _0x10d3c7=>{const _0x194f03=_0x11aa52;let _0x55895c=_0x10d3c7;if(_0x55895c[_0x194f03(0x1e4)]===0x191){if(typeof window>'u')throw Error(_0x194f03(0x114));if(window[_0x194f03(0x34e)](this[_0x194f03(0xf2)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x510cc1=window[_0x194f03(0x24d)](window[_0x194f03(0x2a5)][_0x194f03(0x19f)]);window[_0x194f03(0x2a5)]['href']=this[_0x194f03(0x197)]()+'?url='+_0x510cc1;}}return _0x55895c;}))});}[_0x1ff7ba(0x197)](){const _0x5eb3f6=_0x1ff7ba;let _0x975f8b=this[_0x5eb3f6(0x274)]['getConfig'](R);return(_0x975f8b==null?void 0x0:_0x975f8b['loginUrlKey'])??_0x5eb3f6(0x13f);}};Wn=H([V(0x0,_0x3c20c1),V(0x1,_0x1bde49(_0x1ff29e)),V(0x2,_0x1bde49(_0xa6f03e))],Wn);let Gn=class extends _0x1dea33{constructor(_0x264cef,_0x55d69e){const _0x498b9e=_0x1ff7ba;super(),this[_0x498b9e(0x30f)]=_0x264cef,this[_0x498b9e(0x274)]=_0x55d69e,z(this,'_cfgEnableObjInherit',!0x1),this[_0x498b9e(0x1dd)]();}[_0x1ff7ba(0x1dd)](){const _0x1110da=_0x1ff7ba;let _0x1ef80a=this;this['disposeWithMe'](this[_0x1110da(0x30f)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x52aba5({'isMatch'(_0x58d10e){const _0x1309e8=_0x1110da;var _0x5071c8;if(_0x58d10e[_0x1309e8(0x306)]==='POST'&&(_0x5071c8=_0x58d10e[_0x1309e8(0x21d)])!=null&&_0x5071c8['body']){let {objectID:_0xd11ef,objectType:_0x5f23f4}=_0x58d10e['requestParams'][_0x1309e8(0x15d)]||{};if(!_0xd11ef||_0x5f23f4===void 0x0)return!0x1;let _0x18baa1=_0x1ef80a[_0x1309e8(0x1b3)]()+'/'+_0x5f23f4+_0x1309e8(0xb6)+encodeURIComponent(_0xd11ef)+_0x1309e8(0x142);if(_0x58d10e[_0x1309e8(0x2d7)]===_0x18baa1)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1c0926){const _0x5a78e7=_0x1110da;var _0xd1b14c;return(_0xd1b14c=_0x1c0926[_0x5a78e7(0x21d)])==null?void 0x0:_0xd1b14c[_0x5a78e7(0x15d)];},'mergeParamsToRequest'(_0x275a98,_0x3d9aaf){const _0x1d794d=_0x1110da;let _0x49055a=_0x1ef80a[_0x1d794d(0x1b3)]()+_0x1d794d(0x2a2),_0x21d6ff=_0x275a98[_0x1d794d(0x28c)]((_0x4a930e,_0x45a864)=>{const _0x32a191=_0x1d794d;let {unitID:_0x50dc79,objectID:_0x4c6ed8,objectType:_0x2cf6d2,actions:_0x2485ec}=_0x45a864;return _0x4a930e[_0x50dc79]||(_0x4a930e[_0x50dc79]=Object[_0x32a191(0x1ab)](null)),_0x4a930e[_0x50dc79][_0x4c6ed8]||(_0x4a930e[_0x50dc79][_0x4c6ed8]={'objectID':_0x4c6ed8,'objectType':_0x2cf6d2,'actions':[]}),_0x4a930e[_0x50dc79][_0x4c6ed8]['actions'][_0x32a191(0x1ce)](..._0x2485ec),_0x4a930e;},Object[_0x1d794d(0x1ab)](null)),_0x25b5fb=[];for(let _0x52cbe0 in _0x21d6ff)for(let _0x4241a7 in _0x21d6ff[_0x52cbe0]){let {actions:_0x5047b9,objectType:_0x2967a5}=_0x21d6ff[_0x52cbe0][_0x4241a7],_0x301102=[...new Set(_0x5047b9)];_0x25b5fb[_0x1d794d(0x1ce)]({'unitID':_0x52cbe0,'objectID':_0x4241a7,'objectType':_0x2967a5,'actions':_0x301102});}return new _0x3addd7(_0x1d794d(0x33f),_0x49055a,{'headers':_0x3d9aaf['headers'],'withCredentials':_0x3d9aaf[_0x1d794d(0x2e9)],'responseType':_0x3d9aaf[_0x1d794d(0xd1)],'body':{'requests':_0x25b5fb}});}},{'distributeResult'(_0x4dc129,_0x20e46e){let {objectActions:_0x4a061d}=_0x4dc129;return _0x20e46e['map'](_0x3c3205=>{const _0x5238ee=_0x455c;let {unitID:_0x6f80a6,objectID:_0x105326,actions:_0x2c8e3c}=_0x3c3205,_0x3e9951=_0x4a061d[_0x5238ee(0xf1)](_0x54e31f=>_0x54e31f['unitID']===_0x6f80a6&&_0x54e31f['objectID']===_0x105326);return{'config':_0x3c3205,'result':{'actions':_0x2c8e3c[_0x5238ee(0x8f)](_0x37d6ee=>_0x3e9951==null?void 0x0:_0x3e9951[_0x5238ee(0x2a8)]['find'](_0xa975fa=>_0xa975fa[_0x5238ee(0x19d)]===_0x37d6ee))[_0x5238ee(0x152)](_0x34b5e3=>!!_0x34b5e3),'error':_0x4dc129[_0x5238ee(0xdd)]}};});}})}));}['_getAPIPrefixPath'](){const _0x324aef=_0x1ff7ba;let _0x304851=this['_configService']['getConfig'](R);return(_0x304851==null?void 0x0:_0x304851[_0x324aef(0x2db)])??_0x324aef(0xcb);}async[_0x1ff7ba(0x1ab)](_0x3807c8){const _0x453591=_0x1ff7ba;let _0x402bd8=this[_0x453591(0x1b3)]()+'/'+_0x3807c8['objectType']+_0x453591(0x2c2);return(await this[_0x453591(0x30f)][_0x453591(0x275)](_0x402bd8,{'body':_0x3807c8}))[_0x453591(0x15d)][_0x453591(0x2a7)]||'';}async[_0x1ff7ba(0x147)](_0x2297b7){const _0x5bd5ee=_0x1ff7ba;let _0x492ca5=this['_getAPIPrefixPath']()+_0x5bd5ee(0x2c4);return(await this[_0x5bd5ee(0x30f)][_0x5bd5ee(0x275)](_0x492ca5,{'body':_0x2297b7}))[_0x5bd5ee(0x15d)][_0x5bd5ee(0x17f)];}async[_0x1ff7ba(0x26b)](_0x134f6a){const _0xd5d0f7=_0x1ff7ba;var _0x196943;let _0x424f79=this[_0xd5d0f7(0x1b3)]()+'/'+_0x134f6a[_0xd5d0f7(0x17b)]+_0xd5d0f7(0xb6)+encodeURIComponent(_0x134f6a[_0xd5d0f7(0x2a7)]),_0x3f6bbc=await this['_HTTPService'][_0xd5d0f7(0x2e7)](_0x424f79,{'body':_0x134f6a});if((_0x3f6bbc==null||(_0x196943=_0x3f6bbc['body'])==null||(_0x196943=_0x196943[_0xd5d0f7(0xdd)])==null?void 0x0:_0x196943['code'])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x1ff7ba(0xfb)](_0x40d58f){const _0x58980b=_0x1ff7ba;let _0x6d10f8=this[_0x58980b(0x1b3)]()+'/'+_0x40d58f[_0x58980b(0x17b)]+'/object/'+encodeURIComponent(_0x40d58f[_0x58980b(0x2a7)])+_0x58980b(0x142);return(await this[_0x58980b(0x30f)][_0x58980b(0x275)](_0x6d10f8,{'body':_0x40d58f}))[_0x58980b(0x15d)][_0x58980b(0x2a8)];}async[_0x1ff7ba(0x314)](_0x258137){const _0x14e19a=_0x1ff7ba;let _0x459a86=this[_0x14e19a(0x1b3)]()+'/-/object/-/batch_allowed';return(await this[_0x14e19a(0x30f)][_0x14e19a(0x275)](_0x459a86,{'body':{'requests':_0x258137}}))[_0x14e19a(0x15d)][_0x14e19a(0x2e2)];}async[_0x1ff7ba(0x110)](_0x5b9cf7){const _0x4840d8=_0x1ff7ba;let _0x8b23ce=this[_0x4840d8(0x1b3)]()+'/'+_0x5b9cf7['objectType']+_0x4840d8(0x2a0),_0x2cc39b=await this[_0x4840d8(0x30f)][_0x4840d8(0x275)](_0x8b23ce,{'body':_0x5b9cf7});return{'roles':_0x2cc39b[_0x4840d8(0x15d)][_0x4840d8(0x105)],'actions':_0x2cc39b[_0x4840d8(0x15d)]['actions']};}async['deleteCollaborator'](_0x39b2bc){const _0x17102c=_0x1ff7ba;let _0x4fea54=this[_0x17102c(0x1b3)]()+_0x17102c(0x163);await this[_0x17102c(0x30f)]['delete'](_0x4fea54,{'params':{'collaboratorID':_0x39b2bc[_0x17102c(0x32c)],'objectID':_0x39b2bc[_0x17102c(0x2a7)],'unitID':_0x39b2bc[_0x17102c(0x1a1)]}});}async[_0x1ff7ba(0xe8)](_0x3fb5f0){const _0x25a71d=_0x1ff7ba;let _0x5629f5=this[_0x25a71d(0x1b3)]()+'/collaborator';await this['_HTTPService']['patch'](_0x5629f5,{'body':_0x3fb5f0});}async[_0x1ff7ba(0x2f8)](_0x50855d){const _0x3dd468=_0x1ff7ba;let _0x5e4137=this[_0x3dd468(0x1b3)]()+_0x3dd468(0x163);await this[_0x3dd468(0x30f)][_0x3dd468(0x275)](_0x5e4137,{'body':_0x50855d});}async['listCollaborators'](_0x223197){const _0xe98a2d=_0x1ff7ba;let _0x492b1e=this[_0xe98a2d(0x1b3)]()+_0xe98a2d(0x163),_0x56e49c=await this['_HTTPService'][_0xe98a2d(0x322)](_0x492b1e,{'params':{'objectID':_0x223197[_0xe98a2d(0x2a7)],'unitID':_0x223197[_0xe98a2d(0x1a1)]}});return this['setCfgEnableObjInherit'](_0x56e49c['body'][_0xe98a2d(0x16f)]??!0x1),_0x56e49c['body']['collaborators'];}async[_0x1ff7ba(0x18c)](_0x2a51cb){const _0x5a73a8=_0x1ff7ba;let _0x307a73=this['_getAPIPrefixPath']()+_0x5a73a8(0x163);await this[_0x5a73a8(0x30f)][_0x5a73a8(0x2e7)](_0x307a73,{'body':_0x2a51cb});}[_0x1ff7ba(0x1bc)](_0x309791){this['_cfgEnableObjInherit']=_0x309791;}[_0x1ff7ba(0x11b)](){const _0x51205e=_0x1ff7ba;return this[_0x51205e(0xcc)];}};Gn=H([V(0x0,_0x1bde49(_0x1ff29e)),V(0x1,_0x1bde49(_0x3c20c1))],Gn);function Kn(_0x7e0a69){const _0x553f15=_0x1ff7ba;let _0x35c9ec=atob(_0x7e0a69),_0x4b3dc7=new Uint8Array(_0x35c9ec[_0x553f15(0x256)]);for(let _0x25e03f=0x0;_0x25e03f<_0x35c9ec[_0x553f15(0x256)];_0x25e03f++)_0x4b3dc7[_0x25e03f]=_0x35c9ec['charCodeAt'](_0x25e03f);return _0x4b3dc7;}function qn(_0x4c6488){const _0x137550=_0x1ff7ba;let _0xd2853d='';for(let _0x525540=0x0;_0x525540<_0x4c6488[_0x137550(0x256)];_0x525540++)_0xd2853d+=String[_0x137550(0x219)](_0x4c6488[_0x525540]);return btoa(_0xd2853d);}function Jn(_0x29608b,_0x24f273){const _0x289643=_0x1ff7ba;let _0x3d392d=Kn(_0x24f273),_0x437a0f=_0x1dbbe5(0x10),_0x58df82=_0x38617b(_0x3d392d,_0x437a0f)[_0x289643(0x1b0)](_0xcc9922(_0x29608b));return qn(_0x17cc2c(_0x437a0f,_0x58df82));}function Yn(){const _0x40be60=_0x1ff7ba;let _0x55f0d4=_0x10644d()[_0x40be60(0x232)];if(typeof window<'u'&&window[_0x40be60(0x2a5)]!==void 0x0&&_0x55f0d4){let _0x1f1eb7={'time':Math[_0x40be60(0x193)](Date[_0x40be60(0x249)]()/0x3e8),'domain':location[_0x40be60(0x100)]};return Jn(JSON[_0x40be60(0x18f)](_0x1f1eb7),_0x55f0d4);}}let Xn=class{constructor(_0xd1b678){const _0x6ba311=_0x1ff7ba;this[_0x6ba311(0x88)]=_0xd1b678,this['_initRequestHeader']();}[_0x1ff7ba(0x26f)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x318f72,_0x48c913)=>{const _0x3e9ddd=_0x455c;let _0x10bb48=Yn();return _0x10bb48&&_0x318f72[_0x3e9ddd(0xf0)][_0x3e9ddd(0x129)](_0x3e9ddd(0x2a1),_0x10bb48),_0x48c913(_0x318f72);}});}};Xn=H([V(0x0,_0x1bde49(_0x1ff29e))],Xn);let Zn=class extends _0x416b62{constructor(_0x26eda0,_0x285853,_0xcef57a){const _0xfa850a=_0x1ff7ba;super(),this[_0xfa850a(0x19a)]=_0x26eda0,this[_0xfa850a(0x24b)]=_0x285853,this[_0xfa850a(0x10c)]=_0xcef57a,z(this,_0xfa850a(0x113),new _0x497921(null)),z(this,_0xfa850a(0xe6),new _0x33b46e()),z(this,_0xfa850a(0x319),this[_0xfa850a(0x113)][_0xfa850a(0xa1)]()),z(this,'unitLoaded$',this[_0xfa850a(0xe6)][_0xfa850a(0xa1)]());}[_0x1ff7ba(0x1cd)](){const _0x56e828=_0x1ff7ba;super[_0x56e828(0x1cd)](),this[_0x56e828(0xe6)]['complete'](),this['_unitInfo$'][_0x56e828(0x220)]();}async[_0x1ff7ba(0xb1)](_0x446386,_0x4db15d,_0x3c97e4,_0x50b234){const _0x2aa0ec=_0x1ff7ba;this[_0x2aa0ec(0x113)]['next']({'unitId':_0x446386,'type':_0x4db15d,'subUnitId':_0x50b234});let _0x415ce7=null;switch(_0x4db15d){case _0x213837[_0x2aa0ec(0x1fc)]:_0x415ce7=await this[_0x2aa0ec(0x24b)][_0x2aa0ec(0x1e1)](_0x446386,_0x3c97e4,void 0x0,{'initialSubUnitId':_0x50b234});break;case _0x213837['UNIVER_DOC']:_0x415ce7=await this['_snapshotService'][_0x2aa0ec(0x2d9)](_0x446386,_0x3c97e4);break;case _0x213837[_0x2aa0ec(0xfd)]:_0x415ce7=await this[_0x2aa0ec(0x24b)]['loadSlide'](_0x446386,_0x3c97e4);break;case _0x213837['UNIVER_BOARD']:_0x415ce7=await this[_0x2aa0ec(0x24b)][_0x2aa0ec(0x286)](_0x446386,_0x3c97e4);break;case _0x213837[_0x2aa0ec(0x126)]:_0x415ce7=await this[_0x2aa0ec(0x24b)]['loadBase'](_0x446386,_0x3c97e4);break;case _0x213837[_0x2aa0ec(0x2ad)]:_0x415ce7=await this[_0x2aa0ec(0x24b)][_0x2aa0ec(0x209)](_0x446386,_0x3c97e4);break;default:this[_0x2aa0ec(0x19a)][_0x2aa0ec(0xdd)](_0x2aa0ec(0x310),_0x2aa0ec(0x91));}return _0x415ce7&&this[_0x2aa0ec(0xe6)]['next'](_0x415ce7),_0x415ce7;}async['loadUnit'](_0x2ba2be,_0x2bf6fe,_0x442fd1){const _0x40d092=_0x1ff7ba;var _0x3d9744;this['_unitInfo$'][_0x40d092(0x14c)]({'unitId':_0x2ba2be,'type':_0x2bf6fe,'subUnitId':_0x442fd1});let _0xa5d9fd=0x0,_0x525446=await((_0x3d9744=this[_0x40d092(0x10c)])==null?void 0x0:_0x3d9744[_0x40d092(0x34b)](_0x2ba2be));return _0x525446&&(_0x525446[_0x40d092(0x131)]||_0x525446[_0x40d092(0x2be)]['length']!==0x0)&&(_0xa5d9fd=_0x525446[_0x40d092(0x330)]),_0xa5d9fd===0x0&&this[_0x40d092(0x19a)][_0x40d092(0x174)](_0x40d092(0x310),_0x40d092(0x22c)),this[_0x40d092(0xb1)](_0x2ba2be,_0x2bf6fe,_0xa5d9fd,_0x442fd1);}};Zn=H([V(0x0,_0x43cd29),V(0x1,_0x1bde49(_0x595abe)),V(0x2,_0x549e28(U))],Zn);let Qn=class{constructor(_0x53db53,_0x5d71b5,_0x3405f9){const _0x3c5151=_0x1ff7ba;this[_0x3c5151(0x88)]=_0x53db53,this[_0x3c5151(0x274)]=_0x5d71b5,this['_univerInstanceService']=_0x3405f9,z(this,_0x3c5151(0x281),0x0),z(this,_0x3c5151(0x156),new _0x33b46e()),z(this,'change$',this['_change$']),z(this,_0x3c5151(0xb0),new Map());}['setWaitCount'](_0x3d6ab2){const _0x5f0565=_0x1ff7ba;this[_0x5f0565(0x281)]=_0x3d6ab2,this[_0x5f0565(0x156)]['next'](_0x3d6ab2);}['getImageSourceCache'](_0x3bf6af,_0x47f23d){const _0x3dbe3c=_0x1ff7ba;if(_0x47f23d===_0x53c3ba[_0x3dbe3c(0x278)]){let _0x41c1c8=new Image();return _0x41c1c8[_0x3dbe3c(0x1c3)]=_0x3bf6af,_0x41c1c8;}return this[_0x3dbe3c(0xb0)][_0x3dbe3c(0x322)](_0x3bf6af);}[_0x1ff7ba(0x2c6)](_0x1d0f37,_0x207d3b,_0x205a32){const _0x371d44=_0x1ff7ba;_0x207d3b!==_0x53c3ba['BASE64']&&_0x205a32!=null&&this[_0x371d44(0xb0)][_0x371d44(0x129)](_0x1d0f37,_0x205a32);}async[_0x1ff7ba(0x191)](_0x4b2b5e){const _0x3dab40=_0x1ff7ba;try{let _0x47862e=this[_0x3dab40(0xe9)](this[_0x3dab40(0x2ec)](),''+_0x4b2b5e),_0x1eff61=(await this['_httpService'][_0x3dab40(0x322)](_0x47862e))[_0x3dab40(0x15d)];if(_0x1eff61[_0x3dab40(0xdd)]&&_0x1eff61[_0x3dab40(0xdd)]['code']===_0x2e842d['OK']){let _0x90415c=_0x359b88(_0x1eff61[_0x3dab40(0x2d7)],this[_0x3dab40(0x1f7)]());return Promise[_0x3dab40(0x299)](_0x90415c);}return Promise[_0x3dab40(0x328)](_0x1eff61[_0x3dab40(0xdd)]);}catch(_0x2b1ea0){return Promise[_0x3dab40(0x328)](_0x2b1ea0);}}async[_0x1ff7ba(0xb5)](_0x1ffc74){const _0x20910d=_0x1ff7ba;let _0x38e765='';if(!_0x3b08f4[_0x20910d(0x1c9)](_0x1ffc74[_0x20910d(0x301)]))return this['_decreaseWaiting'](),Promise[_0x20910d(0x328)](Error(_0x4a45a8[_0x20910d(0x2da)]));if(_0x1ffc74[_0x20910d(0x240)]>_0x19e255())return this[_0x20910d(0x90)](),Promise[_0x20910d(0x328)](Error(_0x4a45a8[_0x20910d(0x25e)]));try{let _0x49b32c=new FormData();_0x49b32c[_0x20910d(0x22a)](_0x20910d(0x1e8),_0x1ffc74);let _0x1041a8=this[_0x20910d(0x206)]['getFocusedUnit'](),_0x3ae826=_0x1041a8==null?void 0x0:_0x1041a8['getUnitId']();if(!_0x3ae826)throw Error(_0x20910d(0x1fa));let _0x49c8fd=this[_0x20910d(0x2a9)]()+_0x20910d(0x18b)+_0x1ffc74[_0x20910d(0x240)]['toString']()+_0x20910d(0x15c)+_0x355a84[_0x20910d(0x253)]+'&assign='+encodeURIComponent(_0x3ae826),_0x56fce5={'body':_0x49b32c},_0x50ff68=(await this[_0x20910d(0x88)]['post'](_0x49c8fd,_0x56fce5))[_0x20910d(0x15d)];if(typeof _0x50ff68[_0x20910d(0x325)]!=_0x20910d(0x198))return this['_decreaseWaiting'](),Promise[_0x20910d(0x328)](Error(_0x4a45a8['ERROR_IMAGE']));_0x38e765=_0x50ff68[_0x20910d(0x325)];}catch{return this[_0x20910d(0x90)](),Promise[_0x20910d(0x328)](Error(_0x4a45a8[_0x20910d(0x138)]));}return new Promise((_0x50bd74,_0x173f9d)=>{const _0x47c136=_0x20910d;let _0x18472e=new FileReader();_0x18472e['readAsDataURL'](_0x1ffc74),_0x18472e[_0x47c136(0x1eb)]=_0x1eb05e=>{const _0x1a30c4=_0x47c136;var _0x44d0d8;let _0x4dee97=(_0x44d0d8=_0x1eb05e['target'])==null?void 0x0:_0x44d0d8[_0x1a30c4(0x14b)];if(_0x4dee97==null){this[_0x1a30c4(0x90)](),_0x173f9d(Error(_0x4a45a8[_0x1a30c4(0x138)]));return;}_0x50bd74({'imageId':_0x53467a(0x6),'imageSourceType':_0x53c3ba[_0x1a30c4(0x21f)],'source':_0x38e765,'base64Cache':_0x4dee97,'status':_0x4a45a8[_0x1a30c4(0x1e7)]}),this[_0x1a30c4(0x90)]();};});}[_0x1ff7ba(0x2a9)](){const _0x4efc00=_0x1ff7ba;let _0x2118be=this['_configService'][_0x4efc00(0xfe)](R);return(_0x2118be==null?void 0x0:_0x2118be['uploadFileServerUrl'])??_0x4efc00(0x329);}[_0x1ff7ba(0x2ec)](){const _0x5ce3a9=_0x1ff7ba;let _0x348a94=this[_0x5ce3a9(0x274)][_0x5ce3a9(0xfe)](R);return(_0x348a94==null?void 0x0:_0x348a94['signUrlServerUrl'])??_0x5ce3a9(0x244);}['_getDownloadEndpointURL'](){const _0xf35e4b=_0x1ff7ba;let _0x1f451f=this[_0xf35e4b(0x274)][_0xf35e4b(0xfe)](R);return(_0x1f451f==null?void 0x0:_0x1f451f['downloadEndpointUrl'])??location[_0xf35e4b(0x12f)];}['_replaceFileID'](_0x1ac3ab,_0x177b3f){const _0x56d23f=_0x1ff7ba;return _0x1ac3ab[_0x56d23f(0x216)]('{fileID}',_0x177b3f);}[_0x1ff7ba(0x90)](){const _0x49915b=_0x1ff7ba;--this[_0x49915b(0x281)],this[_0x49915b(0x156)][_0x49915b(0x14c)](this[_0x49915b(0x281)]);}};Qn=H([V(0x0,_0x1bde49(_0x1ff29e)),V(0x1,_0x3c20c1),V(0x2,_0x1bde49(_0x47a807))],Qn);let $n=class{constructor(_0x2373ea,_0x7573a3){const _0x308a64=_0x1ff7ba;this[_0x308a64(0x274)]=_0x2373ea,this[_0x308a64(0x30f)]=_0x7573a3;}[_0x1ff7ba(0x1b3)](){const _0x30be7f=_0x1ff7ba;let _0x1d3e41=this[_0x30be7f(0x274)][_0x30be7f(0xfe)](R);return(_0x1d3e41==null?void 0x0:_0x1d3e41[_0x30be7f(0x2db)])??'/universer-api/authz';}async[_0x1ff7ba(0x147)](_0x265be8){const _0x43b1ae=_0x1ff7ba;let _0xf2fbdd=this[_0x43b1ae(0x1b3)]()+_0x43b1ae(0x163);return{'list':[{'title':_0x43b1ae(0xc6),'mentions':(await this[_0x43b1ae(0x30f)]['get'](_0xf2fbdd,{'params':{'objectID':_0x265be8[_0x43b1ae(0x92)],'unitID':_0x265be8['unitId']}}))['body'][_0x43b1ae(0x282)][_0x43b1ae(0x8f)](_0xad60a5=>({'objectId':_0xad60a5['id'],'name':_0xad60a5[_0x43b1ae(0x1ed)][_0x43b1ae(0x15a)],'metadata':{'icon':_0xad60a5['subject']['avatar']},'label':_0xad60a5[_0x43b1ae(0x1ed)][_0x43b1ae(0x15a)],'objectType':_0x12720e[_0x43b1ae(0x17a)]})),'metadata':{},'type':_0x12720e[_0x43b1ae(0x17a)]}]};}};$n=H([V(0x0,_0x1bde49(_0x3c20c1)),V(0x1,_0x1bde49(_0x1ff29e))],$n);let er=class extends _0x416b62{constructor(_0x491670,_0x6f042d,_0x4c45dd,_0x1ba4c6,_0xd04515,_0x5901fe){const _0xe46752=_0x1ff7ba;super(),this[_0xe46752(0xbe)]=_0x491670,this[_0xe46752(0x206)]=_0x6f042d,this[_0xe46752(0x304)]=_0x4c45dd,this[_0xe46752(0xa9)]=_0x1ba4c6,this[_0xe46752(0x1b6)]=_0xd04515,this['_collaborationUIEventService']=_0x5901fe,z(this,_0xe46752(0x1be),new Set()),this[_0xe46752(0x107)](()=>this[_0xe46752(0x1be)][_0xe46752(0x17d)]()),this[_0xe46752(0x107)](tr(this[_0xe46752(0x206)])[_0xe46752(0x1ec)](({unitId:_0x6f2340})=>this[_0xe46752(0x1be)][_0xe46752(0x234)](_0x6f2340))),this['_initUnitPermissionChange'](),this[_0xe46752(0x270)](),[_0x213837['UNIVER_DOC'],_0x213837[_0xe46752(0xfd)],_0x213837[_0xe46752(0x126)],_0x213837['UNIVER_BOARD']]['forEach'](_0x4f5d6c=>{const _0x53a41d=_0xe46752;this['disposeWithMe'](this[_0x53a41d(0x206)][_0x53a41d(0x1ea)](_0x4f5d6c)[_0x53a41d(0x1ec)](_0x453ee5=>{const _0x574e08=_0x53a41d;this[_0x574e08(0x1be)][_0x574e08(0x2d8)](_0x453ee5[_0x574e08(0xcd)]()),this[_0x574e08(0xbe)][_0x574e08(0x322)](_0x3dfbcf)[_0x574e08(0x1b2)](_0x453ee5[_0x574e08(0xcd)]());}));});}[_0x1ff7ba(0x270)](){const _0x385f5c=_0x1ff7ba;let _0x1af50d=async(_0x156a25,_0x3561d5)=>{const _0x18a6a1=_0x455c;let _0x58ed2b=await this[_0x18a6a1(0x1b6)]['requireSession'](_0x156a25);this['_disposed']||this[_0x18a6a1(0x1be)]['has'](_0x156a25)||!this['_univerInstanceService'][_0x18a6a1(0x23e)](_0x156a25)||_0x58ed2b[_0x18a6a1(0x248)]['pipe'](_0x49be3d(_0x5a66ae=>_0x5a66ae[_0x18a6a1(0x108)]===_0x5a2b35[_0x18a6a1(0x1c8)]),_0x51067e(_0x3ac559(this[_0x18a6a1(0x2c1)],this[_0x18a6a1(0x206)][_0x18a6a1(0x337)]['pipe'](_0x49be3d(_0x535ab2=>_0x535ab2['getUnitId']()===_0x156a25)))))[_0x18a6a1(0x1ec)](_0x513d9e=>{const _0x355224=_0x18a6a1;let {reason:_0x304464}=_0x513d9e['data'];this[_0x355224(0x33a)][_0x355224(0x11c)]({'id':_0x355224(0x1a4),'data':_0x304464}),this[_0x355224(0x1be)][_0x355224(0x2d8)](_0x156a25),this[_0x355224(0xbe)][_0x355224(0x322)](_0x3dfbcf)[_0x355224(0x1b2)](_0x156a25);let _0x5a9640=nr(_0x3561d5);_0x5a9640!=null&&this[_0x355224(0x179)](_0x156a25,_0x5a9640,_0x405ca9[_0x355224(0x17e)],!0x1),this[_0x355224(0x1b6)][_0x355224(0x8a)](_0x156a25);});};tr(this[_0x385f5c(0x206)])[_0x385f5c(0x29b)](_0x49be3d(({unitId:_0x5df47d})=>!_0xb30d49(_0x5df47d)),_0x51067e(this[_0x385f5c(0x2c1)]))[_0x385f5c(0x1ec)](({type:_0x3f627c,unitId:_0x58e34b})=>{const _0x15025b=_0x385f5c;_0x1af50d(_0x58e34b,_0x3f627c)[_0x15025b(0xa0)](_0x11a582=>this['_injector'][_0x15025b(0x322)](_0x43cd29)['error'](_0x11a582));});}[_0x1ff7ba(0xac)](){const _0x7b0f93=_0x1ff7ba;let _0x3c4cfc=async(_0x55929f,_0x4006f7)=>{const _0xc1e4e1=_0x455c;let _0x38fa49=await this[_0xc1e4e1(0x1b6)][_0xc1e4e1(0x2cf)](_0x55929f);if(!(this[_0xc1e4e1(0x212)]||this[_0xc1e4e1(0x1be)][_0xc1e4e1(0x1d3)](_0x55929f)||!this[_0xc1e4e1(0x206)][_0xc1e4e1(0x23e)](_0x55929f))){if(_0x4006f7===_0x213837['UNIVER_SHEET']){let _0x2e8a81=this['_injector'][_0xc1e4e1(0x322)](_0xc33012);await _0x2e8a81['initWorkbookPermissionChange'](_0x55929f),_0x38fa49[_0xc1e4e1(0x248)][_0xc1e4e1(0x29b)](_0x49be3d(_0x545ab5=>_0x545ab5[_0xc1e4e1(0x108)]===_0x5a2b35[_0xc1e4e1(0xca)]),_0x51067e(_0x3ac559(this[_0xc1e4e1(0x2c1)],_0x38fa49[_0xc1e4e1(0x248)][_0xc1e4e1(0x29b)](_0x49be3d(_0x2674eb=>_0x2674eb['eventID']===_0x5a2b35[_0xc1e4e1(0x1c8)])),this[_0xc1e4e1(0x206)][_0xc1e4e1(0x337)][_0xc1e4e1(0x29b)](_0x49be3d(_0x472803=>_0x472803[_0xc1e4e1(0xcd)]()===_0x55929f)))))[_0xc1e4e1(0x1ec)](_0x253576=>{const _0x321829=_0xc1e4e1;let {objectId:_0x28205e}=_0x253576['data'];_0x28205e===_0x55929f?_0x2e8a81[_0x321829(0xae)](_0x55929f):_0x2e8a81[_0x321829(0x20c)](_0x55929f,_0x28205e);});return;}_0x38fa49[_0xc1e4e1(0x248)][_0xc1e4e1(0x29b)](_0x49be3d(_0x12c506=>_0x12c506[_0xc1e4e1(0x108)]===_0x5a2b35['UPDATE_PERMISSION_OBJ']),_0x51067e(_0x3ac559(this[_0xc1e4e1(0x2c1)],_0x38fa49['event$'][_0xc1e4e1(0x29b)](_0x49be3d(_0x1a4f15=>_0x1a4f15[_0xc1e4e1(0x108)]===_0x5a2b35[_0xc1e4e1(0x1c8)])),this[_0xc1e4e1(0x206)][_0xc1e4e1(0x337)][_0xc1e4e1(0x29b)](_0x49be3d(_0x261afa=>_0x261afa['getUnitId']()===_0x55929f)))))[_0xc1e4e1(0x1ec)](()=>{const _0x130d12=_0xc1e4e1;this[_0x130d12(0x195)](_0x55929f,_0x4006f7)['catch'](_0x1b33a0=>this[_0x130d12(0xbe)][_0x130d12(0x322)](_0x43cd29)['error'](_0x1b33a0));}),await this[_0xc1e4e1(0x195)](_0x55929f,_0x4006f7);}};tr(this[_0x7b0f93(0x206)])[_0x7b0f93(0x29b)](_0x49be3d(({unitId:_0x1fb323})=>!_0xb30d49(_0x1fb323)),_0x51067e(this[_0x7b0f93(0x2c1)]))['subscribe'](({type:_0x51c85e,unitId:_0xbbe779})=>{const _0x28fc5e=_0x7b0f93;_0x3c4cfc(_0xbbe779,_0x51c85e)[_0x28fc5e(0xa0)](_0x289442=>this[_0x28fc5e(0xbe)][_0x28fc5e(0x322)](_0x43cd29)[_0x28fc5e(0xdd)](_0x289442));});}async[_0x1ff7ba(0x195)](_0x8b41fd,_0x3f541a){const _0x94dc2f=_0x1ff7ba;let _0x39b75e=nr(_0x3f541a);if(_0x39b75e==null)return;let _0x380b6d=this[_0x94dc2f(0xbe)][_0x94dc2f(0x322)](_0x3dfbcf);if(_0x380b6d[_0x94dc2f(0xfa)]({'unitId':_0x8b41fd,'objectId':_0x8b41fd,'objectType':_0x39b75e})){await _0x380b6d[_0x94dc2f(0x1fd)](_0x8b41fd);return;}let _0x44d71a=this[_0x94dc2f(0x158)](_0x8b41fd,_0x39b75e);if(!_0x44d71a[_0x94dc2f(0x256)])return;let _0x3a1c52=await this['_authzIoService'][_0x94dc2f(0xfb)]({'objectID':_0x8b41fd,'objectType':_0x39b75e,'unitID':_0x8b41fd,'actions':_0x44d71a[_0x94dc2f(0x8f)](({action:_0x54a479})=>_0x54a479)});this[_0x94dc2f(0x212)]||this[_0x94dc2f(0x1be)][_0x94dc2f(0x1d3)](_0x8b41fd)||!this['_univerInstanceService'][_0x94dc2f(0x23e)](_0x8b41fd)||_0x3a1c52[_0x94dc2f(0x344)](_0x183c6f=>{const _0x41b8f3=_0x94dc2f;let _0x5debff=_0x183c6f['action'],_0x3da54c=_0x183c6f[_0x41b8f3(0xfb)];_0x5debff!=null&&_0x3da54c!=null&&_0x44d71a['filter'](_0x49d91c=>_0x49d91c[_0x41b8f3(0x19d)]===_0x5debff)['forEach'](_0x523789=>this[_0x41b8f3(0x304)][_0x41b8f3(0x229)](_0x523789['id'],_0x3da54c));});}['_getUnitPermissionPoints'](_0x577b24,_0x4b9f2c){const _0x4c9743=_0x1ff7ba;let _0xf6d1fc=[];return this[_0x4c9743(0x304)]['getAllPermissionPoint']()[_0x4c9743(0x344)]((_0x1bcfd9,_0x5e7f2c)=>{const _0x55ee95=_0x4c9743;_0x1bcfd9['subscribe'](_0x258c33=>{const _0x403920=_0x455c;_0x258c33['type']===_0x4b9f2c&&_0x403920(0x92)in _0x258c33&&_0x258c33[_0x403920(0x92)]===_0x577b24&&(!(_0x403920(0x173)in _0x258c33)||_0x258c33[_0x403920(0x173)]===_0x577b24)&&_0xf6d1fc[_0x403920(0x1ce)]({'id':_0x5e7f2c,'action':_0x258c33[_0x403920(0x1bd)]});})[_0x55ee95(0x26e)]();}),_0xf6d1fc;}['_updateUnitPermissionPoint'](_0x4d47a7,_0x295a54,_0x52dd1b,_0x4c53c6){const _0x50cb98=_0x1ff7ba;this[_0x50cb98(0x304)]['getAllPermissionPoint']()['forEach']((_0x2b897c,_0x5bc944)=>{const _0x472fba=_0x50cb98;let _0x3202a2=!0x1;_0x2b897c['subscribe'](_0x58d263=>{const _0x1b1ec6=_0x455c;_0x3202a2=_0x58d263[_0x1b1ec6(0x301)]===_0x295a54&&_0x58d263[_0x1b1ec6(0x1bd)]===_0x52dd1b&&'unitId'in _0x58d263&&_0x58d263['unitId']===_0x4d47a7&&(!(_0x1b1ec6(0x173)in _0x58d263)||_0x58d263[_0x1b1ec6(0x173)]===_0x4d47a7);})['unsubscribe'](),_0x3202a2&&this[_0x472fba(0x304)][_0x472fba(0x229)](_0x5bc944,_0x4c53c6);});}};er=H([V(0x0,_0x1bde49(_0x3737e0)),V(0x1,_0x47a807),V(0x2,_0x5e2701),V(0x3,_0x15e24c),V(0x4,_0x1bde49(In)),V(0x5,_0x1bde49(B))],er);function tr(_0x9f16b9){const _0x40e593=_0x1ff7ba;return _0x3ac559(...[_0x213837[_0x40e593(0x1fc)],_0x213837[_0x40e593(0x1a8)],_0x213837[_0x40e593(0xfd)],_0x213837[_0x40e593(0x85)],_0x213837[_0x40e593(0x126)]][_0x40e593(0x8f)](_0x4d5a1f=>_0x9f16b9[_0x40e593(0x298)](_0x4d5a1f)['pipe'](_0x5e569a(_0xcdffc6=>({'type':_0x4d5a1f,'unitId':_0xcdffc6[_0x40e593(0x34d)][_0x40e593(0xcd)]()})))));}function nr(_0x3c5dd3){const _0x3980df=_0x1ff7ba;switch(_0x3c5dd3){case _0x213837[_0x3980df(0x1fc)]:return _0x5eceb8[_0x3980df(0x236)];case _0x213837['UNIVER_DOC']:return _0x5eceb8[_0x3980df(0x124)];case _0x213837[_0x3980df(0xfd)]:return _0x5eceb8['Slide'];case _0x213837[_0x3980df(0x85)]:return _0x5eceb8[_0x3980df(0x1f6)];case _0x213837[_0x3980df(0x126)]:return _0x5eceb8[_0x3980df(0x285)];default:return;}}let rr=class{constructor(_0x3ce19b,_0x39ac03){const _0x211efb=_0x1ff7ba;this[_0x211efb(0x274)]=_0x3ce19b,this['_httpService']=_0x39ac03;}async[_0x1ff7ba(0x2a6)](_0x53e2a5,_0x4555ed){const _0x5a67d9=_0x1ff7ba;var _0x1d2682;let {unitID:_0x58c6c7,type:_0x19233c,revision:_0x5564cf=0x0}=_0x4555ed,_0x4cd666=this[_0x5a67d9(0xeb)]()+'/'+_0x19233c+'/unit/'+_0x58c6c7+_0x5a67d9(0x295)+_0x5564cf,_0xf0c5be=(await this['_httpService'][_0x5a67d9(0x322)](_0x4cd666))[_0x5a67d9(0x15d)],_0x16efd9=(_0x1d2682=_0xf0c5be[_0x5a67d9(0x2df)])==null?void 0x0:_0x1d2682[_0x5a67d9(0xbd)];if(_0x16efd9){let _0x4fca6b=_0x16efd9==null?void 0x0:_0x16efd9[_0x5a67d9(0x1d8)];_0x16efd9[_0x5a67d9(0x1d8)]=_0x354882[_0x5a67d9(0x169)](_0x2ac22b(_0x4fca6b)),Object['entries'](_0x16efd9[_0x5a67d9(0x1f8)])[_0x5a67d9(0x344)](([,_0x3cf34e])=>{const _0x59aa16=_0x5a67d9;let _0x3b77f3=_0x3cf34e[_0x59aa16(0x1d8)];_0x3cf34e['originalMeta']=_0x354882[_0x59aa16(0x169)](_0x2ac22b(_0x3b77f3));});}return _0xf0c5be;}async[_0x1ff7ba(0x288)](_0x14037d,_0x9080ef){const _0xb4e208=_0x1ff7ba;let {unitID:_0x44a2dc,type:_0x5d241a,blockID:_0x5827ff}=_0x9080ef,_0x1d6874=this[_0xb4e208(0x2d6)]()+'/'+_0x5d241a+'/unit/'+_0x44a2dc+'/block/'+_0x5827ff;return(await this[_0xb4e208(0x88)]['get'](_0x1d6874))[_0xb4e208(0x15d)];}async['getDeserializedSheetBlock'](_0x3c26d5,_0xc7a6f7){const _0x2aa718=_0x1ff7ba;let {unitID:_0x1cba2c,type:_0x6a50cf,blockID:_0x42cf26}=_0xc7a6f7,_0x53a72a=this[_0x2aa718(0x2d6)]()+_0x2aa718(0x350)+_0x6a50cf+'/unit/'+_0x1cba2c+'/block/'+_0x42cf26;return(await this['_httpService'][_0x2aa718(0x322)](_0x53a72a))[_0x2aa718(0x15d)];}async[_0x1ff7ba(0xd8)](_0x165cd6,_0x479050){const _0x48bceb=_0x1ff7ba;let {unitID:_0x2b4d33,type:_0x12c504,from:_0x34a0fb,to:_0x14e250}=_0x479050,_0x4a6e38=this['_getAPIPrefix']()+'/'+_0x12c504+_0x48bceb(0x13a)+_0x2b4d33+_0x48bceb(0x1c2)+_0x34a0fb+_0x48bceb(0xed)+_0x14e250;return(await this[_0x48bceb(0x88)][_0x48bceb(0x322)](_0x4a6e38))[_0x48bceb(0x15d)];}[_0x1ff7ba(0xeb)](){const _0x3b9574=_0x1ff7ba;return this[_0x3b9574(0x274)][_0x3b9574(0xfe)]('SNAPSHOT_URL_KEY')??this['_getAPIPrefix']();}[_0x1ff7ba(0x2d6)](){const _0x1103fd=_0x1ff7ba;let _0x4af224=this[_0x1103fd(0x274)][_0x1103fd(0xfe)](R);return(_0x4af224==null?void 0x0:_0x4af224[_0x1103fd(0x2fb)])??_0x1103fd(0x25c);}async['getResourcesRequest'](_0x30eb9d,_0x26a9f8){const _0x465e51=_0x1ff7ba;let _0x23a47b=_0x465e51(0xc1)+_0x26a9f8['type']+_0x465e51(0x13a)+_0x26a9f8[_0x465e51(0x1a1)]+_0x465e51(0x185);return(await this[_0x465e51(0x88)][_0x465e51(0x322)](_0x23a47b,{'params':{'resourceId':JSON[_0x465e51(0x18f)](_0x26a9f8['resourceIDs'])}}))[_0x465e51(0x15d)];}[_0x1ff7ba(0x21a)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1ff7ba(0xc5)](){const _0x348314=_0x1ff7ba;throw Error(_0x348314(0x1dc));}[_0x1ff7ba(0x34a)](){const _0x5c9baa=_0x1ff7ba;throw Error(_0x5c9baa(0x1dc));}[_0x1ff7ba(0xa3)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1ff7ba(0xc2)](){const _0x144be8=_0x1ff7ba;throw Error(_0x144be8(0x1dc));}[_0x1ff7ba(0x230)](){const _0x394d07=_0x1ff7ba;throw Error(_0x394d07(0x1dc));}};rr=H([V(0x0,_0x3c20c1),V(0x1,_0x1bde49(_0x1ff29e))],rr);let ir=class extends _0x376cd9{constructor(_0x965dcb,_0x8d82a9,_0x371713,_0x5ebec5,_0x7b4451,_0x222903){const _0x1b0335=_0x1ff7ba;super(_0x965dcb,_0x8d82a9,_0x371713,_0x5ebec5),this[_0x1b0335(0xc8)]=_0x7b4451,this[_0x1b0335(0x19a)]=_0x222903;}[_0x1ff7ba(0x13e)](_0x5bb040,_0x5842e9){const _0x108b5d=_0x1ff7ba;let _0x472d10=this[_0x108b5d(0x207)](_0x5bb040);if(_0x472d10)try{let _0x20079b=this[_0x108b5d(0x1d4)](_0x472d10,_0x5842e9);this['_substituteUndoStack'](_0x5bb040,_0x20079b);}catch(_0x22660c){this['_logService'][_0x108b5d(0xdd)](_0x108b5d(0x296),_0x22660c),this[_0x108b5d(0x239)](_0x5bb040);}let _0x4ce1d4=this[_0x108b5d(0x1d6)](_0x5bb040);if(_0x4ce1d4)try{let _0x442dde=this[_0x108b5d(0x1d4)](_0x4ce1d4,_0x5842e9);this[_0x108b5d(0x213)](_0x5bb040,_0x442dde);}catch(_0x44225b){this[_0x108b5d(0x19a)]['error'](_0x44225b),this['_clearRedo'](_0x5bb040);}}[_0x1ff7ba(0x239)](_0x20d0d3){const _0x23025f=_0x1ff7ba;let _0x3b56e6=this['_getUndoStack'](_0x20d0d3);_0x3b56e6&&(_0x3b56e6[_0x23025f(0x256)]=0x0,this[_0x23025f(0x221)]());}[_0x1ff7ba(0x201)](_0x4c2c9b){const _0x159944=_0x1ff7ba;let _0x2cc72b=this['_getRedoStack'](_0x4c2c9b);_0x2cc72b&&(_0x2cc72b[_0x159944(0x256)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x399785,_0x320c1a){const _0x579a4d=_0x1ff7ba;this[_0x579a4d(0x2d4)]['set'](_0x399785,_0x320c1a),this['_updateStatus']();}['_substituteRedoStack'](_0x3fa2d6,_0x4cfcb0){const _0x19621d=_0x1ff7ba;this[_0x19621d(0x2d3)]['set'](_0x3fa2d6,_0x4cfcb0),this[_0x19621d(0x221)]();}[_0x1ff7ba(0x1d4)](_0xbb0ef7,_0xda92b2){const _0x70cebd=_0x1ff7ba;let _0x45f19a=[],_0x14dbee=_0xda92b2,_0x42b8b8=_0xda92b2;for(let _0x42687d=_0xbb0ef7[_0x70cebd(0x256)]-0x1;_0x42687d>=0x0;_0x42687d--){let {unitID:_0x14bb51,undoMutations:_0xde9c1e,redoMutations:_0x33ba70}=_0xbb0ef7[_0x42687d],_0x527b78=this[_0x70cebd(0xc8)][_0x70cebd(0x242)](_0x14dbee,_0xde9c1e),_0x289bed=this[_0x70cebd(0xc8)]['transformMutationsWithChangeset'](_0x42b8b8,_0x33ba70);if(_0x436cb7(_0x527b78)||_0x436cb7(_0x289bed)){this[_0x70cebd(0x19a)][_0x70cebd(0xdd)](_0x70cebd(0x296),_0x70cebd(0x24e),_0x527b78,_0x289bed);break;}_0x14dbee=_0x527b78[_0x70cebd(0x1ef)],_0x42b8b8=_0x289bed[_0x70cebd(0x1ef)],_0x45f19a['push']({'unitID':_0x14bb51,'undoMutations':_0x527b78[_0x70cebd(0x24f)],'redoMutations':_0x289bed['m2Prime']});}return _0x45f19a[_0x70cebd(0x194)]();}};ir=H([V(0x0,_0x47a807),V(0x1,_0x15a5e2),V(0x2,_0x1488ec),V(0x3,_0x3c20c1),V(0x4,_0x1e679f),V(0x5,_0x43cd29)],ir);let ar=class extends _0x354d63{constructor(_0x18533a=gt,_0x293fb0,_0x4e032b,_0x28b3ba){const _0x5147ee=_0x1ff7ba;super(),this[_0x5147ee(0x89)]=_0x18533a,this[_0x5147ee(0x19a)]=_0x293fb0,this[_0x5147ee(0xbe)]=_0x4e032b,this[_0x5147ee(0x274)]=_0x28b3ba;let {..._0x11fee5}=_0x5618dd({},gt,this[_0x5147ee(0x89)]);if(!_0x11fee5[_0x5147ee(0x25d)])throw Error(_0x5147ee(0x1a7));this[_0x5147ee(0x89)]=_0x11fee5,this[_0x5147ee(0x274)][_0x5147ee(0x340)](R,_0x11fee5);}[_0x1ff7ba(0x157)](){const _0x46eda0=_0x1ff7ba;this[_0x46eda0(0x274)][_0x46eda0(0x340)](_0x25ec09,this['_config'][_0x46eda0(0x21e)]??[]),this[_0x46eda0(0xee)](),this['_initDependencies']();}[_0x1ff7ba(0xee)](){const _0x40275e=_0x1ff7ba;var _0x5eb568,_0x331330;this[_0x40275e(0xbe)]['has'](_0x4d71a7)&&this[_0x40275e(0x19a)][_0x40275e(0xdd)](_0x40275e(0x28e),_0x40275e(0x137));let _0x5b1c9f=_0x117280([[_0x4d71a7,{'useClass':ir}],[Nn,{'useValue':Pn()}],[In],[Mt],[Jt],[Wn],[Xn],[jt],[er],[B],[Zn],[An,{'useClass':this['_config'][_0x40275e(0x25d)]}],[_0x563d2c,{'useClass':rr}],[_0x15e24c,{'useClass':Gn}],[_0x207067,{'useClass':Qn}],[Vn,{'useClass':Hn}],[_0x12aecd,{'useClass':$n}],[Ln],[Bn]],(_0x5eb568=this[_0x40275e(0x89)])==null?void 0x0:_0x5eb568[_0x40275e(0x170)]);if(!((_0x331330=this['_config'])!=null&&_0x331330[_0x40275e(0x1b7)])){let _0x31b4ee=_0x5b1c9f[_0x40275e(0x211)](([_0x1a4afd])=>_0x1a4afd===W);_0x31b4ee!==-0x1&&_0x5b1c9f[_0x40275e(0xdc)](_0x31b4ee,0x1);}_0x19e537(this[_0x40275e(0xbe)],_0x5b1c9f);}[_0x1ff7ba(0x349)](){const _0x526494=_0x1ff7ba;var _0x333e6b,_0x54b02f;if(this[_0x526494(0xbe)][_0x526494(0x322)](_0x1ff29e)[_0x526494(0x172)]({'priority':0x14,'interceptor':_0x2cc3ee({'maxParallel':0x6})}),!((_0x333e6b=this[_0x526494(0x89)])!=null&&_0x333e6b[_0x526494(0x266)])){var _0x1f728b;(_0x1f728b=this['_injector'][_0x526494(0x322)](U,_0x54d0a9[_0x526494(0x27c)]))==null||_0x1f728b[_0x526494(0xfc)]();}(_0x54b02f=this[_0x526494(0x89)])!=null&&_0x54b02f[_0x526494(0x22b)]&&_0x5c316f(this[_0x526494(0xbe)],[[Wn]]),_0x5c316f(this['_injector'],[[Xn],[Ln],[er]]);}};z(ar,_0x1ff7ba(0x1a2),_0x1ff7ba(0xa5)),z(ar,_0x1ff7ba(0xdb),Rn),z(ar,'version',zn),ar=H([_0x284fd9(_0x347013,_0x4efb4a,_0x13764c),V(0x1,_0x43cd29),V(0x2,_0x1bde49(_0x3737e0)),V(0x3,_0x3c20c1)],ar);export{Gn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,Sn as BaseCollaborationEntity,Tn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Hn as CollaborationAttachmentIoService,Ln as CollaborationController,$ as CollaborationEntity,Qn as CollaborationImageIoService,Gt as CollaborationSession,In as CollaborationSessionService,Mn as CollaborationSocketService,_n as CollaborationStatus,At as CollaborationUIEventId,B as CollaborationUIEventService,ir as CollaborativeUndoRedoService,jt as CommentService,X as ConflictState,_t as DEFAULT_COLLAB_WEB_SOCKET_URL,Tt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,vt as DEFAULT_WS_SESSION_TICKET_URL,Zn as DataLoaderService,xn as DocCollaborationEntity,Q as FetchingMissState,yt as HEARTBEAT_INTERVAL_KEY,bt as HEARTBEAT_TIMEOUT_KEY,Vn as IAttachmentIoService,Nn as ICollaborationClientAdapterService,An as ICollaborationSocketService,U as ILocalCacheService,Dn as INetworkConditionService,W as ISingleActiveUnitService,Ct as LOCAL_CACHE_INTERVAL,St as LOCAL_CACHE_INTERVAL_KEY,Mt as MemberService,$n as MentionIoHttpService,Z as OfflineState,En as PdfCollaborationEntity,q as PendingState,wt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,xt as RETRY_CONNECTING_MAX_COUNT_KEY,Ut as SessionStatus,Cn as SheetCollaborationEntity,Jt as SheetTransformSelectionsService,wn as SlideCollaborationEntity,rr as SnapshotServerOverHTTPService,K as SyncedState,Yt as UnitStatus,ar as UniverCollaborationClientPlugin,Pn as createUniverCollaborationAdapter,On as deserializeToCombResponse,Kt as getLocalCacheKey,kn as serializeCombRequest};
1
+ const _0x19811e=_0x32e6;function _0x32e6(_0x26eaf0,_0x2a296f){_0x26eaf0=_0x26eaf0-0x121;const _0x1be8b=_0x1be8();let _0x32e66d=_0x1be8b[_0x26eaf0];return _0x32e66d;}(function(_0x31aa24,_0x21c01b){const _0x34314a=_0x32e6,_0x4b4dca=_0x31aa24();while(!![]){try{const _0x5c1a63=-parseInt(_0x34314a(0x345))/0x1*(parseInt(_0x34314a(0x1d7))/0x2)+parseInt(_0x34314a(0x3c8))/0x3*(parseInt(_0x34314a(0x23d))/0x4)+-parseInt(_0x34314a(0x2aa))/0x5+-parseInt(_0x34314a(0x274))/0x6+-parseInt(_0x34314a(0x306))/0x7*(-parseInt(_0x34314a(0x3bb))/0x8)+parseInt(_0x34314a(0x212))/0x9+-parseInt(_0x34314a(0x15b))/0xa*(-parseInt(_0x34314a(0x24d))/0xb);if(_0x5c1a63===_0x21c01b)break;else _0x4b4dca['push'](_0x4b4dca['shift']());}catch(_0x1d06c8){_0x4b4dca['push'](_0x4b4dca['shift']());}}}(_0x1be8,0xb99b8));import{CollaborationEvent as _0x27a7e8,CompressMutationService as _0x3e6ee0,EmptyMutationInfo as _0xa29bbd,ISnapshotServerService as _0x14257b,ITransformService as _0x435fb7,RevisionService as _0x4e5cfb,SnapshotService as _0x2367e2,UniverCollaborationPlugin as _0xe2a840,b64DecodeUnicode as _0x4ce680,isTransformChangesetsSuccess as _0x3c50a8,isTransformMutationsWithChangesetFailure as _0x4532f4,isTransformMutationsWithChangesetSuccess as _0x13dcd7,mapDocumentTypeToUniverInstanceType as _0x1b1539,parseChangesetToProtocol as _0x3ec998,parseProtocolChangeset as _0x52ab46,textEncoder as _0xa79221,uuidv4 as _0x640bce}from'@univerjs-pro/collaboration';import{CommandType as _0x40fa30,DependentOn as _0x22f4eb,Disposable as _0x3d72df,DisposableCollection as _0x49b66f,IAuthzIoService as _0x3a226b,ICommandService as _0xef393c,IConfigService as _0x2477d9,IContextService as _0x1ac843,IImageIoService as _0x393423,ILogService as _0x1ba700,IMentionIOService as _0x42b5e6,IPermissionService as _0x2197a8,IUndoRedoService as _0x3d966a,IUniverInstanceService as _0x4f5fa8,ImageSourceType as _0x19206b,ImageUploadStatusType as _0xe8fff7,Inject as _0x480e6d,Injector as _0x5a91fd,JSONX as _0x26d762,LocalUndoRedoService as _0x1720a8,LocaleService as _0x1e8fb8,MentionType as _0x2cf8e7,OBJECT_PERMISSION_CONFIG_KEY as _0x1e8245,ObjectPermissionService as _0x38d5f0,Optional as _0x1e59a5,Plugin as _0x370b6f,Quantity as _0x126bf3,Rectangle as _0x209662,RxDisposable as _0x39685b,Tools as _0x41c835,UniverInstanceType as _0x5d23e3,UserManagerService as _0x3e2728,Workbook as _0x37c076,createIdentifier as _0x538219,generateRandomId as _0x5f3466,isInternalEditorID as _0x5a7193,merge as _0x3d5516,mergeOverrideWithDependencies as _0x3b2c51,registerDependencies as _0x1bacd8,resolveWithBasePath as _0x26be64,sequenceExecute as _0x1cdaf4,toDisposable as _0x215dfb,touchDependencies as _0x3d1e12}from'@univerjs/core';import{DocStateChangeManagerService as _0x17b259,RichTextEditingMutation as _0x3a809f}from'@univerjs/docs';import{InsertSheetMutation as _0x560f34,SetSelectionsOperation as _0x4a8a0d,SheetPermissionInitController as _0x56ae16,SheetsSelectionsService as _0x2a7649,WorkbookEditablePermission as _0x404767}from'@univerjs/sheets';import{BehaviorSubject as _0x5d64e7,ReplaySubject as _0x584d6d,Subject as _0x33eafc,concatMap as _0x344f28,firstValueFrom as _0x1773f3,map as _0x5f1f30,merge as _0x5e3e6a,of as _0x5b3fe9,shareReplay as _0x34e70e,take as _0x5c55cb,takeUntil as _0x1b033d}from'rxjs';import{CmdRspCode as _0x37b9b2,CombCmd as _0x3b5ebc,ErrorCode as _0x21e177,FileSource as _0x4a74cc,UnitAction as _0x1f5848,UnitObject as _0x5e7d94}from'@univerjs/protocol';import{ITelemetryService as _0x3e86e2}from'@univerjs/telemetry';import{delay as _0x1ebfc0,filter as _0xae526b,map as _0x49f6f7,take as _0x1c88c9,takeUntil as _0x5e490d}from'rxjs/operators';import{AddSlidePageMutation as _0x253f54,EnsureSlideMasterPageMutation as _0x45480a,MoveSlidePageMutation as _0x1aaa8a,RemoveSlidePageMutation as _0x84ee02}from'@univerjs-pro/slides';import{HTTPRequest as _0x4c2e8f,HTTPService as _0x4288a3,ISocketService as _0xd03cee,MergeInterceptorFactory as _0x49dd8f,ThresholdInterceptorFactory as _0x4967eb,UniverNetworkPlugin as _0xae98f7}from'@univerjs/network';import{UniverLicensePlugin as _0xb82aa,getGlobalObject as _0x2312a4}from'@univerjs-pro/license';import{cbc as _0x255255}from'@noble/ciphers/aes.js';import{concatBytes as _0x3a4768,randomBytes as _0x439cec,utf8ToBytes as _0x383466}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x595060,getDrawingImageAllowSize as _0x5a7afa}from'@univerjs/drawing';const R='collaboration-client.config',gt={},_t=_0x19811e(0x20a),vt=_0x19811e(0x122),yt='HEARTBEAT_INTERVAL',bt=_0x19811e(0x2ae),xt=_0x19811e(0x250),St='LOCAL_CACHE_INTERVAL',Ct=0x3e8,wt=_0x19811e(0x364),Tt=_0x19811e(0x322);function Et(_0x1777db){const _0x3642ab=_0x19811e;return JSON['stringify'](_0x1777db)[_0x3642ab(0x2ab)];}function Dt(_0x11b744){'@babel/helpers - typeof';const _0x2fcc36=_0x19811e;return Dt=typeof Symbol==_0x2fcc36(0x25a)&&typeof Symbol[_0x2fcc36(0x2e3)]==_0x2fcc36(0x35b)?function(_0x1ec250){return typeof _0x1ec250;}:function(_0x1149a5){const _0x1687f8=_0x2fcc36;return _0x1149a5&&typeof Symbol==_0x1687f8(0x25a)&&_0x1149a5[_0x1687f8(0x1c2)]===Symbol&&_0x1149a5!==Symbol[_0x1687f8(0x201)]?_0x1687f8(0x35b):typeof _0x1149a5;},Dt(_0x11b744);}function Ot(_0x966924,_0xed6dc8){const _0x10cde7=_0x19811e;if(Dt(_0x966924)!=_0x10cde7(0x133)||!_0x966924)return _0x966924;var _0x4a2d1b=_0x966924[Symbol[_0x10cde7(0x229)]];if(_0x4a2d1b!==void 0x0){var _0x322b72=_0x4a2d1b[_0x10cde7(0x167)](_0x966924,_0xed6dc8||'default');if(Dt(_0x322b72)!=_0x10cde7(0x133))return _0x322b72;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xed6dc8===_0x10cde7(0x2f5)?String:Number)(_0x966924);}function kt(_0x50741b){const _0x45d9d9=_0x19811e;var _0x599a39=Ot(_0x50741b,_0x45d9d9(0x2f5));return Dt(_0x599a39)==_0x45d9d9(0x35b)?_0x599a39:_0x599a39+'';}function z(_0x43aa07,_0x5949e0,_0x587f9e){const _0x27e020=_0x19811e;return(_0x5949e0=kt(_0x5949e0))in _0x43aa07?Object[_0x27e020(0x20e)](_0x43aa07,_0x5949e0,{'value':_0x587f9e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43aa07[_0x5949e0]=_0x587f9e,_0x43aa07;}let At=function(_0x6257c5){const _0x14f5de=_0x19811e;return _0x6257c5[_0x14f5de(0x190)]='OTHER_CLIENT_EDITING',_0x6257c5['PERMISSION_DENIED']=_0x14f5de(0x30e),_0x6257c5[_0x14f5de(0x2c8)]=_0x14f5de(0x2c8),_0x6257c5['CONFLICT_CACHE_CLEAR_FAILED']=_0x14f5de(0x14c),_0x6257c5[_0x14f5de(0x21d)]=_0x14f5de(0x21d),_0x6257c5['CLOSE_ROOM']=_0x14f5de(0x3c1),_0x6257c5[_0x14f5de(0x29e)]=_0x14f5de(0x29e),_0x6257c5[_0x14f5de(0x23f)]=_0x14f5de(0x23f),_0x6257c5[_0x14f5de(0x342)]=_0x14f5de(0x342),_0x6257c5[_0x14f5de(0x337)]=_0x14f5de(0x337),_0x6257c5;}({});var B=class{constructor(){const _0x20686f=_0x19811e;z(this,'_event$',new _0x33eafc()),z(this,_0x20686f(0x360),this['_event$'][_0x20686f(0x316)]());}['emitEvent'](_0x25faec){const _0x403d40=_0x19811e;this[_0x403d40(0x12c)][_0x403d40(0x2d6)](_0x25faec);}},jt=class{constructor(){const _0x18bcf2=_0x19811e;z(this,_0x18bcf2(0x177),new _0x33eafc()),z(this,_0x18bcf2(0x38a),this[_0x18bcf2(0x177)]['asObservable']());}[_0x19811e(0x12f)](_0xdf9bb8){const _0x3f6be4=_0x19811e;this[_0x3f6be4(0x177)]['next'](_0xdf9bb8);}};function V(_0x42b812,_0xa5344a){return function(_0x2456f4,_0x83d3b0){_0xa5344a(_0x2456f4,_0x83d3b0,_0x42b812);};}function H(_0xe97b8d,_0x7f454,_0x3078b1,_0x1b506e){const _0x5186eb=_0x19811e;var _0x76aff3=arguments[_0x5186eb(0x2ab)],_0x296db4=_0x76aff3<0x3?_0x7f454:_0x1b506e===null?_0x1b506e=Object[_0x5186eb(0x1d8)](_0x7f454,_0x3078b1):_0x1b506e,_0x5117e0;if(typeof Reflect==_0x5186eb(0x133)&&typeof Reflect[_0x5186eb(0x246)]==_0x5186eb(0x25a))_0x296db4=Reflect[_0x5186eb(0x246)](_0xe97b8d,_0x7f454,_0x3078b1,_0x1b506e);else{for(var _0x337036=_0xe97b8d[_0x5186eb(0x2ab)]-0x1;_0x337036>=0x0;_0x337036--)(_0x5117e0=_0xe97b8d[_0x337036])&&(_0x296db4=(_0x76aff3<0x3?_0x5117e0(_0x296db4):_0x76aff3>0x3?_0x5117e0(_0x7f454,_0x3078b1,_0x296db4):_0x5117e0(_0x7f454,_0x3078b1))||_0x296db4);}return _0x76aff3>0x3&&_0x296db4&&Object['defineProperty'](_0x7f454,_0x3078b1,_0x296db4),_0x296db4;}let Mt=class extends _0x3d72df{constructor(_0x52e820){const _0x521148=_0x19811e;super(),this[_0x521148(0x2e7)]=_0x52e820,z(this,_0x521148(0x333),new Map()),z(this,_0x521148(0x2da),new _0x33eafc()),this['disposeWithMe'](_0x5e3e6a(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5d23e3[_0x521148(0x227)])[_0x521148(0x273)](_0x49f6f7(_0x2e3fc1=>_0x2e3fc1[_0x521148(0x382)]())),this['_univerInstanceService'][_0x521148(0x131)](_0x5d23e3['UNIVER_DOC'])[_0x521148(0x273)](_0x49f6f7(_0x1758ea=>_0x1758ea[_0x521148(0x382)]())),this[_0x521148(0x2e7)][_0x521148(0x131)](_0x5d23e3[_0x521148(0x328)])[_0x521148(0x273)](_0x49f6f7(_0x403c19=>_0x403c19[_0x521148(0x382)]())),this['_univerInstanceService'][_0x521148(0x131)](_0x5d23e3[_0x521148(0x38e)])[_0x521148(0x273)](_0x49f6f7(_0x5c8409=>_0x5c8409[_0x521148(0x382)]())))['subscribe'](_0x5326fe=>this[_0x521148(0x1cf)](_0x5326fe)));}[_0x19811e(0x375)](_0x3512a6){const _0xb9721e=_0x19811e;return this['_roomMembers'][_0xb9721e(0x1d6)](_0x3512a6)?_0x5b3fe9(this['_roomMembers']['get'](_0x3512a6)):this[_0xb9721e(0x2da)]['pipe'](_0x49f6f7(_0x32e463=>{const _0x46a0d5=_0xb9721e;if(_0x32e463===_0x3512a6)return this[_0x46a0d5(0x333)][_0x46a0d5(0x17c)](_0x32e463);}));}['updateMember'](_0x3c3f68,_0xf45a53){const _0x1eb466=_0x19811e;let _0x58cd41=this[_0x1eb466(0x333)][_0x1eb466(0x17c)](_0x3c3f68);_0x58cd41||(_0x58cd41=new Nt(),this[_0x1eb466(0x333)][_0x1eb466(0x1ee)](_0x3c3f68,_0x58cd41),this[_0x1eb466(0x2da)][_0x1eb466(0x2d6)](_0x3c3f68)),_0x58cd41[_0x1eb466(0x324)](_0xf45a53);}[_0x19811e(0x14a)](_0x39a8ec,_0x396bb4){const _0x2a51e3=_0x19811e;let _0xe3b65f=this[_0x2a51e3(0x333)][_0x2a51e3(0x17c)](_0x39a8ec);_0xe3b65f&&_0xe3b65f[_0x2a51e3(0x14a)](_0x396bb4);}[_0x19811e(0x12a)](_0x262a96){const _0xeedb48=_0x19811e;return this[_0xeedb48(0x333)][_0xeedb48(0x17c)](_0x262a96);}[_0x19811e(0x1bb)](_0x186c47,_0x4c34fc){const _0x15e072=_0x19811e;let _0x1a69dd=this[_0x15e072(0x333)][_0x15e072(0x17c)](_0x186c47);if(_0x1a69dd)return _0x1a69dd['getMember'](_0x4c34fc);}[_0x19811e(0x1cf)](_0x7f6278){const _0x24e8ea=_0x19811e;let _0x5534ff=this[_0x24e8ea(0x333)][_0x24e8ea(0x17c)](_0x7f6278);_0x5534ff&&(_0x5534ff['dispose'](),this[_0x24e8ea(0x333)]['delete'](_0x7f6278));}['dispose'](){const _0x5ca29f=_0x19811e;this[_0x5ca29f(0x333)][_0x5ca29f(0x332)](_0x2655f3=>_0x2655f3['dispose']()),this[_0x5ca29f(0x333)][_0x5ca29f(0x2e5)](),this[_0x5ca29f(0x2da)][_0x5ca29f(0x279)]();}};Mt=H([V(0x0,_0x4f5fa8)],Mt);var Nt=class extends _0x3d72df{constructor(..._0x2234b6){const _0x127e30=_0x19811e;super(..._0x2234b6),z(this,_0x127e30(0x3d3),new Map()),z(this,_0x127e30(0x2a6),new _0x5d64e7(this[_0x127e30(0x3d3)])),z(this,'members$',this['_members$'][_0x127e30(0x316)]());}[_0x19811e(0x194)](){const _0x191f14=_0x19811e;this[_0x191f14(0x3d3)]['clear'](),this['_members$'][_0x191f14(0x279)]();}['updateMember'](_0x56248a){const _0x2e984b=_0x19811e;this[_0x2e984b(0x3d3)][_0x2e984b(0x1ee)](_0x56248a[_0x2e984b(0x2ee)],_0x56248a),this[_0x2e984b(0x259)]();}[_0x19811e(0x14a)](_0x4659a2){const _0xa9332b=_0x19811e;this[_0xa9332b(0x3d3)][_0xa9332b(0x347)](_0x4659a2),this[_0xa9332b(0x259)]();}[_0x19811e(0x1bb)](_0x2691c7){const _0xcca9fa=_0x19811e;return this[_0xcca9fa(0x3d3)][_0xcca9fa(0x17c)](_0x2691c7);}[_0x19811e(0x149)](){const _0x2c485c=_0x19811e;return Array[_0x2c485c(0x22e)](this[_0x2c485c(0x3d3)]['values']());}['_emitMembers'](){const _0x49a909=_0x19811e;this[_0x49a909(0x2a6)][_0x49a909(0x2d6)](this[_0x49a909(0x3d3)]);}};function Pt(_0x4a3755,_0x480cf8){const _0x24f1ba=_0x19811e;if(It(_0x4a3755))return _0x480cf8;if(_0x480cf8[_0x24f1ba(0x13c)]===_0x27a7e8['SUBMIT_CHANGESET']){let _0x19c0b5=Vt(_0x4a3755),_0x291479=_0x480cf8;return{..._0x291479,'data':{..._0x291479['data'],'unitID':_0x4a3755[_0x24f1ba(0x135)][_0x24f1ba(0x22b)],'unitType':_0x4a3755[_0x24f1ba(0x135)][_0x24f1ba(0x2e4)]??_0x291479['data']['unitType'],'changeset':_0x19c0b5[_0x24f1ba(0x3bd)](_0x291479[_0x24f1ba(0x202)][_0x24f1ba(0x136)],Ht(_0x4a3755))}};}if(_0x480cf8['eventID']===_0x27a7e8[_0x24f1ba(0x39b)]){let _0x3931cc=_0x480cf8;return{..._0x3931cc,'data':{..._0x3931cc[_0x24f1ba(0x202)],'unitID':_0x4a3755['target'][_0x24f1ba(0x22b)],'unitType':_0x4a3755[_0x24f1ba(0x135)][_0x24f1ba(0x2e4)]??_0x3931cc['data'][_0x24f1ba(0x2e4)]}};}return _0x480cf8;}function Ft(_0xe03804,_0x2ba444){if(It(_0xe03804))return[_0x2ba444];switch(_0x2ba444['eventID']){case _0x27a7e8['NEW_CHANGESETS']:return[Lt(_0xe03804,_0x2ba444)];case _0x27a7e8['PSEUDO_FETCH_MISSING_RESULT']:return[zt(_0xe03804,_0x2ba444)];case _0x27a7e8['CHANGESET_SHOULD_RETRY']:return[Rt(_0xe03804,_0x2ba444)];default:return[_0x2ba444];}}function It(_0x55825f){const _0x58dd71=_0x19811e;return _0x55825f[_0x58dd71(0x135)]['endpoint']==null&&_0x55825f[_0x58dd71(0x135)][_0x58dd71(0x22b)]===_0x55825f['localUnitId']&&!_0x55825f[_0x58dd71(0x136)];}function Lt(_0x43eded,_0x32d38b){const _0x183fcc=_0x19811e;return{..._0x32d38b,'data':_0x3ec998(Bt(_0x43eded,_0x52ab46(_0x32d38b[_0x183fcc(0x202)])))};}function Rt(_0x5c9dd0,_0x4df4fb){const _0x1f93f3=_0x19811e;return{..._0x4df4fb,'data':Bt(_0x5c9dd0,_0x4df4fb[_0x1f93f3(0x202)])};}function zt(_0x3f9afc,_0x178da8){const _0x339692=_0x19811e;let _0xe720b8=_0x178da8['data'];return{..._0x178da8,'data':{..._0xe720b8,'changesets':_0xe720b8['changesets'][_0x339692(0x1a3)](_0x339fdf=>_0x3ec998(Bt(_0x3f9afc,_0x52ab46(_0x339fdf))))}};}function Bt(_0x1b080c,_0x5e48c7){return Vt(_0x1b080c)['toLocal'](_0x5e48c7,Ht(_0x1b080c));}function Vt(_0x56b2da){const _0x5b5757=_0x19811e;if(!_0x56b2da[_0x5b5757(0x136)])throw Error(_0x5b5757(0x367));return _0x56b2da[_0x5b5757(0x136)];}function Ht(_0x5c035e){const _0x5a7886=_0x19811e;return{'localUnitId':_0x5c035e['localUnitId'],'unitType':_0x5c035e[_0x5a7886(0x2e4)],'target':_0x5c035e[_0x5a7886(0x135)]};}let Ut=function(_0x45847a){const _0x124f31=_0x19811e;return _0x45847a[_0x45847a[_0x124f31(0x262)]=0x0]=_0x124f31(0x262),_0x45847a[_0x45847a[_0x124f31(0x241)]=0x1]=_0x124f31(0x241),_0x45847a[_0x45847a[_0x124f31(0x3cc)]=0x2]=_0x124f31(0x3cc),_0x45847a[_0x45847a[_0x124f31(0x1d0)]=0x3]=_0x124f31(0x1d0),_0x45847a;}({});const Wt={[_0x37b9b2[_0x19811e(0x343)]]:_0x19811e(0x1f3),[_0x37b9b2[_0x19811e(0x38b)]]:_0x19811e(0x266),[_0x37b9b2['JOIN_ROOM_NOT_EXISTS']]:_0x19811e(0x1a6),[_0x37b9b2[_0x19811e(0x37a)]]:_0x19811e(0x127),[_0x37b9b2[_0x19811e(0x385)]]:_0x19811e(0x2a1)};let Gt=class extends _0x39685b{get[_0x19811e(0x2a2)](){const _0x3ebe1b=_0x19811e;return this[_0x3ebe1b(0x199)]['getValue']();}constructor(_0x183d55,_0x500471,_0x34cdc2,_0x46cc7e,_0x51ef77,_0xf188a0,_0xbaa147,_0x69078b){const _0x57baba=_0x19811e;super(),this[_0x57baba(0x31d)]=_0x183d55,this[_0x57baba(0x261)]=_0x34cdc2,this[_0x57baba(0x216)]=_0x46cc7e,this['_memberService']=_0x51ef77,this[_0x57baba(0x310)]=_0xf188a0,this[_0x57baba(0x1af)]=_0xbaa147,this[_0x57baba(0x339)]=_0x69078b,z(this,_0x57baba(0x199),new _0x5d64e7(0x0)),z(this,_0x57baba(0x3a5),this[_0x57baba(0x199)][_0x57baba(0x316)]()),z(this,_0x57baba(0x12c),new _0x33eafc()),z(this,_0x57baba(0x360),this[_0x57baba(0x12c)][_0x57baba(0x316)]()),z(this,_0x57baba(0x365),void 0x0),z(this,'_socketMessageSubscription',void 0x0),z(this,'_collaborationTimeoutTimer',void 0x0),z(this,_0x57baba(0x296),!0x1),z(this,_0x57baba(0x39f),null),this[_0x57baba(0x296)]=!!this[_0x57baba(0x339)],_0x500471[_0x57baba(0x273)](_0x1b033d(this[_0x57baba(0x1a7)]))[_0x57baba(0x2c1)](_0x41b71f=>{const _0x2dc258=_0x57baba;if(_0x41b71f!==void 0x0){if(this['_socket']=_0x41b71f,_0x41b71f)this[_0x2dc258(0x14b)](_0x41b71f),this[_0x2dc258(0x2bc)]=_0x41b71f[_0x2dc258(0x1f1)][_0x2dc258(0x2c1)](_0x13ea06=>{const _0x2e1bd5=_0x2dc258;_0x13ea06[_0x2e1bd5(0x1bc)]===this[_0x2e1bd5(0x31d)][_0x2e1bd5(0x135)][_0x2e1bd5(0x22b)]&&this[_0x2e1bd5(0x222)](_0x13ea06);});else{var _0x1c79b1;this[_0x2dc258(0x3ce)](),this['_sessionStatus$']['next'](0x2),(_0x1c79b1=this['_socketMessageSubscription'])==null||_0x1c79b1[_0x2dc258(0x185)](),this[_0x2dc258(0x2bc)]=null;}}});}['getMemberID'](){const _0x274749=_0x19811e;var _0x433004;return((_0x433004=this[_0x274749(0x365)])==null?void 0x0:_0x433004[_0x274749(0x2ee)])??null;}[_0x19811e(0x194)](){const _0x12d250=_0x19811e;super[_0x12d250(0x194)](),this[_0x12d250(0x17f)](),this['dispose$']['next'](),this['dispose$'][_0x12d250(0x279)]();}[_0x19811e(0x17f)](){const _0xc2cac=_0x19811e;var _0xb40398;this['_throwTelemetryCollaborationNewChangeset'](),(_0xb40398=this[_0xc2cac(0x365)])==null||_0xb40398['send']({'cmd':_0x3b5ebc[_0xc2cac(0x233)],'data':{'roomID':this[_0xc2cac(0x31d)]['target'][_0xc2cac(0x22b)]}}),this['_event$']['complete'](),this[_0xc2cac(0x199)]['complete']();}[_0x19811e(0x222)](_0x167737){const _0x4db75f=_0x19811e;_0x167737[_0x4db75f(0x2d9)]===_0x3b5ebc[_0x4db75f(0x1d9)]?this[_0x4db75f(0x39d)](_0x167737):_0x167737[_0x4db75f(0x2d9)]===_0x3b5ebc[_0x4db75f(0x1e7)]&&this[_0x4db75f(0x2df)](_0x167737);}[_0x19811e(0x14b)](_0x3624af){const _0x415438=_0x19811e;this[_0x415438(0x199)][_0x415438(0x2d6)](0x1),_0x3624af[_0x415438(0x173)]({'cmd':_0x3b5ebc[_0x415438(0x1d9)],'routeKey':this[_0x415438(0x31d)][_0x415438(0x135)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x415438(0x135)][_0x415438(0x22b)]}]}});}[_0x19811e(0x39d)](_0x910e50){const _0x43f55f=_0x19811e;var _0x393895;if(_0x910e50[_0x43f55f(0x236)]in Wt){this['_collaborationUIEventService'][_0x43f55f(0x24a)]({'id':_0x43f55f(0x29e),'data':Wt[_0x910e50[_0x43f55f(0x236)]]}),this['_sessionStatus$'][_0x43f55f(0x2d6)](0x2);return;}this[_0x43f55f(0x199)][_0x43f55f(0x2d6)](0x3);let _0xd096ce=(_0x393895=_0x910e50[_0x43f55f(0x202)][_0x43f55f(0x3da)][this[_0x43f55f(0x31d)]['target']['unitId']])==null?void 0x0:_0x393895[_0x43f55f(0x282)];_0xd096ce&&_0xd096ce[_0x43f55f(0x332)](_0x5c6a63=>this[_0x43f55f(0x1fe)][_0x43f55f(0x324)](this['_identity'][_0x43f55f(0x3bc)],_0x5c6a63));}[_0x19811e(0x2df)](_0x40dfa5){const _0x3898b0=_0x19811e;try{let _0x4aff7d=Ft(this['_identity'],_0x40dfa5['data']);for(let _0x388ee1 of _0x4aff7d)switch(_0x388ee1['eventID']){case _0x27a7e8[_0x3898b0(0x34d)]:this[_0x3898b0(0x15e)](_0x388ee1),this[_0x3898b0(0x12c)][_0x3898b0(0x2d6)](_0x388ee1);break;case _0x27a7e8[_0x3898b0(0x16d)]:this[_0x3898b0(0x340)](_0x388ee1),this['_event$'][_0x3898b0(0x2d6)](_0x388ee1);break;case _0x27a7e8['CHANGESET_ACK']:case _0x27a7e8['CHANGESET_SHOULD_RETRY']:this[_0x3898b0(0x2ec)](),this[_0x3898b0(0x388)](),this['_event$']['next'](_0x388ee1);break;case _0x27a7e8[_0x3898b0(0x344)]:this['_logService'][_0x3898b0(0x2cd)](_0x3898b0(0x272)+JSON[_0x3898b0(0x3a0)](_0x388ee1)),this['_event$'][_0x3898b0(0x2d6)](_0x388ee1);break;case _0x27a7e8[_0x3898b0(0x1b6)]:this['_commentService'][_0x3898b0(0x12f)](_0x388ee1[_0x3898b0(0x202)]),this[_0x3898b0(0x12c)][_0x3898b0(0x2d6)](_0x388ee1);break;default:this[_0x3898b0(0x12c)][_0x3898b0(0x2d6)](_0x388ee1);}}catch(_0x1d805e){this['_logService']['error'](_0x1d805e,_0x40dfa5);}}['_onUserJoin'](_0x3a58e1){const _0x1602e5=_0x19811e;this[_0x1602e5(0x1fe)]['updateMember'](this['_identity'][_0x1602e5(0x3bc)],_0x3a58e1['data']);}[_0x19811e(0x340)](_0x3cc416){const _0x167142=_0x19811e;this['_memberService'][_0x167142(0x14a)](this[_0x167142(0x31d)]['localUnitId'],_0x3cc416[_0x167142(0x202)][_0x167142(0x2ee)]);}async['send'](_0x19d77c,_0x22c837){const _0xd71a95=_0x19811e;if(this['sessionStatus']!==0x3||!this[_0xd71a95(0x365)])throw Error(_0xd71a95(0x20b));try{let _0x761eba=Pt(this['_identity'],_0x19d77c);_0x761eba[_0xd71a95(0x13c)]===_0x27a7e8[_0xd71a95(0x1f6)]&&(this[_0xd71a95(0x35a)](),this[_0xd71a95(0x2eb)](_0x761eba)),this['_socket'][_0xd71a95(0x173)]({'cmd':_0x3b5ebc[_0xd71a95(0x2fb)],'routeKey':this[_0xd71a95(0x31d)][_0xd71a95(0x135)][_0xd71a95(0x22b)],'routeType':'','data':_0x761eba});}catch(_0x124c84){this['_logService'][_0xd71a95(0x2cd)](_0x124c84);}}[_0x19811e(0x35a)](){const _0x555c65=_0x19811e;this[_0x555c65(0x206)]=setTimeout(()=>{const _0x45770e=_0x555c65;this[_0x45770e(0x206)]=null,this['_collaborationUIEventService'][_0x45770e(0x24a)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0x555c65(0x216)][_0x555c65(0x396)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x19811e(0x388)](){const _0x35a1af=_0x19811e;this[_0x35a1af(0x206)]&&=(clearTimeout(this[_0x35a1af(0x206)]),null);}['_startTelemetryCollaborationNewChangeset'](_0x28f572){const _0x4242f7=_0x19811e;if(!this[_0x4242f7(0x296)])return;let {data:_0x132b3b}=_0x28f572,{unitID:_0x25c94c,changeset:_0x45f9ae}=_0x132b3b,{mutations:_0x35bd2e,type:_0x2ec498}=_0x45f9ae;this['_telemetryInfo']={'unitId':_0x25c94c,'type':_0x2ec498,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Et(_0x35bd2e)};}[_0x19811e(0x2ec)](){const _0x478452=_0x19811e;if(this[_0x478452(0x296)]){if(!this[_0x478452(0x39f)]){this['_logService']['error'](_0x478452(0x351),_0x478452(0x3a9));return;}this[_0x478452(0x39f)][_0x478452(0x132)]=performance[_0x478452(0x1de)](),this[_0x478452(0x39f)][_0x478452(0x175)]=this[_0x478452(0x39f)][_0x478452(0x132)]-this['_telemetryInfo']['startTime'],this['_telemetryService'][_0x478452(0x311)]('collaboration_new_changeset',this[_0x478452(0x39f)]),this[_0x478452(0x39f)]=null;}}[_0x19811e(0x3ce)](){const _0x23f00f=_0x19811e;this[_0x23f00f(0x39f)]=null;}};Gt=H([V(0x2,_0x1ba700),V(0x3,_0x2477d9),V(0x4,_0x480e6d(Mt)),V(0x5,_0x480e6d(jt)),V(0x6,_0x480e6d(B)),V(0x7,_0x1e59a5(_0x3e86e2))],Gt);const U=_0x538219(_0x19811e(0x3b7));function Kt(_0x36f5e7){const _0x2013d6=_0x19811e;return _0x2013d6(0x219)+_0x36f5e7;}function qt(_0xbe0550){const _0x4af786=_0x19811e;let {unitID:_0x30c719,mutations:_0x2a48f3}=_0xbe0550;return{'unitId':_0x30c719,'subUnitId':_0x2a48f3['length']>0x0?_0x2a48f3[0x0][_0x4af786(0x359)][_0x4af786(0x1c0)]:null};}let Jt=class{constructor(_0x28977d,_0x34fad3,_0x1761d5){const _0x2d1cdf=_0x19811e;this[_0x2d1cdf(0x302)]=_0x28977d,this[_0x2d1cdf(0x3d8)]=_0x34fad3,this[_0x2d1cdf(0x1c4)]=_0x1761d5;}[_0x19811e(0x1b2)](_0x11c46b){const _0x276ddf=_0x19811e;var _0x303897,_0x10f34e;let _0x4fd165=this['_injector'][_0x276ddf(0x17c)](_0x2a7649),{unitId:_0x1bf043,subUnitId:_0x4a45a6}=qt(_0x11c46b),_0x8eb0f5=_0x4fd165==null?void 0x0:_0x4fd165[_0x276ddf(0x1b9)](_0x1bf043)[_0x276ddf(0x3c7)](),_0x12d091=(_0x303897=this[_0x276ddf(0x1c4)]['getUnit'](_0x1bf043))==null||(_0x303897=_0x303897['getActiveSheet']())==null?void 0x0:_0x303897[_0x276ddf(0x15f)]();if(_0x8eb0f5[_0x276ddf(0x2ab)]===0x0||!_0x1bf043||!_0x4a45a6)return;let _0x256edd=[{'id':_0x4a8a0d['id'],'params':{'unitId':_0x1bf043,'subUnitId':_0x12d091,'selections':_0x41c835['deepClone'](_0x8eb0f5)}}],_0xbd95e3=this[_0x276ddf(0x3d8)][_0x276ddf(0x19d)](_0x11c46b,_0x256edd);if(!_0x13dcd7(_0xbd95e3))throw _0xbd95e3['error'];let _0x153a83=(_0x10f34e=_0xbd95e3[_0x276ddf(0x2ba)][0x0])==null||(_0x10f34e=_0x10f34e['params'])==null?void 0x0:_0x10f34e[_0x276ddf(0x23e)];if(Array[_0x276ddf(0x3c2)](_0x153a83)&&_0x153a83[_0x276ddf(0x2ab)]){if(_0x153a83[_0x276ddf(0x2ab)]===_0x256edd[0x0]['params'][_0x276ddf(0x23e)][_0x276ddf(0x2ab)]&&_0x153a83[_0x276ddf(0x1e1)]((_0x3bf904,_0xfed8a4)=>_0x209662[_0x276ddf(0x1c6)](_0x3bf904[_0x276ddf(0x3c5)],_0x256edd[0x0][_0x276ddf(0x359)][_0x276ddf(0x23e)][_0xfed8a4][_0x276ddf(0x3c5)])))return;this[_0x276ddf(0x302)][_0x276ddf(0x17c)](_0xef393c)[_0x276ddf(0x144)](_0x4a8a0d['id'],{'unitId':_0x1bf043,'subUnitId':_0x12d091,'selections':_0x153a83});}}};Jt=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x435fb7),V(0x2,_0x4f5fa8)],Jt);const W=_0x538219('univer-pro.collaboration-client.single-active-unit-service');let Yt=function(_0x2d7b9d){const _0x1e48b2=_0x19811e;return _0x2d7b9d[_0x2d7b9d[_0x1e48b2(0x307)]=0x0]=_0x1e48b2(0x307),_0x2d7b9d[_0x2d7b9d[_0x1e48b2(0x263)]=0x1]=_0x1e48b2(0x263),_0x2d7b9d;}({});function Xt(_0x1cf284){const _0x56c65a=_0x19811e;var _0x36b53f;return!!((_0x36b53f=_0x1cf284[_0x56c65a(0x359)])!=null&&_0x36b53f['__splitChunk__']);}const Zt=new Set([_0x560f34['id']]),Qt=new Set([_0x253f54['id'],_0x45480a['id'],_0x1aaa8a['id'],_0x84ee02['id']]);function $t(_0x279e56,_0x5b1319=Zt){const _0x310a90=_0x19811e;let _0x523588=[];for(let _0x1e80d5 of _0x279e56){if(_0x5b1319['has'](_0x1e80d5['id'])){if(_0x523588['length']>0x0)break;_0x523588[_0x310a90(0x335)](_0x1e80d5);break;}if(Xt(_0x1e80d5)){if(_0x523588['length']>0x0)break;_0x523588[_0x310a90(0x335)](_0x1e80d5);break;}_0x523588['push'](_0x1e80d5);}return _0x523588;}function en(_0x75c9ca,_0x2742ea,_0x2d4940,_0xa4af9c,_0x1e1f03){const _0x10fe4f=_0x19811e;let _0x4b6b9e=$t(_0x75c9ca),_0x2eab2c=_0x1e1f03[_0x10fe4f(0x21e)](),_0x231236=(_0x2eab2c==null?void 0x0:_0x2eab2c[_0x10fe4f(0x2b3)])??_0x10fe4f(0x2ff),_0x428921=(_0x2eab2c==null?void 0x0:_0x2eab2c[_0x10fe4f(0x2ee)])??'unknown';return{'changeset':{'unitID':_0x2742ea,'type':_0x1b1539(_0x2d4940[_0x10fe4f(0x1e3)](_0x2742ea)),'baseRev':_0xa4af9c[_0x10fe4f(0x2ea)](_0x2742ea),'revision':0x0,'userID':_0x231236,'memberID':_0x428921,'mutations':_0x4b6b9e},'pendingMutations':_0x75c9ca['slice'](_0x4b6b9e[_0x10fe4f(0x2ab)])};}const tn=en;function nn(_0x4ac0ab,_0xc24e54,_0x199a48,_0x123ad5,_0x4729bb){const _0x2f8171=_0x19811e;let _0x4de894=$t(_0x4ac0ab,Qt),_0x362a23=_0x4729bb[_0x2f8171(0x21e)](),_0x2bfb08=(_0x362a23==null?void 0x0:_0x362a23[_0x2f8171(0x2b3)])??_0x2f8171(0x2ff),_0x1c2749=(_0x362a23==null?void 0x0:_0x362a23['memberID'])??'unknown';return{'changeset':{'unitID':_0xc24e54,'type':_0x1b1539(_0x199a48['getUnitType'](_0xc24e54)),'baseRev':_0x123ad5[_0x2f8171(0x2ea)](_0xc24e54),'revision':0x0,'userID':_0x2bfb08,'memberID':_0x1c2749,'mutations':_0x4de894},'pendingMutations':_0x4ac0ab[_0x2f8171(0x141)](_0x4de894[_0x2f8171(0x2ab)])};}function rn(_0x285d35,_0x104579,_0x2acb87,_0x2c3986,_0x36c1c3){const _0x5dd849=_0x19811e;let _0x591269=_0x285d35[_0x5dd849(0x3d9)]((_0x23d586,_0x2280e0)=>{const _0x2fbd8d=_0x5dd849;let _0x115950=_0x23d586[_0x23d586['length']-0x1],{id:_0x585c6a}=_0x115950??{},{id:_0x40fd2f,type:_0x55016e}=_0x2280e0,_0x28ba07=_0x2280e0['params'];if(_0x585c6a&&_0x585c6a!==_0x40fd2f)throw Error(_0x2fbd8d(0x284)+_0x585c6a+_0x2fbd8d(0x36c)+_0x40fd2f+'.');if(!_0x115950)return[{'id':_0x40fd2f,'type':_0x55016e,'params':{'unitId':_0x28ba07[_0x2fbd8d(0x22b)],'textRanges':_0x28ba07[_0x2fbd8d(0x3dd)],'actions':_0x28ba07[_0x2fbd8d(0x303)]}}];let _0x409488=_0x115950['params'];return an(_0x409488,_0x28ba07)?[..._0x23d586[_0x2fbd8d(0x141)](0x0,-0x1),{..._0x115950,'id':_0x40fd2f,'type':_0x55016e,'params':{'unitId':_0x28ba07[_0x2fbd8d(0x22b)],'textRanges':_0x28ba07['textRanges'],'actions':_0x26d762[_0x2fbd8d(0x193)](_0x409488[_0x2fbd8d(0x303)],_0x28ba07['actions'])}}]:[..._0x23d586,{'id':_0x40fd2f,'type':_0x55016e,'params':{'unitId':_0x28ba07[_0x2fbd8d(0x22b)],'textRanges':_0x28ba07[_0x2fbd8d(0x3dd)],'actions':_0x28ba07['actions']}}];},[]),_0x42a845=_0x36c1c3[_0x5dd849(0x21e)](),_0x25287c=(_0x42a845==null?void 0x0:_0x42a845['userID'])??_0x5dd849(0x2ff),_0x102a08=(_0x42a845==null?void 0x0:_0x42a845[_0x5dd849(0x2ee)])??_0x5dd849(0x2ff);return{'changeset':{'unitID':_0x104579,'type':_0x1b1539(_0x2acb87['getUnitType'](_0x104579)),'baseRev':_0x2c3986[_0x5dd849(0x2ea)](_0x104579),'revision':0x0,'userID':_0x25287c,'memberID':_0x102a08,'mutations':_0x591269},'pendingMutations':_0x285d35[_0x5dd849(0x141)](_0x285d35['length'])};}function an(_0x3ea3ff,_0x229435){const _0x1e163c=_0x19811e;return!on(_0x3ea3ff)&&!on(_0x229435)&&sn(_0x3ea3ff[_0x1e163c(0x303)],_0x229435[_0x1e163c(0x303)]);}function on(_0x1910f1){return _0x1910f1['isCompositionEnd']!==void 0x0;}function sn(_0x2f7a83,_0x2daac8){return cn(_0x2f7a83)&&cn(_0x2daac8)&&!un(_0x2f7a83)&&!un(_0x2daac8)&&!ln(_0x2f7a83)&&!ln(_0x2daac8);}function cn(_0x2ce0a7){const _0x8c5907=_0x19811e;return dn(_0x2ce0a7)['some'](_0x557c02=>fn(_0x557c02)&&_0x557c02['et']===_0x8c5907(0x37f));}function ln(_0x596ddb){const _0x395e3c=_0x19811e;return dn(_0x596ddb)[_0x395e3c(0x1aa)](_0x29fde4=>Array[_0x395e3c(0x3c2)](_0x29fde4)||typeof _0x29fde4=='string'||typeof _0x29fde4==_0x395e3c(0x384));}function un(_0x51c1d5){const _0x352114=_0x19811e;return dn(_0x51c1d5)[_0x352114(0x1aa)](_0x53765a=>!fn(_0x53765a)||_0x53765a['et']!=='text-x'||!Array[_0x352114(0x3c2)](_0x53765a['e'])?!0x1:_0x53765a['e'][_0x352114(0x1aa)](_0x2f8c5f=>!fn(_0x2f8c5f)||!fn(_0x2f8c5f[_0x352114(0x1ea)])?!0x1:Object[_0x352114(0x201)]['hasOwnProperty'][_0x352114(0x167)](_0x2f8c5f['body'],_0x352114(0x27c))||Object[_0x352114(0x201)][_0x352114(0x1c7)][_0x352114(0x167)](_0x2f8c5f[_0x352114(0x1ea)],_0x352114(0x267))||Object['prototype'][_0x352114(0x1c7)][_0x352114(0x167)](_0x2f8c5f[_0x352114(0x1ea)],'blockRanges')));}function dn(_0x48a1b1){const _0x2c6dca=_0x19811e;if(!Array['isArray'](_0x48a1b1))return[];let _0x4aa24e=_0x48a1b1[_0x2c6dca(0x139)](_0x2c6dca(0x1ea))?_0x48a1b1:_0x48a1b1[_0x2c6dca(0x180)](_0x5e16b8=>Array[_0x2c6dca(0x3c2)](_0x5e16b8)&&_0x5e16b8['includes']('body'));if(!Array[_0x2c6dca(0x3c2)](_0x4aa24e))return[];let _0xa31e4d=_0x4aa24e[_0x2c6dca(0x293)]('body');return _0xa31e4d===-0x1?[]:_0x4aa24e[_0x2c6dca(0x141)](_0xa31e4d+0x1);}function fn(_0x2995ec){const _0xacedb4=_0x19811e;return typeof _0x2995ec==_0xacedb4(0x133)&&!!_0x2995ec&&!Array[_0xacedb4(0x3c2)](_0x2995ec);}function pn(_0x1157f8,_0x1e3a5d){const _0x55542b=_0x19811e;let _0x364147=new _0x584d6d(0x1);return setTimeout(()=>_0x364147[_0x55542b(0x2d6)](_0x1e3a5d),_0x1157f8),_0x364147[_0x55542b(0x316)]()[_0x55542b(0x273)](_0x5c55cb(0x1));}var mn,hn,gn;let _n=function(_0x1b61cc){const _0x166eca=_0x19811e;return _0x1b61cc[_0x166eca(0x2f3)]=_0x166eca(0x28a),_0x1b61cc[_0x166eca(0x130)]=_0x166eca(0x327),_0x1b61cc[_0x166eca(0x3a1)]='pending',_0x1b61cc[_0x166eca(0x21b)]='awaiting',_0x1b61cc[_0x166eca(0x3c0)]=_0x166eca(0x1ac),_0x1b61cc[_0x166eca(0x19b)]=_0x166eca(0x2fd),_0x1b61cc[_0x166eca(0x21d)]=_0x166eca(0x19c),_0x1b61cc['OFFLINE']=_0x166eca(0x192),_0x1b61cc;}({});const vn=0x4e20,yn=0x2bf20;var G=class{constructor(_0x3ae150,_0xe2b1a6,_0x270359,_0x3ce8f0,_0x3a192f,_0x77522b,_0x33023f,_0x60902e,_0x2ffc9c){const _0x473e2d=_0x19811e;this[_0x473e2d(0x25e)]=_0x3ae150,this['type']=_0xe2b1a6,this[_0x473e2d(0x151)]=_0x3a192f,this[_0x473e2d(0x3aa)]=_0x77522b,this[_0x473e2d(0x14e)]=_0x33023f,this[_0x473e2d(0x271)]=_0x60902e,this[_0x473e2d(0x121)]=_0x2ffc9c,z(this,'_awaitingChangeset',null),z(this,_0x473e2d(0x33f),[]),this[_0x473e2d(0x21c)]=_0x270359,this['_pendingMutations']=_0x3ce8f0;}[_0x19811e(0x12d)](_0x49b7f3){const _0x3e0759=_0x19811e;let _0x1d9073=this[_0x3e0759(0x271)][_0x3e0759(0x2ea)](this[_0x3e0759(0x25e)]);return _0x49b7f3[_0x3e0759(0x2fe)]>_0x1d9073+0x1&&(this[_0x3e0759(0x151)][_0x3e0759(0x3db)]({'from':_0x1d9073,'to':_0x49b7f3[_0x3e0759(0x2fe)]-0x1}),!0x0);}['_transformUndoredo'](_0x9ac608){const _0x5e1077=_0x19811e;this[_0x5e1077(0x14e)][_0x5e1077(0x32e)](this[_0x5e1077(0x25e)],_0x9ac608);}[_0x19811e(0x166)](_0x2c82ae){const _0x1274e1=_0x19811e;var _0x4cdc23,_0xa5f8a3;(_0x4cdc23=(_0xa5f8a3=this[_0x1274e1(0x151)])['onTransformSelections'])==null||_0x4cdc23[_0x1274e1(0x167)](_0xa5f8a3,_0x2c82ae);}[_0x19811e(0x125)](_0x16272a){const _0x417cf5=_0x19811e;var _0x4f239a,_0x598a3c;return((_0x4f239a=(_0x598a3c=this['_handler'])[_0x417cf5(0x138)])==null?void 0x0:_0x4f239a[_0x417cf5(0x167)](_0x598a3c,_0x16272a))??null;}[_0x19811e(0x29b)](_0x47c30f){const _0x275cfc=_0x19811e;var _0x57851c,_0x2c6c42;return(_0x57851c=(_0x2c6c42=this[_0x275cfc(0x151)])[_0x275cfc(0x24b)])==null?void 0x0:_0x57851c[_0x275cfc(0x167)](_0x2c6c42,_0x47c30f);}[_0x19811e(0x20c)](_0x1cc145){const _0x5d9940=_0x19811e;var _0x22244c,_0x2d54f6;return(_0x22244c=(_0x2d54f6=this[_0x5d9940(0x151)])[_0x5d9940(0x2ac)])==null?void 0x0:_0x22244c[_0x5d9940(0x167)](_0x2d54f6,_0x1cc145);}[_0x19811e(0x1e4)](_0x1082fc){const _0x40dcb3=_0x19811e;var _0x9105d3,_0x375d6b;return((_0x9105d3=(_0x375d6b=this[_0x40dcb3(0x151)])[_0x40dcb3(0x258)])==null?void 0x0:_0x9105d3['call'](_0x375d6b,_0x1082fc))??_0x1082fc;}['_transformRemoteChangesetByStateCache'](_0x114b20){const _0x3a42b4=_0x19811e;var _0x36f136,_0x55bed2;return((_0x36f136=(_0x55bed2=this[_0x3a42b4(0x151)])[_0x3a42b4(0x31b)])==null?void 0x0:_0x36f136[_0x3a42b4(0x167)](_0x55bed2,_0x114b20))??_0x114b20;}[_0x19811e(0x18b)](_0x440a0b){const _0x32c886=_0x19811e;if(this[_0x32c886(0x392)]===_0x5d23e3[_0x32c886(0x126)]){let {unitID:_0x353b49,mutations:_0x5d30f6,memberID:_0x2d2295}=_0x440a0b,_0x4411b7=_0x5d30f6[_0x32c886(0x2ab)]>0x0?_0x5d30f6[0x0][_0x32c886(0x359)][_0x32c886(0x3dd)]:[];if(Array['isArray'](_0x4411b7)&&_0x4411b7[_0x32c886(0x2ab)]>0x0){var _0x3aab6a,_0x958ba6;(_0x3aab6a=(_0x958ba6=this[_0x32c886(0x151)])['onSyncEditingCollabCursor'])==null||_0x3aab6a[_0x32c886(0x167)](_0x958ba6,{'unitID':_0x353b49,'memberID':_0x2d2295,'textRanges':_0x4411b7});}}}[_0x19811e(0x1b1)](){const _0x3ee9fe=_0x19811e;var _0x548422;(_0x548422=this[_0x3ee9fe(0x121)])==null||_0x548422[_0x3ee9fe(0x369)](this[_0x3ee9fe(0x25e)],this['type'],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x19811e(0x36b)](){const _0x10ec2c=_0x19811e;return this[_0x10ec2c(0x271)]['getCurrentRevOfUnit'](this[_0x10ec2c(0x25e)]);}[_0x19811e(0x323)](){const _0x5b7072=_0x19811e;this[_0x5b7072(0x271)][_0x5b7072(0x2c2)](this[_0x5b7072(0x25e)]);}[_0x19811e(0x35c)](_0x430ea6){const _0x1b5b2f=_0x19811e;let _0x3230b7=this[_0x1b5b2f(0x1e4)](_0x430ea6);_0x3230b7=this[_0x1b5b2f(0x270)](_0x3230b7);let _0x1add5e=this[_0x1b5b2f(0x125)](_0x3230b7),_0x5e7441=_0x1cdaf4(_0x3230b7[_0x1b5b2f(0x16e)],this[_0x1b5b2f(0x3aa)],{'fromCollab':!0x0});if(!_0x5e7441[_0x1b5b2f(0x2e9)])throw _0x1add5e==null||_0x1add5e['rollback'](),_0x5e7441[_0x1b5b2f(0x2cd)]instanceof Error?_0x5e7441['error']:Error(_0x5e7441[_0x1b5b2f(0x2cd)]??'[CollaborationState]:\x20apply\x20error!');_0x1add5e==null||_0x1add5e[_0x1b5b2f(0x2ce)](),this[_0x1b5b2f(0x29b)](_0x3230b7),this[_0x1b5b2f(0x20c)](_0x3230b7),this[_0x1b5b2f(0x33b)](_0x430ea6),this[_0x1b5b2f(0x166)](_0x3230b7),this[_0x1b5b2f(0x18b)](_0x3230b7),this[_0x1b5b2f(0x323)]();}};let K=class extends G{constructor(_0x28b24c,_0x2b4370,_0x252946,_0x628c7b,_0x35da9e,_0xb652c0,_0x57f1b7,_0x290a9e,_0x39d35f,_0x330f65){const _0x5a91b9=_0x19811e;super(_0x28b24c,_0x2b4370,null,[],_0x252946,_0x57f1b7,_0xb652c0,_0x628c7b,_0x330f65),this['_injector']=_0x35da9e,this[_0x5a91b9(0x261)]=_0x290a9e,this[_0x5a91b9(0x3d8)]=_0x39d35f,this[_0x5a91b9(0x38c)]=_0x330f65,z(this,_0x5a91b9(0x18d),_0x5a91b9(0x327));}['appendMutation'](_0x20c522){const _0x5aed48=_0x19811e;let _0x3827a8=this[_0x5aed48(0x302)][_0x5aed48(0x1d2)](q,this[_0x5aed48(0x25e)],this[_0x5aed48(0x392)],[_0x20c522],this[_0x5aed48(0x151)]);return _0x3827a8[_0x5aed48(0x235)](),_0x3827a8[_0x5aed48(0x1b1)](),_0x3827a8;}[_0x19811e(0x1dd)](_0x2868f5){const _0xef0e57=_0x19811e;if(this[_0xef0e57(0x12d)](_0x2868f5))return this[_0xef0e57(0x302)][_0xef0e57(0x1d2)](Q,this[_0xef0e57(0x25e)],this[_0xef0e57(0x392)],null,[],null,[_0x2868f5],this['_handler']);try{let _0x43349d=this[_0xef0e57(0x3d8)][_0xef0e57(0x19d)](_0x2868f5,[_0xa29bbd]);if(_0x13dcd7(_0x43349d)){let {c1Prime:_0x5097ac}=_0x43349d;return this[_0xef0e57(0x35c)](_0x5097ac),this;}throw _0x43349d[_0xef0e57(0x2cd)];}catch(_0xed372e){return this['_logService'][_0xef0e57(0x2cd)](_0xed372e),this[_0xef0e57(0x13a)](!0x1);}}['_onConflict'](_0xa346ea){const _0x1ccfa6=_0x19811e;return this[_0x1ccfa6(0x302)][_0x1ccfa6(0x1d2)](X,this[_0x1ccfa6(0x25e)],this[_0x1ccfa6(0x392)],null,[],this['_handler'],_0xa346ea);}[_0x19811e(0x33e)](_0x3f2b1a){const _0x4c4276=_0x19811e;if(_0x3f2b1a['revision']<=this[_0x4c4276(0x36b)]())return this;throw Error(_0x4c4276(0x2ef));}[_0x19811e(0x2d0)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x19811e(0x2de)](){const _0x25fbed=_0x19811e;return this['_injector'][_0x25fbed(0x1d2)](Z,this[_0x25fbed(0x25e)],this['type'],null,[],this[_0x25fbed(0x151)]);}['toggleOnline'](){return this;}[_0x19811e(0x218)](){const _0x4e121c=_0x19811e;throw Error(_0x4e121c(0x146));}['fetchMiss'](){const _0x41301c=_0x19811e;let _0x50e6b4=this[_0x41301c(0x271)][_0x41301c(0x2ea)](this[_0x41301c(0x25e)]);return this[_0x41301c(0x151)]['onMissingChangesets']({'from':_0x50e6b4,'to':0x0}),this['_injector'][_0x41301c(0x1d2)](Q,this[_0x41301c(0x25e)],this['type'],null,[],null,[],this[_0x41301c(0x151)]);}};K=H([V(0x3,_0x480e6d(_0x4e5cfb)),V(0x4,_0x480e6d(_0x5a91fd)),V(0x5,_0x3d966a),V(0x6,_0xef393c),V(0x7,_0x1ba700),V(0x8,_0x435fb7),V(0x9,_0x1e59a5(U))],K);let q=mn=class extends G{constructor(_0x360474,_0x4ed921,_0x230c9c,_0x3b792d,_0x5b1793,_0x1e7055,_0x2730a7,_0x2fb665,_0x526f67,_0x2ed05a,_0x28d72d,_0x15e3ce,_0x4cb758,_0x3ac427){const _0x5c6716=_0x19811e;super(_0x360474,_0x4ed921,null,_0x230c9c,_0x3b792d,_0x526f67,_0x4cb758,_0x1e7055,_0x3ac427),this['_injector']=_0x5b1793,this[_0x5c6716(0x3a4)]=_0x2730a7,this[_0x5c6716(0x261)]=_0x2fb665,this[_0x5c6716(0x216)]=_0x2ed05a,this[_0x5c6716(0x3d8)]=_0x28d72d,this[_0x5c6716(0x2e7)]=_0x15e3ce,z(this,_0x5c6716(0x18d),_0x5c6716(0x277)),z(this,_0x5c6716(0x3b8),null),z(this,_0x5c6716(0x184),null);}['appendMutation'](_0x1193b1){const _0x58a20d=_0x19811e;return this['_pendingMutations'][_0x58a20d(0x335)](_0x1193b1),this[_0x58a20d(0x1b1)](),this;}[_0x19811e(0x1dd)](_0x16a288){const _0x2ddb41=_0x19811e;if(this[_0x2ddb41(0x12d)](_0x16a288))return this['_clearScheduledTask'](),this[_0x2ddb41(0x302)][_0x2ddb41(0x1d2)](Q,this[_0x2ddb41(0x25e)],this[_0x2ddb41(0x392)],null,this[_0x2ddb41(0x33f)],null,[_0x16a288],this[_0x2ddb41(0x151)]);try{let _0x2ef73e=this[_0x2ddb41(0x3d8)][_0x2ddb41(0x19d)](_0x16a288,this[_0x2ddb41(0x33f)]);if(_0x13dcd7(_0x2ef73e)){let {c1Prime:_0x80f716,m2Prime:_0x27665c}=_0x2ef73e;this[_0x2ddb41(0x35c)](_0x80f716);let _0x575a58=this['_injector'][_0x2ddb41(0x1d2)](mn,this[_0x2ddb41(0x25e)],this[_0x2ddb41(0x392)],_0x27665c,this['_handler']);this[_0x2ddb41(0x3df)]();let _0x309c92=new Date()[_0x2ddb41(0x211)](),_0x3452e1=this[_0x2ddb41(0x3b8)]?Math[_0x2ddb41(0x1dc)](this[_0x2ddb41(0x3b8)]-_0x309c92,0x0):this['_getSendChangesetTimeout']();return _0x575a58[_0x2ddb41(0x235)](_0x3452e1),_0x575a58;}throw _0x2ef73e[_0x2ddb41(0x2cd)];}catch(_0x3fb126){return this[_0x2ddb41(0x261)][_0x2ddb41(0x2cd)](_0x3fb126),this[_0x2ddb41(0x13a)](!0x1);}}[_0x19811e(0x33e)](_0x496df3){const _0x55b550=_0x19811e;if(_0x496df3[_0x55b550(0x2fe)]<=this[_0x55b550(0x36b)]())return this;throw Error(_0x55b550(0x1f9));}['onRemoteRej'](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x19811e(0x36a)](){return this;}[_0x19811e(0x2de)](){const _0x4524ce=_0x19811e;return this[_0x4524ce(0x3df)](),this['_injector'][_0x4524ce(0x1d2)](Z,this[_0x4524ce(0x25e)],this[_0x4524ce(0x392)],null,this['_pendingMutations'],this[_0x4524ce(0x151)]);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x235)](_0x5411f2){const _0x46128c=_0x19811e;let _0x11e7ea=_0x5411f2??this[_0x46128c(0x1db)]();this[_0x46128c(0x3b8)]=new Date()['getTime']()+_0x11e7ea,this['_sendingTimer']=setTimeout(()=>{const _0x25c0c2=_0x46128c;this[_0x25c0c2(0x3df)]();let _0x323a08=null;switch(this['type']){case _0x5d23e3['UNIVER_SHEET']:_0x323a08=en(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this['_univerInstanceService'],this[_0x25c0c2(0x271)],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3[_0x25c0c2(0x126)]:_0x323a08=this[_0x25c0c2(0x33f)]['every'](_0x33f7f8=>_0x33f7f8['id']===_0x3a809f['id'])?rn(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this['_revisionService'],this[_0x25c0c2(0x3a4)]):en(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3['UNIVER_SLIDE']:_0x323a08=nn(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this['_revisionService'],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3[_0x25c0c2(0x1f5)]:_0x323a08=tn(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this['_userManagerService']);break;case _0x5d23e3['UNIVER_BOARD']:_0x323a08=en(this[_0x25c0c2(0x33f)],this['unitID'],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3[_0x25c0c2(0x38e)]:_0x323a08=en(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this['_userManagerService']);break;default:throw Error(_0x25c0c2(0x22c)+this[_0x25c0c2(0x392)]+'\x20in\x20_schedule.');}let {changeset:_0x31d7dd,pendingMutations:_0x115f6f}=_0x323a08;this[_0x25c0c2(0x151)][_0x25c0c2(0x221)](_0x31d7dd);let _0x5937fe=_0x115f6f[_0x25c0c2(0x2ab)]?this[_0x25c0c2(0x302)][_0x25c0c2(0x1d2)](Y,this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x392)],_0x31d7dd,_0x115f6f,this['_handler'],void 0x0):this['_injector'][_0x25c0c2(0x1d2)](J,this[_0x25c0c2(0x25e)],this['type'],_0x31d7dd,this['_handler']);_0x5937fe[_0x25c0c2(0x1b1)](),this['_handler'][_0x25c0c2(0x1c1)](this,_0x5937fe);},_0x11e7ea);}[_0x19811e(0x1db)](){const _0x142cc5=_0x19811e;let _0x149707=this['_configService']['getConfig'](R);return(_0x149707==null?void 0x0:_0x149707[_0x142cc5(0x156)])??0x7d0;}['resend'](){const _0x431460=_0x19811e;throw Error(_0x431460(0x3dc));}[_0x19811e(0x3df)](){const _0x18f693=_0x19811e;this[_0x18f693(0x184)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x19811e(0x13a)](_0x5de659){const _0x25b8ee=_0x19811e;return this[_0x25b8ee(0x3df)](),this['_injector'][_0x25b8ee(0x1d2)](X,this[_0x25b8ee(0x25e)],this[_0x25b8ee(0x392)],null,this['_pendingMutations'],this[_0x25b8ee(0x151)],_0x5de659);}};q=mn=H([V(0x4,_0x480e6d(_0x5a91fd)),V(0x5,_0x480e6d(_0x4e5cfb)),V(0x6,_0x480e6d(_0x3e2728)),V(0x7,_0x1ba700),V(0x8,_0xef393c),V(0x9,_0x2477d9),V(0xa,_0x435fb7),V(0xb,_0x4f5fa8),V(0xc,_0x3d966a),V(0xd,_0x1e59a5(U))],q);let J=hn=class extends G{constructor(_0x490b86,_0x1127b0,_0x127cda,_0x778dee,_0x1590d5,_0xc9c1ad,_0x35215c,_0x2747ee,_0x4366eb,_0x294872,_0x2ef59f){const _0x278f38=_0x19811e;super(_0x490b86,_0x1127b0,_0x127cda,[],_0x778dee,_0x35215c,_0x294872,_0xc9c1ad,_0x2ef59f),this['_injector']=_0x1590d5,this['_logService']=_0x2747ee,this[_0x278f38(0x3d8)]=_0x4366eb,z(this,_0x278f38(0x18d),_0x278f38(0x3ad)),z(this,'_resendTimeout',0x0),z(this,_0x278f38(0x1ab),0x0),z(this,_0x278f38(0x3ca),void 0x0),z(this,_0x278f38(0x31a),void 0x0);}[_0x19811e(0x30a)](_0x35df59){const _0x501c35=_0x19811e;this[_0x501c35(0x3df)]();let _0x56d9d3=this[_0x501c35(0x302)][_0x501c35(0x1d2)](Y,this['unitID'],this[_0x501c35(0x392)],this['_awaitingChangeset'],[_0x35df59],this[_0x501c35(0x151)],this[_0x501c35(0x3ca)]);return _0x56d9d3[_0x501c35(0x1b1)](),_0x56d9d3;}['onRemoteChangeset'](_0x2624fd){const _0x1adf11=_0x19811e;if(this[_0x1adf11(0x12d)](_0x2624fd))return this[_0x1adf11(0x3df)](),this[_0x1adf11(0x302)]['createInstance'](Q,this[_0x1adf11(0x25e)],this[_0x1adf11(0x392)],this['_awaitingChangeset'],[],null,[_0x2624fd],this[_0x1adf11(0x151)]);try{let _0x300464=this[_0x1adf11(0x3d8)]['transformChangesets']([_0x2624fd],[this[_0x1adf11(0x21c)]],!0x1);if(_0x3c50a8(_0x300464)){let {c1Prime:_0xc7502,c2Prime:_0x1c7b2a}=_0x300464;this['_executeRemoteChangeset'](_0xc7502[0x0]),_0x1c7b2a[0x0][_0x1adf11(0x24c)]=this['_getCurrentRevision'](),this['_clearScheduledTask']();let _0x2899cf=this[_0x1adf11(0x302)][_0x1adf11(0x1d2)](hn,this['unitID'],this[_0x1adf11(0x392)],_0x1c7b2a[0x0],this[_0x1adf11(0x151)]);return _0x2899cf[_0x1adf11(0x1b1)](),_0x2899cf;}throw _0x300464['error'];}catch(_0x42ed98){return this[_0x1adf11(0x261)][_0x1adf11(0x2cd)](_0x42ed98),this[_0x1adf11(0x13a)](!0x1);}}[_0x19811e(0x33e)](_0x18845b){const _0x4d418f=_0x19811e;this[_0x4d418f(0x3df)]();let _0x199414=this['_revisionService'][_0x4d418f(0x2ea)](this[_0x4d418f(0x25e)]);if(_0x18845b[_0x4d418f(0x2fe)]<=_0x199414)return this;if(this['_checkMissing'](_0x18845b))return this[_0x4d418f(0x302)][_0x4d418f(0x1d2)](Q,this[_0x4d418f(0x25e)],this[_0x4d418f(0x392)],this['_awaitingChangeset'],[],_0x18845b['revision'],[],this[_0x4d418f(0x151)]);this[_0x4d418f(0x323)]();let _0x4f9a19=this[_0x4d418f(0x302)][_0x4d418f(0x1d2)](K,this[_0x4d418f(0x25e)],this[_0x4d418f(0x392)],this[_0x4d418f(0x151)]);return _0x4f9a19['_updateLocalCache'](),_0x4f9a19;}[_0x19811e(0x2d0)](_0x590214){const _0x44bf8a=_0x19811e;return this[_0x44bf8a(0x13a)](!!(_0x590214!=null&&_0x590214[_0x44bf8a(0x2b6)]));}[_0x19811e(0x36a)](_0x4619b2){const _0x4a6e05=_0x19811e;return this['_maxTotalRetryTimeout']>yn?this[_0x4a6e05(0x2de)]():(this[_0x4a6e05(0x3ca)]=pn(this['_resendTimeout'],{'timeout':this[_0x4a6e05(0x21f)],'reqId':_0x4619b2[_0x4a6e05(0x334)]}),this[_0x4a6e05(0x31a)]=this[_0x4a6e05(0x3ca)][_0x4a6e05(0x2c1)](({reqId:_0x3ccede,timeout:_0x4a9f91})=>{const _0x33f33b=_0x4a6e05;this[_0x33f33b(0x16b)](_0x3ccede,_0x4a9f91);}),this);}['toggleOffline'](){const _0x391615=_0x19811e;return this['_clearScheduledTask'](),this['_injector']['createInstance'](Z,this[_0x391615(0x25e)],this[_0x391615(0x392)],this[_0x391615(0x21c)],[],this['_handler']);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x218)](){const _0x190752=_0x19811e;this[_0x190752(0x151)][_0x190752(0x221)](this[_0x190752(0x21c)]);}['_onConflict'](_0x4967a9){const _0x4fcf31=_0x19811e;return this['_clearScheduledTask'](),this[_0x4fcf31(0x302)][_0x4fcf31(0x1d2)](X,this[_0x4fcf31(0x25e)],this[_0x4fcf31(0x392)],this['_awaitingChangeset'],[],this[_0x4fcf31(0x151)],_0x4967a9);}[_0x19811e(0x16b)](_0x39ab1d,_0x4106f5){const _0x17873b=_0x19811e;var _0x59c58d;_0x39ab1d===((_0x59c58d=this[_0x17873b(0x21c)])==null?void 0x0:_0x59c58d[_0x17873b(0x334)])&&(this['resend'](),this[_0x17873b(0x21f)]=_0x4106f5===0x0?0x3e8:Math[_0x17873b(0x134)](_0x4106f5*0x2,vn),this[_0x17873b(0x1ab)]+=this[_0x17873b(0x21f)]);}[_0x19811e(0x3df)](){const _0x2f6942=_0x19811e;var _0x37867c;(_0x37867c=this[_0x2f6942(0x31a)])==null||_0x37867c[_0x2f6942(0x185)](),this[_0x2f6942(0x21f)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=hn=H([V(0x4,_0x480e6d(_0x5a91fd)),V(0x5,_0x480e6d(_0x4e5cfb)),V(0x6,_0xef393c),V(0x7,_0x1ba700),V(0x8,_0x435fb7),V(0x9,_0x3d966a),V(0xa,_0x1e59a5(U))],J);let Y=gn=class extends G{constructor(_0x213b2b,_0x2f5f58,_0x56e822,_0xfbdfbe,_0x259ec0,_0x368b26,_0x4b8e89,_0x3537a8,_0x2c05ce,_0x2e9a99,_0x3dd73a,_0x4c9387,_0x5396b3){const _0x265440=_0x19811e;super(_0x213b2b,_0x2f5f58,_0x56e822,_0xfbdfbe,_0x259ec0,_0x2c05ce,_0x4c9387,_0x3537a8,_0x5396b3),this[_0x265440(0x302)]=_0x4b8e89,this[_0x265440(0x261)]=_0x2e9a99,this['_transformService']=_0x3dd73a,this[_0x265440(0x38c)]=_0x5396b3,z(this,_0x265440(0x18d),_0x265440(0x1ac)),z(this,_0x265440(0x21f),0x0),z(this,_0x265440(0x1ab),0x0),z(this,_0x265440(0x3ca),void 0x0),z(this,_0x265440(0x31a),void 0x0),_0x368b26&&(this[_0x265440(0x3ca)]=_0x368b26,this[_0x265440(0x31a)]=this[_0x265440(0x3ca)]['subscribe'](({reqId:_0x439d23,timeout:_0x4b01b4})=>{this['_resendWithTimeout'](_0x439d23,_0x4b01b4);}));}[_0x19811e(0x30a)](_0x1ea9e4){const _0x143e1b=_0x19811e;return this[_0x143e1b(0x33f)][_0x143e1b(0x335)](_0x1ea9e4),this;}[_0x19811e(0x1dd)](_0x5af09d){const _0x549a1e=_0x19811e;if(this[_0x549a1e(0x12d)](_0x5af09d))return this['_clearScheduledTask'](),this[_0x549a1e(0x302)][_0x549a1e(0x1d2)](Q,this[_0x549a1e(0x25e)],this['type'],this['_awaitingChangeset'],this[_0x549a1e(0x33f)],null,[_0x5af09d],this[_0x549a1e(0x151)]);try{let _0x5c3863=this['_transformService'][_0x549a1e(0x330)]([_0x5af09d],[this['_awaitingChangeset']],!0x1);if(_0x3c50a8(_0x5c3863)){let {c1Prime:_0x334318,c2Prime:_0x44d627}=_0x5c3863,_0x20dff6=this[_0x549a1e(0x3d8)][_0x549a1e(0x19d)](_0x334318[0x0],this[_0x549a1e(0x33f)]);if(_0x13dcd7(_0x20dff6)){let {c1Prime:_0xe8c5e1,m2Prime:_0x4a7a55}=_0x20dff6;return this[_0x549a1e(0x35c)](_0xe8c5e1),_0x44d627[0x0][_0x549a1e(0x24c)]=this[_0x549a1e(0x36b)](),this[_0x549a1e(0x3df)](),this[_0x549a1e(0x302)]['createInstance'](gn,this[_0x549a1e(0x25e)],this[_0x549a1e(0x392)],_0x44d627[0x0],_0x4a7a55,this['_handler'],void 0x0);}throw _0x20dff6[_0x549a1e(0x2cd)];}throw _0x5c3863[_0x549a1e(0x2cd)];}catch(_0x5dc142){return this[_0x549a1e(0x261)][_0x549a1e(0x2cd)](_0x5dc142),this[_0x549a1e(0x13a)](!0x1);}}['onRemoteAck'](_0x2b226a){const _0x51e242=_0x19811e;this['_clearScheduledTask']();let _0x183664=this['_getCurrentRevision']();if(_0x2b226a['revision']<=_0x183664)return this;if(this['_checkMissing'](_0x2b226a))return this[_0x51e242(0x302)]['createInstance'](Q,this[_0x51e242(0x25e)],this[_0x51e242(0x392)],this[_0x51e242(0x21c)],this[_0x51e242(0x33f)],_0x2b226a[_0x51e242(0x2fe)],[],this[_0x51e242(0x151)]);this[_0x51e242(0x323)]();let _0x412120=this[_0x51e242(0x302)][_0x51e242(0x1d2)](q,this[_0x51e242(0x25e)],this[_0x51e242(0x392)],this[_0x51e242(0x33f)],this[_0x51e242(0x151)]);return _0x412120['_schedule'](),_0x412120['_updateLocalCache'](),_0x412120;}['onRemoteRej'](_0x32e6e6){const _0x3fcf14=_0x19811e;return this[_0x3fcf14(0x13a)](!!(_0x32e6e6!=null&&_0x32e6e6[_0x3fcf14(0x2b6)]));}['onRemoteRetry'](_0x295eca){const _0x5ea8bd=_0x19811e;return this[_0x5ea8bd(0x1ab)]>yn?this[_0x5ea8bd(0x2de)]():(this[_0x5ea8bd(0x3ca)]=pn(this[_0x5ea8bd(0x21f)],{'timeout':this[_0x5ea8bd(0x21f)],'reqId':_0x295eca[_0x5ea8bd(0x334)]}),this[_0x5ea8bd(0x31a)]=this[_0x5ea8bd(0x3ca)][_0x5ea8bd(0x2c1)](({reqId:_0x560d0f,timeout:_0x307acc})=>{const _0x499679=_0x5ea8bd;this[_0x499679(0x16b)](_0x560d0f,_0x307acc);}),this);}['toggleOffline'](){const _0x32eb32=_0x19811e;return this['_clearScheduledTask'](),this['_injector']['createInstance'](Z,this[_0x32eb32(0x25e)],this['type'],this[_0x32eb32(0x21c)],this[_0x32eb32(0x33f)],this[_0x32eb32(0x151)]);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x218)](){const _0x15c915=_0x19811e;this[_0x15c915(0x151)][_0x15c915(0x221)](this['_awaitingChangeset']);}[_0x19811e(0x13a)](_0xb25b07){const _0x1d600a=_0x19811e;return this[_0x1d600a(0x3df)](),this[_0x1d600a(0x302)]['createInstance'](X,this[_0x1d600a(0x25e)],this[_0x1d600a(0x392)],null,this[_0x1d600a(0x33f)],this[_0x1d600a(0x151)],_0xb25b07);}[_0x19811e(0x16b)](_0x4e4b05,_0x2f7c4e){const _0x17dee0=_0x19811e;var _0xf76440;_0x4e4b05===((_0xf76440=this[_0x17dee0(0x21c)])==null?void 0x0:_0xf76440['reqId'])&&(this['resend'](),this['_resendTimeout']=_0x2f7c4e===0x0?0x3e8:Math[_0x17dee0(0x134)](_0x2f7c4e*0x2,vn),this[_0x17dee0(0x1ab)]+=this['_resendTimeout']);}[_0x19811e(0x3df)](){const _0x255423=_0x19811e;var _0x43febf;(_0x43febf=this['_sender'])==null||_0x43febf[_0x255423(0x185)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};Y=gn=H([V(0x6,_0x480e6d(_0x5a91fd)),V(0x7,_0x480e6d(_0x4e5cfb)),V(0x8,_0xef393c),V(0x9,_0x1ba700),V(0xa,_0x435fb7),V(0xb,_0x3d966a),V(0xc,_0x1e59a5(U))],Y);let X=class extends G{constructor(_0x37d999,_0x2af230,_0x2b7e6e,_0x214c70,_0x263bc3,_0x4a5d1f=!0x1,_0x4d9da0,_0x15e410,_0x3ccfe0,_0x252e93,_0x3c9802,_0x237006,_0x2d075f){const _0x3f4060=_0x19811e;super(_0x37d999,_0x2af230,_0x2b7e6e,_0x214c70,_0x263bc3,_0x15e410,_0x3ccfe0,_0x252e93,_0x2d075f),this['_isPermissionRej']=_0x4a5d1f,this[_0x3f4060(0x283)]=_0x4d9da0,this[_0x3f4060(0x161)]=_0x3c9802,this[_0x3f4060(0x1af)]=_0x237006,this[_0x3f4060(0x38c)]=_0x2d075f,z(this,_0x3f4060(0x18d),_0x3f4060(0x19c)),this[_0x3f4060(0x3cd)](),this[_0x3f4060(0x260)](),this[_0x3f4060(0x354)]();}[_0x19811e(0x30a)](){return this;}[_0x19811e(0x1dd)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['onRemoteRetry'](){return this;}[_0x19811e(0x2de)](){return this;}[_0x19811e(0x214)](){return this;}['resend'](){const _0x225e6d=_0x19811e;throw Error(_0x225e6d(0x257));}async[_0x19811e(0x354)](){const _0x51196b=_0x19811e;var _0x471caa,_0x3d99c6;await((_0x471caa=this[_0x51196b(0x121)])==null||(_0x3d99c6=_0x471caa['backupOfflineData'])==null?void 0x0:_0x3d99c6['call'](_0x471caa,this[_0x51196b(0x25e)],_0x51196b(0x19c))['catch'](()=>void 0x0));try{var _0x24697a;await((_0x24697a=this['_localCacheService'])==null?void 0x0:_0x24697a['clearOfflineData'](this[_0x51196b(0x25e)]));}catch{this[_0x51196b(0x1af)][_0x51196b(0x24a)]({'id':_0x51196b(0x14c),'unitID':this[_0x51196b(0x25e)]});return;}this[_0x51196b(0x22a)]();}[_0x19811e(0x260)](){const _0x36fc64=_0x19811e;this['_collaborationUIEventService'][_0x36fc64(0x24a)]({'id':_0x36fc64(0x2c8)});}[_0x19811e(0x22a)](){const _0xca6e26=_0x19811e;this['_isPermissionRej']?this[_0xca6e26(0x1af)][_0xca6e26(0x24a)]({'id':_0xca6e26(0x30e)}):this[_0xca6e26(0x1af)][_0xca6e26(0x24a)]({'id':_0xca6e26(0x21d)});}['_disableEditing'](){const _0x2fbb96=_0x19811e;this[_0x2fbb96(0x283)][_0x2fbb96(0x3d1)](new _0x404767(this[_0x2fbb96(0x25e)])['id'],!0x1);}};X=H([V(0x6,_0x480e6d(_0x2197a8)),V(0x7,_0xef393c),V(0x8,_0x3d966a),V(0x9,_0x480e6d(_0x4e5cfb)),V(0xa,_0x480e6d(_0x1e8fb8)),V(0xb,_0x480e6d(B)),V(0xc,_0x1e59a5(U))],X);let Z=class extends G{constructor(_0xc510c3,_0x2c5c07,_0x5cf2b3,_0x4b77f9,_0x457197,_0x5cfaa4,_0x4572e5,_0x9779c2,_0x498cde,_0x4c35f3){const _0x2e4c7f=_0x19811e;super(_0xc510c3,_0x2c5c07,_0x5cf2b3,_0x4b77f9,_0x457197,_0x9779c2,_0x498cde,_0x4572e5,_0x4c35f3),this[_0x2e4c7f(0x302)]=_0x5cfaa4,z(this,_0x2e4c7f(0x18d),'offline');}[_0x19811e(0x30a)](_0x4aae89){const _0x4e839a=_0x19811e;return this[_0x4e839a(0x33f)][_0x4e839a(0x335)](_0x4aae89),this[_0x4e839a(0x1b1)](),this;}[_0x19811e(0x1dd)](_0x33ed9a){const _0x5958aa=_0x19811e;throw Error(_0x5958aa(0x290));}[_0x19811e(0x33e)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x19811e(0x2d0)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x19811e(0x36a)](){return this;}['toggleOffline'](){return this;}[_0x19811e(0x214)](){let {_injector:_0x42a271,_pendingMutations:_0x39d501,_awaitingChangeset:_0x1b7dc3,unitID:_0x269b2c,_handler:_0x4d4109,type:_0x2e2cbe}=this,_0x3d77eb=bn(_0x42a271,_0x269b2c,_0x2e2cbe,_0x1b7dc3,_0x39d501,_0x4d4109);return _0x3d77eb instanceof q?_0x3d77eb['_schedule']():(_0x3d77eb instanceof Y||_0x3d77eb instanceof J)&&_0x3d77eb['resend'](),_0x3d77eb;}[_0x19811e(0x218)](){const _0x1a126e=_0x19811e;throw Error(_0x1a126e(0x3ac));}};Z=H([V(0x5,_0x480e6d(_0x5a91fd)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0xef393c),V(0x8,_0x3d966a),V(0x9,_0x1e59a5(U))],Z);let Q=class extends G{constructor(_0x2b00a8,_0x259dfd,_0x59e137,_0x49aff8,_0x3a79fd,_0x20acbd,_0xeda8c7,_0x5c278e,_0x6779f1,_0x22c864,_0xa1a99d,_0x179703,_0x568215,_0x1195f3){const _0x4c69f9=_0x19811e;super(_0x2b00a8,_0x259dfd,_0x59e137,_0x49aff8,_0xeda8c7,_0xa1a99d,_0x179703,_0x6779f1,_0x1195f3),this[_0x4c69f9(0x1e6)]=_0x3a79fd,this['_queuedRemoteChangesets']=_0x20acbd,this[_0x4c69f9(0x302)]=_0x5c278e,this[_0x4c69f9(0x261)]=_0x22c864,this['_transformService']=_0x568215,this[_0x4c69f9(0x38c)]=_0x1195f3,z(this,_0x4c69f9(0x18d),_0x4c69f9(0x2fd));}[_0x19811e(0x22d)](_0x12b4b5){const _0x4b4be2=_0x19811e;try{if(this['_handleRemoteChangesets'](_0x12b4b5)['missingChangesets'])throw Error(_0x4b4be2(0x30b));if(this[_0x4b4be2(0x3d6)]([...this['_queuedRemoteChangesets']][_0x4b4be2(0x2a8)]((_0x55eea3,_0x1acda6)=>_0x55eea3[_0x4b4be2(0x2fe)]-_0x1acda6['revision']))[_0x4b4be2(0x1d5)])return this['_queuedRemoteChangesets']=[],this[_0x4b4be2(0x1b1)](),this[_0x4b4be2(0x151)][_0x4b4be2(0x3db)]({'from':this[_0x4b4be2(0x36b)](),'to':0x0}),this;let _0x515dac=this[_0x4b4be2(0x21c)],_0x4f6e04=this['_pendingMutations'],_0x1940fc;if(_0x515dac&&_0x4f6e04[_0x4b4be2(0x2ab)]!==0x0)_0x1940fc=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](Y,this['unitID'],this[_0x4b4be2(0x392)],_0x515dac,_0x4f6e04,this[_0x4b4be2(0x151)],void 0x0);else{if(_0x515dac&&_0x4f6e04['length']===0x0)_0x515dac['baseRev']=this[_0x4b4be2(0x36b)](),_0x1940fc=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](J,this[_0x4b4be2(0x25e)],this[_0x4b4be2(0x392)],_0x515dac,this['_handler']);else{if(_0x4f6e04[_0x4b4be2(0x2ab)]!==0x0){let _0x576f7b=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](q,this['unitID'],this[_0x4b4be2(0x392)],_0x4f6e04,this[_0x4b4be2(0x151)]);_0x576f7b['_schedule'](),_0x1940fc=_0x576f7b;}else _0x1940fc=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](K,this['unitID'],this[_0x4b4be2(0x392)],this['_handler']);}}return _0x1940fc[_0x4b4be2(0x1b1)](),_0x1940fc;}catch(_0x4af068){return this[_0x4b4be2(0x261)][_0x4b4be2(0x2cd)]('[FetchMissState]',_0x4b4be2(0x1fa),_0x4af068),this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](X,this['unitID'],this['type'],this[_0x4b4be2(0x21c)],this['_pendingMutations'],this[_0x4b4be2(0x151)],!0x1);}}[_0x19811e(0x3d6)](_0x30d2ba){const _0x183949=_0x19811e;this['_acknowledgeAwaitingIfReady']();for(let _0x27b005=0x0;_0x27b005<_0x30d2ba['length'];_0x27b005++){let _0x26e1cb=_0x30d2ba[_0x27b005],_0x8cd192=this['_getCurrentRevision']();if(!(_0x26e1cb[_0x183949(0x2fe)]<=_0x8cd192)){if(_0x26e1cb[_0x183949(0x2fe)]>_0x8cd192+0x1)return{'missingChangesets':!0x0};if(this[_0x183949(0x168)](_0x26e1cb)){this['_acknowledgeAwaiting']();continue;}this[_0x183949(0x292)](_0x26e1cb),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x19811e(0x292)](_0x7ddd86){const _0x383d01=_0x19811e;let _0x4c3fb8=_0x7ddd86,_0x370ef4=this[_0x383d01(0x21c)];if(_0x370ef4){let _0x4117ef=this['_transformService'][_0x383d01(0x330)]([_0x7ddd86],[_0x370ef4],!0x1);if(!_0x3c50a8(_0x4117ef))throw _0x4117ef[_0x383d01(0x2cd)];_0x4c3fb8=_0x4117ef[_0x383d01(0x3a7)][0x0],_0x370ef4=_0x4117ef['c2Prime'][0x0];}let _0x21dd03=this['_pendingMutations'];if(_0x21dd03[_0x383d01(0x2ab)]){let _0x21d914=this[_0x383d01(0x3d8)][_0x383d01(0x19d)](_0x4c3fb8,_0x21dd03);if(!_0x13dcd7(_0x21d914))throw _0x21d914[_0x383d01(0x2cd)];_0x4c3fb8=_0x21d914['c1Prime'],_0x21dd03=_0x21d914[_0x383d01(0x2ba)];}this['_executeRemoteChangeset'](_0x4c3fb8),_0x370ef4&&(_0x370ef4['baseRev']=this[_0x383d01(0x36b)]()),this[_0x383d01(0x21c)]=_0x370ef4,this[_0x383d01(0x33f)]=_0x21dd03;}[_0x19811e(0x196)](){const _0x4391cb=_0x19811e;if(!this[_0x4391cb(0x21c)]||this[_0x4391cb(0x1e6)]==null)return;let _0x35a493=this[_0x4391cb(0x36b)]();if(this[_0x4391cb(0x1e6)]<=_0x35a493)throw Error(_0x4391cb(0x3e0)+this[_0x4391cb(0x1e6)]+'.');this['_acknowledgedAwaitingRevision']===_0x35a493+0x1&&this[_0x4391cb(0x275)]();}['_acknowledgeAwaiting'](){const _0x2fcc4e=_0x19811e;this[_0x2fcc4e(0x323)](),this[_0x2fcc4e(0x21c)]=null,this[_0x2fcc4e(0x1e6)]=null;}[_0x19811e(0x168)](_0x39f0bb){const _0x1e2236=_0x19811e;let _0x8eb3eb=this[_0x1e2236(0x21c)];return!_0x8eb3eb||!_0x8eb3eb['sid']||_0x8eb3eb[_0x1e2236(0x334)]===null||_0x8eb3eb[_0x1e2236(0x334)]===void 0x0?!0x1:_0x39f0bb[_0x1e2236(0x25e)]===_0x8eb3eb[_0x1e2236(0x25e)]&&_0x39f0bb['sid']===_0x8eb3eb[_0x1e2236(0x22f)]&&_0x39f0bb[_0x1e2236(0x334)]===_0x8eb3eb['reqId'];}[_0x19811e(0x218)](){const _0x4279e0=_0x19811e;throw Error(_0x4279e0(0x2d5));}[_0x19811e(0x30a)](_0x56854d){const _0x17f981=_0x19811e;return this[_0x17f981(0x33f)][_0x17f981(0x335)](_0x56854d),this;}[_0x19811e(0x1dd)](_0x4c24c1){const _0x30e51d=_0x19811e;return this[_0x30e51d(0x12e)]['push'](_0x4c24c1),this;}[_0x19811e(0x33e)](_0x4b4ecb){const _0x218e09=_0x19811e;if(this['_awaitingChangeset']){let _0x4611b1=this[_0x218e09(0x36b)]();return _0x4b4ecb['revision']<=_0x4611b1||(_0x4611b1+0x1===_0x4b4ecb[_0x218e09(0x2fe)]?(this['_incrementRevisionNumber'](),this[_0x218e09(0x21c)]=null,this[_0x218e09(0x1e6)]=null):this[_0x218e09(0x1e6)]=_0x4b4ecb[_0x218e09(0x2fe)]),this;}if(_0x4b4ecb[_0x218e09(0x2fe)]<=this['_getCurrentRevision']())return this;throw Error(_0x218e09(0x1b3));}[_0x19811e(0x2d0)](_0x4f4aa7){const _0x3cdfa5=_0x19811e;return this[_0x3cdfa5(0x13a)](!!(_0x4f4aa7!=null&&_0x4f4aa7[_0x3cdfa5(0x2b6)]));}['onRemoteRetry'](){return this;}[_0x19811e(0x2de)](){const _0x174254=_0x19811e;return this['_injector'][_0x174254(0x1d2)](Z,this[_0x174254(0x25e)],this['type'],this[_0x174254(0x21c)],this[_0x174254(0x33f)],this[_0x174254(0x151)]);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x13a)](_0x1da4be){const _0x3e1672=_0x19811e;return this[_0x3e1672(0x302)][_0x3e1672(0x1d2)](X,this[_0x3e1672(0x25e)],this['type'],this[_0x3e1672(0x21c)],this['_pendingMutations'],this[_0x3e1672(0x151)],_0x1da4be);}};Q=H([V(0x7,_0x480e6d(_0x5a91fd)),V(0x8,_0x480e6d(_0x4e5cfb)),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x3d966a),V(0xc,_0x435fb7),V(0xd,_0x1e59a5(U))],Q);function bn(_0x48dd92,_0x51fda6,_0x4dc8bc,_0x1e8b81,_0x2c0f5f,_0x580afa){const _0x3d2a7d=_0x19811e;return _0x1e8b81&&_0x2c0f5f[_0x3d2a7d(0x2ab)]?_0x48dd92[_0x3d2a7d(0x1d2)](Y,_0x51fda6,_0x4dc8bc,_0x1e8b81,_0x2c0f5f,_0x580afa,void 0x0):_0x1e8b81?_0x48dd92[_0x3d2a7d(0x1d2)](J,_0x51fda6,_0x4dc8bc,_0x1e8b81,_0x580afa):_0x2c0f5f[_0x3d2a7d(0x2ab)]?_0x48dd92[_0x3d2a7d(0x1d2)](q,_0x51fda6,_0x4dc8bc,_0x2c0f5f,_0x580afa):_0x48dd92[_0x3d2a7d(0x1d2)](K,_0x51fda6,_0x4dc8bc,_0x580afa);}let $=class extends _0x39685b{get[_0x19811e(0x195)](){const _0x194581=_0x19811e;return this[_0x194581(0x301)];}constructor(_0x3d00bb,_0x348ca5,_0x37ef58,_0x57e82f,_0xe5b284,_0x37bf29,_0x388e77,_0x48d300,_0x26a23d,_0x40f26b,_0x16fa17,_0x4fceaa,_0x1df4e2,_0xc9e364){const _0xfc6731=_0x19811e;super(),this['unitID']=_0x3d00bb,this[_0xfc6731(0x23c)]=_0x348ca5,this['_type']=_0x37ef58,this[_0xfc6731(0x302)]=_0x57e82f,this[_0xfc6731(0x20d)]=_0xe5b284,this['_localeService']=_0x37bf29,this['_revisionService']=_0x388e77,this[_0xfc6731(0x373)]=_0x48d300,this[_0xfc6731(0x2e7)]=_0x26a23d,this[_0xfc6731(0x261)]=_0x40f26b,this[_0xfc6731(0x3aa)]=_0x16fa17,this[_0xfc6731(0x283)]=_0x4fceaa,this[_0xfc6731(0x399)]=_0x1df4e2,this[_0xfc6731(0x121)]=_0xc9e364,z(this,_0xfc6731(0x314),new _0x5d64e7(null)),z(this,_0xfc6731(0x2a4),this[_0xfc6731(0x314)]['asObservable']()),z(this,'_state',void 0x0),z(this,'_collaborationPaused',!0x1),z(this,_0xfc6731(0x1e8),''),z(this,_0xfc6731(0x1fc),0x0),z(this,'status$',this[_0xfc6731(0x2a4)][_0xfc6731(0x273)](_0x5f1f30(_0x4c424d=>_0x4c424d?_0x4c424d[_0xfc6731(0x18d)]:_0xfc6731(0x192)),_0x34e70e({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0xfc6731(0x1bf),!0x1),z(this,_0xfc6731(0x37b),[]);}async[_0x19811e(0x26e)](){const _0xdcf2b2=_0x19811e;if(this['state'])throw Error(_0xdcf2b2(0x26d));await this[_0xdcf2b2(0x28f)]();}[_0x19811e(0x281)](){const _0x5e766b=_0x19811e;return this[_0x5e766b(0x163)]=!0x0,_0x215dfb(()=>{const _0x54c6b4=_0x5e766b;this[_0x54c6b4(0x163)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x19811e(0x147)](_0x3c867a){const _0x2ebcdf=_0x19811e;this[_0x2ebcdf(0x226)](_0x3c867a);}['_updateState'](_0x48cb92){const _0x1f93d7=_0x19811e;this[_0x1f93d7(0x301)]=_0x48cb92,this[_0x1f93d7(0x314)][_0x1f93d7(0x2d6)](_0x48cb92);}async[_0x19811e(0x28f)](){const _0x2228fe=_0x19811e;if(this[_0x2228fe(0x1e2)](await this[_0x2228fe(0x2d3)]()),this[_0x2228fe(0x399)]){var _0x369055;(_0x369055=this['_singleActiveUnitService'])==null||_0x369055[_0x2228fe(0x1e5)](this[_0x2228fe(0x25e)]),this[_0x2228fe(0x34b)](this[_0x2228fe(0x399)][_0x2228fe(0x2a0)](this[_0x2228fe(0x25e)])[_0x2228fe(0x2c1)](_0x32a647=>{const _0x2390a0=_0x2228fe;this['_logService']['debug'](_0x2390a0(0x3b6),_0x2390a0(0x355),_0x32a647),_0x32a647===0x1?(this[_0x2390a0(0x373)]['emitEvent']({'id':_0x2390a0(0x190)}),this['_permissionService'][_0x2390a0(0x3d1)](new _0x404767(this[_0x2390a0(0x25e)])['id'],!0x1),this[_0x2390a0(0x283)][_0x2390a0(0x363)](!0x1)):(this[_0x2390a0(0x283)][_0x2390a0(0x3d1)](new _0x404767(this[_0x2390a0(0x25e)])['id'],!0x0),this[_0x2390a0(0x283)][_0x2390a0(0x363)](!0x0));}));}let _0x312cff=!0x1;return this[_0x2228fe(0x34b)](this[_0x2228fe(0x23c)][_0x2228fe(0x3a5)][_0x2228fe(0x2c1)](_0x32d403=>{_0x32d403===0x3?this['_toggleOnline'](_0x312cff):_0x32d403===0x2&&(_0x312cff=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x2228fe(0x23c)][_0x2228fe(0x360)][_0x2228fe(0x2c1)](_0x5d44d3=>{const _0x3aeda6=_0x2228fe;try{switch(_0x5d44d3['eventID']){case _0x27a7e8[_0x3aeda6(0x398)]:this[_0x3aeda6(0x297)](_0x52ab46(_0x5d44d3[_0x3aeda6(0x202)]));break;case _0x27a7e8[_0x3aeda6(0x203)]:this[_0x3aeda6(0x245)](_0x5d44d3['data']);break;case _0x27a7e8[_0x3aeda6(0x265)]:this['_onRemoteRejected']();break;case _0x27a7e8['CHANGESET_SHOULD_RETRY']:this[_0x3aeda6(0x376)](_0x5d44d3[_0x3aeda6(0x202)]);break;case _0x27a7e8[_0x3aeda6(0x26c)]:this['_onFetchMissResult'](_0x5d44d3[_0x3aeda6(0x202)][_0x3aeda6(0x188)][_0x3aeda6(0x1a3)](_0xed743=>_0x52ab46(_0xed743)));break;case _0x27a7e8[_0x3aeda6(0x336)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x27a7e8[_0x3aeda6(0x288)]:}}catch(_0x22a32e){throw console[_0x3aeda6(0x2cd)](_0x3aeda6(0x390),_0x22a32e),_0x22a32e;}})),this[_0x2228fe(0x301)];}[_0x19811e(0x176)](){this['_transitionLocked']=!0x1;}[_0x19811e(0x150)](){const _0x107ddc=_0x19811e;if(this[_0x107ddc(0x1bf)])throw Error(_0x107ddc(0x1f0));this[_0x107ddc(0x1bf)]=!0x0;}[_0x19811e(0x226)](_0x39cbff){const _0x3f1e47=_0x19811e;this[_0x3f1e47(0x150)](),this[_0x3f1e47(0x1e2)](this[_0x3f1e47(0x301)]['appendMutation'](_0x39cbff)),this[_0x3f1e47(0x176)]();}[_0x19811e(0x297)](_0x4ad6d3){const _0x3e4162=_0x19811e;if(!(_0x4ad6d3[_0x3e4162(0x2fe)]<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x3e4162(0x25e)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x4ad6d3);return;}this[_0x3e4162(0x13e)](_0x4ad6d3);}}['_exhaustRemoteChangesetQueue'](){const _0x5c33c9=_0x19811e;this['_remoteChangesetQueue'][_0x5c33c9(0x332)](_0x21e4c4=>this[_0x5c33c9(0x13e)](_0x21e4c4)),this[_0x5c33c9(0x37b)]=[];}['_applyRemoteChangeset'](_0x4540d4){const _0x18e9c3=_0x19811e;let _0x3b1a69=this[_0x18e9c3(0x20d)]['interceptor'][_0x18e9c3(0x32b)](this['_compressMutationService'][_0x18e9c3(0x352)][_0x18e9c3(0x14d)]()[_0x18e9c3(0x381)])(_0x4540d4[_0x18e9c3(0x16e)],null)||_0x4540d4[_0x18e9c3(0x16e)],_0x31f921={..._0x4540d4,'mutations':_0x3b1a69};this[_0x18e9c3(0x150)](),this[_0x18e9c3(0x1e2)](this[_0x18e9c3(0x301)][_0x18e9c3(0x1dd)](_0x31f921)),this[_0x18e9c3(0x176)]();}[_0x19811e(0x245)](_0x344ce3){const _0x4033fb=_0x19811e;this[_0x4033fb(0x150)](),this[_0x4033fb(0x1e2)](this[_0x4033fb(0x301)][_0x4033fb(0x33e)](_0x344ce3)),this['_unlockTransition']();}['_onRemoteRejected'](_0x62eae){const _0xf049b0=_0x19811e;this[_0xf049b0(0x150)](),this[_0xf049b0(0x1e2)](this['_state'][_0xf049b0(0x2d0)](_0x62eae)),this[_0xf049b0(0x176)]();}['_onRemoteRetry'](_0xba3f71){const _0x447530=_0x19811e;this['_lockTransition'](),this[_0x447530(0x1e2)](this[_0x447530(0x301)]['onRemoteRetry'](_0xba3f71)),this[_0x447530(0x176)]();}['_onFetchMissResult'](_0x400469){const _0x3bac32=_0x19811e;if(!(this[_0x3bac32(0x301)]instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x296dc8=_0x400469[_0x3bac32(0x1a3)](_0x285c44=>{const _0x2b0fc4=_0x3bac32;let _0x609393=this[_0x2b0fc4(0x20d)][_0x2b0fc4(0x352)][_0x2b0fc4(0x32b)](this[_0x2b0fc4(0x20d)][_0x2b0fc4(0x352)][_0x2b0fc4(0x14d)]()[_0x2b0fc4(0x381)])(_0x285c44['mutations'],null)||_0x285c44['mutations'];return{..._0x285c44,'mutations':_0x609393};});this[_0x3bac32(0x150)](),this[_0x3bac32(0x1e2)](this[_0x3bac32(0x301)][_0x3bac32(0x22d)](_0x296dc8)),this['_unlockTransition']();}['_toggleOffline'](){const _0x36f696=_0x19811e;this[_0x36f696(0x150)](),this[_0x36f696(0x1e2)](this[_0x36f696(0x301)][_0x36f696(0x2de)]()),this[_0x36f696(0x176)]();}['_toggleOnline'](_0x179868=!0x1){const _0x3a9e62=_0x19811e;this['_lockTransition'](),this['_updateState'](this[_0x3a9e62(0x301)][_0x3a9e62(0x214)]()),this[_0x3a9e62(0x176)]();let _0x53bfd9=this['_state'];_0x179868&&_0x53bfd9 instanceof K&&(this[_0x3a9e62(0x150)](),this[_0x3a9e62(0x1e2)](_0x53bfd9[_0x3a9e62(0x159)]()),this['_unlockTransition']());}async[_0x19811e(0x2d3)](){return new Promise(_0x663f20=>{const _0x64ca0b=_0x32e6;this[_0x64ca0b(0x23c)][_0x64ca0b(0x3a5)][_0x64ca0b(0x273)](_0x5c55cb(0x1))[_0x64ca0b(0x2c1)](async _0x741457=>{const _0x3d33f3=_0x64ca0b;_0x663f20(await this[_0x3d33f3(0x12b)](_0x741457===0x3));});});}['_createHandler'](){const _0x16ce72=_0x19811e;let _0x1dfe1b=this[_0x16ce72(0x25e)];return{'onStateChange':(_0x5d0e97,_0x1ac306)=>{const _0x241dc6=_0x16ce72;if(_0x5d0e97!==this[_0x241dc6(0x301)])throw Error(_0x241dc6(0x317)+_0x5d0e97[_0x241dc6(0x18d)]+'\x0aAfter:\x20'+_0x1ac306[_0x241dc6(0x18d)]+'\x0aCurrent:\x20'+this[_0x241dc6(0x301)][_0x241dc6(0x18d)]);this[_0x241dc6(0x1e2)](_0x1ac306);},'onSendChangeset':_0x24743e=>{const _0x13a6b3=_0x16ce72;_0x24743e[_0x13a6b3(0x22f)]||(_0x24743e[_0x13a6b3(0x22f)]=this[_0x13a6b3(0x1e8)],_0x24743e[_0x13a6b3(0x334)]=++this['_changesetReqId']);let _0x23416d={'eventID':_0x27a7e8[_0x13a6b3(0x1f6)],'data':{'unitID':_0x24743e[_0x13a6b3(0x25e)],'unitType':this[_0x13a6b3(0x27b)],'changeset':_0x24743e,'memberID':this['session'][_0x13a6b3(0x350)]()}};this[_0x13a6b3(0x23c)][_0x13a6b3(0x173)](_0x23416d,this[_0x13a6b3(0x25e)]);},'onMissingChangesets':({from:_0x431e4b,to:_0x3f5a7b})=>{const _0x4dbc24=_0x16ce72;this['_logService'][_0x4dbc24(0x1d1)]('[CollaborationEntity]',_0x4dbc24(0x27d)+_0x431e4b+_0x4dbc24(0x304)+_0x3f5a7b);let _0x36f84e={'eventID':_0x27a7e8[_0x4dbc24(0x39b)],'data':{'unitID':_0x1dfe1b,'unitType':this[_0x4dbc24(0x27b)],'from':_0x431e4b,'to':_0x3f5a7b}};this[_0x4dbc24(0x23c)][_0x4dbc24(0x173)](_0x36f84e,this[_0x4dbc24(0x25e)]);}};}async['_createInitialStateImpl'](_0x6ee127){const _0x392c02=_0x19811e;var _0x5e033e;let _0x72c599=await((_0x5e033e=this[_0x392c02(0x121)])==null?void 0x0:_0x5e033e[_0x392c02(0x152)](this['unitID'])),_0xb7a472=(_0x72c599==null?void 0x0:_0x72c599[_0x392c02(0x16e)])??[],_0x52c585=(_0x72c599==null?void 0x0:_0x72c599['awaitingChangeset'])??null,_0x274596=!!(_0x52c585!=null&&_0x52c585['sid'])&&!!(_0x52c585!=null&&_0x52c585['reqId']);this[_0x392c02(0x1e8)]=_0x274596?_0x52c585['sid']:_0x640bce(),this[_0x392c02(0x1fc)]=_0x274596?_0x52c585['reqId']:0x0;let _0x16fff4=this[_0x392c02(0x25e)];try{this['_replayCachedMutations'](_0x52c585,_0xb7a472);}catch(_0x28b581){this['_logService'][_0x392c02(0x2cd)](_0x28b581);}let _0x53011a=this[_0x392c02(0x36f)]();if(_0x6ee127){let _0x2d7b03=bn(this[_0x392c02(0x302)],_0x16fff4,this[_0x392c02(0x27b)],_0x52c585,_0xb7a472,_0x53011a);return _0x2d7b03 instanceof q?_0x2d7b03[_0x392c02(0x235)]():(_0x2d7b03 instanceof Y||_0x2d7b03 instanceof J)&&_0x2d7b03['resend'](),_0x2d7b03;}return this[_0x392c02(0x302)]['createInstance'](Z,_0x16fff4,this[_0x392c02(0x27b)],_0x52c585,_0xb7a472,_0x53011a);}[_0x19811e(0x3d2)](_0x410c66,_0x2e5edc){const _0x341c2d=_0x19811e;var _0x9e1cbc,_0x4adf88;let _0x4f15a5=this[_0x341c2d(0x20d)][_0x341c2d(0x352)][_0x341c2d(0x32b)](this['_compressMutationService'][_0x341c2d(0x352)]['getInterceptPoints']()[_0x341c2d(0x381)]);(_0x9e1cbc=_0x4f15a5((_0x410c66==null?void 0x0:_0x410c66[_0x341c2d(0x16e)])||[],null))==null||_0x9e1cbc[_0x341c2d(0x332)](_0xc77130=>this[_0x341c2d(0x3aa)]['executeCommand'](_0xc77130['id'],_0xc77130[_0x341c2d(0x359)])),(_0x4adf88=_0x4f15a5(_0x2e5edc||[],null))==null||_0x4adf88[_0x341c2d(0x332)](_0x4463=>this['_commandService'][_0x341c2d(0x144)](_0x4463['id'],_0x4463[_0x341c2d(0x359)]));}};$=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],$);let xn=class extends ${constructor(_0x43d29c,_0x40c788,_0x33eeda,_0x1084c6,_0x195b83,_0x5b24bc,_0x266b88,_0x5611b8,_0x27b102,_0x25e281,_0x51a953,_0x2c6b5a,_0x383374,_0x581db7,_0x448e06){const _0x531e2e=_0x19811e;super(_0x43d29c,_0x33eeda,_0x40c788,_0x1084c6,_0x195b83,_0x5b24bc,_0x266b88,_0x5611b8,_0x27b102,_0x25e281,_0x51a953,_0x2c6b5a,_0x581db7,_0x448e06),this[_0x531e2e(0x25e)]=_0x43d29c,this[_0x531e2e(0x392)]=_0x40c788,this[_0x531e2e(0x338)]=_0x383374,z(this,_0x531e2e(0x1cb),null);}[_0x19811e(0x3d0)](_0x59ec6d){const _0x340091=_0x19811e;this[_0x340091(0x1cb)]=_0x59ec6d;}[_0x19811e(0x194)](){const _0x733e51=_0x19811e;this[_0x733e51(0x1cb)]=null,super[_0x733e51(0x194)]();}['_createHandler'](){const _0x47363e=_0x19811e;let _0x36d6af=super[_0x47363e(0x36f)]();return _0x36d6af[_0x47363e(0x24b)]=_0x3e175f=>{const _0x41d595=_0x47363e;var _0x700d27,_0x1937c1;return(_0x700d27=this['_handlerCallback'])==null||(_0x1937c1=_0x700d27[_0x41d595(0x24b)])==null?void 0x0:_0x1937c1[_0x41d595(0x167)](_0x700d27,_0x3e175f);},_0x36d6af[_0x47363e(0x2ac)]=_0x2156f8=>{const _0x4d8533=_0x47363e;var _0xb86dab,_0x175fbe;return(_0xb86dab=this[_0x4d8533(0x1cb)])==null||(_0x175fbe=_0xb86dab[_0x4d8533(0x2ac)])==null?void 0x0:_0x175fbe['call'](_0xb86dab,_0x2156f8);},_0x36d6af[_0x47363e(0x138)]=_0x5f22a8=>{const _0x588d29=_0x47363e;var _0x4449be,_0x380f9f;return((_0x4449be=this['_handlerCallback'])==null||(_0x380f9f=_0x4449be[_0x588d29(0x138)])==null?void 0x0:_0x380f9f[_0x588d29(0x167)](_0x4449be,_0x5f22a8))??null;},_0x36d6af[_0x47363e(0x287)]=_0x1047b0=>{const _0x3c5f57=_0x47363e;var _0x507137,_0x16ecdb;return(_0x507137=this[_0x3c5f57(0x1cb)])==null||(_0x16ecdb=_0x507137[_0x3c5f57(0x287)])==null?void 0x0:_0x16ecdb[_0x3c5f57(0x167)](_0x507137,_0x1047b0);},_0x36d6af['onSyncEditingCollabCursor']=_0x2a2823=>{const _0x526479=_0x47363e;var _0x51e35e,_0x41404d;return(_0x51e35e=this[_0x526479(0x1cb)])==null||(_0x41404d=_0x51e35e[_0x526479(0x36e)])==null?void 0x0:_0x41404d[_0x526479(0x167)](_0x51e35e,_0x2a2823);},_0x36d6af['onTransformRemoteChangesetByIMECache']=_0x25b45e=>{const _0x558131=_0x47363e;var _0x4e513e,_0x1bceb1;return((_0x4e513e=this[_0x558131(0x1cb)])==null||(_0x1bceb1=_0x4e513e[_0x558131(0x258)])==null?void 0x0:_0x1bceb1['call'](_0x4e513e,_0x25b45e))??_0x25b45e;},_0x36d6af[_0x47363e(0x31b)]=_0xf9a4b=>{const _0x4d823f=_0x47363e;var _0x1376bb,_0x29a3d7;return((_0x1376bb=this[_0x4d823f(0x1cb)])==null||(_0x29a3d7=_0x1376bb['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x29a3d7['call'](_0x1376bb,_0xf9a4b))??_0xf9a4b;},_0x36d6af;}async['_init'](){const _0x12c5e4=_0x19811e;let _0x19f52b=await super[_0x12c5e4(0x28f)]();return this[_0x12c5e4(0x34b)](this['_docStateChangeManagerService']['docStateChange$'][_0x12c5e4(0x2c1)](_0x452a3e=>{const _0x4ab3c9=_0x12c5e4;if(_0x452a3e==null||_0x452a3e[_0x4ab3c9(0x22b)]!==this[_0x4ab3c9(0x25e)])return;let {commandId:_0x388292,redoState:_0x81afe5,unitId:_0x3077c7}=_0x452a3e,_0x13b00f={'id':_0x388292,'type':_0x40fa30['MUTATION'],'params':{'unitId':_0x3077c7,'actions':_0x81afe5[_0x4ab3c9(0x303)],'textRanges':null}};this['_onLocalMutation'](_0x13b00f);})),this[_0x12c5e4(0x34b)](this[_0x12c5e4(0x3aa)][_0x12c5e4(0x142)]((_0x39d6da,_0x55ca65)=>{const _0x248662=_0x12c5e4;if(_0x39d6da[_0x248662(0x392)]!==_0x40fa30[_0x248662(0x24f)]||_0x55ca65!=null&&_0x55ca65[_0x248662(0x1f2)]||_0x55ca65!=null&&_0x55ca65[_0x248662(0x3cb)]||_0x39d6da['id']===_0x3a809f['id'])return;let _0x56ad6e=_0x39d6da[_0x248662(0x359)];if((_0x56ad6e==null?void 0x0:_0x56ad6e[_0x248662(0x22b)])!==this[_0x248662(0x25e)])return;let _0x29076d=_0x39d6da,_0x69c8b3=this[_0x248662(0x20d)][_0x248662(0x352)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x248662(0x14d)]()['COMPRESS_MUTATION_SEND'])([_0x29076d],this[_0x248662(0x2e7)])||[_0x29076d];this['_onLocalMutation'](_0x69c8b3[0x0]);})),_0x19f52b;}};xn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x480e6d(_0x17b259)),V(0xd,_0x1e59a5(W)),V(0xe,_0x1e59a5(U))],xn);let Sn=class extends ${constructor(_0x20f01c,_0x1fface,_0x2312ce,_0x281d22,_0x1f305d,_0x135d6b,_0x4b7ede,_0x33456f,_0x8098ff,_0x1b5f49,_0x34e79d,_0x287976,_0x214443,_0x10fc52){const _0x5ef55f=_0x19811e;super(_0x20f01c,_0x2312ce,_0x1fface,_0x281d22,_0x1f305d,_0x135d6b,_0x4b7ede,_0x33456f,_0x8098ff,_0x1b5f49,_0x34e79d,_0x287976,_0x214443,_0x10fc52),this[_0x5ef55f(0x25e)]=_0x20f01c,this['type']=_0x1fface;}async['_init'](){const _0x183ac3=_0x19811e;let _0x302a39=await super[_0x183ac3(0x28f)]();return this[_0x183ac3(0x34b)](this['_commandService'][_0x183ac3(0x142)]((_0x5b0d08,_0x1064aa)=>{const _0x593b47=_0x183ac3;if(_0x5b0d08[_0x593b47(0x392)]!==_0x40fa30[_0x593b47(0x24f)]||_0x1064aa!=null&&_0x1064aa['fromCollab']||_0x1064aa!=null&&_0x1064aa[_0x593b47(0x3cb)])return;let _0x11daea=_0x5b0d08[_0x593b47(0x359)];if((_0x11daea==null?void 0x0:_0x11daea[_0x593b47(0x22b)])!==this[_0x593b47(0x25e)])return;let _0x52fa56=_0x5b0d08,_0x590854=this[_0x593b47(0x20d)][_0x593b47(0x352)]['fetchThroughInterceptors'](this[_0x593b47(0x20d)][_0x593b47(0x352)][_0x593b47(0x14d)]()[_0x593b47(0x1d3)])([_0x52fa56],this[_0x593b47(0x2e7)])||[_0x52fa56];this[_0x593b47(0x226)](_0x590854[0x0]);})),_0x302a39;}};Sn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],Sn);let Cn=class extends ${constructor(_0xb9beaf,_0x553833,_0x38122b,_0x25f9fd,_0x47c975,_0x339f83,_0x5d1e31,_0x17d2ac,_0x350511,_0x5dfdb5,_0xa9405d,_0x3ee86c,_0x5cc85c,_0x17f33c,_0x5a0024){const _0x244f88=_0x19811e;super(_0xb9beaf,_0x38122b,_0x553833,_0x25f9fd,_0x47c975,_0x339f83,_0x5d1e31,_0x350511,_0x5dfdb5,_0xa9405d,_0x3ee86c,_0x5cc85c,_0x17f33c,_0x5a0024),this['unitID']=_0xb9beaf,this[_0x244f88(0x392)]=_0x553833,this[_0x244f88(0x224)]=_0x17d2ac;}[_0x19811e(0x36f)](){const _0xe8e047=_0x19811e;let _0x115400=super[_0xe8e047(0x36f)]();return _0x115400[_0xe8e047(0x287)]=_0x477ec3=>this['_sheetTransformSelectionsService']['transformSelections'](_0x477ec3),_0x115400;}async[_0x19811e(0x28f)](){const _0x5d3775=_0x19811e;let _0x1dc246=await super[_0x5d3775(0x28f)]();return this[_0x5d3775(0x34b)](this[_0x5d3775(0x3aa)][_0x5d3775(0x142)]((_0x4cce6c,_0x40412f)=>{const _0xbd6619=_0x5d3775;if(_0x4cce6c['type']!==_0x40fa30[_0xbd6619(0x24f)]||_0x40412f!=null&&_0x40412f[_0xbd6619(0x1f2)]||_0x40412f!=null&&_0x40412f[_0xbd6619(0x3cb)])return;let _0x57b5d1=_0x4cce6c[_0xbd6619(0x359)];if((_0x57b5d1==null?void 0x0:_0x57b5d1[_0xbd6619(0x22b)])!==this[_0xbd6619(0x25e)])return;let _0x3218fe=_0x4cce6c,_0x5e2bce=this[_0xbd6619(0x20d)][_0xbd6619(0x352)][_0xbd6619(0x32b)](this[_0xbd6619(0x20d)][_0xbd6619(0x352)][_0xbd6619(0x14d)]()[_0xbd6619(0x1d3)])([_0x3218fe],this['_univerInstanceService'])||[_0x3218fe];this[_0xbd6619(0x226)](_0x5e2bce[0x0]);})),_0x1dc246;}};Cn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(Jt)),V(0x8,_0x480e6d(B)),V(0x9,_0x4f5fa8),V(0xa,_0x1ba700),V(0xb,_0xef393c),V(0xc,_0x2197a8),V(0xd,_0x1e59a5(W)),V(0xe,_0x1e59a5(U))],Cn);let wn=class extends ${constructor(_0x489e6f,_0x363f16,_0x13f6bd,_0x514ae3,_0x49f81c,_0x3e1f66,_0x16bd73,_0x4140bf,_0x11fabb,_0xe684c4,_0x48af8a,_0x310b40,_0x4bd866,_0x2170a7){const _0x3dc2c5=_0x19811e;super(_0x489e6f,_0x13f6bd,_0x363f16,_0x514ae3,_0x49f81c,_0x3e1f66,_0x16bd73,_0x4140bf,_0x11fabb,_0xe684c4,_0x48af8a,_0x310b40,_0x4bd866,_0x2170a7),this[_0x3dc2c5(0x25e)]=_0x489e6f,this['type']=_0x363f16;}async[_0x19811e(0x28f)](){const _0x1a5328=_0x19811e;let _0x4cb63d=await super[_0x1a5328(0x28f)]();return this[_0x1a5328(0x34b)](this['_commandService'][_0x1a5328(0x142)]((_0x37494a,_0x254a06)=>{const _0x198be5=_0x1a5328;if(_0x37494a['type']!==_0x40fa30[_0x198be5(0x24f)]||_0x254a06!=null&&_0x254a06['fromCollab']||_0x254a06!=null&&_0x254a06[_0x198be5(0x3cb)])return;let _0x4fa68f=_0x37494a['params'];if((_0x4fa68f==null?void 0x0:_0x4fa68f[_0x198be5(0x22b)])!==this[_0x198be5(0x25e)])return;let _0xab7710=_0x37494a,_0x2f797b=this[_0x198be5(0x20d)][_0x198be5(0x352)][_0x198be5(0x32b)](this['_compressMutationService'][_0x198be5(0x352)]['getInterceptPoints']()[_0x198be5(0x1d3)])([_0xab7710],this['_univerInstanceService'])||[_0xab7710];this[_0x198be5(0x226)](_0x2f797b[0x0]);})),_0x4cb63d;}};wn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],wn);let Tn=class extends ${constructor(_0x53f087,_0x34f49f,_0x22cfc5,_0x4dd44c,_0x5897dc,_0x2a352b,_0x51069f,_0x2c98e9,_0x129aa4,_0x2283af,_0x5eb3c3,_0x19dba6,_0x3bb1a2,_0x4e2dbe){const _0x4a2764=_0x19811e;super(_0x53f087,_0x22cfc5,_0x34f49f,_0x4dd44c,_0x5897dc,_0x2a352b,_0x51069f,_0x2c98e9,_0x129aa4,_0x2283af,_0x5eb3c3,_0x19dba6,_0x3bb1a2,_0x4e2dbe),this[_0x4a2764(0x25e)]=_0x53f087,this[_0x4a2764(0x392)]=_0x34f49f;}async[_0x19811e(0x28f)](){const _0x360ef4=_0x19811e;let _0x2316d1=await super[_0x360ef4(0x28f)]();return this[_0x360ef4(0x34b)](this['_commandService'][_0x360ef4(0x142)]((_0x588ecf,_0x336e68)=>{const _0x557fe4=_0x360ef4;if(_0x588ecf['type']!==_0x40fa30[_0x557fe4(0x24f)]||_0x336e68!=null&&_0x336e68[_0x557fe4(0x1f2)]||_0x336e68!=null&&_0x336e68[_0x557fe4(0x3cb)])return;let _0x25af95=_0x588ecf[_0x557fe4(0x359)];if((_0x25af95==null?void 0x0:_0x25af95[_0x557fe4(0x22b)])!==this[_0x557fe4(0x25e)])return;let _0x3eaf57=_0x588ecf,_0x5c7995=this[_0x557fe4(0x20d)][_0x557fe4(0x352)]['fetchThroughInterceptors'](this[_0x557fe4(0x20d)][_0x557fe4(0x352)][_0x557fe4(0x14d)]()[_0x557fe4(0x1d3)])([_0x3eaf57],this[_0x557fe4(0x2e7)])||[_0x3eaf57];this[_0x557fe4(0x226)](_0x5c7995[0x0]);})),_0x2316d1;}};Tn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],Tn);let En=class extends ${constructor(_0xd7aae3,_0x2d7208,_0x539ffc,_0x32f198,_0x12459b,_0x5a84b6,_0xb0f361,_0x14f0f0,_0x58eb21,_0x2fd483,_0x1bd965,_0x592e4f,_0x217ea8,_0x1255f7){const _0x2dd681=_0x19811e;super(_0xd7aae3,_0x539ffc,_0x2d7208,_0x32f198,_0x12459b,_0x5a84b6,_0xb0f361,_0x14f0f0,_0x58eb21,_0x2fd483,_0x1bd965,_0x592e4f,_0x217ea8,_0x1255f7),this[_0x2dd681(0x25e)]=_0xd7aae3,this['type']=_0x2d7208;}async['_init'](){const _0x1b2953=_0x19811e;let _0xa16198=await super[_0x1b2953(0x28f)]();return this[_0x1b2953(0x34b)](this[_0x1b2953(0x3aa)]['onMutationExecutedForCollab']((_0x42a2c2,_0x51ba28)=>{const _0x20b339=_0x1b2953;if(_0x42a2c2['type']!==_0x40fa30[_0x20b339(0x24f)]||_0x51ba28!=null&&_0x51ba28[_0x20b339(0x1f2)]||_0x51ba28!=null&&_0x51ba28[_0x20b339(0x3cb)])return;let _0x491a42=_0x42a2c2[_0x20b339(0x359)];if((_0x491a42==null?void 0x0:_0x491a42['unitId'])!==this['unitID'])return;let _0x1cc665=_0x42a2c2,_0x3cfba9=this[_0x20b339(0x20d)][_0x20b339(0x352)]['fetchThroughInterceptors'](this[_0x20b339(0x20d)][_0x20b339(0x352)][_0x20b339(0x14d)]()[_0x20b339(0x1d3)])([_0x1cc665],this[_0x20b339(0x2e7)])||[_0x1cc665];this['_onLocalMutation'](_0x3cfba9[0x0]);})),_0xa16198;}};En=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],En);const Dn=_0x538219(_0x19811e(0x2f0));function On(_0x5bd423){const _0x4d344c=_0x19811e;let _0x476e90=_0x5bd423['data'],_0x4d6155=JSON[_0x4d344c(0x3a8)](_0x476e90);switch(_0x4d6155[_0x4d344c(0x2d9)]){case _0x3b5ebc[_0x4d344c(0x1ca)]:case _0x3b5ebc[_0x4d344c(0x308)]:{let _0x2f0d2e=_0x4d6155[_0x4d344c(0x2a5)];return{..._0x4d6155,'data':_0x2f0d2e,'cmd':_0x4d6155['cmd']};}case _0x3b5ebc[_0x4d344c(0x1d9)]:{let _0x55b60b=_0x4d6155[_0x4d344c(0x249)];return{..._0x4d6155,'data':_0x55b60b,'cmd':_0x4d6155[_0x4d344c(0x2d9)]};}case _0x3b5ebc[_0x4d344c(0x1e7)]:{let _0x2a1f55=_0x4d6155['collaMsg'];switch(_0x2a1f55[_0x4d344c(0x13c)]){case _0x27a7e8[_0x4d344c(0x336)]:var _0x5374e3;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x5374e3=_0x2a1f55[_0x4d344c(0x1b7)])==null?void 0x0:_0x5374e3['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8['CHANGESET_ACK']:var _0x2be4e4;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x2be4e4=_0x2a1f55['csAckEvent'])==null?void 0x0:_0x2be4e4['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x398)]:var _0x53f1de;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x53f1de=_0x2a1f55[_0x4d344c(0x3c6)])==null?void 0x0:_0x53f1de['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x265)]:var _0x4d5583;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x4d5583=_0x2a1f55[_0x4d344c(0x358)])==null?void 0x0:_0x4d5583['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x1ba)]:var _0x33b8d4;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x33b8d4=_0x2a1f55[_0x4d344c(0x15c)])==null?void 0x0:_0x33b8d4['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x348)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x1a5)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x34d)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x13d)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x16d)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x1ce)]},'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x124)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['liveShareNewHost']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8['LIVESHARE_FETCH_OPERATIONS']:case _0x27a7e8[_0x4d344c(0x123)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x1bd)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x2e1)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['liveShareNewHost']},'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x344)]:return{..._0x4d6155,'data':_0x2a1f55,'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x1b6)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['commentUpdateEvent']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8['UPDATE_PERMISSION_OBJ']:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['updatePermissionObjEvent']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x137)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['shouldCloseConn']},'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x288)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x174)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};default:return _0x4d6155;}}default:return _0x4d6155;}}function kn(_0x139f42){const _0x247fa4=_0x19811e;switch(_0x139f42['cmd']){case _0x3b5ebc[_0x247fa4(0x1ca)]:case _0x3b5ebc[_0x247fa4(0x308)]:return JSON['stringify']({'cmd':_0x139f42[_0x247fa4(0x2d9)],'routeKey':_0x139f42[_0x247fa4(0x1bc)]});case _0x3b5ebc[_0x247fa4(0x2fb)]:{let _0x41c334;switch(_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x13c)]){case _0x27a7e8[_0x247fa4(0x348)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x348)],'updateCursorEvent':_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x16d)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x16d)],'leaveEvent':_0x139f42[_0x247fa4(0x202)]['data']};break;case _0x27a7e8['USERS_ENTER']:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x34d)],'joinEvent':_0x139f42[_0x247fa4(0x202)]['data']};break;case _0x27a7e8[_0x247fa4(0x124)]:_0x41c334={'eventID':_0x27a7e8['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x139f42[_0x247fa4(0x202)]['data']};break;case _0x27a7e8['LIVESHARE_OPERATION']:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x123)],'liveShareOperation':_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x2e1)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x2e1)],'liveShareTerminate':_0x139f42['data'][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x204)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x204)],'liveShareRequestHost':_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x320)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x320)]};break;default:_0x41c334={'eventID':_0x139f42['data'][_0x247fa4(0x13c)]};}return JSON[_0x247fa4(0x3a0)]({'cmd':_0x139f42[_0x247fa4(0x2d9)],'routeKey':_0x139f42[_0x247fa4(0x1bc)],'collaMsg':_0x41c334});}case _0x3b5ebc[_0x247fa4(0x1d9)]:return JSON[_0x247fa4(0x3a0)]({'cmd':_0x139f42['cmd'],'routeKey':_0x139f42[_0x247fa4(0x1bc)],'joinReq':_0x139f42[_0x247fa4(0x202)]});case _0x3b5ebc['LEAVE']:return JSON[_0x247fa4(0x3a0)]({'cmd':_0x139f42[_0x247fa4(0x2d9)],'routeKey':_0x139f42['routeKey'],'leaveReq':_0x139f42['data']});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const An=_0x538219(_0x19811e(0x13b));function jn(_0x4d2881,_0x91f4e0,_0x2f7520){const _0x4cfdaa=_0x19811e;return _0x4d2881+'/'+_0x91f4e0+_0x4cfdaa(0x186)+_0x2f7520+_0x4cfdaa(0x234);}let Mn=class extends _0x3d72df{constructor(_0x51840f,_0x2632be,_0x1a9c0a,_0x78256c,_0x50506e){const _0x90e5b8=_0x19811e;super(),this[_0x90e5b8(0x302)]=_0x51840f,this['_httpService']=_0x2632be,this[_0x90e5b8(0x216)]=_0x1a9c0a,this['_logService']=_0x78256c,this[_0x90e5b8(0x28d)]=_0x50506e;}[_0x19811e(0x231)](_0x536883){const _0x21c18c=_0x19811e;let _0x56a60a=this['_injector']['get'](_0xd03cee);if(!_0x56a60a)throw Error(_0x21c18c(0x1b0));let _0x1437ca=_0x56a60a[_0x21c18c(0x248)](_0x536883);if(!_0x1437ca)throw Error(_0x21c18c(0x2a3));let _0x4c0e43=new _0x49b66f(),_0x3b7ea9=new _0x33eafc();_0x4c0e43[_0x21c18c(0x2d1)](_0x1437ca[_0x21c18c(0x3ae)][_0x21c18c(0x2c1)](_0x5290d1=>_0x3b7ea9[_0x21c18c(0x2d6)](_0x5290d1))),_0x4c0e43[_0x21c18c(0x2d1)](_0x215dfb(()=>_0x3b7ea9['complete']()));let _0x1ec8c4=new _0x33eafc();_0x4c0e43[_0x21c18c(0x2d1)](_0x1437ca[_0x21c18c(0x239)][_0x21c18c(0x2c1)](_0x55d597=>_0x1ec8c4[_0x21c18c(0x2d6)](_0x55d597))),_0x4c0e43[_0x21c18c(0x2d1)](_0x215dfb(()=>_0x1ec8c4[_0x21c18c(0x279)]()));let _0x43f034=new _0x33eafc();_0x4c0e43[_0x21c18c(0x2d1)](_0x1437ca['message$'][_0x21c18c(0x2c1)](_0x3c98c2=>{const _0x34c1c7=_0x21c18c;let _0x2d87b4=On(_0x3c98c2);_0x43f034[_0x34c1c7(0x2d6)](_0x2d87b4);})),_0x4c0e43[_0x21c18c(0x2d1)](_0x215dfb(()=>_0x43f034[_0x21c18c(0x279)]()));let _0x2731b6,_0x6e4a82=()=>{const _0x2d13f6=_0x21c18c;_0x1ec8c4[_0x2d13f6(0x2d6)](new Event(_0x2d13f6(0x189))),_0x3b7ea9[_0x2d13f6(0x2d6)](new Event(_0x2d13f6(0x189))),_0x2731b6['close']();};return _0x2731b6={'memberID':'','close$':_0x3b7ea9[_0x21c18c(0x316)](),'error$':_0x1ec8c4['asObservable'](),'open$':_0x1437ca[_0x21c18c(0x372)],'message$':_0x43f034[_0x21c18c(0x316)](),'send':_0x2474da=>{const _0x1c42ae=_0x21c18c;if(_0x2474da[_0x1c42ae(0x2d9)]===_0x3b5ebc[_0x1c42ae(0x2fb)]){if(_0x2474da[_0x1c42ae(0x202)]['eventID']===_0x27a7e8[_0x1c42ae(0x1f6)]){this['_submitChangeset'](_0x2731b6,_0x2474da[_0x1c42ae(0x202)])[_0x1c42ae(0x34a)](_0x219071=>{const _0xeefea6=_0x1c42ae;this['_logService'][_0xeefea6(0x2cd)](_0x219071),_0x6e4a82();});return;}if(_0x2474da['data'][_0x1c42ae(0x13c)]===_0x27a7e8[_0x1c42ae(0x39b)]){let _0x4d091a=_0x2474da['data'];this[_0x1c42ae(0x362)](_0x4d091a)[_0x1c42ae(0x29f)](_0x205f20=>{const _0x5bf252=_0x1c42ae;_0x43f034[_0x5bf252(0x2d6)]({'cmd':_0x3b5ebc[_0x5bf252(0x1e7)],'code':_0x37b9b2['OK'],'routeKey':_0x4d091a[_0x5bf252(0x202)][_0x5bf252(0x25e)],'routeType':'','data':{'eventID':_0x27a7e8[_0x5bf252(0x26c)],'data':{'changesets':_0x205f20}}});})[_0x1c42ae(0x34a)](_0x262622=>{const _0x429539=_0x1c42ae;this[_0x429539(0x261)][_0x429539(0x2cd)](_0x262622),_0x6e4a82();});return;}}_0x1437ca[_0x1c42ae(0x173)](kn(_0x2474da));},'close':()=>{const _0x1f6690=_0x21c18c;_0x1437ca[_0x1f6690(0x17f)](),_0x4c0e43[_0x1f6690(0x194)]();}},_0x2731b6;}async['_submitChangeset'](_0x4eeb33,_0x539a3b){const _0x389b4e=_0x19811e;let {unitType:_0x3214c3,unitID:_0x2d2b27,changeset:_0x4a27ea}=_0x539a3b['data'],_0x4a1f84={'unitID':_0x2d2b27,'memberID':_0x4eeb33['memberID'],'type':_0x3214c3,'changeset':_0x3ec998(_0x4a27ea)},_0x73dcc2=this[_0x389b4e(0x216)][_0x389b4e(0x396)](R),_0x4fabd3=jn((_0x73dcc2==null?void 0x0:_0x73dcc2[_0x389b4e(0x14f)])??_0x389b4e(0x223),_0x3214c3,_0x2d2b27);try{await this[_0x389b4e(0x2d7)][_0x389b4e(0x128)](_0x4fabd3,{'body':_0x4a1f84});}catch(_0x40450a){throw this[_0x389b4e(0x261)][_0x389b4e(0x2cd)](_0x389b4e(0x351),_0x389b4e(0x1c9)),_0x40450a;}}async[_0x19811e(0x362)](_0x2a6a00){const _0x12729f=_0x19811e;let {unitID:_0x34eddc,from:_0x37204b,to:_0x31c3ff,unitType:_0x13e82b}=_0x2a6a00[_0x12729f(0x202)];return(await this[_0x12729f(0x28d)][_0x12729f(0x19a)]({'metadata':void 0x0},{'unitID':_0x34eddc,'type':_0x13e82b,'from':_0x37204b,'to':_0x31c3ff}))['changesets']['map'](_0x339674=>((_0x339674[_0x12729f(0x16e)]===null||_0x339674[_0x12729f(0x16e)]===void 0x0)&&(_0x339674['mutations']=[]),_0x339674));}};Mn=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x480e6d(_0x4288a3)),V(0x2,_0x2477d9),V(0x3,_0x1ba700),V(0x4,_0x14257b)],Mn);const Nn=_0x538219(_0x19811e(0x164));function Pn(_0x43a483={}){const _0x2c9ff3=_0x19811e;return _0x43a483['resolveUnit']?{'resolveUnit':_0x43a483[_0x2c9ff3(0x2ca)]}:{'resolveUnit':_0x121ca2=>({'target':{'unitId':_0x121ca2['unitId'],'unitType':_0x121ca2['unitType']}})};}function Fn(_0x2722d6,_0x52baee,_0x935e7b){const _0x35b82b=_0x19811e;let _0x5638ec=_0x935e7b[_0x35b82b(0x135)][_0x35b82b(0x2c6)];if(_0x5638ec!=null&&_0x5638ec[_0x35b82b(0x37d)]()==='')throw Error(_0x35b82b(0x2a9));if(!_0x935e7b['target'][_0x35b82b(0x22b)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x2722d6,'unitType':_0x52baee,'target':{'endpoint':_0x5638ec,'unitId':_0x935e7b[_0x35b82b(0x135)]['unitId'],'unitType':_0x935e7b[_0x35b82b(0x135)]['unitType']??_0x52baee},'changeset':_0x935e7b[_0x35b82b(0x136)]};}let In=class extends _0x3d72df{constructor(_0x4f9fd5,_0x25098e,_0x24ad66,_0x45dd56,_0x4f91ca,_0x474f71,_0xccf13){const _0x4d750b=_0x19811e;super(),this[_0x4d750b(0x302)]=_0x4f9fd5,this['_logService']=_0x25098e,this[_0x4d750b(0x216)]=_0x24ad66,this[_0x4d750b(0x391)]=_0x45dd56,this[_0x4d750b(0x1af)]=_0x4f91ca,this[_0x4d750b(0x2bd)]=_0x474f71,this[_0x4d750b(0x2b7)]=_0xccf13,z(this,_0x4d750b(0x25c),new Map()),z(this,_0x4d750b(0x1f4),new Map()),z(this,_0x4d750b(0x1a2),new Map()),z(this,_0x4d750b(0x3b9),new Map()),z(this,_0x4d750b(0x18e),this[_0x4d750b(0x183)](void 0x0)[_0x4d750b(0x18e)]['asObservable']()),z(this,'_status$',new _0x5d64e7(0x0)),z(this,_0x4d750b(0x17d),this[_0x4d750b(0x170)][_0x4d750b(0x316)]()),this[_0x4d750b(0x238)]();}[_0x19811e(0x238)](){const _0xfda968=_0x19811e;this[_0xfda968(0x2b7)]&&this[_0xfda968(0x34b)](this[_0xfda968(0x2b7)][_0xfda968(0x1d4)][_0xfda968(0x2c1)](_0x3efac5=>{const _0x2306ed=_0xfda968;_0x3efac5&&this['reconnect'](),_0x3efac5||this[_0x2306ed(0x3b9)]['forEach'](_0x491b4b=>this[_0x2306ed(0x230)](_0x491b4b));}));}[_0x19811e(0x194)](){const _0xd32c04=_0x19811e;super[_0xd32c04(0x194)](),this['_socketChannels'][_0xd32c04(0x332)](_0x1a1c50=>{const _0x5df3d0=_0xd32c04;var _0xa7aa1f,_0x1f0441;(_0xa7aa1f=_0x1a1c50[_0x5df3d0(0x181)])==null||_0xa7aa1f[_0x5df3d0(0x185)](),_0x1a1c50[_0x5df3d0(0x181)]=null,this[_0x5df3d0(0x3bf)](_0x1a1c50),this[_0x5df3d0(0x171)](_0x1a1c50),this[_0x5df3d0(0x319)](_0x1a1c50),(_0x1f0441=_0x1a1c50[_0x5df3d0(0x18e)][_0x5df3d0(0x29a)]())==null||_0x1f0441[_0x5df3d0(0x17f)](),_0x1a1c50['socket$']['complete']();}),this[_0xd32c04(0x3b9)][_0xd32c04(0x2e5)](),this[_0xd32c04(0x25c)][_0xd32c04(0x332)](_0x1b8732=>_0x1b8732[_0xd32c04(0x194)]()),this['_sessions'][_0xd32c04(0x2e5)](),this['_sessionChannels'][_0xd32c04(0x2e5)](),this[_0xd32c04(0x170)][_0xd32c04(0x279)]();}async[_0x19811e(0x254)](_0x33c254,_0x3eb7d5){const _0x24c140=_0x19811e;if(this[_0x24c140(0x25c)][_0x24c140(0x1d6)](_0x33c254))return this['_sessions'][_0x24c140(0x17c)](_0x33c254);let _0x54187c=this[_0x24c140(0x1f4)][_0x24c140(0x17c)](_0x33c254);if(_0x54187c)return _0x54187c;let _0xf4c6b0=this[_0x24c140(0x143)](_0x33c254,_0x3eb7d5);this['_pendingSessions']['set'](_0x33c254,_0xf4c6b0);try{return await _0xf4c6b0;}finally{this[_0x24c140(0x1f4)][_0x24c140(0x347)](_0x33c254);}}async[_0x19811e(0x143)](_0x3b8263,_0x2588f9){const _0x2f4f70=_0x19811e;let _0x3f2452=await this['_resolveSessionIdentity'](_0x3b8263,_0x2588f9),_0x157428=this[_0x2f4f70(0x183)](_0x3f2452[_0x2f4f70(0x135)]['endpoint']);this['_tryEnsureSocket'](_0x157428);let _0x32dc86=this[_0x2f4f70(0x302)][_0x2f4f70(0x1d2)](Gt,_0x3f2452,_0x157428['socket$']['asObservable']());return this[_0x2f4f70(0x25c)]['set'](_0x3b8263,_0x32dc86),this['_sessionChannels']['set'](_0x3b8263,_0x157428[_0x2f4f70(0x3b0)]),_0x32dc86;}[_0x19811e(0x24e)](_0x35ea8a){const _0x314762=_0x19811e;let _0x257f80=this['_sessions'][_0x314762(0x17c)](_0x35ea8a),_0x370627=this[_0x314762(0x1a2)][_0x314762(0x17c)](_0x35ea8a);if(_0x257f80&&(this[_0x314762(0x25c)][_0x314762(0x347)](_0x35ea8a),this[_0x314762(0x1a2)][_0x314762(0x347)](_0x35ea8a),_0x257f80[_0x314762(0x17f)]()),_0x370627&&!this[_0x314762(0x286)](_0x370627)){var _0x139515;let _0x3d0df9=this['_socketChannels'][_0x314762(0x17c)](_0x370627);_0x3d0df9==null||(_0x139515=_0x3d0df9[_0x314762(0x18e)]['getValue']())==null||_0x139515[_0x314762(0x17f)]();}}['reconnect'](){const _0x1fe641=_0x19811e;(this[_0x1fe641(0x3b9)]['size']?[...this[_0x1fe641(0x3b9)][_0x1fe641(0x309)]()]:[this['_getSocketChannel'](void 0x0)])[_0x1fe641(0x332)](_0x403796=>{const _0x45edbc=_0x1fe641;_0x403796['retryCount']=0x0,this[_0x45edbc(0x3bf)](_0x403796),this[_0x45edbc(0x28b)](_0x403796);});}['_clearRetryConnectingTimer'](_0x3c1b4b){const _0x992bc5=_0x19811e;_0x3c1b4b[_0x992bc5(0x2d4)]!=null&&(clearTimeout(_0x3c1b4b[_0x992bc5(0x2d4)]),_0x3c1b4b[_0x992bc5(0x2d4)]=null);}async[_0x19811e(0x30c)](_0x4ead9d){const _0x14bd7c=_0x19811e;let _0x474e90=this[_0x14bd7c(0x216)][_0x14bd7c(0x396)](R),_0x22e522=_0x4ead9d['endpoint']??(_0x474e90==null?void 0x0:_0x474e90[_0x14bd7c(0x252)])??_0x14bd7c(0x20a),_0x2e751a=await this[_0x14bd7c(0x391)][_0x14bd7c(0x248)](_0x22e522);return _0x4ead9d[_0x14bd7c(0x1da)]=_0x2e751a,_0x2e751a;}async[_0x19811e(0x2e6)](_0x4b4dae){const _0xca840a=_0x19811e;try{let _0x493cd3=_0x4b4dae[_0xca840a(0x18e)][_0xca840a(0x29a)]()??_0x4b4dae['candidateSocket']??await this[_0xca840a(0x30c)](_0x4b4dae);if(_0x493cd3){var _0x1a30b7;let _0xa52c9e=_0x493cd3[_0xca840a(0x173)];_0x493cd3[_0xca840a(0x173)]=_0x2cb310=>(_0x2cb310[_0xca840a(0x2d9)]!==_0x3b5ebc[_0xca840a(0x233)]&&this[_0xca840a(0x256)](_0x4b4dae),_0xa52c9e[_0xca840a(0x370)](_0x493cd3,[_0x2cb310])),(_0x1a30b7=_0x4b4dae['socketMessageSubscription'])==null||_0x1a30b7['unsubscribe'](),_0x4b4dae[_0xca840a(0x181)]=null,_0x4b4dae[_0xca840a(0x181)]=_0x493cd3[_0xca840a(0x1f1)][_0xca840a(0x2c1)](_0x4fb51d=>this['_onMessage'](_0x4b4dae,_0x493cd3,_0x4fb51d)),_0x493cd3['error$']['pipe'](_0x1c88c9(0x1))[_0xca840a(0x2c1)](_0x3547dd=>this[_0xca840a(0x261)][_0xca840a(0x2cd)](_0xca840a(0x2d2),_0x3547dd)),_0x493cd3[_0xca840a(0x372)][_0xca840a(0x273)](_0x1c88c9(0x1))[_0xca840a(0x2c1)](()=>{const _0x2f1b27=_0xca840a;this[_0x2f1b27(0x29c)](_0x4b4dae,_0x493cd3);}),_0x493cd3[_0xca840a(0x3ae)]['pipe'](_0x1c88c9(0x1))[_0xca840a(0x2c1)](_0x338cae=>{const _0x1a2318=_0xca840a;this[_0x1a2318(0x261)][_0x1a2318(0x1d1)](_0x1a2318(0x2c4),_0x1a2318(0x1b4),_0x338cae),this[_0x1a2318(0x264)](_0x4b4dae);});}}catch(_0x531867){this['_logService'][_0xca840a(0x2cd)](_0x531867),this[_0xca840a(0x264)](_0x4b4dae);}}['_onConnectionOpen'](_0x4ae6b1,_0x2e6116){const _0x173061=_0x19811e;this[_0x173061(0x261)][_0x173061(0x1d1)](_0x173061(0x2c4),'socket\x20open.'),_0x2e6116[_0x173061(0x173)]({'cmd':_0x3b5ebc[_0x173061(0x308)]}),this[_0x173061(0x256)](_0x4ae6b1);}['_onOffline'](_0x55a571){const _0x4eb179=_0x19811e;_0x55a571[_0x4eb179(0x30d)]=!0x1,_0x55a571[_0x4eb179(0x1da)]=null,this[_0x4eb179(0x170)][_0x4eb179(0x2d6)](0x2),_0x55a571[_0x4eb179(0x18e)]['next'](null),this['_clearTimeoutTimer'](_0x55a571),this[_0x4eb179(0x319)](_0x55a571);}[_0x19811e(0x264)](_0x5be72b){const _0x2b9c3d=_0x19811e;this[_0x2b9c3d(0x230)](_0x5be72b),this['_hasSessionsForEndpoint'](_0x5be72b[_0x2b9c3d(0x3b0)])&&(_0x5be72b[_0x2b9c3d(0x1df)]<(this[_0x2b9c3d(0x216)]['getConfig'](_0x2b9c3d(0x250))??0x3)?(this[_0x2b9c3d(0x1af)][_0x2b9c3d(0x24a)]({'id':_0x2b9c3d(0x23f)}),this[_0x2b9c3d(0x28b)](_0x5be72b)):this[_0x2b9c3d(0x1af)]['emitEvent']({'id':_0x2b9c3d(0x342)}));}[_0x19811e(0x28b)](_0x2e5ec5){const _0x10a857=_0x19811e;let _0x1c49ff=_0x2e5ec5['retryCount'],_0x442069=this['_configService'][_0x10a857(0x396)](R),_0x54a126=_0x1c49ff===0x0?0x0:((_0x442069==null?void 0x0:_0x442069[_0x10a857(0x2f7)])??0x4e20)*0x2**_0x1c49ff;_0x2e5ec5[_0x10a857(0x2d4)]=setTimeout(()=>{const _0xac5642=_0x10a857;clearTimeout(_0x2e5ec5['retryConnectingTimer']),_0x2e5ec5['retryConnectingTimer']=null,this[_0xac5642(0x2e6)](_0x2e5ec5);},_0x54a126),_0x2e5ec5['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0xf16ec0,_0x5503e4){const _0x2e76af=_0x19811e;return Fn(_0xf16ec0,_0x5503e4,await this[_0x2e76af(0x2bd)][_0x2e76af(0x2ca)]({'unitId':_0xf16ec0,'unitType':_0x5503e4}));}['_onMessage'](_0x3e5708,_0x5136e2,_0x3770f1){const _0x53c76a=_0x19811e;let {cmd:_0x543e6e}=_0x3770f1;_0x543e6e===_0x3b5ebc['HELLO']&&!_0x3e5708[_0x53c76a(0x30d)]&&(_0x5136e2['memberID']=_0x3770f1[_0x53c76a(0x202)][_0x53c76a(0x2ee)],_0x3e5708[_0x53c76a(0x1df)]=0x0,_0x3e5708[_0x53c76a(0x18e)]['next'](_0x5136e2),this[_0x53c76a(0x170)][_0x53c76a(0x2d6)](0x3),_0x3e5708['socketReady']=!0x0,_0x3e5708['candidateSocket']=null),_0x543e6e===_0x3b5ebc[_0x53c76a(0x1ca)]&&this['_clearTimeoutTimer'](_0x3e5708),this[_0x53c76a(0x256)](_0x3e5708);}[_0x19811e(0x286)](_0x247e60){const _0x20ef35=_0x19811e;return[...this[_0x20ef35(0x1a2)][_0x20ef35(0x309)]()][_0x20ef35(0x1aa)](_0x50ed2f=>_0x50ed2f===_0x247e60);}[_0x19811e(0x183)](_0x1d1314){const _0x5085ac=_0x19811e;let _0x3a416d=_0x1d1314??'',_0x34dc7f=this[_0x5085ac(0x3b9)][_0x5085ac(0x17c)](_0x3a416d);if(_0x34dc7f)return _0x34dc7f;let _0xdaa3ba={'endpointKey':_0x3a416d,'endpoint':_0x1d1314,'socket$':new _0x5d64e7(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x5085ac(0x3b9)][_0x5085ac(0x1ee)](_0x3a416d,_0xdaa3ba),_0xdaa3ba;}[_0x19811e(0x256)](_0x2b5517){const _0x35b1eb=_0x19811e;this[_0x35b1eb(0x319)](_0x2b5517),_0x2b5517[_0x35b1eb(0x276)]=setTimeout(()=>this['_sendHeartbeat'](_0x2b5517),this[_0x35b1eb(0x216)]['getConfig'](_0x35b1eb(0x2af))??0x7530);}[_0x19811e(0x2b2)](_0x143731){const _0x1c913b=_0x19811e;_0x143731[_0x1c913b(0x18e)][_0x1c913b(0x29a)]()[_0x1c913b(0x173)]({'cmd':_0x3b5ebc[_0x1c913b(0x1ca)]}),this[_0x1c913b(0x329)](_0x143731);}['_waitForHeartbeatResponse'](_0x2c1f90){const _0x200092=_0x19811e;_0x2c1f90[_0x200092(0x169)]=setTimeout(()=>this[_0x200092(0x264)](_0x2c1f90),this[_0x200092(0x216)][_0x200092(0x396)](_0x200092(0x2ae))??0x4e20);}['_clearHeartbeatTimer'](_0x3a68ed){const _0xad20fb=_0x19811e;_0x3a68ed[_0xad20fb(0x276)]!=null&&(clearTimeout(_0x3a68ed[_0xad20fb(0x276)]),_0x3a68ed[_0xad20fb(0x276)]=null);}['_clearTimeoutTimer'](_0x296a3c){const _0x22d16b=_0x19811e;_0x296a3c[_0x22d16b(0x169)]!=null&&(clearTimeout(_0x296a3c[_0x22d16b(0x169)]),_0x296a3c[_0x22d16b(0x169)]=null);}};In=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x1ba700),V(0x2,_0x2477d9),V(0x3,An),V(0x4,_0x480e6d(B)),V(0x5,Nn),V(0x6,_0x1e59a5(Dn))],In);let Ln=class extends _0x39685b{constructor(_0x25cae0,_0x39c6be,_0x7a2f10,_0x48eb13){const _0x2e8b11=_0x19811e;var _0x550c3b;super(),this[_0x2e8b11(0x302)]=_0x25cae0,this[_0x2e8b11(0x291)]=_0x39c6be,this['_configService']=_0x7a2f10,this[_0x2e8b11(0x2e7)]=_0x48eb13,z(this,_0x2e8b11(0x38d),new Map()),z(this,'_entityInit$',new _0x33eafc()),z(this,'entityInit$',this['_entityInit$'][_0x2e8b11(0x316)]()),((_0x550c3b=this[_0x2e8b11(0x216)][_0x2e8b11(0x396)]('collaboration-client.config'))==null?void 0x0:_0x550c3b['enableCollaboration'])!==!0x1&&this[_0x2e8b11(0x28f)]();}[_0x19811e(0x194)](){const _0x5d6a4d=_0x19811e;super[_0x5d6a4d(0x194)](),this[_0x5d6a4d(0x38d)][_0x5d6a4d(0x332)](_0x59ecd2=>_0x59ecd2[_0x5d6a4d(0x194)]()),this[_0x5d6a4d(0x38d)][_0x5d6a4d(0x2e5)]();}[_0x19811e(0x2c3)](_0x3e2c9e){const _0x5e05ee=_0x19811e;return this[_0x5e05ee(0x38d)][_0x5e05ee(0x17c)](_0x3e2c9e)??null;}[_0x19811e(0x346)](_0x3f013e){const _0x3a2fd4=_0x19811e;let _0x1cac3a=this[_0x3a2fd4(0x2c3)](_0x3f013e);return _0x1cac3a?_0x5b3fe9(_0x1cac3a):this[_0x3a2fd4(0x38f)][_0x3a2fd4(0x273)](_0xae526b(_0x227280=>_0x227280['unitID']===_0x3f013e));}[_0x19811e(0x3d7)](_0x3c293e){const _0x1050b4=_0x19811e;return _0x1773f3(this[_0x1050b4(0x346)](_0x3c293e)[_0x1050b4(0x273)](_0x49f6f7(()=>void 0x0)));}[_0x19811e(0x28f)](){const _0x532dcc=_0x19811e;this[_0x532dcc(0x2e7)][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x227)])[_0x532dcc(0x273)](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x1a0891=>{const _0x1dd543=_0x532dcc;let _0x56fd53=_0x1a0891[_0x1dd543(0x225)][_0x1dd543(0x382)](),_0x199c9f=await this[_0x1dd543(0x240)](_0x56fd53,_0x5d23e3[_0x1dd543(0x227)]);this['_entities'][_0x1dd543(0x1ee)](_0x56fd53,_0x199c9f);}),this['_univerInstanceService'][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x126)])[_0x532dcc(0x273)](_0x1b033d(this['dispose$']),_0x1ebfc0(0x10))['pipe'](_0xae526b(_0x384c14=>!_0x384c14[_0x532dcc(0x225)][_0x532dcc(0x382)]()['startsWith']('__')))[_0x532dcc(0x2c1)](async _0x2bb406=>{const _0x4e814c=_0x532dcc;let _0x283c20=_0x2bb406[_0x4e814c(0x225)][_0x4e814c(0x382)](),_0x232d4b=await this[_0x4e814c(0x240)](_0x283c20,_0x5d23e3[_0x4e814c(0x126)]);this[_0x4e814c(0x38d)]['set'](_0x283c20,_0x232d4b);}),this['_univerInstanceService'][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x305)])[_0x532dcc(0x273)](_0x1b033d(this['dispose$']),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x45654c=>{const _0x556613=_0x532dcc;let _0x4cd3ca=_0x45654c['unit'][_0x556613(0x382)](),_0x9107bb=await this[_0x556613(0x240)](_0x4cd3ca,_0x5d23e3[_0x556613(0x305)]);this[_0x556613(0x38d)]['set'](_0x4cd3ca,_0x9107bb);}),this[_0x532dcc(0x2e7)][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x328)])[_0x532dcc(0x273)](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x235955=>{const _0x3187a3=_0x532dcc;let _0x542c44=_0x235955['unit'][_0x3187a3(0x382)](),_0x55fcc0=await this[_0x3187a3(0x240)](_0x542c44,_0x5d23e3[_0x3187a3(0x328)]);this['_entities'][_0x3187a3(0x1ee)](_0x542c44,_0x55fcc0);}),this[_0x532dcc(0x2e7)][_0x532dcc(0x39e)](_0x5d23e3['UNIVER_BASE'])[_0x532dcc(0x273)](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x54274a=>{const _0x373148=_0x532dcc;let _0x1e5c24=_0x54274a[_0x373148(0x225)][_0x373148(0x382)](),_0x2c5883=await this[_0x373148(0x240)](_0x1e5c24,_0x5d23e3['UNIVER_BASE']);this[_0x373148(0x38d)]['set'](_0x1e5c24,_0x2c5883);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5d23e3[_0x532dcc(0x1f5)])['pipe'](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x448779=>{const _0x20a7f0=_0x532dcc;let _0x12b41c=_0x448779['unit'][_0x20a7f0(0x382)](),_0x2e8ea1=await this[_0x20a7f0(0x240)](_0x12b41c,_0x5d23e3['UNIVER_PDF']);this[_0x20a7f0(0x38d)][_0x20a7f0(0x1ee)](_0x12b41c,_0x2e8ea1);}),_0x5e3e6a(this[_0x532dcc(0x2e7)][_0x532dcc(0x131)](_0x5d23e3['UNIVER_SHEET']),this['_univerInstanceService'][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x126)]),this[_0x532dcc(0x2e7)][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x305)]),this[_0x532dcc(0x2e7)][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x328)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5d23e3[_0x532dcc(0x38e)]),this['_univerInstanceService'][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x1f5)]))[_0x532dcc(0x273)](_0x1b033d(this['dispose$']))[_0x532dcc(0x2c1)](_0x23f730=>{const _0xc14fd7=_0x532dcc;let _0x5b2991=_0x23f730['getUnitId'](),_0x253ca7=this[_0xc14fd7(0x38d)][_0xc14fd7(0x17c)](_0x5b2991);_0x253ca7&&(_0x253ca7[_0xc14fd7(0x194)](),this[_0xc14fd7(0x38d)][_0xc14fd7(0x347)](_0x5b2991));});}async[_0x19811e(0x240)](_0x39d689,_0x494ca2){const _0x507335=_0x19811e;let _0x48ee93=await this[_0x507335(0x291)][_0x507335(0x254)](_0x39d689),_0x570110=this[_0x507335(0x302)][_0x507335(0x1d2)](this[_0x507335(0x215)](_0x494ca2),_0x39d689,_0x494ca2,_0x48ee93);return await _0x570110[_0x507335(0x26e)](),this[_0x507335(0x38f)]['next'](_0x570110),_0x570110;}[_0x19811e(0x215)](_0xc871d1){const _0x402261=_0x19811e;switch(_0xc871d1){case _0x5d23e3[_0x402261(0x126)]:return xn;case _0x5d23e3[_0x402261(0x227)]:return Cn;case _0x5d23e3[_0x402261(0x305)]:return wn;case _0x5d23e3[_0x402261(0x328)]:return Tn;case _0x5d23e3[_0x402261(0x38e)]:return Sn;case _0x5d23e3[_0x402261(0x1f5)]:return En;default:throw Error(_0x402261(0x2cc)+_0xc871d1);}}};Ln=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x480e6d(In)),V(0x2,_0x2477d9),V(0x3,_0x4f5fa8)],Ln);var Rn='@univerjs-pro/collaboration-client',zn=_0x19811e(0x28e);let Bn=class extends _0x3d72df{constructor(_0x40c2f0,_0x186691){const _0x593b13=_0x19811e;super(),this[_0x593b13(0x2e7)]=_0x40c2f0,this[_0x593b13(0x216)]=_0x186691,this['_init']();}[_0x19811e(0x28f)](){const _0x1b1a33=_0x19811e;this[_0x1b1a33(0x34b)](this[_0x1b1a33(0x2e7)]['focused$'][_0x1b1a33(0x2c1)](()=>{const _0x46b709=_0x1b1a33;let _0x45e2ee=this[_0x46b709(0x2e7)][_0x46b709(0x1f8)](),_0x37d211=this[_0x46b709(0x216)]['getConfig']('DEFAULT_FILE_NAME')??_0x46b709(0x2f9);_0x45e2ee instanceof _0x37c076&&(_0x37d211=_0x45e2ee['name']),document['title']=_0x37d211;}));}};Bn=H([V(0x0,_0x4f5fa8),V(0x1,_0x2477d9)],Bn);const Vn=_0x538219(_0x19811e(0x2fc));let Hn=class{constructor(_0x1b13ea,_0x5d4ba1,_0x1773e6){const _0x808e59=_0x19811e;this[_0x808e59(0x2d7)]=_0x1b13ea,this[_0x808e59(0x216)]=_0x5d4ba1,this['_univerInstanceService']=_0x1773e6;}[_0x19811e(0x3a6)](){const _0x3655c7=_0x19811e;return this[_0x3655c7(0x2e2)]()[_0x3655c7(0x25d)]??{};}async['saveAttachment'](_0x4e906f){const _0x15f0d3=_0x19811e;let _0x50b672=this[_0x15f0d3(0x3a6)]();if(Un(_0x4e906f,_0x50b672),_0x50b672[_0x15f0d3(0x129)])return _0x50b672['upload'](_0x4e906f);let _0x568e97=await this[_0x15f0d3(0x35e)](_0x4e906f);return{'id':_0x568e97,'name':_0x4e906f[_0x15f0d3(0x1a8)],'mimeType':_0x4e906f['type'],'size':_0x4e906f[_0x15f0d3(0x3c3)],'sourceType':_0x19206b['UUID'],'source':_0x568e97};}async['getAttachmentUrl'](_0x5763fb,_0xab6223){const _0x11b55c=_0x19811e;if(_0xab6223!==_0x19206b[_0x11b55c(0x3de)])return _0x5763fb;let _0x3be29f=(await this[_0x11b55c(0x2d7)]['get'](this['_getSignURL']()[_0x11b55c(0x1c3)]('{fileID}',_0x5763fb)))['body'];if(_0x3be29f[_0x11b55c(0x2cd)]&&_0x3be29f['error'][_0x11b55c(0x236)]!==_0x21e177['OK'])throw _0x3be29f['error'];if(!_0x3be29f[_0x11b55c(0x17b)])throw Error(_0x11b55c(0x3c4));return _0x26be64(_0x3be29f['url'],this[_0x11b55c(0x32c)]());}async[_0x19811e(0x35e)](_0x44f548){const _0x438e2f=_0x19811e;let _0x5a6c59=this[_0x438e2f(0x2e7)]['getFocusedUnit'](),_0x5d415f=_0x5a6c59==null?void 0x0:_0x5a6c59[_0x438e2f(0x382)]();if(!_0x5d415f)throw Error(_0x438e2f(0x158));let _0x3331c6=new FormData();_0x3331c6[_0x438e2f(0x187)](_0x438e2f(0x1a1),_0x44f548);let _0x2c8e5f=this[_0x438e2f(0x3d5)]()+_0x438e2f(0x298)+_0x44f548[_0x438e2f(0x3c3)][_0x438e2f(0x374)]()+'&source='+_0x4a74cc[_0x438e2f(0x3c9)]+_0x438e2f(0x157)+encodeURIComponent(_0x5d415f),_0x286b0a=(await this[_0x438e2f(0x2d7)][_0x438e2f(0x128)](_0x2c8e5f,{'body':_0x3331c6}))['body'][_0x438e2f(0x289)];if(typeof _0x286b0a!=_0x438e2f(0x2f5)||!_0x286b0a)throw Error(_0x438e2f(0x378));return _0x286b0a;}[_0x19811e(0x3d5)](){const _0x46e24d=_0x19811e;return this[_0x46e24d(0x2e2)]()[_0x46e24d(0x3d4)]??_0x46e24d(0x389);}[_0x19811e(0x28c)](){const _0x739ba8=_0x19811e;return this[_0x739ba8(0x2e2)]()[_0x739ba8(0x251)]??_0x739ba8(0x331);}[_0x19811e(0x32c)](){const _0x3d6c28=_0x19811e;let _0x2d1fbe=this[_0x3d6c28(0x2e2)]();return _0x2d1fbe[_0x3d6c28(0x20f)]?_0x2d1fbe[_0x3d6c28(0x20f)]:typeof location<'u'?location[_0x3d6c28(0x2dd)]:_0x2d1fbe[_0x3d6c28(0x3d4)]??'';}[_0x19811e(0x2e2)](){const _0x33622f=_0x19811e;return this['_configService'][_0x33622f(0x396)](_0x33622f(0x2bb))??{};}};Hn=H([V(0x0,_0x480e6d(_0x4288a3)),V(0x1,_0x480e6d(_0x2477d9)),V(0x2,_0x480e6d(_0x4f5fa8))],Hn);function Un(_0x248775,_0x907e4e){const _0x62f0bf=_0x19811e;var _0x15ca94;if(_0x907e4e[_0x62f0bf(0x2b8)]!=null&&_0x248775[_0x62f0bf(0x3c3)]>_0x907e4e['maxSize'])throw Error(_0x62f0bf(0x269));if((_0x15ca94=_0x907e4e[_0x62f0bf(0x232)])!=null&&_0x15ca94[_0x62f0bf(0x2ab)]&&!_0x907e4e['accept']['some'](_0x4d6e10=>_0x248775[_0x62f0bf(0x392)]===_0x4d6e10||_0x248775['name'][_0x62f0bf(0x312)](_0x4d6e10)||_0x4d6e10['endsWith']('/*')&&_0x248775['type'][_0x62f0bf(0x19f)](_0x4d6e10[_0x62f0bf(0x141)](0x0,-0x1))))throw Error(_0x62f0bf(0x31f));}let Wn=class{constructor(_0x65b9c7,_0x554dd7,_0x1f57f8){const _0x2c5555=_0x19811e;this[_0x2c5555(0x216)]=_0x65b9c7,this[_0x2c5555(0x2d7)]=_0x554dd7,this[_0x2c5555(0x31c)]=_0x1f57f8,this[_0x2c5555(0x26e)]();}[_0x19811e(0x26e)](){const _0x210273=_0x19811e;this[_0x210273(0x2d7)][_0x210273(0x3ba)]({'priority':0x1,'interceptor':(_0x49a9ac,_0x1011dd)=>_0x1011dd(_0x49a9ac)[_0x210273(0x273)](_0x344f28(async _0x1143dc=>{const _0x5c3ee7=_0x210273;let _0x56cd48=_0x1143dc;if(_0x56cd48[_0x5c3ee7(0x18d)]===0x191){if(typeof window>'u')throw Error(_0x5c3ee7(0x2e0));if(window[_0x5c3ee7(0x243)](this[_0x5c3ee7(0x31c)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x493039=window['encodeURIComponent'](window['location'][_0x5c3ee7(0x197)]);window[_0x5c3ee7(0x1a9)][_0x5c3ee7(0x197)]=this[_0x5c3ee7(0x182)]()+_0x5c3ee7(0x1eb)+_0x493039;}}return _0x56cd48;}))});}['_getLoginPath'](){const _0x347698=_0x19811e;let _0x5349c6=this[_0x347698(0x216)][_0x347698(0x396)](R);return(_0x5349c6==null?void 0x0:_0x5349c6[_0x347698(0x1ae)])??_0x347698(0x2dc);}};Wn=H([V(0x0,_0x2477d9),V(0x1,_0x480e6d(_0x4288a3)),V(0x2,_0x480e6d(_0x1e8fb8))],Wn);let Gn=class extends _0x3d72df{constructor(_0x5e203b,_0x32a3a9){const _0x4ebb9b=_0x19811e;super(),this[_0x4ebb9b(0x34f)]=_0x5e203b,this[_0x4ebb9b(0x216)]=_0x32a3a9,z(this,_0x4ebb9b(0x2bf),!0x1),this['_initMergeInterceptor']();}[_0x19811e(0x2c0)](){const _0x235866=_0x19811e;let _0x9d8e5=this;this['disposeWithMe'](this[_0x235866(0x34f)][_0x235866(0x3ba)]({'priority':0x3e7,'interceptor':_0x49dd8f({'isMatch'(_0x5ea0ef){const _0x215966=_0x235866;var _0x120556;if(_0x5ea0ef[_0x215966(0x1c5)]===_0x215966(0x315)&&(_0x120556=_0x5ea0ef[_0x215966(0x2b4)])!=null&&_0x120556[_0x215966(0x1ea)]){let {objectID:_0x192a2a,objectType:_0x581473}=_0x5ea0ef[_0x215966(0x2b4)][_0x215966(0x1ea)]||{};if(!_0x192a2a||_0x581473===void 0x0)return!0x1;let _0xc143f=_0x9d8e5[_0x215966(0x154)]()+'/'+_0x581473+_0x215966(0x244)+encodeURIComponent(_0x192a2a)+'/allowed';if(_0x5ea0ef['url']===_0xc143f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x117e98){const _0xd0e874=_0x235866;var _0x256b84;return(_0x256b84=_0x117e98[_0xd0e874(0x2b4)])==null?void 0x0:_0x256b84[_0xd0e874(0x1ea)];},'mergeParamsToRequest'(_0x17037a,_0x5de442){const _0x390289=_0x235866;let _0x113267=_0x9d8e5['_getAPIPrefixPath']()+_0x390289(0x377),_0x3a6445=_0x17037a[_0x390289(0x3d9)]((_0x3739a9,_0x3cd45e)=>{const _0x379154=_0x390289;let {unitID:_0x5a5929,objectID:_0x2aae33,objectType:_0x187552,actions:_0x382fc2}=_0x3cd45e;return _0x3739a9[_0x5a5929]||(_0x3739a9[_0x5a5929]=Object[_0x379154(0x2cb)](null)),_0x3739a9[_0x5a5929][_0x2aae33]||(_0x3739a9[_0x5a5929][_0x2aae33]={'objectID':_0x2aae33,'objectType':_0x187552,'actions':[]}),_0x3739a9[_0x5a5929][_0x2aae33][_0x379154(0x303)][_0x379154(0x335)](..._0x382fc2),_0x3739a9;},Object['create'](null)),_0x38a41c=[];for(let _0x46efd2 in _0x3a6445)for(let _0x4c0a2d in _0x3a6445[_0x46efd2]){let {actions:_0x33a387,objectType:_0x47bdbc}=_0x3a6445[_0x46efd2][_0x4c0a2d],_0x17f597=[...new Set(_0x33a387)];_0x38a41c[_0x390289(0x335)]({'unitID':_0x46efd2,'objectID':_0x4c0a2d,'objectType':_0x47bdbc,'actions':_0x17f597});}return new _0x4c2e8f('POST',_0x113267,{'headers':_0x5de442[_0x390289(0x3b2)],'withCredentials':_0x5de442['withCredentials'],'responseType':_0x5de442[_0x390289(0x2b9)],'body':{'requests':_0x38a41c}});}},{'distributeResult'(_0x555c3a,_0x25c127){const _0x5e1092=_0x235866;let {objectActions:_0x513b89}=_0x555c3a;return _0x25c127[_0x5e1092(0x1a3)](_0x2443f2=>{const _0x6766b7=_0x5e1092;let {unitID:_0x148f13,objectID:_0x104a78,actions:_0x1699fb}=_0x2443f2,_0x9b546a=_0x513b89[_0x6766b7(0x180)](_0x446e8f=>_0x446e8f[_0x6766b7(0x25e)]===_0x148f13&&_0x446e8f['objectID']===_0x104a78);return{'config':_0x2443f2,'result':{'actions':_0x1699fb[_0x6766b7(0x1a3)](_0x31ebcf=>_0x9b546a==null?void 0x0:_0x9b546a['actions']['find'](_0x264973=>_0x264973['action']===_0x31ebcf))[_0x6766b7(0x27a)](_0x5ba271=>!!_0x5ba271),'error':_0x555c3a[_0x6766b7(0x2cd)]}};});}})}));}[_0x19811e(0x154)](){const _0x550d3f=_0x19811e;let _0x3df6ff=this[_0x550d3f(0x216)][_0x550d3f(0x396)](R);return(_0x3df6ff==null?void 0x0:_0x3df6ff[_0x550d3f(0x34e)])??_0x550d3f(0x36d);}async[_0x19811e(0x2cb)](_0x15c42e){const _0x4fa10a=_0x19811e;let _0x5cff36=this[_0x4fa10a(0x154)]()+'/'+_0x15c42e[_0x4fa10a(0x3b3)]+_0x4fa10a(0x237);return(await this[_0x4fa10a(0x34f)]['post'](_0x5cff36,{'body':_0x15c42e}))[_0x4fa10a(0x1ea)][_0x4fa10a(0x18f)]||'';}async['list'](_0x33d586){const _0x2af936=_0x19811e;let _0x4198e2=this[_0x2af936(0x154)]()+_0x2af936(0x1ff);return(await this['_HTTPService']['post'](_0x4198e2,{'body':_0x33d586}))[_0x2af936(0x1ea)][_0x2af936(0x165)];}async[_0x19811e(0x18a)](_0x1689d1){const _0x4ce917=_0x19811e;var _0x5d13bb;let _0x1bd9b1=this[_0x4ce917(0x154)]()+'/'+_0x1689d1[_0x4ce917(0x3b3)]+_0x4ce917(0x244)+encodeURIComponent(_0x1689d1[_0x4ce917(0x18f)]),_0x362bb3=await this[_0x4ce917(0x34f)]['put'](_0x1bd9b1,{'body':_0x1689d1});if((_0x362bb3==null||(_0x5d13bb=_0x362bb3[_0x4ce917(0x1ea)])==null||(_0x5d13bb=_0x5d13bb[_0x4ce917(0x2cd)])==null?void 0x0:_0x5d13bb[_0x4ce917(0x236)])!==0x1)throw Error(_0x4ce917(0x31e));}async[_0x19811e(0x2e8)](_0x4eed68){const _0x1a0573=_0x19811e;let _0x4bbaf2=this[_0x1a0573(0x154)]()+'/'+_0x4eed68[_0x1a0573(0x3b3)]+_0x1a0573(0x244)+encodeURIComponent(_0x4eed68['objectID'])+_0x1a0573(0x32f);return(await this['_HTTPService'][_0x1a0573(0x128)](_0x4bbaf2,{'body':_0x4eed68}))[_0x1a0573(0x1ea)][_0x1a0573(0x303)];}async['batchAllowed'](_0xf180f){const _0x2c94c2=_0x19811e;let _0x7c6a48=this['_getAPIPrefixPath']()+_0x2c94c2(0x377);return(await this['_HTTPService'][_0x2c94c2(0x128)](_0x7c6a48,{'body':{'requests':_0xf180f}}))[_0x2c94c2(0x1ea)][_0x2c94c2(0x2f1)];}async[_0x19811e(0x30f)](_0x361681){const _0x265c08=_0x19811e;let _0x175460=this[_0x265c08(0x154)]()+'/'+_0x361681[_0x265c08(0x3b3)]+_0x265c08(0x1be),_0x26461e=await this[_0x265c08(0x34f)][_0x265c08(0x128)](_0x175460,{'body':_0x361681});return{'roles':_0x26461e['body'][_0x265c08(0x371)],'actions':_0x26461e['body'][_0x265c08(0x303)]};}async[_0x19811e(0x242)](_0x17ad46){const _0x95dc14=_0x19811e;let _0x5e29bd=this[_0x95dc14(0x154)]()+_0x95dc14(0x326);await this[_0x95dc14(0x34f)]['delete'](_0x5e29bd,{'params':{'collaboratorID':_0x17ad46[_0x95dc14(0x26a)],'objectID':_0x17ad46[_0x95dc14(0x18f)],'unitID':_0x17ad46[_0x95dc14(0x25e)]}});}async[_0x19811e(0x386)](_0x5cbb64){const _0x196422=_0x19811e;let _0x1041ab=this[_0x196422(0x154)]()+_0x196422(0x326);await this[_0x196422(0x34f)][_0x196422(0x33d)](_0x1041ab,{'body':_0x5cbb64});}async['createCollaborator'](_0x1c55e1){const _0x56a8b0=_0x19811e;let _0x4a6480=this[_0x56a8b0(0x154)]()+_0x56a8b0(0x326);await this[_0x56a8b0(0x34f)][_0x56a8b0(0x128)](_0x4a6480,{'body':_0x1c55e1});}async[_0x19811e(0x280)](_0x171773){const _0x4db0f7=_0x19811e;let _0x119d73=this[_0x4db0f7(0x154)]()+'/collaborator',_0x559d60=await this[_0x4db0f7(0x34f)][_0x4db0f7(0x17c)](_0x119d73,{'params':{'objectID':_0x171773[_0x4db0f7(0x18f)],'unitID':_0x171773[_0x4db0f7(0x25e)]}});return this['setCfgEnableObjInherit'](_0x559d60['body'][_0x4db0f7(0x3b4)]??!0x1),_0x559d60['body']['collaborators'];}async['putCollaborators'](_0x458f45){const _0x4007e1=_0x19811e;let _0x2d6380=this[_0x4007e1(0x154)]()+'/collaborator';await this[_0x4007e1(0x34f)][_0x4007e1(0x145)](_0x2d6380,{'body':_0x458f45});}[_0x19811e(0x32d)](_0xdd8cab){const _0x4bfdc2=_0x19811e;this[_0x4bfdc2(0x2bf)]=_0xdd8cab;}[_0x19811e(0x368)](){const _0x3f7a98=_0x19811e;return this[_0x3f7a98(0x2bf)];}};Gn=H([V(0x0,_0x480e6d(_0x4288a3)),V(0x1,_0x480e6d(_0x2477d9))],Gn);function Kn(_0x58707d){const _0x4bcdbc=_0x19811e;let _0x10b699=atob(_0x58707d),_0xd49438=new Uint8Array(_0x10b699[_0x4bcdbc(0x2ab)]);for(let _0x114c92=0x0;_0x114c92<_0x10b699[_0x4bcdbc(0x2ab)];_0x114c92++)_0xd49438[_0x114c92]=_0x10b699['charCodeAt'](_0x114c92);return _0xd49438;}function qn(_0x5785dd){const _0x371b14=_0x19811e;let _0x36865d='';for(let _0x31873d=0x0;_0x31873d<_0x5785dd[_0x371b14(0x2ab)];_0x31873d++)_0x36865d+=String[_0x371b14(0x17a)](_0x5785dd[_0x31873d]);return btoa(_0x36865d);}function Jn(_0x4a122f,_0x1f5a12){const _0xd0fa31=_0x19811e;let _0x4bb260=Kn(_0x1f5a12),_0x24cec2=_0x439cec(0x10),_0x168ee2=_0x255255(_0x4bb260,_0x24cec2)[_0xd0fa31(0x255)](_0x383466(_0x4a122f));return qn(_0x3a4768(_0x24cec2,_0x168ee2));}function Yn(){const _0x439168=_0x19811e;let _0x24704f=_0x2312a4()[_0x439168(0x394)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x24704f){let _0x13b0e7={'time':Math[_0x439168(0x2b0)](Date[_0x439168(0x1de)]()/0x3e8),'domain':location[_0x439168(0x3b5)]};return Jn(JSON[_0x439168(0x3a0)](_0x13b0e7),_0x24704f);}}let Xn=class{constructor(_0x3da831){const _0x578a81=_0x19811e;this[_0x578a81(0x2d7)]=_0x3da831,this[_0x578a81(0x155)]();}[_0x19811e(0x155)](){const _0x29be5b=_0x19811e;this[_0x29be5b(0x2d7)]['registerHTTPInterceptor']({'interceptor':(_0x419ef5,_0x124f03)=>{const _0x14bf6b=_0x29be5b;let _0x5770fa=Yn();return _0x5770fa&&_0x419ef5[_0x14bf6b(0x3b2)][_0x14bf6b(0x1ee)]('x-univer-host',_0x5770fa),_0x124f03(_0x419ef5);}});}};Xn=H([V(0x0,_0x480e6d(_0x4288a3))],Xn);let Zn=class extends _0x39685b{constructor(_0x236184,_0x113add,_0x552793){const _0x52231f=_0x19811e;super(),this[_0x52231f(0x261)]=_0x236184,this[_0x52231f(0x179)]=_0x113add,this['_localCacheService']=_0x552793,z(this,_0x52231f(0x209),new _0x5d64e7(null)),z(this,_0x52231f(0x26b),new _0x33eafc()),z(this,_0x52231f(0x2be),this[_0x52231f(0x209)]['asObservable']()),z(this,_0x52231f(0x37e),this[_0x52231f(0x26b)]['asObservable']());}[_0x19811e(0x194)](){const _0x476bca=_0x19811e;super['dispose'](),this['_unitLoaded$'][_0x476bca(0x279)](),this['_unitInfo$'][_0x476bca(0x279)]();}async[_0x19811e(0x387)](_0x1954aa,_0xe327c3,_0x4b2864,_0x24c353){const _0x1f677f=_0x19811e;this[_0x1f677f(0x209)][_0x1f677f(0x2d6)]({'unitId':_0x1954aa,'type':_0xe327c3,'subUnitId':_0x24c353});let _0x28607b=null;switch(_0xe327c3){case _0x5d23e3[_0x1f677f(0x227)]:_0x28607b=await this['_snapshotService']['loadSheet'](_0x1954aa,_0x4b2864,void 0x0,{'initialSubUnitId':_0x24c353});break;case _0x5d23e3[_0x1f677f(0x126)]:_0x28607b=await this['_snapshotService'][_0x1f677f(0x220)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x305)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x3be)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x328)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x1e9)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x38e)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x153)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x1f5)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x200)](_0x1954aa,_0x4b2864);break;default:this[_0x1f677f(0x261)][_0x1f677f(0x2cd)](_0x1f677f(0x2c9),_0x1f677f(0x278));}return _0x28607b&&this['_unitLoaded$'][_0x1f677f(0x2d6)](_0x28607b),_0x28607b;}async[_0x19811e(0x357)](_0x17ac98,_0x20214e,_0x1873c4){const _0x32179d=_0x19811e;var _0x402db0;this[_0x32179d(0x209)][_0x32179d(0x2d6)]({'unitId':_0x17ac98,'type':_0x20214e,'subUnitId':_0x1873c4});let _0x339f4c=0x0,_0x20beda=await((_0x402db0=this[_0x32179d(0x121)])==null?void 0x0:_0x402db0[_0x32179d(0x152)](_0x17ac98));return _0x20beda&&(_0x20beda['awaitingChangeset']||_0x20beda[_0x32179d(0x16e)][_0x32179d(0x2ab)]!==0x0)&&(_0x339f4c=_0x20beda[_0x32179d(0x2f4)]),_0x339f4c===0x0&&this[_0x32179d(0x261)][_0x32179d(0x1d1)](_0x32179d(0x2c9),_0x32179d(0x397)),this['loadUnitOfRevision'](_0x17ac98,_0x20214e,_0x339f4c,_0x1873c4);}};Zn=H([V(0x0,_0x1ba700),V(0x1,_0x480e6d(_0x2367e2)),V(0x2,_0x1e59a5(U))],Zn);let Qn=class{constructor(_0xb5ae5d,_0x5356a6,_0x3ba0b8){const _0x36b2f2=_0x19811e;this[_0x36b2f2(0x2d7)]=_0xb5ae5d,this['_configService']=_0x5356a6,this[_0x36b2f2(0x2e7)]=_0x3ba0b8,z(this,_0x36b2f2(0x15d),0x0),z(this,'_change$',new _0x33eafc()),z(this,_0x36b2f2(0x160),this[_0x36b2f2(0x3b1)]),z(this,_0x36b2f2(0x37c),new Map());}[_0x19811e(0x1ad)](_0x12478c){const _0x485a2a=_0x19811e;this[_0x485a2a(0x15d)]=_0x12478c,this['_change$']['next'](_0x12478c);}[_0x19811e(0x23b)](_0x4f2fdd,_0x2dbfb4){const _0x300214=_0x19811e;if(_0x2dbfb4===_0x19206b['BASE64']){let _0x201dea=new Image();return _0x201dea[_0x300214(0x35f)]=_0x4f2fdd,_0x201dea;}return this[_0x300214(0x37c)][_0x300214(0x17c)](_0x4f2fdd);}[_0x19811e(0x1a0)](_0x165f64,_0x2c95cd,_0x947189){const _0x1b85b3=_0x19811e;_0x2c95cd!==_0x19206b['BASE64']&&_0x947189!=null&&this[_0x1b85b3(0x37c)]['set'](_0x165f64,_0x947189);}async[_0x19811e(0x1fd)](_0x1bf856){const _0x1983b7=_0x19811e;try{let _0x3ec90f=this[_0x1983b7(0x162)](this[_0x1983b7(0x28c)](),''+_0x1bf856),_0x5e7843=(await this['_httpService'][_0x1983b7(0x17c)](_0x3ec90f))[_0x1983b7(0x1ea)];if(_0x5e7843['error']&&_0x5e7843[_0x1983b7(0x2cd)][_0x1983b7(0x236)]===_0x21e177['OK']){let _0x42e628=_0x26be64(_0x5e7843['url'],this[_0x1983b7(0x32c)]());return Promise[_0x1983b7(0x2c5)](_0x42e628);}return Promise['reject'](_0x5e7843['error']);}catch(_0x28d38f){return Promise['reject'](_0x28d38f);}}async[_0x19811e(0x2cf)](_0x4d35f8){const _0x14470d=_0x19811e;let _0x4d218a='';if(!_0x595060[_0x14470d(0x139)](_0x4d35f8[_0x14470d(0x392)]))return this[_0x14470d(0x3cf)](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7[_0x14470d(0x294)]));if(_0x4d35f8[_0x14470d(0x3c3)]>_0x5a7afa())return this[_0x14470d(0x3cf)](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7[_0x14470d(0x19e)]));try{let _0x2a568a=new FormData();_0x2a568a['append'](_0x14470d(0x1a1),_0x4d35f8);let _0x36ac70=this['_univerInstanceService'][_0x14470d(0x1f8)](),_0x5dff0e=_0x36ac70==null?void 0x0:_0x36ac70['getUnitId']();if(!_0x5dff0e)throw Error(_0x14470d(0x172));let _0x2ed961=this[_0x14470d(0x3d5)]()+_0x14470d(0x298)+_0x4d35f8['size']['toString']()+_0x14470d(0x205)+_0x4a74cc[_0x14470d(0x3c9)]+_0x14470d(0x157)+encodeURIComponent(_0x5dff0e),_0x2e160d={'body':_0x2a568a},_0x16a58b=(await this[_0x14470d(0x2d7)]['post'](_0x2ed961,_0x2e160d))[_0x14470d(0x1ea)];if(typeof _0x16a58b[_0x14470d(0x289)]!=_0x14470d(0x2f5))return this['_decreaseWaiting'](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7['ERROR_IMAGE']));_0x4d218a=_0x16a58b['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7[_0x14470d(0x356)]));}return new Promise((_0x211bfb,_0x2350e7)=>{const _0x49bafc=_0x14470d;let _0x517710=new FileReader();_0x517710['readAsDataURL'](_0x4d35f8),_0x517710[_0x49bafc(0x34c)]=_0x2a5745=>{const _0x1057d2=_0x49bafc;var _0x16efd7;let _0x176c01=(_0x16efd7=_0x2a5745[_0x1057d2(0x135)])==null?void 0x0:_0x16efd7[_0x1057d2(0x2e9)];if(_0x176c01==null){this[_0x1057d2(0x3cf)](),_0x2350e7(Error(_0xe8fff7[_0x1057d2(0x356)]));return;}_0x211bfb({'imageId':_0x5f3466(0x6),'imageSourceType':_0x19206b['UUID'],'source':_0x4d218a,'base64Cache':_0x176c01,'status':_0xe8fff7['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x19811e(0x3d5)](){const _0x330b68=_0x19811e;let _0x265c89=this['_configService'][_0x330b68(0x396)](R);return(_0x265c89==null?void 0x0:_0x265c89[_0x330b68(0x3d4)])??_0x330b68(0x389);}[_0x19811e(0x28c)](){const _0x48d3ed=_0x19811e;let _0x1a87dc=this['_configService']['getConfig'](R);return(_0x1a87dc==null?void 0x0:_0x1a87dc[_0x48d3ed(0x251)])??'/universer-api/file/{fileID}/sign-url';}[_0x19811e(0x32c)](){const _0x5e8af7=_0x19811e;let _0x5f1e78=this['_configService'][_0x5e8af7(0x396)](R);return(_0x5f1e78==null?void 0x0:_0x5f1e78[_0x5e8af7(0x20f)])??location['origin'];}[_0x19811e(0x162)](_0xe108c9,_0x50df0d){const _0x3e7024=_0x19811e;return _0xe108c9[_0x3e7024(0x1c3)](_0x3e7024(0x217),_0x50df0d);}['_decreaseWaiting'](){const _0x392a9c=_0x19811e;--this[_0x392a9c(0x15d)],this[_0x392a9c(0x3b1)][_0x392a9c(0x2d6)](this[_0x392a9c(0x15d)]);}};Qn=H([V(0x0,_0x480e6d(_0x4288a3)),V(0x1,_0x2477d9),V(0x2,_0x480e6d(_0x4f5fa8))],Qn);let $n=class{constructor(_0x1e0189,_0x35d579){const _0x14cdc6=_0x19811e;this[_0x14cdc6(0x216)]=_0x1e0189,this[_0x14cdc6(0x34f)]=_0x35d579;}[_0x19811e(0x154)](){const _0x13e32a=_0x19811e;let _0x4f671a=this[_0x13e32a(0x216)][_0x13e32a(0x396)](R);return(_0x4f671a==null?void 0x0:_0x4f671a[_0x13e32a(0x34e)])??'/universer-api/authz';}async[_0x19811e(0x3a3)](_0x1a20af){const _0x51f3b8=_0x19811e;let _0x528772=this[_0x51f3b8(0x154)]()+_0x51f3b8(0x326);return{'list':[{'title':_0x51f3b8(0x178),'mentions':(await this['_HTTPService'][_0x51f3b8(0x17c)](_0x528772,{'params':{'objectID':_0x1a20af[_0x51f3b8(0x22b)],'unitID':_0x1a20af[_0x51f3b8(0x22b)]}}))[_0x51f3b8(0x1ea)][_0x51f3b8(0x17e)][_0x51f3b8(0x1a3)](_0x1928b6=>({'objectId':_0x1928b6['id'],'name':_0x1928b6[_0x51f3b8(0x325)][_0x51f3b8(0x1a8)],'metadata':{'icon':_0x1928b6['subject']['avatar']},'label':_0x1928b6[_0x51f3b8(0x325)][_0x51f3b8(0x1a8)],'objectType':_0x2cf8e7[_0x51f3b8(0x25b)]})),'metadata':{},'type':_0x2cf8e7[_0x51f3b8(0x25b)]}]};}};$n=H([V(0x0,_0x480e6d(_0x2477d9)),V(0x1,_0x480e6d(_0x4288a3))],$n);let er=class extends _0x39685b{constructor(_0x11b6f9,_0x4db643,_0x47fb8a,_0x58d192,_0x19841c,_0x5a8f3b){const _0x340db3=_0x19811e;super(),this['_injector']=_0x11b6f9,this[_0x340db3(0x2e7)]=_0x4db643,this[_0x340db3(0x283)]=_0x47fb8a,this['_authzIoService']=_0x58d192,this[_0x340db3(0x2d8)]=_0x19841c,this[_0x340db3(0x1af)]=_0x5a8f3b,z(this,_0x340db3(0x395),new Set()),this[_0x340db3(0x34b)](()=>this[_0x340db3(0x395)][_0x340db3(0x2e5)]()),this[_0x340db3(0x34b)](tr(this['_univerInstanceService'])['subscribe'](({unitId:_0x35629b})=>this[_0x340db3(0x395)][_0x340db3(0x347)](_0x35629b))),this[_0x340db3(0x210)](),this[_0x340db3(0x39a)](),[_0x5d23e3[_0x340db3(0x126)],_0x5d23e3[_0x340db3(0x305)],_0x5d23e3['UNIVER_BASE'],_0x5d23e3['UNIVER_BOARD']][_0x340db3(0x332)](_0x5e96f3=>{const _0x2ba13c=_0x340db3;this[_0x2ba13c(0x34b)](this[_0x2ba13c(0x2e7)][_0x2ba13c(0x131)](_0x5e96f3)[_0x2ba13c(0x2c1)](_0x5377e0=>{const _0x5798fe=_0x2ba13c;this[_0x5798fe(0x395)][_0x5798fe(0x2d1)](_0x5377e0[_0x5798fe(0x382)]()),this[_0x5798fe(0x302)][_0x5798fe(0x17c)](_0x38d5f0)[_0x5798fe(0x2fa)](_0x5377e0[_0x5798fe(0x382)]());}));});}[_0x19811e(0x39a)](){const _0x2bd420=_0x19811e;let _0x394e65=async(_0x59af34,_0xf440a)=>{const _0x47194f=_0x32e6;let _0x4ababd=await this[_0x47194f(0x2d8)][_0x47194f(0x254)](_0x59af34);this[_0x47194f(0x21a)]||this[_0x47194f(0x395)]['has'](_0x59af34)||!this[_0x47194f(0x2e7)][_0x47194f(0x3a2)](_0x59af34)||_0x4ababd['event$'][_0x47194f(0x273)](_0xae526b(_0x35583f=>_0x35583f['eventID']===_0x27a7e8[_0x47194f(0x137)]),_0x5e490d(_0x5e3e6a(this[_0x47194f(0x1a7)],this[_0x47194f(0x2e7)][_0x47194f(0x15a)]['pipe'](_0xae526b(_0x2f6c49=>_0x2f6c49[_0x47194f(0x382)]()===_0x59af34)))))[_0x47194f(0x2c1)](_0x5b4ccd=>{const _0xa9163b=_0x47194f;let {reason:_0x5efd17}=_0x5b4ccd[_0xa9163b(0x202)];this['_collaborationUIEventService']['emitEvent']({'id':'CLOSE_ROOM','data':_0x5efd17}),this[_0xa9163b(0x395)][_0xa9163b(0x2d1)](_0x59af34),this['_injector']['get'](_0x38d5f0)[_0xa9163b(0x2fa)](_0x59af34);let _0x173790=nr(_0xf440a);_0x173790!=null&&this[_0xa9163b(0x18c)](_0x59af34,_0x173790,_0x1f5848[_0xa9163b(0x228)],!0x1),this['_collaborationSessionService'][_0xa9163b(0x24e)](_0x59af34);});};tr(this[_0x2bd420(0x2e7)])['pipe'](_0xae526b(({unitId:_0x2e793a})=>!_0x5a7193(_0x2e793a)),_0x5e490d(this[_0x2bd420(0x1a7)]))[_0x2bd420(0x2c1)](({type:_0x72ab82,unitId:_0xc4dc59})=>{const _0x3a3e29=_0x2bd420;_0x394e65(_0xc4dc59,_0x72ab82)[_0x3a3e29(0x34a)](_0xd735fd=>this[_0x3a3e29(0x302)]['get'](_0x1ba700)[_0x3a3e29(0x2cd)](_0xd735fd));});}[_0x19811e(0x210)](){const _0x44d88e=_0x19811e;let _0x1dc372=async(_0x3b7d5d,_0x3d658c)=>{const _0x1ce2bf=_0x32e6;let _0x5d096b=await this[_0x1ce2bf(0x2d8)]['requireSession'](_0x3b7d5d);if(!(this[_0x1ce2bf(0x21a)]||this['_closedUnits'][_0x1ce2bf(0x1d6)](_0x3b7d5d)||!this['_univerInstanceService'][_0x1ce2bf(0x3a2)](_0x3b7d5d))){if(_0x3d658c===_0x5d23e3[_0x1ce2bf(0x227)]){let _0x4166f2=this[_0x1ce2bf(0x302)][_0x1ce2bf(0x17c)](_0x56ae16);await _0x4166f2['initWorkbookPermissionChange'](_0x3b7d5d),_0x5d096b[_0x1ce2bf(0x360)][_0x1ce2bf(0x273)](_0xae526b(_0x1cd2d5=>_0x1cd2d5['eventID']===_0x27a7e8[_0x1ce2bf(0x32a)]),_0x5e490d(_0x5e3e6a(this['dispose$'],_0x5d096b[_0x1ce2bf(0x360)][_0x1ce2bf(0x273)](_0xae526b(_0x58f7ee=>_0x58f7ee[_0x1ce2bf(0x13c)]===_0x27a7e8[_0x1ce2bf(0x137)])),this[_0x1ce2bf(0x2e7)]['unitDisposed$']['pipe'](_0xae526b(_0x5f1750=>_0x5f1750[_0x1ce2bf(0x382)]()===_0x3b7d5d)))))[_0x1ce2bf(0x2c1)](_0x440a5a=>{const _0x4871be=_0x1ce2bf;let {objectId:_0x10faba}=_0x440a5a[_0x4871be(0x202)];_0x10faba===_0x3b7d5d?_0x4166f2[_0x4871be(0x213)](_0x3b7d5d):_0x4166f2[_0x4871be(0x16f)](_0x3b7d5d,_0x10faba);});return;}_0x5d096b[_0x1ce2bf(0x360)]['pipe'](_0xae526b(_0x437905=>_0x437905[_0x1ce2bf(0x13c)]===_0x27a7e8[_0x1ce2bf(0x32a)]),_0x5e490d(_0x5e3e6a(this['dispose$'],_0x5d096b[_0x1ce2bf(0x360)][_0x1ce2bf(0x273)](_0xae526b(_0x5e5853=>_0x5e5853[_0x1ce2bf(0x13c)]===_0x27a7e8[_0x1ce2bf(0x137)])),this['_univerInstanceService']['unitDisposed$'][_0x1ce2bf(0x273)](_0xae526b(_0x5a1dcf=>_0x5a1dcf[_0x1ce2bf(0x382)]()===_0x3b7d5d)))))[_0x1ce2bf(0x2c1)](()=>{const _0x4df9b6=_0x1ce2bf;this['_refreshUnitPermission'](_0x3b7d5d,_0x3d658c)[_0x4df9b6(0x34a)](_0x1ddd96=>this[_0x4df9b6(0x302)][_0x4df9b6(0x17c)](_0x1ba700)[_0x4df9b6(0x2cd)](_0x1ddd96));}),await this[_0x1ce2bf(0x23a)](_0x3b7d5d,_0x3d658c);}};tr(this[_0x44d88e(0x2e7)])[_0x44d88e(0x273)](_0xae526b(({unitId:_0x5ea4f4})=>!_0x5a7193(_0x5ea4f4)),_0x5e490d(this[_0x44d88e(0x1a7)]))[_0x44d88e(0x2c1)](({type:_0x36eab9,unitId:_0x5acfc3})=>{const _0x5ced3f=_0x44d88e;_0x1dc372(_0x5acfc3,_0x36eab9)['catch'](_0x24e449=>this['_injector'][_0x5ced3f(0x17c)](_0x1ba700)['error'](_0x24e449));});}async[_0x19811e(0x23a)](_0x25d126,_0xfa9325){const _0x248c61=_0x19811e;let _0x20389b=nr(_0xfa9325);if(_0x20389b==null)return;let _0x1fbba2=this['_injector'][_0x248c61(0x17c)](_0x38d5f0);if(_0x1fbba2['supports']({'unitId':_0x25d126,'objectId':_0x25d126,'objectType':_0x20389b})){await _0x1fbba2['refreshUnit'](_0x25d126);return;}let _0x8b41cb=this[_0x248c61(0x25f)](_0x25d126,_0x20389b);if(!_0x8b41cb[_0x248c61(0x2ab)])return;let _0x18c649=await this[_0x248c61(0x148)][_0x248c61(0x2e8)]({'objectID':_0x25d126,'objectType':_0x20389b,'unitID':_0x25d126,'actions':_0x8b41cb[_0x248c61(0x1a3)](({action:_0x1ce138})=>_0x1ce138)});this[_0x248c61(0x21a)]||this[_0x248c61(0x395)][_0x248c61(0x1d6)](_0x25d126)||!this[_0x248c61(0x2e7)]['getUnit'](_0x25d126)||_0x18c649[_0x248c61(0x332)](_0x2bf7c6=>{const _0x591c62=_0x248c61;let _0x19a136=_0x2bf7c6[_0x591c62(0x313)],_0x380f20=_0x2bf7c6[_0x591c62(0x2e8)];_0x19a136!=null&&_0x380f20!=null&&_0x8b41cb[_0x591c62(0x27a)](_0x1e27d9=>_0x1e27d9[_0x591c62(0x313)]===_0x19a136)[_0x591c62(0x332)](_0x3ab3ae=>this[_0x591c62(0x283)]['updatePermissionPoint'](_0x3ab3ae['id'],_0x380f20));});}[_0x19811e(0x25f)](_0x2ff7ab,_0x1bee50){const _0x4651f8=_0x19811e;let _0x3fbc86=[];return this[_0x4651f8(0x283)][_0x4651f8(0x13f)]()[_0x4651f8(0x332)]((_0x4158a7,_0x506d1e)=>{const _0x1d8c8e=_0x4651f8;_0x4158a7[_0x1d8c8e(0x2c1)](_0x2a99c4=>{const _0x56c22a=_0x1d8c8e;_0x2a99c4['type']===_0x1bee50&&_0x56c22a(0x22b)in _0x2a99c4&&_0x2a99c4['unitId']===_0x2ff7ab&&(!(_0x56c22a(0x300)in _0x2a99c4)||_0x2a99c4[_0x56c22a(0x300)]===_0x2ff7ab)&&_0x3fbc86[_0x56c22a(0x335)]({'id':_0x506d1e,'action':_0x2a99c4[_0x56c22a(0x27e)]});})[_0x1d8c8e(0x185)]();}),_0x3fbc86;}[_0x19811e(0x18c)](_0x152f88,_0x33678d,_0x479200,_0x4dd2c0){const _0x368e38=_0x19811e;this[_0x368e38(0x283)]['getAllPermissionPoint']()['forEach']((_0x462da3,_0x532799)=>{const _0x46597e=_0x368e38;let _0xe06296=!0x1;_0x462da3[_0x46597e(0x2c1)](_0x3671ff=>{const _0x5edd84=_0x46597e;_0xe06296=_0x3671ff[_0x5edd84(0x392)]===_0x33678d&&_0x3671ff[_0x5edd84(0x27e)]===_0x479200&&'unitId'in _0x3671ff&&_0x3671ff[_0x5edd84(0x22b)]===_0x152f88&&(!('objectId'in _0x3671ff)||_0x3671ff[_0x5edd84(0x300)]===_0x152f88);})['unsubscribe'](),_0xe06296&&this['_permissionService'][_0x46597e(0x3d1)](_0x532799,_0x4dd2c0);});}};er=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x4f5fa8),V(0x2,_0x2197a8),V(0x3,_0x3a226b),V(0x4,_0x480e6d(In)),V(0x5,_0x480e6d(B))],er);function tr(_0xd17465){const _0xf45ac6=_0x19811e;return _0x5e3e6a(...[_0x5d23e3['UNIVER_SHEET'],_0x5d23e3[_0xf45ac6(0x126)],_0x5d23e3[_0xf45ac6(0x305)],_0x5d23e3[_0xf45ac6(0x328)],_0x5d23e3[_0xf45ac6(0x38e)]][_0xf45ac6(0x1a3)](_0x13d58a=>_0xd17465['getTypeOfUnitAdded$'](_0x13d58a)[_0xf45ac6(0x273)](_0x49f6f7(_0x5b9220=>({'type':_0x13d58a,'unitId':_0x5b9220[_0xf45ac6(0x225)][_0xf45ac6(0x382)]()})))));}function nr(_0x13e3b5){const _0x5b62d8=_0x19811e;switch(_0x13e3b5){case _0x5d23e3[_0x5b62d8(0x227)]:return _0x5e7d94[_0x5b62d8(0x2a7)];case _0x5d23e3[_0x5b62d8(0x126)]:return _0x5e7d94['Document'];case _0x5d23e3['UNIVER_SLIDE']:return _0x5e7d94[_0x5b62d8(0x383)];case _0x5d23e3[_0x5b62d8(0x328)]:return _0x5e7d94['Board'];case _0x5d23e3[_0x5b62d8(0x38e)]:return _0x5e7d94[_0x5b62d8(0x3e1)];default:return;}}let rr=class{constructor(_0x16d8cd,_0x465692){this['_configService']=_0x16d8cd,this['_httpService']=_0x465692;}async[_0x19811e(0x318)](_0x41a37d,_0x2a2845){const _0x9d7a33=_0x19811e;var _0x448312;let {unitID:_0x1fbdf1,type:_0x3d3306,revision:_0x55ab3a=0x0}=_0x2a2845,_0x3a3b5a=this[_0x9d7a33(0x247)]()+'/'+_0x3d3306+'/unit/'+_0x1fbdf1+_0x9d7a33(0x3ab)+_0x55ab3a,_0x42dcf2=(await this[_0x9d7a33(0x2d7)][_0x9d7a33(0x17c)](_0x3a3b5a))[_0x9d7a33(0x1ea)],_0x348464=(_0x448312=_0x42dcf2[_0x9d7a33(0x2ed)])==null?void 0x0:_0x448312['workbook'];if(_0x348464){let _0x1e71da=_0x348464==null?void 0x0:_0x348464[_0x9d7a33(0x1ec)];_0x348464[_0x9d7a33(0x1ec)]=_0xa79221[_0x9d7a33(0x393)](_0x4ce680(_0x1e71da)),Object['entries'](_0x348464[_0x9d7a33(0x1f7)])[_0x9d7a33(0x332)](([,_0x371749])=>{const _0x26ef0f=_0x9d7a33;let _0x1cd4b8=_0x371749[_0x26ef0f(0x1ec)];_0x371749[_0x26ef0f(0x1ec)]=_0xa79221['encode'](_0x4ce680(_0x1cd4b8));});}return _0x42dcf2;}async['getSheetBlock'](_0x3341eb,_0xbe12cc){const _0x345af9=_0x19811e;let {unitID:_0x1b7a7d,type:_0x5e1aef,blockID:_0x40353d}=_0xbe12cc,_0x41ce48=this[_0x345af9(0x16c)]()+'/'+_0x5e1aef+_0x345af9(0x186)+_0x1b7a7d+_0x345af9(0x39c)+_0x40353d;return(await this[_0x345af9(0x2d7)][_0x345af9(0x17c)](_0x41ce48))['body'];}async[_0x19811e(0x253)](_0x48fe0d,_0x35fd58){const _0x4490a6=_0x19811e;let {unitID:_0x403a2e,type:_0x5bc6c2,blockID:_0x714c10}=_0x35fd58,_0x3bab48=this[_0x4490a6(0x16c)]()+_0x4490a6(0x39c)+_0x5bc6c2+_0x4490a6(0x186)+_0x403a2e+'/block/'+_0x714c10;return(await this[_0x4490a6(0x2d7)][_0x4490a6(0x17c)](_0x3bab48))[_0x4490a6(0x1ea)];}async[_0x19811e(0x19a)](_0x575528,_0xa3b550){const _0x44d6fc=_0x19811e;let {unitID:_0x42be3,type:_0xdbc8cb,from:_0xaad239,to:_0x343b3d}=_0xa3b550,_0x5a78e1=this[_0x44d6fc(0x16c)]()+'/'+_0xdbc8cb+_0x44d6fc(0x186)+_0x42be3+_0x44d6fc(0x198)+_0xaad239+_0x44d6fc(0x268)+_0x343b3d;return(await this['_httpService'][_0x44d6fc(0x17c)](_0x5a78e1))['body'];}[_0x19811e(0x247)](){const _0x29d973=_0x19811e;return this['_configService']['getConfig'](_0x29d973(0x2b5))??this[_0x29d973(0x16c)]();}[_0x19811e(0x16c)](){const _0x217eae=_0x19811e;let _0x22400c=this[_0x217eae(0x216)]['getConfig'](R);return(_0x22400c==null?void 0x0:_0x22400c['snapshotServerUrl'])??_0x217eae(0x380);}async[_0x19811e(0x35d)](_0x2e75ff,_0x5c9a5f){const _0x5275a2=_0x19811e;let _0x51feed=_0x5275a2(0x361)+_0x5c9a5f[_0x5275a2(0x392)]+_0x5275a2(0x186)+_0x5c9a5f['unitID']+_0x5275a2(0x299);return(await this['_httpService'][_0x5275a2(0x17c)](_0x51feed,{'params':{'resourceId':JSON['stringify'](_0x5c9a5f['resourceIDs'])}}))[_0x5275a2(0x1ea)];}[_0x19811e(0x26f)](){const _0x1ed675=_0x19811e;throw Error(_0x1ed675(0x366));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x19811e(0x1c8)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x19811e(0x2ad)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x2642aa=_0x19811e;throw Error(_0x2642aa(0x366));}[_0x19811e(0x295)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};rr=H([V(0x0,_0x2477d9),V(0x1,_0x480e6d(_0x4288a3))],rr);function _0x1be8(){const _0x428d3b=['encrypt','_rescheduleHeartbeat','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformRemoteChangesetByIMECache','_emitMembers','function','PERSON','_sessions','attachment','unitID','_getUnitPermissionPoints','_showConflictProcessingNotification','_logService','IDLE','OTHER_CLIENTS_EDITING','_onConnectionFailed','CHANGESET_REJ','session.room-full','columnGroups','&to=','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','collaboratorID','_unitLoaded$','PSEUDO_FETCH_MISSING_RESULT','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','init','saveSnapshot','_transformRemoteChangesetByStateCache','_revisionService','save\x20fail\x20reason\x20is\x20','pipe','4411326YkLDhR','_acknowledgeAwaiting','sendHeartbeatTimer','pending','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','complete','filter','_type','tables','fetching\x20missing\x20changesets\x20from\x20','subType','socketService','listCollaborators','pauseCollaboration','members','_permissionService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[CollaborationUndoRedoService]','_hasSessionsForEndpoint','onTransformSelections','UNISCRIPT_RUN','FileId','not_collab','_tryReconnect','_getSignURL','_snapshotServerService','1.0.2','_init','[OfflineState]:\x20received\x20changeset.','_collabSessionService','_transformAndApplyRemoteChangeset','indexOf','ERROR_IMAGE_TYPE','getLatestCsReqIdBySid','_shouldReportTelemetry','_onRemoteChangeset','?size=','/resources','getValue','_transformIMECache','_onConnectionOpen','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','JOIN_ROOM_FAILED','then','getUnitStatus$','session.room-cnt-exceeds','sessionStatus','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','state$','infoRsp','_members$','Workbook','sort','COLLABORATION_ENDPOINT_INVALID','3062735ZrqxwQ','length','onTransformState','saveChangeset','HEARTBEAT_TIMEOUT','HEARTBEAT_INTERVAL','floor','splice','_sendHeartbeat','userID','requestParams','SNAPSHOT_URL_KEY','isPermissionRej','_networkConditionService','maxSize','responseType','m2Prime','collaboration-client.config','_socketMessageSubscription','_adapter','unitInfo$','_cfgEnableObjInherit','_initMergeInterceptor','subscribe','incrementRevOfUnit','getCollabEntity','[CollaborationSessionService]','resolve','endpoint','_substituteUndoStack','CONFLICT_PROCESSING','[DataLoaderService]','resolveUnit','create','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','error','commit','saveImage','onRemoteRej','add','[CollaborationSessionService]:\x20socket\x20error','_createInitialState','retryConnectingTimer','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','next','_httpService','_collaborationSessionService','cmd','_roomCreated$','_redoStacks','/universer-api/oidc/authpage','origin','toggleOffline','_onRecvEvent','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','LIVESHARE_TERMINATE','_getConfig','iterator','unitType','clear','_tryEnsureSocket','_univerInstanceService','allowed','result','getCurrentRevOfUnit','_startTelemetryCollaborationNewChangeset','_stopTelemetryCollaborationNewChangeset','snapshot','memberID','[SyncedState]:\x20received\x20acknowledgement.','univer-pro.collaboration-client.network-condition.service','objectActions','version','NOT_COLLAB','rev','string','_transformStack','retryConnectingInterval','objectPermissionTypes','Univer','clearUnit','INGEST','base-ui.attachment-io.service','fetch_missing','revision','unknown','objectId','_state','_injector','actions','\x20to\x20','UNIVER_SLIDE','340543QJjqPL','NO_OTHER_CLIENTS_EDITING','HELLO','values','appendMutation','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_createSocket','socketReady','PERMISSION_DENIED','listRoles','_commentService','capture','endsWith','action','_state$','POST','asObservable','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getUnitOnRev','_clearHeartbeatTimer','_sender','onTransformRemoteChangesetByStateCache','localeService','_identity','Failed\x20to\x20update\x20permission\x20point','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','LIVESHARE_FETCH_OPERATIONS','_updateStatus','/universer-api/uniscript','_incrementRevisionNumber','updateMember','subject','/collaborator','synced','UNIVER_BOARD','_waitForHeartbeatResponse','UPDATE_PERMISSION_OBJ','fetchThroughInterceptors','_getDownloadEndpointURL','setCfgEnableObjInherit','transformUndoRedo','/allowed','transformChangesets','/universer-api/file/{fileID}/sign-url','forEach','_roomMembers','reqId','push','PERMISSION_REJ','SUBMIT_CHANGESET_TIMEOUT','_docStateChangeManagerService','_telemetryService','reject','_transformUndoredo','findIndex','patch','onRemoteAck','_pendingMutations','_onUserLeave','_initDependencies','SOCKET_FAILED','FAIL','MSG_FOR_ERROR','4742FaTLSO','getCollabEntity$','delete','UPDATE_CURSOR','setConfig','catch','disposeWithMe','onload','USERS_ENTER','authzUrl','_HTTPService','getMemberID','[CollaborationSession]','interceptor','_getRedoStack','_prepareConflictRecovery','editing\x20status\x20changed\x20to','ERROR_IMAGE','loadUnit','csRejEvent','params','_scheduleCollaborationTimeoutTimer','symbol','_executeRemoteChangeset','getResourcesRequest','_upload','src','event$','/universer-api/snapshot/','_fetchMissChangesets','setShowComponents','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_socket','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','getCfgEnableObjInherit','updateOfflineData','onRemoteRetry','_getCurrentRevision','\x20-\x20','/universer-api/authz','onSyncEditingCollabCursor','_createHandler','apply','roles','open$','_eventService','toString','waitForRoom$','_onRemoteRetry','/-/object/-/batch_allowed','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_clearUndo','JOIN_ROOM_PERMISSION_DENIED','_remoteChangesetQueue','_imageSourceCache','trim','unitLoaded$','text-x','/universer-api/snapshot','COMPRESS_MUTATION_APPLY','getUnitId','Slide','number','GLOBAL_ROOMS_CNT_EXCEEDS','updateCollaborator','loadUnitOfRevision','_clearCollaborationTimeoutTimer','/universer-api/stream/file/upload','commentUpdate$','JOIN_ROOM_FULL','localCacheService','_entities','UNIVER_BASE','_entityInit$','Error\x20on\x20receiving\x20event','_socketService','type','encode','__Key__','_closedUnits','getConfig','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','NEW_CHANGESETS','_singleActiveUnitService','_initCloseConn','FETCH_MISSING','/block/','_onJoinRoomEvent','getTypeOfUnitAdded$','_telemetryInfo','stringify','PENDING','getUnit','list','_userManagerService','sessionStatus$','getUploadOptions','c1Prime','parse','telemetry\x20info\x20is\x20not\x20initialized','_commandService','/rev/','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','awaiting','close$','UNIVER_COLLABORATION_CLIENT_PLUGIN','endpointKey','_change$','headers','objectType','cfgEnableObjInherit','hostname','[CollaborationEntity]','collaboration-client.local-cache-service','_scheduleCompleteTimestamp','_socketChannels','registerHTTPInterceptor','80FprHxB','localUnitId','toRemote','loadSlide','_clearRetryConnectingTimer','AWAITING_WITH_PENDING','CLOSE_ROOM','isArray','size','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','range','newCsEvent','getCurrentSelections','28383tatrAb','UnitEmbedded','_resendTimer','onlyLocal','OFFLINE','_disableEditing','_throwTelemetryCollaborationNewChangeset','_decreaseWaiting','addHandlerCallback','updatePermissionPoint','_replayCachedMutations','_members','uploadFileServerUrl','_getUploadFileURL','_handleRemoteChangesets','readyForCollab','_transformService','reduce','roomInfos','onMissingChangesets','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','textRanges','UUID','_clearScheduledTask','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','Base','_localCacheService','/universer-api/user/session-ticket','LIVESHARE_OPERATION','LIVESHARE_NEW_HOST','_prepareTransformSelections','UNIVER_DOC','session.room-permission-denied','post','upload','getRoom','_createInitialStateImpl','_event$','_checkMissing','_queuedRemoteChangesets','onCommentUpdate','SYNCED','getTypeOfUnitDisposed$','stopTime','object','min','target','changeset','SHOULD_CLOSE_CONN','onPrepareTransformSelections','includes','_onConflict','univer-pro.collaboration-client-socket-service','eventID','joinEvent','_applyRemoteChangeset','getAllPermissionPoint','enableOfflineEditing','slice','onMutationExecutedForCollab','_createSession','executeCommand','put','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onLocalMutation','_authzIoService','getAllMembers','removeMember','_joinRoom','CONFLICT_CACHE_CLEAR_FAILED','getInterceptPoints','_undoRedoService','collabSubmitChangesetUrl','_lockTransition','_handler','loadOfflineData','loadBase','_getAPIPrefixPath','_initRequestHeader','sendChangesetTimeout','&assign=','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','fetchMiss','unitDisposed$','40dhmOFl','csShouldRetryEvent','_waitCount','_onUserJoin','getSheetId','change$','_localeService','_replaceFileID','_collaborationPaused','univer-pro.collaboration-client-adapter-service','objects','_transformSelections','call','_isEchoedAwaitingChangeset','timeoutTimer','_clearRedo','_resendWithTimeout','_getAPIPrefix','USERS_LEAVE','mutations','refreshPermission','_status$','_clearTimeoutTimer','unitId\x20is\x20not\x20found','send','uniscriptRunEvent','duration','_unlockTransition','_commentUpdate$','People','_snapshotService','fromCharCode','url','get','status$','collaborators','close','find','socketMessageSubscription','_getLoginPath','_getSocketChannel','_sendingTimer','unsubscribe','/unit/','append','changesets','connection\x20error','update','_syncEditingCollabCursor','_updateUnitPermissionPoint','status','socket$','objectID','OTHER_CLIENT_EDITING','override','offline','compose','dispose','state','_acknowledgeAwaitingIfReady','href','/fetchmissing?from=','_sessionStatus$','fetchMissingChangesets','FETCH_MISS','conflict','transformMutationsWithChangeset','ERROR_EXCEED_SIZE','startsWith','addImageSourceCache','file','_sessionChannels','map','_substituteRedoStack','updateCursorEvent','session.room-not-exists','dispose$','name','location','some','_maxTotalRetryTimeout','awaiting_with_pending','setWaitCount','loginUrlKey','_collaborationUIEventService','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_updateLocalCache','transformSelections','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','socket\x20close','[UniverCollaborationClientPlugin]','COMMENT_UPDATE','permissionRejEvent','pluginName','getWorkbookSelections','CHANGESET_SHOULD_RETRY','getMember','routeKey','liveShareOperation','/role','_transitionLocked','subUnitId','onStateChange','constructor','replace','_instanceService','method','equals','hasOwnProperty','saveSheetBlock','submit\x20changeset\x20error!','HEARTBEAT','_handlerCallback','_getUndoStack','_config','leaveEvent','_removeRoom','ONLINE','debug','createInstance','COMPRESS_MUTATION_SEND','online$','missingChangesets','has','372zAQukJ','getOwnPropertyDescriptor','JOIN','candidateSocket','_getSendChangesetTimeout','max','onRemoteChangeset','now','retryCount','OPTIONAL','every','_updateState','getUnitType','_transformRemoteChangesetByIMECache','editingUnit','_acknowledgedAwaitingRevision','RECV','_changesetSessionId','loadBoard','body','?url=','originalMeta','enableAuthServer','set','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[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.','message$','fromCollab','session.join-failed','_pendingSessions','UNIVER_PDF','SUBMIT_CHANGESET','sheets','getFocusedUnit','[PendingState]:\x20received\x20acknowledgement.','failed\x20to\x20apply\x20missed\x20changesets!','packageName','_changesetReqId','getImage','_memberService','/-/object/list','loadPdf','prototype','data','CHANGESET_ACK','LIVESHARE_REQUEST_HOST','&source=','_collaborationTimeoutTimer','enableSingleActiveInstanceLock','transformStack\x20failed!','_unitInfo$','ws://127.0.0.1:8000/universer-api/comb/connect','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformStateCache','_compressMutationService','defineProperty','downloadEndpointUrl','_initUnitPermissionChange','getTime','1325250HrzmFA','initWorkbookPermissionChange','toggleOnline','_getCtorByUniverInstanceType','_configService','{fileID}','resend','unit-cache-','_disposed','AWAITING','_awaitingChangeset','CONFLICT','getCurrentUser','_resendTimeout','loadDoc','onSendChangeset','_onCombEvent','/universer-api/comb','_sheetTransformSelectionsService','unit','_onLocalMutation','UNIVER_SHEET','Edit','toPrimitive','_showConflictNotification','unitId','[PendingState]:\x20unhandled\x20univer\x20type:\x20','onMissedChangesetFetched','from','sid','_onOffline','_doCreateSocket','accept','LEAVE','/new_changes','_schedule','code','/object','_listenToNetworkCondition','error$','_refreshUnitPermission','getImageSourceCache','session','64IUPIOr','selections','SOCKET_FAILED_RETRY','_startCollaboration','JOINING','deleteCollaborator','confirm','/object/','_onRemoteACK','decorate','getSnapshotAPIPath','createSocket','joinRsp','emitEvent','onTransformIME','baseRev','6063508hziTqU','closeSession','MUTATION','RETRY_CONNECTING_MAX_COUNT','signUrlServerUrl','collabWebSocketUrl','getDeserializedSheetBlock','requireSession'];_0x1be8=function(){return _0x428d3b;};return _0x1be8();}let ir=class extends _0x1720a8{constructor(_0x264b2f,_0x114095,_0x341bb2,_0x271b9d,_0x1c5512,_0x2088cf){const _0x5c6da7=_0x19811e;super(_0x264b2f,_0x114095,_0x341bb2,_0x271b9d),this[_0x5c6da7(0x3d8)]=_0x1c5512,this['_logService']=_0x2088cf;}[_0x19811e(0x32e)](_0xdfa61,_0x400fae){const _0x5e23d9=_0x19811e;let _0x25688a=this[_0x5e23d9(0x1cc)](_0xdfa61);if(_0x25688a)try{let _0x59bc74=this[_0x5e23d9(0x2f6)](_0x25688a,_0x400fae);this[_0x5e23d9(0x2c7)](_0xdfa61,_0x59bc74);}catch(_0x3f3299){this[_0x5e23d9(0x261)][_0x5e23d9(0x2cd)](_0x5e23d9(0x285),_0x3f3299),this[_0x5e23d9(0x379)](_0xdfa61);}let _0x5b070a=this['_getRedoStack'](_0xdfa61);if(_0x5b070a)try{let _0x287102=this[_0x5e23d9(0x2f6)](_0x5b070a,_0x400fae);this['_substituteRedoStack'](_0xdfa61,_0x287102);}catch(_0xd9f218){this[_0x5e23d9(0x261)][_0x5e23d9(0x2cd)](_0xd9f218),this[_0x5e23d9(0x16a)](_0xdfa61);}}['_clearUndo'](_0x4c6144){const _0xfabd94=_0x19811e;let _0x2365e5=this[_0xfabd94(0x1cc)](_0x4c6144);_0x2365e5&&(_0x2365e5[_0xfabd94(0x2ab)]=0x0,this[_0xfabd94(0x321)]());}[_0x19811e(0x16a)](_0x1b5f3f){const _0x49faa7=_0x19811e;let _0x4ccc21=this[_0x49faa7(0x353)](_0x1b5f3f);_0x4ccc21&&(_0x4ccc21[_0x49faa7(0x2ab)]=0x0,this[_0x49faa7(0x321)]());}[_0x19811e(0x2c7)](_0x26ac3d,_0x197ee1){const _0x4d682a=_0x19811e;this['_undoStacks'][_0x4d682a(0x1ee)](_0x26ac3d,_0x197ee1),this[_0x4d682a(0x321)]();}[_0x19811e(0x1a4)](_0x389ee2,_0x2aa558){const _0x57f226=_0x19811e;this[_0x57f226(0x2db)][_0x57f226(0x1ee)](_0x389ee2,_0x2aa558),this[_0x57f226(0x321)]();}[_0x19811e(0x2f6)](_0x1cf9c7,_0x50f44a){const _0x42b002=_0x19811e;let _0x3f966a=[],_0x563db3=_0x50f44a,_0x46aad2=_0x50f44a;for(let _0x240b8b=_0x1cf9c7[_0x42b002(0x2ab)]-0x1;_0x240b8b>=0x0;_0x240b8b--){let {unitID:_0x5eac39,undoMutations:_0xd6f055,redoMutations:_0x2510cc}=_0x1cf9c7[_0x240b8b],_0x21ee4e=this[_0x42b002(0x3d8)][_0x42b002(0x19d)](_0x563db3,_0xd6f055),_0x44cf4e=this[_0x42b002(0x3d8)][_0x42b002(0x19d)](_0x46aad2,_0x2510cc);if(_0x4532f4(_0x21ee4e)||_0x4532f4(_0x44cf4e)){this[_0x42b002(0x261)][_0x42b002(0x2cd)](_0x42b002(0x285),_0x42b002(0x208),_0x21ee4e,_0x44cf4e);break;}_0x563db3=_0x21ee4e[_0x42b002(0x3a7)],_0x46aad2=_0x44cf4e[_0x42b002(0x3a7)],_0x3f966a[_0x42b002(0x335)]({'unitID':_0x5eac39,'undoMutations':_0x21ee4e['m2Prime'],'redoMutations':_0x44cf4e[_0x42b002(0x2ba)]});}return _0x3f966a['reverse']();}};ir=H([V(0x0,_0x4f5fa8),V(0x1,_0xef393c),V(0x2,_0x1ac843),V(0x3,_0x2477d9),V(0x4,_0x435fb7),V(0x5,_0x1ba700)],ir);let ar=class extends _0x370b6f{constructor(_0x43b2ce=gt,_0x2b31c4,_0x1a2ae4,_0x2c2e69){const _0xf9302d=_0x19811e;super(),this[_0xf9302d(0x1cd)]=_0x43b2ce,this[_0xf9302d(0x261)]=_0x2b31c4,this[_0xf9302d(0x302)]=_0x1a2ae4,this[_0xf9302d(0x216)]=_0x2c2e69;let {..._0x2d40e8}=_0x3d5516({},gt,this[_0xf9302d(0x1cd)]);if(!_0x2d40e8['socketService'])throw Error(_0xf9302d(0x29d));this[_0xf9302d(0x1cd)]=_0x2d40e8,this['_configService'][_0xf9302d(0x349)](R,_0x2d40e8);}['onStarting'](){const _0x18a09e=_0x19811e;this[_0x18a09e(0x216)]['setConfig'](_0x1e8245,this[_0x18a09e(0x1cd)][_0x18a09e(0x2f8)]??[]),this['_registerDependencies'](),this[_0x18a09e(0x341)]();}['_registerDependencies'](){const _0xc3bc36=_0x19811e;var _0xb96505,_0x5f1b6e;this[_0xc3bc36(0x302)]['has'](_0x3d966a)&&this[_0xc3bc36(0x261)][_0xc3bc36(0x2cd)](_0xc3bc36(0x1b5),_0xc3bc36(0x1ef));let _0x4735d2=_0x3b2c51([[_0x3d966a,{'useClass':ir}],[Nn,{'useValue':Pn()}],[In],[Mt],[Jt],[Wn],[Xn],[jt],[er],[B],[Zn],[An,{'useClass':this[_0xc3bc36(0x1cd)][_0xc3bc36(0x27f)]}],[_0x14257b,{'useClass':rr}],[_0x3a226b,{'useClass':Gn}],[_0x393423,{'useClass':Qn}],[Vn,{'useClass':Hn}],[_0x42b5e6,{'useClass':$n}],[Ln],[Bn]],(_0xb96505=this[_0xc3bc36(0x1cd)])==null?void 0x0:_0xb96505[_0xc3bc36(0x191)]);if(!((_0x5f1b6e=this[_0xc3bc36(0x1cd)])!=null&&_0x5f1b6e[_0xc3bc36(0x207)])){let _0x5efcf3=_0x4735d2[_0xc3bc36(0x33c)](([_0x4c0ea7])=>_0x4c0ea7===W);_0x5efcf3!==-0x1&&_0x4735d2[_0xc3bc36(0x2b1)](_0x5efcf3,0x1);}_0x1bacd8(this[_0xc3bc36(0x302)],_0x4735d2);}[_0x19811e(0x341)](){const _0x2b5beb=_0x19811e;var _0x1d8a87,_0x3622a8;if(this[_0x2b5beb(0x302)][_0x2b5beb(0x17c)](_0x4288a3)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x4967eb({'maxParallel':0x6})}),!((_0x1d8a87=this[_0x2b5beb(0x1cd)])!=null&&_0x1d8a87[_0x2b5beb(0x140)])){var _0x5dcefb;(_0x5dcefb=this[_0x2b5beb(0x302)]['get'](U,_0x126bf3[_0x2b5beb(0x1e0)]))==null||_0x5dcefb['disableLocalCache']();}(_0x3622a8=this[_0x2b5beb(0x1cd)])!=null&&_0x3622a8[_0x2b5beb(0x1ed)]&&_0x3d1e12(this[_0x2b5beb(0x302)],[[Wn]]),_0x3d1e12(this['_injector'],[[Xn],[Ln],[er]]);}};z(ar,_0x19811e(0x1b8),_0x19811e(0x3af)),z(ar,_0x19811e(0x1fb),Rn),z(ar,_0x19811e(0x2f2),zn),ar=H([_0x22f4eb(_0xb82aa,_0xae98f7,_0xe2a840),V(0x1,_0x1ba700),V(0x2,_0x480e6d(_0x5a91fd)),V(0x3,_0x2477d9)],ar);export{Gn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,Sn as BaseCollaborationEntity,Tn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Hn as CollaborationAttachmentIoService,Ln as CollaborationController,$ as CollaborationEntity,Qn as CollaborationImageIoService,Gt as CollaborationSession,In as CollaborationSessionService,Mn as CollaborationSocketService,_n as CollaborationStatus,At as CollaborationUIEventId,B as CollaborationUIEventService,ir as CollaborativeUndoRedoService,jt as CommentService,X as ConflictState,_t as DEFAULT_COLLAB_WEB_SOCKET_URL,Tt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,vt as DEFAULT_WS_SESSION_TICKET_URL,Zn as DataLoaderService,xn as DocCollaborationEntity,Q as FetchingMissState,yt as HEARTBEAT_INTERVAL_KEY,bt as HEARTBEAT_TIMEOUT_KEY,Vn as IAttachmentIoService,Nn as ICollaborationClientAdapterService,An as ICollaborationSocketService,U as ILocalCacheService,Dn as INetworkConditionService,W as ISingleActiveUnitService,Ct as LOCAL_CACHE_INTERVAL,St as LOCAL_CACHE_INTERVAL_KEY,Mt as MemberService,$n as MentionIoHttpService,Z as OfflineState,En as PdfCollaborationEntity,q as PendingState,wt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,xt as RETRY_CONNECTING_MAX_COUNT_KEY,Ut as SessionStatus,Cn as SheetCollaborationEntity,Jt as SheetTransformSelectionsService,wn as SlideCollaborationEntity,rr as SnapshotServerOverHTTPService,K as SyncedState,Yt as UnitStatus,ar as UniverCollaborationClientPlugin,Pn as createUniverCollaborationAdapter,On as deserializeToCombResponse,Kt as getLocalCacheKey,kn as serializeCombRequest};