@univerjs-pro/collaboration-client-ui 0.8.1 → 0.8.2-nightly.202506211606

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 (41) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/fa-IR.js +1 -1
  5. package/lib/cjs/locale/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ru-RU.js +1 -1
  7. package/lib/cjs/locale/vi-VN.js +1 -1
  8. package/lib/cjs/locale/zh-CN.js +1 -1
  9. package/lib/cjs/locale/zh-TW.js +1 -1
  10. package/lib/es/facade.js +1 -1
  11. package/lib/es/index.js +1 -1
  12. package/lib/es/locale/en-US.js +1 -1
  13. package/lib/es/locale/fa-IR.js +1 -1
  14. package/lib/es/locale/fr-FR.js +1 -1
  15. package/lib/es/locale/ru-RU.js +1 -1
  16. package/lib/es/locale/vi-VN.js +1 -1
  17. package/lib/es/locale/zh-CN.js +1 -1
  18. package/lib/es/locale/zh-TW.js +1 -1
  19. package/lib/facade.js +1 -1
  20. package/lib/index.css +1 -1
  21. package/lib/index.js +1 -1
  22. package/lib/locale/en-US.js +1 -1
  23. package/lib/locale/fa-IR.js +1 -1
  24. package/lib/locale/fr-FR.js +1 -1
  25. package/lib/locale/ru-RU.js +1 -1
  26. package/lib/locale/vi-VN.js +1 -1
  27. package/lib/locale/zh-CN.js +1 -1
  28. package/lib/locale/zh-TW.js +1 -1
  29. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -1
  30. package/lib/types/services/local-cache/web-local-cache.service.d.ts +2 -2
  31. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
  32. package/lib/umd/facade.js +1 -1
  33. package/lib/umd/index.js +1 -1
  34. package/lib/umd/locale/en-US.js +1 -1
  35. package/lib/umd/locale/fa-IR.js +1 -1
  36. package/lib/umd/locale/fr-FR.js +1 -1
  37. package/lib/umd/locale/ru-RU.js +1 -1
  38. package/lib/umd/locale/vi-VN.js +1 -1
  39. package/lib/umd/locale/zh-CN.js +1 -1
  40. package/lib/umd/locale/zh-TW.js +1 -1
  41. package/package.json +18 -18
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xa0ee(){const _0x4f0e88=['CONNECTOR_DATA_TOO_LARGE','HEADER_MENU','_updateSubUnitFromURLParams','redoState','_initResize','getAncestorScale','searchParams','_session','_revisionService','RemoveColCommandId','_colorIndex','editingUnit','RECT','_refRangeService','YUUMI_NO_CUBOID_FOR_QUESTION','_getSheetObject','OnLineIcon','NodePositionConvertToCursor','130sojujR','map','_onRefRangeChange','tag','min','_urlService','wsSessionTicketUrl','purple.300','getSheetId','INVALID_INVITE_CODE','onCommandExecuted','transformStateCache','imageSourceType','APPLY_NON_SEQUENTIAL_REVISION','toString','collabStatus.synced','513111EVtkPG','drawWith','unsubscribe','_docSkeleton','subscribeEvent','_id','red.300','_handleHover','colorChannel1','COMPLETION_FINISHED','_anchor','InsertColCommandId','setStateCache','Disposable','transformSelections','fillStyle','override','EMAIL_HAS_BEEN_BOUND','UniverProCollaboration','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_entityInit$','from','isTransformMutationFailure','_docSyncEditingCollabCursorService','@univerjs/engine-formula','SNAPSHOT_INVALID_SNAPSHOT','fillRule','UniverNetwork','session.will-retry','IURLService','univer-flex\x20univer-items-center','concat','USERS_LEAVE','SetSelectionsOperation','MOBILE_HAS_BEEN_BOUND','1em','24GbKWEZ','getUnitId','lineTo','getLocalCacheKey','[CollaborationDataLoaderController]','string','_sheetSkeletonManagerService','add','length','LICENSE_DISTRO_REJECTED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','MoveRangeCommandId','@univerjs/network','_cursorInfo$','getCurrent','error','onPointerMove$','restore','YUUMI_AI_RUN_FAILED','trim','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_onCursorDelete','generateRandomId','_document','href','SUBMIT_CHANGESET_TIMEOUT','onLocalMutation','SHEET_VIEWPORT_KEY','on-line-icon','post','_instanceService','mask','UniverInstanceType','subscribe','green.600','DesktopCollaborationStatusDisplayController','_unitOnClients','assignAColorForMemberID','Injector','body','PERMISSION_DENIED','_docTransformStateCacheService','getUniverSheetInstance','measureText','_send','_doCreateSocket','getRenderById','key','_getMergeRange','color','source','handleDeleteRangeMoveUp','clipPath','call','cursorInfo$','arc','React','random','_selfUnitIDs','getOwnPropertySymbols','_localeService','memberID','ISnapshotServerService','substring','event$','_updateURLWithCurrentState','setParam','flatMap','rgba(255,\x20255,\x20255,\x200.01)','RxDisposable','MUTATION','CollaborationEvent','clearInterval','@univerjs/core','_hovered','INTERNAL_ERROR','IUniverInstanceService','evenodd','_docStateChangeManagerService','getItem','collabStatus.notCollab','toRgbString','Rect','doc.mutation.rich-text-editing','SheetsSelectionsService','takeUntil','fromEventSubject','UNAUTHENTICATED','@univerjs/sheets','top','_configService','get','_status$','_localStorageService','Failed','TEXT','exhaustSavingTask','_cursor','svg','unitID','useRef','off-line-icon','idSuffix','triggerDblclick','CollaborationController','m1Prime','98290JVzmmQ','@univerjs/docs-ui','UniverDrawing','_themeService','extend','invokeId','transformByState','push','getVpScrollXYInfoByPosToVp','_drawAnchor','_univerInstanceService','transformMutation','UniverRpc','roomMembers','_initStatusListener','_drawRectRange','_scheduleSaving','saveOfflineData','merge','url(#$1','Subject','origin','distinctUntilChanged','_handleJoinEvent','saveTaskMap','code','getColorFromTheme','collaboration.single-unit.warning','_cursors','clearTimeout','ranges','with','operators','_saveCache','getCoordByCell','univerjs-icon\x20univerjs-icon-','newValue','replaceDocRanges','fromEvent','_toggleOffline','OFFLINE','registerBeforeClose','APPLY_PERMISSION_DENIED','_scheduleHeartbeat','getTypeOfUnitDisposed$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','LOGIN_FAILED','_entities','shareReplay','white','m2Prime','mutations','SessionStatus','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_initStatusComponent','_dataLoaderService','handleDeleteRangeMoveLeft','backgroundColor','updateOfflineData','pipe','setTimeout','_range','BuiltInUIPart','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','hasOwnProperty','react/jsx-runtime','find','DisposableCollection','executionId','values','_docTransformSelectionsService','DocSelectionManagerService','0\x200\x2017\x2016','createInstance','INVITE_CODE_REQUIRED','search','APPLY_DUPLICATED','_setupBeforeClosingHandler','DeleteRangeMoveLeftCommandId','_anchorDot','makeDirty','getOffsetConfig','CHANGESET_REVISION_CONFILICT','_transformPreviousActiveRange','ThemeService','range','path','COLORS','reconnect','collabStatus.syncing','disposeWithMe','TOO_MANY_REQUESTS','853272VeTJNu','addHandlerCallback','UNIVER_DOC','INVITE_CODE_HAS_BEEN_UES','children','IDocClipboardService','loadOfflineData','ALREADY_EXISTS','UniverEngineFormula','YUUMI_URL_COL_OUT_OF_RANGE','_labelPosition','sheetID','AWAITING','ISocketService','_heartbeatTimer','findNodePositionByCharIndex','Unknown\x20user','/run/','CollaborationUIEventId','result','UNRECOGNIZED','_transformUndoRedoStack','NOT_FOUND','show','@univerjs/drawing','CollaborationStatusDisplay','url(#on-line-icon_clip0_910_349)','black','transformRemoteChangeset','debounceTime','APPLY_REVISION_CONFILICT','CollaborationDataLoaderController','dispose','div','getTypeOfUnitAdded$','INVALID_ARGUMENT','...','ITransformService','UPDATE_CURSOR','_unitStatus','isTransformMutationsWithChangesetSuccess','collaboration-client-ui.config','UniverUi','throttleTime','DocIMEInputManagerService','TEXT_RANGE_LAYER_INDEX','WebBrowserSingleActiveUnitService','collaboration.closeRoom','touchDependencies','jsx','width','isActive','YUUMI_ALL_TABLES_IS_INVALID','_config','UniverCollaborationClientUIPlugin','_collabCursorController','registerRefRange','_removeClearOtherTimer','@univerjs-pro/collaboration','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','Vector2','collab-text-anchor-','_init','_saveTaskMap','skeleton','syncEditingCollabCursor','YUUMI_ASYNCIO_CANCELLED','LocaleService','session.collaboration-timeout','_shapes','_render','attrs','MemberService','max','debounce','connectInjector','bottom','complete','_httpService','_getAnchorBounding','51566XavLkP','column','_assignedColors','UniverDocsUi','RemoteUniscriptService','addObject','data','symbol','getStateCache','Shape','entries','actions','UniverEngineRender','NO_OTHER_CLIENTS_EDITING','_localCacheService','SOCKET_FAILED','LICENSE_IMPORT_SIZE_EXCEEDED','_refreshCollabCursors','currentTheme$','rxjs','INVITE_CODE_ALREADY_BOUND','switchMap','_memberService','337088bVXCom','_initEntityListener','runRefRangeMutations','UnitStatus','HTTPService','activeSheet$','forEach','_renderManagerService','UNDEFINED','getUndoRedoMutationParamsCache','WECHAT_HAS_BEEN_BOUND','on-line-icon_clip0_910_349','className','getMember','CONFLICT','IBeforeCloseService','endColumn','undoState','getOwnPropertyDescriptor','handleInsertRow','setShapeProps','requireSession','APPLY_REJECT','LOCAL_CACHE_INTERVAL_KEY','LICENSE_EXPORT_SIZE_EXCEEDED','defineProperty','getSkeleton','OTHER_CLIENT_EDITING','CollaborationStatus','startsWith','_hideTimer','location','_name','_messageService','docStateChange$','dispose$','deepClone','all','DEFAULT_WS_SESSION_TICKET_URL','SOCKET_FAILED_RETRY','SheetSkeletonManagerService','_toggleOnline','WebURLService','UniverSheets','InsertRangeMoveRightCommandId','getSheetBySheetId','_uiPartsService','collaboration-client.offline-data-not-saved','477351yZbftu','function','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_setupSubUnitSync','RegularPolygon','CollaborationUIEventService','_clearOtherTimers','entityInit$','some','_updateLocalCursor','propertyIsEnumerable','_commandService','_context','IRemoteInstanceService','76osMQWh','RemoveRowCommandId','forwardRef','getCollabCursors$','urlChange$','_handleHeartbeatEvent','_initCommandExecutedListener','EffectRefRangId','storage','getRangePointData','MessageType','ILogService','beginPath','getValue','_notificationService','icon','Inject','univer-mr-2\x20univer-flex\x20univer-text-xl','transformMutationsWithChangeset','useDependency','off-line-icon_clip0_910_343','getFocusedUnit','ICommandService','FromArray','getCurrentSelections','@univerjs/sheets-ui','_handleEvent','getUnhiddenWorksheets','focused$','USER_NOT_INVITED_CODE','jsxs','replace','isArray','ILocalStorageService','removeParam','setInterval','yellow.400','permission.title','_registerRenderDependencies','_docClipboardService','onMouseMove','getCellPositionByOffset','disposeUnit','_scene','collab-client.tooltip.reconnect','then','registerDependencies','size','pluginName','_backgroundColor','PY_RUNTIME_SCRIPT_ERROR','displayName','DOC_RANGE_TYPE','createSocket','defIds','_collabCursorState$','LICENSE_MAX_UNITS_EXCEEDED','RichTextEditingMutation','subunit','unitId','collabCursorState$','height','UniverProCollaborationClientUi','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','setItem','has','Warning','setUndoRedoMutationParamsCache','ILocalCacheService','IConfigService','none','setConfig','BrowserCollaborationSocketService','rxjs/operators','save','IRenderManagerService','name','toDisposable','textRanges','SetDocZoomRatioOperation','Error','getColor','M0\x200H16V16H0z','_registerDependencies','translate(.97)','prototype','debug','@univerjs/ui','delete','assign','registerRenderModule','_hover','session.connection-failed','@univerjs/design','IMessageService','round','runId','@univerjs/engine-render','selection','row','NOT_COLLAB','ENSURE_SNAPSHOT_EXECUTION','eventID','mapTo','currentSkeleton$','pushState','xlink:href','createElement','enableLocalCache','ticket','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','DocSkeletonManagerService','_online','indexOf','stringify','parse','_lastPointer','RevisionService','onPointerEnter$','UniverCore','handleInsertRangeMoveRight','react','getMergeData','_drawTextRange','_getScale','_roomMembers$','@univerjs/docs','_onCursorUpdate','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getActiveRange','1807904GBdJsK','_syncEditingCollabCursorService','_ensureSubject','permission.content','SetTextSelectionsOperation','_cachedData','@univerjs-pro/collaboration-client','getConfig','SNAPSHOT_HAS_BEEN_REMOVED','selections','_color','asObservable','unit','Tooltip','init','split','_injector','url(#off-line-icon_clip0_910_343)','_startSheetCollabCursor','DocStateChangeManagerService','collabStatus.offline','fill','DataLoaderService','_beforeCloseService','loadUnit','_collaborationUIEventService','_handleLeaveEvent','_collabSessionService','_logService','UNIVER_SHEET','ONLINE','_collaborationController','_textBubble','ColorKit','0\x200\x2016\x2016','_startDocCollabCursor','setAlpha','collab-text-range-','filter','UniverDocs','defs','@univerjs/rpc','_getSessionTicket','_docSkeletonManagerService','_transformService','_removeCollabCursors','http://www.w3.org/2000/svg','_initDependencies','labelPosition','object','handleInsertCol','exports','_updateCollabCursors','_disabled','params','hide','fillText','_eventUnsubscribe','CommandType','WebSocketService','_createSocketURL','_transformHistoryAndStateStack','RefRangeService','combineLatest','addEventListener','_scheduleClearOtherTimer','#FFF','set','CollaborationSessionService','includes','Tools','getRelativeToViewportCoord','BehaviorSubject','contains','unshift','send','getMemberID','InsertRowCommandId','NodePositionConvertToRectRange','next','_colorAssignService','transformIMECache','handleInsertRangeMoveDown','cursorInfo','getDocRanges','PENDING','OTHER_CLIENTS_EDITING','onPointerLeave$','_cursorShapes','_initEvent','history','replaceState','collabStatus.conflict','_docTransformIMECacheService','getParam','sessionTicket','popstate','executeCommand','onRendered','type','text','deserializeRangeWithSheet'];_0xa0ee=function(){return _0x4f0e88;};return _0xa0ee();}function _0x3b1c(_0x37233c,_0x2d302c){const _0xa0eec7=_0xa0ee();return _0x3b1c=function(_0x3b1c84,_0xe38c0){_0x3b1c84=_0x3b1c84-0x124;let _0x2dfbdd=_0xa0eec7[_0x3b1c84];return _0x2dfbdd;},_0x3b1c(_0x37233c,_0x2d302c);}(function(_0x4a9bd7,_0x26d443){const _0x57a1db=_0x3b1c,_0x31cb4e=_0x4a9bd7();while(!![]){try{const _0x11fafa=parseInt(_0x57a1db(0x3b3))/0x1+parseInt(_0x57a1db(0x39c))/0x2+parseInt(_0x57a1db(0x262))/0x3+-parseInt(_0x57a1db(0x158))/0x4*(parseInt(_0x57a1db(0x2f0))/0x5)+-parseInt(_0x57a1db(0x286))/0x6*(parseInt(_0x57a1db(0x34c))/0x7)+parseInt(_0x57a1db(0x1da))/0x8+parseInt(_0x57a1db(0x14a))/0x9*(parseInt(_0x57a1db(0x252))/0xa);if(_0x11fafa===_0x26d443)break;else _0x31cb4e['push'](_0x31cb4e['shift']());}catch(_0x2c5faa){_0x31cb4e['push'](_0x31cb4e['shift']());}}}(_0xa0ee,0x8fa1d),function(_0x373cff,_0x53a4b0){const _0x18fa3e=_0x3b1c;typeof exports==_0x18fa3e(0x20b)&&typeof module<'u'?_0x53a4b0(exports,require(_0x18fa3e(0x1e0)),require(_0x18fa3e(0x2cf)),require(_0x18fa3e(0x1b9)),require(_0x18fa3e(0x292)),require(_0x18fa3e(0x2f1)),require(_0x18fa3e(0x364)),require(_0x18fa3e(0x3af)),require(_0x18fa3e(0x1d6)),require(_0x18fa3e(0x386)),require(_0x18fa3e(0x27a)),require(_0x18fa3e(0x2de)),require(_0x18fa3e(0x1a1)),require(_0x18fa3e(0x171)),require(_0x18fa3e(0x331)),require(_0x18fa3e(0x1af)),require('@univerjs/design'),require(_0x18fa3e(0x1d1)),require(_0x18fa3e(0x203))):typeof define==_0x18fa3e(0x14b)&&define['amd']?define([_0x18fa3e(0x20d),_0x18fa3e(0x1e0),'@univerjs/core',_0x18fa3e(0x1b9),_0x18fa3e(0x292),_0x18fa3e(0x2f1),_0x18fa3e(0x364),_0x18fa3e(0x3af),'@univerjs/docs',_0x18fa3e(0x386),_0x18fa3e(0x27a),_0x18fa3e(0x2de),'rxjs/operators',_0x18fa3e(0x171),'react/jsx-runtime',_0x18fa3e(0x1af),_0x18fa3e(0x1b5),_0x18fa3e(0x1d1),_0x18fa3e(0x203)],_0x53a4b0):(_0x373cff=typeof globalThis<'u'?globalThis:_0x373cff||self,_0x53a4b0(_0x373cff[_0x18fa3e(0x196)]={},_0x373cff['UniverProCollaborationClient'],_0x373cff[_0x18fa3e(0x1cf)],_0x373cff[_0x18fa3e(0x3a8)],_0x373cff[_0x18fa3e(0x27d)],_0x373cff[_0x18fa3e(0x39f)],_0x373cff[_0x18fa3e(0x2f2)],_0x373cff['rxjs'],_0x373cff[_0x18fa3e(0x201)],_0x373cff[_0x18fa3e(0x274)],_0x373cff[_0x18fa3e(0x354)],_0x373cff[_0x18fa3e(0x145)],_0x373cff[_0x18fa3e(0x3af)][_0x18fa3e(0x310)],_0x373cff['UniverSheetsUi'],_0x373cff[_0x18fa3e(0x2be)],_0x373cff[_0x18fa3e(0x376)],_0x373cff['UniverDesign'],_0x373cff[_0x18fa3e(0x2be)],_0x373cff[_0x18fa3e(0x2fc)]));}(this,function(_0x12c937,_0x2f4463,_0x4026ac,_0x7ef3ee,_0x28e500,_0x45dbe2,_0x4a0874,_0x490568,_0x3a183c,_0x5c97ef,_0x52401f,_0x18ee7b,_0x59a3b2,_0x2e96f8,_0x4666f7,_0x3688dd,_0x16b3ae,_0x5b499e,_0x2ef636){'use strict';const _0x2c12e3=_0x3b1c;var _0x3bac3c=Object['defineProperty'],_0xf2fdec=(_0x118299,_0x340f39,_0x54e256)=>_0x340f39 in _0x118299?_0x3bac3c(_0x118299,_0x340f39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54e256}):_0x118299[_0x340f39]=_0x54e256,_0x155617=(_0x57144a,_0x3ee1da,_0x52a03f)=>_0xf2fdec(_0x57144a,typeof _0x3ee1da!=_0x2c12e3(0x3a3)?_0x3ee1da+'':_0x3ee1da,_0x52a03f),_0x102152=Object[_0x2c12e3(0x12c)],_0x58ef11=(_0x56de3f,_0x143f27,_0x2d520b,_0x530d91)=>{const _0x211cda=_0x2c12e3;for(var _0xb8e427=_0x530d91>0x1?void 0x0:_0x530d91?_0x102152(_0x143f27,_0x2d520b):_0x143f27,_0x3210e0=_0x56de3f[_0x211cda(0x28e)]-0x1,_0x2a951f;_0x3210e0>=0x0;_0x3210e0--)(_0x2a951f=_0x56de3f[_0x3210e0])&&(_0xb8e427=_0x2a951f(_0xb8e427)||_0xb8e427);return _0xb8e427;},_0x2ca73f=(_0x3b03db,_0x6d13cb)=>(_0x573e1b,_0x1b3156)=>_0x6d13cb(_0x573e1b,_0x1b3156,_0x3b03db);let _0x2d3631=class extends _0x4026ac[_0x2c12e3(0x2cb)]{constructor(_0x30d974,_0x1de701){const _0x576c0a=_0x2c12e3;super(),this[_0x576c0a(0x17f)]=_0x30d974,this['_imageIoService']=_0x1de701,this[_0x576c0a(0x38a)]();}[_0x2c12e3(0x38a)](){const _0x49bdb0=_0x2c12e3,_0x15bf2d=this;this[_0x49bdb0(0x34a)](this[_0x49bdb0(0x17f)]['addClipboardHook']({'onBeforePasteImage':async _0x3a1920=>{const _0x3dc5cb=_0x49bdb0,_0x28bd88=await _0x15bf2d['_imageIoService']['saveImage'](_0x3a1920);return _0x28bd88?{'source':_0x28bd88[_0x3dc5cb(0x2b8)],'imageSourceType':_0x28bd88[_0x3dc5cb(0x25e)]}:null;}}));}};_0x2d3631=_0x58ef11([_0x2ca73f(0x0,_0x45dbe2[_0x2c12e3(0x351)]),_0x2ca73f(0x1,_0x4a0874['IImageIoService'])],_0x2d3631);const _0x3a9571=[_0x2c12e3(0x259),'jiqing.500',_0x2c12e3(0x2a8),_0x2c12e3(0x268),'blue.400',_0x2c12e3(0x17c)];class _0x5554b1 extends _0x4026ac['Disposable']{constructor(){const _0x5949b3=_0x2c12e3;super(...arguments),_0x155617(this,_0x5949b3(0x39e),new Map()),_0x155617(this,_0x5949b3(0x24a),0x0);}[_0x2c12e3(0x2ab)](_0x1f0a65){const _0x55e508=_0x2c12e3;if(this[_0x55e508(0x39e)][_0x55e508(0x199)](_0x1f0a65))return this[_0x55e508(0x39e)]['get'](_0x1f0a65);const _0x419ff1=_0x3a9571[this[_0x55e508(0x24a)]];return this[_0x55e508(0x24a)]=(this['_colorIndex']+0x1)%_0x3a9571[_0x55e508(0x28e)],this['_assignedColors'][_0x55e508(0x21d)](_0x1f0a65,_0x419ff1),_0x419ff1;}}function _0x2c3b5f(_0x7e9618){const _0x4ec32e=_0x2c12e3;let _0x1c47d4='';for(const _0x15f37e of _0x7e9618){const {startOffset:_0x122998,endOffset:_0x3bc6a3,isActive:_0x168fd3,rangeType:_0x1f40d6,segmentId:_0x402abe,segmentPage:_0x386ae2}=_0x15f37e;_0x1c47d4[_0x4ec32e(0x28e)]&&(_0x1c47d4+=','),_0x1c47d4+=_0x122998+':'+_0x3bc6a3+':'+(_0x168fd3?'1':'0')+':'+_0x1f40d6+':'+_0x402abe+':'+_0x386ae2;}return _0x1c47d4;}function _0x56e798(_0x49a65c){const _0x116203=_0x2c12e3,_0x3bd464=_0x49a65c[_0x116203(0x1e9)](','),_0x4c6d31=[];for(const _0x4aaf27 of _0x3bd464){const [_0x2c0093,_0x424572,_0x241b5b,_0x291303,_0x28aa0d,_0x23c4ba]=_0x4aaf27[_0x116203(0x1e9)](':');_0x4c6d31[_0x116203(0x2f7)]({'startOffset':Number(_0x2c0093),'endOffset':Number(_0x424572),'collapsed':_0x2c0093===_0x424572,'isActive':_0x241b5b==='1','rangeType':_0x291303===_0x4026ac[_0x116203(0x18c)][_0x116203(0x2e5)]?_0x4026ac[_0x116203(0x18c)][_0x116203(0x2e5)]:_0x4026ac[_0x116203(0x18c)][_0x116203(0x24c)],'segmentId':typeof _0x28aa0d==_0x116203(0x28b)?String(_0x28aa0d):'','segmentPage':Number(_0x23c4ba!=null?_0x23c4ba:-0x1)});}return _0x4c6d31[_0x116203(0x152)](_0x2e5831=>_0x2e5831['isActive'])||(_0x4c6d31[0x0][_0x116203(0x37f)]=!0x0),_0x4c6d31;}class _0x4f6d56 extends _0x4026ac[_0x2c12e3(0x2cb)]{constructor(){const _0x3942eb=_0x2c12e3;super(...arguments),_0x155617(this,_0x3942eb(0x18f),new _0x490568[(_0x3942eb(0x222))](null)),_0x155617(this,_0x3942eb(0x194),this['_collabCursorState$'][_0x3942eb(0x1e5)]());}[_0x2c12e3(0x38d)](_0x3e0a07){const _0x4764a0=_0x2c12e3,{unitID:_0x15495b,memberID:_0xb03178,textRanges:_0x27b9ea}=_0x3e0a07,_0x4e5e86=_0x2c3b5f(_0x27b9ea);if(_0x4e5e86==='')return;const _0x5829fc={'unitID':_0x15495b,'memberID':_0xb03178,'selection':_0x4e5e86};this[_0x4764a0(0x18f)][_0x4764a0(0x229)](_0x5829fc);}}var _0x4e2bfd=Object['getOwnPropertyDescriptor'],_0x3f41a5=(_0x2a43b8,_0x104867,_0x386551,_0x5d7826)=>{const _0x5ad99f=_0x2c12e3;for(var _0x338968=_0x5d7826>0x1?void 0x0:_0x5d7826?_0x4e2bfd(_0x104867,_0x386551):_0x104867,_0x1343b0=_0x2a43b8[_0x5ad99f(0x28e)]-0x1,_0x4b8f1e;_0x1343b0>=0x0;_0x1343b0--)(_0x4b8f1e=_0x2a43b8[_0x1343b0])&&(_0x338968=_0x4b8f1e(_0x338968)||_0x338968);return _0x338968;},_0x1b1e4a=(_0x415eab,_0x1158f9)=>(_0x30e00e,_0x1eab5a)=>_0x1158f9(_0x30e00e,_0x1eab5a,_0x415eab);const _0x2a73d8=0x12c,_0x4ec54d=0x64;let _0x20066e=class extends _0x4026ac[_0x2c12e3(0x2cb)]{constructor(_0xa313a4,_0x43b286,_0x27d158,_0x424d58,_0x3cee8b,_0x4646fa,_0x4879ab,_0x2491a9,_0x50382){const _0x2faabd=_0x2c12e3;super(),_0x155617(this,'_online',!0x1),_0x155617(this,'_init',!0x1),_0x155617(this,_0x2faabd(0x293),new _0x490568[(_0x2faabd(0x222))](new Map())),_0x155617(this,_0x2faabd(0x2bc),this[_0x2faabd(0x293)][_0x2faabd(0x1e5)]()),_0x155617(this,_0x2faabd(0x1d5),new _0x490568['BehaviorSubject']([])),_0x155617(this,'roomMembers$',this[_0x2faabd(0x1d5)][_0x2faabd(0x32b)](_0x490568[_0x2faabd(0x369)](_0x2a73d8))),_0x155617(this,_0x2faabd(0x153),_0x4026ac[_0x2faabd(0x396)](_0x2c66dd=>{const _0x141cf6=_0x2faabd,_0x3eeca4={'eventID':_0x5c97ef['CollaborationEvent'][_0x141cf6(0x372)],'data':{'unitID':this[_0x141cf6(0x2e9)],'memberID':this[_0x141cf6(0x247)][_0x141cf6(0x226)](),'selection':_0x2c3b5f(_0x2c66dd)}};this[_0x141cf6(0x247)][_0x141cf6(0x225)](_0x3eeca4,this[_0x141cf6(0x2e9)]);},_0x4ec54d)),(this[_0x2faabd(0x2e9)]=_0xa313a4,this[_0x2faabd(0x247)]=_0x43b286,this['_injector']=_0x27d158,this[_0x2faabd(0x22a)]=_0x424d58,this['_memberService']=_0x3cee8b,this[_0x2faabd(0x1db)]=_0x4646fa,this[_0x2faabd(0x206)]=_0x4879ab,this[_0x2faabd(0x2fa)]=_0x2491a9,this[_0x2faabd(0x155)]=_0x50382);}get[_0x2c12e3(0x22d)](){const _0x26c04a=_0x2c12e3;return this[_0x26c04a(0x293)][_0x26c04a(0x165)]();}get[_0x2c12e3(0x2fd)](){const _0x3ae165=_0x2c12e3;return this[_0x3ae165(0x1d5)][_0x3ae165(0x165)]();}['dispose'](){const _0x1cc500=_0x2c12e3;super[_0x1cc500(0x36c)](),this[_0x1cc500(0x293)]['next'](new Map()),this[_0x1cc500(0x293)][_0x1cc500(0x399)](),this[_0x1cc500(0x1d5)][_0x1cc500(0x229)]([]),this[_0x1cc500(0x1d5)][_0x1cc500(0x399)]();}['init'](){const _0x5a7967=_0x2c12e3;this[_0x5a7967(0x38a)]||(this[_0x5a7967(0x38a)]=!0x0,this[_0x5a7967(0x247)]['sessionStatus$']['pipe'](_0x490568[_0x5a7967(0x2db)](this['dispose$']))[_0x5a7967(0x2a7)](_0x4c5fa6=>{const _0x2d2ea7=_0x5a7967;_0x4c5fa6===_0x2f4463[_0x2d2ea7(0x324)][_0x2d2ea7(0x1f8)]?this['_toggleOnline']():this[_0x2d2ea7(0x317)]();}),this[_0x5a7967(0x247)][_0x5a7967(0x2c6)]['pipe'](_0x490568[_0x5a7967(0x2db)](this[_0x5a7967(0x13d)]))['subscribe'](_0x18dd49=>{const _0x3821a5=_0x5a7967,_0x5201b1=_0x18dd49[_0x3821a5(0x1be)];_0x5201b1===_0x5c97ef[_0x3821a5(0x2cd)][_0x3821a5(0x372)]&&this[_0x3821a5(0x1d7)](_0x18dd49),_0x5201b1===_0x5c97ef[_0x3821a5(0x2cd)][_0x3821a5(0x282)]&&this[_0x3821a5(0x29b)](_0x18dd49);}),this[_0x5a7967(0x34a)](this[_0x5a7967(0x155)][_0x5a7967(0x25c)](_0x41db17=>{const _0xd276b5=_0x5a7967,_0xbb4c91=_0x41db17[_0xd276b5(0x210)];_0xbb4c91!=null&&this[_0xd276b5(0x1c8)]&&_0x41db17['id']===_0x3a183c[_0xd276b5(0x1de)]['id']&&_0xbb4c91['unitId']===this[_0xd276b5(0x2e9)]&&_0xbb4c91['isEditing']===!0x1&&_0xbb4c91[_0xd276b5(0x30e)][_0xd276b5(0x28e)]>0x0&&this[_0xd276b5(0x153)](_0xbb4c91[_0xd276b5(0x30e)]);})),this['_syncEditingCollabCursorService'][_0x5a7967(0x194)][_0x5a7967(0x32b)](_0x490568[_0x5a7967(0x2db)](this[_0x5a7967(0x13d)]))[_0x5a7967(0x2a7)](_0x1e6e98=>{const _0x557946=_0x5a7967;if((_0x1e6e98==null?void 0x0:_0x1e6e98[_0x557946(0x2e9)])!==this[_0x557946(0x2e9)])return;const _0x80183a={'eventID':_0x5c97ef['CollaborationEvent'][_0x557946(0x372)],'data':_0x1e6e98};this[_0x557946(0x1d7)](_0x80183a);}),this[_0x5a7967(0x34a)](this[_0x5a7967(0x155)]['onCommandExecuted'](_0x4d1b2a=>{const _0x166b50=_0x5a7967;if(_0x4d1b2a['params']==null)return;const _0x28b732=_0x4d1b2a[_0x166b50(0x210)];if(_0x4d1b2a['id']!==_0x3a183c[_0x166b50(0x191)]['id']||_0x28b732[_0x166b50(0x193)]!==this['unitID'])return;const _0x4e29c8={'id':'doc.mutation.rich-text-editing','params':_0x28b732},_0x14ed59=this[_0x166b50(0x22d)];for(const [_0x484991,_0x40de3d]of _0x14ed59){const _0x58ecb0={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x166b50(0x2e9)],'actions':null,'textRanges':_0x40de3d[_0x166b50(0x30e)]}},_0x60735d=this[_0x166b50(0x206)]['transformMutation'](_0x4e29c8,_0x58ecb0,!0x1);if(_0x5c97ef['isTransformMutationFailure'](_0x60735d))throw _0x60735d['error'];_0x14ed59['set'](_0x484991,{..._0x40de3d,'ranges':_0x60735d[_0x166b50(0x322)][_0x166b50(0x210)][_0x166b50(0x1a6)]});}queueMicrotask(()=>{const _0x4d6592=_0x166b50;this[_0x4d6592(0x293)]['next'](_0x14ed59);});})));}[_0x2c12e3(0x1d7)](_0x54171c){const _0x46f3ca=_0x2c12e3;var _0x5bd3dc,_0x406633;const {memberID:_0x245b74,selection:_0x48b286}=_0x54171c[_0x46f3ca(0x3a2)],_0x2278d4=_0x56e798(_0x48b286),_0x4f680c=(_0x406633=(_0x5bd3dc=this['_memberService'][_0x46f3ca(0x127)](this[_0x46f3ca(0x2e9)],_0x245b74))==null?void 0x0:_0x5bd3dc[_0x46f3ca(0x1a4)])!=null?_0x406633:_0x46f3ca(0x35c),_0x57a428={'color':this[_0x46f3ca(0x22a)][_0x46f3ca(0x2ab)](_0x245b74),'name':_0x4f680c,'ranges':_0x2278d4},_0x39ee6d=this[_0x46f3ca(0x22d)];_0x39ee6d['set'](_0x245b74,_0x57a428),this[_0x46f3ca(0x293)][_0x46f3ca(0x229)](_0x39ee6d);}[_0x2c12e3(0x29b)](_0x46d84d){const _0x194a8e=_0x2c12e3,{memberID:_0x42d2b2}=_0x46d84d['data'],_0x129ceb=this['cursorInfo'];_0x129ceb['delete'](_0x42d2b2),this[_0x194a8e(0x293)]['next'](_0x129ceb);}[_0x2c12e3(0x143)](){const _0x2d698f=_0x2c12e3;var _0x4417d7;if(this[_0x2d698f(0x1c8)]=!0x0,((_0x4417d7=this[_0x2d698f(0x2fa)][_0x2d698f(0x16d)]())==null?void 0x0:_0x4417d7[_0x2d698f(0x287)]())!==this[_0x2d698f(0x2e9)])return;const _0x4b69ce=this[_0x2d698f(0x1ea)][_0x2d698f(0x2e1)](_0x3a183c[_0x2d698f(0x337)])['getDocRanges']();Array['isArray'](_0x4b69ce)&&_0x4b69ce['length']>0x0&&this['_updateLocalCursor'](_0x4b69ce);}[_0x2c12e3(0x317)](){const _0x494328=_0x2c12e3;this[_0x494328(0x1c8)]=!0x1;}};_0x20066e=_0x3f41a5([_0x1b1e4a(0x2,_0x4026ac['Inject'](_0x4026ac['Injector'])),_0x1b1e4a(0x3,_0x4026ac[_0x2c12e3(0x168)](_0x5554b1)),_0x1b1e4a(0x4,_0x4026ac[_0x2c12e3(0x168)](_0x2f4463[_0x2c12e3(0x394)])),_0x1b1e4a(0x5,_0x4026ac[_0x2c12e3(0x168)](_0x4f6d56)),_0x1b1e4a(0x6,_0x5c97ef['ITransformService']),_0x1b1e4a(0x7,_0x4026ac[_0x2c12e3(0x2d2)]),_0x1b1e4a(0x8,_0x4026ac[_0x2c12e3(0x16e)])],_0x20066e);var _0x17dacc=Object[_0x2c12e3(0x12c)],_0x3382bf=(_0x8b2e73,_0x486940,_0x18d85c,_0x45b351)=>{const _0x422f3e=_0x2c12e3;for(var _0x5ba37b=_0x45b351>0x1?void 0x0:_0x45b351?_0x17dacc(_0x486940,_0x18d85c):_0x486940,_0x1c3840=_0x8b2e73[_0x422f3e(0x28e)]-0x1,_0x1f2c9c;_0x1c3840>=0x0;_0x1c3840--)(_0x1f2c9c=_0x8b2e73[_0x1c3840])&&(_0x5ba37b=_0x1f2c9c(_0x5ba37b)||_0x5ba37b);return _0x5ba37b;},_0x13b4ea=(_0x292478,_0x1788a1)=>(_0x300ed5,_0x5d849b)=>_0x1788a1(_0x300ed5,_0x5d849b,_0x292478);const _0x490117=0x12c,_0x35c932=0x64,_0x5a6bf8=()=>{let _0x429e29=[],_0x14f5a8=!0x1;return _0x44d968=>{_0x429e29['push'](_0x44d968),_0x14f5a8||(_0x14f5a8=!0x0,setTimeout(()=>{_0x429e29['forEach'](_0x1d0ebc=>_0x1d0ebc()),_0x429e29=[],_0x14f5a8=!0x1;}));};};let _0x1df8cc=class extends _0x4026ac[_0x2c12e3(0x2cb)]{constructor(_0x47abb0,_0x12b6b8,_0x5dbd9f,_0x1e2376,_0xab5ff8,_0x2138d6,_0x977442,_0x3e1b13){const _0x1c151d=_0x2c12e3;super(),_0x155617(this,_0x1c151d(0x1c8),!0x1),_0x155617(this,_0x1c151d(0x38a),!0x1),_0x155617(this,_0x1c151d(0x293),new _0x490568[(_0x1c151d(0x222))](new Map())),_0x155617(this,_0x1c151d(0x2bc),this[_0x1c151d(0x293)][_0x1c151d(0x1e5)]()),_0x155617(this,_0x1c151d(0x1d5),new _0x490568[(_0x1c151d(0x222))]([])),_0x155617(this,'roomMembers$',this['_roomMembers$'][_0x1c151d(0x32b)](_0x490568['debounceTime'](_0x490117))),_0x155617(this,'_updateLocalCursor',_0x4026ac[_0x1c151d(0x396)]((_0x596c2f,_0x669a1d)=>{const _0x1ae5d6=_0x1c151d,_0x475985={'eventID':_0x5c97ef['CollaborationEvent'][_0x1ae5d6(0x372)],'data':{'unitID':this[_0x1ae5d6(0x2e9)],'memberID':this[_0x1ae5d6(0x247)][_0x1ae5d6(0x226)](),'selection':_0x52401f['serializeRangeWithSheet'](_0x596c2f,_0x669a1d[_0x1ae5d6(0x345)])}};this[_0x1ae5d6(0x247)][_0x1ae5d6(0x225)](_0x475985,this[_0x1ae5d6(0x2e9)]);},_0x35c932)),(this[_0x1c151d(0x2e9)]=_0x47abb0,this['_session']=_0x12b6b8,this[_0x1c151d(0x1ea)]=_0x5dbd9f,this['_colorAssignService']=_0x1e2376,this[_0x1c151d(0x3b2)]=_0xab5ff8,this[_0x1c151d(0x2fa)]=_0x2138d6,this[_0x1c151d(0x155)]=_0x977442,this['_refRangeService']=_0x3e1b13);}get[_0x2c12e3(0x22d)](){const _0x3d224f=_0x2c12e3;return this['_cursorInfo$'][_0x3d224f(0x165)]();}get[_0x2c12e3(0x2fd)](){const _0x527459=_0x2c12e3;return this[_0x527459(0x1d5)][_0x527459(0x165)]();}[_0x2c12e3(0x36c)](){const _0x103160=_0x2c12e3;super[_0x103160(0x36c)](),this[_0x103160(0x293)]['next'](new Map()),this['_cursorInfo$'][_0x103160(0x399)](),this[_0x103160(0x1d5)][_0x103160(0x229)]([]),this[_0x103160(0x1d5)]['complete']();}[_0x2c12e3(0x1e8)](){const _0x4804c8=_0x2c12e3;this[_0x4804c8(0x38a)]||(this[_0x4804c8(0x38a)]=!0x0,this[_0x4804c8(0x247)]['sessionStatus$']['pipe'](_0x490568[_0x4804c8(0x2db)](this[_0x4804c8(0x13d)]))[_0x4804c8(0x2a7)](_0xdbdc87=>{const _0x4293a3=_0x4804c8;_0xdbdc87===_0x2f4463['SessionStatus'][_0x4293a3(0x1f8)]?this[_0x4293a3(0x143)]():this[_0x4293a3(0x317)]();}),this[_0x4804c8(0x247)][_0x4804c8(0x2c6)][_0x4804c8(0x32b)](_0x490568[_0x4804c8(0x2db)](this['dispose$']))[_0x4804c8(0x2a7)](_0x41e2b6=>{const _0x42c8cf=_0x4804c8,_0xc76265=_0x41e2b6['eventID'];_0xc76265===_0x5c97ef[_0x42c8cf(0x2cd)][_0x42c8cf(0x372)]&&this['_onCursorUpdate'](_0x41e2b6),_0xc76265===_0x5c97ef[_0x42c8cf(0x2cd)]['USERS_LEAVE']&&this[_0x42c8cf(0x29b)](_0x41e2b6);}),this[_0x4804c8(0x254)](),this[_0x4804c8(0x34a)](this[_0x4804c8(0x155)][_0x4804c8(0x25c)](_0x57b0e6=>{const _0x4b9072=_0x4804c8;if(this[_0x4b9072(0x1c8)]&&_0x57b0e6['id']===_0x18ee7b[_0x4b9072(0x283)]['id']&&_0x57b0e6[_0x4b9072(0x210)][_0x4b9072(0x193)]===this['unitID']){const _0x97887b=_0x57b0e6['params'];this[_0x4b9072(0x153)](_0x97887b['subUnitId'],_0x97887b[_0x4b9072(0x1e3)][0x0]);}})));}[_0x2c12e3(0x1d7)](_0x20ffd4){const _0x34a024=_0x2c12e3;var _0x4d849b,_0x3e8c86;const {memberID:_0x3caf43,selection:_0x2f89c9}=_0x20ffd4[_0x34a024(0x3a2)],{sheetName:_0x207a42,range:_0x455d7b}=_0x52401f[_0x34a024(0x23f)](_0x2f89c9),_0x554bd4={'name':(_0x3e8c86=(_0x4d849b=this[_0x34a024(0x3b2)][_0x34a024(0x127)](this[_0x34a024(0x2e9)],_0x3caf43))==null?void 0x0:_0x4d849b[_0x34a024(0x1a4)])!=null?_0x3e8c86:_0x34a024(0x35c),'range':this[_0x34a024(0x2b6)](_0x207a42,_0x455d7b),'sheetID':_0x207a42,'color':this[_0x34a024(0x22a)][_0x34a024(0x2ab)](_0x3caf43),'selection':_0x2f89c9},_0x23de2d=this[_0x34a024(0x22d)];_0x23de2d[_0x34a024(0x21d)](_0x3caf43,_0x554bd4),this[_0x34a024(0x293)][_0x34a024(0x229)](_0x23de2d);}['_onCursorDelete'](_0x1e9562){const _0x18f905=_0x2c12e3,{memberID:_0x13f517}=_0x1e9562[_0x18f905(0x3a2)],_0x295473=this[_0x18f905(0x22d)];_0x295473[_0x18f905(0x1b0)](_0x13f517),this[_0x18f905(0x293)][_0x18f905(0x229)](_0x295473);}[_0x2c12e3(0x2b6)](_0x49e1de,_0x130d13){const _0x4817fc=_0x2c12e3;var _0x164f68,_0x2c7f84;const _0x4d1de6=(_0x2c7f84=(_0x164f68=this['_univerInstanceService'][_0x4817fc(0x2b0)](this['unitID']))==null?void 0x0:_0x164f68['getSheetBySheetId'](_0x49e1de))==null?void 0x0:_0x2c7f84[_0x4817fc(0x1d2)]();return(_0x4d1de6==null?void 0x0:_0x4d1de6[_0x4817fc(0x332)](_0x3a99e0=>_0x4026ac['Rectangle'][_0x4817fc(0x223)](_0x3a99e0,_0x130d13)))||_0x130d13;}['_onRefRangeChange'](){const _0x58ae6d=_0x2c12e3,_0x41eb69=new _0x4026ac[(_0x58ae6d(0x333))](),_0x13256b=_0x5a6bf8(),_0x29984f=()=>{const _0x235cc1=_0x58ae6d;_0x41eb69[_0x235cc1(0x36c)]();const _0x407f0f=(_0x4b8fbd,_0x4b525e,_0x417c66,_0x28ad71)=>{const _0x44e2a2=_0x235cc1;let _0x1d5d6f=[];switch(_0x4b8fbd['id']){case _0x18ee7b[_0x44e2a2(0x15f)][_0x44e2a2(0x33e)]:{_0x1d5d6f=_0x18ee7b[_0x44e2a2(0x328)](_0x4b8fbd,_0x28ad71);break;}case _0x18ee7b[_0x44e2a2(0x15f)]['DeleteRangeMoveUpCommandId']:{_0x1d5d6f=_0x18ee7b[_0x44e2a2(0x2b9)](_0x4b8fbd,_0x28ad71);break;}case _0x18ee7b[_0x44e2a2(0x15f)][_0x44e2a2(0x26d)]:{_0x1d5d6f=_0x18ee7b[_0x44e2a2(0x20c)](_0x4b8fbd,_0x28ad71);break;}case _0x18ee7b[_0x44e2a2(0x15f)]['InsertRangeMoveDownCommandId']:{_0x1d5d6f=_0x18ee7b[_0x44e2a2(0x22c)](_0x4b8fbd,_0x28ad71);break;}case _0x18ee7b['EffectRefRangId'][_0x44e2a2(0x146)]:{_0x1d5d6f=_0x18ee7b[_0x44e2a2(0x1d0)](_0x4b8fbd,_0x28ad71);break;}case _0x18ee7b['EffectRefRangId'][_0x44e2a2(0x227)]:{_0x1d5d6f=_0x18ee7b[_0x44e2a2(0x12d)](_0x4b8fbd,_0x28ad71);break;}case _0x18ee7b[_0x44e2a2(0x15f)][_0x44e2a2(0x291)]:{_0x1d5d6f=_0x18ee7b['handleMoveRange'](_0x4b8fbd,_0x28ad71);break;}case _0x18ee7b[_0x44e2a2(0x15f)][_0x44e2a2(0x249)]:{_0x1d5d6f=_0x18ee7b['handleIRemoveCol'](_0x4b8fbd,_0x28ad71);break;}case _0x18ee7b[_0x44e2a2(0x15f)][_0x44e2a2(0x159)]:{_0x1d5d6f=_0x18ee7b['handleIRemoveRow'](_0x4b8fbd,_0x28ad71);break;}}const _0x4a8349=_0x18ee7b[_0x44e2a2(0x3b5)](_0x1d5d6f,_0x28ad71),_0x3c24a4=this[_0x44e2a2(0x22d)]['get'](_0x4b525e);if(_0x3c24a4&&_0x4a8349){const _0x346852={..._0x3c24a4,'range':_0x4a8349};this['cursorInfo'][_0x44e2a2(0x21d)](_0x4b525e,_0x346852),_0x13256b(()=>{const _0x398609=_0x44e2a2,_0xffcc16=this[_0x398609(0x24d)]['registerRefRange'](_0x4a8349,_0x169bf=>(_0xffcc16[_0x398609(0x36c)](),_0x407f0f(_0x169bf,_0x4b525e,_0x417c66,_0x4a8349)));_0x41eb69[_0x398609(0x28d)](_0xffcc16);});}return{'redos':[],'undos':[]};};this[_0x235cc1(0x22d)][_0x235cc1(0x3b9)]((_0x4ec307,_0x5f0392)=>{const _0x10d1b3=_0x235cc1,{range:_0xdab07,sheetID:_0x497494}=_0x4ec307,_0x2df082=this[_0x10d1b3(0x24d)][_0x10d1b3(0x384)](_0xdab07,_0x584bd5=>(_0x2df082[_0x10d1b3(0x36c)](),_0x407f0f(_0x584bd5,_0x5f0392,_0x497494,_0xdab07)));_0x41eb69['add'](_0x2df082);});};this[_0x58ae6d(0x34a)](_0x4026ac[_0x58ae6d(0x1a5)](this[_0x58ae6d(0x293)][_0x58ae6d(0x2a7)](()=>{_0x29984f();})));}[_0x2c12e3(0x143)](){const _0x4459b2=_0x2c12e3;var _0x314eb0,_0x32f717;if(this[_0x4459b2(0x1c8)]=!0x0,((_0x314eb0=this[_0x4459b2(0x2fa)][_0x4459b2(0x16d)]())==null?void 0x0:_0x314eb0['getUnitId']())!==this[_0x4459b2(0x2e9)])return;const _0x16e3ae=(_0x32f717=this[_0x4459b2(0x1ea)][_0x4459b2(0x2e1)](_0x18ee7b[_0x4459b2(0x2da)])[_0x4459b2(0x170)]())==null?void 0x0:_0x32f717[0x0],_0x5be4a9=this[_0x4459b2(0x2fa)]['getCurrentUnitForType'](_0x4026ac[_0x4459b2(0x2a6)][_0x4459b2(0x1f7)])['getActiveSheet']();_0x16e3ae&&_0x5be4a9&&this[_0x4459b2(0x153)](_0x5be4a9['getSheetId'](),_0x16e3ae);}['_toggleOffline'](){const _0x3a5b84=_0x2c12e3;this[_0x3a5b84(0x1c8)]=!0x1;}};_0x1df8cc=_0x3382bf([_0x13b4ea(0x2,_0x4026ac[_0x2c12e3(0x168)](_0x4026ac[_0x2c12e3(0x2ac)])),_0x13b4ea(0x3,_0x4026ac[_0x2c12e3(0x168)](_0x5554b1)),_0x13b4ea(0x4,_0x4026ac[_0x2c12e3(0x168)](_0x2f4463[_0x2c12e3(0x394)])),_0x13b4ea(0x5,_0x4026ac[_0x2c12e3(0x2d2)]),_0x13b4ea(0x6,_0x4026ac['ICommandService']),_0x13b4ea(0x7,_0x4026ac[_0x2c12e3(0x168)](_0x18ee7b[_0x2c12e3(0x218)]))],_0x1df8cc);var _0x167c08=Object[_0x2c12e3(0x12c)],_0x512ebb=(_0x59f328,_0x104e73,_0x2dda76,_0x379ae2)=>{const _0x4505bb=_0x2c12e3;for(var _0x4d9762=_0x379ae2>0x1?void 0x0:_0x379ae2?_0x167c08(_0x104e73,_0x2dda76):_0x104e73,_0x469b12=_0x59f328[_0x4505bb(0x28e)]-0x1,_0x17cf19;_0x469b12>=0x0;_0x469b12--)(_0x17cf19=_0x59f328[_0x469b12])&&(_0x4d9762=_0x17cf19(_0x4d9762)||_0x4d9762);return _0x4d9762;},_0x155ef7=(_0x4af055,_0x280a6c)=>(_0x5599b2,_0x4deda1)=>_0x280a6c(_0x5599b2,_0x4deda1,_0x4af055);let _0x1eb084=class extends _0x4026ac[_0x2c12e3(0x2cb)]{constructor(_0x5bd09c,_0x148c25,_0x21eba4){const _0x1831f0=_0x2c12e3;super(),_0x155617(this,_0x1831f0(0x31f),new Map()),_0x155617(this,_0x1831f0(0x276),new _0x490568[(_0x1831f0(0x304))]()),(this[_0x1831f0(0x2fa)]=_0x5bd09c,this[_0x1831f0(0x1ea)]=_0x148c25,this[_0x1831f0(0x1f5)]=_0x21eba4,this[_0x1831f0(0x38a)]());}[_0x2c12e3(0x36c)](){const _0x829a3f=_0x2c12e3;super['dispose'](),this[_0x829a3f(0x276)][_0x829a3f(0x399)](),this['_entities'][_0x829a3f(0x3b9)](_0x45b0de=>_0x45b0de[_0x829a3f(0x36c)]());}[_0x2c12e3(0x15b)](_0x144021){const _0x111876=_0x2c12e3;return this['_entities'][_0x111876(0x199)](_0x144021)?this[_0x111876(0x31f)][_0x111876(0x2e1)](_0x144021)[_0x111876(0x2bc)]:this[_0x111876(0x276)][_0x111876(0x32b)](_0x490568[_0x111876(0x200)](_0xb66df5=>_0xb66df5['unitID']===_0x144021),_0x490568['switchMap'](_0x43ec6e=>_0x43ec6e[_0x111876(0x2bc)]));}['_init'](){const _0x125898=_0x2c12e3;this[_0x125898(0x2fa)][_0x125898(0x36e)](_0x4026ac['UniverInstanceType']['UNIVER_SHEET'])['pipe'](_0x490568[_0x125898(0x2db)](this[_0x125898(0x13d)]))[_0x125898(0x2a7)](async _0x58de9b=>{const _0x37a6df=_0x125898,_0x1ed802=_0x58de9b[_0x37a6df(0x287)](),_0x20b4af=await this[_0x37a6df(0x1ec)](_0x1ed802);this[_0x37a6df(0x276)]['next'](_0x20b4af),this[_0x37a6df(0x31f)][_0x37a6df(0x21d)](_0x1ed802,_0x20b4af);}),this[_0x125898(0x2fa)][_0x125898(0x36e)](_0x4026ac[_0x125898(0x2a6)][_0x125898(0x34e)])[_0x125898(0x32b)](_0x490568['takeUntil'](this[_0x125898(0x13d)]))[_0x125898(0x32b)](_0x490568[_0x125898(0x200)](_0x5db3da=>!_0x5db3da['getUnitId']()[_0x125898(0x137)]('__')))[_0x125898(0x2a7)](async _0x2dd8c0=>{const _0x2aefe2=_0x125898,_0x3ee4f1=_0x2dd8c0[_0x2aefe2(0x287)](),_0x5a2fd7=await this['_startDocCollabCursor'](_0x3ee4f1);this['_entityInit$'][_0x2aefe2(0x229)](_0x5a2fd7),this[_0x2aefe2(0x31f)][_0x2aefe2(0x21d)](_0x3ee4f1,_0x5a2fd7);}),_0x490568['merge'](this[_0x125898(0x2fa)][_0x125898(0x31c)](_0x4026ac[_0x125898(0x2a6)]['UNIVER_DOC']),this[_0x125898(0x2fa)]['getTypeOfUnitDisposed$'](_0x4026ac[_0x125898(0x2a6)][_0x125898(0x1f7)]))[_0x125898(0x32b)](_0x490568[_0x125898(0x2db)](this[_0x125898(0x13d)]))[_0x125898(0x2a7)](_0x4564fa=>{const _0x5e3499=_0x125898,_0x28ad08=_0x4564fa[_0x5e3499(0x287)](),_0x528d29=this['_entities']['get'](_0x28ad08);_0x528d29&&(_0x528d29[_0x5e3499(0x36c)](),this[_0x5e3499(0x31f)][_0x5e3499(0x1b0)](_0x28ad08));});}async[_0x2c12e3(0x1ec)](_0x5707fe){const _0x2525b5=_0x2c12e3,_0x2ed1d1=await this[_0x2525b5(0x1f5)]['requireSession'](_0x5707fe),_0xe1ca25=this[_0x2525b5(0x1ea)][_0x2525b5(0x339)](_0x1df8cc,_0x5707fe,_0x2ed1d1);return _0xe1ca25[_0x2525b5(0x1e8)](),_0xe1ca25;}async[_0x2c12e3(0x1fd)](_0xc49d5){const _0x85cf55=_0x2c12e3,_0x295c2f=await this[_0x85cf55(0x1f5)][_0x85cf55(0x12f)](_0xc49d5),_0x1f6488=this[_0x85cf55(0x1ea)][_0x85cf55(0x339)](_0x20066e,_0xc49d5,_0x295c2f);return _0x1f6488[_0x85cf55(0x1e8)](),_0x1f6488;}};_0x1eb084=_0x512ebb([_0x155ef7(0x0,_0x4026ac['IUniverInstanceService']),_0x155ef7(0x1,_0x4026ac['Inject'](_0x4026ac[_0x2c12e3(0x2ac)])),_0x155ef7(0x2,_0x4026ac[_0x2c12e3(0x168)](_0x2f4463[_0x2c12e3(0x21e)]))],_0x1eb084);const _0x5cdb74=0x14,_0x54e6e1=0xc8,_0x214be0=0x4,_0xe8214a=0x5;function _0xb47b18(_0x598824,_0x1d4d4e){const _0x50673b=_0x2c12e3;let {radius:_0x5776c3,width:_0x402df7,height:_0x1d3921}=_0x1d4d4e;_0x5776c3=_0x5776c3!=null?_0x5776c3:0x0,_0x402df7=_0x402df7!=null?_0x402df7:0x1e,_0x1d3921=_0x1d3921!=null?_0x1d3921:0x1e;let _0x5877ef=0x0,_0x43ad62=0x0,_0xae957b=0x0;_0x5877ef=_0x43ad62=_0xae957b=Math[_0x50673b(0x256)](_0x5776c3,_0x402df7/0x2,_0x1d3921/0x2),_0x598824[_0x50673b(0x164)](),_0x598824['moveTo'](_0x5877ef,0x0),_0x598824[_0x50673b(0x288)](_0x402df7-_0x43ad62,0x0),_0x598824[_0x50673b(0x2bd)](_0x402df7-_0x43ad62,_0x43ad62,_0x43ad62,Math['PI']*0x3/0x2,0x0,!0x1),_0x598824['lineTo'](_0x402df7,_0x1d3921-_0xae957b),_0x598824[_0x50673b(0x2bd)](_0x402df7-_0xae957b,_0x1d3921-_0xae957b,_0xae957b,0x0,Math['PI']/0x2,!0x1),_0x598824[_0x50673b(0x288)](0x0,_0x1d3921),_0x598824[_0x50673b(0x288)](0x0,_0x5877ef),_0x598824['arc'](_0x5877ef,_0x5877ef,_0x5877ef,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x598824['closePath'](),_0x1d4d4e[_0x50673b(0x1ef)]&&(_0x598824[_0x50673b(0x1a2)](),_0x598824['fillStyle']=_0x1d4d4e[_0x50673b(0x1ef)],_0x1d4d4e[_0x50673b(0x27c)]===_0x50673b(0x2d3)?_0x598824[_0x50673b(0x1ef)](_0x50673b(0x2d3)):_0x598824['fill'](),_0x598824[_0x50673b(0x297)]());}class _0x396fa3 extends _0x7ef3ee[_0x2c12e3(0x3a5)]{constructor(_0x2a39ab,_0x1ac72a){const _0x1bafbb=_0x2c12e3;super(_0x2a39ab,_0x1ac72a),_0x155617(this,'color'),_0x155617(this,'text'),(this[_0x1bafbb(0x2b7)]=_0x1ac72a==null?void 0x0:_0x1ac72a[_0x1bafbb(0x2b7)],this[_0x1bafbb(0x23e)]=_0x1ac72a==null?void 0x0:_0x1ac72a[_0x1bafbb(0x23e)]);}static[_0x2c12e3(0x263)](_0x4c13fb,_0x43b69f){const _0x3f9ba0=_0x2c12e3,{text:_0x5d84e7,color:_0x2ea269}=_0x43b69f;_0x4c13fb[_0x3f9ba0(0x1a2)](),_0x4c13fb['font']=_0x3f9ba0(0x325);const _0x4fddf1=_0x4c13fb[_0x3f9ba0(0x2b1)](_0x5d84e7)[_0x3f9ba0(0x37e)],_0x1c265a=Math[_0x3f9ba0(0x256)](_0x4fddf1+0x2*_0x214be0,_0x54e6e1);_0xb47b18(_0x4c13fb,{'height':_0x5cdb74,'radius':0x4,'width':_0x1c265a,'fill':_0x2ea269}),_0x4c13fb[_0x3f9ba0(0x271)]=_0x3f9ba0(0x21c);const _0xb57cff=_0x214be0,_0x4079d3=_0x5cdb74-_0xe8214a,_0x14d942=_0x54e6e1-0x2*_0x214be0;if(_0x4fddf1>_0x14d942){let _0xe9e108='',_0x4d21f3=0x0;for(const _0x4e476b of _0x5d84e7){const _0x5f2b70=_0x4c13fb[_0x3f9ba0(0x2b1)](_0x4e476b)[_0x3f9ba0(0x37e)];if(_0x4d21f3+_0x5f2b70<=_0x14d942-_0x4c13fb[_0x3f9ba0(0x2b1)](_0x3f9ba0(0x370))[_0x3f9ba0(0x37e)])_0xe9e108+=_0x4e476b,_0x4d21f3+=_0x5f2b70;else{_0xe9e108+=_0x3f9ba0(0x370);break;}}_0x4c13fb[_0x3f9ba0(0x212)](_0xe9e108,_0xb57cff,_0x4079d3);}else _0x4c13fb['fillText'](_0x5d84e7,_0xb57cff,_0x4079d3);_0x4c13fb[_0x3f9ba0(0x297)]();}['_draw'](_0x3ffa24){const _0x92f614=_0x2c12e3;_0x396fa3[_0x92f614(0x263)](_0x3ffa24,this);}}const _0x567033=_0x2c12e3(0x389),_0x36af39=_0x2c12e3(0x1ff),_0x243437='collab-rect-range-',_0x313b91=0x6,_0x4cc2b2=1.5,_0xeefbfe=0x4,_0x2e3146=1.5,_0x5898c1=_0x2c12e3(0x2ca);class _0x18f6a1{constructor(_0xcf0f0,_0x24477c,_0x140133,_0x35cdee){const _0x130d2f=_0x2c12e3;_0x155617(this,_0x130d2f(0x391),[]),_0x155617(this,_0x130d2f(0x26c),null),_0x155617(this,_0x130d2f(0x1fa),null),_0x155617(this,_0x130d2f(0x33f),null),_0x155617(this,_0x130d2f(0x138),null),_0x155617(this,_0x130d2f(0x213),null),(this[_0x130d2f(0x2e7)]=_0xcf0f0,this['_scene']=_0x24477c,this[_0x130d2f(0x265)]=_0x140133,this[_0x130d2f(0x29d)]=_0x35cdee,this[_0x130d2f(0x392)]());}set[_0x2c12e3(0x1b3)](_0x6ef5c5){const _0x2820c3=_0x2c12e3;_0x6ef5c5?(this[_0x2820c3(0x33f)]&&this[_0x2820c3(0x33f)][_0x2820c3(0x211)](),this[_0x2820c3(0x1fa)]&&this['_textBubble'][_0x2820c3(0x363)]()):(this[_0x2820c3(0x33f)]&&this[_0x2820c3(0x33f)][_0x2820c3(0x363)](),this['_textBubble']&&this['_textBubble'][_0x2820c3(0x211)]());}[_0x2c12e3(0x36c)](){const _0x2ee8f2=_0x2c12e3;for(const _0x558e4e of this[_0x2ee8f2(0x391)])_0x558e4e['dispose']();this['_textBubble']&&this[_0x2ee8f2(0x1fa)]['dispose'](),this[_0x2ee8f2(0x33f)]&&this[_0x2ee8f2(0x33f)]['dispose'](),this[_0x2ee8f2(0x26c)]&&this[_0x2ee8f2(0x26c)][_0x2ee8f2(0x36c)](),this['_eventUnsubscribe']&&this[_0x2ee8f2(0x213)]();}['_render'](){const _0x1cc2ae=_0x2c12e3;var _0x47ec35;const {_docSkeleton:_0x3c3684,_document:_0x49ea38}=this,{color:_0x2b49c7,name:_0x302357,ranges:_0x4d1b77}=this[_0x1cc2ae(0x2e7)],_0x1f1d49=_0x49ea38[_0x1cc2ae(0x341)](),{docsLeft:_0x52f3ee,docsTop:_0x9b914b}=_0x1f1d49,_0x5d66d3=new _0x45dbe2[(_0x1cc2ae(0x251))](_0x1f1d49,_0x3c3684);for(const {startOffset:_0x519a9d,endOffset:_0x4a4a4c,rangeType:_0x32c601,segmentId:_0x1908ea,segmentPage:_0x477a82,collapsed:_0x48a3a8,isActive:_0x421f8a}of _0x4d1b77){const _0x3b68da=_0x3c3684['findNodePositionByCharIndex'](_0x519a9d,!0x0,_0x1908ea,_0x477a82);let _0x5609d3=_0x3c3684[_0x1cc2ae(0x35b)](_0x4a4a4c,!0x0,_0x1908ea,_0x477a82);if(_0x5609d3==null&&(_0x5609d3=_0x3c3684[_0x1cc2ae(0x35b)](_0x4a4a4c-0x1,!0x1,_0x1908ea,_0x477a82)),_0x421f8a){const {contentBoxPointGroup:_0x5b8d7b}=_0x5d66d3[_0x1cc2ae(0x161)](_0x5609d3,_0x5609d3);if(_0x5b8d7b[_0x1cc2ae(0x28e)]===0x0)continue;this['_drawAnchor'](_0x2b49c7,_0x5b8d7b,_0x52f3ee,_0x9b914b,_0x302357),this[_0x1cc2ae(0x213)]=this['_handleHover']();}if(_0x3b68da&&_0x5609d3){if(_0x32c601===_0x4026ac[_0x1cc2ae(0x18c)][_0x1cc2ae(0x24c)]){const _0x49790d=new _0x45dbe2[(_0x1cc2ae(0x228))](_0x1f1d49,_0x3c3684),{pointGroup:_0x1d3d9d}=(_0x47ec35=_0x49790d['getRangePointData'](_0x3b68da,_0x5609d3))!=null?_0x47ec35:{};if(_0x1d3d9d==null||_0x1d3d9d['length']===0x0)continue;this[_0x1cc2ae(0x2ff)](_0x2b49c7,_0x1d3d9d,_0x52f3ee,_0x9b914b);}else{if(!_0x48a3a8){const {borderBoxPointGroup:_0x5b994e}=_0x5d66d3[_0x1cc2ae(0x161)](_0x3b68da,_0x5609d3);if(_0x5b994e[_0x1cc2ae(0x28e)]===0x0)continue;this[_0x1cc2ae(0x1d3)](_0x2b49c7,_0x5b994e,_0x52f3ee,_0x9b914b);}}}}}[_0x2c12e3(0x2f9)](_0x331135,_0x4086ff,_0x308b15,_0x966b4c,_0x13c5b9){const _0x296ba7=_0x2c12e3,_0x547488=this[_0x296ba7(0x39b)](_0x4086ff),{left:_0x3a3e03,top:_0x4e1431,height:_0x23ca19}=_0x547488,_0x17e301=this[_0x296ba7(0x1d4)](),_0x4a9de1=_0x2e3146/_0x17e301,_0x5366ba=new _0x7ef3ee['Rect'](_0x567033+_0x4026ac[_0x296ba7(0x220)]['generateRandomId'](_0x313b91),{'left':_0x3a3e03+_0x308b15-_0x4a9de1,'top':_0x4e1431+_0x966b4c,'height':_0x23ca19,'width':_0x4cc2b2,'fill':_0x331135||_0x7ef3ee[_0x296ba7(0x1a9)](_0x4026ac[_0x296ba7(0x347)][_0x296ba7(0x367)],0x0),'strokeWidth':_0x4a9de1,'stroke':_0x5898c1,'evented':!0x0});this[_0x296ba7(0x26c)]=_0x5366ba,this[_0x296ba7(0x183)][_0x296ba7(0x3a1)](_0x5366ba,_0x45dbe2['TEXT_RANGE_LAYER_INDEX']);const _0x3fa5ee=new _0x7ef3ee[(_0x296ba7(0x2d8))](_0x567033+_0x4026ac[_0x296ba7(0x220)][_0x296ba7(0x29c)](_0x313b91),{'left':_0x3a3e03+_0x308b15-_0x4a9de1,'top':_0x4e1431+_0x966b4c-_0xeefbfe/0x2,'height':_0xeefbfe,'width':_0xeefbfe,'fill':_0x331135||_0x7ef3ee[_0x296ba7(0x1a9)](_0x4026ac[_0x296ba7(0x347)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x331135||_0x7ef3ee[_0x296ba7(0x1a9)](_0x4026ac[_0x296ba7(0x347)][_0x296ba7(0x367)],0x0),'evented':!0x1});this[_0x296ba7(0x33f)]=_0x3fa5ee,this['_scene']['addObject'](_0x3fa5ee,_0x45dbe2[_0x296ba7(0x379)]);const _0x426eec=new _0x396fa3(_0x567033+_0x4026ac['Tools'][_0x296ba7(0x29c)](_0x313b91),{'left':_0x3a3e03+_0x308b15-_0x4a9de1,'top':_0x4e1431+_0x966b4c-_0x5cdb74,'text':_0x13c5b9,'color':_0x331135});this[_0x296ba7(0x1fa)]=_0x426eec,this['_scene'][_0x296ba7(0x3a1)](_0x426eec,_0x45dbe2[_0x296ba7(0x379)]),this[_0x296ba7(0x1b3)]=!0x1;}[_0x2c12e3(0x269)](){const _0x1dcab3=_0x2c12e3,_0x415778=this[_0x1dcab3(0x26c)][_0x1dcab3(0x1ce)][_0x1dcab3(0x266)](()=>{const _0x27db99=_0x1dcab3;this[_0x27db99(0x1b3)]=!0x0;}),_0x1a2c9e=this[_0x1dcab3(0x26c)][_0x1dcab3(0x231)][_0x1dcab3(0x266)](()=>{const _0x2396e0=_0x1dcab3;this[_0x2396e0(0x138)]&&clearTimeout(this['_hideTimer']),this[_0x2396e0(0x138)]=setTimeout(()=>{const _0x2a92bf=_0x2396e0;this[_0x2a92bf(0x1b3)]=!0x1;},0x7d0);});return()=>{const _0xd3eab2=_0x1dcab3;_0x415778[_0xd3eab2(0x264)](),_0x1a2c9e[_0xd3eab2(0x264)]();};}[_0x2c12e3(0x1d3)](_0x3c2334,_0x52d0c1,_0x5e18d3,_0xedc5b6){const _0x14a0ae=_0x2c12e3,_0xfbba25=new _0x4026ac[(_0x14a0ae(0x1fb))](_0x3c2334)[_0x14a0ae(0x1fe)](0.2)[_0x14a0ae(0x2d7)](),_0x5c0d83=new _0x7ef3ee[(_0x14a0ae(0x14e))](_0x36af39+_0x4026ac[_0x14a0ae(0x220)][_0x14a0ae(0x29c)](_0x313b91),{'pointsGroup':_0x52d0c1,'fill':_0xfbba25||_0x7ef3ee[_0x14a0ae(0x1a9)](_0x4026ac[_0x14a0ae(0x347)][_0x14a0ae(0x367)],0.2),'left':_0x5e18d3,'top':_0xedc5b6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x14a0ae(0x391)][_0x14a0ae(0x2f7)](_0x5c0d83),this['_scene'][_0x14a0ae(0x3a1)](_0x5c0d83,_0x45dbe2['TEXT_RANGE_LAYER_INDEX']);}[_0x2c12e3(0x2ff)](_0xce7e5,_0x421265,_0xf0c411,_0x2fcc85){const _0x2c2571=_0x2c12e3,_0x4a2eae=new _0x4026ac[(_0x2c2571(0x1fb))](_0xce7e5)[_0x2c2571(0x1fe)](0.2)[_0x2c2571(0x2d7)](),_0x25a454=new _0x7ef3ee['RegularPolygon'](_0x243437+_0x4026ac[_0x2c2571(0x220)]['generateRandomId'](_0x313b91),{'pointsGroup':_0x421265,'fill':_0x4a2eae||_0x7ef3ee[_0x2c2571(0x1a9)](_0x4026ac[_0x2c2571(0x347)][_0x2c2571(0x367)],0.2),'left':_0xf0c411,'top':_0x2fcc85,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2c2571(0x391)]['push'](_0x25a454),this[_0x2c2571(0x183)][_0x2c2571(0x3a1)](_0x25a454,_0x45dbe2['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x816807){const _0x51790=_0x816807[0x0],_0x20d275=_0x51790[0x0],_0x3450a6=_0x51790[0x2],{x:_0x4a4751,y:_0x5636cc}=_0x20d275,{x:_0x2a31a8,y:_0x273c0c}=_0x3450a6;return{'left':_0x4a4751,'top':_0x5636cc,'width':_0x2a31a8-_0x4a4751,'height':_0x273c0c-_0x5636cc};}[_0x2c12e3(0x1d4)](){const _0x1ba5e9=_0x2c12e3,{scaleX:_0x3b1cd8,scaleY:_0x5af128}=this['_scene']['getAncestorScale']();return Math[_0x1ba5e9(0x395)](_0x3b1cd8,_0x5af128);}}var _0x428f0d=Object[_0x2c12e3(0x12c)],_0x36bdd0=(_0x59bf78,_0x28f967,_0x226711,_0x5ccf86)=>{const _0x4f9ed7=_0x2c12e3;for(var _0x96c847=_0x5ccf86>0x1?void 0x0:_0x5ccf86?_0x428f0d(_0x28f967,_0x226711):_0x28f967,_0x5d8921=_0x59bf78[_0x4f9ed7(0x28e)]-0x1,_0x3bcf3c;_0x5d8921>=0x0;_0x5d8921--)(_0x3bcf3c=_0x59bf78[_0x5d8921])&&(_0x96c847=_0x3bcf3c(_0x96c847)||_0x96c847);return _0x96c847;},_0x53af74=(_0x48f074,_0x4b1b73)=>(_0x5c01e9,_0x16a645)=>_0x4b1b73(_0x5c01e9,_0x16a645,_0x48f074);let _0x4094ff=class extends _0x4026ac['RxDisposable']{constructor(_0xd94285,_0x2a3b35,_0x4e8be,_0x50546a,_0x16aaa2){const _0x39eb40=_0x2c12e3;super(),_0x155617(this,_0x39eb40(0x232),[]),_0x155617(this,_0x39eb40(0x30c),[]),(this['_context']=_0xd94285,this[_0x39eb40(0x205)]=_0x2a3b35,this[_0x39eb40(0x383)]=_0x4e8be,this['_commandService']=_0x50546a,this[_0x39eb40(0x2f3)]=_0x16aaa2,this['_init']());}[_0x2c12e3(0x38a)](){const _0x5081b0=_0x2c12e3,_0x4bfb91=this['_context'][_0x5081b0(0x193)],_0x51999a=this[_0x5081b0(0x205)];this[_0x5081b0(0x34a)](_0x490568[_0x5081b0(0x219)]([this[_0x5081b0(0x383)][_0x5081b0(0x15b)](_0x4bfb91),this[_0x5081b0(0x2f3)][_0x5081b0(0x3ae)]])['pipe'](_0x59a3b2[_0x5081b0(0x253)](([_0x58078d,_0x18b14d])=>({'skeleton':_0x51999a[_0x5081b0(0x134)](),'cursors':[..._0x58078d['values']()][_0x5081b0(0x2c9)](_0x290a2b=>({..._0x290a2b,'color':this[_0x5081b0(0x2f3)][_0x5081b0(0x30a)](_0x290a2b[_0x5081b0(0x2b7)])}))})))[_0x5081b0(0x2a7)](_0x375192=>{const _0x15f2db=_0x5081b0;if(this[_0x15f2db(0x207)](),_0x375192){const {skeleton:_0x23264b,cursors:_0x3b4ec3}=_0x375192;this['_updateCollabCursors'](_0x23264b,_0x3b4ec3);}})),this[_0x5081b0(0x244)](),this[_0x5081b0(0x15e)]();}[_0x2c12e3(0x20e)](_0x181b15,_0x254ca0){const _0x2ab09a=_0x2c12e3,{scene:_0x22f473,mainComponent:_0x1cea39}=this[_0x2ab09a(0x156)],_0x11da08=_0x254ca0[_0x2ab09a(0x253)](_0x231175=>new _0x18f6a1(_0x231175,_0x22f473,_0x181b15,_0x1cea39));this[_0x2ab09a(0x232)]=_0x11da08,this[_0x2ab09a(0x30c)]=_0x254ca0;}[_0x2c12e3(0x3ad)](){const _0x373ef9=_0x2c12e3;this['_removeCollabCursors']();const {scene:_0xdb1240,mainComponent:_0x43122b}=this[_0x373ef9(0x156)],_0x53d3b3=this[_0x373ef9(0x205)]['getSkeleton'](),_0x159624=this[_0x373ef9(0x30c)][_0x373ef9(0x253)](_0x5d7648=>new _0x18f6a1(_0x5d7648,_0xdb1240,_0x53d3b3,_0x43122b));this['_cursorShapes']=_0x159624;}[_0x2c12e3(0x207)](){const _0x43d356=_0x2c12e3;this[_0x43d356(0x232)][_0x43d356(0x3b9)](_0x1e9450=>_0x1e9450[_0x43d356(0x36c)]()),this['_cursorShapes']=[];}[_0x2c12e3(0x15e)](){const _0x3d080f=_0x2c12e3,_0x3e6938=[_0x45dbe2[_0x3d080f(0x1a7)]['id']];this[_0x3d080f(0x34a)](this['_commandService'][_0x3d080f(0x25c)](_0x57c10a=>{const _0x2d1708=_0x3d080f;_0x3e6938[_0x2d1708(0x21f)](_0x57c10a['id'])&&_0x57c10a[_0x2d1708(0x210)][_0x2d1708(0x193)]===this['_context'][_0x2d1708(0x193)]&&this[_0x2d1708(0x3ad)]();}));}[_0x2c12e3(0x244)](){const _0x48d637=_0x2c12e3;this[_0x48d637(0x34a)](_0x4026ac[_0x48d637(0x2dc)](this[_0x48d637(0x156)]['engine']['onTransformChange$'])['pipe'](_0x59a3b2[_0x48d637(0x200)](_0x510128=>_0x510128[_0x48d637(0x23d)]===_0x7ef3ee[_0x48d637(0x275)]['resize']),_0x59a3b2[_0x48d637(0x377)](0x10))[_0x48d637(0x2a7)](()=>{this['_refreshCollabCursors']();}));}};_0x4094ff=_0x36bdd0([_0x53af74(0x1,_0x4026ac[_0x2c12e3(0x168)](_0x3a183c[_0x2c12e3(0x1c7)])),_0x53af74(0x2,_0x4026ac[_0x2c12e3(0x168)](_0x1eb084)),_0x53af74(0x3,_0x4026ac[_0x2c12e3(0x16e)]),_0x53af74(0x4,_0x4026ac[_0x2c12e3(0x168)](_0x4026ac['ThemeService']))],_0x4094ff);const _0x2edd10=0x1,_0xd549f8=1.5;class _0x2fb9dc extends _0x7ef3ee[_0x2c12e3(0x3a5)]{constructor(_0x19825a,_0x3303c8){const _0x562a04=_0x2c12e3;super(_0x19825a,_0x3303c8),_0x155617(this,_0x562a04(0x1e4)),_0x155617(this,_0x562a04(0x2d0),!0x1),_0x155617(this,_0x562a04(0x32d)),_0x155617(this,_0x562a04(0x13a),''),_0x155617(this,_0x562a04(0x356),_0x562a04(0x2df)),_0x155617(this,_0x562a04(0x189)),(_0x3303c8&&this[_0x562a04(0x12e)](_0x3303c8),this[_0x562a04(0x1ce)][_0x562a04(0x266)](()=>this[_0x562a04(0x12e)]({'hovered':!0x0})),this[_0x562a04(0x231)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x3f242e){const _0x339f0f=_0x2c12e3;var _0x500e53,_0x3e83b5,_0xe6a221,_0xc87c79,_0x146472,_0x4dd4de;this['_color']=(_0x500e53=_0x3f242e[_0x339f0f(0x2b7)])!=null?_0x500e53:this[_0x339f0f(0x1e4)],this[_0x339f0f(0x2d0)]=(_0x3e83b5=_0x3f242e['hovered'])!=null?_0x3e83b5:this['_hovered'],this[_0x339f0f(0x32d)]=(_0xe6a221=_0x3f242e[_0x339f0f(0x345)])!=null?_0xe6a221:this['_range'],this['_name']=(_0xc87c79=_0x3f242e[_0x339f0f(0x1a4)])!=null?_0xc87c79:this['_name'],this[_0x339f0f(0x356)]=(_0x146472=_0x3f242e[_0x339f0f(0x20a)])!=null?_0x146472:this[_0x339f0f(0x356)],this[_0x339f0f(0x189)]=(_0x4dd4de=_0x3f242e[_0x339f0f(0x329)])!=null?_0x4dd4de:this[_0x339f0f(0x189)],this[_0x339f0f(0x2f6)]({'width':_0x3f242e[_0x339f0f(0x37e)],'height':_0x3f242e[_0x339f0f(0x195)]});}[_0x2c12e3(0x180)](_0x201db9){const _0xe12edb=_0x2c12e3,{row:_0x2eafe3,column:_0x2ebcbc}=_0x201db9;if(_0x2eafe3>=this[_0xe12edb(0x32d)]['startRow']&&_0x2eafe3<=this[_0xe12edb(0x32d)]['endRow']&&_0x2ebcbc>=this[_0xe12edb(0x32d)]['startColumn']&&_0x2ebcbc<=this['_range'][_0xe12edb(0x12a)]){this[_0xe12edb(0x12e)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2c12e3(0x2ed)](_0x58defe){return!0x1;}['_draw'](_0x40ba41){const _0x3e34e8=_0x2c12e3;_0x7ef3ee[_0x3e34e8(0x2d8)][_0x3e34e8(0x263)](_0x40ba41,{'width':this[_0x3e34e8(0x37e)],'height':this[_0x3e34e8(0x195)],'strokeWidth':_0xd549f8,'stroke':this[_0x3e34e8(0x1e4)],'evented':!0x1,'fill':this[_0x3e34e8(0x189)]}),this['_hovered']&&(_0x40ba41['save'](),_0x40ba41['transform'](0x1,0x0,0x0,0x1,this[_0x3e34e8(0x37e)],this[_0x3e34e8(0x356)]===_0x3e34e8(0x398)?0x0:-0x14),_0x396fa3[_0x3e34e8(0x263)](_0x40ba41,{'text':this[_0x3e34e8(0x13a)],'color':this['_color']}),_0x40ba41['restore']());}}var _0x1d2b3b=Object[_0x2c12e3(0x12c)],_0xba106d=(_0x4f28c4,_0x5752b4,_0x597655,_0x200326)=>{const _0x254202=_0x2c12e3;for(var _0x449b4a=_0x200326>0x1?void 0x0:_0x200326?_0x1d2b3b(_0x5752b4,_0x597655):_0x5752b4,_0x35c5d2=_0x4f28c4[_0x254202(0x28e)]-0x1,_0x173963;_0x35c5d2>=0x0;_0x35c5d2--)(_0x173963=_0x4f28c4[_0x35c5d2])&&(_0x449b4a=_0x173963(_0x449b4a)||_0x449b4a);return _0x449b4a;},_0x1ec01f=(_0x3bd800,_0x4a4755)=>(_0x397774,_0x225a68)=>_0x4a4755(_0x397774,_0x225a68,_0x3bd800);const _0x505620=0x1389;let _0x58fc55=class extends _0x4026ac['RxDisposable']{constructor(_0x826cf8,_0x131e9f,_0x574766,_0x4c0849){const _0x179adc=_0x2c12e3;super(),_0x155617(this,'_cursors',new Set()),_0x155617(this,_0x179adc(0x1cc),null),(this[_0x179adc(0x156)]=_0x826cf8,this[_0x179adc(0x28c)]=_0x131e9f,this['_collabCursorController']=_0x574766,this['_themeService']=_0x4c0849,this['_init']());}['_init'](){const _0x3bbb93=_0x2c12e3;this[_0x3bbb93(0x28c)][_0x3bbb93(0x1c0)][_0x3bbb93(0x32b)](_0x59a3b2[_0x3bbb93(0x2db)](this['dispose$']),_0x59a3b2[_0x3bbb93(0x3b1)](_0x60f9de=>{const _0x5b76c1=_0x3bbb93;if(_0x60f9de){const _0x549153=_0x60f9de['sheetId'];return _0x490568[_0x5b76c1(0x219)](this[_0x5b76c1(0x383)][_0x5b76c1(0x15b)](this[_0x5b76c1(0x156)][_0x5b76c1(0x193)]),this['_themeService']['currentTheme$'])['pipe'](_0x59a3b2['map'](([_0x13ba06,_0x4fce5f])=>{const _0x100c10=_0x5b76c1,_0xf539e4=new Map();return _0x13ba06[_0x100c10(0x3b9)]((_0x2af770,_0x4a28fd)=>{const _0x342959=_0x100c10;if(_0x2af770[_0x342959(0x357)]===_0x549153){const _0x394a7e={..._0x2af770};_0x394a7e[_0x342959(0x2b7)]=this[_0x342959(0x2f3)][_0x342959(0x30a)](_0x2af770[_0x342959(0x2b7)]),_0xf539e4[_0x342959(0x21d)](_0x4a28fd,_0x394a7e);}}),{'skeleton':_0x60f9de,'cursors':_0xf539e4};}));}return _0x490568['of']({'skeleton':null,'cursors':new Map()});}))[_0x3bbb93(0x2a7)](({skeleton:_0x3be941,cursors:_0x7d38e7})=>{const _0x51ba38=_0x3bbb93;this[_0x51ba38(0x207)](),_0x3be941&&this['_updateCollabCursors'](_0x3be941,_0x7d38e7);}),this[_0x3bbb93(0x28c)]['currentSkeleton$']['subscribe'](_0x3865d0=>{const _0x3ced51=_0x3bbb93;if(_0x3865d0==null)return;const {skeleton:_0x219df0}=_0x3865d0,{scene:_0x5e865d}=this[_0x3ced51(0x156)];_0x5e865d[_0x3ced51(0x296)][_0x3ced51(0x266)](_0x4026ac[_0x3ced51(0x396)](_0x863249=>{const _0x28665e=_0x3ced51;var _0x4d2422,_0x2db0fc;const {offsetX:_0x4f58be,offsetY:_0x2ce495}=_0x863249,{x:_0x5dd71a,y:_0x5dd440}=_0x5e865d[_0x28665e(0x221)](_0x7ef3ee[_0x28665e(0x388)][_0x28665e(0x16f)]([_0x4f58be,_0x2ce495])),{scaleX:_0xfdfc2,scaleY:_0x386820}=_0x5e865d[_0x28665e(0x245)](),_0x6da990=_0x5e865d['getViewport'](_0x7ef3ee[_0x28665e(0x2a1)]['VIEW_MAIN']),_0x3cb01f=_0x5e865d[_0x28665e(0x2f8)](_0x7ef3ee[_0x28665e(0x388)][_0x28665e(0x16f)]([_0x5dd71a,_0x5dd440]),_0x6da990),_0x199b81=_0x219df0[_0x28665e(0x181)](_0x4f58be,_0x2ce495,_0xfdfc2,_0x386820,_0x3cb01f);((_0x4d2422=this[_0x28665e(0x1cc)])==null?void 0x0:_0x4d2422[_0x28665e(0x39d)])===_0x199b81['column']&&((_0x2db0fc=this['_lastPointer'])==null?void 0x0:_0x2db0fc[_0x28665e(0x1bb)])===_0x199b81[_0x28665e(0x1bb)]||this[_0x28665e(0x30c)][_0x28665e(0x3b9)](_0x2cfdc0=>{const _0x48b390=_0x28665e;_0x2cfdc0[_0x48b390(0x180)](_0x199b81);});},0x64));});}[_0x2c12e3(0x20e)](_0x133390,_0x108976){const _0x3bbe9d=_0x2c12e3;var _0x35ed5c;const _0x2545f6=(_0x35ed5c=this['_sheetSkeletonManagerService'][_0x3bbe9d(0x294)]())==null?void 0x0:_0x35ed5c[_0x3bbe9d(0x38c)];if(!_0x2545f6)return;const _0x260a2a=this[_0x3bbe9d(0x24f)]();if(!_0x260a2a)return;this[_0x3bbe9d(0x30c)]['forEach'](_0x14f751=>{const _0x50bee8=_0x3bbe9d;_0x14f751[_0x50bee8(0x340)]();});const {scene:_0x2266f3}=_0x260a2a,_0x343613=_0x33cf90(Array[_0x3bbe9d(0x277)](_0x108976[_0x3bbe9d(0x335)]()))[_0x3bbe9d(0x253)](_0x5aae84=>{const _0x500c3f=_0x3bbe9d,{color:_0x1f7203,range:_0x5dd12b,name:_0x3d592c,selection:_0x4fca3c,sheetID:_0x23e68b}=_0x5aae84,{startColumn:_0x574690,startRow:_0x4bb6db,endColumn:_0x230540,endRow:_0x54df34}=_0x5dd12b,_0xbc4348=_0x2e96f8[_0x500c3f(0x312)](_0x4bb6db,_0x574690,_0x2266f3,_0x2545f6),_0x386cec=_0x2e96f8[_0x500c3f(0x312)](_0x54df34,_0x230540,_0x2266f3,_0x2545f6),{columnHeaderHeightAndMarginTop:_0x29f596}=_0x2545f6,{startX:_0x3294fc,startY:_0x1aba0f}=_0xbc4348,{endX:_0x460ffb,endY:_0x39d60e}=_0x386cec,_0x54d343=_0x460ffb-_0x3294fc,_0x3ce8e5=_0x39d60e-_0x1aba0f,_0x2c4c43={'labelPosition':_0x1aba0f-_0x29f596>=_0x5cdb74?_0x500c3f(0x2df):_0x500c3f(0x398),'sheetID':_0x23e68b,'range':_0x5dd12b,'color':_0x1f7203,'name':_0x3d592c,'selection':_0x4fca3c,'left':_0x3294fc,'top':_0x1aba0f,'width':_0x54d343,'height':_0x3ce8e5,'evented':!0x1,'zIndex':_0x505620};return new _0x2fb9dc(_0x3d592c,_0x2c4c43);});_0x2266f3['addObjects'](_0x343613,_0x2edd10),this[_0x3bbe9d(0x30c)]=new Set(_0x343613);}[_0x2c12e3(0x207)](){const _0x1a92a=_0x2c12e3;var _0x405971;(_0x405971=this[_0x1a92a(0x30c)])==null||_0x405971[_0x1a92a(0x3b9)](_0x4b0d43=>_0x4b0d43[_0x1a92a(0x36c)]());}[_0x2c12e3(0x24f)](){const _0x2bddce=_0x2c12e3;return _0x2e96f8['getSheetObject'](this['_context']['unit'],this[_0x2bddce(0x156)]);}};_0x58fc55=_0xba106d([_0x1ec01f(0x1,_0x4026ac['Inject'](_0x2e96f8[_0x2c12e3(0x142)])),_0x1ec01f(0x2,_0x4026ac[_0x2c12e3(0x168)](_0x1eb084)),_0x1ec01f(0x3,_0x4026ac[_0x2c12e3(0x168)](_0x4026ac[_0x2c12e3(0x344)]))],_0x58fc55);function _0x33cf90(_0xf63cca){const _0x51c7c7=_0x2c12e3,_0x105d56=new Map();return _0xf63cca['forEach'](_0x322934=>{const _0x26e9a2=_0x3b1c;if(_0x105d56[_0x26e9a2(0x199)](_0x322934['selection'])){const _0x37795c=_0x105d56[_0x26e9a2(0x2e1)](_0x322934[_0x26e9a2(0x1ba)]);_0x37795c['name']+=',\x20'+_0x322934[_0x26e9a2(0x1a4)];}else _0x105d56[_0x26e9a2(0x21d)](_0x322934[_0x26e9a2(0x1ba)],_0x322934);}),Array[_0x51c7c7(0x277)](_0x105d56[_0x51c7c7(0x335)]());}var _0x37c88c=function(){const _0x38e26d=_0x2c12e3;return _0x37c88c=Object[_0x38e26d(0x1b1)]||function(_0xc3c344){const _0x162fc3=_0x38e26d;for(var _0x192c20,_0x20c16f=0x1,_0x52e93d=arguments['length'];_0x20c16f<_0x52e93d;_0x20c16f++){_0x192c20=arguments[_0x20c16f];for(var _0x1aeafe in _0x192c20)Object[_0x162fc3(0x1ad)][_0x162fc3(0x330)][_0x162fc3(0x2bb)](_0x192c20,_0x1aeafe)&&(_0xc3c344[_0x1aeafe]=_0x192c20[_0x1aeafe]);}return _0xc3c344;},_0x37c88c['apply'](this,arguments);},_0x5aed66=function(_0x36ae70,_0x2f9c7d){const _0x588d31=_0x2c12e3;var _0x5a5ada={};for(var _0x1a70e2 in _0x36ae70)Object['prototype'][_0x588d31(0x330)][_0x588d31(0x2bb)](_0x36ae70,_0x1a70e2)&&_0x2f9c7d[_0x588d31(0x1c9)](_0x1a70e2)<0x0&&(_0x5a5ada[_0x1a70e2]=_0x36ae70[_0x1a70e2]);if(_0x36ae70!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x4fe1bb=0x0,_0x1a70e2=Object[_0x588d31(0x2c1)](_0x36ae70);_0x4fe1bb<_0x1a70e2[_0x588d31(0x28e)];_0x4fe1bb++)_0x2f9c7d[_0x588d31(0x1c9)](_0x1a70e2[_0x4fe1bb])<0x0&&Object[_0x588d31(0x1ad)][_0x588d31(0x154)][_0x588d31(0x2bb)](_0x36ae70,_0x1a70e2[_0x4fe1bb])&&(_0x5a5ada[_0x1a70e2[_0x4fe1bb]]=_0x36ae70[_0x1a70e2[_0x4fe1bb]]);}return _0x5a5ada;},_0xef044d=_0x5b499e[_0x2c12e3(0x15a)](function(_0x299274,_0x5491ec){const _0x29cdc6=_0x2c12e3;var _0x8a159e=_0x299274[_0x29cdc6(0x167)],_0x4e6477=_0x299274['id'],_0x54c00f=_0x299274[_0x29cdc6(0x126)],_0x1f7c69=_0x299274[_0x29cdc6(0x2f4)],_0x1aa6e4=_0x5aed66(_0x299274,[_0x29cdc6(0x167),'id',_0x29cdc6(0x126),_0x29cdc6(0x2f4)]),_0x2f687b=_0x29cdc6(0x313)[_0x29cdc6(0x281)](_0x4e6477,'\x20')['concat'](_0x54c00f||'')[_0x29cdc6(0x299)](),_0x1ba2bd=_0x5b499e[_0x29cdc6(0x2ea)]('_'[_0x29cdc6(0x281)](_0x271542()));return _0x54b60e(_0x8a159e,''['concat'](_0x4e6477),{'defIds':_0x8a159e[_0x29cdc6(0x18e)],'idSuffix':_0x1ba2bd['current']},_0x37c88c({'ref':_0x5491ec,'className':_0x2f687b},_0x1aa6e4),_0x1f7c69);});function _0x54b60e(_0x1bc040,_0x57c504,_0x384828,_0x214dc8,_0x336cb3){const _0x12685c=_0x2c12e3;return _0x5b499e[_0x12685c(0x1c3)](_0x1bc040['tag'],_0x37c88c(_0x37c88c({'key':_0x57c504},_0x554fd3(_0x1bc040,_0x384828,_0x336cb3)),_0x214dc8),(_0x382a72(_0x1bc040,_0x384828)[_0x12685c(0x350)]||[])[_0x12685c(0x253)](function(_0x524e6a,_0x35aa8c){const _0x5c50ad=_0x12685c;return _0x54b60e(_0x524e6a,''[_0x5c50ad(0x281)](_0x57c504,'-')[_0x5c50ad(0x281)](_0x1bc040[_0x5c50ad(0x255)],'-')['concat'](_0x35aa8c),_0x384828,void 0x0,_0x336cb3);}));}function _0x554fd3(_0x49ce8d,_0x4f842d,_0x38bb43){const _0x1d2721=_0x2c12e3;var _0x445c45=_0x37c88c({},_0x49ce8d[_0x1d2721(0x393)]);_0x38bb43!=null&&_0x38bb43['colorChannel1']&&_0x445c45[_0x1d2721(0x1ef)]==='colorChannel1'&&(_0x445c45['fill']=_0x38bb43[_0x1d2721(0x26a)]),_0x49ce8d[_0x1d2721(0x255)]===_0x1d2721(0x2a5)&&_0x445c45['id']&&(_0x445c45['id']=_0x445c45['id']+_0x4f842d[_0x1d2721(0x2ec)]),Object['entries'](_0x445c45)[_0x1d2721(0x3b9)](function(_0x42db48){const _0x5c1b08=_0x1d2721;var _0x329ff9=_0x42db48[0x0],_0x2a3fe3=_0x42db48[0x1];_0x329ff9==='mask'&&typeof _0x2a3fe3==_0x5c1b08(0x28b)&&(_0x445c45[_0x329ff9]=_0x2a3fe3[_0x5c1b08(0x177)](/url\(#(.*)\)/,'url(#$1'[_0x5c1b08(0x281)](_0x4f842d['idSuffix'],')')));});var _0xdd9d4d=_0x4f842d[_0x1d2721(0x18e)];return!_0xdd9d4d||_0xdd9d4d[_0x1d2721(0x28e)]===0x0||(_0x49ce8d['tag']==='use'&&_0x445c45['xlink:href']&&(_0x445c45[_0x1d2721(0x1c2)]=_0x445c45[_0x1d2721(0x1c2)]+_0x4f842d[_0x1d2721(0x2ec)]),Object[_0x1d2721(0x3a6)](_0x445c45)[_0x1d2721(0x3b9)](function(_0x1c5bd7){const _0x5dc560=_0x1d2721;var _0x4a463b=_0x1c5bd7[0x0],_0x416646=_0x1c5bd7[0x1];typeof _0x416646==_0x5dc560(0x28b)&&(_0x445c45[_0x4a463b]=_0x416646[_0x5dc560(0x177)](/url\(#(.*)\)/,_0x5dc560(0x303)[_0x5dc560(0x281)](_0x4f842d['idSuffix'],')')));})),_0x445c45;}function _0x382a72(_0x302323,_0x4ce2e7){const _0x48c0cd=_0x2c12e3;var _0x3d4cdf,_0x11690c=_0x4ce2e7['defIds'];return!_0x11690c||_0x11690c[_0x48c0cd(0x28e)]===0x0?_0x302323:_0x302323[_0x48c0cd(0x255)]===_0x48c0cd(0x202)&&(!((_0x3d4cdf=_0x302323['children'])===null||_0x3d4cdf===void 0x0)&&_0x3d4cdf[_0x48c0cd(0x28e)])?_0x37c88c(_0x37c88c({},_0x302323),{'children':_0x302323[_0x48c0cd(0x350)]['map'](function(_0x21dfba){const _0x3e728d=_0x48c0cd;return typeof _0x21dfba[_0x3e728d(0x393)]['id']==_0x3e728d(0x28b)&&_0x11690c&&_0x11690c['includes'](_0x21dfba[_0x3e728d(0x393)]['id'])?_0x37c88c(_0x37c88c({},_0x21dfba),{'attrs':_0x37c88c(_0x37c88c({},_0x21dfba[_0x3e728d(0x393)]),{'id':_0x21dfba[_0x3e728d(0x393)]['id']+_0x4ce2e7['idSuffix']})}):_0x21dfba;})}):_0x302323;}function _0x271542(){const _0x5ed8d0=_0x2c12e3;return Math[_0x5ed8d0(0x2bf)]()[_0x5ed8d0(0x260)](0x24)[_0x5ed8d0(0x2c5)](0x2,0x8);}_0xef044d[_0x2c12e3(0x18b)]='UniverIcon';var _0x3da697={'tag':_0x2c12e3(0x2e8),'attrs':{'xmlns':_0x2c12e3(0x208),'fill':_0x2c12e3(0x19e),'viewBox':_0x2c12e3(0x1fc),'width':'1em','height':_0x2c12e3(0x285)},'children':[{'tag':'g','attrs':{'clipPath':_0x2c12e3(0x1eb)},'children':[{'tag':_0x2c12e3(0x346),'attrs':{'stroke':'currentColor','d':_0x2c12e3(0x32f),'strokeLinecap':_0x2c12e3(0x1b7),'strokeLinejoin':_0x2c12e3(0x1b7),'strokeWidth':1.2}}]},{'tag':_0x2c12e3(0x202),'attrs':{},'children':[{'tag':_0x2c12e3(0x2ba),'attrs':{'id':_0x2c12e3(0x16c)},'children':[{'tag':_0x2c12e3(0x346),'attrs':{'fill':_0x2c12e3(0x321),'d':_0x2c12e3(0x1aa)}}]}]}],'defIds':[_0x2c12e3(0x16c)]},_0x13ca4e=_0x5b499e[_0x2c12e3(0x15a)](function(_0x293a54,_0x16a24c){const _0x579b28=_0x2c12e3;return _0x5b499e['createElement'](_0xef044d,Object[_0x579b28(0x1b1)]({},_0x293a54,{'id':_0x579b28(0x2eb),'ref':_0x16a24c,'icon':_0x3da697}));});_0x13ca4e[_0x2c12e3(0x18b)]='OffLineIcon';var _0x21fa44={'tag':_0x2c12e3(0x2e8),'attrs':{'xmlns':_0x2c12e3(0x208),'fill':'none','viewBox':_0x2c12e3(0x338),'width':'1em','height':_0x2c12e3(0x285)},'children':[{'tag':'g','attrs':{'clipPath':_0x2c12e3(0x366)},'children':[{'tag':_0x2c12e3(0x346),'attrs':{'stroke':'currentColor','d':_0x2c12e3(0x387),'strokeLinecap':_0x2c12e3(0x1b7),'strokeLinejoin':_0x2c12e3(0x1b7),'strokeWidth':1.2}}]},{'tag':_0x2c12e3(0x202),'attrs':{},'children':[{'tag':_0x2c12e3(0x2ba),'attrs':{'id':_0x2c12e3(0x125)},'children':[{'tag':_0x2c12e3(0x346),'attrs':{'fill':_0x2c12e3(0x321),'d':_0x2c12e3(0x1aa),'transform':_0x2c12e3(0x1ac)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x164bc0=_0x5b499e[_0x2c12e3(0x15a)](function(_0xefa39b,_0x30c295){const _0x421dc7=_0x2c12e3;return _0x5b499e['createElement'](_0xef044d,Object[_0x421dc7(0x1b1)]({},_0xefa39b,{'id':_0x421dc7(0x2a2),'ref':_0x30c295,'icon':_0x21fa44}));});_0x164bc0[_0x2c12e3(0x18b)]=_0x2c12e3(0x250);function _0x84ec3c(_0x2dcf8e){const _0x441202=_0x2c12e3;switch(_0x2dcf8e){case _0x2f4463[_0x441202(0x136)][_0x441202(0x318)]:return _0x441202(0x1ee);case _0x2f4463[_0x441202(0x136)][_0x441202(0x128)]:return _0x441202(0x236);case _0x2f4463[_0x441202(0x136)]['FETCH_MISS']:return'collabStatus.fetchMiss';case _0x2f4463['CollaborationStatus']['NOT_COLLAB']:return _0x441202(0x2d6);case _0x2f4463['CollaborationStatus'][_0x441202(0x358)]:case _0x2f4463['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x441202(0x349);case _0x2f4463[_0x441202(0x136)]['SYNCED']:case _0x2f4463[_0x441202(0x136)][_0x441202(0x22f)]:return _0x441202(0x261);}}function _0x583fb1(_0x14e327){const _0x2f75be=_0x2c12e3,{status$:_0x477952}=_0x14e327,_0x4713a3=_0x3688dd['useObservable'](_0x477952,_0x2f4463[_0x2f75be(0x136)][_0x2f75be(0x1bc)]),_0x20da96=_0x3688dd['useDependency'](_0x4026ac[_0x2f75be(0x38f)]),_0x177c5f=_0x3688dd[_0x2f75be(0x16b)](_0x2f4463['CollaborationSessionService']),_0x7c9109=_0x4713a3!==_0x2f4463[_0x2f75be(0x136)][_0x2f75be(0x318)],_0xcd61c4=_0x20da96['t'](_0x84ec3c(_0x4713a3)),_0xd5cc31=_0x7c9109?_0x4666f7[_0x2f75be(0x37d)](_0x164bc0,{}):_0x4666f7[_0x2f75be(0x37d)](_0x13ca4e,{}),_0x557643=_0x5b499e['useCallback'](()=>{const _0x3ba800=_0x2f75be;_0x7c9109||_0x177c5f[_0x3ba800(0x348)]();},[_0x7c9109,_0x177c5f]);function _0x46d40b(){const _0x243c4b=_0x2f75be;return _0x4666f7[_0x243c4b(0x176)](_0x243c4b(0x36d),{'className':_0x243c4b(0x280),'onClick':_0x557643,'children':[_0x4666f7[_0x243c4b(0x37d)](_0x243c4b(0x36d),{'className':_0x16b3ae['clsx'](_0x243c4b(0x169),{'univer-text-green-500':_0x7c9109,'univer-text-red-500':!_0x7c9109}),'children':_0xd5cc31}),_0x4666f7['jsx'](_0x243c4b(0x36d),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xcd61c4})]});}return _0x7c9109?_0x46d40b():_0x4666f7[_0x2f75be(0x37d)](_0x16b3ae[_0x2f75be(0x1e7)],{'title':_0x20da96['t'](_0x2f75be(0x184)),'children':_0x46d40b()});}var _0x52174c=Object[_0x2c12e3(0x12c)],_0x456b44=(_0x4cbe44,_0x7fb4a1,_0x527c93,_0x2b5c9a)=>{for(var _0x3e670a=_0x2b5c9a>0x1?void 0x0:_0x2b5c9a?_0x52174c(_0x7fb4a1,_0x527c93):_0x7fb4a1,_0x47e3cc=_0x4cbe44['length']-0x1,_0x1dcfa2;_0x47e3cc>=0x0;_0x47e3cc--)(_0x1dcfa2=_0x4cbe44[_0x47e3cc])&&(_0x3e670a=_0x1dcfa2(_0x3e670a)||_0x3e670a);return _0x3e670a;},_0x4dd491=(_0xbdabd4,_0x35e7b6)=>(_0x7c7bba,_0x2f860c)=>_0x35e7b6(_0x7c7bba,_0x2f860c,_0xbdabd4);_0x12c937[_0x2c12e3(0x2a9)]=class extends _0x4026ac[_0x2c12e3(0x26f)]{constructor(_0x180523,_0x48cd04,_0x26c255,_0xfb419a){const _0x3dd679=_0x2c12e3;super(),_0x155617(this,_0x3dd679(0x2e2),new _0x490568['BehaviorSubject'](_0x2f4463[_0x3dd679(0x136)][_0x3dd679(0x1bc)])),(this['_univerInstanceService']=_0x180523,this[_0x3dd679(0x1ea)]=_0x48cd04,this[_0x3dd679(0x1f9)]=_0x26c255,this[_0x3dd679(0x148)]=_0xfb419a,this[_0x3dd679(0x326)](),this[_0x3dd679(0x2fe)]());}[_0x2c12e3(0x2fe)](){const _0x3b8ad3=_0x2c12e3;this[_0x3b8ad3(0x34a)](this['_univerInstanceService'][_0x3b8ad3(0x174)][_0x3b8ad3(0x32b)](_0x490568[_0x3b8ad3(0x3b1)](()=>{const _0x223272=_0x3b8ad3,_0x163f21=this[_0x223272(0x2fa)][_0x223272(0x16d)]();return _0x163f21?this[_0x223272(0x1f9)]['getCollabEntity$'](_0x163f21[_0x223272(0x287)]()):_0x490568['of'](null);}),_0x490568['switchMap'](_0x1ce7bb=>_0x1ce7bb?_0x1ce7bb['status$']:_0x490568['of'](_0x2f4463[_0x3b8ad3(0x136)][_0x3b8ad3(0x1bc)])))[_0x3b8ad3(0x2a7)](_0x24b68f=>{const _0x4cad41=_0x3b8ad3;this[_0x4cad41(0x2e2)][_0x4cad41(0x229)](_0x24b68f);}));}[_0x2c12e3(0x326)](){const _0x26a9e3=_0x2c12e3;this[_0x26a9e3(0x34a)](this[_0x26a9e3(0x148)]['registerComponent'](_0x3688dd[_0x26a9e3(0x32e)][_0x26a9e3(0x241)],()=>_0x3688dd[_0x26a9e3(0x397)](_0xfddd8b({'status$':this['_status$']['asObservable']()}),this[_0x26a9e3(0x1ea)])));}},_0x12c937[_0x2c12e3(0x2a9)]=_0x456b44([_0x4dd491(0x0,_0x4026ac[_0x2c12e3(0x2d2)]),_0x4dd491(0x1,_0x4026ac[_0x2c12e3(0x168)](_0x4026ac[_0x2c12e3(0x2ac)])),_0x4dd491(0x2,_0x4026ac[_0x2c12e3(0x168)](_0x2f4463['CollaborationController'])),_0x4dd491(0x3,_0x3688dd['IUIPartsService'])],_0x12c937['DesktopCollaborationStatusDisplayController']);function _0xfddd8b(_0x1421d9){const {status$:_0x7118b}=_0x1421d9;return function(){const _0x544c30=_0x3b1c;return _0x4666f7[_0x544c30(0x37d)](_0x583fb1,{'status$':_0x7118b});};}var _0x358b36=Object['getOwnPropertyDescriptor'],_0x45eadf=(_0x14abef,_0x586b5c,_0x3c234c,_0x5934ef)=>{for(var _0x399e84=_0x5934ef>0x1?void 0x0:_0x5934ef?_0x358b36(_0x586b5c,_0x3c234c):_0x586b5c,_0x5defb9=_0x14abef['length']-0x1,_0x45c813;_0x5defb9>=0x0;_0x5defb9--)(_0x45c813=_0x14abef[_0x5defb9])&&(_0x399e84=_0x45c813(_0x399e84)||_0x399e84);return _0x399e84;},_0x559925=(_0x2239c3,_0x20e383)=>(_0x52c959,_0x2326c4)=>_0x20e383(_0x52c959,_0x2326c4,_0x2239c3);let _0x30a3e0=class extends _0x4026ac[_0x2c12e3(0x26f)]{constructor(_0x14e470,_0xf2fc36,_0x270c25,_0x4ca077,_0x227fb0,_0x5ee9a6){const _0x4e81b4=_0x2c12e3;super(),this[_0x4e81b4(0x1f1)]=_0x14e470,this[_0x4e81b4(0x3aa)]=_0xf2fc36,this[_0x4e81b4(0x1f3)]=_0x270c25,this['_messageService']=_0x4ca077,this[_0x4e81b4(0x166)]=_0x227fb0,this[_0x4e81b4(0x2c2)]=_0x5ee9a6,this[_0x4e81b4(0x33d)](),this[_0x4e81b4(0x233)]();}[_0x2c12e3(0x33d)](){const _0x2c4e73=_0x2c12e3;this[_0x2c4e73(0x34a)](this[_0x2c4e73(0x1f1)][_0x2c4e73(0x319)](()=>{const _0x21920a=_0x2c4e73;if(this['_localCacheService']['saveTaskMap'][_0x21920a(0x187)])return this[_0x21920a(0x2c2)]['t'](_0x21920a(0x149));}));}['_initEvent'](){const _0x3323e6=_0x2c12e3;this[_0x3323e6(0x34a)](this[_0x3323e6(0x1f3)][_0x3323e6(0x2c6)][_0x3323e6(0x2a7)](_0x156880=>{const _0x46257a=_0x3323e6;_0x156880['id']===_0x2f4463[_0x46257a(0x35e)][_0x46257a(0x135)]&&this[_0x46257a(0x13b)]['show']({'type':_0x16b3ae['MessageType']['Warning'],'content':this[_0x46257a(0x2c2)]['t'](_0x46257a(0x30b))}),_0x156880['id']===_0x2f4463[_0x46257a(0x35e)]['CLOSE_ROOM']&&this[_0x46257a(0x13b)][_0x46257a(0x363)]({'type':_0x16b3ae[_0x46257a(0x162)][_0x46257a(0x19a)],'content':this['_localeService']['t'](_0x46257a(0x37b))}),_0x156880['id']===_0x2f4463['CollaborationUIEventId'][_0x46257a(0x2ae)]&&this[_0x46257a(0x166)][_0x46257a(0x363)]({'title':this['_localeService']['t'](_0x46257a(0x17d)),'content':this[_0x46257a(0x2c2)]['t'](_0x46257a(0x1dd)),'type':_0x46257a(0x295),'duration':0x0}),_0x156880['id']===_0x2f4463[_0x46257a(0x35e)][_0x46257a(0x128)]&&this[_0x46257a(0x13b)][_0x46257a(0x363)]({'type':_0x16b3ae[_0x46257a(0x162)][_0x46257a(0x1a8)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x156880[_0x46257a(0x3a2)]+')'}),_0x156880['id']===_0x2f4463[_0x46257a(0x35e)]['JOIN_ROOM_FAILED']&&this[_0x46257a(0x13b)][_0x46257a(0x363)]({'type':_0x16b3ae[_0x46257a(0x162)][_0x46257a(0x19a)],'content':this['_localeService']['t'](_0x156880[_0x46257a(0x3a2)]||'')}),_0x156880['id']===_0x2f4463[_0x46257a(0x35e)][_0x46257a(0x141)]&&this[_0x46257a(0x13b)]['show']({'type':_0x16b3ae[_0x46257a(0x162)][_0x46257a(0x19a)],'content':this[_0x46257a(0x2c2)]['t'](_0x46257a(0x27e))}),_0x156880['id']===_0x2f4463[_0x46257a(0x35e)][_0x46257a(0x3ab)]&&this[_0x46257a(0x13b)][_0x46257a(0x363)]({'type':_0x16b3ae[_0x46257a(0x162)]['Error'],'content':this['_localeService']['t'](_0x46257a(0x1b4))}),_0x156880['id']===_0x2f4463[_0x46257a(0x35e)][_0x46257a(0x29f)]&&this['_messageService'][_0x46257a(0x363)]({'type':_0x16b3ae[_0x46257a(0x162)][_0x46257a(0x1a8)],'content':this[_0x46257a(0x2c2)]['t'](_0x46257a(0x390))});}));}};_0x30a3e0=_0x45eadf([_0x559925(0x0,_0x3688dd[_0x2c12e3(0x129)]),_0x559925(0x1,_0x2f4463[_0x2c12e3(0x19c)]),_0x559925(0x2,_0x4026ac[_0x2c12e3(0x168)](_0x2f4463[_0x2c12e3(0x14f)])),_0x559925(0x3,_0x3688dd[_0x2c12e3(0x1b6)]),_0x559925(0x4,_0x3688dd['INotificationService']),_0x559925(0x5,_0x4026ac[_0x2c12e3(0x168)](_0x4026ac[_0x2c12e3(0x38f)]))],_0x30a3e0);const _0xe91dfe=_0x2c12e3(0x375),_0x3eabdd={},_0x4b733c=_0x4026ac['createIdentifier']('uni.network.url-service');var _0x4de546=Object['getOwnPropertyDescriptor'],_0x30628f=(_0x95d78a,_0x414c33,_0x5e64a7,_0x3708a0)=>{for(var _0x5897e2=_0x3708a0>0x1?void 0x0:_0x3708a0?_0x4de546(_0x414c33,_0x5e64a7):_0x414c33,_0x45df6a=_0x95d78a['length']-0x1,_0x3c1258;_0x45df6a>=0x0;_0x45df6a--)(_0x3c1258=_0x95d78a[_0x45df6a])&&(_0x5897e2=_0x3c1258(_0x5897e2)||_0x5897e2);return _0x5897e2;},_0x207c9b=(_0x3dcc8c,_0x1bf83e)=>(_0x586b20,_0x314a00)=>_0x1bf83e(_0x586b20,_0x314a00,_0x3dcc8c);_0x12c937[_0x2c12e3(0x36b)]=class extends _0x4026ac['RxDisposable']{constructor(_0xd45e62,_0x2d737a,_0x11e09b,_0x454261,_0x2d7360){const _0x9d48d=_0x2c12e3;super(),this[_0x9d48d(0x257)]=_0xd45e62,this[_0x9d48d(0x1f6)]=_0x2d737a,this[_0x9d48d(0x155)]=_0x11e09b,this[_0x9d48d(0x327)]=_0x454261,_0x2d7360?_0x2d7360==null||_0x2d7360['whenReady']()[_0x9d48d(0x185)](()=>this[_0x9d48d(0x38a)]()):(this[_0x9d48d(0x1f6)]['debug'](_0x9d48d(0x28a),_0x9d48d(0x290)),this['_init']());}async['_init'](){const _0x388312=_0x2c12e3,_0x150eef=this[_0x388312(0x257)]['getParam'](_0x388312(0x1e6)),_0x4ee67f=this['_urlService'][_0x388312(0x238)](_0x388312(0x23d)),_0x479e98=this['_urlService'][_0x388312(0x238)]('subunit');if(!_0x150eef||!_0x4ee67f){this[_0x388312(0x1f6)][_0x388312(0x1ae)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x2ca485=await this['_dataLoaderService'][_0x388312(0x1f2)](_0x150eef,Number(_0x4ee67f),_0x479e98);_0x2ca485&&_0x2ca485 instanceof _0x4026ac['Workbook']&&this[_0x388312(0x14d)](_0x2ca485);}async[_0x2c12e3(0x14d)](_0x569da1){const _0x5bbed1=_0x2c12e3;await this[_0x5bbed1(0x242)](_0x569da1),_0x569da1[_0x5bbed1(0x3b8)][_0x5bbed1(0x32b)](_0x490568[_0x5bbed1(0x2db)](this[_0x5bbed1(0x13d)]))[_0x5bbed1(0x2a7)](_0x2c769c=>{_0x2c769c&&this['_updateURLWithCurrentState'](_0x2c769c);}),this['_urlService'][_0x5bbed1(0x15c)][_0x5bbed1(0x32b)](_0x490568[_0x5bbed1(0x2db)](this['dispose$']))[_0x5bbed1(0x2a7)](()=>this[_0x5bbed1(0x242)](_0x569da1));}['_updateURLWithCurrentState'](_0x5dd3e0,_0x533446=!0x1){const _0x51a155=_0x2c12e3,_0x25795c=this[_0x51a155(0x257)]['getParam'](_0x51a155(0x192));_0x5dd3e0['getSheetId']()!==_0x25795c&&this[_0x51a155(0x257)][_0x51a155(0x2c8)]('subunit',_0x5dd3e0[_0x51a155(0x25a)](),_0x533446);}async[_0x2c12e3(0x242)](_0x186bc7){const _0x1ee7e7=_0x2c12e3;var _0x1c9ebf;const _0x19bd65=this[_0x1ee7e7(0x257)][_0x1ee7e7(0x238)](_0x1ee7e7(0x192));if(!_0x19bd65||!_0x186bc7[_0x1ee7e7(0x147)](_0x19bd65)){const _0x5893e6=_0x186bc7[_0x1ee7e7(0x173)]()[0x0],_0x2b4ce2=_0x186bc7[_0x1ee7e7(0x147)](_0x5893e6);if(!_0x2b4ce2)return;this[_0x1ee7e7(0x2c7)](_0x2b4ce2,!0x0),await this['_commandService'][_0x1ee7e7(0x23b)](_0x18ee7b['SetWorksheetActivateCommand']['id'],{'unitId':_0x186bc7[_0x1ee7e7(0x287)](),'subUnitId':_0x5893e6});return;}((_0x1c9ebf=_0x186bc7['getActiveSheet']())==null?void 0x0:_0x1c9ebf[_0x1ee7e7(0x25a)]())!==_0x19bd65&&await this['_commandService']['executeCommand'](_0x18ee7b['SetWorksheetActivateCommand']['id'],{'unitId':_0x186bc7[_0x1ee7e7(0x287)](),'subUnitId':_0x19bd65});}},_0x12c937[_0x2c12e3(0x36b)]=_0x30628f([_0x207c9b(0x0,_0x4b733c),_0x207c9b(0x1,_0x4026ac[_0x2c12e3(0x163)]),_0x207c9b(0x2,_0x4026ac[_0x2c12e3(0x16e)]),_0x207c9b(0x3,_0x4026ac[_0x2c12e3(0x168)](_0x2f4463[_0x2c12e3(0x1f0)])),_0x207c9b(0x4,_0x4026ac['Optional'](_0x2ef636[_0x2c12e3(0x157)]))],_0x12c937['CollaborationDataLoaderController']);var _0x1017bd=Object[_0x2c12e3(0x12c)],_0xc9d616=(_0x213a95,_0x1cd6cb,_0x755b5d,_0x2ab416)=>{for(var _0x1e776f=_0x2ab416>0x1?void 0x0:_0x2ab416?_0x1017bd(_0x1cd6cb,_0x755b5d):_0x1cd6cb,_0x490f48=_0x213a95['length']-0x1,_0xb840a0;_0x490f48>=0x0;_0x490f48--)(_0xb840a0=_0x213a95[_0x490f48])&&(_0x1e776f=_0xb840a0(_0x1e776f)||_0x1e776f);return _0x1e776f;},_0x335796=(_0x7213da,_0x34a528)=>(_0x2f66ea,_0x308606)=>_0x34a528(_0x2f66ea,_0x308606,_0x7213da);let _0x4fc82f=class{constructor(_0x1661be,_0x527a81,_0x46836a){const _0xfc7000=_0x2c12e3;this['_injector']=_0x1661be,this[_0xfc7000(0x206)]=_0x527a81,this['_renderManagerService']=_0x46836a;}[_0x2c12e3(0x22b)](_0x31f83d){const _0x2f6046=_0x2c12e3;this[_0x2f6046(0x361)](_0x31f83d),this[_0x2f6046(0x343)](_0x31f83d);}['transformRemoteChangeset'](_0x44fd4a){const _0x13f69c=_0x2c12e3,{unitID:_0x5abc93}=_0x44fd4a,_0x348556=this[_0x13f69c(0x3ba)][_0x13f69c(0x2b4)](_0x5abc93)['with'](_0x45dbe2[_0x13f69c(0x378)]),{redoCache:_0x28c71c}=_0x348556[_0x13f69c(0x3bc)]();if(_0x28c71c[_0x13f69c(0x28e)]===0x0)return _0x44fd4a;let _0x2b367a=_0x4026ac[_0x13f69c(0x220)][_0x13f69c(0x13e)](_0x44fd4a[_0x13f69c(0x323)][0x0]);for(let _0x261c85=0x0;_0x261c85<_0x28c71c[_0x13f69c(0x28e)];_0x261c85++){const _0x317d85={'id':_0x13f69c(0x2d9),'params':{..._0x28c71c[_0x261c85]}},_0x1e8471=this['_transformService'][_0x13f69c(0x2fb)](_0x2b367a,_0x317d85,!0x1);if(_0x5c97ef['isTransformMutationFailure'](_0x1e8471))throw _0x1e8471[_0x13f69c(0x295)];_0x2b367a=_0x1e8471[_0x13f69c(0x2ef)];}return{..._0x4026ac[_0x13f69c(0x220)][_0x13f69c(0x13e)](_0x44fd4a),'mutations':[_0x2b367a]};}[_0x2c12e3(0x361)](_0x100d57){const _0x3c08f4=_0x2c12e3,{unitID:_0xeca273}=_0x100d57,_0x21184e=this[_0x3c08f4(0x3ba)][_0x3c08f4(0x2b4)](_0xeca273)[_0x3c08f4(0x30f)](_0x45dbe2[_0x3c08f4(0x378)]),{undoCache:_0x57167f,redoCache:_0x5bc469}=_0x21184e[_0x3c08f4(0x3bc)]();if(_0x57167f[_0x3c08f4(0x28e)]===0x0||_0x5bc469[_0x3c08f4(0x28e)]===0x0)return;const _0x445c34=[],_0x1b4c11=[];let _0x55885c=_0x4026ac[_0x3c08f4(0x220)][_0x3c08f4(0x13e)](_0x100d57[_0x3c08f4(0x323)][0x0]),_0x2451f9=_0x4026ac['Tools']['deepClone'](_0x100d57[_0x3c08f4(0x323)][0x0]);for(let _0x1b179f=_0x57167f[_0x3c08f4(0x28e)]-0x1;_0x1b179f>=0x0;_0x1b179f--){const _0x451c87={'id':'doc.mutation.rich-text-editing','params':{..._0x57167f[_0x1b179f]}},_0x4a591c={'id':_0x3c08f4(0x2d9),'params':{..._0x5bc469[_0x1b179f]}},_0x5d24a8=this[_0x3c08f4(0x206)][_0x3c08f4(0x2fb)](_0x55885c,_0x451c87,!0x1),_0x5e059a=this[_0x3c08f4(0x206)][_0x3c08f4(0x2fb)](_0x2451f9,_0x4a591c,!0x1);if(_0x5c97ef[_0x3c08f4(0x278)](_0x5d24a8))throw _0x5d24a8[_0x3c08f4(0x295)];if(_0x5c97ef[_0x3c08f4(0x278)](_0x5e059a))throw _0x5e059a['error'];_0x445c34['unshift'](_0x5d24a8[_0x3c08f4(0x322)][_0x3c08f4(0x210)]),_0x1b4c11['unshift'](_0x5e059a[_0x3c08f4(0x322)][_0x3c08f4(0x210)]),_0x55885c=_0x5d24a8[_0x3c08f4(0x2ef)],_0x2451f9=_0x5e059a[_0x3c08f4(0x2ef)];}_0x21184e[_0x3c08f4(0x19b)]({'undoCache':_0x445c34,'redoCache':_0x1b4c11});}['_transformPreviousActiveRange'](_0xb165a7){const _0x2b26d1=_0x2c12e3,{unitID:_0x5a24bf}=_0xb165a7,_0x13f61c=this[_0x2b26d1(0x3ba)][_0x2b26d1(0x2b4)](_0x5a24bf)[_0x2b26d1(0x30f)](_0x45dbe2['DocIMEInputManagerService']),_0x32a2e1=_0x13f61c[_0x2b26d1(0x1d9)]();if(_0x32a2e1==null)return;const _0x27648a=[{'id':_0x2b26d1(0x2d9),'params':{'unitId':_0xb165a7[_0x2b26d1(0x2e9)],'actions':null,'textRanges':[_0x32a2e1]}}],_0x454160=this[_0x2b26d1(0x206)][_0x2b26d1(0x16a)](_0xb165a7,_0x27648a);if(!_0x5c97ef['isTransformMutationsWithChangesetSuccess'](_0x454160))throw _0x454160[_0x2b26d1(0x295)];const _0x3647aa=_0x454160[_0x2b26d1(0x322)][0x0][_0x2b26d1(0x210)][_0x2b26d1(0x1a6)];Array['isArray'](_0x3647aa)&&_0x3647aa[_0x2b26d1(0x28e)]&&_0x13f61c['setActiveRange'](_0x3647aa[0x0]);}};_0x4fc82f=_0xc9d616([_0x335796(0x0,_0x4026ac[_0x2c12e3(0x168)](_0x4026ac[_0x2c12e3(0x2ac)])),_0x335796(0x1,_0x5c97ef[_0x2c12e3(0x371)]),_0x335796(0x2,_0x7ef3ee[_0x2c12e3(0x1a3)])],_0x4fc82f);var _0x387a71=Object[_0x2c12e3(0x12c)],_0x26ba51=(_0x64708d,_0x28b468,_0x3d988e,_0xa4e116)=>{const _0x5b9e2c=_0x2c12e3;for(var _0x164754=_0xa4e116>0x1?void 0x0:_0xa4e116?_0x387a71(_0x28b468,_0x3d988e):_0x28b468,_0x48d2d1=_0x64708d[_0x5b9e2c(0x28e)]-0x1,_0x4a8d96;_0x48d2d1>=0x0;_0x48d2d1--)(_0x4a8d96=_0x64708d[_0x48d2d1])&&(_0x164754=_0x4a8d96(_0x164754)||_0x164754);return _0x164754;},_0x3f044a=(_0x5bf6e2,_0xf1320a)=>(_0xae2516,_0x316d70)=>_0xf1320a(_0xae2516,_0x316d70,_0x5bf6e2);let _0x186c6c=class{constructor(_0x580b51,_0x238642,_0xb51e22){const _0x2d6268=_0x2c12e3;this['_injector']=_0x580b51,this[_0x2d6268(0x206)]=_0x238642,this[_0x2d6268(0x2d4)]=_0xb51e22;}['transformStateCache'](_0x5be14a){this['_transformHistoryAndStateStack'](_0x5be14a);}[_0x2c12e3(0x368)](_0x91cf41){const _0x277afd=_0x2c12e3,{unitID:_0x51e7e6}=_0x91cf41,{collaboration:_0x575f34}=this[_0x277afd(0x2d4)][_0x277afd(0x3a4)](_0x51e7e6);if(_0x575f34['length']===0x0)return _0x91cf41;let _0x1f5ed1=_0x4026ac[_0x277afd(0x220)]['deepClone'](_0x91cf41[_0x277afd(0x323)][0x0]);for(let _0x4115d5=0x0;_0x4115d5<_0x575f34[_0x277afd(0x28e)];_0x4115d5++){const _0x5e6deb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x575f34[_0x4115d5][_0x277afd(0x193)],..._0x575f34[_0x4115d5][_0x277afd(0x243)]}},_0x3e1124=this[_0x277afd(0x206)][_0x277afd(0x2fb)](_0x1f5ed1,_0x5e6deb,!0x1);if(_0x5c97ef[_0x277afd(0x278)](_0x3e1124))throw _0x3e1124[_0x277afd(0x295)];_0x1f5ed1=_0x3e1124[_0x277afd(0x2ef)];}return{..._0x4026ac[_0x277afd(0x220)]['deepClone'](_0x91cf41),'mutations':[_0x1f5ed1]};}[_0x2c12e3(0x217)](_0x4cde04){const _0x55aaf6=_0x2c12e3,{unitID:_0x29cbb8}=_0x4cde04,{history:_0x23d83b,collaboration:_0x11c0f7}=this['_docStateChangeManagerService'][_0x55aaf6(0x3a4)](_0x29cbb8);if(_0x23d83b[_0x55aaf6(0x28e)]===0x0&&_0x11c0f7[_0x55aaf6(0x28e)]===0x0)return;const _0x2ea3b0=[],_0x2082ce=[];let _0x5a7d71=_0x4026ac['Tools'][_0x55aaf6(0x13e)](_0x4cde04[_0x55aaf6(0x323)][0x0]),_0x441bb8=_0x4026ac['Tools']['deepClone'](_0x4cde04[_0x55aaf6(0x323)][0x0]);for(let _0x2b4e94=_0x23d83b[_0x55aaf6(0x28e)]-0x1;_0x2b4e94>=0x0;_0x2b4e94--){const _0x610229={'id':_0x55aaf6(0x2d9),'params':{'unitId':_0x23d83b[_0x2b4e94][_0x55aaf6(0x193)],..._0x23d83b[_0x2b4e94][_0x55aaf6(0x12b)]}},_0xefa61f={'id':_0x55aaf6(0x2d9),'params':{'unitId':_0x23d83b[_0x2b4e94]['unitId'],..._0x23d83b[_0x2b4e94][_0x55aaf6(0x243)]}},_0x20b163=this['_transformService'][_0x55aaf6(0x2fb)](_0x5a7d71,_0x610229,!0x1),_0x1103ef=this[_0x55aaf6(0x206)]['transformMutation'](_0x441bb8,_0xefa61f,!0x1);if(_0x5c97ef['isTransformMutationFailure'](_0x20b163))throw _0x20b163[_0x55aaf6(0x295)];if(_0x5c97ef['isTransformMutationFailure'](_0x1103ef))throw _0x1103ef[_0x55aaf6(0x295)];_0x2ea3b0[_0x55aaf6(0x224)]({..._0x23d83b[_0x2b4e94],'undoState':_0x20b163[_0x55aaf6(0x322)][_0x55aaf6(0x210)],'redoState':_0x1103ef[_0x55aaf6(0x322)][_0x55aaf6(0x210)]}),_0x5a7d71=_0x20b163[_0x55aaf6(0x2ef)],_0x441bb8=_0x1103ef[_0x55aaf6(0x2ef)];}_0x5a7d71=_0x4026ac[_0x55aaf6(0x220)][_0x55aaf6(0x13e)](_0x4cde04[_0x55aaf6(0x323)][0x0]),_0x441bb8=_0x4026ac[_0x55aaf6(0x220)][_0x55aaf6(0x13e)](_0x4cde04[_0x55aaf6(0x323)][0x0]);for(let _0x373c35=_0x11c0f7['length']-0x1;_0x373c35>=0x0;_0x373c35--){const _0x5d1d61={'id':_0x55aaf6(0x2d9),'params':{'unitId':_0x11c0f7[_0x373c35][_0x55aaf6(0x193)],..._0x11c0f7[_0x373c35][_0x55aaf6(0x12b)]}},_0x3df287={'id':_0x55aaf6(0x2d9),'params':{'unitId':_0x11c0f7[_0x373c35][_0x55aaf6(0x193)],..._0x11c0f7[_0x373c35][_0x55aaf6(0x243)]}},_0x43a1da=this[_0x55aaf6(0x206)][_0x55aaf6(0x2fb)](_0x5a7d71,_0x5d1d61,!0x1),_0xdf869f=this[_0x55aaf6(0x206)][_0x55aaf6(0x2fb)](_0x441bb8,_0x3df287,!0x1);if(_0x5c97ef[_0x55aaf6(0x278)](_0x43a1da))throw _0x43a1da[_0x55aaf6(0x295)];if(_0x5c97ef['isTransformMutationFailure'](_0xdf869f))throw _0xdf869f['error'];_0x2082ce[_0x55aaf6(0x224)]({..._0x11c0f7[_0x373c35],'undoState':_0x43a1da[_0x55aaf6(0x322)][_0x55aaf6(0x210)],'redoState':_0xdf869f[_0x55aaf6(0x322)][_0x55aaf6(0x210)]}),_0x5a7d71=_0x43a1da['m1Prime'],_0x441bb8=_0xdf869f['m1Prime'];}this[_0x55aaf6(0x2d4)][_0x55aaf6(0x26e)](_0x29cbb8,{'history':_0x2ea3b0,'collaboration':_0x2082ce});}};_0x186c6c=_0x26ba51([_0x3f044a(0x0,_0x4026ac[_0x2c12e3(0x168)](_0x4026ac[_0x2c12e3(0x2ac)])),_0x3f044a(0x1,_0x5c97ef[_0x2c12e3(0x371)]),_0x3f044a(0x2,_0x4026ac[_0x2c12e3(0x168)](_0x45dbe2[_0x2c12e3(0x1ed)]))],_0x186c6c);var _0x5c7469=Object[_0x2c12e3(0x12c)],_0x294d9c=(_0x1ff3ab,_0x22adc6,_0x5dd4c6,_0x282ec9)=>{const _0x5a482d=_0x2c12e3;for(var _0x41674c=_0x282ec9>0x1?void 0x0:_0x282ec9?_0x5c7469(_0x22adc6,_0x5dd4c6):_0x22adc6,_0x5c663d=_0x1ff3ab[_0x5a482d(0x28e)]-0x1,_0x1d4d5d;_0x5c663d>=0x0;_0x5c663d--)(_0x1d4d5d=_0x1ff3ab[_0x5c663d])&&(_0x41674c=_0x1d4d5d(_0x41674c)||_0x41674c);return _0x41674c;},_0x34ad9f=(_0x1b1848,_0x72b5b9)=>(_0x1868b8,_0x1c035f)=>_0x72b5b9(_0x1868b8,_0x1c035f,_0x1b1848);let _0x3cf5de=class{constructor(_0xf0fe8f,_0x63abcf){const _0x458fe7=_0x2c12e3;this[_0x458fe7(0x1ea)]=_0xf0fe8f,this['_transformService']=_0x63abcf;}[_0x2c12e3(0x270)](_0x3d2145){const _0x4cb344=_0x2c12e3;var _0x723c9a;const _0x17d07f=this['_injector']['get'](_0x3a183c[_0x4cb344(0x337)]),_0xed75bb=(_0x723c9a=_0x17d07f[_0x4cb344(0x22e)]())!=null?_0x723c9a:[];if(_0xed75bb['length']===0x0)return;const _0xcd4529=_0x3d2145['unitID'],_0x242ea7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xcd4529,'actions':null,'textRanges':_0xed75bb}}],_0x4ae6d8=this['_transformService'][_0x4cb344(0x16a)](_0x3d2145,_0x242ea7);if(!_0x5c97ef[_0x4cb344(0x374)](_0x4ae6d8))throw _0x4ae6d8[_0x4cb344(0x295)];const _0xa85fcd=_0x4ae6d8[_0x4cb344(0x322)][0x0][_0x4cb344(0x210)][_0x4cb344(0x1a6)];Array[_0x4cb344(0x178)](_0xa85fcd)&&_0xa85fcd[_0x4cb344(0x28e)]&&_0x17d07f[_0x4cb344(0x315)](_0xa85fcd,{'unitId':_0xcd4529,'subUnitId':_0xcd4529},!0x1);}};_0x3cf5de=_0x294d9c([_0x34ad9f(0x0,_0x4026ac['Inject'](_0x4026ac[_0x2c12e3(0x2ac)])),_0x34ad9f(0x1,_0x5c97ef[_0x2c12e3(0x371)])],_0x3cf5de);var _0xeb5542=Object[_0x2c12e3(0x12c)],_0x33c5b8=(_0x448c97,_0x121ed0,_0x567899,_0x5cbd70)=>{const _0xb38af5=_0x2c12e3;for(var _0xc4e143=_0x5cbd70>0x1?void 0x0:_0x5cbd70?_0xeb5542(_0x121ed0,_0x567899):_0x121ed0,_0x1609b1=_0x448c97[_0xb38af5(0x28e)]-0x1,_0x33794c;_0x1609b1>=0x0;_0x1609b1--)(_0x33794c=_0x448c97[_0x1609b1])&&(_0xc4e143=_0x33794c(_0xc4e143)||_0xc4e143);return _0xc4e143;},_0x32683d=(_0x317504,_0xe827c8)=>(_0x478ade,_0x27105b)=>_0xe827c8(_0x478ade,_0x27105b,_0x317504);let _0x106e69=class extends _0x4026ac['Disposable']{constructor(_0x1a79c3,_0x253bc5,_0x2574f8,_0x3f6012,_0x345224,_0xbf3b0,_0x12227c,_0x1c968c){const _0x4d12b2=_0x2c12e3;super(),_0x155617(this,_0x4d12b2(0x2e2),new _0x490568[(_0x4d12b2(0x222))](_0x2f4463[_0x4d12b2(0x136)]['NOT_COLLAB'])),(this[_0x4d12b2(0x2d4)]=_0x1a79c3,this[_0x4d12b2(0x1f9)]=_0x253bc5,this['_docTransformIMECacheService']=_0x2574f8,this[_0x4d12b2(0x2af)]=_0x3f6012,this[_0x4d12b2(0x336)]=_0x345224,this[_0x4d12b2(0x279)]=_0xbf3b0,this[_0x4d12b2(0x13b)]=_0x12227c,this[_0x4d12b2(0x2c2)]=_0x1c968c,this[_0x4d12b2(0x3b4)]());}[_0x2c12e3(0x3b4)](){const _0x429803=_0x2c12e3;this[_0x429803(0x34a)](this[_0x429803(0x1f9)][_0x429803(0x151)][_0x429803(0x2a7)](_0x3595b5=>{const _0x3f2a77=_0x429803,_0x168de7=this[_0x3f2a77(0x2d4)][_0x3f2a77(0x13c)][_0x3f2a77(0x2a7)](_0x31650d=>{const _0x12aad1=_0x3f2a77;if(_0x31650d==null)return;const {unitId:_0x10b4e7,redoState:_0xa2650b,commandId:_0x41e8ad}=_0x31650d;if(_0x10b4e7!==_0x3595b5[_0x12aad1(0x2e9)])return;const _0x139288={'id':_0x41e8ad,'type':_0x4026ac[_0x12aad1(0x214)][_0x12aad1(0x2cc)],'params':{'unitId':_0x10b4e7,'actions':_0xa2650b[_0x12aad1(0x3a7)],'textRanges':null}};_0x3595b5[_0x12aad1(0x2a0)](_0x139288);});if(_0x3595b5[_0x3f2a77(0x34a)](_0x168de7),_0x3595b5 instanceof _0x2f4463['DocCollaborationEntity']){const _0x4a9b5a={'onTransformIME':_0x4e8372=>this[_0x3f2a77(0x237)][_0x3f2a77(0x22b)](_0x4e8372),'onTransformState':_0x4820a4=>this['_docTransformStateCacheService'][_0x3f2a77(0x25d)](_0x4820a4),'onTransformSelections':_0x9fc8f6=>this['_docTransformSelectionsService'][_0x3f2a77(0x270)](_0x9fc8f6),'onSyncEditingCollabCursor':_0xa0c610=>this[_0x3f2a77(0x279)][_0x3f2a77(0x38d)](_0xa0c610),'onTransformRemoteChangesetByIMECache':_0x206c84=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x206c84),'onTransformRemoteChangesetByStateCache':_0x5d9a1c=>this[_0x3f2a77(0x2af)][_0x3f2a77(0x368)](_0x5d9a1c)};_0x3595b5[_0x3f2a77(0x34d)](_0x4a9b5a);}}));}};_0x106e69=_0x33c5b8([_0x32683d(0x0,_0x4026ac['Inject'](_0x45dbe2[_0x2c12e3(0x1ed)])),_0x32683d(0x1,_0x4026ac[_0x2c12e3(0x168)](_0x2f4463[_0x2c12e3(0x2ee)])),_0x32683d(0x2,_0x4026ac['Inject'](_0x4fc82f)),_0x32683d(0x3,_0x4026ac[_0x2c12e3(0x168)](_0x186c6c)),_0x32683d(0x4,_0x4026ac[_0x2c12e3(0x168)](_0x3cf5de)),_0x32683d(0x5,_0x4026ac[_0x2c12e3(0x168)](_0x4f6d56)),_0x32683d(0x6,_0x3688dd[_0x2c12e3(0x1b6)]),_0x32683d(0x7,_0x4026ac[_0x2c12e3(0x168)](_0x4026ac[_0x2c12e3(0x38f)]))],_0x106e69);var _0x5a5bdf=Object[_0x2c12e3(0x12c)],_0x89af86=(_0x427de9,_0x5451f5,_0x1b0f3e,_0x22e300)=>{for(var _0x4750e4=_0x22e300>0x1?void 0x0:_0x22e300?_0x5a5bdf(_0x5451f5,_0x1b0f3e):_0x5451f5,_0x562e55=_0x427de9['length']-0x1,_0x2938b5;_0x562e55>=0x0;_0x562e55--)(_0x2938b5=_0x427de9[_0x562e55])&&(_0x4750e4=_0x2938b5(_0x4750e4)||_0x4750e4);return _0x4750e4;},_0x52b681=(_0x4e7504,_0x3effb4)=>(_0x2f72c2,_0x4ea6b3)=>_0x3effb4(_0x2f72c2,_0x4ea6b3,_0x4e7504);let _0x3d1ec0=class extends _0x4026ac[_0x2c12e3(0x26f)]{constructor(_0x2fd175,_0x403c37,_0x33a75d){const _0x2dd5f1=_0x2c12e3;super(),_0x155617(this,_0x2dd5f1(0x1df),new Map()),_0x155617(this,_0x2dd5f1(0x38b),new Map()),_0x155617(this,'_disabled',!0x1),(this['_configService']=_0x2fd175,this[_0x2dd5f1(0x2e3)]=_0x403c37,this[_0x2dd5f1(0x248)]=_0x33a75d);}['disableLocalCache'](){const _0x11b6f0=_0x2c12e3;this[_0x11b6f0(0x20f)]=!0x0;}[_0x2c12e3(0x1c4)](){const _0x1d7c1d=_0x2c12e3;this[_0x1d7c1d(0x20f)]=!0x1;}get[_0x2c12e3(0x308)](){const _0x1b17f5=_0x2c12e3;return this[_0x1b17f5(0x38b)];}['dispose'](){const _0xda48d3=_0x2c12e3;this[_0xda48d3(0x2e6)]()['then'](()=>super[_0xda48d3(0x36c)]());}async[_0x2c12e3(0x352)](_0x46bc5a){const _0x308abd=_0x2c12e3;return this[_0x308abd(0x20f)]?null:this['_localStorageService'][_0x308abd(0x2d5)](_0x2f4463[_0x308abd(0x289)](_0x46bc5a));}async[_0x2c12e3(0x301)](_0xf1c01b,_0x3e20d8){const _0x53bc47=_0x2c12e3;return!!this[_0x53bc47(0x2e3)][_0x53bc47(0x198)](_0xf1c01b,_0x3e20d8);}[_0x2c12e3(0x32a)](_0x5010ae,_0x2dc1e4,_0x4f6445,_0x1b7009){const _0x3d5515=_0x2c12e3,_0x5796e6=this[_0x3d5515(0x248)]['getCurrentRevOfUnit'](_0x5010ae);this[_0x3d5515(0x1df)][_0x3d5515(0x21d)](_0x5010ae,{'unitID':_0x5010ae,'type':_0x2dc1e4,'awaitingChangeset':_0x4f6445,'mutations':_0x1b7009,'rev':_0x5796e6}),this[_0x3d5515(0x38b)][_0x3d5515(0x199)](_0x5010ae)||this['_scheduleSaving'](_0x5010ae);}[_0x2c12e3(0x300)](_0x588fa5){const _0xe3b874=_0x2c12e3,_0x25d3fb=this['_getSaveTimeout']();_0x25d3fb===0x0?this['_saveCache'](_0x588fa5):this['_saveTaskMap'][_0xe3b874(0x21d)](_0x588fa5,setTimeout(()=>this[_0xe3b874(0x311)](_0x588fa5),_0x25d3fb));}['_getSaveTimeout'](){const _0x5ab6af=_0x2c12e3;var _0x31dd96;return(_0x31dd96=this[_0x5ab6af(0x2e0)][_0x5ab6af(0x1e1)](_0x2f4463[_0x5ab6af(0x131)]))!=null?_0x31dd96:_0x2f4463['LOCAL_CACHE_INTERVAL'];}[_0x2c12e3(0x311)](_0x1a9e10){const _0x220187=_0x2c12e3,_0x46d942=this[_0x220187(0x38b)][_0x220187(0x2e1)](_0x1a9e10);return _0x46d942!==void 0x0&&window[_0x220187(0x30d)](_0x46d942),this[_0x220187(0x2e3)][_0x220187(0x198)](_0x2f4463['getLocalCacheKey'](_0x1a9e10),this['_cachedData']['get'](_0x1a9e10))[_0x220187(0x185)](()=>this[_0x220187(0x38b)][_0x220187(0x1b0)](_0x1a9e10));}async[_0x2c12e3(0x2e6)](){const _0x29dd84=_0x2c12e3,_0x54f462=[];this['_saveTaskMap'][_0x29dd84(0x3b9)]((_0x3159f5,_0x2382f3)=>{const _0x29017f=_0x29dd84;window['clearTimeout'](_0x3159f5),_0x54f462[_0x29017f(0x2f7)](this['_saveCache'](_0x2382f3)[_0x29017f(0x185)](()=>{const _0xe0d91d=_0x29017f;this[_0xe0d91d(0x38b)][_0xe0d91d(0x1b0)](_0x2382f3);}));}),await Promise[_0x29dd84(0x13f)](_0x54f462);}};_0x3d1ec0=_0x89af86([_0x52b681(0x0,_0x4026ac[_0x2c12e3(0x19d)]),_0x52b681(0x1,_0x4026ac[_0x2c12e3(0x179)]),_0x52b681(0x2,_0x4026ac[_0x2c12e3(0x168)](_0x5c97ef[_0x2c12e3(0x1cd)]))],_0x3d1ec0);class _0x44bdf5 extends _0x4026ac[_0x2c12e3(0x2cb)]{constructor(){const _0x318bcc=_0x2c12e3;super(),_0x155617(this,_0x318bcc(0x15c)),this[_0x318bcc(0x15c)]=_0x490568[_0x318bcc(0x316)](window,_0x318bcc(0x23a))['pipe'](_0x490568[_0x318bcc(0x2db)](this[_0x318bcc(0x13d)]),_0x490568[_0x318bcc(0x320)](0x1),_0x490568[_0x318bcc(0x1bf)](void 0x0));}[_0x2c12e3(0x2c8)](_0x8a5d98,_0x3fe724,_0x4ff5f7=!0x1){const _0x716202=_0x2c12e3,_0x3825c2=new URL(window[_0x716202(0x139)][_0x716202(0x29e)]);_0x3825c2[_0x716202(0x246)][_0x716202(0x21d)](_0x8a5d98,_0x3fe724),_0x4ff5f7?window[_0x716202(0x234)][_0x716202(0x235)]('','',_0x3825c2['toString']()):window[_0x716202(0x234)][_0x716202(0x1c1)]('','',_0x3825c2[_0x716202(0x260)]());}[_0x2c12e3(0x17a)](_0x3fc18a,_0x3d9bff=!0x1){const _0x345929=_0x2c12e3,_0x106db9=new URL(window[_0x345929(0x139)]['href']);_0x106db9['searchParams'][_0x345929(0x1b0)](_0x3fc18a),_0x3d9bff?window[_0x345929(0x234)]['replaceState']('','',_0x106db9[_0x345929(0x260)]()):window[_0x345929(0x234)][_0x345929(0x1c1)]('','',_0x106db9['toString']());}[_0x2c12e3(0x238)](_0x5231a7){const _0x30f1ef=_0x2c12e3;var _0x2f69b2;return(_0x2f69b2=new URL(window[_0x30f1ef(0x139)][_0x30f1ef(0x29e)])[_0x30f1ef(0x246)][_0x30f1ef(0x2e1)](_0x5231a7))!=null?_0x2f69b2:void 0x0;}}var _0x337c30=Object[_0x2c12e3(0x133)],_0x1294ca=Object[_0x2c12e3(0x12c)],_0x3f6a2e=(_0x4e7b42,_0x574408,_0x8f4d85)=>_0x574408 in _0x4e7b42?_0x337c30(_0x4e7b42,_0x574408,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8f4d85}):_0x4e7b42[_0x574408]=_0x8f4d85,_0x259d69=(_0x169663,_0x436e90,_0x329dd5,_0x52f6cd)=>{const _0xac1e4e=_0x2c12e3;for(var _0x7e6a0c=_0x52f6cd>0x1?void 0x0:_0x52f6cd?_0x1294ca(_0x436e90,_0x329dd5):_0x436e90,_0x31550a=_0x169663[_0xac1e4e(0x28e)]-0x1,_0x2eec8a;_0x31550a>=0x0;_0x31550a--)(_0x2eec8a=_0x169663[_0x31550a])&&(_0x7e6a0c=_0x2eec8a(_0x7e6a0c)||_0x7e6a0c);return _0x7e6a0c;},_0x2a6b95=(_0x12af0f,_0x59e2f8)=>(_0x391746,_0x3f0d2d)=>_0x59e2f8(_0x391746,_0x3f0d2d,_0x12af0f),_0x34faea=(_0x3a1207,_0x5dfb5c,_0x4e8cc6)=>_0x3f6a2e(_0x3a1207,_0x5dfb5c+'',_0x4e8cc6);const _0x14d0a2='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x12c937[_0x2c12e3(0x382)]=class extends _0x4026ac['Plugin']{constructor(_0x49bdc3=_0x3eabdd,_0x2f8efa,_0x19d92c,_0x34ff77){const _0x719656=_0x2c12e3;super(),this[_0x719656(0x381)]=_0x49bdc3,this[_0x719656(0x3ba)]=_0x2f8efa,this[_0x719656(0x1ea)]=_0x19d92c,this[_0x719656(0x2e0)]=_0x34ff77;const {..._0xdcde43}=_0x4026ac[_0x719656(0x302)]({},_0x3eabdd,this[_0x719656(0x381)]);this[_0x719656(0x2e0)][_0x719656(0x19f)](_0xe91dfe,_0xdcde43);}['onStarting'](){const _0x1f7726=_0x2c12e3;this[_0x1f7726(0x1ab)](),this[_0x1f7726(0x209)]();}[_0x2c12e3(0x23c)](){const _0x7ffd28=_0x2c12e3;this[_0x7ffd28(0x17e)]();}['_registerDependencies'](){const _0x5dc6ef=_0x2c12e3;var _0x17f289;const _0x2d326f=[[_0x5554b1],[_0x3cf5de],[_0x4fc82f],[_0x186c6c],[_0x4f6d56],[_0x4b733c,{'useClass':_0x44bdf5}],[_0x28e500[_0x5dc6ef(0x359)],{'useClass':_0x28e500[_0x5dc6ef(0x215)]}],[_0x2f4463[_0x5dc6ef(0x19c)],{'useClass':_0x3d1ec0}],[_0x12c937[_0x5dc6ef(0x2a9)]],[_0x106e69],[_0x30a3e0],[_0x1eb084],[_0x2d3631],[_0x12c937[_0x5dc6ef(0x36b)]]];_0x4026ac[_0x5dc6ef(0x186)](this[_0x5dc6ef(0x1ea)],_0x4026ac['mergeOverrideWithDependencies'](_0x2d326f,(_0x17f289=this[_0x5dc6ef(0x381)])==null?void 0x0:_0x17f289[_0x5dc6ef(0x272)]));}['_registerRenderDependencies'](){const _0x107e21=_0x2c12e3;this[_0x107e21(0x34a)](this[_0x107e21(0x3ba)][_0x107e21(0x1b2)](_0x4026ac[_0x107e21(0x2a6)]['UNIVER_DOC'],[_0x4094ff])),this[_0x107e21(0x34a)](this[_0x107e21(0x3ba)][_0x107e21(0x1b2)](_0x4026ac[_0x107e21(0x2a6)][_0x107e21(0x1f7)],[_0x58fc55]));}[_0x2c12e3(0x209)](){const _0x1975ef=_0x2c12e3;_0x4026ac[_0x1975ef(0x37c)](this[_0x1975ef(0x1ea)],[[_0x1eb084],[_0x12c937[_0x1975ef(0x2a9)]],[_0x106e69],[_0x30a3e0],[_0x12c937['CollaborationDataLoaderController']]]);}},_0x34faea(_0x12c937[_0x2c12e3(0x382)],_0x2c12e3(0x188),_0x14d0a2),_0x12c937[_0x2c12e3(0x382)]=_0x259d69([_0x4026ac['DependentOn'](_0x2f4463['UniverCollaborationClientPlugin']),_0x2a6b95(0x1,_0x7ef3ee[_0x2c12e3(0x1a3)]),_0x2a6b95(0x2,_0x4026ac[_0x2c12e3(0x168)](_0x4026ac[_0x2c12e3(0x2ac)])),_0x2a6b95(0x3,_0x4026ac[_0x2c12e3(0x19d)])],_0x12c937[_0x2c12e3(0x382)]);var _0x16a32e=Object[_0x2c12e3(0x12c)],_0x464be3=(_0x19b87f,_0x3ec159,_0x1ebd0f,_0x1b0a36)=>{const _0x1195c2=_0x2c12e3;for(var _0xf451e7=_0x1b0a36>0x1?void 0x0:_0x1b0a36?_0x16a32e(_0x3ec159,_0x1ebd0f):_0x3ec159,_0x58a320=_0x19b87f[_0x1195c2(0x28e)]-0x1,_0x552448;_0x58a320>=0x0;_0x58a320--)(_0x552448=_0x19b87f[_0x58a320])&&(_0xf451e7=_0x552448(_0xf451e7)||_0xf451e7);return _0xf451e7;},_0x15d19c=(_0x547f19,_0x2c77f3)=>(_0xd7adc1,_0x475930)=>_0x2c77f3(_0xd7adc1,_0x475930,_0x547f19);_0x12c937[_0x2c12e3(0x1a0)]=class extends _0x2f4463['CollaborationSocketService']{constructor(_0x2419e1,_0x5d80fc,_0x46d438,_0xfcb007,_0x53cf44){super(_0x2419e1,_0x5d80fc,_0x46d438,_0xfcb007,_0x53cf44);}async[_0x2c12e3(0x18d)](_0x3cdfc3){const _0xfeceaf=_0x2c12e3,_0x3557aa=await this[_0xfeceaf(0x204)](),_0x3b241c=this[_0xfeceaf(0x216)](_0x3cdfc3,_0x3557aa);return this[_0xfeceaf(0x2b3)](_0x3b241c);}[_0x2c12e3(0x216)](_0x47c24d,_0x2f47df){const _0x53f4cf=_0x2c12e3,_0x1623bc=typeof window>'u'?new URL(_0x47c24d):new URL(_0x47c24d,window[_0x53f4cf(0x139)][_0x53f4cf(0x305)]);_0x1623bc[_0x53f4cf(0x246)]['set'](_0x53f4cf(0x239),_0x2f47df);const _0x2d0d7a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x53f4cf(0x139)][_0x53f4cf(0x33b)]);return _0x2d0d7a[_0x53f4cf(0x2e1)]('runId')&&_0x1623bc['searchParams'][_0x53f4cf(0x21d)](_0x53f4cf(0x1b8),_0x2d0d7a[_0x53f4cf(0x2e1)](_0x53f4cf(0x1b8))),_0x1623bc[_0x53f4cf(0x260)]();}async['_getSessionTicket'](){const _0xacfb13=_0x2c12e3;var _0x387c6d,_0x4973a2,_0x1339e3;const _0x5cf9b1=this[_0xacfb13(0x2e0)][_0xacfb13(0x1e1)](_0x2f4463[_0xacfb13(0x197)]),_0x3bfae7=(_0x387c6d=_0x5cf9b1==null?void 0x0:_0x5cf9b1[_0xacfb13(0x258)])!=null?_0x387c6d:_0x2f4463[_0xacfb13(0x140)];return(_0x1339e3=(_0x4973a2=(await this[_0xacfb13(0x39a)]['get'](_0x3bfae7,{'headers':{'Content-Type':'application/json'}}))[_0xacfb13(0x2ad)])==null?void 0x0:_0x4973a2[_0xacfb13(0x1c5)])!=null?_0x1339e3:'';}},_0x12c937[_0x2c12e3(0x1a0)]=_0x464be3([_0x15d19c(0x0,_0x4026ac[_0x2c12e3(0x168)](_0x4026ac['Injector'])),_0x15d19c(0x1,_0x4026ac[_0x2c12e3(0x168)](_0x28e500[_0x2c12e3(0x3b7)])),_0x15d19c(0x2,_0x4026ac[_0x2c12e3(0x19d)]),_0x15d19c(0x3,_0x4026ac[_0x2c12e3(0x163)]),_0x15d19c(0x4,_0x5c97ef[_0x2c12e3(0x2c4)])],_0x12c937[_0x2c12e3(0x1a0)]);const _0x33c74a=0x7530,_0x2a1a04='ACTIVE_UNIT_EVENT_CHANNEL';class _0x2d29e8 extends _0x4026ac[_0x2c12e3(0x26f)]{constructor(){const _0x17871b=_0x2c12e3;super(),_0x155617(this,'_id',_0x4026ac[_0x17871b(0x29c)]()),_0x155617(this,'_selfUnitIDs',new Set()),_0x155617(this,'_unitOnClients',new Map()),_0x155617(this,_0x17871b(0x35a),null),_0x155617(this,_0x17871b(0x150),new Map()),_0x155617(this,_0x17871b(0x373),new Map()),this[_0x17871b(0x38a)]();}[_0x2c12e3(0x36c)](){const _0x1b9d67=_0x2c12e3;super[_0x1b9d67(0x36c)](),this['_clearOtherTimers'][_0x1b9d67(0x3b9)]((_0x1cd2a0,_0x138948)=>this[_0x1b9d67(0x385)](_0x138948)),this[_0x1b9d67(0x35a)]&&window[_0x1b9d67(0x2ce)](this[_0x1b9d67(0x35a)]);}['getUnitStatus$'](_0x38d744){const _0x54f241=_0x2c12e3;return this[_0x54f241(0x1dc)](_0x38d744)[_0x54f241(0x32b)](_0x490568[_0x54f241(0x306)]());}[_0x2c12e3(0x24b)](_0x3e080c){const _0x4fc597=_0x2c12e3;this[_0x4fc597(0x2c0)]['size']===0x0&&this[_0x4fc597(0x31b)](),this[_0x4fc597(0x2c0)][_0x4fc597(0x28d)](_0x3e080c),this[_0x4fc597(0x2b2)]({'type':0x0,'memberID':this[_0x4fc597(0x267)],'unitIDs':[_0x3e080c],'isForwarded':!0x1});}[_0x2c12e3(0x182)](_0x2d6052){const _0x2580a8=_0x2c12e3;this[_0x2580a8(0x2c0)]['delete'](_0x2d6052),this[_0x2580a8(0x2c0)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x2580a8(0x2ce)](this[_0x2580a8(0x35a)]);}[_0x2c12e3(0x38a)](){const _0x770cab=_0x2c12e3;this['disposeWithMe'](_0x4026ac[_0x770cab(0x1a5)](_0x490568[_0x770cab(0x316)](window,_0x770cab(0x160))[_0x770cab(0x2a7)](_0x13cdf7=>{const _0x42474c=_0x770cab;if(_0x13cdf7[_0x42474c(0x2b5)]!==_0x2a1a04||!_0x13cdf7[_0x42474c(0x314)])return;const _0x32f637=JSON[_0x42474c(0x1cb)](_0x13cdf7['newValue']);this[_0x42474c(0x172)](_0x32f637);}))),window[_0x770cab(0x21a)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x770cab(0x267)],'unitIDs':Array[_0x770cab(0x277)](this[_0x770cab(0x2c0)])}));}[_0x2c12e3(0x172)](_0x48fb1f){const _0x467910=_0x2c12e3;switch(_0x48fb1f['type']){case 0x0:this[_0x467910(0x307)](_0x48fb1f);break;case 0x1:this[_0x467910(0x1f4)](_0x48fb1f);break;case 0x2:this[_0x467910(0x15d)](_0x48fb1f);break;}}[_0x2c12e3(0x307)](_0x3834d3){const _0x5ed53f=_0x2c12e3,{unitIDs:_0x2bd91d,memberID:_0x2cc486,isForwarded:_0x46af0b}=_0x3834d3;_0x2bd91d[_0x5ed53f(0x3b9)](_0x476d9f=>{const _0x1d36af=_0x5ed53f;if(!_0x46af0b&&this[_0x1d36af(0x2aa)]['has'](_0x476d9f)&&this[_0x1d36af(0x1dc)](_0x476d9f)[_0x1d36af(0x229)](_0x2f4463['UnitStatus'][_0x1d36af(0x230)]),!this[_0x1d36af(0x2aa)][_0x1d36af(0x199)](_0x476d9f)||!this[_0x1d36af(0x2aa)][_0x1d36af(0x2e1)](_0x476d9f)[_0x1d36af(0x199)](_0x2cc486)){const _0x58a654=this[_0x1d36af(0x2aa)][_0x1d36af(0x2e1)](_0x476d9f)||new Set();_0x58a654[_0x1d36af(0x28d)](_0x2cc486),this[_0x1d36af(0x2aa)]['set'](_0x476d9f,_0x58a654),this[_0x1d36af(0x21b)](_0x2cc486);}}),_0x46af0b||this['_send']({'type':0x0,'memberID':this[_0x5ed53f(0x267)],'unitIDs':[...this[_0x5ed53f(0x2c0)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x357685){const _0x49e5b6=_0x2c12e3;this[_0x49e5b6(0x385)](_0x357685);const _0x1b777d=window[_0x49e5b6(0x32c)](()=>{const _0x2304b6=_0x49e5b6;this['_unitOnClients'][_0x2304b6(0x3b9)](_0x3ab3ef=>{_0x3ab3ef['delete'](_0x357685);});},_0x33c74a*0x2);this[_0x49e5b6(0x150)]['set'](_0x357685,_0x1b777d);}['_removeClearOtherTimer'](_0x23dd6e){const _0x15ed8e=_0x2c12e3;if(this[_0x15ed8e(0x150)]['has'](_0x23dd6e)){const _0x16db63=this['_clearOtherTimers'][_0x15ed8e(0x2e1)](_0x23dd6e);_0x16db63&&window[_0x15ed8e(0x30d)](_0x16db63),this[_0x15ed8e(0x150)][_0x15ed8e(0x21d)](_0x23dd6e,null);}}[_0x2c12e3(0x1f4)](_0x26c685){const _0x23079b=_0x2c12e3,{memberID:_0x5e8ee3,unitIDs:_0x5052c6}=_0x26c685;_0x5052c6[_0x23079b(0x3b9)](_0x5b0808=>{const _0x50fbf0=_0x23079b;var _0x3b53fd;const _0x43e149=this['_unitOnClients'][_0x50fbf0(0x2e1)](_0x5b0808);_0x43e149&&(_0x43e149[_0x50fbf0(0x1b0)](_0x5e8ee3),(_0x3b53fd=this['_ensureSubject'](_0x5b0808))==null||_0x3b53fd['next'](_0x43e149[_0x50fbf0(0x187)]===0x0?_0x2f4463['UnitStatus'][_0x50fbf0(0x3a9)]:_0x2f4463[_0x50fbf0(0x3b6)][_0x50fbf0(0x230)]));}),this[_0x23079b(0x385)](_0x5e8ee3);}[_0x2c12e3(0x15d)](_0x1112f8){const _0x4f858e=_0x2c12e3;this[_0x4f858e(0x21b)](_0x1112f8[_0x4f858e(0x2c3)]);}['_send'](_0x51f245){const _0x1dcf86=_0x2c12e3;localStorage[_0x1dcf86(0x198)](_0x2a1a04,JSON[_0x1dcf86(0x1ca)](_0x51f245));}['_scheduleHeartbeat'](){const _0x5e4f1a=_0x2c12e3;this[_0x5e4f1a(0x35a)]=window[_0x5e4f1a(0x17b)](()=>{const _0x35c393=_0x5e4f1a;this['_send']({'type':0x2,'memberID':this[_0x35c393(0x267)]});},_0x33c74a);}[_0x2c12e3(0x1dc)](_0x18104f){const _0x3d8149=_0x2c12e3;return this[_0x3d8149(0x373)][_0x3d8149(0x199)](_0x18104f)||this['_unitStatus'][_0x3d8149(0x21d)](_0x18104f,new _0x490568[(_0x3d8149(0x222))](_0x2f4463[_0x3d8149(0x3b6)][_0x3d8149(0x3a9)])),this[_0x3d8149(0x373)][_0x3d8149(0x2e1)](_0x18104f);}}var _0x1e069a=(_0x4a2327=>(_0x4a2327[_0x4a2327['UNDEFINED']=0x0]=_0x2c12e3(0x3bb),_0x4a2327[_0x4a2327['OK']=0x1]='OK',_0x4a2327[_0x4a2327[_0x2c12e3(0x2d1)]=0x2]='INTERNAL_ERROR',_0x4a2327[_0x4a2327['PERMISSION_DENIED']=0x3]=_0x2c12e3(0x2ae),_0x4a2327[_0x4a2327[_0x2c12e3(0x362)]=0x4]=_0x2c12e3(0x362),_0x4a2327[_0x4a2327[_0x2c12e3(0x2dd)]=0x5]='UNAUTHENTICATED',_0x4a2327[_0x4a2327['ALREADY_EXISTS']=0x6]=_0x2c12e3(0x353),_0x4a2327[_0x4a2327[_0x2c12e3(0x36f)]=0x7]='INVALID_ARGUMENT',_0x4a2327[_0x4a2327[_0x2c12e3(0x34b)]=0x8]=_0x2c12e3(0x34b),_0x4a2327[_0x4a2327[_0x2c12e3(0x26b)]=0x9]=_0x2c12e3(0x26b),_0x4a2327[_0x4a2327[_0x2c12e3(0x31e)]=0xa]='LOGIN_FAILED',_0x4a2327[_0x4a2327['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x2c12e3(0x342),_0x4a2327[_0x4a2327[_0x2c12e3(0x27b)]=0x1771]=_0x2c12e3(0x27b),_0x4a2327[_0x4a2327[_0x2c12e3(0x1e2)]=0x1772]=_0x2c12e3(0x1e2),_0x4a2327[_0x4a2327[_0x2c12e3(0x1bd)]=0x1773]=_0x2c12e3(0x1bd),_0x4a2327[_0x4a2327[_0x2c12e3(0x130)]=0x1b59]=_0x2c12e3(0x130),_0x4a2327[_0x4a2327[_0x2c12e3(0x25f)]=0x1b5a]=_0x2c12e3(0x25f),_0x4a2327[_0x4a2327[_0x2c12e3(0x36a)]=0x1b5b]=_0x2c12e3(0x36a),_0x4a2327[_0x4a2327['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x2c12e3(0x31a),_0x4a2327[_0x4a2327[_0x2c12e3(0x33c)]=0x1b5d]=_0x2c12e3(0x33c),_0x4a2327[_0x4a2327[_0x2c12e3(0x240)]=0x1f41]=_0x2c12e3(0x240),_0x4a2327[_0x4a2327[_0x2c12e3(0x190)]=0x2329]=_0x2c12e3(0x190),_0x4a2327[_0x4a2327['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2c12e3(0x1c6),_0x4a2327[_0x4a2327[_0x2c12e3(0x3ac)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4a2327[_0x4a2327[_0x2c12e3(0x132)]=0x232c]=_0x2c12e3(0x132),_0x4a2327[_0x4a2327[_0x2c12e3(0x28f)]=0x232d]=_0x2c12e3(0x28f),_0x4a2327[_0x4a2327['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4a2327[_0x4a2327[_0x2c12e3(0x355)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4a2327[_0x4a2327['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4a2327[_0x4a2327['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4a2327[_0x4a2327[_0x2c12e3(0x24e)]=0x271a]=_0x2c12e3(0x24e),_0x4a2327[_0x4a2327[_0x2c12e3(0x38e)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x4a2327[_0x4a2327[_0x2c12e3(0x31d)]=0x271c]=_0x2c12e3(0x31d),_0x4a2327[_0x4a2327[_0x2c12e3(0x380)]=0x271d]=_0x2c12e3(0x380),_0x4a2327[_0x4a2327['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x4a2327[_0x4a2327[_0x2c12e3(0x298)]=0x271f]=_0x2c12e3(0x298),_0x4a2327[_0x4a2327[_0x2c12e3(0x18a)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x4a2327[_0x4a2327[_0x2c12e3(0x34f)]=0x2ee1]=_0x2c12e3(0x34f),_0x4a2327[_0x4a2327[_0x2c12e3(0x25b)]=0x2ee2]=_0x2c12e3(0x25b),_0x4a2327[_0x4a2327[_0x2c12e3(0x33a)]=0x2ee3]=_0x2c12e3(0x33a),_0x4a2327[_0x4a2327[_0x2c12e3(0x175)]=0x2ee4]=_0x2c12e3(0x175),_0x4a2327[_0x4a2327[_0x2c12e3(0x3b0)]=0x2ee5]=_0x2c12e3(0x3b0),_0x4a2327[_0x4a2327[_0x2c12e3(0x124)]=0x32c9]=_0x2c12e3(0x124),_0x4a2327[_0x4a2327[_0x2c12e3(0x284)]=0x32ca]=_0x2c12e3(0x284),_0x4a2327[_0x4a2327[_0x2c12e3(0x273)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x4a2327[_0x4a2327[_0x2c12e3(0x360)]=-0x1]='UNRECOGNIZED',_0x4a2327))(_0x1e069a||{}),_0x1634cc=Object[_0x2c12e3(0x12c)],_0x26d24d=(_0xa1f058,_0x372d32,_0x45c1ee,_0x281f80)=>{for(var _0x5a7e8b=_0x281f80>0x1?void 0x0:_0x281f80?_0x1634cc(_0x372d32,_0x45c1ee):_0x372d32,_0x331b39=_0xa1f058['length']-0x1,_0x406195;_0x331b39>=0x0;_0x331b39--)(_0x406195=_0xa1f058[_0x331b39])&&(_0x5a7e8b=_0x406195(_0x5a7e8b)||_0x5a7e8b);return _0x5a7e8b;},_0xe63227=(_0x47997e,_0x5cddc9)=>(_0x3b5f6e,_0x19819a)=>_0x5cddc9(_0x3b5f6e,_0x19819a,_0x47997e);_0x12c937[_0x2c12e3(0x3a0)]=class extends _0x4026ac[_0x2c12e3(0x26f)]{constructor(_0x50fe2c,_0x69b52,_0xdf3bd2){const _0x3669ef=_0x2c12e3;super(),this[_0x3669ef(0x2a4)]=_0x50fe2c,this['_httpService']=_0x69b52,this['_configService']=_0xdf3bd2;}async['runOnServer'](_0x561cde,_0x38e31a,_0x5b9297,..._0x50abab){const _0xe1534=_0x2c12e3;var _0x17c9c0,_0x1f04b3,_0x5d22eb,_0x1b5bd7;const _0x5728a3=this[_0xe1534(0x2a4)][_0xe1534(0x16d)]();if(!_0x5728a3)throw new Error(_0xe1534(0x29a));const _0x4290a3=((_0x17c9c0=this[_0xe1534(0x2e0)]['getConfig'](_0x2f4463[_0xe1534(0x1d8)]))!=null?_0x17c9c0:_0x2f4463[_0xe1534(0x14c)])+'/'+_0x561cde+_0xe1534(0x35d)+_0x38e31a,_0x40f30f=new URL(window[_0xe1534(0x139)][_0xe1534(0x29e)]),_0x2b202f={'scriptId':_0x561cde,'runId':(_0x1f04b3=_0x40f30f[_0xe1534(0x246)][_0xe1534(0x2e1)](_0xe1534(0x1b8)))!=null?_0x1f04b3:'','function':_0x38e31a,'unitId':_0x5728a3['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x50abab),'invokeId':(_0x5d22eb=_0x5b9297[_0xe1534(0x2f5)])!=null?_0x5d22eb:'','executionId':(_0x1b5bd7=_0x5b9297[_0xe1534(0x334)])!=null?_0x1b5bd7:''};try{const _0xb35271=await this[_0xe1534(0x39a)][_0xe1534(0x2a3)](_0x4290a3,{'body':_0x2b202f});return _0xb35271['body']['error']&&_0xb35271[_0xe1534(0x2ad)][_0xe1534(0x295)][_0xe1534(0x309)]!==_0x1e069a['OK']?_0xe1534(0x2e4):_0xb35271['body'][_0xe1534(0x35f)];}catch{return _0xe1534(0x2e4);}}},_0x12c937[_0x2c12e3(0x3a0)]=_0x26d24d([_0xe63227(0x0,_0x4026ac[_0x2c12e3(0x2d2)]),_0xe63227(0x1,_0x4026ac[_0x2c12e3(0x168)](_0x28e500[_0x2c12e3(0x3b7)])),_0xe63227(0x2,_0x4026ac['IConfigService'])],_0x12c937[_0x2c12e3(0x3a0)]),_0x12c937[_0x2c12e3(0x365)]=_0x583fb1,_0x12c937[_0x2c12e3(0x27f)]=_0x4b733c,_0x12c937['SheetCollabCursorShape']=_0x2fb9dc,_0x12c937[_0x2c12e3(0x37a)]=_0x2d29e8,_0x12c937[_0x2c12e3(0x144)]=_0x44bdf5,Object[_0x2c12e3(0x133)](_0x12c937,Symbol['toStringTag'],{'value':'Module'});}));
1
+ function _0x2330(_0x5b31c6,_0x114314){const _0xd233a8=_0xd233();return _0x2330=function(_0x233004,_0x460486){_0x233004=_0x233004-0x1a8;let _0xf642cb=_0xd233a8[_0x233004];return _0xf642cb;},_0x2330(_0x5b31c6,_0x114314);}(function(_0x339306,_0x2561f2){const _0x476929=_0x2330,_0x2c6fd5=_0x339306();while(!![]){try{const _0x171653=parseInt(_0x476929(0x377))/0x1+-parseInt(_0x476929(0x397))/0x2+parseInt(_0x476929(0x25e))/0x3+parseInt(_0x476929(0x24a))/0x4*(-parseInt(_0x476929(0x308))/0x5)+parseInt(_0x476929(0x2a6))/0x6+parseInt(_0x476929(0x3eb))/0x7+-parseInt(_0x476929(0x422))/0x8*(-parseInt(_0x476929(0x3ce))/0x9);if(_0x171653===_0x2561f2)break;else _0x2c6fd5['push'](_0x2c6fd5['shift']());}catch(_0x212afa){_0x2c6fd5['push'](_0x2c6fd5['shift']());}}}(_0xd233,0x46765),function(_0x56cc91,_0x1d7697){const _0x20437d=_0x2330;typeof exports==_0x20437d(0x1b0)&&typeof module<'u'?_0x1d7697(exports,require(_0x20437d(0x32d)),require('@univerjs/core'),require(_0x20437d(0x409)),require(_0x20437d(0x321)),require(_0x20437d(0x2c3)),require(_0x20437d(0x333)),require(_0x20437d(0x2ef)),require('@univerjs-pro/collaboration'),require(_0x20437d(0x434)),require(_0x20437d(0x3d6)),require(_0x20437d(0x3a2)),require(_0x20437d(0x336)),require('@univerjs/sheets-ui'),require(_0x20437d(0x2ea)),require(_0x20437d(0x28c)),require(_0x20437d(0x319)),require('react'),require('@univerjs/rpc')):typeof define==_0x20437d(0x380)&&define['amd']?define([_0x20437d(0x365),_0x20437d(0x32d),'@univerjs/core',_0x20437d(0x409),_0x20437d(0x321),_0x20437d(0x2c3),_0x20437d(0x333),_0x20437d(0x2ef),_0x20437d(0x40b),_0x20437d(0x434),_0x20437d(0x3d6),'@univerjs/sheets',_0x20437d(0x336),_0x20437d(0x345),_0x20437d(0x2ea),_0x20437d(0x28c),_0x20437d(0x319),_0x20437d(0x362),'@univerjs/rpc'],_0x1d7697):(_0x56cc91=typeof globalThis<'u'?globalThis:_0x56cc91||self,_0x1d7697(_0x56cc91[_0x20437d(0x2f0)]={},_0x56cc91[_0x20437d(0x1e2)],_0x56cc91['UniverCore'],_0x56cc91[_0x20437d(0x215)],_0x56cc91[_0x20437d(0x351)],_0x56cc91[_0x20437d(0x2bc)],_0x56cc91['UniverDrawing'],_0x56cc91['rxjs'],_0x56cc91[_0x20437d(0x210)],_0x56cc91[_0x20437d(0x3b6)],_0x56cc91[_0x20437d(0x309)],_0x56cc91[_0x20437d(0x3e3)],_0x56cc91[_0x20437d(0x2ef)][_0x20437d(0x2de)],_0x56cc91['UniverSheetsUi'],_0x56cc91[_0x20437d(0x335)],_0x56cc91[_0x20437d(0x32f)],_0x56cc91[_0x20437d(0x3ee)],_0x56cc91[_0x20437d(0x335)],_0x56cc91[_0x20437d(0x361)]));}(this,function(_0x46a004,_0x3c1823,_0x43aff6,_0x359b8a,_0x564362,_0x30015e,_0x1888b1,_0x22b5a0,_0xb9294,_0x4cf538,_0x2ab58f,_0x27c450,_0x2ae022,_0x2fd874,_0x4b9546,_0x4c8790,_0x2cb33e,_0x3f9355,_0x25bb97){'use strict';const _0x9c28c2=_0x2330;var _0x43a25d=Object[_0x9c28c2(0x280)],_0x38d4ee=(_0x32fcc0,_0x368fab,_0x3b49fa)=>_0x368fab in _0x32fcc0?_0x43a25d(_0x32fcc0,_0x368fab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b49fa}):_0x32fcc0[_0x368fab]=_0x3b49fa,_0x433bc1=(_0x1d635a,_0x4f1e0e,_0x1c0034)=>_0x38d4ee(_0x1d635a,typeof _0x4f1e0e!=_0x9c28c2(0x34c)?_0x4f1e0e+'':_0x4f1e0e,_0x1c0034),_0x4dd2ad=Object[_0x9c28c2(0x2fe)],_0x38ffed=(_0x3d44e6,_0x5c53cf,_0x1d1be,_0x5946e8)=>{const _0x832add=_0x9c28c2;for(var _0x2ad2d0=_0x5946e8>0x1?void 0x0:_0x5946e8?_0x4dd2ad(_0x5c53cf,_0x1d1be):_0x5c53cf,_0xc40412=_0x3d44e6[_0x832add(0x27b)]-0x1,_0x5ce373;_0xc40412>=0x0;_0xc40412--)(_0x5ce373=_0x3d44e6[_0xc40412])&&(_0x2ad2d0=_0x5ce373(_0x2ad2d0)||_0x2ad2d0);return _0x2ad2d0;},_0xb65e4=(_0x4ad406,_0x5010d3)=>(_0x6ea19c,_0x5b2cfb)=>_0x5010d3(_0x6ea19c,_0x5b2cfb,_0x4ad406);let _0x19dca4=class extends _0x43aff6[_0x9c28c2(0x35e)]{constructor(_0x1ec53a,_0x47dfcb){const _0x1f6cb7=_0x9c28c2;super(),this['_docClipboardService']=_0x1ec53a,this[_0x1f6cb7(0x3be)]=_0x47dfcb,this[_0x1f6cb7(0x269)]();}[_0x9c28c2(0x269)](){const _0x27b289=_0x9c28c2,_0x38a9d7=this;this['disposeWithMe'](this[_0x27b289(0x256)]['addClipboardHook']({'onBeforePasteImage':async _0x35bad6=>{const _0x45ff52=_0x27b289,_0x191c7b=await _0x38a9d7['_imageIoService'][_0x45ff52(0x2ad)](_0x35bad6);return _0x191c7b?{'source':_0x191c7b[_0x45ff52(0x2c7)],'imageSourceType':_0x191c7b[_0x45ff52(0x288)]}:null;}}));}};_0x19dca4=_0x38ffed([_0xb65e4(0x0,_0x30015e[_0x9c28c2(0x29c)]),_0xb65e4(0x1,_0x1888b1[_0x9c28c2(0x341)])],_0x19dca4);const _0x2c0d46=['purple.300',_0x9c28c2(0x2af),_0x9c28c2(0x2a4),_0x9c28c2(0x32e),'blue.400',_0x9c28c2(0x3b7)];class _0x52fe0d extends _0x43aff6['Disposable']{constructor(){const _0x4c0db9=_0x9c28c2;super(...arguments),_0x433bc1(this,_0x4c0db9(0x1b2),new Map()),_0x433bc1(this,_0x4c0db9(0x38e),0x0);}[_0x9c28c2(0x1ae)](_0x4db9d0){const _0x1a8ae9=_0x9c28c2;if(this[_0x1a8ae9(0x1b2)][_0x1a8ae9(0x2d3)](_0x4db9d0))return this['_assignedColors']['get'](_0x4db9d0);const _0x39e91c=_0x2c0d46[this[_0x1a8ae9(0x38e)]];return this[_0x1a8ae9(0x38e)]=(this[_0x1a8ae9(0x38e)]+0x1)%_0x2c0d46[_0x1a8ae9(0x27b)],this['_assignedColors']['set'](_0x4db9d0,_0x39e91c),_0x39e91c;}}function _0x5448a7(_0x12305a){const _0x230f37=_0x9c28c2;let _0x2dd3ac='';for(const _0x1597cc of _0x12305a){const {startOffset:_0x41e093,endOffset:_0xc7f461,isActive:_0x3575a6,rangeType:_0x110fa0,segmentId:_0xd74c3d,segmentPage:_0x4b521e}=_0x1597cc;_0x2dd3ac[_0x230f37(0x27b)]&&(_0x2dd3ac+=','),_0x2dd3ac+=_0x41e093+':'+_0xc7f461+':'+(_0x3575a6?'1':'0')+':'+_0x110fa0+':'+_0xd74c3d+':'+_0x4b521e;}return _0x2dd3ac;}function _0x266500(_0x462a91){const _0x53a29c=_0x9c28c2,_0x55745d=_0x462a91['split'](','),_0x5d104d=[];for(const _0xea77b9 of _0x55745d){const [_0xb5842d,_0x48c429,_0x2c489b,_0x326ce3,_0x1f95b8,_0x51b50b]=_0xea77b9[_0x53a29c(0x3ff)](':');_0x5d104d[_0x53a29c(0x329)]({'startOffset':Number(_0xb5842d),'endOffset':Number(_0x48c429),'collapsed':_0xb5842d===_0x48c429,'isActive':_0x2c489b==='1','rangeType':_0x326ce3===_0x43aff6[_0x53a29c(0x25f)][_0x53a29c(0x1fd)]?_0x43aff6[_0x53a29c(0x25f)][_0x53a29c(0x1fd)]:_0x43aff6[_0x53a29c(0x25f)][_0x53a29c(0x42d)],'segmentId':typeof _0x1f95b8==_0x53a29c(0x3c6)?String(_0x1f95b8):'','segmentPage':Number(_0x51b50b!=null?_0x51b50b:-0x1)});}return _0x5d104d[_0x53a29c(0x2ec)](_0x30c15d=>_0x30c15d[_0x53a29c(0x370)])||(_0x5d104d[0x0][_0x53a29c(0x370)]=!0x0),_0x5d104d;}class _0x2a43ee extends _0x43aff6[_0x9c28c2(0x35e)]{constructor(){const _0x495189=_0x9c28c2;super(...arguments),_0x433bc1(this,'_collabCursorState$',new _0x22b5a0['BehaviorSubject'](null)),_0x433bc1(this,'collabCursorState$',this[_0x495189(0x428)][_0x495189(0x301)]());}[_0x9c28c2(0x3b8)](_0x1f0964){const _0x11a335=_0x9c28c2,{unitID:_0x2fddc2,memberID:_0x2b7dc3,textRanges:_0x83ca84}=_0x1f0964,_0x7a1722=_0x5448a7(_0x83ca84);if(_0x7a1722==='')return;const _0x540eed={'unitID':_0x2fddc2,'memberID':_0x2b7dc3,'selection':_0x7a1722};this[_0x11a335(0x428)][_0x11a335(0x254)](_0x540eed);}}var _0x1266a7=Object[_0x9c28c2(0x2fe)],_0x1bbbd0=(_0x36e914,_0x199bf1,_0x5e10e5,_0x58f0b8)=>{for(var _0xb4091c=_0x58f0b8>0x1?void 0x0:_0x58f0b8?_0x1266a7(_0x199bf1,_0x5e10e5):_0x199bf1,_0x2db185=_0x36e914['length']-0x1,_0x3f6a19;_0x2db185>=0x0;_0x2db185--)(_0x3f6a19=_0x36e914[_0x2db185])&&(_0xb4091c=_0x3f6a19(_0xb4091c)||_0xb4091c);return _0xb4091c;},_0x2e6000=(_0x2dc37c,_0x4a008f)=>(_0x7a6d4a,_0x3a8a2e)=>_0x4a008f(_0x7a6d4a,_0x3a8a2e,_0x2dc37c);const _0x5c1269=0x12c,_0x3401ab=0x64;let _0x104926=class extends _0x43aff6['RxDisposable']{constructor(_0x27472d,_0x3a0a25,_0x2704a7,_0x273545,_0x3e7024,_0x5c0849,_0x103949,_0x263d5f,_0x350e22){const _0x1c5fdc=_0x9c28c2;super(),_0x433bc1(this,'_online',!0x1),_0x433bc1(this,_0x1c5fdc(0x269),!0x1),_0x433bc1(this,_0x1c5fdc(0x1d2),new _0x22b5a0['BehaviorSubject'](new Map())),_0x433bc1(this,_0x1c5fdc(0x42f),this[_0x1c5fdc(0x1d2)][_0x1c5fdc(0x301)]()),_0x433bc1(this,_0x1c5fdc(0x410),new _0x22b5a0[(_0x1c5fdc(0x255))]([])),_0x433bc1(this,_0x1c5fdc(0x315),this[_0x1c5fdc(0x410)]['pipe'](_0x22b5a0[_0x1c5fdc(0x21e)](_0x5c1269))),_0x433bc1(this,'_updateLocalCursor',_0x43aff6[_0x1c5fdc(0x3c1)](_0x276fba=>{const _0x2e8f66=_0x1c5fdc,_0x53c1be={'eventID':_0xb9294[_0x2e8f66(0x3f9)][_0x2e8f66(0x2d8)],'data':{'unitID':this[_0x2e8f66(0x23d)],'memberID':this['_session'][_0x2e8f66(0x298)](),'selection':_0x5448a7(_0x276fba)}};this[_0x2e8f66(0x2a1)][_0x2e8f66(0x359)](_0x53c1be,this[_0x2e8f66(0x23d)]);},_0x3401ab)),(this[_0x1c5fdc(0x23d)]=_0x27472d,this['_session']=_0x3a0a25,this[_0x1c5fdc(0x3a0)]=_0x2704a7,this[_0x1c5fdc(0x2d0)]=_0x273545,this['_memberService']=_0x3e7024,this[_0x1c5fdc(0x3a1)]=_0x5c0849,this['_transformService']=_0x103949,this['_univerInstanceService']=_0x263d5f,this[_0x1c5fdc(0x403)]=_0x350e22);}get[_0x9c28c2(0x3bf)](){return this['_cursorInfo$']['getValue']();}get[_0x9c28c2(0x3d4)](){const _0x45fad7=_0x9c28c2;return this[_0x45fad7(0x410)]['getValue']();}['dispose'](){const _0x12007c=_0x9c28c2;super[_0x12007c(0x420)](),this[_0x12007c(0x1d2)][_0x12007c(0x254)](new Map()),this[_0x12007c(0x1d2)][_0x12007c(0x1ca)](),this[_0x12007c(0x410)]['next']([]),this[_0x12007c(0x410)][_0x12007c(0x1ca)]();}[_0x9c28c2(0x1be)](){const _0x40147a=_0x9c28c2;this['_init']||(this[_0x40147a(0x269)]=!0x0,this['_session']['sessionStatus$'][_0x40147a(0x353)](_0x22b5a0[_0x40147a(0x1f4)](this['dispose$']))['subscribe'](_0x29698f=>{const _0x36e27a=_0x40147a;_0x29698f===_0x3c1823[_0x36e27a(0x386)]['ONLINE']?this[_0x36e27a(0x2c2)]():this[_0x36e27a(0x2bb)]();}),this[_0x40147a(0x2a1)][_0x40147a(0x249)][_0x40147a(0x353)](_0x22b5a0[_0x40147a(0x1f4)](this[_0x40147a(0x36b)]))[_0x40147a(0x3aa)](_0x3fe5ff=>{const _0x33f8dd=_0x40147a,_0x484994=_0x3fe5ff[_0x33f8dd(0x35f)];_0x484994===_0xb9294[_0x33f8dd(0x3f9)][_0x33f8dd(0x2d8)]&&this[_0x33f8dd(0x1c1)](_0x3fe5ff),_0x484994===_0xb9294['CollaborationEvent'][_0x33f8dd(0x244)]&&this[_0x33f8dd(0x375)](_0x3fe5ff);}),this[_0x40147a(0x340)](this[_0x40147a(0x403)][_0x40147a(0x230)](_0x5b3b29=>{const _0x4b8ae8=_0x40147a,_0x2481a1=_0x5b3b29[_0x4b8ae8(0x3a3)];_0x2481a1!=null&&this[_0x4b8ae8(0x22e)]&&_0x5b3b29['id']===_0x4cf538['SetTextSelectionsOperation']['id']&&_0x2481a1[_0x4b8ae8(0x357)]===this['unitID']&&_0x2481a1[_0x4b8ae8(0x30a)]===!0x1&&_0x2481a1[_0x4b8ae8(0x3f0)][_0x4b8ae8(0x27b)]>0x0&&this[_0x4b8ae8(0x372)](_0x2481a1['ranges']);})),this['_syncEditingCollabCursorService'][_0x40147a(0x226)][_0x40147a(0x353)](_0x22b5a0[_0x40147a(0x1f4)](this[_0x40147a(0x36b)]))['subscribe'](_0x2d56f4=>{const _0x19af99=_0x40147a;if((_0x2d56f4==null?void 0x0:_0x2d56f4[_0x19af99(0x23d)])!==this['unitID'])return;const _0x59cd88={'eventID':_0xb9294[_0x19af99(0x3f9)]['UPDATE_CURSOR'],'data':_0x2d56f4};this[_0x19af99(0x1c1)](_0x59cd88);}),this[_0x40147a(0x340)](this[_0x40147a(0x403)][_0x40147a(0x230)](_0x3c728d=>{const _0x1644ef=_0x40147a;if(_0x3c728d[_0x1644ef(0x3a3)]==null)return;const _0x539ad4=_0x3c728d[_0x1644ef(0x3a3)];if(_0x3c728d['id']!==_0x4cf538['RichTextEditingMutation']['id']||_0x539ad4[_0x1644ef(0x357)]!==this[_0x1644ef(0x23d)])return;const _0x53d9c4={'id':_0x1644ef(0x2e1),'params':_0x539ad4},_0x2368a1=this['cursorInfo'];for(const [_0x3d5fe2,_0x4216a4]of _0x2368a1){const _0x248752={'id':_0x1644ef(0x2e1),'params':{'unitId':this[_0x1644ef(0x23d)],'actions':null,'textRanges':_0x4216a4['ranges']}},_0x361a10=this[_0x1644ef(0x2ca)][_0x1644ef(0x337)](_0x53d9c4,_0x248752,!0x1);if(_0xb9294['isTransformMutationFailure'](_0x361a10))throw _0x361a10[_0x1644ef(0x3a5)];_0x2368a1[_0x1644ef(0x289)](_0x3d5fe2,{..._0x4216a4,'ranges':_0x361a10[_0x1644ef(0x398)][_0x1644ef(0x3a3)][_0x1644ef(0x1dd)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x2368a1);});})));}['_onCursorUpdate'](_0x5bfdbc){const _0x4c5e6f=_0x9c28c2;var _0x4dfe33,_0x3389fa;const {memberID:_0x1ed18f,selection:_0x1f5ba4}=_0x5bfdbc[_0x4c5e6f(0x2be)],_0x52b0c1=_0x266500(_0x1f5ba4),_0x2dbc0a=(_0x3389fa=(_0x4dfe33=this[_0x4c5e6f(0x3fa)]['getMember'](this['unitID'],_0x1ed18f))==null?void 0x0:_0x4dfe33[_0x4c5e6f(0x1d8)])!=null?_0x3389fa:_0x4c5e6f(0x332),_0x2a643f={'color':this['_colorAssignService'][_0x4c5e6f(0x1ae)](_0x1ed18f),'name':_0x2dbc0a,'ranges':_0x52b0c1},_0x424e5c=this['cursorInfo'];_0x424e5c[_0x4c5e6f(0x289)](_0x1ed18f,_0x2a643f),this[_0x4c5e6f(0x1d2)][_0x4c5e6f(0x254)](_0x424e5c);}[_0x9c28c2(0x375)](_0x3bca09){const _0x5a8836=_0x9c28c2,{memberID:_0xa5f026}=_0x3bca09['data'],_0x523a86=this[_0x5a8836(0x3bf)];_0x523a86[_0x5a8836(0x1ff)](_0xa5f026),this[_0x5a8836(0x1d2)][_0x5a8836(0x254)](_0x523a86);}['_toggleOnline'](){const _0x38d074=_0x9c28c2;var _0x3adcbb;if(this[_0x38d074(0x22e)]=!0x0,((_0x3adcbb=this[_0x38d074(0x2b0)][_0x38d074(0x1d1)]())==null?void 0x0:_0x3adcbb[_0x38d074(0x318)]())!==this['unitID'])return;const _0x50250e=this['_injector'][_0x38d074(0x326)](_0x4cf538[_0x38d074(0x2bf)])['getDocRanges']();Array[_0x38d074(0x443)](_0x50250e)&&_0x50250e[_0x38d074(0x27b)]>0x0&&this['_updateLocalCursor'](_0x50250e);}[_0x9c28c2(0x2bb)](){const _0xaf852=_0x9c28c2;this[_0xaf852(0x22e)]=!0x1;}};_0x104926=_0x1bbbd0([_0x2e6000(0x2,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6[_0x9c28c2(0x35c)])),_0x2e6000(0x3,_0x43aff6[_0x9c28c2(0x21f)](_0x52fe0d)),_0x2e6000(0x4,_0x43aff6[_0x9c28c2(0x21f)](_0x3c1823[_0x9c28c2(0x228)])),_0x2e6000(0x5,_0x43aff6['Inject'](_0x2a43ee)),_0x2e6000(0x6,_0xb9294[_0x9c28c2(0x3b5)]),_0x2e6000(0x7,_0x43aff6[_0x9c28c2(0x3bb)]),_0x2e6000(0x8,_0x43aff6[_0x9c28c2(0x39e)])],_0x104926);var _0x2b3527=Object[_0x9c28c2(0x2fe)],_0x2081f1=(_0x4496ce,_0x22235e,_0x55fff0,_0xfe6aa3)=>{const _0x414aaf=_0x9c28c2;for(var _0x24ff78=_0xfe6aa3>0x1?void 0x0:_0xfe6aa3?_0x2b3527(_0x22235e,_0x55fff0):_0x22235e,_0x394f00=_0x4496ce[_0x414aaf(0x27b)]-0x1,_0x3bf537;_0x394f00>=0x0;_0x394f00--)(_0x3bf537=_0x4496ce[_0x394f00])&&(_0x24ff78=_0x3bf537(_0x24ff78)||_0x24ff78);return _0x24ff78;},_0x3290da=(_0x58fdeb,_0x120574)=>(_0x344322,_0x3b5802)=>_0x120574(_0x344322,_0x3b5802,_0x58fdeb);const _0x2a77a4=0x12c,_0x3f47c9=0x64,_0x290f90=()=>{let _0x1e2a01=[],_0x16cd39=!0x1;return _0x1e43b4=>{const _0x5760ab=_0x2330;_0x1e2a01[_0x5760ab(0x329)](_0x1e43b4),_0x16cd39||(_0x16cd39=!0x0,setTimeout(()=>{const _0xcabc19=_0x5760ab;_0x1e2a01[_0xcabc19(0x312)](_0x227e71=>_0x227e71()),_0x1e2a01=[],_0x16cd39=!0x1;}));};};let _0x3a33d4=class extends _0x43aff6['RxDisposable']{constructor(_0x555569,_0x11d599,_0x14f601,_0x2f5277,_0x34cfc5,_0x37bf5f,_0x1b96d8,_0x362c08){const _0xcae64d=_0x9c28c2;super(),_0x433bc1(this,_0xcae64d(0x22e),!0x1),_0x433bc1(this,'_init',!0x1),_0x433bc1(this,'_cursorInfo$',new _0x22b5a0['BehaviorSubject'](new Map())),_0x433bc1(this,_0xcae64d(0x42f),this[_0xcae64d(0x1d2)][_0xcae64d(0x301)]()),_0x433bc1(this,_0xcae64d(0x410),new _0x22b5a0['BehaviorSubject']([])),_0x433bc1(this,_0xcae64d(0x315),this[_0xcae64d(0x410)][_0xcae64d(0x353)](_0x22b5a0[_0xcae64d(0x21e)](_0x2a77a4))),_0x433bc1(this,_0xcae64d(0x372),_0x43aff6[_0xcae64d(0x3c1)]((_0x9e1637,_0x24207b)=>{const _0x55250b=_0xcae64d,_0x416a04={'eventID':_0xb9294['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x55250b(0x23d)],'memberID':this[_0x55250b(0x2a1)][_0x55250b(0x298)](),'selection':_0x2ab58f[_0x55250b(0x381)](_0x9e1637,_0x24207b[_0x55250b(0x294)])}};this[_0x55250b(0x2a1)][_0x55250b(0x359)](_0x416a04,this[_0x55250b(0x23d)]);},_0x3f47c9)),(this[_0xcae64d(0x23d)]=_0x555569,this[_0xcae64d(0x2a1)]=_0x11d599,this[_0xcae64d(0x3a0)]=_0x14f601,this[_0xcae64d(0x2d0)]=_0x2f5277,this[_0xcae64d(0x3fa)]=_0x34cfc5,this[_0xcae64d(0x2b0)]=_0x37bf5f,this[_0xcae64d(0x403)]=_0x1b96d8,this[_0xcae64d(0x3d1)]=_0x362c08);}get['cursorInfo'](){const _0x292677=_0x9c28c2;return this[_0x292677(0x1d2)][_0x292677(0x2aa)]();}get['roomMembers'](){const _0xcd2f7a=_0x9c28c2;return this[_0xcd2f7a(0x410)]['getValue']();}[_0x9c28c2(0x420)](){const _0x198cd3=_0x9c28c2;super[_0x198cd3(0x420)](),this['_cursorInfo$'][_0x198cd3(0x254)](new Map()),this[_0x198cd3(0x1d2)][_0x198cd3(0x1ca)](),this[_0x198cd3(0x410)][_0x198cd3(0x254)]([]),this[_0x198cd3(0x410)][_0x198cd3(0x1ca)]();}[_0x9c28c2(0x1be)](){const _0x5db639=_0x9c28c2;this[_0x5db639(0x269)]||(this[_0x5db639(0x269)]=!0x0,this[_0x5db639(0x2a1)][_0x5db639(0x3d3)][_0x5db639(0x353)](_0x22b5a0[_0x5db639(0x1f4)](this[_0x5db639(0x36b)]))[_0x5db639(0x3aa)](_0x3f3196=>{const _0x3660de=_0x5db639;_0x3f3196===_0x3c1823[_0x3660de(0x386)]['ONLINE']?this['_toggleOnline']():this[_0x3660de(0x2bb)]();}),this[_0x5db639(0x2a1)][_0x5db639(0x249)][_0x5db639(0x353)](_0x22b5a0[_0x5db639(0x1f4)](this['dispose$']))['subscribe'](_0x166773=>{const _0x134c20=_0x5db639,_0x592b76=_0x166773['eventID'];_0x592b76===_0xb9294[_0x134c20(0x3f9)][_0x134c20(0x2d8)]&&this[_0x134c20(0x1c1)](_0x166773),_0x592b76===_0xb9294['CollaborationEvent']['USERS_LEAVE']&&this[_0x134c20(0x375)](_0x166773);}),this[_0x5db639(0x2f3)](),this[_0x5db639(0x340)](this['_commandService']['onCommandExecuted'](_0x409212=>{const _0x50b6d3=_0x5db639;if(this[_0x50b6d3(0x22e)]&&_0x409212['id']===_0x27c450[_0x50b6d3(0x3b9)]['id']&&_0x409212['params'][_0x50b6d3(0x357)]===this[_0x50b6d3(0x23d)]){const _0x3212a2=_0x409212[_0x50b6d3(0x3a3)];this[_0x50b6d3(0x372)](_0x3212a2[_0x50b6d3(0x41d)],_0x3212a2[_0x50b6d3(0x28a)][0x0]);}})));}[_0x9c28c2(0x1c1)](_0x165705){const _0x4bb6a9=_0x9c28c2;var _0x4fb0a6,_0x1d729b;const {memberID:_0x2d311e,selection:_0x5a3751}=_0x165705[_0x4bb6a9(0x2be)],{sheetName:_0xd0e5b3,range:_0x6b40dc}=_0x2ab58f[_0x4bb6a9(0x275)](_0x5a3751),_0x154e41={'name':(_0x1d729b=(_0x4fb0a6=this['_memberService'][_0x4bb6a9(0x285)](this[_0x4bb6a9(0x23d)],_0x2d311e))==null?void 0x0:_0x4fb0a6[_0x4bb6a9(0x1d8)])!=null?_0x1d729b:_0x4bb6a9(0x332),'range':this[_0x4bb6a9(0x2d7)](_0xd0e5b3,_0x6b40dc),'sheetID':_0xd0e5b3,'color':this[_0x4bb6a9(0x2d0)]['assignAColorForMemberID'](_0x2d311e),'selection':_0x5a3751},_0x559a3d=this[_0x4bb6a9(0x3bf)];_0x559a3d[_0x4bb6a9(0x289)](_0x2d311e,_0x154e41),this[_0x4bb6a9(0x1d2)]['next'](_0x559a3d);}[_0x9c28c2(0x375)](_0x3c07ca){const _0x4d694b=_0x9c28c2,{memberID:_0xac8133}=_0x3c07ca[_0x4d694b(0x2be)],_0x3a906a=this[_0x4d694b(0x3bf)];_0x3a906a[_0x4d694b(0x1ff)](_0xac8133),this['_cursorInfo$'][_0x4d694b(0x254)](_0x3a906a);}[_0x9c28c2(0x2d7)](_0x4c244d,_0x156cbb){const _0x39edec=_0x9c28c2;var _0x2699cf,_0x3dfaae;const _0x2f90f5=(_0x3dfaae=(_0x2699cf=this[_0x39edec(0x2b0)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x2699cf['getSheetBySheetId'](_0x4c244d))==null?void 0x0:_0x3dfaae['getMergeData']();return(_0x2f90f5==null?void 0x0:_0x2f90f5[_0x39edec(0x257)](_0x17123d=>_0x43aff6[_0x39edec(0x2b7)][_0x39edec(0x3e0)](_0x17123d,_0x156cbb)))||_0x156cbb;}[_0x9c28c2(0x2f3)](){const _0x5ec0c6=_0x9c28c2,_0x1ad150=new _0x43aff6['DisposableCollection'](),_0x1b93eb=_0x290f90(),_0x175c80=()=>{const _0x48cea6=_0x2330;_0x1ad150['dispose']();const _0xd226a2=(_0x21d1ce,_0x462cb0,_0x46ba3e,_0x49ef01)=>{const _0x495508=_0x2330;let _0x247953=[];switch(_0x21d1ce['id']){case _0x27c450[_0x495508(0x23a)][_0x495508(0x3bc)]:{_0x247953=_0x27c450[_0x495508(0x2b9)](_0x21d1ce,_0x49ef01);break;}case _0x27c450[_0x495508(0x23a)][_0x495508(0x43f)]:{_0x247953=_0x27c450[_0x495508(0x32c)](_0x21d1ce,_0x49ef01);break;}case _0x27c450['EffectRefRangId'][_0x495508(0x3ca)]:{_0x247953=_0x27c450['handleInsertCol'](_0x21d1ce,_0x49ef01);break;}case _0x27c450[_0x495508(0x23a)][_0x495508(0x411)]:{_0x247953=_0x27c450['handleInsertRangeMoveDown'](_0x21d1ce,_0x49ef01);break;}case _0x27c450[_0x495508(0x23a)][_0x495508(0x297)]:{_0x247953=_0x27c450['handleInsertRangeMoveRight'](_0x21d1ce,_0x49ef01);break;}case _0x27c450[_0x495508(0x23a)][_0x495508(0x3e2)]:{_0x247953=_0x27c450[_0x495508(0x33b)](_0x21d1ce,_0x49ef01);break;}case _0x27c450[_0x495508(0x23a)][_0x495508(0x1cf)]:{_0x247953=_0x27c450[_0x495508(0x342)](_0x21d1ce,_0x49ef01);break;}case _0x27c450[_0x495508(0x23a)][_0x495508(0x2d5)]:{_0x247953=_0x27c450[_0x495508(0x3c9)](_0x21d1ce,_0x49ef01);break;}case _0x27c450[_0x495508(0x23a)][_0x495508(0x2e8)]:{_0x247953=_0x27c450['handleIRemoveRow'](_0x21d1ce,_0x49ef01);break;}}const _0x159da2=_0x27c450['runRefRangeMutations'](_0x247953,_0x49ef01),_0x24977a=this['cursorInfo'][_0x495508(0x326)](_0x462cb0);if(_0x24977a&&_0x159da2){const _0x133cc3={..._0x24977a,'range':_0x159da2};this['cursorInfo'][_0x495508(0x289)](_0x462cb0,_0x133cc3),_0x1b93eb(()=>{const _0x2522f9=_0x495508,_0x21d3f2=this[_0x2522f9(0x3d1)][_0x2522f9(0x1a8)](_0x159da2,_0x15c1b4=>(_0x21d3f2['dispose'](),_0xd226a2(_0x15c1b4,_0x462cb0,_0x46ba3e,_0x159da2)));_0x1ad150[_0x2522f9(0x2cc)](_0x21d3f2);});}return{'redos':[],'undos':[]};};this[_0x48cea6(0x3bf)][_0x48cea6(0x312)]((_0x5ca54d,_0x1d58cc)=>{const _0x30c673=_0x48cea6,{range:_0x37c7e0,sheetID:_0x5f0823}=_0x5ca54d,_0x2b979f=this['_refRangeService'][_0x30c673(0x1a8)](_0x37c7e0,_0x2a553e=>(_0x2b979f[_0x30c673(0x420)](),_0xd226a2(_0x2a553e,_0x1d58cc,_0x5f0823,_0x37c7e0)));_0x1ad150[_0x30c673(0x2cc)](_0x2b979f);});};this['disposeWithMe'](_0x43aff6['toDisposable'](this['_cursorInfo$'][_0x5ec0c6(0x3aa)](()=>{_0x175c80();})));}[_0x9c28c2(0x2c2)](){const _0x2d0aa7=_0x9c28c2;var _0x2c10d0,_0xccd7b4;if(this[_0x2d0aa7(0x22e)]=!0x0,((_0x2c10d0=this[_0x2d0aa7(0x2b0)]['getFocusedUnit']())==null?void 0x0:_0x2c10d0[_0x2d0aa7(0x318)]())!==this[_0x2d0aa7(0x23d)])return;const _0x4c082e=(_0xccd7b4=this[_0x2d0aa7(0x3a0)][_0x2d0aa7(0x326)](_0x27c450['SheetsSelectionsService'])[_0x2d0aa7(0x252)]())==null?void 0x0:_0xccd7b4[0x0],_0x21d387=this[_0x2d0aa7(0x2b0)][_0x2d0aa7(0x387)](_0x43aff6[_0x2d0aa7(0x1fb)][_0x2d0aa7(0x1ab)])[_0x2d0aa7(0x354)]();_0x4c082e&&_0x21d387&&this[_0x2d0aa7(0x372)](_0x21d387[_0x2d0aa7(0x385)](),_0x4c082e);}[_0x9c28c2(0x2bb)](){const _0x519a53=_0x9c28c2;this[_0x519a53(0x22e)]=!0x1;}};_0x3a33d4=_0x2081f1([_0x3290da(0x2,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6[_0x9c28c2(0x35c)])),_0x3290da(0x3,_0x43aff6[_0x9c28c2(0x21f)](_0x52fe0d)),_0x3290da(0x4,_0x43aff6[_0x9c28c2(0x21f)](_0x3c1823['MemberService'])),_0x3290da(0x5,_0x43aff6[_0x9c28c2(0x3bb)]),_0x3290da(0x6,_0x43aff6[_0x9c28c2(0x39e)]),_0x3290da(0x7,_0x43aff6['Inject'](_0x27c450[_0x9c28c2(0x40a)]))],_0x3a33d4);var _0x2029d0=Object[_0x9c28c2(0x2fe)],_0xc52433=(_0x1dd16,_0x20b59f,_0x284d42,_0x1eb1b1)=>{const _0x310751=_0x9c28c2;for(var _0x252313=_0x1eb1b1>0x1?void 0x0:_0x1eb1b1?_0x2029d0(_0x20b59f,_0x284d42):_0x20b59f,_0x1230cf=_0x1dd16[_0x310751(0x27b)]-0x1,_0x441c4f;_0x1230cf>=0x0;_0x1230cf--)(_0x441c4f=_0x1dd16[_0x1230cf])&&(_0x252313=_0x441c4f(_0x252313)||_0x252313);return _0x252313;},_0x662069=(_0x425cea,_0x3fe2a9)=>(_0xc1f544,_0x451f7e)=>_0x3fe2a9(_0xc1f544,_0x451f7e,_0x425cea);let _0x5964c5=class extends _0x43aff6[_0x9c28c2(0x35e)]{constructor(_0x25ae79,_0x253742,_0x4d9613){const _0x40518e=_0x9c28c2;super(),_0x433bc1(this,_0x40518e(0x402),new Map()),_0x433bc1(this,_0x40518e(0x1cc),new _0x22b5a0['Subject']()),(this[_0x40518e(0x2b0)]=_0x25ae79,this[_0x40518e(0x3a0)]=_0x253742,this['_collabSessionService']=_0x4d9613,this[_0x40518e(0x269)]());}[_0x9c28c2(0x420)](){const _0x1466d4=_0x9c28c2;super['dispose'](),this[_0x1466d4(0x1cc)][_0x1466d4(0x1ca)](),this[_0x1466d4(0x402)][_0x1466d4(0x312)](_0x41be7e=>_0x41be7e[_0x1466d4(0x420)]());}['getCollabCursors$'](_0x47bfcd){const _0x13e510=_0x9c28c2;return this['_entities']['has'](_0x47bfcd)?this[_0x13e510(0x402)][_0x13e510(0x326)](_0x47bfcd)['cursorInfo$']:this[_0x13e510(0x1cc)][_0x13e510(0x353)](_0x22b5a0['filter'](_0xda124=>_0xda124[_0x13e510(0x23d)]===_0x47bfcd),_0x22b5a0[_0x13e510(0x1b4)](_0x308b8b=>_0x308b8b[_0x13e510(0x42f)]));}['_init'](){const _0x44395a=_0x9c28c2;this['_univerInstanceService'][_0x44395a(0x429)](_0x43aff6[_0x44395a(0x1fb)][_0x44395a(0x1ab)])[_0x44395a(0x353)](_0x22b5a0[_0x44395a(0x1f4)](this[_0x44395a(0x36b)]))[_0x44395a(0x3aa)](async _0x3fec32=>{const _0x5264cc=_0x44395a,_0x4133dc=_0x3fec32['getUnitId'](),_0x431328=await this['_startSheetCollabCursor'](_0x4133dc);this[_0x5264cc(0x1cc)]['next'](_0x431328),this[_0x5264cc(0x402)]['set'](_0x4133dc,_0x431328);}),this[_0x44395a(0x2b0)]['getTypeOfUnitAdded$'](_0x43aff6['UniverInstanceType'][_0x44395a(0x1e1)])[_0x44395a(0x353)](_0x22b5a0['takeUntil'](this['dispose$']))[_0x44395a(0x353)](_0x22b5a0['filter'](_0x28d4a2=>!_0x28d4a2['getUnitId']()[_0x44395a(0x264)]('__')))[_0x44395a(0x3aa)](async _0x209b1a=>{const _0x89c459=_0x44395a,_0x1f10a3=_0x209b1a[_0x89c459(0x318)](),_0x518659=await this[_0x89c459(0x358)](_0x1f10a3);this['_entityInit$'][_0x89c459(0x254)](_0x518659),this['_entities'][_0x89c459(0x289)](_0x1f10a3,_0x518659);}),_0x22b5a0['merge'](this[_0x44395a(0x2b0)][_0x44395a(0x209)](_0x43aff6['UniverInstanceType']['UNIVER_DOC']),this[_0x44395a(0x2b0)][_0x44395a(0x209)](_0x43aff6[_0x44395a(0x1fb)][_0x44395a(0x1ab)]))[_0x44395a(0x353)](_0x22b5a0[_0x44395a(0x1f4)](this[_0x44395a(0x36b)]))[_0x44395a(0x3aa)](_0x117f37=>{const _0x5e22f3=_0x44395a,_0x21c4d0=_0x117f37['getUnitId'](),_0x1bd226=this[_0x5e22f3(0x402)][_0x5e22f3(0x326)](_0x21c4d0);_0x1bd226&&(_0x1bd226[_0x5e22f3(0x420)](),this['_entities'][_0x5e22f3(0x1ff)](_0x21c4d0));});}async[_0x9c28c2(0x2d6)](_0x2a5584){const _0x42ba92=_0x9c28c2,_0x41f64f=await this[_0x42ba92(0x24b)][_0x42ba92(0x1c6)](_0x2a5584),_0x41f0a7=this[_0x42ba92(0x3a0)][_0x42ba92(0x231)](_0x3a33d4,_0x2a5584,_0x41f64f);return _0x41f0a7['init'](),_0x41f0a7;}async[_0x9c28c2(0x358)](_0x49ce04){const _0x5af98c=_0x9c28c2,_0x4121d5=await this[_0x5af98c(0x24b)][_0x5af98c(0x1c6)](_0x49ce04),_0x10bbd3=this[_0x5af98c(0x3a0)][_0x5af98c(0x231)](_0x104926,_0x49ce04,_0x4121d5);return _0x10bbd3[_0x5af98c(0x1be)](),_0x10bbd3;}};_0x5964c5=_0xc52433([_0x662069(0x0,_0x43aff6[_0x9c28c2(0x3bb)]),_0x662069(0x1,_0x43aff6['Inject'](_0x43aff6[_0x9c28c2(0x35c)])),_0x662069(0x2,_0x43aff6['Inject'](_0x3c1823[_0x9c28c2(0x242)]))],_0x5964c5);const _0x3d30e4=0x14,_0x473791=0xc8,_0x31cd92=0x4,_0x2ab529=0x5;function _0x20adb9(_0x116cce,_0x47da18){const _0x1bc2b0=_0x9c28c2;let {radius:_0x1a5098,width:_0xcfbb2,height:_0x277b25}=_0x47da18;_0x1a5098=_0x1a5098!=null?_0x1a5098:0x0,_0xcfbb2=_0xcfbb2!=null?_0xcfbb2:0x1e,_0x277b25=_0x277b25!=null?_0x277b25:0x1e;let _0x2ce214=0x0,_0x50c454=0x0,_0x5818ff=0x0;_0x2ce214=_0x50c454=_0x5818ff=Math[_0x1bc2b0(0x343)](_0x1a5098,_0xcfbb2/0x2,_0x277b25/0x2),_0x116cce[_0x1bc2b0(0x406)](),_0x116cce['moveTo'](_0x2ce214,0x0),_0x116cce[_0x1bc2b0(0x323)](_0xcfbb2-_0x50c454,0x0),_0x116cce[_0x1bc2b0(0x2fa)](_0xcfbb2-_0x50c454,_0x50c454,_0x50c454,Math['PI']*0x3/0x2,0x0,!0x1),_0x116cce[_0x1bc2b0(0x323)](_0xcfbb2,_0x277b25-_0x5818ff),_0x116cce[_0x1bc2b0(0x2fa)](_0xcfbb2-_0x5818ff,_0x277b25-_0x5818ff,_0x5818ff,0x0,Math['PI']/0x2,!0x1),_0x116cce['lineTo'](0x0,_0x277b25),_0x116cce['lineTo'](0x0,_0x2ce214),_0x116cce['arc'](_0x2ce214,_0x2ce214,_0x2ce214,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x116cce[_0x1bc2b0(0x2dc)](),_0x47da18[_0x1bc2b0(0x27d)]&&(_0x116cce['save'](),_0x116cce[_0x1bc2b0(0x350)]=_0x47da18[_0x1bc2b0(0x27d)],_0x47da18['fillRule']===_0x1bc2b0(0x2b4)?_0x116cce[_0x1bc2b0(0x27d)](_0x1bc2b0(0x2b4)):_0x116cce[_0x1bc2b0(0x27d)](),_0x116cce[_0x1bc2b0(0x1d9)]());}class _0x2bf5cc extends _0x359b8a[_0x9c28c2(0x384)]{constructor(_0x571552,_0x1f71c9){const _0x2e04a4=_0x9c28c2;super(_0x571552,_0x1f71c9),_0x433bc1(this,_0x2e04a4(0x36c)),_0x433bc1(this,_0x2e04a4(0x39c)),(this[_0x2e04a4(0x36c)]=_0x1f71c9==null?void 0x0:_0x1f71c9[_0x2e04a4(0x36c)],this[_0x2e04a4(0x39c)]=_0x1f71c9==null?void 0x0:_0x1f71c9[_0x2e04a4(0x39c)]);}static[_0x9c28c2(0x383)](_0x326f5b,_0x2d9798){const _0x57de69=_0x9c28c2,{text:_0x29556f,color:_0x241cea}=_0x2d9798;_0x326f5b['save'](),_0x326f5b[_0x57de69(0x2fb)]=_0x57de69(0x415);const _0x5a55f2=_0x326f5b[_0x57de69(0x39a)](_0x29556f)[_0x57de69(0x3f5)],_0xf484bd=Math['min'](_0x5a55f2+0x2*_0x31cd92,_0x473791);_0x20adb9(_0x326f5b,{'height':_0x3d30e4,'radius':0x4,'width':_0xf484bd,'fill':_0x241cea}),_0x326f5b[_0x57de69(0x350)]=_0x57de69(0x2c4);const _0x4fbaca=_0x31cd92,_0x127a11=_0x3d30e4-_0x2ab529,_0x10291d=_0x473791-0x2*_0x31cd92;if(_0x5a55f2>_0x10291d){let _0x3e1c08='',_0x5867c2=0x0;for(const _0x19feb6 of _0x29556f){const _0xa88d65=_0x326f5b[_0x57de69(0x39a)](_0x19feb6)[_0x57de69(0x3f5)];if(_0x5867c2+_0xa88d65<=_0x10291d-_0x326f5b['measureText'](_0x57de69(0x216))[_0x57de69(0x3f5)])_0x3e1c08+=_0x19feb6,_0x5867c2+=_0xa88d65;else{_0x3e1c08+=_0x57de69(0x216);break;}}_0x326f5b[_0x57de69(0x33e)](_0x3e1c08,_0x4fbaca,_0x127a11);}else _0x326f5b[_0x57de69(0x33e)](_0x29556f,_0x4fbaca,_0x127a11);_0x326f5b[_0x57de69(0x1d9)]();}[_0x9c28c2(0x3c0)](_0x41c00f){const _0x40b174=_0x9c28c2;_0x2bf5cc[_0x40b174(0x383)](_0x41c00f,this);}}const _0x1c747b=_0x9c28c2(0x438),_0x25d3e7=_0x9c28c2(0x2da),_0x1f221e=_0x9c28c2(0x24f),_0x269334=0x6,_0x48dd86=1.5,_0xbfb9d2=0x4,_0x5e8b7f=1.5,_0x583996='rgba(255,\x20255,\x20255,\x200.01)';class _0x36c1c7{constructor(_0x264af2,_0x42b7a0,_0x2979e1,_0x273400){const _0x4d8a51=_0x9c28c2;_0x433bc1(this,_0x4d8a51(0x36d),[]),_0x433bc1(this,'_anchor',null),_0x433bc1(this,_0x4d8a51(0x217),null),_0x433bc1(this,_0x4d8a51(0x39b),null),_0x433bc1(this,_0x4d8a51(0x307),null),_0x433bc1(this,_0x4d8a51(0x34a),null),(this[_0x4d8a51(0x1f1)]=_0x264af2,this[_0x4d8a51(0x1c0)]=_0x42b7a0,this[_0x4d8a51(0x2d4)]=_0x2979e1,this[_0x4d8a51(0x25c)]=_0x273400,this[_0x4d8a51(0x3db)]());}set[_0x9c28c2(0x26f)](_0x401a20){const _0x8d84b4=_0x9c28c2;_0x401a20?(this[_0x8d84b4(0x39b)]&&this['_anchorDot'][_0x8d84b4(0x218)](),this[_0x8d84b4(0x217)]&&this[_0x8d84b4(0x217)][_0x8d84b4(0x324)]()):(this[_0x8d84b4(0x39b)]&&this[_0x8d84b4(0x39b)][_0x8d84b4(0x324)](),this[_0x8d84b4(0x217)]&&this[_0x8d84b4(0x217)][_0x8d84b4(0x218)]());}['dispose'](){const _0x396a79=_0x9c28c2;for(const _0x3d9679 of this[_0x396a79(0x36d)])_0x3d9679['dispose']();this[_0x396a79(0x217)]&&this[_0x396a79(0x217)]['dispose'](),this[_0x396a79(0x39b)]&&this[_0x396a79(0x39b)]['dispose'](),this[_0x396a79(0x3e7)]&&this[_0x396a79(0x3e7)][_0x396a79(0x420)](),this['_eventUnsubscribe']&&this[_0x396a79(0x34a)]();}['_render'](){const _0xa445=_0x9c28c2;var _0x352244;const {_docSkeleton:_0x2ada0b,_document:_0x34a030}=this,{color:_0x1f643c,name:_0x1250b2,ranges:_0x1229a0}=this[_0xa445(0x1f1)],_0x50221f=_0x34a030[_0xa445(0x1b8)](),{docsLeft:_0x1437f1,docsTop:_0x2ff460}=_0x50221f,_0x3369c6=new _0x30015e[(_0xa445(0x33f))](_0x50221f,_0x2ada0b);for(const {startOffset:_0x54aec5,endOffset:_0xd16b58,rangeType:_0x39308c,segmentId:_0x1a2e8e,segmentPage:_0x3e0ae8,collapsed:_0xe5692c,isActive:_0x434dba}of _0x1229a0){const _0x219f89=_0x2ada0b[_0xa445(0x376)](_0x54aec5,!0x0,_0x1a2e8e,_0x3e0ae8);let _0x1a51ac=_0x2ada0b['findNodePositionByCharIndex'](_0xd16b58,!0x0,_0x1a2e8e,_0x3e0ae8);if(_0x1a51ac==null&&(_0x1a51ac=_0x2ada0b[_0xa445(0x376)](_0xd16b58-0x1,!0x1,_0x1a2e8e,_0x3e0ae8)),_0x434dba){const {contentBoxPointGroup:_0x2c2565}=_0x3369c6[_0xa445(0x271)](_0x1a51ac,_0x1a51ac);if(_0x2c2565[_0xa445(0x27b)]===0x0)continue;this['_drawAnchor'](_0x1f643c,_0x2c2565,_0x1437f1,_0x2ff460,_0x1250b2),this[_0xa445(0x34a)]=this[_0xa445(0x2e5)]();}if(_0x219f89&&_0x1a51ac){if(_0x39308c===_0x43aff6['DOC_RANGE_TYPE'][_0xa445(0x42d)]){const _0x263d1b=new _0x30015e[(_0xa445(0x20e))](_0x50221f,_0x2ada0b),{pointGroup:_0x577776}=(_0x352244=_0x263d1b[_0xa445(0x271)](_0x219f89,_0x1a51ac))!=null?_0x352244:{};if(_0x577776==null||_0x577776[_0xa445(0x27b)]===0x0)continue;this[_0xa445(0x23e)](_0x1f643c,_0x577776,_0x1437f1,_0x2ff460);}else{if(!_0xe5692c){const {borderBoxPointGroup:_0x305afd}=_0x3369c6[_0xa445(0x271)](_0x219f89,_0x1a51ac);if(_0x305afd[_0xa445(0x27b)]===0x0)continue;this[_0xa445(0x31f)](_0x1f643c,_0x305afd,_0x1437f1,_0x2ff460);}}}}}[_0x9c28c2(0x389)](_0x4e1036,_0x55d38c,_0x21aa2b,_0x4a0483,_0x1efd0e){const _0x72e13a=_0x9c28c2,_0x399156=this[_0x72e13a(0x424)](_0x55d38c),{left:_0x494002,top:_0x218bc2,height:_0x40f7a0}=_0x399156,_0x7be40f=this[_0x72e13a(0x2df)](),_0x197f62=_0x5e8b7f/_0x7be40f,_0xb55014=new _0x359b8a[(_0x72e13a(0x1ed))](_0x1c747b+_0x43aff6['Tools'][_0x72e13a(0x2b8)](_0x269334),{'left':_0x494002+_0x21aa2b-_0x197f62,'top':_0x218bc2+_0x4a0483,'height':_0x40f7a0,'width':_0x48dd86,'fill':_0x4e1036||_0x359b8a[_0x72e13a(0x3ed)](_0x43aff6[_0x72e13a(0x352)][_0x72e13a(0x39f)],0x0),'strokeWidth':_0x197f62,'stroke':_0x583996,'evented':!0x0});this[_0x72e13a(0x3e7)]=_0xb55014,this[_0x72e13a(0x1c0)][_0x72e13a(0x284)](_0xb55014,_0x30015e[_0x72e13a(0x2cd)]);const _0x37a832=new _0x359b8a[(_0x72e13a(0x1ed))](_0x1c747b+_0x43aff6[_0x72e13a(0x219)][_0x72e13a(0x2b8)](_0x269334),{'left':_0x494002+_0x21aa2b-_0x197f62,'top':_0x218bc2+_0x4a0483-_0xbfb9d2/0x2,'height':_0xbfb9d2,'width':_0xbfb9d2,'fill':_0x4e1036||_0x359b8a[_0x72e13a(0x3ed)](_0x43aff6[_0x72e13a(0x352)][_0x72e13a(0x39f)],0x0),'strokeWidth':0x0,'stroke':_0x4e1036||_0x359b8a[_0x72e13a(0x3ed)](_0x43aff6['COLORS']['black'],0x0),'evented':!0x1});this[_0x72e13a(0x39b)]=_0x37a832,this[_0x72e13a(0x1c0)][_0x72e13a(0x284)](_0x37a832,_0x30015e['TEXT_RANGE_LAYER_INDEX']);const _0x67fe43=new _0x2bf5cc(_0x1c747b+_0x43aff6['Tools'][_0x72e13a(0x2b8)](_0x269334),{'left':_0x494002+_0x21aa2b-_0x197f62,'top':_0x218bc2+_0x4a0483-_0x3d30e4,'text':_0x1efd0e,'color':_0x4e1036});this[_0x72e13a(0x217)]=_0x67fe43,this[_0x72e13a(0x1c0)][_0x72e13a(0x284)](_0x67fe43,_0x30015e[_0x72e13a(0x2cd)]),this['_hover']=!0x1;}[_0x9c28c2(0x2e5)](){const _0x5b6c8c=_0x9c28c2,_0x251b96=this[_0x5b6c8c(0x3e7)][_0x5b6c8c(0x3ef)][_0x5b6c8c(0x3cd)](()=>{const _0x49c112=_0x5b6c8c;this[_0x49c112(0x26f)]=!0x0;}),_0x438b61=this['_anchor']['onPointerLeave$'][_0x5b6c8c(0x3cd)](()=>{const _0x3d1bf7=_0x5b6c8c;this[_0x3d1bf7(0x307)]&&clearTimeout(this[_0x3d1bf7(0x307)]),this['_hideTimer']=setTimeout(()=>{const _0x50e155=_0x3d1bf7;this[_0x50e155(0x26f)]=!0x1;},0x7d0);});return()=>{const _0x456a9c=_0x5b6c8c;_0x251b96[_0x456a9c(0x3df)](),_0x438b61['unsubscribe']();};}[_0x9c28c2(0x31f)](_0x14f027,_0x402622,_0x45307c,_0x3c4c27){const _0x33008d=_0x9c28c2,_0x4a16c6=new _0x43aff6[(_0x33008d(0x274))](_0x14f027)[_0x33008d(0x423)](0.2)[_0x33008d(0x203)](),_0x30bc7c=new _0x359b8a[(_0x33008d(0x20a))](_0x25d3e7+_0x43aff6[_0x33008d(0x219)][_0x33008d(0x2b8)](_0x269334),{'pointsGroup':_0x402622,'fill':_0x4a16c6||_0x359b8a[_0x33008d(0x3ed)](_0x43aff6[_0x33008d(0x352)]['black'],0.2),'left':_0x45307c,'top':_0x3c4c27,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x33008d(0x329)](_0x30bc7c),this[_0x33008d(0x1c0)]['addObject'](_0x30bc7c,_0x30015e[_0x33008d(0x2cd)]);}[_0x9c28c2(0x23e)](_0x58aeac,_0x54be80,_0x58fab6,_0x56ed46){const _0x3164c5=_0x9c28c2,_0x39866d=new _0x43aff6['ColorKit'](_0x58aeac)[_0x3164c5(0x423)](0.2)[_0x3164c5(0x203)](),_0x98e571=new _0x359b8a['RegularPolygon'](_0x1f221e+_0x43aff6['Tools'][_0x3164c5(0x2b8)](_0x269334),{'pointsGroup':_0x54be80,'fill':_0x39866d||_0x359b8a[_0x3164c5(0x3ed)](_0x43aff6[_0x3164c5(0x352)][_0x3164c5(0x39f)],0.2),'left':_0x58fab6,'top':_0x56ed46,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3164c5(0x36d)]['push'](_0x98e571),this[_0x3164c5(0x1c0)][_0x3164c5(0x284)](_0x98e571,_0x30015e[_0x3164c5(0x2cd)]);}[_0x9c28c2(0x424)](_0x3c4f0b){const _0x376d71=_0x3c4f0b[0x0],_0x323447=_0x376d71[0x0],_0x38a81d=_0x376d71[0x2],{x:_0x42f49c,y:_0x1c8fa0}=_0x323447,{x:_0x20ed3a,y:_0x1c23c6}=_0x38a81d;return{'left':_0x42f49c,'top':_0x1c8fa0,'width':_0x20ed3a-_0x42f49c,'height':_0x1c23c6-_0x1c8fa0};}[_0x9c28c2(0x2df)](){const _0x49438e=_0x9c28c2,{scaleX:_0x23146b,scaleY:_0x54c2af}=this['_scene']['getAncestorScale']();return Math[_0x49438e(0x396)](_0x23146b,_0x54c2af);}}var _0x699928=Object['getOwnPropertyDescriptor'],_0x143536=(_0x1546d8,_0x2380bd,_0x1b265d,_0x23efa0)=>{for(var _0x2ecd55=_0x23efa0>0x1?void 0x0:_0x23efa0?_0x699928(_0x2380bd,_0x1b265d):_0x2380bd,_0x1b6288=_0x1546d8['length']-0x1,_0x471d12;_0x1b6288>=0x0;_0x1b6288--)(_0x471d12=_0x1546d8[_0x1b6288])&&(_0x2ecd55=_0x471d12(_0x2ecd55)||_0x2ecd55);return _0x2ecd55;},_0xe45c8e=(_0x2a923b,_0x3b611d)=>(_0x52c552,_0x3a911f)=>_0x3b611d(_0x52c552,_0x3a911f,_0x2a923b);let _0x38436b=class extends _0x43aff6[_0x9c28c2(0x35e)]{constructor(_0x5a7cc0,_0x5b7d16,_0x1c1803,_0x307508,_0x22f848){const _0x595b10=_0x9c28c2;super(),_0x433bc1(this,_0x595b10(0x286),[]),_0x433bc1(this,_0x595b10(0x35d),[]),(this[_0x595b10(0x278)]=_0x5a7cc0,this['_docSkeletonManagerService']=_0x5b7d16,this[_0x595b10(0x316)]=_0x1c1803,this[_0x595b10(0x403)]=_0x307508,this[_0x595b10(0x42a)]=_0x22f848,this[_0x595b10(0x269)]());}[_0x9c28c2(0x269)](){const _0x5c60a3=_0x9c28c2,_0x61480a=this[_0x5c60a3(0x278)]['unitId'],_0x162ccf=this[_0x5c60a3(0x432)];this['disposeWithMe'](_0x22b5a0[_0x5c60a3(0x1c8)]([this[_0x5c60a3(0x316)]['getCollabCursors$'](_0x61480a),this['_themeService']['currentTheme$']])['pipe'](_0x2ae022[_0x5c60a3(0x239)](([_0x3649e2,_0x1271f4])=>({'skeleton':_0x162ccf[_0x5c60a3(0x2c0)](),'cursors':[..._0x3649e2[_0x5c60a3(0x1dc)]()][_0x5c60a3(0x2e9)](_0x31cab8=>({..._0x31cab8,'color':this[_0x5c60a3(0x42a)][_0x5c60a3(0x303)](_0x31cab8[_0x5c60a3(0x36c)])}))})))[_0x5c60a3(0x3aa)](_0x55472b=>{const _0x351e5d=_0x5c60a3;if(this[_0x351e5d(0x260)](),_0x55472b){const {skeleton:_0x3742a3,cursors:_0x227189}=_0x55472b;this[_0x351e5d(0x2f4)](_0x3742a3,_0x227189);}})),this[_0x5c60a3(0x3b4)](),this['_initCommandExecutedListener']();}[_0x9c28c2(0x2f4)](_0x53d9dc,_0x1357ca){const _0xf6bab6=_0x9c28c2,{scene:_0x538331,mainComponent:_0x27a8e6}=this[_0xf6bab6(0x278)],_0x69c3c2=_0x1357ca[_0xf6bab6(0x239)](_0xe2dbdc=>new _0x36c1c7(_0xe2dbdc,_0x538331,_0x53d9dc,_0x27a8e6));this[_0xf6bab6(0x286)]=_0x69c3c2,this[_0xf6bab6(0x35d)]=_0x1357ca;}[_0x9c28c2(0x2e6)](){const _0x103b9c=_0x9c28c2;this[_0x103b9c(0x260)]();const {scene:_0x255320,mainComponent:_0x2fc20e}=this[_0x103b9c(0x278)],_0x195dcf=this[_0x103b9c(0x432)][_0x103b9c(0x2c0)](),_0x57a365=this[_0x103b9c(0x35d)][_0x103b9c(0x239)](_0x469459=>new _0x36c1c7(_0x469459,_0x255320,_0x195dcf,_0x2fc20e));this[_0x103b9c(0x286)]=_0x57a365;}['_removeCollabCursors'](){const _0x46fdf7=_0x9c28c2;this[_0x46fdf7(0x286)][_0x46fdf7(0x312)](_0x515857=>_0x515857[_0x46fdf7(0x420)]()),this[_0x46fdf7(0x286)]=[];}[_0x9c28c2(0x38d)](){const _0x985db=_0x9c28c2,_0x2c9337=[_0x30015e[_0x985db(0x414)]['id']];this[_0x985db(0x340)](this[_0x985db(0x403)]['onCommandExecuted'](_0xe82552=>{const _0x3ca65a=_0x985db;_0x2c9337[_0x3ca65a(0x3fe)](_0xe82552['id'])&&_0xe82552[_0x3ca65a(0x3a3)][_0x3ca65a(0x357)]===this['_context'][_0x3ca65a(0x357)]&&this['_refreshCollabCursors']();}));}[_0x9c28c2(0x3b4)](){const _0x16dbb2=_0x9c28c2;this[_0x16dbb2(0x340)](_0x43aff6['fromEventSubject'](this[_0x16dbb2(0x278)]['engine'][_0x16dbb2(0x3f3)])['pipe'](_0x2ae022[_0x16dbb2(0x369)](_0x1d65c6=>_0x1d65c6[_0x16dbb2(0x2f1)]===_0x359b8a['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x16dbb2(0x29b)]),_0x2ae022[_0x16dbb2(0x433)](0x10))['subscribe'](()=>{const _0x22e078=_0x16dbb2;this[_0x22e078(0x2e6)]();}));}};_0x38436b=_0x143536([_0xe45c8e(0x1,_0x43aff6['Inject'](_0x4cf538['DocSkeletonManagerService'])),_0xe45c8e(0x2,_0x43aff6[_0x9c28c2(0x21f)](_0x5964c5)),_0xe45c8e(0x3,_0x43aff6[_0x9c28c2(0x39e)]),_0xe45c8e(0x4,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6[_0x9c28c2(0x1ec)]))],_0x38436b);const _0x5b5863=0x1,_0x587875=1.5;class _0x23980c extends _0x359b8a[_0x9c28c2(0x384)]{constructor(_0x5d625b,_0x18b050){const _0x46dd52=_0x9c28c2;super(_0x5d625b,_0x18b050),_0x433bc1(this,'_color'),_0x433bc1(this,_0x46dd52(0x24c),!0x1),_0x433bc1(this,_0x46dd52(0x37d)),_0x433bc1(this,_0x46dd52(0x266),''),_0x433bc1(this,_0x46dd52(0x2f2),_0x46dd52(0x3cc)),_0x433bc1(this,_0x46dd52(0x3c3)),(_0x18b050&&this[_0x46dd52(0x2ce)](_0x18b050),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x46dd52(0x2ce)]({'hovered':!0x0})),this[_0x46dd52(0x3e4)][_0x46dd52(0x3cd)](()=>this[_0x46dd52(0x2ce)]({'hovered':!0x1})));}[_0x9c28c2(0x2ce)](_0xddb82c){const _0x57d5a9=_0x9c28c2;var _0x266e05,_0x104f1e,_0x118b94,_0x3c7545,_0x5f7042,_0x1543fa;this[_0x57d5a9(0x36f)]=(_0x266e05=_0xddb82c[_0x57d5a9(0x36c)])!=null?_0x266e05:this[_0x57d5a9(0x36f)],this[_0x57d5a9(0x24c)]=(_0x104f1e=_0xddb82c[_0x57d5a9(0x3c8)])!=null?_0x104f1e:this[_0x57d5a9(0x24c)],this[_0x57d5a9(0x37d)]=(_0x118b94=_0xddb82c[_0x57d5a9(0x294)])!=null?_0x118b94:this[_0x57d5a9(0x37d)],this[_0x57d5a9(0x266)]=(_0x3c7545=_0xddb82c[_0x57d5a9(0x1d8)])!=null?_0x3c7545:this[_0x57d5a9(0x266)],this[_0x57d5a9(0x2f2)]=(_0x5f7042=_0xddb82c[_0x57d5a9(0x2a9)])!=null?_0x5f7042:this['_labelPosition'],this[_0x57d5a9(0x3c3)]=(_0x1543fa=_0xddb82c[_0x57d5a9(0x27f)])!=null?_0x1543fa:this[_0x57d5a9(0x3c3)],this[_0x57d5a9(0x418)]({'width':_0xddb82c['width'],'height':_0xddb82c['height']});}[_0x9c28c2(0x41f)](_0x25b84e){const _0x5fbadd=_0x9c28c2,{row:_0x35b4ce,column:_0x4e1490}=_0x25b84e;if(_0x35b4ce>=this[_0x5fbadd(0x37d)][_0x5fbadd(0x1e8)]&&_0x35b4ce<=this[_0x5fbadd(0x37d)]['endRow']&&_0x4e1490>=this[_0x5fbadd(0x37d)]['startColumn']&&_0x4e1490<=this[_0x5fbadd(0x37d)][_0x5fbadd(0x334)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x5fbadd(0x2ce)]({'hovered':!0x1});}[_0x9c28c2(0x276)](_0x3e9cc4){return!0x1;}[_0x9c28c2(0x3c0)](_0x3a36ef){const _0x44e21b=_0x9c28c2;_0x359b8a['Rect'][_0x44e21b(0x383)](_0x3a36ef,{'width':this[_0x44e21b(0x3f5)],'height':this[_0x44e21b(0x273)],'strokeWidth':_0x587875,'stroke':this[_0x44e21b(0x36f)],'evented':!0x1,'fill':this[_0x44e21b(0x3c3)]}),this[_0x44e21b(0x24c)]&&(_0x3a36ef['save'](),_0x3a36ef[_0x44e21b(0x279)](0x1,0x0,0x0,0x1,this[_0x44e21b(0x3f5)],this['_labelPosition']===_0x44e21b(0x272)?0x0:-0x14),_0x2bf5cc[_0x44e21b(0x383)](_0x3a36ef,{'text':this['_name'],'color':this[_0x44e21b(0x36f)]}),_0x3a36ef['restore']());}}var _0x1c19fb=Object[_0x9c28c2(0x2fe)],_0x5910eb=(_0x13fa19,_0x8d18b0,_0x24b73a,_0xcedab3)=>{const _0x1d4aaa=_0x9c28c2;for(var _0x8f70de=_0xcedab3>0x1?void 0x0:_0xcedab3?_0x1c19fb(_0x8d18b0,_0x24b73a):_0x8d18b0,_0x3c9f5c=_0x13fa19[_0x1d4aaa(0x27b)]-0x1,_0x43020b;_0x3c9f5c>=0x0;_0x3c9f5c--)(_0x43020b=_0x13fa19[_0x3c9f5c])&&(_0x8f70de=_0x43020b(_0x8f70de)||_0x8f70de);return _0x8f70de;},_0x4e94e3=(_0x5e6cf4,_0x5d391c)=>(_0x3595f6,_0x2edec1)=>_0x5d391c(_0x3595f6,_0x2edec1,_0x5e6cf4);const _0x5426eb=0x1389;let _0x4140ee=class extends _0x43aff6[_0x9c28c2(0x35e)]{constructor(_0x292d82,_0x40825c,_0x1d623c,_0x3fec96){const _0x4b5ca6=_0x9c28c2;super(),_0x433bc1(this,_0x4b5ca6(0x35d),new Set()),_0x433bc1(this,_0x4b5ca6(0x1b9),null),(this['_context']=_0x292d82,this['_sheetSkeletonManagerService']=_0x40825c,this[_0x4b5ca6(0x316)]=_0x1d623c,this[_0x4b5ca6(0x42a)]=_0x3fec96,this[_0x4b5ca6(0x269)]());}['_init'](){const _0x23e6eb=_0x9c28c2;this[_0x23e6eb(0x42c)][_0x23e6eb(0x3c2)]['pipe'](_0x2ae022[_0x23e6eb(0x1f4)](this['dispose$']),_0x2ae022[_0x23e6eb(0x1b4)](_0x43b945=>{const _0x4ce357=_0x23e6eb;if(_0x43b945){const _0x58b7c7=_0x43b945[_0x4ce357(0x1bc)];return _0x22b5a0[_0x4ce357(0x1c8)](this[_0x4ce357(0x316)][_0x4ce357(0x3f6)](this['_context'][_0x4ce357(0x357)]),this[_0x4ce357(0x42a)][_0x4ce357(0x40e)])[_0x4ce357(0x353)](_0x2ae022[_0x4ce357(0x239)](([_0x3bc5e9,_0x310e01])=>{const _0x53a7c2=_0x4ce357,_0x40439f=new Map();return _0x3bc5e9[_0x53a7c2(0x312)]((_0x8f0458,_0x2787de)=>{const _0x47f590=_0x53a7c2;if(_0x8f0458['sheetID']===_0x58b7c7){const _0x58414f={..._0x8f0458};_0x58414f[_0x47f590(0x36c)]=this['_themeService'][_0x47f590(0x303)](_0x8f0458[_0x47f590(0x36c)]),_0x40439f['set'](_0x2787de,_0x58414f);}}),{'skeleton':_0x43b945,'cursors':_0x40439f};}));}return _0x22b5a0['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x35a663,cursors:_0x3ec5f2})=>{const _0x576b24=_0x23e6eb;this[_0x576b24(0x260)](),_0x35a663&&this[_0x576b24(0x2f4)](_0x35a663,_0x3ec5f2);}),this['_sheetSkeletonManagerService'][_0x23e6eb(0x3c2)][_0x23e6eb(0x3aa)](_0xd9fd4a=>{const _0x50b473=_0x23e6eb;if(_0xd9fd4a==null)return;const {skeleton:_0x945750}=_0xd9fd4a,{scene:_0x49591d}=this[_0x50b473(0x278)];_0x49591d[_0x50b473(0x328)][_0x50b473(0x3cd)](_0x43aff6['debounce'](_0x24178f=>{const _0xbcdd43=_0x50b473;var _0x107549,_0x38ff1d;const {offsetX:_0x58ca29,offsetY:_0x3e384b}=_0x24178f,{x:_0x35295d,y:_0x6644d6}=_0x49591d[_0xbcdd43(0x1ef)](_0x359b8a[_0xbcdd43(0x211)][_0xbcdd43(0x3a8)]([_0x58ca29,_0x3e384b])),{scaleX:_0x40b735,scaleY:_0x138823}=_0x49591d[_0xbcdd43(0x40f)](),_0x3e5dfd=_0x49591d['getViewport'](_0x359b8a[_0xbcdd43(0x34b)][_0xbcdd43(0x306)]),_0x868d65=_0x49591d[_0xbcdd43(0x1de)](_0x359b8a[_0xbcdd43(0x211)]['FromArray']([_0x35295d,_0x6644d6]),_0x3e5dfd),_0x5ba93e=_0x945750[_0xbcdd43(0x37a)](_0x58ca29,_0x3e384b,_0x40b735,_0x138823,_0x868d65);((_0x107549=this['_lastPointer'])==null?void 0x0:_0x107549[_0xbcdd43(0x212)])===_0x5ba93e['column']&&((_0x38ff1d=this['_lastPointer'])==null?void 0x0:_0x38ff1d['row'])===_0x5ba93e[_0xbcdd43(0x2b2)]||this[_0xbcdd43(0x35d)]['forEach'](_0x5ae042=>{const _0xb50459=_0xbcdd43;_0x5ae042[_0xb50459(0x41f)](_0x5ba93e);});},0x64));});}[_0x9c28c2(0x2f4)](_0x32fc9e,_0x1cccd3){const _0x2bce80=_0x9c28c2;var _0x417c2b;const _0xa48ffd=(_0x417c2b=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x417c2b[_0x2bce80(0x26a)];if(!_0xa48ffd)return;const _0x332167=this[_0x2bce80(0x348)]();if(!_0x332167)return;this['_cursors']['forEach'](_0x32f81f=>{const _0x176509=_0x2bce80;_0x32f81f[_0x176509(0x3f2)]();});const {scene:_0x2ef5bd}=_0x332167,_0x43e93e=_0x5517c9(Array[_0x2bce80(0x2b1)](_0x1cccd3[_0x2bce80(0x1dc)]()))[_0x2bce80(0x239)](_0x204617=>{const _0x38655a=_0x2bce80,{color:_0x30a7b7,range:_0x2e5ed1,name:_0x3cd542,selection:_0x22fecb,sheetID:_0x57d00b}=_0x204617,{startColumn:_0x1d3b3a,startRow:_0xd286fa,endColumn:_0x23c8f4,endRow:_0x498ee3}=_0x2e5ed1,_0x3af797=_0x2fd874['getCoordByCell'](_0xd286fa,_0x1d3b3a,_0x2ef5bd,_0xa48ffd),_0x284b8f=_0x2fd874[_0x38655a(0x41a)](_0x498ee3,_0x23c8f4,_0x2ef5bd,_0xa48ffd),{columnHeaderHeightAndMarginTop:_0x7b9ae6}=_0xa48ffd,{startX:_0x2518b6,startY:_0x5691bf}=_0x3af797,{endX:_0x4334b9,endY:_0x4e302f}=_0x284b8f,_0x583179=_0x4334b9-_0x2518b6,_0x174826=_0x4e302f-_0x5691bf,_0x5d0f70={'labelPosition':_0x5691bf-_0x7b9ae6>=_0x3d30e4?_0x38655a(0x3cc):_0x38655a(0x272),'sheetID':_0x57d00b,'range':_0x2e5ed1,'color':_0x30a7b7,'name':_0x3cd542,'selection':_0x22fecb,'left':_0x2518b6,'top':_0x5691bf,'width':_0x583179,'height':_0x174826,'evented':!0x1,'zIndex':_0x5426eb};return new _0x23980c(_0x3cd542,_0x5d0f70);});_0x2ef5bd[_0x2bce80(0x30b)](_0x43e93e,_0x5b5863),this[_0x2bce80(0x35d)]=new Set(_0x43e93e);}['_removeCollabCursors'](){const _0x42c572=_0x9c28c2;var _0x1b72ca;(_0x1b72ca=this[_0x42c572(0x35d)])==null||_0x1b72ca[_0x42c572(0x312)](_0x5d383a=>_0x5d383a['dispose']());}[_0x9c28c2(0x348)](){const _0x1add4a=_0x9c28c2;return _0x2fd874[_0x1add4a(0x327)](this[_0x1add4a(0x278)][_0x1add4a(0x282)],this['_context']);}};_0x4140ee=_0x5910eb([_0x4e94e3(0x1,_0x43aff6[_0x9c28c2(0x21f)](_0x2fd874['SheetSkeletonManagerService'])),_0x4e94e3(0x2,_0x43aff6[_0x9c28c2(0x21f)](_0x5964c5)),_0x4e94e3(0x3,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6[_0x9c28c2(0x1ec)]))],_0x4140ee);function _0x5517c9(_0x1a5052){const _0x1906ef=_0x9c28c2,_0x52b542=new Map();return _0x1a5052[_0x1906ef(0x312)](_0x1b0464=>{const _0x25178a=_0x1906ef;if(_0x52b542['has'](_0x1b0464[_0x25178a(0x28b)])){const _0x340a91=_0x52b542[_0x25178a(0x326)](_0x1b0464['selection']);_0x340a91['name']+=',\x20'+_0x1b0464['name'];}else _0x52b542[_0x25178a(0x289)](_0x1b0464[_0x25178a(0x28b)],_0x1b0464);}),Array[_0x1906ef(0x2b1)](_0x52b542[_0x1906ef(0x1dc)]());}var _0x43804a=function(){const _0x2ecd6a=_0x9c28c2;return _0x43804a=Object['assign']||function(_0x16f24a){const _0x1ce47d=_0x2330;for(var _0x4f823e,_0x295673=0x1,_0x1957cf=arguments[_0x1ce47d(0x27b)];_0x295673<_0x1957cf;_0x295673++){_0x4f823e=arguments[_0x295673];for(var _0x4ffdb3 in _0x4f823e)Object[_0x1ce47d(0x41b)][_0x1ce47d(0x1ea)][_0x1ce47d(0x33d)](_0x4f823e,_0x4ffdb3)&&(_0x16f24a[_0x4ffdb3]=_0x4f823e[_0x4ffdb3]);}return _0x16f24a;},_0x43804a[_0x2ecd6a(0x40c)](this,arguments);},_0x7e159=function(_0x385608,_0x11454f){const _0x4c1aa3=_0x9c28c2;var _0x212976={};for(var _0xf1cba3 in _0x385608)Object[_0x4c1aa3(0x41b)][_0x4c1aa3(0x1ea)][_0x4c1aa3(0x33d)](_0x385608,_0xf1cba3)&&_0x11454f['indexOf'](_0xf1cba3)<0x0&&(_0x212976[_0xf1cba3]=_0x385608[_0xf1cba3]);if(_0x385608!=null&&typeof Object[_0x4c1aa3(0x26d)]==_0x4c1aa3(0x380)){for(var _0x13e485=0x0,_0xf1cba3=Object[_0x4c1aa3(0x26d)](_0x385608);_0x13e485<_0xf1cba3[_0x4c1aa3(0x27b)];_0x13e485++)_0x11454f[_0x4c1aa3(0x261)](_0xf1cba3[_0x13e485])<0x0&&Object[_0x4c1aa3(0x41b)][_0x4c1aa3(0x310)][_0x4c1aa3(0x33d)](_0x385608,_0xf1cba3[_0x13e485])&&(_0x212976[_0xf1cba3[_0x13e485]]=_0x385608[_0xf1cba3[_0x13e485]]);}return _0x212976;},_0x45e5d4=_0x3f9355[_0x9c28c2(0x20f)](function(_0x781012,_0x4f61a5){const _0x3eb1b8=_0x9c28c2;var _0x4226ad=_0x781012[_0x3eb1b8(0x1f8)],_0xbee2bd=_0x781012['id'],_0x1d5dc2=_0x781012[_0x3eb1b8(0x223)],_0x30a098=_0x781012[_0x3eb1b8(0x2e4)],_0x1c31fd=_0x7e159(_0x781012,[_0x3eb1b8(0x1f8),'id',_0x3eb1b8(0x223),_0x3eb1b8(0x2e4)]),_0x2d2c9d='univerjs-icon\x20univerjs-icon-'[_0x3eb1b8(0x34f)](_0xbee2bd,'\x20')['concat'](_0x1d5dc2||'')[_0x3eb1b8(0x29a)](),_0x575498=_0x3f9355[_0x3eb1b8(0x1b3)]('_'[_0x3eb1b8(0x34f)](_0x316386()));return _0xe1d57d(_0x4226ad,''['concat'](_0xbee2bd),{'defIds':_0x4226ad[_0x3eb1b8(0x3ab)],'idSuffix':_0x575498['current']},_0x43804a({'ref':_0x4f61a5,'className':_0x2d2c9d},_0x1c31fd),_0x30a098);});function _0xe1d57d(_0xec417,_0x1a8488,_0x5ddc6a,_0x1e739f,_0x499825){const _0x1d78c5=_0x9c28c2;return _0x3f9355[_0x1d78c5(0x227)](_0xec417[_0x1d78c5(0x1f2)],_0x43804a(_0x43804a({'key':_0x1a8488},_0x2d38c9(_0xec417,_0x5ddc6a,_0x499825)),_0x1e739f),(_0x447858(_0xec417,_0x5ddc6a)[_0x1d78c5(0x3af)]||[])[_0x1d78c5(0x239)](function(_0x3ed18d,_0x12d10b){const _0x26984a=_0x1d78c5;return _0xe1d57d(_0x3ed18d,''[_0x26984a(0x34f)](_0x1a8488,'-')[_0x26984a(0x34f)](_0xec417[_0x26984a(0x1f2)],'-')[_0x26984a(0x34f)](_0x12d10b),_0x5ddc6a,void 0x0,_0x499825);}));}function _0x2d38c9(_0x5c25a4,_0x4209e1,_0x1370e7){const _0x2babc9=_0x9c28c2;var _0x3b0e4a=_0x43804a({},_0x5c25a4[_0x2babc9(0x204)]);_0x1370e7!=null&&_0x1370e7[_0x2babc9(0x237)]&&_0x3b0e4a[_0x2babc9(0x27d)]===_0x2babc9(0x237)&&(_0x3b0e4a[_0x2babc9(0x27d)]=_0x1370e7[_0x2babc9(0x237)]),_0x5c25a4[_0x2babc9(0x1f2)]===_0x2babc9(0x322)&&_0x3b0e4a['id']&&(_0x3b0e4a['id']=_0x3b0e4a['id']+_0x4209e1['idSuffix']),Object[_0x2babc9(0x299)](_0x3b0e4a)[_0x2babc9(0x312)](function(_0x2a7827){const _0x5c4ce0=_0x2babc9;var _0x25259e=_0x2a7827[0x0],_0x33af65=_0x2a7827[0x1];_0x25259e===_0x5c4ce0(0x322)&&typeof _0x33af65==_0x5c4ce0(0x3c6)&&(_0x3b0e4a[_0x25259e]=_0x33af65['replace'](/url\(#(.*)\)/,_0x5c4ce0(0x201)[_0x5c4ce0(0x34f)](_0x4209e1[_0x5c4ce0(0x283)],')')));});var _0x16de9=_0x4209e1[_0x2babc9(0x3ab)];return!_0x16de9||_0x16de9['length']===0x0||(_0x5c25a4[_0x2babc9(0x1f2)]===_0x2babc9(0x2a2)&&_0x3b0e4a[_0x2babc9(0x2c5)]&&(_0x3b0e4a['xlink:href']=_0x3b0e4a[_0x2babc9(0x2c5)]+_0x4209e1[_0x2babc9(0x283)]),Object[_0x2babc9(0x299)](_0x3b0e4a)[_0x2babc9(0x312)](function(_0x13715b){const _0x42440b=_0x2babc9;var _0x14f4d1=_0x13715b[0x0],_0x30a4fd=_0x13715b[0x1];typeof _0x30a4fd==_0x42440b(0x3c6)&&(_0x3b0e4a[_0x14f4d1]=_0x30a4fd['replace'](/url\(#(.*)\)/,_0x42440b(0x201)[_0x42440b(0x34f)](_0x4209e1[_0x42440b(0x283)],')')));})),_0x3b0e4a;}function _0x447858(_0x3da66d,_0x2442bf){const _0x575bbd=_0x9c28c2;var _0x301f9d,_0x4ca534=_0x2442bf[_0x575bbd(0x3ab)];return!_0x4ca534||_0x4ca534[_0x575bbd(0x27b)]===0x0?_0x3da66d:_0x3da66d[_0x575bbd(0x1f2)]==='defs'&&(!((_0x301f9d=_0x3da66d[_0x575bbd(0x3af)])===null||_0x301f9d===void 0x0)&&_0x301f9d[_0x575bbd(0x27b)])?_0x43804a(_0x43804a({},_0x3da66d),{'children':_0x3da66d[_0x575bbd(0x3af)]['map'](function(_0x3d895c){const _0x46f6d3=_0x575bbd;return typeof _0x3d895c[_0x46f6d3(0x204)]['id']=='string'&&_0x4ca534&&_0x4ca534[_0x46f6d3(0x3fe)](_0x3d895c[_0x46f6d3(0x204)]['id'])?_0x43804a(_0x43804a({},_0x3d895c),{'attrs':_0x43804a(_0x43804a({},_0x3d895c[_0x46f6d3(0x204)]),{'id':_0x3d895c['attrs']['id']+_0x2442bf[_0x46f6d3(0x283)]})}):_0x3d895c;})}):_0x3da66d;}function _0x316386(){const _0x11a7c5=_0x9c28c2;return Math[_0x11a7c5(0x213)]()[_0x11a7c5(0x31b)](0x24)['substring'](0x2,0x8);}_0x45e5d4[_0x9c28c2(0x26e)]='UniverIcon';var _0x4c056a={'tag':_0x9c28c2(0x22a),'attrs':{'xmlns':_0x9c28c2(0x2a8),'fill':_0x9c28c2(0x1e7),'viewBox':_0x9c28c2(0x28f),'width':'1em','height':_0x9c28c2(0x3ad)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x9c28c2(0x1e6),'attrs':{'stroke':_0x9c28c2(0x363),'d':_0x9c28c2(0x30e),'strokeLinecap':_0x9c28c2(0x2e3),'strokeLinejoin':_0x9c28c2(0x2e3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x9c28c2(0x296),'attrs':{'id':_0x9c28c2(0x220)},'children':[{'tag':_0x9c28c2(0x1e6),'attrs':{'fill':'white','d':_0x9c28c2(0x32b)}}]}]}],'defIds':[_0x9c28c2(0x220)]},_0x40925d=_0x3f9355[_0x9c28c2(0x20f)](function(_0x1a3704,_0x5c9795){const _0x539790=_0x9c28c2;return _0x3f9355[_0x539790(0x227)](_0x45e5d4,Object[_0x539790(0x2fc)]({},_0x1a3704,{'id':_0x539790(0x28e),'ref':_0x5c9795,'icon':_0x4c056a}));});_0x40925d['displayName']=_0x9c28c2(0x1e9);var _0x31a807={'tag':_0x9c28c2(0x22a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x9c28c2(0x3ad),'height':_0x9c28c2(0x3ad)},'children':[{'tag':'g','attrs':{'clipPath':_0x9c28c2(0x356)},'children':[{'tag':'path','attrs':{'stroke':_0x9c28c2(0x363),'d':_0x9c28c2(0x317),'strokeLinecap':_0x9c28c2(0x2e3),'strokeLinejoin':_0x9c28c2(0x2e3),'strokeWidth':1.2}}]},{'tag':_0x9c28c2(0x41e),'attrs':{},'children':[{'tag':_0x9c28c2(0x296),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x9c28c2(0x1e6),'attrs':{'fill':_0x9c28c2(0x1aa),'d':_0x9c28c2(0x32b),'transform':_0x9c28c2(0x1f3)}}]}]}],'defIds':[_0x9c28c2(0x21b)]},_0x281cd1=_0x3f9355[_0x9c28c2(0x20f)](function(_0x5d12c3,_0x10951b){const _0x19ebd1=_0x9c28c2;return _0x3f9355['createElement'](_0x45e5d4,Object['assign']({},_0x5d12c3,{'id':_0x19ebd1(0x43a),'ref':_0x10951b,'icon':_0x31a807}));});_0x281cd1[_0x9c28c2(0x26e)]=_0x9c28c2(0x270);function _0x583807(_0x3f6c12){const _0x3cd9c1=_0x9c28c2;switch(_0x3f6c12){case _0x3c1823[_0x3cd9c1(0x229)][_0x3cd9c1(0x22f)]:return'collabStatus.offline';case _0x3c1823[_0x3cd9c1(0x229)][_0x3cd9c1(0x2a0)]:return _0x3cd9c1(0x200);case _0x3c1823[_0x3cd9c1(0x229)]['FETCH_MISS']:return'collabStatus.fetchMiss';case _0x3c1823[_0x3cd9c1(0x229)][_0x3cd9c1(0x2ba)]:return _0x3cd9c1(0x232);case _0x3c1823[_0x3cd9c1(0x229)][_0x3cd9c1(0x30f)]:case _0x3c1823[_0x3cd9c1(0x229)]['AWAITING_WITH_PENDING']:return _0x3cd9c1(0x1d0);case _0x3c1823[_0x3cd9c1(0x229)][_0x3cd9c1(0x338)]:case _0x3c1823['CollaborationStatus'][_0x3cd9c1(0x2c6)]:return'collabStatus.synced';}}function _0x2a41e7(_0x1d4889){const _0x5a0933=_0x9c28c2,{status$:_0x12b39a}=_0x1d4889,_0x311231=_0x4c8790[_0x5a0933(0x304)](_0x12b39a,_0x3c1823[_0x5a0933(0x229)][_0x5a0933(0x2ba)]),_0x18e824=_0x4c8790[_0x5a0933(0x2f5)](_0x43aff6[_0x5a0933(0x3dd)]),_0x28707d=_0x4c8790[_0x5a0933(0x2f5)](_0x3c1823[_0x5a0933(0x242)]),_0x1f7c2f=_0x311231!==_0x3c1823['CollaborationStatus'][_0x5a0933(0x22f)],_0x2f2331=_0x18e824['t'](_0x583807(_0x311231)),_0x59dbd6=_0x1f7c2f?_0x4b9546[_0x5a0933(0x1b5)](_0x281cd1,{}):_0x4b9546[_0x5a0933(0x1b5)](_0x40925d,{}),_0x38e99d=_0x3f9355[_0x5a0933(0x408)](()=>{const _0x45f537=_0x5a0933;_0x1f7c2f||_0x28707d[_0x45f537(0x43d)]();},[_0x1f7c2f,_0x28707d]);function _0x2b58d9(){const _0x8153d0=_0x5a0933;return _0x4b9546['jsxs']('div',{'className':_0x8153d0(0x431),'onClick':_0x38e99d,'children':[_0x4b9546[_0x8153d0(0x1b5)]('div',{'className':_0x2cb33e['clsx'](_0x8153d0(0x1bb),{'univer-text-green-500':_0x1f7c2f,'univer-text-red-500':!_0x1f7c2f}),'children':_0x59dbd6}),_0x4b9546['jsx']('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2f2331})]});}return _0x1f7c2f?_0x2b58d9():_0x4b9546[_0x5a0933(0x1b5)](_0x2cb33e[_0x5a0933(0x2db)],{'title':_0x18e824['t'](_0x5a0933(0x37c)),'children':_0x2b58d9()});}var _0x3727f4=Object[_0x9c28c2(0x2fe)],_0x10e439=(_0x498fde,_0xfe3f9f,_0x1b55e9,_0x33564a)=>{const _0x5f3bc3=_0x9c28c2;for(var _0x5d28f2=_0x33564a>0x1?void 0x0:_0x33564a?_0x3727f4(_0xfe3f9f,_0x1b55e9):_0xfe3f9f,_0x4eaee0=_0x498fde[_0x5f3bc3(0x27b)]-0x1,_0x3806da;_0x4eaee0>=0x0;_0x4eaee0--)(_0x3806da=_0x498fde[_0x4eaee0])&&(_0x5d28f2=_0x3806da(_0x5d28f2)||_0x5d28f2);return _0x5d28f2;},_0x25118b=(_0x558355,_0x119948)=>(_0x432620,_0x4d70bf)=>_0x119948(_0x432620,_0x4d70bf,_0x558355);_0x46a004['DesktopCollaborationStatusDisplayController']=class extends _0x43aff6[_0x9c28c2(0x253)]{constructor(_0xb3cf91,_0x17f45d,_0xc6fb63,_0x45f344){const _0x1182bf=_0x9c28c2;super(),_0x433bc1(this,_0x1182bf(0x224),new _0x22b5a0['BehaviorSubject'](_0x3c1823[_0x1182bf(0x229)][_0x1182bf(0x2ba)])),(this[_0x1182bf(0x2b0)]=_0xb3cf91,this[_0x1182bf(0x3a0)]=_0x17f45d,this[_0x1182bf(0x407)]=_0xc6fb63,this['_uiPartsService']=_0x45f344,this[_0x1182bf(0x1bd)](),this['_initStatusListener']());}[_0x9c28c2(0x27c)](){const _0x1097ce=_0x9c28c2;this[_0x1097ce(0x340)](this[_0x1097ce(0x2b0)][_0x1097ce(0x1db)]['pipe'](_0x22b5a0[_0x1097ce(0x1b4)](()=>{const _0x3cb285=_0x1097ce,_0x1e8296=this[_0x3cb285(0x2b0)]['getFocusedUnit']();return _0x1e8296?this['_collaborationController'][_0x3cb285(0x262)](_0x1e8296[_0x3cb285(0x318)]()):_0x22b5a0['of'](null);}),_0x22b5a0[_0x1097ce(0x1b4)](_0x2cea83=>_0x2cea83?_0x2cea83['status$']:_0x22b5a0['of'](_0x3c1823[_0x1097ce(0x229)][_0x1097ce(0x2ba)])))[_0x1097ce(0x3aa)](_0x35ac84=>{this['_status$']['next'](_0x35ac84);}));}[_0x9c28c2(0x1bd)](){const _0x446654=_0x9c28c2;this[_0x446654(0x340)](this[_0x446654(0x247)]['registerComponent'](_0x4c8790[_0x446654(0x404)]['HEADER_MENU'],()=>_0x4c8790[_0x446654(0x3d7)](_0x33c103({'status$':this[_0x446654(0x224)]['asObservable']()}),this[_0x446654(0x3a0)])));}},_0x46a004[_0x9c28c2(0x436)]=_0x10e439([_0x25118b(0x0,_0x43aff6[_0x9c28c2(0x3bb)]),_0x25118b(0x1,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6[_0x9c28c2(0x35c)])),_0x25118b(0x2,_0x43aff6[_0x9c28c2(0x21f)](_0x3c1823[_0x9c28c2(0x295)])),_0x25118b(0x3,_0x4c8790[_0x9c28c2(0x373)])],_0x46a004[_0x9c28c2(0x436)]);function _0x33c103(_0xf02584){const {status$:_0x287889}=_0xf02584;return function(){const _0x45029c=_0x2330;return _0x4b9546[_0x45029c(0x1b5)](_0x2a41e7,{'status$':_0x287889});};}var _0xbffde=Object['getOwnPropertyDescriptor'],_0x30652c=(_0x3e7aa2,_0x264e0e,_0x31bd7d,_0x2be6cd)=>{const _0x46314e=_0x9c28c2;for(var _0x52835e=_0x2be6cd>0x1?void 0x0:_0x2be6cd?_0xbffde(_0x264e0e,_0x31bd7d):_0x264e0e,_0x5a4dae=_0x3e7aa2[_0x46314e(0x27b)]-0x1,_0x2553cc;_0x5a4dae>=0x0;_0x5a4dae--)(_0x2553cc=_0x3e7aa2[_0x5a4dae])&&(_0x52835e=_0x2553cc(_0x52835e)||_0x52835e);return _0x52835e;},_0x1fda57=(_0x451b36,_0x66390e)=>(_0x5778a4,_0x545310)=>_0x66390e(_0x5778a4,_0x545310,_0x451b36);let _0x275ade=class extends _0x43aff6['Disposable']{constructor(_0x3c1105,_0x3886c6,_0xe8ba50,_0x331297,_0x3207bb,_0x4bbd2a){const _0xf79b8a=_0x9c28c2;super(),this['_beforeCloseService']=_0x3c1105,this['_localCacheService']=_0x3886c6,this[_0xf79b8a(0x38a)]=_0xe8ba50,this[_0xf79b8a(0x21c)]=_0x331297,this[_0xf79b8a(0x440)]=_0x3207bb,this[_0xf79b8a(0x3e8)]=_0x4bbd2a,this[_0xf79b8a(0x2dd)](),this[_0xf79b8a(0x1a9)]();}[_0x9c28c2(0x2dd)](){const _0x17a8dd=_0x9c28c2;this[_0x17a8dd(0x340)](this[_0x17a8dd(0x1c9)][_0x17a8dd(0x41c)](()=>{const _0xdc8801=_0x17a8dd;if(this['_localCacheService'][_0xdc8801(0x3f8)][_0xdc8801(0x1b7)])return this[_0xdc8801(0x3e8)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x9c28c2(0x1a9)](){const _0x59ce39=_0x9c28c2;this[_0x59ce39(0x340)](this[_0x59ce39(0x38a)][_0x59ce39(0x249)][_0x59ce39(0x3aa)](_0x588ff9=>{const _0x37f01b=_0x59ce39;_0x588ff9['id']===_0x3c1823[_0x37f01b(0x2ee)][_0x37f01b(0x1d5)]&&this[_0x37f01b(0x21c)][_0x37f01b(0x324)]({'type':_0x2cb33e[_0x37f01b(0x2b5)][_0x37f01b(0x1ce)],'content':this[_0x37f01b(0x3e8)]['t'](_0x37f01b(0x22c))}),_0x588ff9['id']===_0x3c1823[_0x37f01b(0x2ee)]['CLOSE_ROOM']&&this[_0x37f01b(0x21c)][_0x37f01b(0x324)]({'type':_0x2cb33e['MessageType'][_0x37f01b(0x1ce)],'content':this[_0x37f01b(0x3e8)]['t']('collaboration.closeRoom')}),_0x588ff9['id']===_0x3c1823[_0x37f01b(0x2ee)][_0x37f01b(0x2ff)]&&this['_notificationService'][_0x37f01b(0x324)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x37f01b(0x22b)),'type':'error','duration':0x0}),_0x588ff9['id']===_0x3c1823['CollaborationUIEventId'][_0x37f01b(0x2a0)]&&this['_messageService'][_0x37f01b(0x324)]({'type':_0x2cb33e['MessageType'][_0x37f01b(0x291)],'content':this['_localeService']['t'](_0x37f01b(0x394))+'('+_0x588ff9[_0x37f01b(0x2be)]+')'}),_0x588ff9['id']===_0x3c1823[_0x37f01b(0x2ee)][_0x37f01b(0x250)]&&this[_0x37f01b(0x21c)][_0x37f01b(0x324)]({'type':_0x2cb33e['MessageType'][_0x37f01b(0x1ce)],'content':this['_localeService']['t'](_0x588ff9['data']||'')}),_0x588ff9['id']===_0x3c1823[_0x37f01b(0x2ee)][_0x37f01b(0x1ac)]&&this[_0x37f01b(0x21c)][_0x37f01b(0x324)]({'type':_0x2cb33e['MessageType'][_0x37f01b(0x1ce)],'content':this[_0x37f01b(0x3e8)]['t'](_0x37f01b(0x3c7))}),_0x588ff9['id']===_0x3c1823[_0x37f01b(0x2ee)][_0x37f01b(0x36a)]&&this['_messageService'][_0x37f01b(0x324)]({'type':_0x2cb33e[_0x37f01b(0x2b5)][_0x37f01b(0x291)],'content':this[_0x37f01b(0x3e8)]['t'](_0x37f01b(0x3cb))}),_0x588ff9['id']===_0x3c1823[_0x37f01b(0x2ee)][_0x37f01b(0x371)]&&this[_0x37f01b(0x21c)][_0x37f01b(0x324)]({'type':_0x2cb33e[_0x37f01b(0x2b5)][_0x37f01b(0x291)],'content':this[_0x37f01b(0x3e8)]['t'](_0x37f01b(0x243))});}));}};_0x275ade=_0x30652c([_0x1fda57(0x0,_0x4c8790['IBeforeCloseService']),_0x1fda57(0x1,_0x3c1823[_0x9c28c2(0x42e)]),_0x1fda57(0x2,_0x43aff6[_0x9c28c2(0x21f)](_0x3c1823[_0x9c28c2(0x42b)])),_0x1fda57(0x3,_0x4c8790[_0x9c28c2(0x2e7)]),_0x1fda57(0x4,_0x4c8790['INotificationService']),_0x1fda57(0x5,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6['LocaleService']))],_0x275ade);const _0x198fa4=_0x9c28c2(0x435),_0x5b91b5={},_0x151449=_0x43aff6[_0x9c28c2(0x2e0)](_0x9c28c2(0x3a6));var _0x18da72=Object['getOwnPropertyDescriptor'],_0x1c1794=(_0x5a1f6c,_0x261f69,_0x41426b,_0x5a290e)=>{const _0x57a187=_0x9c28c2;for(var _0x554881=_0x5a290e>0x1?void 0x0:_0x5a290e?_0x18da72(_0x261f69,_0x41426b):_0x261f69,_0x3672f3=_0x5a1f6c[_0x57a187(0x27b)]-0x1,_0x5a1547;_0x3672f3>=0x0;_0x3672f3--)(_0x5a1547=_0x5a1f6c[_0x3672f3])&&(_0x554881=_0x5a1547(_0x554881)||_0x554881);return _0x554881;},_0xee547f=(_0x1b0684,_0x31b1f8)=>(_0x1c9a83,_0x40effa)=>_0x31b1f8(_0x1c9a83,_0x40effa,_0x1b0684);_0x46a004[_0x9c28c2(0x2ab)]=class extends _0x43aff6['RxDisposable']{constructor(_0x376ea4,_0x166a72,_0x38361d,_0xc7c0d7,_0x30ef7f){const _0x154201=_0x9c28c2;super(),this[_0x154201(0x2f8)]=_0x376ea4,this['_logService']=_0x166a72,this[_0x154201(0x403)]=_0x38361d,this[_0x154201(0x2cf)]=_0xc7c0d7,_0x30ef7f?_0x30ef7f==null||_0x30ef7f[_0x154201(0x439)]()[_0x154201(0x2a7)](()=>this[_0x154201(0x269)]()):(this[_0x154201(0x20d)]['debug']('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x154201(0x269)]());}async[_0x9c28c2(0x269)](){const _0x57ea30=_0x9c28c2,_0x5359a7=this[_0x57ea30(0x2f8)][_0x57ea30(0x382)](_0x57ea30(0x282)),_0x39b25f=this[_0x57ea30(0x2f8)][_0x57ea30(0x382)](_0x57ea30(0x2f1)),_0x1832c4=this[_0x57ea30(0x2f8)][_0x57ea30(0x382)]('subunit');if(!_0x5359a7||!_0x39b25f){this[_0x57ea30(0x20d)][_0x57ea30(0x24e)](_0x57ea30(0x2f6),_0x57ea30(0x259));return;}const _0x26739a=await this[_0x57ea30(0x2cf)][_0x57ea30(0x290)](_0x5359a7,Number(_0x39b25f),_0x1832c4);_0x26739a&&_0x26739a instanceof _0x43aff6[_0x57ea30(0x43e)]&&this[_0x57ea30(0x2d9)](_0x26739a);}async['_setupSubUnitSync'](_0x349685){const _0x4abad3=_0x9c28c2;await this[_0x4abad3(0x325)](_0x349685),_0x349685[_0x4abad3(0x444)][_0x4abad3(0x353)](_0x22b5a0[_0x4abad3(0x1f4)](this[_0x4abad3(0x36b)]))['subscribe'](_0x1dcd11=>{const _0x15535f=_0x4abad3;_0x1dcd11&&this[_0x15535f(0x27e)](_0x1dcd11);}),this[_0x4abad3(0x2f8)]['urlChange$'][_0x4abad3(0x353)](_0x22b5a0[_0x4abad3(0x1f4)](this[_0x4abad3(0x36b)]))['subscribe'](()=>this[_0x4abad3(0x325)](_0x349685));}['_updateURLWithCurrentState'](_0x3d62bb,_0x290114=!0x1){const _0x23aecd=_0x9c28c2,_0x516bdf=this[_0x23aecd(0x2f8)]['getParam'](_0x23aecd(0x292));_0x3d62bb[_0x23aecd(0x385)]()!==_0x516bdf&&this[_0x23aecd(0x2f8)][_0x23aecd(0x3e6)](_0x23aecd(0x292),_0x3d62bb[_0x23aecd(0x385)](),_0x290114);}async['_updateSubUnitFromURLParams'](_0x4d9674){const _0x3d36e7=_0x9c28c2;var _0x10974;const _0x5104cb=this[_0x3d36e7(0x2f8)][_0x3d36e7(0x382)](_0x3d36e7(0x292));if(!_0x5104cb||!_0x4d9674[_0x3d36e7(0x37f)](_0x5104cb)){const _0x3ed256=_0x4d9674[_0x3d36e7(0x30d)]()[0x0],_0x2860e4=_0x4d9674[_0x3d36e7(0x37f)](_0x3ed256);if(!_0x2860e4)return;this[_0x3d36e7(0x27e)](_0x2860e4,!0x0),await this[_0x3d36e7(0x403)][_0x3d36e7(0x339)](_0x27c450[_0x3d36e7(0x1cd)]['id'],{'unitId':_0x4d9674[_0x3d36e7(0x318)](),'subUnitId':_0x3ed256});return;}((_0x10974=_0x4d9674['getActiveSheet']())==null?void 0x0:_0x10974[_0x3d36e7(0x385)]())!==_0x5104cb&&await this[_0x3d36e7(0x403)][_0x3d36e7(0x339)](_0x27c450[_0x3d36e7(0x1cd)]['id'],{'unitId':_0x4d9674[_0x3d36e7(0x318)](),'subUnitId':_0x5104cb});}},_0x46a004[_0x9c28c2(0x2ab)]=_0x1c1794([_0xee547f(0x0,_0x151449),_0xee547f(0x1,_0x43aff6[_0x9c28c2(0x1df)]),_0xee547f(0x2,_0x43aff6[_0x9c28c2(0x39e)]),_0xee547f(0x3,_0x43aff6['Inject'](_0x3c1823[_0x9c28c2(0x34e)])),_0xee547f(0x4,_0x43aff6[_0x9c28c2(0x29d)](_0x25bb97[_0x9c28c2(0x38b)]))],_0x46a004[_0x9c28c2(0x2ab)]);var _0x1ed656=Object[_0x9c28c2(0x2fe)],_0x465416=(_0x2e652f,_0x38f241,_0x2d56bd,_0x2bc6a8)=>{const _0x301e8b=_0x9c28c2;for(var _0x41dfab=_0x2bc6a8>0x1?void 0x0:_0x2bc6a8?_0x1ed656(_0x38f241,_0x2d56bd):_0x38f241,_0xb7e83c=_0x2e652f[_0x301e8b(0x27b)]-0x1,_0xf3b058;_0xb7e83c>=0x0;_0xb7e83c--)(_0xf3b058=_0x2e652f[_0xb7e83c])&&(_0x41dfab=_0xf3b058(_0x41dfab)||_0x41dfab);return _0x41dfab;},_0x5466bb=(_0x5db760,_0x21eabe)=>(_0x1c67e1,_0x3b0e0b)=>_0x21eabe(_0x1c67e1,_0x3b0e0b,_0x5db760);let _0x47c295=class{constructor(_0x54d47e,_0x3a24dc,_0xc5bb27){const _0x53b189=_0x9c28c2;this['_injector']=_0x54d47e,this[_0x53b189(0x2ca)]=_0x3a24dc,this[_0x53b189(0x3da)]=_0xc5bb27;}[_0x9c28c2(0x235)](_0x3e85f5){const _0x24efac=_0x9c28c2;this[_0x24efac(0x3c4)](_0x3e85f5),this['_transformPreviousActiveRange'](_0x3e85f5);}[_0x9c28c2(0x346)](_0x4fba83){const _0xd8ebf4=_0x9c28c2,{unitID:_0x154c97}=_0x4fba83,_0x39877b=this[_0xd8ebf4(0x3da)][_0xd8ebf4(0x1b6)](_0x154c97)[_0xd8ebf4(0x246)](_0x30015e['DocIMEInputManagerService']),{redoCache:_0x47e65d}=_0x39877b[_0xd8ebf4(0x206)]();if(_0x47e65d['length']===0x0)return _0x4fba83;let _0x498003=_0x43aff6[_0xd8ebf4(0x219)][_0xd8ebf4(0x21d)](_0x4fba83[_0xd8ebf4(0x2eb)][0x0]);for(let _0x28989d=0x0;_0x28989d<_0x47e65d[_0xd8ebf4(0x27b)];_0x28989d++){const _0x14afcb={'id':_0xd8ebf4(0x2e1),'params':{..._0x47e65d[_0x28989d]}},_0x5dcea9=this[_0xd8ebf4(0x2ca)][_0xd8ebf4(0x337)](_0x498003,_0x14afcb,!0x1);if(_0xb9294[_0xd8ebf4(0x3a7)](_0x5dcea9))throw _0x5dcea9[_0xd8ebf4(0x3a5)];_0x498003=_0x5dcea9['m1Prime'];}return{..._0x43aff6[_0xd8ebf4(0x219)][_0xd8ebf4(0x21d)](_0x4fba83),'mutations':[_0x498003]};}['_transformUndoRedoStack'](_0x326f89){const _0x473ad1=_0x9c28c2,{unitID:_0x3f5d0b}=_0x326f89,_0x1a7a31=this[_0x473ad1(0x3da)][_0x473ad1(0x1b6)](_0x3f5d0b)[_0x473ad1(0x246)](_0x30015e[_0x473ad1(0x3ea)]),{undoCache:_0x24df48,redoCache:_0x58d194}=_0x1a7a31['getUndoRedoMutationParamsCache']();if(_0x24df48[_0x473ad1(0x27b)]===0x0||_0x58d194['length']===0x0)return;const _0x5c8eb1=[],_0x3ca545=[];let _0x59d093=_0x43aff6[_0x473ad1(0x219)][_0x473ad1(0x21d)](_0x326f89['mutations'][0x0]),_0xabb958=_0x43aff6[_0x473ad1(0x219)][_0x473ad1(0x21d)](_0x326f89[_0x473ad1(0x2eb)][0x0]);for(let _0x5c3d5b=_0x24df48[_0x473ad1(0x27b)]-0x1;_0x5c3d5b>=0x0;_0x5c3d5b--){const _0x4470c9={'id':'doc.mutation.rich-text-editing','params':{..._0x24df48[_0x5c3d5b]}},_0x1d9bec={'id':_0x473ad1(0x2e1),'params':{..._0x58d194[_0x5c3d5b]}},_0x2ab86c=this[_0x473ad1(0x2ca)][_0x473ad1(0x337)](_0x59d093,_0x4470c9,!0x1),_0x2ada62=this['_transformService'][_0x473ad1(0x337)](_0xabb958,_0x1d9bec,!0x1);if(_0xb9294[_0x473ad1(0x3a7)](_0x2ab86c))throw _0x2ab86c[_0x473ad1(0x3a5)];if(_0xb9294[_0x473ad1(0x3a7)](_0x2ada62))throw _0x2ada62[_0x473ad1(0x3a5)];_0x5c8eb1[_0x473ad1(0x2b6)](_0x2ab86c[_0x473ad1(0x398)][_0x473ad1(0x3a3)]),_0x3ca545[_0x473ad1(0x2b6)](_0x2ada62[_0x473ad1(0x398)][_0x473ad1(0x3a3)]),_0x59d093=_0x2ab86c[_0x473ad1(0x3dc)],_0xabb958=_0x2ada62[_0x473ad1(0x3dc)];}_0x1a7a31[_0x473ad1(0x1e0)]({'undoCache':_0x5c8eb1,'redoCache':_0x3ca545});}[_0x9c28c2(0x417)](_0x29db98){const _0x5f09a0=_0x9c28c2,{unitID:_0x3b12ae}=_0x29db98,_0x416614=this[_0x5f09a0(0x3da)][_0x5f09a0(0x1b6)](_0x3b12ae)[_0x5f09a0(0x246)](_0x30015e[_0x5f09a0(0x3ea)]),_0x3d2020=_0x416614[_0x5f09a0(0x2bd)]();if(_0x3d2020==null)return;const _0x23ee61=[{'id':_0x5f09a0(0x2e1),'params':{'unitId':_0x29db98[_0x5f09a0(0x23d)],'actions':null,'textRanges':[_0x3d2020]}}],_0x552712=this[_0x5f09a0(0x2ca)][_0x5f09a0(0x3a9)](_0x29db98,_0x23ee61);if(!_0xb9294[_0x5f09a0(0x33a)](_0x552712))throw _0x552712['error'];const _0x116ea6=_0x552712[_0x5f09a0(0x398)][0x0][_0x5f09a0(0x3a3)][_0x5f09a0(0x1dd)];Array[_0x5f09a0(0x443)](_0x116ea6)&&_0x116ea6[_0x5f09a0(0x27b)]&&_0x416614['setActiveRange'](_0x116ea6[0x0]);}};_0x47c295=_0x465416([_0x5466bb(0x0,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6['Injector'])),_0x5466bb(0x1,_0xb9294[_0x9c28c2(0x3b5)]),_0x5466bb(0x2,_0x359b8a[_0x9c28c2(0x355)])],_0x47c295);var _0x48ca7e=Object[_0x9c28c2(0x2fe)],_0x78a29f=(_0x52f593,_0x461084,_0x50c579,_0x214e8d)=>{const _0x380172=_0x9c28c2;for(var _0x5f8f59=_0x214e8d>0x1?void 0x0:_0x214e8d?_0x48ca7e(_0x461084,_0x50c579):_0x461084,_0x1c0e7f=_0x52f593[_0x380172(0x27b)]-0x1,_0x130ab9;_0x1c0e7f>=0x0;_0x1c0e7f--)(_0x130ab9=_0x52f593[_0x1c0e7f])&&(_0x5f8f59=_0x130ab9(_0x5f8f59)||_0x5f8f59);return _0x5f8f59;},_0x3a671b=(_0x1cf570,_0xf22c64)=>(_0xe74bc8,_0x5bea15)=>_0xf22c64(_0xe74bc8,_0x5bea15,_0x1cf570);let _0x40659a=class{constructor(_0x17097a,_0x53a009,_0x15cd72){const _0x27487c=_0x9c28c2;this[_0x27487c(0x3a0)]=_0x17097a,this['_transformService']=_0x53a009,this[_0x27487c(0x331)]=_0x15cd72;}['transformStateCache'](_0x441aa2){const _0x3257d7=_0x9c28c2;this[_0x3257d7(0x413)](_0x441aa2);}[_0x9c28c2(0x346)](_0x204a70){const _0x5dfe67=_0x9c28c2,{unitID:_0x2dd86b}=_0x204a70,{collaboration:_0x5ab056}=this['_docStateChangeManagerService']['getStateCache'](_0x2dd86b);if(_0x5ab056[_0x5dfe67(0x27b)]===0x0)return _0x204a70;let _0x18423c=_0x43aff6['Tools'][_0x5dfe67(0x21d)](_0x204a70['mutations'][0x0]);for(let _0x19a1a6=0x0;_0x19a1a6<_0x5ab056[_0x5dfe67(0x27b)];_0x19a1a6++){const _0x5f5006={'id':_0x5dfe67(0x2e1),'params':{'unitId':_0x5ab056[_0x19a1a6][_0x5dfe67(0x357)],..._0x5ab056[_0x19a1a6][_0x5dfe67(0x25b)]}},_0x30c70d=this[_0x5dfe67(0x2ca)][_0x5dfe67(0x337)](_0x18423c,_0x5f5006,!0x1);if(_0xb9294['isTransformMutationFailure'](_0x30c70d))throw _0x30c70d[_0x5dfe67(0x3a5)];_0x18423c=_0x30c70d[_0x5dfe67(0x3dc)];}return{..._0x43aff6[_0x5dfe67(0x219)]['deepClone'](_0x204a70),'mutations':[_0x18423c]};}[_0x9c28c2(0x413)](_0x251086){const _0x1b028b=_0x9c28c2,{unitID:_0x2cc3b4}=_0x251086,{history:_0x379b3a,collaboration:_0x3b4df4}=this[_0x1b028b(0x331)]['getStateCache'](_0x2cc3b4);if(_0x379b3a[_0x1b028b(0x27b)]===0x0&&_0x3b4df4['length']===0x0)return;const _0x239d2f=[],_0xe1913a=[];let _0x3042ae=_0x43aff6[_0x1b028b(0x219)][_0x1b028b(0x21d)](_0x251086[_0x1b028b(0x2eb)][0x0]),_0x535135=_0x43aff6[_0x1b028b(0x219)][_0x1b028b(0x21d)](_0x251086['mutations'][0x0]);for(let _0x1b93de=_0x379b3a[_0x1b028b(0x27b)]-0x1;_0x1b93de>=0x0;_0x1b93de--){const _0x4e0070={'id':_0x1b028b(0x2e1),'params':{'unitId':_0x379b3a[_0x1b93de][_0x1b028b(0x357)],..._0x379b3a[_0x1b93de][_0x1b028b(0x405)]}},_0x1140ab={'id':_0x1b028b(0x2e1),'params':{'unitId':_0x379b3a[_0x1b93de]['unitId'],..._0x379b3a[_0x1b93de][_0x1b028b(0x25b)]}},_0x36222f=this['_transformService'][_0x1b028b(0x337)](_0x3042ae,_0x4e0070,!0x1),_0x320754=this[_0x1b028b(0x2ca)][_0x1b028b(0x337)](_0x535135,_0x1140ab,!0x1);if(_0xb9294['isTransformMutationFailure'](_0x36222f))throw _0x36222f[_0x1b028b(0x3a5)];if(_0xb9294['isTransformMutationFailure'](_0x320754))throw _0x320754[_0x1b028b(0x3a5)];_0x239d2f['unshift']({..._0x379b3a[_0x1b93de],'undoState':_0x36222f[_0x1b028b(0x398)]['params'],'redoState':_0x320754[_0x1b028b(0x398)][_0x1b028b(0x3a3)]}),_0x3042ae=_0x36222f[_0x1b028b(0x3dc)],_0x535135=_0x320754[_0x1b028b(0x3dc)];}_0x3042ae=_0x43aff6[_0x1b028b(0x219)]['deepClone'](_0x251086[_0x1b028b(0x2eb)][0x0]),_0x535135=_0x43aff6[_0x1b028b(0x219)][_0x1b028b(0x21d)](_0x251086[_0x1b028b(0x2eb)][0x0]);for(let _0x5f289d=_0x3b4df4[_0x1b028b(0x27b)]-0x1;_0x5f289d>=0x0;_0x5f289d--){const _0x148680={'id':_0x1b028b(0x2e1),'params':{'unitId':_0x3b4df4[_0x5f289d][_0x1b028b(0x357)],..._0x3b4df4[_0x5f289d][_0x1b028b(0x405)]}},_0x1c2435={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b4df4[_0x5f289d][_0x1b028b(0x357)],..._0x3b4df4[_0x5f289d][_0x1b028b(0x25b)]}},_0xd2785a=this[_0x1b028b(0x2ca)]['transformMutation'](_0x3042ae,_0x148680,!0x1),_0x268500=this[_0x1b028b(0x2ca)][_0x1b028b(0x337)](_0x535135,_0x1c2435,!0x1);if(_0xb9294[_0x1b028b(0x3a7)](_0xd2785a))throw _0xd2785a[_0x1b028b(0x3a5)];if(_0xb9294[_0x1b028b(0x3a7)](_0x268500))throw _0x268500[_0x1b028b(0x3a5)];_0xe1913a[_0x1b028b(0x2b6)]({..._0x3b4df4[_0x5f289d],'undoState':_0xd2785a[_0x1b028b(0x398)][_0x1b028b(0x3a3)],'redoState':_0x268500[_0x1b028b(0x398)]['params']}),_0x3042ae=_0xd2785a[_0x1b028b(0x3dc)],_0x535135=_0x268500[_0x1b028b(0x3dc)];}this[_0x1b028b(0x331)][_0x1b028b(0x3ba)](_0x2cc3b4,{'history':_0x239d2f,'collaboration':_0xe1913a});}};_0x40659a=_0x78a29f([_0x3a671b(0x0,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6[_0x9c28c2(0x35c)])),_0x3a671b(0x1,_0xb9294[_0x9c28c2(0x3b5)]),_0x3a671b(0x2,_0x43aff6['Inject'](_0x30015e[_0x9c28c2(0x3e9)]))],_0x40659a);var _0x44163b=Object['getOwnPropertyDescriptor'],_0x38f0e7=(_0x461d9d,_0x2c3930,_0x414d2a,_0x553df8)=>{const _0x52dbc6=_0x9c28c2;for(var _0x471d90=_0x553df8>0x1?void 0x0:_0x553df8?_0x44163b(_0x2c3930,_0x414d2a):_0x2c3930,_0x10d50f=_0x461d9d[_0x52dbc6(0x27b)]-0x1,_0x6f907f;_0x10d50f>=0x0;_0x10d50f--)(_0x6f907f=_0x461d9d[_0x10d50f])&&(_0x471d90=_0x6f907f(_0x471d90)||_0x471d90);return _0x471d90;},_0x1ccad8=(_0x1eb9a7,_0x406657)=>(_0x15d2a5,_0x1abb2b)=>_0x406657(_0x15d2a5,_0x1abb2b,_0x1eb9a7);let _0x37ec07=class{constructor(_0x1b4246,_0x501f5a){const _0x48440b=_0x9c28c2;this[_0x48440b(0x3a0)]=_0x1b4246,this['_transformService']=_0x501f5a;}[_0x9c28c2(0x1c3)](_0x5e967d){const _0x23c4f6=_0x9c28c2;var _0x5b2427;const _0x35b0fc=this[_0x23c4f6(0x3a0)][_0x23c4f6(0x326)](_0x4cf538[_0x23c4f6(0x2bf)]),_0x383288=(_0x5b2427=_0x35b0fc[_0x23c4f6(0x430)]())!=null?_0x5b2427:[];if(_0x383288[_0x23c4f6(0x27b)]===0x0)return;const _0x3767ef=_0x5e967d[_0x23c4f6(0x23d)],_0x59a2d7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3767ef,'actions':null,'textRanges':_0x383288}}],_0x54d154=this[_0x23c4f6(0x2ca)][_0x23c4f6(0x3a9)](_0x5e967d,_0x59a2d7);if(!_0xb9294['isTransformMutationsWithChangesetSuccess'](_0x54d154))throw _0x54d154['error'];const _0x2e73c9=_0x54d154[_0x23c4f6(0x398)][0x0][_0x23c4f6(0x3a3)][_0x23c4f6(0x1dd)];Array[_0x23c4f6(0x443)](_0x2e73c9)&&_0x2e73c9[_0x23c4f6(0x27b)]&&_0x35b0fc[_0x23c4f6(0x1d6)](_0x2e73c9,{'unitId':_0x3767ef,'subUnitId':_0x3767ef},!0x1);}};_0x37ec07=_0x38f0e7([_0x1ccad8(0x0,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6[_0x9c28c2(0x35c)])),_0x1ccad8(0x1,_0xb9294[_0x9c28c2(0x3b5)])],_0x37ec07);var _0x2c5b9c=Object[_0x9c28c2(0x2fe)],_0x310cfd=(_0x55200e,_0x3ace6c,_0x239720,_0x3c0f33)=>{const _0x5554ed=_0x9c28c2;for(var _0x212c2c=_0x3c0f33>0x1?void 0x0:_0x3c0f33?_0x2c5b9c(_0x3ace6c,_0x239720):_0x3ace6c,_0x25f47e=_0x55200e[_0x5554ed(0x27b)]-0x1,_0x2ee93e;_0x25f47e>=0x0;_0x25f47e--)(_0x2ee93e=_0x55200e[_0x25f47e])&&(_0x212c2c=_0x2ee93e(_0x212c2c)||_0x212c2c);return _0x212c2c;},_0x15c52f=(_0x375c6c,_0x12e62f)=>(_0x532280,_0x4559f0)=>_0x12e62f(_0x532280,_0x4559f0,_0x375c6c);let _0x5bb0bc=class extends _0x43aff6[_0x9c28c2(0x253)]{constructor(_0x405833,_0x47fde7,_0x2e6b01,_0x599a0c,_0x5e3f5e,_0x4d3ce1,_0x22d903,_0x518f9e){const _0x21d81e=_0x9c28c2;super(),_0x433bc1(this,_0x21d81e(0x224),new _0x22b5a0['BehaviorSubject'](_0x3c1823[_0x21d81e(0x229)]['NOT_COLLAB'])),(this[_0x21d81e(0x331)]=_0x405833,this[_0x21d81e(0x407)]=_0x47fde7,this[_0x21d81e(0x202)]=_0x2e6b01,this['_docTransformStateCacheService']=_0x599a0c,this['_docTransformSelectionsService']=_0x5e3f5e,this[_0x21d81e(0x1d3)]=_0x4d3ce1,this[_0x21d81e(0x21c)]=_0x22d903,this[_0x21d81e(0x3e8)]=_0x518f9e,this[_0x21d81e(0x2d1)]());}[_0x9c28c2(0x2d1)](){const _0x5aade0=_0x9c28c2;this[_0x5aade0(0x340)](this[_0x5aade0(0x407)]['entityInit$']['subscribe'](_0x1a6261=>{const _0x4f6ede=_0x5aade0,_0x27966f=this[_0x4f6ede(0x331)][_0x4f6ede(0x3fc)][_0x4f6ede(0x3aa)](_0x4dc825=>{const _0x2c9955=_0x4f6ede;if(_0x4dc825==null)return;const {unitId:_0x3616fe,redoState:_0xfaf040,commandId:_0x399340}=_0x4dc825;if(_0x3616fe!==_0x1a6261['unitID'])return;const _0x5a5cc0={'id':_0x399340,'type':_0x43aff6['CommandType'][_0x2c9955(0x26b)],'params':{'unitId':_0x3616fe,'actions':_0xfaf040['actions'],'textRanges':null}};_0x1a6261['onLocalMutation'](_0x5a5cc0);});if(_0x1a6261[_0x4f6ede(0x340)](_0x27966f),_0x1a6261 instanceof _0x3c1823[_0x4f6ede(0x320)]){const _0x305556={'onTransformIME':_0x144629=>this[_0x4f6ede(0x202)][_0x4f6ede(0x235)](_0x144629),'onTransformState':_0x139c11=>this[_0x4f6ede(0x360)]['transformStateCache'](_0x139c11),'onTransformSelections':_0x32c11d=>this[_0x4f6ede(0x35a)][_0x4f6ede(0x1c3)](_0x32c11d),'onSyncEditingCollabCursor':_0x19f303=>this[_0x4f6ede(0x1d3)][_0x4f6ede(0x3b8)](_0x19f303),'onTransformRemoteChangesetByIMECache':_0x1fdf34=>this['_docTransformIMECacheService'][_0x4f6ede(0x346)](_0x1fdf34),'onTransformRemoteChangesetByStateCache':_0xea283=>this['_docTransformStateCacheService'][_0x4f6ede(0x346)](_0xea283)};_0x1a6261[_0x4f6ede(0x35b)](_0x305556);}}));}};_0x5bb0bc=_0x310cfd([_0x15c52f(0x0,_0x43aff6[_0x9c28c2(0x21f)](_0x30015e['DocStateChangeManagerService'])),_0x15c52f(0x1,_0x43aff6[_0x9c28c2(0x21f)](_0x3c1823[_0x9c28c2(0x295)])),_0x15c52f(0x2,_0x43aff6[_0x9c28c2(0x21f)](_0x47c295)),_0x15c52f(0x3,_0x43aff6[_0x9c28c2(0x21f)](_0x40659a)),_0x15c52f(0x4,_0x43aff6[_0x9c28c2(0x21f)](_0x37ec07)),_0x15c52f(0x5,_0x43aff6[_0x9c28c2(0x21f)](_0x2a43ee)),_0x15c52f(0x6,_0x4c8790[_0x9c28c2(0x2e7)]),_0x15c52f(0x7,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6[_0x9c28c2(0x3dd)]))],_0x5bb0bc);var _0x1a2f85=Object[_0x9c28c2(0x2fe)],_0x3c50f3=(_0x46c5c7,_0x51eb9d,_0x577afe,_0x389180)=>{const _0x496c20=_0x9c28c2;for(var _0xcea6fc=_0x389180>0x1?void 0x0:_0x389180?_0x1a2f85(_0x51eb9d,_0x577afe):_0x51eb9d,_0x5d9dba=_0x46c5c7[_0x496c20(0x27b)]-0x1,_0x193f2a;_0x5d9dba>=0x0;_0x5d9dba--)(_0x193f2a=_0x46c5c7[_0x5d9dba])&&(_0xcea6fc=_0x193f2a(_0xcea6fc)||_0xcea6fc);return _0xcea6fc;},_0x5c7b0b=(_0x1c0b86,_0x431a6b)=>(_0x1e67f2,_0x4340a3)=>_0x431a6b(_0x1e67f2,_0x4340a3,_0x1c0b86);let _0xdf9474=class extends _0x43aff6['Disposable']{constructor(_0x4a3775,_0x472898,_0x4e00fc){const _0x2b733f=_0x9c28c2;super(),_0x433bc1(this,_0x2b733f(0x3ec),new Map()),_0x433bc1(this,_0x2b733f(0x1af),new Map()),_0x433bc1(this,'_disabled',!0x1),(this['_configService']=_0x4a3775,this[_0x2b733f(0x2fd)]=_0x472898,this['_revisionService']=_0x4e00fc);}[_0x9c28c2(0x1e5)](){const _0x8ab0f=_0x9c28c2;this[_0x8ab0f(0x3fb)]=!0x0;}[_0x9c28c2(0x1eb)](){const _0x4ca186=_0x9c28c2;this[_0x4ca186(0x3fb)]=!0x1;}get[_0x9c28c2(0x3f8)](){const _0x47ce88=_0x9c28c2;return this[_0x47ce88(0x1af)];}[_0x9c28c2(0x420)](){const _0x54ba76=_0x9c28c2;this[_0x54ba76(0x2ed)]()['then'](()=>super[_0x54ba76(0x420)]());}async[_0x9c28c2(0x205)](_0x5aa58f){const _0x5e4522=_0x9c28c2;return this['_disabled']?null:this[_0x5e4522(0x2fd)][_0x5e4522(0x2d2)](_0x3c1823[_0x5e4522(0x3d0)](_0x5aa58f));}async[_0x9c28c2(0x399)](_0x330518,_0x517430){const _0x3e6f9b=_0x9c28c2;return!!this[_0x3e6f9b(0x2fd)][_0x3e6f9b(0x379)](_0x330518,_0x517430);}['updateOfflineData'](_0x3f6c42,_0x4e081a,_0x4330ee,_0xf8fa01){const _0x117a89=_0x9c28c2,_0x24374a=this[_0x117a89(0x38f)][_0x117a89(0x2ae)](_0x3f6c42);this['_cachedData'][_0x117a89(0x289)](_0x3f6c42,{'unitID':_0x3f6c42,'type':_0x4e081a,'awaitingChangeset':_0x4330ee,'mutations':_0xf8fa01,'rev':_0x24374a}),this[_0x117a89(0x1af)][_0x117a89(0x2d3)](_0x3f6c42)||this['_scheduleSaving'](_0x3f6c42);}['_scheduleSaving'](_0x18d9da){const _0x5d02b5=_0x9c28c2,_0x1117c8=this[_0x5d02b5(0x27a)]();_0x1117c8===0x0?this['_saveCache'](_0x18d9da):this['_saveTaskMap'][_0x5d02b5(0x289)](_0x18d9da,setTimeout(()=>this[_0x5d02b5(0x3d5)](_0x18d9da),_0x1117c8));}[_0x9c28c2(0x27a)](){const _0x2bb2a9=_0x9c28c2;var _0x1c3650;return(_0x1c3650=this[_0x2bb2a9(0x368)]['getConfig'](_0x3c1823[_0x2bb2a9(0x40d)]))!=null?_0x1c3650:_0x3c1823[_0x2bb2a9(0x400)];}[_0x9c28c2(0x3d5)](_0x75030b){const _0x2ac683=_0x9c28c2,_0x4a3942=this[_0x2ac683(0x1af)][_0x2ac683(0x326)](_0x75030b);return _0x4a3942!==void 0x0&&window[_0x2ac683(0x347)](_0x4a3942),this['_localStorageService'][_0x2ac683(0x379)](_0x3c1823[_0x2ac683(0x3d0)](_0x75030b),this[_0x2ac683(0x3ec)][_0x2ac683(0x326)](_0x75030b))['then'](()=>this[_0x2ac683(0x1af)]['delete'](_0x75030b));}async['exhaustSavingTask'](){const _0x2ee90f=_0x9c28c2,_0xbf3429=[];this[_0x2ee90f(0x1af)][_0x2ee90f(0x312)]((_0x26ba03,_0x33bd19)=>{const _0x3c042a=_0x2ee90f;window['clearTimeout'](_0x26ba03),_0xbf3429['push'](this[_0x3c042a(0x3d5)](_0x33bd19)['then'](()=>{const _0x353c10=_0x3c042a;this[_0x353c10(0x1af)][_0x353c10(0x1ff)](_0x33bd19);}));}),await Promise[_0x2ee90f(0x23c)](_0xbf3429);}};_0xdf9474=_0x3c50f3([_0x5c7b0b(0x0,_0x43aff6[_0x9c28c2(0x34d)]),_0x5c7b0b(0x1,_0x43aff6[_0x9c28c2(0x1ad)]),_0x5c7b0b(0x2,_0x43aff6[_0x9c28c2(0x21f)](_0xb9294['RevisionService']))],_0xdf9474);class _0x42a575 extends _0x43aff6[_0x9c28c2(0x35e)]{constructor(){const _0x2c0299=_0x9c28c2;super(),_0x433bc1(this,_0x2c0299(0x25a)),this[_0x2c0299(0x25a)]=_0x22b5a0[_0x2c0299(0x437)](window,_0x2c0299(0x238))[_0x2c0299(0x353)](_0x22b5a0['takeUntil'](this[_0x2c0299(0x36b)]),_0x22b5a0['shareReplay'](0x1),_0x22b5a0[_0x2c0299(0x425)](void 0x0));}[_0x9c28c2(0x3e6)](_0x3cde0f,_0x5303dd,_0x3e5e3b=!0x1){const _0x1af090=_0x9c28c2,_0x133546=new URL(window[_0x1af090(0x28d)]['href']);_0x133546['searchParams'][_0x1af090(0x289)](_0x3cde0f,_0x5303dd),_0x3e5e3b?window[_0x1af090(0x281)]['replaceState']('','',_0x133546[_0x1af090(0x31b)]()):window[_0x1af090(0x281)][_0x1af090(0x1ee)]('','',_0x133546[_0x1af090(0x31b)]());}[_0x9c28c2(0x3bd)](_0x4c7646,_0x1ff5b0=!0x1){const _0x55830c=_0x9c28c2,_0x5859a0=new URL(window['location'][_0x55830c(0x234)]);_0x5859a0['searchParams']['delete'](_0x4c7646),_0x1ff5b0?window[_0x55830c(0x281)]['replaceState']('','',_0x5859a0[_0x55830c(0x31b)]()):window[_0x55830c(0x281)][_0x55830c(0x1ee)]('','',_0x5859a0[_0x55830c(0x31b)]());}['getParam'](_0x4574b1){const _0x23ca01=_0x9c28c2;var _0x3591c0;return(_0x3591c0=new URL(window[_0x23ca01(0x28d)]['href'])[_0x23ca01(0x367)][_0x23ca01(0x326)](_0x4574b1))!=null?_0x3591c0:void 0x0;}}var _0x514dfa=Object[_0x9c28c2(0x280)],_0x2e251e=Object['getOwnPropertyDescriptor'],_0x177f1f=(_0x29f7e5,_0x11587e,_0x2ddc22)=>_0x11587e in _0x29f7e5?_0x514dfa(_0x29f7e5,_0x11587e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ddc22}):_0x29f7e5[_0x11587e]=_0x2ddc22,_0x3abf7b=(_0x49f188,_0xd189f1,_0xb8a85b,_0x5925e7)=>{for(var _0x590974=_0x5925e7>0x1?void 0x0:_0x5925e7?_0x2e251e(_0xd189f1,_0xb8a85b):_0xd189f1,_0x29ba8a=_0x49f188['length']-0x1,_0x36112c;_0x29ba8a>=0x0;_0x29ba8a--)(_0x36112c=_0x49f188[_0x29ba8a])&&(_0x590974=_0x36112c(_0x590974)||_0x590974);return _0x590974;},_0x1ec30=(_0x34321b,_0x4bc653)=>(_0x106fbf,_0xaf3631)=>_0x4bc653(_0x106fbf,_0xaf3631,_0x34321b),_0x2613c3=(_0x3e7590,_0x5acee3,_0x4d4766)=>_0x177f1f(_0x3e7590,_0x5acee3+'',_0x4d4766);const _0x4c80d8='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x46a004[_0x9c28c2(0x29e)]=class extends _0x43aff6[_0x9c28c2(0x240)]{constructor(_0x49cc1f=_0x5b91b5,_0x501316,_0x111ad8,_0x152ec3){const _0x32c745=_0x9c28c2;super(),this[_0x32c745(0x3cf)]=_0x49cc1f,this[_0x32c745(0x3da)]=_0x501316,this[_0x32c745(0x3a0)]=_0x111ad8,this['_configService']=_0x152ec3;const {..._0xe0b12a}=_0x43aff6['merge']({},_0x5b91b5,this[_0x32c745(0x3cf)]);this[_0x32c745(0x368)][_0x32c745(0x245)](_0x198fa4,_0xe0b12a);}[_0x9c28c2(0x23b)](){const _0x104323=_0x9c28c2;this[_0x104323(0x3b2)](),this[_0x104323(0x393)]();}[_0x9c28c2(0x43c)](){const _0x3ec08f=_0x9c28c2;this[_0x3ec08f(0x24d)]();}[_0x9c28c2(0x3b2)](){const _0x1b210b=_0x9c28c2;var _0x12e05b;const _0x140b0b=[[_0x52fe0d],[_0x37ec07],[_0x47c295],[_0x40659a],[_0x2a43ee],[_0x151449,{'useClass':_0x42a575}],[_0x564362['ISocketService'],{'useClass':_0x564362[_0x1b210b(0x293)]}],[_0x3c1823[_0x1b210b(0x42e)],{'useClass':_0xdf9474}],[_0x46a004[_0x1b210b(0x436)]],[_0x5bb0bc],[_0x275ade],[_0x5964c5],[_0x19dca4],[_0x46a004['CollaborationDataLoaderController']]];_0x43aff6[_0x1b210b(0x374)](this[_0x1b210b(0x3a0)],_0x43aff6[_0x1b210b(0x427)](_0x140b0b,(_0x12e05b=this['_config'])==null?void 0x0:_0x12e05b['override']));}[_0x9c28c2(0x24d)](){const _0x5a55c8=_0x9c28c2;this[_0x5a55c8(0x340)](this['_renderManagerService']['registerRenderModule'](_0x43aff6[_0x5a55c8(0x1fb)][_0x5a55c8(0x1e1)],[_0x38436b])),this[_0x5a55c8(0x340)](this[_0x5a55c8(0x3da)][_0x5a55c8(0x1fc)](_0x43aff6['UniverInstanceType'][_0x5a55c8(0x1ab)],[_0x4140ee]));}['_initDependencies'](){const _0x27500c=_0x9c28c2;_0x43aff6[_0x27500c(0x1c4)](this[_0x27500c(0x3a0)],[[_0x5964c5],[_0x46a004[_0x27500c(0x436)]],[_0x5bb0bc],[_0x275ade],[_0x46a004[_0x27500c(0x2ab)]]]);}},_0x2613c3(_0x46a004['UniverCollaborationClientUIPlugin'],_0x9c28c2(0x1b1),_0x4c80d8),_0x46a004['UniverCollaborationClientUIPlugin']=_0x3abf7b([_0x43aff6['DependentOn'](_0x3c1823[_0x9c28c2(0x1d4)]),_0x1ec30(0x1,_0x359b8a[_0x9c28c2(0x355)]),_0x1ec30(0x2,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6[_0x9c28c2(0x35c)])),_0x1ec30(0x3,_0x43aff6['IConfigService'])],_0x46a004[_0x9c28c2(0x29e)]);var _0x2128cb=Object[_0x9c28c2(0x2fe)],_0x97ea40=(_0x155068,_0x3db8b8,_0x5d3c3d,_0x477e45)=>{for(var _0x22ae6a=_0x477e45>0x1?void 0x0:_0x477e45?_0x2128cb(_0x3db8b8,_0x5d3c3d):_0x3db8b8,_0x3d0ce2=_0x155068['length']-0x1,_0x3142e7;_0x3d0ce2>=0x0;_0x3d0ce2--)(_0x3142e7=_0x155068[_0x3d0ce2])&&(_0x22ae6a=_0x3142e7(_0x22ae6a)||_0x22ae6a);return _0x22ae6a;},_0x4a2e12=(_0x4d3ff9,_0x4095d7)=>(_0x32cf00,_0x3bedd9)=>_0x4095d7(_0x32cf00,_0x3bedd9,_0x4d3ff9);_0x46a004[_0x9c28c2(0x221)]=class extends _0x3c1823[_0x9c28c2(0x388)]{constructor(_0x719a73,_0x4adf8e,_0x45afd0,_0xa6e10d,_0x4e57b7){super(_0x719a73,_0x4adf8e,_0x45afd0,_0xa6e10d,_0x4e57b7);}async[_0x9c28c2(0x3a4)](_0x2322df){const _0x5352e6=_0x9c28c2,_0x3113c7=await this[_0x5352e6(0x3b3)](),_0x5c3697=this['_createSocketURL'](_0x2322df,_0x3113c7);return this[_0x5352e6(0x1c7)](_0x5c3697);}['_createSocketURL'](_0x27acfa,_0x12613f){const _0x36970c=_0x9c28c2,_0x2c559d=typeof window>'u'?new URL(_0x27acfa):new URL(_0x27acfa,window[_0x36970c(0x28d)][_0x36970c(0x1cb)]);_0x2c559d[_0x36970c(0x367)][_0x36970c(0x289)](_0x36970c(0x2c9),_0x12613f);const _0x2b27b0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x36970c(0x1fe)]);return _0x2b27b0[_0x36970c(0x326)](_0x36970c(0x21a))&&_0x2c559d[_0x36970c(0x367)]['set'](_0x36970c(0x21a),_0x2b27b0[_0x36970c(0x326)](_0x36970c(0x21a))),_0x2c559d[_0x36970c(0x31b)]();}async[_0x9c28c2(0x3b3)](){const _0x33ca30=_0x9c28c2;var _0xa091ff,_0xf91e1c,_0x50e8da;const _0x18a7d3=this[_0x33ca30(0x368)][_0x33ca30(0x207)](_0x3c1823[_0x33ca30(0x1bf)]),_0x22e575=(_0xa091ff=_0x18a7d3==null?void 0x0:_0x18a7d3[_0x33ca30(0x30c)])!=null?_0xa091ff:_0x3c1823[_0x33ca30(0x208)];return(_0x50e8da=(_0xf91e1c=(await this[_0x33ca30(0x1f6)][_0x33ca30(0x326)](_0x22e575,{'headers':{'Content-Type':'application/json'}}))[_0x33ca30(0x2ac)])==null?void 0x0:_0xf91e1c[_0x33ca30(0x263)])!=null?_0x50e8da:'';}},_0x46a004[_0x9c28c2(0x221)]=_0x97ea40([_0x4a2e12(0x0,_0x43aff6[_0x9c28c2(0x21f)](_0x43aff6[_0x9c28c2(0x35c)])),_0x4a2e12(0x1,_0x43aff6['Inject'](_0x564362[_0x9c28c2(0x2c1)])),_0x4a2e12(0x2,_0x43aff6[_0x9c28c2(0x34d)]),_0x4a2e12(0x3,_0x43aff6[_0x9c28c2(0x1df)]),_0x4a2e12(0x4,_0xb9294['ISnapshotServerService'])],_0x46a004[_0x9c28c2(0x221)]);const _0x3565c7=0x7530,_0x7fdc67=_0x9c28c2(0x20b);class _0x33936c extends _0x43aff6[_0x9c28c2(0x253)]{constructor(){const _0x7942f3=_0x9c28c2;super(),_0x433bc1(this,_0x7942f3(0x2a3),_0x43aff6['generateRandomId']()),_0x433bc1(this,_0x7942f3(0x1c2),new Set()),_0x433bc1(this,'_unitOnClients',new Map()),_0x433bc1(this,_0x7942f3(0x1da),null),_0x433bc1(this,_0x7942f3(0x416),new Map()),_0x433bc1(this,_0x7942f3(0x2c8),new Map()),this[_0x7942f3(0x269)]();}[_0x9c28c2(0x420)](){const _0x379a2c=_0x9c28c2;super[_0x379a2c(0x420)](),this[_0x379a2c(0x416)][_0x379a2c(0x312)]((_0x15121d,_0xcc44b5)=>this[_0x379a2c(0x31e)](_0xcc44b5)),this['_heartbeatTimer']&&window[_0x379a2c(0x330)](this[_0x379a2c(0x1da)]);}['getUnitStatus$'](_0x26d844){const _0x5c990e=_0x9c28c2;return this[_0x5c990e(0x313)](_0x26d844)['pipe'](_0x22b5a0[_0x5c990e(0x391)]());}[_0x9c28c2(0x3f7)](_0x39a74f){const _0x8ffa16=_0x9c28c2;this[_0x8ffa16(0x1c2)][_0x8ffa16(0x1b7)]===0x0&&this[_0x8ffa16(0x2f9)](),this[_0x8ffa16(0x1c2)][_0x8ffa16(0x2cc)](_0x39a74f),this['_send']({'type':0x0,'memberID':this[_0x8ffa16(0x2a3)],'unitIDs':[_0x39a74f],'isForwarded':!0x1});}[_0x9c28c2(0x38c)](_0x469cea){const _0x5f0c09=_0x9c28c2;this['_selfUnitIDs'][_0x5f0c09(0x1ff)](_0x469cea),this['_selfUnitIDs'][_0x5f0c09(0x1b7)]===0x0&&this['_heartbeatTimer']&&window[_0x5f0c09(0x330)](this[_0x5f0c09(0x1da)]);}['_init'](){const _0x222568=_0x9c28c2;this[_0x222568(0x340)](_0x43aff6['toDisposable'](_0x22b5a0[_0x222568(0x437)](window,_0x222568(0x349))[_0x222568(0x3aa)](_0x134dff=>{const _0x12fed6=_0x222568;if(_0x134dff['key']!==_0x7fdc67||!_0x134dff[_0x12fed6(0x314)])return;const _0x3b802a=JSON[_0x12fed6(0x395)](_0x134dff[_0x12fed6(0x314)]);this[_0x12fed6(0x268)](_0x3b802a);}))),window['addEventListener'](_0x222568(0x3e1),()=>this[_0x222568(0x3e5)]({'type':0x1,'memberID':this[_0x222568(0x2a3)],'unitIDs':Array[_0x222568(0x2b1)](this['_selfUnitIDs'])}));}[_0x9c28c2(0x268)](_0x2a572c){const _0x9ad710=_0x9c28c2;switch(_0x2a572c['type']){case 0x0:this[_0x9ad710(0x25d)](_0x2a572c);break;case 0x1:this[_0x9ad710(0x3fd)](_0x2a572c);break;case 0x2:this[_0x9ad710(0x302)](_0x2a572c);break;}}[_0x9c28c2(0x25d)](_0xb6044a){const _0x1bbd42=_0x9c28c2,{unitIDs:_0x42d0f4,memberID:_0x47d5a5,isForwarded:_0x43300d}=_0xb6044a;_0x42d0f4[_0x1bbd42(0x312)](_0x22a745=>{const _0x23bccc=_0x1bbd42;if(!_0x43300d&&this[_0x23bccc(0x3d2)][_0x23bccc(0x2d3)](_0x22a745)&&this[_0x23bccc(0x313)](_0x22a745)[_0x23bccc(0x254)](_0x3c1823['UnitStatus'][_0x23bccc(0x277)]),!this['_unitOnClients'][_0x23bccc(0x2d3)](_0x22a745)||!this[_0x23bccc(0x3d2)][_0x23bccc(0x326)](_0x22a745)['has'](_0x47d5a5)){const _0x23e519=this[_0x23bccc(0x3d2)]['get'](_0x22a745)||new Set();_0x23e519['add'](_0x47d5a5),this[_0x23bccc(0x3d2)][_0x23bccc(0x289)](_0x22a745,_0x23e519),this[_0x23bccc(0x1fa)](_0x47d5a5);}}),_0x43300d||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x9c28c2(0x1fa)](_0x594f1e){const _0x2d5bda=_0x9c28c2;this[_0x2d5bda(0x31e)](_0x594f1e);const _0x45fcc7=window['setTimeout'](()=>{const _0x46890d=_0x2d5bda;this[_0x46890d(0x3d2)][_0x46890d(0x312)](_0x279039=>{const _0xd0a7f8=_0x46890d;_0x279039[_0xd0a7f8(0x1ff)](_0x594f1e);});},_0x3565c7*0x2);this[_0x2d5bda(0x416)]['set'](_0x594f1e,_0x45fcc7);}[_0x9c28c2(0x31e)](_0xfd43e3){const _0x4ea2e5=_0x9c28c2;if(this[_0x4ea2e5(0x416)][_0x4ea2e5(0x2d3)](_0xfd43e3)){const _0x2d15a7=this[_0x4ea2e5(0x416)][_0x4ea2e5(0x326)](_0xfd43e3);_0x2d15a7&&window[_0x4ea2e5(0x347)](_0x2d15a7),this['_clearOtherTimers'][_0x4ea2e5(0x289)](_0xfd43e3,null);}}[_0x9c28c2(0x3fd)](_0x436cad){const _0x30de6c=_0x9c28c2,{memberID:_0x3f6c77,unitIDs:_0x54255d}=_0x436cad;_0x54255d[_0x30de6c(0x312)](_0x253200=>{const _0x10197b=_0x30de6c;var _0x959cb6;const _0x5450b2=this[_0x10197b(0x3d2)][_0x10197b(0x326)](_0x253200);_0x5450b2&&(_0x5450b2[_0x10197b(0x1ff)](_0x3f6c77),(_0x959cb6=this['_ensureSubject'](_0x253200))==null||_0x959cb6['next'](_0x5450b2['size']===0x0?_0x3c1823[_0x10197b(0x37b)]['NO_OTHER_CLIENTS_EDITING']:_0x3c1823[_0x10197b(0x37b)][_0x10197b(0x277)]));}),this[_0x30de6c(0x31e)](_0x3f6c77);}['_handleHeartbeatEvent'](_0x378014){const _0x2fcbb0=_0x9c28c2;this[_0x2fcbb0(0x1fa)](_0x378014[_0x2fcbb0(0x20c)]);}[_0x9c28c2(0x3e5)](_0xa53fc1){const _0x542ebb=_0x9c28c2;localStorage[_0x542ebb(0x379)](_0x7fdc67,JSON[_0x542ebb(0x344)](_0xa53fc1));}[_0x9c28c2(0x2f9)](){const _0x49dbb4=_0x9c28c2;this['_heartbeatTimer']=window[_0x49dbb4(0x366)](()=>{const _0x43731b=_0x49dbb4;this[_0x43731b(0x3e5)]({'type':0x2,'memberID':this[_0x43731b(0x2a3)]});},_0x3565c7);}[_0x9c28c2(0x313)](_0x2756d8){const _0xedada=_0x9c28c2;return this['_unitStatus'][_0xedada(0x2d3)](_0x2756d8)||this[_0xedada(0x2c8)][_0xedada(0x289)](_0x2756d8,new _0x22b5a0['BehaviorSubject'](_0x3c1823[_0xedada(0x37b)][_0xedada(0x1e4)])),this[_0xedada(0x2c8)][_0xedada(0x326)](_0x2756d8);}}var _0x31f1f8=(_0x38848b=>(_0x38848b[_0x38848b[_0x9c28c2(0x2cb)]=0x0]=_0x9c28c2(0x2cb),_0x38848b[_0x38848b['OK']=0x1]='OK',_0x38848b[_0x38848b[_0x9c28c2(0x251)]=0x2]=_0x9c28c2(0x251),_0x38848b[_0x38848b['PERMISSION_DENIED']=0x3]=_0x9c28c2(0x2ff),_0x38848b[_0x38848b[_0x9c28c2(0x2f7)]=0x4]=_0x9c28c2(0x2f7),_0x38848b[_0x38848b[_0x9c28c2(0x31a)]=0x5]='UNAUTHENTICATED',_0x38848b[_0x38848b[_0x9c28c2(0x1f0)]=0x6]=_0x9c28c2(0x1f0),_0x38848b[_0x38848b[_0x9c28c2(0x36e)]=0x7]=_0x9c28c2(0x36e),_0x38848b[_0x38848b[_0x9c28c2(0x37e)]=0x8]=_0x9c28c2(0x37e),_0x38848b[_0x38848b['COMPLETION_FINISHED']=0x9]=_0x9c28c2(0x2b3),_0x38848b[_0x38848b[_0x9c28c2(0x31c)]=0xa]=_0x9c28c2(0x31c),_0x38848b[_0x38848b['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x9c28c2(0x390),_0x38848b[_0x38848b[_0x9c28c2(0x300)]=0xc]=_0x9c28c2(0x300),_0x38848b[_0x38848b['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x9c28c2(0x305),_0x38848b[_0x38848b[_0x9c28c2(0x3f1)]=0xe]=_0x9c28c2(0x3f1),_0x38848b[_0x38848b[_0x9c28c2(0x287)]=0x1389]=_0x9c28c2(0x287),_0x38848b[_0x38848b[_0x9c28c2(0x31d)]=0x1771]=_0x9c28c2(0x31d),_0x38848b[_0x38848b['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x9c28c2(0x3d8),_0x38848b[_0x38848b[_0x9c28c2(0x22d)]=0x1773]=_0x9c28c2(0x22d),_0x38848b[_0x38848b['APPLY_REJECT']=0x1b59]=_0x9c28c2(0x3de),_0x38848b[_0x38848b[_0x9c28c2(0x3ae)]=0x1b5a]=_0x9c28c2(0x3ae),_0x38848b[_0x38848b['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x38848b[_0x38848b['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x38848b[_0x38848b['APPLY_DUPLICATED']=0x1b5d]=_0x9c28c2(0x1f7),_0x38848b[_0x38848b[_0x9c28c2(0x1ba)]=0x1f41]=_0x9c28c2(0x1ba),_0x38848b[_0x38848b[_0x9c28c2(0x3b1)]=0x2329]=_0x9c28c2(0x3b1),_0x38848b[_0x38848b['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x9c28c2(0x441),_0x38848b[_0x38848b['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x9c28c2(0x311),_0x38848b[_0x38848b[_0x9c28c2(0x3f4)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x38848b[_0x38848b['LICENSE_DISTRO_REJECTED']=0x232d]=_0x9c28c2(0x378),_0x38848b[_0x38848b['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x9c28c2(0x421),_0x38848b[_0x38848b[_0x9c28c2(0x1f5)]=0x2712]=_0x9c28c2(0x1f5),_0x38848b[_0x38848b[_0x9c28c2(0x225)]=0x2713]=_0x9c28c2(0x225),_0x38848b[_0x38848b[_0x9c28c2(0x1c5)]=0x2714]=_0x9c28c2(0x1c5),_0x38848b[_0x38848b[_0x9c28c2(0x1d7)]=0x271a]=_0x9c28c2(0x1d7),_0x38848b[_0x38848b[_0x9c28c2(0x392)]=0x271b]=_0x9c28c2(0x392),_0x38848b[_0x38848b['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x9c28c2(0x3ac),_0x38848b[_0x38848b['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x9c28c2(0x214),_0x38848b[_0x38848b['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x9c28c2(0x3c5),_0x38848b[_0x38848b['YUUMI_AI_RUN_FAILED']=0x271f]=_0x9c28c2(0x43b),_0x38848b[_0x38848b[_0x9c28c2(0x401)]=0x2720]=_0x9c28c2(0x401),_0x38848b[_0x38848b['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x9c28c2(0x241),_0x38848b[_0x38848b[_0x9c28c2(0x233)]=0x2ee1]=_0x9c28c2(0x233),_0x38848b[_0x38848b[_0x9c28c2(0x2a5)]=0x2ee2]=_0x9c28c2(0x2a5),_0x38848b[_0x38848b[_0x9c28c2(0x33c)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x38848b[_0x38848b['USER_NOT_INVITED_CODE']=0x2ee4]=_0x9c28c2(0x23f),_0x38848b[_0x38848b[_0x9c28c2(0x2e2)]=0x2ee5]=_0x9c28c2(0x2e2),_0x38848b[_0x38848b[_0x9c28c2(0x248)]=0x32c9]=_0x9c28c2(0x248),_0x38848b[_0x38848b[_0x9c28c2(0x1e3)]=0x32ca]=_0x9c28c2(0x1e3),_0x38848b[_0x38848b['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x9c28c2(0x3d9),_0x38848b[_0x38848b[_0x9c28c2(0x258)]=-0x1]=_0x9c28c2(0x258),_0x38848b))(_0x31f1f8||{}),_0x5da0a6=Object[_0x9c28c2(0x2fe)],_0x57c726=(_0x478f0e,_0x1280d3,_0x178523,_0x45186e)=>{const _0x55fca6=_0x9c28c2;for(var _0x3d8194=_0x45186e>0x1?void 0x0:_0x45186e?_0x5da0a6(_0x1280d3,_0x178523):_0x1280d3,_0x1dd8f4=_0x478f0e[_0x55fca6(0x27b)]-0x1,_0x2ed222;_0x1dd8f4>=0x0;_0x1dd8f4--)(_0x2ed222=_0x478f0e[_0x1dd8f4])&&(_0x3d8194=_0x2ed222(_0x3d8194)||_0x3d8194);return _0x3d8194;},_0x160055=(_0x2db48e,_0x38afe9)=>(_0x2d0016,_0x4b37ad)=>_0x38afe9(_0x2d0016,_0x4b37ad,_0x2db48e);_0x46a004[_0x9c28c2(0x265)]=class extends _0x43aff6[_0x9c28c2(0x253)]{constructor(_0x163b3c,_0x1c45c5,_0x1e3e36){const _0x4cf1f6=_0x9c28c2;super(),this[_0x4cf1f6(0x419)]=_0x163b3c,this[_0x4cf1f6(0x1f6)]=_0x1c45c5,this[_0x4cf1f6(0x368)]=_0x1e3e36;}async[_0x9c28c2(0x26c)](_0x2041be,_0x209a39,_0x3cc5c9,..._0x19faaa){const _0xd2f294=_0x9c28c2;var _0xe94240,_0x41ce5e,_0x190352,_0x29b617;const _0x2d1d8d=this[_0xd2f294(0x419)]['getFocusedUnit']();if(!_0x2d1d8d)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x7d5e37=((_0xe94240=this[_0xd2f294(0x368)][_0xd2f294(0x207)](_0x3c1823[_0xd2f294(0x29f)]))!=null?_0xe94240:_0x3c1823[_0xd2f294(0x3b0)])+'/'+_0x2041be+_0xd2f294(0x32a)+_0x209a39,_0x250a89=new URL(window[_0xd2f294(0x28d)][_0xd2f294(0x234)]),_0xb50802={'scriptId':_0x2041be,'runId':(_0x41ce5e=_0x250a89['searchParams'][_0xd2f294(0x326)](_0xd2f294(0x21a)))!=null?_0x41ce5e:'','function':_0x209a39,'unitId':_0x2d1d8d[_0xd2f294(0x318)](),'argsOfFunction':JSON[_0xd2f294(0x344)](_0x19faaa),'invokeId':(_0x190352=_0x3cc5c9['invokeId'])!=null?_0x190352:'','executionId':(_0x29b617=_0x3cc5c9['executionId'])!=null?_0x29b617:''};try{const _0xccca99=await this['_httpService'][_0xd2f294(0x267)](_0x7d5e37,{'body':_0xb50802});return _0xccca99[_0xd2f294(0x2ac)][_0xd2f294(0x3a5)]&&_0xccca99[_0xd2f294(0x2ac)]['error']['code']!==_0x31f1f8['OK']?_0xd2f294(0x236):_0xccca99[_0xd2f294(0x2ac)][_0xd2f294(0x39d)];}catch{return _0xd2f294(0x236);}}},_0x46a004[_0x9c28c2(0x265)]=_0x57c726([_0x160055(0x0,_0x43aff6[_0x9c28c2(0x3bb)]),_0x160055(0x1,_0x43aff6[_0x9c28c2(0x21f)](_0x564362[_0x9c28c2(0x2c1)])),_0x160055(0x2,_0x43aff6[_0x9c28c2(0x34d)])],_0x46a004['RemoteUniscriptService']),_0x46a004[_0x9c28c2(0x412)]=_0x2a41e7,_0x46a004[_0x9c28c2(0x222)]=_0x151449,_0x46a004[_0x9c28c2(0x364)]=_0x23980c,_0x46a004[_0x9c28c2(0x1f9)]=_0x33936c,_0x46a004['WebURLService']=_0x42a575,Object[_0x9c28c2(0x280)](_0x46a004,Symbol[_0x9c28c2(0x442)],{'value':_0x9c28c2(0x426)});}));function _0xd233(){const _0x5bc989=['concat','fillStyle','UniverNetwork','COLORS','pipe','getActiveSheet','IRenderManagerService','url(#on-line-icon_clip0_910_349)','unitId','_startDocCollabCursor','send','_docTransformSelectionsService','addHandlerCallback','Injector','_cursors','RxDisposable','eventID','_docTransformStateCacheService','UniverRpc','react','currentColor','SheetCollabCursorShape','exports','setInterval','searchParams','_configService','filter','SOCKET_FAILED','dispose$','color','_shapes','INVALID_ARGUMENT','_color','isActive','SUBMIT_CHANGESET_TIMEOUT','_updateLocalCursor','IUIPartsService','registerDependencies','_onCursorDelete','findNodePositionByCharIndex','61717iXwFLy','LICENSE_DISTRO_REJECTED','setItem','getCellPositionByOffset','UnitStatus','collab-client.tooltip.reconnect','_range','TOO_MANY_REQUESTS','getSheetBySheetId','function','serializeRangeWithSheet','getParam','drawWith','Shape','getSheetId','SessionStatus','getCurrentUnitForType','CollaborationSocketService','_drawAnchor','_collaborationUIEventService','IRemoteInstanceService','disposeUnit','_initCommandExecutedListener','_colorIndex','_revisionService','MOBILE_VERIFY_CODE_MISMATCH','distinctUntilChanged','YUUMI_ASYNCIO_CANCELLED','_initDependencies','collaboration.closeRoom','parse','max','761174vwrdHi','m2Prime','saveOfflineData','measureText','_anchorDot','text','result','ICommandService','black','_injector','_syncEditingCollabCursorService','@univerjs/sheets','params','createSocket','error','uni.network.url-service','isTransformMutationFailure','FromArray','transformMutationsWithChangeset','subscribe','defIds','YUUMI_TABLE_NOT_FOUND_IN_UNIT','1em','APPLY_NON_SEQUENTIAL_REVISION','children','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LICENSE_MAX_UNITS_EXCEEDED','_registerDependencies','_getSessionTicket','_initResize','ITransformService','UniverDocs','yellow.400','syncEditingCollabCursor','SetSelectionsOperation','setStateCache','IUniverInstanceService','DeleteRangeMoveLeftCommandId','removeParam','_imageIoService','cursorInfo','_draw','debounce','currentSkeleton$','_backgroundColor','_transformUndoRedoStack','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','string','session.will-retry','hovered','handleIRemoveCol','InsertColCommandId','session.connection-failed','top','subscribeEvent','1302462KcBYBM','_config','getLocalCacheKey','_refRangeService','_unitOnClients','sessionStatus$','roomMembers','_saveCache','@univerjs/engine-formula','connectInjector','SNAPSHOT_HAS_BEEN_REMOVED','EMAIL_HAS_BEEN_BOUND','_renderManagerService','_render','m1Prime','LocaleService','APPLY_REJECT','unsubscribe','contains','unload','InsertRowCommandId','UniverSheets','onPointerLeave$','_send','setParam','_anchor','_localeService','DocStateChangeManagerService','DocIMEInputManagerService','3984463pOfCOz','_cachedData','getColor','UniverDesign','onPointerEnter$','ranges','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','makeDirty','onTransformChange$','LICENSE_EXPORT_SIZE_EXCEEDED','width','getCollabCursors$','editingUnit','saveTaskMap','CollaborationEvent','_memberService','_disabled','docStateChange$','_handleLeaveEvent','includes','split','LOCAL_CACHE_INTERVAL','YUUMI_CONNECTOR_URL_NOT_FOUND','_entities','_commandService','BuiltInUIPart','undoState','beginPath','_collaborationController','useCallback','@univerjs/engine-render','RefRangeService','@univerjs-pro/collaboration','apply','LOCAL_CACHE_INTERVAL_KEY','currentTheme$','getAncestorScale','_roomMembers$','InsertRangeMoveDownCommandId','CollaborationStatusDisplay','_transformHistoryAndStateStack','SetDocZoomRatioOperation','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_clearOtherTimers','_transformPreviousActiveRange','transformByState','_instanceService','getCoordByCell','prototype','registerBeforeClose','subUnitId','defs','onMouseMove','dispose','YUUMI_UNABLE_LOAD_URL','8fOANbm','setAlpha','_getAnchorBounding','mapTo','Module','mergeOverrideWithDependencies','_collabCursorState$','getTypeOfUnitAdded$','_themeService','CollaborationUIEventService','_sheetSkeletonManagerService','RECT','ILocalCacheService','cursorInfo$','getDocRanges','univer-flex\x20univer-items-center','_docSkeletonManagerService','throttleTime','@univerjs/docs','collaboration-client-ui.config','DesktopCollaborationStatusDisplayController','fromEvent','collab-text-anchor-','whenReady','on-line-icon','YUUMI_AI_RUN_FAILED','onRendered','reconnect','Workbook','DeleteRangeMoveUpCommandId','_notificationService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','toStringTag','isArray','activeSheet$','registerRefRange','_initEvent','white','UNIVER_SHEET','SOCKET_FAILED_RETRY','ILocalStorageService','assignAColorForMemberID','_saveTaskMap','object','pluginName','_assignedColors','useRef','switchMap','jsx','getRenderById','size','getOffsetConfig','_lastPointer','CONNECTOR_DATA_TOO_LARGE','univer-mr-2\x20univer-flex\x20univer-text-xl','sheetId','_initStatusComponent','init','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_scene','_onCursorUpdate','_selfUnitIDs','transformSelections','touchDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','requireSession','_doCreateSocket','combineLatest','_beforeCloseService','complete','origin','_entityInit$','SetWorksheetActivateCommand','Warning','MoveRangeCommandId','collabStatus.syncing','getFocusedUnit','_cursorInfo$','_docSyncEditingCollabCursorService','UniverCollaborationClientPlugin','OTHER_CLIENT_EDITING','replaceDocRanges','YUUMI_NO_CUBOID_FOR_QUESTION','name','restore','_heartbeatTimer','focused$','values','textRanges','getVpScrollXYInfoByPosToVp','ILogService','setUndoRedoMutationParamsCache','UNIVER_DOC','UniverProCollaborationClient','MOBILE_HAS_BEEN_BOUND','NO_OTHER_CLIENTS_EDITING','disableLocalCache','path','none','startRow','OffLineIcon','hasOwnProperty','enableLocalCache','ThemeService','Rect','pushState','getRelativeToViewportCoord','ALREADY_EXISTS','_cursor','tag','translate(.97)','takeUntil','YUUMI_URL_COL_OUT_OF_RANGE','_httpService','APPLY_DUPLICATED','icon','WebBrowserSingleActiveUnitService','_scheduleClearOtherTimer','UniverInstanceType','registerRenderModule','TEXT','search','delete','collabStatus.conflict','url(#$1','_docTransformIMECacheService','toRgbString','attrs','loadOfflineData','getUndoRedoMutationParamsCache','getConfig','DEFAULT_WS_SESSION_TICKET_URL','getTypeOfUnitDisposed$','RegularPolygon','ACTIVE_UNIT_EVENT_CHANNEL','memberID','_logService','NodePositionConvertToRectRange','forwardRef','UniverProCollaboration','Vector2','column','random','YUUMI_ALL_TABLES_IS_INVALID','UniverEngineRender','...','_textBubble','hide','Tools','runId','on-line-icon_clip0_910_349','_messageService','deepClone','debounceTime','Inject','off-line-icon_clip0_910_343','BrowserCollaborationSocketService','IURLService','className','_status$','YUUMI_RATE_OVER_LIMIT','collabCursorState$','createElement','MemberService','CollaborationStatus','svg','permission.content','collaboration.single-unit.warning','ENSURE_SNAPSHOT_EXECUTION','_online','OFFLINE','onCommandExecuted','createInstance','collabStatus.notCollab','INVITE_CODE_HAS_BEEN_UES','href','transformIMECache','Failed','colorChannel1','popstate','map','EffectRefRangId','onStarting','all','unitID','_drawRectRange','USER_NOT_INVITED_CODE','Plugin','PY_RUNTIME_SCRIPT_ERROR','CollaborationSessionService','session.collaboration-timeout','USERS_LEAVE','setConfig','with','_uiPartsService','WECHAT_HAS_BEEN_BOUND','event$','92ifPyZI','_collabSessionService','_hovered','_registerRenderDependencies','debug','collab-rect-range-','JOIN_ROOM_FAILED','INTERNAL_ERROR','getCurrentSelections','Disposable','next','BehaviorSubject','_docClipboardService','find','UNRECOGNIZED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','urlChange$','redoState','_document','_handleJoinEvent','260148bukOTk','DOC_RANGE_TYPE','_removeCollabCursors','indexOf','getCollabEntity$','ticket','startsWith','RemoteUniscriptService','_name','post','_handleEvent','_init','skeleton','MUTATION','runOnServer','getOwnPropertySymbols','displayName','_hover','OnLineIcon','getRangePointData','bottom','height','ColorKit','deserializeRangeWithSheet','triggerDblclick','OTHER_CLIENTS_EDITING','_context','transform','_getSaveTimeout','length','_initStatusListener','fill','_updateURLWithCurrentState','backgroundColor','defineProperty','history','unit','idSuffix','addObject','getMember','_cursorShapes','CHANGESET_REVISION_CONFILICT','imageSourceType','set','selections','selection','@univerjs/ui','location','off-line-icon','0\x200\x2016\x2016','loadUnit','Error','subunit','WebSocketService','range','CollaborationController','clipPath','InsertRangeMoveRightCommandId','getMemberID','entries','trim','resize','IDocClipboardService','Optional','UniverCollaborationClientUIPlugin','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CONFLICT','_session','use','_id','green.600','INVALID_INVITE_CODE','334614GiXwPp','then','http://www.w3.org/2000/svg','labelPosition','getValue','CollaborationDataLoaderController','body','saveImage','getCurrentRevOfUnit','jiqing.500','_univerInstanceService','from','row','COMPLETION_FINISHED','evenodd','MessageType','unshift','Rectangle','generateRandomId','handleDeleteRangeMoveLeft','NOT_COLLAB','_toggleOffline','UniverDocsUi','getActiveRange','data','DocSelectionManagerService','getSkeleton','HTTPService','_toggleOnline','@univerjs/docs-ui','#FFF','xlink:href','PENDING','source','_unitStatus','sessionTicket','_transformService','UNDEFINED','add','TEXT_RANGE_LAYER_INDEX','setShapeProps','_dataLoaderService','_colorAssignService','_initEntityListener','getItem','has','_docSkeleton','RemoveColCommandId','_startSheetCollabCursor','_getMergeRange','UPDATE_CURSOR','_setupSubUnitSync','collab-text-range-','Tooltip','closePath','_setupBeforeClosingHandler','operators','_getScale','createIdentifier','doc.mutation.rich-text-editing','INVITE_CODE_ALREADY_BOUND','round','extend','_handleHover','_refreshCollabCursors','IMessageService','RemoveRowCommandId','flatMap','react/jsx-runtime','mutations','some','exhaustSavingTask','CollaborationUIEventId','rxjs','UniverProCollaborationClientUi','type','_labelPosition','_onRefRangeChange','_updateCollabCursors','useDependency','[CollaborationDataLoaderController]','NOT_FOUND','_urlService','_scheduleHeartbeat','arc','font','assign','_localStorageService','getOwnPropertyDescriptor','PERMISSION_DENIED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','asObservable','_handleHeartbeatEvent','getColorFromTheme','useObservable','EMAIL_VERIFY_CODE_MISMATCH','VIEW_MAIN','_hideTimer','54115bRIYnD','UniverEngineFormula','isEditing','addObjects','wsSessionTicketUrl','getUnhiddenWorksheets','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','AWAITING','propertyIsEnumerable','LICENSE_IMPORT_SIZE_EXCEEDED','forEach','_ensureSubject','newValue','roomMembers$','_collabCursorController','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','getUnitId','@univerjs/design','UNAUTHENTICATED','toString','LOGIN_FAILED','SNAPSHOT_INVALID_SNAPSHOT','_removeClearOtherTimer','_drawTextRange','DocCollaborationEntity','@univerjs/network','mask','lineTo','show','_updateSubUnitFromURLParams','get','getSheetObject','onPointerMove$','push','/run/','M0\x200H16V16H0z','handleDeleteRangeMoveUp','@univerjs-pro/collaboration-client','red.300','UniverUi','clearInterval','_docStateChangeManagerService','Unknown\x20user','@univerjs/drawing','endColumn','React','rxjs/operators','transformMutation','SYNCED','executeCommand','isTransformMutationsWithChangesetSuccess','handleInsertRow','INVITE_CODE_REQUIRED','call','fillText','NodePositionConvertToCursor','disposeWithMe','IImageIoService','handleMoveRange','min','stringify','@univerjs/sheets-ui','transformRemoteChangeset','clearTimeout','_getSheetObject','storage','_eventUnsubscribe','SHEET_VIEWPORT_KEY','symbol','IConfigService','DataLoaderService'];_0xd233=function(){return _0x5bc989;};return _0xd233();}