@univerjs-pro/collaboration-client-ui 0.12.3-nightly.202512060617 → 0.12.4
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/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x452e49=_0xbe1d;(function(_0x1d8c23,_0x43a744){const _0x4410cb=_0xbe1d,_0x113ed6=_0x1d8c23();while(!![]){try{const _0x3f640=parseInt(_0x4410cb(0x2b7))/0x1+-parseInt(_0x4410cb(0x358))/0x2*(-parseInt(_0x4410cb(0x201))/0x3)+parseInt(_0x4410cb(0x318))/0x4+parseInt(_0x4410cb(0x2b5))/0x5*(-parseInt(_0x4410cb(0x25c))/0x6)+parseInt(_0x4410cb(0x283))/0x7+-parseInt(_0x4410cb(0x2db))/0x8*(parseInt(_0x4410cb(0x348))/0x9)+parseInt(_0x4410cb(0x293))/0xa*(-parseInt(_0x4410cb(0x3a6))/0xb);if(_0x3f640===_0x43a744)break;else _0x113ed6['push'](_0x113ed6['shift']());}catch(_0x23e760){_0x113ed6['push'](_0x113ed6['shift']());}}}(_0x3171,0xc6e65));var Yt=Object[_0x452e49(0x29d)],Wt=(_0x914089,_0x29acf9,_0x3cdb60)=>_0x29acf9 in _0x914089?Yt(_0x914089,_0x29acf9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cdb60}):_0x914089[_0x29acf9]=_0x3cdb60,_=(_0x287750,_0x3acddf,_0x1433e4)=>Wt(_0x287750,typeof _0x3acddf!=_0x452e49(0x305)?_0x3acddf+'':_0x3acddf,_0x1433e4);import{jsx as _0x275baa,jsxs as _0x2f0c46}from'react/jsx-runtime';import{CollaborationStatus as _0x284653,CollaborationSessionService as _0x513f8f,CollaborationController as _0x4b43c5,DataLoaderService as _0x1b001e,MemberService as _0xa2f310,SessionStatus as _0x5066f2,ILocalCacheService as _0x5978b0,CollaborationUIEventService as _0x10ca03,CollaborationUIEventId as _0x11870e,DocCollaborationEntity as _0xda5800,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4d5ca3,getLocalCacheKey as _0x11632d,LOCAL_CACHE_INTERVAL as _0x2941fb,LOCAL_CACHE_INTERVAL_KEY as _0x38b2d0,UniverCollaborationClientPlugin as _0x377bdf,CollaborationSocketService as _0x31a2cb,DEFAULT_WS_SESSION_TICKET_URL as _0x36e188,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x163421,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x49e2a9,UnitStatus as _0x302454}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xdfe5e8,IUniverInstanceService as _0x3fb31a,Inject as _0x19da77,Injector as _0x3caca9,Disposable as _0x2aa59a,createIdentifier as _0x2ea9a6,ILogService as _0x41d2f2,ICommandService as _0x579301,Optional as _0x505609,RxDisposable as _0xfe4864,Workbook as _0x20198c,DOC_RANGE_TYPE as _0x1af5a0,debounce as _0x25a216,Rectangle as _0x504e5a,DisposableCollection as _0xf883e1,toDisposable as _0x5dd047,UniverInstanceType as _0x13bfc1,generateRandomId as _0x197090,COLORS as _0x2b0563,ColorKit as _0x3f764d,ThemeService as _0x171670,fromEventSubject as _0x31461e,Tools as _0x46aa2d,CommandType as _0xab6308,IConfigService as _0x4d5d92,CanceledError as _0x151bd0,isFormulaString as _0x37d7d6,isFormulaId as _0x4552ab,ILocalStorageService as _0x4a747f,DependentOn as _0x3e5380,Plugin as _0x51e820,merge as _0x3aaad0,registerDependencies as _0x2a74ba,mergeOverrideWithDependencies as _0x20d143,touchDependencies as _0x93725c}from'@univerjs/core';import{useObservable as _0xece1a0,useDependency as _0x307726,IUIPartsService as _0x48a521,BuiltInUIPart as _0x2d485e,connectInjector as _0x24d5a5,IBeforeCloseService as _0x2480ed,IMessageService as _0x53a10f,INotificationService as _0x3dc479}from'@univerjs/ui';import{BehaviorSubject as _0x26e754,switchMap as _0x1bb635,of as _0x47af60,takeUntil as _0x5ec416,debounceTime as _0x595669,Subject as _0x5c34f4,filter as _0x1336e6,merge as _0x391ca4,combineLatest as _0x4b6a55,fromEvent as _0x16982b,shareReplay as _0x40e544,mapTo as _0x120921,distinctUntilChanged as _0x231db8}from'rxjs';import{Tooltip as _0x234803,clsx as _0x5c80d1,MessageType as _0x178881}from'@univerjs/design';import{useRef as _0x10c2d7,createElement as _0x1a8472,forwardRef as _0x50e674,useCallback as _0x447bea}from'react';import{IRemoteInstanceService as _0x54e65c}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x56446a,RefRangeService as _0x335061,SetSelectionsOperation as _0x4ad255,SheetsSelectionsService as _0x229580,EffectRefRangId as _0x40ea40,handleIRemoveRow as _0x476edd,handleIRemoveCol as _0xdd0c2c,handleMoveRange as _0x299f98,handleInsertRow as _0x3626f4,handleInsertRangeMoveRight as _0x373242,handleInsertRangeMoveDown as _0x4e7872,handleInsertCol as _0xbbe9db,handleDeleteRangeMoveUp as _0x2e9859,handleDeleteRangeMoveLeft as _0x48c175,runRefRangeMutations as _0x20145f}from'@univerjs/sheets';import{Shape as _0x41defb,Rect as _0x140506,getColor as _0x303ebd,RegularPolygon as _0x599cb4,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4b5d19,Vector2 as _0x15106f,SHEET_VIEWPORT_KEY as _0x16eb17,IRenderManagerService as _0x5d2559}from'@univerjs/engine-render';import{HTTPService as _0x51f60c,ISocketService as _0x29fd23,WebSocketService as _0x1c86d8}from'@univerjs/network';function _0x3171(){const _0x195f68=['CURRENT_STATUS_CANNOT_OPERATE','params','START_CALCULATION','getViewport','setTimeout','REDEMPTION_CODE_HAS_BEEN_CREATED','stageInfo','setItem','next','unsubscribe','_initStatusComponent','TOO_MANY_REQUESTS','range','_textBubble','hide','getCollabEntity$','getCurrentSelections','4735540drzHrY','getMemberID','stringify','OFFLINE','code','PAYMENT_CHANNEL_NOT_SUPPORT','length','_cachedData','_drawRectRange','div','_collaborationSessionService','addClipboardHook','stack','wsSessionTicketUrl','endRow','_status$','_initEvent','dirtyRanges','collab-text-range-','off-line-icon_clip0_910_343','_docTransformStateCacheService','_collaborationController','parseInt','_entities','_refreshCollabCursors','getActiveSheet','_initCommandInterceptor','Success','removeEventListener','NOT_COLLAB','delete','getOwnPropertyDescriptor','getParam','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_handleHover','_revisionService','collab-rect-range-','_hover','enableLocalCache','_sheetSkeletonManagerService','transformStateCache','type','addHandlerCallback','_doCreateSocket','split','forEach','_lastResponseTimestamp','whenReady','839880PGwqfh','doc.mutation.rich-text-editing','ENTITLE_DUP_SUBSCRIPTION','onPointerMove$','executeCommand','REDEMPTION_INVALID_CODE','jiqing.500','YUUMI_NO_CUBOID_FOR_QUESTION','_colorAssignService','memberID','getConfig','DATA_SOURCE_TOO_LARGE','random','InsertRowCommandId','_notificationService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','84662DPhqRh','searchParams','newValue','_saveCache','InsertRangeMoveDownCommandId','_anchorDot','_initDependencies','_unitOnClients','assignAColorForMemberID','_removeCollabCursors','collabStatus.fetchMiss','_shapes','_themeService','ONLINE','0\x200\x2016\x2016','YUUMI_ALL_TABLES_IS_INVALID','_getScale','toString','_initStatusListener','getColorFromTheme','lineTo','purple.300','UNRECOGNIZED','ranges','_initWindowErrorListener','executionId','runId','collaboration.offline-data-not-saved','_localStorageService','replaceDocRanges','_removeClearOtherTimer','addObject','CLOSE_ROOM','REDEMPTION_CODE_INACTIVE','_initEntityListener','SOCKET_FAILED_RETRY','REDEMPTION_CODE_NOT_STARTED','clipPath','_name','invokeId','_assignedColors','UPDATE_CURSOR','YUUMI_URL_COL_OUT_OF_RANGE','save','_initResize','_online','m1Prime','PERMISSION_DENIED','USERS_LEAVE','on-line-icon_clip0_910_349','TEXT','getRangePointData','deepClone','_scheduleSaving','_instanceService','functionsExecutedState','loadUnit','PY_RUNTIME_SCRIPT_ERROR','pipe','assign','INVITE_CODE_REQUIRED','use','addEventListener','_handleJoinEvent','YUUMI_AI_RUN_FAILED','idSuffix','CONFLICT','http://www.w3.org/2000/svg','SNAPSHOT_INVALID_SNAPSHOT','collab-text-anchor-','_onCursorUpdate','_send','OTHER_CLIENT_EDITING','LICENSE_DISTRO_REJECTED','text','rgba(255,\x20255,\x20255,\x200.01)','reconnect','onCommandExecuted','1708597NIFzNE','USER_IS_ANONYMOUS','createSocket','_docClipboardService','then','trim','data','_setupBeforeClosingHandler','setShapeProps','_transformPreviousActiveRange','init','eventID','Error','evenodd','redoState','_selfUnitIDs','exhaustSavingTask','push','resize','_injector','transformMutationsWithChangeset','_color','APPLY_PERMISSION_DENIED','_heartbeatTimer','0\x200\x2017\x2016','EMAIL_VERIFY_CODE_MISMATCH','_context','_draw','top','_getMergeRange','row','session.will-retry','_backgroundColor','color','_cursors','_ensureSubject','ENTITLE_REPORT_LIMIT_EXCEED','_toggleOffline','_onRefRangeChange','_getSaveTimeout','_init','getActiveRange','yellow.400','/universer-api/frontend/logs','_logService','InsertRangeMoveRightCommandId','min','string','_updateURLWithCurrentState','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_docTransformSelectionsService','ENTITLE_CHAT_LIMIT_EXCEED','find','get','_id','AWAITING','FETCH_MISS','ENTITLE_INSUFFICIENT_QUOTA','_handleHeartbeatEvent','_handleLeaveEvent','setAlpha','_updateSubUnitFromURLParams','WECHAT_HAS_BEEN_BOUND','result','size','_transformUndoRedoStack','[CollaborationDataLoaderController]','ENTITLE_INVALID_COUPON_CODE','closePath','INVALID_ARGUMENT','UNIVER_SHEET','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','collabStatus.offline','transformMutation','entries','_saveTaskMap','CHANGESET_REVISION_CONFILICT','formula.calculation.started','onStarting','white','onMouseMove','Warning','roomMembers','cursorInfo','values','currentUsage','_imageIoService','_urlService','APPLY_NON_SEQUENTIAL_REVISION','textRanges','collabStatus.notCollab','_onCursorDelete','currentTheme$','INTERNAL_ERROR','OnLineIcon','_eventUnsubscribe','enableFrontendLog','displayName','APPLY_REVISION_CONFILICT','_syncEditingCollabCursorService','YUUMI_UNABLE_LOAD_URL','sessionStatus$','_dataLoaderService','Unknown\x20user','findNodePositionByCharIndex','M0\x200H16V16H0z','unload','m2Prime','_docTransformIMECacheService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','registerRenderModule','getItem','_collabCursorState$','_lastPointer','SNAPSHOT_HAS_BEEN_REMOVED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_localeService','backgroundColor','_showGuardMessage','_getFormulaLimitStatus','onTransformChange$','NO_OTHER_CLIENTS_EDITING','LICENSE_EXPORT_SIZE_EXCEEDED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','debug','unitId','transformRemoteChangeset','_refRangeService','addObjects','on-line-icon','onPointerEnter$','_roomMembers$','disposeWithMe','ENSURE_SNAPSHOT_EXECUTION','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','subunit','sessionTicket','_monkeyPatchLogService','COMPLETION_FINISHED','[Window\x20Error]:\x20','updateOfflineData','CONNECTOR_DATA_TOO_LARGE','_checkCalculationAvailable','width','_getAnchorBounding','clearTimeout','42uQCmFE','add','origin','Failed','_renderManagerService','ENTITLE_NEED_BILLING_ADDRESS','YUUMI_CONNECTOR_URL_NOT_FOUND','MoveRangeCommandId','toRgbString','USER_NOT_FOUND','editingUnit','removeParam','max','all','ENTITLE_COUPON_EXPIRED','_registerRenderDependencies','setParam','_updateCollabCursors','getMember','override','_toggleOnline','_memberID','application/json','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','fill','_memberService','_clearPolling','has','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_pollingInterval','YUUMI_RATE_OVER_LIMIT','getFocusedUnit','REDEMPTION_USER_REDEEM_TIMES_EXCEED','bottom','collabCursorState$','path','colorChannel1','[Unhandled\x20Rejection]:\x20','OTHER_CLIENTS_EDITING','getUnitStatus$','UniverIcon','transformSelections','arc','_cursor','black','url(#$1','UNAUTHENTICATED','href','reason','mask','height','_currentUsage','font','getDocRanges','_updateLocalCursor','VIEW_MAIN','APPLY_DUPLICATED','_labelPosition','_cursorShapes','measureText','_beforeCloseService','post','_univerInstanceService','filename','UNDEFINED','getTypeOfUnitAdded$','Loading','transformIMECache','registerBeforeClose','AWAITING_WITH_PENDING','url(#on-line-icon_clip0_910_349)','_transformService','getSheetBySheetId','search','RemoveRowCommandId','_configService','_registerDependencies','children','skeleton','univerjs-icon\x20univerjs-icon-','subscribe','collaboration.closeRoom','_disabled','show','_scheduleClearOtherTimer','NOT_FOUND','getUndoRedoMutationParamsCache','error','_initUnhandledRejectionListener','_initUserListener','map','474PQreNb','_getSheetObject','selection','_docStateChangeManagerService','urlChange$','collabStatus.synced','name','maxFormulaLimit','_render','key','_colorIndex','history','_messageService','some','_cursorInfo$','location','setActiveRange','startRow','set','defs','_entityInit$','getRelativeToViewportCoord','_scene','setStateCache','tag','clearInterval','complete','INVALID_INVITE_CODE','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','permission.title','session.collaboration-timeout','currentSkeleton$','LICENSE_IMPORT_SIZE_EXCEEDED','attrs','_document','_setFormulaLimitStatus','_hasFormulaInDirtyRanges','INVITE_CODE_HAS_BEEN_UES','onPointerLeave$','3559556BIxjuS','unhandledrejection','YUUMI_SUBSCRIPTION_NOT_FOUND','red.300','startColumn','_maxFormulaLimit','svg','focused$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getUnitId','_collabSessionService','YUUMI_ASYNCIO_CANCELLED','_drawTextRange','now','body','SUCCESS','10WTyLXv','getValue','currentColor','sheetID','_checkAndWaitForCalculationPermission','...','_commandService','getRenderById','sheetId','fillStyle','defineProperty','round','with','limitInfo','APPLY_REJECT','_startSheetCollabCursor','_docSkeletonManagerService','createInstance','send','RemoveColCommandId','UNIVER_DOC','_collabCursorController','asObservable','_uiPartsService','_config','restore','subscribeEvent','releaseFormulaLimitUrl','actions','_httpService','_taskIds','getCollabCursors$','FromArray','getMergeData','3725OjTjAW','collabStatus.conflict','50328TETZIp','translate(.97)','_hovered','requireSession','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ERROR_AGAIN','_initCommandExecutedListener','_anchor','dispose','SYNCED','unit','catch','_applyCommand','LICENSE_MAX_UNITS_EXCEEDED','[LogService\x20Error]:\x20','_session','OffLineIcon','fillRule','getTypeOfUnitDisposed$','_range','_hideTimer','getCurrent','getCellPositionByOffset','registerRefRange','drawWith','MOBILE_VERIFY_CODE_MISMATCH','join','event$','includes','from','pushState','disableLocalCache','roomMembers$','getAncestorScale','pluginName','REDEMPTION_CODE_FULLY_REDEEMED','112sVeJJS','LOGIN_TOKEN_PROCESSING_FAILED','_clearOtherTimers','_getSessionTicket','xlink:href','saveTaskMap','saveImage','_handleEvent','USER_NOT_INVITED_CODE','_uploadLog','session.connection-failed','1em','_startCalculationLimit','INVITE_CODE_ALREADY_BOUND','getSheetId','endColumn','_collaborationUIEventService','undoState','column','_transformHistoryAndStateStack','dispose$','ALREADY_EXISTS','selections','bind','cursorInfo$','_docSyncEditingCollabCursorService','mutations','_unitStatus','_scheduleHeartbeat','replaceState','permission.content','unshift','_setupSubUnitSync','AUTHORIZE_CODE_ILLEGAL','isActive','unitID','getUnhiddenWorksheets','getStateCache','ENTITLE_COUPON_USED_UP','PENDING','RECT','replace','symbol','source'];_0x3171=function(){return _0x195f68;};return _0x3171();}import{IDocClipboardService as _0x1e49e8,NodePositionConvertToCursor as _0x3bd387,NodePositionConvertToRectRange as _0x2455ca,TEXT_RANGE_LAYER_INDEX as _0x1f06a1,SetDocZoomRatioOperation as _0x11a322,DocIMEInputManagerService as _0x2f7fdc,DocStateChangeManagerService as _0x376d5d}from'@univerjs/docs-ui';import{IImageIoService as _0x438a84}from'@univerjs/drawing';import{ITransformService as _0x514b1e,CollaborationEvent as _0x3bccf0,isTransformMutationFailure as _0x2e9ee5,isTransformMutationsWithChangesetSuccess as _0x195c6c,RevisionService as _0x42e769,ISnapshotServerService as _0xbe9030}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x59a9f9,RichTextEditingMutation as _0x1e2914,DocSelectionManagerService as _0x4bdd23,DocSkeletonManagerService as _0xdbae20}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x147ab3,serializeRangeWithSheet as _0x7b9ab3,FormulaExecuteStageType as _0x2ebd27,FormulaExecutedStateType as _0x536ec4,SetFormulaCalculationStartMutation as _0x41e501,SetFormulaCalculationNotificationMutation as _0x55edba}from'@univerjs/engine-formula';import{map as _0x31dc22,filter as _0xa59cca,throttleTime as _0x4157de,takeUntil as _0x2cd925,switchMap as _0x95c4a7}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2fe7e2,getCoordByCell as _0x3626be,getSheetObject as _0x2caad8}from'@univerjs/sheets-ui';function Ge({ref:_0x5a6d69,..._0x38bda9}){const _0x2fd478=_0x452e49,{icon:_0x2311a7,id:_0x55c5dd,className:_0x4df3f8,extend:_0x42236a,..._0x1238c9}=_0x38bda9,_0x4512c1=(_0x2fd478(0x250)+_0x55c5dd+'\x20'+(_0x4df3f8||''))[_0x2fd478(0x3ab)](),_0x12b2d3=_0x10c2d7('_'+vi());return At(_0x2311a7,''+_0x55c5dd,{'defIds':_0x2311a7['defIds'],'idSuffix':_0x12b2d3['current']},{'ref':_0x5a6d69,'className':_0x4512c1,..._0x1238c9},_0x42236a);}function At(_0x211cc8,_0x48b4e7,_0x3c71ce,_0x1282eb,_0x1f0b3c){const _0x3790ab=_0x452e49;return _0x1a8472(_0x211cc8[_0x3790ab(0x274)],{'key':_0x48b4e7,...gi(_0x211cc8,_0x3c71ce,_0x1f0b3c),..._0x1282eb},(Ei(_0x211cc8,_0x3c71ce)[_0x3790ab(0x24e)]||[])[_0x3790ab(0x25b)]((_0x1aa95a,_0x52b017)=>At(_0x1aa95a,_0x48b4e7+'-'+_0x211cc8[_0x3790ab(0x274)]+'-'+_0x52b017,_0x3c71ce,void 0x0,_0x1f0b3c)));}function gi(_0xb1c11e,_0x12c538,_0x5ca591){const _0x13e6f6=_0x452e49,_0x46c828={..._0xb1c11e[_0x13e6f6(0x27d)]};_0x5ca591!=null&&_0x5ca591[_0x13e6f6(0x225)]&&_0x46c828['fill']==='colorChannel1'&&(_0x46c828[_0x13e6f6(0x219)]=_0x5ca591[_0x13e6f6(0x225)]),_0xb1c11e[_0x13e6f6(0x274)]===_0x13e6f6(0x232)&&_0x46c828['id']&&(_0x46c828['id']=_0x46c828['id']+_0x12c538[_0x13e6f6(0x399)]),Object[_0x13e6f6(0x1b9)](_0x46c828)['forEach'](([_0x257b22,_0x398371])=>{const _0x14bd1f=_0x13e6f6;_0x257b22===_0x14bd1f(0x232)&&typeof _0x398371==_0x14bd1f(0x3d5)&&(_0x46c828[_0x257b22]=_0x398371[_0x14bd1f(0x304)](/url\(#(.*)\)/,_0x14bd1f(0x22e)+_0x12c538[_0x14bd1f(0x399)]+')'));});const {defIds:_0x3613dc}=_0x12c538;return!_0x3613dc||_0x3613dc[_0x13e6f6(0x31e)]===0x0||(_0xb1c11e['tag']===_0x13e6f6(0x395)&&_0x46c828['xlink:href']&&(_0x46c828[_0x13e6f6(0x2df)]=_0x46c828[_0x13e6f6(0x2df)]+_0x12c538[_0x13e6f6(0x399)]),Object['entries'](_0x46c828)[_0x13e6f6(0x345)](([_0x455c9e,_0x59e8b7])=>{const _0xb59bd3=_0x13e6f6;typeof _0x59e8b7==_0xb59bd3(0x3d5)&&(_0x46c828[_0x455c9e]=_0x59e8b7[_0xb59bd3(0x304)](/url\(#(.*)\)/,'url(#$1'+_0x12c538[_0xb59bd3(0x399)]+')'));})),_0x46c828;}function Ei(_0x960b2,_0x3d6534){const _0x59122f=_0x452e49;var _0x3d89ef;const {defIds:_0x2ed001}=_0x3d6534;return!_0x2ed001||_0x2ed001[_0x59122f(0x31e)]===0x0?_0x960b2:_0x960b2[_0x59122f(0x274)]===_0x59122f(0x26f)&&((_0x3d89ef=_0x960b2[_0x59122f(0x24e)])!=null&&_0x3d89ef['length'])?{..._0x960b2,'children':_0x960b2[_0x59122f(0x24e)][_0x59122f(0x25b)](_0x403bbd=>typeof _0x403bbd[_0x59122f(0x27d)]['id']==_0x59122f(0x3d5)&&_0x2ed001&&_0x2ed001[_0x59122f(0x2d3)](_0x403bbd[_0x59122f(0x27d)]['id'])?{..._0x403bbd,'attrs':{..._0x403bbd[_0x59122f(0x27d)],'id':_0x403bbd[_0x59122f(0x27d)]['id']+_0x3d6534[_0x59122f(0x399)]}}:_0x403bbd)}:_0x960b2;}function vi(){const _0x20525b=_0x452e49;return Math[_0x20525b(0x354)]()[_0x20525b(0x369)](0x24)['substring'](0x2,0x8);}Ge['displayName']=_0x452e49(0x229);const pi={'tag':_0x452e49(0x289),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x452e49(0x366),'width':_0x452e49(0x2e6),'height':_0x452e49(0x2e6)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x452e49(0x295),'d':_0x452e49(0x278),'strokeLinecap':_0x452e49(0x29e),'strokeLinejoin':_0x452e49(0x29e),'strokeWidth':1.2}}]},{'tag':_0x452e49(0x26f),'attrs':{},'children':[{'tag':_0x452e49(0x37d),'attrs':{'id':_0x452e49(0x32b)},'children':[{'tag':_0x452e49(0x224),'attrs':{'fill':_0x452e49(0x1be),'d':_0x452e49(0x1d8)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x50e674(function(_0x408bb9,_0xf034a4){const _0x1898bc=_0x452e49;return _0x1a8472(Ge,Object[_0x1898bc(0x393)]({},_0x408bb9,{'id':'off-line-icon','ref':_0xf034a4,'icon':pi}));});Pt[_0x452e49(0x1d0)]=_0x452e49(0x2c7);const Oi={'tag':'svg','attrs':{'xmlns':_0x452e49(0x39b),'fill':'none','viewBox':_0x452e49(0x3be),'width':_0x452e49(0x2e6),'height':_0x452e49(0x2e6)},'children':[{'tag':'g','attrs':{'clipPath':_0x452e49(0x247)},'children':[{'tag':'path','attrs':{'stroke':_0x452e49(0x295),'d':_0x452e49(0x1f5),'strokeLinecap':_0x452e49(0x29e),'strokeLinejoin':_0x452e49(0x29e),'strokeWidth':1.2}}]},{'tag':_0x452e49(0x26f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x452e49(0x389)},'children':[{'tag':_0x452e49(0x224),'attrs':{'fill':_0x452e49(0x1be),'d':'M0\x200H16V16H0z','transform':_0x452e49(0x2b8)}}]}]}],'defIds':[_0x452e49(0x389)]},wt=_0x50e674(function(_0x21aac4,_0x383626){const _0x34d5c4=_0x452e49;return _0x1a8472(Ge,Object[_0x34d5c4(0x393)]({},_0x21aac4,{'id':_0x34d5c4(0x1f0),'ref':_0x383626,'icon':Oi}));});wt[_0x452e49(0x1d0)]=_0x452e49(0x1cd);function Ti(_0x4aca62){const _0x2b236f=_0x452e49;switch(_0x4aca62){case _0x284653[_0x2b236f(0x31b)]:return _0x2b236f(0x1b7);case _0x284653[_0x2b236f(0x39a)]:return _0x2b236f(0x2b6);case _0x284653[_0x2b236f(0x3de)]:return _0x2b236f(0x362);case _0x284653['NOT_COLLAB']:return _0x2b236f(0x1c9);case _0x284653[_0x2b236f(0x3dd)]:case _0x284653[_0x2b236f(0x246)]:return'collabStatus.syncing';case _0x284653[_0x2b236f(0x2c0)]:case _0x284653[_0x2b236f(0x302)]:return _0x2b236f(0x261);}}function Ci(_0x2a019b){const _0x3102d8=_0x452e49,{status$:_0x34e981}=_0x2a019b,_0x34e29d=_0xece1a0(_0x34e981,_0x284653[_0x3102d8(0x335)]),_0x599d59=_0x307726(_0xdfe5e8),_0x307d3a=_0x307726(_0x513f8f),_0x2c5e5c=_0x34e29d!==_0x284653[_0x3102d8(0x31b)],_0x81cd6a=_0x599d59['t'](Ti(_0x34e29d)),_0x2d2629=_0x2c5e5c?_0x275baa(wt,{}):_0x275baa(Pt,{}),_0x104cbf=_0x447bea(()=>{const _0x5f3064=_0x3102d8;_0x2c5e5c||_0x307d3a[_0x5f3064(0x3a4)]();},[_0x2c5e5c,_0x307d3a]);function _0x392f41(){const _0x43b025=_0x3102d8;return _0x2f0c46(_0x43b025(0x321),{'className':'univer-flex\x20univer-items-center','onClick':_0x104cbf,'children':[_0x275baa('div',{'className':_0x5c80d1('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2c5e5c,'univer-text-red-500':!_0x2c5e5c}),'children':_0x2d2629}),_0x275baa(_0x43b025(0x321),{'className':_0x43b025(0x28b),'children':_0x81cd6a})]});}return _0x2c5e5c?_0x392f41():_0x275baa(_0x234803,{'title':_0x599d59['t']('collab-client.tooltip.reconnect'),'children':_0x392f41()});}var Ri=Object[_0x452e49(0x337)],Di=(_0x206496,_0x8bbca3,_0x3a7328,_0x557f2f)=>{const _0x4ab81b=_0x452e49;for(var _0x3eda11=_0x557f2f>0x1?void 0x0:_0x557f2f?Ri(_0x8bbca3,_0x3a7328):_0x8bbca3,_0x14b753=_0x206496[_0x4ab81b(0x31e)]-0x1,_0x4ace47;_0x14b753>=0x0;_0x14b753--)(_0x4ace47=_0x206496[_0x14b753])&&(_0x3eda11=_0x4ace47(_0x3eda11)||_0x3eda11);return _0x3eda11;},se=(_0x4ab1eb,_0x1f76d7)=>(_0x18bcdf,_0x1c2d0)=>_0x1f76d7(_0x18bcdf,_0x1c2d0,_0x4ab1eb);let ae=class extends _0x2aa59a{constructor(_0xd3e2b5,_0x3d496d,_0x456454,_0x4d4bd8){const _0x30840=_0x452e49;super(),_(this,_0x30840(0x327),new _0x26e754(_0x284653['NOT_COLLAB'])),(this[_0x30840(0x23f)]=_0xd3e2b5,this[_0x30840(0x3b9)]=_0x3d496d,this['_collaborationController']=_0x456454,this[_0x30840(0x2aa)]=_0x4d4bd8,this[_0x30840(0x311)](),this[_0x30840(0x36a)]());}['_initStatusListener'](){const _0x535210=_0x452e49;this['disposeWithMe'](this[_0x535210(0x23f)][_0x535210(0x28a)][_0x535210(0x392)](_0x1bb635(()=>{const _0x56e689=_0x535210,_0x491697=this['_univerInstanceService'][_0x56e689(0x220)]();return _0x491697?this['_collaborationController'][_0x56e689(0x316)](_0x491697[_0x56e689(0x28c)]()):_0x47af60(null);}),_0x1bb635(_0x3583dd=>_0x3583dd?_0x3583dd['status$']:_0x47af60(_0x284653['NOT_COLLAB'])))[_0x535210(0x251)](_0x4fd135=>{const _0xa0c61c=_0x535210;this[_0xa0c61c(0x327)][_0xa0c61c(0x30f)](_0x4fd135);}));}[_0x452e49(0x311)](){const _0x54760c=_0x452e49;this[_0x54760c(0x1f3)](this[_0x54760c(0x2aa)]['registerComponent'](_0x2d485e['HEADER_MENU'],()=>_0x24d5a5(Ni({'status$':this[_0x54760c(0x327)][_0x54760c(0x2a9)]()}),this[_0x54760c(0x3b9)])));}};ae=Di([se(0x0,_0x3fb31a),se(0x1,_0x19da77(_0x3caca9)),se(0x2,_0x19da77(_0x4b43c5)),se(0x3,_0x48a521)],ae);function Ni(_0x14f9e8){const {status$:_0x521c17}=_0x14f9e8;return function(){return _0x275baa(Ci,{'status$':_0x521c17});};}const yt=_0x2ea9a6('uni.network.url-service');var bi=Object[_0x452e49(0x337)],Li=(_0x44011d,_0x2cca3c,_0x120405,_0x57329f)=>{const _0x5c1f09=_0x452e49;for(var _0x2c76b5=_0x57329f>0x1?void 0x0:_0x57329f?bi(_0x2cca3c,_0x120405):_0x2cca3c,_0x1a0a0e=_0x44011d[_0x5c1f09(0x31e)]-0x1,_0x8f8534;_0x1a0a0e>=0x0;_0x1a0a0e--)(_0x8f8534=_0x44011d[_0x1a0a0e])&&(_0x2c76b5=_0x8f8534(_0x2c76b5)||_0x2c76b5);return _0x2c76b5;},K=(_0x4e58d6,_0x41cbff)=>(_0x109b54,_0xd7846c)=>_0x41cbff(_0x109b54,_0xd7846c,_0x4e58d6);let ce=class extends _0xfe4864{constructor(_0x3aeedd,_0xb16cfc,_0x3ebe5b,_0x3fb5c3,_0x4476c4){const _0x23762d=_0x452e49;super(),this[_0x23762d(0x1c6)]=_0x3aeedd,this['_logService']=_0xb16cfc,this[_0x23762d(0x299)]=_0x3ebe5b,this[_0x23762d(0x1d5)]=_0x3fb5c3,_0x4476c4?_0x4476c4==null||_0x4476c4[_0x23762d(0x347)]()['then'](()=>this[_0x23762d(0x3ce)]()):(this[_0x23762d(0x3d2)][_0x23762d(0x1eb)](_0x23762d(0x1b1),_0x23762d(0x1dc)),this['_init']());}async[_0x452e49(0x3ce)](){const _0x5e3aef=_0x452e49,_0x467c85=this['_urlService']['getParam']('unit'),_0x22bc65=this[_0x5e3aef(0x1c6)][_0x5e3aef(0x338)]('type'),_0x4c699d=this['_urlService']['getParam'](_0x5e3aef(0x1f6));if(!_0x467c85||!_0x22bc65){this[_0x5e3aef(0x3d2)][_0x5e3aef(0x1eb)](_0x5e3aef(0x1b1),_0x5e3aef(0x1ea));return;}const _0x43904f=await this[_0x5e3aef(0x1d5)][_0x5e3aef(0x390)](_0x467c85,Number(_0x22bc65),_0x4c699d);_0x43904f&&_0x43904f instanceof _0x20198c&&this['_setupSubUnitSync'](_0x43904f);}async[_0x452e49(0x2fb)](_0x8d10cc){const _0x14daf8=_0x452e49;await this[_0x14daf8(0x3e3)](_0x8d10cc),_0x8d10cc['activeSheet$'][_0x14daf8(0x392)](_0x5ec416(this[_0x14daf8(0x2ef)]))[_0x14daf8(0x251)](_0x2ae5d0=>{_0x2ae5d0&&this['_updateURLWithCurrentState'](_0x2ae5d0);}),this[_0x14daf8(0x1c6)][_0x14daf8(0x260)][_0x14daf8(0x392)](_0x5ec416(this[_0x14daf8(0x2ef)]))['subscribe'](()=>this[_0x14daf8(0x3e3)](_0x8d10cc));}[_0x452e49(0x3d6)](_0x3573fd,_0x36f58d=!0x1){const _0x12fd1e=_0x452e49,_0x48a8d8=this['_urlService'][_0x12fd1e(0x338)](_0x12fd1e(0x1f6));_0x3573fd['getSheetId']()!==_0x48a8d8&&this[_0x12fd1e(0x1c6)][_0x12fd1e(0x211)](_0x12fd1e(0x1f6),_0x3573fd[_0x12fd1e(0x2e9)](),_0x36f58d);}async['_updateSubUnitFromURLParams'](_0x3d4c15){const _0x212797=_0x452e49;var _0xaaf0a3;const _0xa38983=this['_urlService'][_0x212797(0x338)]('subunit');if(!_0xa38983||!_0x3d4c15[_0x212797(0x249)](_0xa38983)){const _0x47d021=_0x3d4c15[_0x212797(0x2ff)]()[0x0],_0x324c3a=_0x3d4c15[_0x212797(0x249)](_0x47d021);if(!_0x324c3a)return;this[_0x212797(0x3d6)](_0x324c3a,!0x0),await this[_0x212797(0x299)]['executeCommand'](_0x56446a['id'],{'unitId':_0x3d4c15[_0x212797(0x28c)](),'subUnitId':_0x47d021});return;}((_0xaaf0a3=_0x3d4c15[_0x212797(0x331)]())==null?void 0x0:_0xaaf0a3['getSheetId']())!==_0xa38983&&await this[_0x212797(0x299)][_0x212797(0x34c)](_0x56446a['id'],{'unitId':_0x3d4c15[_0x212797(0x28c)](),'subUnitId':_0xa38983});}};ce=Li([K(0x0,yt),K(0x1,_0x41d2f2),K(0x2,_0x579301),K(0x3,_0x19da77(_0x1b001e)),K(0x4,_0x505609(_0x54e65c))],ce);var Ui=Object[_0x452e49(0x337)],Mi=(_0x5154a4,_0x3b6da2,_0x3e1f,_0x119b93)=>{for(var _0x1e69f5=_0x119b93>0x1?void 0x0:_0x119b93?Ui(_0x3b6da2,_0x3e1f):_0x3b6da2,_0x57b52f=_0x5154a4['length']-0x1,_0xdc3b4a;_0x57b52f>=0x0;_0x57b52f--)(_0xdc3b4a=_0x5154a4[_0x57b52f])&&(_0x1e69f5=_0xdc3b4a(_0x1e69f5)||_0x1e69f5);return _0x1e69f5;},rt=(_0x126e86,_0x43ce80)=>(_0x8dfa1,_0x5c9fad)=>_0x43ce80(_0x8dfa1,_0x5c9fad,_0x126e86);let $e=class extends _0xfe4864{constructor(_0x499389,_0x4aedb4){const _0x2fd086=_0x452e49;super(),this['_docClipboardService']=_0x499389,this[_0x2fd086(0x1c5)]=_0x4aedb4,this[_0x2fd086(0x3ce)]();}['_init'](){const _0x218ad5=_0x452e49,_0x2ff60b=this;this[_0x218ad5(0x1f3)](this[_0x218ad5(0x3a9)][_0x218ad5(0x323)]({'onBeforePasteImage':async _0xf3986a=>{const _0x34296c=_0x218ad5,_0x366b33=await _0x2ff60b[_0x34296c(0x1c5)][_0x34296c(0x2e1)](_0xf3986a);return _0x366b33?{'source':_0x366b33[_0x34296c(0x306)],'imageSourceType':_0x366b33['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0x1e49e8),rt(0x1,_0x438a84)],$e);const ot=[_0x452e49(0x36d),_0x452e49(0x34e),'green.600',_0x452e49(0x286),'blue.400',_0x452e49(0x3d0)];class Ke extends _0x2aa59a{constructor(){const _0x544e83=_0x452e49;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x544e83(0x266),0x0);}[_0x452e49(0x360)](_0x2f77df){const _0x29ba75=_0x452e49;if(this['_assignedColors']['has'](_0x2f77df))return this[_0x29ba75(0x380)]['get'](_0x2f77df);const _0x11abc9=ot[this[_0x29ba75(0x266)]];return this['_colorIndex']=(this[_0x29ba75(0x266)]+0x1)%ot[_0x29ba75(0x31e)],this['_assignedColors'][_0x29ba75(0x26e)](_0x2f77df,_0x11abc9),_0x11abc9;}}function $t(_0x4fcbd4){let _0x1a7c8e='';for(const _0x208ff8 of _0x4fcbd4){const {startOffset:_0x1f57ac,endOffset:_0x3cbc9a,isActive:_0x1eabc6,rangeType:_0x2a76d1,segmentId:_0x1405e9,segmentPage:_0x4bf5f4}=_0x208ff8;_0x1a7c8e['length']&&(_0x1a7c8e+=','),_0x1a7c8e+=_0x1f57ac+':'+_0x3cbc9a+':'+(_0x1eabc6?'1':'0')+':'+_0x2a76d1+':'+_0x1405e9+':'+_0x4bf5f4;}return _0x1a7c8e;}function Ai(_0x37d67a){const _0x3f0299=_0x452e49,_0x1fde2d=_0x37d67a[_0x3f0299(0x344)](','),_0x52fa1a=[];for(const _0x5753b8 of _0x1fde2d){const [_0xa81b1c,_0x566c84,_0x2237b5,_0x5ab6b4,_0x228ac5,_0x14cd09]=_0x5753b8[_0x3f0299(0x344)](':');_0x52fa1a[_0x3f0299(0x3b7)]({'startOffset':Number(_0xa81b1c),'endOffset':Number(_0x566c84),'collapsed':_0xa81b1c===_0x566c84,'isActive':_0x2237b5==='1','rangeType':_0x5ab6b4===_0x1af5a0[_0x3f0299(0x38a)]?_0x1af5a0[_0x3f0299(0x38a)]:_0x1af5a0[_0x3f0299(0x303)],'segmentId':typeof _0x228ac5==_0x3f0299(0x3d5)?String(_0x228ac5):'','segmentPage':Number(_0x14cd09!=null?_0x14cd09:-0x1)});}return _0x52fa1a[_0x3f0299(0x269)](_0x156c42=>_0x156c42[_0x3f0299(0x2fd)])||(_0x52fa1a[0x0][_0x3f0299(0x2fd)]=!0x0),_0x52fa1a;}class ze extends _0xfe4864{constructor(){const _0x47932c=_0x452e49;super(...arguments),_(this,_0x47932c(0x1df),new _0x26e754(null)),_(this,_0x47932c(0x223),this['_collabCursorState$'][_0x47932c(0x2a9)]());}['syncEditingCollabCursor'](_0x3af5d2){const _0x4432d9=_0x452e49,{unitID:_0x2ef5d0,memberID:_0xcce051,textRanges:_0x39f257}=_0x3af5d2,_0x386852=$t(_0x39f257);if(_0x386852==='')return;const _0x169c1c={'unitID':_0x2ef5d0,'memberID':_0xcce051,'selection':_0x386852};this['_collabCursorState$'][_0x4432d9(0x30f)](_0x169c1c);}}var Pi=Object[_0x452e49(0x337)],wi=(_0x40172c,_0x28dbc8,_0xa55e87,_0x984e8c)=>{const _0x23d240=_0x452e49;for(var _0x4e5371=_0x984e8c>0x1?void 0x0:_0x984e8c?Pi(_0x28dbc8,_0xa55e87):_0x28dbc8,_0x189f46=_0x40172c[_0x23d240(0x31e)]-0x1,_0x55ee05;_0x189f46>=0x0;_0x189f46--)(_0x55ee05=_0x40172c[_0x189f46])&&(_0x4e5371=_0x55ee05(_0x4e5371)||_0x4e5371);return _0x4e5371;},A=(_0x593368,_0x522205)=>(_0x4c42d1,_0x22a9e4)=>_0x522205(_0x4c42d1,_0x22a9e4,_0x593368);const yi=0x12c,$i=0x64;let xe=class extends _0xfe4864{constructor(_0x1af22a,_0x24cf5e,_0xb8b079,_0x17a7ec,_0x5db9de,_0x535591,_0x5f3303,_0x4208fd,_0x5ca2e5){const _0x329238=_0x452e49;super(),_(this,_0x329238(0x385),!0x1),_(this,_0x329238(0x3ce),!0x1),_(this,_0x329238(0x26a),new _0x26e754(new Map())),_(this,_0x329238(0x2f3),this[_0x329238(0x26a)][_0x329238(0x2a9)]()),_(this,'_roomMembers$',new _0x26e754([])),_(this,_0x329238(0x2d7),this[_0x329238(0x1f2)][_0x329238(0x392)](_0x595669(yi))),_(this,_0x329238(0x237),_0x25a216(_0x47dc60=>{const _0x2a7ef9=_0x329238,_0x51a1de={'eventID':_0x3bccf0[_0x2a7ef9(0x381)],'data':{'unitID':this[_0x2a7ef9(0x2fe)],'memberID':this[_0x2a7ef9(0x2c6)][_0x2a7ef9(0x319)](),'selection':$t(_0x47dc60)}};this['_session'][_0x2a7ef9(0x2a5)](_0x51a1de,this[_0x2a7ef9(0x2fe)]);},$i)),(this['unitID']=_0x1af22a,this[_0x329238(0x2c6)]=_0x24cf5e,this[_0x329238(0x3b9)]=_0xb8b079,this['_colorAssignService']=_0x17a7ec,this[_0x329238(0x21a)]=_0x5db9de,this[_0x329238(0x1d2)]=_0x535591,this[_0x329238(0x248)]=_0x5f3303,this[_0x329238(0x23f)]=_0x4208fd,this['_commandService']=_0x5ca2e5);}get[_0x452e49(0x1c2)](){const _0x2c3ab7=_0x452e49;return this[_0x2c3ab7(0x26a)][_0x2c3ab7(0x294)]();}get[_0x452e49(0x1c1)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x5b6802=_0x452e49;super[_0x5b6802(0x2bf)](),this[_0x5b6802(0x26a)][_0x5b6802(0x30f)](new Map()),this[_0x5b6802(0x26a)][_0x5b6802(0x276)](),this['_roomMembers$'][_0x5b6802(0x30f)]([]),this['_roomMembers$']['complete']();}[_0x452e49(0x3b0)](){const _0x2bc6ef=_0x452e49;this[_0x2bc6ef(0x3ce)]||(this[_0x2bc6ef(0x3ce)]=!0x0,this[_0x2bc6ef(0x2c6)]['sessionStatus$']['pipe'](_0x5ec416(this[_0x2bc6ef(0x2ef)]))['subscribe'](_0x2f7258=>{const _0x2ac17b=_0x2bc6ef;_0x2f7258===_0x5066f2[_0x2ac17b(0x365)]?this[_0x2ac17b(0x215)]():this[_0x2ac17b(0x3cb)]();}),this[_0x2bc6ef(0x2c6)][_0x2bc6ef(0x2d2)]['pipe'](_0x5ec416(this[_0x2bc6ef(0x2ef)]))[_0x2bc6ef(0x251)](_0xb49bb=>{const _0x530e88=_0x2bc6ef,_0x377ab4=_0xb49bb['eventID'];_0x377ab4===_0x3bccf0['UPDATE_CURSOR']&&this[_0x530e88(0x39e)](_0xb49bb),_0x377ab4===_0x3bccf0[_0x530e88(0x388)]&&this[_0x530e88(0x1ca)](_0xb49bb);}),this[_0x2bc6ef(0x1f3)](this[_0x2bc6ef(0x299)]['onCommandExecuted'](_0x103faa=>{const _0x296280=_0x2bc6ef,_0x43c35f=_0x103faa[_0x296280(0x308)];_0x43c35f!=null&&this[_0x296280(0x385)]&&_0x103faa['id']===_0x59a9f9['id']&&_0x43c35f[_0x296280(0x1ec)]===this[_0x296280(0x2fe)]&&_0x43c35f['isEditing']===!0x1&&_0x43c35f[_0x296280(0x36f)][_0x296280(0x31e)]>0x0&&this[_0x296280(0x237)](_0x43c35f[_0x296280(0x36f)]);})),this[_0x2bc6ef(0x1d2)]['collabCursorState$'][_0x2bc6ef(0x392)](_0x5ec416(this[_0x2bc6ef(0x2ef)]))[_0x2bc6ef(0x251)](_0xe0e2cc=>{if((_0xe0e2cc==null?void 0x0:_0xe0e2cc['unitID'])!==this['unitID'])return;const _0xde669b={'eventID':_0x3bccf0['UPDATE_CURSOR'],'data':_0xe0e2cc};this['_onCursorUpdate'](_0xde669b);}),this['disposeWithMe'](this[_0x2bc6ef(0x299)][_0x2bc6ef(0x3a5)](_0x79327c=>{const _0x370f43=_0x2bc6ef;if(_0x79327c[_0x370f43(0x308)]==null)return;const _0x4fe1d7=_0x79327c[_0x370f43(0x308)];if(_0x79327c['id']!==_0x1e2914['id']||_0x4fe1d7[_0x370f43(0x1ec)]!==this[_0x370f43(0x2fe)])return;const _0x9fdce0={'id':_0x370f43(0x349),'params':_0x4fe1d7},_0x5e0914=this[_0x370f43(0x1c2)];for(const [_0x4253a6,_0xf57eda]of _0x5e0914){const _0x290bf8={'id':_0x370f43(0x349),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xf57eda[_0x370f43(0x36f)]}},_0x2cdfd8=this[_0x370f43(0x248)][_0x370f43(0x1b8)](_0x9fdce0,_0x290bf8,!0x1);if(_0x2e9ee5(_0x2cdfd8))throw _0x2cdfd8['error'];_0x5e0914[_0x370f43(0x26e)](_0x4253a6,{..._0xf57eda,'ranges':_0x2cdfd8[_0x370f43(0x1da)][_0x370f43(0x308)][_0x370f43(0x1c8)]});}queueMicrotask(()=>{const _0xa928ec=_0x370f43;this[_0xa928ec(0x26a)]['next'](_0x5e0914);});})));}[_0x452e49(0x39e)](_0x4d79e8){const _0x1e7731=_0x452e49;var _0x9204da,_0x2e4e0b;const {memberID:_0x54600f,selection:_0x5b9aec}=_0x4d79e8[_0x1e7731(0x3ac)],_0x4c59b2=Ai(_0x5b9aec),_0x1f28dc=(_0x2e4e0b=(_0x9204da=this['_memberService'][_0x1e7731(0x213)](this[_0x1e7731(0x2fe)],_0x54600f))==null?void 0x0:_0x9204da[_0x1e7731(0x262)])!=null?_0x2e4e0b:_0x1e7731(0x1d6),_0x2a8233={'color':this[_0x1e7731(0x350)]['assignAColorForMemberID'](_0x54600f),'name':_0x1f28dc,'ranges':_0x4c59b2},_0x2ecaac=this[_0x1e7731(0x1c2)];_0x2ecaac['set'](_0x54600f,_0x2a8233),this[_0x1e7731(0x26a)][_0x1e7731(0x30f)](_0x2ecaac);}[_0x452e49(0x1ca)](_0x4d3da9){const _0x2eccd7=_0x452e49,{memberID:_0x10e1b1}=_0x4d3da9['data'],_0x419dc3=this['cursorInfo'];_0x419dc3[_0x2eccd7(0x336)](_0x10e1b1),this[_0x2eccd7(0x26a)][_0x2eccd7(0x30f)](_0x419dc3);}[_0x452e49(0x215)](){const _0x133c33=_0x452e49;var _0x840493;if(this['_online']=!0x0,((_0x840493=this[_0x133c33(0x23f)]['getFocusedUnit']())==null?void 0x0:_0x840493[_0x133c33(0x28c)]())!==this[_0x133c33(0x2fe)])return;const _0x1c6879=this[_0x133c33(0x3b9)][_0x133c33(0x3db)](_0x4bdd23)[_0x133c33(0x236)]();Array['isArray'](_0x1c6879)&&_0x1c6879[_0x133c33(0x31e)]>0x0&&this[_0x133c33(0x237)](_0x1c6879);}[_0x452e49(0x3cb)](){const _0x1dce26=_0x452e49;this[_0x1dce26(0x385)]=!0x1;}};xe=wi([A(0x2,_0x19da77(_0x3caca9)),A(0x3,_0x19da77(Ke)),A(0x4,_0x19da77(_0xa2f310)),A(0x5,_0x19da77(ze)),A(0x6,_0x514b1e),A(0x7,_0x3fb31a),A(0x8,_0x579301)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x56d12a,_0x1b35f4,_0x411359,_0x43fa03)=>{for(var _0x563b3a=_0x43fa03>0x1?void 0x0:_0x43fa03?xi(_0x1b35f4,_0x411359):_0x1b35f4,_0x142543=_0x56d12a['length']-0x1,_0x3b55ae;_0x142543>=0x0;_0x142543--)(_0x3b55ae=_0x56d12a[_0x142543])&&(_0x563b3a=_0x3b55ae(_0x563b3a)||_0x563b3a);return _0x563b3a;},B=(_0x24ecdd,_0xe59b29)=>(_0x4460d0,_0x1da216)=>_0xe59b29(_0x4460d0,_0x1da216,_0x24ecdd);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x332abe=[],_0x5e5c77=!0x1;return _0xc30bfe=>{const _0x478eaa=_0xbe1d;_0x332abe[_0x478eaa(0x3b7)](_0xc30bfe),_0x5e5c77||(_0x5e5c77=!0x0,setTimeout(()=>{_0x332abe['forEach'](_0x27c77e=>_0x27c77e()),_0x332abe=[],_0x5e5c77=!0x1;}));};};let Be=class extends _0xfe4864{constructor(_0x189f1a,_0xc77f6e,_0x43756d,_0x3d82e9,_0x4c31a7,_0x3e1b47,_0x4d53c6,_0x1e78cd){const _0x280de4=_0x452e49;super(),_(this,_0x280de4(0x385),!0x1),_(this,_0x280de4(0x3ce),!0x1),_(this,_0x280de4(0x26a),new _0x26e754(new Map())),_(this,_0x280de4(0x2f3),this[_0x280de4(0x26a)]['asObservable']()),_(this,'_roomMembers$',new _0x26e754([])),_(this,'roomMembers$',this[_0x280de4(0x1f2)]['pipe'](_0x595669(Fi))),_(this,_0x280de4(0x237),_0x25a216((_0x3714fb,_0x271b86)=>{const _0x1a03b7=_0x280de4,_0x442962={'eventID':_0x3bccf0[_0x1a03b7(0x381)],'data':{'unitID':this[_0x1a03b7(0x2fe)],'memberID':this['_session'][_0x1a03b7(0x319)](),'selection':_0x7b9ab3(_0x3714fb,_0x271b86[_0x1a03b7(0x313)])}};this[_0x1a03b7(0x2c6)]['send'](_0x442962,this[_0x1a03b7(0x2fe)]);},ki)),(this['unitID']=_0x189f1a,this[_0x280de4(0x2c6)]=_0xc77f6e,this[_0x280de4(0x3b9)]=_0x43756d,this[_0x280de4(0x350)]=_0x3d82e9,this[_0x280de4(0x21a)]=_0x4c31a7,this[_0x280de4(0x23f)]=_0x3e1b47,this[_0x280de4(0x299)]=_0x4d53c6,this['_refRangeService']=_0x1e78cd);}get[_0x452e49(0x1c2)](){const _0x35e50a=_0x452e49;return this[_0x35e50a(0x26a)]['getValue']();}get[_0x452e49(0x1c1)](){const _0x174699=_0x452e49;return this[_0x174699(0x1f2)][_0x174699(0x294)]();}[_0x452e49(0x2bf)](){const _0x4944fa=_0x452e49;super[_0x4944fa(0x2bf)](),this[_0x4944fa(0x26a)][_0x4944fa(0x30f)](new Map()),this['_cursorInfo$'][_0x4944fa(0x276)](),this['_roomMembers$'][_0x4944fa(0x30f)]([]),this[_0x4944fa(0x1f2)]['complete']();}[_0x452e49(0x3b0)](){const _0x1054ed=_0x452e49;this['_init']||(this[_0x1054ed(0x3ce)]=!0x0,this[_0x1054ed(0x2c6)][_0x1054ed(0x1d4)]['pipe'](_0x5ec416(this[_0x1054ed(0x2ef)]))[_0x1054ed(0x251)](_0x916454=>{const _0x42914e=_0x1054ed;_0x916454===_0x5066f2[_0x42914e(0x365)]?this[_0x42914e(0x215)]():this['_toggleOffline']();}),this[_0x1054ed(0x2c6)]['event$'][_0x1054ed(0x392)](_0x5ec416(this[_0x1054ed(0x2ef)]))[_0x1054ed(0x251)](_0x48ea2e=>{const _0x5ed3cf=_0x1054ed,_0x4fdb3d=_0x48ea2e[_0x5ed3cf(0x3b1)];_0x4fdb3d===_0x3bccf0[_0x5ed3cf(0x381)]&&this[_0x5ed3cf(0x39e)](_0x48ea2e),_0x4fdb3d===_0x3bccf0[_0x5ed3cf(0x388)]&&this[_0x5ed3cf(0x1ca)](_0x48ea2e);}),this[_0x1054ed(0x3cc)](),this[_0x1054ed(0x1f3)](this[_0x1054ed(0x299)][_0x1054ed(0x3a5)](_0x4d4d53=>{const _0x54039e=_0x1054ed;if(this[_0x54039e(0x385)]&&_0x4d4d53['id']===_0x4ad255['id']&&_0x4d4d53[_0x54039e(0x308)][_0x54039e(0x1ec)]===this['unitID']){const _0x488880=_0x4d4d53[_0x54039e(0x308)];this['_updateLocalCursor'](_0x488880['subUnitId'],_0x488880[_0x54039e(0x2f1)][0x0]);}})));}[_0x452e49(0x39e)](_0x1666bc){const _0x42afc0=_0x452e49;var _0x411e53,_0xb75c0a;const {memberID:_0x4b7885,selection:_0x12fe8f}=_0x1666bc[_0x42afc0(0x3ac)],{sheetName:_0x307507,range:_0x510271}=_0x147ab3(_0x12fe8f),_0x969a07={'name':(_0xb75c0a=(_0x411e53=this[_0x42afc0(0x21a)]['getMember'](this['unitID'],_0x4b7885))==null?void 0x0:_0x411e53['name'])!=null?_0xb75c0a:'Unknown\x20user','range':this[_0x42afc0(0x3c3)](_0x307507,_0x510271),'sheetID':_0x307507,'color':this[_0x42afc0(0x350)][_0x42afc0(0x360)](_0x4b7885),'selection':_0x12fe8f},_0x492383=this[_0x42afc0(0x1c2)];_0x492383[_0x42afc0(0x26e)](_0x4b7885,_0x969a07),this['_cursorInfo$'][_0x42afc0(0x30f)](_0x492383);}[_0x452e49(0x1ca)](_0x528ae8){const _0x16404c=_0x452e49,{memberID:_0xfba09a}=_0x528ae8['data'],_0x252d5e=this[_0x16404c(0x1c2)];_0x252d5e[_0x16404c(0x336)](_0xfba09a),this[_0x16404c(0x26a)]['next'](_0x252d5e);}[_0x452e49(0x3c3)](_0x5d2b93,_0x14f0fa){const _0x3c1775=_0x452e49;var _0x37d20b,_0x57a8d5;const _0x14a602=(_0x57a8d5=(_0x37d20b=this[_0x3c1775(0x23f)]['getUniverSheetInstance'](this[_0x3c1775(0x2fe)]))==null?void 0x0:_0x37d20b[_0x3c1775(0x249)](_0x5d2b93))==null?void 0x0:_0x57a8d5[_0x3c1775(0x2b4)]();return(_0x14a602==null?void 0x0:_0x14a602[_0x3c1775(0x3da)](_0x3ddb1e=>_0x504e5a['contains'](_0x3ddb1e,_0x14f0fa)))||_0x14f0fa;}[_0x452e49(0x3cc)](){const _0x3e6859=_0x452e49,_0x5315ff=new _0xf883e1(),_0x463376=Hi(),_0x57035e=()=>{const _0x51eb8f=_0xbe1d;_0x5315ff[_0x51eb8f(0x2bf)]();const _0x1e0153=(_0x10c9bc,_0x36b5f6,_0x18c6d3,_0x3ee961)=>{const _0x231b48=_0x51eb8f;let _0x5bd21c=[];switch(_0x10c9bc['id']){case _0x40ea40['DeleteRangeMoveLeftCommandId']:{_0x5bd21c=_0x48c175(_0x10c9bc,_0x3ee961);break;}case _0x40ea40['DeleteRangeMoveUpCommandId']:{_0x5bd21c=_0x2e9859(_0x10c9bc,_0x3ee961);break;}case _0x40ea40['InsertColCommandId']:{_0x5bd21c=_0xbbe9db(_0x10c9bc,_0x3ee961);break;}case _0x40ea40[_0x231b48(0x35c)]:{_0x5bd21c=_0x4e7872(_0x10c9bc,_0x3ee961);break;}case _0x40ea40[_0x231b48(0x3d3)]:{_0x5bd21c=_0x373242(_0x10c9bc,_0x3ee961);break;}case _0x40ea40[_0x231b48(0x355)]:{_0x5bd21c=_0x3626f4(_0x10c9bc,_0x3ee961);break;}case _0x40ea40[_0x231b48(0x208)]:{_0x5bd21c=_0x299f98(_0x10c9bc,_0x3ee961);break;}case _0x40ea40[_0x231b48(0x2a6)]:{_0x5bd21c=_0xdd0c2c(_0x10c9bc,_0x3ee961);break;}case _0x40ea40[_0x231b48(0x24b)]:{_0x5bd21c=_0x476edd(_0x10c9bc,_0x3ee961);break;}}const _0x3e264c=_0x20145f(_0x5bd21c,_0x3ee961),_0x46d081=this['cursorInfo'][_0x231b48(0x3db)](_0x36b5f6);if(_0x46d081&&_0x3e264c){const _0x264c93={..._0x46d081,'range':_0x3e264c};this[_0x231b48(0x1c2)]['set'](_0x36b5f6,_0x264c93),_0x463376(()=>{const _0x1baa5d=_0x231b48,_0x95c4c6=this[_0x1baa5d(0x1ee)][_0x1baa5d(0x2ce)](_0x3e264c,_0x156bf5=>(_0x95c4c6['dispose'](),_0x1e0153(_0x156bf5,_0x36b5f6,_0x18c6d3,_0x3e264c)));_0x5315ff['add'](_0x95c4c6);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x51eb8f(0x345)]((_0x271b31,_0x2e0c71)=>{const _0x3efbd2=_0x51eb8f,{range:_0x1bd1c7,sheetID:_0x15d735}=_0x271b31,_0x410b5f=this[_0x3efbd2(0x1ee)][_0x3efbd2(0x2ce)](_0x1bd1c7,_0x3cf385=>(_0x410b5f[_0x3efbd2(0x2bf)](),_0x1e0153(_0x3cf385,_0x2e0c71,_0x15d735,_0x1bd1c7)));_0x5315ff['add'](_0x410b5f);});};this[_0x3e6859(0x1f3)](_0x5dd047(this[_0x3e6859(0x26a)][_0x3e6859(0x251)](()=>{_0x57035e();})));}[_0x452e49(0x215)](){const _0x1ceb20=_0x452e49;var _0x2fe709,_0x1dbf1a;if(this[_0x1ceb20(0x385)]=!0x0,((_0x2fe709=this[_0x1ceb20(0x23f)][_0x1ceb20(0x220)]())==null?void 0x0:_0x2fe709[_0x1ceb20(0x28c)]())!==this[_0x1ceb20(0x2fe)])return;const _0x310bdd=(_0x1dbf1a=this[_0x1ceb20(0x3b9)][_0x1ceb20(0x3db)](_0x229580)[_0x1ceb20(0x317)]())==null?void 0x0:_0x1dbf1a[0x0],_0x3f5c96=this[_0x1ceb20(0x23f)]['getCurrentUnitForType'](_0x13bfc1[_0x1ceb20(0x1b5)])[_0x1ceb20(0x331)]();_0x310bdd&&_0x3f5c96&&this[_0x1ceb20(0x237)](_0x3f5c96[_0x1ceb20(0x2e9)](),_0x310bdd);}[_0x452e49(0x3cb)](){const _0x2343aa=_0x452e49;this[_0x2343aa(0x385)]=!0x1;}};Be=Bi([B(0x2,_0x19da77(_0x3caca9)),B(0x3,_0x19da77(Ke)),B(0x4,_0x19da77(_0xa2f310)),B(0x5,_0x3fb31a),B(0x6,_0x579301),B(0x7,_0x19da77(_0x335061))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x28d633,_0x2880e7,_0x51a637,_0x4c71f1)=>{const _0x5bed7f=_0x452e49;for(var _0x520df5=_0x4c71f1>0x1?void 0x0:_0x4c71f1?Yi(_0x2880e7,_0x51a637):_0x2880e7,_0x589054=_0x28d633[_0x5bed7f(0x31e)]-0x1,_0x4a090b;_0x589054>=0x0;_0x589054--)(_0x4a090b=_0x28d633[_0x589054])&&(_0x520df5=_0x4a090b(_0x520df5)||_0x520df5);return _0x520df5;},Ce=(_0x1c13a,_0x41f64a)=>(_0x5b2760,_0x3fe265)=>_0x41f64a(_0x5b2760,_0x3fe265,_0x1c13a);let H=class extends _0xfe4864{constructor(_0x31fdc5,_0x5f3b90,_0x4a2a3e){const _0x52e0bd=_0x452e49;super(),_(this,_0x52e0bd(0x32f),new Map()),_(this,_0x52e0bd(0x270),new _0x5c34f4()),(this[_0x52e0bd(0x23f)]=_0x31fdc5,this['_injector']=_0x5f3b90,this[_0x52e0bd(0x28d)]=_0x4a2a3e,this['_init']());}[_0x452e49(0x2bf)](){const _0x37e3cf=_0x452e49;super[_0x37e3cf(0x2bf)](),this[_0x37e3cf(0x270)][_0x37e3cf(0x276)](),this[_0x37e3cf(0x32f)][_0x37e3cf(0x345)](_0x398d75=>_0x398d75[_0x37e3cf(0x2bf)]());}[_0x452e49(0x2b2)](_0x2f2058){const _0x5b05b6=_0x452e49;return this['_entities'][_0x5b05b6(0x21c)](_0x2f2058)?this[_0x5b05b6(0x32f)][_0x5b05b6(0x3db)](_0x2f2058)[_0x5b05b6(0x2f3)]:this[_0x5b05b6(0x270)][_0x5b05b6(0x392)](_0x1336e6(_0x1e8e50=>_0x1e8e50[_0x5b05b6(0x2fe)]===_0x2f2058),_0x1bb635(_0x4bec44=>_0x4bec44[_0x5b05b6(0x2f3)]));}[_0x452e49(0x3ce)](){const _0x32e52b=_0x452e49;this['_univerInstanceService'][_0x32e52b(0x242)](_0x13bfc1['UNIVER_SHEET'])['pipe'](_0x5ec416(this[_0x32e52b(0x2ef)]))['subscribe'](async _0x4548e6=>{const _0x2cbb53=_0x32e52b,_0x231d2c=_0x4548e6[_0x2cbb53(0x28c)](),_0x336da1=await this[_0x2cbb53(0x2a2)](_0x231d2c);this['_entityInit$'][_0x2cbb53(0x30f)](_0x336da1),this['_entities'][_0x2cbb53(0x26e)](_0x231d2c,_0x336da1);}),this[_0x32e52b(0x23f)][_0x32e52b(0x242)](_0x13bfc1[_0x32e52b(0x2a7)])[_0x32e52b(0x392)](_0x5ec416(this['dispose$']))['pipe'](_0x1336e6(_0x5756a5=>!_0x5756a5[_0x32e52b(0x28c)]()['startsWith']('__')))['subscribe'](async _0x2cd589=>{const _0x11dcfa=_0x32e52b,_0x57670e=_0x2cd589[_0x11dcfa(0x28c)](),_0x5a42d5=await this['_startDocCollabCursor'](_0x57670e);this[_0x11dcfa(0x270)][_0x11dcfa(0x30f)](_0x5a42d5),this[_0x11dcfa(0x32f)][_0x11dcfa(0x26e)](_0x57670e,_0x5a42d5);}),_0x391ca4(this['_univerInstanceService'][_0x32e52b(0x2c9)](_0x13bfc1[_0x32e52b(0x2a7)]),this[_0x32e52b(0x23f)][_0x32e52b(0x2c9)](_0x13bfc1[_0x32e52b(0x1b5)]))[_0x32e52b(0x392)](_0x5ec416(this[_0x32e52b(0x2ef)]))[_0x32e52b(0x251)](_0x143ae9=>{const _0xb5f40c=_0x32e52b,_0x37e7ca=_0x143ae9[_0xb5f40c(0x28c)](),_0x285842=this[_0xb5f40c(0x32f)][_0xb5f40c(0x3db)](_0x37e7ca);_0x285842&&(_0x285842[_0xb5f40c(0x2bf)](),this['_entities'][_0xb5f40c(0x336)](_0x37e7ca));});}async['_startSheetCollabCursor'](_0x3141ac){const _0x56028c=_0x452e49,_0x5ec664=await this[_0x56028c(0x28d)][_0x56028c(0x2ba)](_0x3141ac),_0x3f240f=this[_0x56028c(0x3b9)][_0x56028c(0x2a4)](Be,_0x3141ac,_0x5ec664);return _0x3f240f['init'](),_0x3f240f;}async['_startDocCollabCursor'](_0x2ae4ec){const _0x35f1a4=_0x452e49,_0x2e6a44=await this[_0x35f1a4(0x28d)][_0x35f1a4(0x2ba)](_0x2ae4ec),_0x1fb6b0=this[_0x35f1a4(0x3b9)]['createInstance'](xe,_0x2ae4ec,_0x2e6a44);return _0x1fb6b0[_0x35f1a4(0x3b0)](),_0x1fb6b0;}};H=Wi([Ce(0x0,_0x3fb31a),Ce(0x1,_0x19da77(_0x3caca9)),Ce(0x2,_0x19da77(_0x513f8f))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x3f1942,_0x1c847d){const _0x3cc1aa=_0x452e49;let {radius:_0x18b6c2,width:_0x1b5c49,height:_0x2d2e1e}=_0x1c847d;_0x18b6c2=_0x18b6c2!=null?_0x18b6c2:0x0,_0x1b5c49=_0x1b5c49!=null?_0x1b5c49:0x1e,_0x2d2e1e=_0x2d2e1e!=null?_0x2d2e1e:0x1e;let _0x4481c0=0x0,_0x2a617b=0x0,_0x5eb50e=0x0;_0x4481c0=_0x2a617b=_0x5eb50e=Math[_0x3cc1aa(0x3d4)](_0x18b6c2,_0x1b5c49/0x2,_0x2d2e1e/0x2),_0x3f1942['beginPath'](),_0x3f1942['moveTo'](_0x4481c0,0x0),_0x3f1942[_0x3cc1aa(0x36c)](_0x1b5c49-_0x2a617b,0x0),_0x3f1942[_0x3cc1aa(0x22b)](_0x1b5c49-_0x2a617b,_0x2a617b,_0x2a617b,Math['PI']*0x3/0x2,0x0,!0x1),_0x3f1942['lineTo'](_0x1b5c49,_0x2d2e1e-_0x5eb50e),_0x3f1942[_0x3cc1aa(0x22b)](_0x1b5c49-_0x5eb50e,_0x2d2e1e-_0x5eb50e,_0x5eb50e,0x0,Math['PI']/0x2,!0x1),_0x3f1942[_0x3cc1aa(0x36c)](0x0,_0x2d2e1e),_0x3f1942[_0x3cc1aa(0x36c)](0x0,_0x4481c0),_0x3f1942[_0x3cc1aa(0x22b)](_0x4481c0,_0x4481c0,_0x4481c0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3f1942[_0x3cc1aa(0x1b3)](),_0x1c847d['fill']&&(_0x3f1942[_0x3cc1aa(0x383)](),_0x3f1942[_0x3cc1aa(0x29c)]=_0x1c847d[_0x3cc1aa(0x219)],_0x1c847d[_0x3cc1aa(0x2c8)]==='evenodd'?_0x3f1942['fill'](_0x3cc1aa(0x3b3)):_0x3f1942[_0x3cc1aa(0x219)](),_0x3f1942['restore']());}class ve extends _0x41defb{constructor(_0x540dfc,_0x120e7d){const _0x4f123d=_0x452e49;super(_0x540dfc,_0x120e7d),_(this,_0x4f123d(0x3c7)),_(this,'text'),(this['color']=_0x120e7d==null?void 0x0:_0x120e7d['color'],this[_0x4f123d(0x3a2)]=_0x120e7d==null?void 0x0:_0x120e7d['text']);}static['drawWith'](_0x7d6325,_0x4e54de){const _0x4fcd1d=_0x452e49,{text:_0x285892,color:_0x2093ec}=_0x4e54de;_0x7d6325[_0x4fcd1d(0x383)](),_0x7d6325[_0x4fcd1d(0x235)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0xce0abc=_0x7d6325['measureText'](_0x285892)[_0x4fcd1d(0x1fe)],_0x253c3c=Math[_0x4fcd1d(0x3d4)](_0xce0abc+0x2*Re,at);ji(_0x7d6325,{'height':Q,'radius':0x4,'width':_0x253c3c,'fill':_0x2093ec}),_0x7d6325[_0x4fcd1d(0x29c)]='#FFF';const _0x1c3cd1=Re,_0xf77e24=Q-Vi,_0x9515bc=at-0x2*Re;if(_0xce0abc>_0x9515bc){let _0x4d9725='',_0x5afdc2=0x0;for(const _0x5cc8d2 of _0x285892){const _0x2f4f12=_0x7d6325[_0x4fcd1d(0x23c)](_0x5cc8d2)[_0x4fcd1d(0x1fe)];if(_0x5afdc2+_0x2f4f12<=_0x9515bc-_0x7d6325[_0x4fcd1d(0x23c)]('...')[_0x4fcd1d(0x1fe)])_0x4d9725+=_0x5cc8d2,_0x5afdc2+=_0x2f4f12;else{_0x4d9725+=_0x4fcd1d(0x298);break;}}_0x7d6325['fillText'](_0x4d9725,_0x1c3cd1,_0xf77e24);}else _0x7d6325['fillText'](_0x285892,_0x1c3cd1,_0xf77e24);_0x7d6325[_0x4fcd1d(0x2ac)]();}[_0x452e49(0x3c1)](_0x1742c5){const _0x1bdc41=_0x452e49;ve[_0x1bdc41(0x2cf)](_0x1742c5,this);}}const De=_0x452e49(0x39d),Xi=_0x452e49(0x32a),Gi=_0x452e49(0x33c),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x452e49(0x3a3);class ct{constructor(_0x48f964,_0x3ed6a0,_0x504bfd,_0x394b49){const _0x2d57f6=_0x452e49;_(this,_0x2d57f6(0x363),[]),_(this,'_anchor',null),_(this,_0x2d57f6(0x314),null),_(this,_0x2d57f6(0x35d),null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0x2d57f6(0x22c)]=_0x48f964,this[_0x2d57f6(0x272)]=_0x3ed6a0,this['_docSkeleton']=_0x504bfd,this[_0x2d57f6(0x27e)]=_0x394b49,this[_0x2d57f6(0x264)]());}set[_0x452e49(0x33d)](_0x50ca3b){const _0x4ff6fc=_0x452e49;_0x50ca3b?(this[_0x4ff6fc(0x35d)]&&this['_anchorDot'][_0x4ff6fc(0x315)](),this['_textBubble']&&this[_0x4ff6fc(0x314)]['show']()):(this[_0x4ff6fc(0x35d)]&&this['_anchorDot'][_0x4ff6fc(0x254)](),this['_textBubble']&&this[_0x4ff6fc(0x314)][_0x4ff6fc(0x315)]());}[_0x452e49(0x2bf)](){const _0x3e7440=_0x452e49;for(const _0x10cd64 of this['_shapes'])_0x10cd64[_0x3e7440(0x2bf)]();this[_0x3e7440(0x314)]&&this[_0x3e7440(0x314)]['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x3e7440(0x2bf)](),this[_0x3e7440(0x2be)]&&this['_anchor'][_0x3e7440(0x2bf)](),this[_0x3e7440(0x1ce)]&&this[_0x3e7440(0x1ce)]();}[_0x452e49(0x264)](){const _0x232e82=_0x452e49;var _0x9672ed;const {_docSkeleton:_0x5e4528,_document:_0x3d95e9}=this,{color:_0x247778,name:_0x34354d,ranges:_0x18dcb0}=this['_cursor'],_0x41c92e=_0x3d95e9['getOffsetConfig'](),{docsLeft:_0x3964bb,docsTop:_0x5e356c}=_0x41c92e,_0x4dd55d=new _0x3bd387(_0x41c92e,_0x5e4528);for(const {startOffset:_0x486d19,endOffset:_0x3e69ca,rangeType:_0x39f73b,segmentId:_0x4fdda6,segmentPage:_0x217895,collapsed:_0x1e035d,isActive:_0x198e77}of _0x18dcb0){const _0x285f97=_0x5e4528[_0x232e82(0x1d7)](_0x486d19,!0x0,_0x4fdda6,_0x217895);let _0x2b9e46=_0x5e4528['findNodePositionByCharIndex'](_0x3e69ca,!0x0,_0x4fdda6,_0x217895);if(_0x2b9e46==null&&(_0x2b9e46=_0x5e4528[_0x232e82(0x1d7)](_0x3e69ca-0x1,!0x1,_0x4fdda6,_0x217895)),_0x198e77){const {contentBoxPointGroup:_0x44d601}=_0x4dd55d[_0x232e82(0x38b)](_0x2b9e46,_0x2b9e46);if(_0x44d601[_0x232e82(0x31e)]===0x0)continue;this['_drawAnchor'](_0x247778,_0x44d601,_0x3964bb,_0x5e356c,_0x34354d),this[_0x232e82(0x1ce)]=this[_0x232e82(0x33a)]();}if(_0x285f97&&_0x2b9e46){if(_0x39f73b===_0x1af5a0['RECT']){const _0x46a973=new _0x2455ca(_0x41c92e,_0x5e4528),{pointGroup:_0x1984b5}=(_0x9672ed=_0x46a973[_0x232e82(0x38b)](_0x285f97,_0x2b9e46))!=null?_0x9672ed:{};if(_0x1984b5==null||_0x1984b5['length']===0x0)continue;this[_0x232e82(0x320)](_0x247778,_0x1984b5,_0x3964bb,_0x5e356c);}else{if(!_0x1e035d){const {borderBoxPointGroup:_0xac171b}=_0x4dd55d[_0x232e82(0x38b)](_0x285f97,_0x2b9e46);if(_0xac171b[_0x232e82(0x31e)]===0x0)continue;this[_0x232e82(0x28f)](_0x247778,_0xac171b,_0x3964bb,_0x5e356c);}}}}}['_drawAnchor'](_0x1c93df,_0x47f8ba,_0x1ff4f3,_0x4affd1,_0x39ad7d){const _0x5cdc19=_0x452e49,_0x61fc5f=this[_0x5cdc19(0x1ff)](_0x47f8ba),{left:_0x1f4242,top:_0x47d04d,height:_0x9cd5e2}=_0x61fc5f,_0x21c862=this['_getScale'](),_0x3eb0dd=zi/_0x21c862,_0x3770c9=new _0x140506(De+_0x197090(z),{'left':_0x1f4242+_0x1ff4f3-_0x3eb0dd,'top':_0x47d04d+_0x4affd1,'height':_0x9cd5e2,'width':Ki,'fill':_0x1c93df||_0x303ebd(_0x2b0563[_0x5cdc19(0x22d)],0x0),'strokeWidth':_0x3eb0dd,'stroke':Ji,'evented':!0x0});this[_0x5cdc19(0x2be)]=_0x3770c9,this['_scene'][_0x5cdc19(0x377)](_0x3770c9,_0x1f06a1);const _0x4967ae=new _0x140506(De+_0x197090(z),{'left':_0x1f4242+_0x1ff4f3-_0x3eb0dd,'top':_0x47d04d+_0x4affd1-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x1c93df||_0x303ebd(_0x2b0563[_0x5cdc19(0x22d)],0x0),'strokeWidth':0x0,'stroke':_0x1c93df||_0x303ebd(_0x2b0563[_0x5cdc19(0x22d)],0x0),'evented':!0x1});this['_anchorDot']=_0x4967ae,this['_scene'][_0x5cdc19(0x377)](_0x4967ae,_0x1f06a1);const _0x156e29=new ve(De+_0x197090(z),{'left':_0x1f4242+_0x1ff4f3-_0x3eb0dd,'top':_0x47d04d+_0x4affd1-Q,'text':_0x39ad7d,'color':_0x1c93df});this[_0x5cdc19(0x314)]=_0x156e29,this[_0x5cdc19(0x272)][_0x5cdc19(0x377)](_0x156e29,_0x1f06a1),this[_0x5cdc19(0x33d)]=!0x1;}[_0x452e49(0x33a)](){const _0x553cf9=_0x452e49,_0x17c92a=this['_anchor'][_0x553cf9(0x1f1)][_0x553cf9(0x2ad)](()=>{const _0x57f625=_0x553cf9;this[_0x57f625(0x33d)]=!0x0;}),_0x12a54f=this[_0x553cf9(0x2be)][_0x553cf9(0x282)][_0x553cf9(0x2ad)](()=>{const _0x486e31=_0x553cf9;this['_hideTimer']&&clearTimeout(this[_0x486e31(0x2cb)]),this['_hideTimer']=setTimeout(()=>{const _0x3fa0fe=_0x486e31;this[_0x3fa0fe(0x33d)]=!0x1;},0x7d0);});return()=>{const _0x4c72d7=_0x553cf9;_0x17c92a[_0x4c72d7(0x310)](),_0x12a54f[_0x4c72d7(0x310)]();};}['_drawTextRange'](_0xbe5d40,_0x528b74,_0x67c99b,_0xcdb20b){const _0x53a0d5=_0x452e49,_0x52c9c6=new _0x3f764d(_0xbe5d40)[_0x53a0d5(0x3e2)](0.2)[_0x53a0d5(0x209)](),_0x5eb706=new _0x599cb4(Xi+_0x197090(z),{'pointsGroup':_0x528b74,'fill':_0x52c9c6||_0x303ebd(_0x2b0563[_0x53a0d5(0x22d)],0.2),'left':_0x67c99b,'top':_0xcdb20b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x53a0d5(0x3b7)](_0x5eb706),this[_0x53a0d5(0x272)][_0x53a0d5(0x377)](_0x5eb706,_0x1f06a1);}[_0x452e49(0x320)](_0x49b44f,_0x3541c1,_0x401241,_0x457c0e){const _0x3e043b=_0x452e49,_0x2f9d2a=new _0x3f764d(_0x49b44f)[_0x3e043b(0x3e2)](0.2)[_0x3e043b(0x209)](),_0xfedb69=new _0x599cb4(Gi+_0x197090(z),{'pointsGroup':_0x3541c1,'fill':_0x2f9d2a||_0x303ebd(_0x2b0563[_0x3e043b(0x22d)],0.2),'left':_0x401241,'top':_0x457c0e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3e043b(0x363)][_0x3e043b(0x3b7)](_0xfedb69),this['_scene'][_0x3e043b(0x377)](_0xfedb69,_0x1f06a1);}[_0x452e49(0x1ff)](_0x11f494){const _0x2ef47f=_0x11f494[0x0],_0x3598bc=_0x2ef47f[0x0],_0x2176fe=_0x2ef47f[0x2],{x:_0xc9d1c3,y:_0x1f80f8}=_0x3598bc,{x:_0x2c38f3,y:_0x4fb7b9}=_0x2176fe;return{'left':_0xc9d1c3,'top':_0x1f80f8,'width':_0x2c38f3-_0xc9d1c3,'height':_0x4fb7b9-_0x1f80f8};}[_0x452e49(0x368)](){const _0x4b6ad5=_0x452e49,{scaleX:_0x11a2bb,scaleY:_0x20b48d}=this[_0x4b6ad5(0x272)]['getAncestorScale']();return Math[_0x4b6ad5(0x20d)](_0x11a2bb,_0x20b48d);}}var Zi=Object[_0x452e49(0x337)],Qi=(_0x5c021b,_0x430975,_0x29abf8,_0x5e9682)=>{for(var _0x4cfcec=_0x5e9682>0x1?void 0x0:_0x5e9682?Zi(_0x430975,_0x29abf8):_0x430975,_0x3909a5=_0x5c021b['length']-0x1,_0x40d5df;_0x3909a5>=0x0;_0x3909a5--)(_0x40d5df=_0x5c021b[_0x3909a5])&&(_0x4cfcec=_0x40d5df(_0x4cfcec)||_0x4cfcec);return _0x4cfcec;},ie=(_0x838440,_0x888da7)=>(_0x4b037e,_0x410cb1)=>_0x888da7(_0x4b037e,_0x410cb1,_0x838440);let Fe=class extends _0xfe4864{constructor(_0x161f98,_0x428c93,_0x2fdcae,_0x4cd294,_0x580a54){const _0x54d380=_0x452e49;super(),_(this,_0x54d380(0x23b),[]),_(this,'_cursors',[]),(this[_0x54d380(0x3c0)]=_0x161f98,this[_0x54d380(0x2a3)]=_0x428c93,this[_0x54d380(0x2a8)]=_0x2fdcae,this[_0x54d380(0x299)]=_0x4cd294,this[_0x54d380(0x364)]=_0x580a54,this[_0x54d380(0x3ce)]());}[_0x452e49(0x3ce)](){const _0x9f9bb8=_0x452e49,_0x429ee0=this[_0x9f9bb8(0x3c0)]['unitId'],_0x4cfd98=this[_0x9f9bb8(0x2a3)];this[_0x9f9bb8(0x1f3)](_0x4b6a55([this['_collabCursorController']['getCollabCursors$'](_0x429ee0),this[_0x9f9bb8(0x364)]['currentTheme$']])[_0x9f9bb8(0x392)](_0x31dc22(([_0x4aadba,_0x50cede])=>({'skeleton':_0x4cfd98['getSkeleton'](),'cursors':[..._0x4aadba[_0x9f9bb8(0x1c3)]()]['flatMap'](_0x280719=>({..._0x280719,'color':this['_themeService'][_0x9f9bb8(0x36b)](_0x280719[_0x9f9bb8(0x3c7)])}))})))[_0x9f9bb8(0x251)](_0x2b30d0=>{const _0x5e93ff=_0x9f9bb8;if(this[_0x5e93ff(0x361)](),_0x2b30d0){const {skeleton:_0x161ef7,cursors:_0x4790dc}=_0x2b30d0;this[_0x5e93ff(0x212)](_0x161ef7,_0x4790dc);}})),this[_0x9f9bb8(0x384)](),this[_0x9f9bb8(0x2bd)]();}[_0x452e49(0x212)](_0x10fa81,_0xadd1c9){const _0xed8760=_0x452e49,{scene:_0xd84124,mainComponent:_0x555bbf}=this[_0xed8760(0x3c0)],_0x3c3ea2=_0xadd1c9[_0xed8760(0x25b)](_0x2b2f2a=>new ct(_0x2b2f2a,_0xd84124,_0x10fa81,_0x555bbf));this[_0xed8760(0x23b)]=_0x3c3ea2,this[_0xed8760(0x3c8)]=_0xadd1c9;}[_0x452e49(0x330)](){const _0x52cad4=_0x452e49;this[_0x52cad4(0x361)]();const {scene:_0x254f2a,mainComponent:_0xca84db}=this[_0x52cad4(0x3c0)],_0x3a5367=this[_0x52cad4(0x2a3)]['getSkeleton'](),_0x4101d5=this[_0x52cad4(0x3c8)]['map'](_0xb1a1f5=>new ct(_0xb1a1f5,_0x254f2a,_0x3a5367,_0xca84db));this[_0x52cad4(0x23b)]=_0x4101d5;}[_0x452e49(0x361)](){const _0x2a9104=_0x452e49;this[_0x2a9104(0x23b)][_0x2a9104(0x345)](_0x3591a7=>_0x3591a7[_0x2a9104(0x2bf)]()),this['_cursorShapes']=[];}[_0x452e49(0x2bd)](){const _0x3ea3e4=_0x452e49,_0x169944=[_0x11a322['id']];this[_0x3ea3e4(0x1f3)](this['_commandService']['onCommandExecuted'](_0x4ed8fe=>{const _0x2abdd1=_0x3ea3e4;_0x169944['includes'](_0x4ed8fe['id'])&&_0x4ed8fe['params']['unitId']===this[_0x2abdd1(0x3c0)]['unitId']&&this[_0x2abdd1(0x330)]();}));}[_0x452e49(0x384)](){const _0x2a7591=_0x452e49;this[_0x2a7591(0x1f3)](_0x31461e(this['_context']['engine'][_0x2a7591(0x1e7)])[_0x2a7591(0x392)](_0xa59cca(_0x34e207=>_0x34e207[_0x2a7591(0x341)]===_0x4b5d19[_0x2a7591(0x3b8)]),_0x4157de(0x10))[_0x2a7591(0x251)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x19da77(_0xdbae20)),ie(0x2,_0x19da77(H)),ie(0x3,_0x579301),ie(0x4,_0x19da77(_0x171670))],Fe);const qi=0x1,en=1.5;class tn extends _0x41defb{constructor(_0x14c4a8,_0xbfc913){const _0xc4144a=_0x452e49;super(_0x14c4a8,_0xbfc913),_(this,'_color'),_(this,_0xc4144a(0x2b9),!0x1),_(this,_0xc4144a(0x2ca)),_(this,_0xc4144a(0x37e),''),_(this,_0xc4144a(0x23a),_0xc4144a(0x3c2)),_(this,_0xc4144a(0x3c6)),(_0xbfc913&&this['setShapeProps'](_0xbfc913),this[_0xc4144a(0x1f1)][_0xc4144a(0x2ad)](()=>this[_0xc4144a(0x3ae)]({'hovered':!0x0})),this[_0xc4144a(0x282)][_0xc4144a(0x2ad)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x452e49(0x3ae)](_0x1283d9){const _0x27ec7a=_0x452e49;var _0x4bbf61,_0x57e5d7,_0x56773b,_0x2735e9,_0x50a05f,_0x49d065;this['_color']=(_0x4bbf61=_0x1283d9[_0x27ec7a(0x3c7)])!=null?_0x4bbf61:this[_0x27ec7a(0x3bb)],this['_hovered']=(_0x57e5d7=_0x1283d9['hovered'])!=null?_0x57e5d7:this[_0x27ec7a(0x2b9)],this[_0x27ec7a(0x2ca)]=(_0x56773b=_0x1283d9[_0x27ec7a(0x313)])!=null?_0x56773b:this[_0x27ec7a(0x2ca)],this[_0x27ec7a(0x37e)]=(_0x2735e9=_0x1283d9[_0x27ec7a(0x262)])!=null?_0x2735e9:this[_0x27ec7a(0x37e)],this[_0x27ec7a(0x23a)]=(_0x50a05f=_0x1283d9['labelPosition'])!=null?_0x50a05f:this[_0x27ec7a(0x23a)],this[_0x27ec7a(0x3c6)]=(_0x49d065=_0x1283d9[_0x27ec7a(0x1e4)])!=null?_0x49d065:this[_0x27ec7a(0x3c6)],this['transformByState']({'width':_0x1283d9[_0x27ec7a(0x1fe)],'height':_0x1283d9[_0x27ec7a(0x233)]});}[_0x452e49(0x1bf)](_0x442152){const _0xd429e3=_0x452e49,{row:_0x279499,column:_0x246fb3}=_0x442152;if(_0x279499>=this[_0xd429e3(0x2ca)]['startRow']&&_0x279499<=this[_0xd429e3(0x2ca)][_0xd429e3(0x326)]&&_0x246fb3>=this['_range']['startColumn']&&_0x246fb3<=this[_0xd429e3(0x2ca)][_0xd429e3(0x2ea)]){this[_0xd429e3(0x3ae)]({'hovered':!0x0});return;}this[_0xd429e3(0x3ae)]({'hovered':!0x1});}['triggerDblclick'](_0x5e43cf){return!0x1;}['_draw'](_0x5500e0){const _0x18fd07=_0x452e49;_0x140506[_0x18fd07(0x2cf)](_0x5500e0,{'width':this[_0x18fd07(0x1fe)],'height':this[_0x18fd07(0x233)],'strokeWidth':en,'stroke':this[_0x18fd07(0x3bb)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x18fd07(0x2b9)]&&(_0x5500e0[_0x18fd07(0x383)](),_0x5500e0['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x18fd07(0x23a)]===_0x18fd07(0x222)?0x0:-Q),ve[_0x18fd07(0x2cf)](_0x5500e0,{'text':this[_0x18fd07(0x37e)],'color':this['_color']}),_0x5500e0['restore']());}}var sn=Object[_0x452e49(0x337)],nn=(_0xd5a7fb,_0x281b19,_0x59b05c,_0x54a84c)=>{const _0x5d4c74=_0x452e49;for(var _0x9d6a79=_0x54a84c>0x1?void 0x0:_0x54a84c?sn(_0x281b19,_0x59b05c):_0x281b19,_0x240f46=_0xd5a7fb[_0x5d4c74(0x31e)]-0x1,_0x7a8824;_0x240f46>=0x0;_0x240f46--)(_0x7a8824=_0xd5a7fb[_0x240f46])&&(_0x9d6a79=_0x7a8824(_0x9d6a79)||_0x9d6a79);return _0x9d6a79;},be=(_0x57a183,_0x536f66)=>(_0x4a6daf,_0x45794c)=>_0x536f66(_0x4a6daf,_0x45794c,_0x57a183);const rn=0x1389;let ke=class extends _0xfe4864{constructor(_0x326711,_0x45c5a5,_0x263a09,_0x244a05){const _0x521add=_0x452e49;super(),_(this,_0x521add(0x3c8),new Set()),_(this,_0x521add(0x1e0),null),(this['_context']=_0x326711,this[_0x521add(0x33f)]=_0x45c5a5,this[_0x521add(0x2a8)]=_0x263a09,this[_0x521add(0x364)]=_0x244a05,this[_0x521add(0x3ce)]());}[_0x452e49(0x3ce)](){const _0x217812=_0x452e49;this[_0x217812(0x33f)]['currentSkeleton$'][_0x217812(0x392)](_0x2cd925(this[_0x217812(0x2ef)]),_0x95c4a7(_0x4a3048=>{const _0x1ed15d=_0x217812;if(_0x4a3048){const _0x3210b7=_0x4a3048[_0x1ed15d(0x29b)];return _0x4b6a55(this[_0x1ed15d(0x2a8)][_0x1ed15d(0x2b2)](this[_0x1ed15d(0x3c0)][_0x1ed15d(0x1ec)]),this[_0x1ed15d(0x364)][_0x1ed15d(0x1cb)])['pipe'](_0x31dc22(([_0x176521,_0x252ee2])=>{const _0x3a875f=_0x1ed15d,_0x1479fd=new Map();return _0x176521[_0x3a875f(0x345)]((_0x5f145d,_0x533202)=>{const _0x489e52=_0x3a875f;if(_0x5f145d[_0x489e52(0x296)]===_0x3210b7){const _0x47cbe4={..._0x5f145d};_0x47cbe4[_0x489e52(0x3c7)]=this[_0x489e52(0x364)]['getColorFromTheme'](_0x5f145d[_0x489e52(0x3c7)]),_0x1479fd[_0x489e52(0x26e)](_0x533202,_0x47cbe4);}}),{'skeleton':_0x4a3048,'cursors':_0x1479fd};}));}return _0x47af60({'skeleton':null,'cursors':new Map()});}))[_0x217812(0x251)](({skeleton:_0x238625,cursors:_0x4dff25})=>{const _0x25893c=_0x217812;this[_0x25893c(0x361)](),_0x238625&&this['_updateCollabCursors'](_0x238625,_0x4dff25);}),this[_0x217812(0x33f)][_0x217812(0x27b)][_0x217812(0x251)](_0x4f83f7=>{const _0x36f2a9=_0x217812;if(_0x4f83f7==null)return;const {skeleton:_0x53aedf}=_0x4f83f7,{scene:_0x3aaf05}=this[_0x36f2a9(0x3c0)];_0x3aaf05[_0x36f2a9(0x34b)][_0x36f2a9(0x2ad)](_0x25a216(_0x550544=>{const _0x4f3cac=_0x36f2a9;var _0x7ca3ae,_0x573811;const {offsetX:_0x46ba3a,offsetY:_0x591117}=_0x550544,{x:_0xd97009,y:_0x5111e6}=_0x3aaf05[_0x4f3cac(0x271)](_0x15106f[_0x4f3cac(0x2b3)]([_0x46ba3a,_0x591117])),{scaleX:_0x248c63,scaleY:_0x19fecb}=_0x3aaf05[_0x4f3cac(0x2d8)](),_0x5b3c22=_0x3aaf05[_0x4f3cac(0x30a)](_0x16eb17[_0x4f3cac(0x238)]),_0x54bdc8=_0x3aaf05['getVpScrollXYInfoByPosToVp'](_0x15106f[_0x4f3cac(0x2b3)]([_0xd97009,_0x5111e6]),_0x5b3c22),_0x300a4f=_0x53aedf[_0x4f3cac(0x2cd)](_0x46ba3a,_0x591117,_0x248c63,_0x19fecb,_0x54bdc8);((_0x7ca3ae=this[_0x4f3cac(0x1e0)])==null?void 0x0:_0x7ca3ae['column'])===_0x300a4f[_0x4f3cac(0x2ed)]&&((_0x573811=this[_0x4f3cac(0x1e0)])==null?void 0x0:_0x573811[_0x4f3cac(0x3c4)])===_0x300a4f[_0x4f3cac(0x3c4)]||this[_0x4f3cac(0x3c8)][_0x4f3cac(0x345)](_0x45bbff=>{const _0x44e090=_0x4f3cac;_0x45bbff[_0x44e090(0x1bf)](_0x300a4f);});},0x64));});}[_0x452e49(0x212)](_0x39bc14,_0x33c173){const _0xdaad1f=_0x452e49;var _0x3cc703;const _0x481dac=(_0x3cc703=this[_0xdaad1f(0x33f)][_0xdaad1f(0x2cc)]())==null?void 0x0:_0x3cc703[_0xdaad1f(0x24f)];if(!_0x481dac)return;const _0x1c7a23=this[_0xdaad1f(0x25d)]();if(!_0x1c7a23)return;this[_0xdaad1f(0x3c8)][_0xdaad1f(0x345)](_0x3eb0c5=>{_0x3eb0c5['makeDirty']();});const {scene:_0x57d4ed}=_0x1c7a23,_0x505513=on(Array['from'](_0x33c173[_0xdaad1f(0x1c3)]()))[_0xdaad1f(0x25b)](_0x2ee1f5=>{const _0x311d71=_0xdaad1f,{color:_0x267c41,range:_0x12d583,name:_0x1931b8,selection:_0x5bbade,sheetID:_0x448baf}=_0x2ee1f5,{startColumn:_0x120702,startRow:_0x944558,endColumn:_0x4f2fc3,endRow:_0x222468}=_0x12d583,_0x21f07f=_0x3626be(_0x944558,_0x120702,_0x57d4ed,_0x481dac),_0x487f63=_0x3626be(_0x222468,_0x4f2fc3,_0x57d4ed,_0x481dac),{columnHeaderHeightAndMarginTop:_0x4692c7}=_0x481dac,{startX:_0x18b520,startY:_0x81fbf1}=_0x21f07f,{endX:_0x5ac07d,endY:_0x3731d0}=_0x487f63,_0x5ee8dc=_0x5ac07d-_0x18b520,_0x14e5d5=_0x3731d0-_0x81fbf1,_0x516a2d={'labelPosition':_0x81fbf1-_0x4692c7>=Q?_0x311d71(0x3c2):_0x311d71(0x222),'sheetID':_0x448baf,'range':_0x12d583,'color':_0x267c41,'name':_0x1931b8,'selection':_0x5bbade,'left':_0x18b520,'top':_0x81fbf1,'width':_0x5ee8dc,'height':_0x14e5d5,'evented':!0x1,'zIndex':rn};return new tn(_0x1931b8,_0x516a2d);});_0x57d4ed[_0xdaad1f(0x1ef)](_0x505513,qi),this[_0xdaad1f(0x3c8)]=new Set(_0x505513);}[_0x452e49(0x361)](){const _0x5c71d8=_0x452e49;var _0x21d090;(_0x21d090=this[_0x5c71d8(0x3c8)])==null||_0x21d090[_0x5c71d8(0x345)](_0x1866ee=>_0x1866ee[_0x5c71d8(0x2bf)]());}['_getSheetObject'](){const _0x4bd14e=_0x452e49;return _0x2caad8(this[_0x4bd14e(0x3c0)][_0x4bd14e(0x2c1)],this[_0x4bd14e(0x3c0)]);}};ke=nn([be(0x1,_0x19da77(_0x2fe7e2)),be(0x2,_0x19da77(H)),be(0x3,_0x19da77(_0x171670))],ke);function on(_0x5468de){const _0x3c3ce9=_0x452e49,_0x41b200=new Map();return _0x5468de['forEach'](_0x2ef6b7=>{const _0x498289=_0xbe1d;if(_0x41b200['has'](_0x2ef6b7[_0x498289(0x25e)])){const _0x130da0=_0x41b200[_0x498289(0x3db)](_0x2ef6b7[_0x498289(0x25e)]);_0x130da0[_0x498289(0x262)]+=',\x20'+_0x2ef6b7[_0x498289(0x262)];}else _0x41b200['set'](_0x2ef6b7[_0x498289(0x25e)],_0x2ef6b7);}),Array[_0x3c3ce9(0x2d4)](_0x41b200[_0x3c3ce9(0x1c3)]());}var an=Object[_0x452e49(0x337)],cn=(_0x1a3097,_0x5ef993,_0x19b8fc,_0x43a436)=>{const _0x5430d4=_0x452e49;for(var _0x37ec8c=_0x43a436>0x1?void 0x0:_0x43a436?an(_0x5ef993,_0x19b8fc):_0x5ef993,_0x887239=_0x1a3097[_0x5430d4(0x31e)]-0x1,_0x4b7ff9;_0x887239>=0x0;_0x887239--)(_0x4b7ff9=_0x1a3097[_0x887239])&&(_0x37ec8c=_0x4b7ff9(_0x37ec8c)||_0x37ec8c);return _0x37ec8c;},F=(_0x2d805b,_0x257762)=>(_0x412723,_0x164a44)=>_0x257762(_0x412723,_0x164a44,_0x2d805b);let _e=class extends _0x2aa59a{constructor(_0x35de8c,_0x551bb6,_0x58c2cd,_0x202a52,_0x118cb8,_0x89fe96){const _0x2d6444=_0x452e49;super(),this[_0x2d6444(0x23d)]=_0x35de8c,this['_localCacheService']=_0x551bb6,this[_0x2d6444(0x2eb)]=_0x58c2cd,this['_messageService']=_0x202a52,this[_0x2d6444(0x356)]=_0x118cb8,this[_0x2d6444(0x1e3)]=_0x89fe96,this[_0x2d6444(0x3ad)](),this[_0x2d6444(0x328)]();}['_setupBeforeClosingHandler'](){const _0x30aec8=_0x452e49;this[_0x30aec8(0x1f3)](this[_0x30aec8(0x23d)][_0x30aec8(0x245)](()=>{const _0x10df4b=_0x30aec8;if(this['_localCacheService'][_0x10df4b(0x2e0)][_0x10df4b(0x1af)])return this['_localeService']['t'](_0x10df4b(0x373));}));}[_0x452e49(0x328)](){const _0x2a8fe9=_0x452e49;this[_0x2a8fe9(0x1f3)](this['_collaborationUIEventService'][_0x2a8fe9(0x2d2)][_0x2a8fe9(0x251)](_0x34c796=>{const _0x14403c=_0x2a8fe9;_0x34c796['id']===_0x11870e[_0x14403c(0x3a0)]&&this['_messageService'][_0x14403c(0x254)]({'type':_0x178881[_0x14403c(0x1c0)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x34c796['id']===_0x11870e[_0x14403c(0x378)]&&this[_0x14403c(0x268)][_0x14403c(0x254)]({'type':_0x178881['Warning'],'content':this[_0x14403c(0x1e3)]['t'](_0x14403c(0x252))}),_0x34c796['id']===_0x11870e[_0x14403c(0x387)]&&this['_notificationService']['show']({'title':this[_0x14403c(0x1e3)]['t'](_0x14403c(0x279)),'content':this[_0x14403c(0x1e3)]['t'](_0x14403c(0x2f9)),'type':_0x14403c(0x258),'duration':0x0}),_0x34c796['id']===_0x11870e[_0x14403c(0x39a)]&&this[_0x14403c(0x268)]['show']({'type':_0x178881['Error'],'content':this[_0x14403c(0x1e3)]['t'](_0x14403c(0x252))+'('+_0x34c796['data']+')'}),_0x34c796['id']===_0x11870e['JOIN_ROOM_FAILED']&&this[_0x14403c(0x268)][_0x14403c(0x254)]({'type':_0x178881[_0x14403c(0x1c0)],'content':this[_0x14403c(0x1e3)]['t'](_0x34c796['data']||'')}),_0x34c796['id']===_0x11870e[_0x14403c(0x37b)]&&this[_0x14403c(0x268)][_0x14403c(0x254)]({'type':_0x178881[_0x14403c(0x1c0)],'content':this['_localeService']['t'](_0x14403c(0x3c5))}),_0x34c796['id']===_0x11870e['SOCKET_FAILED']&&this['_messageService'][_0x14403c(0x254)]({'type':_0x178881[_0x14403c(0x3b2)],'content':this[_0x14403c(0x1e3)]['t'](_0x14403c(0x2e5))}),_0x34c796['id']===_0x11870e['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x14403c(0x254)]({'type':_0x178881['Error'],'content':this['_localeService']['t'](_0x14403c(0x27a))});}));}};_e=cn([F(0x0,_0x2480ed),F(0x1,_0x5978b0),F(0x2,_0x19da77(_0x10ca03)),F(0x3,_0x53a10f),F(0x4,_0x3dc479),F(0x5,_0x19da77(_0xdfe5e8))],_e);var _n=Object[_0x452e49(0x337)],ln=(_0x28713c,_0x30f541,_0x1dca49,_0x226180)=>{for(var _0x594de6=_0x226180>0x1?void 0x0:_0x226180?_n(_0x30f541,_0x1dca49):_0x30f541,_0x166ff5=_0x28713c['length']-0x1,_0xb408c2;_0x166ff5>=0x0;_0x166ff5--)(_0xb408c2=_0x28713c[_0x166ff5])&&(_0x594de6=_0xb408c2(_0x594de6)||_0x594de6);return _0x594de6;},ne=(_0x72d82d,_0x5324c6)=>(_0x3a55a0,_0x6ec1c8)=>_0x5324c6(_0x3a55a0,_0x6ec1c8,_0x72d82d);let le=class extends _0x2aa59a{constructor(_0x39b81d,_0x28074b,_0x217067,_0x41af30){const _0x20223e=_0x452e49;super(),_(this,_0x20223e(0x216)),(this[_0x20223e(0x3b9)]=_0x39b81d,this[_0x20223e(0x2b0)]=_0x28074b,this[_0x20223e(0x3d2)]=_0x217067,this['_collaborationSessionService']=_0x41af30,this[_0x20223e(0x3ce)]());}[_0x452e49(0x3ce)](){const _0x5966f2=_0x452e49;this[_0x5966f2(0x370)](),this[_0x5966f2(0x259)](),this[_0x5966f2(0x1f8)](),this[_0x5966f2(0x25a)]();}[_0x452e49(0x25a)](){const _0x4bae3c=_0x452e49;this['disposeWithMe'](this[_0x4bae3c(0x322)]['socket$'][_0x4bae3c(0x251)](_0x54f901=>{const _0x1aabae=_0x4bae3c;this[_0x1aabae(0x216)]=_0x54f901==null?void 0x0:_0x54f901[_0x1aabae(0x351)];}));}[_0x452e49(0x370)](){const _0x5bbe68=_0x452e49,_0xaa43c6=_0x4d7add=>{const _0x432e11=_0xbe1d;var _0x4125cf;this[_0x432e11(0x2e4)](_0x432e11(0x258),_0x432e11(0x1fa)+_0x4d7add['message']+'\x20at\x20'+_0x4d7add[_0x432e11(0x240)]+':'+_0x4d7add['lineno']+':'+_0x4d7add['colno']+'\x0a'+(((_0x4125cf=_0x4d7add[_0x432e11(0x258)])==null?void 0x0:_0x4125cf[_0x432e11(0x324)])||''));};window[_0x5bbe68(0x396)](_0x5bbe68(0x258),_0xaa43c6),this[_0x5bbe68(0x1f3)](()=>{const _0x281800=_0x5bbe68;window[_0x281800(0x334)](_0x281800(0x258),_0xaa43c6);});}[_0x452e49(0x259)](){const _0x5bb15a=_0x452e49,_0x35700b=_0x3bbf5f=>{const _0x57932a=_0xbe1d;this[_0x57932a(0x2e4)]('error',_0x57932a(0x226)+_0x3bbf5f[_0x57932a(0x231)]);};window['addEventListener'](_0x5bb15a(0x284),_0x35700b),this[_0x5bb15a(0x1f3)](()=>{const _0xfee67c=_0x5bb15a;window[_0xfee67c(0x334)](_0xfee67c(0x284),_0x35700b);});}[_0x452e49(0x1f8)](){const _0x1c5529=_0x452e49,_0x595046=this[_0x1c5529(0x3d2)][_0x1c5529(0x258)][_0x1c5529(0x2f2)](this[_0x1c5529(0x3d2)]);this[_0x1c5529(0x3d2)][_0x1c5529(0x258)]=(..._0x562332)=>{const _0x1930ed=_0x1c5529,_0x4f3dea=_0x562332[_0x1930ed(0x25b)](_0x5e8f87=>_0x5e8f87 instanceof Error?_0x5e8f87['message']+'\x0a'+_0x5e8f87[_0x1930ed(0x324)]:String(_0x5e8f87))[_0x1930ed(0x2d1)]('\x20');this[_0x1930ed(0x2e4)](_0x1930ed(0x258),_0x1930ed(0x2c5)+_0x4f3dea),_0x595046(..._0x562332);},this[_0x1c5529(0x1f3)](()=>{const _0x5e0ac6=_0x1c5529;this[_0x5e0ac6(0x3d2)][_0x5e0ac6(0x258)]=_0x595046;});}['_uploadLog'](_0x1000aa,_0x2f7371){const _0x3532f8=_0x452e49;try{const _0x327b9c={'userId':this['_memberID'],'logLabel':_0x1000aa,'content':_0x2f7371};this[_0x3532f8(0x2b0)]['post'](_0x3532f8(0x3d1),{'body':_0x327b9c})[_0x3532f8(0x2c2)](()=>{});}catch{}}};le=ln([ne(0x0,_0x19da77(_0x3caca9)),ne(0x1,_0x19da77(_0x51f60c)),ne(0x2,_0x41d2f2),ne(0x3,_0x19da77(_0x513f8f))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x452e49(0x337)],dn=(_0x5d1657,_0x5ebbd2,_0x458638,_0x784c11)=>{const _0x59dbc1=_0x452e49;for(var _0x1eddc6=_0x784c11>0x1?void 0x0:_0x784c11?un(_0x5ebbd2,_0x458638):_0x5ebbd2,_0xe126a7=_0x5d1657[_0x59dbc1(0x31e)]-0x1,_0x4a182f;_0xe126a7>=0x0;_0xe126a7--)(_0x4a182f=_0x5d1657[_0xe126a7])&&(_0x1eddc6=_0x4a182f(_0x1eddc6)||_0x1eddc6);return _0x1eddc6;},lt=(_0x542be8,_0x2fa44e)=>(_0x3eea8f,_0x57a305)=>_0x2fa44e(_0x3eea8f,_0x57a305,_0x542be8);let he=class{constructor(_0x2b770,_0x5e7113){const _0x59e132=_0x452e49;this[_0x59e132(0x248)]=_0x2b770,this[_0x59e132(0x205)]=_0x5e7113;}[_0x452e49(0x244)](_0x4a38a3){const _0x3eb5b6=_0x452e49;this[_0x3eb5b6(0x1b0)](_0x4a38a3),this[_0x3eb5b6(0x3af)](_0x4a38a3);}[_0x452e49(0x1ed)](_0x4e8151){const _0x3f56a8=_0x452e49,{unitID:_0x33034e}=_0x4e8151,_0x19a329=this[_0x3f56a8(0x205)][_0x3f56a8(0x29a)](_0x33034e)[_0x3f56a8(0x29f)](_0x2f7fdc),{redoCache:_0x304cf4}=_0x19a329[_0x3f56a8(0x257)]();if(_0x304cf4[_0x3f56a8(0x31e)]===0x0)return _0x4e8151;let _0x1b6d7f=_0x46aa2d[_0x3f56a8(0x38c)](_0x4e8151[_0x3f56a8(0x2f5)][0x0]);for(let _0x8f4bfd=0x0;_0x8f4bfd<_0x304cf4[_0x3f56a8(0x31e)];_0x8f4bfd++){const _0x4b9acf={'id':_0x3f56a8(0x349),'params':{..._0x304cf4[_0x8f4bfd]}},_0x404cc0=this[_0x3f56a8(0x248)][_0x3f56a8(0x1b8)](_0x1b6d7f,_0x4b9acf,!0x1);if(_0x2e9ee5(_0x404cc0))throw _0x404cc0[_0x3f56a8(0x258)];_0x1b6d7f=_0x404cc0[_0x3f56a8(0x386)];}return{..._0x46aa2d[_0x3f56a8(0x38c)](_0x4e8151),'mutations':[_0x1b6d7f]};}[_0x452e49(0x1b0)](_0xb652ac){const _0x2127e0=_0x452e49,{unitID:_0xb9a7bf}=_0xb652ac,_0x5bdda9=this['_renderManagerService']['getRenderById'](_0xb9a7bf)[_0x2127e0(0x29f)](_0x2f7fdc),{undoCache:_0x1be847,redoCache:_0x597e8a}=_0x5bdda9['getUndoRedoMutationParamsCache']();if(_0x1be847['length']===0x0||_0x597e8a[_0x2127e0(0x31e)]===0x0)return;const _0x5a4845=[],_0xa6f399=[];let _0x52a440=_0x46aa2d[_0x2127e0(0x38c)](_0xb652ac[_0x2127e0(0x2f5)][0x0]),_0x5c3d6d=_0x46aa2d[_0x2127e0(0x38c)](_0xb652ac[_0x2127e0(0x2f5)][0x0]);for(let _0x5d9de7=_0x1be847['length']-0x1;_0x5d9de7>=0x0;_0x5d9de7--){const _0x2179c3={'id':'doc.mutation.rich-text-editing','params':{..._0x1be847[_0x5d9de7]}},_0x193fca={'id':_0x2127e0(0x349),'params':{..._0x597e8a[_0x5d9de7]}},_0x3db783=this[_0x2127e0(0x248)]['transformMutation'](_0x52a440,_0x2179c3,!0x1),_0x35fb59=this[_0x2127e0(0x248)]['transformMutation'](_0x5c3d6d,_0x193fca,!0x1);if(_0x2e9ee5(_0x3db783))throw _0x3db783[_0x2127e0(0x258)];if(_0x2e9ee5(_0x35fb59))throw _0x35fb59[_0x2127e0(0x258)];_0x5a4845[_0x2127e0(0x2fa)](_0x3db783['m2Prime'][_0x2127e0(0x308)]),_0xa6f399[_0x2127e0(0x2fa)](_0x35fb59[_0x2127e0(0x1da)][_0x2127e0(0x308)]),_0x52a440=_0x3db783[_0x2127e0(0x386)],_0x5c3d6d=_0x35fb59[_0x2127e0(0x386)];}_0x5bdda9['setUndoRedoMutationParamsCache']({'undoCache':_0x5a4845,'redoCache':_0xa6f399});}['_transformPreviousActiveRange'](_0x271690){const _0x313ef3=_0x452e49,{unitID:_0x528da3}=_0x271690,_0x4cb200=this['_renderManagerService'][_0x313ef3(0x29a)](_0x528da3)[_0x313ef3(0x29f)](_0x2f7fdc),_0x521ee8=_0x4cb200[_0x313ef3(0x3cf)]();if(_0x521ee8==null)return;const _0x49bb29=[{'id':_0x313ef3(0x349),'params':{'unitId':_0x271690[_0x313ef3(0x2fe)],'actions':null,'textRanges':[_0x521ee8]}}],_0x6743ea=this[_0x313ef3(0x248)][_0x313ef3(0x3ba)](_0x271690,_0x49bb29);if(!_0x195c6c(_0x6743ea))throw _0x6743ea[_0x313ef3(0x258)];const _0x2e4511=_0x6743ea[_0x313ef3(0x1da)][0x0][_0x313ef3(0x308)][_0x313ef3(0x1c8)];Array['isArray'](_0x2e4511)&&_0x2e4511[_0x313ef3(0x31e)]&&_0x4cb200[_0x313ef3(0x26c)](_0x2e4511[0x0]);}};he=dn([lt(0x0,_0x514b1e),lt(0x1,_0x5d2559)],he);var Sn=Object[_0x452e49(0x337)],In=(_0x46ff1d,_0x572e63,_0x180188,_0x4cf160)=>{const _0x50b622=_0x452e49;for(var _0x521775=_0x4cf160>0x1?void 0x0:_0x4cf160?Sn(_0x572e63,_0x180188):_0x572e63,_0x5bcd4a=_0x46ff1d[_0x50b622(0x31e)]-0x1,_0x40c8fe;_0x5bcd4a>=0x0;_0x5bcd4a--)(_0x40c8fe=_0x46ff1d[_0x5bcd4a])&&(_0x521775=_0x40c8fe(_0x521775)||_0x521775);return _0x521775;},Le=(_0x17bef4,_0x16424d)=>(_0x385b63,_0x5a8be0)=>_0x16424d(_0x385b63,_0x5a8be0,_0x17bef4);let ue=class{constructor(_0x512ee0,_0x22f72b,_0x2677f3){const _0x3fdd2b=_0x452e49;this[_0x3fdd2b(0x3b9)]=_0x512ee0,this[_0x3fdd2b(0x248)]=_0x22f72b,this[_0x3fdd2b(0x25f)]=_0x2677f3;}[_0x452e49(0x340)](_0x70b940){const _0x3c5180=_0x452e49;this[_0x3c5180(0x2ee)](_0x70b940);}[_0x452e49(0x1ed)](_0x37d846){const _0x325ada=_0x452e49,{unitID:_0x2d12a4}=_0x37d846,{collaboration:_0x4e3d2c}=this[_0x325ada(0x25f)][_0x325ada(0x300)](_0x2d12a4);if(_0x4e3d2c['length']===0x0)return _0x37d846;let _0xc354aa=_0x46aa2d[_0x325ada(0x38c)](_0x37d846[_0x325ada(0x2f5)][0x0]);for(let _0x3f7bd4=0x0;_0x3f7bd4<_0x4e3d2c['length'];_0x3f7bd4++){const _0xabef6a={'id':_0x325ada(0x349),'params':{'unitId':_0x4e3d2c[_0x3f7bd4][_0x325ada(0x1ec)],..._0x4e3d2c[_0x3f7bd4][_0x325ada(0x3b4)]}},_0x5138ec=this['_transformService'][_0x325ada(0x1b8)](_0xc354aa,_0xabef6a,!0x1);if(_0x2e9ee5(_0x5138ec))throw _0x5138ec[_0x325ada(0x258)];_0xc354aa=_0x5138ec[_0x325ada(0x386)];}return{..._0x46aa2d[_0x325ada(0x38c)](_0x37d846),'mutations':[_0xc354aa]};}[_0x452e49(0x2ee)](_0x4fb1c1){const _0x8025ca=_0x452e49,{unitID:_0xda9b6e}=_0x4fb1c1,{history:_0x47f7d7,collaboration:_0x47c7b7}=this[_0x8025ca(0x25f)][_0x8025ca(0x300)](_0xda9b6e);if(_0x47f7d7[_0x8025ca(0x31e)]===0x0&&_0x47c7b7[_0x8025ca(0x31e)]===0x0)return;const _0x26a02d=[],_0x43bde2=[];let _0x2aecac=_0x46aa2d[_0x8025ca(0x38c)](_0x4fb1c1['mutations'][0x0]),_0x2ae378=_0x46aa2d['deepClone'](_0x4fb1c1['mutations'][0x0]);for(let _0x1b57f7=_0x47f7d7[_0x8025ca(0x31e)]-0x1;_0x1b57f7>=0x0;_0x1b57f7--){const _0x3c2f72={'id':_0x8025ca(0x349),'params':{'unitId':_0x47f7d7[_0x1b57f7][_0x8025ca(0x1ec)],..._0x47f7d7[_0x1b57f7][_0x8025ca(0x2ec)]}},_0x2bc838={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x47f7d7[_0x1b57f7][_0x8025ca(0x1ec)],..._0x47f7d7[_0x1b57f7][_0x8025ca(0x3b4)]}},_0x2e7866=this[_0x8025ca(0x248)][_0x8025ca(0x1b8)](_0x2aecac,_0x3c2f72,!0x1),_0x5d9f37=this['_transformService'][_0x8025ca(0x1b8)](_0x2ae378,_0x2bc838,!0x1);if(_0x2e9ee5(_0x2e7866))throw _0x2e7866[_0x8025ca(0x258)];if(_0x2e9ee5(_0x5d9f37))throw _0x5d9f37[_0x8025ca(0x258)];_0x26a02d[_0x8025ca(0x2fa)]({..._0x47f7d7[_0x1b57f7],'undoState':_0x2e7866[_0x8025ca(0x1da)][_0x8025ca(0x308)],'redoState':_0x5d9f37[_0x8025ca(0x1da)][_0x8025ca(0x308)]}),_0x2aecac=_0x2e7866[_0x8025ca(0x386)],_0x2ae378=_0x5d9f37['m1Prime'];}_0x2aecac=_0x46aa2d['deepClone'](_0x4fb1c1[_0x8025ca(0x2f5)][0x0]),_0x2ae378=_0x46aa2d[_0x8025ca(0x38c)](_0x4fb1c1['mutations'][0x0]);for(let _0x5b7d3b=_0x47c7b7[_0x8025ca(0x31e)]-0x1;_0x5b7d3b>=0x0;_0x5b7d3b--){const _0x1cf4f7={'id':_0x8025ca(0x349),'params':{'unitId':_0x47c7b7[_0x5b7d3b][_0x8025ca(0x1ec)],..._0x47c7b7[_0x5b7d3b]['undoState']}},_0x23b186={'id':_0x8025ca(0x349),'params':{'unitId':_0x47c7b7[_0x5b7d3b]['unitId'],..._0x47c7b7[_0x5b7d3b][_0x8025ca(0x3b4)]}},_0x86420b=this[_0x8025ca(0x248)][_0x8025ca(0x1b8)](_0x2aecac,_0x1cf4f7,!0x1),_0x28f54a=this[_0x8025ca(0x248)][_0x8025ca(0x1b8)](_0x2ae378,_0x23b186,!0x1);if(_0x2e9ee5(_0x86420b))throw _0x86420b[_0x8025ca(0x258)];if(_0x2e9ee5(_0x28f54a))throw _0x28f54a[_0x8025ca(0x258)];_0x43bde2[_0x8025ca(0x2fa)]({..._0x47c7b7[_0x5b7d3b],'undoState':_0x86420b[_0x8025ca(0x1da)][_0x8025ca(0x308)],'redoState':_0x28f54a[_0x8025ca(0x1da)][_0x8025ca(0x308)]}),_0x2aecac=_0x86420b[_0x8025ca(0x386)],_0x2ae378=_0x28f54a[_0x8025ca(0x386)];}this[_0x8025ca(0x25f)][_0x8025ca(0x273)](_0xda9b6e,{'history':_0x26a02d,'collaboration':_0x43bde2});}};ue=In([Le(0x0,_0x19da77(_0x3caca9)),Le(0x1,_0x514b1e),Le(0x2,_0x19da77(_0x376d5d))],ue);var mn=Object[_0x452e49(0x337)],fn=(_0x50677f,_0x64cb9a,_0x2687bb,_0x31be39)=>{for(var _0x781fb=_0x31be39>0x1?void 0x0:_0x31be39?mn(_0x64cb9a,_0x2687bb):_0x64cb9a,_0x3f9a5b=_0x50677f['length']-0x1,_0x5e7ec8;_0x3f9a5b>=0x0;_0x3f9a5b--)(_0x5e7ec8=_0x50677f[_0x3f9a5b])&&(_0x781fb=_0x5e7ec8(_0x781fb)||_0x781fb);return _0x781fb;},ht=(_0x160f0c,_0x3b4458)=>(_0x251806,_0x251e04)=>_0x3b4458(_0x251806,_0x251e04,_0x160f0c);let de=class{constructor(_0x2ac642,_0x1af570){const _0x4db6e4=_0x452e49;this[_0x4db6e4(0x3b9)]=_0x2ac642,this[_0x4db6e4(0x248)]=_0x1af570;}[_0x452e49(0x22a)](_0x5e6564){const _0x21a4ba=_0x452e49;var _0x2074fb;const _0x1140b9=this[_0x21a4ba(0x3b9)]['get'](_0x4bdd23),_0x48b126=(_0x2074fb=_0x1140b9[_0x21a4ba(0x236)]())!=null?_0x2074fb:[];if(_0x48b126[_0x21a4ba(0x31e)]===0x0)return;const _0x49317d=_0x5e6564[_0x21a4ba(0x2fe)],_0xa338e6=[{'id':_0x21a4ba(0x349),'params':{'unitId':_0x49317d,'actions':null,'textRanges':_0x48b126}}],_0x3f9197=this[_0x21a4ba(0x248)]['transformMutationsWithChangeset'](_0x5e6564,_0xa338e6);if(!_0x195c6c(_0x3f9197))throw _0x3f9197['error'];const _0x12dddc=_0x3f9197['m2Prime'][0x0][_0x21a4ba(0x308)]['textRanges'];Array['isArray'](_0x12dddc)&&_0x12dddc[_0x21a4ba(0x31e)]&&_0x1140b9[_0x21a4ba(0x375)](_0x12dddc,{'unitId':_0x49317d,'subUnitId':_0x49317d},!0x1);}};de=fn([ht(0x0,_0x19da77(_0x3caca9)),ht(0x1,_0x514b1e)],de);function _0xbe1d(_0x4048c7,_0x1d4b00){_0x4048c7=_0x4048c7-0x1af;const _0x3171e2=_0x3171();let _0xbe1d0f=_0x3171e2[_0x4048c7];return _0xbe1d0f;}var gn=Object[_0x452e49(0x337)],En=(_0x5695f2,_0x5d711c,_0x4c80b8,_0x250aba)=>{const _0x2fc935=_0x452e49;for(var _0x136a9e=_0x250aba>0x1?void 0x0:_0x250aba?gn(_0x5d711c,_0x4c80b8):_0x5d711c,_0x174b1c=_0x5695f2[_0x2fc935(0x31e)]-0x1,_0x54052b;_0x174b1c>=0x0;_0x174b1c--)(_0x54052b=_0x5695f2[_0x174b1c])&&(_0x136a9e=_0x54052b(_0x136a9e)||_0x136a9e);return _0x136a9e;},U=(_0x2a292a,_0x3fa1f5)=>(_0xb4965a,_0x5ec85a)=>_0x3fa1f5(_0xb4965a,_0x5ec85a,_0x2a292a);let Se=class extends _0x2aa59a{constructor(_0x5e1a34,_0x517e61,_0x4e935f,_0x1ec57c,_0x417a11,_0x88af44,_0x22a410,_0x1acddc){const _0x2cc19b=_0x452e49;super(),_(this,_0x2cc19b(0x327),new _0x26e754(_0x284653['NOT_COLLAB'])),(this[_0x2cc19b(0x25f)]=_0x5e1a34,this[_0x2cc19b(0x32d)]=_0x517e61,this[_0x2cc19b(0x1db)]=_0x4e935f,this[_0x2cc19b(0x32c)]=_0x1ec57c,this[_0x2cc19b(0x3d8)]=_0x417a11,this[_0x2cc19b(0x2f4)]=_0x88af44,this['_messageService']=_0x22a410,this['_localeService']=_0x1acddc,this[_0x2cc19b(0x37a)]());}[_0x452e49(0x37a)](){const _0xde61d2=_0x452e49;this[_0xde61d2(0x1f3)](this[_0xde61d2(0x32d)]['entityInit$'][_0xde61d2(0x251)](_0x5c53f3=>{const _0x3ce663=_0xde61d2,_0x29c5d4=this[_0x3ce663(0x25f)]['docStateChange$']['subscribe'](_0x490ffb=>{const _0x3c4efc=_0x3ce663;if(_0x490ffb==null)return;const {unitId:_0x32f7f1,redoState:_0x3f46ee,commandId:_0x31362a}=_0x490ffb;if(_0x32f7f1!==_0x5c53f3['unitID'])return;const _0xe35be9={'id':_0x31362a,'type':_0xab6308['MUTATION'],'params':{'unitId':_0x32f7f1,'actions':_0x3f46ee[_0x3c4efc(0x2af)],'textRanges':null}};_0x5c53f3['onLocalMutation'](_0xe35be9);});if(_0x5c53f3[_0x3ce663(0x1f3)](_0x29c5d4),_0x5c53f3 instanceof _0xda5800){const _0x2a9674={'onTransformIME':_0x239f50=>this['_docTransformIMECacheService'][_0x3ce663(0x244)](_0x239f50),'onTransformState':_0x2b986c=>this[_0x3ce663(0x32c)][_0x3ce663(0x340)](_0x2b986c),'onTransformSelections':_0x50a6aa=>this[_0x3ce663(0x3d8)][_0x3ce663(0x22a)](_0x50a6aa),'onSyncEditingCollabCursor':_0x167202=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x167202),'onTransformRemoteChangesetByIMECache':_0x4591fb=>this[_0x3ce663(0x1db)][_0x3ce663(0x1ed)](_0x4591fb),'onTransformRemoteChangesetByStateCache':_0x3a5148=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x3a5148)};_0x5c53f3[_0x3ce663(0x342)](_0x2a9674);}}));}};Se=En([U(0x0,_0x19da77(_0x376d5d)),U(0x1,_0x19da77(_0x4b43c5)),U(0x2,_0x19da77(he)),U(0x3,_0x19da77(ue)),U(0x4,_0x19da77(de)),U(0x5,_0x19da77(ze)),U(0x6,_0x53a10f),U(0x7,_0x19da77(_0xdfe5e8))],Se);var Z=(_0x5be58a=>(_0x5be58a[_0x5be58a[_0x452e49(0x241)]=0x0]=_0x452e49(0x241),_0x5be58a[_0x5be58a['OK']=0x1]='OK',_0x5be58a[_0x5be58a[_0x452e49(0x1cc)]=0x2]=_0x452e49(0x1cc),_0x5be58a[_0x5be58a[_0x452e49(0x387)]=0x3]=_0x452e49(0x387),_0x5be58a[_0x5be58a[_0x452e49(0x256)]=0x4]=_0x452e49(0x256),_0x5be58a[_0x5be58a[_0x452e49(0x22f)]=0x5]='UNAUTHENTICATED',_0x5be58a[_0x5be58a[_0x452e49(0x2f0)]=0x6]=_0x452e49(0x2f0),_0x5be58a[_0x5be58a[_0x452e49(0x1b4)]=0x7]=_0x452e49(0x1b4),_0x5be58a[_0x5be58a['TOO_MANY_REQUESTS']=0x8]=_0x452e49(0x312),_0x5be58a[_0x5be58a['COMPLETION_FINISHED']=0x9]=_0x452e49(0x1f9),_0x5be58a[_0x5be58a['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x5be58a[_0x5be58a[_0x452e49(0x2d0)]=0xb]=_0x452e49(0x2d0),_0x5be58a[_0x5be58a[_0x452e49(0x1b6)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5be58a[_0x5be58a[_0x452e49(0x3bf)]=0xd]=_0x452e49(0x3bf),_0x5be58a[_0x5be58a[_0x452e49(0x2bb)]=0xe]=_0x452e49(0x2bb),_0x5be58a[_0x5be58a[_0x452e49(0x2fc)]=0xf]=_0x452e49(0x2fc),_0x5be58a[_0x5be58a[_0x452e49(0x2dc)]=0x10]=_0x452e49(0x2dc),_0x5be58a[_0x5be58a[_0x452e49(0x307)]=0x64]=_0x452e49(0x307),_0x5be58a[_0x5be58a['ERROR_AGAIN']=0x65]=_0x452e49(0x2bc),_0x5be58a[_0x5be58a[_0x452e49(0x20a)]=0xc9]='USER_NOT_FOUND',_0x5be58a[_0x5be58a['USER_IS_ANONYMOUS']=0xca]=_0x452e49(0x3a7),_0x5be58a[_0x5be58a[_0x452e49(0x1bb)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5be58a[_0x5be58a['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x452e49(0x39c),_0x5be58a[_0x5be58a[_0x452e49(0x1e1)]=0x1772]=_0x452e49(0x1e1),_0x5be58a[_0x5be58a[_0x452e49(0x1f4)]=0x1773]=_0x452e49(0x1f4),_0x5be58a[_0x5be58a[_0x452e49(0x2a1)]=0x1b59]='APPLY_REJECT',_0x5be58a[_0x5be58a[_0x452e49(0x1c7)]=0x1b5a]=_0x452e49(0x1c7),_0x5be58a[_0x5be58a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x452e49(0x1d1),_0x5be58a[_0x5be58a[_0x452e49(0x3bc)]=0x1b5c]=_0x452e49(0x3bc),_0x5be58a[_0x5be58a[_0x452e49(0x239)]=0x1b5d]=_0x452e49(0x239),_0x5be58a[_0x5be58a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x452e49(0x1fc),_0x5be58a[_0x5be58a[_0x452e49(0x2c4)]=0x2329]=_0x452e49(0x2c4),_0x5be58a[_0x5be58a[_0x452e49(0x339)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5be58a[_0x5be58a['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x452e49(0x27c),_0x5be58a[_0x5be58a[_0x452e49(0x1e9)]=0x232c]=_0x452e49(0x1e9),_0x5be58a[_0x5be58a[_0x452e49(0x3a1)]=0x232d]=_0x452e49(0x3a1),_0x5be58a[_0x5be58a[_0x452e49(0x1d3)]=0x2711]=_0x452e49(0x1d3),_0x5be58a[_0x5be58a[_0x452e49(0x382)]=0x2712]=_0x452e49(0x382),_0x5be58a[_0x5be58a[_0x452e49(0x21f)]=0x2713]=_0x452e49(0x21f),_0x5be58a[_0x5be58a[_0x452e49(0x285)]=0x2714]=_0x452e49(0x285),_0x5be58a[_0x5be58a[_0x452e49(0x34f)]=0x271a]=_0x452e49(0x34f),_0x5be58a[_0x5be58a[_0x452e49(0x28e)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5be58a[_0x5be58a[_0x452e49(0x21d)]=0x271c]=_0x452e49(0x21d),_0x5be58a[_0x5be58a[_0x452e49(0x367)]=0x271d]=_0x452e49(0x367),_0x5be58a[_0x5be58a['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x452e49(0x218),_0x5be58a[_0x5be58a['YUUMI_AI_RUN_FAILED']=0x271f]=_0x452e49(0x398),_0x5be58a[_0x5be58a[_0x452e49(0x207)]=0x2720]=_0x452e49(0x207),_0x5be58a[_0x5be58a[_0x452e49(0x391)]=0x2af9]=_0x452e49(0x391),_0x5be58a[_0x5be58a[_0x452e49(0x281)]=0x2ee1]=_0x452e49(0x281),_0x5be58a[_0x5be58a[_0x452e49(0x277)]=0x2ee2]=_0x452e49(0x277),_0x5be58a[_0x5be58a[_0x452e49(0x394)]=0x2ee3]=_0x452e49(0x394),_0x5be58a[_0x5be58a[_0x452e49(0x2e3)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5be58a[_0x5be58a[_0x452e49(0x2e8)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5be58a[_0x5be58a[_0x452e49(0x3e4)]=0x32c9]=_0x452e49(0x3e4),_0x5be58a[_0x5be58a['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5be58a[_0x5be58a['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5be58a[_0x5be58a['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x452e49(0x357),_0x5be58a[_0x5be58a['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x452e49(0x3d7),_0x5be58a[_0x5be58a[_0x452e49(0x34a)]=0x36b3]=_0x452e49(0x34a),_0x5be58a[_0x5be58a[_0x452e49(0x31d)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x5be58a[_0x5be58a['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x452e49(0x1b2),_0x5be58a[_0x5be58a[_0x452e49(0x20f)]=0x36b6]=_0x452e49(0x20f),_0x5be58a[_0x5be58a[_0x452e49(0x301)]=0x36b7]=_0x452e49(0x301),_0x5be58a[_0x5be58a['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x5be58a[_0x5be58a[_0x452e49(0x3d9)]=0x3715]=_0x452e49(0x3d9),_0x5be58a[_0x5be58a[_0x452e49(0x3ca)]=0x3716]=_0x452e49(0x3ca),_0x5be58a[_0x5be58a[_0x452e49(0x3df)]=0x3717]=_0x452e49(0x3df),_0x5be58a[_0x5be58a['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x452e49(0x206),_0x5be58a[_0x5be58a[_0x452e49(0x34d)]=0x3a99]=_0x452e49(0x34d),_0x5be58a[_0x5be58a[_0x452e49(0x379)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x5be58a[_0x5be58a[_0x452e49(0x2da)]=0x3a9b]=_0x452e49(0x2da),_0x5be58a[_0x5be58a['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x452e49(0x37c),_0x5be58a[_0x5be58a['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x5be58a[_0x5be58a[_0x452e49(0x221)]=0x3a9e]=_0x452e49(0x221),_0x5be58a[_0x5be58a[_0x452e49(0x30c)]=0x3a9f]=_0x452e49(0x30c),_0x5be58a[_0x5be58a['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x452e49(0x353),_0x5be58a[_0x5be58a[_0x452e49(0x36e)]=-0x1]=_0x452e49(0x36e),_0x5be58a))(Z||{});function vn(_0x494f9d){const _0x4029e6=_0x452e49;var _0x57d9c7,_0x4ae9d0;const _0x1829db=(_0x57d9c7=_0x494f9d[_0x4029e6(0x30d)])==null?void 0x0:_0x57d9c7['stage'],_0x5c0694=((_0x4ae9d0=_0x494f9d[_0x4029e6(0x30d)])==null?void 0x0:_0x4ae9d0['totalFormulasToCalculate'])||0x0;return _0x1829db===_0x2ebd27[_0x4029e6(0x309)]&&_0x5c0694>0x0;}function pn(_0x1c19f4){const _0x725c8c=_0x452e49;return _0x1c19f4[_0x725c8c(0x38f)]===_0x536ec4[_0x725c8c(0x292)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x4977c4,_0x577373,_0xcbe63a,_0x2cc10b)=>{const _0x2348ef=_0x452e49;for(var _0x2af3b2=_0x2cc10b>0x1?void 0x0:_0x2cc10b?On(_0x577373,_0xcbe63a):_0x577373,_0x190186=_0x4977c4[_0x2348ef(0x31e)]-0x1,_0x19ccc0;_0x190186>=0x0;_0x190186--)(_0x19ccc0=_0x4977c4[_0x190186])&&(_0x2af3b2=_0x19ccc0(_0x2af3b2)||_0x2af3b2);return _0x2af3b2;},P=(_0x1645f3,_0x1a594c)=>(_0x7ce98b,_0x1cf6f7)=>_0x1a594c(_0x7ce98b,_0x1cf6f7,_0x1645f3);const Cn='/universer-api/license/formula/limit/status',Rn='/universer-api/license/formula/limit/start',Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x2aa59a{constructor(_0x495827,_0x25a8a4,_0x2be9fa,_0x4a415e,_0x43a4e4,_0x571fce,_0xb72d32){const _0x5d2145=_0x452e49;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,_0x5d2145(0x234),0x0),_(this,'_taskIds',[]),_(this,_0x5d2145(0x346),0x0),(this[_0x5d2145(0x268)]=_0x495827,this[_0x5d2145(0x299)]=_0x25a8a4,this[_0x5d2145(0x24c)]=_0x2be9fa,this[_0x5d2145(0x2b0)]=_0x4a415e,this[_0x5d2145(0x23f)]=_0x43a4e4,this['_logService']=_0x571fce,this[_0x5d2145(0x1e3)]=_0xb72d32,this['_initCommandInterceptor']());}[_0x452e49(0x332)](){const _0x4e2561=_0x452e49;this[_0x4e2561(0x1f3)](this[_0x4e2561(0x299)]['beforeCommandExecuted']((_0x22d568,_0x3676a9)=>{const _0x2854e1=_0x4e2561;var _0x213eee;if(_0x22d568['id']!==_0x41e501['id'])return;const _0x4276d8=_0x22d568[_0x2854e1(0x308)];if(!this[_0x2854e1(0x280)]((_0x213eee=_0x4276d8[_0x2854e1(0x329)])!=null?_0x213eee:[]))return;if(!this[_0x2854e1(0x1fd)]())throw this['_checkAndWaitForCalculationPermission'](_0x22d568,_0x3676a9),this[_0x2854e1(0x1e5)](),new _0x151bd0();})),this[_0x4e2561(0x1f3)](this['_commandService']['onCommandExecuted']((_0x1c143e,_0x155e38)=>{const _0x42ab37=_0x4e2561;if(_0x1c143e['id']!==_0x55edba['id'])return;const _0x2d9555=_0x1c143e['params'];if(vn(_0x2d9555)){const _0x564fe2=_0x197090();this[_0x42ab37(0x2b1)][_0x42ab37(0x3b7)](_0x564fe2),this[_0x42ab37(0x2e7)](_0x564fe2);}else{if(pn(_0x2d9555)&&this[_0x42ab37(0x2b1)][_0x42ab37(0x31e)]>0x0){const _0x4d077f=this['_taskIds']['shift']();this['_releaseCalculationLimit'](_0x4d077f);}}}));}[_0x452e49(0x2bf)](){const _0x96ee4=_0x452e49;super[_0x96ee4(0x2bf)](),this[_0x96ee4(0x21b)](),this['_taskIds']=[],this[_0x96ee4(0x234)]=0x0,this[_0x96ee4(0x288)]=0x0,this[_0x96ee4(0x346)]=0x0;}async[_0x452e49(0x297)](_0x11815f,_0x493bfa){const _0x1a370b=_0x452e49;for(let _0x2340b7=0x0;_0x2340b7<0x1e;_0x2340b7++)try{if(await this[_0x1a370b(0x1e6)](),this[_0x1a370b(0x1fd)]()){this[_0x1a370b(0x2c3)](_0x11815f,_0x493bfa),this['_messageService']['show']({'content':this[_0x1a370b(0x1e3)]['t'](_0x1a370b(0x1bc)),'type':_0x178881[_0x1a370b(0x333)]});return;}await new Promise(_0x5bf5d9=>{const _0xbdf5a5=_0x1a370b;this[_0xbdf5a5(0x21e)]=window['setTimeout'](_0x5bf5d9,0x3e8);});}catch(_0x5eb44f){this[_0x1a370b(0x3d2)][_0x1a370b(0x258)](_0x5eb44f);}this[_0x1a370b(0x268)][_0x1a370b(0x254)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x178881['Error']});}[_0x452e49(0x2c3)](_0x2d17a4,_0x56dfe6){const _0x57a7f2=_0x452e49;try{this['_commandService'][_0x57a7f2(0x34c)](_0x2d17a4['id'],_0x2d17a4['params'],_0x56dfe6);}catch(_0x405eef){this[_0x57a7f2(0x3d2)][_0x57a7f2(0x258)](_0x405eef);}}[_0x452e49(0x27f)](_0x44dc1a,_0x5a8127){const _0x20ee3e=_0x452e49;_0x5a8127<this['_lastResponseTimestamp']||(this[_0x20ee3e(0x346)]=_0x5a8127,this[_0x20ee3e(0x288)]=Number[_0x20ee3e(0x32e)](_0x44dc1a[_0x20ee3e(0x263)]),this['_currentUsage']=Number['parseInt'](_0x44dc1a[_0x20ee3e(0x1c4)]));}async[_0x452e49(0x2e7)](_0x925b92){const _0x205b6d=_0x452e49;var _0x39f506,_0x1eae33;const _0x225e10=Date['now']();try{const _0x4514fe=((_0x39f506=this['_configService'][_0x205b6d(0x352)](_0x4d5ca3))==null?void 0x0:_0x39f506['startFormulaLimitUrl'])||Rn,_0x17c471=(await this[_0x205b6d(0x2b0)][_0x205b6d(0x23e)](_0x4514fe,{'body':JSON[_0x205b6d(0x31a)]({'taskId':_0x925b92})}))[_0x205b6d(0x291)];if(((_0x1eae33=_0x17c471[_0x205b6d(0x258)])==null?void 0x0:_0x1eae33[_0x205b6d(0x31c)])!==Z['OK'])return;this[_0x205b6d(0x27f)](_0x17c471[_0x205b6d(0x2a0)],_0x225e10);}catch(_0x36f851){this[_0x205b6d(0x3d2)][_0x205b6d(0x258)](_0x36f851);}}async[_0x452e49(0x1e6)](_0x2061a0){const _0x3eb2c2=_0x452e49;var _0x408cb0,_0x2943f1;const _0x47e4ee=Date[_0x3eb2c2(0x290)]();try{const _0x21b2cd=((_0x408cb0=this[_0x3eb2c2(0x24c)][_0x3eb2c2(0x352)](_0x4d5ca3))==null?void 0x0:_0x408cb0['getformulaLimitStatusUrl'])||Cn,_0x74326c=_0x2061a0?_0x21b2cd+'?taskId='+encodeURIComponent(_0x2061a0):_0x21b2cd,_0x16335f=(await this[_0x3eb2c2(0x2b0)][_0x3eb2c2(0x3db)](_0x74326c))[_0x3eb2c2(0x291)];if(((_0x2943f1=_0x16335f[_0x3eb2c2(0x258)])==null?void 0x0:_0x2943f1['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x16335f[_0x3eb2c2(0x2a0)],_0x47e4ee);}catch(_0x4e6ed8){this[_0x3eb2c2(0x3d2)][_0x3eb2c2(0x258)](_0x4e6ed8);}}async['_releaseCalculationLimit'](_0x38ca9a){const _0x4ff558=_0x452e49;var _0x266c1f,_0x2c852c;const _0x1e6d3c=Date[_0x4ff558(0x290)]();try{const _0x5956d6=((_0x266c1f=this[_0x4ff558(0x24c)]['getConfig'](_0x4d5ca3))==null?void 0x0:_0x266c1f[_0x4ff558(0x2ae)])||Dn,_0xcc2740=(await this['_httpService']['post'](_0x5956d6,{'body':JSON[_0x4ff558(0x31a)]({'taskId':_0x38ca9a})}))[_0x4ff558(0x291)];if(((_0x2c852c=_0xcc2740[_0x4ff558(0x258)])==null?void 0x0:_0x2c852c[_0x4ff558(0x31c)])!==Z['OK'])return;this[_0x4ff558(0x27f)](_0xcc2740[_0x4ff558(0x2a0)],_0x1e6d3c);}catch(_0x230faf){this[_0x4ff558(0x3d2)]['error'](_0x230faf);}}[_0x452e49(0x1fd)](){const _0x49ec65=_0x452e49;return this[_0x49ec65(0x288)]===0x0?!0x0:this[_0x49ec65(0x288)]-this['_currentUsage']>0x0;}[_0x452e49(0x21b)](){const _0x572bc6=_0x452e49;this[_0x572bc6(0x21e)]&&(clearTimeout(this[_0x572bc6(0x21e)]),this[_0x572bc6(0x21e)]=null);}[_0x452e49(0x1e5)](){const _0x5647b1=_0x452e49;this[_0x5647b1(0x268)][_0x5647b1(0x254)]({'content':this[_0x5647b1(0x1e3)]['t']('formula.calculation.waiting'),'type':_0x178881[_0x5647b1(0x243)]});}[_0x452e49(0x280)](_0x458d98){const _0x41a619=_0x452e49;for(const _0x1dc5dd of _0x458d98){const {unitId:_0x2cc71c,sheetId:_0x3414f4,range:_0x8bf41e}=_0x1dc5dd,_0x16bc04=this[_0x41a619(0x23f)]['getUnit'](_0x2cc71c);if(!_0x16bc04)continue;const _0x6305e9=_0x16bc04[_0x41a619(0x249)](_0x3414f4);if(!_0x6305e9)continue;const _0x37049e=_0x6305e9['getCellMatrix']();for(let _0x5207a9=_0x8bf41e[_0x41a619(0x26d)];_0x5207a9<=_0x8bf41e[_0x41a619(0x326)];_0x5207a9++)for(let _0x537d73=_0x8bf41e[_0x41a619(0x287)];_0x537d73<=_0x8bf41e[_0x41a619(0x2ea)];_0x537d73++){const _0x23eca8=_0x37049e[_0x41a619(0x294)](_0x5207a9,_0x537d73);if(_0x23eca8&&(_0x37d7d6(_0x23eca8['f'])||_0x4552ab(_0x23eca8['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x19da77(_0x53a10f)),P(0x1,_0x579301),P(0x2,_0x4d5d92),P(0x3,_0x19da77(_0x51f60c)),P(0x4,_0x3fb31a),P(0x5,_0x41d2f2),P(0x6,_0x19da77(_0xdfe5e8))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x22757a,_0x3b5664,_0x605b18,_0xc8a56a)=>{for(var _0x38f6ab=_0xc8a56a>0x1?void 0x0:_0xc8a56a?Nn(_0x3b5664,_0x605b18):_0x3b5664,_0x34a795=_0x22757a['length']-0x1,_0x1e50fb;_0x34a795>=0x0;_0x34a795--)(_0x1e50fb=_0x22757a[_0x34a795])&&(_0x38f6ab=_0x1e50fb(_0x38f6ab)||_0x38f6ab);return _0x38f6ab;},Ue=(_0x816689,_0x493f89)=>(_0x14dfad,_0x1c6b04)=>_0x493f89(_0x14dfad,_0x1c6b04,_0x816689);let He=class extends _0x2aa59a{constructor(_0x3f4c34,_0x44d904,_0x480ec4){const _0x1bd184=_0x452e49;super(),_(this,'_cachedData',new Map()),_(this,_0x1bd184(0x1ba),new Map()),_(this,'_disabled',!0x1),(this[_0x1bd184(0x24c)]=_0x3f4c34,this[_0x1bd184(0x374)]=_0x44d904,this[_0x1bd184(0x33b)]=_0x480ec4);}[_0x452e49(0x2d6)](){const _0x41bb4c=_0x452e49;this[_0x41bb4c(0x253)]=!0x0;}[_0x452e49(0x33e)](){const _0x530413=_0x452e49;this[_0x530413(0x253)]=!0x1;}get[_0x452e49(0x2e0)](){const _0x146d24=_0x452e49;return this[_0x146d24(0x1ba)];}[_0x452e49(0x2bf)](){const _0xa62060=_0x452e49;this[_0xa62060(0x3b6)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x939a20){const _0xc9c85d=_0x452e49;return this['_disabled']?null:this[_0xc9c85d(0x374)][_0xc9c85d(0x1de)](_0x11632d(_0x939a20));}async['saveOfflineData'](_0x3c1499,_0xbab9a1){const _0x4b7985=_0x452e49;return!!this[_0x4b7985(0x374)]['setItem'](_0x3c1499,_0xbab9a1);}[_0x452e49(0x1fb)](_0x37355f,_0x49544d,_0x4af3dc,_0x538b21){const _0x41a750=_0x452e49,_0x2b7900=this[_0x41a750(0x33b)]['getCurrentRevOfUnit'](_0x37355f);this[_0x41a750(0x31f)][_0x41a750(0x26e)](_0x37355f,{'unitID':_0x37355f,'type':_0x49544d,'awaitingChangeset':_0x4af3dc,'mutations':_0x538b21,'rev':_0x2b7900}),this['_saveTaskMap'][_0x41a750(0x21c)](_0x37355f)||this[_0x41a750(0x38d)](_0x37355f);}['_scheduleSaving'](_0x25c111){const _0xb28595=_0x452e49,_0x3c9fda=this[_0xb28595(0x3cd)]();_0x3c9fda===0x0?this['_saveCache'](_0x25c111):this['_saveTaskMap'][_0xb28595(0x26e)](_0x25c111,setTimeout(()=>this[_0xb28595(0x35b)](_0x25c111),_0x3c9fda));}[_0x452e49(0x3cd)](){const _0x159189=_0x452e49;var _0x53cfc9;return(_0x53cfc9=this[_0x159189(0x24c)]['getConfig'](_0x38b2d0))!=null?_0x53cfc9:_0x2941fb;}['_saveCache'](_0x274836){const _0x4b6d30=_0x452e49,_0x54a4ed=this['_saveTaskMap'][_0x4b6d30(0x3db)](_0x274836);return _0x54a4ed!==void 0x0&&window['clearTimeout'](_0x54a4ed),this[_0x4b6d30(0x374)][_0x4b6d30(0x30e)](_0x11632d(_0x274836),this[_0x4b6d30(0x31f)][_0x4b6d30(0x3db)](_0x274836))[_0x4b6d30(0x3aa)](()=>this['_saveTaskMap']['delete'](_0x274836));}async[_0x452e49(0x3b6)](){const _0x1e36e2=_0x452e49,_0x1f52c9=[];this[_0x1e36e2(0x1ba)][_0x1e36e2(0x345)]((_0x562f8e,_0xad99f4)=>{const _0x27238d=_0x1e36e2;window[_0x27238d(0x200)](_0x562f8e),_0x1f52c9['push'](this['_saveCache'](_0xad99f4)[_0x27238d(0x3aa)](()=>{const _0x328f8f=_0x27238d;this['_saveTaskMap'][_0x328f8f(0x336)](_0xad99f4);}));}),await Promise[_0x1e36e2(0x20e)](_0x1f52c9);}};He=bn([Ue(0x0,_0x4d5d92),Ue(0x1,_0x4a747f),Ue(0x2,_0x19da77(_0x42e769))],He);class Ln extends _0xfe4864{constructor(){const _0x48d774=_0x452e49;super(),_(this,_0x48d774(0x260)),this[_0x48d774(0x260)]=_0x16982b(window,'popstate')[_0x48d774(0x392)](_0x5ec416(this[_0x48d774(0x2ef)]),_0x40e544(0x1),_0x120921(void 0x0));}[_0x452e49(0x211)](_0x3f7baf,_0x9f4d06,_0x189c18=!0x1){const _0x3f1c2e=_0x452e49,_0x300f48=new URL(window[_0x3f1c2e(0x26b)][_0x3f1c2e(0x230)]);_0x300f48[_0x3f1c2e(0x359)][_0x3f1c2e(0x26e)](_0x3f7baf,_0x9f4d06),_0x189c18?window[_0x3f1c2e(0x267)][_0x3f1c2e(0x2f8)]('','',_0x300f48['toString']()):window[_0x3f1c2e(0x267)][_0x3f1c2e(0x2d5)]('','',_0x300f48[_0x3f1c2e(0x369)]());}[_0x452e49(0x20c)](_0x3ac851,_0x33a915=!0x1){const _0x5919b8=_0x452e49,_0x31c98e=new URL(window['location'][_0x5919b8(0x230)]);_0x31c98e[_0x5919b8(0x359)][_0x5919b8(0x336)](_0x3ac851),_0x33a915?window[_0x5919b8(0x267)][_0x5919b8(0x2f8)]('','',_0x31c98e[_0x5919b8(0x369)]()):window['history'][_0x5919b8(0x2d5)]('','',_0x31c98e[_0x5919b8(0x369)]());}[_0x452e49(0x338)](_0x1b25e5){const _0xd8fe5a=_0x452e49;var _0x5e2ec4;return(_0x5e2ec4=new URL(window[_0xd8fe5a(0x26b)][_0xd8fe5a(0x230)])[_0xd8fe5a(0x359)][_0xd8fe5a(0x3db)](_0x1b25e5))!=null?_0x5e2ec4:void 0x0;}}var Un=Object[_0x452e49(0x29d)],Mn=Object[_0x452e49(0x337)],An=(_0x11c3cc,_0x34be92,_0x2d6f1d)=>_0x34be92 in _0x11c3cc?Un(_0x11c3cc,_0x34be92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d6f1d}):_0x11c3cc[_0x34be92]=_0x2d6f1d,Pn=(_0x35e56b,_0x5e2cca,_0x475339,_0x4d6859)=>{const _0x251922=_0x452e49;for(var _0x51c351=_0x4d6859>0x1?void 0x0:_0x4d6859?Mn(_0x5e2cca,_0x475339):_0x5e2cca,_0x20f3ef=_0x35e56b[_0x251922(0x31e)]-0x1,_0x2f51a;_0x20f3ef>=0x0;_0x20f3ef--)(_0x2f51a=_0x35e56b[_0x20f3ef])&&(_0x51c351=_0x2f51a(_0x51c351)||_0x51c351);return _0x51c351;},Me=(_0x31c6e3,_0x43c7be)=>(_0x431f10,_0x39a96a)=>_0x43c7be(_0x431f10,_0x39a96a,_0x31c6e3),wn=(_0x5c69d1,_0x56bb43,_0x1824a4)=>An(_0x5c69d1,_0x56bb43+'',_0x1824a4);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x51e820{constructor(_0x3de0e7=_t,_0x38f196,_0x26c54c,_0x2dba7c){const _0x17cfe3=_0x452e49;super(),this[_0x17cfe3(0x2ab)]=_0x3de0e7,this[_0x17cfe3(0x205)]=_0x38f196,this[_0x17cfe3(0x3b9)]=_0x26c54c,this['_configService']=_0x2dba7c;const {..._0x4b06c1}=_0x3aaad0({},_t,this['_config']);this[_0x17cfe3(0x24c)]['setConfig'](hn,_0x4b06c1);}[_0x452e49(0x1bd)](){const _0x3181ea=_0x452e49;this['_registerDependencies'](),this[_0x3181ea(0x35e)]();}['onRendered'](){const _0x5a4b3d=_0x452e49;this[_0x5a4b3d(0x210)]();}[_0x452e49(0x24d)](){const _0x302420=_0x452e49;var _0x44696e;const _0x4a7482=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x29fd23,{'useClass':_0x1c86d8}],[_0x5978b0,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x302420(0x2ab)][_0x302420(0x1cf)]&&_0x4a7482[_0x302420(0x3b7)]([le]),_0x2a74ba(this[_0x302420(0x3b9)],_0x20d143(_0x4a7482,(_0x44696e=this[_0x302420(0x2ab)])==null?void 0x0:_0x44696e[_0x302420(0x214)]));}[_0x452e49(0x210)](){const _0x352610=_0x452e49;this['disposeWithMe'](this[_0x352610(0x205)][_0x352610(0x1dd)](_0x13bfc1[_0x352610(0x2a7)],[Fe])),this['disposeWithMe'](this[_0x352610(0x205)][_0x352610(0x1dd)](_0x13bfc1['UNIVER_SHEET'],[ke]));}['_initDependencies'](){const _0x143c40=_0x452e49;_0x93725c(this[_0x143c40(0x3b9)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x143c40(0x2ab)]['enableFrontendLog']&&_0x93725c(this[_0x143c40(0x3b9)],[[le]]);}};wn(Ye,_0x452e49(0x2d9),yn),Ye=Pn([_0x3e5380(_0x377bdf),Me(0x1,_0x5d2559),Me(0x2,_0x19da77(_0x3caca9)),Me(0x3,_0x4d5d92)],Ye);var $n=Object[_0x452e49(0x337)],xn=(_0x5cb481,_0x375619,_0x4bda0c,_0x5306f6)=>{const _0x29c929=_0x452e49;for(var _0xc648b3=_0x5306f6>0x1?void 0x0:_0x5306f6?$n(_0x375619,_0x4bda0c):_0x375619,_0x4c8a5a=_0x5cb481[_0x29c929(0x31e)]-0x1,_0x3eb119;_0x4c8a5a>=0x0;_0x4c8a5a--)(_0x3eb119=_0x5cb481[_0x4c8a5a])&&(_0xc648b3=_0x3eb119(_0xc648b3)||_0xc648b3);return _0xc648b3;},J=(_0xefe5b4,_0x561219)=>(_0x23e322,_0x37ce27)=>_0x561219(_0x23e322,_0x37ce27,_0xefe5b4);let ut=class extends _0x31a2cb{constructor(_0x23dea6,_0x5366fd,_0x1be66d,_0x470922,_0x13b9b2){super(_0x23dea6,_0x5366fd,_0x1be66d,_0x470922,_0x13b9b2);}async[_0x452e49(0x3a8)](_0x185a44){const _0x9fe014=_0x452e49,_0x17084d=await this[_0x9fe014(0x2de)](),_0x38f9d6=this['_createSocketURL'](_0x185a44,_0x17084d);return this[_0x9fe014(0x343)](_0x38f9d6);}['_createSocketURL'](_0x4c17b4,_0x5c9426){const _0x3b05f9=_0x452e49,_0x26c341=typeof window>'u'?new URL(_0x4c17b4):new URL(_0x4c17b4,window[_0x3b05f9(0x26b)][_0x3b05f9(0x203)]);_0x26c341[_0x3b05f9(0x359)][_0x3b05f9(0x26e)](_0x3b05f9(0x1f7),_0x5c9426);const _0xb1b8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3b05f9(0x26b)][_0x3b05f9(0x24a)]);return _0xb1b8[_0x3b05f9(0x3db)](_0x3b05f9(0x372))&&_0x26c341['searchParams']['set']('runId',_0xb1b8[_0x3b05f9(0x3db)](_0x3b05f9(0x372))),_0x26c341[_0x3b05f9(0x369)]();}async['_getSessionTicket'](){const _0xba86f4=_0x452e49;var _0x54081e,_0x40f3bc,_0xe24a28;const _0x23ff74=this[_0xba86f4(0x24c)][_0xba86f4(0x352)](_0x4d5ca3),_0x4374c4=(_0x54081e=_0x23ff74==null?void 0x0:_0x23ff74[_0xba86f4(0x325)])!=null?_0x54081e:_0x36e188;return(_0xe24a28=(_0x40f3bc=(await this[_0xba86f4(0x2b0)]['get'](_0x4374c4,{'headers':{'Content-Type':_0xba86f4(0x217)}}))[_0xba86f4(0x291)])==null?void 0x0:_0x40f3bc['ticket'])!=null?_0xe24a28:'';}};ut=xn([J(0x0,_0x19da77(_0x3caca9)),J(0x1,_0x19da77(_0x51f60c)),J(0x2,_0x4d5d92),J(0x3,_0x41d2f2),J(0x4,_0xbe9030)],ut);var Bn=Object[_0x452e49(0x337)],Fn=(_0x387feb,_0x4d1014,_0x3c4c8c,_0x44ade3)=>{const _0x134873=_0x452e49;for(var _0x4e0c83=_0x44ade3>0x1?void 0x0:_0x44ade3?Bn(_0x4d1014,_0x3c4c8c):_0x4d1014,_0x231478=_0x387feb[_0x134873(0x31e)]-0x1,_0x4bfe84;_0x231478>=0x0;_0x231478--)(_0x4bfe84=_0x387feb[_0x231478])&&(_0x4e0c83=_0x4bfe84(_0x4e0c83)||_0x4e0c83);return _0x4e0c83;},Ae=(_0x35bbc0,_0x470df2)=>(_0xd83588,_0x30c67d)=>_0x470df2(_0xd83588,_0x30c67d,_0x35bbc0);let dt=class extends _0x2aa59a{constructor(_0x546716,_0x52f85b,_0x3b15c5){const _0x28f573=_0x452e49;super(),this['_instanceService']=_0x546716,this[_0x28f573(0x2b0)]=_0x52f85b,this[_0x28f573(0x24c)]=_0x3b15c5;}async['runOnServer'](_0x1cf74c,_0x568287,_0x698fc6,..._0x4248f1){const _0x2d1b19=_0x452e49;var _0x141013,_0x505015,_0xcb4f7b,_0x4861eb;const _0x301cf5=this[_0x2d1b19(0x38e)][_0x2d1b19(0x220)]();if(!_0x301cf5)throw new Error(_0x2d1b19(0x1e2));const _0x29ced6=((_0x141013=this[_0x2d1b19(0x24c)]['getConfig'](_0x163421))!=null?_0x141013:_0x49e2a9)+'/'+_0x1cf74c+'/run/'+_0x568287,_0x10f3d2=new URL(window[_0x2d1b19(0x26b)][_0x2d1b19(0x230)]),_0x56db53={'scriptId':_0x1cf74c,'runId':(_0x505015=_0x10f3d2['searchParams'][_0x2d1b19(0x3db)](_0x2d1b19(0x372)))!=null?_0x505015:'','function':_0x568287,'unitId':_0x301cf5[_0x2d1b19(0x28c)](),'argsOfFunction':JSON[_0x2d1b19(0x31a)](_0x4248f1),'invokeId':(_0xcb4f7b=_0x698fc6[_0x2d1b19(0x37f)])!=null?_0xcb4f7b:'','executionId':(_0x4861eb=_0x698fc6[_0x2d1b19(0x371)])!=null?_0x4861eb:''};try{const _0x47f936=await this[_0x2d1b19(0x2b0)]['post'](_0x29ced6,{'body':_0x56db53});return _0x47f936[_0x2d1b19(0x291)][_0x2d1b19(0x258)]&&_0x47f936[_0x2d1b19(0x291)][_0x2d1b19(0x258)]['code']!==Z['OK']?_0x2d1b19(0x204):_0x47f936['body'][_0x2d1b19(0x3e5)];}catch{return _0x2d1b19(0x204);}}};dt=Fn([Ae(0x0,_0x3fb31a),Ae(0x1,_0x19da77(_0x51f60c)),Ae(0x2,_0x4d5d92)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x2aa59a{constructor(){const _0x2290c5=_0x452e49;super(),_(this,_0x2290c5(0x3dc),_0x197090()),_(this,_0x2290c5(0x3b5),new Set()),_(this,'_unitOnClients',new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,_0x2290c5(0x2f6),new Map()),this['_init']();}[_0x452e49(0x2bf)](){const _0x3f45d9=_0x452e49;super[_0x3f45d9(0x2bf)](),this[_0x3f45d9(0x2dd)][_0x3f45d9(0x345)]((_0x208a58,_0x450f7d)=>this[_0x3f45d9(0x376)](_0x450f7d)),this[_0x3f45d9(0x3bd)]&&window[_0x3f45d9(0x275)](this['_heartbeatTimer']);}[_0x452e49(0x228)](_0xf2398){const _0x3f0115=_0x452e49;return this[_0x3f0115(0x3c9)](_0xf2398)[_0x3f0115(0x392)](_0x231db8());}[_0x452e49(0x20b)](_0x989c7f){const _0x36929e=_0x452e49;this['_selfUnitIDs'][_0x36929e(0x1af)]===0x0&&this['_scheduleHeartbeat'](),this[_0x36929e(0x3b5)]['add'](_0x989c7f),this[_0x36929e(0x39f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x989c7f],'isForwarded':!0x1});}['disposeUnit'](_0x3a989f){const _0x33f1f4=_0x452e49;this[_0x33f1f4(0x3b5)][_0x33f1f4(0x336)](_0x3a989f),this[_0x33f1f4(0x3b5)]['size']===0x0&&this[_0x33f1f4(0x3bd)]&&window[_0x33f1f4(0x275)](this[_0x33f1f4(0x3bd)]);}[_0x452e49(0x3ce)](){const _0x2c4a15=_0x452e49;this[_0x2c4a15(0x1f3)](_0x5dd047(_0x16982b(window,'storage')['subscribe'](_0x24d54f=>{const _0x4c6ed6=_0x2c4a15;if(_0x24d54f[_0x4c6ed6(0x265)]!==It||!_0x24d54f[_0x4c6ed6(0x35a)])return;const _0xfb3b9e=JSON['parse'](_0x24d54f[_0x4c6ed6(0x35a)]);this[_0x4c6ed6(0x2e2)](_0xfb3b9e);}))),window[_0x2c4a15(0x396)](_0x2c4a15(0x1d9),()=>this[_0x2c4a15(0x39f)]({'type':0x1,'memberID':this[_0x2c4a15(0x3dc)],'unitIDs':Array[_0x2c4a15(0x2d4)](this['_selfUnitIDs'])}));}[_0x452e49(0x2e2)](_0x52a033){const _0x48623e=_0x452e49;switch(_0x52a033[_0x48623e(0x341)]){case 0x0:this[_0x48623e(0x397)](_0x52a033);break;case 0x1:this[_0x48623e(0x3e1)](_0x52a033);break;case 0x2:this['_handleHeartbeatEvent'](_0x52a033);break;}}[_0x452e49(0x397)](_0x4791c7){const _0x57620c=_0x452e49,{unitIDs:_0x41c74e,memberID:_0x5e0cbb,isForwarded:_0x10470c}=_0x4791c7;_0x41c74e[_0x57620c(0x345)](_0x3220fe=>{const _0x4bffd1=_0x57620c;if(!_0x10470c&&this[_0x4bffd1(0x35f)][_0x4bffd1(0x21c)](_0x3220fe)&&this[_0x4bffd1(0x3c9)](_0x3220fe)[_0x4bffd1(0x30f)](_0x302454[_0x4bffd1(0x227)]),!this[_0x4bffd1(0x35f)][_0x4bffd1(0x21c)](_0x3220fe)||!this[_0x4bffd1(0x35f)]['get'](_0x3220fe)['has'](_0x5e0cbb)){const _0x483aae=this[_0x4bffd1(0x35f)][_0x4bffd1(0x3db)](_0x3220fe)||new Set();_0x483aae[_0x4bffd1(0x202)](_0x5e0cbb),this['_unitOnClients'][_0x4bffd1(0x26e)](_0x3220fe,_0x483aae),this['_scheduleClearOtherTimer'](_0x5e0cbb);}}),_0x10470c||this[_0x57620c(0x39f)]({'type':0x0,'memberID':this[_0x57620c(0x3dc)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x452e49(0x255)](_0x23d387){const _0x5d518a=_0x452e49;this[_0x5d518a(0x376)](_0x23d387);const _0x5a58d3=window[_0x5d518a(0x30b)](()=>{const _0x325abb=_0x5d518a;this[_0x325abb(0x35f)][_0x325abb(0x345)](_0xa117b7=>{const _0x59ba4a=_0x325abb;_0xa117b7[_0x59ba4a(0x336)](_0x23d387);});},St*0x2);this[_0x5d518a(0x2dd)][_0x5d518a(0x26e)](_0x23d387,_0x5a58d3);}['_removeClearOtherTimer'](_0x5a2d32){const _0x1af819=_0x452e49;if(this[_0x1af819(0x2dd)][_0x1af819(0x21c)](_0x5a2d32)){const _0x33d179=this[_0x1af819(0x2dd)][_0x1af819(0x3db)](_0x5a2d32);_0x33d179&&window[_0x1af819(0x200)](_0x33d179),this[_0x1af819(0x2dd)][_0x1af819(0x26e)](_0x5a2d32,null);}}[_0x452e49(0x3e1)](_0x4bcf2b){const _0x573715=_0x452e49,{memberID:_0xa5920d,unitIDs:_0x20b3e7}=_0x4bcf2b;_0x20b3e7[_0x573715(0x345)](_0x502d14=>{const _0x5d4e92=_0x573715;var _0xf95310;const _0x59798d=this[_0x5d4e92(0x35f)][_0x5d4e92(0x3db)](_0x502d14);_0x59798d&&(_0x59798d['delete'](_0xa5920d),(_0xf95310=this[_0x5d4e92(0x3c9)](_0x502d14))==null||_0xf95310[_0x5d4e92(0x30f)](_0x59798d[_0x5d4e92(0x1af)]===0x0?_0x302454['NO_OTHER_CLIENTS_EDITING']:_0x302454[_0x5d4e92(0x227)]));}),this[_0x573715(0x376)](_0xa5920d);}[_0x452e49(0x3e0)](_0x23dc98){const _0x37ed0f=_0x452e49;this[_0x37ed0f(0x255)](_0x23dc98[_0x37ed0f(0x351)]);}[_0x452e49(0x39f)](_0x48cc6b){const _0x398cb4=_0x452e49;localStorage[_0x398cb4(0x30e)](It,JSON[_0x398cb4(0x31a)](_0x48cc6b));}[_0x452e49(0x2f7)](){const _0x60f7ca=_0x452e49;this[_0x60f7ca(0x3bd)]=window['setInterval'](()=>{const _0x624f1c=_0x60f7ca;this[_0x624f1c(0x39f)]({'type':0x2,'memberID':this[_0x624f1c(0x3dc)]});},St);}[_0x452e49(0x3c9)](_0x272400){const _0x165b3e=_0x452e49;return this[_0x165b3e(0x2f6)][_0x165b3e(0x21c)](_0x272400)||this[_0x165b3e(0x2f6)][_0x165b3e(0x26e)](_0x272400,new _0x26e754(_0x302454[_0x165b3e(0x1e8)])),this[_0x165b3e(0x2f6)]['get'](_0x272400);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|
|
1
|
+
const _0x38cdda=_0x215c;(function(_0x3872dd,_0x2d5631){const _0x2f5482=_0x215c,_0x441c27=_0x3872dd();while(!![]){try{const _0x13cafb=parseInt(_0x2f5482(0x224))/0x1*(parseInt(_0x2f5482(0x1d6))/0x2)+-parseInt(_0x2f5482(0x296))/0x3+-parseInt(_0x2f5482(0x19a))/0x4*(parseInt(_0x2f5482(0x2b9))/0x5)+-parseInt(_0x2f5482(0x2e0))/0x6+-parseInt(_0x2f5482(0xd7))/0x7*(-parseInt(_0x2f5482(0x2ee))/0x8)+parseInt(_0x2f5482(0x23a))/0x9*(parseInt(_0x2f5482(0x228))/0xa)+parseInt(_0x2f5482(0x17b))/0xb;if(_0x13cafb===_0x2d5631)break;else _0x441c27['push'](_0x441c27['shift']());}catch(_0x5f1708){_0x441c27['push'](_0x441c27['shift']());}}}(_0x988b,0x5a182));var Yt=Object[_0x38cdda(0x276)],Wt=(_0x4b5a99,_0x1a80be,_0x3dd1c1)=>_0x1a80be in _0x4b5a99?Yt(_0x4b5a99,_0x1a80be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd1c1}):_0x4b5a99[_0x1a80be]=_0x3dd1c1,_=(_0x37a34f,_0x578de3,_0x4e79a1)=>Wt(_0x37a34f,typeof _0x578de3!=_0x38cdda(0x2bf)?_0x578de3+'':_0x578de3,_0x4e79a1);import{jsx as _0x22a0e6,jsxs as _0x3aac37}from'react/jsx-runtime';import{CollaborationStatus as _0x5566b4,CollaborationSessionService as _0x4496ea,CollaborationController as _0x489919,DataLoaderService as _0x1082c0,MemberService as _0xf7eafd,SessionStatus as _0x43c2dd,ILocalCacheService as _0x4e2cad,CollaborationUIEventService as _0x464162,CollaborationUIEventId as _0x354e6a,DocCollaborationEntity as _0x55b7eb,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xe89f7f,getLocalCacheKey as _0x598630,LOCAL_CACHE_INTERVAL as _0x5a0638,LOCAL_CACHE_INTERVAL_KEY as _0x2cb797,UniverCollaborationClientPlugin as _0x36932a,CollaborationSocketService as _0x22b90f,DEFAULT_WS_SESSION_TICKET_URL as _0x47950d,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x42eef4,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3d49c2,UnitStatus as _0x47df77}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x134929,IUniverInstanceService as _0x57b197,Inject as _0x11edd2,Injector as _0x1d6fba,Disposable as _0x447589,createIdentifier as _0x2b27ed,ILogService as _0x3b2794,ICommandService as _0x30ccef,Optional as _0xa5584e,RxDisposable as _0x3f6cad,Workbook as _0x403982,DOC_RANGE_TYPE as _0x337f20,debounce as _0x899b23,Rectangle as _0x32e6d6,DisposableCollection as _0x48f1ed,toDisposable as _0x2e6c99,UniverInstanceType as _0x13411f,generateRandomId as _0x11358d,COLORS as _0x2b8a6b,ColorKit as _0x1f7760,ThemeService as _0x387df0,fromEventSubject as _0x225d82,Tools as _0x5884ee,CommandType as _0x4f786a,IConfigService as _0x36ab28,CanceledError as _0x473ecc,isFormulaString as _0x6c29ae,isFormulaId as _0x328479,ILocalStorageService as _0x1c020e,DependentOn as _0x28cf15,Plugin as _0x571114,merge as _0x223c4b,registerDependencies as _0x273047,mergeOverrideWithDependencies as _0x583a07,touchDependencies as _0x165c59}from'@univerjs/core';import{useObservable as _0x89bded,useDependency as _0x23e243,IUIPartsService as _0xe7b79e,BuiltInUIPart as _0x8be1cd,connectInjector as _0x4e4129,IBeforeCloseService as _0x1b49ec,IMessageService as _0x19a1ba,INotificationService as _0x19ecf0}from'@univerjs/ui';import{BehaviorSubject as _0x4f0f13,switchMap as _0x59793b,of as _0x2d29f0,takeUntil as _0x3c41cb,debounceTime as _0xc04ef5,Subject as _0x5ac8bc,filter as _0x32f62e,merge as _0x44c07d,combineLatest as _0x2b9b2e,fromEvent as _0x1b1549,shareReplay as _0xfb0504,mapTo as _0x2c534b,distinctUntilChanged as _0xc41425}from'rxjs';import{Tooltip as _0x230ffb,clsx as _0x57d231,MessageType as _0x8f3016}from'@univerjs/design';import{useRef as _0x33b1b0,createElement as _0x4422eb,forwardRef as _0x52d57e,useCallback as _0x55c03e}from'react';import{IRemoteInstanceService as _0x511197}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x4a6e79,RefRangeService as _0x1bca19,SetSelectionsOperation as _0x224ac4,SheetsSelectionsService as _0x5f0afd,EffectRefRangId as _0x37396e,handleIRemoveRow as _0x590d44,handleIRemoveCol as _0x58fde2,handleMoveRange as _0x10c4cd,handleInsertRow as _0x21bb57,handleInsertRangeMoveRight as _0x204698,handleInsertRangeMoveDown as _0x533ae0,handleInsertCol as _0x260fbe,handleDeleteRangeMoveUp as _0x276adc,handleDeleteRangeMoveLeft as _0x406111,runRefRangeMutations as _0x5887a9}from'@univerjs/sheets';import{Shape as _0x490c21,Rect as _0xa348d8,getColor as _0x19c299,RegularPolygon as _0x1e1639,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x97da41,Vector2 as _0xbab593,SHEET_VIEWPORT_KEY as _0x2234b8,IRenderManagerService as _0x294de9}from'@univerjs/engine-render';import{HTTPService as _0x1718b4,ISocketService as _0x4d0498,WebSocketService as _0x1893c1}from'@univerjs/network';function _0x215c(_0x15663a,_0x26345f){_0x15663a=_0x15663a-0xd1;const _0x988b04=_0x988b();let _0x215c45=_0x988b04[_0x15663a];return _0x215c45;}import{IDocClipboardService as _0x1d7147,NodePositionConvertToCursor as _0x262f06,NodePositionConvertToRectRange as _0x4e4b6b,TEXT_RANGE_LAYER_INDEX as _0xd0acda,SetDocZoomRatioOperation as _0x90994e,DocIMEInputManagerService as _0x26f90f,DocStateChangeManagerService as _0x4a4247}from'@univerjs/docs-ui';import{IImageIoService as _0x4baf00}from'@univerjs/drawing';import{ITransformService as _0x41e619,CollaborationEvent as _0xd5765d,isTransformMutationFailure as _0x2b6a5f,isTransformMutationsWithChangesetSuccess as _0x1d4010,RevisionService as _0x5e4bb5,ISnapshotServerService as _0x7728f}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x549163,RichTextEditingMutation as _0xb130a7,DocSelectionManagerService as _0x186872,DocSkeletonManagerService as _0x183183}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x873948,serializeRangeWithSheet as _0x44e445,FormulaExecuteStageType as _0x303b82,FormulaExecutedStateType as _0x13dfd6,SetFormulaCalculationStartMutation as _0x17cc85,SetFormulaCalculationNotificationMutation as _0x5908a9}from'@univerjs/engine-formula';import{map as _0x5244f0,filter as _0x103525,throttleTime as _0x151c08,takeUntil as _0x4ef6d1,switchMap as _0x4e657c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x519004,getCoordByCell as _0x36ff32,getSheetObject as _0x3eefee}from'@univerjs/sheets-ui';function Ge({ref:_0x77e0df,..._0x5393d9}){const _0x398c61=_0x38cdda,{icon:_0x1b24c7,id:_0x30d0b5,className:_0x17878f,extend:_0xfa7990,..._0x377722}=_0x5393d9,_0x4ec91c=(_0x398c61(0x201)+_0x30d0b5+'\x20'+(_0x17878f||''))['trim'](),_0x4778fd=_0x33b1b0('_'+vi());return At(_0x1b24c7,''+_0x30d0b5,{'defIds':_0x1b24c7['defIds'],'idSuffix':_0x4778fd['current']},{'ref':_0x77e0df,'className':_0x4ec91c,..._0x377722},_0xfa7990);}function At(_0x204bfd,_0x5c441e,_0x21bc8a,_0x245b77,_0x36634d){const _0x8ea550=_0x38cdda;return _0x4422eb(_0x204bfd[_0x8ea550(0x29f)],{'key':_0x5c441e,...gi(_0x204bfd,_0x21bc8a,_0x36634d),..._0x245b77},(Ei(_0x204bfd,_0x21bc8a)[_0x8ea550(0x2f5)]||[])[_0x8ea550(0x1b2)]((_0x2d6170,_0x345658)=>At(_0x2d6170,_0x5c441e+'-'+_0x204bfd[_0x8ea550(0x29f)]+'-'+_0x345658,_0x21bc8a,void 0x0,_0x36634d)));}function gi(_0x4c41ab,_0xfb8526,_0x34fc26){const _0x538ef8=_0x38cdda,_0x1432c9={..._0x4c41ab['attrs']};_0x34fc26!=null&&_0x34fc26['colorChannel1']&&_0x1432c9[_0x538ef8(0x2b4)]==='colorChannel1'&&(_0x1432c9[_0x538ef8(0x2b4)]=_0x34fc26[_0x538ef8(0x195)]),_0x4c41ab[_0x538ef8(0x29f)]===_0x538ef8(0x1ee)&&_0x1432c9['id']&&(_0x1432c9['id']=_0x1432c9['id']+_0xfb8526[_0x538ef8(0x29e)]),Object['entries'](_0x1432c9)[_0x538ef8(0x109)](([_0x2325dc,_0x44ded9])=>{const _0xc596c1=_0x538ef8;_0x2325dc===_0xc596c1(0x1ee)&&typeof _0x44ded9==_0xc596c1(0xec)&&(_0x1432c9[_0x2325dc]=_0x44ded9[_0xc596c1(0x246)](/url\(#(.*)\)/,_0xc596c1(0x211)+_0xfb8526[_0xc596c1(0x29e)]+')'));});const {defIds:_0x3daca7}=_0xfb8526;return!_0x3daca7||_0x3daca7[_0x538ef8(0xe4)]===0x0||(_0x4c41ab[_0x538ef8(0x29f)]===_0x538ef8(0x1a1)&&_0x1432c9[_0x538ef8(0x146)]&&(_0x1432c9[_0x538ef8(0x146)]=_0x1432c9['xlink:href']+_0xfb8526['idSuffix']),Object[_0x538ef8(0x1cd)](_0x1432c9)[_0x538ef8(0x109)](([_0x5ea7f9,_0x3adb8c])=>{const _0x468d38=_0x538ef8;typeof _0x3adb8c=='string'&&(_0x1432c9[_0x5ea7f9]=_0x3adb8c[_0x468d38(0x246)](/url\(#(.*)\)/,_0x468d38(0x211)+_0xfb8526['idSuffix']+')'));})),_0x1432c9;}function Ei(_0x48b611,_0x4bd359){const _0x30bbbb=_0x38cdda;var _0x3af7a8;const {defIds:_0xa7e875}=_0x4bd359;return!_0xa7e875||_0xa7e875[_0x30bbbb(0xe4)]===0x0?_0x48b611:_0x48b611[_0x30bbbb(0x29f)]===_0x30bbbb(0x1c2)&&((_0x3af7a8=_0x48b611[_0x30bbbb(0x2f5)])!=null&&_0x3af7a8[_0x30bbbb(0xe4)])?{..._0x48b611,'children':_0x48b611[_0x30bbbb(0x2f5)]['map'](_0x2d7869=>typeof _0x2d7869['attrs']['id']==_0x30bbbb(0xec)&&_0xa7e875&&_0xa7e875['includes'](_0x2d7869['attrs']['id'])?{..._0x2d7869,'attrs':{..._0x2d7869[_0x30bbbb(0xd4)],'id':_0x2d7869[_0x30bbbb(0xd4)]['id']+_0x4bd359[_0x30bbbb(0x29e)]}}:_0x2d7869)}:_0x48b611;}function vi(){const _0x36b92f=_0x38cdda;return Math[_0x36b92f(0x123)]()['toString'](0x24)[_0x36b92f(0x225)](0x2,0x8);}Ge[_0x38cdda(0x2e8)]=_0x38cdda(0x241);const pi={'tag':_0x38cdda(0x2ae),'attrs':{'xmlns':_0x38cdda(0x2eb),'fill':_0x38cdda(0x19d),'viewBox':_0x38cdda(0x250),'width':_0x38cdda(0x19b),'height':_0x38cdda(0x19b)},'children':[{'tag':'g','attrs':{'clipPath':_0x38cdda(0x31e)},'children':[{'tag':_0x38cdda(0x1b1),'attrs':{'stroke':_0x38cdda(0x178),'d':_0x38cdda(0x321),'strokeLinecap':_0x38cdda(0xda),'strokeLinejoin':_0x38cdda(0xda),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x38cdda(0x1aa),'attrs':{'id':_0x38cdda(0x2d3)},'children':[{'tag':_0x38cdda(0x1b1),'attrs':{'fill':_0x38cdda(0x28c),'d':_0x38cdda(0x28f)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x52d57e(function(_0x52b010,_0x5ecddb){return _0x4422eb(Ge,Object['assign']({},_0x52b010,{'id':'off-line-icon','ref':_0x5ecddb,'icon':pi}));});Pt[_0x38cdda(0x2e8)]=_0x38cdda(0x1d3);const Oi={'tag':_0x38cdda(0x2ae),'attrs':{'xmlns':_0x38cdda(0x2eb),'fill':_0x38cdda(0x19d),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x38cdda(0x19b)},'children':[{'tag':'g','attrs':{'clipPath':_0x38cdda(0x272)},'children':[{'tag':_0x38cdda(0x1b1),'attrs':{'stroke':_0x38cdda(0x178),'d':_0x38cdda(0x132),'strokeLinecap':_0x38cdda(0xda),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x38cdda(0x1c2),'attrs':{},'children':[{'tag':_0x38cdda(0x1aa),'attrs':{'id':_0x38cdda(0x112)},'children':[{'tag':_0x38cdda(0x1b1),'attrs':{'fill':_0x38cdda(0x28c),'d':_0x38cdda(0x28f),'transform':_0x38cdda(0x10c)}}]}]}],'defIds':[_0x38cdda(0x112)]},wt=_0x52d57e(function(_0x3e3bd1,_0x440abd){const _0x2f4c15=_0x38cdda;return _0x4422eb(Ge,Object[_0x2f4c15(0x187)]({},_0x3e3bd1,{'id':_0x2f4c15(0x136),'ref':_0x440abd,'icon':Oi}));});wt[_0x38cdda(0x2e8)]=_0x38cdda(0x278);function Ti(_0x59adee){const _0x1f7823=_0x38cdda;switch(_0x59adee){case _0x5566b4[_0x1f7823(0x1d8)]:return'collabStatus.offline';case _0x5566b4[_0x1f7823(0x251)]:return _0x1f7823(0x152);case _0x5566b4[_0x1f7823(0x108)]:return _0x1f7823(0x177);case _0x5566b4['NOT_COLLAB']:return'collabStatus.notCollab';case _0x5566b4[_0x1f7823(0x295)]:case _0x5566b4[_0x1f7823(0x13b)]:return _0x1f7823(0x292);case _0x5566b4[_0x1f7823(0x159)]:case _0x5566b4[_0x1f7823(0x2f2)]:return'collabStatus.synced';}}function Ci(_0xd5de00){const _0x2e8552=_0x38cdda,{status$:_0x5e5f67}=_0xd5de00,_0x1515a5=_0x89bded(_0x5e5f67,_0x5566b4[_0x2e8552(0x143)]),_0x5d8b16=_0x23e243(_0x134929),_0x5a5407=_0x23e243(_0x4496ea),_0x5e3b6c=_0x1515a5!==_0x5566b4[_0x2e8552(0x1d8)],_0x17cb8c=_0x5d8b16['t'](Ti(_0x1515a5)),_0x1b2e0d=_0x5e3b6c?_0x22a0e6(wt,{}):_0x22a0e6(Pt,{}),_0x204c4f=_0x55c03e(()=>{_0x5e3b6c||_0x5a5407['reconnect']();},[_0x5e3b6c,_0x5a5407]);function _0x482966(){const _0x24ac90=_0x2e8552;return _0x3aac37(_0x24ac90(0x21d),{'className':_0x24ac90(0x24d),'onClick':_0x204c4f,'children':[_0x22a0e6(_0x24ac90(0x21d),{'className':_0x57d231('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x5e3b6c,'univer-text-red-500':!_0x5e3b6c}),'children':_0x1b2e0d}),_0x22a0e6(_0x24ac90(0x21d),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x17cb8c})]});}return _0x5e3b6c?_0x482966():_0x22a0e6(_0x230ffb,{'title':_0x5d8b16['t']('collab-client.tooltip.reconnect'),'children':_0x482966()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x4e952b,_0x2b1b20,_0x357c4e,_0x2ef498)=>{for(var _0x40aa22=_0x2ef498>0x1?void 0x0:_0x2ef498?Ri(_0x2b1b20,_0x357c4e):_0x2b1b20,_0x431fcc=_0x4e952b['length']-0x1,_0x44ecc2;_0x431fcc>=0x0;_0x431fcc--)(_0x44ecc2=_0x4e952b[_0x431fcc])&&(_0x40aa22=_0x44ecc2(_0x40aa22)||_0x40aa22);return _0x40aa22;},se=(_0x41dc,_0x2a11b5)=>(_0xd77c7a,_0x2f92c1)=>_0x2a11b5(_0xd77c7a,_0x2f92c1,_0x41dc);let ae=class extends _0x447589{constructor(_0x24ae3a,_0x4d5dc0,_0x270154,_0x3a2b7e){const _0xf3c911=_0x38cdda;super(),_(this,'_status$',new _0x4f0f13(_0x5566b4[_0xf3c911(0x143)])),(this['_univerInstanceService']=_0x24ae3a,this[_0xf3c911(0x203)]=_0x4d5dc0,this[_0xf3c911(0x11d)]=_0x270154,this[_0xf3c911(0xfd)]=_0x3a2b7e,this[_0xf3c911(0x229)](),this[_0xf3c911(0x2c3)]());}[_0x38cdda(0x2c3)](){const _0x20461c=_0x38cdda;this[_0x20461c(0xfe)](this[_0x20461c(0x26c)][_0x20461c(0x15f)]['pipe'](_0x59793b(()=>{const _0x5423f8=_0x20461c,_0xc9d940=this[_0x5423f8(0x26c)][_0x5423f8(0x17e)]();return _0xc9d940?this[_0x5423f8(0x11d)]['getCollabEntity$'](_0xc9d940['getUnitId']()):_0x2d29f0(null);}),_0x59793b(_0x130014=>_0x130014?_0x130014[_0x20461c(0x1e7)]:_0x2d29f0(_0x5566b4[_0x20461c(0x143)])))[_0x20461c(0x268)](_0x1a8dab=>{const _0x4f771e=_0x20461c;this[_0x4f771e(0x2ac)][_0x4f771e(0x21c)](_0x1a8dab);}));}['_initStatusComponent'](){const _0x4a45f5=_0x38cdda;this['disposeWithMe'](this[_0x4a45f5(0xfd)][_0x4a45f5(0x1ca)](_0x8be1cd[_0x4a45f5(0x1e9)],()=>_0x4e4129(Ni({'status$':this['_status$']['asObservable']()}),this[_0x4a45f5(0x203)])));}};ae=Di([se(0x0,_0x57b197),se(0x1,_0x11edd2(_0x1d6fba)),se(0x2,_0x11edd2(_0x489919)),se(0x3,_0xe7b79e)],ae);function Ni(_0x248fb1){const {status$:_0x5424b6}=_0x248fb1;return function(){return _0x22a0e6(Ci,{'status$':_0x5424b6});};}const yt=_0x2b27ed(_0x38cdda(0x255));var bi=Object[_0x38cdda(0x1ac)],Li=(_0x3a704b,_0x5cc7fc,_0x2e568b,_0x49fc8e)=>{const _0x924d52=_0x38cdda;for(var _0x530069=_0x49fc8e>0x1?void 0x0:_0x49fc8e?bi(_0x5cc7fc,_0x2e568b):_0x5cc7fc,_0xb94aa4=_0x3a704b[_0x924d52(0xe4)]-0x1,_0xfe75d6;_0xb94aa4>=0x0;_0xb94aa4--)(_0xfe75d6=_0x3a704b[_0xb94aa4])&&(_0x530069=_0xfe75d6(_0x530069)||_0x530069);return _0x530069;},K=(_0x428033,_0x431360)=>(_0x19e67a,_0x28c346)=>_0x431360(_0x19e67a,_0x28c346,_0x428033);let ce=class extends _0x3f6cad{constructor(_0x123826,_0x378146,_0x547282,_0x1a5b65,_0x5513fe){const _0x19d9dd=_0x38cdda;super(),this['_urlService']=_0x123826,this[_0x19d9dd(0x193)]=_0x378146,this[_0x19d9dd(0x2d5)]=_0x547282,this[_0x19d9dd(0x179)]=_0x1a5b65,_0x5513fe?_0x5513fe==null||_0x5513fe[_0x19d9dd(0x189)]()[_0x19d9dd(0x256)](()=>this[_0x19d9dd(0x141)]()):(this[_0x19d9dd(0x193)][_0x19d9dd(0x22c)](_0x19d9dd(0xf9),_0x19d9dd(0x303)),this[_0x19d9dd(0x141)]());}async[_0x38cdda(0x141)](){const _0x365820=_0x38cdda,_0x25a725=this[_0x365820(0x23f)][_0x365820(0x264)](_0x365820(0x165)),_0xbb6316=this[_0x365820(0x23f)][_0x365820(0x264)](_0x365820(0x29a)),_0x22d6cd=this[_0x365820(0x23f)][_0x365820(0x264)]('subunit');if(!_0x25a725||!_0xbb6316){this[_0x365820(0x193)][_0x365820(0x22c)](_0x365820(0xf9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x52a080=await this[_0x365820(0x179)][_0x365820(0x1bc)](_0x25a725,Number(_0xbb6316),_0x22d6cd);_0x52a080&&_0x52a080 instanceof _0x403982&&this[_0x365820(0xd8)](_0x52a080);}async['_setupSubUnitSync'](_0x427db0){const _0x2b1571=_0x38cdda;await this[_0x2b1571(0x11a)](_0x427db0),_0x427db0[_0x2b1571(0x2fc)][_0x2b1571(0x31b)](_0x3c41cb(this[_0x2b1571(0x1c5)]))['subscribe'](_0x2103e6=>{const _0x599319=_0x2b1571;_0x2103e6&&this[_0x599319(0x233)](_0x2103e6);}),this['_urlService']['urlChange$']['pipe'](_0x3c41cb(this[_0x2b1571(0x1c5)]))[_0x2b1571(0x268)](()=>this[_0x2b1571(0x11a)](_0x427db0));}[_0x38cdda(0x233)](_0x22bd11,_0x1d4f5e=!0x1){const _0xfee452=_0x38cdda,_0x3a719a=this[_0xfee452(0x23f)][_0xfee452(0x264)]('subunit');_0x22bd11[_0xfee452(0xdf)]()!==_0x3a719a&&this['_urlService'][_0xfee452(0xe7)](_0xfee452(0x1c1),_0x22bd11[_0xfee452(0xdf)](),_0x1d4f5e);}async[_0x38cdda(0x11a)](_0x502386){const _0x445e10=_0x38cdda;var _0x16d60b;const _0x29a89c=this['_urlService']['getParam'](_0x445e10(0x1c1));if(!_0x29a89c||!_0x502386[_0x445e10(0x149)](_0x29a89c)){const _0x27f363=_0x502386['getUnhiddenWorksheets']()[0x0],_0x5e5f18=_0x502386['getSheetBySheetId'](_0x27f363);if(!_0x5e5f18)return;this[_0x445e10(0x233)](_0x5e5f18,!0x0),await this[_0x445e10(0x2d5)][_0x445e10(0x223)](_0x4a6e79['id'],{'unitId':_0x502386['getUnitId'](),'subUnitId':_0x27f363});return;}((_0x16d60b=_0x502386[_0x445e10(0x25d)]())==null?void 0x0:_0x16d60b[_0x445e10(0xdf)]())!==_0x29a89c&&await this[_0x445e10(0x2d5)]['executeCommand'](_0x4a6e79['id'],{'unitId':_0x502386[_0x445e10(0xf6)](),'subUnitId':_0x29a89c});}};ce=Li([K(0x0,yt),K(0x1,_0x3b2794),K(0x2,_0x30ccef),K(0x3,_0x11edd2(_0x1082c0)),K(0x4,_0xa5584e(_0x511197))],ce);var Ui=Object[_0x38cdda(0x1ac)],Mi=(_0x904f0,_0x44327a,_0x4335e1,_0x2f5ea4)=>{for(var _0x5e5ad9=_0x2f5ea4>0x1?void 0x0:_0x2f5ea4?Ui(_0x44327a,_0x4335e1):_0x44327a,_0x23ed49=_0x904f0['length']-0x1,_0x539d17;_0x23ed49>=0x0;_0x23ed49--)(_0x539d17=_0x904f0[_0x23ed49])&&(_0x5e5ad9=_0x539d17(_0x5e5ad9)||_0x5e5ad9);return _0x5e5ad9;},rt=(_0x4fdef8,_0x5b81ca)=>(_0x450606,_0x5333d7)=>_0x5b81ca(_0x450606,_0x5333d7,_0x4fdef8);let $e=class extends _0x3f6cad{constructor(_0x337899,_0x2d4be1){const _0x44dd45=_0x38cdda;super(),this['_docClipboardService']=_0x337899,this[_0x44dd45(0x205)]=_0x2d4be1,this[_0x44dd45(0x141)]();}[_0x38cdda(0x141)](){const _0x42f7ac=_0x38cdda,_0x40b94a=this;this[_0x42f7ac(0xfe)](this[_0x42f7ac(0x2a4)][_0x42f7ac(0x236)]({'onBeforePasteImage':async _0x5eb60c=>{const _0x4f6de0=_0x42f7ac,_0x1e0e62=await _0x40b94a[_0x4f6de0(0x205)][_0x4f6de0(0x1f6)](_0x5eb60c);return _0x1e0e62?{'source':_0x1e0e62['source'],'imageSourceType':_0x1e0e62[_0x4f6de0(0x1c9)]}:null;}}));}};$e=Mi([rt(0x0,_0x1d7147),rt(0x1,_0x4baf00)],$e);const ot=['purple.300',_0x38cdda(0x1f8),_0x38cdda(0x1f3),_0x38cdda(0x2b1),_0x38cdda(0xfa),_0x38cdda(0x282)];class Ke extends _0x447589{constructor(){const _0x3fdf5c=_0x38cdda;super(...arguments),_(this,_0x3fdf5c(0x283),new Map()),_(this,_0x3fdf5c(0x1bd),0x0);}[_0x38cdda(0x168)](_0x4c36d7){const _0x33d8cb=_0x38cdda;if(this[_0x33d8cb(0x283)][_0x33d8cb(0x2e2)](_0x4c36d7))return this[_0x33d8cb(0x283)][_0x33d8cb(0x244)](_0x4c36d7);const _0x5327fb=ot[this['_colorIndex']];return this[_0x33d8cb(0x1bd)]=(this[_0x33d8cb(0x1bd)]+0x1)%ot[_0x33d8cb(0xe4)],this[_0x33d8cb(0x283)][_0x33d8cb(0x1ad)](_0x4c36d7,_0x5327fb),_0x5327fb;}}function $t(_0x38544e){const _0x527726=_0x38cdda;let _0x45c1ee='';for(const _0x26e007 of _0x38544e){const {startOffset:_0x2d7759,endOffset:_0x4c3922,isActive:_0x4eca07,rangeType:_0x1eab82,segmentId:_0x2bf8f2,segmentPage:_0x2d62a4}=_0x26e007;_0x45c1ee[_0x527726(0xe4)]&&(_0x45c1ee+=','),_0x45c1ee+=_0x2d7759+':'+_0x4c3922+':'+(_0x4eca07?'1':'0')+':'+_0x1eab82+':'+_0x2bf8f2+':'+_0x2d62a4;}return _0x45c1ee;}function Ai(_0x358fca){const _0x566f2e=_0x38cdda,_0x13a005=_0x358fca[_0x566f2e(0x2b2)](','),_0x40865a=[];for(const _0x3af69e of _0x13a005){const [_0x4ca90b,_0x32444b,_0x1fc2ac,_0x405c3f,_0x25158e,_0x3455e9]=_0x3af69e['split'](':');_0x40865a['push']({'startOffset':Number(_0x4ca90b),'endOffset':Number(_0x32444b),'collapsed':_0x4ca90b===_0x32444b,'isActive':_0x1fc2ac==='1','rangeType':_0x405c3f===_0x337f20[_0x566f2e(0x232)]?_0x337f20[_0x566f2e(0x232)]:_0x337f20['RECT'],'segmentId':typeof _0x25158e==_0x566f2e(0xec)?String(_0x25158e):'','segmentPage':Number(_0x3455e9!=null?_0x3455e9:-0x1)});}return _0x40865a['some'](_0x4dbbce=>_0x4dbbce[_0x566f2e(0x170)])||(_0x40865a[0x0][_0x566f2e(0x170)]=!0x0),_0x40865a;}class ze extends _0x3f6cad{constructor(){const _0x561ae4=_0x38cdda;super(...arguments),_(this,_0x561ae4(0x29d),new _0x4f0f13(null)),_(this,_0x561ae4(0x175),this[_0x561ae4(0x29d)]['asObservable']());}[_0x38cdda(0x16b)](_0x17d4b7){const _0x4104bc=_0x38cdda,{unitID:_0x5ea3f5,memberID:_0x1345b8,textRanges:_0x59c1e9}=_0x17d4b7,_0x5559eb=$t(_0x59c1e9);if(_0x5559eb==='')return;const _0x297ab9={'unitID':_0x5ea3f5,'memberID':_0x1345b8,'selection':_0x5559eb};this[_0x4104bc(0x29d)]['next'](_0x297ab9);}}var Pi=Object[_0x38cdda(0x1ac)],wi=(_0x225726,_0x17cd71,_0x2f6d61,_0x2eb8d0)=>{const _0x5029b7=_0x38cdda;for(var _0x5768a2=_0x2eb8d0>0x1?void 0x0:_0x2eb8d0?Pi(_0x17cd71,_0x2f6d61):_0x17cd71,_0x45f8bd=_0x225726[_0x5029b7(0xe4)]-0x1,_0x183cfc;_0x45f8bd>=0x0;_0x45f8bd--)(_0x183cfc=_0x225726[_0x45f8bd])&&(_0x5768a2=_0x183cfc(_0x5768a2)||_0x5768a2);return _0x5768a2;},A=(_0x385794,_0x2902b0)=>(_0x484148,_0x682c32)=>_0x2902b0(_0x484148,_0x682c32,_0x385794);const yi=0x12c,$i=0x64;let xe=class extends _0x3f6cad{constructor(_0x560a03,_0x20fa4d,_0x38950c,_0x45dae6,_0x3b04de,_0xa58678,_0x410f4b,_0x466702,_0x293928){const _0x4c4d74=_0x38cdda;super(),_(this,_0x4c4d74(0x1b4),!0x1),_(this,_0x4c4d74(0x141),!0x1),_(this,_0x4c4d74(0x17d),new _0x4f0f13(new Map())),_(this,_0x4c4d74(0x25e),this[_0x4c4d74(0x17d)][_0x4c4d74(0x1fe)]()),_(this,'_roomMembers$',new _0x4f0f13([])),_(this,_0x4c4d74(0xf1),this[_0x4c4d74(0x252)][_0x4c4d74(0x31b)](_0xc04ef5(yi))),_(this,_0x4c4d74(0x122),_0x899b23(_0x4da2e3=>{const _0x4e5495=_0x4c4d74,_0x3369fe={'eventID':_0xd5765d['UPDATE_CURSOR'],'data':{'unitID':this[_0x4e5495(0x14a)],'memberID':this[_0x4e5495(0x25c)][_0x4e5495(0x1fb)](),'selection':$t(_0x4da2e3)}};this[_0x4e5495(0x25c)][_0x4e5495(0x1a7)](_0x3369fe,this[_0x4e5495(0x14a)]);},$i)),(this[_0x4c4d74(0x14a)]=_0x560a03,this[_0x4c4d74(0x25c)]=_0x20fa4d,this[_0x4c4d74(0x203)]=_0x38950c,this[_0x4c4d74(0x1dc)]=_0x45dae6,this[_0x4c4d74(0x2c2)]=_0x3b04de,this['_syncEditingCollabCursorService']=_0xa58678,this[_0x4c4d74(0x27d)]=_0x410f4b,this[_0x4c4d74(0x26c)]=_0x466702,this[_0x4c4d74(0x2d5)]=_0x293928);}get[_0x38cdda(0x18d)](){const _0xd9efa4=_0x38cdda;return this[_0xd9efa4(0x17d)][_0xd9efa4(0x102)]();}get[_0x38cdda(0x1e6)](){const _0x4beff3=_0x38cdda;return this[_0x4beff3(0x252)][_0x4beff3(0x102)]();}['dispose'](){const _0x3b1c26=_0x38cdda;super[_0x3b1c26(0x16f)](),this[_0x3b1c26(0x17d)][_0x3b1c26(0x21c)](new Map()),this[_0x3b1c26(0x17d)][_0x3b1c26(0x319)](),this[_0x3b1c26(0x252)][_0x3b1c26(0x21c)]([]),this['_roomMembers$'][_0x3b1c26(0x319)]();}[_0x38cdda(0x2d1)](){const _0x52dd5b=_0x38cdda;this['_init']||(this['_init']=!0x0,this[_0x52dd5b(0x25c)][_0x52dd5b(0x1a3)][_0x52dd5b(0x31b)](_0x3c41cb(this[_0x52dd5b(0x1c5)]))[_0x52dd5b(0x268)](_0x4afbc7=>{const _0x4bf600=_0x52dd5b;_0x4afbc7===_0x43c2dd[_0x4bf600(0x24a)]?this[_0x4bf600(0x291)]():this['_toggleOffline']();}),this[_0x52dd5b(0x25c)][_0x52dd5b(0x130)][_0x52dd5b(0x31b)](_0x3c41cb(this[_0x52dd5b(0x1c5)]))[_0x52dd5b(0x268)](_0x1398d5=>{const _0x1c04f3=_0x52dd5b,_0x4f2e22=_0x1398d5[_0x1c04f3(0x1d2)];_0x4f2e22===_0xd5765d[_0x1c04f3(0xe2)]&&this['_onCursorUpdate'](_0x1398d5),_0x4f2e22===_0xd5765d['USERS_LEAVE']&&this[_0x1c04f3(0xe5)](_0x1398d5);}),this[_0x52dd5b(0xfe)](this[_0x52dd5b(0x2d5)][_0x52dd5b(0x113)](_0x1017f7=>{const _0x18fc46=_0x52dd5b,_0x2e5620=_0x1017f7[_0x18fc46(0x2a7)];_0x2e5620!=null&&this[_0x18fc46(0x1b4)]&&_0x1017f7['id']===_0x549163['id']&&_0x2e5620[_0x18fc46(0x18e)]===this[_0x18fc46(0x14a)]&&_0x2e5620[_0x18fc46(0x258)]===!0x1&&_0x2e5620[_0x18fc46(0x1b9)]['length']>0x0&&this[_0x18fc46(0x122)](_0x2e5620[_0x18fc46(0x1b9)]);})),this[_0x52dd5b(0x266)]['collabCursorState$'][_0x52dd5b(0x31b)](_0x3c41cb(this[_0x52dd5b(0x1c5)]))[_0x52dd5b(0x268)](_0x48f3c6=>{const _0x3d75e4=_0x52dd5b;if((_0x48f3c6==null?void 0x0:_0x48f3c6[_0x3d75e4(0x14a)])!==this[_0x3d75e4(0x14a)])return;const _0x57d81b={'eventID':_0xd5765d[_0x3d75e4(0xe2)],'data':_0x48f3c6};this[_0x3d75e4(0x305)](_0x57d81b);}),this['disposeWithMe'](this['_commandService'][_0x52dd5b(0x113)](_0x43670a=>{const _0x2614e7=_0x52dd5b;if(_0x43670a[_0x2614e7(0x2a7)]==null)return;const _0x379723=_0x43670a[_0x2614e7(0x2a7)];if(_0x43670a['id']!==_0xb130a7['id']||_0x379723[_0x2614e7(0x18e)]!==this[_0x2614e7(0x14a)])return;const _0x551587={'id':_0x2614e7(0x2bc),'params':_0x379723},_0x956498=this[_0x2614e7(0x18d)];for(const [_0x436685,_0x3c4ce1]of _0x956498){const _0x38f19d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2614e7(0x14a)],'actions':null,'textRanges':_0x3c4ce1[_0x2614e7(0x1b9)]}},_0x6d0a51=this[_0x2614e7(0x27d)][_0x2614e7(0x1d1)](_0x551587,_0x38f19d,!0x1);if(_0x2b6a5f(_0x6d0a51))throw _0x6d0a51[_0x2614e7(0x12a)];_0x956498[_0x2614e7(0x1ad)](_0x436685,{..._0x3c4ce1,'ranges':_0x6d0a51[_0x2614e7(0x1c6)]['params'][_0x2614e7(0x117)]});}queueMicrotask(()=>{const _0x49a3b9=_0x2614e7;this[_0x49a3b9(0x17d)][_0x49a3b9(0x21c)](_0x956498);});})));}[_0x38cdda(0x305)](_0x135d14){const _0x2872f2=_0x38cdda;var _0xd492d4,_0x4f6883;const {memberID:_0x14096f,selection:_0x3a651a}=_0x135d14[_0x2872f2(0x219)],_0x1cf372=Ai(_0x3a651a),_0x28e666=(_0x4f6883=(_0xd492d4=this[_0x2872f2(0x2c2)][_0x2872f2(0x1eb)](this[_0x2872f2(0x14a)],_0x14096f))==null?void 0x0:_0xd492d4[_0x2872f2(0x231)])!=null?_0x4f6883:_0x2872f2(0x31f),_0x5f23a8={'color':this[_0x2872f2(0x1dc)][_0x2872f2(0x168)](_0x14096f),'name':_0x28e666,'ranges':_0x1cf372},_0x5a79e8=this[_0x2872f2(0x18d)];_0x5a79e8['set'](_0x14096f,_0x5f23a8),this[_0x2872f2(0x17d)][_0x2872f2(0x21c)](_0x5a79e8);}[_0x38cdda(0xe5)](_0x77e268){const _0x96b6fa=_0x38cdda,{memberID:_0x4125c0}=_0x77e268[_0x96b6fa(0x219)],_0x927925=this[_0x96b6fa(0x18d)];_0x927925[_0x96b6fa(0x1f5)](_0x4125c0),this[_0x96b6fa(0x17d)]['next'](_0x927925);}[_0x38cdda(0x291)](){const _0x338f2e=_0x38cdda;var _0x476ef6;if(this[_0x338f2e(0x1b4)]=!0x0,((_0x476ef6=this[_0x338f2e(0x26c)]['getFocusedUnit']())==null?void 0x0:_0x476ef6[_0x338f2e(0xf6)]())!==this[_0x338f2e(0x14a)])return;const _0x4e9cb5=this['_injector']['get'](_0x186872)[_0x338f2e(0x2dd)]();Array[_0x338f2e(0x2c5)](_0x4e9cb5)&&_0x4e9cb5['length']>0x0&&this['_updateLocalCursor'](_0x4e9cb5);}[_0x38cdda(0x314)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x11edd2(_0x1d6fba)),A(0x3,_0x11edd2(Ke)),A(0x4,_0x11edd2(_0xf7eafd)),A(0x5,_0x11edd2(ze)),A(0x6,_0x41e619),A(0x7,_0x57b197),A(0x8,_0x30ccef)],xe);var xi=Object[_0x38cdda(0x1ac)],Bi=(_0x422ba7,_0x6734a7,_0x31e0a7,_0x4c4f4f)=>{const _0x1923ec=_0x38cdda;for(var _0x72eb06=_0x4c4f4f>0x1?void 0x0:_0x4c4f4f?xi(_0x6734a7,_0x31e0a7):_0x6734a7,_0x369dbf=_0x422ba7[_0x1923ec(0xe4)]-0x1,_0x264da2;_0x369dbf>=0x0;_0x369dbf--)(_0x264da2=_0x422ba7[_0x369dbf])&&(_0x72eb06=_0x264da2(_0x72eb06)||_0x72eb06);return _0x72eb06;},B=(_0x254ae4,_0x5db489)=>(_0x3ae834,_0x540fde)=>_0x5db489(_0x3ae834,_0x540fde,_0x254ae4);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x3ac35f=[],_0x58f1ac=!0x1;return _0x3fc31f=>{const _0x1a12a2=_0x215c;_0x3ac35f[_0x1a12a2(0x186)](_0x3fc31f),_0x58f1ac||(_0x58f1ac=!0x0,setTimeout(()=>{_0x3ac35f['forEach'](_0x14864c=>_0x14864c()),_0x3ac35f=[],_0x58f1ac=!0x1;}));};};let Be=class extends _0x3f6cad{constructor(_0x505aab,_0x5e9557,_0x1e7be4,_0x374830,_0x48cb70,_0x1025d6,_0x3ee85a,_0x54a1ea){const _0x459c27=_0x38cdda;super(),_(this,_0x459c27(0x1b4),!0x1),_(this,_0x459c27(0x141),!0x1),_(this,_0x459c27(0x17d),new _0x4f0f13(new Map())),_(this,_0x459c27(0x25e),this[_0x459c27(0x17d)]['asObservable']()),_(this,_0x459c27(0x252),new _0x4f0f13([])),_(this,_0x459c27(0xf1),this[_0x459c27(0x252)][_0x459c27(0x31b)](_0xc04ef5(Fi))),_(this,_0x459c27(0x122),_0x899b23((_0x3cc0dd,_0x8f07ed)=>{const _0x4c83f9=_0x459c27,_0x1d389d={'eventID':_0xd5765d[_0x4c83f9(0xe2)],'data':{'unitID':this[_0x4c83f9(0x14a)],'memberID':this['_session']['getMemberID'](),'selection':_0x44e445(_0x3cc0dd,_0x8f07ed[_0x4c83f9(0x2f3)])}};this[_0x4c83f9(0x25c)][_0x4c83f9(0x1a7)](_0x1d389d,this[_0x4c83f9(0x14a)]);},ki)),(this[_0x459c27(0x14a)]=_0x505aab,this[_0x459c27(0x25c)]=_0x5e9557,this['_injector']=_0x1e7be4,this[_0x459c27(0x1dc)]=_0x374830,this['_memberService']=_0x48cb70,this[_0x459c27(0x26c)]=_0x1025d6,this['_commandService']=_0x3ee85a,this['_refRangeService']=_0x54a1ea);}get[_0x38cdda(0x18d)](){const _0x6b97ec=_0x38cdda;return this[_0x6b97ec(0x17d)][_0x6b97ec(0x102)]();}get['roomMembers'](){const _0x3f155d=_0x38cdda;return this['_roomMembers$'][_0x3f155d(0x102)]();}[_0x38cdda(0x16f)](){const _0x5177c4=_0x38cdda;super['dispose'](),this[_0x5177c4(0x17d)][_0x5177c4(0x21c)](new Map()),this[_0x5177c4(0x17d)][_0x5177c4(0x319)](),this['_roomMembers$'][_0x5177c4(0x21c)]([]),this[_0x5177c4(0x252)][_0x5177c4(0x319)]();}[_0x38cdda(0x2d1)](){const _0x8797e=_0x38cdda;this[_0x8797e(0x141)]||(this[_0x8797e(0x141)]=!0x0,this[_0x8797e(0x25c)][_0x8797e(0x1a3)][_0x8797e(0x31b)](_0x3c41cb(this[_0x8797e(0x1c5)]))[_0x8797e(0x268)](_0x5b53f0=>{const _0x4797f9=_0x8797e;_0x5b53f0===_0x43c2dd[_0x4797f9(0x24a)]?this[_0x4797f9(0x291)]():this[_0x4797f9(0x314)]();}),this[_0x8797e(0x25c)][_0x8797e(0x130)]['pipe'](_0x3c41cb(this[_0x8797e(0x1c5)]))['subscribe'](_0x2f658a=>{const _0x59e9bb=_0x8797e,_0x4bff60=_0x2f658a[_0x59e9bb(0x1d2)];_0x4bff60===_0xd5765d[_0x59e9bb(0xe2)]&&this[_0x59e9bb(0x305)](_0x2f658a),_0x4bff60===_0xd5765d[_0x59e9bb(0xf8)]&&this[_0x59e9bb(0xe5)](_0x2f658a);}),this[_0x8797e(0x147)](),this[_0x8797e(0xfe)](this[_0x8797e(0x2d5)][_0x8797e(0x113)](_0x590661=>{const _0x536dee=_0x8797e;if(this['_online']&&_0x590661['id']===_0x224ac4['id']&&_0x590661[_0x536dee(0x2a7)]['unitId']===this[_0x536dee(0x14a)]){const _0x3c71fe=_0x590661[_0x536dee(0x2a7)];this[_0x536dee(0x122)](_0x3c71fe['subUnitId'],_0x3c71fe[_0x536dee(0x247)][0x0]);}})));}[_0x38cdda(0x305)](_0x428e71){const _0x5b0f8a=_0x38cdda;var _0x4e6acb,_0x387eb8;const {memberID:_0x33b38c,selection:_0x275983}=_0x428e71[_0x5b0f8a(0x219)],{sheetName:_0x1d79df,range:_0x2967fd}=_0x873948(_0x275983),_0x1bc172={'name':(_0x387eb8=(_0x4e6acb=this[_0x5b0f8a(0x2c2)][_0x5b0f8a(0x1eb)](this[_0x5b0f8a(0x14a)],_0x33b38c))==null?void 0x0:_0x4e6acb['name'])!=null?_0x387eb8:_0x5b0f8a(0x31f),'range':this[_0x5b0f8a(0x19c)](_0x1d79df,_0x2967fd),'sheetID':_0x1d79df,'color':this[_0x5b0f8a(0x1dc)][_0x5b0f8a(0x168)](_0x33b38c),'selection':_0x275983},_0x1cef28=this[_0x5b0f8a(0x18d)];_0x1cef28[_0x5b0f8a(0x1ad)](_0x33b38c,_0x1bc172),this[_0x5b0f8a(0x17d)][_0x5b0f8a(0x21c)](_0x1cef28);}[_0x38cdda(0xe5)](_0x4507b3){const _0x358eac=_0x38cdda,{memberID:_0x2b46a7}=_0x4507b3[_0x358eac(0x219)],_0x33a8e=this[_0x358eac(0x18d)];_0x33a8e['delete'](_0x2b46a7),this[_0x358eac(0x17d)][_0x358eac(0x21c)](_0x33a8e);}['_getMergeRange'](_0x205fcb,_0x47b234){const _0x487704=_0x38cdda;var _0x281361,_0x4c9e86;const _0x16efe2=(_0x4c9e86=(_0x281361=this['_univerInstanceService'][_0x487704(0x14c)](this[_0x487704(0x14a)]))==null?void 0x0:_0x281361['getSheetBySheetId'](_0x205fcb))==null?void 0x0:_0x4c9e86['getMergeData']();return(_0x16efe2==null?void 0x0:_0x16efe2[_0x487704(0x243)](_0x1ee7fb=>_0x32e6d6[_0x487704(0x1a9)](_0x1ee7fb,_0x47b234)))||_0x47b234;}[_0x38cdda(0x147)](){const _0x734b6c=_0x38cdda,_0x487ba7=new _0x48f1ed(),_0x2f6201=Hi(),_0x361fbe=()=>{const _0x32fdb3=_0x215c;_0x487ba7[_0x32fdb3(0x16f)]();const _0x4e4f62=(_0x93daae,_0x571daa,_0x2ae1c2,_0x3bfd00)=>{const _0x4bd821=_0x32fdb3;let _0x32816e=[];switch(_0x93daae['id']){case _0x37396e[_0x4bd821(0x1f0)]:{_0x32816e=_0x406111(_0x93daae,_0x3bfd00);break;}case _0x37396e['DeleteRangeMoveUpCommandId']:{_0x32816e=_0x276adc(_0x93daae,_0x3bfd00);break;}case _0x37396e[_0x4bd821(0xf7)]:{_0x32816e=_0x260fbe(_0x93daae,_0x3bfd00);break;}case _0x37396e['InsertRangeMoveDownCommandId']:{_0x32816e=_0x533ae0(_0x93daae,_0x3bfd00);break;}case _0x37396e[_0x4bd821(0x1e5)]:{_0x32816e=_0x204698(_0x93daae,_0x3bfd00);break;}case _0x37396e[_0x4bd821(0x1e1)]:{_0x32816e=_0x21bb57(_0x93daae,_0x3bfd00);break;}case _0x37396e[_0x4bd821(0x133)]:{_0x32816e=_0x10c4cd(_0x93daae,_0x3bfd00);break;}case _0x37396e[_0x4bd821(0x2e7)]:{_0x32816e=_0x58fde2(_0x93daae,_0x3bfd00);break;}case _0x37396e['RemoveRowCommandId']:{_0x32816e=_0x590d44(_0x93daae,_0x3bfd00);break;}}const _0xf2da29=_0x5887a9(_0x32816e,_0x3bfd00),_0x37b44f=this[_0x4bd821(0x18d)]['get'](_0x571daa);if(_0x37b44f&&_0xf2da29){const _0xbdd3af={..._0x37b44f,'range':_0xf2da29};this[_0x4bd821(0x18d)][_0x4bd821(0x1ad)](_0x571daa,_0xbdd3af),_0x2f6201(()=>{const _0x50df15=_0x4bd821,_0x45bc95=this[_0x50df15(0x1d9)][_0x50df15(0x14d)](_0xf2da29,_0x1def29=>(_0x45bc95['dispose'](),_0x4e4f62(_0x1def29,_0x571daa,_0x2ae1c2,_0xf2da29)));_0x487ba7[_0x50df15(0x126)](_0x45bc95);});}return{'redos':[],'undos':[]};};this[_0x32fdb3(0x18d)]['forEach']((_0x1173fe,_0x19f802)=>{const _0x456448=_0x32fdb3,{range:_0x404b7b,sheetID:_0x127b31}=_0x1173fe,_0x373177=this[_0x456448(0x1d9)]['registerRefRange'](_0x404b7b,_0x15e946=>(_0x373177['dispose'](),_0x4e4f62(_0x15e946,_0x19f802,_0x127b31,_0x404b7b)));_0x487ba7[_0x456448(0x126)](_0x373177);});};this[_0x734b6c(0xfe)](_0x2e6c99(this['_cursorInfo$'][_0x734b6c(0x268)](()=>{_0x361fbe();})));}[_0x38cdda(0x291)](){const _0x2259fe=_0x38cdda;var _0x2eed26,_0x3a984f;if(this[_0x2259fe(0x1b4)]=!0x0,((_0x2eed26=this[_0x2259fe(0x26c)][_0x2259fe(0x17e)]())==null?void 0x0:_0x2eed26[_0x2259fe(0xf6)]())!==this['unitID'])return;const _0x539295=(_0x3a984f=this[_0x2259fe(0x203)]['get'](_0x5f0afd)['getCurrentSelections']())==null?void 0x0:_0x3a984f[0x0],_0x4bdab5=this[_0x2259fe(0x26c)][_0x2259fe(0x118)](_0x13411f[_0x2259fe(0x18f)])['getActiveSheet']();_0x539295&&_0x4bdab5&&this[_0x2259fe(0x122)](_0x4bdab5[_0x2259fe(0xdf)](),_0x539295);}[_0x38cdda(0x314)](){const _0x2c52b8=_0x38cdda;this[_0x2c52b8(0x1b4)]=!0x1;}};Be=Bi([B(0x2,_0x11edd2(_0x1d6fba)),B(0x3,_0x11edd2(Ke)),B(0x4,_0x11edd2(_0xf7eafd)),B(0x5,_0x57b197),B(0x6,_0x30ccef),B(0x7,_0x11edd2(_0x1bca19))],Be);var Yi=Object[_0x38cdda(0x1ac)],Wi=(_0x34f951,_0x36fa4b,_0xb78e97,_0x5202fa)=>{const _0x2467b1=_0x38cdda;for(var _0x579ae0=_0x5202fa>0x1?void 0x0:_0x5202fa?Yi(_0x36fa4b,_0xb78e97):_0x36fa4b,_0x3301f9=_0x34f951[_0x2467b1(0xe4)]-0x1,_0x486b03;_0x3301f9>=0x0;_0x3301f9--)(_0x486b03=_0x34f951[_0x3301f9])&&(_0x579ae0=_0x486b03(_0x579ae0)||_0x579ae0);return _0x579ae0;},Ce=(_0x3aaaaa,_0x46ff56)=>(_0x6a5a4e,_0x26566d)=>_0x46ff56(_0x6a5a4e,_0x26566d,_0x3aaaaa);let H=class extends _0x3f6cad{constructor(_0x5536e8,_0x1dbdca,_0x8815c1){const _0x1320ef=_0x38cdda;super(),_(this,_0x1320ef(0x1ec),new Map()),_(this,_0x1320ef(0x145),new _0x5ac8bc()),(this[_0x1320ef(0x26c)]=_0x5536e8,this[_0x1320ef(0x203)]=_0x1dbdca,this['_collabSessionService']=_0x8815c1,this[_0x1320ef(0x141)]());}[_0x38cdda(0x16f)](){const _0x299d1a=_0x38cdda;super[_0x299d1a(0x16f)](),this[_0x299d1a(0x145)][_0x299d1a(0x319)](),this[_0x299d1a(0x1ec)][_0x299d1a(0x109)](_0x32a525=>_0x32a525[_0x299d1a(0x16f)]());}['getCollabCursors$'](_0x462735){const _0x2c4835=_0x38cdda;return this[_0x2c4835(0x1ec)][_0x2c4835(0x2e2)](_0x462735)?this['_entities'][_0x2c4835(0x244)](_0x462735)[_0x2c4835(0x25e)]:this[_0x2c4835(0x145)][_0x2c4835(0x31b)](_0x32f62e(_0x2cc62e=>_0x2cc62e[_0x2c4835(0x14a)]===_0x462735),_0x59793b(_0x3c778a=>_0x3c778a[_0x2c4835(0x25e)]));}['_init'](){const _0x13323e=_0x38cdda;this[_0x13323e(0x26c)][_0x13323e(0x226)](_0x13411f[_0x13323e(0x18f)])[_0x13323e(0x31b)](_0x3c41cb(this['dispose$']))['subscribe'](async _0x51e344=>{const _0x16358a=_0x13323e,_0x3d07ca=_0x51e344[_0x16358a(0xf6)](),_0x6faa6f=await this['_startSheetCollabCursor'](_0x3d07ca);this[_0x16358a(0x145)][_0x16358a(0x21c)](_0x6faa6f),this[_0x16358a(0x1ec)]['set'](_0x3d07ca,_0x6faa6f);}),this[_0x13323e(0x26c)][_0x13323e(0x226)](_0x13411f[_0x13323e(0x269)])[_0x13323e(0x31b)](_0x3c41cb(this[_0x13323e(0x1c5)]))[_0x13323e(0x31b)](_0x32f62e(_0x24707c=>!_0x24707c[_0x13323e(0xf6)]()['startsWith']('__')))[_0x13323e(0x268)](async _0x262376=>{const _0x5614e7=_0x13323e,_0x2aa859=_0x262376[_0x5614e7(0xf6)](),_0x54c8d5=await this['_startDocCollabCursor'](_0x2aa859);this[_0x5614e7(0x145)]['next'](_0x54c8d5),this[_0x5614e7(0x1ec)][_0x5614e7(0x1ad)](_0x2aa859,_0x54c8d5);}),_0x44c07d(this[_0x13323e(0x26c)][_0x13323e(0x190)](_0x13411f[_0x13323e(0x269)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x13411f[_0x13323e(0x18f)]))[_0x13323e(0x31b)](_0x3c41cb(this[_0x13323e(0x1c5)]))['subscribe'](_0x3c9b79=>{const _0x315483=_0x13323e,_0x43bf40=_0x3c9b79[_0x315483(0xf6)](),_0x5a8a61=this[_0x315483(0x1ec)][_0x315483(0x244)](_0x43bf40);_0x5a8a61&&(_0x5a8a61['dispose'](),this[_0x315483(0x1ec)][_0x315483(0x1f5)](_0x43bf40));});}async[_0x38cdda(0x28a)](_0x49653c){const _0x55627d=_0x38cdda,_0x5c8ac8=await this[_0x55627d(0x2fe)]['requireSession'](_0x49653c),_0x50b285=this[_0x55627d(0x203)]['createInstance'](Be,_0x49653c,_0x5c8ac8);return _0x50b285[_0x55627d(0x2d1)](),_0x50b285;}async[_0x38cdda(0x13a)](_0xba0c59){const _0x3ff5cf=_0x38cdda,_0x54ec52=await this[_0x3ff5cf(0x2fe)]['requireSession'](_0xba0c59),_0x19a4f5=this[_0x3ff5cf(0x203)][_0x3ff5cf(0x15c)](xe,_0xba0c59,_0x54ec52);return _0x19a4f5['init'](),_0x19a4f5;}};H=Wi([Ce(0x0,_0x57b197),Ce(0x1,_0x11edd2(_0x1d6fba)),Ce(0x2,_0x11edd2(_0x4496ea))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x15c8c9,_0x12d472){const _0x1a2408=_0x38cdda;let {radius:_0x1f5451,width:_0x3ef09b,height:_0x1f23b6}=_0x12d472;_0x1f5451=_0x1f5451!=null?_0x1f5451:0x0,_0x3ef09b=_0x3ef09b!=null?_0x3ef09b:0x1e,_0x1f23b6=_0x1f23b6!=null?_0x1f23b6:0x1e;let _0x2bf6a3=0x0,_0x4c122c=0x0,_0x3bc2d9=0x0;_0x2bf6a3=_0x4c122c=_0x3bc2d9=Math[_0x1a2408(0x17f)](_0x1f5451,_0x3ef09b/0x2,_0x1f23b6/0x2),_0x15c8c9[_0x1a2408(0x26e)](),_0x15c8c9[_0x1a2408(0x137)](_0x2bf6a3,0x0),_0x15c8c9[_0x1a2408(0x1de)](_0x3ef09b-_0x4c122c,0x0),_0x15c8c9[_0x1a2408(0x2d0)](_0x3ef09b-_0x4c122c,_0x4c122c,_0x4c122c,Math['PI']*0x3/0x2,0x0,!0x1),_0x15c8c9[_0x1a2408(0x1de)](_0x3ef09b,_0x1f23b6-_0x3bc2d9),_0x15c8c9[_0x1a2408(0x2d0)](_0x3ef09b-_0x3bc2d9,_0x1f23b6-_0x3bc2d9,_0x3bc2d9,0x0,Math['PI']/0x2,!0x1),_0x15c8c9[_0x1a2408(0x1de)](0x0,_0x1f23b6),_0x15c8c9[_0x1a2408(0x1de)](0x0,_0x2bf6a3),_0x15c8c9[_0x1a2408(0x2d0)](_0x2bf6a3,_0x2bf6a3,_0x2bf6a3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x15c8c9[_0x1a2408(0x163)](),_0x12d472[_0x1a2408(0x2b4)]&&(_0x15c8c9[_0x1a2408(0xd9)](),_0x15c8c9[_0x1a2408(0x2b3)]=_0x12d472[_0x1a2408(0x2b4)],_0x12d472[_0x1a2408(0x24c)]===_0x1a2408(0x1d5)?_0x15c8c9[_0x1a2408(0x2b4)](_0x1a2408(0x1d5)):_0x15c8c9[_0x1a2408(0x2b4)](),_0x15c8c9['restore']());}class ve extends _0x490c21{constructor(_0x37c8db,_0x13a7d9){const _0x2eb3ad=_0x38cdda;super(_0x37c8db,_0x13a7d9),_(this,'color'),_(this,_0x2eb3ad(0xf4)),(this[_0x2eb3ad(0x13f)]=_0x13a7d9==null?void 0x0:_0x13a7d9['color'],this[_0x2eb3ad(0xf4)]=_0x13a7d9==null?void 0x0:_0x13a7d9[_0x2eb3ad(0xf4)]);}static[_0x38cdda(0xea)](_0x4ea882,_0x1d5646){const _0x4382c9=_0x38cdda,{text:_0x5d3f7b,color:_0x518cd1}=_0x1d5646;_0x4ea882[_0x4382c9(0xd9)](),_0x4ea882[_0x4382c9(0x2ef)]=_0x4382c9(0x22a);const _0x445773=_0x4ea882[_0x4382c9(0x104)](_0x5d3f7b)['width'],_0xa8dc5e=Math['min'](_0x445773+0x2*Re,at);ji(_0x4ea882,{'height':Q,'radius':0x4,'width':_0xa8dc5e,'fill':_0x518cd1}),_0x4ea882[_0x4382c9(0x2b3)]='#FFF';const _0x1121bd=Re,_0x5c1673=Q-Vi,_0x5cbf3c=at-0x2*Re;if(_0x445773>_0x5cbf3c){let _0xea96d0='',_0xd3032=0x0;for(const _0x1d0322 of _0x5d3f7b){const _0x4af00f=_0x4ea882['measureText'](_0x1d0322)['width'];if(_0xd3032+_0x4af00f<=_0x5cbf3c-_0x4ea882[_0x4382c9(0x104)](_0x4382c9(0x2c0))['width'])_0xea96d0+=_0x1d0322,_0xd3032+=_0x4af00f;else{_0xea96d0+=_0x4382c9(0x2c0);break;}}_0x4ea882[_0x4382c9(0x125)](_0xea96d0,_0x1121bd,_0x5c1673);}else _0x4ea882[_0x4382c9(0x125)](_0x5d3f7b,_0x1121bd,_0x5c1673);_0x4ea882[_0x4382c9(0x1bf)]();}['_draw'](_0x4580d8){const _0x33eb4e=_0x38cdda;ve[_0x33eb4e(0xea)](_0x4580d8,this);}}const De=_0x38cdda(0x153),Xi=_0x38cdda(0x1c4),Gi=_0x38cdda(0xdc),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x38cdda(0x22e);class ct{constructor(_0x2c97a8,_0x4a3720,_0x50ba52,_0x397d6a){const _0x10386d=_0x38cdda;_(this,'_shapes',[]),_(this,_0x10386d(0x275),null),_(this,_0x10386d(0x11e),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x10386d(0xe1),null),(this['_cursor']=_0x2c97a8,this[_0x10386d(0x2df)]=_0x4a3720,this['_docSkeleton']=_0x50ba52,this[_0x10386d(0x1c0)]=_0x397d6a,this[_0x10386d(0x311)]());}set['_hover'](_0x2d8d90){const _0x184225=_0x38cdda;_0x2d8d90?(this[_0x184225(0x16e)]&&this[_0x184225(0x16e)][_0x184225(0xe8)](),this[_0x184225(0x11e)]&&this[_0x184225(0x11e)][_0x184225(0x197)]()):(this[_0x184225(0x16e)]&&this['_anchorDot'][_0x184225(0x197)](),this[_0x184225(0x11e)]&&this[_0x184225(0x11e)]['hide']());}[_0x38cdda(0x16f)](){const _0xbc05e=_0x38cdda;for(const _0x734760 of this[_0xbc05e(0x131)])_0x734760['dispose']();this[_0xbc05e(0x11e)]&&this[_0xbc05e(0x11e)][_0xbc05e(0x16f)](),this[_0xbc05e(0x16e)]&&this['_anchorDot'][_0xbc05e(0x16f)](),this[_0xbc05e(0x275)]&&this[_0xbc05e(0x275)][_0xbc05e(0x16f)](),this[_0xbc05e(0xe1)]&&this[_0xbc05e(0xe1)]();}[_0x38cdda(0x311)](){const _0x192318=_0x38cdda;var _0x74d81f;const {_docSkeleton:_0x16c82f,_document:_0x19ea74}=this,{color:_0x5c75af,name:_0x31a089,ranges:_0xec49f2}=this[_0x192318(0x1e8)],_0x1efd64=_0x19ea74[_0x192318(0x14b)](),{docsLeft:_0x5a0283,docsTop:_0xc8d838}=_0x1efd64,_0x3cbca4=new _0x262f06(_0x1efd64,_0x16c82f);for(const {startOffset:_0x497d1d,endOffset:_0x409a58,rangeType:_0x3d9455,segmentId:_0x414f4b,segmentPage:_0x2b990a,collapsed:_0x36ce5f,isActive:_0x3d7e38}of _0xec49f2){const _0x2c5c43=_0x16c82f[_0x192318(0x31c)](_0x497d1d,!0x0,_0x414f4b,_0x2b990a);let _0x24e6a3=_0x16c82f[_0x192318(0x31c)](_0x409a58,!0x0,_0x414f4b,_0x2b990a);if(_0x24e6a3==null&&(_0x24e6a3=_0x16c82f[_0x192318(0x31c)](_0x409a58-0x1,!0x1,_0x414f4b,_0x2b990a)),_0x3d7e38){const {contentBoxPointGroup:_0x28c006}=_0x3cbca4[_0x192318(0x24b)](_0x24e6a3,_0x24e6a3);if(_0x28c006['length']===0x0)continue;this[_0x192318(0x1bb)](_0x5c75af,_0x28c006,_0x5a0283,_0xc8d838,_0x31a089),this[_0x192318(0xe1)]=this[_0x192318(0x12b)]();}if(_0x2c5c43&&_0x24e6a3){if(_0x3d9455===_0x337f20[_0x192318(0x169)]){const _0x1bdf5d=new _0x4e4b6b(_0x1efd64,_0x16c82f),{pointGroup:_0x4629a8}=(_0x74d81f=_0x1bdf5d[_0x192318(0x24b)](_0x2c5c43,_0x24e6a3))!=null?_0x74d81f:{};if(_0x4629a8==null||_0x4629a8[_0x192318(0xe4)]===0x0)continue;this[_0x192318(0x20f)](_0x5c75af,_0x4629a8,_0x5a0283,_0xc8d838);}else{if(!_0x36ce5f){const {borderBoxPointGroup:_0x4881d0}=_0x3cbca4[_0x192318(0x24b)](_0x2c5c43,_0x24e6a3);if(_0x4881d0[_0x192318(0xe4)]===0x0)continue;this[_0x192318(0x27f)](_0x5c75af,_0x4881d0,_0x5a0283,_0xc8d838);}}}}}[_0x38cdda(0x1bb)](_0x2f4346,_0xffaa46,_0xc3e949,_0x38da43,_0x9a978e){const _0x475050=_0x38cdda,_0x302831=this[_0x475050(0x1cc)](_0xffaa46),{left:_0xee6295,top:_0x1429df,height:_0x13d7ac}=_0x302831,_0x3e3452=this[_0x475050(0x198)](),_0x1c195c=zi/_0x3e3452,_0xf3b9e0=new _0xa348d8(De+_0x11358d(z),{'left':_0xee6295+_0xc3e949-_0x1c195c,'top':_0x1429df+_0x38da43,'height':_0x13d7ac,'width':Ki,'fill':_0x2f4346||_0x19c299(_0x2b8a6b[_0x475050(0x214)],0x0),'strokeWidth':_0x1c195c,'stroke':Ji,'evented':!0x0});this[_0x475050(0x275)]=_0xf3b9e0,this['_scene'][_0x475050(0x204)](_0xf3b9e0,_0xd0acda);const _0x41c9b8=new _0xa348d8(De+_0x11358d(z),{'left':_0xee6295+_0xc3e949-_0x1c195c,'top':_0x1429df+_0x38da43-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2f4346||_0x19c299(_0x2b8a6b[_0x475050(0x214)],0x0),'strokeWidth':0x0,'stroke':_0x2f4346||_0x19c299(_0x2b8a6b[_0x475050(0x214)],0x0),'evented':!0x1});this[_0x475050(0x16e)]=_0x41c9b8,this[_0x475050(0x2df)][_0x475050(0x204)](_0x41c9b8,_0xd0acda);const _0x50abfd=new ve(De+_0x11358d(z),{'left':_0xee6295+_0xc3e949-_0x1c195c,'top':_0x1429df+_0x38da43-Q,'text':_0x9a978e,'color':_0x2f4346});this[_0x475050(0x11e)]=_0x50abfd,this[_0x475050(0x2df)][_0x475050(0x204)](_0x50abfd,_0xd0acda),this[_0x475050(0x312)]=!0x1;}[_0x38cdda(0x12b)](){const _0xd6bb63=_0x38cdda,_0x581f86=this[_0xd6bb63(0x275)][_0xd6bb63(0x15b)][_0xd6bb63(0x18a)](()=>{const _0x11fc12=_0xd6bb63;this[_0x11fc12(0x312)]=!0x0;}),_0x137813=this['_anchor'][_0xd6bb63(0x2cf)]['subscribeEvent'](()=>{const _0x4a753a=_0xd6bb63;this['_hideTimer']&&clearTimeout(this[_0x4a753a(0x19f)]),this[_0x4a753a(0x19f)]=setTimeout(()=>{const _0x55c0a7=_0x4a753a;this[_0x55c0a7(0x312)]=!0x1;},0x7d0);});return()=>{const _0x2d435e=_0xd6bb63;_0x581f86['unsubscribe'](),_0x137813[_0x2d435e(0x13e)]();};}[_0x38cdda(0x27f)](_0x34c387,_0x3a91fb,_0x5ecaa8,_0x108266){const _0x598a24=_0x38cdda,_0x55d04a=new _0x1f7760(_0x34c387)[_0x598a24(0x24e)](0.2)[_0x598a24(0x322)](),_0x16d7a3=new _0x1e1639(Xi+_0x11358d(z),{'pointsGroup':_0x3a91fb,'fill':_0x55d04a||_0x19c299(_0x2b8a6b[_0x598a24(0x214)],0.2),'left':_0x5ecaa8,'top':_0x108266,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x598a24(0x131)]['push'](_0x16d7a3),this[_0x598a24(0x2df)][_0x598a24(0x204)](_0x16d7a3,_0xd0acda);}[_0x38cdda(0x20f)](_0x46f1e2,_0xd8f683,_0x5cfcbf,_0x2ab9a6){const _0x119707=_0x38cdda,_0x3856cf=new _0x1f7760(_0x46f1e2)[_0x119707(0x24e)](0.2)[_0x119707(0x322)](),_0x1dab14=new _0x1e1639(Gi+_0x11358d(z),{'pointsGroup':_0xd8f683,'fill':_0x3856cf||_0x19c299(_0x2b8a6b[_0x119707(0x214)],0.2),'left':_0x5cfcbf,'top':_0x2ab9a6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x119707(0x131)]['push'](_0x1dab14),this[_0x119707(0x2df)][_0x119707(0x204)](_0x1dab14,_0xd0acda);}['_getAnchorBounding'](_0x59dad9){const _0x1dd457=_0x59dad9[0x0],_0x19094e=_0x1dd457[0x0],_0x2b4a73=_0x1dd457[0x2],{x:_0x4e7a78,y:_0xd6d8f1}=_0x19094e,{x:_0xbbc18a,y:_0x48a86e}=_0x2b4a73;return{'left':_0x4e7a78,'top':_0xd6d8f1,'width':_0xbbc18a-_0x4e7a78,'height':_0x48a86e-_0xd6d8f1};}[_0x38cdda(0x198)](){const _0x3c57c7=_0x38cdda,{scaleX:_0x2bb20f,scaleY:_0x4bafa4}=this[_0x3c57c7(0x2df)][_0x3c57c7(0x171)]();return Math[_0x3c57c7(0x12d)](_0x2bb20f,_0x4bafa4);}}var Zi=Object[_0x38cdda(0x1ac)],Qi=(_0x5b8753,_0x2e93af,_0x557dd0,_0x10054c)=>{const _0x2a41d4=_0x38cdda;for(var _0xb814e2=_0x10054c>0x1?void 0x0:_0x10054c?Zi(_0x2e93af,_0x557dd0):_0x2e93af,_0x1a9481=_0x5b8753[_0x2a41d4(0xe4)]-0x1,_0x410344;_0x1a9481>=0x0;_0x1a9481--)(_0x410344=_0x5b8753[_0x1a9481])&&(_0xb814e2=_0x410344(_0xb814e2)||_0xb814e2);return _0xb814e2;},ie=(_0x1cb3c6,_0x59cc8d)=>(_0x3f7d8c,_0x15202e)=>_0x59cc8d(_0x3f7d8c,_0x15202e,_0x1cb3c6);let Fe=class extends _0x3f6cad{constructor(_0x308393,_0x187a88,_0x41d42b,_0x547c74,_0x10a44e){const _0x56e3fc=_0x38cdda;super(),_(this,_0x56e3fc(0x158),[]),_(this,_0x56e3fc(0xd5),[]),(this[_0x56e3fc(0x2e1)]=_0x308393,this[_0x56e3fc(0x16c)]=_0x187a88,this[_0x56e3fc(0x1db)]=_0x41d42b,this[_0x56e3fc(0x2d5)]=_0x547c74,this[_0x56e3fc(0x30e)]=_0x10a44e,this[_0x56e3fc(0x141)]());}['_init'](){const _0x464a2d=_0x38cdda,_0x4464a1=this[_0x464a2d(0x2e1)]['unitId'],_0x2f90a5=this[_0x464a2d(0x16c)];this[_0x464a2d(0xfe)](_0x2b9b2e([this[_0x464a2d(0x1db)]['getCollabCursors$'](_0x4464a1),this[_0x464a2d(0x30e)][_0x464a2d(0x182)]])[_0x464a2d(0x31b)](_0x5244f0(([_0x2d1a94,_0x37165a])=>({'skeleton':_0x2f90a5['getSkeleton'](),'cursors':[..._0x2d1a94[_0x464a2d(0x2e5)]()][_0x464a2d(0x151)](_0x293b43=>({..._0x293b43,'color':this[_0x464a2d(0x30e)][_0x464a2d(0x10f)](_0x293b43[_0x464a2d(0x13f)])}))})))['subscribe'](_0x13fec2=>{const _0x27a504=_0x464a2d;if(this[_0x27a504(0xee)](),_0x13fec2){const {skeleton:_0x13cb23,cursors:_0x1af92f}=_0x13fec2;this[_0x27a504(0x16a)](_0x13cb23,_0x1af92f);}})),this[_0x464a2d(0xe6)](),this[_0x464a2d(0x114)]();}[_0x38cdda(0x16a)](_0x453f86,_0x2fd715){const _0x46a5a2=_0x38cdda,{scene:_0x4eae06,mainComponent:_0x4d76d4}=this[_0x46a5a2(0x2e1)],_0x106df2=_0x2fd715[_0x46a5a2(0x1b2)](_0x5bf167=>new ct(_0x5bf167,_0x4eae06,_0x453f86,_0x4d76d4));this[_0x46a5a2(0x158)]=_0x106df2,this[_0x46a5a2(0xd5)]=_0x2fd715;}['_refreshCollabCursors'](){const _0x5e2fef=_0x38cdda;this[_0x5e2fef(0xee)]();const {scene:_0x166e33,mainComponent:_0x493652}=this[_0x5e2fef(0x2e1)],_0xeec63e=this[_0x5e2fef(0x16c)][_0x5e2fef(0x2a2)](),_0x9f860f=this[_0x5e2fef(0xd5)][_0x5e2fef(0x1b2)](_0x2d3a15=>new ct(_0x2d3a15,_0x166e33,_0xeec63e,_0x493652));this[_0x5e2fef(0x158)]=_0x9f860f;}[_0x38cdda(0xee)](){const _0x18efba=_0x38cdda;this[_0x18efba(0x158)][_0x18efba(0x109)](_0x293c6c=>_0x293c6c['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x151f7e=_0x38cdda,_0x217230=[_0x90994e['id']];this['disposeWithMe'](this[_0x151f7e(0x2d5)]['onCommandExecuted'](_0x56815b=>{const _0x5b5f37=_0x151f7e;_0x217230[_0x5b5f37(0x286)](_0x56815b['id'])&&_0x56815b[_0x5b5f37(0x2a7)][_0x5b5f37(0x18e)]===this[_0x5b5f37(0x2e1)][_0x5b5f37(0x18e)]&&this[_0x5b5f37(0x274)]();}));}[_0x38cdda(0xe6)](){const _0x514aa4=_0x38cdda;this[_0x514aa4(0xfe)](_0x225d82(this[_0x514aa4(0x2e1)][_0x514aa4(0x28e)][_0x514aa4(0x25b)])['pipe'](_0x103525(_0x475016=>_0x475016['type']===_0x97da41[_0x514aa4(0x194)]),_0x151c08(0x10))[_0x514aa4(0x268)](()=>{const _0x5b5cfa=_0x514aa4;this[_0x5b5cfa(0x274)]();}));}};Fe=Qi([ie(0x1,_0x11edd2(_0x183183)),ie(0x2,_0x11edd2(H)),ie(0x3,_0x30ccef),ie(0x4,_0x11edd2(_0x387df0))],Fe);const qi=0x1,en=1.5;class tn extends _0x490c21{constructor(_0x362d43,_0xe462da){const _0x4c7d7a=_0x38cdda;super(_0x362d43,_0xe462da),_(this,_0x4c7d7a(0x1b7)),_(this,'_hovered',!0x1),_(this,_0x4c7d7a(0xe0)),_(this,'_name',''),_(this,_0x4c7d7a(0x138),_0x4c7d7a(0x26f)),_(this,_0x4c7d7a(0x1b0)),(_0xe462da&&this[_0x4c7d7a(0x106)](_0xe462da),this['onPointerEnter$'][_0x4c7d7a(0x18a)](()=>this[_0x4c7d7a(0x106)]({'hovered':!0x0})),this[_0x4c7d7a(0x2cf)][_0x4c7d7a(0x18a)](()=>this[_0x4c7d7a(0x106)]({'hovered':!0x1})));}[_0x38cdda(0x106)](_0x671d75){const _0x96671b=_0x38cdda;var _0x102a20,_0x10c4b1,_0x21b880,_0x14ba13,_0x5ba059,_0x143fc;this['_color']=(_0x102a20=_0x671d75[_0x96671b(0x13f)])!=null?_0x102a20:this[_0x96671b(0x1b7)],this[_0x96671b(0x2f7)]=(_0x10c4b1=_0x671d75['hovered'])!=null?_0x10c4b1:this['_hovered'],this[_0x96671b(0xe0)]=(_0x21b880=_0x671d75[_0x96671b(0x2f3)])!=null?_0x21b880:this[_0x96671b(0xe0)],this[_0x96671b(0x1f1)]=(_0x14ba13=_0x671d75['name'])!=null?_0x14ba13:this[_0x96671b(0x1f1)],this[_0x96671b(0x138)]=(_0x5ba059=_0x671d75[_0x96671b(0x21b)])!=null?_0x5ba059:this[_0x96671b(0x138)],this[_0x96671b(0x1b0)]=(_0x143fc=_0x671d75[_0x96671b(0x287)])!=null?_0x143fc:this[_0x96671b(0x1b0)],this['transformByState']({'width':_0x671d75[_0x96671b(0x285)],'height':_0x671d75[_0x96671b(0x181)]});}[_0x38cdda(0x281)](_0x30cb6c){const _0x25ce74=_0x38cdda,{row:_0x4c6cea,column:_0x3e7632}=_0x30cb6c;if(_0x4c6cea>=this[_0x25ce74(0xe0)][_0x25ce74(0x2bd)]&&_0x4c6cea<=this[_0x25ce74(0xe0)][_0x25ce74(0x2b7)]&&_0x3e7632>=this[_0x25ce74(0xe0)][_0x25ce74(0x2d7)]&&_0x3e7632<=this[_0x25ce74(0xe0)][_0x25ce74(0xdb)]){this[_0x25ce74(0x106)]({'hovered':!0x0});return;}this[_0x25ce74(0x106)]({'hovered':!0x1});}[_0x38cdda(0x249)](_0x4a7766){return!0x1;}['_draw'](_0x431cba){const _0x182526=_0x38cdda;_0xa348d8[_0x182526(0xea)](_0x431cba,{'width':this['width'],'height':this[_0x182526(0x181)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x182526(0x1b0)]}),this[_0x182526(0x2f7)]&&(_0x431cba[_0x182526(0xd9)](),_0x431cba[_0x182526(0xf0)](0x1,0x0,0x0,0x1,this[_0x182526(0x285)],this[_0x182526(0x138)]===_0x182526(0x2a9)?0x0:-Q),ve[_0x182526(0xea)](_0x431cba,{'text':this['_name'],'color':this[_0x182526(0x1b7)]}),_0x431cba['restore']());}}var sn=Object[_0x38cdda(0x1ac)],nn=(_0x4a564f,_0x3a6856,_0x1573b1,_0x28b3a2)=>{const _0x3fab5d=_0x38cdda;for(var _0x363616=_0x28b3a2>0x1?void 0x0:_0x28b3a2?sn(_0x3a6856,_0x1573b1):_0x3a6856,_0x3c91e8=_0x4a564f[_0x3fab5d(0xe4)]-0x1,_0x38cca2;_0x3c91e8>=0x0;_0x3c91e8--)(_0x38cca2=_0x4a564f[_0x3c91e8])&&(_0x363616=_0x38cca2(_0x363616)||_0x363616);return _0x363616;},be=(_0xa9d4ea,_0x2e5fdd)=>(_0x56eb9c,_0x29b0d0)=>_0x2e5fdd(_0x56eb9c,_0x29b0d0,_0xa9d4ea);const rn=0x1389;let ke=class extends _0x3f6cad{constructor(_0x187aec,_0x4ef7e8,_0x56fa49,_0x55061a){const _0x4a5d11=_0x38cdda;super(),_(this,'_cursors',new Set()),_(this,_0x4a5d11(0x209),null),(this['_context']=_0x187aec,this[_0x4a5d11(0x1c7)]=_0x4ef7e8,this[_0x4a5d11(0x1db)]=_0x56fa49,this['_themeService']=_0x55061a,this[_0x4a5d11(0x141)]());}[_0x38cdda(0x141)](){const _0x776acd=_0x38cdda;this[_0x776acd(0x1c7)]['currentSkeleton$'][_0x776acd(0x31b)](_0x4ef6d1(this[_0x776acd(0x1c5)]),_0x4e657c(_0x2073e4=>{const _0x495bfe=_0x776acd;if(_0x2073e4){const _0x3a6abe=_0x2073e4[_0x495bfe(0x265)];return _0x2b9b2e(this[_0x495bfe(0x1db)][_0x495bfe(0x17c)](this[_0x495bfe(0x2e1)]['unitId']),this[_0x495bfe(0x30e)][_0x495bfe(0x182)])['pipe'](_0x5244f0(([_0x49b79f,_0x712b01])=>{const _0x1540e0=new Map();return _0x49b79f['forEach']((_0x49e0d8,_0x26e33a)=>{const _0x3e8a10=_0x215c;if(_0x49e0d8[_0x3e8a10(0x2ca)]===_0x3a6abe){const _0x1be5d9={..._0x49e0d8};_0x1be5d9['color']=this[_0x3e8a10(0x30e)][_0x3e8a10(0x10f)](_0x49e0d8[_0x3e8a10(0x13f)]),_0x1540e0['set'](_0x26e33a,_0x1be5d9);}}),{'skeleton':_0x2073e4,'cursors':_0x1540e0};}));}return _0x2d29f0({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x437eb4,cursors:_0x3d963b})=>{const _0x463a36=_0x776acd;this[_0x463a36(0xee)](),_0x437eb4&&this['_updateCollabCursors'](_0x437eb4,_0x3d963b);}),this[_0x776acd(0x1c7)][_0x776acd(0x2c7)]['subscribe'](_0x11df69=>{const _0x3d3c69=_0x776acd;if(_0x11df69==null)return;const {skeleton:_0x4f62f7}=_0x11df69,{scene:_0x278910}=this[_0x3d3c69(0x2e1)];_0x278910['onPointerMove$']['subscribeEvent'](_0x899b23(_0x3a7e55=>{const _0x591041=_0x3d3c69;var _0x1bc783,_0x308ffa;const {offsetX:_0x41e184,offsetY:_0x64ec9b}=_0x3a7e55,{x:_0x26a206,y:_0x2e22bc}=_0x278910['getRelativeToViewportCoord'](_0xbab593[_0x591041(0x180)]([_0x41e184,_0x64ec9b])),{scaleX:_0x3d72fa,scaleY:_0x4dfd35}=_0x278910[_0x591041(0x171)](),_0x496858=_0x278910['getViewport'](_0x2234b8['VIEW_MAIN']),_0x22e66b=_0x278910[_0x591041(0x315)](_0xbab593[_0x591041(0x180)]([_0x26a206,_0x2e22bc]),_0x496858),_0x140e3f=_0x4f62f7[_0x591041(0x2ab)](_0x41e184,_0x64ec9b,_0x3d72fa,_0x4dfd35,_0x22e66b);((_0x1bc783=this[_0x591041(0x209)])==null?void 0x0:_0x1bc783[_0x591041(0x2c6)])===_0x140e3f['column']&&((_0x308ffa=this[_0x591041(0x209)])==null?void 0x0:_0x308ffa[_0x591041(0x280)])===_0x140e3f[_0x591041(0x280)]||this[_0x591041(0xd5)][_0x591041(0x109)](_0x534e47=>{_0x534e47['onMouseMove'](_0x140e3f);});},0x64));});}[_0x38cdda(0x16a)](_0x1d38cf,_0x32e447){const _0x1e038c=_0x38cdda;var _0xd04529;const _0x27743c=(_0xd04529=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0xd04529[_0x1e038c(0x200)];if(!_0x27743c)return;const _0x3ab494=this[_0x1e038c(0x1b5)]();if(!_0x3ab494)return;this['_cursors'][_0x1e038c(0x109)](_0x21eb2f=>{const _0x13ffd9=_0x1e038c;_0x21eb2f[_0x13ffd9(0x2fb)]();});const {scene:_0x2ac52f}=_0x3ab494,_0x2cdda9=on(Array[_0x1e038c(0x2b0)](_0x32e447[_0x1e038c(0x2e5)]()))['map'](_0x318b68=>{const _0x436c12=_0x1e038c,{color:_0x50cccf,range:_0x1c466a,name:_0x3bc897,selection:_0x1b2038,sheetID:_0x579903}=_0x318b68,{startColumn:_0x45bd45,startRow:_0x5c0be3,endColumn:_0xbfd3dd,endRow:_0x299468}=_0x1c466a,_0x561617=_0x36ff32(_0x5c0be3,_0x45bd45,_0x2ac52f,_0x27743c),_0x27c191=_0x36ff32(_0x299468,_0xbfd3dd,_0x2ac52f,_0x27743c),{columnHeaderHeightAndMarginTop:_0x1f5cf5}=_0x27743c,{startX:_0x11907c,startY:_0x2eb64b}=_0x561617,{endX:_0x52b2fd,endY:_0x50aa92}=_0x27c191,_0x5a0941=_0x52b2fd-_0x11907c,_0x3d251b=_0x50aa92-_0x2eb64b,_0x285d6e={'labelPosition':_0x2eb64b-_0x1f5cf5>=Q?_0x436c12(0x26f):_0x436c12(0x2a9),'sheetID':_0x579903,'range':_0x1c466a,'color':_0x50cccf,'name':_0x3bc897,'selection':_0x1b2038,'left':_0x11907c,'top':_0x2eb64b,'width':_0x5a0941,'height':_0x3d251b,'evented':!0x1,'zIndex':rn};return new tn(_0x3bc897,_0x285d6e);});_0x2ac52f[_0x1e038c(0x289)](_0x2cdda9,qi),this['_cursors']=new Set(_0x2cdda9);}[_0x38cdda(0xee)](){const _0xd176a5=_0x38cdda;var _0xa9dc0e;(_0xa9dc0e=this[_0xd176a5(0xd5)])==null||_0xa9dc0e[_0xd176a5(0x109)](_0x47f691=>_0x47f691[_0xd176a5(0x16f)]());}['_getSheetObject'](){const _0x2d6162=_0x38cdda;return _0x3eefee(this[_0x2d6162(0x2e1)][_0x2d6162(0x165)],this[_0x2d6162(0x2e1)]);}};ke=nn([be(0x1,_0x11edd2(_0x519004)),be(0x2,_0x11edd2(H)),be(0x3,_0x11edd2(_0x387df0))],ke);function on(_0x14f581){const _0xf09399=_0x38cdda,_0x44fa0d=new Map();return _0x14f581[_0xf09399(0x109)](_0x42fcec=>{const _0x5af3a8=_0xf09399;if(_0x44fa0d[_0x5af3a8(0x2e2)](_0x42fcec[_0x5af3a8(0x2a5)])){const _0x1949a7=_0x44fa0d[_0x5af3a8(0x244)](_0x42fcec[_0x5af3a8(0x2a5)]);_0x1949a7['name']+=',\x20'+_0x42fcec['name'];}else _0x44fa0d[_0x5af3a8(0x1ad)](_0x42fcec[_0x5af3a8(0x2a5)],_0x42fcec);}),Array[_0xf09399(0x2b0)](_0x44fa0d[_0xf09399(0x2e5)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0xd077d7,_0x57cde2,_0x25b444,_0x78456b)=>{const _0x266d32=_0x38cdda;for(var _0x29f9c2=_0x78456b>0x1?void 0x0:_0x78456b?an(_0x57cde2,_0x25b444):_0x57cde2,_0x514431=_0xd077d7[_0x266d32(0xe4)]-0x1,_0x259946;_0x514431>=0x0;_0x514431--)(_0x259946=_0xd077d7[_0x514431])&&(_0x29f9c2=_0x259946(_0x29f9c2)||_0x29f9c2);return _0x29f9c2;},F=(_0x10ccc9,_0x1c024c)=>(_0xb1f9ac,_0x287e67)=>_0x1c024c(_0xb1f9ac,_0x287e67,_0x10ccc9);let _e=class extends _0x447589{constructor(_0x1152ab,_0x2be4f6,_0x2bd6f4,_0x2d1499,_0x3b9899,_0x5d5295){const _0x25e0f2=_0x38cdda;super(),this[_0x25e0f2(0x2d2)]=_0x1152ab,this[_0x25e0f2(0x196)]=_0x2be4f6,this[_0x25e0f2(0x242)]=_0x2bd6f4,this['_messageService']=_0x2d1499,this['_notificationService']=_0x3b9899,this[_0x25e0f2(0x10a)]=_0x5d5295,this[_0x25e0f2(0x11b)](),this[_0x25e0f2(0x1e0)]();}[_0x38cdda(0x11b)](){const _0x7833a3=_0x38cdda;this['disposeWithMe'](this[_0x7833a3(0x2d2)][_0x7833a3(0x12f)](()=>{const _0x1c7f1e=_0x7833a3;if(this[_0x1c7f1e(0x196)]['saveTaskMap'][_0x1c7f1e(0x2d9)])return this[_0x1c7f1e(0x10a)]['t'](_0x1c7f1e(0x1e4));}));}[_0x38cdda(0x1e0)](){const _0x476ca4=_0x38cdda;this[_0x476ca4(0xfe)](this['_collaborationUIEventService']['event$'][_0x476ca4(0x268)](_0x39f9dc=>{const _0x2890ec=_0x476ca4;_0x39f9dc['id']===_0x354e6a[_0x2890ec(0x134)]&&this[_0x2890ec(0x304)][_0x2890ec(0x197)]({'type':_0x8f3016[_0x2890ec(0x316)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x39f9dc['id']===_0x354e6a[_0x2890ec(0x313)]&&this[_0x2890ec(0x304)][_0x2890ec(0x197)]({'type':_0x8f3016['Warning'],'content':this[_0x2890ec(0x10a)]['t'](_0x2890ec(0x2b5))}),_0x39f9dc['id']===_0x354e6a['PERMISSION_DENIED']&&this[_0x2890ec(0x107)][_0x2890ec(0x197)]({'title':this[_0x2890ec(0x10a)]['t'](_0x2890ec(0x1f4)),'content':this['_localeService']['t'](_0x2890ec(0x30c)),'type':_0x2890ec(0x12a),'duration':0x0}),_0x39f9dc['id']===_0x354e6a[_0x2890ec(0x251)]&&this['_messageService']['show']({'type':_0x8f3016['Error'],'content':this['_localeService']['t'](_0x2890ec(0x2b5))+'('+_0x39f9dc['data']+')'}),_0x39f9dc['id']===_0x354e6a['JOIN_ROOM_FAILED']&&this['_messageService'][_0x2890ec(0x197)]({'type':_0x8f3016[_0x2890ec(0x316)],'content':this[_0x2890ec(0x10a)]['t'](_0x39f9dc['data']||'')}),_0x39f9dc['id']===_0x354e6a[_0x2890ec(0xff)]&&this[_0x2890ec(0x304)][_0x2890ec(0x197)]({'type':_0x8f3016[_0x2890ec(0x316)],'content':this[_0x2890ec(0x10a)]['t'](_0x2890ec(0x11f))}),_0x39f9dc['id']===_0x354e6a['SOCKET_FAILED']&&this[_0x2890ec(0x304)][_0x2890ec(0x197)]({'type':_0x8f3016[_0x2890ec(0x248)],'content':this[_0x2890ec(0x10a)]['t']('session.connection-failed')}),_0x39f9dc['id']===_0x354e6a['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x2890ec(0x197)]({'type':_0x8f3016[_0x2890ec(0x248)],'content':this['_localeService']['t'](_0x2890ec(0x277))});}));}};_e=cn([F(0x0,_0x1b49ec),F(0x1,_0x4e2cad),F(0x2,_0x11edd2(_0x464162)),F(0x3,_0x19a1ba),F(0x4,_0x19ecf0),F(0x5,_0x11edd2(_0x134929))],_e);var _n=Object[_0x38cdda(0x1ac)],ln=(_0x52f301,_0xa2ac74,_0x45a775,_0x130f8e)=>{const _0x9b06fb=_0x38cdda;for(var _0x2ce0a3=_0x130f8e>0x1?void 0x0:_0x130f8e?_n(_0xa2ac74,_0x45a775):_0xa2ac74,_0x5a2a77=_0x52f301[_0x9b06fb(0xe4)]-0x1,_0x2160c7;_0x5a2a77>=0x0;_0x5a2a77--)(_0x2160c7=_0x52f301[_0x5a2a77])&&(_0x2ce0a3=_0x2160c7(_0x2ce0a3)||_0x2ce0a3);return _0x2ce0a3;},ne=(_0x4dd94d,_0xc0c9df)=>(_0x1dbb12,_0xb4356d)=>_0xc0c9df(_0x1dbb12,_0xb4356d,_0x4dd94d);let le=class extends _0x447589{constructor(_0x49810c,_0x34f7b7,_0x3b7104,_0x176a10){const _0xc9fa2b=_0x38cdda;super(),_(this,'_memberID'),(this['_injector']=_0x49810c,this['_httpService']=_0x34f7b7,this[_0xc9fa2b(0x193)]=_0x3b7104,this[_0xc9fa2b(0xd6)]=_0x176a10,this[_0xc9fa2b(0x141)]());}[_0x38cdda(0x141)](){const _0x275bb5=_0x38cdda;this[_0x275bb5(0x1a2)](),this[_0x275bb5(0x267)](),this[_0x275bb5(0x162)](),this[_0x275bb5(0x213)]();}[_0x38cdda(0x213)](){const _0x36f4a=_0x38cdda;this['disposeWithMe'](this[_0x36f4a(0xd6)][_0x36f4a(0x207)]['subscribe'](_0x5ca4d5=>{const _0x2e6379=_0x36f4a;this[_0x2e6379(0x2b6)]=_0x5ca4d5==null?void 0x0:_0x5ca4d5['memberID'];}));}[_0x38cdda(0x1a2)](){const _0x2189c6=_0x38cdda,_0x2c5efd=_0x3ec450=>{const _0x4633ea=_0x215c;var _0x31adda;this[_0x4633ea(0xd3)](_0x4633ea(0x12a),_0x4633ea(0x28d)+_0x3ec450[_0x4633ea(0xe9)]+_0x4633ea(0x270)+_0x3ec450[_0x4633ea(0x2ea)]+':'+_0x3ec450[_0x4633ea(0x14f)]+':'+_0x3ec450['colno']+'\x0a'+(((_0x31adda=_0x3ec450[_0x4633ea(0x12a)])==null?void 0x0:_0x31adda[_0x4633ea(0x2f4)])||''));};window[_0x2189c6(0xde)](_0x2189c6(0x12a),_0x2c5efd),this[_0x2189c6(0xfe)](()=>{const _0x3a0e91=_0x2189c6;window[_0x3a0e91(0x1c8)](_0x3a0e91(0x12a),_0x2c5efd);});}[_0x38cdda(0x267)](){const _0x3f0235=_0x38cdda,_0x50d55c=_0x2d3daa=>{const _0x2780d5=_0x215c;this[_0x2780d5(0xd3)](_0x2780d5(0x12a),'[Unhandled\x20Rejection]:\x20'+_0x2d3daa[_0x2780d5(0x2c4)]);};window[_0x3f0235(0xde)]('unhandledrejection',_0x50d55c),this[_0x3f0235(0xfe)](()=>{const _0x4f6ce0=_0x3f0235;window['removeEventListener'](_0x4f6ce0(0x191),_0x50d55c);});}[_0x38cdda(0x162)](){const _0x1b361c=_0x38cdda,_0x536ab2=this[_0x1b361c(0x193)]['error'][_0x1b361c(0x166)](this['_logService']);this['_logService'][_0x1b361c(0x12a)]=(..._0x301a1f)=>{const _0x2a4b81=_0x1b361c,_0x2e1b8a=_0x301a1f[_0x2a4b81(0x1b2)](_0x48a219=>_0x48a219 instanceof Error?_0x48a219[_0x2a4b81(0xe9)]+'\x0a'+_0x48a219[_0x2a4b81(0x2f4)]:String(_0x48a219))[_0x2a4b81(0x2ce)]('\x20');this[_0x2a4b81(0xd3)](_0x2a4b81(0x12a),_0x2a4b81(0x261)+_0x2e1b8a),_0x536ab2(..._0x301a1f);},this[_0x1b361c(0xfe)](()=>{const _0x2ca9c6=_0x1b361c;this[_0x2ca9c6(0x193)]['error']=_0x536ab2;});}[_0x38cdda(0xd3)](_0x22f37d,_0x11a7ea){const _0x4ef026=_0x38cdda;try{const _0x5a51ba={'userId':this[_0x4ef026(0x2b6)],'logLabel':_0x22f37d,'content':_0x11a7ea};this[_0x4ef026(0x1ef)][_0x4ef026(0x306)](_0x4ef026(0x20c),{'body':_0x5a51ba})[_0x4ef026(0x11c)](()=>{});}catch{}}};le=ln([ne(0x0,_0x11edd2(_0x1d6fba)),ne(0x1,_0x11edd2(_0x1718b4)),ne(0x2,_0x3b2794),ne(0x3,_0x11edd2(_0x4496ea))],le);const hn=_0x38cdda(0x293),_t={};var un=Object[_0x38cdda(0x1ac)],dn=(_0x461756,_0x33bf69,_0x31ca07,_0x50d69e)=>{for(var _0x33d23b=_0x50d69e>0x1?void 0x0:_0x50d69e?un(_0x33bf69,_0x31ca07):_0x33bf69,_0x330eb9=_0x461756['length']-0x1,_0x487448;_0x330eb9>=0x0;_0x330eb9--)(_0x487448=_0x461756[_0x330eb9])&&(_0x33d23b=_0x487448(_0x33d23b)||_0x33d23b);return _0x33d23b;},lt=(_0x1aee93,_0x1a4eb3)=>(_0x76c41c,_0x1addb7)=>_0x1a4eb3(_0x76c41c,_0x1addb7,_0x1aee93);let he=class{constructor(_0x28b49d,_0x31c7af){const _0x201477=_0x38cdda;this[_0x201477(0x27d)]=_0x28b49d,this['_renderManagerService']=_0x31c7af;}[_0x38cdda(0x144)](_0x41a679){const _0x2f3855=_0x38cdda;this[_0x2f3855(0x2ff)](_0x41a679),this['_transformPreviousActiveRange'](_0x41a679);}[_0x38cdda(0x2c1)](_0x1f3719){const _0x20d125=_0x38cdda,{unitID:_0x2a91b8}=_0x1f3719,_0x4ae231=this[_0x20d125(0x1ab)]['getRenderById'](_0x2a91b8)['with'](_0x26f90f),{redoCache:_0x20a8bc}=_0x4ae231['getUndoRedoMutationParamsCache']();if(_0x20a8bc[_0x20d125(0xe4)]===0x0)return _0x1f3719;let _0x274ae7=_0x5884ee[_0x20d125(0x13c)](_0x1f3719['mutations'][0x0]);for(let _0x31603f=0x0;_0x31603f<_0x20a8bc[_0x20d125(0xe4)];_0x31603f++){const _0x3e6a63={'id':_0x20d125(0x2bc),'params':{..._0x20a8bc[_0x31603f]}},_0x39b69d=this['_transformService']['transformMutation'](_0x274ae7,_0x3e6a63,!0x1);if(_0x2b6a5f(_0x39b69d))throw _0x39b69d[_0x20d125(0x12a)];_0x274ae7=_0x39b69d['m1Prime'];}return{..._0x5884ee[_0x20d125(0x13c)](_0x1f3719),'mutations':[_0x274ae7]};}[_0x38cdda(0x2ff)](_0x75245c){const _0x2545d5=_0x38cdda,{unitID:_0x4c31f9}=_0x75245c,_0x506d6a=this['_renderManagerService'][_0x2545d5(0x1b3)](_0x4c31f9)[_0x2545d5(0x26d)](_0x26f90f),{undoCache:_0x1e70f9,redoCache:_0x3e51e9}=_0x506d6a[_0x2545d5(0x100)]();if(_0x1e70f9[_0x2545d5(0xe4)]===0x0||_0x3e51e9[_0x2545d5(0xe4)]===0x0)return;const _0x373a52=[],_0x22ef8f=[];let _0x97bd0a=_0x5884ee[_0x2545d5(0x13c)](_0x75245c[_0x2545d5(0x1f2)][0x0]),_0x51b2ff=_0x5884ee[_0x2545d5(0x13c)](_0x75245c['mutations'][0x0]);for(let _0x27b9bd=_0x1e70f9[_0x2545d5(0xe4)]-0x1;_0x27b9bd>=0x0;_0x27b9bd--){const _0x435d7c={'id':_0x2545d5(0x2bc),'params':{..._0x1e70f9[_0x27b9bd]}},_0x56a493={'id':_0x2545d5(0x2bc),'params':{..._0x3e51e9[_0x27b9bd]}},_0x5c28a9=this[_0x2545d5(0x27d)][_0x2545d5(0x1d1)](_0x97bd0a,_0x435d7c,!0x1),_0x10ce7a=this['_transformService'][_0x2545d5(0x1d1)](_0x51b2ff,_0x56a493,!0x1);if(_0x2b6a5f(_0x5c28a9))throw _0x5c28a9['error'];if(_0x2b6a5f(_0x10ce7a))throw _0x10ce7a['error'];_0x373a52[_0x2545d5(0x220)](_0x5c28a9['m2Prime'][_0x2545d5(0x2a7)]),_0x22ef8f[_0x2545d5(0x220)](_0x10ce7a[_0x2545d5(0x1c6)][_0x2545d5(0x2a7)]),_0x97bd0a=_0x5c28a9[_0x2545d5(0x2a3)],_0x51b2ff=_0x10ce7a[_0x2545d5(0x2a3)];}_0x506d6a[_0x2545d5(0x2c9)]({'undoCache':_0x373a52,'redoCache':_0x22ef8f});}[_0x38cdda(0x20b)](_0x71f4fe){const _0x5f35d1=_0x38cdda,{unitID:_0x4129cd}=_0x71f4fe,_0x3de5c6=this[_0x5f35d1(0x1ab)]['getRenderById'](_0x4129cd)['with'](_0x26f90f),_0x21091c=_0x3de5c6['getActiveRange']();if(_0x21091c==null)return;const _0x542b52=[{'id':_0x5f35d1(0x2bc),'params':{'unitId':_0x71f4fe[_0x5f35d1(0x14a)],'actions':null,'textRanges':[_0x21091c]}}],_0x5dd11d=this[_0x5f35d1(0x27d)][_0x5f35d1(0x174)](_0x71f4fe,_0x542b52);if(!_0x1d4010(_0x5dd11d))throw _0x5dd11d[_0x5f35d1(0x12a)];const _0x427c53=_0x5dd11d['m2Prime'][0x0]['params'][_0x5f35d1(0x117)];Array['isArray'](_0x427c53)&&_0x427c53['length']&&_0x3de5c6[_0x5f35d1(0x103)](_0x427c53[0x0]);}};he=dn([lt(0x0,_0x41e619),lt(0x1,_0x294de9)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x1aae8e,_0x314860,_0x2f91e2,_0x18763b)=>{const _0xe75e95=_0x38cdda;for(var _0x5dd6e0=_0x18763b>0x1?void 0x0:_0x18763b?Sn(_0x314860,_0x2f91e2):_0x314860,_0x581af0=_0x1aae8e[_0xe75e95(0xe4)]-0x1,_0x26873d;_0x581af0>=0x0;_0x581af0--)(_0x26873d=_0x1aae8e[_0x581af0])&&(_0x5dd6e0=_0x26873d(_0x5dd6e0)||_0x5dd6e0);return _0x5dd6e0;},Le=(_0x42d0f5,_0x4947c1)=>(_0x4b469d,_0x4c868b)=>_0x4947c1(_0x4b469d,_0x4c868b,_0x42d0f5);let ue=class{constructor(_0x489935,_0x14a4d7,_0x51489b){const _0x36fbf2=_0x38cdda;this[_0x36fbf2(0x203)]=_0x489935,this[_0x36fbf2(0x27d)]=_0x14a4d7,this['_docStateChangeManagerService']=_0x51489b;}[_0x38cdda(0x1c3)](_0x2aadc0){const _0x5afcd1=_0x38cdda;this[_0x5afcd1(0x1f7)](_0x2aadc0);}[_0x38cdda(0x2c1)](_0x1133ce){const _0x5948d2=_0x38cdda,{unitID:_0x2545b6}=_0x1133ce,{collaboration:_0x23bc48}=this[_0x5948d2(0x1f9)]['getStateCache'](_0x2545b6);if(_0x23bc48[_0x5948d2(0xe4)]===0x0)return _0x1133ce;let _0x59cb0a=_0x5884ee[_0x5948d2(0x13c)](_0x1133ce['mutations'][0x0]);for(let _0xeabf73=0x0;_0xeabf73<_0x23bc48[_0x5948d2(0xe4)];_0xeabf73++){const _0x9ff040={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x23bc48[_0xeabf73][_0x5948d2(0x18e)],..._0x23bc48[_0xeabf73][_0x5948d2(0x2cc)]}},_0x368a7b=this[_0x5948d2(0x27d)]['transformMutation'](_0x59cb0a,_0x9ff040,!0x1);if(_0x2b6a5f(_0x368a7b))throw _0x368a7b[_0x5948d2(0x12a)];_0x59cb0a=_0x368a7b['m1Prime'];}return{..._0x5884ee['deepClone'](_0x1133ce),'mutations':[_0x59cb0a]};}[_0x38cdda(0x1f7)](_0x505ce){const _0x1694c5=_0x38cdda,{unitID:_0x3da7fe}=_0x505ce,{history:_0x30f8d1,collaboration:_0x3cd312}=this['_docStateChangeManagerService'][_0x1694c5(0x28b)](_0x3da7fe);if(_0x30f8d1[_0x1694c5(0xe4)]===0x0&&_0x3cd312['length']===0x0)return;const _0x3fa2d8=[],_0x5938ef=[];let _0x1bab51=_0x5884ee[_0x1694c5(0x13c)](_0x505ce[_0x1694c5(0x1f2)][0x0]),_0x97e614=_0x5884ee[_0x1694c5(0x13c)](_0x505ce[_0x1694c5(0x1f2)][0x0]);for(let _0x3d6a99=_0x30f8d1[_0x1694c5(0xe4)]-0x1;_0x3d6a99>=0x0;_0x3d6a99--){const _0x5d1eeb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x30f8d1[_0x3d6a99][_0x1694c5(0x18e)],..._0x30f8d1[_0x3d6a99][_0x1694c5(0x155)]}},_0x53a263={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x30f8d1[_0x3d6a99][_0x1694c5(0x18e)],..._0x30f8d1[_0x3d6a99][_0x1694c5(0x2cc)]}},_0x4fca18=this[_0x1694c5(0x27d)]['transformMutation'](_0x1bab51,_0x5d1eeb,!0x1),_0x46e58c=this[_0x1694c5(0x27d)][_0x1694c5(0x1d1)](_0x97e614,_0x53a263,!0x1);if(_0x2b6a5f(_0x4fca18))throw _0x4fca18[_0x1694c5(0x12a)];if(_0x2b6a5f(_0x46e58c))throw _0x46e58c['error'];_0x3fa2d8['unshift']({..._0x30f8d1[_0x3d6a99],'undoState':_0x4fca18[_0x1694c5(0x1c6)][_0x1694c5(0x2a7)],'redoState':_0x46e58c[_0x1694c5(0x1c6)]['params']}),_0x1bab51=_0x4fca18['m1Prime'],_0x97e614=_0x46e58c[_0x1694c5(0x2a3)];}_0x1bab51=_0x5884ee[_0x1694c5(0x13c)](_0x505ce[_0x1694c5(0x1f2)][0x0]),_0x97e614=_0x5884ee[_0x1694c5(0x13c)](_0x505ce['mutations'][0x0]);for(let _0x45d887=_0x3cd312['length']-0x1;_0x45d887>=0x0;_0x45d887--){const _0x2a2b21={'id':_0x1694c5(0x2bc),'params':{'unitId':_0x3cd312[_0x45d887][_0x1694c5(0x18e)],..._0x3cd312[_0x45d887][_0x1694c5(0x155)]}},_0x5ab28a={'id':_0x1694c5(0x2bc),'params':{'unitId':_0x3cd312[_0x45d887][_0x1694c5(0x18e)],..._0x3cd312[_0x45d887]['redoState']}},_0x3fd2f2=this[_0x1694c5(0x27d)]['transformMutation'](_0x1bab51,_0x2a2b21,!0x1),_0x480f95=this[_0x1694c5(0x27d)][_0x1694c5(0x1d1)](_0x97e614,_0x5ab28a,!0x1);if(_0x2b6a5f(_0x3fd2f2))throw _0x3fd2f2[_0x1694c5(0x12a)];if(_0x2b6a5f(_0x480f95))throw _0x480f95['error'];_0x5938ef['unshift']({..._0x3cd312[_0x45d887],'undoState':_0x3fd2f2['m2Prime'][_0x1694c5(0x2a7)],'redoState':_0x480f95[_0x1694c5(0x1c6)]['params']}),_0x1bab51=_0x3fd2f2[_0x1694c5(0x2a3)],_0x97e614=_0x480f95[_0x1694c5(0x2a3)];}this[_0x1694c5(0x1f9)][_0x1694c5(0xeb)](_0x3da7fe,{'history':_0x3fa2d8,'collaboration':_0x5938ef});}};ue=In([Le(0x0,_0x11edd2(_0x1d6fba)),Le(0x1,_0x41e619),Le(0x2,_0x11edd2(_0x4a4247))],ue);var mn=Object[_0x38cdda(0x1ac)],fn=(_0x2f7c0d,_0x4e3e53,_0x10b1cd,_0x229113)=>{const _0x547688=_0x38cdda;for(var _0x5afaa1=_0x229113>0x1?void 0x0:_0x229113?mn(_0x4e3e53,_0x10b1cd):_0x4e3e53,_0x1817ae=_0x2f7c0d[_0x547688(0xe4)]-0x1,_0x5e05b2;_0x1817ae>=0x0;_0x1817ae--)(_0x5e05b2=_0x2f7c0d[_0x1817ae])&&(_0x5afaa1=_0x5e05b2(_0x5afaa1)||_0x5afaa1);return _0x5afaa1;},ht=(_0x508ee1,_0x2ddf94)=>(_0x3f7f26,_0x5c4a1a)=>_0x2ddf94(_0x3f7f26,_0x5c4a1a,_0x508ee1);let de=class{constructor(_0x27bd1e,_0x331016){const _0x243c6e=_0x38cdda;this['_injector']=_0x27bd1e,this[_0x243c6e(0x27d)]=_0x331016;}[_0x38cdda(0x184)](_0x58b631){const _0x5104f6=_0x38cdda;var _0xb7636f;const _0x5c5edf=this['_injector'][_0x5104f6(0x244)](_0x186872),_0x237e83=(_0xb7636f=_0x5c5edf[_0x5104f6(0x2dd)]())!=null?_0xb7636f:[];if(_0x237e83[_0x5104f6(0xe4)]===0x0)return;const _0x49d39f=_0x58b631['unitID'],_0xe03071=[{'id':_0x5104f6(0x2bc),'params':{'unitId':_0x49d39f,'actions':null,'textRanges':_0x237e83}}],_0x4d92c3=this[_0x5104f6(0x27d)][_0x5104f6(0x174)](_0x58b631,_0xe03071);if(!_0x1d4010(_0x4d92c3))throw _0x4d92c3['error'];const _0x231452=_0x4d92c3[_0x5104f6(0x1c6)][0x0][_0x5104f6(0x2a7)][_0x5104f6(0x117)];Array[_0x5104f6(0x2c5)](_0x231452)&&_0x231452[_0x5104f6(0xe4)]&&_0x5c5edf[_0x5104f6(0x1a6)](_0x231452,{'unitId':_0x49d39f,'subUnitId':_0x49d39f},!0x1);}};de=fn([ht(0x0,_0x11edd2(_0x1d6fba)),ht(0x1,_0x41e619)],de);var gn=Object['getOwnPropertyDescriptor'],En=(_0x31221e,_0x4d6f38,_0x4c4574,_0x12cf72)=>{for(var _0x24f558=_0x12cf72>0x1?void 0x0:_0x12cf72?gn(_0x4d6f38,_0x4c4574):_0x4d6f38,_0x220da2=_0x31221e['length']-0x1,_0x4c31e1;_0x220da2>=0x0;_0x220da2--)(_0x4c31e1=_0x31221e[_0x220da2])&&(_0x24f558=_0x4c31e1(_0x24f558)||_0x24f558);return _0x24f558;},U=(_0x21837c,_0x3f0396)=>(_0xdde7ee,_0x11f654)=>_0x3f0396(_0xdde7ee,_0x11f654,_0x21837c);let Se=class extends _0x447589{constructor(_0x8e46ea,_0x7a2316,_0x5ccc17,_0x4ed953,_0x123ed6,_0x296c60,_0x44f534,_0x321d37){const _0x125886=_0x38cdda;super(),_(this,_0x125886(0x2ac),new _0x4f0f13(_0x5566b4['NOT_COLLAB'])),(this[_0x125886(0x1f9)]=_0x8e46ea,this[_0x125886(0x11d)]=_0x7a2316,this[_0x125886(0x2d8)]=_0x5ccc17,this[_0x125886(0x27c)]=_0x4ed953,this[_0x125886(0x2e9)]=_0x123ed6,this['_docSyncEditingCollabCursorService']=_0x296c60,this['_messageService']=_0x44f534,this['_localeService']=_0x321d37,this[_0x125886(0x1da)]());}['_initEntityListener'](){const _0x2e4b4d=_0x38cdda;this[_0x2e4b4d(0xfe)](this[_0x2e4b4d(0x11d)][_0x2e4b4d(0x298)]['subscribe'](_0x347813=>{const _0x35c13f=_0x2e4b4d,_0x115de6=this[_0x35c13f(0x1f9)][_0x35c13f(0x257)][_0x35c13f(0x268)](_0x8fb4a8=>{const _0x34bdd8=_0x35c13f;if(_0x8fb4a8==null)return;const {unitId:_0x52d12d,redoState:_0x57226e,commandId:_0x44e9bc}=_0x8fb4a8;if(_0x52d12d!==_0x347813[_0x34bdd8(0x14a)])return;const _0x350e98={'id':_0x44e9bc,'type':_0x4f786a[_0x34bdd8(0x29b)],'params':{'unitId':_0x52d12d,'actions':_0x57226e[_0x34bdd8(0x20e)],'textRanges':null}};_0x347813[_0x34bdd8(0x245)](_0x350e98);});if(_0x347813['disposeWithMe'](_0x115de6),_0x347813 instanceof _0x55b7eb){const _0x22ced1={'onTransformIME':_0x48c064=>this[_0x35c13f(0x2d8)][_0x35c13f(0x144)](_0x48c064),'onTransformState':_0x300be5=>this[_0x35c13f(0x27c)][_0x35c13f(0x1c3)](_0x300be5),'onTransformSelections':_0x4c25fe=>this[_0x35c13f(0x2e9)][_0x35c13f(0x184)](_0x4c25fe),'onSyncEditingCollabCursor':_0x11c2ed=>this[_0x35c13f(0x1d4)][_0x35c13f(0x16b)](_0x11c2ed),'onTransformRemoteChangesetByIMECache':_0x3442a6=>this['_docTransformIMECacheService'][_0x35c13f(0x2c1)](_0x3442a6),'onTransformRemoteChangesetByStateCache':_0x10ce2d=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x10ce2d)};_0x347813[_0x35c13f(0x2aa)](_0x22ced1);}}));}};Se=En([U(0x0,_0x11edd2(_0x4a4247)),U(0x1,_0x11edd2(_0x489919)),U(0x2,_0x11edd2(he)),U(0x3,_0x11edd2(ue)),U(0x4,_0x11edd2(de)),U(0x5,_0x11edd2(ze)),U(0x6,_0x19a1ba),U(0x7,_0x11edd2(_0x134929))],Se);var Z=(_0x266130=>(_0x266130[_0x266130['UNDEFINED']=0x0]=_0x38cdda(0x215),_0x266130[_0x266130['OK']=0x1]='OK',_0x266130[_0x266130[_0x38cdda(0x222)]=0x2]=_0x38cdda(0x222),_0x266130[_0x266130[_0x38cdda(0x21f)]=0x3]=_0x38cdda(0x21f),_0x266130[_0x266130[_0x38cdda(0x176)]=0x4]=_0x38cdda(0x176),_0x266130[_0x266130[_0x38cdda(0x263)]=0x5]=_0x38cdda(0x263),_0x266130[_0x266130[_0x38cdda(0x2fa)]=0x6]=_0x38cdda(0x2fa),_0x266130[_0x266130['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x266130[_0x266130[_0x38cdda(0x23d)]=0x8]=_0x38cdda(0x23d),_0x266130[_0x266130[_0x38cdda(0x317)]=0x9]=_0x38cdda(0x317),_0x266130[_0x266130['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x266130[_0x266130[_0x38cdda(0x2fd)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x266130[_0x266130[_0x38cdda(0x199)]=0xc]=_0x38cdda(0x199),_0x266130[_0x266130['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x38cdda(0x2a0),_0x266130[_0x266130['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x38cdda(0x1ed),_0x266130[_0x266130[_0x38cdda(0x2e3)]=0xf]=_0x38cdda(0x2e3),_0x266130[_0x266130[_0x38cdda(0x2a8)]=0x10]=_0x38cdda(0x2a8),_0x266130[_0x266130[_0x38cdda(0x1ce)]=0x64]=_0x38cdda(0x1ce),_0x266130[_0x266130[_0x38cdda(0x101)]=0x65]=_0x38cdda(0x101),_0x266130[_0x266130[_0x38cdda(0x183)]=0xc9]=_0x38cdda(0x183),_0x266130[_0x266130[_0x38cdda(0x262)]=0xca]='USER_IS_ANONYMOUS',_0x266130[_0x266130['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x38cdda(0x1e2),_0x266130[_0x266130['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x38cdda(0x318),_0x266130[_0x266130[_0x38cdda(0x23b)]=0x1772]=_0x38cdda(0x23b),_0x266130[_0x266130['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x38cdda(0x206),_0x266130[_0x266130['APPLY_REJECT']=0x1b59]=_0x38cdda(0x115),_0x266130[_0x266130[_0x38cdda(0x284)]=0x1b5a]=_0x38cdda(0x284),_0x266130[_0x266130[_0x38cdda(0x192)]=0x1b5b]=_0x38cdda(0x192),_0x266130[_0x266130['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x38cdda(0x27a),_0x266130[_0x266130[_0x38cdda(0x105)]=0x1b5d]=_0x38cdda(0x105),_0x266130[_0x266130[_0x38cdda(0x239)]=0x1f41]=_0x38cdda(0x239),_0x266130[_0x266130[_0x38cdda(0x300)]=0x2329]=_0x38cdda(0x300),_0x266130[_0x266130[_0x38cdda(0x1dd)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x266130[_0x266130[_0x38cdda(0x221)]=0x232b]=_0x38cdda(0x221),_0x266130[_0x266130[_0x38cdda(0x307)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x266130[_0x266130[_0x38cdda(0x2ec)]=0x232d]=_0x38cdda(0x2ec),_0x266130[_0x266130[_0x38cdda(0x1be)]=0x2711]=_0x38cdda(0x1be),_0x266130[_0x266130[_0x38cdda(0x1a8)]=0x2712]=_0x38cdda(0x1a8),_0x266130[_0x266130[_0x38cdda(0x167)]=0x2713]=_0x38cdda(0x167),_0x266130[_0x266130['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x38cdda(0x208),_0x266130[_0x266130[_0x38cdda(0x121)]=0x271a]=_0x38cdda(0x121),_0x266130[_0x266130[_0x38cdda(0x294)]=0x271b]=_0x38cdda(0x294),_0x266130[_0x266130[_0x38cdda(0x2f8)]=0x271c]=_0x38cdda(0x2f8),_0x266130[_0x266130[_0x38cdda(0x1b8)]=0x271d]=_0x38cdda(0x1b8),_0x266130[_0x266130[_0x38cdda(0x308)]=0x271e]=_0x38cdda(0x308),_0x266130[_0x266130[_0x38cdda(0x2d6)]=0x271f]=_0x38cdda(0x2d6),_0x266130[_0x266130[_0x38cdda(0x27e)]=0x2720]=_0x38cdda(0x27e),_0x266130[_0x266130[_0x38cdda(0x31d)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x266130[_0x266130['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x38cdda(0x288),_0x266130[_0x266130[_0x38cdda(0x234)]=0x2ee2]='INVALID_INVITE_CODE',_0x266130[_0x266130['INVITE_CODE_REQUIRED']=0x2ee3]=_0x38cdda(0x2ba),_0x266130[_0x266130[_0x38cdda(0x202)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x266130[_0x266130[_0x38cdda(0x1cb)]=0x2ee5]=_0x38cdda(0x1cb),_0x266130[_0x266130[_0x38cdda(0xe3)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x266130[_0x266130[_0x38cdda(0xdd)]=0x32ca]=_0x38cdda(0xdd),_0x266130[_0x266130['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x266130[_0x266130[_0x38cdda(0xf2)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x266130[_0x266130[_0x38cdda(0x309)]=0x36b2]=_0x38cdda(0x309),_0x266130[_0x266130[_0x38cdda(0x2f0)]=0x36b3]=_0x38cdda(0x2f0),_0x266130[_0x266130[_0x38cdda(0x1ba)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x266130[_0x266130['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x38cdda(0x26b),_0x266130[_0x266130[_0x38cdda(0x148)]=0x36b6]=_0x38cdda(0x148),_0x266130[_0x266130[_0x38cdda(0x22d)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x266130[_0x266130[_0x38cdda(0x24f)]=0x36b8]=_0x38cdda(0x24f),_0x266130[_0x266130[_0x38cdda(0x253)]=0x3715]=_0x38cdda(0x253),_0x266130[_0x266130[_0x38cdda(0x217)]=0x3716]=_0x38cdda(0x217),_0x266130[_0x266130[_0x38cdda(0x2f1)]=0x3717]=_0x38cdda(0x2f1),_0x266130[_0x266130[_0x38cdda(0x17a)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x266130[_0x266130['REDEMPTION_INVALID_CODE']=0x3a99]=_0x38cdda(0xf5),_0x266130[_0x266130[_0x38cdda(0x12e)]=0x3a9a]=_0x38cdda(0x12e),_0x266130[_0x266130['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x38cdda(0x2f6),_0x266130[_0x266130[_0x38cdda(0x128)]=0x3a9c]=_0x38cdda(0x128),_0x266130[_0x266130['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x38cdda(0x18b),_0x266130[_0x266130[_0x38cdda(0x1b6)]=0x3a9e]=_0x38cdda(0x1b6),_0x266130[_0x266130[_0x38cdda(0x2af)]=0x3a9f]=_0x38cdda(0x2af),_0x266130[_0x266130[_0x38cdda(0x188)]=0x3e81]=_0x38cdda(0x188),_0x266130[_0x266130['UNRECOGNIZED']=-0x1]=_0x38cdda(0x1ea),_0x266130))(Z||{});function vn(_0xf278ac){const _0x4c0ce0=_0x38cdda;var _0x150d8a,_0x45d7e9;const _0x28354d=(_0x150d8a=_0xf278ac[_0x4c0ce0(0x26a)])==null?void 0x0:_0x150d8a[_0x4c0ce0(0x30f)],_0x1d6739=((_0x45d7e9=_0xf278ac[_0x4c0ce0(0x26a)])==null?void 0x0:_0x45d7e9[_0x4c0ce0(0x310)])||0x0;return _0x28354d===_0x303b82[_0x4c0ce0(0x30b)]&&_0x1d6739>0x0;}function pn(_0x58170d){const _0x1b4b93=_0x38cdda;return _0x58170d[_0x1b4b93(0x227)]===_0x13dfd6[_0x1b4b93(0x1a5)];}var On=Object[_0x38cdda(0x1ac)],Tn=(_0x386a76,_0x4d6097,_0x5ea9cb,_0x4571cd)=>{const _0x12d93c=_0x38cdda;for(var _0x3b9b60=_0x4571cd>0x1?void 0x0:_0x4571cd?On(_0x4d6097,_0x5ea9cb):_0x4d6097,_0x367651=_0x386a76[_0x12d93c(0xe4)]-0x1,_0x323c67;_0x367651>=0x0;_0x367651--)(_0x323c67=_0x386a76[_0x367651])&&(_0x3b9b60=_0x323c67(_0x3b9b60)||_0x3b9b60);return _0x3b9b60;},P=(_0x48cc0d,_0xdb7bf9)=>(_0x5343c1,_0x1beb51)=>_0xdb7bf9(_0x5343c1,_0x1beb51,_0x48cc0d);const Cn=_0x38cdda(0x2f9),Rn='/universer-api/license/formula/limit/start',Dn=_0x38cdda(0x1df);let Ie=class extends _0x447589{constructor(_0x1079c5,_0x843411,_0x256747,_0x2014bb,_0x26f126,_0x359719,_0x171834){const _0x437798=_0x38cdda;super(),_(this,_0x437798(0x1d0),null),_(this,_0x437798(0x320),0x0),_(this,'_currentUsage',0x0),_(this,_0x437798(0x25a),[]),_(this,_0x437798(0x2be),0x0),(this[_0x437798(0x304)]=_0x1079c5,this['_commandService']=_0x843411,this[_0x437798(0x173)]=_0x256747,this['_httpService']=_0x2014bb,this[_0x437798(0x26c)]=_0x26f126,this[_0x437798(0x193)]=_0x359719,this[_0x437798(0x10a)]=_0x171834,this[_0x437798(0xf3)]());}[_0x38cdda(0xf3)](){const _0x1e6f5f=_0x38cdda;this['disposeWithMe'](this[_0x1e6f5f(0x2d5)]['beforeCommandExecuted']((_0x5e6e30,_0x39db95)=>{const _0x5834f3=_0x1e6f5f;var _0x3efca5;if(_0x5e6e30['id']!==_0x17cc85['id'])return;const _0x55db2a=_0x5e6e30['params'];if(!this[_0x5834f3(0x230)]((_0x3efca5=_0x55db2a[_0x5834f3(0x22b)])!=null?_0x3efca5:[]))return;if(!this[_0x5834f3(0x120)]())throw this[_0x5834f3(0x2da)](_0x5e6e30,_0x39db95),this[_0x5834f3(0x1ff)](),new _0x473ecc();})),this[_0x1e6f5f(0xfe)](this[_0x1e6f5f(0x2d5)][_0x1e6f5f(0x113)]((_0xb8fd09,_0x2b61b1)=>{const _0x106a49=_0x1e6f5f;if(_0xb8fd09['id']!==_0x5908a9['id'])return;const _0x13ca22=_0xb8fd09[_0x106a49(0x2a7)];if(vn(_0x13ca22)){const _0x2a2dad=_0x11358d();this[_0x106a49(0x25a)][_0x106a49(0x186)](_0x2a2dad),this['_startCalculationLimit'](_0x2a2dad);}else{if(pn(_0x13ca22)&&this[_0x106a49(0x25a)][_0x106a49(0xe4)]>0x0){const _0x9c2e81=this[_0x106a49(0x25a)]['shift']();this[_0x106a49(0x135)](_0x9c2e81);}}}));}[_0x38cdda(0x16f)](){const _0x2f0468=_0x38cdda;super[_0x2f0468(0x16f)](),this['_clearPolling'](),this[_0x2f0468(0x25a)]=[],this[_0x2f0468(0x1af)]=0x0,this[_0x2f0468(0x320)]=0x0,this[_0x2f0468(0x2be)]=0x0;}async[_0x38cdda(0x2da)](_0xea5563,_0x2d4e31){const _0x15be7e=_0x38cdda;for(let _0x30acf7=0x0;_0x30acf7<0x1e;_0x30acf7++)try{if(await this[_0x15be7e(0x30a)](),this['_checkCalculationAvailable']()){this[_0x15be7e(0x111)](_0xea5563,_0x2d4e31),this[_0x15be7e(0x304)][_0x15be7e(0x197)]({'content':this[_0x15be7e(0x10a)]['t']('formula.calculation.started'),'type':_0x8f3016['Success']});return;}await new Promise(_0x1723cd=>{const _0x1fa4e4=_0x15be7e;this[_0x1fa4e4(0x1d0)]=window[_0x1fa4e4(0x161)](_0x1723cd,0x3e8);});}catch(_0x3b6cf9){this[_0x15be7e(0x193)][_0x15be7e(0x12a)](_0x3b6cf9);}this[_0x15be7e(0x304)][_0x15be7e(0x197)]({'content':this[_0x15be7e(0x10a)]['t'](_0x15be7e(0x160)),'type':_0x8f3016[_0x15be7e(0x248)]});}[_0x38cdda(0x111)](_0xffaa85,_0x1c541c){const _0x4d929b=_0x38cdda;try{this[_0x4d929b(0x2d5)][_0x4d929b(0x223)](_0xffaa85['id'],_0xffaa85['params'],_0x1c541c);}catch(_0x3963bf){this[_0x4d929b(0x193)][_0x4d929b(0x12a)](_0x3963bf);}}[_0x38cdda(0x2ed)](_0x3bcf59,_0x4b393f){const _0x13b947=_0x38cdda;_0x4b393f<this[_0x13b947(0x2be)]||(this[_0x13b947(0x2be)]=_0x4b393f,this[_0x13b947(0x320)]=Number['parseInt'](_0x3bcf59[_0x13b947(0x216)]),this['_currentUsage']=Number[_0x13b947(0x1fc)](_0x3bcf59['currentUsage']));}async['_startCalculationLimit'](_0x467caa){const _0x52d838=_0x38cdda;var _0x8a2651,_0x40d029;const _0x1df0fe=Date[_0x52d838(0x238)]();try{const _0x3fadc4=((_0x8a2651=this[_0x52d838(0x173)][_0x52d838(0x2c8)](_0xe89f7f))==null?void 0x0:_0x8a2651['startFormulaLimitUrl'])||Rn,_0x242beb=(await this['_httpService'][_0x52d838(0x306)](_0x3fadc4,{'body':JSON[_0x52d838(0xd2)]({'taskId':_0x467caa})}))[_0x52d838(0x2a6)];if(((_0x40d029=_0x242beb[_0x52d838(0x12a)])==null?void 0x0:_0x40d029['code'])!==Z['OK'])return;this[_0x52d838(0x2ed)](_0x242beb[_0x52d838(0x10b)],_0x1df0fe);}catch(_0x263711){this[_0x52d838(0x193)]['error'](_0x263711);}}async[_0x38cdda(0x30a)](_0x4ce217){const _0x52a279=_0x38cdda;var _0x1be71e,_0x1443f6;const _0x332bb8=Date['now']();try{const _0x39b0ae=((_0x1be71e=this[_0x52a279(0x173)][_0x52a279(0x2c8)](_0xe89f7f))==null?void 0x0:_0x1be71e['getformulaLimitStatusUrl'])||Cn,_0x16ced0=_0x4ce217?_0x39b0ae+_0x52a279(0xed)+encodeURIComponent(_0x4ce217):_0x39b0ae,_0x3393b0=(await this[_0x52a279(0x1ef)]['get'](_0x16ced0))['body'];if(((_0x1443f6=_0x3393b0['error'])==null?void 0x0:_0x1443f6[_0x52a279(0x212)])!==Z['OK'])return;this[_0x52a279(0x2ed)](_0x3393b0[_0x52a279(0x10b)],_0x332bb8);}catch(_0x1e4cae){this[_0x52a279(0x193)][_0x52a279(0x12a)](_0x1e4cae);}}async['_releaseCalculationLimit'](_0x231f30){const _0x409567=_0x38cdda;var _0x1f5e71,_0x12b0ca;const _0x1b74b6=Date[_0x409567(0x238)]();try{const _0x48962b=((_0x1f5e71=this[_0x409567(0x173)][_0x409567(0x2c8)](_0xe89f7f))==null?void 0x0:_0x1f5e71['releaseFormulaLimitUrl'])||Dn,_0x27aa08=(await this[_0x409567(0x1ef)][_0x409567(0x306)](_0x48962b,{'body':JSON['stringify']({'taskId':_0x231f30})}))[_0x409567(0x2a6)];if(((_0x12b0ca=_0x27aa08['error'])==null?void 0x0:_0x12b0ca[_0x409567(0x212)])!==Z['OK'])return;this[_0x409567(0x2ed)](_0x27aa08[_0x409567(0x10b)],_0x1b74b6);}catch(_0x5cdf32){this['_logService']['error'](_0x5cdf32);}}['_checkCalculationAvailable'](){const _0xd51ecd=_0x38cdda;return this[_0xd51ecd(0x320)]===0x0?!0x0:this[_0xd51ecd(0x320)]-this['_currentUsage']>0x0;}[_0x38cdda(0x23c)](){const _0x4c00b3=_0x38cdda;this[_0x4c00b3(0x1d0)]&&(clearTimeout(this[_0x4c00b3(0x1d0)]),this[_0x4c00b3(0x1d0)]=null);}[_0x38cdda(0x1ff)](){const _0x16f362=_0x38cdda;this[_0x16f362(0x304)][_0x16f362(0x197)]({'content':this[_0x16f362(0x10a)]['t'](_0x16f362(0x129)),'type':_0x8f3016[_0x16f362(0x240)]});}['_hasFormulaInDirtyRanges'](_0x12b88e){const _0xb929a3=_0x38cdda;for(const _0x461dc3 of _0x12b88e){const {unitId:_0x36eae5,sheetId:_0x1cb712,range:_0x2e0c4b}=_0x461dc3,_0x4b96fd=this[_0xb929a3(0x26c)][_0xb929a3(0x31a)](_0x36eae5);if(!_0x4b96fd)continue;const _0x1fc8c2=_0x4b96fd[_0xb929a3(0x149)](_0x1cb712);if(!_0x1fc8c2)continue;const _0x43cf09=_0x1fc8c2['getCellMatrix']();for(let _0x5f4dfe=_0x2e0c4b[_0xb929a3(0x2bd)];_0x5f4dfe<=_0x2e0c4b['endRow'];_0x5f4dfe++)for(let _0x421904=_0x2e0c4b['startColumn'];_0x421904<=_0x2e0c4b[_0xb929a3(0xdb)];_0x421904++){const _0x582c60=_0x43cf09['getValue'](_0x5f4dfe,_0x421904);if(_0x582c60&&(_0x6c29ae(_0x582c60['f'])||_0x328479(_0x582c60['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x11edd2(_0x19a1ba)),P(0x1,_0x30ccef),P(0x2,_0x36ab28),P(0x3,_0x11edd2(_0x1718b4)),P(0x4,_0x57b197),P(0x5,_0x3b2794),P(0x6,_0x11edd2(_0x134929))],Ie);var Nn=Object[_0x38cdda(0x1ac)],bn=(_0x3e5b15,_0x20efb6,_0x3fad87,_0x214a71)=>{const _0xefc7a=_0x38cdda;for(var _0x4cdbb5=_0x214a71>0x1?void 0x0:_0x214a71?Nn(_0x20efb6,_0x3fad87):_0x20efb6,_0x5b90e5=_0x3e5b15[_0xefc7a(0xe4)]-0x1,_0x62dd9a;_0x5b90e5>=0x0;_0x5b90e5--)(_0x62dd9a=_0x3e5b15[_0x5b90e5])&&(_0x4cdbb5=_0x62dd9a(_0x4cdbb5)||_0x4cdbb5);return _0x4cdbb5;},Ue=(_0x321092,_0x24e64e)=>(_0x31de5d,_0xefad3)=>_0x24e64e(_0x31de5d,_0xefad3,_0x321092);let He=class extends _0x447589{constructor(_0x45ef4d,_0x32eed3,_0x31ad6e){const _0x5b5790=_0x38cdda;super(),_(this,_0x5b5790(0x127),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x5b5790(0x173)]=_0x45ef4d,this[_0x5b5790(0x156)]=_0x32eed3,this['_revisionService']=_0x31ad6e);}[_0x38cdda(0x1ae)](){const _0x4b0e08=_0x38cdda;this[_0x4b0e08(0x14e)]=!0x0;}[_0x38cdda(0x150)](){this['_disabled']=!0x1;}get[_0x38cdda(0x25f)](){return this['_saveTaskMap'];}[_0x38cdda(0x16f)](){const _0xcd1c5=_0x38cdda;this['exhaustSavingTask']()[_0xcd1c5(0x256)](()=>super[_0xcd1c5(0x16f)]());}async['loadOfflineData'](_0x21f3ad){const _0x52f55b=_0x38cdda;return this['_disabled']?null:this[_0x52f55b(0x156)][_0x52f55b(0x290)](_0x598630(_0x21f3ad));}async['saveOfflineData'](_0x4dcf2e,_0x25bfcd){const _0x46b42a=_0x38cdda;return!!this[_0x46b42a(0x156)][_0x46b42a(0x140)](_0x4dcf2e,_0x25bfcd);}[_0x38cdda(0x2dc)](_0xf8684c,_0x120236,_0x442074,_0x2a429c){const _0x5f2344=_0x38cdda,_0x4ce6f1=this[_0x5f2344(0x2b8)][_0x5f2344(0x1fa)](_0xf8684c);this[_0x5f2344(0x127)][_0x5f2344(0x1ad)](_0xf8684c,{'unitID':_0xf8684c,'type':_0x120236,'awaitingChangeset':_0x442074,'mutations':_0x2a429c,'rev':_0x4ce6f1}),this[_0x5f2344(0x2cd)][_0x5f2344(0x2e2)](_0xf8684c)||this[_0x5f2344(0x27b)](_0xf8684c);}[_0x38cdda(0x27b)](_0x59ccc9){const _0x26689e=_0x38cdda,_0x54dea2=this[_0x26689e(0x2a1)]();_0x54dea2===0x0?this[_0x26689e(0x273)](_0x59ccc9):this['_saveTaskMap']['set'](_0x59ccc9,setTimeout(()=>this[_0x26689e(0x273)](_0x59ccc9),_0x54dea2));}[_0x38cdda(0x2a1)](){const _0x34e1bc=_0x38cdda;var _0xf9641d;return(_0xf9641d=this[_0x34e1bc(0x173)][_0x34e1bc(0x2c8)](_0x2cb797))!=null?_0xf9641d:_0x5a0638;}[_0x38cdda(0x273)](_0x5aa086){const _0x44599a=_0x38cdda,_0x2a62b1=this['_saveTaskMap'][_0x44599a(0x244)](_0x5aa086);return _0x2a62b1!==void 0x0&&window[_0x44599a(0x299)](_0x2a62b1),this[_0x44599a(0x156)][_0x44599a(0x140)](_0x598630(_0x5aa086),this[_0x44599a(0x127)][_0x44599a(0x244)](_0x5aa086))[_0x44599a(0x256)](()=>this[_0x44599a(0x2cd)][_0x44599a(0x1f5)](_0x5aa086));}async[_0x38cdda(0x22f)](){const _0x360140=_0x38cdda,_0x4180cb=[];this[_0x360140(0x2cd)][_0x360140(0x109)]((_0x241c80,_0x32e74b)=>{const _0x227fe5=_0x360140;window[_0x227fe5(0x299)](_0x241c80),_0x4180cb[_0x227fe5(0x186)](this[_0x227fe5(0x273)](_0x32e74b)[_0x227fe5(0x256)](()=>{const _0x49472b=_0x227fe5;this[_0x49472b(0x2cd)]['delete'](_0x32e74b);}));}),await Promise['all'](_0x4180cb);}};He=bn([Ue(0x0,_0x36ab28),Ue(0x1,_0x1c020e),Ue(0x2,_0x11edd2(_0x5e4bb5))],He);class Ln extends _0x3f6cad{constructor(){const _0x5b84de=_0x38cdda;super(),_(this,_0x5b84de(0x15d)),this[_0x5b84de(0x15d)]=_0x1b1549(window,_0x5b84de(0x210))['pipe'](_0x3c41cb(this['dispose$']),_0xfb0504(0x1),_0x2c534b(void 0x0));}[_0x38cdda(0xe7)](_0x1d2f2c,_0x182b9e,_0x751342=!0x1){const _0x5a49cd=_0x38cdda,_0x39c1b3=new URL(window[_0x5a49cd(0x185)][_0x5a49cd(0x172)]);_0x39c1b3[_0x5a49cd(0x21e)][_0x5a49cd(0x1ad)](_0x1d2f2c,_0x182b9e),_0x751342?window[_0x5a49cd(0x29c)]['replaceState']('','',_0x39c1b3[_0x5a49cd(0x23e)]()):window['history'][_0x5a49cd(0x2ad)]('','',_0x39c1b3['toString']());}[_0x38cdda(0x235)](_0x2fc383,_0x5af94a=!0x1){const _0xff483e=_0x38cdda,_0x11d624=new URL(window[_0xff483e(0x185)]['href']);_0x11d624['searchParams']['delete'](_0x2fc383),_0x5af94a?window['history']['replaceState']('','',_0x11d624['toString']()):window[_0xff483e(0x29c)][_0xff483e(0x2ad)]('','',_0x11d624[_0xff483e(0x23e)]());}[_0x38cdda(0x264)](_0x37b88c){const _0x1b81c0=_0x38cdda;var _0x157894;return(_0x157894=new URL(window[_0x1b81c0(0x185)][_0x1b81c0(0x172)])[_0x1b81c0(0x21e)][_0x1b81c0(0x244)](_0x37b88c))!=null?_0x157894:void 0x0;}}var Un=Object[_0x38cdda(0x276)],Mn=Object[_0x38cdda(0x1ac)],An=(_0x17f7b1,_0x774132,_0x8e4cf0)=>_0x774132 in _0x17f7b1?Un(_0x17f7b1,_0x774132,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8e4cf0}):_0x17f7b1[_0x774132]=_0x8e4cf0,Pn=(_0x5b8aba,_0x943a46,_0x31ad6d,_0x329962)=>{const _0x5e2cb3=_0x38cdda;for(var _0x4616ac=_0x329962>0x1?void 0x0:_0x329962?Mn(_0x943a46,_0x31ad6d):_0x943a46,_0x1c4396=_0x5b8aba[_0x5e2cb3(0xe4)]-0x1,_0x14cf95;_0x1c4396>=0x0;_0x1c4396--)(_0x14cf95=_0x5b8aba[_0x1c4396])&&(_0x4616ac=_0x14cf95(_0x4616ac)||_0x4616ac);return _0x4616ac;},Me=(_0x234cf1,_0x8b4360)=>(_0x3a43a5,_0x3635fe)=>_0x8b4360(_0x3a43a5,_0x3635fe,_0x234cf1),wn=(_0xf42c91,_0x1a806d,_0xe7e334)=>An(_0xf42c91,_0x1a806d+'',_0xe7e334);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x571114{constructor(_0x398a81=_t,_0x3b20ac,_0x537ea8,_0x3d3b4d){const _0x3cb91f=_0x38cdda;super(),this[_0x3cb91f(0x259)]=_0x398a81,this[_0x3cb91f(0x1ab)]=_0x3b20ac,this[_0x3cb91f(0x203)]=_0x537ea8,this[_0x3cb91f(0x173)]=_0x3d3b4d;const {..._0x21e180}=_0x223c4b({},_t,this[_0x3cb91f(0x259)]);this[_0x3cb91f(0x173)][_0x3cb91f(0x110)](hn,_0x21e180);}['onStarting'](){const _0x2d9206=_0x38cdda;this[_0x2d9206(0x20a)](),this[_0x2d9206(0xfb)]();}[_0x38cdda(0x260)](){const _0x56c05d=_0x38cdda;this[_0x56c05d(0x218)]();}[_0x38cdda(0x20a)](){const _0x2ee88d=_0x38cdda;var _0x4fa52d;const _0x448f32=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x4d0498,{'useClass':_0x1893c1}],[_0x4e2cad,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2ee88d(0x259)][_0x2ee88d(0x30d)]&&_0x448f32[_0x2ee88d(0x186)]([le]),_0x273047(this['_injector'],_0x583a07(_0x448f32,(_0x4fa52d=this[_0x2ee88d(0x259)])==null?void 0x0:_0x4fa52d['override']));}['_registerRenderDependencies'](){const _0x212fdb=_0x38cdda;this['disposeWithMe'](this[_0x212fdb(0x1ab)]['registerRenderModule'](_0x13411f['UNIVER_DOC'],[Fe])),this[_0x212fdb(0xfe)](this[_0x212fdb(0x1ab)][_0x212fdb(0x1cf)](_0x13411f[_0x212fdb(0x18f)],[ke]));}[_0x38cdda(0xfb)](){const _0x2eb332=_0x38cdda;_0x165c59(this[_0x2eb332(0x203)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x2eb332(0x259)][_0x2eb332(0x30d)]&&_0x165c59(this[_0x2eb332(0x203)],[[le]]);}};wn(Ye,_0x38cdda(0x2bb),yn),Ye=Pn([_0x28cf15(_0x36932a),Me(0x1,_0x294de9),Me(0x2,_0x11edd2(_0x1d6fba)),Me(0x3,_0x36ab28)],Ye);var $n=Object[_0x38cdda(0x1ac)],xn=(_0x49804a,_0x44baf4,_0xd248e7,_0x4d8af3)=>{const _0x100a77=_0x38cdda;for(var _0x543be0=_0x4d8af3>0x1?void 0x0:_0x4d8af3?$n(_0x44baf4,_0xd248e7):_0x44baf4,_0x18b5e8=_0x49804a[_0x100a77(0xe4)]-0x1,_0x504528;_0x18b5e8>=0x0;_0x18b5e8--)(_0x504528=_0x49804a[_0x18b5e8])&&(_0x543be0=_0x504528(_0x543be0)||_0x543be0);return _0x543be0;},J=(_0x2a058b,_0x420e90)=>(_0x369129,_0x31001c)=>_0x420e90(_0x369129,_0x31001c,_0x2a058b);let ut=class extends _0x22b90f{constructor(_0x32136c,_0x21147b,_0x21b429,_0x5ed31f,_0x1430c5){super(_0x32136c,_0x21147b,_0x21b429,_0x5ed31f,_0x1430c5);}async[_0x38cdda(0x164)](_0x579f7e){const _0x44871e=_0x38cdda,_0x495b02=await this[_0x44871e(0x1a4)](),_0x17ad62=this['_createSocketURL'](_0x579f7e,_0x495b02);return this[_0x44871e(0x2cb)](_0x17ad62);}[_0x38cdda(0x2de)](_0xaac486,_0x20841a){const _0xf1d61f=_0x38cdda,_0x3869df=typeof window>'u'?new URL(_0xaac486):new URL(_0xaac486,window[_0xf1d61f(0x185)][_0xf1d61f(0x1fd)]);_0x3869df[_0xf1d61f(0x21e)][_0xf1d61f(0x1ad)](_0xf1d61f(0xef),_0x20841a);const _0x25d984=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xf1d61f(0x185)][_0xf1d61f(0x21a)]);return _0x25d984[_0xf1d61f(0x244)](_0xf1d61f(0x157))&&_0x3869df[_0xf1d61f(0x21e)][_0xf1d61f(0x1ad)]('runId',_0x25d984['get']('runId')),_0x3869df[_0xf1d61f(0x23e)]();}async[_0x38cdda(0x1a4)](){const _0x4a4da1=_0x38cdda;var _0x10ca21,_0x18229d,_0x19df0a;const _0x2d2a01=this[_0x4a4da1(0x173)][_0x4a4da1(0x2c8)](_0xe89f7f),_0x681c61=(_0x10ca21=_0x2d2a01==null?void 0x0:_0x2d2a01['wsSessionTicketUrl'])!=null?_0x10ca21:_0x47950d;return(_0x19df0a=(_0x18229d=(await this['_httpService'][_0x4a4da1(0x244)](_0x681c61,{'headers':{'Content-Type':_0x4a4da1(0x2d4)}}))[_0x4a4da1(0x2a6)])==null?void 0x0:_0x18229d[_0x4a4da1(0x1a0)])!=null?_0x19df0a:'';}};ut=xn([J(0x0,_0x11edd2(_0x1d6fba)),J(0x1,_0x11edd2(_0x1718b4)),J(0x2,_0x36ab28),J(0x3,_0x3b2794),J(0x4,_0x7728f)],ut);var Bn=Object[_0x38cdda(0x1ac)],Fn=(_0x2b4f4d,_0x5cc997,_0x35cea5,_0x226915)=>{for(var _0x239a3c=_0x226915>0x1?void 0x0:_0x226915?Bn(_0x5cc997,_0x35cea5):_0x5cc997,_0x5ba20e=_0x2b4f4d['length']-0x1,_0x3f366f;_0x5ba20e>=0x0;_0x5ba20e--)(_0x3f366f=_0x2b4f4d[_0x5ba20e])&&(_0x239a3c=_0x3f366f(_0x239a3c)||_0x239a3c);return _0x239a3c;},Ae=(_0x35967b,_0x182742)=>(_0x1c8e56,_0x4f98fd)=>_0x182742(_0x1c8e56,_0x4f98fd,_0x35967b);let dt=class extends _0x447589{constructor(_0x45b046,_0x13d9be,_0x56fee9){const _0x11627d=_0x38cdda;super(),this[_0x11627d(0x279)]=_0x45b046,this[_0x11627d(0x1ef)]=_0x13d9be,this[_0x11627d(0x173)]=_0x56fee9;}async[_0x38cdda(0x12c)](_0x1baeec,_0x22417b,_0x3dc213,..._0x5a5231){const _0x71c506=_0x38cdda;var _0x3de4c0,_0x3d5008,_0x3e0af3,_0x499462;const _0x1651d6=this['_instanceService'][_0x71c506(0x17e)]();if(!_0x1651d6)throw new Error(_0x71c506(0x1e3));const _0x205101=((_0x3de4c0=this['_configService'][_0x71c506(0x2c8)](_0x42eef4))!=null?_0x3de4c0:_0x3d49c2)+'/'+_0x1baeec+'/run/'+_0x22417b,_0x106949=new URL(window[_0x71c506(0x185)][_0x71c506(0x172)]),_0x3481cf={'scriptId':_0x1baeec,'runId':(_0x3d5008=_0x106949[_0x71c506(0x21e)]['get']('runId'))!=null?_0x3d5008:'','function':_0x22417b,'unitId':_0x1651d6[_0x71c506(0xf6)](),'argsOfFunction':JSON[_0x71c506(0xd2)](_0x5a5231),'invokeId':(_0x3e0af3=_0x3dc213['invokeId'])!=null?_0x3e0af3:'','executionId':(_0x499462=_0x3dc213['executionId'])!=null?_0x499462:''};try{const _0x3bd52c=await this[_0x71c506(0x1ef)][_0x71c506(0x306)](_0x205101,{'body':_0x3481cf});return _0x3bd52c[_0x71c506(0x2a6)]['error']&&_0x3bd52c[_0x71c506(0x2a6)][_0x71c506(0x12a)][_0x71c506(0x212)]!==Z['OK']?'Failed':_0x3bd52c['body'][_0x71c506(0x116)];}catch{return _0x71c506(0x2db);}}};dt=Fn([Ae(0x0,_0x57b197),Ae(0x1,_0x11edd2(_0x1718b4)),Ae(0x2,_0x36ab28)],dt);function _0x988b(){const _0x1bdf7e=['debug','ENTITLE_COUPON_USED_UP','rgba(255,\x20255,\x20255,\x200.01)','exhaustSavingTask','_hasFormulaInDirtyRanges','name','TEXT','_updateURLWithCurrentState','INVALID_INVITE_CODE','removeParam','addClipboardHook','parse','now','CONNECTOR_DATA_TOO_LARGE','9XiAGgN','SNAPSHOT_HAS_BEEN_REMOVED','_clearPolling','TOO_MANY_REQUESTS','toString','_urlService','Loading','UniverIcon','_collaborationUIEventService','find','get','onLocalMutation','replace','selections','Error','triggerDblclick','ONLINE','getRangePointData','fillRule','univer-flex\x20univer-items-center','setAlpha','ENTITLE_USE_COUPON_NOT_1ST_TRADE','0\x200\x2016\x2016','CONFLICT','_roomMembers$','ENTITLE_CHAT_LIMIT_EXCEED','clearInterval','uni.network.url-service','then','docStateChange$','isEditing','_config','_taskIds','onTransformChange$','_session','getActiveSheet','cursorInfo$','saveTaskMap','onRendered','[LogService\x20Error]:\x20','USER_IS_ANONYMOUS','UNAUTHENTICATED','getParam','sheetId','_syncEditingCollabCursorService','_initUnhandledRejectionListener','subscribe','UNIVER_DOC','stageInfo','ENTITLE_INVALID_COUPON_CODE','_univerInstanceService','with','beginPath','top','\x20at\x20','ACTIVE_UNIT_EVENT_CHANNEL','url(#on-line-icon_clip0_910_349)','_saveCache','_refreshCollabCursors','_anchor','defineProperty','session.collaboration-timeout','OnLineIcon','_instanceService','APPLY_PERMISSION_DENIED','_scheduleSaving','_docTransformStateCacheService','_transformService','YUUMI_CONNECTOR_URL_NOT_FOUND','_drawTextRange','row','onMouseMove','yellow.400','_assignedColors','APPLY_NON_SEQUENTIAL_REVISION','width','includes','backgroundColor','INVITE_CODE_HAS_BEEN_UES','addObjects','_startSheetCollabCursor','getStateCache','white','[Window\x20Error]:\x20','engine','M0\x200H16V16H0z','getItem','_toggleOnline','collabStatus.syncing','collaboration-client-ui.config','YUUMI_ASYNCIO_CANCELLED','AWAITING','1315116XXznTQ','setInterval','entityInit$','clearTimeout','type','MUTATION','history','_collabCursorState$','idSuffix','tag','EMAIL_VERIFY_CODE_MISMATCH','_getSaveTimeout','getSkeleton','m1Prime','_docClipboardService','selection','body','params','LOGIN_TOKEN_PROCESSING_FAILED','bottom','addHandlerCallback','getCellPositionByOffset','_status$','pushState','svg','REDEMPTION_CODE_HAS_BEEN_CREATED','from','red.300','split','fillStyle','fill','collaboration.closeRoom','_memberID','endRow','_revisionService','25LRaSRX','INVITE_CODE_REQUIRED','pluginName','doc.mutation.rich-text-editing','startRow','_lastResponseTimestamp','symbol','...','transformRemoteChangeset','_memberService','_initStatusListener','reason','isArray','column','currentSkeleton$','getConfig','setUndoRedoMutationParamsCache','sheetID','_doCreateSocket','redoState','_saveTaskMap','join','onPointerLeave$','arc','init','_beforeCloseService','off-line-icon_clip0_910_343','application/json','_commandService','YUUMI_AI_RUN_FAILED','startColumn','_docTransformIMECacheService','size','_checkAndWaitForCalculationPermission','Failed','updateOfflineData','getDocRanges','_createSocketURL','_scene','2637678YvvzkK','_context','has','AUTHORIZE_CODE_ILLEGAL','_id','values','_handleHeartbeatEvent','RemoveColCommandId','displayName','_docTransformSelectionsService','filename','http://www.w3.org/2000/svg','LICENSE_DISTRO_REJECTED','_setFormulaLimitStatus','40KqVjdH','font','ENTITLE_DUP_SUBSCRIPTION','ENTITLE_INSUFFICIENT_QUOTA','PENDING','range','stack','children','REDEMPTION_CODE_FULLY_REDEEMED','_hovered','YUUMI_TABLE_NOT_FOUND_IN_UNIT','/universer-api/license/formula/limit/status','ALREADY_EXISTS','makeDirty','activeSheet$','MOBILE_VERIFY_CODE_MISMATCH','_collabSessionService','_transformUndoRedoStack','LICENSE_MAX_UNITS_EXCEEDED','_handleEvent','_scheduleHeartbeat','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_messageService','_onCursorUpdate','post','LICENSE_EXPORT_SIZE_EXCEEDED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_getFormulaLimitStatus','START_CALCULATION','permission.content','enableFrontendLog','_themeService','stage','totalFormulasToCalculate','_render','_hover','CLOSE_ROOM','_toggleOffline','getVpScrollXYInfoByPosToVp','Warning','COMPLETION_FINISHED','SNAPSHOT_INVALID_SNAPSHOT','complete','getUnit','pipe','findNodePositionByCharIndex','PY_RUNTIME_SCRIPT_ERROR','url(#off-line-icon_clip0_910_343)','Unknown\x20user','_maxFormulaLimit','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','toRgbString','_handleLeaveEvent','stringify','_uploadLog','attrs','_cursors','_collaborationSessionService','678867wuCxbW','_setupSubUnitSync','save','round','endColumn','collab-rect-range-','MOBILE_HAS_BEEN_BOUND','addEventListener','getSheetId','_range','_eventUnsubscribe','UPDATE_CURSOR','WECHAT_HAS_BEEN_BOUND','length','_onCursorDelete','_initResize','setParam','hide','message','drawWith','setStateCache','string','?taskId=','_removeCollabCursors','sessionTicket','transform','roomMembers$','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_initCommandInterceptor','text','REDEMPTION_INVALID_CODE','getUnitId','InsertColCommandId','USERS_LEAVE','[CollaborationDataLoaderController]','blue.400','_initDependencies','_clearOtherTimers','_uiPartsService','disposeWithMe','SOCKET_FAILED_RETRY','getUndoRedoMutationParamsCache','ERROR_AGAIN','getValue','setActiveRange','measureText','APPLY_DUPLICATED','setShapeProps','_notificationService','FETCH_MISS','forEach','_localeService','limitInfo','translate(.97)','storage','_removeClearOtherTimer','getColorFromTheme','setConfig','_applyCommand','on-line-icon_clip0_910_349','onCommandExecuted','_initCommandExecutedListener','APPLY_REJECT','result','textRanges','getCurrentUnitForType','editingUnit','_updateSubUnitFromURLParams','_setupBeforeClosingHandler','catch','_collaborationController','_textBubble','session.will-retry','_checkCalculationAvailable','YUUMI_NO_CUBOID_FOR_QUESTION','_updateLocalCursor','random','_handleJoinEvent','fillText','add','_cachedData','REDEMPTION_CODE_NOT_STARTED','formula.calculation.waiting','error','_handleHover','runOnServer','max','REDEMPTION_CODE_INACTIVE','registerBeforeClose','event$','_shapes','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','MoveRangeCommandId','OTHER_CLIENT_EDITING','_releaseCalculationLimit','on-line-icon','moveTo','_labelPosition','OTHER_CLIENTS_EDITING','_startDocCollabCursor','AWAITING_WITH_PENDING','deepClone','newValue','unsubscribe','color','setItem','_init','_send','NOT_COLLAB','transformIMECache','_entityInit$','xlink:href','_onRefRangeChange','ENTITLE_COUPON_EXPIRED','getSheetBySheetId','unitID','getOffsetConfig','getUniverSheetInstance','registerRefRange','_disabled','lineno','enableLocalCache','flatMap','collabStatus.conflict','collab-text-anchor-','NO_OTHER_CLIENTS_EDITING','undoState','_localStorageService','runId','_cursorShapes','SYNCED','_unitStatus','onPointerEnter$','createInstance','urlChange$','_heartbeatTimer','focused$','formula.calculation.unable','setTimeout','_monkeyPatchLogService','closePath','createSocket','unit','bind','YUUMI_RATE_OVER_LIMIT','assignAColorForMemberID','RECT','_updateCollabCursors','syncEditingCollabCursor','_docSkeletonManagerService','_selfUnitIDs','_anchorDot','dispose','isActive','getAncestorScale','href','_configService','transformMutationsWithChangeset','collabCursorState$','NOT_FOUND','collabStatus.fetchMiss','currentColor','_dataLoaderService','ENTITLE_NEED_BILLING_ADDRESS','3958570BtvSDZ','getCollabCursors$','_cursorInfo$','getFocusedUnit','min','FromArray','height','currentTheme$','USER_NOT_FOUND','transformSelections','location','push','assign','DATA_SOURCE_TOO_LARGE','whenReady','subscribeEvent','REDEMPTION_USER_NOT_ELIGIBLE','_unitOnClients','cursorInfo','unitId','UNIVER_SHEET','getTypeOfUnitDisposed$','unhandledrejection','APPLY_REVISION_CONFILICT','_logService','resize','colorChannel1','_localCacheService','show','_getScale','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','215076LVCmEM','1em','_getMergeRange','none','unload','_hideTimer','ticket','use','_initWindowErrorListener','sessionStatus$','_getSessionTicket','SUCCESS','replaceDocRanges','send','YUUMI_URL_COL_OUT_OF_RANGE','contains','clipPath','_renderManagerService','getOwnPropertyDescriptor','set','disableLocalCache','_currentUsage','_backgroundColor','path','map','getRenderById','_online','_getSheetObject','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_color','YUUMI_ALL_TABLES_IS_INVALID','ranges','PAYMENT_CHANNEL_NOT_SUPPORT','_drawAnchor','loadUnit','_colorIndex','YUUMI_UNABLE_LOAD_URL','restore','_document','subunit','defs','transformStateCache','collab-text-range-','dispose$','m2Prime','_sheetSkeletonManagerService','removeEventListener','imageSourceType','registerComponent','INVITE_CODE_ALREADY_BOUND','_getAnchorBounding','entries','CURRENT_STATUS_CANNOT_OPERATE','registerRenderModule','_pollingInterval','transformMutation','eventID','OffLineIcon','_docSyncEditingCollabCursorService','evenodd','50nheIWs','_ensureSubject','OFFLINE','_refRangeService','_initEntityListener','_collabCursorController','_colorAssignService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','lineTo','/universer-api/license/formula/limit/done','_initEvent','InsertRowCommandId','CHANGESET_REVISION_CONFILICT','[RemoteUniscriptService]:\x20no\x20focused\x20unit','collaboration.offline-data-not-saved','InsertRangeMoveRightCommandId','roomMembers','status$','_cursor','HEADER_MENU','UNRECOGNIZED','getMember','_entities','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','mask','_httpService','DeleteRangeMoveLeftCommandId','_name','mutations','green.600','permission.title','delete','saveImage','_transformHistoryAndStateStack','jiqing.500','_docStateChangeManagerService','getCurrentRevOfUnit','getMemberID','parseInt','origin','asObservable','_showGuardMessage','skeleton','univerjs-icon\x20univerjs-icon-','USER_NOT_INVITED_CODE','_injector','addObject','_imageIoService','ENSURE_SNAPSHOT_EXECUTION','socket$','YUUMI_SUBSCRIPTION_NOT_FOUND','_lastPointer','_registerDependencies','_transformPreviousActiveRange','/universer-api/frontend/logs','_scheduleClearOtherTimer','actions','_drawRectRange','popstate','url(#$1','code','_initUserListener','black','UNDEFINED','maxFormulaLimit','ENTITLE_REPORT_LIMIT_EXCEED','_registerRenderDependencies','data','search','labelPosition','next','div','searchParams','PERMISSION_DENIED','unshift','LICENSE_IMPORT_SIZE_EXCEEDED','INTERNAL_ERROR','executeCommand','10359DhJnOZ','substring','getTypeOfUnitAdded$','functionsExecutedState','4121060JbitYd','_initStatusComponent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','dirtyRanges'];_0x988b=function(){return _0x1bdf7e;};return _0x988b();}const St=0x7530,It=_0x38cdda(0x271);class rr extends _0x447589{constructor(){const _0x5dfc8c=_0x38cdda;super(),_(this,_0x5dfc8c(0x2e4),_0x11358d()),_(this,_0x5dfc8c(0x16d),new Set()),_(this,_0x5dfc8c(0x18c),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x5dfc8c(0xfc),new Map()),_(this,_0x5dfc8c(0x15a),new Map()),this[_0x5dfc8c(0x141)]();}[_0x38cdda(0x16f)](){const _0x553eed=_0x38cdda;super[_0x553eed(0x16f)](),this['_clearOtherTimers'][_0x553eed(0x109)]((_0x2446af,_0x4e1101)=>this[_0x553eed(0x10e)](_0x4e1101)),this[_0x553eed(0x15e)]&&window[_0x553eed(0x254)](this[_0x553eed(0x15e)]);}['getUnitStatus$'](_0x2f035e){const _0x4fe973=_0x38cdda;return this['_ensureSubject'](_0x2f035e)[_0x4fe973(0x31b)](_0xc41425());}[_0x38cdda(0x119)](_0x34e011){const _0x44261f=_0x38cdda;this[_0x44261f(0x16d)][_0x44261f(0x2d9)]===0x0&&this[_0x44261f(0x302)](),this[_0x44261f(0x16d)]['add'](_0x34e011),this[_0x44261f(0x142)]({'type':0x0,'memberID':this[_0x44261f(0x2e4)],'unitIDs':[_0x34e011],'isForwarded':!0x1});}['disposeUnit'](_0x2d9afe){const _0x3114cf=_0x38cdda;this[_0x3114cf(0x16d)][_0x3114cf(0x1f5)](_0x2d9afe),this[_0x3114cf(0x16d)]['size']===0x0&&this[_0x3114cf(0x15e)]&&window[_0x3114cf(0x254)](this['_heartbeatTimer']);}['_init'](){const _0x193eaf=_0x38cdda;this['disposeWithMe'](_0x2e6c99(_0x1b1549(window,_0x193eaf(0x10d))[_0x193eaf(0x268)](_0x1c538b=>{const _0x602353=_0x193eaf;if(_0x1c538b['key']!==It||!_0x1c538b[_0x602353(0x13d)])return;const _0x46bc7b=JSON[_0x602353(0x237)](_0x1c538b[_0x602353(0x13d)]);this[_0x602353(0x301)](_0x46bc7b);}))),window[_0x193eaf(0xde)](_0x193eaf(0x19e),()=>this[_0x193eaf(0x142)]({'type':0x1,'memberID':this[_0x193eaf(0x2e4)],'unitIDs':Array[_0x193eaf(0x2b0)](this[_0x193eaf(0x16d)])}));}[_0x38cdda(0x301)](_0x252f46){const _0x43c407=_0x38cdda;switch(_0x252f46[_0x43c407(0x29a)]){case 0x0:this['_handleJoinEvent'](_0x252f46);break;case 0x1:this[_0x43c407(0xd1)](_0x252f46);break;case 0x2:this[_0x43c407(0x2e6)](_0x252f46);break;}}[_0x38cdda(0x124)](_0x1cf53a){const _0x1a6a4e=_0x38cdda,{unitIDs:_0x4f3021,memberID:_0x353dd8,isForwarded:_0x12fd07}=_0x1cf53a;_0x4f3021[_0x1a6a4e(0x109)](_0x211eaf=>{const _0xe4b172=_0x1a6a4e;if(!_0x12fd07&&this['_unitOnClients']['has'](_0x211eaf)&&this[_0xe4b172(0x1d7)](_0x211eaf)[_0xe4b172(0x21c)](_0x47df77[_0xe4b172(0x139)]),!this[_0xe4b172(0x18c)][_0xe4b172(0x2e2)](_0x211eaf)||!this[_0xe4b172(0x18c)][_0xe4b172(0x244)](_0x211eaf)['has'](_0x353dd8)){const _0x850c17=this[_0xe4b172(0x18c)][_0xe4b172(0x244)](_0x211eaf)||new Set();_0x850c17[_0xe4b172(0x126)](_0x353dd8),this[_0xe4b172(0x18c)][_0xe4b172(0x1ad)](_0x211eaf,_0x850c17),this[_0xe4b172(0x20d)](_0x353dd8);}}),_0x12fd07||this[_0x1a6a4e(0x142)]({'type':0x0,'memberID':this[_0x1a6a4e(0x2e4)],'unitIDs':[...this[_0x1a6a4e(0x16d)]],'isForwarded':!0x0});}[_0x38cdda(0x20d)](_0x2167b2){const _0x5477f2=_0x38cdda;this['_removeClearOtherTimer'](_0x2167b2);const _0x465523=window[_0x5477f2(0x161)](()=>{const _0xe7ec07=_0x5477f2;this[_0xe7ec07(0x18c)][_0xe7ec07(0x109)](_0x2cd427=>{const _0x3a1859=_0xe7ec07;_0x2cd427[_0x3a1859(0x1f5)](_0x2167b2);});},St*0x2);this[_0x5477f2(0xfc)][_0x5477f2(0x1ad)](_0x2167b2,_0x465523);}['_removeClearOtherTimer'](_0x4f2255){const _0x1ecbd3=_0x38cdda;if(this[_0x1ecbd3(0xfc)][_0x1ecbd3(0x2e2)](_0x4f2255)){const _0x4bb816=this[_0x1ecbd3(0xfc)]['get'](_0x4f2255);_0x4bb816&&window[_0x1ecbd3(0x299)](_0x4bb816),this[_0x1ecbd3(0xfc)][_0x1ecbd3(0x1ad)](_0x4f2255,null);}}['_handleLeaveEvent'](_0x2cbe32){const _0xebe4d2=_0x38cdda,{memberID:_0x215c80,unitIDs:_0x57c766}=_0x2cbe32;_0x57c766[_0xebe4d2(0x109)](_0x191213=>{const _0x495846=_0xebe4d2;var _0x142594;const _0x3d3a7a=this[_0x495846(0x18c)][_0x495846(0x244)](_0x191213);_0x3d3a7a&&(_0x3d3a7a[_0x495846(0x1f5)](_0x215c80),(_0x142594=this['_ensureSubject'](_0x191213))==null||_0x142594['next'](_0x3d3a7a['size']===0x0?_0x47df77[_0x495846(0x154)]:_0x47df77[_0x495846(0x139)]));}),this[_0xebe4d2(0x10e)](_0x215c80);}[_0x38cdda(0x2e6)](_0xcda6c4){const _0x5e063a=_0x38cdda;this[_0x5e063a(0x20d)](_0xcda6c4['memberID']);}[_0x38cdda(0x142)](_0x323e46){const _0x3dbc03=_0x38cdda;localStorage[_0x3dbc03(0x140)](It,JSON[_0x3dbc03(0xd2)](_0x323e46));}[_0x38cdda(0x302)](){const _0x1f4ef1=_0x38cdda;this[_0x1f4ef1(0x15e)]=window[_0x1f4ef1(0x297)](()=>{const _0x2410e3=_0x1f4ef1;this['_send']({'type':0x2,'memberID':this[_0x2410e3(0x2e4)]});},St);}[_0x38cdda(0x1d7)](_0x23701d){const _0x17f794=_0x38cdda;return this[_0x17f794(0x15a)][_0x17f794(0x2e2)](_0x23701d)||this[_0x17f794(0x15a)][_0x17f794(0x1ad)](_0x23701d,new _0x4f0f13(_0x47df77[_0x17f794(0x154)])),this['_unitStatus'][_0x17f794(0x244)](_0x23701d);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|