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

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 _0x565e5e=_0x54e2;(function(_0xb1ec0,_0x4d1913){const _0x922d86=_0x54e2,_0x4fd204=_0xb1ec0();while(!![]){try{const _0x1195c0=-parseInt(_0x922d86(0x2f2))/0x1*(parseInt(_0x922d86(0x2d9))/0x2)+parseInt(_0x922d86(0x2e2))/0x3+-parseInt(_0x922d86(0x1cd))/0x4*(parseInt(_0x922d86(0x123))/0x5)+-parseInt(_0x922d86(0x143))/0x6*(parseInt(_0x922d86(0x127))/0x7)+parseInt(_0x922d86(0x306))/0x8+-parseInt(_0x922d86(0x282))/0x9+-parseInt(_0x922d86(0x318))/0xa*(-parseInt(_0x922d86(0x261))/0xb);if(_0x1195c0===_0x4d1913)break;else _0x4fd204['push'](_0x4fd204['shift']());}catch(_0x35abf8){_0x4fd204['push'](_0x4fd204['shift']());}}}(_0x1c2a,0x72816));var $t=Object['defineProperty'],xt=(_0x3cb1bf,_0x2ef00b,_0x296066)=>_0x2ef00b in _0x3cb1bf?$t(_0x3cb1bf,_0x2ef00b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x296066}):_0x3cb1bf[_0x2ef00b]=_0x296066,_=(_0x5ca9b3,_0x3516fd,_0x4cc5a7)=>xt(_0x5ca9b3,typeof _0x3516fd!=_0x565e5e(0x281)?_0x3516fd+'':_0x3516fd,_0x4cc5a7);import{MemberService as _0x18911c,SessionStatus as _0x58ed83,CollaborationSessionService as _0x2c6ff0,CollaborationStatus as _0x5ec7ba,CollaborationController as _0x3d2839,ILocalCacheService as _0x53c3f8,CollaborationUIEventService as _0x12cfe6,CollaborationUIEventId as _0x598d5d,DataLoaderService as _0x5db0df,DocCollaborationEntity as _0x2a3630,getLocalCacheKey as _0x1c554f,LOCAL_CACHE_INTERVAL as _0x4534b3,LOCAL_CACHE_INTERVAL_KEY as _0x2e89fb,UniverCollaborationClientPlugin as _0xfdf1e1,CollaborationSocketService as _0x1a8b70,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x18dd3e,DEFAULT_WS_SESSION_TICKET_URL as _0x26610c,UnitStatus as _0x5acab3,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2ab3aa,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x2a3d6c}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x4eca7e,Disposable as _0x1c8028,DOC_RANGE_TYPE as _0x38f122,Inject as _0x55c0ac,Injector as _0x3c5fec,IUniverInstanceService as _0x29f3a7,ICommandService as _0x347b5a,debounce as _0x178a01,Rectangle as _0x32f760,DisposableCollection as _0x106f4d,toDisposable as _0x5db44b,UniverInstanceType as _0x5a2412,Tools as _0x2650a9,COLORS as _0x307855,ColorKit as _0x4733be,ThemeService as _0x5c349a,fromEventSubject as _0x1ed6bf,LocaleService as _0x3f6602,createIdentifier as _0x2b4ff,ILogService as _0x39523,Optional as _0x5be1a1,Workbook as _0x4126cb,CommandType as _0x36eaf3,IConfigService as _0x70f736,ILocalStorageService as _0x5125d6,DependentOn as _0x8fe1b,Plugin as _0x134d3f,merge as _0x4a4e03,registerDependencies as _0x3135c1,mergeOverrideWithDependencies as _0x3fb29d,touchDependencies as _0x4977a3,generateRandomId as _0x39b4d2}from'@univerjs/core';import{Shape as _0x5aa585,Rect as _0x1f7a70,getColor as _0x2c33b6,RegularPolygon as _0x3fb629,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1c2080,Vector2 as _0x30304a,SHEET_VIEWPORT_KEY as _0xf57eeb,IRenderManagerService as _0x460adb}from'@univerjs/engine-render';import{ISocketService as _0x43e315,WebSocketService as _0x48ca09,HTTPService as _0x44a43a}from'@univerjs/network';import{IDocClipboardService as _0x52aa6f,NodePositionConvertToCursor as _0x51a727,NodePositionConvertToRectRange as _0x7015a4,TEXT_RANGE_LAYER_INDEX as _0x3cd669,SetDocZoomRatioOperation as _0x1e55ab,DocIMEInputManagerService as _0x34fedf,DocStateChangeManagerService as _0x4a9185}from'@univerjs/docs-ui';import{IImageIoService as _0x10b139}from'@univerjs/drawing';import{BehaviorSubject as _0x654dae,debounceTime as _0x1d746b,takeUntil as _0x55d45e,Subject as _0x5c87ae,filter as _0x3f7806,switchMap as _0x1f32ac,merge as _0x1dab2f,combineLatest as _0x3ca33b,of as _0x550d99,fromEvent as _0x258cc4,shareReplay as _0x280f1c,mapTo as _0x54f524,distinctUntilChanged as _0x11ced3}from'rxjs';import{SetTextSelectionsOperation as _0xe84dab,RichTextEditingMutation as _0x3420b9,DocSelectionManagerService as _0x4c52aa,DocSkeletonManagerService as _0xe6adb2}from'@univerjs/docs';import{ITransformService as _0x38ce08,CollaborationEvent as _0x5255c2,isTransformMutationFailure as _0x5012b2,isTransformMutationsWithChangesetSuccess as _0x5b3d73,RevisionService as _0x297d23,ISnapshotServerService as _0x39c8a2}from'@univerjs-pro/collaboration';import{deserializeRangeWithSheet as _0x465fe1,serializeRangeWithSheet as _0x31870b}from'@univerjs/engine-formula';import{RefRangeService as _0x19c13e,SetSelectionsOperation as _0x1701dc,SheetsSelectionsService as _0x5c00e8,EffectRefRangId as _0x5367ce,handleIRemoveRow as _0xd97bc4,handleIRemoveCol as _0xb6489e,handleMoveRange as _0x221db9,handleInsertRow as _0x384365,handleInsertRangeMoveRight as _0x2f2713,handleInsertRangeMoveDown as _0x2dd20e,handleInsertCol as _0x2b5e4c,handleDeleteRangeMoveUp as _0x336e81,handleDeleteRangeMoveLeft as _0x232b45,runRefRangeMutations as _0x20816d,SetWorksheetActivateCommand as _0x495402}from'@univerjs/sheets';import{map as _0x9b2036,filter as _0xb4a83,throttleTime as _0xec2be3,takeUntil as _0x31dbb5,switchMap as _0x3d6ece}from'rxjs/operators';import{SheetSkeletonManagerService as _0xc2148e,getCoordByCell as _0x4f0cdf,getSheetObject as _0x1738df}from'@univerjs/sheets-ui';import{jsx as _0x5d995a,jsxs as _0x414cf6}from'react/jsx-runtime';import{useObservable as _0x32a14,useDependency as _0x36b485,IUIPartsService as _0x3bd19e,BuiltInUIPart as _0x5e21a0,connectInjector as _0x2ab464,IBeforeCloseService as _0x4b0648,IMessageService as _0x5baf41,INotificationService as _0xf07edf}from'@univerjs/ui';import{Tooltip as _0x180a59,clsx as _0x34bb8d,MessageType as _0x165153}from'@univerjs/design';import{forwardRef as _0xfeee87,useRef as _0x40cc3a,createElement as _0x4d0a0d,useCallback as _0x4e607d}from'react';import{IRemoteInstanceService as _0x2afe11}from'@univerjs/rpc';var ci=Object[_0x565e5e(0x1b6)],li=(_0x1bca91,_0x2771be,_0x421637,_0x758dae)=>{const _0x3d2fd1=_0x565e5e;for(var _0x17dad4=_0x758dae>0x1?void 0x0:_0x758dae?ci(_0x2771be,_0x421637):_0x2771be,_0x2c0113=_0x1bca91[_0x3d2fd1(0x172)]-0x1,_0xb6a96b;_0x2c0113>=0x0;_0x2c0113--)(_0xb6a96b=_0x1bca91[_0x2c0113])&&(_0x17dad4=_0xb6a96b(_0x17dad4)||_0x17dad4);return _0x17dad4;},Je=(_0x38cc0c,_0x4a8d14)=>(_0x149877,_0x87f9a4)=>_0x4a8d14(_0x149877,_0x87f9a4,_0x38cc0c);let Ne=class extends _0x4eca7e{constructor(_0x3c6ada,_0x39f666){const _0x203d0c=_0x565e5e;super(),this['_docClipboardService']=_0x3c6ada,this['_imageIoService']=_0x39f666,this[_0x203d0c(0x186)]();}['_init'](){const _0x44149d=_0x565e5e,_0x1d1afb=this;this[_0x44149d(0x2b8)](this[_0x44149d(0x140)][_0x44149d(0x128)]({'onBeforePasteImage':async _0x50a867=>{const _0x51765c=_0x44149d,_0x2ac7a0=await _0x1d1afb[_0x51765c(0x132)][_0x51765c(0x250)](_0x50a867);return _0x2ac7a0?{'source':_0x2ac7a0[_0x51765c(0x286)],'imageSourceType':_0x2ac7a0[_0x51765c(0x130)]}:null;}}));}};Ne=li([Je(0x0,_0x52aa6f),Je(0x1,_0x10b139)],Ne);const Ze=[_0x565e5e(0x189),_0x565e5e(0x283),_0x565e5e(0x259),_0x565e5e(0x320),_0x565e5e(0x26d),_0x565e5e(0x2db)];class ke extends _0x1c8028{constructor(){const _0x10b56c=_0x565e5e;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x10b56c(0x314),0x0);}['assignAColorForMemberID'](_0x1b3225){const _0x419be6=_0x565e5e;if(this[_0x419be6(0x1bf)]['has'](_0x1b3225))return this[_0x419be6(0x1bf)][_0x419be6(0x1b4)](_0x1b3225);const _0xed1037=Ze[this[_0x419be6(0x314)]];return this[_0x419be6(0x314)]=(this['_colorIndex']+0x1)%Ze[_0x419be6(0x172)],this['_assignedColors']['set'](_0x1b3225,_0xed1037),_0xed1037;}}function Tt(_0x5caab7){const _0x77d879=_0x565e5e;let _0x44aab2='';for(const _0x5b7458 of _0x5caab7){const {startOffset:_0x245b1a,endOffset:_0x5a44be,isActive:_0x227798,rangeType:_0x239e44,segmentId:_0x52ec80,segmentPage:_0x29660b}=_0x5b7458;_0x44aab2[_0x77d879(0x172)]&&(_0x44aab2+=','),_0x44aab2+=_0x245b1a+':'+_0x5a44be+':'+(_0x227798?'1':'0')+':'+_0x239e44+':'+_0x52ec80+':'+_0x29660b;}return _0x44aab2;}function _i(_0x70b143){const _0x2a3042=_0x565e5e,_0x137d01=_0x70b143[_0x2a3042(0x1f0)](','),_0x5ac710=[];for(const _0x140209 of _0x137d01){const [_0x2832bc,_0x265de2,_0x97dbcc,_0x54b040,_0x55a090,_0x443aaf]=_0x140209[_0x2a3042(0x1f0)](':');_0x5ac710[_0x2a3042(0x28a)]({'startOffset':Number(_0x2832bc),'endOffset':Number(_0x265de2),'collapsed':_0x2832bc===_0x265de2,'isActive':_0x97dbcc==='1','rangeType':_0x54b040===_0x38f122[_0x2a3042(0x18a)]?_0x38f122['TEXT']:_0x38f122[_0x2a3042(0x24a)],'segmentId':typeof _0x55a090=='string'?String(_0x55a090):'','segmentPage':Number(_0x443aaf!=null?_0x443aaf:-0x1)});}return _0x5ac710[_0x2a3042(0x1e3)](_0xfcd8cc=>_0xfcd8cc[_0x2a3042(0x27a)])||(_0x5ac710[0x0]['isActive']=!0x0),_0x5ac710;}class He extends _0x4eca7e{constructor(){const _0x3ad0ed=_0x565e5e;super(...arguments),_(this,'_collabCursorState$',new _0x654dae(null)),_(this,_0x3ad0ed(0x148),this[_0x3ad0ed(0x1af)][_0x3ad0ed(0x176)]());}['syncEditingCollabCursor'](_0x23da14){const _0x60506e=_0x565e5e,{unitID:_0x2a62fc,memberID:_0x115ffb,textRanges:_0x1f3e06}=_0x23da14,_0x463a30=Tt(_0x1f3e06);if(_0x463a30==='')return;const _0x8212b7={'unitID':_0x2a62fc,'memberID':_0x115ffb,'selection':_0x463a30};this['_collabCursorState$'][_0x60506e(0x1b9)](_0x8212b7);}}var hi=Object[_0x565e5e(0x1b6)],ui=(_0x1f2f0f,_0x2dcddf,_0x4f1b3f,_0x1b11d2)=>{const _0x465c95=_0x565e5e;for(var _0x5b7206=_0x1b11d2>0x1?void 0x0:_0x1b11d2?hi(_0x2dcddf,_0x4f1b3f):_0x2dcddf,_0x1c030e=_0x1f2f0f[_0x465c95(0x172)]-0x1,_0x2bb13e;_0x1c030e>=0x0;_0x1c030e--)(_0x2bb13e=_0x1f2f0f[_0x1c030e])&&(_0x5b7206=_0x2bb13e(_0x5b7206)||_0x5b7206);return _0x5b7206;},L=(_0x255e20,_0x1ba13c)=>(_0x34df39,_0x2e6462)=>_0x1ba13c(_0x34df39,_0x2e6462,_0x255e20);const di=0x12c,fi=0x64;let Ue=class extends _0x4eca7e{constructor(_0x48a377,_0x3517f5,_0x3d06e1,_0x4a0d27,_0x582856,_0x528f76,_0x34ccbe,_0x573cb1,_0x265622){const _0x50d7cd=_0x565e5e;super(),_(this,_0x50d7cd(0x1b7),!0x1),_(this,_0x50d7cd(0x186),!0x1),_(this,_0x50d7cd(0x2ca),new _0x654dae(new Map())),_(this,'cursorInfo$',this[_0x50d7cd(0x2ca)]['asObservable']()),_(this,'_roomMembers$',new _0x654dae([])),_(this,_0x50d7cd(0x158),this[_0x50d7cd(0x179)][_0x50d7cd(0x252)](_0x1d746b(di))),_(this,_0x50d7cd(0x170),_0x178a01(_0x3fd42c=>{const _0x58aa23=_0x50d7cd,_0x5b19f9={'eventID':_0x5255c2['UPDATE_CURSOR'],'data':{'unitID':this[_0x58aa23(0x1fd)],'memberID':this[_0x58aa23(0x2d5)][_0x58aa23(0x26b)](),'selection':Tt(_0x3fd42c)}};this[_0x58aa23(0x2d5)]['send'](_0x5b19f9,this[_0x58aa23(0x1fd)]);},fi)),(this[_0x50d7cd(0x1fd)]=_0x48a377,this['_session']=_0x3517f5,this[_0x50d7cd(0x29c)]=_0x3d06e1,this[_0x50d7cd(0x274)]=_0x4a0d27,this[_0x50d7cd(0x136)]=_0x582856,this[_0x50d7cd(0x264)]=_0x528f76,this['_transformService']=_0x34ccbe,this[_0x50d7cd(0x2e0)]=_0x573cb1,this[_0x50d7cd(0x1a4)]=_0x265622);}get[_0x565e5e(0x2ee)](){const _0x575d03=_0x565e5e;return this[_0x575d03(0x2ca)][_0x575d03(0x25e)]();}get[_0x565e5e(0x14c)](){const _0x41b6c2=_0x565e5e;return this[_0x41b6c2(0x179)]['getValue']();}[_0x565e5e(0x184)](){const _0x2163e6=_0x565e5e;super[_0x2163e6(0x184)](),this[_0x2163e6(0x2ca)][_0x2163e6(0x1b9)](new Map()),this[_0x2163e6(0x2ca)][_0x2163e6(0x226)](),this[_0x2163e6(0x179)][_0x2163e6(0x1b9)]([]),this[_0x2163e6(0x179)]['complete']();}[_0x565e5e(0x1b5)](){const _0x6924d1=_0x565e5e;this[_0x6924d1(0x186)]||(this['_init']=!0x0,this[_0x6924d1(0x2d5)][_0x6924d1(0x2a5)]['pipe'](_0x55d45e(this[_0x6924d1(0x1da)]))[_0x6924d1(0x1bd)](_0x6d0efe=>{const _0x3b867=_0x6924d1;_0x6d0efe===_0x58ed83[_0x3b867(0x223)]?this[_0x3b867(0x323)]():this['_toggleOffline']();}),this[_0x6924d1(0x2d5)][_0x6924d1(0x31c)][_0x6924d1(0x252)](_0x55d45e(this[_0x6924d1(0x1da)]))[_0x6924d1(0x1bd)](_0x5950f2=>{const _0x139a21=_0x6924d1,_0x1525b7=_0x5950f2[_0x139a21(0x1f8)];_0x1525b7===_0x5255c2['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5950f2),_0x1525b7===_0x5255c2[_0x139a21(0x120)]&&this['_onCursorDelete'](_0x5950f2);}),this[_0x6924d1(0x2b8)](this[_0x6924d1(0x1a4)][_0x6924d1(0x197)](_0xd6b341=>{const _0x3295b4=_0x6924d1,_0x166132=_0xd6b341[_0x3295b4(0x1a5)];_0x166132!=null&&this['_online']&&_0xd6b341['id']===_0xe84dab['id']&&_0x166132['unitId']===this[_0x3295b4(0x1fd)]&&_0x166132[_0x3295b4(0x210)]===!0x1&&_0x166132[_0x3295b4(0x27d)]['length']>0x0&&this['_updateLocalCursor'](_0x166132[_0x3295b4(0x27d)]);})),this['_syncEditingCollabCursorService'][_0x6924d1(0x148)]['pipe'](_0x55d45e(this[_0x6924d1(0x1da)]))[_0x6924d1(0x1bd)](_0x486bbd=>{const _0x986a59=_0x6924d1;if((_0x486bbd==null?void 0x0:_0x486bbd[_0x986a59(0x1fd)])!==this[_0x986a59(0x1fd)])return;const _0x22a0e4={'eventID':_0x5255c2[_0x986a59(0x2e1)],'data':_0x486bbd};this[_0x986a59(0x2fa)](_0x22a0e4);}),this['disposeWithMe'](this[_0x6924d1(0x1a4)]['onCommandExecuted'](_0x2ff7c8=>{const _0x175855=_0x6924d1;if(_0x2ff7c8['params']==null)return;const _0x4c3967=_0x2ff7c8[_0x175855(0x1a5)];if(_0x2ff7c8['id']!==_0x3420b9['id']||_0x4c3967[_0x175855(0x1fe)]!==this[_0x175855(0x1fd)])return;const _0x4d988e={'id':_0x175855(0x21a),'params':_0x4c3967},_0x1f9d56=this[_0x175855(0x2ee)];for(const [_0x29ed84,_0x577632]of _0x1f9d56){const _0xa289b0={'id':_0x175855(0x21a),'params':{'unitId':this[_0x175855(0x1fd)],'actions':null,'textRanges':_0x577632[_0x175855(0x27d)]}},_0x2738d8=this[_0x175855(0x12d)][_0x175855(0x24b)](_0x4d988e,_0xa289b0,!0x1);if(_0x5012b2(_0x2738d8))throw _0x2738d8[_0x175855(0x166)];_0x1f9d56['set'](_0x29ed84,{..._0x577632,'ranges':_0x2738d8[_0x175855(0x2df)][_0x175855(0x1a5)][_0x175855(0x309)]});}queueMicrotask(()=>{const _0x125139=_0x175855;this[_0x125139(0x2ca)]['next'](_0x1f9d56);});})));}['_onCursorUpdate'](_0x3a0f2e){const _0x1e2e90=_0x565e5e;var _0x4f4426,_0x40ca45;const {memberID:_0x70cb0f,selection:_0x5b2856}=_0x3a0f2e[_0x1e2e90(0x185)],_0x4a704f=_i(_0x5b2856),_0x2183d9=(_0x40ca45=(_0x4f4426=this[_0x1e2e90(0x136)][_0x1e2e90(0x2a2)](this['unitID'],_0x70cb0f))==null?void 0x0:_0x4f4426[_0x1e2e90(0x303)])!=null?_0x40ca45:_0x1e2e90(0x1e6),_0x29a891={'color':this[_0x1e2e90(0x274)][_0x1e2e90(0x168)](_0x70cb0f),'name':_0x2183d9,'ranges':_0x4a704f},_0x291dc0=this[_0x1e2e90(0x2ee)];_0x291dc0[_0x1e2e90(0x2ed)](_0x70cb0f,_0x29a891),this[_0x1e2e90(0x2ca)][_0x1e2e90(0x1b9)](_0x291dc0);}['_onCursorDelete'](_0x23834f){const _0x2b359f=_0x565e5e,{memberID:_0x5a1cd6}=_0x23834f[_0x2b359f(0x185)],_0x3f3121=this[_0x2b359f(0x2ee)];_0x3f3121[_0x2b359f(0x28e)](_0x5a1cd6),this[_0x2b359f(0x2ca)]['next'](_0x3f3121);}[_0x565e5e(0x323)](){const _0x421b14=_0x565e5e;var _0x3fbece;if(this[_0x421b14(0x1b7)]=!0x0,((_0x3fbece=this[_0x421b14(0x2e0)][_0x421b14(0x1d6)]())==null?void 0x0:_0x3fbece[_0x421b14(0x1d8)]())!==this[_0x421b14(0x1fd)])return;const _0x593669=this[_0x421b14(0x29c)]['get'](_0x4c52aa)['getDocRanges']();Array['isArray'](_0x593669)&&_0x593669['length']>0x0&&this[_0x421b14(0x170)](_0x593669);}[_0x565e5e(0x1c8)](){this['_online']=!0x1;}};Ue=ui([L(0x2,_0x55c0ac(_0x3c5fec)),L(0x3,_0x55c0ac(ke)),L(0x4,_0x55c0ac(_0x18911c)),L(0x5,_0x55c0ac(He)),L(0x6,_0x38ce08),L(0x7,_0x29f3a7),L(0x8,_0x347b5a)],Ue);var Si=Object['getOwnPropertyDescriptor'],mi=(_0x1bb866,_0x17ee31,_0x3ff3a3,_0x3e9031)=>{for(var _0x2c31b0=_0x3e9031>0x1?void 0x0:_0x3e9031?Si(_0x17ee31,_0x3ff3a3):_0x17ee31,_0x596448=_0x1bb866['length']-0x1,_0x292957;_0x596448>=0x0;_0x596448--)(_0x292957=_0x1bb866[_0x596448])&&(_0x2c31b0=_0x292957(_0x2c31b0)||_0x2c31b0);return _0x2c31b0;},x=(_0x3fa3f9,_0x42a91e)=>(_0x377380,_0x2ca04b)=>_0x42a91e(_0x377380,_0x2ca04b,_0x3fa3f9);const gi=0x12c,Ii=0x64,vi=()=>{let _0x62ac44=[],_0xe9cd00=!0x1;return _0x46aad3=>{const _0x36a766=_0x54e2;_0x62ac44[_0x36a766(0x28a)](_0x46aad3),_0xe9cd00||(_0xe9cd00=!0x0,setTimeout(()=>{_0x62ac44['forEach'](_0x29c550=>_0x29c550()),_0x62ac44=[],_0xe9cd00=!0x1;}));};};let Me=class extends _0x4eca7e{constructor(_0x38aac7,_0xc804d,_0x163237,_0x971cee,_0x5ead7f,_0x300a63,_0x19aa5e,_0x59e2bd){const _0x3327ca=_0x565e5e;super(),_(this,_0x3327ca(0x1b7),!0x1),_(this,_0x3327ca(0x186),!0x1),_(this,_0x3327ca(0x2ca),new _0x654dae(new Map())),_(this,_0x3327ca(0x255),this['_cursorInfo$']['asObservable']()),_(this,_0x3327ca(0x179),new _0x654dae([])),_(this,_0x3327ca(0x158),this['_roomMembers$']['pipe'](_0x1d746b(gi))),_(this,'_updateLocalCursor',_0x178a01((_0x58a5ab,_0x22b32f)=>{const _0xf1e666=_0x3327ca,_0x383e90={'eventID':_0x5255c2[_0xf1e666(0x2e1)],'data':{'unitID':this[_0xf1e666(0x1fd)],'memberID':this['_session']['getMemberID'](),'selection':_0x31870b(_0x58a5ab,_0x22b32f['range'])}};this['_session'][_0xf1e666(0x26f)](_0x383e90,this[_0xf1e666(0x1fd)]);},Ii)),(this['unitID']=_0x38aac7,this[_0x3327ca(0x2d5)]=_0xc804d,this[_0x3327ca(0x29c)]=_0x163237,this[_0x3327ca(0x274)]=_0x971cee,this[_0x3327ca(0x136)]=_0x5ead7f,this[_0x3327ca(0x2e0)]=_0x300a63,this[_0x3327ca(0x1a4)]=_0x19aa5e,this[_0x3327ca(0x32f)]=_0x59e2bd);}get[_0x565e5e(0x2ee)](){const _0x3f79cf=_0x565e5e;return this['_cursorInfo$'][_0x3f79cf(0x25e)]();}get[_0x565e5e(0x14c)](){const _0x591d49=_0x565e5e;return this[_0x591d49(0x179)][_0x591d49(0x25e)]();}[_0x565e5e(0x184)](){const _0x1b4b18=_0x565e5e;super[_0x1b4b18(0x184)](),this[_0x1b4b18(0x2ca)][_0x1b4b18(0x1b9)](new Map()),this[_0x1b4b18(0x2ca)][_0x1b4b18(0x226)](),this['_roomMembers$'][_0x1b4b18(0x1b9)]([]),this[_0x1b4b18(0x179)][_0x1b4b18(0x226)]();}[_0x565e5e(0x1b5)](){const _0x38f693=_0x565e5e;this[_0x38f693(0x186)]||(this[_0x38f693(0x186)]=!0x0,this['_session'][_0x38f693(0x2a5)][_0x38f693(0x252)](_0x55d45e(this['dispose$']))[_0x38f693(0x1bd)](_0x1e2d80=>{const _0x98c3=_0x38f693;_0x1e2d80===_0x58ed83[_0x98c3(0x223)]?this[_0x98c3(0x323)]():this[_0x98c3(0x1c8)]();}),this[_0x38f693(0x2d5)]['event$'][_0x38f693(0x252)](_0x55d45e(this[_0x38f693(0x1da)]))[_0x38f693(0x1bd)](_0x39042e=>{const _0x5374a8=_0x38f693,_0x23fd7a=_0x39042e[_0x5374a8(0x1f8)];_0x23fd7a===_0x5255c2[_0x5374a8(0x2e1)]&&this[_0x5374a8(0x2fa)](_0x39042e),_0x23fd7a===_0x5255c2[_0x5374a8(0x120)]&&this[_0x5374a8(0x2a9)](_0x39042e);}),this['_onRefRangeChange'](),this[_0x38f693(0x2b8)](this['_commandService'][_0x38f693(0x197)](_0x5bb5db=>{const _0x227f75=_0x38f693;if(this[_0x227f75(0x1b7)]&&_0x5bb5db['id']===_0x1701dc['id']&&_0x5bb5db['params'][_0x227f75(0x1fe)]===this[_0x227f75(0x1fd)]){const _0x29a6fa=_0x5bb5db['params'];this[_0x227f75(0x170)](_0x29a6fa[_0x227f75(0x2c6)],_0x29a6fa[_0x227f75(0x233)][0x0]);}})));}[_0x565e5e(0x2fa)](_0x4bc149){const _0x3c0028=_0x565e5e;var _0x3a21cd,_0x1082a4;const {memberID:_0x2616e2,selection:_0x225000}=_0x4bc149[_0x3c0028(0x185)],{sheetName:_0x37d30f,range:_0x3ae894}=_0x465fe1(_0x225000),_0x5632ce={'name':(_0x1082a4=(_0x3a21cd=this[_0x3c0028(0x136)]['getMember'](this[_0x3c0028(0x1fd)],_0x2616e2))==null?void 0x0:_0x3a21cd[_0x3c0028(0x303)])!=null?_0x1082a4:_0x3c0028(0x1e6),'range':this['_getMergeRange'](_0x37d30f,_0x3ae894),'sheetID':_0x37d30f,'color':this[_0x3c0028(0x274)][_0x3c0028(0x168)](_0x2616e2),'selection':_0x225000},_0xd3c49c=this[_0x3c0028(0x2ee)];_0xd3c49c[_0x3c0028(0x2ed)](_0x2616e2,_0x5632ce),this[_0x3c0028(0x2ca)][_0x3c0028(0x1b9)](_0xd3c49c);}[_0x565e5e(0x2a9)](_0x237a1c){const _0x194b28=_0x565e5e,{memberID:_0x1f3656}=_0x237a1c['data'],_0x332022=this[_0x194b28(0x2ee)];_0x332022[_0x194b28(0x28e)](_0x1f3656),this[_0x194b28(0x2ca)]['next'](_0x332022);}[_0x565e5e(0x1df)](_0x6fee58,_0x349975){const _0x5aa272=_0x565e5e;var _0x3f669a,_0x199a9b;const _0x264bfd=(_0x199a9b=(_0x3f669a=this[_0x5aa272(0x2e0)]['getUniverSheetInstance'](this[_0x5aa272(0x1fd)]))==null?void 0x0:_0x3f669a[_0x5aa272(0x1e5)](_0x6fee58))==null?void 0x0:_0x199a9b[_0x5aa272(0x2a7)]();return(_0x264bfd==null?void 0x0:_0x264bfd['find'](_0x30ab35=>_0x32f760[_0x5aa272(0x13a)](_0x30ab35,_0x349975)))||_0x349975;}[_0x565e5e(0x1f5)](){const _0x547bc1=_0x565e5e,_0x99c0c=new _0x106f4d(),_0x550585=vi(),_0x55b6bf=()=>{const _0x458653=_0x54e2;_0x99c0c[_0x458653(0x184)]();const _0x42fce0=(_0x93838f,_0x3df910,_0x9651e2,_0xc5bc75)=>{const _0x1d7f77=_0x458653;let _0x4340ec=[];switch(_0x93838f['id']){case _0x5367ce[_0x1d7f77(0x21f)]:{_0x4340ec=_0x232b45(_0x93838f,_0xc5bc75);break;}case _0x5367ce[_0x1d7f77(0x2f4)]:{_0x4340ec=_0x336e81(_0x93838f,_0xc5bc75);break;}case _0x5367ce[_0x1d7f77(0x16e)]:{_0x4340ec=_0x2b5e4c(_0x93838f,_0xc5bc75);break;}case _0x5367ce[_0x1d7f77(0x2f3)]:{_0x4340ec=_0x2dd20e(_0x93838f,_0xc5bc75);break;}case _0x5367ce['InsertRangeMoveRightCommandId']:{_0x4340ec=_0x2f2713(_0x93838f,_0xc5bc75);break;}case _0x5367ce[_0x1d7f77(0x224)]:{_0x4340ec=_0x384365(_0x93838f,_0xc5bc75);break;}case _0x5367ce[_0x1d7f77(0x248)]:{_0x4340ec=_0x221db9(_0x93838f,_0xc5bc75);break;}case _0x5367ce[_0x1d7f77(0x1c7)]:{_0x4340ec=_0xb6489e(_0x93838f,_0xc5bc75);break;}case _0x5367ce[_0x1d7f77(0x265)]:{_0x4340ec=_0xd97bc4(_0x93838f,_0xc5bc75);break;}}const _0x24ef45=_0x20816d(_0x4340ec,_0xc5bc75),_0x1a8683=this[_0x1d7f77(0x2ee)][_0x1d7f77(0x1b4)](_0x3df910);if(_0x1a8683&&_0x24ef45){const _0x42e67a={..._0x1a8683,'range':_0x24ef45};this[_0x1d7f77(0x2ee)][_0x1d7f77(0x2ed)](_0x3df910,_0x42e67a),_0x550585(()=>{const _0x592f84=_0x1d7f77,_0x402ce9=this[_0x592f84(0x32f)][_0x592f84(0x207)](_0x24ef45,_0x1bfeec=>(_0x402ce9[_0x592f84(0x184)](),_0x42fce0(_0x1bfeec,_0x3df910,_0x9651e2,_0x24ef45)));_0x99c0c['add'](_0x402ce9);});}return{'redos':[],'undos':[]};};this[_0x458653(0x2ee)]['forEach']((_0x3dcaef,_0xb5d5dd)=>{const _0x436962=_0x458653,{range:_0xa99dbf,sheetID:_0x368578}=_0x3dcaef,_0x808a36=this[_0x436962(0x32f)][_0x436962(0x207)](_0xa99dbf,_0x487cb4=>(_0x808a36['dispose'](),_0x42fce0(_0x487cb4,_0xb5d5dd,_0x368578,_0xa99dbf)));_0x99c0c[_0x436962(0x2ec)](_0x808a36);});};this[_0x547bc1(0x2b8)](_0x5db44b(this[_0x547bc1(0x2ca)]['subscribe'](()=>{_0x55b6bf();})));}['_toggleOnline'](){const _0x83d527=_0x565e5e;var _0x9b2103,_0x205e4d;if(this[_0x83d527(0x1b7)]=!0x0,((_0x9b2103=this[_0x83d527(0x2e0)]['getFocusedUnit']())==null?void 0x0:_0x9b2103[_0x83d527(0x1d8)]())!==this[_0x83d527(0x1fd)])return;const _0xbccf9c=(_0x205e4d=this[_0x83d527(0x29c)][_0x83d527(0x1b4)](_0x5c00e8)['getCurrentSelections']())==null?void 0x0:_0x205e4d[0x0],_0x39e6fe=this[_0x83d527(0x2e0)][_0x83d527(0x280)](_0x5a2412[_0x83d527(0x1ba)])[_0x83d527(0x319)]();_0xbccf9c&&_0x39e6fe&&this[_0x83d527(0x170)](_0x39e6fe[_0x83d527(0x267)](),_0xbccf9c);}[_0x565e5e(0x1c8)](){const _0x58e631=_0x565e5e;this[_0x58e631(0x1b7)]=!0x1;}};Me=mi([x(0x2,_0x55c0ac(_0x3c5fec)),x(0x3,_0x55c0ac(ke)),x(0x4,_0x55c0ac(_0x18911c)),x(0x5,_0x29f3a7),x(0x6,_0x347b5a),x(0x7,_0x55c0ac(_0x19c13e))],Me);var pi=Object[_0x565e5e(0x1b6)],Ci=(_0x12946b,_0x1636e8,_0x15f271,_0x39f25d)=>{const _0x30ec6d=_0x565e5e;for(var _0x2e3e06=_0x39f25d>0x1?void 0x0:_0x39f25d?pi(_0x1636e8,_0x15f271):_0x1636e8,_0x2151e5=_0x12946b[_0x30ec6d(0x172)]-0x1,_0x44fe10;_0x2151e5>=0x0;_0x2151e5--)(_0x44fe10=_0x12946b[_0x2151e5])&&(_0x2e3e06=_0x44fe10(_0x2e3e06)||_0x2e3e06);return _0x2e3e06;},Se=(_0xbc5acd,_0x576432)=>(_0x2bd41f,_0x10c1fe)=>_0x576432(_0x2bd41f,_0x10c1fe,_0xbc5acd);let H=class extends _0x4eca7e{constructor(_0x205278,_0x51993d,_0x1f3318){const _0xeac0a5=_0x565e5e;super(),_(this,_0xeac0a5(0x258),new Map()),_(this,'_entityInit$',new _0x5c87ae()),(this[_0xeac0a5(0x2e0)]=_0x205278,this[_0xeac0a5(0x29c)]=_0x51993d,this[_0xeac0a5(0x247)]=_0x1f3318,this[_0xeac0a5(0x186)]());}[_0x565e5e(0x184)](){const _0x5ca064=_0x565e5e;super[_0x5ca064(0x184)](),this[_0x5ca064(0x297)][_0x5ca064(0x226)](),this[_0x5ca064(0x258)][_0x5ca064(0x322)](_0x3fc424=>_0x3fc424[_0x5ca064(0x184)]());}[_0x565e5e(0x198)](_0x32f4ed){const _0x93c36f=_0x565e5e;return this['_entities']['has'](_0x32f4ed)?this['_entities']['get'](_0x32f4ed)[_0x93c36f(0x255)]:this[_0x93c36f(0x297)][_0x93c36f(0x252)](_0x3f7806(_0x5b0cf1=>_0x5b0cf1['unitID']===_0x32f4ed),_0x1f32ac(_0x436808=>_0x436808['cursorInfo$']));}['_init'](){const _0x36845f=_0x565e5e;this[_0x36845f(0x2e0)][_0x36845f(0x22d)](_0x5a2412[_0x36845f(0x1ba)])[_0x36845f(0x252)](_0x55d45e(this[_0x36845f(0x1da)]))[_0x36845f(0x1bd)](async _0x43f32f=>{const _0x4412a0=_0x36845f,_0x398c56=_0x43f32f[_0x4412a0(0x1d8)](),_0xdf96a9=await this['_startSheetCollabCursor'](_0x398c56);this[_0x4412a0(0x297)][_0x4412a0(0x1b9)](_0xdf96a9),this[_0x4412a0(0x258)][_0x4412a0(0x2ed)](_0x398c56,_0xdf96a9);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5a2412[_0x36845f(0x162)])['pipe'](_0x55d45e(this[_0x36845f(0x1da)]))[_0x36845f(0x252)](_0x3f7806(_0xaf6022=>!_0xaf6022['getUnitId']()[_0x36845f(0x15d)]('__')))[_0x36845f(0x1bd)](async _0x39991a=>{const _0x4a58b2=_0x36845f,_0x149aab=_0x39991a[_0x4a58b2(0x1d8)](),_0x178cc1=await this[_0x4a58b2(0x171)](_0x149aab);this[_0x4a58b2(0x297)][_0x4a58b2(0x1b9)](_0x178cc1),this[_0x4a58b2(0x258)]['set'](_0x149aab,_0x178cc1);}),_0x1dab2f(this['_univerInstanceService'][_0x36845f(0x23a)](_0x5a2412[_0x36845f(0x162)]),this[_0x36845f(0x2e0)][_0x36845f(0x23a)](_0x5a2412[_0x36845f(0x1ba)]))[_0x36845f(0x252)](_0x55d45e(this[_0x36845f(0x1da)]))['subscribe'](_0x4a63b3=>{const _0xb5c4d3=_0x36845f,_0x4dbd32=_0x4a63b3[_0xb5c4d3(0x1d8)](),_0x385a8d=this['_entities'][_0xb5c4d3(0x1b4)](_0x4dbd32);_0x385a8d&&(_0x385a8d[_0xb5c4d3(0x184)](),this[_0xb5c4d3(0x258)]['delete'](_0x4dbd32));});}async[_0x565e5e(0x196)](_0x1eee3e){const _0x33ba0f=_0x565e5e,_0x2b044e=await this[_0x33ba0f(0x247)][_0x33ba0f(0x173)](_0x1eee3e),_0x4925f5=this[_0x33ba0f(0x29c)][_0x33ba0f(0x228)](Me,_0x1eee3e,_0x2b044e);return _0x4925f5[_0x33ba0f(0x1b5)](),_0x4925f5;}async[_0x565e5e(0x171)](_0x2e7e99){const _0x55dbdd=_0x565e5e,_0x47c459=await this[_0x55dbdd(0x247)][_0x55dbdd(0x173)](_0x2e7e99),_0x1d681b=this[_0x55dbdd(0x29c)][_0x55dbdd(0x228)](Ue,_0x2e7e99,_0x47c459);return _0x1d681b[_0x55dbdd(0x1b5)](),_0x1d681b;}};H=Ci([Se(0x0,_0x29f3a7),Se(0x1,_0x55c0ac(_0x3c5fec)),Se(0x2,_0x55c0ac(_0x2c6ff0))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x148542,_0x3285f6){const _0xe6e48b=_0x565e5e;let {radius:_0x16411d,width:_0x5b22d9,height:_0x43f446}=_0x3285f6;_0x16411d=_0x16411d!=null?_0x16411d:0x0,_0x5b22d9=_0x5b22d9!=null?_0x5b22d9:0x1e,_0x43f446=_0x43f446!=null?_0x43f446:0x1e;let _0x31f9b8=0x0,_0x177ad7=0x0,_0x2e2941=0x0;_0x31f9b8=_0x177ad7=_0x2e2941=Math['min'](_0x16411d,_0x5b22d9/0x2,_0x43f446/0x2),_0x148542[_0xe6e48b(0x2bc)](),_0x148542[_0xe6e48b(0x2b6)](_0x31f9b8,0x0),_0x148542[_0xe6e48b(0x147)](_0x5b22d9-_0x177ad7,0x0),_0x148542[_0xe6e48b(0x2bb)](_0x5b22d9-_0x177ad7,_0x177ad7,_0x177ad7,Math['PI']*0x3/0x2,0x0,!0x1),_0x148542[_0xe6e48b(0x147)](_0x5b22d9,_0x43f446-_0x2e2941),_0x148542['arc'](_0x5b22d9-_0x2e2941,_0x43f446-_0x2e2941,_0x2e2941,0x0,Math['PI']/0x2,!0x1),_0x148542[_0xe6e48b(0x147)](0x0,_0x43f446),_0x148542['lineTo'](0x0,_0x31f9b8),_0x148542['arc'](_0x31f9b8,_0x31f9b8,_0x31f9b8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x148542[_0xe6e48b(0x1a2)](),_0x3285f6[_0xe6e48b(0x30b)]&&(_0x148542[_0xe6e48b(0x28b)](),_0x148542[_0xe6e48b(0x18b)]=_0x3285f6[_0xe6e48b(0x30b)],_0x3285f6[_0xe6e48b(0x328)]===_0xe6e48b(0x1a0)?_0x148542[_0xe6e48b(0x30b)](_0xe6e48b(0x1a0)):_0x148542[_0xe6e48b(0x30b)](),_0x148542[_0xe6e48b(0x315)]());}class he extends _0x5aa585{constructor(_0xe414c1,_0x146deb){const _0x1d3ef9=_0x565e5e;super(_0xe414c1,_0x146deb),_(this,_0x1d3ef9(0x134)),_(this,_0x1d3ef9(0x216)),(this[_0x1d3ef9(0x134)]=_0x146deb==null?void 0x0:_0x146deb['color'],this[_0x1d3ef9(0x216)]=_0x146deb==null?void 0x0:_0x146deb[_0x1d3ef9(0x216)]);}static[_0x565e5e(0x205)](_0x91b079,_0x265f9d){const _0x33f291=_0x565e5e,{text:_0x198fa1,color:_0x348752}=_0x265f9d;_0x91b079[_0x33f291(0x28b)](),_0x91b079[_0x33f291(0x2dd)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x555039=_0x91b079[_0x33f291(0x2d7)](_0x198fa1)['width'],_0x44f695=Math[_0x33f291(0x269)](_0x555039+0x2*me,Qe);Oi(_0x91b079,{'height':ee,'radius':0x4,'width':_0x44f695,'fill':_0x348752}),_0x91b079['fillStyle']=_0x33f291(0x2f8);const _0x3b16dd=me,_0x4c292c=ee-Ei,_0xa671c6=Qe-0x2*me;if(_0x555039>_0xa671c6){let _0x1c1791='',_0x492e0e=0x0;for(const _0x29b345 of _0x198fa1){const _0x1ca93e=_0x91b079[_0x33f291(0x2d7)](_0x29b345)['width'];if(_0x492e0e+_0x1ca93e<=_0xa671c6-_0x91b079[_0x33f291(0x2d7)](_0x33f291(0x182))[_0x33f291(0x2ae)])_0x1c1791+=_0x29b345,_0x492e0e+=_0x1ca93e;else{_0x1c1791+=_0x33f291(0x182);break;}}_0x91b079['fillText'](_0x1c1791,_0x3b16dd,_0x4c292c);}else _0x91b079[_0x33f291(0x2fb)](_0x198fa1,_0x3b16dd,_0x4c292c);_0x91b079[_0x33f291(0x315)]();}['_draw'](_0x4937f8){const _0x4d6b30=_0x565e5e;he[_0x4d6b30(0x205)](_0x4937f8,this);}}const ge=_0x565e5e(0x2fe),bi=_0x565e5e(0x142),Ti=_0x565e5e(0x16c),X=0x6,Ri=1.5,Ie=0x4,Di=1.5,Ni='rgba(255,\x20255,\x20255,\x200.01)';class qe{constructor(_0x2e5f73,_0xb91be,_0x37d9b5,_0x8cbb89){const _0x1ec39d=_0x565e5e;_(this,_0x1ec39d(0x19f),[]),_(this,_0x1ec39d(0x2b4),null),_(this,_0x1ec39d(0x1a9),null),_(this,_0x1ec39d(0x156),null),_(this,_0x1ec39d(0x246),null),_(this,_0x1ec39d(0x1ae),null),(this['_cursor']=_0x2e5f73,this[_0x1ec39d(0x23e)]=_0xb91be,this['_docSkeleton']=_0x37d9b5,this[_0x1ec39d(0x152)]=_0x8cbb89,this[_0x1ec39d(0x26e)]());}set[_0x565e5e(0x19c)](_0x570b3a){const _0x3c3006=_0x565e5e;_0x570b3a?(this['_anchorDot']&&this[_0x3c3006(0x156)][_0x3c3006(0x208)](),this['_textBubble']&&this[_0x3c3006(0x1a9)][_0x3c3006(0x1ef)]()):(this[_0x3c3006(0x156)]&&this[_0x3c3006(0x156)]['show'](),this[_0x3c3006(0x1a9)]&&this['_textBubble'][_0x3c3006(0x208)]());}[_0x565e5e(0x184)](){const _0x214272=_0x565e5e;for(const _0xe81abd of this[_0x214272(0x19f)])_0xe81abd['dispose']();this['_textBubble']&&this[_0x214272(0x1a9)][_0x214272(0x184)](),this['_anchorDot']&&this[_0x214272(0x156)][_0x214272(0x184)](),this[_0x214272(0x2b4)]&&this[_0x214272(0x2b4)]['dispose'](),this['_eventUnsubscribe']&&this[_0x214272(0x1ae)]();}[_0x565e5e(0x26e)](){const _0x2eee63=_0x565e5e;var _0x2c0d64;const {_docSkeleton:_0x285c49,_document:_0x319dc0}=this,{color:_0x210331,name:_0x686556,ranges:_0x51ccc8}=this[_0x2eee63(0x28c)],_0x17a504=_0x319dc0[_0x2eee63(0x17f)](),{docsLeft:_0x14b77d,docsTop:_0x3e6c6b}=_0x17a504,_0x3e0818=new _0x51a727(_0x17a504,_0x285c49);for(const {startOffset:_0x3c4417,endOffset:_0x50b98e,rangeType:_0x5cfef0,segmentId:_0x5abc7d,segmentPage:_0x137764,collapsed:_0xb43e1,isActive:_0x28d505}of _0x51ccc8){const _0x35c12f=_0x285c49[_0x2eee63(0x131)](_0x3c4417,!0x0,_0x5abc7d,_0x137764);let _0x3f76bf=_0x285c49['findNodePositionByCharIndex'](_0x50b98e,!0x0,_0x5abc7d,_0x137764);if(_0x3f76bf==null&&(_0x3f76bf=_0x285c49[_0x2eee63(0x131)](_0x50b98e-0x1,!0x1,_0x5abc7d,_0x137764)),_0x28d505){const {contentBoxPointGroup:_0x4fcaf2}=_0x3e0818[_0x2eee63(0x2be)](_0x3f76bf,_0x3f76bf);if(_0x4fcaf2['length']===0x0)continue;this[_0x2eee63(0x296)](_0x210331,_0x4fcaf2,_0x14b77d,_0x3e6c6b,_0x686556),this[_0x2eee63(0x1ae)]=this[_0x2eee63(0x145)]();}if(_0x35c12f&&_0x3f76bf){if(_0x5cfef0===_0x38f122[_0x2eee63(0x24a)]){const _0x5d4aa0=new _0x7015a4(_0x17a504,_0x285c49),{pointGroup:_0x2f7ed0}=(_0x2c0d64=_0x5d4aa0[_0x2eee63(0x2be)](_0x35c12f,_0x3f76bf))!=null?_0x2c0d64:{};if(_0x2f7ed0==null||_0x2f7ed0['length']===0x0)continue;this[_0x2eee63(0x270)](_0x210331,_0x2f7ed0,_0x14b77d,_0x3e6c6b);}else{if(!_0xb43e1){const {borderBoxPointGroup:_0x11f915}=_0x3e0818[_0x2eee63(0x2be)](_0x35c12f,_0x3f76bf);if(_0x11f915['length']===0x0)continue;this[_0x2eee63(0x330)](_0x210331,_0x11f915,_0x14b77d,_0x3e6c6b);}}}}}[_0x565e5e(0x296)](_0x548135,_0x4fd919,_0x151900,_0x35657a,_0x1cb5dd){const _0x336f89=_0x565e5e,_0x54fa29=this[_0x336f89(0x155)](_0x4fd919),{left:_0x5a87d7,top:_0x27250f,height:_0x145d4e}=_0x54fa29,_0x4a309d=this[_0x336f89(0x2f5)](),_0x1e24be=Di/_0x4a309d,_0x2452f0=new _0x1f7a70(ge+_0x2650a9['generateRandomId'](X),{'left':_0x5a87d7+_0x151900-_0x1e24be,'top':_0x27250f+_0x35657a,'height':_0x145d4e,'width':Ri,'fill':_0x548135||_0x2c33b6(_0x307855['black'],0x0),'strokeWidth':_0x1e24be,'stroke':Ni,'evented':!0x0});this[_0x336f89(0x2b4)]=_0x2452f0,this[_0x336f89(0x23e)][_0x336f89(0x1a6)](_0x2452f0,_0x3cd669);const _0x33660f=new _0x1f7a70(ge+_0x2650a9[_0x336f89(0x20f)](X),{'left':_0x5a87d7+_0x151900-_0x1e24be,'top':_0x27250f+_0x35657a-Ie/0x2,'height':Ie,'width':Ie,'fill':_0x548135||_0x2c33b6(_0x307855[_0x336f89(0x300)],0x0),'strokeWidth':0x0,'stroke':_0x548135||_0x2c33b6(_0x307855[_0x336f89(0x300)],0x0),'evented':!0x1});this[_0x336f89(0x156)]=_0x33660f,this[_0x336f89(0x23e)][_0x336f89(0x1a6)](_0x33660f,_0x3cd669);const _0xa2fa60=new he(ge+_0x2650a9[_0x336f89(0x20f)](X),{'left':_0x5a87d7+_0x151900-_0x1e24be,'top':_0x27250f+_0x35657a-ee,'text':_0x1cb5dd,'color':_0x548135});this[_0x336f89(0x1a9)]=_0xa2fa60,this[_0x336f89(0x23e)][_0x336f89(0x1a6)](_0xa2fa60,_0x3cd669),this[_0x336f89(0x19c)]=!0x1;}['_handleHover'](){const _0x284105=_0x565e5e,_0x5a5aca=this[_0x284105(0x2b4)][_0x284105(0x301)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0xf9510e=this[_0x284105(0x2b4)][_0x284105(0x220)]['subscribeEvent'](()=>{const _0x570c11=_0x284105;this[_0x570c11(0x246)]&&clearTimeout(this[_0x570c11(0x246)]),this[_0x570c11(0x246)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4dfee6=_0x284105;_0x5a5aca[_0x4dfee6(0x20a)](),_0xf9510e['unsubscribe']();};}[_0x565e5e(0x330)](_0x324ead,_0x1717ce,_0x20c943,_0x38b07f){const _0x41bdd7=_0x565e5e,_0x1bd0f5=new _0x4733be(_0x324ead)[_0x41bdd7(0x32b)](0.2)[_0x41bdd7(0x1ff)](),_0x2f79fe=new _0x3fb629(bi+_0x2650a9['generateRandomId'](X),{'pointsGroup':_0x1717ce,'fill':_0x1bd0f5||_0x2c33b6(_0x307855[_0x41bdd7(0x300)],0.2),'left':_0x20c943,'top':_0x38b07f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x41bdd7(0x19f)][_0x41bdd7(0x28a)](_0x2f79fe),this[_0x41bdd7(0x23e)][_0x41bdd7(0x1a6)](_0x2f79fe,_0x3cd669);}[_0x565e5e(0x270)](_0x5de273,_0x586938,_0x5463cf,_0x4880c7){const _0x63988e=_0x565e5e,_0x5127f6=new _0x4733be(_0x5de273)[_0x63988e(0x32b)](0.2)['toRgbString'](),_0x4f2434=new _0x3fb629(Ti+_0x2650a9['generateRandomId'](X),{'pointsGroup':_0x586938,'fill':_0x5127f6||_0x2c33b6(_0x307855[_0x63988e(0x300)],0.2),'left':_0x5463cf,'top':_0x4880c7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x63988e(0x19f)][_0x63988e(0x28a)](_0x4f2434),this['_scene'][_0x63988e(0x1a6)](_0x4f2434,_0x3cd669);}['_getAnchorBounding'](_0x14868d){const _0x2594d5=_0x14868d[0x0],_0x21f018=_0x2594d5[0x0],_0x3b99ff=_0x2594d5[0x2],{x:_0x571b8d,y:_0x28b971}=_0x21f018,{x:_0x4aac1d,y:_0x454ad4}=_0x3b99ff;return{'left':_0x571b8d,'top':_0x28b971,'width':_0x4aac1d-_0x571b8d,'height':_0x454ad4-_0x28b971};}[_0x565e5e(0x2f5)](){const _0x1e8d3a=_0x565e5e,{scaleX:_0x1ac8ff,scaleY:_0x527184}=this[_0x1e8d3a(0x23e)][_0x1e8d3a(0x24e)]();return Math[_0x1e8d3a(0x212)](_0x1ac8ff,_0x527184);}}var Ui=Object[_0x565e5e(0x1b6)],Mi=(_0x63f12,_0x17fe3c,_0x262d34,_0x4ebef0)=>{for(var _0x1efe9e=_0x4ebef0>0x1?void 0x0:_0x4ebef0?Ui(_0x17fe3c,_0x262d34):_0x17fe3c,_0x4502d2=_0x63f12['length']-0x1,_0x19b891;_0x4502d2>=0x0;_0x4502d2--)(_0x19b891=_0x63f12[_0x4502d2])&&(_0x1efe9e=_0x19b891(_0x1efe9e)||_0x1efe9e);return _0x1efe9e;},Z=(_0x38e265,_0x489aaa)=>(_0x592340,_0x58039f)=>_0x489aaa(_0x592340,_0x58039f,_0x38e265);let Pe=class extends _0x4eca7e{constructor(_0x1609a1,_0xbf3234,_0x2ab788,_0x38c9d5,_0x5eaa87){const _0x4e3e34=_0x565e5e;super(),_(this,'_cursorShapes',[]),_(this,_0x4e3e34(0x2b3),[]),(this['_context']=_0x1609a1,this['_docSkeletonManagerService']=_0xbf3234,this[_0x4e3e34(0x2a8)]=_0x2ab788,this[_0x4e3e34(0x1a4)]=_0x38c9d5,this[_0x4e3e34(0x217)]=_0x5eaa87,this[_0x4e3e34(0x186)]());}[_0x565e5e(0x186)](){const _0x1958de=_0x565e5e,_0x2f301f=this[_0x1958de(0x23c)][_0x1958de(0x1fe)],_0x340a23=this[_0x1958de(0x20b)];this[_0x1958de(0x2b8)](_0x3ca33b([this[_0x1958de(0x2a8)][_0x1958de(0x198)](_0x2f301f),this[_0x1958de(0x217)][_0x1958de(0x1e7)]])[_0x1958de(0x252)](_0x9b2036(([_0x3de0c8,_0x20792b])=>({'skeleton':_0x340a23['getSkeleton'](),'cursors':[..._0x3de0c8[_0x1958de(0x2ea)]()][_0x1958de(0x257)](_0xc31940=>({..._0xc31940,'color':this['_themeService'][_0x1958de(0x18f)](_0xc31940[_0x1958de(0x134)])}))})))[_0x1958de(0x1bd)](_0x28f142=>{const _0x44d7ad=_0x1958de;if(this['_removeCollabCursors'](),_0x28f142){const {skeleton:_0x51714d,cursors:_0x4f874b}=_0x28f142;this[_0x44d7ad(0x29e)](_0x51714d,_0x4f874b);}})),this[_0x1958de(0x1f1)](),this[_0x1958de(0x160)]();}[_0x565e5e(0x29e)](_0x507c03,_0x32e489){const _0x2a096a=_0x565e5e,{scene:_0xaab6a,mainComponent:_0x2d2351}=this['_context'],_0x2eb501=_0x32e489[_0x2a096a(0x277)](_0x5a2f7b=>new qe(_0x5a2f7b,_0xaab6a,_0x507c03,_0x2d2351));this[_0x2a096a(0x1a7)]=_0x2eb501,this[_0x2a096a(0x2b3)]=_0x32e489;}[_0x565e5e(0x234)](){const _0x21e10a=_0x565e5e;this[_0x21e10a(0x25a)]();const {scene:_0x35e377,mainComponent:_0x41a0ed}=this['_context'],_0x300a04=this[_0x21e10a(0x20b)][_0x21e10a(0x2c0)](),_0x4ccb25=this[_0x21e10a(0x2b3)][_0x21e10a(0x277)](_0x241386=>new qe(_0x241386,_0x35e377,_0x300a04,_0x41a0ed));this[_0x21e10a(0x1a7)]=_0x4ccb25;}[_0x565e5e(0x25a)](){const _0x5b5305=_0x565e5e;this[_0x5b5305(0x1a7)][_0x5b5305(0x322)](_0xb0d024=>_0xb0d024[_0x5b5305(0x184)]()),this[_0x5b5305(0x1a7)]=[];}[_0x565e5e(0x160)](){const _0x59c94c=_0x565e5e,_0x5188b0=[_0x1e55ab['id']];this[_0x59c94c(0x2b8)](this[_0x59c94c(0x1a4)][_0x59c94c(0x197)](_0x5e566a=>{const _0x2a0c70=_0x59c94c;_0x5188b0[_0x2a0c70(0x203)](_0x5e566a['id'])&&_0x5e566a[_0x2a0c70(0x1a5)][_0x2a0c70(0x1fe)]===this['_context'][_0x2a0c70(0x1fe)]&&this[_0x2a0c70(0x234)]();}));}['_initResize'](){const _0x3f6660=_0x565e5e;this[_0x3f6660(0x2b8)](_0x1ed6bf(this[_0x3f6660(0x23c)][_0x3f6660(0x235)][_0x3f6660(0x25c)])[_0x3f6660(0x252)](_0xb4a83(_0x4035df=>_0x4035df[_0x3f6660(0x1ee)]===_0x1c2080[_0x3f6660(0x22c)]),_0xec2be3(0x10))['subscribe'](()=>{const _0x4f8de3=_0x3f6660;this[_0x4f8de3(0x234)]();}));}};Pe=Mi([Z(0x1,_0x55c0ac(_0xe6adb2)),Z(0x2,_0x55c0ac(H)),Z(0x3,_0x347b5a),Z(0x4,_0x55c0ac(_0x5c349a))],Pe);const Pi=0x1,Li=1.5;class wi extends _0x5aa585{constructor(_0x398ae7,_0x586b87){const _0x4f7fa7=_0x565e5e;super(_0x398ae7,_0x586b87),_(this,_0x4f7fa7(0x1c5)),_(this,_0x4f7fa7(0x266),!0x1),_(this,_0x4f7fa7(0x1c6)),_(this,_0x4f7fa7(0x227),''),_(this,'_labelPosition',_0x4f7fa7(0x2c7)),_(this,_0x4f7fa7(0x230)),(_0x586b87&&this[_0x4f7fa7(0x215)](_0x586b87),this[_0x4f7fa7(0x301)]['subscribeEvent'](()=>this[_0x4f7fa7(0x215)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4f7fa7(0x1fc)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x565e5e(0x215)](_0x16f9a7){const _0x80d246=_0x565e5e;var _0x366291,_0x1baae1,_0x1231d6,_0x14f273,_0x5049bb,_0x36920f;this[_0x80d246(0x1c5)]=(_0x366291=_0x16f9a7[_0x80d246(0x134)])!=null?_0x366291:this['_color'],this[_0x80d246(0x266)]=(_0x1baae1=_0x16f9a7[_0x80d246(0x1a1)])!=null?_0x1baae1:this['_hovered'],this[_0x80d246(0x1c6)]=(_0x1231d6=_0x16f9a7[_0x80d246(0x316)])!=null?_0x1231d6:this['_range'],this['_name']=(_0x14f273=_0x16f9a7[_0x80d246(0x303)])!=null?_0x14f273:this[_0x80d246(0x227)],this['_labelPosition']=(_0x5049bb=_0x16f9a7[_0x80d246(0x29b)])!=null?_0x5049bb:this[_0x80d246(0x25f)],this[_0x80d246(0x230)]=(_0x36920f=_0x16f9a7[_0x80d246(0x25b)])!=null?_0x36920f:this[_0x80d246(0x230)],this['transformByState']({'width':_0x16f9a7[_0x80d246(0x2ae)],'height':_0x16f9a7[_0x80d246(0x1e4)]});}[_0x565e5e(0x26c)](_0x2603e6){const _0x436051=_0x565e5e,{row:_0x526b82,column:_0x13dfe7}=_0x2603e6;if(_0x526b82>=this[_0x436051(0x1c6)][_0x436051(0x163)]&&_0x526b82<=this[_0x436051(0x1c6)]['endRow']&&_0x13dfe7>=this[_0x436051(0x1c6)][_0x436051(0x253)]&&_0x13dfe7<=this[_0x436051(0x1c6)][_0x436051(0x2e4)]){this[_0x436051(0x215)]({'hovered':!0x0});return;}this[_0x436051(0x215)]({'hovered':!0x1});}[_0x565e5e(0x2ab)](_0x3e1ac3){return!0x1;}[_0x565e5e(0x2b0)](_0x225e3d){const _0x1e7316=_0x565e5e;_0x1f7a70[_0x1e7316(0x205)](_0x225e3d,{'width':this[_0x1e7316(0x2ae)],'height':this[_0x1e7316(0x1e4)],'strokeWidth':Li,'stroke':this[_0x1e7316(0x1c5)],'evented':!0x1,'fill':this[_0x1e7316(0x230)]}),this[_0x1e7316(0x266)]&&(_0x225e3d[_0x1e7316(0x28b)](),_0x225e3d[_0x1e7316(0x1e1)](0x1,0x0,0x0,0x1,this[_0x1e7316(0x2ae)],this[_0x1e7316(0x25f)]===_0x1e7316(0x262)?0x0:-0x14),he['drawWith'](_0x225e3d,{'text':this[_0x1e7316(0x227)],'color':this[_0x1e7316(0x1c5)]}),_0x225e3d[_0x1e7316(0x315)]());}}var Ai=Object['getOwnPropertyDescriptor'],yi=(_0x432ed3,_0x258a0d,_0x26bf0a,_0x4ab916)=>{for(var _0x1636b9=_0x4ab916>0x1?void 0x0:_0x4ab916?Ai(_0x258a0d,_0x26bf0a):_0x258a0d,_0x59b3aa=_0x432ed3['length']-0x1,_0x39a4b2;_0x59b3aa>=0x0;_0x59b3aa--)(_0x39a4b2=_0x432ed3[_0x59b3aa])&&(_0x1636b9=_0x39a4b2(_0x1636b9)||_0x1636b9);return _0x1636b9;},ve=(_0x582fe9,_0x3a1ed1)=>(_0x197a39,_0x1da9f4)=>_0x3a1ed1(_0x197a39,_0x1da9f4,_0x582fe9);const $i=0x1389;let Le=class extends _0x4eca7e{constructor(_0x5295ee,_0x21a224,_0x42dc55,_0x16ae50){const _0x4f6562=_0x565e5e;super(),_(this,'_cursors',new Set()),_(this,_0x4f6562(0x14b),null),(this['_context']=_0x5295ee,this[_0x4f6562(0x251)]=_0x21a224,this['_collabCursorController']=_0x42dc55,this[_0x4f6562(0x217)]=_0x16ae50,this['_init']());}[_0x565e5e(0x186)](){const _0x21d191=_0x565e5e;this[_0x21d191(0x251)][_0x21d191(0x2c2)][_0x21d191(0x252)](_0x31dbb5(this[_0x21d191(0x1da)]),_0x3d6ece(_0x47789a=>{const _0x551087=_0x21d191;if(_0x47789a){const _0x4680cd=_0x47789a[_0x551087(0x32d)];return _0x3ca33b(this[_0x551087(0x2a8)]['getCollabCursors$'](this[_0x551087(0x23c)][_0x551087(0x1fe)]),this[_0x551087(0x217)]['currentTheme$'])[_0x551087(0x252)](_0x9b2036(([_0x354459,_0x1284fb])=>{const _0x1679fd=new Map();return _0x354459['forEach']((_0x4cf737,_0x4750d7)=>{const _0x3a0bae=_0x54e2;if(_0x4cf737[_0x3a0bae(0x139)]===_0x4680cd){const _0x5aeaea={..._0x4cf737};_0x5aeaea[_0x3a0bae(0x134)]=this['_themeService'][_0x3a0bae(0x18f)](_0x4cf737['color']),_0x1679fd[_0x3a0bae(0x2ed)](_0x4750d7,_0x5aeaea);}}),{'skeleton':_0x47789a,'cursors':_0x1679fd};}));}return _0x550d99({'skeleton':null,'cursors':new Map()});}))[_0x21d191(0x1bd)](({skeleton:_0x54b4ea,cursors:_0x2a8e1b})=>{const _0x3f60cb=_0x21d191;this[_0x3f60cb(0x25a)](),_0x54b4ea&&this['_updateCollabCursors'](_0x54b4ea,_0x2a8e1b);}),this[_0x21d191(0x251)][_0x21d191(0x2c2)][_0x21d191(0x1bd)](_0x124a50=>{const _0x328db3=_0x21d191;if(_0x124a50==null)return;const {skeleton:_0x2452cf}=_0x124a50,{scene:_0x193ecf}=this[_0x328db3(0x23c)];_0x193ecf[_0x328db3(0x325)][_0x328db3(0x1fc)](_0x178a01(_0x1fc74d=>{const _0x590f1a=_0x328db3;var _0x2153e4,_0x36dc42;const {offsetX:_0x1ea5f0,offsetY:_0x38da95}=_0x1fc74d,{x:_0x2c6b06,y:_0x57a2ae}=_0x193ecf[_0x590f1a(0x31f)](_0x30304a[_0x590f1a(0x178)]([_0x1ea5f0,_0x38da95])),{scaleX:_0xe4643,scaleY:_0x914e2a}=_0x193ecf['getAncestorScale'](),_0x3fee5e=_0x193ecf['getViewport'](_0xf57eeb['VIEW_MAIN']),_0x47abd7=_0x193ecf[_0x590f1a(0x273)](_0x30304a[_0x590f1a(0x178)]([_0x2c6b06,_0x57a2ae]),_0x3fee5e),_0x3224c4=_0x2452cf[_0x590f1a(0x2e3)](_0x1ea5f0,_0x38da95,_0xe4643,_0x914e2a,_0x47abd7);((_0x2153e4=this['_lastPointer'])==null?void 0x0:_0x2153e4[_0x590f1a(0x13f)])===_0x3224c4[_0x590f1a(0x13f)]&&((_0x36dc42=this[_0x590f1a(0x14b)])==null?void 0x0:_0x36dc42[_0x590f1a(0x20c)])===_0x3224c4[_0x590f1a(0x20c)]||this['_cursors'][_0x590f1a(0x322)](_0x1cc82b=>{const _0xd41e70=_0x590f1a;_0x1cc82b[_0xd41e70(0x26c)](_0x3224c4);});},0x64));});}[_0x565e5e(0x29e)](_0xe54b99,_0x117a02){const _0x36b897=_0x565e5e;var _0x2fc5fa;const _0x76344c=(_0x2fc5fa=this['_sheetSkeletonManagerService'][_0x36b897(0x192)]())==null?void 0x0:_0x2fc5fa[_0x36b897(0x191)];if(!_0x76344c)return;const _0x2202c6=this[_0x36b897(0x2fc)]();if(!_0x2202c6)return;this[_0x36b897(0x2b3)][_0x36b897(0x322)](_0x439bd7=>{_0x439bd7['makeDirty']();});const {scene:_0x9c7bbb}=_0x2202c6,_0x596cd5=xi(Array[_0x36b897(0x22f)](_0x117a02[_0x36b897(0x2ea)]()))[_0x36b897(0x277)](_0x3b7612=>{const _0x528536=_0x36b897,{color:_0x3ad71f,range:_0x23a870,name:_0x214890,selection:_0x2e3292,sheetID:_0x5ad388}=_0x3b7612,{startColumn:_0x2b8d1a,startRow:_0x21e9bf,endColumn:_0x4ad612,endRow:_0x3cda4e}=_0x23a870,_0x301712=_0x4f0cdf(_0x21e9bf,_0x2b8d1a,_0x9c7bbb,_0x76344c),_0x32383c=_0x4f0cdf(_0x3cda4e,_0x4ad612,_0x9c7bbb,_0x76344c),{columnHeaderHeightAndMarginTop:_0x3458d1}=_0x76344c,{startX:_0x15511f,startY:_0x593549}=_0x301712,{endX:_0x35d469,endY:_0x2e8e01}=_0x32383c,_0x1dcead=_0x35d469-_0x15511f,_0x8c2b47=_0x2e8e01-_0x593549,_0x2cb4ea={'labelPosition':_0x593549-_0x3458d1>=ee?'top':_0x528536(0x262),'sheetID':_0x5ad388,'range':_0x23a870,'color':_0x3ad71f,'name':_0x214890,'selection':_0x2e3292,'left':_0x15511f,'top':_0x593549,'width':_0x1dcead,'height':_0x8c2b47,'evented':!0x1,'zIndex':$i};return new wi(_0x214890,_0x2cb4ea);});_0x9c7bbb[_0x36b897(0x254)](_0x596cd5,Pi),this[_0x36b897(0x2b3)]=new Set(_0x596cd5);}[_0x565e5e(0x25a)](){const _0x20dad6=_0x565e5e;var _0x23bcb7;(_0x23bcb7=this[_0x20dad6(0x2b3)])==null||_0x23bcb7[_0x20dad6(0x322)](_0x36eeca=>_0x36eeca[_0x20dad6(0x184)]());}['_getSheetObject'](){const _0x3b59e9=_0x565e5e;return _0x1738df(this[_0x3b59e9(0x23c)][_0x3b59e9(0x31b)],this['_context']);}};Le=yi([ve(0x1,_0x55c0ac(_0xc2148e)),ve(0x2,_0x55c0ac(H)),ve(0x3,_0x55c0ac(_0x5c349a))],Le);function _0x54e2(_0x3d8c4a,_0x3007b6){const _0x1c2a32=_0x1c2a();return _0x54e2=function(_0x54e2b8,_0x5f0414){_0x54e2b8=_0x54e2b8-0x120;let _0x228ce3=_0x1c2a32[_0x54e2b8];return _0x228ce3;},_0x54e2(_0x3d8c4a,_0x3007b6);}function xi(_0x49bcda){const _0x414e72=_0x565e5e,_0x3b3071=new Map();return _0x49bcda[_0x414e72(0x322)](_0x20afce=>{const _0x993785=_0x414e72;if(_0x3b3071[_0x993785(0x181)](_0x20afce['selection'])){const _0x5a486f=_0x3b3071[_0x993785(0x1b4)](_0x20afce[_0x993785(0x2f1)]);_0x5a486f[_0x993785(0x303)]+=',\x20'+_0x20afce['name'];}else _0x3b3071[_0x993785(0x2ed)](_0x20afce[_0x993785(0x2f1)],_0x20afce);}),Array[_0x414e72(0x22f)](_0x3b3071[_0x414e72(0x2ea)]());}var v=function(){const _0x134aa6=_0x565e5e;return v=Object[_0x134aa6(0x1c3)]||function(_0x4169bd){const _0x2e32c4=_0x134aa6;for(var _0x3bcf8d,_0x16bb74=0x1,_0x486faa=arguments['length'];_0x16bb74<_0x486faa;_0x16bb74++){_0x3bcf8d=arguments[_0x16bb74];for(var _0x343895 in _0x3bcf8d)Object['prototype']['hasOwnProperty'][_0x2e32c4(0x22e)](_0x3bcf8d,_0x343895)&&(_0x4169bd[_0x343895]=_0x3bcf8d[_0x343895]);}return _0x4169bd;},v[_0x134aa6(0x1b8)](this,arguments);},Bi=function(_0x2987f8,_0x50db52){const _0x342fbd=_0x565e5e;var _0x49fcfa={};for(var _0x1f7100 in _0x2987f8)Object[_0x342fbd(0x22a)]['hasOwnProperty'][_0x342fbd(0x22e)](_0x2987f8,_0x1f7100)&&_0x50db52['indexOf'](_0x1f7100)<0x0&&(_0x49fcfa[_0x1f7100]=_0x2987f8[_0x1f7100]);if(_0x2987f8!=null&&typeof Object[_0x342fbd(0x202)]==_0x342fbd(0x2aa)){for(var _0x5d016b=0x0,_0x1f7100=Object[_0x342fbd(0x202)](_0x2987f8);_0x5d016b<_0x1f7100[_0x342fbd(0x172)];_0x5d016b++)_0x50db52[_0x342fbd(0x2f9)](_0x1f7100[_0x5d016b])<0x0&&Object[_0x342fbd(0x22a)][_0x342fbd(0x21e)][_0x342fbd(0x22e)](_0x2987f8,_0x1f7100[_0x5d016b])&&(_0x49fcfa[_0x1f7100[_0x5d016b]]=_0x2987f8[_0x1f7100[_0x5d016b]]);}return _0x49fcfa;},je=_0xfeee87(function(_0x5b79e9,_0x4c1349){const _0x42a8ec=_0x565e5e;var _0xf7fa5=_0x5b79e9[_0x42a8ec(0x326)],_0x226724=_0x5b79e9['id'],_0x120d18=_0x5b79e9[_0x42a8ec(0x1cf)],_0x3cad6b=_0x5b79e9['extend'],_0x3c2106=Bi(_0x5b79e9,[_0x42a8ec(0x326),'id',_0x42a8ec(0x1cf),_0x42a8ec(0x32c)]),_0x2200e6=_0x42a8ec(0x1cb)[_0x42a8ec(0x1fa)](_0x226724,'\x20')[_0x42a8ec(0x1fa)](_0x120d18||'')[_0x42a8ec(0x2c8)](),_0x37a47c=_0x40cc3a('_'[_0x42a8ec(0x1fa)](ji()));return Rt(_0xf7fa5,''[_0x42a8ec(0x1fa)](_0x226724),{'defIds':_0xf7fa5[_0x42a8ec(0x2f7)],'idSuffix':_0x37a47c[_0x42a8ec(0x2bd)]},v({'ref':_0x4c1349,'className':_0x2200e6},_0x3c2106),_0x3cad6b);});function _0x1c2a(){const _0x3acf63=['backgroundColor','onTransformChange$','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','getValue','_labelPosition','_collaborationController','231AfbYbk','bottom','collabStatus.offline','_syncEditingCollabCursorService','RemoveRowCommandId','_hovered','getSheetId','_initStatusComponent','min','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getMemberID','onMouseMove','blue.400','_render','send','_drawRectRange','collabStatus.fetchMiss','_renderManagerService','getVpScrollXYInfoByPosToVp','_colorAssignService','off-line-single','defs','map','collabStatus.notCollab','div','isActive','_handleEvent','replaceState','ranges','_localCacheService','round','getCurrentUnitForType','symbol','1994706OhRWBs','jiqing.500','none','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','source','loadOfflineData','NO_OTHER_CLIENTS_EDITING','url(#on-line-single_clip0_910_349)','push','save','_cursor','CLOSE_ROOM','delete','APPLY_NON_SEQUENTIAL_REVISION','idSuffix','unload','substring','_updateURLWithCurrentState','parse','_config','_drawAnchor','_entityInit$','transformStateCache','activeSheet$','transformRemoteChangeset','labelPosition','_injector','xlink:href','_updateCollabCursors','deepClone','_heartbeatTimer','Error','getMember','PY_RUNTIME_SCRIPT_ERROR','LICENSE_EXPORT_SIZE_EXCEEDED','sessionStatus$','runId','getMergeData','_collabCursorController','_onCursorDelete','function','triggerDblclick','post','ALREADY_EXISTS','width','CHANGESET_REVISION_CONFILICT','_draw','setConfig','status$','_cursors','_anchor','setActiveRange','moveTo','transformMutationsWithChangeset','disposeWithMe','PENDING','INVITE_CODE_REQUIRED','arc','beginPath','current','getRangePointData','JOIN_ROOM_FAILED','getSkeleton','INVALID_ARGUMENT','currentSkeleton$','url(#$1','registerRenderModule','EMAIL_HAS_BEEN_BOUND','subUnitId','top','trim','APPLY_REJECT','_cursorInfo$','_initDependencies','_id','LICENSE_MAX_UNITS_EXCEEDED','UNAUTHENTICATED','_dataLoaderService','displayName','#fff','defineProperty','_logService','WECHAT_HAS_BEEN_BOUND','_session','ACTIVE_UNIT_EVENT_CHANNEL','measureText','OTHER_CLIENTS_EDITING','429698yBstDk','Warning','yellow.400','getCollabEntity$','font','_clearOtherTimers','m2Prime','_univerInstanceService','UPDATE_CURSOR','1617609nQgpCP','getCellPositionByOffset','endColumn','_initStatusListener','_scheduleSaving','FETCH_MISS','_docStateChangeManagerService','entityInit$','values','getConfig','add','set','cursorInfo','_unitStatus','OFFLINE','selection','3CnSGdI','InsertRangeMoveDownCommandId','DeleteRangeMoveUpCommandId','_getScale','PERMISSION_DENIED','defIds','#FFF','indexOf','_onCursorUpdate','fillText','_getSheetObject','OTHER_CLIENT_EDITING','collab-text-anchor-','INVITE_CODE_HAS_BEEN_UES','black','onPointerEnter$','runOnServer','name','_localStorageService','use','1969232qbgiaK','saveTaskMap','YUUMI_SUBSCRIPTION_NOT_FOUND','textRanges','_revisionService','fill','setTimeout','permission.content','_status$','_transformUndoRedoStack','onStarting','stringify','_registerDependencies','_saveTaskMap','_colorIndex','restore','range','_createSocketURL','411220jLknBU','getActiveSheet','disableLocalCache','unit','event$','M0\x200H16V16H0z','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getRelativeToViewportCoord','red.300','_doCreateSocket','forEach','_toggleOnline','APPLY_PERMISSION_DENIED','onPointerMove$','icon','size','fillRule','entries','transformIMECache','setAlpha','extend','sheetId','executionId','_refRangeService','_drawTextRange','_scheduleClearOtherTimer','USERS_LEAVE','on-line-single_clip0_910_349','override','10pPwaSh','_unitOnClients','CONFLICT','off-line-single_clip0_910_343','14rsOeUh','addClipboardHook','INVITE_CODE_ALREADY_BOUND','currentColor','session.connection-failed','colorChannel1','_transformService','enableLocalCache','getDocRanges','imageSourceType','findNodePositionByCharIndex','_imageIoService','docStateChange$','color','clearTimeout','_memberService','history','YUUMI_TABLE_NOT_FOUND_IN_UNIT','sheetID','contains','SYNCED','APPLY_DUPLICATED','body','YUUMI_NO_CUBOID_FOR_QUESTION','column','_docClipboardService','APPLY_REVISION_CONFILICT','collab-text-range-','221214OnEbhc','getParam','_handleHover','_initEntityListener','lineTo','collabCursorState$','invokeId','_docTransformSelectionsService','_lastPointer','roomMembers','_configService','permission.title','updateOfflineData','clipPath','collaboration-client.offline-data-not-saved','_document','COMPLETION_FINISHED','1em','_getAnchorBounding','_anchorDot','UNDEFINED','roomMembers$','redoState','collaboration.single-unit.warning','_updateSubUnitFromURLParams','getUnhiddenWorksheets','startsWith','univer-flex\x20univer-items-center','_transformPreviousActiveRange','_initCommandExecutedListener','0\x200\x2016\x2016','UNIVER_DOC','startRow','addEventListener','m1Prime','error','_docSyncEditingCollabCursorService','assignAColorForMemberID','YUUMI_RATE_OVER_LIMIT','_handleLeaveEvent','undoState','collab-rect-range-','path','InsertColCommandId','MOBILE_HAS_BEEN_BOUND','_updateLocalCursor','_startDocCollabCursor','length','requireSession','_setupBeforeClosingHandler','SNAPSHOT_HAS_BEEN_REMOVED','asObservable','INVALID_INVITE_CODE','FromArray','_roomMembers$','unshift','_docTransformStateCacheService','children','_localeService','isArray','getOffsetConfig','onRendered','has','...','/run/','dispose','data','_init','collaboration.closeRoom','_send','purple.300','TEXT','fillStyle','LICENSE_IMPORT_SIZE_EXCEEDED','_removeClearOtherTimer','_collaborationUIEventService','getColorFromTheme','createSocket','skeleton','getCurrent','mask','_getSessionTicket','_registerRenderDependencies','_startSheetCollabCursor','onCommandExecuted','getCollabCursors$','saveOfflineData','collabStatus.syncing','registerBeforeClose','_hover','NOT_FOUND','_uiPartsService','_shapes','evenodd','hovered','closePath','translate(.97)','_commandService','params','addObject','_cursorShapes','_saveCache','_textBubble','memberID','_instanceService','_docTransformIMECacheService','YUUMI_ASYNCIO_CANCELLED','_eventUnsubscribe','_collabCursorState$','_cachedData','LICENSE_DISTRO_REJECTED','registerComponent','addHandlerCallback','get','init','getOwnPropertyDescriptor','_online','apply','next','UNIVER_SHEET','SNAPSHOT_INVALID_SNAPSHOT','key','subscribe','pushState','_assignedColors','executeCommand','origin','_handleJoinEvent','assign','result','_color','_range','RemoveColCommandId','_toggleOffline','reconnect','[CollaborationDataLoaderController]','univerjs-icon\x20univerjs-icon-','UNRECOGNIZED','479972jPZaEa','editingUnit','className','collabStatus.conflict','YUUMI_ALL_TABLES_IS_INVALID','setParam','_urlService','_getSaveTimeout','SOCKET_FAILED_RETRY','getFocusedUnit','_scheduleHeartbeat','getUnitId','univer-flex\x20univer-mr-2\x20univer-text-xl','dispose$','mutations','setItem','_setupSubUnitSync','setStateCache','_getMergeRange','AWAITING_WITH_PENDING','transform','SUBMIT_CHANGESET_TIMEOUT','some','height','getSheetBySheetId','Unknown\x20user','currentTheme$','actions','MUTATION','searchParams','_transformHistoryAndStateStack','ENSURE_SNAPSHOT_EXECUTION','subunit','type','show','split','_initResize','getRenderById','location','TOO_MANY_REQUESTS','_onRefRangeChange','urlChange$','NOT_COLLAB','eventID','INTERNAL_ERROR','concat','CONNECTOR_DATA_TOO_LARGE','subscribeEvent','unitID','unitId','toRgbString','transformSelections','with','getOwnPropertySymbols','includes','_selfUnitIDs','drawWith','href','registerRefRange','hide','replace','unsubscribe','_docSkeletonManagerService','row','YUUMI_URL_COL_OUT_OF_RANGE','_notificationService','generateRandomId','isEditing','svg','max','AWAITING','OnLineSingle','setShapeProps','text','_themeService','clearInterval','tag','doc.mutation.rich-text-editing','popstate','OffLineSingle','toString','propertyIsEnumerable','DeleteRangeMoveLeftCommandId','onPointerLeave$','newValue','getUnitStatus$','ONLINE','InsertRowCommandId','ticket','complete','_name','createInstance','getStateCache','prototype','_messageService','resize','getTypeOfUnitAdded$','call','from','_backgroundColor','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','pluginName','selections','_refreshCollabCursors','engine','Failed','_handleHeartbeatEvent','debug','_disabled','getTypeOfUnitDisposed$','attrs','_context','disposeUnit','_scene','getActiveRange','_httpService','search','getCurrentRevOfUnit','_beforeCloseService','YUUMI_UNABLE_LOAD_URL','application/json','_hideTimer','_collabSessionService','MoveRangeCommandId','string','RECT','transformMutation','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','then','getAncestorScale','setInterval','saveImage','_sheetSkeletonManagerService','pipe','startColumn','addObjects','cursorInfo$','_ensureSubject','flatMap','_entities','green.600','_removeCollabCursors'];_0x1c2a=function(){return _0x3acf63;};return _0x1c2a();}function Rt(_0x52be17,_0x5323c3,_0x4db0d0,_0x19ec86,_0x79ea95){const _0x4d03fb=_0x565e5e;return _0x4d0a0d(_0x52be17[_0x4d03fb(0x219)],v(v({'key':_0x5323c3},ki(_0x52be17,_0x4db0d0,_0x79ea95)),_0x19ec86),(Hi(_0x52be17,_0x4db0d0)[_0x4d03fb(0x17c)]||[])[_0x4d03fb(0x277)](function(_0x10f00b,_0x2d6e46){const _0x348af1=_0x4d03fb;return Rt(_0x10f00b,''[_0x348af1(0x1fa)](_0x5323c3,'-')[_0x348af1(0x1fa)](_0x52be17[_0x348af1(0x219)],'-')[_0x348af1(0x1fa)](_0x2d6e46),_0x4db0d0,void 0x0,_0x79ea95);}));}function ki(_0x5758f1,_0x863c76,_0x6bfb85){const _0x4b0fd4=_0x565e5e;var _0xb248c7=v({},_0x5758f1[_0x4b0fd4(0x23b)]);_0x6bfb85!=null&&_0x6bfb85[_0x4b0fd4(0x12c)]&&_0xb248c7['fill']===_0x4b0fd4(0x12c)&&(_0xb248c7['fill']=_0x6bfb85['colorChannel1']),_0x5758f1[_0x4b0fd4(0x219)]===_0x4b0fd4(0x193)&&_0xb248c7['id']&&(_0xb248c7['id']=_0xb248c7['id']+_0x863c76[_0x4b0fd4(0x290)]),Object[_0x4b0fd4(0x329)](_0xb248c7)[_0x4b0fd4(0x322)](function(_0x2c9cb2){const _0x3fb933=_0x4b0fd4;var _0x3d4f98=_0x2c9cb2[0x0],_0x5dc6e8=_0x2c9cb2[0x1];_0x3d4f98===_0x3fb933(0x193)&&typeof _0x5dc6e8==_0x3fb933(0x249)&&(_0xb248c7[_0x3d4f98]=_0x5dc6e8['replace'](/url\(#(.*)\)/,_0x3fb933(0x2c3)[_0x3fb933(0x1fa)](_0x863c76[_0x3fb933(0x290)],')')));});var _0x33818d=_0x863c76[_0x4b0fd4(0x2f7)];return!_0x33818d||_0x33818d[_0x4b0fd4(0x172)]===0x0||(_0x5758f1[_0x4b0fd4(0x219)]===_0x4b0fd4(0x305)&&_0xb248c7[_0x4b0fd4(0x29d)]&&(_0xb248c7[_0x4b0fd4(0x29d)]=_0xb248c7['xlink:href']+_0x863c76['idSuffix']),Object['entries'](_0xb248c7)[_0x4b0fd4(0x322)](function(_0xe3e7e7){const _0x59201c=_0x4b0fd4;var _0x3f2df3=_0xe3e7e7[0x0],_0x2c8e28=_0xe3e7e7[0x1];typeof _0x2c8e28=='string'&&(_0xb248c7[_0x3f2df3]=_0x2c8e28[_0x59201c(0x209)](/url\(#(.*)\)/,_0x59201c(0x2c3)['concat'](_0x863c76['idSuffix'],')')));})),_0xb248c7;}function Hi(_0xb818a6,_0x388550){const _0x617034=_0x565e5e;var _0x2dcc1c,_0x58d0f1=_0x388550['defIds'];return!_0x58d0f1||_0x58d0f1['length']===0x0?_0xb818a6:_0xb818a6['tag']===_0x617034(0x276)&&(!((_0x2dcc1c=_0xb818a6[_0x617034(0x17c)])===null||_0x2dcc1c===void 0x0)&&_0x2dcc1c[_0x617034(0x172)])?v(v({},_0xb818a6),{'children':_0xb818a6['children'][_0x617034(0x277)](function(_0x26cf0d){const _0xf868b0=_0x617034;return typeof _0x26cf0d[_0xf868b0(0x23b)]['id']=='string'&&_0x58d0f1&&_0x58d0f1['indexOf'](_0x26cf0d[_0xf868b0(0x23b)]['id'])>-0x1?v(v({},_0x26cf0d),{'attrs':v(v({},_0x26cf0d['attrs']),{'id':_0x26cf0d[_0xf868b0(0x23b)]['id']+_0x388550[_0xf868b0(0x290)]})}):_0x26cf0d;})}):_0xb818a6;}function ji(){const _0x5aa797=_0x565e5e;return Math['random']()[_0x5aa797(0x21d)](0x24)[_0x5aa797(0x292)](0x2,0x8);}je[_0x565e5e(0x2d0)]='UniverIcon';var Yi={'tag':'svg','attrs':{'fill':_0x565e5e(0x284),'viewBox':_0x565e5e(0x161),'width':_0x565e5e(0x154),'height':_0x565e5e(0x154)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x565e5e(0x12a),'d':_0x565e5e(0x285),'strokeLinecap':_0x565e5e(0x27f),'strokeLinejoin':_0x565e5e(0x27f),'strokeWidth':1.2}}]},{'tag':_0x565e5e(0x276),'attrs':{},'children':[{'tag':_0x565e5e(0x150),'attrs':{'id':_0x565e5e(0x126)},'children':[{'tag':_0x565e5e(0x16d),'attrs':{'fill':_0x565e5e(0x2d1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x565e5e(0x126)]},Dt=_0xfeee87(function(_0x22cf59,_0x52f024){const _0x311e26=_0x565e5e;return _0x4d0a0d(je,Object[_0x311e26(0x1c3)]({},_0x22cf59,{'id':_0x311e26(0x275),'ref':_0x52f024,'icon':Yi}));});Dt[_0x565e5e(0x2d0)]=_0x565e5e(0x21c);var Fi={'tag':_0x565e5e(0x211),'attrs':{'fill':_0x565e5e(0x284),'viewBox':'0\x200\x2017\x2016','width':_0x565e5e(0x154),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x565e5e(0x289)},'children':[{'tag':_0x565e5e(0x16d),'attrs':{'stroke':_0x565e5e(0x12a),'d':_0x565e5e(0x25d),'strokeLinecap':_0x565e5e(0x27f),'strokeLinejoin':_0x565e5e(0x27f),'strokeWidth':1.2}}]},{'tag':_0x565e5e(0x276),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x565e5e(0x16d),'attrs':{'fill':'#fff','d':_0x565e5e(0x31d),'transform':_0x565e5e(0x1a3)}}]}]}],'defIds':[_0x565e5e(0x121)]},Nt=_0xfeee87(function(_0x1bb970,_0x3f14da){return _0x4d0a0d(je,Object['assign']({},_0x1bb970,{'id':'on-line-single','ref':_0x3f14da,'icon':Fi}));});Nt[_0x565e5e(0x2d0)]=_0x565e5e(0x214);function Wi(_0x11ff58){const _0x1d0471=_0x565e5e;switch(_0x11ff58){case _0x5ec7ba['OFFLINE']:return _0x1d0471(0x263);case _0x5ec7ba[_0x1d0471(0x125)]:return _0x1d0471(0x1d0);case _0x5ec7ba[_0x1d0471(0x2e7)]:return _0x1d0471(0x271);case _0x5ec7ba[_0x1d0471(0x1f7)]:return _0x1d0471(0x278);case _0x5ec7ba[_0x1d0471(0x213)]:case _0x5ec7ba[_0x1d0471(0x1e0)]:return _0x1d0471(0x19a);case _0x5ec7ba[_0x1d0471(0x13b)]:case _0x5ec7ba[_0x1d0471(0x2b9)]:return'collabStatus.synced';}}function Vi(_0x532966){const _0x50f0af=_0x565e5e,{status$:_0x34a793}=_0x532966,_0x860e2=_0x32a14(_0x34a793,_0x5ec7ba[_0x50f0af(0x1f7)]),_0x53229c=_0x36b485(_0x3f6602),_0x48251d=_0x36b485(_0x2c6ff0),_0x352e73=_0x860e2!==_0x5ec7ba[_0x50f0af(0x2f0)],_0x2df0e3=_0x53229c['t'](Wi(_0x860e2)),_0x230a01=_0x352e73?_0x5d995a(Nt,{}):_0x5d995a(Dt,{}),_0x1ee5c7=_0x4e607d(()=>{const _0x4be2ad=_0x50f0af;_0x352e73||_0x48251d[_0x4be2ad(0x1c9)]();},[_0x352e73,_0x48251d]);function _0x3cc8e4(){const _0x4b5cc0=_0x50f0af;return _0x414cf6(_0x4b5cc0(0x279),{'className':_0x4b5cc0(0x15e),'onClick':_0x1ee5c7,'children':[_0x5d995a(_0x4b5cc0(0x279),{'className':_0x34bb8d(_0x4b5cc0(0x1d9),{'univer-text-green-500':_0x352e73,'univer-text-red-500':!_0x352e73}),'children':_0x230a01}),_0x5d995a('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2df0e3})]});}return _0x352e73?_0x3cc8e4():_0x5d995a(_0x180a59,{'title':_0x53229c['t']('collab-client.tooltip.reconnect'),'children':_0x3cc8e4()});}var Xi=Object[_0x565e5e(0x1b6)],Gi=(_0x59b7a5,_0x42646e,_0x16241c,_0xf57e7f)=>{const _0x55fa73=_0x565e5e;for(var _0x2fee8c=_0xf57e7f>0x1?void 0x0:_0xf57e7f?Xi(_0x42646e,_0x16241c):_0x42646e,_0x48309a=_0x59b7a5[_0x55fa73(0x172)]-0x1,_0x4e51fa;_0x48309a>=0x0;_0x48309a--)(_0x4e51fa=_0x59b7a5[_0x48309a])&&(_0x2fee8c=_0x4e51fa(_0x2fee8c)||_0x2fee8c);return _0x2fee8c;},Q=(_0x75a463,_0x4e56ad)=>(_0x31d589,_0x17e259)=>_0x4e56ad(_0x31d589,_0x17e259,_0x75a463);let te=class extends _0x1c8028{constructor(_0xada9e0,_0x487b0c,_0x3ed16d,_0x3ba5a6){const _0x826b5=_0x565e5e;super(),_(this,'_status$',new _0x654dae(_0x5ec7ba[_0x826b5(0x1f7)])),(this[_0x826b5(0x2e0)]=_0xada9e0,this[_0x826b5(0x29c)]=_0x487b0c,this['_collaborationController']=_0x3ed16d,this['_uiPartsService']=_0x3ba5a6,this[_0x826b5(0x268)](),this[_0x826b5(0x2e5)]());}[_0x565e5e(0x2e5)](){const _0x4649e7=_0x565e5e;this['disposeWithMe'](this[_0x4649e7(0x2e0)]['focused$']['pipe'](_0x1f32ac(()=>{const _0x3c9751=_0x4649e7,_0x296e8d=this[_0x3c9751(0x2e0)][_0x3c9751(0x1d6)]();return _0x296e8d?this[_0x3c9751(0x260)][_0x3c9751(0x2dc)](_0x296e8d['getUnitId']()):_0x550d99(null);}),_0x1f32ac(_0x336f5d=>_0x336f5d?_0x336f5d[_0x4649e7(0x2b2)]:_0x550d99(_0x5ec7ba[_0x4649e7(0x1f7)])))[_0x4649e7(0x1bd)](_0x23b7b8=>{const _0x40a1d8=_0x4649e7;this[_0x40a1d8(0x30e)]['next'](_0x23b7b8);}));}['_initStatusComponent'](){const _0x478f36=_0x565e5e;this[_0x478f36(0x2b8)](this[_0x478f36(0x19e)][_0x478f36(0x1b2)](_0x5e21a0['HEADER_MENU'],()=>_0x2ab464(Ki({'status$':this['_status$'][_0x478f36(0x176)]()}),this[_0x478f36(0x29c)])));}};te=Gi([Q(0x0,_0x29f3a7),Q(0x1,_0x55c0ac(_0x3c5fec)),Q(0x2,_0x55c0ac(_0x3d2839)),Q(0x3,_0x3bd19e)],te);function Ki(_0x548b0f){const {status$:_0x2abefe}=_0x548b0f;return function(){return _0x5d995a(Vi,{'status$':_0x2abefe});};}var zi=Object['getOwnPropertyDescriptor'],Ji=(_0x30de42,_0x1a8a4c,_0xcedb4f,_0x4d03b8)=>{const _0x7b4fad=_0x565e5e;for(var _0x4c3eb7=_0x4d03b8>0x1?void 0x0:_0x4d03b8?zi(_0x1a8a4c,_0xcedb4f):_0x1a8a4c,_0xe56677=_0x30de42[_0x7b4fad(0x172)]-0x1,_0x414340;_0xe56677>=0x0;_0xe56677--)(_0x414340=_0x30de42[_0xe56677])&&(_0x4c3eb7=_0x414340(_0x4c3eb7)||_0x4c3eb7);return _0x4c3eb7;},B=(_0x1327fb,_0x3f20a1)=>(_0x2467f2,_0x12ab22)=>_0x3f20a1(_0x2467f2,_0x12ab22,_0x1327fb);let se=class extends _0x1c8028{constructor(_0x13cfbb,_0x2b9ada,_0x3496cc,_0x4837a4,_0x5a2216,_0x208ce0){const _0x4ebc67=_0x565e5e;super(),this[_0x4ebc67(0x243)]=_0x13cfbb,this[_0x4ebc67(0x27e)]=_0x2b9ada,this[_0x4ebc67(0x18e)]=_0x3496cc,this[_0x4ebc67(0x22b)]=_0x4837a4,this[_0x4ebc67(0x20e)]=_0x5a2216,this[_0x4ebc67(0x17d)]=_0x208ce0,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x565e5e(0x174)](){const _0x3c0403=_0x565e5e;this[_0x3c0403(0x2b8)](this[_0x3c0403(0x243)][_0x3c0403(0x19b)](()=>{const _0x17568a=_0x3c0403;if(this[_0x17568a(0x27e)][_0x17568a(0x307)][_0x17568a(0x327)])return this[_0x17568a(0x17d)]['t'](_0x17568a(0x151));}));}['_initEvent'](){const _0x3360ea=_0x565e5e;this[_0x3360ea(0x2b8)](this['_collaborationUIEventService'][_0x3360ea(0x31c)]['subscribe'](_0x4f77b3=>{const _0x420e6d=_0x3360ea;_0x4f77b3['id']===_0x598d5d[_0x420e6d(0x2fd)]&&this[_0x420e6d(0x22b)][_0x420e6d(0x1ef)]({'type':_0x165153[_0x420e6d(0x2da)],'content':this[_0x420e6d(0x17d)]['t'](_0x420e6d(0x15a))}),_0x4f77b3['id']===_0x598d5d[_0x420e6d(0x28d)]&&this['_messageService'][_0x420e6d(0x1ef)]({'type':_0x165153[_0x420e6d(0x2da)],'content':this[_0x420e6d(0x17d)]['t']('collaboration.closeRoom')}),_0x4f77b3['id']===_0x598d5d[_0x420e6d(0x2f6)]&&this[_0x420e6d(0x20e)][_0x420e6d(0x1ef)]({'title':this[_0x420e6d(0x17d)]['t'](_0x420e6d(0x14e)),'content':this[_0x420e6d(0x17d)]['t'](_0x420e6d(0x30d)),'type':'error','duration':0x0}),_0x4f77b3['id']===_0x598d5d['CONFLICT']&&this['_messageService']['show']({'type':_0x165153[_0x420e6d(0x2a1)],'content':this[_0x420e6d(0x17d)]['t'](_0x420e6d(0x187))+'('+_0x4f77b3[_0x420e6d(0x185)]+')'}),_0x4f77b3['id']===_0x598d5d[_0x420e6d(0x2bf)]&&this[_0x420e6d(0x22b)][_0x420e6d(0x1ef)]({'type':_0x165153[_0x420e6d(0x2da)],'content':this[_0x420e6d(0x17d)]['t'](_0x4f77b3[_0x420e6d(0x185)]||'')}),_0x4f77b3['id']===_0x598d5d[_0x420e6d(0x1d5)]&&this['_messageService'][_0x420e6d(0x1ef)]({'type':_0x165153[_0x420e6d(0x2da)],'content':this['_localeService']['t']('session.will-retry')}),_0x4f77b3['id']===_0x598d5d['SOCKET_FAILED']&&this[_0x420e6d(0x22b)][_0x420e6d(0x1ef)]({'type':_0x165153[_0x420e6d(0x2a1)],'content':this[_0x420e6d(0x17d)]['t'](_0x420e6d(0x12b))}),_0x4f77b3['id']===_0x598d5d[_0x420e6d(0x1e2)]&&this[_0x420e6d(0x22b)][_0x420e6d(0x1ef)]({'type':_0x165153[_0x420e6d(0x2a1)],'content':this[_0x420e6d(0x17d)]['t']('session.collaboration-timeout')});}));}};se=Ji([B(0x0,_0x4b0648),B(0x1,_0x53c3f8),B(0x2,_0x55c0ac(_0x12cfe6)),B(0x3,_0x5baf41),B(0x4,_0xf07edf),B(0x5,_0x55c0ac(_0x3f6602))],se);const Zi='collaboration-client-ui.config',et={},Ut=_0x2b4ff('uni.network.url-service');var Qi=Object[_0x565e5e(0x1b6)],qi=(_0x24db56,_0x5bc857,_0x5d6517,_0x2851d0)=>{for(var _0x56bf8a=_0x2851d0>0x1?void 0x0:_0x2851d0?Qi(_0x5bc857,_0x5d6517):_0x5bc857,_0x218e3c=_0x24db56['length']-0x1,_0x119760;_0x218e3c>=0x0;_0x218e3c--)(_0x119760=_0x24db56[_0x218e3c])&&(_0x56bf8a=_0x119760(_0x56bf8a)||_0x56bf8a);return _0x56bf8a;},G=(_0x40db4d,_0x418f27)=>(_0x5467f,_0x4eb3d3)=>_0x418f27(_0x5467f,_0x4eb3d3,_0x40db4d);let ie=class extends _0x4eca7e{constructor(_0xacc8bc,_0x34f97d,_0x3559b0,_0x582349,_0x5cd7a2){const _0x5ac36b=_0x565e5e;super(),this['_urlService']=_0xacc8bc,this[_0x5ac36b(0x2d3)]=_0x34f97d,this[_0x5ac36b(0x1a4)]=_0x3559b0,this['_dataLoaderService']=_0x582349,_0x5cd7a2?_0x5cd7a2==null||_0x5cd7a2['whenReady']()[_0x5ac36b(0x24d)](()=>this[_0x5ac36b(0x186)]()):(this[_0x5ac36b(0x2d3)][_0x5ac36b(0x238)](_0x5ac36b(0x1ca),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x565e5e(0x186)](){const _0x381cb6=_0x565e5e,_0x48a598=this[_0x381cb6(0x1d3)][_0x381cb6(0x144)]('unit'),_0x360151=this[_0x381cb6(0x1d3)][_0x381cb6(0x144)](_0x381cb6(0x1ee)),_0x5c4e51=this[_0x381cb6(0x1d3)][_0x381cb6(0x144)](_0x381cb6(0x1ed));if(!_0x48a598||!_0x360151){this['_logService']['debug'](_0x381cb6(0x1ca),_0x381cb6(0x26a));return;}const _0x2a9333=await this[_0x381cb6(0x2cf)]['loadUnit'](_0x48a598,Number(_0x360151),_0x5c4e51);_0x2a9333&&_0x2a9333 instanceof _0x4126cb&&this[_0x381cb6(0x1dd)](_0x2a9333);}async[_0x565e5e(0x1dd)](_0x523fe9){const _0x5c9163=_0x565e5e;await this['_updateSubUnitFromURLParams'](_0x523fe9),_0x523fe9[_0x5c9163(0x299)][_0x5c9163(0x252)](_0x55d45e(this[_0x5c9163(0x1da)]))[_0x5c9163(0x1bd)](_0xb470ba=>{_0xb470ba&&this['_updateURLWithCurrentState'](_0xb470ba);}),this[_0x5c9163(0x1d3)]['urlChange$'][_0x5c9163(0x252)](_0x55d45e(this[_0x5c9163(0x1da)]))[_0x5c9163(0x1bd)](()=>this[_0x5c9163(0x15b)](_0x523fe9));}[_0x565e5e(0x293)](_0x4d7339,_0x46327e=!0x1){const _0x303577=_0x565e5e,_0x4b967d=this['_urlService']['getParam'](_0x303577(0x1ed));_0x4d7339[_0x303577(0x267)]()!==_0x4b967d&&this[_0x303577(0x1d3)][_0x303577(0x1d2)](_0x303577(0x1ed),_0x4d7339['getSheetId'](),_0x46327e);}async[_0x565e5e(0x15b)](_0x14ca30){const _0x515a61=_0x565e5e;var _0x202f7c;const _0x274ef8=this[_0x515a61(0x1d3)][_0x515a61(0x144)](_0x515a61(0x1ed));if(!_0x274ef8||!_0x14ca30['getSheetBySheetId'](_0x274ef8)){const _0x4886ac=_0x14ca30[_0x515a61(0x15c)]()[0x0],_0x39f33f=_0x14ca30['getSheetBySheetId'](_0x4886ac);if(!_0x39f33f)return;this['_updateURLWithCurrentState'](_0x39f33f,!0x0),await this['_commandService'][_0x515a61(0x1c0)](_0x495402['id'],{'unitId':_0x14ca30['getUnitId'](),'subUnitId':_0x4886ac});return;}((_0x202f7c=_0x14ca30[_0x515a61(0x319)]())==null?void 0x0:_0x202f7c['getSheetId']())!==_0x274ef8&&await this[_0x515a61(0x1a4)][_0x515a61(0x1c0)](_0x495402['id'],{'unitId':_0x14ca30[_0x515a61(0x1d8)](),'subUnitId':_0x274ef8});}};ie=qi([G(0x0,Ut),G(0x1,_0x39523),G(0x2,_0x347b5a),G(0x3,_0x55c0ac(_0x5db0df)),G(0x4,_0x5be1a1(_0x2afe11))],ie);var en=Object[_0x565e5e(0x1b6)],tn=(_0x9a8881,_0x369b52,_0x51414a,_0x5378f1)=>{const _0x32c0e3=_0x565e5e;for(var _0x396762=_0x5378f1>0x1?void 0x0:_0x5378f1?en(_0x369b52,_0x51414a):_0x369b52,_0x74fa0c=_0x9a8881[_0x32c0e3(0x172)]-0x1,_0x590666;_0x74fa0c>=0x0;_0x74fa0c--)(_0x590666=_0x9a8881[_0x74fa0c])&&(_0x396762=_0x590666(_0x396762)||_0x396762);return _0x396762;},pe=(_0x1adc04,_0x5cd5ba)=>(_0xdf6ac9,_0x287009)=>_0x5cd5ba(_0xdf6ac9,_0x287009,_0x1adc04);let ne=class{constructor(_0x48ee03,_0x57f966,_0x1dc306){const _0x55001a=_0x565e5e;this[_0x55001a(0x29c)]=_0x48ee03,this['_transformService']=_0x57f966,this[_0x55001a(0x272)]=_0x1dc306;}['transformIMECache'](_0x256a80){const _0x5671c9=_0x565e5e;this[_0x5671c9(0x30f)](_0x256a80),this['_transformPreviousActiveRange'](_0x256a80);}['transformRemoteChangeset'](_0xb59c01){const _0x58dd1d=_0x565e5e,{unitID:_0x2fee31}=_0xb59c01,_0x52636c=this[_0x58dd1d(0x272)][_0x58dd1d(0x1f2)](_0x2fee31)[_0x58dd1d(0x201)](_0x34fedf),{redoCache:_0xd4d5fd}=_0x52636c['getUndoRedoMutationParamsCache']();if(_0xd4d5fd[_0x58dd1d(0x172)]===0x0)return _0xb59c01;let _0x2fa34f=_0x2650a9[_0x58dd1d(0x29f)](_0xb59c01['mutations'][0x0]);for(let _0x18fcdc=0x0;_0x18fcdc<_0xd4d5fd[_0x58dd1d(0x172)];_0x18fcdc++){const _0x542e9c={'id':_0x58dd1d(0x21a),'params':{..._0xd4d5fd[_0x18fcdc]}},_0x998a5c=this[_0x58dd1d(0x12d)][_0x58dd1d(0x24b)](_0x2fa34f,_0x542e9c,!0x1);if(_0x5012b2(_0x998a5c))throw _0x998a5c[_0x58dd1d(0x166)];_0x2fa34f=_0x998a5c[_0x58dd1d(0x165)];}return{..._0x2650a9[_0x58dd1d(0x29f)](_0xb59c01),'mutations':[_0x2fa34f]};}[_0x565e5e(0x30f)](_0x15fc9d){const _0x17ea5a=_0x565e5e,{unitID:_0x482417}=_0x15fc9d,_0x419c5c=this['_renderManagerService']['getRenderById'](_0x482417)[_0x17ea5a(0x201)](_0x34fedf),{undoCache:_0x20c87c,redoCache:_0x27b9ba}=_0x419c5c['getUndoRedoMutationParamsCache']();if(_0x20c87c['length']===0x0||_0x27b9ba[_0x17ea5a(0x172)]===0x0)return;const _0x5ab284=[],_0x2c559a=[];let _0x11f40c=_0x2650a9['deepClone'](_0x15fc9d[_0x17ea5a(0x1db)][0x0]),_0x43691d=_0x2650a9[_0x17ea5a(0x29f)](_0x15fc9d[_0x17ea5a(0x1db)][0x0]);for(let _0xa34bcd=_0x20c87c[_0x17ea5a(0x172)]-0x1;_0xa34bcd>=0x0;_0xa34bcd--){const _0x57c547={'id':_0x17ea5a(0x21a),'params':{..._0x20c87c[_0xa34bcd]}},_0x57f54c={'id':_0x17ea5a(0x21a),'params':{..._0x27b9ba[_0xa34bcd]}},_0x12518c=this[_0x17ea5a(0x12d)][_0x17ea5a(0x24b)](_0x11f40c,_0x57c547,!0x1),_0x39c53c=this[_0x17ea5a(0x12d)][_0x17ea5a(0x24b)](_0x43691d,_0x57f54c,!0x1);if(_0x5012b2(_0x12518c))throw _0x12518c[_0x17ea5a(0x166)];if(_0x5012b2(_0x39c53c))throw _0x39c53c[_0x17ea5a(0x166)];_0x5ab284[_0x17ea5a(0x17a)](_0x12518c[_0x17ea5a(0x2df)]['params']),_0x2c559a[_0x17ea5a(0x17a)](_0x39c53c[_0x17ea5a(0x2df)][_0x17ea5a(0x1a5)]),_0x11f40c=_0x12518c['m1Prime'],_0x43691d=_0x39c53c['m1Prime'];}_0x419c5c['setUndoRedoMutationParamsCache']({'undoCache':_0x5ab284,'redoCache':_0x2c559a});}[_0x565e5e(0x15f)](_0xfea9ae){const _0x4f9976=_0x565e5e,{unitID:_0x5d0ca4}=_0xfea9ae,_0x2fec6a=this[_0x4f9976(0x272)][_0x4f9976(0x1f2)](_0x5d0ca4)[_0x4f9976(0x201)](_0x34fedf),_0xf2720f=_0x2fec6a[_0x4f9976(0x23f)]();if(_0xf2720f==null)return;const _0x2e2258=[{'id':_0x4f9976(0x21a),'params':{'unitId':_0xfea9ae[_0x4f9976(0x1fd)],'actions':null,'textRanges':[_0xf2720f]}}],_0x518e33=this[_0x4f9976(0x12d)][_0x4f9976(0x2b7)](_0xfea9ae,_0x2e2258);if(!_0x5b3d73(_0x518e33))throw _0x518e33[_0x4f9976(0x166)];const _0xa47351=_0x518e33[_0x4f9976(0x2df)][0x0][_0x4f9976(0x1a5)]['textRanges'];Array[_0x4f9976(0x17e)](_0xa47351)&&_0xa47351[_0x4f9976(0x172)]&&_0x2fec6a[_0x4f9976(0x2b5)](_0xa47351[0x0]);}};ne=tn([pe(0x0,_0x55c0ac(_0x3c5fec)),pe(0x1,_0x38ce08),pe(0x2,_0x460adb)],ne);var sn=Object[_0x565e5e(0x1b6)],nn=(_0x4cf588,_0x1d54f2,_0x51c3ee,_0x1d01fb)=>{const _0x5db786=_0x565e5e;for(var _0x1bb6ad=_0x1d01fb>0x1?void 0x0:_0x1d01fb?sn(_0x1d54f2,_0x51c3ee):_0x1d54f2,_0xa02e30=_0x4cf588[_0x5db786(0x172)]-0x1,_0x5d9589;_0xa02e30>=0x0;_0xa02e30--)(_0x5d9589=_0x4cf588[_0xa02e30])&&(_0x1bb6ad=_0x5d9589(_0x1bb6ad)||_0x1bb6ad);return _0x1bb6ad;},Ce=(_0x227641,_0x4c5806)=>(_0x3f15d5,_0x40e861)=>_0x4c5806(_0x3f15d5,_0x40e861,_0x227641);let re=class{constructor(_0x493623,_0x174b85,_0x33b575){const _0x12df2a=_0x565e5e;this['_injector']=_0x493623,this[_0x12df2a(0x12d)]=_0x174b85,this[_0x12df2a(0x2e8)]=_0x33b575;}['transformStateCache'](_0x3e8d92){this['_transformHistoryAndStateStack'](_0x3e8d92);}['transformRemoteChangeset'](_0x17633f){const _0x33d32e=_0x565e5e,{unitID:_0x27e3f2}=_0x17633f,{collaboration:_0x494140}=this[_0x33d32e(0x2e8)][_0x33d32e(0x229)](_0x27e3f2);if(_0x494140[_0x33d32e(0x172)]===0x0)return _0x17633f;let _0x45e9b3=_0x2650a9[_0x33d32e(0x29f)](_0x17633f[_0x33d32e(0x1db)][0x0]);for(let _0x296b71=0x0;_0x296b71<_0x494140[_0x33d32e(0x172)];_0x296b71++){const _0x43336e={'id':_0x33d32e(0x21a),'params':{'unitId':_0x494140[_0x296b71][_0x33d32e(0x1fe)],..._0x494140[_0x296b71][_0x33d32e(0x159)]}},_0x228a20=this[_0x33d32e(0x12d)][_0x33d32e(0x24b)](_0x45e9b3,_0x43336e,!0x1);if(_0x5012b2(_0x228a20))throw _0x228a20[_0x33d32e(0x166)];_0x45e9b3=_0x228a20[_0x33d32e(0x165)];}return{..._0x2650a9[_0x33d32e(0x29f)](_0x17633f),'mutations':[_0x45e9b3]};}[_0x565e5e(0x1eb)](_0x1d9777){const _0xd15214=_0x565e5e,{unitID:_0x123c1c}=_0x1d9777,{history:_0x19a4e1,collaboration:_0x27b58d}=this[_0xd15214(0x2e8)][_0xd15214(0x229)](_0x123c1c);if(_0x19a4e1[_0xd15214(0x172)]===0x0&&_0x27b58d['length']===0x0)return;const _0x25bb22=[],_0x31761a=[];let _0x217a73=_0x2650a9[_0xd15214(0x29f)](_0x1d9777[_0xd15214(0x1db)][0x0]),_0x4a4f85=_0x2650a9[_0xd15214(0x29f)](_0x1d9777[_0xd15214(0x1db)][0x0]);for(let _0x4725b5=_0x19a4e1[_0xd15214(0x172)]-0x1;_0x4725b5>=0x0;_0x4725b5--){const _0x5e5622={'id':_0xd15214(0x21a),'params':{'unitId':_0x19a4e1[_0x4725b5][_0xd15214(0x1fe)],..._0x19a4e1[_0x4725b5][_0xd15214(0x16b)]}},_0x4f4f37={'id':_0xd15214(0x21a),'params':{'unitId':_0x19a4e1[_0x4725b5][_0xd15214(0x1fe)],..._0x19a4e1[_0x4725b5][_0xd15214(0x159)]}},_0xda7fec=this[_0xd15214(0x12d)][_0xd15214(0x24b)](_0x217a73,_0x5e5622,!0x1),_0x568ec1=this[_0xd15214(0x12d)][_0xd15214(0x24b)](_0x4a4f85,_0x4f4f37,!0x1);if(_0x5012b2(_0xda7fec))throw _0xda7fec[_0xd15214(0x166)];if(_0x5012b2(_0x568ec1))throw _0x568ec1[_0xd15214(0x166)];_0x25bb22[_0xd15214(0x17a)]({..._0x19a4e1[_0x4725b5],'undoState':_0xda7fec['m2Prime'][_0xd15214(0x1a5)],'redoState':_0x568ec1['m2Prime']['params']}),_0x217a73=_0xda7fec[_0xd15214(0x165)],_0x4a4f85=_0x568ec1['m1Prime'];}_0x217a73=_0x2650a9[_0xd15214(0x29f)](_0x1d9777[_0xd15214(0x1db)][0x0]),_0x4a4f85=_0x2650a9[_0xd15214(0x29f)](_0x1d9777[_0xd15214(0x1db)][0x0]);for(let _0x13f056=_0x27b58d[_0xd15214(0x172)]-0x1;_0x13f056>=0x0;_0x13f056--){const _0x5400cd={'id':_0xd15214(0x21a),'params':{'unitId':_0x27b58d[_0x13f056][_0xd15214(0x1fe)],..._0x27b58d[_0x13f056][_0xd15214(0x16b)]}},_0x1f299a={'id':_0xd15214(0x21a),'params':{'unitId':_0x27b58d[_0x13f056][_0xd15214(0x1fe)],..._0x27b58d[_0x13f056][_0xd15214(0x159)]}},_0x12aa3b=this['_transformService']['transformMutation'](_0x217a73,_0x5400cd,!0x1),_0x4df511=this[_0xd15214(0x12d)][_0xd15214(0x24b)](_0x4a4f85,_0x1f299a,!0x1);if(_0x5012b2(_0x12aa3b))throw _0x12aa3b[_0xd15214(0x166)];if(_0x5012b2(_0x4df511))throw _0x4df511['error'];_0x31761a['unshift']({..._0x27b58d[_0x13f056],'undoState':_0x12aa3b[_0xd15214(0x2df)][_0xd15214(0x1a5)],'redoState':_0x4df511[_0xd15214(0x2df)][_0xd15214(0x1a5)]}),_0x217a73=_0x12aa3b[_0xd15214(0x165)],_0x4a4f85=_0x4df511[_0xd15214(0x165)];}this['_docStateChangeManagerService'][_0xd15214(0x1de)](_0x123c1c,{'history':_0x25bb22,'collaboration':_0x31761a});}};re=nn([Ce(0x0,_0x55c0ac(_0x3c5fec)),Ce(0x1,_0x38ce08),Ce(0x2,_0x55c0ac(_0x4a9185))],re);var rn=Object[_0x565e5e(0x1b6)],on=(_0x204b92,_0x4783f2,_0xe4418d,_0x39930b)=>{const _0x4e37e4=_0x565e5e;for(var _0x222319=_0x39930b>0x1?void 0x0:_0x39930b?rn(_0x4783f2,_0xe4418d):_0x4783f2,_0x41f1f6=_0x204b92[_0x4e37e4(0x172)]-0x1,_0x537a62;_0x41f1f6>=0x0;_0x41f1f6--)(_0x537a62=_0x204b92[_0x41f1f6])&&(_0x222319=_0x537a62(_0x222319)||_0x222319);return _0x222319;},tt=(_0x47cdca,_0x31ab34)=>(_0x59ee9a,_0x45c4b4)=>_0x31ab34(_0x59ee9a,_0x45c4b4,_0x47cdca);let oe=class{constructor(_0x2a5f6a,_0x4f41a9){const _0x425445=_0x565e5e;this['_injector']=_0x2a5f6a,this[_0x425445(0x12d)]=_0x4f41a9;}[_0x565e5e(0x200)](_0x337721){const _0x32d217=_0x565e5e;var _0x371191;const _0x19c8bb=this[_0x32d217(0x29c)][_0x32d217(0x1b4)](_0x4c52aa),_0x15af6c=(_0x371191=_0x19c8bb[_0x32d217(0x12f)]())!=null?_0x371191:[];if(_0x15af6c[_0x32d217(0x172)]===0x0)return;const _0x22abbe=_0x337721[_0x32d217(0x1fd)],_0x1b5611=[{'id':_0x32d217(0x21a),'params':{'unitId':_0x22abbe,'actions':null,'textRanges':_0x15af6c}}],_0x304a2e=this['_transformService'][_0x32d217(0x2b7)](_0x337721,_0x1b5611);if(!_0x5b3d73(_0x304a2e))throw _0x304a2e[_0x32d217(0x166)];const _0x45e5b4=_0x304a2e['m2Prime'][0x0][_0x32d217(0x1a5)]['textRanges'];Array[_0x32d217(0x17e)](_0x45e5b4)&&_0x45e5b4[_0x32d217(0x172)]&&_0x19c8bb['replaceDocRanges'](_0x45e5b4,{'unitId':_0x22abbe,'subUnitId':_0x22abbe},!0x1);}};oe=on([tt(0x0,_0x55c0ac(_0x3c5fec)),tt(0x1,_0x38ce08)],oe);var an=Object['getOwnPropertyDescriptor'],cn=(_0x35c19e,_0x1b8aef,_0x594a9c,_0x3f903f)=>{const _0x594e9b=_0x565e5e;for(var _0x3645e3=_0x3f903f>0x1?void 0x0:_0x3f903f?an(_0x1b8aef,_0x594a9c):_0x1b8aef,_0x1fd0e6=_0x35c19e[_0x594e9b(0x172)]-0x1,_0x5e0e67;_0x1fd0e6>=0x0;_0x1fd0e6--)(_0x5e0e67=_0x35c19e[_0x1fd0e6])&&(_0x3645e3=_0x5e0e67(_0x3645e3)||_0x3645e3);return _0x3645e3;},U=(_0x3b107b,_0xbfff6c)=>(_0x90006,_0x4901b3)=>_0xbfff6c(_0x90006,_0x4901b3,_0x3b107b);let ae=class extends _0x1c8028{constructor(_0x30e268,_0x3a30d0,_0x5ad1b7,_0x24d0d8,_0x20d180,_0x2213e9,_0x17d8d4,_0x187345){const _0x207cd5=_0x565e5e;super(),_(this,'_status$',new _0x654dae(_0x5ec7ba[_0x207cd5(0x1f7)])),(this[_0x207cd5(0x2e8)]=_0x30e268,this[_0x207cd5(0x260)]=_0x3a30d0,this[_0x207cd5(0x1ac)]=_0x5ad1b7,this['_docTransformStateCacheService']=_0x24d0d8,this['_docTransformSelectionsService']=_0x20d180,this[_0x207cd5(0x167)]=_0x2213e9,this[_0x207cd5(0x22b)]=_0x17d8d4,this[_0x207cd5(0x17d)]=_0x187345,this['_initEntityListener']());}[_0x565e5e(0x146)](){const _0x5b698a=_0x565e5e;this['disposeWithMe'](this['_collaborationController'][_0x5b698a(0x2e9)][_0x5b698a(0x1bd)](_0x1edd74=>{const _0x2dd4c7=_0x5b698a,_0x48b458=this[_0x2dd4c7(0x2e8)][_0x2dd4c7(0x133)][_0x2dd4c7(0x1bd)](_0x15ca67=>{const _0x2cdab6=_0x2dd4c7;if(_0x15ca67==null)return;const {unitId:_0x47a171,redoState:_0x4af79b,commandId:_0x15716b}=_0x15ca67;if(_0x47a171!==_0x1edd74['unitID'])return;const _0x5f2927={'id':_0x15716b,'type':_0x36eaf3[_0x2cdab6(0x1e9)],'params':{'unitId':_0x47a171,'actions':_0x4af79b[_0x2cdab6(0x1e8)],'textRanges':null}};_0x1edd74['onLocalMutation'](_0x5f2927);});if(_0x1edd74[_0x2dd4c7(0x2b8)](_0x48b458),_0x1edd74 instanceof _0x2a3630){const _0x36af68={'onTransformIME':_0x15416e=>this[_0x2dd4c7(0x1ac)][_0x2dd4c7(0x32a)](_0x15416e),'onTransformState':_0x34d2cc=>this[_0x2dd4c7(0x17b)][_0x2dd4c7(0x298)](_0x34d2cc),'onTransformSelections':_0x4b01a0=>this[_0x2dd4c7(0x14a)]['transformSelections'](_0x4b01a0),'onSyncEditingCollabCursor':_0x544d9a=>this[_0x2dd4c7(0x167)]['syncEditingCollabCursor'](_0x544d9a),'onTransformRemoteChangesetByIMECache':_0xf2e36e=>this[_0x2dd4c7(0x1ac)][_0x2dd4c7(0x29a)](_0xf2e36e),'onTransformRemoteChangesetByStateCache':_0x233c0b=>this[_0x2dd4c7(0x17b)][_0x2dd4c7(0x29a)](_0x233c0b)};_0x1edd74[_0x2dd4c7(0x1b3)](_0x36af68);}}));}};ae=cn([U(0x0,_0x55c0ac(_0x4a9185)),U(0x1,_0x55c0ac(_0x3d2839)),U(0x2,_0x55c0ac(ne)),U(0x3,_0x55c0ac(re)),U(0x4,_0x55c0ac(oe)),U(0x5,_0x55c0ac(He)),U(0x6,_0x5baf41),U(0x7,_0x55c0ac(_0x3f6602))],ae);var ln=Object[_0x565e5e(0x1b6)],_n=(_0x3f42cf,_0x35d00a,_0x565859,_0x4968f4)=>{const _0x5ef0fc=_0x565e5e;for(var _0x3f565a=_0x4968f4>0x1?void 0x0:_0x4968f4?ln(_0x35d00a,_0x565859):_0x35d00a,_0x1a9817=_0x3f42cf[_0x5ef0fc(0x172)]-0x1,_0x3e9b14;_0x1a9817>=0x0;_0x1a9817--)(_0x3e9b14=_0x3f42cf[_0x1a9817])&&(_0x3f565a=_0x3e9b14(_0x3f565a)||_0x3f565a);return _0x3f565a;},Ee=(_0x586066,_0x39da01)=>(_0x187d68,_0x4d8014)=>_0x39da01(_0x187d68,_0x4d8014,_0x586066);let we=class extends _0x1c8028{constructor(_0x224514,_0x2279e9,_0x4bb1bc){const _0x569e44=_0x565e5e;super(),_(this,_0x569e44(0x1b0),new Map()),_(this,_0x569e44(0x313),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x224514,this[_0x569e44(0x304)]=_0x2279e9,this[_0x569e44(0x30a)]=_0x4bb1bc);}[_0x565e5e(0x31a)](){const _0x23ac7a=_0x565e5e;this[_0x23ac7a(0x239)]=!0x0;}[_0x565e5e(0x12e)](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x565e5e(0x184)](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x565e5e(0x287)](_0x392a44){const _0x3212e9=_0x565e5e;return this[_0x3212e9(0x239)]?null:this[_0x3212e9(0x304)]['getItem'](_0x1c554f(_0x392a44));}async[_0x565e5e(0x199)](_0x58ca0c,_0x26cba4){const _0x4a6ef1=_0x565e5e;return!!this[_0x4a6ef1(0x304)][_0x4a6ef1(0x1dc)](_0x58ca0c,_0x26cba4);}[_0x565e5e(0x14f)](_0x27e61b,_0x3c24f5,_0x3e5543,_0x39e8d0){const _0x2c9220=_0x565e5e,_0x5b287a=this[_0x2c9220(0x30a)][_0x2c9220(0x242)](_0x27e61b);this['_cachedData'][_0x2c9220(0x2ed)](_0x27e61b,{'unitID':_0x27e61b,'type':_0x3c24f5,'awaitingChangeset':_0x3e5543,'mutations':_0x39e8d0,'rev':_0x5b287a}),this[_0x2c9220(0x313)][_0x2c9220(0x181)](_0x27e61b)||this[_0x2c9220(0x2e6)](_0x27e61b);}[_0x565e5e(0x2e6)](_0x3c35d9){const _0x55bb96=_0x565e5e,_0x47cf1e=this[_0x55bb96(0x1d4)]();_0x47cf1e===0x0?this[_0x55bb96(0x1a8)](_0x3c35d9):this[_0x55bb96(0x313)][_0x55bb96(0x2ed)](_0x3c35d9,setTimeout(()=>this[_0x55bb96(0x1a8)](_0x3c35d9),_0x47cf1e));}[_0x565e5e(0x1d4)](){const _0x17ffc4=_0x565e5e;var _0x39abfd;return(_0x39abfd=this[_0x17ffc4(0x14d)][_0x17ffc4(0x2eb)](_0x2e89fb))!=null?_0x39abfd:_0x4534b3;}[_0x565e5e(0x1a8)](_0xa5ad37){const _0x5d41e9=_0x565e5e,_0x2fe7ce=this[_0x5d41e9(0x313)][_0x5d41e9(0x1b4)](_0xa5ad37);return _0x2fe7ce!==void 0x0&&window[_0x5d41e9(0x135)](_0x2fe7ce),this['_localStorageService'][_0x5d41e9(0x1dc)](_0x1c554f(_0xa5ad37),this[_0x5d41e9(0x1b0)]['get'](_0xa5ad37))['then'](()=>this['_saveTaskMap']['delete'](_0xa5ad37));}async['exhaustSavingTask'](){const _0xbcacda=_0x565e5e,_0x198cb1=[];this[_0xbcacda(0x313)][_0xbcacda(0x322)]((_0x33b388,_0x56d69a)=>{const _0x3cab8f=_0xbcacda;window[_0x3cab8f(0x135)](_0x33b388),_0x198cb1[_0x3cab8f(0x28a)](this[_0x3cab8f(0x1a8)](_0x56d69a)[_0x3cab8f(0x24d)](()=>{const _0x2bb764=_0x3cab8f;this[_0x2bb764(0x313)][_0x2bb764(0x28e)](_0x56d69a);}));}),await Promise['all'](_0x198cb1);}};we=_n([Ee(0x0,_0x70f736),Ee(0x1,_0x5125d6),Ee(0x2,_0x55c0ac(_0x297d23))],we);class hn extends _0x4eca7e{constructor(){const _0x278b79=_0x565e5e;super(),_(this,_0x278b79(0x1f6)),this[_0x278b79(0x1f6)]=_0x258cc4(window,_0x278b79(0x21b))[_0x278b79(0x252)](_0x55d45e(this['dispose$']),_0x280f1c(0x1),_0x54f524(void 0x0));}[_0x565e5e(0x1d2)](_0x1cd31d,_0x49531c,_0x313cba=!0x1){const _0x20f3b3=_0x565e5e,_0x389e96=new URL(window[_0x20f3b3(0x1f3)][_0x20f3b3(0x206)]);_0x389e96[_0x20f3b3(0x1ea)][_0x20f3b3(0x2ed)](_0x1cd31d,_0x49531c),_0x313cba?window[_0x20f3b3(0x137)][_0x20f3b3(0x27c)]('','',_0x389e96[_0x20f3b3(0x21d)]()):window[_0x20f3b3(0x137)][_0x20f3b3(0x1be)]('','',_0x389e96[_0x20f3b3(0x21d)]());}['removeParam'](_0xc2d4ee,_0x4893d1=!0x1){const _0x37bf97=_0x565e5e,_0x53adad=new URL(window[_0x37bf97(0x1f3)]['href']);_0x53adad[_0x37bf97(0x1ea)]['delete'](_0xc2d4ee),_0x4893d1?window[_0x37bf97(0x137)][_0x37bf97(0x27c)]('','',_0x53adad['toString']()):window[_0x37bf97(0x137)][_0x37bf97(0x1be)]('','',_0x53adad['toString']());}[_0x565e5e(0x144)](_0x25edbd){const _0x332424=_0x565e5e;var _0x1cc79c;return(_0x1cc79c=new URL(window[_0x332424(0x1f3)][_0x332424(0x206)])['searchParams'][_0x332424(0x1b4)](_0x25edbd))!=null?_0x1cc79c:void 0x0;}}var un=Object[_0x565e5e(0x2d2)],dn=Object[_0x565e5e(0x1b6)],fn=(_0x26ba44,_0xc8615b,_0x4093fe)=>_0xc8615b in _0x26ba44?un(_0x26ba44,_0xc8615b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4093fe}):_0x26ba44[_0xc8615b]=_0x4093fe,Sn=(_0x44af4e,_0x5e006a,_0xa24159,_0x2a6046)=>{const _0x3d762d=_0x565e5e;for(var _0x145bc6=_0x2a6046>0x1?void 0x0:_0x2a6046?dn(_0x5e006a,_0xa24159):_0x5e006a,_0x234ed7=_0x44af4e[_0x3d762d(0x172)]-0x1,_0x22a92e;_0x234ed7>=0x0;_0x234ed7--)(_0x22a92e=_0x44af4e[_0x234ed7])&&(_0x145bc6=_0x22a92e(_0x145bc6)||_0x145bc6);return _0x145bc6;},Oe=(_0x559a36,_0x7ec4b6)=>(_0x3600d2,_0x50b0eb)=>_0x7ec4b6(_0x3600d2,_0x50b0eb,_0x559a36),mn=(_0x1d08fb,_0x4106d8,_0x4393e8)=>fn(_0x1d08fb,_0x4106d8+'',_0x4393e8);const gn=_0x565e5e(0x231);let Ae=class extends _0x134d3f{constructor(_0x2c051a=et,_0x168b44,_0x45a654,_0x573301){const _0x3d08d8=_0x565e5e;super(),this[_0x3d08d8(0x295)]=_0x2c051a,this[_0x3d08d8(0x272)]=_0x168b44,this[_0x3d08d8(0x29c)]=_0x45a654,this[_0x3d08d8(0x14d)]=_0x573301;const {..._0x153393}=_0x4a4e03({},et,this['_config']);this['_configService'][_0x3d08d8(0x2b1)](Zi,_0x153393);}[_0x565e5e(0x310)](){const _0x3789be=_0x565e5e;this['_registerDependencies'](),this[_0x3789be(0x2cb)]();}[_0x565e5e(0x180)](){const _0x10d1e3=_0x565e5e;this[_0x10d1e3(0x195)]();}[_0x565e5e(0x312)](){const _0x2b7d54=_0x565e5e;var _0x420701;const _0xfcb3a6=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x43e315,{'useClass':_0x48ca09}],[_0x53c3f8,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x3135c1(this[_0x2b7d54(0x29c)],_0x3fb29d(_0xfcb3a6,(_0x420701=this[_0x2b7d54(0x295)])==null?void 0x0:_0x420701[_0x2b7d54(0x122)]));}[_0x565e5e(0x195)](){const _0x2d767a=_0x565e5e;this[_0x2d767a(0x2b8)](this[_0x2d767a(0x272)][_0x2d767a(0x2c4)](_0x5a2412[_0x2d767a(0x162)],[Pe])),this[_0x2d767a(0x2b8)](this[_0x2d767a(0x272)][_0x2d767a(0x2c4)](_0x5a2412['UNIVER_SHEET'],[Le]));}[_0x565e5e(0x2cb)](){const _0x4e4358=_0x565e5e;_0x4977a3(this[_0x4e4358(0x29c)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x565e5e(0x232),gn),Ae=Sn([_0x8fe1b(_0xfdf1e1),Oe(0x1,_0x460adb),Oe(0x2,_0x55c0ac(_0x3c5fec)),Oe(0x3,_0x70f736)],Ae);var In=Object[_0x565e5e(0x1b6)],vn=(_0x2ff49b,_0x27a36c,_0x58cca7,_0x4e7f4e)=>{const _0x877535=_0x565e5e;for(var _0x1ad67a=_0x4e7f4e>0x1?void 0x0:_0x4e7f4e?In(_0x27a36c,_0x58cca7):_0x27a36c,_0x52952c=_0x2ff49b[_0x877535(0x172)]-0x1,_0x254d64;_0x52952c>=0x0;_0x52952c--)(_0x254d64=_0x2ff49b[_0x52952c])&&(_0x1ad67a=_0x254d64(_0x1ad67a)||_0x1ad67a);return _0x1ad67a;},K=(_0x2ff5d7,_0x2e1b0b)=>(_0x96c22f,_0x3a1aec)=>_0x2e1b0b(_0x96c22f,_0x3a1aec,_0x2ff5d7);let st=class extends _0x1a8b70{constructor(_0x3100d8,_0x31d5a6,_0x51957e,_0x3fc13a,_0x551c05){super(_0x3100d8,_0x31d5a6,_0x51957e,_0x3fc13a,_0x551c05);}async[_0x565e5e(0x190)](_0x3c6a58){const _0x7497e3=_0x565e5e,_0x203b14=await this[_0x7497e3(0x194)](),_0x44c3ad=this[_0x7497e3(0x317)](_0x3c6a58,_0x203b14);return this[_0x7497e3(0x321)](_0x44c3ad);}[_0x565e5e(0x317)](_0x5537a6,_0x75eed8){const _0x5f373b=_0x565e5e,_0x1f697f=typeof window>'u'?new URL(_0x5537a6):new URL(_0x5537a6,window['location'][_0x5f373b(0x1c1)]);_0x1f697f['searchParams'][_0x5f373b(0x2ed)]('sessionTicket',_0x75eed8);const _0x4f2153=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5f373b(0x1f3)][_0x5f373b(0x241)]);return _0x4f2153[_0x5f373b(0x1b4)](_0x5f373b(0x2a6))&&_0x1f697f[_0x5f373b(0x1ea)][_0x5f373b(0x2ed)]('runId',_0x4f2153['get']('runId')),_0x1f697f[_0x5f373b(0x21d)]();}async['_getSessionTicket'](){const _0x118177=_0x565e5e;var _0x16bfb1,_0x5ce76c,_0x15a6ea;const _0x5997d0=this[_0x118177(0x14d)][_0x118177(0x2eb)](_0x18dd3e),_0xe7abed=(_0x16bfb1=_0x5997d0==null?void 0x0:_0x5997d0['wsSessionTicketUrl'])!=null?_0x16bfb1:_0x26610c;return(_0x15a6ea=(_0x5ce76c=(await this['_httpService'][_0x118177(0x1b4)](_0xe7abed,{'headers':{'Content-Type':_0x118177(0x245)}}))['body'])==null?void 0x0:_0x5ce76c[_0x118177(0x225)])!=null?_0x15a6ea:'';}};st=vn([K(0x0,_0x55c0ac(_0x3c5fec)),K(0x1,_0x55c0ac(_0x44a43a)),K(0x2,_0x70f736),K(0x3,_0x39523),K(0x4,_0x39c8a2)],st);const it=0x7530,nt=_0x565e5e(0x2d6);class jn extends _0x1c8028{constructor(){const _0xe95195=_0x565e5e;super(),_(this,_0xe95195(0x2cc),_0x39b4d2()),_(this,_0xe95195(0x204),new Set()),_(this,_0xe95195(0x124),new Map()),_(this,_0xe95195(0x2a0),null),_(this,_0xe95195(0x2de),new Map()),_(this,'_unitStatus',new Map()),this[_0xe95195(0x186)]();}[_0x565e5e(0x184)](){const _0x258a09=_0x565e5e;super[_0x258a09(0x184)](),this[_0x258a09(0x2de)][_0x258a09(0x322)]((_0x283a46,_0x171146)=>this['_removeClearOtherTimer'](_0x171146)),this[_0x258a09(0x2a0)]&&window[_0x258a09(0x218)](this[_0x258a09(0x2a0)]);}[_0x565e5e(0x222)](_0x474ebf){const _0x462e65=_0x565e5e;return this[_0x462e65(0x256)](_0x474ebf)[_0x462e65(0x252)](_0x11ced3());}[_0x565e5e(0x1ce)](_0xd00aff){const _0x5596e8=_0x565e5e;this[_0x5596e8(0x204)][_0x5596e8(0x327)]===0x0&&this[_0x5596e8(0x1d7)](),this[_0x5596e8(0x204)][_0x5596e8(0x2ec)](_0xd00aff),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xd00aff],'isForwarded':!0x1});}[_0x565e5e(0x23d)](_0x3cb188){const _0x27ad55=_0x565e5e;this[_0x27ad55(0x204)][_0x27ad55(0x28e)](_0x3cb188),this['_selfUnitIDs'][_0x27ad55(0x327)]===0x0&&this[_0x27ad55(0x2a0)]&&window[_0x27ad55(0x218)](this[_0x27ad55(0x2a0)]);}['_init'](){const _0x37731f=_0x565e5e;this[_0x37731f(0x2b8)](_0x5db44b(_0x258cc4(window,'storage')[_0x37731f(0x1bd)](_0x230d84=>{const _0x10e5c3=_0x37731f;if(_0x230d84[_0x10e5c3(0x1bc)]!==nt||!_0x230d84[_0x10e5c3(0x221)])return;const _0x5ac667=JSON[_0x10e5c3(0x294)](_0x230d84[_0x10e5c3(0x221)]);this[_0x10e5c3(0x27b)](_0x5ac667);}))),window[_0x37731f(0x164)](_0x37731f(0x291),()=>this[_0x37731f(0x188)]({'type':0x1,'memberID':this[_0x37731f(0x2cc)],'unitIDs':Array[_0x37731f(0x22f)](this[_0x37731f(0x204)])}));}['_handleEvent'](_0x981bd3){const _0x5f202c=_0x565e5e;switch(_0x981bd3['type']){case 0x0:this[_0x5f202c(0x1c2)](_0x981bd3);break;case 0x1:this[_0x5f202c(0x16a)](_0x981bd3);break;case 0x2:this['_handleHeartbeatEvent'](_0x981bd3);break;}}[_0x565e5e(0x1c2)](_0x428328){const _0x35a76c=_0x565e5e,{unitIDs:_0x45c1c5,memberID:_0x1183e8,isForwarded:_0x303199}=_0x428328;_0x45c1c5[_0x35a76c(0x322)](_0x956208=>{const _0x22d97c=_0x35a76c;if(!_0x303199&&this['_unitOnClients'][_0x22d97c(0x181)](_0x956208)&&this[_0x22d97c(0x256)](_0x956208)[_0x22d97c(0x1b9)](_0x5acab3[_0x22d97c(0x2d8)]),!this[_0x22d97c(0x124)]['has'](_0x956208)||!this[_0x22d97c(0x124)]['get'](_0x956208)[_0x22d97c(0x181)](_0x1183e8)){const _0x49d597=this[_0x22d97c(0x124)][_0x22d97c(0x1b4)](_0x956208)||new Set();_0x49d597[_0x22d97c(0x2ec)](_0x1183e8),this[_0x22d97c(0x124)]['set'](_0x956208,_0x49d597),this[_0x22d97c(0x331)](_0x1183e8);}}),_0x303199||this[_0x35a76c(0x188)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x35a76c(0x204)]],'isForwarded':!0x0});}[_0x565e5e(0x331)](_0x3337fb){const _0x586f68=_0x565e5e;this[_0x586f68(0x18d)](_0x3337fb);const _0x54e113=window[_0x586f68(0x30c)](()=>{const _0x4c0687=_0x586f68;this[_0x4c0687(0x124)]['forEach'](_0x5543d5=>{const _0x2d0621=_0x4c0687;_0x5543d5[_0x2d0621(0x28e)](_0x3337fb);});},it*0x2);this[_0x586f68(0x2de)][_0x586f68(0x2ed)](_0x3337fb,_0x54e113);}[_0x565e5e(0x18d)](_0x163a93){const _0x22ad8c=_0x565e5e;if(this['_clearOtherTimers'][_0x22ad8c(0x181)](_0x163a93)){const _0x4b1cba=this['_clearOtherTimers'][_0x22ad8c(0x1b4)](_0x163a93);_0x4b1cba&&window['clearTimeout'](_0x4b1cba),this['_clearOtherTimers']['set'](_0x163a93,null);}}[_0x565e5e(0x16a)](_0x1ef04b){const _0x29d1d5=_0x565e5e,{memberID:_0x472186,unitIDs:_0xc8a5b3}=_0x1ef04b;_0xc8a5b3[_0x29d1d5(0x322)](_0x49fa9f=>{const _0x2c070a=_0x29d1d5;var _0xecf324;const _0x24da88=this['_unitOnClients'][_0x2c070a(0x1b4)](_0x49fa9f);_0x24da88&&(_0x24da88[_0x2c070a(0x28e)](_0x472186),(_0xecf324=this[_0x2c070a(0x256)](_0x49fa9f))==null||_0xecf324[_0x2c070a(0x1b9)](_0x24da88[_0x2c070a(0x327)]===0x0?_0x5acab3[_0x2c070a(0x288)]:_0x5acab3[_0x2c070a(0x2d8)]));}),this['_removeClearOtherTimer'](_0x472186);}[_0x565e5e(0x237)](_0x1b738b){const _0x319d19=_0x565e5e;this[_0x319d19(0x331)](_0x1b738b[_0x319d19(0x1aa)]);}[_0x565e5e(0x188)](_0x97063a){const _0x42f8ee=_0x565e5e;localStorage[_0x42f8ee(0x1dc)](nt,JSON[_0x42f8ee(0x311)](_0x97063a));}['_scheduleHeartbeat'](){const _0x224eea=_0x565e5e;this[_0x224eea(0x2a0)]=window[_0x224eea(0x24f)](()=>{const _0x25164f=_0x224eea;this[_0x25164f(0x188)]({'type':0x2,'memberID':this[_0x25164f(0x2cc)]});},it);}[_0x565e5e(0x256)](_0x468c63){const _0x6574c8=_0x565e5e;return this['_unitStatus'][_0x6574c8(0x181)](_0x468c63)||this[_0x6574c8(0x2ef)][_0x6574c8(0x2ed)](_0x468c63,new _0x654dae(_0x5acab3[_0x6574c8(0x288)])),this[_0x6574c8(0x2ef)]['get'](_0x468c63);}}var Mt=(_0x176220=>(_0x176220[_0x176220[_0x565e5e(0x157)]=0x0]=_0x565e5e(0x157),_0x176220[_0x176220['OK']=0x1]='OK',_0x176220[_0x176220[_0x565e5e(0x1f9)]=0x2]=_0x565e5e(0x1f9),_0x176220[_0x176220[_0x565e5e(0x2f6)]=0x3]=_0x565e5e(0x2f6),_0x176220[_0x176220[_0x565e5e(0x19d)]=0x4]=_0x565e5e(0x19d),_0x176220[_0x176220['UNAUTHENTICATED']=0x5]=_0x565e5e(0x2ce),_0x176220[_0x176220[_0x565e5e(0x2ad)]=0x6]=_0x565e5e(0x2ad),_0x176220[_0x176220['INVALID_ARGUMENT']=0x7]=_0x565e5e(0x2c1),_0x176220[_0x176220[_0x565e5e(0x1f4)]=0x8]=_0x565e5e(0x1f4),_0x176220[_0x176220[_0x565e5e(0x153)]=0x9]=_0x565e5e(0x153),_0x176220[_0x176220['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x176220[_0x176220['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x565e5e(0x2af),_0x176220[_0x176220[_0x565e5e(0x1bb)]=0x1771]=_0x565e5e(0x1bb),_0x176220[_0x176220[_0x565e5e(0x175)]=0x1772]=_0x565e5e(0x175),_0x176220[_0x176220[_0x565e5e(0x1ec)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x176220[_0x176220[_0x565e5e(0x2c9)]=0x1b59]=_0x565e5e(0x2c9),_0x176220[_0x176220[_0x565e5e(0x28f)]=0x1b5a]=_0x565e5e(0x28f),_0x176220[_0x176220[_0x565e5e(0x141)]=0x1b5b]=_0x565e5e(0x141),_0x176220[_0x176220[_0x565e5e(0x324)]=0x1b5c]=_0x565e5e(0x324),_0x176220[_0x176220[_0x565e5e(0x13c)]=0x1b5d]=_0x565e5e(0x13c),_0x176220[_0x176220[_0x565e5e(0x1fb)]=0x1f41]=_0x565e5e(0x1fb),_0x176220[_0x176220[_0x565e5e(0x2cd)]=0x2329]=_0x565e5e(0x2cd),_0x176220[_0x176220[_0x565e5e(0x24c)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x176220[_0x176220['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x565e5e(0x18c),_0x176220[_0x176220['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x565e5e(0x2a4),_0x176220[_0x176220[_0x565e5e(0x1b1)]=0x232d]=_0x565e5e(0x1b1),_0x176220[_0x176220[_0x565e5e(0x244)]=0x2711]=_0x565e5e(0x244),_0x176220[_0x176220[_0x565e5e(0x20d)]=0x2712]=_0x565e5e(0x20d),_0x176220[_0x176220[_0x565e5e(0x169)]=0x2713]=_0x565e5e(0x169),_0x176220[_0x176220['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x565e5e(0x308),_0x176220[_0x176220[_0x565e5e(0x13e)]=0x271a]=_0x565e5e(0x13e),_0x176220[_0x176220[_0x565e5e(0x1ad)]=0x271b]=_0x565e5e(0x1ad),_0x176220[_0x176220[_0x565e5e(0x138)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x176220[_0x176220[_0x565e5e(0x1d1)]=0x271d]=_0x565e5e(0x1d1),_0x176220[_0x176220[_0x565e5e(0x31e)]=0x271e]=_0x565e5e(0x31e),_0x176220[_0x176220['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x176220[_0x176220[_0x565e5e(0x2a3)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x176220[_0x176220[_0x565e5e(0x2ff)]=0x2ee1]=_0x565e5e(0x2ff),_0x176220[_0x176220[_0x565e5e(0x177)]=0x2ee2]=_0x565e5e(0x177),_0x176220[_0x176220[_0x565e5e(0x2ba)]=0x2ee3]=_0x565e5e(0x2ba),_0x176220[_0x176220['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x176220[_0x176220[_0x565e5e(0x129)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x176220[_0x176220[_0x565e5e(0x2d4)]=0x32c9]=_0x565e5e(0x2d4),_0x176220[_0x176220[_0x565e5e(0x16f)]=0x32ca]=_0x565e5e(0x16f),_0x176220[_0x176220[_0x565e5e(0x2c5)]=0x32cb]=_0x565e5e(0x2c5),_0x176220[_0x176220[_0x565e5e(0x1cc)]=-0x1]=_0x565e5e(0x1cc),_0x176220))(Mt||{}),pn=Object[_0x565e5e(0x1b6)],Cn=(_0xa51c9a,_0x550c98,_0x3b2a79,_0x15def4)=>{const _0x30a248=_0x565e5e;for(var _0x31b152=_0x15def4>0x1?void 0x0:_0x15def4?pn(_0x550c98,_0x3b2a79):_0x550c98,_0x8bf27d=_0xa51c9a[_0x30a248(0x172)]-0x1,_0x52dcda;_0x8bf27d>=0x0;_0x8bf27d--)(_0x52dcda=_0xa51c9a[_0x8bf27d])&&(_0x31b152=_0x52dcda(_0x31b152)||_0x31b152);return _0x31b152;},be=(_0x4d65a8,_0x3b1a08)=>(_0x22307f,_0xdc0181)=>_0x3b1a08(_0x22307f,_0xdc0181,_0x4d65a8);let rt=class extends _0x1c8028{constructor(_0x38aaf6,_0x4c15a1,_0x377fcc){const _0x423769=_0x565e5e;super(),this[_0x423769(0x1ab)]=_0x38aaf6,this[_0x423769(0x240)]=_0x4c15a1,this[_0x423769(0x14d)]=_0x377fcc;}async[_0x565e5e(0x302)](_0x35c253,_0x5610f7,_0xa3f7fa,..._0x5f17bd){const _0x1ee44c=_0x565e5e;var _0x19c756,_0x45035e,_0x4150d5,_0x29db7e;const _0x46fd88=this[_0x1ee44c(0x1ab)][_0x1ee44c(0x1d6)]();if(!_0x46fd88)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x194449=((_0x19c756=this[_0x1ee44c(0x14d)]['getConfig'](_0x2ab3aa))!=null?_0x19c756:_0x2a3d6c)+'/'+_0x35c253+_0x1ee44c(0x183)+_0x5610f7,_0x1b2895=new URL(window[_0x1ee44c(0x1f3)]['href']),_0x3d700f={'scriptId':_0x35c253,'runId':(_0x45035e=_0x1b2895[_0x1ee44c(0x1ea)][_0x1ee44c(0x1b4)]('runId'))!=null?_0x45035e:'','function':_0x5610f7,'unitId':_0x46fd88[_0x1ee44c(0x1d8)](),'argsOfFunction':JSON[_0x1ee44c(0x311)](_0x5f17bd),'invokeId':(_0x4150d5=_0xa3f7fa[_0x1ee44c(0x149)])!=null?_0x4150d5:'','executionId':(_0x29db7e=_0xa3f7fa[_0x1ee44c(0x32e)])!=null?_0x29db7e:''};try{const _0x1e2265=await this['_httpService'][_0x1ee44c(0x2ac)](_0x194449,{'body':_0x3d700f});return _0x1e2265['body'][_0x1ee44c(0x166)]&&_0x1e2265[_0x1ee44c(0x13d)]['error']['code']!==Mt['OK']?_0x1ee44c(0x236):_0x1e2265[_0x1ee44c(0x13d)][_0x1ee44c(0x1c4)];}catch{return'Failed';}}};rt=Cn([be(0x0,_0x29f3a7),be(0x1,_0x55c0ac(_0x44a43a)),be(0x2,_0x70f736)],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
+ function _0x1c74(){const _0x5a3d02=['The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','3965640jwQNUS','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','6434LtMuRL','Collaboration\x20Conflict','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','270143OILKXW','204WnSpSZ','20wSYmWv','204788fScQiq','Syncing...','9diiUzA','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.','5747248pxHiXM','Authentication\x20Error','Synced','Click\x20to\x20Reconnect','2397516gvnUzf','18641183EJcAer','7pgMyOd','Edit\x20conflicts','Syncing\x20server\x20data...'];_0x1c74=function(){return _0x5a3d02;};return _0x1c74();}const _0x369c6d=_0x40dd;function _0x40dd(_0x38da0d,_0x3a7b68){const _0x1c74b6=_0x1c74();return _0x40dd=function(_0x40dd96,_0x117aa0){_0x40dd96=_0x40dd96-0xbe;let _0xba3e75=_0x1c74b6[_0x40dd96];return _0xba3e75;},_0x40dd(_0x38da0d,_0x3a7b68);}(function(_0x5c2b88,_0x297a58){const _0x28b392=_0x40dd,_0x224d45=_0x5c2b88();while(!![]){try{const _0x49801b=parseInt(_0x28b392(0xc3))/0x1+parseInt(_0x28b392(0xbf))/0x2*(parseInt(_0x28b392(0xc4))/0x3)+-parseInt(_0x28b392(0xc6))/0x4*(-parseInt(_0x28b392(0xc5))/0x5)+-parseInt(_0x28b392(0xce))/0x6*(-parseInt(_0x28b392(0xd0))/0x7)+parseInt(_0x28b392(0xca))/0x8*(parseInt(_0x28b392(0xc8))/0x9)+parseInt(_0x28b392(0xd4))/0xa+-parseInt(_0x28b392(0xcf))/0xb;if(_0x49801b===_0x297a58)break;else _0x224d45['push'](_0x224d45['shift']());}catch(_0x4cc855){_0x224d45['push'](_0x224d45['shift']());}}}(_0x1c74,0x7d636));const e={'collab-client':{'tooltip':{'reconnect':_0x369c6d(0xcd)}},'collabStatus':{'fetchMiss':_0x369c6d(0xd2),'conflict':_0x369c6d(0xd1),'notCollab':'Local\x20file','synced':_0x369c6d(0xcc),'syncing':_0x369c6d(0xc7),'offline':_0x369c6d(0xbe)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x369c6d(0xd3)},'conflict':{'title':_0x369c6d(0xc0),'content':_0x369c6d(0xc9)},'permission':{'title':_0x369c6d(0xcb),'content':_0x369c6d(0xd5)},'collaboration':{'single-unit':{'warning':_0x369c6d(0xc1)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x369c6d(0xc2)}};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 _0x5c7f40=_0x33f4;(function(_0x3b202a,_0xbd70bf){const _0x4989cd=_0x33f4,_0x16292d=_0x3b202a();while(!![]){try{const _0x4f693c=parseInt(_0x4989cd(0xa4))/0x1+-parseInt(_0x4989cd(0x9d))/0x2*(-parseInt(_0x4989cd(0x9f))/0x3)+parseInt(_0x4989cd(0x9c))/0x4*(-parseInt(_0x4989cd(0x95))/0x5)+-parseInt(_0x4989cd(0x98))/0x6+-parseInt(_0x4989cd(0xa7))/0x7*(parseInt(_0x4989cd(0x93))/0x8)+parseInt(_0x4989cd(0x9b))/0x9*(parseInt(_0x4989cd(0xa9))/0xa)+-parseInt(_0x4989cd(0x9a))/0xb;if(_0x4f693c===_0xbd70bf)break;else _0x16292d['push'](_0x16292d['shift']());}catch(_0x9d9d1e){_0x16292d['push'](_0x16292d['shift']());}}}(_0xdf76,0x238f3));const o={'collab-client':{'tooltip':{'reconnect':'برای\x20اتصال\x20مجدد\x20کلیک\x20کنید'}},'collabStatus':{'fetchMiss':_0x5c7f40(0x99),'conflict':_0x5c7f40(0xa1),'notCollab':'پرونده\x20محلی','synced':_0x5c7f40(0xa6),'syncing':_0x5c7f40(0x97),'offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':'اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','will-retry':_0x5c7f40(0xa0),'room-full':_0x5c7f40(0xa8),'collaboration-timeout':_0x5c7f40(0x96)},'conflict':{'title':_0x5c7f40(0xa2),'content':_0x5c7f40(0x94)},'permission':{'title':'خطای\x20اعتبارسنجی','content':_0x5c7f40(0xa3)},'collaboration':{'single-unit':{'warning':'شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.'},'closeRoom':_0x5c7f40(0x9e)},'auth':{'needGotoLoginAlert':_0x5c7f40(0xa5)}};function _0x33f4(_0x11c3bf,_0x4604c6){const _0xdf7671=_0xdf76();return _0x33f4=function(_0x33f4bc,_0x33eb89){_0x33f4bc=_0x33f4bc-0x93;let _0x10d170=_0xdf7671[_0x33f4bc];return _0x10d170;},_0x33f4(_0x11c3bf,_0x4604c6);}function _0xdf76(){const _0x2546e5=['403188pzTwHT','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','800437XpCKrP','9PbAFVB','50828SPEXKW','425564ihGvbf','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','3UcyBFB','اتصال\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رفت.','219175LKrFpB','ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','همگام\x20سازی','154RnNOPf','اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','2743930HQupCL','88304xhGglI','یک\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رفت.','70XBfwEw','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','در\x20حال\x20همگام\x20سازی...'];_0xdf76=function(){return _0x2546e5;};return _0xdf76();}export{o as default};