@univerjs-pro/collaboration-client-ui 0.10.6-nightly.202509060832 → 0.10.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1de525=_0x1f2d;(function(_0x2b6ea2,_0x1ff7eb){const _0x45ae32=_0x1f2d,_0x580f18=_0x2b6ea2();while(!![]){try{const _0x45a078=-parseInt(_0x45ae32(0x1ba))/0x1*(parseInt(_0x45ae32(0x2fb))/0x2)+parseInt(_0x45ae32(0x130))/0x3+-parseInt(_0x45ae32(0x14d))/0x4*(parseInt(_0x45ae32(0x2e0))/0x5)+-parseInt(_0x45ae32(0x1e5))/0x6+parseInt(_0x45ae32(0x177))/0x7+parseInt(_0x45ae32(0x2ee))/0x8+parseInt(_0x45ae32(0x243))/0x9;if(_0x45a078===_0x1ff7eb)break;else _0x580f18['push'](_0x580f18['shift']());}catch(_0x38c4d8){_0x580f18['push'](_0x580f18['shift']());}}}(_0x2c8e,0xa38e2));var xt=Object[_0x1de525(0x2d5)],Bt=(_0x2fc89d,_0x28172b,_0x575363)=>_0x28172b in _0x2fc89d?xt(_0x2fc89d,_0x28172b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x575363}):_0x2fc89d[_0x28172b]=_0x575363,_=(_0x36cbfd,_0x4ee6d1,_0x1f97d4)=>Bt(_0x36cbfd,typeof _0x4ee6d1!='symbol'?_0x4ee6d1+'':_0x4ee6d1,_0x1f97d4);import{jsx as _0x22a986,jsxs as _0x930f14}from'react/jsx-runtime';import{CollaborationStatus as _0x44d661,CollaborationSessionService as _0x31b372,CollaborationController as _0x16a7df,DataLoaderService as _0x3d8bd6,MemberService as _0x30e787,SessionStatus as _0xbb7629,ILocalCacheService as _0x24e892,CollaborationUIEventService as _0x1872de,CollaborationUIEventId as _0x4b7116,DocCollaborationEntity as _0x1c3eb9,getLocalCacheKey as _0x244215,LOCAL_CACHE_INTERVAL as _0xd3d76a,LOCAL_CACHE_INTERVAL_KEY as _0x150080,UniverCollaborationClientPlugin as _0x6a685d,CollaborationSocketService as _0x2918d0,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x475903,DEFAULT_WS_SESSION_TICKET_URL as _0x5beca7,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x16e5e3,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4a0382,UnitStatus as _0x4d8153}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x1ad900,IUniverInstanceService as _0x38aa79,Inject as _0x5c6996,Injector as _0x25bcbf,Disposable as _0x27b35c,createIdentifier as _0x4dce94,ILogService as _0x3d5d66,ICommandService as _0x3d6ba5,Optional as _0xadcd71,RxDisposable as _0x5d5e25,Workbook as _0x28849d,DOC_RANGE_TYPE as _0x12430b,debounce as _0x2398b9,Rectangle as _0x2040a1,DisposableCollection as _0x57cfe9,toDisposable as _0x2685e5,UniverInstanceType as _0x5ef820,generateRandomId as _0x39b37f,COLORS as _0x13a4be,ColorKit as _0x208161,ThemeService as _0x1d1c1e,fromEventSubject as _0x987390,Tools as _0x41f479,CommandType as _0x35b953,IConfigService as _0x4736f4,ILocalStorageService as _0x5de8fb,DependentOn as _0x18f8a6,Plugin as _0x34f9ca,merge as _0x25d7a3,registerDependencies as _0x13f4a4,mergeOverrideWithDependencies as _0x30e5fb,touchDependencies as _0x1e35aa}from'@univerjs/core';import{useObservable as _0x16372b,useDependency as _0xb19721,IUIPartsService as _0x46dcc7,BuiltInUIPart as _0x4eaa43,connectInjector as _0x2e9287,IBeforeCloseService as _0x392fb9,IMessageService as _0x2ec900,INotificationService as _0xb95b8d}from'@univerjs/ui';import{BehaviorSubject as _0x1c5c36,switchMap as _0x85c43a,of as _0x46fe23,takeUntil as _0x552e0d,debounceTime as _0x503527,Subject as _0x12a97c,filter as _0x220197,merge as _0x2422bd,combineLatest as _0x24a102,fromEvent as _0x443658,shareReplay as _0x3e24d5,mapTo as _0x587e52,distinctUntilChanged as _0x4d90cd}from'rxjs';import{Tooltip as _0x153909,clsx as _0x1621da,MessageType as _0x391a65}from'@univerjs/design';import{forwardRef as _0x3728aa,useRef as _0x34f85d,createElement as _0x2e37da,useCallback as _0x1bbcf2}from'react';import{IRemoteInstanceService as _0x2fd947}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x6f9153,RefRangeService as _0x596355,SetSelectionsOperation as _0x4f4d5e,SheetsSelectionsService as _0x20ba72,EffectRefRangId as _0x2669fb,handleIRemoveRow as _0x1fd061,handleIRemoveCol as _0x2e7d8e,handleMoveRange as _0x29bef9,handleInsertRow as _0xeb3fa2,handleInsertRangeMoveRight as _0x312a7d,handleInsertRangeMoveDown as _0x51d53a,handleInsertCol as _0x23b976,handleDeleteRangeMoveUp as _0xe6ac9,handleDeleteRangeMoveLeft as _0x5c62f0,runRefRangeMutations as _0x32d34f}from'@univerjs/sheets';import{Shape as _0xfc37c0,Rect as _0x1e8379,getColor as _0x45905f,RegularPolygon as _0x3017af,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5191a8,Vector2 as _0x180f0e,SHEET_VIEWPORT_KEY as _0x111c64,IRenderManagerService as _0x16d4b6}from'@univerjs/engine-render';import{ISocketService as _0x2f6e6b,WebSocketService as _0x144cd3,HTTPService as _0x3d7078}from'@univerjs/network';import{IDocClipboardService as _0x1f6e08,NodePositionConvertToCursor as _0x56e03a,NodePositionConvertToRectRange as _0x1a6ea6,TEXT_RANGE_LAYER_INDEX as _0x3b94f3,SetDocZoomRatioOperation as _0x21d4a2,DocIMEInputManagerService as _0x12689e,DocStateChangeManagerService as _0x508713}from'@univerjs/docs-ui';import{IImageIoService as _0x43c74a}from'@univerjs/drawing';import{ITransformService as _0x4d45d3,CollaborationEvent as _0x3e51f4,isTransformMutationFailure as _0x394d8b,isTransformMutationsWithChangesetSuccess as _0x464946,RevisionService as _0x2e91e3,ISnapshotServerService as _0x2cbbd}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4f359e,RichTextEditingMutation as _0x16fcc7,DocSelectionManagerService as _0x54ea0b,DocSkeletonManagerService as _0x808ff5}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4365d9,serializeRangeWithSheet as _0x218740}from'@univerjs/engine-formula';import{map as _0x2d8288,filter as _0x4f37b8,throttleTime as _0xa545cd,takeUntil as _0x401d5a,switchMap as _0x54796f}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2ea6c6,getCoordByCell as _0x5d0a55,getSheetObject as _0x5750fc}from'@univerjs/sheets-ui';var v=function(){return v=Object['assign']||function(_0x499970){const _0xd8d982=_0x1f2d;for(var _0x235e75,_0x589921=0x1,_0x52cde9=arguments[_0xd8d982(0x16e)];_0x589921<_0x52cde9;_0x589921++){_0x235e75=arguments[_0x589921];for(var _0x5258ad in _0x235e75)Object[_0xd8d982(0x2d9)][_0xd8d982(0x2b1)][_0xd8d982(0x1e3)](_0x235e75,_0x5258ad)&&(_0x499970[_0x5258ad]=_0x235e75[_0x5258ad]);}return _0x499970;},v['apply'](this,arguments);},ci=function(_0x583d44,_0x364de2){const _0x14d019=_0x1de525;var _0xc09553={};for(var _0x224ad4 in _0x583d44)Object['prototype'][_0x14d019(0x2b1)]['call'](_0x583d44,_0x224ad4)&&_0x364de2['indexOf'](_0x224ad4)<0x0&&(_0xc09553[_0x224ad4]=_0x583d44[_0x224ad4]);if(_0x583d44!=null&&typeof Object[_0x14d019(0x12d)]=='function'){for(var _0x5d4955=0x0,_0x224ad4=Object[_0x14d019(0x12d)](_0x583d44);_0x5d4955<_0x224ad4[_0x14d019(0x16e)];_0x5d4955++)_0x364de2['indexOf'](_0x224ad4[_0x5d4955])<0x0&&Object[_0x14d019(0x2d9)][_0x14d019(0x1fc)]['call'](_0x583d44,_0x224ad4[_0x5d4955])&&(_0xc09553[_0x224ad4[_0x5d4955]]=_0x583d44[_0x224ad4[_0x5d4955]]);}return _0xc09553;},ke=_0x3728aa(function(_0x28515c,_0x5a75f0){const _0x455379=_0x1de525;var _0x44714b=_0x28515c[_0x455379(0x149)],_0x50c2d7=_0x28515c['id'],_0x16f930=_0x28515c[_0x455379(0x1c1)],_0x200ab0=_0x28515c[_0x455379(0x2b3)],_0x160107=ci(_0x28515c,[_0x455379(0x149),'id',_0x455379(0x1c1),_0x455379(0x2b3)]),_0x40e227='univerjs-icon\x20univerjs-icon-'[_0x455379(0x1b0)](_0x50c2d7,'\x20')[_0x455379(0x1b0)](_0x16f930||'')[_0x455379(0x306)](),_0x29cde5=_0x34f85d('_'[_0x455379(0x1b0)](hi()));return Rt(_0x44714b,''[_0x455379(0x1b0)](_0x50c2d7),{'defIds':_0x44714b[_0x455379(0x143)],'idSuffix':_0x29cde5[_0x455379(0x2ce)]},v({'ref':_0x5a75f0,'className':_0x40e227},_0x160107),_0x200ab0);});function _0x2c8e(){const _0x4359e8=['top','_textBubble','getCollabCursors$','INVITE_CODE_REQUIRED','engine','MOBILE_VERIFY_CODE_MISMATCH','MOBILE_HAS_BEEN_BOUND','_onCursorUpdate','requireSession','registerRenderModule','_updateURLWithCurrentState','getColorFromTheme','closePath','getValue','transformMutationsWithChangeset','override','resize','call','getAncestorScale','7500582LhCLad','startsWith','moveTo','transformMutation','tag','_document','_toggleOnline','USER_NOT_INVITED_CODE','_drawTextRange','white','fillStyle','deepClone','_cachedData','ALREADY_EXISTS','_colorAssignService','map','NOT_COLLAB','UPDATE_CURSOR','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','idSuffix','OnLineIcon','collaboration.closeRoom','EMAIL_HAS_BEEN_BOUND','propertyIsEnumerable','assignAColorForMemberID','rgba(255,\x20255,\x20255,\x200.01)','_memberService','getSkeleton','_startDocCollabCursor','_getSheetObject','_initEvent','get','_handleJoinEvent','event$','LICENSE_IMPORT_SIZE_EXCEEDED','asObservable','NOT_FOUND','getTypeOfUnitAdded$','HEADER_MENU','has','_beforeCloseService','APPLY_REVISION_CONFILICT','getActiveSheet','getFocusedUnit','endRow','onPointerLeave$','session.will-retry','send','WECHAT_HAS_BEEN_BOUND','translate(.97)','size','collab-rect-range-','unsubscribe','column','getCollabEntity$','runId','measureText','runOnServer','onPointerMove$','_dataLoaderService','JOIN_ROOM_FAILED','getParam','getUnitId','pluginName','_anchor','unitID','pipe','fillRule','SNAPSHOT_INVALID_SNAPSHOT','substring','_selfUnitIDs','evenodd','_roomMembers$','_initStatusComponent','_refreshCollabCursors','univer-mr-2\x20univer-flex\x20univer-text-xl','m2Prime','setUndoRedoMutationParamsCache','triggerDblclick','CONFLICT','executeCommand','SNAPSHOT_HAS_BEEN_REMOVED','add','_updateCollabCursors','next','purple.300','then','_logService','row','_themeService','PENDING','undoState','_configService','OFFLINE','18381870Gzhwlk','_shapes','OTHER_CLIENT_EDITING','clipPath','code','_initResize','EMAIL_VERIFY_CODE_MISMATCH','whenReady','unload','newValue','on-line-icon_clip0_910_349','AWAITING_WITH_PENDING','executionId','Warning','_handleHeartbeatEvent','exhaustSavingTask','LICENSE_MAX_UNITS_EXCEEDED','getStateCache','_commandService','all','YUUMI_RATE_OVER_LIMIT','_updateLocalCursor','YUUMI_URL_COL_OUT_OF_RANGE','UNIVER_SHEET','_createSocketURL','DeleteRangeMoveLeftCommandId','defs','transformRemoteChangeset','params','_getScale','push','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','attrs','INVALID_ARGUMENT','_status$','string','AWAITING','_config','_uiPartsService','data','collabCursorState$','_renderManagerService','_docClipboardService','transformByState','TEXT','ACTIVE_UNIT_EVENT_CHANNEL','onPointerEnter$','show','getConfig','_handleLeaveEvent','labelPosition','currentColor','_online','OTHER_CLIENTS_EDITING','sessionStatus$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_initStatusListener','_refRangeService','disposeUnit','APPLY_DUPLICATED','VIEW_MAIN','saveImage','init','red.300','off-line-icon_clip0_910_343','_toggleOffline','0\x200\x2016\x2016','save','disableLocalCache','path','getUniverSheetInstance','currentSkeleton$','onMouseMove','black','arc','svg','result','Unknown\x20user','getUndoRedoMutationParamsCache','saveOfflineData','set','LOGIN_FAILED','addHandlerCallback','YUUMI_ALL_TABLES_IS_INVALID','type','getOffsetConfig','children','wsSessionTicketUrl','transformIMECache','search','flatMap','currentTheme$','delete','_notificationService','_docSkeletonManagerService','_drawRectRange','off-line-icon','_getMergeRange','_saveCache','_init','_send','drawWith','none','isEditing','INTERNAL_ERROR','_name','_collabSessionService','_color','_updateSubUnitFromURLParams','text','hasOwnProperty','color','extend','docStateChange$','setParam','_docTransformSelectionsService','location','bottom','_entities','uni.network.url-service','_localeService','_registerDependencies','findNodePositionByCharIndex','INVITE_CODE_ALREADY_BOUND','_messageService','clearTimeout','session.connection-failed','subunit','_localStorageService','_onCursorDelete','M0\x200H16V16H0z','error','isArray','_getSessionTicket','history','_docSkeleton','_initCommandExecutedListener','colorChannel1','0\x200\x2017\x2016','current','loadUnit','ranges','_transformPreviousActiveRange','pushState','SOCKET_FAILED_RETRY','transform','defineProperty','_session','backgroundColor','_sheetSkeletonManagerService','prototype','startRow','_scheduleClearOtherTimer','collaboration.single-unit.warning','_backgroundColor','YUUMI_ASYNCIO_CANCELLED','_initEntityListener','5517050weujmf','_cursorInfo$','_onRefRangeChange','COMPLETION_FINISHED','displayName','_removeClearOtherTimer','registerRefRange','onLocalMutation','PY_RUNTIME_SCRIPT_ERROR','lineTo','fill','getOwnPropertyDescriptor','mutations','1em','171488nkDzoq','restore','YUUMI_CONNECTOR_URL_NOT_FOUND','_transformUndoRedoStack','from','CONNECTOR_DATA_TOO_LARGE','syncEditingCollabCursor','FromArray','on-line-icon','_range','LICENSE_DISTRO_REJECTED','isActive','_instanceService','4DmByDd','_lastPointer','getItem','_labelPosition','_handleEvent','searchParams','split','startColumn','cursorInfo','_unitOnClients','sessionTicket','trim','_univerInstanceService','values','getRangePointData','getCurrent','setActiveRange','selection','collabStatus.offline','roomMembers','random','getTypeOfUnitDisposed$','getRelativeToViewportCoord','onRendered','entries','div','_assignedColors','editingUnit','_localCacheService','addEventListener','_docTransformIMECacheService','toRgbString','transformStateCache','_transformService','assign','imageSourceType','_anchorDot','addObject','m1Prime','TOO_MANY_REQUESTS','contains','Failed','_setupSubUnitSync','_saveTaskMap','univer-flex\x20univer-items-center','_docStateChangeManagerService','subscribeEvent','redoState','storage','MoveRangeCommandId','Error','_hover','_collaborationController','removeParam','green.600','getOwnPropertySymbols','setShapeProps','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','2912472MoadJc','href','UNRECOGNIZED','onCommandExecuted','getUnitStatus$','UNAUTHENTICATED','#FFF','collabStatus.notCollab','unit','_cursor','loadOfflineData','jiqing.500','InsertColCommandId','getDocRanges','/run/','dispose','cursorInfo$','_render','replaceState','defIds','disposeWithMe','collaboration-client-ui.config','ENSURE_SNAPSHOT_EXECUTION','...','getViewport','icon','NO_OTHER_CLIENTS_EDITING','_injector','_scene','4VbivhN','_startSheetCollabCursor','_urlService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','fillText','xlink:href','setItem','setConfig','_collaborationUIEventService','APPLY_PERMISSION_DENIED','replaceDocRanges','urlChange$','_removeCollabCursors','onTransformChange$','endColumn','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','width','_clearOtherTimers','onStarting','getCurrentUnitForType','session.collaboration-timeout','application/json','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','INVITE_CODE_HAS_BEEN_UES','getRenderById','with','_revisionService','_collabCursorController','hide','ONLINE','_handleHover','_doCreateSocket','eventID','length','InsertRangeMoveDownCommandId','YUUMI_AI_RUN_FAILED','toString','round','source','INVALID_INVITE_CODE','_syncEditingCollabCursorService','_hideTimer','7498491ZfVkgd','_imageIoService','_getAnchorBounding','YUUMI_UNABLE_LOAD_URL','getSheetId','replace','activeSheet$','_cursorShapes','_hovered','collab-client.tooltip.reconnect','_docTransformStateCacheService','includes','RECT','max','UNIVER_DOC','InsertRowCommandId','yellow.400','_ensureSubject','textRanges','body','debug','registerComponent','_context','UNDEFINED','hovered','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','OffLineIcon','reconnect','_initDependencies','PERMISSION_DENIED','addClipboardHook','name','getMember','saveTaskMap','_entityInit$','getCellPositionByOffset','http://www.w3.org/2000/svg','status$','_getSaveTimeout','setAlpha','YUUMI_SUBSCRIPTION_NOT_FOUND','USERS_LEAVE','actions','APPLY_NON_SEQUENTIAL_REVISION','entityInit$','_setupBeforeClosingHandler','transformSelections','createInstance','roomMembers$','_id','_drawAnchor','subscribe','FETCH_MISS','doc.mutation.rich-text-editing','_unitStatus','url(#on-line-icon_clip0_910_349)','_colorIndex','concat','beginPath','height','CHANGESET_REVISION_CONFILICT','complete','_heartbeatTimer','dispose$','SYNCED','stringify','_httpService','541237GUMOPK','_disabled','_registerRenderDependencies','blue.400','enableLocalCache','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docSyncEditingCollabCursorService','className','_eventUnsubscribe','getMemberID','SUBMIT_CHANGESET_TIMEOUT','LICENSE_EXPORT_SIZE_EXCEEDED','_scheduleSaving','unshift','_collabCursorState$','setTimeout','collab-text-range-','unitId','_cursors','getSheetBySheetId','forEach','YUUMI_NO_CUBOID_FOR_QUESTION','APPLY_REJECT','clearInterval'];_0x2c8e=function(){return _0x4359e8;};return _0x2c8e();}function _0x1f2d(_0x52ea28,_0x169522){const _0x2c8efb=_0x2c8e();return _0x1f2d=function(_0x1f2df8,_0x34131a){_0x1f2df8=_0x1f2df8-0x11c;let _0x5844cb=_0x2c8efb[_0x1f2df8];return _0x5844cb;},_0x1f2d(_0x52ea28,_0x169522);}function Rt(_0x95843e,_0x26b9a1,_0x220cd2,_0x261856,_0x1b8bf7){const _0x2cff4f=_0x1de525;return _0x2e37da(_0x95843e[_0x2cff4f(0x1e9)],v(v({'key':_0x26b9a1},li(_0x95843e,_0x220cd2,_0x1b8bf7)),_0x261856),(_i(_0x95843e,_0x220cd2)[_0x2cff4f(0x299)]||[])['map'](function(_0x1787a6,_0x3f6aed){const _0x5d1905=_0x2cff4f;return Rt(_0x1787a6,''[_0x5d1905(0x1b0)](_0x26b9a1,'-')[_0x5d1905(0x1b0)](_0x95843e[_0x5d1905(0x1e9)],'-')[_0x5d1905(0x1b0)](_0x3f6aed),_0x220cd2,void 0x0,_0x1b8bf7);}));}function li(_0x30d497,_0x29fdfd,_0x386541){const _0x3443ce=_0x1de525;var _0xed47fe=v({},_0x30d497[_0x3443ce(0x263)]);_0x386541!=null&&_0x386541[_0x3443ce(0x2cc)]&&_0xed47fe['fill']===_0x3443ce(0x2cc)&&(_0xed47fe['fill']=_0x386541[_0x3443ce(0x2cc)]),_0x30d497['tag']==='mask'&&_0xed47fe['id']&&(_0xed47fe['id']=_0xed47fe['id']+_0x29fdfd[_0x3443ce(0x1f8)]),Object['entries'](_0xed47fe)[_0x3443ce(0x1ce)](function(_0x466571){const _0x144bc2=_0x3443ce;var _0x5c8866=_0x466571[0x0],_0x2f1652=_0x466571[0x1];_0x5c8866==='mask'&&typeof _0x2f1652==_0x144bc2(0x266)&&(_0xed47fe[_0x5c8866]=_0x2f1652[_0x144bc2(0x17c)](/url\(#(.*)\)/,'url(#$1'[_0x144bc2(0x1b0)](_0x29fdfd['idSuffix'],')')));});var _0x31fcd0=_0x29fdfd['defIds'];return!_0x31fcd0||_0x31fcd0[_0x3443ce(0x16e)]===0x0||(_0x30d497[_0x3443ce(0x1e9)]==='use'&&_0xed47fe['xlink:href']&&(_0xed47fe['xlink:href']=_0xed47fe[_0x3443ce(0x152)]+_0x29fdfd[_0x3443ce(0x1f8)]),Object[_0x3443ce(0x313)](_0xed47fe)['forEach'](function(_0x3da545){const _0xa8044a=_0x3443ce;var _0x16ec9b=_0x3da545[0x0],_0x163e16=_0x3da545[0x1];typeof _0x163e16=='string'&&(_0xed47fe[_0x16ec9b]=_0x163e16['replace'](/url\(#(.*)\)/,'url(#$1'[_0xa8044a(0x1b0)](_0x29fdfd[_0xa8044a(0x1f8)],')')));})),_0xed47fe;}function _i(_0x108719,_0x2f0ab1){const _0x37aa35=_0x1de525;var _0xc2dd05,_0x4710dd=_0x2f0ab1[_0x37aa35(0x143)];return!_0x4710dd||_0x4710dd[_0x37aa35(0x16e)]===0x0?_0x108719:_0x108719[_0x37aa35(0x1e9)]===_0x37aa35(0x25d)&&(!((_0xc2dd05=_0x108719[_0x37aa35(0x299)])===null||_0xc2dd05===void 0x0)&&_0xc2dd05[_0x37aa35(0x16e)])?v(v({},_0x108719),{'children':_0x108719[_0x37aa35(0x299)][_0x37aa35(0x1f4)](function(_0x31c611){const _0x408f1d=_0x37aa35;return typeof _0x31c611[_0x408f1d(0x263)]['id']==_0x408f1d(0x266)&&_0x4710dd&&_0x4710dd[_0x408f1d(0x182)](_0x31c611['attrs']['id'])?v(v({},_0x31c611),{'attrs':v(v({},_0x31c611[_0x408f1d(0x263)]),{'id':_0x31c611[_0x408f1d(0x263)]['id']+_0x2f0ab1[_0x408f1d(0x1f8)]})}):_0x31c611;})}):_0x108719;}function hi(){const _0x558fed=_0x1de525;return Math[_0x558fed(0x30f)]()['toString'](0x24)[_0x558fed(0x22a)](0x2,0x8);}ke['displayName']='UniverIcon';var ui={'tag':_0x1de525(0x28e),'attrs':{'xmlns':_0x1de525(0x19b),'fill':'none','viewBox':_0x1de525(0x285),'width':_0x1de525(0x2ed),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x1de525(0x288),'attrs':{'stroke':_0x1de525(0x276),'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':_0x1de525(0x172),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1de525(0x25d),'attrs':{},'children':[{'tag':_0x1de525(0x246),'attrs':{'id':_0x1de525(0x283)},'children':[{'tag':_0x1de525(0x288),'attrs':{'fill':'white','d':_0x1de525(0x2c5)}}]}]}],'defIds':[_0x1de525(0x283)]},Dt=_0x3728aa(function(_0x240e28,_0x1285d3){const _0x2c82ae=_0x1de525;return _0x2e37da(ke,Object[_0x2c82ae(0x31d)]({},_0x240e28,{'id':_0x2c82ae(0x2a3),'ref':_0x1285d3,'icon':ui}));});Dt[_0x1de525(0x2e4)]=_0x1de525(0x191);var di={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1de525(0x2a9),'viewBox':_0x1de525(0x2cd),'width':'1em','height':_0x1de525(0x2ed)},'children':[{'tag':'g','attrs':{'clipPath':_0x1de525(0x1ae)},'children':[{'tag':_0x1de525(0x288),'attrs':{'stroke':'currentColor','d':_0x1de525(0x12f),'strokeLinecap':'round','strokeLinejoin':_0x1de525(0x172),'strokeWidth':1.2}}]},{'tag':_0x1de525(0x25d),'attrs':{},'children':[{'tag':_0x1de525(0x246),'attrs':{'id':_0x1de525(0x24d)},'children':[{'tag':_0x1de525(0x288),'attrs':{'fill':_0x1de525(0x1ee),'d':'M0\x200H16V16H0z','transform':_0x1de525(0x216)}}]}]}],'defIds':[_0x1de525(0x24d)]},Nt=_0x3728aa(function(_0xbbdd3b,_0x5726af){const _0x3d25fc=_0x1de525;return _0x2e37da(ke,Object[_0x3d25fc(0x31d)]({},_0xbbdd3b,{'id':_0x3d25fc(0x2f6),'ref':_0x5726af,'icon':di}));});Nt['displayName']=_0x1de525(0x1f9);function fi(_0x725626){const _0x16af41=_0x1de525;switch(_0x725626){case _0x44d661[_0x16af41(0x242)]:return _0x16af41(0x30d);case _0x44d661[_0x16af41(0x234)]:return'collabStatus.conflict';case _0x44d661[_0x16af41(0x1ab)]:return'collabStatus.fetchMiss';case _0x44d661[_0x16af41(0x1f5)]:return _0x16af41(0x137);case _0x44d661[_0x16af41(0x267)]:case _0x44d661[_0x16af41(0x24e)]:return'collabStatus.syncing';case _0x44d661[_0x16af41(0x1b7)]:case _0x44d661[_0x16af41(0x23f)]:return'collabStatus.synced';}}function Si(_0x4b8472){const _0x2ba787=_0x1de525,{status$:_0x56e907}=_0x4b8472,_0xe74d36=_0x16372b(_0x56e907,_0x44d661[_0x2ba787(0x1f5)]),_0x3b02f0=_0xb19721(_0x1ad900),_0x2b2a28=_0xb19721(_0x31b372),_0x1b0925=_0xe74d36!==_0x44d661[_0x2ba787(0x242)],_0x3edc38=_0x3b02f0['t'](fi(_0xe74d36)),_0x39cc44=_0x1b0925?_0x22a986(Nt,{}):_0x22a986(Dt,{}),_0xb36271=_0x1bbcf2(()=>{const _0x17557c=_0x2ba787;_0x1b0925||_0x2b2a28[_0x17557c(0x192)]();},[_0x1b0925,_0x2b2a28]);function _0x17f0d4(){const _0x1baa3b=_0x2ba787;return _0x930f14(_0x1baa3b(0x314),{'className':_0x1baa3b(0x122),'onClick':_0xb36271,'children':[_0x22a986(_0x1baa3b(0x314),{'className':_0x1621da(_0x1baa3b(0x230),{'univer-text-green-500':_0x1b0925,'univer-text-red-500':!_0x1b0925}),'children':_0x39cc44}),_0x22a986(_0x1baa3b(0x314),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3edc38})]});}return _0x1b0925?_0x17f0d4():_0x22a986(_0x153909,{'title':_0x3b02f0['t'](_0x2ba787(0x180)),'children':_0x17f0d4()});}var mi=Object[_0x1de525(0x2eb)],Ii=(_0x1f78f3,_0x3b5988,_0x5a36af,_0x58d40a)=>{const _0x571ab5=_0x1de525;for(var _0x16dc88=_0x58d40a>0x1?void 0x0:_0x58d40a?mi(_0x3b5988,_0x5a36af):_0x3b5988,_0x1fd8e7=_0x1f78f3[_0x571ab5(0x16e)]-0x1,_0x763a4b;_0x1fd8e7>=0x0;_0x1fd8e7--)(_0x763a4b=_0x1f78f3[_0x1fd8e7])&&(_0x16dc88=_0x763a4b(_0x16dc88)||_0x16dc88);return _0x16dc88;},q=(_0x374eb0,_0x2ce58f)=>(_0x2df7cd,_0x1949c5)=>_0x2ce58f(_0x2df7cd,_0x1949c5,_0x374eb0);let se=class extends _0x27b35c{constructor(_0x5ceabc,_0x19ee3d,_0x57f746,_0x47f947){const _0x1cf690=_0x1de525;super(),_(this,'_status$',new _0x1c5c36(_0x44d661[_0x1cf690(0x1f5)])),(this[_0x1cf690(0x307)]=_0x5ceabc,this[_0x1cf690(0x14b)]=_0x19ee3d,this[_0x1cf690(0x12a)]=_0x57f746,this[_0x1cf690(0x269)]=_0x47f947,this[_0x1cf690(0x22e)](),this['_initStatusListener']());}[_0x1de525(0x27b)](){const _0x31d38a=_0x1de525;this[_0x31d38a(0x144)](this[_0x31d38a(0x307)]['focused$'][_0x31d38a(0x227)](_0x85c43a(()=>{const _0x1c9c0b=_0x31d38a,_0x213335=this[_0x1c9c0b(0x307)][_0x1c9c0b(0x210)]();return _0x213335?this[_0x1c9c0b(0x12a)][_0x1c9c0b(0x21b)](_0x213335[_0x1c9c0b(0x223)]()):_0x46fe23(null);}),_0x85c43a(_0x1f98d1=>_0x1f98d1?_0x1f98d1[_0x31d38a(0x19c)]:_0x46fe23(_0x44d661['NOT_COLLAB'])))[_0x31d38a(0x1aa)](_0x41b0fd=>{const _0x117974=_0x31d38a;this[_0x117974(0x265)]['next'](_0x41b0fd);}));}['_initStatusComponent'](){const _0x4760ea=_0x1de525;this[_0x4760ea(0x144)](this['_uiPartsService'][_0x4760ea(0x18c)](_0x4eaa43[_0x4760ea(0x20b)],()=>_0x2e9287(vi({'status$':this['_status$'][_0x4760ea(0x208)]()}),this[_0x4760ea(0x14b)])));}};se=Ii([q(0x0,_0x38aa79),q(0x1,_0x5c6996(_0x25bcbf)),q(0x2,_0x5c6996(_0x16a7df)),q(0x3,_0x46dcc7)],se);function vi(_0x2d2247){const {status$:_0x8b8476}=_0x2d2247;return function(){return _0x22a986(Si,{'status$':_0x8b8476});};}const Ut=_0x4dce94(_0x1de525(0x2ba));var gi=Object[_0x1de525(0x2eb)],pi=(_0x4668d4,_0x382bb0,_0x1a3989,_0x3b0b2c)=>{const _0xc3b9c5=_0x1de525;for(var _0x3851bc=_0x3b0b2c>0x1?void 0x0:_0x3b0b2c?gi(_0x382bb0,_0x1a3989):_0x382bb0,_0x516163=_0x4668d4[_0xc3b9c5(0x16e)]-0x1,_0x45a70a;_0x516163>=0x0;_0x516163--)(_0x45a70a=_0x4668d4[_0x516163])&&(_0x3851bc=_0x45a70a(_0x3851bc)||_0x3851bc);return _0x3851bc;},G=(_0x5bb01e,_0x4ae3c8)=>(_0x4b3283,_0x23c59f)=>_0x4ae3c8(_0x4b3283,_0x23c59f,_0x5bb01e);let ie=class extends _0x5d5e25{constructor(_0x19f45f,_0x3aff72,_0xa02aff,_0x10e2f8,_0x566c81){const _0x344396=_0x1de525;super(),this[_0x344396(0x14f)]=_0x19f45f,this[_0x344396(0x23c)]=_0x3aff72,this['_commandService']=_0xa02aff,this['_dataLoaderService']=_0x10e2f8,_0x566c81?_0x566c81==null||_0x566c81[_0x344396(0x24a)]()[_0x344396(0x23b)](()=>this[_0x344396(0x2a6)]()):(this[_0x344396(0x23c)][_0x344396(0x18b)]('[CollaborationDataLoaderController]',_0x344396(0x262)),this[_0x344396(0x2a6)]());}async[_0x1de525(0x2a6)](){const _0x486593=_0x1de525,_0x3a9137=this[_0x486593(0x14f)]['getParam'](_0x486593(0x138)),_0x546f1c=this[_0x486593(0x14f)]['getParam'](_0x486593(0x297)),_0x4f555d=this[_0x486593(0x14f)][_0x486593(0x222)](_0x486593(0x2c2));if(!_0x3a9137||!_0x546f1c){this[_0x486593(0x23c)]['debug']('[CollaborationDataLoaderController]',_0x486593(0x1bf));return;}const _0x542ad6=await this[_0x486593(0x220)][_0x486593(0x2cf)](_0x3a9137,Number(_0x546f1c),_0x4f555d);_0x542ad6&&_0x542ad6 instanceof _0x28849d&&this[_0x486593(0x120)](_0x542ad6);}async[_0x1de525(0x120)](_0x4cd768){const _0x1256b4=_0x1de525;await this['_updateSubUnitFromURLParams'](_0x4cd768),_0x4cd768[_0x1256b4(0x17d)][_0x1256b4(0x227)](_0x552e0d(this['dispose$']))[_0x1256b4(0x1aa)](_0x3992f6=>{const _0x28cadc=_0x1256b4;_0x3992f6&&this[_0x28cadc(0x1dc)](_0x3992f6);}),this[_0x1256b4(0x14f)][_0x1256b4(0x158)][_0x1256b4(0x227)](_0x552e0d(this[_0x1256b4(0x1b6)]))[_0x1256b4(0x1aa)](()=>this[_0x1256b4(0x2af)](_0x4cd768));}[_0x1de525(0x1dc)](_0x45908f,_0x586b32=!0x1){const _0x56efe0=_0x1de525,_0x5defe3=this[_0x56efe0(0x14f)][_0x56efe0(0x222)](_0x56efe0(0x2c2));_0x45908f['getSheetId']()!==_0x5defe3&&this[_0x56efe0(0x14f)][_0x56efe0(0x2b5)](_0x56efe0(0x2c2),_0x45908f[_0x56efe0(0x17b)](),_0x586b32);}async['_updateSubUnitFromURLParams'](_0x172c6e){const _0x1466cf=_0x1de525;var _0x5176ac;const _0x59250c=this[_0x1466cf(0x14f)]['getParam'](_0x1466cf(0x2c2));if(!_0x59250c||!_0x172c6e[_0x1466cf(0x1cd)](_0x59250c)){const _0x29dac9=_0x172c6e['getUnhiddenWorksheets']()[0x0],_0x570229=_0x172c6e[_0x1466cf(0x1cd)](_0x29dac9);if(!_0x570229)return;this['_updateURLWithCurrentState'](_0x570229,!0x0),await this[_0x1466cf(0x255)][_0x1466cf(0x235)](_0x6f9153['id'],{'unitId':_0x172c6e[_0x1466cf(0x223)](),'subUnitId':_0x29dac9});return;}((_0x5176ac=_0x172c6e[_0x1466cf(0x20f)]())==null?void 0x0:_0x5176ac[_0x1466cf(0x17b)]())!==_0x59250c&&await this[_0x1466cf(0x255)][_0x1466cf(0x235)](_0x6f9153['id'],{'unitId':_0x172c6e['getUnitId'](),'subUnitId':_0x59250c});}};ie=pi([G(0x0,Ut),G(0x1,_0x3d5d66),G(0x2,_0x3d6ba5),G(0x3,_0x5c6996(_0x3d8bd6)),G(0x4,_0xadcd71(_0x2fd947))],ie);var Ci=Object[_0x1de525(0x2eb)],Ei=(_0x59f2c5,_0x408aee,_0x2eec2e,_0x342b99)=>{const _0x2fede0=_0x1de525;for(var _0x367e02=_0x342b99>0x1?void 0x0:_0x342b99?Ci(_0x408aee,_0x2eec2e):_0x408aee,_0x448f28=_0x59f2c5[_0x2fede0(0x16e)]-0x1,_0x1d527c;_0x448f28>=0x0;_0x448f28--)(_0x1d527c=_0x59f2c5[_0x448f28])&&(_0x367e02=_0x1d527c(_0x367e02)||_0x367e02);return _0x367e02;},Je=(_0x453d1e,_0x3022b0)=>(_0x435bcb,_0x10d2c7)=>_0x3022b0(_0x435bcb,_0x10d2c7,_0x453d1e);let Ne=class extends _0x5d5e25{constructor(_0x143287,_0x11867e){const _0x298536=_0x1de525;super(),this[_0x298536(0x26d)]=_0x143287,this[_0x298536(0x178)]=_0x11867e,this[_0x298536(0x2a6)]();}[_0x1de525(0x2a6)](){const _0x3279d1=_0x1de525,_0x19c930=this;this[_0x3279d1(0x144)](this[_0x3279d1(0x26d)][_0x3279d1(0x195)]({'onBeforePasteImage':async _0x2cf05c=>{const _0x46c9da=_0x3279d1,_0x4a6140=await _0x19c930[_0x46c9da(0x178)][_0x46c9da(0x280)](_0x2cf05c);return _0x4a6140?{'source':_0x4a6140[_0x46c9da(0x173)],'imageSourceType':_0x4a6140[_0x46c9da(0x31e)]}:null;}}));}};Ne=Ei([Je(0x0,_0x1f6e08),Je(0x1,_0x43c74a)],Ne);const Ze=[_0x1de525(0x23a),_0x1de525(0x13b),_0x1de525(0x12c),_0x1de525(0x282),_0x1de525(0x1bd),_0x1de525(0x187)];class He extends _0x27b35c{constructor(){const _0x2fee95=_0x1de525;super(...arguments),_(this,_0x2fee95(0x315),new Map()),_(this,_0x2fee95(0x1af),0x0);}[_0x1de525(0x1fd)](_0x501fa8){const _0xe40a6d=_0x1de525;if(this[_0xe40a6d(0x315)][_0xe40a6d(0x20c)](_0x501fa8))return this[_0xe40a6d(0x315)]['get'](_0x501fa8);const _0x33f815=Ze[this[_0xe40a6d(0x1af)]];return this[_0xe40a6d(0x1af)]=(this[_0xe40a6d(0x1af)]+0x1)%Ze[_0xe40a6d(0x16e)],this[_0xe40a6d(0x315)][_0xe40a6d(0x293)](_0x501fa8,_0x33f815),_0x33f815;}}function Mt(_0x3b52e3){const _0xb99c5c=_0x1de525;let _0x867381='';for(const _0x31fb15 of _0x3b52e3){const {startOffset:_0x210c5a,endOffset:_0x385c6a,isActive:_0x50b9f4,rangeType:_0x28fbd9,segmentId:_0xcdbc3c,segmentPage:_0x290cd3}=_0x31fb15;_0x867381[_0xb99c5c(0x16e)]&&(_0x867381+=','),_0x867381+=_0x210c5a+':'+_0x385c6a+':'+(_0x50b9f4?'1':'0')+':'+_0x28fbd9+':'+_0xcdbc3c+':'+_0x290cd3;}return _0x867381;}function Oi(_0x35a719){const _0x3567fb=_0x1de525,_0x3f437c=_0x35a719['split'](','),_0x2d95ab=[];for(const _0x4948af of _0x3f437c){const [_0x4d174d,_0x4c6c7c,_0x398d35,_0x3ea1b1,_0x430bff,_0x5365ba]=_0x4948af[_0x3567fb(0x301)](':');_0x2d95ab[_0x3567fb(0x261)]({'startOffset':Number(_0x4d174d),'endOffset':Number(_0x4c6c7c),'collapsed':_0x4d174d===_0x4c6c7c,'isActive':_0x398d35==='1','rangeType':_0x3ea1b1===_0x12430b[_0x3567fb(0x26f)]?_0x12430b[_0x3567fb(0x26f)]:_0x12430b[_0x3567fb(0x183)],'segmentId':typeof _0x430bff=='string'?String(_0x430bff):'','segmentPage':Number(_0x5365ba!=null?_0x5365ba:-0x1)});}return _0x2d95ab['some'](_0xd699dd=>_0xd699dd[_0x3567fb(0x2f9)])||(_0x2d95ab[0x0][_0x3567fb(0x2f9)]=!0x0),_0x2d95ab;}class Fe extends _0x5d5e25{constructor(){const _0xa4663e=_0x1de525;super(...arguments),_(this,_0xa4663e(0x1c8),new _0x1c5c36(null)),_(this,_0xa4663e(0x26b),this['_collabCursorState$'][_0xa4663e(0x208)]());}[_0x1de525(0x2f4)](_0x58f257){const _0x31e714=_0x1de525,{unitID:_0x2b5ae1,memberID:_0x287f70,textRanges:_0xd886be}=_0x58f257,_0x596a08=Mt(_0xd886be);if(_0x596a08==='')return;const _0x9c6054={'unitID':_0x2b5ae1,'memberID':_0x287f70,'selection':_0x596a08};this[_0x31e714(0x1c8)]['next'](_0x9c6054);}}var bi=Object['getOwnPropertyDescriptor'],Ti=(_0x8ab654,_0x7faad5,_0x1bcc77,_0x43d5d2)=>{const _0x4e0ad2=_0x1de525;for(var _0x228f53=_0x43d5d2>0x1?void 0x0:_0x43d5d2?bi(_0x7faad5,_0x1bcc77):_0x7faad5,_0x2ea226=_0x8ab654[_0x4e0ad2(0x16e)]-0x1,_0x196c28;_0x2ea226>=0x0;_0x2ea226--)(_0x196c28=_0x8ab654[_0x2ea226])&&(_0x228f53=_0x196c28(_0x228f53)||_0x228f53);return _0x228f53;},P=(_0x39114b,_0x5ddea1)=>(_0xfbc5ae,_0x50b10b)=>_0x5ddea1(_0xfbc5ae,_0x50b10b,_0x39114b);const Ri=0x12c,Di=0x64;let Ue=class extends _0x5d5e25{constructor(_0x3b7ce8,_0x297bc7,_0x3cc7c4,_0x264805,_0x3ef9f7,_0x3f1ca7,_0xef0478,_0x2b41ab,_0x5697ca){const _0xefc1fd=_0x1de525;super(),_(this,_0xefc1fd(0x277),!0x1),_(this,_0xefc1fd(0x2a6),!0x1),_(this,'_cursorInfo$',new _0x1c5c36(new Map())),_(this,_0xefc1fd(0x140),this[_0xefc1fd(0x2e1)][_0xefc1fd(0x208)]()),_(this,_0xefc1fd(0x22d),new _0x1c5c36([])),_(this,_0xefc1fd(0x1a7),this[_0xefc1fd(0x22d)][_0xefc1fd(0x227)](_0x503527(Ri))),_(this,_0xefc1fd(0x258),_0x2398b9(_0xdb1ce3=>{const _0x584c7d=_0xefc1fd,_0x24d62a={'eventID':_0x3e51f4['UPDATE_CURSOR'],'data':{'unitID':this[_0x584c7d(0x226)],'memberID':this['_session'][_0x584c7d(0x1c3)](),'selection':Mt(_0xdb1ce3)}};this[_0x584c7d(0x2d6)][_0x584c7d(0x214)](_0x24d62a,this['unitID']);},Di)),(this[_0xefc1fd(0x226)]=_0x3b7ce8,this[_0xefc1fd(0x2d6)]=_0x297bc7,this[_0xefc1fd(0x14b)]=_0x3cc7c4,this[_0xefc1fd(0x1f3)]=_0x264805,this['_memberService']=_0x3ef9f7,this['_syncEditingCollabCursorService']=_0x3f1ca7,this[_0xefc1fd(0x31c)]=_0xef0478,this[_0xefc1fd(0x307)]=_0x2b41ab,this[_0xefc1fd(0x255)]=_0x5697ca);}get[_0x1de525(0x303)](){const _0x44c908=_0x1de525;return this[_0x44c908(0x2e1)][_0x44c908(0x1df)]();}get[_0x1de525(0x30e)](){const _0x3aa0da=_0x1de525;return this['_roomMembers$'][_0x3aa0da(0x1df)]();}['dispose'](){const _0x305885=_0x1de525;super[_0x305885(0x13f)](),this[_0x305885(0x2e1)][_0x305885(0x239)](new Map()),this[_0x305885(0x2e1)]['complete'](),this[_0x305885(0x22d)]['next']([]),this[_0x305885(0x22d)][_0x305885(0x1b4)]();}['init'](){const _0x123595=_0x1de525;this[_0x123595(0x2a6)]||(this[_0x123595(0x2a6)]=!0x0,this['_session'][_0x123595(0x279)]['pipe'](_0x552e0d(this[_0x123595(0x1b6)]))['subscribe'](_0x2a7cd8=>{const _0x5213d8=_0x123595;_0x2a7cd8===_0xbb7629[_0x5213d8(0x16a)]?this[_0x5213d8(0x1eb)]():this['_toggleOffline']();}),this[_0x123595(0x2d6)][_0x123595(0x206)][_0x123595(0x227)](_0x552e0d(this[_0x123595(0x1b6)]))[_0x123595(0x1aa)](_0x775d51=>{const _0x5d6c64=_0x123595,_0x5e7a86=_0x775d51[_0x5d6c64(0x16d)];_0x5e7a86===_0x3e51f4[_0x5d6c64(0x1f6)]&&this[_0x5d6c64(0x1d9)](_0x775d51),_0x5e7a86===_0x3e51f4[_0x5d6c64(0x1a0)]&&this[_0x5d6c64(0x2c4)](_0x775d51);}),this[_0x123595(0x144)](this[_0x123595(0x255)][_0x123595(0x133)](_0x241ca3=>{const _0x309dd1=_0x123595,_0x1807b1=_0x241ca3[_0x309dd1(0x25f)];_0x1807b1!=null&&this['_online']&&_0x241ca3['id']===_0x4f359e['id']&&_0x1807b1[_0x309dd1(0x1cb)]===this[_0x309dd1(0x226)]&&_0x1807b1[_0x309dd1(0x2aa)]===!0x1&&_0x1807b1[_0x309dd1(0x2d0)][_0x309dd1(0x16e)]>0x0&&this[_0x309dd1(0x258)](_0x1807b1['ranges']);})),this[_0x123595(0x175)][_0x123595(0x26b)][_0x123595(0x227)](_0x552e0d(this[_0x123595(0x1b6)]))[_0x123595(0x1aa)](_0x5851bb=>{const _0x1efecb=_0x123595;if((_0x5851bb==null?void 0x0:_0x5851bb[_0x1efecb(0x226)])!==this[_0x1efecb(0x226)])return;const _0x5ce3f5={'eventID':_0x3e51f4[_0x1efecb(0x1f6)],'data':_0x5851bb};this['_onCursorUpdate'](_0x5ce3f5);}),this[_0x123595(0x144)](this[_0x123595(0x255)][_0x123595(0x133)](_0x12399a=>{const _0x5c7fb8=_0x123595;if(_0x12399a[_0x5c7fb8(0x25f)]==null)return;const _0x36e3a8=_0x12399a[_0x5c7fb8(0x25f)];if(_0x12399a['id']!==_0x16fcc7['id']||_0x36e3a8[_0x5c7fb8(0x1cb)]!==this[_0x5c7fb8(0x226)])return;const _0x247434={'id':_0x5c7fb8(0x1ac),'params':_0x36e3a8},_0x1daf97=this['cursorInfo'];for(const [_0x35f8d9,_0x1f92f5]of _0x1daf97){const _0x4458bf={'id':_0x5c7fb8(0x1ac),'params':{'unitId':this[_0x5c7fb8(0x226)],'actions':null,'textRanges':_0x1f92f5[_0x5c7fb8(0x2d0)]}},_0x4b2f6f=this['_transformService'][_0x5c7fb8(0x1e8)](_0x247434,_0x4458bf,!0x1);if(_0x394d8b(_0x4b2f6f))throw _0x4b2f6f[_0x5c7fb8(0x2c6)];_0x1daf97[_0x5c7fb8(0x293)](_0x35f8d9,{..._0x1f92f5,'ranges':_0x4b2f6f['m2Prime']['params'][_0x5c7fb8(0x189)]});}queueMicrotask(()=>{const _0x54b6f6=_0x5c7fb8;this[_0x54b6f6(0x2e1)][_0x54b6f6(0x239)](_0x1daf97);});})));}[_0x1de525(0x1d9)](_0x1cf0c1){const _0x47493b=_0x1de525;var _0x32d913,_0x204df2;const {memberID:_0x12f01d,selection:_0x5dc2e2}=_0x1cf0c1['data'],_0x59ee01=Oi(_0x5dc2e2),_0x160a4f=(_0x204df2=(_0x32d913=this['_memberService']['getMember'](this[_0x47493b(0x226)],_0x12f01d))==null?void 0x0:_0x32d913[_0x47493b(0x196)])!=null?_0x204df2:'Unknown\x20user',_0xc606bf={'color':this[_0x47493b(0x1f3)][_0x47493b(0x1fd)](_0x12f01d),'name':_0x160a4f,'ranges':_0x59ee01},_0x4d838c=this[_0x47493b(0x303)];_0x4d838c['set'](_0x12f01d,_0xc606bf),this[_0x47493b(0x2e1)][_0x47493b(0x239)](_0x4d838c);}[_0x1de525(0x2c4)](_0x2540f6){const _0x3992bd=_0x1de525,{memberID:_0x42083c}=_0x2540f6[_0x3992bd(0x26a)],_0x14e685=this[_0x3992bd(0x303)];_0x14e685[_0x3992bd(0x29f)](_0x42083c),this[_0x3992bd(0x2e1)][_0x3992bd(0x239)](_0x14e685);}[_0x1de525(0x1eb)](){const _0x25fb97=_0x1de525;var _0x217f9e;if(this['_online']=!0x0,((_0x217f9e=this[_0x25fb97(0x307)][_0x25fb97(0x210)]())==null?void 0x0:_0x217f9e[_0x25fb97(0x223)]())!==this[_0x25fb97(0x226)])return;const _0x2ff7d4=this[_0x25fb97(0x14b)][_0x25fb97(0x204)](_0x54ea0b)['getDocRanges']();Array[_0x25fb97(0x2c7)](_0x2ff7d4)&&_0x2ff7d4[_0x25fb97(0x16e)]>0x0&&this[_0x25fb97(0x258)](_0x2ff7d4);}[_0x1de525(0x284)](){this['_online']=!0x1;}};Ue=Ti([P(0x2,_0x5c6996(_0x25bcbf)),P(0x3,_0x5c6996(He)),P(0x4,_0x5c6996(_0x30e787)),P(0x5,_0x5c6996(Fe)),P(0x6,_0x4d45d3),P(0x7,_0x38aa79),P(0x8,_0x3d6ba5)],Ue);var Ni=Object[_0x1de525(0x2eb)],Ui=(_0x478148,_0x273f4b,_0x32ba93,_0x150606)=>{const _0x57a3d7=_0x1de525;for(var _0x631b85=_0x150606>0x1?void 0x0:_0x150606?Ni(_0x273f4b,_0x32ba93):_0x273f4b,_0x21a279=_0x478148[_0x57a3d7(0x16e)]-0x1,_0x2f4423;_0x21a279>=0x0;_0x21a279--)(_0x2f4423=_0x478148[_0x21a279])&&(_0x631b85=_0x2f4423(_0x631b85)||_0x631b85);return _0x631b85;},x=(_0x2e2ab7,_0x4cb007)=>(_0x1b523a,_0x26309d)=>_0x4cb007(_0x1b523a,_0x26309d,_0x2e2ab7);const Mi=0x12c,Li=0x64,Pi=()=>{let _0x1e2032=[],_0x5a18aa=!0x1;return _0x2d890e=>{_0x1e2032['push'](_0x2d890e),_0x5a18aa||(_0x5a18aa=!0x0,setTimeout(()=>{const _0x3d8011=_0x1f2d;_0x1e2032[_0x3d8011(0x1ce)](_0x5783f2=>_0x5783f2()),_0x1e2032=[],_0x5a18aa=!0x1;}));};};let Me=class extends _0x5d5e25{constructor(_0x9f062b,_0x1d6b9e,_0x1d761c,_0x5433c4,_0x41e211,_0x27abaf,_0x1e925f,_0x631e5){const _0x43e21c=_0x1de525;super(),_(this,_0x43e21c(0x277),!0x1),_(this,_0x43e21c(0x2a6),!0x1),_(this,_0x43e21c(0x2e1),new _0x1c5c36(new Map())),_(this,_0x43e21c(0x140),this['_cursorInfo$'][_0x43e21c(0x208)]()),_(this,'_roomMembers$',new _0x1c5c36([])),_(this,_0x43e21c(0x1a7),this['_roomMembers$'][_0x43e21c(0x227)](_0x503527(Mi))),_(this,_0x43e21c(0x258),_0x2398b9((_0x4af6b3,_0x37d202)=>{const _0x41b398=_0x43e21c,_0x34e7d5={'eventID':_0x3e51f4[_0x41b398(0x1f6)],'data':{'unitID':this[_0x41b398(0x226)],'memberID':this[_0x41b398(0x2d6)][_0x41b398(0x1c3)](),'selection':_0x218740(_0x4af6b3,_0x37d202['range'])}};this[_0x41b398(0x2d6)]['send'](_0x34e7d5,this[_0x41b398(0x226)]);},Li)),(this[_0x43e21c(0x226)]=_0x9f062b,this['_session']=_0x1d6b9e,this[_0x43e21c(0x14b)]=_0x1d761c,this[_0x43e21c(0x1f3)]=_0x5433c4,this[_0x43e21c(0x1ff)]=_0x41e211,this[_0x43e21c(0x307)]=_0x27abaf,this[_0x43e21c(0x255)]=_0x1e925f,this[_0x43e21c(0x27c)]=_0x631e5);}get[_0x1de525(0x303)](){const _0x251840=_0x1de525;return this[_0x251840(0x2e1)][_0x251840(0x1df)]();}get[_0x1de525(0x30e)](){const _0xa6995d=_0x1de525;return this[_0xa6995d(0x22d)][_0xa6995d(0x1df)]();}[_0x1de525(0x13f)](){const _0x3e0103=_0x1de525;super[_0x3e0103(0x13f)](),this[_0x3e0103(0x2e1)][_0x3e0103(0x239)](new Map()),this[_0x3e0103(0x2e1)][_0x3e0103(0x1b4)](),this['_roomMembers$'][_0x3e0103(0x239)]([]),this['_roomMembers$']['complete']();}[_0x1de525(0x281)](){const _0x2363ee=_0x1de525;this[_0x2363ee(0x2a6)]||(this['_init']=!0x0,this[_0x2363ee(0x2d6)][_0x2363ee(0x279)][_0x2363ee(0x227)](_0x552e0d(this[_0x2363ee(0x1b6)]))[_0x2363ee(0x1aa)](_0x584bc6=>{const _0x1f9527=_0x2363ee;_0x584bc6===_0xbb7629[_0x1f9527(0x16a)]?this['_toggleOnline']():this[_0x1f9527(0x284)]();}),this['_session'][_0x2363ee(0x206)][_0x2363ee(0x227)](_0x552e0d(this['dispose$']))[_0x2363ee(0x1aa)](_0xd73ace=>{const _0x4f590f=_0x2363ee,_0x33d0ff=_0xd73ace[_0x4f590f(0x16d)];_0x33d0ff===_0x3e51f4[_0x4f590f(0x1f6)]&&this[_0x4f590f(0x1d9)](_0xd73ace),_0x33d0ff===_0x3e51f4['USERS_LEAVE']&&this[_0x4f590f(0x2c4)](_0xd73ace);}),this[_0x2363ee(0x2e2)](),this[_0x2363ee(0x144)](this[_0x2363ee(0x255)][_0x2363ee(0x133)](_0x5089e1=>{const _0x4c4bf9=_0x2363ee;if(this['_online']&&_0x5089e1['id']===_0x4f4d5e['id']&&_0x5089e1[_0x4c4bf9(0x25f)][_0x4c4bf9(0x1cb)]===this['unitID']){const _0x6fe085=_0x5089e1['params'];this[_0x4c4bf9(0x258)](_0x6fe085['subUnitId'],_0x6fe085['selections'][0x0]);}})));}['_onCursorUpdate'](_0x55316c){const _0x4d9368=_0x1de525;var _0x3f1770,_0x276937;const {memberID:_0xa7fd82,selection:_0x3de09a}=_0x55316c[_0x4d9368(0x26a)],{sheetName:_0x1346e6,range:_0x50dd80}=_0x4365d9(_0x3de09a),_0x115f81={'name':(_0x276937=(_0x3f1770=this[_0x4d9368(0x1ff)][_0x4d9368(0x197)](this[_0x4d9368(0x226)],_0xa7fd82))==null?void 0x0:_0x3f1770['name'])!=null?_0x276937:_0x4d9368(0x290),'range':this[_0x4d9368(0x2a4)](_0x1346e6,_0x50dd80),'sheetID':_0x1346e6,'color':this[_0x4d9368(0x1f3)]['assignAColorForMemberID'](_0xa7fd82),'selection':_0x3de09a},_0x2e2727=this[_0x4d9368(0x303)];_0x2e2727[_0x4d9368(0x293)](_0xa7fd82,_0x115f81),this[_0x4d9368(0x2e1)]['next'](_0x2e2727);}[_0x1de525(0x2c4)](_0x4a5533){const _0x4a2e5f=_0x1de525,{memberID:_0x34426d}=_0x4a5533['data'],_0x8510fc=this['cursorInfo'];_0x8510fc[_0x4a2e5f(0x29f)](_0x34426d),this[_0x4a2e5f(0x2e1)][_0x4a2e5f(0x239)](_0x8510fc);}[_0x1de525(0x2a4)](_0x4a02cc,_0x129563){const _0x4b1a81=_0x1de525;var _0x8612ea,_0x3608fe;const _0x1ea7a6=(_0x3608fe=(_0x8612ea=this[_0x4b1a81(0x307)][_0x4b1a81(0x289)](this['unitID']))==null?void 0x0:_0x8612ea[_0x4b1a81(0x1cd)](_0x4a02cc))==null?void 0x0:_0x3608fe['getMergeData']();return(_0x1ea7a6==null?void 0x0:_0x1ea7a6['find'](_0xdfd5e4=>_0x2040a1[_0x4b1a81(0x11e)](_0xdfd5e4,_0x129563)))||_0x129563;}[_0x1de525(0x2e2)](){const _0x3cfca8=_0x1de525,_0x241a59=new _0x57cfe9(),_0x4996d9=Pi(),_0x192d58=()=>{const _0x79970f=_0x1f2d;_0x241a59[_0x79970f(0x13f)]();const _0x4a2798=(_0x299331,_0x3bb84d,_0x1c4ba8,_0xc7a884)=>{const _0x5efa37=_0x79970f;let _0x42f8f8=[];switch(_0x299331['id']){case _0x2669fb[_0x5efa37(0x25c)]:{_0x42f8f8=_0x5c62f0(_0x299331,_0xc7a884);break;}case _0x2669fb['DeleteRangeMoveUpCommandId']:{_0x42f8f8=_0xe6ac9(_0x299331,_0xc7a884);break;}case _0x2669fb[_0x5efa37(0x13c)]:{_0x42f8f8=_0x23b976(_0x299331,_0xc7a884);break;}case _0x2669fb[_0x5efa37(0x16f)]:{_0x42f8f8=_0x51d53a(_0x299331,_0xc7a884);break;}case _0x2669fb['InsertRangeMoveRightCommandId']:{_0x42f8f8=_0x312a7d(_0x299331,_0xc7a884);break;}case _0x2669fb[_0x5efa37(0x186)]:{_0x42f8f8=_0xeb3fa2(_0x299331,_0xc7a884);break;}case _0x2669fb[_0x5efa37(0x127)]:{_0x42f8f8=_0x29bef9(_0x299331,_0xc7a884);break;}case _0x2669fb['RemoveColCommandId']:{_0x42f8f8=_0x2e7d8e(_0x299331,_0xc7a884);break;}case _0x2669fb['RemoveRowCommandId']:{_0x42f8f8=_0x1fd061(_0x299331,_0xc7a884);break;}}const _0x3ef408=_0x32d34f(_0x42f8f8,_0xc7a884),_0x2d6ac0=this[_0x5efa37(0x303)][_0x5efa37(0x204)](_0x3bb84d);if(_0x2d6ac0&&_0x3ef408){const _0x165a83={..._0x2d6ac0,'range':_0x3ef408};this[_0x5efa37(0x303)]['set'](_0x3bb84d,_0x165a83),_0x4996d9(()=>{const _0x33eb77=_0x5efa37,_0x51ca5b=this['_refRangeService'][_0x33eb77(0x2e6)](_0x3ef408,_0x3db8ae=>(_0x51ca5b[_0x33eb77(0x13f)](),_0x4a2798(_0x3db8ae,_0x3bb84d,_0x1c4ba8,_0x3ef408)));_0x241a59['add'](_0x51ca5b);});}return{'redos':[],'undos':[]};};this[_0x79970f(0x303)][_0x79970f(0x1ce)]((_0x4b6c7c,_0xefe958)=>{const _0x14a46d=_0x79970f,{range:_0x47cd3a,sheetID:_0x1ee41d}=_0x4b6c7c,_0x3e212f=this[_0x14a46d(0x27c)][_0x14a46d(0x2e6)](_0x47cd3a,_0x10a617=>(_0x3e212f[_0x14a46d(0x13f)](),_0x4a2798(_0x10a617,_0xefe958,_0x1ee41d,_0x47cd3a)));_0x241a59[_0x14a46d(0x237)](_0x3e212f);});};this['disposeWithMe'](_0x2685e5(this[_0x3cfca8(0x2e1)]['subscribe'](()=>{_0x192d58();})));}[_0x1de525(0x1eb)](){const _0x52f3de=_0x1de525;var _0x54d4b5,_0x5a974f;if(this['_online']=!0x0,((_0x54d4b5=this[_0x52f3de(0x307)][_0x52f3de(0x210)]())==null?void 0x0:_0x54d4b5[_0x52f3de(0x223)]())!==this['unitID'])return;const _0x5e4001=(_0x5a974f=this[_0x52f3de(0x14b)]['get'](_0x20ba72)['getCurrentSelections']())==null?void 0x0:_0x5a974f[0x0],_0xff0edb=this[_0x52f3de(0x307)][_0x52f3de(0x160)](_0x5ef820[_0x52f3de(0x25a)])['getActiveSheet']();_0x5e4001&&_0xff0edb&&this[_0x52f3de(0x258)](_0xff0edb['getSheetId'](),_0x5e4001);}[_0x1de525(0x284)](){const _0x451d75=_0x1de525;this[_0x451d75(0x277)]=!0x1;}};Me=Ui([x(0x2,_0x5c6996(_0x25bcbf)),x(0x3,_0x5c6996(He)),x(0x4,_0x5c6996(_0x30e787)),x(0x5,_0x38aa79),x(0x6,_0x3d6ba5),x(0x7,_0x5c6996(_0x596355))],Me);var wi=Object[_0x1de525(0x2eb)],Ai=(_0x1d4aa1,_0xcbd064,_0x550f91,_0x1ea504)=>{for(var _0x553935=_0x1ea504>0x1?void 0x0:_0x1ea504?wi(_0xcbd064,_0x550f91):_0xcbd064,_0x2f33d7=_0x1d4aa1['length']-0x1,_0x444bee;_0x2f33d7>=0x0;_0x2f33d7--)(_0x444bee=_0x1d4aa1[_0x2f33d7])&&(_0x553935=_0x444bee(_0x553935)||_0x553935);return _0x553935;},me=(_0x3f7e60,_0x3548ee)=>(_0x1940ad,_0x29321c)=>_0x3548ee(_0x1940ad,_0x29321c,_0x3f7e60);let F=class extends _0x5d5e25{constructor(_0x4dd80f,_0x588340,_0x3588cc){const _0x46225d=_0x1de525;super(),_(this,_0x46225d(0x2b9),new Map()),_(this,_0x46225d(0x199),new _0x12a97c()),(this[_0x46225d(0x307)]=_0x4dd80f,this['_injector']=_0x588340,this[_0x46225d(0x2ad)]=_0x3588cc,this['_init']());}[_0x1de525(0x13f)](){const _0x179196=_0x1de525;super[_0x179196(0x13f)](),this['_entityInit$']['complete'](),this['_entities'][_0x179196(0x1ce)](_0x5b2f78=>_0x5b2f78[_0x179196(0x13f)]());}[_0x1de525(0x1d4)](_0x3abc92){const _0x551970=_0x1de525;return this[_0x551970(0x2b9)]['has'](_0x3abc92)?this[_0x551970(0x2b9)][_0x551970(0x204)](_0x3abc92)[_0x551970(0x140)]:this[_0x551970(0x199)][_0x551970(0x227)](_0x220197(_0x154587=>_0x154587['unitID']===_0x3abc92),_0x85c43a(_0x384c42=>_0x384c42[_0x551970(0x140)]));}[_0x1de525(0x2a6)](){const _0x233efa=_0x1de525;this[_0x233efa(0x307)]['getTypeOfUnitAdded$'](_0x5ef820['UNIVER_SHEET'])[_0x233efa(0x227)](_0x552e0d(this[_0x233efa(0x1b6)]))[_0x233efa(0x1aa)](async _0x20bedd=>{const _0x4dbb2b=_0x233efa,_0x3882bb=_0x20bedd[_0x4dbb2b(0x223)](),_0x4ac9b8=await this[_0x4dbb2b(0x14e)](_0x3882bb);this[_0x4dbb2b(0x199)][_0x4dbb2b(0x239)](_0x4ac9b8),this[_0x4dbb2b(0x2b9)][_0x4dbb2b(0x293)](_0x3882bb,_0x4ac9b8);}),this[_0x233efa(0x307)][_0x233efa(0x20a)](_0x5ef820[_0x233efa(0x185)])['pipe'](_0x552e0d(this[_0x233efa(0x1b6)]))['pipe'](_0x220197(_0x11eaf5=>!_0x11eaf5[_0x233efa(0x223)]()[_0x233efa(0x1e6)]('__')))[_0x233efa(0x1aa)](async _0x1bbffd=>{const _0xb4a8e1=_0x233efa,_0x14bdc3=_0x1bbffd[_0xb4a8e1(0x223)](),_0x32444d=await this['_startDocCollabCursor'](_0x14bdc3);this[_0xb4a8e1(0x199)][_0xb4a8e1(0x239)](_0x32444d),this['_entities'][_0xb4a8e1(0x293)](_0x14bdc3,_0x32444d);}),_0x2422bd(this['_univerInstanceService'][_0x233efa(0x310)](_0x5ef820[_0x233efa(0x185)]),this[_0x233efa(0x307)][_0x233efa(0x310)](_0x5ef820[_0x233efa(0x25a)]))['pipe'](_0x552e0d(this[_0x233efa(0x1b6)]))[_0x233efa(0x1aa)](_0x8d7485=>{const _0x26a45e=_0x233efa,_0x39102a=_0x8d7485[_0x26a45e(0x223)](),_0x31175d=this[_0x26a45e(0x2b9)][_0x26a45e(0x204)](_0x39102a);_0x31175d&&(_0x31175d[_0x26a45e(0x13f)](),this[_0x26a45e(0x2b9)][_0x26a45e(0x29f)](_0x39102a));});}async['_startSheetCollabCursor'](_0x4308e3){const _0x54474c=_0x1de525,_0x39783e=await this[_0x54474c(0x2ad)]['requireSession'](_0x4308e3),_0x11d783=this[_0x54474c(0x14b)][_0x54474c(0x1a6)](Me,_0x4308e3,_0x39783e);return _0x11d783[_0x54474c(0x281)](),_0x11d783;}async[_0x1de525(0x201)](_0x4ca8b5){const _0x33d00b=_0x1de525,_0x4aa25c=await this[_0x33d00b(0x2ad)][_0x33d00b(0x1da)](_0x4ca8b5),_0x21d988=this[_0x33d00b(0x14b)][_0x33d00b(0x1a6)](Ue,_0x4ca8b5,_0x4aa25c);return _0x21d988[_0x33d00b(0x281)](),_0x21d988;}};F=Ai([me(0x0,_0x38aa79),me(0x1,_0x5c6996(_0x25bcbf)),me(0x2,_0x5c6996(_0x31b372))],F);const J=0x14,Qe=0xc8,Ie=0x4,yi=0x5;function $i(_0x421041,_0x355f94){const _0x27b41e=_0x1de525;let {radius:_0x21f4a6,width:_0xd6d14,height:_0x1a0854}=_0x355f94;_0x21f4a6=_0x21f4a6!=null?_0x21f4a6:0x0,_0xd6d14=_0xd6d14!=null?_0xd6d14:0x1e,_0x1a0854=_0x1a0854!=null?_0x1a0854:0x1e;let _0x160201=0x0,_0x531748=0x0,_0x4e5147=0x0;_0x160201=_0x531748=_0x4e5147=Math['min'](_0x21f4a6,_0xd6d14/0x2,_0x1a0854/0x2),_0x421041[_0x27b41e(0x1b1)](),_0x421041[_0x27b41e(0x1e7)](_0x160201,0x0),_0x421041[_0x27b41e(0x2e9)](_0xd6d14-_0x531748,0x0),_0x421041[_0x27b41e(0x28d)](_0xd6d14-_0x531748,_0x531748,_0x531748,Math['PI']*0x3/0x2,0x0,!0x1),_0x421041[_0x27b41e(0x2e9)](_0xd6d14,_0x1a0854-_0x4e5147),_0x421041[_0x27b41e(0x28d)](_0xd6d14-_0x4e5147,_0x1a0854-_0x4e5147,_0x4e5147,0x0,Math['PI']/0x2,!0x1),_0x421041[_0x27b41e(0x2e9)](0x0,_0x1a0854),_0x421041['lineTo'](0x0,_0x160201),_0x421041['arc'](_0x160201,_0x160201,_0x160201,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x421041[_0x27b41e(0x1de)](),_0x355f94[_0x27b41e(0x2ea)]&&(_0x421041[_0x27b41e(0x286)](),_0x421041[_0x27b41e(0x1ef)]=_0x355f94[_0x27b41e(0x2ea)],_0x355f94[_0x27b41e(0x228)]===_0x27b41e(0x22c)?_0x421041[_0x27b41e(0x2ea)](_0x27b41e(0x22c)):_0x421041[_0x27b41e(0x2ea)](),_0x421041['restore']());}class ue extends _0xfc37c0{constructor(_0x39e1fd,_0x281aa6){const _0x466146=_0x1de525;super(_0x39e1fd,_0x281aa6),_(this,_0x466146(0x2b2)),_(this,_0x466146(0x2b0)),(this['color']=_0x281aa6==null?void 0x0:_0x281aa6[_0x466146(0x2b2)],this[_0x466146(0x2b0)]=_0x281aa6==null?void 0x0:_0x281aa6[_0x466146(0x2b0)]);}static['drawWith'](_0x422a9e,_0x6cb225){const _0x1f079e=_0x1de525,{text:_0x53eaa2,color:_0x361105}=_0x6cb225;_0x422a9e[_0x1f079e(0x286)](),_0x422a9e['font']=_0x1f079e(0x163);const _0x3c1558=_0x422a9e[_0x1f079e(0x21d)](_0x53eaa2)[_0x1f079e(0x15d)],_0x2cbeeb=Math['min'](_0x3c1558+0x2*Ie,Qe);$i(_0x422a9e,{'height':J,'radius':0x4,'width':_0x2cbeeb,'fill':_0x361105}),_0x422a9e[_0x1f079e(0x1ef)]=_0x1f079e(0x136);const _0xc1ceac=Ie,_0x93bc10=J-yi,_0x2d8dca=Qe-0x2*Ie;if(_0x3c1558>_0x2d8dca){let _0x1efc50='',_0x1748c8=0x0;for(const _0xe1d4a4 of _0x53eaa2){const _0x9a3df6=_0x422a9e[_0x1f079e(0x21d)](_0xe1d4a4)[_0x1f079e(0x15d)];if(_0x1748c8+_0x9a3df6<=_0x2d8dca-_0x422a9e[_0x1f079e(0x21d)](_0x1f079e(0x147))[_0x1f079e(0x15d)])_0x1efc50+=_0xe1d4a4,_0x1748c8+=_0x9a3df6;else{_0x1efc50+='...';break;}}_0x422a9e[_0x1f079e(0x151)](_0x1efc50,_0xc1ceac,_0x93bc10);}else _0x422a9e[_0x1f079e(0x151)](_0x53eaa2,_0xc1ceac,_0x93bc10);_0x422a9e[_0x1f079e(0x2ef)]();}['_draw'](_0x3a722e){const _0x16f39d=_0x1de525;ue[_0x16f39d(0x2a8)](_0x3a722e,this);}}const ve='collab-text-anchor-',xi=_0x1de525(0x1ca),Bi=_0x1de525(0x218),K=0x6,ki=1.5,ge=0x4,Hi=1.5,Fi=_0x1de525(0x1fe);class qe{constructor(_0x1cd677,_0x20a48a,_0x17509f,_0x1aa9bb){const _0x1f37eb=_0x1de525;_(this,'_shapes',[]),_(this,_0x1f37eb(0x225),null),_(this,_0x1f37eb(0x1d3),null),_(this,_0x1f37eb(0x31f),null),_(this,_0x1f37eb(0x176),null),_(this,_0x1f37eb(0x1c2),null),(this[_0x1f37eb(0x139)]=_0x1cd677,this[_0x1f37eb(0x14c)]=_0x20a48a,this[_0x1f37eb(0x2ca)]=_0x17509f,this[_0x1f37eb(0x1ea)]=_0x1aa9bb,this[_0x1f37eb(0x141)]());}set[_0x1de525(0x129)](_0x157acb){const _0x128344=_0x1de525;_0x157acb?(this[_0x128344(0x31f)]&&this[_0x128344(0x31f)][_0x128344(0x169)](),this[_0x128344(0x1d3)]&&this['_textBubble'][_0x128344(0x272)]()):(this[_0x128344(0x31f)]&&this[_0x128344(0x31f)][_0x128344(0x272)](),this[_0x128344(0x1d3)]&&this[_0x128344(0x1d3)][_0x128344(0x169)]());}['dispose'](){const _0x34929c=_0x1de525;for(const _0x5b0985 of this[_0x34929c(0x244)])_0x5b0985[_0x34929c(0x13f)]();this['_textBubble']&&this[_0x34929c(0x1d3)][_0x34929c(0x13f)](),this['_anchorDot']&&this[_0x34929c(0x31f)][_0x34929c(0x13f)](),this['_anchor']&&this[_0x34929c(0x225)][_0x34929c(0x13f)](),this[_0x34929c(0x1c2)]&&this[_0x34929c(0x1c2)]();}[_0x1de525(0x141)](){const _0x119d18=_0x1de525;var _0x97f75b;const {_docSkeleton:_0x2c0872,_document:_0x57244b}=this,{color:_0x36e420,name:_0x42611c,ranges:_0x4e7606}=this[_0x119d18(0x139)],_0xa46f6b=_0x57244b[_0x119d18(0x298)](),{docsLeft:_0x23106a,docsTop:_0x87991f}=_0xa46f6b,_0x2c20a4=new _0x56e03a(_0xa46f6b,_0x2c0872);for(const {startOffset:_0x4e4e68,endOffset:_0x5b0ab7,rangeType:_0x5316ba,segmentId:_0x402643,segmentPage:_0x3d397b,collapsed:_0x23ea67,isActive:_0x383556}of _0x4e7606){const _0x190252=_0x2c0872[_0x119d18(0x2bd)](_0x4e4e68,!0x0,_0x402643,_0x3d397b);let _0x5b456c=_0x2c0872[_0x119d18(0x2bd)](_0x5b0ab7,!0x0,_0x402643,_0x3d397b);if(_0x5b456c==null&&(_0x5b456c=_0x2c0872['findNodePositionByCharIndex'](_0x5b0ab7-0x1,!0x1,_0x402643,_0x3d397b)),_0x383556){const {contentBoxPointGroup:_0x4c8015}=_0x2c20a4[_0x119d18(0x309)](_0x5b456c,_0x5b456c);if(_0x4c8015[_0x119d18(0x16e)]===0x0)continue;this[_0x119d18(0x1a9)](_0x36e420,_0x4c8015,_0x23106a,_0x87991f,_0x42611c),this[_0x119d18(0x1c2)]=this['_handleHover']();}if(_0x190252&&_0x5b456c){if(_0x5316ba===_0x12430b[_0x119d18(0x183)]){const _0x446709=new _0x1a6ea6(_0xa46f6b,_0x2c0872),{pointGroup:_0x43ab1b}=(_0x97f75b=_0x446709['getRangePointData'](_0x190252,_0x5b456c))!=null?_0x97f75b:{};if(_0x43ab1b==null||_0x43ab1b['length']===0x0)continue;this[_0x119d18(0x2a2)](_0x36e420,_0x43ab1b,_0x23106a,_0x87991f);}else{if(!_0x23ea67){const {borderBoxPointGroup:_0x2d9b52}=_0x2c20a4[_0x119d18(0x309)](_0x190252,_0x5b456c);if(_0x2d9b52[_0x119d18(0x16e)]===0x0)continue;this[_0x119d18(0x1ed)](_0x36e420,_0x2d9b52,_0x23106a,_0x87991f);}}}}}[_0x1de525(0x1a9)](_0x1d291e,_0x5d22b4,_0x41bf36,_0x5356bb,_0x1352d7){const _0x4bee7d=_0x1de525,_0x79ea0b=this[_0x4bee7d(0x179)](_0x5d22b4),{left:_0x451918,top:_0x21523f,height:_0x5c0406}=_0x79ea0b,_0x2ea229=this[_0x4bee7d(0x260)](),_0x15de0c=Hi/_0x2ea229,_0x1dab12=new _0x1e8379(ve+_0x39b37f(K),{'left':_0x451918+_0x41bf36-_0x15de0c,'top':_0x21523f+_0x5356bb,'height':_0x5c0406,'width':ki,'fill':_0x1d291e||_0x45905f(_0x13a4be[_0x4bee7d(0x28c)],0x0),'strokeWidth':_0x15de0c,'stroke':Fi,'evented':!0x0});this[_0x4bee7d(0x225)]=_0x1dab12,this[_0x4bee7d(0x14c)][_0x4bee7d(0x320)](_0x1dab12,_0x3b94f3);const _0x223dc7=new _0x1e8379(ve+_0x39b37f(K),{'left':_0x451918+_0x41bf36-_0x15de0c,'top':_0x21523f+_0x5356bb-ge/0x2,'height':ge,'width':ge,'fill':_0x1d291e||_0x45905f(_0x13a4be['black'],0x0),'strokeWidth':0x0,'stroke':_0x1d291e||_0x45905f(_0x13a4be[_0x4bee7d(0x28c)],0x0),'evented':!0x1});this[_0x4bee7d(0x31f)]=_0x223dc7,this['_scene'][_0x4bee7d(0x320)](_0x223dc7,_0x3b94f3);const _0x1fe8a9=new ue(ve+_0x39b37f(K),{'left':_0x451918+_0x41bf36-_0x15de0c,'top':_0x21523f+_0x5356bb-J,'text':_0x1352d7,'color':_0x1d291e});this[_0x4bee7d(0x1d3)]=_0x1fe8a9,this[_0x4bee7d(0x14c)][_0x4bee7d(0x320)](_0x1fe8a9,_0x3b94f3),this[_0x4bee7d(0x129)]=!0x1;}[_0x1de525(0x16b)](){const _0xeb0d6c=_0x1de525,_0x373ab1=this[_0xeb0d6c(0x225)][_0xeb0d6c(0x271)][_0xeb0d6c(0x124)](()=>{const _0x3562cd=_0xeb0d6c;this[_0x3562cd(0x129)]=!0x0;}),_0x4a9cbd=this[_0xeb0d6c(0x225)][_0xeb0d6c(0x212)][_0xeb0d6c(0x124)](()=>{const _0x3b600c=_0xeb0d6c;this[_0x3b600c(0x176)]&&clearTimeout(this['_hideTimer']),this[_0x3b600c(0x176)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1a1149=_0xeb0d6c;_0x373ab1[_0x1a1149(0x219)](),_0x4a9cbd['unsubscribe']();};}[_0x1de525(0x1ed)](_0x4ddbc7,_0x4bd60e,_0x2ec0fc,_0x1e30cb){const _0x5e8a66=_0x1de525,_0x5e8060=new _0x208161(_0x4ddbc7)[_0x5e8a66(0x19e)](0.2)[_0x5e8a66(0x31a)](),_0x4abbe1=new _0x3017af(xi+_0x39b37f(K),{'pointsGroup':_0x4bd60e,'fill':_0x5e8060||_0x45905f(_0x13a4be[_0x5e8a66(0x28c)],0.2),'left':_0x2ec0fc,'top':_0x1e30cb,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4abbe1),this[_0x5e8a66(0x14c)][_0x5e8a66(0x320)](_0x4abbe1,_0x3b94f3);}[_0x1de525(0x2a2)](_0x32ba1b,_0x232991,_0xb54d3c,_0x4389be){const _0x529d92=_0x1de525,_0x8fbb8b=new _0x208161(_0x32ba1b)[_0x529d92(0x19e)](0.2)['toRgbString'](),_0xa9487=new _0x3017af(Bi+_0x39b37f(K),{'pointsGroup':_0x232991,'fill':_0x8fbb8b||_0x45905f(_0x13a4be[_0x529d92(0x28c)],0.2),'left':_0xb54d3c,'top':_0x4389be,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x529d92(0x244)][_0x529d92(0x261)](_0xa9487),this['_scene']['addObject'](_0xa9487,_0x3b94f3);}[_0x1de525(0x179)](_0x12cf7d){const _0xec8056=_0x12cf7d[0x0],_0x2af953=_0xec8056[0x0],_0x157b95=_0xec8056[0x2],{x:_0x3fb65f,y:_0x453b26}=_0x2af953,{x:_0x3fd632,y:_0x2aa033}=_0x157b95;return{'left':_0x3fb65f,'top':_0x453b26,'width':_0x3fd632-_0x3fb65f,'height':_0x2aa033-_0x453b26};}['_getScale'](){const _0x38496b=_0x1de525,{scaleX:_0x2be52e,scaleY:_0x2f0218}=this['_scene'][_0x38496b(0x1e4)]();return Math[_0x38496b(0x184)](_0x2be52e,_0x2f0218);}}var Yi=Object[_0x1de525(0x2eb)],ji=(_0x5ede16,_0x2b298a,_0x3f2a57,_0x5f4bc9)=>{const _0x94cc2c=_0x1de525;for(var _0x39ab63=_0x5f4bc9>0x1?void 0x0:_0x5f4bc9?Yi(_0x2b298a,_0x3f2a57):_0x2b298a,_0x4b5a2b=_0x5ede16[_0x94cc2c(0x16e)]-0x1,_0x1c40d5;_0x4b5a2b>=0x0;_0x4b5a2b--)(_0x1c40d5=_0x5ede16[_0x4b5a2b])&&(_0x39ab63=_0x1c40d5(_0x39ab63)||_0x39ab63);return _0x39ab63;},ee=(_0x1a1bc8,_0x5b2478)=>(_0x458b33,_0x14308f)=>_0x5b2478(_0x458b33,_0x14308f,_0x1a1bc8);let Le=class extends _0x5d5e25{constructor(_0x7b408f,_0x196f40,_0xb9635d,_0x3256ed,_0x5a5c2d){const _0x2ccb45=_0x1de525;super(),_(this,_0x2ccb45(0x17e),[]),_(this,_0x2ccb45(0x1cc),[]),(this['_context']=_0x7b408f,this[_0x2ccb45(0x2a1)]=_0x196f40,this[_0x2ccb45(0x168)]=_0xb9635d,this['_commandService']=_0x3256ed,this[_0x2ccb45(0x23e)]=_0x5a5c2d,this[_0x2ccb45(0x2a6)]());}['_init'](){const _0xc8d24=_0x1de525,_0x3984ff=this[_0xc8d24(0x18d)]['unitId'],_0x4d61f0=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x24a102([this[_0xc8d24(0x168)][_0xc8d24(0x1d4)](_0x3984ff),this[_0xc8d24(0x23e)][_0xc8d24(0x29e)]])[_0xc8d24(0x227)](_0x2d8288(([_0x16a117,_0x129f99])=>({'skeleton':_0x4d61f0['getSkeleton'](),'cursors':[..._0x16a117[_0xc8d24(0x308)]()][_0xc8d24(0x29d)](_0xb3d3aa=>({..._0xb3d3aa,'color':this['_themeService'][_0xc8d24(0x1dd)](_0xb3d3aa[_0xc8d24(0x2b2)])}))})))[_0xc8d24(0x1aa)](_0x378dbb=>{const _0xce659a=_0xc8d24;if(this[_0xce659a(0x159)](),_0x378dbb){const {skeleton:_0x49689e,cursors:_0x4807e6}=_0x378dbb;this['_updateCollabCursors'](_0x49689e,_0x4807e6);}})),this[_0xc8d24(0x248)](),this[_0xc8d24(0x2cb)]();}['_updateCollabCursors'](_0x1070a4,_0x39715c){const _0x4586d9=_0x1de525,{scene:_0x5061fb,mainComponent:_0xfbb06b}=this[_0x4586d9(0x18d)],_0x3cc286=_0x39715c[_0x4586d9(0x1f4)](_0x32d964=>new qe(_0x32d964,_0x5061fb,_0x1070a4,_0xfbb06b));this[_0x4586d9(0x17e)]=_0x3cc286,this[_0x4586d9(0x1cc)]=_0x39715c;}['_refreshCollabCursors'](){const _0x5b4b6c=_0x1de525;this[_0x5b4b6c(0x159)]();const {scene:_0xe92daf,mainComponent:_0x156f65}=this['_context'],_0x16ddd6=this[_0x5b4b6c(0x2a1)][_0x5b4b6c(0x200)](),_0x38a277=this[_0x5b4b6c(0x1cc)][_0x5b4b6c(0x1f4)](_0x502ed3=>new qe(_0x502ed3,_0xe92daf,_0x16ddd6,_0x156f65));this[_0x5b4b6c(0x17e)]=_0x38a277;}[_0x1de525(0x159)](){const _0xd69547=_0x1de525;this[_0xd69547(0x17e)][_0xd69547(0x1ce)](_0x5753df=>_0x5753df[_0xd69547(0x13f)]()),this[_0xd69547(0x17e)]=[];}['_initCommandExecutedListener'](){const _0xb27f36=_0x1de525,_0x1193d3=[_0x21d4a2['id']];this[_0xb27f36(0x144)](this['_commandService'][_0xb27f36(0x133)](_0x326981=>{const _0xcabc71=_0xb27f36;_0x1193d3['includes'](_0x326981['id'])&&_0x326981[_0xcabc71(0x25f)]['unitId']===this[_0xcabc71(0x18d)][_0xcabc71(0x1cb)]&&this[_0xcabc71(0x22f)]();}));}[_0x1de525(0x248)](){const _0x1d10aa=_0x1de525;this[_0x1d10aa(0x144)](_0x987390(this['_context'][_0x1d10aa(0x1d6)][_0x1d10aa(0x15a)])[_0x1d10aa(0x227)](_0x4f37b8(_0x42a789=>_0x42a789['type']===_0x5191a8[_0x1d10aa(0x1e2)]),_0xa545cd(0x10))['subscribe'](()=>{const _0x3a6969=_0x1d10aa;this[_0x3a6969(0x22f)]();}));}};Le=ji([ee(0x1,_0x5c6996(_0x808ff5)),ee(0x2,_0x5c6996(F)),ee(0x3,_0x3d6ba5),ee(0x4,_0x5c6996(_0x1d1c1e))],Le);const Vi=0x1,Wi=1.5;class Xi extends _0xfc37c0{constructor(_0x24a304,_0x421910){const _0x3e9c79=_0x1de525;super(_0x24a304,_0x421910),_(this,_0x3e9c79(0x2ae)),_(this,_0x3e9c79(0x17f),!0x1),_(this,_0x3e9c79(0x2f7)),_(this,_0x3e9c79(0x2ac),''),_(this,'_labelPosition',_0x3e9c79(0x1d2)),_(this,_0x3e9c79(0x2dd)),(_0x421910&&this['setShapeProps'](_0x421910),this[_0x3e9c79(0x271)][_0x3e9c79(0x124)](()=>this[_0x3e9c79(0x12e)]({'hovered':!0x0})),this[_0x3e9c79(0x212)][_0x3e9c79(0x124)](()=>this[_0x3e9c79(0x12e)]({'hovered':!0x1})));}[_0x1de525(0x12e)](_0x172354){const _0x16ea34=_0x1de525;var _0x269605,_0x400615,_0x4b474f,_0x55b780,_0xa43e71,_0x5078a8;this[_0x16ea34(0x2ae)]=(_0x269605=_0x172354[_0x16ea34(0x2b2)])!=null?_0x269605:this[_0x16ea34(0x2ae)],this[_0x16ea34(0x17f)]=(_0x400615=_0x172354[_0x16ea34(0x18f)])!=null?_0x400615:this[_0x16ea34(0x17f)],this[_0x16ea34(0x2f7)]=(_0x4b474f=_0x172354['range'])!=null?_0x4b474f:this[_0x16ea34(0x2f7)],this[_0x16ea34(0x2ac)]=(_0x55b780=_0x172354[_0x16ea34(0x196)])!=null?_0x55b780:this[_0x16ea34(0x2ac)],this[_0x16ea34(0x2fe)]=(_0xa43e71=_0x172354[_0x16ea34(0x275)])!=null?_0xa43e71:this['_labelPosition'],this[_0x16ea34(0x2dd)]=(_0x5078a8=_0x172354[_0x16ea34(0x2d7)])!=null?_0x5078a8:this['_backgroundColor'],this[_0x16ea34(0x26e)]({'width':_0x172354[_0x16ea34(0x15d)],'height':_0x172354[_0x16ea34(0x1b2)]});}[_0x1de525(0x28b)](_0x38ab3f){const _0x2139fe=_0x1de525,{row:_0xe7442f,column:_0x320a0a}=_0x38ab3f;if(_0xe7442f>=this[_0x2139fe(0x2f7)][_0x2139fe(0x2da)]&&_0xe7442f<=this['_range'][_0x2139fe(0x211)]&&_0x320a0a>=this[_0x2139fe(0x2f7)][_0x2139fe(0x302)]&&_0x320a0a<=this[_0x2139fe(0x2f7)][_0x2139fe(0x15b)]){this[_0x2139fe(0x12e)]({'hovered':!0x0});return;}this[_0x2139fe(0x12e)]({'hovered':!0x1});}[_0x1de525(0x233)](_0x43f3db){return!0x1;}['_draw'](_0x5f4002){const _0x380465=_0x1de525;_0x1e8379[_0x380465(0x2a8)](_0x5f4002,{'width':this[_0x380465(0x15d)],'height':this[_0x380465(0x1b2)],'strokeWidth':Wi,'stroke':this[_0x380465(0x2ae)],'evented':!0x1,'fill':this[_0x380465(0x2dd)]}),this['_hovered']&&(_0x5f4002[_0x380465(0x286)](),_0x5f4002[_0x380465(0x2d4)](0x1,0x0,0x0,0x1,this[_0x380465(0x15d)],this[_0x380465(0x2fe)]===_0x380465(0x2b8)?0x0:-J),ue[_0x380465(0x2a8)](_0x5f4002,{'text':this['_name'],'color':this[_0x380465(0x2ae)]}),_0x5f4002[_0x380465(0x2ef)]());}}var Gi=Object['getOwnPropertyDescriptor'],Ki=(_0x4d9c16,_0x54561d,_0x5a5f0a,_0xaf3ea7)=>{const _0x411405=_0x1de525;for(var _0x15a2c3=_0xaf3ea7>0x1?void 0x0:_0xaf3ea7?Gi(_0x54561d,_0x5a5f0a):_0x54561d,_0x28faca=_0x4d9c16[_0x411405(0x16e)]-0x1,_0x1acb25;_0x28faca>=0x0;_0x28faca--)(_0x1acb25=_0x4d9c16[_0x28faca])&&(_0x15a2c3=_0x1acb25(_0x15a2c3)||_0x15a2c3);return _0x15a2c3;},pe=(_0x1713ee,_0x51230c)=>(_0x387f0c,_0x450741)=>_0x51230c(_0x387f0c,_0x450741,_0x1713ee);const zi=0x1389;let Pe=class extends _0x5d5e25{constructor(_0x5e6e63,_0x2819b9,_0x5bb68b,_0x82c9dc){const _0x4c0361=_0x1de525;super(),_(this,_0x4c0361(0x1cc),new Set()),_(this,_0x4c0361(0x2fc),null),(this['_context']=_0x5e6e63,this[_0x4c0361(0x2d8)]=_0x2819b9,this[_0x4c0361(0x168)]=_0x5bb68b,this['_themeService']=_0x82c9dc,this[_0x4c0361(0x2a6)]());}['_init'](){const _0x59a9e9=_0x1de525;this['_sheetSkeletonManagerService'][_0x59a9e9(0x28a)][_0x59a9e9(0x227)](_0x401d5a(this[_0x59a9e9(0x1b6)]),_0x54796f(_0x489f33=>{const _0x4931ef=_0x59a9e9;if(_0x489f33){const _0x108b17=_0x489f33['sheetId'];return _0x24a102(this[_0x4931ef(0x168)][_0x4931ef(0x1d4)](this[_0x4931ef(0x18d)][_0x4931ef(0x1cb)]),this[_0x4931ef(0x23e)][_0x4931ef(0x29e)])[_0x4931ef(0x227)](_0x2d8288(([_0x58a92d,_0x2f695f])=>{const _0x54899d=_0x4931ef,_0x5b55f1=new Map();return _0x58a92d[_0x54899d(0x1ce)]((_0x746b86,_0x43ab27)=>{const _0x44e30a=_0x54899d;if(_0x746b86['sheetID']===_0x108b17){const _0x2a89f4={..._0x746b86};_0x2a89f4[_0x44e30a(0x2b2)]=this[_0x44e30a(0x23e)][_0x44e30a(0x1dd)](_0x746b86[_0x44e30a(0x2b2)]),_0x5b55f1[_0x44e30a(0x293)](_0x43ab27,_0x2a89f4);}}),{'skeleton':_0x489f33,'cursors':_0x5b55f1};}));}return _0x46fe23({'skeleton':null,'cursors':new Map()});}))[_0x59a9e9(0x1aa)](({skeleton:_0x2a8dbb,cursors:_0x1472cf})=>{const _0x547a91=_0x59a9e9;this['_removeCollabCursors'](),_0x2a8dbb&&this[_0x547a91(0x238)](_0x2a8dbb,_0x1472cf);}),this[_0x59a9e9(0x2d8)][_0x59a9e9(0x28a)][_0x59a9e9(0x1aa)](_0x5833c5=>{const _0x2ae804=_0x59a9e9;if(_0x5833c5==null)return;const {skeleton:_0x33ece1}=_0x5833c5,{scene:_0x28576d}=this[_0x2ae804(0x18d)];_0x28576d[_0x2ae804(0x21f)][_0x2ae804(0x124)](_0x2398b9(_0x1c1dc5=>{const _0xaa2396=_0x2ae804;var _0x298c9c,_0xef0c1a;const {offsetX:_0x3b1049,offsetY:_0xfa291d}=_0x1c1dc5,{x:_0x5ef85e,y:_0x3014f9}=_0x28576d[_0xaa2396(0x311)](_0x180f0e[_0xaa2396(0x2f5)]([_0x3b1049,_0xfa291d])),{scaleX:_0x57b693,scaleY:_0x4c5916}=_0x28576d[_0xaa2396(0x1e4)](),_0x102344=_0x28576d[_0xaa2396(0x148)](_0x111c64[_0xaa2396(0x27f)]),_0x3164f3=_0x28576d['getVpScrollXYInfoByPosToVp'](_0x180f0e[_0xaa2396(0x2f5)]([_0x5ef85e,_0x3014f9]),_0x102344),_0x4d13de=_0x33ece1[_0xaa2396(0x19a)](_0x3b1049,_0xfa291d,_0x57b693,_0x4c5916,_0x3164f3);((_0x298c9c=this[_0xaa2396(0x2fc)])==null?void 0x0:_0x298c9c[_0xaa2396(0x21a)])===_0x4d13de['column']&&((_0xef0c1a=this[_0xaa2396(0x2fc)])==null?void 0x0:_0xef0c1a[_0xaa2396(0x23d)])===_0x4d13de['row']||this[_0xaa2396(0x1cc)][_0xaa2396(0x1ce)](_0x589a4d=>{const _0x24f1f9=_0xaa2396;_0x589a4d[_0x24f1f9(0x28b)](_0x4d13de);});},0x64));});}['_updateCollabCursors'](_0x57fcc4,_0x47d2b){const _0x52261a=_0x1de525;var _0x31a2d4;const _0x42e9aa=(_0x31a2d4=this['_sheetSkeletonManagerService'][_0x52261a(0x30a)]())==null?void 0x0:_0x31a2d4['skeleton'];if(!_0x42e9aa)return;const _0x3ea7e7=this[_0x52261a(0x202)]();if(!_0x3ea7e7)return;this['_cursors']['forEach'](_0x576adc=>{_0x576adc['makeDirty']();});const {scene:_0x5d5a25}=_0x3ea7e7,_0x2036e4=Ji(Array[_0x52261a(0x2f2)](_0x47d2b['values']()))[_0x52261a(0x1f4)](_0x5cbe1f=>{const _0x336390=_0x52261a,{color:_0x4ed9ee,range:_0x105088,name:_0x5d1138,selection:_0x1156ad,sheetID:_0x5d89d5}=_0x5cbe1f,{startColumn:_0x4ec22a,startRow:_0x2c0fe2,endColumn:_0x3b0c3d,endRow:_0x3bcbd8}=_0x105088,_0x16af34=_0x5d0a55(_0x2c0fe2,_0x4ec22a,_0x5d5a25,_0x42e9aa),_0x32e4a9=_0x5d0a55(_0x3bcbd8,_0x3b0c3d,_0x5d5a25,_0x42e9aa),{columnHeaderHeightAndMarginTop:_0x1a5eb9}=_0x42e9aa,{startX:_0x4c0521,startY:_0x5676b2}=_0x16af34,{endX:_0x19a54e,endY:_0x4bfdf7}=_0x32e4a9,_0x2cc643=_0x19a54e-_0x4c0521,_0x188b41=_0x4bfdf7-_0x5676b2,_0x4cda6c={'labelPosition':_0x5676b2-_0x1a5eb9>=J?_0x336390(0x1d2):_0x336390(0x2b8),'sheetID':_0x5d89d5,'range':_0x105088,'color':_0x4ed9ee,'name':_0x5d1138,'selection':_0x1156ad,'left':_0x4c0521,'top':_0x5676b2,'width':_0x2cc643,'height':_0x188b41,'evented':!0x1,'zIndex':zi};return new Xi(_0x5d1138,_0x4cda6c);});_0x5d5a25['addObjects'](_0x2036e4,Vi),this[_0x52261a(0x1cc)]=new Set(_0x2036e4);}['_removeCollabCursors'](){const _0x589cb9=_0x1de525;var _0x31fcc8;(_0x31fcc8=this[_0x589cb9(0x1cc)])==null||_0x31fcc8['forEach'](_0x2e7c4e=>_0x2e7c4e[_0x589cb9(0x13f)]());}[_0x1de525(0x202)](){const _0x56dc7b=_0x1de525;return _0x5750fc(this[_0x56dc7b(0x18d)][_0x56dc7b(0x138)],this['_context']);}};Pe=Ki([pe(0x1,_0x5c6996(_0x2ea6c6)),pe(0x2,_0x5c6996(F)),pe(0x3,_0x5c6996(_0x1d1c1e))],Pe);function Ji(_0x63a856){const _0x12c394=_0x1de525,_0x449b86=new Map();return _0x63a856[_0x12c394(0x1ce)](_0xb39745=>{const _0x2bdbb3=_0x12c394;if(_0x449b86[_0x2bdbb3(0x20c)](_0xb39745[_0x2bdbb3(0x30c)])){const _0x5b7836=_0x449b86['get'](_0xb39745[_0x2bdbb3(0x30c)]);_0x5b7836[_0x2bdbb3(0x196)]+=',\x20'+_0xb39745[_0x2bdbb3(0x196)];}else _0x449b86[_0x2bdbb3(0x293)](_0xb39745[_0x2bdbb3(0x30c)],_0xb39745);}),Array['from'](_0x449b86['values']());}var Zi=Object[_0x1de525(0x2eb)],Qi=(_0xbce719,_0x221c17,_0x1908a6,_0x5e1f98)=>{const _0x23961b=_0x1de525;for(var _0x162f79=_0x5e1f98>0x1?void 0x0:_0x5e1f98?Zi(_0x221c17,_0x1908a6):_0x221c17,_0xdce934=_0xbce719[_0x23961b(0x16e)]-0x1,_0xf3529e;_0xdce934>=0x0;_0xdce934--)(_0xf3529e=_0xbce719[_0xdce934])&&(_0x162f79=_0xf3529e(_0x162f79)||_0x162f79);return _0x162f79;},B=(_0x53c611,_0x58c328)=>(_0x194ad9,_0xcaca74)=>_0x58c328(_0x194ad9,_0xcaca74,_0x53c611);let ne=class extends _0x27b35c{constructor(_0x40d94b,_0x4f0dab,_0x2b689a,_0x367aba,_0x45670a,_0x4b90d0){const _0x40822c=_0x1de525;super(),this[_0x40822c(0x20d)]=_0x40d94b,this[_0x40822c(0x317)]=_0x4f0dab,this['_collaborationUIEventService']=_0x2b689a,this[_0x40822c(0x2bf)]=_0x367aba,this[_0x40822c(0x2a0)]=_0x45670a,this[_0x40822c(0x2bb)]=_0x4b90d0,this['_setupBeforeClosingHandler'](),this[_0x40822c(0x203)]();}[_0x1de525(0x1a4)](){const _0x4ba904=_0x1de525;this[_0x4ba904(0x144)](this[_0x4ba904(0x20d)]['registerBeforeClose'](()=>{const _0x188aee=_0x4ba904;if(this[_0x188aee(0x317)][_0x188aee(0x198)][_0x188aee(0x217)])return this[_0x188aee(0x2bb)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x1de525(0x203)](){const _0x304a9b=_0x1de525;this[_0x304a9b(0x144)](this[_0x304a9b(0x155)][_0x304a9b(0x206)][_0x304a9b(0x1aa)](_0x4d68d3=>{const _0x50ed82=_0x304a9b;_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x245)]&&this[_0x50ed82(0x2bf)]['show']({'type':_0x391a65[_0x50ed82(0x250)],'content':this['_localeService']['t'](_0x50ed82(0x2dc))}),_0x4d68d3['id']===_0x4b7116['CLOSE_ROOM']&&this[_0x50ed82(0x2bf)][_0x50ed82(0x272)]({'type':_0x391a65['Warning'],'content':this['_localeService']['t'](_0x50ed82(0x1fa))}),_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x194)]&&this[_0x50ed82(0x2a0)]['show']({'title':this[_0x50ed82(0x2bb)]['t']('permission.title'),'content':this[_0x50ed82(0x2bb)]['t']('permission.content'),'type':'error','duration':0x0}),_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x234)]&&this[_0x50ed82(0x2bf)][_0x50ed82(0x272)]({'type':_0x391a65[_0x50ed82(0x128)],'content':this[_0x50ed82(0x2bb)]['t']('collaboration.closeRoom')+'('+_0x4d68d3[_0x50ed82(0x26a)]+')'}),_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x221)]&&this['_messageService'][_0x50ed82(0x272)]({'type':_0x391a65[_0x50ed82(0x250)],'content':this[_0x50ed82(0x2bb)]['t'](_0x4d68d3[_0x50ed82(0x26a)]||'')}),_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x2d3)]&&this[_0x50ed82(0x2bf)][_0x50ed82(0x272)]({'type':_0x391a65[_0x50ed82(0x250)],'content':this['_localeService']['t'](_0x50ed82(0x213))}),_0x4d68d3['id']===_0x4b7116['SOCKET_FAILED']&&this[_0x50ed82(0x2bf)][_0x50ed82(0x272)]({'type':_0x391a65['Error'],'content':this[_0x50ed82(0x2bb)]['t'](_0x50ed82(0x2c1))}),_0x4d68d3['id']===_0x4b7116[_0x50ed82(0x1c4)]&&this[_0x50ed82(0x2bf)][_0x50ed82(0x272)]({'type':_0x391a65[_0x50ed82(0x128)],'content':this[_0x50ed82(0x2bb)]['t'](_0x50ed82(0x161))});}));}};ne=Qi([B(0x0,_0x392fb9),B(0x1,_0x24e892),B(0x2,_0x5c6996(_0x1872de)),B(0x3,_0x2ec900),B(0x4,_0xb95b8d),B(0x5,_0x5c6996(_0x1ad900))],ne);const qi=_0x1de525(0x145),et={};var en=Object[_0x1de525(0x2eb)],tn=(_0x3048c5,_0x54cce1,_0x4dc72b,_0x4eaafd)=>{const _0x387b16=_0x1de525;for(var _0x300b3b=_0x4eaafd>0x1?void 0x0:_0x4eaafd?en(_0x54cce1,_0x4dc72b):_0x54cce1,_0x16942f=_0x3048c5[_0x387b16(0x16e)]-0x1,_0x4077c0;_0x16942f>=0x0;_0x16942f--)(_0x4077c0=_0x3048c5[_0x16942f])&&(_0x300b3b=_0x4077c0(_0x300b3b)||_0x300b3b);return _0x300b3b;},tt=(_0x1340f8,_0x1e4256)=>(_0x5ccf88,_0x16458b)=>_0x1e4256(_0x5ccf88,_0x16458b,_0x1340f8);let re=class{constructor(_0x441c28,_0x3317d4){const _0x4eef2c=_0x1de525;this[_0x4eef2c(0x31c)]=_0x441c28,this['_renderManagerService']=_0x3317d4;}['transformIMECache'](_0x309b01){const _0x3f6714=_0x1de525;this['_transformUndoRedoStack'](_0x309b01),this[_0x3f6714(0x2d1)](_0x309b01);}['transformRemoteChangeset'](_0x4ffb9c){const _0x34cf5d=_0x1de525,{unitID:_0x5b7ac0}=_0x4ffb9c,_0xc3d62b=this[_0x34cf5d(0x26c)][_0x34cf5d(0x165)](_0x5b7ac0)[_0x34cf5d(0x166)](_0x12689e),{redoCache:_0x51de2a}=_0xc3d62b['getUndoRedoMutationParamsCache']();if(_0x51de2a[_0x34cf5d(0x16e)]===0x0)return _0x4ffb9c;let _0xb13360=_0x41f479[_0x34cf5d(0x1f0)](_0x4ffb9c[_0x34cf5d(0x2ec)][0x0]);for(let _0x1c97e4=0x0;_0x1c97e4<_0x51de2a[_0x34cf5d(0x16e)];_0x1c97e4++){const _0x3dc2bd={'id':_0x34cf5d(0x1ac),'params':{..._0x51de2a[_0x1c97e4]}},_0x395076=this[_0x34cf5d(0x31c)][_0x34cf5d(0x1e8)](_0xb13360,_0x3dc2bd,!0x1);if(_0x394d8b(_0x395076))throw _0x395076[_0x34cf5d(0x2c6)];_0xb13360=_0x395076[_0x34cf5d(0x11c)];}return{..._0x41f479[_0x34cf5d(0x1f0)](_0x4ffb9c),'mutations':[_0xb13360]};}[_0x1de525(0x2f1)](_0x2259e1){const _0x24ba5a=_0x1de525,{unitID:_0x5022d8}=_0x2259e1,_0x38d5d7=this[_0x24ba5a(0x26c)][_0x24ba5a(0x165)](_0x5022d8)['with'](_0x12689e),{undoCache:_0x5e285b,redoCache:_0x44ad11}=_0x38d5d7[_0x24ba5a(0x291)]();if(_0x5e285b[_0x24ba5a(0x16e)]===0x0||_0x44ad11[_0x24ba5a(0x16e)]===0x0)return;const _0x56beb1=[],_0x4b923e=[];let _0x1a5fa2=_0x41f479[_0x24ba5a(0x1f0)](_0x2259e1['mutations'][0x0]),_0x58eaed=_0x41f479[_0x24ba5a(0x1f0)](_0x2259e1[_0x24ba5a(0x2ec)][0x0]);for(let _0x2bd63e=_0x5e285b['length']-0x1;_0x2bd63e>=0x0;_0x2bd63e--){const _0x10b20a={'id':'doc.mutation.rich-text-editing','params':{..._0x5e285b[_0x2bd63e]}},_0x5cc196={'id':_0x24ba5a(0x1ac),'params':{..._0x44ad11[_0x2bd63e]}},_0x299ac6=this[_0x24ba5a(0x31c)][_0x24ba5a(0x1e8)](_0x1a5fa2,_0x10b20a,!0x1),_0x49b319=this[_0x24ba5a(0x31c)][_0x24ba5a(0x1e8)](_0x58eaed,_0x5cc196,!0x1);if(_0x394d8b(_0x299ac6))throw _0x299ac6[_0x24ba5a(0x2c6)];if(_0x394d8b(_0x49b319))throw _0x49b319['error'];_0x56beb1[_0x24ba5a(0x1c7)](_0x299ac6[_0x24ba5a(0x231)][_0x24ba5a(0x25f)]),_0x4b923e[_0x24ba5a(0x1c7)](_0x49b319[_0x24ba5a(0x231)][_0x24ba5a(0x25f)]),_0x1a5fa2=_0x299ac6[_0x24ba5a(0x11c)],_0x58eaed=_0x49b319[_0x24ba5a(0x11c)];}_0x38d5d7[_0x24ba5a(0x232)]({'undoCache':_0x56beb1,'redoCache':_0x4b923e});}[_0x1de525(0x2d1)](_0x1bf4de){const _0x20c61f=_0x1de525,{unitID:_0x4d1889}=_0x1bf4de,_0x1c08dc=this[_0x20c61f(0x26c)][_0x20c61f(0x165)](_0x4d1889)[_0x20c61f(0x166)](_0x12689e),_0x8b4bc9=_0x1c08dc['getActiveRange']();if(_0x8b4bc9==null)return;const _0x55effb=[{'id':_0x20c61f(0x1ac),'params':{'unitId':_0x1bf4de['unitID'],'actions':null,'textRanges':[_0x8b4bc9]}}],_0x37ca62=this['_transformService'][_0x20c61f(0x1e0)](_0x1bf4de,_0x55effb);if(!_0x464946(_0x37ca62))throw _0x37ca62[_0x20c61f(0x2c6)];const _0x58f6d5=_0x37ca62[_0x20c61f(0x231)][0x0][_0x20c61f(0x25f)][_0x20c61f(0x189)];Array[_0x20c61f(0x2c7)](_0x58f6d5)&&_0x58f6d5['length']&&_0x1c08dc[_0x20c61f(0x30b)](_0x58f6d5[0x0]);}};re=tn([tt(0x0,_0x4d45d3),tt(0x1,_0x16d4b6)],re);var sn=Object[_0x1de525(0x2eb)],nn=(_0xf12d5e,_0x34147d,_0x13eeca,_0x160f0c)=>{for(var _0x5c41a8=_0x160f0c>0x1?void 0x0:_0x160f0c?sn(_0x34147d,_0x13eeca):_0x34147d,_0x58aadf=_0xf12d5e['length']-0x1,_0x413884;_0x58aadf>=0x0;_0x58aadf--)(_0x413884=_0xf12d5e[_0x58aadf])&&(_0x5c41a8=_0x413884(_0x5c41a8)||_0x5c41a8);return _0x5c41a8;},Ce=(_0x22fdd8,_0x1647df)=>(_0xf68458,_0x2964fc)=>_0x1647df(_0xf68458,_0x2964fc,_0x22fdd8);let oe=class{constructor(_0x131170,_0x154307,_0x2cf01e){const _0x4c87c7=_0x1de525;this[_0x4c87c7(0x14b)]=_0x131170,this[_0x4c87c7(0x31c)]=_0x154307,this['_docStateChangeManagerService']=_0x2cf01e;}[_0x1de525(0x31b)](_0x24b00b){this['_transformHistoryAndStateStack'](_0x24b00b);}[_0x1de525(0x25e)](_0x598093){const _0x31c9ea=_0x1de525,{unitID:_0x1ffa92}=_0x598093,{collaboration:_0x34e451}=this[_0x31c9ea(0x123)][_0x31c9ea(0x254)](_0x1ffa92);if(_0x34e451['length']===0x0)return _0x598093;let _0x56b4ed=_0x41f479[_0x31c9ea(0x1f0)](_0x598093[_0x31c9ea(0x2ec)][0x0]);for(let _0x18a2bd=0x0;_0x18a2bd<_0x34e451[_0x31c9ea(0x16e)];_0x18a2bd++){const _0x1dfcca={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x34e451[_0x18a2bd][_0x31c9ea(0x1cb)],..._0x34e451[_0x18a2bd]['redoState']}},_0x4d7d40=this[_0x31c9ea(0x31c)][_0x31c9ea(0x1e8)](_0x56b4ed,_0x1dfcca,!0x1);if(_0x394d8b(_0x4d7d40))throw _0x4d7d40['error'];_0x56b4ed=_0x4d7d40[_0x31c9ea(0x11c)];}return{..._0x41f479[_0x31c9ea(0x1f0)](_0x598093),'mutations':[_0x56b4ed]};}['_transformHistoryAndStateStack'](_0x52fad9){const _0xb57813=_0x1de525,{unitID:_0x554cd3}=_0x52fad9,{history:_0x1274ab,collaboration:_0x16561f}=this[_0xb57813(0x123)][_0xb57813(0x254)](_0x554cd3);if(_0x1274ab[_0xb57813(0x16e)]===0x0&&_0x16561f['length']===0x0)return;const _0xb7cc2c=[],_0x413663=[];let _0x558636=_0x41f479[_0xb57813(0x1f0)](_0x52fad9[_0xb57813(0x2ec)][0x0]),_0x1c022f=_0x41f479['deepClone'](_0x52fad9['mutations'][0x0]);for(let _0x10a53c=_0x1274ab['length']-0x1;_0x10a53c>=0x0;_0x10a53c--){const _0x30c128={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1274ab[_0x10a53c][_0xb57813(0x1cb)],..._0x1274ab[_0x10a53c]['undoState']}},_0x6d46af={'id':_0xb57813(0x1ac),'params':{'unitId':_0x1274ab[_0x10a53c][_0xb57813(0x1cb)],..._0x1274ab[_0x10a53c]['redoState']}},_0x24b5a6=this[_0xb57813(0x31c)][_0xb57813(0x1e8)](_0x558636,_0x30c128,!0x1),_0x719266=this[_0xb57813(0x31c)][_0xb57813(0x1e8)](_0x1c022f,_0x6d46af,!0x1);if(_0x394d8b(_0x24b5a6))throw _0x24b5a6['error'];if(_0x394d8b(_0x719266))throw _0x719266[_0xb57813(0x2c6)];_0xb7cc2c[_0xb57813(0x1c7)]({..._0x1274ab[_0x10a53c],'undoState':_0x24b5a6[_0xb57813(0x231)]['params'],'redoState':_0x719266[_0xb57813(0x231)][_0xb57813(0x25f)]}),_0x558636=_0x24b5a6[_0xb57813(0x11c)],_0x1c022f=_0x719266[_0xb57813(0x11c)];}_0x558636=_0x41f479[_0xb57813(0x1f0)](_0x52fad9[_0xb57813(0x2ec)][0x0]),_0x1c022f=_0x41f479[_0xb57813(0x1f0)](_0x52fad9['mutations'][0x0]);for(let _0x55dcb7=_0x16561f[_0xb57813(0x16e)]-0x1;_0x55dcb7>=0x0;_0x55dcb7--){const _0x29ef4c={'id':_0xb57813(0x1ac),'params':{'unitId':_0x16561f[_0x55dcb7]['unitId'],..._0x16561f[_0x55dcb7][_0xb57813(0x240)]}},_0x2ebc32={'id':_0xb57813(0x1ac),'params':{'unitId':_0x16561f[_0x55dcb7][_0xb57813(0x1cb)],..._0x16561f[_0x55dcb7][_0xb57813(0x125)]}},_0x294f27=this['_transformService']['transformMutation'](_0x558636,_0x29ef4c,!0x1),_0x4e4097=this[_0xb57813(0x31c)][_0xb57813(0x1e8)](_0x1c022f,_0x2ebc32,!0x1);if(_0x394d8b(_0x294f27))throw _0x294f27[_0xb57813(0x2c6)];if(_0x394d8b(_0x4e4097))throw _0x4e4097[_0xb57813(0x2c6)];_0x413663[_0xb57813(0x1c7)]({..._0x16561f[_0x55dcb7],'undoState':_0x294f27[_0xb57813(0x231)][_0xb57813(0x25f)],'redoState':_0x4e4097[_0xb57813(0x231)]['params']}),_0x558636=_0x294f27[_0xb57813(0x11c)],_0x1c022f=_0x4e4097[_0xb57813(0x11c)];}this['_docStateChangeManagerService']['setStateCache'](_0x554cd3,{'history':_0xb7cc2c,'collaboration':_0x413663});}};oe=nn([Ce(0x0,_0x5c6996(_0x25bcbf)),Ce(0x1,_0x4d45d3),Ce(0x2,_0x5c6996(_0x508713))],oe);var rn=Object[_0x1de525(0x2eb)],on=(_0x34b830,_0x2bacbc,_0x21eaec,_0x55dff2)=>{const _0x100efb=_0x1de525;for(var _0x199da4=_0x55dff2>0x1?void 0x0:_0x55dff2?rn(_0x2bacbc,_0x21eaec):_0x2bacbc,_0x42a278=_0x34b830[_0x100efb(0x16e)]-0x1,_0x57d354;_0x42a278>=0x0;_0x42a278--)(_0x57d354=_0x34b830[_0x42a278])&&(_0x199da4=_0x57d354(_0x199da4)||_0x199da4);return _0x199da4;},st=(_0x4e6c95,_0x4c5210)=>(_0x10c668,_0x44b858)=>_0x4c5210(_0x10c668,_0x44b858,_0x4e6c95);let ae=class{constructor(_0x5cdb4d,_0x4148b9){const _0x5d677c=_0x1de525;this[_0x5d677c(0x14b)]=_0x5cdb4d,this['_transformService']=_0x4148b9;}[_0x1de525(0x1a5)](_0x2be8da){const _0xfb2be8=_0x1de525;var _0x1aff22;const _0x653e2=this[_0xfb2be8(0x14b)][_0xfb2be8(0x204)](_0x54ea0b),_0x129ccf=(_0x1aff22=_0x653e2[_0xfb2be8(0x13d)]())!=null?_0x1aff22:[];if(_0x129ccf[_0xfb2be8(0x16e)]===0x0)return;const _0x4ef384=_0x2be8da[_0xfb2be8(0x226)],_0x3201cf=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ef384,'actions':null,'textRanges':_0x129ccf}}],_0x4ca6e1=this['_transformService'][_0xfb2be8(0x1e0)](_0x2be8da,_0x3201cf);if(!_0x464946(_0x4ca6e1))throw _0x4ca6e1['error'];const _0x56a836=_0x4ca6e1[_0xfb2be8(0x231)][0x0][_0xfb2be8(0x25f)][_0xfb2be8(0x189)];Array['isArray'](_0x56a836)&&_0x56a836[_0xfb2be8(0x16e)]&&_0x653e2[_0xfb2be8(0x157)](_0x56a836,{'unitId':_0x4ef384,'subUnitId':_0x4ef384},!0x1);}};ae=on([st(0x0,_0x5c6996(_0x25bcbf)),st(0x1,_0x4d45d3)],ae);var an=Object[_0x1de525(0x2eb)],cn=(_0x57bbc9,_0x2143bb,_0x262b00,_0x1e6575)=>{for(var _0x58e4a4=_0x1e6575>0x1?void 0x0:_0x1e6575?an(_0x2143bb,_0x262b00):_0x2143bb,_0x168fa4=_0x57bbc9['length']-0x1,_0x299395;_0x168fa4>=0x0;_0x168fa4--)(_0x299395=_0x57bbc9[_0x168fa4])&&(_0x58e4a4=_0x299395(_0x58e4a4)||_0x58e4a4);return _0x58e4a4;},N=(_0x5862ce,_0x24594f)=>(_0x3d1546,_0x5dc0d9)=>_0x24594f(_0x3d1546,_0x5dc0d9,_0x5862ce);let ce=class extends _0x27b35c{constructor(_0x501932,_0x1894c7,_0x3bdafc,_0x174205,_0x4808e1,_0x400ba1,_0x233bfb,_0x4a4c8e){const _0x4f43c8=_0x1de525;super(),_(this,_0x4f43c8(0x265),new _0x1c5c36(_0x44d661[_0x4f43c8(0x1f5)])),(this[_0x4f43c8(0x123)]=_0x501932,this[_0x4f43c8(0x12a)]=_0x1894c7,this['_docTransformIMECacheService']=_0x3bdafc,this[_0x4f43c8(0x181)]=_0x174205,this[_0x4f43c8(0x2b6)]=_0x4808e1,this['_docSyncEditingCollabCursorService']=_0x400ba1,this[_0x4f43c8(0x2bf)]=_0x233bfb,this[_0x4f43c8(0x2bb)]=_0x4a4c8e,this[_0x4f43c8(0x2df)]());}[_0x1de525(0x2df)](){const _0x7abcad=_0x1de525;this['disposeWithMe'](this[_0x7abcad(0x12a)][_0x7abcad(0x1a3)]['subscribe'](_0x4367d8=>{const _0x46e6de=_0x7abcad,_0x222b9a=this[_0x46e6de(0x123)][_0x46e6de(0x2b4)][_0x46e6de(0x1aa)](_0x57cc4d=>{const _0x30ea4c=_0x46e6de;if(_0x57cc4d==null)return;const {unitId:_0x360a47,redoState:_0x565122,commandId:_0x3490f7}=_0x57cc4d;if(_0x360a47!==_0x4367d8['unitID'])return;const _0x520dd4={'id':_0x3490f7,'type':_0x35b953['MUTATION'],'params':{'unitId':_0x360a47,'actions':_0x565122[_0x30ea4c(0x1a1)],'textRanges':null}};_0x4367d8[_0x30ea4c(0x2e7)](_0x520dd4);});if(_0x4367d8[_0x46e6de(0x144)](_0x222b9a),_0x4367d8 instanceof _0x1c3eb9){const _0x114df4={'onTransformIME':_0x1062af=>this[_0x46e6de(0x319)][_0x46e6de(0x29b)](_0x1062af),'onTransformState':_0x1de533=>this[_0x46e6de(0x181)][_0x46e6de(0x31b)](_0x1de533),'onTransformSelections':_0x4356c8=>this[_0x46e6de(0x2b6)][_0x46e6de(0x1a5)](_0x4356c8),'onSyncEditingCollabCursor':_0x338e97=>this[_0x46e6de(0x1c0)][_0x46e6de(0x2f4)](_0x338e97),'onTransformRemoteChangesetByIMECache':_0x2f73ce=>this[_0x46e6de(0x319)]['transformRemoteChangeset'](_0x2f73ce),'onTransformRemoteChangesetByStateCache':_0x2c329f=>this[_0x46e6de(0x181)][_0x46e6de(0x25e)](_0x2c329f)};_0x4367d8[_0x46e6de(0x295)](_0x114df4);}}));}};ce=cn([N(0x0,_0x5c6996(_0x508713)),N(0x1,_0x5c6996(_0x16a7df)),N(0x2,_0x5c6996(re)),N(0x3,_0x5c6996(oe)),N(0x4,_0x5c6996(ae)),N(0x5,_0x5c6996(Fe)),N(0x6,_0x2ec900),N(0x7,_0x5c6996(_0x1ad900))],ce);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x6d4724,_0x21509c,_0x19c8d4,_0x24685b)=>{const _0x210dcd=_0x1de525;for(var _0x263aff=_0x24685b>0x1?void 0x0:_0x24685b?ln(_0x21509c,_0x19c8d4):_0x21509c,_0x555070=_0x6d4724[_0x210dcd(0x16e)]-0x1,_0x113055;_0x555070>=0x0;_0x555070--)(_0x113055=_0x6d4724[_0x555070])&&(_0x263aff=_0x113055(_0x263aff)||_0x263aff);return _0x263aff;},Ee=(_0x27c392,_0x3e0cfe)=>(_0x16c3ae,_0x35eb08)=>_0x3e0cfe(_0x16c3ae,_0x35eb08,_0x27c392);let we=class extends _0x27b35c{constructor(_0x5df868,_0xc77c44,_0x43ec28){const _0x1c4154=_0x1de525;super(),_(this,'_cachedData',new Map()),_(this,_0x1c4154(0x121),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x5df868,this[_0x1c4154(0x2c3)]=_0xc77c44,this[_0x1c4154(0x167)]=_0x43ec28);}[_0x1de525(0x287)](){this['_disabled']=!0x0;}[_0x1de525(0x1be)](){const _0x441c48=_0x1de525;this[_0x441c48(0x1bb)]=!0x1;}get[_0x1de525(0x198)](){return this['_saveTaskMap'];}[_0x1de525(0x13f)](){const _0x5e3898=_0x1de525;this[_0x5e3898(0x252)]()[_0x5e3898(0x23b)](()=>super[_0x5e3898(0x13f)]());}async[_0x1de525(0x13a)](_0x28d842){const _0x2f6117=_0x1de525;return this['_disabled']?null:this[_0x2f6117(0x2c3)][_0x2f6117(0x2fd)](_0x244215(_0x28d842));}async[_0x1de525(0x292)](_0x78b352,_0x4745af){const _0x266b5c=_0x1de525;return!!this[_0x266b5c(0x2c3)]['setItem'](_0x78b352,_0x4745af);}['updateOfflineData'](_0x2c73c0,_0x70a0c9,_0x5437a8,_0x41fb00){const _0x5c7278=_0x1de525,_0xd8a5f0=this[_0x5c7278(0x167)]['getCurrentRevOfUnit'](_0x2c73c0);this[_0x5c7278(0x1f1)][_0x5c7278(0x293)](_0x2c73c0,{'unitID':_0x2c73c0,'type':_0x70a0c9,'awaitingChangeset':_0x5437a8,'mutations':_0x41fb00,'rev':_0xd8a5f0}),this[_0x5c7278(0x121)][_0x5c7278(0x20c)](_0x2c73c0)||this[_0x5c7278(0x1c6)](_0x2c73c0);}['_scheduleSaving'](_0xd4a70d){const _0x105129=_0x1de525,_0x5e2e57=this[_0x105129(0x19d)]();_0x5e2e57===0x0?this[_0x105129(0x2a5)](_0xd4a70d):this[_0x105129(0x121)][_0x105129(0x293)](_0xd4a70d,setTimeout(()=>this[_0x105129(0x2a5)](_0xd4a70d),_0x5e2e57));}['_getSaveTimeout'](){const _0x5add20=_0x1de525;var _0x41c971;return(_0x41c971=this[_0x5add20(0x241)][_0x5add20(0x273)](_0x150080))!=null?_0x41c971:_0xd3d76a;}[_0x1de525(0x2a5)](_0x35eda2){const _0x1d0955=_0x1de525,_0x3aedda=this['_saveTaskMap'][_0x1d0955(0x204)](_0x35eda2);return _0x3aedda!==void 0x0&&window[_0x1d0955(0x2c0)](_0x3aedda),this[_0x1d0955(0x2c3)][_0x1d0955(0x153)](_0x244215(_0x35eda2),this['_cachedData'][_0x1d0955(0x204)](_0x35eda2))['then'](()=>this['_saveTaskMap'][_0x1d0955(0x29f)](_0x35eda2));}async[_0x1de525(0x252)](){const _0x32f712=_0x1de525,_0x2b833b=[];this[_0x32f712(0x121)][_0x32f712(0x1ce)]((_0x3e1eb1,_0x4e34d1)=>{const _0x198e7d=_0x32f712;window[_0x198e7d(0x2c0)](_0x3e1eb1),_0x2b833b[_0x198e7d(0x261)](this[_0x198e7d(0x2a5)](_0x4e34d1)[_0x198e7d(0x23b)](()=>{const _0x34e25d=_0x198e7d;this[_0x34e25d(0x121)]['delete'](_0x4e34d1);}));}),await Promise[_0x32f712(0x256)](_0x2b833b);}};we=_n([Ee(0x0,_0x4736f4),Ee(0x1,_0x5de8fb),Ee(0x2,_0x5c6996(_0x2e91e3))],we);class hn extends _0x5d5e25{constructor(){const _0x45cf42=_0x1de525;super(),_(this,_0x45cf42(0x158)),this[_0x45cf42(0x158)]=_0x443658(window,'popstate')['pipe'](_0x552e0d(this[_0x45cf42(0x1b6)]),_0x3e24d5(0x1),_0x587e52(void 0x0));}[_0x1de525(0x2b5)](_0x297d5a,_0xf345f2,_0x3ed6c5=!0x1){const _0x270618=_0x1de525,_0x3872c8=new URL(window['location'][_0x270618(0x131)]);_0x3872c8[_0x270618(0x300)][_0x270618(0x293)](_0x297d5a,_0xf345f2),_0x3ed6c5?window['history'][_0x270618(0x142)]('','',_0x3872c8[_0x270618(0x171)]()):window[_0x270618(0x2c9)][_0x270618(0x2d2)]('','',_0x3872c8[_0x270618(0x171)]());}[_0x1de525(0x12b)](_0x1fc7b4,_0x44bb8c=!0x1){const _0x135619=_0x1de525,_0x399950=new URL(window[_0x135619(0x2b7)][_0x135619(0x131)]);_0x399950[_0x135619(0x300)][_0x135619(0x29f)](_0x1fc7b4),_0x44bb8c?window[_0x135619(0x2c9)][_0x135619(0x142)]('','',_0x399950[_0x135619(0x171)]()):window[_0x135619(0x2c9)][_0x135619(0x2d2)]('','',_0x399950['toString']());}[_0x1de525(0x222)](_0x5b13c0){const _0x12f451=_0x1de525;var _0x40b071;return(_0x40b071=new URL(window[_0x12f451(0x2b7)][_0x12f451(0x131)])[_0x12f451(0x300)][_0x12f451(0x204)](_0x5b13c0))!=null?_0x40b071:void 0x0;}}var un=Object['defineProperty'],dn=Object[_0x1de525(0x2eb)],fn=(_0x46c806,_0x56db05,_0x1ea7d2)=>_0x56db05 in _0x46c806?un(_0x46c806,_0x56db05,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ea7d2}):_0x46c806[_0x56db05]=_0x1ea7d2,Sn=(_0x46be2c,_0x1c41f8,_0x2c08d8,_0x38e799)=>{const _0x43b1e1=_0x1de525;for(var _0x2e85dd=_0x38e799>0x1?void 0x0:_0x38e799?dn(_0x1c41f8,_0x2c08d8):_0x1c41f8,_0x20142a=_0x46be2c[_0x43b1e1(0x16e)]-0x1,_0x639691;_0x20142a>=0x0;_0x20142a--)(_0x639691=_0x46be2c[_0x20142a])&&(_0x2e85dd=_0x639691(_0x2e85dd)||_0x2e85dd);return _0x2e85dd;},Oe=(_0x402028,_0x339b49)=>(_0x4d5001,_0xdfb719)=>_0x339b49(_0x4d5001,_0xdfb719,_0x402028),mn=(_0x5ced05,_0x2799b8,_0x31b5d3)=>fn(_0x5ced05,_0x2799b8+'',_0x31b5d3);const In='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ae=class extends _0x34f9ca{constructor(_0x165c40=et,_0x107a6e,_0x436d2f,_0x1e6742){const _0x525443=_0x1de525;super(),this[_0x525443(0x268)]=_0x165c40,this[_0x525443(0x26c)]=_0x107a6e,this[_0x525443(0x14b)]=_0x436d2f,this['_configService']=_0x1e6742;const {..._0x39276e}=_0x25d7a3({},et,this[_0x525443(0x268)]);this['_configService'][_0x525443(0x154)](qi,_0x39276e);}[_0x1de525(0x15f)](){const _0x323b35=_0x1de525;this['_registerDependencies'](),this[_0x323b35(0x193)]();}[_0x1de525(0x312)](){const _0x43852f=_0x1de525;this[_0x43852f(0x1bc)]();}[_0x1de525(0x2bc)](){const _0x313b47=_0x1de525;var _0x57b716;const _0x1cc3f3=[[He],[ae],[re],[oe],[Fe],[Ut,{'useClass':hn}],[_0x2f6e6b,{'useClass':_0x144cd3}],[_0x24e892,{'useClass':we}],[se],[ce],[ne],[F],[Ne],[ie]];_0x13f4a4(this[_0x313b47(0x14b)],_0x30e5fb(_0x1cc3f3,(_0x57b716=this['_config'])==null?void 0x0:_0x57b716[_0x313b47(0x1e1)]));}[_0x1de525(0x1bc)](){const _0x44771d=_0x1de525;this[_0x44771d(0x144)](this['_renderManagerService'][_0x44771d(0x1db)](_0x5ef820[_0x44771d(0x185)],[Le])),this[_0x44771d(0x144)](this['_renderManagerService'][_0x44771d(0x1db)](_0x5ef820[_0x44771d(0x25a)],[Pe]));}[_0x1de525(0x193)](){const _0x17b073=_0x1de525;_0x1e35aa(this[_0x17b073(0x14b)],[[F],[se],[ce],[ne],[ie]]);}};mn(Ae,_0x1de525(0x224),In),Ae=Sn([_0x18f8a6(_0x6a685d),Oe(0x1,_0x16d4b6),Oe(0x2,_0x5c6996(_0x25bcbf)),Oe(0x3,_0x4736f4)],Ae);var vn=Object['getOwnPropertyDescriptor'],gn=(_0x14befd,_0x580506,_0x36b25c,_0x4753b0)=>{const _0x2553c9=_0x1de525;for(var _0x18dd70=_0x4753b0>0x1?void 0x0:_0x4753b0?vn(_0x580506,_0x36b25c):_0x580506,_0x145c55=_0x14befd[_0x2553c9(0x16e)]-0x1,_0x4d99ef;_0x145c55>=0x0;_0x145c55--)(_0x4d99ef=_0x14befd[_0x145c55])&&(_0x18dd70=_0x4d99ef(_0x18dd70)||_0x18dd70);return _0x18dd70;},z=(_0x9c40c5,_0x42ee41)=>(_0x343df1,_0x92d9e3)=>_0x42ee41(_0x343df1,_0x92d9e3,_0x9c40c5);let it=class extends _0x2918d0{constructor(_0x32652e,_0x270e23,_0x145830,_0x4f9d7c,_0xd9bdad){super(_0x32652e,_0x270e23,_0x145830,_0x4f9d7c,_0xd9bdad);}async['createSocket'](_0x3819ff){const _0x5674c8=_0x1de525,_0x162661=await this[_0x5674c8(0x2c8)](),_0x215280=this[_0x5674c8(0x25b)](_0x3819ff,_0x162661);return this[_0x5674c8(0x16c)](_0x215280);}['_createSocketURL'](_0x20cd35,_0x388dd8){const _0x51d893=_0x1de525,_0xfef29=typeof window>'u'?new URL(_0x20cd35):new URL(_0x20cd35,window[_0x51d893(0x2b7)]['origin']);_0xfef29[_0x51d893(0x300)][_0x51d893(0x293)](_0x51d893(0x305),_0x388dd8);const _0xe841bd=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x51d893(0x2b7)][_0x51d893(0x29c)]);return _0xe841bd['get'](_0x51d893(0x21c))&&_0xfef29[_0x51d893(0x300)][_0x51d893(0x293)](_0x51d893(0x21c),_0xe841bd['get'](_0x51d893(0x21c))),_0xfef29['toString']();}async['_getSessionTicket'](){const _0x58817d=_0x1de525;var _0x3c66d1,_0x58fade,_0x2cb5aa;const _0x3b5522=this['_configService'][_0x58817d(0x273)](_0x475903),_0x131b69=(_0x3c66d1=_0x3b5522==null?void 0x0:_0x3b5522[_0x58817d(0x29a)])!=null?_0x3c66d1:_0x5beca7;return(_0x2cb5aa=(_0x58fade=(await this['_httpService'][_0x58817d(0x204)](_0x131b69,{'headers':{'Content-Type':_0x58817d(0x162)}}))[_0x58817d(0x18a)])==null?void 0x0:_0x58fade['ticket'])!=null?_0x2cb5aa:'';}};it=gn([z(0x0,_0x5c6996(_0x25bcbf)),z(0x1,_0x5c6996(_0x3d7078)),z(0x2,_0x4736f4),z(0x3,_0x3d5d66),z(0x4,_0x2cbbd)],it);var Lt=(_0x3607cb=>(_0x3607cb[_0x3607cb['UNDEFINED']=0x0]=_0x1de525(0x18e),_0x3607cb[_0x3607cb['OK']=0x1]='OK',_0x3607cb[_0x3607cb[_0x1de525(0x2ab)]=0x2]=_0x1de525(0x2ab),_0x3607cb[_0x3607cb[_0x1de525(0x194)]=0x3]='PERMISSION_DENIED',_0x3607cb[_0x3607cb['NOT_FOUND']=0x4]=_0x1de525(0x209),_0x3607cb[_0x3607cb[_0x1de525(0x135)]=0x5]='UNAUTHENTICATED',_0x3607cb[_0x3607cb['ALREADY_EXISTS']=0x6]=_0x1de525(0x1f2),_0x3607cb[_0x3607cb['INVALID_ARGUMENT']=0x7]=_0x1de525(0x264),_0x3607cb[_0x3607cb[_0x1de525(0x11d)]=0x8]=_0x1de525(0x11d),_0x3607cb[_0x3607cb[_0x1de525(0x2e3)]=0x9]=_0x1de525(0x2e3),_0x3607cb[_0x3607cb[_0x1de525(0x294)]=0xa]=_0x1de525(0x294),_0x3607cb[_0x3607cb[_0x1de525(0x1d7)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x3607cb[_0x3607cb[_0x1de525(0x1f7)]=0xc]=_0x1de525(0x1f7),_0x3607cb[_0x3607cb[_0x1de525(0x249)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x3607cb[_0x3607cb[_0x1de525(0x150)]=0xe]=_0x1de525(0x150),_0x3607cb[_0x3607cb[_0x1de525(0x1b3)]=0x1389]=_0x1de525(0x1b3),_0x3607cb[_0x3607cb[_0x1de525(0x229)]=0x1771]=_0x1de525(0x229),_0x3607cb[_0x3607cb[_0x1de525(0x236)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3607cb[_0x3607cb[_0x1de525(0x146)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3607cb[_0x3607cb[_0x1de525(0x1d0)]=0x1b59]=_0x1de525(0x1d0),_0x3607cb[_0x3607cb[_0x1de525(0x1a2)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3607cb[_0x3607cb[_0x1de525(0x20e)]=0x1b5b]=_0x1de525(0x20e),_0x3607cb[_0x3607cb[_0x1de525(0x156)]=0x1b5c]=_0x1de525(0x156),_0x3607cb[_0x3607cb[_0x1de525(0x27e)]=0x1b5d]=_0x1de525(0x27e),_0x3607cb[_0x3607cb['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x1de525(0x2f3),_0x3607cb[_0x3607cb[_0x1de525(0x253)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3607cb[_0x3607cb[_0x1de525(0x15c)]=0x232a]=_0x1de525(0x15c),_0x3607cb[_0x3607cb[_0x1de525(0x207)]=0x232b]=_0x1de525(0x207),_0x3607cb[_0x3607cb[_0x1de525(0x1c5)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3607cb[_0x3607cb[_0x1de525(0x2f8)]=0x232d]=_0x1de525(0x2f8),_0x3607cb[_0x3607cb[_0x1de525(0x17a)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3607cb[_0x3607cb[_0x1de525(0x259)]=0x2712]=_0x1de525(0x259),_0x3607cb[_0x3607cb[_0x1de525(0x257)]=0x2713]=_0x1de525(0x257),_0x3607cb[_0x3607cb[_0x1de525(0x19f)]=0x2714]=_0x1de525(0x19f),_0x3607cb[_0x3607cb[_0x1de525(0x1cf)]=0x271a]=_0x1de525(0x1cf),_0x3607cb[_0x3607cb[_0x1de525(0x2de)]=0x271b]=_0x1de525(0x2de),_0x3607cb[_0x3607cb[_0x1de525(0x27a)]=0x271c]=_0x1de525(0x27a),_0x3607cb[_0x3607cb[_0x1de525(0x296)]=0x271d]=_0x1de525(0x296),_0x3607cb[_0x3607cb[_0x1de525(0x190)]=0x271e]=_0x1de525(0x190),_0x3607cb[_0x3607cb[_0x1de525(0x170)]=0x271f]=_0x1de525(0x170),_0x3607cb[_0x3607cb['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x1de525(0x2f0),_0x3607cb[_0x3607cb[_0x1de525(0x2e8)]=0x2af9]=_0x1de525(0x2e8),_0x3607cb[_0x3607cb['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x1de525(0x164),_0x3607cb[_0x3607cb[_0x1de525(0x174)]=0x2ee2]=_0x1de525(0x174),_0x3607cb[_0x3607cb['INVITE_CODE_REQUIRED']=0x2ee3]=_0x1de525(0x1d5),_0x3607cb[_0x3607cb['USER_NOT_INVITED_CODE']=0x2ee4]=_0x1de525(0x1ec),_0x3607cb[_0x3607cb[_0x1de525(0x2be)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x3607cb[_0x3607cb['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x1de525(0x215),_0x3607cb[_0x3607cb['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x1de525(0x1d8),_0x3607cb[_0x3607cb[_0x1de525(0x1fb)]=0x32cb]=_0x1de525(0x1fb),_0x3607cb[_0x3607cb['UNRECOGNIZED']=-0x1]=_0x1de525(0x132),_0x3607cb))(Lt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x225b65,_0x3b6b11,_0x532227,_0xee7f2a)=>{const _0x37592e=_0x1de525;for(var _0x48d0a9=_0xee7f2a>0x1?void 0x0:_0xee7f2a?pn(_0x3b6b11,_0x532227):_0x3b6b11,_0x29ca6f=_0x225b65[_0x37592e(0x16e)]-0x1,_0x444c59;_0x29ca6f>=0x0;_0x29ca6f--)(_0x444c59=_0x225b65[_0x29ca6f])&&(_0x48d0a9=_0x444c59(_0x48d0a9)||_0x48d0a9);return _0x48d0a9;},be=(_0x26baf4,_0x7161a3)=>(_0x4f521b,_0x3c6792)=>_0x7161a3(_0x4f521b,_0x3c6792,_0x26baf4);let nt=class extends _0x27b35c{constructor(_0xd31f44,_0x21bcc6,_0x3b12a7){const _0x47b752=_0x1de525;super(),this[_0x47b752(0x2fa)]=_0xd31f44,this[_0x47b752(0x1b9)]=_0x21bcc6,this['_configService']=_0x3b12a7;}async[_0x1de525(0x21e)](_0x216834,_0x1b6b62,_0x2c85e5,..._0x1f9602){const _0x21c47f=_0x1de525;var _0x347587,_0x35c3ef,_0x301e13,_0x4e5cf3;const _0x4426b3=this[_0x21c47f(0x2fa)][_0x21c47f(0x210)]();if(!_0x4426b3)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1d3010=((_0x347587=this[_0x21c47f(0x241)]['getConfig'](_0x16e5e3))!=null?_0x347587:_0x4a0382)+'/'+_0x216834+_0x21c47f(0x13e)+_0x1b6b62,_0x21843c=new URL(window[_0x21c47f(0x2b7)]['href']),_0x1c96ed={'scriptId':_0x216834,'runId':(_0x35c3ef=_0x21843c[_0x21c47f(0x300)][_0x21c47f(0x204)](_0x21c47f(0x21c)))!=null?_0x35c3ef:'','function':_0x1b6b62,'unitId':_0x4426b3[_0x21c47f(0x223)](),'argsOfFunction':JSON[_0x21c47f(0x1b8)](_0x1f9602),'invokeId':(_0x301e13=_0x2c85e5['invokeId'])!=null?_0x301e13:'','executionId':(_0x4e5cf3=_0x2c85e5[_0x21c47f(0x24f)])!=null?_0x4e5cf3:''};try{const _0x16584c=await this['_httpService']['post'](_0x1d3010,{'body':_0x1c96ed});return _0x16584c[_0x21c47f(0x18a)]['error']&&_0x16584c[_0x21c47f(0x18a)]['error'][_0x21c47f(0x247)]!==Lt['OK']?_0x21c47f(0x11f):_0x16584c[_0x21c47f(0x18a)][_0x21c47f(0x28f)];}catch{return _0x21c47f(0x11f);}}};nt=Cn([be(0x0,_0x38aa79),be(0x1,_0x5c6996(_0x3d7078)),be(0x2,_0x4736f4)],nt);const rt=0x7530,ot=_0x1de525(0x270);class Fn extends _0x27b35c{constructor(){const _0x3fc530=_0x1de525;super(),_(this,_0x3fc530(0x1a8),_0x39b37f()),_(this,_0x3fc530(0x22b),new Set()),_(this,_0x3fc530(0x304),new Map()),_(this,_0x3fc530(0x1b5),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x3fc530(0x1ad),new Map()),this[_0x3fc530(0x2a6)]();}[_0x1de525(0x13f)](){const _0x9fe113=_0x1de525;super[_0x9fe113(0x13f)](),this[_0x9fe113(0x15e)][_0x9fe113(0x1ce)]((_0x1af300,_0x62ca52)=>this['_removeClearOtherTimer'](_0x62ca52)),this[_0x9fe113(0x1b5)]&&window[_0x9fe113(0x1d1)](this['_heartbeatTimer']);}[_0x1de525(0x134)](_0x562f83){return this['_ensureSubject'](_0x562f83)['pipe'](_0x4d90cd());}[_0x1de525(0x316)](_0x2ea5a4){const _0x19c335=_0x1de525;this[_0x19c335(0x22b)][_0x19c335(0x217)]===0x0&&this['_scheduleHeartbeat'](),this[_0x19c335(0x22b)]['add'](_0x2ea5a4),this['_send']({'type':0x0,'memberID':this[_0x19c335(0x1a8)],'unitIDs':[_0x2ea5a4],'isForwarded':!0x1});}[_0x1de525(0x27d)](_0x42be6b){const _0x247eda=_0x1de525;this[_0x247eda(0x22b)][_0x247eda(0x29f)](_0x42be6b),this[_0x247eda(0x22b)][_0x247eda(0x217)]===0x0&&this[_0x247eda(0x1b5)]&&window[_0x247eda(0x1d1)](this[_0x247eda(0x1b5)]);}['_init'](){const _0x5467ac=_0x1de525;this['disposeWithMe'](_0x2685e5(_0x443658(window,_0x5467ac(0x126))['subscribe'](_0x5060b7=>{const _0x2b5bee=_0x5467ac;if(_0x5060b7['key']!==ot||!_0x5060b7['newValue'])return;const _0x499618=JSON['parse'](_0x5060b7[_0x2b5bee(0x24c)]);this[_0x2b5bee(0x2ff)](_0x499618);}))),window[_0x5467ac(0x318)](_0x5467ac(0x24b),()=>this[_0x5467ac(0x2a7)]({'type':0x1,'memberID':this[_0x5467ac(0x1a8)],'unitIDs':Array[_0x5467ac(0x2f2)](this['_selfUnitIDs'])}));}[_0x1de525(0x2ff)](_0x733ec8){const _0xe7d50f=_0x1de525;switch(_0x733ec8['type']){case 0x0:this[_0xe7d50f(0x205)](_0x733ec8);break;case 0x1:this[_0xe7d50f(0x274)](_0x733ec8);break;case 0x2:this[_0xe7d50f(0x251)](_0x733ec8);break;}}['_handleJoinEvent'](_0x1c4ca7){const _0x552894=_0x1de525,{unitIDs:_0x3f2242,memberID:_0x3bc065,isForwarded:_0x16c42f}=_0x1c4ca7;_0x3f2242[_0x552894(0x1ce)](_0x3978c4=>{const _0x1ea3f9=_0x552894;if(!_0x16c42f&&this[_0x1ea3f9(0x304)][_0x1ea3f9(0x20c)](_0x3978c4)&&this[_0x1ea3f9(0x188)](_0x3978c4)[_0x1ea3f9(0x239)](_0x4d8153[_0x1ea3f9(0x278)]),!this[_0x1ea3f9(0x304)][_0x1ea3f9(0x20c)](_0x3978c4)||!this['_unitOnClients'][_0x1ea3f9(0x204)](_0x3978c4)[_0x1ea3f9(0x20c)](_0x3bc065)){const _0x5c0564=this['_unitOnClients']['get'](_0x3978c4)||new Set();_0x5c0564[_0x1ea3f9(0x237)](_0x3bc065),this[_0x1ea3f9(0x304)][_0x1ea3f9(0x293)](_0x3978c4,_0x5c0564),this[_0x1ea3f9(0x2db)](_0x3bc065);}}),_0x16c42f||this['_send']({'type':0x0,'memberID':this[_0x552894(0x1a8)],'unitIDs':[...this[_0x552894(0x22b)]],'isForwarded':!0x0});}[_0x1de525(0x2db)](_0x21ba3c){const _0x32c858=_0x1de525;this[_0x32c858(0x2e5)](_0x21ba3c);const _0x4603a9=window[_0x32c858(0x1c9)](()=>{const _0x11f45d=_0x32c858;this[_0x11f45d(0x304)][_0x11f45d(0x1ce)](_0x3ab21a=>{const _0x161a4f=_0x11f45d;_0x3ab21a[_0x161a4f(0x29f)](_0x21ba3c);});},rt*0x2);this[_0x32c858(0x15e)][_0x32c858(0x293)](_0x21ba3c,_0x4603a9);}['_removeClearOtherTimer'](_0x2d2409){const _0x55bc17=_0x1de525;if(this[_0x55bc17(0x15e)][_0x55bc17(0x20c)](_0x2d2409)){const _0x340be5=this[_0x55bc17(0x15e)][_0x55bc17(0x204)](_0x2d2409);_0x340be5&&window[_0x55bc17(0x2c0)](_0x340be5),this[_0x55bc17(0x15e)][_0x55bc17(0x293)](_0x2d2409,null);}}[_0x1de525(0x274)](_0x2e74f0){const _0x4950cf=_0x1de525,{memberID:_0x451611,unitIDs:_0x222d54}=_0x2e74f0;_0x222d54[_0x4950cf(0x1ce)](_0x7a6ebf=>{const _0x5331ac=_0x4950cf;var _0x548bf2;const _0x2aa42f=this['_unitOnClients'][_0x5331ac(0x204)](_0x7a6ebf);_0x2aa42f&&(_0x2aa42f[_0x5331ac(0x29f)](_0x451611),(_0x548bf2=this[_0x5331ac(0x188)](_0x7a6ebf))==null||_0x548bf2[_0x5331ac(0x239)](_0x2aa42f[_0x5331ac(0x217)]===0x0?_0x4d8153['NO_OTHER_CLIENTS_EDITING']:_0x4d8153[_0x5331ac(0x278)]));}),this[_0x4950cf(0x2e5)](_0x451611);}[_0x1de525(0x251)](_0xb958e5){this['_scheduleClearOtherTimer'](_0xb958e5['memberID']);}[_0x1de525(0x2a7)](_0x396a13){const _0x1f4c1e=_0x1de525;localStorage['setItem'](ot,JSON[_0x1f4c1e(0x1b8)](_0x396a13));}['_scheduleHeartbeat'](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x4f02c8=_0x1f2d;this[_0x4f02c8(0x2a7)]({'type':0x2,'memberID':this[_0x4f02c8(0x1a8)]});},rt);}[_0x1de525(0x188)](_0x478f2b){const _0x1b4c25=_0x1de525;return this[_0x1b4c25(0x1ad)][_0x1b4c25(0x20c)](_0x478f2b)||this[_0x1b4c25(0x1ad)]['set'](_0x478f2b,new _0x1c5c36(_0x4d8153[_0x1b4c25(0x14a)])),this[_0x1b4c25(0x1ad)][_0x1b4c25(0x204)](_0x478f2b);}}export{it as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,se as DesktopCollaborationStatusDisplayController,Ut as IURLService,nt as RemoteUniscriptService,Xi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x14c74a=_0x3130;(function(_0x3d7953,_0x6ee895){const _0x18d80a=_0x3130,_0x22ad14=_0x3d7953();while(!![]){try{const _0x5a6b5f=parseInt(_0x18d80a(0x305))/0x1+-parseInt(_0x18d80a(0x282))/0x2*(parseInt(_0x18d80a(0x1ef))/0x3)+parseInt(_0x18d80a(0x1af))/0x4*(parseInt(_0x18d80a(0x318))/0x5)+parseInt(_0x18d80a(0x315))/0x6*(-parseInt(_0x18d80a(0x1f2))/0x7)+-parseInt(_0x18d80a(0x278))/0x8+-parseInt(_0x18d80a(0x291))/0x9+parseInt(_0x18d80a(0x1a5))/0xa;if(_0x5a6b5f===_0x6ee895)break;else _0x22ad14['push'](_0x22ad14['shift']());}catch(_0x1649ac){_0x22ad14['push'](_0x22ad14['shift']());}}}(_0x372b,0xb12b1));var xt=Object['defineProperty'],Bt=(_0x336d98,_0x1ae6a8,_0x48f96d)=>_0x1ae6a8 in _0x336d98?xt(_0x336d98,_0x1ae6a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48f96d}):_0x336d98[_0x1ae6a8]=_0x48f96d,_=(_0x3a462f,_0x360aec,_0x1fa235)=>Bt(_0x3a462f,typeof _0x360aec!=_0x14c74a(0x1b2)?_0x360aec+'':_0x360aec,_0x1fa235);import{jsx as _0x4f2853,jsxs as _0x476034}from'react/jsx-runtime';import{CollaborationStatus as _0x1db2c6,CollaborationSessionService as _0xcab9c2,CollaborationController as _0x43ceef,DataLoaderService as _0x29bc51,MemberService as _0x16fd64,SessionStatus as _0x3645c9,ILocalCacheService as _0x51b3f0,CollaborationUIEventService as _0x59464a,CollaborationUIEventId as _0x1cabf7,DocCollaborationEntity as _0x4a7a20,getLocalCacheKey as _0x4eded7,LOCAL_CACHE_INTERVAL as _0x45d479,LOCAL_CACHE_INTERVAL_KEY as _0x5bb4aa,UniverCollaborationClientPlugin as _0x171330,CollaborationSocketService as _0x575702,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1de0bf,DEFAULT_WS_SESSION_TICKET_URL as _0xb62b37,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xf440f5,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5c2877,UnitStatus as _0x325b8e}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5b784e,IUniverInstanceService as _0x185030,Inject as _0x4fff92,Injector as _0x59495a,Disposable as _0xdd38f3,createIdentifier as _0xbf487c,ILogService as _0x57ae13,ICommandService as _0x211890,Optional as _0x2885b5,RxDisposable as _0x270ee7,Workbook as _0x159289,DOC_RANGE_TYPE as _0xc89d24,debounce as _0x30190f,Rectangle as _0x1b1299,DisposableCollection as _0x47f4a6,toDisposable as _0x1799ad,UniverInstanceType as _0x555e27,generateRandomId as _0x4c97f0,COLORS as _0x5138dd,ColorKit as _0x47f5f9,ThemeService as _0x3ea1cc,fromEventSubject as _0x59105d,Tools as _0x4ee51e,CommandType as _0xbff3c6,IConfigService as _0x1b5145,ILocalStorageService as _0xd71f9,DependentOn as _0x4d8f58,Plugin as _0x18e775,merge as _0x31a5b7,registerDependencies as _0x43af18,mergeOverrideWithDependencies as _0xbabb7f,touchDependencies as _0x5c024d}from'@univerjs/core';import{useObservable as _0x1a3427,useDependency as _0xf9c270,IUIPartsService as _0x30838a,BuiltInUIPart as _0x4ccfef,connectInjector as _0x8bda7b,IBeforeCloseService as _0x50fe48,IMessageService as _0x2585ff,INotificationService as _0x3dc479}from'@univerjs/ui';import{BehaviorSubject as _0x1bb8bf,switchMap as _0x1e2746,of as _0xfd46f5,takeUntil as _0x2c2b7e,debounceTime as _0xa5c8bf,Subject as _0x4e6786,filter as _0x246502,merge as _0x579586,combineLatest as _0x1a0445,fromEvent as _0xf30f0,shareReplay as _0x56503d,mapTo as _0x4c898c,distinctUntilChanged as _0x30f71e}from'rxjs';import{Tooltip as _0x3cdb55,clsx as _0x31dc53,MessageType as _0x1b5003}from'@univerjs/design';import{forwardRef as _0x5bf49d,useRef as _0x70e6a1,createElement as _0x578e4d,useCallback as _0x7410c3}from'react';import{IRemoteInstanceService as _0x175921}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x423c46,RefRangeService as _0x533725,SetSelectionsOperation as _0xff015b,SheetsSelectionsService as _0xb3706c,EffectRefRangId as _0x5b3259,handleIRemoveRow as _0x39bf34,handleIRemoveCol as _0x5a28d0,handleMoveRange as _0x3e1128,handleInsertRow as _0x476616,handleInsertRangeMoveRight as _0x52829e,handleInsertRangeMoveDown as _0x14d53a,handleInsertCol as _0x304b25,handleDeleteRangeMoveUp as _0x45a3ca,handleDeleteRangeMoveLeft as _0xafd835,runRefRangeMutations as _0x4ada95}from'@univerjs/sheets';import{Shape as _0x633c93,Rect as _0x3e3c5c,getColor as _0xcb5b1c,RegularPolygon as _0x4fa96d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x8d714e,Vector2 as _0x5e8c29,SHEET_VIEWPORT_KEY as _0x1dc34d,IRenderManagerService as _0x34cabc}from'@univerjs/engine-render';import{ISocketService as _0x5f1b50,WebSocketService as _0x3f2ae3,HTTPService as _0x5ef031}from'@univerjs/network';import{IDocClipboardService as _0x2c3a8b,NodePositionConvertToCursor as _0x143235,NodePositionConvertToRectRange as _0x11a3f2,TEXT_RANGE_LAYER_INDEX as _0x34bfba,SetDocZoomRatioOperation as _0x4a5ce9,DocIMEInputManagerService as _0x25748e,DocStateChangeManagerService as _0x14b757}from'@univerjs/docs-ui';import{IImageIoService as _0x1028a6}from'@univerjs/drawing';import{ITransformService as _0x315634,CollaborationEvent as _0x5ab9e8,isTransformMutationFailure as _0x145735,isTransformMutationsWithChangesetSuccess as _0x20f632,RevisionService as _0x2679d0,ISnapshotServerService as _0xdb2b88}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4d4726,RichTextEditingMutation as _0x40d5e9,DocSelectionManagerService as _0x18393c,DocSkeletonManagerService as _0x5d68a9}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1eeaaf,serializeRangeWithSheet as _0x65f635}from'@univerjs/engine-formula';import{map as _0x47d210,filter as _0x4bda57,throttleTime as _0x4de0c1,takeUntil as _0x4aa1ef,switchMap as _0x2f7498}from'rxjs/operators';import{SheetSkeletonManagerService as _0x50e06b,getCoordByCell as _0x233511,getSheetObject as _0x3e250c}from'@univerjs/sheets-ui';var v=function(){const _0xf74fe7=_0x14c74a;return v=Object[_0xf74fe7(0x26f)]||function(_0x3cacab){const _0x5e7965=_0xf74fe7;for(var _0x4af85b,_0x1ef299=0x1,_0x3ccba5=arguments[_0x5e7965(0x2f1)];_0x1ef299<_0x3ccba5;_0x1ef299++){_0x4af85b=arguments[_0x1ef299];for(var _0x41e386 in _0x4af85b)Object['prototype'][_0x5e7965(0x159)][_0x5e7965(0x224)](_0x4af85b,_0x41e386)&&(_0x3cacab[_0x41e386]=_0x4af85b[_0x41e386]);}return _0x3cacab;},v['apply'](this,arguments);},ci=function(_0x8cb128,_0xe748d6){const _0x2b7e8a=_0x14c74a;var _0x31cde9={};for(var _0x11b019 in _0x8cb128)Object[_0x2b7e8a(0x28a)]['hasOwnProperty']['call'](_0x8cb128,_0x11b019)&&_0xe748d6[_0x2b7e8a(0x1b7)](_0x11b019)<0x0&&(_0x31cde9[_0x11b019]=_0x8cb128[_0x11b019]);if(_0x8cb128!=null&&typeof Object[_0x2b7e8a(0x293)]==_0x2b7e8a(0x25d)){for(var _0x598a56=0x0,_0x11b019=Object['getOwnPropertySymbols'](_0x8cb128);_0x598a56<_0x11b019[_0x2b7e8a(0x2f1)];_0x598a56++)_0xe748d6[_0x2b7e8a(0x1b7)](_0x11b019[_0x598a56])<0x0&&Object[_0x2b7e8a(0x28a)][_0x2b7e8a(0x1c5)][_0x2b7e8a(0x224)](_0x8cb128,_0x11b019[_0x598a56])&&(_0x31cde9[_0x11b019[_0x598a56]]=_0x8cb128[_0x11b019[_0x598a56]]);}return _0x31cde9;},ke=_0x5bf49d(function(_0x241ee9,_0x4c59dd){const _0x4ab1cf=_0x14c74a;var _0x16e788=_0x241ee9[_0x4ab1cf(0x35e)],_0xff7ba4=_0x241ee9['id'],_0x33e56a=_0x241ee9['className'],_0x2f32a9=_0x241ee9[_0x4ab1cf(0x172)],_0x43d1f6=ci(_0x241ee9,[_0x4ab1cf(0x35e),'id',_0x4ab1cf(0x252),_0x4ab1cf(0x172)]),_0x1e8c33='univerjs-icon\x20univerjs-icon-'[_0x4ab1cf(0x30a)](_0xff7ba4,'\x20')[_0x4ab1cf(0x30a)](_0x33e56a||'')['trim'](),_0x340ea6=_0x70e6a1('_'[_0x4ab1cf(0x30a)](hi()));return Rt(_0x16e788,''[_0x4ab1cf(0x30a)](_0xff7ba4),{'defIds':_0x16e788['defIds'],'idSuffix':_0x340ea6[_0x4ab1cf(0x1bc)]},v({'ref':_0x4c59dd,'className':_0x1e8c33},_0x43d1f6),_0x2f32a9);});function Rt(_0x49be64,_0x1a9fd9,_0x515bab,_0xab3799,_0x10e377){const _0x49a7c2=_0x14c74a;return _0x578e4d(_0x49be64['tag'],v(v({'key':_0x1a9fd9},li(_0x49be64,_0x515bab,_0x10e377)),_0xab3799),(_i(_0x49be64,_0x515bab)[_0x49a7c2(0x21f)]||[])[_0x49a7c2(0x205)](function(_0x5772e4,_0x566a84){const _0x51d455=_0x49a7c2;return Rt(_0x5772e4,''[_0x51d455(0x30a)](_0x1a9fd9,'-')['concat'](_0x49be64[_0x51d455(0x247)],'-')[_0x51d455(0x30a)](_0x566a84),_0x515bab,void 0x0,_0x10e377);}));}function li(_0xec4000,_0x4044ac,_0x52f488){const _0x284736=_0x14c74a;var _0x34a220=v({},_0xec4000[_0x284736(0x321)]);_0x52f488!=null&&_0x52f488[_0x284736(0x2aa)]&&_0x34a220[_0x284736(0x329)]==='colorChannel1'&&(_0x34a220[_0x284736(0x329)]=_0x52f488[_0x284736(0x2aa)]),_0xec4000[_0x284736(0x247)]===_0x284736(0x29b)&&_0x34a220['id']&&(_0x34a220['id']=_0x34a220['id']+_0x4044ac[_0x284736(0x16c)]),Object['entries'](_0x34a220)[_0x284736(0x280)](function(_0x226356){const _0x24c420=_0x284736;var _0x4873ca=_0x226356[0x0],_0x5836b4=_0x226356[0x1];_0x4873ca===_0x24c420(0x29b)&&typeof _0x5836b4==_0x24c420(0x303)&&(_0x34a220[_0x4873ca]=_0x5836b4[_0x24c420(0x2ba)](/url\(#(.*)\)/,_0x24c420(0x29e)[_0x24c420(0x30a)](_0x4044ac[_0x24c420(0x16c)],')')));});var _0x23e756=_0x4044ac[_0x284736(0x18c)];return!_0x23e756||_0x23e756[_0x284736(0x2f1)]===0x0||(_0xec4000[_0x284736(0x247)]===_0x284736(0x235)&&_0x34a220[_0x284736(0x317)]&&(_0x34a220['xlink:href']=_0x34a220[_0x284736(0x317)]+_0x4044ac[_0x284736(0x16c)]),Object[_0x284736(0x1f6)](_0x34a220)['forEach'](function(_0x36bd19){const _0x55cbfd=_0x284736;var _0x30d9f2=_0x36bd19[0x0],_0x384795=_0x36bd19[0x1];typeof _0x384795=='string'&&(_0x34a220[_0x30d9f2]=_0x384795[_0x55cbfd(0x2ba)](/url\(#(.*)\)/,_0x55cbfd(0x29e)[_0x55cbfd(0x30a)](_0x4044ac[_0x55cbfd(0x16c)],')')));})),_0x34a220;}function _i(_0x119123,_0x2b757e){const _0x81f51a=_0x14c74a;var _0x334f7a,_0x4882a8=_0x2b757e['defIds'];return!_0x4882a8||_0x4882a8[_0x81f51a(0x2f1)]===0x0?_0x119123:_0x119123[_0x81f51a(0x247)]===_0x81f51a(0x25a)&&(!((_0x334f7a=_0x119123[_0x81f51a(0x21f)])===null||_0x334f7a===void 0x0)&&_0x334f7a[_0x81f51a(0x2f1)])?v(v({},_0x119123),{'children':_0x119123[_0x81f51a(0x21f)][_0x81f51a(0x205)](function(_0x19bf3e){const _0x352360=_0x81f51a;return typeof _0x19bf3e[_0x352360(0x321)]['id']==_0x352360(0x303)&&_0x4882a8&&_0x4882a8[_0x352360(0x2c8)](_0x19bf3e[_0x352360(0x321)]['id'])?v(v({},_0x19bf3e),{'attrs':v(v({},_0x19bf3e[_0x352360(0x321)]),{'id':_0x19bf3e['attrs']['id']+_0x2b757e[_0x352360(0x16c)]})}):_0x19bf3e;})}):_0x119123;}function hi(){const _0x8d883a=_0x14c74a;return Math['random']()[_0x8d883a(0x223)](0x24)[_0x8d883a(0x271)](0x2,0x8);}ke[_0x14c74a(0x176)]=_0x14c74a(0x31c);var ui={'tag':_0x14c74a(0x32b),'attrs':{'xmlns':_0x14c74a(0x2c6),'fill':_0x14c74a(0x1f4),'viewBox':_0x14c74a(0x310),'width':_0x14c74a(0x228),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x14c74a(0x204)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x14c74a(0x2a6),'strokeLinecap':_0x14c74a(0x212),'strokeLinejoin':_0x14c74a(0x212),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x14c74a(0x33c),'attrs':{'id':_0x14c74a(0x327)},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x14c74a(0x327)]},Dt=_0x5bf49d(function(_0x30d412,_0xb3bfa0){const _0x49876d=_0x14c74a;return _0x578e4d(ke,Object[_0x49876d(0x26f)]({},_0x30d412,{'id':'off-line-icon','ref':_0xb3bfa0,'icon':ui}));});Dt[_0x14c74a(0x176)]=_0x14c74a(0x163);var di={'tag':_0x14c74a(0x32b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x14c74a(0x274),'width':_0x14c74a(0x228),'height':_0x14c74a(0x228)},'children':[{'tag':'g','attrs':{'clipPath':_0x14c74a(0x173)},'children':[{'tag':_0x14c74a(0x297),'attrs':{'stroke':_0x14c74a(0x23b),'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':_0x14c74a(0x212),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x14c74a(0x25a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x14c74a(0x297),'attrs':{'fill':_0x14c74a(0x260),'d':_0x14c74a(0x21b),'transform':_0x14c74a(0x2cb)}}]}]}],'defIds':[_0x14c74a(0x2d6)]},Nt=_0x5bf49d(function(_0x269de4,_0x4d5388){const _0x354a86=_0x14c74a;return _0x578e4d(ke,Object[_0x354a86(0x26f)]({},_0x269de4,{'id':_0x354a86(0x337),'ref':_0x4d5388,'icon':di}));});Nt[_0x14c74a(0x176)]=_0x14c74a(0x2bf);function fi(_0x38305f){const _0x2889d6=_0x14c74a;switch(_0x38305f){case _0x1db2c6['OFFLINE']:return'collabStatus.offline';case _0x1db2c6[_0x2889d6(0x1f3)]:return _0x2889d6(0x300);case _0x1db2c6[_0x2889d6(0x358)]:return'collabStatus.fetchMiss';case _0x1db2c6['NOT_COLLAB']:return _0x2889d6(0x325);case _0x1db2c6[_0x2889d6(0x2c1)]:case _0x1db2c6[_0x2889d6(0x31f)]:return _0x2889d6(0x261);case _0x1db2c6['SYNCED']:case _0x1db2c6['PENDING']:return _0x2889d6(0x330);}}function Si(_0x43f5e2){const _0x13fc5e=_0x14c74a,{status$:_0x1c38ba}=_0x43f5e2,_0xdedd48=_0x1a3427(_0x1c38ba,_0x1db2c6['NOT_COLLAB']),_0xeb2d53=_0xf9c270(_0x5b784e),_0x5bc6c5=_0xf9c270(_0xcab9c2),_0x2072e8=_0xdedd48!==_0x1db2c6[_0x13fc5e(0x27a)],_0x5e2a79=_0xeb2d53['t'](fi(_0xdedd48)),_0x52cc80=_0x2072e8?_0x4f2853(Nt,{}):_0x4f2853(Dt,{}),_0x47b1bd=_0x7410c3(()=>{const _0x1b76e4=_0x13fc5e;_0x2072e8||_0x5bc6c5[_0x1b76e4(0x34b)]();},[_0x2072e8,_0x5bc6c5]);function _0x346ce9(){const _0x448456=_0x13fc5e;return _0x476034(_0x448456(0x1ce),{'className':'univer-flex\x20univer-items-center','onClick':_0x47b1bd,'children':[_0x4f2853(_0x448456(0x1ce),{'className':_0x31dc53(_0x448456(0x298),{'univer-text-green-500':_0x2072e8,'univer-text-red-500':!_0x2072e8}),'children':_0x52cc80}),_0x4f2853(_0x448456(0x1ce),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5e2a79})]});}return _0x2072e8?_0x346ce9():_0x4f2853(_0x3cdb55,{'title':_0xeb2d53['t']('collab-client.tooltip.reconnect'),'children':_0x346ce9()});}var mi=Object['getOwnPropertyDescriptor'],Ii=(_0xc32901,_0x513144,_0x1f6b0f,_0x3fa972)=>{const _0x37e59e=_0x14c74a;for(var _0x10abb6=_0x3fa972>0x1?void 0x0:_0x3fa972?mi(_0x513144,_0x1f6b0f):_0x513144,_0x59d44c=_0xc32901[_0x37e59e(0x2f1)]-0x1,_0x303394;_0x59d44c>=0x0;_0x59d44c--)(_0x303394=_0xc32901[_0x59d44c])&&(_0x10abb6=_0x303394(_0x10abb6)||_0x10abb6);return _0x10abb6;},q=(_0x54231e,_0x2e85fc)=>(_0x5205e7,_0x167ed2)=>_0x2e85fc(_0x5205e7,_0x167ed2,_0x54231e);let se=class extends _0xdd38f3{constructor(_0xa176b7,_0x11a5e4,_0x219b5d,_0x48500e){const _0x18787e=_0x14c74a;super(),_(this,_0x18787e(0x29c),new _0x1bb8bf(_0x1db2c6[_0x18787e(0x1fb)])),(this[_0x18787e(0x250)]=_0xa176b7,this[_0x18787e(0x24c)]=_0x11a5e4,this['_collaborationController']=_0x219b5d,this[_0x18787e(0x1ca)]=_0x48500e,this['_initStatusComponent'](),this[_0x18787e(0x1d4)]());}[_0x14c74a(0x1d4)](){const _0x8b7039=_0x14c74a;this[_0x8b7039(0x2d1)](this[_0x8b7039(0x250)][_0x8b7039(0x2eb)][_0x8b7039(0x184)](_0x1e2746(()=>{const _0xa567b0=_0x8b7039,_0x3be779=this[_0xa567b0(0x250)][_0xa567b0(0x1c7)]();return _0x3be779?this[_0xa567b0(0x1ad)]['getCollabEntity$'](_0x3be779['getUnitId']()):_0xfd46f5(null);}),_0x1e2746(_0x4fd4f1=>_0x4fd4f1?_0x4fd4f1[_0x8b7039(0x16e)]:_0xfd46f5(_0x1db2c6[_0x8b7039(0x1fb)])))['subscribe'](_0x166bd5=>{const _0x238470=_0x8b7039;this[_0x238470(0x29c)][_0x238470(0x31e)](_0x166bd5);}));}[_0x14c74a(0x2cd)](){const _0x1e4a5d=_0x14c74a;this[_0x1e4a5d(0x2d1)](this[_0x1e4a5d(0x1ca)][_0x1e4a5d(0x206)](_0x4ccfef[_0x1e4a5d(0x1ab)],()=>_0x8bda7b(vi({'status$':this[_0x1e4a5d(0x29c)]['asObservable']()}),this[_0x1e4a5d(0x24c)])));}};se=Ii([q(0x0,_0x185030),q(0x1,_0x4fff92(_0x59495a)),q(0x2,_0x4fff92(_0x43ceef)),q(0x3,_0x30838a)],se);function vi(_0x4d8744){const {status$:_0x5dd9b5}=_0x4d8744;return function(){return _0x4f2853(Si,{'status$':_0x5dd9b5});};}const Ut=_0xbf487c('uni.network.url-service');var gi=Object['getOwnPropertyDescriptor'],pi=(_0x27c02e,_0x27edda,_0x1c7332,_0x378fa8)=>{for(var _0xc80a45=_0x378fa8>0x1?void 0x0:_0x378fa8?gi(_0x27edda,_0x1c7332):_0x27edda,_0x2cae5b=_0x27c02e['length']-0x1,_0x3a404c;_0x2cae5b>=0x0;_0x2cae5b--)(_0x3a404c=_0x27c02e[_0x2cae5b])&&(_0xc80a45=_0x3a404c(_0xc80a45)||_0xc80a45);return _0xc80a45;},G=(_0x4e24c7,_0x15bef2)=>(_0x3ab280,_0x218ab7)=>_0x15bef2(_0x3ab280,_0x218ab7,_0x4e24c7);let ie=class extends _0x270ee7{constructor(_0x50ac2c,_0x54896a,_0x2c3729,_0x4cbf66,_0x4ba759){const _0xcfe894=_0x14c74a;super(),this[_0xcfe894(0x33d)]=_0x50ac2c,this[_0xcfe894(0x189)]=_0x54896a,this[_0xcfe894(0x29f)]=_0x2c3729,this[_0xcfe894(0x1e6)]=_0x4cbf66,_0x4ba759?_0x4ba759==null||_0x4ba759[_0xcfe894(0x1e5)]()[_0xcfe894(0x281)](()=>this['_init']()):(this[_0xcfe894(0x189)][_0xcfe894(0x28f)](_0xcfe894(0x289),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x14c74a(0x270)](){const _0x175914=_0x14c74a,_0x446e9c=this[_0x175914(0x33d)][_0x175914(0x16d)](_0x175914(0x1a8)),_0x42c64d=this[_0x175914(0x33d)]['getParam'](_0x175914(0x1eb)),_0x202789=this[_0x175914(0x33d)]['getParam'](_0x175914(0x1d6));if(!_0x446e9c||!_0x42c64d){this[_0x175914(0x189)][_0x175914(0x28f)](_0x175914(0x289),_0x175914(0x20e));return;}const _0x493f1d=await this[_0x175914(0x1e6)][_0x175914(0x211)](_0x446e9c,Number(_0x42c64d),_0x202789);_0x493f1d&&_0x493f1d instanceof _0x159289&&this[_0x175914(0x23c)](_0x493f1d);}async['_setupSubUnitSync'](_0xb8a070){const _0x2974aa=_0x14c74a;await this[_0x2974aa(0x2f5)](_0xb8a070),_0xb8a070[_0x2974aa(0x1f8)]['pipe'](_0x2c2b7e(this[_0x2974aa(0x1bf)]))[_0x2974aa(0x1c9)](_0x37919f=>{const _0x2cda4b=_0x2974aa;_0x37919f&&this[_0x2cda4b(0x1e9)](_0x37919f);}),this[_0x2974aa(0x33d)]['urlChange$'][_0x2974aa(0x184)](_0x2c2b7e(this[_0x2974aa(0x1bf)]))[_0x2974aa(0x1c9)](()=>this['_updateSubUnitFromURLParams'](_0xb8a070));}[_0x14c74a(0x1e9)](_0x420a8e,_0x53312f=!0x1){const _0x436684=_0x14c74a,_0x463498=this[_0x436684(0x33d)][_0x436684(0x16d)](_0x436684(0x1d6));_0x420a8e['getSheetId']()!==_0x463498&&this[_0x436684(0x33d)][_0x436684(0x349)](_0x436684(0x1d6),_0x420a8e[_0x436684(0x2a8)](),_0x53312f);}async[_0x14c74a(0x2f5)](_0x194661){const _0x1dd6d9=_0x14c74a;var _0x254ed2;const _0x2bda24=this[_0x1dd6d9(0x33d)][_0x1dd6d9(0x16d)](_0x1dd6d9(0x1d6));if(!_0x2bda24||!_0x194661[_0x1dd6d9(0x25c)](_0x2bda24)){const _0x2077dd=_0x194661['getUnhiddenWorksheets']()[0x0],_0x5cf7da=_0x194661[_0x1dd6d9(0x25c)](_0x2077dd);if(!_0x5cf7da)return;this['_updateURLWithCurrentState'](_0x5cf7da,!0x0),await this[_0x1dd6d9(0x29f)]['executeCommand'](_0x423c46['id'],{'unitId':_0x194661[_0x1dd6d9(0x20f)](),'subUnitId':_0x2077dd});return;}((_0x254ed2=_0x194661[_0x1dd6d9(0x304)]())==null?void 0x0:_0x254ed2['getSheetId']())!==_0x2bda24&&await this['_commandService'][_0x1dd6d9(0x203)](_0x423c46['id'],{'unitId':_0x194661[_0x1dd6d9(0x20f)](),'subUnitId':_0x2bda24});}};ie=pi([G(0x0,Ut),G(0x1,_0x57ae13),G(0x2,_0x211890),G(0x3,_0x4fff92(_0x29bc51)),G(0x4,_0x2885b5(_0x175921))],ie);var Ci=Object[_0x14c74a(0x192)],Ei=(_0x170cc8,_0x32b756,_0x55c7c7,_0x33db38)=>{const _0x298f29=_0x14c74a;for(var _0x1c2303=_0x33db38>0x1?void 0x0:_0x33db38?Ci(_0x32b756,_0x55c7c7):_0x32b756,_0x4c3c4b=_0x170cc8[_0x298f29(0x2f1)]-0x1,_0x719d7c;_0x4c3c4b>=0x0;_0x4c3c4b--)(_0x719d7c=_0x170cc8[_0x4c3c4b])&&(_0x1c2303=_0x719d7c(_0x1c2303)||_0x1c2303);return _0x1c2303;},Je=(_0x1152f1,_0xf731a7)=>(_0x1c2afa,_0x16e33f)=>_0xf731a7(_0x1c2afa,_0x16e33f,_0x1152f1);let Ne=class extends _0x270ee7{constructor(_0x42368b,_0x104a93){const _0x385348=_0x14c74a;super(),this[_0x385348(0x22c)]=_0x42368b,this[_0x385348(0x2ad)]=_0x104a93,this[_0x385348(0x270)]();}[_0x14c74a(0x270)](){const _0x1c81d4=_0x14c74a,_0x4c2a25=this;this['disposeWithMe'](this[_0x1c81d4(0x22c)][_0x1c81d4(0x1cb)]({'onBeforePasteImage':async _0xbcfc10=>{const _0x2ce23e=_0x1c81d4,_0x1f3f63=await _0x4c2a25[_0x2ce23e(0x2ad)]['saveImage'](_0xbcfc10);return _0x1f3f63?{'source':_0x1f3f63[_0x2ce23e(0x193)],'imageSourceType':_0x1f3f63[_0x2ce23e(0x268)]}:null;}}));}};Ne=Ei([Je(0x0,_0x2c3a8b),Je(0x1,_0x1028a6)],Ne);const Ze=['purple.300',_0x14c74a(0x1d2),'green.600',_0x14c74a(0x19d),_0x14c74a(0x17a),'yellow.400'];class He extends _0xdd38f3{constructor(){const _0x58493c=_0x14c74a;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x58493c(0x302),0x0);}[_0x14c74a(0x2d7)](_0xcf2bd9){const _0x515cd2=_0x14c74a;if(this[_0x515cd2(0x1ac)][_0x515cd2(0x21c)](_0xcf2bd9))return this['_assignedColors'][_0x515cd2(0x352)](_0xcf2bd9);const _0x349834=Ze[this[_0x515cd2(0x302)]];return this[_0x515cd2(0x302)]=(this['_colorIndex']+0x1)%Ze[_0x515cd2(0x2f1)],this['_assignedColors'][_0x515cd2(0x314)](_0xcf2bd9,_0x349834),_0x349834;}}function Mt(_0x2439c4){const _0x3fc98d=_0x14c74a;let _0x99e367='';for(const _0x5b4660 of _0x2439c4){const {startOffset:_0x33ca05,endOffset:_0x4cf322,isActive:_0x1d8c0f,rangeType:_0x3bc3d8,segmentId:_0x1c7d8c,segmentPage:_0x43513b}=_0x5b4660;_0x99e367[_0x3fc98d(0x2f1)]&&(_0x99e367+=','),_0x99e367+=_0x33ca05+':'+_0x4cf322+':'+(_0x1d8c0f?'1':'0')+':'+_0x3bc3d8+':'+_0x1c7d8c+':'+_0x43513b;}return _0x99e367;}function Oi(_0x5ba716){const _0x1871b7=_0x14c74a,_0x35718b=_0x5ba716[_0x1871b7(0x299)](','),_0x6302d0=[];for(const _0xe50c2c of _0x35718b){const [_0x210765,_0x509570,_0x3ccab5,_0x28d734,_0x2ea04d,_0x63956d]=_0xe50c2c[_0x1871b7(0x299)](':');_0x6302d0[_0x1871b7(0x2b7)]({'startOffset':Number(_0x210765),'endOffset':Number(_0x509570),'collapsed':_0x210765===_0x509570,'isActive':_0x3ccab5==='1','rangeType':_0x28d734===_0xc89d24[_0x1871b7(0x2bd)]?_0xc89d24[_0x1871b7(0x2bd)]:_0xc89d24[_0x1871b7(0x22a)],'segmentId':typeof _0x2ea04d==_0x1871b7(0x303)?String(_0x2ea04d):'','segmentPage':Number(_0x63956d!=null?_0x63956d:-0x1)});}return _0x6302d0[_0x1871b7(0x1e7)](_0x381769=>_0x381769['isActive'])||(_0x6302d0[0x0][_0x1871b7(0x27d)]=!0x0),_0x6302d0;}class Fe extends _0x270ee7{constructor(){const _0x4b7392=_0x14c74a;super(...arguments),_(this,_0x4b7392(0x248),new _0x1bb8bf(null)),_(this,_0x4b7392(0x25b),this[_0x4b7392(0x248)][_0x4b7392(0x2fe)]());}[_0x14c74a(0x32c)](_0x51176c){const _0x16938b=_0x14c74a,{unitID:_0x154536,memberID:_0x6c9d56,textRanges:_0x29719a}=_0x51176c,_0x35daf8=Mt(_0x29719a);if(_0x35daf8==='')return;const _0x5b8b1d={'unitID':_0x154536,'memberID':_0x6c9d56,'selection':_0x35daf8};this['_collabCursorState$'][_0x16938b(0x31e)](_0x5b8b1d);}}var bi=Object['getOwnPropertyDescriptor'],Ti=(_0x3e3db6,_0x26f14d,_0x341f37,_0x58f9cc)=>{const _0x5e8c80=_0x14c74a;for(var _0x30fb46=_0x58f9cc>0x1?void 0x0:_0x58f9cc?bi(_0x26f14d,_0x341f37):_0x26f14d,_0x1f4c90=_0x3e3db6[_0x5e8c80(0x2f1)]-0x1,_0x2020be;_0x1f4c90>=0x0;_0x1f4c90--)(_0x2020be=_0x3e3db6[_0x1f4c90])&&(_0x30fb46=_0x2020be(_0x30fb46)||_0x30fb46);return _0x30fb46;},P=(_0x32b811,_0xc7c9ee)=>(_0x105cd8,_0xe7f8a9)=>_0xc7c9ee(_0x105cd8,_0xe7f8a9,_0x32b811);const Ri=0x12c,Di=0x64;let Ue=class extends _0x270ee7{constructor(_0x50e383,_0x2fd96c,_0x45b3fd,_0x54ad7a,_0x3fcd78,_0x370937,_0x4088b9,_0x55ac02,_0x513c82){const _0x4456d6=_0x14c74a;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x1bb8bf(new Map())),_(this,'cursorInfo$',this[_0x4456d6(0x164)][_0x4456d6(0x2fe)]()),_(this,_0x4456d6(0x2f4),new _0x1bb8bf([])),_(this,'roomMembers$',this[_0x4456d6(0x2f4)][_0x4456d6(0x184)](_0xa5c8bf(Ri))),_(this,'_updateLocalCursor',_0x30190f(_0x93025=>{const _0x449464=_0x4456d6,_0x52de18={'eventID':_0x5ab9e8[_0x449464(0x178)],'data':{'unitID':this['unitID'],'memberID':this[_0x449464(0x253)]['getMemberID'](),'selection':Mt(_0x93025)}};this[_0x449464(0x253)][_0x449464(0x2a3)](_0x52de18,this[_0x449464(0x2a2)]);},Di)),(this[_0x4456d6(0x2a2)]=_0x50e383,this['_session']=_0x2fd96c,this['_injector']=_0x45b3fd,this[_0x4456d6(0x166)]=_0x54ad7a,this[_0x4456d6(0x18a)]=_0x3fcd78,this['_syncEditingCollabCursorService']=_0x370937,this[_0x4456d6(0x1ed)]=_0x4088b9,this['_univerInstanceService']=_0x55ac02,this[_0x4456d6(0x29f)]=_0x513c82);}get[_0x14c74a(0x230)](){const _0x5bcbb6=_0x14c74a;return this[_0x5bcbb6(0x164)][_0x5bcbb6(0x1a6)]();}get[_0x14c74a(0x27c)](){const _0x50632b=_0x14c74a;return this[_0x50632b(0x2f4)][_0x50632b(0x1a6)]();}[_0x14c74a(0x26a)](){const _0x499690=_0x14c74a;super['dispose'](),this[_0x499690(0x164)][_0x499690(0x31e)](new Map()),this[_0x499690(0x164)][_0x499690(0x296)](),this[_0x499690(0x2f4)]['next']([]),this['_roomMembers$'][_0x499690(0x296)]();}[_0x14c74a(0x2e5)](){const _0x265f77=_0x14c74a;this['_init']||(this[_0x265f77(0x270)]=!0x0,this[_0x265f77(0x253)]['sessionStatus$']['pipe'](_0x2c2b7e(this[_0x265f77(0x1bf)]))['subscribe'](_0x3c5d75=>{const _0x1be4ac=_0x265f77;_0x3c5d75===_0x3645c9[_0x1be4ac(0x246)]?this['_toggleOnline']():this[_0x1be4ac(0x15f)]();}),this[_0x265f77(0x253)][_0x265f77(0x28b)][_0x265f77(0x184)](_0x2c2b7e(this[_0x265f77(0x1bf)]))[_0x265f77(0x1c9)](_0x5c6949=>{const _0x4a5b01=_0x265f77,_0x8a0f65=_0x5c6949['eventID'];_0x8a0f65===_0x5ab9e8[_0x4a5b01(0x178)]&&this['_onCursorUpdate'](_0x5c6949),_0x8a0f65===_0x5ab9e8[_0x4a5b01(0x1d5)]&&this[_0x4a5b01(0x306)](_0x5c6949);}),this['disposeWithMe'](this[_0x265f77(0x29f)]['onCommandExecuted'](_0x384f4b=>{const _0x4958=_0x265f77,_0x179c8f=_0x384f4b['params'];_0x179c8f!=null&&this[_0x4958(0x2a1)]&&_0x384f4b['id']===_0x4d4726['id']&&_0x179c8f[_0x4958(0x277)]===this[_0x4958(0x2a2)]&&_0x179c8f[_0x4958(0x2e4)]===!0x1&&_0x179c8f[_0x4958(0x24f)][_0x4958(0x2f1)]>0x0&&this[_0x4958(0x2c5)](_0x179c8f[_0x4958(0x24f)]);})),this[_0x265f77(0x265)][_0x265f77(0x25b)]['pipe'](_0x2c2b7e(this['dispose$']))[_0x265f77(0x1c9)](_0xc52465=>{const _0x5972c6=_0x265f77;if((_0xc52465==null?void 0x0:_0xc52465[_0x5972c6(0x2a2)])!==this[_0x5972c6(0x2a2)])return;const _0x50dcd7={'eventID':_0x5ab9e8[_0x5972c6(0x178)],'data':_0xc52465};this[_0x5972c6(0x34f)](_0x50dcd7);}),this[_0x265f77(0x2d1)](this[_0x265f77(0x29f)]['onCommandExecuted'](_0x481911=>{const _0x1a3e55=_0x265f77;if(_0x481911[_0x1a3e55(0x2be)]==null)return;const _0x1535be=_0x481911[_0x1a3e55(0x2be)];if(_0x481911['id']!==_0x40d5e9['id']||_0x1535be['unitId']!==this[_0x1a3e55(0x2a2)])return;const _0x415b91={'id':_0x1a3e55(0x335),'params':_0x1535be},_0x1daa91=this[_0x1a3e55(0x230)];for(const [_0x2c9787,_0xb3d45e]of _0x1daa91){const _0xb25405={'id':_0x1a3e55(0x335),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xb3d45e[_0x1a3e55(0x24f)]}},_0x277d53=this[_0x1a3e55(0x1ed)][_0x1a3e55(0x197)](_0x415b91,_0xb25405,!0x1);if(_0x145735(_0x277d53))throw _0x277d53[_0x1a3e55(0x170)];_0x1daa91['set'](_0x2c9787,{..._0xb3d45e,'ranges':_0x277d53[_0x1a3e55(0x316)][_0x1a3e55(0x2be)][_0x1a3e55(0x35a)]});}queueMicrotask(()=>{const _0x19df5f=_0x1a3e55;this[_0x19df5f(0x164)]['next'](_0x1daa91);});})));}[_0x14c74a(0x34f)](_0x1981f4){const _0xb93d5b=_0x14c74a;var _0x1a3295,_0xd4a404;const {memberID:_0x44175b,selection:_0x54462e}=_0x1981f4['data'],_0x17ac09=Oi(_0x54462e),_0x229b9f=(_0xd4a404=(_0x1a3295=this[_0xb93d5b(0x18a)]['getMember'](this[_0xb93d5b(0x2a2)],_0x44175b))==null?void 0x0:_0x1a3295[_0xb93d5b(0x1bb)])!=null?_0xd4a404:'Unknown\x20user',_0x45a244={'color':this[_0xb93d5b(0x166)][_0xb93d5b(0x2d7)](_0x44175b),'name':_0x229b9f,'ranges':_0x17ac09},_0x4c0597=this['cursorInfo'];_0x4c0597[_0xb93d5b(0x314)](_0x44175b,_0x45a244),this[_0xb93d5b(0x164)][_0xb93d5b(0x31e)](_0x4c0597);}[_0x14c74a(0x306)](_0x1cc7bb){const _0x212044=_0x14c74a,{memberID:_0xf5e263}=_0x1cc7bb[_0x212044(0x2ff)],_0x359ed1=this['cursorInfo'];_0x359ed1[_0x212044(0x290)](_0xf5e263),this[_0x212044(0x164)][_0x212044(0x31e)](_0x359ed1);}[_0x14c74a(0x160)](){const _0x2cfcc1=_0x14c74a;var _0x333de0;if(this[_0x2cfcc1(0x2a1)]=!0x0,((_0x333de0=this['_univerInstanceService'][_0x2cfcc1(0x1c7)]())==null?void 0x0:_0x333de0[_0x2cfcc1(0x20f)]())!==this[_0x2cfcc1(0x2a2)])return;const _0x402468=this['_injector'][_0x2cfcc1(0x352)](_0x18393c)[_0x2cfcc1(0x347)]();Array[_0x2cfcc1(0x27f)](_0x402468)&&_0x402468[_0x2cfcc1(0x2f1)]>0x0&&this[_0x2cfcc1(0x2c5)](_0x402468);}[_0x14c74a(0x15f)](){const _0x1aa914=_0x14c74a;this[_0x1aa914(0x2a1)]=!0x1;}};Ue=Ti([P(0x2,_0x4fff92(_0x59495a)),P(0x3,_0x4fff92(He)),P(0x4,_0x4fff92(_0x16fd64)),P(0x5,_0x4fff92(Fe)),P(0x6,_0x315634),P(0x7,_0x185030),P(0x8,_0x211890)],Ue);var Ni=Object['getOwnPropertyDescriptor'],Ui=(_0x460b1e,_0x34d7e8,_0x37cd15,_0x74fc0a)=>{const _0x13390a=_0x14c74a;for(var _0x37b8a0=_0x74fc0a>0x1?void 0x0:_0x74fc0a?Ni(_0x34d7e8,_0x37cd15):_0x34d7e8,_0x52fe32=_0x460b1e[_0x13390a(0x2f1)]-0x1,_0x40276a;_0x52fe32>=0x0;_0x52fe32--)(_0x40276a=_0x460b1e[_0x52fe32])&&(_0x37b8a0=_0x40276a(_0x37b8a0)||_0x37b8a0);return _0x37b8a0;},x=(_0x2dc028,_0x1c2932)=>(_0x44f0e9,_0x2c8069)=>_0x1c2932(_0x44f0e9,_0x2c8069,_0x2dc028);const Mi=0x12c,Li=0x64,Pi=()=>{let _0x557ed1=[],_0x252744=!0x1;return _0x4a50ff=>{const _0x59e368=_0x3130;_0x557ed1[_0x59e368(0x2b7)](_0x4a50ff),_0x252744||(_0x252744=!0x0,setTimeout(()=>{_0x557ed1['forEach'](_0x30af5e=>_0x30af5e()),_0x557ed1=[],_0x252744=!0x1;}));};};let Me=class extends _0x270ee7{constructor(_0x9bca25,_0x3d212c,_0x30fb29,_0x224528,_0x538d9f,_0x4fcaf6,_0x5f4f17,_0x489659){const _0x769882=_0x14c74a;super(),_(this,'_online',!0x1),_(this,_0x769882(0x270),!0x1),_(this,_0x769882(0x164),new _0x1bb8bf(new Map())),_(this,_0x769882(0x286),this['_cursorInfo$']['asObservable']()),_(this,_0x769882(0x2f4),new _0x1bb8bf([])),_(this,_0x769882(0x1ae),this[_0x769882(0x2f4)][_0x769882(0x184)](_0xa5c8bf(Mi))),_(this,_0x769882(0x2c5),_0x30190f((_0x2fec2f,_0x5913f2)=>{const _0x5085e3=_0x769882,_0x331f0={'eventID':_0x5ab9e8[_0x5085e3(0x178)],'data':{'unitID':this[_0x5085e3(0x2a2)],'memberID':this[_0x5085e3(0x253)][_0x5085e3(0x1ec)](),'selection':_0x65f635(_0x2fec2f,_0x5913f2['range'])}};this[_0x5085e3(0x253)][_0x5085e3(0x2a3)](_0x331f0,this[_0x5085e3(0x2a2)]);},Li)),(this['unitID']=_0x9bca25,this[_0x769882(0x253)]=_0x3d212c,this[_0x769882(0x24c)]=_0x30fb29,this[_0x769882(0x166)]=_0x224528,this['_memberService']=_0x538d9f,this[_0x769882(0x250)]=_0x4fcaf6,this['_commandService']=_0x5f4f17,this[_0x769882(0x2c3)]=_0x489659);}get[_0x14c74a(0x230)](){const _0x2b96e9=_0x14c74a;return this[_0x2b96e9(0x164)][_0x2b96e9(0x1a6)]();}get[_0x14c74a(0x27c)](){const _0x334d68=_0x14c74a;return this['_roomMembers$'][_0x334d68(0x1a6)]();}[_0x14c74a(0x26a)](){const _0x4948be=_0x14c74a;super[_0x4948be(0x26a)](),this[_0x4948be(0x164)]['next'](new Map()),this[_0x4948be(0x164)][_0x4948be(0x296)](),this[_0x4948be(0x2f4)][_0x4948be(0x31e)]([]),this[_0x4948be(0x2f4)][_0x4948be(0x296)]();}[_0x14c74a(0x2e5)](){const _0x5be270=_0x14c74a;this[_0x5be270(0x270)]||(this[_0x5be270(0x270)]=!0x0,this[_0x5be270(0x253)][_0x5be270(0x32e)][_0x5be270(0x184)](_0x2c2b7e(this[_0x5be270(0x1bf)]))[_0x5be270(0x1c9)](_0x37018b=>{const _0xd0e572=_0x5be270;_0x37018b===_0x3645c9[_0xd0e572(0x246)]?this[_0xd0e572(0x160)]():this[_0xd0e572(0x15f)]();}),this[_0x5be270(0x253)][_0x5be270(0x28b)]['pipe'](_0x2c2b7e(this[_0x5be270(0x1bf)]))[_0x5be270(0x1c9)](_0x5e0212=>{const _0x3ddbd8=_0x5be270,_0x528329=_0x5e0212[_0x3ddbd8(0x210)];_0x528329===_0x5ab9e8['UPDATE_CURSOR']&&this[_0x3ddbd8(0x34f)](_0x5e0212),_0x528329===_0x5ab9e8[_0x3ddbd8(0x1d5)]&&this[_0x3ddbd8(0x306)](_0x5e0212);}),this[_0x5be270(0x2dc)](),this[_0x5be270(0x2d1)](this[_0x5be270(0x29f)][_0x5be270(0x34c)](_0xdfb29e=>{const _0x3b9a38=_0x5be270;if(this[_0x3b9a38(0x2a1)]&&_0xdfb29e['id']===_0xff015b['id']&&_0xdfb29e['params'][_0x3b9a38(0x277)]===this[_0x3b9a38(0x2a2)]){const _0x4b7df5=_0xdfb29e['params'];this[_0x3b9a38(0x2c5)](_0x4b7df5[_0x3b9a38(0x263)],_0x4b7df5[_0x3b9a38(0x22f)][0x0]);}})));}['_onCursorUpdate'](_0x1ea2ff){const _0x46f06c=_0x14c74a;var _0x2b1b6f,_0x21147f;const {memberID:_0x2f804c,selection:_0x16c58a}=_0x1ea2ff[_0x46f06c(0x2ff)],{sheetName:_0xf3aad7,range:_0x44cf59}=_0x1eeaaf(_0x16c58a),_0x2144ed={'name':(_0x21147f=(_0x2b1b6f=this[_0x46f06c(0x18a)][_0x46f06c(0x2b5)](this[_0x46f06c(0x2a2)],_0x2f804c))==null?void 0x0:_0x2b1b6f[_0x46f06c(0x1bb)])!=null?_0x21147f:_0x46f06c(0x294),'range':this['_getMergeRange'](_0xf3aad7,_0x44cf59),'sheetID':_0xf3aad7,'color':this['_colorAssignService'][_0x46f06c(0x2d7)](_0x2f804c),'selection':_0x16c58a},_0x5cb346=this[_0x46f06c(0x230)];_0x5cb346[_0x46f06c(0x314)](_0x2f804c,_0x2144ed),this[_0x46f06c(0x164)][_0x46f06c(0x31e)](_0x5cb346);}[_0x14c74a(0x306)](_0x38ac1c){const _0x2d3c3e=_0x14c74a,{memberID:_0x2ca9ff}=_0x38ac1c[_0x2d3c3e(0x2ff)],_0x5b332f=this['cursorInfo'];_0x5b332f['delete'](_0x2ca9ff),this[_0x2d3c3e(0x164)][_0x2d3c3e(0x31e)](_0x5b332f);}['_getMergeRange'](_0x157667,_0x1bb42f){const _0x40c448=_0x14c74a;var _0x1b4726,_0x34303d;const _0x29d254=(_0x34303d=(_0x1b4726=this[_0x40c448(0x250)][_0x40c448(0x2e3)](this['unitID']))==null?void 0x0:_0x1b4726[_0x40c448(0x25c)](_0x157667))==null?void 0x0:_0x34303d[_0x40c448(0x340)]();return(_0x29d254==null?void 0x0:_0x29d254['find'](_0x1cf116=>_0x1b1299['contains'](_0x1cf116,_0x1bb42f)))||_0x1bb42f;}[_0x14c74a(0x2dc)](){const _0x4cae49=_0x14c74a,_0x23753a=new _0x47f4a6(),_0x54b535=Pi(),_0x10d175=()=>{const _0x2bc7e6=_0x3130;_0x23753a[_0x2bc7e6(0x26a)]();const _0x56b69a=(_0x397c19,_0x4590e1,_0x347840,_0x5f2371)=>{const _0x313d27=_0x2bc7e6;let _0x4bdf85=[];switch(_0x397c19['id']){case _0x5b3259[_0x313d27(0x23f)]:{_0x4bdf85=_0xafd835(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x220)]:{_0x4bdf85=_0x45a3ca(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x207)]:{_0x4bdf85=_0x304b25(_0x397c19,_0x5f2371);break;}case _0x5b3259['InsertRangeMoveDownCommandId']:{_0x4bdf85=_0x14d53a(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x15b)]:{_0x4bdf85=_0x52829e(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x1ee)]:{_0x4bdf85=_0x476616(_0x397c19,_0x5f2371);break;}case _0x5b3259['MoveRangeCommandId']:{_0x4bdf85=_0x3e1128(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x30e)]:{_0x4bdf85=_0x5a28d0(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x2df)]:{_0x4bdf85=_0x39bf34(_0x397c19,_0x5f2371);break;}}const _0x3f9222=_0x4ada95(_0x4bdf85,_0x5f2371),_0x5b64ea=this[_0x313d27(0x230)][_0x313d27(0x352)](_0x4590e1);if(_0x5b64ea&&_0x3f9222){const _0x359c55={..._0x5b64ea,'range':_0x3f9222};this[_0x313d27(0x230)][_0x313d27(0x314)](_0x4590e1,_0x359c55),_0x54b535(()=>{const _0x48f9db=_0x313d27,_0x2826b2=this['_refRangeService']['registerRefRange'](_0x3f9222,_0x17ea31=>(_0x2826b2[_0x48f9db(0x26a)](),_0x56b69a(_0x17ea31,_0x4590e1,_0x347840,_0x3f9222)));_0x23753a[_0x48f9db(0x356)](_0x2826b2);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2bc7e6(0x280)]((_0x203493,_0x4d1640)=>{const _0xd9e34f=_0x2bc7e6,{range:_0x972cec,sheetID:_0x30978a}=_0x203493,_0xa983ae=this[_0xd9e34f(0x2c3)][_0xd9e34f(0x17b)](_0x972cec,_0x143582=>(_0xa983ae[_0xd9e34f(0x26a)](),_0x56b69a(_0x143582,_0x4d1640,_0x30978a,_0x972cec)));_0x23753a[_0xd9e34f(0x356)](_0xa983ae);});};this[_0x4cae49(0x2d1)](_0x1799ad(this['_cursorInfo$'][_0x4cae49(0x1c9)](()=>{_0x10d175();})));}[_0x14c74a(0x160)](){const _0x3fcfd3=_0x14c74a;var _0x8d060b,_0x17deb3;if(this[_0x3fcfd3(0x2a1)]=!0x0,((_0x8d060b=this['_univerInstanceService'][_0x3fcfd3(0x1c7)]())==null?void 0x0:_0x8d060b[_0x3fcfd3(0x20f)]())!==this[_0x3fcfd3(0x2a2)])return;const _0x4f1f9e=(_0x17deb3=this[_0x3fcfd3(0x24c)]['get'](_0xb3706c)['getCurrentSelections']())==null?void 0x0:_0x17deb3[0x0],_0x3d41fb=this[_0x3fcfd3(0x250)][_0x3fcfd3(0x2ea)](_0x555e27[_0x3fcfd3(0x208)])[_0x3fcfd3(0x304)]();_0x4f1f9e&&_0x3d41fb&&this[_0x3fcfd3(0x2c5)](_0x3d41fb['getSheetId'](),_0x4f1f9e);}[_0x14c74a(0x15f)](){this['_online']=!0x1;}};Me=Ui([x(0x2,_0x4fff92(_0x59495a)),x(0x3,_0x4fff92(He)),x(0x4,_0x4fff92(_0x16fd64)),x(0x5,_0x185030),x(0x6,_0x211890),x(0x7,_0x4fff92(_0x533725))],Me);var wi=Object[_0x14c74a(0x192)],Ai=(_0x3024d6,_0x135bdb,_0xd50eb3,_0x1cfba1)=>{const _0x33de63=_0x14c74a;for(var _0x505293=_0x1cfba1>0x1?void 0x0:_0x1cfba1?wi(_0x135bdb,_0xd50eb3):_0x135bdb,_0x597967=_0x3024d6[_0x33de63(0x2f1)]-0x1,_0x40fb6f;_0x597967>=0x0;_0x597967--)(_0x40fb6f=_0x3024d6[_0x597967])&&(_0x505293=_0x40fb6f(_0x505293)||_0x505293);return _0x505293;},me=(_0x457cbe,_0x3ee8f9)=>(_0x51a02c,_0x5e2f1c)=>_0x3ee8f9(_0x51a02c,_0x5e2f1c,_0x457cbe);let F=class extends _0x270ee7{constructor(_0x2f5620,_0x5e2d9d,_0x1dfdee){const _0x53e211=_0x14c74a;super(),_(this,_0x53e211(0x23a),new Map()),_(this,_0x53e211(0x202),new _0x4e6786()),(this['_univerInstanceService']=_0x2f5620,this[_0x53e211(0x24c)]=_0x5e2d9d,this['_collabSessionService']=_0x1dfdee,this[_0x53e211(0x270)]());}[_0x14c74a(0x26a)](){const _0x45cea5=_0x14c74a;super[_0x45cea5(0x26a)](),this[_0x45cea5(0x202)][_0x45cea5(0x296)](),this[_0x45cea5(0x23a)][_0x45cea5(0x280)](_0xa89c5c=>_0xa89c5c['dispose']());}[_0x14c74a(0x273)](_0xa9a511){const _0x552ab5=_0x14c74a;return this[_0x552ab5(0x23a)]['has'](_0xa9a511)?this[_0x552ab5(0x23a)][_0x552ab5(0x352)](_0xa9a511)[_0x552ab5(0x286)]:this['_entityInit$'][_0x552ab5(0x184)](_0x246502(_0x511d46=>_0x511d46[_0x552ab5(0x2a2)]===_0xa9a511),_0x1e2746(_0x1168d0=>_0x1168d0[_0x552ab5(0x286)]));}[_0x14c74a(0x270)](){const _0x27b9e5=_0x14c74a;this[_0x27b9e5(0x250)][_0x27b9e5(0x1da)](_0x555e27[_0x27b9e5(0x208)])[_0x27b9e5(0x184)](_0x2c2b7e(this[_0x27b9e5(0x1bf)]))['subscribe'](async _0x1a14d8=>{const _0x5dc897=_0x27b9e5,_0x2e1c6c=_0x1a14d8[_0x5dc897(0x20f)](),_0x3e8164=await this[_0x5dc897(0x243)](_0x2e1c6c);this[_0x5dc897(0x202)][_0x5dc897(0x31e)](_0x3e8164),this['_entities']['set'](_0x2e1c6c,_0x3e8164);}),this['_univerInstanceService'][_0x27b9e5(0x1da)](_0x555e27['UNIVER_DOC'])[_0x27b9e5(0x184)](_0x2c2b7e(this['dispose$']))[_0x27b9e5(0x184)](_0x246502(_0x52630f=>!_0x52630f['getUnitId']()['startsWith']('__')))[_0x27b9e5(0x1c9)](async _0x10c6bc=>{const _0x2713d3=_0x27b9e5,_0x200b1f=_0x10c6bc[_0x2713d3(0x20f)](),_0x375dbe=await this[_0x2713d3(0x1d7)](_0x200b1f);this[_0x2713d3(0x202)][_0x2713d3(0x31e)](_0x375dbe),this[_0x2713d3(0x23a)][_0x2713d3(0x314)](_0x200b1f,_0x375dbe);}),_0x579586(this[_0x27b9e5(0x250)][_0x27b9e5(0x333)](_0x555e27[_0x27b9e5(0x1b3)]),this[_0x27b9e5(0x250)][_0x27b9e5(0x333)](_0x555e27['UNIVER_SHEET']))['pipe'](_0x2c2b7e(this[_0x27b9e5(0x1bf)]))[_0x27b9e5(0x1c9)](_0x28256f=>{const _0x2c4435=_0x27b9e5,_0x5843b9=_0x28256f[_0x2c4435(0x20f)](),_0x583273=this['_entities']['get'](_0x5843b9);_0x583273&&(_0x583273[_0x2c4435(0x26a)](),this[_0x2c4435(0x23a)][_0x2c4435(0x290)](_0x5843b9));});}async[_0x14c74a(0x243)](_0x15c320){const _0x11d9d5=_0x14c74a,_0x471d25=await this[_0x11d9d5(0x1e8)]['requireSession'](_0x15c320),_0x3224ed=this['_injector'][_0x11d9d5(0x1b8)](Me,_0x15c320,_0x471d25);return _0x3224ed[_0x11d9d5(0x2e5)](),_0x3224ed;}async[_0x14c74a(0x1d7)](_0x1d640e){const _0x1d707a=_0x14c74a,_0x21e772=await this[_0x1d707a(0x1e8)]['requireSession'](_0x1d640e),_0x55fc85=this[_0x1d707a(0x24c)][_0x1d707a(0x1b8)](Ue,_0x1d640e,_0x21e772);return _0x55fc85[_0x1d707a(0x2e5)](),_0x55fc85;}};F=Ai([me(0x0,_0x185030),me(0x1,_0x4fff92(_0x59495a)),me(0x2,_0x4fff92(_0xcab9c2))],F);const J=0x14,Qe=0xc8,Ie=0x4,yi=0x5;function $i(_0x2862e6,_0x1d08d5){const _0x228165=_0x14c74a;let {radius:_0x25ecad,width:_0x2e923e,height:_0x5db661}=_0x1d08d5;_0x25ecad=_0x25ecad!=null?_0x25ecad:0x0,_0x2e923e=_0x2e923e!=null?_0x2e923e:0x1e,_0x5db661=_0x5db661!=null?_0x5db661:0x1e;let _0x53d696=0x0,_0x2061de=0x0,_0x5f1b55=0x0;_0x53d696=_0x2061de=_0x5f1b55=Math[_0x228165(0x1aa)](_0x25ecad,_0x2e923e/0x2,_0x5db661/0x2),_0x2862e6[_0x228165(0x1e2)](),_0x2862e6[_0x228165(0x348)](_0x53d696,0x0),_0x2862e6['lineTo'](_0x2e923e-_0x2061de,0x0),_0x2862e6[_0x228165(0x336)](_0x2e923e-_0x2061de,_0x2061de,_0x2061de,Math['PI']*0x3/0x2,0x0,!0x1),_0x2862e6[_0x228165(0x1e4)](_0x2e923e,_0x5db661-_0x5f1b55),_0x2862e6['arc'](_0x2e923e-_0x5f1b55,_0x5db661-_0x5f1b55,_0x5f1b55,0x0,Math['PI']/0x2,!0x1),_0x2862e6['lineTo'](0x0,_0x5db661),_0x2862e6[_0x228165(0x1e4)](0x0,_0x53d696),_0x2862e6[_0x228165(0x336)](_0x53d696,_0x53d696,_0x53d696,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2862e6['closePath'](),_0x1d08d5[_0x228165(0x329)]&&(_0x2862e6[_0x228165(0x2da)](),_0x2862e6[_0x228165(0x177)]=_0x1d08d5[_0x228165(0x329)],_0x1d08d5[_0x228165(0x1b0)]===_0x228165(0x2f3)?_0x2862e6[_0x228165(0x329)](_0x228165(0x2f3)):_0x2862e6['fill'](),_0x2862e6[_0x228165(0x2ef)]());}class ue extends _0x633c93{constructor(_0x51a79d,_0x4d6f6f){const _0x4524fd=_0x14c74a;super(_0x51a79d,_0x4d6f6f),_(this,'color'),_(this,'text'),(this[_0x4524fd(0x331)]=_0x4d6f6f==null?void 0x0:_0x4d6f6f[_0x4524fd(0x331)],this[_0x4524fd(0x225)]=_0x4d6f6f==null?void 0x0:_0x4d6f6f[_0x4524fd(0x225)]);}static[_0x14c74a(0x322)](_0x240549,_0xf44c39){const _0x38eb42=_0x14c74a,{text:_0x40cace,color:_0x4b22e5}=_0xf44c39;_0x240549[_0x38eb42(0x2da)](),_0x240549['font']=_0x38eb42(0x285);const _0x6a0fb6=_0x240549[_0x38eb42(0x257)](_0x40cace)[_0x38eb42(0x2a4)],_0x4926eb=Math['min'](_0x6a0fb6+0x2*Ie,Qe);$i(_0x240549,{'height':J,'radius':0x4,'width':_0x4926eb,'fill':_0x4b22e5}),_0x240549[_0x38eb42(0x177)]=_0x38eb42(0x17c);const _0x184fee=Ie,_0x5ac374=J-yi,_0xf3ccf1=Qe-0x2*Ie;if(_0x6a0fb6>_0xf3ccf1){let _0x4c57fd='',_0x315f29=0x0;for(const _0x5855d2 of _0x40cace){const _0x22a8da=_0x240549[_0x38eb42(0x257)](_0x5855d2)[_0x38eb42(0x2a4)];if(_0x315f29+_0x22a8da<=_0xf3ccf1-_0x240549[_0x38eb42(0x257)](_0x38eb42(0x169))[_0x38eb42(0x2a4)])_0x4c57fd+=_0x5855d2,_0x315f29+=_0x22a8da;else{_0x4c57fd+=_0x38eb42(0x169);break;}}_0x240549[_0x38eb42(0x1be)](_0x4c57fd,_0x184fee,_0x5ac374);}else _0x240549[_0x38eb42(0x1be)](_0x40cace,_0x184fee,_0x5ac374);_0x240549[_0x38eb42(0x2ef)]();}[_0x14c74a(0x180)](_0x1a9948){ue['drawWith'](_0x1a9948,this);}}const ve=_0x14c74a(0x251),xi='collab-text-range-',Bi=_0x14c74a(0x2f8),K=0x6,ki=1.5,ge=0x4,Hi=1.5,Fi=_0x14c74a(0x30d);class qe{constructor(_0x5efad1,_0x4e0391,_0x34ae4d,_0x2fb0f6){const _0x1e22fa=_0x14c74a;_(this,_0x1e22fa(0x2c0),[]),_(this,_0x1e22fa(0x194),null),_(this,_0x1e22fa(0x1c8),null),_(this,_0x1e22fa(0x313),null),_(this,_0x1e22fa(0x191),null),_(this,_0x1e22fa(0x19f),null),(this[_0x1e22fa(0x19c)]=_0x5efad1,this[_0x1e22fa(0x269)]=_0x4e0391,this[_0x1e22fa(0x15d)]=_0x34ae4d,this['_document']=_0x2fb0f6,this['_render']());}set[_0x14c74a(0x25f)](_0x1808dc){const _0x5e993d=_0x14c74a;_0x1808dc?(this['_anchorDot']&&this['_anchorDot'][_0x5e993d(0x1cc)](),this[_0x5e993d(0x1c8)]&&this[_0x5e993d(0x1c8)]['show']()):(this[_0x5e993d(0x313)]&&this[_0x5e993d(0x313)][_0x5e993d(0x1ff)](),this[_0x5e993d(0x1c8)]&&this['_textBubble'][_0x5e993d(0x1cc)]());}[_0x14c74a(0x26a)](){const _0x5ada9f=_0x14c74a;for(const _0xedc70f of this[_0x5ada9f(0x2c0)])_0xedc70f['dispose']();this[_0x5ada9f(0x1c8)]&&this[_0x5ada9f(0x1c8)][_0x5ada9f(0x26a)](),this[_0x5ada9f(0x313)]&&this['_anchorDot'][_0x5ada9f(0x26a)](),this['_anchor']&&this[_0x5ada9f(0x194)]['dispose'](),this[_0x5ada9f(0x19f)]&&this[_0x5ada9f(0x19f)]();}['_render'](){const _0x49e206=_0x14c74a;var _0x21d0e6;const {_docSkeleton:_0x223c3b,_document:_0x1b2627}=this,{color:_0x14d45e,name:_0x170387,ranges:_0xde8059}=this['_cursor'],_0x5205db=_0x1b2627['getOffsetConfig'](),{docsLeft:_0x43e0fe,docsTop:_0x4e7b22}=_0x5205db,_0x17d65f=new _0x143235(_0x5205db,_0x223c3b);for(const {startOffset:_0x3237fb,endOffset:_0x13df56,rangeType:_0x5110e4,segmentId:_0xd1848d,segmentPage:_0x41c38a,collapsed:_0x1cab4e,isActive:_0x1f0ff9}of _0xde8059){const _0x378895=_0x223c3b[_0x49e206(0x2e1)](_0x3237fb,!0x0,_0xd1848d,_0x41c38a);let _0x5fc493=_0x223c3b[_0x49e206(0x2e1)](_0x13df56,!0x0,_0xd1848d,_0x41c38a);if(_0x5fc493==null&&(_0x5fc493=_0x223c3b[_0x49e206(0x2e1)](_0x13df56-0x1,!0x1,_0xd1848d,_0x41c38a)),_0x1f0ff9){const {contentBoxPointGroup:_0x470f76}=_0x17d65f['getRangePointData'](_0x5fc493,_0x5fc493);if(_0x470f76[_0x49e206(0x2f1)]===0x0)continue;this[_0x49e206(0x1a4)](_0x14d45e,_0x470f76,_0x43e0fe,_0x4e7b22,_0x170387),this[_0x49e206(0x19f)]=this[_0x49e206(0x357)]();}if(_0x378895&&_0x5fc493){if(_0x5110e4===_0xc89d24['RECT']){const _0x1deceb=new _0x11a3f2(_0x5205db,_0x223c3b),{pointGroup:_0x528251}=(_0x21d0e6=_0x1deceb[_0x49e206(0x18f)](_0x378895,_0x5fc493))!=null?_0x21d0e6:{};if(_0x528251==null||_0x528251[_0x49e206(0x2f1)]===0x0)continue;this[_0x49e206(0x233)](_0x14d45e,_0x528251,_0x43e0fe,_0x4e7b22);}else{if(!_0x1cab4e){const {borderBoxPointGroup:_0x7b6aa}=_0x17d65f[_0x49e206(0x18f)](_0x378895,_0x5fc493);if(_0x7b6aa[_0x49e206(0x2f1)]===0x0)continue;this[_0x49e206(0x171)](_0x14d45e,_0x7b6aa,_0x43e0fe,_0x4e7b22);}}}}}[_0x14c74a(0x1a4)](_0x508baa,_0x558ac8,_0x5213d0,_0x25f3ad,_0x1efaba){const _0x5bce7f=_0x14c74a,_0x271108=this[_0x5bce7f(0x201)](_0x558ac8),{left:_0x20becf,top:_0x345884,height:_0x5ba02d}=_0x271108,_0x2c291b=this[_0x5bce7f(0x2b1)](),_0x16b18b=Hi/_0x2c291b,_0x345057=new _0x3e3c5c(ve+_0x4c97f0(K),{'left':_0x20becf+_0x5213d0-_0x16b18b,'top':_0x345884+_0x25f3ad,'height':_0x5ba02d,'width':ki,'fill':_0x508baa||_0xcb5b1c(_0x5138dd['black'],0x0),'strokeWidth':_0x16b18b,'stroke':Fi,'evented':!0x0});this['_anchor']=_0x345057,this[_0x5bce7f(0x269)][_0x5bce7f(0x334)](_0x345057,_0x34bfba);const _0x3d58f8=new _0x3e3c5c(ve+_0x4c97f0(K),{'left':_0x20becf+_0x5213d0-_0x16b18b,'top':_0x345884+_0x25f3ad-ge/0x2,'height':ge,'width':ge,'fill':_0x508baa||_0xcb5b1c(_0x5138dd[_0x5bce7f(0x2af)],0x0),'strokeWidth':0x0,'stroke':_0x508baa||_0xcb5b1c(_0x5138dd[_0x5bce7f(0x2af)],0x0),'evented':!0x1});this[_0x5bce7f(0x313)]=_0x3d58f8,this[_0x5bce7f(0x269)][_0x5bce7f(0x334)](_0x3d58f8,_0x34bfba);const _0x5765d7=new ue(ve+_0x4c97f0(K),{'left':_0x20becf+_0x5213d0-_0x16b18b,'top':_0x345884+_0x25f3ad-J,'text':_0x1efaba,'color':_0x508baa});this[_0x5bce7f(0x1c8)]=_0x5765d7,this[_0x5bce7f(0x269)][_0x5bce7f(0x334)](_0x5765d7,_0x34bfba),this[_0x5bce7f(0x25f)]=!0x1;}[_0x14c74a(0x357)](){const _0x414cd3=_0x14c74a,_0x2097e2=this[_0x414cd3(0x194)]['onPointerEnter$'][_0x414cd3(0x1c0)](()=>{const _0x286da2=_0x414cd3;this[_0x286da2(0x25f)]=!0x0;}),_0x520558=this[_0x414cd3(0x194)][_0x414cd3(0x28c)]['subscribeEvent'](()=>{const _0x5e7f41=_0x414cd3;this[_0x5e7f41(0x191)]&&clearTimeout(this[_0x5e7f41(0x191)]),this[_0x5e7f41(0x191)]=setTimeout(()=>{const _0x1c772b=_0x5e7f41;this[_0x1c772b(0x25f)]=!0x1;},0x7d0);});return()=>{const _0x4b7e94=_0x414cd3;_0x2097e2[_0x4b7e94(0x2b6)](),_0x520558['unsubscribe']();};}[_0x14c74a(0x171)](_0x2826a0,_0xb80af2,_0x26db25,_0x12139c){const _0x2eddb1=_0x14c74a,_0x4a9107=new _0x47f5f9(_0x2826a0)[_0x2eddb1(0x34e)](0.2)[_0x2eddb1(0x1a2)](),_0x5aed38=new _0x4fa96d(xi+_0x4c97f0(K),{'pointsGroup':_0xb80af2,'fill':_0x4a9107||_0xcb5b1c(_0x5138dd[_0x2eddb1(0x2af)],0.2),'left':_0x26db25,'top':_0x12139c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2eddb1(0x2c0)]['push'](_0x5aed38),this[_0x2eddb1(0x269)]['addObject'](_0x5aed38,_0x34bfba);}[_0x14c74a(0x233)](_0x24de8c,_0x985a6a,_0x3e17e4,_0x2cba7f){const _0x6fe04f=_0x14c74a,_0x45c67d=new _0x47f5f9(_0x24de8c)['setAlpha'](0.2)[_0x6fe04f(0x1a2)](),_0x524b93=new _0x4fa96d(Bi+_0x4c97f0(K),{'pointsGroup':_0x985a6a,'fill':_0x45c67d||_0xcb5b1c(_0x5138dd['black'],0.2),'left':_0x3e17e4,'top':_0x2cba7f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x6fe04f(0x2c0)]['push'](_0x524b93),this[_0x6fe04f(0x269)][_0x6fe04f(0x334)](_0x524b93,_0x34bfba);}[_0x14c74a(0x201)](_0x43feac){const _0x39115b=_0x43feac[0x0],_0x4bc11a=_0x39115b[0x0],_0x23d311=_0x39115b[0x2],{x:_0x54eedd,y:_0x1908ec}=_0x4bc11a,{x:_0x2941a0,y:_0x4f5745}=_0x23d311;return{'left':_0x54eedd,'top':_0x1908ec,'width':_0x2941a0-_0x54eedd,'height':_0x4f5745-_0x1908ec};}[_0x14c74a(0x2b1)](){const _0x15f745=_0x14c74a,{scaleX:_0x58af7c,scaleY:_0x1318e1}=this[_0x15f745(0x269)]['getAncestorScale']();return Math[_0x15f745(0x239)](_0x58af7c,_0x1318e1);}}var Yi=Object[_0x14c74a(0x192)],ji=(_0x3c93e3,_0x206645,_0x4843b4,_0x59b8de)=>{for(var _0x12a840=_0x59b8de>0x1?void 0x0:_0x59b8de?Yi(_0x206645,_0x4843b4):_0x206645,_0x6bd0dc=_0x3c93e3['length']-0x1,_0x2c0d71;_0x6bd0dc>=0x0;_0x6bd0dc--)(_0x2c0d71=_0x3c93e3[_0x6bd0dc])&&(_0x12a840=_0x2c0d71(_0x12a840)||_0x12a840);return _0x12a840;},ee=(_0x10a571,_0x258bd8)=>(_0x2d7b1e,_0x20acca)=>_0x258bd8(_0x2d7b1e,_0x20acca,_0x10a571);let Le=class extends _0x270ee7{constructor(_0x554006,_0xe6efbc,_0x5ed6b8,_0x2cde8c,_0x53aa9a){const _0x34811f=_0x14c74a;super(),_(this,'_cursorShapes',[]),_(this,_0x34811f(0x29d),[]),(this[_0x34811f(0x215)]=_0x554006,this[_0x34811f(0x30b)]=_0xe6efbc,this[_0x34811f(0x29a)]=_0x5ed6b8,this['_commandService']=_0x2cde8c,this['_themeService']=_0x53aa9a,this['_init']());}[_0x14c74a(0x270)](){const _0x23d0e0=_0x14c74a,_0x995b0f=this[_0x23d0e0(0x215)][_0x23d0e0(0x277)],_0x2477c9=this[_0x23d0e0(0x30b)];this[_0x23d0e0(0x2d1)](_0x1a0445([this['_collabCursorController'][_0x23d0e0(0x273)](_0x995b0f),this[_0x23d0e0(0x161)][_0x23d0e0(0x185)]])[_0x23d0e0(0x184)](_0x47d210(([_0x500fbb,_0xc18b10])=>({'skeleton':_0x2477c9[_0x23d0e0(0x1b4)](),'cursors':[..._0x500fbb[_0x23d0e0(0x2b9)]()]['flatMap'](_0x5d2803=>({..._0x5d2803,'color':this[_0x23d0e0(0x161)][_0x23d0e0(0x18d)](_0x5d2803['color'])}))})))[_0x23d0e0(0x1c9)](_0x4ffc4a=>{const _0x100b18=_0x23d0e0;if(this['_removeCollabCursors'](),_0x4ffc4a){const {skeleton:_0x57a9bb,cursors:_0x22dd70}=_0x4ffc4a;this[_0x100b18(0x2cc)](_0x57a9bb,_0x22dd70);}})),this['_initResize'](),this[_0x23d0e0(0x332)]();}[_0x14c74a(0x2cc)](_0x3a66db,_0x4de2c2){const _0x369c1c=_0x14c74a,{scene:_0x3ae8e9,mainComponent:_0x47090f}=this[_0x369c1c(0x215)],_0x31f7ac=_0x4de2c2['map'](_0x483898=>new qe(_0x483898,_0x3ae8e9,_0x3a66db,_0x47090f));this[_0x369c1c(0x1b6)]=_0x31f7ac,this[_0x369c1c(0x29d)]=_0x4de2c2;}[_0x14c74a(0x2a5)](){const _0x343a55=_0x14c74a;this[_0x343a55(0x18e)]();const {scene:_0x26f5bd,mainComponent:_0x10eaf3}=this[_0x343a55(0x215)],_0x5c3703=this['_docSkeletonManagerService'][_0x343a55(0x1b4)](),_0x2e5718=this[_0x343a55(0x29d)][_0x343a55(0x205)](_0x283fff=>new qe(_0x283fff,_0x26f5bd,_0x5c3703,_0x10eaf3));this[_0x343a55(0x1b6)]=_0x2e5718;}[_0x14c74a(0x18e)](){const _0x54c260=_0x14c74a;this[_0x54c260(0x1b6)][_0x54c260(0x280)](_0x327a2d=>_0x327a2d[_0x54c260(0x26a)]()),this[_0x54c260(0x1b6)]=[];}[_0x14c74a(0x332)](){const _0x4b09a3=_0x14c74a,_0x2def14=[_0x4a5ce9['id']];this[_0x4b09a3(0x2d1)](this[_0x4b09a3(0x29f)][_0x4b09a3(0x34c)](_0x154d79=>{const _0x152864=_0x4b09a3;_0x2def14['includes'](_0x154d79['id'])&&_0x154d79['params'][_0x152864(0x277)]===this[_0x152864(0x215)][_0x152864(0x277)]&&this[_0x152864(0x2a5)]();}));}[_0x14c74a(0x339)](){const _0x51070b=_0x14c74a;this[_0x51070b(0x2d1)](_0x59105d(this[_0x51070b(0x215)][_0x51070b(0x2e8)]['onTransformChange$'])['pipe'](_0x4bda57(_0x2fa805=>_0x2fa805[_0x51070b(0x1eb)]===_0x8d714e[_0x51070b(0x198)]),_0x4de0c1(0x10))[_0x51070b(0x1c9)](()=>{this['_refreshCollabCursors']();}));}};Le=ji([ee(0x1,_0x4fff92(_0x5d68a9)),ee(0x2,_0x4fff92(F)),ee(0x3,_0x211890),ee(0x4,_0x4fff92(_0x3ea1cc))],Le);const Vi=0x1,Wi=1.5;class Xi extends _0x633c93{constructor(_0x1bfa0a,_0x5c53f6){const _0x29f4ce=_0x14c74a;super(_0x1bfa0a,_0x5c53f6),_(this,_0x29f4ce(0x1d3)),_(this,_0x29f4ce(0x20a),!0x1),_(this,_0x29f4ce(0x2c9)),_(this,_0x29f4ce(0x31b),''),_(this,'_labelPosition',_0x29f4ce(0x2d3)),_(this,_0x29f4ce(0x2f0)),(_0x5c53f6&&this[_0x29f4ce(0x2d8)](_0x5c53f6),this[_0x29f4ce(0x2c4)][_0x29f4ce(0x1c0)](()=>this[_0x29f4ce(0x2d8)]({'hovered':!0x0})),this[_0x29f4ce(0x28c)][_0x29f4ce(0x1c0)](()=>this[_0x29f4ce(0x2d8)]({'hovered':!0x1})));}[_0x14c74a(0x2d8)](_0x592e84){const _0x51cc73=_0x14c74a;var _0x290d0a,_0x59d5c1,_0x4863b2,_0x22cbc1,_0x5a40b3,_0x2eb454;this['_color']=(_0x290d0a=_0x592e84[_0x51cc73(0x331)])!=null?_0x290d0a:this[_0x51cc73(0x1d3)],this['_hovered']=(_0x59d5c1=_0x592e84[_0x51cc73(0x328)])!=null?_0x59d5c1:this[_0x51cc73(0x20a)],this['_range']=(_0x4863b2=_0x592e84[_0x51cc73(0x23d)])!=null?_0x4863b2:this[_0x51cc73(0x2c9)],this[_0x51cc73(0x31b)]=(_0x22cbc1=_0x592e84[_0x51cc73(0x1bb)])!=null?_0x22cbc1:this['_name'],this['_labelPosition']=(_0x5a40b3=_0x592e84[_0x51cc73(0x255)])!=null?_0x5a40b3:this[_0x51cc73(0x22b)],this['_backgroundColor']=(_0x2eb454=_0x592e84[_0x51cc73(0x323)])!=null?_0x2eb454:this[_0x51cc73(0x2f0)],this[_0x51cc73(0x24b)]({'width':_0x592e84['width'],'height':_0x592e84[_0x51cc73(0x1f5)]});}['onMouseMove'](_0x1e3c45){const _0x177aa3=_0x14c74a,{row:_0x3ce37e,column:_0x2fa37c}=_0x1e3c45;if(_0x3ce37e>=this[_0x177aa3(0x2c9)][_0x177aa3(0x249)]&&_0x3ce37e<=this[_0x177aa3(0x2c9)]['endRow']&&_0x2fa37c>=this[_0x177aa3(0x2c9)]['startColumn']&&_0x2fa37c<=this['_range'][_0x177aa3(0x15c)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x177aa3(0x2d8)]({'hovered':!0x1});}[_0x14c74a(0x1fc)](_0x1b05b8){return!0x1;}[_0x14c74a(0x180)](_0x1ce9d5){const _0x1ae538=_0x14c74a;_0x3e3c5c[_0x1ae538(0x322)](_0x1ce9d5,{'width':this[_0x1ae538(0x2a4)],'height':this[_0x1ae538(0x1f5)],'strokeWidth':Wi,'stroke':this[_0x1ae538(0x1d3)],'evented':!0x1,'fill':this[_0x1ae538(0x2f0)]}),this['_hovered']&&(_0x1ce9d5[_0x1ae538(0x2da)](),_0x1ce9d5[_0x1ae538(0x24a)](0x1,0x0,0x0,0x1,this[_0x1ae538(0x2a4)],this[_0x1ae538(0x22b)]===_0x1ae538(0x1a9)?0x0:-J),ue[_0x1ae538(0x322)](_0x1ce9d5,{'text':this[_0x1ae538(0x31b)],'color':this[_0x1ae538(0x1d3)]}),_0x1ce9d5[_0x1ae538(0x2ef)]());}}var Gi=Object[_0x14c74a(0x192)],Ki=(_0x575ed6,_0x3e0d77,_0x219294,_0x1cc26b)=>{const _0x11a71c=_0x14c74a;for(var _0x10523e=_0x1cc26b>0x1?void 0x0:_0x1cc26b?Gi(_0x3e0d77,_0x219294):_0x3e0d77,_0x35bf02=_0x575ed6[_0x11a71c(0x2f1)]-0x1,_0x465379;_0x35bf02>=0x0;_0x35bf02--)(_0x465379=_0x575ed6[_0x35bf02])&&(_0x10523e=_0x465379(_0x10523e)||_0x10523e);return _0x10523e;},pe=(_0x1157e3,_0x7d7fdb)=>(_0x1f61b6,_0x5a65cc)=>_0x7d7fdb(_0x1f61b6,_0x5a65cc,_0x1157e3);const zi=0x1389;let Pe=class extends _0x270ee7{constructor(_0x218a64,_0x515843,_0x19fa34,_0x21abe0){const _0x417722=_0x14c74a;super(),_(this,_0x417722(0x29d),new Set()),_(this,_0x417722(0x16f),null),(this[_0x417722(0x215)]=_0x218a64,this['_sheetSkeletonManagerService']=_0x515843,this[_0x417722(0x29a)]=_0x19fa34,this['_themeService']=_0x21abe0,this[_0x417722(0x270)]());}[_0x14c74a(0x270)](){const _0x52e06c=_0x14c74a;this[_0x52e06c(0x195)][_0x52e06c(0x1f7)][_0x52e06c(0x184)](_0x4aa1ef(this['dispose$']),_0x2f7498(_0x20b1b6=>{const _0x1fb111=_0x52e06c;if(_0x20b1b6){const _0x3735fa=_0x20b1b6[_0x1fb111(0x33b)];return _0x1a0445(this[_0x1fb111(0x29a)][_0x1fb111(0x273)](this['_context'][_0x1fb111(0x277)]),this[_0x1fb111(0x161)][_0x1fb111(0x185)])[_0x1fb111(0x184)](_0x47d210(([_0x49d5fd,_0x3984ae])=>{const _0x47b104=_0x1fb111,_0x5dc4c7=new Map();return _0x49d5fd[_0x47b104(0x280)]((_0x2d7f02,_0x4bfb6c)=>{const _0xd2ca90=_0x47b104;if(_0x2d7f02[_0xd2ca90(0x167)]===_0x3735fa){const _0xac97fc={..._0x2d7f02};_0xac97fc[_0xd2ca90(0x331)]=this[_0xd2ca90(0x161)][_0xd2ca90(0x18d)](_0x2d7f02[_0xd2ca90(0x331)]),_0x5dc4c7['set'](_0x4bfb6c,_0xac97fc);}}),{'skeleton':_0x20b1b6,'cursors':_0x5dc4c7};}));}return _0xfd46f5({'skeleton':null,'cursors':new Map()});}))[_0x52e06c(0x1c9)](({skeleton:_0x2baa0b,cursors:_0x3748f3})=>{const _0x2d0546=_0x52e06c;this[_0x2d0546(0x18e)](),_0x2baa0b&&this[_0x2d0546(0x2cc)](_0x2baa0b,_0x3748f3);}),this[_0x52e06c(0x195)]['currentSkeleton$'][_0x52e06c(0x1c9)](_0x9f762f=>{const _0x23f34d=_0x52e06c;if(_0x9f762f==null)return;const {skeleton:_0x1e75c3}=_0x9f762f,{scene:_0x3d77eb}=this[_0x23f34d(0x215)];_0x3d77eb[_0x23f34d(0x311)][_0x23f34d(0x1c0)](_0x30190f(_0x3c91e1=>{const _0x373e38=_0x23f34d;var _0x175326,_0x2e4871;const {offsetX:_0x4d79ab,offsetY:_0x2ab4e4}=_0x3c91e1,{x:_0x305cbd,y:_0x3f47a6}=_0x3d77eb[_0x373e38(0x1c4)](_0x5e8c29[_0x373e38(0x32d)]([_0x4d79ab,_0x2ab4e4])),{scaleX:_0x3ba0dd,scaleY:_0x16bad4}=_0x3d77eb[_0x373e38(0x30c)](),_0x4833c8=_0x3d77eb['getViewport'](_0x1dc34d[_0x373e38(0x1dd)]),_0x2264cc=_0x3d77eb['getVpScrollXYInfoByPosToVp'](_0x5e8c29[_0x373e38(0x32d)]([_0x305cbd,_0x3f47a6]),_0x4833c8),_0x27bd25=_0x1e75c3[_0x373e38(0x1b9)](_0x4d79ab,_0x2ab4e4,_0x3ba0dd,_0x16bad4,_0x2264cc);((_0x175326=this[_0x373e38(0x16f)])==null?void 0x0:_0x175326[_0x373e38(0x1f9)])===_0x27bd25[_0x373e38(0x1f9)]&&((_0x2e4871=this['_lastPointer'])==null?void 0x0:_0x2e4871[_0x373e38(0x1cf)])===_0x27bd25[_0x373e38(0x1cf)]||this[_0x373e38(0x29d)][_0x373e38(0x280)](_0x25a1cf=>{const _0x566339=_0x373e38;_0x25a1cf[_0x566339(0x1a0)](_0x27bd25);});},0x64));});}[_0x14c74a(0x2cc)](_0x1f7e59,_0x4ab115){const _0x32510e=_0x14c74a;var _0x1fbd1a;const _0x346dc8=(_0x1fbd1a=this[_0x32510e(0x195)][_0x32510e(0x200)]())==null?void 0x0:_0x1fbd1a[_0x32510e(0x216)];if(!_0x346dc8)return;const _0x2db733=this[_0x32510e(0x35b)]();if(!_0x2db733)return;this['_cursors'][_0x32510e(0x280)](_0x2c21bd=>{const _0x2c2a58=_0x32510e;_0x2c21bd[_0x2c2a58(0x2d4)]();});const {scene:_0xe398bd}=_0x2db733,_0x2ac574=Ji(Array['from'](_0x4ab115[_0x32510e(0x2b9)]()))[_0x32510e(0x205)](_0x4e3abd=>{const _0x25d916=_0x32510e,{color:_0x4a5c3d,range:_0x216811,name:_0x2790a9,selection:_0x1aa3f8,sheetID:_0x38216a}=_0x4e3abd,{startColumn:_0x3c36c3,startRow:_0xdd504d,endColumn:_0x30b8ae,endRow:_0xfb877c}=_0x216811,_0x289b08=_0x233511(_0xdd504d,_0x3c36c3,_0xe398bd,_0x346dc8),_0x31bc69=_0x233511(_0xfb877c,_0x30b8ae,_0xe398bd,_0x346dc8),{columnHeaderHeightAndMarginTop:_0x5498e6}=_0x346dc8,{startX:_0x314b57,startY:_0x58a238}=_0x289b08,{endX:_0x163263,endY:_0x4fd45b}=_0x31bc69,_0x125168=_0x163263-_0x314b57,_0x2f1573=_0x4fd45b-_0x58a238,_0x209865={'labelPosition':_0x58a238-_0x5498e6>=J?_0x25d916(0x2d3):_0x25d916(0x1a9),'sheetID':_0x38216a,'range':_0x216811,'color':_0x4a5c3d,'name':_0x2790a9,'selection':_0x1aa3f8,'left':_0x314b57,'top':_0x58a238,'width':_0x125168,'height':_0x2f1573,'evented':!0x1,'zIndex':zi};return new Xi(_0x2790a9,_0x209865);});_0xe398bd[_0x32510e(0x214)](_0x2ac574,Vi),this['_cursors']=new Set(_0x2ac574);}[_0x14c74a(0x18e)](){const _0x5a5bab=_0x14c74a;var _0x1bc264;(_0x1bc264=this[_0x5a5bab(0x29d)])==null||_0x1bc264['forEach'](_0x4aa5f5=>_0x4aa5f5['dispose']());}['_getSheetObject'](){const _0x197056=_0x14c74a;return _0x3e250c(this[_0x197056(0x215)][_0x197056(0x1a8)],this['_context']);}};Pe=Ki([pe(0x1,_0x4fff92(_0x50e06b)),pe(0x2,_0x4fff92(F)),pe(0x3,_0x4fff92(_0x3ea1cc))],Pe);function Ji(_0x44b114){const _0x303a4f=_0x14c74a,_0x4d1fac=new Map();return _0x44b114[_0x303a4f(0x280)](_0x69aaac=>{const _0xf8836=_0x303a4f;if(_0x4d1fac[_0xf8836(0x21c)](_0x69aaac[_0xf8836(0x19e)])){const _0x439bb0=_0x4d1fac[_0xf8836(0x352)](_0x69aaac[_0xf8836(0x19e)]);_0x439bb0[_0xf8836(0x1bb)]+=',\x20'+_0x69aaac[_0xf8836(0x1bb)];}else _0x4d1fac[_0xf8836(0x314)](_0x69aaac[_0xf8836(0x19e)],_0x69aaac);}),Array[_0x303a4f(0x1c2)](_0x4d1fac['values']());}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x521654,_0x56e1cf,_0x133184,_0x5b7aee)=>{const _0x4228c1=_0x14c74a;for(var _0x5c3958=_0x5b7aee>0x1?void 0x0:_0x5b7aee?Zi(_0x56e1cf,_0x133184):_0x56e1cf,_0x223848=_0x521654[_0x4228c1(0x2f1)]-0x1,_0x3d69f7;_0x223848>=0x0;_0x223848--)(_0x3d69f7=_0x521654[_0x223848])&&(_0x5c3958=_0x3d69f7(_0x5c3958)||_0x5c3958);return _0x5c3958;},B=(_0x20dc4f,_0x3029b6)=>(_0x4b9b8b,_0x26f333)=>_0x3029b6(_0x4b9b8b,_0x26f333,_0x20dc4f);let ne=class extends _0xdd38f3{constructor(_0x2f2b41,_0x1a2280,_0x3abe8b,_0x1b9053,_0x5b9cca,_0x28e1d9){const _0x2d224c=_0x14c74a;super(),this[_0x2d224c(0x31a)]=_0x2f2b41,this[_0x2d224c(0x1df)]=_0x1a2280,this[_0x2d224c(0x359)]=_0x3abe8b,this[_0x2d224c(0x16b)]=_0x1b9053,this[_0x2d224c(0x266)]=_0x5b9cca,this[_0x2d224c(0x15a)]=_0x28e1d9,this['_setupBeforeClosingHandler'](),this[_0x2d224c(0x1ea)]();}[_0x14c74a(0x21d)](){const _0x4a573c=_0x14c74a;this[_0x4a573c(0x2d1)](this[_0x4a573c(0x31a)][_0x4a573c(0x1bd)](()=>{const _0x14a322=_0x4a573c;if(this[_0x14a322(0x1df)][_0x14a322(0x33f)][_0x14a322(0x320)])return this[_0x14a322(0x15a)]['t'](_0x14a322(0x346));}));}['_initEvent'](){const _0x35c57e=_0x14c74a;this[_0x35c57e(0x2d1)](this['_collaborationUIEventService']['event$'][_0x35c57e(0x1c9)](_0x34a3cb=>{const _0x458cf3=_0x35c57e;_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x30f)]&&this['_messageService'][_0x458cf3(0x1ff)]({'type':_0x1b5003[_0x458cf3(0x20b)],'content':this[_0x458cf3(0x15a)]['t'](_0x458cf3(0x2e6))}),_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x2db)]&&this[_0x458cf3(0x16b)][_0x458cf3(0x1ff)]({'type':_0x1b5003[_0x458cf3(0x20b)],'content':this[_0x458cf3(0x15a)]['t'](_0x458cf3(0x24d))}),_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x351)]&&this[_0x458cf3(0x266)][_0x458cf3(0x1ff)]({'title':this[_0x458cf3(0x15a)]['t']('permission.title'),'content':this[_0x458cf3(0x15a)]['t'](_0x458cf3(0x1c6)),'type':_0x458cf3(0x170),'duration':0x0}),_0x34a3cb['id']===_0x1cabf7['CONFLICT']&&this[_0x458cf3(0x16b)][_0x458cf3(0x1ff)]({'type':_0x1b5003[_0x458cf3(0x26c)],'content':this[_0x458cf3(0x15a)]['t'](_0x458cf3(0x24d))+'('+_0x34a3cb[_0x458cf3(0x2ff)]+')'}),_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x20d)]&&this[_0x458cf3(0x16b)]['show']({'type':_0x1b5003[_0x458cf3(0x20b)],'content':this['_localeService']['t'](_0x34a3cb['data']||'')}),_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x287)]&&this[_0x458cf3(0x16b)][_0x458cf3(0x1ff)]({'type':_0x1b5003[_0x458cf3(0x20b)],'content':this['_localeService']['t'](_0x458cf3(0x17f))}),_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x1c1)]&&this[_0x458cf3(0x16b)][_0x458cf3(0x1ff)]({'type':_0x1b5003[_0x458cf3(0x26c)],'content':this[_0x458cf3(0x15a)]['t']('session.connection-failed')}),_0x34a3cb['id']===_0x1cabf7['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x458cf3(0x16b)]['show']({'type':_0x1b5003[_0x458cf3(0x26c)],'content':this['_localeService']['t'](_0x458cf3(0x35c))});}));}};ne=Qi([B(0x0,_0x50fe48),B(0x1,_0x51b3f0),B(0x2,_0x4fff92(_0x59464a)),B(0x3,_0x2585ff),B(0x4,_0x3dc479),B(0x5,_0x4fff92(_0x5b784e))],ne);const qi=_0x14c74a(0x165),et={};var en=Object[_0x14c74a(0x192)],tn=(_0x434fc7,_0x2d3e7c,_0x3ee43c,_0x59d0b5)=>{const _0x55cd80=_0x14c74a;for(var _0x3a1ff6=_0x59d0b5>0x1?void 0x0:_0x59d0b5?en(_0x2d3e7c,_0x3ee43c):_0x2d3e7c,_0x535f6a=_0x434fc7[_0x55cd80(0x2f1)]-0x1,_0x457a64;_0x535f6a>=0x0;_0x535f6a--)(_0x457a64=_0x434fc7[_0x535f6a])&&(_0x3a1ff6=_0x457a64(_0x3a1ff6)||_0x3a1ff6);return _0x3a1ff6;},tt=(_0xd09ae2,_0x21121b)=>(_0x3434dc,_0x290274)=>_0x21121b(_0x3434dc,_0x290274,_0xd09ae2);let re=class{constructor(_0x31e2c2,_0x30aa56){const _0x484a7b=_0x14c74a;this[_0x484a7b(0x1ed)]=_0x31e2c2,this[_0x484a7b(0x227)]=_0x30aa56;}[_0x14c74a(0x19b)](_0x5b6de6){this['_transformUndoRedoStack'](_0x5b6de6),this['_transformPreviousActiveRange'](_0x5b6de6);}[_0x14c74a(0x183)](_0x245ceb){const _0x3bad16=_0x14c74a,{unitID:_0x749151}=_0x245ceb,_0x362165=this[_0x3bad16(0x227)][_0x3bad16(0x258)](_0x749151)[_0x3bad16(0x1ba)](_0x25748e),{redoCache:_0x4b439e}=_0x362165[_0x3bad16(0x2fc)]();if(_0x4b439e[_0x3bad16(0x2f1)]===0x0)return _0x245ceb;let _0x5e4a18=_0x4ee51e[_0x3bad16(0x288)](_0x245ceb[_0x3bad16(0x342)][0x0]);for(let _0xd59af=0x0;_0xd59af<_0x4b439e['length'];_0xd59af++){const _0x586554={'id':'doc.mutation.rich-text-editing','params':{..._0x4b439e[_0xd59af]}},_0x1fc6c4=this['_transformService'][_0x3bad16(0x197)](_0x5e4a18,_0x586554,!0x1);if(_0x145735(_0x1fc6c4))throw _0x1fc6c4['error'];_0x5e4a18=_0x1fc6c4[_0x3bad16(0x179)];}return{..._0x4ee51e[_0x3bad16(0x288)](_0x245ceb),'mutations':[_0x5e4a18]};}[_0x14c74a(0x1d1)](_0x4467ef){const _0x195fc6=_0x14c74a,{unitID:_0x1b082d}=_0x4467ef,_0x3b5905=this[_0x195fc6(0x227)][_0x195fc6(0x258)](_0x1b082d)[_0x195fc6(0x1ba)](_0x25748e),{undoCache:_0x5b9feb,redoCache:_0x4c965f}=_0x3b5905['getUndoRedoMutationParamsCache']();if(_0x5b9feb[_0x195fc6(0x2f1)]===0x0||_0x4c965f['length']===0x0)return;const _0x4469ad=[],_0x42d019=[];let _0x1c4a86=_0x4ee51e[_0x195fc6(0x288)](_0x4467ef[_0x195fc6(0x342)][0x0]),_0x3aab77=_0x4ee51e['deepClone'](_0x4467ef[_0x195fc6(0x342)][0x0]);for(let _0x466ad5=_0x5b9feb[_0x195fc6(0x2f1)]-0x1;_0x466ad5>=0x0;_0x466ad5--){const _0x1a19dd={'id':'doc.mutation.rich-text-editing','params':{..._0x5b9feb[_0x466ad5]}},_0xb4b2b6={'id':_0x195fc6(0x335),'params':{..._0x4c965f[_0x466ad5]}},_0x449b3f=this[_0x195fc6(0x1ed)]['transformMutation'](_0x1c4a86,_0x1a19dd,!0x1),_0x1d18aa=this[_0x195fc6(0x1ed)]['transformMutation'](_0x3aab77,_0xb4b2b6,!0x1);if(_0x145735(_0x449b3f))throw _0x449b3f['error'];if(_0x145735(_0x1d18aa))throw _0x1d18aa[_0x195fc6(0x170)];_0x4469ad[_0x195fc6(0x1fa)](_0x449b3f[_0x195fc6(0x316)][_0x195fc6(0x2be)]),_0x42d019[_0x195fc6(0x1fa)](_0x1d18aa[_0x195fc6(0x316)][_0x195fc6(0x2be)]),_0x1c4a86=_0x449b3f[_0x195fc6(0x179)],_0x3aab77=_0x1d18aa[_0x195fc6(0x179)];}_0x3b5905[_0x195fc6(0x345)]({'undoCache':_0x4469ad,'redoCache':_0x42d019});}[_0x14c74a(0x2e7)](_0x37724d){const _0x2507d2=_0x14c74a,{unitID:_0x476596}=_0x37724d,_0x216d91=this[_0x2507d2(0x227)][_0x2507d2(0x258)](_0x476596)[_0x2507d2(0x1ba)](_0x25748e),_0x5cd44a=_0x216d91[_0x2507d2(0x33e)]();if(_0x5cd44a==null)return;const _0x287580=[{'id':_0x2507d2(0x335),'params':{'unitId':_0x37724d[_0x2507d2(0x2a2)],'actions':null,'textRanges':[_0x5cd44a]}}],_0x3337e9=this[_0x2507d2(0x1ed)][_0x2507d2(0x24e)](_0x37724d,_0x287580);if(!_0x20f632(_0x3337e9))throw _0x3337e9[_0x2507d2(0x170)];const _0xb51802=_0x3337e9[_0x2507d2(0x316)][0x0][_0x2507d2(0x2be)][_0x2507d2(0x35a)];Array[_0x2507d2(0x27f)](_0xb51802)&&_0xb51802['length']&&_0x216d91[_0x2507d2(0x1d9)](_0xb51802[0x0]);}};re=tn([tt(0x0,_0x315634),tt(0x1,_0x34cabc)],re);var sn=Object[_0x14c74a(0x192)],nn=(_0x48e9cd,_0x5bfff7,_0x16159d,_0x5d5863)=>{const _0x303659=_0x14c74a;for(var _0x484f06=_0x5d5863>0x1?void 0x0:_0x5d5863?sn(_0x5bfff7,_0x16159d):_0x5bfff7,_0xb8c6ad=_0x48e9cd[_0x303659(0x2f1)]-0x1,_0x31f1a8;_0xb8c6ad>=0x0;_0xb8c6ad--)(_0x31f1a8=_0x48e9cd[_0xb8c6ad])&&(_0x484f06=_0x31f1a8(_0x484f06)||_0x484f06);return _0x484f06;},Ce=(_0xa1f478,_0x257b4a)=>(_0x29eda0,_0x364f01)=>_0x257b4a(_0x29eda0,_0x364f01,_0xa1f478);function _0x3130(_0x5816be,_0x5cb43f){const _0x372b6b=_0x372b();return _0x3130=function(_0x3130df,_0x12b444){_0x3130df=_0x3130df-0x159;let _0x58b8fa=_0x372b6b[_0x3130df];return _0x58b8fa;},_0x3130(_0x5816be,_0x5cb43f);}let oe=class{constructor(_0x51cf21,_0x47d19c,_0x15638c){const _0x1bfd00=_0x14c74a;this['_injector']=_0x51cf21,this[_0x1bfd00(0x1ed)]=_0x47d19c,this[_0x1bfd00(0x1e3)]=_0x15638c;}[_0x14c74a(0x162)](_0x21a569){const _0x2de07d=_0x14c74a;this[_0x2de07d(0x341)](_0x21a569);}[_0x14c74a(0x183)](_0x248196){const _0x5e188b=_0x14c74a,{unitID:_0x107245}=_0x248196,{collaboration:_0x5a4a4d}=this['_docStateChangeManagerService'][_0x5e188b(0x1fd)](_0x107245);if(_0x5a4a4d[_0x5e188b(0x2f1)]===0x0)return _0x248196;let _0x3570db=_0x4ee51e[_0x5e188b(0x288)](_0x248196[_0x5e188b(0x342)][0x0]);for(let _0x2f377b=0x0;_0x2f377b<_0x5a4a4d[_0x5e188b(0x2f1)];_0x2f377b++){const _0x4586cb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5a4a4d[_0x2f377b][_0x5e188b(0x277)],..._0x5a4a4d[_0x2f377b][_0x5e188b(0x240)]}},_0x280359=this[_0x5e188b(0x1ed)]['transformMutation'](_0x3570db,_0x4586cb,!0x1);if(_0x145735(_0x280359))throw _0x280359['error'];_0x3570db=_0x280359['m1Prime'];}return{..._0x4ee51e[_0x5e188b(0x288)](_0x248196),'mutations':[_0x3570db]};}[_0x14c74a(0x341)](_0x591850){const _0xed3af1=_0x14c74a,{unitID:_0x131f15}=_0x591850,{history:_0x262cd2,collaboration:_0x36d5cf}=this[_0xed3af1(0x1e3)]['getStateCache'](_0x131f15);if(_0x262cd2['length']===0x0&&_0x36d5cf[_0xed3af1(0x2f1)]===0x0)return;const _0x2ce881=[],_0x10fb4a=[];let _0x190e5f=_0x4ee51e['deepClone'](_0x591850[_0xed3af1(0x342)][0x0]),_0x2fde49=_0x4ee51e[_0xed3af1(0x288)](_0x591850[_0xed3af1(0x342)][0x0]);for(let _0x562742=_0x262cd2['length']-0x1;_0x562742>=0x0;_0x562742--){const _0x1cb3fc={'id':_0xed3af1(0x335),'params':{'unitId':_0x262cd2[_0x562742][_0xed3af1(0x277)],..._0x262cd2[_0x562742]['undoState']}},_0x324a97={'id':_0xed3af1(0x335),'params':{'unitId':_0x262cd2[_0x562742][_0xed3af1(0x277)],..._0x262cd2[_0x562742][_0xed3af1(0x240)]}},_0x484701=this['_transformService'][_0xed3af1(0x197)](_0x190e5f,_0x1cb3fc,!0x1),_0x27580f=this['_transformService']['transformMutation'](_0x2fde49,_0x324a97,!0x1);if(_0x145735(_0x484701))throw _0x484701[_0xed3af1(0x170)];if(_0x145735(_0x27580f))throw _0x27580f['error'];_0x2ce881['unshift']({..._0x262cd2[_0x562742],'undoState':_0x484701[_0xed3af1(0x316)][_0xed3af1(0x2be)],'redoState':_0x27580f[_0xed3af1(0x316)][_0xed3af1(0x2be)]}),_0x190e5f=_0x484701['m1Prime'],_0x2fde49=_0x27580f[_0xed3af1(0x179)];}_0x190e5f=_0x4ee51e[_0xed3af1(0x288)](_0x591850['mutations'][0x0]),_0x2fde49=_0x4ee51e[_0xed3af1(0x288)](_0x591850[_0xed3af1(0x342)][0x0]);for(let _0x454db8=_0x36d5cf[_0xed3af1(0x2f1)]-0x1;_0x454db8>=0x0;_0x454db8--){const _0x4d2a29={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36d5cf[_0x454db8][_0xed3af1(0x277)],..._0x36d5cf[_0x454db8][_0xed3af1(0x308)]}},_0x596ea4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36d5cf[_0x454db8][_0xed3af1(0x277)],..._0x36d5cf[_0x454db8][_0xed3af1(0x240)]}},_0xd5a150=this[_0xed3af1(0x1ed)][_0xed3af1(0x197)](_0x190e5f,_0x4d2a29,!0x1),_0xfd9b68=this[_0xed3af1(0x1ed)]['transformMutation'](_0x2fde49,_0x596ea4,!0x1);if(_0x145735(_0xd5a150))throw _0xd5a150[_0xed3af1(0x170)];if(_0x145735(_0xfd9b68))throw _0xfd9b68[_0xed3af1(0x170)];_0x10fb4a[_0xed3af1(0x1fa)]({..._0x36d5cf[_0x454db8],'undoState':_0xd5a150['m2Prime']['params'],'redoState':_0xfd9b68['m2Prime'][_0xed3af1(0x2be)]}),_0x190e5f=_0xd5a150[_0xed3af1(0x179)],_0x2fde49=_0xfd9b68[_0xed3af1(0x179)];}this[_0xed3af1(0x1e3)][_0xed3af1(0x2c2)](_0x131f15,{'history':_0x2ce881,'collaboration':_0x10fb4a});}};oe=nn([Ce(0x0,_0x4fff92(_0x59495a)),Ce(0x1,_0x315634),Ce(0x2,_0x4fff92(_0x14b757))],oe);var rn=Object[_0x14c74a(0x192)],on=(_0xae7da8,_0x105e05,_0x3f3497,_0x306da0)=>{const _0x37be02=_0x14c74a;for(var _0x438ac0=_0x306da0>0x1?void 0x0:_0x306da0?rn(_0x105e05,_0x3f3497):_0x105e05,_0x42c275=_0xae7da8[_0x37be02(0x2f1)]-0x1,_0x1ed881;_0x42c275>=0x0;_0x42c275--)(_0x1ed881=_0xae7da8[_0x42c275])&&(_0x438ac0=_0x1ed881(_0x438ac0)||_0x438ac0);return _0x438ac0;},st=(_0x4478ab,_0x4ab2db)=>(_0x2d0c94,_0x3f0057)=>_0x4ab2db(_0x2d0c94,_0x3f0057,_0x4478ab);let ae=class{constructor(_0x5852be,_0x558918){const _0x971d4a=_0x14c74a;this[_0x971d4a(0x24c)]=_0x5852be,this[_0x971d4a(0x1ed)]=_0x558918;}['transformSelections'](_0x2dd212){const _0x25184b=_0x14c74a;var _0x4177c9;const _0x89a1b8=this[_0x25184b(0x24c)]['get'](_0x18393c),_0x31edf0=(_0x4177c9=_0x89a1b8[_0x25184b(0x347)]())!=null?_0x4177c9:[];if(_0x31edf0['length']===0x0)return;const _0x3b04e4=_0x2dd212[_0x25184b(0x2a2)],_0x30b20e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b04e4,'actions':null,'textRanges':_0x31edf0}}],_0x2589c6=this[_0x25184b(0x1ed)][_0x25184b(0x24e)](_0x2dd212,_0x30b20e);if(!_0x20f632(_0x2589c6))throw _0x2589c6[_0x25184b(0x170)];const _0x4f5585=_0x2589c6['m2Prime'][0x0][_0x25184b(0x2be)][_0x25184b(0x35a)];Array[_0x25184b(0x27f)](_0x4f5585)&&_0x4f5585[_0x25184b(0x2f1)]&&_0x89a1b8[_0x25184b(0x256)](_0x4f5585,{'unitId':_0x3b04e4,'subUnitId':_0x3b04e4},!0x1);}};ae=on([st(0x0,_0x4fff92(_0x59495a)),st(0x1,_0x315634)],ae);var an=Object['getOwnPropertyDescriptor'],cn=(_0x55c32d,_0x2e316b,_0xd5fa5a,_0x45e04e)=>{const _0x1f46bb=_0x14c74a;for(var _0x217aa0=_0x45e04e>0x1?void 0x0:_0x45e04e?an(_0x2e316b,_0xd5fa5a):_0x2e316b,_0x51bc9e=_0x55c32d[_0x1f46bb(0x2f1)]-0x1,_0x4f6f22;_0x51bc9e>=0x0;_0x51bc9e--)(_0x4f6f22=_0x55c32d[_0x51bc9e])&&(_0x217aa0=_0x4f6f22(_0x217aa0)||_0x217aa0);return _0x217aa0;},N=(_0x2598a3,_0x5ef5f2)=>(_0x14a718,_0x3e9c3c)=>_0x5ef5f2(_0x14a718,_0x3e9c3c,_0x2598a3);let ce=class extends _0xdd38f3{constructor(_0x2d6b64,_0x10da5f,_0x2338f1,_0x40f2c9,_0x5324a4,_0xd26da8,_0x563350,_0x38d5f2){const _0xb6acd3=_0x14c74a;super(),_(this,_0xb6acd3(0x29c),new _0x1bb8bf(_0x1db2c6[_0xb6acd3(0x1fb)])),(this[_0xb6acd3(0x1e3)]=_0x2d6b64,this[_0xb6acd3(0x1ad)]=_0x10da5f,this[_0xb6acd3(0x17d)]=_0x2338f1,this[_0xb6acd3(0x264)]=_0x40f2c9,this[_0xb6acd3(0x2bb)]=_0x5324a4,this['_docSyncEditingCollabCursorService']=_0xd26da8,this[_0xb6acd3(0x16b)]=_0x563350,this[_0xb6acd3(0x15a)]=_0x38d5f2,this['_initEntityListener']());}[_0x14c74a(0x34d)](){const _0x56d0d4=_0x14c74a;this[_0x56d0d4(0x2d1)](this['_collaborationController']['entityInit$'][_0x56d0d4(0x1c9)](_0x1216ca=>{const _0x5ed5e1=_0x56d0d4,_0x2c3de2=this[_0x5ed5e1(0x1e3)]['docStateChange$'][_0x5ed5e1(0x1c9)](_0x3595f5=>{const _0x57fd27=_0x5ed5e1;if(_0x3595f5==null)return;const {unitId:_0x2d48ba,redoState:_0x32ebc6,commandId:_0x1b8ad1}=_0x3595f5;if(_0x2d48ba!==_0x1216ca['unitID'])return;const _0x34b0a4={'id':_0x1b8ad1,'type':_0xbff3c6[_0x57fd27(0x2f7)],'params':{'unitId':_0x2d48ba,'actions':_0x32ebc6['actions'],'textRanges':null}};_0x1216ca[_0x57fd27(0x244)](_0x34b0a4);});if(_0x1216ca['disposeWithMe'](_0x2c3de2),_0x1216ca instanceof _0x4a7a20){const _0x35761b={'onTransformIME':_0x212acf=>this['_docTransformIMECacheService']['transformIMECache'](_0x212acf),'onTransformState':_0x430d26=>this[_0x5ed5e1(0x264)][_0x5ed5e1(0x162)](_0x430d26),'onTransformSelections':_0xc9d328=>this['_docTransformSelectionsService'][_0x5ed5e1(0x350)](_0xc9d328),'onSyncEditingCollabCursor':_0x18b039=>this['_docSyncEditingCollabCursorService'][_0x5ed5e1(0x32c)](_0x18b039),'onTransformRemoteChangesetByIMECache':_0x1813c0=>this[_0x5ed5e1(0x17d)][_0x5ed5e1(0x183)](_0x1813c0),'onTransformRemoteChangesetByStateCache':_0x5793d2=>this[_0x5ed5e1(0x264)][_0x5ed5e1(0x183)](_0x5793d2)};_0x1216ca[_0x5ed5e1(0x209)](_0x35761b);}}));}};function _0x372b(){const _0x116323=['YUUMI_AI_RUN_FAILED','selections','cursorInfo','urlChange$','UNRECOGNIZED','_drawRectRange','_getSessionTicket','use','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_registerDependencies','YUUMI_CONNECTOR_URL_NOT_FOUND','max','_entities','currentColor','_setupSubUnitSync','range','ENSURE_SNAPSHOT_EXECUTION','DeleteRangeMoveLeftCommandId','redoState','UNDEFINED','setItem','_startSheetCollabCursor','onLocalMutation','_config','ONLINE','tag','_collabCursorState$','startRow','transform','transformByState','_injector','collaboration.closeRoom','transformMutationsWithChangeset','ranges','_univerInstanceService','collab-text-anchor-','className','_session','defineProperty','labelPosition','replaceDocRanges','measureText','getRenderById','/run/','defs','collabCursorState$','getSheetBySheetId','function','_handleHeartbeatEvent','_hover','white','collabStatus.syncing','OTHER_CLIENTS_EDITING','subUnitId','_docTransformStateCacheService','_syncEditingCollabCursorService','_notificationService','_scheduleClearOtherTimer','imageSourceType','_scene','dispose','registerRenderModule','Error','YUUMI_ASYNCIO_CANCELLED','MOBILE_HAS_BEEN_BOUND','assign','_init','substring','EMAIL_VERIFY_CODE_MISMATCH','getCollabCursors$','0\x200\x2017\x2016','onRendered','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','unitId','7330384gOnvGn','CONNECTOR_DATA_TOO_LARGE','OFFLINE','_createSocketURL','roomMembers','isActive','INVALID_ARGUMENT','isArray','forEach','then','24cMWScB','YUUMI_RATE_OVER_LIMIT','storage','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','cursorInfo$','SOCKET_FAILED_RETRY','deepClone','[CollaborationDataLoaderController]','prototype','event$','onPointerLeave$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','override','debug','delete','4286502HKpjhO','origin','getOwnPropertySymbols','Unknown\x20user','_handleLeaveEvent','complete','path','univer-mr-2\x20univer-flex\x20univer-text-xl','split','_collabCursorController','mask','_status$','_cursors','url(#$1','_commandService','search','_online','unitID','send','width','_refreshCollabCursors','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','pushState','getSheetId','href','colorChannel1','[RemoteUniscriptService]:\x20no\x20focused\x20unit','PY_RUNTIME_SCRIPT_ERROR','_imageIoService','ticket','black','setConfig','_getScale','_instanceService','UNAUTHENTICATED','YUUMI_UNABLE_LOAD_URL','getMember','unsubscribe','push','EMAIL_HAS_BEEN_BOUND','values','replace','_docTransformSelectionsService','runId','TEXT','params','OnLineIcon','_shapes','AWAITING','setStateCache','_refRangeService','onPointerEnter$','_updateLocalCursor','http://www.w3.org/2000/svg','COMPLETION_FINISHED','includes','_range','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','translate(.97)','_updateCollabCursors','_initStatusComponent','key','sessionTicket','_heartbeatTimer','disposeWithMe','YUUMI_URL_COL_OUT_OF_RANGE','top','makeDirty','ACTIVE_UNIT_EVENT_CHANNEL','on-line-icon_clip0_910_349','assignAColorForMemberID','setShapeProps','_getSaveTimeout','save','CLOSE_ROOM','_onRefRangeChange','_localStorageService','_handleEvent','RemoveRowCommandId','TOO_MANY_REQUESTS','findNodePositionByCharIndex','SNAPSHOT_INVALID_SNAPSHOT','getUniverSheetInstance','isEditing','init','collaboration.single-unit.warning','_transformPreviousActiveRange','engine','LICENSE_IMPORT_SIZE_EXCEEDED','getCurrentUnitForType','focused$','_registerRenderDependencies','exhaustSavingTask','body','restore','_backgroundColor','length','_saveTaskMap','evenodd','_roomMembers$','_updateSubUnitFromURLParams','getUnitStatus$','MUTATION','collab-rect-range-','getConfig','stringify','executionId','getUndoRedoMutationParamsCache','APPLY_DUPLICATED','asObservable','data','collabStatus.conflict','invokeId','_colorIndex','string','getActiveSheet','58871ldlfWG','_onCursorDelete','INVALID_INVITE_CODE','undoState','LOGIN_FAILED','concat','_docSkeletonManagerService','getAncestorScale','rgba(255,\x20255,\x20255,\x200.01)','RemoveColCommandId','OTHER_CLIENT_EDITING','0\x200\x2016\x2016','onPointerMove$','popstate','_anchorDot','set','54tFjWne','m2Prime','xlink:href','26835wrvFsO','_send','_beforeCloseService','_name','UniverIcon','_revisionService','next','AWAITING_WITH_PENDING','size','attrs','drawWith','backgroundColor','_scheduleHeartbeat','collabStatus.notCollab','LICENSE_EXPORT_SIZE_EXCEEDED','off-line-icon_clip0_910_343','hovered','fill','APPLY_PERMISSION_DENIED','svg','syncEditingCollabCursor','FromArray','sessionStatus$','_selfUnitIDs','collabStatus.synced','color','_initCommandExecutedListener','getTypeOfUnitDisposed$','addObject','doc.mutation.rich-text-editing','arc','on-line-icon','disableLocalCache','_initResize','setTimeout','sheetId','clipPath','_urlService','getActiveRange','saveTaskMap','getMergeData','_transformHistoryAndStateStack','mutations','loadOfflineData','INTERNAL_ERROR','setUndoRedoMutationParamsCache','collaboration-client.offline-data-not-saved','getDocRanges','moveTo','setParam','_removeClearOtherTimer','reconnect','onCommandExecuted','_initEntityListener','setAlpha','_onCursorUpdate','transformSelections','PERMISSION_DENIED','get','clearInterval','WECHAT_HAS_BEEN_BOUND','_unitStatus','add','_handleHover','FETCH_MISS','_collaborationUIEventService','textRanges','_getSheetObject','session.collaboration-timeout','YUUMI_ALL_TABLES_IS_INVALID','icon','hasOwnProperty','_localeService','InsertRangeMoveRightCommandId','endColumn','_docSkeleton','createSocket','_toggleOffline','_toggleOnline','_themeService','transformStateCache','OffLineIcon','_cursorInfo$','collaboration-client-ui.config','_colorAssignService','sheetID','_httpService','...','_ensureSubject','_messageService','idSuffix','getParam','status$','_lastPointer','error','_drawTextRange','extend','url(#on-line-icon_clip0_910_349)','LICENSE_MAX_UNITS_EXCEEDED','onStarting','displayName','fillStyle','UPDATE_CURSOR','m1Prime','blue.400','registerRefRange','#FFF','_docTransformIMECacheService','USER_NOT_INVITED_CODE','session.will-retry','_draw','clearTimeout','newValue','transformRemoteChangeset','pipe','currentTheme$','result','YUUMI_SUBSCRIPTION_NOT_FOUND','LICENSE_DISTRO_REJECTED','_logService','_memberService','application/json','defIds','getColorFromTheme','_removeCollabCursors','getRangePointData','getCurrentRevOfUnit','_hideTimer','getOwnPropertyDescriptor','source','_anchor','_sheetSkeletonManagerService','saveOfflineData','transformMutation','resize','INVITE_CODE_ALREADY_BOUND','_cachedData','transformIMECache','_cursor','red.300','selection','_eventUnsubscribe','onMouseMove','Failed','toRgbString','_initDependencies','_drawAnchor','32755320GqfNzI','getValue','_handleJoinEvent','unit','bottom','min','HEADER_MENU','_assignedColors','_collaborationController','roomMembers$','28QnOxYR','fillRule','_id','symbol','UNIVER_DOC','getSkeleton','SNAPSHOT_HAS_BEEN_REMOVED','_cursorShapes','indexOf','createInstance','getCellPositionByOffset','with','name','current','registerBeforeClose','fillText','dispose$','subscribeEvent','SOCKET_FAILED','from','post','getRelativeToViewportCoord','propertyIsEnumerable','permission.content','getFocusedUnit','_textBubble','subscribe','_uiPartsService','addClipboardHook','hide','CHANGESET_REVISION_CONFILICT','div','row','disposeUnit','_transformUndoRedoStack','jiqing.500','_color','_initStatusListener','USERS_LEAVE','subunit','_startDocCollabCursor','_saveCache','setActiveRange','getTypeOfUnitAdded$','_configService','_scheduleSaving','VIEW_MAIN','location','_localCacheService','editingUnit','setInterval','beginPath','_docStateChangeManagerService','lineTo','whenReady','_dataLoaderService','some','_collabSessionService','_updateURLWithCurrentState','_initEvent','type','getMemberID','_transformService','InsertRowCommandId','71646ZMLLpr','history','code','752213gmbcpL','CONFLICT','none','height','entries','currentSkeleton$','activeSheet$','column','unshift','NOT_COLLAB','triggerDblclick','getStateCache','_unitOnClients','show','getCurrent','_getAnchorBounding','_entityInit$','executeCommand','url(#off-line-icon_clip0_910_343)','map','registerComponent','InsertColCommandId','UNIVER_SHEET','addHandlerCallback','_hovered','Warning','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','JOIN_ROOM_FAILED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUnitId','eventID','loadUnit','round','APPLY_NON_SEQUENTIAL_REVISION','addObjects','_context','skeleton','ALREADY_EXISTS','wsSessionTicketUrl','APPLY_REJECT','APPLY_REVISION_CONFILICT','M0\x200H16V16H0z','has','_setupBeforeClosingHandler','INVITE_CODE_REQUIRED','children','DeleteRangeMoveUpCommandId','_clearOtherTimers','replaceState','toString','call','text','_disabled','_renderManagerService','1em','searchParams','RECT','_labelPosition','_docClipboardService','parse'];_0x372b=function(){return _0x116323;};return _0x372b();}ce=cn([N(0x0,_0x4fff92(_0x14b757)),N(0x1,_0x4fff92(_0x43ceef)),N(0x2,_0x4fff92(re)),N(0x3,_0x4fff92(oe)),N(0x4,_0x4fff92(ae)),N(0x5,_0x4fff92(Fe)),N(0x6,_0x2585ff),N(0x7,_0x4fff92(_0x5b784e))],ce);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x4f1e1c,_0x5c9552,_0xff9bd1,_0x27801a)=>{const _0x543d5f=_0x14c74a;for(var _0x480bd7=_0x27801a>0x1?void 0x0:_0x27801a?ln(_0x5c9552,_0xff9bd1):_0x5c9552,_0x51d6e4=_0x4f1e1c[_0x543d5f(0x2f1)]-0x1,_0x427b42;_0x51d6e4>=0x0;_0x51d6e4--)(_0x427b42=_0x4f1e1c[_0x51d6e4])&&(_0x480bd7=_0x427b42(_0x480bd7)||_0x480bd7);return _0x480bd7;},Ee=(_0x1418eb,_0x4eea45)=>(_0x526059,_0x13cb6e)=>_0x4eea45(_0x526059,_0x13cb6e,_0x1418eb);let we=class extends _0xdd38f3{constructor(_0x24f1f7,_0x2524a9,_0x454e04){const _0x58e1bb=_0x14c74a;super(),_(this,_0x58e1bb(0x19a),new Map()),_(this,_0x58e1bb(0x2f2),new Map()),_(this,_0x58e1bb(0x226),!0x1),(this[_0x58e1bb(0x1db)]=_0x24f1f7,this['_localStorageService']=_0x2524a9,this[_0x58e1bb(0x31d)]=_0x454e04);}[_0x14c74a(0x338)](){const _0x1842cb=_0x14c74a;this[_0x1842cb(0x226)]=!0x0;}['enableLocalCache'](){const _0x3e8a36=_0x14c74a;this[_0x3e8a36(0x226)]=!0x1;}get[_0x14c74a(0x33f)](){const _0x35c5cf=_0x14c74a;return this[_0x35c5cf(0x2f2)];}['dispose'](){const _0x320323=_0x14c74a;this[_0x320323(0x2ed)]()[_0x320323(0x281)](()=>super[_0x320323(0x26a)]());}async[_0x14c74a(0x343)](_0x3fd189){const _0x32d051=_0x14c74a;return this['_disabled']?null:this[_0x32d051(0x2dd)]['getItem'](_0x4eded7(_0x3fd189));}async[_0x14c74a(0x196)](_0x1ee143,_0x215a87){const _0x1a6aa3=_0x14c74a;return!!this[_0x1a6aa3(0x2dd)][_0x1a6aa3(0x242)](_0x1ee143,_0x215a87);}['updateOfflineData'](_0x25b4ad,_0x359fa4,_0xece26e,_0x25cd43){const _0x424b26=_0x14c74a,_0x53d5af=this[_0x424b26(0x31d)][_0x424b26(0x190)](_0x25b4ad);this['_cachedData']['set'](_0x25b4ad,{'unitID':_0x25b4ad,'type':_0x359fa4,'awaitingChangeset':_0xece26e,'mutations':_0x25cd43,'rev':_0x53d5af}),this['_saveTaskMap'][_0x424b26(0x21c)](_0x25b4ad)||this[_0x424b26(0x1dc)](_0x25b4ad);}['_scheduleSaving'](_0xcf6796){const _0x5daf4d=_0x14c74a,_0x55408c=this[_0x5daf4d(0x2d9)]();_0x55408c===0x0?this[_0x5daf4d(0x1d8)](_0xcf6796):this[_0x5daf4d(0x2f2)][_0x5daf4d(0x314)](_0xcf6796,setTimeout(()=>this[_0x5daf4d(0x1d8)](_0xcf6796),_0x55408c));}[_0x14c74a(0x2d9)](){const _0xf21632=_0x14c74a;var _0x5215ca;return(_0x5215ca=this[_0xf21632(0x1db)]['getConfig'](_0x5bb4aa))!=null?_0x5215ca:_0x45d479;}['_saveCache'](_0x31e461){const _0x4b41a0=_0x14c74a,_0x2fa86d=this[_0x4b41a0(0x2f2)][_0x4b41a0(0x352)](_0x31e461);return _0x2fa86d!==void 0x0&&window['clearTimeout'](_0x2fa86d),this[_0x4b41a0(0x2dd)]['setItem'](_0x4eded7(_0x31e461),this[_0x4b41a0(0x19a)]['get'](_0x31e461))[_0x4b41a0(0x281)](()=>this[_0x4b41a0(0x2f2)][_0x4b41a0(0x290)](_0x31e461));}async[_0x14c74a(0x2ed)](){const _0x130874=_0x14c74a,_0x5ef4bd=[];this[_0x130874(0x2f2)][_0x130874(0x280)]((_0x2449ae,_0x4d300d)=>{const _0xf078d4=_0x130874;window[_0xf078d4(0x181)](_0x2449ae),_0x5ef4bd[_0xf078d4(0x2b7)](this[_0xf078d4(0x1d8)](_0x4d300d)[_0xf078d4(0x281)](()=>{const _0x189b1a=_0xf078d4;this[_0x189b1a(0x2f2)][_0x189b1a(0x290)](_0x4d300d);}));}),await Promise['all'](_0x5ef4bd);}};we=_n([Ee(0x0,_0x1b5145),Ee(0x1,_0xd71f9),Ee(0x2,_0x4fff92(_0x2679d0))],we);class hn extends _0x270ee7{constructor(){const _0x588648=_0x14c74a;super(),_(this,_0x588648(0x231)),this[_0x588648(0x231)]=_0xf30f0(window,_0x588648(0x312))[_0x588648(0x184)](_0x2c2b7e(this[_0x588648(0x1bf)]),_0x56503d(0x1),_0x4c898c(void 0x0));}[_0x14c74a(0x349)](_0xabd84b,_0x3c6388,_0x1e6dae=!0x1){const _0x542ca7=_0x14c74a,_0x2e1d63=new URL(window['location']['href']);_0x2e1d63[_0x542ca7(0x229)][_0x542ca7(0x314)](_0xabd84b,_0x3c6388),_0x1e6dae?window['history']['replaceState']('','',_0x2e1d63[_0x542ca7(0x223)]()):window[_0x542ca7(0x1f0)][_0x542ca7(0x2a7)]('','',_0x2e1d63[_0x542ca7(0x223)]());}['removeParam'](_0x1faed5,_0x5caa9a=!0x1){const _0x5aad16=_0x14c74a,_0x9170fa=new URL(window[_0x5aad16(0x1de)][_0x5aad16(0x2a9)]);_0x9170fa[_0x5aad16(0x229)][_0x5aad16(0x290)](_0x1faed5),_0x5caa9a?window[_0x5aad16(0x1f0)][_0x5aad16(0x222)]('','',_0x9170fa['toString']()):window[_0x5aad16(0x1f0)][_0x5aad16(0x2a7)]('','',_0x9170fa[_0x5aad16(0x223)]());}[_0x14c74a(0x16d)](_0x243714){const _0x5aa690=_0x14c74a;var _0x3d55fc;return(_0x3d55fc=new URL(window[_0x5aa690(0x1de)]['href'])[_0x5aa690(0x229)][_0x5aa690(0x352)](_0x243714))!=null?_0x3d55fc:void 0x0;}}var un=Object[_0x14c74a(0x254)],dn=Object[_0x14c74a(0x192)],fn=(_0x58733c,_0x541525,_0x19942a)=>_0x541525 in _0x58733c?un(_0x58733c,_0x541525,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19942a}):_0x58733c[_0x541525]=_0x19942a,Sn=(_0x1bb734,_0x5c2af4,_0x92ae92,_0x23f190)=>{const _0x21d9a6=_0x14c74a;for(var _0x49519d=_0x23f190>0x1?void 0x0:_0x23f190?dn(_0x5c2af4,_0x92ae92):_0x5c2af4,_0x523d6d=_0x1bb734[_0x21d9a6(0x2f1)]-0x1,_0x2c52e8;_0x523d6d>=0x0;_0x523d6d--)(_0x2c52e8=_0x1bb734[_0x523d6d])&&(_0x49519d=_0x2c52e8(_0x49519d)||_0x49519d);return _0x49519d;},Oe=(_0x33fd8a,_0x303f67)=>(_0x1487b6,_0x49c585)=>_0x303f67(_0x1487b6,_0x49c585,_0x33fd8a),mn=(_0x983f9f,_0x3efa87,_0x4b93b7)=>fn(_0x983f9f,_0x3efa87+'',_0x4b93b7);const In=_0x14c74a(0x236);let Ae=class extends _0x18e775{constructor(_0x589931=et,_0x28c866,_0x237693,_0x1b8b9d){const _0xac1af5=_0x14c74a;super(),this[_0xac1af5(0x245)]=_0x589931,this['_renderManagerService']=_0x28c866,this[_0xac1af5(0x24c)]=_0x237693,this['_configService']=_0x1b8b9d;const {..._0x32b558}=_0x31a5b7({},et,this['_config']);this[_0xac1af5(0x1db)][_0xac1af5(0x2b0)](qi,_0x32b558);}[_0x14c74a(0x175)](){const _0x5979d0=_0x14c74a;this[_0x5979d0(0x237)](),this[_0x5979d0(0x1a3)]();}[_0x14c74a(0x275)](){const _0x4ab923=_0x14c74a;this[_0x4ab923(0x2ec)]();}[_0x14c74a(0x237)](){const _0x3735ed=_0x14c74a;var _0x4cd945;const _0x5e7616=[[He],[ae],[re],[oe],[Fe],[Ut,{'useClass':hn}],[_0x5f1b50,{'useClass':_0x3f2ae3}],[_0x51b3f0,{'useClass':we}],[se],[ce],[ne],[F],[Ne],[ie]];_0x43af18(this['_injector'],_0xbabb7f(_0x5e7616,(_0x4cd945=this[_0x3735ed(0x245)])==null?void 0x0:_0x4cd945[_0x3735ed(0x28e)]));}[_0x14c74a(0x2ec)](){const _0x2bc3a7=_0x14c74a;this['disposeWithMe'](this[_0x2bc3a7(0x227)][_0x2bc3a7(0x26b)](_0x555e27[_0x2bc3a7(0x1b3)],[Le])),this[_0x2bc3a7(0x2d1)](this[_0x2bc3a7(0x227)]['registerRenderModule'](_0x555e27['UNIVER_SHEET'],[Pe]));}[_0x14c74a(0x1a3)](){const _0x433f2a=_0x14c74a;_0x5c024d(this[_0x433f2a(0x24c)],[[F],[se],[ce],[ne],[ie]]);}};mn(Ae,'pluginName',In),Ae=Sn([_0x4d8f58(_0x171330),Oe(0x1,_0x34cabc),Oe(0x2,_0x4fff92(_0x59495a)),Oe(0x3,_0x1b5145)],Ae);var vn=Object[_0x14c74a(0x192)],gn=(_0x1e6728,_0x3868f0,_0x128a5a,_0x2ea648)=>{for(var _0x4a8113=_0x2ea648>0x1?void 0x0:_0x2ea648?vn(_0x3868f0,_0x128a5a):_0x3868f0,_0x1f87c7=_0x1e6728['length']-0x1,_0x58b5b2;_0x1f87c7>=0x0;_0x1f87c7--)(_0x58b5b2=_0x1e6728[_0x1f87c7])&&(_0x4a8113=_0x58b5b2(_0x4a8113)||_0x4a8113);return _0x4a8113;},z=(_0x5b5b7f,_0x451636)=>(_0x5b82c5,_0x213d1e)=>_0x451636(_0x5b82c5,_0x213d1e,_0x5b5b7f);let it=class extends _0x575702{constructor(_0x42dd20,_0x4dc0bf,_0x54f2ec,_0x51cdaa,_0x96e676){super(_0x42dd20,_0x4dc0bf,_0x54f2ec,_0x51cdaa,_0x96e676);}async[_0x14c74a(0x15e)](_0x422465){const _0x5863be=_0x14c74a,_0x4487c5=await this[_0x5863be(0x234)](),_0x17ece1=this[_0x5863be(0x27b)](_0x422465,_0x4487c5);return this['_doCreateSocket'](_0x17ece1);}[_0x14c74a(0x27b)](_0xbcfc46,_0x3fecec){const _0x327caa=_0x14c74a,_0x1dfc83=typeof window>'u'?new URL(_0xbcfc46):new URL(_0xbcfc46,window[_0x327caa(0x1de)][_0x327caa(0x292)]);_0x1dfc83[_0x327caa(0x229)][_0x327caa(0x314)](_0x327caa(0x2cf),_0x3fecec);const _0x2ab75f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x327caa(0x1de)][_0x327caa(0x2a0)]);return _0x2ab75f['get'](_0x327caa(0x2bc))&&_0x1dfc83[_0x327caa(0x229)]['set']('runId',_0x2ab75f[_0x327caa(0x352)](_0x327caa(0x2bc))),_0x1dfc83['toString']();}async['_getSessionTicket'](){const _0x41bf4a=_0x14c74a;var _0x27ae53,_0x308fe0,_0x27e11a;const _0x50d6d3=this[_0x41bf4a(0x1db)][_0x41bf4a(0x2f9)](_0x1de0bf),_0xc302f8=(_0x27ae53=_0x50d6d3==null?void 0x0:_0x50d6d3[_0x41bf4a(0x218)])!=null?_0x27ae53:_0xb62b37;return(_0x27e11a=(_0x308fe0=(await this[_0x41bf4a(0x168)]['get'](_0xc302f8,{'headers':{'Content-Type':_0x41bf4a(0x18b)}}))[_0x41bf4a(0x2ee)])==null?void 0x0:_0x308fe0[_0x41bf4a(0x2ae)])!=null?_0x27e11a:'';}};it=gn([z(0x0,_0x4fff92(_0x59495a)),z(0x1,_0x4fff92(_0x5ef031)),z(0x2,_0x1b5145),z(0x3,_0x57ae13),z(0x4,_0xdb2b88)],it);var Lt=(_0x44aefa=>(_0x44aefa[_0x44aefa[_0x14c74a(0x241)]=0x0]=_0x14c74a(0x241),_0x44aefa[_0x44aefa['OK']=0x1]='OK',_0x44aefa[_0x44aefa[_0x14c74a(0x344)]=0x2]='INTERNAL_ERROR',_0x44aefa[_0x44aefa[_0x14c74a(0x351)]=0x3]='PERMISSION_DENIED',_0x44aefa[_0x44aefa['NOT_FOUND']=0x4]='NOT_FOUND',_0x44aefa[_0x44aefa['UNAUTHENTICATED']=0x5]=_0x14c74a(0x2b3),_0x44aefa[_0x44aefa['ALREADY_EXISTS']=0x6]=_0x14c74a(0x217),_0x44aefa[_0x44aefa['INVALID_ARGUMENT']=0x7]=_0x14c74a(0x27e),_0x44aefa[_0x44aefa[_0x14c74a(0x2e0)]=0x8]=_0x14c74a(0x2e0),_0x44aefa[_0x44aefa[_0x14c74a(0x2c7)]=0x9]=_0x14c74a(0x2c7),_0x44aefa[_0x44aefa[_0x14c74a(0x309)]=0xa]=_0x14c74a(0x309),_0x44aefa[_0x44aefa['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x44aefa[_0x44aefa[_0x14c74a(0x276)]=0xc]=_0x14c74a(0x276),_0x44aefa[_0x44aefa['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x14c74a(0x272),_0x44aefa[_0x44aefa['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x14c74a(0x28d),_0x44aefa[_0x44aefa[_0x14c74a(0x1cd)]=0x1389]=_0x14c74a(0x1cd),_0x44aefa[_0x44aefa[_0x14c74a(0x2e2)]=0x1771]=_0x14c74a(0x2e2),_0x44aefa[_0x44aefa[_0x14c74a(0x1b5)]=0x1772]=_0x14c74a(0x1b5),_0x44aefa[_0x44aefa[_0x14c74a(0x23e)]=0x1773]=_0x14c74a(0x23e),_0x44aefa[_0x44aefa[_0x14c74a(0x219)]=0x1b59]=_0x14c74a(0x219),_0x44aefa[_0x44aefa[_0x14c74a(0x213)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x44aefa[_0x44aefa[_0x14c74a(0x21a)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x44aefa[_0x44aefa[_0x14c74a(0x32a)]=0x1b5c]=_0x14c74a(0x32a),_0x44aefa[_0x44aefa[_0x14c74a(0x2fd)]=0x1b5d]=_0x14c74a(0x2fd),_0x44aefa[_0x44aefa[_0x14c74a(0x279)]=0x1f41]=_0x14c74a(0x279),_0x44aefa[_0x44aefa[_0x14c74a(0x174)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x44aefa[_0x44aefa[_0x14c74a(0x2ca)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x44aefa[_0x44aefa[_0x14c74a(0x2e9)]=0x232b]=_0x14c74a(0x2e9),_0x44aefa[_0x44aefa[_0x14c74a(0x326)]=0x232c]=_0x14c74a(0x326),_0x44aefa[_0x44aefa['LICENSE_DISTRO_REJECTED']=0x232d]=_0x14c74a(0x188),_0x44aefa[_0x44aefa[_0x14c74a(0x2b4)]=0x2711]=_0x14c74a(0x2b4),_0x44aefa[_0x44aefa[_0x14c74a(0x2d2)]=0x2712]=_0x14c74a(0x2d2),_0x44aefa[_0x44aefa[_0x14c74a(0x283)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x44aefa[_0x44aefa[_0x14c74a(0x187)]=0x2714]=_0x14c74a(0x187),_0x44aefa[_0x44aefa['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x44aefa[_0x44aefa[_0x14c74a(0x26d)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x44aefa[_0x44aefa['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x44aefa[_0x44aefa[_0x14c74a(0x35d)]=0x271d]=_0x14c74a(0x35d),_0x44aefa[_0x44aefa[_0x14c74a(0x20c)]=0x271e]=_0x14c74a(0x20c),_0x44aefa[_0x44aefa[_0x14c74a(0x22e)]=0x271f]=_0x14c74a(0x22e),_0x44aefa[_0x44aefa[_0x14c74a(0x238)]=0x2720]=_0x14c74a(0x238),_0x44aefa[_0x44aefa[_0x14c74a(0x2ac)]=0x2af9]=_0x14c74a(0x2ac),_0x44aefa[_0x44aefa['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x44aefa[_0x44aefa[_0x14c74a(0x307)]=0x2ee2]='INVALID_INVITE_CODE',_0x44aefa[_0x44aefa[_0x14c74a(0x21e)]=0x2ee3]=_0x14c74a(0x21e),_0x44aefa[_0x44aefa[_0x14c74a(0x17e)]=0x2ee4]=_0x14c74a(0x17e),_0x44aefa[_0x44aefa[_0x14c74a(0x199)]=0x2ee5]=_0x14c74a(0x199),_0x44aefa[_0x44aefa['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x14c74a(0x354),_0x44aefa[_0x44aefa[_0x14c74a(0x26e)]=0x32ca]=_0x14c74a(0x26e),_0x44aefa[_0x44aefa[_0x14c74a(0x2b8)]=0x32cb]=_0x14c74a(0x2b8),_0x44aefa[_0x44aefa['UNRECOGNIZED']=-0x1]=_0x14c74a(0x232),_0x44aefa))(Lt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x2450c7,_0x47438a,_0xe7ba73,_0x15520f)=>{const _0x51e4e0=_0x14c74a;for(var _0x2d3d84=_0x15520f>0x1?void 0x0:_0x15520f?pn(_0x47438a,_0xe7ba73):_0x47438a,_0xc0cbd6=_0x2450c7[_0x51e4e0(0x2f1)]-0x1,_0x2c5ab0;_0xc0cbd6>=0x0;_0xc0cbd6--)(_0x2c5ab0=_0x2450c7[_0xc0cbd6])&&(_0x2d3d84=_0x2c5ab0(_0x2d3d84)||_0x2d3d84);return _0x2d3d84;},be=(_0x4ec48c,_0x24cf8f)=>(_0x3f4cf2,_0xd45156)=>_0x24cf8f(_0x3f4cf2,_0xd45156,_0x4ec48c);let nt=class extends _0xdd38f3{constructor(_0x3328c5,_0x58f72a,_0x403c27){const _0xb51ede=_0x14c74a;super(),this[_0xb51ede(0x2b2)]=_0x3328c5,this[_0xb51ede(0x168)]=_0x58f72a,this[_0xb51ede(0x1db)]=_0x403c27;}async['runOnServer'](_0x3262ee,_0xf3f9f9,_0x254b94,..._0x1692e1){const _0x2b62b5=_0x14c74a;var _0x56d84f,_0x551066,_0x5ba32f,_0x3c17d6;const _0x21655a=this[_0x2b62b5(0x2b2)][_0x2b62b5(0x1c7)]();if(!_0x21655a)throw new Error(_0x2b62b5(0x2ab));const _0x553625=((_0x56d84f=this[_0x2b62b5(0x1db)][_0x2b62b5(0x2f9)](_0xf440f5))!=null?_0x56d84f:_0x5c2877)+'/'+_0x3262ee+_0x2b62b5(0x259)+_0xf3f9f9,_0x572dac=new URL(window[_0x2b62b5(0x1de)][_0x2b62b5(0x2a9)]),_0x42604a={'scriptId':_0x3262ee,'runId':(_0x551066=_0x572dac[_0x2b62b5(0x229)]['get'](_0x2b62b5(0x2bc)))!=null?_0x551066:'','function':_0xf3f9f9,'unitId':_0x21655a[_0x2b62b5(0x20f)](),'argsOfFunction':JSON[_0x2b62b5(0x2fa)](_0x1692e1),'invokeId':(_0x5ba32f=_0x254b94[_0x2b62b5(0x301)])!=null?_0x5ba32f:'','executionId':(_0x3c17d6=_0x254b94[_0x2b62b5(0x2fb)])!=null?_0x3c17d6:''};try{const _0x1dafe4=await this[_0x2b62b5(0x168)][_0x2b62b5(0x1c3)](_0x553625,{'body':_0x42604a});return _0x1dafe4[_0x2b62b5(0x2ee)][_0x2b62b5(0x170)]&&_0x1dafe4[_0x2b62b5(0x2ee)]['error'][_0x2b62b5(0x1f1)]!==Lt['OK']?'Failed':_0x1dafe4['body'][_0x2b62b5(0x186)];}catch{return _0x2b62b5(0x1a1);}}};nt=Cn([be(0x0,_0x185030),be(0x1,_0x4fff92(_0x5ef031)),be(0x2,_0x1b5145)],nt);const rt=0x7530,ot=_0x14c74a(0x2d5);class Fn extends _0xdd38f3{constructor(){const _0x110374=_0x14c74a;super(),_(this,'_id',_0x4c97f0()),_(this,_0x110374(0x32f),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x110374(0x2d0),null),_(this,_0x110374(0x221),new Map()),_(this,'_unitStatus',new Map()),this[_0x110374(0x270)]();}[_0x14c74a(0x26a)](){const _0x5e05c3=_0x14c74a;super[_0x5e05c3(0x26a)](),this['_clearOtherTimers'][_0x5e05c3(0x280)]((_0x4b6c87,_0x5e231a)=>this[_0x5e05c3(0x34a)](_0x5e231a)),this[_0x5e05c3(0x2d0)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x14c74a(0x2f6)](_0x13f11c){const _0xb5e2b7=_0x14c74a;return this[_0xb5e2b7(0x16a)](_0x13f11c)[_0xb5e2b7(0x184)](_0x30f71e());}[_0x14c74a(0x1e0)](_0x459933){const _0x893fd1=_0x14c74a;this[_0x893fd1(0x32f)][_0x893fd1(0x320)]===0x0&&this[_0x893fd1(0x324)](),this[_0x893fd1(0x32f)][_0x893fd1(0x356)](_0x459933),this[_0x893fd1(0x319)]({'type':0x0,'memberID':this[_0x893fd1(0x1b1)],'unitIDs':[_0x459933],'isForwarded':!0x1});}[_0x14c74a(0x1d0)](_0x4b6974){const _0x22b2fc=_0x14c74a;this[_0x22b2fc(0x32f)]['delete'](_0x4b6974),this['_selfUnitIDs'][_0x22b2fc(0x320)]===0x0&&this['_heartbeatTimer']&&window[_0x22b2fc(0x353)](this[_0x22b2fc(0x2d0)]);}[_0x14c74a(0x270)](){const _0x4afed8=_0x14c74a;this[_0x4afed8(0x2d1)](_0x1799ad(_0xf30f0(window,_0x4afed8(0x284))[_0x4afed8(0x1c9)](_0x4234f5=>{const _0x286ed0=_0x4afed8;if(_0x4234f5[_0x286ed0(0x2ce)]!==ot||!_0x4234f5[_0x286ed0(0x182)])return;const _0x32499a=JSON[_0x286ed0(0x22d)](_0x4234f5[_0x286ed0(0x182)]);this[_0x286ed0(0x2de)](_0x32499a);}))),window['addEventListener']('unload',()=>this[_0x4afed8(0x319)]({'type':0x1,'memberID':this[_0x4afed8(0x1b1)],'unitIDs':Array[_0x4afed8(0x1c2)](this[_0x4afed8(0x32f)])}));}[_0x14c74a(0x2de)](_0x15d371){const _0x408b0e=_0x14c74a;switch(_0x15d371['type']){case 0x0:this['_handleJoinEvent'](_0x15d371);break;case 0x1:this[_0x408b0e(0x295)](_0x15d371);break;case 0x2:this[_0x408b0e(0x25e)](_0x15d371);break;}}[_0x14c74a(0x1a7)](_0x32da83){const _0x584d0c=_0x14c74a,{unitIDs:_0x2f2cc5,memberID:_0x383f26,isForwarded:_0x13d74a}=_0x32da83;_0x2f2cc5[_0x584d0c(0x280)](_0xd7e0a6=>{const _0xc91a2=_0x584d0c;if(!_0x13d74a&&this['_unitOnClients'][_0xc91a2(0x21c)](_0xd7e0a6)&&this[_0xc91a2(0x16a)](_0xd7e0a6)['next'](_0x325b8e[_0xc91a2(0x262)]),!this[_0xc91a2(0x1fe)]['has'](_0xd7e0a6)||!this['_unitOnClients'][_0xc91a2(0x352)](_0xd7e0a6)[_0xc91a2(0x21c)](_0x383f26)){const _0x416c25=this[_0xc91a2(0x1fe)][_0xc91a2(0x352)](_0xd7e0a6)||new Set();_0x416c25[_0xc91a2(0x356)](_0x383f26),this[_0xc91a2(0x1fe)][_0xc91a2(0x314)](_0xd7e0a6,_0x416c25),this[_0xc91a2(0x267)](_0x383f26);}}),_0x13d74a||this[_0x584d0c(0x319)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x584d0c(0x32f)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4ee3a7){const _0x42389b=_0x14c74a;this['_removeClearOtherTimer'](_0x4ee3a7);const _0x4ff4b3=window[_0x42389b(0x33a)](()=>{const _0x41b90e=_0x42389b;this['_unitOnClients'][_0x41b90e(0x280)](_0x116406=>{const _0x2faefc=_0x41b90e;_0x116406[_0x2faefc(0x290)](_0x4ee3a7);});},rt*0x2);this[_0x42389b(0x221)][_0x42389b(0x314)](_0x4ee3a7,_0x4ff4b3);}[_0x14c74a(0x34a)](_0x2fddea){const _0x1c8b64=_0x14c74a;if(this['_clearOtherTimers'][_0x1c8b64(0x21c)](_0x2fddea)){const _0x21ecc4=this['_clearOtherTimers'][_0x1c8b64(0x352)](_0x2fddea);_0x21ecc4&&window[_0x1c8b64(0x181)](_0x21ecc4),this['_clearOtherTimers'][_0x1c8b64(0x314)](_0x2fddea,null);}}[_0x14c74a(0x295)](_0x3e199f){const _0x4566d4=_0x14c74a,{memberID:_0x16a25f,unitIDs:_0x5edfd2}=_0x3e199f;_0x5edfd2[_0x4566d4(0x280)](_0x299a8b=>{const _0x3481c4=_0x4566d4;var _0x3ca754;const _0x2e20ea=this[_0x3481c4(0x1fe)][_0x3481c4(0x352)](_0x299a8b);_0x2e20ea&&(_0x2e20ea[_0x3481c4(0x290)](_0x16a25f),(_0x3ca754=this[_0x3481c4(0x16a)](_0x299a8b))==null||_0x3ca754['next'](_0x2e20ea[_0x3481c4(0x320)]===0x0?_0x325b8e['NO_OTHER_CLIENTS_EDITING']:_0x325b8e['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x16a25f);}[_0x14c74a(0x25e)](_0x10393c){const _0x6029d6=_0x14c74a;this[_0x6029d6(0x267)](_0x10393c['memberID']);}[_0x14c74a(0x319)](_0xa3cd1b){const _0x52946e=_0x14c74a;localStorage[_0x52946e(0x242)](ot,JSON['stringify'](_0xa3cd1b));}['_scheduleHeartbeat'](){const _0x1f22fc=_0x14c74a;this[_0x1f22fc(0x2d0)]=window[_0x1f22fc(0x1e1)](()=>{const _0x5c125a=_0x1f22fc;this[_0x5c125a(0x319)]({'type':0x2,'memberID':this[_0x5c125a(0x1b1)]});},rt);}[_0x14c74a(0x16a)](_0x3879cf){const _0xd3cf4b=_0x14c74a;return this[_0xd3cf4b(0x355)][_0xd3cf4b(0x21c)](_0x3879cf)||this[_0xd3cf4b(0x355)][_0xd3cf4b(0x314)](_0x3879cf,new _0x1bb8bf(_0x325b8e['NO_OTHER_CLIENTS_EDITING'])),this[_0xd3cf4b(0x355)][_0xd3cf4b(0x352)](_0x3879cf);}}export{it as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,se as DesktopCollaborationStatusDisplayController,Ut as IURLService,nt as RemoteUniscriptService,Xi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- function _0x49aa(){const _0x16e73b=['Collaboration\x20Conflict','2739268JrpkkR','3147243urlOcW','3973120FUVxBV','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','9XMFWIU','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1001jmFzmg','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','10762280ixgaOd','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','76AijZwJ','Syncing...','6924rshPlp','Local\x20file','673428OKJPjJ','115595iWXSjt','Synced'];_0x49aa=function(){return _0x16e73b;};return _0x49aa();}const _0x560ef8=_0x3106;(function(_0x4c6127,_0x40a6ab){const _0x23c124=_0x3106,_0x363f3c=_0x4c6127();while(!![]){try{const _0x1437ff=-parseInt(_0x23c124(0x154))/0x1+parseInt(_0x23c124(0x145))/0x2+-parseInt(_0x23c124(0x146))/0x3+-parseInt(_0x23c124(0x150))/0x4*(parseInt(_0x23c124(0x155))/0x5)+parseInt(_0x23c124(0x152))/0x6*(-parseInt(_0x23c124(0x14b))/0x7)+-parseInt(_0x23c124(0x14e))/0x8*(-parseInt(_0x23c124(0x149))/0x9)+parseInt(_0x23c124(0x147))/0xa;if(_0x1437ff===_0x40a6ab)break;else _0x363f3c['push'](_0x363f3c['shift']());}catch(_0x56bfdf){_0x363f3c['push'](_0x363f3c['shift']());}}}(_0x49aa,0xbfc1f));function _0x3106(_0x8fb7d7,_0x374ea0){const _0x49aa63=_0x49aa();return _0x3106=function(_0x3106fc,_0xae05b0){_0x3106fc=_0x3106fc-0x144;let _0xb06618=_0x49aa63[_0x3106fc];return _0xb06618;},_0x3106(_0x8fb7d7,_0x374ea0);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x560ef8(0x153),'synced':_0x560ef8(0x156),'syncing':_0x560ef8(0x151),'offline':_0x560ef8(0x14a)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x560ef8(0x14d),'room-full':_0x560ef8(0x148),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x560ef8(0x144),'content':_0x560ef8(0x14c)},'permission':{'title':'Authentication\x20Error','content':_0x560ef8(0x14f)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;export{o as default};
1
+ function _0x5d94(){const _0xe5e785=['Syncing...','Authentication\x20Error','Click\x20to\x20Reconnect','30434921mafLJf','4164668vZGGQD','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20Conflict','20DIPEie','10asxLtY','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Synced','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing\x20server\x20data...','3822318lDjrrw','Edit\x20conflicts','911766sftbEJ','Connection\x20failed,\x20please\x20check\x20your\x20network.','1723014HjKTsy','6832854KWboUA','2158722ylhOJc','Local\x20file','6jMHBFM','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','8xzCfFd','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.'];_0x5d94=function(){return _0xe5e785;};return _0x5d94();}const _0x4f7e75=_0x58de;(function(_0x84c492,_0x1c4a88){const _0x2cf873=_0x58de,_0x1909c7=_0x84c492();while(!![]){try{const _0x4ee431=parseInt(_0x2cf873(0x1d0))/0x1+parseInt(_0x2cf873(0x1e8))/0x2*(parseInt(_0x2cf873(0x1d4))/0x3)+parseInt(_0x2cf873(0x1dc))/0x4+parseInt(_0x2cf873(0x1e0))/0x5*(-parseInt(_0x2cf873(0x1d2))/0x6)+parseInt(_0x2cf873(0x1d1))/0x7+parseInt(_0x2cf873(0x1d6))/0x8*(parseInt(_0x2cf873(0x1e6))/0x9)+-parseInt(_0x2cf873(0x1e1))/0xa*(parseInt(_0x2cf873(0x1db))/0xb);if(_0x4ee431===_0x1c4a88)break;else _0x1909c7['push'](_0x1909c7['shift']());}catch(_0xb26050){_0x1909c7['push'](_0x1909c7['shift']());}}}(_0x5d94,0xd499c));const e={'collab-client':{'tooltip':{'reconnect':_0x4f7e75(0x1da)}},'collabStatus':{'fetchMiss':_0x4f7e75(0x1e5),'conflict':_0x4f7e75(0x1e7),'notCollab':_0x4f7e75(0x1d3),'synced':_0x4f7e75(0x1e3),'syncing':_0x4f7e75(0x1d8),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x4f7e75(0x1cf),'will-retry':_0x4f7e75(0x1d5),'room-full':_0x4f7e75(0x1d7),'collaboration-timeout':_0x4f7e75(0x1e2)},'conflict':{'title':_0x4f7e75(0x1df),'content':_0x4f7e75(0x1de)},'permission':{'title':_0x4f7e75(0x1d9),'content':_0x4f7e75(0x1e4)},'collaboration':{'single-unit':{'warning':_0x4f7e75(0x1dd)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;function _0x58de(_0x2b9f58,_0x30a1f5){const _0x5d9452=_0x5d94();return _0x58de=function(_0x58de72,_0x1c7b27){_0x58de72=_0x58de72-0x1cf;let _0x2de488=_0x5d9452[_0x58de72];return _0x2de488;},_0x58de(_0x2b9f58,_0x30a1f5);}export{o as default};
@@ -1 +1 @@
1
- const _0x5d3b63=_0x5d76;function _0x5d76(_0x2c84a7,_0x1e3cd7){const _0x1ad640=_0x1ad6();return _0x5d76=function(_0x5d76f7,_0x439662){_0x5d76f7=_0x5d76f7-0x78;let _0x18799f=_0x1ad640[_0x5d76f7];return _0x18799f;},_0x5d76(_0x2c84a7,_0x1e3cd7);}(function(_0xb235d,_0x2af867){const _0x4c9a50=_0x5d76,_0x50a995=_0xb235d();while(!![]){try{const _0x394f0b=parseInt(_0x4c9a50(0x82))/0x1+-parseInt(_0x4c9a50(0x93))/0x2*(parseInt(_0x4c9a50(0x81))/0x3)+parseInt(_0x4c9a50(0x7a))/0x4*(parseInt(_0x4c9a50(0x7f))/0x5)+parseInt(_0x4c9a50(0x8f))/0x6*(parseInt(_0x4c9a50(0x91))/0x7)+parseInt(_0x4c9a50(0x89))/0x8*(-parseInt(_0x4c9a50(0x8d))/0x9)+-parseInt(_0x4c9a50(0x90))/0xa+-parseInt(_0x4c9a50(0x8e))/0xb*(-parseInt(_0x4c9a50(0x80))/0xc);if(_0x394f0b===_0x2af867)break;else _0x50a995['push'](_0x50a995['shift']());}catch(_0x296e34){_0x50a995['push'](_0x50a995['shift']());}}}(_0x1ad6,0xd05ee));const e={'collab-client':{'tooltip':{'reconnect':_0x5d3b63(0x8c)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x5d3b63(0x7d),'notCollab':_0x5d3b63(0x7b),'synced':_0x5d3b63(0x84),'syncing':_0x5d3b63(0x79),'offline':_0x5d3b63(0x83)},'session':{'connection-failed':_0x5d3b63(0x8a),'will-retry':_0x5d3b63(0x78),'room-full':_0x5d3b63(0x8b),'collaboration-timeout':_0x5d3b63(0x88)},'conflict':{'title':_0x5d3b63(0x87),'content':_0x5d3b63(0x86)},'permission':{'title':_0x5d3b63(0x92),'content':_0x5d3b63(0x7c)},'collaboration':{'single-unit':{'warning':_0x5d3b63(0x7e)},'closeRoom':_0x5d3b63(0x85)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};export{e as default};function _0x1ad6(){const _0x45166b=['70599hJRlSW','578719izwGRE','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Synced','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20Conflict','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','56632eMiAqH','Connection\x20failed,\x20please\x20check\x20your\x20network.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Click\x20to\x20Reconnect','1305EySEBD','8286487bkVoja','26454nVyNlv','1958420pcCAbB','1099joaMsC','Authentication\x20Error','112aUMUBj','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing...','12260jfCmeE','Local\x20file','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Edit\x20conflicts','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1005TUQdLo','24xkVyvo'];_0x1ad6=function(){return _0x45166b;};return _0x1ad6();}
1
+ function _0xefff(){const _0xf5acb=['Collaboration\x20Conflict','Click\x20to\x20Reconnect','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Syncing...','70YhsuZC','314115uxsbmx','1659342ibMUrC','988636cgIxyY','4jwnGXT','Authentication\x20Error','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','Edit\x20conflicts','3584919sjwVcQ','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Connection\x20failed,\x20please\x20check\x20your\x20network.','121YeAsSa','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','8168cToDID','71802bHocRc','541150iDvEbo','11871cSXDjh','Local\x20file','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'];_0xefff=function(){return _0xf5acb;};return _0xefff();}const _0x752c56=_0x1014;(function(_0x1160b0,_0x4b0840){const _0x133cfe=_0x1014,_0x4f0e27=_0x1160b0();while(!![]){try{const _0x336c40=-parseInt(_0x133cfe(0x8d))/0x1+parseInt(_0x133cfe(0x8c))/0x2+parseInt(_0x133cfe(0x93))/0x3*(-parseInt(_0x133cfe(0x8e))/0x4)+parseInt(_0x133cfe(0x8b))/0x5+-parseInt(_0x133cfe(0x99))/0x6*(-parseInt(_0x133cfe(0x8a))/0x7)+-parseInt(_0x133cfe(0x98))/0x8*(-parseInt(_0x133cfe(0x83))/0x9)+parseInt(_0x133cfe(0x9a))/0xa*(parseInt(_0x133cfe(0x96))/0xb);if(_0x336c40===_0x4b0840)break;else _0x4f0e27['push'](_0x4f0e27['shift']());}catch(_0x49b720){_0x4f0e27['push'](_0x4f0e27['shift']());}}}(_0xefff,0xbc1d7));function _0x1014(_0x575ef2,_0x12b8a0){const _0xefff4c=_0xefff();return _0x1014=function(_0x1014a3,_0x27cfd6){_0x1014a3=_0x1014a3-0x83;let _0x3c4575=_0xefff4c[_0x1014a3];return _0x3c4575;},_0x1014(_0x575ef2,_0x12b8a0);}const e={'collab-client':{'tooltip':{'reconnect':_0x752c56(0x87)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x752c56(0x92),'notCollab':_0x752c56(0x84),'synced':_0x752c56(0x91),'syncing':_0x752c56(0x89),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x752c56(0x95),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x752c56(0x97)},'conflict':{'title':_0x752c56(0x86),'content':_0x752c56(0x85)},'permission':{'title':_0x752c56(0x8f),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x752c56(0x88)},'closeRoom':_0x752c56(0x90)},'auth':{'needGotoLoginAlert':_0x752c56(0x94)}};export{e as default};