@univerjs-pro/collaboration-client-ui 0.8.3-nightly.202506271607 → 0.8.3-nightly.202507010644
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';
|
|
1
|
+
'use strict';const _0x271880=_0x3074;(function(_0x4ca3d7,_0x1c176e){const _0x2ff080=_0x3074,_0x3e60c5=_0x4ca3d7();while(!![]){try{const _0x1bd027=parseInt(_0x2ff080(0x12f))/0x1+parseInt(_0x2ff080(0x132))/0x2+-parseInt(_0x2ff080(0x134))/0x3*(parseInt(_0x2ff080(0x138))/0x4)+parseInt(_0x2ff080(0x139))/0x5+-parseInt(_0x2ff080(0x130))/0x6+-parseInt(_0x2ff080(0x136))/0x7+parseInt(_0x2ff080(0x13c))/0x8*(parseInt(_0x2ff080(0x131))/0x9);if(_0x1bd027===_0x1c176e)break;else _0x3e60c5['push'](_0x3e60c5['shift']());}catch(_0x246631){_0x3e60c5['push'](_0x3e60c5['shift']());}}}(_0x474a,0x9cf72));function _0x3074(_0x516289,_0x4b43f3){const _0x474a29=_0x474a();return _0x3074=function(_0x30742d,_0x1a46ca){_0x30742d=_0x30742d-0x12f;let _0x5eb553=_0x474a29[_0x30742d];return _0x5eb553;},_0x3074(_0x516289,_0x4b43f3);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x271880(0x133)]{['runOnServer'](_0x572636,_0x3e73d9,..._0x535ea4){const _0x4ba179=_0x271880;return this[_0x4ba179(0x137)][_0x4ba179(0x13a)](t[_0x4ba179(0x135)])[_0x4ba179(0x13b)](_0x572636,_0x3e73d9,{},..._0x535ea4);}}function _0x474a(){const _0x5ae8aa=['41058WjPNKl','RemoteUniscriptService','6463919Qoxwhi','_injector','4ATgiBV','1566090TOmcDd','get','runOnServer','2929472safmaE','125972lBEXVZ','4265088NGkmYM','18FXykSS','2238646XiaILn','FUniver'];_0x474a=function(){return _0x5ae8aa;};return _0x474a();}e[_0x271880(0x133)]['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 _0x95d3a4=_0x5181;(function(_0x4339bd,_0xae656c){const _0x39c522=_0x5181,_0x3ea92a=_0x4339bd();while(!![]){try{const _0x5c03e4=-parseInt(_0x39c522(0x1c3))/0x1*(parseInt(_0x39c522(0x1f8))/0x2)+-parseInt(_0x39c522(0x33a))/0x3*(-parseInt(_0x39c522(0x131))/0x4)+parseInt(_0x39c522(0x17e))/0x5*(parseInt(_0x39c522(0x167))/0x6)+-parseInt(_0x39c522(0x17d))/0x7*(-parseInt(_0x39c522(0x185))/0x8)+parseInt(_0x39c522(0x208))/0x9+parseInt(_0x39c522(0x11c))/0xa+-parseInt(_0x39c522(0x18b))/0xb*(parseInt(_0x39c522(0x15f))/0xc);if(_0x5c03e4===_0xae656c)break;else _0x3ea92a['push'](_0x3ea92a['shift']());}catch(_0x4dc83f){_0x3ea92a['push'](_0x3ea92a['shift']());}}}(_0x37b0,0x7dbd7));var Ve=Object['defineProperty'],Xe=(_0x4bff7e,_0x58da98,_0x44a804)=>_0x58da98 in _0x4bff7e?Ve(_0x4bff7e,_0x58da98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44a804}):_0x4bff7e[_0x58da98]=_0x44a804,h=(_0x4fb419,_0x1a1145,_0x1f07e4)=>Xe(_0x4fb419,typeof _0x1a1145!=_0x95d3a4(0x11e)?_0x1a1145+'':_0x1a1145,_0x1f07e4);Object[_0x95d3a4(0x1f2)](exports,Symbol[_0x95d3a4(0x295)],{'value':_0x95d3a4(0x1be)});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[_0x95d3a4(0x13c)],ze=(_0x4570c0,_0x573b4e,_0x359815,_0x35e3c9)=>{const _0x543a56=_0x95d3a4;for(var _0x3b16d2=_0x35e3c9>0x1?void 0x0:_0x35e3c9?qe(_0x573b4e,_0x359815):_0x573b4e,_0x1f6c6f=_0x4570c0[_0x543a56(0x32a)]-0x1,_0x1dd876;_0x1f6c6f>=0x0;_0x1f6c6f--)(_0x1dd876=_0x4570c0[_0x1f6c6f])&&(_0x3b16d2=_0x1dd876(_0x3b16d2)||_0x3b16d2);return _0x3b16d2;},Oe=(_0x24c3dd,_0x36600f)=>(_0x1c214a,_0x174898)=>_0x36600f(_0x1c214a,_0x174898,_0x24c3dd);let de=class extends a[_0x95d3a4(0x1d5)]{constructor(_0x78d1ec,_0x5267eb){const _0xe327c0=_0x95d3a4;super(),this[_0xe327c0(0x32f)]=_0x78d1ec,this['_imageIoService']=_0x5267eb,this[_0xe327c0(0x27e)]();}[_0x95d3a4(0x27e)](){const _0x46c06c=_0x95d3a4,_0x2bd105=this;this['disposeWithMe'](this['_docClipboardService'][_0x46c06c(0x293)]({'onBeforePasteImage':async _0x1efdbc=>{const _0x40cd34=_0x46c06c,_0x59069d=await _0x2bd105['_imageIoService']['saveImage'](_0x1efdbc);return _0x59069d?{'source':_0x59069d['source'],'imageSourceType':_0x59069d[_0x40cd34(0x1d2)]}:null;}}));}};de=ze([Oe(0x0,E[_0x95d3a4(0x209)]),Oe(0x1,Ge[_0x95d3a4(0x305)])],de);const Te=['purple.300','jiqing.500','green.600','red.300',_0x95d3a4(0x1e4),_0x95d3a4(0x333)];class me extends a[_0x95d3a4(0x350)]{constructor(){const _0x4b32f1=_0x95d3a4;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x4b32f1(0x153),0x0);}[_0x95d3a4(0x124)](_0x394648){const _0x2198a1=_0x95d3a4;if(this[_0x2198a1(0x1ed)]['has'](_0x394648))return this[_0x2198a1(0x1ed)][_0x2198a1(0x150)](_0x394648);const _0x5dbfb0=Te[this[_0x2198a1(0x153)]];return this['_colorIndex']=(this[_0x2198a1(0x153)]+0x1)%Te[_0x2198a1(0x32a)],this[_0x2198a1(0x1ed)][_0x2198a1(0x12a)](_0x394648,_0x5dbfb0),_0x5dbfb0;}}function Pe(_0x4c8c4d){const _0xa5a77a=_0x95d3a4;let _0x42e3a5='';for(const _0x422911 of _0x4c8c4d){const {startOffset:_0x495f3b,endOffset:_0x499ad5,isActive:_0x49b5a7,rangeType:_0x4a585c,segmentId:_0x4b630f,segmentPage:_0x167a17}=_0x422911;_0x42e3a5[_0xa5a77a(0x32a)]&&(_0x42e3a5+=','),_0x42e3a5+=_0x495f3b+':'+_0x499ad5+':'+(_0x49b5a7?'1':'0')+':'+_0x4a585c+':'+_0x4b630f+':'+_0x167a17;}return _0x42e3a5;}function Je(_0x387865){const _0x270314=_0x95d3a4,_0x1aeac9=_0x387865[_0x270314(0x12f)](','),_0x51adb0=[];for(const _0x2b9e2b of _0x1aeac9){const [_0x258f5f,_0x4186a9,_0x4a48db,_0x5414ca,_0x3d357c,_0x1bf7c2]=_0x2b9e2b[_0x270314(0x12f)](':');_0x51adb0[_0x270314(0xfa)]({'startOffset':Number(_0x258f5f),'endOffset':Number(_0x4186a9),'collapsed':_0x258f5f===_0x4186a9,'isActive':_0x4a48db==='1','rangeType':_0x5414ca===a[_0x270314(0x2ee)][_0x270314(0x2f9)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x270314(0x2ee)][_0x270314(0x221)],'segmentId':typeof _0x3d357c==_0x270314(0x32d)?String(_0x3d357c):'','segmentPage':Number(_0x1bf7c2!=null?_0x1bf7c2:-0x1)});}return _0x51adb0['some'](_0x370b02=>_0x370b02[_0x270314(0x1eb)])||(_0x51adb0[0x0][_0x270314(0x1eb)]=!0x0),_0x51adb0;}class Ce extends a[_0x95d3a4(0x1d5)]{constructor(){const _0x30bab9=_0x95d3a4;super(...arguments),h(this,_0x30bab9(0x14a),new d['BehaviorSubject'](null)),h(this,_0x30bab9(0x116),this['_collabCursorState$'][_0x30bab9(0x299)]());}['syncEditingCollabCursor'](_0x3ed7d7){const _0x4ca896=_0x95d3a4,{unitID:_0x4f50cd,memberID:_0x1a8c25,textRanges:_0x510106}=_0x3ed7d7,_0x1885d5=Pe(_0x510106);if(_0x1885d5==='')return;const _0x42dab5={'unitID':_0x4f50cd,'memberID':_0x1a8c25,'selection':_0x1885d5};this[_0x4ca896(0x14a)][_0x4ca896(0x1e5)](_0x42dab5);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x52f751,_0x5cce4e,_0x19a12e,_0x395e4c)=>{const _0x358eb7=_0x95d3a4;for(var _0x17e99e=_0x395e4c>0x1?void 0x0:_0x395e4c?Ze(_0x5cce4e,_0x19a12e):_0x5cce4e,_0x40c781=_0x52f751[_0x358eb7(0x32a)]-0x1,_0x52e9c0;_0x40c781>=0x0;_0x40c781--)(_0x52e9c0=_0x52f751[_0x40c781])&&(_0x17e99e=_0x52e9c0(_0x17e99e)||_0x17e99e);return _0x17e99e;},L=(_0x37c6b5,_0x4520f1)=>(_0x3f57e4,_0x5eb97a)=>_0x4520f1(_0x3f57e4,_0x5eb97a,_0x37c6b5);const et=0x12c,tt=0x64;let Ie=class extends a[_0x95d3a4(0x1d5)]{constructor(_0x4136c1,_0x498803,_0x53f5e9,_0x4d60e8,_0x22b769,_0x51ea7f,_0x3e88ab,_0x158975,_0x50f3f){const _0x3ba24a=_0x95d3a4;super(),h(this,_0x3ba24a(0x1e8),!0x1),h(this,_0x3ba24a(0x27e),!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x3ba24a(0x299)]()),h(this,_0x3ba24a(0x143),new d['BehaviorSubject']([])),h(this,_0x3ba24a(0x309),this['_roomMembers$'][_0x3ba24a(0x243)](d['debounceTime'](et))),h(this,'_updateLocalCursor',a[_0x3ba24a(0x341)](_0x38b1e9=>{const _0x44de31=_0x3ba24a,_0x3eab0f={'eventID':m[_0x44de31(0x2ef)][_0x44de31(0x15b)],'data':{'unitID':this[_0x44de31(0x238)],'memberID':this['_session'][_0x44de31(0x1cf)](),'selection':Pe(_0x38b1e9)}};this['_session'][_0x44de31(0x1d6)](_0x3eab0f,this[_0x44de31(0x238)]);},tt)),(this[_0x3ba24a(0x238)]=_0x4136c1,this[_0x3ba24a(0x249)]=_0x498803,this['_injector']=_0x53f5e9,this[_0x3ba24a(0x29f)]=_0x4d60e8,this[_0x3ba24a(0x110)]=_0x22b769,this[_0x3ba24a(0xf0)]=_0x51ea7f,this[_0x3ba24a(0x2b2)]=_0x3e88ab,this[_0x3ba24a(0x280)]=_0x158975,this[_0x3ba24a(0x1f0)]=_0x50f3f);}get[_0x95d3a4(0x1df)](){const _0x1821ee=_0x95d3a4;return this[_0x1821ee(0x1a7)][_0x1821ee(0x127)]();}get[_0x95d3a4(0x1bf)](){const _0x10e4ae=_0x95d3a4;return this[_0x10e4ae(0x143)]['getValue']();}[_0x95d3a4(0x140)](){const _0x286818=_0x95d3a4;super[_0x286818(0x140)](),this[_0x286818(0x1a7)][_0x286818(0x1e5)](new Map()),this[_0x286818(0x1a7)][_0x286818(0x1cb)](),this['_roomMembers$'][_0x286818(0x1e5)]([]),this['_roomMembers$'][_0x286818(0x1cb)]();}['init'](){const _0x3f5ce2=_0x95d3a4;this[_0x3f5ce2(0x27e)]||(this[_0x3f5ce2(0x27e)]=!0x0,this[_0x3f5ce2(0x249)][_0x3f5ce2(0x356)]['pipe'](d[_0x3f5ce2(0x330)](this[_0x3f5ce2(0x24b)]))[_0x3f5ce2(0x311)](_0x9f0e83=>{const _0x142873=_0x3f5ce2;_0x9f0e83===u[_0x142873(0x278)][_0x142873(0x154)]?this[_0x142873(0x2a8)]():this[_0x142873(0xe1)]();}),this[_0x3f5ce2(0x249)][_0x3f5ce2(0x30d)][_0x3f5ce2(0x243)](d[_0x3f5ce2(0x330)](this['dispose$']))['subscribe'](_0x392e4e=>{const _0x53cf96=_0x3f5ce2,_0x484a83=_0x392e4e['eventID'];_0x484a83===m[_0x53cf96(0x2ef)][_0x53cf96(0x15b)]&&this[_0x53cf96(0x251)](_0x392e4e),_0x484a83===m[_0x53cf96(0x2ef)][_0x53cf96(0x138)]&&this[_0x53cf96(0x111)](_0x392e4e);}),this[_0x3f5ce2(0x306)](this[_0x3f5ce2(0x1f0)][_0x3f5ce2(0x132)](_0x2c271d=>{const _0x8a0fd4=_0x3f5ce2,_0x8a1039=_0x2c271d[_0x8a0fd4(0x326)];_0x8a1039!=null&&this[_0x8a0fd4(0x1e8)]&&_0x2c271d['id']===Y[_0x8a0fd4(0x34b)]['id']&&_0x8a1039['unitId']===this[_0x8a0fd4(0x238)]&&_0x8a1039[_0x8a0fd4(0x159)]===!0x1&&_0x8a1039[_0x8a0fd4(0x2d7)][_0x8a0fd4(0x32a)]>0x0&&this[_0x8a0fd4(0xe0)](_0x8a1039[_0x8a0fd4(0x2d7)]);})),this[_0x3f5ce2(0xf0)][_0x3f5ce2(0x116)][_0x3f5ce2(0x243)](d['takeUntil'](this[_0x3f5ce2(0x24b)]))[_0x3f5ce2(0x311)](_0x1ca9b8=>{const _0x3e4c5f=_0x3f5ce2;if((_0x1ca9b8==null?void 0x0:_0x1ca9b8[_0x3e4c5f(0x238)])!==this['unitID'])return;const _0x52736b={'eventID':m[_0x3e4c5f(0x2ef)][_0x3e4c5f(0x15b)],'data':_0x1ca9b8};this['_onCursorUpdate'](_0x52736b);}),this[_0x3f5ce2(0x306)](this[_0x3f5ce2(0x1f0)]['onCommandExecuted'](_0x362b25=>{const _0x2b26b6=_0x3f5ce2;if(_0x362b25[_0x2b26b6(0x326)]==null)return;const _0x1ab2f8=_0x362b25[_0x2b26b6(0x326)];if(_0x362b25['id']!==Y[_0x2b26b6(0x236)]['id']||_0x1ab2f8[_0x2b26b6(0x279)]!==this[_0x2b26b6(0x238)])return;const _0x2b1ac6={'id':_0x2b26b6(0x191),'params':_0x1ab2f8},_0x54c4c1=this[_0x2b26b6(0x1df)];for(const [_0x47e8bd,_0x4d9cd5]of _0x54c4c1){const _0x27b6ce={'id':_0x2b26b6(0x191),'params':{'unitId':this[_0x2b26b6(0x238)],'actions':null,'textRanges':_0x4d9cd5['ranges']}},_0x284593=this[_0x2b26b6(0x2b2)][_0x2b26b6(0x177)](_0x2b1ac6,_0x27b6ce,!0x1);if(m[_0x2b26b6(0x32e)](_0x284593))throw _0x284593[_0x2b26b6(0x229)];_0x54c4c1[_0x2b26b6(0x12a)](_0x47e8bd,{..._0x4d9cd5,'ranges':_0x284593[_0x2b26b6(0x25a)]['params'][_0x2b26b6(0x1d4)]});}queueMicrotask(()=>{const _0x2ad9bf=_0x2b26b6;this[_0x2ad9bf(0x1a7)][_0x2ad9bf(0x1e5)](_0x54c4c1);});})));}[_0x95d3a4(0x251)](_0x2a70cf){const _0x13db05=_0x95d3a4;var _0x49c79f,_0x215cc1;const {memberID:_0x46d2f7,selection:_0x589950}=_0x2a70cf[_0x13db05(0x317)],_0x1fd7ea=Je(_0x589950),_0x44973b=(_0x215cc1=(_0x49c79f=this['_memberService'][_0x13db05(0x26b)](this[_0x13db05(0x238)],_0x46d2f7))==null?void 0x0:_0x49c79f[_0x13db05(0x146)])!=null?_0x215cc1:'Unknown\x20user',_0x173ed3={'color':this['_colorAssignService'][_0x13db05(0x124)](_0x46d2f7),'name':_0x44973b,'ranges':_0x1fd7ea},_0x4a3de3=this[_0x13db05(0x1df)];_0x4a3de3[_0x13db05(0x12a)](_0x46d2f7,_0x173ed3),this[_0x13db05(0x1a7)][_0x13db05(0x1e5)](_0x4a3de3);}[_0x95d3a4(0x111)](_0x441d7e){const _0x40338b=_0x95d3a4,{memberID:_0x133678}=_0x441d7e['data'],_0x6a239a=this[_0x40338b(0x1df)];_0x6a239a[_0x40338b(0x2ad)](_0x133678),this['_cursorInfo$']['next'](_0x6a239a);}['_toggleOnline'](){const _0x3cd496=_0x95d3a4;var _0x977e34;if(this[_0x3cd496(0x1e8)]=!0x0,((_0x977e34=this[_0x3cd496(0x280)][_0x3cd496(0x2b1)]())==null?void 0x0:_0x977e34[_0x3cd496(0x20f)]())!==this[_0x3cd496(0x238)])return;const _0x6d6981=this[_0x3cd496(0x1cc)][_0x3cd496(0x150)](Y[_0x3cd496(0x2eb)])[_0x3cd496(0x130)]();Array[_0x3cd496(0x25b)](_0x6d6981)&&_0x6d6981[_0x3cd496(0x32a)]>0x0&&this[_0x3cd496(0xe0)](_0x6d6981);}[_0x95d3a4(0xe1)](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a[_0x95d3a4(0x22c)](a[_0x95d3a4(0x227)])),L(0x3,a[_0x95d3a4(0x22c)](me)),L(0x4,a[_0x95d3a4(0x22c)](u[_0x95d3a4(0x244)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x95d3a4(0x33c)]),L(0x7,a[_0x95d3a4(0x256)]),L(0x8,a[_0x95d3a4(0x1a3)])],Ie);var st=Object[_0x95d3a4(0x13c)],it=(_0x580428,_0x2a7eba,_0x23afdd,_0xe146ff)=>{for(var _0x70c069=_0xe146ff>0x1?void 0x0:_0xe146ff?st(_0x2a7eba,_0x23afdd):_0x2a7eba,_0x2d599e=_0x580428['length']-0x1,_0x1cc819;_0x2d599e>=0x0;_0x2d599e--)(_0x1cc819=_0x580428[_0x2d599e])&&(_0x70c069=_0x1cc819(_0x70c069)||_0x70c069);return _0x70c069;},A=(_0xc2e7d5,_0x2f7834)=>(_0xe2e026,_0x27e763)=>_0x2f7834(_0xe2e026,_0x27e763,_0xc2e7d5);const nt=0x12c,rt=0x64,ot=()=>{let _0x325801=[],_0x3d3399=!0x1;return _0x5ea506=>{const _0x443f0f=_0x5181;_0x325801[_0x443f0f(0xfa)](_0x5ea506),_0x3d3399||(_0x3d3399=!0x0,setTimeout(()=>{const _0x3414a2=_0x443f0f;_0x325801[_0x3414a2(0x1ce)](_0x23dfae=>_0x23dfae()),_0x325801=[],_0x3d3399=!0x1;}));};};let Se=class extends a[_0x95d3a4(0x1d5)]{constructor(_0x552b7b,_0x8fbdc8,_0x1277c4,_0x2cb8c3,_0x4ee19b,_0x3e5b70,_0x1c408f,_0x436617){const _0xe049f7=_0x95d3a4;super(),h(this,_0xe049f7(0x1e8),!0x1),h(this,_0xe049f7(0x27e),!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,_0xe049f7(0x117),this[_0xe049f7(0x1a7)][_0xe049f7(0x299)]()),h(this,_0xe049f7(0x143),new d[(_0xe049f7(0x257))]([])),h(this,'roomMembers$',this[_0xe049f7(0x143)]['pipe'](d[_0xe049f7(0x12d)](nt))),h(this,_0xe049f7(0xe0),a['debounce']((_0x139305,_0x33ee9a)=>{const _0x59def4=_0xe049f7,_0x23a193={'eventID':m['CollaborationEvent'][_0x59def4(0x15b)],'data':{'unitID':this[_0x59def4(0x238)],'memberID':this[_0x59def4(0x249)][_0x59def4(0x1cf)](),'selection':be['serializeRangeWithSheet'](_0x139305,_0x33ee9a[_0x59def4(0x22f)])}};this[_0x59def4(0x249)]['send'](_0x23a193,this[_0x59def4(0x238)]);},rt)),(this['unitID']=_0x552b7b,this[_0xe049f7(0x249)]=_0x8fbdc8,this[_0xe049f7(0x1cc)]=_0x1277c4,this[_0xe049f7(0x29f)]=_0x2cb8c3,this['_memberService']=_0x4ee19b,this[_0xe049f7(0x280)]=_0x3e5b70,this[_0xe049f7(0x1f0)]=_0x1c408f,this[_0xe049f7(0xf5)]=_0x436617);}get['cursorInfo'](){const _0x213a24=_0x95d3a4;return this[_0x213a24(0x1a7)][_0x213a24(0x127)]();}get[_0x95d3a4(0x1bf)](){const _0x1bf590=_0x95d3a4;return this[_0x1bf590(0x143)][_0x1bf590(0x127)]();}['dispose'](){const _0x389b81=_0x95d3a4;super[_0x389b81(0x140)](),this[_0x389b81(0x1a7)][_0x389b81(0x1e5)](new Map()),this[_0x389b81(0x1a7)][_0x389b81(0x1cb)](),this[_0x389b81(0x143)]['next']([]),this[_0x389b81(0x143)][_0x389b81(0x1cb)]();}['init'](){const _0x2c9a04=_0x95d3a4;this[_0x2c9a04(0x27e)]||(this[_0x2c9a04(0x27e)]=!0x0,this[_0x2c9a04(0x249)][_0x2c9a04(0x356)]['pipe'](d[_0x2c9a04(0x330)](this[_0x2c9a04(0x24b)]))[_0x2c9a04(0x311)](_0x2aa7b7=>{const _0x2b15a5=_0x2c9a04;_0x2aa7b7===u[_0x2b15a5(0x278)][_0x2b15a5(0x154)]?this[_0x2b15a5(0x2a8)]():this[_0x2b15a5(0xe1)]();}),this['_session'][_0x2c9a04(0x30d)][_0x2c9a04(0x243)](d[_0x2c9a04(0x330)](this[_0x2c9a04(0x24b)]))[_0x2c9a04(0x311)](_0x2fa807=>{const _0x17fbc8=_0x2c9a04,_0x4bc8f0=_0x2fa807[_0x17fbc8(0x1fd)];_0x4bc8f0===m[_0x17fbc8(0x2ef)][_0x17fbc8(0x15b)]&&this[_0x17fbc8(0x251)](_0x2fa807),_0x4bc8f0===m[_0x17fbc8(0x2ef)][_0x17fbc8(0x138)]&&this[_0x17fbc8(0x111)](_0x2fa807);}),this['_onRefRangeChange'](),this[_0x2c9a04(0x306)](this['_commandService'][_0x2c9a04(0x132)](_0x2992ce=>{const _0x16d299=_0x2c9a04;if(this[_0x16d299(0x1e8)]&&_0x2992ce['id']===g['SetSelectionsOperation']['id']&&_0x2992ce[_0x16d299(0x326)][_0x16d299(0x279)]===this[_0x16d299(0x238)]){const _0xf038b3=_0x2992ce[_0x16d299(0x326)];this[_0x16d299(0xe0)](_0xf038b3[_0x16d299(0x184)],_0xf038b3[_0x16d299(0x104)][0x0]);}})));}[_0x95d3a4(0x251)](_0x4cfbf2){const _0x162fe4=_0x95d3a4;var _0x45b1bf,_0xc52764;const {memberID:_0x5dbead,selection:_0x2147b3}=_0x4cfbf2[_0x162fe4(0x317)],{sheetName:_0x4ced16,range:_0xbc50a4}=be['deserializeRangeWithSheet'](_0x2147b3),_0x235952={'name':(_0xc52764=(_0x45b1bf=this[_0x162fe4(0x110)][_0x162fe4(0x26b)](this[_0x162fe4(0x238)],_0x5dbead))==null?void 0x0:_0x45b1bf['name'])!=null?_0xc52764:_0x162fe4(0x28f),'range':this[_0x162fe4(0x190)](_0x4ced16,_0xbc50a4),'sheetID':_0x4ced16,'color':this[_0x162fe4(0x29f)]['assignAColorForMemberID'](_0x5dbead),'selection':_0x2147b3},_0x43374f=this[_0x162fe4(0x1df)];_0x43374f[_0x162fe4(0x12a)](_0x5dbead,_0x235952),this[_0x162fe4(0x1a7)]['next'](_0x43374f);}[_0x95d3a4(0x111)](_0x10af1e){const _0x4b765=_0x95d3a4,{memberID:_0x3c7114}=_0x10af1e[_0x4b765(0x317)],_0x294ae7=this[_0x4b765(0x1df)];_0x294ae7['delete'](_0x3c7114),this[_0x4b765(0x1a7)][_0x4b765(0x1e5)](_0x294ae7);}[_0x95d3a4(0x190)](_0x496fce,_0x56c3e7){const _0x13aa11=_0x95d3a4;var _0x2ff72b,_0x28f10a;const _0x20d00b=(_0x28f10a=(_0x2ff72b=this[_0x13aa11(0x280)][_0x13aa11(0x23f)](this[_0x13aa11(0x238)]))==null?void 0x0:_0x2ff72b['getSheetBySheetId'](_0x496fce))==null?void 0x0:_0x28f10a[_0x13aa11(0x353)]();return(_0x20d00b==null?void 0x0:_0x20d00b[_0x13aa11(0x234)](_0x100ffd=>a[_0x13aa11(0xf8)][_0x13aa11(0x214)](_0x100ffd,_0x56c3e7)))||_0x56c3e7;}['_onRefRangeChange'](){const _0x3aab05=_0x95d3a4,_0x395e3a=new a[(_0x3aab05(0x2df))](),_0x3766f7=ot(),_0x39678e=()=>{_0x395e3a['dispose']();const _0x5a65f6=(_0x3fe856,_0x2db6df,_0x3495cc,_0x4890c6)=>{const _0x403b94=_0x5181;let _0x531e3f=[];switch(_0x3fe856['id']){case g['EffectRefRangId'][_0x403b94(0x277)]:{_0x531e3f=g[_0x403b94(0x237)](_0x3fe856,_0x4890c6);break;}case g[_0x403b94(0x226)][_0x403b94(0x248)]:{_0x531e3f=g[_0x403b94(0x199)](_0x3fe856,_0x4890c6);break;}case g[_0x403b94(0x226)][_0x403b94(0x2f0)]:{_0x531e3f=g[_0x403b94(0x255)](_0x3fe856,_0x4890c6);break;}case g['EffectRefRangId'][_0x403b94(0x21b)]:{_0x531e3f=g['handleInsertRangeMoveDown'](_0x3fe856,_0x4890c6);break;}case g[_0x403b94(0x226)][_0x403b94(0x25d)]:{_0x531e3f=g[_0x403b94(0x29e)](_0x3fe856,_0x4890c6);break;}case g[_0x403b94(0x226)][_0x403b94(0x1fe)]:{_0x531e3f=g[_0x403b94(0x155)](_0x3fe856,_0x4890c6);break;}case g['EffectRefRangId'][_0x403b94(0x28d)]:{_0x531e3f=g[_0x403b94(0x14b)](_0x3fe856,_0x4890c6);break;}case g['EffectRefRangId'][_0x403b94(0x15a)]:{_0x531e3f=g[_0x403b94(0x202)](_0x3fe856,_0x4890c6);break;}case g[_0x403b94(0x226)][_0x403b94(0x345)]:{_0x531e3f=g[_0x403b94(0x1a1)](_0x3fe856,_0x4890c6);break;}}const _0x556001=g[_0x403b94(0x170)](_0x531e3f,_0x4890c6),_0x4bf0ec=this[_0x403b94(0x1df)][_0x403b94(0x150)](_0x2db6df);if(_0x4bf0ec&&_0x556001){const _0x2a10fd={..._0x4bf0ec,'range':_0x556001};this[_0x403b94(0x1df)][_0x403b94(0x12a)](_0x2db6df,_0x2a10fd),_0x3766f7(()=>{const _0x34d9ad=_0x403b94,_0x438e37=this[_0x34d9ad(0xf5)]['registerRefRange'](_0x556001,_0x14f1e3=>(_0x438e37['dispose'](),_0x5a65f6(_0x14f1e3,_0x2db6df,_0x3495cc,_0x556001)));_0x395e3a[_0x34d9ad(0x1b3)](_0x438e37);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x5bbfb1,_0x4df5cc)=>{const _0xaa2ded=_0x5181,{range:_0x13b9d9,sheetID:_0x2d1d3c}=_0x5bbfb1,_0x8fe8d2=this[_0xaa2ded(0xf5)][_0xaa2ded(0x189)](_0x13b9d9,_0xecc166=>(_0x8fe8d2[_0xaa2ded(0x140)](),_0x5a65f6(_0xecc166,_0x4df5cc,_0x2d1d3c,_0x13b9d9)));_0x395e3a[_0xaa2ded(0x1b3)](_0x8fe8d2);});};this[_0x3aab05(0x306)](a[_0x3aab05(0x2e1)](this['_cursorInfo$'][_0x3aab05(0x311)](()=>{_0x39678e();})));}[_0x95d3a4(0x2a8)](){const _0x3aeab3=_0x95d3a4;var _0x2c8a89,_0x8d33c3;if(this['_online']=!0x0,((_0x2c8a89=this[_0x3aeab3(0x280)][_0x3aeab3(0x2b1)]())==null?void 0x0:_0x2c8a89[_0x3aeab3(0x20f)]())!==this['unitID'])return;const _0x52ab28=(_0x8d33c3=this['_injector'][_0x3aeab3(0x150)](g['SheetsSelectionsService'])[_0x3aeab3(0x339)]())==null?void 0x0:_0x8d33c3[0x0],_0x55d8ac=this['_univerInstanceService'][_0x3aeab3(0x31e)](a[_0x3aeab3(0x194)]['UNIVER_SHEET'])[_0x3aeab3(0x1c0)]();_0x52ab28&&_0x55d8ac&&this[_0x3aeab3(0xe0)](_0x55d8ac['getSheetId'](),_0x52ab28);}['_toggleOffline'](){const _0x4f07fe=_0x95d3a4;this[_0x4f07fe(0x1e8)]=!0x1;}};Se=it([A(0x2,a[_0x95d3a4(0x22c)](a['Injector'])),A(0x3,a[_0x95d3a4(0x22c)](me)),A(0x4,a[_0x95d3a4(0x22c)](u[_0x95d3a4(0x244)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x95d3a4(0x1a3)]),A(0x7,a[_0x95d3a4(0x22c)](g['RefRangeService']))],Se);var at=Object[_0x95d3a4(0x13c)],ct=(_0x2996a4,_0x1d13c5,_0x5610f3,_0x146d03)=>{const _0x36374a=_0x95d3a4;for(var _0x23c0cd=_0x146d03>0x1?void 0x0:_0x146d03?at(_0x1d13c5,_0x5610f3):_0x1d13c5,_0x41ba7a=_0x2996a4[_0x36374a(0x32a)]-0x1,_0x3d445d;_0x41ba7a>=0x0;_0x41ba7a--)(_0x3d445d=_0x2996a4[_0x41ba7a])&&(_0x23c0cd=_0x3d445d(_0x23c0cd)||_0x23c0cd);return _0x23c0cd;},ie=(_0x45e87f,_0x2581b1)=>(_0x278e91,_0x53856d)=>_0x2581b1(_0x278e91,_0x53856d,_0x45e87f);let x=class extends a[_0x95d3a4(0x1d5)]{constructor(_0x59b71f,_0x1808bf,_0x2dfb74){const _0x3ce0fd=_0x95d3a4;super(),h(this,_0x3ce0fd(0x2e7),new Map()),h(this,_0x3ce0fd(0x228),new d[(_0x3ce0fd(0x1ae))]()),(this[_0x3ce0fd(0x280)]=_0x59b71f,this[_0x3ce0fd(0x1cc)]=_0x1808bf,this[_0x3ce0fd(0x1a8)]=_0x2dfb74,this[_0x3ce0fd(0x27e)]());}[_0x95d3a4(0x140)](){const _0x31b12b=_0x95d3a4;super['dispose'](),this[_0x31b12b(0x228)][_0x31b12b(0x1cb)](),this['_entities'][_0x31b12b(0x1ce)](_0x1e1180=>_0x1e1180[_0x31b12b(0x140)]());}['getCollabCursors$'](_0x2777ad){const _0xe9f68d=_0x95d3a4;return this[_0xe9f68d(0x2e7)][_0xe9f68d(0x28c)](_0x2777ad)?this[_0xe9f68d(0x2e7)][_0xe9f68d(0x150)](_0x2777ad)[_0xe9f68d(0x117)]:this[_0xe9f68d(0x228)][_0xe9f68d(0x243)](d[_0xe9f68d(0x217)](_0x460d78=>_0x460d78[_0xe9f68d(0x238)]===_0x2777ad),d[_0xe9f68d(0x2a9)](_0x4da23c=>_0x4da23c[_0xe9f68d(0x117)]));}[_0x95d3a4(0x27e)](){const _0x3a1332=_0x95d3a4;this[_0x3a1332(0x280)][_0x3a1332(0x230)](a[_0x3a1332(0x194)]['UNIVER_SHEET'])[_0x3a1332(0x243)](d[_0x3a1332(0x330)](this[_0x3a1332(0x24b)]))['subscribe'](async _0x1bfe9b=>{const _0x3f7fe8=_0x3a1332,_0x3eb5be=_0x1bfe9b['getUnitId'](),_0x2de015=await this[_0x3f7fe8(0x18d)](_0x3eb5be);this['_entityInit$'][_0x3f7fe8(0x1e5)](_0x2de015),this[_0x3f7fe8(0x2e7)]['set'](_0x3eb5be,_0x2de015);}),this[_0x3a1332(0x280)][_0x3a1332(0x230)](a[_0x3a1332(0x194)][_0x3a1332(0x32b)])['pipe'](d[_0x3a1332(0x330)](this[_0x3a1332(0x24b)]))[_0x3a1332(0x243)](d[_0x3a1332(0x217)](_0x11d1c2=>!_0x11d1c2[_0x3a1332(0x20f)]()['startsWith']('__')))[_0x3a1332(0x311)](async _0x43ecac=>{const _0x28c739=_0x3a1332,_0x553a15=_0x43ecac[_0x28c739(0x20f)](),_0x366221=await this[_0x28c739(0x212)](_0x553a15);this['_entityInit$'][_0x28c739(0x1e5)](_0x366221),this[_0x28c739(0x2e7)][_0x28c739(0x12a)](_0x553a15,_0x366221);}),d['merge'](this[_0x3a1332(0x280)][_0x3a1332(0x1b0)](a[_0x3a1332(0x194)][_0x3a1332(0x32b)]),this['_univerInstanceService'][_0x3a1332(0x1b0)](a[_0x3a1332(0x194)][_0x3a1332(0x343)]))[_0x3a1332(0x243)](d[_0x3a1332(0x330)](this['dispose$']))['subscribe'](_0x5f890f=>{const _0x4d3e5a=_0x3a1332,_0x5c6f0d=_0x5f890f[_0x4d3e5a(0x20f)](),_0xccf4a4=this[_0x4d3e5a(0x2e7)]['get'](_0x5c6f0d);_0xccf4a4&&(_0xccf4a4[_0x4d3e5a(0x140)](),this[_0x4d3e5a(0x2e7)]['delete'](_0x5c6f0d));});}async[_0x95d3a4(0x18d)](_0x2c9d19){const _0x473d00=_0x95d3a4,_0x553041=await this[_0x473d00(0x1a8)][_0x473d00(0x2af)](_0x2c9d19),_0x2834ac=this[_0x473d00(0x1cc)][_0x473d00(0x219)](Se,_0x2c9d19,_0x553041);return _0x2834ac[_0x473d00(0x2c8)](),_0x2834ac;}async[_0x95d3a4(0x212)](_0x55e144){const _0x49ee1c=_0x95d3a4,_0x1c8dc5=await this[_0x49ee1c(0x1a8)][_0x49ee1c(0x2af)](_0x55e144),_0x563744=this[_0x49ee1c(0x1cc)]['createInstance'](Ie,_0x55e144,_0x1c8dc5);return _0x563744[_0x49ee1c(0x2c8)](),_0x563744;}};x=ct([ie(0x0,a[_0x95d3a4(0x256)]),ie(0x1,a[_0x95d3a4(0x22c)](a[_0x95d3a4(0x227)])),ie(0x2,a[_0x95d3a4(0x22c)](u[_0x95d3a4(0x296)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x138474,_0x1112d8){const _0x50d2a3=_0x95d3a4;let {radius:_0x5205bd,width:_0x4b64a4,height:_0x3ef395}=_0x1112d8;_0x5205bd=_0x5205bd!=null?_0x5205bd:0x0,_0x4b64a4=_0x4b64a4!=null?_0x4b64a4:0x1e,_0x3ef395=_0x3ef395!=null?_0x3ef395:0x1e;let _0x407aa0=0x0,_0x567ac4=0x0,_0x2ec703=0x0;_0x407aa0=_0x567ac4=_0x2ec703=Math[_0x50d2a3(0x290)](_0x5205bd,_0x4b64a4/0x2,_0x3ef395/0x2),_0x138474['beginPath'](),_0x138474[_0x50d2a3(0x327)](_0x407aa0,0x0),_0x138474['lineTo'](_0x4b64a4-_0x567ac4,0x0),_0x138474['arc'](_0x4b64a4-_0x567ac4,_0x567ac4,_0x567ac4,Math['PI']*0x3/0x2,0x0,!0x1),_0x138474[_0x50d2a3(0x21a)](_0x4b64a4,_0x3ef395-_0x2ec703),_0x138474[_0x50d2a3(0x1ad)](_0x4b64a4-_0x2ec703,_0x3ef395-_0x2ec703,_0x2ec703,0x0,Math['PI']/0x2,!0x1),_0x138474[_0x50d2a3(0x21a)](0x0,_0x3ef395),_0x138474[_0x50d2a3(0x21a)](0x0,_0x407aa0),_0x138474[_0x50d2a3(0x1ad)](_0x407aa0,_0x407aa0,_0x407aa0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x138474['closePath'](),_0x1112d8[_0x50d2a3(0x2f8)]&&(_0x138474[_0x50d2a3(0x359)](),_0x138474[_0x50d2a3(0x201)]=_0x1112d8[_0x50d2a3(0x2f8)],_0x1112d8[_0x50d2a3(0x319)]==='evenodd'?_0x138474[_0x50d2a3(0x2f8)](_0x50d2a3(0x1f4)):_0x138474[_0x50d2a3(0x2f8)](),_0x138474['restore']());}class ee extends p[_0x95d3a4(0x1b8)]{constructor(_0x22a9b3,_0x462641){const _0x10b65d=_0x95d3a4;super(_0x22a9b3,_0x462641),h(this,_0x10b65d(0x27d)),h(this,_0x10b65d(0x22d)),(this['color']=_0x462641==null?void 0x0:_0x462641[_0x10b65d(0x27d)],this[_0x10b65d(0x22d)]=_0x462641==null?void 0x0:_0x462641['text']);}static[_0x95d3a4(0x196)](_0x1bfda5,_0xf6f54a){const _0x537d92=_0x95d3a4,{text:_0x228c4a,color:_0xeb139}=_0xf6f54a;_0x1bfda5['save'](),_0x1bfda5['font']=_0x537d92(0x14e);const _0x1a03e6=_0x1bfda5[_0x537d92(0xf1)](_0x228c4a)[_0x537d92(0x2cc)],_0x25db8b=Math[_0x537d92(0x290)](_0x1a03e6+0x2*ne,Re);_t(_0x1bfda5,{'height':K,'radius':0x4,'width':_0x25db8b,'fill':_0xeb139}),_0x1bfda5[_0x537d92(0x201)]=_0x537d92(0xff);const _0x23906e=ne,_0x5b5706=K-lt,_0x35f500=Re-0x2*ne;if(_0x1a03e6>_0x35f500){let _0x4b22f1='',_0x581a1e=0x0;for(const _0x4b7c72 of _0x228c4a){const _0x34f8b1=_0x1bfda5[_0x537d92(0xf1)](_0x4b7c72)['width'];if(_0x581a1e+_0x34f8b1<=_0x35f500-_0x1bfda5['measureText']('...')['width'])_0x4b22f1+=_0x4b7c72,_0x581a1e+=_0x34f8b1;else{_0x4b22f1+=_0x537d92(0x137);break;}}_0x1bfda5[_0x537d92(0x2fe)](_0x4b22f1,_0x23906e,_0x5b5706);}else _0x1bfda5[_0x537d92(0x2fe)](_0x228c4a,_0x23906e,_0x5b5706);_0x1bfda5[_0x537d92(0xf2)]();}[_0x95d3a4(0x31f)](_0x43564d){const _0x543fc1=_0x95d3a4;ee[_0x543fc1(0x196)](_0x43564d,this);}}const re=_0x95d3a4(0x179),ht='collab-text-range-',ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x95d3a4(0x29d);class De{constructor(_0x2128c1,_0x26c47d,_0x3cc485,_0x242231){const _0x37970d=_0x95d3a4;h(this,_0x37970d(0x21c),[]),h(this,_0x37970d(0x358),null),h(this,_0x37970d(0x1c2),null),h(this,'_anchorDot',null),h(this,_0x37970d(0x107),null),h(this,'_eventUnsubscribe',null),(this[_0x37970d(0x2c3)]=_0x2128c1,this[_0x37970d(0x142)]=_0x26c47d,this[_0x37970d(0x321)]=_0x3cc485,this['_document']=_0x242231,this[_0x37970d(0x1da)]());}set[_0x95d3a4(0x14c)](_0x2fc64c){const _0x1785d1=_0x95d3a4;_0x2fc64c?(this[_0x1785d1(0x1ee)]&&this['_anchorDot'][_0x1785d1(0x292)](),this[_0x1785d1(0x1c2)]&&this[_0x1785d1(0x1c2)]['show']()):(this[_0x1785d1(0x1ee)]&&this[_0x1785d1(0x1ee)][_0x1785d1(0x178)](),this['_textBubble']&&this[_0x1785d1(0x1c2)][_0x1785d1(0x292)]());}[_0x95d3a4(0x140)](){const _0x14b419=_0x95d3a4;for(const _0x1ae608 of this[_0x14b419(0x21c)])_0x1ae608[_0x14b419(0x140)]();this[_0x14b419(0x1c2)]&&this[_0x14b419(0x1c2)][_0x14b419(0x140)](),this[_0x14b419(0x1ee)]&&this[_0x14b419(0x1ee)][_0x14b419(0x140)](),this[_0x14b419(0x358)]&&this[_0x14b419(0x358)][_0x14b419(0x140)](),this[_0x14b419(0x268)]&&this[_0x14b419(0x268)]();}[_0x95d3a4(0x1da)](){const _0x1a3d5c=_0x95d3a4;var _0x138eeb;const {_docSkeleton:_0x19fc45,_document:_0x1974d1}=this,{color:_0x53b49e,name:_0x5cef1a,ranges:_0x1f8945}=this['_cursor'],_0x356cd6=_0x1974d1['getOffsetConfig'](),{docsLeft:_0x3d84dc,docsTop:_0x29aa52}=_0x356cd6,_0x220710=new E[(_0x1a3d5c(0x245))](_0x356cd6,_0x19fc45);for(const {startOffset:_0x3b69c4,endOffset:_0x2e33ec,rangeType:_0xee5e36,segmentId:_0x16c4e4,segmentPage:_0x5ba02c,collapsed:_0x931121,isActive:_0x1bcda8}of _0x1f8945){const _0x31f40d=_0x19fc45[_0x1a3d5c(0x16a)](_0x3b69c4,!0x0,_0x16c4e4,_0x5ba02c);let _0x545a97=_0x19fc45[_0x1a3d5c(0x16a)](_0x2e33ec,!0x0,_0x16c4e4,_0x5ba02c);if(_0x545a97==null&&(_0x545a97=_0x19fc45[_0x1a3d5c(0x16a)](_0x2e33ec-0x1,!0x1,_0x16c4e4,_0x5ba02c)),_0x1bcda8){const {contentBoxPointGroup:_0x2d4776}=_0x220710['getRangePointData'](_0x545a97,_0x545a97);if(_0x2d4776[_0x1a3d5c(0x32a)]===0x0)continue;this[_0x1a3d5c(0x2fd)](_0x53b49e,_0x2d4776,_0x3d84dc,_0x29aa52,_0x5cef1a),this[_0x1a3d5c(0x268)]=this[_0x1a3d5c(0x265)]();}if(_0x31f40d&&_0x545a97){if(_0xee5e36===a[_0x1a3d5c(0x2ee)][_0x1a3d5c(0x221)]){const _0x4a99d5=new E[(_0x1a3d5c(0x334))](_0x356cd6,_0x19fc45),{pointGroup:_0x46cb3f}=(_0x138eeb=_0x4a99d5['getRangePointData'](_0x31f40d,_0x545a97))!=null?_0x138eeb:{};if(_0x46cb3f==null||_0x46cb3f['length']===0x0)continue;this[_0x1a3d5c(0x346)](_0x53b49e,_0x46cb3f,_0x3d84dc,_0x29aa52);}else{if(!_0x931121){const {borderBoxPointGroup:_0x2abdca}=_0x220710[_0x1a3d5c(0x282)](_0x31f40d,_0x545a97);if(_0x2abdca['length']===0x0)continue;this[_0x1a3d5c(0x27f)](_0x53b49e,_0x2abdca,_0x3d84dc,_0x29aa52);}}}}}[_0x95d3a4(0x2fd)](_0x4d2f32,_0xaa1e66,_0x4c74d9,_0x3d87b0,_0x26da1e){const _0x3d9b63=_0x95d3a4,_0x1b015b=this[_0x3d9b63(0x2a5)](_0xaa1e66),{left:_0x207435,top:_0x35d236,height:_0x410d0f}=_0x1b015b,_0x2ba5a2=this[_0x3d9b63(0x139)](),_0x4880db=It/_0x2ba5a2,_0x3e0146=new p[(_0x3d9b63(0x34e))](re+a['Tools'][_0x3d9b63(0x313)](k),{'left':_0x207435+_0x4c74d9-_0x4880db,'top':_0x35d236+_0x3d87b0,'height':_0x410d0f,'width':dt,'fill':_0x4d2f32||p[_0x3d9b63(0x2de)](a[_0x3d9b63(0x149)][_0x3d9b63(0x25f)],0x0),'strokeWidth':_0x4880db,'stroke':St,'evented':!0x0});this[_0x3d9b63(0x358)]=_0x3e0146,this[_0x3d9b63(0x142)]['addObject'](_0x3e0146,E[_0x3d9b63(0x2d0)]);const _0x3fae31=new p[(_0x3d9b63(0x34e))](re+a[_0x3d9b63(0x294)][_0x3d9b63(0x313)](k),{'left':_0x207435+_0x4c74d9-_0x4880db,'top':_0x35d236+_0x3d87b0-oe/0x2,'height':oe,'width':oe,'fill':_0x4d2f32||p['getColor'](a[_0x3d9b63(0x149)][_0x3d9b63(0x25f)],0x0),'strokeWidth':0x0,'stroke':_0x4d2f32||p['getColor'](a[_0x3d9b63(0x149)][_0x3d9b63(0x25f)],0x0),'evented':!0x1});this[_0x3d9b63(0x1ee)]=_0x3fae31,this[_0x3d9b63(0x142)][_0x3d9b63(0x192)](_0x3fae31,E[_0x3d9b63(0x2d0)]);const _0x20ce01=new ee(re+a[_0x3d9b63(0x294)][_0x3d9b63(0x313)](k),{'left':_0x207435+_0x4c74d9-_0x4880db,'top':_0x35d236+_0x3d87b0-K,'text':_0x26da1e,'color':_0x4d2f32});this[_0x3d9b63(0x1c2)]=_0x20ce01,this[_0x3d9b63(0x142)][_0x3d9b63(0x192)](_0x20ce01,E[_0x3d9b63(0x2d0)]),this[_0x3d9b63(0x14c)]=!0x1;}[_0x95d3a4(0x265)](){const _0x6f9ac3=_0x95d3a4,_0x6cfe3a=this[_0x6f9ac3(0x358)][_0x6f9ac3(0x2bd)]['subscribeEvent'](()=>{const _0x2fe7a7=_0x6f9ac3;this[_0x2fe7a7(0x14c)]=!0x0;}),_0x3b57b7=this[_0x6f9ac3(0x358)][_0x6f9ac3(0x114)]['subscribeEvent'](()=>{const _0x252200=_0x6f9ac3;this[_0x252200(0x107)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x4c2126=_0x252200;this[_0x4c2126(0x14c)]=!0x1;},0x7d0);});return()=>{const _0x12435e=_0x6f9ac3;_0x6cfe3a[_0x12435e(0x163)](),_0x3b57b7['unsubscribe']();};}[_0x95d3a4(0x27f)](_0x4c77c8,_0x1ec837,_0x178909,_0x346ee1){const _0x8e8f57=_0x95d3a4,_0x41487a=new a['ColorKit'](_0x4c77c8)[_0x8e8f57(0x21d)](0.2)[_0x8e8f57(0x2e4)](),_0x595d64=new p['RegularPolygon'](ht+a['Tools'][_0x8e8f57(0x313)](k),{'pointsGroup':_0x1ec837,'fill':_0x41487a||p[_0x8e8f57(0x2de)](a[_0x8e8f57(0x149)][_0x8e8f57(0x25f)],0.2),'left':_0x178909,'top':_0x346ee1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x8e8f57(0x21c)][_0x8e8f57(0xfa)](_0x595d64),this[_0x8e8f57(0x142)][_0x8e8f57(0x192)](_0x595d64,E['TEXT_RANGE_LAYER_INDEX']);}[_0x95d3a4(0x346)](_0x4e062b,_0x339a11,_0x2d4fd3,_0x775223){const _0x536823=_0x95d3a4,_0x56fe51=new a[(_0x536823(0x136))](_0x4e062b)['setAlpha'](0.2)[_0x536823(0x2e4)](),_0x210564=new p[(_0x536823(0x241))](ut+a['Tools'][_0x536823(0x313)](k),{'pointsGroup':_0x339a11,'fill':_0x56fe51||p[_0x536823(0x2de)](a[_0x536823(0x149)]['black'],0.2),'left':_0x2d4fd3,'top':_0x775223,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x536823(0x21c)][_0x536823(0xfa)](_0x210564),this[_0x536823(0x142)][_0x536823(0x192)](_0x210564,E[_0x536823(0x2d0)]);}[_0x95d3a4(0x2a5)](_0x1e9f72){const _0x35ee58=_0x1e9f72[0x0],_0x619a18=_0x35ee58[0x0],_0x2b03a5=_0x35ee58[0x2],{x:_0x30db28,y:_0x2a8cad}=_0x619a18,{x:_0x32fd61,y:_0x4a157a}=_0x2b03a5;return{'left':_0x30db28,'top':_0x2a8cad,'width':_0x32fd61-_0x30db28,'height':_0x4a157a-_0x2a8cad};}['_getScale'](){const _0x7160f2=_0x95d3a4,{scaleX:_0x2cd2ff,scaleY:_0x32dd77}=this['_scene'][_0x7160f2(0x11f)]();return Math['max'](_0x2cd2ff,_0x32dd77);}}var ft=Object[_0x95d3a4(0x13c)],vt=(_0x19f643,_0x57d792,_0x58fca5,_0x362e07)=>{const _0x1254d1=_0x95d3a4;for(var _0xf999db=_0x362e07>0x1?void 0x0:_0x362e07?ft(_0x57d792,_0x58fca5):_0x57d792,_0x139c23=_0x19f643[_0x1254d1(0x32a)]-0x1,_0x522cf6;_0x139c23>=0x0;_0x139c23--)(_0x522cf6=_0x19f643[_0x139c23])&&(_0xf999db=_0x522cf6(_0xf999db)||_0xf999db);return _0xf999db;},W=(_0x29bd01,_0x29f778)=>(_0x56f73e,_0x425fd1)=>_0x29f778(_0x56f73e,_0x425fd1,_0x29bd01);let fe=class extends a[_0x95d3a4(0x1d5)]{constructor(_0x46833f,_0x5c126e,_0x3cbe8d,_0x1d9269,_0x56738f){const _0x4cf1c0=_0x95d3a4;super(),h(this,'_cursorShapes',[]),h(this,'_cursors',[]),(this[_0x4cf1c0(0x112)]=_0x46833f,this[_0x4cf1c0(0x162)]=_0x5c126e,this['_collabCursorController']=_0x3cbe8d,this['_commandService']=_0x1d9269,this[_0x4cf1c0(0x323)]=_0x56738f,this[_0x4cf1c0(0x27e)]());}[_0x95d3a4(0x27e)](){const _0x3f660a=_0x95d3a4,_0xde43a2=this[_0x3f660a(0x112)]['unitId'],_0xe20143=this['_docSkeletonManagerService'];this[_0x3f660a(0x306)](d[_0x3f660a(0x2a7)]([this[_0x3f660a(0x158)][_0x3f660a(0x2ed)](_0xde43a2),this[_0x3f660a(0x323)][_0x3f660a(0x213)]])[_0x3f660a(0x243)]($[_0x3f660a(0x2bc)](([_0x1f04ea,_0x554f1e])=>({'skeleton':_0xe20143[_0x3f660a(0x218)](),'cursors':[..._0x1f04ea[_0x3f660a(0x2db)]()][_0x3f660a(0x285)](_0x4d7f6e=>({..._0x4d7f6e,'color':this[_0x3f660a(0x323)][_0x3f660a(0x224)](_0x4d7f6e[_0x3f660a(0x27d)])}))})))[_0x3f660a(0x311)](_0x532894=>{const _0x33a944=_0x3f660a;if(this[_0x33a944(0x1dc)](),_0x532894){const {skeleton:_0x535155,cursors:_0x4e87ee}=_0x532894;this[_0x33a944(0x2d9)](_0x535155,_0x4e87ee);}})),this[_0x3f660a(0x105)](),this[_0x3f660a(0x204)]();}[_0x95d3a4(0x2d9)](_0x4e8d7a,_0x459a70){const _0x1639f2=_0x95d3a4,{scene:_0x28f1b4,mainComponent:_0x429409}=this[_0x1639f2(0x112)],_0x5890c8=_0x459a70[_0x1639f2(0x2bc)](_0x4060f8=>new De(_0x4060f8,_0x28f1b4,_0x4e8d7a,_0x429409));this[_0x1639f2(0x205)]=_0x5890c8,this[_0x1639f2(0x242)]=_0x459a70;}[_0x95d3a4(0x1d3)](){const _0x3227ed=_0x95d3a4;this[_0x3227ed(0x1dc)]();const {scene:_0x2700b9,mainComponent:_0x154c96}=this[_0x3227ed(0x112)],_0x28b70a=this[_0x3227ed(0x162)][_0x3227ed(0x218)](),_0x395af3=this[_0x3227ed(0x242)][_0x3227ed(0x2bc)](_0x419262=>new De(_0x419262,_0x2700b9,_0x28b70a,_0x154c96));this[_0x3227ed(0x205)]=_0x395af3;}[_0x95d3a4(0x1dc)](){const _0x4c917c=_0x95d3a4;this[_0x4c917c(0x205)]['forEach'](_0x2d7fe6=>_0x2d7fe6[_0x4c917c(0x140)]()),this[_0x4c917c(0x205)]=[];}['_initCommandExecutedListener'](){const _0x344406=_0x95d3a4,_0x57599b=[E[_0x344406(0x2c6)]['id']];this[_0x344406(0x306)](this[_0x344406(0x1f0)][_0x344406(0x132)](_0x35476c=>{const _0x3ec25b=_0x344406;_0x57599b[_0x3ec25b(0x121)](_0x35476c['id'])&&_0x35476c[_0x3ec25b(0x326)]['unitId']===this['_context'][_0x3ec25b(0x279)]&&this[_0x3ec25b(0x1d3)]();}));}[_0x95d3a4(0x105)](){const _0x143138=_0x95d3a4;this[_0x143138(0x306)](a[_0x143138(0x2b8)](this[_0x143138(0x112)][_0x143138(0x2cb)][_0x143138(0x1f3)])[_0x143138(0x243)]($[_0x143138(0x217)](_0x16eb57=>_0x16eb57[_0x143138(0x183)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x143138(0x210)]),$['throttleTime'](0x10))[_0x143138(0x311)](()=>{const _0x52fb36=_0x143138;this[_0x52fb36(0x1d3)]();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x95d3a4(0x135)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x95d3a4(0x1a3)]),W(0x4,a['Inject'](a[_0x95d3a4(0x1f5)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0x95d3a4(0x1b8)]{constructor(_0x15ca84,_0x41ddbe){const _0x38961e=_0x95d3a4;super(_0x15ca84,_0x41ddbe),h(this,'_color'),h(this,_0x38961e(0x10d),!0x1),h(this,_0x38961e(0x165)),h(this,_0x38961e(0x26e),''),h(this,_0x38961e(0x2ba),'top'),h(this,_0x38961e(0x28a)),(_0x41ddbe&&this[_0x38961e(0x2b7)](_0x41ddbe),this[_0x38961e(0x2bd)][_0x38961e(0x2a1)](()=>this[_0x38961e(0x2b7)]({'hovered':!0x0})),this[_0x38961e(0x114)][_0x38961e(0x2a1)](()=>this[_0x38961e(0x2b7)]({'hovered':!0x1})));}['setShapeProps'](_0x12a879){const _0x38440d=_0x95d3a4;var _0x598200,_0x3de2cb,_0x406c4c,_0x2902e3,_0xc0dcee,_0x312840;this['_color']=(_0x598200=_0x12a879[_0x38440d(0x27d)])!=null?_0x598200:this['_color'],this[_0x38440d(0x10d)]=(_0x3de2cb=_0x12a879[_0x38440d(0x1d8)])!=null?_0x3de2cb:this[_0x38440d(0x10d)],this['_range']=(_0x406c4c=_0x12a879[_0x38440d(0x22f)])!=null?_0x406c4c:this['_range'],this['_name']=(_0x2902e3=_0x12a879[_0x38440d(0x146)])!=null?_0x2902e3:this[_0x38440d(0x26e)],this['_labelPosition']=(_0xc0dcee=_0x12a879[_0x38440d(0x1ec)])!=null?_0xc0dcee:this[_0x38440d(0x2ba)],this[_0x38440d(0x28a)]=(_0x312840=_0x12a879[_0x38440d(0x2d8)])!=null?_0x312840:this[_0x38440d(0x28a)],this['transformByState']({'width':_0x12a879[_0x38440d(0x2cc)],'height':_0x12a879[_0x38440d(0x1bc)]});}[_0x95d3a4(0x17a)](_0x4c7ea5){const _0x90cfd=_0x95d3a4,{row:_0x2fcba8,column:_0x4eccaa}=_0x4c7ea5;if(_0x2fcba8>=this[_0x90cfd(0x165)][_0x90cfd(0x1a5)]&&_0x2fcba8<=this['_range']['endRow']&&_0x4eccaa>=this['_range'][_0x90cfd(0x276)]&&_0x4eccaa<=this['_range'][_0x90cfd(0x260)]){this[_0x90cfd(0x2b7)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x95d3a4(0x13a)](_0x347459){return!0x1;}[_0x95d3a4(0x31f)](_0x4bcf02){const _0x1ff3d9=_0x95d3a4;p[_0x1ff3d9(0x34e)][_0x1ff3d9(0x196)](_0x4bcf02,{'width':this[_0x1ff3d9(0x2cc)],'height':this[_0x1ff3d9(0x1bc)],'strokeWidth':mt,'stroke':this[_0x1ff3d9(0x115)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x1ff3d9(0x10d)]&&(_0x4bcf02[_0x1ff3d9(0x359)](),_0x4bcf02['transform'](0x1,0x0,0x0,0x1,this[_0x1ff3d9(0x2cc)],this[_0x1ff3d9(0x2ba)]===_0x1ff3d9(0x2f2)?0x0:-0x14),ee[_0x1ff3d9(0x196)](_0x4bcf02,{'text':this[_0x1ff3d9(0x26e)],'color':this[_0x1ff3d9(0x115)]}),_0x4bcf02[_0x1ff3d9(0xf2)]());}}var Ct=Object[_0x95d3a4(0x13c)],pt=(_0x178f6c,_0x486b92,_0x4d30fd,_0x24bed1)=>{const _0x2232ea=_0x95d3a4;for(var _0x1510bd=_0x24bed1>0x1?void 0x0:_0x24bed1?Ct(_0x486b92,_0x4d30fd):_0x486b92,_0x9cc16d=_0x178f6c[_0x2232ea(0x32a)]-0x1,_0x45b736;_0x9cc16d>=0x0;_0x9cc16d--)(_0x45b736=_0x178f6c[_0x9cc16d])&&(_0x1510bd=_0x45b736(_0x1510bd)||_0x1510bd);return _0x1510bd;},ae=(_0x5168d3,_0x1707e5)=>(_0x1417bc,_0x209066)=>_0x1707e5(_0x1417bc,_0x209066,_0x5168d3);const Et=0x1389;let ve=class extends a[_0x95d3a4(0x1d5)]{constructor(_0x18981c,_0x318e86,_0xa83234,_0x3fe257){const _0x56b5ce=_0x95d3a4;super(),h(this,'_cursors',new Set()),h(this,_0x56b5ce(0x1a4),null),(this[_0x56b5ce(0x112)]=_0x18981c,this[_0x56b5ce(0x355)]=_0x318e86,this[_0x56b5ce(0x158)]=_0xa83234,this['_themeService']=_0x3fe257,this[_0x56b5ce(0x27e)]());}[_0x95d3a4(0x27e)](){const _0x1dc7eb=_0x95d3a4;this[_0x1dc7eb(0x355)][_0x1dc7eb(0x301)][_0x1dc7eb(0x243)]($[_0x1dc7eb(0x330)](this['dispose$']),$[_0x1dc7eb(0x2a9)](_0x4a8faa=>{const _0xf8ee1d=_0x1dc7eb;if(_0x4a8faa){const _0x15d556=_0x4a8faa[_0xf8ee1d(0x331)];return d[_0xf8ee1d(0x2a7)](this[_0xf8ee1d(0x158)]['getCollabCursors$'](this[_0xf8ee1d(0x112)][_0xf8ee1d(0x279)]),this[_0xf8ee1d(0x323)]['currentTheme$'])[_0xf8ee1d(0x243)]($[_0xf8ee1d(0x2bc)](([_0x216408,_0x4d42b5])=>{const _0x5b17d1=new Map();return _0x216408['forEach']((_0x362f2c,_0x7d3f9d)=>{const _0x31bb41=_0x5181;if(_0x362f2c['sheetID']===_0x15d556){const _0x1d5e10={..._0x362f2c};_0x1d5e10['color']=this[_0x31bb41(0x323)][_0x31bb41(0x224)](_0x362f2c[_0x31bb41(0x27d)]),_0x5b17d1[_0x31bb41(0x12a)](_0x7d3f9d,_0x1d5e10);}}),{'skeleton':_0x4a8faa,'cursors':_0x5b17d1};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x1dc7eb(0x311)](({skeleton:_0x28b5a9,cursors:_0x37feee})=>{const _0xc7cfbb=_0x1dc7eb;this[_0xc7cfbb(0x1dc)](),_0x28b5a9&&this['_updateCollabCursors'](_0x28b5a9,_0x37feee);}),this[_0x1dc7eb(0x355)][_0x1dc7eb(0x301)][_0x1dc7eb(0x311)](_0x481b67=>{const _0x31823c=_0x1dc7eb;if(_0x481b67==null)return;const {skeleton:_0x672f0}=_0x481b67,{scene:_0x59ac33}=this[_0x31823c(0x112)];_0x59ac33[_0x31823c(0x349)][_0x31823c(0x2a1)](a[_0x31823c(0x341)](_0x38df3b=>{const _0x490998=_0x31823c;var _0x1e09d3,_0x31f6c8;const {offsetX:_0x241235,offsetY:_0x808759}=_0x38df3b,{x:_0x266434,y:_0x34368a}=_0x59ac33[_0x490998(0x2da)](p[_0x490998(0x2e3)]['FromArray']([_0x241235,_0x808759])),{scaleX:_0x5320e6,scaleY:_0x45792f}=_0x59ac33['getAncestorScale'](),_0x23be85=_0x59ac33[_0x490998(0x1db)](p[_0x490998(0x19e)][_0x490998(0x312)]),_0x1181dd=_0x59ac33[_0x490998(0x180)](p['Vector2']['FromArray']([_0x266434,_0x34368a]),_0x23be85),_0x57cb8a=_0x672f0[_0x490998(0x2dd)](_0x241235,_0x808759,_0x5320e6,_0x45792f,_0x1181dd);((_0x1e09d3=this['_lastPointer'])==null?void 0x0:_0x1e09d3['column'])===_0x57cb8a[_0x490998(0x206)]&&((_0x31f6c8=this['_lastPointer'])==null?void 0x0:_0x31f6c8['row'])===_0x57cb8a['row']||this[_0x490998(0x242)]['forEach'](_0x2a194f=>{const _0x4c9011=_0x490998;_0x2a194f[_0x4c9011(0x17a)](_0x57cb8a);});},0x64));});}[_0x95d3a4(0x2d9)](_0x2de9dc,_0x58add7){const _0x2eb853=_0x95d3a4;var _0x3514b6;const _0x23fb33=(_0x3514b6=this[_0x2eb853(0x355)][_0x2eb853(0x2b4)]())==null?void 0x0:_0x3514b6[_0x2eb853(0x320)];if(!_0x23fb33)return;const _0x42bf52=this['_getSheetObject']();if(!_0x42bf52)return;this[_0x2eb853(0x242)]['forEach'](_0x3d4ca4=>{const _0x4f61c5=_0x2eb853;_0x3d4ca4[_0x4f61c5(0x1ac)]();});const {scene:_0x8125e5}=_0x42bf52,_0x3c202b=bt(Array[_0x2eb853(0x2ca)](_0x58add7[_0x2eb853(0x2db)]()))[_0x2eb853(0x2bc)](_0x56efc0=>{const _0x4de3f6=_0x2eb853,{color:_0x4a4273,range:_0x1153c1,name:_0x3d5d37,selection:_0x3c4b40,sheetID:_0x28257d}=_0x56efc0,{startColumn:_0x59e737,startRow:_0x4936c8,endColumn:_0x47b2d7,endRow:_0x407fc1}=_0x1153c1,_0x1d3586=X[_0x4de3f6(0x335)](_0x4936c8,_0x59e737,_0x8125e5,_0x23fb33),_0x319bc8=X[_0x4de3f6(0x335)](_0x407fc1,_0x47b2d7,_0x8125e5,_0x23fb33),{columnHeaderHeightAndMarginTop:_0x18ead3}=_0x23fb33,{startX:_0x3c266c,startY:_0x321fae}=_0x1d3586,{endX:_0x221035,endY:_0x55a24d}=_0x319bc8,_0x294608=_0x221035-_0x3c266c,_0x26c440=_0x55a24d-_0x321fae,_0x20c404={'labelPosition':_0x321fae-_0x18ead3>=K?_0x4de3f6(0x198):_0x4de3f6(0x2f2),'sheetID':_0x28257d,'range':_0x1153c1,'color':_0x4a4273,'name':_0x3d5d37,'selection':_0x3c4b40,'left':_0x3c266c,'top':_0x321fae,'width':_0x294608,'height':_0x26c440,'evented':!0x1,'zIndex':Et};return new we(_0x3d5d37,_0x20c404);});_0x8125e5['addObjects'](_0x3c202b,gt),this[_0x2eb853(0x242)]=new Set(_0x3c202b);}['_removeCollabCursors'](){const _0x2f2297=_0x95d3a4;var _0xa43dac;(_0xa43dac=this[_0x2f2297(0x242)])==null||_0xa43dac[_0x2f2297(0x1ce)](_0xfba4d5=>_0xfba4d5[_0x2f2297(0x140)]());}[_0x95d3a4(0x289)](){const _0x5859f8=_0x95d3a4;return X[_0x5859f8(0x2f4)](this[_0x5859f8(0x112)][_0x5859f8(0x141)],this[_0x5859f8(0x112)]);}};ve=pt([ae(0x1,a[_0x95d3a4(0x22c)](X[_0x95d3a4(0x286)])),ae(0x2,a[_0x95d3a4(0x22c)](x)),ae(0x3,a[_0x95d3a4(0x22c)](a['ThemeService']))],ve);function bt(_0xfb59ab){const _0x43c391=_0x95d3a4,_0x1c56c7=new Map();return _0xfb59ab[_0x43c391(0x1ce)](_0x341933=>{const _0x140118=_0x43c391;if(_0x1c56c7[_0x140118(0x28c)](_0x341933['selection'])){const _0x55a4a5=_0x1c56c7[_0x140118(0x150)](_0x341933[_0x140118(0x108)]);_0x55a4a5[_0x140118(0x146)]+=',\x20'+_0x341933[_0x140118(0x146)];}else _0x1c56c7[_0x140118(0x12a)](_0x341933[_0x140118(0x108)],_0x341933);}),Array[_0x43c391(0x2ca)](_0x1c56c7['values']());}var b=function(){const _0x1c0e75=_0x95d3a4;return b=Object[_0x1c0e75(0x235)]||function(_0x3864f7){const _0x39817d=_0x1c0e75;for(var _0x13d2d1,_0x4c4beb=0x1,_0x23e36d=arguments[_0x39817d(0x32a)];_0x4c4beb<_0x23e36d;_0x4c4beb++){_0x13d2d1=arguments[_0x4c4beb];for(var _0x2cf062 in _0x13d2d1)Object['prototype']['hasOwnProperty'][_0x39817d(0x216)](_0x13d2d1,_0x2cf062)&&(_0x3864f7[_0x2cf062]=_0x13d2d1[_0x2cf062]);}return _0x3864f7;},b['apply'](this,arguments);},Ot=function(_0x5a3134,_0x442dfd){const _0x45094f=_0x95d3a4;var _0x5a37fd={};for(var _0x476075 in _0x5a3134)Object[_0x45094f(0x18a)][_0x45094f(0x157)]['call'](_0x5a3134,_0x476075)&&_0x442dfd['indexOf'](_0x476075)<0x0&&(_0x5a37fd[_0x476075]=_0x5a3134[_0x476075]);if(_0x5a3134!=null&&typeof Object[_0x45094f(0x288)]=='function'){for(var _0x4e4cf1=0x0,_0x476075=Object[_0x45094f(0x288)](_0x5a3134);_0x4e4cf1<_0x476075['length'];_0x4e4cf1++)_0x442dfd['indexOf'](_0x476075[_0x4e4cf1])<0x0&&Object[_0x45094f(0x18a)]['propertyIsEnumerable'][_0x45094f(0x216)](_0x5a3134,_0x476075[_0x4e4cf1])&&(_0x5a37fd[_0x476075[_0x4e4cf1]]=_0x5a3134[_0x476075[_0x4e4cf1]]);}return _0x5a37fd;},pe=M[_0x95d3a4(0x160)](function(_0x197aa3,_0xd2162e){const _0x205794=_0x95d3a4;var _0x580f76=_0x197aa3[_0x205794(0x272)],_0x43cb23=_0x197aa3['id'],_0x5107c8=_0x197aa3[_0x205794(0x187)],_0x16783a=_0x197aa3[_0x205794(0x188)],_0x350a62=Ot(_0x197aa3,[_0x205794(0x272),'id',_0x205794(0x187),_0x205794(0x188)]),_0x4b8c58='univerjs-icon\x20univerjs-icon-'[_0x205794(0x324)](_0x43cb23,'\x20')['concat'](_0x5107c8||'')[_0x205794(0x254)](),_0x51fcd4=M[_0x205794(0xe2)]('_'[_0x205794(0x324)](Dt()));return Ae(_0x580f76,''[_0x205794(0x324)](_0x43cb23),{'defIds':_0x580f76[_0x205794(0x1c7)],'idSuffix':_0x51fcd4[_0x205794(0x18f)]},b({'ref':_0xd2162e,'className':_0x4b8c58},_0x350a62),_0x16783a);});function Ae(_0x432764,_0x176b87,_0x667dff,_0x37b393,_0x49f107){const _0x4d1a5b=_0x95d3a4;return M[_0x4d1a5b(0x298)](_0x432764[_0x4d1a5b(0x1c5)],b(b({'key':_0x176b87},Tt(_0x432764,_0x667dff,_0x49f107)),_0x37b393),(Rt(_0x432764,_0x667dff)[_0x4d1a5b(0xf3)]||[])[_0x4d1a5b(0x2bc)](function(_0x57ea98,_0x542656){const _0x5626cb=_0x4d1a5b;return Ae(_0x57ea98,''['concat'](_0x176b87,'-')[_0x5626cb(0x324)](_0x432764[_0x5626cb(0x1c5)],'-')[_0x5626cb(0x324)](_0x542656),_0x667dff,void 0x0,_0x49f107);}));}function Tt(_0xebd4f9,_0x25283f,_0x229674){const _0x58b1cc=_0x95d3a4;var _0x258a74=b({},_0xebd4f9[_0x58b1cc(0x302)]);_0x229674!=null&&_0x229674[_0x58b1cc(0x1b7)]&&_0x258a74[_0x58b1cc(0x2f8)]===_0x58b1cc(0x1b7)&&(_0x258a74[_0x58b1cc(0x2f8)]=_0x229674[_0x58b1cc(0x1b7)]),_0xebd4f9[_0x58b1cc(0x1c5)]===_0x58b1cc(0x26a)&&_0x258a74['id']&&(_0x258a74['id']=_0x258a74['id']+_0x25283f[_0x58b1cc(0xf6)]),Object[_0x58b1cc(0x174)](_0x258a74)['forEach'](function(_0x12889c){const _0x51d261=_0x58b1cc;var _0x5f2079=_0x12889c[0x0],_0x1b6193=_0x12889c[0x1];_0x5f2079===_0x51d261(0x26a)&&typeof _0x1b6193==_0x51d261(0x32d)&&(_0x258a74[_0x5f2079]=_0x1b6193[_0x51d261(0x10f)](/url\(#(.*)\)/,'url(#$1'[_0x51d261(0x324)](_0x25283f[_0x51d261(0xf6)],')')));});var _0x12a644=_0x25283f['defIds'];return!_0x12a644||_0x12a644[_0x58b1cc(0x32a)]===0x0||(_0xebd4f9[_0x58b1cc(0x1c5)]==='use'&&_0x258a74[_0x58b1cc(0x1cd)]&&(_0x258a74[_0x58b1cc(0x1cd)]=_0x258a74[_0x58b1cc(0x1cd)]+_0x25283f[_0x58b1cc(0xf6)]),Object[_0x58b1cc(0x174)](_0x258a74)['forEach'](function(_0x58e4ec){const _0x74badd=_0x58b1cc;var _0x16f122=_0x58e4ec[0x0],_0x518737=_0x58e4ec[0x1];typeof _0x518737==_0x74badd(0x32d)&&(_0x258a74[_0x16f122]=_0x518737[_0x74badd(0x10f)](/url\(#(.*)\)/,_0x74badd(0x357)['concat'](_0x25283f[_0x74badd(0xf6)],')')));})),_0x258a74;}function _0x37b0(){const _0x28c9ec=['_localCacheService','setShapeProps','fromEventSubject','session.collaboration-timeout','_labelPosition','getCurrentRevOfUnit','map','onPointerEnter$','MessageType','CollaborationStatus','LOGIN_FAILED','_initStatusListener','_doCreateSocket','_cursor','_uiPartsService','AWAITING','SetDocZoomRatioOperation','onRendered','init','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','from','engine','width','ILogService','setItem','http://www.w3.org/2000/svg','TEXT_RANGE_LAYER_INDEX','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_unitStatus','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','UNDEFINED','DocCollaborationEntity','collaboration-client.offline-data-not-saved','ranges','backgroundColor','_updateCollabCursors','getRelativeToViewportCoord','values','clearInterval','getCellPositionByOffset','getColor','DisposableCollection','_getSessionTicket','toDisposable','syncEditingCollabCursor','Vector2','toRgbString','_renderManagerService','_config','_entities','on-line-icon','Error','_scheduleHeartbeat','DocSelectionManagerService','fromEvent','getCollabCursors$','DOC_RANGE_TYPE','CollaborationEvent','InsertColCommandId','collabStatus.conflict','bottom','WECHAT_HAS_BEEN_BOUND','getSheetObject','mergeOverrideWithDependencies','removeParam','_handleJoinEvent','fill','TEXT','_initStatusComponent','collaboration-client-ui.config','IRenderManagerService','_drawAnchor','fillText','NOT_COLLAB','enableLocalCache','currentSkeleton$','attrs','LocaleService','ISnapshotServerService','IImageIoService','disposeWithMe','APPLY_REVISION_CONFILICT','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','roomMembers$','merge','_clearOtherTimers','exhaustSavingTask','event$','toString','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','LICENSE_EXPORT_SIZE_EXCEEDED','subscribe','VIEW_MAIN','generateRandomId','code','unshift','_beforeCloseService','data','m1Prime','fillRule','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_httpService','updateOfflineData','size','getCurrentUnitForType','_draw','skeleton','_docSkeleton','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_themeService','concat','collab-client.tooltip.reconnect','params','moveTo','YUUMI_TABLE_NOT_FOUND_IN_UNIT','deepClone','length','UNIVER_DOC','entityInit$','string','isTransformMutationFailure','_docClipboardService','takeUntil','sheetId','off-line-icon','yellow.400','NodePositionConvertToRectRange','getCoordByCell','with','transformRemoteChangeset','addEventListener','getCurrentSelections','6YADSCk','override','ITransformService','_initEntityListener','debug','OnLineIcon','disableLocalCache','debounce','getUnhiddenWorksheets','UNIVER_SHEET','_getSaveTimeout','RemoveRowCommandId','_drawRectRange','getLocalCacheKey','memberID','onPointerMove$','location','SetTextSelectionsOperation','CLOSE_ROOM','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','Rect','_cachedData','Disposable','YUUMI_AI_RUN_FAILED','undoState','getMergeData','getStateCache','_sheetSkeletonManagerService','sessionStatus$','url(#$1','_anchor','save','_updateLocalCursor','_toggleOffline','useRef','YUUMI_ASYNCIO_CANCELLED','univer-flex\x20univer-items-center','_initDependencies','getSheetBySheetId','disposeUnit','ILocalCacheService','_id','shareReplay','getActiveRange','BrowserCollaborationSocketService','UNRECOGNIZED','CommandType','/run/','_syncEditingCollabCursorService','measureText','restore','children','svg','_refRangeService','idSuffix','M0\x200H16V16H0z','Rectangle','WebURLService','push','saveOfflineData','EMAIL_VERIFY_CODE_MISMATCH','jsx','INVALID_ARGUMENT','#FFF','_scheduleSaving','0\x200\x2016\x2016','_logService','_ensureSubject','selections','_initResize','_notificationService','_hideTimer','selection','mutations','INVITE_CODE_ALREADY_BOUND','NO_OTHER_CLIENTS_EDITING','defs','_hovered','isTransformMutationsWithChangesetSuccess','replace','_memberService','_onCursorDelete','_context','_removeClearOtherTimer','onPointerLeave$','_color','collabCursorState$','cursorInfo$','then','jsxs','CollaborationController','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','3717060dFSDCb','INVITE_CODE_HAS_BEEN_UES','symbol','getAncestorScale','_send','includes','_createSocketURL','CONNECTOR_DATA_TOO_LARGE','assignAColorForMemberID','_collaborationUIEventService','permission.title','getValue','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_dataLoaderService','set','executeCommand','_saveTaskMap','debounceTime','YUUMI_NO_CUBOID_FOR_QUESTION','split','getDocRanges','1284728MiNXjy','onCommandExecuted','_disabled','HTTPService','DocSkeletonManagerService','ColorKit','...','USERS_LEAVE','_getScale','triggerDblclick','TOO_MANY_REQUESTS','getOwnPropertyDescriptor','_transformUndoRedoStack','_docStateChangeManagerService','white','dispose','unit','_scene','_roomMembers$','DataLoaderService','getSheetId','name','setUndoRedoMutationParamsCache','popstate','COLORS','_collabCursorState$','handleMoveRange','_hover','APPLY_NON_SEQUENTIAL_REVISION','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Optional','get','CollaborationStatusDisplay','_transformHistoryAndStateStack','_colorIndex','ONLINE','handleInsertRow','registerComponent','hasOwnProperty','_collabCursorController','isEditing','RemoveColCommandId','UPDATE_CURSOR','setTimeout','transformSelections','_localStorageService','12fTNFsH','forwardRef','getRenderById','_docSkeletonManagerService','unsubscribe','DependentOn','_range','div','6pfowSz','translate(.97)','_updateSubUnitFromURLParams','findNodePositionByCharIndex','univer-mr-2\x20univer-flex\x20univer-text-xl','MUTATION','_saveCache','touchDependencies','application/json','runRefRangeMutations','_setupSubUnitSync','on-line-icon_clip0_910_349','collabStatus.syncing','entries','post','ENSURE_SNAPSHOT_EXECUTION','transformMutation','show','collab-text-anchor-','onMouseMove','1em','INVALID_INVITE_CODE','371dhgXyn','5099305CBQnAB','saveTaskMap','getVpScrollXYInfoByPosToVp','_instanceService','YUUMI_SUBSCRIPTION_NOT_FOUND','type','subUnitId','68632cVXxCy','session.will-retry','className','extend','registerRefRange','prototype','25809773TxCLEI','USER_NOT_INVITED_CODE','_startSheetCollabCursor','OFFLINE','current','_getMergeRange','doc.mutation.rich-text-editing','addObject','_handleEvent','UniverInstanceType','collabStatus.fetchMiss','drawWith','setStateCache','top','handleDeleteRangeMoveUp','useDependency','PERMISSION_DENIED','YUUMI_UNABLE_LOAD_URL','collaboration.single-unit.warning','SHEET_VIEWPORT_KEY','EMAIL_HAS_BEEN_BOUND','Tooltip','handleIRemoveRow','_updateURLWithCurrentState','ICommandService','_lastPointer','startRow','APPLY_DUPLICATED','_cursorInfo$','_collabSessionService','focused$','YUUMI_ALL_TABLES_IS_INVALID','_registerDependencies','makeDirty','arc','Subject','collabStatus.synced','getTypeOfUnitDisposed$','none','transformStateCache','add','registerBeforeClose','Workbook','CollaborationDataLoaderController','colorChannel1','Shape','getParam','BuiltInUIPart','_scheduleClearOtherTimer','height','redoState','Module','roomMembers','getActiveSheet','url(#off-line-icon_clip0_910_343)','_textBubble','265217sGvTCY','collaboration.closeRoom','tag','CHANGESET_REVISION_CONFILICT','defIds','_configService','APPLY_PERMISSION_DENIED','_docTransformStateCacheService','complete','_injector','xlink:href','forEach','getMemberID','href','stringify','imageSourceType','_refreshCollabCursors','textRanges','RxDisposable','send','IUIPartsService','hovered','_messageService','_render','getViewport','_removeCollabCursors','SetWorksheetActivateCommand','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','cursorInfo','_initEvent','_urlService','_unitOnClients','LICENSE_DISTRO_REJECTED','blue.400','next','SOCKET_FAILED_RETRY','CollaborationUIEventId','_online','MOBILE_HAS_BEEN_BOUND','0\x200\x2017\x2016','isActive','labelPosition','_assignedColors','_anchorDot','subunit','_commandService','Warning','defineProperty','onTransformChange$','evenodd','ThemeService','off-line-icon_clip0_910_343','urlChange$','2AgBNXP','DocIMEInputManagerService','UniverIcon','_revisionService','pushState','eventID','InsertRowCommandId','clearTimeout','registerDependencies','fillStyle','handleIRemoveCol','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_initCommandExecutedListener','_cursorShapes','column','getUnitStatus$','5741757CYnXLo','IDocClipboardService','_heartbeatTimer','COMPLETION_FINISHED','runId','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_URL_COL_OUT_OF_RANGE','getUnitId','resize','_collaborationController','_startDocCollabCursor','currentTheme$','contains','replaceState','call','filter','getSkeleton','createInstance','lineTo','InsertRangeMoveDownCommandId','_shapes','setAlpha','origin','IMessageService','onStarting','RECT','key','SOCKET_FAILED','getColorFromTheme','clsx','EffectRefRangId','Injector','_entityInit$','error','YUUMI_RATE_OVER_LIMIT','newValue','Inject','text','WebBrowserSingleActiveUnitService','range','getTypeOfUnitAdded$','clipPath','_localeService','getConfig','find','assign','RichTextEditingMutation','handleDeleteRangeMoveLeft','unitID','SUBMIT_CHANGESET_TIMEOUT','_setupBeforeClosingHandler','INotificationService','RemoteUniscriptService','reconnect','searchParams','getUniverSheetInstance','LICENSE_IMPORT_SIZE_EXCEEDED','RegularPolygon','_cursors','pipe','MemberService','NodePositionConvertToCursor','wsSessionTicketUrl','invokeId','DeleteRangeMoveUpCommandId','_session','uni.network.url-service','dispose$','replaceDocRanges','UnitStatus','PY_RUNTIME_SCRIPT_ERROR','NOT_FOUND','_selfUnitIDs','_onCursorUpdate','HEADER_MENU','OTHER_CLIENTS_EDITING','trim','handleInsertCol','IUniverInstanceService','BehaviorSubject','CollaborationUIEventService','unload','m2Prime','isArray','connectInjector','InsertRangeMoveRightCommandId','transformMutationsWithChangeset','black','endColumn','status$','loadOfflineData','_transformPreviousActiveRange','sessionTicket','_handleHover','setParam','IConfigService','_eventUnsubscribe','_status$','mask','getMember','getCollabEntity$','setInterval','_name','DesktopCollaborationStatusDisplayController','_docSyncEditingCollabCursorService','random','icon','ILocalStorageService','LOCAL_CACHE_INTERVAL','SNAPSHOT_INVALID_SNAPSHOT','startColumn','DeleteRangeMoveLeftCommandId','SessionStatus','unitId','useObservable','round','UniverCollaborationClientUIPlugin','color','_init','_drawTextRange','_univerInstanceService','parse','getRangePointData','Failed','distinctUntilChanged','flatMap','SheetSkeletonManagerService','DocStateChangeManagerService','getOwnPropertySymbols','_getSheetObject','_backgroundColor','body','has','MoveRangeCommandId','RevisionService','Unknown\x20user','min','path','hide','addClipboardHook','Tools','toStringTag','CollaborationSessionService','history','createElement','asObservable','JOIN_ROOM_FAILED','PENDING','collabStatus.notCollab','rgba(255,\x20255,\x20255,\x200.01)','handleInsertRangeMoveRight','_colorAssignService','LOCAL_CACHE_INTERVAL_KEY','subscribeEvent','transformIMECache','displayName','session.connection-failed','_getAnchorBounding','ISocketService','combineLatest','_toggleOnline','switchMap','ACTIVE_UNIT_EVENT_CHANNEL','currentColor','ALREADY_EXISTS','delete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','requireSession','_docTransformIMECacheService','getFocusedUnit','_transformService','createSocket','getCurrent','YUUMI_CONNECTOR_URL_NOT_FOUND'];_0x37b0=function(){return _0x28c9ec;};return _0x37b0();}function Rt(_0x1680c1,_0x26f24f){const _0x9e36ab=_0x95d3a4;var _0x38ee62,_0x1bd2fc=_0x26f24f[_0x9e36ab(0x1c7)];return!_0x1bd2fc||_0x1bd2fc[_0x9e36ab(0x32a)]===0x0?_0x1680c1:_0x1680c1[_0x9e36ab(0x1c5)]===_0x9e36ab(0x10c)&&(!((_0x38ee62=_0x1680c1[_0x9e36ab(0xf3)])===null||_0x38ee62===void 0x0)&&_0x38ee62[_0x9e36ab(0x32a)])?b(b({},_0x1680c1),{'children':_0x1680c1['children']['map'](function(_0x262285){const _0x3373ad=_0x9e36ab;return typeof _0x262285[_0x3373ad(0x302)]['id']==_0x3373ad(0x32d)&&_0x1bd2fc&&_0x1bd2fc[_0x3373ad(0x121)](_0x262285['attrs']['id'])?b(b({},_0x262285),{'attrs':b(b({},_0x262285[_0x3373ad(0x302)]),{'id':_0x262285[_0x3373ad(0x302)]['id']+_0x26f24f[_0x3373ad(0xf6)]})}):_0x262285;})}):_0x1680c1;}function Dt(){const _0x3aaded=_0x95d3a4;return Math[_0x3aaded(0x271)]()[_0x3aaded(0x30e)](0x24)['substring'](0x2,0x8);}pe[_0x95d3a4(0x2a3)]=_0x95d3a4(0x1fa);var Ut={'tag':_0x95d3a4(0xf4),'attrs':{'xmlns':_0x95d3a4(0x2cf),'fill':_0x95d3a4(0x1b1),'viewBox':_0x95d3a4(0x101),'width':'1em','height':_0x95d3a4(0x17b)},'children':[{'tag':'g','attrs':{'clipPath':_0x95d3a4(0x1c1)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x95d3a4(0x2d3),'strokeLinecap':_0x95d3a4(0x27b),'strokeLinejoin':_0x95d3a4(0x27b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x95d3a4(0x231),'attrs':{'id':_0x95d3a4(0x1f6)},'children':[{'tag':_0x95d3a4(0x291),'attrs':{'fill':_0x95d3a4(0x13f),'d':_0x95d3a4(0xf7)}}]}]}],'defIds':[_0x95d3a4(0x1f6)]},ye=M[_0x95d3a4(0x160)](function(_0x2dfd96,_0x4c3c03){const _0x20f0e2=_0x95d3a4;return M[_0x20f0e2(0x298)](pe,Object['assign']({},_0x2dfd96,{'id':_0x20f0e2(0x332),'ref':_0x4c3c03,'icon':Ut}));});ye[_0x95d3a4(0x2a3)]='OffLineIcon';var Nt={'tag':'svg','attrs':{'xmlns':_0x95d3a4(0x2cf),'fill':'none','viewBox':_0x95d3a4(0x1ea),'width':_0x95d3a4(0x17b),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x95d3a4(0x291),'attrs':{'stroke':_0x95d3a4(0x2ab),'d':_0x95d3a4(0x1de),'strokeLinecap':_0x95d3a4(0x27b),'strokeLinejoin':_0x95d3a4(0x27b),'strokeWidth':1.2}}]},{'tag':_0x95d3a4(0x10c),'attrs':{},'children':[{'tag':_0x95d3a4(0x231),'attrs':{'id':_0x95d3a4(0x172)},'children':[{'tag':_0x95d3a4(0x291),'attrs':{'fill':_0x95d3a4(0x13f),'d':_0x95d3a4(0xf7),'transform':_0x95d3a4(0x168)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x95d3a4(0x160)](function(_0x45bc62,_0x1152f5){const _0x5f4958=_0x95d3a4;return M['createElement'](pe,Object[_0x5f4958(0x235)]({},_0x45bc62,{'id':_0x5f4958(0x2e8),'ref':_0x1152f5,'icon':Nt}));});$e['displayName']=_0x95d3a4(0x33f);function _0x5181(_0x198933,_0x562389){const _0x37b0d7=_0x37b0();return _0x5181=function(_0x5181eb,_0x37b4fa){_0x5181eb=_0x5181eb-0xe0;let _0xcc5dfc=_0x37b0d7[_0x5181eb];return _0xcc5dfc;},_0x5181(_0x198933,_0x562389);}function Mt(_0x539b0a){const _0x1cfbba=_0x95d3a4;switch(_0x539b0a){case u[_0x1cfbba(0x2bf)][_0x1cfbba(0x18e)]:return'collabStatus.offline';case u[_0x1cfbba(0x2bf)]['CONFLICT']:return _0x1cfbba(0x2f1);case u['CollaborationStatus']['FETCH_MISS']:return _0x1cfbba(0x195);case u[_0x1cfbba(0x2bf)]['NOT_COLLAB']:return _0x1cfbba(0x29c);case u[_0x1cfbba(0x2bf)][_0x1cfbba(0x2c5)]:case u[_0x1cfbba(0x2bf)]['AWAITING_WITH_PENDING']:return _0x1cfbba(0x173);case u['CollaborationStatus']['SYNCED']:case u[_0x1cfbba(0x2bf)][_0x1cfbba(0x29b)]:return _0x1cfbba(0x1af);}}function xe(_0x4e2d38){const _0x592574=_0x95d3a4,{status$:_0x2ed49f}=_0x4e2d38,_0x5d65db=O[_0x592574(0x27a)](_0x2ed49f,u[_0x592574(0x2bf)][_0x592574(0x2ff)]),_0x1239c5=O[_0x592574(0x19a)](a[_0x592574(0x303)]),_0x4203b8=O['useDependency'](u[_0x592574(0x296)]),_0x50bb25=_0x5d65db!==u[_0x592574(0x2bf)]['OFFLINE'],_0x2640ea=_0x1239c5['t'](Mt(_0x5d65db)),_0x94f839=_0x50bb25?P[_0x592574(0xfd)]($e,{}):P['jsx'](ye,{}),_0x119ea1=M['useCallback'](()=>{const _0x4e0b8f=_0x592574;_0x50bb25||_0x4203b8[_0x4e0b8f(0x23d)]();},[_0x50bb25,_0x4203b8]);function _0x41f97b(){const _0x526630=_0x592574;return P[_0x526630(0x119)](_0x526630(0x166),{'className':_0x526630(0xe4),'onClick':_0x119ea1,'children':[P[_0x526630(0xfd)](_0x526630(0x166),{'className':D[_0x526630(0x225)](_0x526630(0x16b),{'univer-text-green-500':_0x50bb25,'univer-text-red-500':!_0x50bb25}),'children':_0x94f839}),P[_0x526630(0xfd)](_0x526630(0x166),{'className':_0x526630(0x2c9),'children':_0x2640ea})]});}return _0x50bb25?_0x41f97b():P['jsx'](D[_0x592574(0x1a0)],{'title':_0x1239c5['t'](_0x592574(0x325)),'children':_0x41f97b()});}var Lt=Object[_0x95d3a4(0x13c)],Pt=(_0x47cb83,_0x34b4f8,_0x3367fc,_0x46a871)=>{for(var _0x3f56ae=_0x46a871>0x1?void 0x0:_0x46a871?Lt(_0x34b4f8,_0x3367fc):_0x34b4f8,_0x36437f=_0x47cb83['length']-0x1,_0x246e22;_0x36437f>=0x0;_0x36437f--)(_0x246e22=_0x47cb83[_0x36437f])&&(_0x3f56ae=_0x246e22(_0x3f56ae)||_0x3f56ae);return _0x3f56ae;},V=(_0x54c080,_0x1aeb8c)=>(_0x270dce,_0x4f5fba)=>_0x1aeb8c(_0x270dce,_0x4f5fba,_0x54c080);exports[_0x95d3a4(0x26f)]=class extends a[_0x95d3a4(0x350)]{constructor(_0x3d1c13,_0x3872cf,_0xa481d7,_0x44312d){const _0x516ec7=_0x95d3a4;super(),h(this,_0x516ec7(0x269),new d[(_0x516ec7(0x257))](u[_0x516ec7(0x2bf)][_0x516ec7(0x2ff)])),(this[_0x516ec7(0x280)]=_0x3d1c13,this[_0x516ec7(0x1cc)]=_0x3872cf,this[_0x516ec7(0x211)]=_0xa481d7,this[_0x516ec7(0x2c4)]=_0x44312d,this[_0x516ec7(0x2fa)](),this[_0x516ec7(0x2c1)]());}[_0x95d3a4(0x2c1)](){const _0x36e2d3=_0x95d3a4;this[_0x36e2d3(0x306)](this['_univerInstanceService'][_0x36e2d3(0x1a9)][_0x36e2d3(0x243)](d[_0x36e2d3(0x2a9)](()=>{const _0x361fb2=_0x36e2d3,_0x5df6ed=this[_0x361fb2(0x280)][_0x361fb2(0x2b1)]();return _0x5df6ed?this[_0x361fb2(0x211)][_0x361fb2(0x26c)](_0x5df6ed['getUnitId']()):d['of'](null);}),d[_0x36e2d3(0x2a9)](_0x23f977=>_0x23f977?_0x23f977[_0x36e2d3(0x261)]:d['of'](u[_0x36e2d3(0x2bf)][_0x36e2d3(0x2ff)])))[_0x36e2d3(0x311)](_0x144dac=>{const _0x2f8495=_0x36e2d3;this[_0x2f8495(0x269)][_0x2f8495(0x1e5)](_0x144dac);}));}[_0x95d3a4(0x2fa)](){const _0x56e7b6=_0x95d3a4;this[_0x56e7b6(0x306)](this['_uiPartsService'][_0x56e7b6(0x156)](O[_0x56e7b6(0x1ba)][_0x56e7b6(0x252)],()=>O[_0x56e7b6(0x25c)](wt({'status$':this[_0x56e7b6(0x269)][_0x56e7b6(0x299)]()}),this[_0x56e7b6(0x1cc)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x95d3a4(0x256)]),V(0x1,a[_0x95d3a4(0x22c)](a[_0x95d3a4(0x227)])),V(0x2,a[_0x95d3a4(0x22c)](u[_0x95d3a4(0x11a)])),V(0x3,O[_0x95d3a4(0x1d7)])],exports['DesktopCollaborationStatusDisplayController']);function wt(_0x1d74f3){const {status$:_0x5005d5}=_0x1d74f3;return function(){const _0x222f0a=_0x5181;return P[_0x222f0a(0xfd)](xe,{'status$':_0x5005d5});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x2c0dad,_0x4a60d3,_0x2bf111,_0x3c512b)=>{const _0x5a5991=_0x95d3a4;for(var _0x114bff=_0x3c512b>0x1?void 0x0:_0x3c512b?At(_0x4a60d3,_0x2bf111):_0x4a60d3,_0x37fb33=_0x2c0dad[_0x5a5991(0x32a)]-0x1,_0x1fb43b;_0x37fb33>=0x0;_0x37fb33--)(_0x1fb43b=_0x2c0dad[_0x37fb33])&&(_0x114bff=_0x1fb43b(_0x114bff)||_0x114bff);return _0x114bff;},y=(_0x343440,_0x1cbedf)=>(_0x8ab7ac,_0x37088e)=>_0x1cbedf(_0x8ab7ac,_0x37088e,_0x343440);let q=class extends a[_0x95d3a4(0x350)]{constructor(_0x34ccb0,_0x24f1f9,_0x2682d2,_0x29835d,_0x596cc5,_0xb12a9d){const _0x23a45d=_0x95d3a4;super(),this[_0x23a45d(0x316)]=_0x34ccb0,this[_0x23a45d(0x2b6)]=_0x24f1f9,this[_0x23a45d(0x125)]=_0x2682d2,this[_0x23a45d(0x1d9)]=_0x29835d,this[_0x23a45d(0x106)]=_0x596cc5,this[_0x23a45d(0x232)]=_0xb12a9d,this[_0x23a45d(0x23a)](),this[_0x23a45d(0x1e0)]();}[_0x95d3a4(0x23a)](){const _0x4835f7=_0x95d3a4;this['disposeWithMe'](this[_0x4835f7(0x316)][_0x4835f7(0x1b4)](()=>{const _0xb4bb48=_0x4835f7;if(this[_0xb4bb48(0x2b6)]['saveTaskMap'][_0xb4bb48(0x31d)])return this[_0xb4bb48(0x232)]['t'](_0xb4bb48(0x2d6));}));}['_initEvent'](){const _0x5ddb70=_0x95d3a4;this[_0x5ddb70(0x306)](this[_0x5ddb70(0x125)]['event$'][_0x5ddb70(0x311)](_0x2dab6b=>{const _0xcabae2=_0x5ddb70;_0x2dab6b['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0xcabae2(0x1d9)][_0xcabae2(0x178)]({'type':D[_0xcabae2(0x2be)][_0xcabae2(0x1f1)],'content':this[_0xcabae2(0x232)]['t'](_0xcabae2(0x19d))}),_0x2dab6b['id']===u['CollaborationUIEventId'][_0xcabae2(0x34c)]&&this[_0xcabae2(0x1d9)]['show']({'type':D[_0xcabae2(0x2be)]['Warning'],'content':this[_0xcabae2(0x232)]['t'](_0xcabae2(0x1c4))}),_0x2dab6b['id']===u[_0xcabae2(0x1e7)]['PERMISSION_DENIED']&&this[_0xcabae2(0x106)][_0xcabae2(0x178)]({'title':this[_0xcabae2(0x232)]['t'](_0xcabae2(0x126)),'content':this[_0xcabae2(0x232)]['t']('permission.content'),'type':_0xcabae2(0x229),'duration':0x0}),_0x2dab6b['id']===u[_0xcabae2(0x1e7)]['CONFLICT']&&this[_0xcabae2(0x1d9)]['show']({'type':D[_0xcabae2(0x2be)][_0xcabae2(0x2e9)],'content':this[_0xcabae2(0x232)]['t'](_0xcabae2(0x1c4))+'('+_0x2dab6b[_0xcabae2(0x317)]+')'}),_0x2dab6b['id']===u[_0xcabae2(0x1e7)][_0xcabae2(0x29a)]&&this['_messageService'][_0xcabae2(0x178)]({'type':D['MessageType'][_0xcabae2(0x1f1)],'content':this[_0xcabae2(0x232)]['t'](_0x2dab6b['data']||'')}),_0x2dab6b['id']===u['CollaborationUIEventId'][_0xcabae2(0x1e6)]&&this[_0xcabae2(0x1d9)][_0xcabae2(0x178)]({'type':D[_0xcabae2(0x2be)][_0xcabae2(0x1f1)],'content':this[_0xcabae2(0x232)]['t'](_0xcabae2(0x186))}),_0x2dab6b['id']===u[_0xcabae2(0x1e7)][_0xcabae2(0x223)]&&this[_0xcabae2(0x1d9)][_0xcabae2(0x178)]({'type':D[_0xcabae2(0x2be)][_0xcabae2(0x2e9)],'content':this['_localeService']['t'](_0xcabae2(0x2a4))}),_0x2dab6b['id']===u[_0xcabae2(0x1e7)][_0xcabae2(0x239)]&&this[_0xcabae2(0x1d9)][_0xcabae2(0x178)]({'type':D[_0xcabae2(0x2be)][_0xcabae2(0x2e9)],'content':this['_localeService']['t'](_0xcabae2(0x2b9))});}));}};q=yt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x95d3a4(0xe8)]),y(0x2,a['Inject'](u[_0x95d3a4(0x258)])),y(0x3,O['IMessageService']),y(0x4,O[_0x95d3a4(0x23b)]),y(0x5,a[_0x95d3a4(0x22c)](a[_0x95d3a4(0x303)]))],q);const $t=_0x95d3a4(0x2fb),Ue={},Ee=a['createIdentifier'](_0x95d3a4(0x24a));var xt=Object[_0x95d3a4(0x13c)],Bt=(_0x1347e2,_0x3174b2,_0x3c2775,_0x213df4)=>{const _0x32811f=_0x95d3a4;for(var _0x273f8c=_0x213df4>0x1?void 0x0:_0x213df4?xt(_0x3174b2,_0x3c2775):_0x3174b2,_0x3b8a39=_0x1347e2[_0x32811f(0x32a)]-0x1,_0xff1a56;_0x3b8a39>=0x0;_0x3b8a39--)(_0xff1a56=_0x1347e2[_0x3b8a39])&&(_0x273f8c=_0xff1a56(_0x273f8c)||_0x273f8c);return _0x273f8c;},F=(_0x542a1d,_0x54bace)=>(_0x39a1de,_0x567258)=>_0x54bace(_0x39a1de,_0x567258,_0x542a1d);exports[_0x95d3a4(0x1b6)]=class extends a[_0x95d3a4(0x1d5)]{constructor(_0x41c5fb,_0x4cf95e,_0x2033e5,_0x48228e,_0x579033){const _0x4b8284=_0x95d3a4;super(),this[_0x4b8284(0x1e1)]=_0x41c5fb,this['_logService']=_0x4cf95e,this[_0x4b8284(0x1f0)]=_0x2033e5,this[_0x4b8284(0x129)]=_0x48228e,_0x579033?_0x579033==null||_0x579033['whenReady']()[_0x4b8284(0x118)](()=>this[_0x4b8284(0x27e)]()):(this[_0x4b8284(0x102)][_0x4b8284(0x33e)]('[CollaborationDataLoaderController]',_0x4b8284(0x322)),this[_0x4b8284(0x27e)]());}async['_init'](){const _0x33b42d=_0x95d3a4,_0x3e1976=this[_0x33b42d(0x1e1)]['getParam'](_0x33b42d(0x141)),_0x57fca8=this[_0x33b42d(0x1e1)][_0x33b42d(0x1b9)]('type'),_0xbeedd6=this[_0x33b42d(0x1e1)][_0x33b42d(0x1b9)](_0x33b42d(0x1ef));if(!_0x3e1976||!_0x57fca8){this[_0x33b42d(0x102)][_0x33b42d(0x33e)]('[CollaborationDataLoaderController]',_0x33b42d(0x2ae));return;}const _0x362ab9=await this[_0x33b42d(0x129)]['loadUnit'](_0x3e1976,Number(_0x57fca8),_0xbeedd6);_0x362ab9&&_0x362ab9 instanceof a[_0x33b42d(0x1b5)]&&this[_0x33b42d(0x171)](_0x362ab9);}async['_setupSubUnitSync'](_0x2c27ba){const _0x1e7cf6=_0x95d3a4;await this[_0x1e7cf6(0x169)](_0x2c27ba),_0x2c27ba['activeSheet$'][_0x1e7cf6(0x243)](d[_0x1e7cf6(0x330)](this[_0x1e7cf6(0x24b)]))[_0x1e7cf6(0x311)](_0x553389=>{const _0x5ddb3=_0x1e7cf6;_0x553389&&this[_0x5ddb3(0x1a2)](_0x553389);}),this[_0x1e7cf6(0x1e1)][_0x1e7cf6(0x1f7)][_0x1e7cf6(0x243)](d[_0x1e7cf6(0x330)](this[_0x1e7cf6(0x24b)]))['subscribe'](()=>this[_0x1e7cf6(0x169)](_0x2c27ba));}[_0x95d3a4(0x1a2)](_0x66a026,_0x38ee66=!0x1){const _0x304bd7=_0x95d3a4,_0x9fbdb1=this[_0x304bd7(0x1e1)][_0x304bd7(0x1b9)](_0x304bd7(0x1ef));_0x66a026['getSheetId']()!==_0x9fbdb1&&this[_0x304bd7(0x1e1)][_0x304bd7(0x266)](_0x304bd7(0x1ef),_0x66a026[_0x304bd7(0x145)](),_0x38ee66);}async[_0x95d3a4(0x169)](_0x1239df){const _0x25c372=_0x95d3a4;var _0x404baa;const _0x317f7b=this[_0x25c372(0x1e1)][_0x25c372(0x1b9)](_0x25c372(0x1ef));if(!_0x317f7b||!_0x1239df[_0x25c372(0xe6)](_0x317f7b)){const _0x3596cd=_0x1239df[_0x25c372(0x342)]()[0x0],_0x5d3122=_0x1239df[_0x25c372(0xe6)](_0x3596cd);if(!_0x5d3122)return;this[_0x25c372(0x1a2)](_0x5d3122,!0x0),await this[_0x25c372(0x1f0)]['executeCommand'](g[_0x25c372(0x1dd)]['id'],{'unitId':_0x1239df[_0x25c372(0x20f)](),'subUnitId':_0x3596cd});return;}((_0x404baa=_0x1239df[_0x25c372(0x1c0)]())==null?void 0x0:_0x404baa[_0x25c372(0x145)]())!==_0x317f7b&&await this[_0x25c372(0x1f0)][_0x25c372(0x12b)](g[_0x25c372(0x1dd)]['id'],{'unitId':_0x1239df[_0x25c372(0x20f)](),'subUnitId':_0x317f7b});}},exports['CollaborationDataLoaderController']=Bt([F(0x0,Ee),F(0x1,a[_0x95d3a4(0x2cd)]),F(0x2,a[_0x95d3a4(0x1a3)]),F(0x3,a['Inject'](u[_0x95d3a4(0x144)])),F(0x4,a[_0x95d3a4(0x14f)](Ke['IRemoteInstanceService']))],exports[_0x95d3a4(0x1b6)]);var jt=Object[_0x95d3a4(0x13c)],kt=(_0x26c717,_0x155553,_0x5bae91,_0x156560)=>{const _0x54b3ef=_0x95d3a4;for(var _0x1f5595=_0x156560>0x1?void 0x0:_0x156560?jt(_0x155553,_0x5bae91):_0x155553,_0x7b4b97=_0x26c717[_0x54b3ef(0x32a)]-0x1,_0x47f142;_0x7b4b97>=0x0;_0x7b4b97--)(_0x47f142=_0x26c717[_0x7b4b97])&&(_0x1f5595=_0x47f142(_0x1f5595)||_0x1f5595);return _0x1f5595;},ce=(_0x58073e,_0x24e64c)=>(_0x4c51ff,_0x593055)=>_0x24e64c(_0x4c51ff,_0x593055,_0x58073e);let z=class{constructor(_0x5c6779,_0x57feca,_0x45a0e0){const _0x404111=_0x95d3a4;this[_0x404111(0x1cc)]=_0x5c6779,this[_0x404111(0x2b2)]=_0x57feca,this[_0x404111(0x2e5)]=_0x45a0e0;}[_0x95d3a4(0x2a2)](_0x25c4ef){const _0x11c141=_0x95d3a4;this[_0x11c141(0x13d)](_0x25c4ef),this['_transformPreviousActiveRange'](_0x25c4ef);}[_0x95d3a4(0x337)](_0x3dc71b){const _0x4554f0=_0x95d3a4,{unitID:_0x512c1b}=_0x3dc71b,_0x247af0=this[_0x4554f0(0x2e5)][_0x4554f0(0x161)](_0x512c1b)[_0x4554f0(0x336)](E[_0x4554f0(0x1f9)]),{redoCache:_0x151045}=_0x247af0['getUndoRedoMutationParamsCache']();if(_0x151045[_0x4554f0(0x32a)]===0x0)return _0x3dc71b;let _0x19b1ba=a[_0x4554f0(0x294)][_0x4554f0(0x329)](_0x3dc71b[_0x4554f0(0x109)][0x0]);for(let _0x4b568e=0x0;_0x4b568e<_0x151045[_0x4554f0(0x32a)];_0x4b568e++){const _0x3d7ffb={'id':'doc.mutation.rich-text-editing','params':{..._0x151045[_0x4b568e]}},_0x24477f=this[_0x4554f0(0x2b2)][_0x4554f0(0x177)](_0x19b1ba,_0x3d7ffb,!0x1);if(m['isTransformMutationFailure'](_0x24477f))throw _0x24477f[_0x4554f0(0x229)];_0x19b1ba=_0x24477f[_0x4554f0(0x318)];}return{...a[_0x4554f0(0x294)][_0x4554f0(0x329)](_0x3dc71b),'mutations':[_0x19b1ba]};}[_0x95d3a4(0x13d)](_0xca3f8a){const _0x17272c=_0x95d3a4,{unitID:_0x391678}=_0xca3f8a,_0x3819bd=this[_0x17272c(0x2e5)][_0x17272c(0x161)](_0x391678)[_0x17272c(0x336)](E[_0x17272c(0x1f9)]),{undoCache:_0x4deeb7,redoCache:_0x13cf87}=_0x3819bd['getUndoRedoMutationParamsCache']();if(_0x4deeb7[_0x17272c(0x32a)]===0x0||_0x13cf87['length']===0x0)return;const _0x153a55=[],_0x270e30=[];let _0x46eb3c=a['Tools'][_0x17272c(0x329)](_0xca3f8a['mutations'][0x0]),_0x111a1f=a['Tools'][_0x17272c(0x329)](_0xca3f8a[_0x17272c(0x109)][0x0]);for(let _0x1e2cb4=_0x4deeb7[_0x17272c(0x32a)]-0x1;_0x1e2cb4>=0x0;_0x1e2cb4--){const _0x87d3ff={'id':_0x17272c(0x191),'params':{..._0x4deeb7[_0x1e2cb4]}},_0x5cfce4={'id':_0x17272c(0x191),'params':{..._0x13cf87[_0x1e2cb4]}},_0x361bdc=this[_0x17272c(0x2b2)][_0x17272c(0x177)](_0x46eb3c,_0x87d3ff,!0x1),_0x6c10b9=this[_0x17272c(0x2b2)][_0x17272c(0x177)](_0x111a1f,_0x5cfce4,!0x1);if(m[_0x17272c(0x32e)](_0x361bdc))throw _0x361bdc[_0x17272c(0x229)];if(m[_0x17272c(0x32e)](_0x6c10b9))throw _0x6c10b9[_0x17272c(0x229)];_0x153a55[_0x17272c(0x315)](_0x361bdc['m2Prime']['params']),_0x270e30[_0x17272c(0x315)](_0x6c10b9['m2Prime'][_0x17272c(0x326)]),_0x46eb3c=_0x361bdc[_0x17272c(0x318)],_0x111a1f=_0x6c10b9['m1Prime'];}_0x3819bd[_0x17272c(0x147)]({'undoCache':_0x153a55,'redoCache':_0x270e30});}[_0x95d3a4(0x263)](_0x54a8d7){const _0x2d5a22=_0x95d3a4,{unitID:_0x51cf36}=_0x54a8d7,_0xb65fab=this[_0x2d5a22(0x2e5)][_0x2d5a22(0x161)](_0x51cf36)[_0x2d5a22(0x336)](E[_0x2d5a22(0x1f9)]),_0x5720ee=_0xb65fab[_0x2d5a22(0xeb)]();if(_0x5720ee==null)return;const _0x4ec7f3=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x54a8d7[_0x2d5a22(0x238)],'actions':null,'textRanges':[_0x5720ee]}}],_0x296550=this['_transformService']['transformMutationsWithChangeset'](_0x54a8d7,_0x4ec7f3);if(!m[_0x2d5a22(0x10e)](_0x296550))throw _0x296550['error'];const _0x30b8ed=_0x296550[_0x2d5a22(0x25a)][0x0][_0x2d5a22(0x326)][_0x2d5a22(0x1d4)];Array[_0x2d5a22(0x25b)](_0x30b8ed)&&_0x30b8ed[_0x2d5a22(0x32a)]&&_0xb65fab['setActiveRange'](_0x30b8ed[0x0]);}};z=kt([ce(0x0,a[_0x95d3a4(0x22c)](a[_0x95d3a4(0x227)])),ce(0x1,m[_0x95d3a4(0x33c)]),ce(0x2,p[_0x95d3a4(0x2fc)])],z);var Ft=Object[_0x95d3a4(0x13c)],Ht=(_0x399afe,_0x8747dc,_0x4e6c1e,_0x207fa5)=>{const _0x297c25=_0x95d3a4;for(var _0x3e8cf5=_0x207fa5>0x1?void 0x0:_0x207fa5?Ft(_0x8747dc,_0x4e6c1e):_0x8747dc,_0x3f8be7=_0x399afe[_0x297c25(0x32a)]-0x1,_0x3144a0;_0x3f8be7>=0x0;_0x3f8be7--)(_0x3144a0=_0x399afe[_0x3f8be7])&&(_0x3e8cf5=_0x3144a0(_0x3e8cf5)||_0x3e8cf5);return _0x3e8cf5;},le=(_0x51f56f,_0x5b9a51)=>(_0xfadb0e,_0x503187)=>_0x5b9a51(_0xfadb0e,_0x503187,_0x51f56f);let J=class{constructor(_0x2cea90,_0x279b37,_0x3148dd){const _0x113b9f=_0x95d3a4;this[_0x113b9f(0x1cc)]=_0x2cea90,this[_0x113b9f(0x2b2)]=_0x279b37,this[_0x113b9f(0x13e)]=_0x3148dd;}[_0x95d3a4(0x1b2)](_0x44d796){const _0xb3b3c4=_0x95d3a4;this[_0xb3b3c4(0x152)](_0x44d796);}[_0x95d3a4(0x337)](_0x347150){const _0xb2ef1f=_0x95d3a4,{unitID:_0x1b83af}=_0x347150,{collaboration:_0x23bae1}=this[_0xb2ef1f(0x13e)]['getStateCache'](_0x1b83af);if(_0x23bae1[_0xb2ef1f(0x32a)]===0x0)return _0x347150;let _0xf342bf=a[_0xb2ef1f(0x294)]['deepClone'](_0x347150[_0xb2ef1f(0x109)][0x0]);for(let _0x16b0e8=0x0;_0x16b0e8<_0x23bae1[_0xb2ef1f(0x32a)];_0x16b0e8++){const _0x3940b9={'id':_0xb2ef1f(0x191),'params':{'unitId':_0x23bae1[_0x16b0e8][_0xb2ef1f(0x279)],..._0x23bae1[_0x16b0e8]['redoState']}},_0x318bcf=this[_0xb2ef1f(0x2b2)][_0xb2ef1f(0x177)](_0xf342bf,_0x3940b9,!0x1);if(m[_0xb2ef1f(0x32e)](_0x318bcf))throw _0x318bcf[_0xb2ef1f(0x229)];_0xf342bf=_0x318bcf[_0xb2ef1f(0x318)];}return{...a[_0xb2ef1f(0x294)][_0xb2ef1f(0x329)](_0x347150),'mutations':[_0xf342bf]};}[_0x95d3a4(0x152)](_0x48afd5){const _0x3e03bc=_0x95d3a4,{unitID:_0x2ce90b}=_0x48afd5,{history:_0x58915d,collaboration:_0x44e154}=this[_0x3e03bc(0x13e)][_0x3e03bc(0x354)](_0x2ce90b);if(_0x58915d['length']===0x0&&_0x44e154[_0x3e03bc(0x32a)]===0x0)return;const _0x2796c2=[],_0x57d7a7=[];let _0x483567=a[_0x3e03bc(0x294)][_0x3e03bc(0x329)](_0x48afd5[_0x3e03bc(0x109)][0x0]),_0xaba656=a[_0x3e03bc(0x294)]['deepClone'](_0x48afd5[_0x3e03bc(0x109)][0x0]);for(let _0x56e47f=_0x58915d['length']-0x1;_0x56e47f>=0x0;_0x56e47f--){const _0x437804={'id':_0x3e03bc(0x191),'params':{'unitId':_0x58915d[_0x56e47f][_0x3e03bc(0x279)],..._0x58915d[_0x56e47f]['undoState']}},_0x59b0db={'id':_0x3e03bc(0x191),'params':{'unitId':_0x58915d[_0x56e47f]['unitId'],..._0x58915d[_0x56e47f][_0x3e03bc(0x1bd)]}},_0x213ff8=this[_0x3e03bc(0x2b2)]['transformMutation'](_0x483567,_0x437804,!0x1),_0x1c5602=this[_0x3e03bc(0x2b2)][_0x3e03bc(0x177)](_0xaba656,_0x59b0db,!0x1);if(m['isTransformMutationFailure'](_0x213ff8))throw _0x213ff8[_0x3e03bc(0x229)];if(m['isTransformMutationFailure'](_0x1c5602))throw _0x1c5602[_0x3e03bc(0x229)];_0x2796c2[_0x3e03bc(0x315)]({..._0x58915d[_0x56e47f],'undoState':_0x213ff8[_0x3e03bc(0x25a)]['params'],'redoState':_0x1c5602[_0x3e03bc(0x25a)][_0x3e03bc(0x326)]}),_0x483567=_0x213ff8[_0x3e03bc(0x318)],_0xaba656=_0x1c5602[_0x3e03bc(0x318)];}_0x483567=a['Tools'][_0x3e03bc(0x329)](_0x48afd5[_0x3e03bc(0x109)][0x0]),_0xaba656=a['Tools'][_0x3e03bc(0x329)](_0x48afd5[_0x3e03bc(0x109)][0x0]);for(let _0x4cf3c6=_0x44e154[_0x3e03bc(0x32a)]-0x1;_0x4cf3c6>=0x0;_0x4cf3c6--){const _0x4874e8={'id':_0x3e03bc(0x191),'params':{'unitId':_0x44e154[_0x4cf3c6]['unitId'],..._0x44e154[_0x4cf3c6][_0x3e03bc(0x352)]}},_0x1d0110={'id':_0x3e03bc(0x191),'params':{'unitId':_0x44e154[_0x4cf3c6][_0x3e03bc(0x279)],..._0x44e154[_0x4cf3c6][_0x3e03bc(0x1bd)]}},_0x396dd8=this['_transformService']['transformMutation'](_0x483567,_0x4874e8,!0x1),_0x4c27ec=this['_transformService'][_0x3e03bc(0x177)](_0xaba656,_0x1d0110,!0x1);if(m[_0x3e03bc(0x32e)](_0x396dd8))throw _0x396dd8['error'];if(m[_0x3e03bc(0x32e)](_0x4c27ec))throw _0x4c27ec[_0x3e03bc(0x229)];_0x57d7a7[_0x3e03bc(0x315)]({..._0x44e154[_0x4cf3c6],'undoState':_0x396dd8[_0x3e03bc(0x25a)][_0x3e03bc(0x326)],'redoState':_0x4c27ec[_0x3e03bc(0x25a)]['params']}),_0x483567=_0x396dd8[_0x3e03bc(0x318)],_0xaba656=_0x4c27ec[_0x3e03bc(0x318)];}this[_0x3e03bc(0x13e)][_0x3e03bc(0x197)](_0x2ce90b,{'history':_0x2796c2,'collaboration':_0x57d7a7});}};J=Ht([le(0x0,a['Inject'](a[_0x95d3a4(0x227)])),le(0x1,m[_0x95d3a4(0x33c)]),le(0x2,a['Inject'](E[_0x95d3a4(0x287)]))],J);var Yt=Object[_0x95d3a4(0x13c)],Wt=(_0x5486f8,_0x5509a2,_0x55784f,_0x1ae399)=>{const _0x3f1375=_0x95d3a4;for(var _0x469e84=_0x1ae399>0x1?void 0x0:_0x1ae399?Yt(_0x5509a2,_0x55784f):_0x5509a2,_0x4dc377=_0x5486f8[_0x3f1375(0x32a)]-0x1,_0x30b0be;_0x4dc377>=0x0;_0x4dc377--)(_0x30b0be=_0x5486f8[_0x4dc377])&&(_0x469e84=_0x30b0be(_0x469e84)||_0x469e84);return _0x469e84;},Ne=(_0x11c427,_0x34f9d2)=>(_0x22e0bb,_0x28a847)=>_0x34f9d2(_0x22e0bb,_0x28a847,_0x11c427);let Z=class{constructor(_0x49fdea,_0x42d16e){const _0x4bab82=_0x95d3a4;this['_injector']=_0x49fdea,this[_0x4bab82(0x2b2)]=_0x42d16e;}[_0x95d3a4(0x15d)](_0x5e5003){const _0x5e8064=_0x95d3a4;var _0x29c174;const _0x1c7804=this[_0x5e8064(0x1cc)][_0x5e8064(0x150)](Y[_0x5e8064(0x2eb)]),_0x59b2fe=(_0x29c174=_0x1c7804['getDocRanges']())!=null?_0x29c174:[];if(_0x59b2fe['length']===0x0)return;const _0x3cef86=_0x5e5003[_0x5e8064(0x238)],_0x4d4e87=[{'id':_0x5e8064(0x191),'params':{'unitId':_0x3cef86,'actions':null,'textRanges':_0x59b2fe}}],_0x22cbf2=this[_0x5e8064(0x2b2)][_0x5e8064(0x25e)](_0x5e5003,_0x4d4e87);if(!m[_0x5e8064(0x10e)](_0x22cbf2))throw _0x22cbf2[_0x5e8064(0x229)];const _0x182fb7=_0x22cbf2['m2Prime'][0x0][_0x5e8064(0x326)][_0x5e8064(0x1d4)];Array[_0x5e8064(0x25b)](_0x182fb7)&&_0x182fb7[_0x5e8064(0x32a)]&&_0x1c7804[_0x5e8064(0x24c)](_0x182fb7,{'unitId':_0x3cef86,'subUnitId':_0x3cef86},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0x95d3a4(0x227)])),Ne(0x1,m[_0x95d3a4(0x33c)])],Z);var Vt=Object[_0x95d3a4(0x13c)],Xt=(_0x232990,_0x43aa0c,_0x18c374,_0x34e3fe)=>{const _0x182f24=_0x95d3a4;for(var _0x5e7df8=_0x34e3fe>0x1?void 0x0:_0x34e3fe?Vt(_0x43aa0c,_0x18c374):_0x43aa0c,_0x3178a8=_0x232990[_0x182f24(0x32a)]-0x1,_0x5f2a4e;_0x3178a8>=0x0;_0x3178a8--)(_0x5f2a4e=_0x232990[_0x3178a8])&&(_0x5e7df8=_0x5f2a4e(_0x5e7df8)||_0x5e7df8);return _0x5e7df8;},N=(_0x5db78f,_0x3f5f9b)=>(_0xd2f028,_0x1a5ef0)=>_0x3f5f9b(_0xd2f028,_0x1a5ef0,_0x5db78f);let Q=class extends a[_0x95d3a4(0x350)]{constructor(_0x1f3a37,_0x2b45cc,_0x8bb71e,_0x2b2a77,_0x407659,_0x3c90ae,_0xccbe7a,_0x358671){const _0x790df6=_0x95d3a4;super(),h(this,_0x790df6(0x269),new d[(_0x790df6(0x257))](u['CollaborationStatus'][_0x790df6(0x2ff)])),(this[_0x790df6(0x13e)]=_0x1f3a37,this[_0x790df6(0x211)]=_0x2b45cc,this[_0x790df6(0x2b0)]=_0x8bb71e,this[_0x790df6(0x1ca)]=_0x2b2a77,this['_docTransformSelectionsService']=_0x407659,this[_0x790df6(0x270)]=_0x3c90ae,this[_0x790df6(0x1d9)]=_0xccbe7a,this[_0x790df6(0x232)]=_0x358671,this[_0x790df6(0x33d)]());}[_0x95d3a4(0x33d)](){const _0x36be3f=_0x95d3a4;this[_0x36be3f(0x306)](this[_0x36be3f(0x211)][_0x36be3f(0x32c)][_0x36be3f(0x311)](_0x5bdf34=>{const _0x10a805=_0x36be3f,_0x26ad8c=this['_docStateChangeManagerService']['docStateChange$'][_0x10a805(0x311)](_0x546eea=>{const _0x2e6241=_0x10a805;if(_0x546eea==null)return;const {unitId:_0x3b1a07,redoState:_0x4fea3a,commandId:_0x2096c1}=_0x546eea;if(_0x3b1a07!==_0x5bdf34[_0x2e6241(0x238)])return;const _0x3db964={'id':_0x2096c1,'type':a[_0x2e6241(0xee)][_0x2e6241(0x16c)],'params':{'unitId':_0x3b1a07,'actions':_0x4fea3a['actions'],'textRanges':null}};_0x5bdf34['onLocalMutation'](_0x3db964);});if(_0x5bdf34[_0x10a805(0x306)](_0x26ad8c),_0x5bdf34 instanceof u[_0x10a805(0x2d5)]){const _0x45caad={'onTransformIME':_0x4b8637=>this[_0x10a805(0x2b0)][_0x10a805(0x2a2)](_0x4b8637),'onTransformState':_0x513739=>this[_0x10a805(0x1ca)][_0x10a805(0x1b2)](_0x513739),'onTransformSelections':_0x532409=>this['_docTransformSelectionsService'][_0x10a805(0x15d)](_0x532409),'onSyncEditingCollabCursor':_0x29b944=>this['_docSyncEditingCollabCursorService'][_0x10a805(0x2e2)](_0x29b944),'onTransformRemoteChangesetByIMECache':_0x31bcad=>this[_0x10a805(0x2b0)][_0x10a805(0x337)](_0x31bcad),'onTransformRemoteChangesetByStateCache':_0xd9ff77=>this[_0x10a805(0x1ca)]['transformRemoteChangeset'](_0xd9ff77)};_0x5bdf34['addHandlerCallback'](_0x45caad);}}));}};Q=Xt([N(0x0,a[_0x95d3a4(0x22c)](E['DocStateChangeManagerService'])),N(0x1,a[_0x95d3a4(0x22c)](u[_0x95d3a4(0x11a)])),N(0x2,a[_0x95d3a4(0x22c)](z)),N(0x3,a['Inject'](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x95d3a4(0x22c)](Ce)),N(0x6,O[_0x95d3a4(0x21f)]),N(0x7,a['Inject'](a[_0x95d3a4(0x303)]))],Q);var Gt=Object[_0x95d3a4(0x13c)],Kt=(_0x2603ba,_0x24cc78,_0x4f425b,_0x3a33ae)=>{const _0x21fb2=_0x95d3a4;for(var _0x5064aa=_0x3a33ae>0x1?void 0x0:_0x3a33ae?Gt(_0x24cc78,_0x4f425b):_0x24cc78,_0x5cc06f=_0x2603ba[_0x21fb2(0x32a)]-0x1,_0x3c133e;_0x5cc06f>=0x0;_0x5cc06f--)(_0x3c133e=_0x2603ba[_0x5cc06f])&&(_0x5064aa=_0x3c133e(_0x5064aa)||_0x5064aa);return _0x5064aa;},_e=(_0x321b75,_0x313817)=>(_0x208c82,_0x1dacde)=>_0x313817(_0x208c82,_0x1dacde,_0x321b75);let ge=class extends a[_0x95d3a4(0x350)]{constructor(_0x79b81c,_0x372b37,_0x47ead4){const _0x1e9e25=_0x95d3a4;super(),h(this,'_cachedData',new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x1e9e25(0x133),!0x1),(this['_configService']=_0x79b81c,this[_0x1e9e25(0x15e)]=_0x372b37,this['_revisionService']=_0x47ead4);}[_0x95d3a4(0x340)](){this['_disabled']=!0x0;}[_0x95d3a4(0x300)](){this['_disabled']=!0x1;}get[_0x95d3a4(0x17f)](){const _0x188c00=_0x95d3a4;return this[_0x188c00(0x12c)];}[_0x95d3a4(0x140)](){const _0x16b8f8=_0x95d3a4;this[_0x16b8f8(0x30c)]()[_0x16b8f8(0x118)](()=>super[_0x16b8f8(0x140)]());}async[_0x95d3a4(0x262)](_0x4235f7){const _0x55895c=_0x95d3a4;return this[_0x55895c(0x133)]?null:this[_0x55895c(0x15e)]['getItem'](u[_0x55895c(0x347)](_0x4235f7));}async[_0x95d3a4(0xfb)](_0x2b0c9c,_0x10aa99){const _0x322770=_0x95d3a4;return!!this[_0x322770(0x15e)][_0x322770(0x2ce)](_0x2b0c9c,_0x10aa99);}[_0x95d3a4(0x31c)](_0x4632f4,_0x258268,_0x37ee13,_0x48fe90){const _0x17ffa2=_0x95d3a4,_0x19bce3=this[_0x17ffa2(0x1fb)][_0x17ffa2(0x2bb)](_0x4632f4);this[_0x17ffa2(0x34f)][_0x17ffa2(0x12a)](_0x4632f4,{'unitID':_0x4632f4,'type':_0x258268,'awaitingChangeset':_0x37ee13,'mutations':_0x48fe90,'rev':_0x19bce3}),this[_0x17ffa2(0x12c)]['has'](_0x4632f4)||this['_scheduleSaving'](_0x4632f4);}[_0x95d3a4(0x100)](_0x5a0a19){const _0x3f13fc=_0x95d3a4,_0x4fe364=this['_getSaveTimeout']();_0x4fe364===0x0?this[_0x3f13fc(0x16d)](_0x5a0a19):this[_0x3f13fc(0x12c)][_0x3f13fc(0x12a)](_0x5a0a19,setTimeout(()=>this[_0x3f13fc(0x16d)](_0x5a0a19),_0x4fe364));}[_0x95d3a4(0x344)](){const _0x4ba9ea=_0x95d3a4;var _0x3c0788;return(_0x3c0788=this[_0x4ba9ea(0x1c8)][_0x4ba9ea(0x233)](u[_0x4ba9ea(0x2a0)]))!=null?_0x3c0788:u[_0x4ba9ea(0x274)];}[_0x95d3a4(0x16d)](_0x2ad36d){const _0x20128b=_0x95d3a4,_0x54a508=this[_0x20128b(0x12c)][_0x20128b(0x150)](_0x2ad36d);return _0x54a508!==void 0x0&&window[_0x20128b(0x1ff)](_0x54a508),this[_0x20128b(0x15e)]['setItem'](u[_0x20128b(0x347)](_0x2ad36d),this[_0x20128b(0x34f)][_0x20128b(0x150)](_0x2ad36d))[_0x20128b(0x118)](()=>this[_0x20128b(0x12c)][_0x20128b(0x2ad)](_0x2ad36d));}async[_0x95d3a4(0x30c)](){const _0x4257ce=_0x95d3a4,_0x4554af=[];this[_0x4257ce(0x12c)][_0x4257ce(0x1ce)]((_0x4205dc,_0x1cf163)=>{const _0x28680a=_0x4257ce;window[_0x28680a(0x1ff)](_0x4205dc),_0x4554af['push'](this[_0x28680a(0x16d)](_0x1cf163)[_0x28680a(0x118)](()=>{const _0x535b44=_0x28680a;this[_0x535b44(0x12c)][_0x535b44(0x2ad)](_0x1cf163);}));}),await Promise['all'](_0x4554af);}};ge=Kt([_e(0x0,a[_0x95d3a4(0x267)]),_e(0x1,a[_0x95d3a4(0x273)]),_e(0x2,a[_0x95d3a4(0x22c)](m[_0x95d3a4(0x28e)]))],ge);class Be extends a[_0x95d3a4(0x1d5)]{constructor(){const _0x420952=_0x95d3a4;super(),h(this,_0x420952(0x1f7)),this['urlChange$']=d[_0x420952(0x2ec)](window,_0x420952(0x148))[_0x420952(0x243)](d['takeUntil'](this[_0x420952(0x24b)]),d[_0x420952(0xea)](0x1),d['mapTo'](void 0x0));}[_0x95d3a4(0x266)](_0x15c3a7,_0x11ee56,_0x4adc85=!0x1){const _0x2d08fb=_0x95d3a4,_0x39ea47=new URL(window[_0x2d08fb(0x34a)][_0x2d08fb(0x1d0)]);_0x39ea47['searchParams'][_0x2d08fb(0x12a)](_0x15c3a7,_0x11ee56),_0x4adc85?window[_0x2d08fb(0x297)][_0x2d08fb(0x215)]('','',_0x39ea47[_0x2d08fb(0x30e)]()):window[_0x2d08fb(0x297)][_0x2d08fb(0x1fc)]('','',_0x39ea47[_0x2d08fb(0x30e)]());}[_0x95d3a4(0x2f6)](_0x3a5784,_0x117870=!0x1){const _0xd82beb=_0x95d3a4,_0x517fac=new URL(window[_0xd82beb(0x34a)][_0xd82beb(0x1d0)]);_0x517fac[_0xd82beb(0x23e)]['delete'](_0x3a5784),_0x117870?window['history'][_0xd82beb(0x215)]('','',_0x517fac[_0xd82beb(0x30e)]()):window['history']['pushState']('','',_0x517fac[_0xd82beb(0x30e)]());}[_0x95d3a4(0x1b9)](_0x2eb8dc){const _0x28005a=_0x95d3a4;var _0x9709a7;return(_0x9709a7=new URL(window[_0x28005a(0x34a)][_0x28005a(0x1d0)])[_0x28005a(0x23e)][_0x28005a(0x150)](_0x2eb8dc))!=null?_0x9709a7:void 0x0;}}var qt=Object[_0x95d3a4(0x1f2)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x201f94,_0x51ceff,_0x5cd6cf)=>_0x51ceff in _0x201f94?qt(_0x201f94,_0x51ceff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5cd6cf}):_0x201f94[_0x51ceff]=_0x5cd6cf,Zt=(_0x454256,_0x316b3f,_0xb4582a,_0x3ab0a9)=>{const _0x2757c=_0x95d3a4;for(var _0xa774f2=_0x3ab0a9>0x1?void 0x0:_0x3ab0a9?zt(_0x316b3f,_0xb4582a):_0x316b3f,_0x5be655=_0x454256[_0x2757c(0x32a)]-0x1,_0x3a1595;_0x5be655>=0x0;_0x5be655--)(_0x3a1595=_0x454256[_0x5be655])&&(_0xa774f2=_0x3a1595(_0xa774f2)||_0xa774f2);return _0xa774f2;},he=(_0x2a8d80,_0x1db635)=>(_0x237c34,_0x31e93b)=>_0x1db635(_0x237c34,_0x31e93b,_0x2a8d80),Qt=(_0x131a59,_0x36a8a9,_0x38879f)=>Jt(_0x131a59,_0x36a8a9+'',_0x38879f);const es=_0x95d3a4(0x308);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x46e3d1=Ue,_0x4c7344,_0x14a8a7,_0x2c7886){const _0x2e5138=_0x95d3a4;super(),this['_config']=_0x46e3d1,this[_0x2e5138(0x2e5)]=_0x4c7344,this[_0x2e5138(0x1cc)]=_0x14a8a7,this['_configService']=_0x2c7886;const {..._0x36e3cc}=a[_0x2e5138(0x30a)]({},Ue,this[_0x2e5138(0x2e6)]);this[_0x2e5138(0x1c8)]['setConfig']($t,_0x36e3cc);}[_0x95d3a4(0x220)](){const _0x7d338b=_0x95d3a4;this[_0x7d338b(0x1ab)](),this['_initDependencies']();}[_0x95d3a4(0x2c7)](){this['_registerRenderDependencies']();}[_0x95d3a4(0x1ab)](){const _0x455470=_0x95d3a4;var _0x3ee08e;const _0x561df5=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x455470(0x2a6)],{'useClass':G['WebSocketService']}],[u[_0x455470(0xe8)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x455470(0x1b6)]]];a[_0x455470(0x200)](this[_0x455470(0x1cc)],a[_0x455470(0x2f5)](_0x561df5,(_0x3ee08e=this[_0x455470(0x2e6)])==null?void 0x0:_0x3ee08e[_0x455470(0x33b)]));}['_registerRenderDependencies'](){const _0x1602e2=_0x95d3a4;this[_0x1602e2(0x306)](this[_0x1602e2(0x2e5)]['registerRenderModule'](a[_0x1602e2(0x194)][_0x1602e2(0x32b)],[fe])),this['disposeWithMe'](this[_0x1602e2(0x2e5)]['registerRenderModule'](a[_0x1602e2(0x194)][_0x1602e2(0x343)],[ve]));}[_0x95d3a4(0xe5)](){const _0x40ba1a=_0x95d3a4;a[_0x40ba1a(0x16e)](this['_injector'],[[x],[exports[_0x40ba1a(0x26f)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x95d3a4(0x27c)],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x95d3a4(0x164)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x95d3a4(0x2fc)]),he(0x2,a[_0x95d3a4(0x22c)](a[_0x95d3a4(0x227)])),he(0x3,a[_0x95d3a4(0x267)])],exports[_0x95d3a4(0x27c)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x39a6e9,_0x4e2d3f,_0x5f216e,_0x5073ac)=>{const _0x160839=_0x95d3a4;for(var _0x42a4a9=_0x5073ac>0x1?void 0x0:_0x5073ac?ts(_0x4e2d3f,_0x5f216e):_0x4e2d3f,_0x3a7a1e=_0x39a6e9[_0x160839(0x32a)]-0x1,_0x38db50;_0x3a7a1e>=0x0;_0x3a7a1e--)(_0x38db50=_0x39a6e9[_0x3a7a1e])&&(_0x42a4a9=_0x38db50(_0x42a4a9)||_0x42a4a9);return _0x42a4a9;},H=(_0x53044b,_0x5c984e)=>(_0x19b253,_0x40de75)=>_0x5c984e(_0x19b253,_0x40de75,_0x53044b);exports[_0x95d3a4(0xec)]=class extends u['CollaborationSocketService']{constructor(_0x1d297b,_0x44f18a,_0x3dcaf6,_0x30ec3f,_0x317629){super(_0x1d297b,_0x44f18a,_0x3dcaf6,_0x30ec3f,_0x317629);}async[_0x95d3a4(0x2b3)](_0x32ec10){const _0x18a702=_0x95d3a4,_0x53f75a=await this[_0x18a702(0x2e0)](),_0x24567c=this[_0x18a702(0x122)](_0x32ec10,_0x53f75a);return this[_0x18a702(0x2c2)](_0x24567c);}['_createSocketURL'](_0x4f971d,_0x375394){const _0xde460f=_0x95d3a4,_0x433a48=typeof window>'u'?new URL(_0x4f971d):new URL(_0x4f971d,window[_0xde460f(0x34a)][_0xde460f(0x21e)]);_0x433a48[_0xde460f(0x23e)]['set'](_0xde460f(0x264),_0x375394);const _0x2fa1a9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x2fa1a9[_0xde460f(0x150)](_0xde460f(0x20c))&&_0x433a48[_0xde460f(0x23e)][_0xde460f(0x12a)](_0xde460f(0x20c),_0x2fa1a9[_0xde460f(0x150)](_0xde460f(0x20c))),_0x433a48['toString']();}async[_0x95d3a4(0x2e0)](){const _0xf5e9be=_0x95d3a4;var _0x39a03c,_0xc52730,_0x1b9019;const _0x4254cb=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x12c7da=(_0x39a03c=_0x4254cb==null?void 0x0:_0x4254cb[_0xf5e9be(0x246)])!=null?_0x39a03c:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x1b9019=(_0xc52730=(await this['_httpService']['get'](_0x12c7da,{'headers':{'Content-Type':_0xf5e9be(0x16f)}}))[_0xf5e9be(0x28b)])==null?void 0x0:_0xc52730['ticket'])!=null?_0x1b9019:'';}},exports[_0x95d3a4(0xec)]=ss([H(0x0,a['Inject'](a[_0x95d3a4(0x227)])),H(0x1,a['Inject'](G['HTTPService'])),H(0x2,a[_0x95d3a4(0x267)]),H(0x3,a[_0x95d3a4(0x2cd)]),H(0x4,m[_0x95d3a4(0x304)])],exports[_0x95d3a4(0xec)]);const Me=0x7530,Le=_0x95d3a4(0x2aa);class is extends a[_0x95d3a4(0x350)]{constructor(){const _0x235362=_0x95d3a4;super(),h(this,_0x235362(0xe9),a[_0x235362(0x313)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x235362(0x1e2),new Map()),h(this,_0x235362(0x20a),null),h(this,_0x235362(0x30b),new Map()),h(this,_0x235362(0x2d2),new Map()),this[_0x235362(0x27e)]();}[_0x95d3a4(0x140)](){const _0x477531=_0x95d3a4;super[_0x477531(0x140)](),this[_0x477531(0x30b)]['forEach']((_0x35afd9,_0x2ab5f7)=>this[_0x477531(0x113)](_0x2ab5f7)),this['_heartbeatTimer']&&window[_0x477531(0x2dc)](this['_heartbeatTimer']);}[_0x95d3a4(0x207)](_0x960f20){const _0x40605a=_0x95d3a4;return this[_0x40605a(0x103)](_0x960f20)[_0x40605a(0x243)](d[_0x40605a(0x284)]());}['editingUnit'](_0x3c531d){const _0x16de30=_0x95d3a4;this[_0x16de30(0x250)][_0x16de30(0x31d)]===0x0&&this[_0x16de30(0x2ea)](),this[_0x16de30(0x250)][_0x16de30(0x1b3)](_0x3c531d),this[_0x16de30(0x120)]({'type':0x0,'memberID':this[_0x16de30(0xe9)],'unitIDs':[_0x3c531d],'isForwarded':!0x1});}[_0x95d3a4(0xe7)](_0x4c7c15){const _0x5707c1=_0x95d3a4;this['_selfUnitIDs'][_0x5707c1(0x2ad)](_0x4c7c15),this['_selfUnitIDs'][_0x5707c1(0x31d)]===0x0&&this[_0x5707c1(0x20a)]&&window[_0x5707c1(0x2dc)](this[_0x5707c1(0x20a)]);}['_init'](){const _0x4c9d62=_0x95d3a4;this[_0x4c9d62(0x306)](a[_0x4c9d62(0x2e1)](d[_0x4c9d62(0x2ec)](window,'storage')[_0x4c9d62(0x311)](_0x253040=>{const _0x595d1a=_0x4c9d62;if(_0x253040[_0x595d1a(0x222)]!==Le||!_0x253040[_0x595d1a(0x22b)])return;const _0x46d099=JSON[_0x595d1a(0x281)](_0x253040[_0x595d1a(0x22b)]);this[_0x595d1a(0x193)](_0x46d099);}))),window[_0x4c9d62(0x338)](_0x4c9d62(0x259),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4c9d62(0x2ca)](this[_0x4c9d62(0x250)])}));}[_0x95d3a4(0x193)](_0x4b7378){const _0x58f4ce=_0x95d3a4;switch(_0x4b7378[_0x58f4ce(0x183)]){case 0x0:this[_0x58f4ce(0x2f7)](_0x4b7378);break;case 0x1:this['_handleLeaveEvent'](_0x4b7378);break;case 0x2:this['_handleHeartbeatEvent'](_0x4b7378);break;}}[_0x95d3a4(0x2f7)](_0x414f8c){const _0x47cd12=_0x95d3a4,{unitIDs:_0x1f1480,memberID:_0x1c33fb,isForwarded:_0x51e607}=_0x414f8c;_0x1f1480[_0x47cd12(0x1ce)](_0x2b044c=>{const _0x18969f=_0x47cd12;if(!_0x51e607&&this[_0x18969f(0x1e2)][_0x18969f(0x28c)](_0x2b044c)&&this[_0x18969f(0x103)](_0x2b044c)[_0x18969f(0x1e5)](u[_0x18969f(0x24d)][_0x18969f(0x253)]),!this['_unitOnClients'][_0x18969f(0x28c)](_0x2b044c)||!this['_unitOnClients'][_0x18969f(0x150)](_0x2b044c)[_0x18969f(0x28c)](_0x1c33fb)){const _0x546e26=this[_0x18969f(0x1e2)]['get'](_0x2b044c)||new Set();_0x546e26['add'](_0x1c33fb),this[_0x18969f(0x1e2)][_0x18969f(0x12a)](_0x2b044c,_0x546e26),this[_0x18969f(0x1bb)](_0x1c33fb);}}),_0x51e607||this[_0x47cd12(0x120)]({'type':0x0,'memberID':this[_0x47cd12(0xe9)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x95d3a4(0x1bb)](_0x48b7f0){const _0x1a95e4=_0x95d3a4;this[_0x1a95e4(0x113)](_0x48b7f0);const _0xca9395=window[_0x1a95e4(0x15c)](()=>{const _0x125a91=_0x1a95e4;this[_0x125a91(0x1e2)][_0x125a91(0x1ce)](_0x34a4ed=>{_0x34a4ed['delete'](_0x48b7f0);});},Me*0x2);this[_0x1a95e4(0x30b)]['set'](_0x48b7f0,_0xca9395);}[_0x95d3a4(0x113)](_0x258184){const _0xe5ffd1=_0x95d3a4;if(this[_0xe5ffd1(0x30b)][_0xe5ffd1(0x28c)](_0x258184)){const _0x3c6f66=this[_0xe5ffd1(0x30b)][_0xe5ffd1(0x150)](_0x258184);_0x3c6f66&&window[_0xe5ffd1(0x1ff)](_0x3c6f66),this[_0xe5ffd1(0x30b)]['set'](_0x258184,null);}}['_handleLeaveEvent'](_0x9e498c){const _0x43fc71=_0x95d3a4,{memberID:_0x578c8c,unitIDs:_0xb41a25}=_0x9e498c;_0xb41a25[_0x43fc71(0x1ce)](_0x1b0316=>{const _0x232ed0=_0x43fc71;var _0x366dd8;const _0x1f56bb=this[_0x232ed0(0x1e2)][_0x232ed0(0x150)](_0x1b0316);_0x1f56bb&&(_0x1f56bb[_0x232ed0(0x2ad)](_0x578c8c),(_0x366dd8=this[_0x232ed0(0x103)](_0x1b0316))==null||_0x366dd8['next'](_0x1f56bb[_0x232ed0(0x31d)]===0x0?u[_0x232ed0(0x24d)][_0x232ed0(0x10b)]:u[_0x232ed0(0x24d)]['OTHER_CLIENTS_EDITING']));}),this[_0x43fc71(0x113)](_0x578c8c);}['_handleHeartbeatEvent'](_0x2653bd){const _0x122fff=_0x95d3a4;this[_0x122fff(0x1bb)](_0x2653bd[_0x122fff(0x348)]);}['_send'](_0x231d22){const _0x130fd5=_0x95d3a4;localStorage['setItem'](Le,JSON[_0x130fd5(0x1d1)](_0x231d22));}['_scheduleHeartbeat'](){const _0x588275=_0x95d3a4;this[_0x588275(0x20a)]=window[_0x588275(0x26d)](()=>{const _0x265971=_0x588275;this[_0x265971(0x120)]({'type':0x2,'memberID':this[_0x265971(0xe9)]});},Me);}[_0x95d3a4(0x103)](_0x27808d){const _0x8eda90=_0x95d3a4;return this[_0x8eda90(0x2d2)][_0x8eda90(0x28c)](_0x27808d)||this[_0x8eda90(0x2d2)][_0x8eda90(0x12a)](_0x27808d,new d[(_0x8eda90(0x257))](u[_0x8eda90(0x24d)][_0x8eda90(0x10b)])),this[_0x8eda90(0x2d2)][_0x8eda90(0x150)](_0x27808d);}}var je=(_0x2db22a=>(_0x2db22a[_0x2db22a[_0x95d3a4(0x2d4)]=0x0]=_0x95d3a4(0x2d4),_0x2db22a[_0x2db22a['OK']=0x1]='OK',_0x2db22a[_0x2db22a['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x2db22a[_0x2db22a[_0x95d3a4(0x19b)]=0x3]=_0x95d3a4(0x19b),_0x2db22a[_0x2db22a[_0x95d3a4(0x24f)]=0x4]='NOT_FOUND',_0x2db22a[_0x2db22a['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x2db22a[_0x2db22a['ALREADY_EXISTS']=0x6]=_0x95d3a4(0x2ac),_0x2db22a[_0x2db22a[_0x95d3a4(0xfe)]=0x7]=_0x95d3a4(0xfe),_0x2db22a[_0x2db22a[_0x95d3a4(0x13b)]=0x8]=_0x95d3a4(0x13b),_0x2db22a[_0x2db22a[_0x95d3a4(0x20b)]=0x9]=_0x95d3a4(0x20b),_0x2db22a[_0x2db22a[_0x95d3a4(0x2c0)]=0xa]='LOGIN_FAILED',_0x2db22a[_0x2db22a['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2db22a[_0x2db22a[_0x95d3a4(0x128)]=0xc]=_0x95d3a4(0x128),_0x2db22a[_0x2db22a['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x95d3a4(0xfc),_0x2db22a[_0x2db22a['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x95d3a4(0x30f),_0x2db22a[_0x2db22a[_0x95d3a4(0x1c6)]=0x1389]=_0x95d3a4(0x1c6),_0x2db22a[_0x2db22a[_0x95d3a4(0x275)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2db22a[_0x2db22a[_0x95d3a4(0x20d)]=0x1772]=_0x95d3a4(0x20d),_0x2db22a[_0x2db22a[_0x95d3a4(0x176)]=0x1773]=_0x95d3a4(0x176),_0x2db22a[_0x2db22a['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x2db22a[_0x2db22a[_0x95d3a4(0x14d)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2db22a[_0x2db22a[_0x95d3a4(0x307)]=0x1b5b]=_0x95d3a4(0x307),_0x2db22a[_0x2db22a[_0x95d3a4(0x1c9)]=0x1b5c]=_0x95d3a4(0x1c9),_0x2db22a[_0x2db22a[_0x95d3a4(0x1a6)]=0x1b5d]='APPLY_DUPLICATED',_0x2db22a[_0x2db22a[_0x95d3a4(0x123)]=0x1f41]=_0x95d3a4(0x123),_0x2db22a[_0x2db22a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2db22a[_0x2db22a[_0x95d3a4(0x31a)]=0x232a]=_0x95d3a4(0x31a),_0x2db22a[_0x2db22a[_0x95d3a4(0x240)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2db22a[_0x2db22a[_0x95d3a4(0x310)]=0x232c]=_0x95d3a4(0x310),_0x2db22a[_0x2db22a[_0x95d3a4(0x1e3)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x2db22a[_0x2db22a[_0x95d3a4(0x19c)]=0x2711]=_0x95d3a4(0x19c),_0x2db22a[_0x2db22a[_0x95d3a4(0x20e)]=0x2712]=_0x95d3a4(0x20e),_0x2db22a[_0x2db22a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x95d3a4(0x22a),_0x2db22a[_0x2db22a[_0x95d3a4(0x182)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2db22a[_0x2db22a[_0x95d3a4(0x12e)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x2db22a[_0x2db22a[_0x95d3a4(0xe3)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x2db22a[_0x2db22a[_0x95d3a4(0x328)]=0x271c]=_0x95d3a4(0x328),_0x2db22a[_0x2db22a['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x95d3a4(0x1aa),_0x2db22a[_0x2db22a[_0x95d3a4(0x2d1)]=0x271e]=_0x95d3a4(0x2d1),_0x2db22a[_0x2db22a['YUUMI_AI_RUN_FAILED']=0x271f]=_0x95d3a4(0x351),_0x2db22a[_0x2db22a['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x95d3a4(0x2b5),_0x2db22a[_0x2db22a[_0x95d3a4(0x24e)]=0x2af9]=_0x95d3a4(0x24e),_0x2db22a[_0x2db22a[_0x95d3a4(0x11d)]=0x2ee1]=_0x95d3a4(0x11d),_0x2db22a[_0x2db22a[_0x95d3a4(0x17c)]=0x2ee2]=_0x95d3a4(0x17c),_0x2db22a[_0x2db22a['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x2db22a[_0x2db22a[_0x95d3a4(0x18c)]=0x2ee4]=_0x95d3a4(0x18c),_0x2db22a[_0x2db22a['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x95d3a4(0x10a),_0x2db22a[_0x2db22a[_0x95d3a4(0x2f3)]=0x32c9]=_0x95d3a4(0x2f3),_0x2db22a[_0x2db22a[_0x95d3a4(0x1e9)]=0x32ca]=_0x95d3a4(0x1e9),_0x2db22a[_0x2db22a[_0x95d3a4(0x19f)]=0x32cb]=_0x95d3a4(0x19f),_0x2db22a[_0x2db22a[_0x95d3a4(0xed)]=-0x1]='UNRECOGNIZED',_0x2db22a))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x1cf678,_0x589c94,_0x4af63d,_0x27c290)=>{for(var _0x3596f6=_0x27c290>0x1?void 0x0:_0x27c290?ns(_0x589c94,_0x4af63d):_0x589c94,_0x33bbb4=_0x1cf678['length']-0x1,_0x592ff7;_0x33bbb4>=0x0;_0x33bbb4--)(_0x592ff7=_0x1cf678[_0x33bbb4])&&(_0x3596f6=_0x592ff7(_0x3596f6)||_0x3596f6);return _0x3596f6;},ue=(_0x31a516,_0x596138)=>(_0x1a4a97,_0x4215b2)=>_0x596138(_0x1a4a97,_0x4215b2,_0x31a516);exports['RemoteUniscriptService']=class extends a[_0x95d3a4(0x350)]{constructor(_0x1a2427,_0x1b442d,_0x56744f){const _0x5313cc=_0x95d3a4;super(),this['_instanceService']=_0x1a2427,this[_0x5313cc(0x31b)]=_0x1b442d,this[_0x5313cc(0x1c8)]=_0x56744f;}async['runOnServer'](_0x2b0731,_0x5adce7,_0x4ea73e,..._0x1ed475){const _0x38133f=_0x95d3a4;var _0x158c4e,_0x782cd4,_0x218458,_0x454728;const _0x64b6b7=this[_0x38133f(0x181)]['getFocusedUnit']();if(!_0x64b6b7)throw new Error(_0x38133f(0x203));const _0x5a5ca6=((_0x158c4e=this[_0x38133f(0x1c8)]['getConfig'](u[_0x38133f(0x11b)]))!=null?_0x158c4e:u[_0x38133f(0x34d)])+'/'+_0x2b0731+_0x38133f(0xef)+_0x5adce7,_0x34b63b=new URL(window[_0x38133f(0x34a)][_0x38133f(0x1d0)]),_0x53643e={'scriptId':_0x2b0731,'runId':(_0x782cd4=_0x34b63b[_0x38133f(0x23e)]['get'](_0x38133f(0x20c)))!=null?_0x782cd4:'','function':_0x5adce7,'unitId':_0x64b6b7['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x1ed475),'invokeId':(_0x218458=_0x4ea73e[_0x38133f(0x247)])!=null?_0x218458:'','executionId':(_0x454728=_0x4ea73e['executionId'])!=null?_0x454728:''};try{const _0x47cad3=await this[_0x38133f(0x31b)][_0x38133f(0x175)](_0x5a5ca6,{'body':_0x53643e});return _0x47cad3[_0x38133f(0x28b)][_0x38133f(0x229)]&&_0x47cad3[_0x38133f(0x28b)][_0x38133f(0x229)][_0x38133f(0x314)]!==je['OK']?_0x38133f(0x283):_0x47cad3[_0x38133f(0x28b)]['result'];}catch{return _0x38133f(0x283);}}},exports[_0x95d3a4(0x23c)]=rs([ue(0x0,a[_0x95d3a4(0x256)]),ue(0x1,a['Inject'](G[_0x95d3a4(0x134)])),ue(0x2,a[_0x95d3a4(0x267)])],exports[_0x95d3a4(0x23c)]),exports[_0x95d3a4(0x151)]=xe,exports['IURLService']=Ee,exports['SheetCollabCursorShape']=we,exports[_0x95d3a4(0x22e)]=is,exports[_0x95d3a4(0xf9)]=Be;
|