@univerjs-pro/collaboration-client-ui 0.8.3-nightly.202506271607 → 0.8.3-nightly.202507011607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4949(_0x5cb360,_0x4421ec){const _0x1fdad1=_0x1fda();return _0x4949=function(_0x49498c,_0x4525f7){_0x49498c=_0x49498c-0x85;let _0x1a17dc=_0x1fdad1[_0x49498c];return _0x1a17dc;},_0x4949(_0x5cb360,_0x4421ec);}const _0x86ec75=_0x4949;function _0x1fda(){const _0x51e26e=['3048sAVGxE','RemoteUniscriptService','28vbBhlW','FUniver','6220MoOWQp','2170362dMtOll','5295776cYMitP','21699NxApzp','8210xWmVme','5106555APfpnI','64yVPfUX','586505fnlzHl','runOnServer','87UZCsEG','117227JyAUVi','_injector'];_0x1fda=function(){return _0x51e26e;};return _0x1fda();}(function(_0x2ecefa,_0x50d986){const _0x24f4aa=_0x4949,_0x244c69=_0x2ecefa();while(!![]){try{const _0x3ca4fd=parseInt(_0x24f4aa(0x85))/0x1*(parseInt(_0x24f4aa(0x90))/0x2)+-parseInt(_0x24f4aa(0x91))/0x3+parseInt(_0x24f4aa(0x92))/0x4*(parseInt(_0x24f4aa(0x93))/0x5)+parseInt(_0x24f4aa(0x8d))/0x6*(-parseInt(_0x24f4aa(0x8a))/0x7)+parseInt(_0x24f4aa(0x8e))/0x8+parseInt(_0x24f4aa(0x8f))/0x9*(-parseInt(_0x24f4aa(0x8c))/0xa)+parseInt(_0x24f4aa(0x86))/0xb*(parseInt(_0x24f4aa(0x88))/0xc);if(_0x3ca4fd===_0x50d986)break;else _0x244c69['push'](_0x244c69['shift']());}catch(_0x33e466){_0x244c69['push'](_0x244c69['shift']());}}}(_0x1fda,0xe8ed2));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x86ec75(0x8b)]{[_0x86ec75(0x94)](_0x581315,_0x140291,..._0x5e75ed){const _0x5b559a=_0x86ec75;return this[_0x5b559a(0x87)]['get'](t[_0x5b559a(0x89)])[_0x5b559a(0x94)](_0x581315,_0x140291,{},..._0x5e75ed);}}e[_0x86ec75(0x8b)]['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5f11ba=_0x32ae;(function(_0x293557,_0x21b867){const _0x4385aa=_0x32ae,_0x1ade97=_0x293557();while(!![]){try{const _0x4d7369=parseInt(_0x4385aa(0x1e0))/0x1*(parseInt(_0x4385aa(0x245))/0x2)+-parseInt(_0x4385aa(0x34f))/0x3+-parseInt(_0x4385aa(0x156))/0x4+parseInt(_0x4385aa(0x2b0))/0x5+-parseInt(_0x4385aa(0x12e))/0x6*(parseInt(_0x4385aa(0x2ce))/0x7)+-parseInt(_0x4385aa(0x362))/0x8*(parseInt(_0x4385aa(0x1e4))/0x9)+-parseInt(_0x4385aa(0x354))/0xa*(-parseInt(_0x4385aa(0x1fd))/0xb);if(_0x4d7369===_0x21b867)break;else _0x1ade97['push'](_0x1ade97['shift']());}catch(_0x27de21){_0x1ade97['push'](_0x1ade97['shift']());}}}(_0x26e4,0x7e46e));var Ve=Object[_0x5f11ba(0x104)],Xe=(_0x4e74f3,_0x33016e,_0x1ff4be)=>_0x33016e in _0x4e74f3?Ve(_0x4e74f3,_0x33016e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ff4be}):_0x4e74f3[_0x33016e]=_0x1ff4be,h=(_0x36005f,_0x10b91e,_0x39697f)=>Xe(_0x36005f,typeof _0x10b91e!=_0x5f11ba(0x18d)?_0x10b91e+'':_0x10b91e,_0x39697f);Object[_0x5f11ba(0x104)](exports,Symbol[_0x5f11ba(0x18a)],{'value':_0x5f11ba(0x2ea)});function _0x26e4(){const _0x5dff8c=['getUnitStatus$','UNIVER_SHEET','OFFLINE','urlChange$','_initStatusListener','purple.300','IUIPartsService','setShapeProps','unshift','trim','SheetsSelectionsService','univer-mr-2\x20univer-flex\x20univer-text-xl','BehaviorSubject','getSheetBySheetId','setTimeout','values','transformMutation','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabStatus.offline','VIEW_MAIN','_cachedData','Shape','none','on-line-icon_clip0_910_349','MOBILE_VERIFY_CODE_MISMATCH','1fESuoS','handleDeleteRangeMoveLeft','call','_onRefRangeChange','9zbbhzg','MoveRangeCommandId','toString','_initResize','IUniverInstanceService','getOwnPropertySymbols','_name','APPLY_NON_SEQUENTIAL_REVISION','Warning','_onCursorUpdate','takeUntil','contains','getTypeOfUnitDisposed$','selections','exhaustSavingTask','CONFLICT','icon','_localStorageService','ILogService','transformSelections','ALREADY_EXISTS','createIdentifier','LOCAL_CACHE_INTERVAL_KEY','EffectRefRangId','ILocalCacheService','88UbamXE','ISocketService','_handleHeartbeatEvent','collab-text-range-','selection','code','getCurrent','getCurrentRevOfUnit','transformMutationsWithChangeset','_injector','event$','top','reconnect','_collabCursorState$','useDependency','EMAIL_HAS_BEEN_BOUND','lineTo','redoState','extend','mergeOverrideWithDependencies','save','with','memberID','backgroundColor','red.300','_doCreateSocket','toRgbString','getCoordByCell','...','OnLineIcon','activeSheet$','CollaborationSessionService','CollaborationEvent','@univerjs-pro/collaboration-client','switchMap','saveTaskMap','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','ticket','startColumn','transformIMECache','defs','loadOfflineData','replaceState','includes','url(#$1','Rectangle','body','size','_registerDependencies','pushState','defIds','RemoveColCommandId','_draw','complete','_color','MemberService','IConfigService','SetWorksheetActivateCommand','m2Prime','_setupSubUnitSync','_entityInit$','_localCacheService','_startSheetCollabCursor','type','popstate','ISnapshotServerService','currentTheme$','getActiveSheet','replace','_init','M0\x200H16V16H0z','_colorAssignService','658670mwMPib','RegularPolygon','_id','isTransformMutationsWithChangesetSuccess','imageSourceType','UniverCollaborationClientPlugin','undoState','restore','CollaborationStatusDisplay','clearInterval','getConfig','clipPath','assign','_docClipboardService','onStarting','textRanges','_scene','measureText','runRefRangeMutations','_handleHover','tag','fillRule','delete','CollaborationDataLoaderController','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','deepClone','ICommandService','COMPLETION_FINISHED','_docStateChangeManagerService','Disposable','requireSession','getVpScrollXYInfoByPosToVp','getLocalCacheKey','_session','_getAnchorBounding','location','sheetID','ThemeService','getActiveRange','NodePositionConvertToRectRange','saveImage','_docTransformStateCacheService','result','transformStateCache','_updateCollabCursors','handleMoveRange','YUUMI_RATE_OVER_LIMIT','sessionTicket','SOCKET_FAILED','font','FromArray','addObject','YUUMI_ALL_TABLES_IS_INVALID','setInterval','univerjs-icon\x20univerjs-icon-','DependentOn','saveOfflineData','DocStateChangeManagerService','_dataLoaderService','collaboration-client-ui.config','Injector','collaboration-client.offline-data-not-saved','use','add','UNDEFINED','set','YUUMI_ASYNCIO_CANCELLED','column','subunit','_setupBeforeClosingHandler','_docSkeletonManagerService','_renderManagerService','updateOfflineData','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','DEFAULT_WS_SESSION_TICKET_URL','fillText','getStateCache','onPointerMove$','rxjs/operators','permission.content','jiqing.500','name','WebURLService','unload','CONNECTOR_DATA_TOO_LARGE','_updateLocalCursor','getCurrentSelections','YUUMI_URL_COL_OUT_OF_RANGE','generateRandomId','setItem','debounceTime','Tools','on-line-icon','findNodePositionByCharIndex','_refreshCollabCursors','_transformPreviousActiveRange','merge','attrs','fromEvent','handleIRemoveCol','_drawTextRange','LICENSE_EXPORT_SIZE_EXCEEDED','pipe','APPLY_REVISION_CONFILICT','executionId','evenodd','post','3791560kEAPdC','init','UnitStatus','_beforeCloseService','DataLoaderService','getFocusedUnit','makeDirty','RichTextEditingMutation','_logService','collaboration.single-unit.warning','sessionStatus$','@univerjs/engine-formula','RemoteUniscriptService','CHANGESET_REVISION_CONFILICT','onCommandExecuted','forwardRef','asObservable','currentSkeleton$','_imageIoService','setUndoRedoMutationParamsCache','mask','[RemoteUniscriptService]:\x20no\x20focused\x20unit','searchParams','Unknown\x20user','ACTIVE_UNIT_EVENT_CHANNEL','LocaleService','_saveTaskMap','hasOwnProperty','children','setAlpha','516565FsVVQZ','MessageType','_updateURLWithCurrentState','SNAPSHOT_INVALID_SNAPSHOT','PERMISSION_DENIED','SheetCollabCursorShape','TEXT','_lastPointer','setParam','LICENSE_IMPORT_SIZE_EXCEEDED','_saveCache','apply','combineLatest','get','registerComponent','@univerjs/network','color','collab-client.tooltip.reconnect','focused$','_startDocCollabCursor','_anchorDot','next','handleInsertRow','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','BrowserCollaborationSocketService','endColumn','getColor','Module','Rect','0\x200\x2016\x2016','_context','ColorKit','_getSessionTicket','@univerjs/docs','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_httpService','replaceDocRanges','_registerRenderDependencies','getParam','collab-rect-range-','_hover','_clearOtherTimers','getOwnPropertyDescriptor','getSkeleton','_anchor','isTransformMutationFailure','from','beginPath','registerRefRange','UniverCollaborationClientUIPlugin','toDisposable','setActiveRange','createInstance','div','Plugin','doc.mutation.rich-text-editing','forEach','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','useCallback','_render','jsxs','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_handleLeaveEvent','react/jsx-runtime','_assignedColors','removeParam','cursorInfo$','_selfUnitIDs','_handleEvent','colorChannel1','_unitStatus','@univerjs-pro/collaboration','black','session.collaboration-timeout','Vector2','_drawRectRange','arc','off-line-icon_clip0_910_343','_getScale','clsx','min','_hideTimer','_collaborationUIEventService','getSheetId','SUBMIT_CHANGESET_TIMEOUT','history','skeleton','override','_transformService','_ensureSubject','current','clearTimeout','prototype','_range','getOffsetConfig','UNIVER_DOC','_urlService','drawWith','_localeService','collabStatus.synced','assignAColorForMemberID','_config','_themeService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','univer-flex\x20univer-items-center','collaboration.closeRoom','IDocClipboardService','currentColor','SheetSkeletonManagerService','pluginName','getItem','_createSocketURL','_sheetSkeletonManagerService','EMAIL_VERIFY_CODE_MISMATCH','InsertRangeMoveDownCommandId','_toggleOnline','MUTATION','_status$','session.connection-failed','_initDependencies','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_shapes','className','CollaborationUIEventId','UniverIcon','OTHER_CLIENTS_EDITING','filter','_messageService','415554joopmh','Subject','_disabled','unitID','setStateCache','660720GBKITe','getAncestorScale','disableLocalCache','INVITE_CODE_ALREADY_BOUND','then','storage','text','DocCollaborationEntity','UniverInstanceType','permission.title','ENSURE_SNAPSHOT_EXECUTION','TEXT_RANGE_LAYER_INDEX','_entities','getSheetObject','4299416UeOTmb','_send','_uiPartsService','RECT','_drawAnchor','_docTransformSelectionsService','mapTo','WebBrowserSingleActiveUnitService','eventID','SYNCED','debounce','serializeRangeWithSheet','unitId','_document','LOGIN_FAILED','collabCursorState$','width','LICENSE_MAX_UNITS_EXCEEDED','svg','APPLY_REJECT','handleInsertRangeMoveDown','getColorFromTheme','YUUMI_UNABLE_LOAD_URL','HEADER_MENU','_commandService','PY_RUNTIME_SCRIPT_ERROR','WebSocketService','ITransformService','IURLService','dispose','roomMembers','NodePositionConvertToCursor','IMessageService','onPointerEnter$','addEventListener','fromEventSubject','onRendered','getDocRanges','[CollaborationDataLoaderController]','Optional','APPLY_PERMISSION_DENIED','displayName','Error','mutations','fillStyle','throttleTime','params','getUnitId','green.600','triggerDblclick','INVALID_ARGUMENT','row','USERS_LEAVE','rxjs','disposeWithMe','subscribeEvent','onMouseMove','_transformHistoryAndStateStack','defineProperty','labelPosition','runOnServer','enableLocalCache','runId','onPointerLeave$','YUUMI_CONNECTOR_URL_NOT_FOUND','YUUMI_AI_RUN_FAILED','all','HTTPService','@univerjs/drawing','_initEvent','error','_univerInstanceService','_docSkeleton','SetSelectionsOperation','isArray','COLORS','Inject','url(#off-line-icon_clip0_910_343)','translate(.97)','editingUnit','touchDependencies','entries','m1Prime','data','CollaborationController','_docTransformIMECacheService','@univerjs/engine-render','_cursorShapes','transform','handleIRemoveRow','RevisionService','executeCommand','getRenderById','jsx','collabStatus.notCollab','WECHAT_HAS_BEEN_BOUND','DOC_RANGE_TYPE','show','_transformUndoRedoStack','_revisionService','18CkWCYp','distinctUntilChanged','_scheduleSaving','getCollabEntity$','_notificationService','getUndoRedoMutationParamsCache','NOT_COLLAB','subscribe','docStateChange$','_initStatusComponent','CollaborationStatus','LICENSE_DISTRO_REJECTED','_cursorInfo$','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_hovered','hide','SNAPSHOT_HAS_BEEN_REMOVED','syncEditingCollabCursor','_getSaveTimeout','getMemberID','debug','/run/','_collabSessionService','1em','_removeCollabCursors','_online','addClipboardHook','find','split','useObservable','map','_collaborationController','cursorInfo','roomMembers$','height','getMember','ILocalStorageService','_heartbeatTimer','_textBubble','range','806652WKkuEn','@univerjs/ui','UPDATE_CURSOR','entityInit$','Failed','_roomMembers$','_cursors','handleInsertRangeMoveRight','ranges','LOCAL_CACHE_INTERVAL','subUnitId','CollaborationSocketService','_initEntityListener','onLocalMutation','RxDisposable','getCellPositionByOffset','_updateSubUnitFromURLParams','_removeClearOtherTimer','YUUMI_NO_CUBOID_FOR_QUESTION','getTypeOfUnitAdded$','_eventUnsubscribe','unit','_colorIndex','path','getRangePointData','getCurrentUnitForType','DeleteRangeMoveLeftCommandId','registerRenderModule','AWAITING_WITH_PENDING','length','INTERNAL_ERROR','random','application/json','shareReplay','_labelPosition','getRelativeToViewportCoord','_onCursorDelete','isActive','getViewport','session.will-retry','IRenderManagerService','@univerjs/sheets-ui','stringify','createElement','INVALID_INVITE_CODE','_initCommandExecutedListener','_toggleOffline','UNAUTHENTICATED','@univerjs/core','#FFF','_getSheetObject','origin','toStringTag','concat','_collabCursorController','symbol','transformRemoteChangeset','newValue','setConfig','has','string','dispose$','_docSyncEditingCollabCursorService','FETCH_MISS','getValue','_getMergeRange','useRef','flatMap','DocIMEInputManagerService','ONLINE','indexOf','APPLY_DUPLICATED','round','unsubscribe','wsSessionTicketUrl','INVITE_CODE_REQUIRED','fill','_refRangeService','_memberService','status$','_configService','href','collab-text-anchor-','INotificationService','SessionStatus','SetTextSelectionsOperation','closePath','startRow','0\x200\x2017\x2016','Tooltip','bottom','send','_cursor','_scheduleHeartbeat','_scheduleClearOtherTimer','rgba(255,\x20255,\x20255,\x200.01)','http://www.w3.org/2000/svg','addObjects','DesktopCollaborationStatusDisplayController','@univerjs/rpc','_backgroundColor','TOO_MANY_REQUESTS','_unitOnClients','propertyIsEnumerable','push','CollaborationUIEventService','UNRECOGNIZED','_handleJoinEvent','_syncEditingCollabCursorService','NOT_FOUND','idSuffix','NO_OTHER_CLIENTS_EDITING','INVITE_CODE_HAS_BEEN_UES'];_0x26e4=function(){return _0x5dff8c;};return _0x26e4();}const u=require(_0x5f11ba(0x21e)),a=require(_0x5f11ba(0x186)),p=require(_0x5f11ba(0x120)),G=require(_0x5f11ba(0x2dd)),E=require('@univerjs/docs-ui'),Ge=require(_0x5f11ba(0x10e)),d=require(_0x5f11ba(0xff)),m=require(_0x5f11ba(0x316)),Y=require(_0x5f11ba(0x2f0)),be=require(_0x5f11ba(0x2bb)),g=require('@univerjs/sheets'),$=require(_0x5f11ba(0x293)),X=require(_0x5f11ba(0x17f)),P=require(_0x5f11ba(0x30e)),O=require(_0x5f11ba(0x157)),D=require('@univerjs/design'),M=require('react'),Ke=require(_0x5f11ba(0x1b9));var qe=Object[_0x5f11ba(0x2f9)],ze=(_0x4b48fb,_0x10533d,_0xb6cbc5,_0x2a389b)=>{const _0x489cfe=_0x5f11ba;for(var _0x47bcd3=_0x2a389b>0x1?void 0x0:_0x2a389b?qe(_0x10533d,_0xb6cbc5):_0x10533d,_0x2cb457=_0x4b48fb[_0x489cfe(0x173)]-0x1,_0x4d360d;_0x2cb457>=0x0;_0x2cb457--)(_0x4d360d=_0x4b48fb[_0x2cb457])&&(_0x47bcd3=_0x4d360d(_0x47bcd3)||_0x47bcd3);return _0x47bcd3;},Oe=(_0xfdf9ee,_0x12f8e0)=>(_0x7d3f94,_0x5a8b51)=>_0x12f8e0(_0x7d3f94,_0x5a8b51,_0xfdf9ee);let de=class extends a[_0x5f11ba(0x164)]{constructor(_0x4dc978,_0x510849){const _0x4089ca=_0x5f11ba;super(),this['_docClipboardService']=_0x4dc978,this[_0x4089ca(0x2c2)]=_0x510849,this[_0x4089ca(0x242)]();}[_0x5f11ba(0x242)](){const _0x25ac3d=_0x5f11ba,_0x1fece7=this;this['disposeWithMe'](this[_0x25ac3d(0x252)][_0x25ac3d(0x148)]({'onBeforePasteImage':async _0x4e2abb=>{const _0x164df3=_0x25ac3d,_0x4a7111=await _0x1fece7[_0x164df3(0x2c2)][_0x164df3(0x26d)](_0x4e2abb);return _0x4a7111?{'source':_0x4a7111['source'],'imageSourceType':_0x4a7111[_0x164df3(0x249)]}:null;}}));}};de=ze([Oe(0x0,E[_0x5f11ba(0x339)]),Oe(0x1,Ge['IImageIoService'])],de);const Te=[_0x5f11ba(0x1cc),_0x5f11ba(0x295),_0x5f11ba(0xfa),_0x5f11ba(0x215),'blue.400','yellow.400'];class me extends a[_0x5f11ba(0x262)]{constructor(){const _0x4a30ef=_0x5f11ba;super(...arguments),h(this,_0x4a30ef(0x30f),new Map()),h(this,_0x4a30ef(0x16c),0x0);}[_0x5f11ba(0x333)](_0x341521){const _0xe6014d=_0x5f11ba;if(this[_0xe6014d(0x30f)][_0xe6014d(0x191)](_0x341521))return this[_0xe6014d(0x30f)][_0xe6014d(0x2db)](_0x341521);const _0x464c2e=Te[this['_colorIndex']];return this[_0xe6014d(0x16c)]=(this[_0xe6014d(0x16c)]+0x1)%Te['length'],this[_0xe6014d(0x30f)][_0xe6014d(0x286)](_0x341521,_0x464c2e),_0x464c2e;}}function Pe(_0x331d4b){let _0x36e8ee='';for(const _0x27345e of _0x331d4b){const {startOffset:_0x45cc4b,endOffset:_0x497d48,isActive:_0x4b27f5,rangeType:_0x5c4536,segmentId:_0x34b98f,segmentPage:_0x1e4f54}=_0x27345e;_0x36e8ee['length']&&(_0x36e8ee+=','),_0x36e8ee+=_0x45cc4b+':'+_0x497d48+':'+(_0x4b27f5?'1':'0')+':'+_0x5c4536+':'+_0x34b98f+':'+_0x1e4f54;}return _0x36e8ee;}function Je(_0x1d59dd){const _0x5bcb53=_0x5f11ba,_0x4a6de4=_0x1d59dd[_0x5bcb53(0x14a)](','),_0x3e3cc0=[];for(const _0x2f3f5e of _0x4a6de4){const [_0x4cb3eb,_0x2e1a1d,_0x49cbd7,_0x28b2a5,_0x4f67d9,_0x1c58ad]=_0x2f3f5e[_0x5bcb53(0x14a)](':');_0x3e3cc0[_0x5bcb53(0x1be)]({'startOffset':Number(_0x4cb3eb),'endOffset':Number(_0x2e1a1d),'collapsed':_0x4cb3eb===_0x2e1a1d,'isActive':_0x49cbd7==='1','rangeType':_0x28b2a5===a['DOC_RANGE_TYPE'][_0x5bcb53(0x2d4)]?a[_0x5bcb53(0x12a)][_0x5bcb53(0x2d4)]:a[_0x5bcb53(0x12a)][_0x5bcb53(0xcd)],'segmentId':typeof _0x4f67d9==_0x5bcb53(0x192)?String(_0x4f67d9):'','segmentPage':Number(_0x1c58ad!=null?_0x1c58ad:-0x1)});}return _0x3e3cc0['some'](_0x299e6a=>_0x299e6a[_0x5bcb53(0x17b)])||(_0x3e3cc0[0x0][_0x5bcb53(0x17b)]=!0x0),_0x3e3cc0;}class Ce extends a[_0x5f11ba(0x164)]{constructor(){const _0x4948d3=_0x5f11ba;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x4948d3(0xd9),this[_0x4948d3(0x20a)][_0x4948d3(0x2c0)]());}[_0x5f11ba(0x13f)](_0x37af7f){const _0xfde1c4=_0x5f11ba,{unitID:_0x3f52da,memberID:_0x4cd76b,textRanges:_0x10cdf1}=_0x37af7f,_0x3b43a7=Pe(_0x10cdf1);if(_0x3b43a7==='')return;const _0x4ea46d={'unitID':_0x3f52da,'memberID':_0x4cd76b,'selection':_0x3b43a7};this[_0xfde1c4(0x20a)][_0xfde1c4(0x2e3)](_0x4ea46d);}}function _0x32ae(_0x50965d,_0x2998b7){const _0x26e404=_0x26e4();return _0x32ae=function(_0x32ae86,_0x40cd81){_0x32ae86=_0x32ae86-0xcc;let _0x6c3714=_0x26e404[_0x32ae86];return _0x6c3714;},_0x32ae(_0x50965d,_0x2998b7);}var Ze=Object[_0x5f11ba(0x2f9)],Qe=(_0x3b9ccd,_0x2dffd1,_0xdcf507,_0x3f6ebf)=>{const _0x47db47=_0x5f11ba;for(var _0x482992=_0x3f6ebf>0x1?void 0x0:_0x3f6ebf?Ze(_0x2dffd1,_0xdcf507):_0x2dffd1,_0x248584=_0x3b9ccd[_0x47db47(0x173)]-0x1,_0x2cd453;_0x248584>=0x0;_0x248584--)(_0x2cd453=_0x3b9ccd[_0x248584])&&(_0x482992=_0x2cd453(_0x482992)||_0x482992);return _0x482992;},L=(_0x59ae9b,_0x28ffe2)=>(_0x51402d,_0x5c903f)=>_0x28ffe2(_0x51402d,_0x5c903f,_0x59ae9b);const et=0x12c,tt=0x64;let Ie=class extends a['RxDisposable']{constructor(_0x2f819f,_0x322439,_0xe2d01c,_0x238c09,_0x15a6f1,_0x2d1161,_0x4df073,_0x3f99fe,_0x494816){const _0x388abb=_0x5f11ba;super(),h(this,_0x388abb(0x147),!0x1),h(this,_0x388abb(0x242),!0x1),h(this,_0x388abb(0x13a),new d[(_0x388abb(0x1d3))](new Map())),h(this,_0x388abb(0x311),this['_cursorInfo$'][_0x388abb(0x2c0)]()),h(this,'_roomMembers$',new d[(_0x388abb(0x1d3))]([])),h(this,'roomMembers$',this[_0x388abb(0x15b)][_0x388abb(0x2ab)](d[_0x388abb(0x29f)](et))),h(this,'_updateLocalCursor',a[_0x388abb(0xd4)](_0x553b48=>{const _0x17b459=_0x388abb,_0x12f744={'eventID':m[_0x17b459(0x21d)][_0x17b459(0x158)],'data':{'unitID':this[_0x17b459(0x352)],'memberID':this[_0x17b459(0x266)][_0x17b459(0x141)](),'selection':Pe(_0x553b48)}};this[_0x17b459(0x266)][_0x17b459(0x1b1)](_0x12f744,this[_0x17b459(0x352)]);},tt)),(this[_0x388abb(0x352)]=_0x2f819f,this[_0x388abb(0x266)]=_0x322439,this[_0x388abb(0x206)]=_0xe2d01c,this[_0x388abb(0x244)]=_0x238c09,this[_0x388abb(0x1a4)]=_0x15a6f1,this[_0x388abb(0x1c2)]=_0x2d1161,this[_0x388abb(0x327)]=_0x4df073,this['_univerInstanceService']=_0x3f99fe,this[_0x388abb(0xe2)]=_0x494816);}get[_0x5f11ba(0x14e)](){const _0x393c75=_0x5f11ba;return this[_0x393c75(0x13a)]['getValue']();}get[_0x5f11ba(0xe8)](){const _0x332194=_0x5f11ba;return this['_roomMembers$'][_0x332194(0x196)]();}[_0x5f11ba(0xe7)](){const _0x371251=_0x5f11ba;super[_0x371251(0xe7)](),this['_cursorInfo$'][_0x371251(0x2e3)](new Map()),this[_0x371251(0x13a)][_0x371251(0x232)](),this[_0x371251(0x15b)][_0x371251(0x2e3)]([]),this[_0x371251(0x15b)][_0x371251(0x232)]();}['init'](){const _0x41e3e0=_0x5f11ba;this[_0x41e3e0(0x242)]||(this[_0x41e3e0(0x242)]=!0x0,this['_session'][_0x41e3e0(0x2ba)][_0x41e3e0(0x2ab)](d[_0x41e3e0(0x1ee)](this['dispose$']))[_0x41e3e0(0x135)](_0x142fa1=>{const _0x30292e=_0x41e3e0;_0x142fa1===u['SessionStatus'][_0x30292e(0x19b)]?this['_toggleOnline']():this[_0x30292e(0x184)]();}),this[_0x41e3e0(0x266)]['event$'][_0x41e3e0(0x2ab)](d['takeUntil'](this[_0x41e3e0(0x193)]))[_0x41e3e0(0x135)](_0x48b309=>{const _0x2a9f18=_0x41e3e0,_0x48377d=_0x48b309[_0x2a9f18(0xd2)];_0x48377d===m[_0x2a9f18(0x21d)]['UPDATE_CURSOR']&&this[_0x2a9f18(0x1ed)](_0x48b309),_0x48377d===m['CollaborationEvent'][_0x2a9f18(0xfe)]&&this[_0x2a9f18(0x17a)](_0x48b309);}),this[_0x41e3e0(0x100)](this[_0x41e3e0(0xe2)]['onCommandExecuted'](_0x4bcdf2=>{const _0x51e7f2=_0x41e3e0,_0x19c23c=_0x4bcdf2[_0x51e7f2(0xf8)];_0x19c23c!=null&&this['_online']&&_0x4bcdf2['id']===Y[_0x51e7f2(0x1ab)]['id']&&_0x19c23c[_0x51e7f2(0xd6)]===this['unitID']&&_0x19c23c['isEditing']===!0x1&&_0x19c23c[_0x51e7f2(0x15e)][_0x51e7f2(0x173)]>0x0&&this[_0x51e7f2(0x29a)](_0x19c23c[_0x51e7f2(0x15e)]);})),this[_0x41e3e0(0x1c2)][_0x41e3e0(0xd9)][_0x41e3e0(0x2ab)](d['takeUntil'](this[_0x41e3e0(0x193)]))[_0x41e3e0(0x135)](_0x447bc4=>{const _0xdb6146=_0x41e3e0;if((_0x447bc4==null?void 0x0:_0x447bc4[_0xdb6146(0x352)])!==this[_0xdb6146(0x352)])return;const _0x1e8aaa={'eventID':m['CollaborationEvent'][_0xdb6146(0x158)],'data':_0x447bc4};this[_0xdb6146(0x1ed)](_0x1e8aaa);}),this[_0x41e3e0(0x100)](this[_0x41e3e0(0xe2)][_0x41e3e0(0x2be)](_0x4b0b86=>{const _0x56e428=_0x41e3e0;if(_0x4b0b86['params']==null)return;const _0x1cc385=_0x4b0b86[_0x56e428(0xf8)];if(_0x4b0b86['id']!==Y[_0x56e428(0x2b7)]['id']||_0x1cc385['unitId']!==this[_0x56e428(0x352)])return;const _0x32ccda={'id':_0x56e428(0x306),'params':_0x1cc385},_0x2ad602=this['cursorInfo'];for(const [_0x4829eb,_0x4e2a95]of _0x2ad602){const _0xf133e1={'id':_0x56e428(0x306),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4e2a95[_0x56e428(0x15e)]}},_0x27a445=this['_transformService']['transformMutation'](_0x32ccda,_0xf133e1,!0x1);if(m[_0x56e428(0x2fc)](_0x27a445))throw _0x27a445[_0x56e428(0x110)];_0x2ad602[_0x56e428(0x286)](_0x4829eb,{..._0x4e2a95,'ranges':_0x27a445['m2Prime'][_0x56e428(0xf8)][_0x56e428(0x254)]});}queueMicrotask(()=>{const _0x2d2546=_0x56e428;this[_0x2d2546(0x13a)][_0x2d2546(0x2e3)](_0x2ad602);});})));}[_0x5f11ba(0x1ed)](_0x48c697){const _0x275104=_0x5f11ba;var _0x1c77e1,_0x5492c4;const {memberID:_0x526020,selection:_0x1363f9}=_0x48c697['data'],_0x13620e=Je(_0x1363f9),_0x4e58b9=(_0x5492c4=(_0x1c77e1=this[_0x275104(0x1a4)]['getMember'](this['unitID'],_0x526020))==null?void 0x0:_0x1c77e1[_0x275104(0x296)])!=null?_0x5492c4:_0x275104(0x2c7),_0xb55288={'color':this['_colorAssignService'][_0x275104(0x333)](_0x526020),'name':_0x4e58b9,'ranges':_0x13620e},_0x24a8fb=this[_0x275104(0x14e)];_0x24a8fb[_0x275104(0x286)](_0x526020,_0xb55288),this[_0x275104(0x13a)][_0x275104(0x2e3)](_0x24a8fb);}['_onCursorDelete'](_0x54f2cf){const _0x2d8c8b=_0x5f11ba,{memberID:_0x48e020}=_0x54f2cf['data'],_0x12cf64=this[_0x2d8c8b(0x14e)];_0x12cf64[_0x2d8c8b(0x25b)](_0x48e020),this[_0x2d8c8b(0x13a)][_0x2d8c8b(0x2e3)](_0x12cf64);}['_toggleOnline'](){const _0x3005a9=_0x5f11ba;var _0x1bafeb;if(this[_0x3005a9(0x147)]=!0x0,((_0x1bafeb=this[_0x3005a9(0x111)][_0x3005a9(0x2b5)]())==null?void 0x0:_0x1bafeb[_0x3005a9(0xf9)]())!==this[_0x3005a9(0x352)])return;const _0x3f1515=this['_injector']['get'](Y['DocSelectionManagerService'])[_0x3005a9(0xef)]();Array['isArray'](_0x3f1515)&&_0x3f1515[_0x3005a9(0x173)]>0x0&&this[_0x3005a9(0x29a)](_0x3f1515);}[_0x5f11ba(0x184)](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a['Inject'](a[_0x5f11ba(0x281)])),L(0x3,a['Inject'](me)),L(0x4,a['Inject'](u[_0x5f11ba(0x234)])),L(0x5,a[_0x5f11ba(0x116)](Ce)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x5f11ba(0x25f)])],Ie);var st=Object['getOwnPropertyDescriptor'],it=(_0x3f9c24,_0x57e102,_0x200635,_0x32d9dd)=>{for(var _0xda13cf=_0x32d9dd>0x1?void 0x0:_0x32d9dd?st(_0x57e102,_0x200635):_0x57e102,_0x3c328e=_0x3f9c24['length']-0x1,_0x2fe180;_0x3c328e>=0x0;_0x3c328e--)(_0x2fe180=_0x3f9c24[_0x3c328e])&&(_0xda13cf=_0x2fe180(_0xda13cf)||_0xda13cf);return _0xda13cf;},A=(_0x4b0905,_0x5e5bd4)=>(_0x3d861c,_0x17be59)=>_0x5e5bd4(_0x3d861c,_0x17be59,_0x4b0905);const nt=0x12c,rt=0x64,ot=()=>{let _0x267b2f=[],_0x42c595=!0x1;return _0x168818=>{const _0x24c31f=_0x32ae;_0x267b2f[_0x24c31f(0x1be)](_0x168818),_0x42c595||(_0x42c595=!0x0,setTimeout(()=>{_0x267b2f['forEach'](_0x31f7b6=>_0x31f7b6()),_0x267b2f=[],_0x42c595=!0x1;}));};};let Se=class extends a[_0x5f11ba(0x164)]{constructor(_0x1aac2a,_0x581c40,_0x49cacc,_0x5edbb8,_0xce0064,_0x53247f,_0x142e07,_0x143506){const _0x586902=_0x5f11ba;super(),h(this,_0x586902(0x147),!0x1),h(this,'_init',!0x1),h(this,_0x586902(0x13a),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x586902(0x2c0)]()),h(this,_0x586902(0x15b),new d[(_0x586902(0x1d3))]([])),h(this,_0x586902(0x14f),this['_roomMembers$'][_0x586902(0x2ab)](d['debounceTime'](nt))),h(this,_0x586902(0x29a),a[_0x586902(0xd4)]((_0x4ecbd1,_0x32a0fd)=>{const _0x13e7ab=_0x586902,_0x91e694={'eventID':m[_0x13e7ab(0x21d)][_0x13e7ab(0x158)],'data':{'unitID':this['unitID'],'memberID':this[_0x13e7ab(0x266)][_0x13e7ab(0x141)](),'selection':be[_0x13e7ab(0xd5)](_0x4ecbd1,_0x32a0fd[_0x13e7ab(0x155)])}};this['_session']['send'](_0x91e694,this[_0x13e7ab(0x352)]);},rt)),(this[_0x586902(0x352)]=_0x1aac2a,this[_0x586902(0x266)]=_0x581c40,this[_0x586902(0x206)]=_0x49cacc,this['_colorAssignService']=_0x5edbb8,this[_0x586902(0x1a4)]=_0xce0064,this[_0x586902(0x111)]=_0x53247f,this[_0x586902(0xe2)]=_0x142e07,this[_0x586902(0x1a3)]=_0x143506);}get[_0x5f11ba(0x14e)](){const _0x57e1a7=_0x5f11ba;return this[_0x57e1a7(0x13a)][_0x57e1a7(0x196)]();}get[_0x5f11ba(0xe8)](){const _0x39ed73=_0x5f11ba;return this[_0x39ed73(0x15b)][_0x39ed73(0x196)]();}[_0x5f11ba(0xe7)](){const _0x444b9c=_0x5f11ba;super[_0x444b9c(0xe7)](),this[_0x444b9c(0x13a)][_0x444b9c(0x2e3)](new Map()),this[_0x444b9c(0x13a)][_0x444b9c(0x232)](),this[_0x444b9c(0x15b)]['next']([]),this[_0x444b9c(0x15b)][_0x444b9c(0x232)]();}['init'](){const _0x54d061=_0x5f11ba;this[_0x54d061(0x242)]||(this['_init']=!0x0,this['_session'][_0x54d061(0x2ba)]['pipe'](d[_0x54d061(0x1ee)](this[_0x54d061(0x193)]))[_0x54d061(0x135)](_0x48ff35=>{const _0x20995f=_0x54d061;_0x48ff35===u[_0x20995f(0x1aa)][_0x20995f(0x19b)]?this[_0x20995f(0x342)]():this['_toggleOffline']();}),this[_0x54d061(0x266)][_0x54d061(0x207)][_0x54d061(0x2ab)](d['takeUntil'](this[_0x54d061(0x193)]))[_0x54d061(0x135)](_0x4d7ae5=>{const _0x41b60e=_0x54d061,_0x526e95=_0x4d7ae5[_0x41b60e(0xd2)];_0x526e95===m[_0x41b60e(0x21d)][_0x41b60e(0x158)]&&this['_onCursorUpdate'](_0x4d7ae5),_0x526e95===m['CollaborationEvent'][_0x41b60e(0xfe)]&&this[_0x41b60e(0x17a)](_0x4d7ae5);}),this[_0x54d061(0x1e3)](),this[_0x54d061(0x100)](this[_0x54d061(0xe2)][_0x54d061(0x2be)](_0x19e22e=>{const _0x47274f=_0x54d061;if(this['_online']&&_0x19e22e['id']===g[_0x47274f(0x113)]['id']&&_0x19e22e[_0x47274f(0xf8)][_0x47274f(0xd6)]===this[_0x47274f(0x352)]){const _0x311c03=_0x19e22e[_0x47274f(0xf8)];this[_0x47274f(0x29a)](_0x311c03[_0x47274f(0x160)],_0x311c03[_0x47274f(0x1f1)][0x0]);}})));}[_0x5f11ba(0x1ed)](_0x5b146b){const _0x538059=_0x5f11ba;var _0xe40dbe,_0x41c1c4;const {memberID:_0x14f0f8,selection:_0x582ea6}=_0x5b146b['data'],{sheetName:_0x55c81e,range:_0x20e8de}=be['deserializeRangeWithSheet'](_0x582ea6),_0x289667={'name':(_0x41c1c4=(_0xe40dbe=this[_0x538059(0x1a4)][_0x538059(0x151)](this[_0x538059(0x352)],_0x14f0f8))==null?void 0x0:_0xe40dbe['name'])!=null?_0x41c1c4:_0x538059(0x2c7),'range':this[_0x538059(0x197)](_0x55c81e,_0x20e8de),'sheetID':_0x55c81e,'color':this[_0x538059(0x244)][_0x538059(0x333)](_0x14f0f8),'selection':_0x582ea6},_0x84f4c1=this[_0x538059(0x14e)];_0x84f4c1[_0x538059(0x286)](_0x14f0f8,_0x289667),this['_cursorInfo$']['next'](_0x84f4c1);}[_0x5f11ba(0x17a)](_0x5b5d35){const _0x355d24=_0x5f11ba,{memberID:_0xce02f2}=_0x5b5d35['data'],_0x285115=this[_0x355d24(0x14e)];_0x285115[_0x355d24(0x25b)](_0xce02f2),this[_0x355d24(0x13a)][_0x355d24(0x2e3)](_0x285115);}['_getMergeRange'](_0x1339e7,_0x5e4f76){const _0x5678e0=_0x5f11ba;var _0x2bf98b,_0x56af05;const _0x556252=(_0x56af05=(_0x2bf98b=this[_0x5678e0(0x111)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x2bf98b[_0x5678e0(0x1d4)](_0x1339e7))==null?void 0x0:_0x56af05['getMergeData']();return(_0x556252==null?void 0x0:_0x556252[_0x5678e0(0x149)](_0x536fc2=>a[_0x5678e0(0x22a)][_0x5678e0(0x1ef)](_0x536fc2,_0x5e4f76)))||_0x5e4f76;}[_0x5f11ba(0x1e3)](){const _0x39e1ab=_0x5f11ba,_0x3339d5=new a['DisposableCollection'](),_0x25d895=ot(),_0x40af55=()=>{const _0x1c0035=_0x32ae;_0x3339d5[_0x1c0035(0xe7)]();const _0x9832ac=(_0x5620a9,_0x567c52,_0x1e6270,_0x48ff46)=>{const _0x54c529=_0x1c0035;let _0x4216ac=[];switch(_0x5620a9['id']){case g[_0x54c529(0x1fb)][_0x54c529(0x170)]:{_0x4216ac=g[_0x54c529(0x1e1)](_0x5620a9,_0x48ff46);break;}case g[_0x54c529(0x1fb)]['DeleteRangeMoveUpCommandId']:{_0x4216ac=g['handleDeleteRangeMoveUp'](_0x5620a9,_0x48ff46);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x4216ac=g['handleInsertCol'](_0x5620a9,_0x48ff46);break;}case g[_0x54c529(0x1fb)][_0x54c529(0x341)]:{_0x4216ac=g[_0x54c529(0xde)](_0x5620a9,_0x48ff46);break;}case g[_0x54c529(0x1fb)]['InsertRangeMoveRightCommandId']:{_0x4216ac=g[_0x54c529(0x15d)](_0x5620a9,_0x48ff46);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x4216ac=g[_0x54c529(0x2e4)](_0x5620a9,_0x48ff46);break;}case g[_0x54c529(0x1fb)][_0x54c529(0x1e5)]:{_0x4216ac=g[_0x54c529(0x272)](_0x5620a9,_0x48ff46);break;}case g['EffectRefRangId'][_0x54c529(0x230)]:{_0x4216ac=g[_0x54c529(0x2a8)](_0x5620a9,_0x48ff46);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x4216ac=g[_0x54c529(0x123)](_0x5620a9,_0x48ff46);break;}}const _0x1ed5e5=g[_0x54c529(0x257)](_0x4216ac,_0x48ff46),_0x12f7e9=this[_0x54c529(0x14e)]['get'](_0x567c52);if(_0x12f7e9&&_0x1ed5e5){const _0x5d9b49={..._0x12f7e9,'range':_0x1ed5e5};this['cursorInfo'][_0x54c529(0x286)](_0x567c52,_0x5d9b49),_0x25d895(()=>{const _0xad4815=_0x54c529,_0x24ae62=this[_0xad4815(0x1a3)][_0xad4815(0x2ff)](_0x1ed5e5,_0x153fb2=>(_0x24ae62[_0xad4815(0xe7)](),_0x9832ac(_0x153fb2,_0x567c52,_0x1e6270,_0x1ed5e5)));_0x3339d5['add'](_0x24ae62);});}return{'redos':[],'undos':[]};};this[_0x1c0035(0x14e)][_0x1c0035(0x307)]((_0x379eef,_0x2dc523)=>{const _0x4c17c5=_0x1c0035,{range:_0x237eac,sheetID:_0xfb747d}=_0x379eef,_0x39400b=this[_0x4c17c5(0x1a3)][_0x4c17c5(0x2ff)](_0x237eac,_0x55281e=>(_0x39400b['dispose'](),_0x9832ac(_0x55281e,_0x2dc523,_0xfb747d,_0x237eac)));_0x3339d5[_0x4c17c5(0x284)](_0x39400b);});};this[_0x39e1ab(0x100)](a['toDisposable'](this[_0x39e1ab(0x13a)][_0x39e1ab(0x135)](()=>{_0x40af55();})));}[_0x5f11ba(0x342)](){const _0x15296a=_0x5f11ba;var _0x5160d8,_0x114416;if(this['_online']=!0x0,((_0x5160d8=this[_0x15296a(0x111)][_0x15296a(0x2b5)]())==null?void 0x0:_0x5160d8[_0x15296a(0xf9)]())!==this[_0x15296a(0x352)])return;const _0xfb41a3=(_0x114416=this[_0x15296a(0x206)][_0x15296a(0x2db)](g[_0x15296a(0x1d1)])[_0x15296a(0x29b)]())==null?void 0x0:_0x114416[0x0],_0x3f038f=this[_0x15296a(0x111)][_0x15296a(0x16f)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x15296a(0x240)]();_0xfb41a3&&_0x3f038f&&this[_0x15296a(0x29a)](_0x3f038f[_0x15296a(0x322)](),_0xfb41a3);}[_0x5f11ba(0x184)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x281)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x5f11ba(0x116)](u['MemberService'])),A(0x5,a[_0x5f11ba(0x1e8)]),A(0x6,a[_0x5f11ba(0x25f)]),A(0x7,a[_0x5f11ba(0x116)](g['RefRangeService']))],Se);var at=Object[_0x5f11ba(0x2f9)],ct=(_0x32a954,_0x3bdf1b,_0x4dc910,_0x25af9e)=>{const _0x52a59c=_0x5f11ba;for(var _0x48093b=_0x25af9e>0x1?void 0x0:_0x25af9e?at(_0x3bdf1b,_0x4dc910):_0x3bdf1b,_0x107bc1=_0x32a954[_0x52a59c(0x173)]-0x1,_0x5cbe7a;_0x107bc1>=0x0;_0x107bc1--)(_0x5cbe7a=_0x32a954[_0x107bc1])&&(_0x48093b=_0x5cbe7a(_0x48093b)||_0x48093b);return _0x48093b;},ie=(_0x29dc8e,_0x3dc9ef)=>(_0x32d176,_0x3dd66a)=>_0x3dc9ef(_0x32d176,_0x3dd66a,_0x29dc8e);let x=class extends a[_0x5f11ba(0x164)]{constructor(_0x1b02b5,_0x3dde4a,_0x1f1ec9){const _0x3fc3a4=_0x5f11ba;super(),h(this,_0x3fc3a4(0x360),new Map()),h(this,'_entityInit$',new d[(_0x3fc3a4(0x350))]()),(this[_0x3fc3a4(0x111)]=_0x1b02b5,this[_0x3fc3a4(0x206)]=_0x3dde4a,this[_0x3fc3a4(0x144)]=_0x1f1ec9,this['_init']());}[_0x5f11ba(0xe7)](){const _0x5bfccb=_0x5f11ba;super['dispose'](),this[_0x5bfccb(0x239)][_0x5bfccb(0x232)](),this[_0x5bfccb(0x360)][_0x5bfccb(0x307)](_0x4c81e4=>_0x4c81e4['dispose']());}['getCollabCursors$'](_0x48e4d9){const _0x3c5e2b=_0x5f11ba;return this[_0x3c5e2b(0x360)]['has'](_0x48e4d9)?this[_0x3c5e2b(0x360)][_0x3c5e2b(0x2db)](_0x48e4d9)[_0x3c5e2b(0x311)]:this['_entityInit$'][_0x3c5e2b(0x2ab)](d[_0x3c5e2b(0x34d)](_0xe6ca3a=>_0xe6ca3a[_0x3c5e2b(0x352)]===_0x48e4d9),d[_0x3c5e2b(0x21f)](_0x10bcb0=>_0x10bcb0['cursorInfo$']));}[_0x5f11ba(0x242)](){const _0x574238=_0x5f11ba;this[_0x574238(0x111)][_0x574238(0x169)](a[_0x574238(0x35c)][_0x574238(0x1c8)])[_0x574238(0x2ab)](d['takeUntil'](this[_0x574238(0x193)]))[_0x574238(0x135)](async _0x28ebbb=>{const _0x5ebc57=_0x574238,_0x2628ac=_0x28ebbb[_0x5ebc57(0xf9)](),_0x24bc16=await this[_0x5ebc57(0x23b)](_0x2628ac);this[_0x5ebc57(0x239)][_0x5ebc57(0x2e3)](_0x24bc16),this['_entities']['set'](_0x2628ac,_0x24bc16);}),this[_0x574238(0x111)][_0x574238(0x169)](a[_0x574238(0x35c)][_0x574238(0x32e)])[_0x574238(0x2ab)](d[_0x574238(0x1ee)](this['dispose$']))[_0x574238(0x2ab)](d[_0x574238(0x34d)](_0x678e22=>!_0x678e22[_0x574238(0xf9)]()['startsWith']('__')))['subscribe'](async _0x54b9bd=>{const _0x52fda2=_0x574238,_0x1aeb2e=_0x54b9bd[_0x52fda2(0xf9)](),_0x17fe86=await this[_0x52fda2(0x2e1)](_0x1aeb2e);this['_entityInit$'][_0x52fda2(0x2e3)](_0x17fe86),this[_0x52fda2(0x360)]['set'](_0x1aeb2e,_0x17fe86);}),d[_0x574238(0x2a5)](this['_univerInstanceService'][_0x574238(0x1f0)](a[_0x574238(0x35c)][_0x574238(0x32e)]),this[_0x574238(0x111)][_0x574238(0x1f0)](a['UniverInstanceType'][_0x574238(0x1c8)]))[_0x574238(0x2ab)](d['takeUntil'](this[_0x574238(0x193)]))[_0x574238(0x135)](_0x31f476=>{const _0x21e3f1=_0x574238,_0x4cad4a=_0x31f476[_0x21e3f1(0xf9)](),_0x5020e2=this[_0x21e3f1(0x360)][_0x21e3f1(0x2db)](_0x4cad4a);_0x5020e2&&(_0x5020e2[_0x21e3f1(0xe7)](),this[_0x21e3f1(0x360)][_0x21e3f1(0x25b)](_0x4cad4a));});}async[_0x5f11ba(0x23b)](_0x352515){const _0x5d9b8d=_0x5f11ba,_0x1a6a8c=await this['_collabSessionService'][_0x5d9b8d(0x263)](_0x352515),_0x447cab=this['_injector'][_0x5d9b8d(0x303)](Se,_0x352515,_0x1a6a8c);return _0x447cab['init'](),_0x447cab;}async[_0x5f11ba(0x2e1)](_0x260886){const _0x11c61e=_0x5f11ba,_0x1be0cc=await this[_0x11c61e(0x144)][_0x11c61e(0x263)](_0x260886),_0x44c811=this['_injector'][_0x11c61e(0x303)](Ie,_0x260886,_0x1be0cc);return _0x44c811[_0x11c61e(0x2b1)](),_0x44c811;}};x=ct([ie(0x0,a[_0x5f11ba(0x1e8)]),ie(0x1,a['Inject'](a[_0x5f11ba(0x281)])),ie(0x2,a[_0x5f11ba(0x116)](u[_0x5f11ba(0x21c)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4b5c78,_0x5f1cc5){const _0x47c475=_0x5f11ba;let {radius:_0x53dc6f,width:_0x366921,height:_0x3960ba}=_0x5f1cc5;_0x53dc6f=_0x53dc6f!=null?_0x53dc6f:0x0,_0x366921=_0x366921!=null?_0x366921:0x1e,_0x3960ba=_0x3960ba!=null?_0x3960ba:0x1e;let _0x22fa8b=0x0,_0x2a1622=0x0,_0x2ab23d=0x0;_0x22fa8b=_0x2a1622=_0x2ab23d=Math[_0x47c475(0x31f)](_0x53dc6f,_0x366921/0x2,_0x3960ba/0x2),_0x4b5c78[_0x47c475(0x2fe)](),_0x4b5c78['moveTo'](_0x22fa8b,0x0),_0x4b5c78[_0x47c475(0x20d)](_0x366921-_0x2a1622,0x0),_0x4b5c78['arc'](_0x366921-_0x2a1622,_0x2a1622,_0x2a1622,Math['PI']*0x3/0x2,0x0,!0x1),_0x4b5c78[_0x47c475(0x20d)](_0x366921,_0x3960ba-_0x2ab23d),_0x4b5c78[_0x47c475(0x31b)](_0x366921-_0x2ab23d,_0x3960ba-_0x2ab23d,_0x2ab23d,0x0,Math['PI']/0x2,!0x1),_0x4b5c78[_0x47c475(0x20d)](0x0,_0x3960ba),_0x4b5c78[_0x47c475(0x20d)](0x0,_0x22fa8b),_0x4b5c78[_0x47c475(0x31b)](_0x22fa8b,_0x22fa8b,_0x22fa8b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4b5c78[_0x47c475(0x1ac)](),_0x5f1cc5[_0x47c475(0x1a2)]&&(_0x4b5c78[_0x47c475(0x211)](),_0x4b5c78['fillStyle']=_0x5f1cc5[_0x47c475(0x1a2)],_0x5f1cc5[_0x47c475(0x25a)]===_0x47c475(0x2ae)?_0x4b5c78[_0x47c475(0x1a2)](_0x47c475(0x2ae)):_0x4b5c78[_0x47c475(0x1a2)](),_0x4b5c78[_0x47c475(0x24c)]());}class ee extends p[_0x5f11ba(0x1dc)]{constructor(_0x4f033d,_0x1310bf){const _0x35643e=_0x5f11ba;super(_0x4f033d,_0x1310bf),h(this,'color'),h(this,_0x35643e(0x35a)),(this['color']=_0x1310bf==null?void 0x0:_0x1310bf[_0x35643e(0x2de)],this[_0x35643e(0x35a)]=_0x1310bf==null?void 0x0:_0x1310bf[_0x35643e(0x35a)]);}static[_0x5f11ba(0x330)](_0x4216c5,_0x2ed884){const _0x349aae=_0x5f11ba,{text:_0x52b390,color:_0xb583a2}=_0x2ed884;_0x4216c5[_0x349aae(0x211)](),_0x4216c5[_0x349aae(0x276)]=_0x349aae(0x347);const _0x3364e6=_0x4216c5[_0x349aae(0x256)](_0x52b390)['width'],_0x5b7300=Math[_0x349aae(0x31f)](_0x3364e6+0x2*ne,Re);_t(_0x4216c5,{'height':K,'radius':0x4,'width':_0x5b7300,'fill':_0xb583a2}),_0x4216c5[_0x349aae(0xf6)]=_0x349aae(0x187);const _0x5bb562=ne,_0x25f56c=K-lt,_0x524436=Re-0x2*ne;if(_0x3364e6>_0x524436){let _0x5a2c23='',_0xfdf852=0x0;for(const _0x300102 of _0x52b390){const _0xd08f44=_0x4216c5[_0x349aae(0x256)](_0x300102)[_0x349aae(0xda)];if(_0xfdf852+_0xd08f44<=_0x524436-_0x4216c5['measureText'](_0x349aae(0x219))['width'])_0x5a2c23+=_0x300102,_0xfdf852+=_0xd08f44;else{_0x5a2c23+='...';break;}}_0x4216c5[_0x349aae(0x290)](_0x5a2c23,_0x5bb562,_0x25f56c);}else _0x4216c5['fillText'](_0x52b390,_0x5bb562,_0x25f56c);_0x4216c5[_0x349aae(0x24c)]();}[_0x5f11ba(0x231)](_0x351755){ee['drawWith'](_0x351755,this);}}const re=_0x5f11ba(0x1a8),ht=_0x5f11ba(0x200),ut=_0x5f11ba(0x2f6),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x5f11ba(0x1b5);class De{constructor(_0x232af5,_0x41f1c2,_0x139b8d,_0xa6e931){const _0x3e4625=_0x5f11ba;h(this,_0x3e4625(0x348),[]),h(this,_0x3e4625(0x2fb),null),h(this,_0x3e4625(0x154),null),h(this,_0x3e4625(0x2e2),null),h(this,_0x3e4625(0x320),null),h(this,_0x3e4625(0x16a),null),(this[_0x3e4625(0x1b2)]=_0x232af5,this[_0x3e4625(0x255)]=_0x41f1c2,this[_0x3e4625(0x112)]=_0x139b8d,this[_0x3e4625(0xd7)]=_0xa6e931,this[_0x3e4625(0x30a)]());}set[_0x5f11ba(0x2f7)](_0x200379){const _0x184f14=_0x5f11ba;_0x200379?(this['_anchorDot']&&this[_0x184f14(0x2e2)][_0x184f14(0x13d)](),this[_0x184f14(0x154)]&&this[_0x184f14(0x154)][_0x184f14(0x12b)]()):(this[_0x184f14(0x2e2)]&&this[_0x184f14(0x2e2)]['show'](),this[_0x184f14(0x154)]&&this[_0x184f14(0x154)][_0x184f14(0x13d)]());}['dispose'](){const _0x337060=_0x5f11ba;for(const _0x3658de of this[_0x337060(0x348)])_0x3658de[_0x337060(0xe7)]();this[_0x337060(0x154)]&&this['_textBubble'][_0x337060(0xe7)](),this[_0x337060(0x2e2)]&&this[_0x337060(0x2e2)][_0x337060(0xe7)](),this[_0x337060(0x2fb)]&&this[_0x337060(0x2fb)][_0x337060(0xe7)](),this[_0x337060(0x16a)]&&this['_eventUnsubscribe']();}['_render'](){const _0x219584=_0x5f11ba;var _0x38ce25;const {_docSkeleton:_0x1407e2,_document:_0x2e8621}=this,{color:_0x41b2eb,name:_0xcf1937,ranges:_0x4db314}=this['_cursor'],_0x194ec6=_0x2e8621[_0x219584(0x32d)](),{docsLeft:_0x498c69,docsTop:_0x56f2cf}=_0x194ec6,_0x3f7025=new E[(_0x219584(0xe9))](_0x194ec6,_0x1407e2);for(const {startOffset:_0x1f6925,endOffset:_0x53d17c,rangeType:_0x5054c6,segmentId:_0x1e2f6b,segmentPage:_0x120524,collapsed:_0x46a774,isActive:_0x294f7d}of _0x4db314){const _0x460e6b=_0x1407e2['findNodePositionByCharIndex'](_0x1f6925,!0x0,_0x1e2f6b,_0x120524);let _0x10a1a5=_0x1407e2[_0x219584(0x2a2)](_0x53d17c,!0x0,_0x1e2f6b,_0x120524);if(_0x10a1a5==null&&(_0x10a1a5=_0x1407e2['findNodePositionByCharIndex'](_0x53d17c-0x1,!0x1,_0x1e2f6b,_0x120524)),_0x294f7d){const {contentBoxPointGroup:_0x4152d4}=_0x3f7025[_0x219584(0x16e)](_0x10a1a5,_0x10a1a5);if(_0x4152d4['length']===0x0)continue;this['_drawAnchor'](_0x41b2eb,_0x4152d4,_0x498c69,_0x56f2cf,_0xcf1937),this['_eventUnsubscribe']=this[_0x219584(0x258)]();}if(_0x460e6b&&_0x10a1a5){if(_0x5054c6===a[_0x219584(0x12a)][_0x219584(0xcd)]){const _0x5a575f=new E[(_0x219584(0x26c))](_0x194ec6,_0x1407e2),{pointGroup:_0x196caa}=(_0x38ce25=_0x5a575f[_0x219584(0x16e)](_0x460e6b,_0x10a1a5))!=null?_0x38ce25:{};if(_0x196caa==null||_0x196caa[_0x219584(0x173)]===0x0)continue;this['_drawRectRange'](_0x41b2eb,_0x196caa,_0x498c69,_0x56f2cf);}else{if(!_0x46a774){const {borderBoxPointGroup:_0x41f93f}=_0x3f7025[_0x219584(0x16e)](_0x460e6b,_0x10a1a5);if(_0x41f93f[_0x219584(0x173)]===0x0)continue;this[_0x219584(0x2a9)](_0x41b2eb,_0x41f93f,_0x498c69,_0x56f2cf);}}}}}[_0x5f11ba(0xce)](_0x591064,_0x558771,_0xc7fd6e,_0x5e9fab,_0x3fd14f){const _0x4fcac6=_0x5f11ba,_0xc1dfbf=this['_getAnchorBounding'](_0x558771),{left:_0x52ff11,top:_0x26dddd,height:_0x3a73d0}=_0xc1dfbf,_0x5e1c6e=this['_getScale'](),_0x186c9e=It/_0x5e1c6e,_0x2de139=new p[(_0x4fcac6(0x2eb))](re+a[_0x4fcac6(0x2a0)]['generateRandomId'](k),{'left':_0x52ff11+_0xc7fd6e-_0x186c9e,'top':_0x26dddd+_0x5e9fab,'height':_0x3a73d0,'width':dt,'fill':_0x591064||p[_0x4fcac6(0x2e9)](a[_0x4fcac6(0x115)][_0x4fcac6(0x317)],0x0),'strokeWidth':_0x186c9e,'stroke':St,'evented':!0x0});this[_0x4fcac6(0x2fb)]=_0x2de139,this[_0x4fcac6(0x255)][_0x4fcac6(0x278)](_0x2de139,E[_0x4fcac6(0x35f)]);const _0x3b4c2c=new p[(_0x4fcac6(0x2eb))](re+a['Tools'][_0x4fcac6(0x29d)](k),{'left':_0x52ff11+_0xc7fd6e-_0x186c9e,'top':_0x26dddd+_0x5e9fab-oe/0x2,'height':oe,'width':oe,'fill':_0x591064||p[_0x4fcac6(0x2e9)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x591064||p['getColor'](a[_0x4fcac6(0x115)][_0x4fcac6(0x317)],0x0),'evented':!0x1});this['_anchorDot']=_0x3b4c2c,this['_scene'][_0x4fcac6(0x278)](_0x3b4c2c,E[_0x4fcac6(0x35f)]);const _0x1ee493=new ee(re+a[_0x4fcac6(0x2a0)]['generateRandomId'](k),{'left':_0x52ff11+_0xc7fd6e-_0x186c9e,'top':_0x26dddd+_0x5e9fab-K,'text':_0x3fd14f,'color':_0x591064});this['_textBubble']=_0x1ee493,this['_scene'][_0x4fcac6(0x278)](_0x1ee493,E[_0x4fcac6(0x35f)]),this[_0x4fcac6(0x2f7)]=!0x1;}[_0x5f11ba(0x258)](){const _0x2934af=_0x5f11ba,_0x4ce50a=this['_anchor']['onPointerEnter$'][_0x2934af(0x101)](()=>{this['_hover']=!0x0;}),_0x4e80b3=this[_0x2934af(0x2fb)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x13e14b=_0x2934af;this[_0x13e14b(0x320)]&&clearTimeout(this['_hideTimer']),this[_0x13e14b(0x320)]=setTimeout(()=>{const _0x58aa14=_0x13e14b;this[_0x58aa14(0x2f7)]=!0x1;},0x7d0);});return()=>{const _0x4ecbc7=_0x2934af;_0x4ce50a[_0x4ecbc7(0x19f)](),_0x4e80b3[_0x4ecbc7(0x19f)]();};}[_0x5f11ba(0x2a9)](_0x2edc08,_0x29e87b,_0x2e7717,_0xf2bf59){const _0x20ae20=_0x5f11ba,_0x129d01=new a[(_0x20ae20(0x2ee))](_0x2edc08)[_0x20ae20(0x2cd)](0.2)[_0x20ae20(0x217)](),_0x5432b9=new p['RegularPolygon'](ht+a[_0x20ae20(0x2a0)]['generateRandomId'](k),{'pointsGroup':_0x29e87b,'fill':_0x129d01||p['getColor'](a[_0x20ae20(0x115)][_0x20ae20(0x317)],0.2),'left':_0x2e7717,'top':_0xf2bf59,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x5432b9),this[_0x20ae20(0x255)][_0x20ae20(0x278)](_0x5432b9,E[_0x20ae20(0x35f)]);}[_0x5f11ba(0x31a)](_0x1b08a4,_0xccadc4,_0x288b1a,_0x296a60){const _0x351aa8=_0x5f11ba,_0x25ff73=new a['ColorKit'](_0x1b08a4)[_0x351aa8(0x2cd)](0.2)[_0x351aa8(0x217)](),_0x30ac93=new p[(_0x351aa8(0x246))](ut+a[_0x351aa8(0x2a0)][_0x351aa8(0x29d)](k),{'pointsGroup':_0xccadc4,'fill':_0x25ff73||p[_0x351aa8(0x2e9)](a[_0x351aa8(0x115)][_0x351aa8(0x317)],0.2),'left':_0x288b1a,'top':_0x296a60,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x351aa8(0x348)][_0x351aa8(0x1be)](_0x30ac93),this[_0x351aa8(0x255)][_0x351aa8(0x278)](_0x30ac93,E[_0x351aa8(0x35f)]);}[_0x5f11ba(0x267)](_0x35d561){const _0x1caccf=_0x35d561[0x0],_0xe9f034=_0x1caccf[0x0],_0x20dec9=_0x1caccf[0x2],{x:_0x2dfe27,y:_0x383659}=_0xe9f034,{x:_0x2fe993,y:_0xdd520d}=_0x20dec9;return{'left':_0x2dfe27,'top':_0x383659,'width':_0x2fe993-_0x2dfe27,'height':_0xdd520d-_0x383659};}[_0x5f11ba(0x31d)](){const _0x597f58=_0x5f11ba,{scaleX:_0x41accf,scaleY:_0x35265a}=this['_scene'][_0x597f58(0x355)]();return Math['max'](_0x41accf,_0x35265a);}}var ft=Object[_0x5f11ba(0x2f9)],vt=(_0x1245ac,_0x12b914,_0xef0558,_0x2a043e)=>{const _0xe48b17=_0x5f11ba;for(var _0x54d13a=_0x2a043e>0x1?void 0x0:_0x2a043e?ft(_0x12b914,_0xef0558):_0x12b914,_0x583c8b=_0x1245ac[_0xe48b17(0x173)]-0x1,_0x249569;_0x583c8b>=0x0;_0x583c8b--)(_0x249569=_0x1245ac[_0x583c8b])&&(_0x54d13a=_0x249569(_0x54d13a)||_0x54d13a);return _0x54d13a;},W=(_0x1b5115,_0x8446e4)=>(_0xe9a41a,_0x526320)=>_0x8446e4(_0xe9a41a,_0x526320,_0x1b5115);let fe=class extends a[_0x5f11ba(0x164)]{constructor(_0x48db26,_0x44bb9d,_0x39e2df,_0x599339,_0xc3024e){const _0x5af3b2=_0x5f11ba;super(),h(this,_0x5af3b2(0x121),[]),h(this,_0x5af3b2(0x15c),[]),(this[_0x5af3b2(0x2ed)]=_0x48db26,this[_0x5af3b2(0x28b)]=_0x44bb9d,this[_0x5af3b2(0x18c)]=_0x39e2df,this['_commandService']=_0x599339,this[_0x5af3b2(0x335)]=_0xc3024e,this[_0x5af3b2(0x242)]());}['_init'](){const _0x37ac3d=_0x5f11ba,_0xd10231=this['_context']['unitId'],_0x23d477=this[_0x37ac3d(0x28b)];this['disposeWithMe'](d[_0x37ac3d(0x2da)]([this[_0x37ac3d(0x18c)]['getCollabCursors$'](_0xd10231),this[_0x37ac3d(0x335)][_0x37ac3d(0x23f)]])[_0x37ac3d(0x2ab)]($[_0x37ac3d(0x14c)](([_0x50d4c4,_0x5d9119])=>({'skeleton':_0x23d477['getSkeleton'](),'cursors':[..._0x50d4c4['values']()][_0x37ac3d(0x199)](_0x328363=>({..._0x328363,'color':this['_themeService']['getColorFromTheme'](_0x328363['color'])}))})))[_0x37ac3d(0x135)](_0x353c4c=>{const _0x291448=_0x37ac3d;if(this['_removeCollabCursors'](),_0x353c4c){const {skeleton:_0x24c95a,cursors:_0x89e994}=_0x353c4c;this[_0x291448(0x271)](_0x24c95a,_0x89e994);}})),this[_0x37ac3d(0x1e7)](),this[_0x37ac3d(0x183)]();}[_0x5f11ba(0x271)](_0x56dfb6,_0x1ab0c2){const _0x4f9673=_0x5f11ba,{scene:_0x2e3786,mainComponent:_0x5b7f5f}=this['_context'],_0x4be2f7=_0x1ab0c2['map'](_0x4d10e6=>new De(_0x4d10e6,_0x2e3786,_0x56dfb6,_0x5b7f5f));this[_0x4f9673(0x121)]=_0x4be2f7,this[_0x4f9673(0x15c)]=_0x1ab0c2;}[_0x5f11ba(0x2a3)](){const _0x522a13=_0x5f11ba;this['_removeCollabCursors']();const {scene:_0x3358f3,mainComponent:_0xc96a1a}=this[_0x522a13(0x2ed)],_0x2b9723=this[_0x522a13(0x28b)][_0x522a13(0x2fa)](),_0xd15d45=this[_0x522a13(0x15c)][_0x522a13(0x14c)](_0x106f72=>new De(_0x106f72,_0x3358f3,_0x2b9723,_0xc96a1a));this[_0x522a13(0x121)]=_0xd15d45;}['_removeCollabCursors'](){const _0x5538d6=_0x5f11ba;this['_cursorShapes'][_0x5538d6(0x307)](_0x45eb86=>_0x45eb86[_0x5538d6(0xe7)]()),this['_cursorShapes']=[];}[_0x5f11ba(0x183)](){const _0x733083=_0x5f11ba,_0x1d7d4b=[E['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x733083(0x2be)](_0x4dab30=>{const _0x52f154=_0x733083;_0x1d7d4b[_0x52f154(0x228)](_0x4dab30['id'])&&_0x4dab30[_0x52f154(0xf8)][_0x52f154(0xd6)]===this[_0x52f154(0x2ed)]['unitId']&&this[_0x52f154(0x2a3)]();}));}[_0x5f11ba(0x1e7)](){const _0x15fc61=_0x5f11ba;this[_0x15fc61(0x100)](a[_0x15fc61(0xed)](this['_context']['engine']['onTransformChange$'])[_0x15fc61(0x2ab)]($[_0x15fc61(0x34d)](_0x4867df=>_0x4867df[_0x15fc61(0x23c)]===p[_0x15fc61(0x2f1)]['resize']),$[_0x15fc61(0xf7)](0x10))['subscribe'](()=>{const _0x15d70a=_0x15fc61;this[_0x15d70a(0x2a3)]();}));}};fe=vt([W(0x1,a['Inject'](Y['DocSkeletonManagerService'])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x26a)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x3b0843,_0x3025d0){const _0x464fa0=_0x5f11ba;super(_0x3b0843,_0x3025d0),h(this,_0x464fa0(0x233)),h(this,'_hovered',!0x1),h(this,_0x464fa0(0x32c)),h(this,_0x464fa0(0x1ea),''),h(this,_0x464fa0(0x178),_0x464fa0(0x208)),h(this,_0x464fa0(0x1ba)),(_0x3025d0&&this[_0x464fa0(0x1ce)](_0x3025d0),this[_0x464fa0(0xeb)][_0x464fa0(0x101)](()=>this[_0x464fa0(0x1ce)]({'hovered':!0x0})),this[_0x464fa0(0x109)][_0x464fa0(0x101)](()=>this[_0x464fa0(0x1ce)]({'hovered':!0x1})));}['setShapeProps'](_0x363a47){const _0x220ba5=_0x5f11ba;var _0x19627e,_0x2fcd0b,_0x4fc9a7,_0x48384b,_0xb16730,_0x2ff6a1;this[_0x220ba5(0x233)]=(_0x19627e=_0x363a47[_0x220ba5(0x2de)])!=null?_0x19627e:this['_color'],this[_0x220ba5(0x13c)]=(_0x2fcd0b=_0x363a47['hovered'])!=null?_0x2fcd0b:this['_hovered'],this[_0x220ba5(0x32c)]=(_0x4fc9a7=_0x363a47['range'])!=null?_0x4fc9a7:this[_0x220ba5(0x32c)],this['_name']=(_0x48384b=_0x363a47[_0x220ba5(0x296)])!=null?_0x48384b:this[_0x220ba5(0x1ea)],this[_0x220ba5(0x178)]=(_0xb16730=_0x363a47[_0x220ba5(0x105)])!=null?_0xb16730:this[_0x220ba5(0x178)],this['_backgroundColor']=(_0x2ff6a1=_0x363a47[_0x220ba5(0x214)])!=null?_0x2ff6a1:this[_0x220ba5(0x1ba)],this['transformByState']({'width':_0x363a47[_0x220ba5(0xda)],'height':_0x363a47[_0x220ba5(0x150)]});}[_0x5f11ba(0x102)](_0x52932b){const _0x34d2da=_0x5f11ba,{row:_0x3625ad,column:_0x2cc0be}=_0x52932b;if(_0x3625ad>=this['_range'][_0x34d2da(0x1ad)]&&_0x3625ad<=this[_0x34d2da(0x32c)]['endRow']&&_0x2cc0be>=this[_0x34d2da(0x32c)][_0x34d2da(0x223)]&&_0x2cc0be<=this['_range'][_0x34d2da(0x2e8)]){this[_0x34d2da(0x1ce)]({'hovered':!0x0});return;}this[_0x34d2da(0x1ce)]({'hovered':!0x1});}[_0x5f11ba(0xfb)](_0x1c2db8){return!0x1;}[_0x5f11ba(0x231)](_0x613d98){const _0x260a62=_0x5f11ba;p[_0x260a62(0x2eb)][_0x260a62(0x330)](_0x613d98,{'width':this[_0x260a62(0xda)],'height':this[_0x260a62(0x150)],'strokeWidth':mt,'stroke':this[_0x260a62(0x233)],'evented':!0x1,'fill':this[_0x260a62(0x1ba)]}),this[_0x260a62(0x13c)]&&(_0x613d98['save'](),_0x613d98[_0x260a62(0x122)](0x1,0x0,0x0,0x1,this[_0x260a62(0xda)],this[_0x260a62(0x178)]===_0x260a62(0x1b0)?0x0:-0x14),ee['drawWith'](_0x613d98,{'text':this[_0x260a62(0x1ea)],'color':this['_color']}),_0x613d98[_0x260a62(0x24c)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x7c6298,_0x27e004,_0x283aff,_0x1390b7)=>{const _0x764a47=_0x5f11ba;for(var _0xd93b3=_0x1390b7>0x1?void 0x0:_0x1390b7?Ct(_0x27e004,_0x283aff):_0x27e004,_0x3bf21b=_0x7c6298[_0x764a47(0x173)]-0x1,_0x2f6ff2;_0x3bf21b>=0x0;_0x3bf21b--)(_0x2f6ff2=_0x7c6298[_0x3bf21b])&&(_0xd93b3=_0x2f6ff2(_0xd93b3)||_0xd93b3);return _0xd93b3;},ae=(_0x2df0bc,_0x1b1d47)=>(_0x150413,_0x2c06a3)=>_0x1b1d47(_0x150413,_0x2c06a3,_0x2df0bc);const Et=0x1389;let ve=class extends a[_0x5f11ba(0x164)]{constructor(_0x2fd4b9,_0x2668ca,_0xd07ea8,_0x50e2d8){const _0xb40422=_0x5f11ba;super(),h(this,_0xb40422(0x15c),new Set()),h(this,'_lastPointer',null),(this[_0xb40422(0x2ed)]=_0x2fd4b9,this[_0xb40422(0x33f)]=_0x2668ca,this[_0xb40422(0x18c)]=_0xd07ea8,this[_0xb40422(0x335)]=_0x50e2d8,this[_0xb40422(0x242)]());}[_0x5f11ba(0x242)](){const _0x25f042=_0x5f11ba;this[_0x25f042(0x33f)][_0x25f042(0x2c1)][_0x25f042(0x2ab)]($[_0x25f042(0x1ee)](this[_0x25f042(0x193)]),$[_0x25f042(0x21f)](_0x4b49d6=>{const _0x5dfa02=_0x25f042;if(_0x4b49d6){const _0x36dce2=_0x4b49d6['sheetId'];return d['combineLatest'](this[_0x5dfa02(0x18c)]['getCollabCursors$'](this['_context'][_0x5dfa02(0xd6)]),this[_0x5dfa02(0x335)]['currentTheme$'])['pipe']($[_0x5dfa02(0x14c)](([_0x23124f,_0x40e264])=>{const _0x4d67ab=_0x5dfa02,_0x32f551=new Map();return _0x23124f[_0x4d67ab(0x307)]((_0x4f9001,_0x2f8ff6)=>{const _0x5bd9c3=_0x4d67ab;if(_0x4f9001[_0x5bd9c3(0x269)]===_0x36dce2){const _0x2411cf={..._0x4f9001};_0x2411cf[_0x5bd9c3(0x2de)]=this[_0x5bd9c3(0x335)][_0x5bd9c3(0xdf)](_0x4f9001['color']),_0x32f551['set'](_0x2f8ff6,_0x2411cf);}}),{'skeleton':_0x4b49d6,'cursors':_0x32f551};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x25f042(0x135)](({skeleton:_0xba63da,cursors:_0x499af5})=>{this['_removeCollabCursors'](),_0xba63da&&this['_updateCollabCursors'](_0xba63da,_0x499af5);}),this[_0x25f042(0x33f)]['currentSkeleton$'][_0x25f042(0x135)](_0x130a75=>{const _0x3c334f=_0x25f042;if(_0x130a75==null)return;const {skeleton:_0x402899}=_0x130a75,{scene:_0xad4641}=this[_0x3c334f(0x2ed)];_0xad4641[_0x3c334f(0x292)][_0x3c334f(0x101)](a[_0x3c334f(0xd4)](_0x2df9f0=>{const _0x1d1240=_0x3c334f;var _0xffb216,_0x2c15aa;const {offsetX:_0x1c8efe,offsetY:_0x3664a}=_0x2df9f0,{x:_0x5a29d0,y:_0x349262}=_0xad4641[_0x1d1240(0x179)](p[_0x1d1240(0x319)]['FromArray']([_0x1c8efe,_0x3664a])),{scaleX:_0x4e6624,scaleY:_0x3fdc6a}=_0xad4641[_0x1d1240(0x355)](),_0x427afa=_0xad4641[_0x1d1240(0x17c)](p['SHEET_VIEWPORT_KEY'][_0x1d1240(0x1da)]),_0x21f5e0=_0xad4641[_0x1d1240(0x264)](p[_0x1d1240(0x319)][_0x1d1240(0x277)]([_0x5a29d0,_0x349262]),_0x427afa),_0x1ed954=_0x402899[_0x1d1240(0x165)](_0x1c8efe,_0x3664a,_0x4e6624,_0x3fdc6a,_0x21f5e0);((_0xffb216=this[_0x1d1240(0x2d5)])==null?void 0x0:_0xffb216[_0x1d1240(0x288)])===_0x1ed954[_0x1d1240(0x288)]&&((_0x2c15aa=this['_lastPointer'])==null?void 0x0:_0x2c15aa[_0x1d1240(0xfd)])===_0x1ed954[_0x1d1240(0xfd)]||this[_0x1d1240(0x15c)][_0x1d1240(0x307)](_0x4a4144=>{const _0x5b8626=_0x1d1240;_0x4a4144[_0x5b8626(0x102)](_0x1ed954);});},0x64));});}[_0x5f11ba(0x271)](_0x32ff77,_0x3183cb){const _0x55eeb9=_0x5f11ba;var _0xeb591a;const _0x2ab10e=(_0xeb591a=this['_sheetSkeletonManagerService'][_0x55eeb9(0x203)]())==null?void 0x0:_0xeb591a[_0x55eeb9(0x325)];if(!_0x2ab10e)return;const _0x49b95f=this['_getSheetObject']();if(!_0x49b95f)return;this[_0x55eeb9(0x15c)]['forEach'](_0x32a936=>{const _0x593b5e=_0x55eeb9;_0x32a936[_0x593b5e(0x2b6)]();});const {scene:_0x5c53cd}=_0x49b95f,_0x1c68be=bt(Array['from'](_0x3183cb[_0x55eeb9(0x1d6)]()))[_0x55eeb9(0x14c)](_0x29d336=>{const _0x24a03b=_0x55eeb9,{color:_0x265801,range:_0xcb8684,name:_0x303057,selection:_0x509838,sheetID:_0x2f5995}=_0x29d336,{startColumn:_0x57a24e,startRow:_0x5f4d2a,endColumn:_0xb6ecbe,endRow:_0x1f9617}=_0xcb8684,_0x11f902=X[_0x24a03b(0x218)](_0x5f4d2a,_0x57a24e,_0x5c53cd,_0x2ab10e),_0x4c8c74=X[_0x24a03b(0x218)](_0x1f9617,_0xb6ecbe,_0x5c53cd,_0x2ab10e),{columnHeaderHeightAndMarginTop:_0x2bd098}=_0x2ab10e,{startX:_0x273132,startY:_0xaf181d}=_0x11f902,{endX:_0x25df75,endY:_0x3ba8f1}=_0x4c8c74,_0x559530=_0x25df75-_0x273132,_0x540d62=_0x3ba8f1-_0xaf181d,_0xc5d9b9={'labelPosition':_0xaf181d-_0x2bd098>=K?'top':_0x24a03b(0x1b0),'sheetID':_0x2f5995,'range':_0xcb8684,'color':_0x265801,'name':_0x303057,'selection':_0x509838,'left':_0x273132,'top':_0xaf181d,'width':_0x559530,'height':_0x540d62,'evented':!0x1,'zIndex':Et};return new we(_0x303057,_0xc5d9b9);});_0x5c53cd[_0x55eeb9(0x1b7)](_0x1c68be,gt),this['_cursors']=new Set(_0x1c68be);}[_0x5f11ba(0x146)](){const _0x37bf59=_0x5f11ba;var _0x2a85c1;(_0x2a85c1=this['_cursors'])==null||_0x2a85c1[_0x37bf59(0x307)](_0x283b0d=>_0x283b0d[_0x37bf59(0xe7)]());}[_0x5f11ba(0x188)](){const _0x552e6a=_0x5f11ba;return X[_0x552e6a(0x361)](this[_0x552e6a(0x2ed)][_0x552e6a(0x16b)],this[_0x552e6a(0x2ed)]);}};ve=pt([ae(0x1,a[_0x5f11ba(0x116)](X[_0x5f11ba(0x33b)])),ae(0x2,a[_0x5f11ba(0x116)](x)),ae(0x3,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x26a)]))],ve);function bt(_0x2255a7){const _0x5ce9d3=_0x5f11ba,_0x118244=new Map();return _0x2255a7['forEach'](_0x2d9284=>{const _0x15ab38=_0x32ae;if(_0x118244['has'](_0x2d9284[_0x15ab38(0x201)])){const _0x3945e1=_0x118244[_0x15ab38(0x2db)](_0x2d9284[_0x15ab38(0x201)]);_0x3945e1['name']+=',\x20'+_0x2d9284[_0x15ab38(0x296)];}else _0x118244['set'](_0x2d9284[_0x15ab38(0x201)],_0x2d9284);}),Array[_0x5ce9d3(0x2fd)](_0x118244[_0x5ce9d3(0x1d6)]());}var b=function(){const _0x3bb602=_0x5f11ba;return b=Object['assign']||function(_0x1fa0de){const _0x2adef1=_0x32ae;for(var _0x3ee4be,_0x3bd634=0x1,_0x10a580=arguments[_0x2adef1(0x173)];_0x3bd634<_0x10a580;_0x3bd634++){_0x3ee4be=arguments[_0x3bd634];for(var _0x3c0500 in _0x3ee4be)Object[_0x2adef1(0x32b)]['hasOwnProperty']['call'](_0x3ee4be,_0x3c0500)&&(_0x1fa0de[_0x3c0500]=_0x3ee4be[_0x3c0500]);}return _0x1fa0de;},b[_0x3bb602(0x2d9)](this,arguments);},Ot=function(_0x39ec79,_0x3fb9ad){const _0x63eb43=_0x5f11ba;var _0x395523={};for(var _0x121883 in _0x39ec79)Object['prototype'][_0x63eb43(0x2cb)][_0x63eb43(0x1e2)](_0x39ec79,_0x121883)&&_0x3fb9ad['indexOf'](_0x121883)<0x0&&(_0x395523[_0x121883]=_0x39ec79[_0x121883]);if(_0x39ec79!=null&&typeof Object[_0x63eb43(0x1e9)]=='function'){for(var _0x5d4ba3=0x0,_0x121883=Object[_0x63eb43(0x1e9)](_0x39ec79);_0x5d4ba3<_0x121883['length'];_0x5d4ba3++)_0x3fb9ad[_0x63eb43(0x19c)](_0x121883[_0x5d4ba3])<0x0&&Object[_0x63eb43(0x32b)][_0x63eb43(0x1bd)][_0x63eb43(0x1e2)](_0x39ec79,_0x121883[_0x5d4ba3])&&(_0x395523[_0x121883[_0x5d4ba3]]=_0x39ec79[_0x121883[_0x5d4ba3]]);}return _0x395523;},pe=M[_0x5f11ba(0x2bf)](function(_0x468ecf,_0x4d339d){const _0x26f914=_0x5f11ba;var _0x5e98b2=_0x468ecf['icon'],_0x551543=_0x468ecf['id'],_0x3edda3=_0x468ecf[_0x26f914(0x349)],_0x4bc2fe=_0x468ecf['extend'],_0x52db46=Ot(_0x468ecf,[_0x26f914(0x1f4),'id',_0x26f914(0x349),_0x26f914(0x20f)]),_0xb7b437=_0x26f914(0x27b)[_0x26f914(0x18b)](_0x551543,'\x20')[_0x26f914(0x18b)](_0x3edda3||'')[_0x26f914(0x1d0)](),_0x2625f1=M[_0x26f914(0x198)]('_'[_0x26f914(0x18b)](Dt()));return Ae(_0x5e98b2,''['concat'](_0x551543),{'defIds':_0x5e98b2['defIds'],'idSuffix':_0x2625f1[_0x26f914(0x329)]},b({'ref':_0x4d339d,'className':_0xb7b437},_0x52db46),_0x4bc2fe);});function Ae(_0x58a118,_0x267276,_0x4b9678,_0x23d062,_0x2f8509){const _0xf12451=_0x5f11ba;return M[_0xf12451(0x181)](_0x58a118['tag'],b(b({'key':_0x267276},Tt(_0x58a118,_0x4b9678,_0x2f8509)),_0x23d062),(Rt(_0x58a118,_0x4b9678)[_0xf12451(0x2cc)]||[])[_0xf12451(0x14c)](function(_0x92cc29,_0x14f9b8){const _0x32fb45=_0xf12451;return Ae(_0x92cc29,''[_0x32fb45(0x18b)](_0x267276,'-')[_0x32fb45(0x18b)](_0x58a118[_0x32fb45(0x259)],'-')['concat'](_0x14f9b8),_0x4b9678,void 0x0,_0x2f8509);}));}function Tt(_0x2b5624,_0x481853,_0x2a0843){const _0x11c895=_0x5f11ba;var _0x536b4d=b({},_0x2b5624[_0x11c895(0x2a6)]);_0x2a0843!=null&&_0x2a0843['colorChannel1']&&_0x536b4d['fill']==='colorChannel1'&&(_0x536b4d[_0x11c895(0x1a2)]=_0x2a0843[_0x11c895(0x314)]),_0x2b5624['tag']==='mask'&&_0x536b4d['id']&&(_0x536b4d['id']=_0x536b4d['id']+_0x481853[_0x11c895(0x1c4)]),Object[_0x11c895(0x11b)](_0x536b4d)[_0x11c895(0x307)](function(_0x4eff27){const _0x5825ac=_0x11c895;var _0x3962ce=_0x4eff27[0x0],_0xa4e316=_0x4eff27[0x1];_0x3962ce===_0x5825ac(0x2c4)&&typeof _0xa4e316==_0x5825ac(0x192)&&(_0x536b4d[_0x3962ce]=_0xa4e316['replace'](/url\(#(.*)\)/,_0x5825ac(0x229)['concat'](_0x481853[_0x5825ac(0x1c4)],')')));});var _0x4a5369=_0x481853[_0x11c895(0x22f)];return!_0x4a5369||_0x4a5369[_0x11c895(0x173)]===0x0||(_0x2b5624[_0x11c895(0x259)]===_0x11c895(0x283)&&_0x536b4d['xlink:href']&&(_0x536b4d['xlink:href']=_0x536b4d['xlink:href']+_0x481853[_0x11c895(0x1c4)]),Object['entries'](_0x536b4d)[_0x11c895(0x307)](function(_0x4c0a3c){const _0x53c5b6=_0x11c895;var _0x3da317=_0x4c0a3c[0x0],_0x2c1489=_0x4c0a3c[0x1];typeof _0x2c1489=='string'&&(_0x536b4d[_0x3da317]=_0x2c1489[_0x53c5b6(0x241)](/url\(#(.*)\)/,_0x53c5b6(0x229)[_0x53c5b6(0x18b)](_0x481853[_0x53c5b6(0x1c4)],')')));})),_0x536b4d;}function Rt(_0x12c868,_0x538265){const _0x580f3c=_0x5f11ba;var _0x1571c2,_0x28c3b4=_0x538265[_0x580f3c(0x22f)];return!_0x28c3b4||_0x28c3b4[_0x580f3c(0x173)]===0x0?_0x12c868:_0x12c868['tag']===_0x580f3c(0x225)&&(!((_0x1571c2=_0x12c868[_0x580f3c(0x2cc)])===null||_0x1571c2===void 0x0)&&_0x1571c2[_0x580f3c(0x173)])?b(b({},_0x12c868),{'children':_0x12c868[_0x580f3c(0x2cc)][_0x580f3c(0x14c)](function(_0x42080c){const _0x3d2bd6=_0x580f3c;return typeof _0x42080c[_0x3d2bd6(0x2a6)]['id']==_0x3d2bd6(0x192)&&_0x28c3b4&&_0x28c3b4['includes'](_0x42080c[_0x3d2bd6(0x2a6)]['id'])?b(b({},_0x42080c),{'attrs':b(b({},_0x42080c[_0x3d2bd6(0x2a6)]),{'id':_0x42080c[_0x3d2bd6(0x2a6)]['id']+_0x538265[_0x3d2bd6(0x1c4)]})}):_0x42080c;})}):_0x12c868;}function Dt(){const _0x54feba=_0x5f11ba;return Math[_0x54feba(0x175)]()[_0x54feba(0x1e6)](0x24)['substring'](0x2,0x8);}pe[_0x5f11ba(0xf3)]=_0x5f11ba(0x34b);var Ut={'tag':'svg','attrs':{'xmlns':_0x5f11ba(0x1b6),'fill':_0x5f11ba(0x1dd),'viewBox':_0x5f11ba(0x2ec),'width':_0x5f11ba(0x145),'height':_0x5f11ba(0x145)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f11ba(0x117)},'children':[{'tag':_0x5f11ba(0x16d),'attrs':{'stroke':_0x5f11ba(0x33a),'d':_0x5f11ba(0x308),'strokeLinecap':_0x5f11ba(0x19e),'strokeLinejoin':_0x5f11ba(0x19e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5f11ba(0x250),'attrs':{'id':_0x5f11ba(0x31c)},'children':[{'tag':_0x5f11ba(0x16d),'attrs':{'fill':'white','d':_0x5f11ba(0x243)}}]}]}],'defIds':[_0x5f11ba(0x31c)]},ye=M['forwardRef'](function(_0x5d5ff8,_0x1de05e){const _0x17d190=_0x5f11ba;return M[_0x17d190(0x181)](pe,Object['assign']({},_0x5d5ff8,{'id':'off-line-icon','ref':_0x1de05e,'icon':Ut}));});ye[_0x5f11ba(0xf3)]='OffLineIcon';var Nt={'tag':_0x5f11ba(0xdc),'attrs':{'xmlns':_0x5f11ba(0x1b6),'fill':'none','viewBox':_0x5f11ba(0x1ae),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x5f11ba(0x19e),'strokeWidth':1.2}}]},{'tag':_0x5f11ba(0x225),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5f11ba(0x1de)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x5f11ba(0x243),'transform':_0x5f11ba(0x118)}}]}]}],'defIds':[_0x5f11ba(0x1de)]},$e=M[_0x5f11ba(0x2bf)](function(_0x14c51d,_0x2b153e){const _0x1d4f24=_0x5f11ba;return M[_0x1d4f24(0x181)](pe,Object[_0x1d4f24(0x251)]({},_0x14c51d,{'id':_0x1d4f24(0x2a1),'ref':_0x2b153e,'icon':Nt}));});$e[_0x5f11ba(0xf3)]=_0x5f11ba(0x21a);function Mt(_0x2f4dae){const _0x28f4e2=_0x5f11ba;switch(_0x2f4dae){case u['CollaborationStatus'][_0x28f4e2(0x1c9)]:return _0x28f4e2(0x1d9);case u['CollaborationStatus'][_0x28f4e2(0x1f3)]:return'collabStatus.conflict';case u[_0x28f4e2(0x138)][_0x28f4e2(0x195)]:return'collabStatus.fetchMiss';case u[_0x28f4e2(0x138)][_0x28f4e2(0x134)]:return _0x28f4e2(0x128);case u[_0x28f4e2(0x138)]['AWAITING']:case u[_0x28f4e2(0x138)][_0x28f4e2(0x172)]:return'collabStatus.syncing';case u[_0x28f4e2(0x138)][_0x28f4e2(0xd3)]:case u[_0x28f4e2(0x138)]['PENDING']:return _0x28f4e2(0x332);}}function xe(_0x2c6ef6){const _0x245263=_0x5f11ba,{status$:_0x5e6bf2}=_0x2c6ef6,_0x228a4c=O[_0x245263(0x14b)](_0x5e6bf2,u['CollaborationStatus'][_0x245263(0x134)]),_0x173caf=O[_0x245263(0x20b)](a['LocaleService']),_0x47c499=O['useDependency'](u[_0x245263(0x21c)]),_0x537879=_0x228a4c!==u[_0x245263(0x138)]['OFFLINE'],_0x329be9=_0x173caf['t'](Mt(_0x228a4c)),_0x1a561c=_0x537879?P['jsx']($e,{}):P[_0x245263(0x127)](ye,{}),_0x489390=M[_0x245263(0x309)](()=>{const _0x31effa=_0x245263;_0x537879||_0x47c499[_0x31effa(0x209)]();},[_0x537879,_0x47c499]);function _0x1bd9d2(){const _0x52c49d=_0x245263;return P[_0x52c49d(0x30b)](_0x52c49d(0x304),{'className':_0x52c49d(0x337),'onClick':_0x489390,'children':[P[_0x52c49d(0x127)](_0x52c49d(0x304),{'className':D[_0x52c49d(0x31e)](_0x52c49d(0x1d2),{'univer-text-green-500':_0x537879,'univer-text-red-500':!_0x537879}),'children':_0x1a561c}),P['jsx'](_0x52c49d(0x304),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x329be9})]});}return _0x537879?_0x1bd9d2():P[_0x245263(0x127)](D[_0x245263(0x1af)],{'title':_0x173caf['t'](_0x245263(0x2df)),'children':_0x1bd9d2()});}var Lt=Object[_0x5f11ba(0x2f9)],Pt=(_0x4cb1cd,_0x1b506a,_0x86afb3,_0x256cfa)=>{for(var _0x35b473=_0x256cfa>0x1?void 0x0:_0x256cfa?Lt(_0x1b506a,_0x86afb3):_0x1b506a,_0x3ffeba=_0x4cb1cd['length']-0x1,_0x9eae92;_0x3ffeba>=0x0;_0x3ffeba--)(_0x9eae92=_0x4cb1cd[_0x3ffeba])&&(_0x35b473=_0x9eae92(_0x35b473)||_0x35b473);return _0x35b473;},V=(_0x27b9da,_0x160945)=>(_0x572bc6,_0x36d4c2)=>_0x160945(_0x572bc6,_0x36d4c2,_0x27b9da);exports[_0x5f11ba(0x1b8)]=class extends a['Disposable']{constructor(_0x3808b7,_0x3a6b08,_0x443d1c,_0x52e24b){const _0x50c069=_0x5f11ba;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0x50c069(0x138)][_0x50c069(0x134)])),(this[_0x50c069(0x111)]=_0x3808b7,this[_0x50c069(0x206)]=_0x3a6b08,this['_collaborationController']=_0x443d1c,this[_0x50c069(0xcc)]=_0x52e24b,this[_0x50c069(0x137)](),this[_0x50c069(0x1cb)]());}['_initStatusListener'](){const _0x94d28a=_0x5f11ba;this[_0x94d28a(0x100)](this[_0x94d28a(0x111)][_0x94d28a(0x2e0)][_0x94d28a(0x2ab)](d[_0x94d28a(0x21f)](()=>{const _0x12fbb4=_0x94d28a,_0xcaa33e=this[_0x12fbb4(0x111)]['getFocusedUnit']();return _0xcaa33e?this['_collaborationController'][_0x12fbb4(0x131)](_0xcaa33e[_0x12fbb4(0xf9)]()):d['of'](null);}),d[_0x94d28a(0x21f)](_0x424c08=>_0x424c08?_0x424c08[_0x94d28a(0x1a5)]:d['of'](u[_0x94d28a(0x138)]['NOT_COLLAB'])))[_0x94d28a(0x135)](_0x44c9df=>{const _0x534999=_0x94d28a;this[_0x534999(0x344)][_0x534999(0x2e3)](_0x44c9df);}));}[_0x5f11ba(0x137)](){const _0x1f733b=_0x5f11ba;this[_0x1f733b(0x100)](this['_uiPartsService'][_0x1f733b(0x2dc)](O['BuiltInUIPart'][_0x1f733b(0xe1)],()=>O['connectInjector'](wt({'status$':this['_status$']['asObservable']()}),this[_0x1f733b(0x206)])));}},exports[_0x5f11ba(0x1b8)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x5f11ba(0x281)])),V(0x2,a[_0x5f11ba(0x116)](u[_0x5f11ba(0x11e)])),V(0x3,O[_0x5f11ba(0x1cd)])],exports[_0x5f11ba(0x1b8)]);function wt(_0x502154){const {status$:_0x26ddb0}=_0x502154;return function(){const _0x55d0e8=_0x32ae;return P[_0x55d0e8(0x127)](xe,{'status$':_0x26ddb0});};}var At=Object[_0x5f11ba(0x2f9)],yt=(_0x2d73ab,_0x4c1897,_0x297a75,_0x5370b5)=>{const _0x32aead=_0x5f11ba;for(var _0x46fb30=_0x5370b5>0x1?void 0x0:_0x5370b5?At(_0x4c1897,_0x297a75):_0x4c1897,_0x4d4b47=_0x2d73ab[_0x32aead(0x173)]-0x1,_0x48641c;_0x4d4b47>=0x0;_0x4d4b47--)(_0x48641c=_0x2d73ab[_0x4d4b47])&&(_0x46fb30=_0x48641c(_0x46fb30)||_0x46fb30);return _0x46fb30;},y=(_0x4de20b,_0x2635f2)=>(_0x407674,_0x59e045)=>_0x2635f2(_0x407674,_0x59e045,_0x4de20b);let q=class extends a[_0x5f11ba(0x262)]{constructor(_0x51f8d8,_0x441d10,_0x5897b8,_0xfc9d62,_0x181d8a,_0x388d1a){const _0x424cbc=_0x5f11ba;super(),this['_beforeCloseService']=_0x51f8d8,this[_0x424cbc(0x23a)]=_0x441d10,this[_0x424cbc(0x321)]=_0x5897b8,this['_messageService']=_0xfc9d62,this[_0x424cbc(0x132)]=_0x181d8a,this[_0x424cbc(0x331)]=_0x388d1a,this[_0x424cbc(0x28a)](),this[_0x424cbc(0x10f)]();}[_0x5f11ba(0x28a)](){const _0x368018=_0x5f11ba;this[_0x368018(0x100)](this[_0x368018(0x2b3)]['registerBeforeClose'](()=>{const _0xac4bb6=_0x368018;if(this['_localCacheService']['saveTaskMap'][_0xac4bb6(0x22c)])return this[_0xac4bb6(0x331)]['t'](_0xac4bb6(0x282));}));}[_0x5f11ba(0x10f)](){const _0x244bca=_0x5f11ba;this['disposeWithMe'](this[_0x244bca(0x321)]['event$']['subscribe'](_0x3d6c21=>{const _0x526fc1=_0x244bca;_0x3d6c21['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D[_0x526fc1(0x2cf)][_0x526fc1(0x1ec)],'content':this[_0x526fc1(0x331)]['t'](_0x526fc1(0x2b9))}),_0x3d6c21['id']===u[_0x526fc1(0x34a)]['CLOSE_ROOM']&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D['MessageType'][_0x526fc1(0x1ec)],'content':this[_0x526fc1(0x331)]['t']('collaboration.closeRoom')}),_0x3d6c21['id']===u['CollaborationUIEventId'][_0x526fc1(0x2d2)]&&this[_0x526fc1(0x132)][_0x526fc1(0x12b)]({'title':this['_localeService']['t'](_0x526fc1(0x35d)),'content':this[_0x526fc1(0x331)]['t'](_0x526fc1(0x294)),'type':'error','duration':0x0}),_0x3d6c21['id']===u[_0x526fc1(0x34a)][_0x526fc1(0x1f3)]&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D['MessageType'][_0x526fc1(0xf4)],'content':this['_localeService']['t'](_0x526fc1(0x338))+'('+_0x3d6c21[_0x526fc1(0x11d)]+')'}),_0x3d6c21['id']===u[_0x526fc1(0x34a)]['JOIN_ROOM_FAILED']&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D[_0x526fc1(0x2cf)][_0x526fc1(0x1ec)],'content':this[_0x526fc1(0x331)]['t'](_0x3d6c21[_0x526fc1(0x11d)]||'')}),_0x3d6c21['id']===u[_0x526fc1(0x34a)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x526fc1(0x12b)]({'type':D[_0x526fc1(0x2cf)][_0x526fc1(0x1ec)],'content':this[_0x526fc1(0x331)]['t'](_0x526fc1(0x17d))}),_0x3d6c21['id']===u[_0x526fc1(0x34a)][_0x526fc1(0x275)]&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D[_0x526fc1(0x2cf)][_0x526fc1(0xf4)],'content':this[_0x526fc1(0x331)]['t'](_0x526fc1(0x345))}),_0x3d6c21['id']===u[_0x526fc1(0x34a)][_0x526fc1(0x323)]&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D['MessageType'][_0x526fc1(0xf4)],'content':this[_0x526fc1(0x331)]['t'](_0x526fc1(0x318))});}));}};q=yt([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x5f11ba(0x116)](u[_0x5f11ba(0x1bf)])),y(0x3,O[_0x5f11ba(0xea)]),y(0x4,O[_0x5f11ba(0x1a9)]),y(0x5,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x2c9)]))],q);const $t=_0x5f11ba(0x280),Ue={},Ee=a[_0x5f11ba(0x1f9)]('uni.network.url-service');var xt=Object[_0x5f11ba(0x2f9)],Bt=(_0x4227af,_0x257e52,_0x4737cb,_0x17c05b)=>{for(var _0xf5aa71=_0x17c05b>0x1?void 0x0:_0x17c05b?xt(_0x257e52,_0x4737cb):_0x257e52,_0x390ca0=_0x4227af['length']-0x1,_0x5d6834;_0x390ca0>=0x0;_0x390ca0--)(_0x5d6834=_0x4227af[_0x390ca0])&&(_0xf5aa71=_0x5d6834(_0xf5aa71)||_0xf5aa71);return _0xf5aa71;},F=(_0x2b2425,_0x1a1bff)=>(_0x339f13,_0xbc98f5)=>_0x1a1bff(_0x339f13,_0xbc98f5,_0x2b2425);exports[_0x5f11ba(0x25c)]=class extends a['RxDisposable']{constructor(_0x379725,_0x26eeb0,_0x5ec316,_0x7ebaba,_0x13a4f9){const _0x2c4bdb=_0x5f11ba;super(),this[_0x2c4bdb(0x32f)]=_0x379725,this[_0x2c4bdb(0x2b8)]=_0x26eeb0,this['_commandService']=_0x5ec316,this[_0x2c4bdb(0x27f)]=_0x7ebaba,_0x13a4f9?_0x13a4f9==null||_0x13a4f9['whenReady']()['then'](()=>this[_0x2c4bdb(0x242)]()):(this['_logService']['debug'](_0x2c4bdb(0xf0),_0x2c4bdb(0x25d)),this['_init']());}async['_init'](){const _0x4de748=_0x5f11ba,_0x490c41=this[_0x4de748(0x32f)][_0x4de748(0x2f5)](_0x4de748(0x16b)),_0x119a45=this[_0x4de748(0x32f)][_0x4de748(0x2f5)]('type'),_0x5becc3=this['_urlService'][_0x4de748(0x2f5)](_0x4de748(0x289));if(!_0x490c41||!_0x119a45){this['_logService'][_0x4de748(0x142)]('[CollaborationDataLoaderController]',_0x4de748(0x2e5));return;}const _0x3a6eac=await this[_0x4de748(0x27f)]['loadUnit'](_0x490c41,Number(_0x119a45),_0x5becc3);_0x3a6eac&&_0x3a6eac instanceof a['Workbook']&&this[_0x4de748(0x238)](_0x3a6eac);}async[_0x5f11ba(0x238)](_0x2cc025){const _0x29e889=_0x5f11ba;await this[_0x29e889(0x166)](_0x2cc025),_0x2cc025[_0x29e889(0x21b)][_0x29e889(0x2ab)](d[_0x29e889(0x1ee)](this[_0x29e889(0x193)]))[_0x29e889(0x135)](_0x1e3c5d=>{const _0x208be5=_0x29e889;_0x1e3c5d&&this[_0x208be5(0x2d0)](_0x1e3c5d);}),this[_0x29e889(0x32f)][_0x29e889(0x1ca)]['pipe'](d[_0x29e889(0x1ee)](this[_0x29e889(0x193)]))[_0x29e889(0x135)](()=>this[_0x29e889(0x166)](_0x2cc025));}['_updateURLWithCurrentState'](_0x584387,_0x397adb=!0x1){const _0x4ee686=_0x5f11ba,_0x1d94ae=this['_urlService'][_0x4ee686(0x2f5)](_0x4ee686(0x289));_0x584387[_0x4ee686(0x322)]()!==_0x1d94ae&&this[_0x4ee686(0x32f)][_0x4ee686(0x2d6)](_0x4ee686(0x289),_0x584387['getSheetId'](),_0x397adb);}async[_0x5f11ba(0x166)](_0x59b1e9){const _0x1dd7ba=_0x5f11ba;var _0x4a009a;const _0x1f0ec3=this[_0x1dd7ba(0x32f)]['getParam'](_0x1dd7ba(0x289));if(!_0x1f0ec3||!_0x59b1e9[_0x1dd7ba(0x1d4)](_0x1f0ec3)){const _0x51c25c=_0x59b1e9['getUnhiddenWorksheets']()[0x0],_0x5e7297=_0x59b1e9[_0x1dd7ba(0x1d4)](_0x51c25c);if(!_0x5e7297)return;this[_0x1dd7ba(0x2d0)](_0x5e7297,!0x0),await this[_0x1dd7ba(0xe2)][_0x1dd7ba(0x125)](g[_0x1dd7ba(0x236)]['id'],{'unitId':_0x59b1e9[_0x1dd7ba(0xf9)](),'subUnitId':_0x51c25c});return;}((_0x4a009a=_0x59b1e9[_0x1dd7ba(0x240)]())==null?void 0x0:_0x4a009a['getSheetId']())!==_0x1f0ec3&&await this[_0x1dd7ba(0xe2)][_0x1dd7ba(0x125)](g[_0x1dd7ba(0x236)]['id'],{'unitId':_0x59b1e9['getUnitId'](),'subUnitId':_0x1f0ec3});}},exports[_0x5f11ba(0x25c)]=Bt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a[_0x5f11ba(0x25f)]),F(0x3,a[_0x5f11ba(0x116)](u[_0x5f11ba(0x2b4)])),F(0x4,a[_0x5f11ba(0xf1)](Ke['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x3aa6d3,_0x2511e2,_0x2f00e1,_0x118bdb)=>{const _0x45779d=_0x5f11ba;for(var _0x5d0656=_0x118bdb>0x1?void 0x0:_0x118bdb?jt(_0x2511e2,_0x2f00e1):_0x2511e2,_0x26096d=_0x3aa6d3[_0x45779d(0x173)]-0x1,_0x33657d;_0x26096d>=0x0;_0x26096d--)(_0x33657d=_0x3aa6d3[_0x26096d])&&(_0x5d0656=_0x33657d(_0x5d0656)||_0x5d0656);return _0x5d0656;},ce=(_0x366b16,_0x13f4ed)=>(_0x41546d,_0x3a24ff)=>_0x13f4ed(_0x41546d,_0x3a24ff,_0x366b16);let z=class{constructor(_0x4f9832,_0x292bbf,_0x278136){const _0x4228fd=_0x5f11ba;this['_injector']=_0x4f9832,this[_0x4228fd(0x327)]=_0x292bbf,this[_0x4228fd(0x28c)]=_0x278136;}[_0x5f11ba(0x224)](_0x529276){const _0x421c18=_0x5f11ba;this[_0x421c18(0x12c)](_0x529276),this[_0x421c18(0x2a4)](_0x529276);}[_0x5f11ba(0x18e)](_0x5ba8cb){const _0xd8a1f0=_0x5f11ba,{unitID:_0x59d3eb}=_0x5ba8cb,_0x3d0d32=this[_0xd8a1f0(0x28c)][_0xd8a1f0(0x126)](_0x59d3eb)[_0xd8a1f0(0x212)](E[_0xd8a1f0(0x19a)]),{redoCache:_0x22f914}=_0x3d0d32[_0xd8a1f0(0x133)]();if(_0x22f914[_0xd8a1f0(0x173)]===0x0)return _0x5ba8cb;let _0x481671=a['Tools'][_0xd8a1f0(0x25e)](_0x5ba8cb[_0xd8a1f0(0xf5)][0x0]);for(let _0x232dbf=0x0;_0x232dbf<_0x22f914['length'];_0x232dbf++){const _0x360d8c={'id':_0xd8a1f0(0x306),'params':{..._0x22f914[_0x232dbf]}},_0x62f086=this[_0xd8a1f0(0x327)][_0xd8a1f0(0x1d7)](_0x481671,_0x360d8c,!0x1);if(m['isTransformMutationFailure'](_0x62f086))throw _0x62f086[_0xd8a1f0(0x110)];_0x481671=_0x62f086[_0xd8a1f0(0x11c)];}return{...a[_0xd8a1f0(0x2a0)][_0xd8a1f0(0x25e)](_0x5ba8cb),'mutations':[_0x481671]};}[_0x5f11ba(0x12c)](_0x3673e0){const _0x501392=_0x5f11ba,{unitID:_0x345c4a}=_0x3673e0,_0x52c023=this[_0x501392(0x28c)][_0x501392(0x126)](_0x345c4a)[_0x501392(0x212)](E[_0x501392(0x19a)]),{undoCache:_0x2731c4,redoCache:_0x1ed3c3}=_0x52c023['getUndoRedoMutationParamsCache']();if(_0x2731c4[_0x501392(0x173)]===0x0||_0x1ed3c3['length']===0x0)return;const _0x154f0c=[],_0x6c733c=[];let _0x287db7=a[_0x501392(0x2a0)][_0x501392(0x25e)](_0x3673e0[_0x501392(0xf5)][0x0]),_0x405305=a[_0x501392(0x2a0)][_0x501392(0x25e)](_0x3673e0[_0x501392(0xf5)][0x0]);for(let _0x10bb73=_0x2731c4[_0x501392(0x173)]-0x1;_0x10bb73>=0x0;_0x10bb73--){const _0x209b50={'id':_0x501392(0x306),'params':{..._0x2731c4[_0x10bb73]}},_0x5f2a26={'id':'doc.mutation.rich-text-editing','params':{..._0x1ed3c3[_0x10bb73]}},_0x243433=this[_0x501392(0x327)][_0x501392(0x1d7)](_0x287db7,_0x209b50,!0x1),_0x49b3dd=this['_transformService'][_0x501392(0x1d7)](_0x405305,_0x5f2a26,!0x1);if(m[_0x501392(0x2fc)](_0x243433))throw _0x243433['error'];if(m[_0x501392(0x2fc)](_0x49b3dd))throw _0x49b3dd[_0x501392(0x110)];_0x154f0c['unshift'](_0x243433['m2Prime'][_0x501392(0xf8)]),_0x6c733c[_0x501392(0x1cf)](_0x49b3dd[_0x501392(0x237)]['params']),_0x287db7=_0x243433[_0x501392(0x11c)],_0x405305=_0x49b3dd[_0x501392(0x11c)];}_0x52c023[_0x501392(0x2c3)]({'undoCache':_0x154f0c,'redoCache':_0x6c733c});}['_transformPreviousActiveRange'](_0x3feae6){const _0x3ee00c=_0x5f11ba,{unitID:_0x135dcc}=_0x3feae6,_0x393be5=this['_renderManagerService']['getRenderById'](_0x135dcc)[_0x3ee00c(0x212)](E[_0x3ee00c(0x19a)]),_0x4e74a6=_0x393be5[_0x3ee00c(0x26b)]();if(_0x4e74a6==null)return;const _0x423627=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3feae6[_0x3ee00c(0x352)],'actions':null,'textRanges':[_0x4e74a6]}}],_0xd6c287=this[_0x3ee00c(0x327)][_0x3ee00c(0x205)](_0x3feae6,_0x423627);if(!m[_0x3ee00c(0x248)](_0xd6c287))throw _0xd6c287['error'];const _0x5070c3=_0xd6c287[_0x3ee00c(0x237)][0x0][_0x3ee00c(0xf8)][_0x3ee00c(0x254)];Array[_0x3ee00c(0x114)](_0x5070c3)&&_0x5070c3['length']&&_0x393be5[_0x3ee00c(0x302)](_0x5070c3[0x0]);}};z=kt([ce(0x0,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x281)])),ce(0x1,m[_0x5f11ba(0xe5)]),ce(0x2,p[_0x5f11ba(0x17e)])],z);var Ft=Object[_0x5f11ba(0x2f9)],Ht=(_0x660264,_0x3d0ef3,_0x53dd1e,_0x38f174)=>{const _0x1a2491=_0x5f11ba;for(var _0x1a526e=_0x38f174>0x1?void 0x0:_0x38f174?Ft(_0x3d0ef3,_0x53dd1e):_0x3d0ef3,_0xa8eb67=_0x660264[_0x1a2491(0x173)]-0x1,_0x3b8709;_0xa8eb67>=0x0;_0xa8eb67--)(_0x3b8709=_0x660264[_0xa8eb67])&&(_0x1a526e=_0x3b8709(_0x1a526e)||_0x1a526e);return _0x1a526e;},le=(_0x2c5d58,_0x32bc98)=>(_0x1e6540,_0x26404e)=>_0x32bc98(_0x1e6540,_0x26404e,_0x2c5d58);let J=class{constructor(_0x2c0c02,_0x1f1913,_0x512a93){const _0x210b43=_0x5f11ba;this[_0x210b43(0x206)]=_0x2c0c02,this['_transformService']=_0x1f1913,this['_docStateChangeManagerService']=_0x512a93;}[_0x5f11ba(0x270)](_0x22bab6){const _0x3f78af=_0x5f11ba;this[_0x3f78af(0x103)](_0x22bab6);}[_0x5f11ba(0x18e)](_0x55d013){const _0x5d9c8d=_0x5f11ba,{unitID:_0x189c17}=_0x55d013,{collaboration:_0x432b08}=this['_docStateChangeManagerService'][_0x5d9c8d(0x291)](_0x189c17);if(_0x432b08[_0x5d9c8d(0x173)]===0x0)return _0x55d013;let _0x490a4f=a[_0x5d9c8d(0x2a0)][_0x5d9c8d(0x25e)](_0x55d013['mutations'][0x0]);for(let _0x4f5ef3=0x0;_0x4f5ef3<_0x432b08[_0x5d9c8d(0x173)];_0x4f5ef3++){const _0x47f21d={'id':_0x5d9c8d(0x306),'params':{'unitId':_0x432b08[_0x4f5ef3][_0x5d9c8d(0xd6)],..._0x432b08[_0x4f5ef3][_0x5d9c8d(0x20e)]}},_0x3967c3=this['_transformService']['transformMutation'](_0x490a4f,_0x47f21d,!0x1);if(m[_0x5d9c8d(0x2fc)](_0x3967c3))throw _0x3967c3[_0x5d9c8d(0x110)];_0x490a4f=_0x3967c3[_0x5d9c8d(0x11c)];}return{...a['Tools'][_0x5d9c8d(0x25e)](_0x55d013),'mutations':[_0x490a4f]};}[_0x5f11ba(0x103)](_0x372990){const _0x1fbdaf=_0x5f11ba,{unitID:_0x5413d9}=_0x372990,{history:_0x2030d4,collaboration:_0x49f9bc}=this[_0x1fbdaf(0x261)][_0x1fbdaf(0x291)](_0x5413d9);if(_0x2030d4[_0x1fbdaf(0x173)]===0x0&&_0x49f9bc[_0x1fbdaf(0x173)]===0x0)return;const _0x4ec777=[],_0x51893a=[];let _0x158f29=a[_0x1fbdaf(0x2a0)]['deepClone'](_0x372990['mutations'][0x0]),_0x1593d0=a['Tools'][_0x1fbdaf(0x25e)](_0x372990[_0x1fbdaf(0xf5)][0x0]);for(let _0x19a163=_0x2030d4['length']-0x1;_0x19a163>=0x0;_0x19a163--){const _0x44d273={'id':_0x1fbdaf(0x306),'params':{'unitId':_0x2030d4[_0x19a163]['unitId'],..._0x2030d4[_0x19a163][_0x1fbdaf(0x24b)]}},_0x268e59={'id':_0x1fbdaf(0x306),'params':{'unitId':_0x2030d4[_0x19a163][_0x1fbdaf(0xd6)],..._0x2030d4[_0x19a163][_0x1fbdaf(0x20e)]}},_0x137cf5=this['_transformService'][_0x1fbdaf(0x1d7)](_0x158f29,_0x44d273,!0x1),_0x5128c8=this[_0x1fbdaf(0x327)][_0x1fbdaf(0x1d7)](_0x1593d0,_0x268e59,!0x1);if(m[_0x1fbdaf(0x2fc)](_0x137cf5))throw _0x137cf5[_0x1fbdaf(0x110)];if(m[_0x1fbdaf(0x2fc)](_0x5128c8))throw _0x5128c8[_0x1fbdaf(0x110)];_0x4ec777[_0x1fbdaf(0x1cf)]({..._0x2030d4[_0x19a163],'undoState':_0x137cf5['m2Prime']['params'],'redoState':_0x5128c8['m2Prime']['params']}),_0x158f29=_0x137cf5[_0x1fbdaf(0x11c)],_0x1593d0=_0x5128c8[_0x1fbdaf(0x11c)];}_0x158f29=a[_0x1fbdaf(0x2a0)][_0x1fbdaf(0x25e)](_0x372990[_0x1fbdaf(0xf5)][0x0]),_0x1593d0=a[_0x1fbdaf(0x2a0)][_0x1fbdaf(0x25e)](_0x372990[_0x1fbdaf(0xf5)][0x0]);for(let _0x415dbc=_0x49f9bc[_0x1fbdaf(0x173)]-0x1;_0x415dbc>=0x0;_0x415dbc--){const _0x4e9844={'id':_0x1fbdaf(0x306),'params':{'unitId':_0x49f9bc[_0x415dbc]['unitId'],..._0x49f9bc[_0x415dbc][_0x1fbdaf(0x24b)]}},_0x2f7153={'id':_0x1fbdaf(0x306),'params':{'unitId':_0x49f9bc[_0x415dbc][_0x1fbdaf(0xd6)],..._0x49f9bc[_0x415dbc][_0x1fbdaf(0x20e)]}},_0x122050=this['_transformService'][_0x1fbdaf(0x1d7)](_0x158f29,_0x4e9844,!0x1),_0x32dc46=this[_0x1fbdaf(0x327)][_0x1fbdaf(0x1d7)](_0x1593d0,_0x2f7153,!0x1);if(m[_0x1fbdaf(0x2fc)](_0x122050))throw _0x122050['error'];if(m[_0x1fbdaf(0x2fc)](_0x32dc46))throw _0x32dc46['error'];_0x51893a[_0x1fbdaf(0x1cf)]({..._0x49f9bc[_0x415dbc],'undoState':_0x122050['m2Prime']['params'],'redoState':_0x32dc46[_0x1fbdaf(0x237)][_0x1fbdaf(0xf8)]}),_0x158f29=_0x122050[_0x1fbdaf(0x11c)],_0x1593d0=_0x32dc46[_0x1fbdaf(0x11c)];}this[_0x1fbdaf(0x261)][_0x1fbdaf(0x353)](_0x5413d9,{'history':_0x4ec777,'collaboration':_0x51893a});}};J=Ht([le(0x0,a['Inject'](a[_0x5f11ba(0x281)])),le(0x1,m['ITransformService']),le(0x2,a['Inject'](E[_0x5f11ba(0x27e)]))],J);var Yt=Object[_0x5f11ba(0x2f9)],Wt=(_0x5662c6,_0x3d12b9,_0x20d4f3,_0x28d22b)=>{const _0xf6e4e3=_0x5f11ba;for(var _0x207605=_0x28d22b>0x1?void 0x0:_0x28d22b?Yt(_0x3d12b9,_0x20d4f3):_0x3d12b9,_0xdbf69d=_0x5662c6[_0xf6e4e3(0x173)]-0x1,_0x42c707;_0xdbf69d>=0x0;_0xdbf69d--)(_0x42c707=_0x5662c6[_0xdbf69d])&&(_0x207605=_0x42c707(_0x207605)||_0x207605);return _0x207605;},Ne=(_0x4611cd,_0x5853e8)=>(_0x2a5263,_0x14b532)=>_0x5853e8(_0x2a5263,_0x14b532,_0x4611cd);let Z=class{constructor(_0x457202,_0x50049e){const _0x17d535=_0x5f11ba;this[_0x17d535(0x206)]=_0x457202,this[_0x17d535(0x327)]=_0x50049e;}[_0x5f11ba(0x1f7)](_0x23bf6b){const _0x4adcc4=_0x5f11ba;var _0x5f3c8c;const _0x22fb5e=this[_0x4adcc4(0x206)][_0x4adcc4(0x2db)](Y['DocSelectionManagerService']),_0x14d493=(_0x5f3c8c=_0x22fb5e[_0x4adcc4(0xef)]())!=null?_0x5f3c8c:[];if(_0x14d493[_0x4adcc4(0x173)]===0x0)return;const _0x1c09ef=_0x23bf6b[_0x4adcc4(0x352)],_0xf91874=[{'id':_0x4adcc4(0x306),'params':{'unitId':_0x1c09ef,'actions':null,'textRanges':_0x14d493}}],_0x2a5c94=this['_transformService'][_0x4adcc4(0x205)](_0x23bf6b,_0xf91874);if(!m[_0x4adcc4(0x248)](_0x2a5c94))throw _0x2a5c94['error'];const _0xe84839=_0x2a5c94['m2Prime'][0x0][_0x4adcc4(0xf8)][_0x4adcc4(0x254)];Array[_0x4adcc4(0x114)](_0xe84839)&&_0xe84839[_0x4adcc4(0x173)]&&_0x22fb5e[_0x4adcc4(0x2f3)](_0xe84839,{'unitId':_0x1c09ef,'subUnitId':_0x1c09ef},!0x1);}};Z=Wt([Ne(0x0,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x281)])),Ne(0x1,m[_0x5f11ba(0xe5)])],Z);var Vt=Object[_0x5f11ba(0x2f9)],Xt=(_0x49d0bf,_0x36be78,_0x541c51,_0xba019c)=>{const _0x5ac22e=_0x5f11ba;for(var _0x5006f7=_0xba019c>0x1?void 0x0:_0xba019c?Vt(_0x36be78,_0x541c51):_0x36be78,_0x5e4522=_0x49d0bf[_0x5ac22e(0x173)]-0x1,_0x1f3f47;_0x5e4522>=0x0;_0x5e4522--)(_0x1f3f47=_0x49d0bf[_0x5e4522])&&(_0x5006f7=_0x1f3f47(_0x5006f7)||_0x5006f7);return _0x5006f7;},N=(_0x56f35f,_0x5ce97c)=>(_0x482983,_0x37b3c5)=>_0x5ce97c(_0x482983,_0x37b3c5,_0x56f35f);let Q=class extends a[_0x5f11ba(0x262)]{constructor(_0xb4484a,_0x5e1d19,_0x552527,_0x198262,_0x23087b,_0x294f8c,_0x3b4871,_0x455472){const _0x3e6dff=_0x5f11ba;super(),h(this,_0x3e6dff(0x344),new d['BehaviorSubject'](u[_0x3e6dff(0x138)][_0x3e6dff(0x134)])),(this[_0x3e6dff(0x261)]=_0xb4484a,this[_0x3e6dff(0x14d)]=_0x5e1d19,this[_0x3e6dff(0x11f)]=_0x552527,this[_0x3e6dff(0x26e)]=_0x198262,this[_0x3e6dff(0xcf)]=_0x23087b,this[_0x3e6dff(0x194)]=_0x294f8c,this[_0x3e6dff(0x34e)]=_0x3b4871,this[_0x3e6dff(0x331)]=_0x455472,this[_0x3e6dff(0x162)]());}[_0x5f11ba(0x162)](){const _0x4860b5=_0x5f11ba;this[_0x4860b5(0x100)](this[_0x4860b5(0x14d)][_0x4860b5(0x159)][_0x4860b5(0x135)](_0x2d6394=>{const _0x48c9b3=_0x4860b5,_0x2fdaaa=this[_0x48c9b3(0x261)][_0x48c9b3(0x136)][_0x48c9b3(0x135)](_0x4d0374=>{const _0x1a5080=_0x48c9b3;if(_0x4d0374==null)return;const {unitId:_0x6fa903,redoState:_0x3e048f,commandId:_0x37faf1}=_0x4d0374;if(_0x6fa903!==_0x2d6394['unitID'])return;const _0x3062c1={'id':_0x37faf1,'type':a['CommandType'][_0x1a5080(0x343)],'params':{'unitId':_0x6fa903,'actions':_0x3e048f['actions'],'textRanges':null}};_0x2d6394[_0x1a5080(0x163)](_0x3062c1);});if(_0x2d6394['disposeWithMe'](_0x2fdaaa),_0x2d6394 instanceof u[_0x48c9b3(0x35b)]){const _0x56d073={'onTransformIME':_0x19ac69=>this['_docTransformIMECacheService']['transformIMECache'](_0x19ac69),'onTransformState':_0x70892b=>this[_0x48c9b3(0x26e)][_0x48c9b3(0x270)](_0x70892b),'onTransformSelections':_0x21ec71=>this['_docTransformSelectionsService'][_0x48c9b3(0x1f7)](_0x21ec71),'onSyncEditingCollabCursor':_0x2e811e=>this[_0x48c9b3(0x194)][_0x48c9b3(0x13f)](_0x2e811e),'onTransformRemoteChangesetByIMECache':_0x1b7a41=>this[_0x48c9b3(0x11f)][_0x48c9b3(0x18e)](_0x1b7a41),'onTransformRemoteChangesetByStateCache':_0x5f1fc3=>this[_0x48c9b3(0x26e)][_0x48c9b3(0x18e)](_0x5f1fc3)};_0x2d6394['addHandlerCallback'](_0x56d073);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x5f11ba(0x27e)])),N(0x1,a[_0x5f11ba(0x116)](u[_0x5f11ba(0x11e)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x5f11ba(0x116)](J)),N(0x4,a[_0x5f11ba(0x116)](Z)),N(0x5,a[_0x5f11ba(0x116)](Ce)),N(0x6,O['IMessageService']),N(0x7,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x2c9)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0xbf6912,_0x80d249,_0x14a8d4,_0x282955)=>{for(var _0x5b128f=_0x282955>0x1?void 0x0:_0x282955?Gt(_0x80d249,_0x14a8d4):_0x80d249,_0x122345=_0xbf6912['length']-0x1,_0x4fb30b;_0x122345>=0x0;_0x122345--)(_0x4fb30b=_0xbf6912[_0x122345])&&(_0x5b128f=_0x4fb30b(_0x5b128f)||_0x5b128f);return _0x5b128f;},_e=(_0x3c3c8f,_0x232070)=>(_0x129d35,_0x65ec3d)=>_0x232070(_0x129d35,_0x65ec3d,_0x3c3c8f);let ge=class extends a['Disposable']{constructor(_0x3c619d,_0x735940,_0x1b6a91){const _0x128ad5=_0x5f11ba;super(),h(this,'_cachedData',new Map()),h(this,_0x128ad5(0x2ca),new Map()),h(this,_0x128ad5(0x351),!0x1),(this[_0x128ad5(0x1a6)]=_0x3c619d,this[_0x128ad5(0x1f5)]=_0x735940,this[_0x128ad5(0x12d)]=_0x1b6a91);}[_0x5f11ba(0x356)](){const _0x4c4891=_0x5f11ba;this[_0x4c4891(0x351)]=!0x0;}[_0x5f11ba(0x107)](){const _0xa84609=_0x5f11ba;this[_0xa84609(0x351)]=!0x1;}get[_0x5f11ba(0x220)](){return this['_saveTaskMap'];}['dispose'](){const _0x25a272=_0x5f11ba;this[_0x25a272(0x1f2)]()[_0x25a272(0x358)](()=>super[_0x25a272(0xe7)]());}async[_0x5f11ba(0x226)](_0x1414fe){const _0x598800=_0x5f11ba;return this['_disabled']?null:this[_0x598800(0x1f5)][_0x598800(0x33d)](u[_0x598800(0x265)](_0x1414fe));}async[_0x5f11ba(0x27d)](_0x1f8dde,_0x4d9a19){const _0x223873=_0x5f11ba;return!!this[_0x223873(0x1f5)][_0x223873(0x29e)](_0x1f8dde,_0x4d9a19);}[_0x5f11ba(0x28d)](_0x16f687,_0x56abe0,_0xe3c426,_0x3f1030){const _0x37f464=_0x5f11ba,_0xf15aa9=this['_revisionService'][_0x37f464(0x204)](_0x16f687);this[_0x37f464(0x1db)][_0x37f464(0x286)](_0x16f687,{'unitID':_0x16f687,'type':_0x56abe0,'awaitingChangeset':_0xe3c426,'mutations':_0x3f1030,'rev':_0xf15aa9}),this[_0x37f464(0x2ca)]['has'](_0x16f687)||this['_scheduleSaving'](_0x16f687);}[_0x5f11ba(0x130)](_0x157bee){const _0x422418=_0x5f11ba,_0x3ef99f=this[_0x422418(0x140)]();_0x3ef99f===0x0?this['_saveCache'](_0x157bee):this['_saveTaskMap'][_0x422418(0x286)](_0x157bee,setTimeout(()=>this[_0x422418(0x2d8)](_0x157bee),_0x3ef99f));}[_0x5f11ba(0x140)](){const _0x326eec=_0x5f11ba;var _0x466d15;return(_0x466d15=this[_0x326eec(0x1a6)][_0x326eec(0x24f)](u[_0x326eec(0x1fa)]))!=null?_0x466d15:u[_0x326eec(0x15f)];}[_0x5f11ba(0x2d8)](_0x3315f1){const _0xa59ee3=_0x5f11ba,_0x439b1b=this[_0xa59ee3(0x2ca)][_0xa59ee3(0x2db)](_0x3315f1);return _0x439b1b!==void 0x0&&window[_0xa59ee3(0x32a)](_0x439b1b),this[_0xa59ee3(0x1f5)]['setItem'](u[_0xa59ee3(0x265)](_0x3315f1),this['_cachedData'][_0xa59ee3(0x2db)](_0x3315f1))[_0xa59ee3(0x358)](()=>this[_0xa59ee3(0x2ca)][_0xa59ee3(0x25b)](_0x3315f1));}async[_0x5f11ba(0x1f2)](){const _0x44e80e=_0x5f11ba,_0xc8e6c5=[];this[_0x44e80e(0x2ca)][_0x44e80e(0x307)]((_0x379dbc,_0x8b726e)=>{const _0x4f6735=_0x44e80e;window['clearTimeout'](_0x379dbc),_0xc8e6c5[_0x4f6735(0x1be)](this[_0x4f6735(0x2d8)](_0x8b726e)['then'](()=>{this['_saveTaskMap']['delete'](_0x8b726e);}));}),await Promise[_0x44e80e(0x10c)](_0xc8e6c5);}};ge=Kt([_e(0x0,a[_0x5f11ba(0x235)]),_e(0x1,a[_0x5f11ba(0x152)]),_e(0x2,a['Inject'](m[_0x5f11ba(0x124)]))],ge);class Be extends a[_0x5f11ba(0x164)]{constructor(){const _0x264ae5=_0x5f11ba;super(),h(this,_0x264ae5(0x1ca)),this[_0x264ae5(0x1ca)]=d['fromEvent'](window,_0x264ae5(0x23d))['pipe'](d[_0x264ae5(0x1ee)](this[_0x264ae5(0x193)]),d[_0x264ae5(0x177)](0x1),d[_0x264ae5(0xd0)](void 0x0));}[_0x5f11ba(0x2d6)](_0x2df765,_0x515128,_0x1a158c=!0x1){const _0x36c22f=_0x5f11ba,_0x1cecf2=new URL(window['location'][_0x36c22f(0x1a7)]);_0x1cecf2[_0x36c22f(0x2c6)]['set'](_0x2df765,_0x515128),_0x1a158c?window[_0x36c22f(0x324)][_0x36c22f(0x227)]('','',_0x1cecf2['toString']()):window[_0x36c22f(0x324)][_0x36c22f(0x22e)]('','',_0x1cecf2[_0x36c22f(0x1e6)]());}[_0x5f11ba(0x310)](_0x57f660,_0x5be971=!0x1){const _0x2f7b6e=_0x5f11ba,_0xad4d01=new URL(window[_0x2f7b6e(0x268)][_0x2f7b6e(0x1a7)]);_0xad4d01[_0x2f7b6e(0x2c6)]['delete'](_0x57f660),_0x5be971?window[_0x2f7b6e(0x324)][_0x2f7b6e(0x227)]('','',_0xad4d01['toString']()):window['history'][_0x2f7b6e(0x22e)]('','',_0xad4d01[_0x2f7b6e(0x1e6)]());}['getParam'](_0x325511){const _0x167afe=_0x5f11ba;var _0x15b7dc;return(_0x15b7dc=new URL(window['location']['href'])[_0x167afe(0x2c6)][_0x167afe(0x2db)](_0x325511))!=null?_0x15b7dc:void 0x0;}}var qt=Object[_0x5f11ba(0x104)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x52d087,_0x26c2e9,_0x555a9f)=>_0x26c2e9 in _0x52d087?qt(_0x52d087,_0x26c2e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x555a9f}):_0x52d087[_0x26c2e9]=_0x555a9f,Zt=(_0x3bbc1e,_0x13b5b6,_0x538830,_0xd0709f)=>{for(var _0x2116d5=_0xd0709f>0x1?void 0x0:_0xd0709f?zt(_0x13b5b6,_0x538830):_0x13b5b6,_0x355d55=_0x3bbc1e['length']-0x1,_0x258c56;_0x355d55>=0x0;_0x355d55--)(_0x258c56=_0x3bbc1e[_0x355d55])&&(_0x2116d5=_0x258c56(_0x2116d5)||_0x2116d5);return _0x2116d5;},he=(_0x4dbde4,_0x4f4c94)=>(_0x4bb71e,_0x4f5caf)=>_0x4f4c94(_0x4bb71e,_0x4f5caf,_0x4dbde4),Qt=(_0x39d076,_0x17ca4a,_0x216ba6)=>Jt(_0x39d076,_0x17ca4a+'',_0x216ba6);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x5f11ba(0x300)]=class extends a[_0x5f11ba(0x305)]{constructor(_0x16ff07=Ue,_0x26e028,_0x5e754e,_0x12a35f){const _0x492e9c=_0x5f11ba;super(),this['_config']=_0x16ff07,this[_0x492e9c(0x28c)]=_0x26e028,this[_0x492e9c(0x206)]=_0x5e754e,this[_0x492e9c(0x1a6)]=_0x12a35f;const {..._0x579412}=a['merge']({},Ue,this[_0x492e9c(0x334)]);this[_0x492e9c(0x1a6)][_0x492e9c(0x190)]($t,_0x579412);}[_0x5f11ba(0x253)](){const _0xf7a57f=_0x5f11ba;this[_0xf7a57f(0x22d)](),this[_0xf7a57f(0x346)]();}[_0x5f11ba(0xee)](){const _0x4c8e41=_0x5f11ba;this[_0x4c8e41(0x2f4)]();}[_0x5f11ba(0x22d)](){const _0x2e1a04=_0x5f11ba;var _0x830a5f;const _0x2116e8=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x2e1a04(0x1fe)],{'useClass':G[_0x2e1a04(0xe4)]}],[u[_0x2e1a04(0x1fc)],{'useClass':ge}],[exports[_0x2e1a04(0x1b8)]],[Q],[q],[x],[de],[exports[_0x2e1a04(0x25c)]]];a['registerDependencies'](this[_0x2e1a04(0x206)],a[_0x2e1a04(0x210)](_0x2116e8,(_0x830a5f=this[_0x2e1a04(0x334)])==null?void 0x0:_0x830a5f[_0x2e1a04(0x326)]));}[_0x5f11ba(0x2f4)](){const _0x2fe0e9=_0x5f11ba;this[_0x2fe0e9(0x100)](this['_renderManagerService'][_0x2fe0e9(0x171)](a[_0x2fe0e9(0x35c)][_0x2fe0e9(0x32e)],[fe])),this[_0x2fe0e9(0x100)](this[_0x2fe0e9(0x28c)][_0x2fe0e9(0x171)](a[_0x2fe0e9(0x35c)]['UNIVER_SHEET'],[ve]));}[_0x5f11ba(0x346)](){const _0x24513e=_0x5f11ba;a[_0x24513e(0x11a)](this[_0x24513e(0x206)],[[x],[exports[_0x24513e(0x1b8)]],[Q],[q],[exports[_0x24513e(0x25c)]]]);}},Qt(exports[_0x5f11ba(0x300)],_0x5f11ba(0x33c),es),exports[_0x5f11ba(0x300)]=Zt([a[_0x5f11ba(0x27c)](u[_0x5f11ba(0x24a)]),he(0x1,p[_0x5f11ba(0x17e)]),he(0x2,a['Inject'](a['Injector'])),he(0x3,a['IConfigService'])],exports[_0x5f11ba(0x300)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x1ae1f1,_0x5ad412,_0x4e8e52,_0x1d7945)=>{const _0x527b58=_0x5f11ba;for(var _0x497b3c=_0x1d7945>0x1?void 0x0:_0x1d7945?ts(_0x5ad412,_0x4e8e52):_0x5ad412,_0x7ca9c1=_0x1ae1f1[_0x527b58(0x173)]-0x1,_0x26ae62;_0x7ca9c1>=0x0;_0x7ca9c1--)(_0x26ae62=_0x1ae1f1[_0x7ca9c1])&&(_0x497b3c=_0x26ae62(_0x497b3c)||_0x497b3c);return _0x497b3c;},H=(_0xacedab,_0x3551e5)=>(_0xa6aa78,_0xc35d4e)=>_0x3551e5(_0xa6aa78,_0xc35d4e,_0xacedab);exports['BrowserCollaborationSocketService']=class extends u[_0x5f11ba(0x161)]{constructor(_0x21fb63,_0x1779f7,_0x180bcc,_0x383db4,_0x5c5a80){super(_0x21fb63,_0x1779f7,_0x180bcc,_0x383db4,_0x5c5a80);}async['createSocket'](_0x21bbb5){const _0x29c6a4=_0x5f11ba,_0x3bd84e=await this[_0x29c6a4(0x2ef)](),_0x5edcbb=this[_0x29c6a4(0x33e)](_0x21bbb5,_0x3bd84e);return this[_0x29c6a4(0x216)](_0x5edcbb);}[_0x5f11ba(0x33e)](_0x3a36b5,_0x29fa02){const _0x595809=_0x5f11ba,_0x38933b=typeof window>'u'?new URL(_0x3a36b5):new URL(_0x3a36b5,window[_0x595809(0x268)][_0x595809(0x189)]);_0x38933b[_0x595809(0x2c6)][_0x595809(0x286)](_0x595809(0x274),_0x29fa02);const _0x56d293=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x595809(0x268)]['search']);return _0x56d293['get'](_0x595809(0x108))&&_0x38933b[_0x595809(0x2c6)][_0x595809(0x286)](_0x595809(0x108),_0x56d293[_0x595809(0x2db)]('runId')),_0x38933b[_0x595809(0x1e6)]();}async[_0x5f11ba(0x2ef)](){const _0x3cbb63=_0x5f11ba;var _0x48d82e,_0x35a54d,_0xa59fb1;const _0x315f7e=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x22010f=(_0x48d82e=_0x315f7e==null?void 0x0:_0x315f7e[_0x3cbb63(0x1a0)])!=null?_0x48d82e:u[_0x3cbb63(0x28f)];return(_0xa59fb1=(_0x35a54d=(await this[_0x3cbb63(0x2f2)]['get'](_0x22010f,{'headers':{'Content-Type':_0x3cbb63(0x176)}}))[_0x3cbb63(0x22b)])==null?void 0x0:_0x35a54d[_0x3cbb63(0x222)])!=null?_0xa59fb1:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x281)])),H(0x1,a[_0x5f11ba(0x116)](G[_0x5f11ba(0x10d)])),H(0x2,a[_0x5f11ba(0x235)]),H(0x3,a[_0x5f11ba(0x1f6)]),H(0x4,m[_0x5f11ba(0x23e)])],exports[_0x5f11ba(0x2e7)]);const Me=0x7530,Le=_0x5f11ba(0x2c8);class is extends a[_0x5f11ba(0x262)]{constructor(){const _0x55ef5c=_0x5f11ba;super(),h(this,_0x55ef5c(0x247),a[_0x55ef5c(0x29d)]()),h(this,_0x55ef5c(0x312),new Set()),h(this,_0x55ef5c(0x1bc),new Map()),h(this,_0x55ef5c(0x153),null),h(this,_0x55ef5c(0x2f8),new Map()),h(this,_0x55ef5c(0x315),new Map()),this[_0x55ef5c(0x242)]();}[_0x5f11ba(0xe7)](){const _0x2bbe97=_0x5f11ba;super['dispose'](),this[_0x2bbe97(0x2f8)]['forEach']((_0x59e844,_0x292779)=>this[_0x2bbe97(0x167)](_0x292779)),this[_0x2bbe97(0x153)]&&window[_0x2bbe97(0x24e)](this[_0x2bbe97(0x153)]);}[_0x5f11ba(0x1c7)](_0x56f6c9){const _0x1079b2=_0x5f11ba;return this[_0x1079b2(0x328)](_0x56f6c9)[_0x1079b2(0x2ab)](d[_0x1079b2(0x12f)]());}[_0x5f11ba(0x119)](_0x5e15a3){const _0x1a8de4=_0x5f11ba;this[_0x1a8de4(0x312)][_0x1a8de4(0x22c)]===0x0&&this[_0x1a8de4(0x1b3)](),this[_0x1a8de4(0x312)][_0x1a8de4(0x284)](_0x5e15a3),this[_0x1a8de4(0x363)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5e15a3],'isForwarded':!0x1});}['disposeUnit'](_0x1ba1b){const _0x54d89a=_0x5f11ba;this[_0x54d89a(0x312)][_0x54d89a(0x25b)](_0x1ba1b),this[_0x54d89a(0x312)][_0x54d89a(0x22c)]===0x0&&this[_0x54d89a(0x153)]&&window[_0x54d89a(0x24e)](this[_0x54d89a(0x153)]);}[_0x5f11ba(0x242)](){const _0x343dc1=_0x5f11ba;this[_0x343dc1(0x100)](a[_0x343dc1(0x301)](d[_0x343dc1(0x2a7)](window,_0x343dc1(0x359))[_0x343dc1(0x135)](_0x3992d8=>{const _0x5e6610=_0x343dc1;if(_0x3992d8['key']!==Le||!_0x3992d8['newValue'])return;const _0x52b616=JSON['parse'](_0x3992d8[_0x5e6610(0x18f)]);this[_0x5e6610(0x313)](_0x52b616);}))),window[_0x343dc1(0xec)](_0x343dc1(0x298),()=>this[_0x343dc1(0x363)]({'type':0x1,'memberID':this[_0x343dc1(0x247)],'unitIDs':Array['from'](this[_0x343dc1(0x312)])}));}['_handleEvent'](_0x17a157){const _0x2c0323=_0x5f11ba;switch(_0x17a157[_0x2c0323(0x23c)]){case 0x0:this['_handleJoinEvent'](_0x17a157);break;case 0x1:this['_handleLeaveEvent'](_0x17a157);break;case 0x2:this[_0x2c0323(0x1ff)](_0x17a157);break;}}[_0x5f11ba(0x1c1)](_0x4f857c){const _0x5d59ae=_0x5f11ba,{unitIDs:_0x1135ef,memberID:_0x354810,isForwarded:_0xb26e7e}=_0x4f857c;_0x1135ef['forEach'](_0xb898bf=>{const _0x52454d=_0x32ae;if(!_0xb26e7e&&this['_unitOnClients']['has'](_0xb898bf)&&this[_0x52454d(0x328)](_0xb898bf)[_0x52454d(0x2e3)](u[_0x52454d(0x2b2)]['OTHER_CLIENTS_EDITING']),!this[_0x52454d(0x1bc)][_0x52454d(0x191)](_0xb898bf)||!this[_0x52454d(0x1bc)][_0x52454d(0x2db)](_0xb898bf)[_0x52454d(0x191)](_0x354810)){const _0x5c738d=this['_unitOnClients'][_0x52454d(0x2db)](_0xb898bf)||new Set();_0x5c738d[_0x52454d(0x284)](_0x354810),this[_0x52454d(0x1bc)][_0x52454d(0x286)](_0xb898bf,_0x5c738d),this[_0x52454d(0x1b4)](_0x354810);}}),_0xb26e7e||this[_0x5d59ae(0x363)]({'type':0x0,'memberID':this[_0x5d59ae(0x247)],'unitIDs':[...this[_0x5d59ae(0x312)]],'isForwarded':!0x0});}[_0x5f11ba(0x1b4)](_0x25191b){const _0x57b629=_0x5f11ba;this[_0x57b629(0x167)](_0x25191b);const _0x38148a=window[_0x57b629(0x1d5)](()=>{const _0x4d1171=_0x57b629;this[_0x4d1171(0x1bc)][_0x4d1171(0x307)](_0x37ad50=>{_0x37ad50['delete'](_0x25191b);});},Me*0x2);this['_clearOtherTimers'][_0x57b629(0x286)](_0x25191b,_0x38148a);}[_0x5f11ba(0x167)](_0x5104ad){const _0x526613=_0x5f11ba;if(this[_0x526613(0x2f8)][_0x526613(0x191)](_0x5104ad)){const _0x53c10f=this[_0x526613(0x2f8)][_0x526613(0x2db)](_0x5104ad);_0x53c10f&&window[_0x526613(0x32a)](_0x53c10f),this[_0x526613(0x2f8)][_0x526613(0x286)](_0x5104ad,null);}}[_0x5f11ba(0x30d)](_0x43c72b){const _0x5b9d1b=_0x5f11ba,{memberID:_0x48ef72,unitIDs:_0x4f0466}=_0x43c72b;_0x4f0466[_0x5b9d1b(0x307)](_0x51c760=>{const _0x54fa3b=_0x5b9d1b;var _0xc173cc;const _0x38bf29=this[_0x54fa3b(0x1bc)]['get'](_0x51c760);_0x38bf29&&(_0x38bf29[_0x54fa3b(0x25b)](_0x48ef72),(_0xc173cc=this[_0x54fa3b(0x328)](_0x51c760))==null||_0xc173cc[_0x54fa3b(0x2e3)](_0x38bf29[_0x54fa3b(0x22c)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0x54fa3b(0x34c)]));}),this[_0x5b9d1b(0x167)](_0x48ef72);}[_0x5f11ba(0x1ff)](_0x4187df){const _0x4ec210=_0x5f11ba;this['_scheduleClearOtherTimer'](_0x4187df[_0x4ec210(0x213)]);}[_0x5f11ba(0x363)](_0x4a220e){const _0x5bc191=_0x5f11ba;localStorage['setItem'](Le,JSON[_0x5bc191(0x180)](_0x4a220e));}[_0x5f11ba(0x1b3)](){const _0x5f11e7=_0x5f11ba;this[_0x5f11e7(0x153)]=window[_0x5f11e7(0x27a)](()=>{const _0xb91827=_0x5f11e7;this[_0xb91827(0x363)]({'type':0x2,'memberID':this[_0xb91827(0x247)]});},Me);}[_0x5f11ba(0x328)](_0x5d12a7){const _0x24206e=_0x5f11ba;return this['_unitStatus'][_0x24206e(0x191)](_0x5d12a7)||this[_0x24206e(0x315)][_0x24206e(0x286)](_0x5d12a7,new d[(_0x24206e(0x1d3))](u[_0x24206e(0x2b2)][_0x24206e(0x1c5)])),this['_unitStatus'][_0x24206e(0x2db)](_0x5d12a7);}}var je=(_0x36b44b=>(_0x36b44b[_0x36b44b[_0x5f11ba(0x285)]=0x0]=_0x5f11ba(0x285),_0x36b44b[_0x36b44b['OK']=0x1]='OK',_0x36b44b[_0x36b44b[_0x5f11ba(0x174)]=0x2]='INTERNAL_ERROR',_0x36b44b[_0x36b44b['PERMISSION_DENIED']=0x3]=_0x5f11ba(0x2d2),_0x36b44b[_0x36b44b['NOT_FOUND']=0x4]=_0x5f11ba(0x1c3),_0x36b44b[_0x36b44b[_0x5f11ba(0x185)]=0x5]=_0x5f11ba(0x185),_0x36b44b[_0x36b44b[_0x5f11ba(0x1f8)]=0x6]=_0x5f11ba(0x1f8),_0x36b44b[_0x36b44b[_0x5f11ba(0xfc)]=0x7]=_0x5f11ba(0xfc),_0x36b44b[_0x36b44b[_0x5f11ba(0x1bb)]=0x8]='TOO_MANY_REQUESTS',_0x36b44b[_0x36b44b[_0x5f11ba(0x260)]=0x9]=_0x5f11ba(0x260),_0x36b44b[_0x36b44b[_0x5f11ba(0xd8)]=0xa]=_0x5f11ba(0xd8),_0x36b44b[_0x36b44b[_0x5f11ba(0x1df)]=0xb]=_0x5f11ba(0x1df),_0x36b44b[_0x36b44b[_0x5f11ba(0x13b)]=0xc]=_0x5f11ba(0x13b),_0x36b44b[_0x36b44b[_0x5f11ba(0x340)]=0xd]=_0x5f11ba(0x340),_0x36b44b[_0x36b44b[_0x5f11ba(0x28e)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x36b44b[_0x36b44b['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x5f11ba(0x2bd),_0x36b44b[_0x36b44b[_0x5f11ba(0x2d1)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x36b44b[_0x36b44b['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x5f11ba(0x13e),_0x36b44b[_0x36b44b['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x5f11ba(0x35e),_0x36b44b[_0x36b44b[_0x5f11ba(0xdd)]=0x1b59]=_0x5f11ba(0xdd),_0x36b44b[_0x36b44b[_0x5f11ba(0x1eb)]=0x1b5a]=_0x5f11ba(0x1eb),_0x36b44b[_0x36b44b[_0x5f11ba(0x2ac)]=0x1b5b]=_0x5f11ba(0x2ac),_0x36b44b[_0x36b44b['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5f11ba(0xf2),_0x36b44b[_0x36b44b[_0x5f11ba(0x19d)]=0x1b5d]=_0x5f11ba(0x19d),_0x36b44b[_0x36b44b['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x5f11ba(0x299),_0x36b44b[_0x36b44b[_0x5f11ba(0xdb)]=0x2329]=_0x5f11ba(0xdb),_0x36b44b[_0x36b44b[_0x5f11ba(0x2e6)]=0x232a]=_0x5f11ba(0x2e6),_0x36b44b[_0x36b44b['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x5f11ba(0x2d7),_0x36b44b[_0x36b44b[_0x5f11ba(0x2aa)]=0x232c]=_0x5f11ba(0x2aa),_0x36b44b[_0x36b44b[_0x5f11ba(0x139)]=0x232d]=_0x5f11ba(0x139),_0x36b44b[_0x36b44b[_0x5f11ba(0xe0)]=0x2711]=_0x5f11ba(0xe0),_0x36b44b[_0x36b44b[_0x5f11ba(0x29c)]=0x2712]=_0x5f11ba(0x29c),_0x36b44b[_0x36b44b['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5f11ba(0x273),_0x36b44b[_0x36b44b['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x36b44b[_0x36b44b[_0x5f11ba(0x168)]=0x271a]=_0x5f11ba(0x168),_0x36b44b[_0x36b44b[_0x5f11ba(0x287)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x36b44b[_0x36b44b['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x5f11ba(0x336),_0x36b44b[_0x36b44b[_0x5f11ba(0x279)]=0x271d]=_0x5f11ba(0x279),_0x36b44b[_0x36b44b[_0x5f11ba(0x1d8)]=0x271e]=_0x5f11ba(0x1d8),_0x36b44b[_0x36b44b[_0x5f11ba(0x10b)]=0x271f]=_0x5f11ba(0x10b),_0x36b44b[_0x36b44b['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x5f11ba(0x10a),_0x36b44b[_0x36b44b[_0x5f11ba(0xe3)]=0x2af9]=_0x5f11ba(0xe3),_0x36b44b[_0x36b44b[_0x5f11ba(0x1c6)]=0x2ee1]=_0x5f11ba(0x1c6),_0x36b44b[_0x36b44b[_0x5f11ba(0x182)]=0x2ee2]=_0x5f11ba(0x182),_0x36b44b[_0x36b44b[_0x5f11ba(0x1a1)]=0x2ee3]=_0x5f11ba(0x1a1),_0x36b44b[_0x36b44b['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x36b44b[_0x36b44b['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5f11ba(0x357),_0x36b44b[_0x36b44b[_0x5f11ba(0x129)]=0x32c9]=_0x5f11ba(0x129),_0x36b44b[_0x36b44b['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x36b44b[_0x36b44b[_0x5f11ba(0x20c)]=0x32cb]=_0x5f11ba(0x20c),_0x36b44b[_0x36b44b[_0x5f11ba(0x1c0)]=-0x1]=_0x5f11ba(0x1c0),_0x36b44b))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x8a80e9,_0x5c8947,_0x496ac8,_0x1b185d)=>{const _0x1d9428=_0x5f11ba;for(var _0x379404=_0x1b185d>0x1?void 0x0:_0x1b185d?ns(_0x5c8947,_0x496ac8):_0x5c8947,_0x567dd8=_0x8a80e9[_0x1d9428(0x173)]-0x1,_0x402eb0;_0x567dd8>=0x0;_0x567dd8--)(_0x402eb0=_0x8a80e9[_0x567dd8])&&(_0x379404=_0x402eb0(_0x379404)||_0x379404);return _0x379404;},ue=(_0x5d0911,_0x31d61c)=>(_0x57562f,_0x55a9bb)=>_0x31d61c(_0x57562f,_0x55a9bb,_0x5d0911);exports['RemoteUniscriptService']=class extends a[_0x5f11ba(0x262)]{constructor(_0x4c94bf,_0x35e288,_0x39a643){const _0x402efa=_0x5f11ba;super(),this['_instanceService']=_0x4c94bf,this[_0x402efa(0x2f2)]=_0x35e288,this[_0x402efa(0x1a6)]=_0x39a643;}async[_0x5f11ba(0x106)](_0x49817b,_0x3a5799,_0x4bd396,..._0x23114b){const _0x775eed=_0x5f11ba;var _0xa11f93,_0x4fd0ca,_0x5096fe,_0x9a8a40;const _0x425692=this['_instanceService'][_0x775eed(0x2b5)]();if(!_0x425692)throw new Error(_0x775eed(0x2c5));const _0x2841ac=((_0xa11f93=this['_configService'][_0x775eed(0x24f)](u[_0x775eed(0x30c)]))!=null?_0xa11f93:u[_0x775eed(0x221)])+'/'+_0x49817b+_0x775eed(0x143)+_0x3a5799,_0x2ef7ed=new URL(window[_0x775eed(0x268)][_0x775eed(0x1a7)]),_0x13e0a6={'scriptId':_0x49817b,'runId':(_0x4fd0ca=_0x2ef7ed[_0x775eed(0x2c6)]['get'](_0x775eed(0x108)))!=null?_0x4fd0ca:'','function':_0x3a5799,'unitId':_0x425692['getUnitId'](),'argsOfFunction':JSON[_0x775eed(0x180)](_0x23114b),'invokeId':(_0x5096fe=_0x4bd396['invokeId'])!=null?_0x5096fe:'','executionId':(_0x9a8a40=_0x4bd396[_0x775eed(0x2ad)])!=null?_0x9a8a40:''};try{const _0x31c1f0=await this[_0x775eed(0x2f2)][_0x775eed(0x2af)](_0x2841ac,{'body':_0x13e0a6});return _0x31c1f0[_0x775eed(0x22b)][_0x775eed(0x110)]&&_0x31c1f0[_0x775eed(0x22b)][_0x775eed(0x110)][_0x775eed(0x202)]!==je['OK']?_0x775eed(0x15a):_0x31c1f0[_0x775eed(0x22b)][_0x775eed(0x26f)];}catch{return'Failed';}}},exports[_0x5f11ba(0x2bc)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x5f11ba(0x116)](G['HTTPService'])),ue(0x2,a[_0x5f11ba(0x235)])],exports[_0x5f11ba(0x2bc)]),exports[_0x5f11ba(0x24d)]=xe,exports[_0x5f11ba(0xe6)]=Ee,exports[_0x5f11ba(0x2d3)]=we,exports[_0x5f11ba(0xd1)]=is,exports[_0x5f11ba(0x297)]=Be;
|
|
1
|
+
'use strict';const _0x1dafe1=_0xc2a5;(function(_0x14b4d3,_0x1bb27){const _0x267655=_0xc2a5,_0x4e254d=_0x14b4d3();while(!![]){try{const _0x226097=parseInt(_0x267655(0x228))/0x1+parseInt(_0x267655(0xd9))/0x2+parseInt(_0x267655(0x22d))/0x3*(parseInt(_0x267655(0x1e6))/0x4)+parseInt(_0x267655(0x17d))/0x5*(parseInt(_0x267655(0x1c3))/0x6)+parseInt(_0x267655(0x24c))/0x7*(parseInt(_0x267655(0xab))/0x8)+-parseInt(_0x267655(0x2cd))/0x9+-parseInt(_0x267655(0x302))/0xa*(parseInt(_0x267655(0xb8))/0xb);if(_0x226097===_0x1bb27)break;else _0x4e254d['push'](_0x4e254d['shift']());}catch(_0x173ac2){_0x4e254d['push'](_0x4e254d['shift']());}}}(_0x39b9,0xb731b));var Ve=Object[_0x1dafe1(0xb1)],Xe=(_0x4a211e,_0x111bbb,_0x56c1f2)=>_0x111bbb in _0x4a211e?Ve(_0x4a211e,_0x111bbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56c1f2}):_0x4a211e[_0x111bbb]=_0x56c1f2,h=(_0x2fe7ab,_0x41ca73,_0x25bc44)=>Xe(_0x2fe7ab,typeof _0x41ca73!=_0x1dafe1(0x22e)?_0x41ca73+'':_0x41ca73,_0x25bc44);Object[_0x1dafe1(0xb1)](exports,Symbol[_0x1dafe1(0x215)],{'value':_0x1dafe1(0x18b)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x1dafe1(0x115)],ze=(_0x792468,_0x1d2f62,_0x38fd73,_0x9a859f)=>{const _0x349499=_0x1dafe1;for(var _0x10f4e1=_0x9a859f>0x1?void 0x0:_0x9a859f?qe(_0x1d2f62,_0x38fd73):_0x1d2f62,_0x2a60c0=_0x792468[_0x349499(0x296)]-0x1,_0x5807f5;_0x2a60c0>=0x0;_0x2a60c0--)(_0x5807f5=_0x792468[_0x2a60c0])&&(_0x10f4e1=_0x5807f5(_0x10f4e1)||_0x10f4e1);return _0x10f4e1;},Oe=(_0x33c3a7,_0xe0f663)=>(_0x548527,_0x79fa55)=>_0xe0f663(_0x548527,_0x79fa55,_0x33c3a7);let de=class extends a[_0x1dafe1(0x2d0)]{constructor(_0x2c6a64,_0x50ae10){const _0x178b85=_0x1dafe1;super(),this[_0x178b85(0x192)]=_0x2c6a64,this[_0x178b85(0x223)]=_0x50ae10,this[_0x178b85(0x255)]();}[_0x1dafe1(0x255)](){const _0x1de7ba=_0x1dafe1,_0x1c5932=this;this[_0x1de7ba(0x29f)](this['_docClipboardService'][_0x1de7ba(0xaf)]({'onBeforePasteImage':async _0x225d8d=>{const _0x5d3fe0=_0x1de7ba,_0x4afb73=await _0x1c5932[_0x5d3fe0(0x223)][_0x5d3fe0(0x10e)](_0x225d8d);return _0x4afb73?{'source':_0x4afb73[_0x5d3fe0(0xc8)],'imageSourceType':_0x4afb73['imageSourceType']}:null;}}));}};de=ze([Oe(0x0,E[_0x1dafe1(0x134)]),Oe(0x1,Ge[_0x1dafe1(0x2ee)])],de);const Te=[_0x1dafe1(0xc1),'jiqing.500',_0x1dafe1(0x2f3),_0x1dafe1(0x275),'blue.400','yellow.400'];class me extends a['Disposable']{constructor(){const _0x407f73=_0x1dafe1;super(...arguments),h(this,_0x407f73(0xf7),new Map()),h(this,_0x407f73(0x110),0x0);}['assignAColorForMemberID'](_0x421476){const _0x22354e=_0x1dafe1;if(this[_0x22354e(0xf7)]['has'](_0x421476))return this[_0x22354e(0xf7)]['get'](_0x421476);const _0x2f49ce=Te[this[_0x22354e(0x110)]];return this[_0x22354e(0x110)]=(this[_0x22354e(0x110)]+0x1)%Te[_0x22354e(0x296)],this[_0x22354e(0xf7)][_0x22354e(0x17b)](_0x421476,_0x2f49ce),_0x2f49ce;}}function Pe(_0x234ccf){const _0x5ae1de=_0x1dafe1;let _0x3be878='';for(const _0x2fd6a8 of _0x234ccf){const {startOffset:_0x529991,endOffset:_0x30244c,isActive:_0xdf8a64,rangeType:_0x142f2e,segmentId:_0x12613f,segmentPage:_0x28e1ac}=_0x2fd6a8;_0x3be878[_0x5ae1de(0x296)]&&(_0x3be878+=','),_0x3be878+=_0x529991+':'+_0x30244c+':'+(_0xdf8a64?'1':'0')+':'+_0x142f2e+':'+_0x12613f+':'+_0x28e1ac;}return _0x3be878;}function Je(_0x50014c){const _0x5b2186=_0x1dafe1,_0x3ed3f3=_0x50014c[_0x5b2186(0x1db)](','),_0x217a1e=[];for(const _0x32867c of _0x3ed3f3){const [_0x1ac622,_0x17771f,_0x50b783,_0x56df93,_0x7a1844,_0x41ec6e]=_0x32867c[_0x5b2186(0x1db)](':');_0x217a1e[_0x5b2186(0x27a)]({'startOffset':Number(_0x1ac622),'endOffset':Number(_0x17771f),'collapsed':_0x1ac622===_0x17771f,'isActive':_0x50b783==='1','rangeType':_0x56df93===a[_0x5b2186(0x1c0)][_0x5b2186(0x2f1)]?a[_0x5b2186(0x1c0)]['TEXT']:a[_0x5b2186(0x1c0)][_0x5b2186(0x121)],'segmentId':typeof _0x7a1844==_0x5b2186(0x217)?String(_0x7a1844):'','segmentPage':Number(_0x41ec6e!=null?_0x41ec6e:-0x1)});}return _0x217a1e[_0x5b2186(0x2cf)](_0x1d0ae6=>_0x1d0ae6[_0x5b2186(0x14e)])||(_0x217a1e[0x0]['isActive']=!0x0),_0x217a1e;}class Ce extends a[_0x1dafe1(0x2d0)]{constructor(){const _0x1318a9=_0x1dafe1;super(...arguments),h(this,'_collabCursorState$',new d[(_0x1318a9(0x1f1))](null)),h(this,_0x1318a9(0x15c),this[_0x1318a9(0x1ce)][_0x1318a9(0x170)]());}[_0x1dafe1(0x28d)](_0x214e53){const _0x234507=_0x1dafe1,{unitID:_0x107820,memberID:_0x2accdb,textRanges:_0x3fd41c}=_0x214e53,_0x93dcbd=Pe(_0x3fd41c);if(_0x93dcbd==='')return;const _0x23f5e7={'unitID':_0x107820,'memberID':_0x2accdb,'selection':_0x93dcbd};this[_0x234507(0x1ce)]['next'](_0x23f5e7);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x381a4b,_0x514347,_0x6d5bb9,_0x3a1662)=>{const _0x1c3958=_0x1dafe1;for(var _0x259150=_0x3a1662>0x1?void 0x0:_0x3a1662?Ze(_0x514347,_0x6d5bb9):_0x514347,_0x5ae1b7=_0x381a4b[_0x1c3958(0x296)]-0x1,_0x400b42;_0x5ae1b7>=0x0;_0x5ae1b7--)(_0x400b42=_0x381a4b[_0x5ae1b7])&&(_0x259150=_0x400b42(_0x259150)||_0x259150);return _0x259150;},L=(_0x3478c0,_0x4d8304)=>(_0x61ccfd,_0x45ab23)=>_0x4d8304(_0x61ccfd,_0x45ab23,_0x3478c0);const et=0x12c,tt=0x64;let Ie=class extends a[_0x1dafe1(0x2d0)]{constructor(_0x1b7872,_0x7282d6,_0x20f646,_0x1ad7a6,_0x5a72d7,_0x1ef62f,_0x5d3988,_0x120827,_0x210e9b){const _0x1d8d35=_0x1dafe1;super(),h(this,_0x1d8d35(0x14c),!0x1),h(this,_0x1d8d35(0x255),!0x1),h(this,_0x1d8d35(0x1e9),new d[(_0x1d8d35(0x1f1))](new Map())),h(this,_0x1d8d35(0x309),this[_0x1d8d35(0x1e9)][_0x1d8d35(0x170)]()),h(this,_0x1d8d35(0xbb),new d[(_0x1d8d35(0x1f1))]([])),h(this,'roomMembers$',this[_0x1d8d35(0xbb)][_0x1d8d35(0x1fe)](d[_0x1d8d35(0x1ec)](et))),h(this,_0x1d8d35(0xfc),a[_0x1d8d35(0x1c4)](_0x3d6ae5=>{const _0x5b796e=_0x1d8d35,_0x385f84={'eventID':m[_0x5b796e(0x2c9)][_0x5b796e(0x257)],'data':{'unitID':this[_0x5b796e(0xa7)],'memberID':this['_session'][_0x5b796e(0x202)](),'selection':Pe(_0x3d6ae5)}};this['_session'][_0x5b796e(0x21b)](_0x385f84,this['unitID']);},tt)),(this[_0x1d8d35(0xa7)]=_0x1b7872,this['_session']=_0x7282d6,this[_0x1d8d35(0xf1)]=_0x20f646,this['_colorAssignService']=_0x1ad7a6,this[_0x1d8d35(0x305)]=_0x5a72d7,this[_0x1d8d35(0x163)]=_0x1ef62f,this['_transformService']=_0x5d3988,this[_0x1d8d35(0x106)]=_0x120827,this[_0x1d8d35(0x12a)]=_0x210e9b);}get[_0x1dafe1(0x11b)](){const _0x35b8e9=_0x1dafe1;return this[_0x35b8e9(0x1e9)][_0x35b8e9(0x159)]();}get[_0x1dafe1(0x1af)](){const _0x565243=_0x1dafe1;return this[_0x565243(0xbb)][_0x565243(0x159)]();}[_0x1dafe1(0x10a)](){const _0x57b39a=_0x1dafe1;super[_0x57b39a(0x10a)](),this[_0x57b39a(0x1e9)][_0x57b39a(0x1dd)](new Map()),this[_0x57b39a(0x1e9)][_0x57b39a(0x165)](),this[_0x57b39a(0xbb)][_0x57b39a(0x1dd)]([]),this[_0x57b39a(0xbb)][_0x57b39a(0x165)]();}[_0x1dafe1(0x2fb)](){const _0x5a61ab=_0x1dafe1;this[_0x5a61ab(0x255)]||(this[_0x5a61ab(0x255)]=!0x0,this[_0x5a61ab(0x13f)][_0x5a61ab(0xc0)][_0x5a61ab(0x1fe)](d[_0x5a61ab(0x311)](this[_0x5a61ab(0x2ad)]))[_0x5a61ab(0x21c)](_0x567f77=>{const _0x454d35=_0x5a61ab;_0x567f77===u['SessionStatus']['ONLINE']?this[_0x454d35(0x2e9)]():this[_0x454d35(0x16b)]();}),this[_0x5a61ab(0x13f)][_0x5a61ab(0x1c9)][_0x5a61ab(0x1fe)](d[_0x5a61ab(0x311)](this[_0x5a61ab(0x2ad)]))[_0x5a61ab(0x21c)](_0x4ccbbd=>{const _0x1a6df0=_0x5a61ab,_0x2272cd=_0x4ccbbd['eventID'];_0x2272cd===m['CollaborationEvent'][_0x1a6df0(0x257)]&&this['_onCursorUpdate'](_0x4ccbbd),_0x2272cd===m[_0x1a6df0(0x2c9)][_0x1a6df0(0x171)]&&this[_0x1a6df0(0x26e)](_0x4ccbbd);}),this['disposeWithMe'](this[_0x5a61ab(0x12a)]['onCommandExecuted'](_0x30664f=>{const _0x47a71c=_0x5a61ab,_0x62fcb9=_0x30664f[_0x47a71c(0xf3)];_0x62fcb9!=null&&this['_online']&&_0x30664f['id']===Y[_0x47a71c(0x2b2)]['id']&&_0x62fcb9['unitId']===this[_0x47a71c(0xa7)]&&_0x62fcb9[_0x47a71c(0x1c2)]===!0x1&&_0x62fcb9['ranges'][_0x47a71c(0x296)]>0x0&&this[_0x47a71c(0xfc)](_0x62fcb9['ranges']);})),this['_syncEditingCollabCursorService'][_0x5a61ab(0x15c)][_0x5a61ab(0x1fe)](d[_0x5a61ab(0x311)](this[_0x5a61ab(0x2ad)]))[_0x5a61ab(0x21c)](_0x111e01=>{const _0x2c1a03=_0x5a61ab;if((_0x111e01==null?void 0x0:_0x111e01[_0x2c1a03(0xa7)])!==this['unitID'])return;const _0xce4360={'eventID':m[_0x2c1a03(0x2c9)][_0x2c1a03(0x257)],'data':_0x111e01};this['_onCursorUpdate'](_0xce4360);}),this[_0x5a61ab(0x29f)](this[_0x5a61ab(0x12a)]['onCommandExecuted'](_0x4b06dd=>{const _0x15733c=_0x5a61ab;if(_0x4b06dd['params']==null)return;const _0xfa9c4f=_0x4b06dd[_0x15733c(0xf3)];if(_0x4b06dd['id']!==Y[_0x15733c(0x12d)]['id']||_0xfa9c4f[_0x15733c(0x210)]!==this['unitID'])return;const _0x2b4e0b={'id':'doc.mutation.rich-text-editing','params':_0xfa9c4f},_0x379ca0=this[_0x15733c(0x11b)];for(const [_0x591b76,_0x75f17c]of _0x379ca0){const _0x5a27ba={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x15733c(0xa7)],'actions':null,'textRanges':_0x75f17c[_0x15733c(0x226)]}},_0x232876=this['_transformService'][_0x15733c(0xd1)](_0x2b4e0b,_0x5a27ba,!0x1);if(m[_0x15733c(0x190)](_0x232876))throw _0x232876[_0x15733c(0x20b)];_0x379ca0[_0x15733c(0x17b)](_0x591b76,{..._0x75f17c,'ranges':_0x232876['m2Prime'][_0x15733c(0xf3)]['textRanges']});}queueMicrotask(()=>{const _0x1efd25=_0x15733c;this[_0x1efd25(0x1e9)]['next'](_0x379ca0);});})));}['_onCursorUpdate'](_0x1927cb){const _0x3a68da=_0x1dafe1;var _0x185044,_0x19297d;const {memberID:_0x84f346,selection:_0x5f298d}=_0x1927cb[_0x3a68da(0x28c)],_0x2b4d1f=Je(_0x5f298d),_0x10319d=(_0x19297d=(_0x185044=this[_0x3a68da(0x305)]['getMember'](this[_0x3a68da(0xa7)],_0x84f346))==null?void 0x0:_0x185044[_0x3a68da(0x2a6)])!=null?_0x19297d:_0x3a68da(0x310),_0x57557e={'color':this[_0x3a68da(0x308)][_0x3a68da(0xb2)](_0x84f346),'name':_0x10319d,'ranges':_0x2b4d1f},_0x39e2bf=this[_0x3a68da(0x11b)];_0x39e2bf[_0x3a68da(0x17b)](_0x84f346,_0x57557e),this[_0x3a68da(0x1e9)]['next'](_0x39e2bf);}[_0x1dafe1(0x26e)](_0x55adde){const _0x26e15b=_0x1dafe1,{memberID:_0x210156}=_0x55adde[_0x26e15b(0x28c)],_0x3a8b00=this[_0x26e15b(0x11b)];_0x3a8b00[_0x26e15b(0x9f)](_0x210156),this[_0x26e15b(0x1e9)][_0x26e15b(0x1dd)](_0x3a8b00);}['_toggleOnline'](){const _0xac55d5=_0x1dafe1;var _0x3f843e;if(this['_online']=!0x0,((_0x3f843e=this[_0xac55d5(0x106)][_0xac55d5(0x246)]())==null?void 0x0:_0x3f843e['getUnitId']())!==this[_0xac55d5(0xa7)])return;const _0x47457a=this[_0xac55d5(0xf1)]['get'](Y['DocSelectionManagerService'])['getDocRanges']();Array[_0xac55d5(0x214)](_0x47457a)&&_0x47457a[_0xac55d5(0x296)]>0x0&&this[_0xac55d5(0xfc)](_0x47457a);}[_0x1dafe1(0x16b)](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a['Inject'](a[_0x1dafe1(0x2cb)])),L(0x3,a['Inject'](me)),L(0x4,a['Inject'](u[_0x1dafe1(0x204)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x1dafe1(0x20e)]),L(0x7,a[_0x1dafe1(0xee)]),L(0x8,a[_0x1dafe1(0x1b7)])],Ie);var st=Object[_0x1dafe1(0x115)],it=(_0x37c4f5,_0x1b81d1,_0x41a67d,_0x176116)=>{const _0x53be51=_0x1dafe1;for(var _0x4b8192=_0x176116>0x1?void 0x0:_0x176116?st(_0x1b81d1,_0x41a67d):_0x1b81d1,_0x463e80=_0x37c4f5[_0x53be51(0x296)]-0x1,_0x566911;_0x463e80>=0x0;_0x463e80--)(_0x566911=_0x37c4f5[_0x463e80])&&(_0x4b8192=_0x566911(_0x4b8192)||_0x4b8192);return _0x4b8192;},A=(_0x4b70b8,_0x14f32f)=>(_0x2190f0,_0x10fb33)=>_0x14f32f(_0x2190f0,_0x10fb33,_0x4b70b8);const nt=0x12c,rt=0x64,ot=()=>{let _0x330879=[],_0x1a20b1=!0x1;return _0x85d09d=>{_0x330879['push'](_0x85d09d),_0x1a20b1||(_0x1a20b1=!0x0,setTimeout(()=>{_0x330879['forEach'](_0x17aae0=>_0x17aae0()),_0x330879=[],_0x1a20b1=!0x1;}));};};let Se=class extends a[_0x1dafe1(0x2d0)]{constructor(_0x3a31b4,_0x54a883,_0x224874,_0x308b49,_0x30bcb6,_0x59f0ed,_0x37d0ad,_0x3bdc90){const _0xa07402=_0x1dafe1;super(),h(this,_0xa07402(0x14c),!0x1),h(this,_0xa07402(0x255),!0x1),h(this,_0xa07402(0x1e9),new d['BehaviorSubject'](new Map())),h(this,_0xa07402(0x309),this[_0xa07402(0x1e9)][_0xa07402(0x170)]()),h(this,_0xa07402(0xbb),new d[(_0xa07402(0x1f1))]([])),h(this,_0xa07402(0x23c),this[_0xa07402(0xbb)][_0xa07402(0x1fe)](d[_0xa07402(0x1ec)](nt))),h(this,'_updateLocalCursor',a[_0xa07402(0x1c4)]((_0xaab4bd,_0x1a18ea)=>{const _0xf3bcaf=_0xa07402,_0x5959ba={'eventID':m[_0xf3bcaf(0x2c9)]['UPDATE_CURSOR'],'data':{'unitID':this[_0xf3bcaf(0xa7)],'memberID':this['_session'][_0xf3bcaf(0x202)](),'selection':be['serializeRangeWithSheet'](_0xaab4bd,_0x1a18ea[_0xf3bcaf(0x13c)])}};this['_session'][_0xf3bcaf(0x21b)](_0x5959ba,this[_0xf3bcaf(0xa7)]);},rt)),(this[_0xa07402(0xa7)]=_0x3a31b4,this['_session']=_0x54a883,this[_0xa07402(0xf1)]=_0x224874,this[_0xa07402(0x308)]=_0x308b49,this['_memberService']=_0x30bcb6,this[_0xa07402(0x106)]=_0x59f0ed,this[_0xa07402(0x12a)]=_0x37d0ad,this[_0xa07402(0xf0)]=_0x3bdc90);}get[_0x1dafe1(0x11b)](){const _0x4fd881=_0x1dafe1;return this[_0x4fd881(0x1e9)][_0x4fd881(0x159)]();}get[_0x1dafe1(0x1af)](){return this['_roomMembers$']['getValue']();}[_0x1dafe1(0x10a)](){const _0x26fab5=_0x1dafe1;super[_0x26fab5(0x10a)](),this[_0x26fab5(0x1e9)][_0x26fab5(0x1dd)](new Map()),this[_0x26fab5(0x1e9)][_0x26fab5(0x165)](),this[_0x26fab5(0xbb)]['next']([]),this[_0x26fab5(0xbb)][_0x26fab5(0x165)]();}[_0x1dafe1(0x2fb)](){const _0x3bdcfb=_0x1dafe1;this[_0x3bdcfb(0x255)]||(this[_0x3bdcfb(0x255)]=!0x0,this[_0x3bdcfb(0x13f)][_0x3bdcfb(0xc0)][_0x3bdcfb(0x1fe)](d[_0x3bdcfb(0x311)](this['dispose$']))['subscribe'](_0x23a3e5=>{const _0x3b7cd0=_0x3bdcfb;_0x23a3e5===u['SessionStatus'][_0x3b7cd0(0x1ef)]?this[_0x3b7cd0(0x2e9)]():this['_toggleOffline']();}),this['_session'][_0x3bdcfb(0x1c9)][_0x3bdcfb(0x1fe)](d['takeUntil'](this['dispose$']))[_0x3bdcfb(0x21c)](_0x44c962=>{const _0x3f5635=_0x3bdcfb,_0x519a42=_0x44c962[_0x3f5635(0x1cb)];_0x519a42===m[_0x3f5635(0x2c9)][_0x3f5635(0x257)]&&this['_onCursorUpdate'](_0x44c962),_0x519a42===m[_0x3f5635(0x2c9)][_0x3f5635(0x171)]&&this[_0x3f5635(0x26e)](_0x44c962);}),this[_0x3bdcfb(0x155)](),this[_0x3bdcfb(0x29f)](this[_0x3bdcfb(0x12a)][_0x3bdcfb(0x2eb)](_0x47a58a=>{const _0x35af42=_0x3bdcfb;if(this[_0x35af42(0x14c)]&&_0x47a58a['id']===g['SetSelectionsOperation']['id']&&_0x47a58a['params']['unitId']===this[_0x35af42(0xa7)]){const _0x2d5d50=_0x47a58a['params'];this['_updateLocalCursor'](_0x2d5d50[_0x35af42(0x2bd)],_0x2d5d50[_0x35af42(0x142)][0x0]);}})));}[_0x1dafe1(0x120)](_0x212bad){const _0x1a17f1=_0x1dafe1;var _0xdcaee4,_0xb1767a;const {memberID:_0x1ea372,selection:_0x276453}=_0x212bad[_0x1a17f1(0x28c)],{sheetName:_0x27a9f1,range:_0x22c802}=be['deserializeRangeWithSheet'](_0x276453),_0x35e878={'name':(_0xb1767a=(_0xdcaee4=this[_0x1a17f1(0x305)][_0x1a17f1(0x24d)](this[_0x1a17f1(0xa7)],_0x1ea372))==null?void 0x0:_0xdcaee4[_0x1a17f1(0x2a6)])!=null?_0xb1767a:_0x1a17f1(0x310),'range':this[_0x1a17f1(0xb5)](_0x27a9f1,_0x22c802),'sheetID':_0x27a9f1,'color':this[_0x1a17f1(0x308)][_0x1a17f1(0xb2)](_0x1ea372),'selection':_0x276453},_0x1cb3a8=this[_0x1a17f1(0x11b)];_0x1cb3a8[_0x1a17f1(0x17b)](_0x1ea372,_0x35e878),this[_0x1a17f1(0x1e9)][_0x1a17f1(0x1dd)](_0x1cb3a8);}[_0x1dafe1(0x26e)](_0x1ee1b6){const _0x1808ae=_0x1dafe1,{memberID:_0x4ac936}=_0x1ee1b6[_0x1808ae(0x28c)],_0x1e4b87=this['cursorInfo'];_0x1e4b87[_0x1808ae(0x9f)](_0x4ac936),this[_0x1808ae(0x1e9)][_0x1808ae(0x1dd)](_0x1e4b87);}['_getMergeRange'](_0x336e3f,_0x57aa60){const _0x89e15e=_0x1dafe1;var _0x196651,_0x18de7e;const _0x17a5d7=(_0x18de7e=(_0x196651=this[_0x89e15e(0x106)][_0x89e15e(0x28a)](this['unitID']))==null?void 0x0:_0x196651[_0x89e15e(0x287)](_0x336e3f))==null?void 0x0:_0x18de7e[_0x89e15e(0x200)]();return(_0x17a5d7==null?void 0x0:_0x17a5d7[_0x89e15e(0xa3)](_0x4f3c5e=>a['Rectangle']['contains'](_0x4f3c5e,_0x57aa60)))||_0x57aa60;}['_onRefRangeChange'](){const _0x101c02=_0x1dafe1,_0x32ace3=new a[(_0x101c02(0x158))](),_0x21bd1c=ot(),_0x2f8c35=()=>{const _0xd50a2a=_0x101c02;_0x32ace3[_0xd50a2a(0x10a)]();const _0x1d7440=(_0x24f9df,_0x15d39f,_0x5206d6,_0x6f1e00)=>{const _0x2ea878=_0xd50a2a;let _0x2b1c1e=[];switch(_0x24f9df['id']){case g[_0x2ea878(0xd3)][_0x2ea878(0x248)]:{_0x2b1c1e=g[_0x2ea878(0x306)](_0x24f9df,_0x6f1e00);break;}case g[_0x2ea878(0xd3)][_0x2ea878(0x272)]:{_0x2b1c1e=g[_0x2ea878(0x279)](_0x24f9df,_0x6f1e00);break;}case g[_0x2ea878(0xd3)]['InsertColCommandId']:{_0x2b1c1e=g[_0x2ea878(0xd0)](_0x24f9df,_0x6f1e00);break;}case g[_0x2ea878(0xd3)][_0x2ea878(0x2e7)]:{_0x2b1c1e=g[_0x2ea878(0x199)](_0x24f9df,_0x6f1e00);break;}case g[_0x2ea878(0xd3)][_0x2ea878(0x250)]:{_0x2b1c1e=g[_0x2ea878(0x119)](_0x24f9df,_0x6f1e00);break;}case g[_0x2ea878(0xd3)][_0x2ea878(0x141)]:{_0x2b1c1e=g['handleInsertRow'](_0x24f9df,_0x6f1e00);break;}case g['EffectRefRangId']['MoveRangeCommandId']:{_0x2b1c1e=g[_0x2ea878(0x2bf)](_0x24f9df,_0x6f1e00);break;}case g['EffectRefRangId']['RemoveColCommandId']:{_0x2b1c1e=g[_0x2ea878(0x262)](_0x24f9df,_0x6f1e00);break;}case g[_0x2ea878(0xd3)][_0x2ea878(0x1ba)]:{_0x2b1c1e=g[_0x2ea878(0x201)](_0x24f9df,_0x6f1e00);break;}}const _0x3d82f2=g[_0x2ea878(0x149)](_0x2b1c1e,_0x6f1e00),_0x263c8c=this[_0x2ea878(0x11b)]['get'](_0x15d39f);if(_0x263c8c&&_0x3d82f2){const _0x51d325={..._0x263c8c,'range':_0x3d82f2};this[_0x2ea878(0x11b)][_0x2ea878(0x17b)](_0x15d39f,_0x51d325),_0x21bd1c(()=>{const _0x39c671=_0x2ea878,_0x138359=this[_0x39c671(0xf0)][_0x39c671(0x245)](_0x3d82f2,_0x43329b=>(_0x138359['dispose'](),_0x1d7440(_0x43329b,_0x15d39f,_0x5206d6,_0x3d82f2)));_0x32ace3['add'](_0x138359);});}return{'redos':[],'undos':[]};};this[_0xd50a2a(0x11b)][_0xd50a2a(0x233)]((_0x34a297,_0x517883)=>{const _0x4e5d47=_0xd50a2a,{range:_0x362c80,sheetID:_0x32b0da}=_0x34a297,_0x344849=this[_0x4e5d47(0xf0)]['registerRefRange'](_0x362c80,_0xe19826=>(_0x344849['dispose'](),_0x1d7440(_0xe19826,_0x517883,_0x32b0da,_0x362c80)));_0x32ace3[_0x4e5d47(0x291)](_0x344849);});};this[_0x101c02(0x29f)](a[_0x101c02(0x206)](this['_cursorInfo$'][_0x101c02(0x21c)](()=>{_0x2f8c35();})));}[_0x1dafe1(0x2e9)](){const _0x1c58bc=_0x1dafe1;var _0x43d3e5,_0x8ae2ff;if(this[_0x1c58bc(0x14c)]=!0x0,((_0x43d3e5=this[_0x1c58bc(0x106)][_0x1c58bc(0x246)]())==null?void 0x0:_0x43d3e5[_0x1c58bc(0x129)]())!==this[_0x1c58bc(0xa7)])return;const _0x1a3739=(_0x8ae2ff=this[_0x1c58bc(0xf1)]['get'](g['SheetsSelectionsService'])[_0x1c58bc(0x2a9)]())==null?void 0x0:_0x8ae2ff[0x0],_0x183f3e=this[_0x1c58bc(0x106)][_0x1c58bc(0x295)](a[_0x1c58bc(0x25b)]['UNIVER_SHEET'])[_0x1c58bc(0x21a)]();_0x1a3739&&_0x183f3e&&this['_updateLocalCursor'](_0x183f3e['getSheetId'](),_0x1a3739);}['_toggleOffline'](){const _0x178ee1=_0x1dafe1;this[_0x178ee1(0x14c)]=!0x1;}};Se=it([A(0x2,a[_0x1dafe1(0xd6)](a['Injector'])),A(0x3,a[_0x1dafe1(0xd6)](me)),A(0x4,a[_0x1dafe1(0xd6)](u[_0x1dafe1(0x204)])),A(0x5,a[_0x1dafe1(0xee)]),A(0x6,a[_0x1dafe1(0x1b7)]),A(0x7,a[_0x1dafe1(0xd6)](g[_0x1dafe1(0x229)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x182ef1,_0x80bd30,_0x2167a7,_0x4eabe6)=>{const _0x516fbe=_0x1dafe1;for(var _0x954ae2=_0x4eabe6>0x1?void 0x0:_0x4eabe6?at(_0x80bd30,_0x2167a7):_0x80bd30,_0xf28d6d=_0x182ef1[_0x516fbe(0x296)]-0x1,_0x5a7b0b;_0xf28d6d>=0x0;_0xf28d6d--)(_0x5a7b0b=_0x182ef1[_0xf28d6d])&&(_0x954ae2=_0x5a7b0b(_0x954ae2)||_0x954ae2);return _0x954ae2;},ie=(_0xf9ed23,_0xd86a9a)=>(_0x25f10f,_0x4a1ff7)=>_0xd86a9a(_0x25f10f,_0x4a1ff7,_0xf9ed23);let x=class extends a['RxDisposable']{constructor(_0x42883f,_0x2aa9b5,_0x220f5e){const _0x3acece=_0x1dafe1;super(),h(this,_0x3acece(0x180),new Map()),h(this,_0x3acece(0x131),new d['Subject']()),(this[_0x3acece(0x106)]=_0x42883f,this[_0x3acece(0xf1)]=_0x2aa9b5,this[_0x3acece(0x11c)]=_0x220f5e,this['_init']());}[_0x1dafe1(0x10a)](){const _0x36f249=_0x1dafe1;super[_0x36f249(0x10a)](),this[_0x36f249(0x131)][_0x36f249(0x165)](),this[_0x36f249(0x180)][_0x36f249(0x233)](_0x1188ab=>_0x1188ab['dispose']());}['getCollabCursors$'](_0x284b16){const _0x428342=_0x1dafe1;return this[_0x428342(0x180)][_0x428342(0xeb)](_0x284b16)?this['_entities'][_0x428342(0x1f2)](_0x284b16)[_0x428342(0x309)]:this['_entityInit$'][_0x428342(0x1fe)](d[_0x428342(0x27d)](_0x521250=>_0x521250[_0x428342(0xa7)]===_0x284b16),d['switchMap'](_0x36b011=>_0x36b011[_0x428342(0x309)]));}['_init'](){const _0x179c77=_0x1dafe1;this[_0x179c77(0x106)][_0x179c77(0x2ba)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x179c77(0x1fe)](d[_0x179c77(0x311)](this['dispose$']))[_0x179c77(0x21c)](async _0x383e38=>{const _0x551569=_0x179c77,_0x45251f=_0x383e38[_0x551569(0x129)](),_0x13f7f9=await this[_0x551569(0xb6)](_0x45251f);this['_entityInit$']['next'](_0x13f7f9),this[_0x551569(0x180)][_0x551569(0x17b)](_0x45251f,_0x13f7f9);}),this[_0x179c77(0x106)]['getTypeOfUnitAdded$'](a[_0x179c77(0x25b)][_0x179c77(0xf8)])[_0x179c77(0x1fe)](d[_0x179c77(0x311)](this['dispose$']))['pipe'](d[_0x179c77(0x27d)](_0x118031=>!_0x118031[_0x179c77(0x129)]()[_0x179c77(0x219)]('__')))[_0x179c77(0x21c)](async _0x5c251e=>{const _0x3c8e0a=_0x179c77,_0xce5bac=_0x5c251e[_0x3c8e0a(0x129)](),_0x191e30=await this['_startDocCollabCursor'](_0xce5bac);this[_0x3c8e0a(0x131)][_0x3c8e0a(0x1dd)](_0x191e30),this[_0x3c8e0a(0x180)][_0x3c8e0a(0x17b)](_0xce5bac,_0x191e30);}),d[_0x179c77(0xe9)](this[_0x179c77(0x106)][_0x179c77(0xd2)](a[_0x179c77(0x25b)][_0x179c77(0xf8)]),this[_0x179c77(0x106)]['getTypeOfUnitDisposed$'](a[_0x179c77(0x25b)][_0x179c77(0x1a9)]))[_0x179c77(0x1fe)](d[_0x179c77(0x311)](this[_0x179c77(0x2ad)]))[_0x179c77(0x21c)](_0x9c4ba9=>{const _0xb8c27d=_0x179c77,_0x4b6d1c=_0x9c4ba9[_0xb8c27d(0x129)](),_0x3d5cbe=this[_0xb8c27d(0x180)][_0xb8c27d(0x1f2)](_0x4b6d1c);_0x3d5cbe&&(_0x3d5cbe[_0xb8c27d(0x10a)](),this[_0xb8c27d(0x180)][_0xb8c27d(0x9f)](_0x4b6d1c));});}async['_startSheetCollabCursor'](_0x52c3b2){const _0x448584=_0x1dafe1,_0x3085fb=await this[_0x448584(0x11c)][_0x448584(0x2ae)](_0x52c3b2),_0x4cdf73=this[_0x448584(0xf1)][_0x448584(0x25d)](Se,_0x52c3b2,_0x3085fb);return _0x4cdf73[_0x448584(0x2fb)](),_0x4cdf73;}async[_0x1dafe1(0x24f)](_0x12929a){const _0x5e149c=_0x1dafe1,_0x24ab32=await this[_0x5e149c(0x11c)][_0x5e149c(0x2ae)](_0x12929a),_0x3c145f=this['_injector']['createInstance'](Ie,_0x12929a,_0x24ab32);return _0x3c145f[_0x5e149c(0x2fb)](),_0x3c145f;}};x=ct([ie(0x0,a[_0x1dafe1(0xee)]),ie(0x1,a[_0x1dafe1(0xd6)](a[_0x1dafe1(0x2cb)])),ie(0x2,a[_0x1dafe1(0xd6)](u[_0x1dafe1(0x315)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x2ae6e6,_0x40b816){const _0x4ac5e7=_0x1dafe1;let {radius:_0xa05924,width:_0x2059ad,height:_0xa99ae7}=_0x40b816;_0xa05924=_0xa05924!=null?_0xa05924:0x0,_0x2059ad=_0x2059ad!=null?_0x2059ad:0x1e,_0xa99ae7=_0xa99ae7!=null?_0xa99ae7:0x1e;let _0x405b91=0x0,_0x2ea361=0x0,_0x38ddc5=0x0;_0x405b91=_0x2ea361=_0x38ddc5=Math[_0x4ac5e7(0x1d5)](_0xa05924,_0x2059ad/0x2,_0xa99ae7/0x2),_0x2ae6e6[_0x4ac5e7(0x16d)](),_0x2ae6e6[_0x4ac5e7(0x156)](_0x405b91,0x0),_0x2ae6e6[_0x4ac5e7(0x12f)](_0x2059ad-_0x2ea361,0x0),_0x2ae6e6[_0x4ac5e7(0x213)](_0x2059ad-_0x2ea361,_0x2ea361,_0x2ea361,Math['PI']*0x3/0x2,0x0,!0x1),_0x2ae6e6[_0x4ac5e7(0x12f)](_0x2059ad,_0xa99ae7-_0x38ddc5),_0x2ae6e6[_0x4ac5e7(0x213)](_0x2059ad-_0x38ddc5,_0xa99ae7-_0x38ddc5,_0x38ddc5,0x0,Math['PI']/0x2,!0x1),_0x2ae6e6[_0x4ac5e7(0x12f)](0x0,_0xa99ae7),_0x2ae6e6[_0x4ac5e7(0x12f)](0x0,_0x405b91),_0x2ae6e6[_0x4ac5e7(0x213)](_0x405b91,_0x405b91,_0x405b91,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2ae6e6[_0x4ac5e7(0x1dc)](),_0x40b816[_0x4ac5e7(0x9d)]&&(_0x2ae6e6[_0x4ac5e7(0x2d9)](),_0x2ae6e6[_0x4ac5e7(0x254)]=_0x40b816[_0x4ac5e7(0x9d)],_0x40b816[_0x4ac5e7(0x30c)]===_0x4ac5e7(0x1b9)?_0x2ae6e6[_0x4ac5e7(0x9d)]('evenodd'):_0x2ae6e6[_0x4ac5e7(0x9d)](),_0x2ae6e6['restore']());}class ee extends p[_0x1dafe1(0x1c5)]{constructor(_0x765001,_0x5b618b){const _0x17e0fc=_0x1dafe1;super(_0x765001,_0x5b618b),h(this,'color'),h(this,_0x17e0fc(0x178)),(this[_0x17e0fc(0x231)]=_0x5b618b==null?void 0x0:_0x5b618b[_0x17e0fc(0x231)],this[_0x17e0fc(0x178)]=_0x5b618b==null?void 0x0:_0x5b618b[_0x17e0fc(0x178)]);}static['drawWith'](_0x62d06e,_0x1520d6){const _0x2adc94=_0x1dafe1,{text:_0x2bcfda,color:_0x3be75e}=_0x1520d6;_0x62d06e[_0x2adc94(0x2d9)](),_0x62d06e[_0x2adc94(0x2e5)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x4c45cb=_0x62d06e[_0x2adc94(0x14f)](_0x2bcfda)['width'],_0x352e39=Math['min'](_0x4c45cb+0x2*ne,Re);_t(_0x62d06e,{'height':K,'radius':0x4,'width':_0x352e39,'fill':_0x3be75e}),_0x62d06e[_0x2adc94(0x254)]=_0x2adc94(0x14a);const _0x544166=ne,_0x51da2a=K-lt,_0x3320d1=Re-0x2*ne;if(_0x4c45cb>_0x3320d1){let _0x4bf548='',_0xe046c6=0x0;for(const _0x34ad09 of _0x2bcfda){const _0x2e2f95=_0x62d06e[_0x2adc94(0x14f)](_0x34ad09)[_0x2adc94(0xaa)];if(_0xe046c6+_0x2e2f95<=_0x3320d1-_0x62d06e[_0x2adc94(0x14f)]('...')[_0x2adc94(0xaa)])_0x4bf548+=_0x34ad09,_0xe046c6+=_0x2e2f95;else{_0x4bf548+='...';break;}}_0x62d06e[_0x2adc94(0x251)](_0x4bf548,_0x544166,_0x51da2a);}else _0x62d06e['fillText'](_0x2bcfda,_0x544166,_0x51da2a);_0x62d06e[_0x2adc94(0xba)]();}[_0x1dafe1(0x16e)](_0xeaf207){const _0x3f9c8a=_0x1dafe1;ee[_0x3f9c8a(0x1b4)](_0xeaf207,this);}}const re='collab-text-anchor-',ht=_0x1dafe1(0x11a),ut=_0x1dafe1(0x258),k=0x6,dt=1.5,oe=0x4,It=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0xdfc149,_0x6fca44,_0x353ea5,_0x4478ba){const _0x58e9e6=_0x1dafe1;h(this,_0x58e9e6(0x2b9),[]),h(this,_0x58e9e6(0x1a8),null),h(this,'_textBubble',null),h(this,_0x58e9e6(0x253),null),h(this,'_hideTimer',null),h(this,_0x58e9e6(0x109),null),(this[_0x58e9e6(0x227)]=_0xdfc149,this['_scene']=_0x6fca44,this[_0x58e9e6(0x132)]=_0x353ea5,this[_0x58e9e6(0xf2)]=_0x4478ba,this['_render']());}set[_0x1dafe1(0x1ad)](_0x35b0b5){const _0x3201ae=_0x1dafe1;_0x35b0b5?(this['_anchorDot']&&this[_0x3201ae(0x253)][_0x3201ae(0xc2)](),this[_0x3201ae(0x317)]&&this[_0x3201ae(0x317)][_0x3201ae(0x1d7)]()):(this[_0x3201ae(0x253)]&&this[_0x3201ae(0x253)][_0x3201ae(0x1d7)](),this[_0x3201ae(0x317)]&&this[_0x3201ae(0x317)][_0x3201ae(0xc2)]());}[_0x1dafe1(0x10a)](){const _0x257959=_0x1dafe1;for(const _0x1fb982 of this[_0x257959(0x2b9)])_0x1fb982['dispose']();this[_0x257959(0x317)]&&this['_textBubble'][_0x257959(0x10a)](),this['_anchorDot']&&this[_0x257959(0x253)][_0x257959(0x10a)](),this['_anchor']&&this[_0x257959(0x1a8)][_0x257959(0x10a)](),this[_0x257959(0x109)]&&this[_0x257959(0x109)]();}['_render'](){const _0xcdda2a=_0x1dafe1;var _0x30c69c;const {_docSkeleton:_0x153a39,_document:_0x340405}=this,{color:_0x3d5e9a,name:_0x57fb58,ranges:_0x2eec56}=this['_cursor'],_0x16bd63=_0x340405[_0xcdda2a(0x1a2)](),{docsLeft:_0x452e9d,docsTop:_0x376a46}=_0x16bd63,_0x3ff8bf=new E[(_0xcdda2a(0x1cc))](_0x16bd63,_0x153a39);for(const {startOffset:_0x3cfc0f,endOffset:_0x4e79f3,rangeType:_0x516c8f,segmentId:_0x1fadc3,segmentPage:_0x198dcb,collapsed:_0x2aa7eb,isActive:_0x2f32c1}of _0x2eec56){const _0x23f631=_0x153a39[_0xcdda2a(0xc4)](_0x3cfc0f,!0x0,_0x1fadc3,_0x198dcb);let _0x1d3400=_0x153a39[_0xcdda2a(0xc4)](_0x4e79f3,!0x0,_0x1fadc3,_0x198dcb);if(_0x1d3400==null&&(_0x1d3400=_0x153a39[_0xcdda2a(0xc4)](_0x4e79f3-0x1,!0x1,_0x1fadc3,_0x198dcb)),_0x2f32c1){const {contentBoxPointGroup:_0x5cf0ec}=_0x3ff8bf[_0xcdda2a(0x300)](_0x1d3400,_0x1d3400);if(_0x5cf0ec['length']===0x0)continue;this[_0xcdda2a(0xdd)](_0x3d5e9a,_0x5cf0ec,_0x452e9d,_0x376a46,_0x57fb58),this['_eventUnsubscribe']=this[_0xcdda2a(0x147)]();}if(_0x23f631&&_0x1d3400){if(_0x516c8f===a['DOC_RANGE_TYPE'][_0xcdda2a(0x121)]){const _0x5c2fe6=new E[(_0xcdda2a(0x288))](_0x16bd63,_0x153a39),{pointGroup:_0x3ecd64}=(_0x30c69c=_0x5c2fe6[_0xcdda2a(0x300)](_0x23f631,_0x1d3400))!=null?_0x30c69c:{};if(_0x3ecd64==null||_0x3ecd64['length']===0x0)continue;this[_0xcdda2a(0x21d)](_0x3d5e9a,_0x3ecd64,_0x452e9d,_0x376a46);}else{if(!_0x2aa7eb){const {borderBoxPointGroup:_0x301667}=_0x3ff8bf['getRangePointData'](_0x23f631,_0x1d3400);if(_0x301667['length']===0x0)continue;this['_drawTextRange'](_0x3d5e9a,_0x301667,_0x452e9d,_0x376a46);}}}}}[_0x1dafe1(0xdd)](_0x580aa7,_0x104496,_0xce3212,_0x5ef442,_0x1110c4){const _0x44b397=_0x1dafe1,_0x193807=this[_0x44b397(0x2f0)](_0x104496),{left:_0x1a9317,top:_0x3e6c3d,height:_0x3c57d6}=_0x193807,_0x32a5b9=this[_0x44b397(0xef)](),_0x171628=It/_0x32a5b9,_0xe0006c=new p['Rect'](re+a[_0x44b397(0x133)]['generateRandomId'](k),{'left':_0x1a9317+_0xce3212-_0x171628,'top':_0x3e6c3d+_0x5ef442,'height':_0x3c57d6,'width':dt,'fill':_0x580aa7||p[_0x44b397(0x2bc)](a[_0x44b397(0x225)]['black'],0x0),'strokeWidth':_0x171628,'stroke':St,'evented':!0x0});this[_0x44b397(0x1a8)]=_0xe0006c,this['_scene'][_0x44b397(0xac)](_0xe0006c,E[_0x44b397(0x20a)]);const _0x59f017=new p['Rect'](re+a[_0x44b397(0x133)][_0x44b397(0x230)](k),{'left':_0x1a9317+_0xce3212-_0x171628,'top':_0x3e6c3d+_0x5ef442-oe/0x2,'height':oe,'width':oe,'fill':_0x580aa7||p['getColor'](a['COLORS'][_0x44b397(0x107)],0x0),'strokeWidth':0x0,'stroke':_0x580aa7||p['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x44b397(0x253)]=_0x59f017,this[_0x44b397(0xfe)][_0x44b397(0xac)](_0x59f017,E[_0x44b397(0x20a)]);const _0x253385=new ee(re+a[_0x44b397(0x133)][_0x44b397(0x230)](k),{'left':_0x1a9317+_0xce3212-_0x171628,'top':_0x3e6c3d+_0x5ef442-K,'text':_0x1110c4,'color':_0x580aa7});this[_0x44b397(0x317)]=_0x253385,this['_scene'][_0x44b397(0xac)](_0x253385,E[_0x44b397(0x20a)]),this[_0x44b397(0x1ad)]=!0x1;}['_handleHover'](){const _0x493dc2=_0x1dafe1,_0x392029=this[_0x493dc2(0x1a8)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x411e5a=_0x493dc2;this[_0x411e5a(0x1ad)]=!0x0;}),_0xe00f7b=this[_0x493dc2(0x1a8)]['onPointerLeave$'][_0x493dc2(0x136)](()=>{const _0x59f682=_0x493dc2;this[_0x59f682(0x285)]&&clearTimeout(this[_0x59f682(0x285)]),this[_0x59f682(0x285)]=setTimeout(()=>{const _0xab1157=_0x59f682;this[_0xab1157(0x1ad)]=!0x1;},0x7d0);});return()=>{const _0x1488a0=_0x493dc2;_0x392029[_0x1488a0(0x280)](),_0xe00f7b['unsubscribe']();};}[_0x1dafe1(0xe6)](_0x4d43bd,_0x3eaa68,_0x191a13,_0xf6da6d){const _0x52b6d6=_0x1dafe1,_0x4cb232=new a[(_0x52b6d6(0xfb))](_0x4d43bd)[_0x52b6d6(0x1bc)](0.2)[_0x52b6d6(0x1a7)](),_0x3a31a1=new p[(_0x52b6d6(0x19c))](ht+a['Tools'][_0x52b6d6(0x230)](k),{'pointsGroup':_0x3eaa68,'fill':_0x4cb232||p[_0x52b6d6(0x2bc)](a[_0x52b6d6(0x225)][_0x52b6d6(0x107)],0.2),'left':_0x191a13,'top':_0xf6da6d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52b6d6(0x2b9)][_0x52b6d6(0x27a)](_0x3a31a1),this[_0x52b6d6(0xfe)][_0x52b6d6(0xac)](_0x3a31a1,E[_0x52b6d6(0x20a)]);}[_0x1dafe1(0x21d)](_0x58bca3,_0x375860,_0x202d91,_0x54a059){const _0x1eb717=_0x1dafe1,_0xbe5274=new a[(_0x1eb717(0xfb))](_0x58bca3)[_0x1eb717(0x1bc)](0.2)['toRgbString'](),_0x5e1d1f=new p['RegularPolygon'](ut+a[_0x1eb717(0x133)][_0x1eb717(0x230)](k),{'pointsGroup':_0x375860,'fill':_0xbe5274||p[_0x1eb717(0x2bc)](a[_0x1eb717(0x225)][_0x1eb717(0x107)],0.2),'left':_0x202d91,'top':_0x54a059,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1eb717(0x2b9)][_0x1eb717(0x27a)](_0x5e1d1f),this['_scene'][_0x1eb717(0xac)](_0x5e1d1f,E[_0x1eb717(0x20a)]);}[_0x1dafe1(0x2f0)](_0x3106f0){const _0x40dec9=_0x3106f0[0x0],_0x29abcd=_0x40dec9[0x0],_0x145af3=_0x40dec9[0x2],{x:_0x122a32,y:_0x245bfa}=_0x29abcd,{x:_0x19bf34,y:_0x187696}=_0x145af3;return{'left':_0x122a32,'top':_0x245bfa,'width':_0x19bf34-_0x122a32,'height':_0x187696-_0x245bfa};}[_0x1dafe1(0xef)](){const _0x18723a=_0x1dafe1,{scaleX:_0x52b568,scaleY:_0x41b4cb}=this['_scene'][_0x18723a(0xa6)]();return Math[_0x18723a(0x17f)](_0x52b568,_0x41b4cb);}}var ft=Object[_0x1dafe1(0x115)],vt=(_0x38f1af,_0x40e067,_0x11d893,_0x207b63)=>{const _0x7b70df=_0x1dafe1;for(var _0x5f1f46=_0x207b63>0x1?void 0x0:_0x207b63?ft(_0x40e067,_0x11d893):_0x40e067,_0x516180=_0x38f1af[_0x7b70df(0x296)]-0x1,_0x5854d1;_0x516180>=0x0;_0x516180--)(_0x5854d1=_0x38f1af[_0x516180])&&(_0x5f1f46=_0x5854d1(_0x5f1f46)||_0x5f1f46);return _0x5f1f46;},W=(_0x38d068,_0x222549)=>(_0x1f9bf3,_0x22f80a)=>_0x222549(_0x1f9bf3,_0x22f80a,_0x38d068);let fe=class extends a['RxDisposable']{constructor(_0x19d038,_0x45543c,_0x2d15fa,_0x437eb3,_0x9a11e){const _0x1d496b=_0x1dafe1;super(),h(this,'_cursorShapes',[]),h(this,'_cursors',[]),(this['_context']=_0x19d038,this[_0x1d496b(0x1a0)]=_0x45543c,this[_0x1d496b(0x235)]=_0x2d15fa,this['_commandService']=_0x437eb3,this['_themeService']=_0x9a11e,this[_0x1d496b(0x255)]());}[_0x1dafe1(0x255)](){const _0x55a2b6=_0x1dafe1,_0x2ff179=this[_0x55a2b6(0x244)][_0x55a2b6(0x210)],_0x322014=this[_0x55a2b6(0x1a0)];this[_0x55a2b6(0x29f)](d[_0x55a2b6(0xe8)]([this[_0x55a2b6(0x235)][_0x55a2b6(0x1d3)](_0x2ff179),this['_themeService'][_0x55a2b6(0xdb)]])['pipe']($['map'](([_0x1c3168,_0x4de5e9])=>({'skeleton':_0x322014[_0x55a2b6(0x267)](),'cursors':[..._0x1c3168[_0x55a2b6(0xc3)]()][_0x55a2b6(0x1d0)](_0xaa6833=>({..._0xaa6833,'color':this[_0x55a2b6(0xb3)][_0x55a2b6(0x1cf)](_0xaa6833[_0x55a2b6(0x231)])}))})))[_0x55a2b6(0x21c)](_0xfd963=>{const _0x4bb461=_0x55a2b6;if(this[_0x4bb461(0x169)](),_0xfd963){const {skeleton:_0x3e592f,cursors:_0x307701}=_0xfd963;this['_updateCollabCursors'](_0x3e592f,_0x307701);}})),this[_0x55a2b6(0x17e)](),this[_0x55a2b6(0x266)]();}[_0x1dafe1(0xa2)](_0x43ff61,_0xfa3d8c){const _0x259f70=_0x1dafe1,{scene:_0x4db33c,mainComponent:_0x185f6a}=this[_0x259f70(0x244)],_0x5c3c7e=_0xfa3d8c[_0x259f70(0x112)](_0x39834d=>new De(_0x39834d,_0x4db33c,_0x43ff61,_0x185f6a));this[_0x259f70(0x17c)]=_0x5c3c7e,this[_0x259f70(0x11e)]=_0xfa3d8c;}['_refreshCollabCursors'](){const _0x10818b=_0x1dafe1;this[_0x10818b(0x169)]();const {scene:_0x176173,mainComponent:_0x29a430}=this['_context'],_0x348d76=this[_0x10818b(0x1a0)][_0x10818b(0x267)](),_0x5e25aa=this['_cursors'][_0x10818b(0x112)](_0x5b11ec=>new De(_0x5b11ec,_0x176173,_0x348d76,_0x29a430));this['_cursorShapes']=_0x5e25aa;}[_0x1dafe1(0x169)](){const _0x562f31=_0x1dafe1;this[_0x562f31(0x17c)][_0x562f31(0x233)](_0x2f9a8d=>_0x2f9a8d['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x2499a4=_0x1dafe1,_0x5a82b2=[E[_0x2499a4(0x183)]['id']];this['disposeWithMe'](this[_0x2499a4(0x12a)][_0x2499a4(0x2eb)](_0x29ee8e=>{const _0x2fcab7=_0x2499a4;_0x5a82b2[_0x2fcab7(0x2f5)](_0x29ee8e['id'])&&_0x29ee8e[_0x2fcab7(0xf3)][_0x2fcab7(0x210)]===this[_0x2fcab7(0x244)][_0x2fcab7(0x210)]&&this[_0x2fcab7(0xf9)]();}));}['_initResize'](){const _0x30d30d=_0x1dafe1;this[_0x30d30d(0x29f)](a[_0x30d30d(0x312)](this[_0x30d30d(0x244)][_0x30d30d(0x193)][_0x30d30d(0x23e)])['pipe']($[_0x30d30d(0x27d)](_0x5d1fa2=>_0x5d1fa2[_0x30d30d(0x22f)]===p[_0x30d30d(0x27f)][_0x30d30d(0x137)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};fe=vt([W(0x1,a[_0x1dafe1(0xd6)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x1dafe1(0xd6)](x)),W(0x3,a[_0x1dafe1(0x1b7)]),W(0x4,a['Inject'](a[_0x1dafe1(0x2c1)]))],fe);function _0xc2a5(_0x1db6eb,_0x23fbaa){const _0x39b9fe=_0x39b9();return _0xc2a5=function(_0xc2a5a7,_0x1bb64c){_0xc2a5a7=_0xc2a5a7-0x9c;let _0x37e851=_0x39b9fe[_0xc2a5a7];return _0x37e851;},_0xc2a5(_0x1db6eb,_0x23fbaa);}const gt=0x1,mt=1.5;class we extends p[_0x1dafe1(0x1c5)]{constructor(_0x4ffdb4,_0x2c2929){const _0x489152=_0x1dafe1;super(_0x4ffdb4,_0x2c2929),h(this,_0x489152(0x1e4)),h(this,'_hovered',!0x1),h(this,_0x489152(0xc7)),h(this,_0x489152(0x24a),''),h(this,_0x489152(0x23d),_0x489152(0x18a)),h(this,_0x489152(0x12b)),(_0x2c2929&&this[_0x489152(0x2f4)](_0x2c2929),this[_0x489152(0x173)][_0x489152(0x136)](()=>this[_0x489152(0x2f4)]({'hovered':!0x0})),this['onPointerLeave$'][_0x489152(0x136)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x1dafe1(0x2f4)](_0x33e3ab){const _0x58cf06=_0x1dafe1;var _0x5003cc,_0x2023c7,_0x1736cb,_0x461b24,_0x577ba0,_0x3bcccb;this[_0x58cf06(0x1e4)]=(_0x5003cc=_0x33e3ab['color'])!=null?_0x5003cc:this[_0x58cf06(0x1e4)],this[_0x58cf06(0xf5)]=(_0x2023c7=_0x33e3ab[_0x58cf06(0x2dd)])!=null?_0x2023c7:this[_0x58cf06(0xf5)],this['_range']=(_0x1736cb=_0x33e3ab[_0x58cf06(0x13c)])!=null?_0x1736cb:this[_0x58cf06(0xc7)],this[_0x58cf06(0x24a)]=(_0x461b24=_0x33e3ab[_0x58cf06(0x2a6)])!=null?_0x461b24:this[_0x58cf06(0x24a)],this['_labelPosition']=(_0x577ba0=_0x33e3ab['labelPosition'])!=null?_0x577ba0:this[_0x58cf06(0x23d)],this[_0x58cf06(0x12b)]=(_0x3bcccb=_0x33e3ab[_0x58cf06(0x2c0)])!=null?_0x3bcccb:this['_backgroundColor'],this['transformByState']({'width':_0x33e3ab[_0x58cf06(0xaa)],'height':_0x33e3ab['height']});}[_0x1dafe1(0x139)](_0x2a9613){const _0x373f53=_0x1dafe1,{row:_0x3350b8,column:_0x19c8a7}=_0x2a9613;if(_0x3350b8>=this[_0x373f53(0xc7)][_0x373f53(0x316)]&&_0x3350b8<=this[_0x373f53(0xc7)][_0x373f53(0x130)]&&_0x19c8a7>=this[_0x373f53(0xc7)][_0x373f53(0x184)]&&_0x19c8a7<=this[_0x373f53(0xc7)][_0x373f53(0x2df)]){this[_0x373f53(0x2f4)]({'hovered':!0x0});return;}this[_0x373f53(0x2f4)]({'hovered':!0x1});}[_0x1dafe1(0x2c4)](_0x1dbe18){return!0x1;}['_draw'](_0x31906e){const _0x5e8b56=_0x1dafe1;p[_0x5e8b56(0xcf)][_0x5e8b56(0x1b4)](_0x31906e,{'width':this[_0x5e8b56(0xaa)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x5e8b56(0x1e4)],'evented':!0x1,'fill':this[_0x5e8b56(0x12b)]}),this[_0x5e8b56(0xf5)]&&(_0x31906e[_0x5e8b56(0x2d9)](),_0x31906e[_0x5e8b56(0x25e)](0x1,0x0,0x0,0x1,this[_0x5e8b56(0xaa)],this[_0x5e8b56(0x23d)]===_0x5e8b56(0x26f)?0x0:-0x14),ee[_0x5e8b56(0x1b4)](_0x31906e,{'text':this[_0x5e8b56(0x24a)],'color':this['_color']}),_0x31906e[_0x5e8b56(0xba)]());}}var Ct=Object[_0x1dafe1(0x115)],pt=(_0x2b55a2,_0x5d60de,_0x44ad59,_0x26d56c)=>{for(var _0x324777=_0x26d56c>0x1?void 0x0:_0x26d56c?Ct(_0x5d60de,_0x44ad59):_0x5d60de,_0x3948ad=_0x2b55a2['length']-0x1,_0x3b9fd6;_0x3948ad>=0x0;_0x3948ad--)(_0x3b9fd6=_0x2b55a2[_0x3948ad])&&(_0x324777=_0x3b9fd6(_0x324777)||_0x324777);return _0x324777;},ae=(_0x2f79bd,_0x44fa42)=>(_0x26482b,_0x330e2e)=>_0x44fa42(_0x26482b,_0x330e2e,_0x2f79bd);const Et=0x1389;let ve=class extends a[_0x1dafe1(0x2d0)]{constructor(_0x4e4193,_0x35bb80,_0x25fce1,_0x2f2551){const _0x4119c7=_0x1dafe1;super(),h(this,_0x4119c7(0x11e),new Set()),h(this,'_lastPointer',null),(this[_0x4119c7(0x244)]=_0x4e4193,this['_sheetSkeletonManagerService']=_0x35bb80,this[_0x4119c7(0x235)]=_0x25fce1,this[_0x4119c7(0xb3)]=_0x2f2551,this[_0x4119c7(0x255)]());}[_0x1dafe1(0x255)](){const _0x2c3db3=_0x1dafe1;this['_sheetSkeletonManagerService'][_0x2c3db3(0x222)][_0x2c3db3(0x1fe)]($[_0x2c3db3(0x311)](this['dispose$']),$['switchMap'](_0x5559fe=>{const _0x91c05c=_0x2c3db3;if(_0x5559fe){const _0x4ab63c=_0x5559fe['sheetId'];return d[_0x91c05c(0xe8)](this[_0x91c05c(0x235)][_0x91c05c(0x1d3)](this['_context']['unitId']),this[_0x91c05c(0xb3)]['currentTheme$'])[_0x91c05c(0x1fe)]($[_0x91c05c(0x112)](([_0x1f85db,_0xcf1cb9])=>{const _0x1f6075=_0x91c05c,_0x1aad0d=new Map();return _0x1f85db[_0x1f6075(0x233)]((_0x5403be,_0xc9cec1)=>{const _0x34031c=_0x1f6075;if(_0x5403be[_0x34031c(0x1f0)]===_0x4ab63c){const _0x5ea209={..._0x5403be};_0x5ea209[_0x34031c(0x231)]=this[_0x34031c(0xb3)]['getColorFromTheme'](_0x5403be['color']),_0x1aad0d[_0x34031c(0x17b)](_0xc9cec1,_0x5ea209);}}),{'skeleton':_0x5559fe,'cursors':_0x1aad0d};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2c3db3(0x21c)](({skeleton:_0x59f06b,cursors:_0x442275})=>{const _0x3568cc=_0x2c3db3;this['_removeCollabCursors'](),_0x59f06b&&this[_0x3568cc(0xa2)](_0x59f06b,_0x442275);}),this[_0x2c3db3(0x111)]['currentSkeleton$'][_0x2c3db3(0x21c)](_0x2e2f2d=>{const _0x5efdca=_0x2c3db3;if(_0x2e2f2d==null)return;const {skeleton:_0x57cd51}=_0x2e2f2d,{scene:_0x43ce3c}=this['_context'];_0x43ce3c['onPointerMove$']['subscribeEvent'](a[_0x5efdca(0x1c4)](_0x15d73f=>{const _0x55621d=_0x5efdca;var _0x263553,_0xeb8858;const {offsetX:_0x51c94d,offsetY:_0x18dc4f}=_0x15d73f,{x:_0x4ba9ac,y:_0x2c694c}=_0x43ce3c[_0x55621d(0x1e2)](p['Vector2'][_0x55621d(0x188)]([_0x51c94d,_0x18dc4f])),{scaleX:_0x456c82,scaleY:_0x5f416a}=_0x43ce3c['getAncestorScale'](),_0x2399c0=_0x43ce3c[_0x55621d(0x14d)](p['SHEET_VIEWPORT_KEY'][_0x55621d(0x2d5)]),_0x42beff=_0x43ce3c[_0x55621d(0x197)](p[_0x55621d(0x182)][_0x55621d(0x188)]([_0x4ba9ac,_0x2c694c]),_0x2399c0),_0x15370b=_0x57cd51[_0x55621d(0x1b8)](_0x51c94d,_0x18dc4f,_0x456c82,_0x5f416a,_0x42beff);((_0x263553=this[_0x55621d(0x21f)])==null?void 0x0:_0x263553[_0x55621d(0x14b)])===_0x15370b[_0x55621d(0x14b)]&&((_0xeb8858=this['_lastPointer'])==null?void 0x0:_0xeb8858[_0x55621d(0x15b)])===_0x15370b['row']||this[_0x55621d(0x11e)][_0x55621d(0x233)](_0x5405b4=>{const _0xdd1092=_0x55621d;_0x5405b4[_0xdd1092(0x139)](_0x15370b);});},0x64));});}['_updateCollabCursors'](_0x359c25,_0x4d7471){const _0x35bb5f=_0x1dafe1;var _0x4a4911;const _0x342171=(_0x4a4911=this[_0x35bb5f(0x111)]['getCurrent']())==null?void 0x0:_0x4a4911[_0x35bb5f(0x2a3)];if(!_0x342171)return;const _0xda8411=this[_0x35bb5f(0x284)]();if(!_0xda8411)return;this[_0x35bb5f(0x11e)][_0x35bb5f(0x233)](_0xcd9d2b=>{const _0x2fa4cb=_0x35bb5f;_0xcd9d2b[_0x2fa4cb(0x1fa)]();});const {scene:_0x4befef}=_0xda8411,_0x1ae9b1=bt(Array[_0x35bb5f(0x152)](_0x4d7471[_0x35bb5f(0xc3)]()))[_0x35bb5f(0x112)](_0x49ce2d=>{const _0x551ce1=_0x35bb5f,{color:_0x2e75f6,range:_0x305ca5,name:_0x4d4557,selection:_0x5a31a4,sheetID:_0x841f9e}=_0x49ce2d,{startColumn:_0x542353,startRow:_0xc46b45,endColumn:_0x569032,endRow:_0x23a921}=_0x305ca5,_0x5f37c5=X[_0x551ce1(0x11f)](_0xc46b45,_0x542353,_0x4befef,_0x342171),_0x4fbf42=X[_0x551ce1(0x11f)](_0x23a921,_0x569032,_0x4befef,_0x342171),{columnHeaderHeightAndMarginTop:_0x223810}=_0x342171,{startX:_0x111ecb,startY:_0x5a708b}=_0x5f37c5,{endX:_0x29df13,endY:_0x37f8c5}=_0x4fbf42,_0x199902=_0x29df13-_0x111ecb,_0x221ed3=_0x37f8c5-_0x5a708b,_0x1862e2={'labelPosition':_0x5a708b-_0x223810>=K?_0x551ce1(0x18a):_0x551ce1(0x26f),'sheetID':_0x841f9e,'range':_0x305ca5,'color':_0x2e75f6,'name':_0x4d4557,'selection':_0x5a31a4,'left':_0x111ecb,'top':_0x5a708b,'width':_0x199902,'height':_0x221ed3,'evented':!0x1,'zIndex':Et};return new we(_0x4d4557,_0x1862e2);});_0x4befef[_0x35bb5f(0x277)](_0x1ae9b1,gt),this[_0x35bb5f(0x11e)]=new Set(_0x1ae9b1);}[_0x1dafe1(0x169)](){const _0x4f8791=_0x1dafe1;var _0x47dd63;(_0x47dd63=this[_0x4f8791(0x11e)])==null||_0x47dd63[_0x4f8791(0x233)](_0x4fb6ce=>_0x4fb6ce[_0x4f8791(0x10a)]());}[_0x1dafe1(0x284)](){const _0x249198=_0x1dafe1;return X[_0x249198(0x276)](this[_0x249198(0x244)][_0x249198(0x12e)],this[_0x249198(0x244)]);}};ve=pt([ae(0x1,a['Inject'](X[_0x1dafe1(0x283)])),ae(0x2,a['Inject'](x)),ae(0x3,a['Inject'](a['ThemeService']))],ve);function bt(_0x4fbbbb){const _0x246197=_0x1dafe1,_0x246fbd=new Map();return _0x4fbbbb['forEach'](_0x307191=>{const _0x129b10=_0xc2a5;if(_0x246fbd[_0x129b10(0xeb)](_0x307191['selection'])){const _0x300c9b=_0x246fbd[_0x129b10(0x1f2)](_0x307191[_0x129b10(0x166)]);_0x300c9b['name']+=',\x20'+_0x307191['name'];}else _0x246fbd['set'](_0x307191[_0x129b10(0x166)],_0x307191);}),Array['from'](_0x246fbd[_0x246197(0xc3)]());}var b=function(){const _0x260bab=_0x1dafe1;return b=Object[_0x260bab(0xf6)]||function(_0x56b388){const _0x5465c3=_0x260bab;for(var _0x455e5f,_0x77d07f=0x1,_0x53a2d4=arguments['length'];_0x77d07f<_0x53a2d4;_0x77d07f++){_0x455e5f=arguments[_0x77d07f];for(var _0x2ba28a in _0x455e5f)Object[_0x5465c3(0x2d1)][_0x5465c3(0x15d)]['call'](_0x455e5f,_0x2ba28a)&&(_0x56b388[_0x2ba28a]=_0x455e5f[_0x2ba28a]);}return _0x56b388;},b['apply'](this,arguments);},Ot=function(_0x4df2bf,_0xf8c0e7){const _0x5b1217=_0x1dafe1;var _0x1e90a3={};for(var _0x1d933c in _0x4df2bf)Object[_0x5b1217(0x2d1)][_0x5b1217(0x15d)]['call'](_0x4df2bf,_0x1d933c)&&_0xf8c0e7['indexOf'](_0x1d933c)<0x0&&(_0x1e90a3[_0x1d933c]=_0x4df2bf[_0x1d933c]);if(_0x4df2bf!=null&&typeof Object[_0x5b1217(0x26a)]==_0x5b1217(0xd4)){for(var _0x424c95=0x0,_0x1d933c=Object['getOwnPropertySymbols'](_0x4df2bf);_0x424c95<_0x1d933c[_0x5b1217(0x296)];_0x424c95++)_0xf8c0e7['indexOf'](_0x1d933c[_0x424c95])<0x0&&Object[_0x5b1217(0x2d1)]['propertyIsEnumerable'][_0x5b1217(0x2b8)](_0x4df2bf,_0x1d933c[_0x424c95])&&(_0x1e90a3[_0x1d933c[_0x424c95]]=_0x4df2bf[_0x1d933c[_0x424c95]]);}return _0x1e90a3;},pe=M[_0x1dafe1(0x270)](function(_0x1312e8,_0x5448ae){const _0x38e4dc=_0x1dafe1;var _0x468bd2=_0x1312e8[_0x38e4dc(0x209)],_0x6da0a4=_0x1312e8['id'],_0x3da554=_0x1312e8[_0x38e4dc(0x1f5)],_0x20b1ae=_0x1312e8['extend'],_0x367572=Ot(_0x1312e8,[_0x38e4dc(0x209),'id','className','extend']),_0x78d1fb='univerjs-icon\x20univerjs-icon-'[_0x38e4dc(0x2fd)](_0x6da0a4,'\x20')[_0x38e4dc(0x2fd)](_0x3da554||'')['trim'](),_0x57df57=M[_0x38e4dc(0x1a1)]('_'['concat'](Dt()));return Ae(_0x468bd2,''[_0x38e4dc(0x2fd)](_0x6da0a4),{'defIds':_0x468bd2[_0x38e4dc(0x1ee)],'idSuffix':_0x57df57[_0x38e4dc(0x2d4)]},b({'ref':_0x5448ae,'className':_0x78d1fb},_0x367572),_0x20b1ae);});function Ae(_0x11acab,_0x265c86,_0x10dd4e,_0x4f1589,_0xc4812a){const _0x38bf1e=_0x1dafe1;return M[_0x38bf1e(0xa4)](_0x11acab[_0x38bf1e(0x117)],b(b({'key':_0x265c86},Tt(_0x11acab,_0x10dd4e,_0xc4812a)),_0x4f1589),(Rt(_0x11acab,_0x10dd4e)[_0x38bf1e(0x1da)]||[])['map'](function(_0x57fcf3,_0x52a455){const _0x4aaeb9=_0x38bf1e;return Ae(_0x57fcf3,''[_0x4aaeb9(0x2fd)](_0x265c86,'-')[_0x4aaeb9(0x2fd)](_0x11acab[_0x4aaeb9(0x117)],'-')[_0x4aaeb9(0x2fd)](_0x52a455),_0x10dd4e,void 0x0,_0xc4812a);}));}function Tt(_0x54f2a4,_0x43e1ed,_0x49a8c6){const _0x35d728=_0x1dafe1;var _0x614bbb=b({},_0x54f2a4['attrs']);_0x49a8c6!=null&&_0x49a8c6[_0x35d728(0x1ea)]&&_0x614bbb[_0x35d728(0x9d)]===_0x35d728(0x1ea)&&(_0x614bbb['fill']=_0x49a8c6[_0x35d728(0x1ea)]),_0x54f2a4[_0x35d728(0x117)]===_0x35d728(0x9c)&&_0x614bbb['id']&&(_0x614bbb['id']=_0x614bbb['id']+_0x43e1ed[_0x35d728(0x2b1)]),Object[_0x35d728(0x1fd)](_0x614bbb)['forEach'](function(_0x64ec44){const _0x3af0d0=_0x35d728;var _0x2ce69e=_0x64ec44[0x0],_0x154eb2=_0x64ec44[0x1];_0x2ce69e===_0x3af0d0(0x9c)&&typeof _0x154eb2=='string'&&(_0x614bbb[_0x2ce69e]=_0x154eb2[_0x3af0d0(0x2ab)](/url\(#(.*)\)/,'url(#$1'[_0x3af0d0(0x2fd)](_0x43e1ed[_0x3af0d0(0x2b1)],')')));});var _0x25a875=_0x43e1ed[_0x35d728(0x1ee)];return!_0x25a875||_0x25a875[_0x35d728(0x296)]===0x0||(_0x54f2a4[_0x35d728(0x117)]===_0x35d728(0x2fc)&&_0x614bbb[_0x35d728(0x11d)]&&(_0x614bbb[_0x35d728(0x11d)]=_0x614bbb['xlink:href']+_0x43e1ed[_0x35d728(0x2b1)]),Object[_0x35d728(0x1fd)](_0x614bbb)[_0x35d728(0x233)](function(_0x1cf395){const _0x4bceb0=_0x35d728;var _0x59ced8=_0x1cf395[0x0],_0x35d05d=_0x1cf395[0x1];typeof _0x35d05d==_0x4bceb0(0x217)&&(_0x614bbb[_0x59ced8]=_0x35d05d[_0x4bceb0(0x2ab)](/url\(#(.*)\)/,'url(#$1'[_0x4bceb0(0x2fd)](_0x43e1ed[_0x4bceb0(0x2b1)],')')));})),_0x614bbb;}function Rt(_0x3a1bfe,_0x5244e5){const _0x2b1791=_0x1dafe1;var _0xfd83c3,_0xb08fa8=_0x5244e5['defIds'];return!_0xb08fa8||_0xb08fa8[_0x2b1791(0x296)]===0x0?_0x3a1bfe:_0x3a1bfe[_0x2b1791(0x117)]===_0x2b1791(0x2c7)&&(!((_0xfd83c3=_0x3a1bfe[_0x2b1791(0x1da)])===null||_0xfd83c3===void 0x0)&&_0xfd83c3['length'])?b(b({},_0x3a1bfe),{'children':_0x3a1bfe[_0x2b1791(0x1da)][_0x2b1791(0x112)](function(_0x4e24c0){const _0x1a56b2=_0x2b1791;return typeof _0x4e24c0['attrs']['id']==_0x1a56b2(0x217)&&_0xb08fa8&&_0xb08fa8[_0x1a56b2(0x2f5)](_0x4e24c0[_0x1a56b2(0x1d4)]['id'])?b(b({},_0x4e24c0),{'attrs':b(b({},_0x4e24c0[_0x1a56b2(0x1d4)]),{'id':_0x4e24c0[_0x1a56b2(0x1d4)]['id']+_0x5244e5[_0x1a56b2(0x2b1)]})}):_0x4e24c0;})}):_0x3a1bfe;}function _0x39b9(){const _0x2c0c57=['event$','stringify','eventID','NodePositionConvertToCursor','PENDING','_collabCursorState$','getColorFromTheme','flatMap','executeCommand','transformStateCache','getCollabCursors$','attrs','min','onLocalMutation','show','collaboration-client-ui.config','setUndoRedoMutationParamsCache','children','split','closePath','next','white','getRenderById','onRendered','collabStatus.syncing','getRelativeToViewportCoord','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_color','invokeId','894508ALAgBw','LICENSE_IMPORT_SIZE_EXCEEDED','_beforeCloseService','_cursorInfo$','colorChannel1','connectInjector','debounceTime','touchDependencies','defIds','ONLINE','sheetID','BehaviorSubject','get','location','session.will-retry','className','_initEvent','_handleLeaveEvent','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','INVITE_CODE_ALREADY_BOUND','makeDirty','_saveTaskMap','CollaborationStatus','entries','pipe','substring','getMergeData','handleIRemoveRow','getMemberID','debug','MemberService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','toDisposable','CLOSE_ROOM','JOIN_ROOM_FAILED','icon','TEXT_RANGE_LAYER_INDEX','error','COMPLETION_FINISHED','OTHER_CLIENTS_EDITING','ITransformService','docStateChange$','unitId','href','MessageType','arc','isArray','toStringTag','newValue','string','[CollaborationDataLoaderController]','startsWith','getActiveSheet','send','subscribe','_drawRectRange','setStateCache','_lastPointer','_initStatusComponent','_docTransformSelectionsService','currentSkeleton$','_imageIoService','LOCAL_CACHE_INTERVAL','COLORS','ranges','_cursor','1447215EHmeZf','RefRangeService','setInterval','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ILocalCacheService','3bRCqfI','symbol','type','generateRandomId','color','with','forEach','collaboration.single-unit.warning','_collabCursorController','whenReady','1em','PY_RUNTIME_SCRIPT_ERROR','SetWorksheetActivateCommand','CollaborationUIEventId','CollaborationDataLoaderController','roomMembers$','_labelPosition','onTransformChange$','getConfig','0\x200\x2016\x2016','_handleHeartbeatEvent','HEADER_MENU','path','_context','registerRefRange','getFocusedUnit','_setupBeforeClosingHandler','DeleteRangeMoveLeftCommandId','MOBILE_VERIFY_CODE_MISMATCH','_name','LICENSE_MAX_UNITS_EXCEEDED','6321RbduVH','getMember','m2Prime','_startDocCollabCursor','InsertRangeMoveRightCommandId','fillText','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_anchorDot','fillStyle','_init','YUUMI_UNABLE_LOAD_URL','UPDATE_CURSOR','collab-rect-range-','CollaborationController','OffLineIcon','UniverInstanceType','CollaborationSocketService','createInstance','transform','APPLY_PERMISSION_DENIED','NOT_FOUND','displayName','handleIRemoveCol','_logService','_status$','UniverIcon','_initCommandExecutedListener','getSkeleton','focused$','setItem','getOwnPropertySymbols','_handleEvent','SUBMIT_CHANGESET_TIMEOUT','useCallback','_onCursorDelete','bottom','forwardRef','YUUMI_AI_RUN_FAILED','DeleteRangeMoveUpCommandId','origin','textRanges','red.300','getSheetObject','addObjects','editingUnit','handleDeleteRangeMoveUp','push','_id','getSheetId','filter','YUUMI_ALL_TABLES_IS_INVALID','TRANSFORM_CHANGE_OBSERVABLE_TYPE','unsubscribe','_httpService','saveTaskMap','SheetSkeletonManagerService','_getSheetObject','_hideTimer','search','getSheetBySheetId','NodePositionConvertToRectRange','key','getUniverSheetInstance','application/json','data','syncEditingCollabCursor','registerComponent','APPLY_DUPLICATED','LOGIN_FAILED','add','YUUMI_NO_CUBOID_FOR_QUESTION','ILogService','searchParams','getCurrentUnitForType','length','YUUMI_SUBSCRIPTION_NOT_FOUND','IRemoteInstanceService','NOT_COLLAB','_updateURLWithCurrentState','doc.mutation.rich-text-editing','createIdentifier','Optional','_getSessionTicket','disposeWithMe','Workbook','collaboration.closeRoom','http://www.w3.org/2000/svg','skeleton','AWAITING','getStateCache','name','exhaustSavingTask','storage','getCurrentSelections','DocStateChangeManagerService','replace','jsxs','dispose$','requireSession','CommandType','WebBrowserSingleActiveUnitService','idSuffix','SetTextSelectionsOperation','mutations','HTTPService','_docSyncEditingCollabCursorService','WECHAT_HAS_BEEN_BOUND','history','call','_shapes','getTypeOfUnitAdded$','disposeUnit','getColor','subUnitId','actions','handleMoveRange','backgroundColor','ThemeService','UniverCollaborationClientUIPlugin','_handleJoinEvent','triggerDblclick','UNAUTHENTICATED','_notificationService','defs','INotificationService','CollaborationEvent','_updateSubUnitFromURLParams','Injector','Error','3651894CpKpEs','_selfUnitIDs','some','RxDisposable','prototype','transformIMECache','YUUMI_URL_COL_OUT_OF_RANGE','current','VIEW_MAIN','RevisionService','clipPath','urlChange$','save','createSocket','_messageService','IBeforeCloseService','hovered','reconnect','endColumn','ISnapshotServerService','CollaborationUIEventService','setTimeout','IURLService','RemoteUniscriptService','font','_docTransformStateCacheService','InsertRangeMoveDownCommandId','_saveCache','_toggleOnline','EMAIL_HAS_BEEN_BOUND','onCommandExecuted','removeParam','round','IImageIoService','replaceDocRanges','_getAnchorBounding','TEXT','all','green.600','setShapeProps','includes','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','YUUMI_ASYNCIO_CANCELLED','/run/','_scheduleSaving','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','init','use','concat','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','_localCacheService','getRangePointData','_cachedData','1614630HFRbpq','_registerRenderDependencies','setParam','_memberService','handleDeleteRangeMoveLeft','LICENSE_EXPORT_SIZE_EXCEEDED','_colorAssignService','cursorInfo$','memberID','_createSocketURL','fillRule','DocSelectionManagerService','_initStatusListener','APPLY_REVISION_CONFILICT','Unknown\x20user','takeUntil','fromEventSubject','_renderManagerService','size','CollaborationSessionService','startRow','_textBubble','mask','fill','isTransformMutationsWithChangesetSuccess','delete','_heartbeatTimer','m1Prime','_updateCollabCursors','find','createElement','_removeClearOtherTimer','getAncestorScale','unitID','DEFAULT_WS_SESSION_TICKET_URL','_dataLoaderService','width','8568EQwyWo','addObject','OFFLINE','currentColor','addClipboardHook','APPLY_NON_SEQUENTIAL_REVISION','defineProperty','assignAColorForMemberID','_themeService','code','_getMergeRange','_startSheetCollabCursor','executionId','297xwmUhC','_config','restore','_roomMembers$','addEventListener','entityInit$','getDocRanges','_disabled','sessionStatus$','purple.300','hide','values','findNodePositionByCharIndex','random','LOCAL_CACHE_INTERVAL_KEY','_range','source','_scheduleHeartbeat','INVALID_INVITE_CODE','collabStatus.conflict','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','_instanceService','then','Rect','handleInsertCol','transformMutation','getTypeOfUnitDisposed$','EffectRefRangId','function','OnLineIcon','Inject','_unitStatus','YUUMI_CONNECTOR_URL_NOT_FOUND','2861662ftCUns','useDependency','currentTheme$','LocaleService','_drawAnchor','transformMutationsWithChangeset','_initEntityListener','Failed','DocIMEInputManagerService','disableLocalCache','getCollabEntity$','IConfigService','_docStateChangeManagerService','_drawTextRange','subunit','combineLatest','merge','pluginName','has','EMAIL_VERIFY_CODE_MISMATCH','switchMap','IUniverInstanceService','_getScale','_refRangeService','_injector','_document','params','registerRenderModule','_hovered','assign','_assignedColors','UNIVER_DOC','_refreshCollabCursors','_scheduleClearOtherTimer','ColorKit','_updateLocalCursor','translate(.97)','_scene','useObservable','none','CONNECTOR_DATA_TOO_LARGE','url(#off-line-icon_clip0_910_343)','getParam','redoState','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_univerInstanceService','black','_configService','_eventUnsubscribe','dispose','_registerDependencies','USER_NOT_INVITED_CODE','ENSURE_SNAPSHOT_EXECUTION','saveImage','div','_colorIndex','_sheetSkeletonManagerService','map','_urlService','UNRECOGNIZED','getOwnPropertyDescriptor','_send','tag','loadUnit','handleInsertRangeMoveRight','collab-text-range-','cursorInfo','_collabSessionService','xlink:href','_cursors','getCoordByCell','_onCursorUpdate','RECT','ALREADY_EXISTS','_unitOnClients','_initDependencies','Warning','BuiltInUIPart','_revisionService','transformSelections','getUnitId','_commandService','_backgroundColor','_localStorageService','RichTextEditingMutation','unit','lineTo','endRow','_entityInit$','_docSkeleton','Tools','IDocClipboardService','clsx','subscribeEvent','resize','session.collaboration-timeout','onMouseMove','APPLY_REJECT','SheetCollabCursorShape','range','body','FETCH_MISS','_session','WebURLService','InsertRowCommandId','selections','collabStatus.notCollab','_localeService','getUndoRedoMutationParamsCache','OTHER_CLIENT_EDITING','_handleHover','unshift','runRefRangeMutations','#FFF','column','_online','getViewport','isActive','measureText','WebSocketService','svg','from','getItem','runOnServer','_onRefRangeChange','moveTo','LICENSE_DISTRO_REJECTED','DisposableCollection','getValue','toString','row','collabCursorState$','hasOwnProperty','getLocalCacheKey','DesktopCollaborationStatusDisplayController','CollaborationStatusDisplay','clearInterval','UNDEFINED','_syncEditingCollabCursorService','IRenderManagerService','complete','selection','Tooltip','UnitStatus','_removeCollabCursors','BrowserCollaborationSocketService','_toggleOffline','_getSaveTimeout','beginPath','_draw','_uiPartsService','asObservable','USERS_LEAVE','undoState','onPointerEnter$','pushState','M0\x200H16V16H0z','PERMISSION_DENIED','getActiveRange','text','_ensureSubject','sessionTicket','set','_cursorShapes','20HvOlTw','_initResize','max','_entities','YUUMI_RATE_OVER_LIMIT','Vector2','SetDocZoomRatioOperation','startColumn','INVITE_CODE_REQUIRED','DependentOn','clearTimeout','FromArray','_transformService','top','Module','jsx','url(#on-line-icon_clip0_910_349)','ILocalStorageService','Disposable','isTransformMutationFailure','CHANGESET_REVISION_CONFILICT','_docClipboardService','engine','MUTATION','_transformUndoRedoStack','univer-mr-2\x20univer-flex\x20univer-text-xl','getVpScrollXYInfoByPosToVp','_collaborationUIEventService','handleInsertRangeMoveDown','INTERNAL_ERROR','AWAITING_WITH_PENDING','RegularPolygon','INVALID_ARGUMENT','ticket','deepClone','_docSkeletonManagerService','useRef','getOffsetConfig','_transformPreviousActiveRange','_docTransformIMECacheService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','fromEvent','toRgbString','_anchor','UNIVER_SHEET','DataLoaderService','MOBILE_HAS_BEEN_BOUND','loadOfflineData','_hover','0\x200\x2017\x2016','roomMembers','IUIPartsService','SNAPSHOT_INVALID_SNAPSHOT','permission.content','off-line-icon','drawWith','onStarting','on-line-icon_clip0_910_349','ICommandService','getCellPositionByOffset','evenodd','RemoveRowCommandId','Plugin','setAlpha','[RemoteUniscriptService]:\x20no\x20focused\x20unit','transformRemoteChangeset','_setupSubUnitSync','DOC_RANGE_TYPE','SOCKET_FAILED_RETRY','isEditing','2170266NMyPwe','debounce','Shape','INVITE_CODE_HAS_BEEN_UES','runId','_clearOtherTimers'];_0x39b9=function(){return _0x2c0c57;};return _0x39b9();}function Dt(){const _0x46213e=_0x1dafe1;return Math[_0x46213e(0xc5)]()[_0x46213e(0x15a)](0x24)[_0x46213e(0x1ff)](0x2,0x8);}pe[_0x1dafe1(0x261)]=_0x1dafe1(0x265);var Ut={'tag':_0x1dafe1(0x151),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1dafe1(0x100),'viewBox':_0x1dafe1(0x240),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1dafe1(0x102)},'children':[{'tag':'path','attrs':{'stroke':_0x1dafe1(0xae),'d':_0x1dafe1(0x2fe),'strokeLinecap':_0x1dafe1(0x2ed),'strokeLinejoin':_0x1dafe1(0x2ed),'strokeWidth':1.2}}]},{'tag':_0x1dafe1(0x2c7),'attrs':{},'children':[{'tag':_0x1dafe1(0x2d7),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x1dafe1(0x243),'attrs':{'fill':_0x1dafe1(0x1de),'d':_0x1dafe1(0x175)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M[_0x1dafe1(0x270)](function(_0x22b935,_0x359a86){const _0x76ab74=_0x1dafe1;return M['createElement'](pe,Object[_0x76ab74(0xf6)]({},_0x22b935,{'id':_0x76ab74(0x1b3),'ref':_0x359a86,'icon':Ut}));});ye['displayName']=_0x1dafe1(0x25a);var Nt={'tag':_0x1dafe1(0x151),'attrs':{'xmlns':_0x1dafe1(0x2a2),'fill':_0x1dafe1(0x100),'viewBox':_0x1dafe1(0x1ae),'width':_0x1dafe1(0x237),'height':_0x1dafe1(0x237)},'children':[{'tag':'g','attrs':{'clipPath':_0x1dafe1(0x18d)},'children':[{'tag':_0x1dafe1(0x243),'attrs':{'stroke':'currentColor','d':_0x1dafe1(0xcc),'strokeLinecap':_0x1dafe1(0x2ed),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1dafe1(0x2c7),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1dafe1(0x1b6)},'children':[{'tag':_0x1dafe1(0x243),'attrs':{'fill':_0x1dafe1(0x1de),'d':_0x1dafe1(0x175),'transform':_0x1dafe1(0xfd)}}]}]}],'defIds':[_0x1dafe1(0x1b6)]},$e=M[_0x1dafe1(0x270)](function(_0xc1adba,_0x4f409b){const _0xb7b02c=_0x1dafe1;return M['createElement'](pe,Object[_0xb7b02c(0xf6)]({},_0xc1adba,{'id':'on-line-icon','ref':_0x4f409b,'icon':Nt}));});$e[_0x1dafe1(0x261)]=_0x1dafe1(0xd5);function Mt(_0x55ef49){const _0x4e53df=_0x1dafe1;switch(_0x55ef49){case u[_0x4e53df(0x1fc)][_0x4e53df(0xad)]:return'collabStatus.offline';case u['CollaborationStatus']['CONFLICT']:return _0x4e53df(0xcb);case u['CollaborationStatus'][_0x4e53df(0x13e)]:return'collabStatus.fetchMiss';case u[_0x4e53df(0x1fc)][_0x4e53df(0x299)]:return _0x4e53df(0x143);case u[_0x4e53df(0x1fc)][_0x4e53df(0x2a4)]:case u[_0x4e53df(0x1fc)][_0x4e53df(0x19b)]:return _0x4e53df(0x1e1);case u['CollaborationStatus']['SYNCED']:case u[_0x4e53df(0x1fc)][_0x4e53df(0x1cd)]:return'collabStatus.synced';}}function xe(_0x12035b){const _0x1a151f=_0x1dafe1,{status$:_0x137bd0}=_0x12035b,_0x4557d7=O[_0x1a151f(0xff)](_0x137bd0,u[_0x1a151f(0x1fc)][_0x1a151f(0x299)]),_0x45349b=O[_0x1a151f(0xda)](a[_0x1a151f(0xdc)]),_0x5acac5=O[_0x1a151f(0xda)](u['CollaborationSessionService']),_0x47f806=_0x4557d7!==u[_0x1a151f(0x1fc)][_0x1a151f(0xad)],_0x5365a8=_0x45349b['t'](Mt(_0x4557d7)),_0x4be894=_0x47f806?P[_0x1a151f(0x18c)]($e,{}):P['jsx'](ye,{}),_0x48e27b=M[_0x1a151f(0x26d)](()=>{const _0x19dc07=_0x1a151f;_0x47f806||_0x5acac5[_0x19dc07(0x2de)]();},[_0x47f806,_0x5acac5]);function _0x4a5e5d(){const _0x2783c6=_0x1a151f;return P[_0x2783c6(0x2ac)](_0x2783c6(0x10f),{'className':'univer-flex\x20univer-items-center','onClick':_0x48e27b,'children':[P[_0x2783c6(0x18c)](_0x2783c6(0x10f),{'className':D[_0x2783c6(0x135)](_0x2783c6(0x196),{'univer-text-green-500':_0x47f806,'univer-text-red-500':!_0x47f806}),'children':_0x4be894}),P[_0x2783c6(0x18c)](_0x2783c6(0x10f),{'className':_0x2783c6(0x2f6),'children':_0x5365a8})]});}return _0x47f806?_0x4a5e5d():P[_0x1a151f(0x18c)](D[_0x1a151f(0x167)],{'title':_0x45349b['t']('collab-client.tooltip.reconnect'),'children':_0x4a5e5d()});}var Lt=Object[_0x1dafe1(0x115)],Pt=(_0x1d0521,_0x1e3a32,_0x4ed182,_0x7cf7e3)=>{const _0x50e0db=_0x1dafe1;for(var _0x2ff44e=_0x7cf7e3>0x1?void 0x0:_0x7cf7e3?Lt(_0x1e3a32,_0x4ed182):_0x1e3a32,_0x47d84d=_0x1d0521[_0x50e0db(0x296)]-0x1,_0x3238de;_0x47d84d>=0x0;_0x47d84d--)(_0x3238de=_0x1d0521[_0x47d84d])&&(_0x2ff44e=_0x3238de(_0x2ff44e)||_0x2ff44e);return _0x2ff44e;},V=(_0x494d88,_0x5f13ab)=>(_0x4db1a1,_0x1c60ed)=>_0x5f13ab(_0x4db1a1,_0x1c60ed,_0x494d88);exports[_0x1dafe1(0x15f)]=class extends a[_0x1dafe1(0x18f)]{constructor(_0x1d9b8c,_0x2193b5,_0x31a647,_0x521835){const _0x2613c5=_0x1dafe1;super(),h(this,_0x2613c5(0x264),new d[(_0x2613c5(0x1f1))](u[_0x2613c5(0x1fc)][_0x2613c5(0x299)])),(this[_0x2613c5(0x106)]=_0x1d9b8c,this[_0x2613c5(0xf1)]=_0x2193b5,this['_collaborationController']=_0x31a647,this[_0x2613c5(0x16f)]=_0x521835,this[_0x2613c5(0x220)](),this[_0x2613c5(0x30e)]());}[_0x1dafe1(0x30e)](){const _0x4d522a=_0x1dafe1;this['disposeWithMe'](this[_0x4d522a(0x106)][_0x4d522a(0x268)][_0x4d522a(0x1fe)](d[_0x4d522a(0xed)](()=>{const _0x4b42fe=_0x4d522a,_0xb461b9=this[_0x4b42fe(0x106)][_0x4b42fe(0x246)]();return _0xb461b9?this['_collaborationController'][_0x4b42fe(0xe3)](_0xb461b9[_0x4b42fe(0x129)]()):d['of'](null);}),d[_0x4d522a(0xed)](_0x21bba4=>_0x21bba4?_0x21bba4['status$']:d['of'](u[_0x4d522a(0x1fc)][_0x4d522a(0x299)])))[_0x4d522a(0x21c)](_0x61f71a=>{const _0x4832ee=_0x4d522a;this[_0x4832ee(0x264)][_0x4832ee(0x1dd)](_0x61f71a);}));}[_0x1dafe1(0x220)](){const _0x31eb4a=_0x1dafe1;this[_0x31eb4a(0x29f)](this[_0x31eb4a(0x16f)][_0x31eb4a(0x28e)](O[_0x31eb4a(0x126)][_0x31eb4a(0x242)],()=>O[_0x31eb4a(0x1eb)](wt({'status$':this[_0x31eb4a(0x264)][_0x31eb4a(0x170)]()}),this[_0x31eb4a(0xf1)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x1dafe1(0xee)]),V(0x1,a['Inject'](a[_0x1dafe1(0x2cb)])),V(0x2,a[_0x1dafe1(0xd6)](u['CollaborationController'])),V(0x3,O[_0x1dafe1(0x1b0)])],exports[_0x1dafe1(0x15f)]);function wt(_0x38bff0){const {status$:_0x25085f}=_0x38bff0;return function(){const _0x3d44cf=_0xc2a5;return P[_0x3d44cf(0x18c)](xe,{'status$':_0x25085f});};}var At=Object[_0x1dafe1(0x115)],yt=(_0x50394d,_0xe9f959,_0x14adc7,_0x4c90d3)=>{for(var _0x55992a=_0x4c90d3>0x1?void 0x0:_0x4c90d3?At(_0xe9f959,_0x14adc7):_0xe9f959,_0x13d9aa=_0x50394d['length']-0x1,_0x5b1470;_0x13d9aa>=0x0;_0x13d9aa--)(_0x5b1470=_0x50394d[_0x13d9aa])&&(_0x55992a=_0x5b1470(_0x55992a)||_0x55992a);return _0x55992a;},y=(_0xaf21b2,_0x2878cd)=>(_0x150a58,_0x18b758)=>_0x2878cd(_0x150a58,_0x18b758,_0xaf21b2);let q=class extends a[_0x1dafe1(0x18f)]{constructor(_0xfb4c55,_0x5708d4,_0x33a0da,_0x1bcc52,_0xd24532,_0x41f206){const _0x11649a=_0x1dafe1;super(),this[_0x11649a(0x1e8)]=_0xfb4c55,this[_0x11649a(0x2ff)]=_0x5708d4,this[_0x11649a(0x198)]=_0x33a0da,this[_0x11649a(0x2db)]=_0x1bcc52,this[_0x11649a(0x2c6)]=_0xd24532,this[_0x11649a(0x144)]=_0x41f206,this['_setupBeforeClosingHandler'](),this[_0x11649a(0x1f6)]();}[_0x1dafe1(0x247)](){const _0x33c0f3=_0x1dafe1;this[_0x33c0f3(0x29f)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x21cf1b=_0x33c0f3;if(this[_0x21cf1b(0x2ff)][_0x21cf1b(0x282)]['size'])return this[_0x21cf1b(0x144)]['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x1fc95c=_0x1dafe1;this[_0x1fc95c(0x29f)](this[_0x1fc95c(0x198)]['event$'][_0x1fc95c(0x21c)](_0x167283=>{const _0x581ad5=_0x1fc95c;_0x167283['id']===u[_0x581ad5(0x23a)][_0x581ad5(0x146)]&&this['_messageService'][_0x581ad5(0x1d7)]({'type':D[_0x581ad5(0x212)][_0x581ad5(0x125)],'content':this['_localeService']['t'](_0x581ad5(0x234))}),_0x167283['id']===u[_0x581ad5(0x23a)][_0x581ad5(0x207)]&&this[_0x581ad5(0x2db)][_0x581ad5(0x1d7)]({'type':D['MessageType'][_0x581ad5(0x125)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x167283['id']===u[_0x581ad5(0x23a)][_0x581ad5(0x176)]&&this['_notificationService']['show']({'title':this[_0x581ad5(0x144)]['t']('permission.title'),'content':this[_0x581ad5(0x144)]['t'](_0x581ad5(0x1b2)),'type':_0x581ad5(0x20b),'duration':0x0}),_0x167283['id']===u[_0x581ad5(0x23a)]['CONFLICT']&&this[_0x581ad5(0x2db)][_0x581ad5(0x1d7)]({'type':D[_0x581ad5(0x212)][_0x581ad5(0x2cc)],'content':this[_0x581ad5(0x144)]['t'](_0x581ad5(0x2a1))+'('+_0x167283[_0x581ad5(0x28c)]+')'}),_0x167283['id']===u['CollaborationUIEventId'][_0x581ad5(0x208)]&&this[_0x581ad5(0x2db)][_0x581ad5(0x1d7)]({'type':D['MessageType'][_0x581ad5(0x125)],'content':this[_0x581ad5(0x144)]['t'](_0x167283[_0x581ad5(0x28c)]||'')}),_0x167283['id']===u[_0x581ad5(0x23a)][_0x581ad5(0x1c1)]&&this[_0x581ad5(0x2db)]['show']({'type':D[_0x581ad5(0x212)][_0x581ad5(0x125)],'content':this[_0x581ad5(0x144)]['t'](_0x581ad5(0x1f4))}),_0x167283['id']===u[_0x581ad5(0x23a)]['SOCKET_FAILED']&&this[_0x581ad5(0x2db)][_0x581ad5(0x1d7)]({'type':D[_0x581ad5(0x212)][_0x581ad5(0x2cc)],'content':this['_localeService']['t']('session.connection-failed')}),_0x167283['id']===u[_0x581ad5(0x23a)][_0x581ad5(0x26c)]&&this['_messageService']['show']({'type':D[_0x581ad5(0x212)]['Error'],'content':this['_localeService']['t'](_0x581ad5(0x138))});}));}};q=yt([y(0x0,O[_0x1dafe1(0x2dc)]),y(0x1,u[_0x1dafe1(0x22c)]),y(0x2,a[_0x1dafe1(0xd6)](u[_0x1dafe1(0x2e1)])),y(0x3,O['IMessageService']),y(0x4,O[_0x1dafe1(0x2c8)]),y(0x5,a[_0x1dafe1(0xd6)](a['LocaleService']))],q);const $t=_0x1dafe1(0x1d8),Ue={},Ee=a[_0x1dafe1(0x29c)]('uni.network.url-service');var xt=Object[_0x1dafe1(0x115)],Bt=(_0x1f4664,_0x17bec6,_0x48d254,_0x13b96f)=>{for(var _0x102ae8=_0x13b96f>0x1?void 0x0:_0x13b96f?xt(_0x17bec6,_0x48d254):_0x17bec6,_0x4a5d1c=_0x1f4664['length']-0x1,_0x3104c0;_0x4a5d1c>=0x0;_0x4a5d1c--)(_0x3104c0=_0x1f4664[_0x4a5d1c])&&(_0x102ae8=_0x3104c0(_0x102ae8)||_0x102ae8);return _0x102ae8;},F=(_0x5de561,_0x3db29c)=>(_0x25fdbd,_0x411b51)=>_0x3db29c(_0x25fdbd,_0x411b51,_0x5de561);exports[_0x1dafe1(0x23b)]=class extends a[_0x1dafe1(0x2d0)]{constructor(_0x6e1fb1,_0x49cf1,_0xee87cf,_0x42fc99,_0x3f03b4){const _0x1d979c=_0x1dafe1;super(),this['_urlService']=_0x6e1fb1,this[_0x1d979c(0x263)]=_0x49cf1,this[_0x1d979c(0x12a)]=_0xee87cf,this['_dataLoaderService']=_0x42fc99,_0x3f03b4?_0x3f03b4==null||_0x3f03b4[_0x1d979c(0x236)]()['then'](()=>this[_0x1d979c(0x255)]()):(this['_logService'][_0x1d979c(0x203)](_0x1d979c(0x218),_0x1d979c(0x205)),this[_0x1d979c(0x255)]());}async[_0x1dafe1(0x255)](){const _0x322599=_0x1dafe1,_0x5147b4=this[_0x322599(0x113)][_0x322599(0x103)](_0x322599(0x12e)),_0x1e8f02=this[_0x322599(0x113)][_0x322599(0x103)]('type'),_0x4b74d6=this[_0x322599(0x113)]['getParam'](_0x322599(0xe7));if(!_0x5147b4||!_0x1e8f02){this[_0x322599(0x263)][_0x322599(0x203)](_0x322599(0x218),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0xdd94f0=await this[_0x322599(0xa9)][_0x322599(0x118)](_0x5147b4,Number(_0x1e8f02),_0x4b74d6);_0xdd94f0&&_0xdd94f0 instanceof a[_0x322599(0x2a0)]&&this[_0x322599(0x1bf)](_0xdd94f0);}async['_setupSubUnitSync'](_0x34a248){const _0x3d8edd=_0x1dafe1;await this[_0x3d8edd(0x2ca)](_0x34a248),_0x34a248['activeSheet$'][_0x3d8edd(0x1fe)](d[_0x3d8edd(0x311)](this[_0x3d8edd(0x2ad)]))['subscribe'](_0x3c6274=>{_0x3c6274&&this['_updateURLWithCurrentState'](_0x3c6274);}),this['_urlService'][_0x3d8edd(0x2d8)]['pipe'](d['takeUntil'](this[_0x3d8edd(0x2ad)]))['subscribe'](()=>this[_0x3d8edd(0x2ca)](_0x34a248));}[_0x1dafe1(0x29a)](_0x171c35,_0x2b2557=!0x1){const _0x5409f3=_0x1dafe1,_0x3f06a2=this[_0x5409f3(0x113)]['getParam'](_0x5409f3(0xe7));_0x171c35[_0x5409f3(0x27c)]()!==_0x3f06a2&&this['_urlService'][_0x5409f3(0x304)](_0x5409f3(0xe7),_0x171c35[_0x5409f3(0x27c)](),_0x2b2557);}async[_0x1dafe1(0x2ca)](_0x42e693){const _0x5bdbb3=_0x1dafe1;var _0x1e545;const _0x46b83a=this[_0x5bdbb3(0x113)][_0x5bdbb3(0x103)](_0x5bdbb3(0xe7));if(!_0x46b83a||!_0x42e693[_0x5bdbb3(0x287)](_0x46b83a)){const _0x474d4b=_0x42e693['getUnhiddenWorksheets']()[0x0],_0x216ad4=_0x42e693[_0x5bdbb3(0x287)](_0x474d4b);if(!_0x216ad4)return;this[_0x5bdbb3(0x29a)](_0x216ad4,!0x0),await this[_0x5bdbb3(0x12a)][_0x5bdbb3(0x1d1)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x42e693[_0x5bdbb3(0x129)](),'subUnitId':_0x474d4b});return;}((_0x1e545=_0x42e693[_0x5bdbb3(0x21a)]())==null?void 0x0:_0x1e545[_0x5bdbb3(0x27c)]())!==_0x46b83a&&await this[_0x5bdbb3(0x12a)][_0x5bdbb3(0x1d1)](g[_0x5bdbb3(0x239)]['id'],{'unitId':_0x42e693[_0x5bdbb3(0x129)](),'subUnitId':_0x46b83a});}},exports[_0x1dafe1(0x23b)]=Bt([F(0x0,Ee),F(0x1,a[_0x1dafe1(0x293)]),F(0x2,a[_0x1dafe1(0x1b7)]),F(0x3,a[_0x1dafe1(0xd6)](u[_0x1dafe1(0x1aa)])),F(0x4,a[_0x1dafe1(0x29d)](Ke[_0x1dafe1(0x298)]))],exports[_0x1dafe1(0x23b)]);var jt=Object[_0x1dafe1(0x115)],kt=(_0x3ab47e,_0x2ec969,_0x49b76a,_0x1db14e)=>{const _0x5c2bf3=_0x1dafe1;for(var _0x1357d3=_0x1db14e>0x1?void 0x0:_0x1db14e?jt(_0x2ec969,_0x49b76a):_0x2ec969,_0xad69d4=_0x3ab47e[_0x5c2bf3(0x296)]-0x1,_0x4b8261;_0xad69d4>=0x0;_0xad69d4--)(_0x4b8261=_0x3ab47e[_0xad69d4])&&(_0x1357d3=_0x4b8261(_0x1357d3)||_0x1357d3);return _0x1357d3;},ce=(_0x2c111c,_0x22bbdf)=>(_0x1d8247,_0x388cd3)=>_0x22bbdf(_0x1d8247,_0x388cd3,_0x2c111c);let z=class{constructor(_0x5b64f0,_0x3f2b57,_0x14f065){const _0x5ac84d=_0x1dafe1;this['_injector']=_0x5b64f0,this[_0x5ac84d(0x189)]=_0x3f2b57,this['_renderManagerService']=_0x14f065;}[_0x1dafe1(0x2d2)](_0x1970c7){const _0x408499=_0x1dafe1;this[_0x408499(0x195)](_0x1970c7),this[_0x408499(0x1a3)](_0x1970c7);}[_0x1dafe1(0x1be)](_0x426c57){const _0x1a3629=_0x1dafe1,{unitID:_0x46c7de}=_0x426c57,_0x15faed=this[_0x1a3629(0x313)][_0x1a3629(0x1df)](_0x46c7de)[_0x1a3629(0x232)](E[_0x1a3629(0xe1)]),{redoCache:_0x169c00}=_0x15faed[_0x1a3629(0x145)]();if(_0x169c00[_0x1a3629(0x296)]===0x0)return _0x426c57;let _0x4a49b7=a['Tools'][_0x1a3629(0x19f)](_0x426c57[_0x1a3629(0x2b3)][0x0]);for(let _0xa07b45=0x0;_0xa07b45<_0x169c00[_0x1a3629(0x296)];_0xa07b45++){const _0x5d4e3f={'id':'doc.mutation.rich-text-editing','params':{..._0x169c00[_0xa07b45]}},_0x15fead=this[_0x1a3629(0x189)]['transformMutation'](_0x4a49b7,_0x5d4e3f,!0x1);if(m[_0x1a3629(0x190)](_0x15fead))throw _0x15fead['error'];_0x4a49b7=_0x15fead['m1Prime'];}return{...a[_0x1a3629(0x133)][_0x1a3629(0x19f)](_0x426c57),'mutations':[_0x4a49b7]};}['_transformUndoRedoStack'](_0x43f232){const _0x4f0998=_0x1dafe1,{unitID:_0x260ff9}=_0x43f232,_0x10c410=this[_0x4f0998(0x313)][_0x4f0998(0x1df)](_0x260ff9)[_0x4f0998(0x232)](E[_0x4f0998(0xe1)]),{undoCache:_0xd54fd1,redoCache:_0x2b3ab2}=_0x10c410['getUndoRedoMutationParamsCache']();if(_0xd54fd1['length']===0x0||_0x2b3ab2[_0x4f0998(0x296)]===0x0)return;const _0x50e7ec=[],_0x46c89f=[];let _0x4d009a=a['Tools'][_0x4f0998(0x19f)](_0x43f232[_0x4f0998(0x2b3)][0x0]),_0x2cec53=a[_0x4f0998(0x133)][_0x4f0998(0x19f)](_0x43f232[_0x4f0998(0x2b3)][0x0]);for(let _0x51b717=_0xd54fd1['length']-0x1;_0x51b717>=0x0;_0x51b717--){const _0x26236e={'id':'doc.mutation.rich-text-editing','params':{..._0xd54fd1[_0x51b717]}},_0x5501e0={'id':_0x4f0998(0x29b),'params':{..._0x2b3ab2[_0x51b717]}},_0xd4d397=this[_0x4f0998(0x189)]['transformMutation'](_0x4d009a,_0x26236e,!0x1),_0x52573=this[_0x4f0998(0x189)][_0x4f0998(0xd1)](_0x2cec53,_0x5501e0,!0x1);if(m['isTransformMutationFailure'](_0xd4d397))throw _0xd4d397[_0x4f0998(0x20b)];if(m[_0x4f0998(0x190)](_0x52573))throw _0x52573[_0x4f0998(0x20b)];_0x50e7ec[_0x4f0998(0x148)](_0xd4d397[_0x4f0998(0x24e)][_0x4f0998(0xf3)]),_0x46c89f[_0x4f0998(0x148)](_0x52573[_0x4f0998(0x24e)][_0x4f0998(0xf3)]),_0x4d009a=_0xd4d397[_0x4f0998(0xa1)],_0x2cec53=_0x52573[_0x4f0998(0xa1)];}_0x10c410[_0x4f0998(0x1d9)]({'undoCache':_0x50e7ec,'redoCache':_0x46c89f});}[_0x1dafe1(0x1a3)](_0x58915f){const _0x5c46df=_0x1dafe1,{unitID:_0x5ec315}=_0x58915f,_0x19f13f=this['_renderManagerService']['getRenderById'](_0x5ec315)['with'](E[_0x5c46df(0xe1)]),_0x13cf95=_0x19f13f[_0x5c46df(0x177)]();if(_0x13cf95==null)return;const _0x3562ff=[{'id':_0x5c46df(0x29b),'params':{'unitId':_0x58915f['unitID'],'actions':null,'textRanges':[_0x13cf95]}}],_0x5c7ff8=this[_0x5c46df(0x189)]['transformMutationsWithChangeset'](_0x58915f,_0x3562ff);if(!m[_0x5c46df(0x9e)](_0x5c7ff8))throw _0x5c7ff8[_0x5c46df(0x20b)];const _0x16ba04=_0x5c7ff8[_0x5c46df(0x24e)][0x0]['params'][_0x5c46df(0x274)];Array[_0x5c46df(0x214)](_0x16ba04)&&_0x16ba04[_0x5c46df(0x296)]&&_0x19f13f['setActiveRange'](_0x16ba04[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x1dafe1(0x2cb)])),ce(0x1,m[_0x1dafe1(0x20e)]),ce(0x2,p[_0x1dafe1(0x164)])],z);var Ft=Object[_0x1dafe1(0x115)],Ht=(_0x3f91a7,_0xa265de,_0x1a63c0,_0x2b2f7f)=>{for(var _0xda1bee=_0x2b2f7f>0x1?void 0x0:_0x2b2f7f?Ft(_0xa265de,_0x1a63c0):_0xa265de,_0x5d41a4=_0x3f91a7['length']-0x1,_0x1adba9;_0x5d41a4>=0x0;_0x5d41a4--)(_0x1adba9=_0x3f91a7[_0x5d41a4])&&(_0xda1bee=_0x1adba9(_0xda1bee)||_0xda1bee);return _0xda1bee;},le=(_0x5c886e,_0x1fe346)=>(_0x197812,_0x5c48bf)=>_0x1fe346(_0x197812,_0x5c48bf,_0x5c886e);let J=class{constructor(_0x1a1674,_0x18dba9,_0x302b69){const _0x373285=_0x1dafe1;this['_injector']=_0x1a1674,this[_0x373285(0x189)]=_0x18dba9,this['_docStateChangeManagerService']=_0x302b69;}[_0x1dafe1(0x1d2)](_0xa1d2ee){this['_transformHistoryAndStateStack'](_0xa1d2ee);}[_0x1dafe1(0x1be)](_0x54ec70){const _0x26a9a1=_0x1dafe1,{unitID:_0x5431d5}=_0x54ec70,{collaboration:_0x15147d}=this['_docStateChangeManagerService'][_0x26a9a1(0x2a5)](_0x5431d5);if(_0x15147d[_0x26a9a1(0x296)]===0x0)return _0x54ec70;let _0x27e386=a[_0x26a9a1(0x133)]['deepClone'](_0x54ec70[_0x26a9a1(0x2b3)][0x0]);for(let _0x1841ae=0x0;_0x1841ae<_0x15147d[_0x26a9a1(0x296)];_0x1841ae++){const _0x5a2e1d={'id':_0x26a9a1(0x29b),'params':{'unitId':_0x15147d[_0x1841ae][_0x26a9a1(0x210)],..._0x15147d[_0x1841ae][_0x26a9a1(0x104)]}},_0x4b76bc=this[_0x26a9a1(0x189)]['transformMutation'](_0x27e386,_0x5a2e1d,!0x1);if(m[_0x26a9a1(0x190)](_0x4b76bc))throw _0x4b76bc[_0x26a9a1(0x20b)];_0x27e386=_0x4b76bc[_0x26a9a1(0xa1)];}return{...a[_0x26a9a1(0x133)][_0x26a9a1(0x19f)](_0x54ec70),'mutations':[_0x27e386]};}['_transformHistoryAndStateStack'](_0xe21a9b){const _0x5b78c0=_0x1dafe1,{unitID:_0x45b753}=_0xe21a9b,{history:_0xe1f122,collaboration:_0x36cc51}=this[_0x5b78c0(0xe5)][_0x5b78c0(0x2a5)](_0x45b753);if(_0xe1f122['length']===0x0&&_0x36cc51[_0x5b78c0(0x296)]===0x0)return;const _0x19cea3=[],_0x1822a7=[];let _0x364565=a[_0x5b78c0(0x133)][_0x5b78c0(0x19f)](_0xe21a9b[_0x5b78c0(0x2b3)][0x0]),_0x3ec67c=a[_0x5b78c0(0x133)][_0x5b78c0(0x19f)](_0xe21a9b[_0x5b78c0(0x2b3)][0x0]);for(let _0x19881c=_0xe1f122[_0x5b78c0(0x296)]-0x1;_0x19881c>=0x0;_0x19881c--){const _0x8dba70={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe1f122[_0x19881c][_0x5b78c0(0x210)],..._0xe1f122[_0x19881c][_0x5b78c0(0x172)]}},_0x13aa8c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe1f122[_0x19881c][_0x5b78c0(0x210)],..._0xe1f122[_0x19881c][_0x5b78c0(0x104)]}},_0x3e0177=this[_0x5b78c0(0x189)][_0x5b78c0(0xd1)](_0x364565,_0x8dba70,!0x1),_0x273579=this['_transformService'][_0x5b78c0(0xd1)](_0x3ec67c,_0x13aa8c,!0x1);if(m[_0x5b78c0(0x190)](_0x3e0177))throw _0x3e0177['error'];if(m[_0x5b78c0(0x190)](_0x273579))throw _0x273579[_0x5b78c0(0x20b)];_0x19cea3[_0x5b78c0(0x148)]({..._0xe1f122[_0x19881c],'undoState':_0x3e0177[_0x5b78c0(0x24e)][_0x5b78c0(0xf3)],'redoState':_0x273579[_0x5b78c0(0x24e)][_0x5b78c0(0xf3)]}),_0x364565=_0x3e0177[_0x5b78c0(0xa1)],_0x3ec67c=_0x273579[_0x5b78c0(0xa1)];}_0x364565=a[_0x5b78c0(0x133)][_0x5b78c0(0x19f)](_0xe21a9b[_0x5b78c0(0x2b3)][0x0]),_0x3ec67c=a['Tools'][_0x5b78c0(0x19f)](_0xe21a9b[_0x5b78c0(0x2b3)][0x0]);for(let _0x52466d=_0x36cc51[_0x5b78c0(0x296)]-0x1;_0x52466d>=0x0;_0x52466d--){const _0x56e4db={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36cc51[_0x52466d][_0x5b78c0(0x210)],..._0x36cc51[_0x52466d][_0x5b78c0(0x172)]}},_0x551a44={'id':_0x5b78c0(0x29b),'params':{'unitId':_0x36cc51[_0x52466d][_0x5b78c0(0x210)],..._0x36cc51[_0x52466d][_0x5b78c0(0x104)]}},_0x5cdf6d=this[_0x5b78c0(0x189)]['transformMutation'](_0x364565,_0x56e4db,!0x1),_0x46cadb=this[_0x5b78c0(0x189)]['transformMutation'](_0x3ec67c,_0x551a44,!0x1);if(m[_0x5b78c0(0x190)](_0x5cdf6d))throw _0x5cdf6d[_0x5b78c0(0x20b)];if(m[_0x5b78c0(0x190)](_0x46cadb))throw _0x46cadb[_0x5b78c0(0x20b)];_0x1822a7[_0x5b78c0(0x148)]({..._0x36cc51[_0x52466d],'undoState':_0x5cdf6d[_0x5b78c0(0x24e)][_0x5b78c0(0xf3)],'redoState':_0x46cadb[_0x5b78c0(0x24e)]['params']}),_0x364565=_0x5cdf6d[_0x5b78c0(0xa1)],_0x3ec67c=_0x46cadb['m1Prime'];}this[_0x5b78c0(0xe5)][_0x5b78c0(0x21e)](_0x45b753,{'history':_0x19cea3,'collaboration':_0x1822a7});}};J=Ht([le(0x0,a[_0x1dafe1(0xd6)](a[_0x1dafe1(0x2cb)])),le(0x1,m[_0x1dafe1(0x20e)]),le(0x2,a[_0x1dafe1(0xd6)](E[_0x1dafe1(0x2aa)]))],J);var Yt=Object[_0x1dafe1(0x115)],Wt=(_0x121b89,_0x2253f,_0x53abe5,_0x4e40c5)=>{for(var _0x39d148=_0x4e40c5>0x1?void 0x0:_0x4e40c5?Yt(_0x2253f,_0x53abe5):_0x2253f,_0x1f8486=_0x121b89['length']-0x1,_0xbd14f9;_0x1f8486>=0x0;_0x1f8486--)(_0xbd14f9=_0x121b89[_0x1f8486])&&(_0x39d148=_0xbd14f9(_0x39d148)||_0x39d148);return _0x39d148;},Ne=(_0x10008d,_0x9b5d37)=>(_0x2add04,_0x1f9692)=>_0x9b5d37(_0x2add04,_0x1f9692,_0x10008d);let Z=class{constructor(_0x48918e,_0x24fbda){const _0x559474=_0x1dafe1;this[_0x559474(0xf1)]=_0x48918e,this[_0x559474(0x189)]=_0x24fbda;}[_0x1dafe1(0x128)](_0x5c1547){const _0x5dc459=_0x1dafe1;var _0x585091;const _0x43940f=this['_injector'][_0x5dc459(0x1f2)](Y[_0x5dc459(0x30d)]),_0x242734=(_0x585091=_0x43940f[_0x5dc459(0xbe)]())!=null?_0x585091:[];if(_0x242734[_0x5dc459(0x296)]===0x0)return;const _0x1f14ff=_0x5c1547['unitID'],_0xa4fdc1=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1f14ff,'actions':null,'textRanges':_0x242734}}],_0x4c23f5=this[_0x5dc459(0x189)][_0x5dc459(0xde)](_0x5c1547,_0xa4fdc1);if(!m[_0x5dc459(0x9e)](_0x4c23f5))throw _0x4c23f5[_0x5dc459(0x20b)];const _0xd4bf62=_0x4c23f5[_0x5dc459(0x24e)][0x0][_0x5dc459(0xf3)]['textRanges'];Array[_0x5dc459(0x214)](_0xd4bf62)&&_0xd4bf62[_0x5dc459(0x296)]&&_0x43940f[_0x5dc459(0x2ef)](_0xd4bf62,{'unitId':_0x1f14ff,'subUnitId':_0x1f14ff},!0x1);}};Z=Wt([Ne(0x0,a[_0x1dafe1(0xd6)](a[_0x1dafe1(0x2cb)])),Ne(0x1,m[_0x1dafe1(0x20e)])],Z);var Vt=Object[_0x1dafe1(0x115)],Xt=(_0x3c72e2,_0x16c6fe,_0x4a174f,_0x50a8b8)=>{for(var _0x251a1f=_0x50a8b8>0x1?void 0x0:_0x50a8b8?Vt(_0x16c6fe,_0x4a174f):_0x16c6fe,_0x2641eb=_0x3c72e2['length']-0x1,_0x13ff65;_0x2641eb>=0x0;_0x2641eb--)(_0x13ff65=_0x3c72e2[_0x2641eb])&&(_0x251a1f=_0x13ff65(_0x251a1f)||_0x251a1f);return _0x251a1f;},N=(_0x2b1397,_0x47dc34)=>(_0x973533,_0x172ccb)=>_0x47dc34(_0x973533,_0x172ccb,_0x2b1397);let Q=class extends a[_0x1dafe1(0x18f)]{constructor(_0x5bccd0,_0x2e93c3,_0x270ca0,_0x5055c5,_0x37485d,_0x5eb0bd,_0x4ae574,_0x49a69d){const _0x4a2d39=_0x1dafe1;super(),h(this,_0x4a2d39(0x264),new d[(_0x4a2d39(0x1f1))](u[_0x4a2d39(0x1fc)][_0x4a2d39(0x299)])),(this['_docStateChangeManagerService']=_0x5bccd0,this['_collaborationController']=_0x2e93c3,this[_0x4a2d39(0x1a4)]=_0x270ca0,this[_0x4a2d39(0x2e6)]=_0x5055c5,this[_0x4a2d39(0x221)]=_0x37485d,this[_0x4a2d39(0x2b5)]=_0x5eb0bd,this[_0x4a2d39(0x2db)]=_0x4ae574,this['_localeService']=_0x49a69d,this[_0x4a2d39(0xdf)]());}[_0x1dafe1(0xdf)](){const _0x3a9b82=_0x1dafe1;this['disposeWithMe'](this['_collaborationController'][_0x3a9b82(0xbd)][_0x3a9b82(0x21c)](_0x224572=>{const _0x24fe0a=_0x3a9b82,_0x3f96ff=this[_0x24fe0a(0xe5)][_0x24fe0a(0x20f)][_0x24fe0a(0x21c)](_0x571d1e=>{const _0x119310=_0x24fe0a;if(_0x571d1e==null)return;const {unitId:_0x21ca87,redoState:_0x3d54e3,commandId:_0x494c2b}=_0x571d1e;if(_0x21ca87!==_0x224572[_0x119310(0xa7)])return;const _0x5d55be={'id':_0x494c2b,'type':a[_0x119310(0x2af)][_0x119310(0x194)],'params':{'unitId':_0x21ca87,'actions':_0x3d54e3[_0x119310(0x2be)],'textRanges':null}};_0x224572[_0x119310(0x1d6)](_0x5d55be);});if(_0x224572[_0x24fe0a(0x29f)](_0x3f96ff),_0x224572 instanceof u['DocCollaborationEntity']){const _0xd176ce={'onTransformIME':_0x492b37=>this['_docTransformIMECacheService'][_0x24fe0a(0x2d2)](_0x492b37),'onTransformState':_0x1e5bae=>this[_0x24fe0a(0x2e6)][_0x24fe0a(0x1d2)](_0x1e5bae),'onTransformSelections':_0x172f57=>this['_docTransformSelectionsService'][_0x24fe0a(0x128)](_0x172f57),'onSyncEditingCollabCursor':_0x310b10=>this[_0x24fe0a(0x2b5)][_0x24fe0a(0x28d)](_0x310b10),'onTransformRemoteChangesetByIMECache':_0xc96352=>this[_0x24fe0a(0x1a4)]['transformRemoteChangeset'](_0xc96352),'onTransformRemoteChangesetByStateCache':_0x22a6f3=>this[_0x24fe0a(0x2e6)][_0x24fe0a(0x1be)](_0x22a6f3)};_0x224572['addHandlerCallback'](_0xd176ce);}}));}};Q=Xt([N(0x0,a[_0x1dafe1(0xd6)](E[_0x1dafe1(0x2aa)])),N(0x1,a[_0x1dafe1(0xd6)](u[_0x1dafe1(0x259)])),N(0x2,a[_0x1dafe1(0xd6)](z)),N(0x3,a[_0x1dafe1(0xd6)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x1dafe1(0xd6)](Ce)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x1dafe1(0xdc)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x2ae99e,_0x424439,_0xe50412,_0x20b427)=>{const _0x69679c=_0x1dafe1;for(var _0x1f3604=_0x20b427>0x1?void 0x0:_0x20b427?Gt(_0x424439,_0xe50412):_0x424439,_0xbf0e89=_0x2ae99e[_0x69679c(0x296)]-0x1,_0x5586f4;_0xbf0e89>=0x0;_0xbf0e89--)(_0x5586f4=_0x2ae99e[_0xbf0e89])&&(_0x1f3604=_0x5586f4(_0x1f3604)||_0x1f3604);return _0x1f3604;},_e=(_0x3c0e5d,_0x3f322d)=>(_0x3a4eb5,_0x5194d1)=>_0x3f322d(_0x3a4eb5,_0x5194d1,_0x3c0e5d);let ge=class extends a['Disposable']{constructor(_0x130b43,_0x1289a4,_0x5abb1c){const _0x41fd64=_0x1dafe1;super(),h(this,'_cachedData',new Map()),h(this,_0x41fd64(0x1fb),new Map()),h(this,'_disabled',!0x1),(this[_0x41fd64(0x108)]=_0x130b43,this['_localStorageService']=_0x1289a4,this['_revisionService']=_0x5abb1c);}[_0x1dafe1(0xe2)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0xc97ba1=_0x1dafe1;this[_0xc97ba1(0xbf)]=!0x1;}get[_0x1dafe1(0x282)](){return this['_saveTaskMap'];}[_0x1dafe1(0x10a)](){const _0x1b6446=_0x1dafe1;this['exhaustSavingTask']()[_0x1b6446(0xce)](()=>super[_0x1b6446(0x10a)]());}async[_0x1dafe1(0x1ac)](_0x1a546c){const _0x3e185e=_0x1dafe1;return this[_0x3e185e(0xbf)]?null:this[_0x3e185e(0x12c)][_0x3e185e(0x153)](u[_0x3e185e(0x15e)](_0x1a546c));}async['saveOfflineData'](_0x305c45,_0x5a33d1){const _0x3cf37d=_0x1dafe1;return!!this[_0x3cf37d(0x12c)][_0x3cf37d(0x269)](_0x305c45,_0x5a33d1);}['updateOfflineData'](_0x266d60,_0x162820,_0x16c71e,_0x1b7d13){const _0x5232c4=_0x1dafe1,_0x4f13e1=this[_0x5232c4(0x127)]['getCurrentRevOfUnit'](_0x266d60);this[_0x5232c4(0x301)][_0x5232c4(0x17b)](_0x266d60,{'unitID':_0x266d60,'type':_0x162820,'awaitingChangeset':_0x16c71e,'mutations':_0x1b7d13,'rev':_0x4f13e1}),this['_saveTaskMap']['has'](_0x266d60)||this[_0x5232c4(0x2f9)](_0x266d60);}['_scheduleSaving'](_0x2f8993){const _0x41889d=_0x1dafe1,_0x2aab98=this[_0x41889d(0x16c)]();_0x2aab98===0x0?this['_saveCache'](_0x2f8993):this[_0x41889d(0x1fb)][_0x41889d(0x17b)](_0x2f8993,setTimeout(()=>this[_0x41889d(0x2e8)](_0x2f8993),_0x2aab98));}[_0x1dafe1(0x16c)](){const _0x3be652=_0x1dafe1;var _0x4e0363;return(_0x4e0363=this[_0x3be652(0x108)]['getConfig'](u[_0x3be652(0xc6)]))!=null?_0x4e0363:u[_0x3be652(0x224)];}[_0x1dafe1(0x2e8)](_0xd583fb){const _0x4efc48=_0x1dafe1,_0x2521ce=this[_0x4efc48(0x1fb)][_0x4efc48(0x1f2)](_0xd583fb);return _0x2521ce!==void 0x0&&window['clearTimeout'](_0x2521ce),this[_0x4efc48(0x12c)][_0x4efc48(0x269)](u['getLocalCacheKey'](_0xd583fb),this['_cachedData']['get'](_0xd583fb))[_0x4efc48(0xce)](()=>this[_0x4efc48(0x1fb)]['delete'](_0xd583fb));}async[_0x1dafe1(0x2a7)](){const _0x5ccf70=_0x1dafe1,_0x29475b=[];this[_0x5ccf70(0x1fb)][_0x5ccf70(0x233)]((_0x34661f,_0x503813)=>{const _0x3e5a1d=_0x5ccf70;window[_0x3e5a1d(0x187)](_0x34661f),_0x29475b[_0x3e5a1d(0x27a)](this['_saveCache'](_0x503813)[_0x3e5a1d(0xce)](()=>{const _0x279101=_0x3e5a1d;this[_0x279101(0x1fb)][_0x279101(0x9f)](_0x503813);}));}),await Promise[_0x5ccf70(0x2f2)](_0x29475b);}};ge=Kt([_e(0x0,a[_0x1dafe1(0xe4)]),_e(0x1,a[_0x1dafe1(0x18e)]),_e(0x2,a[_0x1dafe1(0xd6)](m[_0x1dafe1(0x2d6)]))],ge);class Be extends a[_0x1dafe1(0x2d0)]{constructor(){const _0xccff16=_0x1dafe1;super(),h(this,'urlChange$'),this[_0xccff16(0x2d8)]=d[_0xccff16(0x1a6)](window,'popstate')[_0xccff16(0x1fe)](d[_0xccff16(0x311)](this[_0xccff16(0x2ad)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}[_0x1dafe1(0x304)](_0x3b399d,_0x231eaa,_0x24cb65=!0x1){const _0xffc7ca=_0x1dafe1,_0x27536e=new URL(window['location'][_0xffc7ca(0x211)]);_0x27536e[_0xffc7ca(0x294)][_0xffc7ca(0x17b)](_0x3b399d,_0x231eaa),_0x24cb65?window[_0xffc7ca(0x2b7)]['replaceState']('','',_0x27536e[_0xffc7ca(0x15a)]()):window['history']['pushState']('','',_0x27536e[_0xffc7ca(0x15a)]());}[_0x1dafe1(0x2ec)](_0x277e30,_0x20274a=!0x1){const _0x3b4c23=_0x1dafe1,_0x3b4003=new URL(window[_0x3b4c23(0x1f3)][_0x3b4c23(0x211)]);_0x3b4003[_0x3b4c23(0x294)][_0x3b4c23(0x9f)](_0x277e30),_0x20274a?window[_0x3b4c23(0x2b7)]['replaceState']('','',_0x3b4003['toString']()):window[_0x3b4c23(0x2b7)][_0x3b4c23(0x174)]('','',_0x3b4003[_0x3b4c23(0x15a)]());}[_0x1dafe1(0x103)](_0x5ca359){const _0x1c7744=_0x1dafe1;var _0x3dfe2a;return(_0x3dfe2a=new URL(window[_0x1c7744(0x1f3)][_0x1c7744(0x211)])['searchParams'][_0x1c7744(0x1f2)](_0x5ca359))!=null?_0x3dfe2a:void 0x0;}}var qt=Object[_0x1dafe1(0xb1)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x1bcdd9,_0x1732a1,_0x569e78)=>_0x1732a1 in _0x1bcdd9?qt(_0x1bcdd9,_0x1732a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x569e78}):_0x1bcdd9[_0x1732a1]=_0x569e78,Zt=(_0x40cf7a,_0x1b6669,_0x5d60bc,_0x73568)=>{const _0x528c7f=_0x1dafe1;for(var _0xd12508=_0x73568>0x1?void 0x0:_0x73568?zt(_0x1b6669,_0x5d60bc):_0x1b6669,_0x48d6d9=_0x40cf7a[_0x528c7f(0x296)]-0x1,_0xde9230;_0x48d6d9>=0x0;_0x48d6d9--)(_0xde9230=_0x40cf7a[_0x48d6d9])&&(_0xd12508=_0xde9230(_0xd12508)||_0xd12508);return _0xd12508;},he=(_0x11c064,_0x1d9a46)=>(_0x383d54,_0x518ee3)=>_0x1d9a46(_0x383d54,_0x518ee3,_0x11c064),Qt=(_0x42b6e7,_0x16d51e,_0x4b6043)=>Jt(_0x42b6e7,_0x16d51e+'',_0x4b6043);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x1dafe1(0x2c2)]=class extends a[_0x1dafe1(0x1bb)]{constructor(_0x37911f=Ue,_0x5c5e03,_0x670f4,_0x562051){const _0x472842=_0x1dafe1;super(),this[_0x472842(0xb9)]=_0x37911f,this[_0x472842(0x313)]=_0x5c5e03,this[_0x472842(0xf1)]=_0x670f4,this[_0x472842(0x108)]=_0x562051;const {..._0x2979f2}=a[_0x472842(0xe9)]({},Ue,this[_0x472842(0xb9)]);this[_0x472842(0x108)]['setConfig']($t,_0x2979f2);}[_0x1dafe1(0x1b5)](){const _0x1aa67a=_0x1dafe1;this[_0x1aa67a(0x10b)](),this[_0x1aa67a(0x124)]();}[_0x1dafe1(0x1e0)](){const _0x131308=_0x1dafe1;this[_0x131308(0x303)]();}[_0x1dafe1(0x10b)](){const _0x361fcc=_0x1dafe1;var _0x277cdf;const _0x51d6e6=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G['ISocketService'],{'useClass':G[_0x361fcc(0x150)]}],[u[_0x361fcc(0x22c)],{'useClass':ge}],[exports[_0x361fcc(0x15f)]],[Q],[q],[x],[de],[exports[_0x361fcc(0x23b)]]];a['registerDependencies'](this[_0x361fcc(0xf1)],a['mergeOverrideWithDependencies'](_0x51d6e6,(_0x277cdf=this[_0x361fcc(0xb9)])==null?void 0x0:_0x277cdf['override']));}['_registerRenderDependencies'](){const _0x1aa0cb=_0x1dafe1;this[_0x1aa0cb(0x29f)](this[_0x1aa0cb(0x313)][_0x1aa0cb(0xf4)](a[_0x1aa0cb(0x25b)][_0x1aa0cb(0xf8)],[fe])),this[_0x1aa0cb(0x29f)](this['_renderManagerService'][_0x1aa0cb(0xf4)](a['UniverInstanceType'][_0x1aa0cb(0x1a9)],[ve]));}[_0x1dafe1(0x124)](){const _0xed38df=_0x1dafe1;a[_0xed38df(0x1ed)](this[_0xed38df(0xf1)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0xed38df(0x23b)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x1dafe1(0xea),es),exports[_0x1dafe1(0x2c2)]=Zt([a[_0x1dafe1(0x186)](u['UniverCollaborationClientPlugin']),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x1dafe1(0xd6)](a[_0x1dafe1(0x2cb)])),he(0x3,a[_0x1dafe1(0xe4)])],exports[_0x1dafe1(0x2c2)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x40a046,_0x425e42,_0x22b418,_0x1cb3b5)=>{for(var _0x53120a=_0x1cb3b5>0x1?void 0x0:_0x1cb3b5?ts(_0x425e42,_0x22b418):_0x425e42,_0x1e27aa=_0x40a046['length']-0x1,_0x1da56c;_0x1e27aa>=0x0;_0x1e27aa--)(_0x1da56c=_0x40a046[_0x1e27aa])&&(_0x53120a=_0x1da56c(_0x53120a)||_0x53120a);return _0x53120a;},H=(_0x20d13e,_0x16c743)=>(_0x1ddbd9,_0x24631b)=>_0x16c743(_0x1ddbd9,_0x24631b,_0x20d13e);exports[_0x1dafe1(0x16a)]=class extends u[_0x1dafe1(0x25c)]{constructor(_0xe42b6a,_0x5bfe32,_0x241188,_0x1a56dd,_0x3dbb22){super(_0xe42b6a,_0x5bfe32,_0x241188,_0x1a56dd,_0x3dbb22);}async[_0x1dafe1(0x2da)](_0x2410a6){const _0x240ea9=await this['_getSessionTicket'](),_0x5d560e=this['_createSocketURL'](_0x2410a6,_0x240ea9);return this['_doCreateSocket'](_0x5d560e);}[_0x1dafe1(0x30b)](_0x3c7e53,_0x52bed4){const _0x23fc1f=_0x1dafe1,_0x244c87=typeof window>'u'?new URL(_0x3c7e53):new URL(_0x3c7e53,window[_0x23fc1f(0x1f3)][_0x23fc1f(0x273)]);_0x244c87['searchParams'][_0x23fc1f(0x17b)](_0x23fc1f(0x17a),_0x52bed4);const _0x5627ed=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x23fc1f(0x1f3)][_0x23fc1f(0x286)]);return _0x5627ed[_0x23fc1f(0x1f2)](_0x23fc1f(0x1c7))&&_0x244c87[_0x23fc1f(0x294)]['set'](_0x23fc1f(0x1c7),_0x5627ed['get'](_0x23fc1f(0x1c7))),_0x244c87[_0x23fc1f(0x15a)]();}async[_0x1dafe1(0x29e)](){const _0x39147b=_0x1dafe1;var _0x3e5af8,_0x337244,_0x20e456;const _0x46b0c6=this[_0x39147b(0x108)][_0x39147b(0x23f)](u[_0x39147b(0x105)]),_0x5926f3=(_0x3e5af8=_0x46b0c6==null?void 0x0:_0x46b0c6['wsSessionTicketUrl'])!=null?_0x3e5af8:u[_0x39147b(0xa8)];return(_0x20e456=(_0x337244=(await this[_0x39147b(0x281)][_0x39147b(0x1f2)](_0x5926f3,{'headers':{'Content-Type':_0x39147b(0x28b)}}))[_0x39147b(0x13d)])==null?void 0x0:_0x337244[_0x39147b(0x19e)])!=null?_0x20e456:'';}},exports[_0x1dafe1(0x16a)]=ss([H(0x0,a[_0x1dafe1(0xd6)](a[_0x1dafe1(0x2cb)])),H(0x1,a[_0x1dafe1(0xd6)](G[_0x1dafe1(0x2b4)])),H(0x2,a[_0x1dafe1(0xe4)]),H(0x3,a[_0x1dafe1(0x293)]),H(0x4,m[_0x1dafe1(0x2e0)])],exports[_0x1dafe1(0x16a)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a[_0x1dafe1(0x18f)]{constructor(){const _0x1c02cb=_0x1dafe1;super(),h(this,_0x1c02cb(0x27b),a[_0x1c02cb(0x230)]()),h(this,_0x1c02cb(0x2ce),new Set()),h(this,_0x1c02cb(0x123),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,_0x1c02cb(0xd7),new Map()),this[_0x1c02cb(0x255)]();}['dispose'](){const _0x2a7fb2=_0x1dafe1;super[_0x2a7fb2(0x10a)](),this[_0x2a7fb2(0x1c8)][_0x2a7fb2(0x233)]((_0x11575c,_0x560ced)=>this[_0x2a7fb2(0xa5)](_0x560ced)),this['_heartbeatTimer']&&window[_0x2a7fb2(0x161)](this[_0x2a7fb2(0xa0)]);}['getUnitStatus$'](_0x3eef00){const _0x2a54ef=_0x1dafe1;return this['_ensureSubject'](_0x3eef00)[_0x2a54ef(0x1fe)](d['distinctUntilChanged']());}[_0x1dafe1(0x278)](_0xcbb12e){const _0x4f1656=_0x1dafe1;this['_selfUnitIDs'][_0x4f1656(0x314)]===0x0&&this[_0x4f1656(0xc9)](),this[_0x4f1656(0x2ce)]['add'](_0xcbb12e),this[_0x4f1656(0x116)]({'type':0x0,'memberID':this[_0x4f1656(0x27b)],'unitIDs':[_0xcbb12e],'isForwarded':!0x1});}[_0x1dafe1(0x2bb)](_0x12897e){const _0x26a9d4=_0x1dafe1;this[_0x26a9d4(0x2ce)][_0x26a9d4(0x9f)](_0x12897e),this['_selfUnitIDs']['size']===0x0&&this[_0x26a9d4(0xa0)]&&window[_0x26a9d4(0x161)](this[_0x26a9d4(0xa0)]);}[_0x1dafe1(0x255)](){const _0x3eafae=_0x1dafe1;this[_0x3eafae(0x29f)](a[_0x3eafae(0x206)](d[_0x3eafae(0x1a6)](window,_0x3eafae(0x2a8))[_0x3eafae(0x21c)](_0x10f3fc=>{const _0x1c705b=_0x3eafae;if(_0x10f3fc[_0x1c705b(0x289)]!==Le||!_0x10f3fc[_0x1c705b(0x216)])return;const _0x381f76=JSON['parse'](_0x10f3fc[_0x1c705b(0x216)]);this[_0x1c705b(0x26b)](_0x381f76);}))),window[_0x3eafae(0xbc)]('unload',()=>this[_0x3eafae(0x116)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x3eafae(0x2ce)])}));}[_0x1dafe1(0x26b)](_0x5476fa){const _0x4e3e70=_0x1dafe1;switch(_0x5476fa['type']){case 0x0:this[_0x4e3e70(0x2c3)](_0x5476fa);break;case 0x1:this[_0x4e3e70(0x1f7)](_0x5476fa);break;case 0x2:this['_handleHeartbeatEvent'](_0x5476fa);break;}}[_0x1dafe1(0x2c3)](_0x3ac6a0){const _0x401b65=_0x1dafe1,{unitIDs:_0x2cc0bd,memberID:_0x49d8f9,isForwarded:_0x503dd9}=_0x3ac6a0;_0x2cc0bd['forEach'](_0xa75e5c=>{const _0x4fc969=_0xc2a5;if(!_0x503dd9&&this['_unitOnClients']['has'](_0xa75e5c)&&this[_0x4fc969(0x179)](_0xa75e5c)[_0x4fc969(0x1dd)](u[_0x4fc969(0x168)][_0x4fc969(0x20d)]),!this['_unitOnClients']['has'](_0xa75e5c)||!this['_unitOnClients'][_0x4fc969(0x1f2)](_0xa75e5c)['has'](_0x49d8f9)){const _0x6d16fa=this[_0x4fc969(0x123)][_0x4fc969(0x1f2)](_0xa75e5c)||new Set();_0x6d16fa[_0x4fc969(0x291)](_0x49d8f9),this[_0x4fc969(0x123)][_0x4fc969(0x17b)](_0xa75e5c,_0x6d16fa),this['_scheduleClearOtherTimer'](_0x49d8f9);}}),_0x503dd9||this[_0x401b65(0x116)]({'type':0x0,'memberID':this[_0x401b65(0x27b)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x236bc6){const _0x4ce5d6=_0x1dafe1;this['_removeClearOtherTimer'](_0x236bc6);const _0x44912f=window[_0x4ce5d6(0x2e2)](()=>{const _0x52639b=_0x4ce5d6;this['_unitOnClients'][_0x52639b(0x233)](_0x51eb11=>{const _0x5b7341=_0x52639b;_0x51eb11[_0x5b7341(0x9f)](_0x236bc6);});},Me*0x2);this[_0x4ce5d6(0x1c8)][_0x4ce5d6(0x17b)](_0x236bc6,_0x44912f);}[_0x1dafe1(0xa5)](_0x5f162a){const _0x2e5726=_0x1dafe1;if(this['_clearOtherTimers'][_0x2e5726(0xeb)](_0x5f162a)){const _0x39ea57=this[_0x2e5726(0x1c8)][_0x2e5726(0x1f2)](_0x5f162a);_0x39ea57&&window[_0x2e5726(0x187)](_0x39ea57),this[_0x2e5726(0x1c8)]['set'](_0x5f162a,null);}}[_0x1dafe1(0x1f7)](_0x29eba7){const _0x47c565=_0x1dafe1,{memberID:_0x635bfe,unitIDs:_0x3260a0}=_0x29eba7;_0x3260a0['forEach'](_0x395ee8=>{const _0x3c26a4=_0xc2a5;var _0x134fda;const _0xa172f7=this[_0x3c26a4(0x123)][_0x3c26a4(0x1f2)](_0x395ee8);_0xa172f7&&(_0xa172f7[_0x3c26a4(0x9f)](_0x635bfe),(_0x134fda=this[_0x3c26a4(0x179)](_0x395ee8))==null||_0x134fda[_0x3c26a4(0x1dd)](_0xa172f7[_0x3c26a4(0x314)]===0x0?u[_0x3c26a4(0x168)]['NO_OTHER_CLIENTS_EDITING']:u[_0x3c26a4(0x168)][_0x3c26a4(0x20d)]));}),this[_0x47c565(0xa5)](_0x635bfe);}[_0x1dafe1(0x241)](_0xbb5111){const _0x4d495f=_0x1dafe1;this[_0x4d495f(0xfa)](_0xbb5111[_0x4d495f(0x30a)]);}['_send'](_0x3be147){const _0x3dc05c=_0x1dafe1;localStorage[_0x3dc05c(0x269)](Le,JSON[_0x3dc05c(0x1ca)](_0x3be147));}[_0x1dafe1(0xc9)](){const _0x512fb7=_0x1dafe1;this['_heartbeatTimer']=window[_0x512fb7(0x22a)](()=>{const _0x368567=_0x512fb7;this[_0x368567(0x116)]({'type':0x2,'memberID':this[_0x368567(0x27b)]});},Me);}['_ensureSubject'](_0x295bd0){const _0x458abe=_0x1dafe1;return this[_0x458abe(0xd7)][_0x458abe(0xeb)](_0x295bd0)||this['_unitStatus']['set'](_0x295bd0,new d[(_0x458abe(0x1f1))](u[_0x458abe(0x168)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x458abe(0x1f2)](_0x295bd0);}}var je=(_0x59f71e=>(_0x59f71e[_0x59f71e[_0x1dafe1(0x162)]=0x0]='UNDEFINED',_0x59f71e[_0x59f71e['OK']=0x1]='OK',_0x59f71e[_0x59f71e['INTERNAL_ERROR']=0x2]=_0x1dafe1(0x19a),_0x59f71e[_0x59f71e['PERMISSION_DENIED']=0x3]=_0x1dafe1(0x176),_0x59f71e[_0x59f71e[_0x1dafe1(0x260)]=0x4]=_0x1dafe1(0x260),_0x59f71e[_0x59f71e[_0x1dafe1(0x2c5)]=0x5]=_0x1dafe1(0x2c5),_0x59f71e[_0x59f71e[_0x1dafe1(0x122)]=0x6]=_0x1dafe1(0x122),_0x59f71e[_0x59f71e[_0x1dafe1(0x19d)]=0x7]=_0x1dafe1(0x19d),_0x59f71e[_0x59f71e['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x59f71e[_0x59f71e['COMPLETION_FINISHED']=0x9]=_0x1dafe1(0x20c),_0x59f71e[_0x59f71e[_0x1dafe1(0x290)]=0xa]=_0x1dafe1(0x290),_0x59f71e[_0x59f71e[_0x1dafe1(0x249)]=0xb]=_0x1dafe1(0x249),_0x59f71e[_0x59f71e['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x1dafe1(0x1f8),_0x59f71e[_0x59f71e[_0x1dafe1(0xec)]=0xd]=_0x1dafe1(0xec),_0x59f71e[_0x59f71e[_0x1dafe1(0x2fa)]=0xe]=_0x1dafe1(0x2fa),_0x59f71e[_0x59f71e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x1dafe1(0x191),_0x59f71e[_0x59f71e['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x1dafe1(0x1b1),_0x59f71e[_0x59f71e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x59f71e[_0x59f71e[_0x1dafe1(0x10d)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x59f71e[_0x59f71e[_0x1dafe1(0x13a)]=0x1b59]='APPLY_REJECT',_0x59f71e[_0x59f71e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1dafe1(0xb0),_0x59f71e[_0x59f71e[_0x1dafe1(0x30f)]=0x1b5b]=_0x1dafe1(0x30f),_0x59f71e[_0x59f71e[_0x1dafe1(0x25f)]=0x1b5c]=_0x1dafe1(0x25f),_0x59f71e[_0x59f71e[_0x1dafe1(0x28f)]=0x1b5d]=_0x1dafe1(0x28f),_0x59f71e[_0x59f71e[_0x1dafe1(0x101)]=0x1f41]=_0x1dafe1(0x101),_0x59f71e[_0x59f71e[_0x1dafe1(0x24b)]=0x2329]=_0x1dafe1(0x24b),_0x59f71e[_0x59f71e[_0x1dafe1(0x1a5)]=0x232a]=_0x1dafe1(0x1a5),_0x59f71e[_0x59f71e[_0x1dafe1(0x1e7)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x59f71e[_0x59f71e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x1dafe1(0x307),_0x59f71e[_0x59f71e[_0x1dafe1(0x157)]=0x232d]=_0x1dafe1(0x157),_0x59f71e[_0x59f71e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x1dafe1(0x256),_0x59f71e[_0x59f71e[_0x1dafe1(0x2d3)]=0x2712]=_0x1dafe1(0x2d3),_0x59f71e[_0x59f71e[_0x1dafe1(0x181)]=0x2713]=_0x1dafe1(0x181),_0x59f71e[_0x59f71e[_0x1dafe1(0x297)]=0x2714]=_0x1dafe1(0x297),_0x59f71e[_0x59f71e[_0x1dafe1(0x292)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x59f71e[_0x59f71e['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x1dafe1(0x2f7),_0x59f71e[_0x59f71e[_0x1dafe1(0x252)]=0x271c]=_0x1dafe1(0x252),_0x59f71e[_0x59f71e[_0x1dafe1(0x27e)]=0x271d]=_0x1dafe1(0x27e),_0x59f71e[_0x59f71e[_0x1dafe1(0x22b)]=0x271e]=_0x1dafe1(0x22b),_0x59f71e[_0x59f71e[_0x1dafe1(0x271)]=0x271f]=_0x1dafe1(0x271),_0x59f71e[_0x59f71e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x1dafe1(0xd8),_0x59f71e[_0x59f71e['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x1dafe1(0x238),_0x59f71e[_0x59f71e[_0x1dafe1(0x1c6)]=0x2ee1]=_0x1dafe1(0x1c6),_0x59f71e[_0x59f71e['INVALID_INVITE_CODE']=0x2ee2]=_0x1dafe1(0xca),_0x59f71e[_0x59f71e[_0x1dafe1(0x185)]=0x2ee3]=_0x1dafe1(0x185),_0x59f71e[_0x59f71e[_0x1dafe1(0x10c)]=0x2ee4]=_0x1dafe1(0x10c),_0x59f71e[_0x59f71e[_0x1dafe1(0x1f9)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x59f71e[_0x59f71e[_0x1dafe1(0x2b6)]=0x32c9]=_0x1dafe1(0x2b6),_0x59f71e[_0x59f71e[_0x1dafe1(0x1ab)]=0x32ca]=_0x1dafe1(0x1ab),_0x59f71e[_0x59f71e['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x1dafe1(0x2ea),_0x59f71e[_0x59f71e[_0x1dafe1(0x114)]=-0x1]=_0x1dafe1(0x114),_0x59f71e))(je||{}),ns=Object[_0x1dafe1(0x115)],rs=(_0x30ae59,_0x1b53df,_0x41a3b2,_0x21407c)=>{const _0x3d5b64=_0x1dafe1;for(var _0x202093=_0x21407c>0x1?void 0x0:_0x21407c?ns(_0x1b53df,_0x41a3b2):_0x1b53df,_0x9e1ea6=_0x30ae59[_0x3d5b64(0x296)]-0x1,_0x2ae49d;_0x9e1ea6>=0x0;_0x9e1ea6--)(_0x2ae49d=_0x30ae59[_0x9e1ea6])&&(_0x202093=_0x2ae49d(_0x202093)||_0x202093);return _0x202093;},ue=(_0x2e3cd9,_0x1a3205)=>(_0x5de860,_0x40d27f)=>_0x1a3205(_0x5de860,_0x40d27f,_0x2e3cd9);exports[_0x1dafe1(0x2e4)]=class extends a[_0x1dafe1(0x18f)]{constructor(_0x3e1f2,_0x83245,_0x3ffd64){const _0x441d25=_0x1dafe1;super(),this[_0x441d25(0xcd)]=_0x3e1f2,this['_httpService']=_0x83245,this[_0x441d25(0x108)]=_0x3ffd64;}async[_0x1dafe1(0x154)](_0x16cdcb,_0x42ef0b,_0x326060,..._0x1ca5b9){const _0x275755=_0x1dafe1;var _0x197ea3,_0x2f976f,_0x3dca55,_0x4e84e2;const _0x279515=this[_0x275755(0xcd)]['getFocusedUnit']();if(!_0x279515)throw new Error(_0x275755(0x1bd));const _0x42b448=((_0x197ea3=this['_configService'][_0x275755(0x23f)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x197ea3:u[_0x275755(0x1e3)])+'/'+_0x16cdcb+_0x275755(0x2f8)+_0x42ef0b,_0x12dc0d=new URL(window['location'][_0x275755(0x211)]),_0x2da850={'scriptId':_0x16cdcb,'runId':(_0x2f976f=_0x12dc0d['searchParams']['get']('runId'))!=null?_0x2f976f:'','function':_0x42ef0b,'unitId':_0x279515[_0x275755(0x129)](),'argsOfFunction':JSON[_0x275755(0x1ca)](_0x1ca5b9),'invokeId':(_0x3dca55=_0x326060[_0x275755(0x1e5)])!=null?_0x3dca55:'','executionId':(_0x4e84e2=_0x326060[_0x275755(0xb7)])!=null?_0x4e84e2:''};try{const _0x3c47e7=await this[_0x275755(0x281)]['post'](_0x42b448,{'body':_0x2da850});return _0x3c47e7[_0x275755(0x13d)]['error']&&_0x3c47e7[_0x275755(0x13d)][_0x275755(0x20b)][_0x275755(0xb4)]!==je['OK']?_0x275755(0xe0):_0x3c47e7[_0x275755(0x13d)]['result'];}catch{return'Failed';}}},exports[_0x1dafe1(0x2e4)]=rs([ue(0x0,a[_0x1dafe1(0xee)]),ue(0x1,a[_0x1dafe1(0xd6)](G['HTTPService'])),ue(0x2,a[_0x1dafe1(0xe4)])],exports['RemoteUniscriptService']),exports[_0x1dafe1(0x160)]=xe,exports[_0x1dafe1(0x2e3)]=Ee,exports[_0x1dafe1(0x13b)]=we,exports[_0x1dafe1(0x2b0)]=is,exports[_0x1dafe1(0x140)]=Be;
|