@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505181606 → 0.7.0-nightly.202505201607

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/index.js CHANGED
@@ -1 +1 @@
1
- function _0x39ef(_0x5c2e0b,_0x5c724c){const _0x5b9c8f=_0x5b9c();return _0x39ef=function(_0x39ef31,_0x2b0523){_0x39ef31=_0x39ef31-0xc4;let _0x281899=_0x5b9c8f[_0x39ef31];return _0x281899;},_0x39ef(_0x5c2e0b,_0x5c724c);}const _0x36b8a7=_0x39ef;(function(_0x3917a5,_0x354421){const _0x166b2f=_0x39ef,_0x2b7ace=_0x3917a5();while(!![]){try{const _0x99cf99=-parseInt(_0x166b2f(0xe1))/0x1+parseInt(_0x166b2f(0xc9))/0x2+-parseInt(_0x166b2f(0x143))/0x3*(parseInt(_0x166b2f(0x295))/0x4)+-parseInt(_0x166b2f(0x111))/0x5+-parseInt(_0x166b2f(0x234))/0x6+parseInt(_0x166b2f(0x221))/0x7*(-parseInt(_0x166b2f(0x222))/0x8)+-parseInt(_0x166b2f(0x10a))/0x9*(-parseInt(_0x166b2f(0xfe))/0xa);if(_0x99cf99===_0x354421)break;else _0x2b7ace['push'](_0x2b7ace['shift']());}catch(_0x327520){_0x2b7ace['push'](_0x2b7ace['shift']());}}}(_0x5b9c,0x88979));var $t=Object['defineProperty'],xt=(_0x3b86e5,_0xc4fa74,_0x40de8b)=>_0xc4fa74 in _0x3b86e5?$t(_0x3b86e5,_0xc4fa74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40de8b}):_0x3b86e5[_0xc4fa74]=_0x40de8b,_=(_0x5eccc2,_0xfe9e00,_0x188924)=>xt(_0x5eccc2,typeof _0xfe9e00!='symbol'?_0xfe9e00+'':_0xfe9e00,_0x188924);import{MemberService as _0x8225d9,SessionStatus as _0x16bf75,CollaborationSessionService as _0x462b59,CollaborationStatus as _0x1aa68f,CollaborationController as _0x39c592,ILocalCacheService as _0x21183c,CollaborationUIEventService as _0x1edad7,CollaborationUIEventId as _0x5df80c,DataLoaderService as _0x22a4b4,DocCollaborationEntity as _0x557a53,getLocalCacheKey as _0x3fb7a8,LOCAL_CACHE_INTERVAL as _0xfb74ad,LOCAL_CACHE_INTERVAL_KEY as _0x197d90,UniverCollaborationClientPlugin as _0x5b8a62,CollaborationSocketService as _0x18c47c,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4cfb79,DEFAULT_WS_SESSION_TICKET_URL as _0x387337,UnitStatus as _0x569ee,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2811b1,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x143be0}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x10df6b,Disposable as _0x296a47,DOC_RANGE_TYPE as _0x2a79f0,Inject as _0x2451db,Injector as _0x22de8d,IUniverInstanceService as _0x40aa84,ICommandService as _0xf4fe45,debounce as _0x4ac8bc,Rectangle as _0x271bc9,DisposableCollection as _0x39c38a,toDisposable as _0x308ea8,UniverInstanceType as _0x31eb6a,Tools as _0x135de0,COLORS as _0x21a853,ColorKit as _0x56c613,ThemeService as _0x5a3a3d,fromEventSubject as _0x49fc66,LocaleService as _0x591d33,createIdentifier as _0x14f170,ILogService as _0x110b65,Optional as _0x2c5479,Workbook as _0x402a55,CommandType as _0xde0da8,IConfigService as _0xb5d81d,ILocalStorageService as _0x1bb2e9,DependentOn as _0x3c0cdf,Plugin as _0x126153,merge as _0x1932e8,registerDependencies as _0x573ddd,mergeOverrideWithDependencies as _0x3a773e,touchDependencies as _0x592e68,generateRandomId as _0x2943a3}from'@univerjs/core';import{Shape as _0x5ec0c7,Rect as _0x35b616,getColor as _0xa0b44c,RegularPolygon as _0x3ff6cd,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0xbca3f8,Vector2 as _0x13aba9,SHEET_VIEWPORT_KEY as _0x390c3a,IRenderManagerService as _0x14dba2}from'@univerjs/engine-render';import{ISocketService as _0x28b5f4,WebSocketService as _0x1d0133,HTTPService as _0x230fb9}from'@univerjs/network';import{IDocClipboardService as _0x52b303,NodePositionConvertToCursor as _0x99ab12,NodePositionConvertToRectRange as _0x55a7da,TEXT_RANGE_LAYER_INDEX as _0x24618c,SetDocZoomRatioOperation as _0x12b488,DocIMEInputManagerService as _0x28a85c,DocStateChangeManagerService as _0x380404}from'@univerjs/docs-ui';import{IImageIoService as _0x475c7b}from'@univerjs/drawing';import{BehaviorSubject as _0x440507,debounceTime as _0x198c29,takeUntil as _0x5db60b,Subject as _0x50825b,filter as _0x3e6431,switchMap as _0x5da533,merge as _0x605e7c,combineLatest as _0xfe710e,of as _0x3d4416,fromEvent as _0x217d69,shareReplay as _0x157aff,mapTo as _0x7480ca,distinctUntilChanged as _0x843b93}from'rxjs';import{SetTextSelectionsOperation as _0x40a0c5,RichTextEditingMutation as _0x3ea30c,DocSelectionManagerService as _0x52eb59,DocSkeletonManagerService as _0x12fc0e}from'@univerjs/docs';import{ITransformService as _0x2d3ab1,CollaborationEvent as _0x4d8e36,isTransformMutationFailure as _0x31f921,isTransformMutationsWithChangesetSuccess as _0xd5e052,RevisionService as _0x2b353e,ISnapshotServerService as _0x4da3ba}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x429089,serializeRangeWithSheet as _0x3be802}from'@univerjs/engine-formula';function _0x5b9c(){const _0x85437a=['OffLineSingle','isEditing','sheetID','off-line-single','onPointerEnter$','isArray','registerRenderModule','FromArray','bottom','_transformUndoRedoStack','_drawRectRange','closePath','_renderManagerService','APPLY_REVISION_CONFILICT','_httpService','rgba(255,\x20255,\x20255,\x200.01)','_instanceService','getValue','_startDocCollabCursor','_drawAnchor','_getScale','setUndoRedoMutationParamsCache','_selfUnitIDs','_scene','WECHAT_HAS_BEEN_BOUND','onStarting','_unitOnClients','href','getUnhiddenWorksheets','transformByState','split','push','_docClipboardService','_roomMembers$','LICENSE_MAX_UNITS_EXCEEDED','delete','has','name','YUUMI_SUBSCRIPTION_NOT_FOUND','height','UNAUTHENTICATED','urlChange$','beginPath','_online','defs','YUUMI_TABLE_NOT_FOUND_IN_UNIT','selections','collaboration.single-unit.warning','collab-text-anchor-','children','selection','transformMutation','OTHER_CLIENTS_EDITING','session.connection-failed','eventID','subscribeEvent','subUnitId','_docStateChangeManagerService','currentTheme$','saveTaskMap','PERMISSION_DENIED','replaceDocRanges','black','activeSheet$','getMemberID','size','_onCursorUpdate','substring','_saveCache','RemoveRowCommandId','textRanges','unitId','_refRangeService','init','LOGIN_FAILED','_initResize','wsSessionTicketUrl','ONLINE','SNAPSHOT_HAS_BEEN_REMOVED','COMPLETION_FINISHED','CONFLICT','runId','INVITE_CODE_ALREADY_BOUND','translate(.97)','tag','stringify','from','error','resize','restore','createInstance','_textBubble','_initStatusComponent','_id','roomMembers$','getColorFromTheme','getAncestorScale','searchParams','collaboration-client-ui.config','origin','_cursorInfo$','_sheetSkeletonManagerService','parse','collabStatus.syncing','DeleteRangeMoveUpCommandId','LICENSE_IMPORT_SIZE_EXCEEDED','_toggleOffline','permission.content','dispose','actions','UPDATE_CURSOR','current','transformStateCache','apply','currentSkeleton$','_anchorDot','evenodd','idSuffix','_heartbeatTimer','ACTIVE_UNIT_EVENT_CHANNEL','_init','_lastPointer','addHandlerCallback','univer-flex\x20univer-items-center','_univerInstanceService','LICENSE_DISTRO_REJECTED','YUUMI_UNABLE_LOAD_URL','type','hovered','params','#FFF','on-line-single','lineTo','_transformHistoryAndStateStack','ranges','updateOfflineData','green.600','hasOwnProperty','colorChannel1','measureText','EMAIL_HAS_BEEN_BOUND','_updateLocalCursor','PENDING','_initDependencies','UNIVER_DOC','url(#off-line-single_clip0_910_343)','entries','arc','color','addObjects','icon','unload','endRow','getOwnPropertyDescriptor','getUnitId','prototype','_registerRenderDependencies','_docSkeletonManagerService','skeleton','univerjs-icon\x20univerjs-icon-','getViewport','_updateSubUnitFromURLParams','transformRemoteChangeset','univer-flex\x20univer-mr-2\x20univer-text-xl','_eventUnsubscribe','Warning','fill','_localeService','InsertRowCommandId','removeParam','_transformPreviousActiveRange','displayName','max','svg','data','_configService','uni.network.url-service','fillText','_unitStatus','exhaustSavingTask','executeCommand','makeDirty','code','set','collabStatus.offline','_scheduleHeartbeat','collaboration.closeRoom','LICENSE_EXPORT_SIZE_EXCEEDED','_onRefRangeChange','OTHER_CLIENT_EDITING','OFFLINE','_localStorageService','unit','_cachedData','newValue','purple.300','USERS_LEAVE','setTimeout','unshift','getRenderById','_handleEvent','_entityInit$','_scheduleClearOtherTimer','drawWith','collabStatus.notCollab','getCellPositionByOffset','_render','/run/','0\x200\x2017\x2016','7TTkFRc','4629776ruPwra','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_createSocketURL','_removeCollabCursors','syncEditingCollabCursor','search','cursorInfo','_initEntityListener','_docTransformSelectionsService','NOT_FOUND','_injector','currentColor','collabStatus.fetchMiss','m2Prime','map','clearTimeout','transform','unsubscribe','5846376bIAdfF','_initStatusListener','UNDEFINED','_session','APPLY_NON_SEQUENTIAL_REVISION','round','storage','saveImage','dispose$','call','event$','_config','_transformService','body','subunit','CONNECTOR_DATA_TOO_LARGE','collab-client.tooltip.reconnect','INTERNAL_ERROR','onCommandExecuted','clipPath','imageSourceType','labelPosition','setActiveRange','AWAITING','asObservable','startRow','getDocRanges','_collabSessionService','_syncEditingCollabCursorService','_commandService','moveTo','_disabled','APPLY_DUPLICATED','toString','replace','TOO_MANY_REQUESTS','invokeId','replaceState','JOIN_ROOM_FAILED','_anchor','top','_setupSubUnitSync','getRangePointData','_handleJoinEvent','_colorIndex','_updateCollabCursors','Error','xlink:href','_refreshCollabCursors','InsertRangeMoveDownCommandId','width','YUUMI_RATE_OVER_LIMIT','cursorInfo$','USER_NOT_INVITED_CODE','_name','OnLineSingle','UNIVER_SHEET','[CollaborationDataLoaderController]','concat','_getSessionTicket','setAlpha','transformSelections','getOwnPropertySymbols','_onCursorDelete','isActive','_colorAssignService','ALREADY_EXISTS','executionId','transformIMECache','save','registerComponent','MUTATION','_toggleOnline','override','generateRandomId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','YUUMI_ASYNCIO_CANCELLED','TEXT','PY_RUNTIME_SCRIPT_ERROR','onLocalMutation','disposeUnit','_docTransformStateCacheService','ENSURE_SNAPSHOT_EXECUTION','_themeService','defIds','triggerDblclick','_memberService','location','_range','addEventListener','_docSyncEditingCollabCursorService','YUUMI_NO_CUBOID_FOR_QUESTION','runOnServer','_hovered','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','defineProperty','_setupBeforeClosingHandler','416XEoVAE','_messageService','doc.mutation.rich-text-editing','setItem','popstate','CHANGESET_REVISION_CONFILICT','_urlService','_scheduleSaving','memberID','findNodePositionByCharIndex','INVALID_ARGUMENT','onRendered','addObject','_imageIoService','row','on-line-single_clip0_910_349','indexOf','sheetId','YUUMI_URL_COL_OUT_OF_RANGE','key','getParam','getCurrentRevOfUnit','extend','InsertRangeMoveRightCommandId','getSkeleton','NOT_COLLAB','APPLY_PERMISSION_DENIED','_saveTaskMap','_status$','some','getCurrent','result','_dataLoaderService','pluginName','_initCommandExecutedListener','_send','getCollabCursors$','trim','string','url(#on-line-single_clip0_910_349)','className','NO_OTHER_CLIENTS_EDITING','getActiveSheet','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','requireSession','column','getTypeOfUnitAdded$','debug','none','onMouseMove','1429722ifqPKr','INVITE_CODE_REQUIRED','MoveRangeCommandId','_hideTimer','_logService','length','values','next','getUndoRedoMutationParamsCache','assign','SOCKET_FAILED','_context','Failed','_uiPartsService','getMember','undoState','m1Prime','hide','YUUMI_ALL_TABLES_IS_INVALID','_document','unitID','Unknown\x20user','with','_shapes','404297XuRryA','min','_color','onTransformChange$','_handleHover','getItem','_removeClearOtherTimer','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_draw','_cursorShapes','editingUnit','getSheetId','onPointerLeave$','collaboration-client.offline-data-not-saved','font','random','all','disposeWithMe','_backgroundColor','_getMergeRange','0\x200\x2016\x2016','_collabCursorState$','forEach','collabStatus.synced','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','1em','_handleHeartbeatEvent','getFocusedUnit','then','34107730WrjSkI','_collabCursorController','getStateCache','disableLocalCache','add','SNAPSHOT_INVALID_SNAPSHOT','_getAnchorBounding','M0\x200H16V16H0z','getSheetBySheetId','getCurrentSelections','toRgbString','_registerDependencies','9xtlsol','deepClone','text','_ensureSubject','attrs','setShapeProps','_getSheetObject','5026130XKeUqt','_getSaveTimeout','loadOfflineData','get','path','_entities','subscribe','_collaborationController','mutations','history','setParam','_startSheetCollabCursor','RECT','getConfig','_cursors','redoState','#fff','collabCursorState$','enableLocalCache','_hover','SUBMIT_CHANGESET_TIMEOUT','off-line-single_clip0_910_343','getOffsetConfig','INVALID_INVITE_CODE','registerRefRange','_handleLeaveEvent','APPLY_REJECT','HEADER_MENU','pipe','CLOSE_ROOM','send','backgroundColor','DeleteRangeMoveLeftCommandId','show','_cursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UNRECOGNIZED','_docTransformIMECacheService','post','SYNCED','...','function','_labelPosition','mask','registerBeforeClose','range','url(#$1','div','INVITE_CODE_HAS_BEEN_UES','assignAColorForMemberID','17409ANUpCM','fillStyle','complete','_updateURLWithCurrentState','_collaborationUIEventService','flatMap','_clearOtherTimers','FETCH_MISS','AWAITING_WITH_PENDING','_drawTextRange','_beforeCloseService','pushState','_assignedColors'];_0x5b9c=function(){return _0x85437a;};return _0x5b9c();}import{RefRangeService as _0x102107,SetSelectionsOperation as _0x30367a,SheetsSelectionsService as _0x36ede4,EffectRefRangId as _0x228f56,handleIRemoveRow as _0x66c64f,handleIRemoveCol as _0x2fc86e,handleMoveRange as _0x290e8c,handleInsertRow as _0x5269fb,handleInsertRangeMoveRight as _0x350f9d,handleInsertRangeMoveDown as _0x3d5788,handleInsertCol as _0x1fe99b,handleDeleteRangeMoveUp as _0x73976b,handleDeleteRangeMoveLeft as _0x14ab16,runRefRangeMutations as _0x542953,SetWorksheetActivateCommand as _0x4dc006}from'@univerjs/sheets';import{map as _0x5027a0,filter as _0x2316f6,throttleTime as _0xc9e13e,takeUntil as _0x183315,switchMap as _0x385182}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2744dd,getCoordByCell as _0x135831,getSheetObject as _0x4586e3}from'@univerjs/sheets-ui';import{jsx as _0x5eb5aa,jsxs as _0x1d1d1b}from'react/jsx-runtime';import{useObservable as _0x25eb38,useDependency as _0x18fa6b,IUIPartsService as _0x5dfab7,BuiltInUIPart as _0x247166,connectInjector as _0x37468c,IBeforeCloseService as _0x42100c,IMessageService as _0x472215,INotificationService as _0xcf4a30}from'@univerjs/ui';import{Tooltip as _0x145e14,clsx as _0x2402a8,MessageType as _0x2a8577}from'@univerjs/design';import{forwardRef as _0x29f9d0,useRef as _0x12d408,createElement as _0x2d92d7,useCallback as _0x4c08e8}from'react';import{IRemoteInstanceService as _0x392cca}from'@univerjs/rpc';var ci=Object['getOwnPropertyDescriptor'],li=(_0x3ea188,_0x3ca19d,_0x14c8ba,_0x24e17a)=>{const _0x2e5cec=_0x39ef;for(var _0xf2b2e2=_0x24e17a>0x1?void 0x0:_0x24e17a?ci(_0x3ca19d,_0x14c8ba):_0x3ca19d,_0x257b05=_0x3ea188[_0x2e5cec(0xce)]-0x1,_0x2834dd;_0x257b05>=0x0;_0x257b05--)(_0x2834dd=_0x3ea188[_0x257b05])&&(_0xf2b2e2=_0x2834dd(_0xf2b2e2)||_0xf2b2e2);return _0xf2b2e2;},Je=(_0x5e850a,_0x3b7224)=>(_0x30c0ab,_0x19b809)=>_0x3b7224(_0x30c0ab,_0x19b809,_0x5e850a);let Ne=class extends _0x10df6b{constructor(_0x265da2,_0x329653){const _0x1b4f26=_0x39ef;super(),this[_0x1b4f26(0x170)]=_0x265da2,this[_0x1b4f26(0x2a2)]=_0x329653,this[_0x1b4f26(0x1c8)]();}[_0x36b8a7(0x1c8)](){const _0xe9592=_0x36b8a7,_0x7772b9=this;this[_0xe9592(0xf2)](this[_0xe9592(0x170)]['addClipboardHook']({'onBeforePasteImage':async _0x3be7a1=>{const _0x4596a9=_0xe9592,_0x473507=await _0x7772b9[_0x4596a9(0x2a2)][_0x4596a9(0x23b)](_0x3be7a1);return _0x473507?{'source':_0x473507['source'],'imageSourceType':_0x473507[_0x4596a9(0x248)]}:null;}}));}};Ne=li([Je(0x0,_0x52b303),Je(0x1,_0x475c7b)],Ne);const Ze=[_0x36b8a7(0x213),'jiqing.500',_0x36b8a7(0x1d8),'red.300','blue.400','yellow.400'];class ke extends _0x296a47{constructor(){const _0x2b8995=_0x36b8a7;super(...arguments),_(this,_0x2b8995(0x14f),new Map()),_(this,_0x2b8995(0x260),0x0);}[_0x36b8a7(0x142)](_0x914b4c){const _0x486217=_0x36b8a7;if(this[_0x486217(0x14f)][_0x486217(0x174)](_0x914b4c))return this[_0x486217(0x14f)][_0x486217(0x114)](_0x914b4c);const _0x4ca61a=Ze[this[_0x486217(0x260)]];return this[_0x486217(0x260)]=(this[_0x486217(0x260)]+0x1)%Ze[_0x486217(0xce)],this[_0x486217(0x14f)]['set'](_0x914b4c,_0x4ca61a),_0x4ca61a;}}function Tt(_0x424783){const _0x100086=_0x36b8a7;let _0xcad0fb='';for(const _0x4def29 of _0x424783){const {startOffset:_0x357944,endOffset:_0x2c2962,isActive:_0x227b34,rangeType:_0x50e365,segmentId:_0x1fd3eb,segmentPage:_0x48b8f3}=_0x4def29;_0xcad0fb[_0x100086(0xce)]&&(_0xcad0fb+=','),_0xcad0fb+=_0x357944+':'+_0x2c2962+':'+(_0x227b34?'1':'0')+':'+_0x50e365+':'+_0x1fd3eb+':'+_0x48b8f3;}return _0xcad0fb;}function _i(_0xad4c2){const _0x6dc987=_0x36b8a7,_0x5032ac=_0xad4c2[_0x6dc987(0x16e)](','),_0x6d787d=[];for(const _0x388fe6 of _0x5032ac){const [_0x299337,_0x4d55c1,_0x4c75c1,_0x47eb49,_0x552d7b,_0x27e537]=_0x388fe6[_0x6dc987(0x16e)](':');_0x6d787d[_0x6dc987(0x16f)]({'startOffset':Number(_0x299337),'endOffset':Number(_0x4d55c1),'collapsed':_0x299337===_0x4d55c1,'isActive':_0x4c75c1==='1','rangeType':_0x47eb49===_0x2a79f0[_0x6dc987(0x281)]?_0x2a79f0[_0x6dc987(0x281)]:_0x2a79f0[_0x6dc987(0x11d)],'segmentId':typeof _0x552d7b==_0x6dc987(0x2bb)?String(_0x552d7b):'','segmentPage':Number(_0x27e537!=null?_0x27e537:-0x1)});}return _0x6d787d[_0x6dc987(0x2b2)](_0x17ffcf=>_0x17ffcf[_0x6dc987(0x274)])||(_0x6d787d[0x0][_0x6dc987(0x274)]=!0x0),_0x6d787d;}class He extends _0x10df6b{constructor(){const _0x399677=_0x36b8a7;super(...arguments),_(this,_0x399677(0xf6),new _0x440507(null)),_(this,_0x399677(0x122),this[_0x399677(0xf6)][_0x399677(0x24c)]());}[_0x36b8a7(0x226)](_0x43b74e){const _0x4063fb=_0x36b8a7,{unitID:_0x5777da,memberID:_0x22d9bc,textRanges:_0x2eaa80}=_0x43b74e,_0x5ad879=Tt(_0x2eaa80);if(_0x5ad879==='')return;const _0x33d066={'unitID':_0x5777da,'memberID':_0x22d9bc,'selection':_0x5ad879};this['_collabCursorState$'][_0x4063fb(0xd0)](_0x33d066);}}var hi=Object[_0x36b8a7(0x1e9)],ui=(_0x536421,_0x1f08bd,_0x252d11,_0x43840c)=>{for(var _0x58305b=_0x43840c>0x1?void 0x0:_0x43840c?hi(_0x1f08bd,_0x252d11):_0x1f08bd,_0x4241c5=_0x536421['length']-0x1,_0x57ff58;_0x4241c5>=0x0;_0x4241c5--)(_0x57ff58=_0x536421[_0x4241c5])&&(_0x58305b=_0x57ff58(_0x58305b)||_0x58305b);return _0x58305b;},L=(_0x416253,_0x43f3b6)=>(_0x359d9b,_0x4dae91)=>_0x43f3b6(_0x359d9b,_0x4dae91,_0x416253);const di=0x12c,fi=0x64;let Ue=class extends _0x10df6b{constructor(_0x3c7840,_0x23e23e,_0x1d994d,_0x23c42c,_0x3f8dae,_0x2344ec,_0x1bc19c,_0x3f4d8a,_0x306912){const _0xa40229=_0x36b8a7;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0xa40229(0x1b4),new _0x440507(new Map())),_(this,_0xa40229(0x268),this[_0xa40229(0x1b4)][_0xa40229(0x24c)]()),_(this,_0xa40229(0x171),new _0x440507([])),_(this,_0xa40229(0x1ae),this[_0xa40229(0x171)][_0xa40229(0x12d)](_0x198c29(di))),_(this,'_updateLocalCursor',_0x4ac8bc(_0x56f52e=>{const _0x4fec6f=_0xa40229,_0x486cf9={'eventID':_0x4d8e36['UPDATE_CURSOR'],'data':{'unitID':this[_0x4fec6f(0xdd)],'memberID':this[_0x4fec6f(0x237)][_0x4fec6f(0x190)](),'selection':Tt(_0x56f52e)}};this[_0x4fec6f(0x237)][_0x4fec6f(0x12f)](_0x486cf9,this[_0x4fec6f(0xdd)]);},fi)),(this['unitID']=_0x3c7840,this[_0xa40229(0x237)]=_0x23e23e,this['_injector']=_0x1d994d,this[_0xa40229(0x275)]=_0x23c42c,this[_0xa40229(0x28a)]=_0x3f8dae,this[_0xa40229(0x250)]=_0x2344ec,this['_transformService']=_0x1bc19c,this[_0xa40229(0x1cc)]=_0x3f4d8a,this['_commandService']=_0x306912);}get[_0x36b8a7(0x228)](){const _0x403252=_0x36b8a7;return this['_cursorInfo$'][_0x403252(0x161)]();}get['roomMembers'](){const _0x5738f2=_0x36b8a7;return this[_0x5738f2(0x171)]['getValue']();}[_0x36b8a7(0x1bc)](){const _0x476447=_0x36b8a7;super[_0x476447(0x1bc)](),this[_0x476447(0x1b4)][_0x476447(0xd0)](new Map()),this[_0x476447(0x1b4)][_0x476447(0x145)](),this['_roomMembers$'][_0x476447(0xd0)]([]),this[_0x476447(0x171)]['complete']();}[_0x36b8a7(0x199)](){const _0x2eaa8e=_0x36b8a7;this[_0x2eaa8e(0x1c8)]||(this[_0x2eaa8e(0x1c8)]=!0x0,this[_0x2eaa8e(0x237)]['sessionStatus$'][_0x2eaa8e(0x12d)](_0x5db60b(this['dispose$']))[_0x2eaa8e(0x117)](_0x49aff9=>{const _0x201847=_0x2eaa8e;_0x49aff9===_0x16bf75['ONLINE']?this['_toggleOnline']():this[_0x201847(0x1ba)]();}),this[_0x2eaa8e(0x237)][_0x2eaa8e(0x23e)][_0x2eaa8e(0x12d)](_0x5db60b(this[_0x2eaa8e(0x23c)]))[_0x2eaa8e(0x117)](_0x37e13c=>{const _0x6b777c=_0x2eaa8e,_0x4a73fc=_0x37e13c['eventID'];_0x4a73fc===_0x4d8e36['UPDATE_CURSOR']&&this[_0x6b777c(0x192)](_0x37e13c),_0x4a73fc===_0x4d8e36[_0x6b777c(0x214)]&&this[_0x6b777c(0x273)](_0x37e13c);}),this[_0x2eaa8e(0xf2)](this[_0x2eaa8e(0x251)][_0x2eaa8e(0x246)](_0x4706e1=>{const _0x357596=_0x2eaa8e,_0x2048aa=_0x4706e1[_0x357596(0x1d1)];_0x2048aa!=null&&this['_online']&&_0x4706e1['id']===_0x40a0c5['id']&&_0x2048aa[_0x357596(0x197)]===this[_0x357596(0xdd)]&&_0x2048aa[_0x357596(0x151)]===!0x1&&_0x2048aa[_0x357596(0x1d6)][_0x357596(0xce)]>0x0&&this[_0x357596(0x1dd)](_0x2048aa[_0x357596(0x1d6)]);})),this[_0x2eaa8e(0x250)]['collabCursorState$'][_0x2eaa8e(0x12d)](_0x5db60b(this[_0x2eaa8e(0x23c)]))[_0x2eaa8e(0x117)](_0x1d88f1=>{const _0x78edfe=_0x2eaa8e;if((_0x1d88f1==null?void 0x0:_0x1d88f1[_0x78edfe(0xdd)])!==this[_0x78edfe(0xdd)])return;const _0x2d4eb7={'eventID':_0x4d8e36[_0x78edfe(0x1be)],'data':_0x1d88f1};this[_0x78edfe(0x192)](_0x2d4eb7);}),this['disposeWithMe'](this[_0x2eaa8e(0x251)][_0x2eaa8e(0x246)](_0x682194=>{const _0x3bbed9=_0x2eaa8e;if(_0x682194[_0x3bbed9(0x1d1)]==null)return;const _0x28f3e6=_0x682194['params'];if(_0x682194['id']!==_0x3ea30c['id']||_0x28f3e6[_0x3bbed9(0x197)]!==this[_0x3bbed9(0xdd)])return;const _0x43effc={'id':'doc.mutation.rich-text-editing','params':_0x28f3e6},_0xb736d5=this[_0x3bbed9(0x228)];for(const [_0x10d2ba,_0x453223]of _0xb736d5){const _0x490d6f={'id':_0x3bbed9(0x297),'params':{'unitId':this[_0x3bbed9(0xdd)],'actions':null,'textRanges':_0x453223[_0x3bbed9(0x1d6)]}},_0x4904a1=this['_transformService'][_0x3bbed9(0x183)](_0x43effc,_0x490d6f,!0x1);if(_0x31f921(_0x4904a1))throw _0x4904a1[_0x3bbed9(0x1a7)];_0xb736d5[_0x3bbed9(0x207)](_0x10d2ba,{..._0x453223,'ranges':_0x4904a1[_0x3bbed9(0x22f)][_0x3bbed9(0x1d1)]['textRanges']});}queueMicrotask(()=>{const _0x3d512d=_0x3bbed9;this['_cursorInfo$'][_0x3d512d(0xd0)](_0xb736d5);});})));}[_0x36b8a7(0x192)](_0x398c18){const _0x257163=_0x36b8a7;var _0x23c58b,_0xeee83a;const {memberID:_0x27c03c,selection:_0x51ca1e}=_0x398c18[_0x257163(0x1fe)],_0x28d7ad=_i(_0x51ca1e),_0x2522e4=(_0xeee83a=(_0x23c58b=this[_0x257163(0x28a)][_0x257163(0xd7)](this['unitID'],_0x27c03c))==null?void 0x0:_0x23c58b[_0x257163(0x175)])!=null?_0xeee83a:_0x257163(0xde),_0x529283={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x27c03c),'name':_0x2522e4,'ranges':_0x28d7ad},_0x447edb=this[_0x257163(0x228)];_0x447edb['set'](_0x27c03c,_0x529283),this['_cursorInfo$'][_0x257163(0xd0)](_0x447edb);}[_0x36b8a7(0x273)](_0x173902){const _0x11ade2=_0x36b8a7,{memberID:_0x3a051c}=_0x173902[_0x11ade2(0x1fe)],_0x162002=this[_0x11ade2(0x228)];_0x162002[_0x11ade2(0x173)](_0x3a051c),this[_0x11ade2(0x1b4)][_0x11ade2(0xd0)](_0x162002);}[_0x36b8a7(0x27c)](){const _0x549171=_0x36b8a7;var _0x1f89fe;if(this['_online']=!0x0,((_0x1f89fe=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1f89fe['getUnitId']())!==this['unitID'])return;const _0x2e1679=this['_injector'][_0x549171(0x114)](_0x52eb59)[_0x549171(0x24e)]();Array[_0x549171(0x155)](_0x2e1679)&&_0x2e1679[_0x549171(0xce)]>0x0&&this[_0x549171(0x1dd)](_0x2e1679);}[_0x36b8a7(0x1ba)](){this['_online']=!0x1;}};Ue=ui([L(0x2,_0x2451db(_0x22de8d)),L(0x3,_0x2451db(ke)),L(0x4,_0x2451db(_0x8225d9)),L(0x5,_0x2451db(He)),L(0x6,_0x2d3ab1),L(0x7,_0x40aa84),L(0x8,_0xf4fe45)],Ue);var Si=Object[_0x36b8a7(0x1e9)],mi=(_0x2db385,_0x1e56e1,_0x2f3adb,_0x5f41d5)=>{for(var _0x1a7a60=_0x5f41d5>0x1?void 0x0:_0x5f41d5?Si(_0x1e56e1,_0x2f3adb):_0x1e56e1,_0x5c4eb5=_0x2db385['length']-0x1,_0x2c7d0f;_0x5c4eb5>=0x0;_0x5c4eb5--)(_0x2c7d0f=_0x2db385[_0x5c4eb5])&&(_0x1a7a60=_0x2c7d0f(_0x1a7a60)||_0x1a7a60);return _0x1a7a60;},x=(_0xb5260b,_0x3df241)=>(_0x24a431,_0x3b4633)=>_0x3df241(_0x24a431,_0x3b4633,_0xb5260b);const gi=0x12c,Ii=0x64,vi=()=>{let _0x55dd0d=[],_0x58a958=!0x1;return _0x2680f5=>{const _0x5564d0=_0x39ef;_0x55dd0d[_0x5564d0(0x16f)](_0x2680f5),_0x58a958||(_0x58a958=!0x0,setTimeout(()=>{const _0x202934=_0x5564d0;_0x55dd0d[_0x202934(0xf7)](_0x12d644=>_0x12d644()),_0x55dd0d=[],_0x58a958=!0x1;}));};};let Me=class extends _0x10df6b{constructor(_0x59cd50,_0x1603ec,_0xf409b3,_0x1107c7,_0x318899,_0x44c00c,_0x20d48b,_0x59ae68){const _0x4e8124=_0x36b8a7;super(),_(this,_0x4e8124(0x17b),!0x1),_(this,_0x4e8124(0x1c8),!0x1),_(this,_0x4e8124(0x1b4),new _0x440507(new Map())),_(this,'cursorInfo$',this[_0x4e8124(0x1b4)][_0x4e8124(0x24c)]()),_(this,_0x4e8124(0x171),new _0x440507([])),_(this,_0x4e8124(0x1ae),this[_0x4e8124(0x171)]['pipe'](_0x198c29(gi))),_(this,_0x4e8124(0x1dd),_0x4ac8bc((_0x585719,_0x2d52c3)=>{const _0x33851f=_0x4e8124,_0x1bf9ad={'eventID':_0x4d8e36[_0x33851f(0x1be)],'data':{'unitID':this[_0x33851f(0xdd)],'memberID':this[_0x33851f(0x237)][_0x33851f(0x190)](),'selection':_0x3be802(_0x585719,_0x2d52c3[_0x33851f(0x13e)])}};this[_0x33851f(0x237)][_0x33851f(0x12f)](_0x1bf9ad,this[_0x33851f(0xdd)]);},Ii)),(this[_0x4e8124(0xdd)]=_0x59cd50,this[_0x4e8124(0x237)]=_0x1603ec,this[_0x4e8124(0x22c)]=_0xf409b3,this[_0x4e8124(0x275)]=_0x1107c7,this[_0x4e8124(0x28a)]=_0x318899,this['_univerInstanceService']=_0x44c00c,this['_commandService']=_0x20d48b,this[_0x4e8124(0x198)]=_0x59ae68);}get['cursorInfo'](){const _0x59ad5b=_0x36b8a7;return this[_0x59ad5b(0x1b4)][_0x59ad5b(0x161)]();}get['roomMembers'](){const _0x54b191=_0x36b8a7;return this[_0x54b191(0x171)][_0x54b191(0x161)]();}['dispose'](){const _0x593248=_0x36b8a7;super[_0x593248(0x1bc)](),this[_0x593248(0x1b4)][_0x593248(0xd0)](new Map()),this['_cursorInfo$'][_0x593248(0x145)](),this[_0x593248(0x171)]['next']([]),this['_roomMembers$'][_0x593248(0x145)]();}[_0x36b8a7(0x199)](){const _0x130a1c=_0x36b8a7;this[_0x130a1c(0x1c8)]||(this[_0x130a1c(0x1c8)]=!0x0,this[_0x130a1c(0x237)]['sessionStatus$']['pipe'](_0x5db60b(this[_0x130a1c(0x23c)]))[_0x130a1c(0x117)](_0x3396b7=>{const _0xfe6a3e=_0x130a1c;_0x3396b7===_0x16bf75[_0xfe6a3e(0x19d)]?this['_toggleOnline']():this[_0xfe6a3e(0x1ba)]();}),this[_0x130a1c(0x237)][_0x130a1c(0x23e)][_0x130a1c(0x12d)](_0x5db60b(this['dispose$']))[_0x130a1c(0x117)](_0x598987=>{const _0x5d538e=_0x130a1c,_0x120630=_0x598987[_0x5d538e(0x186)];_0x120630===_0x4d8e36['UPDATE_CURSOR']&&this[_0x5d538e(0x192)](_0x598987),_0x120630===_0x4d8e36[_0x5d538e(0x214)]&&this['_onCursorDelete'](_0x598987);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x130a1c(0x251)][_0x130a1c(0x246)](_0x1b6bbf=>{const _0xe34b11=_0x130a1c;if(this[_0xe34b11(0x17b)]&&_0x1b6bbf['id']===_0x30367a['id']&&_0x1b6bbf[_0xe34b11(0x1d1)][_0xe34b11(0x197)]===this[_0xe34b11(0xdd)]){const _0x5933c5=_0x1b6bbf[_0xe34b11(0x1d1)];this[_0xe34b11(0x1dd)](_0x5933c5[_0xe34b11(0x188)],_0x5933c5[_0xe34b11(0x17e)][0x0]);}})));}[_0x36b8a7(0x192)](_0x3ff3e2){const _0x25b2f2=_0x36b8a7;var _0x4811dc,_0x18ccbe;const {memberID:_0x5bba83,selection:_0x33875d}=_0x3ff3e2['data'],{sheetName:_0x448923,range:_0x179338}=_0x429089(_0x33875d),_0x44d31a={'name':(_0x18ccbe=(_0x4811dc=this[_0x25b2f2(0x28a)][_0x25b2f2(0xd7)](this[_0x25b2f2(0xdd)],_0x5bba83))==null?void 0x0:_0x4811dc['name'])!=null?_0x18ccbe:_0x25b2f2(0xde),'range':this['_getMergeRange'](_0x448923,_0x179338),'sheetID':_0x448923,'color':this[_0x25b2f2(0x275)][_0x25b2f2(0x142)](_0x5bba83),'selection':_0x33875d},_0x3d3c73=this[_0x25b2f2(0x228)];_0x3d3c73[_0x25b2f2(0x207)](_0x5bba83,_0x44d31a),this[_0x25b2f2(0x1b4)][_0x25b2f2(0xd0)](_0x3d3c73);}[_0x36b8a7(0x273)](_0x5eee0e){const _0x12c339=_0x36b8a7,{memberID:_0x30aa73}=_0x5eee0e['data'],_0x330ebc=this[_0x12c339(0x228)];_0x330ebc[_0x12c339(0x173)](_0x30aa73),this['_cursorInfo$']['next'](_0x330ebc);}[_0x36b8a7(0xf4)](_0x58fd15,_0x1ef1ad){const _0x4ee3a3=_0x36b8a7;var _0x136e19,_0x487131;const _0x3ea8d4=(_0x487131=(_0x136e19=this[_0x4ee3a3(0x1cc)]['getUniverSheetInstance'](this[_0x4ee3a3(0xdd)]))==null?void 0x0:_0x136e19['getSheetBySheetId'](_0x58fd15))==null?void 0x0:_0x487131['getMergeData']();return(_0x3ea8d4==null?void 0x0:_0x3ea8d4['find'](_0x388592=>_0x271bc9['contains'](_0x388592,_0x1ef1ad)))||_0x1ef1ad;}[_0x36b8a7(0x20c)](){const _0x554b1e=_0x36b8a7,_0x592ce5=new _0x39c38a(),_0x27e87e=vi(),_0x217d67=()=>{const _0x3d2b43=_0x39ef;_0x592ce5[_0x3d2b43(0x1bc)]();const _0x32a77c=(_0x348497,_0x20e68b,_0x4dab22,_0x42489d)=>{const _0x480224=_0x3d2b43;let _0x1b869c=[];switch(_0x348497['id']){case _0x228f56[_0x480224(0x131)]:{_0x1b869c=_0x14ab16(_0x348497,_0x42489d);break;}case _0x228f56[_0x480224(0x1b8)]:{_0x1b869c=_0x73976b(_0x348497,_0x42489d);break;}case _0x228f56['InsertColCommandId']:{_0x1b869c=_0x1fe99b(_0x348497,_0x42489d);break;}case _0x228f56[_0x480224(0x265)]:{_0x1b869c=_0x3d5788(_0x348497,_0x42489d);break;}case _0x228f56[_0x480224(0x2ac)]:{_0x1b869c=_0x350f9d(_0x348497,_0x42489d);break;}case _0x228f56[_0x480224(0x1f8)]:{_0x1b869c=_0x5269fb(_0x348497,_0x42489d);break;}case _0x228f56[_0x480224(0xcb)]:{_0x1b869c=_0x290e8c(_0x348497,_0x42489d);break;}case _0x228f56['RemoveColCommandId']:{_0x1b869c=_0x2fc86e(_0x348497,_0x42489d);break;}case _0x228f56[_0x480224(0x195)]:{_0x1b869c=_0x66c64f(_0x348497,_0x42489d);break;}}const _0x2540f9=_0x542953(_0x1b869c,_0x42489d),_0x28c0b6=this['cursorInfo'][_0x480224(0x114)](_0x20e68b);if(_0x28c0b6&&_0x2540f9){const _0x4e3be6={..._0x28c0b6,'range':_0x2540f9};this['cursorInfo']['set'](_0x20e68b,_0x4e3be6),_0x27e87e(()=>{const _0x4d5acc=_0x480224,_0x1bde6a=this[_0x4d5acc(0x198)]['registerRefRange'](_0x2540f9,_0x3878ea=>(_0x1bde6a[_0x4d5acc(0x1bc)](),_0x32a77c(_0x3878ea,_0x20e68b,_0x4dab22,_0x2540f9)));_0x592ce5['add'](_0x1bde6a);});}return{'redos':[],'undos':[]};};this[_0x3d2b43(0x228)][_0x3d2b43(0xf7)]((_0x21bfd4,_0x675d51)=>{const _0x46e461=_0x3d2b43,{range:_0x20c981,sheetID:_0x428d0e}=_0x21bfd4,_0xd78227=this[_0x46e461(0x198)][_0x46e461(0x129)](_0x20c981,_0x322590=>(_0xd78227[_0x46e461(0x1bc)](),_0x32a77c(_0x322590,_0x675d51,_0x428d0e,_0x20c981)));_0x592ce5[_0x46e461(0x102)](_0xd78227);});};this[_0x554b1e(0xf2)](_0x308ea8(this[_0x554b1e(0x1b4)]['subscribe'](()=>{_0x217d67();})));}[_0x36b8a7(0x27c)](){const _0x34d4b4=_0x36b8a7;var _0x38d019,_0xced698;if(this[_0x34d4b4(0x17b)]=!0x0,((_0x38d019=this[_0x34d4b4(0x1cc)]['getFocusedUnit']())==null?void 0x0:_0x38d019[_0x34d4b4(0x1ea)]())!==this[_0x34d4b4(0xdd)])return;const _0x54c3b2=(_0xced698=this[_0x34d4b4(0x22c)][_0x34d4b4(0x114)](_0x36ede4)[_0x34d4b4(0x107)]())==null?void 0x0:_0xced698[0x0],_0x1c9550=this[_0x34d4b4(0x1cc)]['getCurrentUnitForType'](_0x31eb6a[_0x34d4b4(0x26c)])[_0x34d4b4(0x2bf)]();_0x54c3b2&&_0x1c9550&&this[_0x34d4b4(0x1dd)](_0x1c9550[_0x34d4b4(0xec)](),_0x54c3b2);}[_0x36b8a7(0x1ba)](){const _0x25036f=_0x36b8a7;this[_0x25036f(0x17b)]=!0x1;}};Me=mi([x(0x2,_0x2451db(_0x22de8d)),x(0x3,_0x2451db(ke)),x(0x4,_0x2451db(_0x8225d9)),x(0x5,_0x40aa84),x(0x6,_0xf4fe45),x(0x7,_0x2451db(_0x102107))],Me);var pi=Object[_0x36b8a7(0x1e9)],Ci=(_0xc460e1,_0x3a0a0b,_0x4e7114,_0x2a6c67)=>{for(var _0x2127e3=_0x2a6c67>0x1?void 0x0:_0x2a6c67?pi(_0x3a0a0b,_0x4e7114):_0x3a0a0b,_0x27c701=_0xc460e1['length']-0x1,_0x4209a0;_0x27c701>=0x0;_0x27c701--)(_0x4209a0=_0xc460e1[_0x27c701])&&(_0x2127e3=_0x4209a0(_0x2127e3)||_0x2127e3);return _0x2127e3;},Se=(_0xebe81b,_0x4d5e2a)=>(_0x4193a2,_0x1bfc96)=>_0x4d5e2a(_0x4193a2,_0x1bfc96,_0xebe81b);let H=class extends _0x10df6b{constructor(_0x50e359,_0x41e13a,_0x1f3e8d){const _0x13f4d1=_0x36b8a7;super(),_(this,_0x13f4d1(0x116),new Map()),_(this,_0x13f4d1(0x219),new _0x50825b()),(this['_univerInstanceService']=_0x50e359,this[_0x13f4d1(0x22c)]=_0x41e13a,this[_0x13f4d1(0x24f)]=_0x1f3e8d,this['_init']());}[_0x36b8a7(0x1bc)](){const _0x3bc356=_0x36b8a7;super[_0x3bc356(0x1bc)](),this['_entityInit$'][_0x3bc356(0x145)](),this[_0x3bc356(0x116)][_0x3bc356(0xf7)](_0x3db912=>_0x3db912['dispose']());}['getCollabCursors$'](_0x39df90){const _0x3bfa6f=_0x36b8a7;return this[_0x3bfa6f(0x116)]['has'](_0x39df90)?this[_0x3bfa6f(0x116)][_0x3bfa6f(0x114)](_0x39df90)[_0x3bfa6f(0x268)]:this['_entityInit$'][_0x3bfa6f(0x12d)](_0x3e6431(_0x1d1b56=>_0x1d1b56[_0x3bfa6f(0xdd)]===_0x39df90),_0x5da533(_0x1728ff=>_0x1728ff['cursorInfo$']));}[_0x36b8a7(0x1c8)](){const _0x235d95=_0x36b8a7;this['_univerInstanceService'][_0x235d95(0xc5)](_0x31eb6a[_0x235d95(0x26c)])[_0x235d95(0x12d)](_0x5db60b(this['dispose$']))[_0x235d95(0x117)](async _0x491ce6=>{const _0x26a512=_0x235d95,_0x3299ad=_0x491ce6[_0x26a512(0x1ea)](),_0x1df5c6=await this[_0x26a512(0x11c)](_0x3299ad);this[_0x26a512(0x219)][_0x26a512(0xd0)](_0x1df5c6),this['_entities'][_0x26a512(0x207)](_0x3299ad,_0x1df5c6);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x31eb6a[_0x235d95(0x1e0)])[_0x235d95(0x12d)](_0x5db60b(this[_0x235d95(0x23c)]))[_0x235d95(0x12d)](_0x3e6431(_0x33c2ac=>!_0x33c2ac[_0x235d95(0x1ea)]()['startsWith']('__')))[_0x235d95(0x117)](async _0x3d3b88=>{const _0x55d8b9=_0x235d95,_0x516e8f=_0x3d3b88['getUnitId'](),_0x3b9392=await this[_0x55d8b9(0x162)](_0x516e8f);this[_0x55d8b9(0x219)][_0x55d8b9(0xd0)](_0x3b9392),this['_entities']['set'](_0x516e8f,_0x3b9392);}),_0x605e7c(this[_0x235d95(0x1cc)]['getTypeOfUnitDisposed$'](_0x31eb6a[_0x235d95(0x1e0)]),this[_0x235d95(0x1cc)]['getTypeOfUnitDisposed$'](_0x31eb6a[_0x235d95(0x26c)]))[_0x235d95(0x12d)](_0x5db60b(this[_0x235d95(0x23c)]))['subscribe'](_0x5ac024=>{const _0x29f06c=_0x235d95,_0xb7df7f=_0x5ac024[_0x29f06c(0x1ea)](),_0x436e16=this[_0x29f06c(0x116)][_0x29f06c(0x114)](_0xb7df7f);_0x436e16&&(_0x436e16[_0x29f06c(0x1bc)](),this[_0x29f06c(0x116)][_0x29f06c(0x173)](_0xb7df7f));});}async['_startSheetCollabCursor'](_0x178933){const _0x57d4f0=_0x36b8a7,_0x476a53=await this[_0x57d4f0(0x24f)][_0x57d4f0(0x2c1)](_0x178933),_0x293a35=this[_0x57d4f0(0x22c)][_0x57d4f0(0x1aa)](Me,_0x178933,_0x476a53);return _0x293a35[_0x57d4f0(0x199)](),_0x293a35;}async['_startDocCollabCursor'](_0x504ddf){const _0x46b2be=_0x36b8a7,_0x3ba4ff=await this['_collabSessionService'][_0x46b2be(0x2c1)](_0x504ddf),_0x52eaee=this[_0x46b2be(0x22c)][_0x46b2be(0x1aa)](Ue,_0x504ddf,_0x3ba4ff);return _0x52eaee[_0x46b2be(0x199)](),_0x52eaee;}};H=Ci([Se(0x0,_0x40aa84),Se(0x1,_0x2451db(_0x22de8d)),Se(0x2,_0x2451db(_0x462b59))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x2e52c2,_0x371a2e){const _0xcef139=_0x36b8a7;let {radius:_0x402aae,width:_0x2fe9d0,height:_0x3a79e6}=_0x371a2e;_0x402aae=_0x402aae!=null?_0x402aae:0x0,_0x2fe9d0=_0x2fe9d0!=null?_0x2fe9d0:0x1e,_0x3a79e6=_0x3a79e6!=null?_0x3a79e6:0x1e;let _0x39ff40=0x0,_0x14bfda=0x0,_0x487539=0x0;_0x39ff40=_0x14bfda=_0x487539=Math['min'](_0x402aae,_0x2fe9d0/0x2,_0x3a79e6/0x2),_0x2e52c2[_0xcef139(0x17a)](),_0x2e52c2[_0xcef139(0x252)](_0x39ff40,0x0),_0x2e52c2[_0xcef139(0x1d4)](_0x2fe9d0-_0x14bfda,0x0),_0x2e52c2[_0xcef139(0x1e3)](_0x2fe9d0-_0x14bfda,_0x14bfda,_0x14bfda,Math['PI']*0x3/0x2,0x0,!0x1),_0x2e52c2[_0xcef139(0x1d4)](_0x2fe9d0,_0x3a79e6-_0x487539),_0x2e52c2[_0xcef139(0x1e3)](_0x2fe9d0-_0x487539,_0x3a79e6-_0x487539,_0x487539,0x0,Math['PI']/0x2,!0x1),_0x2e52c2[_0xcef139(0x1d4)](0x0,_0x3a79e6),_0x2e52c2[_0xcef139(0x1d4)](0x0,_0x39ff40),_0x2e52c2[_0xcef139(0x1e3)](_0x39ff40,_0x39ff40,_0x39ff40,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2e52c2[_0xcef139(0x15b)](),_0x371a2e[_0xcef139(0x1f6)]&&(_0x2e52c2[_0xcef139(0x279)](),_0x2e52c2[_0xcef139(0x144)]=_0x371a2e['fill'],_0x371a2e['fillRule']===_0xcef139(0x1c4)?_0x2e52c2[_0xcef139(0x1f6)]('evenodd'):_0x2e52c2['fill'](),_0x2e52c2[_0xcef139(0x1a9)]());}class he extends _0x5ec0c7{constructor(_0x42a43a,_0x50c12f){const _0x3672a4=_0x36b8a7;super(_0x42a43a,_0x50c12f),_(this,_0x3672a4(0x1e4)),_(this,_0x3672a4(0x10c)),(this[_0x3672a4(0x1e4)]=_0x50c12f==null?void 0x0:_0x50c12f[_0x3672a4(0x1e4)],this[_0x3672a4(0x10c)]=_0x50c12f==null?void 0x0:_0x50c12f[_0x3672a4(0x10c)]);}static[_0x36b8a7(0x21b)](_0x4fc134,_0x4207b5){const _0x569edd=_0x36b8a7,{text:_0x232d58,color:_0x26d324}=_0x4207b5;_0x4fc134[_0x569edd(0x279)](),_0x4fc134[_0x569edd(0xef)]=_0x569edd(0x223);const _0x2c9f58=_0x4fc134[_0x569edd(0x1db)](_0x232d58)[_0x569edd(0x266)],_0x153dc5=Math[_0x569edd(0xe2)](_0x2c9f58+0x2*me,Qe);Oi(_0x4fc134,{'height':ee,'radius':0x4,'width':_0x153dc5,'fill':_0x26d324}),_0x4fc134[_0x569edd(0x144)]=_0x569edd(0x1d2);const _0x53058d=me,_0x129e05=ee-Ei,_0x4c00bc=Qe-0x2*me;if(_0x2c9f58>_0x4c00bc){let _0x450754='',_0x5ab03f=0x0;for(const _0x4b8749 of _0x232d58){const _0x23308c=_0x4fc134[_0x569edd(0x1db)](_0x4b8749)[_0x569edd(0x266)];if(_0x5ab03f+_0x23308c<=_0x4c00bc-_0x4fc134['measureText']('...')[_0x569edd(0x266)])_0x450754+=_0x4b8749,_0x5ab03f+=_0x23308c;else{_0x450754+=_0x569edd(0x139);break;}}_0x4fc134[_0x569edd(0x201)](_0x450754,_0x53058d,_0x129e05);}else _0x4fc134['fillText'](_0x232d58,_0x53058d,_0x129e05);_0x4fc134[_0x569edd(0x1a9)]();}[_0x36b8a7(0xe9)](_0x24f446){const _0x4f9630=_0x36b8a7;he[_0x4f9630(0x21b)](_0x24f446,this);}}const ge=_0x36b8a7(0x180),bi='collab-text-range-',Ti='collab-rect-range-',X=0x6,Ri=1.5,Ie=0x4,Di=1.5,Ni=_0x36b8a7(0x15f);class qe{constructor(_0x2dfca6,_0x510bf6,_0x5ea885,_0x2ec2ee){const _0x2c3a47=_0x36b8a7;_(this,_0x2c3a47(0xe0),[]),_(this,_0x2c3a47(0x25b),null),_(this,_0x2c3a47(0x1ab),null),_(this,'_anchorDot',null),_(this,_0x2c3a47(0xcc),null),_(this,_0x2c3a47(0x1f4),null),(this[_0x2c3a47(0x133)]=_0x2dfca6,this['_scene']=_0x510bf6,this['_docSkeleton']=_0x5ea885,this[_0x2c3a47(0xdc)]=_0x2ec2ee,this[_0x2c3a47(0x21e)]());}set[_0x36b8a7(0x124)](_0x38e926){const _0x529df6=_0x36b8a7;_0x38e926?(this['_anchorDot']&&this['_anchorDot'][_0x529df6(0xda)](),this[_0x529df6(0x1ab)]&&this[_0x529df6(0x1ab)][_0x529df6(0x132)]()):(this[_0x529df6(0x1c3)]&&this[_0x529df6(0x1c3)][_0x529df6(0x132)](),this[_0x529df6(0x1ab)]&&this[_0x529df6(0x1ab)][_0x529df6(0xda)]());}[_0x36b8a7(0x1bc)](){const _0x3dfaac=_0x36b8a7;for(const _0x14f8a9 of this[_0x3dfaac(0xe0)])_0x14f8a9['dispose']();this[_0x3dfaac(0x1ab)]&&this[_0x3dfaac(0x1ab)][_0x3dfaac(0x1bc)](),this[_0x3dfaac(0x1c3)]&&this[_0x3dfaac(0x1c3)]['dispose'](),this[_0x3dfaac(0x25b)]&&this[_0x3dfaac(0x25b)][_0x3dfaac(0x1bc)](),this[_0x3dfaac(0x1f4)]&&this[_0x3dfaac(0x1f4)]();}['_render'](){const _0x573cf0=_0x36b8a7;var _0x552b07;const {_docSkeleton:_0x2cf052,_document:_0x3b0049}=this,{color:_0x5b6144,name:_0x53335f,ranges:_0x1a287b}=this[_0x573cf0(0x133)],_0x3bbe98=_0x3b0049[_0x573cf0(0x127)](),{docsLeft:_0x2ef01e,docsTop:_0x29e030}=_0x3bbe98,_0x3f31dc=new _0x99ab12(_0x3bbe98,_0x2cf052);for(const {startOffset:_0xcf0d3f,endOffset:_0x54bfec,rangeType:_0x21070e,segmentId:_0x54b218,segmentPage:_0x4fa1a8,collapsed:_0x5323a8,isActive:_0x3daf4e}of _0x1a287b){const _0x13400f=_0x2cf052['findNodePositionByCharIndex'](_0xcf0d3f,!0x0,_0x54b218,_0x4fa1a8);let _0x5ec66c=_0x2cf052[_0x573cf0(0x29e)](_0x54bfec,!0x0,_0x54b218,_0x4fa1a8);if(_0x5ec66c==null&&(_0x5ec66c=_0x2cf052[_0x573cf0(0x29e)](_0x54bfec-0x1,!0x1,_0x54b218,_0x4fa1a8)),_0x3daf4e){const {contentBoxPointGroup:_0x5c46bc}=_0x3f31dc['getRangePointData'](_0x5ec66c,_0x5ec66c);if(_0x5c46bc['length']===0x0)continue;this[_0x573cf0(0x163)](_0x5b6144,_0x5c46bc,_0x2ef01e,_0x29e030,_0x53335f),this['_eventUnsubscribe']=this[_0x573cf0(0xe5)]();}if(_0x13400f&&_0x5ec66c){if(_0x21070e===_0x2a79f0[_0x573cf0(0x11d)]){const _0x41f727=new _0x55a7da(_0x3bbe98,_0x2cf052),{pointGroup:_0x1fd4d3}=(_0x552b07=_0x41f727[_0x573cf0(0x25e)](_0x13400f,_0x5ec66c))!=null?_0x552b07:{};if(_0x1fd4d3==null||_0x1fd4d3[_0x573cf0(0xce)]===0x0)continue;this[_0x573cf0(0x15a)](_0x5b6144,_0x1fd4d3,_0x2ef01e,_0x29e030);}else{if(!_0x5323a8){const {borderBoxPointGroup:_0x4c541b}=_0x3f31dc[_0x573cf0(0x25e)](_0x13400f,_0x5ec66c);if(_0x4c541b[_0x573cf0(0xce)]===0x0)continue;this[_0x573cf0(0x14c)](_0x5b6144,_0x4c541b,_0x2ef01e,_0x29e030);}}}}}[_0x36b8a7(0x163)](_0x527d44,_0x176258,_0x3484e0,_0x709b92,_0xb2f9fc){const _0x19cc2e=_0x36b8a7,_0x26feb6=this[_0x19cc2e(0x104)](_0x176258),{left:_0x2e6bb2,top:_0x1797a8,height:_0x507fa5}=_0x26feb6,_0x1a2ee9=this[_0x19cc2e(0x164)](),_0x4f43ec=Di/_0x1a2ee9,_0x268359=new _0x35b616(ge+_0x135de0[_0x19cc2e(0x27e)](X),{'left':_0x2e6bb2+_0x3484e0-_0x4f43ec,'top':_0x1797a8+_0x709b92,'height':_0x507fa5,'width':Ri,'fill':_0x527d44||_0xa0b44c(_0x21a853[_0x19cc2e(0x18e)],0x0),'strokeWidth':_0x4f43ec,'stroke':Ni,'evented':!0x0});this[_0x19cc2e(0x25b)]=_0x268359,this[_0x19cc2e(0x167)][_0x19cc2e(0x2a1)](_0x268359,_0x24618c);const _0x4ea612=new _0x35b616(ge+_0x135de0[_0x19cc2e(0x27e)](X),{'left':_0x2e6bb2+_0x3484e0-_0x4f43ec,'top':_0x1797a8+_0x709b92-Ie/0x2,'height':Ie,'width':Ie,'fill':_0x527d44||_0xa0b44c(_0x21a853[_0x19cc2e(0x18e)],0x0),'strokeWidth':0x0,'stroke':_0x527d44||_0xa0b44c(_0x21a853['black'],0x0),'evented':!0x1});this[_0x19cc2e(0x1c3)]=_0x4ea612,this[_0x19cc2e(0x167)]['addObject'](_0x4ea612,_0x24618c);const _0x43adb9=new he(ge+_0x135de0[_0x19cc2e(0x27e)](X),{'left':_0x2e6bb2+_0x3484e0-_0x4f43ec,'top':_0x1797a8+_0x709b92-ee,'text':_0xb2f9fc,'color':_0x527d44});this[_0x19cc2e(0x1ab)]=_0x43adb9,this[_0x19cc2e(0x167)][_0x19cc2e(0x2a1)](_0x43adb9,_0x24618c),this[_0x19cc2e(0x124)]=!0x1;}[_0x36b8a7(0xe5)](){const _0x3e1b78=_0x36b8a7,_0x150bbf=this[_0x3e1b78(0x25b)][_0x3e1b78(0x154)]['subscribeEvent'](()=>{const _0x19ec86=_0x3e1b78;this[_0x19ec86(0x124)]=!0x0;}),_0x57d00f=this[_0x3e1b78(0x25b)][_0x3e1b78(0xed)][_0x3e1b78(0x187)](()=>{const _0x1ebd12=_0x3e1b78;this[_0x1ebd12(0xcc)]&&clearTimeout(this[_0x1ebd12(0xcc)]),this[_0x1ebd12(0xcc)]=setTimeout(()=>{const _0x22759a=_0x1ebd12;this[_0x22759a(0x124)]=!0x1;},0x7d0);});return()=>{const _0x9936df=_0x3e1b78;_0x150bbf[_0x9936df(0x233)](),_0x57d00f['unsubscribe']();};}[_0x36b8a7(0x14c)](_0x223f6f,_0x5e2a96,_0x5e7fc0,_0x1b8afe){const _0x5c5971=_0x36b8a7,_0x5c8ca6=new _0x56c613(_0x223f6f)[_0x5c5971(0x270)](0.2)['toRgbString'](),_0x40561b=new _0x3ff6cd(bi+_0x135de0[_0x5c5971(0x27e)](X),{'pointsGroup':_0x5e2a96,'fill':_0x5c8ca6||_0xa0b44c(_0x21a853['black'],0.2),'left':_0x5e7fc0,'top':_0x1b8afe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c5971(0xe0)][_0x5c5971(0x16f)](_0x40561b),this['_scene'][_0x5c5971(0x2a1)](_0x40561b,_0x24618c);}[_0x36b8a7(0x15a)](_0x527c7a,_0x459c38,_0x396dfc,_0x43b206){const _0x41fc0d=_0x36b8a7,_0x203681=new _0x56c613(_0x527c7a)[_0x41fc0d(0x270)](0.2)[_0x41fc0d(0x108)](),_0x31b692=new _0x3ff6cd(Ti+_0x135de0['generateRandomId'](X),{'pointsGroup':_0x459c38,'fill':_0x203681||_0xa0b44c(_0x21a853['black'],0.2),'left':_0x396dfc,'top':_0x43b206,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x41fc0d(0xe0)][_0x41fc0d(0x16f)](_0x31b692),this[_0x41fc0d(0x167)]['addObject'](_0x31b692,_0x24618c);}[_0x36b8a7(0x104)](_0x5322ff){const _0xb7368b=_0x5322ff[0x0],_0x1a9e43=_0xb7368b[0x0],_0x21d6b3=_0xb7368b[0x2],{x:_0xfe2b50,y:_0xed536e}=_0x1a9e43,{x:_0x3eea6e,y:_0x26eb51}=_0x21d6b3;return{'left':_0xfe2b50,'top':_0xed536e,'width':_0x3eea6e-_0xfe2b50,'height':_0x26eb51-_0xed536e};}[_0x36b8a7(0x164)](){const _0x3d9aee=_0x36b8a7,{scaleX:_0x13a247,scaleY:_0xe08801}=this['_scene'][_0x3d9aee(0x1b0)]();return Math[_0x3d9aee(0x1fc)](_0x13a247,_0xe08801);}}var Ui=Object[_0x36b8a7(0x1e9)],Mi=(_0x2e82ce,_0x9e3c9,_0x465ec,_0x285739)=>{const _0x13d6a4=_0x36b8a7;for(var _0x238b9d=_0x285739>0x1?void 0x0:_0x285739?Ui(_0x9e3c9,_0x465ec):_0x9e3c9,_0x33128e=_0x2e82ce[_0x13d6a4(0xce)]-0x1,_0x4db75f;_0x33128e>=0x0;_0x33128e--)(_0x4db75f=_0x2e82ce[_0x33128e])&&(_0x238b9d=_0x4db75f(_0x238b9d)||_0x238b9d);return _0x238b9d;},Z=(_0x2972ee,_0x1e4128)=>(_0x39f475,_0xe1f089)=>_0x1e4128(_0x39f475,_0xe1f089,_0x2972ee);let Pe=class extends _0x10df6b{constructor(_0x33dd83,_0x3e1e8f,_0xad4258,_0x1ced75,_0x552f3d){const _0x218bd4=_0x36b8a7;super(),_(this,_0x218bd4(0xea),[]),_(this,_0x218bd4(0x11f),[]),(this[_0x218bd4(0xd4)]=_0x33dd83,this[_0x218bd4(0x1ed)]=_0x3e1e8f,this[_0x218bd4(0xff)]=_0xad4258,this[_0x218bd4(0x251)]=_0x1ced75,this[_0x218bd4(0x287)]=_0x552f3d,this[_0x218bd4(0x1c8)]());}[_0x36b8a7(0x1c8)](){const _0x318ee3=_0x36b8a7,_0x15ac6c=this[_0x318ee3(0xd4)][_0x318ee3(0x197)],_0x4222c9=this['_docSkeletonManagerService'];this[_0x318ee3(0xf2)](_0xfe710e([this[_0x318ee3(0xff)][_0x318ee3(0x2b9)](_0x15ac6c),this[_0x318ee3(0x287)][_0x318ee3(0x18a)]])[_0x318ee3(0x12d)](_0x5027a0(([_0x50dc6b,_0x957850])=>({'skeleton':_0x4222c9['getSkeleton'](),'cursors':[..._0x50dc6b['values']()][_0x318ee3(0x148)](_0x5c6b41=>({..._0x5c6b41,'color':this['_themeService']['getColorFromTheme'](_0x5c6b41[_0x318ee3(0x1e4)])}))})))[_0x318ee3(0x117)](_0x2da1b9=>{const _0x662d84=_0x318ee3;if(this[_0x662d84(0x225)](),_0x2da1b9){const {skeleton:_0x46abd4,cursors:_0x18ed8b}=_0x2da1b9;this['_updateCollabCursors'](_0x46abd4,_0x18ed8b);}})),this['_initResize'](),this[_0x318ee3(0x2b7)]();}[_0x36b8a7(0x261)](_0xcd6026,_0x3b96dd){const _0x4cf4d1=_0x36b8a7,{scene:_0x509784,mainComponent:_0x1bd594}=this[_0x4cf4d1(0xd4)],_0x16ff59=_0x3b96dd['map'](_0x127deb=>new qe(_0x127deb,_0x509784,_0xcd6026,_0x1bd594));this[_0x4cf4d1(0xea)]=_0x16ff59,this[_0x4cf4d1(0x11f)]=_0x3b96dd;}[_0x36b8a7(0x264)](){const _0x581af0=_0x36b8a7;this['_removeCollabCursors']();const {scene:_0x3f059c,mainComponent:_0x4f8ea6}=this[_0x581af0(0xd4)],_0x234fd9=this[_0x581af0(0x1ed)][_0x581af0(0x2ad)](),_0x4ba7e2=this[_0x581af0(0x11f)]['map'](_0x1f42d3=>new qe(_0x1f42d3,_0x3f059c,_0x234fd9,_0x4f8ea6));this['_cursorShapes']=_0x4ba7e2;}[_0x36b8a7(0x225)](){const _0x4b63b5=_0x36b8a7;this[_0x4b63b5(0xea)][_0x4b63b5(0xf7)](_0x42617b=>_0x42617b[_0x4b63b5(0x1bc)]()),this[_0x4b63b5(0xea)]=[];}[_0x36b8a7(0x2b7)](){const _0x2ab60a=_0x36b8a7,_0x3431bb=[_0x12b488['id']];this[_0x2ab60a(0xf2)](this['_commandService'][_0x2ab60a(0x246)](_0x39efeb=>{const _0x3c6611=_0x2ab60a;_0x3431bb['includes'](_0x39efeb['id'])&&_0x39efeb[_0x3c6611(0x1d1)][_0x3c6611(0x197)]===this[_0x3c6611(0xd4)][_0x3c6611(0x197)]&&this['_refreshCollabCursors']();}));}[_0x36b8a7(0x19b)](){const _0xd3efa9=_0x36b8a7;this[_0xd3efa9(0xf2)](_0x49fc66(this[_0xd3efa9(0xd4)]['engine'][_0xd3efa9(0xe4)])[_0xd3efa9(0x12d)](_0x2316f6(_0x8849e3=>_0x8849e3['type']===_0xbca3f8[_0xd3efa9(0x1a8)]),_0xc9e13e(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Pe=Mi([Z(0x1,_0x2451db(_0x12fc0e)),Z(0x2,_0x2451db(H)),Z(0x3,_0xf4fe45),Z(0x4,_0x2451db(_0x5a3a3d))],Pe);const Pi=0x1,Li=1.5;class wi extends _0x5ec0c7{constructor(_0x33a585,_0x52c5d7){const _0x10b9f5=_0x36b8a7;super(_0x33a585,_0x52c5d7),_(this,_0x10b9f5(0xe3)),_(this,_0x10b9f5(0x291),!0x1),_(this,_0x10b9f5(0x28c)),_(this,_0x10b9f5(0x26a),''),_(this,_0x10b9f5(0x13b),'top'),_(this,_0x10b9f5(0xf3)),(_0x52c5d7&&this['setShapeProps'](_0x52c5d7),this[_0x10b9f5(0x154)][_0x10b9f5(0x187)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x10b9f5(0xed)][_0x10b9f5(0x187)](()=>this[_0x10b9f5(0x10f)]({'hovered':!0x1})));}[_0x36b8a7(0x10f)](_0x4ff55a){const _0x57fb3c=_0x36b8a7;var _0x2e7846,_0x435edd,_0x3d2ce0,_0x4abd93,_0x431b7e,_0x156f67;this['_color']=(_0x2e7846=_0x4ff55a['color'])!=null?_0x2e7846:this[_0x57fb3c(0xe3)],this['_hovered']=(_0x435edd=_0x4ff55a[_0x57fb3c(0x1d0)])!=null?_0x435edd:this[_0x57fb3c(0x291)],this[_0x57fb3c(0x28c)]=(_0x3d2ce0=_0x4ff55a['range'])!=null?_0x3d2ce0:this[_0x57fb3c(0x28c)],this[_0x57fb3c(0x26a)]=(_0x4abd93=_0x4ff55a[_0x57fb3c(0x175)])!=null?_0x4abd93:this[_0x57fb3c(0x26a)],this[_0x57fb3c(0x13b)]=(_0x431b7e=_0x4ff55a[_0x57fb3c(0x249)])!=null?_0x431b7e:this[_0x57fb3c(0x13b)],this['_backgroundColor']=(_0x156f67=_0x4ff55a[_0x57fb3c(0x130)])!=null?_0x156f67:this[_0x57fb3c(0xf3)],this[_0x57fb3c(0x16d)]({'width':_0x4ff55a[_0x57fb3c(0x266)],'height':_0x4ff55a['height']});}[_0x36b8a7(0xc8)](_0x2853b3){const _0x536566=_0x36b8a7,{row:_0x17a27f,column:_0x17bcbe}=_0x2853b3;if(_0x17a27f>=this[_0x536566(0x28c)][_0x536566(0x24d)]&&_0x17a27f<=this['_range'][_0x536566(0x1e8)]&&_0x17bcbe>=this[_0x536566(0x28c)]['startColumn']&&_0x17bcbe<=this[_0x536566(0x28c)]['endColumn']){this[_0x536566(0x10f)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x36b8a7(0x289)](_0x14de82){return!0x1;}[_0x36b8a7(0xe9)](_0x3e50f5){const _0x11d582=_0x36b8a7;_0x35b616['drawWith'](_0x3e50f5,{'width':this['width'],'height':this[_0x11d582(0x177)],'strokeWidth':Li,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x11d582(0xf3)]}),this[_0x11d582(0x291)]&&(_0x3e50f5[_0x11d582(0x279)](),_0x3e50f5[_0x11d582(0x232)](0x1,0x0,0x0,0x1,this[_0x11d582(0x266)],this[_0x11d582(0x13b)]==='bottom'?0x0:-0x14),he[_0x11d582(0x21b)](_0x3e50f5,{'text':this['_name'],'color':this[_0x11d582(0xe3)]}),_0x3e50f5['restore']());}}var Ai=Object[_0x36b8a7(0x1e9)],yi=(_0x5b8e92,_0x190b6e,_0x33f627,_0x7f3de4)=>{const _0x50c74a=_0x36b8a7;for(var _0x4a776e=_0x7f3de4>0x1?void 0x0:_0x7f3de4?Ai(_0x190b6e,_0x33f627):_0x190b6e,_0xa1bafb=_0x5b8e92[_0x50c74a(0xce)]-0x1,_0x545f72;_0xa1bafb>=0x0;_0xa1bafb--)(_0x545f72=_0x5b8e92[_0xa1bafb])&&(_0x4a776e=_0x545f72(_0x4a776e)||_0x4a776e);return _0x4a776e;},ve=(_0x632769,_0x5df3e5)=>(_0x31936c,_0x4736f2)=>_0x5df3e5(_0x31936c,_0x4736f2,_0x632769);const $i=0x1389;let Le=class extends _0x10df6b{constructor(_0x151be9,_0x4f3438,_0x2699be,_0x2f9969){const _0x40fc67=_0x36b8a7;super(),_(this,_0x40fc67(0x11f),new Set()),_(this,_0x40fc67(0x1c9),null),(this['_context']=_0x151be9,this[_0x40fc67(0x1b5)]=_0x4f3438,this[_0x40fc67(0xff)]=_0x2699be,this[_0x40fc67(0x287)]=_0x2f9969,this[_0x40fc67(0x1c8)]());}[_0x36b8a7(0x1c8)](){const _0x1b1926=_0x36b8a7;this[_0x1b1926(0x1b5)][_0x1b1926(0x1c2)][_0x1b1926(0x12d)](_0x183315(this[_0x1b1926(0x23c)]),_0x385182(_0x225b3e=>{const _0xc48f68=_0x1b1926;if(_0x225b3e){const _0x496da4=_0x225b3e[_0xc48f68(0x2a6)];return _0xfe710e(this['_collabCursorController'][_0xc48f68(0x2b9)](this[_0xc48f68(0xd4)]['unitId']),this[_0xc48f68(0x287)]['currentTheme$'])['pipe'](_0x5027a0(([_0x1de5dd,_0x2bec86])=>{const _0x2021d4=_0xc48f68,_0x1294e1=new Map();return _0x1de5dd[_0x2021d4(0xf7)]((_0x48e419,_0x4f6068)=>{const _0x5d036c=_0x2021d4;if(_0x48e419[_0x5d036c(0x152)]===_0x496da4){const _0x8f3427={..._0x48e419};_0x8f3427[_0x5d036c(0x1e4)]=this['_themeService'][_0x5d036c(0x1af)](_0x48e419[_0x5d036c(0x1e4)]),_0x1294e1[_0x5d036c(0x207)](_0x4f6068,_0x8f3427);}}),{'skeleton':_0x225b3e,'cursors':_0x1294e1};}));}return _0x3d4416({'skeleton':null,'cursors':new Map()});}))[_0x1b1926(0x117)](({skeleton:_0x2ad8ad,cursors:_0xad54a7})=>{const _0x2c2ab6=_0x1b1926;this[_0x2c2ab6(0x225)](),_0x2ad8ad&&this[_0x2c2ab6(0x261)](_0x2ad8ad,_0xad54a7);}),this[_0x1b1926(0x1b5)][_0x1b1926(0x1c2)][_0x1b1926(0x117)](_0x5bfe59=>{const _0x104964=_0x1b1926;if(_0x5bfe59==null)return;const {skeleton:_0x12a192}=_0x5bfe59,{scene:_0x3085fa}=this[_0x104964(0xd4)];_0x3085fa['onPointerMove$'][_0x104964(0x187)](_0x4ac8bc(_0x1ca4d4=>{const _0x25ccb3=_0x104964;var _0x47e639,_0x1ae726;const {offsetX:_0x58eee3,offsetY:_0x1d39c8}=_0x1ca4d4,{x:_0xdd7f9c,y:_0x1fe50e}=_0x3085fa['getRelativeToViewportCoord'](_0x13aba9[_0x25ccb3(0x157)]([_0x58eee3,_0x1d39c8])),{scaleX:_0x45c4dc,scaleY:_0x1d4e4e}=_0x3085fa[_0x25ccb3(0x1b0)](),_0x129b9c=_0x3085fa[_0x25ccb3(0x1f0)](_0x390c3a['VIEW_MAIN']),_0x41b37a=_0x3085fa['getVpScrollXYInfoByPosToVp'](_0x13aba9[_0x25ccb3(0x157)]([_0xdd7f9c,_0x1fe50e]),_0x129b9c),_0x2b0d46=_0x12a192[_0x25ccb3(0x21d)](_0x58eee3,_0x1d39c8,_0x45c4dc,_0x1d4e4e,_0x41b37a);((_0x47e639=this['_lastPointer'])==null?void 0x0:_0x47e639['column'])===_0x2b0d46[_0x25ccb3(0xc4)]&&((_0x1ae726=this[_0x25ccb3(0x1c9)])==null?void 0x0:_0x1ae726[_0x25ccb3(0x2a3)])===_0x2b0d46[_0x25ccb3(0x2a3)]||this[_0x25ccb3(0x11f)][_0x25ccb3(0xf7)](_0x448ab1=>{_0x448ab1['onMouseMove'](_0x2b0d46);});},0x64));});}['_updateCollabCursors'](_0x10b213,_0x5bad12){const _0x1449b5=_0x36b8a7;var _0x370d3a;const _0x29fefc=(_0x370d3a=this[_0x1449b5(0x1b5)][_0x1449b5(0x2b3)]())==null?void 0x0:_0x370d3a[_0x1449b5(0x1ee)];if(!_0x29fefc)return;const _0x1160c8=this[_0x1449b5(0x110)]();if(!_0x1160c8)return;this['_cursors'][_0x1449b5(0xf7)](_0x4058a9=>{const _0x1c6a48=_0x1449b5;_0x4058a9[_0x1c6a48(0x205)]();});const {scene:_0x484b74}=_0x1160c8,_0x514a39=xi(Array[_0x1449b5(0x1a6)](_0x5bad12['values']()))[_0x1449b5(0x230)](_0x428c31=>{const _0x37b021=_0x1449b5,{color:_0x11e404,range:_0x25557c,name:_0x4d547d,selection:_0xe6be8,sheetID:_0x382bdc}=_0x428c31,{startColumn:_0x4bef9c,startRow:_0x28b4c9,endColumn:_0x819bdd,endRow:_0x74ead7}=_0x25557c,_0x15df23=_0x135831(_0x28b4c9,_0x4bef9c,_0x484b74,_0x29fefc),_0x33d86f=_0x135831(_0x74ead7,_0x819bdd,_0x484b74,_0x29fefc),{columnHeaderHeightAndMarginTop:_0x4a101f}=_0x29fefc,{startX:_0x5c6937,startY:_0x18c6c9}=_0x15df23,{endX:_0x46b414,endY:_0x1f0f1c}=_0x33d86f,_0x268f39=_0x46b414-_0x5c6937,_0x1948e7=_0x1f0f1c-_0x18c6c9,_0x18ff0a={'labelPosition':_0x18c6c9-_0x4a101f>=ee?_0x37b021(0x25c):_0x37b021(0x158),'sheetID':_0x382bdc,'range':_0x25557c,'color':_0x11e404,'name':_0x4d547d,'selection':_0xe6be8,'left':_0x5c6937,'top':_0x18c6c9,'width':_0x268f39,'height':_0x1948e7,'evented':!0x1,'zIndex':$i};return new wi(_0x4d547d,_0x18ff0a);});_0x484b74[_0x1449b5(0x1e5)](_0x514a39,Pi),this[_0x1449b5(0x11f)]=new Set(_0x514a39);}['_removeCollabCursors'](){const _0x456860=_0x36b8a7;var _0xb63d98;(_0xb63d98=this[_0x456860(0x11f)])==null||_0xb63d98[_0x456860(0xf7)](_0x3b7393=>_0x3b7393[_0x456860(0x1bc)]());}['_getSheetObject'](){const _0x3a4165=_0x36b8a7;return _0x4586e3(this[_0x3a4165(0xd4)][_0x3a4165(0x210)],this[_0x3a4165(0xd4)]);}};Le=yi([ve(0x1,_0x2451db(_0x2744dd)),ve(0x2,_0x2451db(H)),ve(0x3,_0x2451db(_0x5a3a3d))],Le);function xi(_0x1b41ef){const _0x5a3e55=_0x36b8a7,_0x2cf051=new Map();return _0x1b41ef['forEach'](_0x38b523=>{const _0x487de5=_0x39ef;if(_0x2cf051[_0x487de5(0x174)](_0x38b523[_0x487de5(0x182)])){const _0x1b0908=_0x2cf051[_0x487de5(0x114)](_0x38b523[_0x487de5(0x182)]);_0x1b0908['name']+=',\x20'+_0x38b523[_0x487de5(0x175)];}else _0x2cf051[_0x487de5(0x207)](_0x38b523[_0x487de5(0x182)],_0x38b523);}),Array[_0x5a3e55(0x1a6)](_0x2cf051[_0x5a3e55(0xcf)]());}var v=function(){const _0xb9c858=_0x36b8a7;return v=Object[_0xb9c858(0xd2)]||function(_0x33ca47){const _0x139370=_0xb9c858;for(var _0x185bda,_0x5d6be1=0x1,_0x11d56e=arguments[_0x139370(0xce)];_0x5d6be1<_0x11d56e;_0x5d6be1++){_0x185bda=arguments[_0x5d6be1];for(var _0x361e9c in _0x185bda)Object[_0x139370(0x1eb)][_0x139370(0x1d9)]['call'](_0x185bda,_0x361e9c)&&(_0x33ca47[_0x361e9c]=_0x185bda[_0x361e9c]);}return _0x33ca47;},v[_0xb9c858(0x1c1)](this,arguments);},Bi=function(_0x534e74,_0x4d5dae){const _0x1ddd08=_0x36b8a7;var _0x2cf102={};for(var _0x24851f in _0x534e74)Object[_0x1ddd08(0x1eb)][_0x1ddd08(0x1d9)][_0x1ddd08(0x23d)](_0x534e74,_0x24851f)&&_0x4d5dae[_0x1ddd08(0x2a5)](_0x24851f)<0x0&&(_0x2cf102[_0x24851f]=_0x534e74[_0x24851f]);if(_0x534e74!=null&&typeof Object[_0x1ddd08(0x272)]==_0x1ddd08(0x13a)){for(var _0x310740=0x0,_0x24851f=Object['getOwnPropertySymbols'](_0x534e74);_0x310740<_0x24851f[_0x1ddd08(0xce)];_0x310740++)_0x4d5dae[_0x1ddd08(0x2a5)](_0x24851f[_0x310740])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x1ddd08(0x23d)](_0x534e74,_0x24851f[_0x310740])&&(_0x2cf102[_0x24851f[_0x310740]]=_0x534e74[_0x24851f[_0x310740]]);}return _0x2cf102;},je=_0x29f9d0(function(_0x23f318,_0x1623f4){const _0x3c699c=_0x36b8a7;var _0x84d084=_0x23f318['icon'],_0x11ed47=_0x23f318['id'],_0x1fe369=_0x23f318[_0x3c699c(0x2bd)],_0x38a534=_0x23f318[_0x3c699c(0x2ab)],_0x541b0e=Bi(_0x23f318,[_0x3c699c(0x1e6),'id',_0x3c699c(0x2bd),'extend']),_0x3b6b77=_0x3c699c(0x1ef)[_0x3c699c(0x26e)](_0x11ed47,'\x20')['concat'](_0x1fe369||'')[_0x3c699c(0x2ba)](),_0x37e82c=_0x12d408('_'[_0x3c699c(0x26e)](ji()));return Rt(_0x84d084,''[_0x3c699c(0x26e)](_0x11ed47),{'defIds':_0x84d084[_0x3c699c(0x288)],'idSuffix':_0x37e82c[_0x3c699c(0x1bf)]},v({'ref':_0x1623f4,'className':_0x3b6b77},_0x541b0e),_0x38a534);});function Rt(_0x494e79,_0x2db74b,_0x434a1d,_0x481f9e,_0x56136d){const _0x3b293e=_0x36b8a7;return _0x2d92d7(_0x494e79[_0x3b293e(0x1a4)],v(v({'key':_0x2db74b},ki(_0x494e79,_0x434a1d,_0x56136d)),_0x481f9e),(Hi(_0x494e79,_0x434a1d)[_0x3b293e(0x181)]||[])[_0x3b293e(0x230)](function(_0x49e6b7,_0x5dc1d6){const _0x19dcd6=_0x3b293e;return Rt(_0x49e6b7,''[_0x19dcd6(0x26e)](_0x2db74b,'-')[_0x19dcd6(0x26e)](_0x494e79[_0x19dcd6(0x1a4)],'-')[_0x19dcd6(0x26e)](_0x5dc1d6),_0x434a1d,void 0x0,_0x56136d);}));}function ki(_0x367378,_0xd65853,_0x2efc5a){const _0x4b6e0d=_0x36b8a7;var _0x580af8=v({},_0x367378[_0x4b6e0d(0x10e)]);_0x2efc5a!=null&&_0x2efc5a[_0x4b6e0d(0x1da)]&&_0x580af8[_0x4b6e0d(0x1f6)]==='colorChannel1'&&(_0x580af8[_0x4b6e0d(0x1f6)]=_0x2efc5a[_0x4b6e0d(0x1da)]),_0x367378[_0x4b6e0d(0x1a4)]===_0x4b6e0d(0x13c)&&_0x580af8['id']&&(_0x580af8['id']=_0x580af8['id']+_0xd65853[_0x4b6e0d(0x1c5)]),Object['entries'](_0x580af8)[_0x4b6e0d(0xf7)](function(_0x25e525){const _0x1f9066=_0x4b6e0d;var _0x1aa826=_0x25e525[0x0],_0x51c61a=_0x25e525[0x1];_0x1aa826===_0x1f9066(0x13c)&&typeof _0x51c61a==_0x1f9066(0x2bb)&&(_0x580af8[_0x1aa826]=_0x51c61a[_0x1f9066(0x256)](/url\(#(.*)\)/,'url(#$1'[_0x1f9066(0x26e)](_0xd65853['idSuffix'],')')));});var _0x3628d2=_0xd65853[_0x4b6e0d(0x288)];return!_0x3628d2||_0x3628d2['length']===0x0||(_0x367378['tag']==='use'&&_0x580af8[_0x4b6e0d(0x263)]&&(_0x580af8[_0x4b6e0d(0x263)]=_0x580af8[_0x4b6e0d(0x263)]+_0xd65853[_0x4b6e0d(0x1c5)]),Object[_0x4b6e0d(0x1e2)](_0x580af8)[_0x4b6e0d(0xf7)](function(_0x3491b1){const _0x23ca09=_0x4b6e0d;var _0xcd9871=_0x3491b1[0x0],_0x20376e=_0x3491b1[0x1];typeof _0x20376e==_0x23ca09(0x2bb)&&(_0x580af8[_0xcd9871]=_0x20376e['replace'](/url\(#(.*)\)/,_0x23ca09(0x13f)[_0x23ca09(0x26e)](_0xd65853[_0x23ca09(0x1c5)],')')));})),_0x580af8;}function Hi(_0x35f1f8,_0x129648){const _0x221914=_0x36b8a7;var _0x17af2f,_0x393b0f=_0x129648['defIds'];return!_0x393b0f||_0x393b0f['length']===0x0?_0x35f1f8:_0x35f1f8[_0x221914(0x1a4)]==='defs'&&(!((_0x17af2f=_0x35f1f8[_0x221914(0x181)])===null||_0x17af2f===void 0x0)&&_0x17af2f[_0x221914(0xce)])?v(v({},_0x35f1f8),{'children':_0x35f1f8[_0x221914(0x181)][_0x221914(0x230)](function(_0x324cf1){const _0xd74d4=_0x221914;return typeof _0x324cf1[_0xd74d4(0x10e)]['id']==_0xd74d4(0x2bb)&&_0x393b0f&&_0x393b0f[_0xd74d4(0x2a5)](_0x324cf1[_0xd74d4(0x10e)]['id'])>-0x1?v(v({},_0x324cf1),{'attrs':v(v({},_0x324cf1['attrs']),{'id':_0x324cf1[_0xd74d4(0x10e)]['id']+_0x129648[_0xd74d4(0x1c5)]})}):_0x324cf1;})}):_0x35f1f8;}function ji(){const _0x45d9ad=_0x36b8a7;return Math[_0x45d9ad(0xf0)]()[_0x45d9ad(0x255)](0x24)[_0x45d9ad(0x193)](0x2,0x8);}je[_0x36b8a7(0x1fb)]='UniverIcon';var Yi={'tag':_0x36b8a7(0x1fd),'attrs':{'fill':_0x36b8a7(0xc7),'viewBox':_0x36b8a7(0xf5),'width':_0x36b8a7(0xfa),'height':_0x36b8a7(0xfa)},'children':[{'tag':'g','attrs':{'clipPath':_0x36b8a7(0x1e1)},'children':[{'tag':_0x36b8a7(0x115),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x36b8a7(0x239),'strokeLinejoin':_0x36b8a7(0x239),'strokeWidth':1.2}}]},{'tag':_0x36b8a7(0x17c),'attrs':{},'children':[{'tag':_0x36b8a7(0x247),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x36b8a7(0x105)}}]}]}],'defIds':[_0x36b8a7(0x126)]},Dt=_0x29f9d0(function(_0x50e3c2,_0x31d848){const _0x45f6bd=_0x36b8a7;return _0x2d92d7(je,Object[_0x45f6bd(0xd2)]({},_0x50e3c2,{'id':_0x45f6bd(0x153),'ref':_0x31d848,'icon':Yi}));});Dt[_0x36b8a7(0x1fb)]=_0x36b8a7(0x150);var Fi={'tag':_0x36b8a7(0x1fd),'attrs':{'fill':_0x36b8a7(0xc7),'viewBox':_0x36b8a7(0x220),'width':_0x36b8a7(0xfa),'height':_0x36b8a7(0xfa)},'children':[{'tag':'g','attrs':{'clipPath':_0x36b8a7(0x2bc)},'children':[{'tag':'path','attrs':{'stroke':_0x36b8a7(0x22d),'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':_0x36b8a7(0x239),'strokeLinejoin':_0x36b8a7(0x239),'strokeWidth':1.2}}]},{'tag':_0x36b8a7(0x17c),'attrs':{},'children':[{'tag':_0x36b8a7(0x247),'attrs':{'id':_0x36b8a7(0x2a4)},'children':[{'tag':_0x36b8a7(0x115),'attrs':{'fill':_0x36b8a7(0x121),'d':_0x36b8a7(0x105),'transform':_0x36b8a7(0x1a3)}}]}]}],'defIds':[_0x36b8a7(0x2a4)]},Nt=_0x29f9d0(function(_0x4066d7,_0x576c6f){const _0x1c16ef=_0x36b8a7;return _0x2d92d7(je,Object[_0x1c16ef(0xd2)]({},_0x4066d7,{'id':_0x1c16ef(0x1d3),'ref':_0x576c6f,'icon':Fi}));});Nt[_0x36b8a7(0x1fb)]=_0x36b8a7(0x26b);function Wi(_0x492726){const _0x3c96b8=_0x36b8a7;switch(_0x492726){case _0x1aa68f[_0x3c96b8(0x20e)]:return _0x3c96b8(0x208);case _0x1aa68f['CONFLICT']:return'collabStatus.conflict';case _0x1aa68f[_0x3c96b8(0x14a)]:return _0x3c96b8(0x22e);case _0x1aa68f[_0x3c96b8(0x2ae)]:return _0x3c96b8(0x21c);case _0x1aa68f[_0x3c96b8(0x24b)]:case _0x1aa68f[_0x3c96b8(0x14b)]:return _0x3c96b8(0x1b7);case _0x1aa68f[_0x3c96b8(0x138)]:case _0x1aa68f[_0x3c96b8(0x1de)]:return _0x3c96b8(0xf8);}}function Vi(_0x465409){const _0x3b20ac=_0x36b8a7,{status$:_0x5b0e9a}=_0x465409,_0x2aaa87=_0x25eb38(_0x5b0e9a,_0x1aa68f['NOT_COLLAB']),_0x5468a0=_0x18fa6b(_0x591d33),_0x17301c=_0x18fa6b(_0x462b59),_0x2fa632=_0x2aaa87!==_0x1aa68f[_0x3b20ac(0x20e)],_0x34265d=_0x5468a0['t'](Wi(_0x2aaa87)),_0x1c6e23=_0x2fa632?_0x5eb5aa(Nt,{}):_0x5eb5aa(Dt,{}),_0x39c365=_0x4c08e8(()=>{_0x2fa632||_0x17301c['reconnect']();},[_0x2fa632,_0x17301c]);function _0x429900(){const _0x1abf3e=_0x3b20ac;return _0x1d1d1b(_0x1abf3e(0x140),{'className':_0x1abf3e(0x1cb),'onClick':_0x39c365,'children':[_0x5eb5aa(_0x1abf3e(0x140),{'className':_0x2402a8(_0x1abf3e(0x1f3),{'univer-text-green-500':_0x2fa632,'univer-text-red-500':!_0x2fa632}),'children':_0x1c6e23}),_0x5eb5aa(_0x1abf3e(0x140),{'className':_0x1abf3e(0x292),'children':_0x34265d})]});}return _0x2fa632?_0x429900():_0x5eb5aa(_0x145e14,{'title':_0x5468a0['t'](_0x3b20ac(0x244)),'children':_0x429900()});}var Xi=Object[_0x36b8a7(0x1e9)],Gi=(_0x50d24c,_0x3a6d16,_0x41e2f1,_0x50e5a5)=>{const _0x323b79=_0x36b8a7;for(var _0x5ea9fb=_0x50e5a5>0x1?void 0x0:_0x50e5a5?Xi(_0x3a6d16,_0x41e2f1):_0x3a6d16,_0x5ad8af=_0x50d24c[_0x323b79(0xce)]-0x1,_0x3da553;_0x5ad8af>=0x0;_0x5ad8af--)(_0x3da553=_0x50d24c[_0x5ad8af])&&(_0x5ea9fb=_0x3da553(_0x5ea9fb)||_0x5ea9fb);return _0x5ea9fb;},Q=(_0xb47c7b,_0x3134fd)=>(_0x2b81a0,_0x568d5f)=>_0x3134fd(_0x2b81a0,_0x568d5f,_0xb47c7b);let te=class extends _0x296a47{constructor(_0x5ccfc5,_0x3099a4,_0xb83045,_0x59a070){const _0x6645e=_0x36b8a7;super(),_(this,_0x6645e(0x2b1),new _0x440507(_0x1aa68f[_0x6645e(0x2ae)])),(this[_0x6645e(0x1cc)]=_0x5ccfc5,this[_0x6645e(0x22c)]=_0x3099a4,this['_collaborationController']=_0xb83045,this[_0x6645e(0xd6)]=_0x59a070,this[_0x6645e(0x1ac)](),this[_0x6645e(0x235)]());}[_0x36b8a7(0x235)](){const _0x267077=_0x36b8a7;this[_0x267077(0xf2)](this['_univerInstanceService']['focused$'][_0x267077(0x12d)](_0x5da533(()=>{const _0x30acd4=_0x267077,_0x158dcc=this[_0x30acd4(0x1cc)][_0x30acd4(0xfc)]();return _0x158dcc?this[_0x30acd4(0x118)]['getCollabEntity$'](_0x158dcc[_0x30acd4(0x1ea)]()):_0x3d4416(null);}),_0x5da533(_0x381ff8=>_0x381ff8?_0x381ff8['status$']:_0x3d4416(_0x1aa68f['NOT_COLLAB'])))[_0x267077(0x117)](_0xd4e08e=>{const _0x50d1bc=_0x267077;this['_status$'][_0x50d1bc(0xd0)](_0xd4e08e);}));}[_0x36b8a7(0x1ac)](){const _0x45b77f=_0x36b8a7;this['disposeWithMe'](this[_0x45b77f(0xd6)][_0x45b77f(0x27a)](_0x247166[_0x45b77f(0x12c)],()=>_0x37468c(Ki({'status$':this[_0x45b77f(0x2b1)]['asObservable']()}),this[_0x45b77f(0x22c)])));}};te=Gi([Q(0x0,_0x40aa84),Q(0x1,_0x2451db(_0x22de8d)),Q(0x2,_0x2451db(_0x39c592)),Q(0x3,_0x5dfab7)],te);function Ki(_0x4ca605){const {status$:_0x11f84d}=_0x4ca605;return function(){return _0x5eb5aa(Vi,{'status$':_0x11f84d});};}var zi=Object['getOwnPropertyDescriptor'],Ji=(_0xbed43e,_0x46c630,_0x461ea0,_0x875976)=>{for(var _0x309759=_0x875976>0x1?void 0x0:_0x875976?zi(_0x46c630,_0x461ea0):_0x46c630,_0x18a3d2=_0xbed43e['length']-0x1,_0x1da8f5;_0x18a3d2>=0x0;_0x18a3d2--)(_0x1da8f5=_0xbed43e[_0x18a3d2])&&(_0x309759=_0x1da8f5(_0x309759)||_0x309759);return _0x309759;},B=(_0x538d1d,_0x57975d)=>(_0x24a92b,_0xfd4fdb)=>_0x57975d(_0x24a92b,_0xfd4fdb,_0x538d1d);let se=class extends _0x296a47{constructor(_0x137924,_0x4b3d7c,_0x101e38,_0x166716,_0x1dfbbb,_0x53d317){const _0x30d316=_0x36b8a7;super(),this['_beforeCloseService']=_0x137924,this['_localCacheService']=_0x4b3d7c,this[_0x30d316(0x147)]=_0x101e38,this['_messageService']=_0x166716,this['_notificationService']=_0x1dfbbb,this[_0x30d316(0x1f7)]=_0x53d317,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x36b8a7(0x294)](){const _0x11c9a7=_0x36b8a7;this[_0x11c9a7(0xf2)](this[_0x11c9a7(0x14d)][_0x11c9a7(0x13d)](()=>{const _0x8e8e4e=_0x11c9a7;if(this['_localCacheService'][_0x8e8e4e(0x18b)]['size'])return this[_0x8e8e4e(0x1f7)]['t'](_0x8e8e4e(0xee));}));}['_initEvent'](){const _0x1cc3df=_0x36b8a7;this[_0x1cc3df(0xf2)](this[_0x1cc3df(0x147)][_0x1cc3df(0x23e)]['subscribe'](_0xc6a053=>{const _0x49275a=_0x1cc3df;_0xc6a053['id']===_0x5df80c[_0x49275a(0x20d)]&&this[_0x49275a(0x296)][_0x49275a(0x132)]({'type':_0x2a8577[_0x49275a(0x1f5)],'content':this[_0x49275a(0x1f7)]['t'](_0x49275a(0x17f))}),_0xc6a053['id']===_0x5df80c[_0x49275a(0x12e)]&&this['_messageService']['show']({'type':_0x2a8577[_0x49275a(0x1f5)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0xc6a053['id']===_0x5df80c['PERMISSION_DENIED']&&this['_notificationService'][_0x49275a(0x132)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x49275a(0x1f7)]['t'](_0x49275a(0x1bb)),'type':_0x49275a(0x1a7),'duration':0x0}),_0xc6a053['id']===_0x5df80c[_0x49275a(0x1a0)]&&this[_0x49275a(0x296)][_0x49275a(0x132)]({'type':_0x2a8577[_0x49275a(0x262)],'content':this[_0x49275a(0x1f7)]['t'](_0x49275a(0x20a))+'('+_0xc6a053[_0x49275a(0x1fe)]+')'}),_0xc6a053['id']===_0x5df80c[_0x49275a(0x25a)]&&this['_messageService'][_0x49275a(0x132)]({'type':_0x2a8577[_0x49275a(0x1f5)],'content':this[_0x49275a(0x1f7)]['t'](_0xc6a053[_0x49275a(0x1fe)]||'')}),_0xc6a053['id']===_0x5df80c['SOCKET_FAILED_RETRY']&&this[_0x49275a(0x296)][_0x49275a(0x132)]({'type':_0x2a8577[_0x49275a(0x1f5)],'content':this['_localeService']['t']('session.will-retry')}),_0xc6a053['id']===_0x5df80c[_0x49275a(0xd3)]&&this[_0x49275a(0x296)][_0x49275a(0x132)]({'type':_0x2a8577[_0x49275a(0x262)],'content':this[_0x49275a(0x1f7)]['t'](_0x49275a(0x185))}),_0xc6a053['id']===_0x5df80c[_0x49275a(0x125)]&&this[_0x49275a(0x296)][_0x49275a(0x132)]({'type':_0x2a8577[_0x49275a(0x262)],'content':this[_0x49275a(0x1f7)]['t']('session.collaboration-timeout')});}));}};se=Ji([B(0x0,_0x42100c),B(0x1,_0x21183c),B(0x2,_0x2451db(_0x1edad7)),B(0x3,_0x472215),B(0x4,_0xcf4a30),B(0x5,_0x2451db(_0x591d33))],se);const Zi=_0x36b8a7(0x1b2),et={},Ut=_0x14f170(_0x36b8a7(0x200));var Qi=Object[_0x36b8a7(0x1e9)],qi=(_0x5c6651,_0x4001d1,_0x566b95,_0x24047f)=>{const _0x23d3d7=_0x36b8a7;for(var _0x4a8079=_0x24047f>0x1?void 0x0:_0x24047f?Qi(_0x4001d1,_0x566b95):_0x4001d1,_0x5618e7=_0x5c6651[_0x23d3d7(0xce)]-0x1,_0x3796f5;_0x5618e7>=0x0;_0x5618e7--)(_0x3796f5=_0x5c6651[_0x5618e7])&&(_0x4a8079=_0x3796f5(_0x4a8079)||_0x4a8079);return _0x4a8079;},G=(_0xad76b7,_0x28eae6)=>(_0x4554bc,_0x3d09a2)=>_0x28eae6(_0x4554bc,_0x3d09a2,_0xad76b7);let ie=class extends _0x10df6b{constructor(_0x36720a,_0x40a47e,_0x31a292,_0x5e858b,_0x40b444){const _0x3204d6=_0x36b8a7;super(),this[_0x3204d6(0x29b)]=_0x36720a,this[_0x3204d6(0xcd)]=_0x40a47e,this[_0x3204d6(0x251)]=_0x31a292,this[_0x3204d6(0x2b5)]=_0x5e858b,_0x40b444?_0x40b444==null||_0x40b444['whenReady']()[_0x3204d6(0xfd)](()=>this[_0x3204d6(0x1c8)]()):(this['_logService'][_0x3204d6(0xc6)](_0x3204d6(0x26d),_0x3204d6(0x134)),this[_0x3204d6(0x1c8)]());}async[_0x36b8a7(0x1c8)](){const _0x567b7c=_0x36b8a7,_0xa8a0f8=this[_0x567b7c(0x29b)][_0x567b7c(0x2a9)](_0x567b7c(0x210)),_0x417587=this[_0x567b7c(0x29b)][_0x567b7c(0x2a9)](_0x567b7c(0x1cf)),_0x1d3dca=this['_urlService'][_0x567b7c(0x2a9)]('subunit');if(!_0xa8a0f8||!_0x417587){this[_0x567b7c(0xcd)]['debug'](_0x567b7c(0x26d),_0x567b7c(0x27f));return;}const _0x256d8a=await this[_0x567b7c(0x2b5)]['loadUnit'](_0xa8a0f8,Number(_0x417587),_0x1d3dca);_0x256d8a&&_0x256d8a instanceof _0x402a55&&this[_0x567b7c(0x25d)](_0x256d8a);}async[_0x36b8a7(0x25d)](_0x20f714){const _0x2ef6f9=_0x36b8a7;await this[_0x2ef6f9(0x1f1)](_0x20f714),_0x20f714[_0x2ef6f9(0x18f)][_0x2ef6f9(0x12d)](_0x5db60b(this[_0x2ef6f9(0x23c)]))[_0x2ef6f9(0x117)](_0x146c86=>{const _0x5418ff=_0x2ef6f9;_0x146c86&&this[_0x5418ff(0x146)](_0x146c86);}),this['_urlService'][_0x2ef6f9(0x179)][_0x2ef6f9(0x12d)](_0x5db60b(this[_0x2ef6f9(0x23c)]))[_0x2ef6f9(0x117)](()=>this['_updateSubUnitFromURLParams'](_0x20f714));}['_updateURLWithCurrentState'](_0x49d823,_0x53e821=!0x1){const _0x2dd39a=_0x36b8a7,_0x50ec5a=this[_0x2dd39a(0x29b)][_0x2dd39a(0x2a9)](_0x2dd39a(0x242));_0x49d823[_0x2dd39a(0xec)]()!==_0x50ec5a&&this[_0x2dd39a(0x29b)][_0x2dd39a(0x11b)]('subunit',_0x49d823[_0x2dd39a(0xec)](),_0x53e821);}async[_0x36b8a7(0x1f1)](_0x24c205){const _0x4a8230=_0x36b8a7;var _0x17bb0d;const _0x10c7f7=this[_0x4a8230(0x29b)]['getParam'](_0x4a8230(0x242));if(!_0x10c7f7||!_0x24c205[_0x4a8230(0x106)](_0x10c7f7)){const _0x52cf33=_0x24c205[_0x4a8230(0x16c)]()[0x0],_0x181b6d=_0x24c205[_0x4a8230(0x106)](_0x52cf33);if(!_0x181b6d)return;this[_0x4a8230(0x146)](_0x181b6d,!0x0),await this[_0x4a8230(0x251)]['executeCommand'](_0x4dc006['id'],{'unitId':_0x24c205[_0x4a8230(0x1ea)](),'subUnitId':_0x52cf33});return;}((_0x17bb0d=_0x24c205[_0x4a8230(0x2bf)]())==null?void 0x0:_0x17bb0d[_0x4a8230(0xec)]())!==_0x10c7f7&&await this[_0x4a8230(0x251)][_0x4a8230(0x204)](_0x4dc006['id'],{'unitId':_0x24c205[_0x4a8230(0x1ea)](),'subUnitId':_0x10c7f7});}};ie=qi([G(0x0,Ut),G(0x1,_0x110b65),G(0x2,_0xf4fe45),G(0x3,_0x2451db(_0x22a4b4)),G(0x4,_0x2c5479(_0x392cca))],ie);var en=Object[_0x36b8a7(0x1e9)],tn=(_0x54b8cd,_0x10930d,_0x32af77,_0x57383f)=>{const _0x4d7390=_0x36b8a7;for(var _0x58545a=_0x57383f>0x1?void 0x0:_0x57383f?en(_0x10930d,_0x32af77):_0x10930d,_0xb8bb3d=_0x54b8cd[_0x4d7390(0xce)]-0x1,_0x22d247;_0xb8bb3d>=0x0;_0xb8bb3d--)(_0x22d247=_0x54b8cd[_0xb8bb3d])&&(_0x58545a=_0x22d247(_0x58545a)||_0x58545a);return _0x58545a;},pe=(_0xcd6f93,_0x52a33f)=>(_0xe0811b,_0x133fe0)=>_0x52a33f(_0xe0811b,_0x133fe0,_0xcd6f93);let ne=class{constructor(_0xe09d61,_0x472929,_0x4c30ad){const _0x308b66=_0x36b8a7;this[_0x308b66(0x22c)]=_0xe09d61,this[_0x308b66(0x240)]=_0x472929,this[_0x308b66(0x15c)]=_0x4c30ad;}[_0x36b8a7(0x278)](_0x54c110){const _0x41413f=_0x36b8a7;this[_0x41413f(0x159)](_0x54c110),this[_0x41413f(0x1fa)](_0x54c110);}[_0x36b8a7(0x1f2)](_0x3def06){const _0x3e2c03=_0x36b8a7,{unitID:_0x14db21}=_0x3def06,_0xf8fc87=this[_0x3e2c03(0x15c)][_0x3e2c03(0x217)](_0x14db21)['with'](_0x28a85c),{redoCache:_0xc7ed28}=_0xf8fc87[_0x3e2c03(0xd1)]();if(_0xc7ed28[_0x3e2c03(0xce)]===0x0)return _0x3def06;let _0x22e408=_0x135de0[_0x3e2c03(0x10b)](_0x3def06[_0x3e2c03(0x119)][0x0]);for(let _0x5962ee=0x0;_0x5962ee<_0xc7ed28[_0x3e2c03(0xce)];_0x5962ee++){const _0xb95801={'id':'doc.mutation.rich-text-editing','params':{..._0xc7ed28[_0x5962ee]}},_0x55c319=this[_0x3e2c03(0x240)]['transformMutation'](_0x22e408,_0xb95801,!0x1);if(_0x31f921(_0x55c319))throw _0x55c319[_0x3e2c03(0x1a7)];_0x22e408=_0x55c319[_0x3e2c03(0xd9)];}return{..._0x135de0[_0x3e2c03(0x10b)](_0x3def06),'mutations':[_0x22e408]};}[_0x36b8a7(0x159)](_0x4010da){const _0x40bf7a=_0x36b8a7,{unitID:_0x1377ca}=_0x4010da,_0x16e8ed=this[_0x40bf7a(0x15c)][_0x40bf7a(0x217)](_0x1377ca)[_0x40bf7a(0xdf)](_0x28a85c),{undoCache:_0x4d4f33,redoCache:_0x1779e0}=_0x16e8ed[_0x40bf7a(0xd1)]();if(_0x4d4f33['length']===0x0||_0x1779e0[_0x40bf7a(0xce)]===0x0)return;const _0x4be225=[],_0x12ced9=[];let _0x54a64e=_0x135de0[_0x40bf7a(0x10b)](_0x4010da[_0x40bf7a(0x119)][0x0]),_0x28769d=_0x135de0[_0x40bf7a(0x10b)](_0x4010da[_0x40bf7a(0x119)][0x0]);for(let _0x27ef70=_0x4d4f33[_0x40bf7a(0xce)]-0x1;_0x27ef70>=0x0;_0x27ef70--){const _0x252d9d={'id':'doc.mutation.rich-text-editing','params':{..._0x4d4f33[_0x27ef70]}},_0x3e0d3c={'id':_0x40bf7a(0x297),'params':{..._0x1779e0[_0x27ef70]}},_0x19d321=this[_0x40bf7a(0x240)][_0x40bf7a(0x183)](_0x54a64e,_0x252d9d,!0x1),_0xb72683=this[_0x40bf7a(0x240)][_0x40bf7a(0x183)](_0x28769d,_0x3e0d3c,!0x1);if(_0x31f921(_0x19d321))throw _0x19d321[_0x40bf7a(0x1a7)];if(_0x31f921(_0xb72683))throw _0xb72683[_0x40bf7a(0x1a7)];_0x4be225[_0x40bf7a(0x216)](_0x19d321[_0x40bf7a(0x22f)][_0x40bf7a(0x1d1)]),_0x12ced9[_0x40bf7a(0x216)](_0xb72683['m2Prime'][_0x40bf7a(0x1d1)]),_0x54a64e=_0x19d321['m1Prime'],_0x28769d=_0xb72683[_0x40bf7a(0xd9)];}_0x16e8ed[_0x40bf7a(0x165)]({'undoCache':_0x4be225,'redoCache':_0x12ced9});}[_0x36b8a7(0x1fa)](_0x44c3dd){const _0x5adffb=_0x36b8a7,{unitID:_0x1a930b}=_0x44c3dd,_0x3d0a48=this[_0x5adffb(0x15c)]['getRenderById'](_0x1a930b)[_0x5adffb(0xdf)](_0x28a85c),_0x574eb7=_0x3d0a48['getActiveRange']();if(_0x574eb7==null)return;const _0x536d94=[{'id':_0x5adffb(0x297),'params':{'unitId':_0x44c3dd[_0x5adffb(0xdd)],'actions':null,'textRanges':[_0x574eb7]}}],_0x4e557b=this['_transformService']['transformMutationsWithChangeset'](_0x44c3dd,_0x536d94);if(!_0xd5e052(_0x4e557b))throw _0x4e557b[_0x5adffb(0x1a7)];const _0x2bc808=_0x4e557b[_0x5adffb(0x22f)][0x0][_0x5adffb(0x1d1)][_0x5adffb(0x196)];Array[_0x5adffb(0x155)](_0x2bc808)&&_0x2bc808[_0x5adffb(0xce)]&&_0x3d0a48[_0x5adffb(0x24a)](_0x2bc808[0x0]);}};ne=tn([pe(0x0,_0x2451db(_0x22de8d)),pe(0x1,_0x2d3ab1),pe(0x2,_0x14dba2)],ne);var sn=Object[_0x36b8a7(0x1e9)],nn=(_0x29b5ea,_0x2a09ab,_0xa53257,_0x1a8e6b)=>{const _0x25fb3b=_0x36b8a7;for(var _0x5d1e7a=_0x1a8e6b>0x1?void 0x0:_0x1a8e6b?sn(_0x2a09ab,_0xa53257):_0x2a09ab,_0x57de1b=_0x29b5ea[_0x25fb3b(0xce)]-0x1,_0xdaad98;_0x57de1b>=0x0;_0x57de1b--)(_0xdaad98=_0x29b5ea[_0x57de1b])&&(_0x5d1e7a=_0xdaad98(_0x5d1e7a)||_0x5d1e7a);return _0x5d1e7a;},Ce=(_0x3906fa,_0x286a3a)=>(_0x3f8107,_0x53b545)=>_0x286a3a(_0x3f8107,_0x53b545,_0x3906fa);let re=class{constructor(_0x5bccea,_0x16bb3f,_0x4ca97f){const _0x55f9e0=_0x36b8a7;this[_0x55f9e0(0x22c)]=_0x5bccea,this['_transformService']=_0x16bb3f,this['_docStateChangeManagerService']=_0x4ca97f;}[_0x36b8a7(0x1c0)](_0x5220b5){const _0x398032=_0x36b8a7;this[_0x398032(0x1d5)](_0x5220b5);}[_0x36b8a7(0x1f2)](_0x874d26){const _0x4dd7e0=_0x36b8a7,{unitID:_0x361265}=_0x874d26,{collaboration:_0x308fc1}=this['_docStateChangeManagerService'][_0x4dd7e0(0x100)](_0x361265);if(_0x308fc1['length']===0x0)return _0x874d26;let _0x5bfcc3=_0x135de0[_0x4dd7e0(0x10b)](_0x874d26[_0x4dd7e0(0x119)][0x0]);for(let _0x325855=0x0;_0x325855<_0x308fc1[_0x4dd7e0(0xce)];_0x325855++){const _0x40dee0={'id':_0x4dd7e0(0x297),'params':{'unitId':_0x308fc1[_0x325855][_0x4dd7e0(0x197)],..._0x308fc1[_0x325855]['redoState']}},_0x1f74bd=this[_0x4dd7e0(0x240)][_0x4dd7e0(0x183)](_0x5bfcc3,_0x40dee0,!0x1);if(_0x31f921(_0x1f74bd))throw _0x1f74bd['error'];_0x5bfcc3=_0x1f74bd[_0x4dd7e0(0xd9)];}return{..._0x135de0['deepClone'](_0x874d26),'mutations':[_0x5bfcc3]};}['_transformHistoryAndStateStack'](_0x142634){const _0x599492=_0x36b8a7,{unitID:_0x3ed5c1}=_0x142634,{history:_0x1eb659,collaboration:_0x33e6dd}=this[_0x599492(0x189)][_0x599492(0x100)](_0x3ed5c1);if(_0x1eb659['length']===0x0&&_0x33e6dd[_0x599492(0xce)]===0x0)return;const _0x894110=[],_0x21d20b=[];let _0x4e0ff7=_0x135de0[_0x599492(0x10b)](_0x142634[_0x599492(0x119)][0x0]),_0x548a88=_0x135de0[_0x599492(0x10b)](_0x142634['mutations'][0x0]);for(let _0xde9029=_0x1eb659[_0x599492(0xce)]-0x1;_0xde9029>=0x0;_0xde9029--){const _0x5d7612={'id':_0x599492(0x297),'params':{'unitId':_0x1eb659[_0xde9029][_0x599492(0x197)],..._0x1eb659[_0xde9029][_0x599492(0xd8)]}},_0x24d073={'id':_0x599492(0x297),'params':{'unitId':_0x1eb659[_0xde9029][_0x599492(0x197)],..._0x1eb659[_0xde9029][_0x599492(0x120)]}},_0x2bf0b9=this['_transformService']['transformMutation'](_0x4e0ff7,_0x5d7612,!0x1),_0x3e0eaa=this[_0x599492(0x240)][_0x599492(0x183)](_0x548a88,_0x24d073,!0x1);if(_0x31f921(_0x2bf0b9))throw _0x2bf0b9[_0x599492(0x1a7)];if(_0x31f921(_0x3e0eaa))throw _0x3e0eaa[_0x599492(0x1a7)];_0x894110[_0x599492(0x216)]({..._0x1eb659[_0xde9029],'undoState':_0x2bf0b9[_0x599492(0x22f)][_0x599492(0x1d1)],'redoState':_0x3e0eaa[_0x599492(0x22f)][_0x599492(0x1d1)]}),_0x4e0ff7=_0x2bf0b9[_0x599492(0xd9)],_0x548a88=_0x3e0eaa['m1Prime'];}_0x4e0ff7=_0x135de0['deepClone'](_0x142634[_0x599492(0x119)][0x0]),_0x548a88=_0x135de0[_0x599492(0x10b)](_0x142634[_0x599492(0x119)][0x0]);for(let _0x5adda4=_0x33e6dd[_0x599492(0xce)]-0x1;_0x5adda4>=0x0;_0x5adda4--){const _0x20c0b6={'id':_0x599492(0x297),'params':{'unitId':_0x33e6dd[_0x5adda4]['unitId'],..._0x33e6dd[_0x5adda4][_0x599492(0xd8)]}},_0x406652={'id':_0x599492(0x297),'params':{'unitId':_0x33e6dd[_0x5adda4][_0x599492(0x197)],..._0x33e6dd[_0x5adda4][_0x599492(0x120)]}},_0x2d7de5=this[_0x599492(0x240)][_0x599492(0x183)](_0x4e0ff7,_0x20c0b6,!0x1),_0x4e552b=this[_0x599492(0x240)][_0x599492(0x183)](_0x548a88,_0x406652,!0x1);if(_0x31f921(_0x2d7de5))throw _0x2d7de5['error'];if(_0x31f921(_0x4e552b))throw _0x4e552b[_0x599492(0x1a7)];_0x21d20b[_0x599492(0x216)]({..._0x33e6dd[_0x5adda4],'undoState':_0x2d7de5[_0x599492(0x22f)][_0x599492(0x1d1)],'redoState':_0x4e552b[_0x599492(0x22f)][_0x599492(0x1d1)]}),_0x4e0ff7=_0x2d7de5[_0x599492(0xd9)],_0x548a88=_0x4e552b['m1Prime'];}this[_0x599492(0x189)]['setStateCache'](_0x3ed5c1,{'history':_0x894110,'collaboration':_0x21d20b});}};re=nn([Ce(0x0,_0x2451db(_0x22de8d)),Ce(0x1,_0x2d3ab1),Ce(0x2,_0x2451db(_0x380404))],re);var rn=Object[_0x36b8a7(0x1e9)],on=(_0x49b7b8,_0x2095fe,_0x2793d3,_0x53f0d7)=>{const _0x15e4f3=_0x36b8a7;for(var _0x919a13=_0x53f0d7>0x1?void 0x0:_0x53f0d7?rn(_0x2095fe,_0x2793d3):_0x2095fe,_0x30e7a0=_0x49b7b8[_0x15e4f3(0xce)]-0x1,_0x4f1a73;_0x30e7a0>=0x0;_0x30e7a0--)(_0x4f1a73=_0x49b7b8[_0x30e7a0])&&(_0x919a13=_0x4f1a73(_0x919a13)||_0x919a13);return _0x919a13;},tt=(_0x750e09,_0xeeb7)=>(_0x53fc94,_0x1c4dcd)=>_0xeeb7(_0x53fc94,_0x1c4dcd,_0x750e09);let oe=class{constructor(_0x40d0a2,_0x563ad1){const _0x4a560b=_0x36b8a7;this['_injector']=_0x40d0a2,this[_0x4a560b(0x240)]=_0x563ad1;}[_0x36b8a7(0x271)](_0xf89611){const _0x366cf4=_0x36b8a7;var _0x19dc9d;const _0x53f6c6=this[_0x366cf4(0x22c)][_0x366cf4(0x114)](_0x52eb59),_0x479443=(_0x19dc9d=_0x53f6c6[_0x366cf4(0x24e)]())!=null?_0x19dc9d:[];if(_0x479443[_0x366cf4(0xce)]===0x0)return;const _0x36fa06=_0xf89611[_0x366cf4(0xdd)],_0x35c749=[{'id':_0x366cf4(0x297),'params':{'unitId':_0x36fa06,'actions':null,'textRanges':_0x479443}}],_0x4ff5ec=this[_0x366cf4(0x240)]['transformMutationsWithChangeset'](_0xf89611,_0x35c749);if(!_0xd5e052(_0x4ff5ec))throw _0x4ff5ec[_0x366cf4(0x1a7)];const _0x4b70ff=_0x4ff5ec[_0x366cf4(0x22f)][0x0][_0x366cf4(0x1d1)][_0x366cf4(0x196)];Array['isArray'](_0x4b70ff)&&_0x4b70ff[_0x366cf4(0xce)]&&_0x53f6c6[_0x366cf4(0x18d)](_0x4b70ff,{'unitId':_0x36fa06,'subUnitId':_0x36fa06},!0x1);}};oe=on([tt(0x0,_0x2451db(_0x22de8d)),tt(0x1,_0x2d3ab1)],oe);var an=Object[_0x36b8a7(0x1e9)],cn=(_0x1f2609,_0x3457b0,_0x42a501,_0x1abbc6)=>{const _0x309dc7=_0x36b8a7;for(var _0x56b56b=_0x1abbc6>0x1?void 0x0:_0x1abbc6?an(_0x3457b0,_0x42a501):_0x3457b0,_0x2d2380=_0x1f2609[_0x309dc7(0xce)]-0x1,_0x35cbae;_0x2d2380>=0x0;_0x2d2380--)(_0x35cbae=_0x1f2609[_0x2d2380])&&(_0x56b56b=_0x35cbae(_0x56b56b)||_0x56b56b);return _0x56b56b;},U=(_0xdc6d82,_0x309b52)=>(_0xf76f5,_0x58b0eb)=>_0x309b52(_0xf76f5,_0x58b0eb,_0xdc6d82);let ae=class extends _0x296a47{constructor(_0x1c36b8,_0x44017d,_0x5d42a0,_0xbf5498,_0x3e2b37,_0x557892,_0x11880e,_0x561f9d){const _0x5e5948=_0x36b8a7;super(),_(this,_0x5e5948(0x2b1),new _0x440507(_0x1aa68f[_0x5e5948(0x2ae)])),(this[_0x5e5948(0x189)]=_0x1c36b8,this[_0x5e5948(0x118)]=_0x44017d,this[_0x5e5948(0x136)]=_0x5d42a0,this[_0x5e5948(0x285)]=_0xbf5498,this[_0x5e5948(0x22a)]=_0x3e2b37,this[_0x5e5948(0x28e)]=_0x557892,this[_0x5e5948(0x296)]=_0x11880e,this[_0x5e5948(0x1f7)]=_0x561f9d,this[_0x5e5948(0x229)]());}[_0x36b8a7(0x229)](){const _0xf6d238=_0x36b8a7;this[_0xf6d238(0xf2)](this['_collaborationController']['entityInit$']['subscribe'](_0x53120=>{const _0x4941b0=_0xf6d238,_0x17d0b0=this['_docStateChangeManagerService']['docStateChange$'][_0x4941b0(0x117)](_0x42ba70=>{const _0x2b8a58=_0x4941b0;if(_0x42ba70==null)return;const {unitId:_0x1eed4f,redoState:_0x53119d,commandId:_0x21cad1}=_0x42ba70;if(_0x1eed4f!==_0x53120['unitID'])return;const _0x40d96f={'id':_0x21cad1,'type':_0xde0da8[_0x2b8a58(0x27b)],'params':{'unitId':_0x1eed4f,'actions':_0x53119d[_0x2b8a58(0x1bd)],'textRanges':null}};_0x53120[_0x2b8a58(0x283)](_0x40d96f);});if(_0x53120[_0x4941b0(0xf2)](_0x17d0b0),_0x53120 instanceof _0x557a53){const _0x46f40c={'onTransformIME':_0x3e1857=>this[_0x4941b0(0x136)]['transformIMECache'](_0x3e1857),'onTransformState':_0x4cf517=>this[_0x4941b0(0x285)][_0x4941b0(0x1c0)](_0x4cf517),'onTransformSelections':_0x595c3b=>this['_docTransformSelectionsService']['transformSelections'](_0x595c3b),'onSyncEditingCollabCursor':_0x5e3633=>this['_docSyncEditingCollabCursorService'][_0x4941b0(0x226)](_0x5e3633),'onTransformRemoteChangesetByIMECache':_0x52e4cb=>this[_0x4941b0(0x136)][_0x4941b0(0x1f2)](_0x52e4cb),'onTransformRemoteChangesetByStateCache':_0x1f8aa9=>this[_0x4941b0(0x285)]['transformRemoteChangeset'](_0x1f8aa9)};_0x53120[_0x4941b0(0x1ca)](_0x46f40c);}}));}};ae=cn([U(0x0,_0x2451db(_0x380404)),U(0x1,_0x2451db(_0x39c592)),U(0x2,_0x2451db(ne)),U(0x3,_0x2451db(re)),U(0x4,_0x2451db(oe)),U(0x5,_0x2451db(He)),U(0x6,_0x472215),U(0x7,_0x2451db(_0x591d33))],ae);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x40ad67,_0x4bd083,_0x409b6b,_0x2dacda)=>{const _0x5de69f=_0x36b8a7;for(var _0x65ad89=_0x2dacda>0x1?void 0x0:_0x2dacda?ln(_0x4bd083,_0x409b6b):_0x4bd083,_0x522cbf=_0x40ad67[_0x5de69f(0xce)]-0x1,_0x41a2b0;_0x522cbf>=0x0;_0x522cbf--)(_0x41a2b0=_0x40ad67[_0x522cbf])&&(_0x65ad89=_0x41a2b0(_0x65ad89)||_0x65ad89);return _0x65ad89;},Ee=(_0x2899da,_0x238964)=>(_0x27f1ee,_0x3d61e3)=>_0x238964(_0x27f1ee,_0x3d61e3,_0x2899da);let we=class extends _0x296a47{constructor(_0x3edfa5,_0x1a495a,_0x1bbceb){const _0x564142=_0x36b8a7;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x564142(0x1ff)]=_0x3edfa5,this['_localStorageService']=_0x1a495a,this['_revisionService']=_0x1bbceb);}[_0x36b8a7(0x101)](){const _0x4d172e=_0x36b8a7;this[_0x4d172e(0x253)]=!0x0;}[_0x36b8a7(0x123)](){const _0x3c934d=_0x36b8a7;this[_0x3c934d(0x253)]=!0x1;}get['saveTaskMap'](){const _0x205f89=_0x36b8a7;return this[_0x205f89(0x2b0)];}[_0x36b8a7(0x1bc)](){const _0x4357ec=_0x36b8a7;this[_0x4357ec(0x203)]()[_0x4357ec(0xfd)](()=>super[_0x4357ec(0x1bc)]());}async[_0x36b8a7(0x113)](_0x830536){const _0x22593e=_0x36b8a7;return this[_0x22593e(0x253)]?null:this[_0x22593e(0x20f)][_0x22593e(0xe6)](_0x3fb7a8(_0x830536));}async['saveOfflineData'](_0x1cef10,_0x3e8ff6){const _0x2ec99e=_0x36b8a7;return!!this[_0x2ec99e(0x20f)][_0x2ec99e(0x298)](_0x1cef10,_0x3e8ff6);}[_0x36b8a7(0x1d7)](_0x3bb917,_0x5d092d,_0x1007f3,_0x50ab6b){const _0xc2cbed=_0x36b8a7,_0x327ab3=this['_revisionService'][_0xc2cbed(0x2aa)](_0x3bb917);this[_0xc2cbed(0x211)][_0xc2cbed(0x207)](_0x3bb917,{'unitID':_0x3bb917,'type':_0x5d092d,'awaitingChangeset':_0x1007f3,'mutations':_0x50ab6b,'rev':_0x327ab3}),this[_0xc2cbed(0x2b0)][_0xc2cbed(0x174)](_0x3bb917)||this[_0xc2cbed(0x29c)](_0x3bb917);}[_0x36b8a7(0x29c)](_0x14411a){const _0x4b8294=_0x36b8a7,_0x2160ef=this['_getSaveTimeout']();_0x2160ef===0x0?this[_0x4b8294(0x194)](_0x14411a):this[_0x4b8294(0x2b0)]['set'](_0x14411a,setTimeout(()=>this[_0x4b8294(0x194)](_0x14411a),_0x2160ef));}[_0x36b8a7(0x112)](){const _0x5596d9=_0x36b8a7;var _0x1630c7;return(_0x1630c7=this['_configService'][_0x5596d9(0x11e)](_0x197d90))!=null?_0x1630c7:_0xfb74ad;}[_0x36b8a7(0x194)](_0x2c15e1){const _0x249f57=_0x36b8a7,_0x459c0f=this['_saveTaskMap'][_0x249f57(0x114)](_0x2c15e1);return _0x459c0f!==void 0x0&&window['clearTimeout'](_0x459c0f),this['_localStorageService']['setItem'](_0x3fb7a8(_0x2c15e1),this[_0x249f57(0x211)][_0x249f57(0x114)](_0x2c15e1))[_0x249f57(0xfd)](()=>this[_0x249f57(0x2b0)][_0x249f57(0x173)](_0x2c15e1));}async[_0x36b8a7(0x203)](){const _0x5956c5=_0x36b8a7,_0x2be3c2=[];this[_0x5956c5(0x2b0)][_0x5956c5(0xf7)]((_0x308ab0,_0x385155)=>{const _0x290c1c=_0x5956c5;window[_0x290c1c(0x231)](_0x308ab0),_0x2be3c2[_0x290c1c(0x16f)](this[_0x290c1c(0x194)](_0x385155)[_0x290c1c(0xfd)](()=>{const _0x470904=_0x290c1c;this[_0x470904(0x2b0)][_0x470904(0x173)](_0x385155);}));}),await Promise[_0x5956c5(0xf1)](_0x2be3c2);}};we=_n([Ee(0x0,_0xb5d81d),Ee(0x1,_0x1bb2e9),Ee(0x2,_0x2451db(_0x2b353e))],we);class hn extends _0x10df6b{constructor(){const _0xc593c9=_0x36b8a7;super(),_(this,_0xc593c9(0x179)),this['urlChange$']=_0x217d69(window,_0xc593c9(0x299))[_0xc593c9(0x12d)](_0x5db60b(this[_0xc593c9(0x23c)]),_0x157aff(0x1),_0x7480ca(void 0x0));}[_0x36b8a7(0x11b)](_0x2a375e,_0x542c24,_0x21949f=!0x1){const _0x4a6244=_0x36b8a7,_0x540a6b=new URL(window['location'][_0x4a6244(0x16b)]);_0x540a6b[_0x4a6244(0x1b1)][_0x4a6244(0x207)](_0x2a375e,_0x542c24),_0x21949f?window[_0x4a6244(0x11a)]['replaceState']('','',_0x540a6b[_0x4a6244(0x255)]()):window[_0x4a6244(0x11a)][_0x4a6244(0x14e)]('','',_0x540a6b['toString']());}[_0x36b8a7(0x1f9)](_0x392fbc,_0x5317d4=!0x1){const _0x2e22b7=_0x36b8a7,_0x4a3454=new URL(window[_0x2e22b7(0x28b)][_0x2e22b7(0x16b)]);_0x4a3454[_0x2e22b7(0x1b1)][_0x2e22b7(0x173)](_0x392fbc),_0x5317d4?window['history'][_0x2e22b7(0x259)]('','',_0x4a3454[_0x2e22b7(0x255)]()):window[_0x2e22b7(0x11a)][_0x2e22b7(0x14e)]('','',_0x4a3454[_0x2e22b7(0x255)]());}[_0x36b8a7(0x2a9)](_0x398804){const _0xa43940=_0x36b8a7;var _0x15d803;return(_0x15d803=new URL(window['location'][_0xa43940(0x16b)])[_0xa43940(0x1b1)][_0xa43940(0x114)](_0x398804))!=null?_0x15d803:void 0x0;}}var un=Object[_0x36b8a7(0x293)],dn=Object[_0x36b8a7(0x1e9)],fn=(_0x1fc014,_0x2e129a,_0x3ea5b2)=>_0x2e129a in _0x1fc014?un(_0x1fc014,_0x2e129a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ea5b2}):_0x1fc014[_0x2e129a]=_0x3ea5b2,Sn=(_0x4dd1ca,_0x7e7149,_0x55c196,_0x41e21f)=>{const _0x43b75c=_0x36b8a7;for(var _0x466b44=_0x41e21f>0x1?void 0x0:_0x41e21f?dn(_0x7e7149,_0x55c196):_0x7e7149,_0x2ae30e=_0x4dd1ca[_0x43b75c(0xce)]-0x1,_0x178219;_0x2ae30e>=0x0;_0x2ae30e--)(_0x178219=_0x4dd1ca[_0x2ae30e])&&(_0x466b44=_0x178219(_0x466b44)||_0x466b44);return _0x466b44;},Oe=(_0x3733b2,_0x11b0c5)=>(_0x5a2c93,_0x5a3bc3)=>_0x11b0c5(_0x5a2c93,_0x5a3bc3,_0x3733b2),mn=(_0x4554b7,_0xf8bebe,_0x339d4e)=>fn(_0x4554b7,_0xf8bebe+'',_0x339d4e);const gn=_0x36b8a7(0xe8);let Ae=class extends _0x126153{constructor(_0x909cfc=et,_0x4ee72d,_0x2c7073,_0x4f8b56){const _0x1664ee=_0x36b8a7;super(),this[_0x1664ee(0x23f)]=_0x909cfc,this['_renderManagerService']=_0x4ee72d,this[_0x1664ee(0x22c)]=_0x2c7073,this['_configService']=_0x4f8b56;const {..._0x27b353}=_0x1932e8({},et,this['_config']);this[_0x1664ee(0x1ff)]['setConfig'](Zi,_0x27b353);}[_0x36b8a7(0x169)](){const _0x529d70=_0x36b8a7;this[_0x529d70(0x109)](),this[_0x529d70(0x1df)]();}[_0x36b8a7(0x2a0)](){const _0x1e7e7f=_0x36b8a7;this[_0x1e7e7f(0x1ec)]();}['_registerDependencies'](){const _0x5d22ec=_0x36b8a7;var _0x2f53d6;const _0x5324da=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x28b5f4,{'useClass':_0x1d0133}],[_0x21183c,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x573ddd(this['_injector'],_0x3a773e(_0x5324da,(_0x2f53d6=this[_0x5d22ec(0x23f)])==null?void 0x0:_0x2f53d6[_0x5d22ec(0x27d)]));}[_0x36b8a7(0x1ec)](){const _0x2290de=_0x36b8a7;this[_0x2290de(0xf2)](this[_0x2290de(0x15c)][_0x2290de(0x156)](_0x31eb6a['UNIVER_DOC'],[Pe])),this['disposeWithMe'](this[_0x2290de(0x15c)][_0x2290de(0x156)](_0x31eb6a[_0x2290de(0x26c)],[Le]));}[_0x36b8a7(0x1df)](){const _0x1466e6=_0x36b8a7;_0x592e68(this[_0x1466e6(0x22c)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x36b8a7(0x2b6),gn),Ae=Sn([_0x3c0cdf(_0x5b8a62),Oe(0x1,_0x14dba2),Oe(0x2,_0x2451db(_0x22de8d)),Oe(0x3,_0xb5d81d)],Ae);var In=Object[_0x36b8a7(0x1e9)],vn=(_0x29269b,_0x195364,_0x1da5c0,_0x173151)=>{for(var _0x353679=_0x173151>0x1?void 0x0:_0x173151?In(_0x195364,_0x1da5c0):_0x195364,_0x593c2a=_0x29269b['length']-0x1,_0x16e412;_0x593c2a>=0x0;_0x593c2a--)(_0x16e412=_0x29269b[_0x593c2a])&&(_0x353679=_0x16e412(_0x353679)||_0x353679);return _0x353679;},K=(_0x28b066,_0x579c03)=>(_0x2e8632,_0x189fe7)=>_0x579c03(_0x2e8632,_0x189fe7,_0x28b066);let st=class extends _0x18c47c{constructor(_0x1abdac,_0x116fa2,_0x352646,_0x39f214,_0x2ca4f2){super(_0x1abdac,_0x116fa2,_0x352646,_0x39f214,_0x2ca4f2);}async['createSocket'](_0x21a3ad){const _0x16e6e1=_0x36b8a7,_0x355128=await this[_0x16e6e1(0x26f)](),_0x500e69=this[_0x16e6e1(0x224)](_0x21a3ad,_0x355128);return this['_doCreateSocket'](_0x500e69);}[_0x36b8a7(0x224)](_0x3e5f4c,_0x26c530){const _0x45ce11=_0x36b8a7,_0x30e9ad=typeof window>'u'?new URL(_0x3e5f4c):new URL(_0x3e5f4c,window[_0x45ce11(0x28b)][_0x45ce11(0x1b3)]);_0x30e9ad[_0x45ce11(0x1b1)][_0x45ce11(0x207)]('sessionTicket',_0x26c530);const _0x2820ad=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x45ce11(0x28b)][_0x45ce11(0x227)]);return _0x2820ad[_0x45ce11(0x114)]('runId')&&_0x30e9ad[_0x45ce11(0x1b1)][_0x45ce11(0x207)](_0x45ce11(0x1a1),_0x2820ad[_0x45ce11(0x114)](_0x45ce11(0x1a1))),_0x30e9ad[_0x45ce11(0x255)]();}async[_0x36b8a7(0x26f)](){const _0x261f83=_0x36b8a7;var _0x407ef5,_0x3b2926,_0x3e0f7b;const _0x11053f=this['_configService']['getConfig'](_0x4cfb79),_0xfd92e=(_0x407ef5=_0x11053f==null?void 0x0:_0x11053f[_0x261f83(0x19c)])!=null?_0x407ef5:_0x387337;return(_0x3e0f7b=(_0x3b2926=(await this[_0x261f83(0x15e)]['get'](_0xfd92e,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x3b2926['ticket'])!=null?_0x3e0f7b:'';}};st=vn([K(0x0,_0x2451db(_0x22de8d)),K(0x1,_0x2451db(_0x230fb9)),K(0x2,_0xb5d81d),K(0x3,_0x110b65),K(0x4,_0x4da3ba)],st);const it=0x7530,nt=_0x36b8a7(0x1c7);class jn extends _0x296a47{constructor(){const _0xcb7e3c=_0x36b8a7;super(),_(this,_0xcb7e3c(0x1ad),_0x2943a3()),_(this,_0xcb7e3c(0x166),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0xcb7e3c(0x1c6),null),_(this,_0xcb7e3c(0x149),new Map()),_(this,_0xcb7e3c(0x202),new Map()),this[_0xcb7e3c(0x1c8)]();}[_0x36b8a7(0x1bc)](){const _0x218e6c=_0x36b8a7;super[_0x218e6c(0x1bc)](),this['_clearOtherTimers'][_0x218e6c(0xf7)]((_0xe4a6c8,_0xc9a55b)=>this[_0x218e6c(0xe7)](_0xc9a55b)),this[_0x218e6c(0x1c6)]&&window['clearInterval'](this[_0x218e6c(0x1c6)]);}['getUnitStatus$'](_0x4bcd20){const _0x5bc0b9=_0x36b8a7;return this[_0x5bc0b9(0x10d)](_0x4bcd20)['pipe'](_0x843b93());}[_0x36b8a7(0xeb)](_0x1bb2ae){const _0x108a25=_0x36b8a7;this['_selfUnitIDs'][_0x108a25(0x191)]===0x0&&this[_0x108a25(0x209)](),this[_0x108a25(0x166)][_0x108a25(0x102)](_0x1bb2ae),this['_send']({'type':0x0,'memberID':this[_0x108a25(0x1ad)],'unitIDs':[_0x1bb2ae],'isForwarded':!0x1});}[_0x36b8a7(0x284)](_0x56856b){const _0x3454f1=_0x36b8a7;this[_0x3454f1(0x166)][_0x3454f1(0x173)](_0x56856b),this[_0x3454f1(0x166)][_0x3454f1(0x191)]===0x0&&this[_0x3454f1(0x1c6)]&&window['clearInterval'](this[_0x3454f1(0x1c6)]);}[_0x36b8a7(0x1c8)](){const _0x333274=_0x36b8a7;this[_0x333274(0xf2)](_0x308ea8(_0x217d69(window,_0x333274(0x23a))[_0x333274(0x117)](_0x2763b8=>{const _0x256f62=_0x333274;if(_0x2763b8[_0x256f62(0x2a8)]!==nt||!_0x2763b8[_0x256f62(0x212)])return;const _0x193da6=JSON[_0x256f62(0x1b6)](_0x2763b8[_0x256f62(0x212)]);this[_0x256f62(0x218)](_0x193da6);}))),window[_0x333274(0x28d)](_0x333274(0x1e7),()=>this[_0x333274(0x2b8)]({'type':0x1,'memberID':this[_0x333274(0x1ad)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x36b8a7(0x218)](_0x24f2e5){const _0x4cdb45=_0x36b8a7;switch(_0x24f2e5['type']){case 0x0:this[_0x4cdb45(0x25f)](_0x24f2e5);break;case 0x1:this[_0x4cdb45(0x12a)](_0x24f2e5);break;case 0x2:this['_handleHeartbeatEvent'](_0x24f2e5);break;}}[_0x36b8a7(0x25f)](_0x49f39c){const _0x251b27=_0x36b8a7,{unitIDs:_0x344794,memberID:_0x496752,isForwarded:_0x4b45dd}=_0x49f39c;_0x344794[_0x251b27(0xf7)](_0x1b78e5=>{const _0x1be9ed=_0x251b27;if(!_0x4b45dd&&this[_0x1be9ed(0x16a)]['has'](_0x1b78e5)&&this[_0x1be9ed(0x10d)](_0x1b78e5)['next'](_0x569ee[_0x1be9ed(0x184)]),!this[_0x1be9ed(0x16a)][_0x1be9ed(0x174)](_0x1b78e5)||!this[_0x1be9ed(0x16a)][_0x1be9ed(0x114)](_0x1b78e5)[_0x1be9ed(0x174)](_0x496752)){const _0x384a92=this['_unitOnClients'][_0x1be9ed(0x114)](_0x1b78e5)||new Set();_0x384a92['add'](_0x496752),this[_0x1be9ed(0x16a)][_0x1be9ed(0x207)](_0x1b78e5,_0x384a92),this[_0x1be9ed(0x21a)](_0x496752);}}),_0x4b45dd||this['_send']({'type':0x0,'memberID':this[_0x251b27(0x1ad)],'unitIDs':[...this[_0x251b27(0x166)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x1ccd02){const _0x2566b5=_0x36b8a7;this[_0x2566b5(0xe7)](_0x1ccd02);const _0x377af9=window[_0x2566b5(0x215)](()=>{const _0x11d22e=_0x2566b5;this[_0x11d22e(0x16a)][_0x11d22e(0xf7)](_0x76a97b=>{const _0x5acb9a=_0x11d22e;_0x76a97b[_0x5acb9a(0x173)](_0x1ccd02);});},it*0x2);this[_0x2566b5(0x149)]['set'](_0x1ccd02,_0x377af9);}[_0x36b8a7(0xe7)](_0x143bc2){const _0x4e7b89=_0x36b8a7;if(this[_0x4e7b89(0x149)]['has'](_0x143bc2)){const _0x588788=this[_0x4e7b89(0x149)][_0x4e7b89(0x114)](_0x143bc2);_0x588788&&window['clearTimeout'](_0x588788),this[_0x4e7b89(0x149)]['set'](_0x143bc2,null);}}[_0x36b8a7(0x12a)](_0x3438c0){const _0x24a78e=_0x36b8a7,{memberID:_0x3973f4,unitIDs:_0x520123}=_0x3438c0;_0x520123['forEach'](_0x2c41aa=>{const _0x271df6=_0x39ef;var _0x2347c6;const _0x183cad=this[_0x271df6(0x16a)][_0x271df6(0x114)](_0x2c41aa);_0x183cad&&(_0x183cad['delete'](_0x3973f4),(_0x2347c6=this[_0x271df6(0x10d)](_0x2c41aa))==null||_0x2347c6[_0x271df6(0xd0)](_0x183cad[_0x271df6(0x191)]===0x0?_0x569ee[_0x271df6(0x2be)]:_0x569ee[_0x271df6(0x184)]));}),this[_0x24a78e(0xe7)](_0x3973f4);}[_0x36b8a7(0xfb)](_0x52913f){const _0x3fbf18=_0x36b8a7;this[_0x3fbf18(0x21a)](_0x52913f[_0x3fbf18(0x29d)]);}[_0x36b8a7(0x2b8)](_0x35c02c){const _0x45d416=_0x36b8a7;localStorage[_0x45d416(0x298)](nt,JSON[_0x45d416(0x1a5)](_0x35c02c));}[_0x36b8a7(0x209)](){const _0x2c2aa0=_0x36b8a7;this[_0x2c2aa0(0x1c6)]=window['setInterval'](()=>{const _0x2b8ede=_0x2c2aa0;this[_0x2b8ede(0x2b8)]({'type':0x2,'memberID':this[_0x2b8ede(0x1ad)]});},it);}[_0x36b8a7(0x10d)](_0x373ca9){const _0x3e0887=_0x36b8a7;return this[_0x3e0887(0x202)][_0x3e0887(0x174)](_0x373ca9)||this['_unitStatus']['set'](_0x373ca9,new _0x440507(_0x569ee[_0x3e0887(0x2be)])),this[_0x3e0887(0x202)][_0x3e0887(0x114)](_0x373ca9);}}var Mt=(_0x199a42=>(_0x199a42[_0x199a42[_0x36b8a7(0x236)]=0x0]='UNDEFINED',_0x199a42[_0x199a42['OK']=0x1]='OK',_0x199a42[_0x199a42['INTERNAL_ERROR']=0x2]=_0x36b8a7(0x245),_0x199a42[_0x199a42[_0x36b8a7(0x18c)]=0x3]=_0x36b8a7(0x18c),_0x199a42[_0x199a42['NOT_FOUND']=0x4]=_0x36b8a7(0x22b),_0x199a42[_0x199a42[_0x36b8a7(0x178)]=0x5]=_0x36b8a7(0x178),_0x199a42[_0x199a42[_0x36b8a7(0x276)]=0x6]=_0x36b8a7(0x276),_0x199a42[_0x199a42[_0x36b8a7(0x29f)]=0x7]=_0x36b8a7(0x29f),_0x199a42[_0x199a42[_0x36b8a7(0x257)]=0x8]=_0x36b8a7(0x257),_0x199a42[_0x199a42[_0x36b8a7(0x19f)]=0x9]='COMPLETION_FINISHED',_0x199a42[_0x199a42[_0x36b8a7(0x19a)]=0xa]=_0x36b8a7(0x19a),_0x199a42[_0x199a42[_0x36b8a7(0x29a)]=0x1389]=_0x36b8a7(0x29a),_0x199a42[_0x199a42[_0x36b8a7(0x103)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x199a42[_0x199a42[_0x36b8a7(0x19e)]=0x1772]=_0x36b8a7(0x19e),_0x199a42[_0x199a42['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x36b8a7(0x286),_0x199a42[_0x199a42[_0x36b8a7(0x12b)]=0x1b59]='APPLY_REJECT',_0x199a42[_0x199a42[_0x36b8a7(0x238)]=0x1b5a]=_0x36b8a7(0x238),_0x199a42[_0x199a42[_0x36b8a7(0x15d)]=0x1b5b]=_0x36b8a7(0x15d),_0x199a42[_0x199a42[_0x36b8a7(0x2af)]=0x1b5c]=_0x36b8a7(0x2af),_0x199a42[_0x199a42['APPLY_DUPLICATED']=0x1b5d]=_0x36b8a7(0x254),_0x199a42[_0x199a42[_0x36b8a7(0x243)]=0x1f41]=_0x36b8a7(0x243),_0x199a42[_0x199a42['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x36b8a7(0x172),_0x199a42[_0x199a42[_0x36b8a7(0x2c0)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x199a42[_0x199a42[_0x36b8a7(0x1b9)]=0x232b]=_0x36b8a7(0x1b9),_0x199a42[_0x199a42[_0x36b8a7(0x20b)]=0x232c]=_0x36b8a7(0x20b),_0x199a42[_0x199a42[_0x36b8a7(0x1cd)]=0x232d]=_0x36b8a7(0x1cd),_0x199a42[_0x199a42[_0x36b8a7(0x1ce)]=0x2711]=_0x36b8a7(0x1ce),_0x199a42[_0x199a42[_0x36b8a7(0x2a7)]=0x2712]=_0x36b8a7(0x2a7),_0x199a42[_0x199a42[_0x36b8a7(0x267)]=0x2713]=_0x36b8a7(0x267),_0x199a42[_0x199a42[_0x36b8a7(0x176)]=0x2714]=_0x36b8a7(0x176),_0x199a42[_0x199a42['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x36b8a7(0x28f),_0x199a42[_0x199a42[_0x36b8a7(0x280)]=0x271b]=_0x36b8a7(0x280),_0x199a42[_0x199a42[_0x36b8a7(0x17d)]=0x271c]=_0x36b8a7(0x17d),_0x199a42[_0x199a42[_0x36b8a7(0xdb)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x199a42[_0x199a42[_0x36b8a7(0xf9)]=0x271e]=_0x36b8a7(0xf9),_0x199a42[_0x199a42['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x199a42[_0x199a42[_0x36b8a7(0x282)]=0x2af9]=_0x36b8a7(0x282),_0x199a42[_0x199a42[_0x36b8a7(0x141)]=0x2ee1]=_0x36b8a7(0x141),_0x199a42[_0x199a42[_0x36b8a7(0x128)]=0x2ee2]=_0x36b8a7(0x128),_0x199a42[_0x199a42[_0x36b8a7(0xca)]=0x2ee3]=_0x36b8a7(0xca),_0x199a42[_0x199a42[_0x36b8a7(0x269)]=0x2ee4]=_0x36b8a7(0x269),_0x199a42[_0x199a42[_0x36b8a7(0x1a2)]=0x2ee5]=_0x36b8a7(0x1a2),_0x199a42[_0x199a42[_0x36b8a7(0x168)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x199a42[_0x199a42['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x199a42[_0x199a42[_0x36b8a7(0x1dc)]=0x32cb]=_0x36b8a7(0x1dc),_0x199a42[_0x199a42['UNRECOGNIZED']=-0x1]=_0x36b8a7(0x135),_0x199a42))(Mt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x209261,_0x289aaf,_0x3145b1,_0x2f5520)=>{const _0x2a2465=_0x36b8a7;for(var _0x21faa8=_0x2f5520>0x1?void 0x0:_0x2f5520?pn(_0x289aaf,_0x3145b1):_0x289aaf,_0x1bbdad=_0x209261[_0x2a2465(0xce)]-0x1,_0x41f261;_0x1bbdad>=0x0;_0x1bbdad--)(_0x41f261=_0x209261[_0x1bbdad])&&(_0x21faa8=_0x41f261(_0x21faa8)||_0x21faa8);return _0x21faa8;},be=(_0x24bdf0,_0x54138a)=>(_0x88ce2c,_0x1b0d8f)=>_0x54138a(_0x88ce2c,_0x1b0d8f,_0x24bdf0);let rt=class extends _0x296a47{constructor(_0x4c985c,_0x150495,_0x37c126){const _0x4b4738=_0x36b8a7;super(),this['_instanceService']=_0x4c985c,this[_0x4b4738(0x15e)]=_0x150495,this[_0x4b4738(0x1ff)]=_0x37c126;}async[_0x36b8a7(0x290)](_0x719f9b,_0x3551bd,_0x5711a7,..._0x7422e7){const _0x218d12=_0x36b8a7;var _0x1bc5c9,_0x1020a0,_0x2f346f,_0x310220;const _0x255137=this[_0x218d12(0x160)][_0x218d12(0xfc)]();if(!_0x255137)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2bc605=((_0x1bc5c9=this[_0x218d12(0x1ff)]['getConfig'](_0x2811b1))!=null?_0x1bc5c9:_0x143be0)+'/'+_0x719f9b+_0x218d12(0x21f)+_0x3551bd,_0x256f92=new URL(window[_0x218d12(0x28b)][_0x218d12(0x16b)]),_0x31802e={'scriptId':_0x719f9b,'runId':(_0x1020a0=_0x256f92['searchParams'][_0x218d12(0x114)](_0x218d12(0x1a1)))!=null?_0x1020a0:'','function':_0x3551bd,'unitId':_0x255137['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x7422e7),'invokeId':(_0x2f346f=_0x5711a7[_0x218d12(0x258)])!=null?_0x2f346f:'','executionId':(_0x310220=_0x5711a7[_0x218d12(0x277)])!=null?_0x310220:''};try{const _0x31b85f=await this[_0x218d12(0x15e)][_0x218d12(0x137)](_0x2bc605,{'body':_0x31802e});return _0x31b85f[_0x218d12(0x241)][_0x218d12(0x1a7)]&&_0x31b85f[_0x218d12(0x241)][_0x218d12(0x1a7)][_0x218d12(0x206)]!==Mt['OK']?'Failed':_0x31b85f['body'][_0x218d12(0x2b4)];}catch{return _0x218d12(0xd5);}}};rt=Cn([be(0x0,_0x40aa84),be(0x1,_0x2451db(_0x230fb9)),be(0x2,_0xb5d81d)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Vi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,jn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x568b98=_0xdafd;(function(_0xc6bfc4,_0x3b2114){const _0x245704=_0xdafd,_0x2585bb=_0xc6bfc4();while(!![]){try{const _0x39f29b=-parseInt(_0x245704(0x2c7))/0x1+parseInt(_0x245704(0x247))/0x2+-parseInt(_0x245704(0x1a7))/0x3*(-parseInt(_0x245704(0x32a))/0x4)+parseInt(_0x245704(0x1ce))/0x5*(parseInt(_0x245704(0x15c))/0x6)+parseInt(_0x245704(0x172))/0x7+-parseInt(_0x245704(0x2ae))/0x8*(-parseInt(_0x245704(0x18e))/0x9)+-parseInt(_0x245704(0x2e7))/0xa;if(_0x39f29b===_0x3b2114)break;else _0x2585bb['push'](_0x2585bb['shift']());}catch(_0x33d4d2){_0x2585bb['push'](_0x2585bb['shift']());}}}(_0x2095,0xb0d7d));var $t=Object[_0x568b98(0x2bc)],xt=(_0x6c78ac,_0x37bee2,_0x1b1aaf)=>_0x37bee2 in _0x6c78ac?$t(_0x6c78ac,_0x37bee2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b1aaf}):_0x6c78ac[_0x37bee2]=_0x1b1aaf,_=(_0x4a2f4d,_0x2825fa,_0x2c2aec)=>xt(_0x4a2f4d,typeof _0x2825fa!=_0x568b98(0x321)?_0x2825fa+'':_0x2825fa,_0x2c2aec);import{MemberService as _0xd60d12,SessionStatus as _0x51d7ad,CollaborationSessionService as _0x5ae39d,CollaborationStatus as _0xa23b9e,CollaborationController as _0x56ba9f,ILocalCacheService as _0x2755a3,CollaborationUIEventService as _0x2a341e,CollaborationUIEventId as _0x474087,DataLoaderService as _0x2bcd8a,DocCollaborationEntity as _0x338daf,getLocalCacheKey as _0x1b4ac8,LOCAL_CACHE_INTERVAL as _0x26387f,LOCAL_CACHE_INTERVAL_KEY as _0x16888c,UniverCollaborationClientPlugin as _0x59101b,CollaborationSocketService as _0x5df4a7,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x496a5b,DEFAULT_WS_SESSION_TICKET_URL as _0x5432d2,UnitStatus as _0x540c8d,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1ecb0e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x563a1a}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x4ffef8,Disposable as _0x3f16d8,DOC_RANGE_TYPE as _0x1f3f3d,Inject as _0x6d32dc,Injector as _0x1e626a,IUniverInstanceService as _0x1234fa,ICommandService as _0x450935,debounce as _0x23dd0f,Rectangle as _0x471575,DisposableCollection as _0x2cb202,toDisposable as _0x1f8c5e,UniverInstanceType as _0x142ba1,Tools as _0x4ce80e,COLORS as _0x3530f0,ColorKit as _0x2ee150,ThemeService as _0x507dc3,fromEventSubject as _0x4d8be1,LocaleService as _0x4b501d,createIdentifier as _0x3e2b2e,ILogService as _0x553ff6,Optional as _0x164671,Workbook as _0x335c30,CommandType as _0x3c6601,IConfigService as _0x57f776,ILocalStorageService as _0x40696b,DependentOn as _0x19df80,Plugin as _0x54a92a,merge as _0x3cf67f,registerDependencies as _0x16d380,mergeOverrideWithDependencies as _0x4d898d,touchDependencies as _0x5e475c,generateRandomId as _0x4bbe86}from'@univerjs/core';import{Shape as _0x5dbcdf,Rect as _0x2e1f81,getColor as _0x370534,RegularPolygon as _0x322c0e,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1d0f06,Vector2 as _0xba7c2,SHEET_VIEWPORT_KEY as _0x51dbc8,IRenderManagerService as _0x107d26}from'@univerjs/engine-render';import{ISocketService as _0x51f3b5,WebSocketService as _0x108140,HTTPService as _0x3ee678}from'@univerjs/network';import{IDocClipboardService as _0x54ab34,NodePositionConvertToCursor as _0x532758,NodePositionConvertToRectRange as _0x1d1cb9,TEXT_RANGE_LAYER_INDEX as _0x56e242,SetDocZoomRatioOperation as _0x5e04db,DocIMEInputManagerService as _0xfe4d58,DocStateChangeManagerService as _0x137048}from'@univerjs/docs-ui';import{IImageIoService as _0x364260}from'@univerjs/drawing';import{BehaviorSubject as _0xd1fc21,debounceTime as _0x2f381b,takeUntil as _0x37d2d6,Subject as _0x1b2d13,filter as _0x242cb5,switchMap as _0x15bcfa,merge as _0x1a95c3,combineLatest as _0x321be4,of as _0x5ba222,fromEvent as _0x1ef346,shareReplay as _0x35f9aa,mapTo as _0x13a5cf,distinctUntilChanged as _0x15bdb5}from'rxjs';function _0x2095(){const _0x1f4ba7=['findNodePositionByCharIndex','collabStatus.notCollab','mutations','off-line-single_clip0_910_343','getSheetId','sheetId','getViewport','_onCursorUpdate','getAncestorScale','subUnitId','_scheduleHeartbeat','length','string','APPLY_REJECT','registerComponent','transformStateCache','loadOfflineData','_transformService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','body','OFFLINE','fillStyle','_onCursorDelete','idSuffix','indexOf','33369390YjMWDZ','uni.network.url-service','onLocalMutation','random','_assignedColors','font','_eventUnsubscribe','getStateCache','setStateCache','getConfig','1em','_themeService','getDocRanges','_refRangeService','unitID','collabStatus.fetchMiss','path','Warning','INVITE_CODE_HAS_BEEN_UES','mask','getCurrent','type','concat','PY_RUNTIME_SCRIPT_ERROR','params','UNAUTHENTICATED','setActiveRange','init','...','ENSURE_SNAPSHOT_EXECUTION','labelPosition','tag','collaboration-client.offline-data-not-saved','_getAnchorBounding','LICENSE_IMPORT_SIZE_EXCEEDED','saveTaskMap','UNRECOGNIZED','Unknown\x20user','popstate','_dataLoaderService','_docStateChangeManagerService','_scene','_removeCollabCursors','_updateLocalCursor','INVITE_CODE_REQUIRED','onPointerEnter$','COMPLETION_FINISHED','setUndoRedoMutationParamsCache','_cursorInfo$','TOO_MANY_REQUESTS','_univerInstanceService','_commandService','CONNECTOR_DATA_TOO_LARGE','_collabCursorState$','collab-text-range-','LICENSE_MAX_UNITS_EXCEEDED','_createSocketURL','_notificationService','symbol','_transformHistoryAndStateStack','getSheetBySheetId','undoState','drawWith','createSocket','univer-flex\x20univer-items-center','MUTATION','createInstance','20SkhXkZ','_startDocCollabCursor','focused$','#fff','getCellPositionByOffset','collabStatus.offline','getTypeOfUnitDisposed$','m2Prime','_handleEvent','sheetID','enableLocalCache','none','search','getMember','YUUMI_RATE_OVER_LIMIT','transformByState','lineTo','unitId','_textBubble','className','InsertRowCommandId','fillText','_localCacheService','/run/','defIds','DeleteRangeMoveUpCommandId','YUUMI_URL_COL_OUT_OF_RANGE','_labelPosition','isEditing','split','_draw','onStarting','ACTIVE_UNIT_EVENT_CHANNEL','href','_scheduleClearOtherTimer','startColumn','_document','_docTransformSelectionsService','OTHER_CLIENTS_EDITING','RECT','getRenderById','range','_updateURLWithCurrentState','closePath','_saveTaskMap','_hideTimer','stringify','forEach','onPointerLeave$','fill','getActiveSheet','_configService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.syncing','session.connection-failed','delete','94728aDyFPx','_disabled','deepClone','cursorInfo','clipPath','children','setAlpha','collabStatus.synced','activeSheet$','_entityInit$','UPDATE_CURSOR','some','registerRefRange','_lastPointer','APPLY_DUPLICATED','all','YUUMI_ASYNCIO_CANCELLED','_ensureSubject','_unitOnClients','_uiPartsService','arc','push','8920975IFIIei','onPointerMove$','getUnhiddenWorksheets','_collaborationUIEventService','setTimeout','unshift','_getMergeRange','urlChange$','setParam','hovered','APPLY_PERMISSION_DENIED','_color','getUnitStatus$','getOffsetConfig','getCollabEntity$','collab-client.tooltip.reconnect','_backgroundColor','_beforeCloseService','onCommandExecuted','_revisionService','_docSkeletonManagerService','propertyIsEnumerable','from','_initStatusComponent','url(#on-line-single_clip0_910_349)','extend','roomMembers','FromArray','534762EpEGtS','_range','_instanceService','_cachedData','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SYNCED','_logService','result','UNIVER_DOC','SNAPSHOT_INVALID_SNAPSHOT','getColorFromTheme','docStateChange$','displayName','getTypeOfUnitAdded$','_onRefRangeChange','exhaustSavingTask','_shapes','USERS_LEAVE','min','makeDirty','engine','getMergeData','top','runId','searchParams','815895sZSdzl','pushState','reconnect','getValue','SOCKET_FAILED','_getSheetObject','LOGIN_FAILED','cursorInfo$','_setupSubUnitSync','purple.300','collaboration.closeRoom','_saveCache','error','Failed','backgroundColor','_initEntityListener','send','_scheduleSaving','resize','_cursorShapes','_heartbeatTimer','add','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','eventID','_docTransformIMECacheService','_refreshCollabCursors','assignAColorForMemberID','InsertColCommandId','substring','rgba(255,\x20255,\x20255,\x200.01)','round','_updateCollabCursors','WECHAT_HAS_BEEN_BOUND','_initDependencies','_urlService','_registerRenderDependencies','_initResize','_session','wsSessionTicketUrl','210YNVioa','TEXT','key','executeCommand','_collabCursorController','editingUnit','runOnServer','pluginName','entityInit$','univerjs-icon\x20univerjs-icon-','getParam','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','INVALID_ARGUMENT','setInterval','with','collabCursorState$','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','_selfUnitIDs','_status$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UniverIcon','_localStorageService','generateRandomId','INVALID_INVITE_CODE','prototype','_toggleOffline','_colorAssignService','_init','_injector','_getSessionTicket','transform','_cursors','trim','_context','UNDEFINED','text','find','startRow','endRow','getCurrentSelections','_collaborationController','sessionStatus$','_config','_colorIndex','flatMap','getCurrentRevOfUnit','roomMembers$','EMAIL_HAS_BEEN_BOUND','_anchor','measureText','NOT_COLLAB','name','OffLineSingle','syncEditingCollabCursor','_hover','_id','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','transformMutation','APPLY_NON_SEQUENTIAL_REVISION','collab-rect-range-','registerRenderModule','svg','_roomMembers$','evenodd','_handleLeaveEvent','getUndoRedoMutationParamsCache','max','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','beginPath','executionId','set','selection','doc.mutation.rich-text-editing','entries','AWAITING','disposeWithMe','jiqing.500','_transformPreviousActiveRange','_unitStatus','then','color','pipe','getRelativeToViewportCoord','_handleHeartbeatEvent','getRangePointData','PERMISSION_DENIED','startsWith','setShapeProps','red.300','subscribeEvent','_initEvent','bottom','getOwnPropertySymbols','_clearOtherTimers','_online','on-line-single_clip0_910_349','collaboration-client-ui.config','permission.title','_messageService','post','fillRule','_entities','onRendered','addEventListener','getItem','url(#off-line-single_clip0_910_343)','complete','MOBILE_HAS_BEEN_BOUND','UNIVER_SHEET','getMemberID','_drawRectRange','currentSkeleton$','RemoveColCommandId','redoState','_localeService','contains','YUUMI_ALL_TABLES_IS_INVALID','origin','saveImage','_startSheetCollabCursor','_memberService','1764972ENcwOB','getCollabCursors$','AWAITING_WITH_PENDING','addObjects','LICENSE_DISTRO_REJECTED','event$','height','dispose','_initStatusListener','APPLY_REVISION_CONFILICT','attrs','_docSkeleton','parse','FETCH_MISS','NO_OTHER_CLIENTS_EDITING','M0\x200H16V16H0z','_anchorDot','column','LICENSE_EXPORT_SIZE_EXCEEDED','_docTransformStateCacheService','green.600','unload','defs','_getScale','NOT_FOUND','m1Prime','getOwnPropertyDescriptor','toString','_docClipboardService','0\x200\x2016\x2016','save','_handleJoinEvent','OnLineSingle','location','isActive','_renderManagerService','subunit','ALREADY_EXISTS','getSkeleton','status$','USER_NOT_INVITED_CODE','YUUMI_NO_CUBOID_FOR_QUESTION','restore','collabStatus.conflict','div','YUUMI_UNABLE_LOAD_URL','INTERNAL_ERROR','CONFLICT','on-line-single','_syncEditingCollabCursorService','isArray','_updateSubUnitFromURLParams','next','DeleteRangeMoveLeftCommandId','show','VIEW_MAIN','translate(.97)','SNAPSHOT_HAS_BEEN_REMOVED','call','get','ranges','getUnitId','clearTimeout','addObject','actions','colorChannel1','InsertRangeMoveDownCommandId','transformRemoteChangeset','disposeUnit','unit','YUUMI_AI_RUN_FAILED','xlink:href','requireSession','off-line-single','OTHER_CLIENT_EDITING','_imageIoService','CHANGESET_REVISION_CONFILICT','subscribe','[CollaborationDataLoaderController]','unsubscribe','_handleHover','_registerDependencies','MoveRangeCommandId','assign','newValue','transformSelections','_toggleOnline','INVITE_CODE_ALREADY_BOUND','_httpService','width','hasOwnProperty','_sheetSkeletonManagerService','url(#$1','_transformUndoRedoStack','_drawAnchor','textRanges','_removeClearOtherTimer','_render','updateOfflineData','size','setItem','replaceState','map','72HIowgI','hide','_collabSessionService','dispose$','storage','includes','_cursor','_getSaveTimeout','values','clearInterval','onTransformChange$','_hovered','onMouseMove','_setupBeforeClosingHandler','defineProperty','black','Error','getVpScrollXYInfoByPosToVp','history','getFocusedUnit','getCurrentUnitForType','_name','has','whenReady','_docSyncEditingCollabCursorService','653306nJUIun','toRgbString','blue.400','data','removeParam','currentColor','asObservable'];_0x2095=function(){return _0x1f4ba7;};return _0x2095();}import{SetTextSelectionsOperation as _0x3a761f,RichTextEditingMutation as _0x3ee934,DocSelectionManagerService as _0x55110a,DocSkeletonManagerService as _0x1afc74}from'@univerjs/docs';import{ITransformService as _0xfd345b,CollaborationEvent as _0x69b39f,isTransformMutationFailure as _0x574026,isTransformMutationsWithChangesetSuccess as _0x3a585f,RevisionService as _0x2dcaae,ISnapshotServerService as _0x2ac1aa}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x8e11af,serializeRangeWithSheet as _0x2471b8}from'@univerjs/engine-formula';import{RefRangeService as _0x2d324d,SetSelectionsOperation as _0x248e9f,SheetsSelectionsService as _0x5975a6,EffectRefRangId as _0x17eb3c,handleIRemoveRow as _0x516a47,handleIRemoveCol as _0x40020a,handleMoveRange as _0x3a7196,handleInsertRow as _0x581d09,handleInsertRangeMoveRight as _0x545273,handleInsertRangeMoveDown as _0x1997e6,handleInsertCol as _0x52369e,handleDeleteRangeMoveUp as _0x29bcab,handleDeleteRangeMoveLeft as _0x33305e,runRefRangeMutations as _0x2b077d,SetWorksheetActivateCommand as _0x542b3f}from'@univerjs/sheets';import{map as _0xb8b86,filter as _0x3a7855,throttleTime as _0x20128c,takeUntil as _0x257644,switchMap as _0x5ecea1}from'rxjs/operators';import{SheetSkeletonManagerService as _0x45c7b5,getCoordByCell as _0x32fc47,getSheetObject as _0x1bd9f1}from'@univerjs/sheets-ui';import{jsx as _0x7b61f3,jsxs as _0x31b2a2}from'react/jsx-runtime';import{useObservable as _0x20cba3,useDependency as _0x1eb7bd,IUIPartsService as _0x4a897c,BuiltInUIPart as _0xb90716,connectInjector as _0x52a6fe,IBeforeCloseService as _0x4598f3,IMessageService as _0x1869bb,INotificationService as _0x50baca}from'@univerjs/ui';import{Tooltip as _0x428afd,clsx as _0x18371d,MessageType as _0x52eac5}from'@univerjs/design';import{forwardRef as _0x2e9c63,useRef as _0x3ccda1,createElement as _0x332d39,useCallback as _0x2d4746}from'react';import{IRemoteInstanceService as _0x44414a}from'@univerjs/rpc';var ci=Object['getOwnPropertyDescriptor'],li=(_0x152918,_0x5b75dc,_0x42b184,_0x175b1d)=>{const _0x32f161=_0x568b98;for(var _0x5e7f7b=_0x175b1d>0x1?void 0x0:_0x175b1d?ci(_0x5b75dc,_0x42b184):_0x5b75dc,_0x4e52a1=_0x152918[_0x32f161(0x2d9)]-0x1,_0x2348e3;_0x4e52a1>=0x0;_0x4e52a1--)(_0x2348e3=_0x152918[_0x4e52a1])&&(_0x5e7f7b=_0x2348e3(_0x5e7f7b)||_0x5e7f7b);return _0x5e7f7b;},Je=(_0x3d62ac,_0x2a7f92)=>(_0x433c39,_0x9821c8)=>_0x2a7f92(_0x433c39,_0x9821c8,_0x3d62ac);let Ne=class extends _0x4ffef8{constructor(_0x480b5e,_0x5e10b8){const _0x4aed85=_0x568b98;super(),this[_0x4aed85(0x263)]=_0x480b5e,this[_0x4aed85(0x292)]=_0x5e10b8,this['_init']();}['_init'](){const _0x3b4619=_0x568b98,_0x5dd968=this;this['disposeWithMe'](this[_0x3b4619(0x263)]['addClipboardHook']({'onBeforePasteImage':async _0xffa3a9=>{const _0x4df984=_0x3b4619,_0x24302c=await _0x5dd968[_0x4df984(0x292)][_0x4df984(0x244)](_0xffa3a9);return _0x24302c?{'source':_0x24302c['source'],'imageSourceType':_0x24302c['imageSourceType']}:null;}}));}};Ne=li([Je(0x0,_0x54ab34),Je(0x1,_0x364260)],Ne);const Ze=[_0x568b98(0x1b0),_0x568b98(0x21a),_0x568b98(0x25b),_0x568b98(0x226),_0x568b98(0x2c9),'yellow.400'];class ke extends _0x3f16d8{constructor(){const _0x5198ca=_0x568b98;super(...arguments),_(this,_0x5198ca(0x2eb),new Map()),_(this,_0x5198ca(0x1f9),0x0);}[_0x568b98(0x1c1)](_0x5114f9){const _0x36c793=_0x568b98;if(this['_assignedColors'][_0x36c793(0x2c4)](_0x5114f9))return this[_0x36c793(0x2eb)][_0x36c793(0x282)](_0x5114f9);const _0x254dba=Ze[this[_0x36c793(0x1f9)]];return this[_0x36c793(0x1f9)]=(this[_0x36c793(0x1f9)]+0x1)%Ze[_0x36c793(0x2d9)],this['_assignedColors'][_0x36c793(0x214)](_0x5114f9,_0x254dba),_0x254dba;}}function Tt(_0x1045f4){const _0x16604c=_0x568b98;let _0x128a53='';for(const _0x9423ff of _0x1045f4){const {startOffset:_0x1fe4e9,endOffset:_0x501700,isActive:_0x1a7b25,rangeType:_0x372475,segmentId:_0x4e61ae,segmentPage:_0x3b62e7}=_0x9423ff;_0x128a53[_0x16604c(0x2d9)]&&(_0x128a53+=','),_0x128a53+=_0x1fe4e9+':'+_0x501700+':'+(_0x1a7b25?'1':'0')+':'+_0x372475+':'+_0x4e61ae+':'+_0x3b62e7;}return _0x128a53;}function _i(_0x11f32c){const _0x582d8b=_0x568b98,_0xf5cf4a=_0x11f32c[_0x582d8b(0x141)](','),_0x5821be=[];for(const _0x226eb3 of _0xf5cf4a){const [_0x96cf9e,_0x197630,_0x5b3877,_0x2ab5a0,_0x207d33,_0x2f07d9]=_0x226eb3[_0x582d8b(0x141)](':');_0x5821be[_0x582d8b(0x171)]({'startOffset':Number(_0x96cf9e),'endOffset':Number(_0x197630),'collapsed':_0x96cf9e===_0x197630,'isActive':_0x5b3877==='1','rangeType':_0x2ab5a0===_0x1f3f3d['TEXT']?_0x1f3f3d[_0x582d8b(0x1cf)]:_0x1f3f3d['RECT'],'segmentId':typeof _0x207d33=='string'?String(_0x207d33):'','segmentPage':Number(_0x2f07d9!=null?_0x2f07d9:-0x1)});}return _0x5821be[_0x582d8b(0x167)](_0x4588d1=>_0x4588d1[_0x582d8b(0x269)])||(_0x5821be[0x0][_0x582d8b(0x269)]=!0x0),_0x5821be;}class He extends _0x4ffef8{constructor(){const _0x53c27e=_0x568b98;super(...arguments),_(this,_0x53c27e(0x31c),new _0xd1fc21(null)),_(this,_0x53c27e(0x1dd),this['_collabCursorState$'][_0x53c27e(0x2cd)]());}[_0x568b98(0x203)](_0x5b4e7c){const _0x2c76f0=_0x568b98,{unitID:_0x1a8158,memberID:_0x116443,textRanges:_0x2f3103}=_0x5b4e7c,_0x5c3e1a=Tt(_0x2f3103);if(_0x5c3e1a==='')return;const _0x1bfc60={'unitID':_0x1a8158,'memberID':_0x116443,'selection':_0x5c3e1a};this['_collabCursorState$'][_0x2c76f0(0x27b)](_0x1bfc60);}}var hi=Object[_0x568b98(0x261)],ui=(_0xb2cb63,_0x1ffda7,_0x324dbb,_0x503d04)=>{const _0x351a52=_0x568b98;for(var _0x129593=_0x503d04>0x1?void 0x0:_0x503d04?hi(_0x1ffda7,_0x324dbb):_0x1ffda7,_0x2a4b8c=_0xb2cb63[_0x351a52(0x2d9)]-0x1,_0x29005e;_0x2a4b8c>=0x0;_0x2a4b8c--)(_0x29005e=_0xb2cb63[_0x2a4b8c])&&(_0x129593=_0x29005e(_0x129593)||_0x129593);return _0x129593;},L=(_0x5dbacb,_0x458efa)=>(_0x2f4cda,_0x4ae6e3)=>_0x458efa(_0x2f4cda,_0x4ae6e3,_0x5dbacb);const di=0x12c,fi=0x64;let Ue=class extends _0x4ffef8{constructor(_0x12b66e,_0x8b52dd,_0x37771a,_0x59dc16,_0x44e637,_0x32127d,_0x19144d,_0x11c4b2,_0x2fa0dd){const _0xc988b1=_0x568b98;super(),_(this,_0xc988b1(0x22c),!0x1),_(this,_0xc988b1(0x1e9),!0x1),_(this,_0xc988b1(0x317),new _0xd1fc21(new Map())),_(this,_0xc988b1(0x1ae),this[_0xc988b1(0x317)][_0xc988b1(0x2cd)]()),_(this,_0xc988b1(0x20c),new _0xd1fc21([])),_(this,_0xc988b1(0x1fc),this[_0xc988b1(0x20c)][_0xc988b1(0x21f)](_0x2f381b(di))),_(this,_0xc988b1(0x312),_0x23dd0f(_0x768408=>{const _0x5a6b29=_0xc988b1,_0xc67632={'eventID':_0x69b39f[_0x5a6b29(0x166)],'data':{'unitID':this[_0x5a6b29(0x2f5)],'memberID':this[_0x5a6b29(0x1cc)][_0x5a6b29(0x23b)](),'selection':Tt(_0x768408)}};this[_0x5a6b29(0x1cc)][_0x5a6b29(0x1b7)](_0xc67632,this[_0x5a6b29(0x2f5)]);},fi)),(this[_0xc988b1(0x2f5)]=_0x12b66e,this[_0xc988b1(0x1cc)]=_0x8b52dd,this['_injector']=_0x37771a,this[_0xc988b1(0x1e8)]=_0x59dc16,this[_0xc988b1(0x246)]=_0x44e637,this['_syncEditingCollabCursorService']=_0x32127d,this[_0xc988b1(0x2df)]=_0x19144d,this[_0xc988b1(0x319)]=_0x11c4b2,this[_0xc988b1(0x31a)]=_0x2fa0dd);}get[_0x568b98(0x15f)](){const _0x4f5deb=_0x568b98;return this[_0x4f5deb(0x317)]['getValue']();}get[_0x568b98(0x18c)](){const _0x137d95=_0x568b98;return this['_roomMembers$'][_0x137d95(0x1aa)]();}['dispose'](){const _0x3766db=_0x568b98;super['dispose'](),this[_0x3766db(0x317)][_0x3766db(0x27b)](new Map()),this[_0x3766db(0x317)][_0x3766db(0x238)](),this[_0x3766db(0x20c)]['next']([]),this['_roomMembers$']['complete']();}[_0x568b98(0x302)](){const _0x4fbe6b=_0x568b98;this[_0x4fbe6b(0x1e9)]||(this[_0x4fbe6b(0x1e9)]=!0x0,this[_0x4fbe6b(0x1cc)][_0x4fbe6b(0x1f7)][_0x4fbe6b(0x21f)](_0x37d2d6(this[_0x4fbe6b(0x2b1)]))[_0x4fbe6b(0x294)](_0x3bfe52=>{_0x3bfe52===_0x51d7ad['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x4fbe6b(0x1cc)][_0x4fbe6b(0x24c)][_0x4fbe6b(0x21f)](_0x37d2d6(this[_0x4fbe6b(0x2b1)]))[_0x4fbe6b(0x294)](_0xb2c75=>{const _0x2b5fc2=_0x4fbe6b,_0x269183=_0xb2c75['eventID'];_0x269183===_0x69b39f[_0x2b5fc2(0x166)]&&this[_0x2b5fc2(0x2d5)](_0xb2c75),_0x269183===_0x69b39f[_0x2b5fc2(0x19f)]&&this[_0x2b5fc2(0x2e4)](_0xb2c75);}),this['disposeWithMe'](this['_commandService'][_0x4fbe6b(0x184)](_0x2836cd=>{const _0x3456bd=_0x4fbe6b,_0x45f35c=_0x2836cd[_0x3456bd(0x2ff)];_0x45f35c!=null&&this['_online']&&_0x2836cd['id']===_0x3a761f['id']&&_0x45f35c[_0x3456bd(0x33b)]===this['unitID']&&_0x45f35c[_0x3456bd(0x140)]===!0x1&&_0x45f35c['ranges'][_0x3456bd(0x2d9)]>0x0&&this[_0x3456bd(0x312)](_0x45f35c[_0x3456bd(0x283)]);})),this[_0x4fbe6b(0x278)][_0x4fbe6b(0x1dd)][_0x4fbe6b(0x21f)](_0x37d2d6(this[_0x4fbe6b(0x2b1)]))[_0x4fbe6b(0x294)](_0x4ae89d=>{const _0x1ab2e1=_0x4fbe6b;if((_0x4ae89d==null?void 0x0:_0x4ae89d['unitID'])!==this[_0x1ab2e1(0x2f5)])return;const _0x1633ba={'eventID':_0x69b39f[_0x1ab2e1(0x166)],'data':_0x4ae89d};this[_0x1ab2e1(0x2d5)](_0x1633ba);}),this[_0x4fbe6b(0x219)](this[_0x4fbe6b(0x31a)][_0x4fbe6b(0x184)](_0x20c529=>{const _0x33d2f3=_0x4fbe6b;if(_0x20c529[_0x33d2f3(0x2ff)]==null)return;const _0x4f0a5c=_0x20c529[_0x33d2f3(0x2ff)];if(_0x20c529['id']!==_0x3ee934['id']||_0x4f0a5c[_0x33d2f3(0x33b)]!==this[_0x33d2f3(0x2f5)])return;const _0x41288b={'id':_0x33d2f3(0x216),'params':_0x4f0a5c},_0x5dc562=this[_0x33d2f3(0x15f)];for(const [_0x4e6bcb,_0x3020f1]of _0x5dc562){const _0x593feb={'id':_0x33d2f3(0x216),'params':{'unitId':this[_0x33d2f3(0x2f5)],'actions':null,'textRanges':_0x3020f1['ranges']}},_0x4028ad=this[_0x33d2f3(0x2df)]['transformMutation'](_0x41288b,_0x593feb,!0x1);if(_0x574026(_0x4028ad))throw _0x4028ad[_0x33d2f3(0x1b3)];_0x5dc562[_0x33d2f3(0x214)](_0x4e6bcb,{..._0x3020f1,'ranges':_0x4028ad[_0x33d2f3(0x331)][_0x33d2f3(0x2ff)]['textRanges']});}queueMicrotask(()=>{const _0x59507c=_0x33d2f3;this[_0x59507c(0x317)][_0x59507c(0x27b)](_0x5dc562);});})));}[_0x568b98(0x2d5)](_0x2f6a8c){const _0x3bb411=_0x568b98;var _0x159c5a,_0x326fed;const {memberID:_0x84d3cf,selection:_0x3cbe60}=_0x2f6a8c['data'],_0x5090a1=_i(_0x3cbe60),_0x4d0c38=(_0x326fed=(_0x159c5a=this['_memberService'][_0x3bb411(0x337)](this[_0x3bb411(0x2f5)],_0x84d3cf))==null?void 0x0:_0x159c5a[_0x3bb411(0x201)])!=null?_0x326fed:'Unknown\x20user',_0x32b55d={'color':this[_0x3bb411(0x1e8)][_0x3bb411(0x1c1)](_0x84d3cf),'name':_0x4d0c38,'ranges':_0x5090a1},_0x41d834=this[_0x3bb411(0x15f)];_0x41d834[_0x3bb411(0x214)](_0x84d3cf,_0x32b55d),this[_0x3bb411(0x317)][_0x3bb411(0x27b)](_0x41d834);}[_0x568b98(0x2e4)](_0x3aa2eb){const _0x3cd2f0=_0x568b98,{memberID:_0x13a413}=_0x3aa2eb[_0x3cd2f0(0x2ca)],_0x4753bf=this[_0x3cd2f0(0x15f)];_0x4753bf[_0x3cd2f0(0x15b)](_0x13a413),this['_cursorInfo$'][_0x3cd2f0(0x27b)](_0x4753bf);}[_0x568b98(0x29d)](){const _0x11ef34=_0x568b98;var _0x1d655f;if(this[_0x11ef34(0x22c)]=!0x0,((_0x1d655f=this[_0x11ef34(0x319)]['getFocusedUnit']())==null?void 0x0:_0x1d655f[_0x11ef34(0x284)]())!==this[_0x11ef34(0x2f5)])return;const _0x333493=this[_0x11ef34(0x1ea)][_0x11ef34(0x282)](_0x55110a)[_0x11ef34(0x2f3)]();Array[_0x11ef34(0x279)](_0x333493)&&_0x333493[_0x11ef34(0x2d9)]>0x0&&this[_0x11ef34(0x312)](_0x333493);}[_0x568b98(0x1e7)](){this['_online']=!0x1;}};Ue=ui([L(0x2,_0x6d32dc(_0x1e626a)),L(0x3,_0x6d32dc(ke)),L(0x4,_0x6d32dc(_0xd60d12)),L(0x5,_0x6d32dc(He)),L(0x6,_0xfd345b),L(0x7,_0x1234fa),L(0x8,_0x450935)],Ue);var Si=Object[_0x568b98(0x261)],mi=(_0x3984d8,_0x3b772d,_0x26c1a7,_0x3bb5ab)=>{const _0x1de942=_0x568b98;for(var _0x3559ec=_0x3bb5ab>0x1?void 0x0:_0x3bb5ab?Si(_0x3b772d,_0x26c1a7):_0x3b772d,_0x22246f=_0x3984d8[_0x1de942(0x2d9)]-0x1,_0x361049;_0x22246f>=0x0;_0x22246f--)(_0x361049=_0x3984d8[_0x22246f])&&(_0x3559ec=_0x361049(_0x3559ec)||_0x3559ec);return _0x3559ec;},x=(_0x15b461,_0x1a3621)=>(_0xb88da0,_0x1e0875)=>_0x1a3621(_0xb88da0,_0x1e0875,_0x15b461);const gi=0x12c,Ii=0x64,vi=()=>{let _0x4214d6=[],_0x2dc996=!0x1;return _0x2db3c4=>{const _0x3c3315=_0xdafd;_0x4214d6[_0x3c3315(0x171)](_0x2db3c4),_0x2dc996||(_0x2dc996=!0x0,setTimeout(()=>{const _0x4b046a=_0x3c3315;_0x4214d6[_0x4b046a(0x153)](_0x1b2b1a=>_0x1b2b1a()),_0x4214d6=[],_0x2dc996=!0x1;}));};};let Me=class extends _0x4ffef8{constructor(_0x8fb868,_0x7f55c6,_0x36b7ac,_0x3b0d48,_0x571cc3,_0x59e950,_0x13c3c3,_0x2846c1){const _0x1a37ad=_0x568b98;super(),_(this,_0x1a37ad(0x22c),!0x1),_(this,'_init',!0x1),_(this,_0x1a37ad(0x317),new _0xd1fc21(new Map())),_(this,_0x1a37ad(0x1ae),this[_0x1a37ad(0x317)][_0x1a37ad(0x2cd)]()),_(this,'_roomMembers$',new _0xd1fc21([])),_(this,_0x1a37ad(0x1fc),this[_0x1a37ad(0x20c)][_0x1a37ad(0x21f)](_0x2f381b(gi))),_(this,_0x1a37ad(0x312),_0x23dd0f((_0x14d943,_0x42643b)=>{const _0x3cb672=_0x1a37ad,_0x4515e8={'eventID':_0x69b39f[_0x3cb672(0x166)],'data':{'unitID':this['unitID'],'memberID':this[_0x3cb672(0x1cc)]['getMemberID'](),'selection':_0x2471b8(_0x14d943,_0x42643b[_0x3cb672(0x14d)])}};this['_session'][_0x3cb672(0x1b7)](_0x4515e8,this[_0x3cb672(0x2f5)]);},Ii)),(this[_0x1a37ad(0x2f5)]=_0x8fb868,this[_0x1a37ad(0x1cc)]=_0x7f55c6,this[_0x1a37ad(0x1ea)]=_0x36b7ac,this[_0x1a37ad(0x1e8)]=_0x3b0d48,this[_0x1a37ad(0x246)]=_0x571cc3,this[_0x1a37ad(0x319)]=_0x59e950,this[_0x1a37ad(0x31a)]=_0x13c3c3,this['_refRangeService']=_0x2846c1);}get['cursorInfo'](){const _0x8db428=_0x568b98;return this[_0x8db428(0x317)]['getValue']();}get[_0x568b98(0x18c)](){const _0x1d1c0b=_0x568b98;return this['_roomMembers$'][_0x1d1c0b(0x1aa)]();}[_0x568b98(0x24e)](){const _0x209c6e=_0x568b98;super['dispose'](),this[_0x209c6e(0x317)]['next'](new Map()),this['_cursorInfo$'][_0x209c6e(0x238)](),this[_0x209c6e(0x20c)][_0x209c6e(0x27b)]([]),this['_roomMembers$'][_0x209c6e(0x238)]();}[_0x568b98(0x302)](){const _0x44ccb4=_0x568b98;this[_0x44ccb4(0x1e9)]||(this[_0x44ccb4(0x1e9)]=!0x0,this[_0x44ccb4(0x1cc)][_0x44ccb4(0x1f7)]['pipe'](_0x37d2d6(this[_0x44ccb4(0x2b1)]))['subscribe'](_0x267301=>{_0x267301===_0x51d7ad['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x44ccb4(0x1cc)][_0x44ccb4(0x24c)][_0x44ccb4(0x21f)](_0x37d2d6(this[_0x44ccb4(0x2b1)]))['subscribe'](_0x5be3e6=>{const _0x4aceea=_0x44ccb4,_0x41d472=_0x5be3e6[_0x4aceea(0x1be)];_0x41d472===_0x69b39f[_0x4aceea(0x166)]&&this[_0x4aceea(0x2d5)](_0x5be3e6),_0x41d472===_0x69b39f['USERS_LEAVE']&&this[_0x4aceea(0x2e4)](_0x5be3e6);}),this[_0x44ccb4(0x19c)](),this['disposeWithMe'](this[_0x44ccb4(0x31a)][_0x44ccb4(0x184)](_0x29fd6d=>{const _0x43a38d=_0x44ccb4;if(this[_0x43a38d(0x22c)]&&_0x29fd6d['id']===_0x248e9f['id']&&_0x29fd6d[_0x43a38d(0x2ff)][_0x43a38d(0x33b)]===this[_0x43a38d(0x2f5)]){const _0x363c34=_0x29fd6d[_0x43a38d(0x2ff)];this['_updateLocalCursor'](_0x363c34[_0x43a38d(0x2d7)],_0x363c34['selections'][0x0]);}})));}[_0x568b98(0x2d5)](_0x2c7792){const _0x3f7869=_0x568b98;var _0xa1337a,_0x1dd3d4;const {memberID:_0x883b36,selection:_0x543d91}=_0x2c7792[_0x3f7869(0x2ca)],{sheetName:_0x3a6dca,range:_0x16fbb8}=_0x8e11af(_0x543d91),_0x489185={'name':(_0x1dd3d4=(_0xa1337a=this[_0x3f7869(0x246)][_0x3f7869(0x337)](this['unitID'],_0x883b36))==null?void 0x0:_0xa1337a['name'])!=null?_0x1dd3d4:_0x3f7869(0x30c),'range':this['_getMergeRange'](_0x3a6dca,_0x16fbb8),'sheetID':_0x3a6dca,'color':this[_0x3f7869(0x1e8)][_0x3f7869(0x1c1)](_0x883b36),'selection':_0x543d91},_0x12aa2c=this[_0x3f7869(0x15f)];_0x12aa2c[_0x3f7869(0x214)](_0x883b36,_0x489185),this[_0x3f7869(0x317)][_0x3f7869(0x27b)](_0x12aa2c);}[_0x568b98(0x2e4)](_0x2f8378){const _0x28e461=_0x568b98,{memberID:_0x3c00fa}=_0x2f8378[_0x28e461(0x2ca)],_0x3e6ca9=this['cursorInfo'];_0x3e6ca9[_0x28e461(0x15b)](_0x3c00fa),this[_0x28e461(0x317)][_0x28e461(0x27b)](_0x3e6ca9);}[_0x568b98(0x178)](_0x27348b,_0x434b98){const _0x565342=_0x568b98;var _0x4fae29,_0x2d2885;const _0x537728=(_0x2d2885=(_0x4fae29=this[_0x565342(0x319)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x4fae29[_0x565342(0x323)](_0x27348b))==null?void 0x0:_0x2d2885[_0x565342(0x1a3)]();return(_0x537728==null?void 0x0:_0x537728[_0x565342(0x1f2)](_0x539a0f=>_0x471575[_0x565342(0x241)](_0x539a0f,_0x434b98)))||_0x434b98;}[_0x568b98(0x19c)](){const _0x1e13cb=_0x568b98,_0x4744dc=new _0x2cb202(),_0x123828=vi(),_0x3abf45=()=>{const _0x39df08=_0xdafd;_0x4744dc[_0x39df08(0x24e)]();const _0xfc0902=(_0x4cfa41,_0x19b54f,_0x384233,_0x3164df)=>{const _0x1e45f8=_0x39df08;let _0xdf2917=[];switch(_0x4cfa41['id']){case _0x17eb3c[_0x1e45f8(0x27c)]:{_0xdf2917=_0x33305e(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x13d)]:{_0xdf2917=_0x29bcab(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x1c2)]:{_0xdf2917=_0x52369e(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x289)]:{_0xdf2917=_0x1997e6(_0x4cfa41,_0x3164df);break;}case _0x17eb3c['InsertRangeMoveRightCommandId']:{_0xdf2917=_0x545273(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x33e)]:{_0xdf2917=_0x581d09(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x299)]:{_0xdf2917=_0x3a7196(_0x4cfa41,_0x3164df);break;}case _0x17eb3c[_0x1e45f8(0x23e)]:{_0xdf2917=_0x40020a(_0x4cfa41,_0x3164df);break;}case _0x17eb3c['RemoveRowCommandId']:{_0xdf2917=_0x516a47(_0x4cfa41,_0x3164df);break;}}const _0x47ea7d=_0x2b077d(_0xdf2917,_0x3164df),_0x34780d=this[_0x1e45f8(0x15f)][_0x1e45f8(0x282)](_0x19b54f);if(_0x34780d&&_0x47ea7d){const _0x72f231={..._0x34780d,'range':_0x47ea7d};this[_0x1e45f8(0x15f)][_0x1e45f8(0x214)](_0x19b54f,_0x72f231),_0x123828(()=>{const _0x1ba57b=_0x1e45f8,_0x5240a6=this[_0x1ba57b(0x2f4)]['registerRefRange'](_0x47ea7d,_0x57fef3=>(_0x5240a6[_0x1ba57b(0x24e)](),_0xfc0902(_0x57fef3,_0x19b54f,_0x384233,_0x47ea7d)));_0x4744dc['add'](_0x5240a6);});}return{'redos':[],'undos':[]};};this[_0x39df08(0x15f)][_0x39df08(0x153)]((_0x301ce7,_0x48cea5)=>{const _0xed6374=_0x39df08,{range:_0x46cabf,sheetID:_0x2962a9}=_0x301ce7,_0x46bc2f=this['_refRangeService'][_0xed6374(0x168)](_0x46cabf,_0x4db3f3=>(_0x46bc2f[_0xed6374(0x24e)](),_0xfc0902(_0x4db3f3,_0x48cea5,_0x2962a9,_0x46cabf)));_0x4744dc['add'](_0x46bc2f);});};this['disposeWithMe'](_0x1f8c5e(this[_0x1e13cb(0x317)]['subscribe'](()=>{_0x3abf45();})));}[_0x568b98(0x29d)](){const _0x2f047c=_0x568b98;var _0x40e52f,_0x2bf3ea;if(this['_online']=!0x0,((_0x40e52f=this[_0x2f047c(0x319)]['getFocusedUnit']())==null?void 0x0:_0x40e52f[_0x2f047c(0x284)]())!==this[_0x2f047c(0x2f5)])return;const _0x4d7851=(_0x2bf3ea=this[_0x2f047c(0x1ea)][_0x2f047c(0x282)](_0x5975a6)[_0x2f047c(0x1f5)]())==null?void 0x0:_0x2bf3ea[0x0],_0x7b9474=this[_0x2f047c(0x319)][_0x2f047c(0x2c2)](_0x142ba1['UNIVER_SHEET'])[_0x2f047c(0x156)]();_0x4d7851&&_0x7b9474&&this[_0x2f047c(0x312)](_0x7b9474[_0x2f047c(0x2d2)](),_0x4d7851);}[_0x568b98(0x1e7)](){const _0x396fce=_0x568b98;this[_0x396fce(0x22c)]=!0x1;}};Me=mi([x(0x2,_0x6d32dc(_0x1e626a)),x(0x3,_0x6d32dc(ke)),x(0x4,_0x6d32dc(_0xd60d12)),x(0x5,_0x1234fa),x(0x6,_0x450935),x(0x7,_0x6d32dc(_0x2d324d))],Me);var pi=Object[_0x568b98(0x261)],Ci=(_0x58b9e7,_0x122e62,_0x54a6e9,_0x3405a7)=>{const _0x2c3d7=_0x568b98;for(var _0x32f81a=_0x3405a7>0x1?void 0x0:_0x3405a7?pi(_0x122e62,_0x54a6e9):_0x122e62,_0xc407e5=_0x58b9e7[_0x2c3d7(0x2d9)]-0x1,_0x3601c7;_0xc407e5>=0x0;_0xc407e5--)(_0x3601c7=_0x58b9e7[_0xc407e5])&&(_0x32f81a=_0x3601c7(_0x32f81a)||_0x32f81a);return _0x32f81a;},Se=(_0x264f36,_0x5af2fe)=>(_0x4ca53e,_0x40add1)=>_0x5af2fe(_0x4ca53e,_0x40add1,_0x264f36);let H=class extends _0x4ffef8{constructor(_0x2252c0,_0x1831af,_0x1c2397){const _0x313d76=_0x568b98;super(),_(this,_0x313d76(0x233),new Map()),_(this,_0x313d76(0x165),new _0x1b2d13()),(this[_0x313d76(0x319)]=_0x2252c0,this[_0x313d76(0x1ea)]=_0x1831af,this['_collabSessionService']=_0x1c2397,this[_0x313d76(0x1e9)]());}[_0x568b98(0x24e)](){const _0x9a7fc=_0x568b98;super['dispose'](),this[_0x9a7fc(0x165)][_0x9a7fc(0x238)](),this[_0x9a7fc(0x233)][_0x9a7fc(0x153)](_0x48c671=>_0x48c671['dispose']());}[_0x568b98(0x248)](_0x2f922b){const _0x3f5619=_0x568b98;return this[_0x3f5619(0x233)][_0x3f5619(0x2c4)](_0x2f922b)?this[_0x3f5619(0x233)][_0x3f5619(0x282)](_0x2f922b)[_0x3f5619(0x1ae)]:this['_entityInit$'][_0x3f5619(0x21f)](_0x242cb5(_0xe5b21f=>_0xe5b21f['unitID']===_0x2f922b),_0x15bcfa(_0x2127b4=>_0x2127b4[_0x3f5619(0x1ae)]));}[_0x568b98(0x1e9)](){const _0xa3c9f8=_0x568b98;this[_0xa3c9f8(0x319)][_0xa3c9f8(0x19b)](_0x142ba1['UNIVER_SHEET'])[_0xa3c9f8(0x21f)](_0x37d2d6(this[_0xa3c9f8(0x2b1)]))[_0xa3c9f8(0x294)](async _0xa07adc=>{const _0x189feb=_0xa3c9f8,_0xe484de=_0xa07adc[_0x189feb(0x284)](),_0x1a92fb=await this[_0x189feb(0x245)](_0xe484de);this[_0x189feb(0x165)]['next'](_0x1a92fb),this[_0x189feb(0x233)][_0x189feb(0x214)](_0xe484de,_0x1a92fb);}),this[_0xa3c9f8(0x319)][_0xa3c9f8(0x19b)](_0x142ba1['UNIVER_DOC'])[_0xa3c9f8(0x21f)](_0x37d2d6(this['dispose$']))['pipe'](_0x242cb5(_0x2ce2b0=>!_0x2ce2b0['getUnitId']()[_0xa3c9f8(0x224)]('__')))[_0xa3c9f8(0x294)](async _0x546b76=>{const _0x493ad0=_0xa3c9f8,_0x337e21=_0x546b76[_0x493ad0(0x284)](),_0x48f28f=await this[_0x493ad0(0x32b)](_0x337e21);this[_0x493ad0(0x165)][_0x493ad0(0x27b)](_0x48f28f),this[_0x493ad0(0x233)][_0x493ad0(0x214)](_0x337e21,_0x48f28f);}),_0x1a95c3(this[_0xa3c9f8(0x319)]['getTypeOfUnitDisposed$'](_0x142ba1[_0xa3c9f8(0x196)]),this['_univerInstanceService'][_0xa3c9f8(0x330)](_0x142ba1[_0xa3c9f8(0x23a)]))[_0xa3c9f8(0x21f)](_0x37d2d6(this[_0xa3c9f8(0x2b1)]))[_0xa3c9f8(0x294)](_0x12c106=>{const _0x1bf32b=_0xa3c9f8,_0x2bda7a=_0x12c106[_0x1bf32b(0x284)](),_0x1edcaf=this[_0x1bf32b(0x233)][_0x1bf32b(0x282)](_0x2bda7a);_0x1edcaf&&(_0x1edcaf[_0x1bf32b(0x24e)](),this['_entities']['delete'](_0x2bda7a));});}async[_0x568b98(0x245)](_0x183684){const _0x2f9761=_0x568b98,_0x569c1c=await this[_0x2f9761(0x2b0)][_0x2f9761(0x28f)](_0x183684),_0x5e40c3=this[_0x2f9761(0x1ea)][_0x2f9761(0x329)](Me,_0x183684,_0x569c1c);return _0x5e40c3[_0x2f9761(0x302)](),_0x5e40c3;}async[_0x568b98(0x32b)](_0x18ac52){const _0xb01e58=_0x568b98,_0x2f99f8=await this[_0xb01e58(0x2b0)]['requireSession'](_0x18ac52),_0x24f3bf=this[_0xb01e58(0x1ea)][_0xb01e58(0x329)](Ue,_0x18ac52,_0x2f99f8);return _0x24f3bf[_0xb01e58(0x302)](),_0x24f3bf;}};function _0xdafd(_0x18476a,_0x35471d){const _0x2095ba=_0x2095();return _0xdafd=function(_0xdafd93,_0x5a3d6a){_0xdafd93=_0xdafd93-0x13d;let _0x1af345=_0x2095ba[_0xdafd93];return _0x1af345;},_0xdafd(_0x18476a,_0x35471d);}H=Ci([Se(0x0,_0x1234fa),Se(0x1,_0x6d32dc(_0x1e626a)),Se(0x2,_0x6d32dc(_0x5ae39d))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x9b8ebf,_0x2b55b0){const _0x20b051=_0x568b98;let {radius:_0x47e892,width:_0x1d7fa1,height:_0x22683a}=_0x2b55b0;_0x47e892=_0x47e892!=null?_0x47e892:0x0,_0x1d7fa1=_0x1d7fa1!=null?_0x1d7fa1:0x1e,_0x22683a=_0x22683a!=null?_0x22683a:0x1e;let _0xc16bd7=0x0,_0x5d7bd1=0x0,_0x170363=0x0;_0xc16bd7=_0x5d7bd1=_0x170363=Math[_0x20b051(0x1a0)](_0x47e892,_0x1d7fa1/0x2,_0x22683a/0x2),_0x9b8ebf[_0x20b051(0x212)](),_0x9b8ebf['moveTo'](_0xc16bd7,0x0),_0x9b8ebf[_0x20b051(0x33a)](_0x1d7fa1-_0x5d7bd1,0x0),_0x9b8ebf[_0x20b051(0x170)](_0x1d7fa1-_0x5d7bd1,_0x5d7bd1,_0x5d7bd1,Math['PI']*0x3/0x2,0x0,!0x1),_0x9b8ebf['lineTo'](_0x1d7fa1,_0x22683a-_0x170363),_0x9b8ebf[_0x20b051(0x170)](_0x1d7fa1-_0x170363,_0x22683a-_0x170363,_0x170363,0x0,Math['PI']/0x2,!0x1),_0x9b8ebf[_0x20b051(0x33a)](0x0,_0x22683a),_0x9b8ebf[_0x20b051(0x33a)](0x0,_0xc16bd7),_0x9b8ebf[_0x20b051(0x170)](_0xc16bd7,_0xc16bd7,_0xc16bd7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x9b8ebf[_0x20b051(0x14f)](),_0x2b55b0['fill']&&(_0x9b8ebf[_0x20b051(0x265)](),_0x9b8ebf['fillStyle']=_0x2b55b0[_0x20b051(0x155)],_0x2b55b0[_0x20b051(0x232)]===_0x20b051(0x20d)?_0x9b8ebf[_0x20b051(0x155)](_0x20b051(0x20d)):_0x9b8ebf[_0x20b051(0x155)](),_0x9b8ebf['restore']());}class he extends _0x5dbcdf{constructor(_0x5691ee,_0x43d686){const _0x3dcad2=_0x568b98;super(_0x5691ee,_0x43d686),_(this,'color'),_(this,_0x3dcad2(0x1f1)),(this[_0x3dcad2(0x21e)]=_0x43d686==null?void 0x0:_0x43d686['color'],this[_0x3dcad2(0x1f1)]=_0x43d686==null?void 0x0:_0x43d686[_0x3dcad2(0x1f1)]);}static[_0x568b98(0x325)](_0x4f1592,_0x432992){const _0x385bd3=_0x568b98,{text:_0x18c035,color:_0x17e5ec}=_0x432992;_0x4f1592[_0x385bd3(0x265)](),_0x4f1592[_0x385bd3(0x2ec)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2658f3=_0x4f1592[_0x385bd3(0x1ff)](_0x18c035)[_0x385bd3(0x2a0)],_0x4bd3b4=Math['min'](_0x2658f3+0x2*me,Qe);Oi(_0x4f1592,{'height':ee,'radius':0x4,'width':_0x4bd3b4,'fill':_0x17e5ec}),_0x4f1592[_0x385bd3(0x2e3)]='#FFF';const _0x130195=me,_0x2c93d0=ee-Ei,_0x176000=Qe-0x2*me;if(_0x2658f3>_0x176000){let _0x14068e='',_0x11bc6a=0x0;for(const _0x26ae17 of _0x18c035){const _0x45160b=_0x4f1592[_0x385bd3(0x1ff)](_0x26ae17)['width'];if(_0x11bc6a+_0x45160b<=_0x176000-_0x4f1592[_0x385bd3(0x1ff)](_0x385bd3(0x303))[_0x385bd3(0x2a0)])_0x14068e+=_0x26ae17,_0x11bc6a+=_0x45160b;else{_0x14068e+='...';break;}}_0x4f1592[_0x385bd3(0x33f)](_0x14068e,_0x130195,_0x2c93d0);}else _0x4f1592['fillText'](_0x18c035,_0x130195,_0x2c93d0);_0x4f1592['restore']();}[_0x568b98(0x142)](_0x11ed3a){he['drawWith'](_0x11ed3a,this);}}const ge='collab-text-anchor-',bi=_0x568b98(0x31d),Ti=_0x568b98(0x209),X=0x6,Ri=1.5,Ie=0x4,Di=1.5,Ni=_0x568b98(0x1c4);class qe{constructor(_0x456fa6,_0x4cc7cd,_0x5c1dee,_0x27532f){const _0x59dde9=_0x568b98;_(this,_0x59dde9(0x19e),[]),_(this,'_anchor',null),_(this,_0x59dde9(0x33c),null),_(this,'_anchorDot',null),_(this,_0x59dde9(0x151),null),_(this,_0x59dde9(0x2ed),null),(this[_0x59dde9(0x2b4)]=_0x456fa6,this[_0x59dde9(0x310)]=_0x4cc7cd,this[_0x59dde9(0x252)]=_0x5c1dee,this[_0x59dde9(0x148)]=_0x27532f,this[_0x59dde9(0x2a8)]());}set['_hover'](_0x523491){const _0x5e79fe=_0x568b98;_0x523491?(this[_0x5e79fe(0x257)]&&this[_0x5e79fe(0x257)]['hide'](),this[_0x5e79fe(0x33c)]&&this['_textBubble'][_0x5e79fe(0x27d)]()):(this[_0x5e79fe(0x257)]&&this[_0x5e79fe(0x257)][_0x5e79fe(0x27d)](),this[_0x5e79fe(0x33c)]&&this[_0x5e79fe(0x33c)][_0x5e79fe(0x2af)]());}[_0x568b98(0x24e)](){const _0x5e3795=_0x568b98;for(const _0x5ab817 of this[_0x5e3795(0x19e)])_0x5ab817['dispose']();this[_0x5e3795(0x33c)]&&this[_0x5e3795(0x33c)]['dispose'](),this['_anchorDot']&&this[_0x5e3795(0x257)][_0x5e3795(0x24e)](),this[_0x5e3795(0x1fe)]&&this[_0x5e3795(0x1fe)][_0x5e3795(0x24e)](),this['_eventUnsubscribe']&&this[_0x5e3795(0x2ed)]();}[_0x568b98(0x2a8)](){const _0x87107e=_0x568b98;var _0x384920;const {_docSkeleton:_0x483f1e,_document:_0x7b77b}=this,{color:_0x4b051a,name:_0x515ebc,ranges:_0x1b77cb}=this[_0x87107e(0x2b4)],_0x2ea116=_0x7b77b[_0x87107e(0x17f)](),{docsLeft:_0xc8dca6,docsTop:_0x1c3064}=_0x2ea116,_0x1bb30b=new _0x532758(_0x2ea116,_0x483f1e);for(const {startOffset:_0x5c9261,endOffset:_0x1b7966,rangeType:_0x3a2588,segmentId:_0x24e795,segmentPage:_0x4b7493,collapsed:_0x23ef6a,isActive:_0x2507ac}of _0x1b77cb){const _0xb4a3b4=_0x483f1e[_0x87107e(0x2ce)](_0x5c9261,!0x0,_0x24e795,_0x4b7493);let _0x272f55=_0x483f1e[_0x87107e(0x2ce)](_0x1b7966,!0x0,_0x24e795,_0x4b7493);if(_0x272f55==null&&(_0x272f55=_0x483f1e['findNodePositionByCharIndex'](_0x1b7966-0x1,!0x1,_0x24e795,_0x4b7493)),_0x2507ac){const {contentBoxPointGroup:_0x2d7026}=_0x1bb30b[_0x87107e(0x222)](_0x272f55,_0x272f55);if(_0x2d7026[_0x87107e(0x2d9)]===0x0)continue;this[_0x87107e(0x2a5)](_0x4b051a,_0x2d7026,_0xc8dca6,_0x1c3064,_0x515ebc),this[_0x87107e(0x2ed)]=this['_handleHover']();}if(_0xb4a3b4&&_0x272f55){if(_0x3a2588===_0x1f3f3d[_0x87107e(0x14b)]){const _0x2e8c5f=new _0x1d1cb9(_0x2ea116,_0x483f1e),{pointGroup:_0x5535df}=(_0x384920=_0x2e8c5f[_0x87107e(0x222)](_0xb4a3b4,_0x272f55))!=null?_0x384920:{};if(_0x5535df==null||_0x5535df[_0x87107e(0x2d9)]===0x0)continue;this[_0x87107e(0x23c)](_0x4b051a,_0x5535df,_0xc8dca6,_0x1c3064);}else{if(!_0x23ef6a){const {borderBoxPointGroup:_0x51326b}=_0x1bb30b['getRangePointData'](_0xb4a3b4,_0x272f55);if(_0x51326b[_0x87107e(0x2d9)]===0x0)continue;this['_drawTextRange'](_0x4b051a,_0x51326b,_0xc8dca6,_0x1c3064);}}}}}[_0x568b98(0x2a5)](_0xda5f5c,_0x28329,_0x21fedb,_0x4c26a8,_0x273699){const _0x36648=_0x568b98,_0x360326=this[_0x36648(0x308)](_0x28329),{left:_0xd78655,top:_0x29cc51,height:_0x3a2695}=_0x360326,_0x3913ff=this[_0x36648(0x25e)](),_0x23ede8=Di/_0x3913ff,_0x4ad5cb=new _0x2e1f81(ge+_0x4ce80e[_0x36648(0x1e4)](X),{'left':_0xd78655+_0x21fedb-_0x23ede8,'top':_0x29cc51+_0x4c26a8,'height':_0x3a2695,'width':Ri,'fill':_0xda5f5c||_0x370534(_0x3530f0[_0x36648(0x2bd)],0x0),'strokeWidth':_0x23ede8,'stroke':Ni,'evented':!0x0});this['_anchor']=_0x4ad5cb,this['_scene'][_0x36648(0x286)](_0x4ad5cb,_0x56e242);const _0x937913=new _0x2e1f81(ge+_0x4ce80e[_0x36648(0x1e4)](X),{'left':_0xd78655+_0x21fedb-_0x23ede8,'top':_0x29cc51+_0x4c26a8-Ie/0x2,'height':Ie,'width':Ie,'fill':_0xda5f5c||_0x370534(_0x3530f0[_0x36648(0x2bd)],0x0),'strokeWidth':0x0,'stroke':_0xda5f5c||_0x370534(_0x3530f0[_0x36648(0x2bd)],0x0),'evented':!0x1});this[_0x36648(0x257)]=_0x937913,this[_0x36648(0x310)][_0x36648(0x286)](_0x937913,_0x56e242);const _0x496646=new he(ge+_0x4ce80e[_0x36648(0x1e4)](X),{'left':_0xd78655+_0x21fedb-_0x23ede8,'top':_0x29cc51+_0x4c26a8-ee,'text':_0x273699,'color':_0xda5f5c});this['_textBubble']=_0x496646,this[_0x36648(0x310)][_0x36648(0x286)](_0x496646,_0x56e242),this['_hover']=!0x1;}[_0x568b98(0x297)](){const _0x529419=_0x568b98,_0x5ee5b6=this[_0x529419(0x1fe)]['onPointerEnter$'][_0x529419(0x227)](()=>{const _0x1704ad=_0x529419;this[_0x1704ad(0x204)]=!0x0;}),_0x2e53d0=this[_0x529419(0x1fe)][_0x529419(0x154)]['subscribeEvent'](()=>{const _0x41e6ed=_0x529419;this[_0x41e6ed(0x151)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x40bb32=_0x41e6ed;this[_0x40bb32(0x204)]=!0x1;},0x7d0);});return()=>{const _0x44b32c=_0x529419;_0x5ee5b6[_0x44b32c(0x296)](),_0x2e53d0[_0x44b32c(0x296)]();};}['_drawTextRange'](_0x1704bd,_0x3d25b1,_0x4b66e9,_0x377386){const _0x28bcd7=_0x568b98,_0x34dfc4=new _0x2ee150(_0x1704bd)[_0x28bcd7(0x162)](0.2)[_0x28bcd7(0x2c8)](),_0x2ff431=new _0x322c0e(bi+_0x4ce80e[_0x28bcd7(0x1e4)](X),{'pointsGroup':_0x3d25b1,'fill':_0x34dfc4||_0x370534(_0x3530f0[_0x28bcd7(0x2bd)],0.2),'left':_0x4b66e9,'top':_0x377386,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x28bcd7(0x19e)][_0x28bcd7(0x171)](_0x2ff431),this[_0x28bcd7(0x310)][_0x28bcd7(0x286)](_0x2ff431,_0x56e242);}['_drawRectRange'](_0x3c8906,_0x1b8d12,_0x3dea67,_0x153cb2){const _0x450b6d=_0x568b98,_0x4790bf=new _0x2ee150(_0x3c8906)[_0x450b6d(0x162)](0.2)[_0x450b6d(0x2c8)](),_0x44e281=new _0x322c0e(Ti+_0x4ce80e['generateRandomId'](X),{'pointsGroup':_0x1b8d12,'fill':_0x4790bf||_0x370534(_0x3530f0[_0x450b6d(0x2bd)],0.2),'left':_0x3dea67,'top':_0x153cb2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x450b6d(0x171)](_0x44e281),this[_0x450b6d(0x310)][_0x450b6d(0x286)](_0x44e281,_0x56e242);}[_0x568b98(0x308)](_0x3adfca){const _0x449b69=_0x3adfca[0x0],_0x56f468=_0x449b69[0x0],_0x44a824=_0x449b69[0x2],{x:_0x4e34c2,y:_0x5995e0}=_0x56f468,{x:_0x4996fa,y:_0x4c6078}=_0x44a824;return{'left':_0x4e34c2,'top':_0x5995e0,'width':_0x4996fa-_0x4e34c2,'height':_0x4c6078-_0x5995e0};}[_0x568b98(0x25e)](){const _0x413b5a=_0x568b98,{scaleX:_0x5162e4,scaleY:_0x1b0307}=this[_0x413b5a(0x310)][_0x413b5a(0x2d6)]();return Math[_0x413b5a(0x210)](_0x5162e4,_0x1b0307);}}var Ui=Object[_0x568b98(0x261)],Mi=(_0x370b0f,_0x3fc972,_0x10a4b4,_0x477e55)=>{const _0x5eaaeb=_0x568b98;for(var _0x3c4689=_0x477e55>0x1?void 0x0:_0x477e55?Ui(_0x3fc972,_0x10a4b4):_0x3fc972,_0x581af5=_0x370b0f[_0x5eaaeb(0x2d9)]-0x1,_0x32decd;_0x581af5>=0x0;_0x581af5--)(_0x32decd=_0x370b0f[_0x581af5])&&(_0x3c4689=_0x32decd(_0x3c4689)||_0x3c4689);return _0x3c4689;},Z=(_0x5cabfb,_0x1cefc5)=>(_0x4c9b64,_0x416dad)=>_0x1cefc5(_0x4c9b64,_0x416dad,_0x5cabfb);let Pe=class extends _0x4ffef8{constructor(_0xbcb093,_0x3a4ab9,_0x22ec4b,_0x3e891d,_0x288ff3){const _0x482845=_0x568b98;super(),_(this,_0x482845(0x1ba),[]),_(this,_0x482845(0x1ed),[]),(this[_0x482845(0x1ef)]=_0xbcb093,this['_docSkeletonManagerService']=_0x3a4ab9,this[_0x482845(0x1d2)]=_0x22ec4b,this[_0x482845(0x31a)]=_0x3e891d,this['_themeService']=_0x288ff3,this[_0x482845(0x1e9)]());}['_init'](){const _0x3814a0=_0x568b98,_0x2962bd=this[_0x3814a0(0x1ef)][_0x3814a0(0x33b)],_0x2db7bd=this['_docSkeletonManagerService'];this[_0x3814a0(0x219)](_0x321be4([this['_collabCursorController']['getCollabCursors$'](_0x2962bd),this[_0x3814a0(0x2f2)]['currentTheme$']])[_0x3814a0(0x21f)](_0xb8b86(([_0x1244e6,_0x5841ad])=>({'skeleton':_0x2db7bd[_0x3814a0(0x26d)](),'cursors':[..._0x1244e6['values']()][_0x3814a0(0x1fa)](_0x424f5f=>({..._0x424f5f,'color':this['_themeService']['getColorFromTheme'](_0x424f5f[_0x3814a0(0x21e)])}))})))['subscribe'](_0x3acb2b=>{const _0x3292a9=_0x3814a0;if(this[_0x3292a9(0x311)](),_0x3acb2b){const {skeleton:_0x1803cc,cursors:_0x193083}=_0x3acb2b;this['_updateCollabCursors'](_0x1803cc,_0x193083);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x568b98(0x1c6)](_0x332bff,_0xbb1131){const _0x33db70=_0x568b98,{scene:_0x1ae6ba,mainComponent:_0xc7d0e3}=this[_0x33db70(0x1ef)],_0x1af33c=_0xbb1131[_0x33db70(0x2ad)](_0x4ef5ba=>new qe(_0x4ef5ba,_0x1ae6ba,_0x332bff,_0xc7d0e3));this[_0x33db70(0x1ba)]=_0x1af33c,this[_0x33db70(0x1ed)]=_0xbb1131;}[_0x568b98(0x1c0)](){const _0x4a5f9c=_0x568b98;this['_removeCollabCursors']();const {scene:_0x2ef3a6,mainComponent:_0x36ff20}=this['_context'],_0x550f98=this[_0x4a5f9c(0x186)][_0x4a5f9c(0x26d)](),_0x3f0e9d=this['_cursors'][_0x4a5f9c(0x2ad)](_0x1a6bee=>new qe(_0x1a6bee,_0x2ef3a6,_0x550f98,_0x36ff20));this[_0x4a5f9c(0x1ba)]=_0x3f0e9d;}[_0x568b98(0x311)](){const _0x59983d=_0x568b98;this[_0x59983d(0x1ba)]['forEach'](_0x425347=>_0x425347[_0x59983d(0x24e)]()),this[_0x59983d(0x1ba)]=[];}['_initCommandExecutedListener'](){const _0x24a068=_0x568b98,_0x3815e4=[_0x5e04db['id']];this[_0x24a068(0x219)](this[_0x24a068(0x31a)][_0x24a068(0x184)](_0x4fc4c5=>{const _0x1634be=_0x24a068;_0x3815e4[_0x1634be(0x2b3)](_0x4fc4c5['id'])&&_0x4fc4c5[_0x1634be(0x2ff)][_0x1634be(0x33b)]===this[_0x1634be(0x1ef)][_0x1634be(0x33b)]&&this[_0x1634be(0x1c0)]();}));}[_0x568b98(0x1cb)](){const _0x560bc0=_0x568b98;this[_0x560bc0(0x219)](_0x4d8be1(this[_0x560bc0(0x1ef)][_0x560bc0(0x1a2)][_0x560bc0(0x2b8)])[_0x560bc0(0x21f)](_0x3a7855(_0x21c577=>_0x21c577['type']===_0x1d0f06[_0x560bc0(0x1b9)]),_0x20128c(0x10))[_0x560bc0(0x294)](()=>{const _0x27e811=_0x560bc0;this[_0x27e811(0x1c0)]();}));}};Pe=Mi([Z(0x1,_0x6d32dc(_0x1afc74)),Z(0x2,_0x6d32dc(H)),Z(0x3,_0x450935),Z(0x4,_0x6d32dc(_0x507dc3))],Pe);const Pi=0x1,Li=1.5;class wi extends _0x5dbcdf{constructor(_0x4101b1,_0x475443){const _0x55073a=_0x568b98;super(_0x4101b1,_0x475443),_(this,_0x55073a(0x17d)),_(this,_0x55073a(0x2b9),!0x1),_(this,_0x55073a(0x18f)),_(this,_0x55073a(0x2c3),''),_(this,_0x55073a(0x13f),_0x55073a(0x1a4)),_(this,_0x55073a(0x182)),(_0x475443&&this[_0x55073a(0x225)](_0x475443),this[_0x55073a(0x314)]['subscribeEvent'](()=>this[_0x55073a(0x225)]({'hovered':!0x0})),this[_0x55073a(0x154)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x568b98(0x225)](_0x31bd1f){const _0x364d20=_0x568b98;var _0x3f8aef,_0x26c1bc,_0x26bb51,_0x3ce8e0,_0x20a564,_0x212f33;this[_0x364d20(0x17d)]=(_0x3f8aef=_0x31bd1f[_0x364d20(0x21e)])!=null?_0x3f8aef:this[_0x364d20(0x17d)],this[_0x364d20(0x2b9)]=(_0x26c1bc=_0x31bd1f[_0x364d20(0x17b)])!=null?_0x26c1bc:this[_0x364d20(0x2b9)],this[_0x364d20(0x18f)]=(_0x26bb51=_0x31bd1f['range'])!=null?_0x26bb51:this[_0x364d20(0x18f)],this[_0x364d20(0x2c3)]=(_0x3ce8e0=_0x31bd1f[_0x364d20(0x201)])!=null?_0x3ce8e0:this['_name'],this[_0x364d20(0x13f)]=(_0x20a564=_0x31bd1f[_0x364d20(0x305)])!=null?_0x20a564:this[_0x364d20(0x13f)],this[_0x364d20(0x182)]=(_0x212f33=_0x31bd1f[_0x364d20(0x1b5)])!=null?_0x212f33:this[_0x364d20(0x182)],this[_0x364d20(0x339)]({'width':_0x31bd1f[_0x364d20(0x2a0)],'height':_0x31bd1f[_0x364d20(0x24d)]});}[_0x568b98(0x2ba)](_0x137672){const _0x3b7059=_0x568b98,{row:_0x3f5313,column:_0x3d8316}=_0x137672;if(_0x3f5313>=this['_range'][_0x3b7059(0x1f3)]&&_0x3f5313<=this[_0x3b7059(0x18f)][_0x3b7059(0x1f4)]&&_0x3d8316>=this['_range'][_0x3b7059(0x147)]&&_0x3d8316<=this[_0x3b7059(0x18f)]['endColumn']){this[_0x3b7059(0x225)]({'hovered':!0x0});return;}this[_0x3b7059(0x225)]({'hovered':!0x1});}['triggerDblclick'](_0x5c77b5){return!0x1;}[_0x568b98(0x142)](_0x4e4c6b){const _0x24aa9d=_0x568b98;_0x2e1f81[_0x24aa9d(0x325)](_0x4e4c6b,{'width':this[_0x24aa9d(0x2a0)],'height':this[_0x24aa9d(0x24d)],'strokeWidth':Li,'stroke':this[_0x24aa9d(0x17d)],'evented':!0x1,'fill':this[_0x24aa9d(0x182)]}),this[_0x24aa9d(0x2b9)]&&(_0x4e4c6b[_0x24aa9d(0x265)](),_0x4e4c6b[_0x24aa9d(0x1ec)](0x1,0x0,0x0,0x1,this[_0x24aa9d(0x2a0)],this[_0x24aa9d(0x13f)]===_0x24aa9d(0x229)?0x0:-0x14),he[_0x24aa9d(0x325)](_0x4e4c6b,{'text':this['_name'],'color':this[_0x24aa9d(0x17d)]}),_0x4e4c6b[_0x24aa9d(0x271)]());}}var Ai=Object['getOwnPropertyDescriptor'],yi=(_0x240114,_0x12230d,_0x31e60a,_0x34dc87)=>{const _0x2b1452=_0x568b98;for(var _0x20865a=_0x34dc87>0x1?void 0x0:_0x34dc87?Ai(_0x12230d,_0x31e60a):_0x12230d,_0x14ea92=_0x240114[_0x2b1452(0x2d9)]-0x1,_0x596620;_0x14ea92>=0x0;_0x14ea92--)(_0x596620=_0x240114[_0x14ea92])&&(_0x20865a=_0x596620(_0x20865a)||_0x20865a);return _0x20865a;},ve=(_0x34928f,_0x23ca01)=>(_0xf71665,_0x32df10)=>_0x23ca01(_0xf71665,_0x32df10,_0x34928f);const $i=0x1389;let Le=class extends _0x4ffef8{constructor(_0x1046fd,_0x1f6131,_0x371e49,_0x17a943){const _0x25093d=_0x568b98;super(),_(this,'_cursors',new Set()),_(this,_0x25093d(0x169),null),(this[_0x25093d(0x1ef)]=_0x1046fd,this['_sheetSkeletonManagerService']=_0x1f6131,this[_0x25093d(0x1d2)]=_0x371e49,this[_0x25093d(0x2f2)]=_0x17a943,this[_0x25093d(0x1e9)]());}[_0x568b98(0x1e9)](){const _0x17e948=_0x568b98;this[_0x17e948(0x2a2)]['currentSkeleton$']['pipe'](_0x257644(this[_0x17e948(0x2b1)]),_0x5ecea1(_0x3b9d07=>{const _0xd8b3ce=_0x17e948;if(_0x3b9d07){const _0x33e9e9=_0x3b9d07[_0xd8b3ce(0x2d3)];return _0x321be4(this[_0xd8b3ce(0x1d2)]['getCollabCursors$'](this[_0xd8b3ce(0x1ef)]['unitId']),this[_0xd8b3ce(0x2f2)]['currentTheme$'])[_0xd8b3ce(0x21f)](_0xb8b86(([_0x34a712,_0x145bad])=>{const _0x2cb378=_0xd8b3ce,_0x317cd1=new Map();return _0x34a712[_0x2cb378(0x153)]((_0x5e918c,_0x3a892f)=>{const _0x49c9a3=_0x2cb378;if(_0x5e918c[_0x49c9a3(0x333)]===_0x33e9e9){const _0x1ce051={..._0x5e918c};_0x1ce051[_0x49c9a3(0x21e)]=this['_themeService'][_0x49c9a3(0x198)](_0x5e918c['color']),_0x317cd1[_0x49c9a3(0x214)](_0x3a892f,_0x1ce051);}}),{'skeleton':_0x3b9d07,'cursors':_0x317cd1};}));}return _0x5ba222({'skeleton':null,'cursors':new Map()});}))[_0x17e948(0x294)](({skeleton:_0x263d0c,cursors:_0x3ebb39})=>{const _0x1f36f1=_0x17e948;this[_0x1f36f1(0x311)](),_0x263d0c&&this[_0x1f36f1(0x1c6)](_0x263d0c,_0x3ebb39);}),this[_0x17e948(0x2a2)][_0x17e948(0x23d)][_0x17e948(0x294)](_0x39ce65=>{const _0x4102d4=_0x17e948;if(_0x39ce65==null)return;const {skeleton:_0x1986af}=_0x39ce65,{scene:_0x4d2dae}=this[_0x4102d4(0x1ef)];_0x4d2dae[_0x4102d4(0x173)][_0x4102d4(0x227)](_0x23dd0f(_0x57a001=>{const _0x3a95d8=_0x4102d4;var _0x2522ab,_0x4f9dc8;const {offsetX:_0x3a7ab6,offsetY:_0x5bc1ba}=_0x57a001,{x:_0x5a9c10,y:_0x25a33c}=_0x4d2dae[_0x3a95d8(0x220)](_0xba7c2[_0x3a95d8(0x18d)]([_0x3a7ab6,_0x5bc1ba])),{scaleX:_0x58ce6f,scaleY:_0x37d1b0}=_0x4d2dae['getAncestorScale'](),_0x5eedf2=_0x4d2dae[_0x3a95d8(0x2d4)](_0x51dbc8[_0x3a95d8(0x27e)]),_0x1425e3=_0x4d2dae[_0x3a95d8(0x2bf)](_0xba7c2[_0x3a95d8(0x18d)]([_0x5a9c10,_0x25a33c]),_0x5eedf2),_0x2e4753=_0x1986af[_0x3a95d8(0x32e)](_0x3a7ab6,_0x5bc1ba,_0x58ce6f,_0x37d1b0,_0x1425e3);((_0x2522ab=this['_lastPointer'])==null?void 0x0:_0x2522ab[_0x3a95d8(0x258)])===_0x2e4753['column']&&((_0x4f9dc8=this[_0x3a95d8(0x169)])==null?void 0x0:_0x4f9dc8['row'])===_0x2e4753['row']||this['_cursors'][_0x3a95d8(0x153)](_0x332dc4=>{const _0x55aab7=_0x3a95d8;_0x332dc4[_0x55aab7(0x2ba)](_0x2e4753);});},0x64));});}['_updateCollabCursors'](_0x1fcf4a,_0x4d2f48){const _0x565d6a=_0x568b98;var _0x359ccb;const _0x2a2815=(_0x359ccb=this['_sheetSkeletonManagerService'][_0x565d6a(0x2fb)]())==null?void 0x0:_0x359ccb['skeleton'];if(!_0x2a2815)return;const _0x405f68=this[_0x565d6a(0x1ac)]();if(!_0x405f68)return;this[_0x565d6a(0x1ed)][_0x565d6a(0x153)](_0x1368cf=>{const _0x1ff984=_0x565d6a;_0x1368cf[_0x1ff984(0x1a1)]();});const {scene:_0x1945b4}=_0x405f68,_0xd7e235=xi(Array['from'](_0x4d2f48[_0x565d6a(0x2b6)]()))[_0x565d6a(0x2ad)](_0x56e9fb=>{const _0x357e9a=_0x565d6a,{color:_0x267e74,range:_0x5e5e0b,name:_0x229c17,selection:_0x5dcd74,sheetID:_0x1543bb}=_0x56e9fb,{startColumn:_0x2d03af,startRow:_0x41eadf,endColumn:_0x49539b,endRow:_0xdae01a}=_0x5e5e0b,_0x2c1320=_0x32fc47(_0x41eadf,_0x2d03af,_0x1945b4,_0x2a2815),_0x55be59=_0x32fc47(_0xdae01a,_0x49539b,_0x1945b4,_0x2a2815),{columnHeaderHeightAndMarginTop:_0x1c7b14}=_0x2a2815,{startX:_0x2a16ef,startY:_0x214d18}=_0x2c1320,{endX:_0x22574a,endY:_0x3d5911}=_0x55be59,_0x59b96e=_0x22574a-_0x2a16ef,_0xc24442=_0x3d5911-_0x214d18,_0x2ea05e={'labelPosition':_0x214d18-_0x1c7b14>=ee?_0x357e9a(0x1a4):'bottom','sheetID':_0x1543bb,'range':_0x5e5e0b,'color':_0x267e74,'name':_0x229c17,'selection':_0x5dcd74,'left':_0x2a16ef,'top':_0x214d18,'width':_0x59b96e,'height':_0xc24442,'evented':!0x1,'zIndex':$i};return new wi(_0x229c17,_0x2ea05e);});_0x1945b4[_0x565d6a(0x24a)](_0xd7e235,Pi),this[_0x565d6a(0x1ed)]=new Set(_0xd7e235);}['_removeCollabCursors'](){const _0x4d8565=_0x568b98;var _0x341f31;(_0x341f31=this[_0x4d8565(0x1ed)])==null||_0x341f31['forEach'](_0x8c2803=>_0x8c2803[_0x4d8565(0x24e)]());}['_getSheetObject'](){const _0x5d034f=_0x568b98;return _0x1bd9f1(this[_0x5d034f(0x1ef)][_0x5d034f(0x28c)],this[_0x5d034f(0x1ef)]);}};Le=yi([ve(0x1,_0x6d32dc(_0x45c7b5)),ve(0x2,_0x6d32dc(H)),ve(0x3,_0x6d32dc(_0x507dc3))],Le);function xi(_0x140022){const _0x262dca=_0x568b98,_0x23c189=new Map();return _0x140022['forEach'](_0x1587bd=>{const _0x52a6ed=_0xdafd;if(_0x23c189[_0x52a6ed(0x2c4)](_0x1587bd[_0x52a6ed(0x215)])){const _0x493527=_0x23c189[_0x52a6ed(0x282)](_0x1587bd[_0x52a6ed(0x215)]);_0x493527[_0x52a6ed(0x201)]+=',\x20'+_0x1587bd[_0x52a6ed(0x201)];}else _0x23c189['set'](_0x1587bd['selection'],_0x1587bd);}),Array[_0x262dca(0x188)](_0x23c189['values']());}var v=function(){const _0x39ff54=_0x568b98;return v=Object[_0x39ff54(0x29a)]||function(_0x572ac2){const _0x5cfdf2=_0x39ff54;for(var _0x3ba608,_0x28f172=0x1,_0x3bc246=arguments['length'];_0x28f172<_0x3bc246;_0x28f172++){_0x3ba608=arguments[_0x28f172];for(var _0x443dd2 in _0x3ba608)Object[_0x5cfdf2(0x1e6)][_0x5cfdf2(0x2a1)][_0x5cfdf2(0x281)](_0x3ba608,_0x443dd2)&&(_0x572ac2[_0x443dd2]=_0x3ba608[_0x443dd2]);}return _0x572ac2;},v['apply'](this,arguments);},Bi=function(_0x2868a8,_0x1920de){const _0x337616=_0x568b98;var _0x591d36={};for(var _0x84efd8 in _0x2868a8)Object[_0x337616(0x1e6)][_0x337616(0x2a1)]['call'](_0x2868a8,_0x84efd8)&&_0x1920de[_0x337616(0x2e6)](_0x84efd8)<0x0&&(_0x591d36[_0x84efd8]=_0x2868a8[_0x84efd8]);if(_0x2868a8!=null&&typeof Object[_0x337616(0x22a)]=='function'){for(var _0x396be7=0x0,_0x84efd8=Object[_0x337616(0x22a)](_0x2868a8);_0x396be7<_0x84efd8[_0x337616(0x2d9)];_0x396be7++)_0x1920de[_0x337616(0x2e6)](_0x84efd8[_0x396be7])<0x0&&Object[_0x337616(0x1e6)][_0x337616(0x187)][_0x337616(0x281)](_0x2868a8,_0x84efd8[_0x396be7])&&(_0x591d36[_0x84efd8[_0x396be7]]=_0x2868a8[_0x84efd8[_0x396be7]]);}return _0x591d36;},je=_0x2e9c63(function(_0x5bc491,_0x14ede1){const _0xf5d3ab=_0x568b98;var _0x442eda=_0x5bc491['icon'],_0x424902=_0x5bc491['id'],_0x203ad9=_0x5bc491[_0xf5d3ab(0x33d)],_0x45fb80=_0x5bc491['extend'],_0xee1616=Bi(_0x5bc491,['icon','id',_0xf5d3ab(0x33d),_0xf5d3ab(0x18b)]),_0x3bce7d=_0xf5d3ab(0x1d7)[_0xf5d3ab(0x2fd)](_0x424902,'\x20')[_0xf5d3ab(0x2fd)](_0x203ad9||'')[_0xf5d3ab(0x1ee)](),_0x426a9e=_0x3ccda1('_'[_0xf5d3ab(0x2fd)](ji()));return Rt(_0x442eda,''['concat'](_0x424902),{'defIds':_0x442eda['defIds'],'idSuffix':_0x426a9e['current']},v({'ref':_0x14ede1,'className':_0x3bce7d},_0xee1616),_0x45fb80);});function Rt(_0x1988ce,_0x53ebaf,_0x2a438b,_0x149d82,_0x40771d){const _0x5d3616=_0x568b98;return _0x332d39(_0x1988ce['tag'],v(v({'key':_0x53ebaf},ki(_0x1988ce,_0x2a438b,_0x40771d)),_0x149d82),(Hi(_0x1988ce,_0x2a438b)['children']||[])[_0x5d3616(0x2ad)](function(_0x40bd27,_0x545764){const _0xdf8478=_0x5d3616;return Rt(_0x40bd27,''[_0xdf8478(0x2fd)](_0x53ebaf,'-')[_0xdf8478(0x2fd)](_0x1988ce[_0xdf8478(0x306)],'-')[_0xdf8478(0x2fd)](_0x545764),_0x2a438b,void 0x0,_0x40771d);}));}function ki(_0x1ffe5a,_0x5986fa,_0x17f8a4){const _0x56f657=_0x568b98;var _0x1e5ac2=v({},_0x1ffe5a[_0x56f657(0x251)]);_0x17f8a4!=null&&_0x17f8a4[_0x56f657(0x288)]&&_0x1e5ac2['fill']===_0x56f657(0x288)&&(_0x1e5ac2[_0x56f657(0x155)]=_0x17f8a4['colorChannel1']),_0x1ffe5a['tag']===_0x56f657(0x2fa)&&_0x1e5ac2['id']&&(_0x1e5ac2['id']=_0x1e5ac2['id']+_0x5986fa['idSuffix']),Object['entries'](_0x1e5ac2)[_0x56f657(0x153)](function(_0x5a84d0){const _0x134477=_0x56f657;var _0x3ba4e2=_0x5a84d0[0x0],_0x4cf1a6=_0x5a84d0[0x1];_0x3ba4e2===_0x134477(0x2fa)&&typeof _0x4cf1a6==_0x134477(0x2da)&&(_0x1e5ac2[_0x3ba4e2]=_0x4cf1a6['replace'](/url\(#(.*)\)/,_0x134477(0x2a3)[_0x134477(0x2fd)](_0x5986fa[_0x134477(0x2e5)],')')));});var _0x768c46=_0x5986fa['defIds'];return!_0x768c46||_0x768c46['length']===0x0||(_0x1ffe5a[_0x56f657(0x306)]==='use'&&_0x1e5ac2[_0x56f657(0x28e)]&&(_0x1e5ac2['xlink:href']=_0x1e5ac2['xlink:href']+_0x5986fa[_0x56f657(0x2e5)]),Object[_0x56f657(0x217)](_0x1e5ac2)['forEach'](function(_0x13e83b){const _0x36ab4a=_0x56f657;var _0x16e1af=_0x13e83b[0x0],_0x205f0f=_0x13e83b[0x1];typeof _0x205f0f=='string'&&(_0x1e5ac2[_0x16e1af]=_0x205f0f['replace'](/url\(#(.*)\)/,_0x36ab4a(0x2a3)[_0x36ab4a(0x2fd)](_0x5986fa['idSuffix'],')')));})),_0x1e5ac2;}function Hi(_0x1ca4b6,_0x2b9486){const _0x3ab28f=_0x568b98;var _0x23cea1,_0x459323=_0x2b9486[_0x3ab28f(0x342)];return!_0x459323||_0x459323[_0x3ab28f(0x2d9)]===0x0?_0x1ca4b6:_0x1ca4b6[_0x3ab28f(0x306)]===_0x3ab28f(0x25d)&&(!((_0x23cea1=_0x1ca4b6[_0x3ab28f(0x161)])===null||_0x23cea1===void 0x0)&&_0x23cea1[_0x3ab28f(0x2d9)])?v(v({},_0x1ca4b6),{'children':_0x1ca4b6[_0x3ab28f(0x161)][_0x3ab28f(0x2ad)](function(_0x3be3a2){const _0x2ee425=_0x3ab28f;return typeof _0x3be3a2[_0x2ee425(0x251)]['id']==_0x2ee425(0x2da)&&_0x459323&&_0x459323['indexOf'](_0x3be3a2[_0x2ee425(0x251)]['id'])>-0x1?v(v({},_0x3be3a2),{'attrs':v(v({},_0x3be3a2['attrs']),{'id':_0x3be3a2[_0x2ee425(0x251)]['id']+_0x2b9486['idSuffix']})}):_0x3be3a2;})}):_0x1ca4b6;}function ji(){const _0x4973a7=_0x568b98;return Math[_0x4973a7(0x2ea)]()['toString'](0x24)[_0x4973a7(0x1c3)](0x2,0x8);}je[_0x568b98(0x19a)]=_0x568b98(0x1e2);var Yi={'tag':_0x568b98(0x20b),'attrs':{'fill':_0x568b98(0x335),'viewBox':_0x568b98(0x264),'width':'1em','height':_0x568b98(0x2f1)},'children':[{'tag':'g','attrs':{'clipPath':_0x568b98(0x237)},'children':[{'tag':_0x568b98(0x2f7),'attrs':{'stroke':_0x568b98(0x2cc),'d':_0x568b98(0x1de),'strokeLinecap':_0x568b98(0x1c5),'strokeLinejoin':_0x568b98(0x1c5),'strokeWidth':1.2}}]},{'tag':_0x568b98(0x25d),'attrs':{},'children':[{'tag':_0x568b98(0x160),'attrs':{'id':_0x568b98(0x2d1)},'children':[{'tag':'path','attrs':{'fill':_0x568b98(0x32d),'d':_0x568b98(0x256)}}]}]}],'defIds':[_0x568b98(0x2d1)]},Dt=_0x2e9c63(function(_0x3cd4ec,_0x11f08f){const _0x39e8e1=_0x568b98;return _0x332d39(je,Object['assign']({},_0x3cd4ec,{'id':_0x39e8e1(0x290),'ref':_0x11f08f,'icon':Yi}));});Dt[_0x568b98(0x19a)]=_0x568b98(0x202);var Fi={'tag':_0x568b98(0x20b),'attrs':{'fill':_0x568b98(0x335),'viewBox':'0\x200\x2017\x2016','width':_0x568b98(0x2f1),'height':_0x568b98(0x2f1)},'children':[{'tag':'g','attrs':{'clipPath':_0x568b98(0x18a)},'children':[{'tag':_0x568b98(0x2f7),'attrs':{'stroke':_0x568b98(0x2cc),'d':_0x568b98(0x211),'strokeLinecap':_0x568b98(0x1c5),'strokeLinejoin':_0x568b98(0x1c5),'strokeWidth':1.2}}]},{'tag':_0x568b98(0x25d),'attrs':{},'children':[{'tag':_0x568b98(0x160),'attrs':{'id':_0x568b98(0x22d)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x568b98(0x256),'transform':_0x568b98(0x27f)}}]}]}],'defIds':[_0x568b98(0x22d)]},Nt=_0x2e9c63(function(_0x1ac061,_0x3a1ea8){const _0x351d8a=_0x568b98;return _0x332d39(je,Object['assign']({},_0x1ac061,{'id':_0x351d8a(0x277),'ref':_0x3a1ea8,'icon':Fi}));});Nt[_0x568b98(0x19a)]=_0x568b98(0x267);function Wi(_0xfa8643){const _0x5120ff=_0x568b98;switch(_0xfa8643){case _0xa23b9e[_0x5120ff(0x2e2)]:return _0x5120ff(0x32f);case _0xa23b9e['CONFLICT']:return _0x5120ff(0x272);case _0xa23b9e[_0x5120ff(0x254)]:return _0x5120ff(0x2f6);case _0xa23b9e['NOT_COLLAB']:return _0x5120ff(0x2cf);case _0xa23b9e[_0x5120ff(0x218)]:case _0xa23b9e[_0x5120ff(0x249)]:return _0x5120ff(0x159);case _0xa23b9e[_0x5120ff(0x193)]:case _0xa23b9e['PENDING']:return _0x5120ff(0x163);}}function Vi(_0x5a1cc3){const _0x436a7e=_0x568b98,{status$:_0x2055c5}=_0x5a1cc3,_0x50554b=_0x20cba3(_0x2055c5,_0xa23b9e[_0x436a7e(0x200)]),_0x231e68=_0x1eb7bd(_0x4b501d),_0x136dbb=_0x1eb7bd(_0x5ae39d),_0x343e84=_0x50554b!==_0xa23b9e[_0x436a7e(0x2e2)],_0x537602=_0x231e68['t'](Wi(_0x50554b)),_0x487b4d=_0x343e84?_0x7b61f3(Nt,{}):_0x7b61f3(Dt,{}),_0x4ea9ef=_0x2d4746(()=>{const _0x531318=_0x436a7e;_0x343e84||_0x136dbb[_0x531318(0x1a9)]();},[_0x343e84,_0x136dbb]);function _0x3d86cf(){const _0x11c1a3=_0x436a7e;return _0x31b2a2('div',{'className':_0x11c1a3(0x327),'onClick':_0x4ea9ef,'children':[_0x7b61f3(_0x11c1a3(0x273),{'className':_0x18371d('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x343e84,'univer-text-red-500':!_0x343e84}),'children':_0x487b4d}),_0x7b61f3(_0x11c1a3(0x273),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x537602})]});}return _0x343e84?_0x3d86cf():_0x7b61f3(_0x428afd,{'title':_0x231e68['t'](_0x436a7e(0x181)),'children':_0x3d86cf()});}var Xi=Object['getOwnPropertyDescriptor'],Gi=(_0x1bb90f,_0x50fba8,_0x3ea403,_0x304b6e)=>{for(var _0x4e4837=_0x304b6e>0x1?void 0x0:_0x304b6e?Xi(_0x50fba8,_0x3ea403):_0x50fba8,_0x5c55c4=_0x1bb90f['length']-0x1,_0x8bbee3;_0x5c55c4>=0x0;_0x5c55c4--)(_0x8bbee3=_0x1bb90f[_0x5c55c4])&&(_0x4e4837=_0x8bbee3(_0x4e4837)||_0x4e4837);return _0x4e4837;},Q=(_0x2f73ed,_0x8922af)=>(_0x55137b,_0x42a24c)=>_0x8922af(_0x55137b,_0x42a24c,_0x2f73ed);let te=class extends _0x3f16d8{constructor(_0x56bcef,_0x447cf0,_0x24ac5e,_0x33f18f){const _0x594783=_0x568b98;super(),_(this,_0x594783(0x1e0),new _0xd1fc21(_0xa23b9e[_0x594783(0x200)])),(this['_univerInstanceService']=_0x56bcef,this[_0x594783(0x1ea)]=_0x447cf0,this[_0x594783(0x1f6)]=_0x24ac5e,this[_0x594783(0x16f)]=_0x33f18f,this['_initStatusComponent'](),this[_0x594783(0x24f)]());}[_0x568b98(0x24f)](){const _0x3a944a=_0x568b98;this[_0x3a944a(0x219)](this['_univerInstanceService'][_0x3a944a(0x32c)][_0x3a944a(0x21f)](_0x15bcfa(()=>{const _0x5324b6=_0x3a944a,_0x28541d=this[_0x5324b6(0x319)]['getFocusedUnit']();return _0x28541d?this[_0x5324b6(0x1f6)][_0x5324b6(0x180)](_0x28541d[_0x5324b6(0x284)]()):_0x5ba222(null);}),_0x15bcfa(_0x2edc03=>_0x2edc03?_0x2edc03[_0x3a944a(0x26e)]:_0x5ba222(_0xa23b9e[_0x3a944a(0x200)])))[_0x3a944a(0x294)](_0x76dacd=>{const _0x131ec9=_0x3a944a;this[_0x131ec9(0x1e0)][_0x131ec9(0x27b)](_0x76dacd);}));}[_0x568b98(0x189)](){const _0x4b1cf4=_0x568b98;this[_0x4b1cf4(0x219)](this[_0x4b1cf4(0x16f)][_0x4b1cf4(0x2dc)](_0xb90716['HEADER_MENU'],()=>_0x52a6fe(Ki({'status$':this[_0x4b1cf4(0x1e0)][_0x4b1cf4(0x2cd)]()}),this[_0x4b1cf4(0x1ea)])));}};te=Gi([Q(0x0,_0x1234fa),Q(0x1,_0x6d32dc(_0x1e626a)),Q(0x2,_0x6d32dc(_0x56ba9f)),Q(0x3,_0x4a897c)],te);function Ki(_0x29aed8){const {status$:_0x5f297c}=_0x29aed8;return function(){return _0x7b61f3(Vi,{'status$':_0x5f297c});};}var zi=Object[_0x568b98(0x261)],Ji=(_0x3f8370,_0x5dad38,_0x52e49c,_0x70fced)=>{const _0x187155=_0x568b98;for(var _0x3a51b3=_0x70fced>0x1?void 0x0:_0x70fced?zi(_0x5dad38,_0x52e49c):_0x5dad38,_0x3a896c=_0x3f8370[_0x187155(0x2d9)]-0x1,_0x45d27c;_0x3a896c>=0x0;_0x3a896c--)(_0x45d27c=_0x3f8370[_0x3a896c])&&(_0x3a51b3=_0x45d27c(_0x3a51b3)||_0x3a51b3);return _0x3a51b3;},B=(_0x58e337,_0x2cbe21)=>(_0x2d8aaa,_0x58a102)=>_0x2cbe21(_0x2d8aaa,_0x58a102,_0x58e337);let se=class extends _0x3f16d8{constructor(_0x51887e,_0x3c23de,_0x1e6530,_0x5dc8b7,_0x1fc7f3,_0x3b4e8b){const _0x45b553=_0x568b98;super(),this[_0x45b553(0x183)]=_0x51887e,this[_0x45b553(0x340)]=_0x3c23de,this[_0x45b553(0x175)]=_0x1e6530,this['_messageService']=_0x5dc8b7,this[_0x45b553(0x320)]=_0x1fc7f3,this[_0x45b553(0x240)]=_0x3b4e8b,this[_0x45b553(0x2bb)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x1021d9=_0x568b98;this[_0x1021d9(0x219)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x316c3e=_0x1021d9;if(this[_0x316c3e(0x340)][_0x316c3e(0x30a)][_0x316c3e(0x2aa)])return this[_0x316c3e(0x240)]['t'](_0x316c3e(0x307));}));}[_0x568b98(0x228)](){const _0x58d624=_0x568b98;this[_0x58d624(0x219)](this[_0x58d624(0x175)][_0x58d624(0x24c)]['subscribe'](_0xaa6ca4=>{const _0x1e5a3c=_0x58d624;_0xaa6ca4['id']===_0x474087[_0x1e5a3c(0x291)]&&this[_0x1e5a3c(0x230)][_0x1e5a3c(0x27d)]({'type':_0x52eac5[_0x1e5a3c(0x2f8)],'content':this[_0x1e5a3c(0x240)]['t']('collaboration.single-unit.warning')}),_0xaa6ca4['id']===_0x474087['CLOSE_ROOM']&&this[_0x1e5a3c(0x230)][_0x1e5a3c(0x27d)]({'type':_0x52eac5[_0x1e5a3c(0x2f8)],'content':this['_localeService']['t'](_0x1e5a3c(0x1b1))}),_0xaa6ca4['id']===_0x474087['PERMISSION_DENIED']&&this[_0x1e5a3c(0x320)]['show']({'title':this[_0x1e5a3c(0x240)]['t'](_0x1e5a3c(0x22f)),'content':this['_localeService']['t']('permission.content'),'type':_0x1e5a3c(0x1b3),'duration':0x0}),_0xaa6ca4['id']===_0x474087[_0x1e5a3c(0x276)]&&this[_0x1e5a3c(0x230)][_0x1e5a3c(0x27d)]({'type':_0x52eac5[_0x1e5a3c(0x2be)],'content':this[_0x1e5a3c(0x240)]['t'](_0x1e5a3c(0x1b1))+'('+_0xaa6ca4[_0x1e5a3c(0x2ca)]+')'}),_0xaa6ca4['id']===_0x474087['JOIN_ROOM_FAILED']&&this[_0x1e5a3c(0x230)]['show']({'type':_0x52eac5[_0x1e5a3c(0x2f8)],'content':this[_0x1e5a3c(0x240)]['t'](_0xaa6ca4[_0x1e5a3c(0x2ca)]||'')}),_0xaa6ca4['id']===_0x474087['SOCKET_FAILED_RETRY']&&this[_0x1e5a3c(0x230)][_0x1e5a3c(0x27d)]({'type':_0x52eac5['Warning'],'content':this[_0x1e5a3c(0x240)]['t']('session.will-retry')}),_0xaa6ca4['id']===_0x474087[_0x1e5a3c(0x1ab)]&&this[_0x1e5a3c(0x230)][_0x1e5a3c(0x27d)]({'type':_0x52eac5[_0x1e5a3c(0x2be)],'content':this['_localeService']['t'](_0x1e5a3c(0x15a))}),_0xaa6ca4['id']===_0x474087['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x1e5a3c(0x27d)]({'type':_0x52eac5[_0x1e5a3c(0x2be)],'content':this[_0x1e5a3c(0x240)]['t']('session.collaboration-timeout')});}));}};se=Ji([B(0x0,_0x4598f3),B(0x1,_0x2755a3),B(0x2,_0x6d32dc(_0x2a341e)),B(0x3,_0x1869bb),B(0x4,_0x50baca),B(0x5,_0x6d32dc(_0x4b501d))],se);const Zi=_0x568b98(0x22e),et={},Ut=_0x3e2b2e(_0x568b98(0x2e8));var Qi=Object[_0x568b98(0x261)],qi=(_0x402ccf,_0x154654,_0x4b7277,_0x59976a)=>{const _0x1d46c8=_0x568b98;for(var _0x474672=_0x59976a>0x1?void 0x0:_0x59976a?Qi(_0x154654,_0x4b7277):_0x154654,_0x22cdd6=_0x402ccf[_0x1d46c8(0x2d9)]-0x1,_0x28dc1e;_0x22cdd6>=0x0;_0x22cdd6--)(_0x28dc1e=_0x402ccf[_0x22cdd6])&&(_0x474672=_0x28dc1e(_0x474672)||_0x474672);return _0x474672;},G=(_0x3a3977,_0x379de9)=>(_0xe3d21f,_0x409256)=>_0x379de9(_0xe3d21f,_0x409256,_0x3a3977);let ie=class extends _0x4ffef8{constructor(_0x237e66,_0x5450b5,_0x604928,_0x44e94e,_0x1c0713){const _0x42a554=_0x568b98;super(),this[_0x42a554(0x1c9)]=_0x237e66,this[_0x42a554(0x194)]=_0x5450b5,this['_commandService']=_0x604928,this[_0x42a554(0x30e)]=_0x44e94e,_0x1c0713?_0x1c0713==null||_0x1c0713[_0x42a554(0x2c5)]()[_0x42a554(0x21d)](()=>this['_init']()):(this[_0x42a554(0x194)]['debug'](_0x42a554(0x295),_0x42a554(0x158)),this[_0x42a554(0x1e9)]());}async[_0x568b98(0x1e9)](){const _0x289f56=_0x568b98,_0x35a659=this['_urlService'][_0x289f56(0x1d8)](_0x289f56(0x28c)),_0x4b53a1=this['_urlService'][_0x289f56(0x1d8)](_0x289f56(0x2fc)),_0x44c17f=this['_urlService'][_0x289f56(0x1d8)](_0x289f56(0x26b));if(!_0x35a659||!_0x4b53a1){this['_logService']['debug'](_0x289f56(0x295),_0x289f56(0x1bd));return;}const _0xdec3b7=await this[_0x289f56(0x30e)]['loadUnit'](_0x35a659,Number(_0x4b53a1),_0x44c17f);_0xdec3b7&&_0xdec3b7 instanceof _0x335c30&&this['_setupSubUnitSync'](_0xdec3b7);}async[_0x568b98(0x1af)](_0x133947){const _0x2b5b91=_0x568b98;await this[_0x2b5b91(0x27a)](_0x133947),_0x133947[_0x2b5b91(0x164)][_0x2b5b91(0x21f)](_0x37d2d6(this[_0x2b5b91(0x2b1)]))[_0x2b5b91(0x294)](_0x4aac4b=>{const _0x2e3b79=_0x2b5b91;_0x4aac4b&&this[_0x2e3b79(0x14e)](_0x4aac4b);}),this['_urlService'][_0x2b5b91(0x179)]['pipe'](_0x37d2d6(this['dispose$']))[_0x2b5b91(0x294)](()=>this[_0x2b5b91(0x27a)](_0x133947));}[_0x568b98(0x14e)](_0x307e39,_0xf40b86=!0x1){const _0x398c5b=_0x568b98,_0x43de3a=this[_0x398c5b(0x1c9)][_0x398c5b(0x1d8)](_0x398c5b(0x26b));_0x307e39[_0x398c5b(0x2d2)]()!==_0x43de3a&&this[_0x398c5b(0x1c9)][_0x398c5b(0x17a)](_0x398c5b(0x26b),_0x307e39[_0x398c5b(0x2d2)](),_0xf40b86);}async[_0x568b98(0x27a)](_0x30b34c){const _0x4282a0=_0x568b98;var _0x2341f0;const _0x3c325b=this[_0x4282a0(0x1c9)][_0x4282a0(0x1d8)](_0x4282a0(0x26b));if(!_0x3c325b||!_0x30b34c[_0x4282a0(0x323)](_0x3c325b)){const _0x6a4ce0=_0x30b34c[_0x4282a0(0x174)]()[0x0],_0x27c8b5=_0x30b34c['getSheetBySheetId'](_0x6a4ce0);if(!_0x27c8b5)return;this[_0x4282a0(0x14e)](_0x27c8b5,!0x0),await this['_commandService'][_0x4282a0(0x1d1)](_0x542b3f['id'],{'unitId':_0x30b34c['getUnitId'](),'subUnitId':_0x6a4ce0});return;}((_0x2341f0=_0x30b34c[_0x4282a0(0x156)]())==null?void 0x0:_0x2341f0[_0x4282a0(0x2d2)]())!==_0x3c325b&&await this[_0x4282a0(0x31a)][_0x4282a0(0x1d1)](_0x542b3f['id'],{'unitId':_0x30b34c[_0x4282a0(0x284)](),'subUnitId':_0x3c325b});}};ie=qi([G(0x0,Ut),G(0x1,_0x553ff6),G(0x2,_0x450935),G(0x3,_0x6d32dc(_0x2bcd8a)),G(0x4,_0x164671(_0x44414a))],ie);var en=Object[_0x568b98(0x261)],tn=(_0x369fb9,_0xcf6fdb,_0xa44c61,_0x5d6e82)=>{const _0x1076f5=_0x568b98;for(var _0x222ba4=_0x5d6e82>0x1?void 0x0:_0x5d6e82?en(_0xcf6fdb,_0xa44c61):_0xcf6fdb,_0x4d0051=_0x369fb9[_0x1076f5(0x2d9)]-0x1,_0x379220;_0x4d0051>=0x0;_0x4d0051--)(_0x379220=_0x369fb9[_0x4d0051])&&(_0x222ba4=_0x379220(_0x222ba4)||_0x222ba4);return _0x222ba4;},pe=(_0x56ce57,_0xdc38bd)=>(_0x5e1630,_0x53fce7)=>_0xdc38bd(_0x5e1630,_0x53fce7,_0x56ce57);let ne=class{constructor(_0x361f88,_0x541dc4,_0x42f918){const _0x1d05ba=_0x568b98;this['_injector']=_0x361f88,this[_0x1d05ba(0x2df)]=_0x541dc4,this[_0x1d05ba(0x26a)]=_0x42f918;}['transformIMECache'](_0x2e2174){const _0x128d43=_0x568b98;this[_0x128d43(0x2a4)](_0x2e2174),this['_transformPreviousActiveRange'](_0x2e2174);}[_0x568b98(0x28a)](_0x287414){const _0x146cbb=_0x568b98,{unitID:_0x138336}=_0x287414,_0x315a5b=this[_0x146cbb(0x26a)][_0x146cbb(0x14c)](_0x138336)[_0x146cbb(0x1dc)](_0xfe4d58),{redoCache:_0x392087}=_0x315a5b[_0x146cbb(0x20f)]();if(_0x392087[_0x146cbb(0x2d9)]===0x0)return _0x287414;let _0xfae024=_0x4ce80e['deepClone'](_0x287414['mutations'][0x0]);for(let _0x1c4c67=0x0;_0x1c4c67<_0x392087[_0x146cbb(0x2d9)];_0x1c4c67++){const _0x4101fc={'id':_0x146cbb(0x216),'params':{..._0x392087[_0x1c4c67]}},_0x37efda=this['_transformService'][_0x146cbb(0x207)](_0xfae024,_0x4101fc,!0x1);if(_0x574026(_0x37efda))throw _0x37efda[_0x146cbb(0x1b3)];_0xfae024=_0x37efda[_0x146cbb(0x260)];}return{..._0x4ce80e[_0x146cbb(0x15e)](_0x287414),'mutations':[_0xfae024]};}[_0x568b98(0x2a4)](_0x126591){const _0xf0efd8=_0x568b98,{unitID:_0x30b5d2}=_0x126591,_0x50965c=this[_0xf0efd8(0x26a)][_0xf0efd8(0x14c)](_0x30b5d2)[_0xf0efd8(0x1dc)](_0xfe4d58),{undoCache:_0x181f5f,redoCache:_0x2322b7}=_0x50965c['getUndoRedoMutationParamsCache']();if(_0x181f5f[_0xf0efd8(0x2d9)]===0x0||_0x2322b7[_0xf0efd8(0x2d9)]===0x0)return;const _0x46c994=[],_0x2de1bc=[];let _0x16ed09=_0x4ce80e[_0xf0efd8(0x15e)](_0x126591[_0xf0efd8(0x2d0)][0x0]),_0x17c3ba=_0x4ce80e[_0xf0efd8(0x15e)](_0x126591[_0xf0efd8(0x2d0)][0x0]);for(let _0x5d292b=_0x181f5f[_0xf0efd8(0x2d9)]-0x1;_0x5d292b>=0x0;_0x5d292b--){const _0x59da9c={'id':_0xf0efd8(0x216),'params':{..._0x181f5f[_0x5d292b]}},_0x39a0e4={'id':_0xf0efd8(0x216),'params':{..._0x2322b7[_0x5d292b]}},_0x4209c0=this[_0xf0efd8(0x2df)][_0xf0efd8(0x207)](_0x16ed09,_0x59da9c,!0x1),_0x257783=this[_0xf0efd8(0x2df)][_0xf0efd8(0x207)](_0x17c3ba,_0x39a0e4,!0x1);if(_0x574026(_0x4209c0))throw _0x4209c0[_0xf0efd8(0x1b3)];if(_0x574026(_0x257783))throw _0x257783[_0xf0efd8(0x1b3)];_0x46c994[_0xf0efd8(0x177)](_0x4209c0[_0xf0efd8(0x331)][_0xf0efd8(0x2ff)]),_0x2de1bc[_0xf0efd8(0x177)](_0x257783[_0xf0efd8(0x331)]['params']),_0x16ed09=_0x4209c0[_0xf0efd8(0x260)],_0x17c3ba=_0x257783['m1Prime'];}_0x50965c[_0xf0efd8(0x316)]({'undoCache':_0x46c994,'redoCache':_0x2de1bc});}[_0x568b98(0x21b)](_0x152f87){const _0x139292=_0x568b98,{unitID:_0x42a3f5}=_0x152f87,_0x2c9b48=this[_0x139292(0x26a)][_0x139292(0x14c)](_0x42a3f5)['with'](_0xfe4d58),_0x57c156=_0x2c9b48['getActiveRange']();if(_0x57c156==null)return;const _0x3514bf=[{'id':_0x139292(0x216),'params':{'unitId':_0x152f87[_0x139292(0x2f5)],'actions':null,'textRanges':[_0x57c156]}}],_0x1695d5=this[_0x139292(0x2df)]['transformMutationsWithChangeset'](_0x152f87,_0x3514bf);if(!_0x3a585f(_0x1695d5))throw _0x1695d5[_0x139292(0x1b3)];const _0x55f47a=_0x1695d5[_0x139292(0x331)][0x0][_0x139292(0x2ff)][_0x139292(0x2a6)];Array[_0x139292(0x279)](_0x55f47a)&&_0x55f47a[_0x139292(0x2d9)]&&_0x2c9b48[_0x139292(0x301)](_0x55f47a[0x0]);}};ne=tn([pe(0x0,_0x6d32dc(_0x1e626a)),pe(0x1,_0xfd345b),pe(0x2,_0x107d26)],ne);var sn=Object['getOwnPropertyDescriptor'],nn=(_0x3d20b7,_0x32b9a9,_0x1ae447,_0x6239f)=>{const _0x51053c=_0x568b98;for(var _0x1bf497=_0x6239f>0x1?void 0x0:_0x6239f?sn(_0x32b9a9,_0x1ae447):_0x32b9a9,_0x2f5907=_0x3d20b7[_0x51053c(0x2d9)]-0x1,_0x453211;_0x2f5907>=0x0;_0x2f5907--)(_0x453211=_0x3d20b7[_0x2f5907])&&(_0x1bf497=_0x453211(_0x1bf497)||_0x1bf497);return _0x1bf497;},Ce=(_0x5d838a,_0x5cd678)=>(_0x39608c,_0x2718d2)=>_0x5cd678(_0x39608c,_0x2718d2,_0x5d838a);let re=class{constructor(_0x4c69e3,_0x3bd35b,_0x2d1841){const _0x1d531=_0x568b98;this[_0x1d531(0x1ea)]=_0x4c69e3,this[_0x1d531(0x2df)]=_0x3bd35b,this['_docStateChangeManagerService']=_0x2d1841;}[_0x568b98(0x2dd)](_0x5f249e){const _0x448be0=_0x568b98;this[_0x448be0(0x322)](_0x5f249e);}[_0x568b98(0x28a)](_0x3c280e){const _0x65935e=_0x568b98,{unitID:_0x335702}=_0x3c280e,{collaboration:_0x3d0b4d}=this[_0x65935e(0x30f)][_0x65935e(0x2ee)](_0x335702);if(_0x3d0b4d[_0x65935e(0x2d9)]===0x0)return _0x3c280e;let _0x8e1969=_0x4ce80e[_0x65935e(0x15e)](_0x3c280e['mutations'][0x0]);for(let _0x8ed784=0x0;_0x8ed784<_0x3d0b4d[_0x65935e(0x2d9)];_0x8ed784++){const _0x3e972b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3d0b4d[_0x8ed784]['unitId'],..._0x3d0b4d[_0x8ed784][_0x65935e(0x23f)]}},_0x5add12=this[_0x65935e(0x2df)][_0x65935e(0x207)](_0x8e1969,_0x3e972b,!0x1);if(_0x574026(_0x5add12))throw _0x5add12['error'];_0x8e1969=_0x5add12[_0x65935e(0x260)];}return{..._0x4ce80e[_0x65935e(0x15e)](_0x3c280e),'mutations':[_0x8e1969]};}[_0x568b98(0x322)](_0xe07e56){const _0x25fc80=_0x568b98,{unitID:_0x3f3a17}=_0xe07e56,{history:_0x442687,collaboration:_0x186e8d}=this[_0x25fc80(0x30f)]['getStateCache'](_0x3f3a17);if(_0x442687['length']===0x0&&_0x186e8d[_0x25fc80(0x2d9)]===0x0)return;const _0x5c1486=[],_0x2ef570=[];let _0x52ce2d=_0x4ce80e['deepClone'](_0xe07e56['mutations'][0x0]),_0x384443=_0x4ce80e[_0x25fc80(0x15e)](_0xe07e56[_0x25fc80(0x2d0)][0x0]);for(let _0x104c8f=_0x442687[_0x25fc80(0x2d9)]-0x1;_0x104c8f>=0x0;_0x104c8f--){const _0x5a7cd4={'id':_0x25fc80(0x216),'params':{'unitId':_0x442687[_0x104c8f][_0x25fc80(0x33b)],..._0x442687[_0x104c8f][_0x25fc80(0x324)]}},_0x3b6151={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x442687[_0x104c8f][_0x25fc80(0x33b)],..._0x442687[_0x104c8f][_0x25fc80(0x23f)]}},_0x5c3131=this[_0x25fc80(0x2df)]['transformMutation'](_0x52ce2d,_0x5a7cd4,!0x1),_0x3388bc=this[_0x25fc80(0x2df)]['transformMutation'](_0x384443,_0x3b6151,!0x1);if(_0x574026(_0x5c3131))throw _0x5c3131[_0x25fc80(0x1b3)];if(_0x574026(_0x3388bc))throw _0x3388bc[_0x25fc80(0x1b3)];_0x5c1486['unshift']({..._0x442687[_0x104c8f],'undoState':_0x5c3131[_0x25fc80(0x331)][_0x25fc80(0x2ff)],'redoState':_0x3388bc[_0x25fc80(0x331)][_0x25fc80(0x2ff)]}),_0x52ce2d=_0x5c3131[_0x25fc80(0x260)],_0x384443=_0x3388bc['m1Prime'];}_0x52ce2d=_0x4ce80e[_0x25fc80(0x15e)](_0xe07e56[_0x25fc80(0x2d0)][0x0]),_0x384443=_0x4ce80e[_0x25fc80(0x15e)](_0xe07e56['mutations'][0x0]);for(let _0xa33a7f=_0x186e8d['length']-0x1;_0xa33a7f>=0x0;_0xa33a7f--){const _0x5934d6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x186e8d[_0xa33a7f][_0x25fc80(0x33b)],..._0x186e8d[_0xa33a7f]['undoState']}},_0x482144={'id':_0x25fc80(0x216),'params':{'unitId':_0x186e8d[_0xa33a7f][_0x25fc80(0x33b)],..._0x186e8d[_0xa33a7f]['redoState']}},_0x5f50e3=this[_0x25fc80(0x2df)]['transformMutation'](_0x52ce2d,_0x5934d6,!0x1),_0x4c8d9d=this[_0x25fc80(0x2df)][_0x25fc80(0x207)](_0x384443,_0x482144,!0x1);if(_0x574026(_0x5f50e3))throw _0x5f50e3[_0x25fc80(0x1b3)];if(_0x574026(_0x4c8d9d))throw _0x4c8d9d['error'];_0x2ef570[_0x25fc80(0x177)]({..._0x186e8d[_0xa33a7f],'undoState':_0x5f50e3['m2Prime'][_0x25fc80(0x2ff)],'redoState':_0x4c8d9d['m2Prime']['params']}),_0x52ce2d=_0x5f50e3[_0x25fc80(0x260)],_0x384443=_0x4c8d9d[_0x25fc80(0x260)];}this['_docStateChangeManagerService'][_0x25fc80(0x2ef)](_0x3f3a17,{'history':_0x5c1486,'collaboration':_0x2ef570});}};re=nn([Ce(0x0,_0x6d32dc(_0x1e626a)),Ce(0x1,_0xfd345b),Ce(0x2,_0x6d32dc(_0x137048))],re);var rn=Object[_0x568b98(0x261)],on=(_0x1bbfb7,_0x379e54,_0xbba7a3,_0xc915db)=>{const _0x349ecd=_0x568b98;for(var _0x4af5a2=_0xc915db>0x1?void 0x0:_0xc915db?rn(_0x379e54,_0xbba7a3):_0x379e54,_0x1b7a33=_0x1bbfb7[_0x349ecd(0x2d9)]-0x1,_0x2f4a56;_0x1b7a33>=0x0;_0x1b7a33--)(_0x2f4a56=_0x1bbfb7[_0x1b7a33])&&(_0x4af5a2=_0x2f4a56(_0x4af5a2)||_0x4af5a2);return _0x4af5a2;},tt=(_0x39eb08,_0x476f11)=>(_0x48ad7c,_0xa51393)=>_0x476f11(_0x48ad7c,_0xa51393,_0x39eb08);let oe=class{constructor(_0x270edc,_0x437a3b){const _0x1b4f11=_0x568b98;this[_0x1b4f11(0x1ea)]=_0x270edc,this[_0x1b4f11(0x2df)]=_0x437a3b;}[_0x568b98(0x29c)](_0x343f38){const _0x3d739f=_0x568b98;var _0x5e6d5b;const _0x2b6c2e=this[_0x3d739f(0x1ea)][_0x3d739f(0x282)](_0x55110a),_0x22b1ee=(_0x5e6d5b=_0x2b6c2e[_0x3d739f(0x2f3)]())!=null?_0x5e6d5b:[];if(_0x22b1ee[_0x3d739f(0x2d9)]===0x0)return;const _0x21b4aa=_0x343f38[_0x3d739f(0x2f5)],_0x1fe8d5=[{'id':_0x3d739f(0x216),'params':{'unitId':_0x21b4aa,'actions':null,'textRanges':_0x22b1ee}}],_0x4919db=this[_0x3d739f(0x2df)]['transformMutationsWithChangeset'](_0x343f38,_0x1fe8d5);if(!_0x3a585f(_0x4919db))throw _0x4919db['error'];const _0x587616=_0x4919db[_0x3d739f(0x331)][0x0][_0x3d739f(0x2ff)][_0x3d739f(0x2a6)];Array['isArray'](_0x587616)&&_0x587616[_0x3d739f(0x2d9)]&&_0x2b6c2e['replaceDocRanges'](_0x587616,{'unitId':_0x21b4aa,'subUnitId':_0x21b4aa},!0x1);}};oe=on([tt(0x0,_0x6d32dc(_0x1e626a)),tt(0x1,_0xfd345b)],oe);var an=Object[_0x568b98(0x261)],cn=(_0x160f5c,_0x170781,_0x2e8161,_0x552e47)=>{for(var _0x9e9e7d=_0x552e47>0x1?void 0x0:_0x552e47?an(_0x170781,_0x2e8161):_0x170781,_0x45c3be=_0x160f5c['length']-0x1,_0x41c0f0;_0x45c3be>=0x0;_0x45c3be--)(_0x41c0f0=_0x160f5c[_0x45c3be])&&(_0x9e9e7d=_0x41c0f0(_0x9e9e7d)||_0x9e9e7d);return _0x9e9e7d;},U=(_0x492225,_0x1914a5)=>(_0x406795,_0x50f7a9)=>_0x1914a5(_0x406795,_0x50f7a9,_0x492225);let ae=class extends _0x3f16d8{constructor(_0x3111d9,_0x266a45,_0x40c0c6,_0x3c1e23,_0x5d68cf,_0x5a2f82,_0x1b7e89,_0xa9fba7){const _0x2e1490=_0x568b98;super(),_(this,_0x2e1490(0x1e0),new _0xd1fc21(_0xa23b9e[_0x2e1490(0x200)])),(this[_0x2e1490(0x30f)]=_0x3111d9,this['_collaborationController']=_0x266a45,this[_0x2e1490(0x1bf)]=_0x40c0c6,this[_0x2e1490(0x25a)]=_0x3c1e23,this[_0x2e1490(0x149)]=_0x5d68cf,this['_docSyncEditingCollabCursorService']=_0x5a2f82,this[_0x2e1490(0x230)]=_0x1b7e89,this[_0x2e1490(0x240)]=_0xa9fba7,this[_0x2e1490(0x1b6)]());}[_0x568b98(0x1b6)](){const _0x1585e7=_0x568b98;this[_0x1585e7(0x219)](this[_0x1585e7(0x1f6)][_0x1585e7(0x1d6)][_0x1585e7(0x294)](_0x11f44f=>{const _0x2181e6=_0x1585e7,_0x3d4539=this['_docStateChangeManagerService'][_0x2181e6(0x199)]['subscribe'](_0x2dc097=>{const _0x51a523=_0x2181e6;if(_0x2dc097==null)return;const {unitId:_0x5730d1,redoState:_0xc51b42,commandId:_0x327d55}=_0x2dc097;if(_0x5730d1!==_0x11f44f[_0x51a523(0x2f5)])return;const _0x16f813={'id':_0x327d55,'type':_0x3c6601[_0x51a523(0x328)],'params':{'unitId':_0x5730d1,'actions':_0xc51b42[_0x51a523(0x287)],'textRanges':null}};_0x11f44f[_0x51a523(0x2e9)](_0x16f813);});if(_0x11f44f[_0x2181e6(0x219)](_0x3d4539),_0x11f44f instanceof _0x338daf){const _0x4f47ff={'onTransformIME':_0x1c84cd=>this[_0x2181e6(0x1bf)]['transformIMECache'](_0x1c84cd),'onTransformState':_0xe4d31f=>this[_0x2181e6(0x25a)][_0x2181e6(0x2dd)](_0xe4d31f),'onTransformSelections':_0x54e0ec=>this[_0x2181e6(0x149)]['transformSelections'](_0x54e0ec),'onSyncEditingCollabCursor':_0x3f9b1d=>this[_0x2181e6(0x2c6)][_0x2181e6(0x203)](_0x3f9b1d),'onTransformRemoteChangesetByIMECache':_0x2b0ee8=>this[_0x2181e6(0x1bf)][_0x2181e6(0x28a)](_0x2b0ee8),'onTransformRemoteChangesetByStateCache':_0x32b403=>this[_0x2181e6(0x25a)][_0x2181e6(0x28a)](_0x32b403)};_0x11f44f['addHandlerCallback'](_0x4f47ff);}}));}};ae=cn([U(0x0,_0x6d32dc(_0x137048)),U(0x1,_0x6d32dc(_0x56ba9f)),U(0x2,_0x6d32dc(ne)),U(0x3,_0x6d32dc(re)),U(0x4,_0x6d32dc(oe)),U(0x5,_0x6d32dc(He)),U(0x6,_0x1869bb),U(0x7,_0x6d32dc(_0x4b501d))],ae);var ln=Object[_0x568b98(0x261)],_n=(_0x23b9ae,_0x37df1c,_0x855fee,_0x42ef87)=>{const _0x122424=_0x568b98;for(var _0x4897bf=_0x42ef87>0x1?void 0x0:_0x42ef87?ln(_0x37df1c,_0x855fee):_0x37df1c,_0x1cda0f=_0x23b9ae[_0x122424(0x2d9)]-0x1,_0xc8d6b4;_0x1cda0f>=0x0;_0x1cda0f--)(_0xc8d6b4=_0x23b9ae[_0x1cda0f])&&(_0x4897bf=_0xc8d6b4(_0x4897bf)||_0x4897bf);return _0x4897bf;},Ee=(_0x45b8aa,_0x1a0cfe)=>(_0x272b46,_0x175a5b)=>_0x1a0cfe(_0x272b46,_0x175a5b,_0x45b8aa);let we=class extends _0x3f16d8{constructor(_0x20f24e,_0x2d4d3c,_0x1491ce){const _0x576734=_0x568b98;super(),_(this,'_cachedData',new Map()),_(this,_0x576734(0x150),new Map()),_(this,_0x576734(0x15d),!0x1),(this[_0x576734(0x157)]=_0x20f24e,this[_0x576734(0x1e3)]=_0x2d4d3c,this[_0x576734(0x185)]=_0x1491ce);}['disableLocalCache'](){const _0x15a10c=_0x568b98;this[_0x15a10c(0x15d)]=!0x0;}[_0x568b98(0x334)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x4f50e6=_0x568b98;return this[_0x4f50e6(0x150)];}[_0x568b98(0x24e)](){const _0x41256f=_0x568b98;this[_0x41256f(0x19d)]()[_0x41256f(0x21d)](()=>super['dispose']());}async[_0x568b98(0x2de)](_0x53403c){const _0x27254d=_0x568b98;return this[_0x27254d(0x15d)]?null:this[_0x27254d(0x1e3)][_0x27254d(0x236)](_0x1b4ac8(_0x53403c));}async['saveOfflineData'](_0x4acdfe,_0x2175e0){const _0x359842=_0x568b98;return!!this[_0x359842(0x1e3)][_0x359842(0x2ab)](_0x4acdfe,_0x2175e0);}[_0x568b98(0x2a9)](_0x4e788a,_0x5e5155,_0x49d1ff,_0x4c4a64){const _0x1de04b=_0x568b98,_0x12ed84=this[_0x1de04b(0x185)][_0x1de04b(0x1fb)](_0x4e788a);this[_0x1de04b(0x191)][_0x1de04b(0x214)](_0x4e788a,{'unitID':_0x4e788a,'type':_0x5e5155,'awaitingChangeset':_0x49d1ff,'mutations':_0x4c4a64,'rev':_0x12ed84}),this[_0x1de04b(0x150)][_0x1de04b(0x2c4)](_0x4e788a)||this[_0x1de04b(0x1b8)](_0x4e788a);}['_scheduleSaving'](_0x4f4946){const _0x300a5a=_0x568b98,_0x1d1007=this[_0x300a5a(0x2b5)]();_0x1d1007===0x0?this['_saveCache'](_0x4f4946):this[_0x300a5a(0x150)][_0x300a5a(0x214)](_0x4f4946,setTimeout(()=>this[_0x300a5a(0x1b2)](_0x4f4946),_0x1d1007));}[_0x568b98(0x2b5)](){const _0x43fd1a=_0x568b98;var _0x55c68d;return(_0x55c68d=this['_configService'][_0x43fd1a(0x2f0)](_0x16888c))!=null?_0x55c68d:_0x26387f;}[_0x568b98(0x1b2)](_0x1dd6a4){const _0x48aa4a=_0x568b98,_0x57afee=this[_0x48aa4a(0x150)][_0x48aa4a(0x282)](_0x1dd6a4);return _0x57afee!==void 0x0&&window['clearTimeout'](_0x57afee),this['_localStorageService'][_0x48aa4a(0x2ab)](_0x1b4ac8(_0x1dd6a4),this[_0x48aa4a(0x191)]['get'](_0x1dd6a4))[_0x48aa4a(0x21d)](()=>this[_0x48aa4a(0x150)][_0x48aa4a(0x15b)](_0x1dd6a4));}async[_0x568b98(0x19d)](){const _0x2d0e6c=_0x568b98,_0x1444b7=[];this[_0x2d0e6c(0x150)][_0x2d0e6c(0x153)]((_0x40acbd,_0x62c6e8)=>{const _0x1fa949=_0x2d0e6c;window['clearTimeout'](_0x40acbd),_0x1444b7[_0x1fa949(0x171)](this[_0x1fa949(0x1b2)](_0x62c6e8)[_0x1fa949(0x21d)](()=>{this['_saveTaskMap']['delete'](_0x62c6e8);}));}),await Promise[_0x2d0e6c(0x16b)](_0x1444b7);}};we=_n([Ee(0x0,_0x57f776),Ee(0x1,_0x40696b),Ee(0x2,_0x6d32dc(_0x2dcaae))],we);class hn extends _0x4ffef8{constructor(){const _0x3154d9=_0x568b98;super(),_(this,'urlChange$'),this[_0x3154d9(0x179)]=_0x1ef346(window,_0x3154d9(0x30d))[_0x3154d9(0x21f)](_0x37d2d6(this['dispose$']),_0x35f9aa(0x1),_0x13a5cf(void 0x0));}[_0x568b98(0x17a)](_0x17c66f,_0x1bd09e,_0x46a80a=!0x1){const _0x30fe00=_0x568b98,_0x5efae5=new URL(window[_0x30fe00(0x268)][_0x30fe00(0x145)]);_0x5efae5[_0x30fe00(0x1a6)][_0x30fe00(0x214)](_0x17c66f,_0x1bd09e),_0x46a80a?window[_0x30fe00(0x2c0)]['replaceState']('','',_0x5efae5['toString']()):window[_0x30fe00(0x2c0)][_0x30fe00(0x1a8)]('','',_0x5efae5['toString']());}[_0x568b98(0x2cb)](_0x3d2e92,_0x4a66af=!0x1){const _0x25bad2=_0x568b98,_0x523593=new URL(window[_0x25bad2(0x268)][_0x25bad2(0x145)]);_0x523593[_0x25bad2(0x1a6)]['delete'](_0x3d2e92),_0x4a66af?window[_0x25bad2(0x2c0)][_0x25bad2(0x2ac)]('','',_0x523593[_0x25bad2(0x262)]()):window[_0x25bad2(0x2c0)][_0x25bad2(0x1a8)]('','',_0x523593[_0x25bad2(0x262)]());}[_0x568b98(0x1d8)](_0x189b6b){const _0x45ae75=_0x568b98;var _0x4c7efa;return(_0x4c7efa=new URL(window[_0x45ae75(0x268)]['href'])[_0x45ae75(0x1a6)]['get'](_0x189b6b))!=null?_0x4c7efa:void 0x0;}}var un=Object['defineProperty'],dn=Object['getOwnPropertyDescriptor'],fn=(_0x574485,_0x3b1fe4,_0x67207d)=>_0x3b1fe4 in _0x574485?un(_0x574485,_0x3b1fe4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x67207d}):_0x574485[_0x3b1fe4]=_0x67207d,Sn=(_0x11c5ee,_0x36ab51,_0x3a48bb,_0x5343ff)=>{const _0x130e0f=_0x568b98;for(var _0x3895f2=_0x5343ff>0x1?void 0x0:_0x5343ff?dn(_0x36ab51,_0x3a48bb):_0x36ab51,_0x161adc=_0x11c5ee[_0x130e0f(0x2d9)]-0x1,_0x2ba7c9;_0x161adc>=0x0;_0x161adc--)(_0x2ba7c9=_0x11c5ee[_0x161adc])&&(_0x3895f2=_0x2ba7c9(_0x3895f2)||_0x3895f2);return _0x3895f2;},Oe=(_0x219e2a,_0x781c13)=>(_0x399ba0,_0x456b74)=>_0x781c13(_0x399ba0,_0x456b74,_0x219e2a),mn=(_0xd2431,_0x3c0120,_0x59b1f7)=>fn(_0xd2431,_0x3c0120+'',_0x59b1f7);const gn=_0x568b98(0x1d9);let Ae=class extends _0x54a92a{constructor(_0x3a2d9b=et,_0x2ba4a2,_0x2130f6,_0x252d5f){const _0x1fdf97=_0x568b98;super(),this[_0x1fdf97(0x1f8)]=_0x3a2d9b,this[_0x1fdf97(0x26a)]=_0x2ba4a2,this[_0x1fdf97(0x1ea)]=_0x2130f6,this['_configService']=_0x252d5f;const {..._0x5a3922}=_0x3cf67f({},et,this[_0x1fdf97(0x1f8)]);this[_0x1fdf97(0x157)]['setConfig'](Zi,_0x5a3922);}[_0x568b98(0x143)](){const _0xe6dabd=_0x568b98;this[_0xe6dabd(0x298)](),this[_0xe6dabd(0x1c8)]();}[_0x568b98(0x234)](){const _0x1d1f83=_0x568b98;this[_0x1d1f83(0x1ca)]();}[_0x568b98(0x298)](){const _0x1e54dc=_0x568b98;var _0x1b79b7;const _0x13746c=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x51f3b5,{'useClass':_0x108140}],[_0x2755a3,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x16d380(this[_0x1e54dc(0x1ea)],_0x4d898d(_0x13746c,(_0x1b79b7=this[_0x1e54dc(0x1f8)])==null?void 0x0:_0x1b79b7['override']));}[_0x568b98(0x1ca)](){const _0x3a89be=_0x568b98;this[_0x3a89be(0x219)](this['_renderManagerService'][_0x3a89be(0x20a)](_0x142ba1[_0x3a89be(0x196)],[Pe])),this[_0x3a89be(0x219)](this['_renderManagerService'][_0x3a89be(0x20a)](_0x142ba1['UNIVER_SHEET'],[Le]));}['_initDependencies'](){_0x5e475c(this['_injector'],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x568b98(0x1d5),gn),Ae=Sn([_0x19df80(_0x59101b),Oe(0x1,_0x107d26),Oe(0x2,_0x6d32dc(_0x1e626a)),Oe(0x3,_0x57f776)],Ae);var In=Object[_0x568b98(0x261)],vn=(_0x382d93,_0xd3c2f6,_0x489948,_0x310749)=>{const _0x425deb=_0x568b98;for(var _0x1e8cd8=_0x310749>0x1?void 0x0:_0x310749?In(_0xd3c2f6,_0x489948):_0xd3c2f6,_0x4de68b=_0x382d93[_0x425deb(0x2d9)]-0x1,_0xad82b0;_0x4de68b>=0x0;_0x4de68b--)(_0xad82b0=_0x382d93[_0x4de68b])&&(_0x1e8cd8=_0xad82b0(_0x1e8cd8)||_0x1e8cd8);return _0x1e8cd8;},K=(_0x5c7685,_0x231bbf)=>(_0x4e455b,_0x92dfba)=>_0x231bbf(_0x4e455b,_0x92dfba,_0x5c7685);let st=class extends _0x5df4a7{constructor(_0x168ae3,_0x4b81c7,_0x12454c,_0xc71d8b,_0x2773c6){super(_0x168ae3,_0x4b81c7,_0x12454c,_0xc71d8b,_0x2773c6);}async[_0x568b98(0x326)](_0x4f835f){const _0x18db44=_0x568b98,_0x2cd587=await this[_0x18db44(0x1eb)](),_0x3f3bbb=this[_0x18db44(0x31f)](_0x4f835f,_0x2cd587);return this['_doCreateSocket'](_0x3f3bbb);}[_0x568b98(0x31f)](_0x23ef48,_0x2ee968){const _0x345be9=_0x568b98,_0x170a30=typeof window>'u'?new URL(_0x23ef48):new URL(_0x23ef48,window[_0x345be9(0x268)][_0x345be9(0x243)]);_0x170a30[_0x345be9(0x1a6)][_0x345be9(0x214)]('sessionTicket',_0x2ee968);const _0x4e0102=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x345be9(0x268)][_0x345be9(0x336)]);return _0x4e0102[_0x345be9(0x282)](_0x345be9(0x1a5))&&_0x170a30[_0x345be9(0x1a6)][_0x345be9(0x214)](_0x345be9(0x1a5),_0x4e0102[_0x345be9(0x282)](_0x345be9(0x1a5))),_0x170a30[_0x345be9(0x262)]();}async[_0x568b98(0x1eb)](){const _0x1b0409=_0x568b98;var _0x159b4c,_0x29a95f,_0x5d2aad;const _0x2125a3=this[_0x1b0409(0x157)]['getConfig'](_0x496a5b),_0x236ee4=(_0x159b4c=_0x2125a3==null?void 0x0:_0x2125a3[_0x1b0409(0x1cd)])!=null?_0x159b4c:_0x5432d2;return(_0x5d2aad=(_0x29a95f=(await this['_httpService'][_0x1b0409(0x282)](_0x236ee4,{'headers':{'Content-Type':'application/json'}}))[_0x1b0409(0x2e1)])==null?void 0x0:_0x29a95f['ticket'])!=null?_0x5d2aad:'';}};st=vn([K(0x0,_0x6d32dc(_0x1e626a)),K(0x1,_0x6d32dc(_0x3ee678)),K(0x2,_0x57f776),K(0x3,_0x553ff6),K(0x4,_0x2ac1aa)],st);const it=0x7530,nt=_0x568b98(0x144);class jn extends _0x3f16d8{constructor(){const _0x757aca=_0x568b98;super(),_(this,_0x757aca(0x205),_0x4bbe86()),_(this,_0x757aca(0x1df),new Set()),_(this,_0x757aca(0x16e),new Map()),_(this,_0x757aca(0x1bb),null),_(this,_0x757aca(0x22b),new Map()),_(this,_0x757aca(0x21c),new Map()),this[_0x757aca(0x1e9)]();}[_0x568b98(0x24e)](){const _0x3951e4=_0x568b98;super[_0x3951e4(0x24e)](),this[_0x3951e4(0x22b)][_0x3951e4(0x153)]((_0xd235c0,_0x51f1bf)=>this[_0x3951e4(0x2a7)](_0x51f1bf)),this[_0x3951e4(0x1bb)]&&window[_0x3951e4(0x2b7)](this['_heartbeatTimer']);}[_0x568b98(0x17e)](_0x3506c1){const _0x45db6f=_0x568b98;return this[_0x45db6f(0x16d)](_0x3506c1)[_0x45db6f(0x21f)](_0x15bdb5());}[_0x568b98(0x1d3)](_0xa8513b){const _0xdeeaf6=_0x568b98;this[_0xdeeaf6(0x1df)][_0xdeeaf6(0x2aa)]===0x0&&this['_scheduleHeartbeat'](),this[_0xdeeaf6(0x1df)][_0xdeeaf6(0x1bc)](_0xa8513b),this['_send']({'type':0x0,'memberID':this[_0xdeeaf6(0x205)],'unitIDs':[_0xa8513b],'isForwarded':!0x1});}[_0x568b98(0x28b)](_0x2f0244){const _0xb62d6e=_0x568b98;this['_selfUnitIDs'][_0xb62d6e(0x15b)](_0x2f0244),this['_selfUnitIDs'][_0xb62d6e(0x2aa)]===0x0&&this[_0xb62d6e(0x1bb)]&&window['clearInterval'](this[_0xb62d6e(0x1bb)]);}[_0x568b98(0x1e9)](){const _0x1cb12e=_0x568b98;this[_0x1cb12e(0x219)](_0x1f8c5e(_0x1ef346(window,_0x1cb12e(0x2b2))[_0x1cb12e(0x294)](_0x135db8=>{const _0x35613f=_0x1cb12e;if(_0x135db8[_0x35613f(0x1d0)]!==nt||!_0x135db8['newValue'])return;const _0x1ba5e9=JSON[_0x35613f(0x253)](_0x135db8[_0x35613f(0x29b)]);this[_0x35613f(0x332)](_0x1ba5e9);}))),window[_0x1cb12e(0x235)](_0x1cb12e(0x25c),()=>this['_send']({'type':0x1,'memberID':this[_0x1cb12e(0x205)],'unitIDs':Array[_0x1cb12e(0x188)](this[_0x1cb12e(0x1df)])}));}[_0x568b98(0x332)](_0xa60ff0){const _0x6d9893=_0x568b98;switch(_0xa60ff0[_0x6d9893(0x2fc)]){case 0x0:this[_0x6d9893(0x266)](_0xa60ff0);break;case 0x1:this['_handleLeaveEvent'](_0xa60ff0);break;case 0x2:this[_0x6d9893(0x221)](_0xa60ff0);break;}}['_handleJoinEvent'](_0x2e4c7c){const _0xf441e9=_0x568b98,{unitIDs:_0x5e9689,memberID:_0x2c8c63,isForwarded:_0x513e70}=_0x2e4c7c;_0x5e9689[_0xf441e9(0x153)](_0x4584a7=>{const _0x7c2757=_0xf441e9;if(!_0x513e70&&this[_0x7c2757(0x16e)][_0x7c2757(0x2c4)](_0x4584a7)&&this[_0x7c2757(0x16d)](_0x4584a7)[_0x7c2757(0x27b)](_0x540c8d['OTHER_CLIENTS_EDITING']),!this[_0x7c2757(0x16e)][_0x7c2757(0x2c4)](_0x4584a7)||!this[_0x7c2757(0x16e)][_0x7c2757(0x282)](_0x4584a7)[_0x7c2757(0x2c4)](_0x2c8c63)){const _0x248211=this['_unitOnClients'][_0x7c2757(0x282)](_0x4584a7)||new Set();_0x248211[_0x7c2757(0x1bc)](_0x2c8c63),this[_0x7c2757(0x16e)][_0x7c2757(0x214)](_0x4584a7,_0x248211),this['_scheduleClearOtherTimer'](_0x2c8c63);}}),_0x513e70||this['_send']({'type':0x0,'memberID':this[_0xf441e9(0x205)],'unitIDs':[...this[_0xf441e9(0x1df)]],'isForwarded':!0x0});}[_0x568b98(0x146)](_0x85a1bd){const _0x36961d=_0x568b98;this[_0x36961d(0x2a7)](_0x85a1bd);const _0x34a2c9=window[_0x36961d(0x176)](()=>{const _0x5906f0=_0x36961d;this[_0x5906f0(0x16e)]['forEach'](_0x209e1f=>{const _0x3184a4=_0x5906f0;_0x209e1f[_0x3184a4(0x15b)](_0x85a1bd);});},it*0x2);this[_0x36961d(0x22b)][_0x36961d(0x214)](_0x85a1bd,_0x34a2c9);}[_0x568b98(0x2a7)](_0x393a56){const _0x8c8e45=_0x568b98;if(this[_0x8c8e45(0x22b)]['has'](_0x393a56)){const _0x55a751=this[_0x8c8e45(0x22b)][_0x8c8e45(0x282)](_0x393a56);_0x55a751&&window[_0x8c8e45(0x285)](_0x55a751),this[_0x8c8e45(0x22b)]['set'](_0x393a56,null);}}[_0x568b98(0x20e)](_0x1bfdb7){const _0x423fca=_0x568b98,{memberID:_0x4f0bde,unitIDs:_0x356cb9}=_0x1bfdb7;_0x356cb9[_0x423fca(0x153)](_0xd23e6e=>{const _0xa4afa9=_0x423fca;var _0x206467;const _0x1c2d7e=this[_0xa4afa9(0x16e)][_0xa4afa9(0x282)](_0xd23e6e);_0x1c2d7e&&(_0x1c2d7e[_0xa4afa9(0x15b)](_0x4f0bde),(_0x206467=this['_ensureSubject'](_0xd23e6e))==null||_0x206467[_0xa4afa9(0x27b)](_0x1c2d7e['size']===0x0?_0x540c8d['NO_OTHER_CLIENTS_EDITING']:_0x540c8d[_0xa4afa9(0x14a)]));}),this['_removeClearOtherTimer'](_0x4f0bde);}[_0x568b98(0x221)](_0x4c44ce){const _0x4d9949=_0x568b98;this[_0x4d9949(0x146)](_0x4c44ce['memberID']);}['_send'](_0x4caa74){const _0x53bb83=_0x568b98;localStorage['setItem'](nt,JSON[_0x53bb83(0x152)](_0x4caa74));}[_0x568b98(0x2d8)](){const _0x358b28=_0x568b98;this[_0x358b28(0x1bb)]=window[_0x358b28(0x1db)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},it);}[_0x568b98(0x16d)](_0x45f3fe){const _0x201ef1=_0x568b98;return this[_0x201ef1(0x21c)][_0x201ef1(0x2c4)](_0x45f3fe)||this[_0x201ef1(0x21c)][_0x201ef1(0x214)](_0x45f3fe,new _0xd1fc21(_0x540c8d[_0x201ef1(0x255)])),this[_0x201ef1(0x21c)][_0x201ef1(0x282)](_0x45f3fe);}}var Mt=(_0x2a4a79=>(_0x2a4a79[_0x2a4a79[_0x568b98(0x1f0)]=0x0]=_0x568b98(0x1f0),_0x2a4a79[_0x2a4a79['OK']=0x1]='OK',_0x2a4a79[_0x2a4a79[_0x568b98(0x275)]=0x2]='INTERNAL_ERROR',_0x2a4a79[_0x2a4a79[_0x568b98(0x223)]=0x3]=_0x568b98(0x223),_0x2a4a79[_0x2a4a79[_0x568b98(0x25f)]=0x4]=_0x568b98(0x25f),_0x2a4a79[_0x2a4a79[_0x568b98(0x300)]=0x5]='UNAUTHENTICATED',_0x2a4a79[_0x2a4a79[_0x568b98(0x26c)]=0x6]=_0x568b98(0x26c),_0x2a4a79[_0x2a4a79[_0x568b98(0x1da)]=0x7]=_0x568b98(0x1da),_0x2a4a79[_0x2a4a79[_0x568b98(0x318)]=0x8]='TOO_MANY_REQUESTS',_0x2a4a79[_0x2a4a79[_0x568b98(0x315)]=0x9]='COMPLETION_FINISHED',_0x2a4a79[_0x2a4a79[_0x568b98(0x1ad)]=0xa]=_0x568b98(0x1ad),_0x2a4a79[_0x2a4a79['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x568b98(0x293),_0x2a4a79[_0x2a4a79[_0x568b98(0x197)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2a4a79[_0x2a4a79[_0x568b98(0x280)]=0x1772]=_0x568b98(0x280),_0x2a4a79[_0x2a4a79[_0x568b98(0x304)]=0x1773]=_0x568b98(0x304),_0x2a4a79[_0x2a4a79['APPLY_REJECT']=0x1b59]=_0x568b98(0x2db),_0x2a4a79[_0x2a4a79['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x568b98(0x208),_0x2a4a79[_0x2a4a79['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x568b98(0x250),_0x2a4a79[_0x2a4a79[_0x568b98(0x17c)]=0x1b5c]=_0x568b98(0x17c),_0x2a4a79[_0x2a4a79[_0x568b98(0x16a)]=0x1b5d]=_0x568b98(0x16a),_0x2a4a79[_0x2a4a79[_0x568b98(0x31b)]=0x1f41]=_0x568b98(0x31b),_0x2a4a79[_0x2a4a79['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x568b98(0x31e),_0x2a4a79[_0x2a4a79['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x568b98(0x1e1),_0x2a4a79[_0x2a4a79[_0x568b98(0x309)]=0x232b]=_0x568b98(0x309),_0x2a4a79[_0x2a4a79['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x568b98(0x259),_0x2a4a79[_0x2a4a79[_0x568b98(0x24b)]=0x232d]=_0x568b98(0x24b),_0x2a4a79[_0x2a4a79[_0x568b98(0x274)]=0x2711]=_0x568b98(0x274),_0x2a4a79[_0x2a4a79[_0x568b98(0x13e)]=0x2712]=_0x568b98(0x13e),_0x2a4a79[_0x2a4a79[_0x568b98(0x338)]=0x2713]=_0x568b98(0x338),_0x2a4a79[_0x2a4a79['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2a4a79[_0x2a4a79[_0x568b98(0x270)]=0x271a]=_0x568b98(0x270),_0x2a4a79[_0x2a4a79['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x568b98(0x16c),_0x2a4a79[_0x2a4a79[_0x568b98(0x192)]=0x271c]=_0x568b98(0x192),_0x2a4a79[_0x2a4a79[_0x568b98(0x242)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x2a4a79[_0x2a4a79[_0x568b98(0x206)]=0x271e]=_0x568b98(0x206),_0x2a4a79[_0x2a4a79[_0x568b98(0x28d)]=0x271f]=_0x568b98(0x28d),_0x2a4a79[_0x2a4a79[_0x568b98(0x2fe)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2a4a79[_0x2a4a79['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x568b98(0x2f9),_0x2a4a79[_0x2a4a79[_0x568b98(0x1e5)]=0x2ee2]=_0x568b98(0x1e5),_0x2a4a79[_0x2a4a79[_0x568b98(0x313)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2a4a79[_0x2a4a79[_0x568b98(0x26f)]=0x2ee4]=_0x568b98(0x26f),_0x2a4a79[_0x2a4a79[_0x568b98(0x29e)]=0x2ee5]=_0x568b98(0x29e),_0x2a4a79[_0x2a4a79[_0x568b98(0x1c7)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2a4a79[_0x2a4a79[_0x568b98(0x239)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2a4a79[_0x2a4a79[_0x568b98(0x1fd)]=0x32cb]=_0x568b98(0x1fd),_0x2a4a79[_0x2a4a79[_0x568b98(0x30b)]=-0x1]='UNRECOGNIZED',_0x2a4a79))(Mt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x8c78d7,_0x30c8b8,_0x1afb19,_0x44f720)=>{const _0x3fa057=_0x568b98;for(var _0x214c6d=_0x44f720>0x1?void 0x0:_0x44f720?pn(_0x30c8b8,_0x1afb19):_0x30c8b8,_0x538323=_0x8c78d7[_0x3fa057(0x2d9)]-0x1,_0x27a66d;_0x538323>=0x0;_0x538323--)(_0x27a66d=_0x8c78d7[_0x538323])&&(_0x214c6d=_0x27a66d(_0x214c6d)||_0x214c6d);return _0x214c6d;},be=(_0x56e62c,_0x1da8b5)=>(_0x419e56,_0x4aef0b)=>_0x1da8b5(_0x419e56,_0x4aef0b,_0x56e62c);let rt=class extends _0x3f16d8{constructor(_0x119642,_0x29bd96,_0x81c37e){const _0x1a6263=_0x568b98;super(),this[_0x1a6263(0x190)]=_0x119642,this[_0x1a6263(0x29f)]=_0x29bd96,this[_0x1a6263(0x157)]=_0x81c37e;}async[_0x568b98(0x1d4)](_0x32b653,_0x49429b,_0x4edd32,..._0x26eb44){const _0x26af25=_0x568b98;var _0x5d2c6b,_0x3f89d1,_0x5061a5,_0x4ee789;const _0x9f71a9=this[_0x26af25(0x190)][_0x26af25(0x2c1)]();if(!_0x9f71a9)throw new Error(_0x26af25(0x2e0));const _0x301040=((_0x5d2c6b=this['_configService']['getConfig'](_0x1ecb0e))!=null?_0x5d2c6b:_0x563a1a)+'/'+_0x32b653+_0x26af25(0x341)+_0x49429b,_0x5d1ce6=new URL(window[_0x26af25(0x268)][_0x26af25(0x145)]),_0x37a25c={'scriptId':_0x32b653,'runId':(_0x3f89d1=_0x5d1ce6[_0x26af25(0x1a6)][_0x26af25(0x282)](_0x26af25(0x1a5)))!=null?_0x3f89d1:'','function':_0x49429b,'unitId':_0x9f71a9[_0x26af25(0x284)](),'argsOfFunction':JSON['stringify'](_0x26eb44),'invokeId':(_0x5061a5=_0x4edd32['invokeId'])!=null?_0x5061a5:'','executionId':(_0x4ee789=_0x4edd32[_0x26af25(0x213)])!=null?_0x4ee789:''};try{const _0x1cc4b5=await this[_0x26af25(0x29f)][_0x26af25(0x231)](_0x301040,{'body':_0x37a25c});return _0x1cc4b5[_0x26af25(0x2e1)][_0x26af25(0x1b3)]&&_0x1cc4b5[_0x26af25(0x2e1)][_0x26af25(0x1b3)]['code']!==Mt['OK']?_0x26af25(0x1b4):_0x1cc4b5[_0x26af25(0x2e1)][_0x26af25(0x195)];}catch{return _0x26af25(0x1b4);}}};rt=Cn([be(0x0,_0x1234fa),be(0x1,_0x6d32dc(_0x3ee678)),be(0x2,_0x57f776)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Vi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,jn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- function _0x3732(){const _0x25cddc=['9423768dPHfSB','Collaboration\x20Conflict','3448792UskMPW','Syncing...','572274bYuGOT','Edit\x20conflicts','3285006WVcPEv','Synced','17604488KMjxYg','10VtowNS','7630398tVlQOJ','Click\x20to\x20Reconnect','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Local\x20file','5QcNxyB','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','23WPWSbp','14WtgDVm','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Connection\x20failed,\x20please\x20check\x20your\x20network.','11796kTDBrg','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Authentication\x20Error'];_0x3732=function(){return _0x25cddc;};return _0x3732();}const _0x259b2c=_0xc3eb;function _0xc3eb(_0x4fddb4,_0x2917e7){const _0x373234=_0x3732();return _0xc3eb=function(_0xc3eb9a,_0x17ab0f){_0xc3eb9a=_0xc3eb9a-0xe5;let _0x556d38=_0x373234[_0xc3eb9a];return _0x556d38;},_0xc3eb(_0x4fddb4,_0x2917e7);}(function(_0x3c87b4,_0x5424d6){const _0x10810d=_0xc3eb,_0x5af925=_0x3c87b4();while(!![]){try{const _0x1fe8e3=-parseInt(_0x10810d(0xe7))/0x1*(-parseInt(_0x10810d(0xeb))/0x2)+-parseInt(_0x10810d(0xf2))/0x3+-parseInt(_0x10810d(0xf0))/0x4*(parseInt(_0x10810d(0xfc))/0x5)+parseInt(_0x10810d(0xf4))/0x6*(parseInt(_0x10810d(0xe8))/0x7)+parseInt(_0x10810d(0xee))/0x8+parseInt(_0x10810d(0xf8))/0x9+parseInt(_0x10810d(0xf7))/0xa*(-parseInt(_0x10810d(0xf6))/0xb);if(_0x1fe8e3===_0x5424d6)break;else _0x5af925['push'](_0x5af925['shift']());}catch(_0x4625bb){_0x5af925['push'](_0x5af925['shift']());}}}(_0x3732,0x933cd));const e={'collab-client':{'tooltip':{'reconnect':_0x259b2c(0xf9)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x259b2c(0xf3),'notCollab':_0x259b2c(0xfb),'synced':_0x259b2c(0xf5),'syncing':_0x259b2c(0xf1),'offline':_0x259b2c(0xe6)},'session':{'connection-failed':_0x259b2c(0xea),'will-retry':_0x259b2c(0xec),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x259b2c(0xef),'content':_0x259b2c(0xfa)},'permission':{'title':_0x259b2c(0xed),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x259b2c(0xe9)},'closeRoom':_0x259b2c(0xe5)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};export{e as default};
1
+ const _0xbcc1e3=_0xf982;function _0x5340(){const _0x375846=['Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','60oIKnZu','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','147081LQQJkY','27155XjeJbw','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Synced','118083aDyPNU','Syncing...','Collaboration\x20Conflict','229698DjYAaB','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2987368fbrkUX','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','838852zklaAP','396718noQWBa','9TuZktj','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Connection\x20failed,\x20please\x20check\x20your\x20network.'];_0x5340=function(){return _0x375846;};return _0x5340();}(function(_0x1bb72f,_0x10127b){const _0x23324a=_0xf982,_0x536b1e=_0x1bb72f();while(!![]){try{const _0xc6708e=parseInt(_0x23324a(0x1c7))/0x1+parseInt(_0x23324a(0x1ca))/0x2+parseInt(_0x23324a(0x1d8))/0x3+parseInt(_0x23324a(0x1ce))/0x4+parseInt(_0x23324a(0x1d9))/0x5*(-parseInt(_0x23324a(0x1d6))/0x6)+parseInt(_0x23324a(0x1cf))/0x7+parseInt(_0x23324a(0x1cc))/0x8*(-parseInt(_0x23324a(0x1d0))/0x9);if(_0xc6708e===_0x10127b)break;else _0x536b1e['push'](_0x536b1e['shift']());}catch(_0x588875){_0x536b1e['push'](_0x536b1e['shift']());}}}(_0x5340,0x1d727));function _0xf982(_0x34a9a0,_0x4a79c7){const _0x53400f=_0x5340();return _0xf982=function(_0xf98233,_0x58be5d){_0xf98233=_0xf98233-0x1c6;let _0x1b17a8=_0x53400f[_0xf98233];return _0x1b17a8;},_0xf982(_0x34a9a0,_0x4a79c7);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0xbcc1e3(0x1d4),'synced':_0xbcc1e3(0x1c6),'syncing':_0xbcc1e3(0x1c8),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0xbcc1e3(0x1d3),'will-retry':_0xbcc1e3(0x1d2),'room-full':_0xbcc1e3(0x1d7),'collaboration-timeout':_0xbcc1e3(0x1d5)},'conflict':{'title':_0xbcc1e3(0x1c9),'content':_0xbcc1e3(0x1cd)},'permission':{'title':'Authentication\x20Error','content':_0xbcc1e3(0x1d1)},'collaboration':{'single-unit':{'warning':_0xbcc1e3(0x1cb)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0xbcc1e3(0x1da)}};export{e as default};
@@ -1 +1 @@
1
- function _0x18d7(){const _0x414916=['1204055asOHmx','594092FEDVuV','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','1934463FaTNpL','12RwMwlW','اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','خطای\x20اعتبارسنجی','920358JzPWVF','3305384FbkwyO','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','همگام\x20سازی','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','50kVkAgN','تداخل\x20ویرایش','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','8129JwFuRc','516oCSpHX','4qPCZfN','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','498KaYheo','در\x20حال\x20همگام\x20سازی...','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','71127RMubUR'];_0x18d7=function(){return _0x414916;};return _0x18d7();}const _0x398819=_0x1bb8;(function(_0x15155b,_0x347593){const _0x3e5885=_0x1bb8,_0x4ddd9a=_0x15155b();while(!![]){try{const _0x32cfbf=parseInt(_0x3e5885(0x73))/0x1*(-parseInt(_0x3e5885(0x84))/0x2)+-parseInt(_0x3e5885(0x75))/0x3+-parseInt(_0x3e5885(0x76))/0x4*(-parseInt(_0x3e5885(0x72))/0x5)+-parseInt(_0x3e5885(0x6e))/0x6*(-parseInt(_0x3e5885(0x71))/0x7)+parseInt(_0x3e5885(0x7a))/0x8+-parseInt(_0x3e5885(0x79))/0x9*(-parseInt(_0x3e5885(0x7f))/0xa)+-parseInt(_0x3e5885(0x82))/0xb*(parseInt(_0x3e5885(0x83))/0xc);if(_0x32cfbf===_0x347593)break;else _0x4ddd9a['push'](_0x4ddd9a['shift']());}catch(_0x37c191){_0x4ddd9a['push'](_0x4ddd9a['shift']());}}}(_0x18d7,0x98b59));function _0x1bb8(_0x1c141d,_0x293a05){const _0x18d761=_0x18d7();return _0x1bb8=function(_0x1bb893,_0x169385){_0x1bb893=_0x1bb893-0x6e;let _0x7aedd6=_0x18d761[_0x1bb893];return _0x7aedd6;},_0x1bb8(_0x1c141d,_0x293a05);}const o={'collab-client':{'tooltip':{'reconnect':_0x398819(0x70)}},'collabStatus':{'fetchMiss':'در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','conflict':_0x398819(0x80),'notCollab':'پرونده\x20محلی','synced':_0x398819(0x7c),'syncing':_0x398819(0x6f),'offline':_0x398819(0x81)},'session':{'connection-failed':'اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','will-retry':_0x398819(0x7d),'room-full':_0x398819(0x77),'collaboration-timeout':_0x398819(0x74)},'conflict':{'title':'تداخل\x20همکاری','content':_0x398819(0x7e)},'permission':{'title':_0x398819(0x78),'content':'اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'collaboration':{'single-unit':{'warning':_0x398819(0x7b)},'closeRoom':_0x398819(0x85)},'auth':{'needGotoLoginAlert':'ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.'}};export{o as default};
1
+ const _0x4da399=_0x5738;function _0x265e(){const _0x5a8363=['در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','6484680aPctyk','643806ZkaoWG','در\x20حال\x20همگام\x20سازی...','15370iQiYDU','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','همگام\x20سازی','7drHwsq','4227acXxAc','اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','پرونده\x20محلی','تداخل\x20ویرایش','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','خطای\x20اعتبارسنجی','101259epdyku','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','392hNMDzm','اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','تداخل\x20همکاری','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','419500xvRphU','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','770AtWveO','94909kGaITk'];_0x265e=function(){return _0x5a8363;};return _0x265e();}function _0x5738(_0x1d480b,_0xac3824){const _0x265eda=_0x265e();return _0x5738=function(_0x573832,_0x5e2711){_0x573832=_0x573832-0x142;let _0x4a715f=_0x265eda[_0x573832];return _0x4a715f;},_0x5738(_0x1d480b,_0xac3824);}(function(_0x4ba7ea,_0x509443){const _0x17e6d6=_0x5738,_0x2daf9f=_0x4ba7ea();while(!![]){try{const _0x160561=-parseInt(_0x17e6d6(0x151))/0x1+-parseInt(_0x17e6d6(0x150))/0x2*(parseInt(_0x17e6d6(0x15b))/0x3)+-parseInt(_0x17e6d6(0x14e))/0x4+-parseInt(_0x17e6d6(0x157))/0x5+-parseInt(_0x17e6d6(0x155))/0x6*(parseInt(_0x17e6d6(0x15a))/0x7)+-parseInt(_0x17e6d6(0x14a))/0x8*(-parseInt(_0x17e6d6(0x148))/0x9)+parseInt(_0x17e6d6(0x154))/0xa;if(_0x160561===_0x509443)break;else _0x2daf9f['push'](_0x2daf9f['shift']());}catch(_0x52e7c7){_0x2daf9f['push'](_0x2daf9f['shift']());}}}(_0x265e,0x54c07));const o={'collab-client':{'tooltip':{'reconnect':_0x4da399(0x14d)}},'collabStatus':{'fetchMiss':_0x4da399(0x152),'conflict':_0x4da399(0x145),'notCollab':_0x4da399(0x144),'synced':_0x4da399(0x159),'syncing':_0x4da399(0x156),'offline':_0x4da399(0x14f)},'session':{'connection-failed':_0x4da399(0x143),'will-retry':'اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','room-full':_0x4da399(0x142),'collaboration-timeout':_0x4da399(0x153)},'conflict':{'title':_0x4da399(0x14c),'content':'یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'permission':{'title':_0x4da399(0x147),'content':_0x4da399(0x14b)},'collaboration':{'single-unit':{'warning':_0x4da399(0x158)},'closeRoom':_0x4da399(0x146)},'auth':{'needGotoLoginAlert':_0x4da399(0x149)}};export{o as default};