@univerjs-pro/collaboration-client-ui 0.13.0-insiders.20251215-64041bb → 0.13.0-insiders.20251218-2062647

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 (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xd951(_0x3e2f78,_0x29cae3){_0x3e2f78=_0x3e2f78-0x1be;const _0x509803=_0x5098();let _0xd9510b=_0x509803[_0x3e2f78];return _0xd9510b;}function _0x5098(){const _0x3c2b3a=['collabStatus.offline','LOCAL_CACHE_INTERVAL','onCommandExecuted','SHEET_VIEWPORT_KEY','show','WebURLService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','createElement','setActiveRange','runRefRangeMutations','_applyCommand','_docTransformIMECacheService','_updateURLWithCurrentState','some','CollaborationUIEventId','DocSelectionManagerService','isTransformMutationFailure','_injector','_range','_hideTimer','stage','status$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','children','min','getCollabCursors$','TEXT_RANGE_LAYER_INDEX','reconnect','whenReady','height','registerRenderModule','entityInit$','useRef','map','_selfUnitIDs','source','_updateLocalCursor','_removeClearOtherTimer','DeleteRangeMoveUpCommandId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','urlChange$','_render','UNIVER_DOC','LOCAL_CACHE_INTERVAL_KEY','connectInjector','createIdentifier','EffectRefRangId','_scene','set','eventID','add','split','Shape','all','debounceTime','fillRule','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_getSessionTicket','CLOSE_ROOM','getRelativeToViewportCoord','_docTransformSelectionsService','CollaborationEvent','PENDING','univerjs-icon\x20univerjs-icon-','EMAIL_VERIFY_CODE_MISMATCH','toDisposable','resize','_unitStatus','_setupSubUnitSync','_initDependencies','ticket','_beforeCloseService','_config','YUUMI_RATE_OVER_LIMIT','RECT','isTransformMutationsWithChangesetSuccess','getVpScrollXYInfoByPosToVp','_drawTextRange','data','Module','_memberService','UniverDesign','ALREADY_EXISTS','_memberID','handleIRemoveCol','_httpService','UniverDocsUi','ISocketService','UniverCore','getCellPositionByOffset','distinctUntilChanged','Loading','@univerjs/sheets-ui','CURRENT_STATUS_CANNOT_OPERATE','Plugin','assignAColorForMemberID','getOwnPropertyDescriptor','isFormulaString','IBeforeCloseService','round','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','APPLY_PERMISSION_DENIED','enableLocalCache','CollaborationStatus','/universer-api/frontend/logs','Vector2','values','onPointerEnter$','blue.400','docStateChange$','lineTo','endColumn','error','TOO_MANY_REQUESTS','location','currentSkeleton$','replace','_urlService','ENTITLE_COUPON_USED_UP','_sheetSkeletonManagerService','startsWith','off-line-icon_clip0_910_343','_univerInstanceService','_onCursorDelete','41184pbxaDL','_pollingInterval','collabCursorState$','_status$','_onRefRangeChange','black','subunit','@univerjs/ui','origin','DependentOn','send','_docSyncEditingCollabCursorService','_textBubble','getDocRanges','MemberService','transformSelections','cursorInfo$','getFocusedUnit','_collabCursorController','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','toRgbString','dispose','m2Prime','DisposableCollection','focused$','InsertRangeMoveDownCommandId','hide','setUndoRedoMutationParamsCache','clsx','_instanceService','deepClone','UnitStatus','collabStatus.fetchMiss','IMessageService','getActiveSheet','_refreshCollabCursors','APPLY_REVISION_CONFILICT','getCellMatrix','getSheetBySheetId','\x20at\x20','_docSkeletonManagerService','formula.calculation.started','collabStatus.syncing','collabStatus.notCollab','[Window\x20Error]:\x20','Subject','UNAUTHENTICATED','DeleteRangeMoveLeftCommandId','init','_startDocCollabCursor','_commandService','13HHySZA','RemoteUniscriptService','getUnitStatus$','ENTITLE_DUP_SUBSCRIPTION','_getMergeRange','YUUMI_NO_CUBOID_FOR_QUESTION','_currentUsage','setInterval','_transformUndoRedoStack','_hover','toStringTag','ColorKit','transformMutationsWithChangeset','syncEditingCollabCursor','_handleJoinEvent','getRenderById','mapTo','permission.content','createSocket','reason','throttleTime','_id','Unknown\x20user','setItem','_name','_handleHeartbeatEvent','SetDocZoomRatioOperation','RxDisposable','fillText','@univerjs-pro/collaboration-client','_collabSessionService','rgba(255,\x20255,\x20255,\x200.01)','now','InsertRangeMoveRightCommandId','ISnapshotServerService','Optional','LICENSE_MAX_UNITS_EXCEEDED','undoState','_docClipboardService','DocSkeletonManagerService','SUBMIT_CHANGESET_TIMEOUT','PY_RUNTIME_SCRIPT_ERROR','transformRemoteChangeset','green.600','@univerjs/engine-formula','@univerjs/sheets','_docSkeleton','permission.title','YUUMI_UNABLE_LOAD_URL','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','endRow','transformStateCache','collaboration.closeRoom','HEADER_MENU','clearTimeout','switchMap','_notificationService','SNAPSHOT_HAS_BEEN_REMOVED','assign','imageSourceType','/universer-api/license/formula/limit/done','_syncEditingCollabCursorService','_drawRectRange','/run/','_anchorDot','Disposable','sessionTicket','SOCKET_FAILED_RETRY','popstate','423SnGbxk','react/jsx-runtime','ThemeService','arc','IURLService','RichTextEditingMutation','stageInfo','AWAITING_WITH_PENDING','find','actions','_clearPolling','_online','_handleLeaveEvent','SetFormulaCalculationStartMutation','REDEMPTION_CODE_NOT_STARTED','getCurrentRevOfUnit','with','getUniverSheetInstance','_transformPreviousActiveRange','ENTITLE_COUPON_EXPIRED','handleInsertRangeMoveDown','http://www.w3.org/2000/svg','post','LOGIN_TOKEN_PROCESSING_FAILED','jsxs','REDEMPTION_USER_NOT_ELIGIBLE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isArray','_startCalculationLimit','font','_startSheetCollabCursor','[Unhandled\x20Rejection]:\x20','0\x200\x2017\x2016','UniverProCollaborationClient','application/json','getAncestorScale','_logService','catch','shift','socket$','WECHAT_HAS_BEEN_BOUND','_imageIoService','unload','@univerjs/network','_labelPosition','getMember','addObjects','ILogService','_collaborationSessionService','url(#off-line-icon_clip0_910_343)','Tools','ENTITLE_NEED_BILLING_ADDRESS','contains','_toggleOnline','restore','_checkAndWaitForCalculationPermission','exhaustSavingTask','rxjs','transform','dirtyRanges','Success','collaboration-client-ui.config','collabStatus.conflict','@univerjs/design','Injector','4200192dUyIbO','Error','_collaborationUIEventService','SOCKET_FAILED','INVITE_CODE_HAS_BEEN_UES','search','LICENSE_DISTRO_REJECTED','_scheduleClearOtherTimer','drawWith','size','unhandledrejection','_anchor','enableFrontendLog','sheetId','SetSelectionsOperation','getMergeData','formula.calculation.unable','collaboration.offline-data-not-saved','ITransformService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','doc.mutation.rich-text-editing','getTypeOfUnitDisposed$','executeCommand','MOBILE_VERIFY_CODE_MISMATCH','includes','DOC_RANGE_TYPE','_initEntityListener','_localStorageService','takeUntil','_maxFormulaLimit','REDEMPTION_CODE_FULLY_REDEEMED','m1Prime','unitId','subUnitId','unsubscribe','_eventUnsubscribe','UPDATE_CURSOR','CONFLICT','SetTextSelectionsOperation','MoveRangeCommandId','_lastResponseTimestamp','OffLineIcon','selection','_init','RegularPolygon','body','UniverCollaborationClientPlugin','closePath','fromEvent','from','_releaseCalculationLimit','trim','INTERNAL_ERROR','loadOfflineData','amd','red.300','_roomMembers$','color','subscribe','combineLatest','current','ENTITLE_REPORT_LIMIT_EXCEED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_initWindowErrorListener','_draw','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','saveOfflineData','getCurrentUnitForType','releaseFormulaLimitUrl','fill','getCurrent','_transformService','length','defs','Rect','[CollaborationDataLoaderController]','setShapeProps','_taskIds','collaboration.single-unit.warning','deserializeRangeWithSheet','onRendered','runId','UniverIcon','UniverSheets','unshift','APPLY_DUPLICATED','_clearOtherTimers','event$','_refRangeService','flatMap','params','text','UniverUi','registerComponent','width','history','YUUMI_ALL_TABLES_IS_INVALID','_setFormulaLimitStatus','get','onPointerMove$','startFormulaLimitUrl','getViewport','function','InsertRowCommandId','getMemberID','getItem','OnLineIcon','Workbook','activeSheet$','yellow.400','BuiltInUIPart','react','UNDEFINED','_renderManagerService','addObject','redoState','_cursors','colorChannel1','removeParam','_initUserListener','textRanges','asObservable','univer-mr-2\x20univer-flex\x20univer-text-xl','YUUMI_ASYNCIO_CANCELLED','ranges','transformIMECache','hovered','RevisionService','onMouseMove','href','_saveTaskMap','_getFormulaLimitStatus','disableLocalCache','_uiPartsService','UniverSheetsUi','handleInsertRangeMoveRight','ONLINE','getActiveRange','substring','xlink:href','@univerjs/core','key','TEXT','string','setConfig','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_saveCache','NOT_COLLAB','stack','SNAPSHOT_INVALID_SNAPSHOT','touchDependencies','replaceState','INVALID_ARGUMENT','currentColor','makeDirty','fromEventSubject','startRow','debounce','registerBeforeClose','div','bottom','BehaviorSubject','FormulaExecutedStateType','0\x200\x2016\x2016','_disabled','displayName','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','invokeId','engine','setStateCache','jsx','moveTo','USER_NOT_INVITED_CODE','override','addHandlerCallback','getUnhiddenWorksheets','findNodePositionByCharIndex','setAlpha','getSheetObject','ILocalCacheService','idSuffix','getConfig','translate(.97)','_messageService','mask','on-line-icon_clip0_910_349','join','on-line-icon','REDEMPTION_INVALID_CODE','DocCollaborationEntity','_checkCalculationAvailable','_backgroundColor','complete','1em','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_assignedColors','delete','subscribeEvent','off-line-icon','YUUMI_TABLE_NOT_FOUND_IN_UNIT','APPLY_REJECT','session.collaboration-timeout','_initResize','_localCacheService','has','parse','createInstance','ENSURE_SNAPSHOT_EXECUTION','_themeService','forEach','UniverEngineRender','uni.network.url-service','_dataLoaderService','updateOfflineData','NodePositionConvertToRectRange','[LogService\x20Error]:\x20','functionsExecutedState','UNRECOGNIZED','MessageType','_scheduleSaving','ENTITLE_INSUFFICIENT_QUOTA','addEventListener','getSkeleton','CollaborationSessionService','_send','114YzTssk','_drawAnchor','startColumn','UniverInstanceType','_getSaveTimeout','FormulaExecuteStageType','merge','MOBILE_HAS_BEEN_BOUND','clipPath','_initCommandExecutedListener','596540TASByU','removeEventListener','CollaborationController','sessionStatus$','IConfigService','ENTITLE_INVALID_COUPON_CODE','symbol','_cursorInfo$','_getScale','...','33006eySUYm','UniverCollaborationClientUIPlugin','UniverNetwork','svg','useDependency','_uploadLog','_heartbeatTimer','138068EgwACc','173250slbiPT','transformMutation','_scheduleHeartbeat','LICENSE_IMPORT_SIZE_EXCEEDED','skeleton','2235832Niblkg','DocIMEInputManagerService','IRenderManagerService','IImageIoService','APPLY_NON_SEQUENTIAL_REVISION','roomMembers','limitInfo','_updateCollabCursors','code','getSheetId','SetWorksheetActivateCommand','CONNECTOR_DATA_TOO_LARGE','UniverEngineFormula','BrowserCollaborationSocketService','registerRefRange','M0\x200H16V16H0z','_onCursorUpdate','_colorAssignService','getCoordByCell','RemoveColCommandId','DocStateChangeManagerService','getCurrentSelections','REDEMPTION_CODE_INACTIVE','DesktopCollaborationStatusDisplayController','currentUsage','_initCommandInterceptor','unitID','parseInt','NOT_FOUND','USER_IS_ANONYMOUS','UNIVER_SHEET','onPointerLeave$','useCallback','SetFormulaCalculationNotificationMutation','_getSheetObject','then','debug','range','_doCreateSocket','_localeService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','CHANGESET_REVISION_CONFILICT','_handleHover','_createSocketURL','UniverDrawing','UniverRpc','RemoveRowCommandId','COMPLETION_FINISHED','shareReplay','NO_OTHER_CLIENTS_EDITING','HTTPService','VIEW_MAIN','name','url(#on-line-icon_clip0_910_349)','IDocClipboardService','_entityInit$','_unitOnClients','collab-rect-range-','_cursorShapes','FromArray','_session','editingUnit','disposeWithMe','triggerDblclick','stringify','bind','random','getColorFromTheme','evenodd','getStateCache','@univerjs/docs-ui','fillStyle','_collaborationController','ERROR_AGAIN','mutations','jiqing.500','UniverProCollaborationClientUi','transformByState','attrs','_removeCollabCursors','exports','getColor','_ensureSubject','_colorIndex','_context','next','_configService','generateRandomId','entries','_hovered','save','pushState','_monkeyPatchLogService','getLocalCacheKey','replaceDocRanges','row','OFFLINE','SheetsSelectionsService','_lastPointer','_entities','memberID','#FFF','IUniverInstanceService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','DATA_SOURCE_TOO_LARGE','_getAnchorBounding','_docTransformStateCacheService','CommandType','INVALID_INVITE_CODE','CollaborationSocketService','_toggleOffline','_shapes','UniverDocs','_setupBeforeClosingHandler','push','WebBrowserSingleActiveUnitService','getParam','COLORS','column','Failed','beginPath','PAYMENT_CHANNEL_NOT_SUPPORT','YUUMI_AI_RUN_FAILED','_showGuardMessage','runOnServer','_updateSubUnitFromURLParams','_docStateChangeManagerService','searchParams','totalFormulasToCalculate','dispose$','type','CollaborationDataLoaderController','/universer-api/license/formula/limit/status','currentTheme$','collab-text-anchor-','_handleEvent','YUUMI_URL_COL_OUT_OF_RANGE','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','YUUMI_SUBSCRIPTION_NOT_FOUND','OTHER_CLIENTS_EDITING','FETCH_MISS','_transformHistoryAndStateStack','_initStatusComponent','backgroundColor','/universer-api/license/formula/limit/start','setTimeout','getUnitId','tag','@univerjs-pro/collaboration','saveTaskMap','defineProperty','object','_initStatusListener','_cursor','maxFormulaLimit','path','isActive','measureText','_document','_registerRenderDependencies','ICommandService','ENTITLE_USE_COUPON_NOT_1ST_TRADE','executionId','_revisionService','useObservable','message','getTypeOfUnitAdded$','YUUMI_CONNECTOR_URL_NOT_FOUND','React','LOGIN_FAILED','white','saveImage','_hasFormulaInDirtyRanges','EMAIL_HAS_BEEN_BOUND','getUndoRedoMutationParamsCache','pipe','_cachedData','cursorInfo','REDEMPTION_CODE_HAS_BEEN_CREATED','_collabCursorState$','url(#$1','USER_NOT_FOUND','roomMembers$','JOIN_ROOM_FAILED','LocaleService','getValue','LICENSE_EXPORT_SIZE_EXCEEDED','toString','none','_color','PERMISSION_DENIED','Inject','INotificationService','ENTITLE_CHAT_LIMIT_EXCEED'];_0x5098=function(){return _0x3c2b3a;};return _0x5098();}(function(_0x287316,_0x5b1030){const _0xc1aa93=_0xd951,_0x173688=_0x287316();while(!![]){try{const _0x5e5873=-parseInt(_0xc1aa93(0x3ef))/0x1*(parseInt(_0xc1aa93(0x271))/0x2)+-parseInt(_0xc1aa93(0x3bc))/0x3+parseInt(_0xc1aa93(0x27e))/0x4+-parseInt(_0xc1aa93(0x267))/0x5+parseInt(_0xc1aa93(0x25d))/0x6*(parseInt(_0xc1aa93(0x278))/0x7)+parseInt(_0xc1aa93(0x475))/0x8+-parseInt(_0xc1aa93(0x434))/0x9*(parseInt(_0xc1aa93(0x279))/0xa);if(_0x5e5873===_0x5b1030)break;else _0x173688['push'](_0x173688['shift']());}catch(_0x19e397){_0x173688['push'](_0x173688['shift']());}}}(_0x5098,0x487b8),function(_0x57b525,_0x273d66){const _0x31a82e=_0xd951;typeof exports==_0x31a82e(0x315)&&typeof module<'u'?_0x273d66(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x31a82e(0x1e2)&&define[_0x31a82e(0x4ab)]?define([_0x31a82e(0x2ce),_0x31a82e(0x435),_0x31a82e(0x40c),_0x31a82e(0x208),_0x31a82e(0x3c3),'rxjs',_0x31a82e(0x473),_0x31a82e(0x1eb),'@univerjs/rpc',_0x31a82e(0x41c),'@univerjs/engine-render',_0x31a82e(0x45f),_0x31a82e(0x2c4),'@univerjs/drawing',_0x31a82e(0x312),'@univerjs/docs',_0x31a82e(0x41b),'rxjs/operators',_0x31a82e(0x39c)],_0x273d66):(_0x57b525=typeof globalThis<'u'?globalThis:_0x57b525||self,_0x273d66(_0x57b525[_0x31a82e(0x2ca)]={},_0x57b525[_0x31a82e(0x326)],_0x57b525[_0x31a82e(0x455)],_0x57b525[_0x31a82e(0x398)],_0x57b525[_0x31a82e(0x1d8)],_0x57b525[_0x31a82e(0x46d)],_0x57b525[_0x31a82e(0x391)],_0x57b525['React'],_0x57b525[_0x31a82e(0x2ab)],_0x57b525[_0x31a82e(0x1cf)],_0x57b525[_0x31a82e(0x24e)],_0x57b525[_0x31a82e(0x273)],_0x57b525[_0x31a82e(0x396)],_0x57b525[_0x31a82e(0x2aa)],_0x57b525['UniverProCollaboration'],_0x57b525[_0x31a82e(0x2ee)],_0x57b525[_0x31a82e(0x28a)],_0x57b525['rxjs']['operators'],_0x57b525[_0x31a82e(0x202)]));}(this,function(_0x40352c,_0x13857f,_0x3958ea,_0x40624a,_0x8e6f8f,_0x5b38f4,_0x4e15c3,_0xd4880e,_0xd8d89c,_0x411621,_0x2680b3,_0x42d795,_0x118be2,_0x39a6e5,_0x2c324c,_0x3f3b23,_0x100a4f,_0x23a207,_0x383790){'use strict';const _0x295e11=_0xd951;var _0x52273e=Object[_0x295e11(0x314)],_0x1ef35f=(_0x5532b3,_0xd23dcd,_0x5194f6)=>_0xd23dcd in _0x5532b3?_0x52273e(_0x5532b3,_0xd23dcd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5194f6}):_0x5532b3[_0xd23dcd]=_0x5194f6,_0x9020b=(_0x19606b,_0x2cf3a6,_0x43941c)=>_0x1ef35f(_0x19606b,typeof _0x2cf3a6!=_0x295e11(0x26d)?_0x2cf3a6+'':_0x2cf3a6,_0x43941c);function _0x131739({ref:_0xca56b2,..._0x76c429}){const _0x376ae8=_0x295e11,{icon:_0x85921,id:_0x360fe0,className:_0x1a9603,extend:_0x16bfad,..._0xac3fef}=_0x76c429,_0x1301a7=(_0x376ae8(0x37f)+_0x360fe0+'\x20'+(_0x1a9603||''))[_0x376ae8(0x4a8)](),_0x2a7704=_0xd4880e[_0x376ae8(0x360)]('_'+_0x4a4889());return _0x39d872(_0x85921,''+_0x360fe0,{'defIds':_0x85921['defIds'],'idSuffix':_0x2a7704[_0x376ae8(0x4b1)]},{'ref':_0xca56b2,'className':_0x1301a7,..._0xac3fef},_0x16bfad);}function _0x39d872(_0xb6893a,_0x2d2188,_0xb6e0a2,_0x470ea3,_0x3f876c){const _0x2eb4a0=_0x295e11;return _0xd4880e[_0x2eb4a0(0x347)](_0xb6893a['tag'],{'key':_0x2d2188,..._0x4a7ab4(_0xb6893a,_0xb6e0a2,_0x3f876c),..._0x470ea3},(_0x3b45e4(_0xb6893a,_0xb6e0a2)[_0x2eb4a0(0x357)]||[])[_0x2eb4a0(0x361)]((_0x3c3a8f,_0xf1c516)=>_0x39d872(_0x3c3a8f,_0x2d2188+'-'+_0xb6893a[_0x2eb4a0(0x311)]+'-'+_0xf1c516,_0xb6e0a2,void 0x0,_0x3f876c)));}function _0x4a7ab4(_0x1e8845,_0x6642f6,_0x472910){const _0x2289af=_0x295e11,_0x41dcf0={..._0x1e8845['attrs']};_0x472910!=null&&_0x472910['colorChannel1']&&_0x41dcf0[_0x2289af(0x1c1)]===_0x2289af(0x1f1)&&(_0x41dcf0[_0x2289af(0x1c1)]=_0x472910[_0x2289af(0x1f1)]),_0x1e8845[_0x2289af(0x311)]===_0x2289af(0x234)&&_0x41dcf0['id']&&(_0x41dcf0['id']=_0x41dcf0['id']+_0x6642f6['idSuffix']),Object[_0x2289af(0x2d6)](_0x41dcf0)[_0x2289af(0x24d)](([_0xcb21f,_0x16c5ac])=>{const _0x577462=_0x2289af;_0xcb21f===_0x577462(0x234)&&typeof _0x16c5ac==_0x577462(0x20b)&&(_0x41dcf0[_0xcb21f]=_0x16c5ac['replace'](/url\(#(.*)\)/,'url(#$1'+_0x6642f6['idSuffix']+')'));});const {defIds:_0x5d9336}=_0x6642f6;return!_0x5d9336||_0x5d9336[_0x2289af(0x1c4)]===0x0||(_0x1e8845[_0x2289af(0x311)]==='use'&&_0x41dcf0['xlink:href']&&(_0x41dcf0[_0x2289af(0x207)]=_0x41dcf0['xlink:href']+_0x6642f6[_0x2289af(0x230)]),Object['entries'](_0x41dcf0)[_0x2289af(0x24d)](([_0x29a382,_0x6b1f68])=>{const _0x5ce6b7=_0x2289af;typeof _0x6b1f68==_0x5ce6b7(0x20b)&&(_0x41dcf0[_0x29a382]=_0x6b1f68[_0x5ce6b7(0x3b4)](/url\(#(.*)\)/,_0x5ce6b7(0x332)+_0x6642f6[_0x5ce6b7(0x230)]+')'));})),_0x41dcf0;}function _0x3b45e4(_0x57adee,_0x20b1ae){const _0x47902b=_0x295e11;var _0x124c7f;const {defIds:_0x25813d}=_0x20b1ae;return!_0x25813d||_0x25813d[_0x47902b(0x1c4)]===0x0?_0x57adee:_0x57adee['tag']===_0x47902b(0x1c5)&&((_0x124c7f=_0x57adee[_0x47902b(0x357)])!=null&&_0x124c7f[_0x47902b(0x1c4)])?{..._0x57adee,'children':_0x57adee['children'][_0x47902b(0x361)](_0x498124=>typeof _0x498124[_0x47902b(0x2cc)]['id']==_0x47902b(0x20b)&&_0x25813d&&_0x25813d[_0x47902b(0x48d)](_0x498124[_0x47902b(0x2cc)]['id'])?{..._0x498124,'attrs':{..._0x498124[_0x47902b(0x2cc)],'id':_0x498124[_0x47902b(0x2cc)]['id']+_0x20b1ae['idSuffix']}}:_0x498124)}:_0x57adee;}function _0x4a4889(){const _0x70cca9=_0x295e11;return Math[_0x70cca9(0x2c0)]()[_0x70cca9(0x339)](0x24)[_0x70cca9(0x206)](0x2,0x8);}_0x131739[_0x295e11(0x221)]=_0x295e11(0x1ce);const _0x5901d5={'tag':_0x295e11(0x274),'attrs':{'xmlns':_0x295e11(0x449),'fill':_0x295e11(0x33a),'viewBox':_0x295e11(0x21f),'width':_0x295e11(0x23d),'height':_0x295e11(0x23d)},'children':[{'tag':'g','attrs':{'clipPath':_0x295e11(0x465)},'children':[{'tag':_0x295e11(0x319),'attrs':{'stroke':_0x295e11(0x215),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x295e11(0x1c5),'attrs':{},'children':[{'tag':_0x295e11(0x265),'attrs':{'id':_0x295e11(0x3b9)},'children':[{'tag':_0x295e11(0x319),'attrs':{'fill':'white','d':_0x295e11(0x28d)}}]}]}],'defIds':[_0x295e11(0x3b9)]},_0x5590f2=_0xd4880e['forwardRef'](function(_0x4f8aa6,_0x36dca2){const _0xa355de=_0x295e11;return _0xd4880e[_0xa355de(0x347)](_0x131739,Object[_0xa355de(0x429)]({},_0x4f8aa6,{'id':_0xa355de(0x242),'ref':_0x36dca2,'icon':_0x5901d5}));});_0x5590f2[_0x295e11(0x221)]=_0x295e11(0x49e);const _0xe8835b={'tag':'svg','attrs':{'xmlns':_0x295e11(0x449),'fill':'none','viewBox':_0x295e11(0x454),'width':_0x295e11(0x23d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x295e11(0x2b3)},'children':[{'tag':_0x295e11(0x319),'attrs':{'stroke':_0x295e11(0x215),'d':_0x295e11(0x4b6),'strokeLinecap':_0x295e11(0x3a3),'strokeLinejoin':_0x295e11(0x3a3),'strokeWidth':1.2}}]},{'tag':_0x295e11(0x1c5),'attrs':{},'children':[{'tag':_0x295e11(0x265),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x295e11(0x319),'attrs':{'fill':_0x295e11(0x328),'d':_0x295e11(0x28d),'transform':_0x295e11(0x232)}}]}]}],'defIds':[_0x295e11(0x235)]},_0x52040c=_0xd4880e['forwardRef'](function(_0x2250c3,_0x43e22f){const _0x53fe98=_0x295e11;return _0xd4880e[_0x53fe98(0x347)](_0x131739,Object['assign']({},_0x2250c3,{'id':_0x53fe98(0x237),'ref':_0x43e22f,'icon':_0xe8835b}));});_0x52040c[_0x295e11(0x221)]=_0x295e11(0x1e6);function _0x2f1c0b(_0x1ffd1e){const _0x51dc1a=_0x295e11;switch(_0x1ffd1e){case _0x3958ea[_0x51dc1a(0x3a7)][_0x51dc1a(0x2de)]:return _0x51dc1a(0x340);case _0x3958ea[_0x51dc1a(0x3a7)]['CONFLICT']:return _0x51dc1a(0x472);case _0x3958ea[_0x51dc1a(0x3a7)][_0x51dc1a(0x30a)]:return _0x51dc1a(0x3dc);case _0x3958ea[_0x51dc1a(0x3a7)]['NOT_COLLAB']:return _0x51dc1a(0x3e7);case _0x3958ea['CollaborationStatus']['AWAITING']:case _0x3958ea[_0x51dc1a(0x3a7)][_0x51dc1a(0x43b)]:return _0x51dc1a(0x3e6);case _0x3958ea[_0x51dc1a(0x3a7)]['SYNCED']:case _0x3958ea[_0x51dc1a(0x3a7)][_0x51dc1a(0x37e)]:return'collabStatus.synced';}}function _0xcd213(_0x1b6a2c){const _0x2bc7f5=_0x295e11,{status$:_0x436ae1}=_0x1b6a2c,_0x495ca0=_0x8e6f8f[_0x2bc7f5(0x322)](_0x436ae1,_0x3958ea['CollaborationStatus'][_0x2bc7f5(0x20f)]),_0x340eec=_0x8e6f8f['useDependency'](_0x40624a[_0x2bc7f5(0x336)]),_0x5cfd52=_0x8e6f8f[_0x2bc7f5(0x275)](_0x3958ea[_0x2bc7f5(0x25b)]),_0x3d8e3b=_0x495ca0!==_0x3958ea[_0x2bc7f5(0x3a7)]['OFFLINE'],_0x482001=_0x340eec['t'](_0x2f1c0b(_0x495ca0)),_0x164598=_0x3d8e3b?_0x13857f[_0x2bc7f5(0x226)](_0x52040c,{}):_0x13857f[_0x2bc7f5(0x226)](_0x5590f2,{}),_0x13c59d=_0xd4880e[_0x2bc7f5(0x29e)](()=>{const _0x38d741=_0x2bc7f5;_0x3d8e3b||_0x5cfd52[_0x38d741(0x35b)]();},[_0x3d8e3b,_0x5cfd52]);function _0x2e0147(){const _0xb30c2d=_0x2bc7f5;return _0x13857f[_0xb30c2d(0x44c)](_0xb30c2d(0x21b),{'className':'univer-flex\x20univer-items-center','onClick':_0x13c59d,'children':[_0x13857f[_0xb30c2d(0x226)](_0xb30c2d(0x21b),{'className':_0x4e15c3[_0xb30c2d(0x3d8)](_0xb30c2d(0x1f6),{'univer-text-green-500':_0x3d8e3b,'univer-text-red-500':!_0x3d8e3b}),'children':_0x164598}),_0x13857f[_0xb30c2d(0x226)]('div',{'className':_0xb30c2d(0x2a6),'children':_0x482001})]});}return _0x3d8e3b?_0x2e0147():_0x13857f[_0x2bc7f5(0x226)](_0x4e15c3['Tooltip'],{'title':_0x340eec['t']('collab-client.tooltip.reconnect'),'children':_0x2e0147()});}var _0x12011b=Object[_0x295e11(0x3a0)],_0x168c30=(_0x2ae7c1,_0xd94130,_0x39c76e,_0x9fb07e)=>{const _0x548137=_0x295e11;for(var _0x1022bb=_0x9fb07e>0x1?void 0x0:_0x9fb07e?_0x12011b(_0xd94130,_0x39c76e):_0xd94130,_0x35bcdb=_0x2ae7c1[_0x548137(0x1c4)]-0x1,_0x258a3c;_0x35bcdb>=0x0;_0x35bcdb--)(_0x258a3c=_0x2ae7c1[_0x35bcdb])&&(_0x1022bb=_0x258a3c(_0x1022bb)||_0x1022bb);return _0x1022bb;},_0x1e8573=(_0x43b099,_0x25030e)=>(_0x7067a,_0x705bdc)=>_0x25030e(_0x7067a,_0x705bdc,_0x43b099);_0x40352c['DesktopCollaborationStatusDisplayController']=class extends _0x40624a[_0x295e11(0x430)]{constructor(_0x391501,_0x5997cb,_0x5e9bdb,_0xbc69da){const _0x53a496=_0x295e11;super(),_0x9020b(this,'_status$',new _0x5b38f4['BehaviorSubject'](_0x3958ea[_0x53a496(0x3a7)][_0x53a496(0x20f)])),(this[_0x53a496(0x3ba)]=_0x391501,this[_0x53a496(0x351)]=_0x5997cb,this['_collaborationController']=_0x5e9bdb,this[_0x53a496(0x201)]=_0xbc69da,this[_0x53a496(0x30c)](),this['_initStatusListener']());}[_0x295e11(0x316)](){const _0x32a44f=_0x295e11;this[_0x32a44f(0x2bc)](this[_0x32a44f(0x3ba)][_0x32a44f(0x3d4)][_0x32a44f(0x32d)](_0x5b38f4[_0x32a44f(0x426)](()=>{const _0x1b9a06=_0x32a44f,_0x2517cd=this[_0x1b9a06(0x3ba)][_0x1b9a06(0x3cd)]();return _0x2517cd?this[_0x1b9a06(0x2c6)]['getCollabEntity$'](_0x2517cd[_0x1b9a06(0x310)]()):_0x5b38f4['of'](null);}),_0x5b38f4['switchMap'](_0x4ca2fe=>_0x4ca2fe?_0x4ca2fe[_0x32a44f(0x355)]:_0x5b38f4['of'](_0x3958ea[_0x32a44f(0x3a7)]['NOT_COLLAB'])))[_0x32a44f(0x4af)](_0x253c97=>{const _0x1dbc8e=_0x32a44f;this[_0x1dbc8e(0x3bf)][_0x1dbc8e(0x2d3)](_0x253c97);}));}[_0x295e11(0x30c)](){const _0x54a419=_0x295e11;this[_0x54a419(0x2bc)](this[_0x54a419(0x201)][_0x54a419(0x1d9)](_0x8e6f8f[_0x54a419(0x1ea)][_0x54a419(0x424)],()=>_0x8e6f8f[_0x54a419(0x36c)](_0x41185c({'status$':this['_status$'][_0x54a419(0x1f5)]()}),this['_injector'])));}},_0x40352c[_0x295e11(0x295)]=_0x168c30([_0x1e8573(0x0,_0x40624a[_0x295e11(0x2e4)]),_0x1e8573(0x1,_0x40624a['Inject'](_0x40624a[_0x295e11(0x474)])),_0x1e8573(0x2,_0x40624a[_0x295e11(0x33d)](_0x3958ea[_0x295e11(0x269)])),_0x1e8573(0x3,_0x8e6f8f['IUIPartsService'])],_0x40352c[_0x295e11(0x295)]);function _0x41185c(_0x52c9ae){const {status$:_0x44ad9c}=_0x52c9ae;return function(){return _0x13857f['jsx'](_0xcd213,{'status$':_0x44ad9c});};}const _0x6adebe=_0x40624a[_0x295e11(0x36d)](_0x295e11(0x24f));var _0x42923e=Object[_0x295e11(0x3a0)],_0x2a106a=(_0x1e7ffc,_0x5503fa,_0x5cc529,_0xde3492)=>{const _0x214063=_0x295e11;for(var _0x5c6e79=_0xde3492>0x1?void 0x0:_0xde3492?_0x42923e(_0x5503fa,_0x5cc529):_0x5503fa,_0x1307ae=_0x1e7ffc[_0x214063(0x1c4)]-0x1,_0x76634d;_0x1307ae>=0x0;_0x1307ae--)(_0x76634d=_0x1e7ffc[_0x1307ae])&&(_0x5c6e79=_0x76634d(_0x5c6e79)||_0x5c6e79);return _0x5c6e79;},_0x592fe8=(_0x4dc3cd,_0x2b9a45)=>(_0x553803,_0x22066f)=>_0x2b9a45(_0x553803,_0x22066f,_0x4dc3cd);_0x40352c[_0x295e11(0x301)]=class extends _0x40624a[_0x295e11(0x40a)]{constructor(_0x1b2fa9,_0x3c9bd7,_0x3bc1d3,_0x38a27a,_0x531ae1){const _0x17777a=_0x295e11;super(),this[_0x17777a(0x3b5)]=_0x1b2fa9,this[_0x17777a(0x458)]=_0x3c9bd7,this[_0x17777a(0x3ee)]=_0x3bc1d3,this['_dataLoaderService']=_0x38a27a,_0x531ae1?_0x531ae1==null||_0x531ae1[_0x17777a(0x35c)]()[_0x17777a(0x2a1)](()=>this[_0x17777a(0x4a0)]()):(this[_0x17777a(0x458)][_0x17777a(0x2a2)](_0x17777a(0x1c7),_0x17777a(0x44e)),this[_0x17777a(0x4a0)]());}async['_init'](){const _0x4ce2cd=_0x295e11,_0x4492e0=this['_urlService'][_0x4ce2cd(0x2f2)]('unit'),_0x52bd08=this[_0x4ce2cd(0x3b5)][_0x4ce2cd(0x2f2)](_0x4ce2cd(0x300)),_0x40146a=this['_urlService'][_0x4ce2cd(0x2f2)](_0x4ce2cd(0x3c2));if(!_0x4492e0||!_0x52bd08){this['_logService'][_0x4ce2cd(0x2a2)](_0x4ce2cd(0x1c7),_0x4ce2cd(0x3a4));return;}const _0x41d800=await this[_0x4ce2cd(0x250)]['loadUnit'](_0x4492e0,Number(_0x52bd08),_0x40146a);_0x41d800&&_0x41d800 instanceof _0x40624a[_0x4ce2cd(0x1e7)]&&this[_0x4ce2cd(0x384)](_0x41d800);}async[_0x295e11(0x384)](_0x562653){const _0x461bd0=_0x295e11;await this['_updateSubUnitFromURLParams'](_0x562653),_0x562653[_0x461bd0(0x1e8)]['pipe'](_0x5b38f4[_0x461bd0(0x491)](this[_0x461bd0(0x2ff)]))[_0x461bd0(0x4af)](_0xcfca4f=>{const _0x25c174=_0x461bd0;_0xcfca4f&&this[_0x25c174(0x34c)](_0xcfca4f);}),this[_0x461bd0(0x3b5)][_0x461bd0(0x368)][_0x461bd0(0x32d)](_0x5b38f4[_0x461bd0(0x491)](this['dispose$']))[_0x461bd0(0x4af)](()=>this[_0x461bd0(0x2fb)](_0x562653));}[_0x295e11(0x34c)](_0x114e33,_0x41669a=!0x1){const _0x84637e=_0x295e11,_0xe85f69=this[_0x84637e(0x3b5)]['getParam'](_0x84637e(0x3c2));_0x114e33['getSheetId']()!==_0xe85f69&&this[_0x84637e(0x3b5)]['setParam']('subunit',_0x114e33[_0x84637e(0x287)](),_0x41669a);}async['_updateSubUnitFromURLParams'](_0x26aece){const _0x2c758e=_0x295e11;var _0x5bad2b;const _0x1690ab=this['_urlService']['getParam']('subunit');if(!_0x1690ab||!_0x26aece['getSheetBySheetId'](_0x1690ab)){const _0x5e1680=_0x26aece[_0x2c758e(0x22b)]()[0x0],_0x5b2d25=_0x26aece[_0x2c758e(0x3e2)](_0x5e1680);if(!_0x5b2d25)return;this[_0x2c758e(0x34c)](_0x5b2d25,!0x0),await this[_0x2c758e(0x3ee)][_0x2c758e(0x48b)](_0x411621[_0x2c758e(0x288)]['id'],{'unitId':_0x26aece['getUnitId'](),'subUnitId':_0x5e1680});return;}((_0x5bad2b=_0x26aece[_0x2c758e(0x3de)]())==null?void 0x0:_0x5bad2b['getSheetId']())!==_0x1690ab&&await this[_0x2c758e(0x3ee)][_0x2c758e(0x48b)](_0x411621[_0x2c758e(0x288)]['id'],{'unitId':_0x26aece[_0x2c758e(0x310)](),'subUnitId':_0x1690ab});}},_0x40352c[_0x295e11(0x301)]=_0x2a106a([_0x592fe8(0x0,_0x6adebe),_0x592fe8(0x1,_0x40624a['ILogService']),_0x592fe8(0x2,_0x40624a[_0x295e11(0x31e)]),_0x592fe8(0x3,_0x40624a['Inject'](_0x3958ea['DataLoaderService'])),_0x592fe8(0x4,_0x40624a[_0x295e11(0x412)](_0xd8d89c['IRemoteInstanceService']))],_0x40352c[_0x295e11(0x301)]);var _0x3d1fbf=Object[_0x295e11(0x3a0)],_0x23df43=(_0x2c8cd8,_0x4dfc0f,_0x1078d4,_0x2a945f)=>{const _0x4c0641=_0x295e11;for(var _0x31108d=_0x2a945f>0x1?void 0x0:_0x2a945f?_0x3d1fbf(_0x4dfc0f,_0x1078d4):_0x4dfc0f,_0x3d14b5=_0x2c8cd8[_0x4c0641(0x1c4)]-0x1,_0x2d7fb9;_0x3d14b5>=0x0;_0x3d14b5--)(_0x2d7fb9=_0x2c8cd8[_0x3d14b5])&&(_0x31108d=_0x2d7fb9(_0x31108d)||_0x31108d);return _0x31108d;},_0x52f7c2=(_0x22a71c,_0x40e784)=>(_0x13c049,_0x1fe269)=>_0x40e784(_0x13c049,_0x1fe269,_0x22a71c);let _0x47f626=class extends _0x40624a['RxDisposable']{constructor(_0x302379,_0xcd4b90){const _0x3f6b21=_0x295e11;super(),this[_0x3f6b21(0x415)]=_0x302379,this['_imageIoService']=_0xcd4b90,this[_0x3f6b21(0x4a0)]();}['_init'](){const _0x55319d=_0x295e11,_0x1ab0a9=this;this[_0x55319d(0x2bc)](this[_0x55319d(0x415)]['addClipboardHook']({'onBeforePasteImage':async _0x277c93=>{const _0x3910a2=_0x55319d,_0x49c372=await _0x1ab0a9[_0x3910a2(0x45d)][_0x3910a2(0x329)](_0x277c93);return _0x49c372?{'source':_0x49c372[_0x3910a2(0x363)],'imageSourceType':_0x49c372[_0x3910a2(0x42a)]}:null;}}));}};_0x47f626=_0x23df43([_0x52f7c2(0x0,_0x118be2[_0x295e11(0x2b4)]),_0x52f7c2(0x1,_0x39a6e5[_0x295e11(0x281)])],_0x47f626);const _0x5a4b3c=['purple.300',_0x295e11(0x2c9),_0x295e11(0x41a),_0x295e11(0x4ac),_0x295e11(0x3ac),_0x295e11(0x1e9)];class _0x2d4f99 extends _0x40624a[_0x295e11(0x430)]{constructor(){const _0x4bea10=_0x295e11;super(...arguments),_0x9020b(this,'_assignedColors',new Map()),_0x9020b(this,_0x4bea10(0x2d1),0x0);}[_0x295e11(0x39f)](_0x244c72){const _0x516272=_0x295e11;if(this[_0x516272(0x23f)][_0x516272(0x248)](_0x244c72))return this[_0x516272(0x23f)][_0x516272(0x1de)](_0x244c72);const _0x1a80ba=_0x5a4b3c[this[_0x516272(0x2d1)]];return this[_0x516272(0x2d1)]=(this[_0x516272(0x2d1)]+0x1)%_0x5a4b3c[_0x516272(0x1c4)],this['_assignedColors']['set'](_0x244c72,_0x1a80ba),_0x1a80ba;}}function _0x102844(_0x17dfa0){const _0x5ebeb7=_0x295e11;let _0xf102be='';for(const _0x21d1f8 of _0x17dfa0){const {startOffset:_0x4f2170,endOffset:_0x129770,isActive:_0x4d8e89,rangeType:_0x40628c,segmentId:_0x50c7ae,segmentPage:_0x12f649}=_0x21d1f8;_0xf102be[_0x5ebeb7(0x1c4)]&&(_0xf102be+=','),_0xf102be+=_0x4f2170+':'+_0x129770+':'+(_0x4d8e89?'1':'0')+':'+_0x40628c+':'+_0x50c7ae+':'+_0x12f649;}return _0xf102be;}function _0x58bff3(_0x51a700){const _0x1bf0df=_0x295e11,_0x21e4a0=_0x51a700[_0x1bf0df(0x373)](','),_0x1311e2=[];for(const _0x12e62a of _0x21e4a0){const [_0x4be033,_0x207bb7,_0x5c1387,_0x6963c9,_0x35316c,_0x2d12cd]=_0x12e62a[_0x1bf0df(0x373)](':');_0x1311e2[_0x1bf0df(0x2f0)]({'startOffset':Number(_0x4be033),'endOffset':Number(_0x207bb7),'collapsed':_0x4be033===_0x207bb7,'isActive':_0x5c1387==='1','rangeType':_0x6963c9===_0x40624a['DOC_RANGE_TYPE'][_0x1bf0df(0x20a)]?_0x40624a['DOC_RANGE_TYPE'][_0x1bf0df(0x20a)]:_0x40624a['DOC_RANGE_TYPE'][_0x1bf0df(0x38a)],'segmentId':typeof _0x35316c==_0x1bf0df(0x20b)?String(_0x35316c):'','segmentPage':Number(_0x2d12cd!=null?_0x2d12cd:-0x1)});}return _0x1311e2[_0x1bf0df(0x34d)](_0x3756f2=>_0x3756f2[_0x1bf0df(0x31a)])||(_0x1311e2[0x0][_0x1bf0df(0x31a)]=!0x0),_0x1311e2;}class _0x2a125f extends _0x40624a[_0x295e11(0x40a)]{constructor(){const _0x2da0fb=_0x295e11;super(...arguments),_0x9020b(this,_0x2da0fb(0x331),new _0x5b38f4[(_0x2da0fb(0x21d))](null)),_0x9020b(this,_0x2da0fb(0x3be),this['_collabCursorState$'][_0x2da0fb(0x1f5)]());}[_0x295e11(0x3fc)](_0x9dd2f1){const _0x4c9fae=_0x295e11,{unitID:_0x231157,memberID:_0x4e6650,textRanges:_0x555a9c}=_0x9dd2f1,_0x275abd=_0x102844(_0x555a9c);if(_0x275abd==='')return;const _0x30bb1c={'unitID':_0x231157,'memberID':_0x4e6650,'selection':_0x275abd};this[_0x4c9fae(0x331)][_0x4c9fae(0x2d3)](_0x30bb1c);}}var _0x2a4222=Object[_0x295e11(0x3a0)],_0x3e0001=(_0x55520a,_0x2800cf,_0x5d7e1e,_0x2fa240)=>{const _0x1292cd=_0x295e11;for(var _0x322cbe=_0x2fa240>0x1?void 0x0:_0x2fa240?_0x2a4222(_0x2800cf,_0x5d7e1e):_0x2800cf,_0x214fd1=_0x55520a[_0x1292cd(0x1c4)]-0x1,_0x3324de;_0x214fd1>=0x0;_0x214fd1--)(_0x3324de=_0x55520a[_0x214fd1])&&(_0x322cbe=_0x3324de(_0x322cbe)||_0x322cbe);return _0x322cbe;},_0x257362=(_0x4f2bf8,_0x25dbb3)=>(_0x446402,_0xe9a420)=>_0x25dbb3(_0x446402,_0xe9a420,_0x4f2bf8);const _0x3d3736=0x12c,_0x5e6a39=0x64;let _0x3890dd=class extends _0x40624a[_0x295e11(0x40a)]{constructor(_0x55503b,_0x4c0f58,_0x13026e,_0x328ad8,_0xd6fe50,_0x253ed7,_0x4c8692,_0x5c0ab0,_0x4ed639){const _0x4e266d=_0x295e11;super(),_0x9020b(this,_0x4e266d(0x43f),!0x1),_0x9020b(this,_0x4e266d(0x4a0),!0x1),_0x9020b(this,'_cursorInfo$',new _0x5b38f4['BehaviorSubject'](new Map())),_0x9020b(this,_0x4e266d(0x3cc),this['_cursorInfo$'][_0x4e266d(0x1f5)]()),_0x9020b(this,'_roomMembers$',new _0x5b38f4[(_0x4e266d(0x21d))]([])),_0x9020b(this,'roomMembers$',this['_roomMembers$'][_0x4e266d(0x32d)](_0x5b38f4[_0x4e266d(0x376)](_0x3d3736))),_0x9020b(this,_0x4e266d(0x364),_0x40624a[_0x4e266d(0x219)](_0x15702c=>{const _0x2869dd=_0x4e266d,_0x2d05d2={'eventID':_0x2c324c[_0x2869dd(0x37d)][_0x2869dd(0x499)],'data':{'unitID':this[_0x2869dd(0x298)],'memberID':this[_0x2869dd(0x2ba)][_0x2869dd(0x1e4)](),'selection':_0x102844(_0x15702c)}};this['_session'][_0x2869dd(0x3c6)](_0x2d05d2,this[_0x2869dd(0x298)]);},_0x5e6a39)),(this[_0x4e266d(0x298)]=_0x55503b,this[_0x4e266d(0x2ba)]=_0x4c0f58,this[_0x4e266d(0x351)]=_0x13026e,this[_0x4e266d(0x28f)]=_0x328ad8,this[_0x4e266d(0x390)]=_0xd6fe50,this[_0x4e266d(0x42c)]=_0x253ed7,this[_0x4e266d(0x1c3)]=_0x4c8692,this[_0x4e266d(0x3ba)]=_0x5c0ab0,this[_0x4e266d(0x3ee)]=_0x4ed639);}get[_0x295e11(0x32f)](){const _0x17382f=_0x295e11;return this['_cursorInfo$'][_0x17382f(0x337)]();}get['roomMembers'](){const _0x2631be=_0x295e11;return this[_0x2631be(0x4ad)][_0x2631be(0x337)]();}['dispose'](){const _0x3e252b=_0x295e11;super[_0x3e252b(0x3d1)](),this[_0x3e252b(0x26e)][_0x3e252b(0x2d3)](new Map()),this['_cursorInfo$'][_0x3e252b(0x23c)](),this[_0x3e252b(0x4ad)][_0x3e252b(0x2d3)]([]),this['_roomMembers$'][_0x3e252b(0x23c)]();}[_0x295e11(0x3ec)](){const _0x1edc16=_0x295e11;this[_0x1edc16(0x4a0)]||(this[_0x1edc16(0x4a0)]=!0x0,this[_0x1edc16(0x2ba)][_0x1edc16(0x26a)][_0x1edc16(0x32d)](_0x5b38f4[_0x1edc16(0x491)](this[_0x1edc16(0x2ff)]))['subscribe'](_0x4cca0c=>{const _0x7ed1b7=_0x1edc16;_0x4cca0c===_0x3958ea['SessionStatus'][_0x7ed1b7(0x204)]?this['_toggleOnline']():this[_0x7ed1b7(0x2ec)]();}),this[_0x1edc16(0x2ba)]['event$'][_0x1edc16(0x32d)](_0x5b38f4['takeUntil'](this[_0x1edc16(0x2ff)]))['subscribe'](_0x3409f3=>{const _0x2e2d6d=_0x1edc16,_0x529573=_0x3409f3[_0x2e2d6d(0x371)];_0x529573===_0x2c324c[_0x2e2d6d(0x37d)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3409f3),_0x529573===_0x2c324c[_0x2e2d6d(0x37d)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x3409f3);}),this[_0x1edc16(0x2bc)](this[_0x1edc16(0x3ee)][_0x1edc16(0x342)](_0x3bfc14=>{const _0x367677=_0x1edc16,_0x5741d1=_0x3bfc14[_0x367677(0x1d6)];_0x5741d1!=null&&this['_online']&&_0x3bfc14['id']===_0x3f3b23[_0x367677(0x49b)]['id']&&_0x5741d1['unitId']===this[_0x367677(0x298)]&&_0x5741d1['isEditing']===!0x1&&_0x5741d1['ranges'][_0x367677(0x1c4)]>0x0&&this[_0x367677(0x364)](_0x5741d1[_0x367677(0x1f8)]);})),this[_0x1edc16(0x42c)]['collabCursorState$']['pipe'](_0x5b38f4[_0x1edc16(0x491)](this[_0x1edc16(0x2ff)]))[_0x1edc16(0x4af)](_0x2a4d46=>{const _0xde30fa=_0x1edc16;if((_0x2a4d46==null?void 0x0:_0x2a4d46[_0xde30fa(0x298)])!==this[_0xde30fa(0x298)])return;const _0x901b06={'eventID':_0x2c324c['CollaborationEvent'][_0xde30fa(0x499)],'data':_0x2a4d46};this[_0xde30fa(0x28e)](_0x901b06);}),this[_0x1edc16(0x2bc)](this[_0x1edc16(0x3ee)]['onCommandExecuted'](_0x3372f4=>{const _0x3ce016=_0x1edc16;if(_0x3372f4['params']==null)return;const _0x5c9574=_0x3372f4['params'];if(_0x3372f4['id']!==_0x3f3b23[_0x3ce016(0x439)]['id']||_0x5c9574[_0x3ce016(0x495)]!==this[_0x3ce016(0x298)])return;const _0x5786b3={'id':_0x3ce016(0x489),'params':_0x5c9574},_0x4c4f43=this[_0x3ce016(0x32f)];for(const [_0x5a7712,_0x2ecd0e]of _0x4c4f43){const _0x339304={'id':_0x3ce016(0x489),'params':{'unitId':this[_0x3ce016(0x298)],'actions':null,'textRanges':_0x2ecd0e[_0x3ce016(0x1f8)]}},_0x24577b=this[_0x3ce016(0x1c3)][_0x3ce016(0x27a)](_0x5786b3,_0x339304,!0x1);if(_0x2c324c[_0x3ce016(0x350)](_0x24577b))throw _0x24577b[_0x3ce016(0x3b0)];_0x4c4f43['set'](_0x5a7712,{..._0x2ecd0e,'ranges':_0x24577b[_0x3ce016(0x3d2)][_0x3ce016(0x1d6)][_0x3ce016(0x1f4)]});}queueMicrotask(()=>{const _0x553931=_0x3ce016;this[_0x553931(0x26e)][_0x553931(0x2d3)](_0x4c4f43);});})));}[_0x295e11(0x28e)](_0x187296){const _0x3f686f=_0x295e11;var _0x4ca474,_0x52d007;const {memberID:_0x222de6,selection:_0x888b6f}=_0x187296['data'],_0x529384=_0x58bff3(_0x888b6f),_0x46197e=(_0x52d007=(_0x4ca474=this[_0x3f686f(0x390)][_0x3f686f(0x461)](this[_0x3f686f(0x298)],_0x222de6))==null?void 0x0:_0x4ca474[_0x3f686f(0x2b2)])!=null?_0x52d007:_0x3f686f(0x405),_0x29e655={'color':this[_0x3f686f(0x28f)][_0x3f686f(0x39f)](_0x222de6),'name':_0x46197e,'ranges':_0x529384},_0x1eab11=this['cursorInfo'];_0x1eab11['set'](_0x222de6,_0x29e655),this[_0x3f686f(0x26e)][_0x3f686f(0x2d3)](_0x1eab11);}[_0x295e11(0x3bb)](_0x1bc7a9){const _0x54f6ef=_0x295e11,{memberID:_0x1f34a3}=_0x1bc7a9[_0x54f6ef(0x38e)],_0x280e18=this[_0x54f6ef(0x32f)];_0x280e18[_0x54f6ef(0x240)](_0x1f34a3),this[_0x54f6ef(0x26e)][_0x54f6ef(0x2d3)](_0x280e18);}[_0x295e11(0x469)](){const _0x44e8a8=_0x295e11;var _0x736fbe;if(this['_online']=!0x0,((_0x736fbe=this[_0x44e8a8(0x3ba)][_0x44e8a8(0x3cd)]())==null?void 0x0:_0x736fbe[_0x44e8a8(0x310)]())!==this[_0x44e8a8(0x298)])return;const _0x325e34=this[_0x44e8a8(0x351)][_0x44e8a8(0x1de)](_0x3f3b23['DocSelectionManagerService'])[_0x44e8a8(0x3c9)]();Array[_0x44e8a8(0x44f)](_0x325e34)&&_0x325e34[_0x44e8a8(0x1c4)]>0x0&&this[_0x44e8a8(0x364)](_0x325e34);}[_0x295e11(0x2ec)](){const _0x3df8b6=_0x295e11;this[_0x3df8b6(0x43f)]=!0x1;}};_0x3890dd=_0x3e0001([_0x257362(0x2,_0x40624a['Inject'](_0x40624a[_0x295e11(0x474)])),_0x257362(0x3,_0x40624a[_0x295e11(0x33d)](_0x2d4f99)),_0x257362(0x4,_0x40624a[_0x295e11(0x33d)](_0x3958ea[_0x295e11(0x3ca)])),_0x257362(0x5,_0x40624a[_0x295e11(0x33d)](_0x2a125f)),_0x257362(0x6,_0x2c324c[_0x295e11(0x487)]),_0x257362(0x7,_0x40624a[_0x295e11(0x2e4)]),_0x257362(0x8,_0x40624a[_0x295e11(0x31e)])],_0x3890dd);var _0x4f6ccc=Object[_0x295e11(0x3a0)],_0x41cedf=(_0x4f145a,_0x397679,_0x1be8c2,_0x5174c2)=>{const _0x1cba3e=_0x295e11;for(var _0x8a633=_0x5174c2>0x1?void 0x0:_0x5174c2?_0x4f6ccc(_0x397679,_0x1be8c2):_0x397679,_0x556b21=_0x4f145a[_0x1cba3e(0x1c4)]-0x1,_0x1b4ab6;_0x556b21>=0x0;_0x556b21--)(_0x1b4ab6=_0x4f145a[_0x556b21])&&(_0x8a633=_0x1b4ab6(_0x8a633)||_0x8a633);return _0x8a633;},_0x1b052f=(_0x53d015,_0x570139)=>(_0x1c6c6b,_0x12287d)=>_0x570139(_0x1c6c6b,_0x12287d,_0x53d015);const _0x5b2ea1=0x12c,_0x1f1062=0x64,_0x5e4f08=()=>{let _0xb95cd2=[],_0x9b5be1=!0x1;return _0x53a938=>{const _0x4b227d=_0xd951;_0xb95cd2[_0x4b227d(0x2f0)](_0x53a938),_0x9b5be1||(_0x9b5be1=!0x0,setTimeout(()=>{const _0x38c4d2=_0x4b227d;_0xb95cd2[_0x38c4d2(0x24d)](_0x198d60=>_0x198d60()),_0xb95cd2=[],_0x9b5be1=!0x1;}));};};let _0x523ec5=class extends _0x40624a[_0x295e11(0x40a)]{constructor(_0x53a2aa,_0x24400c,_0x3f2398,_0x2540fd,_0x54a51d,_0xd0d4ed,_0x2b9b4e,_0x5eabde){const _0x4de1b5=_0x295e11;super(),_0x9020b(this,_0x4de1b5(0x43f),!0x1),_0x9020b(this,_0x4de1b5(0x4a0),!0x1),_0x9020b(this,'_cursorInfo$',new _0x5b38f4[(_0x4de1b5(0x21d))](new Map())),_0x9020b(this,_0x4de1b5(0x3cc),this[_0x4de1b5(0x26e)]['asObservable']()),_0x9020b(this,'_roomMembers$',new _0x5b38f4['BehaviorSubject']([])),_0x9020b(this,_0x4de1b5(0x334),this[_0x4de1b5(0x4ad)][_0x4de1b5(0x32d)](_0x5b38f4[_0x4de1b5(0x376)](_0x5b2ea1))),_0x9020b(this,'_updateLocalCursor',_0x40624a[_0x4de1b5(0x219)]((_0x49fedb,_0x3f8233)=>{const _0x170276=_0x4de1b5,_0xe1c0d2={'eventID':_0x2c324c[_0x170276(0x37d)][_0x170276(0x499)],'data':{'unitID':this[_0x170276(0x298)],'memberID':this[_0x170276(0x2ba)][_0x170276(0x1e4)](),'selection':_0x100a4f['serializeRangeWithSheet'](_0x49fedb,_0x3f8233[_0x170276(0x2a3)])}};this[_0x170276(0x2ba)][_0x170276(0x3c6)](_0xe1c0d2,this[_0x170276(0x298)]);},_0x1f1062)),(this[_0x4de1b5(0x298)]=_0x53a2aa,this[_0x4de1b5(0x2ba)]=_0x24400c,this[_0x4de1b5(0x351)]=_0x3f2398,this[_0x4de1b5(0x28f)]=_0x2540fd,this[_0x4de1b5(0x390)]=_0x54a51d,this['_univerInstanceService']=_0xd0d4ed,this[_0x4de1b5(0x3ee)]=_0x2b9b4e,this[_0x4de1b5(0x1d4)]=_0x5eabde);}get[_0x295e11(0x32f)](){const _0x5db136=_0x295e11;return this[_0x5db136(0x26e)][_0x5db136(0x337)]();}get[_0x295e11(0x283)](){const _0x330254=_0x295e11;return this[_0x330254(0x4ad)][_0x330254(0x337)]();}[_0x295e11(0x3d1)](){const _0x51655=_0x295e11;super[_0x51655(0x3d1)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x51655(0x23c)](),this['_roomMembers$'][_0x51655(0x2d3)]([]),this[_0x51655(0x4ad)][_0x51655(0x23c)]();}[_0x295e11(0x3ec)](){const _0x1ee9a5=_0x295e11;this['_init']||(this[_0x1ee9a5(0x4a0)]=!0x0,this[_0x1ee9a5(0x2ba)]['sessionStatus$'][_0x1ee9a5(0x32d)](_0x5b38f4[_0x1ee9a5(0x491)](this[_0x1ee9a5(0x2ff)]))['subscribe'](_0x1cb913=>{const _0x3a2a11=_0x1ee9a5;_0x1cb913===_0x3958ea['SessionStatus'][_0x3a2a11(0x204)]?this['_toggleOnline']():this[_0x3a2a11(0x2ec)]();}),this[_0x1ee9a5(0x2ba)][_0x1ee9a5(0x1d3)][_0x1ee9a5(0x32d)](_0x5b38f4[_0x1ee9a5(0x491)](this[_0x1ee9a5(0x2ff)]))[_0x1ee9a5(0x4af)](_0x18ca13=>{const _0x4be13e=_0x1ee9a5,_0x9171fb=_0x18ca13[_0x4be13e(0x371)];_0x9171fb===_0x2c324c[_0x4be13e(0x37d)]['UPDATE_CURSOR']&&this[_0x4be13e(0x28e)](_0x18ca13),_0x9171fb===_0x2c324c[_0x4be13e(0x37d)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x18ca13);}),this['_onRefRangeChange'](),this[_0x1ee9a5(0x2bc)](this[_0x1ee9a5(0x3ee)][_0x1ee9a5(0x342)](_0x548dff=>{const _0x447cef=_0x1ee9a5;if(this[_0x447cef(0x43f)]&&_0x548dff['id']===_0x411621[_0x447cef(0x483)]['id']&&_0x548dff['params']['unitId']===this[_0x447cef(0x298)]){const _0x2c7fef=_0x548dff[_0x447cef(0x1d6)];this[_0x447cef(0x364)](_0x2c7fef[_0x447cef(0x496)],_0x2c7fef['selections'][0x0]);}})));}['_onCursorUpdate'](_0x87c3c5){const _0x3f3f45=_0x295e11;var _0x29d61d,_0x3037ea;const {memberID:_0x3dddac,selection:_0x5c1174}=_0x87c3c5[_0x3f3f45(0x38e)],{sheetName:_0x186d70,range:_0x1d0ca4}=_0x100a4f[_0x3f3f45(0x1cb)](_0x5c1174),_0x286a83={'name':(_0x3037ea=(_0x29d61d=this['_memberService']['getMember'](this[_0x3f3f45(0x298)],_0x3dddac))==null?void 0x0:_0x29d61d[_0x3f3f45(0x2b2)])!=null?_0x3037ea:_0x3f3f45(0x405),'range':this[_0x3f3f45(0x3f3)](_0x186d70,_0x1d0ca4),'sheetID':_0x186d70,'color':this['_colorAssignService'][_0x3f3f45(0x39f)](_0x3dddac),'selection':_0x5c1174},_0x1592bc=this[_0x3f3f45(0x32f)];_0x1592bc[_0x3f3f45(0x370)](_0x3dddac,_0x286a83),this[_0x3f3f45(0x26e)][_0x3f3f45(0x2d3)](_0x1592bc);}[_0x295e11(0x3bb)](_0x42e49c){const _0x3a547d=_0x295e11,{memberID:_0x23401b}=_0x42e49c[_0x3a547d(0x38e)],_0x2b9a20=this[_0x3a547d(0x32f)];_0x2b9a20[_0x3a547d(0x240)](_0x23401b),this[_0x3a547d(0x26e)][_0x3a547d(0x2d3)](_0x2b9a20);}['_getMergeRange'](_0x3faf14,_0x355ecf){const _0x32e5b4=_0x295e11;var _0x3ac723,_0x5c18f7;const _0x370291=(_0x5c18f7=(_0x3ac723=this[_0x32e5b4(0x3ba)][_0x32e5b4(0x445)](this[_0x32e5b4(0x298)]))==null?void 0x0:_0x3ac723[_0x32e5b4(0x3e2)](_0x3faf14))==null?void 0x0:_0x5c18f7[_0x32e5b4(0x484)]();return(_0x370291==null?void 0x0:_0x370291[_0x32e5b4(0x43c)](_0x1db291=>_0x40624a['Rectangle'][_0x32e5b4(0x468)](_0x1db291,_0x355ecf)))||_0x355ecf;}[_0x295e11(0x3c0)](){const _0x3dd950=_0x295e11,_0x2fc688=new _0x40624a[(_0x3dd950(0x3d3))](),_0x3e7019=_0x5e4f08(),_0x14352a=()=>{const _0x4a07d2=_0x3dd950;_0x2fc688[_0x4a07d2(0x3d1)]();const _0x38dcf1=(_0x27614d,_0x5b7305,_0xeb9f68,_0x4bea2e)=>{const _0x541b19=_0x4a07d2;let _0x3c566f=[];switch(_0x27614d['id']){case _0x411621[_0x541b19(0x36e)][_0x541b19(0x3eb)]:{_0x3c566f=_0x411621['handleDeleteRangeMoveLeft'](_0x27614d,_0x4bea2e);break;}case _0x411621[_0x541b19(0x36e)][_0x541b19(0x366)]:{_0x3c566f=_0x411621['handleDeleteRangeMoveUp'](_0x27614d,_0x4bea2e);break;}case _0x411621[_0x541b19(0x36e)]['InsertColCommandId']:{_0x3c566f=_0x411621['handleInsertCol'](_0x27614d,_0x4bea2e);break;}case _0x411621[_0x541b19(0x36e)][_0x541b19(0x3d5)]:{_0x3c566f=_0x411621[_0x541b19(0x448)](_0x27614d,_0x4bea2e);break;}case _0x411621[_0x541b19(0x36e)][_0x541b19(0x410)]:{_0x3c566f=_0x411621[_0x541b19(0x203)](_0x27614d,_0x4bea2e);break;}case _0x411621[_0x541b19(0x36e)][_0x541b19(0x1e3)]:{_0x3c566f=_0x411621['handleInsertRow'](_0x27614d,_0x4bea2e);break;}case _0x411621['EffectRefRangId'][_0x541b19(0x49c)]:{_0x3c566f=_0x411621['handleMoveRange'](_0x27614d,_0x4bea2e);break;}case _0x411621['EffectRefRangId'][_0x541b19(0x291)]:{_0x3c566f=_0x411621[_0x541b19(0x394)](_0x27614d,_0x4bea2e);break;}case _0x411621[_0x541b19(0x36e)][_0x541b19(0x2ac)]:{_0x3c566f=_0x411621['handleIRemoveRow'](_0x27614d,_0x4bea2e);break;}}const _0x1dc816=_0x411621[_0x541b19(0x349)](_0x3c566f,_0x4bea2e),_0x553b3b=this[_0x541b19(0x32f)][_0x541b19(0x1de)](_0x5b7305);if(_0x553b3b&&_0x1dc816){const _0x441a82={..._0x553b3b,'range':_0x1dc816};this[_0x541b19(0x32f)][_0x541b19(0x370)](_0x5b7305,_0x441a82),_0x3e7019(()=>{const _0xa2c807=_0x541b19,_0x2af9fc=this['_refRangeService'][_0xa2c807(0x28c)](_0x1dc816,_0x255a80=>(_0x2af9fc[_0xa2c807(0x3d1)](),_0x38dcf1(_0x255a80,_0x5b7305,_0xeb9f68,_0x1dc816)));_0x2fc688[_0xa2c807(0x372)](_0x2af9fc);});}return{'redos':[],'undos':[]};};this[_0x4a07d2(0x32f)]['forEach']((_0x4709cc,_0x29775a)=>{const _0x13693f=_0x4a07d2,{range:_0x35ece7,sheetID:_0x488596}=_0x4709cc,_0x4b64f4=this['_refRangeService']['registerRefRange'](_0x35ece7,_0x4d7a1e=>(_0x4b64f4[_0x13693f(0x3d1)](),_0x38dcf1(_0x4d7a1e,_0x29775a,_0x488596,_0x35ece7)));_0x2fc688[_0x13693f(0x372)](_0x4b64f4);});};this[_0x3dd950(0x2bc)](_0x40624a[_0x3dd950(0x381)](this[_0x3dd950(0x26e)]['subscribe'](()=>{_0x14352a();})));}['_toggleOnline'](){const _0x5b511a=_0x295e11;var _0x54caf1,_0x32f729;if(this[_0x5b511a(0x43f)]=!0x0,((_0x54caf1=this[_0x5b511a(0x3ba)]['getFocusedUnit']())==null?void 0x0:_0x54caf1['getUnitId']())!==this[_0x5b511a(0x298)])return;const _0x2e7bb4=(_0x32f729=this[_0x5b511a(0x351)]['get'](_0x411621[_0x5b511a(0x2df)])[_0x5b511a(0x293)]())==null?void 0x0:_0x32f729[0x0],_0x3bfa3f=this['_univerInstanceService'][_0x5b511a(0x1bf)](_0x40624a[_0x5b511a(0x260)][_0x5b511a(0x29c)])[_0x5b511a(0x3de)]();_0x2e7bb4&&_0x3bfa3f&&this['_updateLocalCursor'](_0x3bfa3f[_0x5b511a(0x287)](),_0x2e7bb4);}[_0x295e11(0x2ec)](){const _0x497efa=_0x295e11;this[_0x497efa(0x43f)]=!0x1;}};_0x523ec5=_0x41cedf([_0x1b052f(0x2,_0x40624a['Inject'](_0x40624a[_0x295e11(0x474)])),_0x1b052f(0x3,_0x40624a[_0x295e11(0x33d)](_0x2d4f99)),_0x1b052f(0x4,_0x40624a[_0x295e11(0x33d)](_0x3958ea['MemberService'])),_0x1b052f(0x5,_0x40624a[_0x295e11(0x2e4)]),_0x1b052f(0x6,_0x40624a['ICommandService']),_0x1b052f(0x7,_0x40624a[_0x295e11(0x33d)](_0x411621['RefRangeService']))],_0x523ec5);var _0x8ceac4=Object['getOwnPropertyDescriptor'],_0x38c744=(_0x3ce998,_0x472e3d,_0x40cea5,_0x515c8b)=>{const _0x358e43=_0x295e11;for(var _0x43f0a4=_0x515c8b>0x1?void 0x0:_0x515c8b?_0x8ceac4(_0x472e3d,_0x40cea5):_0x472e3d,_0x3b0205=_0x3ce998[_0x358e43(0x1c4)]-0x1,_0x3eed05;_0x3b0205>=0x0;_0x3b0205--)(_0x3eed05=_0x3ce998[_0x3b0205])&&(_0x43f0a4=_0x3eed05(_0x43f0a4)||_0x43f0a4);return _0x43f0a4;},_0x335a40=(_0xb7f342,_0xad2926)=>(_0x5f6054,_0x5c85bd)=>_0xad2926(_0x5f6054,_0x5c85bd,_0xb7f342);let _0x2e9070=class extends _0x40624a[_0x295e11(0x40a)]{constructor(_0x1fe412,_0x2f10d2,_0x6027a5){const _0x27065e=_0x295e11;super(),_0x9020b(this,_0x27065e(0x2e1),new Map()),_0x9020b(this,'_entityInit$',new _0x5b38f4[(_0x27065e(0x3e9))]()),(this[_0x27065e(0x3ba)]=_0x1fe412,this['_injector']=_0x2f10d2,this[_0x27065e(0x40d)]=_0x6027a5,this['_init']());}['dispose'](){const _0xac6d81=_0x295e11;super[_0xac6d81(0x3d1)](),this[_0xac6d81(0x2b5)][_0xac6d81(0x23c)](),this['_entities'][_0xac6d81(0x24d)](_0x5a20f7=>_0x5a20f7[_0xac6d81(0x3d1)]());}[_0x295e11(0x359)](_0x149a78){const _0x5d499f=_0x295e11;return this[_0x5d499f(0x2e1)][_0x5d499f(0x248)](_0x149a78)?this['_entities'][_0x5d499f(0x1de)](_0x149a78)[_0x5d499f(0x3cc)]:this[_0x5d499f(0x2b5)]['pipe'](_0x5b38f4['filter'](_0x436759=>_0x436759[_0x5d499f(0x298)]===_0x149a78),_0x5b38f4[_0x5d499f(0x426)](_0x2db1ba=>_0x2db1ba[_0x5d499f(0x3cc)]));}[_0x295e11(0x4a0)](){const _0x45d9db=_0x295e11;this['_univerInstanceService'][_0x45d9db(0x324)](_0x40624a[_0x45d9db(0x260)][_0x45d9db(0x29c)])['pipe'](_0x5b38f4[_0x45d9db(0x491)](this[_0x45d9db(0x2ff)]))[_0x45d9db(0x4af)](async _0xfc322c=>{const _0x53a854=_0x45d9db,_0x3d0a6e=_0xfc322c['getUnitId'](),_0x44e0cb=await this[_0x53a854(0x452)](_0x3d0a6e);this[_0x53a854(0x2b5)]['next'](_0x44e0cb),this[_0x53a854(0x2e1)][_0x53a854(0x370)](_0x3d0a6e,_0x44e0cb);}),this[_0x45d9db(0x3ba)][_0x45d9db(0x324)](_0x40624a['UniverInstanceType'][_0x45d9db(0x36a)])[_0x45d9db(0x32d)](_0x5b38f4[_0x45d9db(0x491)](this[_0x45d9db(0x2ff)]))[_0x45d9db(0x32d)](_0x5b38f4['filter'](_0x17f7b2=>!_0x17f7b2['getUnitId']()[_0x45d9db(0x3b8)]('__')))[_0x45d9db(0x4af)](async _0x56497d=>{const _0x12becb=_0x45d9db,_0x5e5339=_0x56497d[_0x12becb(0x310)](),_0x237dc5=await this[_0x12becb(0x3ed)](_0x5e5339);this['_entityInit$']['next'](_0x237dc5),this[_0x12becb(0x2e1)][_0x12becb(0x370)](_0x5e5339,_0x237dc5);}),_0x5b38f4['merge'](this['_univerInstanceService'][_0x45d9db(0x48a)](_0x40624a[_0x45d9db(0x260)]['UNIVER_DOC']),this[_0x45d9db(0x3ba)][_0x45d9db(0x48a)](_0x40624a[_0x45d9db(0x260)][_0x45d9db(0x29c)]))[_0x45d9db(0x32d)](_0x5b38f4[_0x45d9db(0x491)](this['dispose$']))['subscribe'](_0x5f42bb=>{const _0x3de874=_0x45d9db,_0x1565e2=_0x5f42bb[_0x3de874(0x310)](),_0x3b3ee7=this[_0x3de874(0x2e1)]['get'](_0x1565e2);_0x3b3ee7&&(_0x3b3ee7[_0x3de874(0x3d1)](),this[_0x3de874(0x2e1)]['delete'](_0x1565e2));});}async[_0x295e11(0x452)](_0x304ffd){const _0x41cbe8=_0x295e11,_0x31eff5=await this['_collabSessionService']['requireSession'](_0x304ffd),_0x11c5dc=this[_0x41cbe8(0x351)]['createInstance'](_0x523ec5,_0x304ffd,_0x31eff5);return _0x11c5dc[_0x41cbe8(0x3ec)](),_0x11c5dc;}async[_0x295e11(0x3ed)](_0x33df58){const _0x327ee5=_0x295e11,_0x280772=await this[_0x327ee5(0x40d)]['requireSession'](_0x33df58),_0x25430d=this[_0x327ee5(0x351)][_0x327ee5(0x24a)](_0x3890dd,_0x33df58,_0x280772);return _0x25430d[_0x327ee5(0x3ec)](),_0x25430d;}};_0x2e9070=_0x38c744([_0x335a40(0x0,_0x40624a['IUniverInstanceService']),_0x335a40(0x1,_0x40624a[_0x295e11(0x33d)](_0x40624a[_0x295e11(0x474)])),_0x335a40(0x2,_0x40624a[_0x295e11(0x33d)](_0x3958ea[_0x295e11(0x25b)]))],_0x2e9070);const _0x35613d=0x14,_0x4d8d40=0xc8,_0x5d5c87=0x4,_0x928588=0x5;function _0x152066(_0x2e4cb0,_0x14e90d){const _0x2fccec=_0x295e11;let {radius:_0x269c10,width:_0x1b13f7,height:_0x1d1e5d}=_0x14e90d;_0x269c10=_0x269c10!=null?_0x269c10:0x0,_0x1b13f7=_0x1b13f7!=null?_0x1b13f7:0x1e,_0x1d1e5d=_0x1d1e5d!=null?_0x1d1e5d:0x1e;let _0x36d24f=0x0,_0x4f65a7=0x0,_0x1a9e46=0x0;_0x36d24f=_0x4f65a7=_0x1a9e46=Math[_0x2fccec(0x358)](_0x269c10,_0x1b13f7/0x2,_0x1d1e5d/0x2),_0x2e4cb0[_0x2fccec(0x2f6)](),_0x2e4cb0[_0x2fccec(0x227)](_0x36d24f,0x0),_0x2e4cb0[_0x2fccec(0x3ae)](_0x1b13f7-_0x4f65a7,0x0),_0x2e4cb0[_0x2fccec(0x437)](_0x1b13f7-_0x4f65a7,_0x4f65a7,_0x4f65a7,Math['PI']*0x3/0x2,0x0,!0x1),_0x2e4cb0[_0x2fccec(0x3ae)](_0x1b13f7,_0x1d1e5d-_0x1a9e46),_0x2e4cb0[_0x2fccec(0x437)](_0x1b13f7-_0x1a9e46,_0x1d1e5d-_0x1a9e46,_0x1a9e46,0x0,Math['PI']/0x2,!0x1),_0x2e4cb0['lineTo'](0x0,_0x1d1e5d),_0x2e4cb0[_0x2fccec(0x3ae)](0x0,_0x36d24f),_0x2e4cb0['arc'](_0x36d24f,_0x36d24f,_0x36d24f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2e4cb0[_0x2fccec(0x4a4)](),_0x14e90d[_0x2fccec(0x1c1)]&&(_0x2e4cb0[_0x2fccec(0x2d8)](),_0x2e4cb0[_0x2fccec(0x2c5)]=_0x14e90d['fill'],_0x14e90d[_0x2fccec(0x377)]===_0x2fccec(0x2c2)?_0x2e4cb0['fill']('evenodd'):_0x2e4cb0['fill'](),_0x2e4cb0[_0x2fccec(0x46a)]());}class _0x368cae extends _0x2680b3[_0x295e11(0x374)]{constructor(_0x27b948,_0x4ca0a7){const _0x3114c7=_0x295e11;super(_0x27b948,_0x4ca0a7),_0x9020b(this,'color'),_0x9020b(this,'text'),(this[_0x3114c7(0x4ae)]=_0x4ca0a7==null?void 0x0:_0x4ca0a7['color'],this[_0x3114c7(0x1d7)]=_0x4ca0a7==null?void 0x0:_0x4ca0a7['text']);}static[_0x295e11(0x47d)](_0x445bf8,_0x5820cc){const _0x5aeba8=_0x295e11,{text:_0xd0a2bb,color:_0xa74210}=_0x5820cc;_0x445bf8['save'](),_0x445bf8[_0x5aeba8(0x451)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x538f99=_0x445bf8[_0x5aeba8(0x31b)](_0xd0a2bb)['width'],_0x315024=Math[_0x5aeba8(0x358)](_0x538f99+0x2*_0x5d5c87,_0x4d8d40);_0x152066(_0x445bf8,{'height':_0x35613d,'radius':0x4,'width':_0x315024,'fill':_0xa74210}),_0x445bf8[_0x5aeba8(0x2c5)]=_0x5aeba8(0x2e3);const _0x2bb98d=_0x5d5c87,_0x3af4ce=_0x35613d-_0x928588,_0x463771=_0x4d8d40-0x2*_0x5d5c87;if(_0x538f99>_0x463771){let _0x227587='',_0x136a12=0x0;for(const _0x3497a6 of _0xd0a2bb){const _0x580044=_0x445bf8[_0x5aeba8(0x31b)](_0x3497a6)['width'];if(_0x136a12+_0x580044<=_0x463771-_0x445bf8[_0x5aeba8(0x31b)](_0x5aeba8(0x270))[_0x5aeba8(0x1da)])_0x227587+=_0x3497a6,_0x136a12+=_0x580044;else{_0x227587+=_0x5aeba8(0x270);break;}}_0x445bf8['fillText'](_0x227587,_0x2bb98d,_0x3af4ce);}else _0x445bf8[_0x5aeba8(0x40b)](_0xd0a2bb,_0x2bb98d,_0x3af4ce);_0x445bf8['restore']();}[_0x295e11(0x4b5)](_0x2c41da){_0x368cae['drawWith'](_0x2c41da,this);}}const _0x468e62=_0x295e11(0x304),_0x4c3fbd='collab-text-range-',_0x2981df=_0x295e11(0x2b7),_0x62891c=0x6,_0x5e2caf=1.5,_0x322d6c=0x4,_0x3c6dc7=1.5,_0x32fbe1=_0x295e11(0x40e);class _0x49aed0{constructor(_0x3e776c,_0x430368,_0x167092,_0xf17f62){const _0x3ff88a=_0x295e11;_0x9020b(this,_0x3ff88a(0x2ed),[]),_0x9020b(this,_0x3ff88a(0x480),null),_0x9020b(this,_0x3ff88a(0x3c8),null),_0x9020b(this,'_anchorDot',null),_0x9020b(this,'_hideTimer',null),_0x9020b(this,'_eventUnsubscribe',null),(this[_0x3ff88a(0x317)]=_0x3e776c,this[_0x3ff88a(0x36f)]=_0x430368,this[_0x3ff88a(0x41d)]=_0x167092,this[_0x3ff88a(0x31c)]=_0xf17f62,this[_0x3ff88a(0x369)]());}set[_0x295e11(0x3f8)](_0x4b3ea7){const _0x50fa72=_0x295e11;_0x4b3ea7?(this[_0x50fa72(0x42f)]&&this[_0x50fa72(0x42f)][_0x50fa72(0x3d6)](),this[_0x50fa72(0x3c8)]&&this[_0x50fa72(0x3c8)][_0x50fa72(0x344)]()):(this[_0x50fa72(0x42f)]&&this[_0x50fa72(0x42f)]['show'](),this[_0x50fa72(0x3c8)]&&this[_0x50fa72(0x3c8)][_0x50fa72(0x3d6)]());}['dispose'](){const _0x47c638=_0x295e11;for(const _0x453e76 of this[_0x47c638(0x2ed)])_0x453e76[_0x47c638(0x3d1)]();this['_textBubble']&&this['_textBubble'][_0x47c638(0x3d1)](),this[_0x47c638(0x42f)]&&this['_anchorDot'][_0x47c638(0x3d1)](),this[_0x47c638(0x480)]&&this['_anchor'][_0x47c638(0x3d1)](),this['_eventUnsubscribe']&&this[_0x47c638(0x498)]();}[_0x295e11(0x369)](){const _0x5cd4d=_0x295e11;var _0x21cf32;const {_docSkeleton:_0x2ca938,_document:_0x4e101f}=this,{color:_0x163d4b,name:_0x4f2a64,ranges:_0x2bed12}=this['_cursor'],_0x15de3b=_0x4e101f['getOffsetConfig'](),{docsLeft:_0x514a42,docsTop:_0x513a56}=_0x15de3b,_0x135c20=new _0x118be2['NodePositionConvertToCursor'](_0x15de3b,_0x2ca938);for(const {startOffset:_0xa4fd9f,endOffset:_0x1686cf,rangeType:_0xfcb2f6,segmentId:_0x1a4ea1,segmentPage:_0x3a58d4,collapsed:_0x109dd8,isActive:_0x26afd8}of _0x2bed12){const _0x470543=_0x2ca938[_0x5cd4d(0x22c)](_0xa4fd9f,!0x0,_0x1a4ea1,_0x3a58d4);let _0xf8a32d=_0x2ca938['findNodePositionByCharIndex'](_0x1686cf,!0x0,_0x1a4ea1,_0x3a58d4);if(_0xf8a32d==null&&(_0xf8a32d=_0x2ca938[_0x5cd4d(0x22c)](_0x1686cf-0x1,!0x1,_0x1a4ea1,_0x3a58d4)),_0x26afd8){const {contentBoxPointGroup:_0x6336de}=_0x135c20['getRangePointData'](_0xf8a32d,_0xf8a32d);if(_0x6336de['length']===0x0)continue;this[_0x5cd4d(0x25e)](_0x163d4b,_0x6336de,_0x514a42,_0x513a56,_0x4f2a64),this[_0x5cd4d(0x498)]=this[_0x5cd4d(0x2a8)]();}if(_0x470543&&_0xf8a32d){if(_0xfcb2f6===_0x40624a[_0x5cd4d(0x48e)][_0x5cd4d(0x38a)]){const _0x33c0cc=new _0x118be2[(_0x5cd4d(0x252))](_0x15de3b,_0x2ca938),{pointGroup:_0x28855b}=(_0x21cf32=_0x33c0cc['getRangePointData'](_0x470543,_0xf8a32d))!=null?_0x21cf32:{};if(_0x28855b==null||_0x28855b[_0x5cd4d(0x1c4)]===0x0)continue;this['_drawRectRange'](_0x163d4b,_0x28855b,_0x514a42,_0x513a56);}else{if(!_0x109dd8){const {borderBoxPointGroup:_0x24e0f6}=_0x135c20['getRangePointData'](_0x470543,_0xf8a32d);if(_0x24e0f6[_0x5cd4d(0x1c4)]===0x0)continue;this[_0x5cd4d(0x38d)](_0x163d4b,_0x24e0f6,_0x514a42,_0x513a56);}}}}}[_0x295e11(0x25e)](_0x1a7a43,_0x25207f,_0x1963bf,_0x50f52c,_0x11b189){const _0x55992b=_0x295e11,_0x36e174=this[_0x55992b(0x2e7)](_0x25207f),{left:_0x9f5970,top:_0x33308c,height:_0x2e5b09}=_0x36e174,_0x476ad1=this[_0x55992b(0x26f)](),_0x5b273c=_0x3c6dc7/_0x476ad1,_0x83d532=new _0x2680b3[(_0x55992b(0x1c6))](_0x468e62+_0x40624a[_0x55992b(0x2d5)](_0x62891c),{'left':_0x9f5970+_0x1963bf-_0x5b273c,'top':_0x33308c+_0x50f52c,'height':_0x2e5b09,'width':_0x5e2caf,'fill':_0x1a7a43||_0x2680b3[_0x55992b(0x2cf)](_0x40624a[_0x55992b(0x2f3)][_0x55992b(0x3c1)],0x0),'strokeWidth':_0x5b273c,'stroke':_0x32fbe1,'evented':!0x0});this['_anchor']=_0x83d532,this[_0x55992b(0x36f)][_0x55992b(0x1ee)](_0x83d532,_0x118be2['TEXT_RANGE_LAYER_INDEX']);const _0x4a2a75=new _0x2680b3[(_0x55992b(0x1c6))](_0x468e62+_0x40624a[_0x55992b(0x2d5)](_0x62891c),{'left':_0x9f5970+_0x1963bf-_0x5b273c,'top':_0x33308c+_0x50f52c-_0x322d6c/0x2,'height':_0x322d6c,'width':_0x322d6c,'fill':_0x1a7a43||_0x2680b3[_0x55992b(0x2cf)](_0x40624a[_0x55992b(0x2f3)][_0x55992b(0x3c1)],0x0),'strokeWidth':0x0,'stroke':_0x1a7a43||_0x2680b3[_0x55992b(0x2cf)](_0x40624a[_0x55992b(0x2f3)][_0x55992b(0x3c1)],0x0),'evented':!0x1});this[_0x55992b(0x42f)]=_0x4a2a75,this['_scene'][_0x55992b(0x1ee)](_0x4a2a75,_0x118be2[_0x55992b(0x35a)]);const _0x452e1b=new _0x368cae(_0x468e62+_0x40624a[_0x55992b(0x2d5)](_0x62891c),{'left':_0x9f5970+_0x1963bf-_0x5b273c,'top':_0x33308c+_0x50f52c-_0x35613d,'text':_0x11b189,'color':_0x1a7a43});this[_0x55992b(0x3c8)]=_0x452e1b,this[_0x55992b(0x36f)][_0x55992b(0x1ee)](_0x452e1b,_0x118be2[_0x55992b(0x35a)]),this[_0x55992b(0x3f8)]=!0x1;}[_0x295e11(0x2a8)](){const _0x45e073=_0x295e11,_0x45d74c=this[_0x45e073(0x480)]['onPointerEnter$'][_0x45e073(0x241)](()=>{const _0x428c75=_0x45e073;this[_0x428c75(0x3f8)]=!0x0;}),_0x4a1017=this['_anchor'][_0x45e073(0x29d)][_0x45e073(0x241)](()=>{const _0x13a8ac=_0x45e073;this[_0x13a8ac(0x353)]&&clearTimeout(this[_0x13a8ac(0x353)]),this[_0x13a8ac(0x353)]=setTimeout(()=>{const _0x22d42e=_0x13a8ac;this[_0x22d42e(0x3f8)]=!0x1;},0x7d0);});return()=>{const _0x6ba1db=_0x45e073;_0x45d74c[_0x6ba1db(0x497)](),_0x4a1017['unsubscribe']();};}['_drawTextRange'](_0x51e650,_0x2677dc,_0x4295c3,_0x240818){const _0x2168d1=_0x295e11,_0x3e206b=new _0x40624a[(_0x2168d1(0x3fa))](_0x51e650)[_0x2168d1(0x22d)](0.2)['toRgbString'](),_0x3e5796=new _0x2680b3['RegularPolygon'](_0x4c3fbd+_0x40624a['generateRandomId'](_0x62891c),{'pointsGroup':_0x2677dc,'fill':_0x3e206b||_0x2680b3['getColor'](_0x40624a[_0x2168d1(0x2f3)][_0x2168d1(0x3c1)],0.2),'left':_0x4295c3,'top':_0x240818,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2168d1(0x2ed)][_0x2168d1(0x2f0)](_0x3e5796),this['_scene'][_0x2168d1(0x1ee)](_0x3e5796,_0x118be2[_0x2168d1(0x35a)]);}[_0x295e11(0x42d)](_0x37adb3,_0x1484a6,_0x1375a1,_0x47744a){const _0xc0a53=_0x295e11,_0x1704ee=new _0x40624a[(_0xc0a53(0x3fa))](_0x37adb3)[_0xc0a53(0x22d)](0.2)[_0xc0a53(0x3d0)](),_0x57683d=new _0x2680b3[(_0xc0a53(0x4a1))](_0x2981df+_0x40624a['generateRandomId'](_0x62891c),{'pointsGroup':_0x1484a6,'fill':_0x1704ee||_0x2680b3[_0xc0a53(0x2cf)](_0x40624a['COLORS'][_0xc0a53(0x3c1)],0.2),'left':_0x1375a1,'top':_0x47744a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xc0a53(0x2ed)][_0xc0a53(0x2f0)](_0x57683d),this[_0xc0a53(0x36f)]['addObject'](_0x57683d,_0x118be2[_0xc0a53(0x35a)]);}[_0x295e11(0x2e7)](_0x36430a){const _0x169476=_0x36430a[0x0],_0x3d5c78=_0x169476[0x0],_0x4afe71=_0x169476[0x2],{x:_0x3007fc,y:_0x47a6ab}=_0x3d5c78,{x:_0x66f2e9,y:_0x28a6a5}=_0x4afe71;return{'left':_0x3007fc,'top':_0x47a6ab,'width':_0x66f2e9-_0x3007fc,'height':_0x28a6a5-_0x47a6ab};}[_0x295e11(0x26f)](){const _0x574867=_0x295e11,{scaleX:_0x2b11c8,scaleY:_0x16a6d8}=this[_0x574867(0x36f)][_0x574867(0x457)]();return Math['max'](_0x2b11c8,_0x16a6d8);}}var _0x5d8036=Object[_0x295e11(0x3a0)],_0x48f02f=(_0x422e3a,_0x362264,_0x13f3a5,_0x2e4ea6)=>{for(var _0x33c8e4=_0x2e4ea6>0x1?void 0x0:_0x2e4ea6?_0x5d8036(_0x362264,_0x13f3a5):_0x362264,_0x1a7f33=_0x422e3a['length']-0x1,_0x2971e7;_0x1a7f33>=0x0;_0x1a7f33--)(_0x2971e7=_0x422e3a[_0x1a7f33])&&(_0x33c8e4=_0x2971e7(_0x33c8e4)||_0x33c8e4);return _0x33c8e4;},_0x509c49=(_0x3cb66e,_0x9d9ea8)=>(_0x28d023,_0x355064)=>_0x9d9ea8(_0x28d023,_0x355064,_0x3cb66e);let _0x2faf05=class extends _0x40624a['RxDisposable']{constructor(_0x53e963,_0x1a36ed,_0x57a9c0,_0x6b714b,_0x42fc37){const _0x3ded4d=_0x295e11;super(),_0x9020b(this,_0x3ded4d(0x2b8),[]),_0x9020b(this,'_cursors',[]),(this['_context']=_0x53e963,this['_docSkeletonManagerService']=_0x1a36ed,this[_0x3ded4d(0x3ce)]=_0x57a9c0,this[_0x3ded4d(0x3ee)]=_0x6b714b,this[_0x3ded4d(0x24c)]=_0x42fc37,this[_0x3ded4d(0x4a0)]());}[_0x295e11(0x4a0)](){const _0x978927=_0x295e11,_0x19672e=this[_0x978927(0x2d2)]['unitId'],_0x193287=this[_0x978927(0x3e4)];this[_0x978927(0x2bc)](_0x5b38f4[_0x978927(0x4b0)]([this[_0x978927(0x3ce)][_0x978927(0x359)](_0x19672e),this['_themeService'][_0x978927(0x303)]])[_0x978927(0x32d)](_0x23a207[_0x978927(0x361)](([_0x36f1eb,_0x40f003])=>({'skeleton':_0x193287[_0x978927(0x25a)](),'cursors':[..._0x36f1eb[_0x978927(0x3aa)]()][_0x978927(0x1d5)](_0x4164e5=>({..._0x4164e5,'color':this[_0x978927(0x24c)][_0x978927(0x2c1)](_0x4164e5[_0x978927(0x4ae)])}))})))[_0x978927(0x4af)](_0x4d355d=>{const _0x533a3f=_0x978927;if(this['_removeCollabCursors'](),_0x4d355d){const {skeleton:_0x4a9044,cursors:_0x2ac6ff}=_0x4d355d;this[_0x533a3f(0x285)](_0x4a9044,_0x2ac6ff);}})),this['_initResize'](),this[_0x978927(0x266)]();}[_0x295e11(0x285)](_0x5c235d,_0x1d1800){const _0x105a3b=_0x295e11,{scene:_0x248cf8,mainComponent:_0x51f349}=this[_0x105a3b(0x2d2)],_0x47dffe=_0x1d1800['map'](_0x443027=>new _0x49aed0(_0x443027,_0x248cf8,_0x5c235d,_0x51f349));this[_0x105a3b(0x2b8)]=_0x47dffe,this[_0x105a3b(0x1f0)]=_0x1d1800;}[_0x295e11(0x3df)](){const _0x5a1911=_0x295e11;this[_0x5a1911(0x2cd)]();const {scene:_0x2c9fc9,mainComponent:_0x21bc0d}=this[_0x5a1911(0x2d2)],_0x3eb528=this[_0x5a1911(0x3e4)][_0x5a1911(0x25a)](),_0x237ef4=this[_0x5a1911(0x1f0)][_0x5a1911(0x361)](_0x477e92=>new _0x49aed0(_0x477e92,_0x2c9fc9,_0x3eb528,_0x21bc0d));this['_cursorShapes']=_0x237ef4;}[_0x295e11(0x2cd)](){const _0x548f61=_0x295e11;this[_0x548f61(0x2b8)][_0x548f61(0x24d)](_0x569084=>_0x569084['dispose']()),this[_0x548f61(0x2b8)]=[];}[_0x295e11(0x266)](){const _0x503524=_0x295e11,_0x4a1537=[_0x118be2[_0x503524(0x409)]['id']];this[_0x503524(0x2bc)](this['_commandService'][_0x503524(0x342)](_0x328b7a=>{const _0x22c2ba=_0x503524;_0x4a1537[_0x22c2ba(0x48d)](_0x328b7a['id'])&&_0x328b7a[_0x22c2ba(0x1d6)][_0x22c2ba(0x495)]===this['_context'][_0x22c2ba(0x495)]&&this[_0x22c2ba(0x3df)]();}));}[_0x295e11(0x246)](){const _0x375ed4=_0x295e11;this[_0x375ed4(0x2bc)](_0x40624a[_0x375ed4(0x217)](this[_0x375ed4(0x2d2)][_0x375ed4(0x224)]['onTransformChange$'])[_0x375ed4(0x32d)](_0x23a207['filter'](_0x32b4cb=>_0x32b4cb['type']===_0x2680b3[_0x375ed4(0x2e5)][_0x375ed4(0x382)]),_0x23a207[_0x375ed4(0x403)](0x10))[_0x375ed4(0x4af)](()=>{this['_refreshCollabCursors']();}));}};_0x2faf05=_0x48f02f([_0x509c49(0x1,_0x40624a[_0x295e11(0x33d)](_0x3f3b23[_0x295e11(0x416)])),_0x509c49(0x2,_0x40624a['Inject'](_0x2e9070)),_0x509c49(0x3,_0x40624a[_0x295e11(0x31e)]),_0x509c49(0x4,_0x40624a[_0x295e11(0x33d)](_0x40624a[_0x295e11(0x436)]))],_0x2faf05);const _0x554bac=0x1,_0x1624fb=1.5;class _0x446f9f extends _0x2680b3['Shape']{constructor(_0x191857,_0x80cea1){const _0x144fc3=_0x295e11;super(_0x191857,_0x80cea1),_0x9020b(this,_0x144fc3(0x33b)),_0x9020b(this,_0x144fc3(0x2d7),!0x1),_0x9020b(this,_0x144fc3(0x352)),_0x9020b(this,'_name',''),_0x9020b(this,_0x144fc3(0x460),'top'),_0x9020b(this,'_backgroundColor'),(_0x80cea1&&this[_0x144fc3(0x1c8)](_0x80cea1),this[_0x144fc3(0x3ab)][_0x144fc3(0x241)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x144fc3(0x241)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x295e11(0x1c8)](_0x22cefa){const _0x265723=_0x295e11;var _0x1051f7,_0x43fa79,_0x51ee62,_0x32f725,_0x5ddcf4,_0xd3418a;this[_0x265723(0x33b)]=(_0x1051f7=_0x22cefa[_0x265723(0x4ae)])!=null?_0x1051f7:this['_color'],this[_0x265723(0x2d7)]=(_0x43fa79=_0x22cefa[_0x265723(0x1fa)])!=null?_0x43fa79:this[_0x265723(0x2d7)],this[_0x265723(0x352)]=(_0x51ee62=_0x22cefa[_0x265723(0x2a3)])!=null?_0x51ee62:this[_0x265723(0x352)],this[_0x265723(0x407)]=(_0x32f725=_0x22cefa[_0x265723(0x2b2)])!=null?_0x32f725:this[_0x265723(0x407)],this[_0x265723(0x460)]=(_0x5ddcf4=_0x22cefa['labelPosition'])!=null?_0x5ddcf4:this[_0x265723(0x460)],this[_0x265723(0x23b)]=(_0xd3418a=_0x22cefa[_0x265723(0x30d)])!=null?_0xd3418a:this['_backgroundColor'],this[_0x265723(0x2cb)]({'width':_0x22cefa['width'],'height':_0x22cefa[_0x265723(0x35d)]});}[_0x295e11(0x1fc)](_0x4b5ca4){const _0x22b833=_0x295e11,{row:_0x26ee95,column:_0x2f75dd}=_0x4b5ca4;if(_0x26ee95>=this[_0x22b833(0x352)][_0x22b833(0x218)]&&_0x26ee95<=this['_range'][_0x22b833(0x421)]&&_0x2f75dd>=this[_0x22b833(0x352)]['startColumn']&&_0x2f75dd<=this[_0x22b833(0x352)][_0x22b833(0x3af)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x22b833(0x1c8)]({'hovered':!0x1});}[_0x295e11(0x2bd)](_0x31d5da){return!0x1;}[_0x295e11(0x4b5)](_0x39c592){const _0x51b4e5=_0x295e11;_0x2680b3[_0x51b4e5(0x1c6)]['drawWith'](_0x39c592,{'width':this[_0x51b4e5(0x1da)],'height':this[_0x51b4e5(0x35d)],'strokeWidth':_0x1624fb,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x51b4e5(0x23b)]}),this[_0x51b4e5(0x2d7)]&&(_0x39c592[_0x51b4e5(0x2d8)](),_0x39c592[_0x51b4e5(0x46e)](0x1,0x0,0x0,0x1,this[_0x51b4e5(0x1da)],this[_0x51b4e5(0x460)]==='bottom'?0x0:-_0x35613d),_0x368cae[_0x51b4e5(0x47d)](_0x39c592,{'text':this['_name'],'color':this[_0x51b4e5(0x33b)]}),_0x39c592[_0x51b4e5(0x46a)]());}}var _0x5d98a5=Object[_0x295e11(0x3a0)],_0x399d1c=(_0x1b7c7b,_0x7b9092,_0x4f1259,_0x3a6867)=>{for(var _0x2c80ca=_0x3a6867>0x1?void 0x0:_0x3a6867?_0x5d98a5(_0x7b9092,_0x4f1259):_0x7b9092,_0x4b6784=_0x1b7c7b['length']-0x1,_0x48b49d;_0x4b6784>=0x0;_0x4b6784--)(_0x48b49d=_0x1b7c7b[_0x4b6784])&&(_0x2c80ca=_0x48b49d(_0x2c80ca)||_0x2c80ca);return _0x2c80ca;},_0x4b97fc=(_0x20a562,_0xab254a)=>(_0x111884,_0x1a5f7c)=>_0xab254a(_0x111884,_0x1a5f7c,_0x20a562);const _0x52502=0x1389;let _0xb986df=class extends _0x40624a[_0x295e11(0x40a)]{constructor(_0x1ee1aa,_0x500f55,_0x1bfc3b,_0x298392){const _0x7aa836=_0x295e11;super(),_0x9020b(this,_0x7aa836(0x1f0),new Set()),_0x9020b(this,_0x7aa836(0x2e0),null),(this[_0x7aa836(0x2d2)]=_0x1ee1aa,this[_0x7aa836(0x3b7)]=_0x500f55,this[_0x7aa836(0x3ce)]=_0x1bfc3b,this[_0x7aa836(0x24c)]=_0x298392,this[_0x7aa836(0x4a0)]());}[_0x295e11(0x4a0)](){const _0x500a49=_0x295e11;this['_sheetSkeletonManagerService'][_0x500a49(0x3b3)][_0x500a49(0x32d)](_0x23a207[_0x500a49(0x491)](this[_0x500a49(0x2ff)]),_0x23a207[_0x500a49(0x426)](_0x260293=>{const _0x15ca47=_0x500a49;if(_0x260293){const _0x1cf6ef=_0x260293[_0x15ca47(0x482)];return _0x5b38f4['combineLatest'](this['_collabCursorController'][_0x15ca47(0x359)](this['_context'][_0x15ca47(0x495)]),this['_themeService'][_0x15ca47(0x303)])[_0x15ca47(0x32d)](_0x23a207['map'](([_0x30fe7b,_0x5dc4c8])=>{const _0x3507ac=_0x15ca47,_0xa7f4e2=new Map();return _0x30fe7b[_0x3507ac(0x24d)]((_0x535890,_0x1bbee2)=>{const _0x5ab6a9=_0x3507ac;if(_0x535890['sheetID']===_0x1cf6ef){const _0x14f30d={..._0x535890};_0x14f30d[_0x5ab6a9(0x4ae)]=this[_0x5ab6a9(0x24c)][_0x5ab6a9(0x2c1)](_0x535890['color']),_0xa7f4e2[_0x5ab6a9(0x370)](_0x1bbee2,_0x14f30d);}}),{'skeleton':_0x260293,'cursors':_0xa7f4e2};}));}return _0x5b38f4['of']({'skeleton':null,'cursors':new Map()});}))[_0x500a49(0x4af)](({skeleton:_0x4921d2,cursors:_0x5d4702})=>{const _0x2fc025=_0x500a49;this[_0x2fc025(0x2cd)](),_0x4921d2&&this[_0x2fc025(0x285)](_0x4921d2,_0x5d4702);}),this[_0x500a49(0x3b7)][_0x500a49(0x3b3)]['subscribe'](_0x3989b9=>{const _0x3d3863=_0x500a49;if(_0x3989b9==null)return;const {skeleton:_0x416265}=_0x3989b9,{scene:_0x3a8ade}=this[_0x3d3863(0x2d2)];_0x3a8ade[_0x3d3863(0x1df)][_0x3d3863(0x241)](_0x40624a[_0x3d3863(0x219)](_0xd4e93f=>{const _0x51cdd8=_0x3d3863;var _0x3b3651,_0x4525e5;const {offsetX:_0x4df87c,offsetY:_0x22bfb1}=_0xd4e93f,{x:_0x3c34dc,y:_0x5aeee3}=_0x3a8ade[_0x51cdd8(0x37b)](_0x2680b3[_0x51cdd8(0x3a9)][_0x51cdd8(0x2b9)]([_0x4df87c,_0x22bfb1])),{scaleX:_0x4543fd,scaleY:_0x81404a}=_0x3a8ade[_0x51cdd8(0x457)](),_0x5466ba=_0x3a8ade[_0x51cdd8(0x1e1)](_0x2680b3[_0x51cdd8(0x343)][_0x51cdd8(0x2b1)]),_0x2b909b=_0x3a8ade[_0x51cdd8(0x38c)](_0x2680b3[_0x51cdd8(0x3a9)][_0x51cdd8(0x2b9)]([_0x3c34dc,_0x5aeee3]),_0x5466ba),_0x569c48=_0x416265[_0x51cdd8(0x399)](_0x4df87c,_0x22bfb1,_0x4543fd,_0x81404a,_0x2b909b);((_0x3b3651=this['_lastPointer'])==null?void 0x0:_0x3b3651['column'])===_0x569c48[_0x51cdd8(0x2f4)]&&((_0x4525e5=this['_lastPointer'])==null?void 0x0:_0x4525e5[_0x51cdd8(0x2dd)])===_0x569c48[_0x51cdd8(0x2dd)]||this[_0x51cdd8(0x1f0)][_0x51cdd8(0x24d)](_0x238391=>{_0x238391['onMouseMove'](_0x569c48);});},0x64));});}[_0x295e11(0x285)](_0x35609f,_0x36dd65){const _0x359ee4=_0x295e11;var _0x515972;const _0x42e965=(_0x515972=this[_0x359ee4(0x3b7)][_0x359ee4(0x1c2)]())==null?void 0x0:_0x515972[_0x359ee4(0x27d)];if(!_0x42e965)return;const _0x3fa5b4=this[_0x359ee4(0x2a0)]();if(!_0x3fa5b4)return;this[_0x359ee4(0x1f0)][_0x359ee4(0x24d)](_0x17f7d1=>{const _0x6fdaff=_0x359ee4;_0x17f7d1[_0x6fdaff(0x216)]();});const {scene:_0x50d9da}=_0x3fa5b4,_0x354a8b=_0x1c8364(Array[_0x359ee4(0x4a6)](_0x36dd65[_0x359ee4(0x3aa)]()))[_0x359ee4(0x361)](_0x20008a=>{const _0x5ba545=_0x359ee4,{color:_0x55f6ed,range:_0x5f21e7,name:_0x3de70f,selection:_0x16a4e9,sheetID:_0x2a1fec}=_0x20008a,{startColumn:_0x46c150,startRow:_0x335f62,endColumn:_0x5dce2b,endRow:_0x5a0e2b}=_0x5f21e7,_0x1b432e=_0x383790[_0x5ba545(0x290)](_0x335f62,_0x46c150,_0x50d9da,_0x42e965),_0x2447d5=_0x383790[_0x5ba545(0x290)](_0x5a0e2b,_0x5dce2b,_0x50d9da,_0x42e965),{columnHeaderHeightAndMarginTop:_0x20aa36}=_0x42e965,{startX:_0x211bb7,startY:_0x6f1270}=_0x1b432e,{endX:_0x4d9382,endY:_0x5201b8}=_0x2447d5,_0x10d8bb=_0x4d9382-_0x211bb7,_0x4e5c52=_0x5201b8-_0x6f1270,_0x463e23={'labelPosition':_0x6f1270-_0x20aa36>=_0x35613d?'top':_0x5ba545(0x21c),'sheetID':_0x2a1fec,'range':_0x5f21e7,'color':_0x55f6ed,'name':_0x3de70f,'selection':_0x16a4e9,'left':_0x211bb7,'top':_0x6f1270,'width':_0x10d8bb,'height':_0x4e5c52,'evented':!0x1,'zIndex':_0x52502};return new _0x446f9f(_0x3de70f,_0x463e23);});_0x50d9da[_0x359ee4(0x462)](_0x354a8b,_0x554bac),this[_0x359ee4(0x1f0)]=new Set(_0x354a8b);}[_0x295e11(0x2cd)](){const _0x178af6=_0x295e11;var _0x40f1dd;(_0x40f1dd=this[_0x178af6(0x1f0)])==null||_0x40f1dd['forEach'](_0x24fe21=>_0x24fe21['dispose']());}[_0x295e11(0x2a0)](){const _0x3b1ff4=_0x295e11;return _0x383790[_0x3b1ff4(0x22e)](this['_context']['unit'],this[_0x3b1ff4(0x2d2)]);}};_0xb986df=_0x399d1c([_0x4b97fc(0x1,_0x40624a[_0x295e11(0x33d)](_0x383790['SheetSkeletonManagerService'])),_0x4b97fc(0x2,_0x40624a[_0x295e11(0x33d)](_0x2e9070)),_0x4b97fc(0x3,_0x40624a[_0x295e11(0x33d)](_0x40624a[_0x295e11(0x436)]))],_0xb986df);function _0x1c8364(_0x1d81dc){const _0x8c30c4=_0x295e11,_0x2ec3b8=new Map();return _0x1d81dc[_0x8c30c4(0x24d)](_0x34ba1f=>{const _0x3b4441=_0x8c30c4;if(_0x2ec3b8['has'](_0x34ba1f[_0x3b4441(0x49f)])){const _0x411f40=_0x2ec3b8['get'](_0x34ba1f[_0x3b4441(0x49f)]);_0x411f40['name']+=',\x20'+_0x34ba1f[_0x3b4441(0x2b2)];}else _0x2ec3b8[_0x3b4441(0x370)](_0x34ba1f[_0x3b4441(0x49f)],_0x34ba1f);}),Array[_0x8c30c4(0x4a6)](_0x2ec3b8[_0x8c30c4(0x3aa)]());}var _0x326b59=Object[_0x295e11(0x3a0)],_0x31e8cf=(_0x2bc339,_0x2cd2a2,_0x50089b,_0x82946f)=>{const _0x2d3b7e=_0x295e11;for(var _0x1f8ef3=_0x82946f>0x1?void 0x0:_0x82946f?_0x326b59(_0x2cd2a2,_0x50089b):_0x2cd2a2,_0x4d16db=_0x2bc339[_0x2d3b7e(0x1c4)]-0x1,_0x45d6ea;_0x4d16db>=0x0;_0x4d16db--)(_0x45d6ea=_0x2bc339[_0x4d16db])&&(_0x1f8ef3=_0x45d6ea(_0x1f8ef3)||_0x1f8ef3);return _0x1f8ef3;},_0x2c4925=(_0x4fddfb,_0xccfc63)=>(_0x6f0825,_0x352217)=>_0xccfc63(_0x6f0825,_0x352217,_0x4fddfb);let _0x3ef4e4=class extends _0x40624a[_0x295e11(0x430)]{constructor(_0x2faa9a,_0x1cab0b,_0x51fd2d,_0x28daa8,_0x27c5f6,_0x5eb3e6){const _0x49a0ec=_0x295e11;super(),this['_beforeCloseService']=_0x2faa9a,this[_0x49a0ec(0x247)]=_0x1cab0b,this[_0x49a0ec(0x477)]=_0x51fd2d,this[_0x49a0ec(0x233)]=_0x28daa8,this[_0x49a0ec(0x427)]=_0x27c5f6,this[_0x49a0ec(0x2a5)]=_0x5eb3e6,this[_0x49a0ec(0x2ef)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x1f1018=_0x295e11;this[_0x1f1018(0x2bc)](this[_0x1f1018(0x387)][_0x1f1018(0x21a)](()=>{const _0x505ea7=_0x1f1018;if(this['_localCacheService'][_0x505ea7(0x313)][_0x505ea7(0x47e)])return this[_0x505ea7(0x2a5)]['t'](_0x505ea7(0x486));}));}['_initEvent'](){const _0x55ef9c=_0x295e11;this['disposeWithMe'](this[_0x55ef9c(0x477)][_0x55ef9c(0x1d3)][_0x55ef9c(0x4af)](_0x4c11de=>{const _0x46ea29=_0x55ef9c;_0x4c11de['id']===_0x3958ea[_0x46ea29(0x34e)]['OTHER_CLIENT_EDITING']&&this[_0x46ea29(0x233)][_0x46ea29(0x344)]({'type':_0x4e15c3[_0x46ea29(0x256)]['Warning'],'content':this[_0x46ea29(0x2a5)]['t'](_0x46ea29(0x1ca))}),_0x4c11de['id']===_0x3958ea[_0x46ea29(0x34e)][_0x46ea29(0x37a)]&&this[_0x46ea29(0x233)][_0x46ea29(0x344)]({'type':_0x4e15c3[_0x46ea29(0x256)]['Warning'],'content':this[_0x46ea29(0x2a5)]['t'](_0x46ea29(0x423))}),_0x4c11de['id']===_0x3958ea['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x46ea29(0x427)][_0x46ea29(0x344)]({'title':this[_0x46ea29(0x2a5)]['t'](_0x46ea29(0x41e)),'content':this['_localeService']['t'](_0x46ea29(0x400)),'type':'error','duration':0x0}),_0x4c11de['id']===_0x3958ea[_0x46ea29(0x34e)][_0x46ea29(0x49a)]&&this[_0x46ea29(0x233)][_0x46ea29(0x344)]({'type':_0x4e15c3[_0x46ea29(0x256)][_0x46ea29(0x476)],'content':this[_0x46ea29(0x2a5)]['t']('collaboration.closeRoom')+'('+_0x4c11de[_0x46ea29(0x38e)]+')'}),_0x4c11de['id']===_0x3958ea[_0x46ea29(0x34e)][_0x46ea29(0x335)]&&this[_0x46ea29(0x233)][_0x46ea29(0x344)]({'type':_0x4e15c3['MessageType']['Warning'],'content':this[_0x46ea29(0x2a5)]['t'](_0x4c11de[_0x46ea29(0x38e)]||'')}),_0x4c11de['id']===_0x3958ea[_0x46ea29(0x34e)][_0x46ea29(0x432)]&&this[_0x46ea29(0x233)][_0x46ea29(0x344)]({'type':_0x4e15c3[_0x46ea29(0x256)]['Warning'],'content':this[_0x46ea29(0x2a5)]['t']('session.will-retry')}),_0x4c11de['id']===_0x3958ea[_0x46ea29(0x34e)][_0x46ea29(0x478)]&&this['_messageService'][_0x46ea29(0x344)]({'type':_0x4e15c3['MessageType'][_0x46ea29(0x476)],'content':this['_localeService']['t']('session.connection-failed')}),_0x4c11de['id']===_0x3958ea[_0x46ea29(0x34e)][_0x46ea29(0x417)]&&this['_messageService']['show']({'type':_0x4e15c3[_0x46ea29(0x256)][_0x46ea29(0x476)],'content':this[_0x46ea29(0x2a5)]['t'](_0x46ea29(0x245))});}));}};_0x3ef4e4=_0x31e8cf([_0x2c4925(0x0,_0x8e6f8f[_0x295e11(0x3a2)]),_0x2c4925(0x1,_0x3958ea[_0x295e11(0x22f)]),_0x2c4925(0x2,_0x40624a[_0x295e11(0x33d)](_0x3958ea['CollaborationUIEventService'])),_0x2c4925(0x3,_0x8e6f8f[_0x295e11(0x3dd)]),_0x2c4925(0x4,_0x8e6f8f[_0x295e11(0x33e)]),_0x2c4925(0x5,_0x40624a[_0x295e11(0x33d)](_0x40624a[_0x295e11(0x336)]))],_0x3ef4e4);var _0x2791ef=Object['getOwnPropertyDescriptor'],_0x9fed27=(_0x407397,_0x5eda0d,_0x3f868e,_0x27465a)=>{for(var _0x5abdd1=_0x27465a>0x1?void 0x0:_0x27465a?_0x2791ef(_0x5eda0d,_0x3f868e):_0x5eda0d,_0x44d037=_0x407397['length']-0x1,_0x387584;_0x44d037>=0x0;_0x44d037--)(_0x387584=_0x407397[_0x44d037])&&(_0x5abdd1=_0x387584(_0x5abdd1)||_0x5abdd1);return _0x5abdd1;},_0x282872=(_0x220ff5,_0x8186e2)=>(_0x42d608,_0x425b71)=>_0x8186e2(_0x42d608,_0x425b71,_0x220ff5);let _0x308889=class extends _0x40624a[_0x295e11(0x430)]{constructor(_0x4de178,_0xb79518,_0x33a17b,_0x44e31e){const _0x474d16=_0x295e11;super(),_0x9020b(this,_0x474d16(0x393)),(this[_0x474d16(0x351)]=_0x4de178,this[_0x474d16(0x395)]=_0xb79518,this[_0x474d16(0x458)]=_0x33a17b,this['_collaborationSessionService']=_0x44e31e,this[_0x474d16(0x4a0)]());}[_0x295e11(0x4a0)](){const _0x8453ab=_0x295e11;this[_0x8453ab(0x4b4)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x8453ab(0x1f3)]();}[_0x295e11(0x1f3)](){const _0x29e4f1=_0x295e11;this[_0x29e4f1(0x2bc)](this[_0x29e4f1(0x464)][_0x29e4f1(0x45b)]['subscribe'](_0x2cf014=>{const _0x7ba852=_0x29e4f1;this['_memberID']=_0x2cf014==null?void 0x0:_0x2cf014[_0x7ba852(0x2e2)];}));}[_0x295e11(0x4b4)](){const _0x40aafe=_0x295e11,_0xd8b0d9=_0x12204f=>{const _0x3d1f4d=_0xd951;var _0x2ee5f9;this[_0x3d1f4d(0x276)](_0x3d1f4d(0x3b0),_0x3d1f4d(0x3e8)+_0x12204f[_0x3d1f4d(0x323)]+_0x3d1f4d(0x3e3)+_0x12204f['filename']+':'+_0x12204f['lineno']+':'+_0x12204f['colno']+'\x0a'+(((_0x2ee5f9=_0x12204f[_0x3d1f4d(0x3b0)])==null?void 0x0:_0x2ee5f9['stack'])||''));};window[_0x40aafe(0x259)](_0x40aafe(0x3b0),_0xd8b0d9),this[_0x40aafe(0x2bc)](()=>{const _0x13c24b=_0x40aafe;window[_0x13c24b(0x268)](_0x13c24b(0x3b0),_0xd8b0d9);});}['_initUnhandledRejectionListener'](){const _0x198791=_0x295e11,_0x1ce688=_0x2461ac=>{const _0x599c23=_0xd951;this['_uploadLog'](_0x599c23(0x3b0),_0x599c23(0x453)+_0x2461ac[_0x599c23(0x402)]);};window[_0x198791(0x259)]('unhandledrejection',_0x1ce688),this['disposeWithMe'](()=>{const _0x3e249f=_0x198791;window[_0x3e249f(0x268)](_0x3e249f(0x47f),_0x1ce688);});}[_0x295e11(0x2da)](){const _0x1a19ac=_0x295e11,_0x125679=this[_0x1a19ac(0x458)][_0x1a19ac(0x3b0)][_0x1a19ac(0x2bf)](this[_0x1a19ac(0x458)]);this[_0x1a19ac(0x458)][_0x1a19ac(0x3b0)]=(..._0x452fc5)=>{const _0x285d1e=_0x1a19ac,_0x37c87f=_0x452fc5[_0x285d1e(0x361)](_0x5a4984=>_0x5a4984 instanceof Error?_0x5a4984['message']+'\x0a'+_0x5a4984[_0x285d1e(0x210)]:String(_0x5a4984))[_0x285d1e(0x236)]('\x20');this[_0x285d1e(0x276)](_0x285d1e(0x3b0),_0x285d1e(0x253)+_0x37c87f),_0x125679(..._0x452fc5);},this[_0x1a19ac(0x2bc)](()=>{const _0x2fd058=_0x1a19ac;this['_logService'][_0x2fd058(0x3b0)]=_0x125679;});}[_0x295e11(0x276)](_0x247c54,_0x199cda){const _0x545c73=_0x295e11;try{const _0x57b6db={'userId':this[_0x545c73(0x393)],'logLabel':_0x247c54,'content':_0x199cda};this[_0x545c73(0x395)][_0x545c73(0x44a)](_0x545c73(0x3a8),{'body':_0x57b6db})[_0x545c73(0x459)](()=>{});}catch{}}};_0x308889=_0x9fed27([_0x282872(0x0,_0x40624a[_0x295e11(0x33d)](_0x40624a[_0x295e11(0x474)])),_0x282872(0x1,_0x40624a[_0x295e11(0x33d)](_0x42d795[_0x295e11(0x2b0)])),_0x282872(0x2,_0x40624a[_0x295e11(0x463)]),_0x282872(0x3,_0x40624a[_0x295e11(0x33d)](_0x3958ea[_0x295e11(0x25b)]))],_0x308889);const _0x146d19=_0x295e11(0x471),_0x1498da={};var _0x25e539=Object[_0x295e11(0x3a0)],_0x475cf6=(_0x5e3968,_0x1ace57,_0x2e7346,_0x2a1a9d)=>{const _0x3b36b5=_0x295e11;for(var _0x455dd1=_0x2a1a9d>0x1?void 0x0:_0x2a1a9d?_0x25e539(_0x1ace57,_0x2e7346):_0x1ace57,_0x59fb3e=_0x5e3968[_0x3b36b5(0x1c4)]-0x1,_0x53e22f;_0x59fb3e>=0x0;_0x59fb3e--)(_0x53e22f=_0x5e3968[_0x59fb3e])&&(_0x455dd1=_0x53e22f(_0x455dd1)||_0x455dd1);return _0x455dd1;},_0xb424f6=(_0x1d2751,_0x4007bf)=>(_0x226338,_0x2714b2)=>_0x4007bf(_0x226338,_0x2714b2,_0x1d2751);let _0x516df5=class{constructor(_0x498256,_0x66e69f){const _0x559a62=_0x295e11;this[_0x559a62(0x1c3)]=_0x498256,this['_renderManagerService']=_0x66e69f;}[_0x295e11(0x1f9)](_0x1adbe4){const _0x8f6da7=_0x295e11;this['_transformUndoRedoStack'](_0x1adbe4),this[_0x8f6da7(0x446)](_0x1adbe4);}[_0x295e11(0x419)](_0x38542a){const _0x56747f=_0x295e11,{unitID:_0xbadb73}=_0x38542a,_0x52604b=this[_0x56747f(0x1ed)][_0x56747f(0x3fe)](_0xbadb73)['with'](_0x118be2[_0x56747f(0x27f)]),{redoCache:_0x3d9c76}=_0x52604b['getUndoRedoMutationParamsCache']();if(_0x3d9c76[_0x56747f(0x1c4)]===0x0)return _0x38542a;let _0x1a316c=_0x40624a[_0x56747f(0x466)][_0x56747f(0x3da)](_0x38542a[_0x56747f(0x2c8)][0x0]);for(let _0x389109=0x0;_0x389109<_0x3d9c76[_0x56747f(0x1c4)];_0x389109++){const _0x21b49d={'id':'doc.mutation.rich-text-editing','params':{..._0x3d9c76[_0x389109]}},_0x20b20e=this[_0x56747f(0x1c3)][_0x56747f(0x27a)](_0x1a316c,_0x21b49d,!0x1);if(_0x2c324c[_0x56747f(0x350)](_0x20b20e))throw _0x20b20e[_0x56747f(0x3b0)];_0x1a316c=_0x20b20e[_0x56747f(0x494)];}return{..._0x40624a[_0x56747f(0x466)][_0x56747f(0x3da)](_0x38542a),'mutations':[_0x1a316c]};}[_0x295e11(0x3f7)](_0x47955d){const _0x4a0590=_0x295e11,{unitID:_0x737230}=_0x47955d,_0x15eac6=this[_0x4a0590(0x1ed)]['getRenderById'](_0x737230)[_0x4a0590(0x444)](_0x118be2[_0x4a0590(0x27f)]),{undoCache:_0x3727a9,redoCache:_0x4ad55b}=_0x15eac6[_0x4a0590(0x32c)]();if(_0x3727a9[_0x4a0590(0x1c4)]===0x0||_0x4ad55b[_0x4a0590(0x1c4)]===0x0)return;const _0x1e5b66=[],_0x1942cd=[];let _0x241064=_0x40624a[_0x4a0590(0x466)][_0x4a0590(0x3da)](_0x47955d[_0x4a0590(0x2c8)][0x0]),_0x52fb1b=_0x40624a[_0x4a0590(0x466)]['deepClone'](_0x47955d[_0x4a0590(0x2c8)][0x0]);for(let _0x43a8ef=_0x3727a9[_0x4a0590(0x1c4)]-0x1;_0x43a8ef>=0x0;_0x43a8ef--){const _0x57471b={'id':_0x4a0590(0x489),'params':{..._0x3727a9[_0x43a8ef]}},_0x2be435={'id':_0x4a0590(0x489),'params':{..._0x4ad55b[_0x43a8ef]}},_0x15c0c9=this['_transformService']['transformMutation'](_0x241064,_0x57471b,!0x1),_0x5ab943=this[_0x4a0590(0x1c3)]['transformMutation'](_0x52fb1b,_0x2be435,!0x1);if(_0x2c324c['isTransformMutationFailure'](_0x15c0c9))throw _0x15c0c9[_0x4a0590(0x3b0)];if(_0x2c324c[_0x4a0590(0x350)](_0x5ab943))throw _0x5ab943[_0x4a0590(0x3b0)];_0x1e5b66[_0x4a0590(0x1d0)](_0x15c0c9[_0x4a0590(0x3d2)]['params']),_0x1942cd[_0x4a0590(0x1d0)](_0x5ab943[_0x4a0590(0x3d2)][_0x4a0590(0x1d6)]),_0x241064=_0x15c0c9[_0x4a0590(0x494)],_0x52fb1b=_0x5ab943[_0x4a0590(0x494)];}_0x15eac6[_0x4a0590(0x3d7)]({'undoCache':_0x1e5b66,'redoCache':_0x1942cd});}[_0x295e11(0x446)](_0x4c1826){const _0x1a89b6=_0x295e11,{unitID:_0x2533aa}=_0x4c1826,_0x175ba1=this[_0x1a89b6(0x1ed)][_0x1a89b6(0x3fe)](_0x2533aa)[_0x1a89b6(0x444)](_0x118be2[_0x1a89b6(0x27f)]),_0x309938=_0x175ba1[_0x1a89b6(0x205)]();if(_0x309938==null)return;const _0x2d81b5=[{'id':_0x1a89b6(0x489),'params':{'unitId':_0x4c1826[_0x1a89b6(0x298)],'actions':null,'textRanges':[_0x309938]}}],_0x135543=this[_0x1a89b6(0x1c3)][_0x1a89b6(0x3fb)](_0x4c1826,_0x2d81b5);if(!_0x2c324c['isTransformMutationsWithChangesetSuccess'](_0x135543))throw _0x135543['error'];const _0x2d096d=_0x135543[_0x1a89b6(0x3d2)][0x0][_0x1a89b6(0x1d6)][_0x1a89b6(0x1f4)];Array[_0x1a89b6(0x44f)](_0x2d096d)&&_0x2d096d[_0x1a89b6(0x1c4)]&&_0x175ba1[_0x1a89b6(0x348)](_0x2d096d[0x0]);}};_0x516df5=_0x475cf6([_0xb424f6(0x0,_0x2c324c[_0x295e11(0x487)]),_0xb424f6(0x1,_0x2680b3['IRenderManagerService'])],_0x516df5);var _0x228c9f=Object[_0x295e11(0x3a0)],_0x1714d3=(_0x8fcc38,_0x13f243,_0x43a4ca,_0x1dc333)=>{const _0x5f4ca8=_0x295e11;for(var _0x19dfad=_0x1dc333>0x1?void 0x0:_0x1dc333?_0x228c9f(_0x13f243,_0x43a4ca):_0x13f243,_0x247b40=_0x8fcc38[_0x5f4ca8(0x1c4)]-0x1,_0x217173;_0x247b40>=0x0;_0x247b40--)(_0x217173=_0x8fcc38[_0x247b40])&&(_0x19dfad=_0x217173(_0x19dfad)||_0x19dfad);return _0x19dfad;},_0x558441=(_0xfd4f4,_0x15dae2)=>(_0x3a885b,_0x21c62f)=>_0x15dae2(_0x3a885b,_0x21c62f,_0xfd4f4);let _0x2c640a=class{constructor(_0x3366a7,_0x4ca0da,_0x5717eb){const _0x107f65=_0x295e11;this['_injector']=_0x3366a7,this[_0x107f65(0x1c3)]=_0x4ca0da,this[_0x107f65(0x2fc)]=_0x5717eb;}[_0x295e11(0x422)](_0x479a34){this['_transformHistoryAndStateStack'](_0x479a34);}[_0x295e11(0x419)](_0x58abe5){const _0x1381e9=_0x295e11,{unitID:_0x4ab10b}=_0x58abe5,{collaboration:_0x5ee347}=this[_0x1381e9(0x2fc)]['getStateCache'](_0x4ab10b);if(_0x5ee347[_0x1381e9(0x1c4)]===0x0)return _0x58abe5;let _0x738f18=_0x40624a[_0x1381e9(0x466)][_0x1381e9(0x3da)](_0x58abe5['mutations'][0x0]);for(let _0x473fb2=0x0;_0x473fb2<_0x5ee347[_0x1381e9(0x1c4)];_0x473fb2++){const _0xbe55d9={'id':_0x1381e9(0x489),'params':{'unitId':_0x5ee347[_0x473fb2]['unitId'],..._0x5ee347[_0x473fb2][_0x1381e9(0x1ef)]}},_0x1440b1=this[_0x1381e9(0x1c3)][_0x1381e9(0x27a)](_0x738f18,_0xbe55d9,!0x1);if(_0x2c324c[_0x1381e9(0x350)](_0x1440b1))throw _0x1440b1[_0x1381e9(0x3b0)];_0x738f18=_0x1440b1[_0x1381e9(0x494)];}return{..._0x40624a[_0x1381e9(0x466)]['deepClone'](_0x58abe5),'mutations':[_0x738f18]};}[_0x295e11(0x30b)](_0x3c2ae0){const _0x4011c1=_0x295e11,{unitID:_0x18d294}=_0x3c2ae0,{history:_0x1de47f,collaboration:_0x508721}=this[_0x4011c1(0x2fc)][_0x4011c1(0x2c3)](_0x18d294);if(_0x1de47f['length']===0x0&&_0x508721[_0x4011c1(0x1c4)]===0x0)return;const _0x388a17=[],_0x46a1e1=[];let _0x31ccae=_0x40624a['Tools'][_0x4011c1(0x3da)](_0x3c2ae0[_0x4011c1(0x2c8)][0x0]),_0x1d162d=_0x40624a['Tools'][_0x4011c1(0x3da)](_0x3c2ae0[_0x4011c1(0x2c8)][0x0]);for(let _0x5b86d4=_0x1de47f['length']-0x1;_0x5b86d4>=0x0;_0x5b86d4--){const _0x23e857={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1de47f[_0x5b86d4][_0x4011c1(0x495)],..._0x1de47f[_0x5b86d4][_0x4011c1(0x414)]}},_0x1fb002={'id':_0x4011c1(0x489),'params':{'unitId':_0x1de47f[_0x5b86d4]['unitId'],..._0x1de47f[_0x5b86d4][_0x4011c1(0x1ef)]}},_0x1a3ef3=this[_0x4011c1(0x1c3)][_0x4011c1(0x27a)](_0x31ccae,_0x23e857,!0x1),_0x3cf942=this[_0x4011c1(0x1c3)][_0x4011c1(0x27a)](_0x1d162d,_0x1fb002,!0x1);if(_0x2c324c[_0x4011c1(0x350)](_0x1a3ef3))throw _0x1a3ef3[_0x4011c1(0x3b0)];if(_0x2c324c['isTransformMutationFailure'](_0x3cf942))throw _0x3cf942[_0x4011c1(0x3b0)];_0x388a17[_0x4011c1(0x1d0)]({..._0x1de47f[_0x5b86d4],'undoState':_0x1a3ef3[_0x4011c1(0x3d2)][_0x4011c1(0x1d6)],'redoState':_0x3cf942[_0x4011c1(0x3d2)][_0x4011c1(0x1d6)]}),_0x31ccae=_0x1a3ef3[_0x4011c1(0x494)],_0x1d162d=_0x3cf942[_0x4011c1(0x494)];}_0x31ccae=_0x40624a[_0x4011c1(0x466)][_0x4011c1(0x3da)](_0x3c2ae0[_0x4011c1(0x2c8)][0x0]),_0x1d162d=_0x40624a['Tools'][_0x4011c1(0x3da)](_0x3c2ae0[_0x4011c1(0x2c8)][0x0]);for(let _0xdd9db5=_0x508721['length']-0x1;_0xdd9db5>=0x0;_0xdd9db5--){const _0x152d96={'id':_0x4011c1(0x489),'params':{'unitId':_0x508721[_0xdd9db5][_0x4011c1(0x495)],..._0x508721[_0xdd9db5]['undoState']}},_0x26e121={'id':_0x4011c1(0x489),'params':{'unitId':_0x508721[_0xdd9db5][_0x4011c1(0x495)],..._0x508721[_0xdd9db5][_0x4011c1(0x1ef)]}},_0x27e4ee=this[_0x4011c1(0x1c3)]['transformMutation'](_0x31ccae,_0x152d96,!0x1),_0x51dc8f=this[_0x4011c1(0x1c3)][_0x4011c1(0x27a)](_0x1d162d,_0x26e121,!0x1);if(_0x2c324c[_0x4011c1(0x350)](_0x27e4ee))throw _0x27e4ee[_0x4011c1(0x3b0)];if(_0x2c324c[_0x4011c1(0x350)](_0x51dc8f))throw _0x51dc8f['error'];_0x46a1e1[_0x4011c1(0x1d0)]({..._0x508721[_0xdd9db5],'undoState':_0x27e4ee[_0x4011c1(0x3d2)]['params'],'redoState':_0x51dc8f[_0x4011c1(0x3d2)][_0x4011c1(0x1d6)]}),_0x31ccae=_0x27e4ee[_0x4011c1(0x494)],_0x1d162d=_0x51dc8f['m1Prime'];}this[_0x4011c1(0x2fc)][_0x4011c1(0x225)](_0x18d294,{'history':_0x388a17,'collaboration':_0x46a1e1});}};_0x2c640a=_0x1714d3([_0x558441(0x0,_0x40624a[_0x295e11(0x33d)](_0x40624a[_0x295e11(0x474)])),_0x558441(0x1,_0x2c324c[_0x295e11(0x487)]),_0x558441(0x2,_0x40624a[_0x295e11(0x33d)](_0x118be2[_0x295e11(0x292)]))],_0x2c640a);var _0xe51764=Object['getOwnPropertyDescriptor'],_0x2bc37e=(_0x2ddb06,_0x206184,_0x2fc267,_0x4fa6c8)=>{const _0x596df3=_0x295e11;for(var _0x2d54cb=_0x4fa6c8>0x1?void 0x0:_0x4fa6c8?_0xe51764(_0x206184,_0x2fc267):_0x206184,_0x1b0cb3=_0x2ddb06[_0x596df3(0x1c4)]-0x1,_0x43f500;_0x1b0cb3>=0x0;_0x1b0cb3--)(_0x43f500=_0x2ddb06[_0x1b0cb3])&&(_0x2d54cb=_0x43f500(_0x2d54cb)||_0x2d54cb);return _0x2d54cb;},_0x1448a9=(_0xc7e7e0,_0x1bcdac)=>(_0x36dd66,_0x500562)=>_0x1bcdac(_0x36dd66,_0x500562,_0xc7e7e0);let _0x1165fa=class{constructor(_0x2dbfae,_0x141d78){const _0x340588=_0x295e11;this['_injector']=_0x2dbfae,this[_0x340588(0x1c3)]=_0x141d78;}[_0x295e11(0x3cb)](_0xad5b72){const _0x38493d=_0x295e11;var _0x17d107;const _0x4ecc4d=this[_0x38493d(0x351)][_0x38493d(0x1de)](_0x3f3b23[_0x38493d(0x34f)]),_0x21811f=(_0x17d107=_0x4ecc4d[_0x38493d(0x3c9)]())!=null?_0x17d107:[];if(_0x21811f[_0x38493d(0x1c4)]===0x0)return;const _0xf31187=_0xad5b72[_0x38493d(0x298)],_0x1a1b71=[{'id':_0x38493d(0x489),'params':{'unitId':_0xf31187,'actions':null,'textRanges':_0x21811f}}],_0x225db4=this[_0x38493d(0x1c3)][_0x38493d(0x3fb)](_0xad5b72,_0x1a1b71);if(!_0x2c324c[_0x38493d(0x38b)](_0x225db4))throw _0x225db4[_0x38493d(0x3b0)];const _0x53b2e9=_0x225db4[_0x38493d(0x3d2)][0x0][_0x38493d(0x1d6)][_0x38493d(0x1f4)];Array[_0x38493d(0x44f)](_0x53b2e9)&&_0x53b2e9[_0x38493d(0x1c4)]&&_0x4ecc4d[_0x38493d(0x2dc)](_0x53b2e9,{'unitId':_0xf31187,'subUnitId':_0xf31187},!0x1);}};_0x1165fa=_0x2bc37e([_0x1448a9(0x0,_0x40624a['Inject'](_0x40624a[_0x295e11(0x474)])),_0x1448a9(0x1,_0x2c324c[_0x295e11(0x487)])],_0x1165fa);var _0x368a97=Object[_0x295e11(0x3a0)],_0x488d23=(_0x389eab,_0x3b6076,_0x19ce94,_0x5a2e4f)=>{const _0xe45ea=_0x295e11;for(var _0x55d49a=_0x5a2e4f>0x1?void 0x0:_0x5a2e4f?_0x368a97(_0x3b6076,_0x19ce94):_0x3b6076,_0x1852ae=_0x389eab[_0xe45ea(0x1c4)]-0x1,_0x5ec3de;_0x1852ae>=0x0;_0x1852ae--)(_0x5ec3de=_0x389eab[_0x1852ae])&&(_0x55d49a=_0x5ec3de(_0x55d49a)||_0x55d49a);return _0x55d49a;},_0x178c3d=(_0x506b87,_0xd415ac)=>(_0x1f6c46,_0x5b9abc)=>_0xd415ac(_0x1f6c46,_0x5b9abc,_0x506b87);let _0x22b2b8=class extends _0x40624a[_0x295e11(0x430)]{constructor(_0x76a33e,_0x49edf4,_0xaeffd1,_0x15ef02,_0x42766f,_0x4dcb6e,_0x45ab22,_0xafb9eb){const _0x210030=_0x295e11;super(),_0x9020b(this,_0x210030(0x3bf),new _0x5b38f4[(_0x210030(0x21d))](_0x3958ea[_0x210030(0x3a7)][_0x210030(0x20f)])),(this[_0x210030(0x2fc)]=_0x76a33e,this['_collaborationController']=_0x49edf4,this['_docTransformIMECacheService']=_0xaeffd1,this['_docTransformStateCacheService']=_0x15ef02,this[_0x210030(0x37c)]=_0x42766f,this[_0x210030(0x3c7)]=_0x4dcb6e,this[_0x210030(0x233)]=_0x45ab22,this[_0x210030(0x2a5)]=_0xafb9eb,this[_0x210030(0x48f)]());}[_0x295e11(0x48f)](){const _0x89f344=_0x295e11;this['disposeWithMe'](this[_0x89f344(0x2c6)][_0x89f344(0x35f)]['subscribe'](_0xa3270f=>{const _0x1521ae=_0x89f344,_0x2e4bdf=this[_0x1521ae(0x2fc)][_0x1521ae(0x3ad)]['subscribe'](_0x3d23f8=>{const _0x2e7699=_0x1521ae;if(_0x3d23f8==null)return;const {unitId:_0x879a5c,redoState:_0x1c67dd,commandId:_0x5d1873}=_0x3d23f8;if(_0x879a5c!==_0xa3270f[_0x2e7699(0x298)])return;const _0x56e44f={'id':_0x5d1873,'type':_0x40624a[_0x2e7699(0x2e9)]['MUTATION'],'params':{'unitId':_0x879a5c,'actions':_0x1c67dd[_0x2e7699(0x43d)],'textRanges':null}};_0xa3270f['onLocalMutation'](_0x56e44f);});if(_0xa3270f[_0x1521ae(0x2bc)](_0x2e4bdf),_0xa3270f instanceof _0x3958ea[_0x1521ae(0x239)]){const _0x1b6ba9={'onTransformIME':_0x4d1e27=>this[_0x1521ae(0x34b)]['transformIMECache'](_0x4d1e27),'onTransformState':_0x3029b5=>this['_docTransformStateCacheService'][_0x1521ae(0x422)](_0x3029b5),'onTransformSelections':_0x2950ee=>this[_0x1521ae(0x37c)][_0x1521ae(0x3cb)](_0x2950ee),'onSyncEditingCollabCursor':_0xf108b8=>this['_docSyncEditingCollabCursorService'][_0x1521ae(0x3fc)](_0xf108b8),'onTransformRemoteChangesetByIMECache':_0x25c36d=>this[_0x1521ae(0x34b)][_0x1521ae(0x419)](_0x25c36d),'onTransformRemoteChangesetByStateCache':_0x335dcb=>this[_0x1521ae(0x2e8)][_0x1521ae(0x419)](_0x335dcb)};_0xa3270f[_0x1521ae(0x22a)](_0x1b6ba9);}}));}};_0x22b2b8=_0x488d23([_0x178c3d(0x0,_0x40624a[_0x295e11(0x33d)](_0x118be2[_0x295e11(0x292)])),_0x178c3d(0x1,_0x40624a[_0x295e11(0x33d)](_0x3958ea[_0x295e11(0x269)])),_0x178c3d(0x2,_0x40624a[_0x295e11(0x33d)](_0x516df5)),_0x178c3d(0x3,_0x40624a[_0x295e11(0x33d)](_0x2c640a)),_0x178c3d(0x4,_0x40624a['Inject'](_0x1165fa)),_0x178c3d(0x5,_0x40624a['Inject'](_0x2a125f)),_0x178c3d(0x6,_0x8e6f8f[_0x295e11(0x3dd)]),_0x178c3d(0x7,_0x40624a[_0x295e11(0x33d)](_0x40624a['LocaleService']))],_0x22b2b8);var _0x319d71=(_0x4df9c9=>(_0x4df9c9[_0x4df9c9[_0x295e11(0x1ec)]=0x0]=_0x295e11(0x1ec),_0x4df9c9[_0x4df9c9['OK']=0x1]='OK',_0x4df9c9[_0x4df9c9[_0x295e11(0x4a9)]=0x2]=_0x295e11(0x4a9),_0x4df9c9[_0x4df9c9[_0x295e11(0x33c)]=0x3]=_0x295e11(0x33c),_0x4df9c9[_0x4df9c9[_0x295e11(0x29a)]=0x4]='NOT_FOUND',_0x4df9c9[_0x4df9c9[_0x295e11(0x3ea)]=0x5]='UNAUTHENTICATED',_0x4df9c9[_0x4df9c9[_0x295e11(0x392)]=0x6]=_0x295e11(0x392),_0x4df9c9[_0x4df9c9[_0x295e11(0x214)]=0x7]=_0x295e11(0x214),_0x4df9c9[_0x4df9c9['TOO_MANY_REQUESTS']=0x8]=_0x295e11(0x3b1),_0x4df9c9[_0x4df9c9[_0x295e11(0x2ad)]=0x9]=_0x295e11(0x2ad),_0x4df9c9[_0x4df9c9['LOGIN_FAILED']=0xa]=_0x295e11(0x327),_0x4df9c9[_0x4df9c9[_0x295e11(0x48c)]=0xb]=_0x295e11(0x48c),_0x4df9c9[_0x4df9c9[_0x295e11(0x488)]=0xc]=_0x295e11(0x488),_0x4df9c9[_0x4df9c9[_0x295e11(0x380)]=0xd]=_0x295e11(0x380),_0x4df9c9[_0x4df9c9[_0x295e11(0x346)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4df9c9[_0x4df9c9['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x4df9c9[_0x4df9c9[_0x295e11(0x44b)]=0x10]=_0x295e11(0x44b),_0x4df9c9[_0x4df9c9['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x295e11(0x39d),_0x4df9c9[_0x4df9c9[_0x295e11(0x2c7)]=0x65]=_0x295e11(0x2c7),_0x4df9c9[_0x4df9c9['USER_NOT_FOUND']=0xc9]=_0x295e11(0x333),_0x4df9c9[_0x4df9c9['USER_IS_ANONYMOUS']=0xca]=_0x295e11(0x29b),_0x4df9c9[_0x4df9c9[_0x295e11(0x2a7)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x4df9c9[_0x4df9c9['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x295e11(0x211),_0x4df9c9[_0x4df9c9[_0x295e11(0x428)]=0x1772]=_0x295e11(0x428),_0x4df9c9[_0x4df9c9[_0x295e11(0x24b)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x4df9c9[_0x4df9c9['APPLY_REJECT']=0x1b59]=_0x295e11(0x244),_0x4df9c9[_0x4df9c9[_0x295e11(0x282)]=0x1b5a]=_0x295e11(0x282),_0x4df9c9[_0x4df9c9['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x295e11(0x3e0),_0x4df9c9[_0x4df9c9[_0x295e11(0x3a5)]=0x1b5c]=_0x295e11(0x3a5),_0x4df9c9[_0x4df9c9['APPLY_DUPLICATED']=0x1b5d]=_0x295e11(0x1d1),_0x4df9c9[_0x4df9c9['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x295e11(0x289),_0x4df9c9[_0x4df9c9['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x295e11(0x413),_0x4df9c9[_0x4df9c9[_0x295e11(0x420)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4df9c9[_0x4df9c9[_0x295e11(0x27c)]=0x232b]=_0x295e11(0x27c),_0x4df9c9[_0x4df9c9[_0x295e11(0x338)]=0x232c]=_0x295e11(0x338),_0x4df9c9[_0x4df9c9['LICENSE_DISTRO_REJECTED']=0x232d]=_0x295e11(0x47b),_0x4df9c9[_0x4df9c9[_0x295e11(0x41f)]=0x2711]=_0x295e11(0x41f),_0x4df9c9[_0x4df9c9[_0x295e11(0x306)]=0x2712]=_0x295e11(0x306),_0x4df9c9[_0x4df9c9[_0x295e11(0x389)]=0x2713]=_0x295e11(0x389),_0x4df9c9[_0x4df9c9[_0x295e11(0x308)]=0x2714]=_0x295e11(0x308),_0x4df9c9[_0x4df9c9[_0x295e11(0x3f4)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x4df9c9[_0x4df9c9[_0x295e11(0x1f7)]=0x271b]=_0x295e11(0x1f7),_0x4df9c9[_0x4df9c9[_0x295e11(0x243)]=0x271c]=_0x295e11(0x243),_0x4df9c9[_0x4df9c9[_0x295e11(0x1dc)]=0x271d]=_0x295e11(0x1dc),_0x4df9c9[_0x4df9c9[_0x295e11(0x3cf)]=0x271e]=_0x295e11(0x3cf),_0x4df9c9[_0x4df9c9[_0x295e11(0x2f8)]=0x271f]=_0x295e11(0x2f8),_0x4df9c9[_0x4df9c9[_0x295e11(0x325)]=0x2720]=_0x295e11(0x325),_0x4df9c9[_0x4df9c9[_0x295e11(0x418)]=0x2af9]=_0x295e11(0x418),_0x4df9c9[_0x4df9c9[_0x295e11(0x479)]=0x2ee1]=_0x295e11(0x479),_0x4df9c9[_0x4df9c9[_0x295e11(0x2ea)]=0x2ee2]='INVALID_INVITE_CODE',_0x4df9c9[_0x4df9c9['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x4df9c9[_0x4df9c9[_0x295e11(0x228)]=0x2ee4]=_0x295e11(0x228),_0x4df9c9[_0x4df9c9['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4df9c9[_0x4df9c9['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x295e11(0x45c),_0x4df9c9[_0x4df9c9[_0x295e11(0x264)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4df9c9[_0x4df9c9[_0x295e11(0x32b)]=0x32cb]=_0x295e11(0x32b),_0x4df9c9[_0x4df9c9[_0x295e11(0x4b3)]=0x36b1]=_0x295e11(0x4b3),_0x4df9c9[_0x4df9c9[_0x295e11(0x307)]=0x36b2]=_0x295e11(0x307),_0x4df9c9[_0x4df9c9[_0x295e11(0x3f2)]=0x36b3]=_0x295e11(0x3f2),_0x4df9c9[_0x4df9c9[_0x295e11(0x2f7)]=0x36b4]=_0x295e11(0x2f7),_0x4df9c9[_0x4df9c9[_0x295e11(0x26c)]=0x36b5]=_0x295e11(0x26c),_0x4df9c9[_0x4df9c9['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0x295e11(0x447),_0x4df9c9[_0x4df9c9[_0x295e11(0x3b6)]=0x36b7]=_0x295e11(0x3b6),_0x4df9c9[_0x4df9c9['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x295e11(0x31f),_0x4df9c9[_0x4df9c9[_0x295e11(0x33f)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x4df9c9[_0x4df9c9['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x295e11(0x4b2),_0x4df9c9[_0x4df9c9[_0x295e11(0x258)]=0x3717]=_0x295e11(0x258),_0x4df9c9[_0x4df9c9[_0x295e11(0x467)]=0x37dd]=_0x295e11(0x467),_0x4df9c9[_0x4df9c9[_0x295e11(0x238)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x4df9c9[_0x4df9c9[_0x295e11(0x294)]=0x3a9a]=_0x295e11(0x294),_0x4df9c9[_0x4df9c9[_0x295e11(0x493)]=0x3a9b]=_0x295e11(0x493),_0x4df9c9[_0x4df9c9[_0x295e11(0x442)]=0x3a9c]=_0x295e11(0x442),_0x4df9c9[_0x4df9c9[_0x295e11(0x44d)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x4df9c9[_0x4df9c9[_0x295e11(0x23e)]=0x3a9e]=_0x295e11(0x23e),_0x4df9c9[_0x4df9c9[_0x295e11(0x330)]=0x3a9f]=_0x295e11(0x330),_0x4df9c9[_0x4df9c9[_0x295e11(0x2e6)]=0x3e81]=_0x295e11(0x2e6),_0x4df9c9[_0x4df9c9[_0x295e11(0x255)]=-0x1]=_0x295e11(0x255),_0x4df9c9))(_0x319d71||{});function _0x143dd4(_0x1b9485){const _0x3d0277=_0x295e11;var _0x2be7e6,_0x1d6e22;const _0x4a10a4=(_0x2be7e6=_0x1b9485[_0x3d0277(0x43a)])==null?void 0x0:_0x2be7e6[_0x3d0277(0x354)],_0xe72418=((_0x1d6e22=_0x1b9485['stageInfo'])==null?void 0x0:_0x1d6e22[_0x3d0277(0x2fe)])||0x0;return _0x4a10a4===_0x100a4f[_0x3d0277(0x262)]['START_CALCULATION']&&_0xe72418>0x0;}function _0x361644(_0x44083a){const _0x34793c=_0x295e11;return _0x44083a[_0x34793c(0x254)]===_0x100a4f[_0x34793c(0x21e)]['SUCCESS'];}var _0x161bf3=Object[_0x295e11(0x3a0)],_0x5d9f83=(_0x269f0d,_0x57c0a6,_0x1c7f2f,_0x57a56a)=>{for(var _0x553e4f=_0x57a56a>0x1?void 0x0:_0x57a56a?_0x161bf3(_0x57c0a6,_0x1c7f2f):_0x57c0a6,_0x23464b=_0x269f0d['length']-0x1,_0x1a0113;_0x23464b>=0x0;_0x23464b--)(_0x1a0113=_0x269f0d[_0x23464b])&&(_0x553e4f=_0x1a0113(_0x553e4f)||_0x553e4f);return _0x553e4f;},_0x16e967=(_0x10ba53,_0x59b4cf)=>(_0x5d5295,_0x2ea79d)=>_0x59b4cf(_0x5d5295,_0x2ea79d,_0x10ba53);const _0x55cf85=_0x295e11(0x302),_0x918f2b=_0x295e11(0x30e),_0x272d31=_0x295e11(0x42b);let _0x2f3884=class extends _0x40624a['Disposable']{constructor(_0x225761,_0x5d0559,_0x2b9c81,_0x204d62,_0x2f9443,_0x468d02,_0xf5bd9){const _0x4a297c=_0x295e11;super(),_0x9020b(this,_0x4a297c(0x3bd),null),_0x9020b(this,_0x4a297c(0x492),0x0),_0x9020b(this,'_currentUsage',0x0),_0x9020b(this,_0x4a297c(0x1c9),[]),_0x9020b(this,_0x4a297c(0x49d),0x0),(this[_0x4a297c(0x233)]=_0x225761,this[_0x4a297c(0x3ee)]=_0x5d0559,this[_0x4a297c(0x2d4)]=_0x2b9c81,this[_0x4a297c(0x395)]=_0x204d62,this[_0x4a297c(0x3ba)]=_0x2f9443,this[_0x4a297c(0x458)]=_0x468d02,this['_localeService']=_0xf5bd9,this[_0x4a297c(0x297)]());}[_0x295e11(0x297)](){const _0x27bf7a=_0x295e11;this[_0x27bf7a(0x2bc)](this[_0x27bf7a(0x3ee)]['beforeCommandExecuted']((_0x13d7ac,_0x2246ba)=>{const _0x29ed22=_0x27bf7a;var _0x1c851b;if(_0x13d7ac['id']!==_0x100a4f[_0x29ed22(0x441)]['id'])return;const _0x2315a0=_0x13d7ac[_0x29ed22(0x1d6)];if(!this[_0x29ed22(0x32a)]((_0x1c851b=_0x2315a0[_0x29ed22(0x46f)])!=null?_0x1c851b:[]))return;if(!this[_0x29ed22(0x23a)]())throw this['_checkAndWaitForCalculationPermission'](_0x13d7ac,_0x2246ba),this['_showGuardMessage'](),new _0x40624a['CanceledError']();})),this[_0x27bf7a(0x2bc)](this[_0x27bf7a(0x3ee)]['onCommandExecuted']((_0x2dec4d,_0x13ba47)=>{const _0x3f4b7a=_0x27bf7a;if(_0x2dec4d['id']!==_0x100a4f[_0x3f4b7a(0x29f)]['id'])return;const _0x3a9303=_0x2dec4d[_0x3f4b7a(0x1d6)];if(_0x143dd4(_0x3a9303)){const _0x4e049b=_0x40624a['generateRandomId']();this[_0x3f4b7a(0x1c9)][_0x3f4b7a(0x2f0)](_0x4e049b),this[_0x3f4b7a(0x450)](_0x4e049b);}else{if(_0x361644(_0x3a9303)&&this['_taskIds'][_0x3f4b7a(0x1c4)]>0x0){const _0xbd4839=this[_0x3f4b7a(0x1c9)][_0x3f4b7a(0x45a)]();this[_0x3f4b7a(0x4a7)](_0xbd4839);}}}));}[_0x295e11(0x3d1)](){const _0xd03487=_0x295e11;super[_0xd03487(0x3d1)](),this[_0xd03487(0x43e)](),this['_taskIds']=[],this[_0xd03487(0x3f5)]=0x0,this[_0xd03487(0x492)]=0x0,this[_0xd03487(0x49d)]=0x0;}async[_0x295e11(0x46b)](_0x302348,_0x23fe20){const _0x58fbaf=_0x295e11;for(let _0x26e843=0x0;_0x26e843<0x1e;_0x26e843++)try{if(await this[_0x58fbaf(0x1ff)](),this[_0x58fbaf(0x23a)]()){this[_0x58fbaf(0x34a)](_0x302348,_0x23fe20),this['_messageService'][_0x58fbaf(0x344)]({'content':this[_0x58fbaf(0x2a5)]['t'](_0x58fbaf(0x3e5)),'type':_0x4e15c3[_0x58fbaf(0x256)][_0x58fbaf(0x470)]});return;}await new Promise(_0x469cc3=>{const _0x22ddd1=_0x58fbaf;this[_0x22ddd1(0x3bd)]=window[_0x22ddd1(0x30f)](_0x469cc3,0x3e8);});}catch(_0x1812e6){this['_logService'][_0x58fbaf(0x3b0)](_0x1812e6);}this[_0x58fbaf(0x233)][_0x58fbaf(0x344)]({'content':this['_localeService']['t'](_0x58fbaf(0x485)),'type':_0x4e15c3[_0x58fbaf(0x256)][_0x58fbaf(0x476)]});}[_0x295e11(0x34a)](_0x23753a,_0x3d2a46){const _0x49fce1=_0x295e11;try{this['_commandService'][_0x49fce1(0x48b)](_0x23753a['id'],_0x23753a['params'],_0x3d2a46);}catch(_0x3c77d8){this[_0x49fce1(0x458)][_0x49fce1(0x3b0)](_0x3c77d8);}}[_0x295e11(0x1dd)](_0x5f1832,_0x34df17){const _0x12502a=_0x295e11;_0x34df17<this['_lastResponseTimestamp']||(this[_0x12502a(0x49d)]=_0x34df17,this[_0x12502a(0x492)]=Number[_0x12502a(0x299)](_0x5f1832[_0x12502a(0x318)]),this[_0x12502a(0x3f5)]=Number[_0x12502a(0x299)](_0x5f1832[_0x12502a(0x296)]));}async[_0x295e11(0x450)](_0x5bdc4e){const _0x2af952=_0x295e11;var _0x2eef35,_0x15c990;const _0x3a6982=Date[_0x2af952(0x40f)]();try{const _0x584b09=((_0x2eef35=this[_0x2af952(0x2d4)][_0x2af952(0x231)](_0x3958ea[_0x2af952(0x222)]))==null?void 0x0:_0x2eef35[_0x2af952(0x1e0)])||_0x918f2b,_0x590f0d=(await this[_0x2af952(0x395)][_0x2af952(0x44a)](_0x584b09,{'body':JSON[_0x2af952(0x2be)]({'taskId':_0x5bdc4e})}))[_0x2af952(0x4a2)];if(((_0x15c990=_0x590f0d['error'])==null?void 0x0:_0x15c990[_0x2af952(0x286)])!==_0x319d71['OK'])return;this[_0x2af952(0x1dd)](_0x590f0d[_0x2af952(0x284)],_0x3a6982);}catch(_0x1b9cd1){this['_logService']['error'](_0x1b9cd1);}}async[_0x295e11(0x1ff)](_0x363f61){const _0x283ad5=_0x295e11;var _0x358e7c,_0x53746a;const _0x43a2fe=Date['now']();try{const _0x41b3a0=((_0x358e7c=this[_0x283ad5(0x2d4)]['getConfig'](_0x3958ea[_0x283ad5(0x222)]))==null?void 0x0:_0x358e7c['getformulaLimitStatusUrl'])||_0x55cf85,_0x3cc283=_0x363f61?_0x41b3a0+'?taskId='+encodeURIComponent(_0x363f61):_0x41b3a0,_0x4c03fb=(await this[_0x283ad5(0x395)][_0x283ad5(0x1de)](_0x3cc283))[_0x283ad5(0x4a2)];if(((_0x53746a=_0x4c03fb[_0x283ad5(0x3b0)])==null?void 0x0:_0x53746a[_0x283ad5(0x286)])!==_0x319d71['OK'])return;this['_setFormulaLimitStatus'](_0x4c03fb[_0x283ad5(0x284)],_0x43a2fe);}catch(_0x527548){this[_0x283ad5(0x458)][_0x283ad5(0x3b0)](_0x527548);}}async[_0x295e11(0x4a7)](_0x366abc){const _0x3e112b=_0x295e11;var _0x15dfdf,_0x2a02e5;const _0x721099=Date[_0x3e112b(0x40f)]();try{const _0x391bf7=((_0x15dfdf=this['_configService']['getConfig'](_0x3958ea[_0x3e112b(0x222)]))==null?void 0x0:_0x15dfdf[_0x3e112b(0x1c0)])||_0x272d31,_0x58b32a=(await this[_0x3e112b(0x395)][_0x3e112b(0x44a)](_0x391bf7,{'body':JSON['stringify']({'taskId':_0x366abc})}))[_0x3e112b(0x4a2)];if(((_0x2a02e5=_0x58b32a[_0x3e112b(0x3b0)])==null?void 0x0:_0x2a02e5[_0x3e112b(0x286)])!==_0x319d71['OK'])return;this[_0x3e112b(0x1dd)](_0x58b32a[_0x3e112b(0x284)],_0x721099);}catch(_0x1e0304){this[_0x3e112b(0x458)][_0x3e112b(0x3b0)](_0x1e0304);}}['_checkCalculationAvailable'](){const _0x1aef1f=_0x295e11;return this[_0x1aef1f(0x492)]===0x0?!0x0:this[_0x1aef1f(0x492)]-this[_0x1aef1f(0x3f5)]>0x0;}[_0x295e11(0x43e)](){const _0x4475b9=_0x295e11;this[_0x4475b9(0x3bd)]&&(clearTimeout(this[_0x4475b9(0x3bd)]),this[_0x4475b9(0x3bd)]=null);}[_0x295e11(0x2f9)](){const _0x57899b=_0x295e11;this[_0x57899b(0x233)][_0x57899b(0x344)]({'content':this[_0x57899b(0x2a5)]['t']('formula.calculation.waiting'),'type':_0x4e15c3[_0x57899b(0x256)][_0x57899b(0x39b)]});}[_0x295e11(0x32a)](_0x1de230){const _0x5bb94c=_0x295e11;for(const _0x2d63b8 of _0x1de230){const {unitId:_0x3cde27,sheetId:_0x1f7711,range:_0x4f34b9}=_0x2d63b8,_0x4e678d=this['_univerInstanceService']['getUnit'](_0x3cde27);if(!_0x4e678d)continue;const _0x2be0c4=_0x4e678d[_0x5bb94c(0x3e2)](_0x1f7711);if(!_0x2be0c4)continue;const _0x3ca1e0=_0x2be0c4[_0x5bb94c(0x3e1)]();for(let _0x755b32=_0x4f34b9[_0x5bb94c(0x218)];_0x755b32<=_0x4f34b9[_0x5bb94c(0x421)];_0x755b32++)for(let _0x17d3f7=_0x4f34b9[_0x5bb94c(0x25f)];_0x17d3f7<=_0x4f34b9[_0x5bb94c(0x3af)];_0x17d3f7++){const _0x36e27d=_0x3ca1e0['getValue'](_0x755b32,_0x17d3f7);if(_0x36e27d&&(_0x40624a[_0x5bb94c(0x3a1)](_0x36e27d['f'])||_0x40624a['isFormulaId'](_0x36e27d['si'])))return!0x0;}}return!0x1;}};_0x2f3884=_0x5d9f83([_0x16e967(0x0,_0x40624a[_0x295e11(0x33d)](_0x8e6f8f[_0x295e11(0x3dd)])),_0x16e967(0x1,_0x40624a['ICommandService']),_0x16e967(0x2,_0x40624a[_0x295e11(0x26b)]),_0x16e967(0x3,_0x40624a[_0x295e11(0x33d)](_0x42d795[_0x295e11(0x2b0)])),_0x16e967(0x4,_0x40624a[_0x295e11(0x2e4)]),_0x16e967(0x5,_0x40624a['ILogService']),_0x16e967(0x6,_0x40624a[_0x295e11(0x33d)](_0x40624a[_0x295e11(0x336)]))],_0x2f3884);var _0xd76ff7=Object[_0x295e11(0x3a0)],_0xc80f08=(_0x5c7170,_0x19d41a,_0x24c4a4,_0x1b31f6)=>{const _0x2fb312=_0x295e11;for(var _0x3b9490=_0x1b31f6>0x1?void 0x0:_0x1b31f6?_0xd76ff7(_0x19d41a,_0x24c4a4):_0x19d41a,_0x1c13dd=_0x5c7170[_0x2fb312(0x1c4)]-0x1,_0xf04be;_0x1c13dd>=0x0;_0x1c13dd--)(_0xf04be=_0x5c7170[_0x1c13dd])&&(_0x3b9490=_0xf04be(_0x3b9490)||_0x3b9490);return _0x3b9490;},_0x5b38eb=(_0x29c3f9,_0x53c8d0)=>(_0xe464cc,_0x2c92aa)=>_0x53c8d0(_0xe464cc,_0x2c92aa,_0x29c3f9);let _0x3698c4=class extends _0x40624a[_0x295e11(0x430)]{constructor(_0x4e7466,_0x33f518,_0x2b911c){const _0xdc9bf9=_0x295e11;super(),_0x9020b(this,_0xdc9bf9(0x32e),new Map()),_0x9020b(this,_0xdc9bf9(0x1fe),new Map()),_0x9020b(this,'_disabled',!0x1),(this[_0xdc9bf9(0x2d4)]=_0x4e7466,this[_0xdc9bf9(0x490)]=_0x33f518,this[_0xdc9bf9(0x321)]=_0x2b911c);}[_0x295e11(0x200)](){const _0x14cbd3=_0x295e11;this[_0x14cbd3(0x220)]=!0x0;}[_0x295e11(0x3a6)](){const _0x1a6373=_0x295e11;this[_0x1a6373(0x220)]=!0x1;}get[_0x295e11(0x313)](){return this['_saveTaskMap'];}[_0x295e11(0x3d1)](){const _0x4b1ad8=_0x295e11;this[_0x4b1ad8(0x46c)]()['then'](()=>super[_0x4b1ad8(0x3d1)]());}async[_0x295e11(0x4aa)](_0x23171b){const _0x332140=_0x295e11;return this[_0x332140(0x220)]?null:this[_0x332140(0x490)][_0x332140(0x1e5)](_0x3958ea[_0x332140(0x2db)](_0x23171b));}async[_0x295e11(0x1be)](_0x5a590a,_0xf74f56){const _0x1cf23a=_0x295e11;return!!this[_0x1cf23a(0x490)][_0x1cf23a(0x406)](_0x5a590a,_0xf74f56);}[_0x295e11(0x251)](_0x41b57a,_0x587a5,_0x1b55a6,_0x3c1683){const _0x5ce9a2=_0x295e11,_0x5ef294=this['_revisionService'][_0x5ce9a2(0x443)](_0x41b57a);this[_0x5ce9a2(0x32e)][_0x5ce9a2(0x370)](_0x41b57a,{'unitID':_0x41b57a,'type':_0x587a5,'awaitingChangeset':_0x1b55a6,'mutations':_0x3c1683,'rev':_0x5ef294}),this[_0x5ce9a2(0x1fe)]['has'](_0x41b57a)||this[_0x5ce9a2(0x257)](_0x41b57a);}['_scheduleSaving'](_0x5e498c){const _0x4517e5=_0x295e11,_0x40d34b=this[_0x4517e5(0x261)]();_0x40d34b===0x0?this['_saveCache'](_0x5e498c):this[_0x4517e5(0x1fe)][_0x4517e5(0x370)](_0x5e498c,setTimeout(()=>this[_0x4517e5(0x20e)](_0x5e498c),_0x40d34b));}[_0x295e11(0x261)](){const _0x3408cc=_0x295e11;var _0x2dc032;return(_0x2dc032=this[_0x3408cc(0x2d4)][_0x3408cc(0x231)](_0x3958ea[_0x3408cc(0x36b)]))!=null?_0x2dc032:_0x3958ea[_0x3408cc(0x341)];}['_saveCache'](_0x318b16){const _0x146c43=_0x295e11,_0x13c50e=this[_0x146c43(0x1fe)][_0x146c43(0x1de)](_0x318b16);return _0x13c50e!==void 0x0&&window[_0x146c43(0x425)](_0x13c50e),this[_0x146c43(0x490)]['setItem'](_0x3958ea['getLocalCacheKey'](_0x318b16),this[_0x146c43(0x32e)][_0x146c43(0x1de)](_0x318b16))[_0x146c43(0x2a1)](()=>this[_0x146c43(0x1fe)][_0x146c43(0x240)](_0x318b16));}async[_0x295e11(0x46c)](){const _0x3a06f5=_0x295e11,_0xa9a7a7=[];this['_saveTaskMap']['forEach']((_0x17ac57,_0x427d1d)=>{const _0xab9e18=_0xd951;window[_0xab9e18(0x425)](_0x17ac57),_0xa9a7a7['push'](this[_0xab9e18(0x20e)](_0x427d1d)[_0xab9e18(0x2a1)](()=>{const _0x3c9f93=_0xab9e18;this[_0x3c9f93(0x1fe)]['delete'](_0x427d1d);}));}),await Promise[_0x3a06f5(0x375)](_0xa9a7a7);}};_0x3698c4=_0xc80f08([_0x5b38eb(0x0,_0x40624a[_0x295e11(0x26b)]),_0x5b38eb(0x1,_0x40624a['ILocalStorageService']),_0x5b38eb(0x2,_0x40624a[_0x295e11(0x33d)](_0x2c324c[_0x295e11(0x1fb)]))],_0x3698c4);class _0x5e9496 extends _0x40624a[_0x295e11(0x40a)]{constructor(){const _0x5c8673=_0x295e11;super(),_0x9020b(this,_0x5c8673(0x368)),this[_0x5c8673(0x368)]=_0x5b38f4[_0x5c8673(0x4a5)](window,_0x5c8673(0x433))[_0x5c8673(0x32d)](_0x5b38f4[_0x5c8673(0x491)](this[_0x5c8673(0x2ff)]),_0x5b38f4[_0x5c8673(0x2ae)](0x1),_0x5b38f4[_0x5c8673(0x3ff)](void 0x0));}['setParam'](_0x102d3a,_0x5a52be,_0xe60998=!0x1){const _0x417047=_0x295e11,_0x260554=new URL(window[_0x417047(0x3b2)]['href']);_0x260554[_0x417047(0x2fd)][_0x417047(0x370)](_0x102d3a,_0x5a52be),_0xe60998?window[_0x417047(0x1db)]['replaceState']('','',_0x260554[_0x417047(0x339)]()):window[_0x417047(0x1db)][_0x417047(0x2d9)]('','',_0x260554[_0x417047(0x339)]());}[_0x295e11(0x1f2)](_0x194a37,_0x1417a0=!0x1){const _0xda47cc=_0x295e11,_0x4ed731=new URL(window['location'][_0xda47cc(0x1fd)]);_0x4ed731[_0xda47cc(0x2fd)][_0xda47cc(0x240)](_0x194a37),_0x1417a0?window[_0xda47cc(0x1db)][_0xda47cc(0x213)]('','',_0x4ed731[_0xda47cc(0x339)]()):window[_0xda47cc(0x1db)][_0xda47cc(0x2d9)]('','',_0x4ed731['toString']());}['getParam'](_0x2f9c7a){const _0x24aca3=_0x295e11;var _0x530226;return(_0x530226=new URL(window['location'][_0x24aca3(0x1fd)])[_0x24aca3(0x2fd)]['get'](_0x2f9c7a))!=null?_0x530226:void 0x0;}}var _0x530910=Object['defineProperty'],_0x40f96b=Object[_0x295e11(0x3a0)],_0x15fe47=(_0x497739,_0x48709e,_0x25a192)=>_0x48709e in _0x497739?_0x530910(_0x497739,_0x48709e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25a192}):_0x497739[_0x48709e]=_0x25a192,_0x283235=(_0x43d628,_0x4e9c62,_0x4a1ebc,_0x20abd7)=>{const _0x1d2d08=_0x295e11;for(var _0x51ed70=_0x20abd7>0x1?void 0x0:_0x20abd7?_0x40f96b(_0x4e9c62,_0x4a1ebc):_0x4e9c62,_0x34e86d=_0x43d628[_0x1d2d08(0x1c4)]-0x1,_0x224bab;_0x34e86d>=0x0;_0x34e86d--)(_0x224bab=_0x43d628[_0x34e86d])&&(_0x51ed70=_0x224bab(_0x51ed70)||_0x51ed70);return _0x51ed70;},_0x51bd95=(_0x3935e6,_0x5cd520)=>(_0x12642d,_0x496546)=>_0x5cd520(_0x12642d,_0x496546,_0x3935e6),_0xeb6823=(_0x3a2726,_0x4a477f,_0x17dd68)=>_0x15fe47(_0x3a2726,_0x4a477f+'',_0x17dd68);const _0x25e50f=_0x295e11(0x378);_0x40352c[_0x295e11(0x272)]=class extends _0x40624a[_0x295e11(0x39e)]{constructor(_0x322eef=_0x1498da,_0x297ed5,_0x2657ee,_0x30d688){const _0x1d217a=_0x295e11;super(),this['_config']=_0x322eef,this[_0x1d217a(0x1ed)]=_0x297ed5,this[_0x1d217a(0x351)]=_0x2657ee,this[_0x1d217a(0x2d4)]=_0x30d688;const {..._0x4c8277}=_0x40624a[_0x1d217a(0x263)]({},_0x1498da,this[_0x1d217a(0x388)]);this[_0x1d217a(0x2d4)][_0x1d217a(0x20c)](_0x146d19,_0x4c8277);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}[_0x295e11(0x1cc)](){const _0x45c951=_0x295e11;this[_0x45c951(0x31d)]();}['_registerDependencies'](){const _0x5c7cca=_0x295e11;var _0x1e58aa;const _0x149308=[[_0x2d4f99],[_0x2f3884],[_0x1165fa],[_0x516df5],[_0x2c640a],[_0x2a125f],[_0x6adebe,{'useClass':_0x5e9496}],[_0x42d795[_0x5c7cca(0x397)],{'useClass':_0x42d795['WebSocketService']}],[_0x3958ea[_0x5c7cca(0x22f)],{'useClass':_0x3698c4}],[_0x40352c[_0x5c7cca(0x295)]],[_0x22b2b8],[_0x3ef4e4],[_0x2e9070],[_0x47f626],[_0x40352c['CollaborationDataLoaderController']]];this[_0x5c7cca(0x388)][_0x5c7cca(0x481)]&&_0x149308[_0x5c7cca(0x2f0)]([_0x308889]),_0x40624a['registerDependencies'](this[_0x5c7cca(0x351)],_0x40624a['mergeOverrideWithDependencies'](_0x149308,(_0x1e58aa=this[_0x5c7cca(0x388)])==null?void 0x0:_0x1e58aa[_0x5c7cca(0x229)]));}['_registerRenderDependencies'](){const _0x5835c9=_0x295e11;this['disposeWithMe'](this[_0x5835c9(0x1ed)]['registerRenderModule'](_0x40624a[_0x5835c9(0x260)][_0x5835c9(0x36a)],[_0x2faf05])),this[_0x5835c9(0x2bc)](this[_0x5835c9(0x1ed)][_0x5835c9(0x35e)](_0x40624a[_0x5835c9(0x260)]['UNIVER_SHEET'],[_0xb986df]));}[_0x295e11(0x385)](){const _0xf40917=_0x295e11;_0x40624a['touchDependencies'](this[_0xf40917(0x351)],[[_0x2e9070],[_0x40352c['DesktopCollaborationStatusDisplayController']],[_0x22b2b8],[_0x3ef4e4],[_0x40352c[_0xf40917(0x301)]],[_0x2f3884]]),this[_0xf40917(0x388)][_0xf40917(0x481)]&&_0x40624a[_0xf40917(0x212)](this[_0xf40917(0x351)],[[_0x308889]]);}},_0xeb6823(_0x40352c[_0x295e11(0x272)],'pluginName',_0x25e50f),_0x40352c['UniverCollaborationClientUIPlugin']=_0x283235([_0x40624a[_0x295e11(0x3c5)](_0x3958ea[_0x295e11(0x4a3)]),_0x51bd95(0x1,_0x2680b3[_0x295e11(0x280)]),_0x51bd95(0x2,_0x40624a[_0x295e11(0x33d)](_0x40624a[_0x295e11(0x474)])),_0x51bd95(0x3,_0x40624a['IConfigService'])],_0x40352c['UniverCollaborationClientUIPlugin']);var _0x1765a2=Object[_0x295e11(0x3a0)],_0x4dc7fa=(_0x68f912,_0x4d5339,_0x42cc1b,_0x630dc7)=>{const _0x54acd5=_0x295e11;for(var _0x372736=_0x630dc7>0x1?void 0x0:_0x630dc7?_0x1765a2(_0x4d5339,_0x42cc1b):_0x4d5339,_0x35b2c3=_0x68f912[_0x54acd5(0x1c4)]-0x1,_0x2886eb;_0x35b2c3>=0x0;_0x35b2c3--)(_0x2886eb=_0x68f912[_0x35b2c3])&&(_0x372736=_0x2886eb(_0x372736)||_0x372736);return _0x372736;},_0x45c070=(_0x1a1fbe,_0x3c7144)=>(_0x240266,_0xf162bb)=>_0x3c7144(_0x240266,_0xf162bb,_0x1a1fbe);_0x40352c[_0x295e11(0x28b)]=class extends _0x3958ea[_0x295e11(0x2eb)]{constructor(_0x163fe0,_0x3aac88,_0x264432,_0xef7ada,_0x59efbb){super(_0x163fe0,_0x3aac88,_0x264432,_0xef7ada,_0x59efbb);}async[_0x295e11(0x401)](_0x1decec){const _0x3aa03b=_0x295e11,_0x569583=await this[_0x3aa03b(0x379)](),_0x19c363=this['_createSocketURL'](_0x1decec,_0x569583);return this[_0x3aa03b(0x2a4)](_0x19c363);}[_0x295e11(0x2a9)](_0x1a79ce,_0x5acd25){const _0x396d29=_0x295e11,_0x40b677=typeof window>'u'?new URL(_0x1a79ce):new URL(_0x1a79ce,window[_0x396d29(0x3b2)][_0x396d29(0x3c4)]);_0x40b677[_0x396d29(0x2fd)][_0x396d29(0x370)](_0x396d29(0x431),_0x5acd25);const _0x4b5e69=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x396d29(0x47a)]);return _0x4b5e69['get']('runId')&&_0x40b677[_0x396d29(0x2fd)][_0x396d29(0x370)]('runId',_0x4b5e69[_0x396d29(0x1de)]('runId')),_0x40b677[_0x396d29(0x339)]();}async[_0x295e11(0x379)](){const _0x2c0bb4=_0x295e11;var _0x29799d,_0x34773e,_0x4fd70b;const _0x22bb55=this['_configService'][_0x2c0bb4(0x231)](_0x3958ea[_0x2c0bb4(0x222)]),_0x2a50cf=(_0x29799d=_0x22bb55==null?void 0x0:_0x22bb55['wsSessionTicketUrl'])!=null?_0x29799d:_0x3958ea['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x4fd70b=(_0x34773e=(await this['_httpService'][_0x2c0bb4(0x1de)](_0x2a50cf,{'headers':{'Content-Type':_0x2c0bb4(0x456)}}))[_0x2c0bb4(0x4a2)])==null?void 0x0:_0x34773e[_0x2c0bb4(0x386)])!=null?_0x4fd70b:'';}},_0x40352c['BrowserCollaborationSocketService']=_0x4dc7fa([_0x45c070(0x0,_0x40624a['Inject'](_0x40624a[_0x295e11(0x474)])),_0x45c070(0x1,_0x40624a[_0x295e11(0x33d)](_0x42d795[_0x295e11(0x2b0)])),_0x45c070(0x2,_0x40624a[_0x295e11(0x26b)]),_0x45c070(0x3,_0x40624a['ILogService']),_0x45c070(0x4,_0x2c324c[_0x295e11(0x411)])],_0x40352c[_0x295e11(0x28b)]);var _0x145339=Object[_0x295e11(0x3a0)],_0x3380e6=(_0x10608d,_0x32eefe,_0x528d30,_0x38a671)=>{const _0x2855f2=_0x295e11;for(var _0x1dd3aa=_0x38a671>0x1?void 0x0:_0x38a671?_0x145339(_0x32eefe,_0x528d30):_0x32eefe,_0x5ec9c9=_0x10608d[_0x2855f2(0x1c4)]-0x1,_0x537c0f;_0x5ec9c9>=0x0;_0x5ec9c9--)(_0x537c0f=_0x10608d[_0x5ec9c9])&&(_0x1dd3aa=_0x537c0f(_0x1dd3aa)||_0x1dd3aa);return _0x1dd3aa;},_0x2105cc=(_0x3b52ec,_0xa2f103)=>(_0x52c6e8,_0x3ad6ba)=>_0xa2f103(_0x52c6e8,_0x3ad6ba,_0x3b52ec);_0x40352c[_0x295e11(0x3f0)]=class extends _0x40624a[_0x295e11(0x430)]{constructor(_0x2b038e,_0x2b01df,_0x145c2e){const _0xd440d6=_0x295e11;super(),this[_0xd440d6(0x3d9)]=_0x2b038e,this[_0xd440d6(0x395)]=_0x2b01df,this[_0xd440d6(0x2d4)]=_0x145c2e;}async[_0x295e11(0x2fa)](_0x44efb2,_0x9379ac,_0x515c21,..._0x27df63){const _0x3b9f42=_0x295e11;var _0x369917,_0x53d13d,_0x3ca8b7,_0x376a1a;const _0x5c31c4=this[_0x3b9f42(0x3d9)][_0x3b9f42(0x3cd)]();if(!_0x5c31c4)throw new Error(_0x3b9f42(0x356));const _0x15c154=((_0x369917=this[_0x3b9f42(0x2d4)][_0x3b9f42(0x231)](_0x3958ea[_0x3b9f42(0x367)]))!=null?_0x369917:_0x3958ea[_0x3b9f42(0x20d)])+'/'+_0x44efb2+_0x3b9f42(0x42e)+_0x9379ac,_0x358859=new URL(window[_0x3b9f42(0x3b2)]['href']),_0x41cfc3={'scriptId':_0x44efb2,'runId':(_0x53d13d=_0x358859['searchParams'][_0x3b9f42(0x1de)](_0x3b9f42(0x1cd)))!=null?_0x53d13d:'','function':_0x9379ac,'unitId':_0x5c31c4['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x27df63),'invokeId':(_0x3ca8b7=_0x515c21[_0x3b9f42(0x223)])!=null?_0x3ca8b7:'','executionId':(_0x376a1a=_0x515c21[_0x3b9f42(0x320)])!=null?_0x376a1a:''};try{const _0x166dcb=await this[_0x3b9f42(0x395)]['post'](_0x15c154,{'body':_0x41cfc3});return _0x166dcb[_0x3b9f42(0x4a2)][_0x3b9f42(0x3b0)]&&_0x166dcb[_0x3b9f42(0x4a2)][_0x3b9f42(0x3b0)][_0x3b9f42(0x286)]!==_0x319d71['OK']?_0x3b9f42(0x2f5):_0x166dcb[_0x3b9f42(0x4a2)]['result'];}catch{return _0x3b9f42(0x2f5);}}},_0x40352c[_0x295e11(0x3f0)]=_0x3380e6([_0x2105cc(0x0,_0x40624a[_0x295e11(0x2e4)]),_0x2105cc(0x1,_0x40624a[_0x295e11(0x33d)](_0x42d795['HTTPService'])),_0x2105cc(0x2,_0x40624a[_0x295e11(0x26b)])],_0x40352c[_0x295e11(0x3f0)]);const _0x193540=0x7530,_0x4b5352='ACTIVE_UNIT_EVENT_CHANNEL';class _0x581939 extends _0x40624a['Disposable']{constructor(){const _0x2f2490=_0x295e11;super(),_0x9020b(this,_0x2f2490(0x404),_0x40624a[_0x2f2490(0x2d5)]()),_0x9020b(this,'_selfUnitIDs',new Set()),_0x9020b(this,_0x2f2490(0x2b6),new Map()),_0x9020b(this,_0x2f2490(0x277),null),_0x9020b(this,_0x2f2490(0x1d2),new Map()),_0x9020b(this,_0x2f2490(0x383),new Map()),this[_0x2f2490(0x4a0)]();}[_0x295e11(0x3d1)](){const _0x3c3c1e=_0x295e11;super[_0x3c3c1e(0x3d1)](),this[_0x3c3c1e(0x1d2)][_0x3c3c1e(0x24d)]((_0x4726ee,_0x389075)=>this[_0x3c3c1e(0x365)](_0x389075)),this[_0x3c3c1e(0x277)]&&window['clearInterval'](this[_0x3c3c1e(0x277)]);}[_0x295e11(0x3f1)](_0x53f8cf){const _0xd1888f=_0x295e11;return this[_0xd1888f(0x2d0)](_0x53f8cf)[_0xd1888f(0x32d)](_0x5b38f4[_0xd1888f(0x39a)]());}[_0x295e11(0x2bb)](_0x46adff){const _0x547cf5=_0x295e11;this[_0x547cf5(0x362)][_0x547cf5(0x47e)]===0x0&&this[_0x547cf5(0x27b)](),this[_0x547cf5(0x362)][_0x547cf5(0x372)](_0x46adff),this[_0x547cf5(0x25c)]({'type':0x0,'memberID':this[_0x547cf5(0x404)],'unitIDs':[_0x46adff],'isForwarded':!0x1});}['disposeUnit'](_0x33cc0d){const _0x1ecd45=_0x295e11;this[_0x1ecd45(0x362)][_0x1ecd45(0x240)](_0x33cc0d),this['_selfUnitIDs'][_0x1ecd45(0x47e)]===0x0&&this[_0x1ecd45(0x277)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x295e11(0x4a0)](){const _0x5d77a4=_0x295e11;this[_0x5d77a4(0x2bc)](_0x40624a[_0x5d77a4(0x381)](_0x5b38f4[_0x5d77a4(0x4a5)](window,'storage')[_0x5d77a4(0x4af)](_0x16ce6a=>{const _0x247378=_0x5d77a4;if(_0x16ce6a[_0x247378(0x209)]!==_0x4b5352||!_0x16ce6a['newValue'])return;const _0x2e8109=JSON[_0x247378(0x249)](_0x16ce6a['newValue']);this[_0x247378(0x305)](_0x2e8109);}))),window['addEventListener'](_0x5d77a4(0x45e),()=>this[_0x5d77a4(0x25c)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5d77a4(0x4a6)](this[_0x5d77a4(0x362)])}));}[_0x295e11(0x305)](_0xd4b0f0){const _0x119784=_0x295e11;switch(_0xd4b0f0['type']){case 0x0:this[_0x119784(0x3fd)](_0xd4b0f0);break;case 0x1:this[_0x119784(0x440)](_0xd4b0f0);break;case 0x2:this[_0x119784(0x408)](_0xd4b0f0);break;}}[_0x295e11(0x3fd)](_0xc9e2fa){const _0x4c0708=_0x295e11,{unitIDs:_0x18139d,memberID:_0x563195,isForwarded:_0x38b6a9}=_0xc9e2fa;_0x18139d[_0x4c0708(0x24d)](_0x37fea6=>{const _0xe3a1f4=_0x4c0708;if(!_0x38b6a9&&this['_unitOnClients']['has'](_0x37fea6)&&this[_0xe3a1f4(0x2d0)](_0x37fea6)[_0xe3a1f4(0x2d3)](_0x3958ea[_0xe3a1f4(0x3db)][_0xe3a1f4(0x309)]),!this[_0xe3a1f4(0x2b6)]['has'](_0x37fea6)||!this[_0xe3a1f4(0x2b6)]['get'](_0x37fea6)[_0xe3a1f4(0x248)](_0x563195)){const _0x1051cc=this[_0xe3a1f4(0x2b6)][_0xe3a1f4(0x1de)](_0x37fea6)||new Set();_0x1051cc[_0xe3a1f4(0x372)](_0x563195),this[_0xe3a1f4(0x2b6)][_0xe3a1f4(0x370)](_0x37fea6,_0x1051cc),this[_0xe3a1f4(0x47c)](_0x563195);}}),_0x38b6a9||this['_send']({'type':0x0,'memberID':this[_0x4c0708(0x404)],'unitIDs':[...this[_0x4c0708(0x362)]],'isForwarded':!0x0});}[_0x295e11(0x47c)](_0x2be0eb){const _0x163496=_0x295e11;this[_0x163496(0x365)](_0x2be0eb);const _0x527f4d=window[_0x163496(0x30f)](()=>{const _0xa25ac2=_0x163496;this['_unitOnClients'][_0xa25ac2(0x24d)](_0xe18203=>{const _0x3d12f1=_0xa25ac2;_0xe18203[_0x3d12f1(0x240)](_0x2be0eb);});},_0x193540*0x2);this['_clearOtherTimers'][_0x163496(0x370)](_0x2be0eb,_0x527f4d);}['_removeClearOtherTimer'](_0x1f1ce3){const _0x47b597=_0x295e11;if(this['_clearOtherTimers'][_0x47b597(0x248)](_0x1f1ce3)){const _0x423165=this['_clearOtherTimers'][_0x47b597(0x1de)](_0x1f1ce3);_0x423165&&window[_0x47b597(0x425)](_0x423165),this[_0x47b597(0x1d2)][_0x47b597(0x370)](_0x1f1ce3,null);}}['_handleLeaveEvent'](_0x2e4fe6){const _0x93116a=_0x295e11,{memberID:_0x50e1c3,unitIDs:_0x1d15b6}=_0x2e4fe6;_0x1d15b6['forEach'](_0x7328e0=>{const _0x5261a9=_0xd951;var _0x4b3b46;const _0x49411c=this[_0x5261a9(0x2b6)]['get'](_0x7328e0);_0x49411c&&(_0x49411c[_0x5261a9(0x240)](_0x50e1c3),(_0x4b3b46=this[_0x5261a9(0x2d0)](_0x7328e0))==null||_0x4b3b46[_0x5261a9(0x2d3)](_0x49411c[_0x5261a9(0x47e)]===0x0?_0x3958ea['UnitStatus'][_0x5261a9(0x2af)]:_0x3958ea[_0x5261a9(0x3db)][_0x5261a9(0x309)]));}),this[_0x93116a(0x365)](_0x50e1c3);}[_0x295e11(0x408)](_0x4aa911){const _0x319cfc=_0x295e11;this[_0x319cfc(0x47c)](_0x4aa911['memberID']);}['_send'](_0x4cbac8){const _0x28ad1e=_0x295e11;localStorage['setItem'](_0x4b5352,JSON[_0x28ad1e(0x2be)](_0x4cbac8));}['_scheduleHeartbeat'](){const _0x5e76e9=_0x295e11;this[_0x5e76e9(0x277)]=window[_0x5e76e9(0x3f6)](()=>{const _0x3eed7b=_0x5e76e9;this[_0x3eed7b(0x25c)]({'type':0x2,'memberID':this['_id']});},_0x193540);}[_0x295e11(0x2d0)](_0x1f0268){const _0x46b357=_0x295e11;return this[_0x46b357(0x383)]['has'](_0x1f0268)||this[_0x46b357(0x383)][_0x46b357(0x370)](_0x1f0268,new _0x5b38f4['BehaviorSubject'](_0x3958ea['UnitStatus'][_0x46b357(0x2af)])),this[_0x46b357(0x383)][_0x46b357(0x1de)](_0x1f0268);}}_0x40352c[_0x295e11(0x438)]=_0x6adebe,_0x40352c['SheetCollabCursorShape']=_0x446f9f,_0x40352c[_0x295e11(0x2f1)]=_0x581939,_0x40352c[_0x295e11(0x345)]=_0x5e9496,Object[_0x295e11(0x314)](_0x40352c,Symbol[_0x295e11(0x3f9)],{'value':_0x295e11(0x38f)});}));
1
+ function _0x1e97(_0x3f05b8,_0x598ef3){_0x3f05b8=_0x3f05b8-0xce;const _0x17969e=_0x1796();let _0x1e97df=_0x17969e[_0x3f05b8];return _0x1e97df;}function _0x1796(){const _0x4000cb=['getLocalCacheKey','CollaborationDataLoaderController','override','dispose$','xlink:href','_docTransformStateCacheService','engine','imageSourceType','USER_NOT_INVITED_CODE','_unitOnClients','getFocusedUnit','object','369766nIPzgf','@univerjs/design','CollaborationStatus','source','permission.title','_initDependencies','ticket','getUndoRedoMutationParamsCache','COMPLETION_FINISHED','url(#$1','invokeId','DataLoaderService','/universer-api/license/formula/limit/status','endRow','getCollabCursors$','search','dispose','SetTextSelectionsOperation','createElement','height','storage','resize','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','off-line-icon_clip0_910_343','roomMembers$','Tools','handleInsertRow','Unknown\x20user','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getUnitId','idSuffix','ONLINE','svg','assignAColorForMemberID','setAlpha','_toggleOnline','useCallback','size','FromArray','_httpService','measureText','REDEMPTION_CODE_HAS_BEEN_CREATED','_disabled','@univerjs/drawing','_roomMembers$','@univerjs/network','socket$','path','_initStatusListener','values','COLORS','_commandService','isArray','eventID','clipPath','shareReplay','fromEventSubject','[LogService\x20Error]:\x20','MOBILE_VERIFY_CODE_MISMATCH','editingUnit','DisposableCollection','_colorIndex','PERMISSION_DENIED','LOGIN_TOKEN_PROCESSING_FAILED','univerjs-icon\x20univerjs-icon-','@univerjs/sheets','SOCKET_FAILED_RETRY','focused$','_logService','_getMergeRange','_docTransformSelectionsService','ranges','_releaseCalculationLimit','_onCursorDelete','_handleHover','m2Prime','init','isFormulaId','FormulaExecuteStageType','_drawAnchor','_scheduleSaving','#FFF','DocStateChangeManagerService','stageInfo','_onCursorUpdate','VIEW_MAIN','undoState','post','USERS_LEAVE','deepClone','_taskIds','Optional','SUCCESS','MessageType','exhaustSavingTask','handleInsertRangeMoveRight','takeUntil','error','TEXT','NOT_FOUND','8011638ZkysBU','PY_RUNTIME_SCRIPT_ERROR','tag','_collabSessionService','_initUnhandledRejectionListener','AWAITING_WITH_PENDING','IRenderManagerService','removeEventListener','RemoveColCommandId','_clearOtherTimers','use','delete','_heartbeatTimer','endColumn','_cursorInfo$','_textBubble','REDEMPTION_INVALID_CODE','getCoordByCell','PENDING','_createSocketURL','_initCommandInterceptor','sessionStatus$','Loading','EffectRefRangId','INotificationService','getUnit','_clearPolling','REDEMPTION_USER_NOT_ELIGIBLE','_docSkeletonManagerService','children','YUUMI_ASYNCIO_CANCELLED','UniverDocsUi','ENTITLE_USE_COUPON_NOT_1ST_TRADE','@univerjs/engine-formula','_injector','APPLY_NON_SEQUENTIAL_REVISION','attrs','...','CONNECTOR_DATA_TOO_LARGE','isFormulaString','ENTITLE_CAN_NOT_BUY_LOWER_OTP','UniverRpc','WebURLService','mapTo','APPLY_REVISION_CONFILICT','session.connection-failed','row','M0\x200H16V16H0z','getTypeOfUnitAdded$','_dataLoaderService','SetSelectionsOperation','ILocalStorageService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','transformMutation','has','currentColor','SOCKET_FAILED','roomMembers','distinctUntilChanged','isTransformMutationFailure','InsertRowCommandId','_docClipboardService','DocSkeletonManagerService','_getSheetObject','onCommandExecuted','set','_render','_cursor','setTimeout','@univerjs-pro/collaboration','YUUMI_AI_RUN_FAILED','_labelPosition','_showGuardMessage','colno','text','ACTIVE_UNIT_EVENT_CHANNEL','_transformUndoRedoStack','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_removeClearOtherTimer','OFFLINE','setUndoRedoMutationParamsCache','string','sessionTicket','getColorFromTheme','UniverSheets','collabStatus.fetchMiss','_initResize','_univerInstanceService','RECT','transformMutationsWithChangeset','_renderManagerService','push','cursorInfo$','makeDirty','UniverEngineRender','formula.calculation.unable','_themeService','exports','textRanges','totalFormulasToCalculate','collabStatus.conflict','Rectangle','Error','InsertRangeMoveDownCommandId','REDEMPTION_CODE_INACTIVE','with','isEditing','_instanceService','_cursorShapes','pipe','_onRefRangeChange','_maxFormulaLimit','none','UNDEFINED','DependentOn','WebSocketService','location','CLOSE_ROOM','status$','_memberID','MUTATION','color','parseInt','onPointerLeave$','fill','_getAnchorBounding','CURRENT_STATUS_CANNOT_OPERATE','USER_NOT_FOUND','actions','popstate','_initStatusComponent','body','BuiltInUIPart','collabCursorState$','IImageIoService','[CollaborationDataLoaderController]','unitID','ILogService','filter','UniverCollaborationClientUIPlugin','throttleTime','CollaborationSocketService','operators','ThemeService','_setupSubUnitSync','getRelativeToViewportCoord','_selfUnitIDs','PAYMENT_CHANNEL_NOT_SUPPORT','column','collab-text-anchor-','getSheetId','CollaborationEvent','_handleEvent','whenReady','length','getOffsetConfig','INVITE_CODE_HAS_BEEN_UES','disposeWithMe','replaceState','getSheetObject','_scheduleHeartbeat','clearTimeout','LICENSE_MAX_UNITS_EXCEEDED','forwardRef','event$','SheetCollabCursorShape','_draw','REDEMPTION_CODE_FULLY_REDEEMED','INTERNAL_ERROR','limitInfo','_getSaveTimeout','/universer-api/license/formula/limit/done','getCurrentRevOfUnit','_eventUnsubscribe','_registerDependencies','collaboration-client-ui.config','SetDocZoomRatioOperation','UniverNetwork','collaboration.offline-data-not-saved','disableLocalCache','_pollingInterval','IURLService','Inject','range','arc','handleInsertRangeMoveDown','_id','history','_collabCursorState$','RevisionService','setInterval','UNAUTHENTICATED','getCurrentUnitForType','functionsExecutedState','now','merge','SheetSkeletonManagerService','@univerjs/core','stack','_registerRenderDependencies','entityInit$','CollaborationUIEventService','collaboration.closeRoom','ENTITLE_REPORT_LIMIT_EXCEED','SNAPSHOT_HAS_BEEN_REMOVED','_urlService','flatMap','on-line-icon_clip0_910_349','CollaborationController','MoveRangeCommandId','_hasFormulaInDirtyRanges','getformulaLimitStatusUrl','registerRefRange','_cachedData','_entities','saveImage','UNIVER_SHEET','getColor','session.collaboration-timeout','getVpScrollXYInfoByPosToVp','UniverInstanceType','_getFormulaLimitStatus','_collabCursorController','IConfigService','hovered','ILocalCacheService','_uploadLog','OffLineIcon','APPLY_DUPLICATED','RegularPolygon','loadUnit','BrowserCollaborationSocketService','univer-flex\x20univer-items-center','runOnServer','YUUMI_RATE_OVER_LIMIT','INVITE_CODE_REQUIRED','UniverIcon','subUnitId','top','OTHER_CLIENTS_EDITING','params','_refreshCollabCursors','save','loadOfflineData','removeParam','LOCAL_CACHE_INTERVAL','maxFormulaLimit','@univerjs/docs-ui','_localStorageService','colorChannel1','ISocketService','href','YUUMI_CONNECTOR_URL_NOT_FOUND','UniverEngineFormula','CONFLICT','CollaborationUIEventId','addObject','getSkeleton','symbol','Rect','@univerjs/ui','_beforeCloseService','_updateSubUnitFromURLParams','_lastResponseTimestamp','/universer-api/license/formula/limit/start','DeleteRangeMoveLeftCommandId','SHEET_VIEWPORT_KEY','then','_initEvent','_hideTimer','registerComponent','Injector','ENTITLE_INSUFFICIENT_QUOTA','_hovered','add','Warning','ENTITLE_COUPON_EXPIRED','onStarting','UNIVER_DOC','mutations','NodePositionConvertToRectRange','_collaborationSessionService','send','executionId','_updateLocalCursor','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_online','find','REDEMPTION_CODE_NOT_STARTED','Module','24269rWNrGi','unsubscribe','FETCH_MISS','/run/','url(#off-line-icon_clip0_910_343)','addHandlerCallback','EMAIL_HAS_BEEN_BOUND','NO_OTHER_CLIENTS_EDITING','handleMoveRange','getConfig','searchParams','onLocalMutation','CanceledError','startFormulaLimitUrl','_localeService','_setFormulaLimitStatus','getMergeData','next','TEXT_RANGE_LAYER_INDEX','DOC_RANGE_TYPE','debounceTime','_assignedColors','_initWindowErrorListener','SetFormulaCalculationStartMutation','SNAPSHOT_INVALID_SNAPSHOT','CHANGESET_REVISION_CONFILICT','_send','substring','map','cursorInfo','jsxs','_transformService','uni.network.url-service','mask','origin','type','name','RxDisposable','registerDependencies','_unitStatus','680076bXjpyt','INVITE_CODE_ALREADY_BOUND','getUniverSheetInstance','SessionStatus','unhandledrejection','data','collabStatus.synced','_color','RemoveRowCommandId','RefRangeService','getSheetBySheetId','Vector2','_memberService','shift','bottom','rgba(255,\x20255,\x20255,\x200.01)','YUUMI_NO_CUBOID_FOR_QUESTION','RemoteUniscriptService','off-line-icon','getRenderById','_sheetSkeletonManagerService','collabStatus.notCollab','USER_IS_ANONYMOUS','useRef','ENSURE_SNAPSHOT_EXECUTION','_refRangeService','url(#on-line-icon_clip0_910_349)','getRangePointData','syncEditingCollabCursor','TOO_MANY_REQUESTS','ColorKit','hide','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getCollabEntity$','translate(.97)','_range','selection','2054799Mszpfw','/universer-api/frontend/logs','closePath','transformStateCache','fillText','debug','drawWith','restore','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','message','UniverDocs','Success','NOT_COLLAB','_context','_initCommandExecutedListener','onPointerMove$','DocCollaborationEntity','_scheduleClearOtherTimer','backgroundColor','complete','some','IUniverInstanceService','handleIRemoveRow','findNodePositionByCharIndex','pushState','_saveCache','HTTPService','DesktopCollaborationStatusDisplayController','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','clearInterval','assign','rxjs','green.600','toStringTag','_revisionService','m1Prime','_uiPartsService','debounce','getDocRanges','UniverProCollaborationClientUi','UniverProCollaboration','_toggleOffline','displayName','UniverUi','RichTextEditingMutation','_setupBeforeClosingHandler','function','redoState','110YfRWZa','replaceDocRanges','MOBILE_HAS_BEEN_BOUND','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ITransformService','MemberService','_handleLeaveEvent','red.300','transformByState','UniverProCollaborationClient','registerBeforeClose','application/json','startsWith','_checkAndWaitForCalculationPermission','jsx','UniverDrawing','LICENSE_IMPORT_SIZE_EXCEEDED','Disposable','sheetID','ENTITLE_DUP_SUBSCRIPTION','CommandType','_updateCollabCursors','transformSelections','toString','_initUserListener','subunit','_saveTaskMap','connectInjector','saveOfflineData','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','subscribeEvent','wsSessionTicketUrl','AUTHORIZE_CODE_ILLEGAL','YUUMI_ALL_TABLES_IS_INVALID','getTypeOfUnitDisposed$','react','lineno','CollaborationSessionService','createInstance','FormulaExecutedStateType','onTransformChange$','setStateCache','getCellPositionByOffset','currentSkeleton$','defineProperty','@univerjs/docs','OTHER_CLIENT_EDITING','2120JwhQcW','getUnhiddenWorksheets','ENTITLE_COUPON_USED_UP','getActiveSheet','Workbook','sheetId','41632vaiHTh','_currentUsage','ERROR_AGAIN','[Window\x20Error]:\x20','0\x200\x2016\x2016','_initEntityListener','getAncestorScale','_docTransformIMECacheService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_cursors','getParam','@univerjs/rpc','InsertColCommandId','DocIMEInputManagerService','_docStateChangeManagerService','_removeCollabCursors','beforeCommandExecuted','show','replace','_configService','SetWorksheetActivateCommand','setParam','UnitStatus','_messageService','_docSkeleton','registerRenderModule','YUUMI_URL_COL_OUT_OF_RANGE','_backgroundColor','_transformPreviousActiveRange','_drawRectRange','blue.400','unit','saveTaskMap','unshift','stringify','_getSessionTicket','DocSelectionManagerService','selections','handleDeleteRangeMoveLeft','INVALID_INVITE_CODE','toRgbString','_name','onPointerEnter$','_checkCalculationAvailable','transformIMECache','_transformHistoryAndStateStack','subscribe','ISnapshotServerService','handleInsertCol','SYNCED','entries','_anchorDot','ENTITLE_INVALID_COUPON_CODE','setShapeProps','fromEvent','disposeUnit','APPLY_PERMISSION_DENIED','_status$','UNRECOGNIZED','getOwnPropertyDescriptor','beginPath','onMouseMove','dirtyRanges','_session','fillStyle','_init','ICommandService','_scene','Plugin','labelPosition','IDocClipboardService','addObjects','from','permission.content','requireSession','collabStatus.offline','_getScale','runId','div','UPDATE_CURSOR','EMAIL_VERIFY_CODE_MISMATCH','IRemoteInstanceService','getValue','_syncEditingCollabCursorService','unitId','width','getViewport','updateOfflineData','clsx','key','_docSyncEditingCollabCursorService','pluginName','join','_anchor','@univerjs/sheets-ui','getItem','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','evenodd','asObservable','_lastPointer','rxjs/operators','parse','code','formula.calculation.started','0\x200\x2017\x2016','useDependency','startColumn','_startCalculationLimit','_colorAssignService','getCurrentSelections','lineTo','doc.mutation.rich-text-editing','LICENSE_DISTRO_REJECTED','createIdentifier','addEventListener','black','IBeforeCloseService','SetFormulaCalculationNotificationMutation','_imageIoService','round','_handleJoinEvent','runRefRangeMutations','isTransformMutationsWithChangesetSuccess','_startDocCollabCursor','get','UniverSheetsUi','Shape','addClipboardHook','enableFrontendLog','Failed','_collaborationUIEventService','_startSheetCollabCursor','LocaleService','newValue','ALREADY_EXISTS','DATA_SOURCE_TOO_LARGE','currentTheme$','stage','_hover','useObservable','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_updateURLWithCurrentState','startRow','_localCacheService','_config','forEach','_document','currentUsage','_shapes','setItem','generateRandomId','trim','transformRemoteChangeset','purple.300','combineLatest','_handleHeartbeatEvent','white','split','YUUMI_SUBSCRIPTION_NOT_FOUND','serializeRangeWithSheet','_entityInit$','yellow.400','SheetsSelectionsService','defs','getCurrent','_ensureSubject','BehaviorSubject','amd','[RemoteUniscriptService]:\x20no\x20focused\x20unit','collab-text-range-','memberID','_notificationService','1em','catch','skeleton','bind','LOCAL_CACHE_INTERVAL_KEY','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','result','executeCommand','_drawTextRange','IMessageService','http://www.w3.org/2000/svg','handleDeleteRangeMoveUp','font','getMemberID','_monkeyPatchLogService','switchMap','UniverDesign','APPLY_REJECT','1133592fbckmr','ENTITLE_NEED_BILLING_ADDRESS','_applyCommand'];_0x1796=function(){return _0x4000cb;};return _0x1796();}(function(_0x5082e3,_0x53d6b4){const _0x285812=_0x1e97,_0x32367b=_0x5082e3();while(!![]){try{const _0x5ba9bf=-parseInt(_0x285812(0x35e))/0x1+-parseInt(_0x285812(0x36d))/0x2+-parseInt(_0x285812(0x215))/0x3+-parseInt(_0x285812(0x29f))/0x4*(parseInt(_0x285812(0x26a))/0x5)+parseInt(_0x285812(0x3d1))/0x6+parseInt(_0x285812(0x1ed))/0x7*(parseInt(_0x285812(0x299))/0x8)+parseInt(_0x285812(0x23a))/0x9;if(_0x5ba9bf===_0x53d6b4)break;else _0x32367b['push'](_0x32367b['shift']());}catch(_0x15e089){_0x32367b['push'](_0x32367b['shift']());}}}(_0x1796,0xace64),function(_0x4ac64d,_0x3fa0f4){const _0x1ebeb7=_0x1e97;typeof exports==_0x1ebeb7(0x36c)&&typeof module<'u'?_0x3fa0f4(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x1ebeb7(0x268)&&define[_0x1ebeb7(0x347)]?define([_0x1ebeb7(0x12c),'react/jsx-runtime','@univerjs-pro/collaboration-client',_0x1ebeb7(0x190),_0x1ebeb7(0x1cf),_0x1ebeb7(0x259),_0x1ebeb7(0x36e),_0x1ebeb7(0x28d),_0x1ebeb7(0x2ab),_0x1ebeb7(0x3ae),'@univerjs/engine-render',_0x1ebeb7(0x39a),_0x1ebeb7(0x1c2),_0x1ebeb7(0x398),_0x1ebeb7(0x110),_0x1ebeb7(0x297),_0x1ebeb7(0xec),_0x1ebeb7(0x304),_0x1ebeb7(0x2fe)],_0x3fa0f4):(_0x4ac64d=typeof globalThis<'u'?globalThis:_0x4ac64d||self,_0x3fa0f4(_0x4ac64d[_0x1ebeb7(0x261)]={},_0x4ac64d['React'],_0x4ac64d[_0x1ebeb7(0x273)],_0x4ac64d['UniverCore'],_0x4ac64d[_0x1ebeb7(0x265)],_0x4ac64d[_0x1ebeb7(0x259)],_0x4ac64d[_0x1ebeb7(0x35c)],_0x4ac64d['React'],_0x4ac64d[_0x1ebeb7(0xf4)],_0x4ac64d[_0x1ebeb7(0x11f)],_0x4ac64d[_0x1ebeb7(0x129)],_0x4ac64d[_0x1ebeb7(0x17c)],_0x4ac64d[_0x1ebeb7(0xea)],_0x4ac64d[_0x1ebeb7(0x279)],_0x4ac64d[_0x1ebeb7(0x262)],_0x4ac64d[_0x1ebeb7(0x244)],_0x4ac64d[_0x1ebeb7(0x1c8)],_0x4ac64d['rxjs'][_0x1ebeb7(0x159)],_0x4ac64d[_0x1ebeb7(0x31d)]));}(this,function(_0x42b8f3,_0x36c173,_0x115633,_0x5721e1,_0xa1d841,_0x3c46fe,_0x31d403,_0x2f3b23,_0x2abba2,_0x52d373,_0x585793,_0x45e398,_0x45f825,_0x36f61a,_0x195720,_0x9d8fba,_0x26196d,_0x3951af,_0x131e0d){'use strict';const _0x3db800=_0x1e97;var _0x1b06f4=Object['defineProperty'],_0x53c8bc=(_0x2dd5c6,_0x2c698d,_0x1ccce8)=>_0x2c698d in _0x2dd5c6?_0x1b06f4(_0x2dd5c6,_0x2c698d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ccce8}):_0x2dd5c6[_0x2c698d]=_0x1ccce8,_0x11fc09=(_0x1c238c,_0x1047d5,_0x3846b8)=>_0x53c8bc(_0x1c238c,typeof _0x1047d5!=_0x3db800(0x1cd)?_0x1047d5+'':_0x1047d5,_0x3846b8);function _0x53852e({ref:_0x5a622c,..._0x254239}){const _0x4864c5=_0x3db800,{icon:_0x4d3409,id:_0x4baf37,className:_0x4b08df,extend:_0x431025,..._0x4dea7a}=_0x254239,_0x2bd6ea=(_0x4864c5(0x3ad)+_0x4baf37+'\x20'+(_0x4b08df||''))[_0x4864c5(0x337)](),_0x177064=_0x2f3b23[_0x4864c5(0x22c)]('_'+_0x178212());return _0x5a6ff2(_0x4d3409,''+_0x4baf37,{'defIds':_0x4d3409['defIds'],'idSuffix':_0x177064['current']},{'ref':_0x5a622c,'className':_0x2bd6ea,..._0x4dea7a},_0x431025);}function _0x5a6ff2(_0x21ac2b,_0xde4061,_0xf9ad22,_0x3c1ef3,_0x352370){const _0x1e4ee5=_0x3db800;return _0x2f3b23[_0x1e4ee5(0x37f)](_0x21ac2b[_0x1e4ee5(0x3d3)],{'key':_0xde4061,..._0x55e06a(_0x21ac2b,_0xf9ad22,_0x352370),..._0x3c1ef3},(_0x3862dd(_0x21ac2b,_0xf9ad22)[_0x1e4ee5(0xe8)]||[])[_0x1e4ee5(0x209)]((_0x894fa1,_0x474f9d)=>_0x5a6ff2(_0x894fa1,_0xde4061+'-'+_0x21ac2b['tag']+'-'+_0x474f9d,_0xf9ad22,void 0x0,_0x352370)));}function _0x55e06a(_0x35594d,_0x4efa96,_0x22fc24){const _0x1af7fa=_0x3db800,_0x376c0b={..._0x35594d[_0x1af7fa(0xef)]};_0x22fc24!=null&&_0x22fc24['colorChannel1']&&_0x376c0b[_0x1af7fa(0x147)]===_0x1af7fa(0x1c4)&&(_0x376c0b[_0x1af7fa(0x147)]=_0x22fc24[_0x1af7fa(0x1c4)]),_0x35594d[_0x1af7fa(0x3d3)]==='mask'&&_0x376c0b['id']&&(_0x376c0b['id']=_0x376c0b['id']+_0x4efa96[_0x1af7fa(0x38b)]),Object[_0x1af7fa(0x2d2)](_0x376c0b)['forEach'](([_0x28cebb,_0x4fd706])=>{const _0x2a7cba=_0x1af7fa;_0x28cebb===_0x2a7cba(0x20e)&&typeof _0x4fd706==_0x2a7cba(0x11c)&&(_0x376c0b[_0x28cebb]=_0x4fd706[_0x2a7cba(0x2b2)](/url\(#(.*)\)/,_0x2a7cba(0x376)+_0x4efa96['idSuffix']+')'));});const {defIds:_0x77e525}=_0x4efa96;return!_0x77e525||_0x77e525['length']===0x0||(_0x35594d[_0x1af7fa(0x3d3)]===_0x1af7fa(0xd5)&&_0x376c0b[_0x1af7fa(0x365)]&&(_0x376c0b[_0x1af7fa(0x365)]=_0x376c0b[_0x1af7fa(0x365)]+_0x4efa96[_0x1af7fa(0x38b)]),Object[_0x1af7fa(0x2d2)](_0x376c0b)[_0x1af7fa(0x331)](([_0x4fd073,_0x2127de])=>{const _0x30546b=_0x1af7fa;typeof _0x2127de=='string'&&(_0x376c0b[_0x4fd073]=_0x2127de[_0x30546b(0x2b2)](/url\(#(.*)\)/,'url(#$1'+_0x4efa96['idSuffix']+')'));})),_0x376c0b;}function _0x3862dd(_0x10a768,_0x5cbc68){const _0x1ee966=_0x3db800;var _0x787224;const {defIds:_0x4fbecb}=_0x5cbc68;return!_0x4fbecb||_0x4fbecb[_0x1ee966(0x165)]===0x0?_0x10a768:_0x10a768['tag']===_0x1ee966(0x343)&&((_0x787224=_0x10a768['children'])!=null&&_0x787224['length'])?{..._0x10a768,'children':_0x10a768[_0x1ee966(0xe8)]['map'](_0xa2952e=>typeof _0xa2952e[_0x1ee966(0xef)]['id']==_0x1ee966(0x11c)&&_0x4fbecb&&_0x4fbecb['includes'](_0xa2952e[_0x1ee966(0xef)]['id'])?{..._0xa2952e,'attrs':{..._0xa2952e[_0x1ee966(0xef)],'id':_0xa2952e[_0x1ee966(0xef)]['id']+_0x5cbc68[_0x1ee966(0x38b)]}}:_0xa2952e)}:_0x10a768;}function _0x178212(){const _0x19ae3e=_0x3db800;return Math['random']()[_0x19ae3e(0x281)](0x24)[_0x19ae3e(0x208)](0x2,0x8);}_0x53852e[_0x3db800(0x264)]=_0x3db800(0x1b7);const _0x11986a={'tag':_0x3db800(0x38d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3db800(0x2a3),'width':'1em','height':_0x3db800(0x34c)},'children':[{'tag':'g','attrs':{'clipPath':_0x3db800(0x1f1)},'children':[{'tag':_0x3db800(0x39c),'attrs':{'stroke':_0x3db800(0x102),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3db800(0x317),'strokeLinejoin':_0x3db800(0x317),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3db800(0x384)},'children':[{'tag':_0x3db800(0x39c),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3db800(0x384)]},_0x1855f4=_0x2f3b23[_0x3db800(0x16e)](function(_0x4ad28d,_0x1854cb){const _0x4e5cc6=_0x3db800;return _0x2f3b23['createElement'](_0x53852e,Object['assign']({},_0x4ad28d,{'id':_0x4e5cc6(0x227),'ref':_0x1854cb,'icon':_0x11986a}));});_0x1855f4[_0x3db800(0x264)]=_0x3db800(0x1ae);const _0x689c8a={'tag':_0x3db800(0x38d),'attrs':{'xmlns':_0x3db800(0x356),'fill':_0x3db800(0x13b),'viewBox':_0x3db800(0x308),'width':_0x3db800(0x34c),'height':_0x3db800(0x34c)},'children':[{'tag':'g','attrs':{'clipPath':_0x3db800(0x22f)},'children':[{'tag':_0x3db800(0x39c),'attrs':{'stroke':_0x3db800(0x102),'d':_0x3db800(0x242),'strokeLinecap':_0x3db800(0x317),'strokeLinejoin':_0x3db800(0x317),'strokeWidth':1.2}}]},{'tag':_0x3db800(0x343),'attrs':{},'children':[{'tag':_0x3db800(0x3a3),'attrs':{'id':_0x3db800(0x19a)},'children':[{'tag':_0x3db800(0x39c),'attrs':{'fill':_0x3db800(0x33c),'d':_0x3db800(0xfa),'transform':_0x3db800(0x237)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x544b9b=_0x2f3b23['forwardRef'](function(_0x514393,_0x562375){const _0x21003b=_0x3db800;return _0x2f3b23[_0x21003b(0x37f)](_0x53852e,Object[_0x21003b(0x258)]({},_0x514393,{'id':'on-line-icon','ref':_0x562375,'icon':_0x689c8a}));});_0x544b9b[_0x3db800(0x264)]='OnLineIcon';function _0x4a053d(_0x15b61d){const _0xde42a5=_0x3db800;switch(_0x15b61d){case _0x115633[_0xde42a5(0x36f)][_0xde42a5(0x11a)]:return _0xde42a5(0x2eb);case _0x115633[_0xde42a5(0x36f)][_0xde42a5(0x1c9)]:return _0xde42a5(0x12f);case _0x115633[_0xde42a5(0x36f)][_0xde42a5(0x1ef)]:return _0xde42a5(0x120);case _0x115633[_0xde42a5(0x36f)][_0xde42a5(0x246)]:return _0xde42a5(0x22a);case _0x115633[_0xde42a5(0x36f)]['AWAITING']:case _0x115633[_0xde42a5(0x36f)][_0xde42a5(0xd0)]:return'collabStatus.syncing';case _0x115633['CollaborationStatus'][_0xde42a5(0x2d1)]:case _0x115633['CollaborationStatus'][_0xde42a5(0xdd)]:return _0xde42a5(0x21b);}}function _0x3aa57c(_0x24bc59){const _0x40bfa2=_0x3db800,{status$:_0x237a0a}=_0x24bc59,_0x42f0d8=_0xa1d841[_0x40bfa2(0x32b)](_0x237a0a,_0x115633[_0x40bfa2(0x36f)][_0x40bfa2(0x246)]),_0x390864=_0xa1d841['useDependency'](_0x5721e1[_0x40bfa2(0x324)]),_0x37bce8=_0xa1d841[_0x40bfa2(0x309)](_0x115633['CollaborationSessionService']),_0xa345d4=_0x42f0d8!==_0x115633[_0x40bfa2(0x36f)][_0x40bfa2(0x11a)],_0x3eaa8c=_0x390864['t'](_0x4a053d(_0x42f0d8)),_0x502f4e=_0xa345d4?_0x36c173['jsx'](_0x544b9b,{}):_0x36c173['jsx'](_0x1855f4,{}),_0xd37df7=_0x2f3b23[_0x40bfa2(0x391)](()=>{_0xa345d4||_0x37bce8['reconnect']();},[_0xa345d4,_0x37bce8]);function _0x48bb28(){const _0x528c3f=_0x40bfa2;return _0x36c173[_0x528c3f(0x20b)](_0x528c3f(0x2ee),{'className':_0x528c3f(0x1b3),'onClick':_0xd37df7,'children':[_0x36c173['jsx'](_0x528c3f(0x2ee),{'className':_0x31d403[_0x528c3f(0x2f8)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0xa345d4,'univer-text-red-500':!_0xa345d4}),'children':_0x502f4e}),_0x36c173['jsx'](_0x528c3f(0x2ee),{'className':_0x528c3f(0x383),'children':_0x3eaa8c})]});}return _0xa345d4?_0x48bb28():_0x36c173[_0x40bfa2(0x278)](_0x31d403['Tooltip'],{'title':_0x390864['t']('collab-client.tooltip.reconnect'),'children':_0x48bb28()});}var _0x196195=Object['getOwnPropertyDescriptor'],_0x23b43a=(_0x420d27,_0x386441,_0x4d794f,_0x358b3d)=>{for(var _0x17a068=_0x358b3d>0x1?void 0x0:_0x358b3d?_0x196195(_0x386441,_0x4d794f):_0x386441,_0xa3e734=_0x420d27['length']-0x1,_0x10b6e5;_0xa3e734>=0x0;_0xa3e734--)(_0x10b6e5=_0x420d27[_0xa3e734])&&(_0x17a068=_0x10b6e5(_0x17a068)||_0x17a068);return _0x17a068;},_0x388c8e=(_0x2e7108,_0x536862)=>(_0x5a4799,_0x20faf9)=>_0x536862(_0x5a4799,_0x20faf9,_0x2e7108);_0x42b8f3[_0x3db800(0x255)]=class extends _0x5721e1[_0x3db800(0x27b)]{constructor(_0x5b560a,_0x5985f2,_0x464340,_0x490cd7){const _0xeaa123=_0x3db800;super(),_0x11fc09(this,_0xeaa123(0x2d9),new _0x3c46fe[(_0xeaa123(0x346))](_0x115633[_0xeaa123(0x36f)][_0xeaa123(0x246)])),(this[_0xeaa123(0x122)]=_0x5b560a,this[_0xeaa123(0xed)]=_0x5985f2,this['_collaborationController']=_0x464340,this[_0xeaa123(0x25e)]=_0x490cd7,this[_0xeaa123(0x14d)](),this[_0xeaa123(0x39d)]());}[_0x3db800(0x39d)](){const _0x275499=_0x3db800;this[_0x275499(0x168)](this[_0x275499(0x122)][_0x275499(0x3b0)][_0x275499(0x138)](_0x3c46fe[_0x275499(0x35b)](()=>{const _0x40327c=_0x275499,_0x12fe20=this[_0x40327c(0x122)]['getFocusedUnit']();return _0x12fe20?this['_collaborationController'][_0x40327c(0x236)](_0x12fe20[_0x40327c(0x38a)]()):_0x3c46fe['of'](null);}),_0x3c46fe[_0x275499(0x35b)](_0x4a3133=>_0x4a3133?_0x4a3133[_0x275499(0x141)]:_0x3c46fe['of'](_0x115633[_0x275499(0x36f)][_0x275499(0x246)])))['subscribe'](_0x4bcd45=>{const _0x462406=_0x275499;this[_0x462406(0x2d9)][_0x462406(0x1fe)](_0x4bcd45);}));}[_0x3db800(0x14d)](){const _0x2cec2b=_0x3db800;this[_0x2cec2b(0x168)](this[_0x2cec2b(0x25e)][_0x2cec2b(0x1d9)](_0xa1d841[_0x2cec2b(0x14f)]['HEADER_MENU'],()=>_0xa1d841[_0x2cec2b(0x285)](_0x1f300e({'status$':this[_0x2cec2b(0x2d9)][_0x2cec2b(0x302)]()}),this[_0x2cec2b(0xed)])));}},_0x42b8f3[_0x3db800(0x255)]=_0x23b43a([_0x388c8e(0x0,_0x5721e1['IUniverInstanceService']),_0x388c8e(0x1,_0x5721e1[_0x3db800(0x181)](_0x5721e1['Injector'])),_0x388c8e(0x2,_0x5721e1[_0x3db800(0x181)](_0x115633[_0x3db800(0x19b)])),_0x388c8e(0x3,_0xa1d841['IUIPartsService'])],_0x42b8f3[_0x3db800(0x255)]);function _0x1f300e(_0x29395a){const {status$:_0x1a84c0}=_0x29395a;return function(){const _0x3b40c7=_0x1e97;return _0x36c173[_0x3b40c7(0x278)](_0x3aa57c,{'status$':_0x1a84c0});};}const _0x4a64fb=_0x5721e1[_0x3db800(0x311)](_0x3db800(0x20d));var _0x216a13=Object[_0x3db800(0x2db)],_0x23d8c4=(_0x436ea3,_0x4e28f2,_0x3a6432,_0x2c680c)=>{for(var _0x3ae693=_0x2c680c>0x1?void 0x0:_0x2c680c?_0x216a13(_0x4e28f2,_0x3a6432):_0x4e28f2,_0x3067e4=_0x436ea3['length']-0x1,_0x1ce6d9;_0x3067e4>=0x0;_0x3067e4--)(_0x1ce6d9=_0x436ea3[_0x3067e4])&&(_0x3ae693=_0x1ce6d9(_0x3ae693)||_0x3ae693);return _0x3ae693;},_0x21170e=(_0x623d9,_0x17bbed)=>(_0x5b8b80,_0x353416)=>_0x17bbed(_0x5b8b80,_0x353416,_0x623d9);_0x42b8f3['CollaborationDataLoaderController']=class extends _0x5721e1[_0x3db800(0x212)]{constructor(_0x1577da,_0x2e8de7,_0x239609,_0x424cea,_0x516f02){const _0x5bc516=_0x3db800;super(),this['_urlService']=_0x1577da,this[_0x5bc516(0x3b1)]=_0x2e8de7,this[_0x5bc516(0x3a0)]=_0x239609,this['_dataLoaderService']=_0x424cea,_0x516f02?_0x516f02==null||_0x516f02[_0x5bc516(0x164)]()[_0x5bc516(0x1d6)](()=>this['_init']()):(this[_0x5bc516(0x3b1)][_0x5bc516(0x23f)](_0x5bc516(0x152),_0x5bc516(0x287)),this[_0x5bc516(0x2e1)]());}async['_init'](){const _0x229856=_0x3db800,_0x184361=this[_0x229856(0x198)][_0x229856(0x2aa)](_0x229856(0x2bf)),_0x326ebd=this['_urlService']['getParam'](_0x229856(0x210)),_0x25f61e=this[_0x229856(0x198)][_0x229856(0x2aa)](_0x229856(0x283));if(!_0x184361||!_0x326ebd){this[_0x229856(0x3b1)][_0x229856(0x23f)](_0x229856(0x152),_0x229856(0x32c));return;}const _0x192b0a=await this[_0x229856(0xfc)][_0x229856(0x1b1)](_0x184361,Number(_0x326ebd),_0x25f61e);_0x192b0a&&_0x192b0a instanceof _0x5721e1[_0x229856(0x29d)]&&this[_0x229856(0x15b)](_0x192b0a);}async[_0x3db800(0x15b)](_0x5c1dc4){const _0x1493c1=_0x3db800;await this['_updateSubUnitFromURLParams'](_0x5c1dc4),_0x5c1dc4['activeSheet$']['pipe'](_0x3c46fe[_0x1493c1(0x3cd)](this[_0x1493c1(0x364)]))['subscribe'](_0x1d7b59=>{const _0x2e0bd9=_0x1493c1;_0x1d7b59&&this[_0x2e0bd9(0x32d)](_0x1d7b59);}),this[_0x1493c1(0x198)]['urlChange$'][_0x1493c1(0x138)](_0x3c46fe[_0x1493c1(0x3cd)](this[_0x1493c1(0x364)]))[_0x1493c1(0x2ce)](()=>this[_0x1493c1(0x1d1)](_0x5c1dc4));}[_0x3db800(0x32d)](_0x229408,_0x374f92=!0x1){const _0x3ab46e=_0x3db800,_0x30208d=this[_0x3ab46e(0x198)][_0x3ab46e(0x2aa)](_0x3ab46e(0x283));_0x229408[_0x3ab46e(0x161)]()!==_0x30208d&&this[_0x3ab46e(0x198)][_0x3ab46e(0x2b5)](_0x3ab46e(0x283),_0x229408[_0x3ab46e(0x161)](),_0x374f92);}async[_0x3db800(0x1d1)](_0x3cd83f){const _0x13aa18=_0x3db800;var _0x14ad3a;const _0x20d5f7=this[_0x13aa18(0x198)]['getParam'](_0x13aa18(0x283));if(!_0x20d5f7||!_0x3cd83f[_0x13aa18(0x21f)](_0x20d5f7)){const _0xea92b5=_0x3cd83f[_0x13aa18(0x29a)]()[0x0],_0x5c057c=_0x3cd83f[_0x13aa18(0x21f)](_0xea92b5);if(!_0x5c057c)return;this[_0x13aa18(0x32d)](_0x5c057c,!0x0),await this[_0x13aa18(0x3a0)][_0x13aa18(0x353)](_0x52d373[_0x13aa18(0x2b4)]['id'],{'unitId':_0x3cd83f[_0x13aa18(0x38a)](),'subUnitId':_0xea92b5});return;}((_0x14ad3a=_0x3cd83f[_0x13aa18(0x29c)]())==null?void 0x0:_0x14ad3a['getSheetId']())!==_0x20d5f7&&await this[_0x13aa18(0x3a0)][_0x13aa18(0x353)](_0x52d373[_0x13aa18(0x2b4)]['id'],{'unitId':_0x3cd83f[_0x13aa18(0x38a)](),'subUnitId':_0x20d5f7});}},_0x42b8f3[_0x3db800(0x362)]=_0x23d8c4([_0x21170e(0x0,_0x4a64fb),_0x21170e(0x1,_0x5721e1[_0x3db800(0x154)]),_0x21170e(0x2,_0x5721e1[_0x3db800(0x2e2)]),_0x21170e(0x3,_0x5721e1[_0x3db800(0x181)](_0x115633[_0x3db800(0x378)])),_0x21170e(0x4,_0x5721e1[_0x3db800(0x3c8)](_0x2abba2[_0x3db800(0x2f1)]))],_0x42b8f3[_0x3db800(0x362)]);var _0x2c3c88=Object[_0x3db800(0x2db)],_0xc78629=(_0xc796a8,_0x48da8a,_0x4345a4,_0x5ad260)=>{const _0x26483a=_0x3db800;for(var _0x1ad83d=_0x5ad260>0x1?void 0x0:_0x5ad260?_0x2c3c88(_0x48da8a,_0x4345a4):_0x48da8a,_0x2a63e2=_0xc796a8[_0x26483a(0x165)]-0x1,_0x26bf2b;_0x2a63e2>=0x0;_0x2a63e2--)(_0x26bf2b=_0xc796a8[_0x2a63e2])&&(_0x1ad83d=_0x26bf2b(_0x1ad83d)||_0x1ad83d);return _0x1ad83d;},_0x5ee442=(_0x5abc60,_0x28152d)=>(_0x28e680,_0x1568e2)=>_0x28152d(_0x28e680,_0x1568e2,_0x5abc60);let _0x3ae7cf=class extends _0x5721e1[_0x3db800(0x212)]{constructor(_0x3b8bb9,_0x474b3a){const _0x17cf58=_0x3db800;super(),this['_docClipboardService']=_0x3b8bb9,this[_0x17cf58(0x316)]=_0x474b3a,this[_0x17cf58(0x2e1)]();}[_0x3db800(0x2e1)](){const _0x504bf4=_0x3db800,_0x401b0b=this;this[_0x504bf4(0x168)](this[_0x504bf4(0x108)][_0x504bf4(0x31f)]({'onBeforePasteImage':async _0x3c497e=>{const _0x3249dd=_0x504bf4,_0x529058=await _0x401b0b[_0x3249dd(0x316)][_0x3249dd(0x1a2)](_0x3c497e);return _0x529058?{'source':_0x529058[_0x3249dd(0x370)],'imageSourceType':_0x529058[_0x3249dd(0x368)]}:null;}}));}};_0x3ae7cf=_0xc78629([_0x5ee442(0x0,_0x45f825[_0x3db800(0x2e6)]),_0x5ee442(0x1,_0x36f61a[_0x3db800(0x151)])],_0x3ae7cf);const _0x50ff74=[_0x3db800(0x339),'jiqing.500',_0x3db800(0x25a),_0x3db800(0x271),_0x3db800(0x2be),_0x3db800(0x341)];class _0x2ab1f4 extends _0x5721e1['Disposable']{constructor(){const _0x231fbb=_0x3db800;super(...arguments),_0x11fc09(this,'_assignedColors',new Map()),_0x11fc09(this,_0x231fbb(0x3aa),0x0);}['assignAColorForMemberID'](_0x431b1a){const _0x168df5=_0x3db800;if(this[_0x168df5(0x202)][_0x168df5(0x101)](_0x431b1a))return this[_0x168df5(0x202)][_0x168df5(0x31c)](_0x431b1a);const _0x1aeba8=_0x50ff74[this[_0x168df5(0x3aa)]];return this[_0x168df5(0x3aa)]=(this[_0x168df5(0x3aa)]+0x1)%_0x50ff74[_0x168df5(0x165)],this[_0x168df5(0x202)][_0x168df5(0x10c)](_0x431b1a,_0x1aeba8),_0x1aeba8;}}function _0x20d37b(_0x300053){const _0x40095b=_0x3db800;let _0x367e2b='';for(const _0xd89894 of _0x300053){const {startOffset:_0x1ba17e,endOffset:_0x271dbf,isActive:_0x378116,rangeType:_0x391da7,segmentId:_0x595f5e,segmentPage:_0x3062bc}=_0xd89894;_0x367e2b[_0x40095b(0x165)]&&(_0x367e2b+=','),_0x367e2b+=_0x1ba17e+':'+_0x271dbf+':'+(_0x378116?'1':'0')+':'+_0x391da7+':'+_0x595f5e+':'+_0x3062bc;}return _0x367e2b;}function _0x347a9b(_0x15bd58){const _0xb6acd7=_0x3db800,_0x2bf27a=_0x15bd58[_0xb6acd7(0x33d)](','),_0x2bf429=[];for(const _0x6504cc of _0x2bf27a){const [_0x12e156,_0xb3f59,_0x11bd95,_0x24632c,_0x2b706a,_0x256dcd]=_0x6504cc[_0xb6acd7(0x33d)](':');_0x2bf429[_0xb6acd7(0x126)]({'startOffset':Number(_0x12e156),'endOffset':Number(_0xb3f59),'collapsed':_0x12e156===_0xb3f59,'isActive':_0x11bd95==='1','rangeType':_0x24632c===_0x5721e1[_0xb6acd7(0x200)][_0xb6acd7(0x3cf)]?_0x5721e1[_0xb6acd7(0x200)]['TEXT']:_0x5721e1[_0xb6acd7(0x200)][_0xb6acd7(0x123)],'segmentId':typeof _0x2b706a==_0xb6acd7(0x11c)?String(_0x2b706a):'','segmentPage':Number(_0x256dcd!=null?_0x256dcd:-0x1)});}return _0x2bf429[_0xb6acd7(0x24e)](_0x32e51c=>_0x32e51c['isActive'])||(_0x2bf429[0x0]['isActive']=!0x0),_0x2bf429;}class _0x41a578 extends _0x5721e1['RxDisposable']{constructor(){const _0x49227b=_0x3db800;super(...arguments),_0x11fc09(this,_0x49227b(0x187),new _0x3c46fe[(_0x49227b(0x346))](null)),_0x11fc09(this,_0x49227b(0x150),this[_0x49227b(0x187)]['asObservable']());}[_0x3db800(0x231)](_0x5e83e3){const _0x39fd30=_0x3db800,{unitID:_0xb66b53,memberID:_0x489582,textRanges:_0x4aa8d0}=_0x5e83e3,_0x47aeaf=_0x20d37b(_0x4aa8d0);if(_0x47aeaf==='')return;const _0x59bdc0={'unitID':_0xb66b53,'memberID':_0x489582,'selection':_0x47aeaf};this[_0x39fd30(0x187)][_0x39fd30(0x1fe)](_0x59bdc0);}}var _0x20d8c6=Object[_0x3db800(0x2db)],_0x4dd272=(_0x279e49,_0x5e9209,_0x3b89e6,_0x5900a5)=>{const _0x2653b0=_0x3db800;for(var _0x36d70e=_0x5900a5>0x1?void 0x0:_0x5900a5?_0x20d8c6(_0x5e9209,_0x3b89e6):_0x5e9209,_0x1de32e=_0x279e49[_0x2653b0(0x165)]-0x1,_0x53b543;_0x1de32e>=0x0;_0x1de32e--)(_0x53b543=_0x279e49[_0x1de32e])&&(_0x36d70e=_0x53b543(_0x36d70e)||_0x36d70e);return _0x36d70e;},_0x1da84f=(_0x1a8ded,_0x25f24f)=>(_0x29a0e8,_0x37c431)=>_0x25f24f(_0x29a0e8,_0x37c431,_0x1a8ded);const _0x2712e3=0x12c,_0x4d5815=0x64;let _0x17b314=class extends _0x5721e1[_0x3db800(0x212)]{constructor(_0x1dbc43,_0x520d0e,_0x19c591,_0x3dca9b,_0x40f48d,_0x440676,_0x3e4663,_0x1bf068,_0x53bbde){const _0x2a9e7f=_0x3db800;super(),_0x11fc09(this,'_online',!0x1),_0x11fc09(this,_0x2a9e7f(0x2e1),!0x1),_0x11fc09(this,_0x2a9e7f(0xd9),new _0x3c46fe['BehaviorSubject'](new Map())),_0x11fc09(this,_0x2a9e7f(0x127),this[_0x2a9e7f(0xd9)][_0x2a9e7f(0x302)]()),_0x11fc09(this,_0x2a9e7f(0x399),new _0x3c46fe[(_0x2a9e7f(0x346))]([])),_0x11fc09(this,_0x2a9e7f(0x385),this[_0x2a9e7f(0x399)][_0x2a9e7f(0x138)](_0x3c46fe['debounceTime'](_0x2712e3))),_0x11fc09(this,'_updateLocalCursor',_0x5721e1[_0x2a9e7f(0x25f)](_0x59a847=>{const _0x4f424c=_0x2a9e7f,_0x5a4566={'eventID':_0x195720[_0x4f424c(0x162)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x4f424c(0x153)],'memberID':this[_0x4f424c(0x2df)][_0x4f424c(0x359)](),'selection':_0x20d37b(_0x59a847)}};this[_0x4f424c(0x2df)][_0x4f424c(0x1e5)](_0x5a4566,this[_0x4f424c(0x153)]);},_0x4d5815)),(this['unitID']=_0x1dbc43,this[_0x2a9e7f(0x2df)]=_0x520d0e,this['_injector']=_0x19c591,this[_0x2a9e7f(0x30c)]=_0x3dca9b,this['_memberService']=_0x40f48d,this[_0x2a9e7f(0x2f3)]=_0x440676,this[_0x2a9e7f(0x20c)]=_0x3e4663,this[_0x2a9e7f(0x122)]=_0x1bf068,this[_0x2a9e7f(0x3a0)]=_0x53bbde);}get['cursorInfo'](){const _0x5803ea=_0x3db800;return this[_0x5803ea(0xd9)]['getValue']();}get['roomMembers'](){const _0x370e00=_0x3db800;return this[_0x370e00(0x399)]['getValue']();}[_0x3db800(0x37d)](){const _0x25613b=_0x3db800;super[_0x25613b(0x37d)](),this[_0x25613b(0xd9)][_0x25613b(0x1fe)](new Map()),this['_cursorInfo$'][_0x25613b(0x24d)](),this[_0x25613b(0x399)][_0x25613b(0x1fe)]([]),this[_0x25613b(0x399)]['complete']();}['init'](){const _0x59c0c9=_0x3db800;this[_0x59c0c9(0x2e1)]||(this['_init']=!0x0,this[_0x59c0c9(0x2df)]['sessionStatus$'][_0x59c0c9(0x138)](_0x3c46fe[_0x59c0c9(0x3cd)](this['dispose$']))[_0x59c0c9(0x2ce)](_0x149b37=>{const _0x38a2cf=_0x59c0c9;_0x149b37===_0x115633[_0x38a2cf(0x218)][_0x38a2cf(0x38c)]?this[_0x38a2cf(0x390)]():this[_0x38a2cf(0x263)]();}),this[_0x59c0c9(0x2df)][_0x59c0c9(0x16f)][_0x59c0c9(0x138)](_0x3c46fe[_0x59c0c9(0x3cd)](this[_0x59c0c9(0x364)]))['subscribe'](_0x5a7766=>{const _0x5a32ad=_0x59c0c9,_0x5d6f46=_0x5a7766[_0x5a32ad(0x3a2)];_0x5d6f46===_0x195720[_0x5a32ad(0x162)][_0x5a32ad(0x2ef)]&&this[_0x5a32ad(0x3c1)](_0x5a7766),_0x5d6f46===_0x195720[_0x5a32ad(0x162)]['USERS_LEAVE']&&this[_0x5a32ad(0x3b6)](_0x5a7766);}),this['disposeWithMe'](this['_commandService'][_0x59c0c9(0x10b)](_0xd377e7=>{const _0x289969=_0x59c0c9,_0x574eff=_0xd377e7[_0x289969(0x1bb)];_0x574eff!=null&&this[_0x289969(0x1e9)]&&_0xd377e7['id']===_0x9d8fba[_0x289969(0x37e)]['id']&&_0x574eff[_0x289969(0x2f4)]===this[_0x289969(0x153)]&&_0x574eff[_0x289969(0x135)]===!0x1&&_0x574eff['ranges']['length']>0x0&&this[_0x289969(0x1e7)](_0x574eff[_0x289969(0x3b4)]);})),this[_0x59c0c9(0x2f3)][_0x59c0c9(0x150)][_0x59c0c9(0x138)](_0x3c46fe['takeUntil'](this[_0x59c0c9(0x364)]))['subscribe'](_0x3fa278=>{const _0x4d9805=_0x59c0c9;if((_0x3fa278==null?void 0x0:_0x3fa278[_0x4d9805(0x153)])!==this[_0x4d9805(0x153)])return;const _0x2899d5={'eventID':_0x195720[_0x4d9805(0x162)][_0x4d9805(0x2ef)],'data':_0x3fa278};this[_0x4d9805(0x3c1)](_0x2899d5);}),this[_0x59c0c9(0x168)](this['_commandService'][_0x59c0c9(0x10b)](_0x2a5c5b=>{const _0x275ad4=_0x59c0c9;if(_0x2a5c5b['params']==null)return;const _0x35d9c1=_0x2a5c5b[_0x275ad4(0x1bb)];if(_0x2a5c5b['id']!==_0x9d8fba[_0x275ad4(0x266)]['id']||_0x35d9c1[_0x275ad4(0x2f4)]!==this[_0x275ad4(0x153)])return;const _0x14ef4e={'id':_0x275ad4(0x30f),'params':_0x35d9c1},_0x4c13d1=this[_0x275ad4(0x20a)];for(const [_0x82c31f,_0xcd60a3]of _0x4c13d1){const _0x25ab41={'id':_0x275ad4(0x30f),'params':{'unitId':this[_0x275ad4(0x153)],'actions':null,'textRanges':_0xcd60a3[_0x275ad4(0x3b4)]}},_0x2a45a4=this[_0x275ad4(0x20c)]['transformMutation'](_0x14ef4e,_0x25ab41,!0x1);if(_0x195720['isTransformMutationFailure'](_0x2a45a4))throw _0x2a45a4['error'];_0x4c13d1['set'](_0x82c31f,{..._0xcd60a3,'ranges':_0x2a45a4[_0x275ad4(0x3b8)]['params'][_0x275ad4(0x12d)]});}queueMicrotask(()=>{const _0x312981=_0x275ad4;this[_0x312981(0xd9)][_0x312981(0x1fe)](_0x4c13d1);});})));}[_0x3db800(0x3c1)](_0x292520){const _0x1b300e=_0x3db800;var _0x1f92fa,_0x31eed0;const {memberID:_0x2b7e8f,selection:_0x42d366}=_0x292520[_0x1b300e(0x21a)],_0x943610=_0x347a9b(_0x42d366),_0x4bcfdb=(_0x31eed0=(_0x1f92fa=this[_0x1b300e(0x221)]['getMember'](this[_0x1b300e(0x153)],_0x2b7e8f))==null?void 0x0:_0x1f92fa[_0x1b300e(0x211)])!=null?_0x31eed0:_0x1b300e(0x388),_0x5db8d6={'color':this['_colorAssignService'][_0x1b300e(0x38e)](_0x2b7e8f),'name':_0x4bcfdb,'ranges':_0x943610},_0x3e4485=this[_0x1b300e(0x20a)];_0x3e4485[_0x1b300e(0x10c)](_0x2b7e8f,_0x5db8d6),this[_0x1b300e(0xd9)][_0x1b300e(0x1fe)](_0x3e4485);}[_0x3db800(0x3b6)](_0x1f7056){const _0x38347e=_0x3db800,{memberID:_0x4472cd}=_0x1f7056['data'],_0x4356f0=this['cursorInfo'];_0x4356f0[_0x38347e(0xd6)](_0x4472cd),this[_0x38347e(0xd9)][_0x38347e(0x1fe)](_0x4356f0);}[_0x3db800(0x390)](){const _0x64bec9=_0x3db800;var _0x10ece4;if(this[_0x64bec9(0x1e9)]=!0x0,((_0x10ece4=this['_univerInstanceService'][_0x64bec9(0x36b)]())==null?void 0x0:_0x10ece4['getUnitId']())!==this['unitID'])return;const _0x12000a=this[_0x64bec9(0xed)][_0x64bec9(0x31c)](_0x9d8fba['DocSelectionManagerService'])[_0x64bec9(0x260)]();Array[_0x64bec9(0x3a1)](_0x12000a)&&_0x12000a[_0x64bec9(0x165)]>0x0&&this[_0x64bec9(0x1e7)](_0x12000a);}['_toggleOffline'](){const _0x1bfce3=_0x3db800;this[_0x1bfce3(0x1e9)]=!0x1;}};_0x17b314=_0x4dd272([_0x1da84f(0x2,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x1da)])),_0x1da84f(0x3,_0x5721e1[_0x3db800(0x181)](_0x2ab1f4)),_0x1da84f(0x4,_0x5721e1[_0x3db800(0x181)](_0x115633[_0x3db800(0x26f)])),_0x1da84f(0x5,_0x5721e1[_0x3db800(0x181)](_0x41a578)),_0x1da84f(0x6,_0x195720[_0x3db800(0x26e)]),_0x1da84f(0x7,_0x5721e1[_0x3db800(0x24f)]),_0x1da84f(0x8,_0x5721e1[_0x3db800(0x2e2)])],_0x17b314);var _0x1d6df8=Object[_0x3db800(0x2db)],_0x2c074e=(_0x58f69d,_0x4d0cc5,_0x453f0d,_0x2aa576)=>{const _0x35d1ff=_0x3db800;for(var _0xba4039=_0x2aa576>0x1?void 0x0:_0x2aa576?_0x1d6df8(_0x4d0cc5,_0x453f0d):_0x4d0cc5,_0x3b8060=_0x58f69d[_0x35d1ff(0x165)]-0x1,_0x5b3b84;_0x3b8060>=0x0;_0x3b8060--)(_0x5b3b84=_0x58f69d[_0x3b8060])&&(_0xba4039=_0x5b3b84(_0xba4039)||_0xba4039);return _0xba4039;},_0x5593a9=(_0x357e3a,_0x36081a)=>(_0x5ebfe9,_0x29297e)=>_0x36081a(_0x5ebfe9,_0x29297e,_0x357e3a);const _0x25eac8=0x12c,_0x11dea0=0x64,_0x1581da=()=>{let _0x483138=[],_0x29fe04=!0x1;return _0x328234=>{const _0x2070af=_0x1e97;_0x483138[_0x2070af(0x126)](_0x328234),_0x29fe04||(_0x29fe04=!0x0,setTimeout(()=>{const _0x58043d=_0x2070af;_0x483138[_0x58043d(0x331)](_0x106c6b=>_0x106c6b()),_0x483138=[],_0x29fe04=!0x1;}));};};let _0x1975a9=class extends _0x5721e1[_0x3db800(0x212)]{constructor(_0x1704c9,_0x16d174,_0x4334e7,_0x18fced,_0x1e7bef,_0x4f97c1,_0x39b515,_0xa5c83a){const _0x313839=_0x3db800;super(),_0x11fc09(this,_0x313839(0x1e9),!0x1),_0x11fc09(this,_0x313839(0x2e1),!0x1),_0x11fc09(this,_0x313839(0xd9),new _0x3c46fe['BehaviorSubject'](new Map())),_0x11fc09(this,_0x313839(0x127),this[_0x313839(0xd9)][_0x313839(0x302)]()),_0x11fc09(this,'_roomMembers$',new _0x3c46fe[(_0x313839(0x346))]([])),_0x11fc09(this,_0x313839(0x385),this['_roomMembers$'][_0x313839(0x138)](_0x3c46fe[_0x313839(0x201)](_0x25eac8))),_0x11fc09(this,_0x313839(0x1e7),_0x5721e1[_0x313839(0x25f)]((_0x42b357,_0x148293)=>{const _0x2e52a7=_0x313839,_0x4c3583={'eventID':_0x195720['CollaborationEvent'][_0x2e52a7(0x2ef)],'data':{'unitID':this[_0x2e52a7(0x153)],'memberID':this[_0x2e52a7(0x2df)][_0x2e52a7(0x359)](),'selection':_0x26196d[_0x2e52a7(0x33f)](_0x42b357,_0x148293[_0x2e52a7(0x182)])}};this[_0x2e52a7(0x2df)][_0x2e52a7(0x1e5)](_0x4c3583,this[_0x2e52a7(0x153)]);},_0x11dea0)),(this['unitID']=_0x1704c9,this[_0x313839(0x2df)]=_0x16d174,this[_0x313839(0xed)]=_0x4334e7,this[_0x313839(0x30c)]=_0x18fced,this[_0x313839(0x221)]=_0x1e7bef,this['_univerInstanceService']=_0x4f97c1,this[_0x313839(0x3a0)]=_0x39b515,this[_0x313839(0x22e)]=_0xa5c83a);}get['cursorInfo'](){const _0x565bbc=_0x3db800;return this[_0x565bbc(0xd9)]['getValue']();}get[_0x3db800(0x104)](){const _0x1cf5da=_0x3db800;return this['_roomMembers$'][_0x1cf5da(0x2f2)]();}[_0x3db800(0x37d)](){const _0x2d86e5=_0x3db800;super[_0x2d86e5(0x37d)](),this[_0x2d86e5(0xd9)][_0x2d86e5(0x1fe)](new Map()),this['_cursorInfo$'][_0x2d86e5(0x24d)](),this['_roomMembers$'][_0x2d86e5(0x1fe)]([]),this[_0x2d86e5(0x399)][_0x2d86e5(0x24d)]();}[_0x3db800(0x3b9)](){const _0x2a3755=_0x3db800;this['_init']||(this[_0x2a3755(0x2e1)]=!0x0,this[_0x2a3755(0x2df)][_0x2a3755(0xe0)][_0x2a3755(0x138)](_0x3c46fe[_0x2a3755(0x3cd)](this[_0x2a3755(0x364)]))['subscribe'](_0x43cbe8=>{const _0x2c33e1=_0x2a3755;_0x43cbe8===_0x115633[_0x2c33e1(0x218)][_0x2c33e1(0x38c)]?this[_0x2c33e1(0x390)]():this['_toggleOffline']();}),this[_0x2a3755(0x2df)]['event$'][_0x2a3755(0x138)](_0x3c46fe[_0x2a3755(0x3cd)](this[_0x2a3755(0x364)]))[_0x2a3755(0x2ce)](_0xd8d314=>{const _0x478eca=_0x2a3755,_0xb8408=_0xd8d314[_0x478eca(0x3a2)];_0xb8408===_0x195720[_0x478eca(0x162)][_0x478eca(0x2ef)]&&this[_0x478eca(0x3c1)](_0xd8d314),_0xb8408===_0x195720[_0x478eca(0x162)][_0x478eca(0x3c5)]&&this[_0x478eca(0x3b6)](_0xd8d314);}),this[_0x2a3755(0x139)](),this[_0x2a3755(0x168)](this[_0x2a3755(0x3a0)][_0x2a3755(0x10b)](_0x41a371=>{const _0x5d2cc8=_0x2a3755;if(this['_online']&&_0x41a371['id']===_0x52d373[_0x5d2cc8(0xfd)]['id']&&_0x41a371['params']['unitId']===this['unitID']){const _0x4742af=_0x41a371[_0x5d2cc8(0x1bb)];this[_0x5d2cc8(0x1e7)](_0x4742af[_0x5d2cc8(0x1b8)],_0x4742af[_0x5d2cc8(0x2c5)][0x0]);}})));}[_0x3db800(0x3c1)](_0x36ed03){const _0x48515d=_0x3db800;var _0x2480ef,_0x2c1fa9;const {memberID:_0x3d8f7b,selection:_0x42f84a}=_0x36ed03['data'],{sheetName:_0x5c399f,range:_0x21c26f}=_0x26196d['deserializeRangeWithSheet'](_0x42f84a),_0x31cd5a={'name':(_0x2c1fa9=(_0x2480ef=this[_0x48515d(0x221)]['getMember'](this['unitID'],_0x3d8f7b))==null?void 0x0:_0x2480ef[_0x48515d(0x211)])!=null?_0x2c1fa9:_0x48515d(0x388),'range':this[_0x48515d(0x3b2)](_0x5c399f,_0x21c26f),'sheetID':_0x5c399f,'color':this[_0x48515d(0x30c)][_0x48515d(0x38e)](_0x3d8f7b),'selection':_0x42f84a},_0x2bc08b=this[_0x48515d(0x20a)];_0x2bc08b['set'](_0x3d8f7b,_0x31cd5a),this[_0x48515d(0xd9)]['next'](_0x2bc08b);}['_onCursorDelete'](_0x5ea511){const _0x576158=_0x3db800,{memberID:_0x2ad3e6}=_0x5ea511[_0x576158(0x21a)],_0x2435fa=this[_0x576158(0x20a)];_0x2435fa[_0x576158(0xd6)](_0x2ad3e6),this[_0x576158(0xd9)]['next'](_0x2435fa);}['_getMergeRange'](_0x2cdeb4,_0x547add){const _0x3cb62c=_0x3db800;var _0x50c01a,_0x144c5f;const _0x3de154=(_0x144c5f=(_0x50c01a=this[_0x3cb62c(0x122)][_0x3cb62c(0x217)](this[_0x3cb62c(0x153)]))==null?void 0x0:_0x50c01a[_0x3cb62c(0x21f)](_0x2cdeb4))==null?void 0x0:_0x144c5f[_0x3cb62c(0x1fd)]();return(_0x3de154==null?void 0x0:_0x3de154[_0x3cb62c(0x1ea)](_0x5d2a83=>_0x5721e1[_0x3cb62c(0x130)]['contains'](_0x5d2a83,_0x547add)))||_0x547add;}['_onRefRangeChange'](){const _0xb632b4=_0x3db800,_0x5adf1d=new _0x5721e1[(_0xb632b4(0x3a9))](),_0xeb78db=_0x1581da(),_0x3566d4=()=>{const _0x5ecb96=_0xb632b4;_0x5adf1d['dispose']();const _0x47e6e5=(_0x3f20a3,_0x5c4742,_0x46847f,_0xa348cb)=>{const _0x3cb0ac=_0x1e97;let _0x454b18=[];switch(_0x3f20a3['id']){case _0x52d373[_0x3cb0ac(0xe2)][_0x3cb0ac(0x1d4)]:{_0x454b18=_0x52d373[_0x3cb0ac(0x2c6)](_0x3f20a3,_0xa348cb);break;}case _0x52d373[_0x3cb0ac(0xe2)]['DeleteRangeMoveUpCommandId']:{_0x454b18=_0x52d373[_0x3cb0ac(0x357)](_0x3f20a3,_0xa348cb);break;}case _0x52d373['EffectRefRangId'][_0x3cb0ac(0x2ac)]:{_0x454b18=_0x52d373[_0x3cb0ac(0x2d0)](_0x3f20a3,_0xa348cb);break;}case _0x52d373['EffectRefRangId'][_0x3cb0ac(0x132)]:{_0x454b18=_0x52d373[_0x3cb0ac(0x184)](_0x3f20a3,_0xa348cb);break;}case _0x52d373[_0x3cb0ac(0xe2)]['InsertRangeMoveRightCommandId']:{_0x454b18=_0x52d373[_0x3cb0ac(0x3cc)](_0x3f20a3,_0xa348cb);break;}case _0x52d373[_0x3cb0ac(0xe2)][_0x3cb0ac(0x107)]:{_0x454b18=_0x52d373[_0x3cb0ac(0x387)](_0x3f20a3,_0xa348cb);break;}case _0x52d373[_0x3cb0ac(0xe2)][_0x3cb0ac(0x19c)]:{_0x454b18=_0x52d373[_0x3cb0ac(0x1f5)](_0x3f20a3,_0xa348cb);break;}case _0x52d373[_0x3cb0ac(0xe2)][_0x3cb0ac(0xd3)]:{_0x454b18=_0x52d373['handleIRemoveCol'](_0x3f20a3,_0xa348cb);break;}case _0x52d373[_0x3cb0ac(0xe2)][_0x3cb0ac(0x21d)]:{_0x454b18=_0x52d373[_0x3cb0ac(0x250)](_0x3f20a3,_0xa348cb);break;}}const _0x1a9628=_0x52d373[_0x3cb0ac(0x319)](_0x454b18,_0xa348cb),_0x3d6e4c=this[_0x3cb0ac(0x20a)][_0x3cb0ac(0x31c)](_0x5c4742);if(_0x3d6e4c&&_0x1a9628){const _0x4d2425={..._0x3d6e4c,'range':_0x1a9628};this[_0x3cb0ac(0x20a)][_0x3cb0ac(0x10c)](_0x5c4742,_0x4d2425),_0xeb78db(()=>{const _0x1c3e34=_0x3cb0ac,_0x327e97=this[_0x1c3e34(0x22e)]['registerRefRange'](_0x1a9628,_0x4f174b=>(_0x327e97[_0x1c3e34(0x37d)](),_0x47e6e5(_0x4f174b,_0x5c4742,_0x46847f,_0x1a9628)));_0x5adf1d[_0x1c3e34(0x1dd)](_0x327e97);});}return{'redos':[],'undos':[]};};this[_0x5ecb96(0x20a)]['forEach']((_0x2865a4,_0x2ce038)=>{const _0x327f29=_0x5ecb96,{range:_0x7eb60b,sheetID:_0x363ec8}=_0x2865a4,_0x3b78d0=this[_0x327f29(0x22e)][_0x327f29(0x19f)](_0x7eb60b,_0x15f1ca=>(_0x3b78d0[_0x327f29(0x37d)](),_0x47e6e5(_0x15f1ca,_0x2ce038,_0x363ec8,_0x7eb60b)));_0x5adf1d[_0x327f29(0x1dd)](_0x3b78d0);});};this[_0xb632b4(0x168)](_0x5721e1['toDisposable'](this['_cursorInfo$'][_0xb632b4(0x2ce)](()=>{_0x3566d4();})));}['_toggleOnline'](){const _0x312b54=_0x3db800;var _0x4bc1e7,_0x1a04ea;if(this[_0x312b54(0x1e9)]=!0x0,((_0x4bc1e7=this[_0x312b54(0x122)]['getFocusedUnit']())==null?void 0x0:_0x4bc1e7['getUnitId']())!==this['unitID'])return;const _0x210c05=(_0x1a04ea=this['_injector'][_0x312b54(0x31c)](_0x52d373[_0x312b54(0x342)])[_0x312b54(0x30d)]())==null?void 0x0:_0x1a04ea[0x0],_0x2cc825=this[_0x312b54(0x122)][_0x312b54(0x18b)](_0x5721e1[_0x312b54(0x1a7)][_0x312b54(0x1a3)])[_0x312b54(0x29c)]();_0x210c05&&_0x2cc825&&this[_0x312b54(0x1e7)](_0x2cc825[_0x312b54(0x161)](),_0x210c05);}[_0x3db800(0x263)](){const _0x1bbb0d=_0x3db800;this[_0x1bbb0d(0x1e9)]=!0x1;}};_0x1975a9=_0x2c074e([_0x5593a9(0x2,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x1da)])),_0x5593a9(0x3,_0x5721e1[_0x3db800(0x181)](_0x2ab1f4)),_0x5593a9(0x4,_0x5721e1['Inject'](_0x115633[_0x3db800(0x26f)])),_0x5593a9(0x5,_0x5721e1[_0x3db800(0x24f)]),_0x5593a9(0x6,_0x5721e1[_0x3db800(0x2e2)]),_0x5593a9(0x7,_0x5721e1[_0x3db800(0x181)](_0x52d373[_0x3db800(0x21e)]))],_0x1975a9);var _0x184d02=Object[_0x3db800(0x2db)],_0x344c9c=(_0x4d6c88,_0x3a76ca,_0x1e17d9,_0x565b7f)=>{for(var _0x22af3e=_0x565b7f>0x1?void 0x0:_0x565b7f?_0x184d02(_0x3a76ca,_0x1e17d9):_0x3a76ca,_0x16c446=_0x4d6c88['length']-0x1,_0x51cda2;_0x16c446>=0x0;_0x16c446--)(_0x51cda2=_0x4d6c88[_0x16c446])&&(_0x22af3e=_0x51cda2(_0x22af3e)||_0x22af3e);return _0x22af3e;},_0x2efdf3=(_0x1a54bb,_0x562bb7)=>(_0x4d7788,_0x14adf1)=>_0x562bb7(_0x4d7788,_0x14adf1,_0x1a54bb);let _0x192c77=class extends _0x5721e1[_0x3db800(0x212)]{constructor(_0x1cb8c9,_0x1acfa0,_0x2ab708){const _0x272f38=_0x3db800;super(),_0x11fc09(this,_0x272f38(0x1a1),new Map()),_0x11fc09(this,'_entityInit$',new _0x3c46fe['Subject']()),(this[_0x272f38(0x122)]=_0x1cb8c9,this[_0x272f38(0xed)]=_0x1acfa0,this[_0x272f38(0xce)]=_0x2ab708,this[_0x272f38(0x2e1)]());}[_0x3db800(0x37d)](){const _0x5c16a0=_0x3db800;super[_0x5c16a0(0x37d)](),this[_0x5c16a0(0x340)][_0x5c16a0(0x24d)](),this[_0x5c16a0(0x1a1)][_0x5c16a0(0x331)](_0x274cdd=>_0x274cdd['dispose']());}[_0x3db800(0x37b)](_0x2f74f1){const _0x4520f4=_0x3db800;return this['_entities'][_0x4520f4(0x101)](_0x2f74f1)?this['_entities'][_0x4520f4(0x31c)](_0x2f74f1)[_0x4520f4(0x127)]:this[_0x4520f4(0x340)][_0x4520f4(0x138)](_0x3c46fe[_0x4520f4(0x155)](_0x2204d1=>_0x2204d1[_0x4520f4(0x153)]===_0x2f74f1),_0x3c46fe[_0x4520f4(0x35b)](_0x12ba5e=>_0x12ba5e[_0x4520f4(0x127)]));}['_init'](){const _0x5da905=_0x3db800;this[_0x5da905(0x122)][_0x5da905(0xfb)](_0x5721e1[_0x5da905(0x1a7)][_0x5da905(0x1a3)])[_0x5da905(0x138)](_0x3c46fe[_0x5da905(0x3cd)](this[_0x5da905(0x364)]))[_0x5da905(0x2ce)](async _0xd4405e=>{const _0x1ce0d3=_0x5da905,_0x19fbe0=_0xd4405e[_0x1ce0d3(0x38a)](),_0x1a4535=await this[_0x1ce0d3(0x323)](_0x19fbe0);this['_entityInit$'][_0x1ce0d3(0x1fe)](_0x1a4535),this['_entities'][_0x1ce0d3(0x10c)](_0x19fbe0,_0x1a4535);}),this[_0x5da905(0x122)][_0x5da905(0xfb)](_0x5721e1[_0x5da905(0x1a7)]['UNIVER_DOC'])[_0x5da905(0x138)](_0x3c46fe['takeUntil'](this['dispose$']))['pipe'](_0x3c46fe[_0x5da905(0x155)](_0x5b6590=>!_0x5b6590[_0x5da905(0x38a)]()[_0x5da905(0x276)]('__')))[_0x5da905(0x2ce)](async _0x274cee=>{const _0x2fd37a=_0x5da905,_0x58cbc2=_0x274cee[_0x2fd37a(0x38a)](),_0x33f3ac=await this[_0x2fd37a(0x31b)](_0x58cbc2);this[_0x2fd37a(0x340)][_0x2fd37a(0x1fe)](_0x33f3ac),this['_entities'][_0x2fd37a(0x10c)](_0x58cbc2,_0x33f3ac);}),_0x3c46fe[_0x5da905(0x18e)](this[_0x5da905(0x122)]['getTypeOfUnitDisposed$'](_0x5721e1[_0x5da905(0x1a7)]['UNIVER_DOC']),this[_0x5da905(0x122)][_0x5da905(0x28c)](_0x5721e1[_0x5da905(0x1a7)]['UNIVER_SHEET']))['pipe'](_0x3c46fe['takeUntil'](this[_0x5da905(0x364)]))[_0x5da905(0x2ce)](_0x4e948f=>{const _0x4ad75f=_0x5da905,_0x54c0f0=_0x4e948f[_0x4ad75f(0x38a)](),_0x4f875d=this[_0x4ad75f(0x1a1)]['get'](_0x54c0f0);_0x4f875d&&(_0x4f875d['dispose'](),this[_0x4ad75f(0x1a1)]['delete'](_0x54c0f0));});}async[_0x3db800(0x323)](_0x225641){const _0x4e466d=_0x3db800,_0x5a8548=await this[_0x4e466d(0xce)][_0x4e466d(0x2ea)](_0x225641),_0x5821c4=this[_0x4e466d(0xed)]['createInstance'](_0x1975a9,_0x225641,_0x5a8548);return _0x5821c4[_0x4e466d(0x3b9)](),_0x5821c4;}async[_0x3db800(0x31b)](_0x348379){const _0x34e7cf=_0x3db800,_0x1325d2=await this[_0x34e7cf(0xce)][_0x34e7cf(0x2ea)](_0x348379),_0x2382f4=this[_0x34e7cf(0xed)][_0x34e7cf(0x290)](_0x17b314,_0x348379,_0x1325d2);return _0x2382f4[_0x34e7cf(0x3b9)](),_0x2382f4;}};_0x192c77=_0x344c9c([_0x2efdf3(0x0,_0x5721e1[_0x3db800(0x24f)]),_0x2efdf3(0x1,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x1da)])),_0x2efdf3(0x2,_0x5721e1[_0x3db800(0x181)](_0x115633[_0x3db800(0x28f)]))],_0x192c77);const _0x13bbfe=0x14,_0x23b09f=0xc8,_0x1c8404=0x4,_0x2238da=0x5;function _0x23c7c3(_0x21d869,_0x3ef75c){const _0x46849a=_0x3db800;let {radius:_0x2a2c70,width:_0x3e190f,height:_0x25aa87}=_0x3ef75c;_0x2a2c70=_0x2a2c70!=null?_0x2a2c70:0x0,_0x3e190f=_0x3e190f!=null?_0x3e190f:0x1e,_0x25aa87=_0x25aa87!=null?_0x25aa87:0x1e;let _0x104fe8=0x0,_0x28d464=0x0,_0x3978e2=0x0;_0x104fe8=_0x28d464=_0x3978e2=Math['min'](_0x2a2c70,_0x3e190f/0x2,_0x25aa87/0x2),_0x21d869[_0x46849a(0x2dc)](),_0x21d869['moveTo'](_0x104fe8,0x0),_0x21d869['lineTo'](_0x3e190f-_0x28d464,0x0),_0x21d869['arc'](_0x3e190f-_0x28d464,_0x28d464,_0x28d464,Math['PI']*0x3/0x2,0x0,!0x1),_0x21d869[_0x46849a(0x30e)](_0x3e190f,_0x25aa87-_0x3978e2),_0x21d869[_0x46849a(0x183)](_0x3e190f-_0x3978e2,_0x25aa87-_0x3978e2,_0x3978e2,0x0,Math['PI']/0x2,!0x1),_0x21d869[_0x46849a(0x30e)](0x0,_0x25aa87),_0x21d869[_0x46849a(0x30e)](0x0,_0x104fe8),_0x21d869[_0x46849a(0x183)](_0x104fe8,_0x104fe8,_0x104fe8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x21d869[_0x46849a(0x23c)](),_0x3ef75c[_0x46849a(0x147)]&&(_0x21d869[_0x46849a(0x1bd)](),_0x21d869[_0x46849a(0x2e0)]=_0x3ef75c[_0x46849a(0x147)],_0x3ef75c['fillRule']===_0x46849a(0x301)?_0x21d869['fill'](_0x46849a(0x301)):_0x21d869['fill'](),_0x21d869[_0x46849a(0x241)]());}class _0x2ecb3f extends _0x585793[_0x3db800(0x31e)]{constructor(_0x2755a9,_0x5818fa){const _0x2598b7=_0x3db800;super(_0x2755a9,_0x5818fa),_0x11fc09(this,'color'),_0x11fc09(this,_0x2598b7(0x115)),(this['color']=_0x5818fa==null?void 0x0:_0x5818fa[_0x2598b7(0x144)],this[_0x2598b7(0x115)]=_0x5818fa==null?void 0x0:_0x5818fa['text']);}static[_0x3db800(0x240)](_0x4bf4f1,_0x16a2c2){const _0x409f64=_0x3db800,{text:_0x31b684,color:_0x1dc66b}=_0x16a2c2;_0x4bf4f1['save'](),_0x4bf4f1[_0x409f64(0x358)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x90ce90=_0x4bf4f1[_0x409f64(0x395)](_0x31b684)[_0x409f64(0x2f5)],_0x454d41=Math['min'](_0x90ce90+0x2*_0x1c8404,_0x23b09f);_0x23c7c3(_0x4bf4f1,{'height':_0x13bbfe,'radius':0x4,'width':_0x454d41,'fill':_0x1dc66b}),_0x4bf4f1[_0x409f64(0x2e0)]=_0x409f64(0x3be);const _0x163cf2=_0x1c8404,_0xb4aa32=_0x13bbfe-_0x2238da,_0x4c0ed1=_0x23b09f-0x2*_0x1c8404;if(_0x90ce90>_0x4c0ed1){let _0x148f10='',_0x563813=0x0;for(const _0x1dd8ec of _0x31b684){const _0x37ea9a=_0x4bf4f1['measureText'](_0x1dd8ec)[_0x409f64(0x2f5)];if(_0x563813+_0x37ea9a<=_0x4c0ed1-_0x4bf4f1[_0x409f64(0x395)](_0x409f64(0xf0))[_0x409f64(0x2f5)])_0x148f10+=_0x1dd8ec,_0x563813+=_0x37ea9a;else{_0x148f10+=_0x409f64(0xf0);break;}}_0x4bf4f1[_0x409f64(0x23e)](_0x148f10,_0x163cf2,_0xb4aa32);}else _0x4bf4f1[_0x409f64(0x23e)](_0x31b684,_0x163cf2,_0xb4aa32);_0x4bf4f1[_0x409f64(0x241)]();}[_0x3db800(0x171)](_0xd1c756){const _0x196a01=_0x3db800;_0x2ecb3f[_0x196a01(0x240)](_0xd1c756,this);}}const _0x56390a=_0x3db800(0x160),_0x2e46c4=_0x3db800(0x349),_0x2d0d28='collab-rect-range-',_0x5e81ff=0x6,_0x208e40=1.5,_0x3d2216=0x4,_0x3ab1fc=1.5,_0x4964d8=_0x3db800(0x224);class _0x4e8ee4{constructor(_0x4c4dca,_0x5b6e92,_0x20997a,_0x50f51c){const _0x4a970f=_0x3db800;_0x11fc09(this,_0x4a970f(0x334),[]),_0x11fc09(this,_0x4a970f(0x2fd),null),_0x11fc09(this,_0x4a970f(0xda),null),_0x11fc09(this,'_anchorDot',null),_0x11fc09(this,_0x4a970f(0x1d8),null),_0x11fc09(this,_0x4a970f(0x178),null),(this[_0x4a970f(0x10e)]=_0x4c4dca,this[_0x4a970f(0x2e3)]=_0x5b6e92,this[_0x4a970f(0x2b8)]=_0x20997a,this[_0x4a970f(0x332)]=_0x50f51c,this['_render']());}set[_0x3db800(0x32a)](_0x5d3fa3){const _0x5024e0=_0x3db800;_0x5d3fa3?(this[_0x5024e0(0x2d3)]&&this['_anchorDot'][_0x5024e0(0x234)](),this['_textBubble']&&this[_0x5024e0(0xda)]['show']()):(this[_0x5024e0(0x2d3)]&&this[_0x5024e0(0x2d3)][_0x5024e0(0x2b1)](),this[_0x5024e0(0xda)]&&this[_0x5024e0(0xda)]['hide']());}['dispose'](){const _0x3465ab=_0x3db800;for(const _0x447c78 of this[_0x3465ab(0x334)])_0x447c78['dispose']();this[_0x3465ab(0xda)]&&this[_0x3465ab(0xda)]['dispose'](),this['_anchorDot']&&this[_0x3465ab(0x2d3)][_0x3465ab(0x37d)](),this[_0x3465ab(0x2fd)]&&this[_0x3465ab(0x2fd)][_0x3465ab(0x37d)](),this[_0x3465ab(0x178)]&&this[_0x3465ab(0x178)]();}[_0x3db800(0x10d)](){const _0x34d012=_0x3db800;var _0x5b6cbb;const {_docSkeleton:_0xe60411,_document:_0x18710e}=this,{color:_0x2f44b1,name:_0x4561f4,ranges:_0x255ad1}=this[_0x34d012(0x10e)],_0x37472e=_0x18710e[_0x34d012(0x166)](),{docsLeft:_0x15611a,docsTop:_0x12f0fa}=_0x37472e,_0x5508c4=new _0x45f825['NodePositionConvertToCursor'](_0x37472e,_0xe60411);for(const {startOffset:_0x5a9c6e,endOffset:_0x481f76,rangeType:_0x4da681,segmentId:_0x1b4349,segmentPage:_0x5f2905,collapsed:_0x3b9bd9,isActive:_0x565fd4}of _0x255ad1){const _0x3be57d=_0xe60411[_0x34d012(0x251)](_0x5a9c6e,!0x0,_0x1b4349,_0x5f2905);let _0x1673c7=_0xe60411[_0x34d012(0x251)](_0x481f76,!0x0,_0x1b4349,_0x5f2905);if(_0x1673c7==null&&(_0x1673c7=_0xe60411['findNodePositionByCharIndex'](_0x481f76-0x1,!0x1,_0x1b4349,_0x5f2905)),_0x565fd4){const {contentBoxPointGroup:_0x58eca2}=_0x5508c4[_0x34d012(0x230)](_0x1673c7,_0x1673c7);if(_0x58eca2['length']===0x0)continue;this[_0x34d012(0x3bc)](_0x2f44b1,_0x58eca2,_0x15611a,_0x12f0fa,_0x4561f4),this[_0x34d012(0x178)]=this[_0x34d012(0x3b7)]();}if(_0x3be57d&&_0x1673c7){if(_0x4da681===_0x5721e1['DOC_RANGE_TYPE'][_0x34d012(0x123)]){const _0x3aec58=new _0x45f825[(_0x34d012(0x1e3))](_0x37472e,_0xe60411),{pointGroup:_0xc48a1a}=(_0x5b6cbb=_0x3aec58[_0x34d012(0x230)](_0x3be57d,_0x1673c7))!=null?_0x5b6cbb:{};if(_0xc48a1a==null||_0xc48a1a['length']===0x0)continue;this[_0x34d012(0x2bd)](_0x2f44b1,_0xc48a1a,_0x15611a,_0x12f0fa);}else{if(!_0x3b9bd9){const {borderBoxPointGroup:_0x5d2306}=_0x5508c4[_0x34d012(0x230)](_0x3be57d,_0x1673c7);if(_0x5d2306[_0x34d012(0x165)]===0x0)continue;this[_0x34d012(0x354)](_0x2f44b1,_0x5d2306,_0x15611a,_0x12f0fa);}}}}}[_0x3db800(0x3bc)](_0x46c0e0,_0x45cf13,_0x2aed44,_0x5bcfef,_0x175192){const _0x1200b0=_0x3db800,_0xfea043=this['_getAnchorBounding'](_0x45cf13),{left:_0x11cda9,top:_0x38d9b0,height:_0x1fc44a}=_0xfea043,_0x25f85a=this[_0x1200b0(0x2ec)](),_0x1bbe84=_0x3ab1fc/_0x25f85a,_0x36d459=new _0x585793[(_0x1200b0(0x1ce))](_0x56390a+_0x5721e1[_0x1200b0(0x336)](_0x5e81ff),{'left':_0x11cda9+_0x2aed44-_0x1bbe84,'top':_0x38d9b0+_0x5bcfef,'height':_0x1fc44a,'width':_0x208e40,'fill':_0x46c0e0||_0x585793[_0x1200b0(0x1a4)](_0x5721e1[_0x1200b0(0x39f)][_0x1200b0(0x313)],0x0),'strokeWidth':_0x1bbe84,'stroke':_0x4964d8,'evented':!0x0});this[_0x1200b0(0x2fd)]=_0x36d459,this[_0x1200b0(0x2e3)][_0x1200b0(0x1cb)](_0x36d459,_0x45f825[_0x1200b0(0x1ff)]);const _0x635cb2=new _0x585793[(_0x1200b0(0x1ce))](_0x56390a+_0x5721e1[_0x1200b0(0x336)](_0x5e81ff),{'left':_0x11cda9+_0x2aed44-_0x1bbe84,'top':_0x38d9b0+_0x5bcfef-_0x3d2216/0x2,'height':_0x3d2216,'width':_0x3d2216,'fill':_0x46c0e0||_0x585793[_0x1200b0(0x1a4)](_0x5721e1[_0x1200b0(0x39f)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x46c0e0||_0x585793['getColor'](_0x5721e1[_0x1200b0(0x39f)]['black'],0x0),'evented':!0x1});this[_0x1200b0(0x2d3)]=_0x635cb2,this['_scene'][_0x1200b0(0x1cb)](_0x635cb2,_0x45f825[_0x1200b0(0x1ff)]);const _0x3b5636=new _0x2ecb3f(_0x56390a+_0x5721e1['generateRandomId'](_0x5e81ff),{'left':_0x11cda9+_0x2aed44-_0x1bbe84,'top':_0x38d9b0+_0x5bcfef-_0x13bbfe,'text':_0x175192,'color':_0x46c0e0});this[_0x1200b0(0xda)]=_0x3b5636,this['_scene'][_0x1200b0(0x1cb)](_0x3b5636,_0x45f825[_0x1200b0(0x1ff)]),this['_hover']=!0x1;}['_handleHover'](){const _0xbeee69=_0x3db800,_0x166c05=this[_0xbeee69(0x2fd)][_0xbeee69(0x2ca)][_0xbeee69(0x288)](()=>{const _0x1506db=_0xbeee69;this[_0x1506db(0x32a)]=!0x0;}),_0x4d039f=this[_0xbeee69(0x2fd)][_0xbeee69(0x146)][_0xbeee69(0x288)](()=>{const _0x174f89=_0xbeee69;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x174f89(0x1d8)]=setTimeout(()=>{const _0x5e7c7c=_0x174f89;this[_0x5e7c7c(0x32a)]=!0x1;},0x7d0);});return()=>{const _0x3492b3=_0xbeee69;_0x166c05[_0x3492b3(0x1ee)](),_0x4d039f[_0x3492b3(0x1ee)]();};}[_0x3db800(0x354)](_0x3d2a6c,_0x36e702,_0xec3806,_0x4e6873){const _0x1fcce3=_0x3db800,_0x7bd8b3=new _0x5721e1[(_0x1fcce3(0x233))](_0x3d2a6c)[_0x1fcce3(0x38f)](0.2)[_0x1fcce3(0x2c8)](),_0x57cc10=new _0x585793[(_0x1fcce3(0x1b0))](_0x2e46c4+_0x5721e1[_0x1fcce3(0x336)](_0x5e81ff),{'pointsGroup':_0x36e702,'fill':_0x7bd8b3||_0x585793[_0x1fcce3(0x1a4)](_0x5721e1['COLORS']['black'],0.2),'left':_0xec3806,'top':_0x4e6873,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1fcce3(0x334)][_0x1fcce3(0x126)](_0x57cc10),this[_0x1fcce3(0x2e3)][_0x1fcce3(0x1cb)](_0x57cc10,_0x45f825[_0x1fcce3(0x1ff)]);}[_0x3db800(0x2bd)](_0x4e66ae,_0x1ef41e,_0x327e99,_0x1154b8){const _0x22a547=_0x3db800,_0x27bdba=new _0x5721e1[(_0x22a547(0x233))](_0x4e66ae)[_0x22a547(0x38f)](0.2)[_0x22a547(0x2c8)](),_0x4ad661=new _0x585793[(_0x22a547(0x1b0))](_0x2d0d28+_0x5721e1[_0x22a547(0x336)](_0x5e81ff),{'pointsGroup':_0x1ef41e,'fill':_0x27bdba||_0x585793[_0x22a547(0x1a4)](_0x5721e1[_0x22a547(0x39f)][_0x22a547(0x313)],0.2),'left':_0x327e99,'top':_0x1154b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x22a547(0x334)]['push'](_0x4ad661),this[_0x22a547(0x2e3)][_0x22a547(0x1cb)](_0x4ad661,_0x45f825[_0x22a547(0x1ff)]);}[_0x3db800(0x148)](_0x51a384){const _0x103db7=_0x51a384[0x0],_0xbd9f5d=_0x103db7[0x0],_0x134770=_0x103db7[0x2],{x:_0x44a4a1,y:_0x44eaa8}=_0xbd9f5d,{x:_0x1572bf,y:_0x16a5e1}=_0x134770;return{'left':_0x44a4a1,'top':_0x44eaa8,'width':_0x1572bf-_0x44a4a1,'height':_0x16a5e1-_0x44eaa8};}[_0x3db800(0x2ec)](){const _0x597141=_0x3db800,{scaleX:_0x4300b5,scaleY:_0x4d5f97}=this['_scene'][_0x597141(0x2a5)]();return Math['max'](_0x4300b5,_0x4d5f97);}}var _0x50487b=Object[_0x3db800(0x2db)],_0x318f0b=(_0x49c5ad,_0x4c29b9,_0x4933be,_0x3c0b46)=>{const _0x5797d1=_0x3db800;for(var _0x27c55c=_0x3c0b46>0x1?void 0x0:_0x3c0b46?_0x50487b(_0x4c29b9,_0x4933be):_0x4c29b9,_0x3b3a9a=_0x49c5ad[_0x5797d1(0x165)]-0x1,_0x1c3733;_0x3b3a9a>=0x0;_0x3b3a9a--)(_0x1c3733=_0x49c5ad[_0x3b3a9a])&&(_0x27c55c=_0x1c3733(_0x27c55c)||_0x27c55c);return _0x27c55c;},_0x29441e=(_0x634ee5,_0x4b7aa7)=>(_0x4efbc9,_0x273293)=>_0x4b7aa7(_0x4efbc9,_0x273293,_0x634ee5);let _0x1be4c4=class extends _0x5721e1['RxDisposable']{constructor(_0x1ee370,_0x4fc7b3,_0x54bf45,_0x45e642,_0x56904d){const _0x20e06f=_0x3db800;super(),_0x11fc09(this,_0x20e06f(0x137),[]),_0x11fc09(this,_0x20e06f(0x2a9),[]),(this[_0x20e06f(0x247)]=_0x1ee370,this[_0x20e06f(0xe7)]=_0x4fc7b3,this[_0x20e06f(0x1a9)]=_0x54bf45,this[_0x20e06f(0x3a0)]=_0x45e642,this[_0x20e06f(0x12b)]=_0x56904d,this[_0x20e06f(0x2e1)]());}[_0x3db800(0x2e1)](){const _0x54cb7d=_0x3db800,_0x55d3b8=this[_0x54cb7d(0x247)][_0x54cb7d(0x2f4)],_0x55d4af=this[_0x54cb7d(0xe7)];this[_0x54cb7d(0x168)](_0x3c46fe['combineLatest']([this[_0x54cb7d(0x1a9)][_0x54cb7d(0x37b)](_0x55d3b8),this[_0x54cb7d(0x12b)][_0x54cb7d(0x328)]])[_0x54cb7d(0x138)](_0x3951af[_0x54cb7d(0x209)](([_0x5bc271,_0x3376e6])=>({'skeleton':_0x55d4af[_0x54cb7d(0x1cc)](),'cursors':[..._0x5bc271[_0x54cb7d(0x39e)]()][_0x54cb7d(0x199)](_0x33ad4d=>({..._0x33ad4d,'color':this[_0x54cb7d(0x12b)][_0x54cb7d(0x11e)](_0x33ad4d[_0x54cb7d(0x144)])}))})))[_0x54cb7d(0x2ce)](_0x45a66b=>{const _0x311237=_0x54cb7d;if(this[_0x311237(0x2af)](),_0x45a66b){const {skeleton:_0x33a19c,cursors:_0x10114f}=_0x45a66b;this[_0x311237(0x27f)](_0x33a19c,_0x10114f);}})),this[_0x54cb7d(0x121)](),this[_0x54cb7d(0x248)]();}[_0x3db800(0x27f)](_0x35a2b5,_0x1926ab){const _0x1a3402=_0x3db800,{scene:_0x407c03,mainComponent:_0x531260}=this[_0x1a3402(0x247)],_0x2e32a9=_0x1926ab[_0x1a3402(0x209)](_0x59c8da=>new _0x4e8ee4(_0x59c8da,_0x407c03,_0x35a2b5,_0x531260));this[_0x1a3402(0x137)]=_0x2e32a9,this[_0x1a3402(0x2a9)]=_0x1926ab;}[_0x3db800(0x1bc)](){const _0x528b78=_0x3db800;this[_0x528b78(0x2af)]();const {scene:_0x25dd6c,mainComponent:_0x28261f}=this[_0x528b78(0x247)],_0x48b8fb=this[_0x528b78(0xe7)][_0x528b78(0x1cc)](),_0x16e96a=this['_cursors'][_0x528b78(0x209)](_0x29c9bc=>new _0x4e8ee4(_0x29c9bc,_0x25dd6c,_0x48b8fb,_0x28261f));this[_0x528b78(0x137)]=_0x16e96a;}[_0x3db800(0x2af)](){const _0x51c834=_0x3db800;this[_0x51c834(0x137)][_0x51c834(0x331)](_0x16369d=>_0x16369d[_0x51c834(0x37d)]()),this[_0x51c834(0x137)]=[];}[_0x3db800(0x248)](){const _0x1e4a03=_0x3db800,_0x2b0d42=[_0x45f825[_0x1e4a03(0x17b)]['id']];this[_0x1e4a03(0x168)](this[_0x1e4a03(0x3a0)][_0x1e4a03(0x10b)](_0x3cd02f=>{const _0x37f90f=_0x1e4a03;_0x2b0d42['includes'](_0x3cd02f['id'])&&_0x3cd02f['params'][_0x37f90f(0x2f4)]===this[_0x37f90f(0x247)][_0x37f90f(0x2f4)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x5d631b=_0x3db800;this['disposeWithMe'](_0x5721e1[_0x5d631b(0x3a5)](this['_context'][_0x5d631b(0x367)][_0x5d631b(0x292)])[_0x5d631b(0x138)](_0x3951af[_0x5d631b(0x155)](_0x19a786=>_0x19a786[_0x5d631b(0x210)]===_0x585793[_0x5d631b(0x389)][_0x5d631b(0x382)]),_0x3951af[_0x5d631b(0x157)](0x10))[_0x5d631b(0x2ce)](()=>{const _0xd8dcbf=_0x5d631b;this[_0xd8dcbf(0x1bc)]();}));}};_0x1be4c4=_0x318f0b([_0x29441e(0x1,_0x5721e1[_0x3db800(0x181)](_0x9d8fba[_0x3db800(0x109)])),_0x29441e(0x2,_0x5721e1['Inject'](_0x192c77)),_0x29441e(0x3,_0x5721e1[_0x3db800(0x2e2)]),_0x29441e(0x4,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x15a)]))],_0x1be4c4);const _0x145431=0x1,_0x543250=1.5;class _0x3d98fb extends _0x585793[_0x3db800(0x31e)]{constructor(_0x572efa,_0x330ed5){const _0x2844f7=_0x3db800;super(_0x572efa,_0x330ed5),_0x11fc09(this,_0x2844f7(0x21c)),_0x11fc09(this,_0x2844f7(0x1dc),!0x1),_0x11fc09(this,_0x2844f7(0x238)),_0x11fc09(this,'_name',''),_0x11fc09(this,_0x2844f7(0x112),_0x2844f7(0x1b9)),_0x11fc09(this,_0x2844f7(0x2bb)),(_0x330ed5&&this['setShapeProps'](_0x330ed5),this[_0x2844f7(0x2ca)]['subscribeEvent'](()=>this[_0x2844f7(0x2d5)]({'hovered':!0x0})),this[_0x2844f7(0x146)][_0x2844f7(0x288)](()=>this[_0x2844f7(0x2d5)]({'hovered':!0x1})));}[_0x3db800(0x2d5)](_0x57cc4e){const _0x4093fd=_0x3db800;var _0x48cf40,_0x45a4df,_0x205dd0,_0x1ddd3d,_0x262d46,_0x271c4a;this[_0x4093fd(0x21c)]=(_0x48cf40=_0x57cc4e['color'])!=null?_0x48cf40:this['_color'],this['_hovered']=(_0x45a4df=_0x57cc4e[_0x4093fd(0x1ab)])!=null?_0x45a4df:this['_hovered'],this[_0x4093fd(0x238)]=(_0x205dd0=_0x57cc4e[_0x4093fd(0x182)])!=null?_0x205dd0:this[_0x4093fd(0x238)],this[_0x4093fd(0x2c9)]=(_0x1ddd3d=_0x57cc4e[_0x4093fd(0x211)])!=null?_0x1ddd3d:this[_0x4093fd(0x2c9)],this[_0x4093fd(0x112)]=(_0x262d46=_0x57cc4e[_0x4093fd(0x2e5)])!=null?_0x262d46:this[_0x4093fd(0x112)],this[_0x4093fd(0x2bb)]=(_0x271c4a=_0x57cc4e[_0x4093fd(0x24c)])!=null?_0x271c4a:this[_0x4093fd(0x2bb)],this[_0x4093fd(0x272)]({'width':_0x57cc4e[_0x4093fd(0x2f5)],'height':_0x57cc4e[_0x4093fd(0x380)]});}['onMouseMove'](_0x28b86a){const _0x385ff5=_0x3db800,{row:_0x32019e,column:_0x31b2af}=_0x28b86a;if(_0x32019e>=this[_0x385ff5(0x238)][_0x385ff5(0x32e)]&&_0x32019e<=this['_range']['endRow']&&_0x31b2af>=this[_0x385ff5(0x238)][_0x385ff5(0x30a)]&&_0x31b2af<=this['_range']['endColumn']){this[_0x385ff5(0x2d5)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x4efe4e){return!0x1;}[_0x3db800(0x171)](_0x1345f2){const _0x358da0=_0x3db800;_0x585793[_0x358da0(0x1ce)][_0x358da0(0x240)](_0x1345f2,{'width':this[_0x358da0(0x2f5)],'height':this['height'],'strokeWidth':_0x543250,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x358da0(0x2bb)]}),this['_hovered']&&(_0x1345f2['save'](),_0x1345f2['transform'](0x1,0x0,0x0,0x1,this[_0x358da0(0x2f5)],this[_0x358da0(0x112)]==='bottom'?0x0:-_0x13bbfe),_0x2ecb3f[_0x358da0(0x240)](_0x1345f2,{'text':this[_0x358da0(0x2c9)],'color':this[_0x358da0(0x21c)]}),_0x1345f2[_0x358da0(0x241)]());}}var _0x5693f2=Object['getOwnPropertyDescriptor'],_0x260d7b=(_0x4592a9,_0x3df972,_0x388ecd,_0x406caf)=>{const _0x471933=_0x3db800;for(var _0x2b7840=_0x406caf>0x1?void 0x0:_0x406caf?_0x5693f2(_0x3df972,_0x388ecd):_0x3df972,_0x53c7d2=_0x4592a9[_0x471933(0x165)]-0x1,_0x45b011;_0x53c7d2>=0x0;_0x53c7d2--)(_0x45b011=_0x4592a9[_0x53c7d2])&&(_0x2b7840=_0x45b011(_0x2b7840)||_0x2b7840);return _0x2b7840;},_0x48fe8b=(_0x33a411,_0x4f9888)=>(_0x4e74cf,_0x83782b)=>_0x4f9888(_0x4e74cf,_0x83782b,_0x33a411);const _0x8b30c2=0x1389;let _0x3eec6b=class extends _0x5721e1[_0x3db800(0x212)]{constructor(_0x5d7eb6,_0x50e818,_0x2d738b,_0x2fb1bb){const _0x345803=_0x3db800;super(),_0x11fc09(this,'_cursors',new Set()),_0x11fc09(this,_0x345803(0x303),null),(this['_context']=_0x5d7eb6,this[_0x345803(0x229)]=_0x50e818,this[_0x345803(0x1a9)]=_0x2d738b,this[_0x345803(0x12b)]=_0x2fb1bb,this[_0x345803(0x2e1)]());}[_0x3db800(0x2e1)](){const _0x19f2d1=_0x3db800;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x19f2d1(0x138)](_0x3951af['takeUntil'](this['dispose$']),_0x3951af[_0x19f2d1(0x35b)](_0x350ea2=>{const _0x5136ac=_0x19f2d1;if(_0x350ea2){const _0x530ada=_0x350ea2[_0x5136ac(0x29e)];return _0x3c46fe[_0x5136ac(0x33a)](this['_collabCursorController'][_0x5136ac(0x37b)](this[_0x5136ac(0x247)][_0x5136ac(0x2f4)]),this[_0x5136ac(0x12b)][_0x5136ac(0x328)])['pipe'](_0x3951af['map'](([_0x59e06c,_0x44d223])=>{const _0x325d74=_0x5136ac,_0x45b4ae=new Map();return _0x59e06c[_0x325d74(0x331)]((_0x6e7b35,_0x52d75d)=>{const _0x59a09e=_0x325d74;if(_0x6e7b35[_0x59a09e(0x27c)]===_0x530ada){const _0x5d0cce={..._0x6e7b35};_0x5d0cce[_0x59a09e(0x144)]=this['_themeService'][_0x59a09e(0x11e)](_0x6e7b35[_0x59a09e(0x144)]),_0x45b4ae[_0x59a09e(0x10c)](_0x52d75d,_0x5d0cce);}}),{'skeleton':_0x350ea2,'cursors':_0x45b4ae};}));}return _0x3c46fe['of']({'skeleton':null,'cursors':new Map()});}))[_0x19f2d1(0x2ce)](({skeleton:_0x3fd764,cursors:_0x50883b})=>{const _0x4265a0=_0x19f2d1;this['_removeCollabCursors'](),_0x3fd764&&this[_0x4265a0(0x27f)](_0x3fd764,_0x50883b);}),this[_0x19f2d1(0x229)][_0x19f2d1(0x295)][_0x19f2d1(0x2ce)](_0x1db9ce=>{const _0x1103e3=_0x19f2d1;if(_0x1db9ce==null)return;const {skeleton:_0x14a2dc}=_0x1db9ce,{scene:_0x4de2d8}=this[_0x1103e3(0x247)];_0x4de2d8[_0x1103e3(0x249)][_0x1103e3(0x288)](_0x5721e1[_0x1103e3(0x25f)](_0x302b8d=>{const _0x5c5f7f=_0x1103e3;var _0x2ff501,_0x2a69ec;const {offsetX:_0x1cd6ca,offsetY:_0x397048}=_0x302b8d,{x:_0x27bfd7,y:_0xe43a29}=_0x4de2d8[_0x5c5f7f(0x15c)](_0x585793[_0x5c5f7f(0x220)][_0x5c5f7f(0x393)]([_0x1cd6ca,_0x397048])),{scaleX:_0x1ed462,scaleY:_0x5afb83}=_0x4de2d8['getAncestorScale'](),_0xe1e24d=_0x4de2d8[_0x5c5f7f(0x2f6)](_0x585793[_0x5c5f7f(0x1d5)][_0x5c5f7f(0x3c2)]),_0x25f4c6=_0x4de2d8[_0x5c5f7f(0x1a6)](_0x585793[_0x5c5f7f(0x220)][_0x5c5f7f(0x393)]([_0x27bfd7,_0xe43a29]),_0xe1e24d),_0x12328c=_0x14a2dc[_0x5c5f7f(0x294)](_0x1cd6ca,_0x397048,_0x1ed462,_0x5afb83,_0x25f4c6);((_0x2ff501=this['_lastPointer'])==null?void 0x0:_0x2ff501[_0x5c5f7f(0x15f)])===_0x12328c[_0x5c5f7f(0x15f)]&&((_0x2a69ec=this[_0x5c5f7f(0x303)])==null?void 0x0:_0x2a69ec['row'])===_0x12328c[_0x5c5f7f(0xf9)]||this['_cursors'][_0x5c5f7f(0x331)](_0x3eaf4b=>{const _0x588b94=_0x5c5f7f;_0x3eaf4b[_0x588b94(0x2dd)](_0x12328c);});},0x64));});}['_updateCollabCursors'](_0x375e99,_0x23d07a){const _0x62fdef=_0x3db800;var _0x511a08;const _0x4f1686=(_0x511a08=this['_sheetSkeletonManagerService'][_0x62fdef(0x344)]())==null?void 0x0:_0x511a08[_0x62fdef(0x34e)];if(!_0x4f1686)return;const _0x1c2e84=this[_0x62fdef(0x10a)]();if(!_0x1c2e84)return;this[_0x62fdef(0x2a9)][_0x62fdef(0x331)](_0x3dfb21=>{const _0x1074a4=_0x62fdef;_0x3dfb21[_0x1074a4(0x128)]();});const {scene:_0x439973}=_0x1c2e84,_0x4809d0=_0x1d1dfe(Array[_0x62fdef(0x2e8)](_0x23d07a[_0x62fdef(0x39e)]()))['map'](_0x49b377=>{const _0xcdf3d0=_0x62fdef,{color:_0x35a2fb,range:_0x424f11,name:_0x3d0001,selection:_0x28d3bb,sheetID:_0x3e9052}=_0x49b377,{startColumn:_0x1a0b7c,startRow:_0x5eda4a,endColumn:_0x34a4f2,endRow:_0xe983f2}=_0x424f11,_0x374d5f=_0x131e0d[_0xcdf3d0(0xdc)](_0x5eda4a,_0x1a0b7c,_0x439973,_0x4f1686),_0x45717a=_0x131e0d['getCoordByCell'](_0xe983f2,_0x34a4f2,_0x439973,_0x4f1686),{columnHeaderHeightAndMarginTop:_0x5b36de}=_0x4f1686,{startX:_0x318b6f,startY:_0x411df9}=_0x374d5f,{endX:_0x598fb4,endY:_0x10e42a}=_0x45717a,_0x56b36c=_0x598fb4-_0x318b6f,_0x429e40=_0x10e42a-_0x411df9,_0x3f0fbb={'labelPosition':_0x411df9-_0x5b36de>=_0x13bbfe?'top':_0xcdf3d0(0x223),'sheetID':_0x3e9052,'range':_0x424f11,'color':_0x35a2fb,'name':_0x3d0001,'selection':_0x28d3bb,'left':_0x318b6f,'top':_0x411df9,'width':_0x56b36c,'height':_0x429e40,'evented':!0x1,'zIndex':_0x8b30c2};return new _0x3d98fb(_0x3d0001,_0x3f0fbb);});_0x439973[_0x62fdef(0x2e7)](_0x4809d0,_0x145431),this[_0x62fdef(0x2a9)]=new Set(_0x4809d0);}[_0x3db800(0x2af)](){const _0x21ad7c=_0x3db800;var _0x24afdb;(_0x24afdb=this[_0x21ad7c(0x2a9)])==null||_0x24afdb[_0x21ad7c(0x331)](_0x2a1672=>_0x2a1672['dispose']());}['_getSheetObject'](){const _0x4f457d=_0x3db800;return _0x131e0d[_0x4f457d(0x16a)](this[_0x4f457d(0x247)]['unit'],this[_0x4f457d(0x247)]);}};_0x3eec6b=_0x260d7b([_0x48fe8b(0x1,_0x5721e1[_0x3db800(0x181)](_0x131e0d[_0x3db800(0x18f)])),_0x48fe8b(0x2,_0x5721e1[_0x3db800(0x181)](_0x192c77)),_0x48fe8b(0x3,_0x5721e1[_0x3db800(0x181)](_0x5721e1['ThemeService']))],_0x3eec6b);function _0x1d1dfe(_0xf5099e){const _0x3b2277=_0x3db800,_0x5a7d8e=new Map();return _0xf5099e[_0x3b2277(0x331)](_0x1b823c=>{const _0x1d8b92=_0x3b2277;if(_0x5a7d8e[_0x1d8b92(0x101)](_0x1b823c[_0x1d8b92(0x239)])){const _0x50ff82=_0x5a7d8e[_0x1d8b92(0x31c)](_0x1b823c[_0x1d8b92(0x239)]);_0x50ff82[_0x1d8b92(0x211)]+=',\x20'+_0x1b823c[_0x1d8b92(0x211)];}else _0x5a7d8e[_0x1d8b92(0x10c)](_0x1b823c[_0x1d8b92(0x239)],_0x1b823c);}),Array[_0x3b2277(0x2e8)](_0x5a7d8e[_0x3b2277(0x39e)]());}var _0x3e2b75=Object[_0x3db800(0x2db)],_0x391214=(_0xfaabad,_0x7fa4c4,_0x46e4b8,_0x3df677)=>{for(var _0x5852ed=_0x3df677>0x1?void 0x0:_0x3df677?_0x3e2b75(_0x7fa4c4,_0x46e4b8):_0x7fa4c4,_0x7bf749=_0xfaabad['length']-0x1,_0x5dbb44;_0x7bf749>=0x0;_0x7bf749--)(_0x5dbb44=_0xfaabad[_0x7bf749])&&(_0x5852ed=_0x5dbb44(_0x5852ed)||_0x5852ed);return _0x5852ed;},_0x51286c=(_0xe55239,_0xf578ca)=>(_0x162986,_0x231bac)=>_0xf578ca(_0x162986,_0x231bac,_0xe55239);let _0xa84181=class extends _0x5721e1[_0x3db800(0x27b)]{constructor(_0x4b31c9,_0x593446,_0x4edfdf,_0x56b9c4,_0x449c4f,_0xaf6ada){const _0x554840=_0x3db800;super(),this['_beforeCloseService']=_0x4b31c9,this[_0x554840(0x32f)]=_0x593446,this[_0x554840(0x322)]=_0x4edfdf,this[_0x554840(0x2b7)]=_0x56b9c4,this[_0x554840(0x34b)]=_0x449c4f,this['_localeService']=_0xaf6ada,this[_0x554840(0x267)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0xa1bc25=_0x3db800;this[_0xa1bc25(0x168)](this[_0xa1bc25(0x1d0)][_0xa1bc25(0x274)](()=>{const _0x1f6192=_0xa1bc25;if(this[_0x1f6192(0x32f)][_0x1f6192(0x2c0)][_0x1f6192(0x392)])return this[_0x1f6192(0x1fb)]['t'](_0x1f6192(0x17d));}));}[_0x3db800(0x1d7)](){const _0x1d7af3=_0x3db800;this[_0x1d7af3(0x168)](this['_collaborationUIEventService']['event$']['subscribe'](_0xd89c0d=>{const _0x49dc5b=_0x1d7af3;_0xd89c0d['id']===_0x115633[_0x49dc5b(0x1ca)][_0x49dc5b(0x298)]&&this[_0x49dc5b(0x2b7)][_0x49dc5b(0x2b1)]({'type':_0x31d403[_0x49dc5b(0x3ca)][_0x49dc5b(0x1de)],'content':this[_0x49dc5b(0x1fb)]['t']('collaboration.single-unit.warning')}),_0xd89c0d['id']===_0x115633[_0x49dc5b(0x1ca)][_0x49dc5b(0x140)]&&this['_messageService'][_0x49dc5b(0x2b1)]({'type':_0x31d403[_0x49dc5b(0x3ca)]['Warning'],'content':this[_0x49dc5b(0x1fb)]['t'](_0x49dc5b(0x195))}),_0xd89c0d['id']===_0x115633[_0x49dc5b(0x1ca)][_0x49dc5b(0x3ab)]&&this[_0x49dc5b(0x34b)][_0x49dc5b(0x2b1)]({'title':this[_0x49dc5b(0x1fb)]['t'](_0x49dc5b(0x371)),'content':this[_0x49dc5b(0x1fb)]['t'](_0x49dc5b(0x2e9)),'type':_0x49dc5b(0x3ce),'duration':0x0}),_0xd89c0d['id']===_0x115633[_0x49dc5b(0x1ca)][_0x49dc5b(0x1c9)]&&this[_0x49dc5b(0x2b7)]['show']({'type':_0x31d403['MessageType']['Error'],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0xd89c0d['data']+')'}),_0xd89c0d['id']===_0x115633[_0x49dc5b(0x1ca)]['JOIN_ROOM_FAILED']&&this[_0x49dc5b(0x2b7)][_0x49dc5b(0x2b1)]({'type':_0x31d403['MessageType']['Warning'],'content':this[_0x49dc5b(0x1fb)]['t'](_0xd89c0d[_0x49dc5b(0x21a)]||'')}),_0xd89c0d['id']===_0x115633[_0x49dc5b(0x1ca)][_0x49dc5b(0x3af)]&&this[_0x49dc5b(0x2b7)][_0x49dc5b(0x2b1)]({'type':_0x31d403[_0x49dc5b(0x3ca)]['Warning'],'content':this[_0x49dc5b(0x1fb)]['t']('session.will-retry')}),_0xd89c0d['id']===_0x115633['CollaborationUIEventId'][_0x49dc5b(0x103)]&&this['_messageService'][_0x49dc5b(0x2b1)]({'type':_0x31d403[_0x49dc5b(0x3ca)]['Error'],'content':this[_0x49dc5b(0x1fb)]['t'](_0x49dc5b(0xf8))}),_0xd89c0d['id']===_0x115633[_0x49dc5b(0x1ca)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x49dc5b(0x2b7)][_0x49dc5b(0x2b1)]({'type':_0x31d403[_0x49dc5b(0x3ca)]['Error'],'content':this[_0x49dc5b(0x1fb)]['t'](_0x49dc5b(0x1a5))});}));}};_0xa84181=_0x391214([_0x51286c(0x0,_0xa1d841[_0x3db800(0x314)]),_0x51286c(0x1,_0x115633[_0x3db800(0x1ac)]),_0x51286c(0x2,_0x5721e1[_0x3db800(0x181)](_0x115633[_0x3db800(0x194)])),_0x51286c(0x3,_0xa1d841[_0x3db800(0x355)]),_0x51286c(0x4,_0xa1d841[_0x3db800(0xe3)]),_0x51286c(0x5,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x324)]))],_0xa84181);var _0x5296c7=Object[_0x3db800(0x2db)],_0x2dd4ea=(_0x21cad2,_0x38cf9a,_0x2695d2,_0x39f827)=>{const _0x414d9f=_0x3db800;for(var _0x91a5f4=_0x39f827>0x1?void 0x0:_0x39f827?_0x5296c7(_0x38cf9a,_0x2695d2):_0x38cf9a,_0x420ec9=_0x21cad2[_0x414d9f(0x165)]-0x1,_0x3832ce;_0x420ec9>=0x0;_0x420ec9--)(_0x3832ce=_0x21cad2[_0x420ec9])&&(_0x91a5f4=_0x3832ce(_0x91a5f4)||_0x91a5f4);return _0x91a5f4;},_0x44dad0=(_0x13416a,_0x524a1f)=>(_0x511494,_0x58d2bc)=>_0x524a1f(_0x511494,_0x58d2bc,_0x13416a);let _0x2c4f22=class extends _0x5721e1[_0x3db800(0x27b)]{constructor(_0x3856b9,_0x99831b,_0x4843ec,_0x3dc545){const _0x243f75=_0x3db800;super(),_0x11fc09(this,_0x243f75(0x142)),(this['_injector']=_0x3856b9,this[_0x243f75(0x394)]=_0x99831b,this['_logService']=_0x4843ec,this['_collaborationSessionService']=_0x3dc545,this[_0x243f75(0x2e1)]());}[_0x3db800(0x2e1)](){const _0x195704=_0x3db800;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x195704(0x282)]();}[_0x3db800(0x282)](){const _0x50bb24=_0x3db800;this[_0x50bb24(0x168)](this[_0x50bb24(0x1e4)][_0x50bb24(0x39b)][_0x50bb24(0x2ce)](_0x2837eb=>{const _0x5d2f6e=_0x50bb24;this[_0x5d2f6e(0x142)]=_0x2837eb==null?void 0x0:_0x2837eb[_0x5d2f6e(0x34a)];}));}[_0x3db800(0x203)](){const _0x555523=_0x3db800,_0x5e2838=_0x3d4c16=>{const _0x297e5b=_0x1e97;var _0x28fdc9;this[_0x297e5b(0x1ad)]('error',_0x297e5b(0x2a2)+_0x3d4c16['message']+'\x20at\x20'+_0x3d4c16['filename']+':'+_0x3d4c16[_0x297e5b(0x28e)]+':'+_0x3d4c16[_0x297e5b(0x114)]+'\x0a'+(((_0x28fdc9=_0x3d4c16[_0x297e5b(0x3ce)])==null?void 0x0:_0x28fdc9[_0x297e5b(0x191)])||''));};window[_0x555523(0x312)](_0x555523(0x3ce),_0x5e2838),this['disposeWithMe'](()=>{const _0x26f2ed=_0x555523;window[_0x26f2ed(0xd2)]('error',_0x5e2838);});}[_0x3db800(0xcf)](){const _0x44b4cc=_0x3db800,_0x2d5b32=_0x572cba=>{const _0x7d09ec=_0x1e97;this[_0x7d09ec(0x1ad)](_0x7d09ec(0x3ce),'[Unhandled\x20Rejection]:\x20'+_0x572cba['reason']);};window[_0x44b4cc(0x312)](_0x44b4cc(0x219),_0x2d5b32),this[_0x44b4cc(0x168)](()=>{const _0x33ee80=_0x44b4cc;window[_0x33ee80(0xd2)](_0x33ee80(0x219),_0x2d5b32);});}[_0x3db800(0x35a)](){const _0x500c4f=_0x3db800,_0x276fa3=this[_0x500c4f(0x3b1)][_0x500c4f(0x3ce)][_0x500c4f(0x34f)](this[_0x500c4f(0x3b1)]);this[_0x500c4f(0x3b1)][_0x500c4f(0x3ce)]=(..._0x1a22af)=>{const _0x2ef675=_0x500c4f,_0x314364=_0x1a22af[_0x2ef675(0x209)](_0x2db0b0=>_0x2db0b0 instanceof Error?_0x2db0b0[_0x2ef675(0x243)]+'\x0a'+_0x2db0b0[_0x2ef675(0x191)]:String(_0x2db0b0))[_0x2ef675(0x2fc)]('\x20');this[_0x2ef675(0x1ad)](_0x2ef675(0x3ce),_0x2ef675(0x3a6)+_0x314364),_0x276fa3(..._0x1a22af);},this[_0x500c4f(0x168)](()=>{const _0x15c8c0=_0x500c4f;this['_logService'][_0x15c8c0(0x3ce)]=_0x276fa3;});}['_uploadLog'](_0x163a38,_0x73b23f){const _0x10b33b=_0x3db800;try{const _0x2f65e4={'userId':this['_memberID'],'logLabel':_0x163a38,'content':_0x73b23f};this[_0x10b33b(0x394)][_0x10b33b(0x3c4)](_0x10b33b(0x23b),{'body':_0x2f65e4})[_0x10b33b(0x34d)](()=>{});}catch{}}};_0x2c4f22=_0x2dd4ea([_0x44dad0(0x0,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x1da)])),_0x44dad0(0x1,_0x5721e1[_0x3db800(0x181)](_0x45e398[_0x3db800(0x254)])),_0x44dad0(0x2,_0x5721e1[_0x3db800(0x154)]),_0x44dad0(0x3,_0x5721e1[_0x3db800(0x181)](_0x115633[_0x3db800(0x28f)]))],_0x2c4f22);const _0x214486=_0x3db800(0x17a),_0x3b0f99={};var _0xbe2fdc=Object['getOwnPropertyDescriptor'],_0x4c288a=(_0x1538c8,_0x464c42,_0x52001c,_0x1d317b)=>{const _0x37fe3b=_0x3db800;for(var _0x2f2629=_0x1d317b>0x1?void 0x0:_0x1d317b?_0xbe2fdc(_0x464c42,_0x52001c):_0x464c42,_0x29370a=_0x1538c8[_0x37fe3b(0x165)]-0x1,_0x3bb265;_0x29370a>=0x0;_0x29370a--)(_0x3bb265=_0x1538c8[_0x29370a])&&(_0x2f2629=_0x3bb265(_0x2f2629)||_0x2f2629);return _0x2f2629;},_0x5458da=(_0x72f013,_0x56ea74)=>(_0x3a96a7,_0x23a592)=>_0x56ea74(_0x3a96a7,_0x23a592,_0x72f013);let _0x28b209=class{constructor(_0x3b4159,_0x1cbf23){const _0xa26181=_0x3db800;this[_0xa26181(0x20c)]=_0x3b4159,this['_renderManagerService']=_0x1cbf23;}[_0x3db800(0x2cc)](_0x2cb103){const _0x4c9b79=_0x3db800;this[_0x4c9b79(0x117)](_0x2cb103),this[_0x4c9b79(0x2bc)](_0x2cb103);}[_0x3db800(0x338)](_0x1b5bf6){const _0x508b4e=_0x3db800,{unitID:_0x4ae41f}=_0x1b5bf6,_0x12c5d2=this[_0x508b4e(0x125)][_0x508b4e(0x228)](_0x4ae41f)[_0x508b4e(0x134)](_0x45f825[_0x508b4e(0x2ad)]),{redoCache:_0x2445eb}=_0x12c5d2[_0x508b4e(0x374)]();if(_0x2445eb[_0x508b4e(0x165)]===0x0)return _0x1b5bf6;let _0x592973=_0x5721e1[_0x508b4e(0x386)][_0x508b4e(0x3c6)](_0x1b5bf6[_0x508b4e(0x1e2)][0x0]);for(let _0x1a8573=0x0;_0x1a8573<_0x2445eb[_0x508b4e(0x165)];_0x1a8573++){const _0x206f39={'id':_0x508b4e(0x30f),'params':{..._0x2445eb[_0x1a8573]}},_0x2c8435=this[_0x508b4e(0x20c)][_0x508b4e(0x100)](_0x592973,_0x206f39,!0x1);if(_0x195720['isTransformMutationFailure'](_0x2c8435))throw _0x2c8435[_0x508b4e(0x3ce)];_0x592973=_0x2c8435[_0x508b4e(0x25d)];}return{..._0x5721e1['Tools'][_0x508b4e(0x3c6)](_0x1b5bf6),'mutations':[_0x592973]};}[_0x3db800(0x117)](_0xe0dbab){const _0x1d2dcb=_0x3db800,{unitID:_0x64e31e}=_0xe0dbab,_0x2fe021=this['_renderManagerService']['getRenderById'](_0x64e31e)[_0x1d2dcb(0x134)](_0x45f825[_0x1d2dcb(0x2ad)]),{undoCache:_0x39017d,redoCache:_0x4da363}=_0x2fe021['getUndoRedoMutationParamsCache']();if(_0x39017d[_0x1d2dcb(0x165)]===0x0||_0x4da363[_0x1d2dcb(0x165)]===0x0)return;const _0x1cba50=[],_0x26dcea=[];let _0x3b368a=_0x5721e1[_0x1d2dcb(0x386)][_0x1d2dcb(0x3c6)](_0xe0dbab[_0x1d2dcb(0x1e2)][0x0]),_0x2c68ae=_0x5721e1['Tools'][_0x1d2dcb(0x3c6)](_0xe0dbab[_0x1d2dcb(0x1e2)][0x0]);for(let _0xa6745a=_0x39017d['length']-0x1;_0xa6745a>=0x0;_0xa6745a--){const _0x297531={'id':_0x1d2dcb(0x30f),'params':{..._0x39017d[_0xa6745a]}},_0x2b8782={'id':_0x1d2dcb(0x30f),'params':{..._0x4da363[_0xa6745a]}},_0x539110=this[_0x1d2dcb(0x20c)][_0x1d2dcb(0x100)](_0x3b368a,_0x297531,!0x1),_0x376eb3=this[_0x1d2dcb(0x20c)][_0x1d2dcb(0x100)](_0x2c68ae,_0x2b8782,!0x1);if(_0x195720['isTransformMutationFailure'](_0x539110))throw _0x539110['error'];if(_0x195720['isTransformMutationFailure'](_0x376eb3))throw _0x376eb3[_0x1d2dcb(0x3ce)];_0x1cba50[_0x1d2dcb(0x2c1)](_0x539110[_0x1d2dcb(0x3b8)][_0x1d2dcb(0x1bb)]),_0x26dcea[_0x1d2dcb(0x2c1)](_0x376eb3[_0x1d2dcb(0x3b8)]['params']),_0x3b368a=_0x539110[_0x1d2dcb(0x25d)],_0x2c68ae=_0x376eb3[_0x1d2dcb(0x25d)];}_0x2fe021[_0x1d2dcb(0x11b)]({'undoCache':_0x1cba50,'redoCache':_0x26dcea});}[_0x3db800(0x2bc)](_0xf36918){const _0x2ccdd2=_0x3db800,{unitID:_0x39d191}=_0xf36918,_0x1f4f59=this[_0x2ccdd2(0x125)][_0x2ccdd2(0x228)](_0x39d191)[_0x2ccdd2(0x134)](_0x45f825[_0x2ccdd2(0x2ad)]),_0x263ec9=_0x1f4f59['getActiveRange']();if(_0x263ec9==null)return;const _0x52bc01=[{'id':_0x2ccdd2(0x30f),'params':{'unitId':_0xf36918[_0x2ccdd2(0x153)],'actions':null,'textRanges':[_0x263ec9]}}],_0x189f9f=this[_0x2ccdd2(0x20c)][_0x2ccdd2(0x124)](_0xf36918,_0x52bc01);if(!_0x195720['isTransformMutationsWithChangesetSuccess'](_0x189f9f))throw _0x189f9f[_0x2ccdd2(0x3ce)];const _0x1c2b99=_0x189f9f[_0x2ccdd2(0x3b8)][0x0][_0x2ccdd2(0x1bb)][_0x2ccdd2(0x12d)];Array[_0x2ccdd2(0x3a1)](_0x1c2b99)&&_0x1c2b99['length']&&_0x1f4f59['setActiveRange'](_0x1c2b99[0x0]);}};_0x28b209=_0x4c288a([_0x5458da(0x0,_0x195720[_0x3db800(0x26e)]),_0x5458da(0x1,_0x585793['IRenderManagerService'])],_0x28b209);var _0x2cada1=Object[_0x3db800(0x2db)],_0x1a8553=(_0x5f3450,_0x32566a,_0x7a4d72,_0x106f91)=>{const _0x5085a8=_0x3db800;for(var _0x4bee19=_0x106f91>0x1?void 0x0:_0x106f91?_0x2cada1(_0x32566a,_0x7a4d72):_0x32566a,_0x34d60=_0x5f3450[_0x5085a8(0x165)]-0x1,_0x4bdc0f;_0x34d60>=0x0;_0x34d60--)(_0x4bdc0f=_0x5f3450[_0x34d60])&&(_0x4bee19=_0x4bdc0f(_0x4bee19)||_0x4bee19);return _0x4bee19;},_0x101d0b=(_0x1ab420,_0x317bd7)=>(_0x5e9e04,_0xe7c443)=>_0x317bd7(_0x5e9e04,_0xe7c443,_0x1ab420);let _0x13e633=class{constructor(_0x4ae166,_0x30638f,_0x371282){const _0x4613aa=_0x3db800;this[_0x4613aa(0xed)]=_0x4ae166,this[_0x4613aa(0x20c)]=_0x30638f,this[_0x4613aa(0x2ae)]=_0x371282;}['transformStateCache'](_0x4a3b69){const _0x1dc81a=_0x3db800;this[_0x1dc81a(0x2cd)](_0x4a3b69);}[_0x3db800(0x338)](_0xd535e9){const _0x582f53=_0x3db800,{unitID:_0x3f5f9d}=_0xd535e9,{collaboration:_0xa6e3b8}=this['_docStateChangeManagerService']['getStateCache'](_0x3f5f9d);if(_0xa6e3b8[_0x582f53(0x165)]===0x0)return _0xd535e9;let _0xb2161c=_0x5721e1[_0x582f53(0x386)][_0x582f53(0x3c6)](_0xd535e9[_0x582f53(0x1e2)][0x0]);for(let _0x10ac1f=0x0;_0x10ac1f<_0xa6e3b8[_0x582f53(0x165)];_0x10ac1f++){const _0x1420aa={'id':_0x582f53(0x30f),'params':{'unitId':_0xa6e3b8[_0x10ac1f][_0x582f53(0x2f4)],..._0xa6e3b8[_0x10ac1f][_0x582f53(0x269)]}},_0x718cd3=this[_0x582f53(0x20c)]['transformMutation'](_0xb2161c,_0x1420aa,!0x1);if(_0x195720[_0x582f53(0x106)](_0x718cd3))throw _0x718cd3['error'];_0xb2161c=_0x718cd3[_0x582f53(0x25d)];}return{..._0x5721e1[_0x582f53(0x386)][_0x582f53(0x3c6)](_0xd535e9),'mutations':[_0xb2161c]};}['_transformHistoryAndStateStack'](_0x2a3054){const _0x5cab57=_0x3db800,{unitID:_0x4c67ea}=_0x2a3054,{history:_0x351aa5,collaboration:_0x4d1466}=this[_0x5cab57(0x2ae)]['getStateCache'](_0x4c67ea);if(_0x351aa5[_0x5cab57(0x165)]===0x0&&_0x4d1466['length']===0x0)return;const _0x185f5d=[],_0x17ec51=[];let _0x4bce24=_0x5721e1[_0x5cab57(0x386)][_0x5cab57(0x3c6)](_0x2a3054[_0x5cab57(0x1e2)][0x0]),_0x66ae64=_0x5721e1['Tools'][_0x5cab57(0x3c6)](_0x2a3054[_0x5cab57(0x1e2)][0x0]);for(let _0x370574=_0x351aa5[_0x5cab57(0x165)]-0x1;_0x370574>=0x0;_0x370574--){const _0x502acd={'id':_0x5cab57(0x30f),'params':{'unitId':_0x351aa5[_0x370574]['unitId'],..._0x351aa5[_0x370574]['undoState']}},_0x2d0bb5={'id':_0x5cab57(0x30f),'params':{'unitId':_0x351aa5[_0x370574][_0x5cab57(0x2f4)],..._0x351aa5[_0x370574][_0x5cab57(0x269)]}},_0x11b234=this[_0x5cab57(0x20c)][_0x5cab57(0x100)](_0x4bce24,_0x502acd,!0x1),_0x40b33c=this[_0x5cab57(0x20c)][_0x5cab57(0x100)](_0x66ae64,_0x2d0bb5,!0x1);if(_0x195720[_0x5cab57(0x106)](_0x11b234))throw _0x11b234['error'];if(_0x195720[_0x5cab57(0x106)](_0x40b33c))throw _0x40b33c[_0x5cab57(0x3ce)];_0x185f5d['unshift']({..._0x351aa5[_0x370574],'undoState':_0x11b234[_0x5cab57(0x3b8)][_0x5cab57(0x1bb)],'redoState':_0x40b33c[_0x5cab57(0x3b8)][_0x5cab57(0x1bb)]}),_0x4bce24=_0x11b234['m1Prime'],_0x66ae64=_0x40b33c['m1Prime'];}_0x4bce24=_0x5721e1[_0x5cab57(0x386)][_0x5cab57(0x3c6)](_0x2a3054[_0x5cab57(0x1e2)][0x0]),_0x66ae64=_0x5721e1[_0x5cab57(0x386)][_0x5cab57(0x3c6)](_0x2a3054[_0x5cab57(0x1e2)][0x0]);for(let _0x4c6218=_0x4d1466[_0x5cab57(0x165)]-0x1;_0x4c6218>=0x0;_0x4c6218--){const _0x4636f3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4d1466[_0x4c6218][_0x5cab57(0x2f4)],..._0x4d1466[_0x4c6218][_0x5cab57(0x3c3)]}},_0x374a15={'id':_0x5cab57(0x30f),'params':{'unitId':_0x4d1466[_0x4c6218][_0x5cab57(0x2f4)],..._0x4d1466[_0x4c6218]['redoState']}},_0x54678e=this[_0x5cab57(0x20c)]['transformMutation'](_0x4bce24,_0x4636f3,!0x1),_0x63e0bd=this['_transformService'][_0x5cab57(0x100)](_0x66ae64,_0x374a15,!0x1);if(_0x195720[_0x5cab57(0x106)](_0x54678e))throw _0x54678e[_0x5cab57(0x3ce)];if(_0x195720[_0x5cab57(0x106)](_0x63e0bd))throw _0x63e0bd[_0x5cab57(0x3ce)];_0x17ec51['unshift']({..._0x4d1466[_0x4c6218],'undoState':_0x54678e['m2Prime'][_0x5cab57(0x1bb)],'redoState':_0x63e0bd[_0x5cab57(0x3b8)][_0x5cab57(0x1bb)]}),_0x4bce24=_0x54678e[_0x5cab57(0x25d)],_0x66ae64=_0x63e0bd[_0x5cab57(0x25d)];}this[_0x5cab57(0x2ae)][_0x5cab57(0x293)](_0x4c67ea,{'history':_0x185f5d,'collaboration':_0x17ec51});}};_0x13e633=_0x1a8553([_0x101d0b(0x0,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x1da)])),_0x101d0b(0x1,_0x195720[_0x3db800(0x26e)]),_0x101d0b(0x2,_0x5721e1[_0x3db800(0x181)](_0x45f825[_0x3db800(0x3bf)]))],_0x13e633);var _0x1275bc=Object[_0x3db800(0x2db)],_0x5219ca=(_0x3f206d,_0x5c2e7b,_0x519949,_0x27fece)=>{const _0x1f17b8=_0x3db800;for(var _0x523b03=_0x27fece>0x1?void 0x0:_0x27fece?_0x1275bc(_0x5c2e7b,_0x519949):_0x5c2e7b,_0x3552fb=_0x3f206d[_0x1f17b8(0x165)]-0x1,_0x419d8e;_0x3552fb>=0x0;_0x3552fb--)(_0x419d8e=_0x3f206d[_0x3552fb])&&(_0x523b03=_0x419d8e(_0x523b03)||_0x523b03);return _0x523b03;},_0x17b0e5=(_0x1d6a7f,_0x28c58c)=>(_0x374364,_0xd45bbe)=>_0x28c58c(_0x374364,_0xd45bbe,_0x1d6a7f);let _0x129f97=class{constructor(_0xcf8206,_0x1595b3){const _0x4bef07=_0x3db800;this[_0x4bef07(0xed)]=_0xcf8206,this['_transformService']=_0x1595b3;}[_0x3db800(0x280)](_0x301ed9){const _0x27313e=_0x3db800;var _0x10ea41;const _0x54f0bc=this[_0x27313e(0xed)]['get'](_0x9d8fba[_0x27313e(0x2c4)]),_0x4d0532=(_0x10ea41=_0x54f0bc[_0x27313e(0x260)]())!=null?_0x10ea41:[];if(_0x4d0532[_0x27313e(0x165)]===0x0)return;const _0x43327a=_0x301ed9[_0x27313e(0x153)],_0x43143b=[{'id':_0x27313e(0x30f),'params':{'unitId':_0x43327a,'actions':null,'textRanges':_0x4d0532}}],_0x173a74=this[_0x27313e(0x20c)][_0x27313e(0x124)](_0x301ed9,_0x43143b);if(!_0x195720[_0x27313e(0x31a)](_0x173a74))throw _0x173a74[_0x27313e(0x3ce)];const _0xd46133=_0x173a74[_0x27313e(0x3b8)][0x0][_0x27313e(0x1bb)][_0x27313e(0x12d)];Array[_0x27313e(0x3a1)](_0xd46133)&&_0xd46133[_0x27313e(0x165)]&&_0x54f0bc[_0x27313e(0x26b)](_0xd46133,{'unitId':_0x43327a,'subUnitId':_0x43327a},!0x1);}};_0x129f97=_0x5219ca([_0x17b0e5(0x0,_0x5721e1[_0x3db800(0x181)](_0x5721e1['Injector'])),_0x17b0e5(0x1,_0x195720[_0x3db800(0x26e)])],_0x129f97);var _0xbcf06e=Object[_0x3db800(0x2db)],_0x1741b5=(_0x274d15,_0x896981,_0x3bdce3,_0x26ffa3)=>{for(var _0x3a14ef=_0x26ffa3>0x1?void 0x0:_0x26ffa3?_0xbcf06e(_0x896981,_0x3bdce3):_0x896981,_0x27d6a=_0x274d15['length']-0x1,_0x48c472;_0x27d6a>=0x0;_0x27d6a--)(_0x48c472=_0x274d15[_0x27d6a])&&(_0x3a14ef=_0x48c472(_0x3a14ef)||_0x3a14ef);return _0x3a14ef;},_0x2068e7=(_0xe33c87,_0x5755b6)=>(_0x33a03a,_0x40a0a4)=>_0x5755b6(_0x33a03a,_0x40a0a4,_0xe33c87);let _0xc6cb38=class extends _0x5721e1[_0x3db800(0x27b)]{constructor(_0x2c34be,_0x84ea2a,_0x1cab77,_0x4e3566,_0x28252c,_0x5da297,_0x4a4553,_0x31178c){const _0x218c40=_0x3db800;super(),_0x11fc09(this,'_status$',new _0x3c46fe[(_0x218c40(0x346))](_0x115633[_0x218c40(0x36f)][_0x218c40(0x246)])),(this[_0x218c40(0x2ae)]=_0x2c34be,this['_collaborationController']=_0x84ea2a,this[_0x218c40(0x2a6)]=_0x1cab77,this[_0x218c40(0x366)]=_0x4e3566,this[_0x218c40(0x3b3)]=_0x28252c,this['_docSyncEditingCollabCursorService']=_0x5da297,this[_0x218c40(0x2b7)]=_0x4a4553,this[_0x218c40(0x1fb)]=_0x31178c,this[_0x218c40(0x2a4)]());}[_0x3db800(0x2a4)](){const _0x4b8cbd=_0x3db800;this[_0x4b8cbd(0x168)](this['_collaborationController'][_0x4b8cbd(0x193)][_0x4b8cbd(0x2ce)](_0x1b60d2=>{const _0x1027d8=_0x4b8cbd,_0x123027=this[_0x1027d8(0x2ae)]['docStateChange$'][_0x1027d8(0x2ce)](_0x356699=>{const _0x21f510=_0x1027d8;if(_0x356699==null)return;const {unitId:_0x1a7aa5,redoState:_0x48c2c1,commandId:_0x43e2b4}=_0x356699;if(_0x1a7aa5!==_0x1b60d2['unitID'])return;const _0x198cec={'id':_0x43e2b4,'type':_0x5721e1[_0x21f510(0x27e)][_0x21f510(0x143)],'params':{'unitId':_0x1a7aa5,'actions':_0x48c2c1[_0x21f510(0x14b)],'textRanges':null}};_0x1b60d2[_0x21f510(0x1f8)](_0x198cec);});if(_0x1b60d2['disposeWithMe'](_0x123027),_0x1b60d2 instanceof _0x115633[_0x1027d8(0x24a)]){const _0x377d36={'onTransformIME':_0x4afe35=>this[_0x1027d8(0x2a6)][_0x1027d8(0x2cc)](_0x4afe35),'onTransformState':_0x483671=>this[_0x1027d8(0x366)][_0x1027d8(0x23d)](_0x483671),'onTransformSelections':_0x2bccc4=>this[_0x1027d8(0x3b3)][_0x1027d8(0x280)](_0x2bccc4),'onSyncEditingCollabCursor':_0x2dfcfa=>this[_0x1027d8(0x2fa)][_0x1027d8(0x231)](_0x2dfcfa),'onTransformRemoteChangesetByIMECache':_0x467f0a=>this['_docTransformIMECacheService'][_0x1027d8(0x338)](_0x467f0a),'onTransformRemoteChangesetByStateCache':_0x419913=>this['_docTransformStateCacheService'][_0x1027d8(0x338)](_0x419913)};_0x1b60d2[_0x1027d8(0x1f2)](_0x377d36);}}));}};_0xc6cb38=_0x1741b5([_0x2068e7(0x0,_0x5721e1['Inject'](_0x45f825[_0x3db800(0x3bf)])),_0x2068e7(0x1,_0x5721e1[_0x3db800(0x181)](_0x115633['CollaborationController'])),_0x2068e7(0x2,_0x5721e1[_0x3db800(0x181)](_0x28b209)),_0x2068e7(0x3,_0x5721e1[_0x3db800(0x181)](_0x13e633)),_0x2068e7(0x4,_0x5721e1['Inject'](_0x129f97)),_0x2068e7(0x5,_0x5721e1[_0x3db800(0x181)](_0x41a578)),_0x2068e7(0x6,_0xa1d841[_0x3db800(0x355)]),_0x2068e7(0x7,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x324)]))],_0xc6cb38);var _0xb66710=(_0x422ec8=>(_0x422ec8[_0x422ec8[_0x3db800(0x13c)]=0x0]=_0x3db800(0x13c),_0x422ec8[_0x422ec8['OK']=0x1]='OK',_0x422ec8[_0x422ec8[_0x3db800(0x173)]=0x2]=_0x3db800(0x173),_0x422ec8[_0x422ec8['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x422ec8[_0x422ec8[_0x3db800(0x3d0)]=0x4]=_0x3db800(0x3d0),_0x422ec8[_0x422ec8[_0x3db800(0x18a)]=0x5]='UNAUTHENTICATED',_0x422ec8[_0x422ec8[_0x3db800(0x326)]=0x6]=_0x3db800(0x326),_0x422ec8[_0x422ec8['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x422ec8[_0x422ec8[_0x3db800(0x232)]=0x8]='TOO_MANY_REQUESTS',_0x422ec8[_0x422ec8['COMPLETION_FINISHED']=0x9]=_0x3db800(0x375),_0x422ec8[_0x422ec8['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x422ec8[_0x422ec8[_0x3db800(0x3a7)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x422ec8[_0x422ec8[_0x3db800(0x1e8)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x422ec8[_0x422ec8[_0x3db800(0x2f0)]=0xd]=_0x3db800(0x2f0),_0x422ec8[_0x422ec8[_0x3db800(0x235)]=0xe]=_0x3db800(0x235),_0x422ec8[_0x422ec8[_0x3db800(0x28a)]=0xf]=_0x3db800(0x28a),_0x422ec8[_0x422ec8[_0x3db800(0x3ac)]=0x10]=_0x3db800(0x3ac),_0x422ec8[_0x422ec8[_0x3db800(0x149)]=0x64]=_0x3db800(0x149),_0x422ec8[_0x422ec8[_0x3db800(0x2a1)]=0x65]=_0x3db800(0x2a1),_0x422ec8[_0x422ec8[_0x3db800(0x14a)]=0xc9]=_0x3db800(0x14a),_0x422ec8[_0x422ec8[_0x3db800(0x22b)]=0xca]=_0x3db800(0x22b),_0x422ec8[_0x422ec8[_0x3db800(0x206)]=0x1389]=_0x3db800(0x206),_0x422ec8[_0x422ec8['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3db800(0x205),_0x422ec8[_0x422ec8[_0x3db800(0x197)]=0x1772]=_0x3db800(0x197),_0x422ec8[_0x422ec8['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x3db800(0x22d),_0x422ec8[_0x422ec8[_0x3db800(0x35d)]=0x1b59]='APPLY_REJECT',_0x422ec8[_0x422ec8['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x3db800(0xee),_0x422ec8[_0x422ec8[_0x3db800(0xf7)]=0x1b5b]=_0x3db800(0xf7),_0x422ec8[_0x422ec8[_0x3db800(0x2d8)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x422ec8[_0x422ec8[_0x3db800(0x1af)]=0x1b5d]='APPLY_DUPLICATED',_0x422ec8[_0x422ec8['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3db800(0xf1),_0x422ec8[_0x422ec8[_0x3db800(0x16d)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x422ec8[_0x422ec8[_0x3db800(0x256)]=0x232a]=_0x3db800(0x256),_0x422ec8[_0x422ec8[_0x3db800(0x27a)]=0x232b]=_0x3db800(0x27a),_0x422ec8[_0x422ec8['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x422ec8[_0x422ec8['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3db800(0x310),_0x422ec8[_0x422ec8['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x422ec8[_0x422ec8[_0x3db800(0x2ba)]=0x2712]=_0x3db800(0x2ba),_0x422ec8[_0x422ec8[_0x3db800(0x1b5)]=0x2713]=_0x3db800(0x1b5),_0x422ec8[_0x422ec8[_0x3db800(0x33e)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x422ec8[_0x422ec8[_0x3db800(0x225)]=0x271a]=_0x3db800(0x225),_0x422ec8[_0x422ec8[_0x3db800(0xe9)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x422ec8[_0x422ec8[_0x3db800(0xff)]=0x271c]=_0x3db800(0xff),_0x422ec8[_0x422ec8[_0x3db800(0x28b)]=0x271d]=_0x3db800(0x28b),_0x422ec8[_0x422ec8['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x3db800(0x26d),_0x422ec8[_0x422ec8[_0x3db800(0x111)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x422ec8[_0x422ec8['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x3db800(0x1c7),_0x422ec8[_0x422ec8[_0x3db800(0x3d2)]=0x2af9]=_0x3db800(0x3d2),_0x422ec8[_0x422ec8[_0x3db800(0x167)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x422ec8[_0x422ec8['INVALID_INVITE_CODE']=0x2ee2]=_0x3db800(0x2c7),_0x422ec8[_0x422ec8['INVITE_CODE_REQUIRED']=0x2ee3]=_0x3db800(0x1b6),_0x422ec8[_0x422ec8[_0x3db800(0x369)]=0x2ee4]=_0x3db800(0x369),_0x422ec8[_0x422ec8[_0x3db800(0x216)]=0x2ee5]=_0x3db800(0x216),_0x422ec8[_0x422ec8['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x422ec8[_0x422ec8[_0x3db800(0x26c)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x422ec8[_0x422ec8['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3db800(0x1f3),_0x422ec8[_0x422ec8['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x3db800(0xf3),_0x422ec8[_0x422ec8[_0x3db800(0x300)]=0x36b2]=_0x3db800(0x300),_0x422ec8[_0x422ec8[_0x3db800(0x27d)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x422ec8[_0x422ec8[_0x3db800(0x15e)]=0x36b4]=_0x3db800(0x15e),_0x422ec8[_0x422ec8[_0x3db800(0x2d4)]=0x36b5]=_0x3db800(0x2d4),_0x422ec8[_0x422ec8[_0x3db800(0x1df)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x422ec8[_0x422ec8[_0x3db800(0x29b)]=0x36b7]=_0x3db800(0x29b),_0x422ec8[_0x422ec8['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x3db800(0xeb),_0x422ec8[_0x422ec8['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x422ec8[_0x422ec8[_0x3db800(0x196)]=0x3716]=_0x3db800(0x196),_0x422ec8[_0x422ec8['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x3db800(0x1db),_0x422ec8[_0x422ec8[_0x3db800(0x35f)]=0x37dd]=_0x3db800(0x35f),_0x422ec8[_0x422ec8[_0x3db800(0xdb)]=0x3a99]=_0x3db800(0xdb),_0x422ec8[_0x422ec8[_0x3db800(0x133)]=0x3a9a]=_0x3db800(0x133),_0x422ec8[_0x422ec8[_0x3db800(0x172)]=0x3a9b]=_0x3db800(0x172),_0x422ec8[_0x422ec8[_0x3db800(0x1eb)]=0x3a9c]=_0x3db800(0x1eb),_0x422ec8[_0x422ec8[_0x3db800(0xe6)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x422ec8[_0x422ec8[_0x3db800(0x2a8)]=0x3a9e]=_0x3db800(0x2a8),_0x422ec8[_0x422ec8[_0x3db800(0x396)]=0x3a9f]=_0x3db800(0x396),_0x422ec8[_0x422ec8[_0x3db800(0x327)]=0x3e81]=_0x3db800(0x327),_0x422ec8[_0x422ec8[_0x3db800(0x2da)]=-0x1]=_0x3db800(0x2da),_0x422ec8))(_0xb66710||{});function _0x34b9a7(_0x47efd1){const _0x580e78=_0x3db800;var _0x42d23e,_0x4ecbb0;const _0x27e846=(_0x42d23e=_0x47efd1[_0x580e78(0x3c0)])==null?void 0x0:_0x42d23e[_0x580e78(0x329)],_0x805d6f=((_0x4ecbb0=_0x47efd1[_0x580e78(0x3c0)])==null?void 0x0:_0x4ecbb0[_0x580e78(0x12e)])||0x0;return _0x27e846===_0x26196d[_0x580e78(0x3bb)]['START_CALCULATION']&&_0x805d6f>0x0;}function _0x6800d9(_0x22c524){const _0x55e0d9=_0x3db800;return _0x22c524[_0x55e0d9(0x18c)]===_0x26196d[_0x55e0d9(0x291)][_0x55e0d9(0x3c9)];}var _0x208271=Object['getOwnPropertyDescriptor'],_0x408852=(_0x1d1394,_0x575a87,_0x14ddb4,_0x56e504)=>{for(var _0x2c302f=_0x56e504>0x1?void 0x0:_0x56e504?_0x208271(_0x575a87,_0x14ddb4):_0x575a87,_0x12a2bc=_0x1d1394['length']-0x1,_0x4b29b3;_0x12a2bc>=0x0;_0x12a2bc--)(_0x4b29b3=_0x1d1394[_0x12a2bc])&&(_0x2c302f=_0x4b29b3(_0x2c302f)||_0x2c302f);return _0x2c302f;},_0x387b6a=(_0x21acf3,_0xcc1699)=>(_0x2569b3,_0x48955c)=>_0xcc1699(_0x2569b3,_0x48955c,_0x21acf3);const _0x3a939f=_0x3db800(0x379),_0x95a99a=_0x3db800(0x1d3),_0x268bfd=_0x3db800(0x176);let _0x474fa3=class extends _0x5721e1[_0x3db800(0x27b)]{constructor(_0x4d2d5e,_0x402dd2,_0x30e7c8,_0x4b9b3d,_0xe222a1,_0x2cbf29,_0x38e331){const _0x4d2fb4=_0x3db800;super(),_0x11fc09(this,_0x4d2fb4(0x17f),null),_0x11fc09(this,_0x4d2fb4(0x13a),0x0),_0x11fc09(this,'_currentUsage',0x0),_0x11fc09(this,_0x4d2fb4(0x3c7),[]),_0x11fc09(this,_0x4d2fb4(0x1d2),0x0),(this[_0x4d2fb4(0x2b7)]=_0x4d2d5e,this[_0x4d2fb4(0x3a0)]=_0x402dd2,this['_configService']=_0x30e7c8,this[_0x4d2fb4(0x394)]=_0x4b9b3d,this[_0x4d2fb4(0x122)]=_0xe222a1,this['_logService']=_0x2cbf29,this['_localeService']=_0x38e331,this[_0x4d2fb4(0xdf)]());}[_0x3db800(0xdf)](){const _0x49be53=_0x3db800;this[_0x49be53(0x168)](this[_0x49be53(0x3a0)][_0x49be53(0x2b0)]((_0x49a95d,_0x2254f4)=>{const _0x26e752=_0x49be53;var _0x829b9f;if(_0x49a95d['id']!==_0x26196d[_0x26e752(0x204)]['id'])return;const _0x334320=_0x49a95d[_0x26e752(0x1bb)];if(!this[_0x26e752(0x19d)]((_0x829b9f=_0x334320[_0x26e752(0x2de)])!=null?_0x829b9f:[]))return;if(!this[_0x26e752(0x2cb)]())throw this[_0x26e752(0x277)](_0x49a95d,_0x2254f4),this[_0x26e752(0x113)](),new _0x5721e1[(_0x26e752(0x1f9))]();})),this[_0x49be53(0x168)](this['_commandService'][_0x49be53(0x10b)]((_0xfe79d5,_0x2ed63d)=>{const _0x1b6aa4=_0x49be53;if(_0xfe79d5['id']!==_0x26196d[_0x1b6aa4(0x315)]['id'])return;const _0x37dab6=_0xfe79d5[_0x1b6aa4(0x1bb)];if(_0x34b9a7(_0x37dab6)){const _0x52154c=_0x5721e1[_0x1b6aa4(0x336)]();this[_0x1b6aa4(0x3c7)]['push'](_0x52154c),this[_0x1b6aa4(0x30b)](_0x52154c);}else{if(_0x6800d9(_0x37dab6)&&this[_0x1b6aa4(0x3c7)]['length']>0x0){const _0x49a46b=this[_0x1b6aa4(0x3c7)][_0x1b6aa4(0x222)]();this[_0x1b6aa4(0x3b5)](_0x49a46b);}}}));}['dispose'](){const _0x5d0ff4=_0x3db800;super['dispose'](),this[_0x5d0ff4(0xe5)](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x5d0ff4(0x13a)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3db800(0x277)](_0x54e661,_0x31251f){const _0x421474=_0x3db800;for(let _0x4dfff0=0x0;_0x4dfff0<0x1e;_0x4dfff0++)try{if(await this['_getFormulaLimitStatus'](),this[_0x421474(0x2cb)]()){this['_applyCommand'](_0x54e661,_0x31251f),this[_0x421474(0x2b7)][_0x421474(0x2b1)]({'content':this[_0x421474(0x1fb)]['t'](_0x421474(0x307)),'type':_0x31d403[_0x421474(0x3ca)][_0x421474(0x245)]});return;}await new Promise(_0x20e8d5=>{const _0x8cfb31=_0x421474;this[_0x8cfb31(0x17f)]=window[_0x8cfb31(0x10f)](_0x20e8d5,0x3e8);});}catch(_0x424d3f){this[_0x421474(0x3b1)][_0x421474(0x3ce)](_0x424d3f);}this[_0x421474(0x2b7)][_0x421474(0x2b1)]({'content':this['_localeService']['t'](_0x421474(0x12a)),'type':_0x31d403[_0x421474(0x3ca)][_0x421474(0x131)]});}[_0x3db800(0x360)](_0x310c92,_0x7bb10a){const _0x288f2b=_0x3db800;try{this[_0x288f2b(0x3a0)]['executeCommand'](_0x310c92['id'],_0x310c92[_0x288f2b(0x1bb)],_0x7bb10a);}catch(_0x54e018){this[_0x288f2b(0x3b1)][_0x288f2b(0x3ce)](_0x54e018);}}[_0x3db800(0x1fc)](_0x1e7132,_0x1399af){const _0x1c6ef4=_0x3db800;_0x1399af<this[_0x1c6ef4(0x1d2)]||(this['_lastResponseTimestamp']=_0x1399af,this['_maxFormulaLimit']=Number[_0x1c6ef4(0x145)](_0x1e7132[_0x1c6ef4(0x1c1)]),this[_0x1c6ef4(0x2a0)]=Number[_0x1c6ef4(0x145)](_0x1e7132[_0x1c6ef4(0x333)]));}async[_0x3db800(0x30b)](_0x56f928){const _0x1cd39b=_0x3db800;var _0x4452e1,_0x52c50a;const _0x161d2b=Date[_0x1cd39b(0x18d)]();try{const _0x31436d=((_0x4452e1=this[_0x1cd39b(0x2b3)][_0x1cd39b(0x1f6)](_0x115633[_0x1cd39b(0x351)]))==null?void 0x0:_0x4452e1[_0x1cd39b(0x1fa)])||_0x95a99a,_0x143e4d=(await this['_httpService']['post'](_0x31436d,{'body':JSON[_0x1cd39b(0x2c2)]({'taskId':_0x56f928})}))['body'];if(((_0x52c50a=_0x143e4d[_0x1cd39b(0x3ce)])==null?void 0x0:_0x52c50a[_0x1cd39b(0x306)])!==_0xb66710['OK'])return;this[_0x1cd39b(0x1fc)](_0x143e4d[_0x1cd39b(0x174)],_0x161d2b);}catch(_0x449258){this[_0x1cd39b(0x3b1)][_0x1cd39b(0x3ce)](_0x449258);}}async[_0x3db800(0x1a8)](_0x347348){const _0x967097=_0x3db800;var _0x1483a0,_0x57205d;const _0x1c619f=Date[_0x967097(0x18d)]();try{const _0x3db7a8=((_0x1483a0=this[_0x967097(0x2b3)]['getConfig'](_0x115633[_0x967097(0x351)]))==null?void 0x0:_0x1483a0[_0x967097(0x19e)])||_0x3a939f,_0x3e2a2a=_0x347348?_0x3db7a8+'?taskId='+encodeURIComponent(_0x347348):_0x3db7a8,_0xde02a5=(await this[_0x967097(0x394)][_0x967097(0x31c)](_0x3e2a2a))[_0x967097(0x14e)];if(((_0x57205d=_0xde02a5[_0x967097(0x3ce)])==null?void 0x0:_0x57205d[_0x967097(0x306)])!==_0xb66710['OK'])return;this[_0x967097(0x1fc)](_0xde02a5['limitInfo'],_0x1c619f);}catch(_0x20cd7d){this[_0x967097(0x3b1)][_0x967097(0x3ce)](_0x20cd7d);}}async[_0x3db800(0x3b5)](_0xfb1547){const _0x3498bc=_0x3db800;var _0x56e93e,_0x3dff1c;const _0x529102=Date[_0x3498bc(0x18d)]();try{const _0x5c700c=((_0x56e93e=this[_0x3498bc(0x2b3)][_0x3498bc(0x1f6)](_0x115633[_0x3498bc(0x351)]))==null?void 0x0:_0x56e93e['releaseFormulaLimitUrl'])||_0x268bfd,_0x29b517=(await this[_0x3498bc(0x394)]['post'](_0x5c700c,{'body':JSON[_0x3498bc(0x2c2)]({'taskId':_0xfb1547})}))[_0x3498bc(0x14e)];if(((_0x3dff1c=_0x29b517[_0x3498bc(0x3ce)])==null?void 0x0:_0x3dff1c['code'])!==_0xb66710['OK'])return;this[_0x3498bc(0x1fc)](_0x29b517['limitInfo'],_0x529102);}catch(_0x34368a){this[_0x3498bc(0x3b1)]['error'](_0x34368a);}}[_0x3db800(0x2cb)](){const _0x583711=_0x3db800;return this[_0x583711(0x13a)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}['_clearPolling'](){const _0xe5d54f=_0x3db800;this[_0xe5d54f(0x17f)]&&(clearTimeout(this['_pollingInterval']),this[_0xe5d54f(0x17f)]=null);}[_0x3db800(0x113)](){const _0x1e4dea=_0x3db800;this[_0x1e4dea(0x2b7)]['show']({'content':this[_0x1e4dea(0x1fb)]['t']('formula.calculation.waiting'),'type':_0x31d403[_0x1e4dea(0x3ca)][_0x1e4dea(0xe1)]});}[_0x3db800(0x19d)](_0x14cfeb){const _0x5c19b8=_0x3db800;for(const _0x359290 of _0x14cfeb){const {unitId:_0x105acf,sheetId:_0x5d098b,range:_0x506216}=_0x359290,_0x3072b1=this[_0x5c19b8(0x122)][_0x5c19b8(0xe4)](_0x105acf);if(!_0x3072b1)continue;const _0x72aa3c=_0x3072b1['getSheetBySheetId'](_0x5d098b);if(!_0x72aa3c)continue;const _0x5e3426=_0x72aa3c['getCellMatrix']();for(let _0x48cb31=_0x506216[_0x5c19b8(0x32e)];_0x48cb31<=_0x506216[_0x5c19b8(0x37a)];_0x48cb31++)for(let _0x318aa3=_0x506216[_0x5c19b8(0x30a)];_0x318aa3<=_0x506216[_0x5c19b8(0xd8)];_0x318aa3++){const _0x190b07=_0x5e3426[_0x5c19b8(0x2f2)](_0x48cb31,_0x318aa3);if(_0x190b07&&(_0x5721e1[_0x5c19b8(0xf2)](_0x190b07['f'])||_0x5721e1[_0x5c19b8(0x3ba)](_0x190b07['si'])))return!0x0;}}return!0x1;}};_0x474fa3=_0x408852([_0x387b6a(0x0,_0x5721e1[_0x3db800(0x181)](_0xa1d841[_0x3db800(0x355)])),_0x387b6a(0x1,_0x5721e1[_0x3db800(0x2e2)]),_0x387b6a(0x2,_0x5721e1['IConfigService']),_0x387b6a(0x3,_0x5721e1[_0x3db800(0x181)](_0x45e398[_0x3db800(0x254)])),_0x387b6a(0x4,_0x5721e1[_0x3db800(0x24f)]),_0x387b6a(0x5,_0x5721e1[_0x3db800(0x154)]),_0x387b6a(0x6,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x324)]))],_0x474fa3);var _0x57f33c=Object[_0x3db800(0x2db)],_0x26c888=(_0x635945,_0x97aa1a,_0x17bf7a,_0x4fd7e1)=>{const _0x3f8654=_0x3db800;for(var _0x488590=_0x4fd7e1>0x1?void 0x0:_0x4fd7e1?_0x57f33c(_0x97aa1a,_0x17bf7a):_0x97aa1a,_0xba986a=_0x635945[_0x3f8654(0x165)]-0x1,_0x3bfc67;_0xba986a>=0x0;_0xba986a--)(_0x3bfc67=_0x635945[_0xba986a])&&(_0x488590=_0x3bfc67(_0x488590)||_0x488590);return _0x488590;},_0x3bad10=(_0x2f0dcf,_0x1d0373)=>(_0x443e7c,_0x23e7e4)=>_0x1d0373(_0x443e7c,_0x23e7e4,_0x2f0dcf);let _0x87e2af=class extends _0x5721e1[_0x3db800(0x27b)]{constructor(_0x211a7f,_0x1f113e,_0x2b3218){const _0x9e7c9e=_0x3db800;super(),_0x11fc09(this,'_cachedData',new Map()),_0x11fc09(this,_0x9e7c9e(0x284),new Map()),_0x11fc09(this,'_disabled',!0x1),(this['_configService']=_0x211a7f,this[_0x9e7c9e(0x1c3)]=_0x1f113e,this['_revisionService']=_0x2b3218);}[_0x3db800(0x17e)](){const _0x2446c6=_0x3db800;this[_0x2446c6(0x397)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x3db800(0x2c0)](){return this['_saveTaskMap'];}['dispose'](){const _0x3e8ee9=_0x3db800;this[_0x3e8ee9(0x3cb)]()[_0x3e8ee9(0x1d6)](()=>super[_0x3e8ee9(0x37d)]());}async[_0x3db800(0x1be)](_0x114387){const _0x30f9ed=_0x3db800;return this['_disabled']?null:this['_localStorageService'][_0x30f9ed(0x2ff)](_0x115633['getLocalCacheKey'](_0x114387));}async[_0x3db800(0x286)](_0x6b7b04,_0x4062fa){const _0x225fa4=_0x3db800;return!!this[_0x225fa4(0x1c3)][_0x225fa4(0x335)](_0x6b7b04,_0x4062fa);}[_0x3db800(0x2f7)](_0x3fcc15,_0x14022d,_0x11389f,_0x565761){const _0x518366=_0x3db800,_0x14efd5=this[_0x518366(0x25c)][_0x518366(0x177)](_0x3fcc15);this[_0x518366(0x1a0)][_0x518366(0x10c)](_0x3fcc15,{'unitID':_0x3fcc15,'type':_0x14022d,'awaitingChangeset':_0x11389f,'mutations':_0x565761,'rev':_0x14efd5}),this[_0x518366(0x284)][_0x518366(0x101)](_0x3fcc15)||this[_0x518366(0x3bd)](_0x3fcc15);}[_0x3db800(0x3bd)](_0xa701a){const _0x47d102=_0x3db800,_0x169dc9=this['_getSaveTimeout']();_0x169dc9===0x0?this[_0x47d102(0x253)](_0xa701a):this[_0x47d102(0x284)][_0x47d102(0x10c)](_0xa701a,setTimeout(()=>this['_saveCache'](_0xa701a),_0x169dc9));}[_0x3db800(0x175)](){const _0x5e5efe=_0x3db800;var _0x2fba4e;return(_0x2fba4e=this['_configService'][_0x5e5efe(0x1f6)](_0x115633[_0x5e5efe(0x350)]))!=null?_0x2fba4e:_0x115633[_0x5e5efe(0x1c0)];}[_0x3db800(0x253)](_0x3080a3){const _0x39496b=_0x3db800,_0x670ebe=this[_0x39496b(0x284)][_0x39496b(0x31c)](_0x3080a3);return _0x670ebe!==void 0x0&&window[_0x39496b(0x16c)](_0x670ebe),this[_0x39496b(0x1c3)]['setItem'](_0x115633[_0x39496b(0x361)](_0x3080a3),this[_0x39496b(0x1a0)]['get'](_0x3080a3))['then'](()=>this[_0x39496b(0x284)][_0x39496b(0xd6)](_0x3080a3));}async[_0x3db800(0x3cb)](){const _0x5bb2f7=_0x3db800,_0xd8ee99=[];this[_0x5bb2f7(0x284)]['forEach']((_0x5051a7,_0x29ca62)=>{const _0xa2ec32=_0x5bb2f7;window[_0xa2ec32(0x16c)](_0x5051a7),_0xd8ee99[_0xa2ec32(0x126)](this[_0xa2ec32(0x253)](_0x29ca62)[_0xa2ec32(0x1d6)](()=>{const _0x21870f=_0xa2ec32;this[_0x21870f(0x284)][_0x21870f(0xd6)](_0x29ca62);}));}),await Promise['all'](_0xd8ee99);}};_0x87e2af=_0x26c888([_0x3bad10(0x0,_0x5721e1[_0x3db800(0x1aa)]),_0x3bad10(0x1,_0x5721e1[_0x3db800(0xfe)]),_0x3bad10(0x2,_0x5721e1['Inject'](_0x195720[_0x3db800(0x188)]))],_0x87e2af);class _0x752a44 extends _0x5721e1['RxDisposable']{constructor(){const _0x26b41e=_0x3db800;super(),_0x11fc09(this,'urlChange$'),this['urlChange$']=_0x3c46fe[_0x26b41e(0x2d6)](window,_0x26b41e(0x14c))[_0x26b41e(0x138)](_0x3c46fe[_0x26b41e(0x3cd)](this['dispose$']),_0x3c46fe[_0x26b41e(0x3a4)](0x1),_0x3c46fe[_0x26b41e(0xf6)](void 0x0));}[_0x3db800(0x2b5)](_0x322df6,_0x41b940,_0x3552d3=!0x1){const _0x29c812=_0x3db800,_0x202c9e=new URL(window[_0x29c812(0x13f)][_0x29c812(0x1c6)]);_0x202c9e[_0x29c812(0x1f7)][_0x29c812(0x10c)](_0x322df6,_0x41b940),_0x3552d3?window[_0x29c812(0x186)][_0x29c812(0x169)]('','',_0x202c9e['toString']()):window[_0x29c812(0x186)][_0x29c812(0x252)]('','',_0x202c9e[_0x29c812(0x281)]());}[_0x3db800(0x1bf)](_0x4df193,_0x587108=!0x1){const _0xbfab82=_0x3db800,_0x4d7e2d=new URL(window[_0xbfab82(0x13f)][_0xbfab82(0x1c6)]);_0x4d7e2d['searchParams'][_0xbfab82(0xd6)](_0x4df193),_0x587108?window[_0xbfab82(0x186)][_0xbfab82(0x169)]('','',_0x4d7e2d['toString']()):window[_0xbfab82(0x186)][_0xbfab82(0x252)]('','',_0x4d7e2d['toString']());}[_0x3db800(0x2aa)](_0x148fda){const _0x117df1=_0x3db800;var _0x4eb045;return(_0x4eb045=new URL(window[_0x117df1(0x13f)][_0x117df1(0x1c6)])[_0x117df1(0x1f7)][_0x117df1(0x31c)](_0x148fda))!=null?_0x4eb045:void 0x0;}}var _0x21fc30=Object[_0x3db800(0x296)],_0x29440e=Object[_0x3db800(0x2db)],_0x4cebd7=(_0x4277fe,_0xc7399d,_0x4d7161)=>_0xc7399d in _0x4277fe?_0x21fc30(_0x4277fe,_0xc7399d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d7161}):_0x4277fe[_0xc7399d]=_0x4d7161,_0x3d7ba0=(_0x24fced,_0x57a530,_0x23f789,_0x2caaf0)=>{const _0x2ea1de=_0x3db800;for(var _0x5e2759=_0x2caaf0>0x1?void 0x0:_0x2caaf0?_0x29440e(_0x57a530,_0x23f789):_0x57a530,_0x4cf22a=_0x24fced[_0x2ea1de(0x165)]-0x1,_0x5ec81b;_0x4cf22a>=0x0;_0x4cf22a--)(_0x5ec81b=_0x24fced[_0x4cf22a])&&(_0x5e2759=_0x5ec81b(_0x5e2759)||_0x5e2759);return _0x5e2759;},_0x46567e=(_0x5c9d5e,_0x2bc009)=>(_0x3408d9,_0x49e675)=>_0x2bc009(_0x3408d9,_0x49e675,_0x5c9d5e),_0x5353ff=(_0x5d2567,_0x304cda,_0xe1863c)=>_0x4cebd7(_0x5d2567,_0x304cda+'',_0xe1863c);const _0x168152=_0x3db800(0x2a7);_0x42b8f3[_0x3db800(0x156)]=class extends _0x5721e1[_0x3db800(0x2e4)]{constructor(_0x39a2be=_0x3b0f99,_0x2ed978,_0xdff2bf,_0x31dd19){const _0x1424db=_0x3db800;super(),this[_0x1424db(0x330)]=_0x39a2be,this[_0x1424db(0x125)]=_0x2ed978,this[_0x1424db(0xed)]=_0xdff2bf,this['_configService']=_0x31dd19;const {..._0x4074de}=_0x5721e1[_0x1424db(0x18e)]({},_0x3b0f99,this[_0x1424db(0x330)]);this[_0x1424db(0x2b3)]['setConfig'](_0x214486,_0x4074de);}[_0x3db800(0x1e0)](){const _0x3f0d13=_0x3db800;this[_0x3f0d13(0x179)](),this[_0x3f0d13(0x372)]();}['onRendered'](){const _0x1f8bd3=_0x3db800;this[_0x1f8bd3(0x192)]();}[_0x3db800(0x179)](){const _0xadb298=_0x3db800;var _0x2545c6;const _0x5484eb=[[_0x2ab1f4],[_0x474fa3],[_0x129f97],[_0x28b209],[_0x13e633],[_0x41a578],[_0x4a64fb,{'useClass':_0x752a44}],[_0x45e398[_0xadb298(0x1c5)],{'useClass':_0x45e398[_0xadb298(0x13e)]}],[_0x115633[_0xadb298(0x1ac)],{'useClass':_0x87e2af}],[_0x42b8f3[_0xadb298(0x255)]],[_0xc6cb38],[_0xa84181],[_0x192c77],[_0x3ae7cf],[_0x42b8f3[_0xadb298(0x362)]]];this[_0xadb298(0x330)][_0xadb298(0x320)]&&_0x5484eb[_0xadb298(0x126)]([_0x2c4f22]),_0x5721e1[_0xadb298(0x213)](this[_0xadb298(0xed)],_0x5721e1['mergeOverrideWithDependencies'](_0x5484eb,(_0x2545c6=this[_0xadb298(0x330)])==null?void 0x0:_0x2545c6[_0xadb298(0x363)]));}[_0x3db800(0x192)](){const _0x5535a8=_0x3db800;this['disposeWithMe'](this[_0x5535a8(0x125)]['registerRenderModule'](_0x5721e1['UniverInstanceType'][_0x5535a8(0x1e1)],[_0x1be4c4])),this[_0x5535a8(0x168)](this['_renderManagerService'][_0x5535a8(0x2b9)](_0x5721e1[_0x5535a8(0x1a7)][_0x5535a8(0x1a3)],[_0x3eec6b]));}[_0x3db800(0x372)](){const _0x2f5bc5=_0x3db800;_0x5721e1['touchDependencies'](this['_injector'],[[_0x192c77],[_0x42b8f3[_0x2f5bc5(0x255)]],[_0xc6cb38],[_0xa84181],[_0x42b8f3[_0x2f5bc5(0x362)]],[_0x474fa3]]),this[_0x2f5bc5(0x330)]['enableFrontendLog']&&_0x5721e1['touchDependencies'](this['_injector'],[[_0x2c4f22]]);}},_0x5353ff(_0x42b8f3[_0x3db800(0x156)],_0x3db800(0x2fb),_0x168152),_0x42b8f3['UniverCollaborationClientUIPlugin']=_0x3d7ba0([_0x5721e1[_0x3db800(0x13d)](_0x115633['UniverCollaborationClientPlugin']),_0x46567e(0x1,_0x585793[_0x3db800(0xd1)]),_0x46567e(0x2,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x1da)])),_0x46567e(0x3,_0x5721e1[_0x3db800(0x1aa)])],_0x42b8f3[_0x3db800(0x156)]);var _0x4d4599=Object[_0x3db800(0x2db)],_0x4800b8=(_0x5043ce,_0x11bc3d,_0x24223a,_0x107ac1)=>{const _0x4bd6dc=_0x3db800;for(var _0x265a70=_0x107ac1>0x1?void 0x0:_0x107ac1?_0x4d4599(_0x11bc3d,_0x24223a):_0x11bc3d,_0x1e47fa=_0x5043ce[_0x4bd6dc(0x165)]-0x1,_0x33aafa;_0x1e47fa>=0x0;_0x1e47fa--)(_0x33aafa=_0x5043ce[_0x1e47fa])&&(_0x265a70=_0x33aafa(_0x265a70)||_0x265a70);return _0x265a70;},_0x1bda34=(_0xa7db08,_0x4001b9)=>(_0x3bdc88,_0x5186d4)=>_0x4001b9(_0x3bdc88,_0x5186d4,_0xa7db08);_0x42b8f3[_0x3db800(0x1b2)]=class extends _0x115633[_0x3db800(0x158)]{constructor(_0x46afd1,_0x30d545,_0x1eed2a,_0x420e32,_0x1c1d97){super(_0x46afd1,_0x30d545,_0x1eed2a,_0x420e32,_0x1c1d97);}async['createSocket'](_0x550457){const _0x56f029=_0x3db800,_0x4c3599=await this[_0x56f029(0x2c3)](),_0xa216a=this[_0x56f029(0xde)](_0x550457,_0x4c3599);return this['_doCreateSocket'](_0xa216a);}[_0x3db800(0xde)](_0x4fa260,_0x285c5a){const _0x981df0=_0x3db800,_0x2abf30=typeof window>'u'?new URL(_0x4fa260):new URL(_0x4fa260,window[_0x981df0(0x13f)][_0x981df0(0x20f)]);_0x2abf30[_0x981df0(0x1f7)][_0x981df0(0x10c)](_0x981df0(0x11d),_0x285c5a);const _0x1a7791=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x981df0(0x13f)][_0x981df0(0x37c)]);return _0x1a7791['get'](_0x981df0(0x2ed))&&_0x2abf30['searchParams'][_0x981df0(0x10c)](_0x981df0(0x2ed),_0x1a7791[_0x981df0(0x31c)]('runId')),_0x2abf30[_0x981df0(0x281)]();}async[_0x3db800(0x2c3)](){const _0xccf088=_0x3db800;var _0x4ff492,_0x50c6d8,_0x41e349;const _0x20f849=this[_0xccf088(0x2b3)][_0xccf088(0x1f6)](_0x115633[_0xccf088(0x351)]),_0x4f22ea=(_0x4ff492=_0x20f849==null?void 0x0:_0x20f849[_0xccf088(0x289)])!=null?_0x4ff492:_0x115633['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x41e349=(_0x50c6d8=(await this[_0xccf088(0x394)][_0xccf088(0x31c)](_0x4f22ea,{'headers':{'Content-Type':_0xccf088(0x275)}}))[_0xccf088(0x14e)])==null?void 0x0:_0x50c6d8[_0xccf088(0x373)])!=null?_0x41e349:'';}},_0x42b8f3[_0x3db800(0x1b2)]=_0x4800b8([_0x1bda34(0x0,_0x5721e1[_0x3db800(0x181)](_0x5721e1[_0x3db800(0x1da)])),_0x1bda34(0x1,_0x5721e1[_0x3db800(0x181)](_0x45e398[_0x3db800(0x254)])),_0x1bda34(0x2,_0x5721e1[_0x3db800(0x1aa)]),_0x1bda34(0x3,_0x5721e1['ILogService']),_0x1bda34(0x4,_0x195720[_0x3db800(0x2cf)])],_0x42b8f3['BrowserCollaborationSocketService']);var _0x1bc577=Object[_0x3db800(0x2db)],_0x27f349=(_0x3e8c03,_0x4f1788,_0x3e2be8,_0x5126c5)=>{const _0x241944=_0x3db800;for(var _0x52cdb8=_0x5126c5>0x1?void 0x0:_0x5126c5?_0x1bc577(_0x4f1788,_0x3e2be8):_0x4f1788,_0x19685c=_0x3e8c03[_0x241944(0x165)]-0x1,_0x29200b;_0x19685c>=0x0;_0x19685c--)(_0x29200b=_0x3e8c03[_0x19685c])&&(_0x52cdb8=_0x29200b(_0x52cdb8)||_0x52cdb8);return _0x52cdb8;},_0x2d77c4=(_0x3434d4,_0x1ac160)=>(_0x329f5f,_0x16b571)=>_0x1ac160(_0x329f5f,_0x16b571,_0x3434d4);_0x42b8f3[_0x3db800(0x226)]=class extends _0x5721e1[_0x3db800(0x27b)]{constructor(_0x5ea8be,_0x3fbf1a,_0x49c70e){const _0x75ec3d=_0x3db800;super(),this[_0x75ec3d(0x136)]=_0x5ea8be,this[_0x75ec3d(0x394)]=_0x3fbf1a,this[_0x75ec3d(0x2b3)]=_0x49c70e;}async[_0x3db800(0x1b4)](_0x5aed12,_0x149f0f,_0x5531c2,..._0x3faf1b){const _0x49f31f=_0x3db800;var _0x381560,_0x4e6c43,_0x1eaaf3,_0x35d0ff;const _0x4d2e75=this['_instanceService'][_0x49f31f(0x36b)]();if(!_0x4d2e75)throw new Error(_0x49f31f(0x348));const _0x4993d2=((_0x381560=this[_0x49f31f(0x2b3)]['getConfig'](_0x115633[_0x49f31f(0x118)]))!=null?_0x381560:_0x115633['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x5aed12+_0x49f31f(0x1f0)+_0x149f0f,_0x298a63=new URL(window['location'][_0x49f31f(0x1c6)]),_0x15c116={'scriptId':_0x5aed12,'runId':(_0x4e6c43=_0x298a63[_0x49f31f(0x1f7)]['get'](_0x49f31f(0x2ed)))!=null?_0x4e6c43:'','function':_0x149f0f,'unitId':_0x4d2e75['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x3faf1b),'invokeId':(_0x1eaaf3=_0x5531c2[_0x49f31f(0x377)])!=null?_0x1eaaf3:'','executionId':(_0x35d0ff=_0x5531c2[_0x49f31f(0x1e6)])!=null?_0x35d0ff:''};try{const _0x5c459f=await this['_httpService'][_0x49f31f(0x3c4)](_0x4993d2,{'body':_0x15c116});return _0x5c459f['body'][_0x49f31f(0x3ce)]&&_0x5c459f['body'][_0x49f31f(0x3ce)][_0x49f31f(0x306)]!==_0xb66710['OK']?_0x49f31f(0x321):_0x5c459f[_0x49f31f(0x14e)][_0x49f31f(0x352)];}catch{return _0x49f31f(0x321);}}},_0x42b8f3[_0x3db800(0x226)]=_0x27f349([_0x2d77c4(0x0,_0x5721e1[_0x3db800(0x24f)]),_0x2d77c4(0x1,_0x5721e1[_0x3db800(0x181)](_0x45e398[_0x3db800(0x254)])),_0x2d77c4(0x2,_0x5721e1['IConfigService'])],_0x42b8f3[_0x3db800(0x226)]);const _0x4ff4cd=0x7530,_0x3e9c9c=_0x3db800(0x116);class _0x5994ca extends _0x5721e1[_0x3db800(0x27b)]{constructor(){const _0x1f5e52=_0x3db800;super(),_0x11fc09(this,'_id',_0x5721e1[_0x1f5e52(0x336)]()),_0x11fc09(this,_0x1f5e52(0x15d),new Set()),_0x11fc09(this,_0x1f5e52(0x36a),new Map()),_0x11fc09(this,_0x1f5e52(0xd7),null),_0x11fc09(this,'_clearOtherTimers',new Map()),_0x11fc09(this,_0x1f5e52(0x214),new Map()),this[_0x1f5e52(0x2e1)]();}[_0x3db800(0x37d)](){const _0x203955=_0x3db800;super[_0x203955(0x37d)](),this[_0x203955(0xd4)]['forEach']((_0x3ea94b,_0x42d77c)=>this['_removeClearOtherTimer'](_0x42d77c)),this[_0x203955(0xd7)]&&window[_0x203955(0x257)](this[_0x203955(0xd7)]);}['getUnitStatus$'](_0x2cbd1a){const _0x108ea0=_0x3db800;return this['_ensureSubject'](_0x2cbd1a)[_0x108ea0(0x138)](_0x3c46fe[_0x108ea0(0x105)]());}[_0x3db800(0x3a8)](_0x3f3574){const _0x238c0c=_0x3db800;this[_0x238c0c(0x15d)][_0x238c0c(0x392)]===0x0&&this[_0x238c0c(0x16b)](),this[_0x238c0c(0x15d)][_0x238c0c(0x1dd)](_0x3f3574),this[_0x238c0c(0x207)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3f3574],'isForwarded':!0x1});}[_0x3db800(0x2d7)](_0x5ce691){const _0x3d47a8=_0x3db800;this[_0x3d47a8(0x15d)]['delete'](_0x5ce691),this[_0x3d47a8(0x15d)][_0x3d47a8(0x392)]===0x0&&this[_0x3d47a8(0xd7)]&&window[_0x3d47a8(0x257)](this[_0x3d47a8(0xd7)]);}[_0x3db800(0x2e1)](){const _0x56e54b=_0x3db800;this[_0x56e54b(0x168)](_0x5721e1['toDisposable'](_0x3c46fe[_0x56e54b(0x2d6)](window,_0x56e54b(0x381))[_0x56e54b(0x2ce)](_0x18e33f=>{const _0x2a134f=_0x56e54b;if(_0x18e33f[_0x2a134f(0x2f9)]!==_0x3e9c9c||!_0x18e33f[_0x2a134f(0x325)])return;const _0x3e08cc=JSON[_0x2a134f(0x305)](_0x18e33f[_0x2a134f(0x325)]);this[_0x2a134f(0x163)](_0x3e08cc);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x56e54b(0x185)],'unitIDs':Array[_0x56e54b(0x2e8)](this[_0x56e54b(0x15d)])}));}['_handleEvent'](_0x50cfa7){const _0x55469c=_0x3db800;switch(_0x50cfa7['type']){case 0x0:this[_0x55469c(0x318)](_0x50cfa7);break;case 0x1:this[_0x55469c(0x270)](_0x50cfa7);break;case 0x2:this[_0x55469c(0x33b)](_0x50cfa7);break;}}['_handleJoinEvent'](_0x11006c){const _0x3df2c1=_0x3db800,{unitIDs:_0x4c2d20,memberID:_0x470f15,isForwarded:_0x5b4891}=_0x11006c;_0x4c2d20[_0x3df2c1(0x331)](_0x4afb5d=>{const _0x5e2624=_0x3df2c1;if(!_0x5b4891&&this[_0x5e2624(0x36a)][_0x5e2624(0x101)](_0x4afb5d)&&this[_0x5e2624(0x345)](_0x4afb5d)['next'](_0x115633[_0x5e2624(0x2b6)][_0x5e2624(0x1ba)]),!this[_0x5e2624(0x36a)][_0x5e2624(0x101)](_0x4afb5d)||!this['_unitOnClients'][_0x5e2624(0x31c)](_0x4afb5d)[_0x5e2624(0x101)](_0x470f15)){const _0x1b71a8=this[_0x5e2624(0x36a)][_0x5e2624(0x31c)](_0x4afb5d)||new Set();_0x1b71a8[_0x5e2624(0x1dd)](_0x470f15),this[_0x5e2624(0x36a)]['set'](_0x4afb5d,_0x1b71a8),this[_0x5e2624(0x24b)](_0x470f15);}}),_0x5b4891||this['_send']({'type':0x0,'memberID':this[_0x3df2c1(0x185)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3db800(0x24b)](_0x68dae5){const _0x40d8ca=_0x3db800;this[_0x40d8ca(0x119)](_0x68dae5);const _0x3112c3=window[_0x40d8ca(0x10f)](()=>{const _0x1f180a=_0x40d8ca;this[_0x1f180a(0x36a)][_0x1f180a(0x331)](_0x1eb257=>{_0x1eb257['delete'](_0x68dae5);});},_0x4ff4cd*0x2);this[_0x40d8ca(0xd4)]['set'](_0x68dae5,_0x3112c3);}[_0x3db800(0x119)](_0x4f8459){const _0x4bf9e1=_0x3db800;if(this['_clearOtherTimers']['has'](_0x4f8459)){const _0x37595d=this['_clearOtherTimers'][_0x4bf9e1(0x31c)](_0x4f8459);_0x37595d&&window['clearTimeout'](_0x37595d),this[_0x4bf9e1(0xd4)][_0x4bf9e1(0x10c)](_0x4f8459,null);}}[_0x3db800(0x270)](_0x4a4d05){const _0xb09a31=_0x3db800,{memberID:_0x2dd141,unitIDs:_0x4aad77}=_0x4a4d05;_0x4aad77[_0xb09a31(0x331)](_0x290f57=>{const _0x6073ca=_0xb09a31;var _0x44be9a;const _0x53dfe9=this[_0x6073ca(0x36a)][_0x6073ca(0x31c)](_0x290f57);_0x53dfe9&&(_0x53dfe9[_0x6073ca(0xd6)](_0x2dd141),(_0x44be9a=this[_0x6073ca(0x345)](_0x290f57))==null||_0x44be9a[_0x6073ca(0x1fe)](_0x53dfe9[_0x6073ca(0x392)]===0x0?_0x115633[_0x6073ca(0x2b6)][_0x6073ca(0x1f4)]:_0x115633['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0xb09a31(0x119)](_0x2dd141);}[_0x3db800(0x33b)](_0x5c84c6){const _0x59ca80=_0x3db800;this[_0x59ca80(0x24b)](_0x5c84c6[_0x59ca80(0x34a)]);}[_0x3db800(0x207)](_0x1904b2){const _0x1a5b73=_0x3db800;localStorage[_0x1a5b73(0x335)](_0x3e9c9c,JSON[_0x1a5b73(0x2c2)](_0x1904b2));}[_0x3db800(0x16b)](){const _0xff547f=_0x3db800;this['_heartbeatTimer']=window[_0xff547f(0x189)](()=>{const _0x85ed16=_0xff547f;this[_0x85ed16(0x207)]({'type':0x2,'memberID':this['_id']});},_0x4ff4cd);}[_0x3db800(0x345)](_0x58a17a){const _0x4b469f=_0x3db800;return this[_0x4b469f(0x214)][_0x4b469f(0x101)](_0x58a17a)||this[_0x4b469f(0x214)][_0x4b469f(0x10c)](_0x58a17a,new _0x3c46fe[(_0x4b469f(0x346))](_0x115633[_0x4b469f(0x2b6)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x4b469f(0x214)][_0x4b469f(0x31c)](_0x58a17a);}}_0x42b8f3[_0x3db800(0x180)]=_0x4a64fb,_0x42b8f3[_0x3db800(0x170)]=_0x3d98fb,_0x42b8f3['WebBrowserSingleActiveUnitService']=_0x5994ca,_0x42b8f3[_0x3db800(0xf5)]=_0x752a44,Object[_0x3db800(0x296)](_0x42b8f3,Symbol[_0x3db800(0x25b)],{'value':_0x3db800(0x1ec)});}));