@univerjs-pro/collaboration-client-ui 0.11.0-nightly.202511151013 → 0.12.0-nightly.202511220628
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/types/controllers/config.schema.d.ts +5 -0
- package/lib/types/controllers/frontend-log/frontend-log.controller.d.ts +17 -0
- 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/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x23037e=_0x596d;(function(_0x297678,_0x43ed65){const _0x8bdd18=_0x596d,_0x138d35=_0x297678();while(!![]){try{const _0x52be90=parseInt(_0x8bdd18(0x20b))/0x1+-parseInt(_0x8bdd18(0x2e1))/0x2+parseInt(_0x8bdd18(0x33e))/0x3*(-parseInt(_0x8bdd18(0x250))/0x4)+-parseInt(_0x8bdd18(0x328))/0x5+parseInt(_0x8bdd18(0x201))/0x6*(-parseInt(_0x8bdd18(0x380))/0x7)+-parseInt(_0x8bdd18(0x345))/0x8+parseInt(_0x8bdd18(0x3ed))/0x9;if(_0x52be90===_0x43ed65)break;else _0x138d35['push'](_0x138d35['shift']());}catch(_0x3326e5){_0x138d35['push'](_0x138d35['shift']());}}}(_0x1d21,0x88756));var Ft=Object[_0x23037e(0x346)],kt=(_0x5b0e41,_0x58c4a8,_0x251470)=>_0x58c4a8 in _0x5b0e41?Ft(_0x5b0e41,_0x58c4a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x251470}):_0x5b0e41[_0x58c4a8]=_0x251470,l=(_0x24435d,_0x1b8a6e,_0x3be8ff)=>kt(_0x24435d,typeof _0x1b8a6e!=_0x23037e(0x418)?_0x1b8a6e+'':_0x1b8a6e,_0x3be8ff);import{jsx as _0x138755,jsxs as _0xfacd06}from'react/jsx-runtime';import{CollaborationStatus as _0x2bd07a,CollaborationSessionService as _0x421172,CollaborationController as _0x2c7817,DataLoaderService as _0x1de1a6,MemberService as _0x254d55,SessionStatus as _0x3b587d,ILocalCacheService as _0x2c165a,CollaborationUIEventService as _0xf10605,CollaborationUIEventId as _0x595d90,DocCollaborationEntity as _0x5abbf2,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3c4393,getLocalCacheKey as _0x4d52ef,LOCAL_CACHE_INTERVAL as _0x94812e,LOCAL_CACHE_INTERVAL_KEY as _0x18f2e4,UniverCollaborationClientPlugin as _0x413558,CollaborationSocketService as _0x21196e,DEFAULT_WS_SESSION_TICKET_URL as _0x4b56ec,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x9fc019,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x494cec,UnitStatus as _0x30f496}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x23ab5c,IUniverInstanceService as _0x2c6926,Inject as _0x57b7af,Injector as _0xc05c74,Disposable as _0x2adf18,createIdentifier as _0x536e65,ILogService as _0x285ace,ICommandService as _0x409061,Optional as _0x1f94a2,RxDisposable as _0x1d3622,Workbook as _0x31a656,DOC_RANGE_TYPE as _0x3c6aa3,debounce as _0x16545f,Rectangle as _0x231b0b,DisposableCollection as _0x31703a,toDisposable as _0x586ed0,UniverInstanceType as _0x175e13,generateRandomId as _0x21c798,COLORS as _0x527bec,ColorKit as _0x20724d,ThemeService as _0xd8aa5f,fromEventSubject as _0x40819d,Tools as _0x4466a1,CommandType as _0x3a1dbc,IConfigService as _0x2905aa,CanceledError as _0x4ec729,isFormulaString as _0x2ecb79,isFormulaId as _0x472e4c,ILocalStorageService as _0x4a8848,DependentOn as _0x175337,Plugin as _0x59b96e,merge as _0x4d1f57,registerDependencies as _0x50ee13,mergeOverrideWithDependencies as _0x3bff89,touchDependencies as _0x356ea1}from'@univerjs/core';import{useObservable as _0x3925f0,useDependency as _0xd61efa,IUIPartsService as _0x505eb5,BuiltInUIPart as _0x1daa22,connectInjector as _0x4aae1a,IBeforeCloseService as _0x282c8c,IMessageService as _0x92c012,INotificationService as _0x1c9405}from'@univerjs/ui';import{BehaviorSubject as _0x107cff,switchMap as _0x1a78b4,of as _0x53144c,takeUntil as _0x1f8529,debounceTime as _0x48f0e5,Subject as _0x37e983,filter as _0x72003c,merge as _0x4680f6,combineLatest as _0x4625a1,fromEvent as _0x3ac611,shareReplay as _0x109633,mapTo as _0x51cdb0,distinctUntilChanged as _0x4a17c6}from'rxjs';import{Tooltip as _0x266c7f,clsx as _0x5b3388,MessageType as _0x38ce13}from'@univerjs/design';import{useRef as _0x59da9c,createElement as _0x386601,forwardRef as _0xddff13,useCallback as _0x40aaa4}from'react';import{IRemoteInstanceService as _0x331afc}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5b0313,RefRangeService as _0x60f440,SetSelectionsOperation as _0x1b5f73,SheetsSelectionsService as _0x4e7057,EffectRefRangId as _0x5546d5,handleIRemoveRow as _0x7f5d7e,handleIRemoveCol as _0x15b017,handleMoveRange as _0x62f1a4,handleInsertRow as _0x2d53e8,handleInsertRangeMoveRight as _0x5b21d5,handleInsertRangeMoveDown as _0x5c823a,handleInsertCol as _0x13497b,handleDeleteRangeMoveUp as _0x4536fa,handleDeleteRangeMoveLeft as _0x2f0783,runRefRangeMutations as _0x3dbed1}from'@univerjs/sheets';import{Shape as _0x403c8d,Rect as _0x13c2ec,getColor as _0x29e4a4,RegularPolygon as _0x2d1fb7,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x397d4d,Vector2 as _0x14908a,SHEET_VIEWPORT_KEY as _0x17ae79,IRenderManagerService as _0x3947d8}from'@univerjs/engine-render';import{HTTPService as _0x46f386,ISocketService as _0x44de3e,WebSocketService as _0x17c854}from'@univerjs/network';import{IDocClipboardService as _0x5222a8,NodePositionConvertToCursor as _0xcac73d,NodePositionConvertToRectRange as _0xbcad60,TEXT_RANGE_LAYER_INDEX as _0x2279bd,SetDocZoomRatioOperation as _0x41542c,DocIMEInputManagerService as _0x1b1e78,DocStateChangeManagerService as _0x273172}from'@univerjs/docs-ui';import{IImageIoService as _0x33779e}from'@univerjs/drawing';import{ITransformService as _0x459e0f,CollaborationEvent as _0x2d5bf8,isTransformMutationFailure as _0x3d5424,isTransformMutationsWithChangesetSuccess as _0x181dca,RevisionService as _0xfc506e,ISnapshotServerService as _0xe935bb}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x3fa432,RichTextEditingMutation as _0x4442d5,DocSelectionManagerService as _0x4b96b6,DocSkeletonManagerService as _0x3f62c8}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x584d03,serializeRangeWithSheet as _0xef98ea,FormulaExecuteStageType as _0x244207,FormulaExecutedStateType as _0x4e9f65,SetFormulaCalculationStartMutation as _0x3dc31f,SetFormulaCalculationNotificationMutation as _0x3dea83}from'@univerjs/engine-formula';import{map as _0x43594e,filter as _0x11482a,throttleTime as _0xda8cfa,takeUntil as _0x62c4b1,switchMap as _0x18725f}from'rxjs/operators';import{SheetSkeletonManagerService as _0x45795e,getCoordByCell as _0x421831,getSheetObject as _0x473f43}from'@univerjs/sheets-ui';function Ve({ref:_0x30e44f,..._0x43a027}){const _0x57bbe8=_0x23037e,{icon:_0x43df37,id:_0x3a225f,className:_0x4677b5,extend:_0x466476,..._0x28c948}=_0x43a027,_0x32df56=(_0x57bbe8(0x320)+_0x3a225f+'\x20'+(_0x4677b5||''))[_0x57bbe8(0x31b)](),_0x4bc007=_0x59da9c('_'+gi());return Ut(_0x43df37,''+_0x3a225f,{'defIds':_0x43df37[_0x57bbe8(0x31f)],'idSuffix':_0x4bc007['current']},{'ref':_0x30e44f,'className':_0x32df56,..._0x28c948},_0x466476);}function Ut(_0x3b6b7d,_0x345cac,_0x1493cf,_0x54af78,_0x2833f2){const _0x34940f=_0x23037e;return _0x386601(_0x3b6b7d['tag'],{'key':_0x345cac,...mi(_0x3b6b7d,_0x1493cf,_0x2833f2),..._0x54af78},(fi(_0x3b6b7d,_0x1493cf)[_0x34940f(0x270)]||[])[_0x34940f(0x218)]((_0x4e7218,_0x3ddf73)=>Ut(_0x4e7218,_0x345cac+'-'+_0x3b6b7d[_0x34940f(0x318)]+'-'+_0x3ddf73,_0x1493cf,void 0x0,_0x2833f2)));}function mi(_0x44a749,_0x2322dd,_0x22b373){const _0x34ac16=_0x23037e,_0x55d7dd={..._0x44a749[_0x34ac16(0x357)]};_0x22b373!=null&&_0x22b373[_0x34ac16(0x2b9)]&&_0x55d7dd[_0x34ac16(0x293)]==='colorChannel1'&&(_0x55d7dd[_0x34ac16(0x293)]=_0x22b373[_0x34ac16(0x2b9)]),_0x44a749[_0x34ac16(0x318)]==='mask'&&_0x55d7dd['id']&&(_0x55d7dd['id']=_0x55d7dd['id']+_0x2322dd[_0x34ac16(0x35b)]),Object['entries'](_0x55d7dd)[_0x34ac16(0x342)](([_0x26db58,_0x4039c1])=>{const _0x1753df=_0x34ac16;_0x26db58==='mask'&&typeof _0x4039c1==_0x1753df(0x261)&&(_0x55d7dd[_0x26db58]=_0x4039c1[_0x1753df(0x3a5)](/url\(#(.*)\)/,_0x1753df(0x425)+_0x2322dd[_0x1753df(0x35b)]+')'));});const {defIds:_0x43b0c0}=_0x2322dd;return!_0x43b0c0||_0x43b0c0[_0x34ac16(0x285)]===0x0||(_0x44a749[_0x34ac16(0x318)]===_0x34ac16(0x39f)&&_0x55d7dd[_0x34ac16(0x2e6)]&&(_0x55d7dd[_0x34ac16(0x2e6)]=_0x55d7dd[_0x34ac16(0x2e6)]+_0x2322dd[_0x34ac16(0x35b)]),Object['entries'](_0x55d7dd)['forEach'](([_0x279758,_0x4a8ef9])=>{const _0x5e3489=_0x34ac16;typeof _0x4a8ef9==_0x5e3489(0x261)&&(_0x55d7dd[_0x279758]=_0x4a8ef9[_0x5e3489(0x3a5)](/url\(#(.*)\)/,_0x5e3489(0x425)+_0x2322dd[_0x5e3489(0x35b)]+')'));})),_0x55d7dd;}function fi(_0x3d28c6,_0x1afe44){const _0x365d8e=_0x23037e;var _0x407f55;const {defIds:_0x3f2b92}=_0x1afe44;return!_0x3f2b92||_0x3f2b92[_0x365d8e(0x285)]===0x0?_0x3d28c6:_0x3d28c6['tag']===_0x365d8e(0x3c9)&&((_0x407f55=_0x3d28c6['children'])!=null&&_0x407f55[_0x365d8e(0x285)])?{..._0x3d28c6,'children':_0x3d28c6[_0x365d8e(0x270)][_0x365d8e(0x218)](_0x104336=>typeof _0x104336[_0x365d8e(0x357)]['id']==_0x365d8e(0x261)&&_0x3f2b92&&_0x3f2b92[_0x365d8e(0x2bf)](_0x104336[_0x365d8e(0x357)]['id'])?{..._0x104336,'attrs':{..._0x104336[_0x365d8e(0x357)],'id':_0x104336[_0x365d8e(0x357)]['id']+_0x1afe44['idSuffix']}}:_0x104336)}:_0x3d28c6;}function gi(){const _0x9af667=_0x23037e;return Math[_0x9af667(0x31c)]()[_0x9af667(0x41f)](0x24)['substring'](0x2,0x8);}Ve[_0x23037e(0x283)]=_0x23037e(0x3a7);function _0x1d21(){const _0x503382=['_config','shift','_saveCache','PENDING','override','_scheduleSaving','_getSaveTimeout','SYNCED','then','clearTimeout','collabStatus.offline','startRow','START_CALCULATION','_initStatusComponent','1em','isActive','_eventUnsubscribe','UNIVER_DOC','_onRefRangeChange','init','YUUMI_CONNECTOR_URL_NOT_FOUND','AUTHORIZE_CODE_ILLEGAL','selection','wsSessionTicketUrl','SNAPSHOT_INVALID_SNAPSHOT','contains','FromArray','flatMap','7xAxGAB','_updateCollabCursors','search','debug','LOGIN_FAILED','formula.calculation.unable','measureText','USER_NOT_FOUND','dispose$','_removeClearOtherTimer','setTimeout','setUndoRedoMutationParamsCache','getSheetId','collaboration.single-unit.warning','_drawRectRange','TEXT','newValue','ENSURE_SNAPSHOT_EXECUTION','_lastPointer','_name','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_taskIds','registerBeforeClose','_refreshCollabCursors','_render','RECT','_scheduleHeartbeat','stageInfo','transformSelections','setItem','_collabCursorState$','use','functionsExecutedState','Failed','_anchorDot','subunit','_sheetSkeletonManagerService','replace','_assignedColors','UniverIcon','InsertRangeMoveDownCommandId','clipPath','ENTITLE_DUP_SUBSCRIPTION','EMAIL_HAS_BEEN_BOUND','subscribeEvent','translate(.97)','addObject','ERROR_AGAIN','_updateLocalCursor','getRenderById','_startSheetCollabCursor','parseInt','dispose','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','push','_getAnchorBounding','_imageIoService','_updateURLWithCurrentState','_scene','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','onStarting','transformRemoteChangeset','dirtyRanges','with','collabStatus.conflict','MOBILE_HAS_BEEN_BOUND','getCollabCursors$','INVITE_CODE_ALREADY_BOUND','fillStyle','LICENSE_DISTRO_REJECTED','session.collaboration-timeout','_collaborationController','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','defs','HEADER_MENU','roomMembers','getStateCache','Loading','_initStatusListener','INVITE_CODE_REQUIRED','_doCreateSocket','currentTheme$','stage','find','searchParams','INVITE_CODE_HAS_BEEN_UES','_collaborationUIEventService','YUUMI_SUBSCRIPTION_NOT_FOUND','executeCommand','getUnitStatus$','_cursorInfo$','_docStateChangeManagerService','sessionStatus$','params','SUBMIT_CHANGESET_TIMEOUT','startColumn','_initResize','white','onPointerEnter$','getItem','findNodePositionByCharIndex','SOCKET_FAILED_RETRY','addEventListener','runOnServer','registerRefRange','round','send','_drawAnchor','ENTITLE_CHAT_LIMIT_EXCEED','33646374DQAghs','top','REDEMPTION_CODE_NOT_STARTED','_pollingInterval','size','_transformHistoryAndStateStack','sheetID','range','NOT_COLLAB','RemoveRowCommandId','M0\x200H16V16H0z','text','fillRule','_initDependencies','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getRangePointData','InsertColCommandId','getConfig','INTERNAL_ERROR','UPDATE_CURSOR','CONNECTOR_DATA_TOO_LARGE','DeleteRangeMoveLeftCommandId','_getFormulaLimitStatus','sessionTicket','invokeId','from','skeleton','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','activeSheet$','_hovered','_entities','PAYMENT_CHANNEL_NOT_SUPPORT','_docTransformStateCacheService','http://www.w3.org/2000/svg','_hasFormulaInDirtyRanges','_registerRenderDependencies','ENTITLE_NEED_BILLING_ADDRESS','_anchor','_initCommandInterceptor','path','_getSessionTicket','getActiveSheet','_labelPosition','symbol','PERMISSION_DENIED','getAncestorScale','_colorAssignService','setParam','save','transformMutation','toString','MOBILE_VERIFY_CODE_MISMATCH','onCommandExecuted','_shapes','_cursors','on-line-icon_clip0_910_349','url(#$1','_messageService','lineTo','collabStatus.syncing','_beforeCloseService','setAlpha','row','REDEMPTION_CODE_HAS_BEEN_CREATED','getDocRanges','saveImage','all','_injector','labelPosition','EMAIL_VERIFY_CODE_MISMATCH','loadOfflineData','_transformUndoRedoStack','YUUMI_UNABLE_LOAD_URL','_instanceService','_dataLoaderService','InsertRowCommandId','429786KBaceZ','_onCursorUpdate','replaceState','toRgbString','color','red.300','YUUMI_NO_CUBOID_FOR_QUESTION','_docTransformIMECacheService','limitInfo','CONFLICT','14910EjbYKO','endColumn','getTypeOfUnitDisposed$','setConfig','_themeService','_initEvent','collab-rect-range-','disposeUnit','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','setInterval','assign','_handleJoinEvent','_hideTimer','map','collab-text-range-','_configService','textRanges','OffLineIcon','REDEMPTION_USER_NOT_ELIGIBLE','getCurrentUnitForType','_session','_handleHeartbeatEvent','setShapeProps','url(#on-line-icon_clip0_910_349)','onMouseMove','unsubscribe','getUniverSheetInstance','COMPLETION_FINISHED','location','type','SNAPSHOT_HAS_BEEN_REMOVED','_collabSessionService','UNRECOGNIZED','PY_RUNTIME_SCRIPT_ERROR','fillText','collab-client.tooltip.reconnect','_setupSubUnitSync','closePath','onLocalMutation','complete','transform','_currentUsage','NOT_FOUND','maxFormulaLimit','_transformService','ticket','has','drawWith','YUUMI_AI_RUN_FAILED','getUnitId','RemoveColCommandId','SOCKET_FAILED','_cachedData','[CollaborationDataLoaderController]','LICENSE_EXPORT_SIZE_EXCEEDED','focused$','_handleLeaveEvent','now','USER_IS_ANONYMOUS','_textBubble','WECHAT_HAS_BEEN_BOUND','Error','collabStatus.synced','_urlService','arc','NO_OTHER_CLIENTS_EDITING','_transformPreviousActiveRange','result','getMemberID','4LSJHzI','_httpService','stringify','...','_unitOnClients','_updateSubUnitFromURLParams','unitID','_renderManagerService','replaceDocRanges','_localeService','AWAITING','_setFormulaLimitStatus','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getCurrent','_saveTaskMap','_draw','_clearPolling','string','_disabled','CLOSE_ROOM','transformByState','popstate','green.600','getValue','_entityInit$','OFFLINE','history','unitId','_getScale','runId','JOIN_ROOM_FAILED','onRendered','children','REDEMPTION_CODE_FULLY_REDEEMED','loadUnit','getRelativeToViewportCoord','_color','_docClipboardService','eventID','pipe','_online','whenReady','_send','YUUMI_URL_COL_OUT_OF_RANGE','min','getActiveRange','cursorInfo','releaseFormulaLimitUrl','DATA_SOURCE_TOO_LARGE','APPLY_NON_SEQUENTIAL_REVISION','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','displayName','univer-flex\x20univer-items-center','length','subscribe','LOGIN_TOKEN_PROCESSING_FAILED','engine','/run/','/universer-api/license/formula/limit/status','permission.content','_initCommandExecutedListener','_roomMembers$','USERS_LEAVE','_selfUnitIDs','exhaustSavingTask','status$','width','fill','FETCH_MISS','REDEMPTION_CODE_INACTIVE','height','m1Prime','OTHER_CLIENT_EDITING','REDEMPTION_USER_REDEEM_TIMES_EXCEED','OTHER_CLIENTS_EDITING','_getSheetObject','_range','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_hover','_localStorageService','set','onTransformChange$','getTypeOfUnitAdded$','_handleEvent','href','next','getFocusedUnit','_notificationService','YUUMI_ASYNCIO_CANCELLED','unit','moveTo','purple.300','APPLY_PERMISSION_DENIED','getCellPositionByOffset','backgroundColor','evenodd','isArray','LICENSE_MAX_UNITS_EXCEEDED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_memberService','disposeWithMe','session.will-retry','_docSyncEditingCollabCursorService','onPointerMove$','urlChange$','colorChannel1','UNAUTHENTICATED','_checkAndWaitForCalculationPermission','deepClone','UNDEFINED','UNIVER_SHEET','includes','getOwnPropertyDescriptor','_startCalculationLimit','collabCursorState$','_toggleOnline','getUnit','_initEntityListener','_ensureSubject','key','enableLocalCache','_toggleOffline','_id','_startDocCollabCursor','_uiPartsService','onPointerLeave$','_removeCollabCursors','transformIMECache','pushState','DeleteRangeMoveUpCommandId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','get','uni.network.url-service','startsWith','_commandService','APPLY_REVISION_CONFILICT','collab-text-anchor-','_revisionService','ALREADY_EXISTS','currentColor','memberID','restore','code','YUUMI_ALL_TABLES_IS_INVALID','_registerDependencies','1921246euRpeV','removeParam','values','_cursor','error','xlink:href','jiqing.500','registerComponent','addClipboardHook','clearInterval','getSkeleton','ranges','unload','asObservable','_maxFormulaLimit','black','setStateCache','_colorIndex','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collabCursorController','_init','_releaseCalculationLimit','Warning','some','_univerInstanceService','transformStateCache','TOO_MANY_REQUESTS','_checkCalculationAvailable','bottom','_clearOtherTimers','session.connection-failed','isEditing','_unitStatus','getSheetBySheetId','_setupBeforeClosingHandler','getCollabEntity$','selections','unshift','_cursorShapes','column','getOffsetConfig','none','add','createInstance','data','_logService','getUnhiddenWorksheets','hide','_localCacheService','mutations','_drawTextRange','_backgroundColor','Success','div','APPLY_DUPLICATED','tag','body','registerRenderModule','trim','random','reconnect','collaboration.closeRoom','defIds','univerjs-icon\x20univerjs-icon-','ENTITLE_REPORT_LIMIT_EXCEED','beginPath','getUndoRedoMutationParamsCache','InsertRangeMoveRightCommandId','_lastResponseTimestamp','formula.calculation.waiting','show','2995145cMImBH','m2Prime','endRow','_applyCommand','application/json','YUUMI_RATE_OVER_LIMIT','_scheduleClearOtherTimer','font','REDEMPTION_INVALID_CODE','_onCursorDelete','/universer-api/license/formula/limit/start','MUTATION','_heartbeatTimer','imageSourceType','APPLY_REJECT','_docSkeletonManagerService','ENTITLE_INSUFFICIENT_QUOTA','redoState','delete','LICENSE_IMPORT_SIZE_EXCEEDED','event$','split','2023608giZljR','name','assignAColorForMemberID','getCurrentRevOfUnit','forEach','INVALID_INVITE_CODE','USER_NOT_INVITED_CODE','7109144UsYKeG','defineProperty','saveTaskMap','docStateChange$','entityInit$','ONLINE','storage','doc.mutation.rich-text-editing','ACTIVE_UNIT_EVENT_CHANNEL','getParam','_docTransformSelectionsService','CHANGESET_REVISION_CONFILICT','_handleHover','_status$','off-line-icon_clip0_910_343','INVALID_ARGUMENT','getColorFromTheme','Unknown\x20user','attrs','currentSkeleton$','updateOfflineData','AWAITING_WITH_PENDING','idSuffix','syncEditingCollabCursor','setActiveRange','CURRENT_STATUS_CANNOT_OPERATE','_context','_createSocketURL','undoState','_syncEditingCollabCursorService','roomMembers$'];_0x1d21=function(){return _0x503382;};return _0x1d21();}const vi={'tag':'svg','attrs':{'xmlns':_0x23037e(0x40e),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x23037e(0x372),'height':_0x23037e(0x372)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x23037e(0x414),'attrs':{'stroke':_0x23037e(0x2db),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x23037e(0x3e9),'strokeWidth':1.2}}]},{'tag':_0x23037e(0x3c9),'attrs':{},'children':[{'tag':_0x23037e(0x3a9),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x23037e(0x3e1),'d':_0x23037e(0x3f7)}}]}]}],'defIds':[_0x23037e(0x353)]},Lt=_0xddff13(function(_0x1276be,_0x198979){const _0x1f52f6=_0x23037e;return _0x386601(Ve,Object[_0x1f52f6(0x215)]({},_0x1276be,{'id':'off-line-icon','ref':_0x198979,'icon':vi}));});Lt[_0x23037e(0x283)]=_0x23037e(0x21c);const Ei={'tag':'svg','attrs':{'xmlns':_0x23037e(0x40e),'fill':_0x23037e(0x30a),'viewBox':'0\x200\x2017\x2016','width':_0x23037e(0x372),'height':_0x23037e(0x372)},'children':[{'tag':'g','attrs':{'clipPath':_0x23037e(0x222)},'children':[{'tag':'path','attrs':{'stroke':_0x23037e(0x2db),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x23037e(0x3e9),'strokeWidth':1.2}}]},{'tag':_0x23037e(0x3c9),'attrs':{},'children':[{'tag':_0x23037e(0x3a9),'attrs':{'id':_0x23037e(0x424)},'children':[{'tag':_0x23037e(0x414),'attrs':{'fill':_0x23037e(0x3e1),'d':'M0\x200H16V16H0z','transform':_0x23037e(0x3ad)}}]}]}],'defIds':[_0x23037e(0x424)]},Mt=_0xddff13(function(_0x848081,_0xba0c44){const _0x3b1651=_0x23037e;return _0x386601(Ve,Object[_0x3b1651(0x215)]({},_0x848081,{'id':'on-line-icon','ref':_0xba0c44,'icon':Ei}));});Mt[_0x23037e(0x283)]='OnLineIcon';function pi(_0x2bd119){const _0x308708=_0x23037e;switch(_0x2bd119){case _0x2bd07a['OFFLINE']:return _0x308708(0x36e);case _0x2bd07a['CONFLICT']:return _0x308708(0x3c0);case _0x2bd07a[_0x308708(0x294)]:return'collabStatus.fetchMiss';case _0x2bd07a[_0x308708(0x3f5)]:return'collabStatus.notCollab';case _0x2bd07a[_0x308708(0x25a)]:case _0x2bd07a[_0x308708(0x35a)]:return _0x308708(0x1f0);case _0x2bd07a[_0x308708(0x36b)]:case _0x2bd07a[_0x308708(0x367)]:return _0x308708(0x249);}}function Oi(_0x4db6c2){const _0x2535e7=_0x23037e,{status$:_0xfff3d6}=_0x4db6c2,_0x5ac50c=_0x3925f0(_0xfff3d6,_0x2bd07a[_0x2535e7(0x3f5)]),_0x59725c=_0xd61efa(_0x23ab5c),_0x48edcc=_0xd61efa(_0x421172),_0x46ec4d=_0x5ac50c!==_0x2bd07a[_0x2535e7(0x269)],_0xdf3a3=_0x59725c['t'](pi(_0x5ac50c)),_0x3894bb=_0x46ec4d?_0x138755(Mt,{}):_0x138755(Lt,{}),_0x21bae0=_0x40aaa4(()=>{const _0x188901=_0x2535e7;_0x46ec4d||_0x48edcc[_0x188901(0x31d)]();},[_0x46ec4d,_0x48edcc]);function _0x1ed844(){const _0x1828ee=_0x2535e7;return _0xfacd06(_0x1828ee(0x316),{'className':_0x1828ee(0x284),'onClick':_0x21bae0,'children':[_0x138755(_0x1828ee(0x316),{'className':_0x5b3388('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x46ec4d,'univer-text-red-500':!_0x46ec4d}),'children':_0x3894bb}),_0x138755(_0x1828ee(0x316),{'className':_0x1828ee(0x213),'children':_0xdf3a3})]});}return _0x46ec4d?_0x1ed844():_0x138755(_0x266c7f,{'title':_0x59725c['t'](_0x2535e7(0x22e)),'children':_0x1ed844()});}var Ti=Object[_0x23037e(0x2c0)],Ci=(_0x534516,_0x54cbb3,_0x16ba1b,_0x5524f7)=>{const _0x1a76e4=_0x23037e;for(var _0x5d11dd=_0x5524f7>0x1?void 0x0:_0x5524f7?Ti(_0x54cbb3,_0x16ba1b):_0x54cbb3,_0x1a2b51=_0x534516[_0x1a76e4(0x285)]-0x1,_0x4bfc04;_0x1a2b51>=0x0;_0x1a2b51--)(_0x4bfc04=_0x534516[_0x1a2b51])&&(_0x5d11dd=_0x4bfc04(_0x5d11dd)||_0x5d11dd);return _0x5d11dd;},se=(_0x2828d6,_0x1d1998)=>(_0x1b57fb,_0x2cf3ea)=>_0x1d1998(_0x1b57fb,_0x2cf3ea,_0x2828d6);let oe=class extends _0x2adf18{constructor(_0x52b0da,_0x44cdaa,_0x524a22,_0x1ad06c){const _0x2769dc=_0x23037e;super(),l(this,_0x2769dc(0x352),new _0x107cff(_0x2bd07a['NOT_COLLAB'])),(this[_0x2769dc(0x2f9)]=_0x52b0da,this['_injector']=_0x44cdaa,this[_0x2769dc(0x3c7)]=_0x524a22,this[_0x2769dc(0x2cc)]=_0x1ad06c,this[_0x2769dc(0x371)](),this[_0x2769dc(0x3ce)]());}['_initStatusListener'](){const _0x38709a=_0x23037e;this[_0x38709a(0x2b4)](this[_0x38709a(0x2f9)][_0x38709a(0x242)]['pipe'](_0x1a78b4(()=>{const _0x2612d4=_0x38709a,_0x4cef88=this[_0x2612d4(0x2f9)][_0x2612d4(0x2a6)]();return _0x4cef88?this[_0x2612d4(0x3c7)][_0x2612d4(0x304)](_0x4cef88[_0x2612d4(0x23c)]()):_0x53144c(null);}),_0x1a78b4(_0x34cc64=>_0x34cc64?_0x34cc64[_0x38709a(0x291)]:_0x53144c(_0x2bd07a['NOT_COLLAB'])))[_0x38709a(0x286)](_0x505bd0=>{const _0x3fdf5a=_0x38709a;this['_status$'][_0x3fdf5a(0x2a5)](_0x505bd0);}));}[_0x23037e(0x371)](){const _0x23e564=_0x23037e;this['disposeWithMe'](this['_uiPartsService'][_0x23e564(0x2e8)](_0x1daa22[_0x23e564(0x3ca)],()=>_0x4aae1a(Ri({'status$':this[_0x23e564(0x352)][_0x23e564(0x2ee)]()}),this[_0x23e564(0x1f8)])));}};oe=Ci([se(0x0,_0x2c6926),se(0x1,_0x57b7af(_0xc05c74)),se(0x2,_0x57b7af(_0x2c7817)),se(0x3,_0x505eb5)],oe);function Ri(_0x467f2a){const {status$:_0x579e67}=_0x467f2a;return function(){return _0x138755(Oi,{'status$':_0x579e67});};}const At=_0x536e65(_0x23037e(0x2d4));function _0x596d(_0x5f49aa,_0x1ba67e){const _0x1d2191=_0x1d21();return _0x596d=function(_0x596dbe,_0x54bee7){_0x596dbe=_0x596dbe-0x1f0;let _0x1d80d8=_0x1d2191[_0x596dbe];return _0x1d80d8;},_0x596d(_0x5f49aa,_0x1ba67e);}var Di=Object['getOwnPropertyDescriptor'],Ni=(_0x471e70,_0x44e513,_0x6e2ae7,_0x252650)=>{const _0xf9e46a=_0x23037e;for(var _0x3776c4=_0x252650>0x1?void 0x0:_0x252650?Di(_0x44e513,_0x6e2ae7):_0x44e513,_0xb5d4b2=_0x471e70[_0xf9e46a(0x285)]-0x1,_0x11465d;_0xb5d4b2>=0x0;_0xb5d4b2--)(_0x11465d=_0x471e70[_0xb5d4b2])&&(_0x3776c4=_0x11465d(_0x3776c4)||_0x3776c4);return _0x3776c4;},K=(_0x334a1b,_0x902e7c)=>(_0x367417,_0x229d1a)=>_0x902e7c(_0x367417,_0x229d1a,_0x334a1b);let ae=class extends _0x1d3622{constructor(_0x55bdd5,_0x5486ba,_0x1a8ba0,_0x4b8d8e,_0x2e07ca){const _0x121209=_0x23037e;super(),this[_0x121209(0x24a)]=_0x55bdd5,this[_0x121209(0x30e)]=_0x5486ba,this[_0x121209(0x2d6)]=_0x1a8ba0,this[_0x121209(0x1ff)]=_0x4b8d8e,_0x2e07ca?_0x2e07ca==null||_0x2e07ca[_0x121209(0x279)]()[_0x121209(0x36c)](()=>this[_0x121209(0x2f5)]()):(this[_0x121209(0x30e)][_0x121209(0x383)]('[CollaborationDataLoaderController]',_0x121209(0x3fb)),this[_0x121209(0x2f5)]());}async[_0x23037e(0x2f5)](){const _0x228724=_0x23037e,_0x2fa4cc=this[_0x228724(0x24a)][_0x228724(0x34e)](_0x228724(0x2a9)),_0xf7807f=this[_0x228724(0x24a)][_0x228724(0x34e)](_0x228724(0x228)),_0x5ce61b=this[_0x228724(0x24a)][_0x228724(0x34e)]('subunit');if(!_0x2fa4cc||!_0xf7807f){this[_0x228724(0x30e)][_0x228724(0x383)](_0x228724(0x240),_0x228724(0x408));return;}const _0x505d3d=await this[_0x228724(0x1ff)][_0x228724(0x272)](_0x2fa4cc,Number(_0xf7807f),_0x5ce61b);_0x505d3d&&_0x505d3d instanceof _0x31a656&&this[_0x228724(0x22f)](_0x505d3d);}async['_setupSubUnitSync'](_0x305400){const _0x33e589=_0x23037e;await this[_0x33e589(0x255)](_0x305400),_0x305400[_0x33e589(0x409)][_0x33e589(0x277)](_0x1f8529(this['dispose$']))[_0x33e589(0x286)](_0x262838=>{_0x262838&&this['_updateURLWithCurrentState'](_0x262838);}),this[_0x33e589(0x24a)][_0x33e589(0x2b8)][_0x33e589(0x277)](_0x1f8529(this[_0x33e589(0x388)]))[_0x33e589(0x286)](()=>this[_0x33e589(0x255)](_0x305400));}[_0x23037e(0x3b9)](_0x2cee7f,_0x57bf2e=!0x1){const _0x1ed597=_0x23037e,_0x393514=this['_urlService']['getParam']('subunit');_0x2cee7f[_0x1ed597(0x38c)]()!==_0x393514&&this['_urlService']['setParam'](_0x1ed597(0x3a3),_0x2cee7f[_0x1ed597(0x38c)](),_0x57bf2e);}async['_updateSubUnitFromURLParams'](_0x7b013c){const _0x1c86d6=_0x23037e;var _0x3a1a69;const _0x531260=this['_urlService'][_0x1c86d6(0x34e)](_0x1c86d6(0x3a3));if(!_0x531260||!_0x7b013c[_0x1c86d6(0x302)](_0x531260)){const _0x4aa4b8=_0x7b013c[_0x1c86d6(0x30f)]()[0x0],_0x31729a=_0x7b013c[_0x1c86d6(0x302)](_0x4aa4b8);if(!_0x31729a)return;this[_0x1c86d6(0x3b9)](_0x31729a,!0x0),await this[_0x1c86d6(0x2d6)][_0x1c86d6(0x3d8)](_0x5b0313['id'],{'unitId':_0x7b013c[_0x1c86d6(0x23c)](),'subUnitId':_0x4aa4b8});return;}((_0x3a1a69=_0x7b013c[_0x1c86d6(0x416)]())==null?void 0x0:_0x3a1a69['getSheetId']())!==_0x531260&&await this[_0x1c86d6(0x2d6)][_0x1c86d6(0x3d8)](_0x5b0313['id'],{'unitId':_0x7b013c['getUnitId'](),'subUnitId':_0x531260});}};ae=Ni([K(0x0,At),K(0x1,_0x285ace),K(0x2,_0x409061),K(0x3,_0x57b7af(_0x1de1a6)),K(0x4,_0x1f94a2(_0x331afc))],ae);var bi=Object[_0x23037e(0x2c0)],Ui=(_0xc09724,_0x27b89c,_0x72fca0,_0x2ed809)=>{const _0x35da06=_0x23037e;for(var _0x4647b8=_0x2ed809>0x1?void 0x0:_0x2ed809?bi(_0x27b89c,_0x72fca0):_0x27b89c,_0x559256=_0xc09724[_0x35da06(0x285)]-0x1,_0x41b1d6;_0x559256>=0x0;_0x559256--)(_0x41b1d6=_0xc09724[_0x559256])&&(_0x4647b8=_0x41b1d6(_0x4647b8)||_0x4647b8);return _0x4647b8;},tt=(_0x35c38d,_0x21f834)=>(_0x1f2637,_0x56ca66)=>_0x21f834(_0x1f2637,_0x56ca66,_0x35c38d);let Ae=class extends _0x1d3622{constructor(_0x1082d0,_0x49a2b3){const _0x3d7c6d=_0x23037e;super(),this[_0x3d7c6d(0x275)]=_0x1082d0,this[_0x3d7c6d(0x3b8)]=_0x49a2b3,this[_0x3d7c6d(0x2f5)]();}[_0x23037e(0x2f5)](){const _0x115ef5=_0x23037e,_0x168ee4=this;this[_0x115ef5(0x2b4)](this[_0x115ef5(0x275)][_0x115ef5(0x2e9)]({'onBeforePasteImage':async _0xad6163=>{const _0x129a60=_0x115ef5,_0x5d9041=await _0x168ee4['_imageIoService'][_0x129a60(0x1f6)](_0xad6163);return _0x5d9041?{'source':_0x5d9041['source'],'imageSourceType':_0x5d9041[_0x129a60(0x335)]}:null;}}));}};Ae=Ui([tt(0x0,_0x5222a8),tt(0x1,_0x33779e)],Ae);const st=[_0x23037e(0x2ab),_0x23037e(0x2e7),_0x23037e(0x266),_0x23037e(0x206),'blue.400','yellow.400'];class je extends _0x2adf18{constructor(){const _0x237f29=_0x23037e;super(...arguments),l(this,_0x237f29(0x3a6),new Map()),l(this,_0x237f29(0x2f2),0x0);}[_0x23037e(0x340)](_0x237162){const _0x3ce0d4=_0x23037e;if(this['_assignedColors'][_0x3ce0d4(0x239)](_0x237162))return this[_0x3ce0d4(0x3a6)][_0x3ce0d4(0x2d3)](_0x237162);const _0x1cea56=st[this['_colorIndex']];return this[_0x3ce0d4(0x2f2)]=(this[_0x3ce0d4(0x2f2)]+0x1)%st['length'],this[_0x3ce0d4(0x3a6)][_0x3ce0d4(0x2a0)](_0x237162,_0x1cea56),_0x1cea56;}}function Pt(_0x31ab0d){const _0x15bb42=_0x23037e;let _0x59f098='';for(const _0x187813 of _0x31ab0d){const {startOffset:_0x2e7509,endOffset:_0x185a5c,isActive:_0x448d65,rangeType:_0x341495,segmentId:_0x509905,segmentPage:_0x43c2f2}=_0x187813;_0x59f098[_0x15bb42(0x285)]&&(_0x59f098+=','),_0x59f098+=_0x2e7509+':'+_0x185a5c+':'+(_0x448d65?'1':'0')+':'+_0x341495+':'+_0x509905+':'+_0x43c2f2;}return _0x59f098;}function Li(_0x36374b){const _0x1afcdb=_0x23037e,_0x674b8a=_0x36374b[_0x1afcdb(0x33d)](','),_0x1ffbb4=[];for(const _0x39fb13 of _0x674b8a){const [_0x45c4ad,_0x25a4c7,_0x12183d,_0x429b43,_0x1b6482,_0x598ff7]=_0x39fb13[_0x1afcdb(0x33d)](':');_0x1ffbb4['push']({'startOffset':Number(_0x45c4ad),'endOffset':Number(_0x25a4c7),'collapsed':_0x45c4ad===_0x25a4c7,'isActive':_0x12183d==='1','rangeType':_0x429b43===_0x3c6aa3[_0x1afcdb(0x38f)]?_0x3c6aa3[_0x1afcdb(0x38f)]:_0x3c6aa3[_0x1afcdb(0x399)],'segmentId':typeof _0x1b6482=='string'?String(_0x1b6482):'','segmentPage':Number(_0x598ff7!=null?_0x598ff7:-0x1)});}return _0x1ffbb4[_0x1afcdb(0x2f8)](_0x2e1968=>_0x2e1968['isActive'])||(_0x1ffbb4[0x0][_0x1afcdb(0x373)]=!0x0),_0x1ffbb4;}class Xe extends _0x1d3622{constructor(){const _0xb21970=_0x23037e;super(...arguments),l(this,_0xb21970(0x39e),new _0x107cff(null)),l(this,_0xb21970(0x2c2),this['_collabCursorState$'][_0xb21970(0x2ee)]());}[_0x23037e(0x35c)](_0x29e3df){const _0x168e9f=_0x23037e,{unitID:_0x2060d7,memberID:_0xf09147,textRanges:_0x1f6694}=_0x29e3df,_0x1434eb=Pt(_0x1f6694);if(_0x1434eb==='')return;const _0x481051={'unitID':_0x2060d7,'memberID':_0xf09147,'selection':_0x1434eb};this[_0x168e9f(0x39e)][_0x168e9f(0x2a5)](_0x481051);}}var Mi=Object[_0x23037e(0x2c0)],Ai=(_0x49ad7a,_0x1bdc72,_0x3438fa,_0x39ef05)=>{const _0x4b18a0=_0x23037e;for(var _0x448e00=_0x39ef05>0x1?void 0x0:_0x39ef05?Mi(_0x1bdc72,_0x3438fa):_0x1bdc72,_0x357e28=_0x49ad7a[_0x4b18a0(0x285)]-0x1,_0x1d1a29;_0x357e28>=0x0;_0x357e28--)(_0x1d1a29=_0x49ad7a[_0x357e28])&&(_0x448e00=_0x1d1a29(_0x448e00)||_0x448e00);return _0x448e00;},A=(_0x51a78c,_0x481d95)=>(_0x2e098a,_0x51ce1b)=>_0x481d95(_0x2e098a,_0x51ce1b,_0x51a78c);const Pi=0x12c,wi=0x64;let Pe=class extends _0x1d3622{constructor(_0x515878,_0x4ac84d,_0x3e6d0,_0x31dc79,_0x4756ce,_0x4eff3d,_0x2dbcfb,_0xb1d7db,_0x12002c){const _0xdfac02=_0x23037e;super(),l(this,_0xdfac02(0x278),!0x1),l(this,_0xdfac02(0x2f5),!0x1),l(this,_0xdfac02(0x3da),new _0x107cff(new Map())),l(this,'cursorInfo$',this[_0xdfac02(0x3da)][_0xdfac02(0x2ee)]()),l(this,'_roomMembers$',new _0x107cff([])),l(this,_0xdfac02(0x363),this[_0xdfac02(0x28d)][_0xdfac02(0x277)](_0x48f0e5(Pi))),l(this,'_updateLocalCursor',_0x16545f(_0x281270=>{const _0x181af5=_0xdfac02,_0x472a65={'eventID':_0x2d5bf8[_0x181af5(0x400)],'data':{'unitID':this[_0x181af5(0x256)],'memberID':this[_0x181af5(0x21f)][_0x181af5(0x24f)](),'selection':Pt(_0x281270)}};this[_0x181af5(0x21f)][_0x181af5(0x3ea)](_0x472a65,this[_0x181af5(0x256)]);},wi)),(this[_0xdfac02(0x256)]=_0x515878,this['_session']=_0x4ac84d,this[_0xdfac02(0x1f8)]=_0x3e6d0,this[_0xdfac02(0x41b)]=_0x31dc79,this[_0xdfac02(0x2b3)]=_0x4756ce,this[_0xdfac02(0x362)]=_0x4eff3d,this[_0xdfac02(0x237)]=_0x2dbcfb,this[_0xdfac02(0x2f9)]=_0xb1d7db,this[_0xdfac02(0x2d6)]=_0x12002c);}get[_0x23037e(0x27e)](){const _0x4965e2=_0x23037e;return this[_0x4965e2(0x3da)][_0x4965e2(0x267)]();}get[_0x23037e(0x3cb)](){const _0xf3703f=_0x23037e;return this[_0xf3703f(0x28d)][_0xf3703f(0x267)]();}[_0x23037e(0x3b4)](){const _0x4de548=_0x23037e;super['dispose'](),this[_0x4de548(0x3da)][_0x4de548(0x2a5)](new Map()),this[_0x4de548(0x3da)]['complete'](),this[_0x4de548(0x28d)][_0x4de548(0x2a5)]([]),this[_0x4de548(0x28d)][_0x4de548(0x232)]();}['init'](){const _0x203d77=_0x23037e;this['_init']||(this['_init']=!0x0,this[_0x203d77(0x21f)][_0x203d77(0x3dc)][_0x203d77(0x277)](_0x1f8529(this[_0x203d77(0x388)]))[_0x203d77(0x286)](_0x3dda1f=>{const _0x57460b=_0x203d77;_0x3dda1f===_0x3b587d[_0x57460b(0x34a)]?this[_0x57460b(0x2c3)]():this['_toggleOffline']();}),this[_0x203d77(0x21f)]['event$'][_0x203d77(0x277)](_0x1f8529(this[_0x203d77(0x388)]))[_0x203d77(0x286)](_0x378c27=>{const _0x25f5ae=_0x203d77,_0x2170fa=_0x378c27[_0x25f5ae(0x276)];_0x2170fa===_0x2d5bf8[_0x25f5ae(0x400)]&&this[_0x25f5ae(0x202)](_0x378c27),_0x2170fa===_0x2d5bf8[_0x25f5ae(0x28e)]&&this[_0x25f5ae(0x331)](_0x378c27);}),this[_0x203d77(0x2b4)](this[_0x203d77(0x2d6)][_0x203d77(0x421)](_0xd9cfbc=>{const _0x8156fd=_0x203d77,_0x3ff270=_0xd9cfbc[_0x8156fd(0x3dd)];_0x3ff270!=null&&this[_0x8156fd(0x278)]&&_0xd9cfbc['id']===_0x3fa432['id']&&_0x3ff270[_0x8156fd(0x26b)]===this[_0x8156fd(0x256)]&&_0x3ff270[_0x8156fd(0x300)]===!0x1&&_0x3ff270[_0x8156fd(0x2ec)][_0x8156fd(0x285)]>0x0&&this[_0x8156fd(0x3b0)](_0x3ff270[_0x8156fd(0x2ec)]);})),this['_syncEditingCollabCursorService']['collabCursorState$']['pipe'](_0x1f8529(this[_0x203d77(0x388)]))[_0x203d77(0x286)](_0x556b2b=>{const _0x1d8f18=_0x203d77;if((_0x556b2b==null?void 0x0:_0x556b2b['unitID'])!==this['unitID'])return;const _0x711d09={'eventID':_0x2d5bf8['UPDATE_CURSOR'],'data':_0x556b2b};this[_0x1d8f18(0x202)](_0x711d09);}),this['disposeWithMe'](this[_0x203d77(0x2d6)][_0x203d77(0x421)](_0x94377f=>{const _0x3153e6=_0x203d77;if(_0x94377f[_0x3153e6(0x3dd)]==null)return;const _0x1be994=_0x94377f['params'];if(_0x94377f['id']!==_0x4442d5['id']||_0x1be994[_0x3153e6(0x26b)]!==this[_0x3153e6(0x256)])return;const _0x32d9cc={'id':_0x3153e6(0x34c),'params':_0x1be994},_0x284526=this['cursorInfo'];for(const [_0x35b67a,_0xb47a0a]of _0x284526){const _0x3b8287={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xb47a0a[_0x3153e6(0x2ec)]}},_0x223208=this[_0x3153e6(0x237)]['transformMutation'](_0x32d9cc,_0x3b8287,!0x1);if(_0x3d5424(_0x223208))throw _0x223208[_0x3153e6(0x2e5)];_0x284526[_0x3153e6(0x2a0)](_0x35b67a,{..._0xb47a0a,'ranges':_0x223208[_0x3153e6(0x329)]['params'][_0x3153e6(0x21b)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x284526);});})));}['_onCursorUpdate'](_0x3d6256){const _0x247714=_0x23037e;var _0x290a12,_0x505f46;const {memberID:_0x8a631,selection:_0x2f03bd}=_0x3d6256[_0x247714(0x30d)],_0x520433=Li(_0x2f03bd),_0x5b168e=(_0x505f46=(_0x290a12=this[_0x247714(0x2b3)]['getMember'](this[_0x247714(0x256)],_0x8a631))==null?void 0x0:_0x290a12[_0x247714(0x33f)])!=null?_0x505f46:_0x247714(0x356),_0x3f0f52={'color':this[_0x247714(0x41b)][_0x247714(0x340)](_0x8a631),'name':_0x5b168e,'ranges':_0x520433},_0x97a0a1=this[_0x247714(0x27e)];_0x97a0a1['set'](_0x8a631,_0x3f0f52),this[_0x247714(0x3da)][_0x247714(0x2a5)](_0x97a0a1);}[_0x23037e(0x331)](_0x363b53){const _0x35a844=_0x23037e,{memberID:_0x29a825}=_0x363b53[_0x35a844(0x30d)],_0x4ef935=this['cursorInfo'];_0x4ef935[_0x35a844(0x33a)](_0x29a825),this[_0x35a844(0x3da)][_0x35a844(0x2a5)](_0x4ef935);}[_0x23037e(0x2c3)](){const _0x1edd12=_0x23037e;var _0x5787ec;if(this[_0x1edd12(0x278)]=!0x0,((_0x5787ec=this[_0x1edd12(0x2f9)][_0x1edd12(0x2a6)]())==null?void 0x0:_0x5787ec[_0x1edd12(0x23c)]())!==this[_0x1edd12(0x256)])return;const _0x53164d=this[_0x1edd12(0x1f8)]['get'](_0x4b96b6)[_0x1edd12(0x1f5)]();Array['isArray'](_0x53164d)&&_0x53164d['length']>0x0&&this[_0x1edd12(0x3b0)](_0x53164d);}[_0x23037e(0x2c9)](){const _0x26cce6=_0x23037e;this[_0x26cce6(0x278)]=!0x1;}};Pe=Ai([A(0x2,_0x57b7af(_0xc05c74)),A(0x3,_0x57b7af(je)),A(0x4,_0x57b7af(_0x254d55)),A(0x5,_0x57b7af(Xe)),A(0x6,_0x459e0f),A(0x7,_0x2c6926),A(0x8,_0x409061)],Pe);var yi=Object[_0x23037e(0x2c0)],$i=(_0x29a2e2,_0x373e77,_0x39fcfa,_0x302bd8)=>{const _0x38c268=_0x23037e;for(var _0x250de9=_0x302bd8>0x1?void 0x0:_0x302bd8?yi(_0x373e77,_0x39fcfa):_0x373e77,_0x152332=_0x29a2e2[_0x38c268(0x285)]-0x1,_0x7520eb;_0x152332>=0x0;_0x152332--)(_0x7520eb=_0x29a2e2[_0x152332])&&(_0x250de9=_0x7520eb(_0x250de9)||_0x250de9);return _0x250de9;},B=(_0x2cded7,_0x5bbfb1)=>(_0x3fa5d7,_0x4c9211)=>_0x5bbfb1(_0x3fa5d7,_0x4c9211,_0x2cded7);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x493cef=[],_0x430ab7=!0x1;return _0x18e8ed=>{const _0xf72c5f=_0x596d;_0x493cef[_0xf72c5f(0x3b6)](_0x18e8ed),_0x430ab7||(_0x430ab7=!0x0,setTimeout(()=>{const _0x4e0647=_0xf72c5f;_0x493cef[_0x4e0647(0x342)](_0x16c66e=>_0x16c66e()),_0x493cef=[],_0x430ab7=!0x1;}));};};let we=class extends _0x1d3622{constructor(_0x3a9019,_0x163db6,_0x4fe115,_0x51668d,_0x6fcd00,_0x2f0068,_0x8e0068,_0x30081d){const _0x3d0fe4=_0x23037e;super(),l(this,_0x3d0fe4(0x278),!0x1),l(this,_0x3d0fe4(0x2f5),!0x1),l(this,_0x3d0fe4(0x3da),new _0x107cff(new Map())),l(this,'cursorInfo$',this[_0x3d0fe4(0x3da)][_0x3d0fe4(0x2ee)]()),l(this,_0x3d0fe4(0x28d),new _0x107cff([])),l(this,'roomMembers$',this['_roomMembers$'][_0x3d0fe4(0x277)](_0x48f0e5(xi))),l(this,'_updateLocalCursor',_0x16545f((_0x34ba64,_0x552cef)=>{const _0xa8f9fd=_0x3d0fe4,_0x5c6b83={'eventID':_0x2d5bf8[_0xa8f9fd(0x400)],'data':{'unitID':this['unitID'],'memberID':this[_0xa8f9fd(0x21f)][_0xa8f9fd(0x24f)](),'selection':_0xef98ea(_0x34ba64,_0x552cef['range'])}};this[_0xa8f9fd(0x21f)][_0xa8f9fd(0x3ea)](_0x5c6b83,this[_0xa8f9fd(0x256)]);},Bi)),(this['unitID']=_0x3a9019,this[_0x3d0fe4(0x21f)]=_0x163db6,this['_injector']=_0x4fe115,this[_0x3d0fe4(0x41b)]=_0x51668d,this[_0x3d0fe4(0x2b3)]=_0x6fcd00,this[_0x3d0fe4(0x2f9)]=_0x2f0068,this[_0x3d0fe4(0x2d6)]=_0x8e0068,this['_refRangeService']=_0x30081d);}get['cursorInfo'](){const _0x190623=_0x23037e;return this[_0x190623(0x3da)][_0x190623(0x267)]();}get[_0x23037e(0x3cb)](){const _0x34e811=_0x23037e;return this[_0x34e811(0x28d)][_0x34e811(0x267)]();}[_0x23037e(0x3b4)](){const _0x3d8477=_0x23037e;super[_0x3d8477(0x3b4)](),this[_0x3d8477(0x3da)][_0x3d8477(0x2a5)](new Map()),this['_cursorInfo$'][_0x3d8477(0x232)](),this[_0x3d8477(0x28d)][_0x3d8477(0x2a5)]([]),this[_0x3d8477(0x28d)][_0x3d8477(0x232)]();}[_0x23037e(0x377)](){const _0x31460a=_0x23037e;this[_0x31460a(0x2f5)]||(this[_0x31460a(0x2f5)]=!0x0,this[_0x31460a(0x21f)][_0x31460a(0x3dc)]['pipe'](_0x1f8529(this[_0x31460a(0x388)]))[_0x31460a(0x286)](_0x292d04=>{const _0x10a91b=_0x31460a;_0x292d04===_0x3b587d[_0x10a91b(0x34a)]?this['_toggleOnline']():this[_0x10a91b(0x2c9)]();}),this[_0x31460a(0x21f)][_0x31460a(0x33c)][_0x31460a(0x277)](_0x1f8529(this[_0x31460a(0x388)]))[_0x31460a(0x286)](_0x49387d=>{const _0x12d3b3=_0x31460a,_0x56f013=_0x49387d[_0x12d3b3(0x276)];_0x56f013===_0x2d5bf8[_0x12d3b3(0x400)]&&this[_0x12d3b3(0x202)](_0x49387d),_0x56f013===_0x2d5bf8[_0x12d3b3(0x28e)]&&this[_0x12d3b3(0x331)](_0x49387d);}),this[_0x31460a(0x376)](),this[_0x31460a(0x2b4)](this[_0x31460a(0x2d6)][_0x31460a(0x421)](_0x156513=>{const _0x207b19=_0x31460a;if(this[_0x207b19(0x278)]&&_0x156513['id']===_0x1b5f73['id']&&_0x156513['params']['unitId']===this[_0x207b19(0x256)]){const _0x1d05b2=_0x156513[_0x207b19(0x3dd)];this[_0x207b19(0x3b0)](_0x1d05b2['subUnitId'],_0x1d05b2[_0x207b19(0x305)][0x0]);}})));}['_onCursorUpdate'](_0xd17e69){const _0x545f66=_0x23037e;var _0x41751f,_0x296e76;const {memberID:_0x1e6789,selection:_0x5a974c}=_0xd17e69[_0x545f66(0x30d)],{sheetName:_0x552bd6,range:_0x2ea047}=_0x584d03(_0x5a974c),_0x54cd38={'name':(_0x296e76=(_0x41751f=this[_0x545f66(0x2b3)]['getMember'](this[_0x545f66(0x256)],_0x1e6789))==null?void 0x0:_0x41751f[_0x545f66(0x33f)])!=null?_0x296e76:_0x545f66(0x356),'range':this['_getMergeRange'](_0x552bd6,_0x2ea047),'sheetID':_0x552bd6,'color':this[_0x545f66(0x41b)][_0x545f66(0x340)](_0x1e6789),'selection':_0x5a974c},_0x5141c4=this[_0x545f66(0x27e)];_0x5141c4[_0x545f66(0x2a0)](_0x1e6789,_0x54cd38),this[_0x545f66(0x3da)][_0x545f66(0x2a5)](_0x5141c4);}[_0x23037e(0x331)](_0x34b722){const _0x1470c0=_0x23037e,{memberID:_0x44c0bf}=_0x34b722[_0x1470c0(0x30d)],_0x541f9f=this[_0x1470c0(0x27e)];_0x541f9f[_0x1470c0(0x33a)](_0x44c0bf),this['_cursorInfo$'][_0x1470c0(0x2a5)](_0x541f9f);}['_getMergeRange'](_0xd9dbcd,_0x346f54){const _0x3bfbec=_0x23037e;var _0x5804fc,_0x513b40;const _0x4947d1=(_0x513b40=(_0x5804fc=this[_0x3bfbec(0x2f9)][_0x3bfbec(0x225)](this['unitID']))==null?void 0x0:_0x5804fc[_0x3bfbec(0x302)](_0xd9dbcd))==null?void 0x0:_0x513b40['getMergeData']();return(_0x4947d1==null?void 0x0:_0x4947d1[_0x3bfbec(0x3d3)](_0x30dea8=>_0x231b0b[_0x3bfbec(0x37d)](_0x30dea8,_0x346f54)))||_0x346f54;}[_0x23037e(0x376)](){const _0x2607b8=new _0x31703a(),_0x4540f4=Fi(),_0x1fcf51=()=>{const _0x33eac1=_0x596d;_0x2607b8[_0x33eac1(0x3b4)]();const _0x389bb2=(_0x2e00c5,_0x135fae,_0x38132f,_0x9565d6)=>{const _0xac6ec1=_0x33eac1;let _0x12bf36=[];switch(_0x2e00c5['id']){case _0x5546d5[_0xac6ec1(0x402)]:{_0x12bf36=_0x2f0783(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x2d1)]:{_0x12bf36=_0x4536fa(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x3fd)]:{_0x12bf36=_0x13497b(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x3a8)]:{_0x12bf36=_0x5c823a(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x324)]:{_0x12bf36=_0x5b21d5(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x200)]:{_0x12bf36=_0x2d53e8(_0x2e00c5,_0x9565d6);break;}case _0x5546d5['MoveRangeCommandId']:{_0x12bf36=_0x62f1a4(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x23d)]:{_0x12bf36=_0x15b017(_0x2e00c5,_0x9565d6);break;}case _0x5546d5[_0xac6ec1(0x3f6)]:{_0x12bf36=_0x7f5d7e(_0x2e00c5,_0x9565d6);break;}}const _0x2617b0=_0x3dbed1(_0x12bf36,_0x9565d6),_0x41744a=this[_0xac6ec1(0x27e)][_0xac6ec1(0x2d3)](_0x135fae);if(_0x41744a&&_0x2617b0){const _0x3c3791={..._0x41744a,'range':_0x2617b0};this['cursorInfo']['set'](_0x135fae,_0x3c3791),_0x4540f4(()=>{const _0x49453e=_0xac6ec1,_0x16428b=this['_refRangeService'][_0x49453e(0x3e8)](_0x2617b0,_0x1db1e4=>(_0x16428b[_0x49453e(0x3b4)](),_0x389bb2(_0x1db1e4,_0x135fae,_0x38132f,_0x2617b0)));_0x2607b8[_0x49453e(0x30b)](_0x16428b);});}return{'redos':[],'undos':[]};};this[_0x33eac1(0x27e)][_0x33eac1(0x342)]((_0xe9e54d,_0x30e55e)=>{const _0x13e1b0=_0x33eac1,{range:_0x2a400c,sheetID:_0xf72323}=_0xe9e54d,_0x59ae6e=this['_refRangeService'][_0x13e1b0(0x3e8)](_0x2a400c,_0x236436=>(_0x59ae6e[_0x13e1b0(0x3b4)](),_0x389bb2(_0x236436,_0x30e55e,_0xf72323,_0x2a400c)));_0x2607b8[_0x13e1b0(0x30b)](_0x59ae6e);});};this['disposeWithMe'](_0x586ed0(this['_cursorInfo$']['subscribe'](()=>{_0x1fcf51();})));}[_0x23037e(0x2c3)](){const _0x16eb1a=_0x23037e;var _0x29f376,_0xa52bcd;if(this['_online']=!0x0,((_0x29f376=this[_0x16eb1a(0x2f9)]['getFocusedUnit']())==null?void 0x0:_0x29f376[_0x16eb1a(0x23c)]())!==this['unitID'])return;const _0x50dc2c=(_0xa52bcd=this[_0x16eb1a(0x1f8)]['get'](_0x4e7057)['getCurrentSelections']())==null?void 0x0:_0xa52bcd[0x0],_0x162166=this[_0x16eb1a(0x2f9)][_0x16eb1a(0x21e)](_0x175e13[_0x16eb1a(0x2be)])[_0x16eb1a(0x416)]();_0x50dc2c&&_0x162166&&this[_0x16eb1a(0x3b0)](_0x162166[_0x16eb1a(0x38c)](),_0x50dc2c);}['_toggleOffline'](){this['_online']=!0x1;}};we=$i([B(0x2,_0x57b7af(_0xc05c74)),B(0x3,_0x57b7af(je)),B(0x4,_0x57b7af(_0x254d55)),B(0x5,_0x2c6926),B(0x6,_0x409061),B(0x7,_0x57b7af(_0x60f440))],we);var ki=Object['getOwnPropertyDescriptor'],Hi=(_0x54cdcc,_0x5d5527,_0x64a23,_0x54be78)=>{const _0x42ed8d=_0x23037e;for(var _0x36b166=_0x54be78>0x1?void 0x0:_0x54be78?ki(_0x5d5527,_0x64a23):_0x5d5527,_0x51767e=_0x54cdcc[_0x42ed8d(0x285)]-0x1,_0x42348c;_0x51767e>=0x0;_0x51767e--)(_0x42348c=_0x54cdcc[_0x51767e])&&(_0x36b166=_0x42348c(_0x36b166)||_0x36b166);return _0x36b166;},Ee=(_0x4607cb,_0x25567d)=>(_0x594afc,_0x4a558d)=>_0x25567d(_0x594afc,_0x4a558d,_0x4607cb);let H=class extends _0x1d3622{constructor(_0x5e93b4,_0x2eae73,_0x2b13b0){const _0x2cfc5e=_0x23037e;super(),l(this,_0x2cfc5e(0x40b),new Map()),l(this,_0x2cfc5e(0x268),new _0x37e983()),(this[_0x2cfc5e(0x2f9)]=_0x5e93b4,this[_0x2cfc5e(0x1f8)]=_0x2eae73,this[_0x2cfc5e(0x22a)]=_0x2b13b0,this[_0x2cfc5e(0x2f5)]());}['dispose'](){const _0x31e8a9=_0x23037e;super['dispose'](),this[_0x31e8a9(0x268)][_0x31e8a9(0x232)](),this[_0x31e8a9(0x40b)][_0x31e8a9(0x342)](_0x8f31f0=>_0x8f31f0[_0x31e8a9(0x3b4)]());}[_0x23037e(0x3c2)](_0x58b6ea){const _0xe8fc2e=_0x23037e;return this['_entities'][_0xe8fc2e(0x239)](_0x58b6ea)?this['_entities']['get'](_0x58b6ea)['cursorInfo$']:this[_0xe8fc2e(0x268)]['pipe'](_0x72003c(_0x24407b=>_0x24407b[_0xe8fc2e(0x256)]===_0x58b6ea),_0x1a78b4(_0x2c2182=>_0x2c2182['cursorInfo$']));}[_0x23037e(0x2f5)](){const _0x248029=_0x23037e;this[_0x248029(0x2f9)]['getTypeOfUnitAdded$'](_0x175e13[_0x248029(0x2be)])[_0x248029(0x277)](_0x1f8529(this[_0x248029(0x388)]))[_0x248029(0x286)](async _0x3cede7=>{const _0x398291=_0x248029,_0x419282=_0x3cede7['getUnitId'](),_0x1d1fdf=await this['_startSheetCollabCursor'](_0x419282);this[_0x398291(0x268)][_0x398291(0x2a5)](_0x1d1fdf),this[_0x398291(0x40b)][_0x398291(0x2a0)](_0x419282,_0x1d1fdf);}),this[_0x248029(0x2f9)][_0x248029(0x2a2)](_0x175e13[_0x248029(0x375)])['pipe'](_0x1f8529(this[_0x248029(0x388)]))[_0x248029(0x277)](_0x72003c(_0x325aee=>!_0x325aee[_0x248029(0x23c)]()[_0x248029(0x2d5)]('__')))['subscribe'](async _0x2fba79=>{const _0x4829e9=_0x248029,_0x2a638f=_0x2fba79[_0x4829e9(0x23c)](),_0x49802c=await this[_0x4829e9(0x2cb)](_0x2a638f);this['_entityInit$'][_0x4829e9(0x2a5)](_0x49802c),this['_entities']['set'](_0x2a638f,_0x49802c);}),_0x4680f6(this[_0x248029(0x2f9)][_0x248029(0x20d)](_0x175e13[_0x248029(0x375)]),this['_univerInstanceService'][_0x248029(0x20d)](_0x175e13[_0x248029(0x2be)]))['pipe'](_0x1f8529(this['dispose$']))[_0x248029(0x286)](_0x56a4cb=>{const _0x2736a1=_0x248029,_0x178593=_0x56a4cb['getUnitId'](),_0x5a04ca=this[_0x2736a1(0x40b)][_0x2736a1(0x2d3)](_0x178593);_0x5a04ca&&(_0x5a04ca[_0x2736a1(0x3b4)](),this[_0x2736a1(0x40b)][_0x2736a1(0x33a)](_0x178593));});}async[_0x23037e(0x3b2)](_0x45fc04){const _0x5b3072=_0x23037e,_0x333344=await this[_0x5b3072(0x22a)]['requireSession'](_0x45fc04),_0x376020=this[_0x5b3072(0x1f8)][_0x5b3072(0x30c)](we,_0x45fc04,_0x333344);return _0x376020['init'](),_0x376020;}async[_0x23037e(0x2cb)](_0x53e8ad){const _0x22cde3=_0x23037e,_0x2e0085=await this[_0x22cde3(0x22a)]['requireSession'](_0x53e8ad),_0x31a1d8=this[_0x22cde3(0x1f8)]['createInstance'](Pe,_0x53e8ad,_0x2e0085);return _0x31a1d8[_0x22cde3(0x377)](),_0x31a1d8;}};H=Hi([Ee(0x0,_0x2c6926),Ee(0x1,_0x57b7af(_0xc05c74)),Ee(0x2,_0x57b7af(_0x421172))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x828e59,_0x5c0b7d){const _0x859768=_0x23037e;let {radius:_0x49fecb,width:_0x31be45,height:_0x122716}=_0x5c0b7d;_0x49fecb=_0x49fecb!=null?_0x49fecb:0x0,_0x31be45=_0x31be45!=null?_0x31be45:0x1e,_0x122716=_0x122716!=null?_0x122716:0x1e;let _0x59b65b=0x0,_0x5571f6=0x0,_0x311184=0x0;_0x59b65b=_0x5571f6=_0x311184=Math[_0x859768(0x27c)](_0x49fecb,_0x31be45/0x2,_0x122716/0x2),_0x828e59[_0x859768(0x322)](),_0x828e59[_0x859768(0x2aa)](_0x59b65b,0x0),_0x828e59[_0x859768(0x427)](_0x31be45-_0x5571f6,0x0),_0x828e59[_0x859768(0x24b)](_0x31be45-_0x5571f6,_0x5571f6,_0x5571f6,Math['PI']*0x3/0x2,0x0,!0x1),_0x828e59[_0x859768(0x427)](_0x31be45,_0x122716-_0x311184),_0x828e59['arc'](_0x31be45-_0x311184,_0x122716-_0x311184,_0x311184,0x0,Math['PI']/0x2,!0x1),_0x828e59['lineTo'](0x0,_0x122716),_0x828e59['lineTo'](0x0,_0x59b65b),_0x828e59[_0x859768(0x24b)](_0x59b65b,_0x59b65b,_0x59b65b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x828e59[_0x859768(0x230)](),_0x5c0b7d[_0x859768(0x293)]&&(_0x828e59[_0x859768(0x41d)](),_0x828e59['fillStyle']=_0x5c0b7d['fill'],_0x5c0b7d[_0x859768(0x3f9)]===_0x859768(0x2af)?_0x828e59[_0x859768(0x293)](_0x859768(0x2af)):_0x828e59['fill'](),_0x828e59[_0x859768(0x2dd)]());}class me extends _0x403c8d{constructor(_0xc3cc63,_0x524682){const _0x477d89=_0x23037e;super(_0xc3cc63,_0x524682),l(this,'color'),l(this,_0x477d89(0x3f8)),(this['color']=_0x524682==null?void 0x0:_0x524682[_0x477d89(0x205)],this[_0x477d89(0x3f8)]=_0x524682==null?void 0x0:_0x524682[_0x477d89(0x3f8)]);}static[_0x23037e(0x23a)](_0x361129,_0x2ba0fa){const _0xdef3e=_0x23037e,{text:_0x34e29c,color:_0x18bc09}=_0x2ba0fa;_0x361129[_0xdef3e(0x41d)](),_0x361129[_0xdef3e(0x32f)]=_0xdef3e(0x2d2);const _0x5d2163=_0x361129[_0xdef3e(0x386)](_0x34e29c)[_0xdef3e(0x292)],_0x24b365=Math[_0xdef3e(0x27c)](_0x5d2163+0x2*pe,it);Wi(_0x361129,{'height':Q,'radius':0x4,'width':_0x24b365,'fill':_0x18bc09}),_0x361129[_0xdef3e(0x3c4)]='#FFF';const _0x321eed=pe,_0x577c41=Q-Yi,_0x27832b=it-0x2*pe;if(_0x5d2163>_0x27832b){let _0x241e59='',_0x114543=0x0;for(const _0xfa55b3 of _0x34e29c){const _0x925031=_0x361129['measureText'](_0xfa55b3)[_0xdef3e(0x292)];if(_0x114543+_0x925031<=_0x27832b-_0x361129[_0xdef3e(0x386)](_0xdef3e(0x253))[_0xdef3e(0x292)])_0x241e59+=_0xfa55b3,_0x114543+=_0x925031;else{_0x241e59+='...';break;}}_0x361129[_0xdef3e(0x22d)](_0x241e59,_0x321eed,_0x577c41);}else _0x361129[_0xdef3e(0x22d)](_0x34e29c,_0x321eed,_0x577c41);_0x361129[_0xdef3e(0x2dd)]();}[_0x23037e(0x25f)](_0x541fb2){const _0x32f2b9=_0x23037e;me[_0x32f2b9(0x23a)](_0x541fb2,this);}}const Oe=_0x23037e(0x2d8),Vi=_0x23037e(0x219),ji=_0x23037e(0x211),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki='rgba(255,\x20255,\x20255,\x200.01)';class nt{constructor(_0xe36ea9,_0x372750,_0x39d26f,_0x76c0f9){const _0x5895b9=_0x23037e;l(this,_0x5895b9(0x422),[]),l(this,'_anchor',null),l(this,_0x5895b9(0x246),null),l(this,_0x5895b9(0x3a2),null),l(this,'_hideTimer',null),l(this,_0x5895b9(0x374),null),(this[_0x5895b9(0x2e4)]=_0xe36ea9,this['_scene']=_0x372750,this['_docSkeleton']=_0x39d26f,this['_document']=_0x76c0f9,this['_render']());}set[_0x23037e(0x29e)](_0x4071fb){const _0x50184e=_0x23037e;_0x4071fb?(this[_0x50184e(0x3a2)]&&this[_0x50184e(0x3a2)][_0x50184e(0x310)](),this[_0x50184e(0x246)]&&this['_textBubble'][_0x50184e(0x327)]()):(this['_anchorDot']&&this['_anchorDot'][_0x50184e(0x327)](),this['_textBubble']&&this['_textBubble'][_0x50184e(0x310)]());}[_0x23037e(0x3b4)](){const _0x3cb456=_0x23037e;for(const _0x38c3ef of this[_0x3cb456(0x422)])_0x38c3ef[_0x3cb456(0x3b4)]();this[_0x3cb456(0x246)]&&this[_0x3cb456(0x246)][_0x3cb456(0x3b4)](),this[_0x3cb456(0x3a2)]&&this[_0x3cb456(0x3a2)][_0x3cb456(0x3b4)](),this[_0x3cb456(0x412)]&&this[_0x3cb456(0x412)][_0x3cb456(0x3b4)](),this[_0x3cb456(0x374)]&&this[_0x3cb456(0x374)]();}[_0x23037e(0x398)](){const _0x500196=_0x23037e;var _0x37e19c;const {_docSkeleton:_0xccf63a,_document:_0x1991ae}=this,{color:_0x4835b1,name:_0x517093,ranges:_0x27e31b}=this[_0x500196(0x2e4)],_0x2ed36e=_0x1991ae[_0x500196(0x309)](),{docsLeft:_0x367349,docsTop:_0x476f03}=_0x2ed36e,_0x4b5748=new _0xcac73d(_0x2ed36e,_0xccf63a);for(const {startOffset:_0x390537,endOffset:_0x18300e,rangeType:_0x5fce1b,segmentId:_0x5126c0,segmentPage:_0x5dd3b8,collapsed:_0x47a4fc,isActive:_0x4313fb}of _0x27e31b){const _0x1973a7=_0xccf63a[_0x500196(0x3e4)](_0x390537,!0x0,_0x5126c0,_0x5dd3b8);let _0x1253da=_0xccf63a[_0x500196(0x3e4)](_0x18300e,!0x0,_0x5126c0,_0x5dd3b8);if(_0x1253da==null&&(_0x1253da=_0xccf63a['findNodePositionByCharIndex'](_0x18300e-0x1,!0x1,_0x5126c0,_0x5dd3b8)),_0x4313fb){const {contentBoxPointGroup:_0x2f0cb0}=_0x4b5748[_0x500196(0x3fc)](_0x1253da,_0x1253da);if(_0x2f0cb0['length']===0x0)continue;this[_0x500196(0x3eb)](_0x4835b1,_0x2f0cb0,_0x367349,_0x476f03,_0x517093),this[_0x500196(0x374)]=this['_handleHover']();}if(_0x1973a7&&_0x1253da){if(_0x5fce1b===_0x3c6aa3[_0x500196(0x399)]){const _0x44dde5=new _0xbcad60(_0x2ed36e,_0xccf63a),{pointGroup:_0x4bee11}=(_0x37e19c=_0x44dde5['getRangePointData'](_0x1973a7,_0x1253da))!=null?_0x37e19c:{};if(_0x4bee11==null||_0x4bee11[_0x500196(0x285)]===0x0)continue;this[_0x500196(0x38e)](_0x4835b1,_0x4bee11,_0x367349,_0x476f03);}else{if(!_0x47a4fc){const {borderBoxPointGroup:_0x6b0e71}=_0x4b5748[_0x500196(0x3fc)](_0x1973a7,_0x1253da);if(_0x6b0e71[_0x500196(0x285)]===0x0)continue;this[_0x500196(0x313)](_0x4835b1,_0x6b0e71,_0x367349,_0x476f03);}}}}}[_0x23037e(0x3eb)](_0x523c53,_0x2118a8,_0x4553b6,_0x2f60bf,_0x262f1e){const _0x554027=_0x23037e,_0x4ba804=this[_0x554027(0x3b7)](_0x2118a8),{left:_0x323975,top:_0x1042b3,height:_0x1420eb}=_0x4ba804,_0x2ec6ed=this[_0x554027(0x26c)](),_0x382a8a=Gi/_0x2ec6ed,_0x208af6=new _0x13c2ec(Oe+_0x21c798(z),{'left':_0x323975+_0x4553b6-_0x382a8a,'top':_0x1042b3+_0x2f60bf,'height':_0x1420eb,'width':Xi,'fill':_0x523c53||_0x29e4a4(_0x527bec[_0x554027(0x2f0)],0x0),'strokeWidth':_0x382a8a,'stroke':Ki,'evented':!0x0});this[_0x554027(0x412)]=_0x208af6,this[_0x554027(0x3ba)][_0x554027(0x3ae)](_0x208af6,_0x2279bd);const _0x34582e=new _0x13c2ec(Oe+_0x21c798(z),{'left':_0x323975+_0x4553b6-_0x382a8a,'top':_0x1042b3+_0x2f60bf-Te/0x2,'height':Te,'width':Te,'fill':_0x523c53||_0x29e4a4(_0x527bec[_0x554027(0x2f0)],0x0),'strokeWidth':0x0,'stroke':_0x523c53||_0x29e4a4(_0x527bec[_0x554027(0x2f0)],0x0),'evented':!0x1});this[_0x554027(0x3a2)]=_0x34582e,this[_0x554027(0x3ba)][_0x554027(0x3ae)](_0x34582e,_0x2279bd);const _0x2a6e0c=new me(Oe+_0x21c798(z),{'left':_0x323975+_0x4553b6-_0x382a8a,'top':_0x1042b3+_0x2f60bf-Q,'text':_0x262f1e,'color':_0x523c53});this[_0x554027(0x246)]=_0x2a6e0c,this['_scene'][_0x554027(0x3ae)](_0x2a6e0c,_0x2279bd),this['_hover']=!0x1;}[_0x23037e(0x351)](){const _0x4b336e=_0x23037e,_0x1dc46f=this['_anchor'][_0x4b336e(0x3e2)][_0x4b336e(0x3ac)](()=>{this['_hover']=!0x0;}),_0x3658be=this[_0x4b336e(0x412)][_0x4b336e(0x2cd)]['subscribeEvent'](()=>{const _0x5e05c5=_0x4b336e;this[_0x5e05c5(0x217)]&&clearTimeout(this[_0x5e05c5(0x217)]),this[_0x5e05c5(0x217)]=setTimeout(()=>{const _0x50930e=_0x5e05c5;this[_0x50930e(0x29e)]=!0x1;},0x7d0);});return()=>{const _0x30c726=_0x4b336e;_0x1dc46f['unsubscribe'](),_0x3658be[_0x30c726(0x224)]();};}['_drawTextRange'](_0x5009be,_0x2974a3,_0x4ce0b0,_0x372c81){const _0x5b2b4e=_0x23037e,_0x1ce878=new _0x20724d(_0x5009be)[_0x5b2b4e(0x1f2)](0.2)[_0x5b2b4e(0x204)](),_0xbe7f67=new _0x2d1fb7(Vi+_0x21c798(z),{'pointsGroup':_0x2974a3,'fill':_0x1ce878||_0x29e4a4(_0x527bec['black'],0.2),'left':_0x4ce0b0,'top':_0x372c81,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b2b4e(0x422)][_0x5b2b4e(0x3b6)](_0xbe7f67),this[_0x5b2b4e(0x3ba)]['addObject'](_0xbe7f67,_0x2279bd);}['_drawRectRange'](_0x2e690e,_0x437225,_0x2971eb,_0x2fd3ec){const _0x5a5652=_0x23037e,_0x2b4e96=new _0x20724d(_0x2e690e)[_0x5a5652(0x1f2)](0.2)[_0x5a5652(0x204)](),_0x2d2ffb=new _0x2d1fb7(ji+_0x21c798(z),{'pointsGroup':_0x437225,'fill':_0x2b4e96||_0x29e4a4(_0x527bec[_0x5a5652(0x2f0)],0.2),'left':_0x2971eb,'top':_0x2fd3ec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5a5652(0x422)][_0x5a5652(0x3b6)](_0x2d2ffb),this[_0x5a5652(0x3ba)]['addObject'](_0x2d2ffb,_0x2279bd);}[_0x23037e(0x3b7)](_0x14cd08){const _0x17f294=_0x14cd08[0x0],_0x4cc987=_0x17f294[0x0],_0x3a0686=_0x17f294[0x2],{x:_0x464859,y:_0x35b0a5}=_0x4cc987,{x:_0x1e7186,y:_0xdfd605}=_0x3a0686;return{'left':_0x464859,'top':_0x35b0a5,'width':_0x1e7186-_0x464859,'height':_0xdfd605-_0x35b0a5};}['_getScale'](){const _0x205e05=_0x23037e,{scaleX:_0x45a6a9,scaleY:_0x5ab2d8}=this[_0x205e05(0x3ba)][_0x205e05(0x41a)]();return Math['max'](_0x45a6a9,_0x5ab2d8);}}var zi=Object[_0x23037e(0x2c0)],Ji=(_0x3586c9,_0x3e9427,_0xbeb77a,_0x49b7fb)=>{const _0x19a1c8=_0x23037e;for(var _0x299d5b=_0x49b7fb>0x1?void 0x0:_0x49b7fb?zi(_0x3e9427,_0xbeb77a):_0x3e9427,_0x57c78c=_0x3586c9[_0x19a1c8(0x285)]-0x1,_0x3e93ab;_0x57c78c>=0x0;_0x57c78c--)(_0x3e93ab=_0x3586c9[_0x57c78c])&&(_0x299d5b=_0x3e93ab(_0x299d5b)||_0x299d5b);return _0x299d5b;},ie=(_0x4b264e,_0x48d0d4)=>(_0x5efe64,_0x3f9673)=>_0x48d0d4(_0x5efe64,_0x3f9673,_0x4b264e);let ye=class extends _0x1d3622{constructor(_0xae7e3a,_0x56f763,_0x3d5cbe,_0x58e826,_0x550f98){const _0x4bebb4=_0x23037e;super(),l(this,_0x4bebb4(0x307),[]),l(this,_0x4bebb4(0x423),[]),(this[_0x4bebb4(0x35f)]=_0xae7e3a,this['_docSkeletonManagerService']=_0x56f763,this[_0x4bebb4(0x2f4)]=_0x3d5cbe,this[_0x4bebb4(0x2d6)]=_0x58e826,this[_0x4bebb4(0x20f)]=_0x550f98,this[_0x4bebb4(0x2f5)]());}[_0x23037e(0x2f5)](){const _0x5e987c=_0x23037e,_0x159905=this[_0x5e987c(0x35f)][_0x5e987c(0x26b)],_0x422790=this['_docSkeletonManagerService'];this[_0x5e987c(0x2b4)](_0x4625a1([this[_0x5e987c(0x2f4)][_0x5e987c(0x3c2)](_0x159905),this[_0x5e987c(0x20f)][_0x5e987c(0x3d1)]])[_0x5e987c(0x277)](_0x43594e(([_0x51dd7a,_0x149c46])=>({'skeleton':_0x422790[_0x5e987c(0x2eb)](),'cursors':[..._0x51dd7a[_0x5e987c(0x2e3)]()][_0x5e987c(0x37f)](_0x5369e3=>({..._0x5369e3,'color':this[_0x5e987c(0x20f)][_0x5e987c(0x355)](_0x5369e3['color'])}))})))[_0x5e987c(0x286)](_0x2653a8=>{const _0x33c533=_0x5e987c;if(this[_0x33c533(0x2ce)](),_0x2653a8){const {skeleton:_0x448dbe,cursors:_0x22e1d2}=_0x2653a8;this['_updateCollabCursors'](_0x448dbe,_0x22e1d2);}})),this[_0x5e987c(0x3e0)](),this[_0x5e987c(0x28c)]();}[_0x23037e(0x381)](_0x3b903c,_0x102e48){const _0x338188=_0x23037e,{scene:_0x5997e8,mainComponent:_0x2dc74e}=this['_context'],_0x3b2c76=_0x102e48[_0x338188(0x218)](_0x516413=>new nt(_0x516413,_0x5997e8,_0x3b903c,_0x2dc74e));this[_0x338188(0x307)]=_0x3b2c76,this[_0x338188(0x423)]=_0x102e48;}[_0x23037e(0x397)](){const _0x419bb1=_0x23037e;this['_removeCollabCursors']();const {scene:_0x1552a3,mainComponent:_0x38c2bd}=this[_0x419bb1(0x35f)],_0x3e6df0=this[_0x419bb1(0x337)][_0x419bb1(0x2eb)](),_0x51017f=this[_0x419bb1(0x423)]['map'](_0x833a76=>new nt(_0x833a76,_0x1552a3,_0x3e6df0,_0x38c2bd));this[_0x419bb1(0x307)]=_0x51017f;}[_0x23037e(0x2ce)](){const _0x20e666=_0x23037e;this[_0x20e666(0x307)][_0x20e666(0x342)](_0x3935e6=>_0x3935e6[_0x20e666(0x3b4)]()),this['_cursorShapes']=[];}[_0x23037e(0x28c)](){const _0xacc1c8=_0x23037e,_0x493a96=[_0x41542c['id']];this[_0xacc1c8(0x2b4)](this[_0xacc1c8(0x2d6)]['onCommandExecuted'](_0x3c9d77=>{const _0x511654=_0xacc1c8;_0x493a96['includes'](_0x3c9d77['id'])&&_0x3c9d77[_0x511654(0x3dd)][_0x511654(0x26b)]===this['_context'][_0x511654(0x26b)]&&this[_0x511654(0x397)]();}));}[_0x23037e(0x3e0)](){const _0x9e2b2d=_0x23037e;this[_0x9e2b2d(0x2b4)](_0x40819d(this[_0x9e2b2d(0x35f)][_0x9e2b2d(0x288)][_0x9e2b2d(0x2a1)])['pipe'](_0x11482a(_0xb32a=>_0xb32a[_0x9e2b2d(0x228)]===_0x397d4d['resize']),_0xda8cfa(0x10))[_0x9e2b2d(0x286)](()=>{const _0x95fdbe=_0x9e2b2d;this[_0x95fdbe(0x397)]();}));}};ye=Ji([ie(0x1,_0x57b7af(_0x3f62c8)),ie(0x2,_0x57b7af(H)),ie(0x3,_0x409061),ie(0x4,_0x57b7af(_0xd8aa5f))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x403c8d{constructor(_0x2e1deb,_0x5c9334){const _0x236a27=_0x23037e;super(_0x2e1deb,_0x5c9334),l(this,_0x236a27(0x274)),l(this,'_hovered',!0x1),l(this,_0x236a27(0x29c)),l(this,_0x236a27(0x393),''),l(this,_0x236a27(0x417),'top'),l(this,_0x236a27(0x314)),(_0x5c9334&&this[_0x236a27(0x221)](_0x5c9334),this[_0x236a27(0x3e2)][_0x236a27(0x3ac)](()=>this[_0x236a27(0x221)]({'hovered':!0x0})),this[_0x236a27(0x2cd)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x23037e(0x221)](_0xef4783){const _0x5effc0=_0x23037e;var _0x22325b,_0x2db6ea,_0x4dc631,_0x1cea26,_0x33c174,_0x19fa7d;this[_0x5effc0(0x274)]=(_0x22325b=_0xef4783[_0x5effc0(0x205)])!=null?_0x22325b:this[_0x5effc0(0x274)],this[_0x5effc0(0x40a)]=(_0x2db6ea=_0xef4783['hovered'])!=null?_0x2db6ea:this[_0x5effc0(0x40a)],this['_range']=(_0x4dc631=_0xef4783[_0x5effc0(0x3f4)])!=null?_0x4dc631:this[_0x5effc0(0x29c)],this[_0x5effc0(0x393)]=(_0x1cea26=_0xef4783[_0x5effc0(0x33f)])!=null?_0x1cea26:this[_0x5effc0(0x393)],this[_0x5effc0(0x417)]=(_0x33c174=_0xef4783[_0x5effc0(0x1f9)])!=null?_0x33c174:this[_0x5effc0(0x417)],this['_backgroundColor']=(_0x19fa7d=_0xef4783[_0x5effc0(0x2ae)])!=null?_0x19fa7d:this[_0x5effc0(0x314)],this[_0x5effc0(0x264)]({'width':_0xef4783[_0x5effc0(0x292)],'height':_0xef4783[_0x5effc0(0x296)]});}[_0x23037e(0x223)](_0x1d3043){const _0x169e49=_0x23037e,{row:_0x1f4fdb,column:_0x457b37}=_0x1d3043;if(_0x1f4fdb>=this[_0x169e49(0x29c)]['startRow']&&_0x1f4fdb<=this['_range'][_0x169e49(0x32a)]&&_0x457b37>=this[_0x169e49(0x29c)][_0x169e49(0x3df)]&&_0x457b37<=this['_range'][_0x169e49(0x20c)]){this[_0x169e49(0x221)]({'hovered':!0x0});return;}this[_0x169e49(0x221)]({'hovered':!0x1});}['triggerDblclick'](_0x291357){return!0x1;}[_0x23037e(0x25f)](_0x3ae883){const _0x43a2b6=_0x23037e;_0x13c2ec[_0x43a2b6(0x23a)](_0x3ae883,{'width':this[_0x43a2b6(0x292)],'height':this[_0x43a2b6(0x296)],'strokeWidth':Qi,'stroke':this[_0x43a2b6(0x274)],'evented':!0x1,'fill':this[_0x43a2b6(0x314)]}),this['_hovered']&&(_0x3ae883['save'](),_0x3ae883[_0x43a2b6(0x233)](0x1,0x0,0x0,0x1,this[_0x43a2b6(0x292)],this[_0x43a2b6(0x417)]===_0x43a2b6(0x2fd)?0x0:-Q),me[_0x43a2b6(0x23a)](_0x3ae883,{'text':this[_0x43a2b6(0x393)],'color':this[_0x43a2b6(0x274)]}),_0x3ae883[_0x43a2b6(0x2dd)]());}}var en=Object['getOwnPropertyDescriptor'],tn=(_0x2d5e57,_0x494a9b,_0x5dc82a,_0x460a5d)=>{const _0x72fac4=_0x23037e;for(var _0x3464f3=_0x460a5d>0x1?void 0x0:_0x460a5d?en(_0x494a9b,_0x5dc82a):_0x494a9b,_0x15d02c=_0x2d5e57[_0x72fac4(0x285)]-0x1,_0x5b8b68;_0x15d02c>=0x0;_0x15d02c--)(_0x5b8b68=_0x2d5e57[_0x15d02c])&&(_0x3464f3=_0x5b8b68(_0x3464f3)||_0x3464f3);return _0x3464f3;},Ce=(_0x3dfc0c,_0x2dfd87)=>(_0x3d8cba,_0x2ab433)=>_0x2dfd87(_0x3d8cba,_0x2ab433,_0x3dfc0c);const sn=0x1389;let $e=class extends _0x1d3622{constructor(_0xf46e82,_0x1749c2,_0x4cea9a,_0x2ce172){const _0x5dc29f=_0x23037e;super(),l(this,'_cursors',new Set()),l(this,_0x5dc29f(0x392),null),(this[_0x5dc29f(0x35f)]=_0xf46e82,this[_0x5dc29f(0x3a4)]=_0x1749c2,this[_0x5dc29f(0x2f4)]=_0x4cea9a,this[_0x5dc29f(0x20f)]=_0x2ce172,this[_0x5dc29f(0x2f5)]());}[_0x23037e(0x2f5)](){const _0x12925a=_0x23037e;this[_0x12925a(0x3a4)][_0x12925a(0x358)][_0x12925a(0x277)](_0x62c4b1(this[_0x12925a(0x388)]),_0x18725f(_0x163947=>{const _0x59a0aa=_0x12925a;if(_0x163947){const _0x58f288=_0x163947['sheetId'];return _0x4625a1(this['_collabCursorController']['getCollabCursors$'](this[_0x59a0aa(0x35f)][_0x59a0aa(0x26b)]),this[_0x59a0aa(0x20f)]['currentTheme$'])[_0x59a0aa(0x277)](_0x43594e(([_0x50224c,_0x48ceeb])=>{const _0x50c153=_0x59a0aa,_0x1cf561=new Map();return _0x50224c[_0x50c153(0x342)]((_0x38324b,_0x51e38f)=>{const _0x576f01=_0x50c153;if(_0x38324b[_0x576f01(0x3f3)]===_0x58f288){const _0x4ea3bd={..._0x38324b};_0x4ea3bd[_0x576f01(0x205)]=this[_0x576f01(0x20f)][_0x576f01(0x355)](_0x38324b[_0x576f01(0x205)]),_0x1cf561[_0x576f01(0x2a0)](_0x51e38f,_0x4ea3bd);}}),{'skeleton':_0x163947,'cursors':_0x1cf561};}));}return _0x53144c({'skeleton':null,'cursors':new Map()});}))[_0x12925a(0x286)](({skeleton:_0x40a96a,cursors:_0xbc5ea5})=>{const _0x121dc8=_0x12925a;this[_0x121dc8(0x2ce)](),_0x40a96a&&this[_0x121dc8(0x381)](_0x40a96a,_0xbc5ea5);}),this['_sheetSkeletonManagerService'][_0x12925a(0x358)][_0x12925a(0x286)](_0x5fb810=>{const _0x5b4877=_0x12925a;if(_0x5fb810==null)return;const {skeleton:_0x32582e}=_0x5fb810,{scene:_0x4a63b2}=this[_0x5b4877(0x35f)];_0x4a63b2[_0x5b4877(0x2b7)]['subscribeEvent'](_0x16545f(_0xb8bbd0=>{const _0x6ef6b1=_0x5b4877;var _0x5efa80,_0x3b070f;const {offsetX:_0x31eaf4,offsetY:_0x524d0a}=_0xb8bbd0,{x:_0x2b8010,y:_0x4b4834}=_0x4a63b2[_0x6ef6b1(0x273)](_0x14908a[_0x6ef6b1(0x37e)]([_0x31eaf4,_0x524d0a])),{scaleX:_0x574616,scaleY:_0x5abc44}=_0x4a63b2[_0x6ef6b1(0x41a)](),_0x4cf0d7=_0x4a63b2['getViewport'](_0x17ae79['VIEW_MAIN']),_0x2cf4ce=_0x4a63b2['getVpScrollXYInfoByPosToVp'](_0x14908a['FromArray']([_0x2b8010,_0x4b4834]),_0x4cf0d7),_0x542e82=_0x32582e[_0x6ef6b1(0x2ad)](_0x31eaf4,_0x524d0a,_0x574616,_0x5abc44,_0x2cf4ce);((_0x5efa80=this[_0x6ef6b1(0x392)])==null?void 0x0:_0x5efa80[_0x6ef6b1(0x308)])===_0x542e82['column']&&((_0x3b070f=this['_lastPointer'])==null?void 0x0:_0x3b070f[_0x6ef6b1(0x1f3)])===_0x542e82['row']||this[_0x6ef6b1(0x423)][_0x6ef6b1(0x342)](_0xe234bd=>{const _0x5ba8ad=_0x6ef6b1;_0xe234bd[_0x5ba8ad(0x223)](_0x542e82);});},0x64));});}['_updateCollabCursors'](_0x49318c,_0x59d643){const _0x433e76=_0x23037e;var _0x499c2d;const _0x8f6e7c=(_0x499c2d=this[_0x433e76(0x3a4)][_0x433e76(0x25d)]())==null?void 0x0:_0x499c2d[_0x433e76(0x407)];if(!_0x8f6e7c)return;const _0x5d222a=this[_0x433e76(0x29b)]();if(!_0x5d222a)return;this[_0x433e76(0x423)][_0x433e76(0x342)](_0x12c802=>{_0x12c802['makeDirty']();});const {scene:_0x132c86}=_0x5d222a,_0xc4c84=nn(Array[_0x433e76(0x406)](_0x59d643['values']()))[_0x433e76(0x218)](_0x2112b4=>{const _0x4ab023=_0x433e76,{color:_0x121a90,range:_0x3af398,name:_0x5d8ec6,selection:_0x4df783,sheetID:_0x5da5cb}=_0x2112b4,{startColumn:_0x1c01ed,startRow:_0x53a284,endColumn:_0x17a1f2,endRow:_0x2bd90f}=_0x3af398,_0x9f2417=_0x421831(_0x53a284,_0x1c01ed,_0x132c86,_0x8f6e7c),_0x144502=_0x421831(_0x2bd90f,_0x17a1f2,_0x132c86,_0x8f6e7c),{columnHeaderHeightAndMarginTop:_0xa4ebd1}=_0x8f6e7c,{startX:_0xc09eb4,startY:_0x136f06}=_0x9f2417,{endX:_0x678631,endY:_0xe01780}=_0x144502,_0x51b8a3=_0x678631-_0xc09eb4,_0x2b48c2=_0xe01780-_0x136f06,_0x13de46={'labelPosition':_0x136f06-_0xa4ebd1>=Q?_0x4ab023(0x3ee):_0x4ab023(0x2fd),'sheetID':_0x5da5cb,'range':_0x3af398,'color':_0x121a90,'name':_0x5d8ec6,'selection':_0x4df783,'left':_0xc09eb4,'top':_0x136f06,'width':_0x51b8a3,'height':_0x2b48c2,'evented':!0x1,'zIndex':sn};return new qi(_0x5d8ec6,_0x13de46);});_0x132c86['addObjects'](_0xc4c84,Zi),this[_0x433e76(0x423)]=new Set(_0xc4c84);}[_0x23037e(0x2ce)](){const _0x301876=_0x23037e;var _0xe11171;(_0xe11171=this[_0x301876(0x423)])==null||_0xe11171['forEach'](_0x19d2e5=>_0x19d2e5['dispose']());}[_0x23037e(0x29b)](){const _0x1eb60f=_0x23037e;return _0x473f43(this[_0x1eb60f(0x35f)][_0x1eb60f(0x2a9)],this[_0x1eb60f(0x35f)]);}};$e=tn([Ce(0x1,_0x57b7af(_0x45795e)),Ce(0x2,_0x57b7af(H)),Ce(0x3,_0x57b7af(_0xd8aa5f))],$e);function nn(_0x388a6b){const _0x40433e=_0x23037e,_0x490b5f=new Map();return _0x388a6b[_0x40433e(0x342)](_0x2c20d5=>{const _0x288899=_0x40433e;if(_0x490b5f[_0x288899(0x239)](_0x2c20d5[_0x288899(0x37a)])){const _0x1e646e=_0x490b5f[_0x288899(0x2d3)](_0x2c20d5[_0x288899(0x37a)]);_0x1e646e[_0x288899(0x33f)]+=',\x20'+_0x2c20d5[_0x288899(0x33f)];}else _0x490b5f[_0x288899(0x2a0)](_0x2c20d5['selection'],_0x2c20d5);}),Array[_0x40433e(0x406)](_0x490b5f[_0x40433e(0x2e3)]());}var rn=Object[_0x23037e(0x2c0)],on=(_0x274509,_0x5c87a8,_0x219296,_0x4bf674)=>{const _0x9720d4=_0x23037e;for(var _0x139c71=_0x4bf674>0x1?void 0x0:_0x4bf674?rn(_0x5c87a8,_0x219296):_0x5c87a8,_0x27a9f2=_0x274509[_0x9720d4(0x285)]-0x1,_0x4b4304;_0x27a9f2>=0x0;_0x27a9f2--)(_0x4b4304=_0x274509[_0x27a9f2])&&(_0x139c71=_0x4b4304(_0x139c71)||_0x139c71);return _0x139c71;},F=(_0x346cb3,_0x44867a)=>(_0x3e8851,_0x4f31d9)=>_0x44867a(_0x3e8851,_0x4f31d9,_0x346cb3);let ce=class extends _0x2adf18{constructor(_0x37fc0b,_0x5d6127,_0xefc9e4,_0x60744c,_0x37da5a,_0x16a3f7){const _0x518c5f=_0x23037e;super(),this[_0x518c5f(0x1f1)]=_0x37fc0b,this[_0x518c5f(0x311)]=_0x5d6127,this[_0x518c5f(0x3d6)]=_0xefc9e4,this[_0x518c5f(0x426)]=_0x60744c,this[_0x518c5f(0x2a7)]=_0x37da5a,this[_0x518c5f(0x259)]=_0x16a3f7,this[_0x518c5f(0x303)](),this[_0x518c5f(0x210)]();}[_0x23037e(0x303)](){const _0x4fb93a=_0x23037e;this['disposeWithMe'](this[_0x4fb93a(0x1f1)][_0x4fb93a(0x396)](()=>{const _0x571f69=_0x4fb93a;if(this['_localCacheService'][_0x571f69(0x347)][_0x571f69(0x3f1)])return this[_0x571f69(0x259)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x23037e(0x210)](){const _0xd1628b=_0x23037e;this[_0xd1628b(0x2b4)](this[_0xd1628b(0x3d6)][_0xd1628b(0x33c)]['subscribe'](_0x26804f=>{const _0x30758c=_0xd1628b;_0x26804f['id']===_0x595d90[_0x30758c(0x298)]&&this[_0x30758c(0x426)]['show']({'type':_0x38ce13[_0x30758c(0x2f7)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x38d))}),_0x26804f['id']===_0x595d90[_0x30758c(0x263)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13[_0x30758c(0x2f7)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x31e))}),_0x26804f['id']===_0x595d90[_0x30758c(0x419)]&&this['_notificationService'][_0x30758c(0x327)]({'title':this[_0x30758c(0x259)]['t']('permission.title'),'content':this['_localeService']['t'](_0x30758c(0x28b)),'type':_0x30758c(0x2e5),'duration':0x0}),_0x26804f['id']===_0x595d90[_0x30758c(0x20a)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13['Error'],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x31e))+'('+_0x26804f[_0x30758c(0x30d)]+')'}),_0x26804f['id']===_0x595d90[_0x30758c(0x26e)]&&this['_messageService'][_0x30758c(0x327)]({'type':_0x38ce13[_0x30758c(0x2f7)],'content':this[_0x30758c(0x259)]['t'](_0x26804f['data']||'')}),_0x26804f['id']===_0x595d90[_0x30758c(0x3e5)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13['Warning'],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x2b5))}),_0x26804f['id']===_0x595d90[_0x30758c(0x23e)]&&this[_0x30758c(0x426)]['show']({'type':_0x38ce13[_0x30758c(0x248)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x2ff))}),_0x26804f['id']===_0x595d90[_0x30758c(0x3de)]&&this[_0x30758c(0x426)][_0x30758c(0x327)]({'type':_0x38ce13[_0x30758c(0x248)],'content':this[_0x30758c(0x259)]['t'](_0x30758c(0x3c6))});}));}};ce=on([F(0x0,_0x282c8c),F(0x1,_0x2c165a),F(0x2,_0x57b7af(_0xf10605)),F(0x3,_0x92c012),F(0x4,_0x1c9405),F(0x5,_0x57b7af(_0x23ab5c))],ce);const an='collaboration-client-ui.config',rt={};var cn=Object[_0x23037e(0x2c0)],_n=(_0x2a8230,_0x2ba569,_0x220f46,_0x2845b5)=>{const _0x576f84=_0x23037e;for(var _0x52e6ad=_0x2845b5>0x1?void 0x0:_0x2845b5?cn(_0x2ba569,_0x220f46):_0x2ba569,_0x532231=_0x2a8230[_0x576f84(0x285)]-0x1,_0x1713d9;_0x532231>=0x0;_0x532231--)(_0x1713d9=_0x2a8230[_0x532231])&&(_0x52e6ad=_0x1713d9(_0x52e6ad)||_0x52e6ad);return _0x52e6ad;},ot=(_0x2ee758,_0x1918bc)=>(_0x292022,_0x6e7bb6)=>_0x1918bc(_0x292022,_0x6e7bb6,_0x2ee758);let _e=class{constructor(_0x2019cb,_0x4ba0ef){const _0x41228f=_0x23037e;this[_0x41228f(0x237)]=_0x2019cb,this['_renderManagerService']=_0x4ba0ef;}[_0x23037e(0x2cf)](_0x442675){const _0x15951d=_0x23037e;this[_0x15951d(0x1fc)](_0x442675),this[_0x15951d(0x24d)](_0x442675);}[_0x23037e(0x3bd)](_0x45f438){const _0x59c306=_0x23037e,{unitID:_0x348868}=_0x45f438,_0x48f6af=this['_renderManagerService']['getRenderById'](_0x348868)[_0x59c306(0x3bf)](_0x1b1e78),{redoCache:_0x2c6d93}=_0x48f6af[_0x59c306(0x323)]();if(_0x2c6d93['length']===0x0)return _0x45f438;let _0x473ff1=_0x4466a1[_0x59c306(0x2bc)](_0x45f438['mutations'][0x0]);for(let _0x8cbf60=0x0;_0x8cbf60<_0x2c6d93[_0x59c306(0x285)];_0x8cbf60++){const _0x28d74f={'id':_0x59c306(0x34c),'params':{..._0x2c6d93[_0x8cbf60]}},_0x529f9a=this[_0x59c306(0x237)][_0x59c306(0x41e)](_0x473ff1,_0x28d74f,!0x1);if(_0x3d5424(_0x529f9a))throw _0x529f9a[_0x59c306(0x2e5)];_0x473ff1=_0x529f9a[_0x59c306(0x297)];}return{..._0x4466a1[_0x59c306(0x2bc)](_0x45f438),'mutations':[_0x473ff1]};}[_0x23037e(0x1fc)](_0x335a92){const _0x3a0369=_0x23037e,{unitID:_0x67964}=_0x335a92,_0x5ef075=this[_0x3a0369(0x257)][_0x3a0369(0x3b1)](_0x67964)[_0x3a0369(0x3bf)](_0x1b1e78),{undoCache:_0x1cfe84,redoCache:_0x48a534}=_0x5ef075[_0x3a0369(0x323)]();if(_0x1cfe84[_0x3a0369(0x285)]===0x0||_0x48a534[_0x3a0369(0x285)]===0x0)return;const _0x4c4d3e=[],_0x221d3c=[];let _0x1b4cab=_0x4466a1[_0x3a0369(0x2bc)](_0x335a92[_0x3a0369(0x312)][0x0]),_0x1be332=_0x4466a1[_0x3a0369(0x2bc)](_0x335a92[_0x3a0369(0x312)][0x0]);for(let _0x3adf74=_0x1cfe84[_0x3a0369(0x285)]-0x1;_0x3adf74>=0x0;_0x3adf74--){const _0x3f6307={'id':_0x3a0369(0x34c),'params':{..._0x1cfe84[_0x3adf74]}},_0x51b29b={'id':_0x3a0369(0x34c),'params':{..._0x48a534[_0x3adf74]}},_0x3db805=this['_transformService'][_0x3a0369(0x41e)](_0x1b4cab,_0x3f6307,!0x1),_0x5ef8f5=this[_0x3a0369(0x237)][_0x3a0369(0x41e)](_0x1be332,_0x51b29b,!0x1);if(_0x3d5424(_0x3db805))throw _0x3db805['error'];if(_0x3d5424(_0x5ef8f5))throw _0x5ef8f5['error'];_0x4c4d3e[_0x3a0369(0x306)](_0x3db805[_0x3a0369(0x329)][_0x3a0369(0x3dd)]),_0x221d3c['unshift'](_0x5ef8f5['m2Prime']['params']),_0x1b4cab=_0x3db805[_0x3a0369(0x297)],_0x1be332=_0x5ef8f5[_0x3a0369(0x297)];}_0x5ef075[_0x3a0369(0x38b)]({'undoCache':_0x4c4d3e,'redoCache':_0x221d3c});}[_0x23037e(0x24d)](_0xba5ad1){const _0x2bd5e0=_0x23037e,{unitID:_0x4eff07}=_0xba5ad1,_0x53758c=this['_renderManagerService'][_0x2bd5e0(0x3b1)](_0x4eff07)[_0x2bd5e0(0x3bf)](_0x1b1e78),_0x4eb7c7=_0x53758c[_0x2bd5e0(0x27d)]();if(_0x4eb7c7==null)return;const _0x2e2be5=[{'id':_0x2bd5e0(0x34c),'params':{'unitId':_0xba5ad1['unitID'],'actions':null,'textRanges':[_0x4eb7c7]}}],_0x3debef=this['_transformService']['transformMutationsWithChangeset'](_0xba5ad1,_0x2e2be5);if(!_0x181dca(_0x3debef))throw _0x3debef[_0x2bd5e0(0x2e5)];const _0x121c61=_0x3debef[_0x2bd5e0(0x329)][0x0][_0x2bd5e0(0x3dd)][_0x2bd5e0(0x21b)];Array[_0x2bd5e0(0x2b0)](_0x121c61)&&_0x121c61['length']&&_0x53758c[_0x2bd5e0(0x35d)](_0x121c61[0x0]);}};_e=_n([ot(0x0,_0x459e0f),ot(0x1,_0x3947d8)],_e);var ln=Object[_0x23037e(0x2c0)],hn=(_0x4fabc2,_0x16c137,_0x5cd2d3,_0x3e148a)=>{for(var _0x471c96=_0x3e148a>0x1?void 0x0:_0x3e148a?ln(_0x16c137,_0x5cd2d3):_0x16c137,_0x22a572=_0x4fabc2['length']-0x1,_0x3f0e36;_0x22a572>=0x0;_0x22a572--)(_0x3f0e36=_0x4fabc2[_0x22a572])&&(_0x471c96=_0x3f0e36(_0x471c96)||_0x471c96);return _0x471c96;},Re=(_0x50470e,_0x248436)=>(_0x33d5d0,_0x24d630)=>_0x248436(_0x33d5d0,_0x24d630,_0x50470e);let le=class{constructor(_0x49689b,_0x17ffc8,_0x54bf51){const _0x3e3283=_0x23037e;this[_0x3e3283(0x1f8)]=_0x49689b,this[_0x3e3283(0x237)]=_0x17ffc8,this[_0x3e3283(0x3db)]=_0x54bf51;}[_0x23037e(0x2fa)](_0x13de27){this['_transformHistoryAndStateStack'](_0x13de27);}[_0x23037e(0x3bd)](_0x127780){const _0x372a4c=_0x23037e,{unitID:_0xedf17c}=_0x127780,{collaboration:_0x53bcf8}=this['_docStateChangeManagerService'][_0x372a4c(0x3cc)](_0xedf17c);if(_0x53bcf8[_0x372a4c(0x285)]===0x0)return _0x127780;let _0x31006e=_0x4466a1['deepClone'](_0x127780['mutations'][0x0]);for(let _0x3166f9=0x0;_0x3166f9<_0x53bcf8[_0x372a4c(0x285)];_0x3166f9++){const _0x550b53={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x53bcf8[_0x3166f9]['unitId'],..._0x53bcf8[_0x3166f9][_0x372a4c(0x339)]}},_0x1cc3f3=this[_0x372a4c(0x237)]['transformMutation'](_0x31006e,_0x550b53,!0x1);if(_0x3d5424(_0x1cc3f3))throw _0x1cc3f3[_0x372a4c(0x2e5)];_0x31006e=_0x1cc3f3['m1Prime'];}return{..._0x4466a1[_0x372a4c(0x2bc)](_0x127780),'mutations':[_0x31006e]};}[_0x23037e(0x3f2)](_0x37f771){const _0x270839=_0x23037e,{unitID:_0x3a78f9}=_0x37f771,{history:_0x562801,collaboration:_0x3bce0d}=this[_0x270839(0x3db)][_0x270839(0x3cc)](_0x3a78f9);if(_0x562801['length']===0x0&&_0x3bce0d[_0x270839(0x285)]===0x0)return;const _0x45d780=[],_0x4e1708=[];let _0x28eb58=_0x4466a1['deepClone'](_0x37f771['mutations'][0x0]),_0x44b320=_0x4466a1[_0x270839(0x2bc)](_0x37f771[_0x270839(0x312)][0x0]);for(let _0x3e8701=_0x562801[_0x270839(0x285)]-0x1;_0x3e8701>=0x0;_0x3e8701--){const _0x38dc47={'id':_0x270839(0x34c),'params':{'unitId':_0x562801[_0x3e8701][_0x270839(0x26b)],..._0x562801[_0x3e8701][_0x270839(0x361)]}},_0x5e4d17={'id':_0x270839(0x34c),'params':{'unitId':_0x562801[_0x3e8701][_0x270839(0x26b)],..._0x562801[_0x3e8701][_0x270839(0x339)]}},_0x1b74b8=this[_0x270839(0x237)][_0x270839(0x41e)](_0x28eb58,_0x38dc47,!0x1),_0x2b0e84=this[_0x270839(0x237)][_0x270839(0x41e)](_0x44b320,_0x5e4d17,!0x1);if(_0x3d5424(_0x1b74b8))throw _0x1b74b8[_0x270839(0x2e5)];if(_0x3d5424(_0x2b0e84))throw _0x2b0e84[_0x270839(0x2e5)];_0x45d780[_0x270839(0x306)]({..._0x562801[_0x3e8701],'undoState':_0x1b74b8[_0x270839(0x329)][_0x270839(0x3dd)],'redoState':_0x2b0e84[_0x270839(0x329)][_0x270839(0x3dd)]}),_0x28eb58=_0x1b74b8[_0x270839(0x297)],_0x44b320=_0x2b0e84[_0x270839(0x297)];}_0x28eb58=_0x4466a1[_0x270839(0x2bc)](_0x37f771[_0x270839(0x312)][0x0]),_0x44b320=_0x4466a1[_0x270839(0x2bc)](_0x37f771[_0x270839(0x312)][0x0]);for(let _0x14962c=_0x3bce0d['length']-0x1;_0x14962c>=0x0;_0x14962c--){const _0x18a62e={'id':_0x270839(0x34c),'params':{'unitId':_0x3bce0d[_0x14962c][_0x270839(0x26b)],..._0x3bce0d[_0x14962c][_0x270839(0x361)]}},_0x10853b={'id':_0x270839(0x34c),'params':{'unitId':_0x3bce0d[_0x14962c][_0x270839(0x26b)],..._0x3bce0d[_0x14962c][_0x270839(0x339)]}},_0x5928f0=this[_0x270839(0x237)][_0x270839(0x41e)](_0x28eb58,_0x18a62e,!0x1),_0x4547a0=this[_0x270839(0x237)][_0x270839(0x41e)](_0x44b320,_0x10853b,!0x1);if(_0x3d5424(_0x5928f0))throw _0x5928f0[_0x270839(0x2e5)];if(_0x3d5424(_0x4547a0))throw _0x4547a0['error'];_0x4e1708['unshift']({..._0x3bce0d[_0x14962c],'undoState':_0x5928f0[_0x270839(0x329)][_0x270839(0x3dd)],'redoState':_0x4547a0[_0x270839(0x329)][_0x270839(0x3dd)]}),_0x28eb58=_0x5928f0[_0x270839(0x297)],_0x44b320=_0x4547a0[_0x270839(0x297)];}this[_0x270839(0x3db)][_0x270839(0x2f1)](_0x3a78f9,{'history':_0x45d780,'collaboration':_0x4e1708});}};le=hn([Re(0x0,_0x57b7af(_0xc05c74)),Re(0x1,_0x459e0f),Re(0x2,_0x57b7af(_0x273172))],le);var un=Object[_0x23037e(0x2c0)],dn=(_0xa06d4d,_0x4e036e,_0x48a8a6,_0x5575d1)=>{const _0x1a2407=_0x23037e;for(var _0x595762=_0x5575d1>0x1?void 0x0:_0x5575d1?un(_0x4e036e,_0x48a8a6):_0x4e036e,_0x40c207=_0xa06d4d[_0x1a2407(0x285)]-0x1,_0x3e8181;_0x40c207>=0x0;_0x40c207--)(_0x3e8181=_0xa06d4d[_0x40c207])&&(_0x595762=_0x3e8181(_0x595762)||_0x595762);return _0x595762;},at=(_0x2e41d4,_0x50f324)=>(_0x6dc07e,_0x637e1e)=>_0x50f324(_0x6dc07e,_0x637e1e,_0x2e41d4);let he=class{constructor(_0x35997c,_0x3e66ba){const _0xd7624e=_0x23037e;this['_injector']=_0x35997c,this[_0xd7624e(0x237)]=_0x3e66ba;}[_0x23037e(0x39c)](_0x361cc7){const _0x2f6e17=_0x23037e;var _0x4811c6;const _0x5ee2f1=this[_0x2f6e17(0x1f8)][_0x2f6e17(0x2d3)](_0x4b96b6),_0x1a8bd6=(_0x4811c6=_0x5ee2f1[_0x2f6e17(0x1f5)]())!=null?_0x4811c6:[];if(_0x1a8bd6[_0x2f6e17(0x285)]===0x0)return;const _0x4b0aab=_0x361cc7['unitID'],_0x4c8132=[{'id':_0x2f6e17(0x34c),'params':{'unitId':_0x4b0aab,'actions':null,'textRanges':_0x1a8bd6}}],_0x501fe4=this[_0x2f6e17(0x237)]['transformMutationsWithChangeset'](_0x361cc7,_0x4c8132);if(!_0x181dca(_0x501fe4))throw _0x501fe4[_0x2f6e17(0x2e5)];const _0x39ff59=_0x501fe4[_0x2f6e17(0x329)][0x0][_0x2f6e17(0x3dd)][_0x2f6e17(0x21b)];Array[_0x2f6e17(0x2b0)](_0x39ff59)&&_0x39ff59[_0x2f6e17(0x285)]&&_0x5ee2f1[_0x2f6e17(0x258)](_0x39ff59,{'unitId':_0x4b0aab,'subUnitId':_0x4b0aab},!0x1);}};he=dn([at(0x0,_0x57b7af(_0xc05c74)),at(0x1,_0x459e0f)],he);var Sn=Object[_0x23037e(0x2c0)],In=(_0xa47c3b,_0x42b508,_0x3e2b87,_0x8024e4)=>{const _0x41f945=_0x23037e;for(var _0x4aa7cf=_0x8024e4>0x1?void 0x0:_0x8024e4?Sn(_0x42b508,_0x3e2b87):_0x42b508,_0x53ef59=_0xa47c3b[_0x41f945(0x285)]-0x1,_0x184a68;_0x53ef59>=0x0;_0x53ef59--)(_0x184a68=_0xa47c3b[_0x53ef59])&&(_0x4aa7cf=_0x184a68(_0x4aa7cf)||_0x4aa7cf);return _0x4aa7cf;},b=(_0x977ac3,_0x1249b9)=>(_0x35a4f2,_0x147bbe)=>_0x1249b9(_0x35a4f2,_0x147bbe,_0x977ac3);let ue=class extends _0x2adf18{constructor(_0x3f0dac,_0xab955d,_0x2bbf1,_0xb6f0fb,_0x4a925a,_0x3acb75,_0x5734cc,_0xaf1509){const _0x10d5bc=_0x23037e;super(),l(this,_0x10d5bc(0x352),new _0x107cff(_0x2bd07a[_0x10d5bc(0x3f5)])),(this['_docStateChangeManagerService']=_0x3f0dac,this[_0x10d5bc(0x3c7)]=_0xab955d,this[_0x10d5bc(0x208)]=_0x2bbf1,this[_0x10d5bc(0x40d)]=_0xb6f0fb,this[_0x10d5bc(0x34f)]=_0x4a925a,this[_0x10d5bc(0x2b6)]=_0x3acb75,this['_messageService']=_0x5734cc,this['_localeService']=_0xaf1509,this[_0x10d5bc(0x2c5)]());}[_0x23037e(0x2c5)](){const _0x34bf93=_0x23037e;this['disposeWithMe'](this[_0x34bf93(0x3c7)][_0x34bf93(0x349)][_0x34bf93(0x286)](_0x4d0c20=>{const _0x523c6b=_0x34bf93,_0x25b2ff=this[_0x523c6b(0x3db)][_0x523c6b(0x348)][_0x523c6b(0x286)](_0x3dac2f=>{const _0x5e17e6=_0x523c6b;if(_0x3dac2f==null)return;const {unitId:_0x345c32,redoState:_0x1ab877,commandId:_0x30ee06}=_0x3dac2f;if(_0x345c32!==_0x4d0c20[_0x5e17e6(0x256)])return;const _0x1cf2a6={'id':_0x30ee06,'type':_0x3a1dbc[_0x5e17e6(0x333)],'params':{'unitId':_0x345c32,'actions':_0x1ab877['actions'],'textRanges':null}};_0x4d0c20[_0x5e17e6(0x231)](_0x1cf2a6);});if(_0x4d0c20['disposeWithMe'](_0x25b2ff),_0x4d0c20 instanceof _0x5abbf2){const _0x515b86={'onTransformIME':_0x4aaf85=>this[_0x523c6b(0x208)][_0x523c6b(0x2cf)](_0x4aaf85),'onTransformState':_0x249f51=>this[_0x523c6b(0x40d)]['transformStateCache'](_0x249f51),'onTransformSelections':_0x54b0ee=>this['_docTransformSelectionsService'][_0x523c6b(0x39c)](_0x54b0ee),'onSyncEditingCollabCursor':_0x448152=>this[_0x523c6b(0x2b6)][_0x523c6b(0x35c)](_0x448152),'onTransformRemoteChangesetByIMECache':_0x425d56=>this['_docTransformIMECacheService'][_0x523c6b(0x3bd)](_0x425d56),'onTransformRemoteChangesetByStateCache':_0xc4e933=>this[_0x523c6b(0x40d)][_0x523c6b(0x3bd)](_0xc4e933)};_0x4d0c20['addHandlerCallback'](_0x515b86);}}));}};ue=In([b(0x0,_0x57b7af(_0x273172)),b(0x1,_0x57b7af(_0x2c7817)),b(0x2,_0x57b7af(_e)),b(0x3,_0x57b7af(le)),b(0x4,_0x57b7af(he)),b(0x5,_0x57b7af(Xe)),b(0x6,_0x92c012),b(0x7,_0x57b7af(_0x23ab5c))],ue);var Z=(_0x2b59fd=>(_0x2b59fd[_0x2b59fd[_0x23037e(0x2bd)]=0x0]=_0x23037e(0x2bd),_0x2b59fd[_0x2b59fd['OK']=0x1]='OK',_0x2b59fd[_0x2b59fd[_0x23037e(0x3ff)]=0x2]=_0x23037e(0x3ff),_0x2b59fd[_0x2b59fd[_0x23037e(0x419)]=0x3]='PERMISSION_DENIED',_0x2b59fd[_0x2b59fd[_0x23037e(0x235)]=0x4]=_0x23037e(0x235),_0x2b59fd[_0x2b59fd['UNAUTHENTICATED']=0x5]=_0x23037e(0x2ba),_0x2b59fd[_0x2b59fd[_0x23037e(0x2da)]=0x6]='ALREADY_EXISTS',_0x2b59fd[_0x2b59fd[_0x23037e(0x354)]=0x7]='INVALID_ARGUMENT',_0x2b59fd[_0x2b59fd[_0x23037e(0x2fb)]=0x8]='TOO_MANY_REQUESTS',_0x2b59fd[_0x2b59fd[_0x23037e(0x226)]=0x9]=_0x23037e(0x226),_0x2b59fd[_0x2b59fd[_0x23037e(0x384)]=0xa]=_0x23037e(0x384),_0x2b59fd[_0x2b59fd['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x23037e(0x420),_0x2b59fd[_0x2b59fd[_0x23037e(0x3c8)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2b59fd[_0x2b59fd['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x23037e(0x1fa),_0x2b59fd[_0x2b59fd['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x23037e(0x3b5),_0x2b59fd[_0x2b59fd[_0x23037e(0x379)]=0xf]=_0x23037e(0x379),_0x2b59fd[_0x2b59fd['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x23037e(0x287),_0x2b59fd[_0x2b59fd[_0x23037e(0x35e)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2b59fd[_0x2b59fd[_0x23037e(0x3af)]=0x65]=_0x23037e(0x3af),_0x2b59fd[_0x2b59fd['USER_NOT_FOUND']=0xc9]=_0x23037e(0x387),_0x2b59fd[_0x2b59fd[_0x23037e(0x245)]=0xca]=_0x23037e(0x245),_0x2b59fd[_0x2b59fd[_0x23037e(0x350)]=0x1389]=_0x23037e(0x350),_0x2b59fd[_0x2b59fd[_0x23037e(0x37c)]=0x1771]=_0x23037e(0x37c),_0x2b59fd[_0x2b59fd[_0x23037e(0x229)]=0x1772]=_0x23037e(0x229),_0x2b59fd[_0x2b59fd[_0x23037e(0x391)]=0x1773]=_0x23037e(0x391),_0x2b59fd[_0x2b59fd[_0x23037e(0x336)]=0x1b59]=_0x23037e(0x336),_0x2b59fd[_0x2b59fd[_0x23037e(0x281)]=0x1b5a]=_0x23037e(0x281),_0x2b59fd[_0x2b59fd[_0x23037e(0x2d7)]=0x1b5b]=_0x23037e(0x2d7),_0x2b59fd[_0x2b59fd[_0x23037e(0x2ac)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2b59fd[_0x2b59fd[_0x23037e(0x317)]=0x1b5d]=_0x23037e(0x317),_0x2b59fd[_0x2b59fd[_0x23037e(0x401)]=0x1f41]=_0x23037e(0x401),_0x2b59fd[_0x2b59fd[_0x23037e(0x2b1)]=0x2329]=_0x23037e(0x2b1),_0x2b59fd[_0x2b59fd[_0x23037e(0x29d)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2b59fd[_0x2b59fd[_0x23037e(0x33b)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2b59fd[_0x2b59fd[_0x23037e(0x241)]=0x232c]=_0x23037e(0x241),_0x2b59fd[_0x2b59fd[_0x23037e(0x3c5)]=0x232d]=_0x23037e(0x3c5),_0x2b59fd[_0x2b59fd[_0x23037e(0x1fd)]=0x2711]=_0x23037e(0x1fd),_0x2b59fd[_0x2b59fd['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x23037e(0x27b),_0x2b59fd[_0x2b59fd[_0x23037e(0x32d)]=0x2713]=_0x23037e(0x32d),_0x2b59fd[_0x2b59fd[_0x23037e(0x3d7)]=0x2714]=_0x23037e(0x3d7),_0x2b59fd[_0x2b59fd['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x23037e(0x207),_0x2b59fd[_0x2b59fd[_0x23037e(0x2a8)]=0x271b]=_0x23037e(0x2a8),_0x2b59fd[_0x2b59fd[_0x23037e(0x25c)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2b59fd[_0x2b59fd[_0x23037e(0x2df)]=0x271d]=_0x23037e(0x2df),_0x2b59fd[_0x2b59fd[_0x23037e(0x3bb)]=0x271e]=_0x23037e(0x3bb),_0x2b59fd[_0x2b59fd[_0x23037e(0x23b)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x2b59fd[_0x2b59fd[_0x23037e(0x378)]=0x2720]=_0x23037e(0x378),_0x2b59fd[_0x2b59fd[_0x23037e(0x22c)]=0x2af9]=_0x23037e(0x22c),_0x2b59fd[_0x2b59fd[_0x23037e(0x3d5)]=0x2ee1]=_0x23037e(0x3d5),_0x2b59fd[_0x2b59fd['INVALID_INVITE_CODE']=0x2ee2]=_0x23037e(0x343),_0x2b59fd[_0x2b59fd[_0x23037e(0x3cf)]=0x2ee3]=_0x23037e(0x3cf),_0x2b59fd[_0x2b59fd['USER_NOT_INVITED_CODE']=0x2ee4]=_0x23037e(0x344),_0x2b59fd[_0x2b59fd[_0x23037e(0x3c3)]=0x2ee5]=_0x23037e(0x3c3),_0x2b59fd[_0x2b59fd[_0x23037e(0x247)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2b59fd[_0x2b59fd['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x23037e(0x3c1),_0x2b59fd[_0x2b59fd['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x23037e(0x3ab),_0x2b59fd[_0x2b59fd[_0x23037e(0x2b2)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2b59fd[_0x2b59fd[_0x23037e(0x394)]=0x36b2]=_0x23037e(0x394),_0x2b59fd[_0x2b59fd[_0x23037e(0x3aa)]=0x36b3]=_0x23037e(0x3aa),_0x2b59fd[_0x2b59fd[_0x23037e(0x40c)]=0x36b4]=_0x23037e(0x40c),_0x2b59fd[_0x2b59fd['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x23037e(0x3ec),_0x2b59fd[_0x2b59fd[_0x23037e(0x321)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x2b59fd[_0x2b59fd[_0x23037e(0x338)]=0x3717]=_0x23037e(0x338),_0x2b59fd[_0x2b59fd['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x23037e(0x411),_0x2b59fd[_0x2b59fd[_0x23037e(0x330)]=0x3a99]=_0x23037e(0x330),_0x2b59fd[_0x2b59fd[_0x23037e(0x295)]=0x3a9a]=_0x23037e(0x295),_0x2b59fd[_0x2b59fd[_0x23037e(0x271)]=0x3a9b]=_0x23037e(0x271),_0x2b59fd[_0x2b59fd[_0x23037e(0x3ef)]=0x3a9c]=_0x23037e(0x3ef),_0x2b59fd[_0x2b59fd[_0x23037e(0x21d)]=0x3a9d]=_0x23037e(0x21d),_0x2b59fd[_0x2b59fd[_0x23037e(0x299)]=0x3a9e]=_0x23037e(0x299),_0x2b59fd[_0x2b59fd[_0x23037e(0x1f4)]=0x3a9f]=_0x23037e(0x1f4),_0x2b59fd[_0x2b59fd[_0x23037e(0x280)]=0x3e81]=_0x23037e(0x280),_0x2b59fd[_0x2b59fd[_0x23037e(0x22b)]=-0x1]=_0x23037e(0x22b),_0x2b59fd))(Z||{});function mn(_0x4ac1ea){const _0x57db93=_0x23037e;var _0x3328e7,_0x130b6c;const _0x259be3=(_0x3328e7=_0x4ac1ea['stageInfo'])==null?void 0x0:_0x3328e7[_0x57db93(0x3d2)],_0x4851a3=((_0x130b6c=_0x4ac1ea[_0x57db93(0x39b)])==null?void 0x0:_0x130b6c['totalFormulasToCalculate'])||0x0;return _0x259be3===_0x244207[_0x57db93(0x370)]&&_0x4851a3>0x0;}function fn(_0x5eec67){const _0x39538a=_0x23037e;return _0x5eec67[_0x39538a(0x3a0)]===_0x4e9f65['SUCCESS'];}var gn=Object[_0x23037e(0x2c0)],vn=(_0x5afaf2,_0x496900,_0x3dc954,_0x27101b)=>{const _0x4d543c=_0x23037e;for(var _0x1031e5=_0x27101b>0x1?void 0x0:_0x27101b?gn(_0x496900,_0x3dc954):_0x496900,_0x37f395=_0x5afaf2[_0x4d543c(0x285)]-0x1,_0x166411;_0x37f395>=0x0;_0x37f395--)(_0x166411=_0x5afaf2[_0x37f395])&&(_0x1031e5=_0x166411(_0x1031e5)||_0x1031e5);return _0x1031e5;},P=(_0x1681da,_0x58e50b)=>(_0x4ee7ef,_0x24278b)=>_0x58e50b(_0x4ee7ef,_0x24278b,_0x1681da);const En=_0x23037e(0x28a),pn=_0x23037e(0x332),On='/universer-api/license/formula/limit/done';let de=class extends _0x2adf18{constructor(_0x1be602,_0x49e142,_0xdb46ec,_0x319c16,_0x17409b,_0x41c90f,_0x33ab5e){const _0x2340b2=_0x23037e;super(),l(this,'_pollingInterval',null),l(this,_0x2340b2(0x2ef),0x0),l(this,_0x2340b2(0x234),0x0),l(this,_0x2340b2(0x395),[]),l(this,'_lastResponseTimestamp',0x0),(this[_0x2340b2(0x426)]=_0x1be602,this[_0x2340b2(0x2d6)]=_0x49e142,this[_0x2340b2(0x21a)]=_0xdb46ec,this[_0x2340b2(0x251)]=_0x319c16,this[_0x2340b2(0x2f9)]=_0x17409b,this[_0x2340b2(0x30e)]=_0x41c90f,this[_0x2340b2(0x259)]=_0x33ab5e,this[_0x2340b2(0x413)]());}[_0x23037e(0x413)](){const _0x5d508e=_0x23037e;this[_0x5d508e(0x2b4)](this[_0x5d508e(0x2d6)]['beforeCommandExecuted']((_0x4100ac,_0x5914c5)=>{const _0x25d900=_0x5d508e;var _0x4a5a9c;if(_0x4100ac['id']!==_0x3dc31f['id'])return;const _0x22f5d0=_0x4100ac[_0x25d900(0x3dd)];if(!this[_0x25d900(0x40f)]((_0x4a5a9c=_0x22f5d0[_0x25d900(0x3be)])!=null?_0x4a5a9c:[]))return;if(!this[_0x25d900(0x2fc)]())throw this['_checkAndWaitForCalculationPermission'](_0x4100ac,_0x5914c5),this['_showGuardMessage'](),new _0x4ec729();})),this[_0x5d508e(0x2b4)](this['_commandService']['onCommandExecuted']((_0x59306b,_0x83076b)=>{const _0x166351=_0x5d508e;if(_0x59306b['id']!==_0x3dea83['id'])return;const _0x1cc745=_0x59306b[_0x166351(0x3dd)];if(mn(_0x1cc745)){const _0x1a0786=_0x21c798();this[_0x166351(0x395)][_0x166351(0x3b6)](_0x1a0786),this[_0x166351(0x2c1)](_0x1a0786);}else{if(fn(_0x1cc745)&&this[_0x166351(0x395)]['length']>0x0){const _0x337f7d=this['_taskIds'][_0x166351(0x365)]();this[_0x166351(0x2f6)](_0x337f7d);}}}));}[_0x23037e(0x3b4)](){const _0x2cd6a6=_0x23037e;super[_0x2cd6a6(0x3b4)](),this[_0x2cd6a6(0x260)](),this[_0x2cd6a6(0x395)]=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this[_0x2cd6a6(0x325)]=0x0;}async[_0x23037e(0x2bb)](_0x2ceba5,_0x309a5a){const _0x31a192=_0x23037e;for(let _0x50ce61=0x0;_0x50ce61<0x1e;_0x50ce61++)try{if(await this['_getFormulaLimitStatus'](),this['_checkCalculationAvailable']()){this[_0x31a192(0x32b)](_0x2ceba5,_0x309a5a),this['_messageService'][_0x31a192(0x327)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':_0x38ce13[_0x31a192(0x315)]});return;}await new Promise(_0x3f2a84=>{const _0x7693a9=_0x31a192;this[_0x7693a9(0x3f0)]=window[_0x7693a9(0x38a)](_0x3f2a84,0x3e8);});}catch(_0x53f8c8){this[_0x31a192(0x30e)][_0x31a192(0x2e5)](_0x53f8c8);}this[_0x31a192(0x426)][_0x31a192(0x327)]({'content':this[_0x31a192(0x259)]['t'](_0x31a192(0x385)),'type':_0x38ce13[_0x31a192(0x248)]});}['_applyCommand'](_0x3bbaf9,_0x40c357){const _0x30c85d=_0x23037e;try{this[_0x30c85d(0x2d6)]['executeCommand'](_0x3bbaf9['id'],_0x3bbaf9[_0x30c85d(0x3dd)],_0x40c357);}catch(_0xe94ba4){this[_0x30c85d(0x30e)][_0x30c85d(0x2e5)](_0xe94ba4);}}[_0x23037e(0x25b)](_0x5ba650,_0x199cee){const _0x1783f9=_0x23037e;_0x199cee<this[_0x1783f9(0x325)]||(this[_0x1783f9(0x325)]=_0x199cee,this[_0x1783f9(0x2ef)]=Number[_0x1783f9(0x3b3)](_0x5ba650[_0x1783f9(0x236)]),this['_currentUsage']=Number[_0x1783f9(0x3b3)](_0x5ba650['currentUsage']));}async[_0x23037e(0x2c1)](_0x464a7c){const _0x29f3b8=_0x23037e;var _0x4e1136,_0x4a68a9;const _0xbfdd3c=Date['now']();try{const _0x5769b4=((_0x4e1136=this[_0x29f3b8(0x21a)]['getConfig'](_0x3c4393))==null?void 0x0:_0x4e1136['startFormulaLimitUrl'])||pn,_0x30ee38=(await this[_0x29f3b8(0x251)]['post'](_0x5769b4,{'body':JSON[_0x29f3b8(0x252)]({'taskId':_0x464a7c})}))[_0x29f3b8(0x319)];if(((_0x4a68a9=_0x30ee38[_0x29f3b8(0x2e5)])==null?void 0x0:_0x4a68a9['code'])!==Z['OK'])return;this[_0x29f3b8(0x25b)](_0x30ee38[_0x29f3b8(0x209)],_0xbfdd3c);}catch(_0x1814a4){this[_0x29f3b8(0x30e)]['error'](_0x1814a4);}}async[_0x23037e(0x403)](_0x26e4d1){const _0xdee322=_0x23037e;var _0x42a8a4,_0xf54146;const _0x5ec3f1=Date['now']();try{const _0x18fa81=((_0x42a8a4=this['_configService'][_0xdee322(0x3fe)](_0x3c4393))==null?void 0x0:_0x42a8a4['getformulaLimitStatusUrl'])||En,_0x4c001e=_0x26e4d1?_0x18fa81+'?taskId='+encodeURIComponent(_0x26e4d1):_0x18fa81,_0x5ed6bb=(await this['_httpService']['get'](_0x4c001e))['body'];if(((_0xf54146=_0x5ed6bb[_0xdee322(0x2e5)])==null?void 0x0:_0xf54146[_0xdee322(0x2de)])!==Z['OK'])return;this[_0xdee322(0x25b)](_0x5ed6bb[_0xdee322(0x209)],_0x5ec3f1);}catch(_0x3bdb1f){this[_0xdee322(0x30e)][_0xdee322(0x2e5)](_0x3bdb1f);}}async[_0x23037e(0x2f6)](_0x4a0958){const _0x460da3=_0x23037e;var _0x4dfd9a,_0x4c01fa;const _0x96fec7=Date[_0x460da3(0x244)]();try{const _0x26c0be=((_0x4dfd9a=this['_configService'][_0x460da3(0x3fe)](_0x3c4393))==null?void 0x0:_0x4dfd9a[_0x460da3(0x27f)])||On,_0x25b20d=(await this[_0x460da3(0x251)]['post'](_0x26c0be,{'body':JSON[_0x460da3(0x252)]({'taskId':_0x4a0958})}))['body'];if(((_0x4c01fa=_0x25b20d[_0x460da3(0x2e5)])==null?void 0x0:_0x4c01fa[_0x460da3(0x2de)])!==Z['OK'])return;this[_0x460da3(0x25b)](_0x25b20d[_0x460da3(0x209)],_0x96fec7);}catch(_0x5b4988){this[_0x460da3(0x30e)][_0x460da3(0x2e5)](_0x5b4988);}}[_0x23037e(0x2fc)](){const _0x4f1f15=_0x23037e;return this[_0x4f1f15(0x2ef)]===0x0?!0x0:this[_0x4f1f15(0x2ef)]-this['_currentUsage']>0x0;}[_0x23037e(0x260)](){const _0x1d3c47=_0x23037e;this[_0x1d3c47(0x3f0)]&&(clearTimeout(this[_0x1d3c47(0x3f0)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x40f06c=_0x23037e;this['_messageService'][_0x40f06c(0x327)]({'content':this[_0x40f06c(0x259)]['t'](_0x40f06c(0x326)),'type':_0x38ce13[_0x40f06c(0x3cd)]});}[_0x23037e(0x40f)](_0xaf9782){const _0x20969f=_0x23037e;for(const _0x56ec22 of _0xaf9782){const {unitId:_0x52fa6e,sheetId:_0x45879d,range:_0x45e3d5}=_0x56ec22,_0x5ee476=this[_0x20969f(0x2f9)][_0x20969f(0x2c4)](_0x52fa6e);if(!_0x5ee476)continue;const _0x99cf30=_0x5ee476[_0x20969f(0x302)](_0x45879d);if(!_0x99cf30)continue;const _0x102110=_0x99cf30['getCellMatrix']();for(let _0xbe384d=_0x45e3d5[_0x20969f(0x36f)];_0xbe384d<=_0x45e3d5['endRow'];_0xbe384d++)for(let _0x55e1a2=_0x45e3d5['startColumn'];_0x55e1a2<=_0x45e3d5[_0x20969f(0x20c)];_0x55e1a2++){const _0x543f52=_0x102110['getValue'](_0xbe384d,_0x55e1a2);if(_0x543f52&&(_0x2ecb79(_0x543f52['f'])||_0x472e4c(_0x543f52['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x57b7af(_0x92c012)),P(0x1,_0x409061),P(0x2,_0x2905aa),P(0x3,_0x57b7af(_0x46f386)),P(0x4,_0x2c6926),P(0x5,_0x285ace),P(0x6,_0x57b7af(_0x23ab5c))],de);var Tn=Object[_0x23037e(0x2c0)],Cn=(_0xb24e9e,_0x4cb200,_0x82e837,_0x59727f)=>{const _0x2a8208=_0x23037e;for(var _0x5cbe84=_0x59727f>0x1?void 0x0:_0x59727f?Tn(_0x4cb200,_0x82e837):_0x4cb200,_0x5f543e=_0xb24e9e[_0x2a8208(0x285)]-0x1,_0x1e5556;_0x5f543e>=0x0;_0x5f543e--)(_0x1e5556=_0xb24e9e[_0x5f543e])&&(_0x5cbe84=_0x1e5556(_0x5cbe84)||_0x5cbe84);return _0x5cbe84;},De=(_0x488830,_0x1ae28b)=>(_0x33e405,_0x1cdef4)=>_0x1ae28b(_0x33e405,_0x1cdef4,_0x488830);let xe=class extends _0x2adf18{constructor(_0x4f3f8d,_0x8fca8e,_0x56269e){const _0x3a00d8=_0x23037e;super(),l(this,_0x3a00d8(0x23f),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x3a00d8(0x262),!0x1),(this[_0x3a00d8(0x21a)]=_0x4f3f8d,this[_0x3a00d8(0x29f)]=_0x8fca8e,this[_0x3a00d8(0x2d9)]=_0x56269e);}['disableLocalCache'](){const _0x478f9f=_0x23037e;this[_0x478f9f(0x262)]=!0x0;}[_0x23037e(0x2c8)](){const _0x1a5525=_0x23037e;this[_0x1a5525(0x262)]=!0x1;}get[_0x23037e(0x347)](){return this['_saveTaskMap'];}[_0x23037e(0x3b4)](){const _0xc5d085=_0x23037e;this['exhaustSavingTask']()[_0xc5d085(0x36c)](()=>super[_0xc5d085(0x3b4)]());}async[_0x23037e(0x1fb)](_0x5e789d){const _0x266150=_0x23037e;return this['_disabled']?null:this[_0x266150(0x29f)][_0x266150(0x3e3)](_0x4d52ef(_0x5e789d));}async['saveOfflineData'](_0x125ee2,_0x4c5df9){const _0x1b9dde=_0x23037e;return!!this[_0x1b9dde(0x29f)][_0x1b9dde(0x39d)](_0x125ee2,_0x4c5df9);}[_0x23037e(0x359)](_0x88a17e,_0x197692,_0x43a559,_0x349e84){const _0x265c2f=_0x23037e,_0x515130=this[_0x265c2f(0x2d9)][_0x265c2f(0x341)](_0x88a17e);this['_cachedData'][_0x265c2f(0x2a0)](_0x88a17e,{'unitID':_0x88a17e,'type':_0x197692,'awaitingChangeset':_0x43a559,'mutations':_0x349e84,'rev':_0x515130}),this['_saveTaskMap'][_0x265c2f(0x239)](_0x88a17e)||this[_0x265c2f(0x369)](_0x88a17e);}['_scheduleSaving'](_0x2cd33f){const _0x5e907f=_0x23037e,_0x38c8fd=this[_0x5e907f(0x36a)]();_0x38c8fd===0x0?this[_0x5e907f(0x366)](_0x2cd33f):this[_0x5e907f(0x25e)][_0x5e907f(0x2a0)](_0x2cd33f,setTimeout(()=>this[_0x5e907f(0x366)](_0x2cd33f),_0x38c8fd));}[_0x23037e(0x36a)](){const _0x5c45c1=_0x23037e;var _0x4e8e0b;return(_0x4e8e0b=this[_0x5c45c1(0x21a)][_0x5c45c1(0x3fe)](_0x18f2e4))!=null?_0x4e8e0b:_0x94812e;}['_saveCache'](_0x1f9a8f){const _0x3df74f=_0x23037e,_0x2d4862=this[_0x3df74f(0x25e)]['get'](_0x1f9a8f);return _0x2d4862!==void 0x0&&window[_0x3df74f(0x36d)](_0x2d4862),this['_localStorageService']['setItem'](_0x4d52ef(_0x1f9a8f),this[_0x3df74f(0x23f)][_0x3df74f(0x2d3)](_0x1f9a8f))[_0x3df74f(0x36c)](()=>this[_0x3df74f(0x25e)]['delete'](_0x1f9a8f));}async[_0x23037e(0x290)](){const _0x573882=_0x23037e,_0x3d9133=[];this[_0x573882(0x25e)][_0x573882(0x342)]((_0x456827,_0x2e66e0)=>{const _0x31ed9d=_0x573882;window[_0x31ed9d(0x36d)](_0x456827),_0x3d9133['push'](this[_0x31ed9d(0x366)](_0x2e66e0)[_0x31ed9d(0x36c)](()=>{const _0x9e4a28=_0x31ed9d;this[_0x9e4a28(0x25e)][_0x9e4a28(0x33a)](_0x2e66e0);}));}),await Promise[_0x573882(0x1f7)](_0x3d9133);}};xe=Cn([De(0x0,_0x2905aa),De(0x1,_0x4a8848),De(0x2,_0x57b7af(_0xfc506e))],xe);class Rn extends _0x1d3622{constructor(){const _0x46fb87=_0x23037e;super(),l(this,_0x46fb87(0x2b8)),this['urlChange$']=_0x3ac611(window,_0x46fb87(0x265))[_0x46fb87(0x277)](_0x1f8529(this[_0x46fb87(0x388)]),_0x109633(0x1),_0x51cdb0(void 0x0));}[_0x23037e(0x41c)](_0x3eeef1,_0x36f4e4,_0x3d7aba=!0x1){const _0x5a6fb7=_0x23037e,_0x4bca6a=new URL(window[_0x5a6fb7(0x227)][_0x5a6fb7(0x2a4)]);_0x4bca6a[_0x5a6fb7(0x3d4)][_0x5a6fb7(0x2a0)](_0x3eeef1,_0x36f4e4),_0x3d7aba?window[_0x5a6fb7(0x26a)][_0x5a6fb7(0x203)]('','',_0x4bca6a[_0x5a6fb7(0x41f)]()):window[_0x5a6fb7(0x26a)][_0x5a6fb7(0x2d0)]('','',_0x4bca6a[_0x5a6fb7(0x41f)]());}[_0x23037e(0x2e2)](_0x57ff75,_0x4eab00=!0x1){const _0x223f57=_0x23037e,_0x378247=new URL(window[_0x223f57(0x227)][_0x223f57(0x2a4)]);_0x378247[_0x223f57(0x3d4)][_0x223f57(0x33a)](_0x57ff75),_0x4eab00?window[_0x223f57(0x26a)][_0x223f57(0x203)]('','',_0x378247['toString']()):window[_0x223f57(0x26a)][_0x223f57(0x2d0)]('','',_0x378247['toString']());}[_0x23037e(0x34e)](_0x158541){const _0x5dd14f=_0x23037e;var _0x5163d9;return(_0x5163d9=new URL(window[_0x5dd14f(0x227)][_0x5dd14f(0x2a4)])[_0x5dd14f(0x3d4)]['get'](_0x158541))!=null?_0x5163d9:void 0x0;}}var Dn=Object['defineProperty'],Nn=Object[_0x23037e(0x2c0)],bn=(_0x559800,_0x496213,_0x19b075)=>_0x496213 in _0x559800?Dn(_0x559800,_0x496213,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19b075}):_0x559800[_0x496213]=_0x19b075,Un=(_0x1b2fd9,_0x3bfc81,_0x1b30dc,_0x4d6db4)=>{const _0x447f62=_0x23037e;for(var _0x1136c9=_0x4d6db4>0x1?void 0x0:_0x4d6db4?Nn(_0x3bfc81,_0x1b30dc):_0x3bfc81,_0x2ce709=_0x1b2fd9[_0x447f62(0x285)]-0x1,_0x310b22;_0x2ce709>=0x0;_0x2ce709--)(_0x310b22=_0x1b2fd9[_0x2ce709])&&(_0x1136c9=_0x310b22(_0x1136c9)||_0x1136c9);return _0x1136c9;},Ne=(_0x51a1fb,_0x277fb9)=>(_0x50855c,_0x53cf5c)=>_0x277fb9(_0x50855c,_0x53cf5c,_0x51a1fb),Ln=(_0x4ba32f,_0x3f8c90,_0x37ba43)=>bn(_0x4ba32f,_0x3f8c90+'',_0x37ba43);const Mn=_0x23037e(0x282);let Be=class extends _0x59b96e{constructor(_0x4614a2=rt,_0x28b153,_0x326285,_0x3d5b7f){const _0x310391=_0x23037e;super(),this['_config']=_0x4614a2,this[_0x310391(0x257)]=_0x28b153,this[_0x310391(0x1f8)]=_0x326285,this[_0x310391(0x21a)]=_0x3d5b7f;const {..._0x2bdda0}=_0x4d1f57({},rt,this['_config']);this[_0x310391(0x21a)][_0x310391(0x20e)](an,_0x2bdda0);}[_0x23037e(0x3bc)](){const _0x1abf53=_0x23037e;this[_0x1abf53(0x2e0)](),this[_0x1abf53(0x3fa)]();}[_0x23037e(0x26f)](){const _0x582ea9=_0x23037e;this[_0x582ea9(0x410)]();}['_registerDependencies'](){const _0x4d486f=_0x23037e;var _0x58ba2d;const _0x29956a=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x44de3e,{'useClass':_0x17c854}],[_0x2c165a,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x50ee13(this[_0x4d486f(0x1f8)],_0x3bff89(_0x29956a,(_0x58ba2d=this[_0x4d486f(0x364)])==null?void 0x0:_0x58ba2d[_0x4d486f(0x368)]));}['_registerRenderDependencies'](){const _0x59dac7=_0x23037e;this['disposeWithMe'](this[_0x59dac7(0x257)][_0x59dac7(0x31a)](_0x175e13['UNIVER_DOC'],[ye])),this[_0x59dac7(0x2b4)](this[_0x59dac7(0x257)][_0x59dac7(0x31a)](_0x175e13['UNIVER_SHEET'],[$e]));}[_0x23037e(0x3fa)](){const _0x2f2ff9=_0x23037e;_0x356ea1(this[_0x2f2ff9(0x1f8)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,'pluginName',Mn),Be=Un([_0x175337(_0x413558),Ne(0x1,_0x3947d8),Ne(0x2,_0x57b7af(_0xc05c74)),Ne(0x3,_0x2905aa)],Be);var An=Object['getOwnPropertyDescriptor'],Pn=(_0x57d353,_0x5f2ed7,_0xfb1be1,_0x3a7fd8)=>{const _0x5c695e=_0x23037e;for(var _0x42aab1=_0x3a7fd8>0x1?void 0x0:_0x3a7fd8?An(_0x5f2ed7,_0xfb1be1):_0x5f2ed7,_0x308123=_0x57d353[_0x5c695e(0x285)]-0x1,_0x438775;_0x308123>=0x0;_0x308123--)(_0x438775=_0x57d353[_0x308123])&&(_0x42aab1=_0x438775(_0x42aab1)||_0x42aab1);return _0x42aab1;},J=(_0x145afc,_0xd30d33)=>(_0xfca6d5,_0x1b831c)=>_0xd30d33(_0xfca6d5,_0x1b831c,_0x145afc);let ct=class extends _0x21196e{constructor(_0x102fd7,_0x1a3530,_0x470453,_0x4db420,_0x23f6c8){super(_0x102fd7,_0x1a3530,_0x470453,_0x4db420,_0x23f6c8);}async['createSocket'](_0x1b99d6){const _0x5b8c5d=_0x23037e,_0x4592a4=await this[_0x5b8c5d(0x415)](),_0x38923d=this[_0x5b8c5d(0x360)](_0x1b99d6,_0x4592a4);return this[_0x5b8c5d(0x3d0)](_0x38923d);}[_0x23037e(0x360)](_0x5d4ad1,_0x43b542){const _0x617ae7=_0x23037e,_0x120c00=typeof window>'u'?new URL(_0x5d4ad1):new URL(_0x5d4ad1,window[_0x617ae7(0x227)]['origin']);_0x120c00['searchParams'][_0x617ae7(0x2a0)](_0x617ae7(0x404),_0x43b542);const _0x4f0881=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x617ae7(0x227)][_0x617ae7(0x382)]);return _0x4f0881['get'](_0x617ae7(0x26d))&&_0x120c00[_0x617ae7(0x3d4)]['set'](_0x617ae7(0x26d),_0x4f0881[_0x617ae7(0x2d3)](_0x617ae7(0x26d))),_0x120c00['toString']();}async[_0x23037e(0x415)](){const _0x4d1a6b=_0x23037e;var _0x4163df,_0x2d89bc,_0x325291;const _0x49045f=this[_0x4d1a6b(0x21a)]['getConfig'](_0x3c4393),_0x5d0607=(_0x4163df=_0x49045f==null?void 0x0:_0x49045f[_0x4d1a6b(0x37b)])!=null?_0x4163df:_0x4b56ec;return(_0x325291=(_0x2d89bc=(await this[_0x4d1a6b(0x251)][_0x4d1a6b(0x2d3)](_0x5d0607,{'headers':{'Content-Type':_0x4d1a6b(0x32c)}}))['body'])==null?void 0x0:_0x2d89bc[_0x4d1a6b(0x238)])!=null?_0x325291:'';}};ct=Pn([J(0x0,_0x57b7af(_0xc05c74)),J(0x1,_0x57b7af(_0x46f386)),J(0x2,_0x2905aa),J(0x3,_0x285ace),J(0x4,_0xe935bb)],ct);var wn=Object['getOwnPropertyDescriptor'],yn=(_0x43d674,_0x373136,_0x1a43ec,_0x3a4ed8)=>{const _0x1b2c8b=_0x23037e;for(var _0x4b8f50=_0x3a4ed8>0x1?void 0x0:_0x3a4ed8?wn(_0x373136,_0x1a43ec):_0x373136,_0x1a0a09=_0x43d674[_0x1b2c8b(0x285)]-0x1,_0x28860b;_0x1a0a09>=0x0;_0x1a0a09--)(_0x28860b=_0x43d674[_0x1a0a09])&&(_0x4b8f50=_0x28860b(_0x4b8f50)||_0x4b8f50);return _0x4b8f50;},be=(_0x38a4f6,_0x70185c)=>(_0x45d6b0,_0x5d860b)=>_0x70185c(_0x45d6b0,_0x5d860b,_0x38a4f6);let _t=class extends _0x2adf18{constructor(_0x522d2d,_0x4f7220,_0x4fa328){const _0x31a2a9=_0x23037e;super(),this[_0x31a2a9(0x1fe)]=_0x522d2d,this[_0x31a2a9(0x251)]=_0x4f7220,this['_configService']=_0x4fa328;}async[_0x23037e(0x3e7)](_0x5f260b,_0x354559,_0x1bf098,..._0x54bfcd){const _0xded7ec=_0x23037e;var _0x1bc11a,_0x4aad0f,_0xbc20fe,_0xce7c7b;const _0x65dcc6=this[_0xded7ec(0x1fe)]['getFocusedUnit']();if(!_0x65dcc6)throw new Error(_0xded7ec(0x2f3));const _0x3c3c5d=((_0x1bc11a=this[_0xded7ec(0x21a)][_0xded7ec(0x3fe)](_0x9fc019))!=null?_0x1bc11a:_0x494cec)+'/'+_0x5f260b+_0xded7ec(0x289)+_0x354559,_0x137f2b=new URL(window[_0xded7ec(0x227)]['href']),_0x1e9bd0={'scriptId':_0x5f260b,'runId':(_0x4aad0f=_0x137f2b[_0xded7ec(0x3d4)][_0xded7ec(0x2d3)](_0xded7ec(0x26d)))!=null?_0x4aad0f:'','function':_0x354559,'unitId':_0x65dcc6[_0xded7ec(0x23c)](),'argsOfFunction':JSON[_0xded7ec(0x252)](_0x54bfcd),'invokeId':(_0xbc20fe=_0x1bf098[_0xded7ec(0x405)])!=null?_0xbc20fe:'','executionId':(_0xce7c7b=_0x1bf098['executionId'])!=null?_0xce7c7b:''};try{const _0x322f75=await this[_0xded7ec(0x251)]['post'](_0x3c3c5d,{'body':_0x1e9bd0});return _0x322f75[_0xded7ec(0x319)][_0xded7ec(0x2e5)]&&_0x322f75['body'][_0xded7ec(0x2e5)][_0xded7ec(0x2de)]!==Z['OK']?'Failed':_0x322f75[_0xded7ec(0x319)][_0xded7ec(0x24e)];}catch{return _0xded7ec(0x3a1);}}};_t=yn([be(0x0,_0x2c6926),be(0x1,_0x57b7af(_0x46f386)),be(0x2,_0x2905aa)],_t);const lt=0x7530,ht=_0x23037e(0x34d);class tr extends _0x2adf18{constructor(){const _0xb06031=_0x23037e;super(),l(this,_0xb06031(0x2ca),_0x21c798()),l(this,_0xb06031(0x28f),new Set()),l(this,'_unitOnClients',new Map()),l(this,'_heartbeatTimer',null),l(this,_0xb06031(0x2fe),new Map()),l(this,'_unitStatus',new Map()),this[_0xb06031(0x2f5)]();}['dispose'](){const _0x2adc81=_0x23037e;super[_0x2adc81(0x3b4)](),this[_0x2adc81(0x2fe)][_0x2adc81(0x342)]((_0x50cd99,_0x37727c)=>this[_0x2adc81(0x389)](_0x37727c)),this[_0x2adc81(0x334)]&&window[_0x2adc81(0x2ea)](this[_0x2adc81(0x334)]);}[_0x23037e(0x3d9)](_0x418c35){const _0x4897ea=_0x23037e;return this[_0x4897ea(0x2c6)](_0x418c35)[_0x4897ea(0x277)](_0x4a17c6());}['editingUnit'](_0x521bb4){const _0x3e84c7=_0x23037e;this[_0x3e84c7(0x28f)][_0x3e84c7(0x3f1)]===0x0&&this[_0x3e84c7(0x39a)](),this[_0x3e84c7(0x28f)]['add'](_0x521bb4),this[_0x3e84c7(0x27a)]({'type':0x0,'memberID':this[_0x3e84c7(0x2ca)],'unitIDs':[_0x521bb4],'isForwarded':!0x1});}[_0x23037e(0x212)](_0x3d3b79){const _0x1ab733=_0x23037e;this[_0x1ab733(0x28f)]['delete'](_0x3d3b79),this['_selfUnitIDs'][_0x1ab733(0x3f1)]===0x0&&this['_heartbeatTimer']&&window[_0x1ab733(0x2ea)](this[_0x1ab733(0x334)]);}['_init'](){const _0xbd1757=_0x23037e;this[_0xbd1757(0x2b4)](_0x586ed0(_0x3ac611(window,_0xbd1757(0x34b))['subscribe'](_0x158f45=>{const _0x2d4963=_0xbd1757;if(_0x158f45[_0x2d4963(0x2c7)]!==ht||!_0x158f45[_0x2d4963(0x390)])return;const _0x107221=JSON['parse'](_0x158f45[_0x2d4963(0x390)]);this['_handleEvent'](_0x107221);}))),window[_0xbd1757(0x3e6)](_0xbd1757(0x2ed),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0xbd1757(0x406)](this['_selfUnitIDs'])}));}[_0x23037e(0x2a3)](_0x2a6fc3){const _0x2d3bba=_0x23037e;switch(_0x2a6fc3[_0x2d3bba(0x228)]){case 0x0:this[_0x2d3bba(0x216)](_0x2a6fc3);break;case 0x1:this[_0x2d3bba(0x243)](_0x2a6fc3);break;case 0x2:this[_0x2d3bba(0x220)](_0x2a6fc3);break;}}['_handleJoinEvent'](_0x4f9c34){const _0x1dd9e9=_0x23037e,{unitIDs:_0x355c3b,memberID:_0x355dcf,isForwarded:_0x26a7fa}=_0x4f9c34;_0x355c3b[_0x1dd9e9(0x342)](_0x26f5bf=>{const _0x43e92c=_0x1dd9e9;if(!_0x26a7fa&&this[_0x43e92c(0x254)]['has'](_0x26f5bf)&&this['_ensureSubject'](_0x26f5bf)[_0x43e92c(0x2a5)](_0x30f496['OTHER_CLIENTS_EDITING']),!this[_0x43e92c(0x254)][_0x43e92c(0x239)](_0x26f5bf)||!this[_0x43e92c(0x254)][_0x43e92c(0x2d3)](_0x26f5bf)['has'](_0x355dcf)){const _0x295a84=this[_0x43e92c(0x254)]['get'](_0x26f5bf)||new Set();_0x295a84[_0x43e92c(0x30b)](_0x355dcf),this[_0x43e92c(0x254)]['set'](_0x26f5bf,_0x295a84),this[_0x43e92c(0x32e)](_0x355dcf);}}),_0x26a7fa||this[_0x1dd9e9(0x27a)]({'type':0x0,'memberID':this[_0x1dd9e9(0x2ca)],'unitIDs':[...this[_0x1dd9e9(0x28f)]],'isForwarded':!0x0});}[_0x23037e(0x32e)](_0x20297e){const _0x1ff6ff=_0x23037e;this[_0x1ff6ff(0x389)](_0x20297e);const _0x593085=window[_0x1ff6ff(0x38a)](()=>{const _0x49f34e=_0x1ff6ff;this[_0x49f34e(0x254)][_0x49f34e(0x342)](_0xda9095=>{const _0x3bfa61=_0x49f34e;_0xda9095[_0x3bfa61(0x33a)](_0x20297e);});},lt*0x2);this[_0x1ff6ff(0x2fe)][_0x1ff6ff(0x2a0)](_0x20297e,_0x593085);}[_0x23037e(0x389)](_0x327fa9){const _0x30790d=_0x23037e;if(this[_0x30790d(0x2fe)][_0x30790d(0x239)](_0x327fa9)){const _0x597803=this['_clearOtherTimers'][_0x30790d(0x2d3)](_0x327fa9);_0x597803&&window[_0x30790d(0x36d)](_0x597803),this[_0x30790d(0x2fe)]['set'](_0x327fa9,null);}}[_0x23037e(0x243)](_0x284e01){const _0x1a7bce=_0x23037e,{memberID:_0x20e205,unitIDs:_0x34f5bf}=_0x284e01;_0x34f5bf[_0x1a7bce(0x342)](_0x5c7b89=>{const _0x3237d5=_0x1a7bce;var _0x39abea;const _0x25be30=this[_0x3237d5(0x254)][_0x3237d5(0x2d3)](_0x5c7b89);_0x25be30&&(_0x25be30[_0x3237d5(0x33a)](_0x20e205),(_0x39abea=this[_0x3237d5(0x2c6)](_0x5c7b89))==null||_0x39abea[_0x3237d5(0x2a5)](_0x25be30[_0x3237d5(0x3f1)]===0x0?_0x30f496['NO_OTHER_CLIENTS_EDITING']:_0x30f496[_0x3237d5(0x29a)]));}),this[_0x1a7bce(0x389)](_0x20e205);}[_0x23037e(0x220)](_0x4d33ae){const _0x51e541=_0x23037e;this['_scheduleClearOtherTimer'](_0x4d33ae[_0x51e541(0x2dc)]);}[_0x23037e(0x27a)](_0x53a684){const _0xb3b100=_0x23037e;localStorage[_0xb3b100(0x39d)](ht,JSON[_0xb3b100(0x252)](_0x53a684));}['_scheduleHeartbeat'](){const _0x56b6dc=_0x23037e;this[_0x56b6dc(0x334)]=window[_0x56b6dc(0x214)](()=>{const _0x4f1a68=_0x56b6dc;this[_0x4f1a68(0x27a)]({'type':0x2,'memberID':this[_0x4f1a68(0x2ca)]});},lt);}[_0x23037e(0x2c6)](_0x13b88f){const _0x53b520=_0x23037e;return this[_0x53b520(0x301)][_0x53b520(0x239)](_0x13b88f)||this['_unitStatus'][_0x53b520(0x2a0)](_0x13b88f,new _0x107cff(_0x30f496[_0x53b520(0x24c)])),this[_0x53b520(0x301)][_0x53b520(0x2d3)](_0x13b88f);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|
|
1
|
+
const _0x489d75=_0x3fba;(function(_0x3c7041,_0x229b53){const _0x1b408e=_0x3fba,_0x3b62ad=_0x3c7041();while(!![]){try{const _0x1ebbed=-parseInt(_0x1b408e(0x216))/0x1*(-parseInt(_0x1b408e(0x33c))/0x2)+parseInt(_0x1b408e(0x23c))/0x3+-parseInt(_0x1b408e(0x1e0))/0x4+parseInt(_0x1b408e(0x3e3))/0x5*(-parseInt(_0x1b408e(0x362))/0x6)+-parseInt(_0x1b408e(0x278))/0x7+parseInt(_0x1b408e(0x24f))/0x8*(-parseInt(_0x1b408e(0x3c4))/0x9)+parseInt(_0x1b408e(0x1c1))/0xa;if(_0x1ebbed===_0x229b53)break;else _0x3b62ad['push'](_0x3b62ad['shift']());}catch(_0x290b67){_0x3b62ad['push'](_0x3b62ad['shift']());}}}(_0xe57b,0x8cabc));var Yt=Object['defineProperty'],Wt=(_0x237f04,_0xf4761,_0x15093d)=>_0xf4761 in _0x237f04?Yt(_0x237f04,_0xf4761,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15093d}):_0x237f04[_0xf4761]=_0x15093d,_=(_0x548f9d,_0x46c79e,_0x5eee8b)=>Wt(_0x548f9d,typeof _0x46c79e!=_0x489d75(0x212)?_0x46c79e+'':_0x46c79e,_0x5eee8b);import{jsx as _0x2d1875,jsxs as _0x5ef689}from'react/jsx-runtime';import{CollaborationStatus as _0x3d08a5,CollaborationSessionService as _0x2bac2d,CollaborationController as _0x5646c2,DataLoaderService as _0x1e5780,MemberService as _0x259356,SessionStatus as _0x3c6c6c,ILocalCacheService as _0x2ff612,CollaborationUIEventService as _0x543d62,CollaborationUIEventId as _0xcdb48,DocCollaborationEntity as _0x156d52,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4166ec,getLocalCacheKey as _0x39c194,LOCAL_CACHE_INTERVAL as _0x5f0196,LOCAL_CACHE_INTERVAL_KEY as _0x595aa3,UniverCollaborationClientPlugin as _0x46c358,CollaborationSocketService as _0x2996d2,DEFAULT_WS_SESSION_TICKET_URL as _0x1719f5,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4f91d6,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x364199,UnitStatus as _0x3b9449}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x27fab8,IUniverInstanceService as _0x47b405,Inject as _0x202ade,Injector as _0x555a92,Disposable as _0x3d44ee,createIdentifier as _0x2d5037,ILogService as _0x5054cc,ICommandService as _0x351000,Optional as _0x5a4fd9,RxDisposable as _0x31f19d,Workbook as _0x1bcd16,DOC_RANGE_TYPE as _0x5c7ec8,debounce as _0x3d7589,Rectangle as _0x351be5,DisposableCollection as _0xc78201,toDisposable as _0x467256,UniverInstanceType as _0x38bec1,generateRandomId as _0x50b639,COLORS as _0x1bb053,ColorKit as _0x5c342e,ThemeService as _0x37bbf9,fromEventSubject as _0x439f38,Tools as _0x550b4c,CommandType as _0x359115,IConfigService as _0x1f81f8,CanceledError as _0x504f88,isFormulaString as _0x292b45,isFormulaId as _0x5f2d0d,ILocalStorageService as _0x298059,DependentOn as _0xefd262,Plugin as _0x49d9c1,merge as _0x18e3f5,registerDependencies as _0x34d946,mergeOverrideWithDependencies as _0x508995,touchDependencies as _0x59829d}from'@univerjs/core';import{useObservable as _0x329380,useDependency as _0x36cd4f,IUIPartsService as _0x5749ae,BuiltInUIPart as _0x582be1,connectInjector as _0x3e3817,IBeforeCloseService as _0x418917,IMessageService as _0xcd0d9,INotificationService as _0x43dbd7}from'@univerjs/ui';import{BehaviorSubject as _0x3401b7,switchMap as _0x5965ec,of as _0x122110,takeUntil as _0x2b26c7,debounceTime as _0x570ac5,Subject as _0x438db8,filter as _0x364d12,merge as _0x50692b,combineLatest as _0x22737f,fromEvent as _0x29c23f,shareReplay as _0xa88512,mapTo as _0x84bda4,distinctUntilChanged as _0x95406f}from'rxjs';import{Tooltip as _0x4d368a,clsx as _0x17e87f,MessageType as _0x453359}from'@univerjs/design';import{useRef as _0xd25d5c,createElement as _0x280764,forwardRef as _0x59ad12,useCallback as _0x3ee2d3}from'react';import{IRemoteInstanceService as _0x36b1a3}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0xa63b9e,RefRangeService as _0x47195b,SetSelectionsOperation as _0x119524,SheetsSelectionsService as _0x2158f9,EffectRefRangId as _0x3de3c0,handleIRemoveRow as _0x223d6b,handleIRemoveCol as _0x1142a5,handleMoveRange as _0x527cea,handleInsertRow as _0x1e4b33,handleInsertRangeMoveRight as _0x2298d1,handleInsertRangeMoveDown as _0x5711bb,handleInsertCol as _0x1adc47,handleDeleteRangeMoveUp as _0x5bacd1,handleDeleteRangeMoveLeft as _0x52f814,runRefRangeMutations as _0x49d809}from'@univerjs/sheets';import{Shape as _0x51b69f,Rect as _0x4990a2,getColor as _0x175d22,RegularPolygon as _0x2c1f20,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2874e9,Vector2 as _0x334327,SHEET_VIEWPORT_KEY as _0x4f6b83,IRenderManagerService as _0x3981cf}from'@univerjs/engine-render';import{HTTPService as _0x2d0ef5,ISocketService as _0x356f99,WebSocketService as _0x3d13d3}from'@univerjs/network';import{IDocClipboardService as _0x1dd938,NodePositionConvertToCursor as _0xaa3d1c,NodePositionConvertToRectRange as _0x262336,TEXT_RANGE_LAYER_INDEX as _0x324c2c,SetDocZoomRatioOperation as _0x30ec8a,DocIMEInputManagerService as _0x46d38a,DocStateChangeManagerService as _0x2bae71}from'@univerjs/docs-ui';import{IImageIoService as _0x57d99e}from'@univerjs/drawing';import{ITransformService as _0x5ba33c,CollaborationEvent as _0x17eea9,isTransformMutationFailure as _0x262860,isTransformMutationsWithChangesetSuccess as _0x270560,RevisionService as _0x102b66,ISnapshotServerService as _0x480ff2}from'@univerjs-pro/collaboration';function _0xe57b(){const _0x31f64f=['OnLineIcon','_localeService','INVALID_INVITE_CODE','_scheduleSaving','event$','_disabled','wsSessionTicketUrl','ONLINE','translate(.97)','ENTITLE_NEED_BILLING_ADDRESS','LICENSE_IMPORT_SIZE_EXCEEDED','_name','_docTransformStateCacheService','setUndoRedoMutationParamsCache','origin','unit','sessionTicket','override','startColumn','defIds','_draw','[CollaborationDataLoaderController]','getActiveRange','INVITE_CODE_REQUIRED','blue.400','_drawRectRange','syncEditingCollabCursor','_color','replaceState','redoState','AWAITING','loadOfflineData','221559FDFQVr','CHANGESET_REVISION_CONFILICT','M0\x200H16V16H0z','APPLY_NON_SEQUENTIAL_REVISION','collaboration.single-unit.warning','_getSheetObject','PY_RUNTIME_SCRIPT_ERROR','getValue','UNRECOGNIZED','_showGuardMessage','limitInfo','session.will-retry','AWAITING_WITH_PENDING','delete','registerRefRange','addEventListener','collabStatus.synced','Warning','hovered','8TGpIWc','ENTITLE_REPORT_LIMIT_EXCEED','_releaseCalculationLimit','setItem','_refRangeService','...','drawWith','removeParam','evenodd','sessionStatus$','saveImage','getSheetId','getDocRanges','m1Prime','_startCalculationLimit','setParam','UNIVER_DOC','sheetID','getCollabEntity$','height','_unitStatus','executeCommand','urlChange$','formula.calculation.started','_httpService','history','LOGIN_TOKEN_PROCESSING_FAILED','RECT','fillStyle','unload','HEADER_MENU','_initCommandInterceptor','_config','_roomMembers$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getMemberID','_anchorDot','_docStateChangeManagerService','_scheduleHeartbeat','onStarting','values','2707663vfEBgh','getRenderById','\x20at\x20','LICENSE_MAX_UNITS_EXCEEDED','_labelPosition','selections','getAncestorScale','transformRemoteChangeset','push','subscribe','disposeWithMe','assignAColorForMemberID','clipPath','EMAIL_HAS_BEEN_BOUND','m2Prime','key','requireSession','getUnitStatus$','_updateLocalCursor','code','_entities','_localStorageService','onPointerEnter$','_onCursorUpdate','attrs','colorChannel1','_checkCalculationAvailable','NOT_COLLAB','_cursors','_handleJoinEvent','post','_handleLeaveEvent','OTHER_CLIENT_EDITING','unitID','saveTaskMap','clearInterval','_startDocCollabCursor','_initEntityListener','url(#$1','_anchor','currentUsage','NOT_FOUND','YUUMI_NO_CUBOID_FOR_QUESTION','bind','searchParams','FETCH_MISS','white','registerBeforeClose','subscribeEvent','univer-mr-2\x20univer-flex\x20univer-text-xl','http://www.w3.org/2000/svg','beforeCommandExecuted','/universer-api/frontend/logs','assign','add','max','tag','_collabSessionService','triggerDblclick','_eventUnsubscribe','_clearPolling','show','complete','_cursorShapes','_collaborationUIEventService','_updateSubUnitFromURLParams','mutations','startFormulaLimitUrl','href','black','_getScale','_context','REDEMPTION_INVALID_CODE','_init','on-line-icon','createInstance','REDEMPTION_USER_NOT_ELIGIBLE','_monkeyPatchLogService','UNIVER_SHEET','size','has','_notificationService','CURRENT_STATUS_CANNOT_OPERATE','_applyCommand','backgroundColor','textRanges','then','univerjs-icon\x20univerjs-icon-','getTypeOfUnitDisposed$','_entityInit$','SUBMIT_CHANGESET_TIMEOUT','getParam','getFocusedUnit','data','addHandlerCallback','getMember','current','_transformService','getVpScrollXYInfoByPosToVp','/universer-api/license/formula/limit/done','?taskId=','isArray','collab-rect-range-','reason','onPointerMove$','collab-client.tooltip.reconnect','range','_docSyncEditingCollabCursorService','setActiveRange','_instanceService','USERS_LEAVE','_maxFormulaLimit','Success','getActiveSheet','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_docTransformSelectionsService','session.connection-failed','substring','collabStatus.offline','docStateChange$','jiqing.500','MUTATION','ENTITLE_INSUFFICIENT_QUOTA','REDEMPTION_CODE_INACTIVE','column','InsertRangeMoveDownCommandId','NO_OTHER_CLIENTS_EDITING','_setupBeforeClosingHandler','pipe','USER_NOT_FOUND','toRgbString','_removeClearOtherTimer','_collabCursorController','YUUMI_CONNECTOR_URL_NOT_FOUND','runOnServer','reconnect','_setFormulaLimitStatus','_hasFormulaInDirtyRanges','_shapes','replaceDocRanges','unhandledrejection','resize','round','YUUMI_URL_COL_OUT_OF_RANGE','SUCCESS','imageSourceType','_getMergeRange','row','map','YUUMI_SUBSCRIPTION_NOT_FOUND','_uiPartsService','APPLY_DUPLICATED','font','lineTo','_drawTextRange','_clearOtherTimers','[Window\x20Error]:\x20','_checkAndWaitForCalculationPermission','_onCursorDelete','ERROR_AGAIN','RemoveColCommandId','getCurrent','UniverIcon','_updateURLWithCurrentState','pluginName','from','OTHER_CLIENTS_EDITING','_colorAssignService','_univerInstanceService','sheetId','_initUnhandledRejectionListener','_online','PAYMENT_CHANNEL_NOT_SUPPORT','_initResize','ranges','_onRefRangeChange','includes','disposeUnit','_session','getUnhiddenWorksheets','FromArray','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','undoState','_handleEvent','currentTheme$','colno','rgba(255,\x20255,\x20255,\x200.01)','hide','onMouseMove','ENSURE_SNAPSHOT_EXECUTION','UNAUTHENTICATED','getformulaLimitStatusUrl','onPointerLeave$','0\x200\x2017\x2016','_registerRenderDependencies','REDEMPTION_CODE_HAS_BEEN_CREATED','2jkYTWI','_docClipboardService','MOBILE_VERIFY_CODE_MISMATCH','parseInt','result','updateOfflineData','registerComponent','setAlpha','displayName','_memberService','_messageService','getUnit','focused$','APPLY_REJECT','all','type','newValue','setConfig','UNDEFINED','AUTHORIZE_CODE_ILLEGAL','defs','beginPath','isEditing','_beforeCloseService','_docSkeletonManagerService','getRangePointData','cursorInfo','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','forEach','_getAnchorBounding','APPLY_REVISION_CONFILICT','_localCacheService','string','top','_commandService','_currentUsage','width','dirtyRanges','3269076NCnLTD','_collaborationController','_createSocketURL','_renderManagerService','stack','collab-text-range-','ALREADY_EXISTS','_scheduleClearOtherTimer','_injector','_initWindowErrorListener','stageInfo','entries','INVITE_CODE_ALREADY_BOUND','children','_logService','uni.network.url-service','setInterval','unitId','eventID','_hover','registerRenderModule','clearTimeout','now','startRow','_id','getCurrentSelections','releaseFormulaLimitUrl','_removeCollabCursors','getCollabCursors$','exhaustSavingTask','save','APPLY_PERMISSION_DENIED','contains','_saveCache','unshift','xlink:href','USER_NOT_INVITED_CODE','entityInit$','params','onCommandExecuted','getOwnPropertyDescriptor','idSuffix','RemoveRowCommandId','YUUMI_AI_RUN_FAILED','_docSkeleton','transformSelections','location','ENTITLE_DUP_SUBSCRIPTION','Error','subunit','currentSkeleton$','_ensureSubject','text','_urlService','editingUnit','find','_cursorInfo$','setStateCache','cursorInfo$','_textBubble','START_CALCULATION','enableFrontendLog','init','unsubscribe','_lastPointer','OffLineIcon','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','permission.content','_scene','_drawAnchor','_getSaveTimeout','_pollingInterval','_imageIoService','restore','removeEventListener','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','setShapeProps','_transformPreviousActiveRange','PERMISSION_DENIED','#FFF','_document','saveOfflineData','_saveTaskMap','YUUMI_RATE_OVER_LIMIT','_memberID','_cursor','EMAIL_VERIFY_CODE_MISMATCH','_refreshCollabCursors','Failed','SNAPSHOT_INVALID_SNAPSHOT','set','_handleHeartbeatEvent','_initEvent','collab-text-anchor-','parse','executionId','dispose$','selection','9392454byBQdM','CONFLICT','/universer-api/license/formula/limit/start','JOIN_ROOM_FAILED','transformStateCache','endColumn','getStateCache','SOCKET_FAILED_RETRY','_heartbeatTimer','INTERNAL_ERROR','pushState','_status$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getUnitId','runId','none','_hovered','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','getConfig','arc','_dataLoaderService','LOGIN_FAILED','SYNCED','actions','collabStatus.fetchMiss','_revisionService','CLOSE_ROOM','setTimeout','deepClone','length','_uploadLog','10Ftblwp','_startSheetCollabCursor','_send','_cachedData','fill','_taskIds','getRelativeToViewportCoord','name','send','on-line-icon_clip0_910_349','getTypeOfUnitAdded$','collaboration.closeRoom','_syncEditingCollabCursorService','MOBILE_HAS_BEEN_BOUND','_collabCursorState$','maxFormulaLimit','YUUMI_ASYNCIO_CANCELLED','collaboration-client.offline-data-not-saved','_range','socket$','_getFormulaLimitStatus','0\x200\x2016\x2016','skeleton','_initStatusComponent','totalFormulasToCalculate','univer-flex\x20univer-items-center','addObjects','endRow','_registerDependencies','_getSessionTicket','activeSheet$','_initCommandExecutedListener','permission.title','search','get','filename','MoveRangeCommandId','stringify','_assignedColors','min','36262680vyeocX','InsertRangeMoveRightCommandId','_initStatusListener','measureText','toString','_transformUndoRedoStack','next','_render','SOCKET_FAILED','currentColor','doc.mutation.rich-text-editing','TOO_MANY_REQUESTS','/universer-api/license/formula/limit/status','formula.calculation.waiting','1em','defineProperty','_initUserListener','fillText','_transformHistoryAndStateStack','transformMutation','split','collabCursorState$','_selfUnitIDs','_sheetSkeletonManagerService','getColorFromTheme','_toggleOnline','path','INVALID_ARGUMENT','REDEMPTION_CODE_FULLY_REDEEMED','[Unhandled\x20Rejection]:\x20','body','2463392zyvyyL','session.collaboration-timeout','_updateCollabCursors','REDEMPTION_USER_REDEEM_TIMES_EXCEED','dispose','application/json','bottom','isActive','/run/','getCurrentRevOfUnit','UPDATE_CURSOR','_collaborationSessionService','_initDependencies','_colorIndex','DeleteRangeMoveUpCommandId','INVITE_CODE_HAS_BEEN_UES','_themeService','transformMutationsWithChangeset','div','debug','InsertRowCommandId','ENTITLE_CHAT_LIMIT_EXCEED','asObservable','replace','WECHAT_HAS_BEEN_BOUND','color','YUUMI_ALL_TABLES_IS_INVALID','_hideTimer','findNodePositionByCharIndex','[RemoteUniscriptService]:\x20no\x20focused\x20unit','enableLocalCache','svg','subUnitId','message','_lastResponseTimestamp','addObject','transformIMECache','_backgroundColor','error','memberID','_unitOnClients','_configService','with','roomMembers','COMPLETION_FINISHED','CONNECTOR_DATA_TOO_LARGE','createSocket','engine','OFFLINE','_docTransformIMECacheService','symbol','shift','off-line-icon_clip0_910_343','LICENSE_DISTRO_REJECTED','12022ZeCUks','getSheetBySheetId','mask','DATA_SOURCE_TOO_LARGE','status$','roomMembers$'];_0xe57b=function(){return _0x31f64f;};return _0xe57b();}import{SetTextSelectionsOperation as _0x33f871,RichTextEditingMutation as _0x2b458e,DocSelectionManagerService as _0x577a3f,DocSkeletonManagerService as _0x604fda}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1a0a9b,serializeRangeWithSheet as _0x457a6b,FormulaExecuteStageType as _0x46a8c9,FormulaExecutedStateType as _0x2fb8c3,SetFormulaCalculationStartMutation as _0x28fb65,SetFormulaCalculationNotificationMutation as _0x3bf510}from'@univerjs/engine-formula';import{map as _0x52ce88,filter as _0x3c7ef6,throttleTime as _0x51f0ab,takeUntil as _0x1cceeb,switchMap as _0xca3cd2}from'rxjs/operators';import{SheetSkeletonManagerService as _0x47cae0,getCoordByCell as _0x2415eb,getSheetObject as _0x4cfeb9}from'@univerjs/sheets-ui';function Ge({ref:_0x2bd382,..._0x3b89d8}){const _0x4920ad=_0x489d75,{icon:_0xd056e9,id:_0xf5912d,className:_0xf74cf2,extend:_0x16c6d,..._0x5cce0c}=_0x3b89d8,_0x46f86a=(_0x4920ad(0x2cf)+_0xf5912d+'\x20'+(_0xf74cf2||''))['trim'](),_0xb50c0c=_0xd25d5c('_'+Ei());return At(_0xd056e9,''+_0xf5912d,{'defIds':_0xd056e9[_0x4920ad(0x22f)],'idSuffix':_0xb50c0c[_0x4920ad(0x2d8)]},{'ref':_0x2bd382,'className':_0x46f86a,..._0x5cce0c},_0x16c6d);}function At(_0x2dcc60,_0x1ef675,_0x584ff5,_0x200421,_0x82519e){const _0x5e1eba=_0x489d75;return _0x280764(_0x2dcc60['tag'],{'key':_0x1ef675,...gi(_0x2dcc60,_0x584ff5,_0x82519e),..._0x200421},(vi(_0x2dcc60,_0x584ff5)[_0x5e1eba(0x36f)]||[])[_0x5e1eba(0x30c)]((_0x230534,_0x512f38)=>At(_0x230534,_0x1ef675+'-'+_0x2dcc60[_0x5e1eba(0x2b0)]+'-'+_0x512f38,_0x584ff5,void 0x0,_0x82519e)));}function gi(_0x461090,_0x1fb1ad,_0x2d0991){const _0x287bbf=_0x489d75,_0x130682={..._0x461090[_0x287bbf(0x290)]};_0x2d0991!=null&&_0x2d0991[_0x287bbf(0x291)]&&_0x130682[_0x287bbf(0x3e7)]===_0x287bbf(0x291)&&(_0x130682['fill']=_0x2d0991[_0x287bbf(0x291)]),_0x461090['tag']===_0x287bbf(0x218)&&_0x130682['id']&&(_0x130682['id']=_0x130682['id']+_0x1fb1ad[_0x287bbf(0x38b)]),Object['entries'](_0x130682)[_0x287bbf(0x358)](([_0x586841,_0x35010f])=>{const _0x3d15f4=_0x287bbf;_0x586841===_0x3d15f4(0x218)&&typeof _0x35010f==_0x3d15f4(0x35c)&&(_0x130682[_0x586841]=_0x35010f[_0x3d15f4(0x1f7)](/url\(#(.*)\)/,_0x3d15f4(0x29e)+_0x1fb1ad[_0x3d15f4(0x38b)]+')'));});const {defIds:_0x42c883}=_0x1fb1ad;return!_0x42c883||_0x42c883['length']===0x0||(_0x461090[_0x287bbf(0x2b0)]==='use'&&_0x130682[_0x287bbf(0x385)]&&(_0x130682[_0x287bbf(0x385)]=_0x130682[_0x287bbf(0x385)]+_0x1fb1ad[_0x287bbf(0x38b)]),Object[_0x287bbf(0x36d)](_0x130682)['forEach'](([_0x4acbfc,_0x5c584e])=>{const _0x690339=_0x287bbf;typeof _0x5c584e=='string'&&(_0x130682[_0x4acbfc]=_0x5c584e['replace'](/url\(#(.*)\)/,_0x690339(0x29e)+_0x1fb1ad[_0x690339(0x38b)]+')'));})),_0x130682;}function vi(_0x4235eb,_0x55702c){const _0x9af1df=_0x489d75;var _0x1e4bc1;const {defIds:_0x2eb451}=_0x55702c;return!_0x2eb451||_0x2eb451['length']===0x0?_0x4235eb:_0x4235eb[_0x9af1df(0x2b0)]===_0x9af1df(0x350)&&((_0x1e4bc1=_0x4235eb['children'])!=null&&_0x1e4bc1['length'])?{..._0x4235eb,'children':_0x4235eb['children'][_0x9af1df(0x30c)](_0x5db477=>typeof _0x5db477[_0x9af1df(0x290)]['id']==_0x9af1df(0x35c)&&_0x2eb451&&_0x2eb451['includes'](_0x5db477[_0x9af1df(0x290)]['id'])?{..._0x5db477,'attrs':{..._0x5db477[_0x9af1df(0x290)],'id':_0x5db477[_0x9af1df(0x290)]['id']+_0x55702c[_0x9af1df(0x38b)]}}:_0x5db477)}:_0x4235eb;}function Ei(){const _0x5bdbe4=_0x489d75;return Math['random']()[_0x5bdbe4(0x1c5)](0x24)[_0x5bdbe4(0x2ed)](0x2,0x8);}Ge[_0x489d75(0x344)]=_0x489d75(0x31a);function _0x3fba(_0x197cc4,_0x453c41){const _0xe57bb6=_0xe57b();return _0x3fba=function(_0x3fba08,_0x44dddb){_0x3fba08=_0x3fba08-0x1b4;let _0x5d027d=_0xe57bb6[_0x3fba08];return _0x5d027d;},_0x3fba(_0x197cc4,_0x453c41);}const pi={'tag':_0x489d75(0x1ff),'attrs':{'xmlns':_0x489d75(0x2aa),'fill':_0x489d75(0x3d3),'viewBox':_0x489d75(0x3f8),'width':_0x489d75(0x1cf),'height':_0x489d75(0x1cf)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x489d75(0x1db),'attrs':{'stroke':_0x489d75(0x1ca),'d':_0x489d75(0x3d5),'strokeLinecap':_0x489d75(0x306),'strokeLinejoin':_0x489d75(0x306),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x489d75(0x284),'attrs':{'id':_0x489d75(0x214)},'children':[{'tag':_0x489d75(0x1db),'attrs':{'fill':'white','d':_0x489d75(0x23e)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x59ad12(function(_0x408308,_0x523e9f){const _0x3573e2=_0x489d75;return _0x280764(Ge,Object[_0x3573e2(0x2ad)]({},_0x408308,{'id':'off-line-icon','ref':_0x523e9f,'icon':pi}));});Pt[_0x489d75(0x344)]=_0x489d75(0x3a3);const Oi={'tag':_0x489d75(0x1ff),'attrs':{'xmlns':_0x489d75(0x2aa),'fill':_0x489d75(0x3d3),'viewBox':_0x489d75(0x339),'width':_0x489d75(0x1cf),'height':_0x489d75(0x1cf)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x489d75(0x1ca),'d':_0x489d75(0x3a4),'strokeLinecap':_0x489d75(0x306),'strokeLinejoin':_0x489d75(0x306),'strokeWidth':1.2}}]},{'tag':_0x489d75(0x350),'attrs':{},'children':[{'tag':_0x489d75(0x284),'attrs':{'id':_0x489d75(0x3ec)},'children':[{'tag':_0x489d75(0x1db),'attrs':{'fill':_0x489d75(0x2a6),'d':_0x489d75(0x23e),'transform':_0x489d75(0x224)}}]}]}],'defIds':[_0x489d75(0x3ec)]},wt=_0x59ad12(function(_0x24fe1a,_0x43c9bb){const _0xdda725=_0x489d75;return _0x280764(Ge,Object['assign']({},_0x24fe1a,{'id':_0xdda725(0x2c2),'ref':_0x43c9bb,'icon':Oi}));});wt['displayName']=_0x489d75(0x21c);function Ti(_0x4416b7){const _0x25084b=_0x489d75;switch(_0x4416b7){case _0x3d08a5[_0x25084b(0x210)]:return _0x25084b(0x2ee);case _0x3d08a5[_0x25084b(0x3c5)]:return'collabStatus.conflict';case _0x3d08a5[_0x25084b(0x2a5)]:return _0x25084b(0x3dc);case _0x3d08a5['NOT_COLLAB']:return'collabStatus.notCollab';case _0x3d08a5[_0x25084b(0x23a)]:case _0x3d08a5[_0x25084b(0x248)]:return'collabStatus.syncing';case _0x3d08a5[_0x25084b(0x3da)]:case _0x3d08a5['PENDING']:return _0x25084b(0x24c);}}function Ci(_0x26189e){const _0xee9e88=_0x489d75,{status$:_0xd5a9ea}=_0x26189e,_0xf3bad8=_0x329380(_0xd5a9ea,_0x3d08a5[_0xee9e88(0x293)]),_0x4c1ac9=_0x36cd4f(_0x27fab8),_0x4e51f7=_0x36cd4f(_0x2bac2d),_0x684d35=_0xf3bad8!==_0x3d08a5[_0xee9e88(0x210)],_0x47e3a4=_0x4c1ac9['t'](Ti(_0xf3bad8)),_0x139ba4=_0x684d35?_0x2d1875(wt,{}):_0x2d1875(Pt,{}),_0x597f17=_0x3ee2d3(()=>{const _0x26d3a1=_0xee9e88;_0x684d35||_0x4e51f7[_0x26d3a1(0x2ff)]();},[_0x684d35,_0x4e51f7]);function _0x479d56(){const _0x5c6e89=_0xee9e88;return _0x5ef689(_0x5c6e89(0x1f2),{'className':_0x5c6e89(0x3fc),'onClick':_0x597f17,'children':[_0x2d1875(_0x5c6e89(0x1f2),{'className':_0x17e87f(_0x5c6e89(0x2a9),{'univer-text-green-500':_0x684d35,'univer-text-red-500':!_0x684d35}),'children':_0x139ba4}),_0x2d1875(_0x5c6e89(0x1f2),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x47e3a4})]});}return _0x684d35?_0x479d56():_0x2d1875(_0x4d368a,{'title':_0x4c1ac9['t'](_0xee9e88(0x2e1)),'children':_0x479d56()});}var Ri=Object[_0x489d75(0x38a)],Di=(_0x2a55af,_0x1054e1,_0x27be01,_0xc08dc5)=>{const _0x4166dc=_0x489d75;for(var _0x3217d4=_0xc08dc5>0x1?void 0x0:_0xc08dc5?Ri(_0x1054e1,_0x27be01):_0x1054e1,_0x3ac718=_0x2a55af[_0x4166dc(0x3e1)]-0x1,_0x2ecdb0;_0x3ac718>=0x0;_0x3ac718--)(_0x2ecdb0=_0x2a55af[_0x3ac718])&&(_0x3217d4=_0x2ecdb0(_0x3217d4)||_0x3217d4);return _0x3217d4;},se=(_0x266e0f,_0x10c6c2)=>(_0x244ccc,_0x262caf)=>_0x10c6c2(_0x244ccc,_0x262caf,_0x266e0f);let ae=class extends _0x3d44ee{constructor(_0x14d1a9,_0xb26bee,_0x8f908a,_0x412c76){const _0x546ec8=_0x489d75;super(),_(this,_0x546ec8(0x3cf),new _0x3401b7(_0x3d08a5[_0x546ec8(0x293)])),(this[_0x546ec8(0x320)]=_0x14d1a9,this[_0x546ec8(0x36a)]=_0xb26bee,this['_collaborationController']=_0x8f908a,this[_0x546ec8(0x30e)]=_0x412c76,this[_0x546ec8(0x3fa)](),this[_0x546ec8(0x1c3)]());}[_0x489d75(0x1c3)](){const _0x2e0eec=_0x489d75;this[_0x2e0eec(0x282)](this[_0x2e0eec(0x320)][_0x2e0eec(0x348)][_0x2e0eec(0x2f8)](_0x5965ec(()=>{const _0x5b3433=_0x2e0eec,_0x3cc43e=this[_0x5b3433(0x320)][_0x5b3433(0x2d4)]();return _0x3cc43e?this['_collaborationController'][_0x5b3433(0x261)](_0x3cc43e[_0x5b3433(0x3d1)]()):_0x122110(null);}),_0x5965ec(_0x319304=>_0x319304?_0x319304[_0x2e0eec(0x21a)]:_0x122110(_0x3d08a5[_0x2e0eec(0x293)])))['subscribe'](_0x1c5538=>{const _0x502445=_0x2e0eec;this['_status$'][_0x502445(0x1c7)](_0x1c5538);}));}[_0x489d75(0x3fa)](){const _0x4826df=_0x489d75;this[_0x4826df(0x282)](this[_0x4826df(0x30e)][_0x4826df(0x342)](_0x582be1[_0x4826df(0x26d)],()=>_0x3e3817(bi({'status$':this['_status$'][_0x4826df(0x1f6)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x47b405),se(0x1,_0x202ade(_0x555a92)),se(0x2,_0x202ade(_0x5646c2)),se(0x3,_0x5749ae)],ae);function bi(_0x64f1d3){const {status$:_0x47d14a}=_0x64f1d3;return function(){return _0x2d1875(Ci,{'status$':_0x47d14a});};}const yt=_0x2d5037(_0x489d75(0x371));var Ni=Object[_0x489d75(0x38a)],Li=(_0x59251f,_0x167efe,_0x3eb4f6,_0x50e9e2)=>{const _0x22ab4a=_0x489d75;for(var _0x466542=_0x50e9e2>0x1?void 0x0:_0x50e9e2?Ni(_0x167efe,_0x3eb4f6):_0x167efe,_0xc8e0d1=_0x59251f[_0x22ab4a(0x3e1)]-0x1,_0x2d5468;_0xc8e0d1>=0x0;_0xc8e0d1--)(_0x2d5468=_0x59251f[_0xc8e0d1])&&(_0x466542=_0x2d5468(_0x466542)||_0x466542);return _0x466542;},K=(_0x2a716e,_0x2fe497)=>(_0x582e86,_0x2166a4)=>_0x2fe497(_0x582e86,_0x2166a4,_0x2a716e);let ce=class extends _0x31f19d{constructor(_0x47b78b,_0x140332,_0x1f069e,_0x5b6cbb,_0x14e1ab){const _0x3f0558=_0x489d75;super(),this[_0x3f0558(0x397)]=_0x47b78b,this[_0x3f0558(0x370)]=_0x140332,this[_0x3f0558(0x35e)]=_0x1f069e,this[_0x3f0558(0x3d8)]=_0x5b6cbb,_0x14e1ab?_0x14e1ab==null||_0x14e1ab['whenReady']()[_0x3f0558(0x2ce)](()=>this[_0x3f0558(0x2c1)]()):(this[_0x3f0558(0x370)][_0x3f0558(0x1f3)](_0x3f0558(0x231),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x3f0558(0x2c1)]());}async[_0x489d75(0x2c1)](){const _0x8b21f3=_0x489d75,_0x4323c6=this['_urlService'][_0x8b21f3(0x2d3)]('unit'),_0xe23ba5=this[_0x8b21f3(0x397)]['getParam'](_0x8b21f3(0x34b)),_0x38341d=this[_0x8b21f3(0x397)][_0x8b21f3(0x2d3)](_0x8b21f3(0x393));if(!_0x4323c6||!_0xe23ba5){this[_0x8b21f3(0x370)]['debug'](_0x8b21f3(0x231),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1aff41=await this[_0x8b21f3(0x3d8)]['loadUnit'](_0x4323c6,Number(_0xe23ba5),_0x38341d);_0x1aff41&&_0x1aff41 instanceof _0x1bcd16&&this['_setupSubUnitSync'](_0x1aff41);}async['_setupSubUnitSync'](_0x29cbd5){const _0x22dcc0=_0x489d75;await this[_0x22dcc0(0x2b9)](_0x29cbd5),_0x29cbd5[_0x22dcc0(0x1b7)][_0x22dcc0(0x2f8)](_0x2b26c7(this[_0x22dcc0(0x3c2)]))[_0x22dcc0(0x281)](_0x3f0886=>{const _0x3b3f89=_0x22dcc0;_0x3f0886&&this[_0x3b3f89(0x31b)](_0x3f0886);}),this[_0x22dcc0(0x397)][_0x22dcc0(0x265)][_0x22dcc0(0x2f8)](_0x2b26c7(this[_0x22dcc0(0x3c2)]))['subscribe'](()=>this[_0x22dcc0(0x2b9)](_0x29cbd5));}[_0x489d75(0x31b)](_0x17c4b2,_0x183afb=!0x1){const _0x3db21e=_0x489d75,_0x33699a=this[_0x3db21e(0x397)][_0x3db21e(0x2d3)](_0x3db21e(0x393));_0x17c4b2[_0x3db21e(0x25a)]()!==_0x33699a&&this[_0x3db21e(0x397)][_0x3db21e(0x25e)](_0x3db21e(0x393),_0x17c4b2['getSheetId'](),_0x183afb);}async[_0x489d75(0x2b9)](_0x1e784b){const _0x5bde39=_0x489d75;var _0x39d857;const _0x2d649c=this['_urlService']['getParam'](_0x5bde39(0x393));if(!_0x2d649c||!_0x1e784b[_0x5bde39(0x217)](_0x2d649c)){const _0x4c4582=_0x1e784b[_0x5bde39(0x32b)]()[0x0],_0x53cf9b=_0x1e784b[_0x5bde39(0x217)](_0x4c4582);if(!_0x53cf9b)return;this[_0x5bde39(0x31b)](_0x53cf9b,!0x0),await this[_0x5bde39(0x35e)]['executeCommand'](_0xa63b9e['id'],{'unitId':_0x1e784b[_0x5bde39(0x3d1)](),'subUnitId':_0x4c4582});return;}((_0x39d857=_0x1e784b[_0x5bde39(0x2e9)]())==null?void 0x0:_0x39d857[_0x5bde39(0x25a)]())!==_0x2d649c&&await this[_0x5bde39(0x35e)][_0x5bde39(0x264)](_0xa63b9e['id'],{'unitId':_0x1e784b['getUnitId'](),'subUnitId':_0x2d649c});}};ce=Li([K(0x0,yt),K(0x1,_0x5054cc),K(0x2,_0x351000),K(0x3,_0x202ade(_0x1e5780)),K(0x4,_0x5a4fd9(_0x36b1a3))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x532b92,_0x22a999,_0x5692c3,_0x24b89f)=>{const _0x1a19f9=_0x489d75;for(var _0x28fb2c=_0x24b89f>0x1?void 0x0:_0x24b89f?Ui(_0x22a999,_0x5692c3):_0x22a999,_0x129e61=_0x532b92[_0x1a19f9(0x3e1)]-0x1,_0x1812e3;_0x129e61>=0x0;_0x129e61--)(_0x1812e3=_0x532b92[_0x129e61])&&(_0x28fb2c=_0x1812e3(_0x28fb2c)||_0x28fb2c);return _0x28fb2c;},rt=(_0x1f4ba5,_0x23b37e)=>(_0x44caf1,_0x48433b)=>_0x23b37e(_0x44caf1,_0x48433b,_0x1f4ba5);let $e=class extends _0x31f19d{constructor(_0x3c77ed,_0x80cac){const _0x5d9f17=_0x489d75;super(),this[_0x5d9f17(0x33d)]=_0x3c77ed,this[_0x5d9f17(0x3aa)]=_0x80cac,this[_0x5d9f17(0x2c1)]();}[_0x489d75(0x2c1)](){const _0x103a6f=_0x489d75,_0x1a8d7a=this;this[_0x103a6f(0x282)](this[_0x103a6f(0x33d)]['addClipboardHook']({'onBeforePasteImage':async _0x573b22=>{const _0x5c5cf5=_0x103a6f,_0x4076dd=await _0x1a8d7a['_imageIoService'][_0x5c5cf5(0x259)](_0x573b22);return _0x4076dd?{'source':_0x4076dd['source'],'imageSourceType':_0x4076dd[_0x5c5cf5(0x309)]}:null;}}));}};$e=Mi([rt(0x0,_0x1dd938),rt(0x1,_0x57d99e)],$e);const ot=['purple.300',_0x489d75(0x2f0),'green.600','red.300',_0x489d75(0x234),'yellow.400'];class Ke extends _0x3d44ee{constructor(){const _0x356484=_0x489d75;super(...arguments),_(this,_0x356484(0x1bf),new Map()),_(this,_0x356484(0x1ed),0x0);}['assignAColorForMemberID'](_0x1e107f){const _0x4cccb2=_0x489d75;if(this[_0x4cccb2(0x1bf)][_0x4cccb2(0x2c8)](_0x1e107f))return this[_0x4cccb2(0x1bf)][_0x4cccb2(0x1bb)](_0x1e107f);const _0x10c66f=ot[this[_0x4cccb2(0x1ed)]];return this[_0x4cccb2(0x1ed)]=(this[_0x4cccb2(0x1ed)]+0x1)%ot[_0x4cccb2(0x3e1)],this[_0x4cccb2(0x1bf)][_0x4cccb2(0x3bc)](_0x1e107f,_0x10c66f),_0x10c66f;}}function $t(_0x562e6a){const _0x2caa7a=_0x489d75;let _0x529021='';for(const _0x4bdba4 of _0x562e6a){const {startOffset:_0x16e893,endOffset:_0x150915,isActive:_0x16c686,rangeType:_0x4fd77a,segmentId:_0x391193,segmentPage:_0x552456}=_0x4bdba4;_0x529021[_0x2caa7a(0x3e1)]&&(_0x529021+=','),_0x529021+=_0x16e893+':'+_0x150915+':'+(_0x16c686?'1':'0')+':'+_0x4fd77a+':'+_0x391193+':'+_0x552456;}return _0x529021;}function Ai(_0xfa8031){const _0x435cef=_0x489d75,_0x16cb0f=_0xfa8031['split'](','),_0x18f5ff=[];for(const _0x143bda of _0x16cb0f){const [_0x1704a2,_0x54e944,_0x2e240a,_0x3281dd,_0x2e3c1e,_0x4eba26]=_0x143bda[_0x435cef(0x1d5)](':');_0x18f5ff[_0x435cef(0x280)]({'startOffset':Number(_0x1704a2),'endOffset':Number(_0x54e944),'collapsed':_0x1704a2===_0x54e944,'isActive':_0x2e240a==='1','rangeType':_0x3281dd===_0x5c7ec8['TEXT']?_0x5c7ec8['TEXT']:_0x5c7ec8[_0x435cef(0x26a)],'segmentId':typeof _0x2e3c1e==_0x435cef(0x35c)?String(_0x2e3c1e):'','segmentPage':Number(_0x4eba26!=null?_0x4eba26:-0x1)});}return _0x18f5ff['some'](_0x5973d2=>_0x5973d2[_0x435cef(0x1e7)])||(_0x18f5ff[0x0][_0x435cef(0x1e7)]=!0x0),_0x18f5ff;}class ze extends _0x31f19d{constructor(){super(...arguments),_(this,'_collabCursorState$',new _0x3401b7(null)),_(this,'collabCursorState$',this['_collabCursorState$']['asObservable']());}[_0x489d75(0x236)](_0x1b8a07){const _0x4d7573=_0x489d75,{unitID:_0x42916a,memberID:_0x35a46e,textRanges:_0x4a24b5}=_0x1b8a07,_0x49458d=$t(_0x4a24b5);if(_0x49458d==='')return;const _0x5543a0={'unitID':_0x42916a,'memberID':_0x35a46e,'selection':_0x49458d};this[_0x4d7573(0x3f1)][_0x4d7573(0x1c7)](_0x5543a0);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x7401f5,_0x23df05,_0x37c00e,_0xc83509)=>{for(var _0x515b64=_0xc83509>0x1?void 0x0:_0xc83509?Pi(_0x23df05,_0x37c00e):_0x23df05,_0x521fde=_0x7401f5['length']-0x1,_0x324659;_0x521fde>=0x0;_0x521fde--)(_0x324659=_0x7401f5[_0x521fde])&&(_0x515b64=_0x324659(_0x515b64)||_0x515b64);return _0x515b64;},A=(_0x141040,_0x52c82c)=>(_0x48b9c9,_0x48c998)=>_0x52c82c(_0x48b9c9,_0x48c998,_0x141040);const yi=0x12c,$i=0x64;let xe=class extends _0x31f19d{constructor(_0x5ab4f8,_0x57dfbe,_0x1b1243,_0x83048f,_0x136e61,_0x292a60,_0x4c2583,_0x1d5d69,_0x36cb9b){const _0x540d33=_0x489d75;super(),_(this,_0x540d33(0x323),!0x1),_(this,_0x540d33(0x2c1),!0x1),_(this,_0x540d33(0x39a),new _0x3401b7(new Map())),_(this,_0x540d33(0x39c),this[_0x540d33(0x39a)]['asObservable']()),_(this,'_roomMembers$',new _0x3401b7([])),_(this,_0x540d33(0x21b),this['_roomMembers$'][_0x540d33(0x2f8)](_0x570ac5(yi))),_(this,'_updateLocalCursor',_0x3d7589(_0x14d903=>{const _0x3633f7=_0x540d33,_0x2a3d18={'eventID':_0x17eea9[_0x3633f7(0x1ea)],'data':{'unitID':this[_0x3633f7(0x299)],'memberID':this[_0x3633f7(0x32a)][_0x3633f7(0x272)](),'selection':$t(_0x14d903)}};this[_0x3633f7(0x32a)][_0x3633f7(0x3eb)](_0x2a3d18,this[_0x3633f7(0x299)]);},$i)),(this[_0x540d33(0x299)]=_0x5ab4f8,this[_0x540d33(0x32a)]=_0x57dfbe,this[_0x540d33(0x36a)]=_0x1b1243,this[_0x540d33(0x31f)]=_0x83048f,this[_0x540d33(0x345)]=_0x136e61,this['_syncEditingCollabCursorService']=_0x292a60,this[_0x540d33(0x2d9)]=_0x4c2583,this[_0x540d33(0x320)]=_0x1d5d69,this[_0x540d33(0x35e)]=_0x36cb9b);}get[_0x489d75(0x356)](){const _0x4e8822=_0x489d75;return this[_0x4e8822(0x39a)][_0x4e8822(0x243)]();}get[_0x489d75(0x20b)](){const _0x5e638e=_0x489d75;return this['_roomMembers$'][_0x5e638e(0x243)]();}[_0x489d75(0x1e4)](){const _0x237a6e=_0x489d75;super[_0x237a6e(0x1e4)](),this['_cursorInfo$'][_0x237a6e(0x1c7)](new Map()),this[_0x237a6e(0x39a)][_0x237a6e(0x2b6)](),this[_0x237a6e(0x270)][_0x237a6e(0x1c7)]([]),this[_0x237a6e(0x270)]['complete']();}['init'](){const _0x4abb29=_0x489d75;this['_init']||(this[_0x4abb29(0x2c1)]=!0x0,this[_0x4abb29(0x32a)][_0x4abb29(0x258)][_0x4abb29(0x2f8)](_0x2b26c7(this[_0x4abb29(0x3c2)]))[_0x4abb29(0x281)](_0x31a7f9=>{const _0x434ced=_0x4abb29;_0x31a7f9===_0x3c6c6c[_0x434ced(0x223)]?this[_0x434ced(0x1da)]():this['_toggleOffline']();}),this[_0x4abb29(0x32a)][_0x4abb29(0x220)][_0x4abb29(0x2f8)](_0x2b26c7(this[_0x4abb29(0x3c2)]))['subscribe'](_0x47d8a3=>{const _0x340234=_0x4abb29,_0x5b247b=_0x47d8a3[_0x340234(0x374)];_0x5b247b===_0x17eea9[_0x340234(0x1ea)]&&this['_onCursorUpdate'](_0x47d8a3),_0x5b247b===_0x17eea9['USERS_LEAVE']&&this[_0x340234(0x316)](_0x47d8a3);}),this['disposeWithMe'](this[_0x4abb29(0x35e)]['onCommandExecuted'](_0x534d1a=>{const _0x42cddc=_0x4abb29,_0x4b2695=_0x534d1a[_0x42cddc(0x388)];_0x4b2695!=null&&this['_online']&&_0x534d1a['id']===_0x33f871['id']&&_0x4b2695[_0x42cddc(0x373)]===this[_0x42cddc(0x299)]&&_0x4b2695[_0x42cddc(0x352)]===!0x1&&_0x4b2695[_0x42cddc(0x326)][_0x42cddc(0x3e1)]>0x0&&this['_updateLocalCursor'](_0x4b2695[_0x42cddc(0x326)]);})),this[_0x4abb29(0x3ef)][_0x4abb29(0x1d6)][_0x4abb29(0x2f8)](_0x2b26c7(this[_0x4abb29(0x3c2)]))[_0x4abb29(0x281)](_0x34ce87=>{const _0x542c7b=_0x4abb29;if((_0x34ce87==null?void 0x0:_0x34ce87[_0x542c7b(0x299)])!==this['unitID'])return;const _0x21540a={'eventID':_0x17eea9[_0x542c7b(0x1ea)],'data':_0x34ce87};this[_0x542c7b(0x28f)](_0x21540a);}),this[_0x4abb29(0x282)](this[_0x4abb29(0x35e)][_0x4abb29(0x389)](_0x1a6dcc=>{const _0x2a9813=_0x4abb29;if(_0x1a6dcc[_0x2a9813(0x388)]==null)return;const _0xda73f3=_0x1a6dcc[_0x2a9813(0x388)];if(_0x1a6dcc['id']!==_0x2b458e['id']||_0xda73f3[_0x2a9813(0x373)]!==this['unitID'])return;const _0x5c9fb5={'id':_0x2a9813(0x1cb),'params':_0xda73f3},_0x4d1240=this[_0x2a9813(0x356)];for(const [_0x15157c,_0x70f314]of _0x4d1240){const _0x447cd6={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x70f314[_0x2a9813(0x326)]}},_0x1b6efe=this[_0x2a9813(0x2d9)]['transformMutation'](_0x5c9fb5,_0x447cd6,!0x1);if(_0x262860(_0x1b6efe))throw _0x1b6efe[_0x2a9813(0x206)];_0x4d1240[_0x2a9813(0x3bc)](_0x15157c,{..._0x70f314,'ranges':_0x1b6efe[_0x2a9813(0x286)][_0x2a9813(0x388)]['textRanges']});}queueMicrotask(()=>{const _0x40dfa5=_0x2a9813;this[_0x40dfa5(0x39a)][_0x40dfa5(0x1c7)](_0x4d1240);});})));}[_0x489d75(0x28f)](_0x1ab3e0){const _0x21e206=_0x489d75;var _0x2fc0fa,_0x3b10ae;const {memberID:_0x3f2a7e,selection:_0xd40b70}=_0x1ab3e0[_0x21e206(0x2d5)],_0x2630cb=Ai(_0xd40b70),_0x1c4963=(_0x3b10ae=(_0x2fc0fa=this[_0x21e206(0x345)][_0x21e206(0x2d7)](this[_0x21e206(0x299)],_0x3f2a7e))==null?void 0x0:_0x2fc0fa[_0x21e206(0x3ea)])!=null?_0x3b10ae:'Unknown\x20user',_0x304d8e={'color':this['_colorAssignService'][_0x21e206(0x283)](_0x3f2a7e),'name':_0x1c4963,'ranges':_0x2630cb},_0x597f8d=this[_0x21e206(0x356)];_0x597f8d[_0x21e206(0x3bc)](_0x3f2a7e,_0x304d8e),this[_0x21e206(0x39a)][_0x21e206(0x1c7)](_0x597f8d);}[_0x489d75(0x316)](_0x5a1712){const _0x17781e=_0x489d75,{memberID:_0x1f5eaa}=_0x5a1712[_0x17781e(0x2d5)],_0x1a8805=this['cursorInfo'];_0x1a8805['delete'](_0x1f5eaa),this[_0x17781e(0x39a)]['next'](_0x1a8805);}[_0x489d75(0x1da)](){const _0x5d46ed=_0x489d75;var _0x4714c2;if(this[_0x5d46ed(0x323)]=!0x0,((_0x4714c2=this['_univerInstanceService'][_0x5d46ed(0x2d4)]())==null?void 0x0:_0x4714c2[_0x5d46ed(0x3d1)]())!==this[_0x5d46ed(0x299)])return;const _0x6f7489=this[_0x5d46ed(0x36a)][_0x5d46ed(0x1bb)](_0x577a3f)[_0x5d46ed(0x25b)]();Array[_0x5d46ed(0x2dd)](_0x6f7489)&&_0x6f7489[_0x5d46ed(0x3e1)]>0x0&&this[_0x5d46ed(0x28a)](_0x6f7489);}['_toggleOffline'](){const _0x45cfe5=_0x489d75;this[_0x45cfe5(0x323)]=!0x1;}};xe=wi([A(0x2,_0x202ade(_0x555a92)),A(0x3,_0x202ade(Ke)),A(0x4,_0x202ade(_0x259356)),A(0x5,_0x202ade(ze)),A(0x6,_0x5ba33c),A(0x7,_0x47b405),A(0x8,_0x351000)],xe);var xi=Object[_0x489d75(0x38a)],Bi=(_0x7caa0,_0x28c24c,_0x1d8ebb,_0x30e375)=>{const _0x5232c6=_0x489d75;for(var _0x4c2d07=_0x30e375>0x1?void 0x0:_0x30e375?xi(_0x28c24c,_0x1d8ebb):_0x28c24c,_0x3ba04e=_0x7caa0[_0x5232c6(0x3e1)]-0x1,_0x1f05a1;_0x3ba04e>=0x0;_0x3ba04e--)(_0x1f05a1=_0x7caa0[_0x3ba04e])&&(_0x4c2d07=_0x1f05a1(_0x4c2d07)||_0x4c2d07);return _0x4c2d07;},B=(_0x26e8f9,_0x47ccaf)=>(_0x290750,_0x1b0197)=>_0x47ccaf(_0x290750,_0x1b0197,_0x26e8f9);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x265958=[],_0x204934=!0x1;return _0x400e58=>{_0x265958['push'](_0x400e58),_0x204934||(_0x204934=!0x0,setTimeout(()=>{_0x265958['forEach'](_0x3ad4d6=>_0x3ad4d6()),_0x265958=[],_0x204934=!0x1;}));};};let Be=class extends _0x31f19d{constructor(_0x3640bd,_0x1ad16d,_0x26eb2d,_0x3467c3,_0x422a54,_0x598905,_0x20696b,_0x23f7aa){const _0x2f411a=_0x489d75;super(),_(this,_0x2f411a(0x323),!0x1),_(this,_0x2f411a(0x2c1),!0x1),_(this,'_cursorInfo$',new _0x3401b7(new Map())),_(this,_0x2f411a(0x39c),this[_0x2f411a(0x39a)][_0x2f411a(0x1f6)]()),_(this,'_roomMembers$',new _0x3401b7([])),_(this,_0x2f411a(0x21b),this[_0x2f411a(0x270)]['pipe'](_0x570ac5(Fi))),_(this,_0x2f411a(0x28a),_0x3d7589((_0x4480b4,_0xac3360)=>{const _0x34c48e=_0x2f411a,_0x4cf892={'eventID':_0x17eea9[_0x34c48e(0x1ea)],'data':{'unitID':this[_0x34c48e(0x299)],'memberID':this[_0x34c48e(0x32a)][_0x34c48e(0x272)](),'selection':_0x457a6b(_0x4480b4,_0xac3360[_0x34c48e(0x2e2)])}};this['_session']['send'](_0x4cf892,this[_0x34c48e(0x299)]);},ki)),(this[_0x2f411a(0x299)]=_0x3640bd,this[_0x2f411a(0x32a)]=_0x1ad16d,this[_0x2f411a(0x36a)]=_0x26eb2d,this[_0x2f411a(0x31f)]=_0x3467c3,this[_0x2f411a(0x345)]=_0x422a54,this[_0x2f411a(0x320)]=_0x598905,this[_0x2f411a(0x35e)]=_0x20696b,this[_0x2f411a(0x253)]=_0x23f7aa);}get[_0x489d75(0x356)](){const _0x2642a2=_0x489d75;return this[_0x2642a2(0x39a)][_0x2642a2(0x243)]();}get[_0x489d75(0x20b)](){const _0x1c8d1e=_0x489d75;return this['_roomMembers$'][_0x1c8d1e(0x243)]();}['dispose'](){const _0x53a0c9=_0x489d75;super['dispose'](),this[_0x53a0c9(0x39a)][_0x53a0c9(0x1c7)](new Map()),this[_0x53a0c9(0x39a)]['complete'](),this[_0x53a0c9(0x270)][_0x53a0c9(0x1c7)]([]),this[_0x53a0c9(0x270)][_0x53a0c9(0x2b6)]();}['init'](){const _0x430ed4=_0x489d75;this['_init']||(this[_0x430ed4(0x2c1)]=!0x0,this[_0x430ed4(0x32a)]['sessionStatus$'][_0x430ed4(0x2f8)](_0x2b26c7(this['dispose$']))[_0x430ed4(0x281)](_0x149f58=>{const _0x152469=_0x430ed4;_0x149f58===_0x3c6c6c[_0x152469(0x223)]?this[_0x152469(0x1da)]():this['_toggleOffline']();}),this['_session'][_0x430ed4(0x220)][_0x430ed4(0x2f8)](_0x2b26c7(this['dispose$']))[_0x430ed4(0x281)](_0x3a0059=>{const _0x105034=_0x430ed4,_0x515e01=_0x3a0059[_0x105034(0x374)];_0x515e01===_0x17eea9[_0x105034(0x1ea)]&&this[_0x105034(0x28f)](_0x3a0059),_0x515e01===_0x17eea9[_0x105034(0x2e6)]&&this['_onCursorDelete'](_0x3a0059);}),this[_0x430ed4(0x327)](),this['disposeWithMe'](this['_commandService'][_0x430ed4(0x389)](_0x1cfddc=>{const _0x5c2bd0=_0x430ed4;if(this[_0x5c2bd0(0x323)]&&_0x1cfddc['id']===_0x119524['id']&&_0x1cfddc[_0x5c2bd0(0x388)][_0x5c2bd0(0x373)]===this[_0x5c2bd0(0x299)]){const _0x1a1ca2=_0x1cfddc[_0x5c2bd0(0x388)];this[_0x5c2bd0(0x28a)](_0x1a1ca2[_0x5c2bd0(0x200)],_0x1a1ca2[_0x5c2bd0(0x27d)][0x0]);}})));}[_0x489d75(0x28f)](_0x4ab60e){const _0xe8a965=_0x489d75;var _0x16f1a5,_0x5a558b;const {memberID:_0x55df91,selection:_0x37a2c4}=_0x4ab60e[_0xe8a965(0x2d5)],{sheetName:_0x3908a6,range:_0x5d9f3f}=_0x1a0a9b(_0x37a2c4),_0x5aaa63={'name':(_0x5a558b=(_0x16f1a5=this['_memberService'][_0xe8a965(0x2d7)](this[_0xe8a965(0x299)],_0x55df91))==null?void 0x0:_0x16f1a5[_0xe8a965(0x3ea)])!=null?_0x5a558b:'Unknown\x20user','range':this[_0xe8a965(0x30a)](_0x3908a6,_0x5d9f3f),'sheetID':_0x3908a6,'color':this[_0xe8a965(0x31f)][_0xe8a965(0x283)](_0x55df91),'selection':_0x37a2c4},_0x58f937=this[_0xe8a965(0x356)];_0x58f937[_0xe8a965(0x3bc)](_0x55df91,_0x5aaa63),this['_cursorInfo$'][_0xe8a965(0x1c7)](_0x58f937);}[_0x489d75(0x316)](_0x254358){const _0x4dbaf0=_0x489d75,{memberID:_0xa22e9f}=_0x254358[_0x4dbaf0(0x2d5)],_0x531e88=this[_0x4dbaf0(0x356)];_0x531e88['delete'](_0xa22e9f),this[_0x4dbaf0(0x39a)][_0x4dbaf0(0x1c7)](_0x531e88);}[_0x489d75(0x30a)](_0x433e9f,_0x1b1abd){const _0x3443cc=_0x489d75;var _0x58a329,_0x5f4412;const _0xcf4cc=(_0x5f4412=(_0x58a329=this[_0x3443cc(0x320)]['getUniverSheetInstance'](this[_0x3443cc(0x299)]))==null?void 0x0:_0x58a329['getSheetBySheetId'](_0x433e9f))==null?void 0x0:_0x5f4412['getMergeData']();return(_0xcf4cc==null?void 0x0:_0xcf4cc[_0x3443cc(0x399)](_0x549112=>_0x351be5[_0x3443cc(0x382)](_0x549112,_0x1b1abd)))||_0x1b1abd;}[_0x489d75(0x327)](){const _0x3da82f=_0x489d75,_0x270877=new _0xc78201(),_0x3fc4dc=Hi(),_0x42bdd5=()=>{const _0x19b44c=_0x3fba;_0x270877[_0x19b44c(0x1e4)]();const _0x251b5b=(_0x15d213,_0x1400eb,_0x45013e,_0x4a13f9)=>{const _0x27d1d0=_0x19b44c;let _0x5d5452=[];switch(_0x15d213['id']){case _0x3de3c0['DeleteRangeMoveLeftCommandId']:{_0x5d5452=_0x52f814(_0x15d213,_0x4a13f9);break;}case _0x3de3c0[_0x27d1d0(0x1ee)]:{_0x5d5452=_0x5bacd1(_0x15d213,_0x4a13f9);break;}case _0x3de3c0['InsertColCommandId']:{_0x5d5452=_0x1adc47(_0x15d213,_0x4a13f9);break;}case _0x3de3c0[_0x27d1d0(0x2f5)]:{_0x5d5452=_0x5711bb(_0x15d213,_0x4a13f9);break;}case _0x3de3c0[_0x27d1d0(0x1c2)]:{_0x5d5452=_0x2298d1(_0x15d213,_0x4a13f9);break;}case _0x3de3c0[_0x27d1d0(0x1f4)]:{_0x5d5452=_0x1e4b33(_0x15d213,_0x4a13f9);break;}case _0x3de3c0[_0x27d1d0(0x1bd)]:{_0x5d5452=_0x527cea(_0x15d213,_0x4a13f9);break;}case _0x3de3c0[_0x27d1d0(0x318)]:{_0x5d5452=_0x1142a5(_0x15d213,_0x4a13f9);break;}case _0x3de3c0[_0x27d1d0(0x38c)]:{_0x5d5452=_0x223d6b(_0x15d213,_0x4a13f9);break;}}const _0x401d41=_0x49d809(_0x5d5452,_0x4a13f9),_0x4713ab=this[_0x27d1d0(0x356)]['get'](_0x1400eb);if(_0x4713ab&&_0x401d41){const _0x45c840={..._0x4713ab,'range':_0x401d41};this[_0x27d1d0(0x356)][_0x27d1d0(0x3bc)](_0x1400eb,_0x45c840),_0x3fc4dc(()=>{const _0x101cdd=_0x27d1d0,_0x4a7089=this[_0x101cdd(0x253)]['registerRefRange'](_0x401d41,_0x13bde8=>(_0x4a7089[_0x101cdd(0x1e4)](),_0x251b5b(_0x13bde8,_0x1400eb,_0x45013e,_0x401d41)));_0x270877[_0x101cdd(0x2ae)](_0x4a7089);});}return{'redos':[],'undos':[]};};this[_0x19b44c(0x356)][_0x19b44c(0x358)]((_0x2b3d02,_0x48120e)=>{const _0x133617=_0x19b44c,{range:_0x47d45b,sheetID:_0x1a642d}=_0x2b3d02,_0x4edfdd=this[_0x133617(0x253)][_0x133617(0x24a)](_0x47d45b,_0x1cf158=>(_0x4edfdd[_0x133617(0x1e4)](),_0x251b5b(_0x1cf158,_0x48120e,_0x1a642d,_0x47d45b)));_0x270877[_0x133617(0x2ae)](_0x4edfdd);});};this[_0x3da82f(0x282)](_0x467256(this[_0x3da82f(0x39a)][_0x3da82f(0x281)](()=>{_0x42bdd5();})));}[_0x489d75(0x1da)](){const _0x14d980=_0x489d75;var _0x3e208f,_0x1fdeee;if(this[_0x14d980(0x323)]=!0x0,((_0x3e208f=this[_0x14d980(0x320)][_0x14d980(0x2d4)]())==null?void 0x0:_0x3e208f[_0x14d980(0x3d1)]())!==this[_0x14d980(0x299)])return;const _0x219e9d=(_0x1fdeee=this[_0x14d980(0x36a)][_0x14d980(0x1bb)](_0x2158f9)[_0x14d980(0x37b)]())==null?void 0x0:_0x1fdeee[0x0],_0x10d9fc=this[_0x14d980(0x320)]['getCurrentUnitForType'](_0x38bec1[_0x14d980(0x2c6)])[_0x14d980(0x2e9)]();_0x219e9d&&_0x10d9fc&&this['_updateLocalCursor'](_0x10d9fc[_0x14d980(0x25a)](),_0x219e9d);}['_toggleOffline'](){const _0x9036d=_0x489d75;this[_0x9036d(0x323)]=!0x1;}};Be=Bi([B(0x2,_0x202ade(_0x555a92)),B(0x3,_0x202ade(Ke)),B(0x4,_0x202ade(_0x259356)),B(0x5,_0x47b405),B(0x6,_0x351000),B(0x7,_0x202ade(_0x47195b))],Be);var Yi=Object[_0x489d75(0x38a)],Wi=(_0x1a07f1,_0x453d24,_0x55f504,_0x3af3a4)=>{const _0x4305a0=_0x489d75;for(var _0x5bb2c9=_0x3af3a4>0x1?void 0x0:_0x3af3a4?Yi(_0x453d24,_0x55f504):_0x453d24,_0x209eb9=_0x1a07f1[_0x4305a0(0x3e1)]-0x1,_0x3376a9;_0x209eb9>=0x0;_0x209eb9--)(_0x3376a9=_0x1a07f1[_0x209eb9])&&(_0x5bb2c9=_0x3376a9(_0x5bb2c9)||_0x5bb2c9);return _0x5bb2c9;},Ce=(_0x373597,_0x27c509)=>(_0x24dc17,_0x53df61)=>_0x27c509(_0x24dc17,_0x53df61,_0x373597);let H=class extends _0x31f19d{constructor(_0x5d743d,_0x526cbc,_0x2aad65){const _0x32c55f=_0x489d75;super(),_(this,_0x32c55f(0x28c),new Map()),_(this,_0x32c55f(0x2d1),new _0x438db8()),(this[_0x32c55f(0x320)]=_0x5d743d,this[_0x32c55f(0x36a)]=_0x526cbc,this[_0x32c55f(0x2b1)]=_0x2aad65,this[_0x32c55f(0x2c1)]());}[_0x489d75(0x1e4)](){const _0x1362b0=_0x489d75;super[_0x1362b0(0x1e4)](),this['_entityInit$'][_0x1362b0(0x2b6)](),this['_entities']['forEach'](_0x59e2b8=>_0x59e2b8[_0x1362b0(0x1e4)]());}['getCollabCursors$'](_0x14052b){const _0x28496c=_0x489d75;return this['_entities'][_0x28496c(0x2c8)](_0x14052b)?this[_0x28496c(0x28c)][_0x28496c(0x1bb)](_0x14052b)['cursorInfo$']:this[_0x28496c(0x2d1)][_0x28496c(0x2f8)](_0x364d12(_0x36e124=>_0x36e124['unitID']===_0x14052b),_0x5965ec(_0x58e787=>_0x58e787[_0x28496c(0x39c)]));}['_init'](){const _0x3910b8=_0x489d75;this['_univerInstanceService'][_0x3910b8(0x3ed)](_0x38bec1['UNIVER_SHEET'])['pipe'](_0x2b26c7(this[_0x3910b8(0x3c2)]))['subscribe'](async _0x5a6e7e=>{const _0x45de30=_0x3910b8,_0x558074=_0x5a6e7e['getUnitId'](),_0x5a682b=await this[_0x45de30(0x3e4)](_0x558074);this[_0x45de30(0x2d1)][_0x45de30(0x1c7)](_0x5a682b),this[_0x45de30(0x28c)][_0x45de30(0x3bc)](_0x558074,_0x5a682b);}),this[_0x3910b8(0x320)][_0x3910b8(0x3ed)](_0x38bec1[_0x3910b8(0x25f)])[_0x3910b8(0x2f8)](_0x2b26c7(this['dispose$']))[_0x3910b8(0x2f8)](_0x364d12(_0x4a1c81=>!_0x4a1c81[_0x3910b8(0x3d1)]()['startsWith']('__')))['subscribe'](async _0x374c88=>{const _0x240f3e=_0x3910b8,_0x3a76cf=_0x374c88[_0x240f3e(0x3d1)](),_0x4618c7=await this[_0x240f3e(0x29c)](_0x3a76cf);this[_0x240f3e(0x2d1)][_0x240f3e(0x1c7)](_0x4618c7),this[_0x240f3e(0x28c)]['set'](_0x3a76cf,_0x4618c7);}),_0x50692b(this[_0x3910b8(0x320)][_0x3910b8(0x2d0)](_0x38bec1[_0x3910b8(0x25f)]),this[_0x3910b8(0x320)]['getTypeOfUnitDisposed$'](_0x38bec1[_0x3910b8(0x2c6)]))[_0x3910b8(0x2f8)](_0x2b26c7(this[_0x3910b8(0x3c2)]))['subscribe'](_0x45606e=>{const _0x19a018=_0x3910b8,_0x49f1a6=_0x45606e[_0x19a018(0x3d1)](),_0x2cc096=this[_0x19a018(0x28c)]['get'](_0x49f1a6);_0x2cc096&&(_0x2cc096[_0x19a018(0x1e4)](),this[_0x19a018(0x28c)][_0x19a018(0x249)](_0x49f1a6));});}async[_0x489d75(0x3e4)](_0x594a6c){const _0x4efc6a=_0x489d75,_0x434426=await this[_0x4efc6a(0x2b1)][_0x4efc6a(0x288)](_0x594a6c),_0x532448=this[_0x4efc6a(0x36a)][_0x4efc6a(0x2c3)](Be,_0x594a6c,_0x434426);return _0x532448[_0x4efc6a(0x3a0)](),_0x532448;}async['_startDocCollabCursor'](_0x1489c8){const _0x479b0a=_0x489d75,_0x406a08=await this['_collabSessionService']['requireSession'](_0x1489c8),_0x19f365=this[_0x479b0a(0x36a)][_0x479b0a(0x2c3)](xe,_0x1489c8,_0x406a08);return _0x19f365[_0x479b0a(0x3a0)](),_0x19f365;}};H=Wi([Ce(0x0,_0x47b405),Ce(0x1,_0x202ade(_0x555a92)),Ce(0x2,_0x202ade(_0x2bac2d))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x137e81,_0x17390f){const _0x289f47=_0x489d75;let {radius:_0x3c0e2e,width:_0x15393b,height:_0x3ddd26}=_0x17390f;_0x3c0e2e=_0x3c0e2e!=null?_0x3c0e2e:0x0,_0x15393b=_0x15393b!=null?_0x15393b:0x1e,_0x3ddd26=_0x3ddd26!=null?_0x3ddd26:0x1e;let _0x389dd4=0x0,_0x2e0f59=0x0,_0x16ba56=0x0;_0x389dd4=_0x2e0f59=_0x16ba56=Math[_0x289f47(0x1c0)](_0x3c0e2e,_0x15393b/0x2,_0x3ddd26/0x2),_0x137e81[_0x289f47(0x351)](),_0x137e81['moveTo'](_0x389dd4,0x0),_0x137e81[_0x289f47(0x311)](_0x15393b-_0x2e0f59,0x0),_0x137e81[_0x289f47(0x3d7)](_0x15393b-_0x2e0f59,_0x2e0f59,_0x2e0f59,Math['PI']*0x3/0x2,0x0,!0x1),_0x137e81[_0x289f47(0x311)](_0x15393b,_0x3ddd26-_0x16ba56),_0x137e81[_0x289f47(0x3d7)](_0x15393b-_0x16ba56,_0x3ddd26-_0x16ba56,_0x16ba56,0x0,Math['PI']/0x2,!0x1),_0x137e81[_0x289f47(0x311)](0x0,_0x3ddd26),_0x137e81[_0x289f47(0x311)](0x0,_0x389dd4),_0x137e81[_0x289f47(0x3d7)](_0x389dd4,_0x389dd4,_0x389dd4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x137e81['closePath'](),_0x17390f[_0x289f47(0x3e7)]&&(_0x137e81[_0x289f47(0x380)](),_0x137e81[_0x289f47(0x26b)]=_0x17390f['fill'],_0x17390f['fillRule']===_0x289f47(0x257)?_0x137e81['fill'](_0x289f47(0x257)):_0x137e81[_0x289f47(0x3e7)](),_0x137e81[_0x289f47(0x3ab)]());}class Ee extends _0x51b69f{constructor(_0x17252e,_0x13848c){const _0x1db84f=_0x489d75;super(_0x17252e,_0x13848c),_(this,_0x1db84f(0x1f9)),_(this,_0x1db84f(0x396)),(this['color']=_0x13848c==null?void 0x0:_0x13848c['color'],this['text']=_0x13848c==null?void 0x0:_0x13848c['text']);}static[_0x489d75(0x255)](_0x52d200,_0x30cd49){const _0x56146f=_0x489d75,{text:_0x20dfea,color:_0x41258f}=_0x30cd49;_0x52d200['save'](),_0x52d200[_0x56146f(0x310)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0xa42303=_0x52d200[_0x56146f(0x1c4)](_0x20dfea)[_0x56146f(0x360)],_0x5044c9=Math['min'](_0xa42303+0x2*Re,at);Vi(_0x52d200,{'height':Q,'radius':0x4,'width':_0x5044c9,'fill':_0x41258f}),_0x52d200[_0x56146f(0x26b)]=_0x56146f(0x3b1);const _0x1a2cf3=Re,_0x194f98=Q-ji,_0xfba65f=at-0x2*Re;if(_0xa42303>_0xfba65f){let _0x598b48='',_0x18dd6d=0x0;for(const _0xd17bbb of _0x20dfea){const _0x4911f9=_0x52d200[_0x56146f(0x1c4)](_0xd17bbb)[_0x56146f(0x360)];if(_0x18dd6d+_0x4911f9<=_0xfba65f-_0x52d200[_0x56146f(0x1c4)](_0x56146f(0x254))[_0x56146f(0x360)])_0x598b48+=_0xd17bbb,_0x18dd6d+=_0x4911f9;else{_0x598b48+=_0x56146f(0x254);break;}}_0x52d200[_0x56146f(0x1d2)](_0x598b48,_0x1a2cf3,_0x194f98);}else _0x52d200['fillText'](_0x20dfea,_0x1a2cf3,_0x194f98);_0x52d200[_0x56146f(0x3ab)]();}['_draw'](_0x3faa87){const _0x3fdf36=_0x489d75;Ee[_0x3fdf36(0x255)](_0x3faa87,this);}}const De=_0x489d75(0x3bf),Xi=_0x489d75(0x367),Gi=_0x489d75(0x2de),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x489d75(0x332);class ct{constructor(_0x12ccfa,_0x2a16a5,_0x81e895,_0x168af7){const _0x32eec5=_0x489d75;_(this,_0x32eec5(0x302),[]),_(this,_0x32eec5(0x29f),null),_(this,_0x32eec5(0x39d),null),_(this,_0x32eec5(0x273),null),_(this,'_hideTimer',null),_(this,_0x32eec5(0x2b3),null),(this[_0x32eec5(0x3b7)]=_0x12ccfa,this[_0x32eec5(0x3a6)]=_0x2a16a5,this[_0x32eec5(0x38e)]=_0x81e895,this[_0x32eec5(0x3b2)]=_0x168af7,this['_render']());}set['_hover'](_0x485f8a){const _0x19d4ef=_0x489d75;_0x485f8a?(this['_anchorDot']&&this[_0x19d4ef(0x273)]['hide'](),this['_textBubble']&&this['_textBubble'][_0x19d4ef(0x2b5)]()):(this['_anchorDot']&&this[_0x19d4ef(0x273)][_0x19d4ef(0x2b5)](),this[_0x19d4ef(0x39d)]&&this[_0x19d4ef(0x39d)][_0x19d4ef(0x333)]());}['dispose'](){const _0x392404=_0x489d75;for(const _0x56402f of this[_0x392404(0x302)])_0x56402f[_0x392404(0x1e4)]();this[_0x392404(0x39d)]&&this[_0x392404(0x39d)][_0x392404(0x1e4)](),this[_0x392404(0x273)]&&this[_0x392404(0x273)]['dispose'](),this['_anchor']&&this[_0x392404(0x29f)]['dispose'](),this[_0x392404(0x2b3)]&&this[_0x392404(0x2b3)]();}[_0x489d75(0x1c8)](){const _0x14db69=_0x489d75;var _0x20e4e6;const {_docSkeleton:_0x4ae5e7,_document:_0x25c3fd}=this,{color:_0x233aca,name:_0x2b1992,ranges:_0x559464}=this[_0x14db69(0x3b7)],_0x1aa508=_0x25c3fd['getOffsetConfig'](),{docsLeft:_0x35584d,docsTop:_0x1289bc}=_0x1aa508,_0x1c1ce3=new _0xaa3d1c(_0x1aa508,_0x4ae5e7);for(const {startOffset:_0x218676,endOffset:_0x5aa21e,rangeType:_0x4ae30f,segmentId:_0x1956f3,segmentPage:_0x270a39,collapsed:_0x57e063,isActive:_0x277392}of _0x559464){const _0x1d5da7=_0x4ae5e7[_0x14db69(0x1fc)](_0x218676,!0x0,_0x1956f3,_0x270a39);let _0x321dcb=_0x4ae5e7[_0x14db69(0x1fc)](_0x5aa21e,!0x0,_0x1956f3,_0x270a39);if(_0x321dcb==null&&(_0x321dcb=_0x4ae5e7['findNodePositionByCharIndex'](_0x5aa21e-0x1,!0x1,_0x1956f3,_0x270a39)),_0x277392){const {contentBoxPointGroup:_0x3f81de}=_0x1c1ce3[_0x14db69(0x355)](_0x321dcb,_0x321dcb);if(_0x3f81de[_0x14db69(0x3e1)]===0x0)continue;this[_0x14db69(0x3a7)](_0x233aca,_0x3f81de,_0x35584d,_0x1289bc,_0x2b1992),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x1d5da7&&_0x321dcb){if(_0x4ae30f===_0x5c7ec8[_0x14db69(0x26a)]){const _0x34a9a8=new _0x262336(_0x1aa508,_0x4ae5e7),{pointGroup:_0x2a3bc1}=(_0x20e4e6=_0x34a9a8[_0x14db69(0x355)](_0x1d5da7,_0x321dcb))!=null?_0x20e4e6:{};if(_0x2a3bc1==null||_0x2a3bc1[_0x14db69(0x3e1)]===0x0)continue;this[_0x14db69(0x235)](_0x233aca,_0x2a3bc1,_0x35584d,_0x1289bc);}else{if(!_0x57e063){const {borderBoxPointGroup:_0x591b0e}=_0x1c1ce3[_0x14db69(0x355)](_0x1d5da7,_0x321dcb);if(_0x591b0e[_0x14db69(0x3e1)]===0x0)continue;this[_0x14db69(0x312)](_0x233aca,_0x591b0e,_0x35584d,_0x1289bc);}}}}}[_0x489d75(0x3a7)](_0x18de3a,_0x5d926e,_0x142b7e,_0xc0b32c,_0x501eb1){const _0x1e8fbd=_0x489d75,_0x374742=this[_0x1e8fbd(0x359)](_0x5d926e),{left:_0x4e8c11,top:_0x5c4498,height:_0x5576ba}=_0x374742,_0xc0aab3=this['_getScale'](),_0x319723=zi/_0xc0aab3,_0x5435bb=new _0x4990a2(De+_0x50b639(z),{'left':_0x4e8c11+_0x142b7e-_0x319723,'top':_0x5c4498+_0xc0b32c,'height':_0x5576ba,'width':Ki,'fill':_0x18de3a||_0x175d22(_0x1bb053[_0x1e8fbd(0x2bd)],0x0),'strokeWidth':_0x319723,'stroke':Ji,'evented':!0x0});this[_0x1e8fbd(0x29f)]=_0x5435bb,this[_0x1e8fbd(0x3a6)][_0x1e8fbd(0x203)](_0x5435bb,_0x324c2c);const _0x3968c1=new _0x4990a2(De+_0x50b639(z),{'left':_0x4e8c11+_0x142b7e-_0x319723,'top':_0x5c4498+_0xc0b32c-be/0x2,'height':be,'width':be,'fill':_0x18de3a||_0x175d22(_0x1bb053['black'],0x0),'strokeWidth':0x0,'stroke':_0x18de3a||_0x175d22(_0x1bb053[_0x1e8fbd(0x2bd)],0x0),'evented':!0x1});this[_0x1e8fbd(0x273)]=_0x3968c1,this['_scene'][_0x1e8fbd(0x203)](_0x3968c1,_0x324c2c);const _0x48a58c=new Ee(De+_0x50b639(z),{'left':_0x4e8c11+_0x142b7e-_0x319723,'top':_0x5c4498+_0xc0b32c-Q,'text':_0x501eb1,'color':_0x18de3a});this[_0x1e8fbd(0x39d)]=_0x48a58c,this[_0x1e8fbd(0x3a6)]['addObject'](_0x48a58c,_0x324c2c),this['_hover']=!0x1;}['_handleHover'](){const _0x4bebd4=_0x489d75,_0x34c60b=this['_anchor']['onPointerEnter$']['subscribeEvent'](()=>{const _0x5b5eeb=_0x3fba;this[_0x5b5eeb(0x375)]=!0x0;}),_0x275c2b=this['_anchor'][_0x4bebd4(0x338)]['subscribeEvent'](()=>{const _0x342b5f=_0x4bebd4;this[_0x342b5f(0x1fb)]&&clearTimeout(this[_0x342b5f(0x1fb)]),this[_0x342b5f(0x1fb)]=setTimeout(()=>{const _0x4a214a=_0x342b5f;this[_0x4a214a(0x375)]=!0x1;},0x7d0);});return()=>{const _0x1e05df=_0x4bebd4;_0x34c60b[_0x1e05df(0x3a1)](),_0x275c2b['unsubscribe']();};}[_0x489d75(0x312)](_0x203c1e,_0xb88b71,_0x249887,_0x1541df){const _0x31913b=_0x489d75,_0x5bb12c=new _0x5c342e(_0x203c1e)['setAlpha'](0.2)['toRgbString'](),_0x11bf3e=new _0x2c1f20(Xi+_0x50b639(z),{'pointsGroup':_0xb88b71,'fill':_0x5bb12c||_0x175d22(_0x1bb053['black'],0.2),'left':_0x249887,'top':_0x1541df,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x31913b(0x302)][_0x31913b(0x280)](_0x11bf3e),this[_0x31913b(0x3a6)]['addObject'](_0x11bf3e,_0x324c2c);}[_0x489d75(0x235)](_0x3f8611,_0x50a9e4,_0x5cdafa,_0x16229f){const _0x26eeed=_0x489d75,_0x5b62c2=new _0x5c342e(_0x3f8611)[_0x26eeed(0x343)](0.2)[_0x26eeed(0x2fa)](),_0x1dbf84=new _0x2c1f20(Gi+_0x50b639(z),{'pointsGroup':_0x50a9e4,'fill':_0x5b62c2||_0x175d22(_0x1bb053[_0x26eeed(0x2bd)],0.2),'left':_0x5cdafa,'top':_0x16229f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x26eeed(0x302)][_0x26eeed(0x280)](_0x1dbf84),this[_0x26eeed(0x3a6)]['addObject'](_0x1dbf84,_0x324c2c);}[_0x489d75(0x359)](_0x1c9d36){const _0x478e5b=_0x1c9d36[0x0],_0x447b4c=_0x478e5b[0x0],_0x38d8ec=_0x478e5b[0x2],{x:_0x3338ab,y:_0xb69c77}=_0x447b4c,{x:_0x203558,y:_0x156284}=_0x38d8ec;return{'left':_0x3338ab,'top':_0xb69c77,'width':_0x203558-_0x3338ab,'height':_0x156284-_0xb69c77};}[_0x489d75(0x2be)](){const _0x4867a9=_0x489d75,{scaleX:_0x3bf2c5,scaleY:_0x2ff041}=this['_scene'][_0x4867a9(0x27e)]();return Math[_0x4867a9(0x2af)](_0x3bf2c5,_0x2ff041);}}var Zi=Object[_0x489d75(0x38a)],Qi=(_0x180703,_0x553331,_0x43eef1,_0x42ac0e)=>{const _0x3a9a23=_0x489d75;for(var _0x40920f=_0x42ac0e>0x1?void 0x0:_0x42ac0e?Zi(_0x553331,_0x43eef1):_0x553331,_0x1969c6=_0x180703[_0x3a9a23(0x3e1)]-0x1,_0x58d11e;_0x1969c6>=0x0;_0x1969c6--)(_0x58d11e=_0x180703[_0x1969c6])&&(_0x40920f=_0x58d11e(_0x40920f)||_0x40920f);return _0x40920f;},ie=(_0x28122e,_0x32b3db)=>(_0x1ac1d3,_0x568c91)=>_0x32b3db(_0x1ac1d3,_0x568c91,_0x28122e);let Fe=class extends _0x31f19d{constructor(_0x53a244,_0x5beeef,_0x3d8038,_0x387ce0,_0x452c63){const _0x5341db=_0x489d75;super(),_(this,_0x5341db(0x2b7),[]),_(this,_0x5341db(0x294),[]),(this[_0x5341db(0x2bf)]=_0x53a244,this[_0x5341db(0x354)]=_0x5beeef,this['_collabCursorController']=_0x3d8038,this[_0x5341db(0x35e)]=_0x387ce0,this['_themeService']=_0x452c63,this[_0x5341db(0x2c1)]());}[_0x489d75(0x2c1)](){const _0x36cce8=_0x489d75,_0x5b0f57=this[_0x36cce8(0x2bf)][_0x36cce8(0x373)],_0x40920e=this['_docSkeletonManagerService'];this[_0x36cce8(0x282)](_0x22737f([this[_0x36cce8(0x2fc)][_0x36cce8(0x37e)](_0x5b0f57),this[_0x36cce8(0x1f0)][_0x36cce8(0x330)]])[_0x36cce8(0x2f8)](_0x52ce88(([_0x4d1e8d,_0x1c594e])=>({'skeleton':_0x40920e['getSkeleton'](),'cursors':[..._0x4d1e8d[_0x36cce8(0x277)]()]['flatMap'](_0x5c272a=>({..._0x5c272a,'color':this[_0x36cce8(0x1f0)]['getColorFromTheme'](_0x5c272a[_0x36cce8(0x1f9)])}))})))[_0x36cce8(0x281)](_0x13a094=>{const _0x1efa3f=_0x36cce8;if(this[_0x1efa3f(0x37d)](),_0x13a094){const {skeleton:_0xb6b7c,cursors:_0x4f792d}=_0x13a094;this['_updateCollabCursors'](_0xb6b7c,_0x4f792d);}})),this[_0x36cce8(0x325)](),this[_0x36cce8(0x1b8)]();}[_0x489d75(0x1e2)](_0x3f541c,_0x2fa240){const _0x5d5754=_0x489d75,{scene:_0x95b67c,mainComponent:_0x5d7d06}=this[_0x5d5754(0x2bf)],_0x433478=_0x2fa240[_0x5d5754(0x30c)](_0x5bfa5b=>new ct(_0x5bfa5b,_0x95b67c,_0x3f541c,_0x5d7d06));this[_0x5d5754(0x2b7)]=_0x433478,this[_0x5d5754(0x294)]=_0x2fa240;}[_0x489d75(0x3b9)](){const _0x2f4556=_0x489d75;this[_0x2f4556(0x37d)]();const {scene:_0x39003d,mainComponent:_0x584663}=this[_0x2f4556(0x2bf)],_0x13b6d4=this[_0x2f4556(0x354)]['getSkeleton'](),_0x509954=this[_0x2f4556(0x294)][_0x2f4556(0x30c)](_0x202c0a=>new ct(_0x202c0a,_0x39003d,_0x13b6d4,_0x584663));this['_cursorShapes']=_0x509954;}[_0x489d75(0x37d)](){const _0x617975=_0x489d75;this['_cursorShapes'][_0x617975(0x358)](_0x500120=>_0x500120[_0x617975(0x1e4)]()),this['_cursorShapes']=[];}[_0x489d75(0x1b8)](){const _0x1714c9=_0x489d75,_0x53a23b=[_0x30ec8a['id']];this['disposeWithMe'](this[_0x1714c9(0x35e)][_0x1714c9(0x389)](_0x4d7672=>{const _0x1a1026=_0x1714c9;_0x53a23b[_0x1a1026(0x328)](_0x4d7672['id'])&&_0x4d7672[_0x1a1026(0x388)][_0x1a1026(0x373)]===this['_context'][_0x1a1026(0x373)]&&this[_0x1a1026(0x3b9)]();}));}[_0x489d75(0x325)](){const _0x33c91e=_0x489d75;this[_0x33c91e(0x282)](_0x439f38(this[_0x33c91e(0x2bf)][_0x33c91e(0x20f)]['onTransformChange$'])[_0x33c91e(0x2f8)](_0x3c7ef6(_0x1b578a=>_0x1b578a[_0x33c91e(0x34b)]===_0x2874e9[_0x33c91e(0x305)]),_0x51f0ab(0x10))[_0x33c91e(0x281)](()=>{const _0x514946=_0x33c91e;this[_0x514946(0x3b9)]();}));}};Fe=Qi([ie(0x1,_0x202ade(_0x604fda)),ie(0x2,_0x202ade(H)),ie(0x3,_0x351000),ie(0x4,_0x202ade(_0x37bbf9))],Fe);const qi=0x1,en=1.5;class tn extends _0x51b69f{constructor(_0xa77df2,_0x1062aa){const _0x365b7e=_0x489d75;super(_0xa77df2,_0x1062aa),_(this,_0x365b7e(0x237)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x365b7e(0x227),''),_(this,_0x365b7e(0x27c),_0x365b7e(0x35d)),_(this,_0x365b7e(0x205)),(_0x1062aa&&this[_0x365b7e(0x3ae)](_0x1062aa),this[_0x365b7e(0x28e)][_0x365b7e(0x2a8)](()=>this[_0x365b7e(0x3ae)]({'hovered':!0x0})),this[_0x365b7e(0x338)]['subscribeEvent'](()=>this[_0x365b7e(0x3ae)]({'hovered':!0x1})));}[_0x489d75(0x3ae)](_0x466248){const _0x4eb6cb=_0x489d75;var _0x5c2b9e,_0x7f1b57,_0x5206b7,_0x32758a,_0x32dc22,_0x42c823;this[_0x4eb6cb(0x237)]=(_0x5c2b9e=_0x466248['color'])!=null?_0x5c2b9e:this[_0x4eb6cb(0x237)],this[_0x4eb6cb(0x3d4)]=(_0x7f1b57=_0x466248[_0x4eb6cb(0x24e)])!=null?_0x7f1b57:this[_0x4eb6cb(0x3d4)],this[_0x4eb6cb(0x3f5)]=(_0x5206b7=_0x466248[_0x4eb6cb(0x2e2)])!=null?_0x5206b7:this[_0x4eb6cb(0x3f5)],this['_name']=(_0x32758a=_0x466248['name'])!=null?_0x32758a:this['_name'],this[_0x4eb6cb(0x27c)]=(_0x32dc22=_0x466248['labelPosition'])!=null?_0x32dc22:this[_0x4eb6cb(0x27c)],this[_0x4eb6cb(0x205)]=(_0x42c823=_0x466248[_0x4eb6cb(0x2cc)])!=null?_0x42c823:this[_0x4eb6cb(0x205)],this['transformByState']({'width':_0x466248['width'],'height':_0x466248[_0x4eb6cb(0x262)]});}[_0x489d75(0x334)](_0xe2ff57){const _0x28be31=_0x489d75,{row:_0x265392,column:_0x4099dd}=_0xe2ff57;if(_0x265392>=this[_0x28be31(0x3f5)][_0x28be31(0x379)]&&_0x265392<=this['_range']['endRow']&&_0x4099dd>=this[_0x28be31(0x3f5)][_0x28be31(0x22e)]&&_0x4099dd<=this[_0x28be31(0x3f5)][_0x28be31(0x3c9)]){this[_0x28be31(0x3ae)]({'hovered':!0x0});return;}this[_0x28be31(0x3ae)]({'hovered':!0x1});}[_0x489d75(0x2b2)](_0x48911d){return!0x1;}[_0x489d75(0x230)](_0x1b50d8){const _0x682697=_0x489d75;_0x4990a2[_0x682697(0x255)](_0x1b50d8,{'width':this[_0x682697(0x360)],'height':this[_0x682697(0x262)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x682697(0x205)]}),this[_0x682697(0x3d4)]&&(_0x1b50d8[_0x682697(0x380)](),_0x1b50d8['transform'](0x1,0x0,0x0,0x1,this[_0x682697(0x360)],this[_0x682697(0x27c)]==='bottom'?0x0:-Q),Ee[_0x682697(0x255)](_0x1b50d8,{'text':this[_0x682697(0x227)],'color':this[_0x682697(0x237)]}),_0x1b50d8[_0x682697(0x3ab)]());}}var sn=Object[_0x489d75(0x38a)],nn=(_0x40176a,_0x4b9f17,_0x4ad145,_0x4ae7b1)=>{const _0x355ef3=_0x489d75;for(var _0x1bdffa=_0x4ae7b1>0x1?void 0x0:_0x4ae7b1?sn(_0x4b9f17,_0x4ad145):_0x4b9f17,_0x488ef5=_0x40176a[_0x355ef3(0x3e1)]-0x1,_0x45501f;_0x488ef5>=0x0;_0x488ef5--)(_0x45501f=_0x40176a[_0x488ef5])&&(_0x1bdffa=_0x45501f(_0x1bdffa)||_0x1bdffa);return _0x1bdffa;},Ne=(_0x488e34,_0x5b77b8)=>(_0x1d88d7,_0x21664a)=>_0x5b77b8(_0x1d88d7,_0x21664a,_0x488e34);const rn=0x1389;let ke=class extends _0x31f19d{constructor(_0x349ae3,_0x5d7d57,_0x2ce355,_0x1f0a9c){const _0x5a195f=_0x489d75;super(),_(this,_0x5a195f(0x294),new Set()),_(this,'_lastPointer',null),(this[_0x5a195f(0x2bf)]=_0x349ae3,this[_0x5a195f(0x1d8)]=_0x5d7d57,this[_0x5a195f(0x2fc)]=_0x2ce355,this[_0x5a195f(0x1f0)]=_0x1f0a9c,this[_0x5a195f(0x2c1)]());}[_0x489d75(0x2c1)](){const _0x12ad69=_0x489d75;this[_0x12ad69(0x1d8)][_0x12ad69(0x394)][_0x12ad69(0x2f8)](_0x1cceeb(this[_0x12ad69(0x3c2)]),_0xca3cd2(_0x2074ca=>{const _0x4f86a9=_0x12ad69;if(_0x2074ca){const _0x52eefd=_0x2074ca[_0x4f86a9(0x321)];return _0x22737f(this['_collabCursorController'][_0x4f86a9(0x37e)](this[_0x4f86a9(0x2bf)][_0x4f86a9(0x373)]),this['_themeService']['currentTheme$'])[_0x4f86a9(0x2f8)](_0x52ce88(([_0x5df4a1,_0x506fc6])=>{const _0x4a2b05=new Map();return _0x5df4a1['forEach']((_0xb38a9f,_0x521d7c)=>{const _0x460f1b=_0x3fba;if(_0xb38a9f[_0x460f1b(0x260)]===_0x52eefd){const _0x10b920={..._0xb38a9f};_0x10b920[_0x460f1b(0x1f9)]=this[_0x460f1b(0x1f0)][_0x460f1b(0x1d9)](_0xb38a9f[_0x460f1b(0x1f9)]),_0x4a2b05[_0x460f1b(0x3bc)](_0x521d7c,_0x10b920);}}),{'skeleton':_0x2074ca,'cursors':_0x4a2b05};}));}return _0x122110({'skeleton':null,'cursors':new Map()});}))[_0x12ad69(0x281)](({skeleton:_0x4cbac9,cursors:_0x26efd9})=>{const _0x1ad381=_0x12ad69;this[_0x1ad381(0x37d)](),_0x4cbac9&&this[_0x1ad381(0x1e2)](_0x4cbac9,_0x26efd9);}),this[_0x12ad69(0x1d8)][_0x12ad69(0x394)][_0x12ad69(0x281)](_0x3261f2=>{const _0x4b82ff=_0x12ad69;if(_0x3261f2==null)return;const {skeleton:_0x2abac9}=_0x3261f2,{scene:_0x5b6b0d}=this[_0x4b82ff(0x2bf)];_0x5b6b0d[_0x4b82ff(0x2e0)]['subscribeEvent'](_0x3d7589(_0x484875=>{const _0x3c3c3d=_0x4b82ff;var _0x32b9b3,_0x4f681b;const {offsetX:_0x5ef0ee,offsetY:_0x1405a1}=_0x484875,{x:_0x5668e9,y:_0xf64747}=_0x5b6b0d[_0x3c3c3d(0x3e9)](_0x334327['FromArray']([_0x5ef0ee,_0x1405a1])),{scaleX:_0x3385ad,scaleY:_0x27c9c5}=_0x5b6b0d['getAncestorScale'](),_0x16e292=_0x5b6b0d['getViewport'](_0x4f6b83['VIEW_MAIN']),_0x3cee97=_0x5b6b0d[_0x3c3c3d(0x2da)](_0x334327[_0x3c3c3d(0x32c)]([_0x5668e9,_0xf64747]),_0x16e292),_0x270f18=_0x2abac9['getCellPositionByOffset'](_0x5ef0ee,_0x1405a1,_0x3385ad,_0x27c9c5,_0x3cee97);((_0x32b9b3=this['_lastPointer'])==null?void 0x0:_0x32b9b3[_0x3c3c3d(0x2f4)])===_0x270f18['column']&&((_0x4f681b=this[_0x3c3c3d(0x3a2)])==null?void 0x0:_0x4f681b[_0x3c3c3d(0x30b)])===_0x270f18['row']||this[_0x3c3c3d(0x294)][_0x3c3c3d(0x358)](_0x3f2b41=>{const _0x14a53d=_0x3c3c3d;_0x3f2b41[_0x14a53d(0x334)](_0x270f18);});},0x64));});}[_0x489d75(0x1e2)](_0x2473a8,_0x3b66f2){const _0x36efc6=_0x489d75;var _0x21146c;const _0x405216=(_0x21146c=this[_0x36efc6(0x1d8)][_0x36efc6(0x319)]())==null?void 0x0:_0x21146c[_0x36efc6(0x3f9)];if(!_0x405216)return;const _0x16d5ca=this[_0x36efc6(0x241)]();if(!_0x16d5ca)return;this[_0x36efc6(0x294)]['forEach'](_0x11173b=>{_0x11173b['makeDirty']();});const {scene:_0xffd70f}=_0x16d5ca,_0x133f86=on(Array[_0x36efc6(0x31d)](_0x3b66f2[_0x36efc6(0x277)]()))['map'](_0x4f19eb=>{const _0x5801cf=_0x36efc6,{color:_0x3e6849,range:_0x55fe28,name:_0x4d2a18,selection:_0x315dbd,sheetID:_0x48cf1a}=_0x4f19eb,{startColumn:_0x282418,startRow:_0x183459,endColumn:_0x22f018,endRow:_0x342794}=_0x55fe28,_0x1b0b1d=_0x2415eb(_0x183459,_0x282418,_0xffd70f,_0x405216),_0x589134=_0x2415eb(_0x342794,_0x22f018,_0xffd70f,_0x405216),{columnHeaderHeightAndMarginTop:_0x27d622}=_0x405216,{startX:_0x118061,startY:_0x1e8330}=_0x1b0b1d,{endX:_0x511a0b,endY:_0x43b392}=_0x589134,_0x5694da=_0x511a0b-_0x118061,_0x4fcd05=_0x43b392-_0x1e8330,_0x5deea9={'labelPosition':_0x1e8330-_0x27d622>=Q?_0x5801cf(0x35d):_0x5801cf(0x1e6),'sheetID':_0x48cf1a,'range':_0x55fe28,'color':_0x3e6849,'name':_0x4d2a18,'selection':_0x315dbd,'left':_0x118061,'top':_0x1e8330,'width':_0x5694da,'height':_0x4fcd05,'evented':!0x1,'zIndex':rn};return new tn(_0x4d2a18,_0x5deea9);});_0xffd70f[_0x36efc6(0x3fd)](_0x133f86,qi),this[_0x36efc6(0x294)]=new Set(_0x133f86);}[_0x489d75(0x37d)](){const _0x1c4168=_0x489d75;var _0x4387c2;(_0x4387c2=this[_0x1c4168(0x294)])==null||_0x4387c2[_0x1c4168(0x358)](_0x467362=>_0x467362[_0x1c4168(0x1e4)]());}[_0x489d75(0x241)](){const _0x27aa40=_0x489d75;return _0x4cfeb9(this[_0x27aa40(0x2bf)][_0x27aa40(0x22b)],this[_0x27aa40(0x2bf)]);}};ke=nn([Ne(0x1,_0x202ade(_0x47cae0)),Ne(0x2,_0x202ade(H)),Ne(0x3,_0x202ade(_0x37bbf9))],ke);function on(_0x3ddb49){const _0x498665=_0x489d75,_0x379834=new Map();return _0x3ddb49[_0x498665(0x358)](_0xb00793=>{const _0x503b0e=_0x498665;if(_0x379834[_0x503b0e(0x2c8)](_0xb00793[_0x503b0e(0x3c3)])){const _0x29e847=_0x379834[_0x503b0e(0x1bb)](_0xb00793['selection']);_0x29e847[_0x503b0e(0x3ea)]+=',\x20'+_0xb00793[_0x503b0e(0x3ea)];}else _0x379834[_0x503b0e(0x3bc)](_0xb00793['selection'],_0xb00793);}),Array[_0x498665(0x31d)](_0x379834[_0x498665(0x277)]());}var an=Object[_0x489d75(0x38a)],cn=(_0x5e0040,_0x2dfbae,_0x5a1434,_0x1e7c6d)=>{for(var _0x2e30a7=_0x1e7c6d>0x1?void 0x0:_0x1e7c6d?an(_0x2dfbae,_0x5a1434):_0x2dfbae,_0x374a60=_0x5e0040['length']-0x1,_0x5a23b8;_0x374a60>=0x0;_0x374a60--)(_0x5a23b8=_0x5e0040[_0x374a60])&&(_0x2e30a7=_0x5a23b8(_0x2e30a7)||_0x2e30a7);return _0x2e30a7;},F=(_0xbfbb96,_0x26bcc7)=>(_0x35f674,_0x5abd16)=>_0x26bcc7(_0x35f674,_0x5abd16,_0xbfbb96);let _e=class extends _0x3d44ee{constructor(_0x46a124,_0x3a4886,_0x3a2adc,_0x5b98f6,_0x1c97f9,_0x119334){const _0x1dd5a7=_0x489d75;super(),this[_0x1dd5a7(0x353)]=_0x46a124,this[_0x1dd5a7(0x35b)]=_0x3a4886,this[_0x1dd5a7(0x2b8)]=_0x3a2adc,this['_messageService']=_0x5b98f6,this[_0x1dd5a7(0x2c9)]=_0x1c97f9,this[_0x1dd5a7(0x21d)]=_0x119334,this[_0x1dd5a7(0x2f7)](),this['_initEvent']();}[_0x489d75(0x2f7)](){const _0x2224b4=_0x489d75;this[_0x2224b4(0x282)](this[_0x2224b4(0x353)][_0x2224b4(0x2a7)](()=>{const _0x44040d=_0x2224b4;if(this['_localCacheService'][_0x44040d(0x29a)][_0x44040d(0x2c7)])return this[_0x44040d(0x21d)]['t'](_0x44040d(0x3f4));}));}[_0x489d75(0x3be)](){const _0x2e0dce=_0x489d75;this[_0x2e0dce(0x282)](this[_0x2e0dce(0x2b8)][_0x2e0dce(0x220)][_0x2e0dce(0x281)](_0x3588ae=>{const _0x484c07=_0x2e0dce;_0x3588ae['id']===_0xcdb48[_0x484c07(0x298)]&&this['_messageService'][_0x484c07(0x2b5)]({'type':_0x453359[_0x484c07(0x24d)],'content':this['_localeService']['t'](_0x484c07(0x240))}),_0x3588ae['id']===_0xcdb48[_0x484c07(0x3de)]&&this['_messageService'][_0x484c07(0x2b5)]({'type':_0x453359['Warning'],'content':this[_0x484c07(0x21d)]['t'](_0x484c07(0x3ee))}),_0x3588ae['id']===_0xcdb48['PERMISSION_DENIED']&&this['_notificationService'][_0x484c07(0x2b5)]({'title':this[_0x484c07(0x21d)]['t'](_0x484c07(0x1b9)),'content':this['_localeService']['t'](_0x484c07(0x3a5)),'type':_0x484c07(0x206),'duration':0x0}),_0x3588ae['id']===_0xcdb48[_0x484c07(0x3c5)]&&this[_0x484c07(0x346)][_0x484c07(0x2b5)]({'type':_0x453359[_0x484c07(0x392)],'content':this[_0x484c07(0x21d)]['t'](_0x484c07(0x3ee))+'('+_0x3588ae['data']+')'}),_0x3588ae['id']===_0xcdb48[_0x484c07(0x3c7)]&&this[_0x484c07(0x346)][_0x484c07(0x2b5)]({'type':_0x453359['Warning'],'content':this[_0x484c07(0x21d)]['t'](_0x3588ae[_0x484c07(0x2d5)]||'')}),_0x3588ae['id']===_0xcdb48[_0x484c07(0x3cb)]&&this['_messageService'][_0x484c07(0x2b5)]({'type':_0x453359[_0x484c07(0x24d)],'content':this[_0x484c07(0x21d)]['t'](_0x484c07(0x247))}),_0x3588ae['id']===_0xcdb48[_0x484c07(0x1c9)]&&this[_0x484c07(0x346)][_0x484c07(0x2b5)]({'type':_0x453359[_0x484c07(0x392)],'content':this[_0x484c07(0x21d)]['t'](_0x484c07(0x2ec))}),_0x3588ae['id']===_0xcdb48[_0x484c07(0x2d2)]&&this['_messageService'][_0x484c07(0x2b5)]({'type':_0x453359[_0x484c07(0x392)],'content':this[_0x484c07(0x21d)]['t'](_0x484c07(0x1e1))});}));}};_e=cn([F(0x0,_0x418917),F(0x1,_0x2ff612),F(0x2,_0x202ade(_0x543d62)),F(0x3,_0xcd0d9),F(0x4,_0x43dbd7),F(0x5,_0x202ade(_0x27fab8))],_e);var _n=Object[_0x489d75(0x38a)],ln=(_0xdd7351,_0x2c5f38,_0x53c416,_0x3d5b00)=>{const _0x2241fa=_0x489d75;for(var _0xef1401=_0x3d5b00>0x1?void 0x0:_0x3d5b00?_n(_0x2c5f38,_0x53c416):_0x2c5f38,_0x64bcf9=_0xdd7351[_0x2241fa(0x3e1)]-0x1,_0x24e5d1;_0x64bcf9>=0x0;_0x64bcf9--)(_0x24e5d1=_0xdd7351[_0x64bcf9])&&(_0xef1401=_0x24e5d1(_0xef1401)||_0xef1401);return _0xef1401;},ne=(_0x560a4f,_0x14daca)=>(_0x3df7f5,_0x425ec1)=>_0x14daca(_0x3df7f5,_0x425ec1,_0x560a4f);let le=class extends _0x3d44ee{constructor(_0xc7341d,_0x2fad98,_0x5065b0,_0x2f9fc7){const _0x26f682=_0x489d75;super(),_(this,_0x26f682(0x3b6)),(this[_0x26f682(0x36a)]=_0xc7341d,this[_0x26f682(0x267)]=_0x2fad98,this[_0x26f682(0x370)]=_0x5065b0,this[_0x26f682(0x1eb)]=_0x2f9fc7,this[_0x26f682(0x2c1)]());}[_0x489d75(0x2c1)](){const _0x270c0=_0x489d75;this[_0x270c0(0x36b)](),this[_0x270c0(0x322)](),this[_0x270c0(0x2c5)](),this['_initUserListener']();}[_0x489d75(0x1d1)](){const _0x48f282=_0x489d75;this['disposeWithMe'](this['_collaborationSessionService'][_0x48f282(0x3f6)]['subscribe'](_0x56c641=>{this['_memberID']=_0x56c641==null?void 0x0:_0x56c641['memberID'];}));}[_0x489d75(0x36b)](){const _0x462e39=_0x489d75,_0x5afbab=_0x5856db=>{const _0x4355d9=_0x3fba;var _0x412d1a;this['_uploadLog']('error',_0x4355d9(0x314)+_0x5856db['message']+_0x4355d9(0x27a)+_0x5856db[_0x4355d9(0x1bc)]+':'+_0x5856db['lineno']+':'+_0x5856db[_0x4355d9(0x331)]+'\x0a'+(((_0x412d1a=_0x5856db[_0x4355d9(0x206)])==null?void 0x0:_0x412d1a[_0x4355d9(0x366)])||''));};window['addEventListener'](_0x462e39(0x206),_0x5afbab),this[_0x462e39(0x282)](()=>{window['removeEventListener']('error',_0x5afbab);});}[_0x489d75(0x322)](){const _0x52e436=_0x489d75,_0x16cce7=_0x51c361=>{const _0x36bbbc=_0x3fba;this[_0x36bbbc(0x3e2)](_0x36bbbc(0x206),_0x36bbbc(0x1de)+_0x51c361[_0x36bbbc(0x2df)]);};window[_0x52e436(0x24b)]('unhandledrejection',_0x16cce7),this['disposeWithMe'](()=>{const _0x14b745=_0x52e436;window[_0x14b745(0x3ac)](_0x14b745(0x304),_0x16cce7);});}[_0x489d75(0x2c5)](){const _0x12b671=_0x489d75,_0xc22e61=this[_0x12b671(0x370)]['error'][_0x12b671(0x2a3)](this[_0x12b671(0x370)]);this[_0x12b671(0x370)]['error']=(..._0x1b18fa)=>{const _0x4b536a=_0x12b671,_0x32edba=_0x1b18fa['map'](_0x22c919=>_0x22c919 instanceof Error?_0x22c919[_0x4b536a(0x201)]+'\x0a'+_0x22c919[_0x4b536a(0x366)]:String(_0x22c919))['join']('\x20');this['_uploadLog'](_0x4b536a(0x206),'[LogService\x20Error]:\x20'+_0x32edba),_0xc22e61(..._0x1b18fa);},this['disposeWithMe'](()=>{const _0x18a1d3=_0x12b671;this[_0x18a1d3(0x370)][_0x18a1d3(0x206)]=_0xc22e61;});}[_0x489d75(0x3e2)](_0x3880e5,_0x358cf0){const _0x3d93b1=_0x489d75;try{const _0x307687={'userId':this[_0x3d93b1(0x3b6)],'logLabel':_0x3880e5,'content':_0x358cf0};this['_httpService'][_0x3d93b1(0x296)](_0x3d93b1(0x2ac),{'body':_0x307687})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0x202ade(_0x555a92)),ne(0x1,_0x202ade(_0x2d0ef5)),ne(0x2,_0x5054cc),ne(0x3,_0x202ade(_0x2bac2d))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x489d75(0x38a)],dn=(_0x10a889,_0x284f74,_0x3e4de4,_0x12f39e)=>{for(var _0x44b90f=_0x12f39e>0x1?void 0x0:_0x12f39e?un(_0x284f74,_0x3e4de4):_0x284f74,_0x4f3975=_0x10a889['length']-0x1,_0x5cb867;_0x4f3975>=0x0;_0x4f3975--)(_0x5cb867=_0x10a889[_0x4f3975])&&(_0x44b90f=_0x5cb867(_0x44b90f)||_0x44b90f);return _0x44b90f;},lt=(_0x59d693,_0x554046)=>(_0x5e8908,_0x2da4c3)=>_0x554046(_0x5e8908,_0x2da4c3,_0x59d693);let he=class{constructor(_0x31dfd9,_0x5a9bae){const _0x44b41c=_0x489d75;this[_0x44b41c(0x2d9)]=_0x31dfd9,this['_renderManagerService']=_0x5a9bae;}[_0x489d75(0x204)](_0x123cef){const _0x4820a9=_0x489d75;this[_0x4820a9(0x1c6)](_0x123cef),this[_0x4820a9(0x3af)](_0x123cef);}[_0x489d75(0x27f)](_0x2bcc2a){const _0x3e1b78=_0x489d75,{unitID:_0xc566b8}=_0x2bcc2a,_0x1feeb0=this[_0x3e1b78(0x365)][_0x3e1b78(0x279)](_0xc566b8)[_0x3e1b78(0x20a)](_0x46d38a),{redoCache:_0xb5f3fe}=_0x1feeb0['getUndoRedoMutationParamsCache']();if(_0xb5f3fe[_0x3e1b78(0x3e1)]===0x0)return _0x2bcc2a;let _0x519f25=_0x550b4c['deepClone'](_0x2bcc2a[_0x3e1b78(0x2ba)][0x0]);for(let _0x27425d=0x0;_0x27425d<_0xb5f3fe[_0x3e1b78(0x3e1)];_0x27425d++){const _0x2a4d20={'id':'doc.mutation.rich-text-editing','params':{..._0xb5f3fe[_0x27425d]}},_0x4240ac=this[_0x3e1b78(0x2d9)][_0x3e1b78(0x1d4)](_0x519f25,_0x2a4d20,!0x1);if(_0x262860(_0x4240ac))throw _0x4240ac[_0x3e1b78(0x206)];_0x519f25=_0x4240ac[_0x3e1b78(0x25c)];}return{..._0x550b4c[_0x3e1b78(0x3e0)](_0x2bcc2a),'mutations':[_0x519f25]};}[_0x489d75(0x1c6)](_0x1d6fd1){const _0x76867=_0x489d75,{unitID:_0x5ef295}=_0x1d6fd1,_0x3dda63=this[_0x76867(0x365)]['getRenderById'](_0x5ef295)['with'](_0x46d38a),{undoCache:_0x1e5f3c,redoCache:_0x32eabf}=_0x3dda63['getUndoRedoMutationParamsCache']();if(_0x1e5f3c['length']===0x0||_0x32eabf[_0x76867(0x3e1)]===0x0)return;const _0x4eedbb=[],_0x3a3ce0=[];let _0x4dddc0=_0x550b4c[_0x76867(0x3e0)](_0x1d6fd1[_0x76867(0x2ba)][0x0]),_0x2df351=_0x550b4c[_0x76867(0x3e0)](_0x1d6fd1[_0x76867(0x2ba)][0x0]);for(let _0x5e84bc=_0x1e5f3c[_0x76867(0x3e1)]-0x1;_0x5e84bc>=0x0;_0x5e84bc--){const _0x4d4929={'id':'doc.mutation.rich-text-editing','params':{..._0x1e5f3c[_0x5e84bc]}},_0xd04449={'id':_0x76867(0x1cb),'params':{..._0x32eabf[_0x5e84bc]}},_0x3b7b0a=this[_0x76867(0x2d9)][_0x76867(0x1d4)](_0x4dddc0,_0x4d4929,!0x1),_0x22fadd=this[_0x76867(0x2d9)][_0x76867(0x1d4)](_0x2df351,_0xd04449,!0x1);if(_0x262860(_0x3b7b0a))throw _0x3b7b0a[_0x76867(0x206)];if(_0x262860(_0x22fadd))throw _0x22fadd[_0x76867(0x206)];_0x4eedbb[_0x76867(0x384)](_0x3b7b0a[_0x76867(0x286)]['params']),_0x3a3ce0[_0x76867(0x384)](_0x22fadd[_0x76867(0x286)][_0x76867(0x388)]),_0x4dddc0=_0x3b7b0a['m1Prime'],_0x2df351=_0x22fadd['m1Prime'];}_0x3dda63[_0x76867(0x229)]({'undoCache':_0x4eedbb,'redoCache':_0x3a3ce0});}[_0x489d75(0x3af)](_0x4e312a){const _0x3b1dc4=_0x489d75,{unitID:_0x18cd4e}=_0x4e312a,_0x330ae7=this[_0x3b1dc4(0x365)]['getRenderById'](_0x18cd4e)[_0x3b1dc4(0x20a)](_0x46d38a),_0x781f53=_0x330ae7[_0x3b1dc4(0x232)]();if(_0x781f53==null)return;const _0x2a5114=[{'id':_0x3b1dc4(0x1cb),'params':{'unitId':_0x4e312a[_0x3b1dc4(0x299)],'actions':null,'textRanges':[_0x781f53]}}],_0x3e120b=this[_0x3b1dc4(0x2d9)]['transformMutationsWithChangeset'](_0x4e312a,_0x2a5114);if(!_0x270560(_0x3e120b))throw _0x3e120b[_0x3b1dc4(0x206)];const _0xcb67e=_0x3e120b[_0x3b1dc4(0x286)][0x0][_0x3b1dc4(0x388)]['textRanges'];Array[_0x3b1dc4(0x2dd)](_0xcb67e)&&_0xcb67e[_0x3b1dc4(0x3e1)]&&_0x330ae7[_0x3b1dc4(0x2e4)](_0xcb67e[0x0]);}};he=dn([lt(0x0,_0x5ba33c),lt(0x1,_0x3981cf)],he);var Sn=Object[_0x489d75(0x38a)],mn=(_0x2522f3,_0x467142,_0x8d7e77,_0x41e3f8)=>{const _0x56edc0=_0x489d75;for(var _0x39fee3=_0x41e3f8>0x1?void 0x0:_0x41e3f8?Sn(_0x467142,_0x8d7e77):_0x467142,_0x33899e=_0x2522f3[_0x56edc0(0x3e1)]-0x1,_0x390fb8;_0x33899e>=0x0;_0x33899e--)(_0x390fb8=_0x2522f3[_0x33899e])&&(_0x39fee3=_0x390fb8(_0x39fee3)||_0x39fee3);return _0x39fee3;},Le=(_0x46567b,_0x443801)=>(_0x29430a,_0x47c83c)=>_0x443801(_0x29430a,_0x47c83c,_0x46567b);let ue=class{constructor(_0x4b1160,_0x3fa35b,_0x49420f){const _0x12137d=_0x489d75;this['_injector']=_0x4b1160,this[_0x12137d(0x2d9)]=_0x3fa35b,this[_0x12137d(0x274)]=_0x49420f;}['transformStateCache'](_0x5beeb2){const _0x669fd1=_0x489d75;this[_0x669fd1(0x1d3)](_0x5beeb2);}['transformRemoteChangeset'](_0x5cd212){const _0x468c10=_0x489d75,{unitID:_0x474b58}=_0x5cd212,{collaboration:_0x2bb716}=this[_0x468c10(0x274)]['getStateCache'](_0x474b58);if(_0x2bb716['length']===0x0)return _0x5cd212;let _0x2c92f2=_0x550b4c[_0x468c10(0x3e0)](_0x5cd212[_0x468c10(0x2ba)][0x0]);for(let _0x926d91=0x0;_0x926d91<_0x2bb716[_0x468c10(0x3e1)];_0x926d91++){const _0x397dfb={'id':_0x468c10(0x1cb),'params':{'unitId':_0x2bb716[_0x926d91][_0x468c10(0x373)],..._0x2bb716[_0x926d91]['redoState']}},_0x53cfc7=this[_0x468c10(0x2d9)][_0x468c10(0x1d4)](_0x2c92f2,_0x397dfb,!0x1);if(_0x262860(_0x53cfc7))throw _0x53cfc7['error'];_0x2c92f2=_0x53cfc7['m1Prime'];}return{..._0x550b4c[_0x468c10(0x3e0)](_0x5cd212),'mutations':[_0x2c92f2]};}[_0x489d75(0x1d3)](_0x2a5d52){const _0x1c3a67=_0x489d75,{unitID:_0xeea68a}=_0x2a5d52,{history:_0x267208,collaboration:_0x5eb1fa}=this[_0x1c3a67(0x274)][_0x1c3a67(0x3ca)](_0xeea68a);if(_0x267208[_0x1c3a67(0x3e1)]===0x0&&_0x5eb1fa[_0x1c3a67(0x3e1)]===0x0)return;const _0x1d488a=[],_0x5eb8d5=[];let _0x21ddf1=_0x550b4c[_0x1c3a67(0x3e0)](_0x2a5d52[_0x1c3a67(0x2ba)][0x0]),_0x425eb5=_0x550b4c[_0x1c3a67(0x3e0)](_0x2a5d52[_0x1c3a67(0x2ba)][0x0]);for(let _0x35159e=_0x267208[_0x1c3a67(0x3e1)]-0x1;_0x35159e>=0x0;_0x35159e--){const _0x5b00c7={'id':_0x1c3a67(0x1cb),'params':{'unitId':_0x267208[_0x35159e][_0x1c3a67(0x373)],..._0x267208[_0x35159e][_0x1c3a67(0x32e)]}},_0x51c864={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x267208[_0x35159e][_0x1c3a67(0x373)],..._0x267208[_0x35159e][_0x1c3a67(0x239)]}},_0x2671ea=this[_0x1c3a67(0x2d9)][_0x1c3a67(0x1d4)](_0x21ddf1,_0x5b00c7,!0x1),_0x169a45=this['_transformService'][_0x1c3a67(0x1d4)](_0x425eb5,_0x51c864,!0x1);if(_0x262860(_0x2671ea))throw _0x2671ea[_0x1c3a67(0x206)];if(_0x262860(_0x169a45))throw _0x169a45[_0x1c3a67(0x206)];_0x1d488a[_0x1c3a67(0x384)]({..._0x267208[_0x35159e],'undoState':_0x2671ea['m2Prime'][_0x1c3a67(0x388)],'redoState':_0x169a45[_0x1c3a67(0x286)][_0x1c3a67(0x388)]}),_0x21ddf1=_0x2671ea[_0x1c3a67(0x25c)],_0x425eb5=_0x169a45[_0x1c3a67(0x25c)];}_0x21ddf1=_0x550b4c[_0x1c3a67(0x3e0)](_0x2a5d52[_0x1c3a67(0x2ba)][0x0]),_0x425eb5=_0x550b4c[_0x1c3a67(0x3e0)](_0x2a5d52[_0x1c3a67(0x2ba)][0x0]);for(let _0x82cb4e=_0x5eb1fa[_0x1c3a67(0x3e1)]-0x1;_0x82cb4e>=0x0;_0x82cb4e--){const _0x59d744={'id':_0x1c3a67(0x1cb),'params':{'unitId':_0x5eb1fa[_0x82cb4e][_0x1c3a67(0x373)],..._0x5eb1fa[_0x82cb4e][_0x1c3a67(0x32e)]}},_0x54dbae={'id':_0x1c3a67(0x1cb),'params':{'unitId':_0x5eb1fa[_0x82cb4e]['unitId'],..._0x5eb1fa[_0x82cb4e][_0x1c3a67(0x239)]}},_0x4f95dd=this[_0x1c3a67(0x2d9)]['transformMutation'](_0x21ddf1,_0x59d744,!0x1),_0x203eb8=this['_transformService'][_0x1c3a67(0x1d4)](_0x425eb5,_0x54dbae,!0x1);if(_0x262860(_0x4f95dd))throw _0x4f95dd['error'];if(_0x262860(_0x203eb8))throw _0x203eb8[_0x1c3a67(0x206)];_0x5eb8d5[_0x1c3a67(0x384)]({..._0x5eb1fa[_0x82cb4e],'undoState':_0x4f95dd[_0x1c3a67(0x286)]['params'],'redoState':_0x203eb8[_0x1c3a67(0x286)][_0x1c3a67(0x388)]}),_0x21ddf1=_0x4f95dd[_0x1c3a67(0x25c)],_0x425eb5=_0x203eb8[_0x1c3a67(0x25c)];}this[_0x1c3a67(0x274)][_0x1c3a67(0x39b)](_0xeea68a,{'history':_0x1d488a,'collaboration':_0x5eb8d5});}};ue=mn([Le(0x0,_0x202ade(_0x555a92)),Le(0x1,_0x5ba33c),Le(0x2,_0x202ade(_0x2bae71))],ue);var In=Object[_0x489d75(0x38a)],fn=(_0x1fd0a0,_0x10e14d,_0x2396b1,_0x1ade63)=>{const _0x2da460=_0x489d75;for(var _0x42dec4=_0x1ade63>0x1?void 0x0:_0x1ade63?In(_0x10e14d,_0x2396b1):_0x10e14d,_0x51aff1=_0x1fd0a0[_0x2da460(0x3e1)]-0x1,_0x3ebe33;_0x51aff1>=0x0;_0x51aff1--)(_0x3ebe33=_0x1fd0a0[_0x51aff1])&&(_0x42dec4=_0x3ebe33(_0x42dec4)||_0x42dec4);return _0x42dec4;},ht=(_0x107284,_0x4dae1a)=>(_0x1b0390,_0x45d078)=>_0x4dae1a(_0x1b0390,_0x45d078,_0x107284);let de=class{constructor(_0x34a0de,_0x858b26){const _0x23cf97=_0x489d75;this['_injector']=_0x34a0de,this[_0x23cf97(0x2d9)]=_0x858b26;}[_0x489d75(0x38f)](_0x1f1b57){const _0x533386=_0x489d75;var _0x540764;const _0x34c939=this[_0x533386(0x36a)]['get'](_0x577a3f),_0x41eadd=(_0x540764=_0x34c939[_0x533386(0x25b)]())!=null?_0x540764:[];if(_0x41eadd[_0x533386(0x3e1)]===0x0)return;const _0x57b328=_0x1f1b57[_0x533386(0x299)],_0x745df5=[{'id':_0x533386(0x1cb),'params':{'unitId':_0x57b328,'actions':null,'textRanges':_0x41eadd}}],_0x5394f6=this[_0x533386(0x2d9)][_0x533386(0x1f1)](_0x1f1b57,_0x745df5);if(!_0x270560(_0x5394f6))throw _0x5394f6['error'];const _0x5762ba=_0x5394f6['m2Prime'][0x0][_0x533386(0x388)][_0x533386(0x2cd)];Array['isArray'](_0x5762ba)&&_0x5762ba[_0x533386(0x3e1)]&&_0x34c939[_0x533386(0x303)](_0x5762ba,{'unitId':_0x57b328,'subUnitId':_0x57b328},!0x1);}};de=fn([ht(0x0,_0x202ade(_0x555a92)),ht(0x1,_0x5ba33c)],de);var gn=Object[_0x489d75(0x38a)],vn=(_0x62c67d,_0x4cbf2f,_0x4961c5,_0x76dd56)=>{const _0x129a79=_0x489d75;for(var _0x39ff8a=_0x76dd56>0x1?void 0x0:_0x76dd56?gn(_0x4cbf2f,_0x4961c5):_0x4cbf2f,_0x4cfa52=_0x62c67d[_0x129a79(0x3e1)]-0x1,_0x2bc33a;_0x4cfa52>=0x0;_0x4cfa52--)(_0x2bc33a=_0x62c67d[_0x4cfa52])&&(_0x39ff8a=_0x2bc33a(_0x39ff8a)||_0x39ff8a);return _0x39ff8a;},U=(_0x2d3222,_0x1f1161)=>(_0xebd75b,_0x8db3df)=>_0x1f1161(_0xebd75b,_0x8db3df,_0x2d3222);let Se=class extends _0x3d44ee{constructor(_0x2d8152,_0x159832,_0x5c8eba,_0x2f5e3e,_0x2f84f7,_0x376f5a,_0x190a57,_0x4957cd){const _0x1154b7=_0x489d75;super(),_(this,_0x1154b7(0x3cf),new _0x3401b7(_0x3d08a5[_0x1154b7(0x293)])),(this[_0x1154b7(0x274)]=_0x2d8152,this[_0x1154b7(0x363)]=_0x159832,this[_0x1154b7(0x211)]=_0x5c8eba,this[_0x1154b7(0x228)]=_0x2f5e3e,this[_0x1154b7(0x2eb)]=_0x2f84f7,this['_docSyncEditingCollabCursorService']=_0x376f5a,this[_0x1154b7(0x346)]=_0x190a57,this[_0x1154b7(0x21d)]=_0x4957cd,this[_0x1154b7(0x29d)]());}['_initEntityListener'](){const _0x26f2d9=_0x489d75;this[_0x26f2d9(0x282)](this[_0x26f2d9(0x363)][_0x26f2d9(0x387)][_0x26f2d9(0x281)](_0x32f5f4=>{const _0x25ccbf=_0x26f2d9,_0x1b378e=this[_0x25ccbf(0x274)][_0x25ccbf(0x2ef)][_0x25ccbf(0x281)](_0x957a55=>{const _0x449c2d=_0x25ccbf;if(_0x957a55==null)return;const {unitId:_0x275455,redoState:_0x4ff14d,commandId:_0xf1c457}=_0x957a55;if(_0x275455!==_0x32f5f4[_0x449c2d(0x299)])return;const _0x1f08c5={'id':_0xf1c457,'type':_0x359115[_0x449c2d(0x2f1)],'params':{'unitId':_0x275455,'actions':_0x4ff14d[_0x449c2d(0x3db)],'textRanges':null}};_0x32f5f4['onLocalMutation'](_0x1f08c5);});if(_0x32f5f4['disposeWithMe'](_0x1b378e),_0x32f5f4 instanceof _0x156d52){const _0x5599bf={'onTransformIME':_0x177a91=>this['_docTransformIMECacheService'][_0x25ccbf(0x204)](_0x177a91),'onTransformState':_0x240b8a=>this['_docTransformStateCacheService'][_0x25ccbf(0x3c8)](_0x240b8a),'onTransformSelections':_0x2e4f88=>this['_docTransformSelectionsService'][_0x25ccbf(0x38f)](_0x2e4f88),'onSyncEditingCollabCursor':_0x448138=>this[_0x25ccbf(0x2e3)][_0x25ccbf(0x236)](_0x448138),'onTransformRemoteChangesetByIMECache':_0x53116f=>this[_0x25ccbf(0x211)][_0x25ccbf(0x27f)](_0x53116f),'onTransformRemoteChangesetByStateCache':_0x2f276c=>this['_docTransformStateCacheService'][_0x25ccbf(0x27f)](_0x2f276c)};_0x32f5f4[_0x25ccbf(0x2d6)](_0x5599bf);}}));}};Se=vn([U(0x0,_0x202ade(_0x2bae71)),U(0x1,_0x202ade(_0x5646c2)),U(0x2,_0x202ade(he)),U(0x3,_0x202ade(ue)),U(0x4,_0x202ade(de)),U(0x5,_0x202ade(ze)),U(0x6,_0xcd0d9),U(0x7,_0x202ade(_0x27fab8))],Se);var Z=(_0x3fd0fe=>(_0x3fd0fe[_0x3fd0fe['UNDEFINED']=0x0]=_0x489d75(0x34e),_0x3fd0fe[_0x3fd0fe['OK']=0x1]='OK',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x3cd)]=0x2]='INTERNAL_ERROR',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x3b0)]=0x3]=_0x489d75(0x3b0),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x2a1)]=0x4]='NOT_FOUND',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x336)]=0x5]=_0x489d75(0x336),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x368)]=0x6]='ALREADY_EXISTS',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x1dc)]=0x7]='INVALID_ARGUMENT',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x1cc)]=0x8]='TOO_MANY_REQUESTS',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x20c)]=0x9]='COMPLETION_FINISHED',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x3d9)]=0xa]=_0x489d75(0x3d9),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x33e)]=0xb]=_0x489d75(0x33e),_0x3fd0fe[_0x3fd0fe['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x3b8)]=0xd]=_0x489d75(0x3b8),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x32d)]=0xe]=_0x489d75(0x32d),_0x3fd0fe[_0x3fd0fe['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x489d75(0x34f),_0x3fd0fe[_0x3fd0fe['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x489d75(0x269),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x2ca)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x317)]=0x65]=_0x489d75(0x317),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x2f9)]=0xc9]='USER_NOT_FOUND',_0x3fd0fe[_0x3fd0fe['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x3fd0fe[_0x3fd0fe['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x489d75(0x23d),_0x3fd0fe[_0x3fd0fe['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x489d75(0x3bb),_0x3fd0fe[_0x3fd0fe['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x335)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3fd0fe[_0x3fd0fe['APPLY_REJECT']=0x1b59]=_0x489d75(0x349),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x23f)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3fd0fe[_0x3fd0fe['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x489d75(0x35a),_0x3fd0fe[_0x3fd0fe['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x489d75(0x381),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x30f)]=0x1b5d]=_0x489d75(0x30f),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x20d)]=0x1f41]=_0x489d75(0x20d),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x27b)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x271)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3fd0fe[_0x3fd0fe['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x489d75(0x226),_0x3fd0fe[_0x3fd0fe['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3fd0fe[_0x3fd0fe['LICENSE_DISTRO_REJECTED']=0x232d]=_0x489d75(0x215),_0x3fd0fe[_0x3fd0fe['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3fd0fe[_0x3fd0fe['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x489d75(0x307),_0x3fd0fe[_0x3fd0fe['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x489d75(0x3b5),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x30d)]=0x2714]=_0x489d75(0x30d),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x2a2)]=0x271a]=_0x489d75(0x2a2),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x3f3)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x3d0)]=0x271c]=_0x489d75(0x3d0),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x1fa)]=0x271d]=_0x489d75(0x1fa),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x357)]=0x271e]=_0x489d75(0x357),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x38d)]=0x271f]=_0x489d75(0x38d),_0x3fd0fe[_0x3fd0fe['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x489d75(0x2fd),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x242)]=0x2af9]=_0x489d75(0x242),_0x3fd0fe[_0x3fd0fe['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x489d75(0x1ef),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x21e)]=0x2ee2]='INVALID_INVITE_CODE',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x233)]=0x2ee3]=_0x489d75(0x233),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x386)]=0x2ee4]=_0x489d75(0x386),_0x3fd0fe[_0x3fd0fe['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x489d75(0x36e),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x1f8)]=0x32c9]=_0x489d75(0x1f8),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x3f0)]=0x32ca]=_0x489d75(0x3f0),_0x3fd0fe[_0x3fd0fe['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x489d75(0x285),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x2ea)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x3ad)]=0x36b2]=_0x489d75(0x3ad),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x391)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x3fd0fe[_0x3fd0fe['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x489d75(0x324),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x1f5)]=0x3715]=_0x489d75(0x1f5),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x250)]=0x3716]=_0x489d75(0x250),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x2f2)]=0x3717]=_0x489d75(0x2f2),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x225)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x2c0)]=0x3a99]=_0x489d75(0x2c0),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x2f3)]=0x3a9a]=_0x489d75(0x2f3),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x1dd)]=0x3a9b]=_0x489d75(0x1dd),_0x3fd0fe[_0x3fd0fe['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x2c4)]=0x3a9d]=_0x489d75(0x2c4),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x1e3)]=0x3a9e]=_0x489d75(0x1e3),_0x3fd0fe[_0x3fd0fe['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x489d75(0x33b),_0x3fd0fe[_0x3fd0fe[_0x489d75(0x219)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x3fd0fe[_0x3fd0fe[_0x489d75(0x244)]=-0x1]=_0x489d75(0x244),_0x3fd0fe))(Z||{});function En(_0x5f2090){const _0x5df347=_0x489d75;var _0x50ee1e,_0x3e54c3;const _0x34dce7=(_0x50ee1e=_0x5f2090[_0x5df347(0x36c)])==null?void 0x0:_0x50ee1e['stage'],_0x2d4967=((_0x3e54c3=_0x5f2090[_0x5df347(0x36c)])==null?void 0x0:_0x3e54c3[_0x5df347(0x3fb)])||0x0;return _0x34dce7===_0x46a8c9[_0x5df347(0x39e)]&&_0x2d4967>0x0;}function pn(_0x11ff45){const _0x542ade=_0x489d75;return _0x11ff45['functionsExecutedState']===_0x2fb8c3[_0x542ade(0x308)];}var On=Object[_0x489d75(0x38a)],Tn=(_0x2ad17c,_0x4120f4,_0x488986,_0x4ef652)=>{const _0x4127b3=_0x489d75;for(var _0x343ce7=_0x4ef652>0x1?void 0x0:_0x4ef652?On(_0x4120f4,_0x488986):_0x4120f4,_0x56a874=_0x2ad17c[_0x4127b3(0x3e1)]-0x1,_0x4dd66e;_0x56a874>=0x0;_0x56a874--)(_0x4dd66e=_0x2ad17c[_0x56a874])&&(_0x343ce7=_0x4dd66e(_0x343ce7)||_0x343ce7);return _0x343ce7;},P=(_0x3e90eb,_0x17f5e1)=>(_0xf0f8a4,_0x1dd324)=>_0x17f5e1(_0xf0f8a4,_0x1dd324,_0x3e90eb);const Cn=_0x489d75(0x1cd),Rn=_0x489d75(0x3c6),Dn=_0x489d75(0x2db);let me=class extends _0x3d44ee{constructor(_0x414408,_0x7f45f4,_0x4c1dbc,_0x51dd84,_0x2fcf9b,_0x70def7,_0x3d0a2d){const _0x172146=_0x489d75;super(),_(this,'_pollingInterval',null),_(this,_0x172146(0x2e7),0x0),_(this,_0x172146(0x35f),0x0),_(this,_0x172146(0x3e8),[]),_(this,_0x172146(0x202),0x0),(this[_0x172146(0x346)]=_0x414408,this['_commandService']=_0x7f45f4,this[_0x172146(0x209)]=_0x4c1dbc,this[_0x172146(0x267)]=_0x51dd84,this['_univerInstanceService']=_0x2fcf9b,this[_0x172146(0x370)]=_0x70def7,this[_0x172146(0x21d)]=_0x3d0a2d,this[_0x172146(0x26e)]());}[_0x489d75(0x26e)](){const _0xb772c7=_0x489d75;this[_0xb772c7(0x282)](this[_0xb772c7(0x35e)][_0xb772c7(0x2ab)]((_0x30b41a,_0x8674fd)=>{const _0x130888=_0xb772c7;var _0x57aab3;if(_0x30b41a['id']!==_0x28fb65['id'])return;const _0x16ce25=_0x30b41a[_0x130888(0x388)];if(!this[_0x130888(0x301)]((_0x57aab3=_0x16ce25[_0x130888(0x361)])!=null?_0x57aab3:[]))return;if(!this[_0x130888(0x292)]())throw this[_0x130888(0x315)](_0x30b41a,_0x8674fd),this[_0x130888(0x245)](),new _0x504f88();})),this[_0xb772c7(0x282)](this[_0xb772c7(0x35e)][_0xb772c7(0x389)]((_0xc8453a,_0x1b927c)=>{const _0x5cbbc2=_0xb772c7;if(_0xc8453a['id']!==_0x3bf510['id'])return;const _0x180e91=_0xc8453a['params'];if(En(_0x180e91)){const _0x1bc7c0=_0x50b639();this[_0x5cbbc2(0x3e8)][_0x5cbbc2(0x280)](_0x1bc7c0),this[_0x5cbbc2(0x25d)](_0x1bc7c0);}else{if(pn(_0x180e91)&&this[_0x5cbbc2(0x3e8)]['length']>0x0){const _0x39f308=this[_0x5cbbc2(0x3e8)][_0x5cbbc2(0x213)]();this[_0x5cbbc2(0x251)](_0x39f308);}}}));}[_0x489d75(0x1e4)](){const _0x59056b=_0x489d75;super[_0x59056b(0x1e4)](),this[_0x59056b(0x2b4)](),this[_0x59056b(0x3e8)]=[],this[_0x59056b(0x35f)]=0x0,this[_0x59056b(0x2e7)]=0x0,this[_0x59056b(0x202)]=0x0;}async[_0x489d75(0x315)](_0x5603c2,_0x109c9d){const _0x2c757b=_0x489d75;for(let _0x48af8a=0x0;_0x48af8a<0x1e;_0x48af8a++)try{if(await this[_0x2c757b(0x3f7)](),this['_checkCalculationAvailable']()){this[_0x2c757b(0x2cb)](_0x5603c2,_0x109c9d),this[_0x2c757b(0x346)]['show']({'content':this['_localeService']['t'](_0x2c757b(0x266)),'type':_0x453359[_0x2c757b(0x2e8)]});return;}await new Promise(_0x3d722a=>{const _0x51afcb=_0x2c757b;this[_0x51afcb(0x3a9)]=window[_0x51afcb(0x3df)](_0x3d722a,0x3e8);});}catch(_0x171307){this['_logService'][_0x2c757b(0x206)](_0x171307);}this[_0x2c757b(0x346)][_0x2c757b(0x2b5)]({'content':this[_0x2c757b(0x21d)]['t']('formula.calculation.unable'),'type':_0x453359[_0x2c757b(0x392)]});}[_0x489d75(0x2cb)](_0x1b5fa5,_0x47670e){const _0x251897=_0x489d75;try{this[_0x251897(0x35e)]['executeCommand'](_0x1b5fa5['id'],_0x1b5fa5[_0x251897(0x388)],_0x47670e);}catch(_0x3458cc){this['_logService']['error'](_0x3458cc);}}[_0x489d75(0x300)](_0x1345da,_0xe9ec19){const _0x29f62a=_0x489d75;_0xe9ec19<this[_0x29f62a(0x202)]||(this[_0x29f62a(0x202)]=_0xe9ec19,this[_0x29f62a(0x2e7)]=Number['parseInt'](_0x1345da[_0x29f62a(0x3f2)]),this[_0x29f62a(0x35f)]=Number[_0x29f62a(0x33f)](_0x1345da[_0x29f62a(0x2a0)]));}async[_0x489d75(0x25d)](_0x247c7c){const _0x41135e=_0x489d75;var _0x5c1112,_0x2ec34b;const _0x1971eb=Date[_0x41135e(0x378)]();try{const _0x3578e9=((_0x5c1112=this[_0x41135e(0x209)]['getConfig'](_0x4166ec))==null?void 0x0:_0x5c1112[_0x41135e(0x2bb)])||Rn,_0x415dfa=(await this[_0x41135e(0x267)][_0x41135e(0x296)](_0x3578e9,{'body':JSON['stringify']({'taskId':_0x247c7c})}))['body'];if(((_0x2ec34b=_0x415dfa[_0x41135e(0x206)])==null?void 0x0:_0x2ec34b['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x415dfa[_0x41135e(0x246)],_0x1971eb);}catch(_0x54b9d7){this[_0x41135e(0x370)][_0x41135e(0x206)](_0x54b9d7);}}async[_0x489d75(0x3f7)](_0x33f610){const _0xd9d090=_0x489d75;var _0x405f24,_0x3b6535;const _0x5389de=Date['now']();try{const _0x44981a=((_0x405f24=this['_configService'][_0xd9d090(0x3d6)](_0x4166ec))==null?void 0x0:_0x405f24[_0xd9d090(0x337)])||Cn,_0x790c75=_0x33f610?_0x44981a+_0xd9d090(0x2dc)+encodeURIComponent(_0x33f610):_0x44981a,_0x2c990c=(await this[_0xd9d090(0x267)][_0xd9d090(0x1bb)](_0x790c75))[_0xd9d090(0x1df)];if(((_0x3b6535=_0x2c990c[_0xd9d090(0x206)])==null?void 0x0:_0x3b6535['code'])!==Z['OK'])return;this[_0xd9d090(0x300)](_0x2c990c[_0xd9d090(0x246)],_0x5389de);}catch(_0x359798){this['_logService'][_0xd9d090(0x206)](_0x359798);}}async[_0x489d75(0x251)](_0x2bf9fe){const _0x292702=_0x489d75;var _0xbe6a8a,_0x35decb;const _0x301fd9=Date[_0x292702(0x378)]();try{const _0x2fe876=((_0xbe6a8a=this[_0x292702(0x209)][_0x292702(0x3d6)](_0x4166ec))==null?void 0x0:_0xbe6a8a[_0x292702(0x37c)])||Dn,_0x54e8db=(await this[_0x292702(0x267)][_0x292702(0x296)](_0x2fe876,{'body':JSON[_0x292702(0x1be)]({'taskId':_0x2bf9fe})}))[_0x292702(0x1df)];if(((_0x35decb=_0x54e8db[_0x292702(0x206)])==null?void 0x0:_0x35decb[_0x292702(0x28b)])!==Z['OK'])return;this[_0x292702(0x300)](_0x54e8db[_0x292702(0x246)],_0x301fd9);}catch(_0x27fbbb){this[_0x292702(0x370)][_0x292702(0x206)](_0x27fbbb);}}[_0x489d75(0x292)](){const _0x5942ed=_0x489d75;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x5942ed(0x2e7)]-this[_0x5942ed(0x35f)]>0x0;}[_0x489d75(0x2b4)](){const _0x4c1630=_0x489d75;this['_pollingInterval']&&(clearTimeout(this[_0x4c1630(0x3a9)]),this['_pollingInterval']=null);}[_0x489d75(0x245)](){const _0x18bc20=_0x489d75;this['_messageService'][_0x18bc20(0x2b5)]({'content':this[_0x18bc20(0x21d)]['t'](_0x18bc20(0x1ce)),'type':_0x453359['Loading']});}[_0x489d75(0x301)](_0x1c326f){const _0x236cf3=_0x489d75;for(const _0x1eb46b of _0x1c326f){const {unitId:_0x3dd409,sheetId:_0x1799fb,range:_0x429343}=_0x1eb46b,_0xd1355b=this[_0x236cf3(0x320)][_0x236cf3(0x347)](_0x3dd409);if(!_0xd1355b)continue;const _0x3694d5=_0xd1355b['getSheetBySheetId'](_0x1799fb);if(!_0x3694d5)continue;const _0xc3b3dd=_0x3694d5['getCellMatrix']();for(let _0x76e967=_0x429343['startRow'];_0x76e967<=_0x429343[_0x236cf3(0x1b4)];_0x76e967++)for(let _0x3f9dc9=_0x429343[_0x236cf3(0x22e)];_0x3f9dc9<=_0x429343[_0x236cf3(0x3c9)];_0x3f9dc9++){const _0x32aeb9=_0xc3b3dd['getValue'](_0x76e967,_0x3f9dc9);if(_0x32aeb9&&(_0x292b45(_0x32aeb9['f'])||_0x5f2d0d(_0x32aeb9['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x202ade(_0xcd0d9)),P(0x1,_0x351000),P(0x2,_0x1f81f8),P(0x3,_0x202ade(_0x2d0ef5)),P(0x4,_0x47b405),P(0x5,_0x5054cc),P(0x6,_0x202ade(_0x27fab8))],me);var bn=Object[_0x489d75(0x38a)],Nn=(_0x3861b5,_0x14a919,_0xae1e08,_0x1d3690)=>{const _0x3615ca=_0x489d75;for(var _0x31a226=_0x1d3690>0x1?void 0x0:_0x1d3690?bn(_0x14a919,_0xae1e08):_0x14a919,_0x3d5cf5=_0x3861b5[_0x3615ca(0x3e1)]-0x1,_0x515f48;_0x3d5cf5>=0x0;_0x3d5cf5--)(_0x515f48=_0x3861b5[_0x3d5cf5])&&(_0x31a226=_0x515f48(_0x31a226)||_0x31a226);return _0x31a226;},Ue=(_0x16322c,_0x330b37)=>(_0x513cb9,_0x32bbdb)=>_0x330b37(_0x513cb9,_0x32bbdb,_0x16322c);let He=class extends _0x3d44ee{constructor(_0x167d02,_0x54c44f,_0x5d5c8b){const _0x4db5ee=_0x489d75;super(),_(this,'_cachedData',new Map()),_(this,_0x4db5ee(0x3b4),new Map()),_(this,_0x4db5ee(0x221),!0x1),(this[_0x4db5ee(0x209)]=_0x167d02,this[_0x4db5ee(0x28d)]=_0x54c44f,this['_revisionService']=_0x5d5c8b);}['disableLocalCache'](){const _0x4c8b3d=_0x489d75;this[_0x4c8b3d(0x221)]=!0x0;}[_0x489d75(0x1fe)](){const _0x50829f=_0x489d75;this[_0x50829f(0x221)]=!0x1;}get[_0x489d75(0x29a)](){const _0x345c4f=_0x489d75;return this[_0x345c4f(0x3b4)];}[_0x489d75(0x1e4)](){const _0x187773=_0x489d75;this['exhaustSavingTask']()[_0x187773(0x2ce)](()=>super['dispose']());}async[_0x489d75(0x23b)](_0x11ce5d){const _0x44ef33=_0x489d75;return this['_disabled']?null:this[_0x44ef33(0x28d)]['getItem'](_0x39c194(_0x11ce5d));}async[_0x489d75(0x3b3)](_0x501536,_0x36ceb5){const _0x29ede6=_0x489d75;return!!this[_0x29ede6(0x28d)][_0x29ede6(0x252)](_0x501536,_0x36ceb5);}[_0x489d75(0x341)](_0x523372,_0x423f23,_0x537328,_0x1d6fcc){const _0x4a2692=_0x489d75,_0x3b9e11=this[_0x4a2692(0x3dd)][_0x4a2692(0x1e9)](_0x523372);this['_cachedData']['set'](_0x523372,{'unitID':_0x523372,'type':_0x423f23,'awaitingChangeset':_0x537328,'mutations':_0x1d6fcc,'rev':_0x3b9e11}),this['_saveTaskMap'][_0x4a2692(0x2c8)](_0x523372)||this['_scheduleSaving'](_0x523372);}[_0x489d75(0x21f)](_0x5ce121){const _0x561e61=_0x489d75,_0x376711=this[_0x561e61(0x3a8)]();_0x376711===0x0?this[_0x561e61(0x383)](_0x5ce121):this[_0x561e61(0x3b4)][_0x561e61(0x3bc)](_0x5ce121,setTimeout(()=>this['_saveCache'](_0x5ce121),_0x376711));}[_0x489d75(0x3a8)](){const _0xec5e37=_0x489d75;var _0x549fee;return(_0x549fee=this[_0xec5e37(0x209)][_0xec5e37(0x3d6)](_0x595aa3))!=null?_0x549fee:_0x5f0196;}[_0x489d75(0x383)](_0x11a941){const _0x12e7f4=_0x489d75,_0x2b7da7=this['_saveTaskMap']['get'](_0x11a941);return _0x2b7da7!==void 0x0&&window[_0x12e7f4(0x377)](_0x2b7da7),this['_localStorageService'][_0x12e7f4(0x252)](_0x39c194(_0x11a941),this[_0x12e7f4(0x3e6)][_0x12e7f4(0x1bb)](_0x11a941))[_0x12e7f4(0x2ce)](()=>this[_0x12e7f4(0x3b4)][_0x12e7f4(0x249)](_0x11a941));}async[_0x489d75(0x37f)](){const _0xbd7c43=_0x489d75,_0x65cebe=[];this[_0xbd7c43(0x3b4)]['forEach']((_0xbbab08,_0x5abd2d)=>{const _0x4871a0=_0xbd7c43;window[_0x4871a0(0x377)](_0xbbab08),_0x65cebe[_0x4871a0(0x280)](this[_0x4871a0(0x383)](_0x5abd2d)[_0x4871a0(0x2ce)](()=>{const _0x1cc506=_0x4871a0;this['_saveTaskMap'][_0x1cc506(0x249)](_0x5abd2d);}));}),await Promise[_0xbd7c43(0x34a)](_0x65cebe);}};He=Nn([Ue(0x0,_0x1f81f8),Ue(0x1,_0x298059),Ue(0x2,_0x202ade(_0x102b66))],He);class Ln extends _0x31f19d{constructor(){const _0x5dd08d=_0x489d75;super(),_(this,'urlChange$'),this[_0x5dd08d(0x265)]=_0x29c23f(window,'popstate')[_0x5dd08d(0x2f8)](_0x2b26c7(this['dispose$']),_0xa88512(0x1),_0x84bda4(void 0x0));}[_0x489d75(0x25e)](_0x389cd2,_0x3b2973,_0x2fb2ce=!0x1){const _0x5f523a=_0x489d75,_0x960a89=new URL(window[_0x5f523a(0x390)][_0x5f523a(0x2bc)]);_0x960a89['searchParams']['set'](_0x389cd2,_0x3b2973),_0x2fb2ce?window[_0x5f523a(0x268)][_0x5f523a(0x238)]('','',_0x960a89[_0x5f523a(0x1c5)]()):window['history'][_0x5f523a(0x3ce)]('','',_0x960a89[_0x5f523a(0x1c5)]());}[_0x489d75(0x256)](_0x4f0e91,_0x4f5923=!0x1){const _0x217368=_0x489d75,_0x41a120=new URL(window['location'][_0x217368(0x2bc)]);_0x41a120[_0x217368(0x2a4)][_0x217368(0x249)](_0x4f0e91),_0x4f5923?window['history'][_0x217368(0x238)]('','',_0x41a120['toString']()):window[_0x217368(0x268)][_0x217368(0x3ce)]('','',_0x41a120['toString']());}[_0x489d75(0x2d3)](_0x292363){const _0x266034=_0x489d75;var _0x2e81d5;return(_0x2e81d5=new URL(window['location'][_0x266034(0x2bc)])['searchParams'][_0x266034(0x1bb)](_0x292363))!=null?_0x2e81d5:void 0x0;}}var Un=Object[_0x489d75(0x1d0)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x1401c0,_0x492285,_0x226991)=>_0x492285 in _0x1401c0?Un(_0x1401c0,_0x492285,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x226991}):_0x1401c0[_0x492285]=_0x226991,Pn=(_0x23ac1a,_0x271144,_0x130c53,_0x468a9b)=>{const _0x4fa46e=_0x489d75;for(var _0x843fc0=_0x468a9b>0x1?void 0x0:_0x468a9b?Mn(_0x271144,_0x130c53):_0x271144,_0x95daf2=_0x23ac1a[_0x4fa46e(0x3e1)]-0x1,_0x1cc9a4;_0x95daf2>=0x0;_0x95daf2--)(_0x1cc9a4=_0x23ac1a[_0x95daf2])&&(_0x843fc0=_0x1cc9a4(_0x843fc0)||_0x843fc0);return _0x843fc0;},Me=(_0x341887,_0x2ae448)=>(_0xf8b878,_0x175b89)=>_0x2ae448(_0xf8b878,_0x175b89,_0x341887),wn=(_0x1e44e3,_0x17fb87,_0x431009)=>An(_0x1e44e3,_0x17fb87+'',_0x431009);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x49d9c1{constructor(_0x1bf152=_t,_0x327cf3,_0x1305ba,_0x4cc50d){const _0x22ffaa=_0x489d75;super(),this['_config']=_0x1bf152,this[_0x22ffaa(0x365)]=_0x327cf3,this['_injector']=_0x1305ba,this[_0x22ffaa(0x209)]=_0x4cc50d;const {..._0x103c2e}=_0x18e3f5({},_t,this['_config']);this[_0x22ffaa(0x209)][_0x22ffaa(0x34d)](hn,_0x103c2e);}[_0x489d75(0x276)](){const _0x4c5b40=_0x489d75;this['_registerDependencies'](),this[_0x4c5b40(0x1ec)]();}['onRendered'](){const _0x517f48=_0x489d75;this[_0x517f48(0x33a)]();}[_0x489d75(0x1b5)](){const _0x4cb8b8=_0x489d75;var _0x2ed00e;const _0x57ecc0=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x356f99,{'useClass':_0x3d13d3}],[_0x2ff612,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this['_config'][_0x4cb8b8(0x39f)]&&_0x57ecc0[_0x4cb8b8(0x280)]([le]),_0x34d946(this[_0x4cb8b8(0x36a)],_0x508995(_0x57ecc0,(_0x2ed00e=this[_0x4cb8b8(0x26f)])==null?void 0x0:_0x2ed00e[_0x4cb8b8(0x22d)]));}['_registerRenderDependencies'](){const _0x5e7618=_0x489d75;this[_0x5e7618(0x282)](this[_0x5e7618(0x365)][_0x5e7618(0x376)](_0x38bec1['UNIVER_DOC'],[Fe])),this[_0x5e7618(0x282)](this[_0x5e7618(0x365)][_0x5e7618(0x376)](_0x38bec1[_0x5e7618(0x2c6)],[ke]));}[_0x489d75(0x1ec)](){const _0x34bfd9=_0x489d75;_0x59829d(this[_0x34bfd9(0x36a)],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x34bfd9(0x26f)][_0x34bfd9(0x39f)]&&_0x59829d(this['_injector'],[[le]]);}};wn(Ye,_0x489d75(0x31c),yn),Ye=Pn([_0xefd262(_0x46c358),Me(0x1,_0x3981cf),Me(0x2,_0x202ade(_0x555a92)),Me(0x3,_0x1f81f8)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x3361a8,_0x26a766,_0x161671,_0x5b8458)=>{for(var _0x33d2f0=_0x5b8458>0x1?void 0x0:_0x5b8458?$n(_0x26a766,_0x161671):_0x26a766,_0xefab74=_0x3361a8['length']-0x1,_0x3d156a;_0xefab74>=0x0;_0xefab74--)(_0x3d156a=_0x3361a8[_0xefab74])&&(_0x33d2f0=_0x3d156a(_0x33d2f0)||_0x33d2f0);return _0x33d2f0;},J=(_0x4ea669,_0x17c679)=>(_0xb782cb,_0x181fba)=>_0x17c679(_0xb782cb,_0x181fba,_0x4ea669);let ut=class extends _0x2996d2{constructor(_0x415090,_0xa1a0dc,_0x3b5a32,_0x477461,_0x4b8bd7){super(_0x415090,_0xa1a0dc,_0x3b5a32,_0x477461,_0x4b8bd7);}async[_0x489d75(0x20e)](_0x39741c){const _0x268d6e=_0x489d75,_0x195acd=await this[_0x268d6e(0x1b6)](),_0x47452c=this[_0x268d6e(0x364)](_0x39741c,_0x195acd);return this['_doCreateSocket'](_0x47452c);}[_0x489d75(0x364)](_0xb4f528,_0x44ddb1){const _0x123067=_0x489d75,_0x5033c6=typeof window>'u'?new URL(_0xb4f528):new URL(_0xb4f528,window[_0x123067(0x390)][_0x123067(0x22a)]);_0x5033c6[_0x123067(0x2a4)]['set'](_0x123067(0x22c),_0x44ddb1);const _0x227b69=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x123067(0x390)][_0x123067(0x1ba)]);return _0x227b69[_0x123067(0x1bb)](_0x123067(0x3d2))&&_0x5033c6[_0x123067(0x2a4)]['set'](_0x123067(0x3d2),_0x227b69[_0x123067(0x1bb)](_0x123067(0x3d2))),_0x5033c6[_0x123067(0x1c5)]();}async[_0x489d75(0x1b6)](){const _0x3c47c2=_0x489d75;var _0xa6f4e7,_0x4a5ca2,_0x5d307c;const _0xcfd352=this[_0x3c47c2(0x209)][_0x3c47c2(0x3d6)](_0x4166ec),_0x353d9d=(_0xa6f4e7=_0xcfd352==null?void 0x0:_0xcfd352[_0x3c47c2(0x222)])!=null?_0xa6f4e7:_0x1719f5;return(_0x5d307c=(_0x4a5ca2=(await this['_httpService'][_0x3c47c2(0x1bb)](_0x353d9d,{'headers':{'Content-Type':_0x3c47c2(0x1e5)}}))[_0x3c47c2(0x1df)])==null?void 0x0:_0x4a5ca2['ticket'])!=null?_0x5d307c:'';}};ut=xn([J(0x0,_0x202ade(_0x555a92)),J(0x1,_0x202ade(_0x2d0ef5)),J(0x2,_0x1f81f8),J(0x3,_0x5054cc),J(0x4,_0x480ff2)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x5d1546,_0x57f17b,_0x2b0ec0,_0x1957fb)=>{const _0x2a2d14=_0x489d75;for(var _0x328703=_0x1957fb>0x1?void 0x0:_0x1957fb?Bn(_0x57f17b,_0x2b0ec0):_0x57f17b,_0x46ec95=_0x5d1546[_0x2a2d14(0x3e1)]-0x1,_0x121bbf;_0x46ec95>=0x0;_0x46ec95--)(_0x121bbf=_0x5d1546[_0x46ec95])&&(_0x328703=_0x121bbf(_0x328703)||_0x328703);return _0x328703;},Ae=(_0x419c1e,_0x484c23)=>(_0x57d124,_0x2f7eac)=>_0x484c23(_0x57d124,_0x2f7eac,_0x419c1e);let dt=class extends _0x3d44ee{constructor(_0x4c84ed,_0x52d925,_0x3084fd){const _0x392003=_0x489d75;super(),this[_0x392003(0x2e5)]=_0x4c84ed,this[_0x392003(0x267)]=_0x52d925,this[_0x392003(0x209)]=_0x3084fd;}async[_0x489d75(0x2fe)](_0x30a5ca,_0x5ce91b,_0x23d95e,..._0x47d0ca){const _0x8c63cc=_0x489d75;var _0xe401c8,_0x25a2dc,_0x4120b7,_0xd02a93;const _0x51ed45=this[_0x8c63cc(0x2e5)][_0x8c63cc(0x2d4)]();if(!_0x51ed45)throw new Error(_0x8c63cc(0x1fd));const _0x3d405b=((_0xe401c8=this[_0x8c63cc(0x209)][_0x8c63cc(0x3d6)](_0x4f91d6))!=null?_0xe401c8:_0x364199)+'/'+_0x30a5ca+_0x8c63cc(0x1e8)+_0x5ce91b,_0x325b76=new URL(window[_0x8c63cc(0x390)][_0x8c63cc(0x2bc)]),_0xb2aec1={'scriptId':_0x30a5ca,'runId':(_0x25a2dc=_0x325b76[_0x8c63cc(0x2a4)]['get'](_0x8c63cc(0x3d2)))!=null?_0x25a2dc:'','function':_0x5ce91b,'unitId':_0x51ed45[_0x8c63cc(0x3d1)](),'argsOfFunction':JSON[_0x8c63cc(0x1be)](_0x47d0ca),'invokeId':(_0x4120b7=_0x23d95e['invokeId'])!=null?_0x4120b7:'','executionId':(_0xd02a93=_0x23d95e[_0x8c63cc(0x3c1)])!=null?_0xd02a93:''};try{const _0x4700b6=await this[_0x8c63cc(0x267)][_0x8c63cc(0x296)](_0x3d405b,{'body':_0xb2aec1});return _0x4700b6[_0x8c63cc(0x1df)]['error']&&_0x4700b6['body'][_0x8c63cc(0x206)][_0x8c63cc(0x28b)]!==Z['OK']?_0x8c63cc(0x3ba):_0x4700b6['body'][_0x8c63cc(0x340)];}catch{return _0x8c63cc(0x3ba);}}};dt=Fn([Ae(0x0,_0x47b405),Ae(0x1,_0x202ade(_0x2d0ef5)),Ae(0x2,_0x1f81f8)],dt);const St=0x7530,mt='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x3d44ee{constructor(){const _0x9e2da3=_0x489d75;super(),_(this,_0x9e2da3(0x37a),_0x50b639()),_(this,'_selfUnitIDs',new Set()),_(this,_0x9e2da3(0x208),new Map()),_(this,_0x9e2da3(0x3cc),null),_(this,_0x9e2da3(0x313),new Map()),_(this,_0x9e2da3(0x263),new Map()),this['_init']();}[_0x489d75(0x1e4)](){const _0x1a3d93=_0x489d75;super['dispose'](),this[_0x1a3d93(0x313)][_0x1a3d93(0x358)]((_0x3b0d49,_0x1ef573)=>this[_0x1a3d93(0x2fb)](_0x1ef573)),this[_0x1a3d93(0x3cc)]&&window[_0x1a3d93(0x29b)](this['_heartbeatTimer']);}[_0x489d75(0x289)](_0x14d629){return this['_ensureSubject'](_0x14d629)['pipe'](_0x95406f());}[_0x489d75(0x398)](_0x54898f){const _0x13d367=_0x489d75;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x13d367(0x1d7)][_0x13d367(0x2ae)](_0x54898f),this[_0x13d367(0x3e5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x54898f],'isForwarded':!0x1});}[_0x489d75(0x329)](_0x58391f){const _0x12bb72=_0x489d75;this[_0x12bb72(0x1d7)][_0x12bb72(0x249)](_0x58391f),this[_0x12bb72(0x1d7)][_0x12bb72(0x2c7)]===0x0&&this[_0x12bb72(0x3cc)]&&window['clearInterval'](this[_0x12bb72(0x3cc)]);}[_0x489d75(0x2c1)](){const _0x42541a=_0x489d75;this[_0x42541a(0x282)](_0x467256(_0x29c23f(window,'storage')[_0x42541a(0x281)](_0x541eeb=>{const _0x57e90b=_0x42541a;if(_0x541eeb[_0x57e90b(0x287)]!==mt||!_0x541eeb[_0x57e90b(0x34c)])return;const _0x62ec55=JSON[_0x57e90b(0x3c0)](_0x541eeb['newValue']);this['_handleEvent'](_0x62ec55);}))),window['addEventListener'](_0x42541a(0x26c),()=>this[_0x42541a(0x3e5)]({'type':0x1,'memberID':this[_0x42541a(0x37a)],'unitIDs':Array[_0x42541a(0x31d)](this['_selfUnitIDs'])}));}[_0x489d75(0x32f)](_0x41d7fb){const _0x28861c=_0x489d75;switch(_0x41d7fb[_0x28861c(0x34b)]){case 0x0:this['_handleJoinEvent'](_0x41d7fb);break;case 0x1:this[_0x28861c(0x297)](_0x41d7fb);break;case 0x2:this[_0x28861c(0x3bd)](_0x41d7fb);break;}}[_0x489d75(0x295)](_0x107a65){const _0x263d49=_0x489d75,{unitIDs:_0x49c37b,memberID:_0x727d06,isForwarded:_0xaeb0bb}=_0x107a65;_0x49c37b[_0x263d49(0x358)](_0x1b14e3=>{const _0x176327=_0x263d49;if(!_0xaeb0bb&&this[_0x176327(0x208)][_0x176327(0x2c8)](_0x1b14e3)&&this['_ensureSubject'](_0x1b14e3)[_0x176327(0x1c7)](_0x3b9449[_0x176327(0x31e)]),!this[_0x176327(0x208)][_0x176327(0x2c8)](_0x1b14e3)||!this[_0x176327(0x208)][_0x176327(0x1bb)](_0x1b14e3)['has'](_0x727d06)){const _0xbd9ede=this[_0x176327(0x208)]['get'](_0x1b14e3)||new Set();_0xbd9ede[_0x176327(0x2ae)](_0x727d06),this[_0x176327(0x208)]['set'](_0x1b14e3,_0xbd9ede),this[_0x176327(0x369)](_0x727d06);}}),_0xaeb0bb||this[_0x263d49(0x3e5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x489d75(0x369)](_0x31f717){const _0x4d5669=_0x489d75;this[_0x4d5669(0x2fb)](_0x31f717);const _0x290929=window[_0x4d5669(0x3df)](()=>{const _0x127d04=_0x4d5669;this[_0x127d04(0x208)][_0x127d04(0x358)](_0x13a47d=>{const _0x6314b6=_0x127d04;_0x13a47d[_0x6314b6(0x249)](_0x31f717);});},St*0x2);this[_0x4d5669(0x313)][_0x4d5669(0x3bc)](_0x31f717,_0x290929);}[_0x489d75(0x2fb)](_0x328672){const _0x35204e=_0x489d75;if(this[_0x35204e(0x313)]['has'](_0x328672)){const _0xb5f7ae=this[_0x35204e(0x313)][_0x35204e(0x1bb)](_0x328672);_0xb5f7ae&&window[_0x35204e(0x377)](_0xb5f7ae),this[_0x35204e(0x313)]['set'](_0x328672,null);}}[_0x489d75(0x297)](_0x488cff){const _0x179207=_0x489d75,{memberID:_0x4684f3,unitIDs:_0x23eda7}=_0x488cff;_0x23eda7[_0x179207(0x358)](_0x5b7367=>{const _0x3179d4=_0x179207;var _0x3be03d;const _0x2d0cf4=this[_0x3179d4(0x208)][_0x3179d4(0x1bb)](_0x5b7367);_0x2d0cf4&&(_0x2d0cf4[_0x3179d4(0x249)](_0x4684f3),(_0x3be03d=this[_0x3179d4(0x395)](_0x5b7367))==null||_0x3be03d[_0x3179d4(0x1c7)](_0x2d0cf4[_0x3179d4(0x2c7)]===0x0?_0x3b9449[_0x3179d4(0x2f6)]:_0x3b9449[_0x3179d4(0x31e)]));}),this[_0x179207(0x2fb)](_0x4684f3);}[_0x489d75(0x3bd)](_0x14bef7){const _0x469211=_0x489d75;this['_scheduleClearOtherTimer'](_0x14bef7[_0x469211(0x207)]);}[_0x489d75(0x3e5)](_0x2c5c60){const _0x42ea61=_0x489d75;localStorage[_0x42ea61(0x252)](mt,JSON[_0x42ea61(0x1be)](_0x2c5c60));}[_0x489d75(0x275)](){const _0x550c41=_0x489d75;this[_0x550c41(0x3cc)]=window[_0x550c41(0x372)](()=>{const _0x184fb1=_0x550c41;this[_0x184fb1(0x3e5)]({'type':0x2,'memberID':this[_0x184fb1(0x37a)]});},St);}[_0x489d75(0x395)](_0x2ec900){const _0x4158c1=_0x489d75;return this['_unitStatus']['has'](_0x2ec900)||this[_0x4158c1(0x263)][_0x4158c1(0x3bc)](_0x2ec900,new _0x3401b7(_0x3b9449[_0x4158c1(0x2f6)])),this[_0x4158c1(0x263)][_0x4158c1(0x1bb)](_0x2ec900);}}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};
|