@univerjs-pro/collaboration-client-ui 0.10.3 → 0.10.4-nightly.202508220605

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +18 -18
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xda92(_0x35fc26,_0x5eaee2){const _0x20084d=_0x2008();return _0xda92=function(_0xda921,_0x3ffda2){_0xda921=_0xda921-0xdc;let _0x434235=_0x20084d[_0xda921];return _0x434235;},_0xda92(_0x35fc26,_0x5eaee2);}function _0x2008(){const _0x3a0ac2=['INTERNAL_ERROR','jsx','unshift','shareReplay','_urlService','path','from','_collabCursorController','_labelPosition','YUUMI_AI_RUN_FAILED','Injector','YUUMI_RATE_OVER_LIMIT','handleInsertRow','setAlpha','_transformUndoRedoStack','url(#off-line-icon_clip0_910_343)','transformMutation','_transformHistoryAndStateStack','getUndoRedoMutationParamsCache','getMemberID','runRefRangeMutations','OTHER_CLIENTS_EDITING','useRef','_hideTimer','string','next','_uiPartsService','IUIPartsService','SNAPSHOT_HAS_BEEN_REMOVED','setItem','LOCAL_CACHE_INTERVAL','_docStateChangeManagerService','focused$','params','saveImage','7436331wvbOZC','_getMergeRange','TOO_MANY_REQUESTS','get','blue.400','closePath','editingUnit','mutations','_messageService','send','_initEvent','Failed','_removeClearOtherTimer','UniverRpc','idSuffix','beginPath','cursorInfo$','_anchorDot','MOBILE_HAS_BEEN_BOUND','_heartbeatTimer','RichTextEditingMutation','handleIRemoveCol','SheetSkeletonManagerService','_injector','ILogService','_saveCache','searchParams','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collaboration.closeRoom','_startDocCollabCursor','white','_cursorShapes','disableLocalCache','_session','NO_OTHER_CLIENTS_EDITING','LocaleService','has','currentSkeleton$','startRow','getMergeData','DeleteRangeMoveUpCommandId','defs','onStarting','exports','doc.mutation.rich-text-editing','handleMoveRange','_initResize','_name','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_docTransformSelectionsService','0\x200\x2016\x2016','getAncestorScale','_localCacheService','isEditing','DesktopCollaborationStatusDisplayController','toDisposable','mergeOverrideWithDependencies','CollaborationStatus','_initStatusComponent','PERMISSION_DENIED','YUUMI_ALL_TABLES_IS_INVALID','set','_textBubble','map','ThemeService','CollaborationUIEventId','DOC_RANGE_TYPE','_drawAnchor','exhaustSavingTask','_removeCollabCursors','icon','_status$','DeleteRangeMoveLeftCommandId','setShapeProps','handleIRemoveRow','_logService','hide','random','getColorFromTheme','_initCommandExecutedListener','_cursors','UNIVER_SHEET','removeParam','subunit','_initEntityListener','children','text','LICENSE_EXPORT_SIZE_EXCEEDED','1em','DocCollaborationEntity','getUnitId','getActiveSheet','forEach','addObject','5898135hNVqFG','toRgbString','docStateChange$','IUniverInstanceService','status$','CLOSE_ROOM','subscribeEvent','_localStorageService','bottom','transformIMECache','collabStatus.synced','ColorKit','APPLY_PERMISSION_DENIED','OFFLINE','SessionStatus','Optional','1160148svPwXZ','unload','UniverSheetsUi','off-line-icon_clip0_910_343','YUUMI_TABLE_NOT_FOUND_IN_UNIT','symbol','getMember','_scene','BuiltInUIPart','location','@univerjs/drawing','_eventUnsubscribe','runOnServer','on-line-icon','Vector2','amd','getValue','combineLatest','runId','getCurrentUnitForType','stringify','SHEET_VIEWPORT_KEY','_themeService','FromArray','code','getSheetBySheetId','COLORS','RemoteUniscriptService','Subject','RefRangeService','IRemoteInstanceService','RxDisposable','JOIN_ROOM_FAILED','APPLY_DUPLICATED','collab-text-range-','onLocalMutation','0\x200\x2017\x2016','complete','activeSheet$','popstate','session.collaboration-timeout','font','http://www.w3.org/2000/svg','addObjects','UniverInstanceType','DocIMEInputManagerService','getViewport','_color','toString','UniverCore','CollaborationEvent','_configService','div','className','backgroundColor','Inject','getRangePointData','row','colorChannel1','width','filter','serializeRangeWithSheet','_online','isTransformMutationsWithChangesetSuccess','SetTextSelectionsOperation','onTransformChange$','addEventListener','values','transformStateCache','UNDEFINED','distinctUntilChanged','ENSURE_SNAPSHOT_EXECUTION','DisposableCollection','range','unitId','_id','collabStatus.syncing','getSheetObject','ILocalStorageService','@univerjs/design','YUUMI_URL_COL_OUT_OF_RANGE','USERS_LEAVE','_getScale','NodePositionConvertToRectRange','_univerInstanceService','WECHAT_HAS_BEEN_BOUND','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','save','BehaviorSubject','transformRemoteChangeset','onMouseMove','rxjs','pluginName','getDocRanges','_clearOtherTimers','collabStatus.fetchMiss','SheetsSelectionsService','_docTransformStateCacheService','registerRefRange','defIds','size','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','syncEditingCollabCursor','[CollaborationDataLoaderController]','LICENSE_IMPORT_SIZE_EXCEEDED','RemoveColCommandId','DependentOn','useDependency','UniverUi','roomMembers$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','handleInsertCol','collabStatus.offline','selection','_registerRenderDependencies','_refRangeService','deepClone','_commandService','drawWith','_handleHeartbeatEvent','_collabSessionService','unit','_toggleOnline','MessageType','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','contains','INVALID_ARGUMENT','permission.title','234704NPyHix','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','fillRule','_ensureSubject','subscribe','permission.content','setTimeout','undoState','_revisionService','SOCKET_FAILED','name','getOwnPropertyDescriptor','AWAITING_WITH_PENDING','_beforeCloseService','restore','@univerjs/ui','HEADER_MENU','transform','handleDeleteRangeMoveUp','_transformPreviousActiveRange','createSocket','MemberService','operators','_getSaveTimeout','ITransformService','OffLineIcon','object','getColor','init','handleDeleteRangeMoveLeft','_anchor','startColumn','moveTo','UniverProCollaborationClientUi','EMAIL_HAS_BEEN_BOUND','_context','RegularPolygon','onPointerEnter$','hasOwnProperty','ICommandService','history','LICENSE_MAX_UNITS_EXCEEDED','measureText','Plugin','split','startsWith','endColumn','INVITE_CODE_REQUIRED','isActive','_updateLocalCursor','_sheetSkeletonManagerService','YUUMI_SUBSCRIPTION_NOT_FOUND','_transformService','sessionTicket','lineTo','HTTPService','OTHER_CLIENT_EDITING','InsertRangeMoveDownCommandId','IConfigService','_send','setConfig','...','url(#$1','SetSelectionsOperation','replace','_docSkeletonManagerService','RevisionService','trim','all','urlChange$','href','propertyIsEnumerable','UniverEngineRender','univer-flex\x20univer-items-center','body','4366XPzjyA','COMPLETION_FINISHED','getActiveRange','@univerjs-pro/collaboration-client','_cursorInfo$','getTypeOfUnitAdded$','executeCommand','height','m1Prime','mask','loadOfflineData','ticket','min','executionId','CONNECTOR_DATA_TOO_LARGE','react/jsx-runtime','clsx','collabStatus.notCollab','switchMap','react','_lastPointer','redoState','_docSyncEditingCollabCursorService','length','_docSkeleton','evenodd','EffectRefRangId','YUUMI_UNABLE_LOAD_URL','debounce','jiqing.500','error','getOffsetConfig','delete','Error','InsertColCommandId','getParam','displayName','APPLY_REVISION_CONFILICT','_updateURLWithCurrentState','_entityInit$','transformByState','ISnapshotServerService','fill','Shape','EMAIL_VERIFY_CODE_MISMATCH','UniverSheets','key','_scheduleHeartbeat','registerRenderModule','NOT_COLLAB','saveTaskMap','requireSession','1791600ykPduy','_disabled','IDocClipboardService','memberID','CollaborationController','UNRECOGNIZED','AWAITING','hovered','column','jsxs','USER_NOT_INVITED_CODE','type','_hovered','_hover','_createSocketURL','uni.network.url-service','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','imageSourceType','Disposable','clipPath','YUUMI_ASYNCIO_CANCELLED','CONFLICT','data','current','url(#on-line-icon_clip0_910_349)','_setupSubUnitSync','_getSheetObject','engine','fillStyle','IRenderManagerService','application/json','_config','_render','_saveTaskMap','dispose','sessionStatus$','getCoordByCell','getFocusedUnit','concat','_dataLoaderService','ONLINE','UniverCollaborationClientUIPlugin','use','pushState','onPointerMove$','TEXT_RANGE_LAYER_INDEX','UniverDrawing','call','getRelativeToViewportCoord','dispose$','storage','VIEW_MAIN','_refreshCollabCursors','origin','tag','setUndoRedoMutationParamsCache','handleInsertRangeMoveDown','apply','onPointerLeave$','BrowserCollaborationSocketService','ranges','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_startSheetCollabCursor','getUniverSheetInstance','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','setStateCache','on-line-icon_clip0_910_349','disposeWithMe','Tooltip','_handleLeaveEvent','_entities','black','fillText','7MPsJwm','InsertRowCommandId','INVALID_INVITE_CODE','_scheduleClearOtherTimer','@univerjs/engine-formula','_unitOnClients','WebURLService','attrs','session.will-retry','ACTIVE_UNIT_EVENT_CHANNEL','_cursor','CHANGESET_REVISION_CONFILICT','transformSelections','add','OnLineIcon','React','UNIVER_DOC','setInterval','prototype','subUnitId','none','UNAUTHENTICATED','deserializeRangeWithSheet','_colorIndex','getOwnPropertySymbols','getSheetId','indexOf','DocSelectionManagerService','IImageIoService','MOBILE_VERIFY_CODE_MISMATCH','_backgroundColor','assignAColorForMemberID','_collaborationUIEventService','cursorInfo','ALREADY_EXISTS','_range','unitID','_cachedData','setActiveRange','_unitStatus','search','PENDING','_updateSubUnitFromURLParams','event$','collaboration-client-ui.config','setParam','_onCursorDelete','loadUnit','_docClipboardService','session.connection-failed','merge','yellow.400','includes','extend','3817036guInkF','color','CommandType','Workbook','InsertRangeMoveRightCommandId','entries','/run/','addHandlerCallback','Rect','newValue','svg','createInstance','roomMembers','IMessageService','forwardRef','_draw','useCallback','getRenderById','takeUntil','getCurrentSelections','red.300','asObservable','Unknown\x20user','isTransformMutationFailure','DocSkeletonManagerService','_drawTextRange','_handleEvent','YUUMI_CONNECTOR_URL_NOT_FOUND','getConfig','UniverDesign','APPLY_NON_SEQUENTIAL_REVISION','@univerjs/rpc','currentTheme$','assign','round','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','skeleton','INVITE_CODE_ALREADY_BOUND','with','Rectangle','UniverDocsUi','clearTimeout','INVITE_CODE_HAS_BEEN_UES','wsSessionTicketUrl','show','_instanceService','LOGIN_FAILED','_getAnchorBounding','debounceTime','collab-text-anchor-','push','WebBrowserSingleActiveUnitService','M0\x200H16V16H0z','isArray','generateRandomId','getTypeOfUnitDisposed$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_updateCollabCursors','SheetCollabCursorShape','_onCursorUpdate','_roomMembers$','_httpService','xlink:href','_assignedColors','TEXT','_doCreateSocket','getLocalCacheKey','getStateCache','touchDependencies','UniverProCollaboration','SetDocZoomRatioOperation','registerBeforeClose','univer-mr-2\x20univer-flex\x20univer-text-xl','getCurrent','some','then','Tools','createElement','univerjs-icon\x20univerjs-icon-','DEFAULT_WS_SESSION_TICKET_URL','LICENSE_DISTRO_REJECTED','@univerjs/core','enableLocalCache','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','SetWorksheetActivateCommand','debug','_drawRectRange','ILocalCacheService','UnitStatus','collabCursorState$','parse','CollaborationSocketService','NOT_FOUND','_colorAssignService','_initDependencies','fromEvent','getCellPositionByOffset','CollaborationDataLoaderController','Warning','_localeService','_collaborationController','_handleHover','currentColor','@univerjs/sheets','getSkeleton','_document','YUUMI_NO_CUBOID_FOR_QUESTION','SYNCED','UPDATE_CURSOR','_shapes','#FFF','entityInit$','_handleJoinEvent','_toggleOffline','getCollabCursors$','IBeforeCloseService','arc','_selfUnitIDs','_notificationService','_syncEditingCollabCursorService','defineProperty','onCommandExecuted','invokeId','find','_imageIoService','sheetId','_scheduleSaving','_collabCursorState$','sheetID','pipe','_init','IURLService','DocStateChangeManagerService','function','_renderManagerService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_docTransformIMECacheService','@univerjs/docs','173OVtVVp','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','APPLY_REJECT','PY_RUNTIME_SCRIPT_ERROR','RemoveRowCommandId','m2Prime','_memberService'];_0x2008=function(){return _0x3a0ac2;};return _0x2008();}(function(_0x3b11df,_0x1ab639){const _0x374ced=_0xda92,_0x3a715f=_0x3b11df();while(!![]){try{const _0x5c5d4e=parseInt(_0x374ced(0x1e0))/0x1*(parseInt(_0x374ced(0x343))/0x2)+-parseInt(_0x374ced(0x278))/0x3+-parseInt(_0x374ced(0x156))/0x4+parseInt(_0x374ced(0x268))/0x5+-parseInt(_0x374ced(0x377))/0x6+-parseInt(_0x374ced(0x120))/0x7*(parseInt(_0x374ced(0x2f8))/0x8)+parseInt(_0x374ced(0x20a))/0x9;if(_0x5c5d4e===_0x1ab639)break;else _0x3a715f['push'](_0x3a715f['shift']());}catch(_0x2d8853){_0x3a715f['push'](_0x3a715f['shift']());}}}(_0x2008,0xae788),function(_0x3c753d,_0x5e1564){const _0x303dd7=_0xda92;typeof exports==_0x303dd7(0x312)&&typeof module<'u'?_0x5e1564(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x303dd7(0x1db)&&define[_0x303dd7(0x287)]?define([_0x303dd7(0x235),_0x303dd7(0x352),_0x303dd7(0x346),_0x303dd7(0x1a7),_0x303dd7(0x307),_0x303dd7(0x2d3),_0x303dd7(0x2c7),_0x303dd7(0x356),_0x303dd7(0x175),_0x303dd7(0x1bd),'@univerjs/engine-render','@univerjs/network','@univerjs/docs-ui',_0x303dd7(0x282),'@univerjs-pro/collaboration',_0x303dd7(0x1df),_0x303dd7(0x124),'rxjs/operators','@univerjs/sheets-ui'],_0x5e1564):(_0x3c753d=typeof globalThis<'u'?globalThis:_0x3c753d||self,_0x5e1564(_0x3c753d[_0x303dd7(0x319)]={},_0x3c753d[_0x303dd7(0x12f)],_0x3c753d['UniverProCollaborationClient'],_0x3c753d[_0x303dd7(0x2a9)],_0x3c753d[_0x303dd7(0x2e4)],_0x3c753d[_0x303dd7(0x2d3)],_0x3c753d[_0x303dd7(0x173)],_0x3c753d[_0x303dd7(0x12f)],_0x3c753d[_0x303dd7(0x217)],_0x3c753d[_0x303dd7(0x370)],_0x3c753d[_0x303dd7(0x340)],_0x3c753d['UniverNetwork'],_0x3c753d[_0x303dd7(0x17e)],_0x3c753d[_0x303dd7(0x105)],_0x3c753d[_0x303dd7(0x19b)],_0x3c753d['UniverDocs'],_0x3c753d['UniverEngineFormula'],_0x3c753d[_0x303dd7(0x2d3)][_0x303dd7(0x30e)],_0x3c753d[_0x303dd7(0x27a)]));}(this,function(_0x8c9c05,_0x437d0f,_0x207d2b,_0x3ed267,_0x1a0cb9,_0x1c33ab,_0x8cae8d,_0xfc65f,_0x5f5dff,_0x28ec48,_0x83c5a7,_0xbddb2a,_0x351b83,_0x338f7d,_0x585638,_0x556999,_0x45b3d4,_0x24ffba,_0x2cf434){'use strict';const _0x3bd006=_0xda92;var _0x5d4135=Object[_0x3bd006(0x1ce)],_0x38f8c8=(_0x37e3bc,_0x8577c0,_0x2760e3)=>_0x8577c0 in _0x37e3bc?_0x5d4135(_0x37e3bc,_0x8577c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2760e3}):_0x37e3bc[_0x8577c0]=_0x2760e3,_0x4e10dd=(_0x39d1ec,_0x16b9d5,_0x282b38)=>_0x38f8c8(_0x39d1ec,typeof _0x16b9d5!=_0x3bd006(0x27d)?_0x16b9d5+'':_0x16b9d5,_0x282b38),_0x214552=function(){const _0xbd3cd3=_0x3bd006;return _0x214552=Object['assign']||function(_0x1cd1fb){const _0xe9cddf=_0xda92;for(var _0x2dfc4c,_0x4a425f=0x1,_0x116315=arguments[_0xe9cddf(0x35a)];_0x4a425f<_0x116315;_0x4a425f++){_0x2dfc4c=arguments[_0x4a425f];for(var _0x2ecf5d in _0x2dfc4c)Object[_0xe9cddf(0x132)]['hasOwnProperty']['call'](_0x2dfc4c,_0x2ecf5d)&&(_0x1cd1fb[_0x2ecf5d]=_0x2dfc4c[_0x2ecf5d]);}return _0x1cd1fb;},_0x214552[_0xbd3cd3(0x110)](this,arguments);},_0x5ceda6=function(_0x3fe1ac,_0x5014a0){const _0x596221=_0x3bd006;var _0x4d96fe={};for(var _0x5d12b3 in _0x3fe1ac)Object[_0x596221(0x132)][_0x596221(0x31e)][_0x596221(0x106)](_0x3fe1ac,_0x5d12b3)&&_0x5014a0[_0x596221(0x13a)](_0x5d12b3)<0x0&&(_0x4d96fe[_0x5d12b3]=_0x3fe1ac[_0x5d12b3]);if(_0x3fe1ac!=null&&typeof Object[_0x596221(0x138)]=='function'){for(var _0x2c5fef=0x0,_0x5d12b3=Object[_0x596221(0x138)](_0x3fe1ac);_0x2c5fef<_0x5d12b3[_0x596221(0x35a)];_0x2c5fef++)_0x5014a0[_0x596221(0x13a)](_0x5d12b3[_0x2c5fef])<0x0&&Object['prototype'][_0x596221(0x33f)][_0x596221(0x106)](_0x3fe1ac,_0x5d12b3[_0x2c5fef])&&(_0x4d96fe[_0x5d12b3[_0x2c5fef]]=_0x3fe1ac[_0x5d12b3[_0x2c5fef]]);}return _0x4d96fe;},_0x5b9a51=_0xfc65f[_0x3bd006(0x164)](function(_0x3fb10f,_0x190517){const _0x235ca4=_0x3bd006;var _0x5275d9=_0x3fb10f[_0x235ca4(0x250)],_0x4e7991=_0x3fb10f['id'],_0x34f314=_0x3fb10f[_0x235ca4(0x2ad)],_0x26c22c=_0x3fb10f[_0x235ca4(0x155)],_0x4a6e46=_0x5ceda6(_0x3fb10f,[_0x235ca4(0x250),'id',_0x235ca4(0x2ad),_0x235ca4(0x155)]),_0xfb1166=_0x235ca4(0x1a4)['concat'](_0x4e7991,'\x20')[_0x235ca4(0xfd)](_0x34f314||'')[_0x235ca4(0x33b)](),_0x3674b3=_0xfc65f[_0x235ca4(0x1fd)]('_'[_0x235ca4(0xfd)](_0x11ae17()));return _0x200c16(_0x5275d9,''[_0x235ca4(0xfd)](_0x4e7991),{'defIds':_0x5275d9[_0x235ca4(0x2db)],'idSuffix':_0x3674b3[_0x235ca4(0xee)]},_0x214552({'ref':_0x190517,'className':_0xfb1166},_0x4a6e46),_0x26c22c);});function _0x200c16(_0x41dd2b,_0x204b99,_0x2fa269,_0x1b6900,_0x2e829a){const _0x14f6d8=_0x3bd006;return _0xfc65f[_0x14f6d8(0x1a3)](_0x41dd2b[_0x14f6d8(0x10d)],_0x214552(_0x214552({'key':_0x204b99},_0xb562a2(_0x41dd2b,_0x2fa269,_0x2e829a)),_0x1b6900),(_0x3c0f6e(_0x41dd2b,_0x2fa269)[_0x14f6d8(0x25f)]||[])[_0x14f6d8(0x249)](function(_0x460a55,_0x1eb995){const _0x297aa7=_0x14f6d8;return _0x200c16(_0x460a55,''['concat'](_0x204b99,'-')[_0x297aa7(0xfd)](_0x41dd2b[_0x297aa7(0x10d)],'-')[_0x297aa7(0xfd)](_0x1eb995),_0x2fa269,void 0x0,_0x2e829a);}));}function _0xb562a2(_0x42f630,_0x5467fc,_0x541bd2){const _0x367d83=_0x3bd006;var _0x1a35cf=_0x214552({},_0x42f630['attrs']);_0x541bd2!=null&&_0x541bd2[_0x367d83(0x2b2)]&&_0x1a35cf[_0x367d83(0x36d)]==='colorChannel1'&&(_0x1a35cf[_0x367d83(0x36d)]=_0x541bd2[_0x367d83(0x2b2)]),_0x42f630[_0x367d83(0x10d)]==='mask'&&_0x1a35cf['id']&&(_0x1a35cf['id']=_0x1a35cf['id']+_0x5467fc['idSuffix']),Object[_0x367d83(0x15b)](_0x1a35cf)[_0x367d83(0x266)](function(_0x4801a9){const _0x10b132=_0x367d83;var _0x4946fc=_0x4801a9[0x0],_0x31b735=_0x4801a9[0x1];_0x4946fc===_0x10b132(0x34c)&&typeof _0x31b735=='string'&&(_0x1a35cf[_0x4946fc]=_0x31b735[_0x10b132(0x338)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x5467fc[_0x10b132(0x218)],')')));});var _0x3f1561=_0x5467fc[_0x367d83(0x2db)];return!_0x3f1561||_0x3f1561[_0x367d83(0x35a)]===0x0||(_0x42f630['tag']===_0x367d83(0x101)&&_0x1a35cf[_0x367d83(0x194)]&&(_0x1a35cf[_0x367d83(0x194)]=_0x1a35cf[_0x367d83(0x194)]+_0x5467fc[_0x367d83(0x218)]),Object[_0x367d83(0x15b)](_0x1a35cf)[_0x367d83(0x266)](function(_0x14499d){const _0x4b1ef0=_0x367d83;var _0x24daa6=_0x14499d[0x0],_0x1baecb=_0x14499d[0x1];typeof _0x1baecb==_0x4b1ef0(0x1ff)&&(_0x1a35cf[_0x24daa6]=_0x1baecb[_0x4b1ef0(0x338)](/url\(#(.*)\)/,_0x4b1ef0(0x336)[_0x4b1ef0(0xfd)](_0x5467fc[_0x4b1ef0(0x218)],')')));})),_0x1a35cf;}function _0x3c0f6e(_0x5aa229,_0x5d0046){const _0x221f2a=_0x3bd006;var _0x1307ec,_0x52281d=_0x5d0046[_0x221f2a(0x2db)];return!_0x52281d||_0x52281d[_0x221f2a(0x35a)]===0x0?_0x5aa229:_0x5aa229[_0x221f2a(0x10d)]===_0x221f2a(0x233)&&(!((_0x1307ec=_0x5aa229[_0x221f2a(0x25f)])===null||_0x1307ec===void 0x0)&&_0x1307ec[_0x221f2a(0x35a)])?_0x214552(_0x214552({},_0x5aa229),{'children':_0x5aa229[_0x221f2a(0x25f)][_0x221f2a(0x249)](function(_0x58adaa){const _0x34812c=_0x221f2a;return typeof _0x58adaa['attrs']['id']=='string'&&_0x52281d&&_0x52281d[_0x34812c(0x154)](_0x58adaa[_0x34812c(0x127)]['id'])?_0x214552(_0x214552({},_0x58adaa),{'attrs':_0x214552(_0x214552({},_0x58adaa['attrs']),{'id':_0x58adaa['attrs']['id']+_0x5d0046['idSuffix']})}):_0x58adaa;})}):_0x5aa229;}function _0x11ae17(){const _0x54386b=_0x3bd006;return Math[_0x54386b(0x257)]()[_0x54386b(0x2a8)](0x24)['substring'](0x2,0x8);}_0x5b9a51[_0x3bd006(0x367)]='UniverIcon';var _0x4cc44d={'tag':_0x3bd006(0x160),'attrs':{'xmlns':_0x3bd006(0x2a2),'fill':'none','viewBox':_0x3bd006(0x23c),'width':_0x3bd006(0x262),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3bd006(0x1f6)},'children':[{'tag':_0x3bd006(0x1ec),'attrs':{'stroke':'currentColor','d':_0x3bd006(0x2f9),'strokeLinecap':'round','strokeLinejoin':_0x3bd006(0x178),'strokeWidth':1.2}}]},{'tag':_0x3bd006(0x233),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3bd006(0x27b)},'children':[{'tag':_0x3bd006(0x1ec),'attrs':{'fill':_0x3bd006(0x228),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3bd006(0x27b)]},_0x46b9c9=_0xfc65f[_0x3bd006(0x164)](function(_0x3f6494,_0x393da6){const _0x44ff8b=_0x3bd006;return _0xfc65f[_0x44ff8b(0x1a3)](_0x5b9a51,Object[_0x44ff8b(0x177)]({},_0x3f6494,{'id':'off-line-icon','ref':_0x393da6,'icon':_0x4cc44d}));});_0x46b9c9['displayName']=_0x3bd006(0x311);var _0x2f551d={'tag':_0x3bd006(0x160),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3bd006(0x134),'viewBox':_0x3bd006(0x29c),'width':_0x3bd006(0x262),'height':_0x3bd006(0x262)},'children':[{'tag':'g','attrs':{'clipPath':_0x3bd006(0xef)},'children':[{'tag':_0x3bd006(0x1ec),'attrs':{'stroke':_0x3bd006(0x1bc),'d':_0x3bd006(0xe7),'strokeLinecap':_0x3bd006(0x178),'strokeLinejoin':_0x3bd006(0x178),'strokeWidth':1.2}}]},{'tag':_0x3bd006(0x233),'attrs':{},'children':[{'tag':_0x3bd006(0xea),'attrs':{'id':_0x3bd006(0x119)},'children':[{'tag':_0x3bd006(0x1ec),'attrs':{'fill':_0x3bd006(0x228),'d':_0x3bd006(0x18a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3bd006(0x119)]},_0x41d853=_0xfc65f[_0x3bd006(0x164)](function(_0x2d0430,_0x5bb301){const _0x4db6b4=_0x3bd006;return _0xfc65f[_0x4db6b4(0x1a3)](_0x5b9a51,Object[_0x4db6b4(0x177)]({},_0x2d0430,{'id':_0x4db6b4(0x285),'ref':_0x5bb301,'icon':_0x2f551d}));});_0x41d853['displayName']=_0x3bd006(0x12e);function _0x46bf8f(_0x109ed7){const _0x34c4ef=_0x3bd006;switch(_0x109ed7){case _0x207d2b[_0x34c4ef(0x243)][_0x34c4ef(0x275)]:return _0x34c4ef(0x2e8);case _0x207d2b['CollaborationStatus']['CONFLICT']:return'collabStatus.conflict';case _0x207d2b['CollaborationStatus']['FETCH_MISS']:return _0x34c4ef(0x2d7);case _0x207d2b[_0x34c4ef(0x243)]['NOT_COLLAB']:return _0x34c4ef(0x354);case _0x207d2b[_0x34c4ef(0x243)][_0x34c4ef(0xdd)]:case _0x207d2b[_0x34c4ef(0x243)][_0x34c4ef(0x304)]:return _0x34c4ef(0x2c4);case _0x207d2b[_0x34c4ef(0x243)][_0x34c4ef(0x1c1)]:case _0x207d2b[_0x34c4ef(0x243)][_0x34c4ef(0x149)]:return _0x34c4ef(0x272);}}function _0x4308c9(_0x166619){const _0x574def=_0x3bd006,{status$:_0x54c36c}=_0x166619,_0x30ca4e=_0x1a0cb9['useObservable'](_0x54c36c,_0x207d2b[_0x574def(0x243)][_0x574def(0x374)]),_0x53eaab=_0x1a0cb9[_0x574def(0x2e3)](_0x3ed267[_0x574def(0x22d)]),_0x37eaf9=_0x1a0cb9['useDependency'](_0x207d2b['CollaborationSessionService']),_0x3cd615=_0x30ca4e!==_0x207d2b[_0x574def(0x243)]['OFFLINE'],_0x3540c0=_0x53eaab['t'](_0x46bf8f(_0x30ca4e)),_0x383d58=_0x3cd615?_0x437d0f['jsx'](_0x41d853,{}):_0x437d0f[_0x574def(0x1e8)](_0x46b9c9,{}),_0x33235d=_0xfc65f[_0x574def(0x166)](()=>{_0x3cd615||_0x37eaf9['reconnect']();},[_0x3cd615,_0x37eaf9]);function _0x158e66(){const _0x376727=_0x574def;return _0x437d0f[_0x376727(0xe0)](_0x376727(0x2ac),{'className':_0x376727(0x341),'onClick':_0x33235d,'children':[_0x437d0f[_0x376727(0x1e8)](_0x376727(0x2ac),{'className':_0x8cae8d[_0x376727(0x353)](_0x376727(0x19e),{'univer-text-green-500':_0x3cd615,'univer-text-red-500':!_0x3cd615}),'children':_0x383d58}),_0x437d0f['jsx'](_0x376727(0x2ac),{'className':_0x376727(0x1e1),'children':_0x3540c0})]});}return _0x3cd615?_0x158e66():_0x437d0f[_0x574def(0x1e8)](_0x8cae8d[_0x574def(0x11b)],{'title':_0x53eaab['t']('collab-client.tooltip.reconnect'),'children':_0x158e66()});}var _0xbac2ed=Object['getOwnPropertyDescriptor'],_0x260678=(_0x334763,_0x591c51,_0x2ae551,_0x92fcfd)=>{const _0x5c9626=_0x3bd006;for(var _0x3af2df=_0x92fcfd>0x1?void 0x0:_0x92fcfd?_0xbac2ed(_0x591c51,_0x2ae551):_0x591c51,_0x4e727b=_0x334763[_0x5c9626(0x35a)]-0x1,_0x17b417;_0x4e727b>=0x0;_0x4e727b--)(_0x17b417=_0x334763[_0x4e727b])&&(_0x3af2df=_0x17b417(_0x3af2df)||_0x3af2df);return _0x3af2df;},_0x2a9a0d=(_0x170bff,_0x38a06e)=>(_0x486963,_0x24a948)=>_0x38a06e(_0x486963,_0x24a948,_0x170bff);_0x8c9c05[_0x3bd006(0x240)]=class extends _0x3ed267[_0x3bd006(0xe9)]{constructor(_0xdadc34,_0x224bde,_0x250a66,_0x312f65){const _0x416eed=_0x3bd006;super(),_0x4e10dd(this,_0x416eed(0x251),new _0x1c33ab['BehaviorSubject'](_0x207d2b[_0x416eed(0x243)][_0x416eed(0x374)])),(this[_0x416eed(0x2cc)]=_0xdadc34,this['_injector']=_0x224bde,this[_0x416eed(0x1ba)]=_0x250a66,this[_0x416eed(0x201)]=_0x312f65,this[_0x416eed(0x244)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x3bd21b=_0x3bd006;this[_0x3bd21b(0x11a)](this['_univerInstanceService'][_0x3bd21b(0x207)][_0x3bd21b(0x1d7)](_0x1c33ab[_0x3bd21b(0x355)](()=>{const _0x49c53a=_0x3bd21b,_0x5821a6=this[_0x49c53a(0x2cc)]['getFocusedUnit']();return _0x5821a6?this[_0x49c53a(0x1ba)]['getCollabEntity$'](_0x5821a6[_0x49c53a(0x264)]()):_0x1c33ab['of'](null);}),_0x1c33ab[_0x3bd21b(0x355)](_0x20c183=>_0x20c183?_0x20c183[_0x3bd21b(0x26c)]:_0x1c33ab['of'](_0x207d2b['CollaborationStatus'][_0x3bd21b(0x374)])))['subscribe'](_0x363700=>{const _0x4a847d=_0x3bd21b;this['_status$'][_0x4a847d(0x200)](_0x363700);}));}['_initStatusComponent'](){const _0x4790d3=_0x3bd006;this[_0x4790d3(0x11a)](this[_0x4790d3(0x201)]['registerComponent'](_0x1a0cb9[_0x4790d3(0x280)][_0x4790d3(0x308)],()=>_0x1a0cb9['connectInjector'](_0x13f147({'status$':this[_0x4790d3(0x251)]['asObservable']()}),this[_0x4790d3(0x221)])));}},_0x8c9c05[_0x3bd006(0x240)]=_0x260678([_0x2a9a0d(0x0,_0x3ed267[_0x3bd006(0x26b)]),_0x2a9a0d(0x1,_0x3ed267[_0x3bd006(0x2af)](_0x3ed267[_0x3bd006(0x1f1)])),_0x2a9a0d(0x2,_0x3ed267[_0x3bd006(0x2af)](_0x207d2b[_0x3bd006(0x37b)])),_0x2a9a0d(0x3,_0x1a0cb9[_0x3bd006(0x202)])],_0x8c9c05[_0x3bd006(0x240)]);function _0x13f147(_0x37ed48){const {status$:_0x1f5ef9}=_0x37ed48;return function(){const _0x42c83d=_0xda92;return _0x437d0f[_0x42c83d(0x1e8)](_0x4308c9,{'status$':_0x1f5ef9});};}const _0x5a7e26=_0x3ed267['createIdentifier'](_0x3bd006(0xe6));var _0xd0a0ce=Object['getOwnPropertyDescriptor'],_0x22c34d=(_0x5a83f8,_0x183c48,_0x125fd4,_0x4c4c37)=>{const _0x58a2b2=_0x3bd006;for(var _0x5c728c=_0x4c4c37>0x1?void 0x0:_0x4c4c37?_0xd0a0ce(_0x183c48,_0x125fd4):_0x183c48,_0x591c1a=_0x5a83f8[_0x58a2b2(0x35a)]-0x1,_0x1ca4cc;_0x591c1a>=0x0;_0x591c1a--)(_0x1ca4cc=_0x5a83f8[_0x591c1a])&&(_0x5c728c=_0x1ca4cc(_0x5c728c)||_0x5c728c);return _0x5c728c;},_0x2797a8=(_0x2a9a8e,_0xc494f9)=>(_0x3ae049,_0x4fb2c6)=>_0xc494f9(_0x3ae049,_0x4fb2c6,_0x2a9a8e);_0x8c9c05[_0x3bd006(0x1b7)]=class extends _0x3ed267[_0x3bd006(0x297)]{constructor(_0x19f1c3,_0x15d001,_0x245f6f,_0x55dbd5,_0x4a90d3){const _0xec31dc=_0x3bd006;super(),this[_0xec31dc(0x1eb)]=_0x19f1c3,this[_0xec31dc(0x255)]=_0x15d001,this['_commandService']=_0x245f6f,this[_0xec31dc(0xfe)]=_0x55dbd5,_0x4a90d3?_0x4a90d3==null||_0x4a90d3['whenReady']()[_0xec31dc(0x1a1)](()=>this[_0xec31dc(0x1d8)]()):(this[_0xec31dc(0x255)]['debug'](_0xec31dc(0x2df),_0xec31dc(0x117)),this[_0xec31dc(0x1d8)]());}async[_0x3bd006(0x1d8)](){const _0x5b2c3e=_0x3bd006,_0x5ccf7d=this[_0x5b2c3e(0x1eb)][_0x5b2c3e(0x366)](_0x5b2c3e(0x2f1)),_0x5d7cdb=this['_urlService'][_0x5b2c3e(0x366)](_0x5b2c3e(0xe2)),_0x1468eb=this['_urlService'][_0x5b2c3e(0x366)](_0x5b2c3e(0x25d));if(!_0x5ccf7d||!_0x5d7cdb){this[_0x5b2c3e(0x255)][_0x5b2c3e(0x1ab)]('[CollaborationDataLoaderController]',_0x5b2c3e(0x225));return;}const _0x5c5bca=await this[_0x5b2c3e(0xfe)][_0x5b2c3e(0x14f)](_0x5ccf7d,Number(_0x5d7cdb),_0x1468eb);_0x5c5bca&&_0x5c5bca instanceof _0x3ed267[_0x5b2c3e(0x159)]&&this[_0x5b2c3e(0xf0)](_0x5c5bca);}async[_0x3bd006(0xf0)](_0x72fd87){const _0x215823=_0x3bd006;await this[_0x215823(0x14a)](_0x72fd87),_0x72fd87[_0x215823(0x29e)][_0x215823(0x1d7)](_0x1c33ab[_0x215823(0x168)](this[_0x215823(0x108)]))[_0x215823(0x2fc)](_0x510f1f=>{const _0x2c57d7=_0x215823;_0x510f1f&&this[_0x2c57d7(0x369)](_0x510f1f);}),this['_urlService'][_0x215823(0x33d)][_0x215823(0x1d7)](_0x1c33ab[_0x215823(0x168)](this[_0x215823(0x108)]))[_0x215823(0x2fc)](()=>this['_updateSubUnitFromURLParams'](_0x72fd87));}[_0x3bd006(0x369)](_0x441d5a,_0x5bd77a=!0x1){const _0x3e8fea=_0x3bd006,_0x511c9d=this[_0x3e8fea(0x1eb)][_0x3e8fea(0x366)](_0x3e8fea(0x25d));_0x441d5a[_0x3e8fea(0x139)]()!==_0x511c9d&&this[_0x3e8fea(0x1eb)][_0x3e8fea(0x14d)](_0x3e8fea(0x25d),_0x441d5a[_0x3e8fea(0x139)](),_0x5bd77a);}async[_0x3bd006(0x14a)](_0x53400e){const _0x247784=_0x3bd006;var _0x483c06;const _0x44330f=this['_urlService'][_0x247784(0x366)](_0x247784(0x25d));if(!_0x44330f||!_0x53400e[_0x247784(0x291)](_0x44330f)){const _0x522e14=_0x53400e['getUnhiddenWorksheets']()[0x0],_0x39d829=_0x53400e[_0x247784(0x291)](_0x522e14);if(!_0x39d829)return;this[_0x247784(0x369)](_0x39d829,!0x0),await this[_0x247784(0x2ed)]['executeCommand'](_0x28ec48[_0x247784(0x1aa)]['id'],{'unitId':_0x53400e[_0x247784(0x264)](),'subUnitId':_0x522e14});return;}((_0x483c06=_0x53400e[_0x247784(0x265)]())==null?void 0x0:_0x483c06[_0x247784(0x139)]())!==_0x44330f&&await this[_0x247784(0x2ed)][_0x247784(0x349)](_0x28ec48[_0x247784(0x1aa)]['id'],{'unitId':_0x53400e[_0x247784(0x264)](),'subUnitId':_0x44330f});}},_0x8c9c05[_0x3bd006(0x1b7)]=_0x22c34d([_0x2797a8(0x0,_0x5a7e26),_0x2797a8(0x1,_0x3ed267['ILogService']),_0x2797a8(0x2,_0x3ed267[_0x3bd006(0x31f)]),_0x2797a8(0x3,_0x3ed267[_0x3bd006(0x2af)](_0x207d2b['DataLoaderService'])),_0x2797a8(0x4,_0x3ed267[_0x3bd006(0x277)](_0x5f5dff[_0x3bd006(0x296)]))],_0x8c9c05[_0x3bd006(0x1b7)]);var _0x239e50=Object[_0x3bd006(0x303)],_0x229e51=(_0x496083,_0x4bb2ca,_0x3b75bf,_0x17bc05)=>{const _0x3b5d9a=_0x3bd006;for(var _0x2d8abe=_0x17bc05>0x1?void 0x0:_0x17bc05?_0x239e50(_0x4bb2ca,_0x3b75bf):_0x4bb2ca,_0x28b581=_0x496083[_0x3b5d9a(0x35a)]-0x1,_0x198ae1;_0x28b581>=0x0;_0x28b581--)(_0x198ae1=_0x496083[_0x28b581])&&(_0x2d8abe=_0x198ae1(_0x2d8abe)||_0x2d8abe);return _0x2d8abe;},_0x200510=(_0x1da93a,_0x1d5361)=>(_0x323c87,_0x51342f)=>_0x1d5361(_0x323c87,_0x51342f,_0x1da93a);let _0xc0cc2b=class extends _0x3ed267['RxDisposable']{constructor(_0x1f32aa,_0x5cf696){const _0x5351af=_0x3bd006;super(),this[_0x5351af(0x150)]=_0x1f32aa,this['_imageIoService']=_0x5cf696,this['_init']();}[_0x3bd006(0x1d8)](){const _0x1d4e28=_0x3bd006,_0x7924fe=this;this[_0x1d4e28(0x11a)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0xeb8fd3=>{const _0x38ae78=_0x1d4e28,_0x4b22be=await _0x7924fe[_0x38ae78(0x1d2)][_0x38ae78(0x209)](_0xeb8fd3);return _0x4b22be?{'source':_0x4b22be['source'],'imageSourceType':_0x4b22be[_0x38ae78(0xe8)]}:null;}}));}};_0xc0cc2b=_0x229e51([_0x200510(0x0,_0x351b83[_0x3bd006(0x379)]),_0x200510(0x1,_0x338f7d[_0x3bd006(0x13c)])],_0xc0cc2b);const _0x70d944=['purple.300',_0x3bd006(0x360),'green.600',_0x3bd006(0x16a),_0x3bd006(0x20e),_0x3bd006(0x153)];class _0x55e3bb extends _0x3ed267[_0x3bd006(0xe9)]{constructor(){const _0x7b51ea=_0x3bd006;super(...arguments),_0x4e10dd(this,_0x7b51ea(0x195),new Map()),_0x4e10dd(this,'_colorIndex',0x0);}[_0x3bd006(0x13f)](_0x1f2aca){const _0x43806=_0x3bd006;if(this['_assignedColors']['has'](_0x1f2aca))return this['_assignedColors'][_0x43806(0x20d)](_0x1f2aca);const _0x24c0df=_0x70d944[this[_0x43806(0x137)]];return this[_0x43806(0x137)]=(this[_0x43806(0x137)]+0x1)%_0x70d944['length'],this['_assignedColors'][_0x43806(0x247)](_0x1f2aca,_0x24c0df),_0x24c0df;}}function _0x53fd57(_0x139dde){const _0x15bf21=_0x3bd006;let _0x8158c='';for(const _0x314c34 of _0x139dde){const {startOffset:_0x1b8b65,endOffset:_0x45bb16,isActive:_0x5d4b92,rangeType:_0x218ebc,segmentId:_0x4cef33,segmentPage:_0x323470}=_0x314c34;_0x8158c[_0x15bf21(0x35a)]&&(_0x8158c+=','),_0x8158c+=_0x1b8b65+':'+_0x45bb16+':'+(_0x5d4b92?'1':'0')+':'+_0x218ebc+':'+_0x4cef33+':'+_0x323470;}return _0x8158c;}function _0x344c58(_0x13c180){const _0x5c8422=_0x3bd006,_0x1c1c96=_0x13c180['split'](','),_0x5e55e9=[];for(const _0x28518e of _0x1c1c96){const [_0x1f1c87,_0x45bfc1,_0x496514,_0x282c42,_0x52f0d4,_0x623c2]=_0x28518e[_0x5c8422(0x324)](':');_0x5e55e9[_0x5c8422(0x188)]({'startOffset':Number(_0x1f1c87),'endOffset':Number(_0x45bfc1),'collapsed':_0x1f1c87===_0x45bfc1,'isActive':_0x496514==='1','rangeType':_0x282c42===_0x3ed267['DOC_RANGE_TYPE'][_0x5c8422(0x196)]?_0x3ed267[_0x5c8422(0x24c)][_0x5c8422(0x196)]:_0x3ed267[_0x5c8422(0x24c)]['RECT'],'segmentId':typeof _0x52f0d4==_0x5c8422(0x1ff)?String(_0x52f0d4):'','segmentPage':Number(_0x623c2!=null?_0x623c2:-0x1)});}return _0x5e55e9[_0x5c8422(0x1a0)](_0x3862db=>_0x3862db[_0x5c8422(0x328)])||(_0x5e55e9[0x0][_0x5c8422(0x328)]=!0x0),_0x5e55e9;}class _0x2b068f extends _0x3ed267['RxDisposable']{constructor(){const _0x3bb10c=_0x3bd006;super(...arguments),_0x4e10dd(this,_0x3bb10c(0x1d5),new _0x1c33ab[(_0x3bb10c(0x2d0))](null)),_0x4e10dd(this,'collabCursorState$',this[_0x3bb10c(0x1d5)][_0x3bb10c(0x16b)]());}['syncEditingCollabCursor'](_0x3bb128){const _0x3a7b20=_0x3bd006,{unitID:_0x4d8410,memberID:_0x3c472c,textRanges:_0x904bd0}=_0x3bb128,_0x34474c=_0x53fd57(_0x904bd0);if(_0x34474c==='')return;const _0xb1f2a8={'unitID':_0x4d8410,'memberID':_0x3c472c,'selection':_0x34474c};this[_0x3a7b20(0x1d5)][_0x3a7b20(0x200)](_0xb1f2a8);}}var _0x2a9d0b=Object['getOwnPropertyDescriptor'],_0x1bd272=(_0x2626f4,_0x2cfdfc,_0x5fe9b8,_0xfbe3)=>{const _0x232f8c=_0x3bd006;for(var _0x24bfd3=_0xfbe3>0x1?void 0x0:_0xfbe3?_0x2a9d0b(_0x2cfdfc,_0x5fe9b8):_0x2cfdfc,_0x20e32c=_0x2626f4[_0x232f8c(0x35a)]-0x1,_0x7a29db;_0x20e32c>=0x0;_0x20e32c--)(_0x7a29db=_0x2626f4[_0x20e32c])&&(_0x24bfd3=_0x7a29db(_0x24bfd3)||_0x24bfd3);return _0x24bfd3;},_0x299c94=(_0x596edc,_0x2a6e9e)=>(_0x274598,_0x4c2095)=>_0x2a6e9e(_0x274598,_0x4c2095,_0x596edc);const _0x195536=0x12c,_0x444331=0x64;let _0x85cba4=class extends _0x3ed267[_0x3bd006(0x297)]{constructor(_0x50a993,_0x569252,_0xe36580,_0x5d14a9,_0x3304c2,_0x246221,_0x49c094,_0x2ab74d,_0x1ee8dd){const _0x1c630d=_0x3bd006;super(),_0x4e10dd(this,_0x1c630d(0x2b6),!0x1),_0x4e10dd(this,_0x1c630d(0x1d8),!0x1),_0x4e10dd(this,_0x1c630d(0x347),new _0x1c33ab['BehaviorSubject'](new Map())),_0x4e10dd(this,_0x1c630d(0x21a),this[_0x1c630d(0x347)][_0x1c630d(0x16b)]()),_0x4e10dd(this,_0x1c630d(0x192),new _0x1c33ab[(_0x1c630d(0x2d0))]([])),_0x4e10dd(this,_0x1c630d(0x2e5),this[_0x1c630d(0x192)][_0x1c630d(0x1d7)](_0x1c33ab['debounceTime'](_0x195536))),_0x4e10dd(this,_0x1c630d(0x329),_0x3ed267[_0x1c630d(0x35f)](_0x18eb92=>{const _0x16b050=_0x1c630d,_0x46da56={'eventID':_0x585638[_0x16b050(0x2aa)][_0x16b050(0x1c2)],'data':{'unitID':this['unitID'],'memberID':this[_0x16b050(0x22b)][_0x16b050(0x1fa)](),'selection':_0x53fd57(_0x18eb92)}};this[_0x16b050(0x22b)][_0x16b050(0x213)](_0x46da56,this[_0x16b050(0x144)]);},_0x444331)),(this['unitID']=_0x50a993,this[_0x1c630d(0x22b)]=_0x569252,this[_0x1c630d(0x221)]=_0xe36580,this['_colorAssignService']=_0x5d14a9,this[_0x1c630d(0x1e6)]=_0x3304c2,this[_0x1c630d(0x1cd)]=_0x246221,this['_transformService']=_0x49c094,this[_0x1c630d(0x2cc)]=_0x2ab74d,this[_0x1c630d(0x2ed)]=_0x1ee8dd);}get[_0x3bd006(0x141)](){return this['_cursorInfo$']['getValue']();}get[_0x3bd006(0x162)](){const _0x4eb90a=_0x3bd006;return this['_roomMembers$'][_0x4eb90a(0x288)]();}['dispose'](){const _0x578d66=_0x3bd006;super[_0x578d66(0xf9)](),this['_cursorInfo$'][_0x578d66(0x200)](new Map()),this[_0x578d66(0x347)][_0x578d66(0x29d)](),this[_0x578d66(0x192)]['next']([]),this[_0x578d66(0x192)][_0x578d66(0x29d)]();}[_0x3bd006(0x314)](){const _0x2189c9=_0x3bd006;this[_0x2189c9(0x1d8)]||(this[_0x2189c9(0x1d8)]=!0x0,this[_0x2189c9(0x22b)][_0x2189c9(0xfa)][_0x2189c9(0x1d7)](_0x1c33ab[_0x2189c9(0x168)](this[_0x2189c9(0x108)]))['subscribe'](_0x5caccb=>{const _0x207363=_0x2189c9;_0x5caccb===_0x207d2b['SessionStatus'][_0x207363(0xff)]?this['_toggleOnline']():this[_0x207363(0x1c7)]();}),this[_0x2189c9(0x22b)][_0x2189c9(0x14b)][_0x2189c9(0x1d7)](_0x1c33ab[_0x2189c9(0x168)](this[_0x2189c9(0x108)]))[_0x2189c9(0x2fc)](_0x3f3532=>{const _0x1e756a=_0x2189c9,_0x1b45b4=_0x3f3532['eventID'];_0x1b45b4===_0x585638[_0x1e756a(0x2aa)][_0x1e756a(0x1c2)]&&this[_0x1e756a(0x191)](_0x3f3532),_0x1b45b4===_0x585638['CollaborationEvent'][_0x1e756a(0x2c9)]&&this['_onCursorDelete'](_0x3f3532);}),this[_0x2189c9(0x11a)](this[_0x2189c9(0x2ed)][_0x2189c9(0x1cf)](_0x5d7a9d=>{const _0x2319cb=_0x2189c9,_0x469c22=_0x5d7a9d[_0x2319cb(0x208)];_0x469c22!=null&&this[_0x2319cb(0x2b6)]&&_0x5d7a9d['id']===_0x556999[_0x2319cb(0x2b8)]['id']&&_0x469c22['unitId']===this['unitID']&&_0x469c22[_0x2319cb(0x23f)]===!0x1&&_0x469c22[_0x2319cb(0x113)][_0x2319cb(0x35a)]>0x0&&this['_updateLocalCursor'](_0x469c22[_0x2319cb(0x113)]);})),this['_syncEditingCollabCursorService'][_0x2189c9(0x1af)]['pipe'](_0x1c33ab[_0x2189c9(0x168)](this[_0x2189c9(0x108)]))[_0x2189c9(0x2fc)](_0x2af388=>{const _0x368126=_0x2189c9;if((_0x2af388==null?void 0x0:_0x2af388[_0x368126(0x144)])!==this['unitID'])return;const _0x2a5777={'eventID':_0x585638['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x2af388};this['_onCursorUpdate'](_0x2a5777);}),this['disposeWithMe'](this[_0x2189c9(0x2ed)]['onCommandExecuted'](_0x5804c2=>{const _0x10869a=_0x2189c9;if(_0x5804c2['params']==null)return;const _0x1e5f7f=_0x5804c2[_0x10869a(0x208)];if(_0x5804c2['id']!==_0x556999[_0x10869a(0x21e)]['id']||_0x1e5f7f[_0x10869a(0x2c2)]!==this['unitID'])return;const _0x5b9169={'id':_0x10869a(0x236),'params':_0x1e5f7f},_0x23021f=this[_0x10869a(0x141)];for(const [_0x5c0735,_0x1d9fcf]of _0x23021f){const _0x1e8aec={'id':_0x10869a(0x236),'params':{'unitId':this[_0x10869a(0x144)],'actions':null,'textRanges':_0x1d9fcf[_0x10869a(0x113)]}},_0x199669=this[_0x10869a(0x32c)][_0x10869a(0x1f7)](_0x5b9169,_0x1e8aec,!0x1);if(_0x585638[_0x10869a(0x16d)](_0x199669))throw _0x199669[_0x10869a(0x361)];_0x23021f[_0x10869a(0x247)](_0x5c0735,{..._0x1d9fcf,'ranges':_0x199669[_0x10869a(0x1e5)][_0x10869a(0x208)]['textRanges']});}queueMicrotask(()=>{const _0x44e220=_0x10869a;this[_0x44e220(0x347)]['next'](_0x23021f);});})));}[_0x3bd006(0x191)](_0x47e965){const _0x33b4b7=_0x3bd006;var _0x109a18,_0x351266;const {memberID:_0x439ea3,selection:_0x5354f1}=_0x47e965[_0x33b4b7(0xed)],_0x4e5ce6=_0x344c58(_0x5354f1),_0x3cb222=(_0x351266=(_0x109a18=this[_0x33b4b7(0x1e6)]['getMember'](this['unitID'],_0x439ea3))==null?void 0x0:_0x109a18[_0x33b4b7(0x302)])!=null?_0x351266:_0x33b4b7(0x16c),_0x270bd2={'color':this[_0x33b4b7(0x1b3)][_0x33b4b7(0x13f)](_0x439ea3),'name':_0x3cb222,'ranges':_0x4e5ce6},_0x19eefa=this[_0x33b4b7(0x141)];_0x19eefa['set'](_0x439ea3,_0x270bd2),this[_0x33b4b7(0x347)]['next'](_0x19eefa);}['_onCursorDelete'](_0x3ea86c){const _0x44bbde=_0x3bd006,{memberID:_0x18ebb2}=_0x3ea86c[_0x44bbde(0xed)],_0x315077=this['cursorInfo'];_0x315077[_0x44bbde(0x363)](_0x18ebb2),this[_0x44bbde(0x347)]['next'](_0x315077);}[_0x3bd006(0x2f2)](){const _0x2ea623=_0x3bd006;var _0xf545b2;if(this['_online']=!0x0,((_0xf545b2=this[_0x2ea623(0x2cc)][_0x2ea623(0xfc)]())==null?void 0x0:_0xf545b2['getUnitId']())!==this[_0x2ea623(0x144)])return;const _0x2b2c5c=this[_0x2ea623(0x221)][_0x2ea623(0x20d)](_0x556999[_0x2ea623(0x13b)])[_0x2ea623(0x2d5)]();Array[_0x2ea623(0x18b)](_0x2b2c5c)&&_0x2b2c5c[_0x2ea623(0x35a)]>0x0&&this[_0x2ea623(0x329)](_0x2b2c5c);}[_0x3bd006(0x1c7)](){const _0x49f8b8=_0x3bd006;this[_0x49f8b8(0x2b6)]=!0x1;}};_0x85cba4=_0x1bd272([_0x299c94(0x2,_0x3ed267['Inject'](_0x3ed267['Injector'])),_0x299c94(0x3,_0x3ed267[_0x3bd006(0x2af)](_0x55e3bb)),_0x299c94(0x4,_0x3ed267[_0x3bd006(0x2af)](_0x207d2b[_0x3bd006(0x30d)])),_0x299c94(0x5,_0x3ed267[_0x3bd006(0x2af)](_0x2b068f)),_0x299c94(0x6,_0x585638[_0x3bd006(0x310)]),_0x299c94(0x7,_0x3ed267['IUniverInstanceService']),_0x299c94(0x8,_0x3ed267['ICommandService'])],_0x85cba4);var _0x2d580b=Object[_0x3bd006(0x303)],_0x11e129=(_0xea4a15,_0xcd5499,_0x4ddd86,_0x3c919d)=>{const _0x2a0ed4=_0x3bd006;for(var _0x6c6ed8=_0x3c919d>0x1?void 0x0:_0x3c919d?_0x2d580b(_0xcd5499,_0x4ddd86):_0xcd5499,_0x4d9727=_0xea4a15[_0x2a0ed4(0x35a)]-0x1,_0xe16898;_0x4d9727>=0x0;_0x4d9727--)(_0xe16898=_0xea4a15[_0x4d9727])&&(_0x6c6ed8=_0xe16898(_0x6c6ed8)||_0x6c6ed8);return _0x6c6ed8;},_0x10a720=(_0x122e82,_0xe15e29)=>(_0x6e9e5a,_0x5246c8)=>_0xe15e29(_0x6e9e5a,_0x5246c8,_0x122e82);const _0x111125=0x12c,_0x37501b=0x64,_0x543348=()=>{let _0x5eda51=[],_0x2a76e0=!0x1;return _0x354cf1=>{_0x5eda51['push'](_0x354cf1),_0x2a76e0||(_0x2a76e0=!0x0,setTimeout(()=>{const _0x57e0a0=_0xda92;_0x5eda51[_0x57e0a0(0x266)](_0x49f7a2=>_0x49f7a2()),_0x5eda51=[],_0x2a76e0=!0x1;}));};};let _0x15b8d=class extends _0x3ed267[_0x3bd006(0x297)]{constructor(_0x2563c3,_0x461d39,_0x2d2013,_0x5d2dbd,_0x1f8f36,_0x174bad,_0x213582,_0x467aee){const _0x56cdfa=_0x3bd006;super(),_0x4e10dd(this,_0x56cdfa(0x2b6),!0x1),_0x4e10dd(this,_0x56cdfa(0x1d8),!0x1),_0x4e10dd(this,'_cursorInfo$',new _0x1c33ab['BehaviorSubject'](new Map())),_0x4e10dd(this,'cursorInfo$',this[_0x56cdfa(0x347)]['asObservable']()),_0x4e10dd(this,'_roomMembers$',new _0x1c33ab[(_0x56cdfa(0x2d0))]([])),_0x4e10dd(this,'roomMembers$',this[_0x56cdfa(0x192)][_0x56cdfa(0x1d7)](_0x1c33ab[_0x56cdfa(0x186)](_0x111125))),_0x4e10dd(this,'_updateLocalCursor',_0x3ed267[_0x56cdfa(0x35f)]((_0x3304a0,_0x16c212)=>{const _0xb09fd8=_0x56cdfa,_0x4f93c7={'eventID':_0x585638[_0xb09fd8(0x2aa)]['UPDATE_CURSOR'],'data':{'unitID':this[_0xb09fd8(0x144)],'memberID':this['_session']['getMemberID'](),'selection':_0x45b3d4[_0xb09fd8(0x2b5)](_0x3304a0,_0x16c212[_0xb09fd8(0x2c1)])}};this[_0xb09fd8(0x22b)][_0xb09fd8(0x213)](_0x4f93c7,this[_0xb09fd8(0x144)]);},_0x37501b)),(this[_0x56cdfa(0x144)]=_0x2563c3,this[_0x56cdfa(0x22b)]=_0x461d39,this[_0x56cdfa(0x221)]=_0x2d2013,this['_colorAssignService']=_0x5d2dbd,this[_0x56cdfa(0x1e6)]=_0x1f8f36,this[_0x56cdfa(0x2cc)]=_0x174bad,this['_commandService']=_0x213582,this['_refRangeService']=_0x467aee);}get[_0x3bd006(0x141)](){const _0x55193e=_0x3bd006;return this[_0x55193e(0x347)][_0x55193e(0x288)]();}get[_0x3bd006(0x162)](){const _0x5ee898=_0x3bd006;return this['_roomMembers$'][_0x5ee898(0x288)]();}[_0x3bd006(0xf9)](){const _0x39733e=_0x3bd006;super[_0x39733e(0xf9)](),this[_0x39733e(0x347)][_0x39733e(0x200)](new Map()),this[_0x39733e(0x347)][_0x39733e(0x29d)](),this[_0x39733e(0x192)][_0x39733e(0x200)]([]),this['_roomMembers$'][_0x39733e(0x29d)]();}[_0x3bd006(0x314)](){const _0x4433c2=_0x3bd006;this[_0x4433c2(0x1d8)]||(this[_0x4433c2(0x1d8)]=!0x0,this[_0x4433c2(0x22b)][_0x4433c2(0xfa)][_0x4433c2(0x1d7)](_0x1c33ab[_0x4433c2(0x168)](this[_0x4433c2(0x108)]))[_0x4433c2(0x2fc)](_0x1754c9=>{const _0x485065=_0x4433c2;_0x1754c9===_0x207d2b[_0x485065(0x276)]['ONLINE']?this[_0x485065(0x2f2)]():this['_toggleOffline']();}),this['_session'][_0x4433c2(0x14b)][_0x4433c2(0x1d7)](_0x1c33ab[_0x4433c2(0x168)](this[_0x4433c2(0x108)]))[_0x4433c2(0x2fc)](_0xfcbcbf=>{const _0x4f7b75=_0x4433c2,_0x2c7522=_0xfcbcbf['eventID'];_0x2c7522===_0x585638['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x4f7b75(0x191)](_0xfcbcbf),_0x2c7522===_0x585638[_0x4f7b75(0x2aa)][_0x4f7b75(0x2c9)]&&this[_0x4f7b75(0x14e)](_0xfcbcbf);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x4433c2(0x2ed)][_0x4433c2(0x1cf)](_0x37442b=>{const _0x2666c0=_0x4433c2;if(this[_0x2666c0(0x2b6)]&&_0x37442b['id']===_0x28ec48[_0x2666c0(0x337)]['id']&&_0x37442b[_0x2666c0(0x208)][_0x2666c0(0x2c2)]===this[_0x2666c0(0x144)]){const _0x1cd1c3=_0x37442b[_0x2666c0(0x208)];this[_0x2666c0(0x329)](_0x1cd1c3[_0x2666c0(0x133)],_0x1cd1c3['selections'][0x0]);}})));}[_0x3bd006(0x191)](_0x3f1961){const _0x488234=_0x3bd006;var _0x92f652,_0x21f079;const {memberID:_0x6a4082,selection:_0x23793c}=_0x3f1961[_0x488234(0xed)],{sheetName:_0x1538c5,range:_0x251068}=_0x45b3d4[_0x488234(0x136)](_0x23793c),_0x344415={'name':(_0x21f079=(_0x92f652=this['_memberService'][_0x488234(0x27e)](this[_0x488234(0x144)],_0x6a4082))==null?void 0x0:_0x92f652[_0x488234(0x302)])!=null?_0x21f079:_0x488234(0x16c),'range':this[_0x488234(0x20b)](_0x1538c5,_0x251068),'sheetID':_0x1538c5,'color':this[_0x488234(0x1b3)]['assignAColorForMemberID'](_0x6a4082),'selection':_0x23793c},_0x4f6cdc=this[_0x488234(0x141)];_0x4f6cdc[_0x488234(0x247)](_0x6a4082,_0x344415),this['_cursorInfo$'][_0x488234(0x200)](_0x4f6cdc);}[_0x3bd006(0x14e)](_0x352ad0){const _0x1fee95=_0x3bd006,{memberID:_0x14f4e2}=_0x352ad0['data'],_0x4bcb55=this[_0x1fee95(0x141)];_0x4bcb55['delete'](_0x14f4e2),this[_0x1fee95(0x347)][_0x1fee95(0x200)](_0x4bcb55);}['_getMergeRange'](_0x316182,_0x5d0279){const _0x19c718=_0x3bd006;var _0x4d3951,_0x580c36;const _0x9a4bcc=(_0x580c36=(_0x4d3951=this[_0x19c718(0x2cc)][_0x19c718(0x116)](this['unitID']))==null?void 0x0:_0x4d3951[_0x19c718(0x291)](_0x316182))==null?void 0x0:_0x580c36[_0x19c718(0x231)]();return(_0x9a4bcc==null?void 0x0:_0x9a4bcc[_0x19c718(0x1d1)](_0x1024d1=>_0x3ed267[_0x19c718(0x17d)][_0x19c718(0x2f5)](_0x1024d1,_0x5d0279)))||_0x5d0279;}['_onRefRangeChange'](){const _0x4ec3d2=_0x3bd006,_0x1200a3=new _0x3ed267[(_0x4ec3d2(0x2c0))](),_0x908e0=_0x543348(),_0x3bcda8=()=>{const _0x58938a=_0x4ec3d2;_0x1200a3[_0x58938a(0xf9)]();const _0x35ad76=(_0x1ea0b6,_0x159c55,_0x38ab35,_0x49aca8)=>{const _0x29ddfe=_0x58938a;let _0x5b3d42=[];switch(_0x1ea0b6['id']){case _0x28ec48['EffectRefRangId'][_0x29ddfe(0x252)]:{_0x5b3d42=_0x28ec48[_0x29ddfe(0x315)](_0x1ea0b6,_0x49aca8);break;}case _0x28ec48[_0x29ddfe(0x35d)][_0x29ddfe(0x232)]:{_0x5b3d42=_0x28ec48[_0x29ddfe(0x30a)](_0x1ea0b6,_0x49aca8);break;}case _0x28ec48[_0x29ddfe(0x35d)][_0x29ddfe(0x365)]:{_0x5b3d42=_0x28ec48[_0x29ddfe(0x2e7)](_0x1ea0b6,_0x49aca8);break;}case _0x28ec48[_0x29ddfe(0x35d)][_0x29ddfe(0x331)]:{_0x5b3d42=_0x28ec48[_0x29ddfe(0x10f)](_0x1ea0b6,_0x49aca8);break;}case _0x28ec48[_0x29ddfe(0x35d)][_0x29ddfe(0x15a)]:{_0x5b3d42=_0x28ec48['handleInsertRangeMoveRight'](_0x1ea0b6,_0x49aca8);break;}case _0x28ec48['EffectRefRangId'][_0x29ddfe(0x121)]:{_0x5b3d42=_0x28ec48[_0x29ddfe(0x1f3)](_0x1ea0b6,_0x49aca8);break;}case _0x28ec48[_0x29ddfe(0x35d)]['MoveRangeCommandId']:{_0x5b3d42=_0x28ec48[_0x29ddfe(0x237)](_0x1ea0b6,_0x49aca8);break;}case _0x28ec48[_0x29ddfe(0x35d)][_0x29ddfe(0x2e1)]:{_0x5b3d42=_0x28ec48[_0x29ddfe(0x21f)](_0x1ea0b6,_0x49aca8);break;}case _0x28ec48[_0x29ddfe(0x35d)][_0x29ddfe(0x1e4)]:{_0x5b3d42=_0x28ec48[_0x29ddfe(0x254)](_0x1ea0b6,_0x49aca8);break;}}const _0x44fc0d=_0x28ec48[_0x29ddfe(0x1fb)](_0x5b3d42,_0x49aca8),_0x2bc512=this[_0x29ddfe(0x141)][_0x29ddfe(0x20d)](_0x159c55);if(_0x2bc512&&_0x44fc0d){const _0xf08c05={..._0x2bc512,'range':_0x44fc0d};this[_0x29ddfe(0x141)][_0x29ddfe(0x247)](_0x159c55,_0xf08c05),_0x908e0(()=>{const _0x2e325b=_0x29ddfe,_0x20e8e2=this['_refRangeService'][_0x2e325b(0x2da)](_0x44fc0d,_0x59b33c=>(_0x20e8e2['dispose'](),_0x35ad76(_0x59b33c,_0x159c55,_0x38ab35,_0x44fc0d)));_0x1200a3[_0x2e325b(0x12d)](_0x20e8e2);});}return{'redos':[],'undos':[]};};this[_0x58938a(0x141)][_0x58938a(0x266)]((_0x342a8f,_0x2040dd)=>{const _0x321f7f=_0x58938a,{range:_0x130977,sheetID:_0x33d79f}=_0x342a8f,_0x33245a=this[_0x321f7f(0x2eb)][_0x321f7f(0x2da)](_0x130977,_0xf98729=>(_0x33245a[_0x321f7f(0xf9)](),_0x35ad76(_0xf98729,_0x2040dd,_0x33d79f,_0x130977)));_0x1200a3[_0x321f7f(0x12d)](_0x33245a);});};this[_0x4ec3d2(0x11a)](_0x3ed267[_0x4ec3d2(0x241)](this[_0x4ec3d2(0x347)][_0x4ec3d2(0x2fc)](()=>{_0x3bcda8();})));}[_0x3bd006(0x2f2)](){const _0x29bb4a=_0x3bd006;var _0x19a1c6,_0x1a8d68;if(this[_0x29bb4a(0x2b6)]=!0x0,((_0x19a1c6=this[_0x29bb4a(0x2cc)]['getFocusedUnit']())==null?void 0x0:_0x19a1c6['getUnitId']())!==this[_0x29bb4a(0x144)])return;const _0xda3500=(_0x1a8d68=this[_0x29bb4a(0x221)]['get'](_0x28ec48[_0x29bb4a(0x2d8)])[_0x29bb4a(0x169)]())==null?void 0x0:_0x1a8d68[0x0],_0x4ed810=this[_0x29bb4a(0x2cc)][_0x29bb4a(0x28b)](_0x3ed267[_0x29bb4a(0x2a4)][_0x29bb4a(0x25b)])[_0x29bb4a(0x265)]();_0xda3500&&_0x4ed810&&this[_0x29bb4a(0x329)](_0x4ed810[_0x29bb4a(0x139)](),_0xda3500);}[_0x3bd006(0x1c7)](){this['_online']=!0x1;}};_0x15b8d=_0x11e129([_0x10a720(0x2,_0x3ed267[_0x3bd006(0x2af)](_0x3ed267[_0x3bd006(0x1f1)])),_0x10a720(0x3,_0x3ed267[_0x3bd006(0x2af)](_0x55e3bb)),_0x10a720(0x4,_0x3ed267[_0x3bd006(0x2af)](_0x207d2b['MemberService'])),_0x10a720(0x5,_0x3ed267['IUniverInstanceService']),_0x10a720(0x6,_0x3ed267['ICommandService']),_0x10a720(0x7,_0x3ed267[_0x3bd006(0x2af)](_0x28ec48[_0x3bd006(0x295)]))],_0x15b8d);var _0x1dcc3c=Object['getOwnPropertyDescriptor'],_0x2ac946=(_0x43a6e4,_0x477c7a,_0x124db7,_0x44f471)=>{const _0x3d8081=_0x3bd006;for(var _0x52883d=_0x44f471>0x1?void 0x0:_0x44f471?_0x1dcc3c(_0x477c7a,_0x124db7):_0x477c7a,_0x5cf792=_0x43a6e4[_0x3d8081(0x35a)]-0x1,_0x84bc36;_0x5cf792>=0x0;_0x5cf792--)(_0x84bc36=_0x43a6e4[_0x5cf792])&&(_0x52883d=_0x84bc36(_0x52883d)||_0x52883d);return _0x52883d;},_0x530339=(_0x1a7fd7,_0x3f5552)=>(_0x1d517c,_0x4ff61d)=>_0x3f5552(_0x1d517c,_0x4ff61d,_0x1a7fd7);let _0x2ea14f=class extends _0x3ed267[_0x3bd006(0x297)]{constructor(_0x13f4a9,_0x42e779,_0x57f9bd){const _0x5899d5=_0x3bd006;super(),_0x4e10dd(this,_0x5899d5(0x11d),new Map()),_0x4e10dd(this,_0x5899d5(0x36a),new _0x1c33ab[(_0x5899d5(0x294))]()),(this['_univerInstanceService']=_0x13f4a9,this[_0x5899d5(0x221)]=_0x42e779,this[_0x5899d5(0x2f0)]=_0x57f9bd,this['_init']());}[_0x3bd006(0xf9)](){const _0x12b652=_0x3bd006;super[_0x12b652(0xf9)](),this['_entityInit$'][_0x12b652(0x29d)](),this[_0x12b652(0x11d)][_0x12b652(0x266)](_0x5977fa=>_0x5977fa[_0x12b652(0xf9)]());}[_0x3bd006(0x1c8)](_0x519ac3){const _0x25c42c=_0x3bd006;return this['_entities']['has'](_0x519ac3)?this['_entities'][_0x25c42c(0x20d)](_0x519ac3)[_0x25c42c(0x21a)]:this['_entityInit$'][_0x25c42c(0x1d7)](_0x1c33ab[_0x25c42c(0x2b4)](_0x57bab8=>_0x57bab8['unitID']===_0x519ac3),_0x1c33ab[_0x25c42c(0x355)](_0x206c66=>_0x206c66[_0x25c42c(0x21a)]));}['_init'](){const _0x267ac1=_0x3bd006;this[_0x267ac1(0x2cc)][_0x267ac1(0x348)](_0x3ed267[_0x267ac1(0x2a4)][_0x267ac1(0x25b)])['pipe'](_0x1c33ab[_0x267ac1(0x168)](this[_0x267ac1(0x108)]))['subscribe'](async _0x12aae0=>{const _0x54216a=_0x267ac1,_0x237cec=_0x12aae0[_0x54216a(0x264)](),_0x16b753=await this[_0x54216a(0x115)](_0x237cec);this['_entityInit$']['next'](_0x16b753),this[_0x54216a(0x11d)][_0x54216a(0x247)](_0x237cec,_0x16b753);}),this[_0x267ac1(0x2cc)][_0x267ac1(0x348)](_0x3ed267[_0x267ac1(0x2a4)][_0x267ac1(0x130)])[_0x267ac1(0x1d7)](_0x1c33ab[_0x267ac1(0x168)](this[_0x267ac1(0x108)]))[_0x267ac1(0x1d7)](_0x1c33ab[_0x267ac1(0x2b4)](_0x4a59fe=>!_0x4a59fe['getUnitId']()[_0x267ac1(0x325)]('__')))['subscribe'](async _0x1aeb0e=>{const _0x212934=_0x267ac1,_0x2670e4=_0x1aeb0e['getUnitId'](),_0x207f7f=await this[_0x212934(0x227)](_0x2670e4);this[_0x212934(0x36a)][_0x212934(0x200)](_0x207f7f),this[_0x212934(0x11d)][_0x212934(0x247)](_0x2670e4,_0x207f7f);}),_0x1c33ab[_0x267ac1(0x152)](this[_0x267ac1(0x2cc)][_0x267ac1(0x18d)](_0x3ed267[_0x267ac1(0x2a4)]['UNIVER_DOC']),this[_0x267ac1(0x2cc)][_0x267ac1(0x18d)](_0x3ed267['UniverInstanceType'][_0x267ac1(0x25b)]))[_0x267ac1(0x1d7)](_0x1c33ab[_0x267ac1(0x168)](this[_0x267ac1(0x108)]))[_0x267ac1(0x2fc)](_0x4e7fbb=>{const _0x10ba07=_0x267ac1,_0x3cffe2=_0x4e7fbb[_0x10ba07(0x264)](),_0x4907df=this[_0x10ba07(0x11d)][_0x10ba07(0x20d)](_0x3cffe2);_0x4907df&&(_0x4907df['dispose'](),this[_0x10ba07(0x11d)]['delete'](_0x3cffe2));});}async[_0x3bd006(0x115)](_0x3a8eeb){const _0x2898e8=_0x3bd006,_0x403248=await this[_0x2898e8(0x2f0)][_0x2898e8(0x376)](_0x3a8eeb),_0x2ab31a=this[_0x2898e8(0x221)][_0x2898e8(0x161)](_0x15b8d,_0x3a8eeb,_0x403248);return _0x2ab31a['init'](),_0x2ab31a;}async[_0x3bd006(0x227)](_0xbdffc5){const _0x100105=_0x3bd006,_0x4b1f0a=await this['_collabSessionService'][_0x100105(0x376)](_0xbdffc5),_0x59b7d5=this[_0x100105(0x221)]['createInstance'](_0x85cba4,_0xbdffc5,_0x4b1f0a);return _0x59b7d5['init'](),_0x59b7d5;}};_0x2ea14f=_0x2ac946([_0x530339(0x0,_0x3ed267['IUniverInstanceService']),_0x530339(0x1,_0x3ed267[_0x3bd006(0x2af)](_0x3ed267['Injector'])),_0x530339(0x2,_0x3ed267['Inject'](_0x207d2b['CollaborationSessionService']))],_0x2ea14f);const _0x1ba8ec=0x14,_0x2aa486=0xc8,_0x386af3=0x4,_0xb2cdca=0x5;function _0x4a805a(_0xae23f9,_0x4e8e76){const _0x40e71c=_0x3bd006;let {radius:_0x330ea8,width:_0xc7cc48,height:_0x1423cb}=_0x4e8e76;_0x330ea8=_0x330ea8!=null?_0x330ea8:0x0,_0xc7cc48=_0xc7cc48!=null?_0xc7cc48:0x1e,_0x1423cb=_0x1423cb!=null?_0x1423cb:0x1e;let _0x3dc8eb=0x0,_0x39aa6b=0x0,_0x3c9842=0x0;_0x3dc8eb=_0x39aa6b=_0x3c9842=Math[_0x40e71c(0x34f)](_0x330ea8,_0xc7cc48/0x2,_0x1423cb/0x2),_0xae23f9[_0x40e71c(0x219)](),_0xae23f9[_0x40e71c(0x318)](_0x3dc8eb,0x0),_0xae23f9[_0x40e71c(0x32e)](_0xc7cc48-_0x39aa6b,0x0),_0xae23f9[_0x40e71c(0x1ca)](_0xc7cc48-_0x39aa6b,_0x39aa6b,_0x39aa6b,Math['PI']*0x3/0x2,0x0,!0x1),_0xae23f9[_0x40e71c(0x32e)](_0xc7cc48,_0x1423cb-_0x3c9842),_0xae23f9['arc'](_0xc7cc48-_0x3c9842,_0x1423cb-_0x3c9842,_0x3c9842,0x0,Math['PI']/0x2,!0x1),_0xae23f9[_0x40e71c(0x32e)](0x0,_0x1423cb),_0xae23f9['lineTo'](0x0,_0x3dc8eb),_0xae23f9[_0x40e71c(0x1ca)](_0x3dc8eb,_0x3dc8eb,_0x3dc8eb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xae23f9[_0x40e71c(0x20f)](),_0x4e8e76['fill']&&(_0xae23f9[_0x40e71c(0x2cf)](),_0xae23f9[_0x40e71c(0xf3)]=_0x4e8e76[_0x40e71c(0x36d)],_0x4e8e76[_0x40e71c(0x2fa)]===_0x40e71c(0x35c)?_0xae23f9[_0x40e71c(0x36d)]('evenodd'):_0xae23f9[_0x40e71c(0x36d)](),_0xae23f9['restore']());}class _0x36e54f extends _0x83c5a7[_0x3bd006(0x36e)]{constructor(_0x211bac,_0xaaccbb){const _0x438636=_0x3bd006;super(_0x211bac,_0xaaccbb),_0x4e10dd(this,_0x438636(0x157)),_0x4e10dd(this,_0x438636(0x260)),(this[_0x438636(0x157)]=_0xaaccbb==null?void 0x0:_0xaaccbb[_0x438636(0x157)],this[_0x438636(0x260)]=_0xaaccbb==null?void 0x0:_0xaaccbb['text']);}static[_0x3bd006(0x2ee)](_0x15a1f9,_0x515c8d){const _0x203853=_0x3bd006,{text:_0x330601,color:_0x9144df}=_0x515c8d;_0x15a1f9['save'](),_0x15a1f9[_0x203853(0x2a1)]=_0x203853(0x114);const _0x9ce6f3=_0x15a1f9[_0x203853(0x322)](_0x330601)['width'],_0x59023a=Math['min'](_0x9ce6f3+0x2*_0x386af3,_0x2aa486);_0x4a805a(_0x15a1f9,{'height':_0x1ba8ec,'radius':0x4,'width':_0x59023a,'fill':_0x9144df}),_0x15a1f9[_0x203853(0xf3)]=_0x203853(0x1c4);const _0x4bdbc8=_0x386af3,_0x49b7d6=_0x1ba8ec-_0xb2cdca,_0x5bcb4d=_0x2aa486-0x2*_0x386af3;if(_0x9ce6f3>_0x5bcb4d){let _0x10cc2c='',_0x579493=0x0;for(const _0x1b403d of _0x330601){const _0x589e97=_0x15a1f9['measureText'](_0x1b403d)['width'];if(_0x579493+_0x589e97<=_0x5bcb4d-_0x15a1f9[_0x203853(0x322)](_0x203853(0x335))[_0x203853(0x2b3)])_0x10cc2c+=_0x1b403d,_0x579493+=_0x589e97;else{_0x10cc2c+='...';break;}}_0x15a1f9[_0x203853(0x11f)](_0x10cc2c,_0x4bdbc8,_0x49b7d6);}else _0x15a1f9[_0x203853(0x11f)](_0x330601,_0x4bdbc8,_0x49b7d6);_0x15a1f9[_0x203853(0x306)]();}[_0x3bd006(0x165)](_0x5d02c7){const _0xaf32a4=_0x3bd006;_0x36e54f[_0xaf32a4(0x2ee)](_0x5d02c7,this);}}const _0x1ac39f=_0x3bd006(0x187),_0x351e3d=_0x3bd006(0x29a),_0x18e2f8='collab-rect-range-',_0x1cf13e=0x6,_0x59f987=1.5,_0x1a4e86=0x4,_0x12201d=1.5,_0x11d3c5='rgba(255,\x20255,\x20255,\x200.01)';class _0x45c878{constructor(_0x5922a1,_0x40ee7f,_0x82aa4d,_0x1bb5c4){const _0x4a3553=_0x3bd006;_0x4e10dd(this,_0x4a3553(0x1c3),[]),_0x4e10dd(this,_0x4a3553(0x316),null),_0x4e10dd(this,'_textBubble',null),_0x4e10dd(this,_0x4a3553(0x21b),null),_0x4e10dd(this,'_hideTimer',null),_0x4e10dd(this,_0x4a3553(0x283),null),(this['_cursor']=_0x5922a1,this[_0x4a3553(0x27f)]=_0x40ee7f,this[_0x4a3553(0x35b)]=_0x82aa4d,this[_0x4a3553(0x1bf)]=_0x1bb5c4,this['_render']());}set[_0x3bd006(0xe4)](_0x3aa6d8){const _0x1609cc=_0x3bd006;_0x3aa6d8?(this[_0x1609cc(0x21b)]&&this[_0x1609cc(0x21b)][_0x1609cc(0x256)](),this['_textBubble']&&this[_0x1609cc(0x248)]['show']()):(this[_0x1609cc(0x21b)]&&this[_0x1609cc(0x21b)][_0x1609cc(0x182)](),this[_0x1609cc(0x248)]&&this['_textBubble'][_0x1609cc(0x256)]());}[_0x3bd006(0xf9)](){const _0x3874c0=_0x3bd006;for(const _0xfe24cc of this[_0x3874c0(0x1c3)])_0xfe24cc['dispose']();this[_0x3874c0(0x248)]&&this[_0x3874c0(0x248)]['dispose'](),this[_0x3874c0(0x21b)]&&this[_0x3874c0(0x21b)]['dispose'](),this[_0x3874c0(0x316)]&&this[_0x3874c0(0x316)]['dispose'](),this[_0x3874c0(0x283)]&&this['_eventUnsubscribe']();}[_0x3bd006(0xf7)](){const _0xde7e17=_0x3bd006;var _0xca7615;const {_docSkeleton:_0x27fe7a,_document:_0x487913}=this,{color:_0x1ea4f5,name:_0xc583af,ranges:_0x5350aa}=this[_0xde7e17(0x12a)],_0x35ec05=_0x487913[_0xde7e17(0x362)](),{docsLeft:_0x17ac63,docsTop:_0x5cf6b7}=_0x35ec05,_0x397812=new _0x351b83['NodePositionConvertToCursor'](_0x35ec05,_0x27fe7a);for(const {startOffset:_0x1cd97a,endOffset:_0x273453,rangeType:_0x3751cd,segmentId:_0x500a67,segmentPage:_0xe6691f,collapsed:_0x4e608a,isActive:_0x4e540e}of _0x5350aa){const _0x31c7ef=_0x27fe7a['findNodePositionByCharIndex'](_0x1cd97a,!0x0,_0x500a67,_0xe6691f);let _0x1b54bf=_0x27fe7a['findNodePositionByCharIndex'](_0x273453,!0x0,_0x500a67,_0xe6691f);if(_0x1b54bf==null&&(_0x1b54bf=_0x27fe7a['findNodePositionByCharIndex'](_0x273453-0x1,!0x1,_0x500a67,_0xe6691f)),_0x4e540e){const {contentBoxPointGroup:_0xfb5dff}=_0x397812[_0xde7e17(0x2b0)](_0x1b54bf,_0x1b54bf);if(_0xfb5dff[_0xde7e17(0x35a)]===0x0)continue;this[_0xde7e17(0x24d)](_0x1ea4f5,_0xfb5dff,_0x17ac63,_0x5cf6b7,_0xc583af),this[_0xde7e17(0x283)]=this['_handleHover']();}if(_0x31c7ef&&_0x1b54bf){if(_0x3751cd===_0x3ed267[_0xde7e17(0x24c)]['RECT']){const _0x223a0d=new _0x351b83[(_0xde7e17(0x2cb))](_0x35ec05,_0x27fe7a),{pointGroup:_0x4a5115}=(_0xca7615=_0x223a0d['getRangePointData'](_0x31c7ef,_0x1b54bf))!=null?_0xca7615:{};if(_0x4a5115==null||_0x4a5115[_0xde7e17(0x35a)]===0x0)continue;this[_0xde7e17(0x1ac)](_0x1ea4f5,_0x4a5115,_0x17ac63,_0x5cf6b7);}else{if(!_0x4e608a){const {borderBoxPointGroup:_0x16b0e6}=_0x397812[_0xde7e17(0x2b0)](_0x31c7ef,_0x1b54bf);if(_0x16b0e6[_0xde7e17(0x35a)]===0x0)continue;this[_0xde7e17(0x16f)](_0x1ea4f5,_0x16b0e6,_0x17ac63,_0x5cf6b7);}}}}}[_0x3bd006(0x24d)](_0x46e7af,_0x3c5560,_0x1ac7bc,_0x349c45,_0x3867a2){const _0x77c767=_0x3bd006,_0x4a1af9=this[_0x77c767(0x185)](_0x3c5560),{left:_0x2ccd0a,top:_0x354d28,height:_0x21c79c}=_0x4a1af9,_0x5ba263=this[_0x77c767(0x2ca)](),_0x53cedd=_0x12201d/_0x5ba263,_0x15c4f2=new _0x83c5a7['Rect'](_0x1ac39f+_0x3ed267['generateRandomId'](_0x1cf13e),{'left':_0x2ccd0a+_0x1ac7bc-_0x53cedd,'top':_0x354d28+_0x349c45,'height':_0x21c79c,'width':_0x59f987,'fill':_0x46e7af||_0x83c5a7['getColor'](_0x3ed267['COLORS'][_0x77c767(0x11e)],0x0),'strokeWidth':_0x53cedd,'stroke':_0x11d3c5,'evented':!0x0});this[_0x77c767(0x316)]=_0x15c4f2,this[_0x77c767(0x27f)][_0x77c767(0x267)](_0x15c4f2,_0x351b83[_0x77c767(0x104)]);const _0x6698e8=new _0x83c5a7['Rect'](_0x1ac39f+_0x3ed267['generateRandomId'](_0x1cf13e),{'left':_0x2ccd0a+_0x1ac7bc-_0x53cedd,'top':_0x354d28+_0x349c45-_0x1a4e86/0x2,'height':_0x1a4e86,'width':_0x1a4e86,'fill':_0x46e7af||_0x83c5a7[_0x77c767(0x313)](_0x3ed267[_0x77c767(0x292)][_0x77c767(0x11e)],0x0),'strokeWidth':0x0,'stroke':_0x46e7af||_0x83c5a7[_0x77c767(0x313)](_0x3ed267['COLORS']['black'],0x0),'evented':!0x1});this[_0x77c767(0x21b)]=_0x6698e8,this[_0x77c767(0x27f)][_0x77c767(0x267)](_0x6698e8,_0x351b83['TEXT_RANGE_LAYER_INDEX']);const _0x1bc3c0=new _0x36e54f(_0x1ac39f+_0x3ed267[_0x77c767(0x18c)](_0x1cf13e),{'left':_0x2ccd0a+_0x1ac7bc-_0x53cedd,'top':_0x354d28+_0x349c45-_0x1ba8ec,'text':_0x3867a2,'color':_0x46e7af});this[_0x77c767(0x248)]=_0x1bc3c0,this[_0x77c767(0x27f)][_0x77c767(0x267)](_0x1bc3c0,_0x351b83[_0x77c767(0x104)]),this['_hover']=!0x1;}[_0x3bd006(0x1bb)](){const _0x11a8f1=_0x3bd006,_0x14a786=this[_0x11a8f1(0x316)][_0x11a8f1(0x31d)][_0x11a8f1(0x26e)](()=>{const _0x43d7b4=_0x11a8f1;this[_0x43d7b4(0xe4)]=!0x0;}),_0x4ec34d=this[_0x11a8f1(0x316)][_0x11a8f1(0x111)]['subscribeEvent'](()=>{const _0x2ca8f5=_0x11a8f1;this[_0x2ca8f5(0x1fe)]&&clearTimeout(this['_hideTimer']),this[_0x2ca8f5(0x1fe)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{_0x14a786['unsubscribe'](),_0x4ec34d['unsubscribe']();};}[_0x3bd006(0x16f)](_0x2de1fe,_0x27c7b2,_0x23d14e,_0x202aa9){const _0x58c42c=_0x3bd006,_0x341ad8=new _0x3ed267[(_0x58c42c(0x273))](_0x2de1fe)[_0x58c42c(0x1f4)](0.2)[_0x58c42c(0x269)](),_0x229c1d=new _0x83c5a7[(_0x58c42c(0x31c))](_0x351e3d+_0x3ed267[_0x58c42c(0x18c)](_0x1cf13e),{'pointsGroup':_0x27c7b2,'fill':_0x341ad8||_0x83c5a7[_0x58c42c(0x313)](_0x3ed267['COLORS'][_0x58c42c(0x11e)],0.2),'left':_0x23d14e,'top':_0x202aa9,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x229c1d),this[_0x58c42c(0x27f)]['addObject'](_0x229c1d,_0x351b83[_0x58c42c(0x104)]);}[_0x3bd006(0x1ac)](_0x487215,_0xf63f02,_0x4709a1,_0x442032){const _0x357c48=_0x3bd006,_0x1e1ef1=new _0x3ed267['ColorKit'](_0x487215)[_0x357c48(0x1f4)](0.2)['toRgbString'](),_0x31c07e=new _0x83c5a7[(_0x357c48(0x31c))](_0x18e2f8+_0x3ed267[_0x357c48(0x18c)](_0x1cf13e),{'pointsGroup':_0xf63f02,'fill':_0x1e1ef1||_0x83c5a7[_0x357c48(0x313)](_0x3ed267[_0x357c48(0x292)][_0x357c48(0x11e)],0.2),'left':_0x4709a1,'top':_0x442032,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x357c48(0x188)](_0x31c07e),this['_scene']['addObject'](_0x31c07e,_0x351b83['TEXT_RANGE_LAYER_INDEX']);}[_0x3bd006(0x185)](_0x11eb61){const _0xfcf569=_0x11eb61[0x0],_0x20fa06=_0xfcf569[0x0],_0x22fc8a=_0xfcf569[0x2],{x:_0x345675,y:_0x540fa4}=_0x20fa06,{x:_0x1360f9,y:_0x463040}=_0x22fc8a;return{'left':_0x345675,'top':_0x540fa4,'width':_0x1360f9-_0x345675,'height':_0x463040-_0x540fa4};}[_0x3bd006(0x2ca)](){const _0x2a9d60=_0x3bd006,{scaleX:_0x50dac8,scaleY:_0x4b14d9}=this[_0x2a9d60(0x27f)][_0x2a9d60(0x23d)]();return Math['max'](_0x50dac8,_0x4b14d9);}}var _0x56f330=Object[_0x3bd006(0x303)],_0x352713=(_0xbdcb25,_0x2bc983,_0x18828e,_0x146f45)=>{const _0x3dccd0=_0x3bd006;for(var _0x584aad=_0x146f45>0x1?void 0x0:_0x146f45?_0x56f330(_0x2bc983,_0x18828e):_0x2bc983,_0x2de495=_0xbdcb25[_0x3dccd0(0x35a)]-0x1,_0x529ab6;_0x2de495>=0x0;_0x2de495--)(_0x529ab6=_0xbdcb25[_0x2de495])&&(_0x584aad=_0x529ab6(_0x584aad)||_0x584aad);return _0x584aad;},_0x268e5c=(_0x353e05,_0x152d94)=>(_0x3abb2b,_0x3838da)=>_0x152d94(_0x3abb2b,_0x3838da,_0x353e05);let _0x5cd99a=class extends _0x3ed267[_0x3bd006(0x297)]{constructor(_0x99a2e,_0x41d4e2,_0x4db60e,_0x468ca6,_0x53ff46){const _0x29247c=_0x3bd006;super(),_0x4e10dd(this,_0x29247c(0x229),[]),_0x4e10dd(this,'_cursors',[]),(this['_context']=_0x99a2e,this[_0x29247c(0x339)]=_0x41d4e2,this['_collabCursorController']=_0x4db60e,this[_0x29247c(0x2ed)]=_0x468ca6,this[_0x29247c(0x28e)]=_0x53ff46,this['_init']());}['_init'](){const _0x231e04=_0x3bd006,_0x5251aa=this[_0x231e04(0x31b)][_0x231e04(0x2c2)],_0x55c161=this['_docSkeletonManagerService'];this[_0x231e04(0x11a)](_0x1c33ab[_0x231e04(0x289)]([this[_0x231e04(0x1ee)][_0x231e04(0x1c8)](_0x5251aa),this[_0x231e04(0x28e)]['currentTheme$']])['pipe'](_0x24ffba[_0x231e04(0x249)](([_0x4cda0a,_0x1bede6])=>({'skeleton':_0x55c161['getSkeleton'](),'cursors':[..._0x4cda0a[_0x231e04(0x2bb)]()]['flatMap'](_0x37b469=>({..._0x37b469,'color':this['_themeService']['getColorFromTheme'](_0x37b469[_0x231e04(0x157)])}))})))['subscribe'](_0x33fb1e=>{const _0x1fb95f=_0x231e04;if(this[_0x1fb95f(0x24f)](),_0x33fb1e){const {skeleton:_0x59970a,cursors:_0x38040a}=_0x33fb1e;this[_0x1fb95f(0x18f)](_0x59970a,_0x38040a);}})),this[_0x231e04(0x238)](),this[_0x231e04(0x259)]();}[_0x3bd006(0x18f)](_0x22b30e,_0x441d0e){const _0x25e771=_0x3bd006,{scene:_0x5e1035,mainComponent:_0x365494}=this[_0x25e771(0x31b)],_0x5acd5e=_0x441d0e[_0x25e771(0x249)](_0xa7ca51=>new _0x45c878(_0xa7ca51,_0x5e1035,_0x22b30e,_0x365494));this[_0x25e771(0x229)]=_0x5acd5e,this[_0x25e771(0x25a)]=_0x441d0e;}['_refreshCollabCursors'](){const _0xe3edec=_0x3bd006;this[_0xe3edec(0x24f)]();const {scene:_0x56c57f,mainComponent:_0x3c3084}=this[_0xe3edec(0x31b)],_0x450a98=this[_0xe3edec(0x339)][_0xe3edec(0x1be)](),_0x4b1e5e=this[_0xe3edec(0x25a)][_0xe3edec(0x249)](_0x234e40=>new _0x45c878(_0x234e40,_0x56c57f,_0x450a98,_0x3c3084));this[_0xe3edec(0x229)]=_0x4b1e5e;}[_0x3bd006(0x24f)](){const _0x545a76=_0x3bd006;this[_0x545a76(0x229)][_0x545a76(0x266)](_0x5e5442=>_0x5e5442['dispose']()),this[_0x545a76(0x229)]=[];}[_0x3bd006(0x259)](){const _0x504fec=_0x3bd006,_0x4e388a=[_0x351b83[_0x504fec(0x19c)]['id']];this[_0x504fec(0x11a)](this[_0x504fec(0x2ed)][_0x504fec(0x1cf)](_0x17ac48=>{const _0xa85162=_0x504fec;_0x4e388a[_0xa85162(0x154)](_0x17ac48['id'])&&_0x17ac48[_0xa85162(0x208)][_0xa85162(0x2c2)]===this[_0xa85162(0x31b)]['unitId']&&this[_0xa85162(0x10b)]();}));}['_initResize'](){const _0x116c84=_0x3bd006;this[_0x116c84(0x11a)](_0x3ed267['fromEventSubject'](this[_0x116c84(0x31b)][_0x116c84(0xf2)][_0x116c84(0x2b9)])[_0x116c84(0x1d7)](_0x24ffba[_0x116c84(0x2b4)](_0x52eef7=>_0x52eef7[_0x116c84(0xe2)]===_0x83c5a7['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),_0x24ffba['throttleTime'](0x10))[_0x116c84(0x2fc)](()=>{const _0x3cb701=_0x116c84;this[_0x3cb701(0x10b)]();}));}};_0x5cd99a=_0x352713([_0x268e5c(0x1,_0x3ed267['Inject'](_0x556999[_0x3bd006(0x16e)])),_0x268e5c(0x2,_0x3ed267['Inject'](_0x2ea14f)),_0x268e5c(0x3,_0x3ed267['ICommandService']),_0x268e5c(0x4,_0x3ed267['Inject'](_0x3ed267[_0x3bd006(0x24a)]))],_0x5cd99a);const _0x4cd3df=0x1,_0x4df1f0=1.5;class _0x3c11ea extends _0x83c5a7[_0x3bd006(0x36e)]{constructor(_0x785112,_0x589c5e){const _0x3226e7=_0x3bd006;super(_0x785112,_0x589c5e),_0x4e10dd(this,'_color'),_0x4e10dd(this,_0x3226e7(0xe3),!0x1),_0x4e10dd(this,_0x3226e7(0x143)),_0x4e10dd(this,_0x3226e7(0x239),''),_0x4e10dd(this,'_labelPosition','top'),_0x4e10dd(this,_0x3226e7(0x13e)),(_0x589c5e&&this[_0x3226e7(0x253)](_0x589c5e),this[_0x3226e7(0x31d)][_0x3226e7(0x26e)](()=>this[_0x3226e7(0x253)]({'hovered':!0x0})),this[_0x3226e7(0x111)]['subscribeEvent'](()=>this[_0x3226e7(0x253)]({'hovered':!0x1})));}[_0x3bd006(0x253)](_0x2275b7){const _0x36fa50=_0x3bd006;var _0x5add99,_0x1e8f7d,_0xef2b81,_0x553dda,_0x363b86,_0x169f38;this['_color']=(_0x5add99=_0x2275b7[_0x36fa50(0x157)])!=null?_0x5add99:this[_0x36fa50(0x2a7)],this[_0x36fa50(0xe3)]=(_0x1e8f7d=_0x2275b7[_0x36fa50(0xde)])!=null?_0x1e8f7d:this[_0x36fa50(0xe3)],this[_0x36fa50(0x143)]=(_0xef2b81=_0x2275b7[_0x36fa50(0x2c1)])!=null?_0xef2b81:this[_0x36fa50(0x143)],this[_0x36fa50(0x239)]=(_0x553dda=_0x2275b7[_0x36fa50(0x302)])!=null?_0x553dda:this[_0x36fa50(0x239)],this['_labelPosition']=(_0x363b86=_0x2275b7['labelPosition'])!=null?_0x363b86:this[_0x36fa50(0x1ef)],this[_0x36fa50(0x13e)]=(_0x169f38=_0x2275b7[_0x36fa50(0x2ae)])!=null?_0x169f38:this[_0x36fa50(0x13e)],this[_0x36fa50(0x36b)]({'width':_0x2275b7[_0x36fa50(0x2b3)],'height':_0x2275b7[_0x36fa50(0x34a)]});}[_0x3bd006(0x2d2)](_0x15977d){const _0x2739d1=_0x3bd006,{row:_0x151af5,column:_0x544214}=_0x15977d;if(_0x151af5>=this[_0x2739d1(0x143)][_0x2739d1(0x230)]&&_0x151af5<=this[_0x2739d1(0x143)]['endRow']&&_0x544214>=this[_0x2739d1(0x143)][_0x2739d1(0x317)]&&_0x544214<=this[_0x2739d1(0x143)][_0x2739d1(0x326)]){this[_0x2739d1(0x253)]({'hovered':!0x0});return;}this[_0x2739d1(0x253)]({'hovered':!0x1});}['triggerDblclick'](_0x304743){return!0x1;}['_draw'](_0x18ee87){const _0x461b4e=_0x3bd006;_0x83c5a7[_0x461b4e(0x15e)][_0x461b4e(0x2ee)](_0x18ee87,{'width':this[_0x461b4e(0x2b3)],'height':this[_0x461b4e(0x34a)],'strokeWidth':_0x4df1f0,'stroke':this[_0x461b4e(0x2a7)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x18ee87[_0x461b4e(0x2cf)](),_0x18ee87[_0x461b4e(0x309)](0x1,0x0,0x0,0x1,this[_0x461b4e(0x2b3)],this[_0x461b4e(0x1ef)]===_0x461b4e(0x270)?0x0:-_0x1ba8ec),_0x36e54f[_0x461b4e(0x2ee)](_0x18ee87,{'text':this[_0x461b4e(0x239)],'color':this[_0x461b4e(0x2a7)]}),_0x18ee87[_0x461b4e(0x306)]());}}var _0x268555=Object[_0x3bd006(0x303)],_0x226e9e=(_0x26c7ac,_0x3de1bf,_0x1c1008,_0xe57d96)=>{for(var _0x6d60c4=_0xe57d96>0x1?void 0x0:_0xe57d96?_0x268555(_0x3de1bf,_0x1c1008):_0x3de1bf,_0x1d40e7=_0x26c7ac['length']-0x1,_0x1d41f3;_0x1d40e7>=0x0;_0x1d40e7--)(_0x1d41f3=_0x26c7ac[_0x1d40e7])&&(_0x6d60c4=_0x1d41f3(_0x6d60c4)||_0x6d60c4);return _0x6d60c4;},_0x499585=(_0x98de60,_0x1ffc8e)=>(_0x5ba840,_0x2ce211)=>_0x1ffc8e(_0x5ba840,_0x2ce211,_0x98de60);const _0xa4dd60=0x1389;let _0x1e60a1=class extends _0x3ed267[_0x3bd006(0x297)]{constructor(_0x46fc22,_0x3da785,_0x701d61,_0x5d72d0){const _0x572460=_0x3bd006;super(),_0x4e10dd(this,_0x572460(0x25a),new Set()),_0x4e10dd(this,_0x572460(0x357),null),(this[_0x572460(0x31b)]=_0x46fc22,this['_sheetSkeletonManagerService']=_0x3da785,this[_0x572460(0x1ee)]=_0x701d61,this[_0x572460(0x28e)]=_0x5d72d0,this[_0x572460(0x1d8)]());}[_0x3bd006(0x1d8)](){const _0x396218=_0x3bd006;this[_0x396218(0x32a)][_0x396218(0x22f)][_0x396218(0x1d7)](_0x24ffba[_0x396218(0x168)](this[_0x396218(0x108)]),_0x24ffba['switchMap'](_0x374241=>{const _0x40961a=_0x396218;if(_0x374241){const _0x5bf3b2=_0x374241[_0x40961a(0x1d3)];return _0x1c33ab['combineLatest'](this[_0x40961a(0x1ee)][_0x40961a(0x1c8)](this[_0x40961a(0x31b)]['unitId']),this[_0x40961a(0x28e)][_0x40961a(0x176)])[_0x40961a(0x1d7)](_0x24ffba['map'](([_0x596b35,_0x412b34])=>{const _0x13d475=_0x40961a,_0x8b28ce=new Map();return _0x596b35[_0x13d475(0x266)]((_0x455098,_0x257fbf)=>{const _0x3fde4b=_0x13d475;if(_0x455098[_0x3fde4b(0x1d6)]===_0x5bf3b2){const _0x48fb57={..._0x455098};_0x48fb57[_0x3fde4b(0x157)]=this['_themeService'][_0x3fde4b(0x258)](_0x455098['color']),_0x8b28ce['set'](_0x257fbf,_0x48fb57);}}),{'skeleton':_0x374241,'cursors':_0x8b28ce};}));}return _0x1c33ab['of']({'skeleton':null,'cursors':new Map()});}))[_0x396218(0x2fc)](({skeleton:_0x512afc,cursors:_0x35e5e0})=>{this['_removeCollabCursors'](),_0x512afc&&this['_updateCollabCursors'](_0x512afc,_0x35e5e0);}),this[_0x396218(0x32a)][_0x396218(0x22f)][_0x396218(0x2fc)](_0x2b2a55=>{const _0x271bee=_0x396218;if(_0x2b2a55==null)return;const {skeleton:_0x4436d2}=_0x2b2a55,{scene:_0x1ac6fe}=this[_0x271bee(0x31b)];_0x1ac6fe[_0x271bee(0x103)][_0x271bee(0x26e)](_0x3ed267[_0x271bee(0x35f)](_0x80e683=>{const _0x49d2f9=_0x271bee;var _0x4bbfdd,_0x93ba31;const {offsetX:_0x231bd0,offsetY:_0x368332}=_0x80e683,{x:_0x156714,y:_0x4761b6}=_0x1ac6fe[_0x49d2f9(0x107)](_0x83c5a7[_0x49d2f9(0x286)][_0x49d2f9(0x28f)]([_0x231bd0,_0x368332])),{scaleX:_0x136164,scaleY:_0x560524}=_0x1ac6fe[_0x49d2f9(0x23d)](),_0x11a8a4=_0x1ac6fe[_0x49d2f9(0x2a6)](_0x83c5a7[_0x49d2f9(0x28d)][_0x49d2f9(0x10a)]),_0x16a9e7=_0x1ac6fe['getVpScrollXYInfoByPosToVp'](_0x83c5a7[_0x49d2f9(0x286)][_0x49d2f9(0x28f)]([_0x156714,_0x4761b6]),_0x11a8a4),_0xd564c1=_0x4436d2[_0x49d2f9(0x1b6)](_0x231bd0,_0x368332,_0x136164,_0x560524,_0x16a9e7);((_0x4bbfdd=this[_0x49d2f9(0x357)])==null?void 0x0:_0x4bbfdd[_0x49d2f9(0xdf)])===_0xd564c1[_0x49d2f9(0xdf)]&&((_0x93ba31=this[_0x49d2f9(0x357)])==null?void 0x0:_0x93ba31[_0x49d2f9(0x2b1)])===_0xd564c1[_0x49d2f9(0x2b1)]||this[_0x49d2f9(0x25a)]['forEach'](_0x50b4a5=>{const _0x2cc35e=_0x49d2f9;_0x50b4a5[_0x2cc35e(0x2d2)](_0xd564c1);});},0x64));});}[_0x3bd006(0x18f)](_0x129c7c,_0x4720e4){const _0xa93781=_0x3bd006;var _0x596007;const _0x3be8bd=(_0x596007=this[_0xa93781(0x32a)][_0xa93781(0x19f)]())==null?void 0x0:_0x596007[_0xa93781(0x17a)];if(!_0x3be8bd)return;const _0x434e8c=this[_0xa93781(0xf1)]();if(!_0x434e8c)return;this[_0xa93781(0x25a)][_0xa93781(0x266)](_0x16d766=>{_0x16d766['makeDirty']();});const {scene:_0x3427c8}=_0x434e8c,_0xda8c3e=_0x3f51d5(Array[_0xa93781(0x1ed)](_0x4720e4[_0xa93781(0x2bb)]()))[_0xa93781(0x249)](_0x567e2c=>{const _0x1a96dd=_0xa93781,{color:_0x5897c1,range:_0x5a94aa,name:_0x6cc5d1,selection:_0x267632,sheetID:_0x4454dc}=_0x567e2c,{startColumn:_0x55e0e6,startRow:_0x28d989,endColumn:_0x3c8bbb,endRow:_0x13c942}=_0x5a94aa,_0x503333=_0x2cf434[_0x1a96dd(0xfb)](_0x28d989,_0x55e0e6,_0x3427c8,_0x3be8bd),_0xf90c55=_0x2cf434[_0x1a96dd(0xfb)](_0x13c942,_0x3c8bbb,_0x3427c8,_0x3be8bd),{columnHeaderHeightAndMarginTop:_0x58aa5a}=_0x3be8bd,{startX:_0x29c80d,startY:_0x314f4e}=_0x503333,{endX:_0x17ed0d,endY:_0xa341ba}=_0xf90c55,_0x14d0ed=_0x17ed0d-_0x29c80d,_0x428b96=_0xa341ba-_0x314f4e,_0x415612={'labelPosition':_0x314f4e-_0x58aa5a>=_0x1ba8ec?'top':_0x1a96dd(0x270),'sheetID':_0x4454dc,'range':_0x5a94aa,'color':_0x5897c1,'name':_0x6cc5d1,'selection':_0x267632,'left':_0x29c80d,'top':_0x314f4e,'width':_0x14d0ed,'height':_0x428b96,'evented':!0x1,'zIndex':_0xa4dd60};return new _0x3c11ea(_0x6cc5d1,_0x415612);});_0x3427c8[_0xa93781(0x2a3)](_0xda8c3e,_0x4cd3df),this['_cursors']=new Set(_0xda8c3e);}[_0x3bd006(0x24f)](){const _0x5673ef=_0x3bd006;var _0x15a03e;(_0x15a03e=this['_cursors'])==null||_0x15a03e['forEach'](_0x23dcac=>_0x23dcac[_0x5673ef(0xf9)]());}[_0x3bd006(0xf1)](){const _0x9d4389=_0x3bd006;return _0x2cf434[_0x9d4389(0x2c5)](this[_0x9d4389(0x31b)][_0x9d4389(0x2f1)],this[_0x9d4389(0x31b)]);}};_0x1e60a1=_0x226e9e([_0x499585(0x1,_0x3ed267[_0x3bd006(0x2af)](_0x2cf434[_0x3bd006(0x220)])),_0x499585(0x2,_0x3ed267[_0x3bd006(0x2af)](_0x2ea14f)),_0x499585(0x3,_0x3ed267['Inject'](_0x3ed267['ThemeService']))],_0x1e60a1);function _0x3f51d5(_0x1e6d70){const _0xb3f58f=_0x3bd006,_0x2c9f60=new Map();return _0x1e6d70[_0xb3f58f(0x266)](_0x5da64a=>{const _0x524ca6=_0xb3f58f;if(_0x2c9f60[_0x524ca6(0x22e)](_0x5da64a['selection'])){const _0x2f1533=_0x2c9f60[_0x524ca6(0x20d)](_0x5da64a['selection']);_0x2f1533[_0x524ca6(0x302)]+=',\x20'+_0x5da64a[_0x524ca6(0x302)];}else _0x2c9f60[_0x524ca6(0x247)](_0x5da64a[_0x524ca6(0x2e9)],_0x5da64a);}),Array[_0xb3f58f(0x1ed)](_0x2c9f60[_0xb3f58f(0x2bb)]());}var _0x509803=Object['getOwnPropertyDescriptor'],_0x29e933=(_0x56bcec,_0x27bc6b,_0x5a08e2,_0x435df4)=>{const _0x4b0d5f=_0x3bd006;for(var _0x2946e8=_0x435df4>0x1?void 0x0:_0x435df4?_0x509803(_0x27bc6b,_0x5a08e2):_0x27bc6b,_0x37a50b=_0x56bcec[_0x4b0d5f(0x35a)]-0x1,_0x5681e4;_0x37a50b>=0x0;_0x37a50b--)(_0x5681e4=_0x56bcec[_0x37a50b])&&(_0x2946e8=_0x5681e4(_0x2946e8)||_0x2946e8);return _0x2946e8;},_0x3c702f=(_0x28f0fd,_0x43740c)=>(_0x3d9f34,_0x5a7d0a)=>_0x43740c(_0x3d9f34,_0x5a7d0a,_0x28f0fd);let _0x267ee7=class extends _0x3ed267[_0x3bd006(0xe9)]{constructor(_0x970f80,_0x18985e,_0x218e85,_0xaf49b6,_0x5bebec,_0x20d2ff){const _0x417495=_0x3bd006;super(),this['_beforeCloseService']=_0x970f80,this[_0x417495(0x23e)]=_0x18985e,this[_0x417495(0x140)]=_0x218e85,this[_0x417495(0x212)]=_0xaf49b6,this[_0x417495(0x1cc)]=_0x5bebec,this[_0x417495(0x1b9)]=_0x20d2ff,this['_setupBeforeClosingHandler'](),this[_0x417495(0x214)]();}['_setupBeforeClosingHandler'](){const _0x3d53b3=_0x3bd006;this[_0x3d53b3(0x11a)](this[_0x3d53b3(0x305)][_0x3d53b3(0x19d)](()=>{const _0x2abf58=_0x3d53b3;if(this[_0x2abf58(0x23e)][_0x2abf58(0x375)]['size'])return this[_0x2abf58(0x1b9)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x3bd006(0x214)](){const _0x19c7a8=_0x3bd006;this['disposeWithMe'](this[_0x19c7a8(0x140)]['event$']['subscribe'](_0x257e8f=>{const _0x50d4d2=_0x19c7a8;_0x257e8f['id']===_0x207d2b[_0x50d4d2(0x24b)][_0x50d4d2(0x330)]&&this[_0x50d4d2(0x212)][_0x50d4d2(0x182)]({'type':_0x8cae8d['MessageType'][_0x50d4d2(0x1b8)],'content':this[_0x50d4d2(0x1b9)]['t']('collaboration.single-unit.warning')}),_0x257e8f['id']===_0x207d2b[_0x50d4d2(0x24b)][_0x50d4d2(0x26d)]&&this[_0x50d4d2(0x212)][_0x50d4d2(0x182)]({'type':_0x8cae8d[_0x50d4d2(0x2f3)][_0x50d4d2(0x1b8)],'content':this[_0x50d4d2(0x1b9)]['t'](_0x50d4d2(0x226))}),_0x257e8f['id']===_0x207d2b[_0x50d4d2(0x24b)][_0x50d4d2(0x245)]&&this[_0x50d4d2(0x1cc)][_0x50d4d2(0x182)]({'title':this[_0x50d4d2(0x1b9)]['t'](_0x50d4d2(0x2f7)),'content':this[_0x50d4d2(0x1b9)]['t'](_0x50d4d2(0x2fd)),'type':_0x50d4d2(0x361),'duration':0x0}),_0x257e8f['id']===_0x207d2b[_0x50d4d2(0x24b)][_0x50d4d2(0xec)]&&this[_0x50d4d2(0x212)][_0x50d4d2(0x182)]({'type':_0x8cae8d[_0x50d4d2(0x2f3)][_0x50d4d2(0x364)],'content':this['_localeService']['t'](_0x50d4d2(0x226))+'('+_0x257e8f[_0x50d4d2(0xed)]+')'}),_0x257e8f['id']===_0x207d2b['CollaborationUIEventId'][_0x50d4d2(0x298)]&&this[_0x50d4d2(0x212)][_0x50d4d2(0x182)]({'type':_0x8cae8d[_0x50d4d2(0x2f3)][_0x50d4d2(0x1b8)],'content':this[_0x50d4d2(0x1b9)]['t'](_0x257e8f[_0x50d4d2(0xed)]||'')}),_0x257e8f['id']===_0x207d2b['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':_0x8cae8d[_0x50d4d2(0x2f3)][_0x50d4d2(0x1b8)],'content':this[_0x50d4d2(0x1b9)]['t'](_0x50d4d2(0x128))}),_0x257e8f['id']===_0x207d2b[_0x50d4d2(0x24b)][_0x50d4d2(0x301)]&&this['_messageService']['show']({'type':_0x8cae8d[_0x50d4d2(0x2f3)]['Error'],'content':this[_0x50d4d2(0x1b9)]['t'](_0x50d4d2(0x151))}),_0x257e8f['id']===_0x207d2b[_0x50d4d2(0x24b)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x50d4d2(0x212)][_0x50d4d2(0x182)]({'type':_0x8cae8d[_0x50d4d2(0x2f3)]['Error'],'content':this[_0x50d4d2(0x1b9)]['t'](_0x50d4d2(0x2a0))});}));}};_0x267ee7=_0x29e933([_0x3c702f(0x0,_0x1a0cb9[_0x3bd006(0x1c9)]),_0x3c702f(0x1,_0x207d2b[_0x3bd006(0x1ad)]),_0x3c702f(0x2,_0x3ed267['Inject'](_0x207d2b['CollaborationUIEventService'])),_0x3c702f(0x3,_0x1a0cb9[_0x3bd006(0x163)]),_0x3c702f(0x4,_0x1a0cb9['INotificationService']),_0x3c702f(0x5,_0x3ed267[_0x3bd006(0x2af)](_0x3ed267[_0x3bd006(0x22d)]))],_0x267ee7);const _0x403e0c=_0x3bd006(0x14c),_0x442aeb={};var _0x420ad5=Object[_0x3bd006(0x303)],_0x440379=(_0x25e74d,_0x2db9cc,_0x7bbc9b,_0x592876)=>{const _0x222bb3=_0x3bd006;for(var _0x3c3337=_0x592876>0x1?void 0x0:_0x592876?_0x420ad5(_0x2db9cc,_0x7bbc9b):_0x2db9cc,_0x5eaa05=_0x25e74d[_0x222bb3(0x35a)]-0x1,_0x8ab212;_0x5eaa05>=0x0;_0x5eaa05--)(_0x8ab212=_0x25e74d[_0x5eaa05])&&(_0x3c3337=_0x8ab212(_0x3c3337)||_0x3c3337);return _0x3c3337;},_0x4bce0e=(_0x16c921,_0x4ba6fc)=>(_0x38d32a,_0x3d1d8e)=>_0x4ba6fc(_0x38d32a,_0x3d1d8e,_0x16c921);let _0x20e323=class{constructor(_0x498139,_0x41700f){const _0x39ed60=_0x3bd006;this[_0x39ed60(0x32c)]=_0x498139,this[_0x39ed60(0x1dc)]=_0x41700f;}[_0x3bd006(0x271)](_0x178120){const _0x5d7bc9=_0x3bd006;this[_0x5d7bc9(0x1f5)](_0x178120),this[_0x5d7bc9(0x30b)](_0x178120);}[_0x3bd006(0x2d1)](_0x45a908){const _0x1de2c0=_0x3bd006,{unitID:_0x5df018}=_0x45a908,_0x130d03=this[_0x1de2c0(0x1dc)]['getRenderById'](_0x5df018)['with'](_0x351b83[_0x1de2c0(0x2a5)]),{redoCache:_0x14932c}=_0x130d03[_0x1de2c0(0x1f9)]();if(_0x14932c[_0x1de2c0(0x35a)]===0x0)return _0x45a908;let _0x1eb61c=_0x3ed267[_0x1de2c0(0x1a2)][_0x1de2c0(0x2ec)](_0x45a908[_0x1de2c0(0x211)][0x0]);for(let _0x4be1a2=0x0;_0x4be1a2<_0x14932c[_0x1de2c0(0x35a)];_0x4be1a2++){const _0x588330={'id':_0x1de2c0(0x236),'params':{..._0x14932c[_0x4be1a2]}},_0x3f72c1=this[_0x1de2c0(0x32c)]['transformMutation'](_0x1eb61c,_0x588330,!0x1);if(_0x585638[_0x1de2c0(0x16d)](_0x3f72c1))throw _0x3f72c1['error'];_0x1eb61c=_0x3f72c1[_0x1de2c0(0x34b)];}return{..._0x3ed267[_0x1de2c0(0x1a2)][_0x1de2c0(0x2ec)](_0x45a908),'mutations':[_0x1eb61c]};}['_transformUndoRedoStack'](_0x213f5a){const _0x15ee7d=_0x3bd006,{unitID:_0x1f8ecd}=_0x213f5a,_0x510cc3=this[_0x15ee7d(0x1dc)][_0x15ee7d(0x167)](_0x1f8ecd)[_0x15ee7d(0x17c)](_0x351b83[_0x15ee7d(0x2a5)]),{undoCache:_0x4e819b,redoCache:_0x33a5fb}=_0x510cc3[_0x15ee7d(0x1f9)]();if(_0x4e819b[_0x15ee7d(0x35a)]===0x0||_0x33a5fb[_0x15ee7d(0x35a)]===0x0)return;const _0x4f8e0b=[],_0x259e91=[];let _0xe4433f=_0x3ed267[_0x15ee7d(0x1a2)][_0x15ee7d(0x2ec)](_0x213f5a['mutations'][0x0]),_0x352368=_0x3ed267['Tools'][_0x15ee7d(0x2ec)](_0x213f5a['mutations'][0x0]);for(let _0x4d1944=_0x4e819b['length']-0x1;_0x4d1944>=0x0;_0x4d1944--){const _0x48d64f={'id':_0x15ee7d(0x236),'params':{..._0x4e819b[_0x4d1944]}},_0x908784={'id':_0x15ee7d(0x236),'params':{..._0x33a5fb[_0x4d1944]}},_0x1d1402=this[_0x15ee7d(0x32c)]['transformMutation'](_0xe4433f,_0x48d64f,!0x1),_0x5614b1=this[_0x15ee7d(0x32c)][_0x15ee7d(0x1f7)](_0x352368,_0x908784,!0x1);if(_0x585638[_0x15ee7d(0x16d)](_0x1d1402))throw _0x1d1402[_0x15ee7d(0x361)];if(_0x585638[_0x15ee7d(0x16d)](_0x5614b1))throw _0x5614b1['error'];_0x4f8e0b[_0x15ee7d(0x1e9)](_0x1d1402[_0x15ee7d(0x1e5)][_0x15ee7d(0x208)]),_0x259e91['unshift'](_0x5614b1['m2Prime'][_0x15ee7d(0x208)]),_0xe4433f=_0x1d1402[_0x15ee7d(0x34b)],_0x352368=_0x5614b1['m1Prime'];}_0x510cc3[_0x15ee7d(0x10e)]({'undoCache':_0x4f8e0b,'redoCache':_0x259e91});}[_0x3bd006(0x30b)](_0x2cf237){const _0x472ba7=_0x3bd006,{unitID:_0x518f15}=_0x2cf237,_0x46b167=this[_0x472ba7(0x1dc)]['getRenderById'](_0x518f15)[_0x472ba7(0x17c)](_0x351b83[_0x472ba7(0x2a5)]),_0xe31697=_0x46b167[_0x472ba7(0x345)]();if(_0xe31697==null)return;const _0x53d87e=[{'id':_0x472ba7(0x236),'params':{'unitId':_0x2cf237[_0x472ba7(0x144)],'actions':null,'textRanges':[_0xe31697]}}],_0x4312cb=this[_0x472ba7(0x32c)]['transformMutationsWithChangeset'](_0x2cf237,_0x53d87e);if(!_0x585638[_0x472ba7(0x2b7)](_0x4312cb))throw _0x4312cb[_0x472ba7(0x361)];const _0x50d37b=_0x4312cb['m2Prime'][0x0][_0x472ba7(0x208)]['textRanges'];Array[_0x472ba7(0x18b)](_0x50d37b)&&_0x50d37b[_0x472ba7(0x35a)]&&_0x46b167[_0x472ba7(0x146)](_0x50d37b[0x0]);}};_0x20e323=_0x440379([_0x4bce0e(0x0,_0x585638[_0x3bd006(0x310)]),_0x4bce0e(0x1,_0x83c5a7[_0x3bd006(0xf4)])],_0x20e323);var _0x14a63b=Object[_0x3bd006(0x303)],_0xea58ad=(_0x2b75d3,_0x492990,_0x57f573,_0x6517dc)=>{const _0x21c2ce=_0x3bd006;for(var _0x3d435a=_0x6517dc>0x1?void 0x0:_0x6517dc?_0x14a63b(_0x492990,_0x57f573):_0x492990,_0x5076b9=_0x2b75d3[_0x21c2ce(0x35a)]-0x1,_0x58935c;_0x5076b9>=0x0;_0x5076b9--)(_0x58935c=_0x2b75d3[_0x5076b9])&&(_0x3d435a=_0x58935c(_0x3d435a)||_0x3d435a);return _0x3d435a;},_0x529b03=(_0x290a5a,_0x2ffdde)=>(_0x263d58,_0x1d6839)=>_0x2ffdde(_0x263d58,_0x1d6839,_0x290a5a);let _0x5e5ec5=class{constructor(_0x443d03,_0x1327bc,_0x526d74){const _0x50cdc1=_0x3bd006;this[_0x50cdc1(0x221)]=_0x443d03,this[_0x50cdc1(0x32c)]=_0x1327bc,this[_0x50cdc1(0x206)]=_0x526d74;}[_0x3bd006(0x2bc)](_0x10186b){const _0x5d97cf=_0x3bd006;this[_0x5d97cf(0x1f8)](_0x10186b);}['transformRemoteChangeset'](_0x2c5523){const _0x2bf0e7=_0x3bd006,{unitID:_0x5a592d}=_0x2c5523,{collaboration:_0x182aa1}=this[_0x2bf0e7(0x206)][_0x2bf0e7(0x199)](_0x5a592d);if(_0x182aa1[_0x2bf0e7(0x35a)]===0x0)return _0x2c5523;let _0x3d22fe=_0x3ed267[_0x2bf0e7(0x1a2)][_0x2bf0e7(0x2ec)](_0x2c5523[_0x2bf0e7(0x211)][0x0]);for(let _0xab7d58=0x0;_0xab7d58<_0x182aa1['length'];_0xab7d58++){const _0x163b2d={'id':_0x2bf0e7(0x236),'params':{'unitId':_0x182aa1[_0xab7d58][_0x2bf0e7(0x2c2)],..._0x182aa1[_0xab7d58][_0x2bf0e7(0x358)]}},_0x1efb4a=this[_0x2bf0e7(0x32c)][_0x2bf0e7(0x1f7)](_0x3d22fe,_0x163b2d,!0x1);if(_0x585638['isTransformMutationFailure'](_0x1efb4a))throw _0x1efb4a['error'];_0x3d22fe=_0x1efb4a[_0x2bf0e7(0x34b)];}return{..._0x3ed267[_0x2bf0e7(0x1a2)][_0x2bf0e7(0x2ec)](_0x2c5523),'mutations':[_0x3d22fe]};}['_transformHistoryAndStateStack'](_0x228132){const _0x145b0a=_0x3bd006,{unitID:_0x23c06d}=_0x228132,{history:_0x33868f,collaboration:_0x4ee0f2}=this['_docStateChangeManagerService'][_0x145b0a(0x199)](_0x23c06d);if(_0x33868f[_0x145b0a(0x35a)]===0x0&&_0x4ee0f2['length']===0x0)return;const _0x107f44=[],_0x590c76=[];let _0x668e73=_0x3ed267['Tools'][_0x145b0a(0x2ec)](_0x228132['mutations'][0x0]),_0x34dab8=_0x3ed267[_0x145b0a(0x1a2)][_0x145b0a(0x2ec)](_0x228132[_0x145b0a(0x211)][0x0]);for(let _0x182b6c=_0x33868f[_0x145b0a(0x35a)]-0x1;_0x182b6c>=0x0;_0x182b6c--){const _0x146431={'id':_0x145b0a(0x236),'params':{'unitId':_0x33868f[_0x182b6c]['unitId'],..._0x33868f[_0x182b6c][_0x145b0a(0x2ff)]}},_0xfc37e6={'id':_0x145b0a(0x236),'params':{'unitId':_0x33868f[_0x182b6c][_0x145b0a(0x2c2)],..._0x33868f[_0x182b6c][_0x145b0a(0x358)]}},_0x3a0685=this[_0x145b0a(0x32c)][_0x145b0a(0x1f7)](_0x668e73,_0x146431,!0x1),_0x424b06=this[_0x145b0a(0x32c)][_0x145b0a(0x1f7)](_0x34dab8,_0xfc37e6,!0x1);if(_0x585638[_0x145b0a(0x16d)](_0x3a0685))throw _0x3a0685[_0x145b0a(0x361)];if(_0x585638[_0x145b0a(0x16d)](_0x424b06))throw _0x424b06['error'];_0x107f44['unshift']({..._0x33868f[_0x182b6c],'undoState':_0x3a0685['m2Prime']['params'],'redoState':_0x424b06[_0x145b0a(0x1e5)]['params']}),_0x668e73=_0x3a0685[_0x145b0a(0x34b)],_0x34dab8=_0x424b06['m1Prime'];}_0x668e73=_0x3ed267[_0x145b0a(0x1a2)][_0x145b0a(0x2ec)](_0x228132[_0x145b0a(0x211)][0x0]),_0x34dab8=_0x3ed267['Tools']['deepClone'](_0x228132[_0x145b0a(0x211)][0x0]);for(let _0x22c790=_0x4ee0f2[_0x145b0a(0x35a)]-0x1;_0x22c790>=0x0;_0x22c790--){const _0x258692={'id':_0x145b0a(0x236),'params':{'unitId':_0x4ee0f2[_0x22c790]['unitId'],..._0x4ee0f2[_0x22c790][_0x145b0a(0x2ff)]}},_0x10758d={'id':_0x145b0a(0x236),'params':{'unitId':_0x4ee0f2[_0x22c790][_0x145b0a(0x2c2)],..._0x4ee0f2[_0x22c790][_0x145b0a(0x358)]}},_0x14e043=this['_transformService']['transformMutation'](_0x668e73,_0x258692,!0x1),_0x49200f=this[_0x145b0a(0x32c)][_0x145b0a(0x1f7)](_0x34dab8,_0x10758d,!0x1);if(_0x585638[_0x145b0a(0x16d)](_0x14e043))throw _0x14e043[_0x145b0a(0x361)];if(_0x585638[_0x145b0a(0x16d)](_0x49200f))throw _0x49200f['error'];_0x590c76[_0x145b0a(0x1e9)]({..._0x4ee0f2[_0x22c790],'undoState':_0x14e043[_0x145b0a(0x1e5)][_0x145b0a(0x208)],'redoState':_0x49200f['m2Prime'][_0x145b0a(0x208)]}),_0x668e73=_0x14e043[_0x145b0a(0x34b)],_0x34dab8=_0x49200f[_0x145b0a(0x34b)];}this[_0x145b0a(0x206)][_0x145b0a(0x118)](_0x23c06d,{'history':_0x107f44,'collaboration':_0x590c76});}};_0x5e5ec5=_0xea58ad([_0x529b03(0x0,_0x3ed267[_0x3bd006(0x2af)](_0x3ed267[_0x3bd006(0x1f1)])),_0x529b03(0x1,_0x585638[_0x3bd006(0x310)]),_0x529b03(0x2,_0x3ed267[_0x3bd006(0x2af)](_0x351b83[_0x3bd006(0x1da)]))],_0x5e5ec5);var _0x21aaf8=Object[_0x3bd006(0x303)],_0xb270af=(_0x892d85,_0x1ce7b0,_0x4ebcbf,_0x22f73c)=>{const _0x1efa83=_0x3bd006;for(var _0x5e6a16=_0x22f73c>0x1?void 0x0:_0x22f73c?_0x21aaf8(_0x1ce7b0,_0x4ebcbf):_0x1ce7b0,_0x32ced8=_0x892d85[_0x1efa83(0x35a)]-0x1,_0x35cca7;_0x32ced8>=0x0;_0x32ced8--)(_0x35cca7=_0x892d85[_0x32ced8])&&(_0x5e6a16=_0x35cca7(_0x5e6a16)||_0x5e6a16);return _0x5e6a16;},_0x204f84=(_0x165fd1,_0x2d576a)=>(_0x250626,_0x2f4a39)=>_0x2d576a(_0x250626,_0x2f4a39,_0x165fd1);let _0xec3be6=class{constructor(_0x133da2,_0x2b6ede){const _0x537fc5=_0x3bd006;this[_0x537fc5(0x221)]=_0x133da2,this[_0x537fc5(0x32c)]=_0x2b6ede;}['transformSelections'](_0x4ad9aa){const _0x385ec3=_0x3bd006;var _0x4e39e1;const _0x6772e4=this[_0x385ec3(0x221)][_0x385ec3(0x20d)](_0x556999['DocSelectionManagerService']),_0x20ad1e=(_0x4e39e1=_0x6772e4[_0x385ec3(0x2d5)]())!=null?_0x4e39e1:[];if(_0x20ad1e[_0x385ec3(0x35a)]===0x0)return;const _0x3b7491=_0x4ad9aa[_0x385ec3(0x144)],_0x320bb8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b7491,'actions':null,'textRanges':_0x20ad1e}}],_0x500251=this[_0x385ec3(0x32c)]['transformMutationsWithChangeset'](_0x4ad9aa,_0x320bb8);if(!_0x585638[_0x385ec3(0x2b7)](_0x500251))throw _0x500251[_0x385ec3(0x361)];const _0x3734a7=_0x500251[_0x385ec3(0x1e5)][0x0]['params']['textRanges'];Array['isArray'](_0x3734a7)&&_0x3734a7[_0x385ec3(0x35a)]&&_0x6772e4['replaceDocRanges'](_0x3734a7,{'unitId':_0x3b7491,'subUnitId':_0x3b7491},!0x1);}};_0xec3be6=_0xb270af([_0x204f84(0x0,_0x3ed267[_0x3bd006(0x2af)](_0x3ed267[_0x3bd006(0x1f1)])),_0x204f84(0x1,_0x585638[_0x3bd006(0x310)])],_0xec3be6);var _0x16b686=Object[_0x3bd006(0x303)],_0x2214d4=(_0x187b14,_0x356665,_0x2e750e,_0x43c5f7)=>{for(var _0x1321ac=_0x43c5f7>0x1?void 0x0:_0x43c5f7?_0x16b686(_0x356665,_0x2e750e):_0x356665,_0x33449a=_0x187b14['length']-0x1,_0x5b8263;_0x33449a>=0x0;_0x33449a--)(_0x5b8263=_0x187b14[_0x33449a])&&(_0x1321ac=_0x5b8263(_0x1321ac)||_0x1321ac);return _0x1321ac;},_0x38cbf5=(_0x2f0951,_0x308d7a)=>(_0x3b14fe,_0x5b2f84)=>_0x308d7a(_0x3b14fe,_0x5b2f84,_0x2f0951);let _0x2af404=class extends _0x3ed267[_0x3bd006(0xe9)]{constructor(_0x3e8022,_0xec1adc,_0x1cb362,_0x709822,_0x583647,_0x31df31,_0x181730,_0x29f5c5){const _0x4826fe=_0x3bd006;super(),_0x4e10dd(this,_0x4826fe(0x251),new _0x1c33ab[(_0x4826fe(0x2d0))](_0x207d2b[_0x4826fe(0x243)][_0x4826fe(0x374)])),(this['_docStateChangeManagerService']=_0x3e8022,this['_collaborationController']=_0xec1adc,this[_0x4826fe(0x1de)]=_0x1cb362,this[_0x4826fe(0x2d9)]=_0x709822,this[_0x4826fe(0x23b)]=_0x583647,this['_docSyncEditingCollabCursorService']=_0x31df31,this[_0x4826fe(0x212)]=_0x181730,this[_0x4826fe(0x1b9)]=_0x29f5c5,this[_0x4826fe(0x25e)]());}[_0x3bd006(0x25e)](){const _0x4ff97f=_0x3bd006;this[_0x4ff97f(0x11a)](this['_collaborationController'][_0x4ff97f(0x1c5)][_0x4ff97f(0x2fc)](_0x20ffae=>{const _0xb5908e=_0x4ff97f,_0x3b4675=this['_docStateChangeManagerService'][_0xb5908e(0x26a)][_0xb5908e(0x2fc)](_0x599a47=>{const _0x4562b3=_0xb5908e;if(_0x599a47==null)return;const {unitId:_0x40aab9,redoState:_0x30e9c6,commandId:_0x9be6be}=_0x599a47;if(_0x40aab9!==_0x20ffae[_0x4562b3(0x144)])return;const _0x4d949a={'id':_0x9be6be,'type':_0x3ed267[_0x4562b3(0x158)]['MUTATION'],'params':{'unitId':_0x40aab9,'actions':_0x30e9c6['actions'],'textRanges':null}};_0x20ffae[_0x4562b3(0x29b)](_0x4d949a);});if(_0x20ffae[_0xb5908e(0x11a)](_0x3b4675),_0x20ffae instanceof _0x207d2b[_0xb5908e(0x263)]){const _0x1055ec={'onTransformIME':_0x303dcc=>this['_docTransformIMECacheService'][_0xb5908e(0x271)](_0x303dcc),'onTransformState':_0x2efb8d=>this[_0xb5908e(0x2d9)]['transformStateCache'](_0x2efb8d),'onTransformSelections':_0x2a388d=>this['_docTransformSelectionsService'][_0xb5908e(0x12c)](_0x2a388d),'onSyncEditingCollabCursor':_0xd4df4b=>this[_0xb5908e(0x359)][_0xb5908e(0x2de)](_0xd4df4b),'onTransformRemoteChangesetByIMECache':_0x3ae732=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x3ae732),'onTransformRemoteChangesetByStateCache':_0x56dae8=>this['_docTransformStateCacheService'][_0xb5908e(0x2d1)](_0x56dae8)};_0x20ffae[_0xb5908e(0x15d)](_0x1055ec);}}));}};_0x2af404=_0x2214d4([_0x38cbf5(0x0,_0x3ed267[_0x3bd006(0x2af)](_0x351b83[_0x3bd006(0x1da)])),_0x38cbf5(0x1,_0x3ed267[_0x3bd006(0x2af)](_0x207d2b[_0x3bd006(0x37b)])),_0x38cbf5(0x2,_0x3ed267[_0x3bd006(0x2af)](_0x20e323)),_0x38cbf5(0x3,_0x3ed267['Inject'](_0x5e5ec5)),_0x38cbf5(0x4,_0x3ed267[_0x3bd006(0x2af)](_0xec3be6)),_0x38cbf5(0x5,_0x3ed267[_0x3bd006(0x2af)](_0x2b068f)),_0x38cbf5(0x6,_0x1a0cb9['IMessageService']),_0x38cbf5(0x7,_0x3ed267[_0x3bd006(0x2af)](_0x3ed267[_0x3bd006(0x22d)]))],_0x2af404);var _0x30d31b=Object['getOwnPropertyDescriptor'],_0x36abd6=(_0x33d1fb,_0x3b760b,_0x2688d8,_0x468746)=>{const _0x2913d9=_0x3bd006;for(var _0x240031=_0x468746>0x1?void 0x0:_0x468746?_0x30d31b(_0x3b760b,_0x2688d8):_0x3b760b,_0x18d81b=_0x33d1fb[_0x2913d9(0x35a)]-0x1,_0x4150be;_0x18d81b>=0x0;_0x18d81b--)(_0x4150be=_0x33d1fb[_0x18d81b])&&(_0x240031=_0x4150be(_0x240031)||_0x240031);return _0x240031;},_0x4ef94b=(_0x5616bd,_0x52f105)=>(_0x4b2ff7,_0x324045)=>_0x52f105(_0x4b2ff7,_0x324045,_0x5616bd);let _0x4b0338=class extends _0x3ed267[_0x3bd006(0xe9)]{constructor(_0x4bce7e,_0x1155e9,_0x7d36eb){const _0x1b5379=_0x3bd006;super(),_0x4e10dd(this,_0x1b5379(0x145),new Map()),_0x4e10dd(this,_0x1b5379(0xf8),new Map()),_0x4e10dd(this,_0x1b5379(0x378),!0x1),(this[_0x1b5379(0x2ab)]=_0x4bce7e,this[_0x1b5379(0x26f)]=_0x1155e9,this[_0x1b5379(0x300)]=_0x7d36eb);}[_0x3bd006(0x22a)](){const _0x2b278b=_0x3bd006;this[_0x2b278b(0x378)]=!0x0;}[_0x3bd006(0x1a8)](){const _0x6c05fe=_0x3bd006;this[_0x6c05fe(0x378)]=!0x1;}get[_0x3bd006(0x375)](){const _0x5a1c6a=_0x3bd006;return this[_0x5a1c6a(0xf8)];}[_0x3bd006(0xf9)](){const _0x21e796=_0x3bd006;this[_0x21e796(0x24e)]()[_0x21e796(0x1a1)](()=>super['dispose']());}async[_0x3bd006(0x34d)](_0x107bff){const _0x4828d3=_0x3bd006;return this[_0x4828d3(0x378)]?null:this['_localStorageService']['getItem'](_0x207d2b[_0x4828d3(0x198)](_0x107bff));}async['saveOfflineData'](_0x1de191,_0x194b26){const _0x2877d7=_0x3bd006;return!!this[_0x2877d7(0x26f)][_0x2877d7(0x204)](_0x1de191,_0x194b26);}['updateOfflineData'](_0x549f97,_0x42e58c,_0x26ef4f,_0x23b814){const _0x558f8f=_0x3bd006,_0x93aa7b=this[_0x558f8f(0x300)]['getCurrentRevOfUnit'](_0x549f97);this[_0x558f8f(0x145)]['set'](_0x549f97,{'unitID':_0x549f97,'type':_0x42e58c,'awaitingChangeset':_0x26ef4f,'mutations':_0x23b814,'rev':_0x93aa7b}),this['_saveTaskMap'][_0x558f8f(0x22e)](_0x549f97)||this[_0x558f8f(0x1d4)](_0x549f97);}[_0x3bd006(0x1d4)](_0x5c716e){const _0x1f50be=_0x3bd006,_0x5d96d4=this[_0x1f50be(0x30f)]();_0x5d96d4===0x0?this[_0x1f50be(0x223)](_0x5c716e):this[_0x1f50be(0xf8)]['set'](_0x5c716e,setTimeout(()=>this[_0x1f50be(0x223)](_0x5c716e),_0x5d96d4));}[_0x3bd006(0x30f)](){const _0x374f1c=_0x3bd006;var _0x569e48;return(_0x569e48=this[_0x374f1c(0x2ab)][_0x374f1c(0x172)](_0x207d2b['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x569e48:_0x207d2b[_0x374f1c(0x205)];}[_0x3bd006(0x223)](_0x5e89b1){const _0x2303c5=_0x3bd006,_0x391c50=this['_saveTaskMap'][_0x2303c5(0x20d)](_0x5e89b1);return _0x391c50!==void 0x0&&window[_0x2303c5(0x17f)](_0x391c50),this[_0x2303c5(0x26f)]['setItem'](_0x207d2b['getLocalCacheKey'](_0x5e89b1),this[_0x2303c5(0x145)][_0x2303c5(0x20d)](_0x5e89b1))[_0x2303c5(0x1a1)](()=>this['_saveTaskMap'][_0x2303c5(0x363)](_0x5e89b1));}async[_0x3bd006(0x24e)](){const _0x8057c4=_0x3bd006,_0x2a4cad=[];this['_saveTaskMap'][_0x8057c4(0x266)]((_0x1c02f0,_0x2c00ef)=>{const _0x2c2f5e=_0x8057c4;window[_0x2c2f5e(0x17f)](_0x1c02f0),_0x2a4cad['push'](this[_0x2c2f5e(0x223)](_0x2c00ef)[_0x2c2f5e(0x1a1)](()=>{const _0x5ebda0=_0x2c2f5e;this[_0x5ebda0(0xf8)][_0x5ebda0(0x363)](_0x2c00ef);}));}),await Promise[_0x8057c4(0x33c)](_0x2a4cad);}};_0x4b0338=_0x36abd6([_0x4ef94b(0x0,_0x3ed267['IConfigService']),_0x4ef94b(0x1,_0x3ed267[_0x3bd006(0x2c6)]),_0x4ef94b(0x2,_0x3ed267['Inject'](_0x585638[_0x3bd006(0x33a)]))],_0x4b0338);class _0x306590 extends _0x3ed267[_0x3bd006(0x297)]{constructor(){const _0x52350a=_0x3bd006;super(),_0x4e10dd(this,_0x52350a(0x33d)),this[_0x52350a(0x33d)]=_0x1c33ab[_0x52350a(0x1b5)](window,_0x52350a(0x29f))[_0x52350a(0x1d7)](_0x1c33ab[_0x52350a(0x168)](this['dispose$']),_0x1c33ab[_0x52350a(0x1ea)](0x1),_0x1c33ab['mapTo'](void 0x0));}['setParam'](_0x36e2a7,_0x2e2716,_0x323871=!0x1){const _0x37e71b=_0x3bd006,_0x4f7696=new URL(window[_0x37e71b(0x281)][_0x37e71b(0x33e)]);_0x4f7696[_0x37e71b(0x224)][_0x37e71b(0x247)](_0x36e2a7,_0x2e2716),_0x323871?window['history']['replaceState']('','',_0x4f7696[_0x37e71b(0x2a8)]()):window[_0x37e71b(0x320)][_0x37e71b(0x102)]('','',_0x4f7696[_0x37e71b(0x2a8)]());}[_0x3bd006(0x25c)](_0x574aa9,_0x75e348=!0x1){const _0x24fc66=_0x3bd006,_0x4d2a07=new URL(window[_0x24fc66(0x281)][_0x24fc66(0x33e)]);_0x4d2a07[_0x24fc66(0x224)][_0x24fc66(0x363)](_0x574aa9),_0x75e348?window[_0x24fc66(0x320)]['replaceState']('','',_0x4d2a07['toString']()):window[_0x24fc66(0x320)][_0x24fc66(0x102)]('','',_0x4d2a07[_0x24fc66(0x2a8)]());}[_0x3bd006(0x366)](_0x422e2d){const _0x5d0401=_0x3bd006;var _0x1f7288;return(_0x1f7288=new URL(window[_0x5d0401(0x281)][_0x5d0401(0x33e)])['searchParams']['get'](_0x422e2d))!=null?_0x1f7288:void 0x0;}}var _0x5ce957=Object[_0x3bd006(0x1ce)],_0x16a1c9=Object[_0x3bd006(0x303)],_0x4f0f3e=(_0x3eae22,_0x31c245,_0x2e7aa6)=>_0x31c245 in _0x3eae22?_0x5ce957(_0x3eae22,_0x31c245,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e7aa6}):_0x3eae22[_0x31c245]=_0x2e7aa6,_0x29fa5f=(_0x7f8412,_0x38f08d,_0x5893cd,_0x2149aa)=>{for(var _0x90f840=_0x2149aa>0x1?void 0x0:_0x2149aa?_0x16a1c9(_0x38f08d,_0x5893cd):_0x38f08d,_0x5c389f=_0x7f8412['length']-0x1,_0x5bbbf4;_0x5c389f>=0x0;_0x5c389f--)(_0x5bbbf4=_0x7f8412[_0x5c389f])&&(_0x90f840=_0x5bbbf4(_0x90f840)||_0x90f840);return _0x90f840;},_0x306b57=(_0x3d7998,_0x1ed735)=>(_0xce2e3b,_0x52e6b3)=>_0x1ed735(_0xce2e3b,_0x52e6b3,_0x3d7998),_0x24bde0=(_0x5adfc4,_0xd8d6cb,_0x1185c0)=>_0x4f0f3e(_0x5adfc4,_0xd8d6cb+'',_0x1185c0);const _0x50f952=_0x3bd006(0x179);_0x8c9c05[_0x3bd006(0x100)]=class extends _0x3ed267[_0x3bd006(0x323)]{constructor(_0x3f4d8d=_0x442aeb,_0x31e082,_0x20eaea,_0x3068ab){const _0x4f860f=_0x3bd006;super(),this[_0x4f860f(0xf6)]=_0x3f4d8d,this[_0x4f860f(0x1dc)]=_0x31e082,this[_0x4f860f(0x221)]=_0x20eaea,this[_0x4f860f(0x2ab)]=_0x3068ab;const {..._0x3e2f0d}=_0x3ed267[_0x4f860f(0x152)]({},_0x442aeb,this[_0x4f860f(0xf6)]);this[_0x4f860f(0x2ab)][_0x4f860f(0x334)](_0x403e0c,_0x3e2f0d);}[_0x3bd006(0x234)](){const _0x293ba4=_0x3bd006;this['_registerDependencies'](),this[_0x293ba4(0x1b4)]();}['onRendered'](){const _0x4eea11=_0x3bd006;this[_0x4eea11(0x2ea)]();}['_registerDependencies'](){const _0x5b7c3d=_0x3bd006;var _0x199b33;const _0x5eb9c2=[[_0x55e3bb],[_0xec3be6],[_0x20e323],[_0x5e5ec5],[_0x2b068f],[_0x5a7e26,{'useClass':_0x306590}],[_0xbddb2a['ISocketService'],{'useClass':_0xbddb2a['WebSocketService']}],[_0x207d2b[_0x5b7c3d(0x1ad)],{'useClass':_0x4b0338}],[_0x8c9c05[_0x5b7c3d(0x240)]],[_0x2af404],[_0x267ee7],[_0x2ea14f],[_0xc0cc2b],[_0x8c9c05[_0x5b7c3d(0x1b7)]]];_0x3ed267['registerDependencies'](this[_0x5b7c3d(0x221)],_0x3ed267[_0x5b7c3d(0x242)](_0x5eb9c2,(_0x199b33=this['_config'])==null?void 0x0:_0x199b33['override']));}[_0x3bd006(0x2ea)](){const _0x468103=_0x3bd006;this[_0x468103(0x11a)](this['_renderManagerService'][_0x468103(0x373)](_0x3ed267[_0x468103(0x2a4)]['UNIVER_DOC'],[_0x5cd99a])),this['disposeWithMe'](this[_0x468103(0x1dc)][_0x468103(0x373)](_0x3ed267[_0x468103(0x2a4)][_0x468103(0x25b)],[_0x1e60a1]));}[_0x3bd006(0x1b4)](){const _0x370839=_0x3bd006;_0x3ed267[_0x370839(0x19a)](this[_0x370839(0x221)],[[_0x2ea14f],[_0x8c9c05[_0x370839(0x240)]],[_0x2af404],[_0x267ee7],[_0x8c9c05['CollaborationDataLoaderController']]]);}},_0x24bde0(_0x8c9c05[_0x3bd006(0x100)],_0x3bd006(0x2d4),_0x50f952),_0x8c9c05[_0x3bd006(0x100)]=_0x29fa5f([_0x3ed267[_0x3bd006(0x2e2)](_0x207d2b['UniverCollaborationClientPlugin']),_0x306b57(0x1,_0x83c5a7[_0x3bd006(0xf4)]),_0x306b57(0x2,_0x3ed267[_0x3bd006(0x2af)](_0x3ed267[_0x3bd006(0x1f1)])),_0x306b57(0x3,_0x3ed267[_0x3bd006(0x332)])],_0x8c9c05[_0x3bd006(0x100)]);var _0x2130c3=Object[_0x3bd006(0x303)],_0x52c886=(_0x426053,_0x99a9ef,_0x5906ce,_0x45b3fa)=>{for(var _0x5ddc23=_0x45b3fa>0x1?void 0x0:_0x45b3fa?_0x2130c3(_0x99a9ef,_0x5906ce):_0x99a9ef,_0x32b709=_0x426053['length']-0x1,_0x3dbfb2;_0x32b709>=0x0;_0x32b709--)(_0x3dbfb2=_0x426053[_0x32b709])&&(_0x5ddc23=_0x3dbfb2(_0x5ddc23)||_0x5ddc23);return _0x5ddc23;},_0x4917f5=(_0x3071f2,_0x9d8142)=>(_0x5a8e2d,_0x37866c)=>_0x9d8142(_0x5a8e2d,_0x37866c,_0x3071f2);_0x8c9c05[_0x3bd006(0x112)]=class extends _0x207d2b[_0x3bd006(0x1b1)]{constructor(_0x16ce75,_0x2dfeff,_0x37b31a,_0x141da3,_0x21ce47){super(_0x16ce75,_0x2dfeff,_0x37b31a,_0x141da3,_0x21ce47);}async[_0x3bd006(0x30c)](_0x392d76){const _0x4ab298=_0x3bd006,_0x13bb7b=await this['_getSessionTicket'](),_0x36e929=this[_0x4ab298(0xe5)](_0x392d76,_0x13bb7b);return this[_0x4ab298(0x197)](_0x36e929);}[_0x3bd006(0xe5)](_0x2d978a,_0x3d79c3){const _0x23e5cb=_0x3bd006,_0x1f12a1=typeof window>'u'?new URL(_0x2d978a):new URL(_0x2d978a,window['location'][_0x23e5cb(0x10c)]);_0x1f12a1['searchParams'][_0x23e5cb(0x247)](_0x23e5cb(0x32d),_0x3d79c3);const _0x2d10fb=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x23e5cb(0x281)][_0x23e5cb(0x148)]);return _0x2d10fb[_0x23e5cb(0x20d)]('runId')&&_0x1f12a1[_0x23e5cb(0x224)][_0x23e5cb(0x247)](_0x23e5cb(0x28a),_0x2d10fb['get']('runId')),_0x1f12a1[_0x23e5cb(0x2a8)]();}async['_getSessionTicket'](){const _0x4ddb58=_0x3bd006;var _0xc8fb71,_0x26fd4c,_0x35afb7;const _0xc6910a=this['_configService'][_0x4ddb58(0x172)](_0x207d2b[_0x4ddb58(0x2dd)]),_0x1a5df0=(_0xc8fb71=_0xc6910a==null?void 0x0:_0xc6910a[_0x4ddb58(0x181)])!=null?_0xc8fb71:_0x207d2b[_0x4ddb58(0x1a5)];return(_0x35afb7=(_0x26fd4c=(await this[_0x4ddb58(0x193)][_0x4ddb58(0x20d)](_0x1a5df0,{'headers':{'Content-Type':_0x4ddb58(0xf5)}}))[_0x4ddb58(0x342)])==null?void 0x0:_0x26fd4c[_0x4ddb58(0x34e)])!=null?_0x35afb7:'';}},_0x8c9c05[_0x3bd006(0x112)]=_0x52c886([_0x4917f5(0x0,_0x3ed267[_0x3bd006(0x2af)](_0x3ed267['Injector'])),_0x4917f5(0x1,_0x3ed267[_0x3bd006(0x2af)](_0xbddb2a[_0x3bd006(0x32f)])),_0x4917f5(0x2,_0x3ed267['IConfigService']),_0x4917f5(0x3,_0x3ed267[_0x3bd006(0x222)]),_0x4917f5(0x4,_0x585638[_0x3bd006(0x36c)])],_0x8c9c05['BrowserCollaborationSocketService']);var _0x321434=(_0x1348ca=>(_0x1348ca[_0x1348ca[_0x3bd006(0x2bd)]=0x0]=_0x3bd006(0x2bd),_0x1348ca[_0x1348ca['OK']=0x1]='OK',_0x1348ca[_0x1348ca[_0x3bd006(0x1e7)]=0x2]=_0x3bd006(0x1e7),_0x1348ca[_0x1348ca[_0x3bd006(0x245)]=0x3]=_0x3bd006(0x245),_0x1348ca[_0x1348ca[_0x3bd006(0x1b2)]=0x4]='NOT_FOUND',_0x1348ca[_0x1348ca[_0x3bd006(0x135)]=0x5]=_0x3bd006(0x135),_0x1348ca[_0x1348ca[_0x3bd006(0x142)]=0x6]=_0x3bd006(0x142),_0x1348ca[_0x1348ca[_0x3bd006(0x2f6)]=0x7]=_0x3bd006(0x2f6),_0x1348ca[_0x1348ca[_0x3bd006(0x20c)]=0x8]=_0x3bd006(0x20c),_0x1348ca[_0x1348ca[_0x3bd006(0x344)]=0x9]=_0x3bd006(0x344),_0x1348ca[_0x1348ca[_0x3bd006(0x184)]=0xa]=_0x3bd006(0x184),_0x1348ca[_0x1348ca[_0x3bd006(0x13d)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x1348ca[_0x1348ca[_0x3bd006(0x2ce)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x1348ca[_0x1348ca[_0x3bd006(0x36f)]=0xd]=_0x3bd006(0x36f),_0x1348ca[_0x1348ca[_0x3bd006(0x1dd)]=0xe]=_0x3bd006(0x1dd),_0x1348ca[_0x1348ca[_0x3bd006(0x12b)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1348ca[_0x1348ca['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1348ca[_0x1348ca[_0x3bd006(0x203)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1348ca[_0x1348ca[_0x3bd006(0x2bf)]=0x1773]=_0x3bd006(0x2bf),_0x1348ca[_0x1348ca[_0x3bd006(0x1e2)]=0x1b59]=_0x3bd006(0x1e2),_0x1348ca[_0x1348ca[_0x3bd006(0x174)]=0x1b5a]=_0x3bd006(0x174),_0x1348ca[_0x1348ca[_0x3bd006(0x368)]=0x1b5b]=_0x3bd006(0x368),_0x1348ca[_0x1348ca[_0x3bd006(0x274)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1348ca[_0x1348ca[_0x3bd006(0x299)]=0x1b5d]=_0x3bd006(0x299),_0x1348ca[_0x1348ca[_0x3bd006(0x351)]=0x1f41]=_0x3bd006(0x351),_0x1348ca[_0x1348ca[_0x3bd006(0x321)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1348ca[_0x1348ca[_0x3bd006(0x2e6)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1348ca[_0x1348ca[_0x3bd006(0x2e0)]=0x232b]=_0x3bd006(0x2e0),_0x1348ca[_0x1348ca[_0x3bd006(0x261)]=0x232c]=_0x3bd006(0x261),_0x1348ca[_0x1348ca['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3bd006(0x1a6),_0x1348ca[_0x1348ca[_0x3bd006(0x35e)]=0x2711]=_0x3bd006(0x35e),_0x1348ca[_0x1348ca[_0x3bd006(0x2c8)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1348ca[_0x1348ca[_0x3bd006(0x1f2)]=0x2713]=_0x3bd006(0x1f2),_0x1348ca[_0x1348ca[_0x3bd006(0x32b)]=0x2714]=_0x3bd006(0x32b),_0x1348ca[_0x1348ca[_0x3bd006(0x1c0)]=0x271a]=_0x3bd006(0x1c0),_0x1348ca[_0x1348ca[_0x3bd006(0xeb)]=0x271b]=_0x3bd006(0xeb),_0x1348ca[_0x1348ca[_0x3bd006(0x27c)]=0x271c]=_0x3bd006(0x27c),_0x1348ca[_0x1348ca[_0x3bd006(0x246)]=0x271d]=_0x3bd006(0x246),_0x1348ca[_0x1348ca[_0x3bd006(0x1a9)]=0x271e]=_0x3bd006(0x1a9),_0x1348ca[_0x1348ca[_0x3bd006(0x1f0)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x1348ca[_0x1348ca['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x3bd006(0x171),_0x1348ca[_0x1348ca['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x3bd006(0x1e3),_0x1348ca[_0x1348ca['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3bd006(0x180),_0x1348ca[_0x1348ca[_0x3bd006(0x122)]=0x2ee2]=_0x3bd006(0x122),_0x1348ca[_0x1348ca[_0x3bd006(0x327)]=0x2ee3]=_0x3bd006(0x327),_0x1348ca[_0x1348ca[_0x3bd006(0xe1)]=0x2ee4]=_0x3bd006(0xe1),_0x1348ca[_0x1348ca[_0x3bd006(0x17b)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x1348ca[_0x1348ca[_0x3bd006(0x2cd)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x1348ca[_0x1348ca[_0x3bd006(0x21c)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1348ca[_0x1348ca['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3bd006(0x31a),_0x1348ca[_0x1348ca[_0x3bd006(0xdc)]=-0x1]=_0x3bd006(0xdc),_0x1348ca))(_0x321434||{}),_0x44ee51=Object[_0x3bd006(0x303)],_0x346bc0=(_0x512cb8,_0x387499,_0x71b9b2,_0x508a19)=>{const _0x2d6866=_0x3bd006;for(var _0x98834c=_0x508a19>0x1?void 0x0:_0x508a19?_0x44ee51(_0x387499,_0x71b9b2):_0x387499,_0x3db645=_0x512cb8[_0x2d6866(0x35a)]-0x1,_0x5f32cc;_0x3db645>=0x0;_0x3db645--)(_0x5f32cc=_0x512cb8[_0x3db645])&&(_0x98834c=_0x5f32cc(_0x98834c)||_0x98834c);return _0x98834c;},_0x1cb9ac=(_0x35ca37,_0xd8525a)=>(_0x46403a,_0x21b7f7)=>_0xd8525a(_0x46403a,_0x21b7f7,_0x35ca37);_0x8c9c05[_0x3bd006(0x293)]=class extends _0x3ed267[_0x3bd006(0xe9)]{constructor(_0x536c69,_0x187ba2,_0x50dba7){const _0xe250d2=_0x3bd006;super(),this[_0xe250d2(0x183)]=_0x536c69,this[_0xe250d2(0x193)]=_0x187ba2,this['_configService']=_0x50dba7;}async[_0x3bd006(0x284)](_0x49ba58,_0xf0a848,_0x300a93,..._0x122248){const _0x3af5d8=_0x3bd006;var _0x2b7201,_0x363830,_0x21a1a9,_0x519059;const _0x5b375e=this[_0x3af5d8(0x183)]['getFocusedUnit']();if(!_0x5b375e)throw new Error(_0x3af5d8(0x23a));const _0xdb5e17=((_0x2b7201=this['_configService'][_0x3af5d8(0x172)](_0x207d2b[_0x3af5d8(0x2f4)]))!=null?_0x2b7201:_0x207d2b[_0x3af5d8(0x18e)])+'/'+_0x49ba58+_0x3af5d8(0x15c)+_0xf0a848,_0x40dab1=new URL(window['location']['href']),_0x431c68={'scriptId':_0x49ba58,'runId':(_0x363830=_0x40dab1[_0x3af5d8(0x224)][_0x3af5d8(0x20d)](_0x3af5d8(0x28a)))!=null?_0x363830:'','function':_0xf0a848,'unitId':_0x5b375e[_0x3af5d8(0x264)](),'argsOfFunction':JSON[_0x3af5d8(0x28c)](_0x122248),'invokeId':(_0x21a1a9=_0x300a93[_0x3af5d8(0x1d0)])!=null?_0x21a1a9:'','executionId':(_0x519059=_0x300a93[_0x3af5d8(0x350)])!=null?_0x519059:''};try{const _0x20d3f3=await this[_0x3af5d8(0x193)]['post'](_0xdb5e17,{'body':_0x431c68});return _0x20d3f3[_0x3af5d8(0x342)]['error']&&_0x20d3f3['body'][_0x3af5d8(0x361)][_0x3af5d8(0x290)]!==_0x321434['OK']?_0x3af5d8(0x215):_0x20d3f3['body']['result'];}catch{return _0x3af5d8(0x215);}}},_0x8c9c05[_0x3bd006(0x293)]=_0x346bc0([_0x1cb9ac(0x0,_0x3ed267[_0x3bd006(0x26b)]),_0x1cb9ac(0x1,_0x3ed267[_0x3bd006(0x2af)](_0xbddb2a[_0x3bd006(0x32f)])),_0x1cb9ac(0x2,_0x3ed267[_0x3bd006(0x332)])],_0x8c9c05[_0x3bd006(0x293)]);const _0x2f7fea=0x7530,_0x208220=_0x3bd006(0x129);class _0x2062bb extends _0x3ed267[_0x3bd006(0xe9)]{constructor(){const _0x2e8132=_0x3bd006;super(),_0x4e10dd(this,_0x2e8132(0x2c3),_0x3ed267[_0x2e8132(0x18c)]()),_0x4e10dd(this,_0x2e8132(0x1cb),new Set()),_0x4e10dd(this,_0x2e8132(0x125),new Map()),_0x4e10dd(this,_0x2e8132(0x21d),null),_0x4e10dd(this,_0x2e8132(0x2d6),new Map()),_0x4e10dd(this,_0x2e8132(0x147),new Map()),this['_init']();}['dispose'](){const _0x2b498b=_0x3bd006;super['dispose'](),this[_0x2b498b(0x2d6)][_0x2b498b(0x266)]((_0x2cbb75,_0x98601f)=>this[_0x2b498b(0x216)](_0x98601f)),this[_0x2b498b(0x21d)]&&window['clearInterval'](this[_0x2b498b(0x21d)]);}['getUnitStatus$'](_0x32398f){const _0x4e9049=_0x3bd006;return this[_0x4e9049(0x2fb)](_0x32398f)['pipe'](_0x1c33ab[_0x4e9049(0x2be)]());}[_0x3bd006(0x210)](_0x1bb880){const _0x20f86c=_0x3bd006;this[_0x20f86c(0x1cb)][_0x20f86c(0x2dc)]===0x0&&this[_0x20f86c(0x372)](),this[_0x20f86c(0x1cb)]['add'](_0x1bb880),this[_0x20f86c(0x333)]({'type':0x0,'memberID':this[_0x20f86c(0x2c3)],'unitIDs':[_0x1bb880],'isForwarded':!0x1});}['disposeUnit'](_0x459a06){const _0x3ca53a=_0x3bd006;this[_0x3ca53a(0x1cb)]['delete'](_0x459a06),this[_0x3ca53a(0x1cb)][_0x3ca53a(0x2dc)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x3bd006(0x1d8)](){const _0x4f9a1c=_0x3bd006;this[_0x4f9a1c(0x11a)](_0x3ed267[_0x4f9a1c(0x241)](_0x1c33ab['fromEvent'](window,_0x4f9a1c(0x109))[_0x4f9a1c(0x2fc)](_0x362d0c=>{const _0x28f37e=_0x4f9a1c;if(_0x362d0c[_0x28f37e(0x371)]!==_0x208220||!_0x362d0c[_0x28f37e(0x15f)])return;const _0x44e0f4=JSON[_0x28f37e(0x1b0)](_0x362d0c['newValue']);this[_0x28f37e(0x170)](_0x44e0f4);}))),window[_0x4f9a1c(0x2ba)](_0x4f9a1c(0x279),()=>this['_send']({'type':0x1,'memberID':this[_0x4f9a1c(0x2c3)],'unitIDs':Array[_0x4f9a1c(0x1ed)](this[_0x4f9a1c(0x1cb)])}));}[_0x3bd006(0x170)](_0x2252ae){const _0x1900d6=_0x3bd006;switch(_0x2252ae[_0x1900d6(0xe2)]){case 0x0:this[_0x1900d6(0x1c6)](_0x2252ae);break;case 0x1:this[_0x1900d6(0x11c)](_0x2252ae);break;case 0x2:this[_0x1900d6(0x2ef)](_0x2252ae);break;}}[_0x3bd006(0x1c6)](_0x281b1d){const _0x4a0100=_0x3bd006,{unitIDs:_0x37e210,memberID:_0x45c58a,isForwarded:_0x1a63bb}=_0x281b1d;_0x37e210['forEach'](_0x21782d=>{const _0x5d778e=_0xda92;if(!_0x1a63bb&&this['_unitOnClients'][_0x5d778e(0x22e)](_0x21782d)&&this['_ensureSubject'](_0x21782d)['next'](_0x207d2b[_0x5d778e(0x1ae)][_0x5d778e(0x1fc)]),!this[_0x5d778e(0x125)][_0x5d778e(0x22e)](_0x21782d)||!this[_0x5d778e(0x125)][_0x5d778e(0x20d)](_0x21782d)[_0x5d778e(0x22e)](_0x45c58a)){const _0x19679b=this[_0x5d778e(0x125)][_0x5d778e(0x20d)](_0x21782d)||new Set();_0x19679b[_0x5d778e(0x12d)](_0x45c58a),this[_0x5d778e(0x125)][_0x5d778e(0x247)](_0x21782d,_0x19679b),this[_0x5d778e(0x123)](_0x45c58a);}}),_0x1a63bb||this[_0x4a0100(0x333)]({'type':0x0,'memberID':this[_0x4a0100(0x2c3)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x427408){const _0xe2b20f=_0x3bd006;this['_removeClearOtherTimer'](_0x427408);const _0x3ff8a4=window[_0xe2b20f(0x2fe)](()=>{const _0x1c2022=_0xe2b20f;this[_0x1c2022(0x125)][_0x1c2022(0x266)](_0x41debc=>{_0x41debc['delete'](_0x427408);});},_0x2f7fea*0x2);this[_0xe2b20f(0x2d6)][_0xe2b20f(0x247)](_0x427408,_0x3ff8a4);}[_0x3bd006(0x216)](_0x435136){const _0x38b069=_0x3bd006;if(this[_0x38b069(0x2d6)][_0x38b069(0x22e)](_0x435136)){const _0x2eb06e=this['_clearOtherTimers'][_0x38b069(0x20d)](_0x435136);_0x2eb06e&&window[_0x38b069(0x17f)](_0x2eb06e),this[_0x38b069(0x2d6)][_0x38b069(0x247)](_0x435136,null);}}[_0x3bd006(0x11c)](_0x16ec21){const _0x4ecd2e=_0x3bd006,{memberID:_0x1c0f21,unitIDs:_0x30209e}=_0x16ec21;_0x30209e[_0x4ecd2e(0x266)](_0x27ecb3=>{const _0x29bae4=_0x4ecd2e;var _0x3b4476;const _0x5130f6=this['_unitOnClients'][_0x29bae4(0x20d)](_0x27ecb3);_0x5130f6&&(_0x5130f6['delete'](_0x1c0f21),(_0x3b4476=this['_ensureSubject'](_0x27ecb3))==null||_0x3b4476[_0x29bae4(0x200)](_0x5130f6[_0x29bae4(0x2dc)]===0x0?_0x207d2b[_0x29bae4(0x1ae)][_0x29bae4(0x22c)]:_0x207d2b[_0x29bae4(0x1ae)][_0x29bae4(0x1fc)]));}),this[_0x4ecd2e(0x216)](_0x1c0f21);}[_0x3bd006(0x2ef)](_0x351cf4){const _0x3e2164=_0x3bd006;this[_0x3e2164(0x123)](_0x351cf4[_0x3e2164(0x37a)]);}[_0x3bd006(0x333)](_0x35f712){const _0x45a8e3=_0x3bd006;localStorage[_0x45a8e3(0x204)](_0x208220,JSON[_0x45a8e3(0x28c)](_0x35f712));}[_0x3bd006(0x372)](){const _0x19c43d=_0x3bd006;this[_0x19c43d(0x21d)]=window[_0x19c43d(0x131)](()=>{const _0x58f91a=_0x19c43d;this[_0x58f91a(0x333)]({'type':0x2,'memberID':this[_0x58f91a(0x2c3)]});},_0x2f7fea);}['_ensureSubject'](_0x4f932e){const _0x32e752=_0x3bd006;return this['_unitStatus'][_0x32e752(0x22e)](_0x4f932e)||this[_0x32e752(0x147)][_0x32e752(0x247)](_0x4f932e,new _0x1c33ab['BehaviorSubject'](_0x207d2b[_0x32e752(0x1ae)][_0x32e752(0x22c)])),this[_0x32e752(0x147)][_0x32e752(0x20d)](_0x4f932e);}}_0x8c9c05[_0x3bd006(0x1d9)]=_0x5a7e26,_0x8c9c05[_0x3bd006(0x190)]=_0x3c11ea,_0x8c9c05[_0x3bd006(0x189)]=_0x2062bb,_0x8c9c05[_0x3bd006(0x126)]=_0x306590,Object['defineProperty'](_0x8c9c05,Symbol['toStringTag'],{'value':'Module'});}));
1
+ function _0x27be(_0x38e7fa,_0x33f35c){const _0x34496a=_0x3449();return _0x27be=function(_0x27bec9,_0x778a36){_0x27bec9=_0x27bec9-0xef;let _0x4238ae=_0x34496a[_0x27bec9];return _0x4238ae;},_0x27be(_0x38e7fa,_0x33f35c);}function _0x3449(){const _0x3f7096=['bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_beforeCloseService','ThemeService','green.600','none','LICENSE_EXPORT_SIZE_EXCEEDED','drawWith','CollaborationSocketService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SetWorksheetActivateCommand','DeleteRangeMoveUpCommandId','_collaborationController','getSheetBySheetId','key','getUnitStatus$','INTERNAL_ERROR','CollaborationController','unshift','UNAUTHENTICATED','collaboration-client.offline-data-not-saved','evenodd','ticket','_hideTimer','_unitStatus','toRgbString','origin','ILogService','UniverNetwork','currentSkeleton$','_removeClearOtherTimer','_docSyncEditingCollabCursorService','includes','setParam','_getSheetObject','makeDirty','docStateChange$','getSheetObject','_disabled','SNAPSHOT_INVALID_SNAPSHOT','Warning','MOBILE_VERIFY_CODE_MISMATCH','delete','url(#on-line-icon_clip0_910_349)','addHandlerCallback','handleIRemoveRow','url(#$1','xlink:href','_send','React','_roomMembers$','startRow','registerRenderModule','@univerjs/network','_init','triggerDblclick','collaboration-client-ui.config','_shapes','className','_textBubble','SNAPSHOT_HAS_BEEN_REMOVED','prototype','DocStateChangeManagerService','_name','IImageIoService','getOwnPropertyDescriptor','getUnitId','disableLocalCache','FETCH_MISS','endColumn','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','NodePositionConvertToRectRange','getUniverSheetInstance','getRenderById','get','m1Prime','clearInterval','_transformPreviousActiveRange','transformStateCache','transformSelections','USERS_LEAVE','size','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','VIEW_MAIN','SOCKET_FAILED_RETRY','CollaborationEvent','doc.mutation.rich-text-editing','fromEvent','currentColor','CommandType','svg','LOCAL_CACHE_INTERVAL','IRenderManagerService','clearTimeout','dispose$','pipe','getColorFromTheme','_httpService','handleIRemoveCol','IMessageService','_revisionService','_startDocCollabCursor','parse','from','@univerjs/drawing','getMember','@univerjs/rpc','LOGIN_FAILED','transform','tag','max','_session','UniverCollaborationClientUIPlugin','4dVeQXz','toStringTag','getRangePointData','_themeService','getCollabEntity$','switchMap','RxDisposable','LICENSE_MAX_UNITS_EXCEEDED','subscribeEvent','extend','_imageIoService','unsubscribe','current','@univerjs/docs','handleInsertRow','Unknown\x20user','_docStateChangeManagerService','href','executeCommand','sheetID','getFocusedUnit','handleDeleteRangeMoveLeft','_initStatusComponent','_eventUnsubscribe','_refRangeService','_updateLocalCursor','0\x200\x2017\x2016','toDisposable','moveTo','YUUMI_ASYNCIO_CANCELLED','UniverIcon','_entities','unit','registerComponent','labelPosition','RevisionService','assignAColorForMemberID','APPLY_REJECT','ISnapshotServerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','attrs','RECT','@univerjs/core','_dataLoaderService','idSuffix','length','UniverEngineRender','debounce','getSheetId','WebURLService','Disposable','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','onPointerEnter$','redoState','_getSaveTimeout','INVITE_CODE_ALREADY_BOUND','CLOSE_ROOM','ISocketService','Shape','dispose','getCollabCursors$','onLocalMutation','collabStatus.conflict','updateOfflineData','YUUMI_URL_COL_OUT_OF_RANGE','jsx','isActive','CONFLICT','eventID','IDocClipboardService','CollaborationSessionService','_collabCursorController','Injector','split','mask','next','handleMoveRange','replace','call','addObjects','[CollaborationDataLoaderController]','shareReplay','UniverProCollaboration','_messageService','IBeforeCloseService','debounceTime','DeleteRangeMoveLeftCommandId','_collabSessionService','engine','contains','univer-flex\x20univer-items-center','_scheduleHeartbeat','Rect','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','name','LOCAL_CACHE_INTERVAL_KEY','addClipboardHook','MemberService','HEADER_MENU','loadUnit','_lastPointer','SetSelectionsOperation','forEach','activeSheet$','isTransformMutationsWithChangesetSuccess','fillText','merge','UniverUi','_drawRectRange','LICENSE_IMPORT_SIZE_EXCEEDED','_setupBeforeClosingHandler','displayName','1em','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Inject','_commandService','_configService','InsertRowCommandId','translate(.97)','type','getTypeOfUnitDisposed$','DocCollaborationEntity','UNIVER_DOC','values','_handleHover','IRemoteInstanceService','addObject','disposeWithMe','Subject','then','save','_docClipboardService','BuiltInUIPart','invokeId','1528638EzIcMv','Workbook','editingUnit','handleInsertRangeMoveRight','_toggleOnline','USER_NOT_INVITED_CODE','UPDATE_CURSOR','push','LocaleService','urlChange$','_handleJoinEvent','toString','min','CONNECTOR_DATA_TOO_LARGE','init','enableLocalCache','collabStatus.offline','defineProperty','Tooltip','blue.400','SUBMIT_CHANGESET_TIMEOUT','UniverEngineFormula','lineTo','transformIMECache','_saveTaskMap','propertyIsEnumerable','univer-mr-2\x20univer-flex\x20univer-text-xl','rxjs/operators','SetTextSelectionsOperation','CHANGESET_REVISION_CONFILICT','UniverDocsUi','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','YUUMI_NO_CUBOID_FOR_QUESTION','transformByState','YUUMI_CONNECTOR_URL_NOT_FOUND','unitID','transformMutation','MessageType','ACTIVE_UNIT_EVENT_CHANNEL','Plugin','EMAIL_HAS_BEEN_BOUND','PERMISSION_DENIED','_cursor','setShapeProps','INotificationService','IURLService','collabCursorState$','params','complete','_handleEvent','text','exhaustSavingTask','getColor','_docTransformSelectionsService','getValue','getCurrentSelections','black','onPointerLeave$','getParam','ICommandService','textRanges','489483kyBnhD','font','react','YUUMI_RATE_OVER_LIMIT','history','setAlpha','_getScale','NO_OTHER_CLIENTS_EDITING','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_colorIndex','fillStyle','...','with','[RemoteUniscriptService]:\x20no\x20focused\x20unit','Error','syncEditingCollabCursor','SHEET_VIEWPORT_KEY','getLocalCacheKey','LICENSE_DISTRO_REJECTED','assign','_backgroundColor','hovered','WebSocketService','setStateCache','UniverCollaborationClientPlugin','path','UniverSheets','object','collabStatus.fetchMiss','_removeCollabCursors','setInterval','RemoveRowCommandId','Failed','_uiPartsService','_syncEditingCollabCursorService','_docSkeletonManagerService','_labelPosition','SessionStatus','_entityInit$','wsSessionTicketUrl','concat','getDocRanges','_color','INVALID_ARGUMENT','useCallback','ranges','TOO_MANY_REQUESTS','isArray','EMAIL_VERIFY_CODE_MISMATCH','getViewport','4056600ImFtwT','PY_RUNTIME_SCRIPT_ERROR','getActiveSheet','show','entries','YUUMI_ALL_TABLES_IS_INVALID','OFFLINE','_hover','isTransformMutationFailure','addEventListener','YUUMI_SUBSCRIPTION_NOT_FOUND','set','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_colorAssignService','COMPLETION_FINISHED','http://www.w3.org/2000/svg','mergeOverrideWithDependencies','CollaborationDataLoaderController','hide','_draw','beginPath','_notificationService','INVITE_CODE_REQUIRED','whenReady','_collabCursorState$','jsxs','ONLINE','div','symbol','bottom','getItem','map','ENSURE_SNAPSHOT_EXECUTION','BrowserCollaborationSocketService','red.300','replaceState','_config','_memberService','saveTaskMap','colorChannel1','_status$','_cursorShapes','_instanceService','_render','setUndoRedoMutationParamsCache','_transformUndoRedoStack','@univerjs/design','subunit','string','_onCursorDelete','MOBILE_HAS_BEEN_BOUND','_updateSubUnitFromURLParams','onRendered','flatMap','_hovered','requireSession','_ensureSubject','_getMergeRange','DocIMEInputManagerService','purple.300','_id','_initEntityListener','collab-text-range-','getConfig','fromEventSubject','cursorInfo','_logService','SYNCED','PENDING','_clearOtherTimers','90246FPAxNJ','onStarting','transformMutationsWithChangeset','_updateCollabCursors','generateRandomId','YUUMI_UNABLE_LOAD_URL','_heartbeatTimer','fillRule','entityInit$','combineLatest','unitId','data','_getSessionTicket','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','startColumn','_getAnchorBounding','_startSheetCollabCursor','WebBrowserSingleActiveUnitService','getAncestorScale','imageSourceType','closePath','_unitOnClients','mutations','getTypeOfUnitAdded$','MoveRangeCommandId','deserializeRangeWithSheet','_collaborationUIEventService','registerRefRange','jiqing.500','m2Prime','OffLineIcon','sessionStatus$','top','_localStorageService','_handleHeartbeatEvent','_updateURLWithCurrentState','HTTPService','TEXT_RANGE_LAYER_INDEX','_scheduleClearOtherTimer','_anchor','round','_initStatusListener','DesktopCollaborationStatusDisplayController','getCoordByCell','_doCreateSocket','setActiveRange','COLORS','defIds','newValue','on-line-icon_clip0_910_349','_assignedColors','roomMembers$','url(#off-line-icon_clip0_910_343)','_drawAnchor','registerDependencies','findNodePositionByCharIndex','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','exports','arc','collaboration.closeRoom','replaceDocRanges','_initDependencies','3117245OmkkfU','on-line-icon','color','restore','UniverInstanceType','add','indexOf','UNDEFINED','row','getOwnPropertySymbols','_selfUnitIDs','4378896yUnxJR','_range','useDependency','@univerjs/engine-render','operators','_initResize','backgroundColor','throttleTime','getCurrentUnitForType','_cursors','_cachedData','collab-rect-range-','_urlService','_saveCache','_onRefRangeChange','getMergeData','setConfig','subscribe','onTransformChange$','Vector2','setItem','range','RegularPolygon','_sheetSkeletonManagerService','createInstance','has','_docTransformStateCacheService','ALREADY_EXISTS','off-line-icon_clip0_910_343','selection','width','yellow.400','getOffsetConfig','_renderManagerService','RemoteUniscriptService','AWAITING_WITH_PENDING','_scene','children','_createSocketURL','EffectRefRangId','DOC_RANGE_TYPE','UniverDesign','CollaborationStatus','white','transformRemoteChangeset','override','#FFF','removeParam','_scheduleSaving','pushState','serializeRangeWithSheet','getCurrentRevOfUnit','cursorInfo$','SheetSkeletonManagerService','_refreshCollabCursors','NOT_FOUND','resize','rxjs','DocSelectionManagerService','stringify','filter','sessionTicket','UNIVER_SHEET','UNRECOGNIZED','getCurrent','runId','Module','_univerInstanceService','_docSkeleton','INVALID_INVITE_CODE','@univerjs/sheets-ui','@univerjs/sheets','searchParams','_document','InsertColCommandId','getMemberID','RichTextEditingMutation','SetDocZoomRatioOperation','collab-client.tooltip.reconnect','ColorKit','ITransformService','_toggleOffline','_localCacheService','forwardRef','actions','code','UniverProCollaborationClientUi','@univerjs/ui','apply','getStateCache','use','location','CollaborationUIEventId','undoState','APPLY_REVISION_CONFILICT','substring','onMouseMove','function','startsWith','NodePositionConvertToCursor','error','runRefRangeMutations','onCommandExecuted','_anchorDot','YUUMI_AI_RUN_FAILED','clsx','event$','getActiveRange','OTHER_CLIENTS_EDITING','post','_registerDependencies','APPLY_NON_SEQUENTIAL_REVISION','takeUntil','_localeService','BehaviorSubject','_context','_initCommandExecutedListener','getSkeleton','ILocalCacheService','_transformHistoryAndStateStack','endRow','getVpScrollXYInfoByPosToVp','_cursorInfo$','M0\x200H16V16H0z','IUniverInstanceService','_onCursorUpdate','session.will-retry','debug','currentTheme$','body','_docTransformIMECacheService','getUnhiddenWorksheets','asObservable','NOT_COLLAB','310051pIUjRN','random','_initEvent','deepClone','send','fill','_transformService','DEFAULT_WS_SESSION_TICKET_URL','TEXT','onPointerMove$','clipPath','_injector','some','saveOfflineData','_drawTextRange','getUndoRedoMutationParamsCache','IConfigService','createElement','createSocket','Tools','icon','@univerjs/docs-ui','UnitStatus','hasOwnProperty','_online'];_0x3449=function(){return _0x3f7096;};return _0x3449();}(function(_0x350684,_0x5989b0){const _0x87d78d=_0x27be,_0x567471=_0x350684();while(!![]){try{const _0x1c8369=parseInt(_0x87d78d(0x2ec))/0x1+parseInt(_0x87d78d(0x364))/0x2+parseInt(_0x87d78d(0x2af))/0x3*(-parseInt(_0x87d78d(0x229))/0x4)+-parseInt(_0x87d78d(0x10f))/0x5+parseInt(_0x87d78d(0x11a))/0x6+-parseInt(_0x87d78d(0x1a0))/0x7+parseInt(_0x87d78d(0x31e))/0x8;if(_0x1c8369===_0x5989b0)break;else _0x567471['push'](_0x567471['shift']());}catch(_0x577328){_0x567471['push'](_0x567471['shift']());}}}(_0x3449,0x91121),function(_0x5c7b0d,_0x4c4f6f){const _0x1af85c=_0x27be;typeof exports==_0x1af85c(0x307)&&typeof module<'u'?_0x4c4f6f(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x1af85c(0x17b)&&define['amd']?define([_0x1af85c(0x10a),'react/jsx-runtime','@univerjs-pro/collaboration-client',_0x1af85c(0x253),_0x1af85c(0x171),_0x1af85c(0x153),_0x1af85c(0x34c),_0x1af85c(0x2ee),_0x1af85c(0x222),_0x1af85c(0x161),_0x1af85c(0x11d),_0x1af85c(0x1ed),_0x1af85c(0x1b5),_0x1af85c(0x220),'@univerjs-pro/collaboration',_0x1af85c(0x236),'@univerjs/engine-formula',_0x1af85c(0x2ca),_0x1af85c(0x160)],_0x4c4f6f):(_0x5c7b0d=typeof globalThis<'u'?globalThis:_0x5c7b0d||self,_0x4c4f6f(_0x5c7b0d[_0x1af85c(0x170)]={},_0x5c7b0d['React'],_0x5c7b0d['UniverProCollaborationClient'],_0x5c7b0d['UniverCore'],_0x5c7b0d[_0x1af85c(0x294)],_0x5c7b0d['rxjs'],_0x5c7b0d[_0x1af85c(0x143)],_0x5c7b0d[_0x1af85c(0x1e9)],_0x5c7b0d['UniverRpc'],_0x5c7b0d[_0x1af85c(0x306)],_0x5c7b0d[_0x1af85c(0x257)],_0x5c7b0d[_0x1af85c(0x1d4)],_0x5c7b0d[_0x1af85c(0x2cd)],_0x5c7b0d['UniverDrawing'],_0x5c7b0d[_0x1af85c(0x27b)],_0x5c7b0d['UniverDocs'],_0x5c7b0d[_0x1af85c(0x2c4)],_0x5c7b0d['rxjs'][_0x1af85c(0x11e)],_0x5c7b0d['UniverSheetsUi']));}(this,function(_0x311cb7,_0x5bd372,_0x2fe882,_0x18ca73,_0x5121a3,_0x16b079,_0x578c52,_0x32b05b,_0x457000,_0x3c8e23,_0x1000a2,_0x4ed2b8,_0x41c79e,_0x2baa74,_0x518b96,_0x40419e,_0xcce0ba,_0x4dfd3a,_0x2779ee){'use strict';const _0x4a00e7=_0x27be;var _0x55e90c=Object[_0x4a00e7(0x2c0)],_0x3a318b=(_0x9c4321,_0x57a791,_0x2b4e42)=>_0x57a791 in _0x9c4321?_0x55e90c(_0x9c4321,_0x57a791,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b4e42}):_0x9c4321[_0x57a791]=_0x2b4e42,_0x41f19e=(_0x2f6dd3,_0x210baf,_0xe50501)=>_0x3a318b(_0x2f6dd3,typeof _0x210baf!=_0x4a00e7(0x33a)?_0x210baf+'':_0x210baf,_0xe50501),_0x17e143=function(){const _0x3a1cab=_0x4a00e7;return _0x17e143=Object[_0x3a1cab(0x2ff)]||function(_0x53912a){const _0x3eebad=_0x3a1cab;for(var _0xd6caa,_0x46305e=0x1,_0x210ac5=arguments[_0x3eebad(0x256)];_0x46305e<_0x210ac5;_0x46305e++){_0xd6caa=arguments[_0x46305e];for(var _0x117ebe in _0xd6caa)Object[_0x3eebad(0x1f5)][_0x3eebad(0x1b7)][_0x3eebad(0x277)](_0xd6caa,_0x117ebe)&&(_0x53912a[_0x117ebe]=_0xd6caa[_0x117ebe]);}return _0x53912a;},_0x17e143[_0x3a1cab(0x172)](this,arguments);},_0x18557d=function(_0x293d61,_0x166695){const _0x4c9bbe=_0x4a00e7;var _0x452c01={};for(var _0xf3136d in _0x293d61)Object[_0x4c9bbe(0x1f5)][_0x4c9bbe(0x1b7)]['call'](_0x293d61,_0xf3136d)&&_0x166695[_0x4c9bbe(0x115)](_0xf3136d)<0x0&&(_0x452c01[_0xf3136d]=_0x293d61[_0xf3136d]);if(_0x293d61!=null&&typeof Object[_0x4c9bbe(0x118)]==_0x4c9bbe(0x17b)){for(var _0x173946=0x0,_0xf3136d=Object[_0x4c9bbe(0x118)](_0x293d61);_0x173946<_0xf3136d['length'];_0x173946++)_0x166695['indexOf'](_0xf3136d[_0x173946])<0x0&&Object[_0x4c9bbe(0x1f5)][_0x4c9bbe(0x2c8)]['call'](_0x293d61,_0xf3136d[_0x173946])&&(_0x452c01[_0xf3136d[_0x173946]]=_0x293d61[_0xf3136d[_0x173946]]);}return _0x452c01;},_0x202182=_0x32b05b['forwardRef'](function(_0x1758dc,_0x15de48){const _0x18a71f=_0x4a00e7;var _0x2a10ee=_0x1758dc['icon'],_0x2aed2d=_0x1758dc['id'],_0x51d79a=_0x1758dc[_0x18a71f(0x1f2)],_0x161f26=_0x1758dc[_0x18a71f(0x232)],_0x593764=_0x18557d(_0x1758dc,[_0x18a71f(0x1b4),'id','className',_0x18a71f(0x232)]),_0x5f111d='univerjs-icon\x20univerjs-icon-'[_0x18a71f(0x314)](_0x2aed2d,'\x20')[_0x18a71f(0x314)](_0x51d79a||'')['trim'](),_0x16b922=_0x32b05b['useRef']('_'[_0x18a71f(0x314)](_0x3b57c6()));return _0x5808dc(_0x2a10ee,''[_0x18a71f(0x314)](_0x2aed2d),{'defIds':_0x2a10ee[_0x18a71f(0x100)],'idSuffix':_0x16b922[_0x18a71f(0x235)]},_0x17e143({'ref':_0x15de48,'className':_0x5f111d},_0x593764),_0x161f26);});function _0x5808dc(_0x342afa,_0x1b6538,_0x223966,_0x10a568,_0x4a614f){const _0x52dd10=_0x4a00e7;return _0x32b05b[_0x52dd10(0x1b1)](_0x342afa[_0x52dd10(0x225)],_0x17e143(_0x17e143({'key':_0x1b6538},_0x42a4ae(_0x342afa,_0x223966,_0x4a614f)),_0x10a568),(_0x5d2406(_0x342afa,_0x223966)[_0x52dd10(0x13f)]||[])[_0x52dd10(0x33d)](function(_0x88ea5f,_0x5ba8e6){const _0x110283=_0x52dd10;return _0x5808dc(_0x88ea5f,''[_0x110283(0x314)](_0x1b6538,'-')[_0x110283(0x314)](_0x342afa[_0x110283(0x225)],'-')[_0x110283(0x314)](_0x5ba8e6),_0x223966,void 0x0,_0x4a614f);}));}function _0x42a4ae(_0x306354,_0xadda47,_0x4e7af9){const _0x31542d=_0x4a00e7;var _0x2f9fb0=_0x17e143({},_0x306354['attrs']);_0x4e7af9!=null&&_0x4e7af9[_0x31542d(0x345)]&&_0x2f9fb0[_0x31542d(0x1a5)]===_0x31542d(0x345)&&(_0x2f9fb0[_0x31542d(0x1a5)]=_0x4e7af9[_0x31542d(0x345)]),_0x306354[_0x31542d(0x225)]===_0x31542d(0x273)&&_0x2f9fb0['id']&&(_0x2f9fb0['id']=_0x2f9fb0['id']+_0xadda47['idSuffix']),Object[_0x31542d(0x322)](_0x2f9fb0)[_0x31542d(0x28f)](function(_0x5d5e7a){const _0x428c8c=_0x31542d;var _0x191b7b=_0x5d5e7a[0x0],_0x45ad1d=_0x5d5e7a[0x1];_0x191b7b===_0x428c8c(0x273)&&typeof _0x45ad1d=='string'&&(_0x2f9fb0[_0x191b7b]=_0x45ad1d[_0x428c8c(0x276)](/url\(#(.*)\)/,'url(#$1'[_0x428c8c(0x314)](_0xadda47[_0x428c8c(0x255)],')')));});var _0x226893=_0xadda47[_0x31542d(0x100)];return!_0x226893||_0x226893[_0x31542d(0x256)]===0x0||(_0x306354[_0x31542d(0x225)]===_0x31542d(0x174)&&_0x2f9fb0[_0x31542d(0x1e7)]&&(_0x2f9fb0['xlink:href']=_0x2f9fb0['xlink:href']+_0xadda47['idSuffix']),Object[_0x31542d(0x322)](_0x2f9fb0)[_0x31542d(0x28f)](function(_0x31f36c){const _0xa8e8b5=_0x31542d;var _0x481539=_0x31f36c[0x0],_0x45e692=_0x31f36c[0x1];typeof _0x45e692=='string'&&(_0x2f9fb0[_0x481539]=_0x45e692[_0xa8e8b5(0x276)](/url\(#(.*)\)/,_0xa8e8b5(0x1e6)[_0xa8e8b5(0x314)](_0xadda47[_0xa8e8b5(0x255)],')')));})),_0x2f9fb0;}function _0x5d2406(_0x2e7d59,_0x550566){const _0x5d2dab=_0x4a00e7;var _0x26c116,_0x3019fb=_0x550566['defIds'];return!_0x3019fb||_0x3019fb[_0x5d2dab(0x256)]===0x0?_0x2e7d59:_0x2e7d59['tag']==='defs'&&(!((_0x26c116=_0x2e7d59[_0x5d2dab(0x13f)])===null||_0x26c116===void 0x0)&&_0x26c116['length'])?_0x17e143(_0x17e143({},_0x2e7d59),{'children':_0x2e7d59['children'][_0x5d2dab(0x33d)](function(_0x3cebbd){const _0x1546b1=_0x5d2dab;return typeof _0x3cebbd[_0x1546b1(0x251)]['id']==_0x1546b1(0x34e)&&_0x3019fb&&_0x3019fb['includes'](_0x3cebbd[_0x1546b1(0x251)]['id'])?_0x17e143(_0x17e143({},_0x3cebbd),{'attrs':_0x17e143(_0x17e143({},_0x3cebbd['attrs']),{'id':_0x3cebbd[_0x1546b1(0x251)]['id']+_0x550566[_0x1546b1(0x255)]})}):_0x3cebbd;})}):_0x2e7d59;}function _0x3b57c6(){const _0x3d59a5=_0x4a00e7;return Math[_0x3d59a5(0x1a1)]()[_0x3d59a5(0x2ba)](0x24)[_0x3d59a5(0x179)](0x2,0x8);}_0x202182[_0x4a00e7(0x298)]=_0x4a00e7(0x247);var _0x404548={'tag':_0x4a00e7(0x212),'attrs':{'xmlns':_0x4a00e7(0x32d),'fill':_0x4a00e7(0x1bd),'viewBox':'0\x200\x2016\x2016','width':_0x4a00e7(0x299),'height':_0x4a00e7(0x299)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a00e7(0x105)},'children':[{'tag':'path','attrs':{'stroke':_0x4a00e7(0x210),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a00e7(0x1aa),'attrs':{'id':_0x4a00e7(0x136)},'children':[{'tag':'path','attrs':{'fill':_0x4a00e7(0x145),'d':_0x4a00e7(0x195)}}]}]}],'defIds':[_0x4a00e7(0x136)]},_0xa5fe82=_0x32b05b[_0x4a00e7(0x16d)](function(_0x468725,_0x5b59ff){const _0x615fd4=_0x4a00e7;return _0x32b05b['createElement'](_0x202182,Object[_0x615fd4(0x2ff)]({},_0x468725,{'id':'off-line-icon','ref':_0x5b59ff,'icon':_0x404548}));});_0xa5fe82['displayName']=_0x4a00e7(0xef);var _0x3e84ab={'tag':_0x4a00e7(0x212),'attrs':{'xmlns':_0x4a00e7(0x32d),'fill':_0x4a00e7(0x1bd),'viewBox':_0x4a00e7(0x243),'width':'1em','height':_0x4a00e7(0x299)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a00e7(0x1e3)},'children':[{'tag':_0x4a00e7(0x305),'attrs':{'stroke':_0x4a00e7(0x210),'d':_0x4a00e7(0x20a),'strokeLinecap':_0x4a00e7(0xf9),'strokeLinejoin':_0x4a00e7(0xf9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a00e7(0x1aa),'attrs':{'id':_0x4a00e7(0x102)},'children':[{'tag':'path','attrs':{'fill':_0x4a00e7(0x145),'d':'M0\x200H16V16H0z','transform':_0x4a00e7(0x29f)}}]}]}],'defIds':[_0x4a00e7(0x102)]},_0x41977a=_0x32b05b[_0x4a00e7(0x16d)](function(_0x29fd7b,_0xca097d){const _0x117815=_0x4a00e7;return _0x32b05b['createElement'](_0x202182,Object['assign']({},_0x29fd7b,{'id':_0x117815(0x110),'ref':_0xca097d,'icon':_0x3e84ab}));});_0x41977a[_0x4a00e7(0x298)]='OnLineIcon';function _0x30325f(_0x300eb3){const _0x25c57e=_0x4a00e7;switch(_0x300eb3){case _0x2fe882['CollaborationStatus'][_0x25c57e(0x324)]:return _0x25c57e(0x2bf);case _0x2fe882[_0x25c57e(0x144)]['CONFLICT']:return _0x25c57e(0x267);case _0x2fe882['CollaborationStatus'][_0x25c57e(0x1fc)]:return _0x25c57e(0x308);case _0x2fe882[_0x25c57e(0x144)][_0x25c57e(0x19f)]:return'collabStatus.notCollab';case _0x2fe882[_0x25c57e(0x144)]['AWAITING']:case _0x2fe882[_0x25c57e(0x144)][_0x25c57e(0x13d)]:return'collabStatus.syncing';case _0x2fe882[_0x25c57e(0x144)][_0x25c57e(0x361)]:case _0x2fe882[_0x25c57e(0x144)][_0x25c57e(0x362)]:return'collabStatus.synced';}}function _0x43c59b(_0x3f84dd){const _0x1e83d2=_0x4a00e7,{status$:_0x3f57b5}=_0x3f84dd,_0x57e978=_0x5121a3['useObservable'](_0x3f57b5,_0x2fe882[_0x1e83d2(0x144)][_0x1e83d2(0x19f)]),_0x498253=_0x5121a3[_0x1e83d2(0x11c)](_0x18ca73[_0x1e83d2(0x2b7)]),_0x3df357=_0x5121a3[_0x1e83d2(0x11c)](_0x2fe882[_0x1e83d2(0x26f)]),_0x1295de=_0x57e978!==_0x2fe882[_0x1e83d2(0x144)]['OFFLINE'],_0xbe62bc=_0x498253['t'](_0x30325f(_0x57e978)),_0x4af658=_0x1295de?_0x5bd372[_0x1e83d2(0x26a)](_0x41977a,{}):_0x5bd372[_0x1e83d2(0x26a)](_0xa5fe82,{}),_0x3ea166=_0x32b05b[_0x1e83d2(0x318)](()=>{_0x1295de||_0x3df357['reconnect']();},[_0x1295de,_0x3df357]);function _0x9a1d57(){const _0x16a325=_0x1e83d2;return _0x5bd372[_0x16a325(0x337)]('div',{'className':_0x16a325(0x283),'onClick':_0x3ea166,'children':[_0x5bd372['jsx'](_0x16a325(0x339),{'className':_0x578c52[_0x16a325(0x183)](_0x16a325(0x2c9),{'univer-text-green-500':_0x1295de,'univer-text-red-500':!_0x1295de}),'children':_0x4af658}),_0x5bd372['jsx']('div',{'className':_0x16a325(0x286),'children':_0xbe62bc})]});}return _0x1295de?_0x9a1d57():_0x5bd372['jsx'](_0x578c52[_0x1e83d2(0x2c1)],{'title':_0x498253['t'](_0x1e83d2(0x168)),'children':_0x9a1d57()});}var _0x2d69ae=Object[_0x4a00e7(0x1f9)],_0x176437=(_0x91ea1c,_0x32b94d,_0x50fc48,_0x26ff21)=>{const _0x593ec9=_0x4a00e7;for(var _0x4dc8c2=_0x26ff21>0x1?void 0x0:_0x26ff21?_0x2d69ae(_0x32b94d,_0x50fc48):_0x32b94d,_0x2e22ba=_0x91ea1c[_0x593ec9(0x256)]-0x1,_0x543ec8;_0x2e22ba>=0x0;_0x2e22ba--)(_0x543ec8=_0x91ea1c[_0x2e22ba])&&(_0x4dc8c2=_0x543ec8(_0x4dc8c2)||_0x4dc8c2);return _0x4dc8c2;},_0x19fdd8=(_0x32d1ed,_0x17c6fd)=>(_0x429620,_0x5898f1)=>_0x17c6fd(_0x429620,_0x5898f1,_0x32d1ed);_0x311cb7['DesktopCollaborationStatusDisplayController']=class extends _0x18ca73['Disposable']{constructor(_0x23c022,_0x2d4f8d,_0x5e27e3,_0x2aa1b1){const _0x45450b=_0x4a00e7;super(),_0x41f19e(this,_0x45450b(0x346),new _0x16b079['BehaviorSubject'](_0x2fe882['CollaborationStatus']['NOT_COLLAB'])),(this[_0x45450b(0x15d)]=_0x23c022,this[_0x45450b(0x1ab)]=_0x2d4f8d,this[_0x45450b(0x1c4)]=_0x5e27e3,this[_0x45450b(0x30d)]=_0x2aa1b1,this[_0x45450b(0x23f)](),this['_initStatusListener']());}[_0x4a00e7(0xfa)](){const _0x35081a=_0x4a00e7;this[_0x35081a(0x2a8)](this[_0x35081a(0x15d)]['focused$'][_0x35081a(0x217)](_0x16b079[_0x35081a(0x22e)](()=>{const _0x6555c5=_0x35081a,_0x19828c=this[_0x6555c5(0x15d)]['getFocusedUnit']();return _0x19828c?this[_0x6555c5(0x1c4)][_0x6555c5(0x22d)](_0x19828c['getUnitId']()):_0x16b079['of'](null);}),_0x16b079[_0x35081a(0x22e)](_0x171bd0=>_0x171bd0?_0x171bd0['status$']:_0x16b079['of'](_0x2fe882[_0x35081a(0x144)]['NOT_COLLAB'])))[_0x35081a(0x12b)](_0x5b0d36=>{const _0xe7bbb0=_0x35081a;this[_0xe7bbb0(0x346)][_0xe7bbb0(0x274)](_0x5b0d36);}));}[_0x4a00e7(0x23f)](){const _0x53af81=_0x4a00e7;this[_0x53af81(0x2a8)](this[_0x53af81(0x30d)][_0x53af81(0x24a)](_0x5121a3[_0x53af81(0x2ad)][_0x53af81(0x28b)],()=>_0x5121a3['connectInjector'](_0x26a9bf({'status$':this[_0x53af81(0x346)]['asObservable']()}),this[_0x53af81(0x1ab)])));}},_0x311cb7['DesktopCollaborationStatusDisplayController']=_0x176437([_0x19fdd8(0x0,_0x18ca73['IUniverInstanceService']),_0x19fdd8(0x1,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x271)])),_0x19fdd8(0x2,_0x18ca73['Inject'](_0x2fe882[_0x4a00e7(0x1c9)])),_0x19fdd8(0x3,_0x5121a3['IUIPartsService'])],_0x311cb7[_0x4a00e7(0xfb)]);function _0x26a9bf(_0x14c47d){const {status$:_0x54b906}=_0x14c47d;return function(){const _0x59df80=_0x27be;return _0x5bd372[_0x59df80(0x26a)](_0x43c59b,{'status$':_0x54b906});};}const _0x32736f=_0x18ca73['createIdentifier']('uni.network.url-service');var _0x16d1d5=Object[_0x4a00e7(0x1f9)],_0x1c864d=(_0x40968e,_0x245ec4,_0x3e1053,_0x3d48ba)=>{for(var _0x35ae04=_0x3d48ba>0x1?void 0x0:_0x3d48ba?_0x16d1d5(_0x245ec4,_0x3e1053):_0x245ec4,_0x3f66b2=_0x40968e['length']-0x1,_0xc394a4;_0x3f66b2>=0x0;_0x3f66b2--)(_0xc394a4=_0x40968e[_0x3f66b2])&&(_0x35ae04=_0xc394a4(_0x35ae04)||_0x35ae04);return _0x35ae04;},_0x1df12d=(_0x5c116b,_0x20b780)=>(_0x47a6a6,_0x530bdc)=>_0x20b780(_0x47a6a6,_0x530bdc,_0x5c116b);_0x311cb7[_0x4a00e7(0x32f)]=class extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(_0x1d6ddf,_0x280f5f,_0x526585,_0x135c48,_0x24293d){const _0x4a81fc=_0x4a00e7;super(),this[_0x4a81fc(0x126)]=_0x1d6ddf,this[_0x4a81fc(0x360)]=_0x280f5f,this[_0x4a81fc(0x29c)]=_0x526585,this[_0x4a81fc(0x254)]=_0x135c48,_0x24293d?_0x24293d==null||_0x24293d[_0x4a81fc(0x335)]()['then'](()=>this[_0x4a81fc(0x1ee)]()):(this[_0x4a81fc(0x360)]['debug'](_0x4a81fc(0x279),_0x4a81fc(0x250)),this['_init']());}async[_0x4a00e7(0x1ee)](){const _0x2c1102=_0x4a00e7,_0x1df110=this[_0x2c1102(0x126)][_0x2c1102(0x2e9)](_0x2c1102(0x249)),_0x5a344a=this[_0x2c1102(0x126)][_0x2c1102(0x2e9)](_0x2c1102(0x2a0)),_0x8b4187=this['_urlService'][_0x2c1102(0x2e9)](_0x2c1102(0x34d));if(!_0x1df110||!_0x5a344a){this['_logService'][_0x2c1102(0x199)](_0x2c1102(0x279),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x2ed731=await this[_0x2c1102(0x254)][_0x2c1102(0x28c)](_0x1df110,Number(_0x5a344a),_0x8b4187);_0x2ed731&&_0x2ed731 instanceof _0x18ca73[_0x2c1102(0x2b0)]&&this['_setupSubUnitSync'](_0x2ed731);}async['_setupSubUnitSync'](_0x34ee9d){const _0x24cfa5=_0x4a00e7;await this['_updateSubUnitFromURLParams'](_0x34ee9d),_0x34ee9d[_0x24cfa5(0x290)][_0x24cfa5(0x217)](_0x16b079[_0x24cfa5(0x18a)](this['dispose$']))[_0x24cfa5(0x12b)](_0x4fc17e=>{_0x4fc17e&&this['_updateURLWithCurrentState'](_0x4fc17e);}),this[_0x24cfa5(0x126)]['urlChange$'][_0x24cfa5(0x217)](_0x16b079[_0x24cfa5(0x18a)](this[_0x24cfa5(0x216)]))[_0x24cfa5(0x12b)](()=>this[_0x24cfa5(0x351)](_0x34ee9d));}[_0x4a00e7(0xf4)](_0x1cab6a,_0x341cf6=!0x1){const _0x3bef04=_0x4a00e7,_0x4f119c=this[_0x3bef04(0x126)]['getParam']('subunit');_0x1cab6a['getSheetId']()!==_0x4f119c&&this['_urlService'][_0x3bef04(0x1d9)](_0x3bef04(0x34d),_0x1cab6a[_0x3bef04(0x259)](),_0x341cf6);}async['_updateSubUnitFromURLParams'](_0x20c1bc){const _0x27a912=_0x4a00e7;var _0x1e608b;const _0x38b5e0=this[_0x27a912(0x126)]['getParam'](_0x27a912(0x34d));if(!_0x38b5e0||!_0x20c1bc['getSheetBySheetId'](_0x38b5e0)){const _0x4c4c30=_0x20c1bc[_0x27a912(0x19d)]()[0x0],_0x1e701d=_0x20c1bc[_0x27a912(0x1c5)](_0x4c4c30);if(!_0x1e701d)return;this[_0x27a912(0xf4)](_0x1e701d,!0x0),await this[_0x27a912(0x29c)][_0x27a912(0x23b)](_0x3c8e23['SetWorksheetActivateCommand']['id'],{'unitId':_0x20c1bc[_0x27a912(0x1fa)](),'subUnitId':_0x4c4c30});return;}((_0x1e608b=_0x20c1bc[_0x27a912(0x320)]())==null?void 0x0:_0x1e608b[_0x27a912(0x259)]())!==_0x38b5e0&&await this[_0x27a912(0x29c)][_0x27a912(0x23b)](_0x3c8e23[_0x27a912(0x1c2)]['id'],{'unitId':_0x20c1bc['getUnitId'](),'subUnitId':_0x38b5e0});}},_0x311cb7[_0x4a00e7(0x32f)]=_0x1c864d([_0x1df12d(0x0,_0x32736f),_0x1df12d(0x1,_0x18ca73[_0x4a00e7(0x1d3)]),_0x1df12d(0x2,_0x18ca73['ICommandService']),_0x1df12d(0x3,_0x18ca73[_0x4a00e7(0x29b)](_0x2fe882['DataLoaderService'])),_0x1df12d(0x4,_0x18ca73['Optional'](_0x457000[_0x4a00e7(0x2a6)]))],_0x311cb7[_0x4a00e7(0x32f)]);var _0x19e019=Object[_0x4a00e7(0x1f9)],_0x4b9895=(_0x113dd2,_0x49e186,_0x3da11a,_0x39be26)=>{const _0x192752=_0x4a00e7;for(var _0x3d971b=_0x39be26>0x1?void 0x0:_0x39be26?_0x19e019(_0x49e186,_0x3da11a):_0x49e186,_0x2b63e4=_0x113dd2[_0x192752(0x256)]-0x1,_0x4a64e3;_0x2b63e4>=0x0;_0x2b63e4--)(_0x4a64e3=_0x113dd2[_0x2b63e4])&&(_0x3d971b=_0x4a64e3(_0x3d971b)||_0x3d971b);return _0x3d971b;},_0x5807ba=(_0x4b5e35,_0x435dd4)=>(_0x57bbb0,_0x3a9c8a)=>_0x435dd4(_0x57bbb0,_0x3a9c8a,_0x4b5e35);let _0x2d1ce0=class extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(_0x3fca16,_0x48a131){const _0x325a10=_0x4a00e7;super(),this[_0x325a10(0x2ac)]=_0x3fca16,this[_0x325a10(0x233)]=_0x48a131,this[_0x325a10(0x1ee)]();}[_0x4a00e7(0x1ee)](){const _0x446fbd=_0x4a00e7,_0x1d420b=this;this[_0x446fbd(0x2a8)](this[_0x446fbd(0x2ac)][_0x446fbd(0x289)]({'onBeforePasteImage':async _0x57d8d1=>{const _0x48f044=_0x446fbd,_0x10276a=await _0x1d420b[_0x48f044(0x233)]['saveImage'](_0x57d8d1);return _0x10276a?{'source':_0x10276a['source'],'imageSourceType':_0x10276a[_0x48f044(0x377)]}:null;}}));}};_0x2d1ce0=_0x4b9895([_0x5807ba(0x0,_0x41c79e[_0x4a00e7(0x26e)]),_0x5807ba(0x1,_0x2baa74[_0x4a00e7(0x1f8)])],_0x2d1ce0);const _0x54206e=[_0x4a00e7(0x359),_0x4a00e7(0x380),_0x4a00e7(0x1bc),_0x4a00e7(0x340),_0x4a00e7(0x2c2),_0x4a00e7(0x139)];class _0x3fde5d extends _0x18ca73[_0x4a00e7(0x25b)]{constructor(){const _0xba7c32=_0x4a00e7;super(...arguments),_0x41f19e(this,'_assignedColors',new Map()),_0x41f19e(this,_0xba7c32(0x2f5),0x0);}[_0x4a00e7(0x24d)](_0x56d79b){const _0x150e27=_0x4a00e7;if(this['_assignedColors'][_0x150e27(0x133)](_0x56d79b))return this[_0x150e27(0x103)][_0x150e27(0x202)](_0x56d79b);const _0x5170a4=_0x54206e[this[_0x150e27(0x2f5)]];return this[_0x150e27(0x2f5)]=(this[_0x150e27(0x2f5)]+0x1)%_0x54206e[_0x150e27(0x256)],this['_assignedColors'][_0x150e27(0x329)](_0x56d79b,_0x5170a4),_0x5170a4;}}function _0x17a0c2(_0x1b94d9){let _0x1c1baa='';for(const _0x1d48c6 of _0x1b94d9){const {startOffset:_0x313fb4,endOffset:_0x19c02b,isActive:_0x40465d,rangeType:_0x3a9d77,segmentId:_0x55554e,segmentPage:_0x25a352}=_0x1d48c6;_0x1c1baa['length']&&(_0x1c1baa+=','),_0x1c1baa+=_0x313fb4+':'+_0x19c02b+':'+(_0x40465d?'1':'0')+':'+_0x3a9d77+':'+_0x55554e+':'+_0x25a352;}return _0x1c1baa;}function _0x440b1d(_0x29be7d){const _0x1e864d=_0x4a00e7,_0x82e35=_0x29be7d[_0x1e864d(0x272)](','),_0xf91082=[];for(const _0x13c53c of _0x82e35){const [_0x8e8d8f,_0x26f33e,_0x3a773c,_0x14a4a2,_0x5e1922,_0x5913f1]=_0x13c53c[_0x1e864d(0x272)](':');_0xf91082['push']({'startOffset':Number(_0x8e8d8f),'endOffset':Number(_0x26f33e),'collapsed':_0x8e8d8f===_0x26f33e,'isActive':_0x3a773c==='1','rangeType':_0x14a4a2===_0x18ca73['DOC_RANGE_TYPE'][_0x1e864d(0x1a8)]?_0x18ca73['DOC_RANGE_TYPE'][_0x1e864d(0x1a8)]:_0x18ca73[_0x1e864d(0x142)]['RECT'],'segmentId':typeof _0x5e1922=='string'?String(_0x5e1922):'','segmentPage':Number(_0x5913f1!=null?_0x5913f1:-0x1)});}return _0xf91082[_0x1e864d(0x1ac)](_0x2cf94d=>_0x2cf94d['isActive'])||(_0xf91082[0x0][_0x1e864d(0x26b)]=!0x0),_0xf91082;}class _0x349747 extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(){const _0x1ad5bc=_0x4a00e7;super(...arguments),_0x41f19e(this,_0x1ad5bc(0x336),new _0x16b079[(_0x1ad5bc(0x18c))](null)),_0x41f19e(this,_0x1ad5bc(0x2dd),this['_collabCursorState$']['asObservable']());}[_0x4a00e7(0x2fb)](_0x2f93b1){const _0x514c10=_0x4a00e7,{unitID:_0x1799b2,memberID:_0x534ffd,textRanges:_0x237f8e}=_0x2f93b1,_0x50cdd2=_0x17a0c2(_0x237f8e);if(_0x50cdd2==='')return;const _0x53a84f={'unitID':_0x1799b2,'memberID':_0x534ffd,'selection':_0x50cdd2};this[_0x514c10(0x336)][_0x514c10(0x274)](_0x53a84f);}}var _0xe67a58=Object[_0x4a00e7(0x1f9)],_0x50afb7=(_0x1209ec,_0x6bee83,_0x3c71b9,_0x20868b)=>{const _0x40d8e8=_0x4a00e7;for(var _0x334a4c=_0x20868b>0x1?void 0x0:_0x20868b?_0xe67a58(_0x6bee83,_0x3c71b9):_0x6bee83,_0x3e9bde=_0x1209ec[_0x40d8e8(0x256)]-0x1,_0x5191a2;_0x3e9bde>=0x0;_0x3e9bde--)(_0x5191a2=_0x1209ec[_0x3e9bde])&&(_0x334a4c=_0x5191a2(_0x334a4c)||_0x334a4c);return _0x334a4c;},_0x12102d=(_0x52f647,_0x5cb48c)=>(_0x1ea398,_0x540e24)=>_0x5cb48c(_0x1ea398,_0x540e24,_0x52f647);const _0x2bdafa=0x12c,_0x1a2760=0x64;let _0x5d9194=class extends _0x18ca73['RxDisposable']{constructor(_0x2de6fb,_0x52bd00,_0x4f9bd0,_0x2ce96b,_0x1c9927,_0x21b0c6,_0x3b5f61,_0x5e85ca,_0x1fa5e5){const _0x8c97aa=_0x4a00e7;super(),_0x41f19e(this,_0x8c97aa(0x1b8),!0x1),_0x41f19e(this,_0x8c97aa(0x1ee),!0x1),_0x41f19e(this,'_cursorInfo$',new _0x16b079['BehaviorSubject'](new Map())),_0x41f19e(this,_0x8c97aa(0x14e),this[_0x8c97aa(0x194)][_0x8c97aa(0x19e)]()),_0x41f19e(this,_0x8c97aa(0x1ea),new _0x16b079[(_0x8c97aa(0x18c))]([])),_0x41f19e(this,_0x8c97aa(0x104),this[_0x8c97aa(0x1ea)][_0x8c97aa(0x217)](_0x16b079[_0x8c97aa(0x27e)](_0x2bdafa))),_0x41f19e(this,_0x8c97aa(0x242),_0x18ca73[_0x8c97aa(0x258)](_0x11cf8d=>{const _0x71b777=_0x8c97aa,_0x179f6c={'eventID':_0x518b96[_0x71b777(0x20d)][_0x71b777(0x2b5)],'data':{'unitID':this[_0x71b777(0x2d2)],'memberID':this[_0x71b777(0x227)][_0x71b777(0x165)](),'selection':_0x17a0c2(_0x11cf8d)}};this[_0x71b777(0x227)]['send'](_0x179f6c,this['unitID']);},_0x1a2760)),(this[_0x8c97aa(0x2d2)]=_0x2de6fb,this['_session']=_0x52bd00,this[_0x8c97aa(0x1ab)]=_0x4f9bd0,this['_colorAssignService']=_0x2ce96b,this[_0x8c97aa(0x343)]=_0x1c9927,this[_0x8c97aa(0x30e)]=_0x21b0c6,this['_transformService']=_0x3b5f61,this['_univerInstanceService']=_0x5e85ca,this['_commandService']=_0x1fa5e5);}get['cursorInfo'](){const _0x39a679=_0x4a00e7;return this['_cursorInfo$'][_0x39a679(0x2e5)]();}get['roomMembers'](){const _0x4afc9b=_0x4a00e7;return this[_0x4afc9b(0x1ea)][_0x4afc9b(0x2e5)]();}[_0x4a00e7(0x264)](){const _0x5a22eb=_0x4a00e7;super[_0x5a22eb(0x264)](),this['_cursorInfo$'][_0x5a22eb(0x274)](new Map()),this['_cursorInfo$'][_0x5a22eb(0x2df)](),this['_roomMembers$'][_0x5a22eb(0x274)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x232854=_0x4a00e7;this[_0x232854(0x1ee)]||(this[_0x232854(0x1ee)]=!0x0,this[_0x232854(0x227)][_0x232854(0xf0)][_0x232854(0x217)](_0x16b079[_0x232854(0x18a)](this[_0x232854(0x216)]))[_0x232854(0x12b)](_0x6efda2=>{const _0x2f8140=_0x232854;_0x6efda2===_0x2fe882['SessionStatus'][_0x2f8140(0x338)]?this[_0x2f8140(0x2b3)]():this[_0x2f8140(0x16b)]();}),this['_session']['event$'][_0x232854(0x217)](_0x16b079['takeUntil'](this[_0x232854(0x216)]))[_0x232854(0x12b)](_0x367a80=>{const _0x33f695=_0x232854,_0x1d2d51=_0x367a80[_0x33f695(0x26d)];_0x1d2d51===_0x518b96[_0x33f695(0x20d)][_0x33f695(0x2b5)]&&this[_0x33f695(0x197)](_0x367a80),_0x1d2d51===_0x518b96[_0x33f695(0x20d)][_0x33f695(0x208)]&&this['_onCursorDelete'](_0x367a80);}),this['disposeWithMe'](this[_0x232854(0x29c)][_0x232854(0x180)](_0x218f54=>{const _0x252d87=_0x232854,_0x4b2874=_0x218f54[_0x252d87(0x2de)];_0x4b2874!=null&&this['_online']&&_0x218f54['id']===_0x40419e[_0x252d87(0x2cb)]['id']&&_0x4b2874[_0x252d87(0x36e)]===this['unitID']&&_0x4b2874['isEditing']===!0x1&&_0x4b2874['ranges'][_0x252d87(0x256)]>0x0&&this[_0x252d87(0x242)](_0x4b2874[_0x252d87(0x319)]);})),this[_0x232854(0x30e)][_0x232854(0x2dd)][_0x232854(0x217)](_0x16b079['takeUntil'](this[_0x232854(0x216)]))[_0x232854(0x12b)](_0x428203=>{const _0x3dba2e=_0x232854;if((_0x428203==null?void 0x0:_0x428203[_0x3dba2e(0x2d2)])!==this[_0x3dba2e(0x2d2)])return;const _0x423ae2={'eventID':_0x518b96[_0x3dba2e(0x20d)][_0x3dba2e(0x2b5)],'data':_0x428203};this['_onCursorUpdate'](_0x423ae2);}),this['disposeWithMe'](this[_0x232854(0x29c)]['onCommandExecuted'](_0x4433d8=>{const _0x512bb6=_0x232854;if(_0x4433d8[_0x512bb6(0x2de)]==null)return;const _0x74467e=_0x4433d8[_0x512bb6(0x2de)];if(_0x4433d8['id']!==_0x40419e[_0x512bb6(0x166)]['id']||_0x74467e[_0x512bb6(0x36e)]!==this[_0x512bb6(0x2d2)])return;const _0x90fce={'id':'doc.mutation.rich-text-editing','params':_0x74467e},_0x3ad41f=this[_0x512bb6(0x35f)];for(const [_0x2c8d88,_0x16a477]of _0x3ad41f){const _0x3d4595={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x512bb6(0x2d2)],'actions':null,'textRanges':_0x16a477[_0x512bb6(0x319)]}},_0x418e18=this[_0x512bb6(0x1a6)][_0x512bb6(0x2d3)](_0x90fce,_0x3d4595,!0x1);if(_0x518b96[_0x512bb6(0x326)](_0x418e18))throw _0x418e18[_0x512bb6(0x17e)];_0x3ad41f[_0x512bb6(0x329)](_0x2c8d88,{..._0x16a477,'ranges':_0x418e18[_0x512bb6(0x381)]['params'][_0x512bb6(0x2eb)]});}queueMicrotask(()=>{const _0x2b55c0=_0x512bb6;this[_0x2b55c0(0x194)][_0x2b55c0(0x274)](_0x3ad41f);});})));}[_0x4a00e7(0x197)](_0x2d44cf){const _0x51b42b=_0x4a00e7;var _0x5ebbb5,_0x1b7dfc;const {memberID:_0x219248,selection:_0x4a0093}=_0x2d44cf[_0x51b42b(0x36f)],_0x356027=_0x440b1d(_0x4a0093),_0xf1f94e=(_0x1b7dfc=(_0x5ebbb5=this['_memberService'][_0x51b42b(0x221)](this[_0x51b42b(0x2d2)],_0x219248))==null?void 0x0:_0x5ebbb5[_0x51b42b(0x287)])!=null?_0x1b7dfc:'Unknown\x20user',_0x285b54={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x219248),'name':_0xf1f94e,'ranges':_0x356027},_0x333eef=this[_0x51b42b(0x35f)];_0x333eef[_0x51b42b(0x329)](_0x219248,_0x285b54),this[_0x51b42b(0x194)][_0x51b42b(0x274)](_0x333eef);}[_0x4a00e7(0x34f)](_0x505553){const _0x327481=_0x4a00e7,{memberID:_0x36afa4}=_0x505553[_0x327481(0x36f)],_0x1989d0=this['cursorInfo'];_0x1989d0['delete'](_0x36afa4),this['_cursorInfo$'][_0x327481(0x274)](_0x1989d0);}[_0x4a00e7(0x2b3)](){const _0x3cd0c7=_0x4a00e7;var _0x5aa206;if(this['_online']=!0x0,((_0x5aa206=this[_0x3cd0c7(0x15d)][_0x3cd0c7(0x23d)]())==null?void 0x0:_0x5aa206[_0x3cd0c7(0x1fa)]())!==this[_0x3cd0c7(0x2d2)])return;const _0x267f8b=this[_0x3cd0c7(0x1ab)]['get'](_0x40419e[_0x3cd0c7(0x154)])[_0x3cd0c7(0x315)]();Array[_0x3cd0c7(0x31b)](_0x267f8b)&&_0x267f8b[_0x3cd0c7(0x256)]>0x0&&this['_updateLocalCursor'](_0x267f8b);}[_0x4a00e7(0x16b)](){const _0xe4f5ba=_0x4a00e7;this[_0xe4f5ba(0x1b8)]=!0x1;}};_0x5d9194=_0x50afb7([_0x12102d(0x2,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x271)])),_0x12102d(0x3,_0x18ca73[_0x4a00e7(0x29b)](_0x3fde5d)),_0x12102d(0x4,_0x18ca73[_0x4a00e7(0x29b)](_0x2fe882[_0x4a00e7(0x28a)])),_0x12102d(0x5,_0x18ca73[_0x4a00e7(0x29b)](_0x349747)),_0x12102d(0x6,_0x518b96[_0x4a00e7(0x16a)]),_0x12102d(0x7,_0x18ca73[_0x4a00e7(0x196)]),_0x12102d(0x8,_0x18ca73['ICommandService'])],_0x5d9194);var _0x4b112b=Object[_0x4a00e7(0x1f9)],_0x16779a=(_0x277892,_0x35ca60,_0x55bd9c,_0x55e4f4)=>{const _0x4bdf49=_0x4a00e7;for(var _0x319b04=_0x55e4f4>0x1?void 0x0:_0x55e4f4?_0x4b112b(_0x35ca60,_0x55bd9c):_0x35ca60,_0x44c263=_0x277892[_0x4bdf49(0x256)]-0x1,_0x4fa251;_0x44c263>=0x0;_0x44c263--)(_0x4fa251=_0x277892[_0x44c263])&&(_0x319b04=_0x4fa251(_0x319b04)||_0x319b04);return _0x319b04;},_0x3b5468=(_0x485038,_0x1a7575)=>(_0x3c478,_0x3b172a)=>_0x1a7575(_0x3c478,_0x3b172a,_0x485038);const _0x154ad0=0x12c,_0x125df3=0x64,_0x577705=()=>{let _0x9e52ce=[],_0x5717ee=!0x1;return _0x2fd7a6=>{const _0x2de6af=_0x27be;_0x9e52ce[_0x2de6af(0x2b6)](_0x2fd7a6),_0x5717ee||(_0x5717ee=!0x0,setTimeout(()=>{const _0x5412c5=_0x2de6af;_0x9e52ce[_0x5412c5(0x28f)](_0x38a113=>_0x38a113()),_0x9e52ce=[],_0x5717ee=!0x1;}));};};let _0x42c0ec=class extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(_0xfae60f,_0x56e0ba,_0x2867d3,_0x12a734,_0x2bf58a,_0xf5600f,_0x46aeeb,_0x4047ec){const _0x47f04b=_0x4a00e7;super(),_0x41f19e(this,_0x47f04b(0x1b8),!0x1),_0x41f19e(this,_0x47f04b(0x1ee),!0x1),_0x41f19e(this,_0x47f04b(0x194),new _0x16b079[(_0x47f04b(0x18c))](new Map())),_0x41f19e(this,'cursorInfo$',this[_0x47f04b(0x194)][_0x47f04b(0x19e)]()),_0x41f19e(this,_0x47f04b(0x1ea),new _0x16b079[(_0x47f04b(0x18c))]([])),_0x41f19e(this,'roomMembers$',this[_0x47f04b(0x1ea)][_0x47f04b(0x217)](_0x16b079[_0x47f04b(0x27e)](_0x154ad0))),_0x41f19e(this,'_updateLocalCursor',_0x18ca73[_0x47f04b(0x258)]((_0x24c22a,_0x1ddc61)=>{const _0x22d464=_0x47f04b,_0x416dbe={'eventID':_0x518b96[_0x22d464(0x20d)][_0x22d464(0x2b5)],'data':{'unitID':this['unitID'],'memberID':this[_0x22d464(0x227)][_0x22d464(0x165)](),'selection':_0xcce0ba[_0x22d464(0x14c)](_0x24c22a,_0x1ddc61['range'])}};this[_0x22d464(0x227)][_0x22d464(0x1a4)](_0x416dbe,this[_0x22d464(0x2d2)]);},_0x125df3)),(this[_0x47f04b(0x2d2)]=_0xfae60f,this[_0x47f04b(0x227)]=_0x56e0ba,this[_0x47f04b(0x1ab)]=_0x2867d3,this['_colorAssignService']=_0x12a734,this[_0x47f04b(0x343)]=_0x2bf58a,this[_0x47f04b(0x15d)]=_0xf5600f,this[_0x47f04b(0x29c)]=_0x46aeeb,this['_refRangeService']=_0x4047ec);}get[_0x4a00e7(0x35f)](){const _0x2e4336=_0x4a00e7;return this[_0x2e4336(0x194)]['getValue']();}get['roomMembers'](){const _0x2349f8=_0x4a00e7;return this['_roomMembers$'][_0x2349f8(0x2e5)]();}[_0x4a00e7(0x264)](){const _0x3a9b74=_0x4a00e7;super['dispose'](),this[_0x3a9b74(0x194)][_0x3a9b74(0x274)](new Map()),this[_0x3a9b74(0x194)][_0x3a9b74(0x2df)](),this[_0x3a9b74(0x1ea)][_0x3a9b74(0x274)]([]),this[_0x3a9b74(0x1ea)][_0x3a9b74(0x2df)]();}[_0x4a00e7(0x2bd)](){const _0x2bd042=_0x4a00e7;this[_0x2bd042(0x1ee)]||(this[_0x2bd042(0x1ee)]=!0x0,this[_0x2bd042(0x227)]['sessionStatus$'][_0x2bd042(0x217)](_0x16b079[_0x2bd042(0x18a)](this[_0x2bd042(0x216)]))[_0x2bd042(0x12b)](_0x4176a9=>{const _0x438e4f=_0x2bd042;_0x4176a9===_0x2fe882[_0x438e4f(0x311)][_0x438e4f(0x338)]?this['_toggleOnline']():this[_0x438e4f(0x16b)]();}),this[_0x2bd042(0x227)][_0x2bd042(0x184)]['pipe'](_0x16b079[_0x2bd042(0x18a)](this['dispose$']))[_0x2bd042(0x12b)](_0x35a7cf=>{const _0x9ddd63=_0x2bd042,_0x31eedc=_0x35a7cf[_0x9ddd63(0x26d)];_0x31eedc===_0x518b96['CollaborationEvent'][_0x9ddd63(0x2b5)]&&this[_0x9ddd63(0x197)](_0x35a7cf),_0x31eedc===_0x518b96[_0x9ddd63(0x20d)][_0x9ddd63(0x208)]&&this[_0x9ddd63(0x34f)](_0x35a7cf);}),this[_0x2bd042(0x128)](),this['disposeWithMe'](this[_0x2bd042(0x29c)][_0x2bd042(0x180)](_0x24cd84=>{const _0x143d96=_0x2bd042;if(this[_0x143d96(0x1b8)]&&_0x24cd84['id']===_0x3c8e23[_0x143d96(0x28e)]['id']&&_0x24cd84[_0x143d96(0x2de)][_0x143d96(0x36e)]===this[_0x143d96(0x2d2)]){const _0x888fb0=_0x24cd84['params'];this[_0x143d96(0x242)](_0x888fb0['subUnitId'],_0x888fb0['selections'][0x0]);}})));}[_0x4a00e7(0x197)](_0x251e70){const _0x4fbeb5=_0x4a00e7;var _0x5ac1e6,_0x537234;const {memberID:_0x1513bf,selection:_0x55aa3c}=_0x251e70[_0x4fbeb5(0x36f)],{sheetName:_0x12c73e,range:_0x3cc49e}=_0xcce0ba[_0x4fbeb5(0x37d)](_0x55aa3c),_0x35d84e={'name':(_0x537234=(_0x5ac1e6=this[_0x4fbeb5(0x343)][_0x4fbeb5(0x221)](this['unitID'],_0x1513bf))==null?void 0x0:_0x5ac1e6[_0x4fbeb5(0x287)])!=null?_0x537234:_0x4fbeb5(0x238),'range':this[_0x4fbeb5(0x357)](_0x12c73e,_0x3cc49e),'sheetID':_0x12c73e,'color':this[_0x4fbeb5(0x32b)][_0x4fbeb5(0x24d)](_0x1513bf),'selection':_0x55aa3c},_0x1d41b8=this[_0x4fbeb5(0x35f)];_0x1d41b8[_0x4fbeb5(0x329)](_0x1513bf,_0x35d84e),this[_0x4fbeb5(0x194)][_0x4fbeb5(0x274)](_0x1d41b8);}[_0x4a00e7(0x34f)](_0x5c4e2a){const _0x23747b=_0x4a00e7,{memberID:_0x476494}=_0x5c4e2a[_0x23747b(0x36f)],_0x40f050=this[_0x23747b(0x35f)];_0x40f050[_0x23747b(0x1e2)](_0x476494),this[_0x23747b(0x194)][_0x23747b(0x274)](_0x40f050);}[_0x4a00e7(0x357)](_0x4def9f,_0x1255b0){const _0x5b9c05=_0x4a00e7;var _0x4f3485,_0x40cbaf;const _0x20b9b5=(_0x40cbaf=(_0x4f3485=this[_0x5b9c05(0x15d)][_0x5b9c05(0x200)](this[_0x5b9c05(0x2d2)]))==null?void 0x0:_0x4f3485['getSheetBySheetId'](_0x4def9f))==null?void 0x0:_0x40cbaf[_0x5b9c05(0x129)]();return(_0x20b9b5==null?void 0x0:_0x20b9b5['find'](_0xb57c84=>_0x18ca73['Rectangle'][_0x5b9c05(0x282)](_0xb57c84,_0x1255b0)))||_0x1255b0;}['_onRefRangeChange'](){const _0x5b4fac=_0x4a00e7,_0x52afd1=new _0x18ca73['DisposableCollection'](),_0x535b86=_0x577705(),_0x2208a9=()=>{const _0x561f13=_0x27be;_0x52afd1[_0x561f13(0x264)]();const _0x209af9=(_0x114d9d,_0x26ac7a,_0x217ac7,_0x171467)=>{const _0x2523e3=_0x561f13;let _0x1ed2ce=[];switch(_0x114d9d['id']){case _0x3c8e23[_0x2523e3(0x141)][_0x2523e3(0x27f)]:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x23e)](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)][_0x2523e3(0x1c3)]:{_0x1ed2ce=_0x3c8e23['handleDeleteRangeMoveUp'](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)][_0x2523e3(0x164)]:{_0x1ed2ce=_0x3c8e23['handleInsertCol'](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)]['InsertRangeMoveDownCommandId']:{_0x1ed2ce=_0x3c8e23['handleInsertRangeMoveDown'](_0x114d9d,_0x171467);break;}case _0x3c8e23['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x2b2)](_0x114d9d,_0x171467);break;}case _0x3c8e23['EffectRefRangId'][_0x2523e3(0x29e)]:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x237)](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)][_0x2523e3(0x37c)]:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x275)](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)]['RemoveColCommandId']:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x21a)](_0x114d9d,_0x171467);break;}case _0x3c8e23[_0x2523e3(0x141)][_0x2523e3(0x30b)]:{_0x1ed2ce=_0x3c8e23[_0x2523e3(0x1e5)](_0x114d9d,_0x171467);break;}}const _0x5d1a39=_0x3c8e23[_0x2523e3(0x17f)](_0x1ed2ce,_0x171467),_0x28cf1f=this[_0x2523e3(0x35f)]['get'](_0x26ac7a);if(_0x28cf1f&&_0x5d1a39){const _0x585385={..._0x28cf1f,'range':_0x5d1a39};this[_0x2523e3(0x35f)]['set'](_0x26ac7a,_0x585385),_0x535b86(()=>{const _0x53ef77=_0x2523e3,_0x17ac2f=this['_refRangeService'][_0x53ef77(0x37f)](_0x5d1a39,_0x42fba3=>(_0x17ac2f['dispose'](),_0x209af9(_0x42fba3,_0x26ac7a,_0x217ac7,_0x5d1a39)));_0x52afd1[_0x53ef77(0x114)](_0x17ac2f);});}return{'redos':[],'undos':[]};};this[_0x561f13(0x35f)]['forEach']((_0x318bae,_0x5535fa)=>{const _0x346246=_0x561f13,{range:_0x133830,sheetID:_0x26df25}=_0x318bae,_0x284ea9=this[_0x346246(0x241)][_0x346246(0x37f)](_0x133830,_0x323052=>(_0x284ea9[_0x346246(0x264)](),_0x209af9(_0x323052,_0x5535fa,_0x26df25,_0x133830)));_0x52afd1[_0x346246(0x114)](_0x284ea9);});};this[_0x5b4fac(0x2a8)](_0x18ca73[_0x5b4fac(0x244)](this[_0x5b4fac(0x194)][_0x5b4fac(0x12b)](()=>{_0x2208a9();})));}[_0x4a00e7(0x2b3)](){const _0x24b23f=_0x4a00e7;var _0x53db0d,_0x181185;if(this[_0x24b23f(0x1b8)]=!0x0,((_0x53db0d=this[_0x24b23f(0x15d)][_0x24b23f(0x23d)]())==null?void 0x0:_0x53db0d[_0x24b23f(0x1fa)]())!==this[_0x24b23f(0x2d2)])return;const _0x2795a0=(_0x181185=this['_injector'][_0x24b23f(0x202)](_0x3c8e23['SheetsSelectionsService'])[_0x24b23f(0x2e6)]())==null?void 0x0:_0x181185[0x0],_0x1e258f=this['_univerInstanceService'][_0x24b23f(0x122)](_0x18ca73[_0x24b23f(0x113)][_0x24b23f(0x158)])[_0x24b23f(0x320)]();_0x2795a0&&_0x1e258f&&this['_updateLocalCursor'](_0x1e258f['getSheetId'](),_0x2795a0);}[_0x4a00e7(0x16b)](){const _0x46d10d=_0x4a00e7;this[_0x46d10d(0x1b8)]=!0x1;}};_0x42c0ec=_0x16779a([_0x3b5468(0x2,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x271)])),_0x3b5468(0x3,_0x18ca73[_0x4a00e7(0x29b)](_0x3fde5d)),_0x3b5468(0x4,_0x18ca73['Inject'](_0x2fe882[_0x4a00e7(0x28a)])),_0x3b5468(0x5,_0x18ca73[_0x4a00e7(0x196)]),_0x3b5468(0x6,_0x18ca73[_0x4a00e7(0x2ea)]),_0x3b5468(0x7,_0x18ca73['Inject'](_0x3c8e23['RefRangeService']))],_0x42c0ec);var _0x2fb020=Object[_0x4a00e7(0x1f9)],_0x3ecf4d=(_0x3b4ac2,_0x1d5c65,_0x26b7de,_0x403ffb)=>{const _0x14149c=_0x4a00e7;for(var _0x3426b3=_0x403ffb>0x1?void 0x0:_0x403ffb?_0x2fb020(_0x1d5c65,_0x26b7de):_0x1d5c65,_0x17bb9f=_0x3b4ac2[_0x14149c(0x256)]-0x1,_0x3103b6;_0x17bb9f>=0x0;_0x17bb9f--)(_0x3103b6=_0x3b4ac2[_0x17bb9f])&&(_0x3426b3=_0x3103b6(_0x3426b3)||_0x3426b3);return _0x3426b3;},_0x56f071=(_0x157f23,_0x5978a8)=>(_0x596668,_0x37ab9c)=>_0x5978a8(_0x596668,_0x37ab9c,_0x157f23);let _0x54c140=class extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(_0x5e3313,_0x9007a0,_0xb8d8b3){const _0x2e1400=_0x4a00e7;super(),_0x41f19e(this,_0x2e1400(0x248),new Map()),_0x41f19e(this,_0x2e1400(0x312),new _0x16b079[(_0x2e1400(0x2a9))]()),(this[_0x2e1400(0x15d)]=_0x5e3313,this[_0x2e1400(0x1ab)]=_0x9007a0,this[_0x2e1400(0x280)]=_0xb8d8b3,this[_0x2e1400(0x1ee)]());}[_0x4a00e7(0x264)](){const _0x5732cc=_0x4a00e7;super[_0x5732cc(0x264)](),this['_entityInit$'][_0x5732cc(0x2df)](),this[_0x5732cc(0x248)][_0x5732cc(0x28f)](_0x5bbb8f=>_0x5bbb8f[_0x5732cc(0x264)]());}[_0x4a00e7(0x265)](_0x2b391b){const _0x3f1fdb=_0x4a00e7;return this[_0x3f1fdb(0x248)][_0x3f1fdb(0x133)](_0x2b391b)?this[_0x3f1fdb(0x248)][_0x3f1fdb(0x202)](_0x2b391b)[_0x3f1fdb(0x14e)]:this[_0x3f1fdb(0x312)]['pipe'](_0x16b079['filter'](_0x2be5e5=>_0x2be5e5[_0x3f1fdb(0x2d2)]===_0x2b391b),_0x16b079[_0x3f1fdb(0x22e)](_0x31a04a=>_0x31a04a['cursorInfo$']));}[_0x4a00e7(0x1ee)](){const _0x20995a=_0x4a00e7;this[_0x20995a(0x15d)]['getTypeOfUnitAdded$'](_0x18ca73[_0x20995a(0x113)][_0x20995a(0x158)])[_0x20995a(0x217)](_0x16b079[_0x20995a(0x18a)](this['dispose$']))[_0x20995a(0x12b)](async _0x33cfdd=>{const _0x31ab35=_0x20995a,_0xec2e07=_0x33cfdd[_0x31ab35(0x1fa)](),_0x13cdca=await this[_0x31ab35(0x374)](_0xec2e07);this['_entityInit$'][_0x31ab35(0x274)](_0x13cdca),this[_0x31ab35(0x248)][_0x31ab35(0x329)](_0xec2e07,_0x13cdca);}),this[_0x20995a(0x15d)][_0x20995a(0x37b)](_0x18ca73[_0x20995a(0x113)][_0x20995a(0x2a3)])[_0x20995a(0x217)](_0x16b079[_0x20995a(0x18a)](this['dispose$']))['pipe'](_0x16b079[_0x20995a(0x156)](_0x28937d=>!_0x28937d['getUnitId']()[_0x20995a(0x17c)]('__')))['subscribe'](async _0x105625=>{const _0xcc4545=_0x20995a,_0x2ff7a8=_0x105625['getUnitId'](),_0x5c95a0=await this[_0xcc4545(0x21d)](_0x2ff7a8);this[_0xcc4545(0x312)]['next'](_0x5c95a0),this[_0xcc4545(0x248)][_0xcc4545(0x329)](_0x2ff7a8,_0x5c95a0);}),_0x16b079['merge'](this['_univerInstanceService'][_0x20995a(0x2a1)](_0x18ca73['UniverInstanceType']['UNIVER_DOC']),this[_0x20995a(0x15d)]['getTypeOfUnitDisposed$'](_0x18ca73['UniverInstanceType'][_0x20995a(0x158)]))[_0x20995a(0x217)](_0x16b079[_0x20995a(0x18a)](this['dispose$']))[_0x20995a(0x12b)](_0x98b485=>{const _0x1cc745=_0x20995a,_0x5a70a6=_0x98b485['getUnitId'](),_0x443164=this[_0x1cc745(0x248)]['get'](_0x5a70a6);_0x443164&&(_0x443164[_0x1cc745(0x264)](),this[_0x1cc745(0x248)][_0x1cc745(0x1e2)](_0x5a70a6));});}async[_0x4a00e7(0x374)](_0x1b9cf3){const _0x445dad=_0x4a00e7,_0x5ab133=await this[_0x445dad(0x280)][_0x445dad(0x355)](_0x1b9cf3),_0x576c2e=this[_0x445dad(0x1ab)][_0x445dad(0x132)](_0x42c0ec,_0x1b9cf3,_0x5ab133);return _0x576c2e[_0x445dad(0x2bd)](),_0x576c2e;}async[_0x4a00e7(0x21d)](_0x5d2e90){const _0x50b496=_0x4a00e7,_0x1ce597=await this[_0x50b496(0x280)][_0x50b496(0x355)](_0x5d2e90),_0x5d1a61=this[_0x50b496(0x1ab)][_0x50b496(0x132)](_0x5d9194,_0x5d2e90,_0x1ce597);return _0x5d1a61[_0x50b496(0x2bd)](),_0x5d1a61;}};_0x54c140=_0x3ecf4d([_0x56f071(0x0,_0x18ca73[_0x4a00e7(0x196)]),_0x56f071(0x1,_0x18ca73['Inject'](_0x18ca73['Injector'])),_0x56f071(0x2,_0x18ca73['Inject'](_0x2fe882[_0x4a00e7(0x26f)]))],_0x54c140);const _0x533c05=0x14,_0x43d972=0xc8,_0x137d3f=0x4,_0x26844e=0x5;function _0x5c83c7(_0x1a8b69,_0x285d22){const _0x7502e9=_0x4a00e7;let {radius:_0x57657e,width:_0x22eecc,height:_0x28c47e}=_0x285d22;_0x57657e=_0x57657e!=null?_0x57657e:0x0,_0x22eecc=_0x22eecc!=null?_0x22eecc:0x1e,_0x28c47e=_0x28c47e!=null?_0x28c47e:0x1e;let _0x47a657=0x0,_0x2530af=0x0,_0x3368bd=0x0;_0x47a657=_0x2530af=_0x3368bd=Math[_0x7502e9(0x2bb)](_0x57657e,_0x22eecc/0x2,_0x28c47e/0x2),_0x1a8b69[_0x7502e9(0x332)](),_0x1a8b69[_0x7502e9(0x245)](_0x47a657,0x0),_0x1a8b69[_0x7502e9(0x2c5)](_0x22eecc-_0x2530af,0x0),_0x1a8b69[_0x7502e9(0x10b)](_0x22eecc-_0x2530af,_0x2530af,_0x2530af,Math['PI']*0x3/0x2,0x0,!0x1),_0x1a8b69[_0x7502e9(0x2c5)](_0x22eecc,_0x28c47e-_0x3368bd),_0x1a8b69[_0x7502e9(0x10b)](_0x22eecc-_0x3368bd,_0x28c47e-_0x3368bd,_0x3368bd,0x0,Math['PI']/0x2,!0x1),_0x1a8b69[_0x7502e9(0x2c5)](0x0,_0x28c47e),_0x1a8b69[_0x7502e9(0x2c5)](0x0,_0x47a657),_0x1a8b69[_0x7502e9(0x10b)](_0x47a657,_0x47a657,_0x47a657,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1a8b69[_0x7502e9(0x378)](),_0x285d22['fill']&&(_0x1a8b69[_0x7502e9(0x2ab)](),_0x1a8b69[_0x7502e9(0x2f6)]=_0x285d22[_0x7502e9(0x1a5)],_0x285d22[_0x7502e9(0x36b)]===_0x7502e9(0x1cd)?_0x1a8b69[_0x7502e9(0x1a5)](_0x7502e9(0x1cd)):_0x1a8b69[_0x7502e9(0x1a5)](),_0x1a8b69[_0x7502e9(0x112)]());}class _0x43f643 extends _0x1000a2[_0x4a00e7(0x263)]{constructor(_0x2dd468,_0x2601ad){const _0x5214c3=_0x4a00e7;super(_0x2dd468,_0x2601ad),_0x41f19e(this,_0x5214c3(0x111)),_0x41f19e(this,_0x5214c3(0x2e1)),(this[_0x5214c3(0x111)]=_0x2601ad==null?void 0x0:_0x2601ad[_0x5214c3(0x111)],this['text']=_0x2601ad==null?void 0x0:_0x2601ad[_0x5214c3(0x2e1)]);}static['drawWith'](_0x49bb75,_0x124f11){const _0x216c88=_0x4a00e7,{text:_0x17e9aa,color:_0x425f52}=_0x124f11;_0x49bb75['save'](),_0x49bb75[_0x216c88(0x2ed)]=_0x216c88(0x1b9);const _0x1350f3=_0x49bb75['measureText'](_0x17e9aa)[_0x216c88(0x138)],_0x20e76c=Math['min'](_0x1350f3+0x2*_0x137d3f,_0x43d972);_0x5c83c7(_0x49bb75,{'height':_0x533c05,'radius':0x4,'width':_0x20e76c,'fill':_0x425f52}),_0x49bb75['fillStyle']=_0x216c88(0x148);const _0x2068e0=_0x137d3f,_0x18d442=_0x533c05-_0x26844e,_0x1bd4e6=_0x43d972-0x2*_0x137d3f;if(_0x1350f3>_0x1bd4e6){let _0x28a16b='',_0x317d29=0x0;for(const _0x1d4319 of _0x17e9aa){const _0x5cea43=_0x49bb75['measureText'](_0x1d4319)[_0x216c88(0x138)];if(_0x317d29+_0x5cea43<=_0x1bd4e6-_0x49bb75['measureText'](_0x216c88(0x2f7))[_0x216c88(0x138)])_0x28a16b+=_0x1d4319,_0x317d29+=_0x5cea43;else{_0x28a16b+='...';break;}}_0x49bb75[_0x216c88(0x292)](_0x28a16b,_0x2068e0,_0x18d442);}else _0x49bb75[_0x216c88(0x292)](_0x17e9aa,_0x2068e0,_0x18d442);_0x49bb75['restore']();}[_0x4a00e7(0x331)](_0x12bad4){const _0x581874=_0x4a00e7;_0x43f643[_0x581874(0x1bf)](_0x12bad4,this);}}const _0x16a291='collab-text-anchor-',_0x234631=_0x4a00e7(0x35c),_0x4c8a0f=_0x4a00e7(0x125),_0x2607fb=0x6,_0x46a110=1.5,_0x103a7c=0x4,_0x41d2df=1.5,_0x257295='rgba(255,\x20255,\x20255,\x200.01)';class _0x59a7c4{constructor(_0x1cd139,_0x50fe20,_0x545cda,_0x1c0ae9){const _0x4981bd=_0x4a00e7;_0x41f19e(this,_0x4981bd(0x1f1),[]),_0x41f19e(this,_0x4981bd(0xf8),null),_0x41f19e(this,_0x4981bd(0x1f3),null),_0x41f19e(this,_0x4981bd(0x181),null),_0x41f19e(this,'_hideTimer',null),_0x41f19e(this,_0x4981bd(0x240),null),(this[_0x4981bd(0x2d9)]=_0x1cd139,this[_0x4981bd(0x13e)]=_0x50fe20,this[_0x4981bd(0x15e)]=_0x545cda,this[_0x4981bd(0x163)]=_0x1c0ae9,this[_0x4981bd(0x349)]());}set[_0x4a00e7(0x325)](_0x1ac480){const _0x2ae433=_0x4a00e7;_0x1ac480?(this[_0x2ae433(0x181)]&&this['_anchorDot'][_0x2ae433(0x330)](),this[_0x2ae433(0x1f3)]&&this[_0x2ae433(0x1f3)]['show']()):(this[_0x2ae433(0x181)]&&this['_anchorDot']['show'](),this[_0x2ae433(0x1f3)]&&this[_0x2ae433(0x1f3)][_0x2ae433(0x330)]());}[_0x4a00e7(0x264)](){const _0x27f221=_0x4a00e7;for(const _0x240c4e of this['_shapes'])_0x240c4e[_0x27f221(0x264)]();this[_0x27f221(0x1f3)]&&this['_textBubble'][_0x27f221(0x264)](),this[_0x27f221(0x181)]&&this[_0x27f221(0x181)][_0x27f221(0x264)](),this['_anchor']&&this[_0x27f221(0xf8)][_0x27f221(0x264)](),this[_0x27f221(0x240)]&&this[_0x27f221(0x240)]();}[_0x4a00e7(0x349)](){const _0x1e8d12=_0x4a00e7;var _0x4a1b2a;const {_docSkeleton:_0x35ef7f,_document:_0x8bc468}=this,{color:_0x351a8a,name:_0x3a9d85,ranges:_0x1469b4}=this[_0x1e8d12(0x2d9)],_0xb6350b=_0x8bc468[_0x1e8d12(0x13a)](),{docsLeft:_0x39daf3,docsTop:_0x538f8c}=_0xb6350b,_0x4ab44=new _0x41c79e[(_0x1e8d12(0x17d))](_0xb6350b,_0x35ef7f);for(const {startOffset:_0xbf9e23,endOffset:_0x235cfb,rangeType:_0x27ec86,segmentId:_0x2d9845,segmentPage:_0x58a801,collapsed:_0x5915c4,isActive:_0x1cdb6b}of _0x1469b4){const _0x4c1aff=_0x35ef7f[_0x1e8d12(0x108)](_0xbf9e23,!0x0,_0x2d9845,_0x58a801);let _0x51157c=_0x35ef7f['findNodePositionByCharIndex'](_0x235cfb,!0x0,_0x2d9845,_0x58a801);if(_0x51157c==null&&(_0x51157c=_0x35ef7f[_0x1e8d12(0x108)](_0x235cfb-0x1,!0x1,_0x2d9845,_0x58a801)),_0x1cdb6b){const {contentBoxPointGroup:_0x5a5889}=_0x4ab44[_0x1e8d12(0x22b)](_0x51157c,_0x51157c);if(_0x5a5889[_0x1e8d12(0x256)]===0x0)continue;this['_drawAnchor'](_0x351a8a,_0x5a5889,_0x39daf3,_0x538f8c,_0x3a9d85),this[_0x1e8d12(0x240)]=this[_0x1e8d12(0x2a5)]();}if(_0x4c1aff&&_0x51157c){if(_0x27ec86===_0x18ca73[_0x1e8d12(0x142)][_0x1e8d12(0x252)]){const _0x55e1cf=new _0x41c79e[(_0x1e8d12(0x1ff))](_0xb6350b,_0x35ef7f),{pointGroup:_0x2ffeb7}=(_0x4a1b2a=_0x55e1cf[_0x1e8d12(0x22b)](_0x4c1aff,_0x51157c))!=null?_0x4a1b2a:{};if(_0x2ffeb7==null||_0x2ffeb7[_0x1e8d12(0x256)]===0x0)continue;this[_0x1e8d12(0x295)](_0x351a8a,_0x2ffeb7,_0x39daf3,_0x538f8c);}else{if(!_0x5915c4){const {borderBoxPointGroup:_0x3ed143}=_0x4ab44[_0x1e8d12(0x22b)](_0x4c1aff,_0x51157c);if(_0x3ed143['length']===0x0)continue;this[_0x1e8d12(0x1ae)](_0x351a8a,_0x3ed143,_0x39daf3,_0x538f8c);}}}}}[_0x4a00e7(0x106)](_0x593b69,_0x49e9f6,_0x1cb2dc,_0x414976,_0x3955c5){const _0x3884a7=_0x4a00e7,_0x54c811=this[_0x3884a7(0x373)](_0x49e9f6),{left:_0x3061cd,top:_0x46a5e7,height:_0x198abe}=_0x54c811,_0x42f2a6=this[_0x3884a7(0x2f2)](),_0x155caa=_0x41d2df/_0x42f2a6,_0x2e6bb2=new _0x1000a2['Rect'](_0x16a291+_0x18ca73[_0x3884a7(0x368)](_0x2607fb),{'left':_0x3061cd+_0x1cb2dc-_0x155caa,'top':_0x46a5e7+_0x414976,'height':_0x198abe,'width':_0x46a110,'fill':_0x593b69||_0x1000a2[_0x3884a7(0x2e3)](_0x18ca73[_0x3884a7(0xff)][_0x3884a7(0x2e7)],0x0),'strokeWidth':_0x155caa,'stroke':_0x257295,'evented':!0x0});this[_0x3884a7(0xf8)]=_0x2e6bb2,this[_0x3884a7(0x13e)][_0x3884a7(0x2a7)](_0x2e6bb2,_0x41c79e[_0x3884a7(0xf6)]);const _0x36a379=new _0x1000a2['Rect'](_0x16a291+_0x18ca73[_0x3884a7(0x368)](_0x2607fb),{'left':_0x3061cd+_0x1cb2dc-_0x155caa,'top':_0x46a5e7+_0x414976-_0x103a7c/0x2,'height':_0x103a7c,'width':_0x103a7c,'fill':_0x593b69||_0x1000a2[_0x3884a7(0x2e3)](_0x18ca73[_0x3884a7(0xff)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x593b69||_0x1000a2['getColor'](_0x18ca73[_0x3884a7(0xff)][_0x3884a7(0x2e7)],0x0),'evented':!0x1});this['_anchorDot']=_0x36a379,this[_0x3884a7(0x13e)]['addObject'](_0x36a379,_0x41c79e['TEXT_RANGE_LAYER_INDEX']);const _0x37c59a=new _0x43f643(_0x16a291+_0x18ca73[_0x3884a7(0x368)](_0x2607fb),{'left':_0x3061cd+_0x1cb2dc-_0x155caa,'top':_0x46a5e7+_0x414976-_0x533c05,'text':_0x3955c5,'color':_0x593b69});this[_0x3884a7(0x1f3)]=_0x37c59a,this[_0x3884a7(0x13e)][_0x3884a7(0x2a7)](_0x37c59a,_0x41c79e[_0x3884a7(0xf6)]),this[_0x3884a7(0x325)]=!0x1;}[_0x4a00e7(0x2a5)](){const _0x378c67=_0x4a00e7,_0x5cfd47=this[_0x378c67(0xf8)][_0x378c67(0x25d)][_0x378c67(0x231)](()=>{this['_hover']=!0x0;}),_0x2dcb4f=this['_anchor']['onPointerLeave$'][_0x378c67(0x231)](()=>{const _0x4dee9a=_0x378c67;this[_0x4dee9a(0x1cf)]&&clearTimeout(this[_0x4dee9a(0x1cf)]),this[_0x4dee9a(0x1cf)]=setTimeout(()=>{const _0x34f554=_0x4dee9a;this[_0x34f554(0x325)]=!0x1;},0x7d0);});return()=>{const _0x4ce7eb=_0x378c67;_0x5cfd47[_0x4ce7eb(0x234)](),_0x2dcb4f['unsubscribe']();};}['_drawTextRange'](_0x48ad31,_0x370c85,_0x5e40ce,_0x3cea2b){const _0x133c5c=_0x4a00e7,_0x474b0b=new _0x18ca73[(_0x133c5c(0x169))](_0x48ad31)[_0x133c5c(0x2f1)](0.2)[_0x133c5c(0x1d1)](),_0x6a92f0=new _0x1000a2[(_0x133c5c(0x130))](_0x234631+_0x18ca73[_0x133c5c(0x368)](_0x2607fb),{'pointsGroup':_0x370c85,'fill':_0x474b0b||_0x1000a2[_0x133c5c(0x2e3)](_0x18ca73[_0x133c5c(0xff)]['black'],0.2),'left':_0x5e40ce,'top':_0x3cea2b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x133c5c(0x1f1)]['push'](_0x6a92f0),this['_scene'][_0x133c5c(0x2a7)](_0x6a92f0,_0x41c79e[_0x133c5c(0xf6)]);}[_0x4a00e7(0x295)](_0x17b8d6,_0x19effb,_0x49ce51,_0x3a5625){const _0x3a8b53=_0x4a00e7,_0x13196a=new _0x18ca73[(_0x3a8b53(0x169))](_0x17b8d6)['setAlpha'](0.2)[_0x3a8b53(0x1d1)](),_0x1eaac5=new _0x1000a2[(_0x3a8b53(0x130))](_0x4c8a0f+_0x18ca73['generateRandomId'](_0x2607fb),{'pointsGroup':_0x19effb,'fill':_0x13196a||_0x1000a2[_0x3a8b53(0x2e3)](_0x18ca73[_0x3a8b53(0xff)][_0x3a8b53(0x2e7)],0.2),'left':_0x49ce51,'top':_0x3a5625,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a8b53(0x1f1)][_0x3a8b53(0x2b6)](_0x1eaac5),this['_scene'][_0x3a8b53(0x2a7)](_0x1eaac5,_0x41c79e[_0x3a8b53(0xf6)]);}['_getAnchorBounding'](_0x3c5a76){const _0x437661=_0x3c5a76[0x0],_0x559646=_0x437661[0x0],_0x5a3605=_0x437661[0x2],{x:_0x57a5ea,y:_0x5a7429}=_0x559646,{x:_0x8a22c9,y:_0x32f977}=_0x5a3605;return{'left':_0x57a5ea,'top':_0x5a7429,'width':_0x8a22c9-_0x57a5ea,'height':_0x32f977-_0x5a7429};}[_0x4a00e7(0x2f2)](){const _0x52ccfa=_0x4a00e7,{scaleX:_0x2e9b64,scaleY:_0x1588ec}=this['_scene'][_0x52ccfa(0x376)]();return Math[_0x52ccfa(0x226)](_0x2e9b64,_0x1588ec);}}var _0x7aa878=Object['getOwnPropertyDescriptor'],_0x334df1=(_0x1ab568,_0x4fe8e0,_0x279541,_0x4188f5)=>{const _0x5a6431=_0x4a00e7;for(var _0x6fd4e0=_0x4188f5>0x1?void 0x0:_0x4188f5?_0x7aa878(_0x4fe8e0,_0x279541):_0x4fe8e0,_0x2adf54=_0x1ab568[_0x5a6431(0x256)]-0x1,_0x140c97;_0x2adf54>=0x0;_0x2adf54--)(_0x140c97=_0x1ab568[_0x2adf54])&&(_0x6fd4e0=_0x140c97(_0x6fd4e0)||_0x6fd4e0);return _0x6fd4e0;},_0x508f15=(_0x13ac95,_0x44e3ff)=>(_0x58455b,_0x4f63c9)=>_0x44e3ff(_0x58455b,_0x4f63c9,_0x13ac95);let _0x4067e7=class extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(_0x329c93,_0x5bd619,_0x36f21d,_0x37d33b,_0x2d3014){const _0x448359=_0x4a00e7;super(),_0x41f19e(this,_0x448359(0x347),[]),_0x41f19e(this,_0x448359(0x123),[]),(this[_0x448359(0x18d)]=_0x329c93,this['_docSkeletonManagerService']=_0x5bd619,this[_0x448359(0x270)]=_0x36f21d,this[_0x448359(0x29c)]=_0x37d33b,this['_themeService']=_0x2d3014,this[_0x448359(0x1ee)]());}[_0x4a00e7(0x1ee)](){const _0x273023=_0x4a00e7,_0x5c0e28=this[_0x273023(0x18d)][_0x273023(0x36e)],_0x40aa8d=this[_0x273023(0x30f)];this[_0x273023(0x2a8)](_0x16b079[_0x273023(0x36d)]([this['_collabCursorController'][_0x273023(0x265)](_0x5c0e28),this[_0x273023(0x22c)][_0x273023(0x19a)]])[_0x273023(0x217)](_0x4dfd3a[_0x273023(0x33d)](([_0x3eccee,_0xee036a])=>({'skeleton':_0x40aa8d[_0x273023(0x18f)](),'cursors':[..._0x3eccee[_0x273023(0x2a4)]()][_0x273023(0x353)](_0x3c3566=>({..._0x3c3566,'color':this[_0x273023(0x22c)]['getColorFromTheme'](_0x3c3566[_0x273023(0x111)])}))})))[_0x273023(0x12b)](_0x96bef7=>{const _0x6128d7=_0x273023;if(this[_0x6128d7(0x309)](),_0x96bef7){const {skeleton:_0x293601,cursors:_0x1d5c41}=_0x96bef7;this[_0x6128d7(0x367)](_0x293601,_0x1d5c41);}})),this[_0x273023(0x11f)](),this[_0x273023(0x18e)]();}[_0x4a00e7(0x367)](_0x24e9f1,_0x3dee78){const _0x386a7c=_0x4a00e7,{scene:_0x4c8148,mainComponent:_0x2464ad}=this['_context'],_0x15d258=_0x3dee78['map'](_0x419648=>new _0x59a7c4(_0x419648,_0x4c8148,_0x24e9f1,_0x2464ad));this['_cursorShapes']=_0x15d258,this[_0x386a7c(0x123)]=_0x3dee78;}[_0x4a00e7(0x150)](){const _0x3777c3=_0x4a00e7;this[_0x3777c3(0x309)]();const {scene:_0x5e9765,mainComponent:_0x2aaad7}=this['_context'],_0x31cc18=this['_docSkeletonManagerService'][_0x3777c3(0x18f)](),_0x42e251=this['_cursors'][_0x3777c3(0x33d)](_0x501c46=>new _0x59a7c4(_0x501c46,_0x5e9765,_0x31cc18,_0x2aaad7));this[_0x3777c3(0x347)]=_0x42e251;}[_0x4a00e7(0x309)](){const _0x4fe570=_0x4a00e7;this[_0x4fe570(0x347)][_0x4fe570(0x28f)](_0x10b9ae=>_0x10b9ae[_0x4fe570(0x264)]()),this[_0x4fe570(0x347)]=[];}['_initCommandExecutedListener'](){const _0x330ddc=_0x4a00e7,_0x16d73f=[_0x41c79e[_0x330ddc(0x167)]['id']];this[_0x330ddc(0x2a8)](this['_commandService']['onCommandExecuted'](_0x46eb40=>{const _0x4e5078=_0x330ddc;_0x16d73f[_0x4e5078(0x1d8)](_0x46eb40['id'])&&_0x46eb40[_0x4e5078(0x2de)][_0x4e5078(0x36e)]===this[_0x4e5078(0x18d)][_0x4e5078(0x36e)]&&this['_refreshCollabCursors']();}));}[_0x4a00e7(0x11f)](){const _0x1ec650=_0x4a00e7;this[_0x1ec650(0x2a8)](_0x18ca73[_0x1ec650(0x35e)](this[_0x1ec650(0x18d)][_0x1ec650(0x281)][_0x1ec650(0x12c)])[_0x1ec650(0x217)](_0x4dfd3a[_0x1ec650(0x156)](_0x1df755=>_0x1df755[_0x1ec650(0x2a0)]===_0x1000a2['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1ec650(0x152)]),_0x4dfd3a[_0x1ec650(0x121)](0x10))[_0x1ec650(0x12b)](()=>{const _0x4a50a5=_0x1ec650;this[_0x4a50a5(0x150)]();}));}};_0x4067e7=_0x334df1([_0x508f15(0x1,_0x18ca73[_0x4a00e7(0x29b)](_0x40419e['DocSkeletonManagerService'])),_0x508f15(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x54c140)),_0x508f15(0x3,_0x18ca73[_0x4a00e7(0x2ea)]),_0x508f15(0x4,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x1bb)]))],_0x4067e7);const _0x4a7550=0x1,_0x24fa2f=1.5;class _0x4044b0 extends _0x1000a2['Shape']{constructor(_0xe162b,_0x409745){const _0x5a104b=_0x4a00e7;super(_0xe162b,_0x409745),_0x41f19e(this,_0x5a104b(0x316)),_0x41f19e(this,'_hovered',!0x1),_0x41f19e(this,'_range'),_0x41f19e(this,_0x5a104b(0x1f7),''),_0x41f19e(this,_0x5a104b(0x310),_0x5a104b(0xf1)),_0x41f19e(this,_0x5a104b(0x300)),(_0x409745&&this[_0x5a104b(0x2da)](_0x409745),this[_0x5a104b(0x25d)][_0x5a104b(0x231)](()=>this[_0x5a104b(0x2da)]({'hovered':!0x0})),this[_0x5a104b(0x2e8)][_0x5a104b(0x231)](()=>this[_0x5a104b(0x2da)]({'hovered':!0x1})));}[_0x4a00e7(0x2da)](_0x497cb0){const _0x180079=_0x4a00e7;var _0x53808a,_0x25c7f8,_0x5a2eea,_0x15c4c3,_0x417e56,_0x44ded8;this[_0x180079(0x316)]=(_0x53808a=_0x497cb0['color'])!=null?_0x53808a:this['_color'],this[_0x180079(0x354)]=(_0x25c7f8=_0x497cb0[_0x180079(0x301)])!=null?_0x25c7f8:this[_0x180079(0x354)],this['_range']=(_0x5a2eea=_0x497cb0[_0x180079(0x12f)])!=null?_0x5a2eea:this[_0x180079(0x11b)],this[_0x180079(0x1f7)]=(_0x15c4c3=_0x497cb0[_0x180079(0x287)])!=null?_0x15c4c3:this[_0x180079(0x1f7)],this['_labelPosition']=(_0x417e56=_0x497cb0[_0x180079(0x24b)])!=null?_0x417e56:this[_0x180079(0x310)],this[_0x180079(0x300)]=(_0x44ded8=_0x497cb0[_0x180079(0x120)])!=null?_0x44ded8:this[_0x180079(0x300)],this[_0x180079(0x2d0)]({'width':_0x497cb0[_0x180079(0x138)],'height':_0x497cb0['height']});}[_0x4a00e7(0x17a)](_0x3de351){const _0x4dda93=_0x4a00e7,{row:_0x1612bb,column:_0x420bba}=_0x3de351;if(_0x1612bb>=this[_0x4dda93(0x11b)][_0x4dda93(0x1eb)]&&_0x1612bb<=this['_range'][_0x4dda93(0x192)]&&_0x420bba>=this['_range'][_0x4dda93(0x372)]&&_0x420bba<=this[_0x4dda93(0x11b)][_0x4dda93(0x1fd)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4dda93(0x2da)]({'hovered':!0x1});}[_0x4a00e7(0x1ef)](_0x4f1fa0){return!0x1;}[_0x4a00e7(0x331)](_0x18d73b){const _0x4cf531=_0x4a00e7;_0x1000a2[_0x4cf531(0x285)]['drawWith'](_0x18d73b,{'width':this[_0x4cf531(0x138)],'height':this['height'],'strokeWidth':_0x24fa2f,'stroke':this[_0x4cf531(0x316)],'evented':!0x1,'fill':this[_0x4cf531(0x300)]}),this[_0x4cf531(0x354)]&&(_0x18d73b['save'](),_0x18d73b[_0x4cf531(0x224)](0x1,0x0,0x0,0x1,this['width'],this[_0x4cf531(0x310)]===_0x4cf531(0x33b)?0x0:-_0x533c05),_0x43f643[_0x4cf531(0x1bf)](_0x18d73b,{'text':this['_name'],'color':this[_0x4cf531(0x316)]}),_0x18d73b[_0x4cf531(0x112)]());}}var _0x17acec=Object[_0x4a00e7(0x1f9)],_0x456c2a=(_0x1d055d,_0x3f31c8,_0x520918,_0x15fe87)=>{const _0x3975c4=_0x4a00e7;for(var _0x1e68a6=_0x15fe87>0x1?void 0x0:_0x15fe87?_0x17acec(_0x3f31c8,_0x520918):_0x3f31c8,_0x2311cb=_0x1d055d[_0x3975c4(0x256)]-0x1,_0x48e93d;_0x2311cb>=0x0;_0x2311cb--)(_0x48e93d=_0x1d055d[_0x2311cb])&&(_0x1e68a6=_0x48e93d(_0x1e68a6)||_0x1e68a6);return _0x1e68a6;},_0x37136e=(_0x49f681,_0x517bf7)=>(_0x548388,_0x39ec10)=>_0x517bf7(_0x548388,_0x39ec10,_0x49f681);const _0x3800ec=0x1389;let _0xf7456=class extends _0x18ca73['RxDisposable']{constructor(_0x37e7a6,_0xfe048d,_0x1dfb8b,_0x6145e1){const _0x378324=_0x4a00e7;super(),_0x41f19e(this,_0x378324(0x123),new Set()),_0x41f19e(this,_0x378324(0x28d),null),(this['_context']=_0x37e7a6,this['_sheetSkeletonManagerService']=_0xfe048d,this[_0x378324(0x270)]=_0x1dfb8b,this['_themeService']=_0x6145e1,this[_0x378324(0x1ee)]());}['_init'](){const _0x549020=_0x4a00e7;this[_0x549020(0x131)][_0x549020(0x1d5)]['pipe'](_0x4dfd3a[_0x549020(0x18a)](this[_0x549020(0x216)]),_0x4dfd3a['switchMap'](_0x458d9c=>{const _0x37ff3b=_0x549020;if(_0x458d9c){const _0x5f95b7=_0x458d9c['sheetId'];return _0x16b079[_0x37ff3b(0x36d)](this[_0x37ff3b(0x270)]['getCollabCursors$'](this[_0x37ff3b(0x18d)]['unitId']),this[_0x37ff3b(0x22c)][_0x37ff3b(0x19a)])[_0x37ff3b(0x217)](_0x4dfd3a[_0x37ff3b(0x33d)](([_0x1354d9,_0x5a45d3])=>{const _0x8d7f70=new Map();return _0x1354d9['forEach']((_0x71fb14,_0x28cdbb)=>{const _0x263bc2=_0x27be;if(_0x71fb14[_0x263bc2(0x23c)]===_0x5f95b7){const _0x3aa364={..._0x71fb14};_0x3aa364[_0x263bc2(0x111)]=this[_0x263bc2(0x22c)][_0x263bc2(0x218)](_0x71fb14['color']),_0x8d7f70[_0x263bc2(0x329)](_0x28cdbb,_0x3aa364);}}),{'skeleton':_0x458d9c,'cursors':_0x8d7f70};}));}return _0x16b079['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xd9779e,cursors:_0x4526c2})=>{const _0x13f30e=_0x549020;this['_removeCollabCursors'](),_0xd9779e&&this[_0x13f30e(0x367)](_0xd9779e,_0x4526c2);}),this[_0x549020(0x131)]['currentSkeleton$']['subscribe'](_0x5b32fd=>{const _0x48fee0=_0x549020;if(_0x5b32fd==null)return;const {skeleton:_0x1fc2e7}=_0x5b32fd,{scene:_0x36942d}=this[_0x48fee0(0x18d)];_0x36942d[_0x48fee0(0x1a9)]['subscribeEvent'](_0x18ca73[_0x48fee0(0x258)](_0x488829=>{const _0x3cca67=_0x48fee0;var _0x2f889e,_0x59ee30;const {offsetX:_0x1c838b,offsetY:_0x5e3c2a}=_0x488829,{x:_0x11f557,y:_0x5336b9}=_0x36942d['getRelativeToViewportCoord'](_0x1000a2[_0x3cca67(0x12d)]['FromArray']([_0x1c838b,_0x5e3c2a])),{scaleX:_0x5f5852,scaleY:_0x2d9ba8}=_0x36942d[_0x3cca67(0x376)](),_0x4d51e1=_0x36942d[_0x3cca67(0x31d)](_0x1000a2[_0x3cca67(0x2fc)][_0x3cca67(0x20b)]),_0x49ee96=_0x36942d[_0x3cca67(0x193)](_0x1000a2[_0x3cca67(0x12d)]['FromArray']([_0x11f557,_0x5336b9]),_0x4d51e1),_0x5211e6=_0x1fc2e7['getCellPositionByOffset'](_0x1c838b,_0x5e3c2a,_0x5f5852,_0x2d9ba8,_0x49ee96);((_0x2f889e=this[_0x3cca67(0x28d)])==null?void 0x0:_0x2f889e['column'])===_0x5211e6['column']&&((_0x59ee30=this[_0x3cca67(0x28d)])==null?void 0x0:_0x59ee30[_0x3cca67(0x117)])===_0x5211e6[_0x3cca67(0x117)]||this['_cursors'][_0x3cca67(0x28f)](_0x22bd50=>{const _0x4b2cee=_0x3cca67;_0x22bd50[_0x4b2cee(0x17a)](_0x5211e6);});},0x64));});}['_updateCollabCursors'](_0x1ffac8,_0x360a94){const _0x4b45ba=_0x4a00e7;var _0x154391;const _0x2bfe57=(_0x154391=this[_0x4b45ba(0x131)][_0x4b45ba(0x15a)]())==null?void 0x0:_0x154391['skeleton'];if(!_0x2bfe57)return;const _0x1cfc01=this[_0x4b45ba(0x1da)]();if(!_0x1cfc01)return;this[_0x4b45ba(0x123)]['forEach'](_0x563f4d=>{const _0x54a90b=_0x4b45ba;_0x563f4d[_0x54a90b(0x1db)]();});const {scene:_0x4a4c72}=_0x1cfc01,_0xd531=_0x122edb(Array[_0x4b45ba(0x21f)](_0x360a94[_0x4b45ba(0x2a4)]()))[_0x4b45ba(0x33d)](_0x232e11=>{const _0x3efff9=_0x4b45ba,{color:_0x55e451,range:_0x266ab4,name:_0x51f35d,selection:_0x42acb8,sheetID:_0x317d31}=_0x232e11,{startColumn:_0x566e18,startRow:_0x2b54f0,endColumn:_0x8004f7,endRow:_0x315e86}=_0x266ab4,_0x285c1a=_0x2779ee[_0x3efff9(0xfc)](_0x2b54f0,_0x566e18,_0x4a4c72,_0x2bfe57),_0x5a5b1e=_0x2779ee['getCoordByCell'](_0x315e86,_0x8004f7,_0x4a4c72,_0x2bfe57),{columnHeaderHeightAndMarginTop:_0x22bd8a}=_0x2bfe57,{startX:_0x392de7,startY:_0x2591cf}=_0x285c1a,{endX:_0xcb7c05,endY:_0x433914}=_0x5a5b1e,_0x199246=_0xcb7c05-_0x392de7,_0x177af8=_0x433914-_0x2591cf,_0x3ecc0b={'labelPosition':_0x2591cf-_0x22bd8a>=_0x533c05?_0x3efff9(0xf1):'bottom','sheetID':_0x317d31,'range':_0x266ab4,'color':_0x55e451,'name':_0x51f35d,'selection':_0x42acb8,'left':_0x392de7,'top':_0x2591cf,'width':_0x199246,'height':_0x177af8,'evented':!0x1,'zIndex':_0x3800ec};return new _0x4044b0(_0x51f35d,_0x3ecc0b);});_0x4a4c72[_0x4b45ba(0x278)](_0xd531,_0x4a7550),this[_0x4b45ba(0x123)]=new Set(_0xd531);}[_0x4a00e7(0x309)](){const _0x1618f0=_0x4a00e7;var _0x822271;(_0x822271=this[_0x1618f0(0x123)])==null||_0x822271[_0x1618f0(0x28f)](_0x364d71=>_0x364d71[_0x1618f0(0x264)]());}[_0x4a00e7(0x1da)](){const _0x12814f=_0x4a00e7;return _0x2779ee[_0x12814f(0x1dd)](this[_0x12814f(0x18d)][_0x12814f(0x249)],this['_context']);}};_0xf7456=_0x456c2a([_0x37136e(0x1,_0x18ca73[_0x4a00e7(0x29b)](_0x2779ee[_0x4a00e7(0x14f)])),_0x37136e(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x54c140)),_0x37136e(0x3,_0x18ca73['Inject'](_0x18ca73['ThemeService']))],_0xf7456);function _0x122edb(_0x44b20c){const _0x59affb=_0x4a00e7,_0x483abb=new Map();return _0x44b20c[_0x59affb(0x28f)](_0x33d87f=>{const _0x3a7706=_0x59affb;if(_0x483abb[_0x3a7706(0x133)](_0x33d87f['selection'])){const _0x123588=_0x483abb['get'](_0x33d87f[_0x3a7706(0x137)]);_0x123588[_0x3a7706(0x287)]+=',\x20'+_0x33d87f[_0x3a7706(0x287)];}else _0x483abb[_0x3a7706(0x329)](_0x33d87f[_0x3a7706(0x137)],_0x33d87f);}),Array[_0x59affb(0x21f)](_0x483abb[_0x59affb(0x2a4)]());}var _0x85241=Object[_0x4a00e7(0x1f9)],_0x3b532d=(_0x3795ba,_0x5c2276,_0x5c4a65,_0x891dd2)=>{const _0xcb3448=_0x4a00e7;for(var _0x1b5650=_0x891dd2>0x1?void 0x0:_0x891dd2?_0x85241(_0x5c2276,_0x5c4a65):_0x5c2276,_0x32c24c=_0x3795ba[_0xcb3448(0x256)]-0x1,_0x411c56;_0x32c24c>=0x0;_0x32c24c--)(_0x411c56=_0x3795ba[_0x32c24c])&&(_0x1b5650=_0x411c56(_0x1b5650)||_0x1b5650);return _0x1b5650;},_0x54940d=(_0x4c66e8,_0x591cbf)=>(_0x2f8f78,_0x66b849)=>_0x591cbf(_0x2f8f78,_0x66b849,_0x4c66e8);let _0x3c5848=class extends _0x18ca73[_0x4a00e7(0x25b)]{constructor(_0x30bd5b,_0x4a7c6e,_0x1d17e6,_0x2e4bf6,_0x10a2d7,_0x471e9a){const _0x2247e8=_0x4a00e7;super(),this[_0x2247e8(0x1ba)]=_0x30bd5b,this['_localCacheService']=_0x4a7c6e,this['_collaborationUIEventService']=_0x1d17e6,this[_0x2247e8(0x27c)]=_0x2e4bf6,this[_0x2247e8(0x333)]=_0x10a2d7,this[_0x2247e8(0x18b)]=_0x471e9a,this[_0x2247e8(0x297)](),this[_0x2247e8(0x1a2)]();}[_0x4a00e7(0x297)](){const _0x56dfdd=_0x4a00e7;this[_0x56dfdd(0x2a8)](this[_0x56dfdd(0x1ba)]['registerBeforeClose'](()=>{const _0x87109d=_0x56dfdd;if(this[_0x87109d(0x16c)][_0x87109d(0x344)][_0x87109d(0x209)])return this[_0x87109d(0x18b)]['t'](_0x87109d(0x1cc));}));}[_0x4a00e7(0x1a2)](){const _0x1dc0ff=_0x4a00e7;this[_0x1dc0ff(0x2a8)](this[_0x1dc0ff(0x37e)][_0x1dc0ff(0x184)][_0x1dc0ff(0x12b)](_0x2c0a9a=>{const _0x153985=_0x1dc0ff;_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x153985(0x321)]({'type':_0x578c52[_0x153985(0x2d4)][_0x153985(0x1e0)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x2c0a9a['id']===_0x2fe882['CollaborationUIEventId'][_0x153985(0x261)]&&this[_0x153985(0x27c)][_0x153985(0x321)]({'type':_0x578c52[_0x153985(0x2d4)][_0x153985(0x1e0)],'content':this['_localeService']['t'](_0x153985(0x10c))}),_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)]['PERMISSION_DENIED']&&this[_0x153985(0x333)][_0x153985(0x321)]({'title':this[_0x153985(0x18b)]['t']('permission.title'),'content':this[_0x153985(0x18b)]['t']('permission.content'),'type':_0x153985(0x17e),'duration':0x0}),_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)][_0x153985(0x26c)]&&this[_0x153985(0x27c)][_0x153985(0x321)]({'type':_0x578c52['MessageType']['Error'],'content':this[_0x153985(0x18b)]['t']('collaboration.closeRoom')+'('+_0x2c0a9a[_0x153985(0x36f)]+')'}),_0x2c0a9a['id']===_0x2fe882['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x153985(0x27c)][_0x153985(0x321)]({'type':_0x578c52[_0x153985(0x2d4)]['Warning'],'content':this[_0x153985(0x18b)]['t'](_0x2c0a9a[_0x153985(0x36f)]||'')}),_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)][_0x153985(0x20c)]&&this[_0x153985(0x27c)][_0x153985(0x321)]({'type':_0x578c52[_0x153985(0x2d4)]['Warning'],'content':this[_0x153985(0x18b)]['t'](_0x153985(0x198))}),_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)]['SOCKET_FAILED']&&this[_0x153985(0x27c)][_0x153985(0x321)]({'type':_0x578c52['MessageType']['Error'],'content':this[_0x153985(0x18b)]['t']('session.connection-failed')}),_0x2c0a9a['id']===_0x2fe882[_0x153985(0x176)][_0x153985(0x2c3)]&&this[_0x153985(0x27c)]['show']({'type':_0x578c52[_0x153985(0x2d4)][_0x153985(0x2fa)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};_0x3c5848=_0x3b532d([_0x54940d(0x0,_0x5121a3[_0x4a00e7(0x27d)]),_0x54940d(0x1,_0x2fe882[_0x4a00e7(0x190)]),_0x54940d(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x2fe882['CollaborationUIEventService'])),_0x54940d(0x3,_0x5121a3[_0x4a00e7(0x21b)]),_0x54940d(0x4,_0x5121a3[_0x4a00e7(0x2db)]),_0x54940d(0x5,_0x18ca73[_0x4a00e7(0x29b)](_0x18ca73['LocaleService']))],_0x3c5848);const _0x574e12=_0x4a00e7(0x1f0),_0x44c505={};var _0x1d59ad=Object[_0x4a00e7(0x1f9)],_0x222dbc=(_0x5a7a7b,_0x5a7fee,_0x10e8fd,_0x416c4d)=>{for(var _0x14e637=_0x416c4d>0x1?void 0x0:_0x416c4d?_0x1d59ad(_0x5a7fee,_0x10e8fd):_0x5a7fee,_0x1b83c5=_0x5a7a7b['length']-0x1,_0x5229e;_0x1b83c5>=0x0;_0x1b83c5--)(_0x5229e=_0x5a7a7b[_0x1b83c5])&&(_0x14e637=_0x5229e(_0x14e637)||_0x14e637);return _0x14e637;},_0x401a94=(_0x2df176,_0x23cd1b)=>(_0x459ab3,_0x431ac3)=>_0x23cd1b(_0x459ab3,_0x431ac3,_0x2df176);let _0x52e36c=class{constructor(_0x5497fa,_0x178c33){const _0x10814a=_0x4a00e7;this['_transformService']=_0x5497fa,this[_0x10814a(0x13b)]=_0x178c33;}[_0x4a00e7(0x2c6)](_0x3bf139){const _0x5ed89b=_0x4a00e7;this[_0x5ed89b(0x34b)](_0x3bf139),this[_0x5ed89b(0x205)](_0x3bf139);}[_0x4a00e7(0x146)](_0x1711a6){const _0x3a5e83=_0x4a00e7,{unitID:_0x462ac6}=_0x1711a6,_0x2d9589=this[_0x3a5e83(0x13b)][_0x3a5e83(0x201)](_0x462ac6)[_0x3a5e83(0x2f8)](_0x41c79e[_0x3a5e83(0x358)]),{redoCache:_0x1e79b1}=_0x2d9589[_0x3a5e83(0x1af)]();if(_0x1e79b1[_0x3a5e83(0x256)]===0x0)return _0x1711a6;let _0x3032c4=_0x18ca73[_0x3a5e83(0x1b3)][_0x3a5e83(0x1a3)](_0x1711a6[_0x3a5e83(0x37a)][0x0]);for(let _0x340f65=0x0;_0x340f65<_0x1e79b1[_0x3a5e83(0x256)];_0x340f65++){const _0x323c2f={'id':_0x3a5e83(0x20e),'params':{..._0x1e79b1[_0x340f65]}},_0x4e401c=this['_transformService'][_0x3a5e83(0x2d3)](_0x3032c4,_0x323c2f,!0x1);if(_0x518b96[_0x3a5e83(0x326)](_0x4e401c))throw _0x4e401c['error'];_0x3032c4=_0x4e401c[_0x3a5e83(0x203)];}return{..._0x18ca73['Tools'][_0x3a5e83(0x1a3)](_0x1711a6),'mutations':[_0x3032c4]};}[_0x4a00e7(0x34b)](_0xeb016d){const _0x11f986=_0x4a00e7,{unitID:_0x3695b0}=_0xeb016d,_0x2e93be=this[_0x11f986(0x13b)]['getRenderById'](_0x3695b0)[_0x11f986(0x2f8)](_0x41c79e[_0x11f986(0x358)]),{undoCache:_0x4a4e3e,redoCache:_0x8abba1}=_0x2e93be[_0x11f986(0x1af)]();if(_0x4a4e3e[_0x11f986(0x256)]===0x0||_0x8abba1[_0x11f986(0x256)]===0x0)return;const _0x10bb4e=[],_0x4a7c26=[];let _0x1ee22b=_0x18ca73[_0x11f986(0x1b3)][_0x11f986(0x1a3)](_0xeb016d['mutations'][0x0]),_0x15cce5=_0x18ca73['Tools']['deepClone'](_0xeb016d[_0x11f986(0x37a)][0x0]);for(let _0x5579e8=_0x4a4e3e[_0x11f986(0x256)]-0x1;_0x5579e8>=0x0;_0x5579e8--){const _0x22c591={'id':'doc.mutation.rich-text-editing','params':{..._0x4a4e3e[_0x5579e8]}},_0x5d9987={'id':_0x11f986(0x20e),'params':{..._0x8abba1[_0x5579e8]}},_0x3df05f=this[_0x11f986(0x1a6)]['transformMutation'](_0x1ee22b,_0x22c591,!0x1),_0x1e86d0=this[_0x11f986(0x1a6)][_0x11f986(0x2d3)](_0x15cce5,_0x5d9987,!0x1);if(_0x518b96[_0x11f986(0x326)](_0x3df05f))throw _0x3df05f[_0x11f986(0x17e)];if(_0x518b96[_0x11f986(0x326)](_0x1e86d0))throw _0x1e86d0[_0x11f986(0x17e)];_0x10bb4e['unshift'](_0x3df05f[_0x11f986(0x381)]['params']),_0x4a7c26[_0x11f986(0x1ca)](_0x1e86d0[_0x11f986(0x381)][_0x11f986(0x2de)]),_0x1ee22b=_0x3df05f[_0x11f986(0x203)],_0x15cce5=_0x1e86d0[_0x11f986(0x203)];}_0x2e93be[_0x11f986(0x34a)]({'undoCache':_0x10bb4e,'redoCache':_0x4a7c26});}['_transformPreviousActiveRange'](_0x5d2469){const _0x1b1010=_0x4a00e7,{unitID:_0x1d86b7}=_0x5d2469,_0x596e4d=this[_0x1b1010(0x13b)][_0x1b1010(0x201)](_0x1d86b7)[_0x1b1010(0x2f8)](_0x41c79e[_0x1b1010(0x358)]),_0x8c1e69=_0x596e4d[_0x1b1010(0x185)]();if(_0x8c1e69==null)return;const _0x1648bb=[{'id':_0x1b1010(0x20e),'params':{'unitId':_0x5d2469[_0x1b1010(0x2d2)],'actions':null,'textRanges':[_0x8c1e69]}}],_0x4fd3ad=this[_0x1b1010(0x1a6)]['transformMutationsWithChangeset'](_0x5d2469,_0x1648bb);if(!_0x518b96[_0x1b1010(0x291)](_0x4fd3ad))throw _0x4fd3ad['error'];const _0x586e90=_0x4fd3ad[_0x1b1010(0x381)][0x0][_0x1b1010(0x2de)][_0x1b1010(0x2eb)];Array['isArray'](_0x586e90)&&_0x586e90[_0x1b1010(0x256)]&&_0x596e4d[_0x1b1010(0xfe)](_0x586e90[0x0]);}};_0x52e36c=_0x222dbc([_0x401a94(0x0,_0x518b96[_0x4a00e7(0x16a)]),_0x401a94(0x1,_0x1000a2[_0x4a00e7(0x214)])],_0x52e36c);var _0x91fe56=Object[_0x4a00e7(0x1f9)],_0x48c7b0=(_0x1d40b5,_0x313afa,_0x365836,_0x53abfd)=>{const _0xc7e54a=_0x4a00e7;for(var _0x51e81a=_0x53abfd>0x1?void 0x0:_0x53abfd?_0x91fe56(_0x313afa,_0x365836):_0x313afa,_0x3f4b94=_0x1d40b5[_0xc7e54a(0x256)]-0x1,_0x3a8093;_0x3f4b94>=0x0;_0x3f4b94--)(_0x3a8093=_0x1d40b5[_0x3f4b94])&&(_0x51e81a=_0x3a8093(_0x51e81a)||_0x51e81a);return _0x51e81a;},_0x37a589=(_0x5b3dd6,_0xa087fc)=>(_0x1efb7e,_0x69ba0f)=>_0xa087fc(_0x1efb7e,_0x69ba0f,_0x5b3dd6);let _0x52b88a=class{constructor(_0x32037f,_0x51540e,_0x49212c){const _0x3392db=_0x4a00e7;this['_injector']=_0x32037f,this['_transformService']=_0x51540e,this[_0x3392db(0x239)]=_0x49212c;}[_0x4a00e7(0x206)](_0x247ef9){const _0x2061d2=_0x4a00e7;this[_0x2061d2(0x191)](_0x247ef9);}[_0x4a00e7(0x146)](_0xbcc541){const _0x202746=_0x4a00e7,{unitID:_0x3ea27b}=_0xbcc541,{collaboration:_0x328bdf}=this[_0x202746(0x239)]['getStateCache'](_0x3ea27b);if(_0x328bdf[_0x202746(0x256)]===0x0)return _0xbcc541;let _0x11dd33=_0x18ca73['Tools'][_0x202746(0x1a3)](_0xbcc541[_0x202746(0x37a)][0x0]);for(let _0x1e320c=0x0;_0x1e320c<_0x328bdf[_0x202746(0x256)];_0x1e320c++){const _0x4627fa={'id':_0x202746(0x20e),'params':{'unitId':_0x328bdf[_0x1e320c][_0x202746(0x36e)],..._0x328bdf[_0x1e320c][_0x202746(0x25e)]}},_0x184414=this[_0x202746(0x1a6)][_0x202746(0x2d3)](_0x11dd33,_0x4627fa,!0x1);if(_0x518b96[_0x202746(0x326)](_0x184414))throw _0x184414[_0x202746(0x17e)];_0x11dd33=_0x184414[_0x202746(0x203)];}return{..._0x18ca73[_0x202746(0x1b3)]['deepClone'](_0xbcc541),'mutations':[_0x11dd33]};}[_0x4a00e7(0x191)](_0xd33033){const _0x1d64c3=_0x4a00e7,{unitID:_0x1d1191}=_0xd33033,{history:_0x5cf010,collaboration:_0x12ee5e}=this[_0x1d64c3(0x239)][_0x1d64c3(0x173)](_0x1d1191);if(_0x5cf010[_0x1d64c3(0x256)]===0x0&&_0x12ee5e[_0x1d64c3(0x256)]===0x0)return;const _0x283c95=[],_0x499214=[];let _0x27ce30=_0x18ca73[_0x1d64c3(0x1b3)][_0x1d64c3(0x1a3)](_0xd33033[_0x1d64c3(0x37a)][0x0]),_0x21f8ee=_0x18ca73[_0x1d64c3(0x1b3)][_0x1d64c3(0x1a3)](_0xd33033[_0x1d64c3(0x37a)][0x0]);for(let _0x267b7c=_0x5cf010[_0x1d64c3(0x256)]-0x1;_0x267b7c>=0x0;_0x267b7c--){const _0x56615f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5cf010[_0x267b7c][_0x1d64c3(0x36e)],..._0x5cf010[_0x267b7c]['undoState']}},_0x313773={'id':_0x1d64c3(0x20e),'params':{'unitId':_0x5cf010[_0x267b7c][_0x1d64c3(0x36e)],..._0x5cf010[_0x267b7c][_0x1d64c3(0x25e)]}},_0xc21a95=this['_transformService'][_0x1d64c3(0x2d3)](_0x27ce30,_0x56615f,!0x1),_0x1e7ce1=this[_0x1d64c3(0x1a6)][_0x1d64c3(0x2d3)](_0x21f8ee,_0x313773,!0x1);if(_0x518b96[_0x1d64c3(0x326)](_0xc21a95))throw _0xc21a95[_0x1d64c3(0x17e)];if(_0x518b96['isTransformMutationFailure'](_0x1e7ce1))throw _0x1e7ce1[_0x1d64c3(0x17e)];_0x283c95['unshift']({..._0x5cf010[_0x267b7c],'undoState':_0xc21a95[_0x1d64c3(0x381)]['params'],'redoState':_0x1e7ce1[_0x1d64c3(0x381)][_0x1d64c3(0x2de)]}),_0x27ce30=_0xc21a95[_0x1d64c3(0x203)],_0x21f8ee=_0x1e7ce1[_0x1d64c3(0x203)];}_0x27ce30=_0x18ca73[_0x1d64c3(0x1b3)][_0x1d64c3(0x1a3)](_0xd33033[_0x1d64c3(0x37a)][0x0]),_0x21f8ee=_0x18ca73[_0x1d64c3(0x1b3)][_0x1d64c3(0x1a3)](_0xd33033[_0x1d64c3(0x37a)][0x0]);for(let _0x4d3636=_0x12ee5e[_0x1d64c3(0x256)]-0x1;_0x4d3636>=0x0;_0x4d3636--){const _0x10bf5a={'id':_0x1d64c3(0x20e),'params':{'unitId':_0x12ee5e[_0x4d3636][_0x1d64c3(0x36e)],..._0x12ee5e[_0x4d3636][_0x1d64c3(0x177)]}},_0x3f7957={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x12ee5e[_0x4d3636]['unitId'],..._0x12ee5e[_0x4d3636][_0x1d64c3(0x25e)]}},_0x481679=this[_0x1d64c3(0x1a6)][_0x1d64c3(0x2d3)](_0x27ce30,_0x10bf5a,!0x1),_0x35a7b6=this[_0x1d64c3(0x1a6)][_0x1d64c3(0x2d3)](_0x21f8ee,_0x3f7957,!0x1);if(_0x518b96[_0x1d64c3(0x326)](_0x481679))throw _0x481679['error'];if(_0x518b96[_0x1d64c3(0x326)](_0x35a7b6))throw _0x35a7b6[_0x1d64c3(0x17e)];_0x499214[_0x1d64c3(0x1ca)]({..._0x12ee5e[_0x4d3636],'undoState':_0x481679[_0x1d64c3(0x381)][_0x1d64c3(0x2de)],'redoState':_0x35a7b6[_0x1d64c3(0x381)][_0x1d64c3(0x2de)]}),_0x27ce30=_0x481679[_0x1d64c3(0x203)],_0x21f8ee=_0x35a7b6[_0x1d64c3(0x203)];}this[_0x1d64c3(0x239)][_0x1d64c3(0x303)](_0x1d1191,{'history':_0x283c95,'collaboration':_0x499214});}};_0x52b88a=_0x48c7b0([_0x37a589(0x0,_0x18ca73[_0x4a00e7(0x29b)](_0x18ca73['Injector'])),_0x37a589(0x1,_0x518b96[_0x4a00e7(0x16a)]),_0x37a589(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x41c79e[_0x4a00e7(0x1f6)]))],_0x52b88a);var _0x5e6b0f=Object[_0x4a00e7(0x1f9)],_0x16db4a=(_0x448dda,_0x2882f3,_0x5997ba,_0x1854ef)=>{const _0x196cce=_0x4a00e7;for(var _0x5cad98=_0x1854ef>0x1?void 0x0:_0x1854ef?_0x5e6b0f(_0x2882f3,_0x5997ba):_0x2882f3,_0xc78af3=_0x448dda[_0x196cce(0x256)]-0x1,_0xe1251e;_0xc78af3>=0x0;_0xc78af3--)(_0xe1251e=_0x448dda[_0xc78af3])&&(_0x5cad98=_0xe1251e(_0x5cad98)||_0x5cad98);return _0x5cad98;},_0x10abd2=(_0x5ebd03,_0x5a494c)=>(_0x14dbaa,_0x55608f)=>_0x5a494c(_0x14dbaa,_0x55608f,_0x5ebd03);let _0x583390=class{constructor(_0x4dfd5c,_0x4674c8){this['_injector']=_0x4dfd5c,this['_transformService']=_0x4674c8;}[_0x4a00e7(0x207)](_0x3ad8b1){const _0x15bcfd=_0x4a00e7;var _0x4f9c0e;const _0x10ba13=this[_0x15bcfd(0x1ab)][_0x15bcfd(0x202)](_0x40419e['DocSelectionManagerService']),_0x1e4e68=(_0x4f9c0e=_0x10ba13[_0x15bcfd(0x315)]())!=null?_0x4f9c0e:[];if(_0x1e4e68[_0x15bcfd(0x256)]===0x0)return;const _0x18eb00=_0x3ad8b1['unitID'],_0x28efa9=[{'id':_0x15bcfd(0x20e),'params':{'unitId':_0x18eb00,'actions':null,'textRanges':_0x1e4e68}}],_0x47832b=this[_0x15bcfd(0x1a6)][_0x15bcfd(0x366)](_0x3ad8b1,_0x28efa9);if(!_0x518b96['isTransformMutationsWithChangesetSuccess'](_0x47832b))throw _0x47832b[_0x15bcfd(0x17e)];const _0x330464=_0x47832b[_0x15bcfd(0x381)][0x0][_0x15bcfd(0x2de)][_0x15bcfd(0x2eb)];Array[_0x15bcfd(0x31b)](_0x330464)&&_0x330464[_0x15bcfd(0x256)]&&_0x10ba13[_0x15bcfd(0x10d)](_0x330464,{'unitId':_0x18eb00,'subUnitId':_0x18eb00},!0x1);}};_0x583390=_0x16db4a([_0x10abd2(0x0,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x271)])),_0x10abd2(0x1,_0x518b96[_0x4a00e7(0x16a)])],_0x583390);var _0x27b401=Object[_0x4a00e7(0x1f9)],_0x572a1e=(_0x15cd11,_0x12a736,_0x182548,_0x522a61)=>{for(var _0x2719eb=_0x522a61>0x1?void 0x0:_0x522a61?_0x27b401(_0x12a736,_0x182548):_0x12a736,_0x22a889=_0x15cd11['length']-0x1,_0x2c6f9b;_0x22a889>=0x0;_0x22a889--)(_0x2c6f9b=_0x15cd11[_0x22a889])&&(_0x2719eb=_0x2c6f9b(_0x2719eb)||_0x2719eb);return _0x2719eb;},_0x30446b=(_0x24ee40,_0x158ce8)=>(_0x2f7265,_0x246cd0)=>_0x158ce8(_0x2f7265,_0x246cd0,_0x24ee40);let _0x1226f3=class extends _0x18ca73['Disposable']{constructor(_0x3dc9e8,_0x804c5e,_0x26fa79,_0x425f29,_0x179390,_0x5c89f6,_0xab776d,_0x58b044){const _0x40b969=_0x4a00e7;super(),_0x41f19e(this,_0x40b969(0x346),new _0x16b079[(_0x40b969(0x18c))](_0x2fe882[_0x40b969(0x144)][_0x40b969(0x19f)])),(this[_0x40b969(0x239)]=_0x3dc9e8,this['_collaborationController']=_0x804c5e,this[_0x40b969(0x19c)]=_0x26fa79,this['_docTransformStateCacheService']=_0x425f29,this[_0x40b969(0x2e4)]=_0x179390,this[_0x40b969(0x1d7)]=_0x5c89f6,this[_0x40b969(0x27c)]=_0xab776d,this['_localeService']=_0x58b044,this[_0x40b969(0x35b)]());}['_initEntityListener'](){const _0x39fd4f=_0x4a00e7;this[_0x39fd4f(0x2a8)](this[_0x39fd4f(0x1c4)][_0x39fd4f(0x36c)][_0x39fd4f(0x12b)](_0xabc8fd=>{const _0x137f4f=_0x39fd4f,_0x13adc7=this[_0x137f4f(0x239)][_0x137f4f(0x1dc)]['subscribe'](_0xcb28ad=>{const _0x7a6d5f=_0x137f4f;if(_0xcb28ad==null)return;const {unitId:_0x231c9e,redoState:_0x5e2147,commandId:_0x36bff5}=_0xcb28ad;if(_0x231c9e!==_0xabc8fd[_0x7a6d5f(0x2d2)])return;const _0x4f7110={'id':_0x36bff5,'type':_0x18ca73[_0x7a6d5f(0x211)]['MUTATION'],'params':{'unitId':_0x231c9e,'actions':_0x5e2147[_0x7a6d5f(0x16e)],'textRanges':null}};_0xabc8fd[_0x7a6d5f(0x266)](_0x4f7110);});if(_0xabc8fd[_0x137f4f(0x2a8)](_0x13adc7),_0xabc8fd instanceof _0x2fe882[_0x137f4f(0x2a2)]){const _0x18a7d4={'onTransformIME':_0x1bbed2=>this[_0x137f4f(0x19c)][_0x137f4f(0x2c6)](_0x1bbed2),'onTransformState':_0x202945=>this[_0x137f4f(0x134)]['transformStateCache'](_0x202945),'onTransformSelections':_0x5bb14d=>this[_0x137f4f(0x2e4)]['transformSelections'](_0x5bb14d),'onSyncEditingCollabCursor':_0x2ced82=>this[_0x137f4f(0x1d7)][_0x137f4f(0x2fb)](_0x2ced82),'onTransformRemoteChangesetByIMECache':_0x193034=>this['_docTransformIMECacheService'][_0x137f4f(0x146)](_0x193034),'onTransformRemoteChangesetByStateCache':_0x78d0aa=>this['_docTransformStateCacheService'][_0x137f4f(0x146)](_0x78d0aa)};_0xabc8fd[_0x137f4f(0x1e4)](_0x18a7d4);}}));}};_0x1226f3=_0x572a1e([_0x30446b(0x0,_0x18ca73[_0x4a00e7(0x29b)](_0x41c79e['DocStateChangeManagerService'])),_0x30446b(0x1,_0x18ca73[_0x4a00e7(0x29b)](_0x2fe882[_0x4a00e7(0x1c9)])),_0x30446b(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x52e36c)),_0x30446b(0x3,_0x18ca73[_0x4a00e7(0x29b)](_0x52b88a)),_0x30446b(0x4,_0x18ca73[_0x4a00e7(0x29b)](_0x583390)),_0x30446b(0x5,_0x18ca73[_0x4a00e7(0x29b)](_0x349747)),_0x30446b(0x6,_0x5121a3['IMessageService']),_0x30446b(0x7,_0x18ca73[_0x4a00e7(0x29b)](_0x18ca73[_0x4a00e7(0x2b7)]))],_0x1226f3);var _0x4d89ba=Object[_0x4a00e7(0x1f9)],_0x35eb4f=(_0x47a9b8,_0x9d93a4,_0x1739bf,_0x24be97)=>{const _0x34174d=_0x4a00e7;for(var _0x889655=_0x24be97>0x1?void 0x0:_0x24be97?_0x4d89ba(_0x9d93a4,_0x1739bf):_0x9d93a4,_0x4ed867=_0x47a9b8[_0x34174d(0x256)]-0x1,_0xa3074e;_0x4ed867>=0x0;_0x4ed867--)(_0xa3074e=_0x47a9b8[_0x4ed867])&&(_0x889655=_0xa3074e(_0x889655)||_0x889655);return _0x889655;},_0x552d43=(_0x5bfd97,_0x271f7d)=>(_0x193b8f,_0x218f6b)=>_0x271f7d(_0x193b8f,_0x218f6b,_0x5bfd97);let _0x2eb9f4=class extends _0x18ca73[_0x4a00e7(0x25b)]{constructor(_0x4157ae,_0x27e9a6,_0x1ae026){const _0x17329e=_0x4a00e7;super(),_0x41f19e(this,_0x17329e(0x124),new Map()),_0x41f19e(this,_0x17329e(0x2c7),new Map()),_0x41f19e(this,_0x17329e(0x1de),!0x1),(this['_configService']=_0x4157ae,this[_0x17329e(0xf2)]=_0x27e9a6,this['_revisionService']=_0x1ae026);}[_0x4a00e7(0x1fb)](){const _0x5f18b6=_0x4a00e7;this[_0x5f18b6(0x1de)]=!0x0;}[_0x4a00e7(0x2be)](){const _0x453f74=_0x4a00e7;this[_0x453f74(0x1de)]=!0x1;}get[_0x4a00e7(0x344)](){return this['_saveTaskMap'];}['dispose'](){const _0x24b21f=_0x4a00e7;this[_0x24b21f(0x2e2)]()[_0x24b21f(0x2aa)](()=>super[_0x24b21f(0x264)]());}async['loadOfflineData'](_0x3a3fec){const _0x9fedfe=_0x4a00e7;return this[_0x9fedfe(0x1de)]?null:this['_localStorageService'][_0x9fedfe(0x33c)](_0x2fe882['getLocalCacheKey'](_0x3a3fec));}async[_0x4a00e7(0x1ad)](_0xac1d0a,_0x590c20){const _0x1da435=_0x4a00e7;return!!this[_0x1da435(0xf2)][_0x1da435(0x12e)](_0xac1d0a,_0x590c20);}[_0x4a00e7(0x268)](_0xa6f520,_0xccacb,_0x47cfa6,_0x4c4db0){const _0x279a33=_0x4a00e7,_0x2756a1=this[_0x279a33(0x21c)][_0x279a33(0x14d)](_0xa6f520);this[_0x279a33(0x124)][_0x279a33(0x329)](_0xa6f520,{'unitID':_0xa6f520,'type':_0xccacb,'awaitingChangeset':_0x47cfa6,'mutations':_0x4c4db0,'rev':_0x2756a1}),this[_0x279a33(0x2c7)][_0x279a33(0x133)](_0xa6f520)||this[_0x279a33(0x14a)](_0xa6f520);}[_0x4a00e7(0x14a)](_0xdee1fb){const _0x4a273f=_0x4a00e7,_0x20acd4=this[_0x4a273f(0x25f)]();_0x20acd4===0x0?this[_0x4a273f(0x127)](_0xdee1fb):this[_0x4a273f(0x2c7)][_0x4a273f(0x329)](_0xdee1fb,setTimeout(()=>this[_0x4a273f(0x127)](_0xdee1fb),_0x20acd4));}['_getSaveTimeout'](){const _0x434d5b=_0x4a00e7;var _0x1cd4ff;return(_0x1cd4ff=this['_configService'][_0x434d5b(0x35d)](_0x2fe882[_0x434d5b(0x288)]))!=null?_0x1cd4ff:_0x2fe882[_0x434d5b(0x213)];}[_0x4a00e7(0x127)](_0x3a7798){const _0x520ab2=_0x4a00e7,_0x4a5d78=this[_0x520ab2(0x2c7)][_0x520ab2(0x202)](_0x3a7798);return _0x4a5d78!==void 0x0&&window[_0x520ab2(0x215)](_0x4a5d78),this[_0x520ab2(0xf2)][_0x520ab2(0x12e)](_0x2fe882[_0x520ab2(0x2fd)](_0x3a7798),this[_0x520ab2(0x124)]['get'](_0x3a7798))['then'](()=>this['_saveTaskMap'][_0x520ab2(0x1e2)](_0x3a7798));}async['exhaustSavingTask'](){const _0xc44262=_0x4a00e7,_0xd8b711=[];this[_0xc44262(0x2c7)][_0xc44262(0x28f)]((_0x86d843,_0x537d33)=>{const _0x241d1f=_0xc44262;window['clearTimeout'](_0x86d843),_0xd8b711[_0x241d1f(0x2b6)](this['_saveCache'](_0x537d33)[_0x241d1f(0x2aa)](()=>{const _0x44b85a=_0x241d1f;this[_0x44b85a(0x2c7)][_0x44b85a(0x1e2)](_0x537d33);}));}),await Promise['all'](_0xd8b711);}};_0x2eb9f4=_0x35eb4f([_0x552d43(0x0,_0x18ca73[_0x4a00e7(0x1b0)]),_0x552d43(0x1,_0x18ca73['ILocalStorageService']),_0x552d43(0x2,_0x18ca73[_0x4a00e7(0x29b)](_0x518b96[_0x4a00e7(0x24c)]))],_0x2eb9f4);class _0x4fb64b extends _0x18ca73[_0x4a00e7(0x22f)]{constructor(){const _0x52cd85=_0x4a00e7;super(),_0x41f19e(this,_0x52cd85(0x2b8)),this[_0x52cd85(0x2b8)]=_0x16b079['fromEvent'](window,'popstate')['pipe'](_0x16b079[_0x52cd85(0x18a)](this[_0x52cd85(0x216)]),_0x16b079[_0x52cd85(0x27a)](0x1),_0x16b079['mapTo'](void 0x0));}['setParam'](_0xfc1060,_0xc0900b,_0x5398ec=!0x1){const _0x27c0aa=_0x4a00e7,_0x4bde26=new URL(window[_0x27c0aa(0x175)][_0x27c0aa(0x23a)]);_0x4bde26[_0x27c0aa(0x162)][_0x27c0aa(0x329)](_0xfc1060,_0xc0900b),_0x5398ec?window[_0x27c0aa(0x2f0)][_0x27c0aa(0x341)]('','',_0x4bde26[_0x27c0aa(0x2ba)]()):window[_0x27c0aa(0x2f0)][_0x27c0aa(0x14b)]('','',_0x4bde26[_0x27c0aa(0x2ba)]());}[_0x4a00e7(0x149)](_0x369fd2,_0x4a1604=!0x1){const _0x5a3ea=_0x4a00e7,_0x538fb5=new URL(window['location'][_0x5a3ea(0x23a)]);_0x538fb5[_0x5a3ea(0x162)]['delete'](_0x369fd2),_0x4a1604?window['history'][_0x5a3ea(0x341)]('','',_0x538fb5[_0x5a3ea(0x2ba)]()):window[_0x5a3ea(0x2f0)][_0x5a3ea(0x14b)]('','',_0x538fb5[_0x5a3ea(0x2ba)]());}[_0x4a00e7(0x2e9)](_0x599c32){const _0x57b40c=_0x4a00e7;var _0x1bf3c5;return(_0x1bf3c5=new URL(window[_0x57b40c(0x175)][_0x57b40c(0x23a)])['searchParams'][_0x57b40c(0x202)](_0x599c32))!=null?_0x1bf3c5:void 0x0;}}var _0x1f722d=Object['defineProperty'],_0x264b90=Object[_0x4a00e7(0x1f9)],_0xe9813e=(_0x407490,_0x205b72,_0x5525e2)=>_0x205b72 in _0x407490?_0x1f722d(_0x407490,_0x205b72,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5525e2}):_0x407490[_0x205b72]=_0x5525e2,_0x1634a2=(_0x46304f,_0x238c3e,_0x38362d,_0x548c7e)=>{const _0x9da08a=_0x4a00e7;for(var _0x5169e1=_0x548c7e>0x1?void 0x0:_0x548c7e?_0x264b90(_0x238c3e,_0x38362d):_0x238c3e,_0x188714=_0x46304f[_0x9da08a(0x256)]-0x1,_0x393383;_0x188714>=0x0;_0x188714--)(_0x393383=_0x46304f[_0x188714])&&(_0x5169e1=_0x393383(_0x5169e1)||_0x5169e1);return _0x5169e1;},_0x32180d=(_0x73821,_0x4e9cb0)=>(_0x8926cc,_0x31d8a5)=>_0x4e9cb0(_0x8926cc,_0x31d8a5,_0x73821),_0xb81d44=(_0x5f96d,_0x32c12d,_0x11dd79)=>_0xe9813e(_0x5f96d,_0x32c12d+'',_0x11dd79);const _0x3f8025=_0x4a00e7(0x1fe);_0x311cb7[_0x4a00e7(0x228)]=class extends _0x18ca73[_0x4a00e7(0x2d6)]{constructor(_0x326b1e=_0x44c505,_0x50eccf,_0x40038d,_0x2b6962){const _0x17e570=_0x4a00e7;super(),this[_0x17e570(0x342)]=_0x326b1e,this[_0x17e570(0x13b)]=_0x50eccf,this[_0x17e570(0x1ab)]=_0x40038d,this['_configService']=_0x2b6962;const {..._0x154d13}=_0x18ca73[_0x17e570(0x293)]({},_0x44c505,this[_0x17e570(0x342)]);this[_0x17e570(0x29d)][_0x17e570(0x12a)](_0x574e12,_0x154d13);}[_0x4a00e7(0x365)](){const _0x23b0f7=_0x4a00e7;this['_registerDependencies'](),this[_0x23b0f7(0x10e)]();}[_0x4a00e7(0x352)](){this['_registerRenderDependencies']();}[_0x4a00e7(0x188)](){const _0x806697=_0x4a00e7;var _0xee8cda;const _0x440367=[[_0x3fde5d],[_0x583390],[_0x52e36c],[_0x52b88a],[_0x349747],[_0x32736f,{'useClass':_0x4fb64b}],[_0x4ed2b8[_0x806697(0x262)],{'useClass':_0x4ed2b8[_0x806697(0x302)]}],[_0x2fe882[_0x806697(0x190)],{'useClass':_0x2eb9f4}],[_0x311cb7['DesktopCollaborationStatusDisplayController']],[_0x1226f3],[_0x3c5848],[_0x54c140],[_0x2d1ce0],[_0x311cb7[_0x806697(0x32f)]]];_0x18ca73[_0x806697(0x107)](this[_0x806697(0x1ab)],_0x18ca73[_0x806697(0x32e)](_0x440367,(_0xee8cda=this[_0x806697(0x342)])==null?void 0x0:_0xee8cda[_0x806697(0x147)]));}['_registerRenderDependencies'](){const _0x25085b=_0x4a00e7;this['disposeWithMe'](this[_0x25085b(0x13b)][_0x25085b(0x1ec)](_0x18ca73[_0x25085b(0x113)][_0x25085b(0x2a3)],[_0x4067e7])),this[_0x25085b(0x2a8)](this['_renderManagerService'][_0x25085b(0x1ec)](_0x18ca73[_0x25085b(0x113)][_0x25085b(0x158)],[_0xf7456]));}[_0x4a00e7(0x10e)](){const _0x256232=_0x4a00e7;_0x18ca73['touchDependencies'](this[_0x256232(0x1ab)],[[_0x54c140],[_0x311cb7[_0x256232(0xfb)]],[_0x1226f3],[_0x3c5848],[_0x311cb7[_0x256232(0x32f)]]]);}},_0xb81d44(_0x311cb7[_0x4a00e7(0x228)],'pluginName',_0x3f8025),_0x311cb7['UniverCollaborationClientUIPlugin']=_0x1634a2([_0x18ca73['DependentOn'](_0x2fe882[_0x4a00e7(0x304)]),_0x32180d(0x1,_0x1000a2[_0x4a00e7(0x214)]),_0x32180d(0x2,_0x18ca73['Inject'](_0x18ca73[_0x4a00e7(0x271)])),_0x32180d(0x3,_0x18ca73[_0x4a00e7(0x1b0)])],_0x311cb7[_0x4a00e7(0x228)]);var _0x1c225c=Object[_0x4a00e7(0x1f9)],_0x272856=(_0x12396f,_0x3377d4,_0x551b90,_0x45e44b)=>{const _0xfc169e=_0x4a00e7;for(var _0x132dad=_0x45e44b>0x1?void 0x0:_0x45e44b?_0x1c225c(_0x3377d4,_0x551b90):_0x3377d4,_0x4721c9=_0x12396f[_0xfc169e(0x256)]-0x1,_0x1b35fe;_0x4721c9>=0x0;_0x4721c9--)(_0x1b35fe=_0x12396f[_0x4721c9])&&(_0x132dad=_0x1b35fe(_0x132dad)||_0x132dad);return _0x132dad;},_0x1ae850=(_0x5331cd,_0x492267)=>(_0x43c425,_0x1b3851)=>_0x492267(_0x43c425,_0x1b3851,_0x5331cd);_0x311cb7[_0x4a00e7(0x33f)]=class extends _0x2fe882[_0x4a00e7(0x1c0)]{constructor(_0x2b8440,_0x5bf29b,_0x4bd151,_0x18eb3e,_0x4dc413){super(_0x2b8440,_0x5bf29b,_0x4bd151,_0x18eb3e,_0x4dc413);}async[_0x4a00e7(0x1b2)](_0x1d9fc2){const _0x426885=_0x4a00e7,_0x17937e=await this[_0x426885(0x370)](),_0x40f5f1=this[_0x426885(0x140)](_0x1d9fc2,_0x17937e);return this[_0x426885(0xfd)](_0x40f5f1);}[_0x4a00e7(0x140)](_0x344d80,_0x394cff){const _0x2590b1=_0x4a00e7,_0xce1af2=typeof window>'u'?new URL(_0x344d80):new URL(_0x344d80,window[_0x2590b1(0x175)][_0x2590b1(0x1d2)]);_0xce1af2[_0x2590b1(0x162)][_0x2590b1(0x329)](_0x2590b1(0x157),_0x394cff);const _0x3dd8ca=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2590b1(0x175)]['search']);return _0x3dd8ca[_0x2590b1(0x202)](_0x2590b1(0x15b))&&_0xce1af2[_0x2590b1(0x162)][_0x2590b1(0x329)](_0x2590b1(0x15b),_0x3dd8ca['get']('runId')),_0xce1af2['toString']();}async[_0x4a00e7(0x370)](){const _0x1bf786=_0x4a00e7;var _0x51eead,_0x595df2,_0x390503;const _0x4d2fa4=this[_0x1bf786(0x29d)][_0x1bf786(0x35d)](_0x2fe882[_0x1bf786(0x2ce)]),_0x3603cf=(_0x51eead=_0x4d2fa4==null?void 0x0:_0x4d2fa4[_0x1bf786(0x313)])!=null?_0x51eead:_0x2fe882[_0x1bf786(0x1a7)];return(_0x390503=(_0x595df2=(await this[_0x1bf786(0x219)][_0x1bf786(0x202)](_0x3603cf,{'headers':{'Content-Type':'application/json'}}))[_0x1bf786(0x19b)])==null?void 0x0:_0x595df2[_0x1bf786(0x1ce)])!=null?_0x390503:'';}},_0x311cb7['BrowserCollaborationSocketService']=_0x272856([_0x1ae850(0x0,_0x18ca73[_0x4a00e7(0x29b)](_0x18ca73['Injector'])),_0x1ae850(0x1,_0x18ca73[_0x4a00e7(0x29b)](_0x4ed2b8[_0x4a00e7(0xf5)])),_0x1ae850(0x2,_0x18ca73[_0x4a00e7(0x1b0)]),_0x1ae850(0x3,_0x18ca73['ILogService']),_0x1ae850(0x4,_0x518b96[_0x4a00e7(0x24f)])],_0x311cb7[_0x4a00e7(0x33f)]);var _0x4d18de=(_0x4c868e=>(_0x4c868e[_0x4c868e['UNDEFINED']=0x0]=_0x4a00e7(0x116),_0x4c868e[_0x4c868e['OK']=0x1]='OK',_0x4c868e[_0x4c868e[_0x4a00e7(0x1c8)]=0x2]=_0x4a00e7(0x1c8),_0x4c868e[_0x4c868e[_0x4a00e7(0x2d8)]=0x3]=_0x4a00e7(0x2d8),_0x4c868e[_0x4c868e[_0x4a00e7(0x151)]=0x4]='NOT_FOUND',_0x4c868e[_0x4c868e[_0x4a00e7(0x1cb)]=0x5]=_0x4a00e7(0x1cb),_0x4c868e[_0x4c868e[_0x4a00e7(0x135)]=0x6]=_0x4a00e7(0x135),_0x4c868e[_0x4c868e[_0x4a00e7(0x317)]=0x7]='INVALID_ARGUMENT',_0x4c868e[_0x4c868e[_0x4a00e7(0x31a)]=0x8]=_0x4a00e7(0x31a),_0x4c868e[_0x4c868e[_0x4a00e7(0x32c)]=0x9]=_0x4a00e7(0x32c),_0x4c868e[_0x4c868e[_0x4a00e7(0x223)]=0xa]=_0x4a00e7(0x223),_0x4c868e[_0x4c868e[_0x4a00e7(0x1e1)]=0xb]=_0x4a00e7(0x1e1),_0x4c868e[_0x4c868e[_0x4a00e7(0x29a)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4c868e[_0x4c868e[_0x4a00e7(0x31c)]=0xd]=_0x4a00e7(0x31c),_0x4c868e[_0x4c868e['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x4a00e7(0x2f4),_0x4c868e[_0x4c868e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4a00e7(0x2cc),_0x4c868e[_0x4c868e['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x4a00e7(0x1df),_0x4c868e[_0x4c868e[_0x4a00e7(0x1f4)]=0x1772]=_0x4a00e7(0x1f4),_0x4c868e[_0x4c868e[_0x4a00e7(0x33e)]=0x1773]=_0x4a00e7(0x33e),_0x4c868e[_0x4c868e[_0x4a00e7(0x24e)]=0x1b59]=_0x4a00e7(0x24e),_0x4c868e[_0x4c868e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4a00e7(0x189),_0x4c868e[_0x4c868e[_0x4a00e7(0x178)]=0x1b5b]=_0x4a00e7(0x178),_0x4c868e[_0x4c868e['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4c868e[_0x4c868e['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x4c868e[_0x4c868e[_0x4a00e7(0x2bc)]=0x1f41]=_0x4a00e7(0x2bc),_0x4c868e[_0x4c868e[_0x4a00e7(0x230)]=0x2329]=_0x4a00e7(0x230),_0x4c868e[_0x4c868e[_0x4a00e7(0x109)]=0x232a]=_0x4a00e7(0x109),_0x4c868e[_0x4c868e[_0x4a00e7(0x296)]=0x232b]=_0x4a00e7(0x296),_0x4c868e[_0x4c868e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4a00e7(0x1be),_0x4c868e[_0x4c868e[_0x4a00e7(0x2fe)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4c868e[_0x4c868e[_0x4a00e7(0x369)]=0x2711]=_0x4a00e7(0x369),_0x4c868e[_0x4c868e[_0x4a00e7(0x269)]=0x2712]=_0x4a00e7(0x269),_0x4c868e[_0x4c868e[_0x4a00e7(0x2ef)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4c868e[_0x4c868e[_0x4a00e7(0x328)]=0x2714]=_0x4a00e7(0x328),_0x4c868e[_0x4c868e[_0x4a00e7(0x2cf)]=0x271a]=_0x4a00e7(0x2cf),_0x4c868e[_0x4c868e[_0x4a00e7(0x246)]=0x271b]=_0x4a00e7(0x246),_0x4c868e[_0x4c868e[_0x4a00e7(0x1c1)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x4c868e[_0x4c868e[_0x4a00e7(0x323)]=0x271d]=_0x4a00e7(0x323),_0x4c868e[_0x4c868e[_0x4a00e7(0x371)]=0x271e]=_0x4a00e7(0x371),_0x4c868e[_0x4c868e[_0x4a00e7(0x182)]=0x271f]=_0x4a00e7(0x182),_0x4c868e[_0x4c868e[_0x4a00e7(0x2d1)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x4c868e[_0x4c868e['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4a00e7(0x31f),_0x4c868e[_0x4c868e['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x4c868e[_0x4c868e[_0x4a00e7(0x15f)]=0x2ee2]='INVALID_INVITE_CODE',_0x4c868e[_0x4c868e[_0x4a00e7(0x334)]=0x2ee3]=_0x4a00e7(0x334),_0x4c868e[_0x4c868e[_0x4a00e7(0x2b4)]=0x2ee4]=_0x4a00e7(0x2b4),_0x4c868e[_0x4c868e[_0x4a00e7(0x260)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4c868e[_0x4c868e['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x4c868e[_0x4c868e[_0x4a00e7(0x350)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4c868e[_0x4c868e['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4a00e7(0x2d7),_0x4c868e[_0x4c868e['UNRECOGNIZED']=-0x1]=_0x4a00e7(0x159),_0x4c868e))(_0x4d18de||{}),_0x1fa851=Object[_0x4a00e7(0x1f9)],_0x567b6c=(_0x2f6a22,_0xe317e0,_0x26abc7,_0x22b8be)=>{const _0x63eb9e=_0x4a00e7;for(var _0x56e235=_0x22b8be>0x1?void 0x0:_0x22b8be?_0x1fa851(_0xe317e0,_0x26abc7):_0xe317e0,_0xaadb2f=_0x2f6a22[_0x63eb9e(0x256)]-0x1,_0x388ee5;_0xaadb2f>=0x0;_0xaadb2f--)(_0x388ee5=_0x2f6a22[_0xaadb2f])&&(_0x56e235=_0x388ee5(_0x56e235)||_0x56e235);return _0x56e235;},_0x1b4823=(_0x389991,_0x2b097e)=>(_0x54611b,_0x4e3c86)=>_0x2b097e(_0x54611b,_0x4e3c86,_0x389991);_0x311cb7[_0x4a00e7(0x13c)]=class extends _0x18ca73[_0x4a00e7(0x25b)]{constructor(_0x521893,_0x63e63a,_0x2844cd){const _0x3db7b0=_0x4a00e7;super(),this[_0x3db7b0(0x348)]=_0x521893,this[_0x3db7b0(0x219)]=_0x63e63a,this[_0x3db7b0(0x29d)]=_0x2844cd;}async['runOnServer'](_0x3c77c1,_0x2f823e,_0x17ebc4,..._0x4cf7ca){const _0x511400=_0x4a00e7;var _0x253f63,_0x3d7ab2,_0x1c71ba,_0x5366ab;const _0x5dd8f3=this[_0x511400(0x348)]['getFocusedUnit']();if(!_0x5dd8f3)throw new Error(_0x511400(0x2f9));const _0x56310a=((_0x253f63=this['_configService'][_0x511400(0x35d)](_0x2fe882[_0x511400(0x25c)]))!=null?_0x253f63:_0x2fe882[_0x511400(0x32a)])+'/'+_0x3c77c1+'/run/'+_0x2f823e,_0x2b1964=new URL(window['location'][_0x511400(0x23a)]),_0x4eb227={'scriptId':_0x3c77c1,'runId':(_0x3d7ab2=_0x2b1964['searchParams'][_0x511400(0x202)](_0x511400(0x15b)))!=null?_0x3d7ab2:'','function':_0x2f823e,'unitId':_0x5dd8f3[_0x511400(0x1fa)](),'argsOfFunction':JSON[_0x511400(0x155)](_0x4cf7ca),'invokeId':(_0x1c71ba=_0x17ebc4[_0x511400(0x2ae)])!=null?_0x1c71ba:'','executionId':(_0x5366ab=_0x17ebc4['executionId'])!=null?_0x5366ab:''};try{const _0x3200a3=await this[_0x511400(0x219)][_0x511400(0x187)](_0x56310a,{'body':_0x4eb227});return _0x3200a3[_0x511400(0x19b)][_0x511400(0x17e)]&&_0x3200a3['body'][_0x511400(0x17e)][_0x511400(0x16f)]!==_0x4d18de['OK']?_0x511400(0x30c):_0x3200a3[_0x511400(0x19b)]['result'];}catch{return _0x511400(0x30c);}}},_0x311cb7[_0x4a00e7(0x13c)]=_0x567b6c([_0x1b4823(0x0,_0x18ca73[_0x4a00e7(0x196)]),_0x1b4823(0x1,_0x18ca73['Inject'](_0x4ed2b8['HTTPService'])),_0x1b4823(0x2,_0x18ca73[_0x4a00e7(0x1b0)])],_0x311cb7[_0x4a00e7(0x13c)]);const _0x561d73=0x7530,_0x4961af=_0x4a00e7(0x2d5);class _0x1eb468 extends _0x18ca73[_0x4a00e7(0x25b)]{constructor(){const _0x2f5553=_0x4a00e7;super(),_0x41f19e(this,_0x2f5553(0x35a),_0x18ca73[_0x2f5553(0x368)]()),_0x41f19e(this,_0x2f5553(0x119),new Set()),_0x41f19e(this,'_unitOnClients',new Map()),_0x41f19e(this,_0x2f5553(0x36a),null),_0x41f19e(this,'_clearOtherTimers',new Map()),_0x41f19e(this,'_unitStatus',new Map()),this['_init']();}[_0x4a00e7(0x264)](){const _0x67c122=_0x4a00e7;super[_0x67c122(0x264)](),this[_0x67c122(0x363)][_0x67c122(0x28f)]((_0x1ddc4a,_0x5487e9)=>this[_0x67c122(0x1d6)](_0x5487e9)),this[_0x67c122(0x36a)]&&window[_0x67c122(0x204)](this[_0x67c122(0x36a)]);}[_0x4a00e7(0x1c7)](_0xada747){const _0x30c940=_0x4a00e7;return this['_ensureSubject'](_0xada747)[_0x30c940(0x217)](_0x16b079['distinctUntilChanged']());}[_0x4a00e7(0x2b1)](_0x374c9e){const _0x681278=_0x4a00e7;this[_0x681278(0x119)]['size']===0x0&&this[_0x681278(0x284)](),this[_0x681278(0x119)][_0x681278(0x114)](_0x374c9e),this[_0x681278(0x1e8)]({'type':0x0,'memberID':this[_0x681278(0x35a)],'unitIDs':[_0x374c9e],'isForwarded':!0x1});}['disposeUnit'](_0x43e900){const _0xe986fd=_0x4a00e7;this[_0xe986fd(0x119)][_0xe986fd(0x1e2)](_0x43e900),this['_selfUnitIDs']['size']===0x0&&this[_0xe986fd(0x36a)]&&window['clearInterval'](this[_0xe986fd(0x36a)]);}[_0x4a00e7(0x1ee)](){const _0x4669b7=_0x4a00e7;this[_0x4669b7(0x2a8)](_0x18ca73[_0x4669b7(0x244)](_0x16b079[_0x4669b7(0x20f)](window,'storage')[_0x4669b7(0x12b)](_0x5733bc=>{const _0x46596c=_0x4669b7;if(_0x5733bc[_0x46596c(0x1c6)]!==_0x4961af||!_0x5733bc[_0x46596c(0x101)])return;const _0x129e86=JSON[_0x46596c(0x21e)](_0x5733bc[_0x46596c(0x101)]);this['_handleEvent'](_0x129e86);}))),window[_0x4669b7(0x327)]('unload',()=>this[_0x4669b7(0x1e8)]({'type':0x1,'memberID':this[_0x4669b7(0x35a)],'unitIDs':Array[_0x4669b7(0x21f)](this[_0x4669b7(0x119)])}));}[_0x4a00e7(0x2e0)](_0x1e7b53){const _0xd752af=_0x4a00e7;switch(_0x1e7b53['type']){case 0x0:this[_0xd752af(0x2b9)](_0x1e7b53);break;case 0x1:this['_handleLeaveEvent'](_0x1e7b53);break;case 0x2:this[_0xd752af(0xf3)](_0x1e7b53);break;}}[_0x4a00e7(0x2b9)](_0x3ba2ca){const _0x48ac5c=_0x4a00e7,{unitIDs:_0x25d431,memberID:_0x579d79,isForwarded:_0x55c8b8}=_0x3ba2ca;_0x25d431[_0x48ac5c(0x28f)](_0xd7be07=>{const _0x7d96d=_0x48ac5c;if(!_0x55c8b8&&this[_0x7d96d(0x379)][_0x7d96d(0x133)](_0xd7be07)&&this[_0x7d96d(0x356)](_0xd7be07)[_0x7d96d(0x274)](_0x2fe882[_0x7d96d(0x1b6)][_0x7d96d(0x186)]),!this['_unitOnClients'][_0x7d96d(0x133)](_0xd7be07)||!this[_0x7d96d(0x379)]['get'](_0xd7be07)[_0x7d96d(0x133)](_0x579d79)){const _0x5d4f11=this['_unitOnClients'][_0x7d96d(0x202)](_0xd7be07)||new Set();_0x5d4f11[_0x7d96d(0x114)](_0x579d79),this[_0x7d96d(0x379)]['set'](_0xd7be07,_0x5d4f11),this[_0x7d96d(0xf7)](_0x579d79);}}),_0x55c8b8||this[_0x48ac5c(0x1e8)]({'type':0x0,'memberID':this[_0x48ac5c(0x35a)],'unitIDs':[...this[_0x48ac5c(0x119)]],'isForwarded':!0x0});}[_0x4a00e7(0xf7)](_0x54dc6d){const _0x574705=_0x4a00e7;this[_0x574705(0x1d6)](_0x54dc6d);const _0x317900=window['setTimeout'](()=>{const _0x912570=_0x574705;this[_0x912570(0x379)][_0x912570(0x28f)](_0x11904b=>{const _0x5f1fa9=_0x912570;_0x11904b[_0x5f1fa9(0x1e2)](_0x54dc6d);});},_0x561d73*0x2);this['_clearOtherTimers'][_0x574705(0x329)](_0x54dc6d,_0x317900);}['_removeClearOtherTimer'](_0x3eaef1){const _0x3afd5e=_0x4a00e7;if(this[_0x3afd5e(0x363)]['has'](_0x3eaef1)){const _0xb4817d=this[_0x3afd5e(0x363)][_0x3afd5e(0x202)](_0x3eaef1);_0xb4817d&&window[_0x3afd5e(0x215)](_0xb4817d),this['_clearOtherTimers'][_0x3afd5e(0x329)](_0x3eaef1,null);}}['_handleLeaveEvent'](_0x3e315d){const _0x1039b8=_0x4a00e7,{memberID:_0x8f3c9a,unitIDs:_0x477026}=_0x3e315d;_0x477026[_0x1039b8(0x28f)](_0x302a6c=>{const _0x360e88=_0x1039b8;var _0x303b51;const _0x201905=this[_0x360e88(0x379)][_0x360e88(0x202)](_0x302a6c);_0x201905&&(_0x201905[_0x360e88(0x1e2)](_0x8f3c9a),(_0x303b51=this[_0x360e88(0x356)](_0x302a6c))==null||_0x303b51[_0x360e88(0x274)](_0x201905[_0x360e88(0x209)]===0x0?_0x2fe882[_0x360e88(0x1b6)]['NO_OTHER_CLIENTS_EDITING']:_0x2fe882['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x1039b8(0x1d6)](_0x8f3c9a);}['_handleHeartbeatEvent'](_0x52283b){const _0xdad2d9=_0x4a00e7;this[_0xdad2d9(0xf7)](_0x52283b['memberID']);}[_0x4a00e7(0x1e8)](_0x1b6545){const _0x282736=_0x4a00e7;localStorage[_0x282736(0x12e)](_0x4961af,JSON['stringify'](_0x1b6545));}[_0x4a00e7(0x284)](){const _0x3bf99d=_0x4a00e7;this[_0x3bf99d(0x36a)]=window[_0x3bf99d(0x30a)](()=>{const _0xbd335c=_0x3bf99d;this[_0xbd335c(0x1e8)]({'type':0x2,'memberID':this['_id']});},_0x561d73);}['_ensureSubject'](_0x55ae79){const _0xc6645e=_0x4a00e7;return this[_0xc6645e(0x1d0)][_0xc6645e(0x133)](_0x55ae79)||this[_0xc6645e(0x1d0)]['set'](_0x55ae79,new _0x16b079[(_0xc6645e(0x18c))](_0x2fe882[_0xc6645e(0x1b6)][_0xc6645e(0x2f3)])),this['_unitStatus']['get'](_0x55ae79);}}_0x311cb7[_0x4a00e7(0x2dc)]=_0x32736f,_0x311cb7['SheetCollabCursorShape']=_0x4044b0,_0x311cb7[_0x4a00e7(0x375)]=_0x1eb468,_0x311cb7[_0x4a00e7(0x25a)]=_0x4fb64b,Object[_0x4a00e7(0x2c0)](_0x311cb7,Symbol[_0x4a00e7(0x22a)],{'value':_0x4a00e7(0x15c)});}));