@univerjs-pro/collaboration-client-ui 0.10.9-nightly.202509260614 → 0.10.10

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 (49) 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/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +16 -16
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x19a4(_0x5b4c8a,_0x3888fc){const _0x46de52=_0x46de();return _0x19a4=function(_0x19a40b,_0x1166e0){_0x19a40b=_0x19a40b-0x19b;let _0x519e51=_0x46de52[_0x19a40b];return _0x519e51;},_0x19a4(_0x5b4c8a,_0x3888fc);}function _0x46de(){const _0x41ed4a=['collaboration.closeRoom','body','then','Tooltip','_drawTextRange','className','_config','sessionTicket','none','_collabSessionService','collabStatus.notCollab','@univerjs/docs','getRangePointData','pluginName','RegularPolygon','@univerjs/ui','focused$','Shape','location','PY_RUNTIME_SCRIPT_ERROR','_disabled','idSuffix','getSheetBySheetId','parse','addHandlerCallback','collabStatus.conflict','roomMembers','TEXT_RANGE_LAYER_INDEX','_selfUnitIDs','DocIMEInputManagerService','column','_configService','post','fromEvent','DocCollaborationEntity','getCurrentSelections','handleIRemoveRow','saveTaskMap','YUUMI_ASYNCIO_CANCELLED','_assignedColors','_document','some','popstate','_docStateChangeManagerService','UNIVER_SHEET','_labelPosition','jsxs','unload','RemoteUniscriptService','range','Vector2','roomMembers$','getParam','_session','_getSheetObject','_themeService','object','_heartbeatTimer','ILogService','save','_range','univerjs-icon\x20univerjs-icon-','LICENSE_IMPORT_SIZE_EXCEEDED','currentTheme$','@univerjs/core','YUUMI_ALL_TABLES_IS_INVALID','round','mask','RemoveColCommandId','yellow.400','_getScale','xlink:href','_cachedData','FromArray','getOwnPropertyDescriptor','color','getCellPositionByOffset','currentColor','/run/','MUTATION','0\x200\x2016\x2016','useCallback','handleMoveRange','_color','switchMap','_docTransformIMECacheService','842240JBMrrM','@univerjs/network','isArray','_cursorInfo$','hasOwnProperty','selection','INVALID_ARGUMENT','NOT_COLLAB','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','registerRenderModule','CHANGESET_REVISION_CONFILICT','_unitStatus','getStateCache','defs','Optional','_scheduleHeartbeat','_status$','set','IConfigService','44430YILYuO','isTransformMutationsWithChangesetSuccess','loadOfflineData','white','transformStateCache','_name','Disposable','runOnServer','_removeClearOtherTimer','USER_NOT_INVITED_CODE','IRemoteInstanceService','UniverEngineRender','CollaborationDataLoaderController','show','_univerInstanceService','_ensureSubject','clearTimeout','subunit','SNAPSHOT_HAS_BEEN_REMOVED','searchParams','shareReplay','_registerDependencies','_collabCursorState$','getOwnPropertySymbols','takeUntil','SHEET_VIEWPORT_KEY','UniverCollaborationClientUIPlugin','_toggleOffline','DocStateChangeManagerService','React','SOCKET_FAILED_RETRY','OffLineIcon','_collabCursorController','_initEntityListener','_updateSubUnitFromURLParams','editingUnit','APPLY_REVISION_CONFILICT','CLOSE_ROOM','_scene','ticket','replaceDocRanges','react','ILocalStorageService','pipe','getTypeOfUnitAdded$','invokeId','@univerjs-pro/collaboration','clearInterval','BehaviorSubject','replaceState','INVALID_INVITE_CODE','contains','NOT_FOUND','executionId','_scheduleSaving','_getMergeRange','dispose$','_textBubble','measureText','actions','LOCAL_CACHE_INTERVAL','code','_saveTaskMap','toString','onTransformChange$','session.connection-failed','has','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','endRow','CollaborationUIEventId','whenReady','UnitStatus','doc.mutation.rich-text-editing','@univerjs/engine-render','LocaleService','RxDisposable','_syncEditingCollabCursorService','url(#$1','APPLY_DUPLICATED','_hideTimer','_initDependencies','#FFF','prototype','jsx','_backgroundColor','UniverSheetsUi','_toggleOnline','ACTIVE_UNIT_EVENT_CHANNEL','@univerjs/engine-formula','28gYlEkb','_hover','_transformUndoRedoStack','SheetsSelectionsService','_initStatusComponent','DesktopCollaborationStatusDisplayController','_colorAssignService','ENSURE_SNAPSHOT_EXECUTION','all','combineLatest','_removeCollabCursors','getUniverSheetInstance','UniverDocs','on-line-icon_clip0_910_349','getSheetId','transformSelections','YUUMI_RATE_OVER_LIMIT','_roomMembers$','useDependency','CollaborationSocketService','69fOkJYn','_shapes','subscribeEvent','serializeRangeWithSheet','call','indexOf','toRgbString','forEach','_beforeCloseService','getCurrentRevOfUnit','eventID','Rect','Failed','http://www.w3.org/2000/svg','react/jsx-runtime','@univerjs/docs-ui','_refreshCollabCursors','handleDeleteRangeMoveLeft','permission.content','SetWorksheetActivateCommand','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','exhaustSavingTask','UniverDesign','_logService','SYNCED','_commandService','concat','trim','collaboration-client.offline-data-not-saved','function','DependentOn','push','_handleLeaveEvent','debounceTime','send','operators','session.will-retry','IRenderManagerService','handleDeleteRangeMoveUp','149848qCVCzk','TOO_MANY_REQUESTS','getColor','restore','unshift','_docTransformStateCacheService','search','registerDependencies','IImageIoService','get','_collaborationUIEventService','_imageIoService','_messageService','_anchorDot','pushState','getVpScrollXYInfoByPosToVp','assignAColorForMemberID','sheetId','activeSheet$','distinctUntilChanged','_startDocCollabCursor','event$','getUnitId','RECT','collabStatus.offline','off-line-icon_clip0_910_343','COLORS','MoveRangeCommandId','values','lineTo','sessionStatus$','CollaborationStatus','addClipboardHook','runId','_getSaveTimeout','_entityInit$','transformByState','sheetID','DataLoaderService','_cursor','Plugin','MemberService','uni.network.url-service','getOffsetConfig','@univerjs/drawing','fillStyle','EMAIL_HAS_BEEN_BOUND','transformMutation','isTransformMutationFailure','YUUMI_CONNECTOR_URL_NOT_FOUND','filter','min','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getCurrentUnitForType','150402PDnDIn','startColumn','generateRandomId','SUBMIT_CHANGESET_TIMEOUT','removeParam','red.300','_onRefRangeChange','includes','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','debounce','asObservable','collabStatus.syncing','_renderManagerService','resize','endColumn','_init','HEADER_MENU','registerRefRange','setShapeProps','attrs','ISocketService','getAncestorScale','addObject','MessageType','createIdentifier','UniverCore','Unknown\x20user','VIEW_MAIN','_scheduleClearOtherTimer','DOC_RANGE_TYPE','defIds','Workbook','Module','InsertRangeMoveRightCommandId','width','SetTextSelectionsOperation','ColorKit','_drawAnchor','getMergeData','updateOfflineData','IUIPartsService','Tools','OFFLINE','@univerjs/sheets','_setupSubUnitSync','_memberService','Inject','setStateCache','deepClone','getActiveSheet','name','_docClipboardService','ONLINE','next','setAlpha','ISnapshotServerService','green.600','_registerRenderDependencies','_context','skeleton','syncEditingCollabCursor','LICENSE_DISTRO_REJECTED','AWAITING_WITH_PENDING','split','_handleHeartbeatEvent','clipPath','dispose','string','closePath','ThemeService','YUUMI_SUBSCRIPTION_NOT_FOUND','executeCommand','isActive','_transformPreviousActiveRange','_eventUnsubscribe','_initCommandExecutedListener','getColorFromTheme','INTERNAL_ERROR','USERS_LEAVE','SOCKET_FAILED','Rectangle','fillText','subUnitId','UPDATE_CURSOR','_initStatusListener','WebBrowserSingleActiveUnitService','getCollabEntity$','urlChange$','univer-flex\x20univer-items-center','init','Injector','transformMutationsWithChangeset','delete','PERMISSION_DENIED','setItem','_handleHover','BuiltInUIPart','assign','storage','merge','2596797wdIAtq','MOBILE_HAS_BEEN_BOUND','useObservable','BrowserCollaborationSocketService','univer-mr-2\x20univer-flex\x20univer-text-xl','0\x200\x2017\x2016','override','_uiPartsService','LOCAL_CACHE_INTERVAL_KEY','IURLService','_getSessionTicket','mapTo','throttleTime','setUndoRedoMutationParamsCache','newValue','M0\x200H16V16H0z','type','MOBILE_VERIFY_CODE_MISMATCH','getRenderById','OTHER_CLIENT_EDITING','_unitOnClients','ranges','_collaborationController','hide','_localStorageService','error','startsWith','children','debug','_refRangeService','APPLY_REJECT','drawWith','ALREADY_EXISTS','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_transformService','_notificationService','_onCursorDelete','_localeService','InsertRangeMoveDownCommandId','EffectRefRangId','LICENSE_MAX_UNITS_EXCEEDED','getCollabCursors$','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','setParam','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','icon','colorChannel1','params','with','div','SetDocZoomRatioOperation','exports','13854ObnzOw','onPointerLeave$','_startSheetCollabCursor','random','getUnitStatus$','rxjs','clsx','UNRECOGNIZED','unitId','INVITE_CODE_REQUIRED','_doCreateSocket','getUndoRedoMutationParamsCache','from','_handleEvent','DeleteRangeMoveUpCommandId','handleInsertRangeMoveRight','disposeWithMe','IMessageService','_updateURLWithCurrentState','_docSyncEditingCollabCursorService','getCoordByCell','currentSkeleton$','saveOfflineData','1em','labelPosition','imageSourceType','_initResize','m1Prime','data','_drawRectRange','_injector','symbol','toDisposable','_handleJoinEvent','text','cursorInfo$','_send','createInstance','createSocket','UniverInstanceType','DeleteRangeMoveLeftCommandId','unitID','unit','_entities','createElement','UniverDocsUi','YUUMI_AI_RUN_FAILED','collab-text-anchor-','Error','triggerDblclick','setTimeout','forwardRef','getFocusedUnit','top','onStarting','UniverRpc','arc','add','InsertRowCommandId','on-line-icon','displayName','rgba(255,\x20255,\x20255,\x200.01)','ILocalCacheService','CONFLICT','UniverProCollaborationClient','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','ITransformService','YUUMI_UNABLE_LOAD_URL','_dataLoaderService','getConfig','size','YUUMI_NO_CUBOID_FOR_QUESTION','APPLY_PERMISSION_DENIED','APPLY_NON_SEQUENTIAL_REVISION','replace','CollaborationUIEventService','_docTransformSelectionsService','collab-rect-range-','RichTextEditingMutation','height','addEventListener','touchDependencies','_instanceService','_clearOtherTimers','YUUMI_URL_COL_OUT_OF_RANGE','_getAnchorBounding','_online','runRefRangeMutations','findNodePositionByCharIndex','engine','IDocClipboardService','amd','getDocRanges','stringify','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','UniverSheets','_transformHistoryAndStateStack','_createSocketURL','map','toStringTag','mergeOverrideWithDependencies','redoState','setInterval','black','CONNECTOR_DATA_TOO_LARGE','fill','docStateChange$','bottom','_anchor','WECHAT_HAS_BEEN_BOUND','path','UniverNetwork','_draw','history','memberID','_lastPointer','_id','48zaCbtP','tag','getActiveRange','use','purple.300','getTypeOfUnitDisposed$','_httpService','svg','LICENSE_EXPORT_SIZE_EXCEEDED','hovered','UniverProCollaborationClientUi','LOGIN_FAILED','RevisionService','handleInsertRangeMoveDown','COMPLETION_FINISHED','CollaborationController','INVITE_CODE_HAS_BEEN_UES','getValue','onPointerEnter$','Warning','IUniverInstanceService','cursorInfo','DocSelectionManagerService','_docSkeletonManagerService','length','HTTPService','mutations','_cursors','wsSessionTicketUrl','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','complete','getLocalCacheKey','handleInsertRow','_saveCache','evenodd','INotificationService','IBeforeCloseService','onMouseMove','@univerjs/design','UNDEFINED','...','registerComponent','getUnhiddenWorksheets','find','jiqing.500','transformRemoteChangeset','CommandType','_urlService','_updateLocalCursor','SNAPSHOT_INVALID_SNAPSHOT','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','WebSocketService','collabCursorState$','onCommandExecuted','saveImage','flatMap','_hovered','defineProperty','_colorIndex','TEXT','_onCursorUpdate','collaboration-client-ui.config','NO_OTHER_CLIENTS_EDITING','SessionStatus','deserializeRangeWithSheet','collabStatus.fetchMiss','_updateCollabCursors','collabStatus.synced','transformIMECache','ICommandService','entries','UNIVER_DOC','Subject','SheetSkeletonManagerService','UniverDrawing','_cursorShapes','_render','171325gJbufW','UNAUTHENTICATED','INVITE_CODE_ALREADY_BOUND','_localCacheService','_setupBeforeClosingHandler','_sheetSkeletonManagerService','extend','handleInsertCol','getSkeleton','subscribe','row','href','CollaborationEvent','getMemberID','m2Prime','UniverCollaborationClientPlugin','UniverProCollaboration'];_0x46de=function(){return _0x41ed4a;};return _0x46de();}(function(_0x2cfb75,_0xc5c33e){const _0x53bbd5=_0x19a4,_0x280303=_0x2cfb75();while(!![]){try{const _0x12b69f=parseInt(_0x53bbd5(0x261))/0x1+parseInt(_0x53bbd5(0x19f))/0x2*(-parseInt(_0x53bbd5(0x348))/0x3)+-parseInt(_0x53bbd5(0x214))/0x4*(parseInt(_0x53bbd5(0x2db))/0x5)+parseInt(_0x53bbd5(0x3a6))/0x6*(parseInt(_0x53bbd5(0x334))/0x7)+-parseInt(_0x53bbd5(0x36f))/0x8+parseInt(_0x53bbd5(0x40a))/0x9+-parseInt(_0x53bbd5(0x2c8))/0xa;if(_0x12b69f===_0xc5c33e)break;else _0x280303['push'](_0x280303['shift']());}catch(_0x2c1ec8){_0x280303['push'](_0x280303['shift']());}}}(_0x46de,0x2eaf2),function(_0x3733ea,_0x4afef7){const _0x4bab13=_0x19a4;typeof exports==_0x4bab13(0x2aa)&&typeof module<'u'?_0x4afef7(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==_0x4bab13(0x365)&&define[_0x4bab13(0x1fa)]?define([_0x4bab13(0x19e),_0x4bab13(0x356),'@univerjs-pro/collaboration-client',_0x4bab13(0x2b2),_0x4bab13(0x281),_0x4bab13(0x1a4),_0x4bab13(0x23a),_0x4bab13(0x304),'@univerjs/rpc',_0x4bab13(0x3d1),_0x4bab13(0x324),_0x4bab13(0x2c9),_0x4bab13(0x357),_0x4bab13(0x39b),_0x4bab13(0x309),_0x4bab13(0x27d),_0x4bab13(0x333),'rxjs/operators','@univerjs/sheets-ui'],_0x4afef7):(_0x3733ea=typeof globalThis<'u'?globalThis:_0x3733ea||self,_0x4afef7(_0x3733ea[_0x4bab13(0x21e)]={},_0x3733ea[_0x4bab13(0x2f8)],_0x3733ea[_0x4bab13(0x1df)],_0x3733ea[_0x4bab13(0x3bf)],_0x3733ea['UniverUi'],_0x3733ea[_0x4bab13(0x1a4)],_0x3733ea[_0x4bab13(0x35e)],_0x3733ea['React'],_0x3733ea[_0x4bab13(0x1d6)],_0x3733ea[_0x4bab13(0x1fe)],_0x3733ea[_0x4bab13(0x2e6)],_0x3733ea[_0x4bab13(0x20e)],_0x3733ea[_0x4bab13(0x1cc)],_0x3733ea[_0x4bab13(0x25e)],_0x3733ea[_0x4bab13(0x271)],_0x3733ea[_0x4bab13(0x340)],_0x3733ea['UniverEngineFormula'],_0x3733ea[_0x4bab13(0x1a4)][_0x4bab13(0x36b)],_0x3733ea[_0x4bab13(0x330)]));}(this,function(_0x9de135,_0x5dfb74,_0x3b3567,_0x2c2192,_0x214f56,_0x39a97e,_0x4f24da,_0x197005,_0x30a3e,_0x40b606,_0xeac254,_0x1f436f,_0x4e1317,_0x4251fe,_0x542b31,_0x28f6a3,_0x46218b,_0x5e9058,_0x5b36e4){'use strict';const _0x263a40=_0x19a4;var _0x4ff1f6=Object[_0x263a40(0x24d)],_0x7509f4=(_0x1b3401,_0x30586a,_0x722cf)=>_0x30586a in _0x1b3401?_0x4ff1f6(_0x1b3401,_0x30586a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x722cf}):_0x1b3401[_0x30586a]=_0x722cf,_0x193c38=(_0x3183dc,_0x3c3c7f,_0x3c8c30)=>_0x7509f4(_0x3183dc,typeof _0x3c3c7f!=_0x263a40(0x1be)?_0x3c3c7f+'':_0x3c3c7f,_0x3c8c30),_0x12749e=function(){const _0xa6c845=_0x263a40;return _0x12749e=Object[_0xa6c845(0x407)]||function(_0x532eaa){const _0x3ee8b1=_0xa6c845;for(var _0x463f3f,_0x5d3cff=0x1,_0x83f3ee=arguments[_0x3ee8b1(0x22c)];_0x5d3cff<_0x83f3ee;_0x5d3cff++){_0x463f3f=arguments[_0x5d3cff];for(var _0x23c297 in _0x463f3f)Object[_0x3ee8b1(0x32d)][_0x3ee8b1(0x2cc)][_0x3ee8b1(0x34c)](_0x463f3f,_0x23c297)&&(_0x532eaa[_0x23c297]=_0x463f3f[_0x23c297]);}return _0x532eaa;},_0x12749e['apply'](this,arguments);},_0x5c6138=function(_0x19f16c,_0x20a73c){const _0x44006e=_0x263a40;var _0x4720e1={};for(var _0x184a6a in _0x19f16c)Object['prototype'][_0x44006e(0x2cc)][_0x44006e(0x34c)](_0x19f16c,_0x184a6a)&&_0x20a73c[_0x44006e(0x34d)](_0x184a6a)<0x0&&(_0x4720e1[_0x184a6a]=_0x19f16c[_0x184a6a]);if(_0x19f16c!=null&&typeof Object[_0x44006e(0x2f2)]==_0x44006e(0x365)){for(var _0x301b20=0x0,_0x184a6a=Object[_0x44006e(0x2f2)](_0x19f16c);_0x301b20<_0x184a6a['length'];_0x301b20++)_0x20a73c[_0x44006e(0x34d)](_0x184a6a[_0x301b20])<0x0&&Object[_0x44006e(0x32d)]['propertyIsEnumerable']['call'](_0x19f16c,_0x184a6a[_0x301b20])&&(_0x4720e1[_0x184a6a[_0x301b20]]=_0x19f16c[_0x184a6a[_0x301b20]]);}return _0x4720e1;},_0x35a74d=_0x197005[_0x263a40(0x1d2)](function(_0xaeaada,_0x4235a1){const _0x203b76=_0x263a40;var _0x2e322e=_0xaeaada[_0x203b76(0x437)],_0x3f9062=_0xaeaada['id'],_0x7e733a=_0xaeaada[_0x203b76(0x277)],_0x107565=_0xaeaada[_0x203b76(0x267)],_0x29b9aa=_0x5c6138(_0xaeaada,[_0x203b76(0x437),'id',_0x203b76(0x277),_0x203b76(0x267)]),_0x3f178f=_0x203b76(0x2af)[_0x203b76(0x362)](_0x3f9062,'\x20')['concat'](_0x7e733a||'')[_0x203b76(0x363)](),_0xd894e6=_0x197005['useRef']('_'['concat'](_0x43377f()));return _0x35b70c(_0x2e322e,''[_0x203b76(0x362)](_0x3f9062),{'defIds':_0x2e322e[_0x203b76(0x3c4)],'idSuffix':_0xd894e6['current']},_0x12749e({'ref':_0x4235a1,'className':_0x3f178f},_0x29b9aa),_0x107565);});function _0x35b70c(_0x4ccf50,_0x47dedb,_0x4d4a8d,_0x139a66,_0x569448){const _0x431294=_0x263a40;return _0x197005[_0x431294(0x1cb)](_0x4ccf50[_0x431294(0x215)],_0x12749e(_0x12749e({'key':_0x47dedb},_0x228673(_0x4ccf50,_0x4d4a8d,_0x569448)),_0x139a66),(_0x20ce69(_0x4ccf50,_0x4d4a8d)[_0x431294(0x425)]||[])[_0x431294(0x201)](function(_0x5aea3f,_0x4ccf73){const _0x4a01d7=_0x431294;return _0x35b70c(_0x5aea3f,''['concat'](_0x47dedb,'-')[_0x4a01d7(0x362)](_0x4ccf50[_0x4a01d7(0x215)],'-')[_0x4a01d7(0x362)](_0x4ccf73),_0x4d4a8d,void 0x0,_0x569448);}));}function _0x228673(_0x28d10d,_0x3c0f7d,_0x3c36d6){const _0x4349d9=_0x263a40;var _0x183c1e=_0x12749e({},_0x28d10d[_0x4349d9(0x3b9)]);_0x3c36d6!=null&&_0x3c36d6[_0x4349d9(0x438)]&&_0x183c1e['fill']===_0x4349d9(0x438)&&(_0x183c1e[_0x4349d9(0x208)]=_0x3c36d6[_0x4349d9(0x438)]),_0x28d10d['tag']===_0x4349d9(0x2b5)&&_0x183c1e['id']&&(_0x183c1e['id']=_0x183c1e['id']+_0x3c0f7d[_0x4349d9(0x287)]),Object['entries'](_0x183c1e)[_0x4349d9(0x34f)](function(_0x3251af){const _0x22884f=_0x4349d9;var _0x4171f0=_0x3251af[0x0],_0x48e272=_0x3251af[0x1];_0x4171f0===_0x22884f(0x2b5)&&typeof _0x48e272=='string'&&(_0x183c1e[_0x4171f0]=_0x48e272['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3c0f7d['idSuffix'],')')));});var _0x4ed87f=_0x3c0f7d[_0x4349d9(0x3c4)];return!_0x4ed87f||_0x4ed87f[_0x4349d9(0x22c)]===0x0||(_0x28d10d[_0x4349d9(0x215)]===_0x4349d9(0x217)&&_0x183c1e['xlink:href']&&(_0x183c1e['xlink:href']=_0x183c1e[_0x4349d9(0x2b9)]+_0x3c0f7d[_0x4349d9(0x287)]),Object[_0x4349d9(0x25a)](_0x183c1e)[_0x4349d9(0x34f)](function(_0x4093e6){const _0x360fa4=_0x4349d9;var _0x419f9a=_0x4093e6[0x0],_0x5c8c1e=_0x4093e6[0x1];typeof _0x5c8c1e=='string'&&(_0x183c1e[_0x419f9a]=_0x5c8c1e[_0x360fa4(0x1e9)](/url\(#(.*)\)/,_0x360fa4(0x328)['concat'](_0x3c0f7d['idSuffix'],')')));})),_0x183c1e;}function _0x20ce69(_0x4381bb,_0x3ad863){const _0x47b5ca=_0x263a40;var _0x2c2e08,_0x9a1dfb=_0x3ad863[_0x47b5ca(0x3c4)];return!_0x9a1dfb||_0x9a1dfb[_0x47b5ca(0x22c)]===0x0?_0x4381bb:_0x4381bb[_0x47b5ca(0x215)]===_0x47b5ca(0x2d5)&&(!((_0x2c2e08=_0x4381bb[_0x47b5ca(0x425)])===null||_0x2c2e08===void 0x0)&&_0x2c2e08['length'])?_0x12749e(_0x12749e({},_0x4381bb),{'children':_0x4381bb['children'][_0x47b5ca(0x201)](function(_0x4f2ecf){const _0x38310b=_0x47b5ca;return typeof _0x4f2ecf[_0x38310b(0x3b9)]['id']==_0x38310b(0x3e9)&&_0x9a1dfb&&_0x9a1dfb[_0x38310b(0x3ad)](_0x4f2ecf[_0x38310b(0x3b9)]['id'])?_0x12749e(_0x12749e({},_0x4f2ecf),{'attrs':_0x12749e(_0x12749e({},_0x4f2ecf['attrs']),{'id':_0x4f2ecf['attrs']['id']+_0x3ad863[_0x38310b(0x287)]})}):_0x4f2ecf;})}):_0x4381bb;}function _0x43377f(){const _0x3965bc=_0x263a40;return Math[_0x3965bc(0x1a2)]()[_0x3965bc(0x31a)](0x24)['substring'](0x2,0x8);}_0x35a74d['displayName']='UniverIcon';var _0x2509cd={'tag':_0x263a40(0x21b),'attrs':{'xmlns':_0x263a40(0x355),'fill':'none','viewBox':_0x263a40(0x2c2),'width':'1em','height':_0x263a40(0x1b6)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x263a40(0x20d),'attrs':{'stroke':_0x263a40(0x2bf),'d':_0x263a40(0x1e0),'strokeLinecap':_0x263a40(0x2b4),'strokeLinejoin':_0x263a40(0x2b4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x263a40(0x388)},'children':[{'tag':_0x263a40(0x20d),'attrs':{'fill':_0x263a40(0x2de),'d':_0x263a40(0x419)}}]}]}],'defIds':[_0x263a40(0x388)]},_0x33730a=_0x197005['forwardRef'](function(_0x3319d2,_0x569d38){const _0x175de1=_0x263a40;return _0x197005[_0x175de1(0x1cb)](_0x35a74d,Object[_0x175de1(0x407)]({},_0x3319d2,{'id':'off-line-icon','ref':_0x569d38,'icon':_0x2509cd}));});_0x33730a[_0x263a40(0x1db)]=_0x263a40(0x2fa);var _0x47627d={'tag':_0x263a40(0x21b),'attrs':{'xmlns':_0x263a40(0x355),'fill':_0x263a40(0x27a),'viewBox':_0x263a40(0x40f),'width':'1em','height':_0x263a40(0x1b6)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x263a40(0x20d),'attrs':{'stroke':_0x263a40(0x2bf),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x263a40(0x2b4),'strokeLinejoin':_0x263a40(0x2b4),'strokeWidth':1.2}}]},{'tag':_0x263a40(0x2d5),'attrs':{},'children':[{'tag':_0x263a40(0x3e7),'attrs':{'id':_0x263a40(0x341)},'children':[{'tag':_0x263a40(0x20d),'attrs':{'fill':'white','d':_0x263a40(0x419),'transform':'translate(.97)'}}]}]}],'defIds':[_0x263a40(0x341)]},_0x233b03=_0x197005[_0x263a40(0x1d2)](function(_0x476cf8,_0x2af3ea){const _0x489280=_0x263a40;return _0x197005[_0x489280(0x1cb)](_0x35a74d,Object[_0x489280(0x407)]({},_0x476cf8,{'id':_0x489280(0x1da),'ref':_0x2af3ea,'icon':_0x47627d}));});_0x233b03[_0x263a40(0x1db)]='OnLineIcon';function _0x381bd3(_0x249edc){const _0x58408e=_0x263a40;switch(_0x249edc){case _0x3b3567[_0x58408e(0x38e)][_0x58408e(0x3d0)]:return _0x58408e(0x387);case _0x3b3567[_0x58408e(0x38e)][_0x58408e(0x1de)]:return _0x58408e(0x28b);case _0x3b3567[_0x58408e(0x38e)]['FETCH_MISS']:return _0x58408e(0x255);case _0x3b3567[_0x58408e(0x38e)][_0x58408e(0x2cf)]:return _0x58408e(0x27c);case _0x3b3567['CollaborationStatus']['AWAITING']:case _0x3b3567[_0x58408e(0x38e)][_0x58408e(0x3e4)]:return _0x58408e(0x3b1);case _0x3b3567['CollaborationStatus'][_0x58408e(0x360)]:case _0x3b3567[_0x58408e(0x38e)]['PENDING']:return _0x58408e(0x257);}}function _0x2885e3(_0x4c2e00){const _0x134bc3=_0x263a40,{status$:_0xc3a8e8}=_0x4c2e00,_0x4c784a=_0x214f56[_0x134bc3(0x40c)](_0xc3a8e8,_0x3b3567[_0x134bc3(0x38e)][_0x134bc3(0x2cf)]),_0xca157b=_0x214f56[_0x134bc3(0x346)](_0x2c2192['LocaleService']),_0x52e30b=_0x214f56[_0x134bc3(0x346)](_0x3b3567['CollaborationSessionService']),_0x5c2728=_0x4c784a!==_0x3b3567[_0x134bc3(0x38e)][_0x134bc3(0x3d0)],_0x15677e=_0xca157b['t'](_0x381bd3(_0x4c784a)),_0x2e43aa=_0x5c2728?_0x5dfb74[_0x134bc3(0x32e)](_0x233b03,{}):_0x5dfb74['jsx'](_0x33730a,{}),_0xf30b9b=_0x197005[_0x134bc3(0x2c3)](()=>{_0x5c2728||_0x52e30b['reconnect']();},[_0x5c2728,_0x52e30b]);function _0x3d6c44(){const _0x5685e0=_0x134bc3;return _0x5dfb74[_0x5685e0(0x2a0)](_0x5685e0(0x19c),{'className':_0x5685e0(0x3fe),'onClick':_0xf30b9b,'children':[_0x5dfb74['jsx'](_0x5685e0(0x19c),{'className':_0x4f24da[_0x5685e0(0x1a5)](_0x5685e0(0x40e),{'univer-text-green-500':_0x5c2728,'univer-text-red-500':!_0x5c2728}),'children':_0x2e43aa}),_0x5dfb74[_0x5685e0(0x32e)](_0x5685e0(0x19c),{'className':_0x5685e0(0x2d0),'children':_0x15677e})]});}return _0x5c2728?_0x3d6c44():_0x5dfb74[_0x134bc3(0x32e)](_0x4f24da[_0x134bc3(0x275)],{'title':_0xca157b['t']('collab-client.tooltip.reconnect'),'children':_0x3d6c44()});}var _0x2e2ca5=Object[_0x263a40(0x2bc)],_0x5d3706=(_0x77185f,_0x48f066,_0x2e14cb,_0x34fd0e)=>{const _0x53fd70=_0x263a40;for(var _0x50bd27=_0x34fd0e>0x1?void 0x0:_0x34fd0e?_0x2e2ca5(_0x48f066,_0x2e14cb):_0x48f066,_0x2bce80=_0x77185f[_0x53fd70(0x22c)]-0x1,_0x37cfce;_0x2bce80>=0x0;_0x2bce80--)(_0x37cfce=_0x77185f[_0x2bce80])&&(_0x50bd27=_0x37cfce(_0x50bd27)||_0x50bd27);return _0x50bd27;},_0x2a12c8=(_0x463cd6,_0xcaa718)=>(_0x593caa,_0x5dfe3a)=>_0xcaa718(_0x593caa,_0x5dfe3a,_0x463cd6);_0x9de135[_0x263a40(0x339)]=class extends _0x2c2192[_0x263a40(0x2e1)]{constructor(_0x4549fd,_0x395a3d,_0x504de7,_0x1ad091){const _0x1cf70c=_0x263a40;super(),_0x193c38(this,_0x1cf70c(0x2d8),new _0x39a97e[(_0x1cf70c(0x30b))](_0x3b3567['CollaborationStatus'][_0x1cf70c(0x2cf)])),(this[_0x1cf70c(0x2e9)]=_0x4549fd,this[_0x1cf70c(0x1bd)]=_0x395a3d,this['_collaborationController']=_0x504de7,this[_0x1cf70c(0x411)]=_0x1ad091,this[_0x1cf70c(0x338)](),this[_0x1cf70c(0x3fa)]());}['_initStatusListener'](){const _0x178e47=_0x263a40;this[_0x178e47(0x1af)](this[_0x178e47(0x2e9)][_0x178e47(0x282)][_0x178e47(0x306)](_0x39a97e[_0x178e47(0x2c6)](()=>{const _0x5c4337=_0x178e47,_0x2826f7=this[_0x5c4337(0x2e9)][_0x5c4337(0x1d3)]();return _0x2826f7?this[_0x5c4337(0x420)][_0x5c4337(0x3fc)](_0x2826f7[_0x5c4337(0x385)]()):_0x39a97e['of'](null);}),_0x39a97e['switchMap'](_0xf750a5=>_0xf750a5?_0xf750a5['status$']:_0x39a97e['of'](_0x3b3567[_0x178e47(0x38e)]['NOT_COLLAB'])))[_0x178e47(0x26a)](_0x51a6ed=>{const _0x416b77=_0x178e47;this[_0x416b77(0x2d8)][_0x416b77(0x3db)](_0x51a6ed);}));}[_0x263a40(0x338)](){const _0x3bf98d=_0x263a40;this['disposeWithMe'](this[_0x3bf98d(0x411)][_0x3bf98d(0x23d)](_0x214f56[_0x3bf98d(0x406)][_0x3bf98d(0x3b6)],()=>_0x214f56['connectInjector'](_0xc7a435({'status$':this[_0x3bf98d(0x2d8)][_0x3bf98d(0x3b0)]()}),this['_injector'])));}},_0x9de135[_0x263a40(0x339)]=_0x5d3706([_0x2a12c8(0x0,_0x2c2192['IUniverInstanceService']),_0x2a12c8(0x1,_0x2c2192[_0x263a40(0x3d4)](_0x2c2192[_0x263a40(0x400)])),_0x2a12c8(0x2,_0x2c2192[_0x263a40(0x3d4)](_0x3b3567[_0x263a40(0x223)])),_0x2a12c8(0x3,_0x214f56[_0x263a40(0x3ce)])],_0x9de135[_0x263a40(0x339)]);function _0xc7a435(_0x383c7a){const {status$:_0xeb650e}=_0x383c7a;return function(){const _0x55dac3=_0x19a4;return _0x5dfb74[_0x55dac3(0x32e)](_0x2885e3,{'status$':_0xeb650e});};}const _0x1f6186=_0x2c2192[_0x263a40(0x3be)](_0x263a40(0x399));var _0x9d8214=Object['getOwnPropertyDescriptor'],_0x57b8bd=(_0x145474,_0x2f21b6,_0x34cb5c,_0xa568ef)=>{for(var _0x4a1bd6=_0xa568ef>0x1?void 0x0:_0xa568ef?_0x9d8214(_0x2f21b6,_0x34cb5c):_0x2f21b6,_0x3a1cc7=_0x145474['length']-0x1,_0x43f2ff;_0x3a1cc7>=0x0;_0x3a1cc7--)(_0x43f2ff=_0x145474[_0x3a1cc7])&&(_0x4a1bd6=_0x43f2ff(_0x4a1bd6)||_0x4a1bd6);return _0x4a1bd6;},_0x1f7c53=(_0x56ff77,_0x5a95c3)=>(_0x4321a1,_0x28eef1)=>_0x5a95c3(_0x4321a1,_0x28eef1,_0x56ff77);_0x9de135['CollaborationDataLoaderController']=class extends _0x2c2192['RxDisposable']{constructor(_0x247213,_0x3c5858,_0x375b93,_0x5e3cfd,_0x176376){const _0x223662=_0x263a40;super(),this[_0x223662(0x243)]=_0x247213,this[_0x223662(0x35f)]=_0x3c5858,this[_0x223662(0x361)]=_0x375b93,this[_0x223662(0x1e3)]=_0x5e3cfd,_0x176376?_0x176376==null||_0x176376[_0x223662(0x321)]()['then'](()=>this[_0x223662(0x3b5)]()):(this[_0x223662(0x35f)][_0x223662(0x426)]('[CollaborationDataLoaderController]',_0x223662(0x31e)),this[_0x223662(0x3b5)]());}async[_0x263a40(0x3b5)](){const _0x2efdc9=_0x263a40,_0x452290=this[_0x2efdc9(0x243)][_0x2efdc9(0x2a6)](_0x2efdc9(0x1c9)),_0x3e5943=this[_0x2efdc9(0x243)]['getParam'](_0x2efdc9(0x41a)),_0x56b959=this[_0x2efdc9(0x243)]['getParam'](_0x2efdc9(0x2ec));if(!_0x452290||!_0x3e5943){this[_0x2efdc9(0x35f)][_0x2efdc9(0x426)]('[CollaborationDataLoaderController]',_0x2efdc9(0x3ae));return;}const _0x328211=await this[_0x2efdc9(0x1e3)]['loadUnit'](_0x452290,Number(_0x3e5943),_0x56b959);_0x328211&&_0x328211 instanceof _0x2c2192[_0x2efdc9(0x3c5)]&&this[_0x2efdc9(0x3d2)](_0x328211);}async[_0x263a40(0x3d2)](_0x35b88e){const _0xe5999b=_0x263a40;await this['_updateSubUnitFromURLParams'](_0x35b88e),_0x35b88e[_0xe5999b(0x381)]['pipe'](_0x39a97e[_0xe5999b(0x2f3)](this[_0xe5999b(0x313)]))[_0xe5999b(0x26a)](_0x389ada=>{_0x389ada&&this['_updateURLWithCurrentState'](_0x389ada);}),this['_urlService'][_0xe5999b(0x3fd)][_0xe5999b(0x306)](_0x39a97e[_0xe5999b(0x2f3)](this[_0xe5999b(0x313)]))[_0xe5999b(0x26a)](()=>this[_0xe5999b(0x2fd)](_0x35b88e));}[_0x263a40(0x1b1)](_0x2aa5cc,_0x2c7100=!0x1){const _0xd9fd7d=_0x263a40,_0x4b492a=this[_0xd9fd7d(0x243)][_0xd9fd7d(0x2a6)](_0xd9fd7d(0x2ec));_0x2aa5cc['getSheetId']()!==_0x4b492a&&this[_0xd9fd7d(0x243)][_0xd9fd7d(0x435)](_0xd9fd7d(0x2ec),_0x2aa5cc[_0xd9fd7d(0x342)](),_0x2c7100);}async[_0x263a40(0x2fd)](_0x16766a){const _0x58344d=_0x263a40;var _0x14b9ff;const _0x1b654f=this['_urlService'][_0x58344d(0x2a6)]('subunit');if(!_0x1b654f||!_0x16766a[_0x58344d(0x288)](_0x1b654f)){const _0x46728a=_0x16766a[_0x58344d(0x23e)]()[0x0],_0xae99ca=_0x16766a['getSheetBySheetId'](_0x46728a);if(!_0xae99ca)return;this[_0x58344d(0x1b1)](_0xae99ca,!0x0),await this[_0x58344d(0x361)][_0x58344d(0x3ed)](_0x40b606[_0x58344d(0x35b)]['id'],{'unitId':_0x16766a[_0x58344d(0x385)](),'subUnitId':_0x46728a});return;}((_0x14b9ff=_0x16766a[_0x58344d(0x3d7)]())==null?void 0x0:_0x14b9ff[_0x58344d(0x342)]())!==_0x1b654f&&await this['_commandService'][_0x58344d(0x3ed)](_0x40b606['SetWorksheetActivateCommand']['id'],{'unitId':_0x16766a[_0x58344d(0x385)](),'subUnitId':_0x1b654f});}},_0x9de135[_0x263a40(0x2e7)]=_0x57b8bd([_0x1f7c53(0x0,_0x1f6186),_0x1f7c53(0x1,_0x2c2192['ILogService']),_0x1f7c53(0x2,_0x2c2192['ICommandService']),_0x1f7c53(0x3,_0x2c2192[_0x263a40(0x3d4)](_0x3b3567[_0x263a40(0x395)])),_0x1f7c53(0x4,_0x2c2192[_0x263a40(0x2d6)](_0x30a3e[_0x263a40(0x2e5)]))],_0x9de135[_0x263a40(0x2e7)]);var _0x1c4e64=Object[_0x263a40(0x2bc)],_0x529666=(_0x4d3dbc,_0x2d2b3a,_0x554a14,_0x1707ce)=>{const _0x2641f0=_0x263a40;for(var _0x5e54f9=_0x1707ce>0x1?void 0x0:_0x1707ce?_0x1c4e64(_0x2d2b3a,_0x554a14):_0x2d2b3a,_0x1f079d=_0x4d3dbc[_0x2641f0(0x22c)]-0x1,_0x5f4142;_0x1f079d>=0x0;_0x1f079d--)(_0x5f4142=_0x4d3dbc[_0x1f079d])&&(_0x5e54f9=_0x5f4142(_0x5e54f9)||_0x5e54f9);return _0x5e54f9;},_0x37b2d0=(_0x1f1490,_0x59c46c)=>(_0x560fe3,_0x5d3a41)=>_0x59c46c(_0x560fe3,_0x5d3a41,_0x1f1490);let _0x1b423f=class extends _0x2c2192[_0x263a40(0x326)]{constructor(_0x5449e9,_0x3b8f2a){const _0x2bc711=_0x263a40;super(),this[_0x2bc711(0x3d9)]=_0x5449e9,this[_0x2bc711(0x37a)]=_0x3b8f2a,this[_0x2bc711(0x3b5)]();}['_init'](){const _0x267486=_0x263a40,_0x3d37f6=this;this[_0x267486(0x1af)](this[_0x267486(0x3d9)][_0x267486(0x38f)]({'onBeforePasteImage':async _0x21c178=>{const _0x9f13b3=_0x267486,_0x20bb55=await _0x3d37f6[_0x9f13b3(0x37a)][_0x9f13b3(0x24a)](_0x21c178);return _0x20bb55?{'source':_0x20bb55['source'],'imageSourceType':_0x20bb55[_0x9f13b3(0x1b8)]}:null;}}));}};_0x1b423f=_0x529666([_0x37b2d0(0x0,_0x4e1317[_0x263a40(0x1f9)]),_0x37b2d0(0x1,_0x4251fe[_0x263a40(0x377)])],_0x1b423f);const _0x5615b7=[_0x263a40(0x218),_0x263a40(0x240),_0x263a40(0x3de),_0x263a40(0x3ab),'blue.400',_0x263a40(0x2b7)];class _0x32664d extends _0x2c2192['Disposable']{constructor(){const _0x2a24a8=_0x263a40;super(...arguments),_0x193c38(this,_0x2a24a8(0x299),new Map()),_0x193c38(this,_0x2a24a8(0x24e),0x0);}[_0x263a40(0x37f)](_0x59dbcd){const _0x28c948=_0x263a40;if(this[_0x28c948(0x299)][_0x28c948(0x31d)](_0x59dbcd))return this[_0x28c948(0x299)][_0x28c948(0x378)](_0x59dbcd);const _0x1c6d21=_0x5615b7[this[_0x28c948(0x24e)]];return this[_0x28c948(0x24e)]=(this[_0x28c948(0x24e)]+0x1)%_0x5615b7[_0x28c948(0x22c)],this[_0x28c948(0x299)]['set'](_0x59dbcd,_0x1c6d21),_0x1c6d21;}}function _0x15faa4(_0x7fcb79){const _0x5d98e3=_0x263a40;let _0x457bba='';for(const _0x24bf3c of _0x7fcb79){const {startOffset:_0x391884,endOffset:_0x3908bb,isActive:_0x2f3231,rangeType:_0x4aeb3c,segmentId:_0x2476d3,segmentPage:_0x2c1151}=_0x24bf3c;_0x457bba[_0x5d98e3(0x22c)]&&(_0x457bba+=','),_0x457bba+=_0x391884+':'+_0x3908bb+':'+(_0x2f3231?'1':'0')+':'+_0x4aeb3c+':'+_0x2476d3+':'+_0x2c1151;}return _0x457bba;}function _0xddf4f0(_0x9cc066){const _0x3b0244=_0x263a40,_0x1f2aa3=_0x9cc066[_0x3b0244(0x3e5)](','),_0x17c5c8=[];for(const _0x531209 of _0x1f2aa3){const [_0x14283d,_0x4b5809,_0x170f27,_0x1a69db,_0x5f23ad,_0x4980ee]=_0x531209[_0x3b0244(0x3e5)](':');_0x17c5c8[_0x3b0244(0x367)]({'startOffset':Number(_0x14283d),'endOffset':Number(_0x4b5809),'collapsed':_0x14283d===_0x4b5809,'isActive':_0x170f27==='1','rangeType':_0x1a69db===_0x2c2192['DOC_RANGE_TYPE'][_0x3b0244(0x24f)]?_0x2c2192[_0x3b0244(0x3c3)][_0x3b0244(0x24f)]:_0x2c2192[_0x3b0244(0x3c3)][_0x3b0244(0x386)],'segmentId':typeof _0x5f23ad==_0x3b0244(0x3e9)?String(_0x5f23ad):'','segmentPage':Number(_0x4980ee!=null?_0x4980ee:-0x1)});}return _0x17c5c8[_0x3b0244(0x29b)](_0x3f121f=>_0x3f121f['isActive'])||(_0x17c5c8[0x0][_0x3b0244(0x3ee)]=!0x0),_0x17c5c8;}class _0x45dd48 extends _0x2c2192['RxDisposable']{constructor(){const _0x21cd2a=_0x263a40;super(...arguments),_0x193c38(this,_0x21cd2a(0x2f1),new _0x39a97e['BehaviorSubject'](null)),_0x193c38(this,'collabCursorState$',this[_0x21cd2a(0x2f1)][_0x21cd2a(0x3b0)]());}['syncEditingCollabCursor'](_0x336361){const _0x4a681e=_0x263a40,{unitID:_0x5db2ae,memberID:_0x30b0fc,textRanges:_0x5b5258}=_0x336361,_0x137040=_0x15faa4(_0x5b5258);if(_0x137040==='')return;const _0x5eb634={'unitID':_0x5db2ae,'memberID':_0x30b0fc,'selection':_0x137040};this[_0x4a681e(0x2f1)][_0x4a681e(0x3db)](_0x5eb634);}}var _0x27e4ec=Object[_0x263a40(0x2bc)],_0x11a06c=(_0x5a00a1,_0x5677d8,_0x48ee1b,_0x36dabc)=>{const _0x4d8804=_0x263a40;for(var _0x28148e=_0x36dabc>0x1?void 0x0:_0x36dabc?_0x27e4ec(_0x5677d8,_0x48ee1b):_0x5677d8,_0x5286e9=_0x5a00a1[_0x4d8804(0x22c)]-0x1,_0xae5ba;_0x5286e9>=0x0;_0x5286e9--)(_0xae5ba=_0x5a00a1[_0x5286e9])&&(_0x28148e=_0xae5ba(_0x28148e)||_0x28148e);return _0x28148e;},_0x2dadfc=(_0x1d5793,_0x136c1b)=>(_0x4fbd5a,_0x2b355c)=>_0x136c1b(_0x4fbd5a,_0x2b355c,_0x1d5793);const _0x47f7aa=0x12c,_0x2d93ac=0x64;let _0x328609=class extends _0x2c2192[_0x263a40(0x326)]{constructor(_0x3c97fd,_0x3e846c,_0xd7bda3,_0x138caa,_0x43b048,_0x162723,_0x5b463a,_0x4a1124,_0x21985b){const _0x3223d8=_0x263a40;super(),_0x193c38(this,_0x3223d8(0x1f5),!0x1),_0x193c38(this,_0x3223d8(0x3b5),!0x1),_0x193c38(this,_0x3223d8(0x2cb),new _0x39a97e[(_0x3223d8(0x30b))](new Map())),_0x193c38(this,_0x3223d8(0x1c2),this[_0x3223d8(0x2cb)][_0x3223d8(0x3b0)]()),_0x193c38(this,'_roomMembers$',new _0x39a97e[(_0x3223d8(0x30b))]([])),_0x193c38(this,_0x3223d8(0x2a5),this[_0x3223d8(0x345)]['pipe'](_0x39a97e['debounceTime'](_0x47f7aa))),_0x193c38(this,'_updateLocalCursor',_0x2c2192[_0x3223d8(0x3af)](_0x406640=>{const _0x145191=_0x3223d8,_0x29311b={'eventID':_0x542b31[_0x145191(0x26d)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x145191(0x2a7)][_0x145191(0x26e)](),'selection':_0x15faa4(_0x406640)}};this[_0x145191(0x2a7)][_0x145191(0x36a)](_0x29311b,this[_0x145191(0x1c8)]);},_0x2d93ac)),(this[_0x3223d8(0x1c8)]=_0x3c97fd,this['_session']=_0x3e846c,this[_0x3223d8(0x1bd)]=_0xd7bda3,this['_colorAssignService']=_0x138caa,this[_0x3223d8(0x3d3)]=_0x43b048,this[_0x3223d8(0x327)]=_0x162723,this[_0x3223d8(0x42c)]=_0x5b463a,this['_univerInstanceService']=_0x4a1124,this[_0x3223d8(0x361)]=_0x21985b);}get[_0x263a40(0x229)](){const _0x54c998=_0x263a40;return this['_cursorInfo$'][_0x54c998(0x225)]();}get[_0x263a40(0x28c)](){return this['_roomMembers$']['getValue']();}[_0x263a40(0x3e8)](){const _0x1e586f=_0x263a40;super[_0x1e586f(0x3e8)](),this[_0x1e586f(0x2cb)][_0x1e586f(0x3db)](new Map()),this['_cursorInfo$']['complete'](),this[_0x1e586f(0x345)]['next']([]),this['_roomMembers$'][_0x1e586f(0x232)]();}['init'](){const _0x539b8c=_0x263a40;this[_0x539b8c(0x3b5)]||(this[_0x539b8c(0x3b5)]=!0x0,this[_0x539b8c(0x2a7)][_0x539b8c(0x38d)]['pipe'](_0x39a97e['takeUntil'](this['dispose$']))[_0x539b8c(0x26a)](_0x119d45=>{const _0x3d0fc8=_0x539b8c;_0x119d45===_0x3b3567[_0x3d0fc8(0x253)]['ONLINE']?this[_0x3d0fc8(0x331)]():this['_toggleOffline']();}),this[_0x539b8c(0x2a7)]['event$'][_0x539b8c(0x306)](_0x39a97e[_0x539b8c(0x2f3)](this[_0x539b8c(0x313)]))[_0x539b8c(0x26a)](_0x51103d=>{const _0x2aa53c=_0x539b8c,_0x451c25=_0x51103d[_0x2aa53c(0x352)];_0x451c25===_0x542b31[_0x2aa53c(0x26d)]['UPDATE_CURSOR']&&this[_0x2aa53c(0x250)](_0x51103d),_0x451c25===_0x542b31[_0x2aa53c(0x26d)][_0x2aa53c(0x3f4)]&&this[_0x2aa53c(0x42e)](_0x51103d);}),this[_0x539b8c(0x1af)](this[_0x539b8c(0x361)][_0x539b8c(0x249)](_0x518774=>{const _0x357e0c=_0x539b8c,_0x47f91f=_0x518774[_0x357e0c(0x439)];_0x47f91f!=null&&this[_0x357e0c(0x1f5)]&&_0x518774['id']===_0x28f6a3[_0x357e0c(0x3c9)]['id']&&_0x47f91f[_0x357e0c(0x1a7)]===this[_0x357e0c(0x1c8)]&&_0x47f91f['isEditing']===!0x1&&_0x47f91f['ranges'][_0x357e0c(0x22c)]>0x0&&this[_0x357e0c(0x244)](_0x47f91f[_0x357e0c(0x41f)]);})),this[_0x539b8c(0x327)][_0x539b8c(0x248)][_0x539b8c(0x306)](_0x39a97e[_0x539b8c(0x2f3)](this[_0x539b8c(0x313)]))[_0x539b8c(0x26a)](_0x137caa=>{const _0x227927=_0x539b8c;if((_0x137caa==null?void 0x0:_0x137caa[_0x227927(0x1c8)])!==this['unitID'])return;const _0x339088={'eventID':_0x542b31['CollaborationEvent'][_0x227927(0x3f9)],'data':_0x137caa};this[_0x227927(0x250)](_0x339088);}),this[_0x539b8c(0x1af)](this[_0x539b8c(0x361)][_0x539b8c(0x249)](_0x58e883=>{const _0x579f0c=_0x539b8c;if(_0x58e883['params']==null)return;const _0x3147cb=_0x58e883['params'];if(_0x58e883['id']!==_0x28f6a3[_0x579f0c(0x1ed)]['id']||_0x3147cb['unitId']!==this[_0x579f0c(0x1c8)])return;const _0x5292c7={'id':_0x579f0c(0x323),'params':_0x3147cb},_0x2668bb=this[_0x579f0c(0x229)];for(const [_0x42e204,_0x2b8968]of _0x2668bb){const _0x1f4440={'id':_0x579f0c(0x323),'params':{'unitId':this[_0x579f0c(0x1c8)],'actions':null,'textRanges':_0x2b8968['ranges']}},_0x414845=this[_0x579f0c(0x42c)][_0x579f0c(0x39e)](_0x5292c7,_0x1f4440,!0x1);if(_0x542b31[_0x579f0c(0x39f)](_0x414845))throw _0x414845[_0x579f0c(0x423)];_0x2668bb[_0x579f0c(0x2d9)](_0x42e204,{..._0x2b8968,'ranges':_0x414845['m2Prime'][_0x579f0c(0x439)]['textRanges']});}queueMicrotask(()=>{const _0x3aa6af=_0x579f0c;this['_cursorInfo$'][_0x3aa6af(0x3db)](_0x2668bb);});})));}[_0x263a40(0x250)](_0x2d4497){const _0x301f38=_0x263a40;var _0xa27ccb,_0x5c1a28;const {memberID:_0x4f16da,selection:_0x1f0848}=_0x2d4497[_0x301f38(0x1bb)],_0x22a12c=_0xddf4f0(_0x1f0848),_0x404d8a=(_0x5c1a28=(_0xa27ccb=this[_0x301f38(0x3d3)]['getMember'](this[_0x301f38(0x1c8)],_0x4f16da))==null?void 0x0:_0xa27ccb[_0x301f38(0x3d8)])!=null?_0x5c1a28:_0x301f38(0x3c0),_0x34858a={'color':this[_0x301f38(0x33a)][_0x301f38(0x37f)](_0x4f16da),'name':_0x404d8a,'ranges':_0x22a12c},_0x213297=this[_0x301f38(0x229)];_0x213297[_0x301f38(0x2d9)](_0x4f16da,_0x34858a),this['_cursorInfo$'][_0x301f38(0x3db)](_0x213297);}[_0x263a40(0x42e)](_0x3cb2d4){const _0x24036c=_0x263a40,{memberID:_0x515555}=_0x3cb2d4[_0x24036c(0x1bb)],_0x18009d=this[_0x24036c(0x229)];_0x18009d[_0x24036c(0x402)](_0x515555),this[_0x24036c(0x2cb)][_0x24036c(0x3db)](_0x18009d);}['_toggleOnline'](){const _0x4f31f2=_0x263a40;var _0x3b0270;if(this[_0x4f31f2(0x1f5)]=!0x0,((_0x3b0270=this[_0x4f31f2(0x2e9)]['getFocusedUnit']())==null?void 0x0:_0x3b0270[_0x4f31f2(0x385)]())!==this[_0x4f31f2(0x1c8)])return;const _0x226a27=this['_injector'][_0x4f31f2(0x378)](_0x28f6a3[_0x4f31f2(0x22a)])[_0x4f31f2(0x1fb)]();Array[_0x4f31f2(0x2ca)](_0x226a27)&&_0x226a27[_0x4f31f2(0x22c)]>0x0&&this['_updateLocalCursor'](_0x226a27);}[_0x263a40(0x2f6)](){const _0x4d0d2b=_0x263a40;this[_0x4d0d2b(0x1f5)]=!0x1;}};_0x328609=_0x11a06c([_0x2dadfc(0x2,_0x2c2192[_0x263a40(0x3d4)](_0x2c2192[_0x263a40(0x400)])),_0x2dadfc(0x3,_0x2c2192[_0x263a40(0x3d4)](_0x32664d)),_0x2dadfc(0x4,_0x2c2192[_0x263a40(0x3d4)](_0x3b3567[_0x263a40(0x398)])),_0x2dadfc(0x5,_0x2c2192[_0x263a40(0x3d4)](_0x45dd48)),_0x2dadfc(0x6,_0x542b31[_0x263a40(0x1e1)]),_0x2dadfc(0x7,_0x2c2192[_0x263a40(0x228)]),_0x2dadfc(0x8,_0x2c2192[_0x263a40(0x259)])],_0x328609);var _0x417c1e=Object[_0x263a40(0x2bc)],_0x6a93cd=(_0x275874,_0x5da201,_0x2c775a,_0x4d2a96)=>{const _0x58011e=_0x263a40;for(var _0x3f5b43=_0x4d2a96>0x1?void 0x0:_0x4d2a96?_0x417c1e(_0x5da201,_0x2c775a):_0x5da201,_0x218b61=_0x275874[_0x58011e(0x22c)]-0x1,_0x517c2a;_0x218b61>=0x0;_0x218b61--)(_0x517c2a=_0x275874[_0x218b61])&&(_0x3f5b43=_0x517c2a(_0x3f5b43)||_0x3f5b43);return _0x3f5b43;},_0x56f970=(_0x3d62c4,_0x1e2ef3)=>(_0x5eb860,_0x4586d3)=>_0x1e2ef3(_0x5eb860,_0x4586d3,_0x3d62c4);const _0x2453a3=0x12c,_0x8ca3d3=0x64,_0x22c345=()=>{let _0x2bfc47=[],_0x20070f=!0x1;return _0x2f1a93=>{const _0x4c93ce=_0x19a4;_0x2bfc47[_0x4c93ce(0x367)](_0x2f1a93),_0x20070f||(_0x20070f=!0x0,setTimeout(()=>{_0x2bfc47['forEach'](_0x5766fe=>_0x5766fe()),_0x2bfc47=[],_0x20070f=!0x1;}));};};let _0x5cf1d7=class extends _0x2c2192['RxDisposable']{constructor(_0x82fd47,_0x12e4f1,_0x510859,_0x479c14,_0x31179d,_0x1f3d38,_0xdf8ecc,_0xf26a61){const _0x501ca2=_0x263a40;super(),_0x193c38(this,'_online',!0x1),_0x193c38(this,'_init',!0x1),_0x193c38(this,_0x501ca2(0x2cb),new _0x39a97e[(_0x501ca2(0x30b))](new Map())),_0x193c38(this,'cursorInfo$',this[_0x501ca2(0x2cb)][_0x501ca2(0x3b0)]()),_0x193c38(this,_0x501ca2(0x345),new _0x39a97e['BehaviorSubject']([])),_0x193c38(this,'roomMembers$',this[_0x501ca2(0x345)][_0x501ca2(0x306)](_0x39a97e[_0x501ca2(0x369)](_0x2453a3))),_0x193c38(this,_0x501ca2(0x244),_0x2c2192['debounce']((_0x5de895,_0x1e0154)=>{const _0x4ffc88=_0x501ca2,_0x49f004={'eventID':_0x542b31['CollaborationEvent'][_0x4ffc88(0x3f9)],'data':{'unitID':this[_0x4ffc88(0x1c8)],'memberID':this['_session'][_0x4ffc88(0x26e)](),'selection':_0x46218b[_0x4ffc88(0x34b)](_0x5de895,_0x1e0154[_0x4ffc88(0x2a3)])}};this[_0x4ffc88(0x2a7)][_0x4ffc88(0x36a)](_0x49f004,this[_0x4ffc88(0x1c8)]);},_0x8ca3d3)),(this[_0x501ca2(0x1c8)]=_0x82fd47,this[_0x501ca2(0x2a7)]=_0x12e4f1,this[_0x501ca2(0x1bd)]=_0x510859,this[_0x501ca2(0x33a)]=_0x479c14,this[_0x501ca2(0x3d3)]=_0x31179d,this[_0x501ca2(0x2e9)]=_0x1f3d38,this[_0x501ca2(0x361)]=_0xdf8ecc,this[_0x501ca2(0x427)]=_0xf26a61);}get['cursorInfo'](){const _0x264f60=_0x263a40;return this[_0x264f60(0x2cb)][_0x264f60(0x225)]();}get[_0x263a40(0x28c)](){const _0x450a68=_0x263a40;return this[_0x450a68(0x345)][_0x450a68(0x225)]();}[_0x263a40(0x3e8)](){const _0x364312=_0x263a40;super[_0x364312(0x3e8)](),this['_cursorInfo$'][_0x364312(0x3db)](new Map()),this[_0x364312(0x2cb)][_0x364312(0x232)](),this[_0x364312(0x345)][_0x364312(0x3db)]([]),this[_0x364312(0x345)][_0x364312(0x232)]();}[_0x263a40(0x3ff)](){const _0x45b380=_0x263a40;this[_0x45b380(0x3b5)]||(this['_init']=!0x0,this[_0x45b380(0x2a7)]['sessionStatus$'][_0x45b380(0x306)](_0x39a97e[_0x45b380(0x2f3)](this[_0x45b380(0x313)]))[_0x45b380(0x26a)](_0x50bc2e=>{const _0x51be02=_0x45b380;_0x50bc2e===_0x3b3567[_0x51be02(0x253)][_0x51be02(0x3da)]?this[_0x51be02(0x331)]():this[_0x51be02(0x2f6)]();}),this[_0x45b380(0x2a7)][_0x45b380(0x384)][_0x45b380(0x306)](_0x39a97e['takeUntil'](this['dispose$']))[_0x45b380(0x26a)](_0x3bcffa=>{const _0x1bf101=_0x45b380,_0x1830c2=_0x3bcffa[_0x1bf101(0x352)];_0x1830c2===_0x542b31['CollaborationEvent'][_0x1bf101(0x3f9)]&&this[_0x1bf101(0x250)](_0x3bcffa),_0x1830c2===_0x542b31['CollaborationEvent'][_0x1bf101(0x3f4)]&&this[_0x1bf101(0x42e)](_0x3bcffa);}),this[_0x45b380(0x3ac)](),this['disposeWithMe'](this[_0x45b380(0x361)][_0x45b380(0x249)](_0x37f5dc=>{const _0xca8d0=_0x45b380;if(this[_0xca8d0(0x1f5)]&&_0x37f5dc['id']===_0x40b606['SetSelectionsOperation']['id']&&_0x37f5dc['params'][_0xca8d0(0x1a7)]===this[_0xca8d0(0x1c8)]){const _0x1c1dcc=_0x37f5dc[_0xca8d0(0x439)];this[_0xca8d0(0x244)](_0x1c1dcc[_0xca8d0(0x3f8)],_0x1c1dcc['selections'][0x0]);}})));}[_0x263a40(0x250)](_0x1757b1){const _0x135d48=_0x263a40;var _0x5c7d8d,_0x144c2b;const {memberID:_0x14b698,selection:_0x27afba}=_0x1757b1[_0x135d48(0x1bb)],{sheetName:_0x2a9090,range:_0x5b0247}=_0x46218b[_0x135d48(0x254)](_0x27afba),_0x14df67={'name':(_0x144c2b=(_0x5c7d8d=this[_0x135d48(0x3d3)]['getMember'](this[_0x135d48(0x1c8)],_0x14b698))==null?void 0x0:_0x5c7d8d['name'])!=null?_0x144c2b:'Unknown\x20user','range':this[_0x135d48(0x312)](_0x2a9090,_0x5b0247),'sheetID':_0x2a9090,'color':this['_colorAssignService'][_0x135d48(0x37f)](_0x14b698),'selection':_0x27afba},_0xe84be3=this[_0x135d48(0x229)];_0xe84be3['set'](_0x14b698,_0x14df67),this[_0x135d48(0x2cb)][_0x135d48(0x3db)](_0xe84be3);}['_onCursorDelete'](_0x517eb5){const _0x118a35=_0x263a40,{memberID:_0x431a88}=_0x517eb5[_0x118a35(0x1bb)],_0x4910d5=this['cursorInfo'];_0x4910d5['delete'](_0x431a88),this[_0x118a35(0x2cb)]['next'](_0x4910d5);}[_0x263a40(0x312)](_0x3cebcf,_0x102638){const _0x3f7796=_0x263a40;var _0x497dbe,_0x42a17a;const _0x1fdf7d=(_0x42a17a=(_0x497dbe=this[_0x3f7796(0x2e9)][_0x3f7796(0x33f)](this[_0x3f7796(0x1c8)]))==null?void 0x0:_0x497dbe[_0x3f7796(0x288)](_0x3cebcf))==null?void 0x0:_0x42a17a[_0x3f7796(0x3cc)]();return(_0x1fdf7d==null?void 0x0:_0x1fdf7d[_0x3f7796(0x23f)](_0x4e308f=>_0x2c2192[_0x3f7796(0x3f6)][_0x3f7796(0x30e)](_0x4e308f,_0x102638)))||_0x102638;}[_0x263a40(0x3ac)](){const _0x32758b=_0x263a40,_0x4d6ef0=new _0x2c2192['DisposableCollection'](),_0x86aad0=_0x22c345(),_0xa291fc=()=>{const _0x104434=_0x19a4;_0x4d6ef0['dispose']();const _0x51221f=(_0x556d9b,_0x255bdd,_0x344867,_0x13ba35)=>{const _0x502a7c=_0x19a4;let _0x85047d=[];switch(_0x556d9b['id']){case _0x40b606[_0x502a7c(0x431)][_0x502a7c(0x1c7)]:{_0x85047d=_0x40b606[_0x502a7c(0x359)](_0x556d9b,_0x13ba35);break;}case _0x40b606[_0x502a7c(0x431)][_0x502a7c(0x1ad)]:{_0x85047d=_0x40b606[_0x502a7c(0x36e)](_0x556d9b,_0x13ba35);break;}case _0x40b606['EffectRefRangId']['InsertColCommandId']:{_0x85047d=_0x40b606[_0x502a7c(0x268)](_0x556d9b,_0x13ba35);break;}case _0x40b606['EffectRefRangId'][_0x502a7c(0x430)]:{_0x85047d=_0x40b606[_0x502a7c(0x221)](_0x556d9b,_0x13ba35);break;}case _0x40b606[_0x502a7c(0x431)][_0x502a7c(0x3c7)]:{_0x85047d=_0x40b606[_0x502a7c(0x1ae)](_0x556d9b,_0x13ba35);break;}case _0x40b606[_0x502a7c(0x431)][_0x502a7c(0x1d9)]:{_0x85047d=_0x40b606[_0x502a7c(0x234)](_0x556d9b,_0x13ba35);break;}case _0x40b606[_0x502a7c(0x431)][_0x502a7c(0x38a)]:{_0x85047d=_0x40b606[_0x502a7c(0x2c4)](_0x556d9b,_0x13ba35);break;}case _0x40b606[_0x502a7c(0x431)][_0x502a7c(0x2b6)]:{_0x85047d=_0x40b606['handleIRemoveCol'](_0x556d9b,_0x13ba35);break;}case _0x40b606[_0x502a7c(0x431)]['RemoveRowCommandId']:{_0x85047d=_0x40b606[_0x502a7c(0x296)](_0x556d9b,_0x13ba35);break;}}const _0x5a43b8=_0x40b606[_0x502a7c(0x1f6)](_0x85047d,_0x13ba35),_0x36fb5f=this[_0x502a7c(0x229)]['get'](_0x255bdd);if(_0x36fb5f&&_0x5a43b8){const _0x1bebb1={..._0x36fb5f,'range':_0x5a43b8};this[_0x502a7c(0x229)][_0x502a7c(0x2d9)](_0x255bdd,_0x1bebb1),_0x86aad0(()=>{const _0x3a86f0=_0x502a7c,_0x538cea=this[_0x3a86f0(0x427)][_0x3a86f0(0x3b7)](_0x5a43b8,_0x52c1f4=>(_0x538cea[_0x3a86f0(0x3e8)](),_0x51221f(_0x52c1f4,_0x255bdd,_0x344867,_0x5a43b8)));_0x4d6ef0[_0x3a86f0(0x1d8)](_0x538cea);});}return{'redos':[],'undos':[]};};this[_0x104434(0x229)][_0x104434(0x34f)]((_0x149f53,_0x58f8eb)=>{const _0x21a3cb=_0x104434,{range:_0x14cdab,sheetID:_0x4d9eb0}=_0x149f53,_0x317ce2=this['_refRangeService']['registerRefRange'](_0x14cdab,_0x697f4f=>(_0x317ce2[_0x21a3cb(0x3e8)](),_0x51221f(_0x697f4f,_0x58f8eb,_0x4d9eb0,_0x14cdab)));_0x4d6ef0[_0x21a3cb(0x1d8)](_0x317ce2);});};this['disposeWithMe'](_0x2c2192[_0x32758b(0x1bf)](this[_0x32758b(0x2cb)][_0x32758b(0x26a)](()=>{_0xa291fc();})));}['_toggleOnline'](){const _0x2f2d42=_0x263a40;var _0x1df232,_0x48a085;if(this[_0x2f2d42(0x1f5)]=!0x0,((_0x1df232=this[_0x2f2d42(0x2e9)][_0x2f2d42(0x1d3)]())==null?void 0x0:_0x1df232[_0x2f2d42(0x385)]())!==this[_0x2f2d42(0x1c8)])return;const _0x4438f1=(_0x48a085=this['_injector'][_0x2f2d42(0x378)](_0x40b606[_0x2f2d42(0x337)])[_0x2f2d42(0x295)]())==null?void 0x0:_0x48a085[0x0],_0x4086ca=this[_0x2f2d42(0x2e9)][_0x2f2d42(0x3a5)](_0x2c2192['UniverInstanceType'][_0x2f2d42(0x29e)])['getActiveSheet']();_0x4438f1&&_0x4086ca&&this['_updateLocalCursor'](_0x4086ca['getSheetId'](),_0x4438f1);}[_0x263a40(0x2f6)](){const _0x39ca95=_0x263a40;this[_0x39ca95(0x1f5)]=!0x1;}};_0x5cf1d7=_0x6a93cd([_0x56f970(0x2,_0x2c2192[_0x263a40(0x3d4)](_0x2c2192[_0x263a40(0x400)])),_0x56f970(0x3,_0x2c2192[_0x263a40(0x3d4)](_0x32664d)),_0x56f970(0x4,_0x2c2192[_0x263a40(0x3d4)](_0x3b3567[_0x263a40(0x398)])),_0x56f970(0x5,_0x2c2192[_0x263a40(0x228)]),_0x56f970(0x6,_0x2c2192[_0x263a40(0x259)]),_0x56f970(0x7,_0x2c2192[_0x263a40(0x3d4)](_0x40b606['RefRangeService']))],_0x5cf1d7);var _0x4960ff=Object[_0x263a40(0x2bc)],_0x3974cb=(_0x10e569,_0x190080,_0x25b588,_0x3d9f9f)=>{const _0x11e693=_0x263a40;for(var _0x4bf1dc=_0x3d9f9f>0x1?void 0x0:_0x3d9f9f?_0x4960ff(_0x190080,_0x25b588):_0x190080,_0xe464fd=_0x10e569[_0x11e693(0x22c)]-0x1,_0x3116a2;_0xe464fd>=0x0;_0xe464fd--)(_0x3116a2=_0x10e569[_0xe464fd])&&(_0x4bf1dc=_0x3116a2(_0x4bf1dc)||_0x4bf1dc);return _0x4bf1dc;},_0x318f11=(_0x2372ac,_0x615e3a)=>(_0x44e52d,_0x6b1995)=>_0x615e3a(_0x44e52d,_0x6b1995,_0x2372ac);let _0x289b74=class extends _0x2c2192[_0x263a40(0x326)]{constructor(_0x2fe2e9,_0x5c1587,_0x421527){const _0x2fbe2d=_0x263a40;super(),_0x193c38(this,_0x2fbe2d(0x1ca),new Map()),_0x193c38(this,'_entityInit$',new _0x39a97e[(_0x2fbe2d(0x25c))]()),(this[_0x2fbe2d(0x2e9)]=_0x2fe2e9,this[_0x2fbe2d(0x1bd)]=_0x5c1587,this[_0x2fbe2d(0x27b)]=_0x421527,this['_init']());}[_0x263a40(0x3e8)](){const _0x9d5cec=_0x263a40;super[_0x9d5cec(0x3e8)](),this[_0x9d5cec(0x392)]['complete'](),this[_0x9d5cec(0x1ca)]['forEach'](_0x5161ca=>_0x5161ca[_0x9d5cec(0x3e8)]());}['getCollabCursors$'](_0x443e85){const _0x37a021=_0x263a40;return this['_entities'][_0x37a021(0x31d)](_0x443e85)?this[_0x37a021(0x1ca)][_0x37a021(0x378)](_0x443e85)['cursorInfo$']:this[_0x37a021(0x392)]['pipe'](_0x39a97e[_0x37a021(0x3a1)](_0x2a1648=>_0x2a1648[_0x37a021(0x1c8)]===_0x443e85),_0x39a97e[_0x37a021(0x2c6)](_0x1fa20d=>_0x1fa20d['cursorInfo$']));}[_0x263a40(0x3b5)](){const _0x4404c5=_0x263a40;this[_0x4404c5(0x2e9)]['getTypeOfUnitAdded$'](_0x2c2192[_0x4404c5(0x1c6)]['UNIVER_SHEET'])[_0x4404c5(0x306)](_0x39a97e[_0x4404c5(0x2f3)](this[_0x4404c5(0x313)]))[_0x4404c5(0x26a)](async _0x1130ba=>{const _0x55d9e5=_0x4404c5,_0x1de3c7=_0x1130ba[_0x55d9e5(0x385)](),_0x5472e1=await this[_0x55d9e5(0x1a1)](_0x1de3c7);this[_0x55d9e5(0x392)][_0x55d9e5(0x3db)](_0x5472e1),this[_0x55d9e5(0x1ca)][_0x55d9e5(0x2d9)](_0x1de3c7,_0x5472e1);}),this[_0x4404c5(0x2e9)][_0x4404c5(0x307)](_0x2c2192[_0x4404c5(0x1c6)][_0x4404c5(0x25b)])[_0x4404c5(0x306)](_0x39a97e['takeUntil'](this[_0x4404c5(0x313)]))[_0x4404c5(0x306)](_0x39a97e[_0x4404c5(0x3a1)](_0x4f5723=>!_0x4f5723[_0x4404c5(0x385)]()[_0x4404c5(0x424)]('__')))[_0x4404c5(0x26a)](async _0x4be15a=>{const _0x7f4f2e=_0x4404c5,_0x4ffe4d=_0x4be15a[_0x7f4f2e(0x385)](),_0x329f18=await this[_0x7f4f2e(0x383)](_0x4ffe4d);this[_0x7f4f2e(0x392)][_0x7f4f2e(0x3db)](_0x329f18),this['_entities']['set'](_0x4ffe4d,_0x329f18);}),_0x39a97e[_0x4404c5(0x409)](this[_0x4404c5(0x2e9)][_0x4404c5(0x219)](_0x2c2192[_0x4404c5(0x1c6)][_0x4404c5(0x25b)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2c2192['UniverInstanceType'][_0x4404c5(0x29e)]))[_0x4404c5(0x306)](_0x39a97e['takeUntil'](this[_0x4404c5(0x313)]))[_0x4404c5(0x26a)](_0x4f9fc6=>{const _0x4f629c=_0x4404c5,_0x175c91=_0x4f9fc6[_0x4f629c(0x385)](),_0x2bc7d4=this['_entities'][_0x4f629c(0x378)](_0x175c91);_0x2bc7d4&&(_0x2bc7d4[_0x4f629c(0x3e8)](),this[_0x4f629c(0x1ca)][_0x4f629c(0x402)](_0x175c91));});}async[_0x263a40(0x1a1)](_0xada97b){const _0xc86961=_0x263a40,_0xf540f1=await this[_0xc86961(0x27b)]['requireSession'](_0xada97b),_0x11e95b=this['_injector'][_0xc86961(0x1c4)](_0x5cf1d7,_0xada97b,_0xf540f1);return _0x11e95b[_0xc86961(0x3ff)](),_0x11e95b;}async[_0x263a40(0x383)](_0x440749){const _0x5f0042=_0x263a40,_0x306818=await this['_collabSessionService']['requireSession'](_0x440749),_0xb7396c=this[_0x5f0042(0x1bd)][_0x5f0042(0x1c4)](_0x328609,_0x440749,_0x306818);return _0xb7396c['init'](),_0xb7396c;}};_0x289b74=_0x3974cb([_0x318f11(0x0,_0x2c2192[_0x263a40(0x228)]),_0x318f11(0x1,_0x2c2192[_0x263a40(0x3d4)](_0x2c2192[_0x263a40(0x400)])),_0x318f11(0x2,_0x2c2192[_0x263a40(0x3d4)](_0x3b3567['CollaborationSessionService']))],_0x289b74);const _0x2d0218=0x14,_0x310303=0xc8,_0x2e0e6c=0x4,_0x42b073=0x5;function _0x27c2e5(_0x2edd23,_0x193a98){const _0xd7a625=_0x263a40;let {radius:_0x5f2f86,width:_0x423e4a,height:_0x596071}=_0x193a98;_0x5f2f86=_0x5f2f86!=null?_0x5f2f86:0x0,_0x423e4a=_0x423e4a!=null?_0x423e4a:0x1e,_0x596071=_0x596071!=null?_0x596071:0x1e;let _0x425a6c=0x0,_0x121c1a=0x0,_0x5d4964=0x0;_0x425a6c=_0x121c1a=_0x5d4964=Math['min'](_0x5f2f86,_0x423e4a/0x2,_0x596071/0x2),_0x2edd23['beginPath'](),_0x2edd23['moveTo'](_0x425a6c,0x0),_0x2edd23['lineTo'](_0x423e4a-_0x121c1a,0x0),_0x2edd23[_0xd7a625(0x1d7)](_0x423e4a-_0x121c1a,_0x121c1a,_0x121c1a,Math['PI']*0x3/0x2,0x0,!0x1),_0x2edd23[_0xd7a625(0x38c)](_0x423e4a,_0x596071-_0x5d4964),_0x2edd23[_0xd7a625(0x1d7)](_0x423e4a-_0x5d4964,_0x596071-_0x5d4964,_0x5d4964,0x0,Math['PI']/0x2,!0x1),_0x2edd23[_0xd7a625(0x38c)](0x0,_0x596071),_0x2edd23[_0xd7a625(0x38c)](0x0,_0x425a6c),_0x2edd23[_0xd7a625(0x1d7)](_0x425a6c,_0x425a6c,_0x425a6c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2edd23[_0xd7a625(0x3ea)](),_0x193a98[_0xd7a625(0x208)]&&(_0x2edd23[_0xd7a625(0x2ad)](),_0x2edd23[_0xd7a625(0x39c)]=_0x193a98['fill'],_0x193a98['fillRule']==='evenodd'?_0x2edd23[_0xd7a625(0x208)](_0xd7a625(0x236)):_0x2edd23[_0xd7a625(0x208)](),_0x2edd23[_0xd7a625(0x372)]());}class _0x491ac9 extends _0xeac254['Shape']{constructor(_0x1ec276,_0x1ff8f8){const _0x37d781=_0x263a40;super(_0x1ec276,_0x1ff8f8),_0x193c38(this,'color'),_0x193c38(this,'text'),(this['color']=_0x1ff8f8==null?void 0x0:_0x1ff8f8[_0x37d781(0x2bd)],this['text']=_0x1ff8f8==null?void 0x0:_0x1ff8f8[_0x37d781(0x1c1)]);}static[_0x263a40(0x429)](_0xb033bc,_0x55ff87){const _0x16c322=_0x263a40,{text:_0x73cffa,color:_0x1fe94d}=_0x55ff87;_0xb033bc[_0x16c322(0x2ad)](),_0xb033bc['font']=_0x16c322(0x42b);const _0x228e0c=_0xb033bc[_0x16c322(0x315)](_0x73cffa)[_0x16c322(0x3c8)],_0x20cf10=Math[_0x16c322(0x3a2)](_0x228e0c+0x2*_0x2e0e6c,_0x310303);_0x27c2e5(_0xb033bc,{'height':_0x2d0218,'radius':0x4,'width':_0x20cf10,'fill':_0x1fe94d}),_0xb033bc[_0x16c322(0x39c)]=_0x16c322(0x32c);const _0x1bdbb9=_0x2e0e6c,_0x56847c=_0x2d0218-_0x42b073,_0x3335f9=_0x310303-0x2*_0x2e0e6c;if(_0x228e0c>_0x3335f9){let _0x56580a='',_0x5eded4=0x0;for(const _0x47e73b of _0x73cffa){const _0x1594ee=_0xb033bc[_0x16c322(0x315)](_0x47e73b)['width'];if(_0x5eded4+_0x1594ee<=_0x3335f9-_0xb033bc[_0x16c322(0x315)](_0x16c322(0x23c))[_0x16c322(0x3c8)])_0x56580a+=_0x47e73b,_0x5eded4+=_0x1594ee;else{_0x56580a+=_0x16c322(0x23c);break;}}_0xb033bc[_0x16c322(0x3f7)](_0x56580a,_0x1bdbb9,_0x56847c);}else _0xb033bc[_0x16c322(0x3f7)](_0x73cffa,_0x1bdbb9,_0x56847c);_0xb033bc[_0x16c322(0x372)]();}[_0x263a40(0x20f)](_0x2dd7a7){const _0x556d69=_0x263a40;_0x491ac9[_0x556d69(0x429)](_0x2dd7a7,this);}}const _0x1c4795=_0x263a40(0x1ce),_0x40ff89='collab-text-range-',_0x3e4bbc=_0x263a40(0x1ec),_0x25e6ac=0x6,_0x3da27b=1.5,_0x2a0d60=0x4,_0x3741f0=1.5,_0x1143ed=_0x263a40(0x1dc);class _0x4bd98b{constructor(_0x14d095,_0x1962d5,_0x14bf89,_0x2943fd){const _0x590a78=_0x263a40;_0x193c38(this,_0x590a78(0x349),[]),_0x193c38(this,'_anchor',null),_0x193c38(this,'_textBubble',null),_0x193c38(this,_0x590a78(0x37c),null),_0x193c38(this,_0x590a78(0x32a),null),_0x193c38(this,_0x590a78(0x3f0),null),(this[_0x590a78(0x396)]=_0x14d095,this['_scene']=_0x1962d5,this['_docSkeleton']=_0x14bf89,this[_0x590a78(0x29a)]=_0x2943fd,this[_0x590a78(0x260)]());}set[_0x263a40(0x335)](_0x15071c){const _0x4212d2=_0x263a40;_0x15071c?(this[_0x4212d2(0x37c)]&&this[_0x4212d2(0x37c)][_0x4212d2(0x421)](),this[_0x4212d2(0x314)]&&this[_0x4212d2(0x314)]['show']()):(this[_0x4212d2(0x37c)]&&this[_0x4212d2(0x37c)][_0x4212d2(0x2e8)](),this[_0x4212d2(0x314)]&&this[_0x4212d2(0x314)][_0x4212d2(0x421)]());}[_0x263a40(0x3e8)](){const _0x451144=_0x263a40;for(const _0x48ee15 of this[_0x451144(0x349)])_0x48ee15[_0x451144(0x3e8)]();this[_0x451144(0x314)]&&this['_textBubble'][_0x451144(0x3e8)](),this[_0x451144(0x37c)]&&this[_0x451144(0x37c)][_0x451144(0x3e8)](),this[_0x451144(0x20b)]&&this[_0x451144(0x20b)][_0x451144(0x3e8)](),this[_0x451144(0x3f0)]&&this[_0x451144(0x3f0)]();}[_0x263a40(0x260)](){const _0x319acd=_0x263a40;var _0x521ea4;const {_docSkeleton:_0x22d2ad,_document:_0x12390e}=this,{color:_0x359b21,name:_0x93cafb,ranges:_0xa96686}=this['_cursor'],_0x30ccee=_0x12390e[_0x319acd(0x39a)](),{docsLeft:_0x20a208,docsTop:_0xee43e3}=_0x30ccee,_0x13519b=new _0x4e1317['NodePositionConvertToCursor'](_0x30ccee,_0x22d2ad);for(const {startOffset:_0x4ccc69,endOffset:_0x1d662f,rangeType:_0x162c2e,segmentId:_0xf626a3,segmentPage:_0x3db839,collapsed:_0x22158d,isActive:_0x475b1d}of _0xa96686){const _0x369077=_0x22d2ad[_0x319acd(0x1f7)](_0x4ccc69,!0x0,_0xf626a3,_0x3db839);let _0x16d4ff=_0x22d2ad[_0x319acd(0x1f7)](_0x1d662f,!0x0,_0xf626a3,_0x3db839);if(_0x16d4ff==null&&(_0x16d4ff=_0x22d2ad[_0x319acd(0x1f7)](_0x1d662f-0x1,!0x1,_0xf626a3,_0x3db839)),_0x475b1d){const {contentBoxPointGroup:_0x7eddfd}=_0x13519b['getRangePointData'](_0x16d4ff,_0x16d4ff);if(_0x7eddfd[_0x319acd(0x22c)]===0x0)continue;this[_0x319acd(0x3cb)](_0x359b21,_0x7eddfd,_0x20a208,_0xee43e3,_0x93cafb),this[_0x319acd(0x3f0)]=this[_0x319acd(0x405)]();}if(_0x369077&&_0x16d4ff){if(_0x162c2e===_0x2c2192[_0x319acd(0x3c3)][_0x319acd(0x386)]){const _0x19241b=new _0x4e1317['NodePositionConvertToRectRange'](_0x30ccee,_0x22d2ad),{pointGroup:_0x323a28}=(_0x521ea4=_0x19241b['getRangePointData'](_0x369077,_0x16d4ff))!=null?_0x521ea4:{};if(_0x323a28==null||_0x323a28[_0x319acd(0x22c)]===0x0)continue;this['_drawRectRange'](_0x359b21,_0x323a28,_0x20a208,_0xee43e3);}else{if(!_0x22158d){const {borderBoxPointGroup:_0x2ba4fb}=_0x13519b[_0x319acd(0x27e)](_0x369077,_0x16d4ff);if(_0x2ba4fb[_0x319acd(0x22c)]===0x0)continue;this['_drawTextRange'](_0x359b21,_0x2ba4fb,_0x20a208,_0xee43e3);}}}}}[_0x263a40(0x3cb)](_0x347f3b,_0x4ebbff,_0xe91c5a,_0x2e9fa3,_0x58da3e){const _0x1aaac6=_0x263a40,_0x380e37=this[_0x1aaac6(0x1f4)](_0x4ebbff),{left:_0x57bcb8,top:_0x52c81d,height:_0x4d768f}=_0x380e37,_0x684652=this[_0x1aaac6(0x2b8)](),_0x38361f=_0x3741f0/_0x684652,_0x8a87e5=new _0xeac254['Rect'](_0x1c4795+_0x2c2192[_0x1aaac6(0x3a8)](_0x25e6ac),{'left':_0x57bcb8+_0xe91c5a-_0x38361f,'top':_0x52c81d+_0x2e9fa3,'height':_0x4d768f,'width':_0x3da27b,'fill':_0x347f3b||_0xeac254[_0x1aaac6(0x371)](_0x2c2192[_0x1aaac6(0x389)][_0x1aaac6(0x206)],0x0),'strokeWidth':_0x38361f,'stroke':_0x1143ed,'evented':!0x0});this[_0x1aaac6(0x20b)]=_0x8a87e5,this[_0x1aaac6(0x301)][_0x1aaac6(0x3bc)](_0x8a87e5,_0x4e1317[_0x1aaac6(0x28d)]);const _0x15e972=new _0xeac254[(_0x1aaac6(0x353))](_0x1c4795+_0x2c2192[_0x1aaac6(0x3a8)](_0x25e6ac),{'left':_0x57bcb8+_0xe91c5a-_0x38361f,'top':_0x52c81d+_0x2e9fa3-_0x2a0d60/0x2,'height':_0x2a0d60,'width':_0x2a0d60,'fill':_0x347f3b||_0xeac254['getColor'](_0x2c2192[_0x1aaac6(0x389)][_0x1aaac6(0x206)],0x0),'strokeWidth':0x0,'stroke':_0x347f3b||_0xeac254['getColor'](_0x2c2192[_0x1aaac6(0x389)]['black'],0x0),'evented':!0x1});this[_0x1aaac6(0x37c)]=_0x15e972,this[_0x1aaac6(0x301)][_0x1aaac6(0x3bc)](_0x15e972,_0x4e1317[_0x1aaac6(0x28d)]);const _0x12d22b=new _0x491ac9(_0x1c4795+_0x2c2192[_0x1aaac6(0x3a8)](_0x25e6ac),{'left':_0x57bcb8+_0xe91c5a-_0x38361f,'top':_0x52c81d+_0x2e9fa3-_0x2d0218,'text':_0x58da3e,'color':_0x347f3b});this[_0x1aaac6(0x314)]=_0x12d22b,this['_scene'][_0x1aaac6(0x3bc)](_0x12d22b,_0x4e1317['TEXT_RANGE_LAYER_INDEX']),this[_0x1aaac6(0x335)]=!0x1;}['_handleHover'](){const _0x168188=_0x263a40,_0x159905=this['_anchor'][_0x168188(0x226)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x53478e=this[_0x168188(0x20b)][_0x168188(0x1a0)][_0x168188(0x34a)](()=>{const _0x350b10=_0x168188;this[_0x350b10(0x32a)]&&clearTimeout(this[_0x350b10(0x32a)]),this[_0x350b10(0x32a)]=setTimeout(()=>{const _0xf1e203=_0x350b10;this[_0xf1e203(0x335)]=!0x1;},0x7d0);});return()=>{_0x159905['unsubscribe'](),_0x53478e['unsubscribe']();};}[_0x263a40(0x276)](_0x517ee7,_0x4075af,_0x3c0df9,_0x351343){const _0x5085ff=_0x263a40,_0xc6321c=new _0x2c2192['ColorKit'](_0x517ee7)[_0x5085ff(0x3dc)](0.2)[_0x5085ff(0x34e)](),_0x44aa9c=new _0xeac254[(_0x5085ff(0x280))](_0x40ff89+_0x2c2192[_0x5085ff(0x3a8)](_0x25e6ac),{'pointsGroup':_0x4075af,'fill':_0xc6321c||_0xeac254[_0x5085ff(0x371)](_0x2c2192[_0x5085ff(0x389)][_0x5085ff(0x206)],0.2),'left':_0x3c0df9,'top':_0x351343,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5085ff(0x349)][_0x5085ff(0x367)](_0x44aa9c),this[_0x5085ff(0x301)]['addObject'](_0x44aa9c,_0x4e1317[_0x5085ff(0x28d)]);}[_0x263a40(0x1bc)](_0x287c70,_0x15e500,_0x1df1c7,_0x818680){const _0x5f20ef=_0x263a40,_0x29d485=new _0x2c2192[(_0x5f20ef(0x3ca))](_0x287c70)[_0x5f20ef(0x3dc)](0.2)[_0x5f20ef(0x34e)](),_0x496ab5=new _0xeac254['RegularPolygon'](_0x3e4bbc+_0x2c2192[_0x5f20ef(0x3a8)](_0x25e6ac),{'pointsGroup':_0x15e500,'fill':_0x29d485||_0xeac254[_0x5f20ef(0x371)](_0x2c2192[_0x5f20ef(0x389)][_0x5f20ef(0x206)],0.2),'left':_0x1df1c7,'top':_0x818680,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f20ef(0x349)]['push'](_0x496ab5),this[_0x5f20ef(0x301)][_0x5f20ef(0x3bc)](_0x496ab5,_0x4e1317['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x1bcceb){const _0x43a1bd=_0x1bcceb[0x0],_0x3b8d8e=_0x43a1bd[0x0],_0x59678a=_0x43a1bd[0x2],{x:_0x2839c1,y:_0x43c114}=_0x3b8d8e,{x:_0x558a62,y:_0x243cc9}=_0x59678a;return{'left':_0x2839c1,'top':_0x43c114,'width':_0x558a62-_0x2839c1,'height':_0x243cc9-_0x43c114};}[_0x263a40(0x2b8)](){const _0x12f013=_0x263a40,{scaleX:_0x3c40eb,scaleY:_0x397451}=this[_0x12f013(0x301)][_0x12f013(0x3bb)]();return Math['max'](_0x3c40eb,_0x397451);}}var _0x266843=Object[_0x263a40(0x2bc)],_0x3408be=(_0x1f7bd3,_0x319df4,_0x2c0b90,_0x1d6a23)=>{const _0x7703e6=_0x263a40;for(var _0x2d54a2=_0x1d6a23>0x1?void 0x0:_0x1d6a23?_0x266843(_0x319df4,_0x2c0b90):_0x319df4,_0x35910e=_0x1f7bd3[_0x7703e6(0x22c)]-0x1,_0x881d99;_0x35910e>=0x0;_0x35910e--)(_0x881d99=_0x1f7bd3[_0x35910e])&&(_0x2d54a2=_0x881d99(_0x2d54a2)||_0x2d54a2);return _0x2d54a2;},_0x48cb85=(_0x4df8eb,_0x550dd5)=>(_0x3816f6,_0x4af5ac)=>_0x550dd5(_0x3816f6,_0x4af5ac,_0x4df8eb);let _0x19f8bd=class extends _0x2c2192[_0x263a40(0x326)]{constructor(_0x408e45,_0x2670af,_0x56f682,_0x535e65,_0x530665){const _0x31aad1=_0x263a40;super(),_0x193c38(this,'_cursorShapes',[]),_0x193c38(this,_0x31aad1(0x22f),[]),(this[_0x31aad1(0x3e0)]=_0x408e45,this[_0x31aad1(0x22b)]=_0x2670af,this['_collabCursorController']=_0x56f682,this['_commandService']=_0x535e65,this['_themeService']=_0x530665,this[_0x31aad1(0x3b5)]());}[_0x263a40(0x3b5)](){const _0x3fea46=_0x263a40,_0xbf9ecf=this[_0x3fea46(0x3e0)][_0x3fea46(0x1a7)],_0x31ecf8=this['_docSkeletonManagerService'];this[_0x3fea46(0x1af)](_0x39a97e[_0x3fea46(0x33d)]([this[_0x3fea46(0x2fb)]['getCollabCursors$'](_0xbf9ecf),this[_0x3fea46(0x2a9)]['currentTheme$']])['pipe'](_0x5e9058['map'](([_0x5492e1,_0x366857])=>({'skeleton':_0x31ecf8[_0x3fea46(0x269)](),'cursors':[..._0x5492e1[_0x3fea46(0x38b)]()][_0x3fea46(0x24b)](_0x31cf4f=>({..._0x31cf4f,'color':this[_0x3fea46(0x2a9)][_0x3fea46(0x3f2)](_0x31cf4f[_0x3fea46(0x2bd)])}))})))[_0x3fea46(0x26a)](_0x5b6b3c=>{const _0x4efd31=_0x3fea46;if(this[_0x4efd31(0x33e)](),_0x5b6b3c){const {skeleton:_0x575072,cursors:_0x680bbe}=_0x5b6b3c;this[_0x4efd31(0x256)](_0x575072,_0x680bbe);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x263a40(0x256)](_0x22c685,_0x1079ba){const _0x134b41=_0x263a40,{scene:_0x44d331,mainComponent:_0x5dd774}=this[_0x134b41(0x3e0)],_0x9e3d5b=_0x1079ba[_0x134b41(0x201)](_0x3c74c1=>new _0x4bd98b(_0x3c74c1,_0x44d331,_0x22c685,_0x5dd774));this[_0x134b41(0x25f)]=_0x9e3d5b,this['_cursors']=_0x1079ba;}[_0x263a40(0x358)](){const _0xde6b6=_0x263a40;this[_0xde6b6(0x33e)]();const {scene:_0x2892cb,mainComponent:_0x3ed4ce}=this['_context'],_0x4c43f4=this[_0xde6b6(0x22b)][_0xde6b6(0x269)](),_0x2353b8=this['_cursors'][_0xde6b6(0x201)](_0x57a3cc=>new _0x4bd98b(_0x57a3cc,_0x2892cb,_0x4c43f4,_0x3ed4ce));this[_0xde6b6(0x25f)]=_0x2353b8;}[_0x263a40(0x33e)](){const _0x674feb=_0x263a40;this[_0x674feb(0x25f)][_0x674feb(0x34f)](_0x9bf403=>_0x9bf403['dispose']()),this[_0x674feb(0x25f)]=[];}[_0x263a40(0x3f1)](){const _0x5410b7=_0x263a40,_0x32b382=[_0x4e1317[_0x5410b7(0x19d)]['id']];this[_0x5410b7(0x1af)](this[_0x5410b7(0x361)][_0x5410b7(0x249)](_0x2562af=>{const _0x285dcf=_0x5410b7;_0x32b382[_0x285dcf(0x3ad)](_0x2562af['id'])&&_0x2562af[_0x285dcf(0x439)]['unitId']===this[_0x285dcf(0x3e0)][_0x285dcf(0x1a7)]&&this[_0x285dcf(0x358)]();}));}[_0x263a40(0x1b9)](){const _0x4107e4=_0x263a40;this[_0x4107e4(0x1af)](_0x2c2192['fromEventSubject'](this['_context'][_0x4107e4(0x1f8)][_0x4107e4(0x31b)])[_0x4107e4(0x306)](_0x5e9058[_0x4107e4(0x3a1)](_0x457df6=>_0x457df6[_0x4107e4(0x41a)]===_0xeac254['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x4107e4(0x3b3)]),_0x5e9058[_0x4107e4(0x416)](0x10))[_0x4107e4(0x26a)](()=>{this['_refreshCollabCursors']();}));}};_0x19f8bd=_0x3408be([_0x48cb85(0x1,_0x2c2192[_0x263a40(0x3d4)](_0x28f6a3['DocSkeletonManagerService'])),_0x48cb85(0x2,_0x2c2192[_0x263a40(0x3d4)](_0x289b74)),_0x48cb85(0x3,_0x2c2192[_0x263a40(0x259)]),_0x48cb85(0x4,_0x2c2192[_0x263a40(0x3d4)](_0x2c2192[_0x263a40(0x3eb)]))],_0x19f8bd);const _0x1f0748=0x1,_0x30708d=1.5;class _0x9e04ec extends _0xeac254[_0x263a40(0x283)]{constructor(_0x3cee51,_0x25a8e9){const _0x36202a=_0x263a40;super(_0x3cee51,_0x25a8e9),_0x193c38(this,_0x36202a(0x2c5)),_0x193c38(this,'_hovered',!0x1),_0x193c38(this,'_range'),_0x193c38(this,_0x36202a(0x2e0),''),_0x193c38(this,_0x36202a(0x29f),_0x36202a(0x1d4)),_0x193c38(this,'_backgroundColor'),(_0x25a8e9&&this['setShapeProps'](_0x25a8e9),this['onPointerEnter$'][_0x36202a(0x34a)](()=>this[_0x36202a(0x3b8)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x36202a(0x3b8)]({'hovered':!0x1})));}[_0x263a40(0x3b8)](_0x31e1c9){const _0x398dfa=_0x263a40;var _0x28f72b,_0x57e0af,_0x3e39d6,_0x56a60f,_0x2268b9,_0x238a83;this[_0x398dfa(0x2c5)]=(_0x28f72b=_0x31e1c9[_0x398dfa(0x2bd)])!=null?_0x28f72b:this[_0x398dfa(0x2c5)],this[_0x398dfa(0x24c)]=(_0x57e0af=_0x31e1c9[_0x398dfa(0x21d)])!=null?_0x57e0af:this[_0x398dfa(0x24c)],this[_0x398dfa(0x2ae)]=(_0x3e39d6=_0x31e1c9[_0x398dfa(0x2a3)])!=null?_0x3e39d6:this['_range'],this[_0x398dfa(0x2e0)]=(_0x56a60f=_0x31e1c9[_0x398dfa(0x3d8)])!=null?_0x56a60f:this['_name'],this[_0x398dfa(0x29f)]=(_0x2268b9=_0x31e1c9[_0x398dfa(0x1b7)])!=null?_0x2268b9:this[_0x398dfa(0x29f)],this[_0x398dfa(0x32f)]=(_0x238a83=_0x31e1c9['backgroundColor'])!=null?_0x238a83:this[_0x398dfa(0x32f)],this[_0x398dfa(0x393)]({'width':_0x31e1c9[_0x398dfa(0x3c8)],'height':_0x31e1c9[_0x398dfa(0x1ee)]});}[_0x263a40(0x239)](_0x21a3ed){const _0x5232cf=_0x263a40,{row:_0x3510f8,column:_0x35fb8a}=_0x21a3ed;if(_0x3510f8>=this['_range']['startRow']&&_0x3510f8<=this[_0x5232cf(0x2ae)][_0x5232cf(0x31f)]&&_0x35fb8a>=this[_0x5232cf(0x2ae)][_0x5232cf(0x3a7)]&&_0x35fb8a<=this[_0x5232cf(0x2ae)][_0x5232cf(0x3b4)]){this[_0x5232cf(0x3b8)]({'hovered':!0x0});return;}this[_0x5232cf(0x3b8)]({'hovered':!0x1});}[_0x263a40(0x1d0)](_0x45ed8c){return!0x1;}[_0x263a40(0x20f)](_0xd5b6eb){const _0x224f51=_0x263a40;_0xeac254[_0x224f51(0x353)][_0x224f51(0x429)](_0xd5b6eb,{'width':this[_0x224f51(0x3c8)],'height':this[_0x224f51(0x1ee)],'strokeWidth':_0x30708d,'stroke':this[_0x224f51(0x2c5)],'evented':!0x1,'fill':this[_0x224f51(0x32f)]}),this[_0x224f51(0x24c)]&&(_0xd5b6eb['save'](),_0xd5b6eb['transform'](0x1,0x0,0x0,0x1,this[_0x224f51(0x3c8)],this['_labelPosition']==='bottom'?0x0:-_0x2d0218),_0x491ac9[_0x224f51(0x429)](_0xd5b6eb,{'text':this[_0x224f51(0x2e0)],'color':this[_0x224f51(0x2c5)]}),_0xd5b6eb[_0x224f51(0x372)]());}}var _0x3b39d5=Object['getOwnPropertyDescriptor'],_0x21c05c=(_0x2d6e23,_0x129b9f,_0x39b08e,_0x492031)=>{for(var _0x31fdaa=_0x492031>0x1?void 0x0:_0x492031?_0x3b39d5(_0x129b9f,_0x39b08e):_0x129b9f,_0x178ca4=_0x2d6e23['length']-0x1,_0x2121b5;_0x178ca4>=0x0;_0x178ca4--)(_0x2121b5=_0x2d6e23[_0x178ca4])&&(_0x31fdaa=_0x2121b5(_0x31fdaa)||_0x31fdaa);return _0x31fdaa;},_0xd327dc=(_0x5033fa,_0x213bd4)=>(_0x4ea4f1,_0x57c32c)=>_0x213bd4(_0x4ea4f1,_0x57c32c,_0x5033fa);const _0x2d56f0=0x1389;let _0x429464=class extends _0x2c2192[_0x263a40(0x326)]{constructor(_0x90a923,_0x33b0dc,_0x6eafe8,_0x3520fc){const _0xf28860=_0x263a40;super(),_0x193c38(this,_0xf28860(0x22f),new Set()),_0x193c38(this,_0xf28860(0x212),null),(this[_0xf28860(0x3e0)]=_0x90a923,this[_0xf28860(0x266)]=_0x33b0dc,this['_collabCursorController']=_0x6eafe8,this[_0xf28860(0x2a9)]=_0x3520fc,this['_init']());}[_0x263a40(0x3b5)](){const _0x209629=_0x263a40;this[_0x209629(0x266)][_0x209629(0x1b4)][_0x209629(0x306)](_0x5e9058[_0x209629(0x2f3)](this[_0x209629(0x313)]),_0x5e9058['switchMap'](_0x446e72=>{const _0x1cc569=_0x209629;if(_0x446e72){const _0x15eead=_0x446e72[_0x1cc569(0x380)];return _0x39a97e[_0x1cc569(0x33d)](this[_0x1cc569(0x2fb)][_0x1cc569(0x433)](this['_context'][_0x1cc569(0x1a7)]),this[_0x1cc569(0x2a9)][_0x1cc569(0x2b1)])['pipe'](_0x5e9058['map'](([_0xfaf032,_0x1986ef])=>{const _0x155dfd=_0x1cc569,_0x2e0797=new Map();return _0xfaf032[_0x155dfd(0x34f)]((_0x32d6f0,_0x50763f)=>{const _0x1ae07f=_0x155dfd;if(_0x32d6f0[_0x1ae07f(0x394)]===_0x15eead){const _0x4af0c5={..._0x32d6f0};_0x4af0c5[_0x1ae07f(0x2bd)]=this['_themeService'][_0x1ae07f(0x3f2)](_0x32d6f0[_0x1ae07f(0x2bd)]),_0x2e0797[_0x1ae07f(0x2d9)](_0x50763f,_0x4af0c5);}}),{'skeleton':_0x446e72,'cursors':_0x2e0797};}));}return _0x39a97e['of']({'skeleton':null,'cursors':new Map()});}))[_0x209629(0x26a)](({skeleton:_0x286400,cursors:_0x367202})=>{const _0x2d0b98=_0x209629;this[_0x2d0b98(0x33e)](),_0x286400&&this['_updateCollabCursors'](_0x286400,_0x367202);}),this[_0x209629(0x266)][_0x209629(0x1b4)][_0x209629(0x26a)](_0x4d7b14=>{const _0x5505e8=_0x209629;if(_0x4d7b14==null)return;const {skeleton:_0x2f7f91}=_0x4d7b14,{scene:_0x212eec}=this[_0x5505e8(0x3e0)];_0x212eec['onPointerMove$'][_0x5505e8(0x34a)](_0x2c2192['debounce'](_0x53d175=>{const _0x50902e=_0x5505e8;var _0x710b07,_0xf18eee;const {offsetX:_0x5e8f17,offsetY:_0xbb76b3}=_0x53d175,{x:_0x463694,y:_0x62c89a}=_0x212eec['getRelativeToViewportCoord'](_0xeac254[_0x50902e(0x2a4)]['FromArray']([_0x5e8f17,_0xbb76b3])),{scaleX:_0x47de78,scaleY:_0x4e1d1b}=_0x212eec[_0x50902e(0x3bb)](),_0x374752=_0x212eec['getViewport'](_0xeac254[_0x50902e(0x2f4)][_0x50902e(0x3c1)]),_0x23b367=_0x212eec[_0x50902e(0x37e)](_0xeac254[_0x50902e(0x2a4)][_0x50902e(0x2bb)]([_0x463694,_0x62c89a]),_0x374752),_0x2ead64=_0x2f7f91[_0x50902e(0x2be)](_0x5e8f17,_0xbb76b3,_0x47de78,_0x4e1d1b,_0x23b367);((_0x710b07=this['_lastPointer'])==null?void 0x0:_0x710b07['column'])===_0x2ead64[_0x50902e(0x290)]&&((_0xf18eee=this[_0x50902e(0x212)])==null?void 0x0:_0xf18eee[_0x50902e(0x26b)])===_0x2ead64[_0x50902e(0x26b)]||this['_cursors'][_0x50902e(0x34f)](_0x3b3ff2=>{const _0x47a675=_0x50902e;_0x3b3ff2[_0x47a675(0x239)](_0x2ead64);});},0x64));});}['_updateCollabCursors'](_0x4f6455,_0xd42bf4){const _0x4df0d3=_0x263a40;var _0xaf102;const _0x3e7eeb=(_0xaf102=this[_0x4df0d3(0x266)]['getCurrent']())==null?void 0x0:_0xaf102[_0x4df0d3(0x3e1)];if(!_0x3e7eeb)return;const _0x439156=this[_0x4df0d3(0x2a8)]();if(!_0x439156)return;this[_0x4df0d3(0x22f)]['forEach'](_0x1bbf20=>{_0x1bbf20['makeDirty']();});const {scene:_0x4356c8}=_0x439156,_0x33d233=_0x4a3363(Array[_0x4df0d3(0x1ab)](_0xd42bf4[_0x4df0d3(0x38b)]()))[_0x4df0d3(0x201)](_0x2bd7bb=>{const _0x77cd70=_0x4df0d3,{color:_0x50475d,range:_0x2718ee,name:_0x1bb2de,selection:_0x5029a7,sheetID:_0x4748c7}=_0x2bd7bb,{startColumn:_0x5bf234,startRow:_0x3a36f5,endColumn:_0x388ea6,endRow:_0xb3614a}=_0x2718ee,_0x39ff55=_0x5b36e4['getCoordByCell'](_0x3a36f5,_0x5bf234,_0x4356c8,_0x3e7eeb),_0x56cfdf=_0x5b36e4[_0x77cd70(0x1b3)](_0xb3614a,_0x388ea6,_0x4356c8,_0x3e7eeb),{columnHeaderHeightAndMarginTop:_0x24780d}=_0x3e7eeb,{startX:_0x450f5a,startY:_0x551ff3}=_0x39ff55,{endX:_0x2448c3,endY:_0x1f2b11}=_0x56cfdf,_0xcecb76=_0x2448c3-_0x450f5a,_0x5a49b2=_0x1f2b11-_0x551ff3,_0x1093b2={'labelPosition':_0x551ff3-_0x24780d>=_0x2d0218?'top':_0x77cd70(0x20a),'sheetID':_0x4748c7,'range':_0x2718ee,'color':_0x50475d,'name':_0x1bb2de,'selection':_0x5029a7,'left':_0x450f5a,'top':_0x551ff3,'width':_0xcecb76,'height':_0x5a49b2,'evented':!0x1,'zIndex':_0x2d56f0};return new _0x9e04ec(_0x1bb2de,_0x1093b2);});_0x4356c8['addObjects'](_0x33d233,_0x1f0748),this[_0x4df0d3(0x22f)]=new Set(_0x33d233);}[_0x263a40(0x33e)](){const _0x3f2bbd=_0x263a40;var _0xdbd9d0;(_0xdbd9d0=this[_0x3f2bbd(0x22f)])==null||_0xdbd9d0['forEach'](_0x1f3d39=>_0x1f3d39[_0x3f2bbd(0x3e8)]());}[_0x263a40(0x2a8)](){const _0x55d705=_0x263a40;return _0x5b36e4['getSheetObject'](this[_0x55d705(0x3e0)][_0x55d705(0x1c9)],this[_0x55d705(0x3e0)]);}};_0x429464=_0x21c05c([_0xd327dc(0x1,_0x2c2192[_0x263a40(0x3d4)](_0x5b36e4[_0x263a40(0x25d)])),_0xd327dc(0x2,_0x2c2192['Inject'](_0x289b74)),_0xd327dc(0x3,_0x2c2192[_0x263a40(0x3d4)](_0x2c2192[_0x263a40(0x3eb)]))],_0x429464);function _0x4a3363(_0x3a6235){const _0xed1eb4=_0x263a40,_0x458bee=new Map();return _0x3a6235[_0xed1eb4(0x34f)](_0x447197=>{const _0x8d98f5=_0xed1eb4;if(_0x458bee['has'](_0x447197[_0x8d98f5(0x2cd)])){const _0x1178eb=_0x458bee[_0x8d98f5(0x378)](_0x447197['selection']);_0x1178eb[_0x8d98f5(0x3d8)]+=',\x20'+_0x447197['name'];}else _0x458bee[_0x8d98f5(0x2d9)](_0x447197[_0x8d98f5(0x2cd)],_0x447197);}),Array['from'](_0x458bee[_0xed1eb4(0x38b)]());}var _0x4432d5=Object[_0x263a40(0x2bc)],_0x2f8c9b=(_0x4d9a5f,_0xd16ea3,_0x1630a2,_0x1e0ea0)=>{const _0x58c213=_0x263a40;for(var _0x1d3437=_0x1e0ea0>0x1?void 0x0:_0x1e0ea0?_0x4432d5(_0xd16ea3,_0x1630a2):_0xd16ea3,_0x5e4b59=_0x4d9a5f[_0x58c213(0x22c)]-0x1,_0x40a3fe;_0x5e4b59>=0x0;_0x5e4b59--)(_0x40a3fe=_0x4d9a5f[_0x5e4b59])&&(_0x1d3437=_0x40a3fe(_0x1d3437)||_0x1d3437);return _0x1d3437;},_0x313f8d=(_0x3616a9,_0x4df7e7)=>(_0x5c7775,_0x709da)=>_0x4df7e7(_0x5c7775,_0x709da,_0x3616a9);let _0x753b4=class extends _0x2c2192[_0x263a40(0x2e1)]{constructor(_0x49b810,_0xbce0be,_0x3f2239,_0x20901e,_0xd16b67,_0x30dd08){const _0x23804d=_0x263a40;super(),this[_0x23804d(0x350)]=_0x49b810,this[_0x23804d(0x264)]=_0xbce0be,this['_collaborationUIEventService']=_0x3f2239,this[_0x23804d(0x37b)]=_0x20901e,this[_0x23804d(0x42d)]=_0xd16b67,this['_localeService']=_0x30dd08,this[_0x23804d(0x265)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x1d7f20=_0x263a40;this[_0x1d7f20(0x1af)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x32caaa=_0x1d7f20;if(this[_0x32caaa(0x264)]['saveTaskMap'][_0x32caaa(0x1e5)])return this[_0x32caaa(0x42f)]['t'](_0x32caaa(0x364));}));}['_initEvent'](){const _0x24a782=_0x263a40;this[_0x24a782(0x1af)](this[_0x24a782(0x379)]['event$'][_0x24a782(0x26a)](_0x47aeaf=>{const _0x57b7d9=_0x24a782;_0x47aeaf['id']===_0x3b3567[_0x57b7d9(0x320)][_0x57b7d9(0x41d)]&&this['_messageService'][_0x57b7d9(0x2e8)]({'type':_0x4f24da['MessageType'][_0x57b7d9(0x227)],'content':this[_0x57b7d9(0x42f)]['t']('collaboration.single-unit.warning')}),_0x47aeaf['id']===_0x3b3567['CollaborationUIEventId'][_0x57b7d9(0x300)]&&this[_0x57b7d9(0x37b)]['show']({'type':_0x4f24da[_0x57b7d9(0x3bd)][_0x57b7d9(0x227)],'content':this[_0x57b7d9(0x42f)]['t']('collaboration.closeRoom')}),_0x47aeaf['id']===_0x3b3567[_0x57b7d9(0x320)]['PERMISSION_DENIED']&&this[_0x57b7d9(0x42d)]['show']({'title':this[_0x57b7d9(0x42f)]['t']('permission.title'),'content':this[_0x57b7d9(0x42f)]['t'](_0x57b7d9(0x35a)),'type':'error','duration':0x0}),_0x47aeaf['id']===_0x3b3567[_0x57b7d9(0x320)][_0x57b7d9(0x1de)]&&this[_0x57b7d9(0x37b)]['show']({'type':_0x4f24da['MessageType'][_0x57b7d9(0x1cf)],'content':this[_0x57b7d9(0x42f)]['t'](_0x57b7d9(0x272))+'('+_0x47aeaf[_0x57b7d9(0x1bb)]+')'}),_0x47aeaf['id']===_0x3b3567[_0x57b7d9(0x320)]['JOIN_ROOM_FAILED']&&this[_0x57b7d9(0x37b)]['show']({'type':_0x4f24da[_0x57b7d9(0x3bd)]['Warning'],'content':this['_localeService']['t'](_0x47aeaf[_0x57b7d9(0x1bb)]||'')}),_0x47aeaf['id']===_0x3b3567['CollaborationUIEventId'][_0x57b7d9(0x2f9)]&&this['_messageService'][_0x57b7d9(0x2e8)]({'type':_0x4f24da['MessageType'][_0x57b7d9(0x227)],'content':this['_localeService']['t'](_0x57b7d9(0x36c))}),_0x47aeaf['id']===_0x3b3567[_0x57b7d9(0x320)][_0x57b7d9(0x3f5)]&&this['_messageService'][_0x57b7d9(0x2e8)]({'type':_0x4f24da['MessageType'][_0x57b7d9(0x1cf)],'content':this[_0x57b7d9(0x42f)]['t'](_0x57b7d9(0x31c))}),_0x47aeaf['id']===_0x3b3567['CollaborationUIEventId'][_0x57b7d9(0x3a9)]&&this[_0x57b7d9(0x37b)][_0x57b7d9(0x2e8)]({'type':_0x4f24da[_0x57b7d9(0x3bd)][_0x57b7d9(0x1cf)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};_0x753b4=_0x2f8c9b([_0x313f8d(0x0,_0x214f56[_0x263a40(0x238)]),_0x313f8d(0x1,_0x3b3567[_0x263a40(0x1dd)]),_0x313f8d(0x2,_0x2c2192[_0x263a40(0x3d4)](_0x3b3567[_0x263a40(0x1ea)])),_0x313f8d(0x3,_0x214f56[_0x263a40(0x1b0)]),_0x313f8d(0x4,_0x214f56[_0x263a40(0x237)]),_0x313f8d(0x5,_0x2c2192['Inject'](_0x2c2192[_0x263a40(0x325)]))],_0x753b4);const _0x5b003e=_0x263a40(0x251),_0x4467d8={};var _0x3aedf5=Object[_0x263a40(0x2bc)],_0x1900aa=(_0x469319,_0x520a51,_0x330c7e,_0x27b6cf)=>{const _0x40d2df=_0x263a40;for(var _0x437037=_0x27b6cf>0x1?void 0x0:_0x27b6cf?_0x3aedf5(_0x520a51,_0x330c7e):_0x520a51,_0x255fb2=_0x469319[_0x40d2df(0x22c)]-0x1,_0x448eb8;_0x255fb2>=0x0;_0x255fb2--)(_0x448eb8=_0x469319[_0x255fb2])&&(_0x437037=_0x448eb8(_0x437037)||_0x437037);return _0x437037;},_0x5242bd=(_0x1dad5d,_0x376f0f)=>(_0x486191,_0x48c033)=>_0x376f0f(_0x486191,_0x48c033,_0x1dad5d);let _0x48d330=class{constructor(_0x45ceaa,_0x36728f){this['_transformService']=_0x45ceaa,this['_renderManagerService']=_0x36728f;}[_0x263a40(0x258)](_0x23fedd){const _0x2dd599=_0x263a40;this[_0x2dd599(0x336)](_0x23fedd),this[_0x2dd599(0x3ef)](_0x23fedd);}[_0x263a40(0x241)](_0x3ec7ae){const _0x276c44=_0x263a40,{unitID:_0x1efcdc}=_0x3ec7ae,_0x28073e=this['_renderManagerService'][_0x276c44(0x41c)](_0x1efcdc)[_0x276c44(0x19b)](_0x4e1317[_0x276c44(0x28f)]),{redoCache:_0x587772}=_0x28073e[_0x276c44(0x1aa)]();if(_0x587772['length']===0x0)return _0x3ec7ae;let _0x296024=_0x2c2192[_0x276c44(0x3cf)]['deepClone'](_0x3ec7ae['mutations'][0x0]);for(let _0x5124d5=0x0;_0x5124d5<_0x587772['length'];_0x5124d5++){const _0x49ff1e={'id':_0x276c44(0x323),'params':{..._0x587772[_0x5124d5]}},_0x348c23=this[_0x276c44(0x42c)][_0x276c44(0x39e)](_0x296024,_0x49ff1e,!0x1);if(_0x542b31[_0x276c44(0x39f)](_0x348c23))throw _0x348c23[_0x276c44(0x423)];_0x296024=_0x348c23[_0x276c44(0x1ba)];}return{..._0x2c2192['Tools'][_0x276c44(0x3d6)](_0x3ec7ae),'mutations':[_0x296024]};}[_0x263a40(0x336)](_0x2d0332){const _0x26f42f=_0x263a40,{unitID:_0x4c8106}=_0x2d0332,_0x1e8577=this['_renderManagerService'][_0x26f42f(0x41c)](_0x4c8106)[_0x26f42f(0x19b)](_0x4e1317['DocIMEInputManagerService']),{undoCache:_0x5829e5,redoCache:_0x136c9d}=_0x1e8577[_0x26f42f(0x1aa)]();if(_0x5829e5['length']===0x0||_0x136c9d[_0x26f42f(0x22c)]===0x0)return;const _0x175cbf=[],_0x42f2f3=[];let _0x2aa9d1=_0x2c2192['Tools'][_0x26f42f(0x3d6)](_0x2d0332[_0x26f42f(0x22e)][0x0]),_0x3ff58c=_0x2c2192[_0x26f42f(0x3cf)]['deepClone'](_0x2d0332['mutations'][0x0]);for(let _0xe2e7e2=_0x5829e5['length']-0x1;_0xe2e7e2>=0x0;_0xe2e7e2--){const _0x58f1b0={'id':_0x26f42f(0x323),'params':{..._0x5829e5[_0xe2e7e2]}},_0x3d6105={'id':_0x26f42f(0x323),'params':{..._0x136c9d[_0xe2e7e2]}},_0x4167e9=this[_0x26f42f(0x42c)]['transformMutation'](_0x2aa9d1,_0x58f1b0,!0x1),_0x183893=this['_transformService'][_0x26f42f(0x39e)](_0x3ff58c,_0x3d6105,!0x1);if(_0x542b31[_0x26f42f(0x39f)](_0x4167e9))throw _0x4167e9['error'];if(_0x542b31['isTransformMutationFailure'](_0x183893))throw _0x183893[_0x26f42f(0x423)];_0x175cbf[_0x26f42f(0x373)](_0x4167e9[_0x26f42f(0x26f)]['params']),_0x42f2f3[_0x26f42f(0x373)](_0x183893[_0x26f42f(0x26f)][_0x26f42f(0x439)]),_0x2aa9d1=_0x4167e9[_0x26f42f(0x1ba)],_0x3ff58c=_0x183893[_0x26f42f(0x1ba)];}_0x1e8577[_0x26f42f(0x417)]({'undoCache':_0x175cbf,'redoCache':_0x42f2f3});}[_0x263a40(0x3ef)](_0x19ec4a){const _0x1760ba=_0x263a40,{unitID:_0x113acc}=_0x19ec4a,_0x46d412=this[_0x1760ba(0x3b2)][_0x1760ba(0x41c)](_0x113acc)[_0x1760ba(0x19b)](_0x4e1317['DocIMEInputManagerService']),_0x492b98=_0x46d412[_0x1760ba(0x216)]();if(_0x492b98==null)return;const _0x56a872=[{'id':_0x1760ba(0x323),'params':{'unitId':_0x19ec4a[_0x1760ba(0x1c8)],'actions':null,'textRanges':[_0x492b98]}}],_0x3f5737=this[_0x1760ba(0x42c)][_0x1760ba(0x401)](_0x19ec4a,_0x56a872);if(!_0x542b31['isTransformMutationsWithChangesetSuccess'](_0x3f5737))throw _0x3f5737[_0x1760ba(0x423)];const _0x5e3da9=_0x3f5737['m2Prime'][0x0][_0x1760ba(0x439)]['textRanges'];Array[_0x1760ba(0x2ca)](_0x5e3da9)&&_0x5e3da9[_0x1760ba(0x22c)]&&_0x46d412['setActiveRange'](_0x5e3da9[0x0]);}};_0x48d330=_0x1900aa([_0x5242bd(0x0,_0x542b31[_0x263a40(0x1e1)]),_0x5242bd(0x1,_0xeac254[_0x263a40(0x36d)])],_0x48d330);var _0x2001c6=Object[_0x263a40(0x2bc)],_0x278bfc=(_0x3bb895,_0x405aa4,_0x325761,_0x6875a8)=>{const _0xbc2cd4=_0x263a40;for(var _0x54cf74=_0x6875a8>0x1?void 0x0:_0x6875a8?_0x2001c6(_0x405aa4,_0x325761):_0x405aa4,_0x5c0a65=_0x3bb895[_0xbc2cd4(0x22c)]-0x1,_0x43a33b;_0x5c0a65>=0x0;_0x5c0a65--)(_0x43a33b=_0x3bb895[_0x5c0a65])&&(_0x54cf74=_0x43a33b(_0x54cf74)||_0x54cf74);return _0x54cf74;},_0x5418ed=(_0x30201b,_0x829695)=>(_0x4c0832,_0x4b900a)=>_0x829695(_0x4c0832,_0x4b900a,_0x30201b);let _0x2ea084=class{constructor(_0x273396,_0x483056,_0x1a8b33){const _0xd4b4c8=_0x263a40;this[_0xd4b4c8(0x1bd)]=_0x273396,this[_0xd4b4c8(0x42c)]=_0x483056,this[_0xd4b4c8(0x29d)]=_0x1a8b33;}[_0x263a40(0x2df)](_0x3101c8){const _0x23d3c6=_0x263a40;this[_0x23d3c6(0x1ff)](_0x3101c8);}[_0x263a40(0x241)](_0x133af5){const _0x49357e=_0x263a40,{unitID:_0x2847e7}=_0x133af5,{collaboration:_0x3ca8ab}=this[_0x49357e(0x29d)]['getStateCache'](_0x2847e7);if(_0x3ca8ab[_0x49357e(0x22c)]===0x0)return _0x133af5;let _0x2a92e2=_0x2c2192['Tools'][_0x49357e(0x3d6)](_0x133af5[_0x49357e(0x22e)][0x0]);for(let _0x651a34=0x0;_0x651a34<_0x3ca8ab[_0x49357e(0x22c)];_0x651a34++){const _0x38264a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3ca8ab[_0x651a34][_0x49357e(0x1a7)],..._0x3ca8ab[_0x651a34][_0x49357e(0x204)]}},_0x3571a2=this[_0x49357e(0x42c)]['transformMutation'](_0x2a92e2,_0x38264a,!0x1);if(_0x542b31[_0x49357e(0x39f)](_0x3571a2))throw _0x3571a2[_0x49357e(0x423)];_0x2a92e2=_0x3571a2[_0x49357e(0x1ba)];}return{..._0x2c2192[_0x49357e(0x3cf)][_0x49357e(0x3d6)](_0x133af5),'mutations':[_0x2a92e2]};}[_0x263a40(0x1ff)](_0x4388f1){const _0x803d44=_0x263a40,{unitID:_0xc2a729}=_0x4388f1,{history:_0x48819e,collaboration:_0x307baf}=this[_0x803d44(0x29d)][_0x803d44(0x2d4)](_0xc2a729);if(_0x48819e[_0x803d44(0x22c)]===0x0&&_0x307baf[_0x803d44(0x22c)]===0x0)return;const _0x1f09a9=[],_0x1cd80a=[];let _0x2bcaf4=_0x2c2192[_0x803d44(0x3cf)][_0x803d44(0x3d6)](_0x4388f1[_0x803d44(0x22e)][0x0]),_0x4423f0=_0x2c2192['Tools'][_0x803d44(0x3d6)](_0x4388f1[_0x803d44(0x22e)][0x0]);for(let _0x1f4022=_0x48819e[_0x803d44(0x22c)]-0x1;_0x1f4022>=0x0;_0x1f4022--){const _0x5ecc98={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x48819e[_0x1f4022][_0x803d44(0x1a7)],..._0x48819e[_0x1f4022]['undoState']}},_0x475cae={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x48819e[_0x1f4022][_0x803d44(0x1a7)],..._0x48819e[_0x1f4022][_0x803d44(0x204)]}},_0x56d393=this[_0x803d44(0x42c)]['transformMutation'](_0x2bcaf4,_0x5ecc98,!0x1),_0x159b71=this[_0x803d44(0x42c)]['transformMutation'](_0x4423f0,_0x475cae,!0x1);if(_0x542b31[_0x803d44(0x39f)](_0x56d393))throw _0x56d393['error'];if(_0x542b31[_0x803d44(0x39f)](_0x159b71))throw _0x159b71['error'];_0x1f09a9[_0x803d44(0x373)]({..._0x48819e[_0x1f4022],'undoState':_0x56d393[_0x803d44(0x26f)]['params'],'redoState':_0x159b71[_0x803d44(0x26f)][_0x803d44(0x439)]}),_0x2bcaf4=_0x56d393[_0x803d44(0x1ba)],_0x4423f0=_0x159b71[_0x803d44(0x1ba)];}_0x2bcaf4=_0x2c2192['Tools']['deepClone'](_0x4388f1[_0x803d44(0x22e)][0x0]),_0x4423f0=_0x2c2192[_0x803d44(0x3cf)]['deepClone'](_0x4388f1['mutations'][0x0]);for(let _0x17d654=_0x307baf[_0x803d44(0x22c)]-0x1;_0x17d654>=0x0;_0x17d654--){const _0x2963c7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x307baf[_0x17d654][_0x803d44(0x1a7)],..._0x307baf[_0x17d654]['undoState']}},_0x48f4c2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x307baf[_0x17d654]['unitId'],..._0x307baf[_0x17d654]['redoState']}},_0x2e48d8=this[_0x803d44(0x42c)][_0x803d44(0x39e)](_0x2bcaf4,_0x2963c7,!0x1),_0x519402=this[_0x803d44(0x42c)][_0x803d44(0x39e)](_0x4423f0,_0x48f4c2,!0x1);if(_0x542b31[_0x803d44(0x39f)](_0x2e48d8))throw _0x2e48d8['error'];if(_0x542b31[_0x803d44(0x39f)](_0x519402))throw _0x519402['error'];_0x1cd80a[_0x803d44(0x373)]({..._0x307baf[_0x17d654],'undoState':_0x2e48d8[_0x803d44(0x26f)]['params'],'redoState':_0x519402['m2Prime'][_0x803d44(0x439)]}),_0x2bcaf4=_0x2e48d8[_0x803d44(0x1ba)],_0x4423f0=_0x519402[_0x803d44(0x1ba)];}this['_docStateChangeManagerService'][_0x803d44(0x3d5)](_0xc2a729,{'history':_0x1f09a9,'collaboration':_0x1cd80a});}};_0x2ea084=_0x278bfc([_0x5418ed(0x0,_0x2c2192[_0x263a40(0x3d4)](_0x2c2192[_0x263a40(0x400)])),_0x5418ed(0x1,_0x542b31[_0x263a40(0x1e1)]),_0x5418ed(0x2,_0x2c2192[_0x263a40(0x3d4)](_0x4e1317['DocStateChangeManagerService']))],_0x2ea084);var _0x133104=Object[_0x263a40(0x2bc)],_0x563192=(_0x37a94f,_0x807170,_0x1a8ffc,_0x10f7d1)=>{const _0x1029e2=_0x263a40;for(var _0x32fd51=_0x10f7d1>0x1?void 0x0:_0x10f7d1?_0x133104(_0x807170,_0x1a8ffc):_0x807170,_0x3669fc=_0x37a94f[_0x1029e2(0x22c)]-0x1,_0x422a8e;_0x3669fc>=0x0;_0x3669fc--)(_0x422a8e=_0x37a94f[_0x3669fc])&&(_0x32fd51=_0x422a8e(_0x32fd51)||_0x32fd51);return _0x32fd51;},_0x1d2ba2=(_0x4bc7cc,_0x582b80)=>(_0x416cce,_0x18da73)=>_0x582b80(_0x416cce,_0x18da73,_0x4bc7cc);let _0x16f9d8=class{constructor(_0x53f9d0,_0x2aae0d){const _0x59a06a=_0x263a40;this[_0x59a06a(0x1bd)]=_0x53f9d0,this[_0x59a06a(0x42c)]=_0x2aae0d;}[_0x263a40(0x343)](_0x11010d){const _0x1db858=_0x263a40;var _0x17e5c4;const _0x2771ae=this['_injector']['get'](_0x28f6a3['DocSelectionManagerService']),_0x2af432=(_0x17e5c4=_0x2771ae['getDocRanges']())!=null?_0x17e5c4:[];if(_0x2af432[_0x1db858(0x22c)]===0x0)return;const _0x217b41=_0x11010d[_0x1db858(0x1c8)],_0x21a5bb=[{'id':_0x1db858(0x323),'params':{'unitId':_0x217b41,'actions':null,'textRanges':_0x2af432}}],_0x2d9cca=this[_0x1db858(0x42c)]['transformMutationsWithChangeset'](_0x11010d,_0x21a5bb);if(!_0x542b31[_0x1db858(0x2dc)](_0x2d9cca))throw _0x2d9cca[_0x1db858(0x423)];const _0x29105e=_0x2d9cca['m2Prime'][0x0][_0x1db858(0x439)]['textRanges'];Array[_0x1db858(0x2ca)](_0x29105e)&&_0x29105e[_0x1db858(0x22c)]&&_0x2771ae[_0x1db858(0x303)](_0x29105e,{'unitId':_0x217b41,'subUnitId':_0x217b41},!0x1);}};_0x16f9d8=_0x563192([_0x1d2ba2(0x0,_0x2c2192[_0x263a40(0x3d4)](_0x2c2192[_0x263a40(0x400)])),_0x1d2ba2(0x1,_0x542b31[_0x263a40(0x1e1)])],_0x16f9d8);var _0xd53de1=Object[_0x263a40(0x2bc)],_0x248ef9=(_0x52bddc,_0x441c97,_0x33478c,_0x369291)=>{const _0x5e37f5=_0x263a40;for(var _0x15a416=_0x369291>0x1?void 0x0:_0x369291?_0xd53de1(_0x441c97,_0x33478c):_0x441c97,_0x563193=_0x52bddc[_0x5e37f5(0x22c)]-0x1,_0x1511d8;_0x563193>=0x0;_0x563193--)(_0x1511d8=_0x52bddc[_0x563193])&&(_0x15a416=_0x1511d8(_0x15a416)||_0x15a416);return _0x15a416;},_0xabf8eb=(_0x23e249,_0x1d2e55)=>(_0x4c4576,_0xbcd093)=>_0x1d2e55(_0x4c4576,_0xbcd093,_0x23e249);let _0x6d6a66=class extends _0x2c2192['Disposable']{constructor(_0x5cdf92,_0x38746e,_0x3d5ca6,_0xfb9e12,_0x2d7d3a,_0x2c2057,_0x185070,_0x184e08){const _0x4cc359=_0x263a40;super(),_0x193c38(this,'_status$',new _0x39a97e[(_0x4cc359(0x30b))](_0x3b3567[_0x4cc359(0x38e)][_0x4cc359(0x2cf)])),(this['_docStateChangeManagerService']=_0x5cdf92,this[_0x4cc359(0x420)]=_0x38746e,this[_0x4cc359(0x2c7)]=_0x3d5ca6,this[_0x4cc359(0x374)]=_0xfb9e12,this['_docTransformSelectionsService']=_0x2d7d3a,this[_0x4cc359(0x1b2)]=_0x2c2057,this[_0x4cc359(0x37b)]=_0x185070,this[_0x4cc359(0x42f)]=_0x184e08,this[_0x4cc359(0x2fc)]());}[_0x263a40(0x2fc)](){const _0x20da64=_0x263a40;this[_0x20da64(0x1af)](this['_collaborationController']['entityInit$'][_0x20da64(0x26a)](_0x4a999a=>{const _0x24db36=_0x20da64,_0x31300d=this[_0x24db36(0x29d)][_0x24db36(0x209)][_0x24db36(0x26a)](_0x56432f=>{const _0x5c6928=_0x24db36;if(_0x56432f==null)return;const {unitId:_0x57fb1f,redoState:_0x4ddb9d,commandId:_0xdc09b2}=_0x56432f;if(_0x57fb1f!==_0x4a999a[_0x5c6928(0x1c8)])return;const _0x1e19cd={'id':_0xdc09b2,'type':_0x2c2192[_0x5c6928(0x242)][_0x5c6928(0x2c1)],'params':{'unitId':_0x57fb1f,'actions':_0x4ddb9d[_0x5c6928(0x316)],'textRanges':null}};_0x4a999a['onLocalMutation'](_0x1e19cd);});if(_0x4a999a[_0x24db36(0x1af)](_0x31300d),_0x4a999a instanceof _0x3b3567[_0x24db36(0x294)]){const _0x151a99={'onTransformIME':_0xe0edbf=>this['_docTransformIMECacheService'][_0x24db36(0x258)](_0xe0edbf),'onTransformState':_0x3f00e6=>this[_0x24db36(0x374)][_0x24db36(0x2df)](_0x3f00e6),'onTransformSelections':_0x268525=>this[_0x24db36(0x1eb)]['transformSelections'](_0x268525),'onSyncEditingCollabCursor':_0xa00efe=>this['_docSyncEditingCollabCursorService'][_0x24db36(0x3e2)](_0xa00efe),'onTransformRemoteChangesetByIMECache':_0x391758=>this[_0x24db36(0x2c7)]['transformRemoteChangeset'](_0x391758),'onTransformRemoteChangesetByStateCache':_0x150381=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x150381)};_0x4a999a[_0x24db36(0x28a)](_0x151a99);}}));}};_0x6d6a66=_0x248ef9([_0xabf8eb(0x0,_0x2c2192[_0x263a40(0x3d4)](_0x4e1317[_0x263a40(0x2f7)])),_0xabf8eb(0x1,_0x2c2192[_0x263a40(0x3d4)](_0x3b3567['CollaborationController'])),_0xabf8eb(0x2,_0x2c2192[_0x263a40(0x3d4)](_0x48d330)),_0xabf8eb(0x3,_0x2c2192[_0x263a40(0x3d4)](_0x2ea084)),_0xabf8eb(0x4,_0x2c2192[_0x263a40(0x3d4)](_0x16f9d8)),_0xabf8eb(0x5,_0x2c2192[_0x263a40(0x3d4)](_0x45dd48)),_0xabf8eb(0x6,_0x214f56[_0x263a40(0x1b0)]),_0xabf8eb(0x7,_0x2c2192['Inject'](_0x2c2192[_0x263a40(0x325)]))],_0x6d6a66);var _0x203e02=Object[_0x263a40(0x2bc)],_0x290888=(_0xa9ef8a,_0x353294,_0x330426,_0x634232)=>{const _0x1f5a01=_0x263a40;for(var _0x334fc3=_0x634232>0x1?void 0x0:_0x634232?_0x203e02(_0x353294,_0x330426):_0x353294,_0x49535b=_0xa9ef8a[_0x1f5a01(0x22c)]-0x1,_0x33e8c7;_0x49535b>=0x0;_0x49535b--)(_0x33e8c7=_0xa9ef8a[_0x49535b])&&(_0x334fc3=_0x33e8c7(_0x334fc3)||_0x334fc3);return _0x334fc3;},_0x500015=(_0x2428d8,_0x23c2c7)=>(_0xdbfc03,_0x1b6e8f)=>_0x23c2c7(_0xdbfc03,_0x1b6e8f,_0x2428d8);let _0xc805ec=class extends _0x2c2192['Disposable']{constructor(_0x378a1,_0x31ab1b,_0x45458b){const _0x58a8c7=_0x263a40;super(),_0x193c38(this,_0x58a8c7(0x2ba),new Map()),_0x193c38(this,_0x58a8c7(0x319),new Map()),_0x193c38(this,'_disabled',!0x1),(this[_0x58a8c7(0x291)]=_0x378a1,this[_0x58a8c7(0x422)]=_0x31ab1b,this['_revisionService']=_0x45458b);}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0xc2e320=_0x263a40;this[_0xc2e320(0x286)]=!0x1;}get[_0x263a40(0x297)](){const _0x3dfcdc=_0x263a40;return this[_0x3dfcdc(0x319)];}['dispose'](){const _0x8bcf77=_0x263a40;this[_0x8bcf77(0x35d)]()[_0x8bcf77(0x274)](()=>super[_0x8bcf77(0x3e8)]());}async[_0x263a40(0x2dd)](_0x2129db){const _0x593481=_0x263a40;return this[_0x593481(0x286)]?null:this[_0x593481(0x422)]['getItem'](_0x3b3567['getLocalCacheKey'](_0x2129db));}async[_0x263a40(0x1b5)](_0x5c0574,_0x5cfab2){const _0x467dfb=_0x263a40;return!!this['_localStorageService'][_0x467dfb(0x404)](_0x5c0574,_0x5cfab2);}[_0x263a40(0x3cd)](_0x40675f,_0x587803,_0x475c90,_0x16a962){const _0x4bc587=_0x263a40,_0x41effc=this['_revisionService'][_0x4bc587(0x351)](_0x40675f);this['_cachedData'][_0x4bc587(0x2d9)](_0x40675f,{'unitID':_0x40675f,'type':_0x587803,'awaitingChangeset':_0x475c90,'mutations':_0x16a962,'rev':_0x41effc}),this[_0x4bc587(0x319)][_0x4bc587(0x31d)](_0x40675f)||this[_0x4bc587(0x311)](_0x40675f);}[_0x263a40(0x311)](_0x23544d){const _0x3af00e=_0x263a40,_0x27c576=this[_0x3af00e(0x391)]();_0x27c576===0x0?this[_0x3af00e(0x235)](_0x23544d):this['_saveTaskMap'][_0x3af00e(0x2d9)](_0x23544d,setTimeout(()=>this['_saveCache'](_0x23544d),_0x27c576));}[_0x263a40(0x391)](){const _0x17d9b2=_0x263a40;var _0x278631;return(_0x278631=this[_0x17d9b2(0x291)][_0x17d9b2(0x1e4)](_0x3b3567[_0x17d9b2(0x412)]))!=null?_0x278631:_0x3b3567[_0x17d9b2(0x317)];}[_0x263a40(0x235)](_0x241a75){const _0x21c709=_0x263a40,_0x2d9c81=this[_0x21c709(0x319)][_0x21c709(0x378)](_0x241a75);return _0x2d9c81!==void 0x0&&window[_0x21c709(0x2eb)](_0x2d9c81),this[_0x21c709(0x422)][_0x21c709(0x404)](_0x3b3567[_0x21c709(0x233)](_0x241a75),this[_0x21c709(0x2ba)][_0x21c709(0x378)](_0x241a75))[_0x21c709(0x274)](()=>this[_0x21c709(0x319)][_0x21c709(0x402)](_0x241a75));}async['exhaustSavingTask'](){const _0x38c8df=_0x263a40,_0x8e4fb7=[];this[_0x38c8df(0x319)][_0x38c8df(0x34f)]((_0x3ed34b,_0x5a9d62)=>{const _0x376cf6=_0x38c8df;window['clearTimeout'](_0x3ed34b),_0x8e4fb7[_0x376cf6(0x367)](this[_0x376cf6(0x235)](_0x5a9d62)[_0x376cf6(0x274)](()=>{const _0x274856=_0x376cf6;this[_0x274856(0x319)]['delete'](_0x5a9d62);}));}),await Promise[_0x38c8df(0x33c)](_0x8e4fb7);}};_0xc805ec=_0x290888([_0x500015(0x0,_0x2c2192[_0x263a40(0x2da)]),_0x500015(0x1,_0x2c2192[_0x263a40(0x305)]),_0x500015(0x2,_0x2c2192[_0x263a40(0x3d4)](_0x542b31[_0x263a40(0x220)]))],_0xc805ec);class _0x5810c8 extends _0x2c2192[_0x263a40(0x326)]{constructor(){const _0x11d3c5=_0x263a40;super(),_0x193c38(this,_0x11d3c5(0x3fd)),this['urlChange$']=_0x39a97e[_0x11d3c5(0x293)](window,_0x11d3c5(0x29c))[_0x11d3c5(0x306)](_0x39a97e[_0x11d3c5(0x2f3)](this[_0x11d3c5(0x313)]),_0x39a97e[_0x11d3c5(0x2ef)](0x1),_0x39a97e[_0x11d3c5(0x415)](void 0x0));}['setParam'](_0x52bb42,_0x324f20,_0x4eab34=!0x1){const _0x3737ad=_0x263a40,_0x27efb9=new URL(window[_0x3737ad(0x284)]['href']);_0x27efb9['searchParams'][_0x3737ad(0x2d9)](_0x52bb42,_0x324f20),_0x4eab34?window[_0x3737ad(0x210)][_0x3737ad(0x30c)]('','',_0x27efb9[_0x3737ad(0x31a)]()):window['history'][_0x3737ad(0x37d)]('','',_0x27efb9[_0x3737ad(0x31a)]());}[_0x263a40(0x3aa)](_0xb19bf9,_0x274c13=!0x1){const _0x33fec8=_0x263a40,_0x3130af=new URL(window[_0x33fec8(0x284)][_0x33fec8(0x26c)]);_0x3130af[_0x33fec8(0x2ee)][_0x33fec8(0x402)](_0xb19bf9),_0x274c13?window['history'][_0x33fec8(0x30c)]('','',_0x3130af[_0x33fec8(0x31a)]()):window[_0x33fec8(0x210)][_0x33fec8(0x37d)]('','',_0x3130af['toString']());}[_0x263a40(0x2a6)](_0x4bc900){const _0x145b3f=_0x263a40;var _0x6f98aa;return(_0x6f98aa=new URL(window['location'][_0x145b3f(0x26c)])['searchParams'][_0x145b3f(0x378)](_0x4bc900))!=null?_0x6f98aa:void 0x0;}}var _0x595597=Object['defineProperty'],_0x400f7c=Object[_0x263a40(0x2bc)],_0x3581b2=(_0x2cdf5d,_0x8200e1,_0x3a7d8e)=>_0x8200e1 in _0x2cdf5d?_0x595597(_0x2cdf5d,_0x8200e1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a7d8e}):_0x2cdf5d[_0x8200e1]=_0x3a7d8e,_0x5c6744=(_0x57c41b,_0x11b642,_0x2b499a,_0x59067f)=>{const _0x113de7=_0x263a40;for(var _0x3124a4=_0x59067f>0x1?void 0x0:_0x59067f?_0x400f7c(_0x11b642,_0x2b499a):_0x11b642,_0x3435bf=_0x57c41b[_0x113de7(0x22c)]-0x1,_0xbab09e;_0x3435bf>=0x0;_0x3435bf--)(_0xbab09e=_0x57c41b[_0x3435bf])&&(_0x3124a4=_0xbab09e(_0x3124a4)||_0x3124a4);return _0x3124a4;},_0x361759=(_0x3e5506,_0x9cf94b)=>(_0x182c33,_0x407c3a)=>_0x9cf94b(_0x182c33,_0x407c3a,_0x3e5506),_0x11fd78=(_0xce56e6,_0x2e2d09,_0x113c96)=>_0x3581b2(_0xce56e6,_0x2e2d09+'',_0x113c96);const _0xb98fbb=_0x263a40(0x1fd);_0x9de135[_0x263a40(0x2f5)]=class extends _0x2c2192[_0x263a40(0x397)]{constructor(_0x171f51=_0x4467d8,_0x140ab4,_0x3c1895,_0x31d0eb){const _0x2da1c7=_0x263a40;super(),this['_config']=_0x171f51,this[_0x2da1c7(0x3b2)]=_0x140ab4,this[_0x2da1c7(0x1bd)]=_0x3c1895,this[_0x2da1c7(0x291)]=_0x31d0eb;const {..._0x51d6b}=_0x2c2192[_0x2da1c7(0x409)]({},_0x4467d8,this[_0x2da1c7(0x278)]);this[_0x2da1c7(0x291)]['setConfig'](_0x5b003e,_0x51d6b);}[_0x263a40(0x1d5)](){const _0x540fa3=_0x263a40;this[_0x540fa3(0x2f0)](),this[_0x540fa3(0x32b)]();}['onRendered'](){const _0x1e3737=_0x263a40;this[_0x1e3737(0x3df)]();}[_0x263a40(0x2f0)](){const _0x2b87a5=_0x263a40;var _0x56ee15;const _0x33d095=[[_0x32664d],[_0x16f9d8],[_0x48d330],[_0x2ea084],[_0x45dd48],[_0x1f6186,{'useClass':_0x5810c8}],[_0x1f436f[_0x2b87a5(0x3ba)],{'useClass':_0x1f436f[_0x2b87a5(0x247)]}],[_0x3b3567['ILocalCacheService'],{'useClass':_0xc805ec}],[_0x9de135[_0x2b87a5(0x339)]],[_0x6d6a66],[_0x753b4],[_0x289b74],[_0x1b423f],[_0x9de135[_0x2b87a5(0x2e7)]]];_0x2c2192[_0x2b87a5(0x376)](this[_0x2b87a5(0x1bd)],_0x2c2192[_0x2b87a5(0x203)](_0x33d095,(_0x56ee15=this[_0x2b87a5(0x278)])==null?void 0x0:_0x56ee15[_0x2b87a5(0x410)]));}[_0x263a40(0x3df)](){const _0x5e248a=_0x263a40;this[_0x5e248a(0x1af)](this[_0x5e248a(0x3b2)][_0x5e248a(0x2d1)](_0x2c2192[_0x5e248a(0x1c6)][_0x5e248a(0x25b)],[_0x19f8bd])),this[_0x5e248a(0x1af)](this['_renderManagerService'][_0x5e248a(0x2d1)](_0x2c2192[_0x5e248a(0x1c6)][_0x5e248a(0x29e)],[_0x429464]));}['_initDependencies'](){const _0x55d82a=_0x263a40;_0x2c2192[_0x55d82a(0x1f0)](this[_0x55d82a(0x1bd)],[[_0x289b74],[_0x9de135[_0x55d82a(0x339)]],[_0x6d6a66],[_0x753b4],[_0x9de135[_0x55d82a(0x2e7)]]]);}},_0x11fd78(_0x9de135[_0x263a40(0x2f5)],_0x263a40(0x27f),_0xb98fbb),_0x9de135['UniverCollaborationClientUIPlugin']=_0x5c6744([_0x2c2192[_0x263a40(0x366)](_0x3b3567[_0x263a40(0x270)]),_0x361759(0x1,_0xeac254[_0x263a40(0x36d)]),_0x361759(0x2,_0x2c2192[_0x263a40(0x3d4)](_0x2c2192['Injector'])),_0x361759(0x3,_0x2c2192[_0x263a40(0x2da)])],_0x9de135[_0x263a40(0x2f5)]);var _0x483f06=Object[_0x263a40(0x2bc)],_0x52ccb5=(_0x2c67d0,_0x3f3f51,_0x21d29b,_0x143acf)=>{const _0x1ef1d2=_0x263a40;for(var _0x37b422=_0x143acf>0x1?void 0x0:_0x143acf?_0x483f06(_0x3f3f51,_0x21d29b):_0x3f3f51,_0xd20a5c=_0x2c67d0[_0x1ef1d2(0x22c)]-0x1,_0x1d68e7;_0xd20a5c>=0x0;_0xd20a5c--)(_0x1d68e7=_0x2c67d0[_0xd20a5c])&&(_0x37b422=_0x1d68e7(_0x37b422)||_0x37b422);return _0x37b422;},_0x2d3f50=(_0x245d16,_0x9f0275)=>(_0x2ad6b3,_0x4cce95)=>_0x9f0275(_0x2ad6b3,_0x4cce95,_0x245d16);_0x9de135['BrowserCollaborationSocketService']=class extends _0x3b3567[_0x263a40(0x347)]{constructor(_0x530b23,_0x371415,_0x331b95,_0x5324d0,_0x4a3e0d){super(_0x530b23,_0x371415,_0x331b95,_0x5324d0,_0x4a3e0d);}async[_0x263a40(0x1c5)](_0x3a0a6c){const _0x463204=_0x263a40,_0x6b43fb=await this[_0x463204(0x414)](),_0x486820=this[_0x463204(0x200)](_0x3a0a6c,_0x6b43fb);return this[_0x463204(0x1a9)](_0x486820);}[_0x263a40(0x200)](_0x2caadd,_0x3978a1){const _0x141622=_0x263a40,_0x4d13a=typeof window>'u'?new URL(_0x2caadd):new URL(_0x2caadd,window['location']['origin']);_0x4d13a['searchParams'][_0x141622(0x2d9)](_0x141622(0x279),_0x3978a1);const _0x1275b6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x141622(0x284)][_0x141622(0x375)]);return _0x1275b6['get']('runId')&&_0x4d13a[_0x141622(0x2ee)][_0x141622(0x2d9)]('runId',_0x1275b6[_0x141622(0x378)](_0x141622(0x390))),_0x4d13a[_0x141622(0x31a)]();}async[_0x263a40(0x414)](){const _0x3ecd03=_0x263a40;var _0x1be11d,_0x1f5f2f,_0x37018f;const _0x41c452=this[_0x3ecd03(0x291)]['getConfig'](_0x3b3567[_0x3ecd03(0x246)]),_0x1dc971=(_0x1be11d=_0x41c452==null?void 0x0:_0x41c452[_0x3ecd03(0x230)])!=null?_0x1be11d:_0x3b3567['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x37018f=(_0x1f5f2f=(await this[_0x3ecd03(0x21a)][_0x3ecd03(0x378)](_0x1dc971,{'headers':{'Content-Type':'application/json'}}))[_0x3ecd03(0x273)])==null?void 0x0:_0x1f5f2f[_0x3ecd03(0x302)])!=null?_0x37018f:'';}},_0x9de135[_0x263a40(0x40d)]=_0x52ccb5([_0x2d3f50(0x0,_0x2c2192[_0x263a40(0x3d4)](_0x2c2192['Injector'])),_0x2d3f50(0x1,_0x2c2192[_0x263a40(0x3d4)](_0x1f436f[_0x263a40(0x22d)])),_0x2d3f50(0x2,_0x2c2192['IConfigService']),_0x2d3f50(0x3,_0x2c2192[_0x263a40(0x2ac)]),_0x2d3f50(0x4,_0x542b31[_0x263a40(0x3dd)])],_0x9de135[_0x263a40(0x40d)]);var _0x3cafe4=(_0x562a0d=>(_0x562a0d[_0x562a0d[_0x263a40(0x23b)]=0x0]=_0x263a40(0x23b),_0x562a0d[_0x562a0d['OK']=0x1]='OK',_0x562a0d[_0x562a0d['INTERNAL_ERROR']=0x2]=_0x263a40(0x3f3),_0x562a0d[_0x562a0d['PERMISSION_DENIED']=0x3]=_0x263a40(0x403),_0x562a0d[_0x562a0d[_0x263a40(0x30f)]=0x4]=_0x263a40(0x30f),_0x562a0d[_0x562a0d['UNAUTHENTICATED']=0x5]=_0x263a40(0x262),_0x562a0d[_0x562a0d[_0x263a40(0x42a)]=0x6]=_0x263a40(0x42a),_0x562a0d[_0x562a0d[_0x263a40(0x2ce)]=0x7]='INVALID_ARGUMENT',_0x562a0d[_0x562a0d[_0x263a40(0x370)]=0x8]=_0x263a40(0x370),_0x562a0d[_0x562a0d[_0x263a40(0x222)]=0x9]=_0x263a40(0x222),_0x562a0d[_0x562a0d[_0x263a40(0x21f)]=0xa]=_0x263a40(0x21f),_0x562a0d[_0x562a0d[_0x263a40(0x41b)]=0xb]=_0x263a40(0x41b),_0x562a0d[_0x562a0d['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x263a40(0x434),_0x562a0d[_0x562a0d['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x562a0d[_0x562a0d[_0x263a40(0x35c)]=0xe]=_0x263a40(0x35c),_0x562a0d[_0x562a0d[_0x263a40(0x2d2)]=0x1389]=_0x263a40(0x2d2),_0x562a0d[_0x562a0d[_0x263a40(0x245)]=0x1771]=_0x263a40(0x245),_0x562a0d[_0x562a0d['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x263a40(0x2ed),_0x562a0d[_0x562a0d[_0x263a40(0x33b)]=0x1773]=_0x263a40(0x33b),_0x562a0d[_0x562a0d[_0x263a40(0x428)]=0x1b59]=_0x263a40(0x428),_0x562a0d[_0x562a0d[_0x263a40(0x1e8)]=0x1b5a]=_0x263a40(0x1e8),_0x562a0d[_0x562a0d[_0x263a40(0x2ff)]=0x1b5b]=_0x263a40(0x2ff),_0x562a0d[_0x562a0d[_0x263a40(0x1e7)]=0x1b5c]=_0x263a40(0x1e7),_0x562a0d[_0x562a0d[_0x263a40(0x329)]=0x1b5d]=_0x263a40(0x329),_0x562a0d[_0x562a0d[_0x263a40(0x207)]=0x1f41]=_0x263a40(0x207),_0x562a0d[_0x562a0d[_0x263a40(0x432)]=0x2329]=_0x263a40(0x432),_0x562a0d[_0x562a0d[_0x263a40(0x436)]=0x232a]=_0x263a40(0x436),_0x562a0d[_0x562a0d[_0x263a40(0x2b0)]=0x232b]=_0x263a40(0x2b0),_0x562a0d[_0x562a0d[_0x263a40(0x21c)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x562a0d[_0x562a0d['LICENSE_DISTRO_REJECTED']=0x232d]=_0x263a40(0x3e3),_0x562a0d[_0x562a0d[_0x263a40(0x1e2)]=0x2711]=_0x263a40(0x1e2),_0x562a0d[_0x562a0d[_0x263a40(0x1f3)]=0x2712]=_0x263a40(0x1f3),_0x562a0d[_0x562a0d[_0x263a40(0x344)]=0x2713]=_0x263a40(0x344),_0x562a0d[_0x562a0d[_0x263a40(0x3ec)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x562a0d[_0x562a0d[_0x263a40(0x1e6)]=0x271a]=_0x263a40(0x1e6),_0x562a0d[_0x562a0d[_0x263a40(0x298)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x562a0d[_0x562a0d['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x562a0d[_0x562a0d[_0x263a40(0x2b3)]=0x271d]=_0x263a40(0x2b3),_0x562a0d[_0x562a0d[_0x263a40(0x3a3)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x562a0d[_0x562a0d[_0x263a40(0x1cd)]=0x271f]=_0x263a40(0x1cd),_0x562a0d[_0x562a0d[_0x263a40(0x3a0)]=0x2720]=_0x263a40(0x3a0),_0x562a0d[_0x562a0d[_0x263a40(0x285)]=0x2af9]=_0x263a40(0x285),_0x562a0d[_0x562a0d[_0x263a40(0x224)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x562a0d[_0x562a0d[_0x263a40(0x30d)]=0x2ee2]='INVALID_INVITE_CODE',_0x562a0d[_0x562a0d['INVITE_CODE_REQUIRED']=0x2ee3]=_0x263a40(0x1a8),_0x562a0d[_0x562a0d['USER_NOT_INVITED_CODE']=0x2ee4]=_0x263a40(0x2e4),_0x562a0d[_0x562a0d[_0x263a40(0x263)]=0x2ee5]=_0x263a40(0x263),_0x562a0d[_0x562a0d[_0x263a40(0x20c)]=0x32c9]=_0x263a40(0x20c),_0x562a0d[_0x562a0d[_0x263a40(0x40b)]=0x32ca]=_0x263a40(0x40b),_0x562a0d[_0x562a0d[_0x263a40(0x39d)]=0x32cb]=_0x263a40(0x39d),_0x562a0d[_0x562a0d[_0x263a40(0x1a6)]=-0x1]='UNRECOGNIZED',_0x562a0d))(_0x3cafe4||{}),_0x3a716d=Object[_0x263a40(0x2bc)],_0x40486a=(_0x446329,_0x275d4a,_0x18d4e7,_0xe9834c)=>{const _0x3a9b8c=_0x263a40;for(var _0x77cb0e=_0xe9834c>0x1?void 0x0:_0xe9834c?_0x3a716d(_0x275d4a,_0x18d4e7):_0x275d4a,_0x5809d6=_0x446329[_0x3a9b8c(0x22c)]-0x1,_0x3fc9b0;_0x5809d6>=0x0;_0x5809d6--)(_0x3fc9b0=_0x446329[_0x5809d6])&&(_0x77cb0e=_0x3fc9b0(_0x77cb0e)||_0x77cb0e);return _0x77cb0e;},_0x58a1cc=(_0x57eb36,_0x7ae308)=>(_0x4a61e9,_0x24406b)=>_0x7ae308(_0x4a61e9,_0x24406b,_0x57eb36);_0x9de135[_0x263a40(0x2a2)]=class extends _0x2c2192[_0x263a40(0x2e1)]{constructor(_0x10fb57,_0x30a062,_0x396b4b){const _0x51f4ab=_0x263a40;super(),this[_0x51f4ab(0x1f1)]=_0x10fb57,this[_0x51f4ab(0x21a)]=_0x30a062,this['_configService']=_0x396b4b;}async[_0x263a40(0x2e2)](_0x215ced,_0x56a3cc,_0x2a5aaf,..._0x499d79){const _0x55f18f=_0x263a40;var _0x95547c,_0x2244a2,_0x4f2fe5,_0x492e69;const _0x56f69d=this[_0x55f18f(0x1f1)][_0x55f18f(0x1d3)]();if(!_0x56f69d)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2732ff=((_0x95547c=this['_configService'][_0x55f18f(0x1e4)](_0x3b3567[_0x55f18f(0x231)]))!=null?_0x95547c:_0x3b3567[_0x55f18f(0x3a4)])+'/'+_0x215ced+_0x55f18f(0x2c0)+_0x56a3cc,_0x5d6a9c=new URL(window['location'][_0x55f18f(0x26c)]),_0x1a367c={'scriptId':_0x215ced,'runId':(_0x2244a2=_0x5d6a9c[_0x55f18f(0x2ee)][_0x55f18f(0x378)]('runId'))!=null?_0x2244a2:'','function':_0x56a3cc,'unitId':_0x56f69d['getUnitId'](),'argsOfFunction':JSON[_0x55f18f(0x1fc)](_0x499d79),'invokeId':(_0x4f2fe5=_0x2a5aaf[_0x55f18f(0x308)])!=null?_0x4f2fe5:'','executionId':(_0x492e69=_0x2a5aaf[_0x55f18f(0x310)])!=null?_0x492e69:''};try{const _0x559d26=await this[_0x55f18f(0x21a)][_0x55f18f(0x292)](_0x2732ff,{'body':_0x1a367c});return _0x559d26[_0x55f18f(0x273)][_0x55f18f(0x423)]&&_0x559d26[_0x55f18f(0x273)][_0x55f18f(0x423)][_0x55f18f(0x318)]!==_0x3cafe4['OK']?_0x55f18f(0x354):_0x559d26['body']['result'];}catch{return'Failed';}}},_0x9de135[_0x263a40(0x2a2)]=_0x40486a([_0x58a1cc(0x0,_0x2c2192['IUniverInstanceService']),_0x58a1cc(0x1,_0x2c2192[_0x263a40(0x3d4)](_0x1f436f[_0x263a40(0x22d)])),_0x58a1cc(0x2,_0x2c2192[_0x263a40(0x2da)])],_0x9de135[_0x263a40(0x2a2)]);const _0x221c11=0x7530,_0x27a991=_0x263a40(0x332);class _0x1fd258 extends _0x2c2192['Disposable']{constructor(){const _0x3d6ce1=_0x263a40;super(),_0x193c38(this,_0x3d6ce1(0x213),_0x2c2192[_0x3d6ce1(0x3a8)]()),_0x193c38(this,'_selfUnitIDs',new Set()),_0x193c38(this,'_unitOnClients',new Map()),_0x193c38(this,_0x3d6ce1(0x2ab),null),_0x193c38(this,_0x3d6ce1(0x1f2),new Map()),_0x193c38(this,'_unitStatus',new Map()),this[_0x3d6ce1(0x3b5)]();}['dispose'](){const _0x371622=_0x263a40;super['dispose'](),this[_0x371622(0x1f2)]['forEach']((_0x2d9f6a,_0x449652)=>this[_0x371622(0x2e3)](_0x449652)),this[_0x371622(0x2ab)]&&window['clearInterval'](this[_0x371622(0x2ab)]);}[_0x263a40(0x1a3)](_0xa09843){const _0x37483a=_0x263a40;return this['_ensureSubject'](_0xa09843)[_0x37483a(0x306)](_0x39a97e[_0x37483a(0x382)]());}[_0x263a40(0x2fe)](_0x42096f){const _0xb3ee51=_0x263a40;this['_selfUnitIDs']['size']===0x0&&this[_0xb3ee51(0x2d7)](),this[_0xb3ee51(0x28e)]['add'](_0x42096f),this[_0xb3ee51(0x1c3)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x42096f],'isForwarded':!0x1});}['disposeUnit'](_0x519ff5){const _0x292fb8=_0x263a40;this[_0x292fb8(0x28e)][_0x292fb8(0x402)](_0x519ff5),this['_selfUnitIDs'][_0x292fb8(0x1e5)]===0x0&&this['_heartbeatTimer']&&window[_0x292fb8(0x30a)](this[_0x292fb8(0x2ab)]);}['_init'](){const _0x1e7f2f=_0x263a40;this[_0x1e7f2f(0x1af)](_0x2c2192[_0x1e7f2f(0x1bf)](_0x39a97e[_0x1e7f2f(0x293)](window,_0x1e7f2f(0x408))[_0x1e7f2f(0x26a)](_0x478273=>{const _0x54fced=_0x1e7f2f;if(_0x478273['key']!==_0x27a991||!_0x478273[_0x54fced(0x418)])return;const _0x22aaa7=JSON[_0x54fced(0x289)](_0x478273[_0x54fced(0x418)]);this[_0x54fced(0x1ac)](_0x22aaa7);}))),window[_0x1e7f2f(0x1ef)](_0x1e7f2f(0x2a1),()=>this[_0x1e7f2f(0x1c3)]({'type':0x1,'memberID':this[_0x1e7f2f(0x213)],'unitIDs':Array[_0x1e7f2f(0x1ab)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x2b6b66){const _0x5eaa28=_0x263a40;switch(_0x2b6b66['type']){case 0x0:this[_0x5eaa28(0x1c0)](_0x2b6b66);break;case 0x1:this['_handleLeaveEvent'](_0x2b6b66);break;case 0x2:this[_0x5eaa28(0x3e6)](_0x2b6b66);break;}}[_0x263a40(0x1c0)](_0x42cf34){const _0xf09b91=_0x263a40,{unitIDs:_0x496ad8,memberID:_0x265d85,isForwarded:_0x22d3dd}=_0x42cf34;_0x496ad8[_0xf09b91(0x34f)](_0xff473e=>{const _0xebaf42=_0xf09b91;if(!_0x22d3dd&&this['_unitOnClients'][_0xebaf42(0x31d)](_0xff473e)&&this[_0xebaf42(0x2ea)](_0xff473e)[_0xebaf42(0x3db)](_0x3b3567[_0xebaf42(0x322)]['OTHER_CLIENTS_EDITING']),!this[_0xebaf42(0x41e)][_0xebaf42(0x31d)](_0xff473e)||!this[_0xebaf42(0x41e)][_0xebaf42(0x378)](_0xff473e)[_0xebaf42(0x31d)](_0x265d85)){const _0x4a00c7=this[_0xebaf42(0x41e)][_0xebaf42(0x378)](_0xff473e)||new Set();_0x4a00c7[_0xebaf42(0x1d8)](_0x265d85),this[_0xebaf42(0x41e)]['set'](_0xff473e,_0x4a00c7),this[_0xebaf42(0x3c2)](_0x265d85);}}),_0x22d3dd||this[_0xf09b91(0x1c3)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xf09b91(0x28e)]],'isForwarded':!0x0});}[_0x263a40(0x3c2)](_0x41c28a){const _0x2793e0=_0x263a40;this[_0x2793e0(0x2e3)](_0x41c28a);const _0x35c17d=window[_0x2793e0(0x1d1)](()=>{const _0x1e4a16=_0x2793e0;this['_unitOnClients'][_0x1e4a16(0x34f)](_0x27cdbe=>{_0x27cdbe['delete'](_0x41c28a);});},_0x221c11*0x2);this['_clearOtherTimers'][_0x2793e0(0x2d9)](_0x41c28a,_0x35c17d);}[_0x263a40(0x2e3)](_0x5c82f0){const _0x33e361=_0x263a40;if(this[_0x33e361(0x1f2)][_0x33e361(0x31d)](_0x5c82f0)){const _0xc67f6a=this[_0x33e361(0x1f2)]['get'](_0x5c82f0);_0xc67f6a&&window[_0x33e361(0x2eb)](_0xc67f6a),this[_0x33e361(0x1f2)][_0x33e361(0x2d9)](_0x5c82f0,null);}}[_0x263a40(0x368)](_0x32f053){const _0x377a12=_0x263a40,{memberID:_0x2d578c,unitIDs:_0x2e9859}=_0x32f053;_0x2e9859[_0x377a12(0x34f)](_0xa5bc89=>{const _0x359080=_0x377a12;var _0x11559e;const _0x4e0113=this['_unitOnClients'][_0x359080(0x378)](_0xa5bc89);_0x4e0113&&(_0x4e0113['delete'](_0x2d578c),(_0x11559e=this[_0x359080(0x2ea)](_0xa5bc89))==null||_0x11559e[_0x359080(0x3db)](_0x4e0113['size']===0x0?_0x3b3567['UnitStatus'][_0x359080(0x252)]:_0x3b3567[_0x359080(0x322)]['OTHER_CLIENTS_EDITING']));}),this[_0x377a12(0x2e3)](_0x2d578c);}['_handleHeartbeatEvent'](_0x488ad8){const _0x82dd52=_0x263a40;this[_0x82dd52(0x3c2)](_0x488ad8[_0x82dd52(0x211)]);}[_0x263a40(0x1c3)](_0x211102){const _0x5e7459=_0x263a40;localStorage[_0x5e7459(0x404)](_0x27a991,JSON[_0x5e7459(0x1fc)](_0x211102));}['_scheduleHeartbeat'](){const _0x2308a0=_0x263a40;this[_0x2308a0(0x2ab)]=window[_0x2308a0(0x205)](()=>{const _0xa78670=_0x2308a0;this['_send']({'type':0x2,'memberID':this[_0xa78670(0x213)]});},_0x221c11);}[_0x263a40(0x2ea)](_0x10ce5f){const _0xde5211=_0x263a40;return this[_0xde5211(0x2d3)][_0xde5211(0x31d)](_0x10ce5f)||this[_0xde5211(0x2d3)]['set'](_0x10ce5f,new _0x39a97e[(_0xde5211(0x30b))](_0x3b3567[_0xde5211(0x322)][_0xde5211(0x252)])),this[_0xde5211(0x2d3)]['get'](_0x10ce5f);}}_0x9de135[_0x263a40(0x413)]=_0x1f6186,_0x9de135['SheetCollabCursorShape']=_0x9e04ec,_0x9de135[_0x263a40(0x3fb)]=_0x1fd258,_0x9de135['WebURLService']=_0x5810c8,Object['defineProperty'](_0x9de135,Symbol[_0x263a40(0x202)],{'value':_0x263a40(0x3c6)});}));
1
+ function _0x3349(){const _0x43a2bf=['_univerInstanceService','_initEvent','handleInsertRow','endRow','with','_docTransformSelectionsService','_collabCursorController','_transformService','addObject','some','getVpScrollXYInfoByPosToVp','_cachedData','_drawAnchor','data','_drawTextRange','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_lastPointer','IRemoteInstanceService','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','YUUMI_NO_CUBOID_FOR_QUESTION','_name','_refRangeService','_removeClearOtherTimer','DocCollaborationEntity','ThemeService','_collaborationController','column','Subject','IRenderManagerService','search','translate(.97)','href','DOC_RANGE_TYPE','_docStateChangeManagerService','get','UniverSheetsUi','_localeService','_uiPartsService','YUUMI_ASYNCIO_CANCELLED','clipPath','saveTaskMap','fillStyle','CollaborationController','_updateSubUnitFromURLParams','BehaviorSubject','CollaborationSessionService','_id','http://www.w3.org/2000/svg','@univerjs/drawing','name','BuiltInUIPart','@univerjs/docs','row','react/jsx-runtime','_messageService','jsx','fromEventSubject','fill','range','transformByState','isTransformMutationsWithChangesetSuccess','_color','_init','unitID','fromEvent','_refreshCollabCursors','toString','sessionTicket','disableLocalCache','InsertRangeMoveDownCommandId','getSheetBySheetId','attrs','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','next','_updateCollabCursors','SetWorksheetActivateCommand','bottom','IDocClipboardService','@univerjs/ui','_scheduleClearOtherTimer','merge','228560GIYUaa','_setupBeforeClosingHandler','getActiveRange','delete','_initStatusListener','DisposableCollection','fillRule','/run/','getCurrentSelections','_hover','Rectangle','_render','WebURLService','_hideTimer','defIds','_initCommandExecutedListener','red.300','HTTPService','setInterval','_transformUndoRedoStack','Error','RxDisposable','createInstance','getLocalCacheKey','addObjects','collabStatus.synced','getTypeOfUnitAdded$','max','_commandService','_revisionService','restore','YUUMI_RATE_OVER_LIMIT','UniverProCollaboration','propertyIsEnumerable','updateOfflineData','WECHAT_HAS_BEEN_BOUND','_localCacheService','SheetsSelectionsService','getCollabEntity$','RevisionService','WebSocketService','COLORS','getCurrentUnitForType','apply','includes','rgba(255,\x20255,\x20255,\x200.01)','UnitStatus','UniverDesign','getColorFromTheme','useRef','pushState','UniverEngineRender','permission.title','_docTransformStateCacheService','_cursors','current','labelPosition','hasOwnProperty','doc.mutation.rich-text-editing','UNIVER_DOC','engine','_context','cursorInfo$','memberID','handleInsertRangeMoveRight','NOT_COLLAB','getUniverSheetInstance','_startDocCollabCursor','on-line-icon_clip0_910_349','isActive','IConfigService','_dataLoaderService','displayName','_getScale','getConfig','handleIRemoveRow','takeUntil','collab-client.tooltip.reconnect','use','Optional','TRANSFORM_CHANGE_OBSERVABLE_TYPE','undoState','_unitOnClients','uni.network.url-service','onPointerEnter$','_draw','Tooltip','MOBILE_HAS_BEEN_BOUND','color','distinctUntilChanged','_handleHeartbeatEvent','min','getUnitStatus$','unit','currentSkeleton$','SUBMIT_CHANGESET_TIMEOUT','pipe','serializeRangeWithSheet','IUniverInstanceService','IURLService','setTimeout','_assignedColors','error','945emnmUU','_docSkeletonManagerService','_updateURLWithCurrentState','location','subscribe','getRenderById','CollaborationEvent','size','set','ICommandService','beginPath','entries','_configService','createSocket','runRefRangeMutations','UNRECOGNIZED','_logService','NodePositionConvertToCursor','_getSheetObject','NOT_FOUND','purple.300','_createSocketURL','_memberService','focused$','Plugin','handleIRemoveCol','Shape','throttleTime','values','SNAPSHOT_HAS_BEEN_REMOVED','children','INTERNAL_ERROR','231RSnRcx','textRanges','DocStateChangeManagerService','getUndoRedoMutationParamsCache','_colorIndex','getRangePointData','init','_entityInit$','selection','_docClipboardService','_config','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Vector2','contains','find','clearTimeout','_anchorDot','React','_drawRectRange','push','deepClone','RefRangeService','redoState','YUUMI_URL_COL_OUT_OF_RANGE','ranges','currentColor','DEFAULT_WS_SESSION_TICKET_URL','override','show','code','function','_transformPreviousActiveRange','getCoordByCell','getUnitId','m1Prime','session.connection-failed','UNIVER_SHEET','transformIMECache','getOffsetConfig','round','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ColorKit','createElement','Inject','currentTheme$','complete','_textBubble','send','_disabled','post','_removeCollabCursors','UNDEFINED','_document','getCurrent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','loadUnit','_httpService','call','split','collabStatus.notCollab','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','touchDependencies','startRow','_getSessionTicket','_imageIoService','_transformHistoryAndStateStack','@univerjs-pro/collaboration','SheetCollabCursorShape','UniverProCollaborationClient','SessionStatus','LOCAL_CACHE_INTERVAL','fillText','MemberService','getSkeleton','width','getValue','NodePositionConvertToRectRange','disposeWithMe','isTransformMutationFailure','setAlpha','_doCreateSocket','_anchor','sheetId','Warning','getOwnPropertyDescriptor','LICENSE_IMPORT_SIZE_EXCEEDED','indexOf','USER_NOT_INVITED_CODE','_scheduleSaving','dispose','closePath','_entities','assignAColorForMemberID','UniverDrawing','INVALID_INVITE_CODE','_shapes','white','_toggleOnline','CommandType','startsWith','DocSelectionManagerService','subUnitId','Injector','_initStatusComponent','_cursorInfo$','_collabCursorState$','_themeService','reconnect','WebBrowserSingleActiveUnitService','INVITE_CODE_REQUIRED','session.will-retry','YUUMI_AI_RUN_FAILED','Module','idSuffix','save','RemoteUniscriptService','_getAnchorBounding','MessageType','@univerjs/core','_status$','_collaborationUIEventService','source','measureText','UniverInstanceType','3AHfrlT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','url(#off-line-icon_clip0_910_343)','unshift','6QLDoJG','getUnhiddenWorksheets','onCommandExecuted','LICENSE_DISTRO_REJECTED','ILogService','getDocRanges','getActiveSheet','@univerjs-pro/collaboration-client','handleDeleteRangeMoveLeft','subscribeEvent','defs','LOGIN_FAILED','UniverProCollaborationClientUi','roomMembers$','off-line-icon_clip0_910_343','popstate','_heartbeatTimer','getCellPositionByOffset','UniverCore','DependentOn','Rect','triggerDblclick','body','MoveRangeCommandId','APPLY_PERMISSION_DENIED','collaboration.closeRoom','assign','APPLY_REVISION_CONFILICT','UniverUi','saveOfflineData','getOwnPropertySymbols','key','hide','concat','status$','OTHER_CLIENT_EDITING','collabCursorState$','UniverDocsUi','RECT','_notificationService','_registerRenderDependencies','icon','onTransformChange$','SetSelectionsOperation','RemoveRowCommandId','findNodePositionByCharIndex','OTHER_CLIENTS_EDITING','then','_urlService','none','useCallback','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','executionId','UniverSheets','font','endColumn','@univerjs/design','YUUMI_SUBSCRIPTION_NOT_FOUND','onPointerMove$','from','_unitStatus','UniverIcon','forEach','_roomMembers$','[CollaborationDataLoaderController]','event$','runId','APPLY_REJECT','startColumn','registerRefRange','_setupSubUnitSync','blue.400','_hovered','type','deserializeRangeWithSheet','string','#FFF','path','isArray','setItem','DesktopCollaborationStatusDisplayController','url(#$1','_handleEvent','_collabSessionService','saveImage','react','INotificationService','urlChange$','collaboration-client-ui.config','activeSheet$','55032DLfNrP','unitId','onPointerLeave$','LocaleService','filter','_docSkeleton','5207742dIhPls','YUUMI_UNABLE_LOAD_URL','defineProperty','Tools','stringify','_range','RegularPolygon','eventID','toRgbString','_docTransformIMECacheService','PERMISSION_DENIED','_beforeCloseService','handleMoveRange','LICENSE_EXPORT_SIZE_EXCEEDED','_sheetSkeletonManagerService','ITransformService','transformRemoteChangeset','symbol','exhaustSavingTask','OFFLINE','actions','getParam','IMessageService','drawWith','clsx','EMAIL_VERIFY_CODE_MISMATCH','USERS_LEAVE','41986yRRUBk','debug','UNAUTHENTICATED','TEXT','newValue','add','CONNECTOR_DATA_TOO_LARGE','text','switchMap','RemoveColCommandId','dispose$','collabStatus.syncing','_cursor','setShapeProps','substring','setUndoRedoMutationParamsCache','operators','univer-mr-2\x20univer-flex\x20univer-text-xl','_online','selections','_instanceService','setStateCache','_labelPosition','OnLineIcon','IBeforeCloseService','M0\x200H16V16H0z','combineLatest','searchParams','BrowserCollaborationSocketService','getStateCache','toStringTag','onRendered','EffectRefRangId','COMPLETION_FINISHED','collabStatus.conflict','length','JOIN_ROOM_FAILED','subunit','lineTo','top','addClipboardHook','YUUMI_CONNECTOR_URL_NOT_FOUND','0\x200\x2016\x2016','getMemberID','mutations','SYNCED','div','_renderManagerService','debounce','onLocalMutation','_scheduleHeartbeat','setParam','transformSelections','INVITE_CODE_HAS_BEEN_UES','replace','exports','getMember','registerComponent','pluginName','toDisposable','collabStatus.fetchMiss','_getMergeRange','m2Prime','unsubscribe','rxjs','_ensureSubject','transform','arc','getCollabCursors$','transformStateCache','tag','NO_OTHER_CLIENTS_EDITING','has','registerRenderModule','forwardRef','handleInsertCol','ACTIVE_UNIT_EVENT_CHANNEL','getColor','YUUMI_ALL_TABLES_IS_INVALID','_send','clearInterval','UPDATE_CURSOR','getSheetId','collaboration-client.offline-data-not-saved','_selfUnitIDs','mask','CollaborationUIEventId','xlink:href','collab-rect-range-','...','_updateLocalCursor','[RemoteUniscriptService]:\x20no\x20focused\x20unit','black','_initEntityListener','cursorInfo','syncEditingCollabCursor','mergeOverrideWithDependencies','CollaborationUIEventService','Unknown\x20user','_backgroundColor','SNAPSHOT_INVALID_SNAPSHOT','4859108qbhKIT','sheetID','SHEET_VIEWPORT_KEY','shareReplay','_clearOtherTimers','editingUnit','asObservable','AWAITING_WITH_PENDING','result','isEditing','HEADER_MENU','getCurrentRevOfUnit','ENSURE_SNAPSHOT_EXECUTION','ALREADY_EXISTS','debounceTime','executeCommand','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','_localStorageService','DocIMEInputManagerService','whenReady','ONLINE','trim','_saveCache','LICENSE_MAX_UNITS_EXCEEDED','_scene','_syncEditingCollabCursorService','_onCursorDelete','params','_onRefRangeChange','INVALID_ARGUMENT','amd','_handleLeaveEvent','map','_colorAssignService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','MOBILE_VERIFY_CODE_MISMATCH','CollaborationStatus','APPLY_DUPLICATED','height','transformMutation','_session','CONFLICT','removeParam','1em','EMAIL_HAS_BEEN_BOUND','IUIPartsService','_saveTaskMap','_injector','_registerDependencies','rxjs/operators','INVITE_CODE_ALREADY_BOUND','requireSession','registerBeforeClose','SOCKET_FAILED','_toggleOffline','Disposable','PY_RUNTIME_SCRIPT_ERROR','collabStatus.offline','disposeUnit','361694gdUHHk','entityInit$','prototype','onStarting','getViewport','session.collaboration-timeout','CHANGESET_REVISION_CONFILICT','_eventUnsubscribe','getFocusedUnit','replaceState','handleInsertRangeMoveDown','connectInjector','jiqing.500','svg','FromArray','wsSessionTicketUrl','evenodd','transformMutationsWithChangeset','_handleJoinEvent','generateRandomId','6525685XmiEQt','AWAITING','history','UniverCollaborationClientUIPlugin','object','loadOfflineData','APPLY_NON_SEQUENTIAL_REVISION','getTypeOfUnitDisposed$','SetDocZoomRatioOperation','DataLoaderService','colorChannel1','runOnServer','CollaborationDataLoaderController','_cursorShapes','resize','TEXT_RANGE_LAYER_INDEX','useDependency','useObservable','CLOSE_ROOM','InsertRowCommandId','roomMembers','setConfig','UniverDocs','univer-flex\x20univer-items-center','TOO_MANY_REQUESTS','_initResize'];_0x3349=function(){return _0x43a2bf;};return _0x3349();}function _0x5d41(_0x5c3fb6,_0x2281e9){const _0x3349f0=_0x3349();return _0x5d41=function(_0x5d4102,_0x5eb231){_0x5d4102=_0x5d4102-0xc8;let _0x278ec8=_0x3349f0[_0x5d4102];return _0x278ec8;},_0x5d41(_0x5c3fb6,_0x2281e9);}(function(_0x56fa0e,_0x4f50ce){const _0x55b173=_0x5d41,_0x8a9df8=_0x56fa0e();while(!![]){try{const _0x3e618f=parseInt(_0x55b173(0xe2))/0x1+parseInt(_0x55b173(0x182))/0x2+-parseInt(_0x55b173(0x304))/0x3*(-parseInt(_0x55b173(0x147))/0x4)+-parseInt(_0x55b173(0x196))/0x5*(-parseInt(_0x55b173(0x308))/0x6)+parseInt(_0x55b173(0x268))/0x7*(-parseInt(_0x55b173(0x362))/0x8)+-parseInt(_0x55b173(0x368))/0x9+parseInt(_0x55b173(0x201))/0xa*(-parseInt(_0x55b173(0x288))/0xb);if(_0x3e618f===_0x4f50ce)break;else _0x8a9df8['push'](_0x8a9df8['shift']());}catch(_0x3cf433){_0x8a9df8['push'](_0x8a9df8['shift']());}}}(_0x3349,0xb870c),function(_0x504429,_0x20b04d){const _0x3034e1=_0x5d41;typeof exports==_0x3034e1(0x19a)&&typeof module<'u'?_0x20b04d(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==_0x3034e1(0x2a6)&&define[_0x3034e1(0x165)]?define([_0x3034e1(0x119),_0x3034e1(0x1e5),_0x3034e1(0x30f),_0x3034e1(0x2fe),_0x3034e1(0x1fe),_0x3034e1(0x122),_0x3034e1(0x340),_0x3034e1(0x35d),'@univerjs/rpc','@univerjs/sheets','@univerjs/engine-render','@univerjs/network','@univerjs/docs-ui',_0x3034e1(0x1e0),_0x3034e1(0x2ca),_0x3034e1(0x1e3),'@univerjs/engine-formula',_0x3034e1(0x178),'@univerjs/sheets-ui'],_0x20b04d):(_0x504429=typeof globalThis<'u'?globalThis:_0x504429||self,_0x20b04d(_0x504429[_0x3034e1(0x314)]={},_0x504429['React'],_0x504429[_0x3034e1(0x2cc)],_0x504429[_0x3034e1(0x31a)],_0x504429[_0x3034e1(0x324)],_0x504429['rxjs'],_0x504429[_0x3034e1(0x230)],_0x504429[_0x3034e1(0x299)],_0x504429['UniverRpc'],_0x504429[_0x3034e1(0x33d)],_0x504429[_0x3034e1(0x234)],_0x504429['UniverNetwork'],_0x504429[_0x3034e1(0x32d)],_0x504429[_0x3034e1(0x2e5)],_0x504429[_0x3034e1(0x221)],_0x504429[_0x3034e1(0x1ac)],_0x504429['UniverEngineFormula'],_0x504429[_0x3034e1(0x122)][_0x3034e1(0xf2)],_0x504429[_0x3034e1(0x1d3)]));}(this,function(_0x5e0019,_0x438608,_0x356380,_0x508aad,_0x5c74c1,_0x54d76a,_0x19b36f,_0xbd8d84,_0x57609a,_0x3417b8,_0x23a227,_0x415d26,_0x176070,_0x31a24a,_0x319724,_0x4f8728,_0x38c6a4,_0x10c85e,_0x5debdf){'use strict';const _0x4078cd=_0x5d41;var _0x1dd1ac=Object[_0x4078cd(0xc9)],_0x12e287=(_0x49fec5,_0x20f79c,_0x4694c1)=>_0x20f79c in _0x49fec5?_0x1dd1ac(_0x49fec5,_0x20f79c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4694c1}):_0x49fec5[_0x20f79c]=_0x4694c1,_0x5e1a9d=(_0x510a77,_0x54fa7b,_0x1dfc97)=>_0x12e287(_0x510a77,typeof _0x54fa7b!=_0x4078cd(0xd8)?_0x54fa7b+'':_0x54fa7b,_0x1dfc97),_0x4679fb=function(){const _0x1887af=_0x4078cd;return _0x4679fb=Object[_0x1887af(0x322)]||function(_0x88e197){const _0x1548e0=_0x1887af;for(var _0x264a91,_0x56b77a=0x1,_0x4ba2d7=arguments['length'];_0x56b77a<_0x4ba2d7;_0x56b77a++){_0x264a91=arguments[_0x56b77a];for(var _0x3a7ae9 in _0x264a91)Object[_0x1548e0(0x184)][_0x1548e0(0x23a)][_0x1548e0(0x2c1)](_0x264a91,_0x3a7ae9)&&(_0x88e197[_0x3a7ae9]=_0x264a91[_0x3a7ae9]);}return _0x88e197;},_0x4679fb[_0x1887af(0x22c)](this,arguments);},_0x43b23c=function(_0x5713d6,_0x3cb246){const _0x404f0d=_0x4078cd;var _0x1f5b5c={};for(var _0x183e83 in _0x5713d6)Object[_0x404f0d(0x184)][_0x404f0d(0x23a)][_0x404f0d(0x2c1)](_0x5713d6,_0x183e83)&&_0x3cb246[_0x404f0d(0x2de)](_0x183e83)<0x0&&(_0x1f5b5c[_0x183e83]=_0x5713d6[_0x183e83]);if(_0x5713d6!=null&&typeof Object[_0x404f0d(0x326)]==_0x404f0d(0x2a6)){for(var _0x45a038=0x0,_0x183e83=Object['getOwnPropertySymbols'](_0x5713d6);_0x45a038<_0x183e83[_0x404f0d(0x105)];_0x45a038++)_0x3cb246[_0x404f0d(0x2de)](_0x183e83[_0x45a038])<0x0&&Object[_0x404f0d(0x184)][_0x404f0d(0x222)]['call'](_0x5713d6,_0x183e83[_0x45a038])&&(_0x1f5b5c[_0x183e83[_0x45a038]]=_0x5713d6[_0x183e83[_0x45a038]]);}return _0x1f5b5c;},_0xa32bf7=_0xbd8d84['forwardRef'](function(_0x3d0550,_0x2ff46c){const _0x379eda=_0x4078cd;var _0x50303c=_0x3d0550[_0x379eda(0x331)],_0x2d71e5=_0x3d0550['id'],_0x388ae1=_0x3d0550['className'],_0x2d8831=_0x3d0550['extend'],_0x598b1d=_0x43b23c(_0x3d0550,[_0x379eda(0x331),'id','className','extend']),_0x101f2d='univerjs-icon\x20univerjs-icon-'[_0x379eda(0x329)](_0x2d71e5,'\x20')['concat'](_0x388ae1||'')[_0x379eda(0x15c)](),_0x320e6d=_0xbd8d84[_0x379eda(0x232)]('_'[_0x379eda(0x329)](_0x46c6fc()));return _0x2536a4(_0x50303c,''[_0x379eda(0x329)](_0x2d71e5),{'defIds':_0x50303c[_0x379eda(0x20f)],'idSuffix':_0x320e6d[_0x379eda(0x238)]},_0x4679fb({'ref':_0x2ff46c,'className':_0x101f2d},_0x598b1d),_0x2d8831);});function _0x2536a4(_0x2a2eac,_0x8d697,_0x1f8e4b,_0x4ba0bf,_0x5b4ec7){const _0x3b13ea=_0x4078cd;return _0xbd8d84[_0x3b13ea(0x2b2)](_0x2a2eac['tag'],_0x4679fb(_0x4679fb({'key':_0x8d697},_0x52b296(_0x2a2eac,_0x1f8e4b,_0x5b4ec7)),_0x4ba0bf),(_0x3d577e(_0x2a2eac,_0x1f8e4b)[_0x3b13ea(0x286)]||[])[_0x3b13ea(0x167)](function(_0x27ad0e,_0x4e8fc6){const _0x9f0703=_0x3b13ea;return _0x2536a4(_0x27ad0e,''[_0x9f0703(0x329)](_0x8d697,'-')['concat'](_0x2a2eac[_0x9f0703(0x128)],'-')['concat'](_0x4e8fc6),_0x1f8e4b,void 0x0,_0x5b4ec7);}));}function _0x52b296(_0xaf2454,_0x64ee6a,_0x214e21){const _0x55c9ed=_0x4078cd;var _0x161d0e=_0x4679fb({},_0xaf2454[_0x55c9ed(0x1f7)]);_0x214e21!=null&&_0x214e21['colorChannel1']&&_0x161d0e['fill']===_0x55c9ed(0x1a0)&&(_0x161d0e[_0x55c9ed(0x1e9)]=_0x214e21[_0x55c9ed(0x1a0)]),_0xaf2454[_0x55c9ed(0x128)]==='mask'&&_0x161d0e['id']&&(_0x161d0e['id']=_0x161d0e['id']+_0x64ee6a['idSuffix']),Object[_0x55c9ed(0x273)](_0x161d0e)[_0x55c9ed(0x346)](function(_0x320c0d){const _0xdb339f=_0x55c9ed;var _0x5ca8c1=_0x320c0d[0x0],_0x2c325b=_0x320c0d[0x1];_0x5ca8c1===_0xdb339f(0x137)&&typeof _0x2c325b=='string'&&(_0x161d0e[_0x5ca8c1]=_0x2c325b[_0xdb339f(0x118)](/url\(#(.*)\)/,_0xdb339f(0x359)[_0xdb339f(0x329)](_0x64ee6a[_0xdb339f(0x2f9)],')')));});var _0xaa7fba=_0x64ee6a[_0x55c9ed(0x20f)];return!_0xaa7fba||_0xaa7fba[_0x55c9ed(0x105)]===0x0||(_0xaf2454[_0x55c9ed(0x128)]===_0x55c9ed(0x24f)&&_0x161d0e['xlink:href']&&(_0x161d0e[_0x55c9ed(0x139)]=_0x161d0e[_0x55c9ed(0x139)]+_0x64ee6a[_0x55c9ed(0x2f9)]),Object[_0x55c9ed(0x273)](_0x161d0e)['forEach'](function(_0x3c839f){const _0x5af754=_0x55c9ed;var _0x17005b=_0x3c839f[0x0],_0x8815be=_0x3c839f[0x1];typeof _0x8815be==_0x5af754(0x353)&&(_0x161d0e[_0x17005b]=_0x8815be[_0x5af754(0x118)](/url\(#(.*)\)/,_0x5af754(0x359)['concat'](_0x64ee6a[_0x5af754(0x2f9)],')')));})),_0x161d0e;}function _0x3d577e(_0x4dbc10,_0x41afdf){const _0x5f1591=_0x4078cd;var _0xad0069,_0x440d3e=_0x41afdf[_0x5f1591(0x20f)];return!_0x440d3e||_0x440d3e[_0x5f1591(0x105)]===0x0?_0x4dbc10:_0x4dbc10[_0x5f1591(0x128)]===_0x5f1591(0x312)&&(!((_0xad0069=_0x4dbc10[_0x5f1591(0x286)])===null||_0xad0069===void 0x0)&&_0xad0069[_0x5f1591(0x105)])?_0x4679fb(_0x4679fb({},_0x4dbc10),{'children':_0x4dbc10[_0x5f1591(0x286)][_0x5f1591(0x167)](function(_0x175092){const _0x30ca43=_0x5f1591;return typeof _0x175092['attrs']['id']==_0x30ca43(0x353)&&_0x440d3e&&_0x440d3e['includes'](_0x175092[_0x30ca43(0x1f7)]['id'])?_0x4679fb(_0x4679fb({},_0x175092),{'attrs':_0x4679fb(_0x4679fb({},_0x175092[_0x30ca43(0x1f7)]),{'id':_0x175092[_0x30ca43(0x1f7)]['id']+_0x41afdf[_0x30ca43(0x2f9)]})}):_0x175092;})}):_0x4dbc10;}function _0x46c6fc(){const _0x4e9d8f=_0x4078cd;return Math['random']()[_0x4e9d8f(0x1f2)](0x24)[_0x4e9d8f(0xf0)](0x2,0x8);}_0xa32bf7[_0x4078cd(0x249)]=_0x4078cd(0x345);var _0x3df9e9={'tag':_0x4078cd(0x18f),'attrs':{'xmlns':_0x4078cd(0x1df),'fill':_0x4078cd(0x339),'viewBox':_0x4078cd(0x10c),'width':_0x4078cd(0x172),'height':_0x4078cd(0x172)},'children':[{'tag':'g','attrs':{'clipPath':_0x4078cd(0x306)},'children':[{'tag':_0x4078cd(0x355),'attrs':{'stroke':_0x4078cd(0x2a1),'d':_0x4078cd(0x157),'strokeLinecap':_0x4078cd(0x2af),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4078cd(0x1d7),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4078cd(0x355),'attrs':{'fill':_0x4078cd(0x2e8),'d':_0x4078cd(0xfb)}}]}]}],'defIds':[_0x4078cd(0x316)]},_0x422bd8=_0xbd8d84['forwardRef'](function(_0x381f2a,_0x116a01){const _0x196cba=_0x4078cd;return _0xbd8d84[_0x196cba(0x2b2)](_0xa32bf7,Object[_0x196cba(0x322)]({},_0x381f2a,{'id':'off-line-icon','ref':_0x116a01,'icon':_0x3df9e9}));});_0x422bd8[_0x4078cd(0x249)]='OffLineIcon';var _0x51e0eb={'tag':_0x4078cd(0x18f),'attrs':{'xmlns':_0x4078cd(0x1df),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x4078cd(0x172),'height':_0x4078cd(0x172)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x4078cd(0x2a1),'d':_0x4078cd(0x1c2),'strokeLinecap':_0x4078cd(0x2af),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4078cd(0x312),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4078cd(0x245)},'children':[{'tag':_0x4078cd(0x355),'attrs':{'fill':_0x4078cd(0x2e8),'d':_0x4078cd(0xfb),'transform':_0x4078cd(0x1ce)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x56d0a2=_0xbd8d84[_0x4078cd(0x12c)](function(_0x3dee0e,_0x17c2e0){const _0x14e31d=_0x4078cd;return _0xbd8d84[_0x14e31d(0x2b2)](_0xa32bf7,Object['assign']({},_0x3dee0e,{'id':'on-line-icon','ref':_0x17c2e0,'icon':_0x51e0eb}));});_0x56d0a2[_0x4078cd(0x249)]=_0x4078cd(0xf9);function _0x62d83b(_0x443652){const _0x3f1d34=_0x4078cd;switch(_0x443652){case _0x356380['CollaborationStatus'][_0x3f1d34(0xda)]:return _0x3f1d34(0x180);case _0x356380[_0x3f1d34(0x16b)][_0x3f1d34(0x170)]:return _0x3f1d34(0x104);case _0x356380['CollaborationStatus']['FETCH_MISS']:return _0x3f1d34(0x11e);case _0x356380[_0x3f1d34(0x16b)][_0x3f1d34(0x242)]:return _0x3f1d34(0x2c3);case _0x356380[_0x3f1d34(0x16b)][_0x3f1d34(0x197)]:case _0x356380['CollaborationStatus'][_0x3f1d34(0x14e)]:return _0x3f1d34(0xed);case _0x356380[_0x3f1d34(0x16b)][_0x3f1d34(0x10f)]:case _0x356380[_0x3f1d34(0x16b)]['PENDING']:return _0x3f1d34(0x21a);}}function _0x3a4607(_0x5d13fd){const _0x2cce9a=_0x4078cd,{status$:_0x55d894}=_0x5d13fd,_0x586e80=_0x5c74c1[_0x2cce9a(0x1a7)](_0x55d894,_0x356380['CollaborationStatus'][_0x2cce9a(0x242)]),_0x2effb6=_0x5c74c1[_0x2cce9a(0x1a6)](_0x508aad['LocaleService']),_0x44e871=_0x5c74c1['useDependency'](_0x356380[_0x2cce9a(0x1dd)]),_0x262d5b=_0x586e80!==_0x356380[_0x2cce9a(0x16b)][_0x2cce9a(0xda)],_0x2dda0b=_0x2effb6['t'](_0x62d83b(_0x586e80)),_0x1ca0a4=_0x262d5b?_0x438608['jsx'](_0x56d0a2,{}):_0x438608[_0x2cce9a(0x1e7)](_0x422bd8,{}),_0x5c8c0c=_0xbd8d84[_0x2cce9a(0x33a)](()=>{const _0x394fe0=_0x2cce9a;_0x262d5b||_0x44e871[_0x394fe0(0x2f3)]();},[_0x262d5b,_0x44e871]);function _0x35f63f(){const _0x14119c=_0x2cce9a;return _0x438608['jsxs']('div',{'className':_0x14119c(0x1ad),'onClick':_0x5c8c0c,'children':[_0x438608['jsx'](_0x14119c(0x110),{'className':_0x19b36f[_0x14119c(0xdf)](_0x14119c(0xf3),{'univer-text-green-500':_0x262d5b,'univer-text-red-500':!_0x262d5b}),'children':_0x1ca0a4}),_0x438608[_0x14119c(0x1e7)](_0x14119c(0x110),{'className':_0x14119c(0x293),'children':_0x2dda0b})]});}return _0x262d5b?_0x35f63f():_0x438608[_0x2cce9a(0x1e7)](_0x19b36f[_0x2cce9a(0x257)],{'title':_0x2effb6['t'](_0x2cce9a(0x24e)),'children':_0x35f63f()});}var _0x4241c1=Object['getOwnPropertyDescriptor'],_0x13baf7=(_0x3a335f,_0x1662da,_0x15a6fc,_0xeadba4)=>{for(var _0x4a1f4d=_0xeadba4>0x1?void 0x0:_0xeadba4?_0x4241c1(_0x1662da,_0x15a6fc):_0x1662da,_0x1dfe57=_0x3a335f['length']-0x1,_0x286169;_0x1dfe57>=0x0;_0x1dfe57--)(_0x286169=_0x3a335f[_0x1dfe57])&&(_0x4a1f4d=_0x286169(_0x4a1f4d)||_0x4a1f4d);return _0x4a1f4d;},_0x26e4a3=(_0x200bb0,_0x4d3a53)=>(_0x28894,_0x3c177a)=>_0x4d3a53(_0x28894,_0x3c177a,_0x200bb0);_0x5e0019['DesktopCollaborationStatusDisplayController']=class extends _0x508aad['Disposable']{constructor(_0x16ae3a,_0x45b635,_0x515300,_0x28b0c0){const _0x11bb47=_0x4078cd;super(),_0x5e1a9d(this,_0x11bb47(0x2ff),new _0x54d76a[(_0x11bb47(0x1dc))](_0x356380['CollaborationStatus'][_0x11bb47(0x242)])),(this[_0x11bb47(0x1b0)]=_0x16ae3a,this[_0x11bb47(0x176)]=_0x45b635,this[_0x11bb47(0x1c9)]=_0x515300,this['_uiPartsService']=_0x28b0c0,this[_0x11bb47(0x2ef)](),this[_0x11bb47(0x205)]());}[_0x4078cd(0x205)](){const _0x54dbdc=_0x4078cd;this['disposeWithMe'](this['_univerInstanceService'][_0x54dbdc(0x27f)][_0x54dbdc(0x261)](_0x54d76a['switchMap'](()=>{const _0x3f075b=_0x54dbdc,_0x3ad6a7=this[_0x3f075b(0x1b0)][_0x3f075b(0x18a)]();return _0x3ad6a7?this['_collaborationController'][_0x3f075b(0x227)](_0x3ad6a7[_0x3f075b(0x2a9)]()):_0x54d76a['of'](null);}),_0x54d76a[_0x54dbdc(0xea)](_0x2d6969=>_0x2d6969?_0x2d6969[_0x54dbdc(0x32a)]:_0x54d76a['of'](_0x356380['CollaborationStatus'][_0x54dbdc(0x242)])))[_0x54dbdc(0x26c)](_0xeea2fd=>{const _0x15c096=_0x54dbdc;this[_0x15c096(0x2ff)]['next'](_0xeea2fd);}));}[_0x4078cd(0x2ef)](){const _0x162319=_0x4078cd;this[_0x162319(0x2d5)](this[_0x162319(0x1d5)][_0x162319(0x11b)](_0x5c74c1[_0x162319(0x1e2)][_0x162319(0x151)],()=>_0x5c74c1[_0x162319(0x18d)](_0x218d6b({'status$':this['_status$'][_0x162319(0x14d)]()}),this['_injector'])));}},_0x5e0019[_0x4078cd(0x358)]=_0x13baf7([_0x26e4a3(0x0,_0x508aad[_0x4078cd(0x263)]),_0x26e4a3(0x1,_0x508aad['Inject'](_0x508aad[_0x4078cd(0x2ee)])),_0x26e4a3(0x2,_0x508aad[_0x4078cd(0x2b3)](_0x356380[_0x4078cd(0x1da)])),_0x26e4a3(0x3,_0x5c74c1[_0x4078cd(0x174)])],_0x5e0019[_0x4078cd(0x358)]);function _0x218d6b(_0x2a70ee){const {status$:_0x2d6a85}=_0x2a70ee;return function(){const _0x99c494=_0x5d41;return _0x438608[_0x99c494(0x1e7)](_0x3a4607,{'status$':_0x2d6a85});};}const _0x5066f6=_0x508aad['createIdentifier'](_0x4078cd(0x254));var _0x150419=Object['getOwnPropertyDescriptor'],_0x43b6de=(_0x58f726,_0x255244,_0x44f536,_0x354520)=>{const _0xec77a0=_0x4078cd;for(var _0x6e95c1=_0x354520>0x1?void 0x0:_0x354520?_0x150419(_0x255244,_0x44f536):_0x255244,_0x5e1905=_0x58f726[_0xec77a0(0x105)]-0x1,_0x39e6c3;_0x5e1905>=0x0;_0x5e1905--)(_0x39e6c3=_0x58f726[_0x5e1905])&&(_0x6e95c1=_0x39e6c3(_0x6e95c1)||_0x6e95c1);return _0x6e95c1;},_0x5ce700=(_0x354d53,_0x5cdf64)=>(_0x172cf8,_0x40a08f)=>_0x5cdf64(_0x172cf8,_0x40a08f,_0x354d53);_0x5e0019[_0x4078cd(0x1a2)]=class extends _0x508aad[_0x4078cd(0x216)]{constructor(_0x3efeaa,_0x4f7f3d,_0x2cc251,_0x5ac7cc,_0x121c12){const _0x5e15cd=_0x4078cd;super(),this[_0x5e15cd(0x338)]=_0x3efeaa,this['_logService']=_0x4f7f3d,this['_commandService']=_0x2cc251,this[_0x5e15cd(0x248)]=_0x5ac7cc,_0x121c12?_0x121c12==null||_0x121c12[_0x5e15cd(0x15a)]()[_0x5e15cd(0x337)](()=>this['_init']()):(this[_0x5e15cd(0x278)][_0x5e15cd(0xe3)](_0x5e15cd(0x348),_0x5e15cd(0x2b0)),this['_init']());}async[_0x4078cd(0x1ee)](){const _0x155c2a=_0x4078cd,_0x21f8ff=this[_0x155c2a(0x338)]['getParam'](_0x155c2a(0x25e)),_0xaaa71d=this[_0x155c2a(0x338)]['getParam'](_0x155c2a(0x351)),_0x1f0c67=this[_0x155c2a(0x338)][_0x155c2a(0xdc)](_0x155c2a(0x107));if(!_0x21f8ff||!_0xaaa71d){this[_0x155c2a(0x278)]['debug'](_0x155c2a(0x348),_0x155c2a(0x2be));return;}const _0x3deab5=await this[_0x155c2a(0x248)][_0x155c2a(0x2bf)](_0x21f8ff,Number(_0xaaa71d),_0x1f0c67);_0x3deab5&&_0x3deab5 instanceof _0x508aad['Workbook']&&this[_0x155c2a(0x34e)](_0x3deab5);}async[_0x4078cd(0x34e)](_0x4daafa){const _0x5c1fda=_0x4078cd;await this[_0x5c1fda(0x1db)](_0x4daafa),_0x4daafa[_0x5c1fda(0x361)][_0x5c1fda(0x261)](_0x54d76a['takeUntil'](this['dispose$']))[_0x5c1fda(0x26c)](_0x9ae636=>{const _0x1e5a9d=_0x5c1fda;_0x9ae636&&this[_0x1e5a9d(0x26a)](_0x9ae636);}),this['_urlService'][_0x5c1fda(0x35f)][_0x5c1fda(0x261)](_0x54d76a[_0x5c1fda(0x24d)](this[_0x5c1fda(0xec)]))[_0x5c1fda(0x26c)](()=>this[_0x5c1fda(0x1db)](_0x4daafa));}[_0x4078cd(0x26a)](_0x52e1cf,_0x38e29e=!0x1){const _0x4e61ad=_0x4078cd,_0x5d64cd=this[_0x4e61ad(0x338)][_0x4e61ad(0xdc)]('subunit');_0x52e1cf[_0x4e61ad(0x134)]()!==_0x5d64cd&&this[_0x4e61ad(0x338)][_0x4e61ad(0x115)]('subunit',_0x52e1cf['getSheetId'](),_0x38e29e);}async[_0x4078cd(0x1db)](_0x10e55a){const _0x49dc29=_0x4078cd;var _0x455dce;const _0x29c7a8=this[_0x49dc29(0x338)][_0x49dc29(0xdc)](_0x49dc29(0x107));if(!_0x29c7a8||!_0x10e55a[_0x49dc29(0x1f6)](_0x29c7a8)){const _0x661003=_0x10e55a[_0x49dc29(0x309)]()[0x0],_0x5ba966=_0x10e55a[_0x49dc29(0x1f6)](_0x661003);if(!_0x5ba966)return;this[_0x49dc29(0x26a)](_0x5ba966,!0x0),await this[_0x49dc29(0x21d)][_0x49dc29(0x156)](_0x3417b8[_0x49dc29(0x1fb)]['id'],{'unitId':_0x10e55a[_0x49dc29(0x2a9)](),'subUnitId':_0x661003});return;}((_0x455dce=_0x10e55a['getActiveSheet']())==null?void 0x0:_0x455dce[_0x49dc29(0x134)]())!==_0x29c7a8&&await this[_0x49dc29(0x21d)][_0x49dc29(0x156)](_0x3417b8['SetWorksheetActivateCommand']['id'],{'unitId':_0x10e55a[_0x49dc29(0x2a9)](),'subUnitId':_0x29c7a8});}},_0x5e0019['CollaborationDataLoaderController']=_0x43b6de([_0x5ce700(0x0,_0x5066f6),_0x5ce700(0x1,_0x508aad[_0x4078cd(0x30c)]),_0x5ce700(0x2,_0x508aad[_0x4078cd(0x271)]),_0x5ce700(0x3,_0x508aad[_0x4078cd(0x2b3)](_0x356380[_0x4078cd(0x19f)])),_0x5ce700(0x4,_0x508aad[_0x4078cd(0x250)](_0x57609a[_0x4078cd(0x1c1)]))],_0x5e0019[_0x4078cd(0x1a2)]);var _0x12f6f6=Object[_0x4078cd(0x2dc)],_0x186fa0=(_0x4b8ba5,_0x1e57a4,_0x26b656,_0x2638f1)=>{const _0x4db0f0=_0x4078cd;for(var _0x4bf85c=_0x2638f1>0x1?void 0x0:_0x2638f1?_0x12f6f6(_0x1e57a4,_0x26b656):_0x1e57a4,_0xb92d1b=_0x4b8ba5[_0x4db0f0(0x105)]-0x1,_0x53fa15;_0xb92d1b>=0x0;_0xb92d1b--)(_0x53fa15=_0x4b8ba5[_0xb92d1b])&&(_0x4bf85c=_0x53fa15(_0x4bf85c)||_0x4bf85c);return _0x4bf85c;},_0xf7ed34=(_0x8a2514,_0x9cbe15)=>(_0x24bf60,_0x48d7cc)=>_0x9cbe15(_0x24bf60,_0x48d7cc,_0x8a2514);let _0x2de5c8=class extends _0x508aad['RxDisposable']{constructor(_0x2d55e7,_0x1b3d54){const _0x3fd315=_0x4078cd;super(),this[_0x3fd315(0x291)]=_0x2d55e7,this[_0x3fd315(0x2c8)]=_0x1b3d54,this['_init']();}[_0x4078cd(0x1ee)](){const _0x505c6e=_0x4078cd,_0x1c1b7e=this;this['disposeWithMe'](this['_docClipboardService'][_0x505c6e(0x10a)]({'onBeforePasteImage':async _0x3fc3d3=>{const _0x5cb64f=_0x505c6e,_0x285073=await _0x1c1b7e[_0x5cb64f(0x2c8)][_0x5cb64f(0x35c)](_0x3fc3d3);return _0x285073?{'source':_0x285073[_0x5cb64f(0x301)],'imageSourceType':_0x285073['imageSourceType']}:null;}}));}};_0x2de5c8=_0x186fa0([_0xf7ed34(0x0,_0x176070[_0x4078cd(0x1fd)]),_0xf7ed34(0x1,_0x31a24a['IImageIoService'])],_0x2de5c8);const _0x148d33=[_0x4078cd(0x27c),_0x4078cd(0x18e),'green.600',_0x4078cd(0x211),_0x4078cd(0x34f),'yellow.400'];class _0x3785e5 extends _0x508aad[_0x4078cd(0x17e)]{constructor(){const _0x176af8=_0x4078cd;super(...arguments),_0x5e1a9d(this,_0x176af8(0x266),new Map()),_0x5e1a9d(this,_0x176af8(0x28c),0x0);}[_0x4078cd(0x2e4)](_0x311100){const _0x47b455=_0x4078cd;if(this[_0x47b455(0x266)]['has'](_0x311100))return this[_0x47b455(0x266)]['get'](_0x311100);const _0xffea46=_0x148d33[this['_colorIndex']];return this['_colorIndex']=(this[_0x47b455(0x28c)]+0x1)%_0x148d33[_0x47b455(0x105)],this['_assignedColors']['set'](_0x311100,_0xffea46),_0xffea46;}}function _0x388027(_0x1a02f7){const _0x12ed4e=_0x4078cd;let _0x184822='';for(const _0x49d5d5 of _0x1a02f7){const {startOffset:_0x29c0a0,endOffset:_0x26a5bb,isActive:_0x1dfae7,rangeType:_0x100ffd,segmentId:_0x86a86d,segmentPage:_0x2d878b}=_0x49d5d5;_0x184822[_0x12ed4e(0x105)]&&(_0x184822+=','),_0x184822+=_0x29c0a0+':'+_0x26a5bb+':'+(_0x1dfae7?'1':'0')+':'+_0x100ffd+':'+_0x86a86d+':'+_0x2d878b;}return _0x184822;}function _0x14353d(_0x38cc40){const _0x59a767=_0x4078cd,_0x2bec82=_0x38cc40[_0x59a767(0x2c2)](','),_0x2d4146=[];for(const _0x1cb875 of _0x2bec82){const [_0x2f15e8,_0x5cdbb9,_0x2bb7de,_0x44dbe4,_0x6bfc36,_0x2329ba]=_0x1cb875[_0x59a767(0x2c2)](':');_0x2d4146[_0x59a767(0x29b)]({'startOffset':Number(_0x2f15e8),'endOffset':Number(_0x5cdbb9),'collapsed':_0x2f15e8===_0x5cdbb9,'isActive':_0x2bb7de==='1','rangeType':_0x44dbe4===_0x508aad['DOC_RANGE_TYPE'][_0x59a767(0xe5)]?_0x508aad[_0x59a767(0x1d0)][_0x59a767(0xe5)]:_0x508aad[_0x59a767(0x1d0)]['RECT'],'segmentId':typeof _0x6bfc36==_0x59a767(0x353)?String(_0x6bfc36):'','segmentPage':Number(_0x2329ba!=null?_0x2329ba:-0x1)});}return _0x2d4146[_0x59a767(0x1b9)](_0x43b605=>_0x43b605[_0x59a767(0x246)])||(_0x2d4146[0x0][_0x59a767(0x246)]=!0x0),_0x2d4146;}class _0x3f1775 extends _0x508aad[_0x4078cd(0x216)]{constructor(){const _0x4155dc=_0x4078cd;super(...arguments),_0x5e1a9d(this,_0x4155dc(0x2f1),new _0x54d76a[(_0x4155dc(0x1dc))](null)),_0x5e1a9d(this,_0x4155dc(0x32c),this[_0x4155dc(0x2f1)][_0x4155dc(0x14d)]());}[_0x4078cd(0x141)](_0x2bfd22){const _0x457a95=_0x4078cd,{unitID:_0x1cc67d,memberID:_0x520860,textRanges:_0x4c7367}=_0x2bfd22,_0x179592=_0x388027(_0x4c7367);if(_0x179592==='')return;const _0x530290={'unitID':_0x1cc67d,'memberID':_0x520860,'selection':_0x179592};this[_0x457a95(0x2f1)][_0x457a95(0x1f9)](_0x530290);}}var _0x4572c2=Object['getOwnPropertyDescriptor'],_0x537b54=(_0x58df3b,_0x249a05,_0x1b656e,_0x3d1a72)=>{const _0x55a962=_0x4078cd;for(var _0x19ce2d=_0x3d1a72>0x1?void 0x0:_0x3d1a72?_0x4572c2(_0x249a05,_0x1b656e):_0x249a05,_0x460120=_0x58df3b[_0x55a962(0x105)]-0x1,_0x3abb5c;_0x460120>=0x0;_0x460120--)(_0x3abb5c=_0x58df3b[_0x460120])&&(_0x19ce2d=_0x3abb5c(_0x19ce2d)||_0x19ce2d);return _0x19ce2d;},_0x545ec4=(_0x41744d,_0x588448)=>(_0x1301ba,_0xc3c244)=>_0x588448(_0x1301ba,_0xc3c244,_0x41744d);const _0x31a3b4=0x12c,_0x57b72d=0x64;let _0x2ba9e3=class extends _0x508aad[_0x4078cd(0x216)]{constructor(_0x580062,_0x3f8116,_0x10bf28,_0x19fec5,_0x2f6b03,_0x59f316,_0x1c2aeb,_0x2730d1,_0x309004){const _0x5679e1=_0x4078cd;super(),_0x5e1a9d(this,_0x5679e1(0xf4),!0x1),_0x5e1a9d(this,_0x5679e1(0x1ee),!0x1),_0x5e1a9d(this,'_cursorInfo$',new _0x54d76a['BehaviorSubject'](new Map())),_0x5e1a9d(this,_0x5679e1(0x23f),this['_cursorInfo$'][_0x5679e1(0x14d)]()),_0x5e1a9d(this,'_roomMembers$',new _0x54d76a[(_0x5679e1(0x1dc))]([])),_0x5e1a9d(this,_0x5679e1(0x315),this[_0x5679e1(0x347)][_0x5679e1(0x261)](_0x54d76a[_0x5679e1(0x155)](_0x31a3b4))),_0x5e1a9d(this,'_updateLocalCursor',_0x508aad[_0x5679e1(0x112)](_0x1797fb=>{const _0x2944a8=_0x5679e1,_0x395823={'eventID':_0x319724['CollaborationEvent'][_0x2944a8(0x133)],'data':{'unitID':this[_0x2944a8(0x1ef)],'memberID':this[_0x2944a8(0x16f)][_0x2944a8(0x10d)](),'selection':_0x388027(_0x1797fb)}};this['_session'][_0x2944a8(0x2b7)](_0x395823,this['unitID']);},_0x57b72d)),(this[_0x5679e1(0x1ef)]=_0x580062,this[_0x5679e1(0x16f)]=_0x3f8116,this['_injector']=_0x10bf28,this[_0x5679e1(0x168)]=_0x19fec5,this['_memberService']=_0x2f6b03,this['_syncEditingCollabCursorService']=_0x59f316,this[_0x5679e1(0x1b7)]=_0x1c2aeb,this[_0x5679e1(0x1b0)]=_0x2730d1,this[_0x5679e1(0x21d)]=_0x309004);}get['cursorInfo'](){const _0x3c7071=_0x4078cd;return this['_cursorInfo$'][_0x3c7071(0x2d3)]();}get[_0x4078cd(0x1aa)](){const _0x190a9b=_0x4078cd;return this['_roomMembers$'][_0x190a9b(0x2d3)]();}[_0x4078cd(0x2e1)](){const _0x3a0181=_0x4078cd;super[_0x3a0181(0x2e1)](),this[_0x3a0181(0x2f0)][_0x3a0181(0x1f9)](new Map()),this[_0x3a0181(0x2f0)][_0x3a0181(0x2b5)](),this[_0x3a0181(0x347)][_0x3a0181(0x1f9)]([]),this[_0x3a0181(0x347)]['complete']();}[_0x4078cd(0x28e)](){const _0x2a3986=_0x4078cd;this[_0x2a3986(0x1ee)]||(this[_0x2a3986(0x1ee)]=!0x0,this[_0x2a3986(0x16f)]['sessionStatus$'][_0x2a3986(0x261)](_0x54d76a['takeUntil'](this['dispose$']))[_0x2a3986(0x26c)](_0x4065eb=>{const _0x582928=_0x2a3986;_0x4065eb===_0x356380[_0x582928(0x2cd)][_0x582928(0x15b)]?this[_0x582928(0x2e9)]():this[_0x582928(0x17d)]();}),this['_session']['event$']['pipe'](_0x54d76a[_0x2a3986(0x24d)](this[_0x2a3986(0xec)]))[_0x2a3986(0x26c)](_0x179dfa=>{const _0x380ca2=_0x2a3986,_0x5a7064=_0x179dfa[_0x380ca2(0xce)];_0x5a7064===_0x319724['CollaborationEvent'][_0x380ca2(0x133)]&&this['_onCursorUpdate'](_0x179dfa),_0x5a7064===_0x319724[_0x380ca2(0x26e)][_0x380ca2(0xe1)]&&this[_0x380ca2(0x161)](_0x179dfa);}),this[_0x2a3986(0x2d5)](this[_0x2a3986(0x21d)][_0x2a3986(0x30a)](_0x2b175e=>{const _0x32f390=_0x2a3986,_0x3f31d6=_0x2b175e[_0x32f390(0x162)];_0x3f31d6!=null&&this['_online']&&_0x2b175e['id']===_0x4f8728['SetTextSelectionsOperation']['id']&&_0x3f31d6[_0x32f390(0x363)]===this['unitID']&&_0x3f31d6[_0x32f390(0x150)]===!0x1&&_0x3f31d6[_0x32f390(0x2a0)][_0x32f390(0x105)]>0x0&&this['_updateLocalCursor'](_0x3f31d6[_0x32f390(0x2a0)]);})),this[_0x2a3986(0x160)][_0x2a3986(0x32c)]['pipe'](_0x54d76a['takeUntil'](this[_0x2a3986(0xec)]))[_0x2a3986(0x26c)](_0x4c6910=>{const _0x3916b8=_0x2a3986;if((_0x4c6910==null?void 0x0:_0x4c6910[_0x3916b8(0x1ef)])!==this[_0x3916b8(0x1ef)])return;const _0x293d20={'eventID':_0x319724[_0x3916b8(0x26e)][_0x3916b8(0x133)],'data':_0x4c6910};this['_onCursorUpdate'](_0x293d20);}),this[_0x2a3986(0x2d5)](this[_0x2a3986(0x21d)][_0x2a3986(0x30a)](_0x30be6b=>{const _0x1dae7f=_0x2a3986;if(_0x30be6b[_0x1dae7f(0x162)]==null)return;const _0x2cbcdd=_0x30be6b[_0x1dae7f(0x162)];if(_0x30be6b['id']!==_0x4f8728['RichTextEditingMutation']['id']||_0x2cbcdd['unitId']!==this['unitID'])return;const _0x25ece1={'id':_0x1dae7f(0x23b),'params':_0x2cbcdd},_0x334e31=this[_0x1dae7f(0x140)];for(const [_0x2dee9b,_0xe70951]of _0x334e31){const _0xbf8815={'id':_0x1dae7f(0x23b),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xe70951[_0x1dae7f(0x2a0)]}},_0x42dc0a=this[_0x1dae7f(0x1b7)][_0x1dae7f(0x16e)](_0x25ece1,_0xbf8815,!0x1);if(_0x319724['isTransformMutationFailure'](_0x42dc0a))throw _0x42dc0a[_0x1dae7f(0x267)];_0x334e31['set'](_0x2dee9b,{..._0xe70951,'ranges':_0x42dc0a['m2Prime'][_0x1dae7f(0x162)]['textRanges']});}queueMicrotask(()=>{const _0x19fbcd=_0x1dae7f;this[_0x19fbcd(0x2f0)][_0x19fbcd(0x1f9)](_0x334e31);});})));}['_onCursorUpdate'](_0x48ecea){const _0x102685=_0x4078cd;var _0x31e72e,_0x407f1f;const {memberID:_0x5a7fcf,selection:_0x393e61}=_0x48ecea[_0x102685(0x1bd)],_0x2ee367=_0x14353d(_0x393e61),_0x328fa0=(_0x407f1f=(_0x31e72e=this['_memberService'][_0x102685(0x11a)](this[_0x102685(0x1ef)],_0x5a7fcf))==null?void 0x0:_0x31e72e[_0x102685(0x1e1)])!=null?_0x407f1f:_0x102685(0x144),_0x43fd86={'color':this[_0x102685(0x168)]['assignAColorForMemberID'](_0x5a7fcf),'name':_0x328fa0,'ranges':_0x2ee367},_0x11fe55=this[_0x102685(0x140)];_0x11fe55[_0x102685(0x270)](_0x5a7fcf,_0x43fd86),this[_0x102685(0x2f0)][_0x102685(0x1f9)](_0x11fe55);}[_0x4078cd(0x161)](_0x432e53){const {memberID:_0x156695}=_0x432e53['data'],_0x3308e5=this['cursorInfo'];_0x3308e5['delete'](_0x156695),this['_cursorInfo$']['next'](_0x3308e5);}[_0x4078cd(0x2e9)](){const _0x2290b7=_0x4078cd;var _0x20c037;if(this[_0x2290b7(0xf4)]=!0x0,((_0x20c037=this[_0x2290b7(0x1b0)][_0x2290b7(0x18a)]())==null?void 0x0:_0x20c037[_0x2290b7(0x2a9)]())!==this[_0x2290b7(0x1ef)])return;const _0x5d5f33=this['_injector'][_0x2290b7(0x1d2)](_0x4f8728[_0x2290b7(0x2ec)])[_0x2290b7(0x30d)]();Array[_0x2290b7(0x356)](_0x5d5f33)&&_0x5d5f33[_0x2290b7(0x105)]>0x0&&this[_0x2290b7(0x13c)](_0x5d5f33);}[_0x4078cd(0x17d)](){const _0x9f31d=_0x4078cd;this[_0x9f31d(0xf4)]=!0x1;}};_0x2ba9e3=_0x537b54([_0x545ec4(0x2,_0x508aad['Inject'](_0x508aad['Injector'])),_0x545ec4(0x3,_0x508aad[_0x4078cd(0x2b3)](_0x3785e5)),_0x545ec4(0x4,_0x508aad[_0x4078cd(0x2b3)](_0x356380[_0x4078cd(0x2d0)])),_0x545ec4(0x5,_0x508aad[_0x4078cd(0x2b3)](_0x3f1775)),_0x545ec4(0x6,_0x319724[_0x4078cd(0xd6)]),_0x545ec4(0x7,_0x508aad[_0x4078cd(0x263)]),_0x545ec4(0x8,_0x508aad[_0x4078cd(0x271)])],_0x2ba9e3);var _0x48ab4a=Object[_0x4078cd(0x2dc)],_0x171d61=(_0x2b5682,_0x572c70,_0x298068,_0xb0f61c)=>{const _0x2bcde9=_0x4078cd;for(var _0x39e661=_0xb0f61c>0x1?void 0x0:_0xb0f61c?_0x48ab4a(_0x572c70,_0x298068):_0x572c70,_0x158964=_0x2b5682[_0x2bcde9(0x105)]-0x1,_0x4287f8;_0x158964>=0x0;_0x158964--)(_0x4287f8=_0x2b5682[_0x158964])&&(_0x39e661=_0x4287f8(_0x39e661)||_0x39e661);return _0x39e661;},_0x1c9040=(_0x583152,_0x415d01)=>(_0x4fe947,_0x5ec767)=>_0x415d01(_0x4fe947,_0x5ec767,_0x583152);const _0x2b4566=0x12c,_0x216cf8=0x64,_0x323757=()=>{let _0x24b277=[],_0x44f644=!0x1;return _0x165385=>{const _0x28c59a=_0x5d41;_0x24b277[_0x28c59a(0x29b)](_0x165385),_0x44f644||(_0x44f644=!0x0,setTimeout(()=>{const _0x4d2082=_0x28c59a;_0x24b277[_0x4d2082(0x346)](_0x27fb88=>_0x27fb88()),_0x24b277=[],_0x44f644=!0x1;}));};};let _0x1c7033=class extends _0x508aad[_0x4078cd(0x216)]{constructor(_0x6a4e6c,_0x4930c0,_0x3821ea,_0x14a38b,_0x214f67,_0x4109a5,_0x45d1c7,_0x3ddc07){const _0x5489dd=_0x4078cd;super(),_0x5e1a9d(this,_0x5489dd(0xf4),!0x1),_0x5e1a9d(this,_0x5489dd(0x1ee),!0x1),_0x5e1a9d(this,'_cursorInfo$',new _0x54d76a['BehaviorSubject'](new Map())),_0x5e1a9d(this,_0x5489dd(0x23f),this[_0x5489dd(0x2f0)][_0x5489dd(0x14d)]()),_0x5e1a9d(this,_0x5489dd(0x347),new _0x54d76a[(_0x5489dd(0x1dc))]([])),_0x5e1a9d(this,_0x5489dd(0x315),this[_0x5489dd(0x347)][_0x5489dd(0x261)](_0x54d76a[_0x5489dd(0x155)](_0x2b4566))),_0x5e1a9d(this,_0x5489dd(0x13c),_0x508aad[_0x5489dd(0x112)]((_0x4c8cbd,_0x2f1e66)=>{const _0x50dcee=_0x5489dd,_0x42be55={'eventID':_0x319724[_0x50dcee(0x26e)][_0x50dcee(0x133)],'data':{'unitID':this[_0x50dcee(0x1ef)],'memberID':this[_0x50dcee(0x16f)][_0x50dcee(0x10d)](),'selection':_0x38c6a4[_0x50dcee(0x262)](_0x4c8cbd,_0x2f1e66['range'])}};this[_0x50dcee(0x16f)][_0x50dcee(0x2b7)](_0x42be55,this[_0x50dcee(0x1ef)]);},_0x216cf8)),(this[_0x5489dd(0x1ef)]=_0x6a4e6c,this[_0x5489dd(0x16f)]=_0x4930c0,this[_0x5489dd(0x176)]=_0x3821ea,this[_0x5489dd(0x168)]=_0x14a38b,this['_memberService']=_0x214f67,this['_univerInstanceService']=_0x4109a5,this[_0x5489dd(0x21d)]=_0x45d1c7,this[_0x5489dd(0x1c5)]=_0x3ddc07);}get[_0x4078cd(0x140)](){const _0x24c037=_0x4078cd;return this['_cursorInfo$'][_0x24c037(0x2d3)]();}get[_0x4078cd(0x1aa)](){const _0x136624=_0x4078cd;return this[_0x136624(0x347)]['getValue']();}['dispose'](){const _0x509b7d=_0x4078cd;super[_0x509b7d(0x2e1)](),this['_cursorInfo$']['next'](new Map()),this[_0x509b7d(0x2f0)]['complete'](),this[_0x509b7d(0x347)][_0x509b7d(0x1f9)]([]),this[_0x509b7d(0x347)]['complete']();}[_0x4078cd(0x28e)](){const _0x33de17=_0x4078cd;this[_0x33de17(0x1ee)]||(this[_0x33de17(0x1ee)]=!0x0,this[_0x33de17(0x16f)]['sessionStatus$'][_0x33de17(0x261)](_0x54d76a[_0x33de17(0x24d)](this[_0x33de17(0xec)]))[_0x33de17(0x26c)](_0x1da486=>{const _0x102029=_0x33de17;_0x1da486===_0x356380['SessionStatus'][_0x102029(0x15b)]?this['_toggleOnline']():this[_0x102029(0x17d)]();}),this['_session']['event$'][_0x33de17(0x261)](_0x54d76a['takeUntil'](this['dispose$']))[_0x33de17(0x26c)](_0x581911=>{const _0x2ba2dc=_0x33de17,_0x442443=_0x581911['eventID'];_0x442443===_0x319724[_0x2ba2dc(0x26e)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x581911),_0x442443===_0x319724[_0x2ba2dc(0x26e)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x581911);}),this[_0x33de17(0x163)](),this[_0x33de17(0x2d5)](this['_commandService'][_0x33de17(0x30a)](_0x4140d0=>{const _0x43672b=_0x33de17;if(this[_0x43672b(0xf4)]&&_0x4140d0['id']===_0x3417b8[_0x43672b(0x333)]['id']&&_0x4140d0[_0x43672b(0x162)]['unitId']===this[_0x43672b(0x1ef)]){const _0x55bf26=_0x4140d0[_0x43672b(0x162)];this[_0x43672b(0x13c)](_0x55bf26[_0x43672b(0x2ed)],_0x55bf26[_0x43672b(0xf5)][0x0]);}})));}['_onCursorUpdate'](_0x41a2f9){const _0x541d7d=_0x4078cd;var _0x3cc65e,_0xcb11a0;const {memberID:_0x1f1cb7,selection:_0x171faa}=_0x41a2f9[_0x541d7d(0x1bd)],{sheetName:_0x1f3049,range:_0x560197}=_0x38c6a4[_0x541d7d(0x352)](_0x171faa),_0x21ddcd={'name':(_0xcb11a0=(_0x3cc65e=this[_0x541d7d(0x27e)][_0x541d7d(0x11a)](this[_0x541d7d(0x1ef)],_0x1f1cb7))==null?void 0x0:_0x3cc65e[_0x541d7d(0x1e1)])!=null?_0xcb11a0:_0x541d7d(0x144),'range':this['_getMergeRange'](_0x1f3049,_0x560197),'sheetID':_0x1f3049,'color':this[_0x541d7d(0x168)][_0x541d7d(0x2e4)](_0x1f1cb7),'selection':_0x171faa},_0x41db1a=this[_0x541d7d(0x140)];_0x41db1a[_0x541d7d(0x270)](_0x1f1cb7,_0x21ddcd),this['_cursorInfo$'][_0x541d7d(0x1f9)](_0x41db1a);}[_0x4078cd(0x161)](_0x320016){const _0x26c454=_0x4078cd,{memberID:_0x4f76e8}=_0x320016[_0x26c454(0x1bd)],_0xc5d945=this[_0x26c454(0x140)];_0xc5d945[_0x26c454(0x204)](_0x4f76e8),this['_cursorInfo$']['next'](_0xc5d945);}[_0x4078cd(0x11f)](_0x466160,_0x3cb02b){const _0x1de63b=_0x4078cd;var _0x40fed4,_0x158e45;const _0x58955e=(_0x158e45=(_0x40fed4=this['_univerInstanceService'][_0x1de63b(0x243)](this['unitID']))==null?void 0x0:_0x40fed4[_0x1de63b(0x1f6)](_0x466160))==null?void 0x0:_0x158e45['getMergeData']();return(_0x58955e==null?void 0x0:_0x58955e[_0x1de63b(0x296)](_0x324783=>_0x508aad[_0x1de63b(0x20b)][_0x1de63b(0x295)](_0x324783,_0x3cb02b)))||_0x3cb02b;}[_0x4078cd(0x163)](){const _0x5c4ff2=_0x4078cd,_0x1fdda5=new _0x508aad[(_0x5c4ff2(0x206))](),_0x15e5a6=_0x323757(),_0x499c90=()=>{_0x1fdda5['dispose']();const _0x2f6634=(_0x4c2fca,_0x3784c9,_0x16b387,_0x28d907)=>{const _0x27ed02=_0x5d41;let _0x6c62d4=[];switch(_0x4c2fca['id']){case _0x3417b8['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x6c62d4=_0x3417b8[_0x27ed02(0x310)](_0x4c2fca,_0x28d907);break;}case _0x3417b8['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x6c62d4=_0x3417b8['handleDeleteRangeMoveUp'](_0x4c2fca,_0x28d907);break;}case _0x3417b8[_0x27ed02(0x102)]['InsertColCommandId']:{_0x6c62d4=_0x3417b8[_0x27ed02(0x12d)](_0x4c2fca,_0x28d907);break;}case _0x3417b8[_0x27ed02(0x102)][_0x27ed02(0x1f5)]:{_0x6c62d4=_0x3417b8[_0x27ed02(0x18c)](_0x4c2fca,_0x28d907);break;}case _0x3417b8[_0x27ed02(0x102)]['InsertRangeMoveRightCommandId']:{_0x6c62d4=_0x3417b8[_0x27ed02(0x241)](_0x4c2fca,_0x28d907);break;}case _0x3417b8[_0x27ed02(0x102)][_0x27ed02(0x1a9)]:{_0x6c62d4=_0x3417b8[_0x27ed02(0x1b2)](_0x4c2fca,_0x28d907);break;}case _0x3417b8['EffectRefRangId'][_0x27ed02(0x31f)]:{_0x6c62d4=_0x3417b8[_0x27ed02(0xd3)](_0x4c2fca,_0x28d907);break;}case _0x3417b8[_0x27ed02(0x102)][_0x27ed02(0xeb)]:{_0x6c62d4=_0x3417b8[_0x27ed02(0x281)](_0x4c2fca,_0x28d907);break;}case _0x3417b8['EffectRefRangId'][_0x27ed02(0x334)]:{_0x6c62d4=_0x3417b8[_0x27ed02(0x24c)](_0x4c2fca,_0x28d907);break;}}const _0x51611a=_0x3417b8[_0x27ed02(0x276)](_0x6c62d4,_0x28d907),_0x58c723=this[_0x27ed02(0x140)][_0x27ed02(0x1d2)](_0x3784c9);if(_0x58c723&&_0x51611a){const _0x276971={..._0x58c723,'range':_0x51611a};this[_0x27ed02(0x140)][_0x27ed02(0x270)](_0x3784c9,_0x276971),_0x15e5a6(()=>{const _0x365d28=_0x27ed02,_0x9b04f0=this[_0x365d28(0x1c5)][_0x365d28(0x34d)](_0x51611a,_0x301f14=>(_0x9b04f0[_0x365d28(0x2e1)](),_0x2f6634(_0x301f14,_0x3784c9,_0x16b387,_0x51611a)));_0x1fdda5[_0x365d28(0xe7)](_0x9b04f0);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x4b4ab7,_0xbb1236)=>{const _0x5a2099=_0x5d41,{range:_0x2cc27e,sheetID:_0x6ea1ca}=_0x4b4ab7,_0x4cc4b9=this[_0x5a2099(0x1c5)][_0x5a2099(0x34d)](_0x2cc27e,_0x107117=>(_0x4cc4b9[_0x5a2099(0x2e1)](),_0x2f6634(_0x107117,_0xbb1236,_0x6ea1ca,_0x2cc27e)));_0x1fdda5[_0x5a2099(0xe7)](_0x4cc4b9);});};this['disposeWithMe'](_0x508aad[_0x5c4ff2(0x11d)](this[_0x5c4ff2(0x2f0)][_0x5c4ff2(0x26c)](()=>{_0x499c90();})));}[_0x4078cd(0x2e9)](){const _0x3c69fd=_0x4078cd;var _0x3f6f5a,_0x222cd2;if(this['_online']=!0x0,((_0x3f6f5a=this[_0x3c69fd(0x1b0)][_0x3c69fd(0x18a)]())==null?void 0x0:_0x3f6f5a[_0x3c69fd(0x2a9)]())!==this['unitID'])return;const _0x3dfee4=(_0x222cd2=this[_0x3c69fd(0x176)][_0x3c69fd(0x1d2)](_0x3417b8[_0x3c69fd(0x226)])[_0x3c69fd(0x209)]())==null?void 0x0:_0x222cd2[0x0],_0x5e9a5e=this['_univerInstanceService'][_0x3c69fd(0x22b)](_0x508aad['UniverInstanceType'][_0x3c69fd(0x2ac)])[_0x3c69fd(0x30e)]();_0x3dfee4&&_0x5e9a5e&&this[_0x3c69fd(0x13c)](_0x5e9a5e['getSheetId'](),_0x3dfee4);}[_0x4078cd(0x17d)](){const _0x5be6ae=_0x4078cd;this[_0x5be6ae(0xf4)]=!0x1;}};_0x1c7033=_0x171d61([_0x1c9040(0x2,_0x508aad[_0x4078cd(0x2b3)](_0x508aad['Injector'])),_0x1c9040(0x3,_0x508aad['Inject'](_0x3785e5)),_0x1c9040(0x4,_0x508aad[_0x4078cd(0x2b3)](_0x356380[_0x4078cd(0x2d0)])),_0x1c9040(0x5,_0x508aad[_0x4078cd(0x263)]),_0x1c9040(0x6,_0x508aad[_0x4078cd(0x271)]),_0x1c9040(0x7,_0x508aad[_0x4078cd(0x2b3)](_0x3417b8[_0x4078cd(0x29d)]))],_0x1c7033);var _0x25cea8=Object[_0x4078cd(0x2dc)],_0xebd57b=(_0x2ad704,_0x5cd619,_0x2a4c94,_0x35cb3e)=>{const _0x801cb2=_0x4078cd;for(var _0x4aaaef=_0x35cb3e>0x1?void 0x0:_0x35cb3e?_0x25cea8(_0x5cd619,_0x2a4c94):_0x5cd619,_0x5a696a=_0x2ad704[_0x801cb2(0x105)]-0x1,_0x2a424e;_0x5a696a>=0x0;_0x5a696a--)(_0x2a424e=_0x2ad704[_0x5a696a])&&(_0x4aaaef=_0x2a424e(_0x4aaaef)||_0x4aaaef);return _0x4aaaef;},_0x285bdd=(_0x176dd5,_0x1bdbee)=>(_0x5376ef,_0x3b2dea)=>_0x1bdbee(_0x5376ef,_0x3b2dea,_0x176dd5);let _0x3f4f06=class extends _0x508aad[_0x4078cd(0x216)]{constructor(_0x4d9d6c,_0x584e2b,_0x433da2){const _0x2edfa0=_0x4078cd;super(),_0x5e1a9d(this,_0x2edfa0(0x2e3),new Map()),_0x5e1a9d(this,_0x2edfa0(0x28f),new _0x54d76a[(_0x2edfa0(0x1cb))]()),(this[_0x2edfa0(0x1b0)]=_0x4d9d6c,this['_injector']=_0x584e2b,this['_collabSessionService']=_0x433da2,this[_0x2edfa0(0x1ee)]());}[_0x4078cd(0x2e1)](){const _0x2d770f=_0x4078cd;super[_0x2d770f(0x2e1)](),this[_0x2d770f(0x28f)][_0x2d770f(0x2b5)](),this[_0x2d770f(0x2e3)]['forEach'](_0x188c7d=>_0x188c7d[_0x2d770f(0x2e1)]());}[_0x4078cd(0x126)](_0x48b6c2){const _0x228497=_0x4078cd;return this[_0x228497(0x2e3)][_0x228497(0x12a)](_0x48b6c2)?this[_0x228497(0x2e3)]['get'](_0x48b6c2)[_0x228497(0x23f)]:this[_0x228497(0x28f)]['pipe'](_0x54d76a['filter'](_0x24b400=>_0x24b400[_0x228497(0x1ef)]===_0x48b6c2),_0x54d76a[_0x228497(0xea)](_0x73ad5a=>_0x73ad5a['cursorInfo$']));}['_init'](){const _0x940206=_0x4078cd;this[_0x940206(0x1b0)][_0x940206(0x21b)](_0x508aad[_0x940206(0x303)][_0x940206(0x2ac)])[_0x940206(0x261)](_0x54d76a['takeUntil'](this['dispose$']))['subscribe'](async _0x4c723b=>{const _0x48e651=_0x940206,_0x240c89=_0x4c723b[_0x48e651(0x2a9)](),_0x44058=await this['_startSheetCollabCursor'](_0x240c89);this['_entityInit$'][_0x48e651(0x1f9)](_0x44058),this[_0x48e651(0x2e3)][_0x48e651(0x270)](_0x240c89,_0x44058);}),this[_0x940206(0x1b0)][_0x940206(0x21b)](_0x508aad['UniverInstanceType'][_0x940206(0x23c)])['pipe'](_0x54d76a['takeUntil'](this['dispose$']))['pipe'](_0x54d76a[_0x940206(0x366)](_0x2cedcc=>!_0x2cedcc[_0x940206(0x2a9)]()[_0x940206(0x2eb)]('__')))[_0x940206(0x26c)](async _0xa53418=>{const _0x236967=_0x940206,_0x399574=_0xa53418[_0x236967(0x2a9)](),_0x13566f=await this[_0x236967(0x244)](_0x399574);this[_0x236967(0x28f)]['next'](_0x13566f),this['_entities']['set'](_0x399574,_0x13566f);}),_0x54d76a[_0x940206(0x200)](this[_0x940206(0x1b0)][_0x940206(0x19d)](_0x508aad[_0x940206(0x303)][_0x940206(0x23c)]),this[_0x940206(0x1b0)][_0x940206(0x19d)](_0x508aad[_0x940206(0x303)]['UNIVER_SHEET']))[_0x940206(0x261)](_0x54d76a[_0x940206(0x24d)](this[_0x940206(0xec)]))[_0x940206(0x26c)](_0x5ab8ec=>{const _0x32f97f=_0x940206,_0x598e00=_0x5ab8ec[_0x32f97f(0x2a9)](),_0x2bba42=this[_0x32f97f(0x2e3)][_0x32f97f(0x1d2)](_0x598e00);_0x2bba42&&(_0x2bba42[_0x32f97f(0x2e1)](),this[_0x32f97f(0x2e3)]['delete'](_0x598e00));});}async['_startSheetCollabCursor'](_0x58bb6b){const _0x4b938e=_0x4078cd,_0x588ba8=await this[_0x4b938e(0x35b)]['requireSession'](_0x58bb6b),_0x3f9e74=this[_0x4b938e(0x176)][_0x4b938e(0x217)](_0x1c7033,_0x58bb6b,_0x588ba8);return _0x3f9e74[_0x4b938e(0x28e)](),_0x3f9e74;}async[_0x4078cd(0x244)](_0x263d75){const _0x1aa528=_0x4078cd,_0x30676e=await this[_0x1aa528(0x35b)][_0x1aa528(0x17a)](_0x263d75),_0x56623a=this[_0x1aa528(0x176)]['createInstance'](_0x2ba9e3,_0x263d75,_0x30676e);return _0x56623a[_0x1aa528(0x28e)](),_0x56623a;}};_0x3f4f06=_0xebd57b([_0x285bdd(0x0,_0x508aad[_0x4078cd(0x263)]),_0x285bdd(0x1,_0x508aad[_0x4078cd(0x2b3)](_0x508aad[_0x4078cd(0x2ee)])),_0x285bdd(0x2,_0x508aad[_0x4078cd(0x2b3)](_0x356380[_0x4078cd(0x1dd)]))],_0x3f4f06);const _0x1a8476=0x14,_0x3c1687=0xc8,_0x4ed3df=0x4,_0x4dd544=0x5;function _0xb9f8ea(_0x3840c7,_0x11de8e){const _0x1e6c83=_0x4078cd;let {radius:_0x2548a2,width:_0x124ec8,height:_0x1ab2c9}=_0x11de8e;_0x2548a2=_0x2548a2!=null?_0x2548a2:0x0,_0x124ec8=_0x124ec8!=null?_0x124ec8:0x1e,_0x1ab2c9=_0x1ab2c9!=null?_0x1ab2c9:0x1e;let _0xad416a=0x0,_0x137adb=0x0,_0x282ad9=0x0;_0xad416a=_0x137adb=_0x282ad9=Math[_0x1e6c83(0x25c)](_0x2548a2,_0x124ec8/0x2,_0x1ab2c9/0x2),_0x3840c7[_0x1e6c83(0x272)](),_0x3840c7['moveTo'](_0xad416a,0x0),_0x3840c7[_0x1e6c83(0x108)](_0x124ec8-_0x137adb,0x0),_0x3840c7[_0x1e6c83(0x125)](_0x124ec8-_0x137adb,_0x137adb,_0x137adb,Math['PI']*0x3/0x2,0x0,!0x1),_0x3840c7[_0x1e6c83(0x108)](_0x124ec8,_0x1ab2c9-_0x282ad9),_0x3840c7['arc'](_0x124ec8-_0x282ad9,_0x1ab2c9-_0x282ad9,_0x282ad9,0x0,Math['PI']/0x2,!0x1),_0x3840c7['lineTo'](0x0,_0x1ab2c9),_0x3840c7[_0x1e6c83(0x108)](0x0,_0xad416a),_0x3840c7['arc'](_0xad416a,_0xad416a,_0xad416a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3840c7[_0x1e6c83(0x2e2)](),_0x11de8e[_0x1e6c83(0x1e9)]&&(_0x3840c7[_0x1e6c83(0x2fa)](),_0x3840c7[_0x1e6c83(0x1d9)]=_0x11de8e['fill'],_0x11de8e[_0x1e6c83(0x207)]===_0x1e6c83(0x192)?_0x3840c7[_0x1e6c83(0x1e9)](_0x1e6c83(0x192)):_0x3840c7[_0x1e6c83(0x1e9)](),_0x3840c7[_0x1e6c83(0x21f)]());}class _0x1260d7 extends _0x23a227['Shape']{constructor(_0x365747,_0x598399){const _0xe17a7b=_0x4078cd;super(_0x365747,_0x598399),_0x5e1a9d(this,_0xe17a7b(0x259)),_0x5e1a9d(this,_0xe17a7b(0xe9)),(this['color']=_0x598399==null?void 0x0:_0x598399[_0xe17a7b(0x259)],this[_0xe17a7b(0xe9)]=_0x598399==null?void 0x0:_0x598399['text']);}static[_0x4078cd(0xde)](_0x452d52,_0x3daa81){const _0x41dbc6=_0x4078cd,{text:_0x5bba15,color:_0x52b636}=_0x3daa81;_0x452d52[_0x41dbc6(0x2fa)](),_0x452d52[_0x41dbc6(0x33e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x17bd35=_0x452d52[_0x41dbc6(0x302)](_0x5bba15)[_0x41dbc6(0x2d2)],_0x293245=Math[_0x41dbc6(0x25c)](_0x17bd35+0x2*_0x4ed3df,_0x3c1687);_0xb9f8ea(_0x452d52,{'height':_0x1a8476,'radius':0x4,'width':_0x293245,'fill':_0x52b636}),_0x452d52['fillStyle']=_0x41dbc6(0x354);const _0x2a18d0=_0x4ed3df,_0x4c2fcd=_0x1a8476-_0x4dd544,_0x2172c0=_0x3c1687-0x2*_0x4ed3df;if(_0x17bd35>_0x2172c0){let _0x2a7207='',_0x86a7a9=0x0;for(const _0x33ebfb of _0x5bba15){const _0x351626=_0x452d52[_0x41dbc6(0x302)](_0x33ebfb)['width'];if(_0x86a7a9+_0x351626<=_0x2172c0-_0x452d52[_0x41dbc6(0x302)](_0x41dbc6(0x13b))[_0x41dbc6(0x2d2)])_0x2a7207+=_0x33ebfb,_0x86a7a9+=_0x351626;else{_0x2a7207+=_0x41dbc6(0x13b);break;}}_0x452d52[_0x41dbc6(0x2cf)](_0x2a7207,_0x2a18d0,_0x4c2fcd);}else _0x452d52[_0x41dbc6(0x2cf)](_0x5bba15,_0x2a18d0,_0x4c2fcd);_0x452d52[_0x41dbc6(0x21f)]();}[_0x4078cd(0x256)](_0x51e4a5){const _0x23d5f2=_0x4078cd;_0x1260d7[_0x23d5f2(0xde)](_0x51e4a5,this);}}const _0x424dc2='collab-text-anchor-',_0x2e8ced='collab-text-range-',_0x4d0e22=_0x4078cd(0x13a),_0x565c39=0x6,_0x1a56d2=1.5,_0x4dfd67=0x4,_0x31c722=1.5,_0x482e1c=_0x4078cd(0x22e);class _0x1ca051{constructor(_0x4d8971,_0x61cc46,_0x8b68f4,_0x2d7c04){const _0x2f8f44=_0x4078cd;_0x5e1a9d(this,'_shapes',[]),_0x5e1a9d(this,_0x2f8f44(0x2d9),null),_0x5e1a9d(this,_0x2f8f44(0x2b6),null),_0x5e1a9d(this,_0x2f8f44(0x298),null),_0x5e1a9d(this,_0x2f8f44(0x20e),null),_0x5e1a9d(this,_0x2f8f44(0x189),null),(this[_0x2f8f44(0xee)]=_0x4d8971,this[_0x2f8f44(0x15f)]=_0x61cc46,this[_0x2f8f44(0x367)]=_0x8b68f4,this[_0x2f8f44(0x2bc)]=_0x2d7c04,this['_render']());}set[_0x4078cd(0x20a)](_0x19a4cc){const _0x5b7fb7=_0x4078cd;_0x19a4cc?(this[_0x5b7fb7(0x298)]&&this[_0x5b7fb7(0x298)][_0x5b7fb7(0x328)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x5b7fb7(0x298)]&&this[_0x5b7fb7(0x298)][_0x5b7fb7(0x2a4)](),this[_0x5b7fb7(0x2b6)]&&this[_0x5b7fb7(0x2b6)][_0x5b7fb7(0x328)]());}[_0x4078cd(0x2e1)](){const _0x548f81=_0x4078cd;for(const _0x580b64 of this[_0x548f81(0x2e7)])_0x580b64[_0x548f81(0x2e1)]();this[_0x548f81(0x2b6)]&&this[_0x548f81(0x2b6)][_0x548f81(0x2e1)](),this[_0x548f81(0x298)]&&this[_0x548f81(0x298)]['dispose'](),this[_0x548f81(0x2d9)]&&this[_0x548f81(0x2d9)][_0x548f81(0x2e1)](),this['_eventUnsubscribe']&&this[_0x548f81(0x189)]();}[_0x4078cd(0x20c)](){const _0xd5aef5=_0x4078cd;var _0x32298d;const {_docSkeleton:_0x308f13,_document:_0x3d5410}=this,{color:_0x3f88a3,name:_0x448068,ranges:_0x3a0a0a}=this[_0xd5aef5(0xee)],_0x4f0f85=_0x3d5410[_0xd5aef5(0x2ae)](),{docsLeft:_0x3aa0b4,docsTop:_0x2f1a3d}=_0x4f0f85,_0x1ac972=new _0x176070[(_0xd5aef5(0x279))](_0x4f0f85,_0x308f13);for(const {startOffset:_0x1930ee,endOffset:_0xb4b639,rangeType:_0xe818fd,segmentId:_0x2334af,segmentPage:_0x3a874f,collapsed:_0x3ac691,isActive:_0x4734cb}of _0x3a0a0a){const _0x42b066=_0x308f13[_0xd5aef5(0x335)](_0x1930ee,!0x0,_0x2334af,_0x3a874f);let _0x30e2b7=_0x308f13[_0xd5aef5(0x335)](_0xb4b639,!0x0,_0x2334af,_0x3a874f);if(_0x30e2b7==null&&(_0x30e2b7=_0x308f13[_0xd5aef5(0x335)](_0xb4b639-0x1,!0x1,_0x2334af,_0x3a874f)),_0x4734cb){const {contentBoxPointGroup:_0x383726}=_0x1ac972[_0xd5aef5(0x28d)](_0x30e2b7,_0x30e2b7);if(_0x383726[_0xd5aef5(0x105)]===0x0)continue;this['_drawAnchor'](_0x3f88a3,_0x383726,_0x3aa0b4,_0x2f1a3d,_0x448068),this[_0xd5aef5(0x189)]=this['_handleHover']();}if(_0x42b066&&_0x30e2b7){if(_0xe818fd===_0x508aad[_0xd5aef5(0x1d0)][_0xd5aef5(0x32e)]){const _0x2e3a00=new _0x176070[(_0xd5aef5(0x2d4))](_0x4f0f85,_0x308f13),{pointGroup:_0x5357f4}=(_0x32298d=_0x2e3a00[_0xd5aef5(0x28d)](_0x42b066,_0x30e2b7))!=null?_0x32298d:{};if(_0x5357f4==null||_0x5357f4['length']===0x0)continue;this[_0xd5aef5(0x29a)](_0x3f88a3,_0x5357f4,_0x3aa0b4,_0x2f1a3d);}else{if(!_0x3ac691){const {borderBoxPointGroup:_0x45d670}=_0x1ac972[_0xd5aef5(0x28d)](_0x42b066,_0x30e2b7);if(_0x45d670['length']===0x0)continue;this['_drawTextRange'](_0x3f88a3,_0x45d670,_0x3aa0b4,_0x2f1a3d);}}}}}[_0x4078cd(0x1bc)](_0x32a776,_0x52c989,_0x4510c5,_0x42165d,_0x3960ff){const _0x23b114=_0x4078cd,_0x30f1f3=this[_0x23b114(0x2fc)](_0x52c989),{left:_0x2770c7,top:_0x1cfc80,height:_0x41cb31}=_0x30f1f3,_0x1e5299=this[_0x23b114(0x24a)](),_0x161c2a=_0x31c722/_0x1e5299,_0x39f60f=new _0x23a227[(_0x23b114(0x31c))](_0x424dc2+_0x508aad[_0x23b114(0x195)](_0x565c39),{'left':_0x2770c7+_0x4510c5-_0x161c2a,'top':_0x1cfc80+_0x42165d,'height':_0x41cb31,'width':_0x1a56d2,'fill':_0x32a776||_0x23a227['getColor'](_0x508aad[_0x23b114(0x22a)][_0x23b114(0x13e)],0x0),'strokeWidth':_0x161c2a,'stroke':_0x482e1c,'evented':!0x0});this['_anchor']=_0x39f60f,this['_scene'][_0x23b114(0x1b8)](_0x39f60f,_0x176070[_0x23b114(0x1a5)]);const _0x1145b3=new _0x23a227[(_0x23b114(0x31c))](_0x424dc2+_0x508aad[_0x23b114(0x195)](_0x565c39),{'left':_0x2770c7+_0x4510c5-_0x161c2a,'top':_0x1cfc80+_0x42165d-_0x4dfd67/0x2,'height':_0x4dfd67,'width':_0x4dfd67,'fill':_0x32a776||_0x23a227['getColor'](_0x508aad['COLORS'][_0x23b114(0x13e)],0x0),'strokeWidth':0x0,'stroke':_0x32a776||_0x23a227['getColor'](_0x508aad[_0x23b114(0x22a)][_0x23b114(0x13e)],0x0),'evented':!0x1});this['_anchorDot']=_0x1145b3,this[_0x23b114(0x15f)][_0x23b114(0x1b8)](_0x1145b3,_0x176070[_0x23b114(0x1a5)]);const _0x5f469d=new _0x1260d7(_0x424dc2+_0x508aad['generateRandomId'](_0x565c39),{'left':_0x2770c7+_0x4510c5-_0x161c2a,'top':_0x1cfc80+_0x42165d-_0x1a8476,'text':_0x3960ff,'color':_0x32a776});this[_0x23b114(0x2b6)]=_0x5f469d,this[_0x23b114(0x15f)][_0x23b114(0x1b8)](_0x5f469d,_0x176070[_0x23b114(0x1a5)]),this[_0x23b114(0x20a)]=!0x1;}['_handleHover'](){const _0x5de4d0=_0x4078cd,_0x384a6f=this[_0x5de4d0(0x2d9)][_0x5de4d0(0x255)][_0x5de4d0(0x311)](()=>{const _0x39d5c1=_0x5de4d0;this[_0x39d5c1(0x20a)]=!0x0;}),_0x154b7f=this[_0x5de4d0(0x2d9)][_0x5de4d0(0x364)][_0x5de4d0(0x311)](()=>{const _0x5a7e6f=_0x5de4d0;this['_hideTimer']&&clearTimeout(this[_0x5a7e6f(0x20e)]),this[_0x5a7e6f(0x20e)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3fa220=_0x5de4d0;_0x384a6f['unsubscribe'](),_0x154b7f[_0x3fa220(0x121)]();};}[_0x4078cd(0x1be)](_0x42d3cb,_0x3b44b2,_0x5512fe,_0x381c3e){const _0x4a7237=_0x4078cd,_0x5dbc6e=new _0x508aad[(_0x4a7237(0x2b1))](_0x42d3cb)['setAlpha'](0.2)[_0x4a7237(0xcf)](),_0x23b180=new _0x23a227[(_0x4a7237(0xcd))](_0x2e8ced+_0x508aad[_0x4a7237(0x195)](_0x565c39),{'pointsGroup':_0x3b44b2,'fill':_0x5dbc6e||_0x23a227['getColor'](_0x508aad[_0x4a7237(0x22a)][_0x4a7237(0x13e)],0.2),'left':_0x5512fe,'top':_0x381c3e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a7237(0x2e7)][_0x4a7237(0x29b)](_0x23b180),this[_0x4a7237(0x15f)][_0x4a7237(0x1b8)](_0x23b180,_0x176070[_0x4a7237(0x1a5)]);}[_0x4078cd(0x29a)](_0x2c43a0,_0x33f714,_0xeb6917,_0x23e89c){const _0x167151=_0x4078cd,_0x4e3fe6=new _0x508aad['ColorKit'](_0x2c43a0)[_0x167151(0x2d7)](0.2)[_0x167151(0xcf)](),_0x41a9f0=new _0x23a227[(_0x167151(0xcd))](_0x4d0e22+_0x508aad[_0x167151(0x195)](_0x565c39),{'pointsGroup':_0x33f714,'fill':_0x4e3fe6||_0x23a227[_0x167151(0x12f)](_0x508aad[_0x167151(0x22a)][_0x167151(0x13e)],0.2),'left':_0xeb6917,'top':_0x23e89c,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x167151(0x29b)](_0x41a9f0),this[_0x167151(0x15f)]['addObject'](_0x41a9f0,_0x176070[_0x167151(0x1a5)]);}['_getAnchorBounding'](_0x292056){const _0x411294=_0x292056[0x0],_0x333b5a=_0x411294[0x0],_0xf6442a=_0x411294[0x2],{x:_0x2caec6,y:_0x3d8e33}=_0x333b5a,{x:_0x49ed6e,y:_0x4679df}=_0xf6442a;return{'left':_0x2caec6,'top':_0x3d8e33,'width':_0x49ed6e-_0x2caec6,'height':_0x4679df-_0x3d8e33};}[_0x4078cd(0x24a)](){const _0x198728=_0x4078cd,{scaleX:_0x2ef039,scaleY:_0x5bd33b}=this['_scene']['getAncestorScale']();return Math[_0x198728(0x21c)](_0x2ef039,_0x5bd33b);}}var _0x2824b1=Object[_0x4078cd(0x2dc)],_0x3a7a66=(_0xef0e91,_0x1c8743,_0x31fd56,_0x5ca325)=>{const _0x3ca4fa=_0x4078cd;for(var _0x492ab4=_0x5ca325>0x1?void 0x0:_0x5ca325?_0x2824b1(_0x1c8743,_0x31fd56):_0x1c8743,_0x358dd0=_0xef0e91[_0x3ca4fa(0x105)]-0x1,_0x2e43de;_0x358dd0>=0x0;_0x358dd0--)(_0x2e43de=_0xef0e91[_0x358dd0])&&(_0x492ab4=_0x2e43de(_0x492ab4)||_0x492ab4);return _0x492ab4;},_0x52f651=(_0x37e1ea,_0x34294d)=>(_0x3b5a79,_0x5a2aac)=>_0x34294d(_0x3b5a79,_0x5a2aac,_0x37e1ea);let _0x2ab1c7=class extends _0x508aad[_0x4078cd(0x216)]{constructor(_0x1064d3,_0x5dda34,_0x495e4b,_0x1a4e36,_0x273834){const _0x2def0d=_0x4078cd;super(),_0x5e1a9d(this,_0x2def0d(0x1a3),[]),_0x5e1a9d(this,_0x2def0d(0x237),[]),(this[_0x2def0d(0x23e)]=_0x1064d3,this[_0x2def0d(0x269)]=_0x5dda34,this[_0x2def0d(0x1b6)]=_0x495e4b,this[_0x2def0d(0x21d)]=_0x1a4e36,this[_0x2def0d(0x2f2)]=_0x273834,this[_0x2def0d(0x1ee)]());}[_0x4078cd(0x1ee)](){const _0x499b6f=_0x4078cd,_0x30fd62=this[_0x499b6f(0x23e)]['unitId'],_0x5525db=this['_docSkeletonManagerService'];this[_0x499b6f(0x2d5)](_0x54d76a[_0x499b6f(0xfc)]([this[_0x499b6f(0x1b6)][_0x499b6f(0x126)](_0x30fd62),this[_0x499b6f(0x2f2)][_0x499b6f(0x2b4)]])[_0x499b6f(0x261)](_0x10c85e[_0x499b6f(0x167)](([_0xfa1aeb,_0xb5ecd7])=>({'skeleton':_0x5525db['getSkeleton'](),'cursors':[..._0xfa1aeb[_0x499b6f(0x284)]()]['flatMap'](_0x357b01=>({..._0x357b01,'color':this[_0x499b6f(0x2f2)][_0x499b6f(0x231)](_0x357b01[_0x499b6f(0x259)])}))})))[_0x499b6f(0x26c)](_0x4419f5=>{const _0x3aa12e=_0x499b6f;if(this['_removeCollabCursors'](),_0x4419f5){const {skeleton:_0x4e7bbc,cursors:_0x2c4cde}=_0x4419f5;this[_0x3aa12e(0x1fa)](_0x4e7bbc,_0x2c4cde);}})),this[_0x499b6f(0x1af)](),this['_initCommandExecutedListener']();}[_0x4078cd(0x1fa)](_0x459324,_0x4a7ca9){const _0x1fff55=_0x4078cd,{scene:_0x30f67e,mainComponent:_0x50bfef}=this[_0x1fff55(0x23e)],_0x577c5d=_0x4a7ca9[_0x1fff55(0x167)](_0x172564=>new _0x1ca051(_0x172564,_0x30f67e,_0x459324,_0x50bfef));this['_cursorShapes']=_0x577c5d,this[_0x1fff55(0x237)]=_0x4a7ca9;}[_0x4078cd(0x1f1)](){const _0x5180aa=_0x4078cd;this['_removeCollabCursors']();const {scene:_0x1b14ab,mainComponent:_0x1d89fd}=this[_0x5180aa(0x23e)],_0x6af092=this[_0x5180aa(0x269)][_0x5180aa(0x2d1)](),_0x2c4eb6=this['_cursors'][_0x5180aa(0x167)](_0x41132d=>new _0x1ca051(_0x41132d,_0x1b14ab,_0x6af092,_0x1d89fd));this[_0x5180aa(0x1a3)]=_0x2c4eb6;}[_0x4078cd(0x2ba)](){const _0x1c13ef=_0x4078cd;this[_0x1c13ef(0x1a3)][_0x1c13ef(0x346)](_0x2f4402=>_0x2f4402[_0x1c13ef(0x2e1)]()),this[_0x1c13ef(0x1a3)]=[];}[_0x4078cd(0x210)](){const _0x166b39=_0x4078cd,_0x2cde1a=[_0x176070[_0x166b39(0x19e)]['id']];this['disposeWithMe'](this[_0x166b39(0x21d)]['onCommandExecuted'](_0x2734e3=>{const _0x17db26=_0x166b39;_0x2cde1a[_0x17db26(0x22d)](_0x2734e3['id'])&&_0x2734e3[_0x17db26(0x162)][_0x17db26(0x363)]===this['_context'][_0x17db26(0x363)]&&this[_0x17db26(0x1f1)]();}));}[_0x4078cd(0x1af)](){const _0xb3add6=_0x4078cd;this['disposeWithMe'](_0x508aad[_0xb3add6(0x1e8)](this['_context'][_0xb3add6(0x23d)][_0xb3add6(0x332)])[_0xb3add6(0x261)](_0x10c85e[_0xb3add6(0x366)](_0x5847d0=>_0x5847d0[_0xb3add6(0x351)]===_0x23a227[_0xb3add6(0x251)][_0xb3add6(0x1a4)]),_0x10c85e[_0xb3add6(0x283)](0x10))[_0xb3add6(0x26c)](()=>{const _0x43de15=_0xb3add6;this[_0x43de15(0x1f1)]();}));}};_0x2ab1c7=_0x3a7a66([_0x52f651(0x1,_0x508aad[_0x4078cd(0x2b3)](_0x4f8728['DocSkeletonManagerService'])),_0x52f651(0x2,_0x508aad['Inject'](_0x3f4f06)),_0x52f651(0x3,_0x508aad[_0x4078cd(0x271)]),_0x52f651(0x4,_0x508aad[_0x4078cd(0x2b3)](_0x508aad[_0x4078cd(0x1c8)]))],_0x2ab1c7);const _0xe0c25d=0x1,_0x33a95c=1.5;class _0x48ed76 extends _0x23a227[_0x4078cd(0x282)]{constructor(_0x78c24e,_0x432ab5){const _0x39950c=_0x4078cd;super(_0x78c24e,_0x432ab5),_0x5e1a9d(this,'_color'),_0x5e1a9d(this,_0x39950c(0x350),!0x1),_0x5e1a9d(this,_0x39950c(0xcc)),_0x5e1a9d(this,_0x39950c(0x1c4),''),_0x5e1a9d(this,_0x39950c(0xf8),_0x39950c(0x109)),_0x5e1a9d(this,'_backgroundColor'),(_0x432ab5&&this[_0x39950c(0xef)](_0x432ab5),this[_0x39950c(0x255)][_0x39950c(0x311)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x39950c(0x364)]['subscribeEvent'](()=>this[_0x39950c(0xef)]({'hovered':!0x1})));}[_0x4078cd(0xef)](_0x3b6537){const _0x576daa=_0x4078cd;var _0x2c0085,_0x6e054a,_0x7fe64f,_0x49a61b,_0x417a07,_0xa265c5;this[_0x576daa(0x1ed)]=(_0x2c0085=_0x3b6537[_0x576daa(0x259)])!=null?_0x2c0085:this[_0x576daa(0x1ed)],this[_0x576daa(0x350)]=(_0x6e054a=_0x3b6537['hovered'])!=null?_0x6e054a:this['_hovered'],this[_0x576daa(0xcc)]=(_0x7fe64f=_0x3b6537[_0x576daa(0x1ea)])!=null?_0x7fe64f:this[_0x576daa(0xcc)],this[_0x576daa(0x1c4)]=(_0x49a61b=_0x3b6537[_0x576daa(0x1e1)])!=null?_0x49a61b:this[_0x576daa(0x1c4)],this[_0x576daa(0xf8)]=(_0x417a07=_0x3b6537[_0x576daa(0x239)])!=null?_0x417a07:this[_0x576daa(0xf8)],this[_0x576daa(0x145)]=(_0xa265c5=_0x3b6537['backgroundColor'])!=null?_0xa265c5:this[_0x576daa(0x145)],this[_0x576daa(0x1eb)]({'width':_0x3b6537[_0x576daa(0x2d2)],'height':_0x3b6537['height']});}['onMouseMove'](_0xff1580){const _0xc5fe0e=_0x4078cd,{row:_0x2883d2,column:_0x4edf8b}=_0xff1580;if(_0x2883d2>=this[_0xc5fe0e(0xcc)][_0xc5fe0e(0x2c6)]&&_0x2883d2<=this[_0xc5fe0e(0xcc)][_0xc5fe0e(0x1b3)]&&_0x4edf8b>=this[_0xc5fe0e(0xcc)][_0xc5fe0e(0x34c)]&&_0x4edf8b<=this['_range'][_0xc5fe0e(0x33f)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0xc5fe0e(0xef)]({'hovered':!0x1});}[_0x4078cd(0x31d)](_0x1ca276){return!0x1;}['_draw'](_0x4ce5e4){const _0x72a24c=_0x4078cd;_0x23a227[_0x72a24c(0x31c)][_0x72a24c(0xde)](_0x4ce5e4,{'width':this[_0x72a24c(0x2d2)],'height':this[_0x72a24c(0x16d)],'strokeWidth':_0x33a95c,'stroke':this[_0x72a24c(0x1ed)],'evented':!0x1,'fill':this[_0x72a24c(0x145)]}),this[_0x72a24c(0x350)]&&(_0x4ce5e4[_0x72a24c(0x2fa)](),_0x4ce5e4[_0x72a24c(0x124)](0x1,0x0,0x0,0x1,this[_0x72a24c(0x2d2)],this[_0x72a24c(0xf8)]===_0x72a24c(0x1fc)?0x0:-_0x1a8476),_0x1260d7['drawWith'](_0x4ce5e4,{'text':this[_0x72a24c(0x1c4)],'color':this[_0x72a24c(0x1ed)]}),_0x4ce5e4[_0x72a24c(0x21f)]());}}var _0x3adaf3=Object[_0x4078cd(0x2dc)],_0x1fb53d=(_0x4f7282,_0x196386,_0x754bf4,_0xb1dc1b)=>{const _0xa594a8=_0x4078cd;for(var _0x38c4c4=_0xb1dc1b>0x1?void 0x0:_0xb1dc1b?_0x3adaf3(_0x196386,_0x754bf4):_0x196386,_0x21774e=_0x4f7282[_0xa594a8(0x105)]-0x1,_0x53e82e;_0x21774e>=0x0;_0x21774e--)(_0x53e82e=_0x4f7282[_0x21774e])&&(_0x38c4c4=_0x53e82e(_0x38c4c4)||_0x38c4c4);return _0x38c4c4;},_0x1c3429=(_0x1f3546,_0x485c90)=>(_0x502266,_0x5eb201)=>_0x485c90(_0x502266,_0x5eb201,_0x1f3546);const _0x1efe29=0x1389;let _0x2a5217=class extends _0x508aad['RxDisposable']{constructor(_0x1db4ea,_0x270ac3,_0x1aceb8,_0x21b969){const _0x485086=_0x4078cd;super(),_0x5e1a9d(this,_0x485086(0x237),new Set()),_0x5e1a9d(this,_0x485086(0x1c0),null),(this['_context']=_0x1db4ea,this[_0x485086(0xd5)]=_0x270ac3,this[_0x485086(0x1b6)]=_0x1aceb8,this['_themeService']=_0x21b969,this['_init']());}[_0x4078cd(0x1ee)](){const _0x377eb0=_0x4078cd;this[_0x377eb0(0xd5)][_0x377eb0(0x25f)][_0x377eb0(0x261)](_0x10c85e[_0x377eb0(0x24d)](this[_0x377eb0(0xec)]),_0x10c85e[_0x377eb0(0xea)](_0x4d8664=>{const _0x152b64=_0x377eb0;if(_0x4d8664){const _0xd84432=_0x4d8664[_0x152b64(0x2da)];return _0x54d76a[_0x152b64(0xfc)](this[_0x152b64(0x1b6)][_0x152b64(0x126)](this[_0x152b64(0x23e)][_0x152b64(0x363)]),this[_0x152b64(0x2f2)]['currentTheme$'])[_0x152b64(0x261)](_0x10c85e[_0x152b64(0x167)](([_0x5cdeff,_0x51d898])=>{const _0x294057=_0x152b64,_0x38f2f5=new Map();return _0x5cdeff[_0x294057(0x346)]((_0x1cf481,_0xdb921d)=>{const _0x44af2e=_0x294057;if(_0x1cf481[_0x44af2e(0x148)]===_0xd84432){const _0x469f2d={..._0x1cf481};_0x469f2d[_0x44af2e(0x259)]=this['_themeService'][_0x44af2e(0x231)](_0x1cf481[_0x44af2e(0x259)]),_0x38f2f5[_0x44af2e(0x270)](_0xdb921d,_0x469f2d);}}),{'skeleton':_0x4d8664,'cursors':_0x38f2f5};}));}return _0x54d76a['of']({'skeleton':null,'cursors':new Map()});}))[_0x377eb0(0x26c)](({skeleton:_0xd54e97,cursors:_0xe05eb8})=>{const _0x1fef2d=_0x377eb0;this['_removeCollabCursors'](),_0xd54e97&&this[_0x1fef2d(0x1fa)](_0xd54e97,_0xe05eb8);}),this[_0x377eb0(0xd5)]['currentSkeleton$']['subscribe'](_0x249fe2=>{const _0x2e0332=_0x377eb0;if(_0x249fe2==null)return;const {skeleton:_0x175823}=_0x249fe2,{scene:_0x99875}=this['_context'];_0x99875[_0x2e0332(0x342)][_0x2e0332(0x311)](_0x508aad[_0x2e0332(0x112)](_0x91c7be=>{const _0x2e05a3=_0x2e0332;var _0x2e84a2,_0x2cbfbd;const {offsetX:_0x46aff0,offsetY:_0x415875}=_0x91c7be,{x:_0x1961f5,y:_0x181f39}=_0x99875['getRelativeToViewportCoord'](_0x23a227[_0x2e05a3(0x294)][_0x2e05a3(0x190)]([_0x46aff0,_0x415875])),{scaleX:_0x106a64,scaleY:_0x1fd30b}=_0x99875['getAncestorScale'](),_0x41f3e7=_0x99875[_0x2e05a3(0x186)](_0x23a227[_0x2e05a3(0x149)]['VIEW_MAIN']),_0x136980=_0x99875[_0x2e05a3(0x1ba)](_0x23a227[_0x2e05a3(0x294)][_0x2e05a3(0x190)]([_0x1961f5,_0x181f39]),_0x41f3e7),_0xe62ed1=_0x175823[_0x2e05a3(0x319)](_0x46aff0,_0x415875,_0x106a64,_0x1fd30b,_0x136980);((_0x2e84a2=this['_lastPointer'])==null?void 0x0:_0x2e84a2[_0x2e05a3(0x1ca)])===_0xe62ed1[_0x2e05a3(0x1ca)]&&((_0x2cbfbd=this[_0x2e05a3(0x1c0)])==null?void 0x0:_0x2cbfbd[_0x2e05a3(0x1e4)])===_0xe62ed1[_0x2e05a3(0x1e4)]||this[_0x2e05a3(0x237)][_0x2e05a3(0x346)](_0x18cbb4=>{_0x18cbb4['onMouseMove'](_0xe62ed1);});},0x64));});}[_0x4078cd(0x1fa)](_0x453344,_0xd8f651){const _0x38c05f=_0x4078cd;var _0x362058;const _0x4fc022=(_0x362058=this[_0x38c05f(0xd5)][_0x38c05f(0x2bd)]())==null?void 0x0:_0x362058['skeleton'];if(!_0x4fc022)return;const _0x59e1be=this[_0x38c05f(0x27a)]();if(!_0x59e1be)return;this[_0x38c05f(0x237)][_0x38c05f(0x346)](_0x494542=>{_0x494542['makeDirty']();});const {scene:_0x40f80b}=_0x59e1be,_0x4cc2d3=_0x5d21b4(Array[_0x38c05f(0x343)](_0xd8f651[_0x38c05f(0x284)]()))[_0x38c05f(0x167)](_0x8fbcbe=>{const _0x28fd59=_0x38c05f,{color:_0x4d7071,range:_0xb769a,name:_0x207f9d,selection:_0x615760,sheetID:_0x38eec9}=_0x8fbcbe,{startColumn:_0x253252,startRow:_0x1dd599,endColumn:_0x36a76b,endRow:_0x3ec761}=_0xb769a,_0x1167ca=_0x5debdf[_0x28fd59(0x2a8)](_0x1dd599,_0x253252,_0x40f80b,_0x4fc022),_0x4524a2=_0x5debdf[_0x28fd59(0x2a8)](_0x3ec761,_0x36a76b,_0x40f80b,_0x4fc022),{columnHeaderHeightAndMarginTop:_0x38666c}=_0x4fc022,{startX:_0x5771e7,startY:_0x1d81f9}=_0x1167ca,{endX:_0x3f742e,endY:_0x48784b}=_0x4524a2,_0x340b59=_0x3f742e-_0x5771e7,_0x33e2d7=_0x48784b-_0x1d81f9,_0x28918e={'labelPosition':_0x1d81f9-_0x38666c>=_0x1a8476?_0x28fd59(0x109):'bottom','sheetID':_0x38eec9,'range':_0xb769a,'color':_0x4d7071,'name':_0x207f9d,'selection':_0x615760,'left':_0x5771e7,'top':_0x1d81f9,'width':_0x340b59,'height':_0x33e2d7,'evented':!0x1,'zIndex':_0x1efe29};return new _0x48ed76(_0x207f9d,_0x28918e);});_0x40f80b[_0x38c05f(0x219)](_0x4cc2d3,_0xe0c25d),this[_0x38c05f(0x237)]=new Set(_0x4cc2d3);}[_0x4078cd(0x2ba)](){const _0x4b381c=_0x4078cd;var _0x4c60a6;(_0x4c60a6=this[_0x4b381c(0x237)])==null||_0x4c60a6['forEach'](_0x2a90bc=>_0x2a90bc['dispose']());}[_0x4078cd(0x27a)](){const _0x149508=_0x4078cd;return _0x5debdf['getSheetObject'](this[_0x149508(0x23e)][_0x149508(0x25e)],this[_0x149508(0x23e)]);}};_0x2a5217=_0x1fb53d([_0x1c3429(0x1,_0x508aad[_0x4078cd(0x2b3)](_0x5debdf['SheetSkeletonManagerService'])),_0x1c3429(0x2,_0x508aad[_0x4078cd(0x2b3)](_0x3f4f06)),_0x1c3429(0x3,_0x508aad[_0x4078cd(0x2b3)](_0x508aad['ThemeService']))],_0x2a5217);function _0x5d21b4(_0x58597c){const _0x2645d8=_0x4078cd,_0x33735a=new Map();return _0x58597c[_0x2645d8(0x346)](_0x1a618a=>{const _0x655132=_0x2645d8;if(_0x33735a['has'](_0x1a618a['selection'])){const _0x448212=_0x33735a[_0x655132(0x1d2)](_0x1a618a[_0x655132(0x290)]);_0x448212[_0x655132(0x1e1)]+=',\x20'+_0x1a618a[_0x655132(0x1e1)];}else _0x33735a[_0x655132(0x270)](_0x1a618a['selection'],_0x1a618a);}),Array[_0x2645d8(0x343)](_0x33735a['values']());}var _0x4b53b5=Object[_0x4078cd(0x2dc)],_0x20b09f=(_0x2c3de8,_0x9ff050,_0x184276,_0x22ae72)=>{const _0x52e832=_0x4078cd;for(var _0xe0422a=_0x22ae72>0x1?void 0x0:_0x22ae72?_0x4b53b5(_0x9ff050,_0x184276):_0x9ff050,_0x22daf1=_0x2c3de8[_0x52e832(0x105)]-0x1,_0x167056;_0x22daf1>=0x0;_0x22daf1--)(_0x167056=_0x2c3de8[_0x22daf1])&&(_0xe0422a=_0x167056(_0xe0422a)||_0xe0422a);return _0xe0422a;},_0x46d435=(_0x5916e1,_0x5b02b0)=>(_0xe7b41a,_0x2292fa)=>_0x5b02b0(_0xe7b41a,_0x2292fa,_0x5916e1);let _0x1a7c60=class extends _0x508aad[_0x4078cd(0x17e)]{constructor(_0x1a26bc,_0x579c78,_0x53e47b,_0x5419fd,_0x1353d7,_0x2c1337){const _0x49a110=_0x4078cd;super(),this[_0x49a110(0xd2)]=_0x1a26bc,this[_0x49a110(0x225)]=_0x579c78,this['_collaborationUIEventService']=_0x53e47b,this[_0x49a110(0x1e6)]=_0x5419fd,this[_0x49a110(0x32f)]=_0x1353d7,this[_0x49a110(0x1d4)]=_0x2c1337,this[_0x49a110(0x202)](),this[_0x49a110(0x1b1)]();}['_setupBeforeClosingHandler'](){const _0x3e6651=_0x4078cd;this['disposeWithMe'](this[_0x3e6651(0xd2)][_0x3e6651(0x17b)](()=>{const _0x3bc507=_0x3e6651;if(this[_0x3bc507(0x225)][_0x3bc507(0x1d8)][_0x3bc507(0x26f)])return this[_0x3bc507(0x1d4)]['t'](_0x3bc507(0x135));}));}[_0x4078cd(0x1b1)](){const _0x5ba6b0=_0x4078cd;this[_0x5ba6b0(0x2d5)](this[_0x5ba6b0(0x300)][_0x5ba6b0(0x349)][_0x5ba6b0(0x26c)](_0x4f870c=>{const _0x4a6cc8=_0x5ba6b0;_0x4f870c['id']===_0x356380[_0x4a6cc8(0x138)][_0x4a6cc8(0x32b)]&&this[_0x4a6cc8(0x1e6)][_0x4a6cc8(0x2a4)]({'type':_0x19b36f[_0x4a6cc8(0x2fd)]['Warning'],'content':this[_0x4a6cc8(0x1d4)]['t']('collaboration.single-unit.warning')}),_0x4f870c['id']===_0x356380['CollaborationUIEventId'][_0x4a6cc8(0x1a8)]&&this['_messageService'][_0x4a6cc8(0x2a4)]({'type':_0x19b36f[_0x4a6cc8(0x2fd)][_0x4a6cc8(0x2db)],'content':this['_localeService']['t'](_0x4a6cc8(0x321))}),_0x4f870c['id']===_0x356380[_0x4a6cc8(0x138)][_0x4a6cc8(0xd1)]&&this[_0x4a6cc8(0x32f)][_0x4a6cc8(0x2a4)]({'title':this[_0x4a6cc8(0x1d4)]['t'](_0x4a6cc8(0x235)),'content':this[_0x4a6cc8(0x1d4)]['t']('permission.content'),'type':_0x4a6cc8(0x267),'duration':0x0}),_0x4f870c['id']===_0x356380[_0x4a6cc8(0x138)]['CONFLICT']&&this['_messageService'][_0x4a6cc8(0x2a4)]({'type':_0x19b36f['MessageType'][_0x4a6cc8(0x215)],'content':this[_0x4a6cc8(0x1d4)]['t']('collaboration.closeRoom')+'('+_0x4f870c[_0x4a6cc8(0x1bd)]+')'}),_0x4f870c['id']===_0x356380[_0x4a6cc8(0x138)][_0x4a6cc8(0x106)]&&this[_0x4a6cc8(0x1e6)][_0x4a6cc8(0x2a4)]({'type':_0x19b36f[_0x4a6cc8(0x2fd)][_0x4a6cc8(0x2db)],'content':this[_0x4a6cc8(0x1d4)]['t'](_0x4f870c[_0x4a6cc8(0x1bd)]||'')}),_0x4f870c['id']===_0x356380['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x4a6cc8(0x2a4)]({'type':_0x19b36f['MessageType']['Warning'],'content':this[_0x4a6cc8(0x1d4)]['t'](_0x4a6cc8(0x2f6))}),_0x4f870c['id']===_0x356380['CollaborationUIEventId'][_0x4a6cc8(0x17c)]&&this[_0x4a6cc8(0x1e6)][_0x4a6cc8(0x2a4)]({'type':_0x19b36f[_0x4a6cc8(0x2fd)][_0x4a6cc8(0x215)],'content':this['_localeService']['t'](_0x4a6cc8(0x2ab))}),_0x4f870c['id']===_0x356380['CollaborationUIEventId'][_0x4a6cc8(0x260)]&&this[_0x4a6cc8(0x1e6)]['show']({'type':_0x19b36f['MessageType']['Error'],'content':this[_0x4a6cc8(0x1d4)]['t'](_0x4a6cc8(0x187))});}));}};_0x1a7c60=_0x20b09f([_0x46d435(0x0,_0x5c74c1[_0x4078cd(0xfa)]),_0x46d435(0x1,_0x356380['ILocalCacheService']),_0x46d435(0x2,_0x508aad[_0x4078cd(0x2b3)](_0x356380[_0x4078cd(0x143)])),_0x46d435(0x3,_0x5c74c1[_0x4078cd(0xdd)]),_0x46d435(0x4,_0x5c74c1[_0x4078cd(0x35e)]),_0x46d435(0x5,_0x508aad[_0x4078cd(0x2b3)](_0x508aad[_0x4078cd(0x365)]))],_0x1a7c60);const _0x59c331=_0x4078cd(0x360),_0x5997a3={};var _0x5a6b42=Object[_0x4078cd(0x2dc)],_0x30167f=(_0x449bd0,_0x2ca310,_0x4eb40e,_0xa31af3)=>{for(var _0x3045bc=_0xa31af3>0x1?void 0x0:_0xa31af3?_0x5a6b42(_0x2ca310,_0x4eb40e):_0x2ca310,_0x5cf382=_0x449bd0['length']-0x1,_0x4bbf7d;_0x5cf382>=0x0;_0x5cf382--)(_0x4bbf7d=_0x449bd0[_0x5cf382])&&(_0x3045bc=_0x4bbf7d(_0x3045bc)||_0x3045bc);return _0x3045bc;},_0x5f46f4=(_0x152ea9,_0x24b645)=>(_0x88314,_0x41fc07)=>_0x24b645(_0x88314,_0x41fc07,_0x152ea9);let _0x2def70=class{constructor(_0x463ec7,_0x4b7755){const _0x53722c=_0x4078cd;this[_0x53722c(0x1b7)]=_0x463ec7,this[_0x53722c(0x111)]=_0x4b7755;}[_0x4078cd(0x2ad)](_0x46ad81){const _0x22998b=_0x4078cd;this[_0x22998b(0x214)](_0x46ad81),this[_0x22998b(0x2a7)](_0x46ad81);}['transformRemoteChangeset'](_0x4884fe){const _0x28685d=_0x4078cd,{unitID:_0x9c664b}=_0x4884fe,_0x4eb99e=this[_0x28685d(0x111)]['getRenderById'](_0x9c664b)[_0x28685d(0x1b4)](_0x176070[_0x28685d(0x159)]),{redoCache:_0x24717a}=_0x4eb99e[_0x28685d(0x28b)]();if(_0x24717a[_0x28685d(0x105)]===0x0)return _0x4884fe;let _0x40e0aa=_0x508aad[_0x28685d(0xca)][_0x28685d(0x29c)](_0x4884fe[_0x28685d(0x10e)][0x0]);for(let _0x5f34d7=0x0;_0x5f34d7<_0x24717a[_0x28685d(0x105)];_0x5f34d7++){const _0x2694af={'id':'doc.mutation.rich-text-editing','params':{..._0x24717a[_0x5f34d7]}},_0x2267ec=this[_0x28685d(0x1b7)][_0x28685d(0x16e)](_0x40e0aa,_0x2694af,!0x1);if(_0x319724[_0x28685d(0x2d6)](_0x2267ec))throw _0x2267ec[_0x28685d(0x267)];_0x40e0aa=_0x2267ec['m1Prime'];}return{..._0x508aad[_0x28685d(0xca)][_0x28685d(0x29c)](_0x4884fe),'mutations':[_0x40e0aa]};}[_0x4078cd(0x214)](_0x2892e0){const _0x5a3859=_0x4078cd,{unitID:_0x53b750}=_0x2892e0,_0x547e74=this['_renderManagerService'][_0x5a3859(0x26d)](_0x53b750)['with'](_0x176070[_0x5a3859(0x159)]),{undoCache:_0x4e855e,redoCache:_0x3809a9}=_0x547e74[_0x5a3859(0x28b)]();if(_0x4e855e['length']===0x0||_0x3809a9[_0x5a3859(0x105)]===0x0)return;const _0x31aa51=[],_0x403bbc=[];let _0x43b1b9=_0x508aad['Tools'][_0x5a3859(0x29c)](_0x2892e0[_0x5a3859(0x10e)][0x0]),_0x24c79a=_0x508aad[_0x5a3859(0xca)][_0x5a3859(0x29c)](_0x2892e0[_0x5a3859(0x10e)][0x0]);for(let _0x1091af=_0x4e855e['length']-0x1;_0x1091af>=0x0;_0x1091af--){const _0x33d13a={'id':_0x5a3859(0x23b),'params':{..._0x4e855e[_0x1091af]}},_0x34c799={'id':'doc.mutation.rich-text-editing','params':{..._0x3809a9[_0x1091af]}},_0x27d835=this[_0x5a3859(0x1b7)][_0x5a3859(0x16e)](_0x43b1b9,_0x33d13a,!0x1),_0x52798b=this[_0x5a3859(0x1b7)][_0x5a3859(0x16e)](_0x24c79a,_0x34c799,!0x1);if(_0x319724[_0x5a3859(0x2d6)](_0x27d835))throw _0x27d835[_0x5a3859(0x267)];if(_0x319724['isTransformMutationFailure'](_0x52798b))throw _0x52798b['error'];_0x31aa51[_0x5a3859(0x307)](_0x27d835[_0x5a3859(0x120)][_0x5a3859(0x162)]),_0x403bbc[_0x5a3859(0x307)](_0x52798b[_0x5a3859(0x120)][_0x5a3859(0x162)]),_0x43b1b9=_0x27d835[_0x5a3859(0x2aa)],_0x24c79a=_0x52798b[_0x5a3859(0x2aa)];}_0x547e74[_0x5a3859(0xf1)]({'undoCache':_0x31aa51,'redoCache':_0x403bbc});}['_transformPreviousActiveRange'](_0x5b045b){const _0x45c7fb=_0x4078cd,{unitID:_0x14f18b}=_0x5b045b,_0x346cb8=this['_renderManagerService'][_0x45c7fb(0x26d)](_0x14f18b)['with'](_0x176070[_0x45c7fb(0x159)]),_0x39a7c6=_0x346cb8[_0x45c7fb(0x203)]();if(_0x39a7c6==null)return;const _0x11d87b=[{'id':_0x45c7fb(0x23b),'params':{'unitId':_0x5b045b['unitID'],'actions':null,'textRanges':[_0x39a7c6]}}],_0x6a7643=this['_transformService'][_0x45c7fb(0x193)](_0x5b045b,_0x11d87b);if(!_0x319724[_0x45c7fb(0x1ec)](_0x6a7643))throw _0x6a7643[_0x45c7fb(0x267)];const _0x47eb59=_0x6a7643[_0x45c7fb(0x120)][0x0][_0x45c7fb(0x162)][_0x45c7fb(0x289)];Array[_0x45c7fb(0x356)](_0x47eb59)&&_0x47eb59[_0x45c7fb(0x105)]&&_0x346cb8['setActiveRange'](_0x47eb59[0x0]);}};_0x2def70=_0x30167f([_0x5f46f4(0x0,_0x319724[_0x4078cd(0xd6)]),_0x5f46f4(0x1,_0x23a227[_0x4078cd(0x1cc)])],_0x2def70);var _0x5f4ffe=Object[_0x4078cd(0x2dc)],_0x54d162=(_0x1fe061,_0x77629,_0x345bf6,_0x2ec90e)=>{const _0x2790f0=_0x4078cd;for(var _0x2d4e3e=_0x2ec90e>0x1?void 0x0:_0x2ec90e?_0x5f4ffe(_0x77629,_0x345bf6):_0x77629,_0x469878=_0x1fe061[_0x2790f0(0x105)]-0x1,_0x292346;_0x469878>=0x0;_0x469878--)(_0x292346=_0x1fe061[_0x469878])&&(_0x2d4e3e=_0x292346(_0x2d4e3e)||_0x2d4e3e);return _0x2d4e3e;},_0xa7fd47=(_0x4fe275,_0x4d379e)=>(_0xd24d4d,_0x27574a)=>_0x4d379e(_0xd24d4d,_0x27574a,_0x4fe275);let _0x1a1a6e=class{constructor(_0x18621a,_0x2f640,_0x7d5c9){const _0x4e5c8e=_0x4078cd;this[_0x4e5c8e(0x176)]=_0x18621a,this[_0x4e5c8e(0x1b7)]=_0x2f640,this['_docStateChangeManagerService']=_0x7d5c9;}[_0x4078cd(0x127)](_0xd914b7){const _0x97ce71=_0x4078cd;this[_0x97ce71(0x2c9)](_0xd914b7);}[_0x4078cd(0xd7)](_0x16f26a){const _0x257efa=_0x4078cd,{unitID:_0x1699c8}=_0x16f26a,{collaboration:_0x3c3a9b}=this[_0x257efa(0x1d1)][_0x257efa(0xff)](_0x1699c8);if(_0x3c3a9b[_0x257efa(0x105)]===0x0)return _0x16f26a;let _0x5a3bdf=_0x508aad[_0x257efa(0xca)][_0x257efa(0x29c)](_0x16f26a['mutations'][0x0]);for(let _0x52074b=0x0;_0x52074b<_0x3c3a9b[_0x257efa(0x105)];_0x52074b++){const _0x561765={'id':_0x257efa(0x23b),'params':{'unitId':_0x3c3a9b[_0x52074b]['unitId'],..._0x3c3a9b[_0x52074b][_0x257efa(0x29e)]}},_0x1682f9=this[_0x257efa(0x1b7)][_0x257efa(0x16e)](_0x5a3bdf,_0x561765,!0x1);if(_0x319724['isTransformMutationFailure'](_0x1682f9))throw _0x1682f9[_0x257efa(0x267)];_0x5a3bdf=_0x1682f9['m1Prime'];}return{..._0x508aad[_0x257efa(0xca)]['deepClone'](_0x16f26a),'mutations':[_0x5a3bdf]};}['_transformHistoryAndStateStack'](_0x1abb99){const _0x32d37e=_0x4078cd,{unitID:_0x323e88}=_0x1abb99,{history:_0x465f50,collaboration:_0x3018d3}=this[_0x32d37e(0x1d1)][_0x32d37e(0xff)](_0x323e88);if(_0x465f50['length']===0x0&&_0x3018d3[_0x32d37e(0x105)]===0x0)return;const _0x2d7d20=[],_0x4548b6=[];let _0x2ad157=_0x508aad['Tools'][_0x32d37e(0x29c)](_0x1abb99[_0x32d37e(0x10e)][0x0]),_0x54fafd=_0x508aad[_0x32d37e(0xca)][_0x32d37e(0x29c)](_0x1abb99[_0x32d37e(0x10e)][0x0]);for(let _0x5ba525=_0x465f50[_0x32d37e(0x105)]-0x1;_0x5ba525>=0x0;_0x5ba525--){const _0x4ce898={'id':_0x32d37e(0x23b),'params':{'unitId':_0x465f50[_0x5ba525][_0x32d37e(0x363)],..._0x465f50[_0x5ba525][_0x32d37e(0x252)]}},_0x59615c={'id':_0x32d37e(0x23b),'params':{'unitId':_0x465f50[_0x5ba525][_0x32d37e(0x363)],..._0x465f50[_0x5ba525][_0x32d37e(0x29e)]}},_0x329315=this['_transformService'][_0x32d37e(0x16e)](_0x2ad157,_0x4ce898,!0x1),_0x1ba5b4=this['_transformService'][_0x32d37e(0x16e)](_0x54fafd,_0x59615c,!0x1);if(_0x319724[_0x32d37e(0x2d6)](_0x329315))throw _0x329315[_0x32d37e(0x267)];if(_0x319724[_0x32d37e(0x2d6)](_0x1ba5b4))throw _0x1ba5b4[_0x32d37e(0x267)];_0x2d7d20[_0x32d37e(0x307)]({..._0x465f50[_0x5ba525],'undoState':_0x329315[_0x32d37e(0x120)]['params'],'redoState':_0x1ba5b4[_0x32d37e(0x120)][_0x32d37e(0x162)]}),_0x2ad157=_0x329315['m1Prime'],_0x54fafd=_0x1ba5b4[_0x32d37e(0x2aa)];}_0x2ad157=_0x508aad['Tools'][_0x32d37e(0x29c)](_0x1abb99[_0x32d37e(0x10e)][0x0]),_0x54fafd=_0x508aad[_0x32d37e(0xca)]['deepClone'](_0x1abb99['mutations'][0x0]);for(let _0x49a54c=_0x3018d3[_0x32d37e(0x105)]-0x1;_0x49a54c>=0x0;_0x49a54c--){const _0x1d1301={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3018d3[_0x49a54c][_0x32d37e(0x363)],..._0x3018d3[_0x49a54c][_0x32d37e(0x252)]}},_0x3f2765={'id':_0x32d37e(0x23b),'params':{'unitId':_0x3018d3[_0x49a54c]['unitId'],..._0x3018d3[_0x49a54c][_0x32d37e(0x29e)]}},_0x5caa5c=this[_0x32d37e(0x1b7)][_0x32d37e(0x16e)](_0x2ad157,_0x1d1301,!0x1),_0x5988a6=this[_0x32d37e(0x1b7)][_0x32d37e(0x16e)](_0x54fafd,_0x3f2765,!0x1);if(_0x319724[_0x32d37e(0x2d6)](_0x5caa5c))throw _0x5caa5c[_0x32d37e(0x267)];if(_0x319724[_0x32d37e(0x2d6)](_0x5988a6))throw _0x5988a6[_0x32d37e(0x267)];_0x4548b6[_0x32d37e(0x307)]({..._0x3018d3[_0x49a54c],'undoState':_0x5caa5c[_0x32d37e(0x120)]['params'],'redoState':_0x5988a6[_0x32d37e(0x120)][_0x32d37e(0x162)]}),_0x2ad157=_0x5caa5c[_0x32d37e(0x2aa)],_0x54fafd=_0x5988a6[_0x32d37e(0x2aa)];}this[_0x32d37e(0x1d1)][_0x32d37e(0xf7)](_0x323e88,{'history':_0x2d7d20,'collaboration':_0x4548b6});}};_0x1a1a6e=_0x54d162([_0xa7fd47(0x0,_0x508aad[_0x4078cd(0x2b3)](_0x508aad[_0x4078cd(0x2ee)])),_0xa7fd47(0x1,_0x319724[_0x4078cd(0xd6)]),_0xa7fd47(0x2,_0x508aad[_0x4078cd(0x2b3)](_0x176070[_0x4078cd(0x28a)]))],_0x1a1a6e);var _0x13f20c=Object[_0x4078cd(0x2dc)],_0x31e833=(_0x193099,_0x1b3893,_0x2ee015,_0x4fc134)=>{const _0x441b17=_0x4078cd;for(var _0x752bf2=_0x4fc134>0x1?void 0x0:_0x4fc134?_0x13f20c(_0x1b3893,_0x2ee015):_0x1b3893,_0x5a339a=_0x193099[_0x441b17(0x105)]-0x1,_0x58e4e5;_0x5a339a>=0x0;_0x5a339a--)(_0x58e4e5=_0x193099[_0x5a339a])&&(_0x752bf2=_0x58e4e5(_0x752bf2)||_0x752bf2);return _0x752bf2;},_0x5a485a=(_0x1bf634,_0x420ef7)=>(_0x4cb078,_0x5d8549)=>_0x420ef7(_0x4cb078,_0x5d8549,_0x1bf634);let _0x337fcb=class{constructor(_0x1e22ab,_0x48d335){const _0x4fa681=_0x4078cd;this[_0x4fa681(0x176)]=_0x1e22ab,this[_0x4fa681(0x1b7)]=_0x48d335;}[_0x4078cd(0x116)](_0xa17f2d){const _0x199ca1=_0x4078cd;var _0x13b336;const _0x2cef4a=this['_injector'][_0x199ca1(0x1d2)](_0x4f8728[_0x199ca1(0x2ec)]),_0x286183=(_0x13b336=_0x2cef4a[_0x199ca1(0x30d)]())!=null?_0x13b336:[];if(_0x286183[_0x199ca1(0x105)]===0x0)return;const _0x4105d0=_0xa17f2d[_0x199ca1(0x1ef)],_0xb6f65a=[{'id':_0x199ca1(0x23b),'params':{'unitId':_0x4105d0,'actions':null,'textRanges':_0x286183}}],_0x3b9f17=this['_transformService'][_0x199ca1(0x193)](_0xa17f2d,_0xb6f65a);if(!_0x319724[_0x199ca1(0x1ec)](_0x3b9f17))throw _0x3b9f17[_0x199ca1(0x267)];const _0x4e443a=_0x3b9f17[_0x199ca1(0x120)][0x0][_0x199ca1(0x162)][_0x199ca1(0x289)];Array[_0x199ca1(0x356)](_0x4e443a)&&_0x4e443a[_0x199ca1(0x105)]&&_0x2cef4a['replaceDocRanges'](_0x4e443a,{'unitId':_0x4105d0,'subUnitId':_0x4105d0},!0x1);}};_0x337fcb=_0x31e833([_0x5a485a(0x0,_0x508aad[_0x4078cd(0x2b3)](_0x508aad[_0x4078cd(0x2ee)])),_0x5a485a(0x1,_0x319724['ITransformService'])],_0x337fcb);var _0x261ed1=Object[_0x4078cd(0x2dc)],_0x5e9166=(_0x286fc3,_0x49971e,_0x53ef12,_0x4cd2cd)=>{const _0x562c2d=_0x4078cd;for(var _0x36344a=_0x4cd2cd>0x1?void 0x0:_0x4cd2cd?_0x261ed1(_0x49971e,_0x53ef12):_0x49971e,_0x23ddcd=_0x286fc3[_0x562c2d(0x105)]-0x1,_0x43442d;_0x23ddcd>=0x0;_0x23ddcd--)(_0x43442d=_0x286fc3[_0x23ddcd])&&(_0x36344a=_0x43442d(_0x36344a)||_0x36344a);return _0x36344a;},_0x4514f8=(_0x1355b1,_0x1e49d0)=>(_0x51b9cd,_0xc2c166)=>_0x1e49d0(_0x51b9cd,_0xc2c166,_0x1355b1);let _0x326afb=class extends _0x508aad[_0x4078cd(0x17e)]{constructor(_0x2c44d5,_0x5ce721,_0x5c1d68,_0x32b099,_0xbaac22,_0x3389fb,_0x51acde,_0x50cacd){const _0x5e4979=_0x4078cd;super(),_0x5e1a9d(this,'_status$',new _0x54d76a[(_0x5e4979(0x1dc))](_0x356380[_0x5e4979(0x16b)][_0x5e4979(0x242)])),(this[_0x5e4979(0x1d1)]=_0x2c44d5,this[_0x5e4979(0x1c9)]=_0x5ce721,this[_0x5e4979(0xd0)]=_0x5c1d68,this[_0x5e4979(0x236)]=_0x32b099,this[_0x5e4979(0x1b5)]=_0xbaac22,this['_docSyncEditingCollabCursorService']=_0x3389fb,this['_messageService']=_0x51acde,this[_0x5e4979(0x1d4)]=_0x50cacd,this[_0x5e4979(0x13f)]());}[_0x4078cd(0x13f)](){const _0x45ad53=_0x4078cd;this[_0x45ad53(0x2d5)](this[_0x45ad53(0x1c9)][_0x45ad53(0x183)][_0x45ad53(0x26c)](_0x1a9c6b=>{const _0x2ac44d=_0x45ad53,_0x41f59b=this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0x7867ac=>{const _0x449a66=_0x5d41;if(_0x7867ac==null)return;const {unitId:_0x1e8768,redoState:_0x548218,commandId:_0x2439db}=_0x7867ac;if(_0x1e8768!==_0x1a9c6b[_0x449a66(0x1ef)])return;const _0x4107b1={'id':_0x2439db,'type':_0x508aad[_0x449a66(0x2ea)]['MUTATION'],'params':{'unitId':_0x1e8768,'actions':_0x548218[_0x449a66(0xdb)],'textRanges':null}};_0x1a9c6b[_0x449a66(0x113)](_0x4107b1);});if(_0x1a9c6b['disposeWithMe'](_0x41f59b),_0x1a9c6b instanceof _0x356380[_0x2ac44d(0x1c7)]){const _0x2437ac={'onTransformIME':_0x2044a6=>this[_0x2ac44d(0xd0)]['transformIMECache'](_0x2044a6),'onTransformState':_0x11d2e7=>this[_0x2ac44d(0x236)][_0x2ac44d(0x127)](_0x11d2e7),'onTransformSelections':_0x397f17=>this['_docTransformSelectionsService']['transformSelections'](_0x397f17),'onSyncEditingCollabCursor':_0x19f83c=>this['_docSyncEditingCollabCursorService'][_0x2ac44d(0x141)](_0x19f83c),'onTransformRemoteChangesetByIMECache':_0x379734=>this[_0x2ac44d(0xd0)]['transformRemoteChangeset'](_0x379734),'onTransformRemoteChangesetByStateCache':_0x209e1f=>this[_0x2ac44d(0x236)]['transformRemoteChangeset'](_0x209e1f)};_0x1a9c6b['addHandlerCallback'](_0x2437ac);}}));}};_0x326afb=_0x5e9166([_0x4514f8(0x0,_0x508aad[_0x4078cd(0x2b3)](_0x176070[_0x4078cd(0x28a)])),_0x4514f8(0x1,_0x508aad['Inject'](_0x356380[_0x4078cd(0x1da)])),_0x4514f8(0x2,_0x508aad[_0x4078cd(0x2b3)](_0x2def70)),_0x4514f8(0x3,_0x508aad[_0x4078cd(0x2b3)](_0x1a1a6e)),_0x4514f8(0x4,_0x508aad[_0x4078cd(0x2b3)](_0x337fcb)),_0x4514f8(0x5,_0x508aad['Inject'](_0x3f1775)),_0x4514f8(0x6,_0x5c74c1['IMessageService']),_0x4514f8(0x7,_0x508aad[_0x4078cd(0x2b3)](_0x508aad[_0x4078cd(0x365)]))],_0x326afb);var _0x165961=Object[_0x4078cd(0x2dc)],_0x5d1f83=(_0x46025b,_0x425125,_0x8886e5,_0x22292d)=>{const _0x2f7ccf=_0x4078cd;for(var _0x3f2295=_0x22292d>0x1?void 0x0:_0x22292d?_0x165961(_0x425125,_0x8886e5):_0x425125,_0x198539=_0x46025b[_0x2f7ccf(0x105)]-0x1,_0x13fc39;_0x198539>=0x0;_0x198539--)(_0x13fc39=_0x46025b[_0x198539])&&(_0x3f2295=_0x13fc39(_0x3f2295)||_0x3f2295);return _0x3f2295;},_0x2af7a9=(_0x287332,_0x4782a8)=>(_0x2f7cc4,_0x1658f9)=>_0x4782a8(_0x2f7cc4,_0x1658f9,_0x287332);let _0x2cd874=class extends _0x508aad[_0x4078cd(0x17e)]{constructor(_0x3127ad,_0x32da08,_0x259f31){const _0x5c06b3=_0x4078cd;super(),_0x5e1a9d(this,_0x5c06b3(0x1bb),new Map()),_0x5e1a9d(this,'_saveTaskMap',new Map()),_0x5e1a9d(this,'_disabled',!0x1),(this[_0x5c06b3(0x274)]=_0x3127ad,this['_localStorageService']=_0x32da08,this[_0x5c06b3(0x21e)]=_0x259f31);}[_0x4078cd(0x1f4)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x9d37f2=_0x4078cd;this[_0x9d37f2(0x2b8)]=!0x1;}get[_0x4078cd(0x1d8)](){const _0x447fcd=_0x4078cd;return this[_0x447fcd(0x175)];}[_0x4078cd(0x2e1)](){const _0x155ba5=_0x4078cd;this[_0x155ba5(0xd9)]()[_0x155ba5(0x337)](()=>super[_0x155ba5(0x2e1)]());}async[_0x4078cd(0x19b)](_0xff1763){const _0x30d595=_0x4078cd;return this[_0x30d595(0x2b8)]?null:this['_localStorageService']['getItem'](_0x356380[_0x30d595(0x218)](_0xff1763));}async[_0x4078cd(0x325)](_0x1e3b11,_0x22d1ca){const _0x530479=_0x4078cd;return!!this[_0x530479(0x158)][_0x530479(0x357)](_0x1e3b11,_0x22d1ca);}[_0x4078cd(0x223)](_0x41f074,_0x5cbc17,_0xab62d1,_0x35d53a){const _0x1603db=_0x4078cd,_0x4e1e8d=this[_0x1603db(0x21e)][_0x1603db(0x152)](_0x41f074);this[_0x1603db(0x1bb)][_0x1603db(0x270)](_0x41f074,{'unitID':_0x41f074,'type':_0x5cbc17,'awaitingChangeset':_0xab62d1,'mutations':_0x35d53a,'rev':_0x4e1e8d}),this['_saveTaskMap']['has'](_0x41f074)||this['_scheduleSaving'](_0x41f074);}[_0x4078cd(0x2e0)](_0x1b409d){const _0x2d0d5e=_0x4078cd,_0x561ed8=this['_getSaveTimeout']();_0x561ed8===0x0?this[_0x2d0d5e(0x15d)](_0x1b409d):this['_saveTaskMap']['set'](_0x1b409d,setTimeout(()=>this['_saveCache'](_0x1b409d),_0x561ed8));}['_getSaveTimeout'](){const _0x32e6f4=_0x4078cd;var _0x9091d1;return(_0x9091d1=this[_0x32e6f4(0x274)][_0x32e6f4(0x24b)](_0x356380['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x9091d1:_0x356380[_0x32e6f4(0x2ce)];}[_0x4078cd(0x15d)](_0x5f02e6){const _0x23aa51=_0x4078cd,_0x48edfa=this[_0x23aa51(0x175)][_0x23aa51(0x1d2)](_0x5f02e6);return _0x48edfa!==void 0x0&&window[_0x23aa51(0x297)](_0x48edfa),this[_0x23aa51(0x158)][_0x23aa51(0x357)](_0x356380[_0x23aa51(0x218)](_0x5f02e6),this[_0x23aa51(0x1bb)][_0x23aa51(0x1d2)](_0x5f02e6))[_0x23aa51(0x337)](()=>this['_saveTaskMap'][_0x23aa51(0x204)](_0x5f02e6));}async[_0x4078cd(0xd9)](){const _0x3a2ada=_0x4078cd,_0x2e6539=[];this[_0x3a2ada(0x175)]['forEach']((_0x4425ad,_0xdbfe44)=>{const _0x266799=_0x3a2ada;window[_0x266799(0x297)](_0x4425ad),_0x2e6539[_0x266799(0x29b)](this[_0x266799(0x15d)](_0xdbfe44)['then'](()=>{const _0x3627df=_0x266799;this[_0x3627df(0x175)][_0x3627df(0x204)](_0xdbfe44);}));}),await Promise['all'](_0x2e6539);}};_0x2cd874=_0x5d1f83([_0x2af7a9(0x0,_0x508aad[_0x4078cd(0x247)]),_0x2af7a9(0x1,_0x508aad['ILocalStorageService']),_0x2af7a9(0x2,_0x508aad['Inject'](_0x319724[_0x4078cd(0x228)]))],_0x2cd874);class _0x59a3a5 extends _0x508aad[_0x4078cd(0x216)]{constructor(){const _0x1be2c4=_0x4078cd;super(),_0x5e1a9d(this,'urlChange$'),this['urlChange$']=_0x54d76a[_0x1be2c4(0x1f0)](window,_0x1be2c4(0x317))[_0x1be2c4(0x261)](_0x54d76a[_0x1be2c4(0x24d)](this[_0x1be2c4(0xec)]),_0x54d76a[_0x1be2c4(0x14a)](0x1),_0x54d76a['mapTo'](void 0x0));}['setParam'](_0x56e028,_0x3cc39f,_0x7b1db8=!0x1){const _0xe838b1=_0x4078cd,_0x3b60dc=new URL(window['location'][_0xe838b1(0x1cf)]);_0x3b60dc['searchParams'][_0xe838b1(0x270)](_0x56e028,_0x3cc39f),_0x7b1db8?window[_0xe838b1(0x198)][_0xe838b1(0x18b)]('','',_0x3b60dc['toString']()):window[_0xe838b1(0x198)][_0xe838b1(0x233)]('','',_0x3b60dc[_0xe838b1(0x1f2)]());}[_0x4078cd(0x171)](_0x349d44,_0x2d163e=!0x1){const _0x538cb3=_0x4078cd,_0x396c0a=new URL(window[_0x538cb3(0x26b)][_0x538cb3(0x1cf)]);_0x396c0a[_0x538cb3(0xfd)][_0x538cb3(0x204)](_0x349d44),_0x2d163e?window['history'][_0x538cb3(0x18b)]('','',_0x396c0a['toString']()):window[_0x538cb3(0x198)][_0x538cb3(0x233)]('','',_0x396c0a[_0x538cb3(0x1f2)]());}[_0x4078cd(0xdc)](_0x46cca7){const _0x4dd48a=_0x4078cd;var _0x2c6471;return(_0x2c6471=new URL(window[_0x4dd48a(0x26b)]['href'])[_0x4dd48a(0xfd)][_0x4dd48a(0x1d2)](_0x46cca7))!=null?_0x2c6471:void 0x0;}}var _0x252d5b=Object['defineProperty'],_0x135256=Object[_0x4078cd(0x2dc)],_0x121d70=(_0x113b24,_0x1f1794,_0x39b21f)=>_0x1f1794 in _0x113b24?_0x252d5b(_0x113b24,_0x1f1794,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39b21f}):_0x113b24[_0x1f1794]=_0x39b21f,_0x3c12ac=(_0x4e141e,_0x38355f,_0x37e1e1,_0x3e51ca)=>{const _0xde328d=_0x4078cd;for(var _0x47c499=_0x3e51ca>0x1?void 0x0:_0x3e51ca?_0x135256(_0x38355f,_0x37e1e1):_0x38355f,_0x1f22e3=_0x4e141e[_0xde328d(0x105)]-0x1,_0x55db4c;_0x1f22e3>=0x0;_0x1f22e3--)(_0x55db4c=_0x4e141e[_0x1f22e3])&&(_0x47c499=_0x55db4c(_0x47c499)||_0x47c499);return _0x47c499;},_0x1b819c=(_0x33b91d,_0x20d94f)=>(_0x212bb5,_0x694cc)=>_0x20d94f(_0x212bb5,_0x694cc,_0x33b91d),_0x3d450b=(_0xa5fd8d,_0x51aa63,_0x2ea063)=>_0x121d70(_0xa5fd8d,_0x51aa63+'',_0x2ea063);const _0x545fd0='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x5e0019[_0x4078cd(0x199)]=class extends _0x508aad[_0x4078cd(0x280)]{constructor(_0x2cc866=_0x5997a3,_0x1bf578,_0x460ea9,_0x482d14){const _0x14d76d=_0x4078cd;super(),this[_0x14d76d(0x292)]=_0x2cc866,this['_renderManagerService']=_0x1bf578,this['_injector']=_0x460ea9,this['_configService']=_0x482d14;const {..._0x3e5937}=_0x508aad[_0x14d76d(0x200)]({},_0x5997a3,this['_config']);this[_0x14d76d(0x274)][_0x14d76d(0x1ab)](_0x59c331,_0x3e5937);}[_0x4078cd(0x185)](){const _0x4424f4=_0x4078cd;this[_0x4424f4(0x177)](),this['_initDependencies']();}[_0x4078cd(0x101)](){const _0x1e89aa=_0x4078cd;this[_0x1e89aa(0x330)]();}['_registerDependencies'](){const _0x196ee2=_0x4078cd;var _0x3924d3;const _0x1fa725=[[_0x3785e5],[_0x337fcb],[_0x2def70],[_0x1a1a6e],[_0x3f1775],[_0x5066f6,{'useClass':_0x59a3a5}],[_0x415d26['ISocketService'],{'useClass':_0x415d26[_0x196ee2(0x229)]}],[_0x356380['ILocalCacheService'],{'useClass':_0x2cd874}],[_0x5e0019[_0x196ee2(0x358)]],[_0x326afb],[_0x1a7c60],[_0x3f4f06],[_0x2de5c8],[_0x5e0019[_0x196ee2(0x1a2)]]];_0x508aad['registerDependencies'](this[_0x196ee2(0x176)],_0x508aad[_0x196ee2(0x142)](_0x1fa725,(_0x3924d3=this[_0x196ee2(0x292)])==null?void 0x0:_0x3924d3[_0x196ee2(0x2a3)]));}[_0x4078cd(0x330)](){const _0x2d1900=_0x4078cd;this[_0x2d1900(0x2d5)](this[_0x2d1900(0x111)][_0x2d1900(0x12b)](_0x508aad[_0x2d1900(0x303)][_0x2d1900(0x23c)],[_0x2ab1c7])),this[_0x2d1900(0x2d5)](this[_0x2d1900(0x111)][_0x2d1900(0x12b)](_0x508aad[_0x2d1900(0x303)][_0x2d1900(0x2ac)],[_0x2a5217]));}['_initDependencies'](){const _0x41d4d4=_0x4078cd;_0x508aad[_0x41d4d4(0x2c5)](this[_0x41d4d4(0x176)],[[_0x3f4f06],[_0x5e0019['DesktopCollaborationStatusDisplayController']],[_0x326afb],[_0x1a7c60],[_0x5e0019[_0x41d4d4(0x1a2)]]]);}},_0x3d450b(_0x5e0019[_0x4078cd(0x199)],_0x4078cd(0x11c),_0x545fd0),_0x5e0019[_0x4078cd(0x199)]=_0x3c12ac([_0x508aad[_0x4078cd(0x31b)](_0x356380['UniverCollaborationClientPlugin']),_0x1b819c(0x1,_0x23a227[_0x4078cd(0x1cc)]),_0x1b819c(0x2,_0x508aad[_0x4078cd(0x2b3)](_0x508aad['Injector'])),_0x1b819c(0x3,_0x508aad[_0x4078cd(0x247)])],_0x5e0019[_0x4078cd(0x199)]);var _0x173526=Object['getOwnPropertyDescriptor'],_0x569edd=(_0x50ffdc,_0x5438da,_0x5aa1c0,_0x205972)=>{const _0x59dbc0=_0x4078cd;for(var _0x1b3223=_0x205972>0x1?void 0x0:_0x205972?_0x173526(_0x5438da,_0x5aa1c0):_0x5438da,_0x18a98e=_0x50ffdc[_0x59dbc0(0x105)]-0x1,_0x5cf547;_0x18a98e>=0x0;_0x18a98e--)(_0x5cf547=_0x50ffdc[_0x18a98e])&&(_0x1b3223=_0x5cf547(_0x1b3223)||_0x1b3223);return _0x1b3223;},_0x27caf5=(_0x1f1a9e,_0x34327f)=>(_0x4909cf,_0x558175)=>_0x34327f(_0x4909cf,_0x558175,_0x1f1a9e);_0x5e0019[_0x4078cd(0xfe)]=class extends _0x356380['CollaborationSocketService']{constructor(_0x2eae32,_0x247ba7,_0x5f05c9,_0x50b82e,_0x41db80){super(_0x2eae32,_0x247ba7,_0x5f05c9,_0x50b82e,_0x41db80);}async[_0x4078cd(0x275)](_0x5a2c92){const _0x56693c=_0x4078cd,_0x289d98=await this[_0x56693c(0x2c7)](),_0x5b42c8=this['_createSocketURL'](_0x5a2c92,_0x289d98);return this[_0x56693c(0x2d8)](_0x5b42c8);}[_0x4078cd(0x27d)](_0x1862d5,_0x583bef){const _0x3e8372=_0x4078cd,_0x21a898=typeof window>'u'?new URL(_0x1862d5):new URL(_0x1862d5,window[_0x3e8372(0x26b)]['origin']);_0x21a898[_0x3e8372(0xfd)][_0x3e8372(0x270)](_0x3e8372(0x1f3),_0x583bef);const _0x5f03ae=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3e8372(0x26b)][_0x3e8372(0x1cd)]);return _0x5f03ae[_0x3e8372(0x1d2)](_0x3e8372(0x34a))&&_0x21a898['searchParams'][_0x3e8372(0x270)](_0x3e8372(0x34a),_0x5f03ae[_0x3e8372(0x1d2)](_0x3e8372(0x34a))),_0x21a898[_0x3e8372(0x1f2)]();}async[_0x4078cd(0x2c7)](){const _0x15b4bf=_0x4078cd;var _0x58779f,_0x40721d,_0x239e09;const _0x2eb0c3=this[_0x15b4bf(0x274)]['getConfig'](_0x356380['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x2c54b6=(_0x58779f=_0x2eb0c3==null?void 0x0:_0x2eb0c3[_0x15b4bf(0x191)])!=null?_0x58779f:_0x356380[_0x15b4bf(0x2a2)];return(_0x239e09=(_0x40721d=(await this['_httpService'][_0x15b4bf(0x1d2)](_0x2c54b6,{'headers':{'Content-Type':'application/json'}}))[_0x15b4bf(0x31e)])==null?void 0x0:_0x40721d['ticket'])!=null?_0x239e09:'';}},_0x5e0019['BrowserCollaborationSocketService']=_0x569edd([_0x27caf5(0x0,_0x508aad[_0x4078cd(0x2b3)](_0x508aad['Injector'])),_0x27caf5(0x1,_0x508aad[_0x4078cd(0x2b3)](_0x415d26[_0x4078cd(0x212)])),_0x27caf5(0x2,_0x508aad['IConfigService']),_0x27caf5(0x3,_0x508aad[_0x4078cd(0x30c)]),_0x27caf5(0x4,_0x319724['ISnapshotServerService'])],_0x5e0019[_0x4078cd(0xfe)]);var _0x42c9af=(_0x74e56b=>(_0x74e56b[_0x74e56b[_0x4078cd(0x2bb)]=0x0]=_0x4078cd(0x2bb),_0x74e56b[_0x74e56b['OK']=0x1]='OK',_0x74e56b[_0x74e56b[_0x4078cd(0x287)]=0x2]=_0x4078cd(0x287),_0x74e56b[_0x74e56b['PERMISSION_DENIED']=0x3]=_0x4078cd(0xd1),_0x74e56b[_0x74e56b[_0x4078cd(0x27b)]=0x4]='NOT_FOUND',_0x74e56b[_0x74e56b[_0x4078cd(0xe4)]=0x5]=_0x4078cd(0xe4),_0x74e56b[_0x74e56b[_0x4078cd(0x154)]=0x6]=_0x4078cd(0x154),_0x74e56b[_0x74e56b[_0x4078cd(0x164)]=0x7]=_0x4078cd(0x164),_0x74e56b[_0x74e56b[_0x4078cd(0x1ae)]=0x8]=_0x4078cd(0x1ae),_0x74e56b[_0x74e56b[_0x4078cd(0x103)]=0x9]='COMPLETION_FINISHED',_0x74e56b[_0x74e56b[_0x4078cd(0x313)]=0xa]=_0x4078cd(0x313),_0x74e56b[_0x74e56b['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x4078cd(0x16a),_0x74e56b[_0x74e56b[_0x4078cd(0x169)]=0xc]=_0x4078cd(0x169),_0x74e56b[_0x74e56b[_0x4078cd(0xe0)]=0xd]=_0x4078cd(0xe0),_0x74e56b[_0x74e56b[_0x4078cd(0x1bf)]=0xe]=_0x4078cd(0x1bf),_0x74e56b[_0x74e56b['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4078cd(0x188),_0x74e56b[_0x74e56b[_0x4078cd(0x146)]=0x1771]=_0x4078cd(0x146),_0x74e56b[_0x74e56b[_0x4078cd(0x285)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x74e56b[_0x74e56b[_0x4078cd(0x153)]=0x1773]=_0x4078cd(0x153),_0x74e56b[_0x74e56b[_0x4078cd(0x34b)]=0x1b59]='APPLY_REJECT',_0x74e56b[_0x74e56b[_0x4078cd(0x19c)]=0x1b5a]=_0x4078cd(0x19c),_0x74e56b[_0x74e56b[_0x4078cd(0x323)]=0x1b5b]=_0x4078cd(0x323),_0x74e56b[_0x74e56b[_0x4078cd(0x320)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x74e56b[_0x74e56b[_0x4078cd(0x16c)]=0x1b5d]=_0x4078cd(0x16c),_0x74e56b[_0x74e56b['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4078cd(0xe8),_0x74e56b[_0x74e56b[_0x4078cd(0x15e)]=0x2329]=_0x4078cd(0x15e),_0x74e56b[_0x74e56b['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x4078cd(0x33b),_0x74e56b[_0x74e56b[_0x4078cd(0x2dd)]=0x232b]=_0x4078cd(0x2dd),_0x74e56b[_0x74e56b[_0x4078cd(0xd4)]=0x232c]=_0x4078cd(0xd4),_0x74e56b[_0x74e56b[_0x4078cd(0x30b)]=0x232d]=_0x4078cd(0x30b),_0x74e56b[_0x74e56b[_0x4078cd(0xc8)]=0x2711]=_0x4078cd(0xc8),_0x74e56b[_0x74e56b[_0x4078cd(0x29f)]=0x2712]=_0x4078cd(0x29f),_0x74e56b[_0x74e56b[_0x4078cd(0x220)]=0x2713]=_0x4078cd(0x220),_0x74e56b[_0x74e56b[_0x4078cd(0x341)]=0x2714]=_0x4078cd(0x341),_0x74e56b[_0x74e56b[_0x4078cd(0x1c3)]=0x271a]=_0x4078cd(0x1c3),_0x74e56b[_0x74e56b[_0x4078cd(0x1d6)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x74e56b[_0x74e56b[_0x4078cd(0x305)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x74e56b[_0x74e56b[_0x4078cd(0x130)]=0x271d]=_0x4078cd(0x130),_0x74e56b[_0x74e56b[_0x4078cd(0x2c4)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x74e56b[_0x74e56b[_0x4078cd(0x2f7)]=0x271f]=_0x4078cd(0x2f7),_0x74e56b[_0x74e56b[_0x4078cd(0x10b)]=0x2720]=_0x4078cd(0x10b),_0x74e56b[_0x74e56b['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4078cd(0x17f),_0x74e56b[_0x74e56b[_0x4078cd(0x117)]=0x2ee1]=_0x4078cd(0x117),_0x74e56b[_0x74e56b[_0x4078cd(0x2e6)]=0x2ee2]=_0x4078cd(0x2e6),_0x74e56b[_0x74e56b[_0x4078cd(0x2f5)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x74e56b[_0x74e56b[_0x4078cd(0x2df)]=0x2ee4]=_0x4078cd(0x2df),_0x74e56b[_0x74e56b[_0x4078cd(0x179)]=0x2ee5]=_0x4078cd(0x179),_0x74e56b[_0x74e56b[_0x4078cd(0x224)]=0x32c9]=_0x4078cd(0x224),_0x74e56b[_0x74e56b[_0x4078cd(0x258)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x74e56b[_0x74e56b['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4078cd(0x173),_0x74e56b[_0x74e56b['UNRECOGNIZED']=-0x1]=_0x4078cd(0x277),_0x74e56b))(_0x42c9af||{}),_0x3aad29=Object['getOwnPropertyDescriptor'],_0x1e0f98=(_0x1d38ac,_0xa4c4eb,_0x533802,_0x3c5dec)=>{const _0x494460=_0x4078cd;for(var _0xea2ac9=_0x3c5dec>0x1?void 0x0:_0x3c5dec?_0x3aad29(_0xa4c4eb,_0x533802):_0xa4c4eb,_0xcfce18=_0x1d38ac[_0x494460(0x105)]-0x1,_0x9cce74;_0xcfce18>=0x0;_0xcfce18--)(_0x9cce74=_0x1d38ac[_0xcfce18])&&(_0xea2ac9=_0x9cce74(_0xea2ac9)||_0xea2ac9);return _0xea2ac9;},_0x5d6c66=(_0x233ddc,_0x45a536)=>(_0x242622,_0x31fd0b)=>_0x45a536(_0x242622,_0x31fd0b,_0x233ddc);_0x5e0019[_0x4078cd(0x2fb)]=class extends _0x508aad[_0x4078cd(0x17e)]{constructor(_0x404cb8,_0x237b0f,_0x12e696){const _0x2f1908=_0x4078cd;super(),this[_0x2f1908(0xf6)]=_0x404cb8,this[_0x2f1908(0x2c0)]=_0x237b0f,this['_configService']=_0x12e696;}async[_0x4078cd(0x1a1)](_0x5cf3a3,_0x3313a7,_0x2232bc,..._0x37e5f0){const _0x34fbaf=_0x4078cd;var _0xa9de64,_0x27dc6e,_0x532e7a,_0x23b54d;const _0x4f1dc6=this[_0x34fbaf(0xf6)]['getFocusedUnit']();if(!_0x4f1dc6)throw new Error(_0x34fbaf(0x13d));const _0x1bfddd=((_0xa9de64=this[_0x34fbaf(0x274)]['getConfig'](_0x356380['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0xa9de64:_0x356380[_0x34fbaf(0x1f8)])+'/'+_0x5cf3a3+_0x34fbaf(0x208)+_0x3313a7,_0x5df991=new URL(window[_0x34fbaf(0x26b)][_0x34fbaf(0x1cf)]),_0x4442fd={'scriptId':_0x5cf3a3,'runId':(_0x27dc6e=_0x5df991[_0x34fbaf(0xfd)]['get'](_0x34fbaf(0x34a)))!=null?_0x27dc6e:'','function':_0x3313a7,'unitId':_0x4f1dc6['getUnitId'](),'argsOfFunction':JSON[_0x34fbaf(0xcb)](_0x37e5f0),'invokeId':(_0x532e7a=_0x2232bc['invokeId'])!=null?_0x532e7a:'','executionId':(_0x23b54d=_0x2232bc[_0x34fbaf(0x33c)])!=null?_0x23b54d:''};try{const _0xaa377c=await this['_httpService'][_0x34fbaf(0x2b9)](_0x1bfddd,{'body':_0x4442fd});return _0xaa377c['body'][_0x34fbaf(0x267)]&&_0xaa377c['body'][_0x34fbaf(0x267)][_0x34fbaf(0x2a5)]!==_0x42c9af['OK']?'Failed':_0xaa377c[_0x34fbaf(0x31e)][_0x34fbaf(0x14f)];}catch{return'Failed';}}},_0x5e0019[_0x4078cd(0x2fb)]=_0x1e0f98([_0x5d6c66(0x0,_0x508aad[_0x4078cd(0x263)]),_0x5d6c66(0x1,_0x508aad[_0x4078cd(0x2b3)](_0x415d26[_0x4078cd(0x212)])),_0x5d6c66(0x2,_0x508aad[_0x4078cd(0x247)])],_0x5e0019['RemoteUniscriptService']);const _0xcd14cf=0x7530,_0x18b251=_0x4078cd(0x12e);class _0x54fe8b extends _0x508aad[_0x4078cd(0x17e)]{constructor(){const _0x486f0f=_0x4078cd;super(),_0x5e1a9d(this,_0x486f0f(0x1de),_0x508aad['generateRandomId']()),_0x5e1a9d(this,'_selfUnitIDs',new Set()),_0x5e1a9d(this,'_unitOnClients',new Map()),_0x5e1a9d(this,'_heartbeatTimer',null),_0x5e1a9d(this,_0x486f0f(0x14b),new Map()),_0x5e1a9d(this,_0x486f0f(0x344),new Map()),this[_0x486f0f(0x1ee)]();}[_0x4078cd(0x2e1)](){const _0x20cd50=_0x4078cd;super[_0x20cd50(0x2e1)](),this['_clearOtherTimers'][_0x20cd50(0x346)]((_0x1576f0,_0x5dd773)=>this['_removeClearOtherTimer'](_0x5dd773)),this[_0x20cd50(0x318)]&&window[_0x20cd50(0x132)](this['_heartbeatTimer']);}[_0x4078cd(0x25d)](_0x21f79e){const _0x52c514=_0x4078cd;return this[_0x52c514(0x123)](_0x21f79e)['pipe'](_0x54d76a[_0x52c514(0x25a)]());}[_0x4078cd(0x14c)](_0x41682b){const _0x2913e8=_0x4078cd;this[_0x2913e8(0x136)][_0x2913e8(0x26f)]===0x0&&this[_0x2913e8(0x114)](),this[_0x2913e8(0x136)][_0x2913e8(0xe7)](_0x41682b),this[_0x2913e8(0x131)]({'type':0x0,'memberID':this[_0x2913e8(0x1de)],'unitIDs':[_0x41682b],'isForwarded':!0x1});}[_0x4078cd(0x181)](_0x526021){const _0xa84461=_0x4078cd;this[_0xa84461(0x136)]['delete'](_0x526021),this[_0xa84461(0x136)][_0xa84461(0x26f)]===0x0&&this[_0xa84461(0x318)]&&window[_0xa84461(0x132)](this[_0xa84461(0x318)]);}[_0x4078cd(0x1ee)](){const _0xdd59be=_0x4078cd;this[_0xdd59be(0x2d5)](_0x508aad[_0xdd59be(0x11d)](_0x54d76a[_0xdd59be(0x1f0)](window,'storage')[_0xdd59be(0x26c)](_0x29cc75=>{const _0xd9a650=_0xdd59be;if(_0x29cc75[_0xd9a650(0x327)]!==_0x18b251||!_0x29cc75[_0xd9a650(0xe6)])return;const _0x1fe1f8=JSON['parse'](_0x29cc75[_0xd9a650(0xe6)]);this['_handleEvent'](_0x1fe1f8);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0xdd59be(0x1de)],'unitIDs':Array[_0xdd59be(0x343)](this['_selfUnitIDs'])}));}[_0x4078cd(0x35a)](_0x26cb9a){const _0x5c8901=_0x4078cd;switch(_0x26cb9a['type']){case 0x0:this[_0x5c8901(0x194)](_0x26cb9a);break;case 0x1:this[_0x5c8901(0x166)](_0x26cb9a);break;case 0x2:this[_0x5c8901(0x25b)](_0x26cb9a);break;}}[_0x4078cd(0x194)](_0x39924d){const _0xf4f693=_0x4078cd,{unitIDs:_0x45e041,memberID:_0xf0dca5,isForwarded:_0x7a1315}=_0x39924d;_0x45e041[_0xf4f693(0x346)](_0x34b085=>{const _0x2d3605=_0xf4f693;if(!_0x7a1315&&this[_0x2d3605(0x253)][_0x2d3605(0x12a)](_0x34b085)&&this['_ensureSubject'](_0x34b085)[_0x2d3605(0x1f9)](_0x356380[_0x2d3605(0x22f)][_0x2d3605(0x336)]),!this['_unitOnClients']['has'](_0x34b085)||!this[_0x2d3605(0x253)][_0x2d3605(0x1d2)](_0x34b085)[_0x2d3605(0x12a)](_0xf0dca5)){const _0x35f8b5=this['_unitOnClients'][_0x2d3605(0x1d2)](_0x34b085)||new Set();_0x35f8b5[_0x2d3605(0xe7)](_0xf0dca5),this[_0x2d3605(0x253)]['set'](_0x34b085,_0x35f8b5),this['_scheduleClearOtherTimer'](_0xf0dca5);}}),_0x7a1315||this[_0xf4f693(0x131)]({'type':0x0,'memberID':this[_0xf4f693(0x1de)],'unitIDs':[...this[_0xf4f693(0x136)]],'isForwarded':!0x0});}[_0x4078cd(0x1ff)](_0x5be83b){const _0x2bc338=_0x4078cd;this[_0x2bc338(0x1c6)](_0x5be83b);const _0x5230f5=window[_0x2bc338(0x265)](()=>{const _0x25ef81=_0x2bc338;this[_0x25ef81(0x253)][_0x25ef81(0x346)](_0x2b5061=>{const _0x1d3751=_0x25ef81;_0x2b5061[_0x1d3751(0x204)](_0x5be83b);});},_0xcd14cf*0x2);this[_0x2bc338(0x14b)][_0x2bc338(0x270)](_0x5be83b,_0x5230f5);}[_0x4078cd(0x1c6)](_0x1505b1){const _0x1c226f=_0x4078cd;if(this['_clearOtherTimers'][_0x1c226f(0x12a)](_0x1505b1)){const _0x37b9f4=this['_clearOtherTimers']['get'](_0x1505b1);_0x37b9f4&&window[_0x1c226f(0x297)](_0x37b9f4),this[_0x1c226f(0x14b)][_0x1c226f(0x270)](_0x1505b1,null);}}[_0x4078cd(0x166)](_0x3ad159){const _0x5a18a9=_0x4078cd,{memberID:_0x4d0451,unitIDs:_0x3a85d5}=_0x3ad159;_0x3a85d5[_0x5a18a9(0x346)](_0x47c651=>{const _0x2d6a05=_0x5a18a9;var _0x1ebf37;const _0x37a261=this[_0x2d6a05(0x253)]['get'](_0x47c651);_0x37a261&&(_0x37a261[_0x2d6a05(0x204)](_0x4d0451),(_0x1ebf37=this[_0x2d6a05(0x123)](_0x47c651))==null||_0x1ebf37[_0x2d6a05(0x1f9)](_0x37a261['size']===0x0?_0x356380['UnitStatus'][_0x2d6a05(0x129)]:_0x356380['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x4d0451);}[_0x4078cd(0x25b)](_0x4e124d){const _0x5c9be4=_0x4078cd;this[_0x5c9be4(0x1ff)](_0x4e124d[_0x5c9be4(0x240)]);}[_0x4078cd(0x131)](_0x8ffa7b){localStorage['setItem'](_0x18b251,JSON['stringify'](_0x8ffa7b));}['_scheduleHeartbeat'](){const _0x45eec7=_0x4078cd;this['_heartbeatTimer']=window[_0x45eec7(0x213)](()=>{const _0xf4169f=_0x45eec7;this[_0xf4169f(0x131)]({'type':0x2,'memberID':this[_0xf4169f(0x1de)]});},_0xcd14cf);}[_0x4078cd(0x123)](_0x119bab){const _0x3260ac=_0x4078cd;return this['_unitStatus'][_0x3260ac(0x12a)](_0x119bab)||this[_0x3260ac(0x344)][_0x3260ac(0x270)](_0x119bab,new _0x54d76a['BehaviorSubject'](_0x356380[_0x3260ac(0x22f)][_0x3260ac(0x129)])),this[_0x3260ac(0x344)]['get'](_0x119bab);}}_0x5e0019[_0x4078cd(0x264)]=_0x5066f6,_0x5e0019[_0x4078cd(0x2cb)]=_0x48ed76,_0x5e0019[_0x4078cd(0x2f4)]=_0x54fe8b,_0x5e0019[_0x4078cd(0x20d)]=_0x59a3a5,Object[_0x4078cd(0xc9)](_0x5e0019,Symbol[_0x4078cd(0x100)],{'value':_0x4078cd(0x2f8)});}));