@univerjs-pro/collaboration-client-ui 0.12.0-nightly.202511220628 → 0.12.1-nightly.202511221011
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x13f674=_0x2045;(function(_0x41feb5,_0x504631){const _0x407333=_0x2045,_0x111541=_0x41feb5();while(!![]){try{const _0x198654=-parseInt(_0x407333(0x308))/0x1+parseInt(_0x407333(0xfb))/0x2+-parseInt(_0x407333(0x37a))/0x3+parseInt(_0x407333(0x179))/0x4+parseInt(_0x407333(0x369))/0x5*(parseInt(_0x407333(0x353))/0x6)+parseInt(_0x407333(0x29f))/0x7*(-parseInt(_0x407333(0xec))/0x8)+parseInt(_0x407333(0x133))/0x9;if(_0x198654===_0x504631)break;else _0x111541['push'](_0x111541['shift']());}catch(_0x14c35d){_0x111541['push'](_0x111541['shift']());}}}(_0x1295,0x65ef9));var Xe=Object[_0x13f674(0x180)],Ke=(_0x2a9976,_0x423ffd,_0x3e6ab6)=>_0x423ffd in _0x2a9976?Xe(_0x2a9976,_0x423ffd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e6ab6}):_0x2a9976[_0x423ffd]=_0x3e6ab6,_=(_0x43e180,_0x2d4459,_0x22269f)=>Ke(_0x43e180,typeof _0x2d4459!=_0x13f674(0x24f)?_0x2d4459+'':_0x2d4459,_0x22269f);Object['defineProperty'](exports,Symbol[_0x13f674(0x14f)],{'value':_0x13f674(0x199)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x2913aa,..._0x5af0e5}){const _0x374713=_0x13f674,{icon:_0x5362f6,id:_0x516d02,className:_0x344ba4,extend:_0x281ff6,..._0x4d20a6}=_0x5af0e5,_0x1e68e2=(_0x374713(0x225)+_0x516d02+'\x20'+(_0x344ba4||''))['trim'](),_0x53a17f=A['useRef']('_'+Qe());return $e(_0x5362f6,''+_0x516d02,{'defIds':_0x5362f6['defIds'],'idSuffix':_0x53a17f[_0x374713(0x16b)]},{'ref':_0x2913aa,'className':_0x1e68e2,..._0x4d20a6},_0x281ff6);}function $e(_0x2af29b,_0x1e0b82,_0x2ff443,_0x14babb,_0x5f5536){const _0x40a2f0=_0x13f674;return A[_0x40a2f0(0x1a2)](_0x2af29b['tag'],{'key':_0x1e0b82,...Je(_0x2af29b,_0x2ff443,_0x5f5536),..._0x14babb},(Ze(_0x2af29b,_0x2ff443)[_0x40a2f0(0x344)]||[])[_0x40a2f0(0x10a)]((_0x30ba08,_0x5d6f76)=>$e(_0x30ba08,_0x1e0b82+'-'+_0x2af29b[_0x40a2f0(0x37b)]+'-'+_0x5d6f76,_0x2ff443,void 0x0,_0x5f5536)));}function Je(_0x7f9abe,_0xca0d37,_0x98a10a){const _0x358067=_0x13f674,_0x203df7={..._0x7f9abe[_0x358067(0x2bb)]};_0x98a10a!=null&&_0x98a10a[_0x358067(0x1f2)]&&_0x203df7[_0x358067(0x152)]===_0x358067(0x1f2)&&(_0x203df7[_0x358067(0x152)]=_0x98a10a[_0x358067(0x1f2)]),_0x7f9abe['tag']==='mask'&&_0x203df7['id']&&(_0x203df7['id']=_0x203df7['id']+_0xca0d37[_0x358067(0x31a)]),Object[_0x358067(0x34e)](_0x203df7)[_0x358067(0x234)](([_0x3d560a,_0x1ddab9])=>{const _0x13d09e=_0x358067;_0x3d560a===_0x13d09e(0x23e)&&typeof _0x1ddab9==_0x13d09e(0x2cb)&&(_0x203df7[_0x3d560a]=_0x1ddab9[_0x13d09e(0x1e9)](/url\(#(.*)\)/,'url(#$1'+_0xca0d37[_0x13d09e(0x31a)]+')'));});const {defIds:_0x59d94a}=_0xca0d37;return!_0x59d94a||_0x59d94a['length']===0x0||(_0x7f9abe[_0x358067(0x37b)]===_0x358067(0x368)&&_0x203df7[_0x358067(0x348)]&&(_0x203df7[_0x358067(0x348)]=_0x203df7['xlink:href']+_0xca0d37[_0x358067(0x31a)]),Object['entries'](_0x203df7)[_0x358067(0x234)](([_0x92238e,_0x301576])=>{const _0x9bbd63=_0x358067;typeof _0x301576==_0x9bbd63(0x2cb)&&(_0x203df7[_0x92238e]=_0x301576[_0x9bbd63(0x1e9)](/url\(#(.*)\)/,_0x9bbd63(0x3b7)+_0xca0d37[_0x9bbd63(0x31a)]+')'));})),_0x203df7;}function Ze(_0x23c4d4,_0x10c9c0){const _0x11c2a7=_0x13f674;var _0x256abd;const {defIds:_0x16c88c}=_0x10c9c0;return!_0x16c88c||_0x16c88c['length']===0x0?_0x23c4d4:_0x23c4d4[_0x11c2a7(0x37b)]===_0x11c2a7(0x2f5)&&((_0x256abd=_0x23c4d4['children'])!=null&&_0x256abd[_0x11c2a7(0x187)])?{..._0x23c4d4,'children':_0x23c4d4[_0x11c2a7(0x344)]['map'](_0xf063c9=>typeof _0xf063c9[_0x11c2a7(0x2bb)]['id']==_0x11c2a7(0x2cb)&&_0x16c88c&&_0x16c88c[_0x11c2a7(0x208)](_0xf063c9[_0x11c2a7(0x2bb)]['id'])?{..._0xf063c9,'attrs':{..._0xf063c9['attrs'],'id':_0xf063c9[_0x11c2a7(0x2bb)]['id']+_0x10c9c0[_0x11c2a7(0x31a)]}}:_0xf063c9)}:_0x23c4d4;}function Qe(){const _0x418d83=_0x13f674;return Math['random']()['toString'](0x24)[_0x418d83(0x14c)](0x2,0x8);}function _0x1295(){const _0x2c0aa0=['CollaborationUIEventId','_transformPreviousActiveRange','_id','_updateSubUnitFromURLParams','749KmbcRU','_transformUndoRedoStack','search','actions','getOwnPropertyDescriptor','PERMISSION_DENIED','ThemeService','VIEW_MAIN','_docTransformSelectionsService','getParam','loadUnit','exhaustSavingTask','getColor','_collabCursorController','save','_memberService','_initEvent','collabStatus.fetchMiss','getVpScrollXYInfoByPosToVp','_getSessionTicket','toDisposable','green.600','_disabled','LOCAL_CACHE_INTERVAL','_createSocketURL','_scheduleClearOtherTimer','unitId','_status$','attrs','combineLatest','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','unload','ranges','IBeforeCloseService','path','_handleJoinEvent','_httpService','roomMembers','HEADER_MENU','transformStateCache','_currentUsage','LOGIN_FAILED','evenodd','split','string','Warning','pluginName','UNIVER_DOC','history','Inject','UNRECOGNIZED','ILogService','_updateCollabCursors','error','handleInsertRangeMoveDown','TOO_MANY_REQUESTS','getActiveSheet','_document','_session','_monkeyPatchLogService','getFocusedUnit','_unitOnClients','[CollaborationDataLoaderController]','body','currentSkeleton$','CommandType','selection','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_handleLeaveEvent','_initStatusComponent','some','findNodePositionByCharIndex','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_getAnchorBounding','executionId','_beforeCloseService','runId','cursorInfo','handleDeleteRangeMoveUp','_refreshCollabCursors','subscribeEvent','has','createIdentifier','ENTITLE_CHAT_LIMIT_EXCEED','RECT','_injector','defs','INTERNAL_ERROR','_cachedData','_renderManagerService','collaboration.single-unit.warning','Vector2','min','InsertRangeMoveDownCommandId','DisposableCollection','TEXT','...','Failed','saveTaskMap','getSheetId','ticket','YUUMI_ALL_TABLES_IS_INVALID','triggerDblclick','ENTITLE_DUP_SUBSCRIPTION','m2Prime','333377PwNVvx','_render','all','_send','OFFLINE','wsSessionTicketUrl','SessionStatus','session.collaboration-timeout','getCollabEntity$','_dataLoaderService','UniverCollaborationClientUIPlugin','_sheetSkeletonManagerService','transformIMECache','_shapes','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_cursorShapes','_commandService','_taskIds','idSuffix','getCurrent','_range','blue.400','IRenderManagerService','IURLService','YUUMI_CONNECTOR_URL_NOT_FOUND','ENSURE_SNAPSHOT_EXECUTION','_removeClearOtherTimer','http://www.w3.org/2000/svg','Injector','getCurrentSelections','asObservable','restore','syncEditingCollabCursor','session.connection-failed','registerComponent','arc','INVALID_ARGUMENT','YUUMI_NO_CUBOID_FOR_QUESTION','url(#on-line-icon_clip0_910_349)','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','DATA_SOURCE_TOO_LARGE','IDocClipboardService','_urlService','addObjects','connectInjector','Disposable','_hover','addEventListener','off-line-icon_clip0_910_343','newValue','_univerInstanceService','bind','APPLY_PERMISSION_DENIED','collabStatus.synced','switchMap','_memberID','size','RegularPolygon','_getSaveTimeout','INVALID_INVITE_CODE','children','getMergeData','colno','disposeWithMe','xlink:href','unit','Plugin','runOnServer','WebURLService','_startSheetCollabCursor','entries','off-line-icon','_initWindowErrorListener','post','LICENSE_IMPORT_SIZE_EXCEEDED','18TaChLM','ISocketService','makeDirty','assignAColorForMemberID','_syncEditingCollabCursorService','replaceDocRanges','getUnitStatus$','CollaborationController','closePath','unsubscribe','CollaborationUIEventService','_getFormulaLimitStatus','/universer-api/license/formula/limit/start','UPDATE_CURSOR','LOGIN_TOKEN_PROCESSING_FAILED','purple.300','unhandledrejection','MessageType','PENDING','toRgbString','isFormulaId','use','859965aximxT','_localeService','Rect','_saveCache','beginPath','NOT_COLLAB','_initCommandExecutedListener','formula.calculation.waiting','url(#off-line-icon_clip0_910_343)','collaboration-client.offline-data-not-saved','stack','CURRENT_STATUS_CANNOT_OPERATE','_collaborationUIEventService','_showGuardMessage','debug','USER_NOT_INVITED_CODE','_initUnhandledRejectionListener','1858284YXQRGl','tag','setInterval','_checkAndWaitForCalculationPermission','_messageService','_setFormulaLimitStatus','hide','getSheetObject','/universer-api/license/formula/limit/done','_docTransformIMECacheService','_lastPointer','InsertColCommandId','_onCursorDelete','send','add','_checkCalculationAvailable','saveImage','IMessageService','set','_assignedColors','collab-client.tooltip.reconnect','loadOfflineData','find','getMember','REDEMPTION_USER_NOT_ELIGIBLE','handleIRemoveRow','ColorKit','_imageIoService','then','DataLoaderService','fromEvent','_maxFormulaLimit','_transformService','svg','ICommandService','ALREADY_EXISTS','_hasFormulaInDirtyRanges','getCellPositionByOffset','result','_onRefRangeChange','invokeId','ERROR_AGAIN','RemoteUniscriptService','getUnit','DependentOn','onCommandExecuted','_textBubble','_lastResponseTimestamp','YUUMI_ASYNCIO_CANCELLED','_ensureSubject','YUUMI_RATE_OVER_LIMIT','WECHAT_HAS_BEEN_BOUND','getColorFromTheme','isTransformMutationFailure','_getSheetObject','DEFAULT_WS_SESSION_TICKET_URL','font','complete','next','WebBrowserSingleActiveUnitService','eventID','url(#$1','sessionTicket','COMPLETION_FINISHED','SUCCESS','18456DuDgRK','LICENSE_MAX_UNITS_EXCEEDED','subunit','collabStatus.notCollab','m1Prime','_revisionService','IUniverInstanceService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','resize','0\x200\x2017\x2016','NO_OTHER_CLIENTS_EDITING','getActiveRange','_updateLocalCursor','color','REDEMPTION_CODE_INACTIVE','31462vrhxNv','none','translate(.97)','IUIPartsService','AWAITING','transformByState','APPLY_REVISION_CONFILICT','CONFLICT','PY_RUNTIME_SCRIPT_ERROR','Shape','Tools','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','ISnapshotServerService','SetDocZoomRatioOperation','source','map','getStateCache','bottom','type','message','forwardRef','SOCKET_FAILED','_updateURLWithCurrentState','startsWith','_selfUnitIDs','_collabCursorState$','transformRemoteChangeset','permission.content','black','YUUMI_URL_COL_OUT_OF_RANGE','row','isTransformMutationsWithChangesetSuccess','_instanceService','origin','jsx','NOT_FOUND','_init','MOBILE_HAS_BEEN_BOUND','href','EMAIL_VERIFY_CODE_MISMATCH','unitID','lineTo','collabStatus.syncing','stage','Tooltip','_backgroundColor','enableLocalCache','INVITE_CODE_ALREADY_BOUND','_online','currentColor','#FFF','top','handleIRemoveCol','REDEMPTION_USER_REDEEM_TIMES_EXCEED','ILocalCacheService','skeleton','7530165utjorN','0\x200\x2016\x2016','dirtyRanges','on-line-icon_clip0_910_349','red.300','_entities','1em','_getMergeRange','clearInterval','UnitStatus','width','CollaborationDataLoaderController','toString','_pollingInterval','_handleHeartbeatEvent','permission.title','transformMutation','Loading','handleMoveRange','_heartbeatTimer','UNIVER_SHEET','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','fillStyle','?taskId=','_transformHistoryAndStateStack','substring','UniverInstanceType','getUndoRedoMutationParamsCache','toStringTag','sheetID','_color','fill','_unitStatus','MemberService','useObservable','_logService','urlChange$','onRendered','CollaborationSessionService','mapTo','AUTHORIZE_CODE_ILLEGAL','stringify','MOBILE_VERIFY_CODE_MISMATCH','getUnitId','LICENSE_DISTRO_REJECTED','_initCommandInterceptor','SUBMIT_CHANGESET_TIMEOUT','START_CALCULATION','dispose','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','cursorInfo$','_toggleOnline','subUnitId','HTTPService','push','textRanges','current','_clearOtherTimers','filter','_drawRectRange','debounce','SNAPSHOT_HAS_BEEN_REMOVED','SYNCED','_anchor','useDependency','_saveTaskMap','_roomMembers$','REDEMPTION_CODE_HAS_BEEN_CREATED','data','from','995152VeMOJb','CollaborationEvent','collabCursorState$','params','storage','column','_handleEvent','defineProperty','_colorAssignService','doc.mutation.rich-text-editing','div','INVITE_CODE_REQUIRED','_scene','createInstance','length','runRefRangeMutations','startRow','_cursor','with','height','APPLY_DUPLICATED','assign','CLOSE_ROOM','clearTimeout','getMemberID','disableLocalCache','getTypeOfUnitDisposed$','_collaborationController','_uploadLog','collaboration.closeRoom','generateRandomId','ONLINE','Module','max','getDocRanges','jiqing.500','RemoveRowCommandId','CanceledError','UNAUTHENTICATED','_setupBeforeClosingHandler','TRANSFORM_CHANGE_OBSERVABLE_TYPE','createElement','EffectRefRangId','location','_configService','RevisionService','removeEventListener','executeCommand','deepClone','UniverIcon','get','LOCAL_CACHE_INTERVAL_KEY','measureText','FormulaExecuteStageType','AWAITING_WITH_PENDING','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getCurrentRevOfUnit','getformulaLimitStatusUrl','searchParams','show','selections','BrowserCollaborationSocketService','_colorIndex','endColumn','popstate','shareReplay','SetWorksheetActivateCommand','IConfigService','getValue','shift','SheetsSelectionsService','_releaseCalculationLimit','dispose$','PAYMENT_CHANNEL_NOT_SUPPORT','RxDisposable','_toggleOffline','REDEMPTION_CODE_NOT_STARTED','_docStateChangeManagerService','APPLY_NON_SEQUENTIAL_REVISION','getCoordByCell','moveTo','WebSocketService','DocSelectionManagerService','setAlpha','_getScale','CONNECTOR_DATA_TOO_LARGE','OffLineIcon','limitInfo','_drawTextRange','SetFormulaCalculationStartMutation','distinctUntilChanged','pushState','_docClipboardService','JOIN_ROOM_FAILED','getRenderById','EMAIL_HAS_BEEN_BOUND','LICENSE_EXPORT_SIZE_EXCEEDED','replaceState','_setupSubUnitSync','YUUMI_SUBSCRIPTION_NOT_FOUND','endRow','onPointerMove$','isEditing','IRemoteInstanceService','Unknown\x20user','_uiPartsService','clipPath','getCurrentUnitForType','_applyCommand','drawWith','setActiveRange','_initEntityListener','replace','_name','collabStatus.conflict','currentTheme$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','DocSkeletonManagerService','BuiltInUIPart','_handleHover','setConfig','colorChannel1','ENTITLE_CAN_NOT_BUY_LOWER_OTP','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','collabStatus.offline','_initStatusListener','collab-text-range-','getItem','functionsExecutedState','_hovered','useCallback','_onCursorUpdate','_docSyncEditingCollabCursorService','enableFrontendLog','univer-flex\x20univer-items-center','BehaviorSubject','ENTITLE_REPORT_LIMIT_EXCEED','editingUnit','createSocket','OTHER_CLIENTS_EDITING','_themeService','DocStateChangeManagerService','session.will-retry','includes','_context','handleInsertRow','_draw','range','_localCacheService','totalFormulasToCalculate','TEXT_RANGE_LAYER_INDEX','setUndoRedoMutationParamsCache','Optional','INVITE_CODE_HAS_BEEN_UES','undoState','_refRangeService','imageSourceType','[Window\x20Error]:\x20','getTypeOfUnitAdded$','onPointerLeave$','unshift','_config','maxFormulaLimit','DeleteRangeMoveLeftCommandId','Workbook','_scheduleHeartbeat','COLORS','_scheduleSaving','/run/','M0\x200H16V16H0z','_eventUnsubscribe','reconnect','univerjs-icon\x20univerjs-icon-','Success','catch','redoState','_removeCollabCursors','isActive','mutations','handleInsertRangeMoveRight','_docTransformStateCacheService','getCollabCursors$','setStateCache','ACTIVE_UNIT_EVENT_CHANNEL','registerRenderModule','FETCH_MISS','_initResize','forEach','DesktopCollaborationStatusDisplayController','RichTextEditingMutation','handleInsertCol','USER_NOT_FOUND','setItem','getSheetBySheetId','code','init','fillRule','mask','_collaborationSessionService','RemoveColCommandId','_drawAnchor','onMouseMove','transformMutationsWithChangeset','getConfig','YUUMI_TABLE_NOT_FOUND_IN_UNIT','InsertRangeMoveRightCommandId','socket$','DocIMEInputManagerService','_cursorInfo$','_entityInit$','Error','_anchorDot','sessionStatus$','setShapeProps','symbol','docStateChange$','CHANGESET_REVISION_CONFILICT','delete','disposeUnit','memberID','startColumn','LocaleService','roomMembers$','takeUntil','Rectangle','deserializeRangeWithSheet','REDEMPTION_CODE_FULLY_REDEEMED','FromArray','_initDependencies','onPointerEnter$','lineno','SheetCollabCursorShape','_registerDependencies','startFormulaLimitUrl','addObject','_cursors','CollaborationStatus','_collabSessionService','getSkeleton','DOC_RANGE_TYPE','_startDocCollabCursor','white','name','_registerRenderDependencies','_docSkeletonManagerService','_startCalculationLimit','ITransformService','onStarting','subscribe','filename','SHEET_VIEWPORT_KEY','pipe','addClipboardHook','NodePositionConvertToCursor','collab-rect-range-','SOCKET_FAILED_RETRY','SetFormulaCalculationNotificationMutation','UNDEFINED','on-line-icon','_doCreateSocket','_clearPolling','serializeRangeWithSheet','isArray','text','_localStorageService','_labelPosition','transformSelections','getRangePointData','_initUserListener','YUUMI_UNABLE_LOAD_URL','transform','getOffsetConfig','REDEMPTION_INVALID_CODE','\x20at\x20','fillText','now','contains','values','round','addHandlerCallback','UniverCollaborationClientPlugin','collab-text-anchor-','SheetSkeletonManagerService','_notificationService','USER_IS_ANONYMOUS','CollaborationSocketService','jsxs','event$','_hideTimer','getAncestorScale'];_0x1295=function(){return _0x2c0aa0;};return _0x1295();}Te['displayName']=_0x13f674(0x1aa);const et={'tag':_0x13f674(0x39b),'attrs':{'xmlns':_0x13f674(0x323),'fill':_0x13f674(0xfc),'viewBox':_0x13f674(0x134),'width':_0x13f674(0x139),'height':_0x13f674(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x13f674(0x371)},'children':[{'tag':'path','attrs':{'stroke':_0x13f674(0x12c),'d':_0x13f674(0x148),'strokeLinecap':_0x13f674(0x28f),'strokeLinejoin':_0x13f674(0x28f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x13f674(0x1e3),'attrs':{'id':_0x13f674(0x338)},'children':[{'tag':_0x13f674(0x2c1),'attrs':{'fill':_0x13f674(0x26a),'d':_0x13f674(0x222)}}]}]}],'defIds':[_0x13f674(0x338)]},xe=A[_0x13f674(0x10f)](function(_0x2dcb94,_0x188ffa){const _0x2e5b75=_0x13f674;return A['createElement'](Te,Object[_0x2e5b75(0x18e)]({},_0x2dcb94,{'id':_0x2e5b75(0x34f),'ref':_0x188ffa,'icon':et}));});xe['displayName']=_0x13f674(0x1cf);const tt={'tag':_0x13f674(0x39b),'attrs':{'xmlns':_0x13f674(0x323),'fill':'none','viewBox':_0x13f674(0xf5),'width':_0x13f674(0x139),'height':_0x13f674(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x13f674(0x32e)},'children':[{'tag':_0x13f674(0x2c1),'attrs':{'stroke':_0x13f674(0x12c),'d':_0x13f674(0x1f4),'strokeLinecap':_0x13f674(0x28f),'strokeLinejoin':_0x13f674(0x28f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x13f674(0x136)},'children':[{'tag':_0x13f674(0x2c1),'attrs':{'fill':_0x13f674(0x26a),'d':_0x13f674(0x222),'transform':_0x13f674(0xfd)}}]}]}],'defIds':[_0x13f674(0x136)]},Be=A[_0x13f674(0x10f)](function(_0x1041fc,_0x3f847b){const _0x82b6d1=_0x13f674;return A[_0x82b6d1(0x1a2)](Te,Object[_0x82b6d1(0x18e)]({},_0x1041fc,{'id':_0x82b6d1(0x27b),'ref':_0x3f847b,'icon':tt}));});Be['displayName']='OnLineIcon';function st(_0x522e28){const _0x43bd93=_0x13f674;switch(_0x522e28){case u[_0x43bd93(0x265)][_0x43bd93(0x30c)]:return _0x43bd93(0x1f5);case u[_0x43bd93(0x265)][_0x43bd93(0x102)]:return _0x43bd93(0x1eb);case u[_0x43bd93(0x265)][_0x43bd93(0x232)]:return _0x43bd93(0x2b0);case u[_0x43bd93(0x265)][_0x43bd93(0x36e)]:return _0x43bd93(0xef);case u['CollaborationStatus'][_0x43bd93(0xff)]:case u[_0x43bd93(0x265)][_0x43bd93(0x1af)]:return _0x43bd93(0x125);case u['CollaborationStatus'][_0x43bd93(0x171)]:case u[_0x43bd93(0x265)][_0x43bd93(0x365)]:return _0x43bd93(0x33d);}}function it(_0x50e505){const _0x39dfc5=_0x13f674,{status$:_0x53f4ab}=_0x50e505,_0x1a7fc4=O[_0x39dfc5(0x155)](_0x53f4ab,u[_0x39dfc5(0x265)][_0x39dfc5(0x36e)]),_0xdb3fbd=O[_0x39dfc5(0x173)](a[_0x39dfc5(0x256)]),_0x581182=O[_0x39dfc5(0x173)](u['CollaborationSessionService']),_0x16c9a0=_0x1a7fc4!==u['CollaborationStatus'][_0x39dfc5(0x30c)],_0x5047c9=_0xdb3fbd['t'](st(_0x1a7fc4)),_0x5cf6ff=_0x16c9a0?M[_0x39dfc5(0x11d)](Be,{}):M[_0x39dfc5(0x11d)](xe,{}),_0xae488f=A[_0x39dfc5(0x1fb)](()=>{const _0x4775c6=_0x39dfc5;_0x16c9a0||_0x581182[_0x4775c6(0x224)]();},[_0x16c9a0,_0x581182]);function _0x51e10a(){const _0x2fd255=_0x39dfc5;return M[_0x2fd255(0x297)]('div',{'className':_0x2fd255(0x1ff),'onClick':_0xae488f,'children':[M[_0x2fd255(0x11d)](_0x2fd255(0x183),{'className':T['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x16c9a0,'univer-text-red-500':!_0x16c9a0}),'children':_0x5cf6ff}),M[_0x2fd255(0x11d)](_0x2fd255(0x183),{'className':_0x2fd255(0x2e7),'children':_0x5047c9})]});}return _0x16c9a0?_0x51e10a():M[_0x39dfc5(0x11d)](T[_0x39dfc5(0x127)],{'title':_0xdb3fbd['t'](_0x39dfc5(0x38e)),'children':_0x51e10a()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x5ea856,_0x178f9c,_0x2cd87a,_0x42db17)=>{const _0x39d6b0=_0x13f674;for(var _0x33298c=_0x42db17>0x1?void 0x0:_0x42db17?nt(_0x178f9c,_0x2cd87a):_0x178f9c,_0x169a7c=_0x5ea856[_0x39d6b0(0x187)]-0x1,_0x4ae955;_0x169a7c>=0x0;_0x169a7c--)(_0x4ae955=_0x5ea856[_0x169a7c])&&(_0x33298c=_0x4ae955(_0x33298c)||_0x33298c);return _0x33298c;},K=(_0xae94b3,_0x1bfdaa)=>(_0x15477b,_0x5d1be6)=>_0x1bfdaa(_0x15477b,_0x5d1be6,_0xae94b3);exports[_0x13f674(0x235)]=class extends a[_0x13f674(0x335)]{constructor(_0xcc869e,_0x1df399,_0x585b70,_0x4e6f8a){const _0x395d0a=_0x13f674;super(),_(this,_0x395d0a(0x2ba),new I[(_0x395d0a(0x200))](u[_0x395d0a(0x265)]['NOT_COLLAB'])),(this[_0x395d0a(0x33a)]=_0xcc869e,this[_0x395d0a(0x2f4)]=_0x1df399,this['_collaborationController']=_0x585b70,this['_uiPartsService']=_0x4e6f8a,this[_0x395d0a(0x2e4)](),this[_0x395d0a(0x1f6)]());}[_0x13f674(0x1f6)](){const _0x4c0d92=_0x13f674;this[_0x4c0d92(0x347)](this[_0x4c0d92(0x33a)]['focused$'][_0x4c0d92(0x274)](I['switchMap'](()=>{const _0x9f00b1=_0x4c0d92,_0x5bf4a8=this[_0x9f00b1(0x33a)][_0x9f00b1(0x2db)]();return _0x5bf4a8?this['_collaborationController'][_0x9f00b1(0x310)](_0x5bf4a8['getUnitId']()):I['of'](null);}),I[_0x4c0d92(0x33e)](_0x54f170=>_0x54f170?_0x54f170['status$']:I['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x4c0d92(0x271)](_0x90a8b3=>{const _0x41e5a6=_0x4c0d92;this[_0x41e5a6(0x2ba)][_0x41e5a6(0x3b4)](_0x90a8b3);}));}[_0x13f674(0x2e4)](){const _0xf89bd6=_0x13f674;this[_0xf89bd6(0x347)](this[_0xf89bd6(0x1e2)][_0xf89bd6(0x32a)](O[_0xf89bd6(0x1ef)][_0xf89bd6(0x2c5)],()=>O[_0xf89bd6(0x334)](ot({'status$':this[_0xf89bd6(0x2ba)][_0xf89bd6(0x326)]()}),this[_0xf89bd6(0x2f4)])));}},exports[_0x13f674(0x235)]=rt([K(0x0,a[_0x13f674(0xf2)]),K(0x1,a['Inject'](a[_0x13f674(0x324)])),K(0x2,a[_0x13f674(0x2d0)](u[_0x13f674(0x35a)])),K(0x3,O[_0x13f674(0xfe)])],exports[_0x13f674(0x235)]);function ot(_0x365161){const {status$:_0x462d80}=_0x365161;return function(){const _0x13d1e1=_0x2045;return M[_0x13d1e1(0x11d)](it,{'status$':_0x462d80});};}const Oe=a[_0x13f674(0x2f1)]('uni.network.url-service');var at=Object[_0x13f674(0x2a3)],ct=(_0x2935b4,_0x4d2fab,_0x62a9fb,_0x57f411)=>{const _0x237c31=_0x13f674;for(var _0x4dd0ac=_0x57f411>0x1?void 0x0:_0x57f411?at(_0x4d2fab,_0x62a9fb):_0x4d2fab,_0xfd8c3d=_0x2935b4[_0x237c31(0x187)]-0x1,_0x19ebda;_0xfd8c3d>=0x0;_0xfd8c3d--)(_0x19ebda=_0x2935b4[_0xfd8c3d])&&(_0x4dd0ac=_0x19ebda(_0x4dd0ac)||_0x4dd0ac);return _0x4dd0ac;},Y=(_0x56cea6,_0x4277e0)=>(_0x33a906,_0x327b24)=>_0x4277e0(_0x33a906,_0x327b24,_0x56cea6);exports[_0x13f674(0x13e)]=class extends a['RxDisposable']{constructor(_0x4165d1,_0x5b0349,_0x4429cd,_0x256e82,_0x238c95){const _0x76b868=_0x13f674;super(),this[_0x76b868(0x332)]=_0x4165d1,this[_0x76b868(0x156)]=_0x5b0349,this[_0x76b868(0x318)]=_0x4429cd,this[_0x76b868(0x311)]=_0x256e82,_0x238c95?_0x238c95==null||_0x238c95['whenReady']()[_0x76b868(0x396)](()=>this['_init']()):(this['_logService'][_0x76b868(0x377)](_0x76b868(0x2dd),_0x76b868(0x2bd)),this[_0x76b868(0x11f)]());}async[_0x13f674(0x11f)](){const _0x563e3f=_0x13f674,_0x330cc0=this[_0x563e3f(0x332)]['getParam']('unit'),_0x11ed3f=this[_0x563e3f(0x332)][_0x563e3f(0x2a8)](_0x563e3f(0x10d)),_0x1be87a=this['_urlService'][_0x563e3f(0x2a8)](_0x563e3f(0xee));if(!_0x330cc0||!_0x11ed3f){this[_0x563e3f(0x156)][_0x563e3f(0x377)](_0x563e3f(0x2dd),_0x563e3f(0x316));return;}const _0x5ca54c=await this[_0x563e3f(0x311)][_0x563e3f(0x2a9)](_0x330cc0,Number(_0x11ed3f),_0x1be87a);_0x5ca54c&&_0x5ca54c instanceof a[_0x563e3f(0x21d)]&&this[_0x563e3f(0x1db)](_0x5ca54c);}async[_0x13f674(0x1db)](_0x540bfe){const _0x205c64=_0x13f674;await this['_updateSubUnitFromURLParams'](_0x540bfe),_0x540bfe['activeSheet$'][_0x205c64(0x274)](I[_0x205c64(0x258)](this['dispose$']))['subscribe'](_0x7e99ee=>{const _0x51aa67=_0x205c64;_0x7e99ee&&this[_0x51aa67(0x111)](_0x7e99ee);}),this[_0x205c64(0x332)]['urlChange$'][_0x205c64(0x274)](I[_0x205c64(0x258)](this[_0x205c64(0x1c1)]))[_0x205c64(0x271)](()=>this[_0x205c64(0x29e)](_0x540bfe));}[_0x13f674(0x111)](_0x1e2fef,_0x3dddb7=!0x1){const _0x1bb179=_0x13f674,_0xc4b5c7=this[_0x1bb179(0x332)][_0x1bb179(0x2a8)](_0x1bb179(0xee));_0x1e2fef[_0x1bb179(0x302)]()!==_0xc4b5c7&&this[_0x1bb179(0x332)]['setParam'](_0x1bb179(0xee),_0x1e2fef['getSheetId'](),_0x3dddb7);}async[_0x13f674(0x29e)](_0x3a9b30){const _0x3890ab=_0x13f674;var _0x50d2a4;const _0x5ac7d0=this[_0x3890ab(0x332)]['getParam'](_0x3890ab(0xee));if(!_0x5ac7d0||!_0x3a9b30['getSheetBySheetId'](_0x5ac7d0)){const _0x51ec14=_0x3a9b30['getUnhiddenWorksheets']()[0x0],_0x3711fa=_0x3a9b30[_0x3890ab(0x23a)](_0x51ec14);if(!_0x3711fa)return;this[_0x3890ab(0x111)](_0x3711fa,!0x0),await this[_0x3890ab(0x318)][_0x3890ab(0x1a8)](v[_0x3890ab(0x1bb)]['id'],{'unitId':_0x3a9b30[_0x3890ab(0x15e)](),'subUnitId':_0x51ec14});return;}((_0x50d2a4=_0x3a9b30['getActiveSheet']())==null?void 0x0:_0x50d2a4[_0x3890ab(0x302)]())!==_0x5ac7d0&&await this[_0x3890ab(0x318)]['executeCommand'](v[_0x3890ab(0x1bb)]['id'],{'unitId':_0x3a9b30['getUnitId'](),'subUnitId':_0x5ac7d0});}},exports[_0x13f674(0x13e)]=ct([Y(0x0,Oe),Y(0x1,a[_0x13f674(0x2d2)]),Y(0x2,a[_0x13f674(0x39c)]),Y(0x3,a[_0x13f674(0x2d0)](u[_0x13f674(0x397)])),Y(0x4,a[_0x13f674(0x211)](qe[_0x13f674(0x1e0)]))],exports['CollaborationDataLoaderController']);var lt=Object[_0x13f674(0x2a3)],_t=(_0x352ec4,_0x3323dc,_0x21ec3a,_0x1908ef)=>{const _0x2f0f3e=_0x13f674;for(var _0x5bf162=_0x1908ef>0x1?void 0x0:_0x1908ef?lt(_0x3323dc,_0x21ec3a):_0x3323dc,_0x208eab=_0x352ec4[_0x2f0f3e(0x187)]-0x1,_0x1a89e7;_0x208eab>=0x0;_0x208eab--)(_0x1a89e7=_0x352ec4[_0x208eab])&&(_0x5bf162=_0x1a89e7(_0x5bf162)||_0x5bf162);return _0x5bf162;},De=(_0x4f11f8,_0x257132)=>(_0x1b5f0c,_0x3865f2)=>_0x257132(_0x1b5f0c,_0x3865f2,_0x4f11f8);let me=class extends a[_0x13f674(0x1c3)]{constructor(_0xebe7ac,_0x1ef478){const _0x5391ed=_0x13f674;super(),this[_0x5391ed(0x1d5)]=_0xebe7ac,this[_0x5391ed(0x395)]=_0x1ef478,this[_0x5391ed(0x11f)]();}[_0x13f674(0x11f)](){const _0x162648=_0x13f674,_0x5b800e=this;this[_0x162648(0x347)](this['_docClipboardService'][_0x162648(0x275)]({'onBeforePasteImage':async _0x3a6ac8=>{const _0x2c27b1=_0x162648,_0x3e4689=await _0x5b800e[_0x2c27b1(0x395)][_0x2c27b1(0x38a)](_0x3a6ac8);return _0x3e4689?{'source':_0x3e4689[_0x2c27b1(0x109)],'imageSourceType':_0x3e4689[_0x2c27b1(0x215)]}:null;}}));}};me=_t([De(0x0,p[_0x13f674(0x331)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x13f674(0x362),_0x13f674(0x19c),_0x13f674(0x2b4),_0x13f674(0x137),_0x13f674(0x31d),'yellow.400'];class Re extends a[_0x13f674(0x335)]{constructor(){const _0x1970f8=_0x13f674;super(...arguments),_(this,_0x1970f8(0x38d),new Map()),_(this,'_colorIndex',0x0);}[_0x13f674(0x356)](_0x1edbbd){const _0x532ca1=_0x13f674;if(this[_0x532ca1(0x38d)][_0x532ca1(0x2f0)](_0x1edbbd))return this['_assignedColors'][_0x532ca1(0x1ab)](_0x1edbbd);const _0x40bfba=Ne[this[_0x532ca1(0x1b7)]];return this[_0x532ca1(0x1b7)]=(this['_colorIndex']+0x1)%Ne['length'],this[_0x532ca1(0x38d)][_0x532ca1(0x38c)](_0x1edbbd,_0x40bfba),_0x40bfba;}}function Fe(_0x4dd6df){const _0x2beefa=_0x13f674;let _0x260203='';for(const _0xc47830 of _0x4dd6df){const {startOffset:_0x1a2b86,endOffset:_0x5654d5,isActive:_0x46744f,rangeType:_0x89cbbb,segmentId:_0x27670c,segmentPage:_0x117700}=_0xc47830;_0x260203[_0x2beefa(0x187)]&&(_0x260203+=','),_0x260203+=_0x1a2b86+':'+_0x5654d5+':'+(_0x46744f?'1':'0')+':'+_0x89cbbb+':'+_0x27670c+':'+_0x117700;}return _0x260203;}function ht(_0x2ec16f){const _0xd1d578=_0x13f674,_0x190e36=_0x2ec16f[_0xd1d578(0x2ca)](','),_0x4df354=[];for(const _0x383b76 of _0x190e36){const [_0x5dda28,_0x71400,_0x4ce514,_0x1e2c6a,_0x1d836a,_0x4a045d]=_0x383b76['split'](':');_0x4df354[_0xd1d578(0x169)]({'startOffset':Number(_0x5dda28),'endOffset':Number(_0x71400),'collapsed':_0x5dda28===_0x71400,'isActive':_0x4ce514==='1','rangeType':_0x1e2c6a===a[_0xd1d578(0x268)][_0xd1d578(0x2fe)]?a['DOC_RANGE_TYPE'][_0xd1d578(0x2fe)]:a[_0xd1d578(0x268)]['RECT'],'segmentId':typeof _0x1d836a==_0xd1d578(0x2cb)?String(_0x1d836a):'','segmentPage':Number(_0x4a045d!=null?_0x4a045d:-0x1)});}return _0x4df354[_0xd1d578(0x2e5)](_0x55c4a4=>_0x55c4a4['isActive'])||(_0x4df354[0x0][_0xd1d578(0x22a)]=!0x0),_0x4df354;}class be extends a[_0x13f674(0x1c3)]{constructor(){const _0x5801f7=_0x13f674;super(...arguments),_(this,_0x5801f7(0x114),new I[(_0x5801f7(0x200))](null)),_(this,_0x5801f7(0x17b),this['_collabCursorState$']['asObservable']());}[_0x13f674(0x328)](_0x22f635){const {unitID:_0x1f2a75,memberID:_0x1a9f41,textRanges:_0x3fad06}=_0x22f635,_0x30ae72=Fe(_0x3fad06);if(_0x30ae72==='')return;const _0x5825bf={'unitID':_0x1f2a75,'memberID':_0x1a9f41,'selection':_0x30ae72};this['_collabCursorState$']['next'](_0x5825bf);}}var ut=Object[_0x13f674(0x2a3)],It=(_0x5ab0b0,_0x1a10c4,_0x4f43ba,_0xd34c96)=>{for(var _0x8a9e8a=_0xd34c96>0x1?void 0x0:_0xd34c96?ut(_0x1a10c4,_0x4f43ba):_0x1a10c4,_0x255ee5=_0x5ab0b0['length']-0x1,_0x5a2216;_0x255ee5>=0x0;_0x255ee5--)(_0x5a2216=_0x5ab0b0[_0x255ee5])&&(_0x8a9e8a=_0x5a2216(_0x8a9e8a)||_0x8a9e8a);return _0x8a9e8a;},U=(_0x1a2b60,_0x20b5e9)=>(_0x39b4f8,_0x50ada7)=>_0x20b5e9(_0x39b4f8,_0x50ada7,_0x1a2b60);const dt=0x12c,St=0x64;let ve=class extends a['RxDisposable']{constructor(_0x30c312,_0x4d7ecf,_0x2e3f36,_0x575558,_0x4f6a06,_0x190340,_0x2cab09,_0x31d98b,_0x34cafb){const _0x515743=_0x13f674;super(),_(this,_0x515743(0x12b),!0x1),_(this,_0x515743(0x11f),!0x1),_(this,_0x515743(0x249),new I[(_0x515743(0x200))](new Map())),_(this,_0x515743(0x165),this[_0x515743(0x249)][_0x515743(0x326)]()),_(this,_0x515743(0x175),new I[(_0x515743(0x200))]([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](I['debounceTime'](dt))),_(this,_0x515743(0xf8),a[_0x515743(0x16f)](_0x34311f=>{const _0x599b8c=_0x515743,_0x3e04e8={'eventID':g[_0x599b8c(0x17a)][_0x599b8c(0x360)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x599b8c(0x191)](),'selection':Fe(_0x34311f)}};this[_0x599b8c(0x2d9)][_0x599b8c(0x387)](_0x3e04e8,this[_0x599b8c(0x123)]);},St)),(this['unitID']=_0x30c312,this[_0x515743(0x2d9)]=_0x4d7ecf,this[_0x515743(0x2f4)]=_0x2e3f36,this['_colorAssignService']=_0x575558,this['_memberService']=_0x4f6a06,this[_0x515743(0x357)]=_0x190340,this[_0x515743(0x39a)]=_0x2cab09,this[_0x515743(0x33a)]=_0x31d98b,this[_0x515743(0x318)]=_0x34cafb);}get[_0x13f674(0x2ec)](){const _0x3b39dd=_0x13f674;return this[_0x3b39dd(0x249)][_0x3b39dd(0x1bd)]();}get[_0x13f674(0x2c4)](){const _0x4cf1f7=_0x13f674;return this[_0x4cf1f7(0x175)][_0x4cf1f7(0x1bd)]();}[_0x13f674(0x163)](){const _0x50eed7=_0x13f674;super['dispose'](),this[_0x50eed7(0x249)]['next'](new Map()),this[_0x50eed7(0x249)]['complete'](),this[_0x50eed7(0x175)][_0x50eed7(0x3b4)]([]),this['_roomMembers$'][_0x50eed7(0x3b3)]();}[_0x13f674(0x23c)](){const _0x2c6ef5=_0x13f674;this[_0x2c6ef5(0x11f)]||(this[_0x2c6ef5(0x11f)]=!0x0,this['_session'][_0x2c6ef5(0x24d)][_0x2c6ef5(0x274)](I['takeUntil'](this[_0x2c6ef5(0x1c1)]))[_0x2c6ef5(0x271)](_0x3a77d9=>{const _0x5de7a5=_0x2c6ef5;_0x3a77d9===u[_0x5de7a5(0x30e)]['ONLINE']?this[_0x5de7a5(0x166)]():this[_0x5de7a5(0x1c4)]();}),this[_0x2c6ef5(0x2d9)][_0x2c6ef5(0x298)]['pipe'](I[_0x2c6ef5(0x258)](this[_0x2c6ef5(0x1c1)]))[_0x2c6ef5(0x271)](_0x37d185=>{const _0x16a0cb=_0x2c6ef5,_0x394f45=_0x37d185[_0x16a0cb(0x3b6)];_0x394f45===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x16a0cb(0x1fc)](_0x37d185),_0x394f45===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x16a0cb(0x386)](_0x37d185);}),this[_0x2c6ef5(0x347)](this[_0x2c6ef5(0x318)][_0x2c6ef5(0x3a7)](_0x2c2544=>{const _0x495a6f=_0x2c6ef5,_0x2b8bb2=_0x2c2544[_0x495a6f(0x17c)];_0x2b8bb2!=null&&this['_online']&&_0x2c2544['id']===V['SetTextSelectionsOperation']['id']&&_0x2b8bb2['unitId']===this['unitID']&&_0x2b8bb2[_0x495a6f(0x1df)]===!0x1&&_0x2b8bb2['ranges'][_0x495a6f(0x187)]>0x0&&this[_0x495a6f(0xf8)](_0x2b8bb2[_0x495a6f(0x2bf)]);})),this[_0x2c6ef5(0x357)][_0x2c6ef5(0x17b)][_0x2c6ef5(0x274)](I[_0x2c6ef5(0x258)](this[_0x2c6ef5(0x1c1)]))[_0x2c6ef5(0x271)](_0x137db7=>{const _0x597b6e=_0x2c6ef5;if((_0x137db7==null?void 0x0:_0x137db7[_0x597b6e(0x123)])!==this[_0x597b6e(0x123)])return;const _0x2cbf8d={'eventID':g[_0x597b6e(0x17a)][_0x597b6e(0x360)],'data':_0x137db7};this[_0x597b6e(0x1fc)](_0x2cbf8d);}),this['disposeWithMe'](this[_0x2c6ef5(0x318)]['onCommandExecuted'](_0x5f1b13=>{const _0x525edf=_0x2c6ef5;if(_0x5f1b13[_0x525edf(0x17c)]==null)return;const _0x4af04a=_0x5f1b13[_0x525edf(0x17c)];if(_0x5f1b13['id']!==V[_0x525edf(0x236)]['id']||_0x4af04a['unitId']!==this['unitID'])return;const _0x1d97f9={'id':_0x525edf(0x182),'params':_0x4af04a},_0x4271eb=this['cursorInfo'];for(const [_0xc2d30,_0x109586]of _0x4271eb){const _0x3718c9={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x525edf(0x123)],'actions':null,'textRanges':_0x109586[_0x525edf(0x2bf)]}},_0x36b29c=this[_0x525edf(0x39a)][_0x525edf(0x143)](_0x1d97f9,_0x3718c9,!0x1);if(g[_0x525edf(0x3af)](_0x36b29c))throw _0x36b29c[_0x525edf(0x2d4)];_0x4271eb[_0x525edf(0x38c)](_0xc2d30,{..._0x109586,'ranges':_0x36b29c[_0x525edf(0x307)][_0x525edf(0x17c)][_0x525edf(0x16a)]});}queueMicrotask(()=>{const _0x53be46=_0x525edf;this[_0x53be46(0x249)][_0x53be46(0x3b4)](_0x4271eb);});})));}['_onCursorUpdate'](_0x58c8ee){const _0x20efd6=_0x13f674;var _0x13cf50,_0x81857d;const {memberID:_0x5da384,selection:_0x588a9e}=_0x58c8ee[_0x20efd6(0x177)],_0x157336=ht(_0x588a9e),_0x544538=(_0x81857d=(_0x13cf50=this[_0x20efd6(0x2ae)][_0x20efd6(0x391)](this['unitID'],_0x5da384))==null?void 0x0:_0x13cf50[_0x20efd6(0x26b)])!=null?_0x81857d:_0x20efd6(0x1e1),_0x430b0f={'color':this['_colorAssignService'][_0x20efd6(0x356)](_0x5da384),'name':_0x544538,'ranges':_0x157336},_0x2ef012=this[_0x20efd6(0x2ec)];_0x2ef012[_0x20efd6(0x38c)](_0x5da384,_0x430b0f),this[_0x20efd6(0x249)][_0x20efd6(0x3b4)](_0x2ef012);}[_0x13f674(0x386)](_0x47c3f4){const _0x57fd68=_0x13f674,{memberID:_0x42a897}=_0x47c3f4[_0x57fd68(0x177)],_0x5280c0=this[_0x57fd68(0x2ec)];_0x5280c0['delete'](_0x42a897),this[_0x57fd68(0x249)][_0x57fd68(0x3b4)](_0x5280c0);}[_0x13f674(0x166)](){const _0x12a9c3=_0x13f674;var _0x27a662;if(this[_0x12a9c3(0x12b)]=!0x0,((_0x27a662=this[_0x12a9c3(0x33a)]['getFocusedUnit']())==null?void 0x0:_0x27a662['getUnitId']())!==this[_0x12a9c3(0x123)])return;const _0x4c6286=this[_0x12a9c3(0x2f4)]['get'](V[_0x12a9c3(0x1cb)])[_0x12a9c3(0x19b)]();Array['isArray'](_0x4c6286)&&_0x4c6286[_0x12a9c3(0x187)]>0x0&&this[_0x12a9c3(0xf8)](_0x4c6286);}[_0x13f674(0x1c4)](){this['_online']=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x13f674(0x324)])),U(0x3,a[_0x13f674(0x2d0)](Re)),U(0x4,a[_0x13f674(0x2d0)](u['MemberService'])),U(0x5,a[_0x13f674(0x2d0)](be)),U(0x6,g[_0x13f674(0x26f)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x13f674(0x39c)])],ve);var ft=Object[_0x13f674(0x2a3)],mt=(_0x567746,_0x17d9a4,_0x199cec,_0x561bff)=>{const _0x1ec85e=_0x13f674;for(var _0x484b46=_0x561bff>0x1?void 0x0:_0x561bff?ft(_0x17d9a4,_0x199cec):_0x17d9a4,_0x5f454e=_0x567746[_0x1ec85e(0x187)]-0x1,_0x90d743;_0x5f454e>=0x0;_0x5f454e--)(_0x90d743=_0x567746[_0x5f454e])&&(_0x484b46=_0x90d743(_0x484b46)||_0x484b46);return _0x484b46;},w=(_0x2807ac,_0x314f63)=>(_0x264a96,_0x858cae)=>_0x314f63(_0x264a96,_0x858cae,_0x2807ac);const vt=0x12c,gt=0x64,Et=()=>{let _0x4376f2=[],_0x549879=!0x1;return _0x7e8c74=>{const _0x8a1d0=_0x2045;_0x4376f2[_0x8a1d0(0x169)](_0x7e8c74),_0x549879||(_0x549879=!0x0,setTimeout(()=>{const _0x342590=_0x8a1d0;_0x4376f2[_0x342590(0x234)](_0x26c818=>_0x26c818()),_0x4376f2=[],_0x549879=!0x1;}));};};let ge=class extends a[_0x13f674(0x1c3)]{constructor(_0x57d372,_0x59ede2,_0x1e5465,_0x2e3203,_0x742f39,_0x31fe23,_0x24ef3b,_0x3dee8f){const _0x487389=_0x13f674;super(),_(this,_0x487389(0x12b),!0x1),_(this,'_init',!0x1),_(this,_0x487389(0x249),new I[(_0x487389(0x200))](new Map())),_(this,_0x487389(0x165),this[_0x487389(0x249)]['asObservable']()),_(this,_0x487389(0x175),new I[(_0x487389(0x200))]([])),_(this,_0x487389(0x257),this[_0x487389(0x175)][_0x487389(0x274)](I['debounceTime'](vt))),_(this,_0x487389(0xf8),a[_0x487389(0x16f)]((_0x469012,_0x5c3072)=>{const _0x7c3443=_0x487389,_0x5941d2={'eventID':g['CollaborationEvent'][_0x7c3443(0x360)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':B[_0x7c3443(0x27e)](_0x469012,_0x5c3072[_0x7c3443(0x20c)])}};this[_0x7c3443(0x2d9)]['send'](_0x5941d2,this[_0x7c3443(0x123)]);},gt)),(this[_0x487389(0x123)]=_0x57d372,this[_0x487389(0x2d9)]=_0x59ede2,this[_0x487389(0x2f4)]=_0x1e5465,this[_0x487389(0x181)]=_0x2e3203,this['_memberService']=_0x742f39,this[_0x487389(0x33a)]=_0x31fe23,this[_0x487389(0x318)]=_0x24ef3b,this[_0x487389(0x214)]=_0x3dee8f);}get[_0x13f674(0x2ec)](){const _0x31c5c2=_0x13f674;return this['_cursorInfo$'][_0x31c5c2(0x1bd)]();}get[_0x13f674(0x2c4)](){const _0x25736e=_0x13f674;return this[_0x25736e(0x175)][_0x25736e(0x1bd)]();}['dispose'](){const _0x4dd443=_0x13f674;super['dispose'](),this[_0x4dd443(0x249)][_0x4dd443(0x3b4)](new Map()),this[_0x4dd443(0x249)][_0x4dd443(0x3b3)](),this[_0x4dd443(0x175)][_0x4dd443(0x3b4)]([]),this[_0x4dd443(0x175)]['complete']();}[_0x13f674(0x23c)](){const _0x1258ae=_0x13f674;this['_init']||(this[_0x1258ae(0x11f)]=!0x0,this[_0x1258ae(0x2d9)]['sessionStatus$'][_0x1258ae(0x274)](I[_0x1258ae(0x258)](this[_0x1258ae(0x1c1)]))[_0x1258ae(0x271)](_0x5eb894=>{const _0x530893=_0x1258ae;_0x5eb894===u[_0x530893(0x30e)][_0x530893(0x198)]?this['_toggleOnline']():this[_0x530893(0x1c4)]();}),this[_0x1258ae(0x2d9)]['event$']['pipe'](I[_0x1258ae(0x258)](this[_0x1258ae(0x1c1)]))['subscribe'](_0x4783bc=>{const _0x536a53=_0x1258ae,_0x4b1240=_0x4783bc[_0x536a53(0x3b6)];_0x4b1240===g['CollaborationEvent'][_0x536a53(0x360)]&&this[_0x536a53(0x1fc)](_0x4783bc),_0x4b1240===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x536a53(0x386)](_0x4783bc);}),this[_0x1258ae(0x3a1)](),this[_0x1258ae(0x347)](this[_0x1258ae(0x318)]['onCommandExecuted'](_0x4708f5=>{const _0x7c97f9=_0x1258ae;if(this[_0x7c97f9(0x12b)]&&_0x4708f5['id']===v['SetSelectionsOperation']['id']&&_0x4708f5[_0x7c97f9(0x17c)][_0x7c97f9(0x2b9)]===this[_0x7c97f9(0x123)]){const _0xf7aedc=_0x4708f5['params'];this[_0x7c97f9(0xf8)](_0xf7aedc[_0x7c97f9(0x167)],_0xf7aedc[_0x7c97f9(0x1b5)][0x0]);}})));}[_0x13f674(0x1fc)](_0xc9220f){const _0x43d7b5=_0x13f674;var _0x2350c1,_0x12dfbf;const {memberID:_0x38cb8f,selection:_0x29e359}=_0xc9220f[_0x43d7b5(0x177)],{sheetName:_0x5c43b8,range:_0x89dd7e}=B[_0x43d7b5(0x25a)](_0x29e359),_0x2fba04={'name':(_0x12dfbf=(_0x2350c1=this[_0x43d7b5(0x2ae)][_0x43d7b5(0x391)](this[_0x43d7b5(0x123)],_0x38cb8f))==null?void 0x0:_0x2350c1[_0x43d7b5(0x26b)])!=null?_0x12dfbf:_0x43d7b5(0x1e1),'range':this['_getMergeRange'](_0x5c43b8,_0x89dd7e),'sheetID':_0x5c43b8,'color':this[_0x43d7b5(0x181)][_0x43d7b5(0x356)](_0x38cb8f),'selection':_0x29e359},_0x5f37e1=this[_0x43d7b5(0x2ec)];_0x5f37e1[_0x43d7b5(0x38c)](_0x38cb8f,_0x2fba04),this[_0x43d7b5(0x249)]['next'](_0x5f37e1);}[_0x13f674(0x386)](_0x168054){const _0x248d9d=_0x13f674,{memberID:_0x8b9ca1}=_0x168054[_0x248d9d(0x177)],_0x1fed9e=this[_0x248d9d(0x2ec)];_0x1fed9e[_0x248d9d(0x252)](_0x8b9ca1),this['_cursorInfo$'][_0x248d9d(0x3b4)](_0x1fed9e);}[_0x13f674(0x13a)](_0x5d8bea,_0x555dd8){const _0x318aeb=_0x13f674;var _0x4471b1,_0x2c733d;const _0xa3d87e=(_0x2c733d=(_0x4471b1=this[_0x318aeb(0x33a)]['getUniverSheetInstance'](this[_0x318aeb(0x123)]))==null?void 0x0:_0x4471b1[_0x318aeb(0x23a)](_0x5d8bea))==null?void 0x0:_0x2c733d[_0x318aeb(0x345)]();return(_0xa3d87e==null?void 0x0:_0xa3d87e[_0x318aeb(0x390)](_0x2cc43d=>a[_0x318aeb(0x259)][_0x318aeb(0x28d)](_0x2cc43d,_0x555dd8)))||_0x555dd8;}[_0x13f674(0x3a1)](){const _0x471beb=_0x13f674,_0x160c92=new a[(_0x471beb(0x2fd))](),_0x18ab92=Et(),_0x3884b0=()=>{const _0x5cc855=_0x471beb;_0x160c92[_0x5cc855(0x163)]();const _0x3d584d=(_0x460026,_0x119ee8,_0x40d978,_0x34927c)=>{const _0x190a53=_0x5cc855;let _0x49acf2=[];switch(_0x460026['id']){case v[_0x190a53(0x1a3)][_0x190a53(0x21c)]:{_0x49acf2=v['handleDeleteRangeMoveLeft'](_0x460026,_0x34927c);break;}case v['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x49acf2=v[_0x190a53(0x2ed)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)][_0x190a53(0x385)]:{_0x49acf2=v[_0x190a53(0x237)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)][_0x190a53(0x2fc)]:{_0x49acf2=v[_0x190a53(0x2d5)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)][_0x190a53(0x246)]:{_0x49acf2=v[_0x190a53(0x22c)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)]['InsertRowCommandId']:{_0x49acf2=v[_0x190a53(0x20a)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)]['MoveRangeCommandId']:{_0x49acf2=v[_0x190a53(0x145)](_0x460026,_0x34927c);break;}case v['EffectRefRangId'][_0x190a53(0x240)]:{_0x49acf2=v[_0x190a53(0x12f)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)][_0x190a53(0x19d)]:{_0x49acf2=v[_0x190a53(0x393)](_0x460026,_0x34927c);break;}}const _0x10f7cd=v[_0x190a53(0x188)](_0x49acf2,_0x34927c),_0x5a2538=this[_0x190a53(0x2ec)][_0x190a53(0x1ab)](_0x119ee8);if(_0x5a2538&&_0x10f7cd){const _0x598e56={..._0x5a2538,'range':_0x10f7cd};this[_0x190a53(0x2ec)][_0x190a53(0x38c)](_0x119ee8,_0x598e56),_0x18ab92(()=>{const _0x2a7ddd=_0x190a53,_0x2e9174=this['_refRangeService']['registerRefRange'](_0x10f7cd,_0x41ca1a=>(_0x2e9174[_0x2a7ddd(0x163)](),_0x3d584d(_0x41ca1a,_0x119ee8,_0x40d978,_0x10f7cd)));_0x160c92[_0x2a7ddd(0x388)](_0x2e9174);});}return{'redos':[],'undos':[]};};this[_0x5cc855(0x2ec)][_0x5cc855(0x234)]((_0x1e5089,_0x109658)=>{const _0x1e1487=_0x5cc855,{range:_0x133494,sheetID:_0x57dfcc}=_0x1e5089,_0x22b843=this[_0x1e1487(0x214)]['registerRefRange'](_0x133494,_0x344f05=>(_0x22b843['dispose'](),_0x3d584d(_0x344f05,_0x109658,_0x57dfcc,_0x133494)));_0x160c92[_0x1e1487(0x388)](_0x22b843);});};this['disposeWithMe'](a[_0x471beb(0x2b3)](this[_0x471beb(0x249)][_0x471beb(0x271)](()=>{_0x3884b0();})));}[_0x13f674(0x166)](){const _0x1c80a6=_0x13f674;var _0x1f6f41,_0x2f51a1;if(this[_0x1c80a6(0x12b)]=!0x0,((_0x1f6f41=this[_0x1c80a6(0x33a)][_0x1c80a6(0x2db)]())==null?void 0x0:_0x1f6f41[_0x1c80a6(0x15e)]())!==this[_0x1c80a6(0x123)])return;const _0x5c4097=(_0x2f51a1=this[_0x1c80a6(0x2f4)][_0x1c80a6(0x1ab)](v[_0x1c80a6(0x1bf)])[_0x1c80a6(0x325)]())==null?void 0x0:_0x2f51a1[0x0],_0x55a54a=this['_univerInstanceService'][_0x1c80a6(0x1e4)](a['UniverInstanceType'][_0x1c80a6(0x147)])[_0x1c80a6(0x2d7)]();_0x5c4097&&_0x55a54a&&this[_0x1c80a6(0xf8)](_0x55a54a['getSheetId'](),_0x5c4097);}[_0x13f674(0x1c4)](){const _0xa59ce4=_0x13f674;this[_0xa59ce4(0x12b)]=!0x1;}};ge=mt([w(0x2,a[_0x13f674(0x2d0)](a['Injector'])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x13f674(0x2d0)](u[_0x13f674(0x154)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x13f674(0x39c)]),w(0x7,a[_0x13f674(0x2d0)](v['RefRangeService']))],ge);var Ct=Object[_0x13f674(0x2a3)],pt=(_0x3079b8,_0x42808b,_0x4440b4,_0x3b62e0)=>{const _0x3faeec=_0x13f674;for(var _0xad1c3e=_0x3b62e0>0x1?void 0x0:_0x3b62e0?Ct(_0x42808b,_0x4440b4):_0x42808b,_0xe7b469=_0x3079b8[_0x3faeec(0x187)]-0x1,_0x3b24eb;_0xe7b469>=0x0;_0xe7b469--)(_0x3b24eb=_0x3079b8[_0xe7b469])&&(_0xad1c3e=_0x3b24eb(_0xad1c3e)||_0xad1c3e);return _0xad1c3e;},ce=(_0x4076dd,_0x23e30f)=>(_0x234f6c,_0x4d0d48)=>_0x23e30f(_0x234f6c,_0x4d0d48,_0x4076dd);let F=class extends a['RxDisposable']{constructor(_0x110be9,_0x4ecb6c,_0x526022){const _0x49b84b=_0x13f674;super(),_(this,'_entities',new Map()),_(this,_0x49b84b(0x24a),new I['Subject']()),(this['_univerInstanceService']=_0x110be9,this['_injector']=_0x4ecb6c,this['_collabSessionService']=_0x526022,this[_0x49b84b(0x11f)]());}[_0x13f674(0x163)](){const _0x5e0058=_0x13f674;super[_0x5e0058(0x163)](),this['_entityInit$'][_0x5e0058(0x3b3)](),this[_0x5e0058(0x138)][_0x5e0058(0x234)](_0x36dc69=>_0x36dc69[_0x5e0058(0x163)]());}[_0x13f674(0x22e)](_0x3331ad){const _0x399402=_0x13f674;return this['_entities'][_0x399402(0x2f0)](_0x3331ad)?this[_0x399402(0x138)][_0x399402(0x1ab)](_0x3331ad)[_0x399402(0x165)]:this[_0x399402(0x24a)][_0x399402(0x274)](I[_0x399402(0x16d)](_0x36073b=>_0x36073b[_0x399402(0x123)]===_0x3331ad),I[_0x399402(0x33e)](_0x3b9d35=>_0x3b9d35['cursorInfo$']));}[_0x13f674(0x11f)](){const _0x7b7f24=_0x13f674;this[_0x7b7f24(0x33a)]['getTypeOfUnitAdded$'](a[_0x7b7f24(0x14d)][_0x7b7f24(0x147)])['pipe'](I[_0x7b7f24(0x258)](this[_0x7b7f24(0x1c1)]))[_0x7b7f24(0x271)](async _0x31527c=>{const _0x56423f=_0x7b7f24,_0x5ca0f4=_0x31527c[_0x56423f(0x15e)](),_0x38d11f=await this['_startSheetCollabCursor'](_0x5ca0f4);this[_0x56423f(0x24a)][_0x56423f(0x3b4)](_0x38d11f),this[_0x56423f(0x138)]['set'](_0x5ca0f4,_0x38d11f);}),this[_0x7b7f24(0x33a)][_0x7b7f24(0x217)](a['UniverInstanceType'][_0x7b7f24(0x2ce)])[_0x7b7f24(0x274)](I[_0x7b7f24(0x258)](this[_0x7b7f24(0x1c1)]))[_0x7b7f24(0x274)](I[_0x7b7f24(0x16d)](_0x1f730f=>!_0x1f730f[_0x7b7f24(0x15e)]()[_0x7b7f24(0x112)]('__')))['subscribe'](async _0x2632dc=>{const _0x1f6b7c=_0x7b7f24,_0x35f606=_0x2632dc[_0x1f6b7c(0x15e)](),_0x4cd1b9=await this[_0x1f6b7c(0x269)](_0x35f606);this[_0x1f6b7c(0x24a)][_0x1f6b7c(0x3b4)](_0x4cd1b9),this[_0x1f6b7c(0x138)][_0x1f6b7c(0x38c)](_0x35f606,_0x4cd1b9);}),I['merge'](this[_0x7b7f24(0x33a)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x7b7f24(0x2ce)]),this['_univerInstanceService'][_0x7b7f24(0x193)](a['UniverInstanceType'][_0x7b7f24(0x147)]))[_0x7b7f24(0x274)](I[_0x7b7f24(0x258)](this['dispose$']))[_0x7b7f24(0x271)](_0x494464=>{const _0x1d0b3c=_0x7b7f24,_0x3c9356=_0x494464[_0x1d0b3c(0x15e)](),_0x4f5065=this[_0x1d0b3c(0x138)][_0x1d0b3c(0x1ab)](_0x3c9356);_0x4f5065&&(_0x4f5065[_0x1d0b3c(0x163)](),this[_0x1d0b3c(0x138)][_0x1d0b3c(0x252)](_0x3c9356));});}async[_0x13f674(0x34d)](_0x353048){const _0xd8391f=_0x13f674,_0x1bf877=await this[_0xd8391f(0x266)]['requireSession'](_0x353048),_0x3a0a3a=this[_0xd8391f(0x2f4)][_0xd8391f(0x186)](ge,_0x353048,_0x1bf877);return _0x3a0a3a[_0xd8391f(0x23c)](),_0x3a0a3a;}async[_0x13f674(0x269)](_0x57c542){const _0x5f2f7a=_0x13f674,_0x3833df=await this[_0x5f2f7a(0x266)]['requireSession'](_0x57c542),_0x590cfa=this[_0x5f2f7a(0x2f4)][_0x5f2f7a(0x186)](ve,_0x57c542,_0x3833df);return _0x590cfa['init'](),_0x590cfa;}};F=pt([ce(0x0,a[_0x13f674(0xf2)]),ce(0x1,a[_0x13f674(0x2d0)](a['Injector'])),ce(0x2,a['Inject'](u[_0x13f674(0x159)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x262199,_0x142b01){const _0x12c918=_0x13f674;let {radius:_0x5c48bc,width:_0x31a58a,height:_0x4f3ad9}=_0x142b01;_0x5c48bc=_0x5c48bc!=null?_0x5c48bc:0x0,_0x31a58a=_0x31a58a!=null?_0x31a58a:0x1e,_0x4f3ad9=_0x4f3ad9!=null?_0x4f3ad9:0x1e;let _0x593372=0x0,_0x551a7f=0x0,_0x5031ea=0x0;_0x593372=_0x551a7f=_0x5031ea=Math['min'](_0x5c48bc,_0x31a58a/0x2,_0x4f3ad9/0x2),_0x262199[_0x12c918(0x36d)](),_0x262199[_0x12c918(0x1c9)](_0x593372,0x0),_0x262199[_0x12c918(0x124)](_0x31a58a-_0x551a7f,0x0),_0x262199[_0x12c918(0x32b)](_0x31a58a-_0x551a7f,_0x551a7f,_0x551a7f,Math['PI']*0x3/0x2,0x0,!0x1),_0x262199[_0x12c918(0x124)](_0x31a58a,_0x4f3ad9-_0x5031ea),_0x262199[_0x12c918(0x32b)](_0x31a58a-_0x5031ea,_0x4f3ad9-_0x5031ea,_0x5031ea,0x0,Math['PI']/0x2,!0x1),_0x262199[_0x12c918(0x124)](0x0,_0x4f3ad9),_0x262199['lineTo'](0x0,_0x593372),_0x262199[_0x12c918(0x32b)](_0x593372,_0x593372,_0x593372,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x262199[_0x12c918(0x35b)](),_0x142b01[_0x12c918(0x152)]&&(_0x262199['save'](),_0x262199[_0x12c918(0x149)]=_0x142b01[_0x12c918(0x152)],_0x142b01[_0x12c918(0x23d)]==='evenodd'?_0x262199[_0x12c918(0x152)](_0x12c918(0x2c9)):_0x262199[_0x12c918(0x152)](),_0x262199[_0x12c918(0x327)]());}class re extends C[_0x13f674(0x104)]{constructor(_0x48f49f,_0x382d70){const _0x29a700=_0x13f674;super(_0x48f49f,_0x382d70),_(this,_0x29a700(0xf9)),_(this,_0x29a700(0x280)),(this[_0x29a700(0xf9)]=_0x382d70==null?void 0x0:_0x382d70[_0x29a700(0xf9)],this[_0x29a700(0x280)]=_0x382d70==null?void 0x0:_0x382d70[_0x29a700(0x280)]);}static[_0x13f674(0x1e6)](_0x2305e2,_0x3f8197){const _0x337119=_0x13f674,{text:_0x1732df,color:_0xcd71f0}=_0x3f8197;_0x2305e2[_0x337119(0x2ad)](),_0x2305e2[_0x337119(0x3b2)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x64085=_0x2305e2[_0x337119(0x1ad)](_0x1732df)['width'],_0x33965a=Math[_0x337119(0x2fb)](_0x64085+0x2*le,Ue);Ot(_0x2305e2,{'height':X,'radius':0x4,'width':_0x33965a,'fill':_0xcd71f0}),_0x2305e2[_0x337119(0x149)]=_0x337119(0x12d);const _0x21e53f=le,_0x59feeb=X-Tt,_0xaf7d7=Ue-0x2*le;if(_0x64085>_0xaf7d7){let _0x550565='',_0x3438dc=0x0;for(const _0x4afe64 of _0x1732df){const _0x3ebf03=_0x2305e2[_0x337119(0x1ad)](_0x4afe64)['width'];if(_0x3438dc+_0x3ebf03<=_0xaf7d7-_0x2305e2[_0x337119(0x1ad)](_0x337119(0x2ff))[_0x337119(0x13d)])_0x550565+=_0x4afe64,_0x3438dc+=_0x3ebf03;else{_0x550565+=_0x337119(0x2ff);break;}}_0x2305e2[_0x337119(0x28b)](_0x550565,_0x21e53f,_0x59feeb);}else _0x2305e2[_0x337119(0x28b)](_0x1732df,_0x21e53f,_0x59feeb);_0x2305e2[_0x337119(0x327)]();}[_0x13f674(0x20b)](_0x5328c5){const _0x2ee12f=_0x13f674;re[_0x2ee12f(0x1e6)](_0x5328c5,this);}}const _e=_0x13f674(0x292),Rt=_0x13f674(0x1f7),bt=_0x13f674(0x277),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x2d56c1,_0x13b47a,_0x4f79ff,_0x2dacdf){const _0x5abed2=_0x13f674;_(this,_0x5abed2(0x315),[]),_(this,'_anchor',null),_(this,_0x5abed2(0x3a8),null),_(this,_0x5abed2(0x24c),null),_(this,_0x5abed2(0x299),null),_(this,_0x5abed2(0x223),null),(this[_0x5abed2(0x18a)]=_0x2d56c1,this[_0x5abed2(0x185)]=_0x13b47a,this['_docSkeleton']=_0x4f79ff,this[_0x5abed2(0x2d8)]=_0x2dacdf,this[_0x5abed2(0x309)]());}set[_0x13f674(0x336)](_0x5cded9){const _0x4aeaf9=_0x13f674;_0x5cded9?(this[_0x4aeaf9(0x24c)]&&this[_0x4aeaf9(0x24c)][_0x4aeaf9(0x380)](),this[_0x4aeaf9(0x3a8)]&&this[_0x4aeaf9(0x3a8)]['show']()):(this['_anchorDot']&&this[_0x4aeaf9(0x24c)][_0x4aeaf9(0x1b4)](),this[_0x4aeaf9(0x3a8)]&&this[_0x4aeaf9(0x3a8)][_0x4aeaf9(0x380)]());}[_0x13f674(0x163)](){const _0x1ddbcf=_0x13f674;for(const _0x1b0411 of this[_0x1ddbcf(0x315)])_0x1b0411['dispose']();this[_0x1ddbcf(0x3a8)]&&this[_0x1ddbcf(0x3a8)][_0x1ddbcf(0x163)](),this[_0x1ddbcf(0x24c)]&&this['_anchorDot'][_0x1ddbcf(0x163)](),this[_0x1ddbcf(0x172)]&&this[_0x1ddbcf(0x172)][_0x1ddbcf(0x163)](),this['_eventUnsubscribe']&&this[_0x1ddbcf(0x223)]();}['_render'](){const _0xf19d74=_0x13f674;var _0x29b1b0;const {_docSkeleton:_0x30b131,_document:_0x17c639}=this,{color:_0x4ef409,name:_0x2ea294,ranges:_0xe9e700}=this[_0xf19d74(0x18a)],_0x37fede=_0x17c639[_0xf19d74(0x288)](),{docsLeft:_0x34de2b,docsTop:_0x340303}=_0x37fede,_0x6b00e1=new p[(_0xf19d74(0x276))](_0x37fede,_0x30b131);for(const {startOffset:_0x41cab0,endOffset:_0x554c6a,rangeType:_0x95a231,segmentId:_0x407a17,segmentPage:_0x2190e0,collapsed:_0x26f814,isActive:_0x5b1d79}of _0xe9e700){const _0x54bd9a=_0x30b131[_0xf19d74(0x2e6)](_0x41cab0,!0x0,_0x407a17,_0x2190e0);let _0x115d00=_0x30b131[_0xf19d74(0x2e6)](_0x554c6a,!0x0,_0x407a17,_0x2190e0);if(_0x115d00==null&&(_0x115d00=_0x30b131[_0xf19d74(0x2e6)](_0x554c6a-0x1,!0x1,_0x407a17,_0x2190e0)),_0x5b1d79){const {contentBoxPointGroup:_0x3e3653}=_0x6b00e1['getRangePointData'](_0x115d00,_0x115d00);if(_0x3e3653[_0xf19d74(0x187)]===0x0)continue;this[_0xf19d74(0x241)](_0x4ef409,_0x3e3653,_0x34de2b,_0x340303,_0x2ea294),this[_0xf19d74(0x223)]=this[_0xf19d74(0x1f0)]();}if(_0x54bd9a&&_0x115d00){if(_0x95a231===a[_0xf19d74(0x268)][_0xf19d74(0x2f3)]){const _0x5a43b3=new p['NodePositionConvertToRectRange'](_0x37fede,_0x30b131),{pointGroup:_0x549c54}=(_0x29b1b0=_0x5a43b3[_0xf19d74(0x284)](_0x54bd9a,_0x115d00))!=null?_0x29b1b0:{};if(_0x549c54==null||_0x549c54['length']===0x0)continue;this[_0xf19d74(0x16e)](_0x4ef409,_0x549c54,_0x34de2b,_0x340303);}else{if(!_0x26f814){const {borderBoxPointGroup:_0x597474}=_0x6b00e1[_0xf19d74(0x284)](_0x54bd9a,_0x115d00);if(_0x597474[_0xf19d74(0x187)]===0x0)continue;this[_0xf19d74(0x1d1)](_0x4ef409,_0x597474,_0x34de2b,_0x340303);}}}}}['_drawAnchor'](_0x15822c,_0x3ede21,_0x1dcf12,_0x3e72a6,_0x574bb2){const _0x1ced4c=_0x13f674,_0x129a30=this[_0x1ced4c(0x2e8)](_0x3ede21),{left:_0x2761f2,top:_0x51d697,height:_0x4ba4e0}=_0x129a30,_0x5c6df1=this[_0x1ced4c(0x1cd)](),_0x48a971=Nt/_0x5c6df1,_0x3d9140=new C[(_0x1ced4c(0x36b))](_e+a[_0x1ced4c(0x197)](H),{'left':_0x2761f2+_0x1dcf12-_0x48a971,'top':_0x51d697+_0x3e72a6,'height':_0x4ba4e0,'width':Dt,'fill':_0x15822c||C['getColor'](a[_0x1ced4c(0x21f)][_0x1ced4c(0x117)],0x0),'strokeWidth':_0x48a971,'stroke':Ut,'evented':!0x0});this[_0x1ced4c(0x172)]=_0x3d9140,this['_scene'][_0x1ced4c(0x263)](_0x3d9140,p[_0x1ced4c(0x20f)]);const _0x2dc416=new C[(_0x1ced4c(0x36b))](_e+a[_0x1ced4c(0x197)](H),{'left':_0x2761f2+_0x1dcf12-_0x48a971,'top':_0x51d697+_0x3e72a6-he/0x2,'height':he,'width':he,'fill':_0x15822c||C['getColor'](a[_0x1ced4c(0x21f)][_0x1ced4c(0x117)],0x0),'strokeWidth':0x0,'stroke':_0x15822c||C[_0x1ced4c(0x2ab)](a[_0x1ced4c(0x21f)][_0x1ced4c(0x117)],0x0),'evented':!0x1});this[_0x1ced4c(0x24c)]=_0x2dc416,this['_scene'][_0x1ced4c(0x263)](_0x2dc416,p[_0x1ced4c(0x20f)]);const _0x1188b3=new re(_e+a[_0x1ced4c(0x197)](H),{'left':_0x2761f2+_0x1dcf12-_0x48a971,'top':_0x51d697+_0x3e72a6-X,'text':_0x574bb2,'color':_0x15822c});this['_textBubble']=_0x1188b3,this[_0x1ced4c(0x185)]['addObject'](_0x1188b3,p[_0x1ced4c(0x20f)]),this[_0x1ced4c(0x336)]=!0x1;}[_0x13f674(0x1f0)](){const _0x96218e=_0x13f674,_0x346b90=this['_anchor'][_0x96218e(0x25e)][_0x96218e(0x2ef)](()=>{const _0x53a99d=_0x96218e;this[_0x53a99d(0x336)]=!0x0;}),_0x41d4fd=this[_0x96218e(0x172)][_0x96218e(0x218)]['subscribeEvent'](()=>{const _0x108da1=_0x96218e;this[_0x108da1(0x299)]&&clearTimeout(this[_0x108da1(0x299)]),this[_0x108da1(0x299)]=setTimeout(()=>{const _0x35172f=_0x108da1;this[_0x35172f(0x336)]=!0x1;},0x7d0);});return()=>{const _0x3ada8f=_0x96218e;_0x346b90[_0x3ada8f(0x35c)](),_0x41d4fd[_0x3ada8f(0x35c)]();};}[_0x13f674(0x1d1)](_0x499f28,_0x21ebae,_0x4c40b6,_0x1883e7){const _0x4d3e1f=_0x13f674,_0x3ed881=new a[(_0x4d3e1f(0x394))](_0x499f28)[_0x4d3e1f(0x1cc)](0.2)['toRgbString'](),_0x63a6d9=new C['RegularPolygon'](Rt+a[_0x4d3e1f(0x197)](H),{'pointsGroup':_0x21ebae,'fill':_0x3ed881||C[_0x4d3e1f(0x2ab)](a[_0x4d3e1f(0x21f)]['black'],0.2),'left':_0x4c40b6,'top':_0x1883e7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4d3e1f(0x315)][_0x4d3e1f(0x169)](_0x63a6d9),this['_scene']['addObject'](_0x63a6d9,p[_0x4d3e1f(0x20f)]);}['_drawRectRange'](_0x50faa0,_0xa59dce,_0x7afc3,_0xf75c82){const _0x1be1a8=_0x13f674,_0x445853=new a['ColorKit'](_0x50faa0)[_0x1be1a8(0x1cc)](0.2)[_0x1be1a8(0x366)](),_0xfe62ca=new C[(_0x1be1a8(0x341))](bt+a[_0x1be1a8(0x197)](H),{'pointsGroup':_0xa59dce,'fill':_0x445853||C[_0x1be1a8(0x2ab)](a[_0x1be1a8(0x21f)][_0x1be1a8(0x117)],0.2),'left':_0x7afc3,'top':_0xf75c82,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1be1a8(0x315)][_0x1be1a8(0x169)](_0xfe62ca),this['_scene'][_0x1be1a8(0x263)](_0xfe62ca,p[_0x1be1a8(0x20f)]);}['_getAnchorBounding'](_0x31cd12){const _0x4e4c6e=_0x31cd12[0x0],_0x4e5088=_0x4e4c6e[0x0],_0x2a4988=_0x4e4c6e[0x2],{x:_0x19196f,y:_0x5f3d6f}=_0x4e5088,{x:_0x31e339,y:_0x24f09e}=_0x2a4988;return{'left':_0x19196f,'top':_0x5f3d6f,'width':_0x31e339-_0x19196f,'height':_0x24f09e-_0x5f3d6f};}[_0x13f674(0x1cd)](){const _0x483985=_0x13f674,{scaleX:_0x3b36c1,scaleY:_0xaa3351}=this['_scene'][_0x483985(0x29a)]();return Math[_0x483985(0x19a)](_0x3b36c1,_0xaa3351);}}var Lt=Object[_0x13f674(0x2a3)],Mt=(_0x475132,_0x40a5e9,_0x32558a,_0x1ffa35)=>{const _0x1e8d61=_0x13f674;for(var _0x52708b=_0x1ffa35>0x1?void 0x0:_0x1ffa35?Lt(_0x40a5e9,_0x32558a):_0x40a5e9,_0x50c213=_0x475132[_0x1e8d61(0x187)]-0x1,_0x36ba57;_0x50c213>=0x0;_0x50c213--)(_0x36ba57=_0x475132[_0x50c213])&&(_0x52708b=_0x36ba57(_0x52708b)||_0x52708b);return _0x52708b;},q=(_0x33f8ab,_0x119530)=>(_0x184ea8,_0x124e5c)=>_0x119530(_0x184ea8,_0x124e5c,_0x33f8ab);let Ee=class extends a[_0x13f674(0x1c3)]{constructor(_0x51bbd0,_0x442402,_0x435cbe,_0x33ed0d,_0x4a2ce1){const _0x510b0d=_0x13f674;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x510b0d(0x209)]=_0x51bbd0,this[_0x510b0d(0x26d)]=_0x442402,this[_0x510b0d(0x2ac)]=_0x435cbe,this[_0x510b0d(0x318)]=_0x33ed0d,this[_0x510b0d(0x205)]=_0x4a2ce1,this[_0x510b0d(0x11f)]());}[_0x13f674(0x11f)](){const _0x43f7f7=_0x13f674,_0x35140f=this['_context'][_0x43f7f7(0x2b9)],_0x121824=this[_0x43f7f7(0x26d)];this[_0x43f7f7(0x347)](I[_0x43f7f7(0x2bc)]([this[_0x43f7f7(0x2ac)][_0x43f7f7(0x22e)](_0x35140f),this[_0x43f7f7(0x205)]['currentTheme$']])[_0x43f7f7(0x274)]($[_0x43f7f7(0x10a)](([_0x37a8d9,_0x98a72b])=>({'skeleton':_0x121824[_0x43f7f7(0x267)](),'cursors':[..._0x37a8d9[_0x43f7f7(0x28e)]()]['flatMap'](_0x2f6521=>({..._0x2f6521,'color':this[_0x43f7f7(0x205)][_0x43f7f7(0x3ae)](_0x2f6521[_0x43f7f7(0xf9)])}))})))[_0x43f7f7(0x271)](_0x57b2ff=>{const _0x394d04=_0x43f7f7;if(this[_0x394d04(0x229)](),_0x57b2ff){const {skeleton:_0x5ae68d,cursors:_0x45b662}=_0x57b2ff;this[_0x394d04(0x2d3)](_0x5ae68d,_0x45b662);}})),this['_initResize'](),this[_0x43f7f7(0x36f)]();}[_0x13f674(0x2d3)](_0x66bae0,_0x362251){const _0x3029ac=_0x13f674,{scene:_0x50d49c,mainComponent:_0x17813e}=this[_0x3029ac(0x209)],_0x5e6b64=_0x362251[_0x3029ac(0x10a)](_0x2e63b8=>new Le(_0x2e63b8,_0x50d49c,_0x66bae0,_0x17813e));this[_0x3029ac(0x317)]=_0x5e6b64,this[_0x3029ac(0x264)]=_0x362251;}['_refreshCollabCursors'](){const _0x2ae643=_0x13f674;this[_0x2ae643(0x229)]();const {scene:_0x26b778,mainComponent:_0x24bcbf}=this['_context'],_0x3a60ba=this[_0x2ae643(0x26d)]['getSkeleton'](),_0x8a22e3=this[_0x2ae643(0x264)][_0x2ae643(0x10a)](_0x57b691=>new Le(_0x57b691,_0x26b778,_0x3a60ba,_0x24bcbf));this['_cursorShapes']=_0x8a22e3;}[_0x13f674(0x229)](){const _0x5d3eed=_0x13f674;this[_0x5d3eed(0x317)][_0x5d3eed(0x234)](_0x1bad93=>_0x1bad93[_0x5d3eed(0x163)]()),this[_0x5d3eed(0x317)]=[];}[_0x13f674(0x36f)](){const _0x246c57=_0x13f674,_0x335f92=[p[_0x246c57(0x108)]['id']];this[_0x246c57(0x347)](this[_0x246c57(0x318)][_0x246c57(0x3a7)](_0x2089d4=>{const _0x30cafb=_0x246c57;_0x335f92['includes'](_0x2089d4['id'])&&_0x2089d4[_0x30cafb(0x17c)]['unitId']===this[_0x30cafb(0x209)][_0x30cafb(0x2b9)]&&this[_0x30cafb(0x2ee)]();}));}[_0x13f674(0x233)](){const _0x28726d=_0x13f674;this[_0x28726d(0x347)](a['fromEventSubject'](this['_context']['engine']['onTransformChange$'])['pipe']($[_0x28726d(0x16d)](_0xd895ea=>_0xd895ea[_0x28726d(0x10d)]===C[_0x28726d(0x1a1)][_0x28726d(0xf4)]),$['throttleTime'](0x10))[_0x28726d(0x271)](()=>{const _0x1c6dd8=_0x28726d;this[_0x1c6dd8(0x2ee)]();}));}};Ee=Mt([q(0x1,a['Inject'](V[_0x13f674(0x1ee)])),q(0x2,a[_0x13f674(0x2d0)](F)),q(0x3,a[_0x13f674(0x39c)]),q(0x4,a[_0x13f674(0x2d0)](a[_0x13f674(0x2a5)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x13f674(0x104)]{constructor(_0x19591c,_0x441c74){const _0x2c5bf8=_0x13f674;super(_0x19591c,_0x441c74),_(this,_0x2c5bf8(0x151)),_(this,'_hovered',!0x1),_(this,_0x2c5bf8(0x31c)),_(this,_0x2c5bf8(0x1ea),''),_(this,'_labelPosition','top'),_(this,_0x2c5bf8(0x128)),(_0x441c74&&this['setShapeProps'](_0x441c74),this[_0x2c5bf8(0x25e)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2c5bf8(0x218)][_0x2c5bf8(0x2ef)](()=>this[_0x2c5bf8(0x24e)]({'hovered':!0x1})));}[_0x13f674(0x24e)](_0x2d4c08){const _0x5c0eb1=_0x13f674;var _0x487b7c,_0x1d6897,_0x1ba88d,_0x695ca1,_0x11b701,_0x39493c;this['_color']=(_0x487b7c=_0x2d4c08['color'])!=null?_0x487b7c:this[_0x5c0eb1(0x151)],this['_hovered']=(_0x1d6897=_0x2d4c08['hovered'])!=null?_0x1d6897:this[_0x5c0eb1(0x1fa)],this[_0x5c0eb1(0x31c)]=(_0x1ba88d=_0x2d4c08['range'])!=null?_0x1ba88d:this[_0x5c0eb1(0x31c)],this['_name']=(_0x695ca1=_0x2d4c08[_0x5c0eb1(0x26b)])!=null?_0x695ca1:this['_name'],this[_0x5c0eb1(0x282)]=(_0x11b701=_0x2d4c08['labelPosition'])!=null?_0x11b701:this[_0x5c0eb1(0x282)],this[_0x5c0eb1(0x128)]=(_0x39493c=_0x2d4c08['backgroundColor'])!=null?_0x39493c:this[_0x5c0eb1(0x128)],this[_0x5c0eb1(0x100)]({'width':_0x2d4c08[_0x5c0eb1(0x13d)],'height':_0x2d4c08[_0x5c0eb1(0x18c)]});}[_0x13f674(0x242)](_0x583398){const _0x26db8c=_0x13f674,{row:_0x4a4ec1,column:_0xa43d09}=_0x583398;if(_0x4a4ec1>=this[_0x26db8c(0x31c)][_0x26db8c(0x189)]&&_0x4a4ec1<=this['_range'][_0x26db8c(0x1dd)]&&_0xa43d09>=this[_0x26db8c(0x31c)][_0x26db8c(0x255)]&&_0xa43d09<=this['_range'][_0x26db8c(0x1b8)]){this[_0x26db8c(0x24e)]({'hovered':!0x0});return;}this[_0x26db8c(0x24e)]({'hovered':!0x1});}[_0x13f674(0x305)](_0x514d40){return!0x1;}[_0x13f674(0x20b)](_0x1633ca){const _0x506997=_0x13f674;C[_0x506997(0x36b)][_0x506997(0x1e6)](_0x1633ca,{'width':this[_0x506997(0x13d)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x506997(0x151)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x506997(0x1fa)]&&(_0x1633ca['save'](),_0x1633ca[_0x506997(0x287)](0x1,0x0,0x0,0x1,this[_0x506997(0x13d)],this[_0x506997(0x282)]===_0x506997(0x10c)?0x0:-X),re[_0x506997(0x1e6)](_0x1633ca,{'text':this[_0x506997(0x1ea)],'color':this[_0x506997(0x151)]}),_0x1633ca[_0x506997(0x327)]());}}var wt=Object[_0x13f674(0x2a3)],yt=(_0x4717f5,_0x396351,_0x22594d,_0x51b57e)=>{for(var _0x91b696=_0x51b57e>0x1?void 0x0:_0x51b57e?wt(_0x396351,_0x22594d):_0x396351,_0x29a760=_0x4717f5['length']-0x1,_0x4c7c40;_0x29a760>=0x0;_0x29a760--)(_0x4c7c40=_0x4717f5[_0x29a760])&&(_0x91b696=_0x4c7c40(_0x91b696)||_0x91b696);return _0x91b696;},ue=(_0x42e76e,_0x5c1f2a)=>(_0x4d7ef2,_0x179d6a)=>_0x5c1f2a(_0x4d7ef2,_0x179d6a,_0x42e76e);const $t=0x1389;let Ce=class extends a[_0x13f674(0x1c3)]{constructor(_0x51fc65,_0x5a50bb,_0xf81ab7,_0x51e829){const _0x2ffa8c=_0x13f674;super(),_(this,_0x2ffa8c(0x264),new Set()),_(this,'_lastPointer',null),(this[_0x2ffa8c(0x209)]=_0x51fc65,this[_0x2ffa8c(0x313)]=_0x5a50bb,this['_collabCursorController']=_0xf81ab7,this[_0x2ffa8c(0x205)]=_0x51e829,this[_0x2ffa8c(0x11f)]());}[_0x13f674(0x11f)](){const _0x27cd19=_0x13f674;this[_0x27cd19(0x313)][_0x27cd19(0x2df)]['pipe']($[_0x27cd19(0x258)](this['dispose$']),$['switchMap'](_0x272870=>{const _0x40d630=_0x27cd19;if(_0x272870){const _0x4ef369=_0x272870['sheetId'];return I['combineLatest'](this[_0x40d630(0x2ac)]['getCollabCursors$'](this[_0x40d630(0x209)][_0x40d630(0x2b9)]),this[_0x40d630(0x205)][_0x40d630(0x1ec)])[_0x40d630(0x274)]($['map'](([_0x590de0,_0x44a5f2])=>{const _0x429d0b=_0x40d630,_0xf8402c=new Map();return _0x590de0[_0x429d0b(0x234)]((_0x1740f9,_0x21405f)=>{const _0x17d96e=_0x429d0b;if(_0x1740f9[_0x17d96e(0x150)]===_0x4ef369){const _0x1d500e={..._0x1740f9};_0x1d500e[_0x17d96e(0xf9)]=this[_0x17d96e(0x205)][_0x17d96e(0x3ae)](_0x1740f9[_0x17d96e(0xf9)]),_0xf8402c[_0x17d96e(0x38c)](_0x21405f,_0x1d500e);}}),{'skeleton':_0x272870,'cursors':_0xf8402c};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x27cd19(0x271)](({skeleton:_0x14fca2,cursors:_0x24c2e0})=>{const _0x386fe2=_0x27cd19;this[_0x386fe2(0x229)](),_0x14fca2&&this[_0x386fe2(0x2d3)](_0x14fca2,_0x24c2e0);}),this[_0x27cd19(0x313)][_0x27cd19(0x2df)][_0x27cd19(0x271)](_0x21ce9c=>{const _0x3e9521=_0x27cd19;if(_0x21ce9c==null)return;const {skeleton:_0x323714}=_0x21ce9c,{scene:_0x2b751b}=this[_0x3e9521(0x209)];_0x2b751b[_0x3e9521(0x1de)][_0x3e9521(0x2ef)](a[_0x3e9521(0x16f)](_0x1f0cd9=>{const _0x117e2b=_0x3e9521;var _0x1f56a9,_0x2ae044;const {offsetX:_0xd53d08,offsetY:_0x136e82}=_0x1f0cd9,{x:_0x4803cc,y:_0x481ccd}=_0x2b751b['getRelativeToViewportCoord'](C[_0x117e2b(0x2fa)][_0x117e2b(0x25c)]([_0xd53d08,_0x136e82])),{scaleX:_0x595e16,scaleY:_0x360a94}=_0x2b751b['getAncestorScale'](),_0x1f7ea9=_0x2b751b['getViewport'](C[_0x117e2b(0x273)][_0x117e2b(0x2a6)]),_0x5f12cc=_0x2b751b[_0x117e2b(0x2b1)](C[_0x117e2b(0x2fa)][_0x117e2b(0x25c)]([_0x4803cc,_0x481ccd]),_0x1f7ea9),_0xd396cd=_0x323714[_0x117e2b(0x39f)](_0xd53d08,_0x136e82,_0x595e16,_0x360a94,_0x5f12cc);((_0x1f56a9=this[_0x117e2b(0x384)])==null?void 0x0:_0x1f56a9[_0x117e2b(0x17e)])===_0xd396cd['column']&&((_0x2ae044=this[_0x117e2b(0x384)])==null?void 0x0:_0x2ae044[_0x117e2b(0x119)])===_0xd396cd['row']||this[_0x117e2b(0x264)]['forEach'](_0x3e7ca0=>{const _0x4c7c03=_0x117e2b;_0x3e7ca0[_0x4c7c03(0x242)](_0xd396cd);});},0x64));});}[_0x13f674(0x2d3)](_0xee261e,_0x3b0700){const _0x66724e=_0x13f674;var _0x567424;const _0x5ed8e3=(_0x567424=this[_0x66724e(0x313)][_0x66724e(0x31b)]())==null?void 0x0:_0x567424[_0x66724e(0x132)];if(!_0x5ed8e3)return;const _0x54c3cb=this['_getSheetObject']();if(!_0x54c3cb)return;this[_0x66724e(0x264)][_0x66724e(0x234)](_0x454eb1=>{const _0x5540ae=_0x66724e;_0x454eb1[_0x5540ae(0x355)]();});const {scene:_0x3958fb}=_0x54c3cb,_0x2f6ac2=xt(Array[_0x66724e(0x178)](_0x3b0700[_0x66724e(0x28e)]()))[_0x66724e(0x10a)](_0x2c1bb4=>{const _0x2ce087=_0x66724e,{color:_0x268ce7,range:_0x5cdfdd,name:_0x374c95,selection:_0x43c085,sheetID:_0x2ded8e}=_0x2c1bb4,{startColumn:_0x24de3e,startRow:_0x51cde8,endColumn:_0x2e2ecc,endRow:_0x31a951}=_0x5cdfdd,_0x4c1044=J['getCoordByCell'](_0x51cde8,_0x24de3e,_0x3958fb,_0x5ed8e3),_0x74682=J[_0x2ce087(0x1c8)](_0x31a951,_0x2e2ecc,_0x3958fb,_0x5ed8e3),{columnHeaderHeightAndMarginTop:_0x2f0510}=_0x5ed8e3,{startX:_0x5202d6,startY:_0x4a3ea0}=_0x4c1044,{endX:_0x150b2d,endY:_0x4b67a9}=_0x74682,_0x481afb=_0x150b2d-_0x5202d6,_0x4fba04=_0x4b67a9-_0x4a3ea0,_0x33713a={'labelPosition':_0x4a3ea0-_0x2f0510>=X?_0x2ce087(0x12e):_0x2ce087(0x10c),'sheetID':_0x2ded8e,'range':_0x5cdfdd,'color':_0x268ce7,'name':_0x374c95,'selection':_0x43c085,'left':_0x5202d6,'top':_0x4a3ea0,'width':_0x481afb,'height':_0x4fba04,'evented':!0x1,'zIndex':$t};return new je(_0x374c95,_0x33713a);});_0x3958fb[_0x66724e(0x333)](_0x2f6ac2,At),this[_0x66724e(0x264)]=new Set(_0x2f6ac2);}[_0x13f674(0x229)](){const _0x5648df=_0x13f674;var _0x414dbb;(_0x414dbb=this['_cursors'])==null||_0x414dbb[_0x5648df(0x234)](_0x10d175=>_0x10d175[_0x5648df(0x163)]());}[_0x13f674(0x3b0)](){const _0x297122=_0x13f674;return J[_0x297122(0x381)](this[_0x297122(0x209)][_0x297122(0x349)],this[_0x297122(0x209)]);}};Ce=yt([ue(0x1,a[_0x13f674(0x2d0)](J[_0x13f674(0x293)])),ue(0x2,a[_0x13f674(0x2d0)](F)),ue(0x3,a['Inject'](a['ThemeService']))],Ce);function _0x2045(_0x284d54,_0x40f79e){const _0x129525=_0x1295();return _0x2045=function(_0x204547,_0x3fd44f){_0x204547=_0x204547-0xe9;let _0x51dc73=_0x129525[_0x204547];return _0x51dc73;},_0x2045(_0x284d54,_0x40f79e);}function xt(_0x4213a6){const _0x42af39=_0x13f674,_0x29f7e2=new Map();return _0x4213a6[_0x42af39(0x234)](_0x41a4d1=>{const _0x1fb1f2=_0x42af39;if(_0x29f7e2[_0x1fb1f2(0x2f0)](_0x41a4d1[_0x1fb1f2(0x2e1)])){const _0x2563c1=_0x29f7e2[_0x1fb1f2(0x1ab)](_0x41a4d1[_0x1fb1f2(0x2e1)]);_0x2563c1[_0x1fb1f2(0x26b)]+=',\x20'+_0x41a4d1[_0x1fb1f2(0x26b)];}else _0x29f7e2[_0x1fb1f2(0x38c)](_0x41a4d1[_0x1fb1f2(0x2e1)],_0x41a4d1);}),Array[_0x42af39(0x178)](_0x29f7e2['values']());}var Bt=Object[_0x13f674(0x2a3)],Ft=(_0x3c6ecf,_0x40fbb8,_0x7a9fdc,_0x9ea0a5)=>{const _0x3deb9d=_0x13f674;for(var _0x6dd7a4=_0x9ea0a5>0x1?void 0x0:_0x9ea0a5?Bt(_0x40fbb8,_0x7a9fdc):_0x40fbb8,_0x3d2da7=_0x3c6ecf[_0x3deb9d(0x187)]-0x1,_0x1ef38e;_0x3d2da7>=0x0;_0x3d2da7--)(_0x1ef38e=_0x3c6ecf[_0x3d2da7])&&(_0x6dd7a4=_0x1ef38e(_0x6dd7a4)||_0x6dd7a4);return _0x6dd7a4;},y=(_0x293b53,_0x6038ea)=>(_0x57bc8e,_0x222695)=>_0x6038ea(_0x57bc8e,_0x222695,_0x293b53);let Z=class extends a[_0x13f674(0x335)]{constructor(_0x562050,_0x2e8aec,_0x2c33c6,_0x4a15fe,_0x398d2d,_0x930139){const _0x5970c1=_0x13f674;super(),this[_0x5970c1(0x2ea)]=_0x562050,this[_0x5970c1(0x20d)]=_0x2e8aec,this[_0x5970c1(0x375)]=_0x2c33c6,this[_0x5970c1(0x37e)]=_0x4a15fe,this['_notificationService']=_0x398d2d,this['_localeService']=_0x930139,this['_setupBeforeClosingHandler'](),this[_0x5970c1(0x2af)]();}[_0x13f674(0x1a0)](){const _0x4755f9=_0x13f674;this[_0x4755f9(0x347)](this[_0x4755f9(0x2ea)]['registerBeforeClose'](()=>{const _0x487c2e=_0x4755f9;if(this['_localCacheService'][_0x487c2e(0x301)][_0x487c2e(0x340)])return this['_localeService']['t'](_0x487c2e(0x372));}));}[_0x13f674(0x2af)](){const _0x483c29=_0x13f674;this[_0x483c29(0x347)](this['_collaborationUIEventService']['event$'][_0x483c29(0x271)](_0x33336d=>{const _0x5b8e9c=_0x483c29;_0x33336d['id']===u[_0x5b8e9c(0x29b)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x5b8e9c(0x1b4)]({'type':T['MessageType'][_0x5b8e9c(0x2cc)],'content':this[_0x5b8e9c(0x36a)]['t'](_0x5b8e9c(0x2f9))}),_0x33336d['id']===u[_0x5b8e9c(0x29b)][_0x5b8e9c(0x18f)]&&this['_messageService']['show']({'type':T[_0x5b8e9c(0x364)]['Warning'],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x33336d['id']===u[_0x5b8e9c(0x29b)]['PERMISSION_DENIED']&&this[_0x5b8e9c(0x294)]['show']({'title':this[_0x5b8e9c(0x36a)]['t'](_0x5b8e9c(0x142)),'content':this['_localeService']['t'](_0x5b8e9c(0x116)),'type':_0x5b8e9c(0x2d4),'duration':0x0}),_0x33336d['id']===u['CollaborationUIEventId'][_0x5b8e9c(0x102)]&&this[_0x5b8e9c(0x37e)]['show']({'type':T[_0x5b8e9c(0x364)][_0x5b8e9c(0x24b)],'content':this[_0x5b8e9c(0x36a)]['t'](_0x5b8e9c(0x196))+'('+_0x33336d[_0x5b8e9c(0x177)]+')'}),_0x33336d['id']===u[_0x5b8e9c(0x29b)][_0x5b8e9c(0x1d6)]&&this['_messageService'][_0x5b8e9c(0x1b4)]({'type':T['MessageType'][_0x5b8e9c(0x2cc)],'content':this[_0x5b8e9c(0x36a)]['t'](_0x33336d['data']||'')}),_0x33336d['id']===u[_0x5b8e9c(0x29b)][_0x5b8e9c(0x278)]&&this[_0x5b8e9c(0x37e)][_0x5b8e9c(0x1b4)]({'type':T[_0x5b8e9c(0x364)][_0x5b8e9c(0x2cc)],'content':this[_0x5b8e9c(0x36a)]['t'](_0x5b8e9c(0x207))}),_0x33336d['id']===u[_0x5b8e9c(0x29b)][_0x5b8e9c(0x110)]&&this[_0x5b8e9c(0x37e)][_0x5b8e9c(0x1b4)]({'type':T[_0x5b8e9c(0x364)]['Error'],'content':this[_0x5b8e9c(0x36a)]['t'](_0x5b8e9c(0x329))}),_0x33336d['id']===u['CollaborationUIEventId'][_0x5b8e9c(0x161)]&&this[_0x5b8e9c(0x37e)][_0x5b8e9c(0x1b4)]({'type':T[_0x5b8e9c(0x364)]['Error'],'content':this['_localeService']['t'](_0x5b8e9c(0x30f))});}));}};Z=Ft([y(0x0,O[_0x13f674(0x2c0)]),y(0x1,u[_0x13f674(0x131)]),y(0x2,a[_0x13f674(0x2d0)](u[_0x13f674(0x35d)])),y(0x3,O[_0x13f674(0x38b)]),y(0x4,O['INotificationService']),y(0x5,a[_0x13f674(0x2d0)](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x5208d8,_0x55dcaf,_0x2c13ad,_0x1c1c10)=>{const _0x558722=_0x13f674;for(var _0x18b782=_0x1c1c10>0x1?void 0x0:_0x1c1c10?jt(_0x55dcaf,_0x2c13ad):_0x55dcaf,_0x1c5368=_0x5208d8[_0x558722(0x187)]-0x1,_0x5ec59b;_0x1c5368>=0x0;_0x1c5368--)(_0x5ec59b=_0x5208d8[_0x1c5368])&&(_0x18b782=_0x5ec59b(_0x18b782)||_0x18b782);return _0x18b782;},z=(_0x2c2985,_0x58456e)=>(_0x29f208,_0x405a6e)=>_0x58456e(_0x29f208,_0x405a6e,_0x2c2985);let Q=class extends a[_0x13f674(0x335)]{constructor(_0x4b16d5,_0x26576b,_0x42651e,_0x2cf883){const _0xc8c4c=_0x13f674;super(),_(this,_0xc8c4c(0x33f)),(this['_injector']=_0x4b16d5,this[_0xc8c4c(0x2c3)]=_0x26576b,this[_0xc8c4c(0x156)]=_0x42651e,this[_0xc8c4c(0x23f)]=_0x2cf883,this['_init']());}[_0x13f674(0x11f)](){const _0x26c415=_0x13f674;this[_0x26c415(0x350)](),this['_initUnhandledRejectionListener'](),this[_0x26c415(0x2da)](),this[_0x26c415(0x285)]();}['_initUserListener'](){const _0x56bc28=_0x13f674;this[_0x56bc28(0x347)](this[_0x56bc28(0x23f)][_0x56bc28(0x247)]['subscribe'](_0x4f4f6c=>{const _0x4878b6=_0x56bc28;this[_0x4878b6(0x33f)]=_0x4f4f6c==null?void 0x0:_0x4f4f6c[_0x4878b6(0x254)];}));}[_0x13f674(0x350)](){const _0x357b27=_0x13f674,_0x19386e=_0x571d6a=>{const _0x1d8a5d=_0x2045;var _0x4d1f42;this[_0x1d8a5d(0x195)]('error',_0x1d8a5d(0x216)+_0x571d6a[_0x1d8a5d(0x10e)]+_0x1d8a5d(0x28a)+_0x571d6a[_0x1d8a5d(0x272)]+':'+_0x571d6a[_0x1d8a5d(0x25f)]+':'+_0x571d6a[_0x1d8a5d(0x346)]+'\x0a'+(((_0x4d1f42=_0x571d6a[_0x1d8a5d(0x2d4)])==null?void 0x0:_0x4d1f42[_0x1d8a5d(0x373)])||''));};window[_0x357b27(0x337)](_0x357b27(0x2d4),_0x19386e),this[_0x357b27(0x347)](()=>{const _0x1adca1=_0x357b27;window[_0x1adca1(0x1a7)](_0x1adca1(0x2d4),_0x19386e);});}[_0x13f674(0x379)](){const _0x3e9a3e=_0x13f674,_0x16cae9=_0x4886d8=>{const _0x59ae90=_0x2045;this['_uploadLog'](_0x59ae90(0x2d4),'[Unhandled\x20Rejection]:\x20'+_0x4886d8['reason']);};window[_0x3e9a3e(0x337)](_0x3e9a3e(0x363),_0x16cae9),this['disposeWithMe'](()=>{const _0x7c0285=_0x3e9a3e;window[_0x7c0285(0x1a7)](_0x7c0285(0x363),_0x16cae9);});}[_0x13f674(0x2da)](){const _0x4a8b53=_0x13f674,_0x1bc2e2=this[_0x4a8b53(0x156)][_0x4a8b53(0x2d4)][_0x4a8b53(0x33b)](this[_0x4a8b53(0x156)]);this['_logService']['error']=(..._0xf07c84)=>{const _0x4b6344=_0x4a8b53,_0x1facfd=_0xf07c84[_0x4b6344(0x10a)](_0x68f366=>_0x68f366 instanceof Error?_0x68f366[_0x4b6344(0x10e)]+'\x0a'+_0x68f366[_0x4b6344(0x373)]:String(_0x68f366))['join']('\x20');this['_uploadLog'](_0x4b6344(0x2d4),'[LogService\x20Error]:\x20'+_0x1facfd),_0x1bc2e2(..._0xf07c84);},this[_0x4a8b53(0x347)](()=>{const _0x2b70c5=_0x4a8b53;this[_0x2b70c5(0x156)][_0x2b70c5(0x2d4)]=_0x1bc2e2;});}[_0x13f674(0x195)](_0x124580,_0x26ddd1){const _0x2f6931=_0x13f674;try{const _0x35687d={'userId':this[_0x2f6931(0x33f)],'logLabel':_0x124580,'content':_0x26ddd1};this[_0x2f6931(0x2c3)][_0x2f6931(0x351)]('/universer-api/frontend/logs',{'body':_0x35687d})[_0x2f6931(0x227)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x13f674(0x2d0)](a[_0x13f674(0x324)])),z(0x1,a[_0x13f674(0x2d0)](x[_0x13f674(0x168)])),z(0x2,a['ILogService']),z(0x3,a[_0x13f674(0x2d0)](u['CollaborationSessionService']))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x13f674(0x2a3)],Wt=(_0x2acc91,_0x17ca94,_0x2edfb1,_0x4c0ae9)=>{for(var _0x537dfd=_0x4c0ae9>0x1?void 0x0:_0x4c0ae9?Ht(_0x17ca94,_0x2edfb1):_0x17ca94,_0x4c1549=_0x2acc91['length']-0x1,_0x5edc5f;_0x4c1549>=0x0;_0x4c1549--)(_0x5edc5f=_0x2acc91[_0x4c1549])&&(_0x537dfd=_0x5edc5f(_0x537dfd)||_0x537dfd);return _0x537dfd;},Ae=(_0x55fb3d,_0x109928)=>(_0x322ecd,_0x4e7723)=>_0x109928(_0x322ecd,_0x4e7723,_0x55fb3d);let ee=class{constructor(_0x53925d,_0x5df3cd){this['_transformService']=_0x53925d,this['_renderManagerService']=_0x5df3cd;}[_0x13f674(0x314)](_0x5ba6da){const _0x203130=_0x13f674;this[_0x203130(0x2a0)](_0x5ba6da),this[_0x203130(0x29c)](_0x5ba6da);}[_0x13f674(0x115)](_0x32d5e2){const _0x2b19a4=_0x13f674,{unitID:_0x5295fb}=_0x32d5e2,_0x339650=this[_0x2b19a4(0x2f8)][_0x2b19a4(0x1d7)](_0x5295fb)[_0x2b19a4(0x18b)](p[_0x2b19a4(0x248)]),{redoCache:_0x548c76}=_0x339650[_0x2b19a4(0x14e)]();if(_0x548c76[_0x2b19a4(0x187)]===0x0)return _0x32d5e2;let _0x4afb68=a[_0x2b19a4(0x105)]['deepClone'](_0x32d5e2[_0x2b19a4(0x22b)][0x0]);for(let _0x3607f5=0x0;_0x3607f5<_0x548c76[_0x2b19a4(0x187)];_0x3607f5++){const _0x42ae71={'id':_0x2b19a4(0x182),'params':{..._0x548c76[_0x3607f5]}},_0x25e6e7=this[_0x2b19a4(0x39a)]['transformMutation'](_0x4afb68,_0x42ae71,!0x1);if(g['isTransformMutationFailure'](_0x25e6e7))throw _0x25e6e7[_0x2b19a4(0x2d4)];_0x4afb68=_0x25e6e7[_0x2b19a4(0xf0)];}return{...a[_0x2b19a4(0x105)][_0x2b19a4(0x1a9)](_0x32d5e2),'mutations':[_0x4afb68]};}['_transformUndoRedoStack'](_0x26ec13){const _0x3ad0ec=_0x13f674,{unitID:_0xd7187b}=_0x26ec13,_0x7c0e12=this['_renderManagerService'][_0x3ad0ec(0x1d7)](_0xd7187b)[_0x3ad0ec(0x18b)](p[_0x3ad0ec(0x248)]),{undoCache:_0x2225b9,redoCache:_0x580ba7}=_0x7c0e12[_0x3ad0ec(0x14e)]();if(_0x2225b9[_0x3ad0ec(0x187)]===0x0||_0x580ba7['length']===0x0)return;const _0x5cce78=[],_0xe13e90=[];let _0x35b6f9=a[_0x3ad0ec(0x105)]['deepClone'](_0x26ec13[_0x3ad0ec(0x22b)][0x0]),_0x51b7fe=a[_0x3ad0ec(0x105)][_0x3ad0ec(0x1a9)](_0x26ec13[_0x3ad0ec(0x22b)][0x0]);for(let _0x476d2e=_0x2225b9[_0x3ad0ec(0x187)]-0x1;_0x476d2e>=0x0;_0x476d2e--){const _0x4d6316={'id':'doc.mutation.rich-text-editing','params':{..._0x2225b9[_0x476d2e]}},_0x45b0dd={'id':_0x3ad0ec(0x182),'params':{..._0x580ba7[_0x476d2e]}},_0x45bd8e=this['_transformService'][_0x3ad0ec(0x143)](_0x35b6f9,_0x4d6316,!0x1),_0x2a77bf=this[_0x3ad0ec(0x39a)][_0x3ad0ec(0x143)](_0x51b7fe,_0x45b0dd,!0x1);if(g[_0x3ad0ec(0x3af)](_0x45bd8e))throw _0x45bd8e['error'];if(g[_0x3ad0ec(0x3af)](_0x2a77bf))throw _0x2a77bf[_0x3ad0ec(0x2d4)];_0x5cce78['unshift'](_0x45bd8e[_0x3ad0ec(0x307)][_0x3ad0ec(0x17c)]),_0xe13e90['unshift'](_0x2a77bf[_0x3ad0ec(0x307)][_0x3ad0ec(0x17c)]),_0x35b6f9=_0x45bd8e[_0x3ad0ec(0xf0)],_0x51b7fe=_0x2a77bf[_0x3ad0ec(0xf0)];}_0x7c0e12[_0x3ad0ec(0x210)]({'undoCache':_0x5cce78,'redoCache':_0xe13e90});}['_transformPreviousActiveRange'](_0x3c8e41){const _0x187ac7=_0x13f674,{unitID:_0x4c07d2}=_0x3c8e41,_0x1012ff=this[_0x187ac7(0x2f8)]['getRenderById'](_0x4c07d2)[_0x187ac7(0x18b)](p[_0x187ac7(0x248)]),_0x151461=_0x1012ff[_0x187ac7(0xf7)]();if(_0x151461==null)return;const _0x34af0a=[{'id':_0x187ac7(0x182),'params':{'unitId':_0x3c8e41[_0x187ac7(0x123)],'actions':null,'textRanges':[_0x151461]}}],_0x28221c=this[_0x187ac7(0x39a)]['transformMutationsWithChangeset'](_0x3c8e41,_0x34af0a);if(!g[_0x187ac7(0x11a)](_0x28221c))throw _0x28221c[_0x187ac7(0x2d4)];const _0x258ec1=_0x28221c[_0x187ac7(0x307)][0x0][_0x187ac7(0x17c)]['textRanges'];Array[_0x187ac7(0x27f)](_0x258ec1)&&_0x258ec1[_0x187ac7(0x187)]&&_0x1012ff[_0x187ac7(0x1e7)](_0x258ec1[0x0]);}};ee=Wt([Ae(0x0,g[_0x13f674(0x26f)]),Ae(0x1,C[_0x13f674(0x31e)])],ee);var Vt=Object[_0x13f674(0x2a3)],Gt=(_0x47357e,_0x2d15a1,_0x378925,_0xb63610)=>{for(var _0x4ea596=_0xb63610>0x1?void 0x0:_0xb63610?Vt(_0x2d15a1,_0x378925):_0x2d15a1,_0x1fde96=_0x47357e['length']-0x1,_0x2f8516;_0x1fde96>=0x0;_0x1fde96--)(_0x2f8516=_0x47357e[_0x1fde96])&&(_0x4ea596=_0x2f8516(_0x4ea596)||_0x4ea596);return _0x4ea596;},Ie=(_0x200c9a,_0xcdfd9b)=>(_0x4d7d4f,_0x5be58d)=>_0xcdfd9b(_0x4d7d4f,_0x5be58d,_0x200c9a);let te=class{constructor(_0x29cde2,_0x4c14ac,_0x2b7a3b){const _0x2d3da3=_0x13f674;this[_0x2d3da3(0x2f4)]=_0x29cde2,this['_transformService']=_0x4c14ac,this[_0x2d3da3(0x1c6)]=_0x2b7a3b;}[_0x13f674(0x2c6)](_0x792e00){const _0x22b1b3=_0x13f674;this[_0x22b1b3(0x14b)](_0x792e00);}[_0x13f674(0x115)](_0x3eea27){const _0x3ab253=_0x13f674,{unitID:_0x2bd0fe}=_0x3eea27,{collaboration:_0xbb4678}=this[_0x3ab253(0x1c6)][_0x3ab253(0x10b)](_0x2bd0fe);if(_0xbb4678[_0x3ab253(0x187)]===0x0)return _0x3eea27;let _0x118c1f=a[_0x3ab253(0x105)][_0x3ab253(0x1a9)](_0x3eea27['mutations'][0x0]);for(let _0x5eb677=0x0;_0x5eb677<_0xbb4678[_0x3ab253(0x187)];_0x5eb677++){const _0xfc1619={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xbb4678[_0x5eb677][_0x3ab253(0x2b9)],..._0xbb4678[_0x5eb677][_0x3ab253(0x228)]}},_0x3fb642=this[_0x3ab253(0x39a)][_0x3ab253(0x143)](_0x118c1f,_0xfc1619,!0x1);if(g[_0x3ab253(0x3af)](_0x3fb642))throw _0x3fb642[_0x3ab253(0x2d4)];_0x118c1f=_0x3fb642[_0x3ab253(0xf0)];}return{...a['Tools'][_0x3ab253(0x1a9)](_0x3eea27),'mutations':[_0x118c1f]};}[_0x13f674(0x14b)](_0x2271f0){const _0x4fe7eb=_0x13f674,{unitID:_0xa3cfae}=_0x2271f0,{history:_0x202cfb,collaboration:_0x472779}=this[_0x4fe7eb(0x1c6)][_0x4fe7eb(0x10b)](_0xa3cfae);if(_0x202cfb['length']===0x0&&_0x472779[_0x4fe7eb(0x187)]===0x0)return;const _0x8a38c7=[],_0x24eaf1=[];let _0x14258d=a[_0x4fe7eb(0x105)]['deepClone'](_0x2271f0[_0x4fe7eb(0x22b)][0x0]),_0x22cc69=a[_0x4fe7eb(0x105)][_0x4fe7eb(0x1a9)](_0x2271f0[_0x4fe7eb(0x22b)][0x0]);for(let _0xc93cd6=_0x202cfb['length']-0x1;_0xc93cd6>=0x0;_0xc93cd6--){const _0x130753={'id':_0x4fe7eb(0x182),'params':{'unitId':_0x202cfb[_0xc93cd6][_0x4fe7eb(0x2b9)],..._0x202cfb[_0xc93cd6][_0x4fe7eb(0x213)]}},_0x36f1be={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x202cfb[_0xc93cd6][_0x4fe7eb(0x2b9)],..._0x202cfb[_0xc93cd6][_0x4fe7eb(0x228)]}},_0x401b77=this[_0x4fe7eb(0x39a)]['transformMutation'](_0x14258d,_0x130753,!0x1),_0x113978=this[_0x4fe7eb(0x39a)][_0x4fe7eb(0x143)](_0x22cc69,_0x36f1be,!0x1);if(g[_0x4fe7eb(0x3af)](_0x401b77))throw _0x401b77[_0x4fe7eb(0x2d4)];if(g[_0x4fe7eb(0x3af)](_0x113978))throw _0x113978[_0x4fe7eb(0x2d4)];_0x8a38c7[_0x4fe7eb(0x219)]({..._0x202cfb[_0xc93cd6],'undoState':_0x401b77[_0x4fe7eb(0x307)][_0x4fe7eb(0x17c)],'redoState':_0x113978[_0x4fe7eb(0x307)][_0x4fe7eb(0x17c)]}),_0x14258d=_0x401b77[_0x4fe7eb(0xf0)],_0x22cc69=_0x113978['m1Prime'];}_0x14258d=a[_0x4fe7eb(0x105)]['deepClone'](_0x2271f0[_0x4fe7eb(0x22b)][0x0]),_0x22cc69=a[_0x4fe7eb(0x105)][_0x4fe7eb(0x1a9)](_0x2271f0[_0x4fe7eb(0x22b)][0x0]);for(let _0xe0cde1=_0x472779[_0x4fe7eb(0x187)]-0x1;_0xe0cde1>=0x0;_0xe0cde1--){const _0x1345e3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x472779[_0xe0cde1][_0x4fe7eb(0x2b9)],..._0x472779[_0xe0cde1][_0x4fe7eb(0x213)]}},_0x5ca19f={'id':_0x4fe7eb(0x182),'params':{'unitId':_0x472779[_0xe0cde1][_0x4fe7eb(0x2b9)],..._0x472779[_0xe0cde1][_0x4fe7eb(0x228)]}},_0x335535=this['_transformService']['transformMutation'](_0x14258d,_0x1345e3,!0x1),_0x385c97=this['_transformService'][_0x4fe7eb(0x143)](_0x22cc69,_0x5ca19f,!0x1);if(g[_0x4fe7eb(0x3af)](_0x335535))throw _0x335535['error'];if(g[_0x4fe7eb(0x3af)](_0x385c97))throw _0x385c97['error'];_0x24eaf1['unshift']({..._0x472779[_0xe0cde1],'undoState':_0x335535['m2Prime'][_0x4fe7eb(0x17c)],'redoState':_0x385c97[_0x4fe7eb(0x307)][_0x4fe7eb(0x17c)]}),_0x14258d=_0x335535[_0x4fe7eb(0xf0)],_0x22cc69=_0x385c97['m1Prime'];}this['_docStateChangeManagerService'][_0x4fe7eb(0x22f)](_0xa3cfae,{'history':_0x8a38c7,'collaboration':_0x24eaf1});}};te=Gt([Ie(0x0,a[_0x13f674(0x2d0)](a[_0x13f674(0x324)])),Ie(0x1,g['ITransformService']),Ie(0x2,a['Inject'](p[_0x13f674(0x206)]))],te);var Xt=Object[_0x13f674(0x2a3)],Kt=(_0x2c4981,_0x4ef4c4,_0x39d665,_0x16a1ba)=>{const _0x4af471=_0x13f674;for(var _0x2046d6=_0x16a1ba>0x1?void 0x0:_0x16a1ba?Xt(_0x4ef4c4,_0x39d665):_0x4ef4c4,_0x46c6f4=_0x2c4981[_0x4af471(0x187)]-0x1,_0x1e9e2f;_0x46c6f4>=0x0;_0x46c6f4--)(_0x1e9e2f=_0x2c4981[_0x46c6f4])&&(_0x2046d6=_0x1e9e2f(_0x2046d6)||_0x2046d6);return _0x2046d6;},Pe=(_0x230408,_0x25ff48)=>(_0x43ac6b,_0x45a094)=>_0x25ff48(_0x43ac6b,_0x45a094,_0x230408);let se=class{constructor(_0x3de428,_0x29326e){const _0x53de84=_0x13f674;this[_0x53de84(0x2f4)]=_0x3de428,this[_0x53de84(0x39a)]=_0x29326e;}[_0x13f674(0x283)](_0x335406){const _0x39d96b=_0x13f674;var _0x227d86;const _0x4b6703=this[_0x39d96b(0x2f4)][_0x39d96b(0x1ab)](V[_0x39d96b(0x1cb)]),_0xd21636=(_0x227d86=_0x4b6703['getDocRanges']())!=null?_0x227d86:[];if(_0xd21636[_0x39d96b(0x187)]===0x0)return;const _0x19a9e3=_0x335406[_0x39d96b(0x123)],_0x2e8cb8=[{'id':_0x39d96b(0x182),'params':{'unitId':_0x19a9e3,'actions':null,'textRanges':_0xd21636}}],_0x385c24=this['_transformService'][_0x39d96b(0x243)](_0x335406,_0x2e8cb8);if(!g[_0x39d96b(0x11a)](_0x385c24))throw _0x385c24['error'];const _0x164c3f=_0x385c24[_0x39d96b(0x307)][0x0][_0x39d96b(0x17c)]['textRanges'];Array[_0x39d96b(0x27f)](_0x164c3f)&&_0x164c3f['length']&&_0x4b6703[_0x39d96b(0x358)](_0x164c3f,{'unitId':_0x19a9e3,'subUnitId':_0x19a9e3},!0x1);}};se=Kt([Pe(0x0,a[_0x13f674(0x2d0)](a['Injector'])),Pe(0x1,g[_0x13f674(0x26f)])],se);var qt=Object[_0x13f674(0x2a3)],zt=(_0x5e723c,_0x500f85,_0xd59271,_0x1e8095)=>{const _0x195c5f=_0x13f674;for(var _0x336873=_0x1e8095>0x1?void 0x0:_0x1e8095?qt(_0x500f85,_0xd59271):_0x500f85,_0x2ad9d3=_0x5e723c[_0x195c5f(0x187)]-0x1,_0x17d551;_0x2ad9d3>=0x0;_0x2ad9d3--)(_0x17d551=_0x5e723c[_0x2ad9d3])&&(_0x336873=_0x17d551(_0x336873)||_0x336873);return _0x336873;},N=(_0xfce057,_0x25a1a0)=>(_0x46bade,_0x1e7e68)=>_0x25a1a0(_0x46bade,_0x1e7e68,_0xfce057);let ie=class extends a[_0x13f674(0x335)]{constructor(_0x613a58,_0xca4819,_0x56ef14,_0x19e53d,_0x2fff8a,_0x260421,_0x205550,_0x3a5a61){const _0x117b30=_0x13f674;super(),_(this,_0x117b30(0x2ba),new I[(_0x117b30(0x200))](u[_0x117b30(0x265)][_0x117b30(0x36e)])),(this[_0x117b30(0x1c6)]=_0x613a58,this[_0x117b30(0x194)]=_0xca4819,this[_0x117b30(0x383)]=_0x56ef14,this[_0x117b30(0x22d)]=_0x19e53d,this[_0x117b30(0x2a7)]=_0x2fff8a,this['_docSyncEditingCollabCursorService']=_0x260421,this[_0x117b30(0x37e)]=_0x205550,this[_0x117b30(0x36a)]=_0x3a5a61,this[_0x117b30(0x1e8)]());}[_0x13f674(0x1e8)](){const _0x689e09=_0x13f674;this[_0x689e09(0x347)](this[_0x689e09(0x194)]['entityInit$']['subscribe'](_0x3ebffb=>{const _0x2fc7b1=_0x689e09,_0x5d3566=this[_0x2fc7b1(0x1c6)][_0x2fc7b1(0x250)][_0x2fc7b1(0x271)](_0x932415=>{const _0x38c083=_0x2fc7b1;if(_0x932415==null)return;const {unitId:_0x321842,redoState:_0x18d460,commandId:_0x31eb41}=_0x932415;if(_0x321842!==_0x3ebffb[_0x38c083(0x123)])return;const _0x3224b2={'id':_0x31eb41,'type':a[_0x38c083(0x2e0)]['MUTATION'],'params':{'unitId':_0x321842,'actions':_0x18d460[_0x38c083(0x2a2)],'textRanges':null}};_0x3ebffb['onLocalMutation'](_0x3224b2);});if(_0x3ebffb[_0x2fc7b1(0x347)](_0x5d3566),_0x3ebffb instanceof u['DocCollaborationEntity']){const _0x4c6516={'onTransformIME':_0x234912=>this[_0x2fc7b1(0x383)]['transformIMECache'](_0x234912),'onTransformState':_0xb1ccb1=>this[_0x2fc7b1(0x22d)]['transformStateCache'](_0xb1ccb1),'onTransformSelections':_0x12ff4=>this[_0x2fc7b1(0x2a7)][_0x2fc7b1(0x283)](_0x12ff4),'onSyncEditingCollabCursor':_0x301c91=>this[_0x2fc7b1(0x1fd)][_0x2fc7b1(0x328)](_0x301c91),'onTransformRemoteChangesetByIMECache':_0x4bdeb6=>this[_0x2fc7b1(0x383)][_0x2fc7b1(0x115)](_0x4bdeb6),'onTransformRemoteChangesetByStateCache':_0x4a5909=>this[_0x2fc7b1(0x22d)][_0x2fc7b1(0x115)](_0x4a5909)};_0x3ebffb[_0x2fc7b1(0x290)](_0x4c6516);}}));}};ie=zt([N(0x0,a['Inject'](p['DocStateChangeManagerService'])),N(0x1,a[_0x13f674(0x2d0)](u[_0x13f674(0x35a)])),N(0x2,a['Inject'](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x13f674(0x2d0)](se)),N(0x5,a[_0x13f674(0x2d0)](be)),N(0x6,O[_0x13f674(0x38b)]),N(0x7,a[_0x13f674(0x2d0)](a[_0x13f674(0x256)]))],ie);var G=(_0xafc522=>(_0xafc522[_0xafc522[_0x13f674(0x27a)]=0x0]='UNDEFINED',_0xafc522[_0xafc522['OK']=0x1]='OK',_0xafc522[_0xafc522['INTERNAL_ERROR']=0x2]=_0x13f674(0x2f6),_0xafc522[_0xafc522[_0x13f674(0x2a4)]=0x3]='PERMISSION_DENIED',_0xafc522[_0xafc522[_0x13f674(0x11e)]=0x4]=_0x13f674(0x11e),_0xafc522[_0xafc522[_0x13f674(0x19f)]=0x5]='UNAUTHENTICATED',_0xafc522[_0xafc522[_0x13f674(0x39d)]=0x6]=_0x13f674(0x39d),_0xafc522[_0xafc522[_0x13f674(0x32c)]=0x7]=_0x13f674(0x32c),_0xafc522[_0xafc522['TOO_MANY_REQUESTS']=0x8]=_0x13f674(0x2d6),_0xafc522[_0xafc522[_0x13f674(0xea)]=0x9]=_0x13f674(0xea),_0xafc522[_0xafc522['LOGIN_FAILED']=0xa]=_0x13f674(0x2c8),_0xafc522[_0xafc522[_0x13f674(0x15d)]=0xb]=_0x13f674(0x15d),_0xafc522[_0xafc522[_0x13f674(0x1b0)]=0xc]=_0x13f674(0x1b0),_0xafc522[_0xafc522[_0x13f674(0x122)]=0xd]=_0x13f674(0x122),_0xafc522[_0xafc522[_0x13f674(0x1ed)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xafc522[_0xafc522[_0x13f674(0x15b)]=0xf]=_0x13f674(0x15b),_0xafc522[_0xafc522[_0x13f674(0x361)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0xafc522[_0xafc522['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x13f674(0x374),_0xafc522[_0xafc522[_0x13f674(0x3a3)]=0x65]=_0x13f674(0x3a3),_0xafc522[_0xafc522[_0x13f674(0x238)]=0xc9]=_0x13f674(0x238),_0xafc522[_0xafc522[_0x13f674(0x295)]=0xca]=_0x13f674(0x295),_0xafc522[_0xafc522[_0x13f674(0x251)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0xafc522[_0xafc522['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xafc522[_0xafc522['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x13f674(0x170),_0xafc522[_0xafc522[_0x13f674(0x321)]=0x1773]=_0x13f674(0x321),_0xafc522[_0xafc522['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0xafc522[_0xafc522['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x13f674(0x1c7),_0xafc522[_0xafc522['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x13f674(0x101),_0xafc522[_0xafc522[_0x13f674(0x33c)]=0x1b5c]=_0x13f674(0x33c),_0xafc522[_0xafc522[_0x13f674(0x18d)]=0x1b5d]=_0x13f674(0x18d),_0xafc522[_0xafc522['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x13f674(0x1ce),_0xafc522[_0xafc522[_0x13f674(0xed)]=0x2329]=_0x13f674(0xed),_0xafc522[_0xafc522[_0x13f674(0x2e2)]=0x232a]=_0x13f674(0x2e2),_0xafc522[_0xafc522[_0x13f674(0x352)]=0x232b]=_0x13f674(0x352),_0xafc522[_0xafc522[_0x13f674(0x1d9)]=0x232c]=_0x13f674(0x1d9),_0xafc522[_0xafc522['LICENSE_DISTRO_REJECTED']=0x232d]=_0x13f674(0x15f),_0xafc522[_0xafc522['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x13f674(0x286),_0xafc522[_0xafc522[_0x13f674(0x118)]=0x2712]=_0x13f674(0x118),_0xafc522[_0xafc522[_0x13f674(0x3ac)]=0x2713]=_0x13f674(0x3ac),_0xafc522[_0xafc522[_0x13f674(0x1dc)]=0x2714]=_0x13f674(0x1dc),_0xafc522[_0xafc522[_0x13f674(0x32d)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xafc522[_0xafc522[_0x13f674(0x3aa)]=0x271b]=_0x13f674(0x3aa),_0xafc522[_0xafc522[_0x13f674(0x245)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0xafc522[_0xafc522[_0x13f674(0x304)]=0x271d]=_0x13f674(0x304),_0xafc522[_0xafc522['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xafc522[_0xafc522['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0xafc522[_0xafc522[_0x13f674(0x320)]=0x2720]=_0x13f674(0x320),_0xafc522[_0xafc522[_0x13f674(0x103)]=0x2af9]=_0x13f674(0x103),_0xafc522[_0xafc522[_0x13f674(0x212)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0xafc522[_0xafc522[_0x13f674(0x343)]=0x2ee2]=_0x13f674(0x343),_0xafc522[_0xafc522[_0x13f674(0x184)]=0x2ee3]=_0x13f674(0x184),_0xafc522[_0xafc522[_0x13f674(0x378)]=0x2ee4]=_0x13f674(0x378),_0xafc522[_0xafc522[_0x13f674(0x12a)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0xafc522[_0xafc522[_0x13f674(0x3ad)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xafc522[_0xafc522['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x13f674(0x120),_0xafc522[_0xafc522[_0x13f674(0x1d8)]=0x32cb]=_0x13f674(0x1d8),_0xafc522[_0xafc522['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x13f674(0x1f3),_0xafc522[_0xafc522['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0xafc522[_0xafc522[_0x13f674(0x306)]=0x36b3]=_0x13f674(0x306),_0xafc522[_0xafc522[_0x13f674(0x1c2)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0xafc522[_0xafc522['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x13f674(0x2f2),_0xafc522[_0xafc522[_0x13f674(0x201)]=0x3716]=_0x13f674(0x201),_0xafc522[_0xafc522['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0xafc522[_0xafc522['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0xafc522[_0xafc522[_0x13f674(0x289)]=0x3a99]='REDEMPTION_INVALID_CODE',_0xafc522[_0xafc522[_0x13f674(0xfa)]=0x3a9a]=_0x13f674(0xfa),_0xafc522[_0xafc522['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x13f674(0x25b),_0xafc522[_0xafc522[_0x13f674(0x1c5)]=0x3a9c]=_0x13f674(0x1c5),_0xafc522[_0xafc522[_0x13f674(0x392)]=0x3a9d]=_0x13f674(0x392),_0xafc522[_0xafc522[_0x13f674(0x130)]=0x3a9e]=_0x13f674(0x130),_0xafc522[_0xafc522[_0x13f674(0x176)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0xafc522[_0xafc522[_0x13f674(0x330)]=0x3e81]=_0x13f674(0x330),_0xafc522[_0xafc522[_0x13f674(0x2d1)]=-0x1]=_0x13f674(0x2d1),_0xafc522))(G||{});function Jt(_0x1fd89e){const _0x1cd293=_0x13f674;var _0xbd578e,_0x49e089;const _0x3ebc69=(_0xbd578e=_0x1fd89e['stageInfo'])==null?void 0x0:_0xbd578e[_0x1cd293(0x126)],_0x1a06d8=((_0x49e089=_0x1fd89e['stageInfo'])==null?void 0x0:_0x49e089[_0x1cd293(0x20e)])||0x0;return _0x3ebc69===B[_0x1cd293(0x1ae)][_0x1cd293(0x162)]&&_0x1a06d8>0x0;}function Zt(_0x2453eb){const _0x1ba2be=_0x13f674;return _0x2453eb[_0x1ba2be(0x1f9)]===B['FormulaExecutedStateType'][_0x1ba2be(0xeb)];}var Qt=Object[_0x13f674(0x2a3)],es=(_0x356f48,_0x811624,_0x200399,_0x2abd8f)=>{for(var _0x22401c=_0x2abd8f>0x1?void 0x0:_0x2abd8f?Qt(_0x811624,_0x200399):_0x811624,_0x11bab0=_0x356f48['length']-0x1,_0x2aa238;_0x11bab0>=0x0;_0x11bab0--)(_0x2aa238=_0x356f48[_0x11bab0])&&(_0x22401c=_0x2aa238(_0x22401c)||_0x22401c);return _0x22401c;},L=(_0x2d411e,_0x29835f)=>(_0x1c8e8c,_0x4e05a2)=>_0x29835f(_0x1c8e8c,_0x4e05a2,_0x2d411e);const ts='/universer-api/license/formula/limit/status',ss=_0x13f674(0x35f),is=_0x13f674(0x382);let ne=class extends a[_0x13f674(0x335)]{constructor(_0x5e85f8,_0x205a9a,_0x5e114c,_0x1ce6fe,_0x116589,_0x15e4b3,_0x3450be){const _0xef871f=_0x13f674;super(),_(this,_0xef871f(0x140),null),_(this,_0xef871f(0x399),0x0),_(this,_0xef871f(0x2c7),0x0),_(this,'_taskIds',[]),_(this,_0xef871f(0x3a9),0x0),(this[_0xef871f(0x37e)]=_0x5e85f8,this['_commandService']=_0x205a9a,this[_0xef871f(0x1a5)]=_0x5e114c,this[_0xef871f(0x2c3)]=_0x1ce6fe,this[_0xef871f(0x33a)]=_0x116589,this[_0xef871f(0x156)]=_0x15e4b3,this['_localeService']=_0x3450be,this[_0xef871f(0x160)]());}['_initCommandInterceptor'](){const _0x4dcf9f=_0x13f674;this['disposeWithMe'](this['_commandService']['beforeCommandExecuted']((_0x1a6d6b,_0x371804)=>{const _0x227a0e=_0x2045;var _0x522ec9;if(_0x1a6d6b['id']!==B[_0x227a0e(0x1d2)]['id'])return;const _0x4a5799=_0x1a6d6b[_0x227a0e(0x17c)];if(!this[_0x227a0e(0x39e)]((_0x522ec9=_0x4a5799[_0x227a0e(0x135)])!=null?_0x522ec9:[]))return;if(!this[_0x227a0e(0x389)]())throw this[_0x227a0e(0x37d)](_0x1a6d6b,_0x371804),this[_0x227a0e(0x376)](),new a[(_0x227a0e(0x19e))]();})),this[_0x4dcf9f(0x347)](this[_0x4dcf9f(0x318)][_0x4dcf9f(0x3a7)]((_0x202fef,_0x6c640c)=>{const _0x17da50=_0x4dcf9f;if(_0x202fef['id']!==B[_0x17da50(0x279)]['id'])return;const _0x2874e6=_0x202fef[_0x17da50(0x17c)];if(Jt(_0x2874e6)){const _0x3d9c16=a['generateRandomId']();this[_0x17da50(0x319)][_0x17da50(0x169)](_0x3d9c16),this['_startCalculationLimit'](_0x3d9c16);}else{if(Zt(_0x2874e6)&&this['_taskIds'][_0x17da50(0x187)]>0x0){const _0x173bed=this[_0x17da50(0x319)][_0x17da50(0x1be)]();this['_releaseCalculationLimit'](_0x173bed);}}}));}['dispose'](){const _0x21bc4e=_0x13f674;super[_0x21bc4e(0x163)](),this[_0x21bc4e(0x27d)](),this[_0x21bc4e(0x319)]=[],this[_0x21bc4e(0x2c7)]=0x0,this[_0x21bc4e(0x399)]=0x0,this[_0x21bc4e(0x3a9)]=0x0;}async[_0x13f674(0x37d)](_0x5ebbf3,_0x424ee7){const _0x279557=_0x13f674;for(let _0x344e44=0x0;_0x344e44<0x1e;_0x344e44++)try{if(await this[_0x279557(0x35e)](),this[_0x279557(0x389)]()){this['_applyCommand'](_0x5ebbf3,_0x424ee7),this['_messageService'][_0x279557(0x1b4)]({'content':this[_0x279557(0x36a)]['t']('formula.calculation.started'),'type':T[_0x279557(0x364)][_0x279557(0x226)]});return;}await new Promise(_0x59d1d0=>{const _0x35cdea=_0x279557;this[_0x35cdea(0x140)]=window['setTimeout'](_0x59d1d0,0x3e8);});}catch(_0x5cb197){this[_0x279557(0x156)][_0x279557(0x2d4)](_0x5cb197);}this[_0x279557(0x37e)][_0x279557(0x1b4)]({'content':this[_0x279557(0x36a)]['t']('formula.calculation.unable'),'type':T[_0x279557(0x364)]['Error']});}[_0x13f674(0x1e5)](_0x426119,_0x4a2585){const _0x5ba2bd=_0x13f674;try{this['_commandService'][_0x5ba2bd(0x1a8)](_0x426119['id'],_0x426119[_0x5ba2bd(0x17c)],_0x4a2585);}catch(_0x1c99dd){this['_logService'][_0x5ba2bd(0x2d4)](_0x1c99dd);}}[_0x13f674(0x37f)](_0xb93795,_0x50ab9e){const _0x41f86f=_0x13f674;_0x50ab9e<this[_0x41f86f(0x3a9)]||(this['_lastResponseTimestamp']=_0x50ab9e,this[_0x41f86f(0x399)]=Number['parseInt'](_0xb93795[_0x41f86f(0x21b)]),this[_0x41f86f(0x2c7)]=Number['parseInt'](_0xb93795['currentUsage']));}async[_0x13f674(0x26e)](_0x135485){const _0x5b34ff=_0x13f674;var _0x513249,_0x47c297;const _0x3c9310=Date[_0x5b34ff(0x28c)]();try{const _0x4ab066=((_0x513249=this[_0x5b34ff(0x1a5)][_0x5b34ff(0x244)](u[_0x5b34ff(0xf3)]))==null?void 0x0:_0x513249[_0x5b34ff(0x262)])||ss,_0x376b21=(await this[_0x5b34ff(0x2c3)][_0x5b34ff(0x351)](_0x4ab066,{'body':JSON['stringify']({'taskId':_0x135485})}))['body'];if(((_0x47c297=_0x376b21['error'])==null?void 0x0:_0x47c297[_0x5b34ff(0x23b)])!==G['OK'])return;this[_0x5b34ff(0x37f)](_0x376b21[_0x5b34ff(0x1d0)],_0x3c9310);}catch(_0x2ffd40){this['_logService'][_0x5b34ff(0x2d4)](_0x2ffd40);}}async['_getFormulaLimitStatus'](_0xaaa2f6){const _0x47639b=_0x13f674;var _0x3df58c,_0x404eee;const _0x3c9849=Date[_0x47639b(0x28c)]();try{const _0x1e74af=((_0x3df58c=this[_0x47639b(0x1a5)]['getConfig'](u[_0x47639b(0xf3)]))==null?void 0x0:_0x3df58c[_0x47639b(0x1b2)])||ts,_0x4e4d63=_0xaaa2f6?_0x1e74af+_0x47639b(0x14a)+encodeURIComponent(_0xaaa2f6):_0x1e74af,_0x1d41f7=(await this[_0x47639b(0x2c3)][_0x47639b(0x1ab)](_0x4e4d63))['body'];if(((_0x404eee=_0x1d41f7['error'])==null?void 0x0:_0x404eee['code'])!==G['OK'])return;this[_0x47639b(0x37f)](_0x1d41f7[_0x47639b(0x1d0)],_0x3c9849);}catch(_0x6516b7){this[_0x47639b(0x156)][_0x47639b(0x2d4)](_0x6516b7);}}async[_0x13f674(0x1c0)](_0x440a2b){const _0x2b9d5a=_0x13f674;var _0x55ec25,_0x5d2c5b;const _0x1b049b=Date[_0x2b9d5a(0x28c)]();try{const _0x12b390=((_0x55ec25=this[_0x2b9d5a(0x1a5)]['getConfig'](u[_0x2b9d5a(0xf3)]))==null?void 0x0:_0x55ec25['releaseFormulaLimitUrl'])||is,_0x4f1f53=(await this[_0x2b9d5a(0x2c3)][_0x2b9d5a(0x351)](_0x12b390,{'body':JSON[_0x2b9d5a(0x15c)]({'taskId':_0x440a2b})}))[_0x2b9d5a(0x2de)];if(((_0x5d2c5b=_0x4f1f53[_0x2b9d5a(0x2d4)])==null?void 0x0:_0x5d2c5b[_0x2b9d5a(0x23b)])!==G['OK'])return;this[_0x2b9d5a(0x37f)](_0x4f1f53['limitInfo'],_0x1b049b);}catch(_0x2e9324){this[_0x2b9d5a(0x156)][_0x2b9d5a(0x2d4)](_0x2e9324);}}[_0x13f674(0x389)](){const _0x16f663=_0x13f674;return this[_0x16f663(0x399)]===0x0?!0x0:this[_0x16f663(0x399)]-this[_0x16f663(0x2c7)]>0x0;}['_clearPolling'](){const _0x445bf7=_0x13f674;this[_0x445bf7(0x140)]&&(clearTimeout(this[_0x445bf7(0x140)]),this[_0x445bf7(0x140)]=null);}['_showGuardMessage'](){const _0x411799=_0x13f674;this['_messageService'][_0x411799(0x1b4)]({'content':this[_0x411799(0x36a)]['t'](_0x411799(0x370)),'type':T[_0x411799(0x364)][_0x411799(0x144)]});}[_0x13f674(0x39e)](_0x1d395f){const _0x207634=_0x13f674;for(const _0x44137b of _0x1d395f){const {unitId:_0x14037e,sheetId:_0x4afe96,range:_0x51ab33}=_0x44137b,_0x8e4e05=this[_0x207634(0x33a)][_0x207634(0x3a5)](_0x14037e);if(!_0x8e4e05)continue;const _0x1cce49=_0x8e4e05[_0x207634(0x23a)](_0x4afe96);if(!_0x1cce49)continue;const _0x88153d=_0x1cce49['getCellMatrix']();for(let _0x28fddb=_0x51ab33[_0x207634(0x189)];_0x28fddb<=_0x51ab33[_0x207634(0x1dd)];_0x28fddb++)for(let _0x15e8e0=_0x51ab33[_0x207634(0x255)];_0x15e8e0<=_0x51ab33[_0x207634(0x1b8)];_0x15e8e0++){const _0x1ae1a5=_0x88153d[_0x207634(0x1bd)](_0x28fddb,_0x15e8e0);if(_0x1ae1a5&&(a['isFormulaString'](_0x1ae1a5['f'])||a[_0x207634(0x367)](_0x1ae1a5['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x13f674(0x38b)])),L(0x1,a[_0x13f674(0x39c)]),L(0x2,a['IConfigService']),L(0x3,a[_0x13f674(0x2d0)](x[_0x13f674(0x168)])),L(0x4,a[_0x13f674(0xf2)]),L(0x5,a[_0x13f674(0x2d2)]),L(0x6,a['Inject'](a['LocaleService']))],ne);var ns=Object[_0x13f674(0x2a3)],rs=(_0x23cd7e,_0x1a2d8d,_0x22637a,_0x5e5602)=>{const _0x1f5665=_0x13f674;for(var _0x2708b3=_0x5e5602>0x1?void 0x0:_0x5e5602?ns(_0x1a2d8d,_0x22637a):_0x1a2d8d,_0x24360d=_0x23cd7e[_0x1f5665(0x187)]-0x1,_0x565abb;_0x24360d>=0x0;_0x24360d--)(_0x565abb=_0x23cd7e[_0x24360d])&&(_0x2708b3=_0x565abb(_0x2708b3)||_0x2708b3);return _0x2708b3;},de=(_0x51d9f9,_0x5d9062)=>(_0x5de3fe,_0x32192f)=>_0x5d9062(_0x5de3fe,_0x32192f,_0x51d9f9);let pe=class extends a[_0x13f674(0x335)]{constructor(_0x171b13,_0x58141f,_0x436542){const _0x30b702=_0x13f674;super(),_(this,_0x30b702(0x2f7),new Map()),_(this,_0x30b702(0x174),new Map()),_(this,'_disabled',!0x1),(this[_0x30b702(0x1a5)]=_0x171b13,this[_0x30b702(0x281)]=_0x58141f,this[_0x30b702(0xf1)]=_0x436542);}[_0x13f674(0x192)](){const _0x367406=_0x13f674;this[_0x367406(0x2b5)]=!0x0;}[_0x13f674(0x129)](){const _0x584b5e=_0x13f674;this[_0x584b5e(0x2b5)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x13f674(0x163)](){const _0x38efb4=_0x13f674;this[_0x38efb4(0x2aa)]()['then'](()=>super[_0x38efb4(0x163)]());}async[_0x13f674(0x38f)](_0x1dbb72){const _0x4fe9b4=_0x13f674;return this[_0x4fe9b4(0x2b5)]?null:this['_localStorageService'][_0x4fe9b4(0x1f8)](u['getLocalCacheKey'](_0x1dbb72));}async['saveOfflineData'](_0x27d5ab,_0x8ec93e){const _0x29a0e4=_0x13f674;return!!this['_localStorageService'][_0x29a0e4(0x239)](_0x27d5ab,_0x8ec93e);}['updateOfflineData'](_0xf16bb4,_0x26b810,_0x5d45d6,_0x16c4e4){const _0x4c202f=_0x13f674,_0x265843=this[_0x4c202f(0xf1)][_0x4c202f(0x1b1)](_0xf16bb4);this[_0x4c202f(0x2f7)][_0x4c202f(0x38c)](_0xf16bb4,{'unitID':_0xf16bb4,'type':_0x26b810,'awaitingChangeset':_0x5d45d6,'mutations':_0x16c4e4,'rev':_0x265843}),this[_0x4c202f(0x174)][_0x4c202f(0x2f0)](_0xf16bb4)||this['_scheduleSaving'](_0xf16bb4);}[_0x13f674(0x220)](_0x1f231e){const _0x1702f5=_0x13f674,_0x55150d=this[_0x1702f5(0x342)]();_0x55150d===0x0?this['_saveCache'](_0x1f231e):this[_0x1702f5(0x174)]['set'](_0x1f231e,setTimeout(()=>this[_0x1702f5(0x36c)](_0x1f231e),_0x55150d));}[_0x13f674(0x342)](){const _0x44bebd=_0x13f674;var _0x39d101;return(_0x39d101=this[_0x44bebd(0x1a5)][_0x44bebd(0x244)](u[_0x44bebd(0x1ac)]))!=null?_0x39d101:u[_0x44bebd(0x2b6)];}[_0x13f674(0x36c)](_0x5f587d){const _0x21bcac=_0x13f674,_0x589e40=this['_saveTaskMap'][_0x21bcac(0x1ab)](_0x5f587d);return _0x589e40!==void 0x0&&window[_0x21bcac(0x190)](_0x589e40),this[_0x21bcac(0x281)][_0x21bcac(0x239)](u['getLocalCacheKey'](_0x5f587d),this['_cachedData'][_0x21bcac(0x1ab)](_0x5f587d))[_0x21bcac(0x396)](()=>this[_0x21bcac(0x174)]['delete'](_0x5f587d));}async['exhaustSavingTask'](){const _0xf38e19=_0x13f674,_0x5ac4d4=[];this[_0xf38e19(0x174)]['forEach']((_0x3a037a,_0x1f0e8a)=>{const _0x3e07fb=_0xf38e19;window[_0x3e07fb(0x190)](_0x3a037a),_0x5ac4d4['push'](this[_0x3e07fb(0x36c)](_0x1f0e8a)[_0x3e07fb(0x396)](()=>{const _0x3f2df4=_0x3e07fb;this[_0x3f2df4(0x174)][_0x3f2df4(0x252)](_0x1f0e8a);}));}),await Promise[_0xf38e19(0x30a)](_0x5ac4d4);}};pe=rs([de(0x0,a[_0x13f674(0x1bc)]),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x13f674(0x2d0)](g[_0x13f674(0x1a6)]))],pe);class ke extends a['RxDisposable']{constructor(){const _0x116605=_0x13f674;super(),_(this,'urlChange$'),this[_0x116605(0x157)]=I[_0x116605(0x398)](window,_0x116605(0x1b9))[_0x116605(0x274)](I['takeUntil'](this['dispose$']),I[_0x116605(0x1ba)](0x1),I[_0x116605(0x15a)](void 0x0));}['setParam'](_0xcc8a55,_0x48abf4,_0x5303e4=!0x1){const _0x452897=_0x13f674,_0x558021=new URL(window['location'][_0x452897(0x121)]);_0x558021[_0x452897(0x1b3)][_0x452897(0x38c)](_0xcc8a55,_0x48abf4),_0x5303e4?window[_0x452897(0x2cf)][_0x452897(0x1da)]('','',_0x558021[_0x452897(0x13f)]()):window['history'][_0x452897(0x1d4)]('','',_0x558021[_0x452897(0x13f)]());}['removeParam'](_0x36e5f0,_0x3f5afb=!0x1){const _0x43c2bb=_0x13f674,_0x7f486a=new URL(window['location'][_0x43c2bb(0x121)]);_0x7f486a['searchParams'][_0x43c2bb(0x252)](_0x36e5f0),_0x3f5afb?window['history'][_0x43c2bb(0x1da)]('','',_0x7f486a[_0x43c2bb(0x13f)]()):window[_0x43c2bb(0x2cf)][_0x43c2bb(0x1d4)]('','',_0x7f486a['toString']());}[_0x13f674(0x2a8)](_0x5cbfd7){const _0x3c6a8f=_0x13f674;var _0x360a3a;return(_0x360a3a=new URL(window[_0x3c6a8f(0x1a4)][_0x3c6a8f(0x121)])[_0x3c6a8f(0x1b3)][_0x3c6a8f(0x1ab)](_0x5cbfd7))!=null?_0x360a3a:void 0x0;}}var os=Object[_0x13f674(0x180)],as=Object['getOwnPropertyDescriptor'],cs=(_0x53ac6d,_0x3268c0,_0x5596f0)=>_0x3268c0 in _0x53ac6d?os(_0x53ac6d,_0x3268c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5596f0}):_0x53ac6d[_0x3268c0]=_0x5596f0,ls=(_0x509a9e,_0x4dea35,_0x515a43,_0x289640)=>{for(var _0x2ba26f=_0x289640>0x1?void 0x0:_0x289640?as(_0x4dea35,_0x515a43):_0x4dea35,_0x5e0efa=_0x509a9e['length']-0x1,_0x11b767;_0x5e0efa>=0x0;_0x5e0efa--)(_0x11b767=_0x509a9e[_0x5e0efa])&&(_0x2ba26f=_0x11b767(_0x2ba26f)||_0x2ba26f);return _0x2ba26f;},Se=(_0x20b359,_0x28e783)=>(_0x910cd,_0x24ee38)=>_0x28e783(_0x910cd,_0x24ee38,_0x20b359),_s=(_0xdde35e,_0x4cb11f,_0x2ec6bd)=>cs(_0xdde35e,_0x4cb11f+'',_0x2ec6bd);const hs=_0x13f674(0x32f);exports[_0x13f674(0x312)]=class extends a[_0x13f674(0x34a)]{constructor(_0x420b58=Me,_0x440d81,_0x42b221,_0x1f46b1){const _0x4d73f7=_0x13f674;super(),this['_config']=_0x420b58,this[_0x4d73f7(0x2f8)]=_0x440d81,this[_0x4d73f7(0x2f4)]=_0x42b221,this[_0x4d73f7(0x1a5)]=_0x1f46b1;const {..._0x41caab}=a['merge']({},Me,this[_0x4d73f7(0x21a)]);this[_0x4d73f7(0x1a5)][_0x4d73f7(0x1f1)](Yt,_0x41caab);}[_0x13f674(0x270)](){const _0x258533=_0x13f674;this[_0x258533(0x261)](),this[_0x258533(0x25d)]();}[_0x13f674(0x158)](){const _0x41b25f=_0x13f674;this[_0x41b25f(0x26c)]();}[_0x13f674(0x261)](){const _0xf4c515=_0x13f674;var _0x269d52;const _0x1aa71c=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0xf4c515(0x354)],{'useClass':x[_0xf4c515(0x1ca)]}],[u[_0xf4c515(0x131)],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this['_config'][_0xf4c515(0x1fe)]&&_0x1aa71c[_0xf4c515(0x169)]([Q]),a['registerDependencies'](this[_0xf4c515(0x2f4)],a['mergeOverrideWithDependencies'](_0x1aa71c,(_0x269d52=this[_0xf4c515(0x21a)])==null?void 0x0:_0x269d52['override']));}[_0x13f674(0x26c)](){const _0xd39aa5=_0x13f674;this[_0xd39aa5(0x347)](this[_0xd39aa5(0x2f8)][_0xd39aa5(0x231)](a[_0xd39aa5(0x14d)][_0xd39aa5(0x2ce)],[Ee])),this[_0xd39aa5(0x347)](this[_0xd39aa5(0x2f8)][_0xd39aa5(0x231)](a[_0xd39aa5(0x14d)]['UNIVER_SHEET'],[Ce]));}[_0x13f674(0x25d)](){const _0x212ecc=_0x13f674;a['touchDependencies'](this['_injector'],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x212ecc(0x13e)]],[ne]]),this[_0x212ecc(0x21a)][_0x212ecc(0x1fe)]&&a['touchDependencies'](this[_0x212ecc(0x2f4)],[[Q]]);}},_s(exports[_0x13f674(0x312)],_0x13f674(0x2cd),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x13f674(0x3a6)](u[_0x13f674(0x291)]),Se(0x1,C[_0x13f674(0x31e)]),Se(0x2,a[_0x13f674(0x2d0)](a[_0x13f674(0x324)])),Se(0x3,a[_0x13f674(0x1bc)])],exports[_0x13f674(0x312)]);var us=Object[_0x13f674(0x2a3)],Is=(_0x4e0982,_0x354ff3,_0x45a28e,_0x117aa6)=>{const _0xe93303=_0x13f674;for(var _0x1773f9=_0x117aa6>0x1?void 0x0:_0x117aa6?us(_0x354ff3,_0x45a28e):_0x354ff3,_0x261709=_0x4e0982[_0xe93303(0x187)]-0x1,_0x3f3287;_0x261709>=0x0;_0x261709--)(_0x3f3287=_0x4e0982[_0x261709])&&(_0x1773f9=_0x3f3287(_0x1773f9)||_0x1773f9);return _0x1773f9;},W=(_0x4f5a3b,_0x4332fe)=>(_0x4b9d26,_0x59fa33)=>_0x4332fe(_0x4b9d26,_0x59fa33,_0x4f5a3b);exports['BrowserCollaborationSocketService']=class extends u[_0x13f674(0x296)]{constructor(_0x42b6d9,_0x385be0,_0x15a733,_0x1e33f2,_0x4ffa21){super(_0x42b6d9,_0x385be0,_0x15a733,_0x1e33f2,_0x4ffa21);}async[_0x13f674(0x203)](_0x29c578){const _0x396166=_0x13f674,_0x376f45=await this[_0x396166(0x2b2)](),_0x590666=this[_0x396166(0x2b7)](_0x29c578,_0x376f45);return this[_0x396166(0x27c)](_0x590666);}[_0x13f674(0x2b7)](_0xc985c6,_0xdc6b26){const _0x2f582a=_0x13f674,_0x1b8f91=typeof window>'u'?new URL(_0xc985c6):new URL(_0xc985c6,window[_0x2f582a(0x1a4)][_0x2f582a(0x11c)]);_0x1b8f91[_0x2f582a(0x1b3)]['set'](_0x2f582a(0xe9),_0xdc6b26);const _0x2537b8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2f582a(0x1a4)][_0x2f582a(0x2a1)]);return _0x2537b8[_0x2f582a(0x1ab)](_0x2f582a(0x2eb))&&_0x1b8f91[_0x2f582a(0x1b3)]['set'](_0x2f582a(0x2eb),_0x2537b8['get']('runId')),_0x1b8f91[_0x2f582a(0x13f)]();}async['_getSessionTicket'](){const _0x27236b=_0x13f674;var _0x2a7646,_0x2f253e,_0x50fcc0;const _0x2b0833=this[_0x27236b(0x1a5)]['getConfig'](u[_0x27236b(0xf3)]),_0xf0feab=(_0x2a7646=_0x2b0833==null?void 0x0:_0x2b0833[_0x27236b(0x30d)])!=null?_0x2a7646:u[_0x27236b(0x3b1)];return(_0x50fcc0=(_0x2f253e=(await this[_0x27236b(0x2c3)][_0x27236b(0x1ab)](_0xf0feab,{'headers':{'Content-Type':'application/json'}}))[_0x27236b(0x2de)])==null?void 0x0:_0x2f253e[_0x27236b(0x303)])!=null?_0x50fcc0:'';}},exports[_0x13f674(0x1b6)]=Is([W(0x0,a[_0x13f674(0x2d0)](a[_0x13f674(0x324)])),W(0x1,a['Inject'](x['HTTPService'])),W(0x2,a[_0x13f674(0x1bc)]),W(0x3,a[_0x13f674(0x2d2)]),W(0x4,g[_0x13f674(0x107)])],exports[_0x13f674(0x1b6)]);var ds=Object[_0x13f674(0x2a3)],Ss=(_0x36e9e0,_0x5d61e0,_0x4602b4,_0x5e8564)=>{for(var _0x2acbbd=_0x5e8564>0x1?void 0x0:_0x5e8564?ds(_0x5d61e0,_0x4602b4):_0x5d61e0,_0x4743bc=_0x36e9e0['length']-0x1,_0x43d0f4;_0x4743bc>=0x0;_0x4743bc--)(_0x43d0f4=_0x36e9e0[_0x4743bc])&&(_0x2acbbd=_0x43d0f4(_0x2acbbd)||_0x2acbbd);return _0x2acbbd;},fe=(_0x57e55f,_0x53f4d0)=>(_0x1e5dc8,_0xc17546)=>_0x53f4d0(_0x1e5dc8,_0xc17546,_0x57e55f);exports[_0x13f674(0x3a4)]=class extends a[_0x13f674(0x335)]{constructor(_0x5a6439,_0x163486,_0x1bac20){const _0x133658=_0x13f674;super(),this[_0x133658(0x11b)]=_0x5a6439,this[_0x133658(0x2c3)]=_0x163486,this[_0x133658(0x1a5)]=_0x1bac20;}async[_0x13f674(0x34b)](_0x2db1e2,_0x37334e,_0x36c348,..._0x588d7e){const _0x4a923e=_0x13f674;var _0x44cf6c,_0x96d370,_0x2acb88,_0x34b500;const _0x5c328d=this['_instanceService'][_0x4a923e(0x2db)]();if(!_0x5c328d)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x241cd8=((_0x44cf6c=this['_configService']['getConfig'](u[_0x4a923e(0x106)]))!=null?_0x44cf6c:u[_0x4a923e(0x164)])+'/'+_0x2db1e2+_0x4a923e(0x221)+_0x37334e,_0x5c0697=new URL(window[_0x4a923e(0x1a4)][_0x4a923e(0x121)]),_0x5043d6={'scriptId':_0x2db1e2,'runId':(_0x96d370=_0x5c0697[_0x4a923e(0x1b3)][_0x4a923e(0x1ab)]('runId'))!=null?_0x96d370:'','function':_0x37334e,'unitId':_0x5c328d[_0x4a923e(0x15e)](),'argsOfFunction':JSON[_0x4a923e(0x15c)](_0x588d7e),'invokeId':(_0x2acb88=_0x36c348[_0x4a923e(0x3a2)])!=null?_0x2acb88:'','executionId':(_0x34b500=_0x36c348[_0x4a923e(0x2e9)])!=null?_0x34b500:''};try{const _0x20db6d=await this[_0x4a923e(0x2c3)]['post'](_0x241cd8,{'body':_0x5043d6});return _0x20db6d['body']['error']&&_0x20db6d['body']['error']['code']!==G['OK']?'Failed':_0x20db6d[_0x4a923e(0x2de)][_0x4a923e(0x3a0)];}catch{return _0x4a923e(0x300);}}},exports[_0x13f674(0x3a4)]=Ss([fe(0x0,a[_0x13f674(0xf2)]),fe(0x1,a[_0x13f674(0x2d0)](x[_0x13f674(0x168)])),fe(0x2,a[_0x13f674(0x1bc)])],exports[_0x13f674(0x3a4)]);const we=0x7530,ye=_0x13f674(0x230);class fs extends a[_0x13f674(0x335)]{constructor(){const _0x43b77c=_0x13f674;super(),_(this,_0x43b77c(0x29d),a[_0x43b77c(0x197)]()),_(this,_0x43b77c(0x113),new Set()),_(this,'_unitOnClients',new Map()),_(this,'_heartbeatTimer',null),_(this,_0x43b77c(0x16c),new Map()),_(this,_0x43b77c(0x153),new Map()),this[_0x43b77c(0x11f)]();}['dispose'](){const _0xef2a5e=_0x13f674;super[_0xef2a5e(0x163)](),this['_clearOtherTimers'][_0xef2a5e(0x234)]((_0x4b9aca,_0x42eff6)=>this[_0xef2a5e(0x322)](_0x42eff6)),this[_0xef2a5e(0x146)]&&window[_0xef2a5e(0x13b)](this[_0xef2a5e(0x146)]);}[_0x13f674(0x359)](_0x152576){const _0x1c81f4=_0x13f674;return this[_0x1c81f4(0x3ab)](_0x152576)[_0x1c81f4(0x274)](I[_0x1c81f4(0x1d3)]());}[_0x13f674(0x202)](_0x2a4d92){const _0x172fc3=_0x13f674;this[_0x172fc3(0x113)][_0x172fc3(0x340)]===0x0&&this['_scheduleHeartbeat'](),this[_0x172fc3(0x113)]['add'](_0x2a4d92),this['_send']({'type':0x0,'memberID':this[_0x172fc3(0x29d)],'unitIDs':[_0x2a4d92],'isForwarded':!0x1});}[_0x13f674(0x253)](_0x17bdfe){const _0x32634d=_0x13f674;this[_0x32634d(0x113)][_0x32634d(0x252)](_0x17bdfe),this['_selfUnitIDs'][_0x32634d(0x340)]===0x0&&this[_0x32634d(0x146)]&&window[_0x32634d(0x13b)](this['_heartbeatTimer']);}['_init'](){const _0x2526a6=_0x13f674;this[_0x2526a6(0x347)](a['toDisposable'](I[_0x2526a6(0x398)](window,_0x2526a6(0x17d))[_0x2526a6(0x271)](_0x20756a=>{const _0x1f6449=_0x2526a6;if(_0x20756a['key']!==ye||!_0x20756a[_0x1f6449(0x339)])return;const _0x2914d1=JSON['parse'](_0x20756a[_0x1f6449(0x339)]);this[_0x1f6449(0x17f)](_0x2914d1);}))),window[_0x2526a6(0x337)](_0x2526a6(0x2be),()=>this[_0x2526a6(0x30b)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2526a6(0x178)](this[_0x2526a6(0x113)])}));}[_0x13f674(0x17f)](_0x3ee80a){const _0x2c4eca=_0x13f674;switch(_0x3ee80a['type']){case 0x0:this[_0x2c4eca(0x2c2)](_0x3ee80a);break;case 0x1:this['_handleLeaveEvent'](_0x3ee80a);break;case 0x2:this[_0x2c4eca(0x141)](_0x3ee80a);break;}}[_0x13f674(0x2c2)](_0x3fc9e6){const _0x5484f4=_0x13f674,{unitIDs:_0x3fcc45,memberID:_0x10baba,isForwarded:_0x7932fa}=_0x3fc9e6;_0x3fcc45[_0x5484f4(0x234)](_0x4aedc8=>{const _0xa72cb2=_0x5484f4;if(!_0x7932fa&&this[_0xa72cb2(0x2dc)][_0xa72cb2(0x2f0)](_0x4aedc8)&&this[_0xa72cb2(0x3ab)](_0x4aedc8)[_0xa72cb2(0x3b4)](u[_0xa72cb2(0x13c)][_0xa72cb2(0x204)]),!this[_0xa72cb2(0x2dc)][_0xa72cb2(0x2f0)](_0x4aedc8)||!this['_unitOnClients'][_0xa72cb2(0x1ab)](_0x4aedc8)[_0xa72cb2(0x2f0)](_0x10baba)){const _0x20d36b=this[_0xa72cb2(0x2dc)][_0xa72cb2(0x1ab)](_0x4aedc8)||new Set();_0x20d36b[_0xa72cb2(0x388)](_0x10baba),this[_0xa72cb2(0x2dc)][_0xa72cb2(0x38c)](_0x4aedc8,_0x20d36b),this[_0xa72cb2(0x2b8)](_0x10baba);}}),_0x7932fa||this[_0x5484f4(0x30b)]({'type':0x0,'memberID':this[_0x5484f4(0x29d)],'unitIDs':[...this[_0x5484f4(0x113)]],'isForwarded':!0x0});}[_0x13f674(0x2b8)](_0x439a06){const _0xc0e443=_0x13f674;this[_0xc0e443(0x322)](_0x439a06);const _0x1907e6=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x2b04ce=>{_0x2b04ce['delete'](_0x439a06);});},we*0x2);this['_clearOtherTimers'][_0xc0e443(0x38c)](_0x439a06,_0x1907e6);}['_removeClearOtherTimer'](_0x1eaf97){const _0xdfd765=_0x13f674;if(this[_0xdfd765(0x16c)]['has'](_0x1eaf97)){const _0x84b807=this[_0xdfd765(0x16c)][_0xdfd765(0x1ab)](_0x1eaf97);_0x84b807&&window['clearTimeout'](_0x84b807),this[_0xdfd765(0x16c)][_0xdfd765(0x38c)](_0x1eaf97,null);}}[_0x13f674(0x2e3)](_0x31dd1a){const _0x432923=_0x13f674,{memberID:_0x5d5063,unitIDs:_0xc5e113}=_0x31dd1a;_0xc5e113[_0x432923(0x234)](_0x11bba4=>{const _0x4e558e=_0x432923;var _0x2e9db7;const _0x329ac3=this['_unitOnClients'][_0x4e558e(0x1ab)](_0x11bba4);_0x329ac3&&(_0x329ac3[_0x4e558e(0x252)](_0x5d5063),(_0x2e9db7=this[_0x4e558e(0x3ab)](_0x11bba4))==null||_0x2e9db7[_0x4e558e(0x3b4)](_0x329ac3['size']===0x0?u[_0x4e558e(0x13c)][_0x4e558e(0xf6)]:u[_0x4e558e(0x13c)]['OTHER_CLIENTS_EDITING']));}),this[_0x432923(0x322)](_0x5d5063);}['_handleHeartbeatEvent'](_0x2c8cca){const _0x3b80ec=_0x13f674;this[_0x3b80ec(0x2b8)](_0x2c8cca['memberID']);}[_0x13f674(0x30b)](_0x2e60ac){const _0x195971=_0x13f674;localStorage[_0x195971(0x239)](ye,JSON[_0x195971(0x15c)](_0x2e60ac));}[_0x13f674(0x21e)](){const _0x893ff=_0x13f674;this[_0x893ff(0x146)]=window[_0x893ff(0x37c)](()=>{const _0xc5a535=_0x893ff;this[_0xc5a535(0x30b)]({'type':0x2,'memberID':this[_0xc5a535(0x29d)]});},we);}[_0x13f674(0x3ab)](_0x455a37){const _0x54c7ea=_0x13f674;return this[_0x54c7ea(0x153)][_0x54c7ea(0x2f0)](_0x455a37)||this['_unitStatus'][_0x54c7ea(0x38c)](_0x455a37,new I[(_0x54c7ea(0x200))](u[_0x54c7ea(0x13c)][_0x54c7ea(0xf6)])),this['_unitStatus'][_0x54c7ea(0x1ab)](_0x455a37);}}exports[_0x13f674(0x31f)]=Oe,exports[_0x13f674(0x260)]=je,exports[_0x13f674(0x3b5)]=fs,exports[_0x13f674(0x34c)]=ke;
|
|
1
|
+
'use strict';const _0x366146=_0x23c7;(function(_0x5d58e6,_0x76c7fc){const _0xdf0a7=_0x23c7,_0x383231=_0x5d58e6();while(!![]){try{const _0x1f65de=-parseInt(_0xdf0a7(0x3b4))/0x1+-parseInt(_0xdf0a7(0x1f0))/0x2*(-parseInt(_0xdf0a7(0x3d0))/0x3)+-parseInt(_0xdf0a7(0x1aa))/0x4*(-parseInt(_0xdf0a7(0x33e))/0x5)+-parseInt(_0xdf0a7(0x2b3))/0x6+parseInt(_0xdf0a7(0x40b))/0x7+-parseInt(_0xdf0a7(0x34e))/0x8*(-parseInt(_0xdf0a7(0x1bb))/0x9)+parseInt(_0xdf0a7(0x22c))/0xa*(-parseInt(_0xdf0a7(0x22d))/0xb);if(_0x1f65de===_0x76c7fc)break;else _0x383231['push'](_0x383231['shift']());}catch(_0x482ad1){_0x383231['push'](_0x383231['shift']());}}}(_0x51ff,0xa621e));var Xe=Object[_0x366146(0x24e)],Ke=(_0x46f5be,_0xa83745,_0x47c667)=>_0xa83745 in _0x46f5be?Xe(_0x46f5be,_0xa83745,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47c667}):_0x46f5be[_0xa83745]=_0x47c667,_=(_0x5e09ef,_0x5b55b3,_0x15631e)=>Ke(_0x5e09ef,typeof _0x5b55b3!='symbol'?_0x5b55b3+'':_0x5b55b3,_0x15631e);Object[_0x366146(0x24e)](exports,Symbol[_0x366146(0x259)],{'value':_0x366146(0x207)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x16870c,..._0x55c457}){const _0x8c9008=_0x366146,{icon:_0x147507,id:_0x579132,className:_0x50eee9,extend:_0x3d9b93,..._0x1d7559}=_0x55c457,_0xb37871=('univerjs-icon\x20univerjs-icon-'+_0x579132+'\x20'+(_0x50eee9||''))[_0x8c9008(0x1d1)](),_0x10f279=A[_0x8c9008(0x2b0)]('_'+Qe());return $e(_0x147507,''+_0x579132,{'defIds':_0x147507['defIds'],'idSuffix':_0x10f279[_0x8c9008(0x3b9)]},{'ref':_0x16870c,'className':_0xb37871,..._0x1d7559},_0x3d9b93);}function $e(_0x24d557,_0x27f9f7,_0x24a817,_0x31ee8c,_0x3809d3){const _0x2581cb=_0x366146;return A['createElement'](_0x24d557['tag'],{'key':_0x27f9f7,...Je(_0x24d557,_0x24a817,_0x3809d3),..._0x31ee8c},(Ze(_0x24d557,_0x24a817)['children']||[])[_0x2581cb(0x3e9)]((_0x509100,_0x5724c2)=>$e(_0x509100,_0x27f9f7+'-'+_0x24d557[_0x2581cb(0x2c8)]+'-'+_0x5724c2,_0x24a817,void 0x0,_0x3809d3)));}function Je(_0x53c105,_0xa9719a,_0x2a5dab){const _0x176514=_0x366146,_0x404f34={..._0x53c105[_0x176514(0x261)]};_0x2a5dab!=null&&_0x2a5dab['colorChannel1']&&_0x404f34[_0x176514(0x167)]===_0x176514(0x366)&&(_0x404f34[_0x176514(0x167)]=_0x2a5dab[_0x176514(0x366)]),_0x53c105[_0x176514(0x2c8)]===_0x176514(0x22a)&&_0x404f34['id']&&(_0x404f34['id']=_0x404f34['id']+_0xa9719a[_0x176514(0x2e0)]),Object[_0x176514(0x357)](_0x404f34)[_0x176514(0x3eb)](([_0x540045,_0x5c9797])=>{const _0xbeb22f=_0x176514;_0x540045==='mask'&&typeof _0x5c9797=='string'&&(_0x404f34[_0x540045]=_0x5c9797['replace'](/url\(#(.*)\)/,_0xbeb22f(0x3af)+_0xa9719a[_0xbeb22f(0x2e0)]+')'));});const {defIds:_0x3e540c}=_0xa9719a;return!_0x3e540c||_0x3e540c[_0x176514(0x18d)]===0x0||(_0x53c105[_0x176514(0x2c8)]==='use'&&_0x404f34[_0x176514(0x376)]&&(_0x404f34[_0x176514(0x376)]=_0x404f34[_0x176514(0x376)]+_0xa9719a[_0x176514(0x2e0)]),Object[_0x176514(0x357)](_0x404f34)['forEach'](([_0x32f6a0,_0x20af7e])=>{const _0x3e5bcc=_0x176514;typeof _0x20af7e=='string'&&(_0x404f34[_0x32f6a0]=_0x20af7e[_0x3e5bcc(0x2ff)](/url\(#(.*)\)/,_0x3e5bcc(0x3af)+_0xa9719a[_0x3e5bcc(0x2e0)]+')'));})),_0x404f34;}function _0x23c7(_0x4f7ac5,_0x513534){const _0x51ff0d=_0x51ff();return _0x23c7=function(_0x23c7f3,_0x20f718){_0x23c7f3=_0x23c7f3-0x148;let _0x5e6d64=_0x51ff0d[_0x23c7f3];return _0x5e6d64;},_0x23c7(_0x4f7ac5,_0x513534);}function Ze(_0x4cb6bf,_0x7dbc6a){const _0x38e400=_0x366146;var _0x5a50a9;const {defIds:_0x5e2067}=_0x7dbc6a;return!_0x5e2067||_0x5e2067[_0x38e400(0x18d)]===0x0?_0x4cb6bf:_0x4cb6bf[_0x38e400(0x2c8)]===_0x38e400(0x182)&&((_0x5a50a9=_0x4cb6bf[_0x38e400(0x15e)])!=null&&_0x5a50a9['length'])?{..._0x4cb6bf,'children':_0x4cb6bf[_0x38e400(0x15e)]['map'](_0x4bab8f=>typeof _0x4bab8f[_0x38e400(0x261)]['id']=='string'&&_0x5e2067&&_0x5e2067[_0x38e400(0x2a6)](_0x4bab8f[_0x38e400(0x261)]['id'])?{..._0x4bab8f,'attrs':{..._0x4bab8f[_0x38e400(0x261)],'id':_0x4bab8f[_0x38e400(0x261)]['id']+_0x7dbc6a[_0x38e400(0x2e0)]}}:_0x4bab8f)}:_0x4cb6bf;}function Qe(){const _0x2e829b=_0x366146;return Math[_0x2e829b(0x1ce)]()[_0x2e829b(0x177)](0x24)['substring'](0x2,0x8);}Te[_0x366146(0x331)]=_0x366146(0x325);const et={'tag':_0x366146(0x32e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x366146(0x37b),'viewBox':'0\x200\x2016\x2016','width':_0x366146(0x381),'height':_0x366146(0x381)},'children':[{'tag':'g','attrs':{'clipPath':_0x366146(0x323)},'children':[{'tag':_0x366146(0x3b6),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x366146(0x36b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x366146(0x3b6),'attrs':{'fill':_0x366146(0x3a7),'d':_0x366146(0x178)}}]}]}],'defIds':[_0x366146(0x2aa)]},xe=A[_0x366146(0x344)](function(_0x5dab64,_0x463460){const _0x2f8b5b=_0x366146;return A[_0x2f8b5b(0x180)](Te,Object[_0x2f8b5b(0x205)]({},_0x5dab64,{'id':_0x2f8b5b(0x361),'ref':_0x463460,'icon':et}));});xe[_0x366146(0x331)]='OffLineIcon';const tt={'tag':'svg','attrs':{'xmlns':_0x366146(0x3b3),'fill':_0x366146(0x37b),'viewBox':_0x366146(0x34d),'width':_0x366146(0x381),'height':_0x366146(0x381)},'children':[{'tag':'g','attrs':{'clipPath':_0x366146(0x14e)},'children':[{'tag':_0x366146(0x3b6),'attrs':{'stroke':_0x366146(0x18a),'d':_0x366146(0x3e2),'strokeLinecap':'round','strokeLinejoin':_0x366146(0x36b),'strokeWidth':1.2}}]},{'tag':_0x366146(0x182),'attrs':{},'children':[{'tag':_0x366146(0x275),'attrs':{'id':_0x366146(0x351)},'children':[{'tag':_0x366146(0x3b6),'attrs':{'fill':'white','d':_0x366146(0x178),'transform':_0x366146(0x342)}}]}]}],'defIds':[_0x366146(0x351)]},Be=A[_0x366146(0x344)](function(_0x55291a,_0x5245cf){const _0x165950=_0x366146;return A[_0x165950(0x180)](Te,Object['assign']({},_0x55291a,{'id':'on-line-icon','ref':_0x5245cf,'icon':tt}));});Be['displayName']=_0x366146(0x3ae);function st(_0x2f5ac4){const _0x2ed5ce=_0x366146;switch(_0x2f5ac4){case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x3cf)]:return _0x2ed5ce(0x319);case u['CollaborationStatus']['CONFLICT']:return _0x2ed5ce(0x293);case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x154)]:return _0x2ed5ce(0x156);case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x2ad)]:return _0x2ed5ce(0x27e);case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x264)]:case u[_0x2ed5ce(0x380)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x233)]:case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x14b)]:return'collabStatus.synced';}}function it(_0x241bba){const _0x1b3158=_0x366146,{status$:_0x17392d}=_0x241bba,_0x5d45bb=O['useObservable'](_0x17392d,u[_0x1b3158(0x380)][_0x1b3158(0x2ad)]),_0x4bc89f=O['useDependency'](a[_0x1b3158(0x267)]),_0x1b5b72=O[_0x1b3158(0x3c9)](u[_0x1b3158(0x31a)]),_0x2d93b3=_0x5d45bb!==u[_0x1b3158(0x380)][_0x1b3158(0x3cf)],_0x575fd5=_0x4bc89f['t'](st(_0x5d45bb)),_0x54116d=_0x2d93b3?M[_0x1b3158(0x213)](Be,{}):M[_0x1b3158(0x213)](xe,{}),_0x4c44e1=A[_0x1b3158(0x21b)](()=>{_0x2d93b3||_0x1b5b72['reconnect']();},[_0x2d93b3,_0x1b5b72]);function _0xda36ff(){const _0x9c6e5b=_0x1b3158;return M['jsxs'](_0x9c6e5b(0x303),{'className':'univer-flex\x20univer-items-center','onClick':_0x4c44e1,'children':[M[_0x9c6e5b(0x213)](_0x9c6e5b(0x303),{'className':T[_0x9c6e5b(0x347)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2d93b3,'univer-text-red-500':!_0x2d93b3}),'children':_0x54116d}),M['jsx'](_0x9c6e5b(0x303),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x575fd5})]});}return _0x2d93b3?_0xda36ff():M['jsx'](T[_0x1b3158(0x1fe)],{'title':_0x4bc89f['t'](_0x1b3158(0x3a9)),'children':_0xda36ff()});}var nt=Object[_0x366146(0x3ee)],rt=(_0x182f17,_0x577640,_0x3b3b4e,_0x5903c7)=>{const _0x30bfe0=_0x366146;for(var _0x5d4e77=_0x5903c7>0x1?void 0x0:_0x5903c7?nt(_0x577640,_0x3b3b4e):_0x577640,_0xd79003=_0x182f17[_0x30bfe0(0x18d)]-0x1,_0x193d15;_0xd79003>=0x0;_0xd79003--)(_0x193d15=_0x182f17[_0xd79003])&&(_0x5d4e77=_0x193d15(_0x5d4e77)||_0x5d4e77);return _0x5d4e77;},K=(_0x1cae6d,_0x3bac0c)=>(_0x13bc48,_0x2cdd4c)=>_0x3bac0c(_0x13bc48,_0x2cdd4c,_0x1cae6d);exports[_0x366146(0x1ee)]=class extends a['Disposable']{constructor(_0x49fb84,_0x5d175e,_0x403b56,_0x386ccc){const _0x15e1a8=_0x366146;super(),_(this,'_status$',new I['BehaviorSubject'](u['CollaborationStatus'][_0x15e1a8(0x2ad)])),(this['_univerInstanceService']=_0x49fb84,this[_0x15e1a8(0x354)]=_0x5d175e,this[_0x15e1a8(0x240)]=_0x403b56,this[_0x15e1a8(0x2e5)]=_0x386ccc,this[_0x15e1a8(0x28e)](),this['_initStatusListener']());}[_0x366146(0x164)](){const _0x1b7469=_0x366146;this[_0x1b7469(0x39d)](this['_univerInstanceService']['focused$'][_0x1b7469(0x1c2)](I[_0x1b7469(0x1fd)](()=>{const _0x2b529b=_0x1b7469,_0x3974ee=this[_0x2b529b(0x2fe)][_0x2b529b(0x1f2)]();return _0x3974ee?this[_0x2b529b(0x240)][_0x2b529b(0x2bc)](_0x3974ee[_0x2b529b(0x349)]()):I['of'](null);}),I[_0x1b7469(0x1fd)](_0x389b79=>_0x389b79?_0x389b79[_0x1b7469(0x2fa)]:I['of'](u['CollaborationStatus'][_0x1b7469(0x2ad)])))['subscribe'](_0x5ca63f=>{const _0x34cd53=_0x1b7469;this['_status$'][_0x34cd53(0x161)](_0x5ca63f);}));}[_0x366146(0x28e)](){const _0x423c04=_0x366146;this[_0x423c04(0x39d)](this['_uiPartsService'][_0x423c04(0x402)](O[_0x423c04(0x3a5)][_0x423c04(0x222)],()=>O['connectInjector'](ot({'status$':this['_status$']['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x366146(0x375)]),K(0x1,a[_0x366146(0x34a)](a['Injector'])),K(0x2,a[_0x366146(0x34a)](u['CollaborationController'])),K(0x3,O[_0x366146(0x3e8)])],exports[_0x366146(0x1ee)]);function ot(_0x538d32){const {status$:_0x102b91}=_0x538d32;return function(){return M['jsx'](it,{'status$':_0x102b91});};}const Oe=a[_0x366146(0x368)](_0x366146(0x3c4));var at=Object[_0x366146(0x3ee)],ct=(_0x49fbcc,_0x2adf1d,_0x4cd451,_0x2f8813)=>{for(var _0x3c777a=_0x2f8813>0x1?void 0x0:_0x2f8813?at(_0x2adf1d,_0x4cd451):_0x2adf1d,_0x5351ed=_0x49fbcc['length']-0x1,_0x3bcb8d;_0x5351ed>=0x0;_0x5351ed--)(_0x3bcb8d=_0x49fbcc[_0x5351ed])&&(_0x3c777a=_0x3bcb8d(_0x3c777a)||_0x3c777a);return _0x3c777a;},Y=(_0x158bd2,_0x1716c7)=>(_0x158db0,_0x34de6b)=>_0x1716c7(_0x158db0,_0x34de6b,_0x158bd2);exports[_0x366146(0x1ad)]=class extends a[_0x366146(0x25a)]{constructor(_0x313361,_0x97ecfc,_0x3d9810,_0x2a4ba2,_0x11d558){const _0x3a9e8f=_0x366146;super(),this['_urlService']=_0x313361,this[_0x3a9e8f(0x204)]=_0x97ecfc,this[_0x3a9e8f(0x16f)]=_0x3d9810,this[_0x3a9e8f(0x2d6)]=_0x2a4ba2,_0x11d558?_0x11d558==null||_0x11d558['whenReady']()[_0x3a9e8f(0x3c5)](()=>this[_0x3a9e8f(0x3d7)]()):(this[_0x3a9e8f(0x204)][_0x3a9e8f(0x346)]('[CollaborationDataLoaderController]',_0x3a9e8f(0x2b5)),this['_init']());}async[_0x366146(0x3d7)](){const _0x5c34fd=_0x366146,_0x56af2c=this[_0x5c34fd(0x1b1)][_0x5c34fd(0x1d4)](_0x5c34fd(0x186)),_0x4f5dfc=this[_0x5c34fd(0x1b1)][_0x5c34fd(0x1d4)]('type'),_0x523869=this['_urlService'][_0x5c34fd(0x1d4)](_0x5c34fd(0x1df));if(!_0x56af2c||!_0x4f5dfc){this['_logService'][_0x5c34fd(0x346)](_0x5c34fd(0x188),_0x5c34fd(0x17b));return;}const _0x363b09=await this[_0x5c34fd(0x2d6)][_0x5c34fd(0x31c)](_0x56af2c,Number(_0x4f5dfc),_0x523869);_0x363b09&&_0x363b09 instanceof a[_0x5c34fd(0x2bf)]&&this[_0x5c34fd(0x166)](_0x363b09);}async[_0x366146(0x166)](_0x11e02f){const _0x177709=_0x366146;await this[_0x177709(0x3cd)](_0x11e02f),_0x11e02f[_0x177709(0x2e1)][_0x177709(0x1c2)](I['takeUntil'](this[_0x177709(0x1a0)]))[_0x177709(0x390)](_0x2024a9=>{const _0x316a50=_0x177709;_0x2024a9&&this[_0x316a50(0x248)](_0x2024a9);}),this[_0x177709(0x1b1)]['urlChange$'][_0x177709(0x1c2)](I[_0x177709(0x225)](this[_0x177709(0x1a0)]))[_0x177709(0x390)](()=>this['_updateSubUnitFromURLParams'](_0x11e02f));}[_0x366146(0x248)](_0x104c64,_0x378bb3=!0x1){const _0x4a73a8=_0x366146,_0x48098d=this[_0x4a73a8(0x1b1)][_0x4a73a8(0x1d4)](_0x4a73a8(0x1df));_0x104c64[_0x4a73a8(0x1a3)]()!==_0x48098d&&this['_urlService'][_0x4a73a8(0x20d)]('subunit',_0x104c64[_0x4a73a8(0x1a3)](),_0x378bb3);}async[_0x366146(0x3cd)](_0x12434d){const _0x252118=_0x366146;var _0x3585f7;const _0x574fa5=this['_urlService']['getParam'](_0x252118(0x1df));if(!_0x574fa5||!_0x12434d[_0x252118(0x239)](_0x574fa5)){const _0x324dc3=_0x12434d['getUnhiddenWorksheets']()[0x0],_0x5eea79=_0x12434d[_0x252118(0x239)](_0x324dc3);if(!_0x5eea79)return;this[_0x252118(0x248)](_0x5eea79,!0x0),await this[_0x252118(0x16f)][_0x252118(0x1be)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x12434d[_0x252118(0x349)](),'subUnitId':_0x324dc3});return;}((_0x3585f7=_0x12434d[_0x252118(0x40a)]())==null?void 0x0:_0x3585f7[_0x252118(0x1a3)]())!==_0x574fa5&&await this[_0x252118(0x16f)]['executeCommand'](v[_0x252118(0x228)]['id'],{'unitId':_0x12434d['getUnitId'](),'subUnitId':_0x574fa5});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x366146(0x2e8)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0x366146(0x34a)](u[_0x366146(0x1bc)])),Y(0x4,a[_0x366146(0x3f1)](qe['IRemoteInstanceService']))],exports[_0x366146(0x1ad)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x146b71,_0x52e1f1,_0x4c2247,_0x880c6)=>{for(var _0x396066=_0x880c6>0x1?void 0x0:_0x880c6?lt(_0x52e1f1,_0x4c2247):_0x52e1f1,_0x154d00=_0x146b71['length']-0x1,_0x425b39;_0x154d00>=0x0;_0x154d00--)(_0x425b39=_0x146b71[_0x154d00])&&(_0x396066=_0x425b39(_0x396066)||_0x396066);return _0x396066;},De=(_0x4fe666,_0x2d2d57)=>(_0x1321b9,_0x259281)=>_0x2d2d57(_0x1321b9,_0x259281,_0x4fe666);let me=class extends a['RxDisposable']{constructor(_0x1aed1b,_0x9bc629){const _0x1eea78=_0x366146;super(),this[_0x1eea78(0x1f7)]=_0x1aed1b,this[_0x1eea78(0x3dd)]=_0x9bc629,this['_init']();}[_0x366146(0x3d7)](){const _0x35199c=_0x366146,_0x3a7e27=this;this[_0x35199c(0x39d)](this[_0x35199c(0x1f7)][_0x35199c(0x258)]({'onBeforePasteImage':async _0x55c183=>{const _0x101b3c=_0x35199c,_0x50434f=await _0x3a7e27[_0x101b3c(0x3dd)][_0x101b3c(0x2a7)](_0x55c183);return _0x50434f?{'source':_0x50434f['source'],'imageSourceType':_0x50434f[_0x101b3c(0x3a0)]}:null;}}));}};me=_t([De(0x0,p[_0x366146(0x160)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x366146(0x3e5),'jiqing.500','green.600',_0x366146(0x355),_0x366146(0x3c1),_0x366146(0x202)];class Re extends a[_0x366146(0x176)]{constructor(){const _0x43f2bd=_0x366146;super(...arguments),_(this,_0x43f2bd(0x185),new Map()),_(this,_0x43f2bd(0x338),0x0);}[_0x366146(0x3ca)](_0x2da55e){const _0x227991=_0x366146;if(this[_0x227991(0x185)][_0x227991(0x3fe)](_0x2da55e))return this[_0x227991(0x185)]['get'](_0x2da55e);const _0x5624e4=Ne[this[_0x227991(0x338)]];return this['_colorIndex']=(this[_0x227991(0x338)]+0x1)%Ne[_0x227991(0x18d)],this[_0x227991(0x185)]['set'](_0x2da55e,_0x5624e4),_0x5624e4;}}function Fe(_0x4326bf){const _0x147326=_0x366146;let _0x27f3a2='';for(const _0x428773 of _0x4326bf){const {startOffset:_0x43a187,endOffset:_0x26bb97,isActive:_0xc0da2,rangeType:_0x288f5a,segmentId:_0x3a6e6e,segmentPage:_0x482cc9}=_0x428773;_0x27f3a2[_0x147326(0x18d)]&&(_0x27f3a2+=','),_0x27f3a2+=_0x43a187+':'+_0x26bb97+':'+(_0xc0da2?'1':'0')+':'+_0x288f5a+':'+_0x3a6e6e+':'+_0x482cc9;}return _0x27f3a2;}function ht(_0x40c2fc){const _0x12830a=_0x366146,_0x37f3d5=_0x40c2fc['split'](','),_0x4d3cfa=[];for(const _0x11c5b3 of _0x37f3d5){const [_0x4c0c72,_0x1ac75b,_0x24522e,_0x30468b,_0x15b67f,_0x87d733]=_0x11c5b3[_0x12830a(0x16d)](':');_0x4d3cfa[_0x12830a(0x192)]({'startOffset':Number(_0x4c0c72),'endOffset':Number(_0x1ac75b),'collapsed':_0x4c0c72===_0x1ac75b,'isActive':_0x24522e==='1','rangeType':_0x30468b===a[_0x12830a(0x392)][_0x12830a(0x1b6)]?a[_0x12830a(0x392)][_0x12830a(0x1b6)]:a[_0x12830a(0x392)][_0x12830a(0x19b)],'segmentId':typeof _0x15b67f==_0x12830a(0x36f)?String(_0x15b67f):'','segmentPage':Number(_0x87d733!=null?_0x87d733:-0x1)});}return _0x4d3cfa[_0x12830a(0x217)](_0x2ea1b8=>_0x2ea1b8['isActive'])||(_0x4d3cfa[0x0][_0x12830a(0x2f5)]=!0x0),_0x4d3cfa;}class be extends a[_0x366146(0x25a)]{constructor(){const _0x2a9a27=_0x366146;super(...arguments),_(this,_0x2a9a27(0x148),new I[(_0x2a9a27(0x3a8))](null)),_(this,_0x2a9a27(0x1e4),this['_collabCursorState$'][_0x2a9a27(0x334)]());}[_0x366146(0x1c3)](_0x5bf1d9){const _0x3dfee7=_0x366146,{unitID:_0x48cfce,memberID:_0x20d0be,textRanges:_0x4ccc93}=_0x5bf1d9,_0x13914c=Fe(_0x4ccc93);if(_0x13914c==='')return;const _0x5bdaa7={'unitID':_0x48cfce,'memberID':_0x20d0be,'selection':_0x13914c};this['_collabCursorState$'][_0x3dfee7(0x161)](_0x5bdaa7);}}var ut=Object[_0x366146(0x3ee)],It=(_0x23951b,_0xccdf91,_0x4a441d,_0x5318b2)=>{const _0x381aff=_0x366146;for(var _0x22013b=_0x5318b2>0x1?void 0x0:_0x5318b2?ut(_0xccdf91,_0x4a441d):_0xccdf91,_0x41c080=_0x23951b[_0x381aff(0x18d)]-0x1,_0x508a2a;_0x41c080>=0x0;_0x41c080--)(_0x508a2a=_0x23951b[_0x41c080])&&(_0x22013b=_0x508a2a(_0x22013b)||_0x22013b);return _0x22013b;},U=(_0x21cd6d,_0x406a08)=>(_0x118a9b,_0x34bb53)=>_0x406a08(_0x118a9b,_0x34bb53,_0x21cd6d);const dt=0x12c,St=0x64;let ve=class extends a[_0x366146(0x25a)]{constructor(_0x209dfb,_0x343937,_0x4eaab8,_0x1ec4ce,_0x4155f5,_0x32a58e,_0x3a7a06,_0xe0d651,_0x304f61){const _0x1c940e=_0x366146;super(),_(this,_0x1c940e(0x1b2),!0x1),_(this,_0x1c940e(0x3d7),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x1c940e(0x1ea),this[_0x1c940e(0x20b)]['asObservable']()),_(this,'_roomMembers$',new I[(_0x1c940e(0x3a8))]([])),_(this,'roomMembers$',this[_0x1c940e(0x1e2)][_0x1c940e(0x1c2)](I[_0x1c940e(0x17d)](dt))),_(this,'_updateLocalCursor',a[_0x1c940e(0x278)](_0xfc7b0b=>{const _0x400d58=_0x1c940e,_0xccb0d6={'eventID':g['CollaborationEvent'][_0x400d58(0x195)],'data':{'unitID':this['unitID'],'memberID':this[_0x400d58(0x2cf)][_0x400d58(0x26a)](),'selection':Fe(_0xfc7b0b)}};this['_session'][_0x400d58(0x2a4)](_0xccb0d6,this[_0x400d58(0x1c5)]);},St)),(this[_0x1c940e(0x1c5)]=_0x209dfb,this[_0x1c940e(0x2cf)]=_0x343937,this[_0x1c940e(0x354)]=_0x4eaab8,this[_0x1c940e(0x1d3)]=_0x1ec4ce,this[_0x1c940e(0x22e)]=_0x4155f5,this['_syncEditingCollabCursorService']=_0x32a58e,this[_0x1c940e(0x1e8)]=_0x3a7a06,this[_0x1c940e(0x2fe)]=_0xe0d651,this[_0x1c940e(0x16f)]=_0x304f61);}get[_0x366146(0x191)](){const _0x56221e=_0x366146;return this[_0x56221e(0x20b)]['getValue']();}get[_0x366146(0x312)](){const _0x60ba52=_0x366146;return this[_0x60ba52(0x1e2)][_0x60ba52(0x1bf)]();}[_0x366146(0x286)](){const _0x5ae0f7=_0x366146;super[_0x5ae0f7(0x286)](),this[_0x5ae0f7(0x20b)]['next'](new Map()),this[_0x5ae0f7(0x20b)][_0x5ae0f7(0x328)](),this[_0x5ae0f7(0x1e2)]['next']([]),this[_0x5ae0f7(0x1e2)][_0x5ae0f7(0x328)]();}[_0x366146(0x292)](){const _0x2dafd8=_0x366146;this[_0x2dafd8(0x3d7)]||(this[_0x2dafd8(0x3d7)]=!0x0,this[_0x2dafd8(0x2cf)]['sessionStatus$'][_0x2dafd8(0x1c2)](I['takeUntil'](this[_0x2dafd8(0x1a0)]))[_0x2dafd8(0x390)](_0xd9d7bf=>{const _0x511e6c=_0x2dafd8;_0xd9d7bf===u[_0x511e6c(0x1c4)][_0x511e6c(0x237)]?this[_0x511e6c(0x2c3)]():this[_0x511e6c(0x34c)]();}),this['_session'][_0x2dafd8(0x18c)]['pipe'](I[_0x2dafd8(0x225)](this['dispose$']))[_0x2dafd8(0x390)](_0x543d60=>{const _0x368317=_0x2dafd8,_0x4e1f49=_0x543d60[_0x368317(0x246)];_0x4e1f49===g[_0x368317(0x238)][_0x368317(0x195)]&&this[_0x368317(0x401)](_0x543d60),_0x4e1f49===g['CollaborationEvent'][_0x368317(0x26b)]&&this[_0x368317(0x14c)](_0x543d60);}),this[_0x2dafd8(0x39d)](this[_0x2dafd8(0x16f)][_0x2dafd8(0x3e7)](_0x5a3d39=>{const _0x4ec1fa=_0x2dafd8,_0x320fb0=_0x5a3d39[_0x4ec1fa(0x35d)];_0x320fb0!=null&&this[_0x4ec1fa(0x1b2)]&&_0x5a3d39['id']===V[_0x4ec1fa(0x301)]['id']&&_0x320fb0[_0x4ec1fa(0x232)]===this[_0x4ec1fa(0x1c5)]&&_0x320fb0[_0x4ec1fa(0x3e4)]===!0x1&&_0x320fb0['ranges'][_0x4ec1fa(0x18d)]>0x0&&this[_0x4ec1fa(0x23e)](_0x320fb0[_0x4ec1fa(0x1d9)]);})),this[_0x2dafd8(0x198)][_0x2dafd8(0x1e4)][_0x2dafd8(0x1c2)](I[_0x2dafd8(0x225)](this[_0x2dafd8(0x1a0)]))[_0x2dafd8(0x390)](_0x5065ec=>{const _0x47ef3f=_0x2dafd8;if((_0x5065ec==null?void 0x0:_0x5065ec[_0x47ef3f(0x1c5)])!==this['unitID'])return;const _0x4b18ef={'eventID':g[_0x47ef3f(0x238)][_0x47ef3f(0x195)],'data':_0x5065ec};this[_0x47ef3f(0x401)](_0x4b18ef);}),this[_0x2dafd8(0x39d)](this['_commandService'][_0x2dafd8(0x3e7)](_0x314db2=>{const _0x376aa2=_0x2dafd8;if(_0x314db2[_0x376aa2(0x35d)]==null)return;const _0x1a6f46=_0x314db2[_0x376aa2(0x35d)];if(_0x314db2['id']!==V['RichTextEditingMutation']['id']||_0x1a6f46[_0x376aa2(0x232)]!==this['unitID'])return;const _0x120333={'id':'doc.mutation.rich-text-editing','params':_0x1a6f46},_0x4b587a=this[_0x376aa2(0x191)];for(const [_0x2c475c,_0xd567a2]of _0x4b587a){const _0x29f2dc={'id':_0x376aa2(0x155),'params':{'unitId':this[_0x376aa2(0x1c5)],'actions':null,'textRanges':_0xd567a2[_0x376aa2(0x1d9)]}},_0x15ee0a=this[_0x376aa2(0x1e8)]['transformMutation'](_0x120333,_0x29f2dc,!0x1);if(g[_0x376aa2(0x339)](_0x15ee0a))throw _0x15ee0a[_0x376aa2(0x329)];_0x4b587a[_0x376aa2(0x17a)](_0x2c475c,{..._0xd567a2,'ranges':_0x15ee0a[_0x376aa2(0x340)][_0x376aa2(0x35d)][_0x376aa2(0x24b)]});}queueMicrotask(()=>{const _0xc3e3a0=_0x376aa2;this[_0xc3e3a0(0x20b)][_0xc3e3a0(0x161)](_0x4b587a);});})));}['_onCursorUpdate'](_0x376b0c){const _0x506a6d=_0x366146;var _0x300eed,_0x1382ef;const {memberID:_0x59d5f2,selection:_0xb06985}=_0x376b0c[_0x506a6d(0x2e9)],_0x49dbaa=ht(_0xb06985),_0x14718b=(_0x1382ef=(_0x300eed=this['_memberService']['getMember'](this['unitID'],_0x59d5f2))==null?void 0x0:_0x300eed[_0x506a6d(0x2a0)])!=null?_0x1382ef:_0x506a6d(0x3f0),_0x134c45={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x59d5f2),'name':_0x14718b,'ranges':_0x49dbaa},_0x43d859=this[_0x506a6d(0x191)];_0x43d859[_0x506a6d(0x17a)](_0x59d5f2,_0x134c45),this[_0x506a6d(0x20b)]['next'](_0x43d859);}['_onCursorDelete'](_0x5b5dcc){const _0x5d77bf=_0x366146,{memberID:_0x4fe269}=_0x5b5dcc[_0x5d77bf(0x2e9)],_0x23eb30=this[_0x5d77bf(0x191)];_0x23eb30[_0x5d77bf(0x382)](_0x4fe269),this[_0x5d77bf(0x20b)][_0x5d77bf(0x161)](_0x23eb30);}[_0x366146(0x2c3)](){const _0xeb4576=_0x366146;var _0x23b404;if(this[_0xeb4576(0x1b2)]=!0x0,((_0x23b404=this[_0xeb4576(0x2fe)][_0xeb4576(0x1f2)]())==null?void 0x0:_0x23b404[_0xeb4576(0x349)]())!==this[_0xeb4576(0x1c5)])return;const _0x2f849d=this[_0xeb4576(0x354)][_0xeb4576(0x268)](V[_0xeb4576(0x38d)])[_0xeb4576(0x341)]();Array[_0xeb4576(0x15d)](_0x2f849d)&&_0x2f849d[_0xeb4576(0x18d)]>0x0&&this['_updateLocalCursor'](_0x2f849d);}[_0x366146(0x34c)](){const _0x511265=_0x366146;this[_0x511265(0x1b2)]=!0x1;}};ve=It([U(0x2,a[_0x366146(0x34a)](a[_0x366146(0x364)])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x366146(0x34a)](u['MemberService'])),U(0x5,a['Inject'](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x366146(0x375)]),U(0x8,a[_0x366146(0x2d4)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x226970,_0x2d972e,_0x5effe7,_0x53a1b0)=>{const _0x3dc73b=_0x366146;for(var _0xad0bdd=_0x53a1b0>0x1?void 0x0:_0x53a1b0?ft(_0x2d972e,_0x5effe7):_0x2d972e,_0x3d9afe=_0x226970[_0x3dc73b(0x18d)]-0x1,_0x15cd4b;_0x3d9afe>=0x0;_0x3d9afe--)(_0x15cd4b=_0x226970[_0x3d9afe])&&(_0xad0bdd=_0x15cd4b(_0xad0bdd)||_0xad0bdd);return _0xad0bdd;},w=(_0x273f79,_0xe07360)=>(_0x1bf27a,_0x209428)=>_0xe07360(_0x1bf27a,_0x209428,_0x273f79);const vt=0x12c,gt=0x64,Et=()=>{let _0x322853=[],_0x3f4b76=!0x1;return _0x5b9e41=>{const _0x5e3875=_0x23c7;_0x322853[_0x5e3875(0x192)](_0x5b9e41),_0x3f4b76||(_0x3f4b76=!0x0,setTimeout(()=>{_0x322853['forEach'](_0x2ef28c=>_0x2ef28c()),_0x322853=[],_0x3f4b76=!0x1;}));};};let ge=class extends a[_0x366146(0x25a)]{constructor(_0xc9435f,_0x1d052c,_0xbc4527,_0x121c1f,_0x48ddec,_0x38c20c,_0x38674b,_0x4fceb7){const _0x3661cf=_0x366146;super(),_(this,'_online',!0x1),_(this,_0x3661cf(0x3d7),!0x1),_(this,_0x3661cf(0x20b),new I[(_0x3661cf(0x3a8))](new Map())),_(this,'cursorInfo$',this[_0x3661cf(0x20b)][_0x3661cf(0x334)]()),_(this,_0x3661cf(0x1e2),new I['BehaviorSubject']([])),_(this,_0x3661cf(0x1d0),this[_0x3661cf(0x1e2)][_0x3661cf(0x1c2)](I[_0x3661cf(0x17d)](vt))),_(this,'_updateLocalCursor',a[_0x3661cf(0x278)]((_0xf35fb2,_0x282c1b)=>{const _0x1885c7=_0x3661cf,_0xda72d1={'eventID':g[_0x1885c7(0x238)][_0x1885c7(0x195)],'data':{'unitID':this[_0x1885c7(0x1c5)],'memberID':this[_0x1885c7(0x2cf)][_0x1885c7(0x26a)](),'selection':B[_0x1885c7(0x35b)](_0xf35fb2,_0x282c1b[_0x1885c7(0x332)])}};this[_0x1885c7(0x2cf)]['send'](_0xda72d1,this['unitID']);},gt)),(this[_0x3661cf(0x1c5)]=_0xc9435f,this[_0x3661cf(0x2cf)]=_0x1d052c,this[_0x3661cf(0x354)]=_0xbc4527,this['_colorAssignService']=_0x121c1f,this[_0x3661cf(0x22e)]=_0x48ddec,this[_0x3661cf(0x2fe)]=_0x38c20c,this[_0x3661cf(0x16f)]=_0x38674b,this[_0x3661cf(0x2c1)]=_0x4fceb7);}get['cursorInfo'](){const _0x77a895=_0x366146;return this[_0x77a895(0x20b)]['getValue']();}get[_0x366146(0x312)](){const _0xb53c56=_0x366146;return this[_0xb53c56(0x1e2)][_0xb53c56(0x1bf)]();}[_0x366146(0x286)](){const _0x4d5802=_0x366146;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x4d5802(0x20b)]['complete'](),this[_0x4d5802(0x1e2)][_0x4d5802(0x161)]([]),this[_0x4d5802(0x1e2)][_0x4d5802(0x328)]();}[_0x366146(0x292)](){const _0x3be2c3=_0x366146;this['_init']||(this['_init']=!0x0,this[_0x3be2c3(0x2cf)]['sessionStatus$'][_0x3be2c3(0x1c2)](I[_0x3be2c3(0x225)](this[_0x3be2c3(0x1a0)]))[_0x3be2c3(0x390)](_0x31292e=>{const _0x165b14=_0x3be2c3;_0x31292e===u[_0x165b14(0x1c4)][_0x165b14(0x237)]?this['_toggleOnline']():this[_0x165b14(0x34c)]();}),this['_session']['event$'][_0x3be2c3(0x1c2)](I[_0x3be2c3(0x225)](this[_0x3be2c3(0x1a0)]))['subscribe'](_0x241a12=>{const _0x5b15ba=_0x3be2c3,_0x258cfc=_0x241a12['eventID'];_0x258cfc===g['CollaborationEvent'][_0x5b15ba(0x195)]&&this['_onCursorUpdate'](_0x241a12),_0x258cfc===g[_0x5b15ba(0x238)][_0x5b15ba(0x26b)]&&this[_0x5b15ba(0x14c)](_0x241a12);}),this['_onRefRangeChange'](),this[_0x3be2c3(0x39d)](this[_0x3be2c3(0x16f)]['onCommandExecuted'](_0x457951=>{const _0x41a946=_0x3be2c3;if(this['_online']&&_0x457951['id']===v['SetSelectionsOperation']['id']&&_0x457951['params'][_0x41a946(0x232)]===this[_0x41a946(0x1c5)]){const _0x2ced6a=_0x457951['params'];this[_0x41a946(0x23e)](_0x2ced6a[_0x41a946(0x288)],_0x2ced6a[_0x41a946(0x153)][0x0]);}})));}['_onCursorUpdate'](_0xa1b469){const _0x4e6e8a=_0x366146;var _0x5e7522,_0x58302;const {memberID:_0x48c744,selection:_0x3ec372}=_0xa1b469[_0x4e6e8a(0x2e9)],{sheetName:_0x2dd31a,range:_0x3b6f29}=B[_0x4e6e8a(0x263)](_0x3ec372),_0x41105a={'name':(_0x58302=(_0x5e7522=this[_0x4e6e8a(0x22e)][_0x4e6e8a(0x3db)](this[_0x4e6e8a(0x1c5)],_0x48c744))==null?void 0x0:_0x5e7522[_0x4e6e8a(0x2a0)])!=null?_0x58302:_0x4e6e8a(0x3f0),'range':this[_0x4e6e8a(0x23b)](_0x2dd31a,_0x3b6f29),'sheetID':_0x2dd31a,'color':this[_0x4e6e8a(0x1d3)][_0x4e6e8a(0x3ca)](_0x48c744),'selection':_0x3ec372},_0x336788=this[_0x4e6e8a(0x191)];_0x336788[_0x4e6e8a(0x17a)](_0x48c744,_0x41105a),this['_cursorInfo$'][_0x4e6e8a(0x161)](_0x336788);}['_onCursorDelete'](_0x5486e2){const _0x358dc3=_0x366146,{memberID:_0x4abf1d}=_0x5486e2[_0x358dc3(0x2e9)],_0x235df5=this[_0x358dc3(0x191)];_0x235df5[_0x358dc3(0x382)](_0x4abf1d),this[_0x358dc3(0x20b)][_0x358dc3(0x161)](_0x235df5);}[_0x366146(0x23b)](_0x4f7740,_0x2b5db3){const _0x4654b4=_0x366146;var _0x4f6092,_0x3adae3;const _0x4cdab5=(_0x3adae3=(_0x4f6092=this[_0x4654b4(0x2fe)]['getUniverSheetInstance'](this[_0x4654b4(0x1c5)]))==null?void 0x0:_0x4f6092['getSheetBySheetId'](_0x4f7740))==null?void 0x0:_0x3adae3[_0x4654b4(0x211)]();return(_0x4cdab5==null?void 0x0:_0x4cdab5[_0x4654b4(0x214)](_0x5121b7=>a[_0x4654b4(0x333)]['contains'](_0x5121b7,_0x2b5db3)))||_0x2b5db3;}['_onRefRangeChange'](){const _0x18439c=_0x366146,_0x55425d=new a[(_0x18439c(0x273))](),_0x30e94d=Et(),_0x33e0c8=()=>{const _0xb63749=_0x18439c;_0x55425d['dispose']();const _0x4fccd1=(_0x3e2105,_0x5eb30c,_0x53288e,_0x4c07bc)=>{const _0x154496=_0x23c7;let _0x4cd2b=[];switch(_0x3e2105['id']){case v[_0x154496(0x386)][_0x154496(0x296)]:{_0x4cd2b=v['handleDeleteRangeMoveLeft'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x26f)]:{_0x4cd2b=v[_0x154496(0x3f5)](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x162)]:{_0x4cd2b=v[_0x154496(0x2ce)](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)]['InsertRangeMoveDownCommandId']:{_0x4cd2b=v[_0x154496(0x2e2)](_0x3e2105,_0x4c07bc);break;}case v['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x4cd2b=v['handleInsertRangeMoveRight'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x19a)]:{_0x4cd2b=v[_0x154496(0x172)](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x26e)]:{_0x4cd2b=v['handleMoveRange'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x32c)]:{_0x4cd2b=v['handleIRemoveCol'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x23f)]:{_0x4cd2b=v[_0x154496(0x2df)](_0x3e2105,_0x4c07bc);break;}}const _0x14830a=v[_0x154496(0x40c)](_0x4cd2b,_0x4c07bc),_0x1d3fe3=this['cursorInfo']['get'](_0x5eb30c);if(_0x1d3fe3&&_0x14830a){const _0x739e15={..._0x1d3fe3,'range':_0x14830a};this[_0x154496(0x191)]['set'](_0x5eb30c,_0x739e15),_0x30e94d(()=>{const _0x5c0545=_0x154496,_0x3937a3=this[_0x5c0545(0x2c1)][_0x5c0545(0x2ea)](_0x14830a,_0x233cd9=>(_0x3937a3[_0x5c0545(0x286)](),_0x4fccd1(_0x233cd9,_0x5eb30c,_0x53288e,_0x14830a)));_0x55425d[_0x5c0545(0x2bb)](_0x3937a3);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0xb63749(0x3eb)]((_0x3d273c,_0x497a84)=>{const _0x1aa2b0=_0xb63749,{range:_0x573b46,sheetID:_0x488899}=_0x3d273c,_0x26d2e4=this[_0x1aa2b0(0x2c1)][_0x1aa2b0(0x2ea)](_0x573b46,_0x2caf81=>(_0x26d2e4[_0x1aa2b0(0x286)](),_0x4fccd1(_0x2caf81,_0x497a84,_0x488899,_0x573b46)));_0x55425d[_0x1aa2b0(0x2bb)](_0x26d2e4);});};this[_0x18439c(0x39d)](a[_0x18439c(0x30b)](this[_0x18439c(0x20b)][_0x18439c(0x390)](()=>{_0x33e0c8();})));}['_toggleOnline'](){const _0x561694=_0x366146;var _0x4221ea,_0x3e46cf;if(this[_0x561694(0x1b2)]=!0x0,((_0x4221ea=this[_0x561694(0x2fe)]['getFocusedUnit']())==null?void 0x0:_0x4221ea['getUnitId']())!==this[_0x561694(0x1c5)])return;const _0x546bf6=(_0x3e46cf=this['_injector'][_0x561694(0x268)](v[_0x561694(0x1a6)])[_0x561694(0x243)]())==null?void 0x0:_0x3e46cf[0x0],_0x41d24a=this[_0x561694(0x2fe)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x561694(0x25b)])[_0x561694(0x40a)]();_0x546bf6&&_0x41d24a&&this[_0x561694(0x23e)](_0x41d24a[_0x561694(0x1a3)](),_0x546bf6);}[_0x366146(0x34c)](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x366146(0x34a)](a['Injector'])),w(0x3,a[_0x366146(0x34a)](Re)),w(0x4,a[_0x366146(0x34a)](u[_0x366146(0x391)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x366146(0x2d4)]),w(0x7,a['Inject'](v['RefRangeService']))],ge);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x264ca9,_0x28d573,_0x3419a4,_0x25e526)=>{const _0x154772=_0x366146;for(var _0x5c8137=_0x25e526>0x1?void 0x0:_0x25e526?Ct(_0x28d573,_0x3419a4):_0x28d573,_0x3c7750=_0x264ca9[_0x154772(0x18d)]-0x1,_0x1588a1;_0x3c7750>=0x0;_0x3c7750--)(_0x1588a1=_0x264ca9[_0x3c7750])&&(_0x5c8137=_0x1588a1(_0x5c8137)||_0x5c8137);return _0x5c8137;},ce=(_0x18f517,_0x58d233)=>(_0x4c1c6b,_0x48efbd)=>_0x58d233(_0x4c1c6b,_0x48efbd,_0x18f517);let F=class extends a[_0x366146(0x25a)]{constructor(_0x1dc9b8,_0x3e716c,_0x25725f){const _0x718645=_0x366146;super(),_(this,_0x718645(0x373),new Map()),_(this,'_entityInit$',new I[(_0x718645(0x1e1))]()),(this[_0x718645(0x2fe)]=_0x1dc9b8,this[_0x718645(0x354)]=_0x3e716c,this[_0x718645(0x298)]=_0x25725f,this[_0x718645(0x3d7)]());}[_0x366146(0x286)](){const _0x368b7e=_0x366146;super[_0x368b7e(0x286)](),this[_0x368b7e(0x1ef)][_0x368b7e(0x328)](),this[_0x368b7e(0x373)]['forEach'](_0x4c947a=>_0x4c947a[_0x368b7e(0x286)]());}['getCollabCursors$'](_0x5041ea){const _0x4903b0=_0x366146;return this['_entities']['has'](_0x5041ea)?this[_0x4903b0(0x373)]['get'](_0x5041ea)['cursorInfo$']:this[_0x4903b0(0x1ef)][_0x4903b0(0x1c2)](I['filter'](_0x4a4cf8=>_0x4a4cf8[_0x4903b0(0x1c5)]===_0x5041ea),I[_0x4903b0(0x1fd)](_0x250de0=>_0x250de0[_0x4903b0(0x1ea)]));}[_0x366146(0x3d7)](){const _0x325a3b=_0x366146;this[_0x325a3b(0x2fe)]['getTypeOfUnitAdded$'](a[_0x325a3b(0x315)][_0x325a3b(0x25b)])[_0x325a3b(0x1c2)](I[_0x325a3b(0x225)](this['dispose$']))['subscribe'](async _0x276e90=>{const _0x66017a=_0x325a3b,_0x15cc09=_0x276e90[_0x66017a(0x349)](),_0x517eaa=await this[_0x66017a(0x1c6)](_0x15cc09);this[_0x66017a(0x1ef)][_0x66017a(0x161)](_0x517eaa),this[_0x66017a(0x373)][_0x66017a(0x17a)](_0x15cc09,_0x517eaa);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x325a3b(0x315)]['UNIVER_DOC'])[_0x325a3b(0x1c2)](I[_0x325a3b(0x225)](this[_0x325a3b(0x1a0)]))['pipe'](I[_0x325a3b(0x221)](_0x4cc08b=>!_0x4cc08b[_0x325a3b(0x349)]()[_0x325a3b(0x20e)]('__')))[_0x325a3b(0x390)](async _0xf981c3=>{const _0x457630=_0x325a3b,_0x25d597=_0xf981c3['getUnitId'](),_0x1c4c44=await this[_0x457630(0x151)](_0x25d597);this[_0x457630(0x1ef)][_0x457630(0x161)](_0x1c4c44),this[_0x457630(0x373)]['set'](_0x25d597,_0x1c4c44);}),I['merge'](this[_0x325a3b(0x2fe)][_0x325a3b(0x2c6)](a[_0x325a3b(0x315)]['UNIVER_DOC']),this[_0x325a3b(0x2fe)][_0x325a3b(0x2c6)](a[_0x325a3b(0x315)]['UNIVER_SHEET']))['pipe'](I[_0x325a3b(0x225)](this[_0x325a3b(0x1a0)]))[_0x325a3b(0x390)](_0x54dbd8=>{const _0x2529d2=_0x325a3b,_0x321cfe=_0x54dbd8[_0x2529d2(0x349)](),_0x1728aa=this[_0x2529d2(0x373)][_0x2529d2(0x268)](_0x321cfe);_0x1728aa&&(_0x1728aa[_0x2529d2(0x286)](),this[_0x2529d2(0x373)]['delete'](_0x321cfe));});}async[_0x366146(0x1c6)](_0x96f4e1){const _0x4eade9=_0x366146,_0x4e3114=await this[_0x4eade9(0x298)][_0x4eade9(0x157)](_0x96f4e1),_0x38c8e7=this['_injector'][_0x4eade9(0x3f3)](ge,_0x96f4e1,_0x4e3114);return _0x38c8e7[_0x4eade9(0x292)](),_0x38c8e7;}async[_0x366146(0x151)](_0x5f49a5){const _0x6739a7=_0x366146,_0x44168d=await this[_0x6739a7(0x298)][_0x6739a7(0x157)](_0x5f49a5),_0x374b05=this[_0x6739a7(0x354)][_0x6739a7(0x3f3)](ve,_0x5f49a5,_0x44168d);return _0x374b05[_0x6739a7(0x292)](),_0x374b05;}};F=pt([ce(0x0,a[_0x366146(0x375)]),ce(0x1,a['Inject'](a['Injector'])),ce(0x2,a[_0x366146(0x34a)](u[_0x366146(0x31a)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x2950ce,_0x4e6a24){const _0x589528=_0x366146;let {radius:_0x30b527,width:_0x3bf2c5,height:_0x349fc6}=_0x4e6a24;_0x30b527=_0x30b527!=null?_0x30b527:0x0,_0x3bf2c5=_0x3bf2c5!=null?_0x3bf2c5:0x1e,_0x349fc6=_0x349fc6!=null?_0x349fc6:0x1e;let _0x50e921=0x0,_0x100bc3=0x0,_0x2f1ff5=0x0;_0x50e921=_0x100bc3=_0x2f1ff5=Math['min'](_0x30b527,_0x3bf2c5/0x2,_0x349fc6/0x2),_0x2950ce[_0x589528(0x38f)](),_0x2950ce[_0x589528(0x184)](_0x50e921,0x0),_0x2950ce[_0x589528(0x21c)](_0x3bf2c5-_0x100bc3,0x0),_0x2950ce['arc'](_0x3bf2c5-_0x100bc3,_0x100bc3,_0x100bc3,Math['PI']*0x3/0x2,0x0,!0x1),_0x2950ce[_0x589528(0x21c)](_0x3bf2c5,_0x349fc6-_0x2f1ff5),_0x2950ce[_0x589528(0x2ae)](_0x3bf2c5-_0x2f1ff5,_0x349fc6-_0x2f1ff5,_0x2f1ff5,0x0,Math['PI']/0x2,!0x1),_0x2950ce[_0x589528(0x21c)](0x0,_0x349fc6),_0x2950ce[_0x589528(0x21c)](0x0,_0x50e921),_0x2950ce['arc'](_0x50e921,_0x50e921,_0x50e921,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2950ce[_0x589528(0x2f3)](),_0x4e6a24[_0x589528(0x167)]&&(_0x2950ce[_0x589528(0x3c6)](),_0x2950ce[_0x589528(0x245)]=_0x4e6a24[_0x589528(0x167)],_0x4e6a24['fillRule']==='evenodd'?_0x2950ce[_0x589528(0x167)](_0x589528(0x3c8)):_0x2950ce['fill'](),_0x2950ce[_0x589528(0x2b6)]());}class re extends C[_0x366146(0x29d)]{constructor(_0x1ea195,_0x509e01){const _0xf85327=_0x366146;super(_0x1ea195,_0x509e01),_(this,_0xf85327(0x1a2)),_(this,_0xf85327(0x327)),(this[_0xf85327(0x1a2)]=_0x509e01==null?void 0x0:_0x509e01[_0xf85327(0x1a2)],this[_0xf85327(0x327)]=_0x509e01==null?void 0x0:_0x509e01[_0xf85327(0x327)]);}static['drawWith'](_0x4f3e07,_0xb5d4c2){const _0x4e4914=_0x366146,{text:_0x255b81,color:_0x28dab5}=_0xb5d4c2;_0x4f3e07[_0x4e4914(0x3c6)](),_0x4f3e07[_0x4e4914(0x3a6)]=_0x4e4914(0x276);const _0x11bcb1=_0x4f3e07[_0x4e4914(0x31b)](_0x255b81)[_0x4e4914(0x3a1)],_0x32652a=Math[_0x4e4914(0x2d5)](_0x11bcb1+0x2*le,Ue);Ot(_0x4f3e07,{'height':X,'radius':0x4,'width':_0x32652a,'fill':_0x28dab5}),_0x4f3e07[_0x4e4914(0x245)]=_0x4e4914(0x3ce);const _0x152173=le,_0x2ae177=X-Tt,_0x254792=Ue-0x2*le;if(_0x11bcb1>_0x254792){let _0x1356bc='',_0x449df1=0x0;for(const _0x40210e of _0x255b81){const _0x13f5f9=_0x4f3e07[_0x4e4914(0x31b)](_0x40210e)[_0x4e4914(0x3a1)];if(_0x449df1+_0x13f5f9<=_0x254792-_0x4f3e07[_0x4e4914(0x31b)](_0x4e4914(0x2e3))[_0x4e4914(0x3a1)])_0x1356bc+=_0x40210e,_0x449df1+=_0x13f5f9;else{_0x1356bc+=_0x4e4914(0x2e3);break;}}_0x4f3e07[_0x4e4914(0x3d1)](_0x1356bc,_0x152173,_0x2ae177);}else _0x4f3e07['fillText'](_0x255b81,_0x152173,_0x2ae177);_0x4f3e07[_0x4e4914(0x2b6)]();}[_0x366146(0x1c9)](_0x5534e6){re['drawWith'](_0x5534e6,this);}}const _e=_0x366146(0x3fb),Rt=_0x366146(0x29e),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x1e63a1,_0x5e5b2f,_0x54558d,_0x53f805){const _0x579187=_0x366146;_(this,_0x579187(0x397),[]),_(this,_0x579187(0x2e7),null),_(this,'_textBubble',null),_(this,_0x579187(0x250),null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0x579187(0x2f1)]=_0x1e63a1,this['_scene']=_0x5e5b2f,this['_docSkeleton']=_0x54558d,this[_0x579187(0x28a)]=_0x53f805,this[_0x579187(0x36d)]());}set[_0x366146(0x197)](_0x473f38){const _0x9543fa=_0x366146;_0x473f38?(this[_0x9543fa(0x250)]&&this['_anchorDot']['hide'](),this['_textBubble']&&this[_0x9543fa(0x365)]['show']()):(this[_0x9543fa(0x250)]&&this['_anchorDot'][_0x9543fa(0x2f6)](),this[_0x9543fa(0x365)]&&this[_0x9543fa(0x365)][_0x9543fa(0x32b)]());}[_0x366146(0x286)](){const _0x4a640c=_0x366146;for(const _0x53d666 of this[_0x4a640c(0x397)])_0x53d666[_0x4a640c(0x286)]();this[_0x4a640c(0x365)]&&this['_textBubble']['dispose'](),this[_0x4a640c(0x250)]&&this['_anchorDot'][_0x4a640c(0x286)](),this[_0x4a640c(0x2e7)]&&this[_0x4a640c(0x2e7)][_0x4a640c(0x286)](),this[_0x4a640c(0x23d)]&&this[_0x4a640c(0x23d)]();}['_render'](){const _0x39ab3f=_0x366146;var _0x4ae532;const {_docSkeleton:_0x4dfba1,_document:_0x87d8e8}=this,{color:_0x11de78,name:_0x18c923,ranges:_0x4acb0f}=this[_0x39ab3f(0x2f1)],_0xb6dbac=_0x87d8e8[_0x39ab3f(0x14a)](),{docsLeft:_0x422877,docsTop:_0x919c8}=_0xb6dbac,_0x5f4bf1=new p['NodePositionConvertToCursor'](_0xb6dbac,_0x4dfba1);for(const {startOffset:_0x4e6dbc,endOffset:_0x3d71d7,rangeType:_0x5114c1,segmentId:_0x404287,segmentPage:_0x4b6643,collapsed:_0x1b4a71,isActive:_0x4d86cd}of _0x4acb0f){const _0x466ca6=_0x4dfba1[_0x39ab3f(0x3f2)](_0x4e6dbc,!0x0,_0x404287,_0x4b6643);let _0x4811d1=_0x4dfba1[_0x39ab3f(0x3f2)](_0x3d71d7,!0x0,_0x404287,_0x4b6643);if(_0x4811d1==null&&(_0x4811d1=_0x4dfba1[_0x39ab3f(0x3f2)](_0x3d71d7-0x1,!0x1,_0x404287,_0x4b6643)),_0x4d86cd){const {contentBoxPointGroup:_0x5874fa}=_0x5f4bf1[_0x39ab3f(0x407)](_0x4811d1,_0x4811d1);if(_0x5874fa[_0x39ab3f(0x18d)]===0x0)continue;this['_drawAnchor'](_0x11de78,_0x5874fa,_0x422877,_0x919c8,_0x18c923),this[_0x39ab3f(0x23d)]=this[_0x39ab3f(0x316)]();}if(_0x466ca6&&_0x4811d1){if(_0x5114c1===a['DOC_RANGE_TYPE'][_0x39ab3f(0x19b)]){const _0x51a372=new p[(_0x39ab3f(0x299))](_0xb6dbac,_0x4dfba1),{pointGroup:_0x57eea9}=(_0x4ae532=_0x51a372[_0x39ab3f(0x407)](_0x466ca6,_0x4811d1))!=null?_0x4ae532:{};if(_0x57eea9==null||_0x57eea9[_0x39ab3f(0x18d)]===0x0)continue;this[_0x39ab3f(0x2ca)](_0x11de78,_0x57eea9,_0x422877,_0x919c8);}else{if(!_0x1b4a71){const {borderBoxPointGroup:_0xa33821}=_0x5f4bf1[_0x39ab3f(0x407)](_0x466ca6,_0x4811d1);if(_0xa33821[_0x39ab3f(0x18d)]===0x0)continue;this['_drawTextRange'](_0x11de78,_0xa33821,_0x422877,_0x919c8);}}}}}['_drawAnchor'](_0x44a90c,_0x5c8888,_0x66c70b,_0x2a475a,_0x46a8e1){const _0x97e43f=_0x366146,_0x55f33a=this[_0x97e43f(0x3d8)](_0x5c8888),{left:_0x2d95bc,top:_0x3a37a9,height:_0x37040d}=_0x55f33a,_0x352bbe=this['_getScale'](),_0x5ac16e=Nt/_0x352bbe,_0x226b2c=new C[(_0x97e43f(0x1bd))](_e+a['generateRandomId'](H),{'left':_0x2d95bc+_0x66c70b-_0x5ac16e,'top':_0x3a37a9+_0x2a475a,'height':_0x37040d,'width':Dt,'fill':_0x44a90c||C[_0x97e43f(0x399)](a['COLORS'][_0x97e43f(0x309)],0x0),'strokeWidth':_0x5ac16e,'stroke':Ut,'evented':!0x0});this[_0x97e43f(0x2e7)]=_0x226b2c,this[_0x97e43f(0x3b0)][_0x97e43f(0x201)](_0x226b2c,p['TEXT_RANGE_LAYER_INDEX']);const _0x4599e5=new C[(_0x97e43f(0x1bd))](_e+a[_0x97e43f(0x28f)](H),{'left':_0x2d95bc+_0x66c70b-_0x5ac16e,'top':_0x3a37a9+_0x2a475a-he/0x2,'height':he,'width':he,'fill':_0x44a90c||C[_0x97e43f(0x399)](a[_0x97e43f(0x208)][_0x97e43f(0x309)],0x0),'strokeWidth':0x0,'stroke':_0x44a90c||C[_0x97e43f(0x399)](a[_0x97e43f(0x208)][_0x97e43f(0x309)],0x0),'evented':!0x1});this[_0x97e43f(0x250)]=_0x4599e5,this[_0x97e43f(0x3b0)][_0x97e43f(0x201)](_0x4599e5,p[_0x97e43f(0x318)]);const _0x466ba2=new re(_e+a[_0x97e43f(0x28f)](H),{'left':_0x2d95bc+_0x66c70b-_0x5ac16e,'top':_0x3a37a9+_0x2a475a-X,'text':_0x46a8e1,'color':_0x44a90c});this[_0x97e43f(0x365)]=_0x466ba2,this[_0x97e43f(0x3b0)][_0x97e43f(0x201)](_0x466ba2,p[_0x97e43f(0x318)]),this[_0x97e43f(0x197)]=!0x1;}[_0x366146(0x316)](){const _0x14d033=_0x366146,_0x9bd3e4=this[_0x14d033(0x2e7)]['onPointerEnter$'][_0x14d033(0x227)](()=>{const _0x3be5a4=_0x14d033;this[_0x3be5a4(0x197)]=!0x0;}),_0x4a745b=this['_anchor'][_0x14d033(0x302)]['subscribeEvent'](()=>{const _0x4fa14b=_0x14d033;this['_hideTimer']&&clearTimeout(this[_0x4fa14b(0x370)]),this[_0x4fa14b(0x370)]=setTimeout(()=>{const _0xb6d390=_0x4fa14b;this[_0xb6d390(0x197)]=!0x1;},0x7d0);});return()=>{const _0x3f4865=_0x14d033;_0x9bd3e4[_0x3f4865(0x3e0)](),_0x4a745b[_0x3f4865(0x3e0)]();};}[_0x366146(0x37a)](_0xaa1c23,_0x3ea245,_0x21540f,_0x26f3ea){const _0xab55b9=_0x366146,_0x46520f=new a[(_0xab55b9(0x25e))](_0xaa1c23)['setAlpha'](0.2)[_0xab55b9(0x236)](),_0x1fd83d=new C[(_0xab55b9(0x409))](Rt+a[_0xab55b9(0x28f)](H),{'pointsGroup':_0x3ea245,'fill':_0x46520f||C[_0xab55b9(0x399)](a[_0xab55b9(0x208)]['black'],0.2),'left':_0x21540f,'top':_0x26f3ea,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xab55b9(0x397)][_0xab55b9(0x192)](_0x1fd83d),this[_0xab55b9(0x3b0)][_0xab55b9(0x201)](_0x1fd83d,p['TEXT_RANGE_LAYER_INDEX']);}[_0x366146(0x2ca)](_0x36f12f,_0x3e0da4,_0x47c554,_0x119d82){const _0x3412cb=_0x366146,_0x45abf1=new a['ColorKit'](_0x36f12f)[_0x3412cb(0x2dd)](0.2)[_0x3412cb(0x236)](),_0x589f4b=new C[(_0x3412cb(0x409))](bt+a[_0x3412cb(0x28f)](H),{'pointsGroup':_0x3e0da4,'fill':_0x45abf1||C[_0x3412cb(0x399)](a[_0x3412cb(0x208)][_0x3412cb(0x309)],0.2),'left':_0x47c554,'top':_0x119d82,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3412cb(0x397)]['push'](_0x589f4b),this[_0x3412cb(0x3b0)]['addObject'](_0x589f4b,p[_0x3412cb(0x318)]);}[_0x366146(0x3d8)](_0x1e418b){const _0x1b7b2c=_0x1e418b[0x0],_0x348d6a=_0x1b7b2c[0x0],_0x29f580=_0x1b7b2c[0x2],{x:_0x17f6f3,y:_0xc80b3}=_0x348d6a,{x:_0x3c8c2f,y:_0x129ec8}=_0x29f580;return{'left':_0x17f6f3,'top':_0xc80b3,'width':_0x3c8c2f-_0x17f6f3,'height':_0x129ec8-_0xc80b3};}['_getScale'](){const _0x612794=_0x366146,{scaleX:_0x244c30,scaleY:_0x24e717}=this[_0x612794(0x3b0)][_0x612794(0x374)]();return Math[_0x612794(0x262)](_0x244c30,_0x24e717);}}var Lt=Object[_0x366146(0x3ee)],Mt=(_0x1d48a5,_0x29d6d2,_0x55f7d0,_0x2696ff)=>{const _0x40ad2d=_0x366146;for(var _0x15246c=_0x2696ff>0x1?void 0x0:_0x2696ff?Lt(_0x29d6d2,_0x55f7d0):_0x29d6d2,_0x4ae959=_0x1d48a5[_0x40ad2d(0x18d)]-0x1,_0x237665;_0x4ae959>=0x0;_0x4ae959--)(_0x237665=_0x1d48a5[_0x4ae959])&&(_0x15246c=_0x237665(_0x15246c)||_0x15246c);return _0x15246c;},q=(_0x3e2c31,_0x5cf403)=>(_0x49b4f4,_0x51b0ea)=>_0x5cf403(_0x49b4f4,_0x51b0ea,_0x3e2c31);let Ee=class extends a[_0x366146(0x25a)]{constructor(_0x328e0d,_0xaa94ee,_0x45dcfe,_0x57e7d4,_0x22474e){const _0x200dae=_0x366146;super(),_(this,_0x200dae(0x257),[]),_(this,_0x200dae(0x3be),[]),(this[_0x200dae(0x387)]=_0x328e0d,this[_0x200dae(0x3ff)]=_0xaa94ee,this[_0x200dae(0x1fc)]=_0x45dcfe,this['_commandService']=_0x57e7d4,this[_0x200dae(0x29a)]=_0x22474e,this[_0x200dae(0x3d7)]());}[_0x366146(0x3d7)](){const _0x1c5068=_0x366146,_0x4f0a72=this[_0x1c5068(0x387)]['unitId'],_0x3a47b5=this[_0x1c5068(0x3ff)];this[_0x1c5068(0x39d)](I[_0x1c5068(0x3cb)]([this[_0x1c5068(0x1fc)]['getCollabCursors$'](_0x4f0a72),this[_0x1c5068(0x29a)]['currentTheme$']])['pipe']($[_0x1c5068(0x3e9)](([_0x796c3a,_0xbd2c07])=>({'skeleton':_0x3a47b5['getSkeleton'](),'cursors':[..._0x796c3a[_0x1c5068(0x1cf)]()][_0x1c5068(0x220)](_0x4eeaef=>({..._0x4eeaef,'color':this[_0x1c5068(0x29a)][_0x1c5068(0x2d1)](_0x4eeaef[_0x1c5068(0x1a2)])}))})))[_0x1c5068(0x390)](_0x510f47=>{const _0x4cde93=_0x1c5068;if(this[_0x4cde93(0x37f)](),_0x510f47){const {skeleton:_0x64203b,cursors:_0x61e37}=_0x510f47;this['_updateCollabCursors'](_0x64203b,_0x61e37);}})),this[_0x1c5068(0x285)](),this[_0x1c5068(0x360)]();}[_0x366146(0x284)](_0x5265d4,_0x1a31e7){const _0x5c1059=_0x366146,{scene:_0x1d8cc2,mainComponent:_0x296483}=this[_0x5c1059(0x387)],_0x58badd=_0x1a31e7[_0x5c1059(0x3e9)](_0x2f32d2=>new Le(_0x2f32d2,_0x1d8cc2,_0x5265d4,_0x296483));this[_0x5c1059(0x257)]=_0x58badd,this[_0x5c1059(0x3be)]=_0x1a31e7;}[_0x366146(0x2ba)](){const _0x1f629a=_0x366146;this['_removeCollabCursors']();const {scene:_0x8c29d1,mainComponent:_0x1a2527}=this[_0x1f629a(0x387)],_0x59a05a=this[_0x1f629a(0x3ff)][_0x1f629a(0x170)](),_0x2187b5=this[_0x1f629a(0x3be)][_0x1f629a(0x3e9)](_0x545f1c=>new Le(_0x545f1c,_0x8c29d1,_0x59a05a,_0x1a2527));this[_0x1f629a(0x257)]=_0x2187b5;}[_0x366146(0x37f)](){const _0x45e64f=_0x366146;this[_0x45e64f(0x257)][_0x45e64f(0x3eb)](_0x3fd00f=>_0x3fd00f['dispose']()),this[_0x45e64f(0x257)]=[];}[_0x366146(0x360)](){const _0x4082e2=_0x366146,_0x252d7d=[p['SetDocZoomRatioOperation']['id']];this[_0x4082e2(0x39d)](this['_commandService'][_0x4082e2(0x3e7)](_0x3d488f=>{const _0x3956a2=_0x4082e2;_0x252d7d[_0x3956a2(0x2a6)](_0x3d488f['id'])&&_0x3d488f[_0x3956a2(0x35d)]['unitId']===this[_0x3956a2(0x387)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x366146(0x285)](){const _0x1bc5cb=_0x366146;this[_0x1bc5cb(0x39d)](a[_0x1bc5cb(0x281)](this[_0x1bc5cb(0x387)]['engine'][_0x1bc5cb(0x3ef)])[_0x1bc5cb(0x1c2)]($[_0x1bc5cb(0x221)](_0x4953f5=>_0x4953f5['type']===C[_0x1bc5cb(0x2fd)]['resize']),$[_0x1bc5cb(0x18f)](0x10))['subscribe'](()=>{const _0x349365=_0x1bc5cb;this[_0x349365(0x2ba)]();}));}};Ee=Mt([q(0x1,a[_0x366146(0x34a)](V[_0x366146(0x34f)])),q(0x2,a[_0x366146(0x34a)](F)),q(0x3,a[_0x366146(0x2d4)]),q(0x4,a[_0x366146(0x34a)](a[_0x366146(0x1f8)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x366146(0x29d)]{constructor(_0x1038a1,_0x412d03){const _0x42fd97=_0x366146;super(_0x1038a1,_0x412d03),_(this,_0x42fd97(0x1ae)),_(this,_0x42fd97(0x2f8),!0x1),_(this,_0x42fd97(0x3c7)),_(this,_0x42fd97(0x39e),''),_(this,_0x42fd97(0x3f8),_0x42fd97(0x1e9)),_(this,_0x42fd97(0x1e5)),(_0x412d03&&this[_0x42fd97(0x226)](_0x412d03),this[_0x42fd97(0x16c)]['subscribeEvent'](()=>this[_0x42fd97(0x226)]({'hovered':!0x0})),this[_0x42fd97(0x302)][_0x42fd97(0x227)](()=>this[_0x42fd97(0x226)]({'hovered':!0x1})));}[_0x366146(0x226)](_0x39bb99){const _0xa73723=_0x366146;var _0x55f44f,_0xeed4e5,_0x4adb1f,_0x4db402,_0x1dfd36,_0x5741e9;this[_0xa73723(0x1ae)]=(_0x55f44f=_0x39bb99[_0xa73723(0x1a2)])!=null?_0x55f44f:this[_0xa73723(0x1ae)],this[_0xa73723(0x2f8)]=(_0xeed4e5=_0x39bb99[_0xa73723(0x234)])!=null?_0xeed4e5:this[_0xa73723(0x2f8)],this[_0xa73723(0x3c7)]=(_0x4adb1f=_0x39bb99[_0xa73723(0x332)])!=null?_0x4adb1f:this[_0xa73723(0x3c7)],this[_0xa73723(0x39e)]=(_0x4db402=_0x39bb99[_0xa73723(0x2a0)])!=null?_0x4db402:this[_0xa73723(0x39e)],this[_0xa73723(0x3f8)]=(_0x1dfd36=_0x39bb99['labelPosition'])!=null?_0x1dfd36:this[_0xa73723(0x3f8)],this[_0xa73723(0x1e5)]=(_0x5741e9=_0x39bb99[_0xa73723(0x1a1)])!=null?_0x5741e9:this['_backgroundColor'],this['transformByState']({'width':_0x39bb99[_0xa73723(0x3a1)],'height':_0x39bb99[_0xa73723(0x3a3)]});}[_0x366146(0x14f)](_0x1fe21b){const _0x3f8d00=_0x366146,{row:_0x34aad5,column:_0x3e85ca}=_0x1fe21b;if(_0x34aad5>=this[_0x3f8d00(0x3c7)][_0x3f8d00(0x30d)]&&_0x34aad5<=this['_range'][_0x3f8d00(0x2b4)]&&_0x3e85ca>=this[_0x3f8d00(0x3c7)]['startColumn']&&_0x3e85ca<=this[_0x3f8d00(0x3c7)][_0x3f8d00(0x2c7)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3f8d00(0x226)]({'hovered':!0x1});}[_0x366146(0x27c)](_0x33f839){return!0x1;}['_draw'](_0x2e9dc6){const _0x10b029=_0x366146;C[_0x10b029(0x1bd)]['drawWith'](_0x2e9dc6,{'width':this[_0x10b029(0x3a1)],'height':this[_0x10b029(0x3a3)],'strokeWidth':Pt,'stroke':this[_0x10b029(0x1ae)],'evented':!0x1,'fill':this[_0x10b029(0x1e5)]}),this[_0x10b029(0x2f8)]&&(_0x2e9dc6[_0x10b029(0x3c6)](),_0x2e9dc6[_0x10b029(0x300)](0x1,0x0,0x0,0x1,this['width'],this[_0x10b029(0x3f8)]===_0x10b029(0x398)?0x0:-X),re[_0x10b029(0x3bd)](_0x2e9dc6,{'text':this[_0x10b029(0x39e)],'color':this[_0x10b029(0x1ae)]}),_0x2e9dc6['restore']());}}var wt=Object[_0x366146(0x3ee)],yt=(_0x313a42,_0x2353d7,_0x535407,_0x1db730)=>{const _0x57ead8=_0x366146;for(var _0x51522b=_0x1db730>0x1?void 0x0:_0x1db730?wt(_0x2353d7,_0x535407):_0x2353d7,_0x569f23=_0x313a42[_0x57ead8(0x18d)]-0x1,_0xf90775;_0x569f23>=0x0;_0x569f23--)(_0xf90775=_0x313a42[_0x569f23])&&(_0x51522b=_0xf90775(_0x51522b)||_0x51522b);return _0x51522b;},ue=(_0x1a4a26,_0x5210d5)=>(_0x11ff3b,_0x4a9563)=>_0x5210d5(_0x11ff3b,_0x4a9563,_0x1a4a26);const $t=0x1389;let Ce=class extends a[_0x366146(0x25a)]{constructor(_0x2e8a9d,_0x8d073a,_0xe4d4eb,_0x3168cb){const _0x145fc8=_0x366146;super(),_(this,'_cursors',new Set()),_(this,_0x145fc8(0x3de),null),(this[_0x145fc8(0x387)]=_0x2e8a9d,this['_sheetSkeletonManagerService']=_0x8d073a,this[_0x145fc8(0x1fc)]=_0xe4d4eb,this[_0x145fc8(0x29a)]=_0x3168cb,this[_0x145fc8(0x3d7)]());}[_0x366146(0x3d7)](){const _0xd686a9=_0x366146;this[_0xd686a9(0x269)]['currentSkeleton$'][_0xd686a9(0x1c2)]($[_0xd686a9(0x225)](this[_0xd686a9(0x1a0)]),$[_0xd686a9(0x1fd)](_0x4c0aff=>{const _0x376e81=_0xd686a9;if(_0x4c0aff){const _0x5e4b77=_0x4c0aff[_0x376e81(0x33a)];return I['combineLatest'](this[_0x376e81(0x1fc)][_0x376e81(0x2af)](this[_0x376e81(0x387)][_0x376e81(0x232)]),this['_themeService'][_0x376e81(0x1c0)])[_0x376e81(0x1c2)]($[_0x376e81(0x3e9)](([_0x4da1bb,_0x331af2])=>{const _0x272714=new Map();return _0x4da1bb['forEach']((_0x1df641,_0x17729a)=>{const _0x33b0df=_0x23c7;if(_0x1df641[_0x33b0df(0x1b5)]===_0x5e4b77){const _0x3eb949={..._0x1df641};_0x3eb949['color']=this[_0x33b0df(0x29a)][_0x33b0df(0x2d1)](_0x1df641[_0x33b0df(0x1a2)]),_0x272714[_0x33b0df(0x17a)](_0x17729a,_0x3eb949);}}),{'skeleton':_0x4c0aff,'cursors':_0x272714};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4a3b92,cursors:_0x408c1d})=>{const _0xc61205=_0xd686a9;this[_0xc61205(0x37f)](),_0x4a3b92&&this[_0xc61205(0x284)](_0x4a3b92,_0x408c1d);}),this[_0xd686a9(0x269)]['currentSkeleton$']['subscribe'](_0x3ca6af=>{const _0x442827=_0xd686a9;if(_0x3ca6af==null)return;const {skeleton:_0x2b9e06}=_0x3ca6af,{scene:_0x87e01f}=this[_0x442827(0x387)];_0x87e01f[_0x442827(0x3c2)]['subscribeEvent'](a[_0x442827(0x278)](_0x3929bc=>{const _0x5b7b74=_0x442827;var _0x4f3f67,_0xc5ea3;const {offsetX:_0x291c6f,offsetY:_0x30c06d}=_0x3929bc,{x:_0x587d24,y:_0x5f1708}=_0x87e01f[_0x5b7b74(0x16b)](C[_0x5b7b74(0x247)][_0x5b7b74(0x260)]([_0x291c6f,_0x30c06d])),{scaleX:_0x480af8,scaleY:_0x4a0d84}=_0x87e01f[_0x5b7b74(0x374)](),_0x915eb5=_0x87e01f['getViewport'](C[_0x5b7b74(0x35e)][_0x5b7b74(0x38e)]),_0x4c80a7=_0x87e01f[_0x5b7b74(0x1b7)](C[_0x5b7b74(0x247)][_0x5b7b74(0x260)]([_0x587d24,_0x5f1708]),_0x915eb5),_0x4bb918=_0x2b9e06['getCellPositionByOffset'](_0x291c6f,_0x30c06d,_0x480af8,_0x4a0d84,_0x4c80a7);((_0x4f3f67=this[_0x5b7b74(0x3de)])==null?void 0x0:_0x4f3f67['column'])===_0x4bb918['column']&&((_0xc5ea3=this[_0x5b7b74(0x3de)])==null?void 0x0:_0xc5ea3['row'])===_0x4bb918[_0x5b7b74(0x314)]||this['_cursors']['forEach'](_0x44bf3d=>{const _0x2f6851=_0x5b7b74;_0x44bf3d[_0x2f6851(0x14f)](_0x4bb918);});},0x64));});}[_0x366146(0x284)](_0x436bf4,_0x53848a){const _0x5137b=_0x366146;var _0x580b0f;const _0x4f647c=(_0x580b0f=this[_0x5137b(0x269)]['getCurrent']())==null?void 0x0:_0x580b0f[_0x5137b(0x1c1)];if(!_0x4f647c)return;const _0x81f87e=this[_0x5137b(0x2b9)]();if(!_0x81f87e)return;this[_0x5137b(0x3be)][_0x5137b(0x3eb)](_0x140d63=>{const _0x419965=_0x5137b;_0x140d63[_0x419965(0x16e)]();});const {scene:_0x1cfe9c}=_0x81f87e,_0x397e05=xt(Array[_0x5137b(0x2b2)](_0x53848a[_0x5137b(0x1cf)]()))['map'](_0x2b19b9=>{const _0x304489=_0x5137b,{color:_0x16bd7d,range:_0x344a26,name:_0x574ad1,selection:_0x34f311,sheetID:_0x3b4ae7}=_0x2b19b9,{startColumn:_0x217580,startRow:_0x2b958c,endColumn:_0x4b47bf,endRow:_0x5a7c83}=_0x344a26,_0x25af47=J['getCoordByCell'](_0x2b958c,_0x217580,_0x1cfe9c,_0x4f647c),_0x56a6bb=J['getCoordByCell'](_0x5a7c83,_0x4b47bf,_0x1cfe9c,_0x4f647c),{columnHeaderHeightAndMarginTop:_0x199a22}=_0x4f647c,{startX:_0x2dffb9,startY:_0x468cd2}=_0x25af47,{endX:_0xebc19b,endY:_0x1f351d}=_0x56a6bb,_0x2f918f=_0xebc19b-_0x2dffb9,_0x911cc3=_0x1f351d-_0x468cd2,_0x379855={'labelPosition':_0x468cd2-_0x199a22>=X?_0x304489(0x1e9):_0x304489(0x398),'sheetID':_0x3b4ae7,'range':_0x344a26,'color':_0x16bd7d,'name':_0x574ad1,'selection':_0x34f311,'left':_0x2dffb9,'top':_0x468cd2,'width':_0x2f918f,'height':_0x911cc3,'evented':!0x1,'zIndex':$t};return new je(_0x574ad1,_0x379855);});_0x1cfe9c['addObjects'](_0x397e05,At),this[_0x5137b(0x3be)]=new Set(_0x397e05);}[_0x366146(0x37f)](){const _0x696e8c=_0x366146;var _0x5d274b;(_0x5d274b=this[_0x696e8c(0x3be)])==null||_0x5d274b[_0x696e8c(0x3eb)](_0xfff85c=>_0xfff85c[_0x696e8c(0x286)]());}[_0x366146(0x2b9)](){const _0xd80395=_0x366146;return J[_0xd80395(0x1f9)](this[_0xd80395(0x387)][_0xd80395(0x186)],this[_0xd80395(0x387)]);}};Ce=yt([ue(0x1,a[_0x366146(0x34a)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x366146(0x34a)](F)),ue(0x3,a['Inject'](a[_0x366146(0x1f8)]))],Ce);function xt(_0x298ef0){const _0x30935f=_0x366146,_0x79e285=new Map();return _0x298ef0[_0x30935f(0x3eb)](_0x1e424e=>{const _0x5d48d7=_0x30935f;if(_0x79e285[_0x5d48d7(0x3fe)](_0x1e424e[_0x5d48d7(0x21f)])){const _0x52a909=_0x79e285[_0x5d48d7(0x268)](_0x1e424e[_0x5d48d7(0x21f)]);_0x52a909[_0x5d48d7(0x2a0)]+=',\x20'+_0x1e424e[_0x5d48d7(0x2a0)];}else _0x79e285[_0x5d48d7(0x17a)](_0x1e424e[_0x5d48d7(0x21f)],_0x1e424e);}),Array[_0x30935f(0x2b2)](_0x79e285['values']());}var Bt=Object[_0x366146(0x3ee)],Ft=(_0x240f0b,_0x566051,_0xb310b,_0x224288)=>{const _0x280790=_0x366146;for(var _0x4cc1a8=_0x224288>0x1?void 0x0:_0x224288?Bt(_0x566051,_0xb310b):_0x566051,_0x2e8f25=_0x240f0b[_0x280790(0x18d)]-0x1,_0x418456;_0x2e8f25>=0x0;_0x2e8f25--)(_0x418456=_0x240f0b[_0x2e8f25])&&(_0x4cc1a8=_0x418456(_0x4cc1a8)||_0x4cc1a8);return _0x4cc1a8;},y=(_0x38791c,_0x1442e1)=>(_0x5e3733,_0xfe02da)=>_0x1442e1(_0x5e3733,_0xfe02da,_0x38791c);let Z=class extends a[_0x366146(0x176)]{constructor(_0x82bd03,_0x2a1b5a,_0x26ed3e,_0x4f46fb,_0x471b16,_0x1ec859){const _0xb1be8d=_0x366146;super(),this[_0xb1be8d(0x23a)]=_0x82bd03,this[_0xb1be8d(0x1ed)]=_0x2a1b5a,this[_0xb1be8d(0x1e7)]=_0x26ed3e,this[_0xb1be8d(0x24d)]=_0x4f46fb,this[_0xb1be8d(0x3a2)]=_0x471b16,this[_0xb1be8d(0x2ac)]=_0x1ec859,this[_0xb1be8d(0x3ec)](),this['_initEvent']();}[_0x366146(0x3ec)](){const _0x26d49a=_0x366146;this[_0x26d49a(0x39d)](this['_beforeCloseService'][_0x26d49a(0x350)](()=>{const _0x13250d=_0x26d49a;if(this[_0x13250d(0x1ed)][_0x13250d(0x189)][_0x13250d(0x224)])return this[_0x13250d(0x2ac)]['t'](_0x13250d(0x279));}));}[_0x366146(0x297)](){const _0x1916cd=_0x366146;this[_0x1916cd(0x39d)](this[_0x1916cd(0x1e7)][_0x1916cd(0x18c)][_0x1916cd(0x390)](_0x1dca58=>{const _0xc2f720=_0x1916cd;_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x3d5)]&&this[_0xc2f720(0x24d)][_0xc2f720(0x2f6)]({'type':T[_0xc2f720(0x326)][_0xc2f720(0x362)],'content':this['_localeService']['t'](_0xc2f720(0x2b7))}),_0x1dca58['id']===u['CollaborationUIEventId'][_0xc2f720(0x3d4)]&&this[_0xc2f720(0x24d)]['show']({'type':T[_0xc2f720(0x326)][_0xc2f720(0x362)],'content':this[_0xc2f720(0x2ac)]['t']('collaboration.closeRoom')}),_0x1dca58['id']===u[_0xc2f720(0x28d)]['PERMISSION_DENIED']&&this['_notificationService'][_0xc2f720(0x2f6)]({'title':this['_localeService']['t'](_0xc2f720(0x169)),'content':this[_0xc2f720(0x2ac)]['t'](_0xc2f720(0x38c)),'type':_0xc2f720(0x329),'duration':0x0}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x34b)]&&this['_messageService'][_0xc2f720(0x2f6)]({'type':T[_0xc2f720(0x326)][_0xc2f720(0x1e3)],'content':this['_localeService']['t'](_0xc2f720(0x3ea))+'('+_0x1dca58[_0xc2f720(0x2e9)]+')'}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x2cd)]&&this[_0xc2f720(0x24d)][_0xc2f720(0x2f6)]({'type':T['MessageType'][_0xc2f720(0x362)],'content':this['_localeService']['t'](_0x1dca58[_0xc2f720(0x2e9)]||'')}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x152)]&&this['_messageService'][_0xc2f720(0x2f6)]({'type':T[_0xc2f720(0x326)][_0xc2f720(0x362)],'content':this[_0xc2f720(0x2ac)]['t'](_0xc2f720(0x1f6))}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x3ba)]&&this[_0xc2f720(0x24d)]['show']({'type':T[_0xc2f720(0x326)]['Error'],'content':this[_0xc2f720(0x2ac)]['t']('session.connection-failed')}),_0x1dca58['id']===u[_0xc2f720(0x28d)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0xc2f720(0x24d)]['show']({'type':T[_0xc2f720(0x326)]['Error'],'content':this[_0xc2f720(0x2ac)]['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x366146(0x270)]),y(0x1,u[_0x366146(0x32d)]),y(0x2,a[_0x366146(0x34a)](u['CollaborationUIEventService'])),y(0x3,O[_0x366146(0x3a4)]),y(0x4,O[_0x366146(0x27d)]),y(0x5,a[_0x366146(0x34a)](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x196081,_0x41a72b,_0x25a1e3,_0x25db07)=>{const _0x2e8a8d=_0x366146;for(var _0x2e973a=_0x25db07>0x1?void 0x0:_0x25db07?jt(_0x41a72b,_0x25a1e3):_0x41a72b,_0x1d80ec=_0x196081[_0x2e8a8d(0x18d)]-0x1,_0x494ad5;_0x1d80ec>=0x0;_0x1d80ec--)(_0x494ad5=_0x196081[_0x1d80ec])&&(_0x2e973a=_0x494ad5(_0x2e973a)||_0x2e973a);return _0x2e973a;},z=(_0x544899,_0x463e78)=>(_0x4396f2,_0x3c9ad0)=>_0x463e78(_0x4396f2,_0x3c9ad0,_0x544899);let Q=class extends a['Disposable']{constructor(_0x2ecb28,_0x407713,_0x47b174,_0x39a7a9){const _0x4173cc=_0x366146;super(),_(this,'_memberID'),(this[_0x4173cc(0x354)]=_0x2ecb28,this[_0x4173cc(0x2a2)]=_0x407713,this[_0x4173cc(0x204)]=_0x47b174,this[_0x4173cc(0x2ef)]=_0x39a7a9,this['_init']());}[_0x366146(0x3d7)](){const _0x2501be=_0x366146;this[_0x2501be(0x348)](),this[_0x2501be(0x3b7)](),this['_monkeyPatchLogService'](),this[_0x2501be(0x367)]();}[_0x366146(0x367)](){const _0x3c14b3=_0x366146;this[_0x3c14b3(0x39d)](this[_0x3c14b3(0x2ef)][_0x3c14b3(0x389)]['subscribe'](_0xe4c856=>{const _0x3907a2=_0x3c14b3;this[_0x3907a2(0x249)]=_0xe4c856==null?void 0x0:_0xe4c856[_0x3907a2(0x200)];}));}[_0x366146(0x348)](){const _0x1f387a=_0x366146,_0x16f050=_0x3b24d7=>{const _0x3a3a5c=_0x23c7;var _0x2b6906;this[_0x3a3a5c(0x3bc)](_0x3a3a5c(0x329),_0x3a3a5c(0x2c2)+_0x3b24d7['message']+_0x3a3a5c(0x3cc)+_0x3b24d7['filename']+':'+_0x3b24d7[_0x3a3a5c(0x2a3)]+':'+_0x3b24d7[_0x3a3a5c(0x320)]+'\x0a'+(((_0x2b6906=_0x3b24d7[_0x3a3a5c(0x329)])==null?void 0x0:_0x2b6906[_0x3a3a5c(0x1a7)])||''));};window[_0x1f387a(0x15f)]('error',_0x16f050),this[_0x1f387a(0x39d)](()=>{const _0x2396a8=_0x1f387a;window[_0x2396a8(0x395)](_0x2396a8(0x329),_0x16f050);});}[_0x366146(0x3b7)](){const _0x25e391=_0x366146,_0x2099aa=_0x4ab82d=>{const _0x546e08=_0x23c7;this[_0x546e08(0x3bc)](_0x546e08(0x329),_0x546e08(0x235)+_0x4ab82d[_0x546e08(0x3d2)]);};window[_0x25e391(0x15f)](_0x25e391(0x2cc),_0x2099aa),this['disposeWithMe'](()=>{const _0x3d2b10=_0x25e391;window[_0x3d2b10(0x395)](_0x3d2b10(0x2cc),_0x2099aa);});}[_0x366146(0x2eb)](){const _0x93db32=_0x366146,_0x3256a7=this[_0x93db32(0x204)][_0x93db32(0x329)]['bind'](this['_logService']);this[_0x93db32(0x204)][_0x93db32(0x329)]=(..._0x514338)=>{const _0x299657=_0x93db32,_0xca01b=_0x514338[_0x299657(0x3e9)](_0x38937a=>_0x38937a instanceof Error?_0x38937a[_0x299657(0x20a)]+'\x0a'+_0x38937a[_0x299657(0x1a7)]:String(_0x38937a))[_0x299657(0x295)]('\x20');this['_uploadLog']('error',_0x299657(0x36e)+_0xca01b),_0x3256a7(..._0x514338);},this[_0x93db32(0x39d)](()=>{const _0x19558b=_0x93db32;this[_0x19558b(0x204)]['error']=_0x3256a7;});}[_0x366146(0x3bc)](_0x2b9861,_0xbf4df0){const _0x168994=_0x366146;try{const _0x36d152={'userId':this['_memberID'],'logLabel':_0x2b9861,'content':_0xbf4df0};this[_0x168994(0x2a2)][_0x168994(0x1b3)](_0x168994(0x1db),{'body':_0x36d152})['catch'](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x366146(0x364)])),z(0x1,a['Inject'](x[_0x366146(0x388)])),z(0x2,a[_0x366146(0x2e8)]),z(0x3,a[_0x366146(0x34a)](u[_0x366146(0x31a)]))],Q);const Yt=_0x366146(0x1ca),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x4f7341,_0x152d4e,_0xd7dbcb,_0x4d85a2)=>{for(var _0x56f30c=_0x4d85a2>0x1?void 0x0:_0x4d85a2?Ht(_0x152d4e,_0xd7dbcb):_0x152d4e,_0x456f96=_0x4f7341['length']-0x1,_0x37d7a6;_0x456f96>=0x0;_0x456f96--)(_0x37d7a6=_0x4f7341[_0x456f96])&&(_0x56f30c=_0x37d7a6(_0x56f30c)||_0x56f30c);return _0x56f30c;},Ae=(_0x541fd3,_0xf76c67)=>(_0x1dee17,_0x146473)=>_0xf76c67(_0x1dee17,_0x146473,_0x541fd3);let ee=class{constructor(_0x22d8c6,_0x1371d1){const _0x450854=_0x366146;this[_0x450854(0x1e8)]=_0x22d8c6,this['_renderManagerService']=_0x1371d1;}[_0x366146(0x3ac)](_0x342b3b){const _0x58e430=_0x366146;this[_0x58e430(0x305)](_0x342b3b),this['_transformPreviousActiveRange'](_0x342b3b);}['transformRemoteChangeset'](_0x13e790){const _0x3a1c11=_0x366146,{unitID:_0x55cc4e}=_0x13e790,_0x2fd31d=this[_0x3a1c11(0x3fd)][_0x3a1c11(0x216)](_0x55cc4e)['with'](p[_0x3a1c11(0x2c4)]),{redoCache:_0x511bb7}=_0x2fd31d[_0x3a1c11(0x3aa)]();if(_0x511bb7[_0x3a1c11(0x18d)]===0x0)return _0x13e790;let _0x578356=a['Tools'][_0x3a1c11(0x363)](_0x13e790['mutations'][0x0]);for(let _0x4759d5=0x0;_0x4759d5<_0x511bb7[_0x3a1c11(0x18d)];_0x4759d5++){const _0x4b6945={'id':_0x3a1c11(0x155),'params':{..._0x511bb7[_0x4759d5]}},_0x28fba5=this['_transformService'][_0x3a1c11(0x206)](_0x578356,_0x4b6945,!0x1);if(g['isTransformMutationFailure'](_0x28fba5))throw _0x28fba5[_0x3a1c11(0x329)];_0x578356=_0x28fba5['m1Prime'];}return{...a[_0x3a1c11(0x1d5)][_0x3a1c11(0x363)](_0x13e790),'mutations':[_0x578356]};}[_0x366146(0x305)](_0x2aa4cc){const _0x218918=_0x366146,{unitID:_0x4aaaa0}=_0x2aa4cc,_0x571018=this[_0x218918(0x3fd)][_0x218918(0x216)](_0x4aaaa0)[_0x218918(0x1eb)](p[_0x218918(0x2c4)]),{undoCache:_0x583026,redoCache:_0x4a230a}=_0x571018[_0x218918(0x3aa)]();if(_0x583026[_0x218918(0x18d)]===0x0||_0x4a230a[_0x218918(0x18d)]===0x0)return;const _0x4e89ec=[],_0x3dbf95=[];let _0x3b5a53=a[_0x218918(0x1d5)]['deepClone'](_0x2aa4cc[_0x218918(0x32f)][0x0]),_0x38bb94=a['Tools'][_0x218918(0x363)](_0x2aa4cc[_0x218918(0x32f)][0x0]);for(let _0x2de221=_0x583026[_0x218918(0x18d)]-0x1;_0x2de221>=0x0;_0x2de221--){const _0x36c70d={'id':_0x218918(0x155),'params':{..._0x583026[_0x2de221]}},_0x3a21e0={'id':_0x218918(0x155),'params':{..._0x4a230a[_0x2de221]}},_0x4be2de=this[_0x218918(0x1e8)][_0x218918(0x206)](_0x3b5a53,_0x36c70d,!0x1),_0x1f8250=this[_0x218918(0x1e8)][_0x218918(0x206)](_0x38bb94,_0x3a21e0,!0x1);if(g[_0x218918(0x339)](_0x4be2de))throw _0x4be2de['error'];if(g['isTransformMutationFailure'](_0x1f8250))throw _0x1f8250[_0x218918(0x329)];_0x4e89ec['unshift'](_0x4be2de[_0x218918(0x340)][_0x218918(0x35d)]),_0x3dbf95[_0x218918(0x266)](_0x1f8250['m2Prime'][_0x218918(0x35d)]),_0x3b5a53=_0x4be2de[_0x218918(0x28b)],_0x38bb94=_0x1f8250['m1Prime'];}_0x571018[_0x218918(0x3b5)]({'undoCache':_0x4e89ec,'redoCache':_0x3dbf95});}[_0x366146(0x17f)](_0x427436){const _0x419577=_0x366146,{unitID:_0x11c962}=_0x427436,_0x2b8b1f=this[_0x419577(0x3fd)][_0x419577(0x216)](_0x11c962)[_0x419577(0x1eb)](p[_0x419577(0x2c4)]),_0x386001=_0x2b8b1f[_0x419577(0x3fc)]();if(_0x386001==null)return;const _0x5001af=[{'id':_0x419577(0x155),'params':{'unitId':_0x427436[_0x419577(0x1c5)],'actions':null,'textRanges':[_0x386001]}}],_0xade527=this[_0x419577(0x1e8)][_0x419577(0x2f7)](_0x427436,_0x5001af);if(!g[_0x419577(0x283)](_0xade527))throw _0xade527[_0x419577(0x329)];const _0x5bb34c=_0xade527[_0x419577(0x340)][0x0][_0x419577(0x35d)][_0x419577(0x24b)];Array[_0x419577(0x15d)](_0x5bb34c)&&_0x5bb34c[_0x419577(0x18d)]&&_0x2b8b1f['setActiveRange'](_0x5bb34c[0x0]);}};ee=Wt([Ae(0x0,g[_0x366146(0x1de)]),Ae(0x1,C[_0x366146(0x1da)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x169581,_0x3fc159,_0x321a4f,_0x558d26)=>{for(var _0x599c1e=_0x558d26>0x1?void 0x0:_0x558d26?Vt(_0x3fc159,_0x321a4f):_0x3fc159,_0x45157a=_0x169581['length']-0x1,_0x528651;_0x45157a>=0x0;_0x45157a--)(_0x528651=_0x169581[_0x45157a])&&(_0x599c1e=_0x528651(_0x599c1e)||_0x599c1e);return _0x599c1e;},Ie=(_0x2db9e9,_0x19a54b)=>(_0x48c04f,_0x3e94bc)=>_0x19a54b(_0x48c04f,_0x3e94bc,_0x2db9e9);let te=class{constructor(_0x20980b,_0x39c01f,_0x43e1){const _0x1edc39=_0x366146;this[_0x1edc39(0x354)]=_0x20980b,this['_transformService']=_0x39c01f,this[_0x1edc39(0x2d7)]=_0x43e1;}[_0x366146(0x30e)](_0x3bce88){const _0x23f1b3=_0x366146;this[_0x23f1b3(0x3ed)](_0x3bce88);}['transformRemoteChangeset'](_0x34ab43){const _0x37f48b=_0x366146,{unitID:_0x3a1767}=_0x34ab43,{collaboration:_0x5e1b6d}=this[_0x37f48b(0x2d7)][_0x37f48b(0x406)](_0x3a1767);if(_0x5e1b6d['length']===0x0)return _0x34ab43;let _0x69014f=a[_0x37f48b(0x1d5)][_0x37f48b(0x363)](_0x34ab43[_0x37f48b(0x32f)][0x0]);for(let _0x37ccdc=0x0;_0x37ccdc<_0x5e1b6d[_0x37f48b(0x18d)];_0x37ccdc++){const _0x48a8e5={'id':_0x37f48b(0x155),'params':{'unitId':_0x5e1b6d[_0x37ccdc]['unitId'],..._0x5e1b6d[_0x37ccdc][_0x37f48b(0x2e6)]}},_0x531b4b=this[_0x37f48b(0x1e8)]['transformMutation'](_0x69014f,_0x48a8e5,!0x1);if(g['isTransformMutationFailure'](_0x531b4b))throw _0x531b4b[_0x37f48b(0x329)];_0x69014f=_0x531b4b[_0x37f48b(0x28b)];}return{...a['Tools'][_0x37f48b(0x363)](_0x34ab43),'mutations':[_0x69014f]};}[_0x366146(0x3ed)](_0x1c6c58){const _0x2b09aa=_0x366146,{unitID:_0x2b695c}=_0x1c6c58,{history:_0x5d923e,collaboration:_0x43d784}=this[_0x2b09aa(0x2d7)][_0x2b09aa(0x406)](_0x2b695c);if(_0x5d923e['length']===0x0&&_0x43d784[_0x2b09aa(0x18d)]===0x0)return;const _0x1ae243=[],_0x45331b=[];let _0x5364d6=a[_0x2b09aa(0x1d5)][_0x2b09aa(0x363)](_0x1c6c58[_0x2b09aa(0x32f)][0x0]),_0x4971d5=a[_0x2b09aa(0x1d5)][_0x2b09aa(0x363)](_0x1c6c58['mutations'][0x0]);for(let _0x2de529=_0x5d923e[_0x2b09aa(0x18d)]-0x1;_0x2de529>=0x0;_0x2de529--){const _0x2ce4a3={'id':_0x2b09aa(0x155),'params':{'unitId':_0x5d923e[_0x2de529][_0x2b09aa(0x232)],..._0x5d923e[_0x2de529][_0x2b09aa(0x37c)]}},_0x3cf09f={'id':_0x2b09aa(0x155),'params':{'unitId':_0x5d923e[_0x2de529]['unitId'],..._0x5d923e[_0x2de529][_0x2b09aa(0x2e6)]}},_0x14a389=this['_transformService']['transformMutation'](_0x5364d6,_0x2ce4a3,!0x1),_0x3e470b=this[_0x2b09aa(0x1e8)][_0x2b09aa(0x206)](_0x4971d5,_0x3cf09f,!0x1);if(g['isTransformMutationFailure'](_0x14a389))throw _0x14a389[_0x2b09aa(0x329)];if(g[_0x2b09aa(0x339)](_0x3e470b))throw _0x3e470b[_0x2b09aa(0x329)];_0x1ae243[_0x2b09aa(0x266)]({..._0x5d923e[_0x2de529],'undoState':_0x14a389[_0x2b09aa(0x340)]['params'],'redoState':_0x3e470b[_0x2b09aa(0x340)][_0x2b09aa(0x35d)]}),_0x5364d6=_0x14a389[_0x2b09aa(0x28b)],_0x4971d5=_0x3e470b[_0x2b09aa(0x28b)];}_0x5364d6=a[_0x2b09aa(0x1d5)][_0x2b09aa(0x363)](_0x1c6c58[_0x2b09aa(0x32f)][0x0]),_0x4971d5=a['Tools'][_0x2b09aa(0x363)](_0x1c6c58[_0x2b09aa(0x32f)][0x0]);for(let _0x4702e8=_0x43d784[_0x2b09aa(0x18d)]-0x1;_0x4702e8>=0x0;_0x4702e8--){const _0x1371b1={'id':_0x2b09aa(0x155),'params':{'unitId':_0x43d784[_0x4702e8][_0x2b09aa(0x232)],..._0x43d784[_0x4702e8][_0x2b09aa(0x37c)]}},_0x297ee7={'id':_0x2b09aa(0x155),'params':{'unitId':_0x43d784[_0x4702e8][_0x2b09aa(0x232)],..._0x43d784[_0x4702e8]['redoState']}},_0x7c2335=this[_0x2b09aa(0x1e8)][_0x2b09aa(0x206)](_0x5364d6,_0x1371b1,!0x1),_0x5db77d=this['_transformService']['transformMutation'](_0x4971d5,_0x297ee7,!0x1);if(g[_0x2b09aa(0x339)](_0x7c2335))throw _0x7c2335[_0x2b09aa(0x329)];if(g['isTransformMutationFailure'](_0x5db77d))throw _0x5db77d['error'];_0x45331b[_0x2b09aa(0x266)]({..._0x43d784[_0x4702e8],'undoState':_0x7c2335[_0x2b09aa(0x340)][_0x2b09aa(0x35d)],'redoState':_0x5db77d['m2Prime'][_0x2b09aa(0x35d)]}),_0x5364d6=_0x7c2335[_0x2b09aa(0x28b)],_0x4971d5=_0x5db77d['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x2b695c,{'history':_0x1ae243,'collaboration':_0x45331b});}};te=Gt([Ie(0x0,a['Inject'](a[_0x366146(0x364)])),Ie(0x1,g[_0x366146(0x1de)]),Ie(0x2,a['Inject'](p[_0x366146(0x1b4)]))],te);var Xt=Object[_0x366146(0x3ee)],Kt=(_0xa481d1,_0x55975a,_0x4d2f00,_0x3bf65b)=>{const _0x1418e8=_0x366146;for(var _0x39d40c=_0x3bf65b>0x1?void 0x0:_0x3bf65b?Xt(_0x55975a,_0x4d2f00):_0x55975a,_0x51d900=_0xa481d1[_0x1418e8(0x18d)]-0x1,_0x50792f;_0x51d900>=0x0;_0x51d900--)(_0x50792f=_0xa481d1[_0x51d900])&&(_0x39d40c=_0x50792f(_0x39d40c)||_0x39d40c);return _0x39d40c;},Pe=(_0x3f0559,_0x19fce5)=>(_0x3faf31,_0x5813f5)=>_0x19fce5(_0x3faf31,_0x5813f5,_0x3f0559);let se=class{constructor(_0x44f3d5,_0x5e06b2){const _0x1d8904=_0x366146;this['_injector']=_0x44f3d5,this[_0x1d8904(0x1e8)]=_0x5e06b2;}[_0x366146(0x15a)](_0xc10dda){const _0x2d7f64=_0x366146;var _0x5d0ff3;const _0x22272b=this[_0x2d7f64(0x354)][_0x2d7f64(0x268)](V[_0x2d7f64(0x38d)]),_0x186468=(_0x5d0ff3=_0x22272b['getDocRanges']())!=null?_0x5d0ff3:[];if(_0x186468[_0x2d7f64(0x18d)]===0x0)return;const _0x103fe1=_0xc10dda[_0x2d7f64(0x1c5)],_0x17b7c3=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x103fe1,'actions':null,'textRanges':_0x186468}}],_0x2a3640=this[_0x2d7f64(0x1e8)][_0x2d7f64(0x2f7)](_0xc10dda,_0x17b7c3);if(!g[_0x2d7f64(0x283)](_0x2a3640))throw _0x2a3640[_0x2d7f64(0x329)];const _0x10b91e=_0x2a3640[_0x2d7f64(0x340)][0x0]['params']['textRanges'];Array[_0x2d7f64(0x15d)](_0x10b91e)&&_0x10b91e['length']&&_0x22272b['replaceDocRanges'](_0x10b91e,{'unitId':_0x103fe1,'subUnitId':_0x103fe1},!0x1);}};se=Kt([Pe(0x0,a[_0x366146(0x34a)](a[_0x366146(0x364)])),Pe(0x1,g[_0x366146(0x1de)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x48a085,_0x4cc156,_0x40d62f,_0x5062b1)=>{const _0x36d16b=_0x366146;for(var _0x9345c7=_0x5062b1>0x1?void 0x0:_0x5062b1?qt(_0x4cc156,_0x40d62f):_0x4cc156,_0x59111b=_0x48a085[_0x36d16b(0x18d)]-0x1,_0x427d52;_0x59111b>=0x0;_0x59111b--)(_0x427d52=_0x48a085[_0x59111b])&&(_0x9345c7=_0x427d52(_0x9345c7)||_0x9345c7);return _0x9345c7;},N=(_0x24b457,_0x3da734)=>(_0x292a88,_0x5191b6)=>_0x3da734(_0x292a88,_0x5191b6,_0x24b457);let ie=class extends a[_0x366146(0x176)]{constructor(_0x2e815d,_0x46cb7b,_0x31935b,_0x47257b,_0x5e0e97,_0x42357d,_0x274cc5,_0x1c1dd8){const _0x2a3747=_0x366146;super(),_(this,'_status$',new I[(_0x2a3747(0x3a8))](u['CollaborationStatus'][_0x2a3747(0x2ad)])),(this[_0x2a3747(0x2d7)]=_0x2e815d,this['_collaborationController']=_0x46cb7b,this[_0x2a3747(0x1af)]=_0x31935b,this[_0x2a3747(0x31f)]=_0x47257b,this[_0x2a3747(0x19e)]=_0x5e0e97,this['_docSyncEditingCollabCursorService']=_0x42357d,this['_messageService']=_0x274cc5,this[_0x2a3747(0x2ac)]=_0x1c1dd8,this['_initEntityListener']());}['_initEntityListener'](){const _0x24fdbf=_0x366146;this[_0x24fdbf(0x39d)](this[_0x24fdbf(0x240)][_0x24fdbf(0x26d)][_0x24fdbf(0x390)](_0x16df9d=>{const _0x5e9fc6=_0x24fdbf,_0x5f4f5b=this[_0x5e9fc6(0x2d7)][_0x5e9fc6(0x2d8)]['subscribe'](_0x20f732=>{const _0x339548=_0x5e9fc6;if(_0x20f732==null)return;const {unitId:_0x31d6af,redoState:_0x3e5558,commandId:_0x44448c}=_0x20f732;if(_0x31d6af!==_0x16df9d['unitID'])return;const _0x9eccc8={'id':_0x44448c,'type':a['CommandType'][_0x339548(0x385)],'params':{'unitId':_0x31d6af,'actions':_0x3e5558[_0x339548(0x24f)],'textRanges':null}};_0x16df9d[_0x339548(0x3d3)](_0x9eccc8);});if(_0x16df9d[_0x5e9fc6(0x39d)](_0x5f4f5b),_0x16df9d instanceof u['DocCollaborationEntity']){const _0x16eecf={'onTransformIME':_0x4fb0eb=>this[_0x5e9fc6(0x1af)][_0x5e9fc6(0x3ac)](_0x4fb0eb),'onTransformState':_0x602b7b=>this['_docTransformStateCacheService'][_0x5e9fc6(0x30e)](_0x602b7b),'onTransformSelections':_0x28ab5f=>this['_docTransformSelectionsService'][_0x5e9fc6(0x15a)](_0x28ab5f),'onSyncEditingCollabCursor':_0x1b63b7=>this[_0x5e9fc6(0x32a)][_0x5e9fc6(0x1c3)](_0x1b63b7),'onTransformRemoteChangesetByIMECache':_0x1b627b=>this[_0x5e9fc6(0x1af)][_0x5e9fc6(0x3d9)](_0x1b627b),'onTransformRemoteChangesetByStateCache':_0x1a372f=>this[_0x5e9fc6(0x31f)][_0x5e9fc6(0x3d9)](_0x1a372f)};_0x16df9d[_0x5e9fc6(0x223)](_0x16eecf);}}));}};ie=zt([N(0x0,a[_0x366146(0x34a)](p[_0x366146(0x1b4)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x366146(0x34a)](ee)),N(0x3,a[_0x366146(0x34a)](te)),N(0x4,a[_0x366146(0x34a)](se)),N(0x5,a[_0x366146(0x34a)](be)),N(0x6,O[_0x366146(0x3a4)]),N(0x7,a[_0x366146(0x34a)](a[_0x366146(0x267)]))],ie);var G=(_0x16102c=>(_0x16102c[_0x16102c[_0x366146(0x3fa)]=0x0]='UNDEFINED',_0x16102c[_0x16102c['OK']=0x1]='OK',_0x16102c[_0x16102c[_0x366146(0x1ab)]=0x2]=_0x366146(0x1ab),_0x16102c[_0x16102c[_0x366146(0x1e0)]=0x3]=_0x366146(0x1e0),_0x16102c[_0x16102c['NOT_FOUND']=0x4]=_0x366146(0x3b8),_0x16102c[_0x16102c[_0x366146(0x1cb)]=0x5]=_0x366146(0x1cb),_0x16102c[_0x16102c[_0x366146(0x280)]=0x6]=_0x366146(0x280),_0x16102c[_0x16102c[_0x366146(0x372)]=0x7]=_0x366146(0x372),_0x16102c[_0x16102c[_0x366146(0x3f9)]=0x8]=_0x366146(0x3f9),_0x16102c[_0x16102c['COMPLETION_FINISHED']=0x9]=_0x366146(0x183),_0x16102c[_0x16102c[_0x366146(0x353)]=0xa]=_0x366146(0x353),_0x16102c[_0x16102c[_0x366146(0x19f)]=0xb]=_0x366146(0x19f),_0x16102c[_0x16102c[_0x366146(0x3ad)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x16102c[_0x16102c['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x366146(0x359),_0x16102c[_0x16102c[_0x366146(0x218)]=0xe]=_0x366146(0x218),_0x16102c[_0x16102c[_0x366146(0x229)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x16102c[_0x16102c[_0x366146(0x277)]=0x10]=_0x366146(0x277),_0x16102c[_0x16102c[_0x366146(0x187)]=0x64]=_0x366146(0x187),_0x16102c[_0x16102c[_0x366146(0x3c0)]=0x65]=_0x366146(0x3c0),_0x16102c[_0x16102c[_0x366146(0x1ec)]=0xc9]=_0x366146(0x1ec),_0x16102c[_0x16102c['USER_IS_ANONYMOUS']=0xca]=_0x366146(0x27f),_0x16102c[_0x16102c[_0x366146(0x30a)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x16102c[_0x16102c[_0x366146(0x2de)]=0x1771]=_0x366146(0x2de),_0x16102c[_0x16102c[_0x366146(0x190)]=0x1772]=_0x366146(0x190),_0x16102c[_0x16102c[_0x366146(0x378)]=0x1773]=_0x366146(0x378),_0x16102c[_0x16102c[_0x366146(0x31e)]=0x1b59]=_0x366146(0x31e),_0x16102c[_0x16102c[_0x366146(0x3bb)]=0x1b5a]=_0x366146(0x3bb),_0x16102c[_0x16102c[_0x366146(0x254)]=0x1b5b]=_0x366146(0x254),_0x16102c[_0x16102c[_0x366146(0x39a)]=0x1b5c]=_0x366146(0x39a),_0x16102c[_0x16102c[_0x366146(0x1f4)]=0x1b5d]='APPLY_DUPLICATED',_0x16102c[_0x16102c[_0x366146(0x29b)]=0x1f41]=_0x366146(0x29b),_0x16102c[_0x16102c[_0x366146(0x24a)]=0x2329]=_0x366146(0x24a),_0x16102c[_0x16102c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x366146(0x158),_0x16102c[_0x16102c[_0x366146(0x1ff)]=0x232b]=_0x366146(0x1ff),_0x16102c[_0x16102c[_0x366146(0x394)]=0x232c]=_0x366146(0x394),_0x16102c[_0x16102c[_0x366146(0x16a)]=0x232d]=_0x366146(0x16a),_0x16102c[_0x16102c['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x366146(0x194),_0x16102c[_0x16102c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x366146(0x2b8),_0x16102c[_0x16102c[_0x366146(0x174)]=0x2713]=_0x366146(0x174),_0x16102c[_0x16102c['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x366146(0x1c8),_0x16102c[_0x16102c[_0x366146(0x1d2)]=0x271a]=_0x366146(0x1d2),_0x16102c[_0x16102c[_0x366146(0x18b)]=0x271b]=_0x366146(0x18b),_0x16102c[_0x16102c[_0x366146(0x310)]=0x271c]=_0x366146(0x310),_0x16102c[_0x16102c['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x366146(0x1a5),_0x16102c[_0x16102c[_0x366146(0x1a4)]=0x271e]=_0x366146(0x1a4),_0x16102c[_0x16102c[_0x366146(0x384)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x16102c[_0x16102c['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x366146(0x20c),_0x16102c[_0x16102c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x366146(0x1f1),_0x16102c[_0x16102c[_0x366146(0x379)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x16102c[_0x16102c[_0x366146(0x1a9)]=0x2ee2]='INVALID_INVITE_CODE',_0x16102c[_0x16102c['INVITE_CODE_REQUIRED']=0x2ee3]=_0x366146(0x1d6),_0x16102c[_0x16102c[_0x366146(0x1b0)]=0x2ee4]=_0x366146(0x1b0),_0x16102c[_0x16102c[_0x366146(0x1f5)]=0x2ee5]=_0x366146(0x1f5),_0x16102c[_0x16102c[_0x366146(0x2a8)]=0x32c9]=_0x366146(0x2a8),_0x16102c[_0x16102c[_0x366146(0x14d)]=0x32ca]=_0x366146(0x14d),_0x16102c[_0x16102c[_0x366146(0x175)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x16102c[_0x16102c[_0x366146(0x30f)]=0x36b1]=_0x366146(0x30f),_0x16102c[_0x16102c[_0x366146(0x2fb)]=0x36b2]=_0x366146(0x2fb),_0x16102c[_0x16102c[_0x366146(0x193)]=0x36b3]=_0x366146(0x193),_0x16102c[_0x16102c[_0x366146(0x313)]=0x36b4]=_0x366146(0x313),_0x16102c[_0x16102c[_0x366146(0x358)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x16102c[_0x16102c[_0x366146(0x38b)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x16102c[_0x16102c[_0x366146(0x22b)]=0x3717]=_0x366146(0x22b),_0x16102c[_0x16102c['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x366146(0x171),_0x16102c[_0x16102c[_0x366146(0x210)]=0x3a99]=_0x366146(0x210),_0x16102c[_0x16102c['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x366146(0x2a1),_0x16102c[_0x16102c['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x366146(0x17c),_0x16102c[_0x16102c[_0x366146(0x2ec)]=0x3a9c]=_0x366146(0x2ec),_0x16102c[_0x16102c[_0x366146(0x2f4)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x16102c[_0x16102c['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x366146(0x29c),_0x16102c[_0x16102c[_0x366146(0x2c9)]=0x3a9f]=_0x366146(0x2c9),_0x16102c[_0x16102c['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x366146(0x1ba),_0x16102c[_0x16102c[_0x366146(0x2ed)]=-0x1]=_0x366146(0x2ed),_0x16102c))(G||{});function Jt(_0x1625e1){const _0x4e333a=_0x366146;var _0x4d43f8,_0x27bf8d;const _0x537b7c=(_0x4d43f8=_0x1625e1[_0x4e333a(0x335)])==null?void 0x0:_0x4d43f8['stage'],_0x5b2946=((_0x27bf8d=_0x1625e1[_0x4e333a(0x335)])==null?void 0x0:_0x27bf8d['totalFormulasToCalculate'])||0x0;return _0x537b7c===B[_0x4e333a(0x3f7)][_0x4e333a(0x219)]&&_0x5b2946>0x0;}function Zt(_0x4d7967){const _0x4cc32e=_0x366146;return _0x4d7967[_0x4cc32e(0x1d8)]===B[_0x4cc32e(0x2fc)]['SUCCESS'];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x5c5878,_0x5a6bc3,_0x2615cf,_0x4b7f9e)=>{for(var _0x235c50=_0x4b7f9e>0x1?void 0x0:_0x4b7f9e?Qt(_0x5a6bc3,_0x2615cf):_0x5a6bc3,_0x5a5692=_0x5c5878['length']-0x1,_0x915d23;_0x5a5692>=0x0;_0x5a5692--)(_0x915d23=_0x5c5878[_0x5a5692])&&(_0x235c50=_0x915d23(_0x235c50)||_0x235c50);return _0x235c50;},L=(_0x46b963,_0x3e0876)=>(_0x1cc5b5,_0x2d3ed6)=>_0x3e0876(_0x1cc5b5,_0x2d3ed6,_0x46b963);const ts=_0x366146(0x15c),ss=_0x366146(0x3b2),is=_0x366146(0x35f);let ne=class extends a[_0x366146(0x176)]{constructor(_0x517285,_0x1b6e15,_0x43f8f4,_0x22e25b,_0x2eafcb,_0x365522,_0x3f7a04){const _0x4c7b07=_0x366146;super(),_(this,'_pollingInterval',null),_(this,_0x4c7b07(0x39b),0x0),_(this,'_currentUsage',0x0),_(this,_0x4c7b07(0x256),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x4c7b07(0x24d)]=_0x517285,this[_0x4c7b07(0x16f)]=_0x1b6e15,this[_0x4c7b07(0x244)]=_0x43f8f4,this[_0x4c7b07(0x2a2)]=_0x22e25b,this[_0x4c7b07(0x2fe)]=_0x2eafcb,this[_0x4c7b07(0x204)]=_0x365522,this['_localeService']=_0x3f7a04,this[_0x4c7b07(0x403)]());}[_0x366146(0x403)](){const _0x399671=_0x366146;this['disposeWithMe'](this[_0x399671(0x16f)][_0x399671(0x241)]((_0x107d5f,_0x1ffdcc)=>{const _0x4e1531=_0x399671;var _0x56e838;if(_0x107d5f['id']!==B[_0x4e1531(0x3e1)]['id'])return;const _0x157c14=_0x107d5f[_0x4e1531(0x35d)];if(!this['_hasFormulaInDirtyRanges']((_0x56e838=_0x157c14[_0x4e1531(0x19c)])!=null?_0x56e838:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x4e1531(0x24c)](_0x107d5f,_0x1ffdcc),this[_0x4e1531(0x3e6)](),new a[(_0x4e1531(0x181))]();})),this['disposeWithMe'](this[_0x399671(0x16f)][_0x399671(0x3e7)]((_0x5575c3,_0x53fd72)=>{const _0x2131a7=_0x399671;if(_0x5575c3['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x1d1db9=_0x5575c3[_0x2131a7(0x35d)];if(Jt(_0x1d1db9)){const _0x2509e7=a[_0x2131a7(0x28f)]();this[_0x2131a7(0x256)][_0x2131a7(0x192)](_0x2509e7),this[_0x2131a7(0x2e4)](_0x2509e7);}else{if(Zt(_0x1d1db9)&&this['_taskIds']['length']>0x0){const _0x4bb973=this['_taskIds'][_0x2131a7(0x2da)]();this[_0x2131a7(0x271)](_0x4bb973);}}}));}['dispose'](){const _0x4e01f2=_0x366146;super['dispose'](),this['_clearPolling'](),this[_0x4e01f2(0x256)]=[],this[_0x4e01f2(0x3da)]=0x0,this[_0x4e01f2(0x39b)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x366146(0x24c)](_0x346b23,_0x1358c5){const _0x127767=_0x366146;for(let _0x45665f=0x0;_0x45665f<0x1e;_0x45665f++)try{if(await this['_getFormulaLimitStatus'](),this[_0x127767(0x2c0)]()){this[_0x127767(0x173)](_0x346b23,_0x1358c5),this[_0x127767(0x24d)]['show']({'content':this['_localeService']['t'](_0x127767(0x289)),'type':T['MessageType'][_0x127767(0x1cd)]});return;}await new Promise(_0x28b75a=>{const _0x572c8d=_0x127767;this[_0x572c8d(0x3d6)]=window[_0x572c8d(0x3f6)](_0x28b75a,0x3e8);});}catch(_0x925e34){this['_logService'][_0x127767(0x329)](_0x925e34);}this[_0x127767(0x24d)]['show']({'content':this[_0x127767(0x2ac)]['t'](_0x127767(0x2d2)),'type':T[_0x127767(0x326)][_0x127767(0x1e3)]});}[_0x366146(0x173)](_0x3328df,_0x530d0b){const _0x511284=_0x366146;try{this[_0x511284(0x16f)][_0x511284(0x1be)](_0x3328df['id'],_0x3328df['params'],_0x530d0b);}catch(_0x28bd23){this['_logService'][_0x511284(0x329)](_0x28bd23);}}[_0x366146(0x33d)](_0x1aef50,_0x13ea36){const _0x195a2d=_0x366146;_0x13ea36<this[_0x195a2d(0x1cc)]||(this[_0x195a2d(0x1cc)]=_0x13ea36,this['_maxFormulaLimit']=Number[_0x195a2d(0x17e)](_0x1aef50[_0x195a2d(0x38a)]),this[_0x195a2d(0x3da)]=Number['parseInt'](_0x1aef50[_0x195a2d(0x306)]));}async[_0x366146(0x2e4)](_0x4cde0e){const _0x1c17cf=_0x366146;var _0x13b48c,_0x1039f1;const _0x415fb5=Date[_0x1c17cf(0x3ab)]();try{const _0x789f98=((_0x13b48c=this[_0x1c17cf(0x244)][_0x1c17cf(0x251)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x13b48c['startFormulaLimitUrl'])||ss,_0x45a2fa=(await this['_httpService']['post'](_0x789f98,{'body':JSON[_0x1c17cf(0x1b9)]({'taskId':_0x4cde0e})}))[_0x1c17cf(0x1b8)];if(((_0x1039f1=_0x45a2fa[_0x1c17cf(0x329)])==null?void 0x0:_0x1039f1['code'])!==G['OK'])return;this[_0x1c17cf(0x33d)](_0x45a2fa[_0x1c17cf(0x231)],_0x415fb5);}catch(_0x1d52b7){this['_logService']['error'](_0x1d52b7);}}async['_getFormulaLimitStatus'](_0x53afb8){const _0x51d6b8=_0x366146;var _0x4d34d3,_0x91a380;const _0x3a061f=Date[_0x51d6b8(0x3ab)]();try{const _0x41feec=((_0x4d34d3=this[_0x51d6b8(0x244)][_0x51d6b8(0x251)](u[_0x51d6b8(0x3c3)]))==null?void 0x0:_0x4d34d3[_0x51d6b8(0x337)])||ts,_0x42a358=_0x53afb8?_0x41feec+_0x51d6b8(0x20f)+encodeURIComponent(_0x53afb8):_0x41feec,_0x520771=(await this[_0x51d6b8(0x2a2)][_0x51d6b8(0x268)](_0x42a358))[_0x51d6b8(0x1b8)];if(((_0x91a380=_0x520771[_0x51d6b8(0x329)])==null?void 0x0:_0x91a380[_0x51d6b8(0x21d)])!==G['OK'])return;this[_0x51d6b8(0x33d)](_0x520771[_0x51d6b8(0x231)],_0x3a061f);}catch(_0x4bc491){this[_0x51d6b8(0x204)][_0x51d6b8(0x329)](_0x4bc491);}}async[_0x366146(0x271)](_0x5f2613){const _0x234c60=_0x366146;var _0x1c7150,_0xf612ad;const _0x4eac61=Date[_0x234c60(0x3ab)]();try{const _0x40cb11=((_0x1c7150=this[_0x234c60(0x244)][_0x234c60(0x251)](u[_0x234c60(0x3c3)]))==null?void 0x0:_0x1c7150[_0x234c60(0x1ac)])||is,_0xb9ea96=(await this[_0x234c60(0x2a2)][_0x234c60(0x1b3)](_0x40cb11,{'body':JSON[_0x234c60(0x1b9)]({'taskId':_0x5f2613})}))['body'];if(((_0xf612ad=_0xb9ea96[_0x234c60(0x329)])==null?void 0x0:_0xf612ad[_0x234c60(0x21d)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0xb9ea96['limitInfo'],_0x4eac61);}catch(_0x12710b){this[_0x234c60(0x204)][_0x234c60(0x329)](_0x12710b);}}[_0x366146(0x2c0)](){const _0x11e81f=_0x366146;return this[_0x11e81f(0x39b)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x366146(0x3b1)](){const _0x47fd89=_0x366146;this[_0x47fd89(0x3d6)]&&(clearTimeout(this[_0x47fd89(0x3d6)]),this[_0x47fd89(0x3d6)]=null);}[_0x366146(0x3e6)](){const _0x140761=_0x366146;this['_messageService'][_0x140761(0x2f6)]({'content':this[_0x140761(0x2ac)]['t'](_0x140761(0x324)),'type':T[_0x140761(0x326)][_0x140761(0x37e)]});}[_0x366146(0x1f3)](_0x358c70){const _0x80a85c=_0x366146;for(const _0x47b1d5 of _0x358c70){const {unitId:_0x5cb9c9,sheetId:_0x3c9f07,range:_0x2cc0fa}=_0x47b1d5,_0xfe4f1f=this['_univerInstanceService'][_0x80a85c(0x2dc)](_0x5cb9c9);if(!_0xfe4f1f)continue;const _0x60416c=_0xfe4f1f['getSheetBySheetId'](_0x3c9f07);if(!_0x60416c)continue;const _0x128e87=_0x60416c['getCellMatrix']();for(let _0x5cb78c=_0x2cc0fa[_0x80a85c(0x30d)];_0x5cb78c<=_0x2cc0fa[_0x80a85c(0x2b4)];_0x5cb78c++)for(let _0x4e5f4f=_0x2cc0fa['startColumn'];_0x4e5f4f<=_0x2cc0fa[_0x80a85c(0x2c7)];_0x4e5f4f++){const _0x4a32c7=_0x128e87[_0x80a85c(0x1bf)](_0x5cb78c,_0x4e5f4f);if(_0x4a32c7&&(a[_0x80a85c(0x2db)](_0x4a32c7['f'])||a[_0x80a85c(0x209)](_0x4a32c7['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x366146(0x34a)](O[_0x366146(0x3a4)])),L(0x1,a[_0x366146(0x2d4)]),L(0x2,a[_0x366146(0x199)]),L(0x3,a['Inject'](x[_0x366146(0x388)])),L(0x4,a[_0x366146(0x375)]),L(0x5,a[_0x366146(0x2e8)]),L(0x6,a['Inject'](a['LocaleService']))],ne);var ns=Object[_0x366146(0x3ee)],rs=(_0x49bf00,_0x22ca30,_0x3b1b27,_0x58b02f)=>{const _0x51eb26=_0x366146;for(var _0x5232d1=_0x58b02f>0x1?void 0x0:_0x58b02f?ns(_0x22ca30,_0x3b1b27):_0x22ca30,_0x2b3aa2=_0x49bf00[_0x51eb26(0x18d)]-0x1,_0x442818;_0x2b3aa2>=0x0;_0x2b3aa2--)(_0x442818=_0x49bf00[_0x2b3aa2])&&(_0x5232d1=_0x442818(_0x5232d1)||_0x5232d1);return _0x5232d1;},de=(_0x2f1c4b,_0x2eedbd)=>(_0x330805,_0x4547f0)=>_0x2eedbd(_0x330805,_0x4547f0,_0x2f1c4b);let pe=class extends a[_0x366146(0x176)]{constructor(_0x7f730a,_0x919e2a,_0x3a66e8){const _0x20a3a4=_0x366146;super(),_(this,_0x20a3a4(0x2c5),new Map()),_(this,_0x20a3a4(0x3df),new Map()),_(this,'_disabled',!0x1),(this[_0x20a3a4(0x244)]=_0x7f730a,this[_0x20a3a4(0x25c)]=_0x919e2a,this[_0x20a3a4(0x345)]=_0x3a66e8);}[_0x366146(0x2ab)](){const _0x186329=_0x366146;this[_0x186329(0x27b)]=!0x0;}[_0x366146(0x393)](){const _0x31cd7f=_0x366146;this[_0x31cd7f(0x27b)]=!0x1;}get[_0x366146(0x189)](){const _0x55caf5=_0x366146;return this[_0x55caf5(0x3df)];}[_0x366146(0x286)](){const _0x350172=_0x366146;this[_0x350172(0x1dc)]()[_0x350172(0x3c5)](()=>super[_0x350172(0x286)]());}async[_0x366146(0x290)](_0x1f1134){const _0xf6663c=_0x366146;return this[_0xf6663c(0x27b)]?null:this[_0xf6663c(0x25c)][_0xf6663c(0x371)](u['getLocalCacheKey'](_0x1f1134));}async['saveOfflineData'](_0x26afab,_0x391cc4){const _0x19e068=_0x366146;return!!this[_0x19e068(0x25c)][_0x19e068(0x405)](_0x26afab,_0x391cc4);}[_0x366146(0x203)](_0x17de12,_0xc4da51,_0x52972a,_0x436d61){const _0x4b68d8=_0x366146,_0x1d1bc4=this[_0x4b68d8(0x345)][_0x4b68d8(0x1c7)](_0x17de12);this[_0x4b68d8(0x2c5)]['set'](_0x17de12,{'unitID':_0x17de12,'type':_0xc4da51,'awaitingChangeset':_0x52972a,'mutations':_0x436d61,'rev':_0x1d1bc4}),this['_saveTaskMap'][_0x4b68d8(0x3fe)](_0x17de12)||this[_0x4b68d8(0x39f)](_0x17de12);}[_0x366146(0x39f)](_0x3f3a1f){const _0x197b5=_0x366146,_0x74f501=this['_getSaveTimeout']();_0x74f501===0x0?this[_0x197b5(0x304)](_0x3f3a1f):this['_saveTaskMap'][_0x197b5(0x17a)](_0x3f3a1f,setTimeout(()=>this[_0x197b5(0x304)](_0x3f3a1f),_0x74f501));}['_getSaveTimeout'](){const _0x13418c=_0x366146;var _0x349f86;return(_0x349f86=this[_0x13418c(0x244)][_0x13418c(0x251)](u[_0x13418c(0x3dc)]))!=null?_0x349f86:u['LOCAL_CACHE_INTERVAL'];}[_0x366146(0x304)](_0x7898dc){const _0x2fcbd8=_0x366146,_0x33b8ac=this[_0x2fcbd8(0x3df)]['get'](_0x7898dc);return _0x33b8ac!==void 0x0&&window[_0x2fcbd8(0x2f2)](_0x33b8ac),this[_0x2fcbd8(0x25c)][_0x2fcbd8(0x405)](u[_0x2fcbd8(0x39c)](_0x7898dc),this[_0x2fcbd8(0x2c5)][_0x2fcbd8(0x268)](_0x7898dc))[_0x2fcbd8(0x3c5)](()=>this[_0x2fcbd8(0x3df)][_0x2fcbd8(0x382)](_0x7898dc));}async[_0x366146(0x1dc)](){const _0x427432=_0x366146,_0x44de55=[];this[_0x427432(0x3df)][_0x427432(0x3eb)]((_0x815234,_0x5ba74e)=>{const _0x412083=_0x427432;window[_0x412083(0x2f2)](_0x815234),_0x44de55[_0x412083(0x192)](this['_saveCache'](_0x5ba74e)['then'](()=>{const _0x1c2578=_0x412083;this[_0x1c2578(0x3df)][_0x1c2578(0x382)](_0x5ba74e);}));}),await Promise[_0x427432(0x3e3)](_0x44de55);}};pe=rs([de(0x0,a['IConfigService']),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x366146(0x34a)](g[_0x366146(0x196)]))],pe);class ke extends a[_0x366146(0x25a)]{constructor(){const _0x46f841=_0x366146;super(),_(this,_0x46f841(0x21a)),this[_0x46f841(0x21a)]=I[_0x46f841(0x282)](window,'popstate')['pipe'](I['takeUntil'](this['dispose$']),I['shareReplay'](0x1),I[_0x46f841(0x2d0)](void 0x0));}[_0x366146(0x20d)](_0x1722f6,_0x3e26a5,_0x14af90=!0x1){const _0x2712cf=_0x366146,_0x5d0e52=new URL(window[_0x2712cf(0x330)][_0x2712cf(0x163)]);_0x5d0e52[_0x2712cf(0x31d)][_0x2712cf(0x17a)](_0x1722f6,_0x3e26a5),_0x14af90?window[_0x2712cf(0x168)][_0x2712cf(0x37d)]('','',_0x5d0e52[_0x2712cf(0x177)]()):window[_0x2712cf(0x168)]['pushState']('','',_0x5d0e52[_0x2712cf(0x177)]());}[_0x366146(0x2bd)](_0x3dfa98,_0x3f9c96=!0x1){const _0x13b430=_0x366146,_0x193e6f=new URL(window[_0x13b430(0x330)][_0x13b430(0x163)]);_0x193e6f[_0x13b430(0x31d)]['delete'](_0x3dfa98),_0x3f9c96?window[_0x13b430(0x168)][_0x13b430(0x37d)]('','',_0x193e6f[_0x13b430(0x177)]()):window['history'][_0x13b430(0x36c)]('','',_0x193e6f[_0x13b430(0x177)]());}[_0x366146(0x1d4)](_0x19797e){const _0x36f126=_0x366146;var _0x12d682;return(_0x12d682=new URL(window[_0x36f126(0x330)][_0x36f126(0x163)])[_0x36f126(0x31d)][_0x36f126(0x268)](_0x19797e))!=null?_0x12d682:void 0x0;}}var os=Object[_0x366146(0x24e)],as=Object['getOwnPropertyDescriptor'],cs=(_0x35be7a,_0x3daff2,_0x2fdf9f)=>_0x3daff2 in _0x35be7a?os(_0x35be7a,_0x3daff2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fdf9f}):_0x35be7a[_0x3daff2]=_0x2fdf9f,ls=(_0x310c8b,_0x300409,_0x190316,_0x2ffd8c)=>{const _0x2e0037=_0x366146;for(var _0x2982d4=_0x2ffd8c>0x1?void 0x0:_0x2ffd8c?as(_0x300409,_0x190316):_0x300409,_0x10b20d=_0x310c8b[_0x2e0037(0x18d)]-0x1,_0x49cbba;_0x10b20d>=0x0;_0x10b20d--)(_0x49cbba=_0x310c8b[_0x10b20d])&&(_0x2982d4=_0x49cbba(_0x2982d4)||_0x2982d4);return _0x2982d4;},Se=(_0x5681da,_0x23c10d)=>(_0x296bb5,_0x53fe22)=>_0x23c10d(_0x296bb5,_0x53fe22,_0x5681da),_s=(_0x4928f8,_0x369ce9,_0x5ec054)=>cs(_0x4928f8,_0x369ce9+'',_0x5ec054);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x366146(0x265)]=class extends a[_0x366146(0x1dd)]{constructor(_0x342a34=Me,_0x10dd38,_0x5b2113,_0x56a568){const _0x53a8d6=_0x366146;super(),this[_0x53a8d6(0x352)]=_0x342a34,this['_renderManagerService']=_0x10dd38,this[_0x53a8d6(0x354)]=_0x5b2113,this['_configService']=_0x56a568;const {..._0x3202ba}=a[_0x53a8d6(0x1e6)]({},Me,this['_config']);this[_0x53a8d6(0x244)]['setConfig'](Yt,_0x3202ba);}[_0x366146(0x383)](){const _0x11dbd4=_0x366146;this['_registerDependencies'](),this[_0x11dbd4(0x18e)]();}[_0x366146(0x2cb)](){const _0x3c9044=_0x366146;this[_0x3c9044(0x253)]();}['_registerDependencies'](){const _0x5ea07f=_0x366146;var _0x583e91;const _0x3644c3=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x5ea07f(0x26c)],{'useClass':x['WebSocketService']}],[u[_0x5ea07f(0x32d)],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x5ea07f(0x1ad)]]];this[_0x5ea07f(0x352)][_0x5ea07f(0x33f)]&&_0x3644c3[_0x5ea07f(0x192)]([Q]),a[_0x5ea07f(0x2b1)](this['_injector'],a[_0x5ea07f(0x356)](_0x3644c3,(_0x583e91=this['_config'])==null?void 0x0:_0x583e91[_0x5ea07f(0x1d7)]));}['_registerRenderDependencies'](){const _0x2c2957=_0x366146;this[_0x2c2957(0x39d)](this[_0x2c2957(0x3fd)]['registerRenderModule'](a[_0x2c2957(0x315)]['UNIVER_DOC'],[Ee])),this[_0x2c2957(0x39d)](this[_0x2c2957(0x3fd)][_0x2c2957(0x336)](a[_0x2c2957(0x315)][_0x2c2957(0x25b)],[Ce]));}[_0x366146(0x18e)](){const _0x12a6bd=_0x366146;a[_0x12a6bd(0x377)](this[_0x12a6bd(0x354)],[[F],[exports[_0x12a6bd(0x1ee)]],[ie],[Z],[exports[_0x12a6bd(0x1ad)]],[ne]]),this['_config'][_0x12a6bd(0x33f)]&&a[_0x12a6bd(0x377)](this[_0x12a6bd(0x354)],[[Q]]);}},_s(exports[_0x366146(0x265)],_0x366146(0x27a),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x366146(0x1fb)](u[_0x366146(0x291)]),Se(0x1,C['IRenderManagerService']),Se(0x2,a[_0x366146(0x34a)](a[_0x366146(0x364)])),Se(0x3,a[_0x366146(0x199)])],exports['UniverCollaborationClientUIPlugin']);var us=Object['getOwnPropertyDescriptor'],Is=(_0x2a9959,_0x439440,_0x16ca1b,_0x473a43)=>{for(var _0x2b7404=_0x473a43>0x1?void 0x0:_0x473a43?us(_0x439440,_0x16ca1b):_0x439440,_0x38affb=_0x2a9959['length']-0x1,_0x3e2ea6;_0x38affb>=0x0;_0x38affb--)(_0x3e2ea6=_0x2a9959[_0x38affb])&&(_0x2b7404=_0x3e2ea6(_0x2b7404)||_0x2b7404);return _0x2b7404;},W=(_0x3f1197,_0x269161)=>(_0x58be47,_0xf6b2ae)=>_0x269161(_0x58be47,_0xf6b2ae,_0x3f1197);exports['BrowserCollaborationSocketService']=class extends u[_0x366146(0x33b)]{constructor(_0x1f7b63,_0x168222,_0x286836,_0x5ba614,_0x1434e5){super(_0x1f7b63,_0x168222,_0x286836,_0x5ba614,_0x1434e5);}async[_0x366146(0x322)](_0x365aeb){const _0x31e96c=_0x366146,_0x313f38=await this[_0x31e96c(0x369)](),_0x1c7f89=this[_0x31e96c(0x396)](_0x365aeb,_0x313f38);return this[_0x31e96c(0x287)](_0x1c7f89);}[_0x366146(0x396)](_0x3a9ff3,_0x12a455){const _0x44b2c8=_0x366146,_0x35e61c=typeof window>'u'?new URL(_0x3a9ff3):new URL(_0x3a9ff3,window[_0x44b2c8(0x330)]['origin']);_0x35e61c['searchParams'][_0x44b2c8(0x17a)]('sessionTicket',_0x12a455);const _0x3463db=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x44b2c8(0x330)][_0x44b2c8(0x36a)]);return _0x3463db[_0x44b2c8(0x268)](_0x44b2c8(0x242))&&_0x35e61c[_0x44b2c8(0x31d)][_0x44b2c8(0x17a)](_0x44b2c8(0x242),_0x3463db[_0x44b2c8(0x268)]('runId')),_0x35e61c[_0x44b2c8(0x177)]();}async['_getSessionTicket'](){const _0x59f198=_0x366146;var _0x212d64,_0x26c978,_0x5e22e0;const _0x1baac8=this[_0x59f198(0x244)]['getConfig'](u[_0x59f198(0x3c3)]),_0x165e0c=(_0x212d64=_0x1baac8==null?void 0x0:_0x1baac8[_0x59f198(0x21e)])!=null?_0x212d64:u[_0x59f198(0x35c)];return(_0x5e22e0=(_0x26c978=(await this['_httpService'][_0x59f198(0x268)](_0x165e0c,{'headers':{'Content-Type':'application/json'}}))[_0x59f198(0x1b8)])==null?void 0x0:_0x26c978[_0x59f198(0x2d3)])!=null?_0x5e22e0:'';}},exports[_0x366146(0x307)]=Is([W(0x0,a['Inject'](a[_0x366146(0x364)])),W(0x1,a['Inject'](x[_0x366146(0x388)])),W(0x2,a[_0x366146(0x199)]),W(0x3,a[_0x366146(0x2e8)]),W(0x4,g[_0x366146(0x28c)])],exports[_0x366146(0x307)]);var ds=Object['getOwnPropertyDescriptor'],Ss=(_0x43e9a3,_0x3ced81,_0x3a203e,_0x5bc8a9)=>{const _0x107775=_0x366146;for(var _0x526319=_0x5bc8a9>0x1?void 0x0:_0x5bc8a9?ds(_0x3ced81,_0x3a203e):_0x3ced81,_0x24fe97=_0x43e9a3[_0x107775(0x18d)]-0x1,_0x3480bb;_0x24fe97>=0x0;_0x24fe97--)(_0x3480bb=_0x43e9a3[_0x24fe97])&&(_0x526319=_0x3480bb(_0x526319)||_0x526319);return _0x526319;},fe=(_0x1a1f90,_0x4e38cc)=>(_0x3b5dfd,_0x3cabd5)=>_0x4e38cc(_0x3b5dfd,_0x3cabd5,_0x1a1f90);exports[_0x366146(0x404)]=class extends a[_0x366146(0x176)]{constructor(_0x31b5a1,_0x116a00,_0x72e3cc){const _0x4317f5=_0x366146;super(),this[_0x4317f5(0x150)]=_0x31b5a1,this[_0x4317f5(0x2a2)]=_0x116a00,this[_0x4317f5(0x244)]=_0x72e3cc;}async[_0x366146(0x215)](_0x558fb1,_0x4da441,_0x888f6d,..._0x51a9c7){const _0x41e7d6=_0x366146;var _0x471a99,_0xa1a89f,_0x5f5bb7,_0xac9848;const _0x5633bc=this['_instanceService'][_0x41e7d6(0x1f2)]();if(!_0x5633bc)throw new Error(_0x41e7d6(0x23c));const _0x2bfa2b=((_0x471a99=this['_configService'][_0x41e7d6(0x251)](u[_0x41e7d6(0x15b)]))!=null?_0x471a99:u[_0x41e7d6(0x1fa)])+'/'+_0x558fb1+_0x41e7d6(0x25d)+_0x4da441,_0x1ea7bc=new URL(window[_0x41e7d6(0x330)][_0x41e7d6(0x163)]),_0x37c8dc={'scriptId':_0x558fb1,'runId':(_0xa1a89f=_0x1ea7bc[_0x41e7d6(0x31d)]['get'](_0x41e7d6(0x242)))!=null?_0xa1a89f:'','function':_0x4da441,'unitId':_0x5633bc[_0x41e7d6(0x349)](),'argsOfFunction':JSON['stringify'](_0x51a9c7),'invokeId':(_0x5f5bb7=_0x888f6d[_0x41e7d6(0x2f9)])!=null?_0x5f5bb7:'','executionId':(_0xac9848=_0x888f6d[_0x41e7d6(0x149)])!=null?_0xac9848:''};try{const _0x373274=await this['_httpService'][_0x41e7d6(0x1b3)](_0x2bfa2b,{'body':_0x37c8dc});return _0x373274[_0x41e7d6(0x1b8)]['error']&&_0x373274['body'][_0x41e7d6(0x329)][_0x41e7d6(0x21d)]!==G['OK']?_0x41e7d6(0x252):_0x373274['body'][_0x41e7d6(0x321)];}catch{return _0x41e7d6(0x252);}}},exports[_0x366146(0x404)]=Ss([fe(0x0,a[_0x366146(0x375)]),fe(0x1,a[_0x366146(0x34a)](x['HTTPService'])),fe(0x2,a[_0x366146(0x199)])],exports[_0x366146(0x404)]);const we=0x7530,ye=_0x366146(0x230);class fs extends a[_0x366146(0x176)]{constructor(){const _0x280c75=_0x366146;super(),_(this,_0x280c75(0x2a5),a['generateRandomId']()),_(this,'_selfUnitIDs',new Set()),_(this,_0x280c75(0x33c),new Map()),_(this,_0x280c75(0x2f0),null),_(this,_0x280c75(0x159),new Map()),_(this,_0x280c75(0x22f),new Map()),this[_0x280c75(0x3d7)]();}[_0x366146(0x286)](){const _0x45e6de=_0x366146;super[_0x45e6de(0x286)](),this['_clearOtherTimers']['forEach']((_0x229e94,_0x168125)=>this['_removeClearOtherTimer'](_0x168125)),this['_heartbeatTimer']&&window[_0x45e6de(0x2a9)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x367043){const _0x5281e7=_0x366146;return this[_0x5281e7(0x2ee)](_0x367043)[_0x5281e7(0x1c2)](I[_0x5281e7(0x1a8)]());}[_0x366146(0x3f4)](_0x1ce3d3){const _0x9073a4=_0x366146;this['_selfUnitIDs'][_0x9073a4(0x224)]===0x0&&this['_scheduleHeartbeat'](),this[_0x9073a4(0x165)][_0x9073a4(0x2bb)](_0x1ce3d3),this[_0x9073a4(0x255)]({'type':0x0,'memberID':this[_0x9073a4(0x2a5)],'unitIDs':[_0x1ce3d3],'isForwarded':!0x1});}[_0x366146(0x30c)](_0x2b97d8){const _0x4b0544=_0x366146;this[_0x4b0544(0x165)]['delete'](_0x2b97d8),this['_selfUnitIDs'][_0x4b0544(0x224)]===0x0&&this[_0x4b0544(0x2f0)]&&window[_0x4b0544(0x2a9)](this['_heartbeatTimer']);}[_0x366146(0x3d7)](){const _0x34f2b1=_0x366146;this[_0x34f2b1(0x39d)](a[_0x34f2b1(0x30b)](I[_0x34f2b1(0x282)](window,'storage')[_0x34f2b1(0x390)](_0x3fe012=>{const _0x134a9e=_0x34f2b1;if(_0x3fe012[_0x134a9e(0x317)]!==ye||!_0x3fe012[_0x134a9e(0x343)])return;const _0xb56afd=JSON[_0x134a9e(0x2be)](_0x3fe012[_0x134a9e(0x343)]);this['_handleEvent'](_0xb56afd);}))),window[_0x34f2b1(0x15f)](_0x34f2b1(0x408),()=>this[_0x34f2b1(0x255)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x34f2b1(0x165)])}));}[_0x366146(0x3bf)](_0x54b1a9){const _0x5a1544=_0x366146;switch(_0x54b1a9[_0x5a1544(0x35a)]){case 0x0:this[_0x5a1544(0x212)](_0x54b1a9);break;case 0x1:this[_0x5a1544(0x311)](_0x54b1a9);break;case 0x2:this['_handleHeartbeatEvent'](_0x54b1a9);break;}}['_handleJoinEvent'](_0x1f6e7e){const _0x6f7b18=_0x366146,{unitIDs:_0x23f04d,memberID:_0x22fb1f,isForwarded:_0x119444}=_0x1f6e7e;_0x23f04d[_0x6f7b18(0x3eb)](_0x3313f5=>{const _0x445a50=_0x6f7b18;if(!_0x119444&&this[_0x445a50(0x33c)]['has'](_0x3313f5)&&this[_0x445a50(0x2ee)](_0x3313f5)['next'](u[_0x445a50(0x25f)][_0x445a50(0x274)]),!this[_0x445a50(0x33c)][_0x445a50(0x3fe)](_0x3313f5)||!this[_0x445a50(0x33c)][_0x445a50(0x268)](_0x3313f5)[_0x445a50(0x3fe)](_0x22fb1f)){const _0x17139d=this[_0x445a50(0x33c)][_0x445a50(0x268)](_0x3313f5)||new Set();_0x17139d[_0x445a50(0x2bb)](_0x22fb1f),this['_unitOnClients'][_0x445a50(0x17a)](_0x3313f5,_0x17139d),this[_0x445a50(0x19d)](_0x22fb1f);}}),_0x119444||this[_0x6f7b18(0x255)]({'type':0x0,'memberID':this[_0x6f7b18(0x2a5)],'unitIDs':[...this[_0x6f7b18(0x165)]],'isForwarded':!0x0});}[_0x366146(0x19d)](_0x26ab06){const _0x19f843=_0x366146;this[_0x19f843(0x179)](_0x26ab06);const _0x27b74c=window[_0x19f843(0x3f6)](()=>{const _0xc075a0=_0x19f843;this['_unitOnClients'][_0xc075a0(0x3eb)](_0x404b2c=>{const _0x419a5c=_0xc075a0;_0x404b2c[_0x419a5c(0x382)](_0x26ab06);});},we*0x2);this['_clearOtherTimers']['set'](_0x26ab06,_0x27b74c);}[_0x366146(0x179)](_0x55e8e2){const _0x5a7692=_0x366146;if(this[_0x5a7692(0x159)][_0x5a7692(0x3fe)](_0x55e8e2)){const _0x5188b3=this['_clearOtherTimers'][_0x5a7692(0x268)](_0x55e8e2);_0x5188b3&&window[_0x5a7692(0x2f2)](_0x5188b3),this[_0x5a7692(0x159)][_0x5a7692(0x17a)](_0x55e8e2,null);}}[_0x366146(0x311)](_0x140a57){const _0x36f29e=_0x366146,{memberID:_0xda7c04,unitIDs:_0x2270f8}=_0x140a57;_0x2270f8[_0x36f29e(0x3eb)](_0x80cc26=>{const _0x4f7afc=_0x36f29e;var _0x5dd25c;const _0x59dac7=this['_unitOnClients']['get'](_0x80cc26);_0x59dac7&&(_0x59dac7[_0x4f7afc(0x382)](_0xda7c04),(_0x5dd25c=this[_0x4f7afc(0x2ee)](_0x80cc26))==null||_0x5dd25c[_0x4f7afc(0x161)](_0x59dac7[_0x4f7afc(0x224)]===0x0?u['UnitStatus'][_0x4f7afc(0x2d9)]:u[_0x4f7afc(0x25f)][_0x4f7afc(0x274)]));}),this['_removeClearOtherTimer'](_0xda7c04);}[_0x366146(0x308)](_0x13ab7e){const _0x4200f4=_0x366146;this[_0x4200f4(0x19d)](_0x13ab7e[_0x4200f4(0x200)]);}[_0x366146(0x255)](_0x2c1773){const _0x6a4a0b=_0x366146;localStorage[_0x6a4a0b(0x405)](ye,JSON[_0x6a4a0b(0x1b9)](_0x2c1773));}[_0x366146(0x272)](){const _0x2ef9cc=_0x366146;this[_0x2ef9cc(0x2f0)]=window['setInterval'](()=>{const _0x181ad1=_0x2ef9cc;this[_0x181ad1(0x255)]({'type':0x2,'memberID':this['_id']});},we);}[_0x366146(0x2ee)](_0x3d8a0f){const _0x43a980=_0x366146;return this[_0x43a980(0x22f)][_0x43a980(0x3fe)](_0x3d8a0f)||this[_0x43a980(0x22f)][_0x43a980(0x17a)](_0x3d8a0f,new I[(_0x43a980(0x3a8))](u[_0x43a980(0x25f)][_0x43a980(0x2d9)])),this['_unitStatus']['get'](_0x3d8a0f);}}function _0x51ff(){const _0x567c29=['min','_dataLoaderService','_docStateChangeManagerService','docStateChange$','NO_OTHER_CLIENTS_EDITING','shift','isFormulaString','getUnit','setAlpha','SNAPSHOT_INVALID_SNAPSHOT','handleIRemoveRow','idSuffix','activeSheet$','handleInsertRangeMoveDown','...','_startCalculationLimit','_uiPartsService','redoState','_anchor','ILogService','data','registerRefRange','_monkeyPatchLogService','REDEMPTION_CODE_NOT_STARTED','UNRECOGNIZED','_ensureSubject','_collaborationSessionService','_heartbeatTimer','_cursor','clearTimeout','closePath','REDEMPTION_USER_NOT_ELIGIBLE','isActive','show','transformMutationsWithChangeset','_hovered','invokeId','status$','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','FormulaExecutedStateType','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_univerInstanceService','replace','transform','SetTextSelectionsOperation','onPointerLeave$','div','_saveCache','_transformUndoRedoStack','currentUsage','BrowserCollaborationSocketService','_handleHeartbeatEvent','black','CHANGESET_REVISION_CONFILICT','toDisposable','disposeUnit','startRow','transformStateCache','ENTITLE_CAN_NOT_BUY_LOWER_OTP','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_handleLeaveEvent','roomMembers','PAYMENT_CHANNEL_NOT_SUPPORT','row','UniverInstanceType','_handleHover','key','TEXT_RANGE_LAYER_INDEX','collabStatus.offline','CollaborationSessionService','measureText','loadUnit','searchParams','APPLY_REJECT','_docTransformStateCacheService','colno','result','createSocket','url(#off-line-icon_clip0_910_343)','formula.calculation.waiting','UniverIcon','MessageType','text','complete','error','_docSyncEditingCollabCursorService','hide','RemoveColCommandId','ILocalCacheService','svg','mutations','location','displayName','range','Rectangle','asObservable','stageInfo','registerRenderModule','getformulaLimitStatusUrl','_colorIndex','isTransformMutationFailure','sheetId','CollaborationSocketService','_unitOnClients','_setFormulaLimitStatus','295985MlxUls','enableFrontendLog','m2Prime','getDocRanges','translate(.97)','newValue','forwardRef','_revisionService','debug','clsx','_initWindowErrorListener','getUnitId','Inject','CONFLICT','_toggleOffline','0\x200\x2017\x2016','568XEJWKL','DocSkeletonManagerService','registerBeforeClose','on-line-icon_clip0_910_349','_config','LOGIN_FAILED','_injector','red.300','mergeOverrideWithDependencies','entries','ENTITLE_CHAT_LIMIT_EXCEED','EMAIL_VERIFY_CODE_MISMATCH','type','serializeRangeWithSheet','DEFAULT_WS_SESSION_TICKET_URL','params','SHEET_VIEWPORT_KEY','/universer-api/license/formula/limit/done','_initCommandExecutedListener','off-line-icon','Warning','deepClone','Injector','_textBubble','colorChannel1','_initUserListener','createIdentifier','_getSessionTicket','search','round','pushState','_render','[LogService\x20Error]:\x20','string','_hideTimer','getItem','INVALID_ARGUMENT','_entities','getAncestorScale','IUniverInstanceService','xlink:href','touchDependencies','ENSURE_SNAPSHOT_EXECUTION','INVITE_CODE_HAS_BEEN_UES','_drawTextRange','none','undoState','replaceState','Loading','_removeCollabCursors','CollaborationStatus','1em','delete','onStarting','YUUMI_AI_RUN_FAILED','MUTATION','EffectRefRangId','_context','HTTPService','socket$','maxFormulaLimit','ENTITLE_REPORT_LIMIT_EXCEED','permission.content','DocSelectionManagerService','VIEW_MAIN','beginPath','subscribe','MemberService','DOC_RANGE_TYPE','enableLocalCache','LICENSE_EXPORT_SIZE_EXCEEDED','removeEventListener','_createSocketURL','_shapes','bottom','getColor','APPLY_PERMISSION_DENIED','_maxFormulaLimit','getLocalCacheKey','disposeWithMe','_name','_scheduleSaving','imageSourceType','width','_notificationService','height','IMessageService','BuiltInUIPart','font','white','BehaviorSubject','collab-client.tooltip.reconnect','getUndoRedoMutationParamsCache','now','transformIMECache','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','OnLineIcon','url(#$1','_scene','_clearPolling','/universer-api/license/formula/limit/start','http://www.w3.org/2000/svg','1064049HtqSqt','setUndoRedoMutationParamsCache','path','_initUnhandledRejectionListener','NOT_FOUND','current','SOCKET_FAILED','APPLY_NON_SEQUENTIAL_REVISION','_uploadLog','drawWith','_cursors','_handleEvent','ERROR_AGAIN','blue.400','onPointerMove$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','uni.network.url-service','then','save','_range','evenodd','useDependency','assignAColorForMemberID','combineLatest','\x20at\x20','_updateSubUnitFromURLParams','#FFF','OFFLINE','4377arzwDO','fillText','reason','onLocalMutation','CLOSE_ROOM','OTHER_CLIENT_EDITING','_pollingInterval','_init','_getAnchorBounding','transformRemoteChangeset','_currentUsage','getMember','LOCAL_CACHE_INTERVAL_KEY','_imageIoService','_lastPointer','_saveTaskMap','unsubscribe','SetFormulaCalculationStartMutation','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','all','isEditing','purple.300','_showGuardMessage','onCommandExecuted','IUIPartsService','map','collaboration.closeRoom','forEach','_setupBeforeClosingHandler','_transformHistoryAndStateStack','getOwnPropertyDescriptor','onTransformChange$','Unknown\x20user','Optional','findNodePositionByCharIndex','createInstance','editingUnit','handleDeleteRangeMoveUp','setTimeout','FormulaExecuteStageType','_labelPosition','TOO_MANY_REQUESTS','UNDEFINED','collab-text-anchor-','getActiveRange','_renderManagerService','has','_docSkeletonManagerService','WebBrowserSingleActiveUnitService','_onCursorUpdate','registerComponent','_initCommandInterceptor','RemoteUniscriptService','setItem','getStateCache','getRangePointData','unload','RegularPolygon','getActiveSheet','4596830MHEhQD','runRefRangeMutations','_collabCursorState$','executionId','getOffsetConfig','PENDING','_onCursorDelete','MOBILE_HAS_BEEN_BOUND','url(#on-line-icon_clip0_910_349)','onMouseMove','_instanceService','_startDocCollabCursor','SOCKET_FAILED_RETRY','selections','FETCH_MISS','doc.mutation.rich-text-editing','collabStatus.fetchMiss','requireSession','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_clearOtherTimers','transformSelections','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','/universer-api/license/formula/limit/status','isArray','children','addEventListener','IDocClipboardService','next','InsertColCommandId','href','_initStatusListener','_selfUnitIDs','_setupSubUnitSync','fill','history','permission.title','LICENSE_DISTRO_REJECTED','getRelativeToViewportCoord','onPointerEnter$','split','makeDirty','_commandService','getSkeleton','ENTITLE_NEED_BILLING_ADDRESS','handleInsertRow','_applyCommand','YUUMI_RATE_OVER_LIMIT','EMAIL_HAS_BEEN_BOUND','Disposable','toString','M0\x200H16V16H0z','_removeClearOtherTimer','set','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','REDEMPTION_CODE_FULLY_REDEEMED','debounceTime','parseInt','_transformPreviousActiveRange','createElement','CanceledError','defs','COMPLETION_FINISHED','moveTo','_assignedColors','unit','CURRENT_STATUS_CANNOT_OPERATE','[CollaborationDataLoaderController]','saveTaskMap','currentColor','YUUMI_ASYNCIO_CANCELLED','event$','length','_initDependencies','throttleTime','SNAPSHOT_HAS_BEEN_REMOVED','cursorInfo','push','ENTITLE_DUP_SUBSCRIPTION','YUUMI_UNABLE_LOAD_URL','UPDATE_CURSOR','RevisionService','_hover','_syncEditingCollabCursorService','IConfigService','InsertRowCommandId','RECT','dirtyRanges','_scheduleClearOtherTimer','_docTransformSelectionsService','MOBILE_VERIFY_CODE_MISMATCH','dispose$','backgroundColor','color','getSheetId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','YUUMI_ALL_TABLES_IS_INVALID','SheetsSelectionsService','stack','distinctUntilChanged','INVALID_INVITE_CODE','24KXFvkf','INTERNAL_ERROR','releaseFormulaLimitUrl','CollaborationDataLoaderController','_color','_docTransformIMECacheService','USER_NOT_INVITED_CODE','_urlService','_online','post','DocStateChangeManagerService','sheetID','TEXT','getVpScrollXYInfoByPosToVp','body','stringify','DATA_SOURCE_TOO_LARGE','142173WSnNVH','DataLoaderService','Rect','executeCommand','getValue','currentTheme$','skeleton','pipe','syncEditingCollabCursor','SessionStatus','unitID','_startSheetCollabCursor','getCurrentRevOfUnit','YUUMI_SUBSCRIPTION_NOT_FOUND','_draw','collaboration-client-ui.config','UNAUTHENTICATED','_lastResponseTimestamp','Success','random','values','roomMembers$','trim','YUUMI_NO_CUBOID_FOR_QUESTION','_colorAssignService','getParam','Tools','INVITE_CODE_REQUIRED','override','functionsExecutedState','ranges','IRenderManagerService','/universer-api/frontend/logs','exhaustSavingTask','Plugin','ITransformService','subunit','PERMISSION_DENIED','Subject','_roomMembers$','Error','collabCursorState$','_backgroundColor','merge','_collaborationUIEventService','_transformService','top','cursorInfo$','with','USER_NOT_FOUND','_localCacheService','DesktopCollaborationStatusDisplayController','_entityInit$','1462HMvcoe','PY_RUNTIME_SCRIPT_ERROR','getFocusedUnit','_hasFormulaInDirtyRanges','APPLY_DUPLICATED','INVITE_CODE_ALREADY_BOUND','session.will-retry','_docClipboardService','ThemeService','getSheetObject','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DependentOn','_collabCursorController','switchMap','Tooltip','LICENSE_IMPORT_SIZE_EXCEEDED','memberID','addObject','yellow.400','updateOfflineData','_logService','assign','transformMutation','Module','COLORS','isFormulaId','message','_cursorInfo$','YUUMI_CONNECTOR_URL_NOT_FOUND','setParam','startsWith','?taskId=','REDEMPTION_INVALID_CODE','getMergeData','_handleJoinEvent','jsx','find','runOnServer','getRenderById','some','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','START_CALCULATION','urlChange$','useCallback','lineTo','code','wsSessionTicketUrl','selection','flatMap','filter','HEADER_MENU','addHandlerCallback','size','takeUntil','setShapeProps','subscribeEvent','SetWorksheetActivateCommand','AUTHORIZE_CODE_ILLEGAL','mask','ENTITLE_INSUFFICIENT_QUOTA','11360770girWxd','11tGBHnY','_memberService','_unitStatus','ACTIVE_UNIT_EVENT_CHANNEL','limitInfo','unitId','SYNCED','hovered','[Unhandled\x20Rejection]:\x20','toRgbString','ONLINE','CollaborationEvent','getSheetBySheetId','_beforeCloseService','_getMergeRange','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_eventUnsubscribe','_updateLocalCursor','RemoveRowCommandId','_collaborationController','beforeCommandExecuted','runId','getCurrentSelections','_configService','fillStyle','eventID','Vector2','_updateURLWithCurrentState','_memberID','LICENSE_MAX_UNITS_EXCEEDED','textRanges','_checkAndWaitForCalculationPermission','_messageService','defineProperty','actions','_anchorDot','getConfig','Failed','_registerRenderDependencies','APPLY_REVISION_CONFILICT','_send','_taskIds','_cursorShapes','addClipboardHook','toStringTag','RxDisposable','UNIVER_SHEET','_localStorageService','/run/','ColorKit','UnitStatus','FromArray','attrs','max','deserializeRangeWithSheet','AWAITING','UniverCollaborationClientUIPlugin','unshift','LocaleService','get','_sheetSkeletonManagerService','getMemberID','USERS_LEAVE','ISocketService','entityInit$','MoveRangeCommandId','DeleteRangeMoveUpCommandId','IBeforeCloseService','_releaseCalculationLimit','_scheduleHeartbeat','DisposableCollection','OTHER_CLIENTS_EDITING','clipPath','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','LOGIN_TOKEN_PROCESSING_FAILED','debounce','collaboration-client.offline-data-not-saved','pluginName','_disabled','triggerDblclick','INotificationService','collabStatus.notCollab','USER_IS_ANONYMOUS','ALREADY_EXISTS','fromEventSubject','fromEvent','isTransformMutationsWithChangesetSuccess','_updateCollabCursors','_initResize','dispose','_doCreateSocket','subUnitId','formula.calculation.started','_document','m1Prime','ISnapshotServerService','CollaborationUIEventId','_initStatusComponent','generateRandomId','loadOfflineData','UniverCollaborationClientPlugin','init','collabStatus.conflict','WebURLService','join','DeleteRangeMoveLeftCommandId','_initEvent','_collabSessionService','NodePositionConvertToRectRange','_themeService','CONNECTOR_DATA_TOO_LARGE','REDEMPTION_USER_REDEEM_TIMES_EXCEED','Shape','collab-text-range-','SheetCollabCursorShape','name','REDEMPTION_CODE_INACTIVE','_httpService','lineno','send','_id','includes','saveImage','WECHAT_HAS_BEEN_BOUND','clearInterval','off-line-icon_clip0_910_343','disableLocalCache','_localeService','NOT_COLLAB','arc','getCollabCursors$','useRef','registerDependencies','from','1916304cncRNx','endRow','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','restore','collaboration.single-unit.warning','YUUMI_URL_COL_OUT_OF_RANGE','_getSheetObject','_refreshCollabCursors','add','getCollabEntity$','removeParam','parse','Workbook','_checkCalculationAvailable','_refRangeService','[Window\x20Error]:\x20','_toggleOnline','DocIMEInputManagerService','_cachedData','getTypeOfUnitDisposed$','endColumn','tag','REDEMPTION_CODE_HAS_BEEN_CREATED','_drawRectRange','onRendered','unhandledrejection','JOIN_ROOM_FAILED','handleInsertCol','_session','mapTo','getColorFromTheme','formula.calculation.unable','ticket','ICommandService'];_0x51ff=function(){return _0x567c29;};return _0x51ff();}exports['IURLService']=Oe,exports[_0x366146(0x29f)]=je,exports[_0x366146(0x400)]=fs,exports[_0x366146(0x294)]=ke;
|